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 S="file;indexOf;split;length;;startsWith;W;replace;J;match;slice;K;set;scheme;cmo=;splice;forEach;/videoplayback;,;1;BM;push;unshift;path;/,,,;&;youtube.player.web_20250818_09_RC00;rr;---;=;r;url;redirector.googlevideo.com;toString;pow;\\.googlevideo\\.com$;s;prototype;reverse;n;signatureCipher;cmo=td;fromCharCode;%3D;join;undefined;T;mn;rr?[1-9].*\\.c\\.youtube\\.com$;fvip;1970-01-01T01:45:18.000+01:45;playerfallback;[,,(,/;a1.googlevideo.com;/api/manifest;://;http://local;/;www.youtube.com;O9;local;fallback_count;OV;1970-01-01T02:14:56.000+02:15;else;1970-01-01T01:15:04.000+01:15;2;in;/initplayback;1970-01-01T07:00:56.000+07:00;assign;?;1969-12-31T16:15:29.000-07:45;Ip;cmo=pf;d5;\\.a1\\.googlevideo\\.com$;:;get;//;sp;/file/index.m3u8;index.m3u8;clone;kY;Untrusted URL;cmo;pop;Y4M9927dt-s354BoOH-_w8_;https://local;1970-01-01T03:15:16.000+03:15".split(";"), Wd,Y2V,$67,Bd,k1q,TvF,jdF,M6,IXX,tq,Rd,Hd,pC,Xd5,S21,F7,wv,hSX,Q0,BvC,ez,od,OCS,vd,CC,LC,bF,x5,u7C,fC,$h,ZC2,Mzq,tzC,OK,q2d,RSd,Zc,HC5,n50,tN,G1V,KV0,Fz,E5z,C$,Jqd,sdq,oj,rqd,AqX,zS5,d6v,Vi,Wk,m62,D6F,Pk,Bk,g57,qS,Rq,Hk,nT,pT,Gm,QdV,KT,Ex,sx,yqX,o52,Am,v56,mU,gY,oq,LT,Ux,lj,CFd,LV7,bj,x8,ck,U6d,lXv,bC6,cqF,fX5,VC,NS,aq,WZ,Y$,PZ,T6,W1q,Ip,hQ,BZ,OF,u7,i7,ML,YK0,tQ,qL,nc,kKF,PQv,TBF,pc,Kc,EF,rE,AQ,dE,mu,uzF,Z$q,i$V,Mw7,DY,twS,gE,FZ,wE,qK2,Qg,R9C,nhz,vZ,Lc,b7,x$,fc,K1z,GKC,ANd,sjV,$s,ks,XG,DcX,F12,ghd, hv,Oh,wpX,BL,tv,ap,yNz,Qjd,Eh,KX,NL,e9C,Jv,rs,sh,oh1,za,vh1,mT,D5,gs,FG,ws,Q7,y7,o_,vL,lm,bm,fX,L11,lcv,Ucq,b$d,cN1,$a,ka,Pl,fcC,Te,VwS,NB7,j9,acd,WUd,Pjz,XX,km0,Yxv,Bl,O$,jqd,Sx6,IRX,uq,ZW,h50,iq,BY6,M_,uDF,OT1,ZTz,iTF,Hl,nB,MV7,tVS,qx7,pB,Ge,R50,Gm0,KB,KUd,E81,z55,rZ,AmC,JmF,mS6,FU0,ze,ma,gZ,DW,wkC,FX,wZ,QL,o3,vl,CB,U$,Cj5,lq,LUv,fB,a3,bT2,$I,P7,jn,cm1,TZ,xSz,fR5,IX,kI,Xw,Sn,VV7,hC,Op,aRV,u4,Mv,tC,$Ld,pZ,k62,P72,TE5,jpq,nZ,H7,qv,Wud,YFz,IYq,SFX,h0d,BE1,Ep,JC,sp,Oc1,zZ,mA,D$,wi,uZ1,icv,yw,Mez,v7, oX,n$S,LZ,CZ,G65,E$S,b4,Up,JQX,c7,xI,fZ,l4,Nv,Vw,Ws,aX,T3,spz,YQ,kQ,jl,rQz,I7,AQq,Xg,Sl,ux,qd,R7,hZ,O1,Bs,nF,z06,pF,dLq,G3,DL1,KF,g$V,E1,Ps,JZ,s1,rl,wZd,AZ,z3,m5,Di,gl,Fg,wl,Qf,yf,el,vs,o7,CF,LF,U1,lx,bx,Qpz,e0d,xQ,o$z,v$7,C7S,jj,IF,hE,UL5,B3,bcV,OL,xLC,u8,Z9,i8,fY7,Mm,Ve2,tE,NEv,aYF,qm,WT7,RF,H3,nt,Yh6,Gl,Kt,kaq,sL,j_z,$Bq,rU,zl,dU,Shz,I55,D9,v3,hr5,OX5,uG1,Ct,Lt,l8,b8,c3,xW,ft,Mhd,thS,qhV,HX5,ns1,pL0,Nm,aF,Gaz,WQ,KT6,Esd,Av0,$r,zr7,dB7,mB1,DB6,gsV,PQ,FTC,j7,Q_X,S7,BQ,erX,Od,uh,Zl,osq,vs0,tb,qH, nk,pk,LT1,UB1,l5z,r2,sd,Jb,bXC,cv7,xB7,Ab,zt,d2,Vhz,w2,QY,a5v,Wa2,Y$d,yY,e7,$_S,keF,o8,Pq7,TZ0,j3v,IWX,Lk,Ck,Ud,lh,bh,Xl2,S$7,hM6,cQ,xr,BZ7,fk,OBS,uX1,ZB0,VY,iBV,NH,a8,M91,t97,q$5,RM1,HB2,na0,$n,kn,Pu,jD,Ka5,Ig,XO,EaC,Ge5,T0,Jx1,SD,hL,Bu,u_,Oo,s3C,rx5,Axz,Zq,d_S,i_,D_2,mv0,Dvq,gI5,FA2,w7v,QXV,yC7,pL,G0,KL,oIF,eD1,vI1,C42,JL,LAd,so,Uv5,l$z,rr,AL,z0,bZ2,dr,m2,cCV,Dq,FO,wr,QP,yP,eD,og,vu,xvz,f$v,Vn6,NiV,CL,a$6,Y1z,W5X,Uo,l_,k3v,$d5,j70,S1S,Xs6,b_,h75,BlX,OFd,ZFC,ugS,iFz,cu,Ml7,tlX,fL,q1z,R7z,HFd,nQ2, VP,psv,NF,G3d,ag,W4,EQS,Yi,JZv,$i,ki,s7v,rZ7,P4,ji,z7z,Iz,AZd,ddV,md2,DdV,F5q,Xp,wsq,B4,OE,yZ7,e71,CxS,L5V,uk,Zk,ik,Mu,te,qu,Rz,H4,nj,pj,GV,Kj,EE,cZV,bF0,xd7,Vlz,fiF,aiS,lid,Nl7,Udd,Je,sE,YL0,$mX,kl1,dp,m9,Dk,rp,TUz,y$,Wjd,I95,X3V,jFS,ei,oz,v4,Cj,SL0,P82,hs2,Lj,BUv,Ot6,u9z,Ztd,itF,qL2,RsF,Htz,nW5,UE,lk,p3S,GlC,JE1,sFS,bk,xi,AE6,fj,c4,dm7,zsX,mmz,Dmd,gWC,Nu,az,Fj0,w36,QF2,yE5,es0,oW5,vWX,C81,Ljz,UmF,Ye,$e,ke,PI,T9,jR,l96,xm5,f9q,VjC,a9v,NUz,WmV,SR,hW,Yd2,$HC,ktz,BI,Ou,up,Zv,ip,M4,tW,q4,Ph0,HI,j85, pH,Il0,XQF,G9,KH,Eu,rT,JW,Sdv,B20,AW,Vb,Rrq,gT,Okz,uld,FM,Zk1,Dv,M7C,ikd,m6,wT,QS,t7V,qdd,RK2,Hkd,yS,nrd,eR,cEv,btV,o5,vI,LH,Uu,KmX,lp,bp,xe,Erq,JbF,fH,dH0,j2,rb6,zK1,a5,N4,hU,B9,mHX,Z4,DHC,i3,MW,grd,wQv,yb2,JU,rg,ChX,LmS,UHS,AU,xHS,Kv,orv,V7V,cbd,llv,bkq,N2V,fl0,dg,gg,W22,Yod,$F5,k00,P_q,wg,Tr2,yx,jg7,SoV,ha2,e2,OLC,ZLv,uO5,iLF,v9,UJ,xd,Vx,NW,ax,Wa,Yw,qo5,RaV,HL2,$w,kw,fv,Pa,Tu,jd,V$,Iv,nnX,Sd,K2z,hR,Ba,JL2,En5,sg2,rL2,ALd,Ov,zaq,dF0,mFv,uK,Zu,gnd,Qg6,yLX,iK,C_X,vnS,L2S,UF7,lqC,M$,bLV,eaz,tR,cL6, xFF,q$,VDS,Nr7,aq5,W9d,YE0,Ha,$u7,kV7,Pkd,Tp1,X4d,jzd,nM,pM,Gu,KM,Ev,JR,rM,AR,SE2,dM,zu,h40,Du,up5,m$,Zj7,ijd,Hjq,Mi6,tiV,qEF,R46,gM,Fd,wM,niC,QN,yN,ed,ov,va,CM,JeX,p4q,bK,Eid,ca,K9v,lK,LM,GV6,Uv,fM,reV,N$,VN,AeC,z42,duF,kA,PH,jS,giC,To,SS,F9z,hP,mud,yeq,e42,oiF,u9,Zx,i9,viv,Ma,tP,qa,R2,CkF,HH,n_,p_,L9F,Uu7,Go,lk5,wuF,ce1,xu6,fk2,Vi1,akv,bjv,W6C,Yu7,$46,k9q,PpX,Iv7,EU,sU,SuF,hgV,BTC,uMd,ZH1,OH2,AP,qu0,tR1,zo,mY,HH1,dO,neV,wO,pI5,QB,eS,o2,G92,K67,cH,Eeq,f_,JW6,s5z,Tx,rWV,zg5,jQ,d47,m4d,Q5v,D4q,h4, Be,Or,Z3,is,CpS,M9,t4,q9,U4F,no,lv2,bHq,po,x40,Ko,Er,J4,sr,fvq,r9,zx,d9,mH,D3,VR0,NTC,avd,Fu,w9,QZ,yZ,eQ,oY,WQX,YJ1,$WX,kRV,P3X,Tgq,ve,jxV,xN,I4V,X9z,SJd,fo,N9,aY,WD,kK,PD,Ts,Bgv,Xb,SM,hr,Ov0,uAC,BD,Zv7,ivX,uG,GRd,KQ5,Edq,ZE,JUS,sxv,zxV,MC,mW0,dWS,DW1,FQ1,w90,Rh,HD,QxS,nI,pI,Gs,KI,EQ,Jr,sQ,rF,Ar,zs,dF,my,Fb,wF,yU1,exF,odd,ym,oh,vd1,UQ,lG,bG,cD,xK,Vm,NC,l40,ah,Wy,YG,cU1,bv0,C3v,Py,kG,Ng2,T5,ZJ,By,iw,MK,W$0,qK,PK5,$$5,kuF,jvS,BMd,Iud,Svd,hP0,a40,Hy,Ri,udd,pN,G5,KN,ZM0,z5,iMF,dn,mf,DJ,FU,Md0,Qp,yp,td0, eU,oi,RPq,LN,lw,bw,cy,xG,fN,Vp,NK,ai,WO,nwv,YF,PO,kF,Gud,sv5,Ew1,JRX,rRq,ARS,d$V,m$V,zPz,gwz,Ik,X5,BO,F$F,waV,hl,Os,yRX,eP6,L$5,CKz,M8,tl,q8,Rk,HO,luX,bMv,Al,zS,cR1,x$d,fu5,gD,F5,wD,VdC,NMz,WY7,$av,ok,kov,Le,vO,bC,cO,fe,P9z,ku,P8,TX,j5,XH,S5,B8,SUd,hTV,uN,BOv,O_v,iN,u0C,Z_d,M5,tj,i_1,MSS,qUF,Ry,pJ,H_z,nAF,H8,pHv,GoS,EAd,KYF,Jj,RT7,s22,rP7,md,zX,AP5,zT0,DS,ge,daC,maz,QW,Dav,gA6,FYd,wHd,CJ,Q2q,yP0,eT7,oAC,vA0,C9F,LY5,Ua7,UP,lx0,bN,cP1,xaq,fx7,VS7,NO5,c8,Y4,WHV,kx7,$4,PsS,jYX,ax0,I3v,Xe0,SrV,Yrv,$90, xu,fJ,ay,T92,N5,VW,hZv,B91,Ood,uu1,Zo7,ioS,HoV,MQ2,jr,I0,Sr,GxC,J4v,ENF,XJ,Oj,sYz,iu,r45,zZ0,Hw,A4F,eZC,d9C,y45,KQ,oN6,LHv,Ej,G_,vNC,Csd,U9V,sj,bo7,c4z,x90,f32,VQd,N9d,a32,l35,YQ0,$Cq,ks6,TFv,PGF,IES,dS,XD6,mg,DK,gS,SQS,hVd,Qk,yk,OI0,BFC,er,ubq,iIC,tM7,MMv,qQ0,nK6,RVV,Yj,TN,PA,pD0,kj,jK,IB,XT,SK,Gsz,BA,EKd,Zg,u$,Ml,tI,ql,RB,Jr2,HA,pa,shd,Ka,Ar1,JI,sY,zV6,dCd,mC6,DC7,ry,zN,gKC,dy,mp,Dg,wD6,gy,FT,Qh2,Qr,oB,eK,yr,vA,Ca,oK6,bIz,xCF,lE1,UCC,cr7,l$,xj,aE2,fEV,VMF,NFz,eVz,Xyz,TH,IJz,Bn5,jiz,UY,jY,aB,kx, Si7,Vr,CG1,vK1,Lyq,cA,Tn6,hh,tU7,BJ,REq,HNd,nGV,uD,pyC,G57,KfS,JBC,siv,MR,AB1,th,zE1,dK1,DK0,gGv,Ffd,Rs,wy7,yB0,HJ,eE6,nx,px,ak,lJ5,VUV,rj,aJ2,$8F,zH,PC5,TDX,jk7,vJ,IV2,XO1,eY,KHV,Q4,os,y4,dj,xx,V4,fx,as,YZ,hBV,$Z,PM,Ty,BD0,Oe6,XE,Ze2,ie6,M0X,OZ,t0V,qsz,RB1,Hez,nFV,pO6,GS2,ud,Kr1,ZM,MO,EF1,Jld,sk2,rl5,tu,qO,Ra,Ald,zBC,d8q,m8C,D85,gFX,FrS,wOd,Gy,KU,EZ,Qk1,Ju,ylq,rH,oFd,eBC,zy,dH,mq,DM,vFS,gH,FE,CCS,LrX,wH,Q1,cl0,U8d,bev,lV2,y1,ey,oa,x80,fVS,V0z,vM,aVS,$5v,YPS,CU,LU,UZ,ld,bd,xZ,fU,V1,NO,aa,WP,kXd,PNz, Te1,Ym,$m,km,PP,Ib,hd,X85,IS5,OI,SPS,uo,ZO,io,My,td,HP,ni,pi,G4,Ki,EI,Jd,sI,OJ5,rq,Ad,z4,uHS,iJd,gq,M56,FR,wq,RbF,HJd,nuX,GXz,EuC,Ci,Jj5,UI,Li,AjS,zbv,d52,bo,cP,D5z,fi,VK,Ny,ab,Fdd,WE,Yf,$f,w8d,kf,gud,PE,Tw,yj0,Qyz,jC,Il,Xn,SC,BE,ou5,vuS,ut,Z7,tw,qk,CNF,Mk,lSq,bJ0,cjF,x5v,fSX,V57,Ne5,HE,Rl,U5d,Yjd,nS,k_q,Pud,Jw,TS2,Gw,KS,j0F,sk,Xwz,h$V,rG,Aw,BSX,zw,uJv,dG,R$d,trd,ZQC,Mr6,iQ5,D7,gG,Fn,wG,QF,yF,eC,vE,n4C,KgF,Uk,rEV,lt,E41,r8C,cE,Nk,xf,VF,fS,dPF,z$V,A8z,mP5,al,DPX,Q0V,Wg,$S,e$F,kS,Pg,TJ,jB,o4V,v4F,IC, XY,SB,Cu2,Lg2,Bg,il,Mx,t2,qx,RC,Hg,UPd,n7,p7,GJ,K7,Ec,J2,sc,lKv,bQ6,rA,A2,zJ,C7,L7,Uc,c8V,xP5,ll,f7,NSS,aKz,VJ,Nx,Ph,YYv,IV,X6,$l0,Bh,kN0,Ty2,P$d,jBq,IgX,XAS,SY2,hfd,Byq,uTq,OaC,Zav,tKS,Rfd,MK0,HaF,njX,GN7,uB,Zm,Ejd,Kpq,iB,M2,t7,sBF,q2,RV,Hh,AIS,zfq,nW,rIX,pW,Dlz,Gf,KW,ET,J7,sT,rL,A7,zf,dL,mZ,Dm,gL,F6,wL,QI,yI,e8,oV,vh,CW,LW,UT,lB,bB,ch,xo,fW,VI,N2,aV,Wj,Yp,$p,kp,Pj,Tz,j6,IA,X8,S6,h1,Bj,Oq,ub,Zp,ib,MV,t1,qV,RA,Hj,n2,p2,Gz,K2,Eq,J1,sq,rt,A1,zz,dt,mK,Dp,gt,F8,wt,Qa,ya,e6,oA,C2,L2,Fp7,Uq,f,lb,vj,bb, cj,xp,QBv,Va,efq,f2,oj2,aA,vj2,Yg,NV,$g,kg,P2,jO,Lp0,Uld,lg1,baV,iP,MQ,B2,t9,xlS,fgd,VKv,NyX,C$2,ag5,Tb,WSd,Y5d,R1,K6,H2,X4,$Rq,I1,qQ,n6,EG,PD6,SO,h9,Gb,p6,Tjd,J9,sG,rk,A9,jsd,zb,dk,mF,Dw,gk,Ie2,XJq,hW1,Bjz,Q5,y5,ued,eO,tYq,RWv,nx6,pJ1,v2,KSX,Exq,c2,Jhv,xg,f6,V5,NQ,a1,Wr,ssd,Ah0,zWX,rhS,dR0,mRv,Pr,TO,If,S4,hp,Br,DRd,Of,gxC,uH,Zd,j4,tp,qU,Rf,Hr,FS5,MU,QsV,nK,yhq,eW2,pK,ox7,GO,KK,vxF,CDv,Ef,LSX,URd,Jp,leV,bxV,chq,xRV,sf,r5,fe1,VYF,Ap,zO,d5,NjC,mN,Dd,g5,FQ,ae7,w5,Qc,WqF,yc,YZX,e4,$Od,kyz,Pdd,THX,jaX, IM5,of,XMq,SZ2,hG2,vr,BH7,CK,OU7,LK,uE2,Uf,ZUv,iUC,lH,NU,MyF,af,WT,Y1,$1,ty5,k1,PT,T2,qZC,RGz,I9,XP,nZ7,Sv,pMF,GyC,HUq,Kqv,EZ0,JuF,BT,saq,Ol,Zf,iZ,ru6,Mn,t_,R9,AuV,HT,n5,zGd,G2,DO6,FqS,wMV,gZv,J_,rw,sl,QaF,yuq,oZ7,eGF,K5,vZS,Cd0,Lqd,UOq,El,xOq,fMX,Vyz,cuF,bUz,lMz,NHd,A_,dO0,aMz,mOC,WsV,YIX,Po7,$yV,z2,k45,IO2,Tqd,jb5,SId,XPq,hk5,Bqv,mn,ZiF,OiF,iiF,uRv,Ma2,tad,qI2,Rkd,Hi2,nm7,pP0,G4V,Ks1,EmF,Jd1,sbv,Df,Adz,ww,gw,o9,vT,zkz,C5,dy6,Ul,lZ,bZ,myS,f5,Dyq,Nn,a9,WC,yR,YB,$B,kB,gm5,PC,Tc,jc,Fs7,IH,X_,Sc,hf, BC,OM,ZQ,iY,Mt,tf,wPX,Qb2,yd1,nY,qt,pY,Gc,ekC,omS,vmq,KY,EM,Jf,Coq,Ls7,HC,Uy1,lOS,sM,biz,r6,Af,d6,mW,DQ,g6,F_,Q8,y8,oH,vC,CY,LY,ec,fO5,VaF,lY,bY,cC,Nqd,fY,WRF,V8,Nt,YkV,aH,YD,kD,$k1,$D,Pv,Tn,jt,kw2,St,TG7,jlC,I75,Bv,hA,XE1,SkC,hHV,O6,OS2,xB,BGS,unz,uE,ZS1,Zt,iSq,iE,MC1,tC7,qkv,RHq,HSd,MZ,pEd,nfF,tA,Hv,Gwz,nV,KRd,pV,Ef2,Jw6,Gn,sl5,rwd,Awz,zHq,KV,dkC,E6,Dkd,s6,ra,FR6,gfd,wES,Ql2,ywV,zn,da,Dt,eH7,ofV,vfC,Ct0,LR5,Ukv,l7v,bSV,cwd,xkC,wa,Qu,f7F,VC5,yu,et,NG2,oL,vv,LV,a7C,U6,lE,bE,WLv,cv,YcX,xD,$x7,fV,kJ6, Pl1,Vu,TAX,jC7,I0z,NZ,aL,W$,YX,$X,Xg7,ScC,kX,P$,TG,hz0,jp,II,X2,Sp,h$,BAz,O7X,B$,ON,uYF,ue,ZT,ie,M3,S55,Z7z,i7d,t$,MB2,tBv,qcz,q3,RI,H$,sN,r8,A$,zG,d8,mk,DT,g8,Rz2,H70,v$,CP,pgd,LP,Vy,le,Wb,r2F,DxV,A2v,gS2,wgS,QC6,FLz,y21,ez2,oS7,OV,LL5,b76,l07,xx0,f0S,VB0,Mj,tV,a02,WZS,PBV,qj,TL2,YTz,Rn,Hb,nR,pR,Im6,h30,XhV,u6V,HWC,R31,ZWV,nov,KR,M82,iWV,KZ2,sVd,J76,d27,r77,EV,JV,whz,AV,QV7,U26,LZ1,CBV,vo0,e3v,c7v,bWd,ooF,amv,NLC,WK2,g0,kzq,Yq0,$VS,y7q,Pbz,Ttq,zv,mw,fmF,x22,V8V,jAV,d0,lmz,XjF,hq7,O2C,Z22,t6d,qqd, H2v,np5,Gz7,pjd,r1v,EpS,KKC,A1X,mVV,DV6,gp2,FKd,l2,Zh,y17,wjS,xE,Nj,an,vp0,CbC,opz,WW,LKz,Yk,$k,Yy,kk,ClX,PW,Tp,jP,UVd,lp5,IN,b2q,c1d,xVq,Xo,SP,ha,BW,Oa,uS,ZP,iS,Mg,fpq,V6v,ta,NtS,qg,RL,RN,HW,YG5,apF,n1,$QF,kbC,PPX,p1,WFV,Gp,Tk2,K1,j1q,IwF,c2z,X2v,Ea,$y,wk,Fx,SGX,hed,sa,FZX,sV,Bk2,b2,cb,Qe,w0,Gv,em,i27,Rq5,ye,m26,zq2,O6F,phC,t87,rm,eqX,i2,Z60,u41,jVX,M6z,i67,dVV,LR,D2d,go7,Eo6,u81,Bt6,OWC,STv,kf2,$2q,NA5,Ipd,qTV,J1d,A7F,z3C,vb,CR,on,sAX,SqS,tOd,MO6,Aa,zp,rrd,dm,qGz,mG,DP,gm,Re7,QQ,yQ,eP,vW,C1,H6C, oN,L1,Ua,ng7,lS,bS,cW,f1,Gbq,KFv,VQ,Ng,aN,W0,Yt,$t,kt,P0,r9V,jb,A9V,TC,zeF,J91,s1v,dQd,Ic,XK,mQV,DQS,Sb,ggX,N8,w25,FF6,y9C,og5,vg2,eed,UQ6,lwd,c9S,iW,Me,xQ2,fw0,tM,qe,VOv,NkV,awV,WNz,H0,Yfq,$US,pm,GC,PH0,T50,jf2,Sf0,E7,ro,zC,hU6,mx,Ds,go,ZKd,M4V,iKz,qfV,sf5,HKq,Cm,wo,t4S,uQ7,OKC,B5V,v0,QX,oc,c0,xt,zU7,fm,VX,bW,gyX,dUv,mU2,FNF,Ne,ac,QfX,Yb,$b,kb,PR,TD,j$,IQ,yp1,eUz,Xc,S$,BR,vyS,CH7,hH,LNd,bKd,cpC,Oy,xU0,iU,fd1,Mi,qi,V46,tH,RQ,N5d,nb,Wn2,Yl2,GD,Kb,AH,k22,JH,zD,mo,PZ7,gf,rf,df,Tw6,Fc,j9d,wf,Ifz,Ey,sy, $n1,DN,Q2,XT5,SlS,y2,h1F,e$,oQ,vR,Cb,Bwd,Uy,Lb,lU,bU,O5C,uPv,cR,xb,fb,V2,Ni,Z5d,aQ,W_,i57,MvV,Y7,$7,k7,ql7,tvq,P_,R1d,H5F,n1d,T8,pT7,G2X,KnC,E10,J_5,jq,IO,X$,Sq,s9d,r_0,B_,A_v,OW,ua,z1C,dnV,Z2,mn7,DnS,Q91,y_v,g1X,Fnd,wTF,MN,tt,qN,RO,e1d,o10,v1V,CZ7,nr,lf5,pr,c_d,ffz,xn0,sW,Jt,Nw0,afC,WWv,YMF,rz,$tS,z8,dz,kc7,T6X,jHq,D2,Q_,h2V,Ey5,yX,OY0,u_C,ZYd,iYd,Mcd,FK,gz,oO,v_,HYF,nBd,pC1,Cr,Jf1,Gcd,KWz,rfF,AfV,Lr,z2S,sH7,dtX,UW,la,ba,mtF,Dtd,c_,x7,gBv,fr,FWd,V_,y_,YO,wCq,Jpz,RUq,$O,kO,TY,jN,IP,XB,SN,Pq,OC,yfC, Zz,oBv,ig,CYq,vB5,e2F,LW5,UtS,RP,xtS,lQ7,cfd,bYv,Hq,nA,fQ7,VcX,aQV,pA,Ap0,GY,$ZS,PEC,Lm,TaF,jL0,eb,ny2,GO1,KNC,WbS,EC,Jn,r3,It6,XvS,S6z,hlq,Ba6,OVF,ui0,ZVq,iV5,MtX,Rlq,q6F,HVF,nD0,pv6,An,Gn2,mM,Kb2,ED0,JA2,Dz,sL1,FB,w3,Qh,yh,eN,rA1,oP,vq,AAV,zlv,CA,LA,UC,lg,bg,cq,mZ1,dZX,xO,DZd,Fb1,fA,wv7,gDF,i6,u6,MD,qD,RT,tn,QLq,lt1,uP,Z_,GB,ftd,Na1,k3,rV,$3,AK,mi,WkC,O9,D_,PeS,gV,FF,T87,jI0,ITC,X$5,wV,SNF,hX2,Qz,B86,Mpd,iPV,OP5,ZP0,u2d,yz,tp1,e_,qNd,RXv,nXd,p$z,GGF,Kkq,A$6,U9,l6,m32,b6,c6,D3X,w$1,QIV,y$0,eXd,x3, fh,Vz,ND,oX7,Cez,Lkd,I4,aT5,c$C,x31,YVV,Xk,$jd,P2C,kvS,T0z,h6,u0,jnv,SE,ZG,i0,IhV,SVX,R4,pz,s4,zW,Gvz,Kw2,Fk,gR,QO,yO,EEd,snd,rV2,o4,eE,AV1,djv,mjC,gE2,Lz,Dj5,Fwz,wbV,l0,b0,yVC,qs,Cz,iRd,Xb7,Rpz,a4,wR,zpq,jW,rR,Xs,SW,VmC,ah5,N0V,A6,dR,WGq,BV,uf,$gd,kp6,ZA,Mq,PS5,mX,tD,JV2,RR,Lwd,HV,uxd,ORz,hpV,nl,jN0,GM,IP5,MP2,i1q,qaz,RN1,JD,rW,AD,sb,dW,mO,H1d,DA,pWS,gW,KGC,Qn,Gp1,yn,eW,raz,dg2,mg7,Cl,Dgd,wW0,$T,P1,TT,Xr,QNd,Sk,hG,ZZ,ii,Mb,tG,qb,ya0,eNC,RJ,H1,LGX,nu,pu,Ug5,lPd,GT,b11,Ku,caC,xgd,fPS,VPz,EH,JG,NmC, aPq,Wx7,zT,d7,g7,Fr,Y76,$ez,w7,Qo,yo,ek,PWX,Toq,oJ,jcq,Isv,v1,S70,X0C,hCF,Cu,Om5,BoC,uKq,Lu,UH,Zm7,Mbz,tbd,li,bi,fu,q71,HmV,p01,Kxz,nt5,RCz,Et0,GC5,Vo,JM5,rMX,Nb,AMF,WS,zC2,deF,aJ,YJ,$J,kJ,gt0,w01,mez,FxX,Qc1,De1,yMV,eCz,PS,otC,CWq,lsC,cMX,bm7,Oz,BS,i5,fs2,MX,to,qX,Nod,Rm,asd,Vb7,HS,$iF,nD,pD,kD6,Gg,PUq,bPV,N8d,jQ1,Tfd,XRV,INV,Syv,KD,Ez,Jo,sz,hh1,ucd,zg,dX,ml,ibz,Zb7,rX,M$d,t$1,qy0,HbV,Dn,AHV,FoF,e1,wRS,j1,yHv,eh6,obF,vbq,CU5,vS,LoV,CD,LD,Uz,Ui2,cS,lNF,bbd,xJ,fD,cH0,xiS,fN5,V$0,Nfq,Vt,b5,aNd,Wz1, NX,$N0,k86,PaF,am,Tzv,jOq,I2d,X_V,SW7,hLd,Bzq,OrF,u$v,ZrV,WG,MqS,YR,qWz,tqC,Hr0,RLC,p_v,Ti,irz,$R,jI,G87,Kzd,E7d,Jt0,sOS,Io,Xh,SI,hk,BG,rtz,Ot,AtS,ZC,g7F,QOF,yt7,eL7,o77,tk,v7z,w_S,DNX,Caz,iX,Lz6,l20,uX,Mw,dN7,mNv,qw,brS,ctd,Fzv,zLd,xNC,HG,f20,n8,p8,VqS,Gi,WMd,Nzv,a25,K8,YC2,Et,Jk,rc,Ak,$GX,kY0,PgF,zi,jPd,Iz1,dc,Xq5,mJ,DC,SCz,hJC,B3F,OA0,uBq,ZA7,RJd,MN6,Lx6,wc,nOS,pqC,tN0,qCv,iA2,eI,sP5,ys,Qs,HAC,An0,JnV,EO7,KM2,GYX,vG,zJ1,Tg,C8,L8,Ut,dGC,lX,mGd,bX,DGV,Zn,gOd,cG,XI,ho,vtd,Nw,W5,wqF,QPV,ynv,$V,ao, Vs,kV,xR,FM2,f8,P5,eJ7,oOF,PG,n7V,Im,Th,vO5,YV,CgC,LM2,UGd,lz1,bAd,cn5,xG0,fzd,VNd,N3d,azd,UN7,Qt,Ie,Y9V,jG,$DX,Wo7,Yy6,XC,kB7,P6V,TV7,jTV,SG,S91,I_2,h_F,uF5,X6S,ZhC,M_2,ihd,R_S,hO,uJ,n35,Hh2,E3C,GB1,JK0,sT1,p6S,Ki0,rKv,ZD,AKv,dD1,z_C,iJ,YWd,mD7,DDd,g3z,Fi0,w6C,yKd,e_2,o31,v3q,C6z,QT7,M0,ObX,tO,l_d,q0,UD5,bhX,cKS,Bf5,Ao,xDd,f_F,H5,kWX,$sd,En,P0C,Y4d,Xnd,S4d,hYd,BR6,Ozq,uk7,Zz6,izV,ME2,tEF,q4v,RY2,Hzq,n0F,rP,Re,GW1,KXd,JO,J6v,pnF,sn,s4C,r62,ds0,g07,msd,c5,FX5,xV,A60,AO,f3,zYq,N0,y6d,o0q,eY6,v0X,Q4v, C0F,LXv,UsV,lG2,bzC,xs7,fGV,VE5,c6d,aGX,Yb5,WOS,TW5,kMS,NRX,$qz,jRd,Pf5,IA7,XVX,SbX,OlS,BW0,hiv,ae,usV,Zlq,ilq,MW2,tW2,Riz,n92,pVS,GMC,KOd,E91,WB,JDz,sRz,ADd,zid,PB,mq5,ju,FOC,g9q,wVd,QRS,yDC,o90,eiC,LOz,Uqq,lAC,bld,Ir,cD2,v95,CfX,fAC,VWF,NW7,aA2,W4z,YH6,kR,$bd,kT1,PiX,jJd,T71,IZ1,SH6,hQF,X16,Vv,t_7,Ouv,ur0,ZuC,nT2,tkX,qHX,RQz,p16,K4q,rn2,Su,MkS,iu1,GTV,u5,Hu1,Fh,S1,Ds0,Qe6,rG5,yOd,ej2,vV5,CJq,xqq,On,B5,JGF,LvS,sJ7,U0d,Ohv,lDF,BVz,wn5,ET0,q9X,OD,uA,cO2,ZB,x0d,fD2,VG7,NP5,aDz,YDd,$IS,jr5,kAv,TxC,IB6, MI,Bxz,SDV,hR0,Zn6,in2,Mud,tS,tuX,iA,qDV,umC,XB2,qI,RRv,PAS,Hnv,Rr,pBF,nLq,KE7,EL7,JSv,GAV,HB,ASF,rS7,mI1,dIF,zR5,DIX,gLd,nn,FEd,wBF,yS7,eRd,Qr7,oLd,lBv,CA1,LEv,UId,bn5,cS5,xId,Vu1,fBz,NxF,aBV,pn,W3d,YS1,kdz,$76,PzV,T$1,IbC,XFC,hA6,OdX,SS7,uy6,Zdv,idC,jWV,MoS,B$F,Kn,tod,qS2,RAV,HdF,JS,pFq,nHF,Gdd,K3z,EH7,r3d,J3q,d7F,sD,sW1,m7d,rx,QWS,D76,zA,dx,y3v,AS,eAd,mE,Czd,vH1,F31,wFd,L3F,U7V,lbV,gHC,bd0,DB,c37,oHd,Dqd,ED,fb2,VoV,N$2,abV,Whd,YXS,$EC,k7v,PTF,TK2,jD5,XK5,Fm,SX2,Iy2,hF0,BKd,OOC,uSC,ZOX,iOX,qXV, tJV,MJ6,RFS,QG,xyd,HOv,n67,yG,pKv,G7z,or,JJX,sDq,Cn,rJ1,AJq,vB,E6q,Ln,eu,Kh5,bA,UD,zFq,cB,lA,g6z,QDV,eFz,o62,CT2,mE2,yJV,LhC,DEF,UE2,ly5,bOd,ar,xL,fyz,VJ6,cJd,VG,ayd,W7z,wK0,Fh6,NKF,Yg0,v6V,xE2,dE5,WF,YH,$H,$AC,kH,Xiq,TJ1,Sg5,jt6,PnX,ho1,kLd,uL5,BJC,PF,ZyV,MxV,qg2,RoV,pid,Xy,GLC,Hyz,NI,Jg2,stF,uz,E07,Td,rgz,Agd,dA7,zoz,mAV,EcS,h3,DAX,gcC,F76,Qt1,wi5,B71,So,yg2,ocz,eoX,Cn6,vcV,tx0,UA7,L7q,BF,jo,l6d,iz,byd,cg7,xAq,f67,Vx1,Zb,nc0,b3S,fn,NJq,M7,a62,Wcv,YAX,$fq,k$1,t3,q7,jKX,I1q,XNq,POC,T_d,RW,OqF,hvv, B_d,uvS,ZqV,HF,iqC,Msd,tsS,nd,qAC,Hq7,nM2,pNC,pd,Rvd,Gd,Kd,G$0,Kc7,EMS,Jid,sKq,ri1,Aiv,sS,ES,J3,zv5,r$,df5,mfV,DfV,gMF,wN5,Fc1,g$,yiC,evC,QKF,oM7,Fy,vMV,w$,CO0,QA,LcC,Ufd,ciz,Vsd,l15,xfV,yA,bqz,f1V,N_7,a1z,WB0,Y0z,oW,$T1,Ld,vF,kF2,US,lz,Td0,jw0,cF,xH,IU2,bz,fd,S02,Xz7,N7,aW,WK,OfC,h8S,BdC,Y6,uqC,tXz,ifd,Zf2,MXV,$6,R8d,GFd,KBS,k6,Eq7,HfF,JTF,PK,nqS,ATd,T7,dTF,z85,mTd,DT5,gqd,FBz,XS,yT5,e82,oqX,SJ,Qw6,LBz,ID,hJ,BK,wzv,bfF,lUv,ME,cT5,fU1,aUS,xTv,tJ,Zy,RD,iT,NdV,VX5,qE,WeX,HK,Yw6,$pF,kIC,nO,pO,PV2,Tb6, jM7,Ia5,XmC,Sw7,hmV,uWv,Bb7,ZgS,igC,qwC,Rm0,Jy6,Dy,Ayd,mp0,dp0,zmv,Ked,E_z,Hgd,pm7,sM5,gK,FS,g_7,cV,EkC,FeF,Q3,eJ,wmv,QMz,n_0,ryd,emV,o_7,v_X,vK,oD,x6,Lez,Upd,laV,fO,bg6,xp2,cyd,faq,V3,NE,VAV,WCX,YOF,Yc,aaF,$oC,kk2,Nb1,Pi,Prq,TNd,kc,juV,Ijq,Xo1,SO5,BN1,hdX,ZGd,iG0,OGF,tFF,qO6,u1v,It,XL,Rd1,KCX,Sx,HGC,nPz,Gk6,po6,EPd,sud,J51,r5F,hg,A5F,zdz,do1,mod,Do5,gPF,FC6,Qu0,wov,y5C,edV,oP0,vP0,Cr1,Uo6,Og,Bi,un,lj7,bGd,LC2,NN2,ajS,W0X,kPv,$rS,Y_v,Pyd,TQS,Z6,MA,jSd,I80,XfV,S_d,BQ2,OEv,qA,uVv,tg,Hi,hOC,ny,ZEX,iEd, M3F,t3d,q_5,py,ROX,HE0,GPS,GL,K0v,pfd,Ky,Eg,Jg,J0d,sS2,r05,EYX,zO2,A00,drS,sg,mr0,Drd,F0S,y07,gYd,wf5,rJ,eOv,vY0,Cyd,Ur2,l8C,Ag,zL,bEX,oYS,f8d,xrC,c01,dJ,m7,NQq,V30,D6,gJ,FL,a85,wJ,WDd,Yeq,$Jq,kQ2,Qj,PLv,yj,TuX,ex,jGd,ot,vi,Io1,Cy,XUV,Ly,Ug,htq,ut5,Z9V,SeX,i9F,qe6,Rt7,H9d,tZS,MZX,pU0,nU2,GQ1,Jzd,ci,rz2,sGq,KDX,EUV,AzV,ztF,xc,fy,dJz,mJ1,DJ2,gUv,FD1,wUS,yz1,et5,czF,CL6,LDd,oU0,foq,$M,PN,YB6,$1d,IK,kjS,Xv,Pcv,VZq,YM,BN,hi,T$,jUz,Ir1,OA,SB5,BI0,hu2,uO,js,WN,XX7,Ss,Nud,TI7,uN1,Vj,Z1,Z4F,i4z,kM,aoz,iO, Mf,Mf6,ti,qf,tf6,RK,qBq,RuC,nv5,pXv,H4C,HN,GjX,nq,pq,K82,Evd,JXV,sUV,AXF,zuF,m1z,d15,D1C,Kq,G$,rXd,gv2,wXS,F8z,EA,Ji,QUd,eu5,ovC,sA,yXS,vvq,Cc7,U16,r_,L85,lr5,b4C,cXd,z$,d_,frd,x1z,Vfq,mc,D1,arF,NI0,WPd,$M1,Y3d,kUq,Fv,PR1,TCv,QV,j$F,XxC,II1,es,S3X,hIF,BCX,u3F,ZpC,ipv,Op6,ML1,tLF,q3d,RIS,Hpq,nz1,px6,GUX,KP2,Cq,Ezq,Js0,s$5,Asz,DMv,dMC,rs2,lO,zI6,UA,mMq,bO,FPd,gzS,cN,Q$5,ysF,eIC,vLV,Nf,FGF,fq,aK,VV,Yq,ozS,$q,lI1,bpS,csv,fIC,xMz,VLS,NCC,aId,W_d,$h7,kqS,PvS,Thq,Ymd,O0q,ufS,Bh7,Z02,MgS,qm0,Rnq,H0q,Iw,tg7, i01,jEC,Xq,GqS,K_5,pYd,nlX,sEd,JY1,rYv,AYF,znC,dhd,SX,mh2,SmS,TF,DhF,gl7,F_z,wYd,IF2,XY7,jX,Bz,enq,ol2,vlv,QE2,hT,yYX,L_6,cY6,u1,xh1,fF6,lF0,i1,Vg6,NhX,CvF,aF1,b0F,WIS,MT,ZU,YR2,kEq,$z5,O0,T1d,tT,K76,jZ0,SRC,XcS,B15,Owv,hc1,Rw,qT,Zw1,iwV,MTF,tT2,zcS,JFd,sZF,KIX,GE5,pf,gCq,mz1,FIX,wcd,nf,Kf,E0,oC5,ec0,yFd,s0,AFd,dd,CMF,zF,JT,UzF,lL7,bwd,dzq,gd,wd,cFd,rFC,vCV,rd,xzv,GF,fLS,VTd,N11,eX,LId,aLV,Wtv,ow,vz,Y85,AT,DzX,$Y0,krd,Fq,PId,mB,T45,DU,wW,j6F,Xtz,Cf,Lf,S86,h6F,B4z,y9,Q9,Osq,IL6,uaz,ECF,Zsv,isd,MHd, tH7,U0,l1,Hs7,GrX,E2z,R6F,DYv,g20,Ft7,wt1,Q6V,yc5,e66,v2d,o20,b1,cz,xq,CId,Lt2,UY7,qZ,lH7,ff,bsC,V9,ccd,NT,aw,xY1,h_,Wm,F4,fH1,fR,QAz,VHF,r0,N47,IL,Xi,aHz,Ja,WVB,Y21,Ve,Ux0,$6z,k1N,PFz,Y_,jdQ,IXc,$_,Pm,TI,Xdh,Bv$,OC9,jA,u7$,S2K,iCB,hSc,ZCK,MzN,tz$,q2j,RSj,IM,n5i,wJF,XQ,JA,pdK,G11,AA,HCh,iH,KVi,E5w,Jqp,XW,UM,rqp,Aqc,SA,hy,zSh,Bm,Ow,k_,d6B,m6K,PtV,uV,Za,D6Q,iV,Mp,g5z,ty,FVw,qp,RM,wdc,Qd1,mk7,Hm,yqc,o5K,eSi,ng,pg,v5c,GI,CFp,LVz,U6j,lXB,bCc,cqQ,fXh,Ew,x6K,Vz1,Nvc,aXj,W1N,PQB,YKi,$cQ,kKQ,jjQ,Xpz,SKj,h9h, IcN,Jy,BB$,O$c,uzQ,Z$N,i$1,Ay,Mwz,zI,db,me,tw9,qKK,H$z,nhw,pp1,GK$,Eh9,K1w,JNQ,Da,gb,ANj,sj1,rNQ,FW,z9z,dc$,wb,QU,mcB,yU,Dcc,eA,ghp,oM,vm,F1K,Cg,Lg,wpc,Qjp,Uw,lV,yNw,bV,e9$,ohK,VU,Np,vhK,CQj,L1K,b$j,lcB,aM,cNK,xcK,fc$,vSC,UcN,NBz,acj,YxB,WVv,hq;Wd=function(W){return function(){return WVv[W].apply(this,arguments)}}; g.Pd=function(W,Y){return WVv[W]=Y}; Y2V=function(W){var Y=0;return function(){return Y=this.length))return this[W]}; x5=function(W){return W?W:bF}; u7C=function(W,Y,k){W instanceof String&&(W=String(W));for(var P=W.length-1;P>=0;P--){var T=W[P];if(Y.call(k,T,P,W))return{iT:P,Ou:T}}return{iT:-1,Ou:void 0}}; fC=function(W){return W?W:function(Y,k){return u7C(this,Y,k).iT}}; g.N6=function(W,Y,k){W=W.split(".");k=k||g.V0;for(var P;W.length&&(P=W.shift());)W.length||Y===void 0?k[P]&&k[P]!==Object.prototype[P]?k=k[P]:k=k[P]={}:k[P]=Y}; $h=function(W,Y){var k=g.Wp("CLOSURE_FLAGS");W=k&&k[W];return W!=null?W:Y}; g.Wp=function(W,Y){W=W.split(".");Y=Y||g.V0;for(var k=0;k2){var P=Array.prototype.slice.call(arguments,2);return function(){var T=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(T,P);return W.apply(Y,T)}}return function(){return W.apply(Y,arguments)}}; g.Xz=function(W,Y,k){g.Xz=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Mzq:tzC;return g.Xz.apply(null,arguments)}; g.hN=function(W,Y){var k=Array.prototype.slice.call(arguments,1);return function(){var P=k.slice();P.push.apply(P,arguments);return W.apply(this,P)}}; g.Bp=function(){return Date.now()}; OK=function(W){return W}; g.uQ=function(W,Y){function k(){} k.prototype=Y.prototype;W.Ku=Y.prototype;W.prototype=new k;W.prototype.constructor=W;W.b5=function(P,T,I){for(var X=Array(arguments.length-2),h=2;h=0;--k)k in P&&Y.call(void 0,P[k],k,W)}; g.qc=function(W,Y,k){Y=tN(W,Y,k);return Y<0?null:typeof W==="string"?W.charAt(Y):W[Y]}; tN=function(W,Y,k){for(var P=W.length,T=typeof W==="string"?W.split(""):W,I=0;I=0;P--)if(P in T&&Y.call(k,T[P],P,W))return P;return-1}; g.n$=function(W,Y){return pd2(W,Y)>=0}; G1V=function(W){if(!Array.isArray(W))for(var Y=W.length-1;Y>=0;Y--)delete W[Y];W.length=0}; g.GK=function(W,Y){Y=pd2(W,Y);var k;(k=Y>=0)&&g.p$(W,Y);return k}; g.p$=function(W,Y){return Array.prototype.splice.call(W,Y,1).length==1}; g.rB=function(W,Y){Y=tN(W,Y);Y>=0&&g.p$(W,Y)}; KV0=function(W,Y){var k=0;n50(W,function(P,T){Y.call(void 0,P,T,W)&&g.p$(W,T)&&k++})}; g.AN=function(W){return Array.prototype.concat.apply([],arguments)}; g.zK=function(W){var Y=W.length;if(Y>0){for(var k=Array(Y),P=0;P>>1),B=void 0;k?B=Y.call(void 0,W[h],h,W):B=Y(P,W[h]);B>0?T=h+1:(I=h,X=!B)}return X?T:-T-1}; g.lQ=function(W,Y){W.sort(Y||oj)}; sdq=function(W,Y){var k=oj;g.lQ(W,function(P,T){return k(Y(P),Y(T))})}; g.bQ=function(W,Y,k){if(!g.kh(W)||!g.kh(Y)||W.length!=Y.length)return!1;var P=W.length;k=k||rqd;for(var T=0;TY?1:W0&&(Y[T]=P)},W); return Y}; yqX=function(W){W=sx(W);var Y=[];g.Nc(W,function(k,P){P in Object.prototype||typeof k!="undefined"&&Y.push([P,":",k].join(""))}); return Y}; o52=function(W){Gm(W,"od",eS0);Gm(W,"opac",rY).W=!0;Gm(W,"sbeos",rY).W=!0;Gm(W,"prf",rY).W=!0;Gm(W,"mwt",rY).W=!0;Gm(W,"iogeo",rY)}; Am=function(W,Y){return W.lastIndexOf(Y,0)==0}; v56=function(W,Y){var k=W.length-Y.length;return k>=0&&W.indexOf(Y,k)==k}; g.zm=function(W){return/^[\s\xa0]*$/.test(W)}; g.dY=function(W,Y){return W.indexOf(Y)!=-1}; mU=function(W,Y){return g.dY(W.toLowerCase(),Y.toLowerCase())}; g.FD=function(W,Y){var k=0;W=DR(String(W)).split(".");Y=DR(String(Y)).split(".");for(var P=Math.max(W.length,Y.length),T=0;k==0&&TY?1:0}; g.wY=function(){var W=g.V0.navigator;return W&&(W=W.userAgent)?W:""}; oq=function(W){if(!QC&&!yC||!eV)return!1;for(var Y=0;Y0:!1}; lj=function(){return Ux()?!1:LT("Opera")}; CFd=function(){return Ux()?!1:LT("Trident")||LT("MSIE")}; LV7=function(){return Ux()?oq("Microsoft Edge"):LT("Edg/")}; bj=function(){return LT("Firefox")||LT("FxiOS")}; x8=function(){return LT("Safari")&&!(ck()||(Ux()?0:LT("Coast"))||lj()||(Ux()?0:LT("Edge"))||LV7()||(Ux()?oq("Opera"):LT("OPR"))||bj()||LT("Silk")||LT("Android"))}; ck=function(){return Ux()?oq("Chromium"):(LT("Chrome")||LT("CriOS"))&&!(Ux()?0:LT("Edge"))||LT("Silk")}; U6d=function(){return LT("Android")&&!(ck()||bj()||lj()||LT("Silk"))}; lXv=function(W){var Y={};W.forEach(function(k){Y[k[0]]=k[1]}); return function(k){return Y[k.find(function(P){return P in Y})]||""}}; bC6=function(W){var Y=g.wY();if(W==="Internet Explorer"){if(CFd())if((W=/rv: *([\d\.]*)/.exec(Y))&&W[1])Y=W[1];else{W="";var k=/MSIE +([\d\.]+)/.exec(Y);if(k&&k[1])if(Y=/Trident\/(\d.\d)/.exec(Y),k[1]=="7.0")if(Y&&Y[1])switch(Y[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=k[1];Y=W}else Y="";return Y}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");k=[];for(var T;T=P.exec(Y);)k.push([T[1],T[2],T[3]||void 0]); Y=lXv(k);switch(W){case "Opera":if(lj())return Y(["Version","Opera"]);if(Ux()?oq("Opera"):LT("OPR"))return Y(["OPR"]);break;case "Microsoft Edge":if(Ux()?0:LT("Edge"))return Y(["Edge"]);if(LV7())return Y(["Edg"]);break;case "Chromium":if(ck())return Y(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&bj()||W==="Safari"&&x8()||W==="Android Browser"&&U6d()||W==="Silk"&<("Silk")?(Y=k[2])&&Y[1]||"":""}; cqF=function(W){if(Ux()&&W!=="Silk"){var Y=eV.brands.find(function(k){return k.brand===W}); if(!Y||!Y.version)return NaN;Y=Y.version.split(".")}else{Y=bC6(W);if(Y==="")return NaN;Y=Y.split(".")}return Y.length===0?NaN:Number(Y[0])}; fX5=function(){var W=null;if(!x62)return W;try{var Y=function(k){return k}; W=x62.createPolicy("goog#html",{createHTML:Y,createScript:Y,createScriptURL:Y})}catch(k){}return W}; VC=function(){fT===void 0&&(fT=fX5());return fT}; NS=function(W){this.W=W}; aq=function(W){var Y=VC();W=Y?Y.createScriptURL(W):W;return new NS(W)}; WZ=function(W){if(W instanceof NS)return W.W;throw Error("");}; Y$=function(W){this.W=W}; g.k$=function(W){if(W instanceof Y$)return W.W;throw Error("");}; PZ=function(W){this.Nt=W}; T6=function(W){return new PZ(function(Y){return Y.substr(0,W.length+1).toLowerCase()===W+":"})}; g.je=function(W,Y){Y=Y===void 0?VzV:Y;a:if(Y=Y===void 0?VzV:Y,!(W instanceof Y$)){for(var k=0;k4);T++)Y[Kc(W[T])]||(k+="\nInner error "+P++ +": ",W[T].stack&&W[T].stack.indexOf(W[T].toString())==0||(k+=typeof W[T]==="string"?W[T]:W[T].message+"\n"),k+=pc(W[T],Y));T")!=-1&&(W=W.replace(SKd,">")),W.indexOf('"')!=-1&&(W=W.replace(h95,""")),W.indexOf("'")!=-1&&(W=W.replace(BBC,"'")),W.indexOf("\x00")!=-1&&(W=W.replace(O$6,"�")));return W}; g.z6=function(W){return W==null?"":String(W)}; dE=function(W){for(var Y=0,k=0;k>>0;return Y}; mu=function(W){var Y=Number(W);return Y==0&&g.zm(W)?NaN:Y}; uzF=function(W){return String(W).replace(/\-([a-z])/g,function(Y,k){return k.toUpperCase()})}; Z$q=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; i$V=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Y,k,P){return k+P.toUpperCase()})}; Mw7=function(W){var Y=1;W=W.split(":");for(var k=[];Y>0&&W.length;)k.push(W.shift()),Y--;W.length&&k.push(W.join(":"));return k}; DY=function(){return QC||yC?!!eV&&!!eV.platform:!1}; twS=function(){return DY()?eV.platform==="Android":LT("Android")}; gE=function(){return LT("iPhone")&&!LT("iPod")&&!LT("iPad")}; FZ=function(){return gE()||LT("iPad")||LT("iPod")}; wE=function(){return DY()?eV.platform==="macOS":LT("Macintosh")}; qK2=function(){return DY()?eV.platform==="Windows":LT("Windows")}; Qg=function(W){Qg[" "](W);return W}; R9C=function(W,Y){try{return Qg(W[Y]),!0}catch(k){}return!1}; nhz=function(W,Y){var k=H$7;return Object.prototype.hasOwnProperty.call(k,W)?k[W]:k[W]=Y(W)}; g.yg=function(W){return nhz(W,function(){return g.FD(ppV,W)>=0})}; g.ee=function(W,Y,k){return Math.min(Math.max(W,Y),k)}; g.op=function(W,Y){W%=Y;return W*Y<0?W+Y:W}; vZ=function(W,Y,k){return W+k*(Y-W)}; g.Cc=function(W,Y){this.x=W!==void 0?W:0;this.y=Y!==void 0?Y:0}; Lc=function(W,Y){return W==Y?!0:W&&Y?W.x==Y.x&&W.y==Y.y:!1}; g.UF=function(W,Y){this.width=W;this.height=Y}; g.l7=function(W,Y){return W==Y?!0:W&&Y?W.width==Y.width&&W.height==Y.height:!1}; b7=function(W){return W.width*W.height}; x$=function(W,Y){this.W=W===cZ&&Y||""}; fc=function(W){if(W instanceof BZ)return W;W=String(W).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return OF(W)}; K1z=function(W){return GKC(W)}; GKC=function(W){var Y=fc("");return OF(W.map(function(k){return u7(fc(k))}).join(u7(Y).toString()))}; ANd=function(W){var Y;if(!EhS.test("div"))throw Error("");if(JNF.indexOf("DIV")!==-1)throw Error("");var k="":(W=K1z(Y.map(function(P){return P instanceof BZ?P:fc(String(P))})),k+=">"+W.toString()+""); return OF(k)}; sjV=function(W){for(var Y="",k=Object.keys(W),P=0;P2&&wpX(T,X,P,2);return X}; wpX=function(W,Y,k,P){function T(h){h&&Y.appendChild(typeof h==="string"?W.createTextNode(h):h)} for(;P0)T(I);else{a:{if(I&&typeof I.length=="number"){if(g.Pp(I)){var X=typeof I.item=="function"||typeof I.item=="string";break a}if(typeof I==="function"){X=typeof I.item=="function";break a}}X=!1}g.xh(X?g.zK(I):I,T)}}}; g.um=function(W){return BL(document,W)}; BL=function(W,Y){Y=String(Y);W.contentType==="application/xhtml+xml"&&(Y=Y.toLowerCase());return W.createElement(Y)}; g.Z5=function(W){return document.createTextNode(String(W))}; g.im=function(W,Y){W.appendChild(Y)}; g.MB=function(W){for(var Y;Y=W.firstChild;)W.removeChild(Y)}; tv=function(W,Y,k){W.insertBefore(Y,W.childNodes[k]||null)}; g.qB=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null}; g.R_=function(W,Y){if(!W||!Y)return!1;if(W.contains&&Y.nodeType==1)return W==Y||W.contains(Y);if(typeof W.compareDocumentPosition!="undefined")return W==Y||!!(W.compareDocumentPosition(Y)&16);for(;Y&&W!=Y;)Y=Y.parentNode;return Y==W}; ap=function(W){return W.nodeType==9?W:W.ownerDocument||W.document}; g.HL=function(W,Y){if("textContent"in W)W.textContent=Y;else if(W.nodeType==3)W.data=String(Y);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(Y)}else g.MB(W),W.appendChild(ap(W).createTextNode(String(Y)))}; yNz=function(W){return W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?!W.disabled&&(!W.hasAttribute("tabindex")||Qjd(W)):W.hasAttribute("tabindex")&&Qjd(W)}; Qjd=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768}; Eh=function(W,Y,k){if(!Y&&!k)return null;var P=Y?String(Y).toUpperCase():null;return KX(W,function(T){return(!P||T.nodeName==P)&&(!k||typeof T.className==="string"&&g.n$(T.className.split(/\s+/),k))},!0)}; KX=function(W,Y,k){W&&!k&&(W=W.parentNode);for(k=0;W;){if(Y(W))return W;W=W.parentNode;k++}return null}; NL=function(W){this.W=W||g.V0.document||document}; e9C=function(){this.W=this.aE=null}; Jv=function(){}; rs=function(){if(!sh())throw Error();}; sh=function(){return!(!Av||!Av.performance)}; oh1=function(W){return g.Sh?"webkit"+W:W.toLowerCase()}; za=function(W){return function(){return W}}; g.ds=function(){}; vh1=function(W){var Y=Y||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,Y))}}; mT=function(W){var Y=!1,k;return function(){Y||(k=W(),Y=!0);return k}}; D5=function(W){var Y=W;return function(){if(Y){var k=Y;Y=null;k()}}}; gs=function(W,Y,k){var P=0;return function(T){g.V0.clearTimeout(P);var I=arguments;P=g.V0.setTimeout(function(){W.apply(k,I)},Y)}}; FG=function(W,Y,k,P){this.top=W;this.right=Y;this.bottom=k;this.left=P}; ws=function(W){return W.right-W.left}; Q7=function(W,Y){return W==Y?!0:W&&Y?W.top==Y.top&&W.right==Y.right&&W.bottom==Y.bottom&&W.left==Y.left:!1}; y7=function(W,Y,k){Y instanceof g.Cc?(W.left+=Y.x,W.right+=Y.x,W.top+=Y.y,W.bottom+=Y.y):(W.left+=Y,W.right+=Y,typeof k==="number"&&(W.top+=k,W.bottom+=k));return W}; g.eh=function(W,Y,k,P){this.left=W;this.top=Y;this.width=k;this.height=P}; o_=function(W,Y){return W==Y?!0:W&&Y?W.left==Y.left&&W.width==Y.width&&W.top==Y.top&&W.height==Y.height:!1}; g.CX=function(W,Y,k){if(typeof Y==="string")(Y=vL(W,Y))&&(W.style[Y]=k);else for(var P in Y){k=W;var T=Y[P],I=vL(k,P);I&&(k.style[I]=T)}}; vL=function(W,Y){var k=CQd[Y];if(!k){var P=uzF(Y);k=P;W.style[P]===void 0&&(P=(g.Sh?"Webkit":LX?"Moz":null)+i$V(P),W.style[P]!==void 0&&(k=P));CQd[Y]=k}return k}; g.Uh=function(W,Y){var k=W.style[uzF(Y)];return typeof k!=="undefined"?k:W.style[vL(W,Y)]||""}; lm=function(W,Y){var k=ap(W);return k.defaultView&&k.defaultView.getComputedStyle&&(W=k.defaultView.getComputedStyle(W,null))?W[Y]||W.getPropertyValue(Y)||"":""}; bm=function(W,Y){return lm(W,Y)||(W.currentStyle?W.currentStyle[Y]:null)||W.style&&W.style[Y]}; g.xs=function(W,Y,k){if(Y instanceof g.Cc){var P=Y.x;Y=Y.y}else P=Y,Y=k;W.style.left=g.cL(P,!1);W.style.top=g.cL(Y,!1)}; fX=function(W){try{return W.getBoundingClientRect()}catch(Y){return{left:0,top:0,right:0,bottom:0}}}; L11=function(W){var Y=ap(W),k=bm(W,"position"),P=k=="fixed"||k=="absolute";for(W=W.parentNode;W&&W!=Y;W=W.parentNode)if(W.nodeType==11&&W.host&&(W=W.host),k=bm(W,"position"),P=P&&k=="static"&&W!=Y.documentElement&&W!=Y.body,!P&&(W.scrollWidth>W.clientWidth||W.scrollHeight>W.clientHeight||k=="fixed"||k=="absolute"||k=="relative"))return W;return null}; g.V7=function(W){var Y=ap(W),k=new g.Cc(0,0);if(W==(Y?ap(Y):document).documentElement)return k;W=fX(W);Y=$s(Y);Y=F12(Y.W);k.x=W.left+Y.x;k.y=W.top+Y.y;return k}; lcv=function(W,Y){var k=new g.Cc(0,0),P=hv(ap(W));if(!R9C(P,"parent"))return k;do{var T=P==Y?g.V7(W):Ucq(W);k.x+=T.x;k.y+=T.y}while(P&&P!=Y&&P!=P.parent&&(W=P.frameElement)&&(P=P.parent));return k}; g.NB=function(W,Y){W=b$d(W);Y=b$d(Y);return new g.Cc(W.x-Y.x,W.y-Y.y)}; Ucq=function(W){W=fX(W);return new g.Cc(W.left,W.top)}; b$d=function(W){if(W.nodeType==1)return Ucq(W);W=W.changedTouches?W.changedTouches[0]:W;return new g.Cc(W.clientX,W.clientY)}; g.a_=function(W,Y,k){if(Y instanceof g.UF)k=Y.height,Y=Y.width;else if(k==void 0)throw Error("missing height argument");W.style.width=g.cL(Y,!0);W.style.height=g.cL(k,!0)}; g.cL=function(W,Y){typeof W=="number"&&(W=(Y?Math.round(W):W)+"px");return W}; g.Wl=function(W){var Y=cN1;if(bm(W,"display")!="none")return Y(W);var k=W.style,P=k.display,T=k.visibility,I=k.position;k.visibility="hidden";k.position="absolute";k.display="inline";W=Y(W);k.display=P;k.position=I;k.visibility=T;return W}; cN1=function(W){var Y=W.offsetWidth,k=W.offsetHeight,P=g.Sh&&!Y&&!k;return(Y===void 0||P)&&W.getBoundingClientRect?(W=fX(W),new g.UF(W.right-W.left,W.bottom-W.top)):new g.UF(Y,k)}; g.Ya=function(W,Y){W.style.display=Y?"":"none"}; $a=function(W){return W?W.passive&&xc1()?W:W.capture||!1:!1}; ka=function(W,Y,k,P){return typeof W.addEventListener==="function"?(W.addEventListener(Y,k,$a(P)),!0):!1}; Pl=function(W){if(W.prerendering)return 3;var Y;return(Y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?Y:0}; fcC=function(){}; Te=function(W){try{return!!W&&W.location.href!=null&&R9C(W,"foo")}catch(Y){return!1}}; VwS=function(W){for(var Y=W;W&&W!=W.parent;)W=W.parent,Te(W)&&(Y=W);return Y}; NB7=function(){return(QC||yC)&&eV?eV.mobile:!j9()&&(LT("iPod")||LT("iPhone")||LT("Android")||LT("IEMobile"))}; j9=function(){return(QC||yC)&&eV?!eV.mobile&&(LT("iPad")||LT("Android")||LT("Silk")):LT("iPad")||LT("Android")&&!LT("Mobile")||LT("Silk")}; acd=function(W){var Y,k;return(k=(Y=/https?:\/\/[^\/]+/.exec(W))==null?void 0:Y[0])!=null?k:""}; WUd=function(){var W=I3.URL;if(!W)return"";var Y=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var k=Y.exec(decodeURIComponent(W));if(k)return k[1]&&k[1].length>1?k[1].substring(1):"true"}catch(P){}return""}; Pjz=function(W){W=W||XX();for(var Y=new Yxv(g.V0.location.href,!1),k=null,P=W.length-1,T=P;T>=0;--T){var I=W[T];!k&&$Sd.test(I.url)&&(k=I);if(I.url&&!I.W){Y=I;break}}T=null;I=W.length&&W[P].url;Y.depth!==0&&I&&(T=W[P]);return new km0(Y,T,k)}; XX=function(){var W=g.V0,Y=[],k=null;do{var P=W;if(Te(P)){var T=P.location.href;k=P.document&&P.document.referrer||null}else T=k,k=null;Y.push(new Yxv(T||""));try{W=P.parent}catch(I){W=null}}while(W&&P!==W);P=0;for(W=Y.length-1;P<=W;++P)Y[P].depth=W-P;P=g.V0;if(P.location&&P.location.ancestorOrigins&&P.location.ancestorOrigins.length===Y.length-1)for(W=1;WY&&(Y=k.length);return 3997-Y-W.J.length-1}; M_=function(W,Y){this.W=W;this.depth=Y}; uDF=function(){function W(h,B){return h==null?B:h} var Y=XX(),k=Math.max(Y.length-1,0),P=Pjz(Y);Y=P.W;var T=P.K,I=P.J,X=[];I&&X.push(new M_([I.url,I.W?2:0],W(I.depth,1)));T&&T!=I&&X.push(new M_([T.url,2],0));Y.url&&Y!=I&&X.push(new M_([Y.url,0],W(Y.depth,k)));P=g.tx(X,function(h,B){return X.slice(0,X.length-B)}); !Y.url||(I||T)&&Y!=I||(T=acd(Y.url))&&P.push([new M_([T,1],W(Y.depth,k))]);P.push([]);return g.tx(P,function(h){return OT1(k,h)})}; OT1=function(W,Y){g.q_(Y,function(T){return T.depth>=0}); var k=R3(Y,function(T,I){return Math.max(T,I.depth)},-1),P=AqX(k+2); P[0]=W;g.xh(Y,function(T){return P[T.depth+1]=T.W}); return P}; ZTz=function(){var W=W===void 0?uDF():W;return W.map(function(Y){return iq(Y)})}; iTF=function(W){var Y=!1;Y=Y===void 0?!1:Y;Av.google_image_requests||(Av.google_image_requests=[]);var k=IRX("IMG",Av.document);Y&&(k.attributionSrc="");k.src=W;Av.google_image_requests.push(k)}; Hl=function(W){var Y="u_";if(W.u_&&W.hasOwnProperty(Y))return W.u_;var k=new W;W.u_=k;W.hasOwnProperty(Y);return k}; nB=function(){this.K=new fcC;this.W=sh()?new rs:new Jv}; MV7=function(){pB();var W=Av.document;return!!(W&&W.body&&W.body.getBoundingClientRect&&typeof Av.setInterval==="function"&&typeof Av.clearInterval==="function"&&typeof Av.setTimeout==="function"&&typeof Av.clearTimeout==="function")}; tVS=function(){pB();return ZTz()}; qx7=function(){}; pB=function(){var W=Hl(qx7);if(!W.W){if(!Av)throw Error("Context has not been set and window is undefined.");W.W=Hl(nB)}return W.W}; Ge=function(){throw Error("Invalid UTF8");}; R50=function(W,Y){Y=String.fromCharCode.apply(null,Y);return W==null?Y:W+Y}; Gm0=function(W){var Y=!1;Y=Y===void 0?!1:Y;if(HTd){if(Y&&(n85?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("Found an unpaired surrogate");W=(pk7||(pk7=new TextEncoder)).encode(W)}else{for(var k=0,P=new Uint8Array(3*W.length),T=0;T>6|192;else{if(I>=55296&&I<=57343){if(I<=56319&&T=56320&&X<=57343){I=(I-55296)*1024+ X-56320+65536;P[k++]=I>>18|240;P[k++]=I>>12&63|128;P[k++]=I>>6&63|128;P[k++]=I&63|128;continue}else T--}if(Y)throw Error("Found an unpaired surrogate");I=65533}P[k++]=I>>12|224;P[k++]=I>>6&63|128}P[k++]=I&63|128}}W=k===P.length?P:P.subarray(0,k)}return W}; KB=function(W){g.V0.setTimeout(function(){throw W;},0)}; KUd=function(W){return Array.prototype.map.call(W,function(Y){Y=Y.toString(16);return Y.length>1?Y:"0"+Y}).join("")}; E81=function(W){for(var Y=[],k=0;k>6|192:((T&64512)==55296&&P+1>18|240,Y[k++]=T>>12&63|128):Y[k++]=T>>12|224,Y[k++]=T>>6&63|128),Y[k++]=T&63|128)}return Y}; g.Jx=function(W,Y){Y===void 0&&(Y=0);JmF();Y=sqz[Y];for(var k=Array(Math.floor(W.length/3)),P=Y[64]||"",T=0,I=0;T>2];X=Y[(X&3)<<4|h>>4];h=Y[(h&15)<<2|B>>6];B=Y[B&63];k[I++]=""+O+X+h+B}O=0;B=P;switch(W.length-T){case 2:O=W[T+1],B=Y[(O&15)<<2]||P;case 1:W=W[T],k[I]=""+Y[W>>2]+Y[(W&3)<<4|O>>4]+B+P}return k.join("")}; g.s$=function(W,Y,k){if(rmS&&!Y)W=g.V0.btoa(W);else{for(var P=[],T=0,I=0;I255){var h=Error("go/unicode-to-byte-error");if(k)throw h;P[T++]=X&255;X>>=8}P[T++]=X}W=g.Jx(P,Y)}return W}; z55=function(W){var Y=[];AmC(W,function(k){Y.push(k)}); return Y}; rZ=function(W){var Y=W.length,k=Y*3/4;k%3?k=Math.floor(k):g.dY("=.",W[Y-1])&&(k=g.dY("=.",W[Y-2])?k-2:k-1);var P=new Uint8Array(k),T=0;AmC(W,function(I){P[T++]=I}); return T!==k?P.subarray(0,T):P}; AmC=function(W,Y){function k(B){for(;P>4);X!=64&&(Y(I<<4&240|X>>2),h!=64&&Y(X<<6&192|h))}}; JmF=function(){if(!Ax){Ax={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Y=["+/=","+/","-_=","-_.","-_"],k=0;k<5;k++){var P=W.concat(Y[k].split(""));sqz[k]=P;for(var T=0;T=Y||(P[W]=k+1,W=Error(),PQv(W,"incident"),KB(W))}}; QL=function(W,Y,k){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(k===void 0?0:k)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():Y}; o3=function(W,Y){yL||e9 in W||o8F(W,v8d);W[e9]|=Y}; vl=function(W,Y){yL||e9 in W||o8F(W,v8d);W[e9]=Y}; CB=function(){return typeof BigInt==="function"}; U$=function(W,Y){return Y===void 0?W.W!==LB&&!!(2&(W.h5[e9]|0)):!!(2&Y)&&W.W!==LB}; Cj5=function(W,Y){if(W!=null)if(typeof W==="string")W=W?new ze(W,dZ):ma();else if(W.constructor!==ze)if(ym6&&W!=null&&W instanceof Uint8Array)W=W.length?new ze(new Uint8Array(W),dZ):ma();else{if(!Y)throw Error();W=void 0}return W}; lq=function(W,Y){if(typeof Y!=="number"||Y<0||Y>=W.length)throw Error();}; LUv=function(W,Y,k){var P=Y&128?0:-1,T=W.length,I;if(I=!!T)I=W[T-1],I=I!=null&&typeof I==="object"&&I.constructor===Object;var X=T+(I?-1:0);for(Y=Y&128?1:0;YY.length)return!1;if(W.lengthT)return!1;if(P>>0;W7=Y;YI=(W-Y)/4294967296>>>0}; P7=function(W){if(W<0){$I(0-W);var Y=g.p(kI(W7,YI));W=Y.next().value;Y=Y.next().value;W7=W>>>0;YI=Y>>>0}else $I(W)}; jn=function(W,Y){var k=Y*4294967296+(W>>>0);return Number.isSafeInteger(k)?k:TZ(W,Y)}; cm1=function(W,Y){var k=Y&2147483648;k&&(W=~W+1>>>0,Y=~Y>>>0,W==0&&(Y=Y+1>>>0));W=jn(W,Y);return typeof W==="number"?k?-W:W:k?"-"+W:W}; TZ=function(W,Y){Y>>>=0;W>>>=0;if(Y<=2097151)var k=""+(4294967296*Y+W);else CB()?k=""+(BigInt(Y)<>>24|Y<<8)&16777215,Y=Y>>16&65535,W=(W&16777215)+k*6777216+Y*6710656,k+=Y*8147497,Y*=2,W>=1E7&&(k+=W/1E7>>>0,W%=1E7),k>=1E7&&(Y+=k/1E7>>>0,k%=1E7),k=Y+xSz(k)+xSz(W));return k}; xSz=function(W){W=String(W);return"0000000".slice(W.length)+W}; fR5=function(){var W=W7,Y=YI;Y&2147483648?CB()?W=""+(BigInt(Y|0)<>>0)):(Y=g.p(kI(W,Y)),W=Y.next().value,Y=Y.next().value,W="-"+TZ(W,Y)):W=TZ(W,Y);return W}; IX=function(W){if(W.length<16)P7(Number(W));else if(CB())W=BigInt(W),W7=Number(W&BigInt(4294967295))>>>0,YI=Number(W>>BigInt(32)&BigInt(4294967295));else{var Y=+(W[0]==="-");YI=W7=0;for(var k=W.length,P=0+Y,T=(k-Y)%6+Y;T<=k;P=T,T+=6)P=Number(W.slice(P,T)),YI*=1E6,W7=W7*1E6+P,W7>=4294967296&&(YI+=Math.trunc(W7/4294967296),YI>>>=0,W7>>>=0);Y&&(Y=g.p(kI(W7,YI)),W=Y.next().value,Y=Y.next().value,W7=W,YI=Y)}}; kI=function(W,Y){Y=~Y;W?W=~W+1:Y+=1;return[W,Y]}; Xw=function(W){return Array.prototype.slice.call(W)}; Sn=function(W){if(W!=null&&typeof W!=="number")throw Error("Value of float/double field must be a number, found "+typeof W+": "+W);return W}; VV7=function(W){return W.displayName||W.name||"unknown type name"}; hC=function(W){if(W!=null&&typeof W!=="boolean")throw Error("Expected boolean but got "+ZC2(W)+": "+W);return W}; Op=function(W){switch(typeof W){case "bigint":return!0;case "number":return B7(W);case "string":return NY5.test(W);default:return!1}}; aRV=function(W){if(typeof W!=="number")throw FX("int32");if(!B7(W))throw FX("int32");return W|0}; u4=function(W){return W==null?W:aRV(W)}; Mv=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return B7(W)?W|0:void 0}; tC=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return B7(W)?W>>>0:void 0}; $Ld=function(W){var Y=0;Y=Y===void 0?0:Y;if(!Op(W))throw FX("int64");var k=typeof W;switch(Y){case 512:switch(k){case "string":return qv(W);case "bigint":return String(RX(64,W));default:return H7(W)}case 1024:switch(k){case "string":return Wud(W);case "bigint":return a3(RX(64,W));default:return YFz(W)}case 0:switch(k){case "string":return qv(W);case "bigint":return a3(RX(64,W));default:return nZ(W)}default:return hQ(Y,"Unknown format requested type for int64")}}; pZ=function(W){return W==null?W:$Ld(W)}; k62=function(W){if(W[0]==="-")return!1;var Y=W.length;return Y<20?!0:Y===20&&Number(W.substring(0,6))<184467}; P72=function(W){var Y=W.length;return W[0]==="-"?Y<20?!0:Y===20&&Number(W.substring(0,7))>-922337:Y<19?!0:Y===19&&Number(W.substring(0,6))<922337}; TE5=function(W){if(W<0){P7(W);var Y=TZ(W7,YI);W=Number(Y);return GZ(W)?W:Y}Y=String(W);if(k62(Y))return Y;P7(W);return jn(W7,YI)}; jpq=function(W){if(P72(W))return W;IX(W);return fR5()}; nZ=function(W){Op(W);W=KZ(W);GZ(W)||(P7(W),W=cm1(W7,YI));return W}; H7=function(W){Op(W);W=KZ(W);if(GZ(W))W=String(W);else{var Y=String(W);P72(Y)?W=Y:(P7(W),W=fR5())}return W}; qv=function(W){Op(W);var Y=KZ(Number(W));if(GZ(Y))return String(Y);Y=W.indexOf(".");Y!==-1&&(W=W.substring(0,Y));return jpq(W)}; Wud=function(W){var Y=KZ(Number(W));if(GZ(Y))return a3(Y);Y=W.indexOf(".");Y!==-1&&(W=W.substring(0,Y));return CB()?a3(RX(64,BigInt(W))):a3(jpq(W))}; YFz=function(W){return GZ(W)?a3(nZ(W)):a3(H7(W))}; IYq=function(W){if(W==null)return W;var Y=typeof W;if(Y==="bigint")return String(RX(64,W));if(Op(W)){if(Y==="string")return qv(W);if(Y==="number")return nZ(W)}}; SFX=function(W){if(W==null)return W;var Y=typeof W;if(Y==="bigint")return String(XZF(64,W));if(Op(W)){if(Y==="string")return Op(W),Y=KZ(Number(W)),GZ(Y)&&Y>=0?W=String(Y):(Y=W.indexOf("."),Y!==-1&&(W=W.substring(0,Y)),k62(W)||(IX(W),W=TZ(W7,YI))),W;if(Y==="number")return Op(W),W=KZ(W),W>=0&&GZ(W)?W:TE5(W)}}; h0d=function(W){if(W==null||typeof W=="string"||W instanceof ze)return W}; BE1=function(W){if(typeof W!=="string")throw Error();return W}; Ep=function(W){if(W!=null&&typeof W!=="string")throw Error();return W}; JC=function(W){return W==null||typeof W==="string"?W:void 0}; sp=function(W,Y){if(!(W instanceof Y))throw Error("Expected instanceof "+VV7(Y)+" but got "+(W&&VV7(W.constructor)));return W}; Oc1=function(W,Y,k){if(W!=null&&W[ri]===AC)return W;if(Array.isArray(W)){var P=W[e9]|0;k=P|k&32|k&2;k!==P&&vl(W,k);return new Y(W)}}; zZ=function(W){return W}; mA=function(W){var Y=OK(di);return Y?W[Y]:void 0}; D$=function(){}; wi=function(W,Y){for(var k in W)!isNaN(k)&&Y(W,+k,W[k])}; uZ1=function(W){var Y=new D$;wi(W,function(k,P,T){Y[P]=Xw(T)}); Y.JG=W.JG;return Y}; icv=function(W,Y){Y<100||wZ(Zcv,1)}; yw=function(W,Y,k,P){var T=P!==void 0;P=!!P;var I=OK(di),X;!T&&yL&&I&&(X=W[I])&&wi(X,icv);I=[];var h=W.length;X=4294967295;var B=!1,O=!!(Y&64),u=O?Y&128?0:-1:void 0;if(!(Y&1)){var Z=h&&W[h-1];Z!=null&&typeof Z==="object"&&Z.constructor===Object?(h--,X=h):Z=void 0;if(O&&!(Y&128)&&!T){B=!0;var M;X=((M=Qw)!=null?M:zZ)(X-u,u,W,Z,void 0)+u}}Y=void 0;for(M=0;M=X){var q=M-u,G=void 0;((G=Y)!=null?G:Y={})[q]=t}else I[M]=t}if(Z)for(var J in Z)h=Z[J],h!= null&&(h=k(h,P))!=null&&(M=+J,t=void 0,O&&!Number.isNaN(M)&&(t=M+u)0?void 0:W===0?HcC||(HcC=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}}; LZ=function(W,Y,k){return W=CZ(W,Y[0],Y[1],k?1:2)}; CZ=function(W,Y,k,P){P=P===void 0?0:P;if(W==null){var T=32;k?(W=[k],T|=128):W=[];Y&&(T=T&-8380417|(Y&1023)<<13)}else{if(!Array.isArray(W))throw Error("narr");T=W[e9]|0;if(pZ2&&1&T)throw Error("rfarr");2048&T&&!(2&T)&&G65();if(T&256)throw Error("farr");if(T&64)return P!==0||T&2048||vl(W,T|2048),W;if(k&&(T|=128,k!==W[0]))throw Error("mid");a:{k=W;T|=64;var I=k.length;if(I){var X=I-1,h=k[X];if(h!=null&&typeof h==="object"&&h.constructor===Object){Y=T&128?0:-1;X-=Y;if(X>=1024)throw Error("pvtlmt");for(var B in h)I= +B,I1024)throw Error("spvt");T=T&-8380417|(B&1023)<<13}}}T|=64;P===0&&(T|=2048);vl(W,T);return W}; G65=function(){if(pZ2)throw Error("carr");wZ(Ku0,5)}; E$S=function(W,Y){if(typeof W!=="object")return W;if(Array.isArray(W)){var k=W[e9]|0;W.length===0&&k&1?W=void 0:k&2||(!Y||4096&k||16&k?W=Up(W,k,!1,Y&&!(k&16)):(o3(W,34),k&4&&Object.freeze(W)));return W}if(W!=null&&W[ri]===AC)return Y=W.h5,k=Y[e9]|0,U$(W,k)?W:l4(W,Y,k)?b4(W,Y):Up(Y,k);if(W instanceof ze)return W}; b4=function(W,Y,k){W=new W.constructor(Y);k&&(W.W=LB);W.K=LB;return W}; Up=function(W,Y,k,P){P!=null||(P=!!(34&Y));W=yw(W,Y,E$S,P);P=32;k&&(P|=2);Y=Y&8380609|P;vl(W,Y);return W}; JQX=function(W){var Y=W.h5,k=Y[e9]|0;return U$(W,k)?l4(W,Y,k)?b4(W,Y,!0):new W.constructor(Up(Y,k,!1)):W}; c7=function(W){if(W.W!==LB)return!1;var Y=W.h5;Y=Up(Y,Y[e9]|0);o3(Y,2048);W.h5=Y;W.W=void 0;W.K=void 0;return!0}; xI=function(W){if(!c7(W)&&U$(W,W.h5[e9]|0))throw Error();}; fZ=function(W,Y){Y===void 0&&(Y=W[e9]|0);Y&32&&!(Y&4096)&&vl(W,Y|4096)}; l4=function(W,Y,k){return k&2?!0:k&32&&!(k&4096)?(vl(Y,k|2),W.W=LB,!0):!1}; Nv=function(W,Y,k,P,T){Object.isExtensible(W);Y=Vw(W.h5,Y,k,T);if(Y!==null||P&&W.K!==LB)return Y}; Vw=function(W,Y,k,P){if(Y===-1)return null;var T=Y+(k?0:-1),I=W.length-1;if(!(I<1+(k?0:-1))){if(T>=I){var X=W[I];if(X!=null&&typeof X==="object"&&X.constructor===Object){k=X[Y];var h=!0}else if(T===I)k=X;else return}else k=W[T];if(P&&k!=null){P=P(k);if(P==null)return P;if(!Object.is(P,k))return h?X[Y]=P:W[T]=P,P}return k}}; Ws=function(W,Y,k,P){xI(W);var T=W.h5;aX(T,T[e9]|0,Y,k,P);return W}; aX=function(W,Y,k,P,T){var I=k+(T?0:-1),X=W.length-1;if(X>=1+(T?0:-1)&&I>=X){var h=W[X];if(h!=null&&typeof h==="object"&&h.constructor===Object)return h[k]=P,Y}if(I<=X)return W[I]=P,Y;if(P!==void 0){var B;X=((B=Y)!=null?B:Y=W[e9]|0)>>13&1023||536870912;k>=X?P!=null&&(I={},W[X+(T?0:-1)]=(I[k]=P,I)):W[I]=P}return Y}; T3=function(W,Y,k,P,T){var I=W.h5,X=I[e9]|0;P=U$(W,X)?1:P;T=!!T||P===3;P===2&&c7(W)&&(I=W.h5,X=I[e9]|0);W=YQ(I,Y);var h=W===$Q?7:W[e9]|0,B=kQ(h,X);var O=4&B?!1:!0;if(O){4&B&&(W=Xw(W),h=0,B=Ps(B,X),X=aX(I,X,Y,W));for(var u=0,Z=0;u32)for(k|=(X&127)>>4,P=3;P<32&&X&128;P+=7)X=T[I++],k|=(X&127)<>>0,k>>>0);throw Error();}; o7=function(W,Y){W.W=Y;if(Y>W.J)throw Error();}; CF=function(W){var Y=W.K,k=W.W,P=Y[k++],T=P&127;if(P&128&&(P=Y[k++],T|=(P&127)<<7,P&128&&(P=Y[k++],T|=(P&127)<<14,P&128&&(P=Y[k++],T|=(P&127)<<21,P&128&&(P=Y[k++],T|=P<<28,P&128&&Y[k++]&128&&Y[k++]&128&&Y[k++]&128&&Y[k++]&128&&Y[k++]&128)))))throw Error();o7(W,k);return T}; LF=function(W){var Y=W.K,k=W.W,P=Y[k+0],T=Y[k+1],I=Y[k+2];Y=Y[k+3];o7(W,W.W+4);return(P<<0|T<<8|I<<16|Y<<24)>>>0}; U1=function(W){var Y=LF(W);W=LF(W);return jn(Y,W)}; lx=function(W){var Y=LF(W),k=LF(W);W=(k>>31)*2+1;var P=k>>>20&2047;Y=4294967296*(k&1048575)+Y;return P==2047?Y?NaN:W*Infinity:P==0?W*4.9E-324*Y:W*Math.pow(2,P-1075)*(Y+4503599627370496)}; bx=function(W){for(var Y=0,k=W.W,P=k+10,T=W.K;kW.J)throw Error();W.W=Y;return k}; e0d=function(W,Y){if(Y==0)return ma();var k=Qpz(W,Y);W.MM&&W.C?k=W.K.subarray(k,k+Y):(W=W.K,Y=k+Y,k=k===Y?new Uint8Array(0):yQX?W.slice(k,Y):new Uint8Array(W.subarray(k,Y)));return k.length==0?ma():new ze(k,dZ)}; xQ=function(W,Y,k,P){if(cs.length){var T=cs.pop();T.init(W,Y,k,P);W=T}else W=new el(W,Y,k,P);this.W=W;this.T=this.W.W;this.K=this.J=-1;o$z(this,P)}; o$z=function(W,Y){Y=Y===void 0?{}:Y;W.Dc=Y.Dc===void 0?!1:Y.Dc}; v$7=function(W,Y,k,P){if(Tl.length){var T=Tl.pop();o$z(T,P);T.W.init(W,Y,k,P);return T}return new xQ(W,Y,k,P)}; C7S=function(W){var Y=W.W;if(Y.W==Y.J)return!1;W.T=W.W.W;var k=CF(W.W)>>>0;Y=k>>>3;k&=7;if(!(k>=0&&k<=5))throw Error();if(Y<1)throw Error();W.J=Y;W.K=k;return!0}; jj=function(W){switch(W.K){case 0:W.K!=0?jj(W):bx(W.W);break;case 1:W=W.W;o7(W,W.W+8);break;case 2:if(W.K!=2)jj(W);else{var Y=CF(W.W)>>>0;W=W.W;o7(W,W.W+Y)}break;case 5:W=W.W;o7(W,W.W+4);break;case 3:Y=W.J;do{if(!C7S(W))throw Error();if(W.K==4){if(W.J!=Y)throw Error();break}jj(W)}while(1);break;default:throw Error();}}; IF=function(W,Y,k){var P=W.W.J,T=CF(W.W)>>>0;T=W.W.W+T;var I=T-P;I<=0&&(W.W.J=T,k(Y,W,void 0,void 0,void 0),I=T-W.W.W);if(I)throw Error();W.W.W=T;W.W.J=P}; hE=function(W){var Y=CF(W.W)>>>0;W=W.W;var k=Qpz(W,Y);W=W.K;if(LuX){var P=W,T;(T=X9)||(T=X9=new TextDecoder("utf-8",{fatal:!0}));Y=k+Y;P=k===0&&Y===P.length?P:P.subarray(k,Y);try{var I=T.decode(P)}catch(O){if(Sj===void 0){try{T.decode(new Uint8Array([128]))}catch(u){}try{T.decode(new Uint8Array([97])),Sj=!0}catch(u){Sj=!1}}!Sj&&(X9=void 0);throw O;}}else{I=k;Y=I+Y;k=[];for(var X=null,h,B;I=Y?Ge():(B=W[I++],h<194||(B&192)!==128?(I--,Ge()):k.push((h&31)<<6|B&63)): h<240?I>=Y-1?Ge():(B=W[I++],(B&192)!==128||h===224&&B<160||h===237&&B>=160||((T=W[I++])&192)!==128?(I--,Ge()):k.push((h&15)<<12|(B&63)<<6|T&63)):h<=244?I>=Y-2?Ge():(B=W[I++],(B&192)!==128||(h<<28)+(B-144)>>30!==0||((T=W[I++])&192)!==128||((P=W[I++])&192)!==128?(I--,Ge()):(h=(h&7)<<18|(B&63)<<12|(T&63)<<6|P&63,h-=65536,k.push((h>>10&1023)+55296,(h&1023)+56320))):Ge(),k.length>=8192&&(X=R50(X,k),k.length=0);I=R50(X,k)}return I}; UL5=function(W){var Y=CF(W.W)>>>0;return e0d(W.W,Y)}; B3=function(W,Y){this.K=W>>>0;this.W=Y>>>0}; bcV=function(W){if(!W)return lY7||(lY7=new B3(0,0));if(!/^\d+$/.test(W))return null;IX(W);return new B3(W7,YI)}; OL=function(W,Y){this.K=W>>>0;this.W=Y>>>0}; xLC=function(W){if(!W)return cQ7||(cQ7=new OL(0,0));if(!/^-?\d+$/.test(W))return null;IX(W);return new OL(W7,YI)}; u8=function(){this.W=[]}; Z9=function(W,Y,k){for(;k>0||Y>127;)W.W.push(Y&127|128),Y=(Y>>>7|k<<25)>>>0,k>>>=7;W.W.push(Y)}; i8=function(W,Y){for(;Y>127;)W.W.push(Y&127|128),Y>>>=7;W.W.push(Y)}; fY7=function(W,Y){if(Y>=0)i8(W,Y);else{for(var k=0;k<9;k++)W.W.push(Y&127|128),Y>>=7;W.W.push(1)}}; Mm=function(W,Y){W.W.push(Y>>>0&255);W.W.push(Y>>>8&255);W.W.push(Y>>>16&255);W.W.push(Y>>>24&255)}; Ve2=function(){this.J=[];this.K=0;this.W=new u8}; tE=function(W,Y){Y.length!==0&&(W.J.push(Y),W.K+=Y.length)}; NEv=function(W,Y){qm(W,Y,2);Y=W.W.end();tE(W,Y);Y.push(W.K);return Y}; aYF=function(W,Y){var k=Y.pop();for(k=W.K+W.W.length()-k;k>127;)Y.push(k&127|128),k>>>=7,W.K++;Y.push(k);W.K++}; qm=function(W,Y,k){i8(W.W,Y*8+k)}; WT7=function(W,Y,k){if(k!=null){switch(typeof k){case "string":bcV(k)}qm(W,Y,1);switch(typeof k){case "number":W=W.W;$I(k);Mm(W,W7);Mm(W,YI);break;case "bigint":k=BigInt.asUintN(64,k);k=new B3(Number(k&BigInt(4294967295)),Number(k>>BigInt(32)));W=W.W;Y=k.W;Mm(W,k.K);Mm(W,Y);break;default:k=bcV(k),W=W.W,Y=k.W,Mm(W,k.K),Mm(W,Y)}}}; RF=function(W,Y,k){qm(W,Y,2);i8(W.W,k.length);tE(W,W.W.end());tE(W,k)}; H3=function(){function W(){throw Error();} Object.setPrototypeOf(W,W.prototype);return W}; nt=function(W,Y,k){this.h5=CZ(W,Y,k)}; Yh6=function(W,Y){if(Y==null||Y=="")return new W;Y=JSON.parse(Y);if(!Array.isArray(Y))throw Error("dnarr");o3(Y,32);return new W(Y)}; Gl=function(W,Y,k){this.IV=W;this.xx=Y;W=OK(pt);this.W=!!W&&k===W||!1}; Kt=function(W,Y){var k=k===void 0?pt:k;return new Gl(W,Y,k)}; kaq=function(W,Y,k,P,T){Y=$Bq(Y,P);Y!=null&&(k=NEv(W,k),T(Y,W),aYF(W,k))}; sL=function(W,Y,k,P){var T=P[W];if(T)return T;T={};T.xd=P;T.Vq=n$S(P[0]);var I=P[1],X=1;I&&I.constructor===Object&&(T.extensions=I,I=P[++X],typeof I==="function"&&(T.gG=!0,EL!=null||(EL=I),JE!=null||(JE=P[X+1]),I=P[X+=2]));for(var h={};I&&Array.isArray(I)&&I.length&&typeof I[0]==="number"&&I[0]>0;){for(var B=0;B>BigInt(32)));Z9(W.W,k.K,k.W);break;default:k=xLC(Y),Z9(W.W,k.K,k.W)}}}; ft=function(W,Y,k){Y=Mv(Y);Y!=null&&Y!=null&&(qm(W,k,0),fY7(W.W,Y))}; Mhd=function(W,Y,k){Y=Y==null||typeof Y==="boolean"?Y:typeof Y==="number"?!!Y:void 0;Y!=null&&(qm(W,k,0),W.W.W.push(Y?1:0))}; thS=function(W,Y,k){Y=JC(Y);Y!=null&&RF(W,k,Gm0(Y))}; qhV=function(W,Y,k,P,T){Y=$Bq(Y,P);Y!=null&&(k=NEv(W,k),T(Y,W),aYF(W,k))}; HX5=function(){var W=Vb;this.W=Rrq;this.isRepeated=0;this.K=pF;this.defaultValue=void 0;this.J=W.messageId!=null?xa:void 0}; ns1=function(W,Y){return function(k,P){var T={wE:!0};P&&Object.assign(T,P);k=v$7(k,void 0,void 0,T);try{var I=new W,X=I.h5;dU(Y)(X,k);var h=I}finally{k.free()}return h}}; pL0=function(W){return function(){var Y=new Ve2;OX5(this.h5,Y,sL(wU,D9,v3,W));tE(Y,Y.W.end());for(var k=new Uint8Array(Y.K),P=Y.J,T=P.length,I=0,X=0;X-1)return Y.apply(null,g.ZX(k));try{return W.W=W.J.W.now(),Y.apply(null,g.ZX(k))}finally{W.T+=W.J.W.now()-W.W,W.W=-1,W.K+=1}}}; KT6=function(W,Y){this.K=W;this.J=Y;this.W=new Gaz(W)}; Esd=function(){this.W={}}; Av0=function(){this.J=void 0;this.K=this.X=0;this.C=-1;this.gZ=new pT;Gm(this.gZ,"mv",Jvd).W=!0;Gm(this.gZ,"omid",rY);Gm(this.gZ,"epoh",rY).W=!0;Gm(this.gZ,"epph",rY).W=!0;Gm(this.gZ,"umt",rY).W=!0;Gm(this.gZ,"phel",rY).W=!0;Gm(this.gZ,"phell",rY).W=!0;Gm(this.gZ,"oseid",s_5).W=!0;var W=this.gZ;W.W.sloi||(W.W.sloi=new Hk);W.W.sloi.W=!0;Gm(this.gZ,"mm",Yr);Gm(this.gZ,"ovms",rv7).W=!0;Gm(this.gZ,"xdi",rY).W=!0;Gm(this.gZ,"amp",rY).W=!0;Gm(this.gZ,"prf",rY).W=!0;Gm(this.gZ,"gtx",rY).W=!0;Gm(this.gZ, "mvp_lv",rY).W=!0;Gm(this.gZ,"ssmol",rY).W=!0;Gm(this.gZ,"fmd",rY).W=!0;Gm(this.gZ,"gen204simple",rY);this.W=new KT6(pB(),this.gZ);this.T=!1;this.flags=new Esd}; $r=function(){return Hl(Av0)}; zr7=function(W,Y,k,P){if(Math.random()<(P||W.W))try{if(k instanceof uq)var T=k;else T=new uq,O$(k,function(X,h){var B=T,O=B.T++;X=ZW(h,X);B.W.push(O);B.K[O]=X}); var I=T.OV(W.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+Y+"&");I&&(pB(),iTF(I))}catch(X){}}; dB7=function(W,Y,k){k=k===void 0?{}:k;this.error=W;this.meta=k;this.context=Y.context;this.msg=Y.message||"";this.id=Y.id||"jserror"}; mB1=function(){var W=W===void 0?g.V0:W;return(W=W.performance)&&W.now&&W.timing?Math.floor(W.now()+W.timing.navigationStart):g.Bp()}; DB6=function(){var W=W===void 0?g.V0:W;return(W=W.performance)&&W.now?W.now():null}; gsV=function(W,Y,k){this.label=W;this.type=Y;this.value=k;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; PQ=function(){var W=window;this.events=[];this.K=W||g.V0;var Y=null;W&&(W.google_js_reporting_queue=W.google_js_reporting_queue||[],this.events=W.google_js_reporting_queue,Y=W.google_measure_js_timing);this.W=kr()||(Y!=null?Y:Math.random()<1)}; FTC=function(W){W&&Tt&&kr()&&(Tt.clearMarks("goog_"+W.label+"_"+W.uniqueId+"_start"),Tt.clearMarks("goog_"+W.label+"_"+W.uniqueId+"_end"))}; j7=function(W,Y,k,P,T,I,X){var h="";W&&(h+=W+":");k&&(h+="//",Y&&(h+=Y+"@"),h+=k,P&&(h+=":"+P));T&&(h+=T);I&&(h+="?"+I);X&&(h+="#"+X);return h}; g.I8=function(W){return W.match(wLz)}; Q_X=function(W){return W?decodeURI(W):W}; g.Xl=function(W){return Q_X(g.I8(W)[3]||null)}; S7=function(W){return Q_X(g.I8(W)[5]||null)}; g.yvV=function(W){W=g.I8(W);return j7(W[1],W[2],W[3],W[4])}; BQ=function(W){W=g.I8(W);return j7(null,null,null,null,W[5],W[6],W[7])}; erX=function(W){var Y=W.indexOf("#");return Y<0?W:W.slice(0,Y)}; Od=function(W,Y){if(W){W=W.split("&");for(var k=0;k=0){var I=W[k].substring(0,P);T=W[k].substring(P+1)}else I=W[k];Y(I,T?rE(T):"")}}}; uh=function(W,Y){if(!Y)return W;var k=W.indexOf("#");k<0&&(k=W.length);var P=W.indexOf("?");if(P<0||P>k){P=k;var T=""}else T=W.substring(P+1,k);W=[W.slice(0,P),T,W.slice(k)];k=W[1];W[1]=Y?k?k+"&"+Y:Y:k;return W[0]+(W[1]?"?"+W[1]:"")+W[2]}; Zl=function(W,Y,k){if(Array.isArray(Y))for(var P=0;P=0&&Yk)T=k;P+=Y.length+1;return rE(W.slice(P,T!==-1?T:0))}; pk=function(W,Y){for(var k=W.search(HQ),P=0,T,I=[];(T=qH(W,P,Y,k))>=0;)I.push(W.substring(P,T)),P=Math.min(W.indexOf("&",T)+1||k,k);I.push(W.slice(P));return I.join("").replace(Cm6,"$1")}; LT1=function(W,Y,k){return tb(pk(W,Y),Y,k)}; UB1=function(){var W=Gt;this.W=Kk;this.I4="jserror";this.b9=!0;this.qG=null;this.K=this.JZ;this.kq=W===void 0?null:W}; l5z=function(W,Y,k){var P=Ed;return WQ($r().W.W,function(){try{if(P.kq&&P.kq.W){var T=P.kq.start(W.toString(),3);var I=Y();P.kq.end(T)}else I=Y()}catch(h){var X=P.b9;try{FTC(T),X=P.K(W,new Jb(sd(h)),void 0,k)}catch(B){P.JZ(217,B)}if(!X)throw h;}return I})()}; r2=function(W,Y,k,P){return WQ($r().W.W,function(){var T=g.y0.apply(0,arguments);return l5z(W,function(){return Y.apply(k,T)},P)})}; sd=function(W){var Y=W.toString();W.name&&Y.indexOf(W.name)==-1&&(Y+=": "+W.name);W.message&&Y.indexOf(W.message)==-1&&(Y+=": "+W.message);if(W.stack)a:{W=W.stack;var k=Y;try{W.indexOf(k)==-1&&(W=k+"\n"+W);for(var P;W!=P;)P=W,W=W.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");Y=W.replace(/\n */g,"\n");break a}catch(T){Y=k;break a}Y=void 0}return Y}; Jb=function(W){dB7.call(this,Error(W),{message:W})}; bXC=function(){Av&&typeof Av.google_measure_js_timing!="undefined"&&(Av.google_measure_js_timing||Gt.disable())}; cv7=function(W){Ed.qG=function(Y){g.xh(W,function(k){k(Y)})}}; xB7=function(W,Y){return l5z(W,Y)}; Ab=function(W,Y){return r2(W,Y)}; zt=function(W,Y,k,P){Ed.JZ(W,Y,k,P)}; d2=function(){return Date.now()-f5F}; Vhz=function(){var W=$r().J,Y=mm>=0?d2()-mm:-1,k=Dl?d2()-g2:-1,P=Fl>=0?d2()-Fl:-1;if(W==947190542)return 100;if(W==79463069)return 200;W=[2E3,4E3];var T=[250,500,1E3];zt(637,Error(),.001);var I=Y;k!=-1&&k1500&&P<4E3?500:X}; w2=function(W,Y,k){var P=new FG(0,0,0,0);this.time=W;this.volume=null;this.J=Y;this.W=P;this.K=k}; QY=function(W,Y,k,P,T,I,X,h){this.T=W;this.G=Y;this.J=k;this.X=P;this.W=T;this.C=I;this.K=X;this.L=h}; a5v=function(W){var Y=W!==W.top,k=W.top===VwS(W),P=-1,T=0;if(Y&&k&&W.top.mraid){P=3;var I=W.top.mraid}else P=(I=W.mraid)?Y?k?2:1:0:-1;I&&(I.IS_GMA_SDK||(T=2),m62(Ns1,function(X){return typeof I[X]==="function"})||(T=1)); return{cV:I,compatibility:T,XkJ:P}}; Wa2=function(){var W=window.document;return W&&typeof W.elementFromPoint==="function"}; Y$d=function(W,Y,k){if(W&&Y!==null&&Y!=Y.top){if(!Y.top)return new g.UF(-12245933,-12245933);Y=Y.top}try{return(k===void 0?0:k)?(new g.UF(Y.innerWidth,Y.innerHeight)).round():DcX(Y||window).round()}catch(P){return new g.UF(-12245933,-12245933)}}; yY=function(W,Y,k){try{if(W){if(!Y.top)return new FG(-12245933,-12245933,-12245933,-12245933);Y=Y.top}var P=Y$d(W,Y,k),T=P.height,I=P.width;if(I===-12245933)return new FG(I,I,I,I);var X=$s(Y.document);var h=F12(X.W);var B=h.x,O=h.y;return new FG(O,B+I,O+T,B)}catch(u){return new FG(-12245933,-12245933,-12245933,-12245933)}}; e7=function(W,Y){Y=Math.pow(10,Y);return Math.floor(W*Y)/Y}; $_S=function(W){return new FG(W.top,W.right,W.bottom,W.left)}; keF=function(W){var Y=W.top||0,k=W.left||0;return new FG(Y,k+(W.width||0),Y+(W.height||0),k)}; o8=function(W){return W!=null&&W>=0&&W<=1}; Pq7=function(){var W=g.wY();return W?vQ("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(Y){return mU(W,Y)})||mU(W,"OMI/")&&!mU(W,"XiaoMi/")?!0:mU(W,"Presto")&&mU(W,"Linux")&&!mU(W,"X11")&&!mU(W,"Android")&&!mU(W,"Mobi"):!1}; TZ0=function(){this.J=!Te(Av.top);this.isMobileDevice=j9()||NB7();var W=XX();this.domain=W.length>0&&W[W.length-1]!=null&&W[W.length-1].url!=null?g.Xl(W[W.length-1].url)||"":"";this.W=new FG(0,0,0,0);this.T=new g.UF(0,0);this.C=new g.UF(0,0);this.G=new FG(0,0,0,0);this.frameOffset=new g.Cc(0,0);this.X=0;this.L=!1;this.K=!(!Av||!a5v(Av).cV);this.update(Av)}; j3v=function(W,Y){Y&&Y.screen&&(W.T=new g.UF(Y.screen.width,Y.screen.height))}; IWX=function(W,Y){a:{var k=W.W?new g.UF(ws(W.W),W.W.getHeight()):new g.UF(0,0);Y=Y===void 0?Av:Y;Y!==null&&Y!=Y.top&&(Y=Y.top);var P=0,T=0;try{var I=Y.document,X=I.body,h=I.documentElement;if(I.compatMode=="CSS1Compat"&&h.scrollHeight)P=h.scrollHeight!=k.height?h.scrollHeight:h.offsetHeight,T=h.scrollWidth!=k.width?h.scrollWidth:h.offsetWidth;else{var B=h.scrollHeight,O=h.scrollWidth,u=h.offsetHeight,Z=h.offsetWidth;h.clientHeight!=u&&(B=X.scrollHeight,O=X.scrollWidth,u=X.offsetHeight,Z=X.offsetWidth); B>k.height?B>u?(P=B,T=O):(P=u,T=Z):B0||W.L)return!0;W=pB().K.isVisible();var Y=Pl(I3)===0;return W||Y}; Ck=function(){return Hl(TZ0)}; Ud=function(W){this.J=W;this.K=0;this.W=null}; lh=function(W,Y,k){this.J=W;this.Fr=k===void 0?"na":k;this.C=[];this.isInitialized=!1;this.T=new w2(-1,!0,this);this.W=this;this.L=Y;this.A5=this.N=!1;this.TJ="uk";this.gD=!1;this.X=!0}; bh=function(W,Y){g.n$(W.C,Y)||(W.C.push(Y),Y.WS(W.W),Y.FL(W.T),Y.GX()&&(W.N=!0))}; Xl2=function(W){W=W.W;W.LD();W.cg();var Y=Ck();Y.G=yY(!1,W.J,Y.isMobileDevice);IWX(Ck(),W.J);W.T.W=W.tH()}; S$7=function(W){W.N=W.C.length?vQ(W.C,function(Y){return Y.GX()}):!1}; hM6=function(W){var Y=g.zK(W.C);g.xh(Y,function(k){k.FL(W.T)})}; cQ=function(W){var Y=g.zK(W.C);g.xh(Y,function(k){k.WS(W.W)}); W.W!=W||hM6(W)}; xr=function(W,Y,k,P){this.element=W;this.W=new FG(0,0,0,0);this.J=null;this.X=new FG(0,0,0,0);this.K=Y;this.gZ=k;this.gD=P;this.wD=!1;this.timestamp=-1;this.N=new QY(Y.T,this.element,this.W,new FG(0,0,0,0),0,0,d2(),0);this.C=void 0}; BZ7=function(W,Y){return W.C?new FG(Math.max(Y.top+W.C.top,Y.top),Math.min(Y.left+W.C.right,Y.right),Math.min(Y.top+W.C.bottom,Y.bottom),Math.max(Y.left+W.C.left,Y.left)):Y.clone()}; fk=function(W){this.C=!1;this.W=W;this.T=function(){}}; OBS=function(W,Y,k){this.J=k===void 0?0:k;this.K=W;this.W=Y==null?"":Y}; uX1=function(W){switch(Math.trunc(W.J)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; ZB0=function(W,Y){return W.JY.J?!1:W.KY.K?!1:typeof W.Wtypeof Y.W?!1:W.W0?P[k]-P[k-1]:P[k]})}; SD=function(){this.K=new kn;this.Fr=this.UP=0;this.V5=new $n;this.Kg=this.G=-1;this.bz=1E3;this.e1=new kn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.TJ=this.wD=-1}; hL=function(W,Y){return Ka5(W.K,Y===void 0?!0:Y)}; Bu=function(W,Y,k,P){var T=T===void 0?!1:T;k=r2(P,k);ka(W,Y,k,{capture:T})}; u_=function(W,Y){Y=Oo(Y);return Y===0?0:Oo(W)/Y}; Oo=function(W){return Math.max(W.bottom-W.top,0)*Math.max(W.right-W.left,0)}; s3C=function(W,Y){if(!W||!Y)return!1;for(var k=0;W!==null&&k++<100;){if(W===Y)return!0;try{if(W=W.parentElement||W){var P=ap(W),T=P&&hv(P),I=T&&T.frameElement;I&&(W=I)}}catch(X){break}}return!1}; rx5=function(W,Y,k){if(!W||!Y)return!1;Y=y7(W.clone(),-Y.left,-Y.top);W=(Y.left+Y.right)/2;Y=(Y.top+Y.bottom)/2;Te(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Wa2())return!1;W=window.document.elementFromPoint(W,Y);if(!W)return!1;Y=(Y=(Y=ap(k))&&Y.defaultView&&Y.defaultView.frameElement)&&s3C(Y,W);var P=W===k;W=!P&&W&&KX(W,function(T){return T===k}); return!(Y||P||W)}; Axz=function(W,Y,k,P){return Ck().J?!1:ws(W)<=0||W.getHeight()<=0?!0:k&&P?xB7(208,function(){return rx5(W,Y,k)}):!1}; Zq=function(W,Y,k){g.e.call(this);this.position=zM5.clone();this.NF=this.IH();this.AZ=-2;this.timeCreated=Date.now();this.PC=-1;this.PF=Y;this.qF=null;this.A3=!1;this.oQ=null;this.opacity=-1;this.requestSource=k;this.Wrr=!1;this.p$=function(){}; this.Gl=function(){}; this.uw=new e9C;this.uw.aE=W;this.uw.W=W;this.xt=!1;this.zB={tZ:null,n$:null};this.Ht=!0;this.F6=null;this.SY=this.by=!1;$r().X++;this.Yf=this.G5();this.WC=-1;this.jL=null;this.hasCompleted=this.rK=!1;this.gZ=new pT;o52(this.gZ);d_S(this);this.requestSource==1?KT(this.gZ,"od",1):KT(this.gZ,"od",0)}; d_S=function(W){W=W.uw.aE;var Y;if(Y=W&&W.getAttribute)Y=/-[a-z]/.test("googleAvInapp")?!1:m_q&&W.dataset?"googleAvInapp"in W.dataset:W.hasAttribute?W.hasAttribute("data-"+Z$q()):!!W.getAttribute("data-"+Z$q());Y&&(Ck().K=!0)}; i_=function(W,Y){Y!=W.SY&&(W.SY=Y,W=Ck(),Y?W.X++:W.X>0&&W.X--)}; D_2=function(W,Y){if(W.jL){if(Y.getName()===W.jL.getName())return;W.jL.dispose();W.jL=null}Y=Y.create(W.uw.W,W.gZ,W.GX());if(Y=Y!=null&&Y.observe()?Y:null)W.jL=Y}; mv0=function(W,Y,k){if(!W.qF||W.PF==-1||Y.K===-1||W.qF.K===-1)return 0;W=Y.K-W.qF.K;return W>k?0:W}; Dvq=function(W,Y,k){if(W.jL){W.jL.bZ();var P=W.jL.N,T=P.T,I=T.W;if(P.X!=null){var X=P.J;W.oQ=new g.Cc(X.left-I.left,X.top-I.top)}I=W.lP()?Math.max(P.W,P.C):P.W;X={};T.volume!==null&&(X.volume=T.volume);T=W.wA(P);W.qF=P;W.xa(I,Y,k,!1,X,T,P.L)}}; gI5=function(W){if(W.A3&&W.F6){var Y=Ex(W.gZ,"od")==1,k=Ck().W,P=W.F6,T=W.jL?W.jL.getName():"ns",I=W.oQ,X=new g.UF(ws(k),k.getHeight());k=W.lP();W={kjS:T,oQ:I,Gv1:X,lP:k,Gr:W.Yf.Gr,Os5:Y};if(Y=P.K){Y.bZ();T=Y.N;I=T.T.W;var h=X=null;T.X!=null&&I&&(X=T.J,X=new g.Cc(X.left-I.left,X.top-I.top),h=new g.UF(I.right-I.left,I.bottom-I.top));T=k?Math.max(T.W,T.C):T.W;k={kjS:Y.getName(),oQ:X,Gv1:h,lP:k,Os5:!1,Gr:T}}else k=null;k&&na0(P,W,k)}}; FA2=function(W,Y,k){Y&&(W.p$=Y);k&&(W.Gl=k)}; g.MF=function(){}; g.tL=function(W){return{value:W,done:!1}}; w7v=function(){this.T=this.W=this.J=this.K=this.C=0}; QXV=function(W){var Y={};var k=g.Bp()-W.C;Y=(Y.ptlt=k,Y);(k=W.K)&&(Y.pnk=k);(k=W.J)&&(Y.pnc=k);(k=W.T)&&(Y.pnmm=k);(W=W.W)&&(Y.pns=W);return Y}; yC7=function(){Vi.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; pL=function(W){return o8(W.volume)&&W.volume>0}; G0=function(W,Y,k,P){k=k===void 0?!0:k;P=P===void 0?function(){return!0}:P; return function(T){var I=T[W];if(Array.isArray(I)&&P(T))return eD1(I,Y,k)}}; KL=function(W,Y){return function(k){return Y(k)?k[W]:void 0}}; oIF=function(W){return function(Y){for(var k=0;k0?I[T-1]+1:0,P+1).reduce(function(X,h){return X+h},0)})}; vI1=function(){this.K=this.W=""}; C42=function(){}; JL=function(W,Y){var k={};if(W!==void 0)if(Y!=null)for(var P in Y){var T=Y[P];P in Object.prototype||T!=null&&(k[P]=typeof T==="function"?T(W):W[T])}else g.tm(k,W);return a8(NH(new VY,k))}; LAd=function(){var W={};this.K=(W.vs=[1,0],W.vw=[0,1],W.am=[2,2],W.a=[4,4],W.f=[8,8],W.bm=[16,16],W.b=[32,32],W.avw=[0,64],W.avs=[64,0],W.pv=[256,256],W.gdr=[0,512],W.p=[0,1024],W.r=[0,2048],W.m=[0,4096],W.um=[0,8192],W.ef=[0,16384],W.s=[0,32768],W.pmx=[0,16777216],W.mut=[33554432,33554432],W.umutb=[67108864,67108864],W.tvoff=[134217728,134217728],W);this.W={};for(var Y in this.K)this.K[Y][1]>0&&(this.W[Y]=0);this.J=0}; so=function(W,Y){var k=W.K[Y],P=k[1];W.J+=k[0];P>0&&W.W[Y]==0&&(W.W[Y]=1)}; Uv5=function(W){var Y=g.Tm(W.K),k=0,P;for(P in W.W)g.n$(Y,P)&&W.W[P]==1&&(k+=W.K[P][1],W.W[P]=2);return k}; l$z=function(W){var Y=0,k;for(k in W.W){var P=W.W[k];if(P==1||P==2)Y+=W.K[k][1]}return Y}; rr=function(){this.W=this.K=0}; AL=function(){SD.call(this);this.J=new $n;this.GJ=this.N=this.gD=0;this.L=-1;this.Lg=new $n;this.C=new $n;this.W=new kn;this.X=this.T=-1;this.A5=new $n;this.bz=2E3;this.OP=new rr;this.Q5=new rr;this.rD=new rr}; z0=function(W,Y,k){var P=W.GJ;Dl||k||W.L==-1||(P+=Y-W.L);return P}; bZ2=function(){this.J=!1}; dr=function(W,Y){this.J=!1;this.T=W;this.N=Y;this.C=0}; m2=function(W,Y){dr.call(this,W,Y);this.G=[]}; cCV=function(){}; Dq=function(){}; FO=function(W,Y,k,P){xr.call(this,W,Y,k,P)}; wr=function(W,Y,k){xr.call(this,null,W,Y,k);this.L=W.isActive();this.G=0}; QP=function(W){return[W.top,W.left,W.bottom,W.right]}; yP=function(W,Y,k,P,T,I){I=I===void 0?new Dq:I;Zq.call(this,Y,k,P);this.m1=T;this.xg=0;this.HU={};this.Rs=new LAd;this.RR={};this.Pl="";this.rD=null;this.K1=!1;this.W=[];this.dO=I.K();this.X=I.J();this.T=null;this.J=-1;this.Fr=this.N=void 0;this.Kg=this.A5=0;this.TJ=-1;this.bz=this.Q5=!1;this.gD=this.L=this.K=this.Mf=this.A9=0;new kn;this.OP=this.GJ=0;this.V5=-1;this.DP=0;this.G=g.ds;this.wD=[this.IH()];this.xm=2;this.Fx={};this.Fx.pause="p";this.Fx.resume="r";this.Fx.skip="s";this.Fx.mute="m";this.Fx.unmute= "um";this.Fx.exitfullscreen="ef";this.C=null;this.e1=this.Lg=!1;this.J9=Math.floor(Date.now()/1E3-1704067200);this.UP=0}; eD=function(W){W.hasCompleted=!0;W.DP!=0&&(W.DP=3)}; og=function(W){return W===void 0?W:Number(W)?e7(W,3):0}; vu=function(W,Y){return W.wD[Y!=null&&YMath.max(1E4,W.J/3)?0:Y);var k=W.G(W)||{};k=k.currentTime!==void 0?k.currentTime:W.A5;var P=k-W.A5,T=0;P>=0?(W.Kg+=Y,W.OP+=Math.max(Y-P,0),T=Math.min(P,W.Kg)):W.GJ+=Math.abs(P);P!=0&&(W.Kg=0);W.V5==-1&&P>0&&(W.V5=Fl>=0?d2()-Fl:-1);W.A5=k;return T}; Vn6=function(W,Y){vQ(W.X,function(k){return k.T==Y.T})||W.X.push(Y)}; NiV=function(W){var Y=jD(W.G9().W,1);return CL(W,Y)}; CL=function(W,Y,k){return Y>=15E3?!0:W.Q5?(k===void 0?0:k)?!0:W.J>0?Y>=W.J/2:W.TJ>0?Y>=W.TJ:!1:!1}; a$6=function(W){var Y=e7(W.Yf.Gr,2),k=W.Rs.J,P=W.Yf,T=vu(W),I=og(T.T),X=og(T.X),h=og(P.volume),B=e7(T.G,2),O=e7(T.Kg,2),u=e7(P.Gr,2),Z=e7(T.wD,2),M=e7(T.TJ,2);P=e7(P.La,2);var t=W.oE().clone().round();W=W.jL&&W.jL.J?(W.jL?W.jL.J:null).clone().round():null;T=hL(T,!1);return{q6z:Y,Kt:k,cq:I,QG:X,HQ:h,LR:B,Bq:O,Gr:u,zt:Z,VG:M,La:P,position:t,Rd:W,AP:T}}; Y1z=function(W,Y){W5X(W.W,Y,function(){return{q6z:0,Kt:void 0,cq:-1,QG:-1,HQ:-1,LR:-1,Bq:-1,Gr:-1,zt:-1,VG:-1,La:-1,position:void 0,Rd:void 0,AP:[]}}); W.W[Y]=a$6(W)}; W5X=function(W,Y,k){for(var P=W.length;P0?1:0;Z.atos= Pu(O.W);Z.ssb=Pu(O.e1,!1);Z.amtos=Ka5(O.W,!1);Z.uac=W.A9;Z.vpt=O.J.W;u=="nio"&&(Z.nio=1,Z.avms="nio");Z.gmm="4";Z.gdr=CL(W,O.J.W,!0)?1:0;Z.efpf=W.xm;if(u=="gsv"||u=="nis")u=W.jL,u.G>0&&(Z.nnut=u.G);Z.tcm=xvz(W);Z.nmt=W.GJ;Z.bt=W.OP;Z.pst=W.V5;Z.vpaid=W.N;Z.dur=W.J;Z.vmtime=W.A5;Z.is=W.Rs.J;W.W.length>=1&&(Z.i0=W.W[0].Kt,Z.a0=[W.W[0].HQ],Z.c0=[W.W[0].Gr],Z.ss0=[W.W[0].La],u=W.W[0].position,I=W.W[0].Rd,Z.p0=u?QP(u):void 0,u&&I&&!Q7(I,u)&&(Z.cp0=QP(I)));W.W.length>=2&&(Z.i1=W.W[1].Kt,Z.a1=l_(W.W[1].cq, W.W[1].HQ,W.W[1].QG),Z.c1=l_(W.W[1].LR,W.W[1].Gr,W.W[1].Bq),Z.ss1=l_(W.W[1].zt,W.W[1].La,W.W[1].VG),u=W.W[1].position,I=W.W[1].Rd,Z.p1=u?QP(u):void 0,u&&I&&!Q7(I,u)&&(Z.cp1=QP(I)),Z.mtos1=W.W[1].AP);W.W.length>=3&&(Z.i2=W.W[2].Kt,Z.a2=l_(W.W[2].cq,W.W[2].HQ,W.W[2].QG),Z.c2=l_(W.W[2].LR,W.W[2].Gr,W.W[2].Bq),Z.ss2=l_(W.W[2].zt,W.W[2].La,W.W[2].VG),u=W.W[2].position,I=W.W[2].Rd,Z.p2=u?QP(u):void 0,u&&I&&!Q7(I,u)&&(Z.cp2=QP(I)),Z.mtos2=W.W[2].AP);W.W.length>=4&&(Z.i3=W.W[3].Kt,Z.a3=l_(W.W[3].cq,W.W[3].HQ, W.W[3].QG),Z.c3=l_(W.W[3].LR,W.W[3].Gr,W.W[3].Bq),Z.ss3=l_(W.W[3].zt,W.W[3].La,W.W[3].VG),u=W.W[3].position,I=W.W[3].Rd,Z.p3=u?QP(u):void 0,u&&I&&!Q7(I,u)&&(Z.cp3=QP(I)),Z.mtos3=W.W[3].AP);Z.cs=l$z(W.Rs);Y&&(Z.ic=Uv5(W.Rs),Z.dvpt=O.J.K,Z.dvs=XO(O.K,.5),Z.dfvs=XO(O.K,1),Z.davs=XO(O.W,.5),Z.dafvs=XO(O.W,1),k&&(O.J.K=0,EaC(O.K),EaC(O.W)),W.Dw()&&(Z.dtos=O.gD,Z.dav=O.N,Z.dtoss=W.xg+1,k&&(O.gD=0,O.N=0,W.xg++)),Z.dat=O.C.K,Z.dft=O.A5.K,k&&(O.C.K=0,O.A5.K=0));Z.ps=[h.C.width,h.C.height];Z.bs=[ws(h.W),h.W.getHeight()]; Z.scs=[h.T.width,h.T.height];Z.dom=h.domain;W.Mf&&(Z.vds=W.Mf);if(W.X.length>0||W.dO)Y=g.zK(W.X),W.dO&&Y.push(W.dO),Z.pings=g.tx(Y,function(M){return M.toString()}); Y=g.tx(g.Eo(W.X,function(M){return M.X()}),function(M){return M.getId()}); E5z(Y);Z.ces=Y;W.K&&(Z.vmer=W.K);W.L&&(Z.vmmk=W.L);W.gD&&(Z.vmiec=W.gD);Z.avms=W.jL?W.jL.getName():"ns";W.jL&&g.tm(Z,W.jL.py());P?(Z.c=e7(W.Yf.Gr,2),Z.ss=e7(W.Yf.La,2)):Z.tth=d2()-Tlq;Z.mc=e7(O.Kg,2);Z.nc=e7(O.G,2);Z.mv=og(O.X);Z.nv=og(O.T);Z.lte=e7(W.AZ,2);P=vu(W,T);hL(O);Z.qmtos=hL(P);Z.qnc=e7(P.G,2);Z.qmv=og(P.X);Z.qnv=og(P.T);Z.qas=P.T>0?1:0;Z.qi=W.Pl;Z.avms||(Z.avms="geo");Z.psm=O.OP.W;Z.psv=O.OP.getValue();Z.psfv=O.Q5.getValue();Z.psa=O.rD.getValue();B=yqX(B.gZ);B.length&&(Z.veid=B);W.C&&g.tm(Z, QXV(W.C));Z.avas=W.C2();Z.vs=W.FE();Z.co=j70(W);Z.tm=O.UP;Z.tu=O.Fr;return Z}; $d5=function(W,Y){if(g.n$(Ii1,Y))return!0;var k=W.HU[Y];return k!==void 0?(W.HU[Y]=!0,!k):!1}; j70=function(W){var Y=W.UP.toString(10).padStart(2,"0");Y=""+W.J9+Y;W.UP<99&&W.UP++;return Y}; S1S=function(){this.W={};var W=hv();b_(this,W,document);var Y=Xs6();try{if("1"==Y){for(var k=W.parent;k!=W.top;k=k.parent)b_(this,k,k.document);b_(this,W.top,W.top.document)}}catch(P){}}; Xs6=function(){var W=document.documentElement;try{if(!Te(hv().top))return"2";var Y=[],k=hv(W.ownerDocument);for(W=k;W!=k.top;W=W.parent)if(W.frameElement)Y.push(W.frameElement);else break;return Y&&Y.length!=0?"1":"0"}catch(P){return"2"}}; b_=function(W,Y,k){Bu(k,"mousedown",function(){return h75(W)},301); Bu(Y,"scroll",function(){return BlX(W)},302); Bu(k,"touchmove",function(){return OFd(W)},303); Bu(k,"mousemove",function(){return ugS(W)},304); Bu(k,"keydown",function(){return ZFC(W)},305)}; h75=function(W){g.Nc(W.W,function(Y){Y.J>1E5||++Y.J})}; BlX=function(W){g.Nc(W.W,function(Y){Y.W>1E5||++Y.W})}; OFd=function(W){g.Nc(W.W,function(Y){Y.W>1E5||++Y.W})}; ZFC=function(W){g.Nc(W.W,function(Y){Y.K>1E5||++Y.K})}; ugS=function(W){g.Nc(W.W,function(Y){Y.T>1E5||++Y.T})}; iFz=function(){this.W=[];this.K=[]}; cu=function(W,Y){return g.qc(W.W,function(k){return k.Pl==Y})}; Ml7=function(W,Y){return Y?g.qc(W.W,function(k){return k.uw.aE==Y}):null}; tlX=function(W,Y){return g.qc(W.K,function(k){return k.NS()==2&&k.Pl==Y})}; fL=function(){var W=xn;return W.W.length==0?W.K:W.K.length==0?W.W:g.AN(W.K,W.W)}; q1z=function(W,Y){W=Y.NS()==1?W.W:W.K;var k=tN(W,function(P){return P==Y}); return k!=-1?(W.splice(k,1),Y.jL&&Y.jL.unobserve(),Y.dispose(),!0):!1}; R7z=function(W){var Y=xn;if(q1z(Y,W)){switch(W.NS()){case 0:var k=function(){return null}; case 2:k=function(){return tlX(Y,W.Pl)}; break;case 1:k=function(){return cu(Y,W.Pl)}}for(var P=k();P;P=k())q1z(Y,P)}}; HFd=function(W){var Y=xn;W=g.Eo(W,function(k){return!Ml7(Y,k.uw.aE)}); Y.W.push.apply(Y.W,g.ZX(W))}; nQ2=function(W){var Y=[];g.xh(W,function(k){vQ(xn.W,function(P){return P.uw.aE===k.uw.aE&&P.Pl===k.Pl})||(xn.W.push(k),Y.push(k))})}; VP=function(){this.W=this.K=null}; psv=function(W,Y){function k(P,T){Y(P,T)} if(W.K==null)return!1;W.W=g.qc(W.K,function(P){return P!=null&&P.h8()}); W.W&&(W.W.init(k)?Xl2(W.W.W):Y(W.W.W.RJ(),W.W));return W.W!=null}; NF=function(W){W=G3d(W);fk.call(this,W.length?W[W.length-1]:new lh(Av,0));this.J=W;this.K=null}; G3d=function(W){if(!W.length)return[];W=(0,g.Eo)(W,function(k){return k!=null&&k.ZE()}); for(var Y=1;Yk.time?Y:k},W[0])}; $i=function(W){W=W===void 0?Av:W;fk.call(this,new lh(W,2))}; ki=function(){var W=s7v();lh.call(this,Av.top,W,"geo")}; s7v=function(){$r();var W=Ck();return W.J||W.K?0:2}; rZ7=function(){}; P4=function(){this.done=!1;this.W={Sf:0,iV:0,FaS:0,nk:0,Yy:-1,zE:0,MK:0,W0:0,Zug:0};this.C=null;this.X=!1;this.J=null;this.G=0;this.K=new Ud(this)}; ji=function(){var W=TV;W.X||(W.X=!0,AZd(W,function(){return W.T.apply(W,g.ZX(g.y0.apply(0,arguments)))}),W.T())}; z7z=function(){Hl(rZ7);var W=Hl(VP);W.W!=null&&W.W.W?Xl2(W.W.W):Ck().update(Av)}; Iz=function(W,Y,k){if(!W.done&&(W.K.cancel(),Y.length!=0)){W.J=null;try{z7z();var P=d2();$r().C=P;if(Hl(VP).W!=null)for(var T=0;T=0?d2()-mm:-1,h=d2();T.W.Yy==-1&&(X=h);var B=Ck(),O=$r(),u=sx(O.gZ),Z=fL();try{if(Z.length>0){var M=B.W;M&&(u.bs=[ws(M),M.getHeight()]);var t=B.C;t&&(u.ps=[t.width,t.height]);Av.screen&&(u.scs=[Av.screen.width,Av.screen.height])}else u.url=encodeURIComponent(Av.location.href.substring(0,512)),I.referrer&&(u.referrer=encodeURIComponent(I.referrer.substring(0,512))); u.tt=X;u.pt=mm;u.bin=O.K;Av.google_osd_load_pub_page_exp!==void 0&&(u.olpp=Av.google_osd_load_pub_page_exp);u.deb=[1,T.W.Sf,T.W.iV,T.W.nk,T.W.Yy,0,T.K.K,T.W.zE,T.W.MK,T.W.W0,T.W.Zug,-1].join(";");u.tvt=md2(T,h);B.K&&(u.inapp=1);if(Av!==null&&Av!=Av.top){Z.length>0&&(u.iframe_loc=encodeURIComponent(Av.location.href.substring(0,512)));var q=B.G;u.is=[ws(q),q.getHeight()]}}catch(G){u.error=1}TV.J=u}M=g.ij(TV.J);t=$r().W;Ex(t.J,"prf")==1?(q=new aF,T=t.W,I=0,T.W>-1&&(I=T.J.W.now()-T.W),q=Xg(q,1,Sn(T.T+ I),0),T=t.W,q=Xg(q,5,u4(T.W>-1?T.K+1:T.K),0),q=Xg(q,2,pZ(t.K.W.J()),"0"),q=Xg(q,3,pZ(t.K.W.K()),"0"),t=Xg(q,4,pZ(t.K.W.W()),"0"),q={},t=(q.pf=g.Jx(t.J()),q)):t={};g.tm(M,t);g.tm(Y,P,k,M,W())}])}; F5q=function(){var W=gQ2||Av;if(!W)return"";var Y=[];if(!W.location||!W.location.href)return"";Y.push("url="+encodeURIComponent(W.location.href.substring(0,512)));W.document&&W.document.referrer&&Y.push("referrer="+encodeURIComponent(W.document.referrer.substring(0,512)));return Y.join("&")}; Xp=function(){var W="youtube.player.web_20250818_09_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250818_09_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250818_09_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250818_09_RC00".match(/_(\d{8})_\d+_RC\d+$/),Y;if(((Y=W)==null?void 0:Y.length)==2)return W[1];W="youtube.player.web_20250818_09_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var k;return((k=W)==null?void 0:k.length)==3?"20"+W[1]+W[2]:null}; wsq=function(){return"av.default_js".includes("ima_html5_sdk")?{GM:"ima",IA:null}:"av.default_js".includes("ima_native_sdk")?{GM:"nima",IA:null}:"av.default_js".includes("admob-native-video-javascript")?{GM:"an",IA:null}:"youtube.player.web_20250818_09_RC00".includes("cast_js_sdk")?{GM:"cast",IA:Xp()}:"youtube.player.web_20250818_09_RC00".includes("youtube.player.web")?{GM:"yw",IA:Xp()}:"youtube.player.web_20250818_09_RC00".includes("outstream_web_client")?{GM:"out",IA:Xp()}:"youtube.player.web_20250818_09_RC00".includes("drx_rewarded_web")? {GM:"r",IA:Xp()}:"youtube.player.web_20250818_09_RC00".includes("gam_native_web_video")?{GM:"n",IA:Xp()}:"youtube.player.web_20250818_09_RC00".includes("admob_interstitial_video")?{GM:"int",IA:Xp()}:{GM:"j",IA:null}}; B4=function(W,Y){var k={sv:"968"};Si!==null&&(k.v=Si);k.cb=Q75;k.nas=xn.W.length;k.msg=W;Y!==void 0&&(W=yZ7(Y))&&(k.e=he[W]);return k}; OE=function(W){return Am(W,"custom_metric_viewable")}; yZ7=function(W){var Y=OE(W)?"custom_metric_viewable":W.toLowerCase();return Bk(LL,function(k){return k==Y})}; e71=function(){this.W=void 0;this.K=!1;this.J=0;this.T=-1;this.C="tos"}; CxS=function(W){try{var Y=W.split(",");return Y.length>g.Tm(oQ5).length?null:R3(Y,function(k,P){P=P.toLowerCase().split("=");if(P.length!=2||vQd[P[0]]===void 0||!vQd[P[0]](P[1]))throw Error("Entry ("+P[0]+", "+P[1]+") is invalid.");k[P[0]]=P[1];return k},{})}catch(k){return null}}; L5V=function(W,Y){if(W.W==void 0)return 0;switch(W.C){case "mtos":return W.K?Ig(Y.W,W.W):Ig(Y.K,W.W);case "tos":return W.K?jD(Y.W,W.W):jD(Y.K,W.W)}return 0}; uk=function(W,Y,k,P){dr.call(this,Y,P);this.G=W;this.L=k}; Zk=function(){}; ik=function(W){dr.call(this,"fully_viewable_audible_half_duration_impression",W)}; Mu=function(W){this.W=W}; te=function(W,Y){dr.call(this,W,Y)}; qu=function(W){m2.call(this,"measurable_impression",W)}; Rz=function(){Mu.apply(this,arguments)}; H4=function(W,Y,k){wr.call(this,W,Y,k)}; nj=function(W){W=W===void 0?Av:W;fk.call(this,new lh(W,2))}; pj=function(W,Y,k){wr.call(this,W,Y,k)}; GV=function(W){W=W===void 0?Av:W;fk.call(this,new lh(W,2))}; Kj=function(){lh.call(this,Av,2,"mraid");this.OP=0;this.Kg=this.wD=!1;this.G=null;this.K=a5v(this.J);this.T.W=new FG(0,0,0,0);this.UP=!1}; EE=function(W,Y,k){W.OM("addEventListener",Y,k)}; cZV=function(W){$r().T=!!W.OM("isViewable");EE(W,"viewableChange",Udd);W.OM("getState")==="loading"?EE(W,"ready",lid):bF0(W)}; bF0=function(W){typeof W.K.cV.AFMA_LIDAR==="string"?(W.wD=!0,xd7(W)):(W.K.compatibility=3,W.G="nc",W.fail("w"))}; xd7=function(W){W.Kg=!1;var Y=Ex($r().gZ,"rmmt")==1,k=!!W.OM("isViewable");(Y?!k:1)&&pB().setTimeout(Ab(524,function(){W.Kg||(fiF(W),zt(540,Error()),W.G="mt",W.fail("w"))}),500); Vlz(W);EE(W,W.K.cV.AFMA_LIDAR,Nl7)}; Vlz=function(W){var Y=Ex($r().gZ,"sneio")==1,k=W.K.cV.AFMA_LIDAR_EXP_1!==void 0,P=W.K.cV.AFMA_LIDAR_EXP_2!==void 0;(Y=Y&&P)&&(W.K.cV.AFMA_LIDAR_EXP_2=!0);k&&(W.K.cV.AFMA_LIDAR_EXP_1=!Y)}; fiF=function(W){W.OM("removeEventListener",W.K.cV.AFMA_LIDAR,Nl7);W.wD=!1}; aiS=function(W,Y){if(W.OM("getState")==="loading")return new g.UF(-1,-1);Y=W.OM(Y);if(!Y)return new g.UF(-1,-1);W=parseInt(Y.width,10);Y=parseInt(Y.height,10);return isNaN(W)||isNaN(Y)?new g.UF(-1,-1):new g.UF(W,Y)}; lid=function(){try{var W=Hl(Kj);W.OM("removeEventListener","ready",lid);bF0(W)}catch(Y){zt(541,Y)}}; Nl7=function(W,Y){try{var k=Hl(Kj);k.Kg=!0;var P=W?new FG(W.y,W.x+W.width,W.y+W.height,W.x):new FG(0,0,0,0);var T=d2(),I=Lk();var X=new w2(T,I,k);X.W=P;X.volume=Y;k.FL(X)}catch(h){zt(542,h)}}; Udd=function(W){var Y=$r(),k=Hl(Kj);W&&!Y.T&&(Y.T=!0,k.UP=!0,k.G&&k.fail("w",!0))}; Je=function(){this.isInitialized=!1;this.W=this.K=null;var W={};this.G=(W.start=this.tF,W.firstquartile=this.gK,W.midpoint=this.Yu,W.thirdquartile=this.sZ,W.complete=this.oh,W.error=this.SU,W.pause=this.GD,W.resume=this.cR,W.skip=this.nj,W.viewable_impression=this.b4,W.mute=this.LS,W.unmute=this.LS,W.fullscreen=this.uy,W.exitfullscreen=this.Cj,W.fully_viewable_audible_half_duration_impression=this.b4,W.measurable_impression=this.b4,W.abandon=this.GD,W.engagedview=this.b4,W.impression=this.b4,W.creativeview= this.b4,W.progress=this.LS,W.custom_metric_viewable=this.b4,W.bufferstart=this.GD,W.bufferfinish=this.cR,W.audio_measurable=this.b4,W.audio_audible=this.b4,W);W={};this.L=(W.overlay_resize=this.UZ,W.abandon=this.KJ,W.close=this.KJ,W.collapse=this.KJ,W.overlay_unmeasurable_impression=function(Y){return Uo(Y,"overlay_unmeasurable_impression",Lk())},W.overlay_viewable_immediate_impression=function(Y){return Uo(Y,"overlay_viewable_immediate_impression",Lk())},W.overlay_unviewable_impression=function(Y){return Uo(Y, "overlay_unviewable_impression",Lk())},W.overlay_viewable_end_of_session_impression=function(Y){return Uo(Y,"overlay_viewable_end_of_session_impression",Lk())},W); $r().K=3;Wjd(this);this.J=null}; sE=function(W,Y,k,P){W=W.dJ(null,P,!0,Y);W.T=k;HFd([W]);return W}; YL0=function(W,Y,k){d6v(Y);var P=W.W;g.xh(Y,function(T){var I=g.tx(T.criteria,function(X){var h=CxS(X);if(h==null)X=null;else if(X=new e71,h.visible!=null&&(X.W=h.visible/100),h.audible!=null&&(X.K=h.audible==1),h.time!=null){var B=h.timetype=="mtos"?"mtos":"tos",O=v56(h.time,"%")?"%":"ms";h=parseInt(h.time,10);O=="%"&&(h/=100);X.setTime(h,O,B)}return X}); vQ(I,function(X){return X==null})||Vn6(k,new uk(T.id,T.event,I,P))})}; $mX=function(){var W=[],Y=$r();W.push(Hl(ki));Ex(Y.gZ,"mvp_lv")&&W.push(Hl(Kj));Y=[new nj,new GV];Y.push(new NF(W));Y.push(new $i(Av));return Y}; kl1=function(W){if(!W.isInitialized){W.isInitialized=!0;try{var Y=d2(),k=$r(),P=Ck();mm=Y;k.J=79463069;W.K!=="o"&&(gQ2=VwS(Av));if(MV7()){TV.W.iV=0;TV.W.Yy=d2()-Y;var T=$mX(),I=Hl(VP);I.K=T;psv(I,function(){rp()})?TV.done||(ddV(),bh(I.W.W,W),ji()):P.J?rp():ji()}else Ae=!0}catch(X){throw xn.reset(),X; }}}; dp=function(W){TV.K.cancel();zV=W;TV.done=!0}; m9=function(W){if(W.K)return W.K;var Y=Hl(VP).W;if(Y)switch(Y.getName()){case "nis":W.K="n";break;case "gsv":W.K="m"}W.K||(W.K="h");return W.K}; Dk=function(W,Y,k){if(W.W==null)return Y.Mf|=4,!1;W=P82(W.W,k,Y);Y.Mf|=W;return W==0}; rp=function(){var W=[new $i(Av)],Y=Hl(VP);Y.K=W;psv(Y,function(){dp("i")})?TV.done||(ddV(),ji()):dp("i")}; TUz=function(W,Y){if(!W.K1){var k=Uo(W,"start",Lk());k=W.m1.W(k).W;var P={id:"lidarv"};P.r=Y;P.sv="968";Si!==null&&(P.v=Si);Od(k,function(T,I){return P[T]=T=="mtos"||T=="tos"?I:encodeURIComponent(I)}); Y=F5q();Od(Y,function(T,I){return P[T]=encodeURIComponent(I)}); Y="//pagead2.googlesyndication.com/pagead/gen_204?"+a8(NH(new VY,P));RM1(Y);W.K1=!0}}; y$=function(W,Y,k){Iz(TV,[W],!Lk());Y1z(W,k);k!=4&&W5X(W.wD,k,W.IH);return Uo(W,Y,Lk())}; Wjd=function(W){DdV(function(){var Y=jFS();W.K!=null&&(Y.sdk=W.K);var k=Hl(VP);k.W!=null&&(Y.avms=k.W.getName());return Y})}; I95=function(W,Y,k,P){var T=Ml7(xn,k);T!==null&&T.Pl!==Y&&(W.Bm(T),T=null);T||(Y=W.dJ(k,d2(),!1,Y),xn.K.length==0&&($r().J=79463069),nQ2([Y]),T=Y,T.T=m9(W),P&&(T.rD=P));return T}; X3V=function(W,Y){var k=W[Y];k!==void 0&&k>0&&(W[Y]=Math.floor(k*1E3))}; jFS=function(){var W=Ck(),Y={},k={},P={};return Object.assign({},(Y.sv="968",Y),Si!==null&&(k.v=Si,k),(P["if"]=W.J?"1":"0",P.nas=String(xn.W.length),P))}; ei=function(W){dr.call(this,"audio_audible",W)}; oz=function(W){m2.call(this,"audio_measurable",W)}; v4=function(){Mu.apply(this,arguments)}; Cj=function(){}; SL0=function(W){this.W=W}; P82=function(W,Y,k){W=W.K();if(typeof W==="function"){var P={};var T={};P=Object.assign({},Si!==null&&(P.v=Si,P),(T.sv="968",T.cb=Q75,T.e=hs2(Y),T));T=Uo(k,Y,Lk());g.tm(P,T);k.RR[Y]=T;P=k.NS()==2?q$5(P).join("&"):k.m1.W(P).W;try{return W(k.Pl,P,Y),0}catch(I){return 2}}else return 1}; hs2=function(W){var Y=OE(W)?"custom_metric_viewable":W;W=Bk(LL,function(k){return k==Y}); return he[W]}; Lj=function(){Je.call(this);this.X=null;this.C=!1;this.T="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; BUv=function(W,Y,k){k=k.opt_configurable_tracking_events;W.W!=null&&Array.isArray(k)&&YL0(W,k,Y)}; Ot6=function(W,Y,k){var P=cu(xn,Y);P||(P=k.opt_nativeTime||-1,P=sE(W,Y,m9(W),P),k.opt_osdId&&(P.rD=k.opt_osdId));return P}; u9z=function(W,Y,k){var P=cu(xn,Y);P||(P=sE(W,Y,"n",k.opt_nativeTime||-1));return P}; Ztd=function(W,Y){var k=cu(xn,Y);k||(k=sE(W,Y,"h",-1));return k}; itF=function(W){$r();switch(m9(W)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; qL2=function(W,Y,k,P){k=k===void 0?{}:k;var T={};g.tm(T,{opt_adElement:void 0,opt_fullscreen:void 0},k);var I=W.dN(Y,k);k=I?I.m1:W.tM();if(T.opt_bounds)return k.W(B4("ol",P));if(P!==void 0)if(yZ7(P)!==void 0)if(Ae)W=B4("ue",P);else if(kl1(W),zV=="i")W=B4("i",P),W["if"]=0;else if(Y=W.dN(Y,T)){b:{zV=="i"&&(Y.xt=!0);I=T.opt_fullscreen;I!==void 0&&i_(Y,!!I);var X;if(I=!Ck().K)(I=mU(g.wY(),"CrKey")&&!(mU(g.wY(),"CrKey")&&mU(g.wY(),"SmartSpeaker"))||mU(g.wY(),"PlayStation")||mU(g.wY(),"Roku")||Pq7()||mU(g.wY(), "Xbox"))||(I=g.wY(),I=mU(I,"AppleTV")||mU(I,"Apple TV")||mU(I,"CFNetwork")||mU(I,"tvOS")),I||(I=g.wY(),I=mU(I,"sdk_google_atv_x86")||mU(I,"Android TV")),I=!I;I&&(pB(),I=Pl(I3)===0);if(X=I){switch(Y.NS()){case 1:TUz(Y,"pv");break;case 2:W.Lw(Y)}dp("pv")}I=P.toLowerCase();if(X=!X)X=Ex($r().gZ,"ssmol")&&I==="loaded"?!1:g.n$(Mjd,I);if(X&&Y.DP==0){zV!="i"&&(TV.done=!1);X=T!==void 0?T.opt_nativeTime:void 0;Fl=X=typeof X==="number"?X:d2();Y.A3=!0;var h=Lk();Y.DP=1;Y.HU={};Y.HU.start=!1;Y.HU.firstquartile= !1;Y.HU.midpoint=!1;Y.HU.thirdquartile=!1;Y.HU.complete=!1;Y.HU.resume=!1;Y.HU.pause=!1;Y.HU.skip=!1;Y.HU.mute=!1;Y.HU.unmute=!1;Y.HU.viewable_impression=!1;Y.HU.measurable_impression=!1;Y.HU.fully_viewable_audible_half_duration_impression=!1;Y.HU.fullscreen=!1;Y.HU.exitfullscreen=!1;Y.xg=0;h||(Y.G9().L=X);Iz(TV,[Y],!h)}(X=Y.Fx[I])&&so(Y.Rs,X);Ex($r().gZ,"fmd")||g.n$(tjz,I)&&Y.dO&&Y.dO.K(Y,null);switch(Y.NS()){case 1:var B=OE(I)?W.G.custom_metric_viewable:W.G[I];break;case 2:B=W.L[I]}if(B&&(P=B.call(W, Y,T,P),Ex($r().gZ,"fmd")&&g.n$(tjz,I)&&Y.dO&&Y.dO.K(Y,null),P!==void 0)){T=B4(void 0,I);g.tm(T,P);P=T;break b}P=void 0}Y.DP==3&&W.Bm(Y);W=P}else W=B4("nf",P);else W=void 0;else Ae?W=B4("ue"):I?(W=B4(),g.tm(W,k3v(I,!0,!1,!1))):W=B4("nf");return typeof W==="string"?k.W():k.W(W)}; RsF=function(W,Y){Y&&(W.T=Y)}; Htz=function(W){var Y={};return Y.viewability=W.W,Y.googleViewability=W.K,Y}; nW5=function(W,Y,k){k=k===void 0?{}:k;W=qL2(Hl(Lj),Y,k,W);return Htz(W)}; UE=function(W){var Y=g.y0.apply(1,arguments).filter(Boolean).join("&");if(!Y)return W;var k=W.match(/[?&]adurl=/);return k?W.slice(0,k.index+1)+Y+"&"+W.slice(k.index+1):W+(W.indexOf("?")<0?"?":"&")+Y}; lk=function(W,Y){return Y?"&"+W+"="+encodeURIComponent(Y):""}; p3S=function(W){var Y=W.url;W=W.Wkg;this.K=Y;this.T=W;this.J=(new Date).getTime()-17040672E5;this.W={};for(var k=/[?&]([^&=]+)=([^&]*)/g;W=k.exec(Y);)this.W[W[1]]=W[2]}; GlC=function(W){W=W.T;if(!W)return"";var Y=lk("uap",W.platform)+lk("uapv",W.platformVersion)+lk("uafv",W.uaFullVersion)+lk("uaa",W.architecture)+lk("uam",W.model)+lk("uab",W.bitness);W.fullVersionList&&(Y+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(k){return encodeURIComponent(k.brand)+";"+encodeURIComponent(k.version)}).join("|"))); W.wow64!=null&&(Y+="&uaw="+Number(W.wow64));return Y.slice(1)}; JE1=function(W,Y,k,P,T){var I=window;var X=X===void 0?!1:X;var h;k?h=(X===void 0?0:X)?"//ep1.adtrafficquality.google/bg/"+AQ(k)+".js":"//pagead2.googlesyndication.com/bg/"+AQ(k)+".js":h="";X=X===void 0?!1:X;k=I.document;var B={};Y&&(B._scs_=Y);B._bgu_=h;B._bgp_=P;B._li_="v_h.3.0.0.0";T&&(B._upb_=T);(Y=I.GoogleTyFxhY)&&typeof Y.push=="function"||(Y=I.GoogleTyFxhY=[]);Y.push(B);Y=$s(k).createElement("SCRIPT");Y.type="text/javascript";Y.async=!0;W=(X===void 0?0:X)?g.Vg(Kj6,AQ(W)+".js"):g.Vg(EWd,AQ(W)+ ".js");g.Rp(Y,W);(I=(I.GoogleTyFxhYEET||{})[Y.src])?I():k.getElementsByTagName("head")[0].appendChild(Y)}; sFS=function(){try{var W,Y;return!!((W=window)==null?0:(Y=W.top)==null?0:Y.location.href)&&!1}catch(k){return!0}}; bk=function(W,Y,k){k=k===void 0?Error():k;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=W;Y+=":";k instanceof Error?(this.message=Y+k.message,this.stack=k.stack||""):(this.message=Y+String(k),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; xi=function(){var W=rEV();W=W===void 0?"bevasrsg":W;return new Promise(function(Y){var k=window===window.top?window:sFS()?window:window.top,P=k[W],T;((T=P)==null?0:T.bevasrs)?Y(new c4(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),k[W]=P),P.nqfbel.push(function(I){Y(new c4(I))}))})}; AE6=function(W){var Y={c:W.mO,e:W.Vd,mc:W.T0,me:W.oG};W.NV&&(Y.co={c:W.NV.dC,a:W.NV.uV,s:W.NV.rL});return Y}; fj=function(W){g.e.call(this);this.wpc=W}; c4=function(W){g.e.call(this);var Y=this;this.W5=W;this.J="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.K=void 0;this.uR=this.W5.p;this.T=this.Vv.bind(this);this.addOnDisposeCallback(function(){return void zsX(Y)})}; dm7=function(W){var Y;return g.D(function(k){if(k.W==1){if(!W.W5.wpc)throw new bk(30,"NWA");return W.W?k.return(W.W):g.m(k,W.W5.wpc(),2)}Y=k.K;W.W=new fj(Y);return k.return(W.W)})}; zsX=function(W){W.K!==void 0&&(W.J.forEach(function(Y){var k;(k=W.K)==null||k.removeEventListener(Y,W.T)}),W.K=void 0)}; mmz=function(W){var Y=Y===void 0?51:Y;var k=[];G3(W,V$,6).forEach(function(P){s1(P,2)<=Y&&k.push(s1(P,1))}); return k}; Dmd=function(W){var Y=Y===void 0?51:Y;var k=[];G3(W,V$,6).forEach(function(P){s1(P,2)>Y&&k.push(s1(P,1))}); return k}; gWC=function(W){W.then(function(){},function(){})}; Nu=function(){g.e.apply(this,arguments);this.K=1}; az=function(W){return{fieldType:2,fieldName:W}}; g.WI=function(W){return{fieldType:3,fieldName:W}}; Fj0=function(W){this.W=W;W.Ho("/client_streamz/bg/frs",g.WI("mk"))}; w36=function(W){this.W=W;W.Ho("/client_streamz/bg/wrl",g.WI("mn"),az("ac"),az("sc"),g.WI("rk"),g.WI("mk"))}; QF2=function(W){this.W=W;W.oM("/client_streamz/bg/ec",g.WI("en"),g.WI("mk"))}; yE5=function(W){this.W=W;W.Ho("/client_streamz/bg/el",g.WI("en"),g.WI("mk"))}; es0=function(W){this.W=W;W.oM("/client_streamz/bg/cec",az("ec"),g.WI("mk"))}; oW5=function(W){this.W=W;W.oM("/client_streamz/bg/po/csc",az("cs"),g.WI("mk"))}; vWX=function(W){this.W=W;W.oM("/client_streamz/bg/po/ctav",g.WI("av"),g.WI("mk"))}; C81=function(W){this.W=W;W.oM("/client_streamz/bg/po/cwsc",g.WI("su"),g.WI("mk"))}; Ljz=function(W){this.h5=CZ(W)}; UmF=function(W,Y){return AQq(W,Y,aRV)}; Ye=function(W){this.h5=CZ(W)}; $e=function(W){this.h5=CZ(W)}; ke=function(W){this.h5=CZ(W)}; PI=function(W){this.h5=CZ(W)}; T9=function(W){this.h5=CZ(W)}; jR=function(W){this.h5=CZ(W)}; l96=function(W){this.h5=CZ(W)}; xm5=function(W){var Y=new jR;Y=gl(Y,1,W.K);var k=btV(W);Y=AQq(Y,k,BE1);k=[];for(var P=[],T=g.p(W.W.keys()),I=T.next();!I.done;I=T.next())P.push(I.value.split(","));for(T=0;T>>31)&4294967295;Z=T[0];var q=T[1],G=T[2],J=T[3],d=T[4];for(t=0;t<80;t++){if(t<40)if(t<20){var A=J^q&(G^J);var F=1518500249}else A=q^G^J,F=1859775393;else t<60?(A=q&G|J&(q|G),F=2400959708):(A=q^G^J,F=3395469782);A=((Z<<5|Z>>>27)&4294967295)+A+d+F+M[t]&4294967295;d=J;J=G;G=(q<<30|q>>>2)&4294967295;q=Z;Z=A}T[0]=T[0]+Z&4294967295;T[1]=T[1]+q&4294967295;T[2]= T[2]+G&4294967295;T[3]=T[3]+J&4294967295;T[4]=T[4]+d&4294967295} function k(Z,M){if(typeof Z==="string"){Z=unescape(encodeURIComponent(Z));for(var t=[],q=0,G=Z.length;q=56;t--)I[t]=M&255,M>>>=8;Y(I);for(t=M=0;t<5;t++)for(var q=24;q>=0;q-=8)Z[M++]=T[t]>>q&255;return Z} for(var T=[],I=[],X=[],h=[128],B=1;B<64;++B)h[B]=0;var O,u;W();return{reset:W,update:k,digest:P,CU:function(){for(var Z=P(),M="",t=0;t1)));X=X.next)T||(I=X);T&&(k.W==0&&P==1?UHS(k,Y):(I?(P=I,P.next==k.T&&(k.T=P),P.next=P.next.next):llv(k),bkq(k,T,3,Y)))}W.J=null}else Kv(W,3,Y)}; AU=function(W,Y){W.K||W.W!=2&&W.W!=3||cbd(W);W.T?W.T.next=Y:W.K=Y;W.T=Y}; xHS=function(W,Y,k,P){var T=JU(null,null,null);T.W=new g.EJ(function(I,X){T.J=Y?function(h){try{var B=Y.call(P,h);I(B)}catch(O){X(O)}}:I; T.K=k?function(h){try{var B=k.call(P,h);B===void 0&&h instanceof dg?X(h):I(B)}catch(O){X(O)}}:X}); T.W.J=W;AU(W,T);return T.W}; Kv=function(W,Y,k){W.W==0&&(W===k&&(Y=3,k=new TypeError("Promise cannot resolve to itself")),W.W=1,orv(k,W.P_5,W.wK5,W)||(W.G=k,W.W=Y,W.J=null,cbd(W),Y!=3||k instanceof dg||fl0(W,k)))}; orv=function(W,Y,k,P){if(W instanceof g.EJ)return LmS(W,Y,k,P),!0;if(W)try{var T=!!W.$goog_Thenable}catch(X){T=!1}else T=!1;if(T)return W.then(Y,k,P),!0;if(g.Pp(W))try{var I=W.then;if(typeof I==="function")return V7V(W,I,Y,k,P),!0}catch(X){return k.call(P,X),!0}return!1}; V7V=function(W,Y,k,P,T){function I(B){h||(h=!0,P.call(T,B))} function X(B){h||(h=!0,k.call(T,B))} var h=!1;try{Y.call(W,X,I)}catch(B){I(B)}}; cbd=function(W){W.X||(W.X=!0,g.GR(W.V_,W))}; llv=function(W){var Y=null;W.K&&(Y=W.K,W.K=Y.next,Y.next=null);W.K||(W.T=null);return Y}; bkq=function(W,Y,k,P){if(k==3&&Y.K&&!Y.T)for(;W&&W.C;W=W.J)W.C=!1;if(Y.W)Y.W.J=null,N2V(Y,k,P);else try{Y.T?Y.J.call(Y.context):N2V(Y,k,P)}catch(T){alF.call(null,T)}mHX(eKS,Y)}; N2V=function(W,Y,k){Y==2?W.J.call(W.context,k):W.K&&W.K.call(W.context,k)}; fl0=function(W,Y){W.C=!0;g.GR(function(){W.C&&alF.call(null,Y)})}; dg=function(W){Zc.call(this,W)}; g.mQ=function(W,Y){g.S2.call(this);this.z9=W||1;this.DG=Y||g.V0;this.xV=(0,g.Xz)(this.EHr,this);this.FH=g.Bp()}; g.D4=function(W,Y,k){if(typeof W==="function")k&&(W=(0,g.Xz)(W,k));else if(W&&typeof W.handleEvent=="function")W=(0,g.Xz)(W.handleEvent,W);else throw Error("Invalid listener argument");return Number(Y)>2147483647?-1:g.V0.setTimeout(W,Y||0)}; gg=function(W,Y){var k=null;return(new g.EJ(function(P,T){k=g.D4(function(){P(Y)},W); k==-1&&T(Error("Failed to schedule timer."))})).MA(function(P){g.V0.clearTimeout(k); throw P;})}; g.FA=function(W){g.e.call(this);this.G=W;this.T=0;this.J=100;this.C=!1;this.K=new Map;this.X=new Set;this.flushInterval=3E4;this.W=new g.mQ(this.flushInterval);this.W.listen("tick",this.Lf,!1,this);g.v(this,this.W)}; W22=function(W){W.W.enabled||W.W.start();W.T++;W.T>=W.J&&W.Lf()}; Yod=function(W,Y){return W.X.has(Y)?void 0:W.K.get(Y)}; $F5=function(W){for(var Y=0;Y2?W.W.statusText:""}catch(k){Y=""}W.T=Y+" ["+W.getStatus()+"]";uO5(W)}}finally{v9(W)}}}; v9=function(W,Y){if(W.W){W.X&&(clearTimeout(W.X),W.X=null);var k=W.W;W.W=null;Y||W.dispatchEvent("ready");try{k.onreadystatechange=null}catch(P){}}}; UJ=function(W){var Y=W.getStatus();a:switch(Y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break a;default:k=!1}if(!k){if(Y=Y===0)W=g.I8(String(W.L))[1]||null,!W&&g.V0.self&&g.V0.self.location&&(W=g.V0.self.location.protocol.slice(0,-1)),Y=!MD0.test(W?W.toLowerCase():"");k=Y}return k}; g.Lv=function(W){return W.W?W.W.readyState:0}; g.l3=function(W){try{return W.W?W.W.responseText:""}catch(Y){return""}}; g.b3=function(W){try{if(!W.W)return null;if("response"in W.W)return W.W.response;switch(W.gD){case "":case "text":return W.W.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in W.W)return W.W.mozResponseArrayBuffer}return null}catch(Y){return null}}; g.tDS=function(W){var Y={};W=(W.W&&g.Lv(W)>=2?W.W.getAllResponseHeaders()||"":"").split("\r\n");for(var k=0;k>1,Y),q$(W,W.length>>1)]}; Nr7=function(W){var Y=g.p(VDS(W,Rv));W=Y.next().value;Y=Y.next().value;return W.toString(16)+Y.toString(16)}; aq5=function(W,Y){var k=VDS(Y);W=new Uint32Array(W.buffer);Y=W[0];var P=g.p(k);k=P.next().value;P=P.next().value;for(var T=1;T>>8|X<<24,X+=I|0,X^=h+38293,I=I<<3|I>>>29,I^=X,B=B>>>8|B<<24,B+=h|0,B^=O+38293,h=h<<3|h>>>29,h^=B;I=[I,X];W[T]^=I[0];T+1=k?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(P.buffer,Y+4)]}; Ha=function(W,Y,k){k=k===void 0?[]:k;this.maxItems=W;this.W=Y===void 0?0:Y;this.K=k}; $u7=function(W){var Y=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!Y)return new Ha(W);var k=Y.split(",");if(k.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ha(W);Y=k.slice(1);Y.length===1&&Y[0]===""&&(Y=[]);k=Number(k[0]);return isNaN(k)||k<0||k>Y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ha(W)):new Ha(W,k,Y)}; kV7=function(W,Y){this.logger=Y;try{var k=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){k=!1}k&&(this.index=$u7(W))}; Pkd=function(W,Y,k,P,T){var I=W.index?ax(W.logger,function(){return W9d(W.index,Nr7(Y),k,P,T)},"W"):"u"; W.logger.ZB(I)}; Tp1=function(W,Y,k){var P=g.p(W.index?ax(W.logger,function(){return YE0(Nr7(Y),k)},"R"):["u"]),T=P.next().value; P=P.next().value;W.logger.xo(T);return P}; X4d=function(W){function Y(){k-=P;k-=T;k^=T>>>13;P-=T;P-=k;P^=k<<8;T-=k;T-=P;T^=P>>>13;k-=P;k-=T;k^=T>>>12;P-=T;P-=k;P^=k<<16;T-=k;T-=P;T^=P>>>5;k-=P;k-=T;k^=T>>>3;P-=T;P-=k;P^=k<<10;T-=k;T-=P;T^=P>>>15} W=jzd(W);for(var k=2654435769,P=2654435769,T=314159265,I=W.length,X=I,h=0;X>=12;X-=12,h+=12)k+=nM(W,h),P+=nM(W,h+4),T+=nM(W,h+8),Y();T+=I;switch(X){case 11:T+=W[h+10]<<24;case 10:T+=W[h+9]<<16;case 9:T+=W[h+8]<<8;case 8:P+=W[h+7]<<24;case 7:P+=W[h+6]<<16;case 6:P+=W[h+5]<<8;case 5:P+=W[h+4];case 4:k+=W[h+3]<<24;case 3:k+=W[h+2]<<16;case 2:k+=W[h+1]<<8;case 1:k+=W[h+0]}Y();return Ik5.toString(T)}; jzd=function(W){for(var Y=[],k=0;k>7,W.error.code]);P.set(k,4);return P}; dM=function(W,Y,k){pM.call(this,W);this.T=Y;this.clientState=k;this.W="S";this.K="q"}; zu=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):g.E$(W)}; h40=function(W,Y,k){return W instanceof Zu?Qg6(W,k,Y,1):W.Ld(k)}; Du=function(W){g.e.call(this);var Y=this;this.J=new g.Xd;this.T=0;this.K=void 0;this.state=2;this.W5=W.W5;this.TB=W.TB;this.QV=Object.assign({},BpC,W.QV||{});this.logger=W.W5.bP();var k;this.onError=(k=W.onError)!=null?k:function(){}; this.Mc=W.Mc||!1;if(Ojq(W)){var P=this.W5;this.C=function(){return C_X(P).catch(function(X){X=Y.reportError(new bk(Y.W?20:32,"TRG:Disposed",X));Y.K=X;var h;(h=Y.W)==null||h.dispose();Y.W=void 0;Y.J.reject(X)})}; L2S(P,function(){return void m$(Y)}); P.L===2&&m$(this)}else this.C=W.P2g,m$(this);var T=this.logger.share();T.pI("o");var I=new Vx(T,"o");this.J.promise.then(function(){I.done();T.PD();T.dispose()},function(){return void T.dispose()}); this.addOnDisposeCallback(function(){Y.W?(Y.W.dispose(),Y.W=void 0):Y.K?Y.logger.PD():(Y.K=Y.reportError(new bk(32,"TNP:Disposed")),Y.logger.PD(),Y.J.reject(Y.K))}); g.v(this,this.logger)}; up5=function(W,Y){if(!(Y instanceof bk))if(Y instanceof wg){var k=Error(Y.toString());k.stack=Y.stack;Y=new bk(11,"EBH:Error",k)}else Y=new bk(12,"BSO:Unknown",Y);return W.reportError(Y)}; m$=function(W){var Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G;return g.D(function(J){switch(J.W){case 1:Y=void 0;W.T++;k=new g.Xd;W.W5 instanceof iK&&W.W5.T.push(k.promise);if(!W.Mc){J.oi(2);break}P=new g.Xd;setTimeout(function(){return void P.resolve()}); return g.m(J,P.promise,2);case 2:return T=W.logger.share(),g.KC(J,4,5),W.state=5,I={},X=[],g.m(J,tR(W.W5.snapshot({mO:I,aR:X}),W.QV.qEz,function(){return Promise.reject(new bk(15,"MDA:Timeout"))}),7); case 7:h=J.K;if(W.Xr())throw new bk(W.W?20:32,"MDA:Disposed");B=X[0];W.state=6;return g.m(J,tR(h40(W.TB,T,h),W.QV.eP,function(){return Promise.reject(new bk(10,"BWB:Timeout"))}),8); case 8:O=J.K;if(W.Xr())throw new bk(W.W?20:32,"BWB:Disposed");W.state=7;Y=ax(T,function(){var A=Zj7(W,O,k,B);A.J.promise.then(function(){return void W.C()}); return A},"i"); case 5:g.DX(J);T.dispose();g.gv(J,6);break;case 4:u=g.Aq(J);(Z=Y)==null||Z.dispose();if(!W.K){M=up5(W,u);k.resolve();var d;if(d=W.W5 instanceof iK&&W.T<2)a:if(u instanceof bk)d=u.code!==32&&u.code!==20&&u.code!==10;else{if(u instanceof wg)switch(u.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return t=(1+Math.random()*.25)*(W.W?6E4:1E3),q=setTimeout(function(){return void W.C()},t),W.addOnDisposeCallback(function(){return void clearTimeout(q)}),J.return(); W.K=M}T.kJ(W.W?13:14);W.J.reject(W.K);return J.return();case 6:W.state=8,W.T=0,(G=W.W)==null||G.dispose(),W.W=Y,W.J.resolve(),g.G1(J)}})}; Zj7=function(W,Y,k,P){var T=rl(Y,2)*1E3;if(T<=0)throw new bk(31,"TTM:Invalid");if(AZ(Y,4))return new rM(W.logger,AZ(Y,4),T);if(!rl(Y,3))return new JR(W.logger,gZ(I7(Y,1)),T);if(!P)throw new bk(4,"PMD:Undefined");P=P(gZ(I7(Y,1)));if(!(P instanceof Function))throw new bk(16,"APF:Failed");W.X=Math.floor((Date.now()+T)/1E3);W=new Ev(W.logger,P,rl(Y,3),T);W.addOnDisposeCallback(function(){return void k.resolve()}); return W}; ijd=function(W,Y){Y=Y instanceof bk?Y:new bk(5,"TVD:error",Y);return W.reportError(Y)}; Hjq=function(W,Y,k){try{if(W.Xr())throw new bk(21,"BNT:disposed");if(!W.W&&W.K)throw W.K;var P,T;return(T=(P=Mi6(W,Y,k))!=null?P:tiV(W,Y,k))!=null?T:qEF(W,Y,k)}catch(I){if(!Y.oG)throw ijd(W,I);return R46(W,k,I)}}; Mi6=function(W,Y,k){var P;return(P=W.W)==null?void 0:KM(P,function(){return gM(W,Y)},k,function(T){var I; if(W.W instanceof Ev&&((I=Y.NV)==null?0:I.rL))try{var X;(X=W.cache)==null||Pkd(X,gM(W,Y),T,Y.NV.dC,W.X-120)}catch(h){W.reportError(new bk(24,"ELX:write",h))}})}; tiV=function(W,Y,k){var P;if((P=Y.NV)!=null&&P.uV)try{var T,I=(T=W.cache)==null?void 0:Tp1(T,gM(W,Y),Y.NV.dC);return I?k?ax(W.logger,function(){return g.Jx(I,2)},"a"):I:void 0}catch(X){W.reportError(new bk(23,"RXO:read",X))}}; qEF=function(W,Y,k){var P={stack:[],error:void 0,hasError:!1};try{if(!Y.T0)throw new bk(29,"SDF:notready");return KM(q2d(P,new dM(W.logger,0,W.state)),function(){return gM(W,Y)},k)}catch(T){P.error=T,P.hasError=!0}finally{RSd(P)}}; R46=function(W,Y,k){var P={stack:[],error:void 0,hasError:!1};try{var T=ijd(W,k);return KM(q2d(P,new AR(W.logger,T)),function(){return[]},Y)}catch(I){P.error=I,P.hasError=!0}finally{RSd(P)}}; gM=function(W,Y){return Y.Vd?Y.Vd:Y.mO?ax(W.logger,function(){return Y.Vd=zu(Y.mO)},"c"):[]}; Fd=function(){var W=0,Y;return function(k){Y||(Y=new Wa);var P=new dM(Y,W,1),T=KM(P,function(){return zu(k)},!0); P.dispose();W++;return T}}; wM=function(W){this.h5=CZ(W)}; niC=function(W,Y,k){this.NW=W;this.Pj=Y;this.metadata=k}; QN=function(W,Y){Y=Y===void 0?{}:Y;this.RzP=W;this.metadata=Y;this.status=null}; yN=function(W,Y,k,P,T){this.name=W;this.methodType="unary";this.requestType=Y;this.responseType=k;this.W=P;this.K=T}; ed=function(W){this.h5=CZ(W)}; ov=function(W){this.h5=CZ(W)}; va=function(W){this.h5=CZ(W)}; CM=function(W,Y){this.G=W.dqg;this.L=Y;this.W=W.xhr;this.J=[];this.C=[];this.X=[];this.T=[];this.K=[];this.G&&p4q(this)}; JeX=function(W,Y){var k=new GV6;g.VS(W.W,"complete",function(){if(UJ(W.W)){var P=g.l3(W.W);if(Y&&W.W.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");P=atob(P)}try{var T=W.L(P)}catch(h){LM(W,Uv(new wg(13,"Error when deserializing response data; error: "+h+(", response: "+P)),k));return}P=k00(W.W.getStatus());lK(W,bK(W));P==0?K9v(W,T):LM(W,Uv(new wg(P,"Xhr succeeded but the status code is not 200"),k))}else{P=g.l3(W.W);T=bK(W);if(P){var I=Eid(W, P);P=I.code;var X=I.details;I=I.metadata}else P=2,X="Rpc failed due to xhr error. uri: "+String(W.W.L)+", error code: "+W.W.K+", error: "+W.W.getLastError(),I=T;lK(W,T);LM(W,Uv(new wg(P,X,I),k))}})}; p4q=function(W){W.G.al("data",function(Y){if("1"in Y){var k=Y["1"];try{var P=W.L(k)}catch(T){LM(W,new wg(13,"Error when deserializing response data; error: "+T+(", response: "+k)))}P&&K9v(W,P)}if("2"in Y)for(Y=Eid(W,Y["2"]),k=0;k-1&&W.splice(Y,1)}; K9v=function(W,Y){for(var k=0;k>4&15).toString(16)+(W&15).toString(16)}; To=function(W,Y){this.K=this.W=null;this.J=W||null;this.T=!!Y}; SS=function(W){W.W||(W.W=new Map,W.K=0,W.J&&Od(W.J,function(Y,k){W.add(rE(Y),k)}))}; F9z=function(W,Y){SS(W);Y=hP(W,Y);return W.W.has(Y)}; g.w4v=function(W,Y,k){W.remove(Y);k.length>0&&(W.J=null,W.W.set(hP(W,Y),g.zK(k)),W.K=W.K+k.length)}; hP=function(W,Y){Y=String(Y);W.T&&(Y=Y.toLowerCase());return Y}; mud=function(W,Y){Y&&!W.T&&(SS(W),W.J=null,W.W.forEach(function(k,P){var T=P.toLowerCase();P!=T&&(this.remove(P),g.w4v(this,T,k))},W)); W.T=Y}; g.QzX=function(W){var Y="";g.Nc(W,function(k,P){Y+=P;Y+=":";Y+=k;Y+="\r\n"}); return Y}; g.BH=function(W,Y,k){if(g.Ox(k))return W;k=g.QzX(k);if(typeof W==="string")return tb(W,g.JQ(Y),k);g.I2(W,Y,k);return W}; g.OU=function(W){g.e.call(this);this.K=W;this.W={}}; yeq=function(W,Y,k,P,T,I){if(Array.isArray(k))for(var X=0;X=0)return!0;try{var Y=new g.av(W)}catch(k){return g.qc(TTv,function(P){return W.search(P)>0})!=null}return Y.X.match(j56)?!0:g.qc(TTv,function(k){return W.match(k)!=null})!=null}; g.K_=function(W,Y){return W.replace(XId,function(k,P){try{var T=g.uj(Y,P);if(T==null||T.toString()==null)return k;T=T.toString();if(T==""||!g.zm(g.z6(T)))return encodeURIComponent(T).replace(/%2C/g,",")}catch(I){}return k})}; EU=function(W,Y){return Object.is(W,Y)}; sU=function(W){var Y=JP;JP=W;return Y}; SuF=function(W){if(W.rS!==void 0){var Y=rO;rO=!0;try{for(var k=W.rS;k!==void 0;k=k.hg){var P=k.M7;P.TR||(W=void 0,P.TR=!0,SuF(P),(W=P.Ay)==null||W.call(P,P))}}finally{rO=Y}}}; hgV=function(){var W;return((W=JP)==null?void 0:W.zH)!==!1}; BTC=function(W){W&&(W.uG=void 0,W.bf=!0);return sU(W)}; uMd=function(W,Y){sU(Y);if(W){W.bf=!1;Y=W.uG;var k=Y!==void 0?Y.s7:W.producers;if(k!==void 0){if(AP(W)){do k=OH2(k);while(k!==void 0)}Y!==void 0?Y.s7=void 0:W.producers=void 0}}}; ZH1=function(W,Y){var k=W.Iw,P=AP(W);k!==void 0?(Y.hg=k.hg,k.hg=Y):(Y.hg=void 0,W.rS=Y);Y.hP=k;W.Iw=Y;if(!P)for(W=W.producers;W!==void 0;W=W.s7)ZH1(W.As,W)}; OH2=function(W){var Y=W.As,k=W.s7,P=W.hg,T=W.hP;W.hg=void 0;W.hP=void 0;P!==void 0?P.hP=T:Y.Iw=T;if(T!==void 0)T.hg=P;else if(Y.rS=P,!AP(Y))for(W=Y.producers;W!==void 0;)W=OH2(W);return k}; AP=function(W){return W.Wn||W.rS!==void 0}; qu0=function(W){function Y(){a:{if(rO)throw Error("");if(JP!==null){var P=JP.uG;if(P===void 0||P.As!==k){var T=void 0,I=JP.bf;if(I&&(T=P!==void 0?P.s7:JP.producers,T!==void 0&&T.As===k)){JP.uG=T;T.Wh6=k.version;break a}var X=k.Iw,h;if(!(h=X===void 0||X.M7!==JP)){if(I){b:{h=JP;I=h.uG;if(I!==void 0){h=h.producers;do{if(h===X){I=!0;break b}if(h===I)break;h=h.s7}while(h!==void 0)}I=!1}I=!I}h=I}h&&(I=AP(JP),T={As:k,M7:JP,s7:T,hP:X,Wh6:k.version,hg:void 0},JP.uG=T,P!==void 0?P.s7=T:JP.producers=T,I&&ZH1(k, T))}}}return k.value} var k=Object.create(iHq);k.value=W;Y[MRC]=k;return[Y,function(P){return tR1(k,P)}, function(P){if(!hgV())throw Error();tR1(k,P(k.value))}]}; tR1=function(W,Y){if(!hgV())throw Error();W.J3(W.value,Y)||(W.value=Y,W.version++,Rgz++,SuF(W))}; zo=function(W,Y){Y=Y===void 0?"":Y;W=qu0(W)[0][MRC];var k;Y=(k=Y)!=null?k:"[signal]";W.debugName=Y}; mY=function(W){g.S2.call(this);var Y=this;this.C=this.K=0;this.EX=W!=null?W:{r_:function(T,I){return setTimeout(T,I)}, Ca:function(T){clearTimeout(T)}}; var k,P;this.W=(P=(k=window.navigator)==null?void 0:k.onLine)!=null?P:!0;this.J=function(){return g.D(function(T){return g.m(T,dO(Y),0)})}; window.addEventListener("offline",this.J);window.addEventListener("online",this.J);this.C||this.u7()}; HH1=function(){var W=g.Dx;mY.instance||(mY.instance=new mY(W));return mY.instance}; dO=function(W,Y){return W.T?W.T:W.T=new Promise(function(k){var P,T,I,X;return g.D(function(h){switch(h.W){case 1:return P=window.AbortController?new window.AbortController:void 0,I=(T=P)==null?void 0:T.signal,X=!1,g.KC(h,2,3),P&&(W.K=W.EX.r_(function(){P.abort()},Y||2E4)),g.m(h,fetch("/generate_204",{method:"HEAD", signal:I}),5);case 5:X=!0;case 3:g.DX(h);W.T=void 0;W.K&&(W.EX.Ca(W.K),W.K=0);X!==W.W&&(W.W=X,W.W?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));k(X);g.gv(h,0);break;case 2:g.Aq(h),X=!1,h.oi(3)}})})}; neV=function(W){this.h5=CZ(W)}; wO=function(){this.data=[];this.W=-1}; pI5=function(W){W.W===-1&&(W.W=W.data.reduce(function(Y,k,P){return Y+(k?Math.pow(2,P):0)},0)); return W.W}; QB=function(W){W.setAttribute("role","link")}; eS=function(W,Y){Array.isArray(Y)&&(Y=Y.join(" "));Y===""||Y==void 0?(yB||(Y={},yB=(Y.atomic=!1,Y.autocomplete="none",Y.dropeffect="none",Y.haspopup=!1,Y.live="off",Y.multiline=!1,Y.multiselectable=!1,Y.orientation="vertical",Y.readonly=!1,Y.relevant="additions text",Y.required=!1,Y.sort="none",Y.busy=!1,Y.disabled=!1,Y.hidden=!1,Y.invalid="false",Y)),Y=yB,"label"in Y?W.setAttribute("aria-label",Y.label):W.removeAttribute("aria-label")):W.setAttribute("aria-label",Y)}; o2=function(W){W=W.getAttribute("aria-label");return W==null||W==void 0?"":String(W)}; g.vH=function(W,Y,k){g.e.call(this);this.W=null;this.T=!1;this.X=W;this.C=k;this.K=Y||window;this.J=(0,g.Xz)(this.MN,this)}; G92=function(W){W=W.K;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null}; K67=function(W){W=W.K;return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null}; g.C_=function(W,Y,k){g.e.call(this);this.W=W;this.z9=Y||0;this.K=k;this.J=(0,g.Xz)(this.WZ,this)}; g.L_=function(W,Y){W.isActive()||W.start(Y)}; g.UU=function(W){W.stop();W.WZ()}; g.l9=function(W){W.isActive()&&g.UU(W)}; g.b9=function(W,Y,k){g.e.call(this);this.T=k!=null?W.bind(k):W;this.z9=Y;this.J=null;this.W=!1;this.K=0;this.kq=null}; cH=function(W){W.kq=g.D4(function(){W.kq=null;W.W&&!W.K&&(W.W=!1,cH(W))},W.z9); var Y=W.J;W.J=null;W.T.apply(null,Y)}; g.xA=function(W,Y){this.W=W[g.V0.Symbol.iterator]();this.K=Y}; Eeq=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""}; f_=function(W){return W.classList?W.classList:Eeq(W).match(/\S+/g)||[]}; g.VB=function(W,Y){typeof W.className=="string"?W.className=Y:W.setAttribute&&W.setAttribute("class",Y)}; g.Na=function(W,Y){return W.classList?W.classList.contains(Y):g.n$(f_(W),Y)}; g.a2=function(W,Y){if(W.classList)W.classList.add(Y);else if(!g.Na(W,Y)){var k=Eeq(W);g.VB(W,k+(k.length>0?" "+Y:Y))}}; g.We=function(W,Y){if(W.classList)Array.prototype.forEach.call(Y,function(T){g.a2(W,T)}); else{var k={};Array.prototype.forEach.call(f_(W),function(T){k[T]=!0}); Array.prototype.forEach.call(Y,function(T){k[T]=!0}); Y="";for(var P in k)Y+=Y.length>0?" "+P:P;g.VB(W,Y)}}; g.YN=function(W,Y){W.classList?W.classList.remove(Y):g.Na(W,Y)&&g.VB(W,Array.prototype.filter.call(f_(W),function(k){return k!=Y}).join(" "))}; g.$N=function(W,Y){W.classList?Array.prototype.forEach.call(Y,function(k){g.YN(W,k)}):g.VB(W,Array.prototype.filter.call(f_(W),function(k){return!g.n$(Y,k)}).join(" "))}; g.kN=function(W,Y,k){k?g.a2(W,Y):g.YN(W,Y)}; JW6=function(W,Y){var k=!g.Na(W,Y);g.kN(W,Y,k)}; g.Pe=function(){g.S2.call(this);this.W=0;this.endTime=this.startTime=null}; s5z=function(W,Y){Array.isArray(Y)||(Y=[Y]);Y=Y.map(function(k){return typeof k==="string"?k:k.property+" "+k.duration+"s "+k.timing+" "+k.delay+"s"}); g.CX(W,"transition",Y.join(","))}; Tx=function(W,Y,k,P,T){g.Pe.call(this);this.K=W;this.C=Y;this.X=k;this.T=P;this.G=Array.isArray(T)?T:[T]}; rWV=function(W,Y,k,P){return new Tx(W,Y,{opacity:k},{opacity:P},{property:"opacity",duration:Y,timing:"ease-in",delay:0})}; zg5=function(W){W=DR(W);if(W=="")return null;var Y=String(W.slice(0,4)).toLowerCase();if(("url("1||W&&W.split(")"),null;if(W.indexOf("(")>0){if(/"|'/.test(W))return null;Y=/([\-\w]+)\(/g;for(var k;k=Y.exec(W);)if(!(k[1].toLowerCase()in AW7))return null}return W}; jQ=function(W,Y){W=g.V0[W];return W&&W.prototype?(Y=Object.getOwnPropertyDescriptor(W.prototype,Y))&&Y.get||null:null}; d47=function(W){var Y=g.V0.CSSStyleDeclaration;return Y&&Y.prototype&&Y.prototype[W]||null}; m4d=function(W,Y,k,P){if(W)return W.apply(Y,P);if(g.IY&&document.documentMode<10){if(!Y[k].call)throw Error("IE Clobbering detected");}else if(typeof Y[k]!="function")throw Error("Clobbering detected");return Y[k].apply(Y,P)}; Q5v=function(W){if(!W)return"";var Y=document.createElement("div").style;D4q(W).forEach(function(k){var P=g.Sh&&k in ge7?k:k.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Am(P,"--")||Am(P,"var")||(k=m4d(F67,W,W.getPropertyValue?"getPropertyValue":"getAttribute",[k])||"",k=zg5(k),k!=null&&m4d(wIX,Y,Y.setProperty?"setProperty":"setAttribute",[P,k]))}); return Y.cssText||""}; D4q=function(W){g.kh(W)?W=g.zK(W):(W=g.Tm(W),g.GK(W,"cssText"));return W}; g.SQ=function(W){var Y,k=Y=0,P=!1;W=W.split(yWS);for(var T=0;T.4?-1:1;return(Y==0?null:Y)==-1?"rtl":"ltr"}; g.us=function(W){if(W instanceof h4||W instanceof Be||W instanceof Or)return W;if(typeof W.next=="function")return new h4(function(){return W}); if(typeof W[Symbol.iterator]=="function")return new h4(function(){return W[Symbol.iterator]()}); if(typeof W.JL=="function")return new h4(function(){return W.JL()}); throw Error("Not an iterator or iterable.");}; h4=function(W){this.K=W}; Be=function(W){this.K=W}; Or=function(W){h4.call(this,function(){return W}); this.J=W}; Z3=function(W,Y,k,P,T,I,X,h){this.W=W;this.G=Y;this.J=k;this.C=P;this.T=T;this.X=I;this.K=X;this.L=h}; is=function(W,Y){if(Y==0)return W.W;if(Y==1)return W.K;var k=vZ(W.W,W.J,Y),P=vZ(W.J,W.T,Y);W=vZ(W.T,W.K,Y);k=vZ(k,P,Y);P=vZ(P,W,Y);return vZ(k,P,Y)}; CpS=function(W,Y){var k=(Y-W.W)/(W.K-W.W);if(k<=0)return 0;if(k>=1)return 1;for(var P=0,T=1,I=0,X=0;X<8;X++){I=is(W,k);var h=(is(W,k+1E-6)-I)/1E-6;if(Math.abs(I-Y)<1E-6)return k;if(Math.abs(h)<1E-6)break;else I1E-6&&X<8;X++)I=0}; g.RY=function(W){g.e.call(this);this.X=1;this.J=[];this.T=0;this.W=[];this.K={};this.G=!!W}; U4F=function(W,Y,k){g.GR(function(){W.apply(Y,k)})}; g.He=function(W){this.W=W}; no=function(W){this.W=W}; lv2=function(W){this.data=W}; bHq=function(W){return W===void 0||W instanceof lv2?W:new lv2(W)}; po=function(W){this.W=W}; g.cW0=function(W){var Y=W.creation;W=W.expiration;return!!W&&Wg.Bp()}; g.Gx=function(W){this.W=W}; x40=function(){}; Ko=function(){}; Er=function(W){this.W=W;this.K=null}; J4=function(W){if(W.W==null)throw Error("Storage mechanism: Storage unavailable");W.isAvailable()||KB(Error("Storage mechanism: Storage unavailable"))}; sr=function(){var W=null;try{W=g.V0.localStorage||null}catch(Y){}Er.call(this,W)}; fvq=function(){var W=null;try{W=g.V0.sessionStorage||null}catch(Y){}Er.call(this,W)}; r9=function(W,Y){this.K=W;this.W=Y+"::"}; g.A4=function(W){var Y=new sr;return Y.isAvailable()?W?new r9(Y,W):Y:null}; zx=function(W,Y){this.W=W;this.K=Y}; d9=function(W){this.W=[];if(W)a:{if(W instanceof d9){var Y=W.dU();W=W.F7();if(this.W.length<=0){for(var k=this.W,P=0;P>>6:(I<65536?h[k++]=224|I>>>12:(h[k++]=240|I>>>18,h[k++]=128|I>>>12&63),h[k++]=128|I>>> 6&63),h[k++]=128|I&63);return h}; Fu=function(W){for(var Y=W.length;--Y>=0;)W[Y]=0}; w9=function(W,Y,k,P,T){this.Bt=W;this.Ni=Y;this.Re=k;this.O5=P;this.Oga=T;this.lJ=W&&W.length}; QZ=function(W,Y){this.XB=W;this.VK=0;this.jI=Y}; yZ=function(W,Y){W.OE[W.pending++]=Y&255;W.OE[W.pending++]=Y>>>8&255}; eQ=function(W,Y,k){W.jS>16-k?(W.Or|=Y<>16-W.jS,W.jS+=k-16):(W.Or|=Y<>>=1,k<<=1;while(--Y>0);return k>>>1}; YJ1=function(W,Y,k){var P=Array(16),T=0,I;for(I=1;I<=15;I++)P[I]=T=T+k[I-1]<<1;for(k=0;k<=Y;k++)T=W[k*2+1],T!==0&&(W[k*2]=WQX(P[T]++,T))}; $WX=function(W){var Y;for(Y=0;Y<286;Y++)W.Uq[Y*2]=0;for(Y=0;Y<30;Y++)W.PA[Y*2]=0;for(Y=0;Y<19;Y++)W.EA[Y*2]=0;W.Uq[512]=1;W.zU=W.Nf=0;W.j3=W.matches=0}; kRV=function(W){W.jS>8?yZ(W,W.Or):W.jS>0&&(W.OE[W.pending++]=W.Or);W.Or=0;W.jS=0}; P3X=function(W,Y,k){kRV(W);yZ(W,k);yZ(W,~k);g9.ys(W.OE,W.window,Y,k,W.pending);W.pending+=k}; Tgq=function(W,Y,k,P){var T=Y*2,I=k*2;return W[T]>>7)];oY(W,X,k);h=bs[X];h!==0&&(T-=ce[X],eQ(W,T,h))}}while(P>1;X>=1;X--)ve(W,k,X);B=I;do X=W.Is[1],W.Is[1]=W.Is[W.GR--],ve(W,k,1),P=W.Is[1],W.Is[--W.K0]=X,W.Is[--W.K0]=P,k[B*2]=k[X*2]+k[P*2],W.depth[B]=(W.depth[X]>=W.depth[P]?W.depth[X]:W.depth[P])+1,k[X*2+1]=k[P*2+1]=B,W.Is[1]=B++,ve(W,k,1);while(W.GR>= 2);W.Is[--W.K0]=W.Is[1];X=Y.XB;B=Y.VK;P=Y.jI.Bt;T=Y.jI.lJ;I=Y.jI.Ni;var O=Y.jI.Re,u=Y.jI.Oga,Z,M=0;for(Z=0;Z<=15;Z++)W.Jd[Z]=0;X[W.Is[W.K0]*2+1]=0;for(Y=W.K0+1;Y<573;Y++){var t=W.Is[Y];Z=X[X[t*2+1]*2+1]+1;Z>u&&(Z=u,M++);X[t*2+1]=Z;if(!(t>B)){W.Jd[Z]++;var q=0;t>=O&&(q=I[t-O]);var G=X[t*2];W.zU+=G*(Z+q);T&&(W.Nf+=G*(P[t*2+1]+q))}}if(M!==0){do{for(Z=u-1;W.Jd[Z]===0;)Z--;W.Jd[Z]--;W.Jd[Z+1]+=2;W.Jd[u]--;M-=2}while(M>0);for(Z=u;Z!==0;Z--)for(t=W.Jd[Z];t!==0;)P=W.Is[--Y],P>B||(X[P*2+1]!==Z&&(W.zU+=(Z- X[P*2+1])*X[P*2],X[P*2+1]=Z),t--)}YJ1(k,h,W.Jd)}; I4V=function(W,Y,k){var P,T=-1,I=Y[1],X=0,h=7,B=4;I===0&&(h=138,B=3);Y[(k+1)*2+1]=65535;for(P=0;P<=k;P++){var O=I;I=Y[(P+1)*2+1];++X>>=1)if(Y&1&&W.Uq[k*2]!==0)return 0;if(W.Uq[18]!==0||W.Uq[20]!==0||W.Uq[26]!==0)return 1;for(k=32;k<256;k++)if(W.Uq[k*2]!==0)return 1;return 0}; fo=function(W,Y,k){W.OE[W.e8+W.j3*2]=Y>>>8&255;W.OE[W.e8+W.j3*2+1]=Y&255;W.OE[W.Nw+W.j3]=k&255;W.j3++;Y===0?W.Uq[k*2]++:(W.matches++,Y--,W.Uq[(Co[k]+256+1)*2]++,W.PA[(Y<256?ls[Y]:ls[256+(Y>>>7)])*2]++);return W.j3===W.mI-1}; N9=function(W,Y){W.msg=VZ[Y];return Y}; aY=function(W){for(var Y=W.length;--Y>=0;)W[Y]=0}; WD=function(W){var Y=W.state,k=Y.pending;k>W.Lq&&(k=W.Lq);k!==0&&(g9.ys(W.output,Y.OE,Y.tX,k,W.lT),W.lT+=k,Y.tX+=k,W.Cz+=k,W.Lq-=k,Y.pending-=k,Y.pending===0&&(Y.tX=0))}; kK=function(W,Y){var k=W.U3>=0?W.U3:-1,P=W.Sr-W.U3,T=0;if(W.level>0){W.kh.GA===2&&(W.kh.GA=SJd(W));xN(W,W.Fz);xN(W,W.Dq);I4V(W,W.Uq,W.Fz.VK);I4V(W,W.PA,W.Dq.VK);xN(W,W.IX);for(T=18;T>=3&&W.EA[hx2[T]*2+1]===0;T--);W.zU+=3*(T+1)+5+5+4;var I=W.zU+3+7>>>3;var X=W.Nf+3+7>>>3;X<=I&&(I=X)}else I=X=P+5;if(P+4<=I&&k!==-1)eQ(W,Y?1:0,3),P3X(W,k,P);else if(W.strategy===4||X===I)eQ(W,2+(Y?1:0),3),jxV(W,YK,$K);else{eQ(W,4+(Y?1:0),3);k=W.Fz.VK+1;P=W.Dq.VK+1;T+=1;eQ(W,k-257,5);eQ(W,P-1,5);eQ(W,T-4,4);for(I=0;I>>8&255;W.OE[W.pending++]=Y&255}; Bgv=function(W,Y){var k=W.M9,P=W.Sr,T=W.VD,I=W.Ub,X=W.Sr>W.uY-262?W.Sr-(W.uY-262):0,h=W.window,B=W.au,O=W.Oy,u=W.Sr+258,Z=h[P+T-1],M=h[P+T];W.VD>=W.HM&&(k>>=2);I>W.B7&&(I=W.B7);do{var t=Y;if(h[t+T]===M&&h[t+T-1]===Z&&h[t]===h[P]&&h[++t]===h[P+1]){P+=2;for(t++;h[++P]===h[++t]&&h[++P]===h[++t]&&h[++P]===h[++t]&&h[++P]===h[++t]&&h[++P]===h[++t]&&h[++P]===h[++t]&&h[++P]===h[++t]&&h[++P]===h[++t]&&PT){W.BS=Y;T=t;if(t>=I)break;Z=h[P+T-1];M=h[P+T]}}}while((Y=O[Y&B])>X&&--k!== 0);return T<=W.B7?T:W.B7}; Xb=function(W){var Y=W.uY,k;do{var P=W.l$-W.B7-W.Sr;if(W.Sr>=Y+(Y-262)){g9.ys(W.window,W.window,Y,Y,0);W.BS-=Y;W.Sr-=Y;W.U3-=Y;var T=k=W.hI;do{var I=W.head[--T];W.head[T]=I>=Y?I-Y:0}while(--k);T=k=Y;do I=W.Oy[--T],W.Oy[T]=I>=Y?I-Y:0;while(--k);P+=Y}if(W.kh.tf===0)break;T=W.kh;k=W.window;I=W.Sr+W.B7;var X=T.tf;X>P&&(X=P);X===0?k=0:(T.tf-=X,g9.ys(k,T.input,T.O7,X,I),T.state.wrap===1?T.g5=jM(T.g5,k,X,I):T.state.wrap===2&&(T.g5=Ih(T.g5,k,X,I)),T.O7+=X,T.YP+=X,k=X);W.B7+=k;if(W.B7+W.b_>=3)for(P=W.Sr-W.b_, W.Rk=W.window[P],W.Rk=(W.Rk<=3&&(W.Rk=(W.Rk<=3)if(k=fo(W,W.Sr-W.BS,W.Td-3),W.B7-=W.Td,W.Td<=W.Pe&&W.B7>=3){W.Td--;do W.Sr++,W.Rk=(W.Rk<=3&&(W.Rk=(W.Rk<4096)&&(W.Td=2));if(W.VD>=3&&W.Td<=W.VD){P=W.Sr+W.B7-3;k=fo(W,W.Sr-1-W.G3,W.VD-3);W.B7-=W.VD-1;W.VD-=2;do++W.Sr<=P&&(W.Rk=(W.Rk<=3&&W.Sr>0&&(P=W.Sr-1,k=I[P],k===I[++P]&&k===I[++P]&&k===I[++P])){for(T=W.Sr+258;k===I[++P]&&k===I[++P]&&k===I[++P]&&k===I[++P]&&k===I[++P]&&k===I[++P]&&k===I[++P]&&k===I[++P]&&PW.B7&&(W.Td=W.B7)}W.Td>=3?(k=fo(W,1,W.Td-3),W.B7-=W.Td,W.Sr+=W.Td,W.Td=0):(k=fo(W,0,W.window[W.Sr]),W.B7--,W.Sr++);if(k&&(kK(W,!1),W.kh.Lq===0))return 1}W.b_=0;return Y=== 4?(kK(W,!0),W.kh.Lq===0?3:4):W.j3&&(kK(W,!1),W.kh.Lq===0)?1:2}; uAC=function(W,Y){for(var k;;){if(W.B7===0&&(Xb(W),W.B7===0)){if(Y===0)return 1;break}W.Td=0;k=fo(W,0,W.window[W.Sr]);W.B7--;W.Sr++;if(k&&(kK(W,!1),W.kh.Lq===0))return 1}W.b_=0;return Y===4?(kK(W,!0),W.kh.Lq===0?3:4):W.j3&&(kK(W,!1),W.kh.Lq===0)?1:2}; BD=function(W,Y,k,P,T){this.r$=W;this.siD=Y;this.BD5=k;this.t11=P;this.func=T}; Zv7=function(){this.kh=null;this.status=0;this.OE=null;this.wrap=this.pending=this.tX=this.BH=0;this.JY=null;this.BV=0;this.method=8;this.IP=-1;this.au=this.Qe=this.uY=0;this.window=null;this.l$=0;this.head=this.Oy=null;this.Ub=this.HM=this.strategy=this.level=this.Pe=this.M9=this.VD=this.B7=this.BS=this.Sr=this.pX=this.G3=this.Td=this.U3=this.q8=this.Hs=this.wy=this.hI=this.Rk=0;this.Uq=new g9.eF(1146);this.PA=new g9.eF(122);this.EA=new g9.eF(78);aY(this.Uq);aY(this.PA);aY(this.EA);this.IX=this.Dq= this.Fz=null;this.Jd=new g9.eF(16);this.Is=new g9.eF(573);aY(this.Is);this.K0=this.GR=0;this.depth=new g9.eF(573);aY(this.depth);this.jS=this.Or=this.b_=this.matches=this.Nf=this.zU=this.e8=this.j3=this.mI=this.Nw=0}; ivX=function(W,Y){if(!W||!W.state||Y>5||Y<0)return W?N9(W,-2):-2;var k=W.state;if(!W.output||!W.input&&W.tf!==0||k.status===666&&Y!==4)return N9(W,W.Lq===0?-5:-2);k.kh=W;var P=k.IP;k.IP=Y;if(k.status===42)if(k.wrap===2)W.g5=0,PD(k,31),PD(k,139),PD(k,8),k.JY?(PD(k,(k.JY.text?1:0)+(k.JY.Gc?2:0)+(k.JY.extra?4:0)+(k.JY.name?8:0)+(k.JY.comment?16:0)),PD(k,k.JY.time&255),PD(k,k.JY.time>>8&255),PD(k,k.JY.time>>16&255),PD(k,k.JY.time>>24&255),PD(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),PD(k,k.JY.os& 255),k.JY.extra&&k.JY.extra.length&&(PD(k,k.JY.extra.length&255),PD(k,k.JY.extra.length>>8&255)),k.JY.Gc&&(W.g5=Ih(W.g5,k.OE,k.pending,0)),k.BV=0,k.status=69):(PD(k,0),PD(k,0),PD(k,0),PD(k,0),PD(k,0),PD(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),PD(k,3),k.status=113);else{var T=8+(k.Qe-8<<4)<<8;T|=(k.strategy>=2||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6;k.Sr!==0&&(T|=32);k.status=113;Ts(k,T+(31-T%31));k.Sr!==0&&(Ts(k,W.g5>>>16),Ts(k,W.g5&65535));W.g5=1}if(k.status===69)if(k.JY.extra){for(T= k.pending;k.BV<(k.JY.extra.length&65535)&&(k.pending!==k.BH||(k.JY.Gc&&k.pending>T&&(W.g5=Ih(W.g5,k.OE,k.pending-T,T)),WD(W),T=k.pending,k.pending!==k.BH));)PD(k,k.JY.extra[k.BV]&255),k.BV++;k.JY.Gc&&k.pending>T&&(W.g5=Ih(W.g5,k.OE,k.pending-T,T));k.BV===k.JY.extra.length&&(k.BV=0,k.status=73)}else k.status=73;if(k.status===73)if(k.JY.name){T=k.pending;do{if(k.pending===k.BH&&(k.JY.Gc&&k.pending>T&&(W.g5=Ih(W.g5,k.OE,k.pending-T,T)),WD(W),T=k.pending,k.pending===k.BH)){var I=1;break}I=k.BVT&&(W.g5=Ih(W.g5,k.OE,k.pending-T,T));I===0&&(k.BV=0,k.status=91)}else k.status=91;if(k.status===91)if(k.JY.comment){T=k.pending;do{if(k.pending===k.BH&&(k.JY.Gc&&k.pending>T&&(W.g5=Ih(W.g5,k.OE,k.pending-T,T)),WD(W),T=k.pending,k.pending===k.BH)){I=1;break}I=k.BVT&&(W.g5=Ih(W.g5,k.OE,k.pending-T,T));I===0&&(k.status=103)}else k.status= 103;k.status===103&&(k.JY.Gc?(k.pending+2>k.BH&&WD(W),k.pending+2<=k.BH&&(PD(k,W.g5&255),PD(k,W.g5>>8&255),W.g5=0,k.status=113)):k.status=113);if(k.pending!==0){if(WD(W),W.Lq===0)return k.IP=-1,0}else if(W.tf===0&&(Y<<1)-(Y>4?9:0)<=(P<<1)-(P>4?9:0)&&Y!==4)return N9(W,-5);if(k.status===666&&W.tf!==0)return N9(W,-5);if(W.tf!==0||k.B7!==0||Y!==0&&k.status!==666){P=k.strategy===2?uAC(k,Y):k.strategy===3?Ov0(k,Y):OQ[k.level].func(k,Y);if(P===3||P===4)k.status=666;if(P===1||P===3)return W.Lq===0&&(k.IP= -1),0;if(P===2&&(Y===1?(eQ(k,2,3),oY(k,256,YK),k.jS===16?(yZ(k,k.Or),k.Or=0,k.jS=0):k.jS>=8&&(k.OE[k.pending++]=k.Or&255,k.Or>>=8,k.jS-=8)):Y!==5&&(eQ(k,0,3),P3X(k,0,0),Y===3&&(aY(k.head),k.B7===0&&(k.Sr=0,k.U3=0,k.b_=0))),WD(W),W.Lq===0))return k.IP=-1,0}if(Y!==4)return 0;if(k.wrap<=0)return 1;k.wrap===2?(PD(k,W.g5&255),PD(k,W.g5>>8&255),PD(k,W.g5>>16&255),PD(k,W.g5>>24&255),PD(k,W.YP&255),PD(k,W.YP>>8&255),PD(k,W.YP>>16&255),PD(k,W.YP>>24&255)):(Ts(k,W.g5>>>16),Ts(k,W.g5&65535));WD(W);k.wrap>0&& (k.wrap=-k.wrap);return k.pending!==0?0:1}; uG=function(W){if(!(this instanceof uG))return new uG(W);W=this.options=g9.assign({level:-1,method:8,chunkSize:16384,EM:15,GJq:8,strategy:0,to:""},W||{});W.raw&&W.EM>0?W.EM=-W.EM:W.Rf&&W.EM>0&&W.EM<16&&(W.EM+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.kh=new M2V;this.kh.Lq=0;var Y=this.kh;var k=W.level,P=W.method,T=W.EM,I=W.GJq,X=W.strategy;if(Y){var h=1;k===-1&&(k=6);T<0?(h=0,T=-T):T>15&&(h=2,T-=16);if(I<1||I>9||P!==8||T<8||T>15||k<0||k>9||X<0||X>4)Y=N9(Y,-2);else{T===8&&(T=9); var B=new Zv7;Y.state=B;B.kh=Y;B.wrap=h;B.JY=null;B.Qe=T;B.uY=1<>=7;I<30;I++)for(ce[I]=X<<7,T=0;T<1<=O.uY&&(Y===0&&(aY(O.head),O.Sr=0,O.U3=0,O.b_=0),k=new g9.jB(O.uY),g9.ys(k,I,X-O.uY,O.uY,0),I=k,X=O.uY);k=W.tf;P=W.O7;T=W.input;W.tf=X;W.O7=0;W.input=I;for(Xb(O);O.B7>=3;){I=O.Sr;X=O.B7-2;do O.Rk=(O.Rk<-3&&(0,k[34])((0,k[34])((0,k[32])(k[56],k[37]),k[79],(0,k[26])(),k[65],k[9]),k[11],k[81],k[29]),(k[11]<=-8||((0,k[45])(k[50]),0))&&(0,k[38])((0,k[35])(),k[24],k[8])}catch(P){((0,k[75])((0,k[38])((0,k[67])(),k[24],k[15]),k[28],k[74],k[8]),k[45])(k[Math[S[34]](8,new Date(S[65])/1E3)+-27956+23902])}try{k[80]!==-8&&(0,k[73])(k[50], k[39]),(k[11]>-8||((0,k[38])((0,k[10])(),k[24],k[50]),0))&&(0,k[26])(k[46],k[8]),k[69]!==6&&(k[20]<8||((0,k[81])(k[36],k[42]),0))&&(0,k[73])(k[8],k[64])}catch(P){(0,k[75])((0,k[73])(k[42],k[59]),k[81],k[2],k[8]),(0,k[38])((0,k[67])(),k[24],k[8])}finally{k[62]==-10?(0,k[45])(k[13]):(0,k[52])(k[48],k[8]),k[39]===7?(0,k[56])(((0,k[38])((0,k[35])(),k[24],k[8]),(0,k[31])(k[13]),k[73])(k[50],k[72]),k[81],k[6],k[50]):(0,k[75])((((0,k[26])(k[25],k[8]),k[52])(k[17],k[15]),k[26])(k[62],k[50]),k[45],k[13]), k[56]>=6&&((0,k[6])((0,k[53])(k[44],k[66]),k[53],k[80],k[31]),S[66])||((0,k[50])(k[31]),k[43])((0,k[46])(),k[57],k[66]),k[30]<-1?(0,k[74])(((0,k[55])(k[58],k[31]),(0,k[6])(((0,k[53])(k[54],k[39]),k[78])(k[71],k[78]),k[7],k[30],k[46]),((0,k[82])(k[0],k[63]),k[15])(k[81],k[54]),k[16])(k[23],k[56]),k[new Date(S[72])/1E3],((0,k[36])(k[68]),(0,k[0])(k[59],k[16]),k[0])(k[68],k[16]),k[6],k[new Date(S[90])/1E3]):(0,k[8])((0,k[67])((0,k[57])(((0,k[32])(k[9]),((0,k[75])(k[9],k[31]),k[75])(k[51],k[71]),k[75])(k[14], k[19]),k[75],k[16],k[58]),k[77],(0,k[75])(k[51],k[4]),k[32],k[9]),k[39],(0,k[8])((0,k[46])(k[9]),k[75],(0,k[39])((0,k[36])(),k[25],k[16]),k[72],k[45]),(0,k[36])(),k[25],k[51]),(k[41]!==9||((((0,k[57])(((0,k[75])(k[14],k[35]),k[39])((0,k[55])(),k[25],k[9]),k[0],k[33],k[16]),k[57])((0,k[39])((0,k[11])(),k[25],k[16]),k[27],k[48],k[43]),k[46])(k[43]),0))&&((((((0,k[27])(k[63],k[9]),k[29])(k[78],k[51]),k[0])(k[5],k[16]),k[61])(k[43],k[12]),k[0])(k[62],k[43]),k[53])(k[42],k[14]),k[54]!==2&&(k[1]<-7||(((((0,k[55])((0,k[7])(k[1], k[78]),k[7],k[57],k[21]),k[82])(k[9]),k[4])(k[67],k[74]),k[25])(k[55],k[64]),S[4]))&&(0,k[61])((0,k[12])((0,k[16])(k[48],k[53]),k[30],(0,k[58])(),k[44],k[18]),k[2],(0,k[76])((0,k[78])(k[55],k[54]),k[30],(0,k[33])(),k[44],k[53]),k[80],k[60]),k[36]<2&&(k[21]==new Date(S[63])/1E3||(((0,k[2])(k[59],k[26]),k[12])((0,k[2])(k[77],k[81]),k[42],k[70],k[26]),S[4]))&&(0,k[76])((0,k[76])((0,k[78])(k[new Date(S[69])/1E3*196+16807+-27730],k[52]),k[30],(0,k[58])(),k[44],k[53]),k[30],(0,k[58])(),k[44],k[new Date(S[50])/ 1E3])}}catch(P){return S[88]+W}return Y[S[44]](S[4])}; g.qC=function(W){this.name=W}; w90=function(W){this.h5=CZ(W)}; Rh=function(W){this.h5=CZ(W)}; HD=function(W){this.h5=CZ(W)}; QxS=function(W){this.h5=CZ(W)}; nI=function(W){this.h5=CZ(W)}; pI=function(W){this.h5=CZ(W)}; Gs=function(W){this.h5=CZ(W)}; KI=function(W){this.h5=CZ(W)}; EQ=function(W){this.h5=CZ(W)}; Jr=function(W){this.h5=CZ(W)}; sQ=function(W){this.h5=CZ(W)}; rF=function(W){this.h5=CZ(W)}; Ar=function(W){this.h5=CZ(W)}; zs=function(W){this.h5=CZ(W)}; dF=function(W){this.h5=CZ(W)}; my=function(W){this.h5=CZ(W,500)}; Fb=function(W){this.h5=CZ(W)}; wF=function(W){this.h5=CZ(W)}; yU1=function(W){this.h5=CZ(W)}; exF=function(){return g.Wp("yt.ads.biscotti.lastId_")||""}; odd=function(W){g.N6("yt.ads.biscotti.lastId_",W)}; ym=function(){var W=arguments,Y=Qm;W.length>1?Y[W[0]]=W[1]:W.length===1&&Object.assign(Y,W[0])}; g.eM=function(W,Y){return W in Qm?Qm[W]:Y}; oh=function(W){var Y=Qm.EXPERIMENT_FLAGS;return Y?Y[W]:void 0}; vd1=function(W){vD.forEach(function(Y){return Y(W)})}; g.LI=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(Y){g.CI(Y)}}:W}; g.CI=function(W){var Y=g.Wp("yt.logging.errors.log");Y?Y(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(Y=g.eM("ERRORS",[]),Y.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),ym("ERRORS",Y));vd1(W)}; UQ=function(W,Y,k,P,T){var I=g.Wp("yt.logging.errors.log");I?I(W,"WARNING",Y,k,P,void 0,T):(I=g.eM("ERRORS",[]),I.push([W,"WARNING",Y,k,P,void 0,T]),ym("ERRORS",I))}; lG=function(W,Y){Y=W.split(Y);for(var k={},P=0,T=Y.length;P1?W[1]:W[0])):{}}; Vm=function(W,Y){return l40(W,Y||{},!0)}; NC=function(W,Y){return l40(W,Y||{},!1)}; l40=function(W,Y,k){var P=W.split("#",2);W=P[0];P=P.length>1?"#"+P[1]:"";var T=W.split("?",2);W=T[0];T=cD(T[1]||"");for(var I in Y)if(k||!g.SV(T,I))T[I]=Y[I];return g.MH(W,T)+P}; ah=function(W){if(!Y)var Y=window.location.href;var k=g.I8(W)[1]||null,P=g.Xl(W);k&&P?(W=g.I8(W),Y=g.I8(Y),W=W[3]==Y[3]&&W[1]==Y[1]&&W[4]==Y[4]):W=P?g.Xl(Y)===P&&(Number(g.I8(Y)[4]||null)||null)===(Number(g.I8(W)[4]||null)||null):!0;return W}; Wy=function(W){W||(W=document.location.href);W=g.I8(W)[1]||null;return W!==null&&W==="https"}; YG=function(W){W=bv0(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; cU1=function(W){W=bv0(W);return W===null?!1:W[1]==="google"?!0:W[2]==="google"?W[0]==="au"&&W[1]==="com"?!0:W[0]==="uk"&&W[1]==="co"?!0:!1:!1}; bv0=function(W){W=g.Xl(W);return W!==null?W.split(".").reverse():null}; C3v=function(W){return W&&W.match(xW6)?W:rE(W)}; Py=function(W){var Y=$G;W=W===void 0?exF():W;var k=Object,P=k.assign,T=kG(Y);var I=Y.W;try{var X=I.screenX;var h=I.screenY}catch(d){}try{var B=I.outerWidth;var O=I.outerHeight}catch(d){}try{var u=I.innerWidth;var Z=I.innerHeight}catch(d){}try{var M=I.screenLeft;var t=I.screenTop}catch(d){}try{u=I.innerWidth,Z=I.innerHeight}catch(d){}try{var q=I.screen.availWidth;var G=I.screen.availTop}catch(d){}I=[M,t,X,h,q,G,B,O,u,Z];X=Y$d(!1,Y.W.top);h={};var J=J===void 0?g.V0:J;B=new wO;"SVGElement"in J&&"createElementNS"in J.document&&B.set(0);O=Sx6();O["allow-top-navigation-by-user-activation"]&&B.set(1);O["allow-popups-to-escape-sandbox"]&&B.set(2);J.crypto&&J.crypto.subtle&&B.set(3);"TextDecoder"in J&&"TextEncoder"in J&&B.set(4);J=pI5(B);Y=(h.bc=J,h.bih=X.height,h.biw=X.width,h.brdim=I.join(),h.vis=Pl(Y.K),h.wgl=!!Av.WebGLRenderingContext,h);k=P.call(k,T,Y);k.ca_type="image";W&&(k.bid=W);return k}; kG=function(W){var Y={};Y.dt=f45;Y.flash="0";a:{try{var k=W.W.top.location.href}catch(O){W=2;break a}W=k?k===W.K.location.href?0:1:2}Y=(Y.frm=W,Y);try{Y.u_tz=-(new Date).getTimezoneOffset();try{var P=Av.history.length}catch(O){P=0}Y.u_his=P;var T;Y.u_h=(T=Av.screen)==null?void 0:T.height;var I;Y.u_w=(I=Av.screen)==null?void 0:I.width;var X;Y.u_ah=(X=Av.screen)==null?void 0:X.availHeight;var h;Y.u_aw=(h=Av.screen)==null?void 0:h.availWidth;var B;Y.u_cd=(B=Av.screen)==null?void 0:B.colorDepth}catch(O){}return Y}; Ng2=function(){if(!V2F)return null;var W=V2F();return"open"in W?W:null}; g.jU=function(W){switch(T5(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; T5=function(W){return W&&"status"in W?W.status:-1}; g.Ii=function(W,Y){typeof W==="function"&&(W=g.LI(W));return window.setTimeout(W,Y)}; g.XU=function(W,Y){typeof W==="function"&&(W=g.LI(W));return window.setInterval(W,Y)}; g.SU=function(W){window.clearTimeout(W)}; g.hB=function(W){window.clearInterval(W)}; g.Oi=function(W){W=By(W);return typeof W==="string"&&W==="false"?!1:!!W}; g.uw=function(W,Y){W=By(W);return W===void 0&&Y!==void 0?Y:Number(W||0)}; ZJ=function(){return g.eM("EXPERIMENTS_TOKEN","")}; By=function(W){return g.eM("EXPERIMENT_FLAGS",{})[W]}; iw=function(){for(var W=[],Y=g.eM("EXPERIMENTS_FORCED_FLAGS",{}),k=g.p(Object.keys(Y)),P=k.next();!P.done;P=k.next())P=P.value,W.push({key:P,value:String(Y[P])});k=g.eM("EXPERIMENT_FLAGS",{});P=g.p(Object.keys(k));for(var T=P.next();!T.done;T=P.next())T=T.value,T.startsWith("force_")&&Y[T]===void 0&&W.push({key:T,value:String(k[T])});return W}; MK=function(W,Y,k,P,T,I,X,h,B){function O(){(u&&"readyState"in u?u.readyState:0)===4&&Y&&g.LI(Y)(u)} k=k===void 0?"GET":k;P=P===void 0?"":P;h=h===void 0?!1:h;var u=Ng2();if(!u)return null;"onloadend"in u?u.addEventListener("loadend",O,!1):u.onreadystatechange=O;g.Oi("debug_forward_web_query_parameters")&&(W=a40(W));u.open(k,W,!0);I&&(u.responseType=I);X&&(u.withCredentials=!0);k=k==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(T=W$0(W,T))for(var Z in T)u.setRequestHeader(Z,T[Z]),"content-type"===Z.toLowerCase()&&(k=!1);k&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); B&&"onprogress"in u&&(u.onprogress=function(){B(u.responseText)}); if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){W={eventSourceEligible:!0,triggerEligible:!1};try{u.setAttributionReporting(W)}catch(M){UQ(M)}}u.send(P);return u}; W$0=function(W,Y){Y=Y===void 0?{}:Y;var k=ah(W),P=g.eM("INNERTUBE_CLIENT_NAME"),T=g.Oi("web_ajax_ignore_global_headers_if_set"),I;for(I in YvC){var X=g.eM(YvC[I]),h=I==="X-Goog-AuthUser"||I==="X-Goog-PageId";I!=="X-Goog-Visitor-Id"||X||(X=g.eM("VISITOR_DATA"));var B;if(!(B=!X)){if(!(B=k||(g.Xl(W)?!1:!0))){B=W;var O;if(O=g.Oi("add_auth_headers_to_remarketing_google_dot_com_ping")&&I==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY")&&cU1(B))B=S7(B)||"",B=B.split("/"), B="/"+(B.length>1?B[1]:""),O=B==="/pagead";B=O?!0:!1}B=!B}B||T&&Y[I]!==void 0||P==="TVHTML5_UNPLUGGED"&&h||(Y[I]=X)}"X-Goog-EOM-Visitor-Id"in Y&&"X-Goog-Visitor-Id"in Y&&delete Y["X-Goog-Visitor-Id"];if(k||!g.Xl(W))Y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(k||!g.Xl(W)){try{var u=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Z){}u&&(Y["X-YouTube-Time-Zone"]=u)}document.location.hostname.endsWith("youtubeeducation.com")||!k&&g.Xl(W)||(Y["X-YouTube-Ad-Signals"]= bG(Py()));return Y}; qK=function(W,Y){Y.method="POST";Y.postParams||(Y.postParams={});return g.tB(W,Y)}; PK5=function(W,Y){if(window.fetch&&Y.format!=="XML"){var k={method:Y.method||"GET",credentials:"same-origin"};Y.headers&&(k.headers=Y.headers);Y.priority&&(k.priority=Y.priority);W=$$5(W,Y);var P=kuF(W,Y);P&&(k.body=P);Y.withCredentials&&(k.credentials="include");var T=Y.context||g.V0,I=!1,X;fetch(W,k).then(function(h){if(!I){I=!0;X&&g.SU(X);var B=h.ok,O=function(u){u=u||{};B?Y.onSuccess&&Y.onSuccess.call(T,u,h):Y.onError&&Y.onError.call(T,u,h);Y.onFinish&&Y.onFinish.call(T,u,h)}; (Y.format||"JSON")==="JSON"&&(B||h.status>=400&&h.status<500)?h.json().then(O,function(){O(null)}):O(null)}}).catch(function(){Y.onError&&Y.onError.call(T,{},{})}); W=Y.timeout||0;Y.onFetchTimeout&&W>0&&(X=g.Ii(function(){I||(I=!0,g.SU(X),Y.onFetchTimeout.call(Y.context||g.V0))},W))}else g.tB(W,Y)}; g.tB=function(W,Y){var k=Y.format||"JSON";W=$$5(W,Y);var P=kuF(W,Y),T=!1,I=TMd(W,function(B){if(!T){T=!0;h&&g.SU(h);var O=g.jU(B),u=null,Z=400<=B.status&&B.status<500,M=500<=B.status&&B.status<600;if(O||Z||M)u=jvS(W,k,B,Y.convertToSafeHtml);O&&(O=Iud(k,B,u));u=u||{};Z=Y.context||g.V0;O?Y.onSuccess&&Y.onSuccess.call(Z,B,u):Y.onError&&Y.onError.call(Z,B,u);Y.onFinish&&Y.onFinish.call(Z,B,u)}},Y.method,P,Y.headers,Y.responseType,Y.withCredentials,!1,Y.onProgress); P=Y.timeout||0;if(Y.onTimeout&&P>0){var X=Y.onTimeout;var h=g.Ii(function(){T||(T=!0,I.abort(),g.SU(h),X.call(Y.context||g.V0,I))},P)}return I}; $$5=function(W,Y){Y.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var k=g.eM("XSRF_FIELD_NAME");if(Y=Y.urlParams)Y[k]&&delete Y[k],W=Vm(W,Y);return W}; kuF=function(W,Y){var k=g.eM("XSRF_FIELD_NAME"),P=g.eM("XSRF_TOKEN"),T=Y.postBody||"",I=Y.postParams,X=g.eM("XSRF_FIELD_NAME"),h;Y.headers&&(h=Y.headers["Content-Type"]);Y.excludeXsrf||g.Xl(W)&&!Y.withCredentials&&g.Xl(W)!==document.location.hostname||Y.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||Y.postParams&&Y.postParams[X]||(I||(I={}),I[k]=P);(g.Oi("ajax_parse_query_data_only_when_filled")&&I&&Object.keys(I).length>0||I)&&typeof T==="string"&&(T=cD(T),g.tm(T,I),T=Y.postBodyFormat&& Y.postBodyFormat==="JSON"?JSON.stringify(T):g.ih(T));I=T||I&&!g.Ox(I);!XaV&&I&&Y.method!=="POST"&&(XaV=!0,g.CI(Error("AJAX request with postData should use POST")));return T}; jvS=function(W,Y,k,P){var T=null;switch(Y){case "JSON":try{var I=k.responseText}catch(X){throw P=Error("Error reading responseText"),P.params=W,UQ(P),X;}W=k.getResponseHeader("Content-Type")||"";I&&W.indexOf("json")>=0&&(I.substring(0,5)===")]}'\n"&&(I=I.substring(5)),T=JSON.parse(I));break;case "XML":if(W=(W=k.responseXML)?Svd(W):null)T={},g.xh(W.getElementsByTagName("*"),function(X){T[X.tagName]=hP0(X)})}P&&BMd(T); return T}; BMd=function(W){if(g.Pp(W))for(var Y in W)Y==="html_content"||v56(Y,"_html")?W[Y]=OF(W[Y]):BMd(W[Y])}; Iud=function(W,Y,k){if(Y&&Y.status===204)return!0;switch(W){case "JSON":return!!k;case "XML":return Number(k&&k.return_code)===0;case "RAW":return!0;default:return!!k}}; Svd=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null}; hP0=function(W){var Y="";g.xh(W.childNodes,function(k){Y+=k.nodeValue}); return Y}; a40=function(W){var Y=window.location.search,k=g.Xl(W);g.Oi("debug_handle_relative_url_for_query_forward_killswitch")||!k&&ah(W)&&(k=document.location.hostname);var P=S7(W);P=(k=k&&(k.endsWith("youtube.com")||k.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!k||P)return W;var T=cD(Y),I={};g.xh(OM0,function(X){T[X]&&(I[X]=T[X])}); return NC(W,I)}; Hy=function(W,Y){var k=g.ij(Y),P;return(new g.EJ(function(T,I){k.onSuccess=function(X){g.jU(X)?T(new udd(X)):I(new Ri("Request failed, status="+T5(X),"net.badstatus",X))}; k.onError=function(X){I(new Ri("Unknown request error","net.unknown",X))}; k.onTimeout=function(X){I(new Ri("Request timed out","net.timeout",X))}; P=g.tB(W,k)})).MA(function(T){if(T instanceof dg){var I; (I=P)==null||I.abort()}return rg(T)})}; g.nN=function(W,Y,k,P,T,I){function X(B,O,u){return B.MA(function(Z){if(O<=0||T5(Z.xhr)===403)return rg(new Ri("Request retried too many times","net.retryexhausted",Z.xhr,Z));var M=Math.pow(2,k-O+1)*u,t=T>0?Math.min(T,M):M;return h(u).then(function(){I&&I(Z,O-1);return X(Hy(W,Y),O-1,t)})})} function h(B){return new g.EJ(function(O){setTimeout(O,B)})} T=T===void 0?-1:T;return X(Hy(W,Y),k-1,P)}; Ri=function(W,Y,k){Zc.call(this,W+", errorCode="+Y);this.errorCode=Y;this.xhr=k;this.name="PromiseAjaxError"}; udd=function(W){this.xhr=W}; pN=function(W){this.W=W===void 0?null:W;this.J=0;this.K=null}; G5=function(W){var Y=new pN;W=W===void 0?null:W;Y.J=2;Y.K=W===void 0?null:W;return Y}; KN=function(W){var Y=new pN;W=W===void 0?null:W;Y.J=1;Y.K=W===void 0?null:W;return Y}; g.si=function(W,Y,k,P,T){Ei||JB.set(""+W,Y,{k_:k,path:"/",domain:P===void 0?"youtube.com":P,secure:T===void 0?!1:T})}; g.rn=function(W,Y){if(!Ei)return JB.get(""+W,Y)}; g.AB=function(W,Y,k){Ei||JB.remove(""+W,Y===void 0?"/":Y,k===void 0?"youtube.com":k)}; ZM0=function(){if(g.Oi("embeds_web_enable_cookie_detection_fix")){if(!g.V0.navigator.cookieEnabled)return!1}else if(!JB.isEnabled())return!1;if(!JB.isEmpty())return!0;g.Oi("embeds_web_enable_cookie_detection_fix")?JB.set("TESTCOOKIESENABLED","1",{k_:60,LB1:"none",secure:!0}):JB.set("TESTCOOKIESENABLED","1",{k_:60});if(JB.get("TESTCOOKIESENABLED")!=="1")return!1;JB.remove("TESTCOOKIESENABLED");return!0}; g.U=function(W,Y){if(W)return W[Y.name]}; z5=function(W){var Y=g.eM("INNERTUBE_HOST_OVERRIDE");Y&&(W=String(Y)+String(BQ(W)));return W}; iMF=function(W){var Y={};g.Oi("json_condensed_response")&&(Y.prettyPrint="false");return W=NC(W,Y)}; dn=function(W,Y){var k=k===void 0?{}:k;W={method:Y===void 0?"POST":Y,mode:ah(W)?"same-origin":"cors",credentials:ah(W)?"same-origin":"include"};Y={};for(var P=g.p(Object.keys(k)),T=P.next();!T.done;T=P.next())T=T.value,k[T]&&(Y[T]=k[T]);Object.keys(Y).length>0&&(W.headers=Y);return W}; mf=function(){var W=/Chrome\/(\d+)/.exec(g.wY());return W?parseFloat(W[1]):NaN}; DJ=function(){var W=/\sCobalt\/(\S+)\s/.exec(g.wY());if(!W)return NaN;var Y=[];W=g.p(W[1].split("."));for(var k=W.next();!k.done;k=W.next())k=parseInt(k.value,10),k>=0&&Y.push(k);return parseFloat(Y.join("."))}; FU=function(){return g.gn("android")&&g.gn("chrome")&&!(g.gn("trident/")||g.gn("edge/"))&&!g.gn("cobalt")}; Md0=function(){return g.gn("armv7")||g.gn("aarch64")||g.gn("android")}; g.wn=function(){return g.gn("cobalt")}; Qp=function(){return g.gn("cobalt")&&g.gn("appletv")}; yp=function(){return g.gn("(ps3; leanback shell)")||g.gn("ps3")&&g.wn()}; td0=function(){return g.gn("(ps4; leanback shell)")||g.gn("ps4")&&g.wn()}; g.qvd=function(){return g.wn()&&(g.gn("ps4 vr")||g.gn("ps4 pro vr"))}; eU=function(){var W=/WebKit\/([0-9]+)/.exec(g.wY());return!!(W&&parseInt(W[1],10)>=600)}; oi=function(){var W=/WebKit\/([0-9]+)/.exec(g.wY());return!!(W&&parseInt(W[1],10)>=602)}; RPq=function(){return g.gn("iemobile")||g.gn("windows phone")&&g.gn("edge")}; LN=function(){return(vy||CN)&&g.gn("applewebkit")&&!g.gn("version")&&(!g.gn("safari")||g.gn("gsa/"))}; lw=function(){return g.Ui&&g.gn("version/")}; bw=function(){return g.gn("smart-tv")&&g.gn("samsung")}; g.gn=function(W){var Y=g.wY();return Y?Y.toLowerCase().indexOf(W)>=0:!1}; cy=function(){return Yd2()||LN()||lw()?!0:g.eM("EOM_VISITOR_DATA")?!1:!0}; xG=function(W,Y){return Y===void 0||Y===null?W:Y==="1"||Y===!0||Y===1||Y==="True"?!0:!1}; fN=function(W,Y,k){for(var P in k)if(k[P]==Y)return k[P];return W}; Vp=function(W,Y){return Y===void 0||Y===null?W:Number(Y)}; NK=function(W,Y){return Y===void 0||Y===null?W:Y.toString()}; ai=function(W,Y){if(Y){if(W==="fullwidth")return Infinity;if(W==="fullheight")return 0}return W&&(Y=W.match(HMC))&&(W=Number(Y[2]),Y=Number(Y[1]),!isNaN(W)&&!isNaN(Y)&&W>0)?Y/W:NaN}; WO=function(W){var Y=W.docid||W.video_id||W.videoId||W.id;if(Y)return Y;Y=W.raw_player_response;Y||(W=W.player_response)&&(Y=JSON.parse(W));return Y&&Y.videoDetails&&Y.videoDetails.videoId||null}; nwv=function(W){return YF(W,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.$F=function(W){return W==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||W==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; YF=function(W,Y){Y=(Y===void 0?0:Y)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Y="EMBEDDED_PLAYER_MODE_PFL");var k=W.raw_embedded_player_response;if(!k&&(W=W.embedded_player_response))try{k=JSON.parse(W)}catch(P){return Y}return k?fN(Y,k.embeddedPlayerMode,paS):Y}; PO=function(W){Zc.call(this,W.message||W.description||W.name);this.isMissing=W instanceof kF;this.isTimeout=W instanceof Ri&&W.errorCode=="net.timeout";this.isCanceled=W instanceof dg}; kF=function(){Zc.call(this,"Biscotti ID is missing from server")}; Gud=function(){if(g.Oi("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!cy())return Error("User has not consented - not fetching biscotti id.");var W=g.eM("PLAYER_VARS",{});if(g.uj(W,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(nwv(W))return Error("Biscotti id fetching has been disabled for pfl.")}; sv5=function(){var W=Gud();if(W!==void 0)return rg(W);TS||(TS=Hy("//googleads.g.doubleclick.net/pagead/id",K$0).then(Ew1).MA(function(Y){return JRX(2,Y)})); return TS}; Ew1=function(W){W=W.xhr.responseText;if(!Am(W,")]}'"))throw new kF;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new kF;W=W.id;odd(W);TS=KN(W);rRq(18E5,2);return W}; JRX=function(W,Y){Y=new PO(Y);odd("");TS=G5(Y);W>0&&rRq(12E4,W-1);throw Y;}; rRq=function(W,Y){g.Ii(function(){Hy("//googleads.g.doubleclick.net/pagead/id",K$0).then(Ew1,function(k){return JRX(Y,k)}).MA(g.ds)},W)}; ARS=function(){try{var W=g.Wp("yt.ads.biscotti.getId_");return W?W():sv5()}catch(Y){return rg(Y)}}; d$V=function(W){W&&(W.dataset?W.dataset[zPz()]="true":kKF(W))}; m$V=function(W){return W?W.dataset?W.dataset[zPz()]:W.getAttribute("data-loaded"):null}; zPz=function(){return D$v.loaded||(D$v.loaded="loaded".replace(/\-([a-z])/g,function(W,Y){return Y.toUpperCase()}))}; gwz=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var Y=j0+"VisibilityState";if(Y in W)return W[Y]}; Ik=function(W,Y){var k;vQ(W,function(P){k=Y[P];return!!k}); return k}; X5=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return W instanceof Promise?W:Promise.resolve()}; BO=function(W){var Y;g.S0()?hl()==W&&(Y=document):Y=W;return Y&&(W=Ik(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Y))?(Y=W.call(Y),Y instanceof Promise?Y:Promise.resolve()):Promise.resolve()}; F$F=function(W){return g.qc(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Y){return"on"+Y.toLowerCase()in W})}; waV=function(){var W=document;return g.qc(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(Y){return"on"+Y.toLowerCase()in W})}; g.S0=function(){return!!Ik(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; hl=function(W){W=W===void 0?!1:W;var Y=Ik(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;Y&&Y.shadowRoot;)Y=Y.shadowRoot.fullscreenElement;return Y?Y:null}; Os=function(W){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(W=W||window.event){this.event=W;for(var Y in W)Y in Qvq||(this[Y]=W[Y]);this.scale=W.scale;this.rotation=W.rotation;var k=W.target||W.srcElement;k&&k.nodeType==3&&(k=k.parentNode);this.target=k;var P=W.relatedTarget; if(P)try{P=P.nodeName?P:null}catch(T){P=null}else this.type=="mouseover"?P=W.fromElement:this.type=="mouseout"&&(P=W.toElement);this.relatedTarget=P;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.W=W.pageX;this.K=W.pageY}}catch(T){}}; yRX=function(W){if(document.body&&document.documentElement){var Y=document.body.scrollTop+document.documentElement.scrollTop;W.W=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.K=W.clientY+Y}}; eP6=function(W,Y,k,P){P=P===void 0?{}:P;W.addEventListener&&(Y!="mouseenter"||"onmouseenter"in document?Y!="mouseleave"||"onmouseenter"in document?Y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Y="MozMousePixelScroll"):Y="mouseout":Y="mouseover");return Bk(uC,function(T){var I=typeof T[4]==="boolean"&&T[4]==!!P,X=g.Pp(T[4])&&g.Pp(P)&&g.ZR(T[4],P);return!!T.length&&T[0]==W&&T[1]==Y&&T[2]==k&&(I||X)})}; g.ZV=function(W,Y,k,P){P=P===void 0?{}:P;if(!W||!W.addEventListener&&!W.attachEvent)return"";var T=eP6(W,Y,k,P);if(T)return T;T=++ow0.count+"";var I=!(Y!="mouseenter"&&Y!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var X=I?function(h){h=new Os(h);if(!KX(h.relatedTarget,function(B){return B==W},!0))return h.currentTarget=W,h.type=Y,k.call(W,h)}:function(h){h=new Os(h); h.currentTarget=W;return k.call(W,h)}; X=g.LI(X);W.addEventListener?(Y=="mouseenter"&&I?Y="mouseover":Y=="mouseleave"&&I?Y="mouseout":Y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Y="MozMousePixelScroll"),vwS()||typeof P==="boolean"?W.addEventListener(Y,X,P):W.addEventListener(Y,X,!!P.capture)):W.attachEvent("on"+Y,X);uC[T]=[W,Y,k,X,P];return T}; L$5=function(W){return CKz(W,function(Y){return g.Na(Y,"ytp-ad-has-logging-urls")})}; CKz=function(W,Y){var k=document.body||document;return g.ZV(k,"click",function(P){var T=KX(P.target,function(I){return I===k||Y(I)},!0); T&&T!==k&&!T.disabled&&(P.currentTarget=T,W.call(T,P))})}; g.iC=function(W){W&&(typeof W=="string"&&(W=[W]),g.xh(W,function(Y){if(Y in uC){var k=uC[Y],P=k[0],T=k[1],I=k[3];k=k[4];P.removeEventListener?vwS()||typeof k==="boolean"?P.removeEventListener(T,I,k):P.removeEventListener(T,I,!!k.capture):P.detachEvent&&P.detachEvent("on"+T,I);delete uC[Y]}}))}; M8=function(W){for(var Y in uC)uC[Y][0]==W&&g.iC(Y)}; tl=function(W){W=W||window.event;var Y;W.composedPath&&typeof W.composedPath==="function"?Y=W.composedPath():Y=W.path;Y&&Y.length?W=Y[0]:(W=W||window.event,W=W.target||W.srcElement,W.nodeType==3&&(W=W.parentNode));return W}; q8=function(W){this.G=W;this.W=null;this.T=0;this.X=null;this.C=0;this.K=[];for(W=0;W<4;W++)this.K.push(0);this.J=0;this.Kg=g.ZV(window,"mousemove",(0,g.Xz)(this.N,this));this.L=g.XU((0,g.Xz)(this.A5,this),25)}; Rk=function(W){g.e.call(this);this.G=[];this.J9=W||this}; HO=function(W,Y,k,P){for(var T=0;T0?k:0;k=P?Date.now()+P*1E3:0;if((P=P?(0,g.pe)():GS())&&window.JSON){typeof Y!=="string"&&(Y=JSON.stringify(Y,void 0));try{P.set(W,Y,k)}catch(T){P.remove(W)}}}; g.Es=function(W){var Y=GS(),k=(0,g.pe)();if(!Y&&!k||!window.JSON)return null;try{var P=Y.get(W)}catch(T){}if(typeof P!=="string")try{P=k.get(W)}catch(T){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(T){}return P}; luX=function(){var W=(0,g.pe)();if(W&&(W=W.K("yt-player-quality")))return W.creation}; g.Jl=function(W){try{var Y=GS(),k=(0,g.pe)();Y&&Y.remove(W);k&&k.remove(W)}catch(P){}}; g.rD=function(){return g.Es("yt-remote-session-screen-id")}; bMv=function(W){var Y=this;this.K=void 0;this.W=!1;W.addEventListener("beforeinstallprompt",function(k){k.preventDefault();Y.K=k}); W.addEventListener("appinstalled",function(){Y.W=!0},{once:!0})}; Al=function(){if(!g.V0.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.V0.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.V0.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.V0.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.V0.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}}; zS=function(){this.eJ=!0}; cR1=function(){zS.instance||(zS.instance=new zS);return zS.instance}; x$d=function(W){switch(W){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}}; fu5=function(){this.W=g.eM("ALT_PREF_COOKIE_NAME","PREF");this.K=g.eM("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=g.rn(this.W);W&&this.parse(W)}; g.mr=function(){dD||(dD=new fu5);return dD}; gD=function(W,Y){var k="f"+(Math.floor(W/31)+1);W=1<0;)switch(W=Yu.shift(),W.type){case "ERROR":Vq.kJ(W.payload);break;case "EVENT":Vq.logEvent(W.eventType,W.payload)}}; ku=function(W){$u||(Vq?Vq.kJ(W):(Yu.push({type:"ERROR",payload:W}),Yu.length>10&&Yu.shift()))}; P8=function(W,Y){$u||(Vq?Vq.logEvent(W,Y):(Yu.push({type:"EVENT",eventType:W,payload:Y}),Yu.length>10&&Yu.shift()))}; TX=function(W){if(W.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; j5=function(W){return W.substr(0,W.indexOf(":"))||W}; g.Iy=function(W,Y,k,P,T){Y=Y===void 0?{}:Y;k=k===void 0?TO2[W]:k;P=P===void 0?j2d[W]:P;T=T===void 0?Ix5[W]:T;g.Qq.call(this,k,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},Y));this.type=W;this.message=k;this.level=P;this.W=T;Object.setPrototypeOf(this,g.Iy.prototype)}; XH=function(W,Y){g.Iy.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Y,foundObjectStores:W},TO2.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,XH.prototype)}; S5=function(W,Y){var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.index=W;this.objectStore=Y;Object.setPrototypeOf(this,S5.prototype)}; B8=function(W,Y,k,P){Y=j5(Y);var T=W instanceof Error?W:Error("Unexpected error: "+W);if(T instanceof g.Iy)return T;W={objectStoreNames:k,dbName:Y,dbVersion:P};if(T.name==="QuotaExceededError")return new g.Iy("QUOTA_EXCEEDED",W);if(g.hj&&T.name==="UnknownError")return new g.Iy("QUOTA_MAYBE_EXCEEDED",W);if(T instanceof S5)return new g.Iy("MISSING_INDEX",Object.assign({},W,{objectStore:T.objectStore,index:T.index}));if(T.name==="InvalidStateError"&&XH2.some(function(I){return T.message.includes(I)}))return new g.Iy("EXECUTE_TRANSACTION_ON_CLOSED_DB", W); if(T.name==="AbortError")return new g.Iy("UNKNOWN_ABORT",W,T.message);T.args=[Object.assign({},W,{name:"IdbError",f_:T.name})];T.level="WARNING";return T}; g.OP=function(W,Y,k){var P=fe();return new g.Iy("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:Y,version:k,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})}; SUd=function(W){if(!W)throw Error();throw W;}; hTV=function(W){return W}; uN=function(W){this.W=W}; g.ZS=function(W){function Y(T){if(P.state.status==="PENDING"){P.state={status:"REJECTED",reason:T};T=g.p(P.K);for(var I=T.next();!I.done;I=T.next())I=I.value,I()}} function k(T){if(P.state.status==="PENDING"){P.state={status:"FULFILLED",value:T};T=g.p(P.W);for(var I=T.next();!I.done;I=T.next())I=I.value,I()}} var P=this;this.state={status:"PENDING"};this.W=[];this.K=[];W=W.W;try{W(k,Y)}catch(T){Y(T)}}; BOv=function(W,Y,k,P,T){try{if(W.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var I=k(W.state.value);I instanceof g.ZS?iN(W,Y,I,P,T):P(I)}catch(X){T(X)}}; O_v=function(W,Y,k,P,T){try{if(W.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var I=k(W.state.reason);I instanceof g.ZS?iN(W,Y,I,P,T):P(I)}catch(X){T(X)}}; iN=function(W,Y,k,P,T){Y===k?T(new TypeError("Circular promise chain detected.")):k.then(function(I){I instanceof g.ZS?iN(W,Y,I,P,T):P(I)},function(I){T(I)})}; u0C=function(W,Y,k){function P(){k(W.error);I()} function T(){Y(W.result);I()} function I(){try{W.removeEventListener("success",T),W.removeEventListener("error",P)}catch(X){}} W.addEventListener("success",T);W.addEventListener("error",P)}; Z_d=function(W){return new Promise(function(Y,k){u0C(W,Y,k)})}; M5=function(W){return new g.ZS(new uN(function(Y,k){u0C(W,Y,k)}))}; tj=function(W,Y){return new g.ZS(new uN(function(k,P){function T(){var I=W?Y(W):null;I?I.then(function(X){W=X;T()},P):k()} T()}))}; i_1=function(W,Y){this.request=W;this.cursor=Y}; MSS=function(W){return M5(W).then(function(Y){return Y?new i_1(W,Y):null})}; g.tS5=function(W){W.cursor.continue(void 0);return MSS(W.request)}; qUF=function(W,Y){this.W=W;this.options=Y;this.transactionCount=0;this.J=Math.round((0,g.q5)());this.K=!1}; Ry=function(){return g.Oi("idb_immediate_commit")}; g.nJ=function(W,Y,k){W=W.W.createObjectStore(Y,k);return new H8(W)}; pJ=function(W,Y){W.W.objectStoreNames.contains(Y)&&W.W.deleteObjectStore(Y)}; g.EP=function(W,Y,k){return g.GX(W,[Y],{mode:"readwrite",sR:!0,commit:Ry()},function(P){return g.KJ(P.objectStore(Y),k)})}; g.GX=function(W,Y,k,P){var T,I,X,h,B,O,u,Z,M,t,q,G;return g.D(function(J){switch(J.W){case 1:var d={mode:"readonly",sR:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof k==="string"?d.mode=k:Object.assign(d,k);T=d;W.transactionCount++;I=T.sR?3:1;X=0;case 2:if(h){J.oi(4);break}X++;B=Math.round((0,g.q5)());g.KC(J,5);O=W.W.transaction(Y,T.mode);d=!!T.commit;var A=new Jj(O);d=RT7(A,P,d);return g.m(J,d,7);case 7:return u=J.K,Z=Math.round((0,g.q5)()),H_z(W,B,Z,X,void 0,Y.join(),T),J.return(u);case 5:M=g.Aq(J); t=Math.round((0,g.q5)());q=B8(M,W.W.name,Y.join(),W.W.version);if((G=q instanceof g.Iy&&!q.W)||X>=I)H_z(W,B,t,X,q,Y.join(),T),h=q;J.oi(2);break;case 4:return J.return(Promise.reject(h))}})}; H_z=function(W,Y,k,P,T,I,X){Y=k-Y;T?(T instanceof g.Iy&&(T.type==="QUOTA_EXCEEDED"||T.type==="QUOTA_MAYBE_EXCEEDED")&&P8("QUOTA_EXCEEDED",{dbName:j5(W.W.name),objectStoreNames:I,transactionCount:W.transactionCount,transactionMode:X.mode}),T instanceof g.Iy&&T.type==="UNKNOWN_ABORT"&&(k-=W.J,k<0&&k>=2147483648&&(k=0),P8("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:I,transactionDuration:Y,transactionCount:W.transactionCount,dbDuration:k}),W.K=!0),nAF(W,!1,P,I,Y,X.tag),ku(T)):nAF(W,!0,P,I,Y, X.tag)}; nAF=function(W,Y,k,P,T,I){P8("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:W.K,duration:T,isSuccessful:Y,tryCount:k,tag:I===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":I})}; H8=function(W){this.W=W}; g.sP=function(W,Y,k){W.W.createIndex(Y,k,{unique:!1})}; pHv=function(W,Y){return g.re(W,{query:Y},function(k){return k.delete().then(function(){return g.Aj(k)})}).then(function(){})}; GoS=function(W,Y,k){var P=[];return g.re(W,{query:Y},function(T){if(!(k!==void 0&&P.length>=k))return P.push(T.getValue()),g.Aj(T)}).then(function(){return P})}; EAd=function(W){return"getAllKeys"in IDBObjectStore.prototype?M5(W.W.getAllKeys(void 0,void 0)):KYF(W)}; KYF=function(W){var Y=[];return g.JPS(W,{query:void 0},function(k){Y.push(k.cursor.primaryKey);return g.tS5(k)}).then(function(){return Y})}; g.KJ=function(W,Y,k){return M5(W.W.put(Y,k))}; g.re=function(W,Y,k){W=W.W.openCursor(Y.query,Y.direction);return zX(W).then(function(P){return tj(P,k)})}; g.JPS=function(W,Y,k){var P=Y.query;Y=Y.direction;W="openKeyCursor"in IDBObjectStore.prototype?W.W.openKeyCursor(P,Y):W.W.openCursor(P,Y);return MSS(W).then(function(T){return tj(T,k)})}; Jj=function(W){var Y=this;this.W=W;this.J=new Map;this.K=!1;this.done=new Promise(function(k,P){Y.W.addEventListener("complete",function(){k()}); Y.W.addEventListener("error",function(T){T.currentTarget===T.target&&P(Y.W.error)}); Y.W.addEventListener("abort",function(){var T=Y.W.error;if(T)P(T);else if(!Y.K){T=g.Iy;for(var I=Y.W.objectStoreNames,X=[],h=0;h=k))return P.push(T.getValue()),g.Aj(T)}).then(function(){return P})}; g.de=function(W,Y,k){W=W.W.openCursor(Y.query===void 0?null:Y.query,Y.direction===void 0?"next":Y.direction);return zX(W).then(function(P){return tj(P,k)})}; md=function(W,Y){this.request=W;this.cursor=Y}; zX=function(W){return M5(W).then(function(Y){return Y?new md(W,Y):null})}; g.Aj=function(W){W.cursor.continue(void 0);return zX(W.request)}; AP5=function(W,Y,k){return new Promise(function(P,T){function I(){M||(M=new qUF(X.result,{closed:Z}));return M} var X=Y!==void 0?self.indexedDB.open(W,Y):self.indexedDB.open(W);var h=k.blocked,B=k.blocking,O=k.NV2,u=k.upgrade,Z=k.closed,M;X.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(X.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&P8("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:j5(W)});var q=I(),G=new Jj(X.transaction); u&&u(q,function(J){return t.oldVersion=J},G); G.done.catch(function(J){T(J)})}catch(J){T(J)}}); X.addEventListener("success",function(){var t=X.result;B&&t.addEventListener("versionchange",function(){B(I())}); t.addEventListener("close",function(){P8("IDB_UNEXPECTEDLY_CLOSED",{dbName:j5(W),dbVersion:t.version});O&&O()}); P(I())}); X.addEventListener("error",function(){T(X.error)}); h&&X.addEventListener("blocked",function(){h()})})}; zT0=function(W,Y,k){k=k===void 0?{}:k;return AP5(W,Y,k)}; DS=function(W,Y){Y=Y===void 0?{}:Y;var k,P,T,I;return g.D(function(X){if(X.W==1)return g.KC(X,2),k=self.indexedDB.deleteDatabase(W),P=Y,(T=P.blocked)&&k.addEventListener("blocked",function(){T()}),g.m(X,Z_d(k),4); if(X.W!=2)return g.s2(X,0);I=g.Aq(X);throw B8(I,W,"",-1);})}; ge=function(W,Y){this.name=W;this.options=Y;this.J=!0;this.C=this.T=0}; daC=function(W,Y){return new g.Iy("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:Y})}; g.FH=function(W,Y){if(!Y)throw g.OP("openWithToken",j5(W.name));return W.open()}; maz=function(W,Y){var k;return g.D(function(P){if(P.W==1)return g.m(P,g.FH(we,Y),2);k=P.K;return P.return(g.GX(k,["databases"],{sR:!0,mode:"readwrite"},function(T){var I=T.objectStore("databases");return I.get(W.actualName).then(function(X){if(X?W.actualName!==X.actualName||W.publicName!==X.publicName||W.userIdentifier!==X.userIdentifier:1)return g.KJ(I,W).then(function(){})})}))})}; QW=function(W,Y){var k;return g.D(function(P){if(P.W==1)return W?g.m(P,g.FH(we,Y),2):P.return();k=P.K;return P.return(k.delete("databases",W))})}; Dav=function(W,Y){var k,P;return g.D(function(T){return T.W==1?(k=[],g.m(T,g.FH(we,Y),2)):T.W!=3?(P=T.K,g.m(T,g.GX(P,["databases"],{sR:!0,mode:"readonly"},function(I){k.length=0;return g.re(I.objectStore("databases"),{},function(X){W(X.getValue())&&k.push(X.getValue());return g.Aj(X)})}),3)):T.return(k)})}; gA6=function(W,Y){return Dav(function(k){return k.publicName===W&&k.userIdentifier!==void 0},Y)}; FYd=function(){var W,Y,k,P;return g.D(function(T){switch(T.W){case 1:W=fe();if((Y=W)==null?0:Y.hasSucceededOnce)return T.return(!0);if(yW&&eU()&&!oi()||g.e5)return T.return(!1);try{if(k=self,!(k.indexedDB&&k.IDBIndex&&k.IDBKeyRange&&k.IDBObjectStore))return T.return(!1)}catch(I){return T.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return T.return(!1);g.KC(T,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.m(T,maz(P,oy),4);case 4:return g.m(T,QW("yt-idb-test-do-not-use",oy),5);case 5:return T.return(!0);case 2:return g.Aq(T),T.return(!1)}})}; wHd=function(){if(v8!==void 0)return v8;$u=!0;return v8=FYd().then(function(W){$u=!1;var Y;if((Y=xF())!=null&&Y.W){var k;Y={hasSucceededOnce:((k=fe())==null?void 0:k.hasSucceededOnce)||W};var P;(P=xF())==null||P.set("LAST_RESULT_ENTRY_KEY",Y,2592E3,!0)}return W})}; CJ=function(){return g.Wp("ytglobal.idbToken_")||void 0}; g.LJ=function(){var W=CJ();return W?Promise.resolve(W):wHd().then(function(Y){(Y=Y?oy:void 0)&&g.N6("ytglobal.idbToken_",Y);return Y})}; Q2q=function(W){if(!g.e0())throw W=new g.Iy("AUTH_INVALID",{dbName:W}),ku(W),W;var Y=g.yq();return{actualName:W+":"+Y,publicName:W,userIdentifier:Y}}; yP0=function(W,Y,k,P){var T,I,X,h,B,O;return g.D(function(u){switch(u.W){case 1:return I=(T=Error().stack)!=null?T:"",g.m(u,g.LJ(),2);case 2:X=u.K;if(!X)throw h=g.OP("openDbImpl",W,Y),g.Oi("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+I.substring(I.indexOf("\n")+1)),ku(h),h;TX(W);B=k?{actualName:W,publicName:W,userIdentifier:void 0}:Q2q(W);g.KC(u,3);return g.m(u,maz(B,X),5);case 5:return g.m(u,zT0(B.actualName,Y,P),6);case 6:return u.return(u.K);case 3:return O=g.Aq(u),g.KC(u,7),g.m(u,QW(B.actualName, X),9);case 9:g.s2(u,8);break;case 7:g.Aq(u);case 8:throw O;}})}; eT7=function(W,Y,k){k=k===void 0?{}:k;return yP0(W,Y,!1,k)}; oAC=function(W,Y,k){k=k===void 0?{}:k;return yP0(W,Y,!0,k)}; vA0=function(W,Y){Y=Y===void 0?{}:Y;var k,P;return g.D(function(T){if(T.W==1)return g.m(T,g.LJ(),2);if(T.W!=3){k=T.K;if(!k)return T.return();TX(W);P=Q2q(W);return g.m(T,DS(P.actualName,Y),3)}return g.m(T,QW(P.actualName,k),0)})}; C9F=function(W,Y,k){W=W.map(function(P){return g.D(function(T){return T.W==1?g.m(T,DS(P.actualName,Y),2):g.m(T,QW(P.actualName,k),0)})}); return Promise.all(W).then(function(){})}; LY5=function(W){var Y=Y===void 0?{}:Y;var k,P;return g.D(function(T){if(T.W==1)return g.m(T,g.LJ(),2);if(T.W!=3){k=T.K;if(!k)return T.return();TX(W);return g.m(T,gA6(W,k),3)}P=T.K;return g.m(T,C9F(P,Y,k),0)})}; Ua7=function(W,Y){Y=Y===void 0?{}:Y;var k;return g.D(function(P){if(P.W==1)return g.m(P,g.LJ(),2);if(P.W!=3){k=P.K;if(!k)return P.return();TX(W);return g.m(P,DS(W,Y),3)}return g.m(P,QW(W,k),0)})}; UP=function(W,Y){ge.call(this,W,Y);this.options=Y;TX(W)}; lx0=function(W,Y){var k;return function(){k||(k=new UP(W,Y));return k}}; g.lN=function(W,Y){return lx0(W,Y)}; bN=function(W){return g.FH(b_d(),W)}; cP1=function(W,Y,k,P){var T,I,X;return g.D(function(h){switch(h.W){case 1:return T={config:W,hashData:Y,timestamp:P!==void 0?P:(0,g.q5)()},g.m(h,bN(k),2);case 2:return I=h.K,g.m(h,I.clear("hotConfigStore"),3);case 3:return g.m(h,g.EP(I,"hotConfigStore",T),4);case 4:return X=h.K,h.return(X)}})}; xaq=function(W,Y,k,P,T){var I,X,h;return g.D(function(B){switch(B.W){case 1:return I={config:W,hashData:Y,configData:k,timestamp:T!==void 0?T:(0,g.q5)()},g.m(B,bN(P),2);case 2:return X=B.K,g.m(B,X.clear("coldConfigStore"),3);case 3:return g.m(B,g.EP(X,"coldConfigStore",I),4);case 4:return h=B.K,B.return(h)}})}; fx7=function(W){var Y,k;return g.D(function(P){return P.W==1?g.m(P,bN(W),2):P.W!=3?(Y=P.K,k=void 0,g.m(P,g.GX(Y,["coldConfigStore"],{mode:"readwrite",sR:!0},function(T){return g.de(T.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(I){k=I.getValue()})}),3)):P.return(k)})}; VS7=function(W){var Y,k;return g.D(function(P){return P.W==1?g.m(P,bN(W),2):P.W!=3?(Y=P.K,k=void 0,g.m(P,g.GX(Y,["hotConfigStore"],{mode:"readwrite",sR:!0},function(T){return g.de(T.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(I){k=I.getValue()})}),3)):P.return(k)})}; NO5=function(){return g.D(function(W){return g.m(W,LY5("ytGcfConfig"),0)})}; c8=function(){g.e.call(this);this.K=[];this.W=[];var W=g.Wp("yt.gcf.config.hotUpdateCallbacks");W?(this.K=[].concat(g.ZX(W)),this.W=W):(this.W=[],g.N6("yt.gcf.config.hotUpdateCallbacks",this.W))}; Y4=function(){var W=this;this.C=!1;this.J=this.T=0;this.X=new c8;this.zW={xV5:function(){W.C=!0}, GRi:function(){return W.W}, DHg:function(Y){xu(W,Y)}, SD:function(Y){W.SD(Y)}, Ini:function(Y){fJ(W,Y)}, w$:function(){return W.coldHashData}, YQ:function(){return W.hotHashData}, bCq:function(){return W.K}, D8a:function(){return VW()}, BOD:function(){return N5()}, QlP:function(){return g.Wp("yt.gcf.config.coldHashData")}, d85:function(){return g.Wp("yt.gcf.config.hotHashData")}, MTz:function(){ax0(W)}, sE6:function(){W.SD(void 0);ay(W);delete Y4.instance}, Zyh:function(Y){W.J=Y}, ZCP:function(){return W.J}}}; WHV=function(){if(!Y4.instance){var W=new Y4;Y4.instance=W}return Y4.instance}; kx7=function(W){var Y;g.D(function(k){if(k.W==1)return g.Oi("start_client_gcf")||g.Oi("delete_gcf_config_db")?g.Oi("start_client_gcf")?g.m(k,g.LJ(),3):k.oi(2):k.return();k.W!=2&&((Y=k.K)&&g.e0()&&!g.Oi("delete_gcf_config_db")?(W.C=!0,ax0(W)):(Yrv(W),$90(W)));return g.Oi("delete_gcf_config_db")?g.m(k,NO5(),0):k.oi(0)})}; $4=function(){var W;return(W=N5())!=null?W:g.eM("RAW_HOT_CONFIG_GROUP")}; PsS=function(W){var Y,k,P,T,I,X;return g.D(function(h){switch(h.W){case 1:if(W.K)return h.return(N5());if(!W.C)return Y=g.OP("getHotConfig IDB not initialized"),UQ(Y),h.return(Promise.reject(Y));k=CJ();P=g.eM("TIME_CREATED_MS");if(!k){T=g.OP("getHotConfig token error");UQ(T);h.oi(2);break}return g.m(h,VS7(k),3);case 3:if((I=h.K)&&I.timestamp>P)return xu(W,I.config),W.SD(I.hashData),h.return(N5());case 2:$90(W);if(!(k&&W.K&&W.hotHashData)){h.oi(4);break}return g.m(h,cP1(W.K,W.hotHashData,k,P),4);case 4:return W.K? h.return(N5()):(X=new g.Qq("Config not available in ytConfig"),UQ(X),h.return(Promise.reject(X)))}})}; jYX=function(W){var Y,k,P,T,I,X;return g.D(function(h){switch(h.W){case 1:if(W.W)return h.return(VW());if(!W.C)return Y=g.OP("getColdConfig IDB not initialized"),UQ(Y),h.return(Promise.reject(Y));k=CJ();P=g.eM("TIME_CREATED_MS");if(!k){T=g.OP("getColdConfig");UQ(T);h.oi(2);break}return g.m(h,fx7(k),3);case 3:if((I=h.K)&&I.timestamp>P)return fJ(W,I.config),T92(W,I.configData),ay(W,I.hashData),h.return(VW());case 2:Yrv(W);if(!(k&&W.W&&W.coldHashData&&W.configData)){h.oi(4);break}return g.m(h,xaq(W.W, W.coldHashData,W.configData,k,P),4);case 4:return W.W?h.return(VW()):(X=new g.Qq("Config not available in ytConfig"),UQ(X),h.return(Promise.reject(X)))}})}; ax0=function(W){if(!W.K||!W.W){if(!CJ()){var Y=g.OP("scheduleGetConfigs");UQ(Y)}W.T||(W.T=g.Dx.r_(function(){return g.D(function(k){switch(k.W){case 1:return g.KC(k,2),g.m(k,PsS(W),4);case 4:g.s2(k,3);break;case 2:g.Aq(k);case 3:return g.KC(k,5),g.m(k,jYX(W),7);case 7:g.s2(k,6);break;case 5:g.Aq(k);case 6:W.T&&(W.T=0),g.G1(k)}})},100))}}; I3v=function(W,Y,k){var P,T,I;return g.D(function(X){switch(X.W){case 1:if(!g.Oi("start_client_gcf")){X.oi(0);break}k&&xu(W,k);W.SD(Y);P=CJ();if(!P){X.oi(3);break}if(k){X.oi(4);break}return g.m(X,VS7(P),5);case 5:T=X.K,k=(I=T)==null?void 0:I.config;case 4:return g.m(X,cP1(k,Y,P),3);case 3:if(k)for(var h=k,B=g.p(W.X.W),O=B.next();!O.done;O=B.next())O=O.value,O(h);g.G1(X)}})}; Xe0=function(W,Y,k){var P,T,I,X;return g.D(function(h){if(h.W==1){if(!g.Oi("start_client_gcf"))return h.oi(0);ay(W,Y);return(P=CJ())?k?h.oi(4):g.m(h,fx7(P),5):h.oi(0)}h.W!=4&&(T=h.K,k=(I=T)==null?void 0:I.config);if(!k)return h.oi(0);X=k.configData;return g.m(h,xaq(k,Y,X,P),0)})}; SrV=function(){var W=WHV(),Y=(0,g.q5)()-W.J;if(!(W.J!==0&&Y0&&(Y.request={internalExperimentFlags:k});B91(W,void 0,Y);Ood(void 0,Y);uu1(void 0,Y);Zo7(W,void 0,Y);ioS(void 0,Y);g.Oi("start_client_gcf")&&MQ2(void 0,Y);g.eM("DELEGATED_SESSION_ID")&& !g.Oi("pageid_as_header_web")&&(Y.user={onBehalfOfUser:g.eM("DELEGATED_SESSION_ID")});!g.Oi("fill_delegate_context_in_gel_killswitch")&&(W=g.eM("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Y.user=Object.assign({},Y.user,{serializedDelegationContext:W}));W=g.eM("INNERTUBE_CONTEXT");var P;if(g.Oi("enable_persistent_device_token")&&(W==null?0:(P=W.client)==null?0:P.rolloutToken)){var T;Y.client.rolloutToken=W==null?void 0:(T=W.client)==null?void 0:T.rolloutToken}P=Object;T=P.assign;W=Y.client; k={};for(var I=g.p(Object.entries(cD(g.eM("DEVICE","")))),X=I.next();!X.done;X=I.next()){var h=g.p(X.value);X=h.next().value;h=h.next().value;X==="cbrand"?k.deviceMake=h:X==="cmodel"?k.deviceModel=h:X==="cbr"?k.browserName=h:X==="cbrver"?k.browserVersion=h:X==="cos"?k.osName=h:X==="cosver"?k.osVersion=h:X==="cplatform"&&(k.platform=h)}Y.client=T.call(P,W,k);return Y}; B91=function(W,Y,k){W=W.Up;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(Y){k=pF(Y,HD,96)||new HD;var P=Al();P=Object.keys(tQq).indexOf(P);P=P===-1?null:P;P!==null&&wl(k,3,P);KF(Y,HD,96,k)}else k&&(k.client.mainAppWebInfo=(P=k.client.mainAppWebInfo)!=null?P:{},k.client.mainAppWebInfo.webDisplayMode=Al())}; Ood=function(W,Y){var k=g.Wp("yt.embedded_player.embed_url");k&&(W?(Y=pF(W,EQ,7)||new EQ,gl(Y,4,k),KF(W,EQ,7,Y)):Y&&(Y.thirdParty={embedUrl:k}))}; uu1=function(W,Y){var k;if(g.Oi("web_log_memory_total_kbytes")&&((k=g.V0.navigator)==null?0:k.deviceMemory)){var P;k=(P=g.V0.navigator)==null?void 0:P.deviceMemory;W?Ws(W,95,pZ(k*1E6)):Y&&(Y.client.memoryTotalKbytes=""+k*1E6)}}; Zo7=function(W,Y,k){if(W.appInstallData)if(Y){var P;k=(P=pF(Y,Rh,62))!=null?P:new Rh;gl(k,6,W.appInstallData);KF(Y,Rh,62,k)}else k&&(k.client.configInfo=k.client.configInfo||{},k.client.configInfo.appInstallData=W.appInstallData)}; ioS=function(W,Y){var k=WY7();k&&(W?wl(W,61,qr2[k]):Y&&(Y.client.connectionType=k));g.Oi("web_log_effective_connection_type")&&(k=$av())&&(W?wl(W,94,RZ7[k]):Y&&(Y.client.effectiveConnectionType=k))}; HoV=function(W,Y,k){k=k===void 0?{}:k;var P={};g.eM("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":g.eM("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":k.visitorData||g.eM("VISITOR_DATA","")};if(Y&&Y.includes("www.youtube-nocookie.com"))return P;Y=k.Uz||g.eM("AUTHORIZATION");Y||(W?Y="Bearer "+g.Wp("gapi.auth.getToken")().access_token:(W=cR1().Ua(T_),g.Oi("pageid_as_header_web")||delete W["X-Goog-PageId"],P=Object.assign({},P,W)));Y&&(P.Authorization=Y);return P}; MQ2=function(W,Y){var k=SrV();if(k){var P=k.coldConfigData,T=k.coldHashData;k=k.hotHashData;if(W){var I;Y=(I=pF(W,Rh,62))!=null?I:new Rh;P=gl(Y,1,P);gl(P,3,T).SD(k);KF(W,Rh,62,Y)}else Y&&(Y.client.configInfo=Y.client.configInfo||{},P&&(Y.client.configInfo.coldConfigData=P),T&&(Y.client.configInfo.coldHashData=T),k&&(Y.client.configInfo.hotHashData=k))}}; jr=function(W,Y){this.version=W;this.args=Y}; I0=function(W,Y){this.topic=W;this.W=Y}; Sr=function(W,Y){var k=XJ();k&&k.publish.call(k,W.toString(),W,Y)}; GxC=function(W){var Y=nN5,k=XJ();if(!k)return 0;var P=k.subscribe(Y.toString(),function(T,I){var X=g.Wp("ytPubsub2Pubsub2SkipSubKey");X&&X==P||(X=function(){if(h8[P])try{if(I&&Y instanceof I0&&Y!=T)try{var h=Y.W,B=I;if(!B.args||!B.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!h.bM){var O=new h;h.bM=O.version}var u=h.bM}catch(Z){}if(!u||B.version!=u)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{I=Reflect.construct(h, g.zK(B.args))}catch(Z){throw Z.message="yt.pubsub2.Data.deserialize(): "+Z.message,Z;}}catch(Z){throw Z.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+Y.toString()+": "+Z.message,Z;}W.call(window,I)}catch(Z){g.CI(Z)}},pez[Y.toString()]?g.lC()?g.Dx.r_(X):g.Ii(X,0):X())}); h8[P]=!0;Bw[Y.toString()]||(Bw[Y.toString()]=[]);Bw[Y.toString()].push(P);return P}; J4v=function(){var W=KHV,Y=GxC(function(k){W.apply(void 0,arguments);ENF(Y)}); return Y}; ENF=function(W){var Y=XJ();Y&&(typeof W==="number"&&(W=[W]),g.xh(W,function(k){Y.unsubscribeByKey(k);delete h8[k]}))}; XJ=function(){return g.Wp("ytPubsub2Pubsub2Instance")}; Oj=function(W,Y,k){k=k===void 0?{sampleRate:.1}:k;Math.random()m9F||X=wez&&(pQ++,g.Oi("abandon_compression_after_N_slow_zips")?nQ===g.uw("compression_disable_point")&&pQ>QYS&&(qP=!1):qP=!1);y45(Y);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=W;P.postParams=void 0;T(k,P)}; eZC=function(W){var Y=Y===void 0?!1:Y;var k=k===void 0?!1:k;var P=(0,g.q5)(),T={startTime:P,ticks:{},infos:{}},I=Y?g.Wp("yt.logging.gzipForFetch",!1):!0;if(qP&&I){if(!W.body)return W;try{var X=k?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);I=X;if(!k&&typeof X==="string"){var h=d9C(X);if(h!=null&&(h>m9F||h=wez)if(pQ++,g.Oi("abandon_compression_after_N_slow_zips")||g.Oi("abandon_compression_after_N_slow_zips_lr")){Y=pQ/nQ;var O=QYS/g.uw("compression_disable_point");nQ>0&&nQ%g.uw("compression_disable_point")===0&&Y>=O&&(qP=!1)}else qP=!1;y45(T)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=I;return W}catch(u){return UQ(u),W}}else return W}; d9C=function(W){try{return(new Blob(W.split(""))).size}catch(Y){return UQ(Y),null}}; y45=function(W){g.Oi("gel_compression_csi_killswitch")||!g.Oi("log_gel_compression_latency")&&!g.Oi("log_gel_compression_latency_lr")||Oj("gel_compression",W,{sampleRate:.1})}; KQ=function(W){var Y=this;this.ow=this.W=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.Am=function(){}; this.now=Date.now;this.hS=!1;this.zW={jEg:function(u){Y.c5=u}, za5:function(){Y.EY()}, D1:function(){Y.bq()}, At:function(u){return g.D(function(Z){return g.m(Z,Y.At(u),0)})}, nf:function(u,Z){return Y.nf(u,Z)}, HJ:function(){Y.HJ()}}; var k;this.MJ=(k=W.MJ)!=null?k:100;var P;this.MW=(P=W.MW)!=null?P:1;var T;this.Vu=(T=W.Vu)!=null?T:2592E6;var I;this.Z0=(I=W.Z0)!=null?I:12E4;var X;this.hJ=(X=W.hJ)!=null?X:5E3;var h;this.c5=(h=W.c5)!=null?h:void 0;this.Nb=!!W.Nb;var B;this.OJ=(B=W.OJ)!=null?B:.1;var O;this.L_=(O=W.L_)!=null?O:10;W.handleError&&(this.handleError=W.handleError);W.Am&&(this.Am=W.Am);W.hS&&(this.hS=W.hS);W.ow&&(this.ow=W.ow);this.Nq=W.Nq;this.EX=W.EX;this.a7=W.a7;this.O6=W.O6;this.sendFn=W.sendFn;this.sx=W.sx;this.He= W.He;G_(this)&&(!this.Nq||this.Nq("networkless_logging"))&&oN6(this)}; oN6=function(W){G_(W)&&!W.hS&&(W.W=!0,W.Nb&&Math.random()<=W.OJ&&W.a7.rR(W.c5),W.HJ(),W.O6.s6()&&W.EY(),W.O6.listen(W.sx,W.EY.bind(W)),W.O6.listen(W.He,W.bq.bind(W)))}; LHv=function(W,Y){if(!G_(W))throw Error("IndexedDB is not supported: updateRequestHandlers");var k=Y.options.onError?Y.options.onError:function(){}; Y.options.onError=function(T,I){var X,h,B,O;return g.D(function(u){switch(u.W){case 1:X=vNC(I);(h=Csd(I))&&W.Nq&&W.Nq("web_enable_error_204")&&W.handleError(Error("Request failed due to compression"),Y.url,I);if(!(W.Nq&&W.Nq("nwl_consider_error_code")&&X||W.Nq&&!W.Nq("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.L_)){u.oi(2);break}if(!W.O6.ZX){u.oi(3);break}return g.m(u,W.O6.ZX(),3);case 3:if(W.O6.s6()){u.oi(2);break}k(T,I);if(!W.Nq||!W.Nq("nwl_consider_error_code")||((B=Y)==null?void 0: B.id)===void 0){u.oi(6);break}return g.m(u,W.a7.vc(Y.id,W.c5,!1),6);case 6:return u.return();case 2:if(W.Nq&&W.Nq("nwl_consider_error_code")&&!X&&W.potentialEsfErrorCounter>W.L_)return u.return();W.potentialEsfErrorCounter++;if(((O=Y)==null?void 0:O.id)===void 0){u.oi(8);break}return Y.sendCount=400&&W<=599?!1:!0}; Csd=function(W){var Y;W=W==null?void 0:(Y=W.error)==null?void 0:Y.code;return!(W!==400&&W!==415)}; U9V=function(){if(J8)return J8();var W={};J8=g.lN("LogsDatabaseV2",{bW:(W.LogsRequestsStore={SN:2},W),shared:!1,upgrade:function(Y,k,P){k(2)&&g.nJ(Y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});k(3);k(5)&&(P=P.objectStore("LogsRequestsStore"),P.W.indexNames.contains("newRequest")&&P.W.deleteIndex("newRequest"),g.sP(P,"newRequestV2",["status","interface","timestamp"]));k(7)&&pJ(Y,"sapisid");k(9)&&pJ(Y,"SWHealthLog")}, version:9});return J8()}; sj=function(W){return g.FH(U9V(),W)}; bo7=function(W,Y){var k,P,T,I;return g.D(function(X){if(X.W==1)return k={startTime:(0,g.q5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.m(X,sj(Y),2);if(X.W!=3)return P=X.K,T=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:g.eM("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.m(X,g.EP(P,"LogsRequestsStore",T),3);I=X.K;k.ticks.tc=(0,g.q5)();l35(k);return X.return(I)})}; c4z=function(W,Y){var k,P,T,I,X,h,B,O,u;return g.D(function(Z){if(Z.W==1)return k={startTime:(0,g.q5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.m(Z,sj(Y),2);if(Z.W!=3)return P=Z.K,T=g.eM("INNERTUBE_CONTEXT_CLIENT_NAME",0),I=[W,T,0],X=[W,T,(0,g.q5)()],h=IDBKeyRange.bound(I,X),B="prev",g.Oi("use_fifo_for_networkless")&&(B="next"),O=void 0,u=W==="NEW"?"readwrite":"readonly",g.Oi("use_readonly_for_get_most_recent_by_status_killswitch")&&(u="readwrite"),g.m(Z,g.GX(P,["LogsRequestsStore"], {mode:u,sR:!0},function(M){return g.de(M.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:B},function(t){t.getValue()&&(O=t.getValue(),W==="NEW"&&(O.status="QUEUED",t.update(O)))})}),3); k.ticks.tc=(0,g.q5)();l35(k);return Z.return(O)})}; x90=function(W,Y){var k;return g.D(function(P){if(P.W==1)return g.m(P,sj(Y),2);k=P.K;return P.return(g.GX(k,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(T){var I=T.objectStore("LogsRequestsStore");return I.get(W).then(function(X){if(X)return X.status="QUEUED",g.KJ(I,X).then(function(){return X})})}))})}; f32=function(W,Y,k,P){k=k===void 0?!0:k;var T;return g.D(function(I){if(I.W==1)return g.m(I,sj(Y),2);T=I.K;return I.return(g.GX(T,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(X){var h=X.objectStore("LogsRequestsStore");return h.get(W).then(function(B){return B?(B.status="NEW",k&&(B.sendCount+=1),P!==void 0&&(B.options.compress=P),g.KJ(h,B).then(function(){return B})):g.ZS.resolve(void 0)})}))})}; VQd=function(W,Y){var k;return g.D(function(P){if(P.W==1)return g.m(P,sj(Y),2);k=P.K;return P.return(k.delete("LogsRequestsStore",W))})}; N9d=function(W){var Y,k;return g.D(function(P){if(P.W==1)return g.m(P,sj(W),2);Y=P.K;k=(0,g.q5)()-2592E6;return g.m(P,g.GX(Y,["LogsRequestsStore"],{mode:"readwrite",sR:!0},function(T){return g.re(T.objectStore("LogsRequestsStore"),{},function(I){if(I.getValue().timestamp<=k)return I.delete().then(function(){return g.Aj(I)})})}),0)})}; a32=function(){g.D(function(W){return g.m(W,LY5("LogsDatabaseV2"),0)})}; l35=function(W){g.Oi("nwl_csi_killswitch")||Oj("networkless_performance",W,{sampleRate:1})}; YQ0=function(W){return g.FH(Wy0(),W)}; $Cq=function(W){var Y,k;g.D(function(P){if(P.W==1)return g.m(P,YQ0(W),2);Y=P.K;k=(0,g.q5)()-2592E6;return g.m(P,g.GX(Y,["SWHealthLog"],{mode:"readwrite",sR:!0},function(T){return g.re(T.objectStore("SWHealthLog"),{},function(I){if(I.getValue().timestamp<=k)return I.delete().then(function(){return g.Aj(I)})})}),0)})}; ks6=function(W){var Y;return g.D(function(k){if(k.W==1)return g.m(k,YQ0(W),2);Y=k.K;return g.m(k,Y.clear("SWHealthLog"),0)})}; g.rS=function(W,Y,k,P,T,I,X){T=T===void 0?"":T;I=I===void 0?!1:I;X=X===void 0?!1:X;if(W)if(k&&!g.wn())UQ(new g.Qq("Legacy referrer-scrubbed ping detected")),W&&PGF(W,void 0,{scrubReferrer:!0});else if(T)MK(W,Y,"POST",T,P);else if(g.eM("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||X)MK(W,Y,"GET","",P,void 0,I,X);else{b:{try{c:{var h=new p3S({url:W});if(h.W.dsh==="1")var B=null;else{var O=h.W.ae;if(O==="1"){var u=h.W.adurl;if(u)try{B={version:3,gg:decodeURIComponent(u),HY:UE(h.K,"act=1","ri=1",GlC(h))}; break c}catch(t){}}B=O==="2"?{version:4,gg:UE(h.K,"dct=1","suid="+h.J,""),HY:UE(h.K,"act=1","ri=1","suid="+h.J)}:null}}if(B){var Z=S7(W);var M=!(!Z||!Z.endsWith("/aclk")||nk(W,"ri")!=="1");break b}}catch(t){}M=!1}M?TFv(W)?(Y&&Y(),k=!0):k=!1:k=!1;k||PGF(W,Y)}}; TFv=function(W,Y){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,Y===void 0?"":Y))return!0}catch(k){}return!1}; PGF=function(W,Y,k){k=k===void 0?{}:k;var P=new Image,T=""+jhS++;A8[T]=P;P.onload=P.onerror=function(){Y&&A8[T]&&Y();delete A8[T]}; k.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=W}; IES=function(W){var Y;return((Y=document.featurePolicy)==null?0:Y.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"}; dS=function(){z_||(z_=new cO("yt.offline"));return z_}; XD6=function(W){if(g.Oi("offline_error_handling")){var Y=dS().get("errors",!0)||{};Y[W.message]={name:W.name,stack:W.stack};W.level&&(Y[W.message].level=W.level);dS().set("errors",Y,2592E3,!0)}}; mg=function(){this.W=new Map;this.K=!1}; DK=function(){if(!mg.instance){var W=g.Wp("yt.networkRequestMonitor.instance")||new mg;g.N6("yt.networkRequestMonitor.instance",W);mg.instance=W}return mg.instance}; gS=function(){g.S2.call(this);var W=this;this.K=!1;this.W=HH1();this.W.listen("networkstatus-online",function(){if(W.K&&g.Oi("offline_error_handling")){var Y=dS().get("errors",!0);if(Y){for(var k in Y)if(Y[k]){var P=new g.Qq(k,"sent via offline_errors");P.name=Y[k].name;P.stack=Y[k].stack;P.level=Y[k].level;g.CI(P)}dS().set("errors",{},2592E3,!0)}}})}; SQS=function(){if(!gS.instance){var W=g.Wp("yt.networkStatusManager.instance")||new gS;g.N6("yt.networkStatusManager.instance",W);gS.instance=W}return gS.instance}; g.FJ=function(W){W=W===void 0?{}:W;g.S2.call(this);var Y=this;this.W=this.T=0;this.K=SQS();var k=g.Wp("yt.networkStatusManager.instance.listen").bind(this.K);k&&(W.rateLimit?(this.rateLimit=W.rateLimit,k("networkstatus-online",function(){hVd(Y,"publicytnetworkstatus-online")}),k("networkstatus-offline",function(){hVd(Y,"publicytnetworkstatus-offline")})):(k("networkstatus-online",function(){Y.dispatchEvent("publicytnetworkstatus-online")}),k("networkstatus-offline",function(){Y.dispatchEvent("publicytnetworkstatus-offline")})))}; hVd=function(W,Y){W.rateLimit?W.W?(g.Dx.Ca(W.T),W.T=g.Dx.r_(function(){W.J!==Y&&(W.dispatchEvent(Y),W.J=Y,W.W=(0,g.q5)())},W.rateLimit-((0,g.q5)()-W.W))):(W.dispatchEvent(Y),W.J=Y,W.W=(0,g.q5)()):W.dispatchEvent(Y)}; Qk=function(){var W=KQ.call;wS||(wS=new g.FJ({EBi:!0,eQ5:!0}));W.call(KQ,this,{a7:{rR:N9d,t4:VQd,JH:c4z,YPS:x90,vc:f32,set:bo7},O6:wS,handleError:function(Y,k,P){var T,I=P==null?void 0:(T=P.error)==null?void 0:T.code;if(I===400||I===415){var X;Y=new g.Qq(Y.message,k,P==null?void 0:(X=P.error)==null?void 0:X.code);UQ(Y,void 0,void 0,void 0,!0)}else g.CI(Y)}, Am:UQ,sendFn:BFC,now:g.q5,cC:XD6,EX:g.Us(),sx:"publicytnetworkstatus-online",He:"publicytnetworkstatus-offline",Nb:!0,OJ:.1,L_:g.uw("potential_esf_error_limit",10),Nq:g.Oi,hS:!(g.e0()&&g.Xl(document.location.toString())!=="www.youtube-nocookie.com")});this.J=new g.Xd;g.Oi("networkless_immediately_drop_all_requests")&&a32();Ua7("LogsDatabaseV2")}; yk=function(){var W=g.Wp("yt.networklessRequestController.instance");W||(W=new Qk,g.N6("yt.networklessRequestController.instance",W),g.Oi("networkless_logging")&&g.LJ().then(function(Y){W.c5=Y;oN6(W);W.J.resolve();W.Nb&&Math.random()<=W.OJ&&W.c5&&$Cq(W.c5);g.Oi("networkless_immediately_drop_sw_health_store")&&OI0(W)})); return W}; OI0=function(W){var Y;g.D(function(k){if(!W.c5)throw Y=g.OP("clearSWHealthLogsDb"),Y;return k.return(ks6(W.c5).catch(function(P){W.handleError(P)}))})}; BFC=function(W,Y,k,P){P=P===void 0?!1:P;Y=g.Oi("web_fp_via_jspb")?Object.assign({},Y):Y;g.Oi("use_cfr_monitor")&&ubq(W,Y);if(g.Oi("use_request_time_ms_header"))Y.headers&&ah(W)&&(Y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.q5)())));else{var T;if((T=Y.postParams)==null?0:T.requestTimeMs)Y.postParams.requestTimeMs=Math.round((0,g.q5)())}k&&Object.keys(Y).length===0?g.rS(W):Y.compress?Y.postBody?(typeof Y.postBody!=="string"&&(Y.postBody=JSON.stringify(Y.postBody)),Hw(W,Y.postBody, Y,g.tB,P)):Hw(W,JSON.stringify(Y.postParams),Y,qK,P):g.tB(W,Y)}; er=function(W,Y){g.Oi("use_event_time_ms_header")&&ah(W)&&(Y.headers||(Y.headers={}),Y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.q5)())));return Y}; ubq=function(W,Y){var k=Y.onError?Y.onError:function(){}; Y.onError=function(T,I){DK().requestComplete(W,!1);k(T,I)}; var P=Y.onSuccess?Y.onSuccess:function(){}; Y.onSuccess=function(T,I){DK().requestComplete(W,!0);P(T,I)}}; g.o0=function(W){this.config_=null;W?this.config_=W:hZv()&&(this.config_=g.k4())}; g.vw=function(W,Y,k,P){function T(O){try{if((O===void 0?0:O)&&P.retry&&!P.networklessOptions.bypassNetworkless)I.method="POST",P.networklessOptions.writeThenSend?yk().writeThenSend(B,I):yk().sendAndWrite(B,I);else if(P.compress){var u=!P.networklessOptions.writeThenSend;if(I.postBody){var Z=I.postBody;typeof Z!=="string"&&(Z=JSON.stringify(I.postBody));Hw(B,Z,I,g.tB,u)}else Hw(B,JSON.stringify(I.postParams),I,qK,u)}else g.Oi("web_all_payloads_via_jspb")?g.tB(B,I):qK(B,I)}catch(M){if(M.name==="InvalidAccessError")UQ(Error("An extension is blocking network request.")); else throw M;}} !g.eM("VISITOR_DATA")&&Y!=="visitor_id"&&Math.random()<.01&&UQ(new g.Qq("Missing VISITOR_DATA when sending innertube request.",Y,k,P));if(!W.isReady())throw W=new g.Qq("innertube xhrclient not ready",Y,k,P),g.CI(W),W;var I={headers:P.headers||{},method:"POST",postParams:k,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()}, onFetchTimeout:P.onTimeout,onSuccess:function(O,u){if(P.onSuccess)P.onSuccess(u)}, onFetchSuccess:function(O){if(P.onSuccess)P.onSuccess(O)}, onProgress:function(O){if(P.onProgress)P.onProgress(O)}, onError:function(O,u){if(P.onError)P.onError(u)}, onFetchError:function(O){if(P.onError)P.onError(O)}, timeout:P.timeout,withCredentials:!0,compress:P.compress};I.headers["Content-Type"]||(I.headers["Content-Type"]="application/json");k="";var X=W.config_.wG;X&&(k=X);X=W.config_.JV||!1;var h=HoV(X,k,P);Object.assign(I.headers,h);I.headers.Authorization&&!k&&X&&(I.headers["x-origin"]=window.location.origin);var B=Vm(""+k+("/youtubei/"+W.config_.innertubeApiVersion+"/"+Y),{alt:"json"});g.Wp("ytNetworklessLoggingInitializationOptions")&&ZId.isNwlInitialized?wHd().then(function(O){T(O)}):T(!1)}; g.bu=function(W,Y,k){var P=g.CQ();if(P&&Y){var T=P.subscribe(W,function(){function I(){LQ[T]&&Y.apply&&typeof Y.apply=="function"&&Y.apply(k||window,X)} var X=arguments;try{g.Uj[W]?I():g.Ii(I,0)}catch(h){g.CI(h)}},k); LQ[T]=!0;lu[W]||(lu[W]=[]);lu[W].push(T);return T}return 0}; iIC=function(W){var Y=g.bu("LOGGED_IN",function(k){W.apply(void 0,arguments);g.cw(Y)})}; g.cw=function(W){var Y=g.CQ();Y&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),g.xh(W,function(k){Y.unsubscribeByKey(k);delete LQ[k]}))}; g.x4=function(W,Y){var k=g.CQ();return k?k.publish.apply(k,arguments):!1}; tM7=function(W){var Y=g.CQ();if(Y)if(Y.clear(W),W)MMv(W);else for(var k in lu)MMv(k)}; g.CQ=function(){return g.V0.ytPubsubPubsubInstance}; MMv=function(W){lu[W]&&(W=lu[W],g.xh(W,function(Y){LQ[Y]&&delete LQ[Y]}),W.length=0)}; g.fQ=function(W,Y,k){qQ0(W,Y,k===void 0?null:k)}; qQ0=function(W,Y,k){k=k===void 0?null:k;var P=RVV(typeof W==="string"?W:W.toString()),T=document.getElementById(P),I=T&&m$V(T),X=T&&!I;I?Y&&Y():(Y&&(I=g.bu(P,Y),Y=""+g.jw(Y),HIV[Y]=I),X||(T=nK6(W,P,function(){m$V(T)||(d$V(T),g.x4(P),g.Ii(function(){tM7(P)},0))},k)))}; nK6=function(W,Y,k,P){P=P===void 0?null:P;var T=g.um("SCRIPT");T.id=Y;T.onload=function(){k&&setTimeout(k,0)}; T.onreadystatechange=function(){switch(T.readyState){case "loaded":case "complete":T.onload()}}; P&&T.setAttribute("nonce",P);g.Rp(T,typeof W==="string"?g.tr(W):W);W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(T,W.firstChild);return T}; RVV=function(W){var Y=document.createElement("a");g.Se(Y,W);W=Y.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+dE(W)}; Yj=function(W,Y){if(W===Y)W=!0;else if(Array.isArray(W)&&Array.isArray(Y))W=g.bQ(W,Y,Yj);else if(g.Pp(W)&&g.Pp(Y))a:if(g.Tm(W).length!=g.Tm(Y).length)W=!1;else{for(var k in W)if(!Yj(W[k],Y[k])){W=!1;break a}W=!0}else W=!1;return W}; TN=function(W){var Y=g.y0.apply(1,arguments);if(!kj(W)||Y.some(function(P){return!kj(P)}))throw Error("Only objects may be merged."); Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next())PA(W,k.value)}; PA=function(W,Y){for(var k in Y)if(kj(Y[k])){if(k in W&&!kj(W[k]))throw Error("Cannot merge an object into a non-object.");k in W||(W[k]={});PA(W[k],Y[k])}else if(jK(Y[k])){if(k in W&&!jK(W[k]))throw Error("Cannot merge an array into a non-array.");k in W||(W[k]=[]);pD0(W[k],Y[k])}else W[k]=Y[k];return W}; pD0=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next())k=k.value,kj(k)?W.push(PA({},k)):jK(k)?W.push(pD0([],k)):W.push(k);return W}; kj=function(W){return typeof W==="object"&&!Array.isArray(W)}; jK=function(W){return typeof W==="object"&&Array.isArray(W)}; IB=function(W){g.e.call(this);this.K=W}; XT=function(W){IB.call(this,!0);this.W=W}; SK=function(W,Y){g.e.call(this);var k=this;this.J=[];this.G=!1;this.K=0;this.C=this.X=this.T=!1;this.A5=null;var P=(0,g.Xz)(W,Y);this.W=new g.C_(function(){return P(k.A5)},300); g.v(this,this.W);this.N=this.L=Infinity}; Gsz=function(W,Y){if(!Y)return!1;for(var k=0;k-1)throw Error("Deps cycle for: "+Y);if(W.K.has(Y))return W.K.get(Y);if(!W.W.has(Y)){if(P)return;throw Error("No provider for: "+Y);}P=W.W.get(Y);k.push(Y);if(P.jE!==void 0)var T=P.jE;else if(P.tsS)T=P[na]?shd(W,P[na],k):[],T=P.tsS.apply(P,g.ZX(T));else if(P.Uu){T=P.Uu;var I=T[na]?shd(W,T[na],k):[];T=new (Function.prototype.bind.apply(T,[null].concat(g.ZX(I))))}else throw Error("Could not resolve providers for: "+Y);k.pop();P.e9g||W.K.set(Y,T); return T}; shd=function(W,Y,k){return Y?Y.map(function(P){return P instanceof ql?pa(W,P.key,k,!0):pa(W,P,k)}):[]}; Ka=function(){GN||(GN=new Jr2);return GN}; Ar1=function(){var W=rrd;return function(){var Y=Ka();Y.resolve(RB(W))||HA(Y,{R0:W,Uu:W});return Y.resolve(W)}}; JI=function(){var W,Y;return"h5vcc"in EY&&((W=EY.h5vcc.traceEvent)==null?0:W.traceBegin)&&((Y=EY.h5vcc.traceEvent)==null?0:Y.traceEnd)?1:"performance"in EY&&EY.performance.mark&&EY.performance.measure?2:0}; sY=function(W){var Y=JI();switch(Y){case 1:EY.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:EY.performance.mark(W+"-start");break;case 0:break;default:hQ(Y,"unknown trace type")}}; zV6=function(W){var Y=JI();switch(Y){case 1:EY.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:Y=W+"-start";var k=W+"-end";EY.performance.mark(k);EY.performance.measure(W,Y,k);break;case 0:break;default:hQ(Y,"unknown trace type")}}; dCd=function(W){var Y,k;(k=(Y=window).onerror)==null||k.call(Y,W.message,"",0,0,W)}; mC6=function(W){var Y=this;var k=k===void 0?0:k;var P=P===void 0?g.Us():P;this.J=k;this.scheduler=P;this.K=new g.Xd;this.W=W;for(W={GB:0};W.GB=1E3?T():P>=W?Nl||(Nl=aB(function(){T();Nl=void 0},0)):I-h>=10&&(fEV(Y,k.tier),X.T=I)}; UCC=function(W,Y){if(W.endpoint==="log_event"){g.Oi("more_accurate_gel_parser")&&Ca().storePayload({isJspb:!1},W.payload);UY(W);var k=l$(W),P=new Map;P.set(k,[W.payload]);var T=vK1(W.payload)||"";Y&&(fa=new Y);return new g.EJ(function(I,X){fa&&fa.isReady()?VMF(P,fa,I,X,{bypassNetworkless:!0},!0,cA(T)):I()})}}; cr7=function(W,Y,k){if(Y.endpoint==="log_event"){UY(void 0,Y);var P=l$(Y,!0),T=new Map;T.set(P,[v7(Y.payload)]);k&&(fa=new k);return new g.EJ(function(I){fa&&fa.isReady()?NFz(T,fa,I,{bypassNetworkless:!0},!0,cA(W)):I()})}}; l$=function(W,Y){var k="";if(W.dangerousLogToVisitorSession)k="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(Y===void 0?0:Y){Y=W.cttAuthInfo.token;k=W.cttAuthInfo;var P=new wF;k.videoId?P.setVideoId(k.videoId):k.playlistId&&ux(P,2,WJ,Ep(k.playlistId));Yx[Y]=P}else Y=W.cttAuthInfo,k={},Y.videoId?k.videoId=Y.videoId:Y.playlistId&&(k.playlistId=Y.playlistId),$x[W.cttAuthInfo.token]=k;k=W.cttAuthInfo.token}return k}; xj=function(W,Y,k){W=W===void 0?{}:W;Y=Y===void 0?!1:Y;new g.EJ(function(P,T){var I=Vr(Y,k),X=I.J;I.J=!1;kx(I.K);kx(I.W);I.W=0;fa&&fa.isReady()?k===void 0&&g.Oi("enable_web_tiered_gel")?aE2(P,T,W,Y,300,X):aE2(P,T,W,Y,k,X):(fEV(Y,k),P())})}; aE2=function(W,Y,k,P,T,I){var X=fa;k=k===void 0?{}:k;P=P===void 0?!1:P;T=T===void 0?200:T;I=I===void 0?!1:I;var h=new Map,B=new Map,O={isJspb:P,cttAuthInfo:void 0,tier:T},u={isJspb:P,cttAuthInfo:void 0};if(P){Y=g.p(Object.keys(b$));for(T=Y.next();!T.done;T=Y.next())T=T.value,B=g.Oi("enable_web_tiered_gel")?Ca().smartExtractMatchingEntries({keys:[O,u],sizeLimit:1E3}):Ca().extractMatchingEntries({isJspb:!0,cttAuthInfo:T}),B.length>0&&h.set(T,B),(g.Oi("web_fp_via_jspb_and_json")&&k.writeThenSend||!g.Oi("web_fp_via_jspb_and_json"))&& delete b$[T];NFz(h,X,W,k,!1,I)}else{h=g.p(Object.keys(b$));for(O=h.next();!O.done;O=h.next())O=O.value,u=g.Oi("enable_web_tiered_gel")?Ca().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:O,tier:T},{isJspb:!1,cttAuthInfo:O}],sizeLimit:1E3}):Ca().extractMatchingEntries({isJspb:!1,cttAuthInfo:O}),u.length>0&&B.set(O,u),(g.Oi("web_fp_via_jspb_and_json")&&k.writeThenSend||!g.Oi("web_fp_via_jspb_and_json"))&&delete b$[O];VMF(B,X,W,Y,k,!1,I)}}; fEV=function(W,Y){function k(){xj({writeThenSend:!0},W,Y)} W=W===void 0?!1:W;Y=Y===void 0?200:Y;var P=Vr(W,Y),T=P===WfV||P===Yi0?5E3:$K5;g.Oi("web_gel_timeout_cap")&&!P.W&&(T=aB(function(){k()},T),P.W=T); kx(P.K);T=g.eM("LOGGING_BATCH_TIMEOUT",g.uw("web_gel_debounce_ms",1E4));g.Oi("shorten_initial_gel_batch_timeout")&&PJ&&(T=k5d);T=aB(function(){g.uw("gel_min_batch_size")>0?Ca().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:Y})>=PwF&&k():k()},T); P.K=T}; VMF=function(W,Y,k,P,T,I,X){T=T===void 0?{}:T;var h=Math.round((0,g.q5)()),B=W.size,O=Tn6(X);W=g.p(W);var u=W.next();for(X={};!u.done;X={XS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,YW:void 0,QJ:void 0},u=W.next()){var Z=g.p(u.value);u=Z.next().value;Z=Z.next().value;X.batchRequest=g.MS({context:g.Pw(Y.config_||g.k4())});if(!g.kh(Z)&&!g.Oi("throw_err_when_logevent_malformed_killswitch")){P();break}X.batchRequest.events=Z;(Z=$x[u])&&jiz(X.batchRequest,u,Z);delete $x[u];X.dangerousLogToVisitorSession= u==="visitorOnlyApprovedKey";IJz(X.batchRequest,h,X.dangerousLogToVisitorSession);Xyz(T);X.YW=function(M){g.Oi("start_client_gcf")&&g.Dx.r_(function(){return g.D(function(t){return g.m(t,Si7(M),0)})}); B--;B||k()}; X.XS=0;X.QJ=function(M){return function(){M.XS++;if(T.bypassNetworkless&&M.XS===1)try{g.vw(Y,O,M.batchRequest,TH({writeThenSend:!0},M.dangerousLogToVisitorSession,M.YW,M.QJ,I)),PJ=!1}catch(t){g.CI(t),P()}B--;B||k()}}(X); try{g.vw(Y,O,X.batchRequest,TH(T,X.dangerousLogToVisitorSession,X.YW,X.QJ,I)),PJ=!1}catch(M){g.CI(M),P()}}}; NFz=function(W,Y,k,P,T,I){P=P===void 0?{}:P;var X=Math.round((0,g.q5)()),h={value:W.size},B=new Map([].concat(g.ZX(W)));B=g.p(B);for(var O=B.next();!O.done;O=B.next()){var u=g.p(O.value).next().value,Z=W.get(u);O=new yU1;var M=Y.config_||g.k4(),t=new rF,q=new nI;gl(q,1,M.Op);gl(q,2,M.nJ);wl(q,16,M.Pv);gl(q,17,M.innertubeContextClientVersion);if(M.Ju){var G=M.Ju,J=new Rh;G.coldConfigData&&gl(J,1,G.coldConfigData);G.appInstallData&&gl(J,6,G.appInstallData);G.coldHashData&&gl(J,3,G.coldHashData);G.hotHashData&& J.SD(G.hotHashData);KF(q,Rh,62,J)}(G=g.V0.devicePixelRatio)&&G!=1&&Ws(q,65,Sn(G));G=ZJ();G!==""&&gl(q,54,G);G=iw();if(G.length>0){J=new KI;for(var d=0;d65535&&(W=1);ym("BATCH_CLIENT_COUNTER",W);return W}; jiz=function(W,Y,k){if(k.videoId)var P="VIDEO";else if(k.playlistId)P="PLAYLIST";else return;W.credentialTransferTokenTargetId=k;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:Y,scope:P}]}; UY=function(W,Y){var k=g.Wp("yt.logging.transport.enableScrapingForTest"),P=By("il_payload_scraping");P=(P!==void 0?String(P):"")==="enable_il_payload_scraping";if(!k)if(P)Xe=[],g.N6("yt.logging.transport.enableScrapingForTest",!0),g.N6("yt.logging.transport.scrapedPayloadsForTesting",Xe),g.N6("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.N6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.N6("yt.logging.transport.scrapeClientEvent",!0);else return;k=g.Wp("yt.logging.transport.scrapedPayloadsForTesting");P=g.Wp("yt.logging.transport.payloadToScrape");Y&&(Y=Y.payload,(Y=g.Wp("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Y)())&&k.push(Y));Y=g.Wp("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var T=0;T0&&zE1(W,Y,I)}else zE1(W,Y)}; zE1=function(W,Y,k){W=dK1(W);Y=Y?g.ih(Y):"";k=k||5;cy()&&g.si(W,Y,k)}; dK1=function(W){for(var Y=g.p(mKS),k=Y.next();!k.done;k=Y.next())W=pk(W,k.value);return"ST-"+dE(W).toString(36)}; DK0=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("-extension://")||W.includes("webkit-masked-url://")}; gGv=function(W){if(!W.stack)return!0;var Y=!W.stack.includes("\n");return Y&&W.stack.includes("ErrorType: ")||Y&&W.stack.includes("Anonymous function (Unknown script")||W.stack.toLowerCase()==="not available"||W.fileName==="user-script"||W.fileName.startsWith("user-script:")?!0:!1}; Ffd=function(){this.pC=[];this.rO=[]}; Rs=function(){if(!qR){var W=qR=new Ffd;W.rO.length=0;W.pC.length=0;wy7(W,Qi5)}return qR}; wy7=function(W,Y){Y.rO&&W.rO.push.apply(W.rO,Y.rO);Y.pC&&W.pC.push.apply(W.pC,Y.pC)}; yB0=function(W){function Y(){return W.charCodeAt(P++)} var k=W.length,P=0;do{var T=HJ(Y);if(T===Infinity)break;var I=T>>3;switch(T&7){case 0:T=HJ(Y);if(I===2)return T;break;case 1:if(I===2)return;P+=8;break;case 2:T=HJ(Y);if(I===2)return W.substr(P,T);P+=T;break;case 5:if(I===2)return;P+=4;break;default:return}}while(P500));P++);P=T}else if(typeof W==="object")for(T in W){if(W[T]){var I=T;var X=W[T],h=Y,B=k;I=typeof X!=="string"||I!=="clickTrackingParams"&&I!=="trackingParams"?0:(X=yB0(atob(X.replace(/-/g,"+").replace(/_/g,"/"))))?nx(I+".ve",X,h,B):0;P+=I;P+=nx(T,W[T],Y,k);if(P>500)break}}else k[Y]=px(W),P+=k[Y].length;else k[Y]=px(W),P+=k[Y].length;return P}; nx=function(W,Y,k,P){k+="."+W;W=px(Y);P[k]=W;return k.length+W.length}; px=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(Y){return"unable to serialize "+typeof W+" ("+Y.message+")"}}; ak=function(W){g.GH(W)}; g.Kx=function(W){g.GH(W,"WARNING")}; g.GH=function(W,Y){var k=k===void 0?{}:k;k.name=g.eM("INNERTUBE_CONTEXT_CLIENT_NAME",1);k.version=g.eM("INNERTUBE_CONTEXT_CLIENT_VERSION");Y=Y===void 0?"ERROR":Y;var P=!1;Y=Y===void 0?"ERROR":Y;P=P===void 0?!1:P;if(W){W.hasOwnProperty("level")&&W.level&&(Y=W.level);if(g.Oi("console_log_js_exceptions")){var T=[];T.push("Name: "+W.name);T.push("Message: "+W.message);W.hasOwnProperty("params")&&T.push("Error Params: "+JSON.stringify(W.params));W.hasOwnProperty("args")&&T.push("Error args: "+JSON.stringify(W.args)); T.push("File name: "+W.fileName);T.push("Stacktrace: "+W.stack);window.console.log(T.join("\n"),W)}if(!(oG2>=5)){T=[];for(var I=g.p(vGz),X=I.next();!X.done;X=I.next()){X=X.value;try{X()&&T.push(X())}catch(G){}}T=[].concat(g.ZX(Cwz),g.ZX(T));var h=TBF(W);I=h.message||"Unknown Error";X=h.name||"UnknownError";var B=h.stack||W.K||"Not available";if(B.startsWith(X+": "+I)){var O=B.split("\n");O.shift();B=O.join("\n")}O=h.lineNumber||"Not available";h=h.fileName||"Not available";var u=0;if(W.hasOwnProperty("args")&& W.args&&W.args.length)for(var Z=0;Z=500);Z++);else if(W.hasOwnProperty("params")&&W.params){var M=W.params;if(typeof W.params==="object")for(Z in M){if(M[Z]){var t="params."+Z,q=px(M[Z]);k[t]=q;u+=t.length+q.length;if(u>500)break}}else k.params=px(M)}if(T.length)for(Z=0;Z=500);Z++);navigator.vendor&&!k.hasOwnProperty("vendor")&&(k["device.vendor"]=navigator.vendor);k={message:I,name:X,lineNumber:O, fileName:h,stack:B,params:k,sampleWeight:1};Z=Number(W.columnNumber);isNaN(Z)||(k.lineNumber=k.lineNumber+":"+Z);if(W.level==="IGNORED")W=0;else a:{W=Rs();Z=g.p(W.rO);for(T=Z.next();!T.done;T=Z.next())if(T=T.value,k.message&&k.message.match(T.Vx)){W=T.weight;break a}W=g.p(W.pC);for(Z=W.next();!Z.done;Z=W.next())if(Z=Z.value,Z.callback(k)){W=Z.weight;break a}W=1}k.sampleWeight=W;W=g.p(LfF);for(Z=W.next();!Z.done;Z=W.next())if(Z=Z.value,Z.rW[k.name])for(I=g.p(Z.rW[k.name]),T=I.next();!T.done;T=I.next())if(X= T.value,T=k.message.match(X.bY)){k.params["params.error.original"]=T[0];I=X.groups;X={};for(O=0;O1E3&&g.Kx(new g.Qq("IL Attach cache exceeded limit"))}h= Q4(k,Y);mS.has(h)?y4(k,Y):gj.set(h,!0)}}P=P.filter(function(u){u.csn!==Y?(u.csn=Y,u=!0):u=!1;return u}); k={csn:Y,parentVe:k.getAsJson(),childVes:g.tx(P,function(u){return u.getAsJson()})}; Y==="UNDEFINED_CSN"?eY("visualElementAttached",I,k):W?hh("visualElementAttached",k,W,I):g.W8("visualElementAttached",k,I)}; TDX=function(W,Y,k,P,T){os(k,Y);P=dj({cttAuthInfo:MR(Y)||void 0},Y);k={csn:Y,ve:k.getAsJson(),eventType:1};T&&(k.clientData=T);Y==="UNDEFINED_CSN"?eY("visualElementShown",P,k):W?hh("visualElementShown",k,W,P):g.W8("visualElementShown",k,P)}; jk7=function(W,Y,k,P){var T=(P=P===void 0?!1:P)?16:8;P=dj({cttAuthInfo:MR(Y)||void 0,endOfSequence:P},Y);k={csn:Y,ve:k.getAsJson(),eventType:T};Y==="UNDEFINED_CSN"?eY("visualElementHidden",P,k):W?hh("visualElementHidden",k,W,P):g.W8("visualElementHidden",k,P)}; vJ=function(W,Y,k,P,T){IV2(W,Y,k,void 0,P,T)}; IV2=function(W,Y,k,P,T){os(k,Y);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var I=dj({cttAuthInfo:MR(Y)||void 0},Y);k={csn:Y,ve:k.getAsJson(),gestureType:P};T&&(k.clientData=T);Y==="UNDEFINED_CSN"?eY("visualElementGestured",I,k):W?hh("visualElementGestured",k,W,I):g.W8("visualElementGestured",k,I)}; XO1=function(){var W=BA(16);for(var Y=[],k=0;k0&&k.push(g.um("BR"));k.push(g.Z5(I))}):k.push(g.Z5(P))}return k}; $Z=function(W,Y,k,P){if(k==="child"){g.MB(Y);var T;P===void 0?T=void 0:T=!Array.isArray(P)||P&&typeof P.S==="string"?[P]:P;k=hBV(W,T);k=g.p(k);for(W=k.next();!W.done;W=k.next())Y.appendChild(W.value)}else k==="style"?g.CX(Y,"cssText",P?P:""):P===null||P===void 0?Y.removeAttribute(k):(W=P.toString(),k==="href"&&(W=g.k$(g.je(W))),Y.setAttribute(k,W))}; g.l=function(W){g.WM.call(this,W);this.v7=!0;this.L=!1;this.listeners=[]}; g.kZ=function(W){g.l.call(this,W);this.rD=new g.NR;g.v(this,this.rD)}; PM=function(W,Y,k,P,T,I,X){X=X===void 0?null:X;g.kZ.call(this,Y);this.api=W;this.macros={};this.componentType=k;this.X=this.G=null;this.Lg=X;this.layoutId=P;this.interactionLoggingClientData=T;this.B6=I;this.V5=null;this.TI=new XT(this.element);g.v(this,this.TI);this.e1=this.Z(this.element,"click",this.onClick);this.gD=[];this.wD=new SK(this.onClick,this);g.v(this,this.wD);this.A9=!1;this.OP=this.A5=null}; Ty=function(W,Y){W=W===void 0?null:W;Y=Y===void 0?null:Y;if(W==null)return g.Kx(Error("Got null or undefined adText object")),"";var k=g.z6(W.text);if(!W.isTemplated)return k;if(Y==null)return g.Kx(Error("Missing required parameters for a templated message")),k;W=g.p(Object.entries(Y));for(Y=W.next();!Y.done;Y=W.next()){var P=g.p(Y.value);Y=P.next().value;P=P.next().value;k=k.replace("{"+Y+"}",P)}return k}; BD0=function(W){W=W===void 0?null:W;return W!=null&&(W=W.thumbnail,W!=null&&W.thumbnails!=null&&W.thumbnails.length!=0&&W.thumbnails[0].url!=null)?g.z6(W.thumbnails[0].url):""}; Oe6=function(W){W=W===void 0?null:W;return W!=null&&(W=W.thumbnail,W!=null&&W.thumbnails!=null&&W.thumbnails.length!=0&&W.thumbnails[0].width!=null&&W.thumbnails[0].height!=null)?new g.UF(W.thumbnails[0].width||0,W.thumbnails[0].height||0):new g.UF(0,0)}; g.jy=function(W){if(W.simpleText)return W.simpleText;if(W.runs){var Y=[];W=g.p(W.runs);for(var k=W.next();!k.done;k=W.next())k=k.value,k.text&&Y.push(k.text);return Y.join("")}return""}; g.Ia=function(W){if(W.simpleText)return W=document.createTextNode(W.simpleText),W;var Y=[];if(W.runs)for(var k=0;k1){for(var Y=[W[0]],k=1;k0&&(this.W=new g.C_(this.sz,Y,this),g.v(this,this.W));this.C=new g.C_(this.sz,k,this);g.v(this,this.C);this.L=rWV(this.K,T,1,P);g.v(this,this.L);this.G=rWV(this.K,0,P,1);g.v(this,this.G);this.T=new Rk;g.v(this,this.T)}; WP=function(W,Y,k){this.K=W;this.isAsync=Y;this.W=k}; kXd=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:hQ(W,"unknown result type")}}; PNz=function(W,Y){var k=1;W.isTrusted===!1&&(k=0);ym("ISDSTAT",k);Ym(k,"i.s_",{triggerContext:"sk",metadata:Y});return k}; Te1=function(W,Y){var k=[];Y?Y.isTrusted===!0?k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):Y.isTrusted===!1?k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):k.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Ym(0,"a.s_",{metadata:W,states:k});ym("ASDSTAT",0)}; Ym=function(W,Y,k){Y=jy1[Y];var P,T,I={detected:W===0,source:""+Y.K+((P=k.triggerContext)!=null?P:"")+((T=k.uH)!=null?T:""),detectionStates:k.states,durationMs:k.gR};k.metadata&&(I.contentCpn=k.metadata.contentCpn,I.adCpn=k.metadata.adCpn);g.W8("biscottiBasedDetection",I);Y.W!==void 0&&(k=Number(g.eM("CATSTAT",0)),Y.W!==void 0?(Y=Y.W,W=kXd(W),W=k&~(3<0}; hd=function(W,Y,k,P,T,I){UZ.call(this,W,{S:"div",j:"ytp-ad-skip-button-slot"},"skip-button",Y,k,P,T);var X=this;this.Kg=null;this.TJ=!1;this.GJ=I;this.C=this.api.V().experiments.Nq("enable_modern_skip_button_on_web");this.Q5=!1;this.T=new g.kZ({S:"span",Ya:["ytp-ad-skip-button-container"]});this.C&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");g.v(this,this.T);this.T.S1(this.element);this.K=this.J=null;this.bz=new g.cM(this.T,500,!1,100,function(){return X.hide()}); g.v(this,this.bz);this.UP=new aa(this.T.element,15E3,5E3,.5,.5,this.C);g.v(this,this.UP);this.hide()}; X85=function(W){W=W.Kg&&W.Kg.adRendererCommands;return(W&&W.clickCommand&&g.U(W.clickCommand,g.BP)&&g.U(W.clickCommand,g.BP).commands||[]).some(function(Y){return Y.adLifecycleCommand?IS5(Y.adLifecycleCommand):!1})}; IS5=function(W){return W.action==="END_LINEAR_AD"||W.action==="END_LINEAR_AD_PLACEMENT"}; OI=function(W,Y,k,P,T,I){UZ.call(this,W,{S:"div",j:"ytp-ad-skip-ad-slot"},"skip-ad",Y,k,P,T);this.Kg=I;this.T=!1;this.C=0;this.J=this.K=null;this.hide()}; SPS=function(W,Y){W.T||(W.T=!0,W.K&&(Y?W.K.Kg.hide():W.K.hide()),Y?(W=W.J,W.bz.show(),W.show()):W.J.show())}; uo=function(W,Y,k,P){EZ.call(this,W,Y,k,P,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; ZO=function(W,Y,k,P,T,I,X){I=I===void 0?!1:I;X=X===void 0?!1:X;PM.call(this,W,{S:"span",j:"ytp-ad-simple-ad-badge"},"simple-ad-badge",Y,k,P);this.J=T;this.W=this.J5("ytp-ad-simple-ad-badge");(this.K=I)&&this.W.classList.add("ytp-ad-simple-ad-badge--clean-player");X&&this.W.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; io=function(W,Y,k,P,T){T=T===void 0?!1:T;V4.call(this,"player-overlay",W,{},Y,P);this.videoAdDurationSeconds=k;this.interactionLoggingClientData=P;this.aF=T}; My=function(W,Y){g.NR.call(this);this.api=W;this.durationMs=Y;this.W=null;this.handler=new Rk(this);g.v(this,this.handler);this.K=hb0;this.handler.Z(this.api,"presentingplayerstatechange",this.zQ);this.W=this.handler.Z(this.api,"onAdPlaybackProgress",this.Xi)}; td=function(W){g.NR.call(this);this.W=!1;this.oB=0;this.handler=new Rk(this);g.v(this,this.handler);this.durationMs=W;this.timer=new g.mQ(100);g.v(this,this.timer);this.handler.Z(this.timer,"tick",this.Xi);this.K={seekableStart:0,seekableEnd:W/1E3,current:0};this.start()}; g.qy=function(W,Y){var k=Math.abs(Math.floor(W)),P=Math.floor(k/86400),T=Math.floor(k%86400/3600),I=Math.floor(k%3600/60);k=Math.floor(k%60);if(Y){Y="";P>0&&(Y+=" "+P+" d\u00edas");if(P>0||T>0)Y+=" "+T+" horas";Y+=" "+I+" minutos";Y+=" "+k+" segundos";P=Y.trim()}else{Y="";P>0&&(Y+=P+":",T<10&&(Y+="0"));if(P>0||T>0)Y+=T+":",I<10&&(Y+="0");Y+=I+":";k<10&&(Y+="0");P=Y+k}return W>=0?P:"-"+P}; g.Rb=function(W){return(!("button"in W)||typeof W.button!=="number"||W.button===0)&&!("shiftKey"in W&&W.shiftKey)&&!("altKey"in W&&W.altKey)&&!("metaKey"in W&&W.metaKey)&&!("ctrlKey"in W&&W.ctrlKey)}; HP=function(W,Y,k,P,T,I,X){UZ.call(this,W,{S:"span",j:X?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",Y,k,P,T);this.videoAdDurationSeconds=I;this.K=null;X&&this.api.V().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),yW&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; ni=function(W,Y,k,P){CU.call(this,W,Y,k,P,"ytp-video-ad-top-bar-title","ad-title")}; pi=function(W){this.content=W.content;if(W.commandRuns){W=g.p(W.commandRuns);for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.loggingDirectives=g.U(Y,BeV),Y.onTap&&(this.interaction={onTap:Y.onTap})}}; G4=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ad-simple-attributed-string"},"ad-simple-attributed-string",Y,k,P);this.hide()}; Ki=function(W,Y,k,P,T){PM.call(this,W,{S:"span",j:T?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",Y,k,P);this.K=T;this.adBadgeText=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);this.adBadgeText.S1(this.element);g.v(this,this.adBadgeText);T?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),yW&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; EI=function(W,Y,k,P){PM.call(this,W,{S:"span",j:"ytp-ad-pod-index"},"ad-pod-index",Y,k,P);this.api.V().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),yW&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; Jd=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",Y,k,P);this.hide()}; sI=function(W,Y){this.K=W;this.W=Y}; OJ5=function(W,Y){return W.K+Y*(W.W-W.K)}; rq=function(W,Y,k){return W.W-W.K?g.ee((Y-W.K)/(W.W-W.K),0,1):k!=null?k:Infinity}; Ad=function(W,Y,k,P){P=P===void 0?!1:P;g.kZ.call(this,{S:"div",j:"ytp-ad-persistent-progress-bar-container",B:[{S:"div",j:"ytp-ad-persistent-progress-bar"}]});this.api=W;this.K=Y;this.J=k;P&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.v(this,this.K);this.progressBar=this.J5("ytp-ad-persistent-progress-bar");this.W=-1;this.Z(W,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; z4=function(W,Y,k,P,T,I){PM.call(this,W,{S:"div",j:"ytp-ad-player-overlay",B:[{S:"div",j:"ytp-ad-player-overlay-flyout-cta"},{S:"div",j:"ytp-ad-player-overlay-instream-info"},{S:"div",j:"ytp-ad-player-overlay-skip-or-preview"},{S:"div",j:"ytp-ad-player-overlay-progress-bar"},{S:"div",j:"ytp-ad-player-overlay-instream-user-sentiment"},{S:"div",j:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",Y,k,P);this.N=I;this.C=this.J5("ytp-ad-player-overlay-flyout-cta");this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.W=this.J5("ytp-ad-player-overlay-instream-info");this.T=null;uHS(this)&&(W=Oh("div"),g.a2(W,"ytp-ad-player-overlay-top-bar-gradients"),Y=this.W,Y.parentNode&&Y.parentNode.insertBefore(W,Y),(Y=this.api.getVideoData(2))&&Y.isListed&&Y.title&&(k=new ni(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),k.S1(W),k.init(fx("ad-title"),{text:Y.title},this.macros),g.v(this,k)),this.T=W);this.J=null;this.Fr=this.J5("ytp-ad-player-overlay-skip-or-preview");this.UP=this.J5("ytp-ad-player-overlay-progress-bar"); this.TJ=this.J5("ytp-ad-player-overlay-instream-user-sentiment");this.Kg=this.J5("ytp-ad-player-overlay-ad-disclosure-banner");this.K=T;g.v(this,this.K);this.hide()}; uHS=function(W){W=W.api.V();return g.dq(W)&&W.K}; g.ms=function(W){W&=16777215;var Y=[(W&16711680)>>16,(W&65280)>>8,W&255];W=Y[0];var k=Y[1];Y=Y[2];W=Number(W);k=Number(k);Y=Number(Y);if(W!=(W&255)||k!=(k&255)||Y!=(Y&255))throw Error('"('+W+","+k+","+Y+'") is not a valid RGB color');k=W<<16|k<<8|Y;return W<16?"#"+(16777216|k).toString(16).slice(1):"#"+k.toString(16)}; g.DO=function(){}; iJd=function(W){var Y=new T9;var k=new PI;k=gl(k,1,"botguard");W=gl(k,2,W);this.W=g$V(Y,PI,1,ZJ6,W)}; gq=function(W){this.W=new po(W)}; M56=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(Y){W=!0}return(g.eM("INNERTUBE_CLIENT_NAME")==="WEB"||g.eM("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W}; FR=function(){var W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");ym("LOGIN_INFO","");W&&window.sessionStorage.setItem("from_switch_account","1");W=!0;W=W===void 0?!1:W;var Y,k=t56;k||(k=document.querySelector("#persist_identity"));if(Y=k){var P=Y.src?(new URL(Y.src)).origin:"*";if(W){var T;(T=Y.contentWindow)==null||T.postMessage({action:"clear"},P)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var I=window.sessionStorage.getItem("session_logininfo");if(I){var X;(X=Y.contentWindow)==null||X.postMessage({loginInfo:I},P)}}}}catch(h){}}; wq=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?FR():W.startsWith("https://accounts.google.com/ServiceLogin")?FR():W.startsWith("https://myaccount.google.com")&&g.X0(W).K.endsWith("/youtubeoptions")&&FR());if(g.eM("LOGGED_IN",!0)&&M56()){var Y=g.eM("VALID_SESSION_TEMPDATA_DOMAINS",[]);var k=g.Xl(window.location.href);k&&Y.push(k);k=g.Xl(W);g.n$(Y,k)||!k&&Am(W,"/")?(Y=BQ(W),(Y=erX(Y))?(Y=dK1(Y),Y=(Y=g.rn(Y)||null)?cD(Y):{}):Y=null):Y=null;Y==null&&(Y={});k=Y;var P=void 0; M56()?(P||(P=g.eM("LOGIN_INFO")),P?(k.session_logininfo=P,k=!0):k=!1):k=!1;k&&th(W,Y)}}; g.qP6=function(W){var Y=Y===void 0?{}:Y;var k=k===void 0?"":k;var P=P===void 0?window:P;W=g.MH(W,Y);wq(W);k=g.je(W+k);P=P.location;k=Ip(k);k!==void 0&&(P.href=k)}; g.QK=function(W,Y,k){Y=Y===void 0?{}:Y;k=k===void 0?!1:k;var P=g.eM("EVENT_ID");P&&(Y.ei||(Y.ei=P));Y&&th(W,Y);k||(wq(W),g.qP6(W))}; g.yK=function(W,Y,k,P,T){T=T===void 0?!1:T;k&&th(W,k);k=g.je(W);var I=g.k$(k);W!=I&&UQ(Error("Unsafe window.open URL: "+W));W=I;Y=Y||dE(W).toString(36);try{if(T)return T=W,T=IES(T),wq(T),g.ZY(window,T,Y,"attributionsrc")}catch(X){g.CI(X)}wq(W);return g.ZY(window,k,Y,P)}; RbF=function(W){ea=W}; HJd=function(W){ob=W}; nuX=function(W){vP=W}; GXz=function(){p82=vP=ob=ea=null}; EuC=function(){var W=W===void 0?window.location.href:W;if(g.Oi("kevlar_disable_theme_param"))return null;var Y=S7(W);if(g.Oi("enable_dark_theme_only_on_shorts")&&Y!=null&&Y.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var k=g.fI(W).theme;return Kd5.get(k)||null}catch(P){}return null}; Ci=function(){this.W={};if(this.K=ZM0()){var W=g.rn("CONSISTENCY");W&&Jj5(this,{encryptedTokenJarContents:W})}}; Jj5=function(W,Y){if(Y.encryptedTokenJarContents&&(W.W[Y.encryptedTokenJarContents]=Y,typeof Y.expirationSeconds==="string")){var k=Number(Y.expirationSeconds);setTimeout(function(){delete W.W[Y.encryptedTokenJarContents]},k*1E3); W.K&&g.si("CONSISTENCY",Y.encryptedTokenJarContents,k,void 0,!0)}}; UI=function(){this.K=-1;var W=g.eM("LOCATION_PLAYABILITY_TOKEN");g.eM("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Li(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.W=void 0)}; Li=function(W){return W.localStorage===void 0?new cO("yt-client-location"):W.localStorage}; g.lo=function(W,Y,k){Y=Y===void 0?!1:Y;k=k===void 0?!1:k;var P=g.eM("INNERTUBE_CONTEXT");if(!P)return g.GH(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};P=g.MS(P);g.Oi("web_no_tracking_params_in_shell_killswitch")||delete P.clickTracking;P.client||(P.client={});var T=P.client;T.clientName==="MWEB"&&T.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(T.clientFormFactor=g.eM("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");T.screenWidthPoints=window.innerWidth;T.screenHeightPoints= window.innerHeight;T.screenPixelDensity=Math.round(window.devicePixelRatio||1);T.screenDensityFloat=window.devicePixelRatio||1;T.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var I=I===void 0?!1:I;var X=g.mr(),h="USER_INTERFACE_THEME_LIGHT";X.Ik(165)?h="USER_INTERFACE_THEME_DARK":X.Ik(174)?h="USER_INTERFACE_THEME_LIGHT":!g.Oi("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (h="USER_INTERFACE_THEME_DARK");I=I?h:EuC()||h;T.userInterfaceTheme=I;if(!Y){if(I=WY7())T.connectionType=I;g.Oi("web_log_effective_connection_type")&&(I=$av())&&(P.client.effectiveConnectionType=I)}var B;if(g.Oi("web_log_memory_total_kbytes")&&((B=g.V0.navigator)==null?0:B.deviceMemory)){var O;B=(O=g.V0.navigator)==null?void 0:O.deviceMemory;P.client.memoryTotalKbytes=""+B*1E6}g.Oi("web_gcf_hashes_innertube")&&(I=SrV())&&(O=I.coldConfigData,B=I.coldHashData,I=I.hotHashData,P.client.configInfo=P.client.configInfo|| {},O&&(P.client.configInfo.coldConfigData=O),B&&(P.client.configInfo.coldHashData=B),I&&(P.client.configInfo.hotHashData=I));O=g.fI(g.V0.location.href);!g.Oi("web_populate_internal_geo_killswitch")&&O.internalcountrycode&&(T.internalGeo=O.internalcountrycode);T.clientName==="MWEB"||T.clientName==="WEB"?(T.mainAppWebInfo||(T.mainAppWebInfo={}),T.mainAppWebInfo.graftUrl=g.V0.location.href,g.Oi("kevlar_woffle")&&bMv.instance&&(O=bMv.instance,T.mainAppWebInfo.pwaInstallabilityStatus=!O.W&&O.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),T.mainAppWebInfo.webDisplayMode=Al(),T.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):T.clientName==="TVHTML5"&&(!g.Oi("web_lr_app_quality_killswitch")&&(O=g.eM("LIVING_ROOM_APP_QUALITY"))&&(T.tvAppInfo=Object.assign(T.tvAppInfo||{},{appQuality:O})),O=g.eM("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(T.tvAppInfo=Object.assign(T.tvAppInfo||{},{certificationScope:O}));if(!g.Oi("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var u=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(L){}u=void 0}u&&(T.timeZone=u)}(u=ZJ())?T.experimentsToken=u:delete T.experimentsToken;u=iw();Ci.instance||(Ci.instance=new Ci);P.request=Object.assign({},P.request,{internalExperimentFlags:u,consistencyTokenJars:Pk(Ci.instance.W)});!g.Oi("web_prequest_context_killswitch")&&(u=g.eM("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(P.request.externalPrequestContext=u);T=g.mr();u=T.Ik(58);T=T.get("gsml","");P.user=Object.assign({}, P.user);u&&(P.user.enableSafetyMode=u);T&&(P.user.lockedSafetyMode=!0);g.Oi("warm_op_csn_cleanup")?k&&(Y=g.iD())&&(P.clientScreenNonce=Y):!Y&&(Y=g.iD())&&(P.clientScreenNonce=Y);W&&(P.clickTracking={clickTrackingParams:W});if(W=g.Wp("yt.mdx.remote.remoteClient_"))P.remoteClient=W;UI.getInstance().setLocationOnInnerTubeContext(P);try{var Z=Py(),M=Z.bid;delete Z.bid;P.adSignalsInfo={params:[],bid:M};for(var t=g.p(Object.entries(Z)),q=t.next();!q.done;q=t.next()){var G=g.p(q.value),J=G.next().value, d=G.next().value;Z=J;M=d;W=void 0;(W=P.adSignalsInfo.params)==null||W.push({key:Z,value:""+M})}var A,F;if(((A=P.client)==null?void 0:A.clientName)==="TVHTML5"||((F=P.client)==null?void 0:F.clientName)==="TVHTML5_UNPLUGGED"){var y=g.eM("INNERTUBE_CONTEXT");y.adSignalsInfo&&(P.adSignalsInfo.advertisingId=y.adSignalsInfo.advertisingId,P.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",P.adSignalsInfo.limitAdTracking=y.adSignalsInfo.limitAdTracking)}}catch(L){g.GH(L)}return P}; AjS=function(W,Y){if(!W)return!1;var k,P=(k=g.U(W,syv))==null?void 0:k.signal;if(P&&Y.Jp)return!!Y.Jp[P];var T;if((k=(T=g.U(W,rj0))==null?void 0:T.request)&&Y.Sc)return!!Y.Sc[k];for(var I in W)if(Y.iI[I])return!0;return!1}; zbv=function(W){var Y={"Content-Type":"application/json"};g.eM("EOM_VISITOR_DATA")?Y["X-Goog-EOM-Visitor-Id"]=g.eM("EOM_VISITOR_DATA"):g.eM("VISITOR_DATA")&&(Y["X-Goog-Visitor-Id"]=g.eM("VISITOR_DATA"));Y["X-Youtube-Bootstrap-Logged-In"]=g.eM("LOGGED_IN",!1);g.eM("DEBUG_SETTINGS_METADATA")&&(Y["X-Debug-Settings-Metadata"]=g.eM("DEBUG_SETTINGS_METADATA"));W!=="cors"&&((W=g.eM("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Y["X-Youtube-Client-Name"]=W),(W=g.eM("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Y["X-Youtube-Client-Version"]= W),(W=g.eM("CHROME_CONNECTED_HEADER"))&&(Y["X-Youtube-Chrome-Connected"]=W),(W=g.eM("DOMAIN_ADMIN_STATE"))&&(Y["X-Youtube-Domain-Admin-State"]=W),g.eM("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=g.eM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Y["X-YouTube-Lava-Device-Context"]=W));return Y}; d52=function(){this.W={}}; bo=function(){this.mappings=new d52}; cP=function(W){return function(){return new W}}; D5z=function(W){var Y=Y===void 0?"UNKNOWN_INTERFACE":Y;if(W.length===1)return W[0];var k=m50[Y];if(k){k=new RegExp(k);for(var P=g.p(W),T=P.next();!T.done;T=P.next())if(T=T.value,k.exec(T))return T}var I=[];Object.entries(m50).forEach(function(X){var h=g.p(X);X=h.next().value;h=h.next().value;Y!==X&&I.push(h)}); k=new RegExp(I.join("|"));W.sort(function(X,h){return X.length-h.length}); P=g.p(W);for(T=P.next();!T.done;T=P.next())if(T=T.value,!k.exec(T))return T;return W[0]}; g.xm=function(W){return"/youtubei/v1/"+D5z(W)}; fi=function(){}; VK=function(){}; Ny=function(){}; ab=function(W){return g.Wp("ytcsi."+(W||"")+"data_")||gud(W)}; Fdd=function(){var W=ab();W.info||(W.info={});return W.info}; WE=function(W){W=ab(W);W.metadata||(W.metadata={});return W.metadata}; Yf=function(W){W=ab(W);W.tick||(W.tick={});return W.tick}; $f=function(W){W=ab(W);if(W.gel){var Y=W.gel;Y.gelInfos||(Y.gelInfos={});Y.gelTicks||(Y.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel}; w8d=function(W){W=$f(W);W.gelInfos||(W.gelInfos={});return W.gelInfos}; kf=function(W){var Y=ab(W).nonce;Y||(Y=g.OY(16),ab(W).nonce=Y);return Y}; gud=function(W){var Y={tick:{},info:{}};g.N6("ytcsi."+(W||"")+"data_",Y);return Y}; PE=function(){var W=g.Wp("ytcsi.debug");W||(W=[],g.N6("ytcsi.debug",W),g.N6("ytcsi.reference",{}));return W}; Tw=function(W){W=W||"";var Y=Qyz();if(Y[W])return Y[W];var k=PE(),P={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};k.push(P);return Y[W]=P}; yj0=function(W){W=W||"";var Y=Qyz();Y[W]&&delete Y[W];var k=PE(),P={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};k.push(P);Y[W]=P}; Qyz=function(){var W=g.Wp("ytcsi.reference");if(W)return W;PE();return g.Wp("ytcsi.reference")}; jC=function(W){return ebv[W]||"LATENCY_ACTION_UNKNOWN"}; Il=function(W,Y){jr.call(this,1,arguments);this.timer=Y}; Xn=function(){this.W=0}; SC=function(){Xn.instance||(Xn.instance=new Xn);return Xn.instance}; BE=function(W,Y){hw[Y]=hw[Y]||{count:0};var k=hw[Y];k.count++;k.time=(0,g.q5)();W.W||(W.W=g.Ce(0,function(){var P=(0,g.q5)(),T;for(T in hw)hw[T]&&P-hw[T].time>6E4&&delete hw[T];W&&(W.W=0)},5E3)); return k.count>5?(k.count===6&&Math.random()*1E5<1&&(k=new g.Qq("CSI data exceeded logging limit with key",Y.split("_")),Y.indexOf("plev")>=0||g.Kx(k)),!0):!1}; ou5=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; vuS=function(){var W;if(g.Oi("csi_use_performance_navigation_timing")){var Y,k,P,T=Ok==null?void 0:(W=Ok.getEntriesByType)==null?void 0:(Y=W.call(Ok,"navigation"))==null?void 0:(k=Y[0])==null?void 0:(P=k.toJSON)==null?void 0:P.call(k);T?(T.requestStart=ut(T.requestStart),T.responseEnd=ut(T.responseEnd),T.redirectStart=ut(T.redirectStart),T.redirectEnd=ut(T.redirectEnd),T.domainLookupEnd=ut(T.domainLookupEnd),T.connectStart=ut(T.connectStart),T.connectEnd=ut(T.connectEnd),T.responseStart=ut(T.responseStart), T.secureConnectionStart=ut(T.secureConnectionStart),T.domainLookupStart=ut(T.domainLookupStart),T.isPerformanceNavigationTiming=!0,W=T):W=Ok.timing}else W=g.Oi("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Ok.timing)):Ok.timing;return W}; ut=function(W){return Math.round(Z7()+W)}; Z7=function(){return(g.Oi("csi_use_time_origin")||g.Oi("csi_use_time_origin_tvhtml5"))&&Ok.timeOrigin?Math.floor(Ok.timeOrigin):Ok.timing.navigationStart}; tw=function(W,Y){Mk("_start",W,Y)}; qk=function(W,Y){if(!g.Oi("web_csi_action_sampling_enabled")||!ab(Y).actionDisabled){var k=Tw(Y||"");TN(k.info,W);W.loadType&&(k=W.loadType,WE(Y).loadType=k);TN(w8d(Y),W);k=kf(Y);Y=ab(Y).cttAuthInfo;SC().info(W,k,Y)}}; CNF=function(){var W,Y,k,P;return((P=Ka().resolve(RB(Y4))==null?void 0:(W=$4())==null?void 0:(Y=W.loggingHotConfig)==null?void 0:(k=Y.csiConfig)==null?void 0:k.debugTicks)!=null?P:[]).map(function(T){return Object.values(T)[0]})}; Mk=function(W,Y,k){if(!g.Oi("web_csi_action_sampling_enabled")||!ab(k).actionDisabled){var P=kf(k),T;if(T=g.Oi("web_csi_debug_sample_enabled")&&P){(Ka().resolve(RB(Y4))==null?0:$4())&&!LdF&&(LdF=!0,Mk("gcfl",(0,g.q5)(),k));var I,X,h;T=(Ka().resolve(RB(Y4))==null?void 0:(I=$4())==null?void 0:(X=I.loggingHotConfig)==null?void 0:(h=X.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(I=T!==0)b:{I=CNF();if(I.length>0)for(X=0;Xk.duration?P:k},{duration:0}))&&Y.startTime>0&&Y.responseEnd>0&&(Mk("wffs",ut(Y.startTime)),Mk("wffe",ut(Y.responseEnd)))}; V57=function(W,Y,k){Ok&&Ok.measure&&(W.startsWith("measure_")||(W="measure_"+W),k?Ok.measure(W,Y,k):Y?Ok.measure(W,Y):Ok.measure(W))}; Ne5=function(W){var Y=Rl("aft",W);if(Y)return Y;Y=g.eM((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var k=Y.length,P=0;P0&&qk(Y);Y={isNavigation:!0,actionType:jC(g.eM("TIMING_ACTION"))};var k=g.eM("PREVIOUS_ACTION");k&&(Y.previousAction=jC(k));if(k=g.eM("CLIENT_PROTOCOL"))Y.httpProtocol=k;if(k=g.eM("CLIENT_TRANSPORT"))Y.transportProtocol=k;(k=g.iD())&&k!=="UNDEFINED_CSN"&&(Y.clientScreenNonce=k);k=bJ0();if(k===1||k===-1)Y.isVisible= !0;k=WE().loadType==="cold";var P=Fdd();k||(k=P.yt_lt==="cold");if(k){Y.loadType="cold";k=Fdd();P=vuS();var T=Z7(),I=g.eM("CSI_START_TIMESTAMP_MILLIS",0);I>0&&!g.Oi("embeds_web_enable_csi_start_override_killswitch")&&(T=I);T&&(Mk("srt",P.responseStart),k.prerender!==1&&tw(T));k=Yjd();k>0&&Mk("fpt",k);k=vuS();k.isPerformanceNavigationTiming&&qk({performanceNavigationTiming:!0},void 0);Mk("nreqs",k.requestStart,void 0);Mk("nress",k.responseStart,void 0);Mk("nrese",k.responseEnd,void 0);k.redirectEnd- k.redirectStart>0&&(Mk("nrs",k.redirectStart,void 0),Mk("nre",k.redirectEnd,void 0));k.domainLookupEnd-k.domainLookupStart>0&&(Mk("ndnss",k.domainLookupStart,void 0),Mk("ndnse",k.domainLookupEnd,void 0));k.connectEnd-k.connectStart>0&&(Mk("ntcps",k.connectStart,void 0),Mk("ntcpe",k.connectEnd,void 0));k.secureConnectionStart>=Z7()&&k.connectEnd-k.secureConnectionStart>0&&(Mk("nstcps",k.secureConnectionStart,void 0),Mk("ntcpe",k.connectEnd,void 0));Ok&&"getEntriesByType"in Ok&&fSX();k=[];if(document.querySelector&& Ok&&Ok.getEntriesByName)for(var X in pS)pS.hasOwnProperty(X)&&(P=pS[X],x5v(X,P)&&k.push(P));if(k.length>0)for(Y.resourceInfo=[],X=g.p(k),k=X.next();!k.done;k=X.next())Y.resourceInfo.push({resourceCache:k.value})}qk(Y);Y=$f();Y.preLoggedGelInfos||(Y.preLoggedGelInfos=[]);X=Y.preLoggedGelInfos;Y=w8d();k=void 0;for(P=0;P-1&&(delete z1["@type"],c=z1);G&&W.K.has(G)&&W.K.delete(G);((ad=Y.config)==null?0:ad.Nea)&&KS(Y.config.Nea);if(c||(Mc=W.J)==null||!Mc.qy5(Y.input,Y.zX)){mV.oi(15);break}return g.m(mV,W.J.b5g(Y.input,Y.zX),16);case 16:c=mV.K;case 15:return R$d(W, c,Y),((Ij=Y.config)==null?0:Ij.s6a)&&KS(Y.config.s6a),P(),mV.return(c||void 0)}})}; ZQC=function(W,Y){a:{W=W.Rj;var k,P=(k=g.U(Y,syv))==null?void 0:k.signal;if(P&&W.Jp&&(k=W.Jp[P])){var T=k();break a}var I;if((k=(I=g.U(Y,rj0))==null?void 0:I.request)&&W.Sc&&(I=W.Sc[k])){T=I();break a}for(T in Y)if(W.iI[T]&&(Y=W.iI[T])){T=Y();break a}T=void 0}if(T!==void 0)return Promise.resolve(T)}; Mr6=function(W,Y,k){var P,T,I,X,h,B,O;return g.D(function(u){if(u.W==1){I=((P=Y)==null?void 0:(T=P.Zo)==null?void 0:T.identity)||T_;B=(X=Y)==null?void 0:(h=X.Zo)==null?void 0:h.sessionIndex;var Z=g.sJ(W.W.Ua(I,{sessionIndex:B}));return g.m(u,Z,2)}O=u.K;return u.return(Promise.resolve(Object.assign({},zbv(k),O)))})}; iQ5=function(W,Y,k){var P,T=(Y==null?void 0:(P=Y.Zo)==null?void 0:P.identity)||T_,I;Y=Y==null?void 0:(I=Y.Zo)==null?void 0:I.sessionIndex;W=W.W.Ua(T,{sessionIndex:Y});return Object.assign({},zbv(k),W)}; D7=function(){}; gG=function(){}; Fn=function(W){this.X=W}; wG=function(){}; QF=function(){}; yF=function(){}; eC=function(){}; g.ol=function(W,Y){var k=g.y0.apply(2,arguments);W=W===void 0?0:W;g.Qq.call(this,Y,k);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)}; vE=function(W,Y,k,P){this.W=W;this.K=Y;this.J=k;this.T=P}; n4C=function(W,Y,k){if(W.W){var P=S7(pk(Y,"key"))||"/UNKNOWN_PATH";W.W.start(P)}P=k;g.Oi("wug_networking_gzip_request")&&(P=eZC(k));var T;return new ((T=W.T)!=null?T:window.Request)(Y,P)}; g.LS=function(W,Y){if(!CS){var k=Ka();HA(k,{R0:pwd,Uu:vE});var P={iI:{feedbackEndpoint:cP(wG),modifyChannelNotificationPreferenceEndpoint:cP(QF),playlistEditEndpoint:cP(yF),shareEntityEndpoint:cP(Fn),subscribeEndpoint:cP(D7),unsubscribeEndpoint:cP(gG),webPlayerShareEntityServiceEndpoint:cP(eC)}},T=UI.getInstance(),I={};T&&(I.client_location=T);W===void 0&&(W=cR1());Y===void 0&&(Y=k.resolve(pwd));uJv(P,Y,W,I);HA(k,{R0:G_v,jE:zw.instance});CS=k.resolve(G_v)}return CS}; KgF=function(W){var Y=new jd;if(W.interpreterJavascript){var k=zxV(W.interpreterJavascript);k=tQ(k).toString();var P=new Pa;gl(P,6,k);KF(Y,Pa,1,P,xa)}else W.interpreterUrl&&(k=MC(W.interpreterUrl),k=WZ(k).toString(),P=new Tu,gl(P,4,k),KF(Y,Tu,2,P,xa));W.interpreterHash&&Fg(Y,3,W.interpreterHash,xa);W.program&&Fg(Y,4,W.program,xa);W.globalName&&Fg(Y,5,W.globalName,xa);W.clientExperimentsStateBlob&&Fg(Y,7,W.clientExperimentsStateBlob,xa);return Y}; Uk=function(W){var Y={};W=W.split("&");W=g.p(W);for(var k=W.next();!k.done;k=W.next())k=k.value.split("="),k.length===2&&(Y[k[0]]=k[1]);return Y}; rEV=function(){if(g.Oi("bg_st_hr"))return"havuokmhhs-0";var W,Y=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Y)}; lt=function(W){this.W=W}; E41=function(){return new Promise(function(W){var Y=window;Y.ntpevasrs!==void 0?W(new lt(Y.ntpevasrs)):(Y.ntpqfbel===void 0&&(Y.ntpqfbel=[]),Y.ntpqfbel.push(function(k){W(new lt(k))}))})}; r8C=function(){if(cy()){var W=g.eM("PLAYER_VARS",{});if(g.uj(W,"privembed",!1)!="1"&&!nwv(W)){var Y=function(){bt=!0;"google_ad_status"in window?ym("DCLKSTAT",1):ym("DCLKSTAT",2)}; try{g.fQ(J80,Y)}catch(k){}s0v.push(g.Dx.r_(function(){if(!(bt||"google_ad_status"in window)){try{if(J80.toString()&&Y){var k=""+g.jw(Y),P=HIV[k];P&&g.cw(P)}}catch(T){}bt=!0;ym("DCLKSTAT",3)}},5E3))}}}; cE=function(){var W=Number(g.eM("DCLKSTAT",0));return isNaN(W)?0:W}; Nk=function(W,Y,k){var P=this;this.network=W;this.options=Y;this.K=k;this.W=null;if(Y.Al6){var T=new g.Xd;this.W=T.promise;g.V0.ytAtRC&&vO(function(){var I,X;return g.D(function(h){if(h.W==1){if(!g.V0.ytAtRC)return h.return();I=xf(null);return g.m(h,fS(P,I),2)}X=h.K;g.V0.ytAtRC&&g.V0.ytAtRC(JSON.stringify(X));g.G1(h)})},2); E41().then(function(I){var X,h,B,O;return g.D(function(u){if(u.W==1)return I.bindInnertubeChallengeFetcher(function(Z){return fS(P,xf(Z))}),g.m(u,xi(),2); X=u.K;h=I.getLatestChallengeResponse();B=h.challenge;if(!B)throw Error("BGE_MACIL");O={challenge:B,uE:Uk(B),W5:X,bgChallenge:new jd};T.resolve(O);I.registerChallengeFetchedCallback(function(Z){Z=Z.challenge;if(!Z)throw Error("BGE_MACR");Z={challenge:Z,uE:Uk(Z),W5:X,bgChallenge:new jd};P.W=Promise.resolve(Z)}); g.G1(u)})})}else Y.preload&&A8z(this,new Promise(function(I){g.Ce(0,function(){I(VF(P))},0)}))}; xf=function(W){var Y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(Y.interpreterHash=W);return Y}; VF=function(W,Y){Y=Y===void 0?0:Y;var k,P,T,I,X,h,B,O,u,Z,M,t;return g.D(function(q){switch(q.W){case 1:k=xf(Ba().W);if(g.Oi("att_fet_ks"))return g.KC(q,7),g.m(q,fS(W,k),9);g.KC(q,4);return g.m(q,z$V(W,k),6);case 6:X=q.K;T=X.eJr;I=X.cYq;P=X;g.s2(q,3);break;case 4:return g.Aq(q),g.Kx(Error("Failed to fetch attestation challenge after "+(Y+" attempts; not retrying for 24h."))),al(W,864E5),q.return({challenge:"",uE:{},W5:void 0,bgChallenge:void 0});case 9:P=q.K;if(!P)throw Error("Fetching Attestation challenge returned falsy"); if(!P.challenge)throw Error("Missing Attestation challenge");T=P.challenge;I=Uk(T);if("c1a"in I&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.s2(q,3);break;case 7:h=g.Aq(q);g.Kx(h);Y++;if(Y>=5)return g.Kx(Error("Failed to fetch attestation challenge after "+(Y+" attempts; not retrying for 24h."))),al(W,864E5),q.return({challenge:"",uE:{},W5:void 0,bgChallenge:void 0});B=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return q.return(new Promise(function(G){g.Ce(0, function(){G(VF(W,Y))},B)})); case 3:O=Number(I.t)||7200;al(W,O*1E3);u=void 0;if(!("c1a"in I&&P.bgChallenge)){q.oi(10);break}Z=KgF(P.bgChallenge);g.KC(q,11);return g.m(q,JL2(Ba(),Z),13);case 13:g.s2(q,12);break;case 11:return M=g.Aq(q),g.Kx(M),q.return({challenge:T,uE:I,W5:u,bgChallenge:Z});case 12:return g.KC(q,14),u=new Sd({challenge:Z,N4:{Af:"aGIf"}}),g.m(q,u.uR,16);case 16:g.s2(q,10);break;case 14:t=g.Aq(q),g.Kx(t),u=void 0;case 10:return q.return({challenge:T,uE:I,W5:u,bgChallenge:Z})}})}; fS=function(W,Y){var k;return g.D(function(P){k=W.K;if(!k||k.s6())return P.return(fS(W.network,Y));Aw("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(T){k.G2("publicytnetworkstatus-online",function(){fS(W.network,Y).then(T)})}))})}; dPF=function(W){if(!W)throw Error("Fetching Attestation challenge returned falsy");if(!W.challenge)throw Error("Missing Attestation challenge");var Y=W.challenge,k=Uk(Y);if("c1a"in k&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},W,{eJr:Y,cYq:k})}; z$V=function(W,Y){var k,P,T,I,X;return g.D(function(h){switch(h.W){case 1:k=void 0,P=0,T={};case 2:if(!(P<5)){h.oi(4);break}if(!(P>0)){h.oi(5);break}T.GY=1E3*Math.pow(2,P-1)+Math.random()*1E3;return g.m(h,new Promise(function(B){return function(O){g.Ce(0,function(){O(void 0)},B.GY)}}(T)),5); case 5:return g.KC(h,7),g.m(h,fS(W,Y),9);case 9:return I=h.K,h.return(dPF(I));case 7:k=X=g.Aq(h),X instanceof Error&&g.Kx(X);case 8:P++;T={GY:void 0};h.oi(2);break;case 4:throw k;}})}; A8z=function(W,Y){W.W=Y}; mP5=function(W){var Y,k,P;return g.D(function(T){if(T.W==1)return g.m(T,Promise.race([W.W,null]),2);Y=T.K;var I=VF(W);W.W=I;(k=Y)==null||(P=k.W5)==null||P.dispose();g.G1(T)})}; al=function(W,Y){function k(){var T;return g.D(function(I){T=P-Date.now();return T<1E3?g.m(I,mP5(W),0):(vO(k,0,Math.min(T,6E4)),I.oi(0))})} var P=Date.now()+Y;k()}; DPX=function(W,Y){return new Promise(function(k){g.Ce(0,function(){k(Y())},W)})}; g.g40=function(W,Y){var k;return g.D(function(P){var T=g.Wp("yt.aba.att");return(k=T?T:Nk.instance!==void 0?Nk.instance.J.bind(Nk.instance):null)?P.return(k("ENGAGEMENT_TYPE_PLAYBACK",W,Y)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.Fg1=function(){var W;return(W=(W=g.Wp("yt.aba.att2"))?W:Nk.instance!==void 0?Nk.instance.T.bind(Nk.instance):null)?W():Promise.resolve(!1)}; Q0V=function(W,Y){var k=g.Wp("ytDebugData.callbacks");k||(k={},g.N6("ytDebugData.callbacks",k));if(g.Oi("web_dd_iu")||wwV.includes(W))k[W]=Y}; Wg=function(){var W=y82;var Y=Y===void 0?[]:Y;var k=k===void 0?[]:k;Y=KQ5.apply(null,[Edq.apply(null,g.ZX(Y))].concat(g.ZX(k)));this.store=sxv(W,void 0,Y)}; g.YS=function(W,Y,k){for(var P=Object.assign({},W),T=g.p(Object.keys(Y)),I=T.next();!I.done;I=T.next()){I=I.value;var X=W[I],h=Y[I];if(h===void 0)delete P[I];else if(X===void 0)P[I]=h;else if(Array.isArray(h)&&Array.isArray(X))P[I]=k?[].concat(g.ZX(X),g.ZX(h)):h;else if(!Array.isArray(h)&&g.Pp(h)&&!Array.isArray(X)&&g.Pp(X))P[I]=g.YS(X,h,k);else if(typeof h===typeof X)P[I]=h;else return Y=new g.Qq("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:I,JgP:X,updateValue:h}),g.GH(Y), W}return P}; $S=function(W){var Y=this;W=W===void 0?[]:W;this.W=[];this.J=this.K=0;this.T=void 0;this.totalLength=0;W.forEach(function(k){Y.append(k)})}; e$F=function(W,Y){return W.W.length===0?!1:(W=W.W[W.W.length-1])&&W.buffer===Y.buffer&&W.byteOffset+W.length===Y.byteOffset}; kS=function(W,Y){Y=g.p(Y.W);for(var k=Y.next();!k.done;k=Y.next())W.append(k.value)}; Pg=function(W,Y,k){return W.split(Y).LL.split(k).Mu}; TJ=function(W){W.T=void 0;W.K=0;W.J=0}; jB=function(W,Y,k){W.isFocused(Y);return Y-W.J+k<=W.W[W.K].length}; o4V=function(W){if(!W.T){var Y=W.W[W.K];W.T=new DataView(Y.buffer,Y.byteOffset,Y.length)}return W.T}; v4F=function(W,Y,k){Y=Y===void 0?0:Y;k=k===void 0?-1:k;if(!W.totalLength||!k)return new DataView(new ArrayBuffer(0));k<0&&(k=W.totalLength-Y);W.focus(Y);if(!jB(W,Y,k)){var P=W.K,T=W.J;W.focus(Y+k-1);T=new Uint8Array(W.J+W.W[W.K].length-T);for(var I=0,X=P;X<=W.K;X++)T.set(W.W[X],I),I+=W.W[X].length;W.W.splice(P,W.K-P+1,T);TJ(W);W.focus(Y)}P=W.W[W.K];return new DataView(P.buffer,P.byteOffset+Y-W.J,k)}; IC=function(W,Y,k){W=v4F(W,Y===void 0?0:Y,k===void 0?-1:k);return new Uint8Array(W.buffer,W.byteOffset,W.byteLength)}; XY=function(W,Y,k){W=IC(W,Y===void 0?0:Y,k===void 0?-1:k);Y=new Uint8Array(W.length);try{Y.set(W)}catch(P){for(k=0;k>10;I=56320|I&1023}Oc[T++]=I}}I=String.fromCharCode.apply(String,Oc); T<1024&&(I=I.substring(0,T));k.push(I)}return k.join("")}; il=function(W,Y){var k;if((k=Z0)==null?0:k.encodeInto)return Y=Z0.encodeInto(W,Y),Y.read>6|192:((T&64512)===55296&&P+1>18|240,Y[k++]=T>>12&63|128):Y[k++]=T>>12|224,Y[k++]=T>>6&63|128),Y[k++]=T&63|128)}return k}; Mx=function(W){if(Z0)return Z0.encode(W);var Y=new Uint8Array(Math.ceil(W.length*1.2)),k=il(W,Y);Y.lengthk&&(Y=Y.subarray(0,k));return Y}; t2=function(W){this.W=W;this.pos=0;this.K=-1}; qx=function(W){var Y=SB(W.W,W.pos);++W.pos;if(Y<128)return Y;for(var k=Y&127,P=1;Y>=128;)Y=SB(W.W,W.pos),++W.pos,P*=128,k+=(Y&127)*P;return k}; RC=function(W,Y){var k=W.K;for(W.K=-1;W.pos+1<=W.W.totalLength;){k<0&&(k=qx(W));var P=k>>3,T=k&7;if(P===Y)return!0;if(P>Y){W.K=k;break}k=-1;switch(T){case 0:qx(W);break;case 1:W.pos+=8;break;case 2:P=qx(W);W.pos+=P;break;case 5:W.pos+=4}}return!1}; Hg=function(W,Y){if(RC(W,Y))return qx(W)}; UPd=function(W,Y){if(RC(W,Y))return Y=IC(W.W,W.pos,8),W.pos+=8,(new DataView(Y.buffer,Y.byteOffset,Y.byteLength)).getFloat64(0,!0)}; n7=function(W,Y){if(RC(W,Y))return!!qx(W)}; p7=function(W,Y){if(RC(W,Y)){Y=qx(W);var k=IC(W.W,W.pos,Y);W.pos+=Y;return k}}; GJ=function(W,Y){if(W=p7(W,Y))return g.ul(W)}; K7=function(W,Y,k){if(W=p7(W,Y))return k(new t2(new $S([W])))}; Ec=function(W,Y){for(var k=[];RC(W,Y);)k.push(qx(W));return k.length?k:void 0}; J2=function(W,Y,k){for(var P=[],T;T=p7(W,Y);)P.push(k(new t2(new $S([T]))));return P.length?P:void 0}; sc=function(W,Y){W=W instanceof Uint8Array?new $S([W]):W;return Y(new t2(W))}; lKv=function(W,Y){W=new Uint8Array(W);Y&&W.set(Y);return W}; bQ6=function(W){this.pos=0;this.K=[];this.W=lKv(W===void 0?4096:W);this.view=new DataView(this.W.buffer,this.W.byteOffset,this.W.byteLength)}; rA=function(W,Y){Y=W.pos+Y;if(!(W.W.length>=Y)){for(var k=W.W.length*2;k268435455){rA(W,4);for(var k=Y&1073741823,P=0;P<4;P++)W.view.setUint8(W.pos,k&127|128),k>>=7,W.pos+=1;Y=Math.floor(Y/268435456)}for(rA(W,4);Y>127;)W.view.setUint8(W.pos,Y&127|128),Y>>=7,W.pos+=1;W.view.setUint8(W.pos,Y);W.pos+=1}; zJ=function(W,Y,k){k!==void 0&&(A2(W,Y*8),A2(W,k))}; C7=function(W,Y,k){k!==void 0&&zJ(W,Y,k?1:0)}; L7=function(W,Y,k){k!==void 0&&(A2(W,Y*8+2),Y=k.length,A2(W,Y),rA(W,Y),W.W.set(k,W.pos),W.pos+=Y)}; Uc=function(W,Y,k){k!==void 0&&(c8V(W,Y,Math.ceil(Math.log2(k.length*4+2)/7)),rA(W,k.length*1.2),Y=il(k,W.W.subarray(W.pos)),W.pos+Y>W.W.length&&(rA(W,Y),Y=il(k,W.W.subarray(W.pos))),W.pos+=Y,xP5(W))}; c8V=function(W,Y,k){k=k===void 0?2:k;A2(W,Y*8+2);W.K.push(W.pos);W.K.push(k);W.pos+=k}; xP5=function(W){for(var Y=W.K.pop(),k=W.K.pop(),P=W.pos-k-Y;Y--;){var T=Y?128:0;W.view.setUint8(k++,P&127|T);P>>=7}}; ll=function(W,Y,k,P,T){k&&(c8V(W,Y,T===void 0?3:T),P(W,k),xP5(W))}; g.bl=function(W,Y){var k=new bQ6(4096);Y(k,W);return new Uint8Array(k.W.buffer,k.W.byteOffset,k.pos)}; g.cg=function(W){var Y=new t2(new $S([rZ(decodeURIComponent(W))]));W=GJ(Y,2);Y=Hg(Y,4);var k=fK6[Y];if(typeof k==="undefined")throw W=new g.Qq("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:Y}),g.GH(W),W;return{ZL:Y,entityType:k,entityId:W}}; g.xS=function(W,Y){var k=k===void 0?0:k;var P=new bQ6;L7(P,2,Mx(W));W=VrV[Y];if(typeof W==="undefined")throw k=new g.Qq("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Y}),g.GH(k),k;zJ(P,4,W);zJ(P,5,1);Y=new Uint8Array(P.W.buffer,P.W.byteOffset,P.pos);return encodeURIComponent(g.Jx(Y,k))}; f7=function(W,Y,k,P){if(P===void 0)return P=Object.assign({},W[Y]||{}),k=(delete P[k],P),P={},Object.assign({},W,(P[Y]=k,P));var T={},I={};return Object.assign({},W,(I[Y]=Object.assign({},W[Y],(T[k]=P,T)),I))}; NSS=function(W,Y,k,P,T){var I=W[Y];if(I==null||!I[k])return W;P=g.YS(I[k],P,T==="REPEATED_FIELDS_MERGE_OPTION_APPEND");T={};I={};return Object.assign({},W,(I[Y]=Object.assign({},W[Y],(T[k]=P,T)),I))}; aKz=function(W,Y){W=W===void 0?{}:W;switch(Y.type){case "ENTITY_LOADED":return Y.payload.reduce(function(P,T){var I,X=(I=T.options)==null?void 0:I.persistenceOption;if(X&&X!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&X!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!T.entityKey)return g.GH(Error("Missing entity key")),P;if(T.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!T.payload)return T=new g.Qq("REPLACE entity mutation is missing a payload",{entityKey:T.entityKey}),g.GH(T),P;var h=g.$8(T.payload); return f7(P,h,T.entityKey,T.payload[h])}if(T.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{T=T.entityKey;try{var B=g.cg(T).entityType;h=f7(P,B,T);break a}catch(Z){if(Z instanceof Error){T=new g.Qq("Failed to deserialize entity key",{entityKey:T,originalMessage:Z.message});g.GH(T);h=P;break a}throw Z;}h=void 0}return h}if(T.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!T.payload)return T=new g.Qq("UPDATE entity mutation is missing a payload",{entityKey:T.entityKey}),g.GH(T),P;h=g.$8(T.payload);var O,u;return NSS(P, h,T.entityKey,T.payload[h],(O=T.fieldMask)==null?void 0:(u=O.mergeOptions)==null?void 0:u.repeatedFieldsMergeOption)}return P},W); case "REPLACE_ENTITY":var k=Y.payload;return f7(W,k.entityType,k.key,k.jP);case "REPLACE_ENTITIES":return Object.keys(Y.payload).reduce(function(P,T){var I=Y.payload[T];return Object.keys(I).reduce(function(X,h){return f7(X,T,h,I[h])},P)},W); case "UPDATE_ENTITY":return k=Y.payload,NSS(W,k.entityType,k.key,k.jP,k.cUJ);default:return W}}; VJ=function(W,Y,k){return W[Y]?W[Y][k]||null:null}; Nx=function(W){return window.Int32Array?new Int32Array(W):Array(W)}; Ph=function(W){g.e.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.W=16;if(!WpF){var Y,k=new Uint8Array(256),P=new Uint8Array(256);var T=1;for(Y=0;Y<256;Y++)k[T]=Y,P[Y]=T,T^=T<<1^(T>>7&&283);aC=new Uint8Array(256);Wh=Nx(256);Yo=Nx(256);$o=Nx(256);ko=Nx(256);for(var I=0;I<256;I++){T=I?P[255^k[I]]:0;T^=T<<1^T<<2^T<<3^T<<4;T=T&255^T>>>8^99;aC[I]=T;Y=T<<1^(T>>7&&283);var X=Y^T;Wh[I]=Y<<24|T<<16|T<<8|X;Yo[I]=X<<24|Wh[I]>>>8;$o[I]=T<<24|Yo[I]>>>8;ko[I]=T<<24|$o[I]>>>8}WpF=!0}T=Nx(44);for(k= 0;k<4;k++)T[k]=W[4*k]<<24|W[4*k+1]<<16|W[4*k+2]<<8|W[4*k+3];for(P=1;k<44;k++)W=T[k-1],k%4||(W=(aC[W>>16&255]^P)<<24|aC[W>>8&255]<<16|aC[W&255]<<8|aC[W>>>24],P=P<<1^(P>>7&&283)),T[k]=T[k-4]^W;this.key=T}; YYv=function(W){for(var Y=W.key,k=W.counter[0]^Y[0],P=W.counter[1]^Y[1],T=W.counter[2]^Y[2],I=W.counter[3]^Y[3],X=3;X>=0&&!(W.counter[X]=-~W.counter[X]);X--);for(var h,B,O=4;O<40;)X=Wh[k>>>24]^Yo[P>>16&255]^$o[T>>8&255]^ko[I&255]^Y[O++],h=Wh[P>>>24]^Yo[T>>16&255]^$o[I>>8&255]^ko[k&255]^Y[O++],B=Wh[T>>>24]^Yo[I>>16&255]^$o[k>>8&255]^ko[P&255]^Y[O++],I=Wh[I>>>24]^Yo[k>>16&255]^$o[P>>8&255]^ko[T&255]^Y[O++],k=X,P=h,T=B;W=W.K;X=Y[40];W[0]=aC[k>>>24]^X>>>24;W[1]=aC[P>>16&255]^X>>16&255;W[2]=aC[T>>8&255]^ X>>8&255;W[3]=aC[I&255]^X&255;X=Y[41];W[4]=aC[P>>>24]^X>>>24;W[5]=aC[T>>16&255]^X>>16&255;W[6]=aC[I>>8&255]^X>>8&255;W[7]=aC[k&255]^X&255;X=Y[42];W[8]=aC[T>>>24]^X>>>24;W[9]=aC[I>>16&255]^X>>16&255;W[10]=aC[k>>8&255]^X>>8&255;W[11]=aC[P&255]^X&255;X=Y[43];W[12]=aC[I>>>24]^X>>>24;W[13]=aC[k>>16&255]^X>>16&255;W[14]=aC[P>>8&255]^X>>8&255;W[15]=aC[T&255]^X&255}; IV=function(){if(!Tf&&!g.e5){if(j8)return j8;var W;j8=(W=window.crypto)==null?void 0:W.subtle;var Y,k,P;if(((Y=j8)==null?0:Y.importKey)&&((k=j8)==null?0:k.sign)&&((P=j8)==null?0:P.encrypt))return j8;j8=void 0}}; g.h7=function(W){var Y=IV();Y&&(this.W=new X6(W,Y));this.K=new g.S8(W)}; X6=function(W,Y){this.K=W;this.subtleCrypto=Y}; $l0=function(W,Y,k){var P,T;return g.D(function(I){switch(I.W){case 1:if(W.W){I.oi(2);break}return g.m(I,W.subtleCrypto.importKey("raw",W.K,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.W=I.K;case 2:return P={name:"AES-CTR",counter:k,length:128},g.m(I,W.subtleCrypto.encrypt(P,W.W,Y),4);case 4:return T=I.K,I.return(new Uint8Array(T))}})}; g.S8=function(W){this.K=W}; Bh=function(W){this.C=new Uint8Array(64);this.J=new Uint8Array(64);this.T=0;this.X=new Uint8Array(64);this.K=0;this.C.set(W);this.J.set(W);for(W=0;W<64;W++)this.C[W]^=92,this.J[W]^=54;this.reset()}; kN0=function(W,Y,k){for(var P=W.G,T=W.W[0],I=W.W[1],X=W.W[2],h=W.W[3],B=W.W[4],O=W.W[5],u=W.W[6],Z=W.W[7],M,t,q,G=0;G<64;)G<16?(P[G]=q=Y[k]<<24|Y[k+1]<<16|Y[k+2]<<8|Y[k+3],k+=4):(M=P[G-2],t=P[G-15],q=P[G-7]+P[G-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),P[G]=q),M=Z+OT[G]+q+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&O^~B&u),t=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&I^T&X^I&X),Z=M+t,h+=M,G++,G<16?(P[G]=q=Y[k]<<24|Y[k+1]<<16|Y[k+2]<<8|Y[k+3],k+=4):(M= P[G-2],t=P[G-15],q=P[G-7]+P[G-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),P[G]=q),M=u+OT[G]+q+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&B^~h&O),t=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&T^Z&I^T&I),u=M+t,X+=M,G++,G<16?(P[G]=q=Y[k]<<24|Y[k+1]<<16|Y[k+2]<<8|Y[k+3],k+=4):(M=P[G-2],t=P[G-15],q=P[G-7]+P[G-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),P[G]=q),M=O+OT[G]+q+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&h^ ~X&B),t=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&Z^u&T^Z&T),O=M+t,I+=M,G++,G<16?(P[G]=q=Y[k]<<24|Y[k+1]<<16|Y[k+2]<<8|Y[k+3],k+=4):(M=P[G-2],t=P[G-15],q=P[G-7]+P[G-16]+((M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),P[G]=q),M=B+OT[G]+q+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&X^~I&h),t=((O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10))+(O&u^O&Z^u&Z),q=Z,Z=h,h=q,q=u,u=X,X=q,q=O,O=I,I=q,B=T+M,T=M+t,G++;W.W[0]=T+W.W[0]|0;W.W[1]=I+W.W[1]|0;W.W[2]=X+W.W[2]|0;W.W[3]= h+W.W[3]|0;W.W[4]=B+W.W[4]|0;W.W[5]=O+W.W[5]|0;W.W[6]=u+W.W[6]|0;W.W[7]=Z+W.W[7]|0}; Ty2=function(W){var Y=new Uint8Array(32),k=64-W.K;W.K>55&&(k+=64);var P=new Uint8Array(k);P[0]=128;for(var T=W.T*8,I=1;I<9;I++){var X=T%256;P[k-I]=X;T=(T-X)/256}W.update(P);for(k=0;k<8;k++)Y[k*4]=W.W[k]>>>24,Y[k*4+1]=W.W[k]>>>16&255,Y[k*4+2]=W.W[k]>>>8&255,Y[k*4+3]=W.W[k]&255;P$d(W);return Y}; P$d=function(W){W.W=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];W.G=[];W.G.length=64;W.T=0;W.K=0}; jBq=function(W){this.W=W}; IgX=function(W,Y,k){W=new Bh(W.W);W.update(Y);W.update(k);Y=Ty2(W);W.update(W.C);W.update(Y);Y=Ty2(W);W.reset();return Y}; XAS=function(W){this.K=W}; SY2=function(W,Y,k,P){var T,I,X;return g.D(function(h){switch(h.W){case 1:if(W.W){h.oi(2);break}return g.m(h,P.importKey("raw",W.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:W.W=h.K;case 2:return T=new Uint8Array(Y.length+k.length),T.set(Y),T.set(k,Y.length),I={name:"HMAC",hash:"SHA-256"},g.m(h,P.sign(I,W.W,T),4);case 4:return X=h.K,h.return(new Uint8Array(X))}})}; hfd=function(W,Y,k){W.J||(W.J=new jBq(W.K));return IgX(W.J,Y,k)}; Byq=function(W,Y,k){var P,T;return g.D(function(I){if(I.W==1){P=IV();if(!P)return I.return(hfd(W,Y,k));g.KC(I,3);return g.m(I,SY2(W,Y,k,P),5)}if(I.W!=3)return I.return(I.K);T=g.Aq(I);g.Kx(T);Tf=!0;return I.return(hfd(W,Y,k))})}; uTq=function(W){for(var Y="",k=0;k=0||qH(W,0,"gad_source",W.search(HQ))>=0}; njX=function(){this.W=new Map}; GN7=function(W,Y){var k=Ka().resolve(pAC);if(HaF(Y)){var P=nk(Y,"gclid");Y={handleEvent:function(h){W&&!W.closed&&typeof W.postMessage==="function"&&h&&h.origin&&h.source===W&&h.data&&h.data.action==="gcl_setup"&&W.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),h.origin)}}; for(var T=g.p(k.W),I=T.next();!I.done;I=T.next()){var X=g.p(I.value);I=X.next().value;X=X.next().value;if(I.closed)try{window.removeEventListener("message",X),k.W.delete(I)}catch(h){g.GH(h)}}W&&k.W.size<15&&(k.W.set(W,Y),window.addEventListener("message",Y))}}; uB=function(W,Y,k){if(!Y)return W.length>=1?W[W.length-1]:null;for(var P=g.p(W),T=P.next();!T.done;T=P.next())if(T=T.value,T.width&&T.height&&(k&&T.width>=Y||!k&&T.height>=Y))return T;for(Y=W.length-1;Y>=0;Y--)if(k&&W[Y].width||!k&&W[Y].height)return W[Y];return W[0]}; Zm=function(){this.state=1;this.W5=null;this.xf=void 0}; Ejd=function(W,Y,k,P,T,I){var X=X===void 0?"trayride":X;k?(W.ZY(2),g.fQ(g.tr(k),function(){if(window[X])Kpq(W,P,X,T);else{W.ZY(3);var h=RVV(k),B=document.getElementById(h);B&&(tM7(h),B.parentNode.removeChild(B));g.Kx(new g.Qq("BL:ULB",""+k))}},I)):Y?(I=g.um("SCRIPT"),Y instanceof ML?(I.textContent=tQ(Y),qL(I)):I.textContent=Y,I.nonce=i7(document),document.head.appendChild(I),document.head.removeChild(I),window[X]?Kpq(W,P,X,T):(W.ZY(4),g.Kx(new g.Qq("BL:ULBJ")))):g.Kx(new g.Qq("BL:ULV"))}; Kpq=function(W,Y,k,P){W.ZY(5);var T=!!W.xf&&JI1.includes(g.Xl(W.xf)||"");try{var I=new Sd({program:Y,globalName:k,N4:{disable:!g.Oi("att_web_record_metrics")||!g.Oi("att_skip_metrics_for_cookieless_domains_ks")&&T,Af:"aGIf"}});I.uR.then(function(){W.ZY(6);P&&P(Y)}); W.ZC(I)}catch(X){W.ZY(7),X instanceof Error&&g.Kx(X)}}; iB=function(){var W=g.Wp("yt.abuse.playerAttLoader");return W&&["bgvma","bgvmb","bgvmc"].every(function(Y){return Y in W})?W:null}; M2=function(){Zm.apply(this,arguments)}; t7=function(){}; sBF=function(W,Y,k){for(var P=!1,T=g.p(W.ph.entries()),I=T.next();!I.done;I=T.next())I=g.p(I.value).next().value,I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&I.fg==="core"&&(P=!0);if(P){a:if(!k){W=g.p(W.ph.entries());for(k=W.next();!k.done;k=W.next())if(P=g.p(k.value),k=P.next().value,P=P.next().value,k.slotType==="SLOT_TYPE_IN_PLAYER"&&k.fg==="core"){k=P.layoutId;break a}k=void 0}k?Y.z_(k):PP("No triggering layout ID available when attempting to mute.")}}; q2=function(W,Y){this.Zd=W;this.Lr=Y}; RV=function(){}; Hh=function(){}; AIS=function(W){g.e.call(this);var Y=this;this.RI=W;this.W=new Map;nW(this,"commandExecutorCommand",function(k,P,T){rIX(Y,k.commands,P,T)}); nW(this,"clickTrackingParams",function(){})}; zfq=function(W,Y){nW(W,Y.Y$(),function(k,P,T){Y.XL(k,P,T)})}; nW=function(W,Y,k){W.Xr();W.W.get(Y)&&g.GH(Error("Extension name "+Y+" already registered"));W.W.set(Y,k)}; rIX=function(W,Y,k,P){Y=Y===void 0?[]:Y;W.Xr();var T=[],I=[];Y=g.p(Y);for(var X=Y.next();!X.done;X=Y.next())X=X.value,g.U(X,dld)||g.U(X,ml6)?T.push(X):I.push(X);T=g.p(T);for(Y=T.next();!Y.done;Y=T.next())pW(W,Y.value,k,P);I=g.p(I);for(T=I.next();!T.done;T=I.next())pW(W,T.value,k,P)}; pW=function(W,Y,k,P){W.Xr();Y.loggingUrls&&Dlz(W,"loggingUrls",Y.loggingUrls,k,P);Y=g.p(Object.entries(Y));for(var T=Y.next();!T.done;T=Y.next()){var I=g.p(T.value);T=I.next().value;I=I.next().value;T==="openPopupAction"?W.RI.get().ou("innertubeCommand",{openPopupAction:I}):T==="confirmDialogEndpoint"?W.RI.get().ou("innertubeCommand",{confirmDialogEndpoint:I}):gjX.hasOwnProperty(T)||Dlz(W,T,I,k,P)}}; Dlz=function(W,Y,k,P,T){if((W=W.W.get(Y))&&typeof W==="function")try{W(k,P,T)}catch(I){g.GH(I)}else Y=new g.Qq("Unhandled field",Y),g.Kx(Y)}; Gf=function(W,Y,k){this.AD=W;this.W=Y;this.sP=k;HA(Ka(),{R0:pAC,Uu:njX})}; KW=function(W){this.value=W}; ET=function(W){this.value=W}; J7=function(W){this.value=W}; sT=function(W){this.value=W}; rL=function(W){this.value=W}; A7=function(W){this.value=W}; zf=function(W){this.value=W}; dL=function(){KW.apply(this,arguments)}; mZ=function(W){this.value=W}; Dm=function(W){this.value=W}; gL=function(W){this.value=W}; F6=function(W){this.value=W}; wL=function(W){this.value=W}; QI=function(W){this.value=W}; yI=function(W){this.value=W}; e8=function(W){this.value=W}; oV=function(W){this.value=W}; vh=function(W){this.value=W}; CW=function(){KW.apply(this,arguments)}; LW=function(W){this.value=W}; UT=function(W){this.value=W}; lB=function(W){this.value=W}; bB=function(W){this.value=W}; ch=function(W){this.value=W}; xo=function(W){this.value=W}; fW=function(W){this.value=W}; VI=function(W){this.value=W}; N2=function(W){this.value=W}; aV=function(W){this.value=W}; Wj=function(W){this.value=W}; Yp=function(W){this.value=W}; $p=function(W){this.value=W}; kp=function(W){this.value=W}; Pj=function(W){this.value=W}; Tz=function(W){this.value=W}; j6=function(W){this.value=W}; IA=function(W){this.value=W}; X8=function(W){this.value=W}; S6=function(W){this.value=W}; h1=function(W){this.value=W}; Bj=function(W){this.value=W}; Oq=function(W){this.value=W}; ub=function(W){this.value=W}; Zp=function(W){this.value=W}; ib=function(W){this.value=W}; MV=function(W){this.value=W}; t1=function(W){this.value=W}; qV=function(W){this.value=W}; RA=function(W){this.value=W}; Hj=function(W){this.value=W}; n2=function(W){this.value=W}; p2=function(W){this.value=W}; Gz=function(W){this.value=W}; K2=function(W){this.value=W}; Eq=function(W){this.value=W}; J1=function(W){this.value=W}; sq=function(W){this.value=W}; rt=function(W){this.value=W}; A1=function(){KW.apply(this,arguments)}; zz=function(W){this.value=W}; dt=function(){KW.apply(this,arguments)}; mK=function(){KW.apply(this,arguments)}; Dp=function(){KW.apply(this,arguments)}; gt=function(){KW.apply(this,arguments)}; F8=function(){KW.apply(this,arguments)}; wt=function(W){this.value=W}; Qa=function(W){this.value=W}; ya=function(W){this.value=W}; e6=function(W){this.value=W}; oA=function(W){this.value=W}; C2=function(W,Y,k){if(k&&!k.includes(W.layoutType))return!1;Y=g.p(Y);for(k=Y.next();!k.done;k=Y.next())if(!vj(W.clientMetadata,k.value))return!1;return!0}; L2=function(){return""}; Fp7=function(W,Y){switch(W){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 Y(W),8}}; Uq=function(W,Y,k,P){P=P===void 0?!1:P;Zc.call(this,W);this.Y4=k;this.j2=P;this.args=[];Y&&this.args.push(Y)}; f=function(W,Y,k,P){P=P===void 0?!1:P;Zc.call(this,W);this.Y4=k;this.j2=P;this.args=[];Y&&this.args.push(Y)}; lb=function(W){var Y=new Map;W.forEach(function(k){Y.set(k.W(),k)}); this.W=Y}; vj=function(W,Y){return W.W.has(Y)}; bb=function(W,Y){W=W.W.get(Y);if(W!==void 0)return W.get()}; cj=function(W){return Array.from(W.W.keys())}; xp=function(W,Y,k){if(k&&k!==W.slotType)return!1;Y=g.p(Y);for(k=Y.next();!k.done;k=Y.next())if(!vj(W.clientMetadata,k.value))return!1;return!0}; QBv=function(W){var Y;return((Y=wA6.get(W))==null?void 0:Y.oo)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Va=function(W,Y){var k={type:Y.slotType,controlFlowManagerLayer:yIv.get(Y.fg)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Y.slotEntryTrigger&&(k.entryTriggerType=Y.slotEntryTrigger.triggerType);Y.slotPhysicalPosition!==1&&(k.slotPhysicalPosition=Y.slotPhysicalPosition);if(W){k.debugData={slotId:Y.slotId};if(W=Y.slotEntryTrigger)k.debugData.slotEntryTriggerData=f2(W);W=Y.slotFulfillmentTriggers;k.debugData.fulfillmentTriggerData=[];W=g.p(W);for(var P=W.next();!P.done;P=W.next())k.debugData.fulfillmentTriggerData.push(f2(P.value)); Y=Y.slotExpirationTriggers;k.debugData.expirationTriggerData=[];Y=g.p(Y);for(W=Y.next();!W.done;W=Y.next())k.debugData.expirationTriggerData.push(f2(W.value))}return k}; efq=function(W,Y){var k={type:Y.layoutType,controlFlowManagerLayer:yIv.get(Y.fg)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W&&(k.debugData={layoutId:Y.layoutId});return k}; f2=function(W,Y){var k={type:W.triggerType};Y!=null&&(k.category=Y);W.triggeringSlotId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return k}; oj2=function(W,Y,k,P){Y={opportunityType:Y};W&&(P||k)&&(P=g.tx(P||[],function(T){return Va(W,T)}),Y.debugData=Object.assign({},k&&k.length>0?{associatedSlotId:k}:{},P.length>0?{slots:P}:{})); return Y}; aA=function(W,Y){return function(k){return vj2(NV(W),Y.slotId,Y.slotType,Y.slotPhysicalPosition,Y.fg,Y.slotEntryTrigger,Y.slotFulfillmentTriggers,Y.slotExpirationTriggers,k.layoutId,k.layoutType,k.fg)}}; vj2=function(W,Y,k,P,T,I,X,h,B,O,u){return{adClientDataEntry:{slotData:Va(W,{slotId:Y,slotType:k,slotPhysicalPosition:P,fg:T,slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:h,clientMetadata:new lb([])}),layoutData:efq(W,{layoutId:B,layoutType:O,fg:u,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],W7:new Map,clientMetadata:new lb([]),XA:{}})}}}; Yg=function(W){this.P6=W;W=Math.random();var Y=this.P6.get();Y=g.W2(Y.Y.V().experiments,"html5_debug_data_log_probability");Y=Number.isFinite(Y)&&Y>=0&&Y<=1?Y:0;this.W=W1){g.Kx(new g.Qq("Exit already started",{current:W.currentState}));var k=!1}else k=!0;if(!k)return!1;W.currentState=2;W.W=Y;return!0}; T2=function(W){if(W.currentState!==2)return!1;W.currentState=3;return!0}; qZC=function(W,Y){var k=new Map;W=g.p(W);for(var P=W.next();!P.done;P=W.next()){P=P.value;if(P.layoutType==="LAYOUT_TYPE_MEDIA")var T="v";else P.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(T=bb(P.clientMetadata,"metadata_type_linked_in_player_layout_type"),T=T==="LAYOUT_TYPE_ENDCAP"||T==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":T==="LAYOUT_TYPE_SURVEY"?"s":T==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):T="u";k.set(P.layoutId,T);if(T==="u"){var I={};T=Y;P=(I.c=P.layoutId,I);T.Y.y5("uct",P)}}W= Y.s3();jv={contentCpn:W,QS:k};P={};k=(P.ct=k.size,P.c=W,P);Y.Y.y5("acc",k)}; RGz=function(){jv={contentCpn:"",QS:new Map}}; I9=function(W){var Y;return(Y=jv.QS.get(W))!=null?Y:"u"}; XP=function(W,Y,k){W.Y.y5(Y,k);HUq(W)}; nZ7=function(W){var Y=W.layoutId,k=W.k$;if(W.Nh){var P={};XP(W.AD,"slso",(P.ec=Y,P.is=k,P.ctp=I9(Y),P))}}; Sv=function(W){var Y=W.layoutId,k=W.k$;if(W.Nh){var P={};XP(W.AD,"slse",(P.ec=Y,P.is=k,P.ctp=I9(Y),P))}}; pMF=function(W){var Y=W.layoutId,k=W.k$,P=W.AD;W.Nh&&(W={},XP(P,"sleo",(W.xc=Y,W.is=k,W.ctp=I9(Y),W)),HUq(P))}; GyC=function(W){var Y=W.cpn,k=W.AD;W=W.k$;var P=k.s3(),T={};XP(k,"ce",(T.ec=Y,T.ia=Y!==P,T.r=jv.QS.has(Y),T.is=W,T.ctp=I9(Y),T))}; HUq=function(W){if(W.s3()!==jv.contentCpn){var Y={};Y=(Y.c=jv.contentCpn,Y);W.Y.y5("ccm",Y)}}; Kqv=function(W){var Y=W.cpn,k=W.AD;W=W.k$;var P=k.s3(),T={};XP(k,"cx",(T.xc=Y,T.ia=Y!==P,T.r=jv.QS.has(Y),T.is=W,T.ctp=I9(Y),T))}; EZ0=function(W){this.params=W;this.W=new Set}; JuF=function(W,Y,k){if(!W.W.has(Y)){W.W.add(Y);var P={};W.params.cU.P7(Y,Object.assign({},k,(P.p_ac=W.params.adCpn,P.p_isv=W.params.EZ&&W.params.qa,P)))}}; BT=function(W,Y,k){if(h_(W.params.cU.P6.get(),!0)){var P=k.flush,T={};JuF(W,Y,(T.cts=k.currentTimeSec,T.f=P,T))}}; saq=function(W,Y){this.AD=W;this.P6=Y}; Ol=function(W){var Y=[];if(W){W=g.p(Object.entries(W));for(var k=W.next();!k.done;k=W.next()){var P=g.p(k.value);k=P.next().value;P=P.next().value;P!==void 0&&(P=typeof P==="boolean"?""+ +P:(""+P).replace(/[:,=]/g,"_"),Y.push(k+"."+P))}}return Y.join(";")}; g.uZ=function(W,Y,k){Y=Y===void 0?{}:Y;this.errorCode=W;this.details=Y;this.severity=k===void 0?0:k}; Zf=function(W){return W===1||W===2}; iZ=function(W,Y){Y=Y===void 0?0:Y;if(W instanceof g.uZ)return W;W=W&&W instanceof Error?W:Error(""+W);Zf(Y)?g.GH(W):g.Kx(W);return new g.uZ(Y===1?"player.fatalexception":"player.exception",{name:""+W.name,message:""+W.message},Y)}; ru6=function(W,Y){function k(){var P=g.y0.apply(0,arguments);W.removeEventListener("playing",k);Y.apply(null,g.ZX(P))} W.addEventListener("playing",k)}; Mn=function(){var W=g.Wp("yt.player.utils.videoElement_");W||(W=g.um("VIDEO"),g.N6("yt.player.utils.videoElement_",W));return W}; t_=function(W){var Y=Mn();return!!(Y&&Y.canPlayType&&Y.canPlayType(W))}; R9=function(W){if(/opus/.test(W)&&g.qn&&!q9("38")&&!g.wn())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(W);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(W);if(/webm/.test(W)&&!td0())return!1;W==='audio/mp4; codecs="mp4a.40.2"'&&(W='video/mp4; codecs="avc1.4d401f"');return!!t_(W)}; AuV=function(W){try{var Y=R9('video/mp4; codecs="avc1.42001E"')||R9('video/webm; codecs="vp9"');return(R9('audio/mp4; codecs="mp4a.40.2"')||R9('audio/webm; codecs="opus"'))&&(Y||!W)||t_('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(k){return"html5.missingapi"}}; HT=function(){var W=Mn();return!(!W.webkitSupportsPresentationMode||typeof W.webkitSetPresentationMode!=="function")}; n5=function(){var W=Mn();try{var Y=W.muted;W.muted=!Y;return W.muted!==Y}catch(k){}return!1}; zGd=function(){var W;return((W=navigator.connection)==null?void 0:W.type)||""}; g.p5=function(){Rk.apply(this,arguments)}; G2=function(W,Y,k,P,T,I,X,h){this.sampleRate=W===void 0?0:W;this.numChannels=Y===void 0?0:Y;this.spatialAudioType=k===void 0?"SPATIAL_AUDIO_TYPE_NONE":k;this.W=P===void 0?!1:P;this.J=T;this.T=I;this.audioQuality=X===void 0?"AUDIO_QUALITY_UNKNOWN":X;this.K=h===void 0?!1:h}; DO6=function(W,Y){ll(W,2,Y.a5,K5,3);ll(W,3,Y.innertubeRequest,dO0,3);L7(W,4,Y.onesieUstreamerConfig);L7(W,9,Y.C8);ll(W,10,Y.HB,El,3);ll(W,15,Y.reloadPlaybackParams,mOC,3)}; FqS=function(W,Y){ll(W,1,Y.formatId,J_,3);zJ(W,2,Y.startTimeMs);zJ(W,3,Y.durationMs);zJ(W,4,Y.T9);zJ(W,5,Y.wV);ll(W,9,Y.sCr,gZv,3);ll(W,11,Y.SdD,sl,1);ll(W,12,Y.HW,sl,1)}; wMV=function(W,Y){Uc(W,1,Y.videoId);zJ(W,2,Y.lmt)}; gZv=function(W,Y){if(Y.Pf)for(var k=0;k>31));zJ(W,16,Y.zSa);zJ(W,17,Y.detailedNetworkType);zJ(W,18,Y.eX);zJ(W,19,Y.lV);zJ(W,21,Y.xx5);zJ(W,23,Y.It);zJ(W,28,Y.DD);zJ(W,29,Y.en5);zJ(W,34,Y.visibility);k=Y.playbackRate;if(k!==void 0){var P=new ArrayBuffer(4);(new Float32Array(P))[0]=k;k=(new Uint32Array(P))[0];if(k!==void 0)for(A2(W,285),rA(W,4),P=0;P<4;)W.view.setUint8(W.pos,k&255),k>>=8,W.pos+=1,P+=1}zJ(W,36,Y.s5); ll(W,38,Y.mediaCapabilities,vZS,3);zJ(W,39,Y.lgJ);zJ(W,40,Y.Pd);zJ(W,44,Y.playerState);C7(W,46,Y.U5);zJ(W,48,Y.Ko);zJ(W,50,Y.Vw);zJ(W,51,Y.Co);zJ(W,54,Y.qo);if(Y.tB)for(k=0;k>31));Uc(W,2,Y.message)}; Vyz=function(W,Y){zJ(W,1,Y.clientState);ll(W,2,Y.z9r,xOq,1)}; cuF=function(W,Y){L7(W,1,Y.yCr);ll(W,2,Y.AC1,fMX,3);ll(W,3,Y.coldStartInfo,Vyz,3)}; bUz=function(W,Y){zJ(W,1,Y.type);L7(W,2,Y.value)}; lMz=function(W,Y){Uc(W,1,Y.hl);Uc(W,12,Y.deviceMake);Uc(W,13,Y.deviceModel);zJ(W,16,Y.clientName);Uc(W,17,Y.clientVersion);Uc(W,18,Y.osName);Uc(W,19,Y.osVersion)}; NHd=function(W,Y){Uc(W,1,Y.name);Uc(W,2,Y.value)}; A_=function(W,Y){Uc(W,1,Y.url);if(Y.o$)for(var k=0;k55?"60":Y>49?"50":Y>39?"48":"")));this.qualityLabel=W;this.W=B||"";this.primaries=O||""}; gw=function(W,Y){var k=Math.max(W,Y);W=Math.min(W,Y);Y=QR[0];for(var P=0;P=Math.floor(I*16/9)*1.3||W>=I*1.3)return Y;Y=T}return"tiny"}; o9=function(W,Y,k){k=k===void 0?{}:k;this.id=W;this.mimeType=Y;k.c6>0||(k.c6=16E3);Object.assign(this,k);W=g.p(this.id.split(";"));this.itag=W.next().value;this.W=W.next().value;this.containerType=yR(Y);this.lz=ev[this.itag]||""}; vT=function(W){return W.lz==="9"||W.lz==="("||W.lz==="9h"||W.lz==="(h"}; zkz=function(W){return W.lz==="H"||W.lz==="h"}; C5=function(W){return W.lz==="9h"||W.lz==="(h"}; dy6=function(W){return!!W.tY&&!!W.tY.fairplay&&(W.lz==="("||W.lz==="(h"||W.lz==="A"||W.lz==="MEAC3")||L5&&!!W.tY&&W.lz==="1e"}; Ul=function(W){return W.lz==="1"||W.lz==="1h"||L5&&W.lz==="1e"}; lZ=function(W){return W.lz==="mac3"||W.lz==="meac3"||W.lz==="m"||W.lz==="i"}; bZ=function(W){return W.lz==="MAC3"||W.lz==="MEAC3"||W.lz==="M"||W.lz==="I"}; g.cT=function(W){return W.containerType===1}; myS=function(W){return W.lz==="("||W.lz==="(h"||W.lz==="H"||L5&&W.lz==="1e"}; f5=function(W){return W.mimeType==="application/x-mpegURL"}; g.VR=function(W,Y){return{itag:+W.itag,lmt:Y?0:W.lastModified,xtags:W.W||""}}; Dyq=function(W){var Y=navigator.mediaCapabilities;if(Y==null||!Y.decodingInfo||W.lz==="f")return Promise.resolve();var k={type:W.audio&&W.video?"file":"media-source"};W.video&&(k.video={contentType:W.mimeType,width:W.video.width||640,height:W.video.height||360,bitrate:W.c6*8||1E6,framerate:W.video.fps||30});W.audio&&(k.audio={contentType:W.mimeType,channels:""+(W.audio.numChannels||2),bitrate:W.c6*8||128E3,samplerate:W.audio.sampleRate||44100});return Y.decodingInfo(k).then(function(P){W.K=P})}; Nn=function(W){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(W)}; a9=function(W){return/(vp9|vp09|vp8|avc1|av01)/.test(W)}; WC=function(W){return W.includes("vtt")||W.includes("text/mp4")}; yR=function(W){return W.indexOf("/mp4")>=0?1:W.indexOf("/webm")>=0?2:W.indexOf("/x-flv")>=0?3:W.indexOf("/vtt")>=0?4:0}; YB=function(W,Y,k,P,T,I,X){var h=new G2;Y in g.FP||(Y="small");Y==="light"&&(Y="tiny");P&&T?(T=Number(T),P=Number(P)):(T=g.FP[Y],P=Math.round(T*16/9));I=new ww(P,T,0,null,void 0,Y,I,X);W=unescape(W.replace(/"/g,'"'));return new o9(k,W,{audio:h,video:I})}; $B=function(W){var Y="id="+W.id;W.video&&(Y+=", res="+W.video.qualityLabel);var k,P;return Y+", byterate=("+((k=W.Do)==null?void 0:k.toFixed(0))+", "+((P=W.c6)==null?void 0:P.toFixed(0))+")"}; kB=function(W,Y){return{start:function(k){return W[k]}, end:function(k){return Y[k]}, length:W.length}}; gm5=function(W,Y,k){for(var P=[],T=[],I=0;I=Y)return k}catch(P){}return-1}; jc=function(W,Y){return Tc(W,Y)>=0}; Fs7=function(W,Y){if(!W)return NaN;Y=Tc(W,Y);return Y>=0?W.start(Y):NaN}; IH=function(W,Y){if(!W)return NaN;Y=Tc(W,Y);return Y>=0?W.end(Y):NaN}; X_=function(W){return W&&W.length?W.end(W.length-1):NaN}; Sc=function(W){return X_(W)>0}; hf=function(W,Y){W=IH(W,Y);return W>=0?W-Y:0}; BC=function(W,Y,k){for(var P=[],T=[],I=0;Ik||(P.push(Math.max(Y,W.start(I))-Y),T.push(Math.min(k,W.end(I))-Y));return kB(P,T)}; OM=function(W,Y,k,P){g.NR.call(this);var T=this;this.AY=W;this.start=Y;this.end=k;this.isActive=P;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.DH={error:function(){!T.Xr()&&T.isActive&&T.publish("error",T)}, updateend:function(){!T.Xr()&&T.isActive&&T.publish("updateend",T)}}; this.AY.cH(this.DH);this.yf=this.isActive}; ZQ=function(W,Y,k,P,T,I){g.NR.call(this);var X=this;this.qT=W;this.I7=Y;this.id=k;this.containerType=P;this.lz=T;this.qa=I;this.Ep=this.US=this.Ma=null;this.F_=!1;this.appendWindowStart=this.timestampOffset=0;this.V8=kB([],[]);this.j8=!1;this.Y_=[];this.OY=uY?[]:void 0;this.handler=function(B){return X.publish(B.type,X)}; var h;if((h=this.qT)==null?0:h.addEventListener)this.qT.addEventListener("updateend",this.handler),this.qT.addEventListener("error",this.handler)}; iY=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Mt=function(W,Y){this.ob=W;this.W=Y===void 0?!1:Y;this.K=!1}; tf=function(W,Y,k){k=k===void 0?!1:k;g.e.call(this);this.mediaElement=W;this.j1=Y;this.isView=k;this.X=0;this.T=!1;this.C=!0;this.N=0;this.callback=null;this.L=!1;this.j1||(this.I7=this.mediaElement.Tn());this.events=new g.p5(this);g.v(this,this.events);this.J=new Mt(this.j1?window.URL.createObjectURL(this.j1):this.I7.webkitMediaSourceURL,!0);W=this.j1||this.I7;HO(this.events,W,["sourceopen","webkitsourceopen"],this.Hqr);HO(this.events,W,["sourceclose","webkitsourceclose"],this.Fyr);this.G={updateend:this.WI}}; wPX=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Qb2=function(W,Y){qt(W)?g.GR(function(){Y(W)}):W.callback=Y}; yd1=function(W,Y,k){if(RH){var P;HC(W.mediaElement,{l:"mswssb",sr:(P=W.mediaElement.W6)==null?void 0:P.Jf()},!1);Y.cH(W.G,W);k.cH(W.G,W)}W.W=Y;W.K=k;g.v(W,Y);g.v(W,k)}; nY=function(W){return!!W.W||!!W.K}; qt=function(W){try{return pY(W)==="open"}catch(Y){return!1}}; pY=function(W){if(W.j1)return W.j1.readyState;switch(W.I7.webkitSourceState){case W.I7.SOURCE_OPEN:return"open";case W.I7.SOURCE_ENDED:return"ended";default:return"closed"}}; Gc=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; ekC=function(W){qt(W)&&(W.j1?W.j1.endOfStream():W.I7.webkitSourceEndOfStream(W.I7.EOS_NO_ERROR))}; omS=function(W,Y,k,P){if(!W.W||!W.K)return null;var T=W.W.isView()?W.W.AY:W.W,I=W.K.isView()?W.K.AY:W.K,X=new tf(W.mediaElement,W.j1,!0);X.J=W.J;yd1(X,new OM(T,Y,k,P),new OM(I,Y,k,P));qt(W)||W.W.v3(W.W.m2());return X}; vmq=function(W){var Y;(Y=W.W)==null||Y.pK();var k;(k=W.K)==null||k.pK();W.C=!1}; KY=function(){var W=this;this.cW=this.Ap=HC5;this.promise=new g.EJ(function(Y,k){W.Ap=Y;W.cW=k})}; EM=function(){g.e.call(this);this.yG=!1;this.ob=null;this.G=this.X=!1;this.T=new g.S2;this.W6=null;g.v(this,this.T)}; Jf=function(W){W=W.c$();return W.length<1?NaN:W.end(W.length-1)}; Coq=function(W){!W.K&&wPX()&&(W.J?W.J.then(function(){return Coq(W)}):W.pn()||(W.K=W.s0()))}; Ls7=function(W){W.K&&(W.K.dispose(),W.K=void 0)}; HC=function(W,Y,k){var P;((P=W.W6)==null?0:P.OR())&&W.W6.y5("rms",Y,k===void 0?!1:k)}; Uy1=function(W,Y,k){W.isPaused()||W.getCurrentTime()>Y||k>10||(W.play(),g.Ii(function(){Uy1(W,W.getCurrentTime(),k+1)},500))}; lOS=function(W,Y){W.ob&&W.ob.equals(Y)||(W.ob&&W.ob.dispose(),W.ob=Y)}; sM=function(W){return hf(W.EE(),W.getCurrentTime())}; biz=function(W,Y){if(W.Tg()===0||W.hasError())return!1;var k=W.getCurrentTime()>0;return Y>=0&&(W=W.c$(),W.length||!k)?jc(W,Y):k}; r6=function(W){W.pn()&&(W.W6&&W.W6.k0("rs_s"),yW&&W.getCurrentTime()>0&&W.seekTo(0),W.uP(),W.load(),lOS(W,null));delete W.J}; Af=function(W){switch(W.NI()){case 2:return"progressive.net.retryexhausted";case 3:return W=W.JD(),(W==null?0:W.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||cdF&&(W==null?0:W.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.zc=function(W,Y,k){this.dc=Y===void 0?null:Y;this.seekSource=k===void 0?null:k;this.state=W||64}; d6=function(W,Y,k){k=k===void 0?!1:k;return xyd(W,Y.getCurrentTime(),(0,g.q5)(),sM(Y),k)}; mW=function(W,Y,k,P){if(!(Y===W.state&&k===W.dc&&P===W.seekSource||Y!==void 0&&(Y&128&&!k||Y&2&&Y&16))){var T;if(T=Y)T=Y||W.state,T=!!(T&16||T&32);W=new g.zc(Y,k,T?P?P:W.seekSource:null)}return W}; DQ=function(W,Y,k){return mW(W,W.state|Y,null,k===void 0?null:k)}; g6=function(W,Y){return mW(W,W.state&~Y,null,null)}; F_=function(W,Y,k,P){return mW(W,(W.state|Y)&~k,null,P===void 0?null:P)}; g.b=function(W,Y){return!!(W.state&Y)}; g.w6=function(W,Y){return Y.state===W.state&&Y.dc===W.dc}; Q8=function(W){return W.isPlaying()&&!g.b(W,16)&&!g.b(W,32)}; y8=function(W){return g.b(W,128)?-1:g.b(W,2)?0:g.b(W,2048)?3:g.b(W,64)?-1:g.b(W,1)&&!g.b(W,32)?3:g.b(W,8)?1:g.b(W,4)?2:-1}; oH=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G,J){g.e.call(this);var d=this;this.JE=W;this.slot=Y;this.layout=k;this.sP=P;this.i8=T;this.qq=I;this.Cg=X;this.CH=h;this.UR=B;this.rX=O;this.position=Z;this.X=M;this.P6=t;this.Bw=q;this.E6=G;this.context=J;this.ey=!0;this.C=!1;this.NT="not_rendering";this.K=!1;this.J=new k1;W=bb(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.dD=new uH(k.W7,this.sP,W,k.layoutId);var A;W=((A=ec(this))==null?void 0:A.progressCommands)||[];this.T=new xRV(B, W,k.layoutId,function(){return d.bC()}); this.W=new EZ0({adCpn:this.layout.layoutId,cU:J.cU,EZ:this.Bw,qa:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; vC=function(W){return{layoutId:W.aJ(),k$:W.Bw,AD:W.qq.get(),Nh:W.OU()}}; CY=function(W,Y){return Y.layoutId!==W.layout.layoutId?(W.JE.Wk(W.slot,Y,new Uq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+W.layout.layoutId+("and LayoutType: "+W.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; LY=function(W){W.NT="rendering_start_requested";W.rX(-1)}; ec=function(W){return bb(W.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; fO5=function(W){PP("Received layout exit signal when not in layout exit flow.",W.slot,W.layout)}; VaF=function(W){var Y;return((Y=UM(W.qq.get(),2))==null?void 0:Y.clientPlaybackNonce)||""}; lY=function(W,Y){switch(Y){case "normal":W.Z_("complete");break;case "skipped":W.Z_("skip");break;case "abandoned":Rf(W.dD,"impression")&&W.Z_("abandon")}}; bY=function(W,Y){W.C||(Y=new g.T4(Y.state,new g.zc),W.C=!0);return Y}; cC=function(W,Y){af(Y)?W.rX(1):g.Sa(Y,4)&&!g.Sa(Y,2)&&W.u$();Ib(Y,4)<0&&!(Ib(Y,2)<0)&&W.YS()}; Nqd=function(W){W.position===0&&(W.CH.get(),W=bb(W.layout.clientMetadata,"metadata_type_ad_placement_config").kind,W={adBreakType:xB(W)},KS("ad_bl"),g.Ek(W))}; fY=function(W,Y){tp(W.dD,Y,!W.K)}; WRF=function(W){var Y;return(((Y=ec(W))==null?void 0:Y.progressCommands)||[]).findIndex(function(k){return!!g.U(k==null?void 0:k.command,aOX)})!==-1}; V8=function(W,Y){var k=bb(W.clientMetadata,"metadata_type_eligible_for_ssap");return k===void 0?(PP("Expected SSAP eligibility in PlayerBytes factory",W),!1):Y.OU(k)}; Nt=function(W,Y){if(!F4(Y.get(),"html5_ssap_pass_transition_reason"))return 3;switch(W){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return PP("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return PP("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:W}),3;default:hQ(W,"unknown layoutExitReason")}}; YkV=function(W){PP("getExitReason: unexpected reason",void 0,void 0,{reason:W})}; aH=function(W,Y){if(F4(Y.get(),"html5_ssap_pass_transition_reason"))switch(W){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return YkV(W),"abandoned";case 3:case 1:return YkV(W),"error";default:hQ(W,"unexpected transition reason")}else switch(W){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return PP("getExitReason: unexpected reason",void 0,void 0,{reason:W}),"error";default:hQ(W,"unexpected transition reason")}}; g.Wv=function(W,Y,k){sk(W,k)||Aw(W,Y,k);sk(W,"video_to_ad")||Aw(W,Y,"video_to_ad");sk(W,"ad_to_video")||Aw(W,Y,"ad_to_video");sk(W,"ad_to_ad")||Aw(W,Y,"ad_to_ad")}; YD=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G,J,d){oH.call(this,W,Y,k,P,T,I,X,h,O,u,Z,M,t,q,G,J,d);var A=this;this.RI=B;this.MS=Z;this.uo=!0;this.Mw=this.oB=0;this.m8=D5(function(){nZ7(vC(A));A.JE.Vi(A.slot,A.layout)}); this.VS=D5(function(){pMF(vC(A));A.NT!=="rendering_stop_requested"&&A.MS(A);A.layoutExitReason?A.JE.oI(A.slot,A.layout,A.layoutExitReason):fO5(A)}); this.timer=new g.mQ(200);this.timer.listen("tick",function(){A.Xi()}); g.v(this,this.timer)}; kD=function(W){W.Mw=Date.now();$D(W,W.oB);W.timer.start()}; $k1=function(W){W.oB=W.bC();W.U4(W.oB/1E3,!0);$D(W,W.oB)}; $D=function(W,Y){Y={current:Y/1E3,duration:W.bC()/1E3};W.RI.get().ou("onAdPlaybackProgress",Y)}; Pv=function(W){YD.call(this,W.JE,W.slot,W.Xu,W.sP,W.i8,W.qq,W.Cg,W.CH,W.RI,W.UR,W.rX,W.MS,W.lE,W.VV,W.P6,W.Bw,W.E6,W.context)}; Tn=function(W){YD.call(this,W.JE,W.slot,W.Xu,W.sP,W.i8,W.qq,W.Cg,W.CH,W.RI,W.UR,W.rX,W.MS,W.lE,W.VV,W.P6,W.Bw,W.E6,W.context)}; jt=function(){Tn.apply(this,arguments)}; kw2=function(W){return V8(W.slot,W.P6.get())?new jt(W):new Pv(W)}; St=function(W){oH.call(this,W.callback,W.slot,W.Xu,W.sP,W.i8,W.qq,W.Cg,W.CH,W.UR,W.rX,W.MS,W.lE,W.VV,W.P6,W.Bw,W.E6,W.context);var Y=this;this.adCpn="";this.tV=this.wQ=0;this.m8=D5(function(){nZ7(vC(Y));Y.JE.Vi(Y.slot,Y.layout)}); this.VS=D5(function(){pMF(vC(Y));Y.NT!=="rendering_stop_requested"&&Y.MS(Y);Y.layoutExitReason?Y.JE.oI(Y.slot,Y.layout,Y.layoutExitReason):fO5(Y)}); this.a6=W.a6;this.JT=W.JT;this.wZ=W.wZ;this.RI=W.RI;this.fu=W.fu;this.MS=W.MS;if(!this.OU()){F4(this.P6.get(),"html5_disable_media_load_timeout")||(this.Ev=new g.C_(function(){Y.JP("load_timeout",new Uq("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); W=IL(this.P6.get());var k=Xi(this.P6.get());W&&k&&(this.RP=new g.C_(function(){var P=bb(Y.layout.clientMetadata,"metadata_type_preload_player_vars");P&&Y.JT.get().Y.preloadVideoByPlayerVars(P,2,300)}))}}; TG7=function(W,Y){var k=bb(Y.clientMetadata,"metadata_type_ad_video_id"),P=bb(Y.clientMetadata,"metadata_type_legacy_info_card_vast_extension");k&&P&&W.fu.get().Y.V().UP.add(k,{tq:P});(Y=bb(Y.clientMetadata,"metadata_type_sodar_extension_data"))&&Ie2(W.a6.get(),Y);PtV(W.Cg.get(),!1)}; jlC=function(W){PtV(W.Cg.get(),!0);var Y;((Y=W.shrunkenPlayerBytesConfig)==null?0:Y.shouldRequestShrunkenPlayerBytes)&&W.Cg.get().xp(!1)}; I75=function(W){return new hA(W)}; Bv=function(){St.apply(this,arguments)}; hA=function(){Bv.apply(this,arguments)}; XE1=function(W){return kw2(Object.assign({},W,{JE:W.callback,rX:function(){}}))}; SkC=function(W){return new St(Object.assign({},W,{rX:function(Y){W.RI.get().ou("onAdIntroStateChange",Y)}}))}; hHV=function(W){function Y(k){W.RI.get().G4(k)} return V8(W.slot,W.P6.get())?I75(Object.assign({},W,{rX:Y})):new St(Object.assign({},W,{rX:Y}))}; O6=function(W){for(var Y=W.Xu,k=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],P=g.p(Zd()),T=P.next();!T.done;T=P.next())k.push(T.value);if(w5(Y,{ya:k,EV:["LAYOUT_TYPE_MEDIA_BREAK"]}))return XE1(W);Y=W.Xu;k=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];P=g.p(Zd());for(T=P.next();!T.done;T=P.next())k.push(T.value);if(w5(Y,{ya:k,EV:["LAYOUT_TYPE_MEDIA"]}))return vj(W.Xu.clientMetadata,"metadata_type_ad_intro")?SkC(W):hHV(W)}; OS2=function(W){var Y=bb(W.clientMetadata,"metadata_type_ad_placement_config").kind,k=bb(W.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:W.layoutId,adType:BGS(k),adBreakType:xB(Y)}}; xB=function(W){switch(W){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"}}; BGS=function(W){switch(W){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; unz=function(W){try{return new uE(W.O$,W.slot,W.layout,W.Yh,W.nN,W.qq,W.Pa,W.JT,W.er,W.Cg,W.Dxh,W)}catch(Y){}}; uE=function(W,Y,k,P,T,I,X,h,B,O,u,Z){g.e.call(this);this.O$=W;this.slot=Y;this.layout=k;this.Yh=P;this.nN=T;this.qq=I;this.Pa=X;this.JT=h;this.er=B;this.Cg=O;this.params=Z;this.ey=!0;W=O6(u);if(!W)throw Error("Invalid params for sublayout");this.dZ=W}; ZS1=function(){this.W=1;this.K=new k1}; Zt=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t){g.e.call(this);this.callback=W;this.qq=Y;this.Pa=k;this.JT=P;this.Cg=T;this.gV=I;this.CH=X;this.wU=h;this.slot=B;this.layout=O;this.Yh=u;this.QH=Z;this.er=M;this.P6=t;this.ey=!0;this.ZV=!1;this.Ls=[];this.tS=-1;this.FN=!1;this.lZ=new ZS1}; iSq=function(W){var Y;return(Y=W.layout.e3)!=null?Y:bb(W.layout.clientMetadata,"metadata_type_sub_layouts")}; iE=function(W){return{AD:W.qq.get(),k$:!1,Nh:W.OU()}}; MC1=function(W,Y,k){if(W.X8()===W.Ls.length-1){var P,T;PP("Unexpected skip requested during the last sublayout",(P=W.LN())==null?void 0:P.jr(),(T=W.LN())==null?void 0:T.Z2(),{requestingSlot:Y,requestingLayout:k})}}; tC7=function(W,Y,k){return k.layoutId!==MZ(W,Y,k)?(PP("onSkipRequested for a PlayerBytes layout that is not currently active",W.jr(),W.Z2()),!1):!0}; qkv=function(W){W.X8()===W.Ls.length-1&&PP("Unexpected skip with target requested during the last sublayout")}; RHq=function(W,Y,k){return k.renderingContent===void 0&&k.layoutId!==MZ(W,Y,k)?(PP("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",W.jr(),W.Z2(),{requestingSlot:Y,requestingLayout:k}),!1):!0}; HSd=function(W,Y,k,P){var T=bb(Y.Z2().clientMetadata,"metadata_type_ad_pod_skip_target");if(T&&T>0&&T0)){PP("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",W.slot,W.layout,{indexToPlay:Y,layoutId:W.layout.layoutId});break a}W.tS=Y;Y=W.LN();if(W.X8()>0&&!W.OU()){var k=W.CH.get();k.K=!1;var P={};k.W&&k.videoId&&(P.cttAuthInfo={token:k.W,videoId:k.videoId});Jw("ad_to_ad",P)}k=g.U(Y.Z2().renderingContent,fK);if(k==null?0: k.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var T;k=!((T=W.gV.get().PDq.get(k.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&T)}else k=!1;k?tA(W,W.X8()+1):W.W2(Y)}}; Hv=function(W){Zt.call(this,W.O$,W.qq,W.Pa,W.JT,W.Cg,W.gV,W.CH,W.wU,W.slot,W.layout,W.Yh,W.QH,W.er,W.P6)}; Gwz=function(W){(W=W.LN())&&W.ME()}; nV=function(W){Zt.call(this,W.O$,W.qq,W.Pa,W.JT,W.Cg,W.gV,W.CH,W.wU,W.slot,W.layout,W.Yh,W.QH,W.er,W.P6);this.F5=void 0}; KRd=function(W,Y){W.qs()&&!T2(W.lZ.K)||W.callback.oI(W.slot,W.layout,Y)}; pV=function(W){return F4(W.P6.get(),"html5_ssap_pass_transition_reason")}; Ef2=function(W,Y,k){Y.Iy().currentState<2&&(k=aH(k,W.P6),Y.ej(Y.Z2(),k));k=Y.Iy().W;W.JM(W.slot,Y.Z2(),k)}; Jw6=function(W,Y){if(W.lZ.K.currentState<2){var k=aH(Y,W.P6);k==="error"?W.callback.Wk(W.slot,W.layout,new Uq("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:Y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):RL(W.QH,W.layout,k)}}; Gn=function(W,Y,k){Y.Iy().currentState>=2||(Y.ej(Y.Z2(),k),T2(Y.Iy())&&(MQ(W.wU,W.slot,Y.Z2(),k),W.F5=void 0))}; sl5=function(W,Y){W.lZ.W===2&&Y!==W.s3()&&PP("onClipEntered: unknown cpn",W.slot,W.layout,{cpn:Y})}; rwd=function(W,Y){var k=W.LN();if(k){var P=k.Z2().layoutId,T=W.X8()+1;W.qs()?Gn(W,k,Y):k.ej(k.Z2(),Y);T>=0&&TT&&X.bR(u,T-P);return u}; Ql2=function(W,Y,k){var P=bb(Y.clientMetadata,"metadata_type_sodar_extension_data");if(P)try{Ie2(k,P)}catch(T){PP("Unexpected error when loading Sodar",W,Y,{error:T})}}; ywV=function(W,Y,k,P,T,I,X){zn(W,Y,new g.T4(k,new g.zc),P,T,X,!1,I)}; zn=function(W,Y,k,P,T,I,X,h){X=X===void 0?!0:X;af(k)&&WT(T,0,null)&&(!Rf(W,"impression")&&h&&h(),W.Z_("impression"));Rf(W,"impression")&&(g.Sa(k,4)&&!g.Sa(k,2)&&W.h$("pause"),Ib(k,4)<0&&!(Ib(k,2)<0)&&W.h$("resume"),g.Sa(k,16)&&T>=.5&&W.h$("seek"),X&&g.Sa(k,2)&&da(W,k.state,Y,P,T,I))}; da=function(W,Y,k,P,T,I,X,h,B){Rf(W,"impression")&&(I?(I=T-P,I=I>=-1&&I<=2):I=Math.abs(P-T)<=1,Dt(W,Y,I?P:T,k,P,X,h&&I),I&&!B&&W.Z_("complete"))}; Dt=function(W,Y,k,P,T,I,X){qU(W,k*1E3,X);T<=0||k<=0||(Y==null?0:g.b(Y,16))||(Y==null?0:g.b(Y,32))||(WT(k,T*.25,P)&&(I&&!Rf(W,"first_quartile")&&I("first"),W.Z_("first_quartile")),WT(k,T*.5,P)&&(I&&!Rf(W,"midpoint")&&I("second"),W.Z_("midpoint")),WT(k,T*.75,P)&&(I&&!Rf(W,"third_quartile")&&I("third"),W.Z_("third_quartile")))}; eH7=function(W,Y){Rf(W,"impression")&&W.h$(Y?"fullscreen":"end_fullscreen")}; ofV=function(W){Rf(W,"impression")&&W.h$("clickthrough")}; vfC=function(W){W.h$("active_view_measurable")}; Ct0=function(W){Rf(W,"impression")&&!Rf(W,"seek")&&W.h$("active_view_fully_viewable_audible_half_duration")}; LR5=function(W){Rf(W,"impression")&&!Rf(W,"seek")&&W.h$("active_view_viewable")}; Ukv=function(W){Rf(W,"impression")&&!Rf(W,"seek")&&W.h$("audio_audible")}; l7v=function(W){Rf(W,"impression")&&!Rf(W,"seek")&&W.h$("audio_measurable")}; bSV=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M){this.callback=W;this.slot=Y;this.layout=k;this.Pa=P;this.dD=T;this.Cg=I;this.Dh=X;this.i8=h;this.a6=B;this.P6=O;this.sP=u;this.qq=Z;this.wZ=M;this.uo=!0;this.U1=this.NT=null;this.adCpn=void 0;this.W=!1}; cwd=function(W,Y,k){var P;AA(W.sP.get(),"ads_qua","cpn."+bb(W.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=UM(W.qq.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+Y+";clr."+k)}; xkC=function(W,Y){var k,P;AA(W.sP.get(),"ads_imp","cpn."+bb(W.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((k=UM(W.qq.get(),2))==null?void 0:k.clientPlaybackNonce)+";clr."+Y+";skp."+!!g.U((P=bb(W.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:P.skipOrPreviewRenderer,Fi))}; wa=function(W){return{enterMs:bb(W.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:bb(W.clientMetadata,"metadata_type_layout_exit_ms")}}; Qu=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t){E6.call(this,W,Y,k,P,T,X,h,B,O,Z);this.Dh=I;this.a6=u;this.i8=M;this.P6=t;this.U1=this.NT=null}; f7F=function(W,Y){var k;AA(W.sP.get(),"ads_imp","acpn."+((k=UM(W.qq.get(),2))==null?void 0:k.clientPlaybackNonce)+";clr."+Y)}; VC5=function(W,Y,k){var P;AA(W.sP.get(),"ads_qua","cpn."+bb(W.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=UM(W.qq.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+Y+";clr."+k)}; yu=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G,J,d,A,F,y,L){this.er=W;this.Yh=Y;this.QH=k;this.qq=P;this.Pa=T;this.Cg=I;this.gV=X;this.sP=h;this.Dh=B;this.Va=O;this.i8=u;this.a6=Z;this.JT=M;this.wZ=t;this.CH=q;this.RI=G;this.UR=J;this.fu=d;this.P6=A;this.W=F;this.context=y;this.E6=L}; et=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G,J,d,A){this.er=W;this.Yh=Y;this.QH=k;this.sP=P;this.i8=T;this.a6=I;this.JT=X;this.qq=h;this.Cg=B;this.gV=O;this.wZ=u;this.CH=Z;this.RI=M;this.UR=t;this.fu=q;this.P6=G;this.Pa=J;this.context=d;this.E6=A}; NG2=function(W,Y,k,P){V4.call(this,"survey-interstitial",W,Y,k,P)}; oL=function(W,Y,k,P,T){TO.call(this,k,W,Y,P);this.sP=T;W=bb(Y.clientMetadata,"metadata_type_ad_placement_config");this.dD=new uH(Y.W7,T,W,Y.layoutId)}; vv=function(W){return Math.round(W.width)+"x"+Math.round(W.height)}; LV=function(W,Y,k){k=k===void 0?CV:k;k.widthW.width*W.height*.2)return{mD:3,hN:501,errorMessage:"ad("+vv(k)+") to container("+vv(W)+") ratio exceeds limit."};if(k.height>W.height/3-Y)return{mD:3,hN:501,errorMessage:"ad("+vv(k)+") covers container("+vv(W)+") center."}}; a7C=function(W,Y){var k=bb(W.clientMetadata,"metadata_type_ad_placement_config");return new uH(W.W7,Y,k,W.layoutId)}; U6=function(W){return bb(W.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; lE=function(W,Y,k,P){V4.call(this,"invideo-overlay",W,Y,k,P);this.interactionLoggingClientData=P}; bE=function(W,Y,k,P,T,I,X,h,B,O,u,Z){TO.call(this,I,W,Y,T);this.sP=k;this.T=X;this.Cg=h;this.UR=B;this.P6=O;this.X=u;this.C=Z;this.dD=a7C(Y,k)}; WLv=function(){var W=["metadata_type_invideo_overlay_ad_renderer"];Zd().forEach(function(Y){W.push(Y)}); return{ya:W,EV:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; cv=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M){TO.call(this,I,W,Y,T);this.sP=k;this.T=X;this.L=h;this.Cg=B;this.UR=O;this.P6=u;this.X=Z;this.C=M;this.dD=a7C(Y,k)}; YcX=function(){for(var W=["metadata_type_invideo_overlay_ad_renderer"],Y=g.p(Zd()),k=Y.next();!k.done;k=Y.next())W.push(k.value);return{ya:W,EV:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; xD=function(W){this.Cg=W;this.W=!1}; $x7=function(W,Y,k){V4.call(this,"survey",W,{},Y,k)}; fV=function(W,Y,k,P,T,I,X){TO.call(this,k,W,Y,P);this.T=T;this.Cg=I;this.P6=X}; kJ6=function(W,Y,k,P,T,I,X,h,B,O){this.Wa=W;this.Cg=Y;this.sP=k;this.T=P;this.i8=T;this.K=I;this.J=X;this.UR=h;this.P6=B;this.W=O}; Pl1=function(W,Y,k,P,T,I,X,h,B,O){this.Wa=W;this.Cg=Y;this.sP=k;this.T=P;this.i8=T;this.K=I;this.J=X;this.UR=h;this.P6=B;this.W=O}; Vu=function(W,Y,k,P,T,I,X,h,B,O){CK.call(this,W,Y,k,P,T,I,X,B);this.Tq=h;this.qq=O}; TAX=function(){var W=OU7();W.ya.push("metadata_type_ad_info_ad_metadata");return W}; jC7=function(W,Y,k,P,T,I,X){this.Wa=W;this.Cg=Y;this.sP=k;this.K=P;this.Tq=T;this.W=I;this.qq=X}; I0z=function(W,Y,k,P,T,I,X,h){this.Wa=W;this.Cg=Y;this.sP=k;this.K=P;this.Tq=T;this.W=I;this.P6=X;this.qq=h}; NZ=function(W,Y){this.slotId=Y;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=W(this.triggerType)}; aL=function(W,Y){this.adPodIndex=W;this.W=Y.length;this.adBreakLengthSeconds=Y.reduce(function(P,T){return P+T},0); var k=0;for(W+=1;W0}; v$=function(W){return!!(W.Qk&&W.slot&&W.layout)}; CP=function(W){var Y,k=(Y=W.config)==null?void 0:Y.adPlacementConfig;W=W.renderer;return!(!k||k.kind==null||!W)}; pgd=function(W){if(!g8(W.adLayoutMetadata))return!1;W=W.renderingContent;return g.U(W,fK)||g.U(W,Vc)||g.U(W,nSv)||g.U(W,bH)||g.U(W,cr)?!0:!1}; LP=function(W){return W.playerVars!==void 0&&W.pings!==void 0&&W.externalVideoId!==void 0}; Vy=function(W){if(!g8(W.adLayoutMetadata))return!1;W=W.renderingContent;var Y=g.U(W,UN);return Y?le(Y):(Y=g.U(W,be))?LP(Y):(Y=g.U(W,c$))?Y.playerVars!==void 0:(Y=g.U(W,fK))?Y.durationMilliseconds!==void 0:g.U(W,xX)||g.U(W,fP)?!0:!1}; le=function(W){W=(W.sequentialLayouts||[]).map(function(Y){return g.U(Y,N3)}); return W.length>0&&W.every(Vy)}; Wb=function(W){return g8(W.adLayoutMetadata)?(W=g.U(W.renderingContent,aI))&&W.pings?!0:!1:!1}; r2F=function(W){if(!g8(W.adLayoutMetadata))return!1;if(g.U(W.renderingContent,GJ6)||g.U(W.renderingContent,KLd))return!0;var Y=g.U(W.renderingContent,YE);return g.U(W.renderingContent,$E)||g.U(Y==null?void 0:Y.sidePanel,ES0)||g.U(Y==null?void 0:Y.sidePanel,J22)||g.U(Y==null?void 0:Y.sidePanel,sC7)?!0:!1}; DxV=function(W){var Y;(Y=!W)||(Y=W.adSlotMetadata,Y=!((Y==null?void 0:Y.slotId)!==void 0&&(Y==null?void 0:Y.slotType)!==void 0));if(Y||!(A2v(W)||W.slotEntryTrigger&&W.slotFulfillmentTriggers&&W.slotExpirationTriggers))return!1;var k;W=(k=W.fulfillmentContent)==null?void 0:k.fulfilledLayout;return(k=g.U(W,N3))?Vy(k):(k=g.U(W,kE))?r2F(k):(k=g.U(W,zzq))?pgd(k):(k=g.U(W,dx6))?Rz2(k):(k=g.U(W,mx0))?g8(k.adLayoutMetadata)?g.U(k.renderingContent,F2)?!0:!1:!1:(W=g.U(W,Pb))?Wb(W):!1}; A2v=function(W){var Y;W=g.U((Y=W.fulfillmentContent)==null?void 0:Y.fulfilledLayout,kE);var k;return W&&((k=W.adLayoutMetadata)==null?void 0:k.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&W.layoutExitNormalTriggers===void 0}; gS2=function(W){var Y;return(W==null?void 0:(Y=W.adSlotMetadata)==null?void 0:Y.slotType)==="SLOT_TYPE_IN_PLAYER"}; wgS=function(W,Y){var k;if((k=W.questions)==null||!k.length||!W.playbackCommands||(Y===void 0||!Y)&&W.questions.length!==1)return!1;W=g.p(W.questions);for(Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var P=k=void 0,T=((k=g.U(Y,Tv))==null?void 0:k.surveyAdQuestionCommon)||((P=g.U(Y,jm))==null?void 0:P.surveyAdQuestionCommon);if(!FLz(T))return!1}return!0}; QC6=function(W){W=((W==null?void 0:W.playerOverlay)||{}).instreamSurveyAdRenderer;var Y;if(W)if(W.playbackCommands&&W.questions&&W.questions.length===1){var k,P=((Y=g.U(W.questions[0],Tv))==null?void 0:Y.surveyAdQuestionCommon)||((k=g.U(W.questions[0],jm))==null?void 0:k.surveyAdQuestionCommon);Y=FLz(P)}else Y=!1;else Y=!1;return Y}; FLz=function(W){if(!W)return!1;W=g.U(W.instreamAdPlayerOverlay,In);var Y=g.U(W==null?void 0:W.skipOrPreviewRenderer,Fi),k=g.U(W==null?void 0:W.adInfoRenderer,Xx);return(g.U(W==null?void 0:W.skipOrPreviewRenderer,Sm)||Y)&&k?!0:!1}; y21=function(W){return W.linearAds!=null&&g8(W.adLayoutMetadata)}; ez2=function(W){return W.linearAd!=null&&W.adVideoStart!=null}; oS7=function(W){if(isNaN(Number(W.timeoutSeconds))||!W.text||!W.ctaButton||!g.U(W.ctaButton,g.hV)||!W.brandImage)return!1;var Y;return W.backgroundImage&&g.U(W.backgroundImage,Bb)&&((Y=g.U(W.backgroundImage,Bb))==null?0:Y.landscape)?!0:!1}; OV=function(W,Y,k,P,T,I,X,h){g.e.call(this);this.P6=W;this.W=Y;this.K=P;this.qq=T;this.T=I;this.J=X;this.JT=h}; LL5=function(W,Y,k){var P,T=((P=k.adSlots)!=null?P:[]).map(function(h){return g.U(h,u2)}); if(k.ac)if(bb(Y.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Yy(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Y.slotId); else{if(W.P6.get().Y.V().U("h5_check_forecasting_renderer_for_throttled_midroll")){var I=k.xi.filter(function(h){var B;return((B=h.renderer)==null?void 0:B.clientForecastingAdRenderer)!=null}); I.length!==0?vSC(W.J,I,T,Y.slotId,k.ssdaiAdsConfig):Yy(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Y.slotId)}else Yy(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},Y.slotId); ClX(W.T,Y)}else{var X;P={vD:Math.round(((I=bb(Y.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:I.vD)||0),K5:(X=bb(Y.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:X.K5};I=bb(Y.clientMetadata,"metadata_type_cue_point");vSC(W.J,k.xi,T,Y.slotId,k.ssdaiAdsConfig,P,I)}}; b76=function(W,Y,k,P,T,I,X,h){var B=UM(W.qq.get(),1);if(Ux0(W.P6.get())){var O=Zh(W.K.get(),k,P,T,B.clientPlaybackNonce,B.eS,B.daiEnabled,B,I,X);l07(W,O);Yy(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return O},Y)}else Yy(W.W.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Zh(W.K.get(),k,P,T,B.clientPlaybackNonce,B.eS,B.daiEnabled,B,I,X,h)},Y)}; l07=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next()){var P=k.value;if(P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.fulfilledLayout)if(k=void 0,P.fulfilledLayout.renderingContent)k=bb(P.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(P.fulfilledLayout.e3){P=g.p(P.fulfilledLayout.e3);for(var T=P.next();!T.done&&(T=T.value,!T.renderingContent||!(k=bb(T.clientMetadata,"metadata_type_player_vars")));T=P.next());}}else k=void 0;if(k){W.JT.get().Y.preloadVideoByPlayerVars(k, 2,300);break}}}; xx0=function(W,Y,k,P,T,I,X){Y=c2z(Y,I,Number(P.prefetchMilliseconds)||0,X);W=Y instanceof f?Y:i2(W,P,T,Y,k);return W instanceof f?W:[W]}; f0S=function(W,Y,k,P,T){var I=$y(W.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");P=[new K2({getAdBreakUrl:P.getAdBreakUrl,vD:0,K5:0}),new ya(!0)];W=Y.pauseDurationMs?Y.lactThresholdMs?{slotId:I,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new A$(W.W,I),slotFulfillmentTriggers:[new ScC(W.W)],slotExpirationTriggers:[new M3(W.W,T),new H$(W.W,I)],fg:"core",clientMetadata:new lb(P),adSlotLoggingData:k}:new f("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new f("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return W instanceof f?W:[W]}; VB0=function(W){var Y,k;return((Y=W.renderer)==null?void 0:(k=Y.adBreakServiceRenderer)==null?void 0:k.getAdBreakUrl)!==void 0}; Mj=function(W,Y,k){if(W.beforeContentVideoIdStartedTrigger)W=W.beforeContentVideoIdStartedTrigger?new W$(L2,Y,W.id):new f("Not able to create BeforeContentVideoIdStartedTrigger");else{if(W.layoutIdExitedTrigger){var P;Y=(P=W.layoutIdExitedTrigger)!=null&&P.triggeringLayoutId?new jp(L2,W.layoutIdExitedTrigger.triggeringLayoutId,W.id):new f("Not able to create LayoutIdExitedTrigger")}else{if(W.layoutExitedForReasonTrigger){var T,I;((T=W.layoutExitedForReasonTrigger)==null?0:T.triggeringLayoutId)&&((I= W.layoutExitedForReasonTrigger)==null?0:I.layoutExitReason)?(Y=hz0(W.layoutExitedForReasonTrigger.layoutExitReason),W=Y instanceof f?Y:new TG(L2,W.layoutExitedForReasonTrigger.triggeringLayoutId,[Y],W.id)):W=new f("Not able to create LayoutIdExitedForReasonTrigger")}else{if(W.onLayoutSelfExitRequestedTrigger){var X;Y=(X=W.onLayoutSelfExitRequestedTrigger)!=null&&X.triggeringLayoutId?new ie(L2,W.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,W.id):new f("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(W.onNewPlaybackAfterContentVideoIdTrigger)W= W.onNewPlaybackAfterContentVideoIdTrigger?new M3(L2,Y,W.id):new f("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(W.skipRequestedTrigger){var h;Y=(h=W.skipRequestedTrigger)!=null&&h.triggeringLayoutId?new q3(L2,W.skipRequestedTrigger.triggeringLayoutId,W.id):new f("Not able to create SkipRequestedTrigger")}else if(W.slotIdEnteredTrigger){var B;Y=(B=W.slotIdEnteredTrigger)!=null&&B.triggeringSlotId?new RI(L2,W.slotIdEnteredTrigger.triggeringSlotId,W.id):new f("Not able to create SlotIdEnteredTrigger")}else if(W.slotIdExitedTrigger){var O; Y=(O=W.slotIdExitedTrigger)!=null&&O.triggeringSlotId?new H$(L2,W.slotIdExitedTrigger.triggeringSlotId,W.id):new f("Not able to create SkipRequestedTrigger")}else if(W.surveySubmittedTrigger){var u;Y=(u=W.surveySubmittedTrigger)!=null&&u.triggeringLayoutId?new d8(L2,W.surveySubmittedTrigger.triggeringLayoutId,W.id):new f("Not able to create SurveySubmittedTrigger")}else{if(W.mediaResumedTrigger)W=W.mediaResumedTrigger&&W.id?new BAz(W.id):new f("Not able to create MediaResumedTrigger");else{if(W.closeRequestedTrigger){var Z; Y=(Z=W.closeRequestedTrigger)!=null&&Z.triggeringLayoutId?new YX(L2,W.closeRequestedTrigger.triggeringLayoutId,W.id):new f("Not able to create CloseRequestedTrigger")}else if(W.slotIdScheduledTrigger){var M;Y=(M=W.slotIdScheduledTrigger)!=null&&M.triggeringSlotId?new A$(L2,W.slotIdScheduledTrigger.triggeringSlotId,W.id):new f("Not able to create SlotIdScheduledTrigger")}else{if(W.mediaTimeRangeTrigger){var t;P=Number((t=W.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var q;X=Number((q= W.mediaTimeRangeTrigger)==null?void 0:q.offsetEndMilliseconds);isFinite(P)&&isFinite(X)?(q=X,q===-1&&(q=k),k=P>q?new f("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:P,offsetEndMs:q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",q===k&&P-500<=q):new M9(P,q),W=k instanceof f?k:new B$(L2,Y,k,!1,W.id)):W=new f("Not able to create MediaTimeRangeTrigger")}else if(W.contentVideoIdEndedTrigger)W=W.contentVideoIdEndedTrigger?new $X(L2,Y,!1,W.id):new f("Not able to create ContentVideoIdEndedTrigger"); else{if(W.layoutIdEnteredTrigger){var G;Y=(G=W.layoutIdEnteredTrigger)!=null&&G.triggeringLayoutId?new P$(L2,W.layoutIdEnteredTrigger.triggeringLayoutId,W.id):new f("Not able to create LayoutIdEnteredTrigger")}else if(W.timeRelativeToLayoutEnterTrigger){var J;Y=(J=W.timeRelativeToLayoutEnterTrigger)!=null&&J.triggeringLayoutId?new mk(L2,Number(W.timeRelativeToLayoutEnterTrigger.durationMs),W.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,W.id):new f("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(W.onDifferentLayoutIdEnteredTrigger){var d; Y=(d=W.onDifferentLayoutIdEnteredTrigger)!=null&&d.triggeringLayoutId&&W.onDifferentLayoutIdEnteredTrigger.slotType&&W.onDifferentLayoutIdEnteredTrigger.layoutType?new ue(L2,W.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,W.onDifferentLayoutIdEnteredTrigger.slotType,W.onDifferentLayoutIdEnteredTrigger.layoutType,W.id):new f("Not able to create CloseRequestedTrigger")}else{if(W.liveStreamBreakStartedTrigger)W=W.liveStreamBreakStartedTrigger&&W.id?new h$(L2,W.id):new f("Not able to create LiveStreamBreakStartedTrigger"); else if(W.liveStreamBreakEndedTrigger)W=W.liveStreamBreakEndedTrigger&&W.id?new II(L2,W.id):new f("Not able to create LiveStreamBreakEndedTrigger");else{if(W.liveStreamBreakScheduledDurationMatchedTrigger){var A;Y=(A=W.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&A.breakDurationMs?new X2(Number(W.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,W.id):new f("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(W.liveStreamBreakScheduledDurationNotMatchedTrigger){var F; Y=(F=W.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&F.breakDurationMs?new Sp(Number(W.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,W.id):new f("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(W.newSlotScheduledWithBreakDurationTrigger){var y;Y=(y=W.newSlotScheduledWithBreakDurationTrigger)!=null&&y.breakDurationMs?new ON(Number(W.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,W.id):new f("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else Y= W.prefetchCacheExpiredTrigger?new t$(L2,W.id):new f("Not able to convert an AdsControlflowTrigger.");W=Y}Y=W}W=Y}Y=W}W=Y}Y=W}W=Y}Y=W}W=Y}Y=W}W=Y}return W}; tV=function(W,Y){Y.W>=2&&(W.slot_pos=Y.adPodIndex);W.autoplay="1"}; a02=function(W,Y,k,P,T,I,X,h){return Y===null?new f("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:Y,ActionCompanionAdRenderer:P}):[NA5(W,Y,X,I,function(B){var O=B.slotId;B=h(B);var u=P.adLayoutLoggingData,Z=new lb([new ET(P),new QI(T)]);O=wk(k.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",O);var M={layoutId:O,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",fg:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W7:new Map, layoutExitNormalTriggers:[new M3(k.W,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:Z,XA:B(M),adLayoutLoggingData:u}})]}; WZS=function(W,Y,k,P,T,I,X,h){return Y===null?new f("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:Y,TopBannerImageTextIconButtonedLayoutViewModel:P}):[NA5(W,Y,X,I,function(B){var O=B.slotId;B=h(B);var u=P.adLayoutLoggingData,Z=new lb([new J7(P),new QI(T)]);O=wk(k.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",O);var M={layoutId:O,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",fg:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", W7:new Map,layoutExitNormalTriggers:[new M3(k.W,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:Z,XA:B(M),adLayoutLoggingData:u}})]}; PBV=function(W,Y,k,P,T,I){if(!I)for(Y=g.p(Y),I=Y.next();!I.done;I=Y.next())I=I.value,qj(W,I.renderer,I.config.adPlacementConfig.kind);W=Array.from(W.values()).filter(function(u){return YTz(u)}); Y=[];I=g.p(W);for(var X=I.next(),h={};!X.done;h={E2:void 0},X=I.next()){h.E2=X.value;X=g.p(h.E2.OB);for(var B=X.next(),O={};!B.done;O={oy:void 0},B=X.next())O.oy=B.value,B=function(u,Z){return function(M){return u.oy.Uf(M,Z.E2.instreamVideoAdRenderer.elementId,u.oy.sB)}}(O,h),O.oy.isContentVideoCompanion?Y.push($2q(k,P,T,h.E2.instreamVideoAdRenderer.elementId,O.oy.associatedCompositePlayerBytesLayoutId,O.oy.adSlotLoggingData,B)):W.length>1?Y.push(kf2(k,P,T,h.E2.instreamVideoAdRenderer.elementId,O.oy.adSlotLoggingData, function(u,Z){return function(M){return u.oy.Uf(M,Z.E2.instreamVideoAdRenderer.elementId,u.oy.sB,u.oy.associatedCompositePlayerBytesLayoutId)}}(O,h))):Y.push(kf2(k,P,T,h.E2.instreamVideoAdRenderer.elementId,O.oy.adSlotLoggingData,B))}return Y}; qj=function(W,Y,k){if(Y=TL2(Y)){Y=g.p(Y);for(var P=Y.next();!P.done;P=Y.next())if((P=P.value)&&P.externalVideoId){var T=Rn(W,P.externalVideoId);T.instreamVideoAdRenderer||(T.instreamVideoAdRenderer=P,T.vE=k)}else PP("InstreamVideoAdRenderer without externalVideoId")}}; TL2=function(W){var Y=[],k=W.sandwichedLinearAdRenderer&&W.sandwichedLinearAdRenderer.linearAd&&g.U(W.sandwichedLinearAdRenderer.linearAd,be);if(k)return Y.push(k),Y;if(W.instreamVideoAdRenderer)return Y.push(W.instreamVideoAdRenderer),Y;if(W.linearAdSequenceRenderer&&W.linearAdSequenceRenderer.linearAds){W=g.p(W.linearAdSequenceRenderer.linearAds);for(k=W.next();!k.done;k=W.next())k=k.value,g.U(k,be)&&Y.push(g.U(k,be));return Y}return null}; YTz=function(W){if(W.instreamVideoAdRenderer===void 0)return PP("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var Y=g.p(W.OB),k=Y.next();!k.done;k=Y.next()){k=k.value;if(k.Uf===void 0)return!1;if(k.sB===void 0)return PP("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(W.vE===void 0||k.L6===void 0||W.vE!==k.L6&&k.L6!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(W.instreamVideoAdRenderer.elementId===void 0)return PP("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:W.vE,"matching APSR kind":k.L6}),!1}return!0}; Rn=function(W,Y){W.has(Y)||W.set(Y,{instreamVideoAdRenderer:void 0,vE:void 0,adVideoId:Y,OB:[]});return W.get(Y)}; Hb=function(W,Y,k,P,T,I,X,h,B){T?Rn(W,T).OB.push({Uoq:Y,L6:k,isContentVideoCompanion:P,sB:X,associatedCompositePlayerBytesLayoutId:I,adSlotLoggingData:h,Uf:B}):PP("Companion AdPlacementSupportedRenderer without adVideoId")}; nR=function(W){var Y=0;W=g.p(W.questions);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k=g.U(k,Tv)||g.U(k,jm)){var P=void 0;Y+=((P=k.surveyAdQuestionCommon)==null?void 0:P.durationMilliseconds)||0}return Y}; pR=function(W){var Y,k,P,T,I=((k=g.U((Y=W.questions)==null?void 0:Y[0],Tv))==null?void 0:k.surveyAdQuestionCommon)||((T=g.U((P=W.questions)==null?void 0:P[0],jm))==null?void 0:T.surveyAdQuestionCommon),X;Y=[].concat(g.ZX(((X=W.playbackCommands)==null?void 0:X.instreamAdCompleteCommands)||[]),g.ZX((I==null?void 0:I.timeoutCommands)||[]));var h,B,O,u,Z,M,t,q,G,J,d,A,F,y,L,V,c,X7,Id,Sz;return{impressionCommands:(h=W.playbackCommands)==null?void 0:h.impressionCommands,errorCommands:(B=W.playbackCommands)== null?void 0:B.errorCommands,muteCommands:(O=W.playbackCommands)==null?void 0:O.muteCommands,unmuteCommands:(u=W.playbackCommands)==null?void 0:u.unmuteCommands,pauseCommands:(Z=W.playbackCommands)==null?void 0:Z.pauseCommands,rewindCommands:(M=W.playbackCommands)==null?void 0:M.rewindCommands,resumeCommands:(t=W.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(q=W.playbackCommands)==null?void 0:q.skipCommands,progressCommands:(G=W.playbackCommands)==null?void 0:G.progressCommands,xoh:(J= W.playbackCommands)==null?void 0:J.clickthroughCommands,fullscreenCommands:(d=W.playbackCommands)==null?void 0:d.fullscreenCommands,activeViewViewableCommands:(A=W.playbackCommands)==null?void 0:A.activeViewViewableCommands,activeViewMeasurableCommands:(F=W.playbackCommands)==null?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(y=W.playbackCommands)==null?void 0:y.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(L=W.playbackCommands)== null?void 0:(V=L.activeViewTracking)==null?void 0:V.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(c=W.playbackCommands)==null?void 0:(X7=c.activeViewTracking)==null?void 0:X7.activeViewAudioMeasurableCommands,endFullscreenCommands:(Id=W.playbackCommands)==null?void 0:Id.endFullscreenCommands,abandonCommands:(Sz=W.playbackCommands)==null?void 0:Sz.abandonCommands,completeCommands:Y}}; Im6=function(W,Y,k,P,T,I,X){return function(h,B){return jVX(W,B.slotId,h,I,function(O,u){var Z=B.layoutId;O=X(O);return Gv(Y,Z,u,T,O,"LAYOUT_TYPE_SURVEY",[new Wj(k),P],k.adLayoutLoggingData)})}}; h30=function(W,Y,k,P,T,I,X){if(!XhV(W))return new f("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:W});var h=W.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[STv(I,Y,k,P,function(B){var O=B.slotId;B=X(B);O=wk(T.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",O);var u={layoutId:O,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",fg:"core"},Z=new jp(T.W,P);return{layoutId:O,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",W7:new Map,layoutExitNormalTriggers:[Z], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([new Yp(h)]),XA:B(u)}})]}; XhV=function(W){W=g.U(W==null?void 0:W.additionalPlayerOverlay,BLd);if(!W)return!1;var Y=W.slidingMessages;return W.title&&Y&&Y.length!==0?!0:!1}; u6V=function(W,Y,k,P,T){var I;if((I=W.playerOverlay)==null||!I.instreamSurveyAdRenderer)return function(){return[]}; if(!QC6(W))return function(){return new f("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:W})}; var X=W.playerOverlay.instreamSurveyAdRenderer,h=nR(X);return h<=0?function(){return new f("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:X})}:function(B,O){var u=OWC(B,k,P,function(Z){var M=Z.slotId; Z=O(Z);var t=pR(X);M=wk(T.K.get(),"LAYOUT_TYPE_SURVEY",M);var q={layoutId:M,layoutType:"LAYOUT_TYPE_SURVEY",fg:"core"},G=new jp(T.W,P),J=new q3(T.W,M),d=new d8(T.W,M),A=new i7d(T.W);return{layoutId:M,layoutType:"LAYOUT_TYPE_SURVEY",W7:new Map,layoutExitNormalTriggers:[G,A],layoutExitSkipTriggers:[J],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[d],II:[],fg:"core",clientMetadata:new lb([new aV(X),new QI(Y),new sq(h/1E3),new dt(t)]),XA:Z(q),adLayoutLoggingData:X.adLayoutLoggingData}}); B=h30(W,k,u.slotId,P,T,B,O);return B instanceof f?B:[u].concat(g.ZX(B))}}; HWC=function(W,Y,k,P,T,I,X){X=X===void 0?!1:X;var h=[];try{var B=[];if(k.renderer.linearAdSequenceRenderer)var O=function(G){G=ZWV(G.slotId,k,Y,T(G),P,I,X);B=G.Vy1;return G.TE}; else if(k.renderer.instreamVideoAdRenderer)O=function(G){var J=G.slotId;G=T(G);var d=X,A=k.config.adPlacementConfig,F=iWV(A),y=F.m9,L=F.Zs;F=k.renderer.instreamVideoAdRenderer;var V;if(F==null?0:(V=F.playerOverlay)==null?0:V.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var c=KR(F,d);V=Math.min(y+c.videoLengthSeconds*1E3,L);d=new aL(0,[c.videoLengthSeconds]);L=c.videoLengthSeconds;var X7=c.playerVars,Id=c.instreamAdPlayerOverlayRenderer,Sz=c.playerOverlayLayoutRenderer, O2=c.adVideoId,$5=M82(k),z1=c.W7;c=c.BD;var cd=F==null?void 0:F.adLayoutLoggingData;F=F==null?void 0:F.sodarExtensionData;J=wk(Y.K.get(),"LAYOUT_TYPE_MEDIA",J);var ad={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",fg:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",W7:z1,layoutExitNormalTriggers:[new II(Y.W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([new LW(P),new Oq(L),new ub(X7),new MV(y),new t1(V),Id&& new UT(Id),Sz&&new lB(Sz),new QI(A),new CW(O2),new yI(d),new p2($5),F&&new ib(F),new IA({current:null}),new RA({}),new gt(c)].filter(t87)),XA:G(ad),adLayoutLoggingData:cd}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var u=qTV(W,P,k.adSlotLoggingData,O);h.push(u);for(var Z=g.p(B),M=Z.next();!M.done;M=Z.next()){var t=M.value,q=t(W,T);if(q instanceof f)return q;h.push.apply(h,g.ZX(q))}}catch(G){return new f(G,{errorMessage:G.message,AdPlacementRenderer:k,numberOfSurveyRenderers:R31(k)})}return h}; R31=function(W){W=(W.renderer.linearAdSequenceRenderer||{}).linearAds;return W!=null&&W.length?W.filter(function(Y){var k,P;return((k=g.U(Y,be))==null?void 0:(P=k.playerOverlay)==null?void 0:P.instreamSurveyAdRenderer)!=null}).length:0}; ZWV=function(W,Y,k,P,T,I,X){var h=Y.config.adPlacementConfig,B=iWV(h),O=B.m9,u=B.Zs;B=(Y.renderer.linearAdSequenceRenderer||{}).linearAds;if(B==null||!B.length)throw new TypeError("Expected linear ads");var Z=[],M={GV:O,lE:0,Qsh:Z};B=B.map(function(q){return nov(W,q,M,k,P,h,T,u,X)}).map(function(q,G){G=new aL(G,Z); return q(G)}); var t=B.map(function(q){return q.oe}); return{TE:phC(k,W,O,t,h,M82(Y),P,u,I),Vy1:B.map(function(q){return q.dxq})}}; nov=function(W,Y,k,P,T,I,X,h,B){var O=KR(g.U(Y,be),B),u=k.GV,Z=k.lE,M=Math.min(u+O.videoLengthSeconds*1E3,h);k.GV=M;k.lE++;k.Qsh.push(O.videoLengthSeconds);var t,q,G=(t=g.U(Y,be))==null?void 0:(q=t.playerOverlay)==null?void 0:q.instreamSurveyAdRenderer;if(O.adVideoId==="nPpU29QrbiU"&&G==null)throw new TypeError("Survey slate media has no survey overlay");return function(J){tV(O.playerVars,J);var d,A,F=O.videoLengthSeconds,y=O.playerVars,L=O.W7,V=O.BD,c=O.instreamAdPlayerOverlayRenderer,X7=O.playerOverlayLayoutRenderer, Id=O.adVideoId,Sz=(d=g.U(Y,be))==null?void 0:d.adLayoutLoggingData;d=(A=g.U(Y,be))==null?void 0:A.sodarExtensionData;A=wk(P.K.get(),"LAYOUT_TYPE_MEDIA",W);var O2={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",fg:"adapter"};J={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",W7:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"adapter",clientMetadata:new lb([new LW(X),new Oq(F),new ub(y),new MV(u),new t1(M),new qV(Z),new IA({current:null}), c&&new UT(c),X7&&new lB(X7),new QI(I),new CW(Id),new yI(J),d&&new ib(d),G&&new Dp(G),new RA({}),new gt(V)].filter(t87)),XA:T(O2),adLayoutLoggingData:Sz};F=u6V(g.U(Y,be),I,X,J.layoutId,P);return{oe:J,dxq:F}}}; KR=function(W,Y){if(!W)throw new TypeError("Expected instream video ad renderer");if(!W.playerVars)throw new TypeError("Expected player vars in url encoded string");var k=cD(W.playerVars),P=Number(k.length_seconds);if(isNaN(P))throw new TypeError("Expected valid length seconds in player vars");var T=Number(W.trimmedMaxNonSkippableAdDurationMs);P=isNaN(T)?P:Math.min(P,T/1E3);T=W.playerOverlay||{};T=T.instreamAdPlayerOverlayRenderer===void 0?null:T.instreamAdPlayerOverlayRenderer;var I=W.playerOverlay|| {};I=I.playerOverlayLayoutRenderer===void 0?null:I.playerOverlayLayoutRenderer;var X=k.video_id;X||(X=(X=W.externalVideoId)?X:void 0);if(!X)throw new TypeError("Expected valid video id in IVAR");if(Y&&P===0){var h;Y=(h=Gfz[X])!=null?h:P}else Y=P;return{playerVars:k,videoLengthSeconds:Y,instreamAdPlayerOverlayRenderer:T,playerOverlayLayoutRenderer:I,adVideoId:X,W7:W.pings?Of(W.pings):new Map,BD:Br(W.pings)}}; M82=function(W){W=Number(W.driftRecoveryMs);return isNaN(W)||W<=0?null:W}; iWV=function(W){var Y=W.adTimeOffset||{};W=Y.offsetEndMilliseconds;Y=Number(Y.offsetStartMilliseconds);if(isNaN(Y))throw new TypeError("Expected valid start offset");W=Number(W);if(isNaN(W))throw new TypeError("Expected valid end offset");return{m9:Y,Zs:W}}; KZ2=function(W){var Y,k=(Y=bb(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Y.current;if(!k)return null;Y=bb(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=W.layoutId,T=bb(W.clientMetadata,"metadata_type_content_cpn"),I=bb(W.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X=bb(W.clientMetadata,"metadata_type_player_underlay_renderer"),h=bb(W.clientMetadata,"metadata_type_ad_placement_config"),B=bb(W.clientMetadata,"metadata_type_video_length_seconds"); var O=vj(W.clientMetadata,"metadata_type_layout_enter_ms")&&vj(W.clientMetadata,"metadata_type_layout_exit_ms")?(bb(W.clientMetadata,"metadata_type_layout_exit_ms")-bb(W.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BF:P,contentCpn:T,ZD:k,Xd:Y,instreamAdPlayerOverlayRenderer:I,instreamAdPlayerUnderlayRenderer:X,adPlacementConfig:h,videoLengthSeconds:B,aN:O,inPlayerLayoutId:bb(W.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bb(W.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; sVd=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q){P=$y(P,"SLOT_TYPE_PLAYER_BYTES");W=Eo6(T,W,X,k,P,B,O);if(W instanceof f)return W;var G;O=(G=bb(W.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:G.layoutId;if(!O)return new f("Invalid adNotify layout");Y=J76(O,T,I,k,h,Y,B,u,Z,M,t,q,X);return Y instanceof f?Y:[W].concat(g.ZX(Y))}; J76=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M){k=r77(Y,k,P,I,X,h,B,O,u,Z,M);if(k instanceof f)return k;W=A7F(Y,W,X,T,k);return W instanceof f?W:[].concat(g.ZX(W.I6),[W.Q3])}; d27=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t){Y=r77(W,Y,k,T,I,h,B,O,u,Z,M,t);if(Y instanceof f)return Y;W=z3C(W,k,I,X,P,h.t9,Y);return W instanceof f?W:W.I6.concat(W.Q3)}; r77=function(W,Y,k,P,T,I,X,h,B,O,u,Z){var M=EV(P,k,O);return M instanceof Uq?new f(M):O.Y.V().experiments.Nq("html5_refactor_in_player_slot_generation")?function(t){var q=new aL(0,[M.sK]);t=m26(Y,M.layoutId,M.Sm,k,JV(M.playerVars,M.Ye,I,B,q),M.sK,T,q,X(t),h.get(M.Sm.externalVideoId),Z);q=[];if(M.Sm.playerOverlay.instreamAdPlayerOverlayRenderer){var G=KZ2(t);if(!G)return PP("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,I6:[]}; q=[D2d(W,G.contentCpn,G.BF,function(d){return sV(Y,d.slotId,"core",G,aA(u,d))},G.inPlayerSlotId)].concat(g.ZX(q)); if(G.instreamAdPlayerUnderlayRenderer&&r0(O)){var J=G.instreamAdPlayerUnderlayRenderer;q=[go7(W,G.contentCpn,G.BF,function(d){return FZX(Y,d.slotId,J,G.adPlacementConfig,G.BF,aA(u,d))})].concat(g.ZX(q))}}return{layout:t, I6:q}}:function(t){var q=new aL(0,[M.sK]); return{layout:m26(Y,M.layoutId,M.Sm,k,JV(M.playerVars,M.Ye,I,B,q),M.sK,T,q,X(t),h.get(M.Sm.externalVideoId),Z),I6:[]}}}; EV=function(W,Y,k){if(!W.playerVars)return new Uq("No playerVars available in InstreamVideoAdRenderer.");var P,T;if(W.elementId==null||W.playerVars==null||W.playerOverlay==null||((P=W.playerOverlay)==null?void 0:P.instreamAdPlayerOverlayRenderer)==null&&((T=W.playerOverlay)==null?void 0:T.playerOverlayLayoutRenderer)==null||W.pings==null||W.externalVideoId==null)return new Uq("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:W});P=cD(W.playerVars);T=Number(P.length_seconds); isNaN(T)&&(T=0,PP("Expected valid length seconds in player vars but got NaN"));if(k.OU(Y.kind==="AD_PLACEMENT_KIND_START")){if(W.layoutId===void 0)return new Uq("Expected server generated layout ID in instreamVideoAdRenderer");Y=W.layoutId}else Y=W.elementId;return{layoutId:Y,Sm:W,playerVars:P,Ye:W.playerVars,sK:T}}; JV=function(W,Y,k,P,T){W.iv_load_policy=P;Y=cD(Y);if(Y.cta_conversion_urls)try{W.cta_conversion_urls=JSON.parse(Y.cta_conversion_urls)}catch(I){PP(I)}k.ws&&(W.ctrl=k.ws);k.eA&&(W.ytr=k.eA);k.dS&&(W.ytrcc=k.dS);k.isMdxPlayback&&(W.mdx="1");W.vvt&&(W.vss_credentials_token=W.vvt,k.Mv&&(W.vss_credentials_token_type=k.Mv),k.mdxEnvironment&&(W.mdx_environment=k.mdxEnvironment));tV(W,T);return W}; whz=function(W){var Y=new Map;W=g.p(W);for(var k=W.next();!k.done;k=W.next())(k=k.value.renderer.remoteSlotsRenderer)&&k.hostElementId&&Y.set(k.hostElementId,k);return Y}; AV=function(W){return W.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; QV7=function(W){return W!=null}; U26=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q){for(var G=[],J=g.p(W),d=J.next();!d.done;d=J.next())if(d=d.value,!A2v(d)&&!gS2(d)){var A=AV(d)&&!!d.slotEntryTrigger.beforeContentVideoIdStartedTrigger,F=B.OU(A),y=y7q(d,O,P,k.eS,F);if(y instanceof f)return y;var L=void 0,V={slotId:d.adSlotMetadata.slotId,slotType:d.adSlotMetadata.slotType,slotPhysicalPosition:(L=d.adSlotMetadata.slotPhysicalPosition)!=null?L:1,fg:"core",slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers, slotExpirationTriggers:y.slotExpirationTriggers},c=g.U(d.fulfillmentContent.fulfilledLayout,N3);if(c){if(!Vy(c))return new f("Invalid PlayerBytesAdLayoutRenderer");L=Z&&!(AV(d)&&d.slotEntryTrigger.beforeContentVideoIdStartedTrigger);y=y.slotFulfillmentTriggers.some(function(X7){return X7 instanceof X2}); F=L?e3v(V,d.adSlotMetadata.triggerEvent,c,k,P,I,O,W,F,M,y,t):ooF(V,d.adSlotMetadata.triggerEvent,c,Y,k,P,T,I,X,h,B,O,W,u,F,d.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof f)return F;y=[];q?y.push(new Bj({current:q})):y.push(new Bj({current:null}));AV(d)&&y.push(new e6({kt:AV(d)&&!!d.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));L&&y.push(new RA({}));k.t9&&y.push(new mK({}));y.push(new Qa(A));d=Object.assign({},V,{clientMetadata:new lb(y),fulfilledLayout:F.layout,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData}); G.push.apply(G,g.ZX(F.I6));G.push(d)}else if(A=g.U(d.fulfillmentContent.fulfilledLayout,kE)){if(!r2F(A))return new f("Invalid PlayerUnderlayAdLayoutRenderer");A=vo0(A,P,k.eS,I,V,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof f)return A;d=Object.assign({},V,{clientMetadata:new lb([]),fulfilledLayout:A,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});G.push(d)}else if(A=g.U(d.fulfillmentContent.fulfilledLayout,dx6)){if(!Rz2(A))return new f("Invalid AboveFeedAdLayoutRenderer"); A=CBV(A,P,k.eS,I,V,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof f)return A;d=Object.assign({},V,{clientMetadata:new lb([]),fulfilledLayout:A,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});G.push(d)}else if(A=g.U(d.fulfillmentContent.fulfilledLayout,mx0)){if(!g8(A.adLayoutMetadata)||!g.U(A.renderingContent,F2))return new f("Invalid BelowPlayerAdLayoutRenderer");A=CBV(A,P,k.eS,I,V,d.adSlotMetadata.triggerEvent,d.adSlotMetadata.triggeringSourceLayoutId); if(A instanceof f)return A;d=Object.assign({},V,{clientMetadata:new lb([]),fulfilledLayout:A,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});G.push(d)}else if(A=g.U(d.fulfillmentContent.fulfilledLayout,Pb)){if(!Wb(A))return new f("Invalid PlayerBytesSequenceItemAdLayoutRenderer");A=LZ1(A,P,k.eS,I,V,d.adSlotMetadata.triggerEvent);if(A instanceof f)return A;d=Object.assign({},V,{clientMetadata:new lb([]),fulfilledLayout:A,adSlotLoggingData:d.adSlotMetadata.adSlotLoggingData});G.push(d)}else return new f("Unable to retrieve a client slot ["+ V.slotType+"] from a given AdSlotRenderer")}return G}; LZ1=function(W,Y,k,P,T,I){var X={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,fg:"core"};Y=zv(W,Y,k);return Y instanceof f?Y:(k=g.U(W.renderingContent,aI))&&k.pings?Object.assign({},X,{renderingContent:W.renderingContent,W7:Of(k.pings)},Y,{XA:aA(P,T)(X),clientMetadata:new lb([new QI(d0(I))]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}):new f("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; CBV=function(W,Y,k,P,T,I,X){var h={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,fg:"core"};Y=zv(W,Y,k);if(Y instanceof f)return Y;k=[];k.push(new QI(d0(I)));I==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&X!==void 0&&k.push(new $p(X));return Object.assign({},h,{renderingContent:W.renderingContent,W7:new Map([["impression",lmz(W)]])},Y,{XA:aA(P,T)(h),clientMetadata:new lb(k),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}; vo0=function(W,Y,k,P,T,I,X){if(W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(X=g.U(W.renderingContent,YE))if(X=g.U(X.sidePanel,J22)){var h={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,fg:"core"};Y=zv(W,Y,k);W=Y instanceof f?Y:Object.assign({},h,{renderingContent:W.renderingContent,W7:new Map([["impression",X.impressionPings||[]],["resume",X.resumePings||[]]])},Y,{XA:aA(P,T)(h),clientMetadata:new lb([new QI(d0(I))]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}else W= new f("DismissablePanelTextPortraitImageRenderer is missing");else W=new f("SqueezebackPlayerSidePanelRenderer is missing");else W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.U(W.renderingContent,GJ6)?(X={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,fg:"core"},Y=zv(W,Y,k),W=Y instanceof f?Y:Object.assign({},X,{renderingContent:W.renderingContent,W7:new Map},Y,{XA:aA(P,T)(X),clientMetadata:new lb([new QI(d0(I))]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})): W=new f("CounterfactualRenderer is missing"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?W=new f("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?W=new f("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.U(W.renderingContent,$E)?(I={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType, fg:"core"},Y=zv(W,Y,k),W=Y instanceof f?Y:X?Object.assign({},I,{renderingContent:W.renderingContent,W7:new Map},Y,{XA:aA(P,T)(I),clientMetadata:new lb([new $p(X)]),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}):new f("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):W=new f("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):W.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.U(W.renderingContent,KLd)? (I={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,fg:"core"},Y=zv(W,Y,k),W=Y instanceof f?Y:Object.assign({},I,{renderingContent:W.renderingContent,W7:new Map([])},Y,{XA:aA(P,T)(I),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new lb([])})):W=new f("AdsEngagementPanelSectionListViewModel is missing"):W=new f("LayoutType ["+W.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return W}; e3v=function(W,Y,k,P,T,I,X,h,B,O,u,Z){if((Z==null?void 0:Z.vD)===void 0||(Z==null?void 0:Z.K5)===void 0)return new f("Cached ad break range from cue point is missing");var M=zv(k,T,P.eS);if(M instanceof f)return M;M={layoutExitMuteTriggers:[],layoutExitNormalTriggers:M.layoutExitNormalTriggers,layoutExitSkipTriggers:[],II:[],layoutExitUserInputSubmittedTriggers:[]};if(g.U(k.renderingContent,be))return W=bWd(W,Y,k,M,T,I,h,B,P.eS,X,Z.vD,Z.K5),W instanceof f?W:W.ZS===void 0?new f("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:W.layout,I6:[W.ZS]};var t=g.U(k.renderingContent,UN);if(t){if(!g8(k.adLayoutMetadata))return new f("Invalid ad layout metadata");if(!le(t))return new f("Invalid sequential layout");t=t.sequentialLayouts.map(function(q){return q.playerBytesAdLayoutRenderer}); W=c7v(W,Y,k,M,t,T,P,I,X,B,h,O,Z.vD,Z.K5,u);return W instanceof f?W:{layout:W.PL,I6:W.I6}}return new f("Not able to convert a sequential layout")}; c7v=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q){var G=x22(T,M,t);if(G instanceof f)return G;var J=[],d=[];G=g.p(G);for(var A=G.next();!A.done;A=G.next()){var F=A.value;A=W;var y=T[F.lE],L=F,V=Y;F=I;var c=X,X7=h,Id=B,Sz=O,O2=u,$5=mw(y);if($5 instanceof f)A=$5;else{var z1={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,fg:"adapter"};L=fmF(V,y,L,F);L instanceof f?A=L:(A=Object.assign({},z1,Dh,{W7:$5,renderingContent:y.renderingContent,clientMetadata:new lb(L),XA:aA(X7,A)(z1), adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData}),A=(y=g0(O2,A,F,c.eS,X7,Id,Sz,void 0,!0))?y instanceof f?y:{layout:A,ZS:y}:new f("Expecting associatedInPlayerSlot"))}if(A instanceof f)return A;J.push(A.layout);d.push(A.ZS)}T={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,fg:"core"};Y=[new p2(Number(k.driftRecoveryMs)),new MV(M),new t1(t),new QI(d0(Y)),new wt(Z),new RA({})];q&&Y.push(new oA({}));return{PL:Object.assign({},T,P,{e3:J,W7:new Map,clientMetadata:new lb(Y), XA:aA(h,W)(T)}),I6:d}}; bWd=function(W,Y,k,P,T,I,X,h,B,O,u,Z){if(!Vy(k))return new f("Invalid PlayerBytesAdLayoutRenderer");var M=mw(k);if(M instanceof f)return M;var t={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,fg:"core"},q=g.U(k.renderingContent,be);if(!q)return new f("Invalid rendering content for DAI media layout");q=KR(q,!1);u={QM:q,lE:0,GV:u,aq:Math.min(u+q.videoLengthSeconds*1E3,Z),tE:new aL(0,[q.videoLengthSeconds])};var G;Z=(G=Number(k.driftRecoveryMs))!=null?G:void 0;Y=fmF(Y, k,u,T,Z);if(Y instanceof f)return Y;W=Object.assign({},t,P,{W7:M,renderingContent:k.renderingContent,clientMetadata:new lb(Y),XA:aA(I,W)(t),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});return(T=g0(X,W,T,B,I,O,h,void 0,!0))?T instanceof f?T:{layout:W,ZS:T}:new f("Expecting associatedInPlayerSlot")}; ooF=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G){var J=zv(k,I,T.eS);if(J instanceof f)return J;if(g.U(k.renderingContent,be)){B=V8V([k],T,B);if(B instanceof f)return B;if(B.length!==1)return new f("Only expected one media layout.");W=NLC(W,Y,k,J,B[0],void 0,"core",P,I,X,h,O,M,t,q,T.eS,Z,void 0,G);return W instanceof f?W:{layout:W.layout,I6:W.ZS?[W.ZS]:[]}}var d=g.U(k.renderingContent,UN);if(d){if(!g8(k.adLayoutMetadata))return new f("Invalid ad layout metadata");if(!le(d))return new f("Invalid sequential layout"); d=d.sequentialLayouts.map(function(A){return A.playerBytesAdLayoutRenderer}); W=amv(W,Y,k.adLayoutMetadata,J,d,P,I,T,B,X,h,O,u,Z,q,M,t,G);return W instanceof f?W:{layout:W.PL,I6:W.I6}}return new f("Not able to convert a sequential layout")}; amv=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G,J,d){var A=new vh({current:null}),F=V8V(T,h,B);if(F instanceof f)return F;B=[];for(var y=[],L=void 0,V=0;V0&&(V.push(d),V.push(new oV(L.adPodSkipTarget)));(I=O.get(L.externalVideoId))&&V.push(new J1(I));I=V}else I=new f("Invalid vod media renderer")}if(I instanceof f)return I;W=Object.assign({},X,P,{W7:F,renderingContent:k.renderingContent,clientMetadata:new lb(I),XA:aA(u,W)(X),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});k=g.U(k.renderingContent,be);if(!k||!LP(k))return new f("Invalid meida renderer");Z=Rn(Z,k.externalVideoId);Z.instreamVideoAdRenderer=k;Z.vE="AD_PLACEMENT_KIND_START";return t?(B=g0(M,W,B,G,u,J,q,d,!1),B instanceof f?B:$VS(W.layoutId,M)&&B?{layout:Object.assign({},W,{clientMetadata:new lb(I.concat(new xo(B)))})}:{layout:W,ZS:B}): {layout:W}}; WK2=function(W,Y,k,P,T){if(!Vy(Y))return new f("Invalid PlayerBytesAdLayoutRenderer");var I=g.U(Y.renderingContent,fK);if(!I||I.durationMilliseconds===void 0)return new f("Invalid endcap renderer");var X={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,fg:"adapter"};P=[new rt(I.durationMilliseconds),new dt({impressionCommands:void 0,abandonCommands:I.abandonCommands?[{commandExecutorCommand:I.abandonCommands}]:void 0,completeCommands:I.completionCommands}),new QI(P), new Pj("LAYOUT_TYPE_ENDCAP")];if(T){P.push(new e8(T.tE.adPodIndex-1));P.push(new qV(T.tE.adPodIndex));var h;P.push(new oV((h=T.adPodSkipTarget)!=null?h:-1))}return Object.assign({},X,Dh,{renderingContent:Y.renderingContent,clientMetadata:new lb(P),W7:I.skipPings?new Map([["skip",I.skipPings]]):new Map,XA:aA(k,W)(X),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData})}; g0=function(W,Y,k,P,T,I,X,h,B){W=W.filter(function(Z){return Z.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Z.adSlotMetadata.triggeringSourceLayoutId===Y.layoutId}); if(W.length!==0){if(W.length!==1)return new f("Invalid InPlayer slot association for the given PlayerBytes layout");W=W[0];X=y7q(W,I,k,P,X);if(X instanceof f)return X;var O;I={slotId:W.adSlotMetadata.slotId,slotType:W.adSlotMetadata.slotType,slotPhysicalPosition:(O=W.adSlotMetadata.slotPhysicalPosition)!=null?O:1,fg:"core",slotEntryTrigger:X.slotEntryTrigger,slotFulfillmentTriggers:X.slotFulfillmentTriggers,slotExpirationTriggers:X.slotExpirationTriggers};O=g.U(W.fulfillmentContent.fulfilledLayout, zzq);if(!O||!pgd(O))return new f("Invalid InPlayerAdLayoutRenderer");X={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,fg:"core"};k=zv(O,k,P);if(k instanceof f)return k;P=[];var u=O.adLayoutMetadata.layoutType;B&&P.push(new RA({}));if(u==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")P.push.apply(P,g.ZX(kzq(W.adSlotMetadata.triggerEvent,Y)));else if(u==="LAYOUT_TYPE_ENDCAP"||u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){P.push(new QI(d0(W.adSlotMetadata.triggerEvent))); if(u==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new f("Cannot parse endcap layout since AdUxReadyApi is not provided");h&&P.push(h)}else return new f("Not able to parse an SDF InPlayer layout");T=Object.assign({},X,k,{renderingContent:O.renderingContent,W7:new Map,XA:aA(T,I)(X),clientMetadata:new lb(P),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},I,{fulfilledLayout:T,clientMetadata:new lb([])})}}; kzq=function(W,Y){var k=[];k.push(new QI(d0(W)));k.push(new $p(Y.layoutId));(W=bb(Y.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&k.push(new IA(W));(W=bb(Y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&k.push(new vh(W));(W=bb(Y.clientMetadata,"metadata_type_remote_slots_data"))&&k.push(new J1(W));(W=bb(Y.clientMetadata,"metadata_type_ad_next_params"))&&k.push(new A7(W));(W=bb(Y.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&k.push(new zf(W));(W= bb(Y.clientMetadata,"metadata_type_ad_pod_info"))&&k.push(new yI(W));(Y=bb(Y.clientMetadata,"metadata_type_ad_video_id"))&&k.push(new CW(Y));return k}; Yq0=function(W,Y,k,P,T,I){function X(O){return Fx(Y,O)} var h=P.LF.inPlayerSlotId,B={layoutId:P.LF.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",fg:"core"};k={slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:new P$(X,W),slotFulfillmentTriggers:[new RI(X,h)],slotExpirationTriggers:[new H$(X,h),new M3(X,k)]};W=Object.assign({},B,{layoutExitNormalTriggers:[new jp(X,W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],W7:new Map,clientMetadata:new lb([new VI(P.LF), new QI(P.adPlacementConfig),T]),XA:aA(I,k)(B),adLayoutLoggingData:P.LF.adLayoutLoggingData});return Object.assign({},k,{clientMetadata:new lb([new Gz(W)])})}; $VS=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next())if(k=k.value,k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var P=g.U(k.fulfillmentContent.fulfilledLayout,kE);if(P&&(P=g.U(P.renderingContent,YE))&&P.associatedPlayerBytesLayoutId===W)return k}}; y7q=function(W,Y,k,P,T){var I=Pbz(Mj(W.slotEntryTrigger,k,P),T,W,Y);if(I instanceof f)return I;for(var X=[],h=g.p(W.slotFulfillmentTriggers),B=h.next();!B.done;B=h.next()){B=Mj(B.value,k,P);if(B instanceof f)return B;X.push(B)}X=Ttq(X,T,W,Y);Y=[];W=g.p(W.slotExpirationTriggers);for(T=W.next();!T.done;T=W.next()){T=Mj(T.value,k,P);if(T instanceof f)return T;Y.push(T)}return{slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:Y}}; Pbz=function(W,Y,k,P){return Y&&k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&W instanceof W$?new NZ(function(T){return Fx(P,T)},k.adSlotMetadata.slotId):W}; Ttq=function(W,Y,k,P){return Y&&k.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?W.map(function(T){return T instanceof RI?new A$(function(I){return Fx(P,I)},k.adSlotMetadata.slotId):T}):W}; zv=function(W,Y,k){for(var P=[],T=g.p(W.layoutExitNormalTriggers||[]),I=T.next();!I.done;I=T.next()){I=Mj(I.value,Y,k);if(I instanceof f)return I;P.push(I)}T=[];I=g.p(W.layoutExitSkipTriggers||[]);for(var X=I.next();!X.done;X=I.next()){X=Mj(X.value,Y,k);if(X instanceof f)return X;T.push(X)}I=[];X=g.p(W.layoutExitMuteTriggers||[]);for(var h=X.next();!h.done;h=X.next()){h=Mj(h.value,Y,k);if(h instanceof f)return h;I.push(h)}X=[];W=g.p(W.layoutExitUserInputSubmittedTriggers||[]);for(h=W.next();!h.done;h= W.next()){h=Mj(h.value,Y,k);if(h instanceof f)return h;X.push(h)}return{layoutExitNormalTriggers:P,layoutExitSkipTriggers:T,layoutExitMuteTriggers:I,layoutExitUserInputSubmittedTriggers:X,II:[]}}; mw=function(W){var Y=g.U(W.renderingContent,be);if(Y==null?0:Y.pings)return Of(Y.pings);W=g.U(W.renderingContent,fK);return(W==null?0:W.skipPings)?new Map([["skip",W.skipPings]]):new Map}; fmF=function(W,Y,k,P,T){Y=g.U(Y.renderingContent,be);if(!Y)return new f("Invalid rendering content for DAI media layout");W=[new LW(P),new Oq(k.QM.videoLengthSeconds),new ub(k.QM.playerVars),new MV(k.GV),new t1(k.aq),new qV(k.lE),new QI(d0(W)),new CW(k.QM.adVideoId),new yI(k.tE),Y.sodarExtensionData&&new ib(Y.sodarExtensionData),new IA({current:null}),new RA({}),new gt(Br(Y.pings))].filter(QV7);T!==void 0&&W.push(new p2(T));return W}; x22=function(W,Y,k){W=W.map(function(B){return KR(g.U(B.renderingContent,be),!1)}); var P=W.map(function(B){return B.videoLengthSeconds}),T=P.map(function(B,O){return new aL(O,P)}),I=Y,X=k,h=[]; W.forEach(function(B,O){X=Math.min(I+B.videoLengthSeconds*1E3,k);tV(B.playerVars,T[O]);h.push({QM:B,GV:I,aq:X,lE:O,tE:T[O]});I=X}); return h}; V8V=function(W,Y,k){for(var P=[],T=g.p(W),I=T.next();!I.done;I=T.next())if(I=g.U(I.value.renderingContent,be)){if(!LP(I))return new f("Invalid vod media renderer");P.push(jAV(I))}T=P.map(function(Z){return Z.sK}); I=[];for(var X=0,h=0;h0?Sz:-1;else if(z1= g.U($5,fK)){$5=t6d(W,Y,k,z1,I,G,h,c,Sz);if($5 instanceof f){t=$5;break a}$5=$5(M);J.push($5.Xu);d=[].concat(g.ZX($5.Yk),g.ZX(d));A=[].concat(g.ZX($5.gM),g.ZX(A));$5.ZS&&(Id=[$5.ZS].concat(g.ZX(Id)))}else if(z1=g.U($5,xX)){if(t===void 0){t=new f("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:z1});break a}$5=H2v(W,Y,k,I,z1,V,h,t,G,F4(u,"supports_multi_step_on_desktop"));if($5 instanceof f){t=$5;break a}$5=$5(M);J.push($5.Xu);$5.ZS&&Id.push($5.ZS); d=[].concat(g.ZX($5.Yk),g.ZX(d));A=[].concat(g.ZX($5.gM),g.ZX(A));F=[].concat(g.ZX($5.uC),g.ZX(F));y=[].concat(g.ZX($5.gt),g.ZX(y));L=[V].concat(g.ZX(L))}else if($5=g.U($5,fP)){$5=np5(W,Y,k,I,$5,V,h,G);if($5 instanceof f){t=$5;break a}$5=$5(M);J.push($5.Xu);$5.ZS&&Id.push($5.ZS);A=[].concat(g.ZX($5.gM),g.ZX(A))}else{t=new f("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={e3:J,layoutExitSkipTriggers:d,layoutExitUserInputSubmittedTriggers:F,II:y,layoutExitMuteTriggers:A,Si:L,I6:Id}}}else a:if(G= A1X(P,k,u),G instanceof f)t=G;else{J=0;d=[];A=[];F=[];y=[];L=[];V=[];c=new X8({current:null});X7=new vh({current:null});Id=!1;O2=[];Sz=-1;q=g.p(P);for($5=q.next();!$5.done;$5=q.next())if($5=$5.value,g.U($5,c$)){$5=qqd(Y,k,g.U($5,c$),h);if($5 instanceof f){t=$5;break a}$5=$5(M);d.push($5.Xu);A=[].concat(g.ZX($5.Yk),g.ZX(A));F=[].concat(g.ZX($5.gM),g.ZX(F));$5.ZS&&(O2=[$5.ZS].concat(g.ZX(O2)))}else if(g.U($5,be)){Sz=EV(g.U($5,be),k,u);if(Sz instanceof Uq){t=new f(Sz);break a}$5=new aL(J,G);$5=zq2(Y, Sz.layoutId,Sz.Sm,k,JV(Sz.playerVars,Sz.Ye,X,O,$5),Sz.sK,I,$5,h(M),X7,B.get(Sz.Sm.externalVideoId),void 0,Z);J++;d.push($5.Xu);A=[].concat(g.ZX($5.Yk),g.ZX(A));F=[].concat(g.ZX($5.gM),g.ZX(F));Id||(V.push(X7),Id=!0);Sz=(Sz=Sz.Sm.adPodSkipTarget)&&Sz>0?Sz:-1}else if(g.U($5,fK)){$5=t6d(W,Y,k,g.U($5,fK),I,J,h,X7,Sz);if($5 instanceof f){t=$5;break a}$5=$5(M);d.push($5.Xu);A=[].concat(g.ZX($5.Yk),g.ZX(A));F=[].concat(g.ZX($5.gM),g.ZX(F));$5.ZS&&(O2=[$5.ZS].concat(g.ZX(O2)))}else if(g.U($5,xX)){if(t=== void 0){t=new f("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.U($5,xX)});break a}$5=H2v(W,Y,k,I,g.U($5,xX),c,h,t,J,F4(u,"supports_multi_step_on_desktop"));if($5 instanceof f){t=$5;break a}$5=$5(M);d.push($5.Xu);$5.ZS&&O2.push($5.ZS);A=[].concat(g.ZX($5.Yk),g.ZX(A));F=[].concat(g.ZX($5.gM),g.ZX(F));y=[].concat(g.ZX($5.uC),g.ZX(y));L=[].concat(g.ZX($5.gt),g.ZX(L));V=[c].concat(g.ZX(V))}else if(g.U($5,fP)){$5=np5(W,Y,k,I,g.U($5,fP),c,h,J);if($5 instanceof f){t=$5;break a}$5=$5(M);d.push($5.Xu);$5.ZS&&O2.push($5.ZS);F=[].concat(g.ZX($5.gM),g.ZX(F))}else{t=new f("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={e3:d,layoutExitSkipTriggers:A,layoutExitUserInputSubmittedTriggers:y,II:L,layoutExitMuteTriggers:F,Si:V,I6:O2}}t instanceof f?M=t:(L=M.slotId,G=t.e3,J=t.layoutExitSkipTriggers,d=t.layoutExitMuteTriggers,A=t.layoutExitUserInputSubmittedTriggers,F=t.Si,M=h(M),y=T?T.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",L=T?T.layoutId: wk(Y.K.get(),y,L),V={layoutId:L,layoutType:y,fg:"core"},M={layout:{layoutId:L,layoutType:y,W7:new Map,layoutExitNormalTriggers:[new ie(Y.W,L)],layoutExitSkipTriggers:J,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:A,II:[],fg:"core",clientMetadata:new lb([new S6(G)].concat(g.ZX(F))),XA:M(V)},I6:t.I6});return M}}; A1X=function(W,Y,k){var P=[];W=g.p(W);for(var T=W.next();!T.done;T=W.next())if(T=T.value,g.U(T,be)){T=EV(g.U(T,be),Y,k);if(T instanceof Uq)return new f(T);P.push(T.sK)}return P}; mVV=function(W,Y,k,P,T,I,X,h){if(!wgS(k,h===void 0?!1:h))return new f("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:k});var B=nR(k);if(B<=0)return new f("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k});var O=new X8({current:null}),u=Im6(W,Y,k,O,P,I,X);return dVV(W,P,I,B,T,function(Z,M){var t=Z.slotId,q=pR(k);Z=X(Z);var G,J=(G=em(Y,P,k.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?G: wk(Y.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fg:"core"};G=u(J,M);var d=bb(G.clientMetadata,"metadata_type_fulfilled_layout");d||PP("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");q=[new QI(P),new rt(B),new dt(q),O];d&&q.push(new Pj(d.layoutType));return{Hg6:{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",W7:new Map,layoutExitNormalTriggers:[new ie(Y.W,J)],layoutExitSkipTriggers:[new q3(Y.W, M.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new d8(Y.W,M.layoutId)],II:[],fg:"core",clientMetadata:new lb(q),XA:Z(t)},GN:G}})}; DV6=function(W){if(!ez2(W))return!1;var Y=g.U(W.adVideoStart,UV);return Y?g.U(W.linearAd,be)&&v$(Y)?!0:(PP("Invalid Sandwich with notify"),!1):!1}; gp2=function(W){if(W.linearAds==null)return!1;W=g.U(W.adStart,UV);return W?v$(W)?!0:(PP("Invalid LASR with notify"),!1):!1}; FKd=function(W){if(!y21(W))return!1;W=g.U(W.adStart,UV);return W?v$(W)?!0:(PP("Invalid LASR with notify"),!1):!1}; l2=function(W,Y,k,P,T,I,X,h,B,O){this.T=W;this.K=Y;this.W=k;this.P6=P;this.v5=T;this.J=I;this.Cg=X;this.QC=h;this.Na=B;this.loadPolicy=O===void 0?1:O}; Zh=function(W,Y,k,P,T,I,X,h,B,O,u){var Z=[];if(Y.length===0&&P.length===0&&k.length===0)return Z;Y=Y.filter(CP);var M=k.filter(DxV),t=P.filter(CP),q=new Map,G=whz(Y),J=k.some(function(ad){var Mc;return(ad==null?void 0:(Mc=ad.adSlotMetadata)==null?void 0:Mc.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),d=k.some(function(ad){var Mc; return(ad==null?void 0:(Mc=ad.adSlotMetadata)==null?void 0:Mc.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=k.some(function(ad){var Mc; return(ad==null?void 0:(Mc=ad.adSlotMetadata)==null?void 0:Mc.slotType)==="SLOT_TYPE_IN_PLAYER"}),F=k.some(function(ad){var Mc,Ij; return(ad==null?void 0:(Mc=ad.adSlotMetadata)==null?void 0:Mc.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(ad==null?void 0:(Ij=ad.adSlotMetadata)==null?void 0:Ij.slotType)==="SLOT_TYPE_ABOVE_FEED"}); k=k.some(function(ad){var Mc;return(ad==null?void 0:(Mc=ad.adSlotMetadata)==null?void 0:Mc.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(J||d||A||F||k)O=U26(M,Y,h,T,G,W.v5.get(),W.loadPolicy,q,W.P6.get(),W.T.get(),A,X,B,O,u),O instanceof f?PP(O,void 0,void 0,{contentCpn:T}):Z.push.apply(Z,g.ZX(O));O=g.p(Y);for(u=O.next();!u.done;u=O.next())u=u.value,k=wjS(W,q,u,T,I,X,J,h,G,B,M),k instanceof f?PP(k,void 0,void 0,{renderer:u.renderer,config:u.config.adPlacementConfig,kind:u.config.adPlacementConfig.kind,contentCpn:T,daiEnabled:X}):Z.push.apply(Z,g.ZX(k));QAz(W.P6.get())||(I=y17(W,t,T,h,G,q),Z.push.apply(Z,g.ZX(I)));if(W.J===null|| X&&!h.SR){var y,L,V;W=h.t9&&Y.length===1&&((y=Y[0].config)==null?void 0:(L=y.adPlacementConfig)==null?void 0:L.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((V=Y[0].renderer)==null?void 0:V.adBreakServiceRenderer);if(!Z.length&&!W){var c,X7,Id,Sz;PP("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":Y.length,contentCpn:T,"first APR kind":(c=Y[0])==null?void 0:(X7=c.config)==null?void 0:(Id=X7.adPlacementConfig)==null?void 0:Id.kind,renderer:(Sz= Y[0])==null?void 0:Sz.renderer})}return Z}y=P.filter(CP);Z.push.apply(Z,g.ZX(PBV(q,y,W.K.get(),W.J,T,J)));if(!Z.length){var O2,$5,z1,cd;PP("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":Y.length,contentCpn:T,daiEnabled:X.toString(),"first APR kind":(O2=Y[0])==null?void 0:($5=O2.config)==null?void 0:(z1=$5.adPlacementConfig)==null?void 0:z1.kind,renderer:(cd=Y[0])==null?void 0:cd.renderer})}return Z}; y17=function(W,Y,k,P,T,I){function X(M){return aA(W.v5.get(),M)} var h=[];Y=g.p(Y);for(var B=Y.next();!B.done;B=Y.next()){B=B.value;var O=B.renderer,u=O.sandwichedLinearAdRenderer,Z=O.linearAdSequenceRenderer;u&&DV6(u)?(PP("Found AdNotify with SandwichedLinearAdRenderer"),Z=g.U(u.adVideoStart,UV),u=g.U(u.linearAd,be),qj(I,O,B.config.adPlacementConfig.kind),O=void 0,Z=J76((O=Z)==null?void 0:O.layout.layoutId,W.K.get(),W.W.get(),B.config.adPlacementConfig,B.adSlotLoggingData,u,k,P,X,T,W.loadPolicy,W.P6.get(),W.v5.get()),Z instanceof f?PP(Z):h.push.apply(h,g.ZX(Z))): Z&&(!Z.adLayoutMetadata&&gp2(Z)||Z.adLayoutMetadata&&FKd(Z))&&(PP("Found AdNotify with LinearAdSequenceRenderer"),qj(I,O,B.config.adPlacementConfig.kind),O=void 0,u=pjd((O=g.U(Z.adStart,UV))==null?void 0:O.layout.layoutId,W.K.get(),W.W.get(),B.config.adPlacementConfig,B.adSlotLoggingData,Z.linearAds,g8(Z.adLayoutMetadata)?Z.adLayoutMetadata:void 0,k,P,X,T,W.loadPolicy,W.P6.get()),u instanceof f?PP(u):h.push.apply(h,g.ZX(u)))}return h}; wjS=function(W,Y,k,P,T,I,X,h,B,O,u){function Z(d){return aA(W.v5.get(),d)} var M=k.renderer,t=k.config.adPlacementConfig,q=t.kind,G=k.adSlotLoggingData,J=h.SR&&q==="AD_PLACEMENT_KIND_START";J=I&&!J;if(M.adsEngagementPanelRenderer!=null)return Hb(Y,k.elementId,q,M.adsEngagementPanelRenderer.isContentVideoEngagementPanel,M.adsEngagementPanelRenderer.adVideoId,M.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.adsEngagementPanelRenderer;d=aA(W.v5.get(),d);return b2(L,V,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new sT(c),A,F,c.impressionPings,d,M.adsEngagementPanelRenderer.adLayoutLoggingData,y)}),[]; if(M.adsEngagementPanelLayoutViewModel)return Hb(Y,k.elementId,q,M.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,M.adsEngagementPanelLayoutViewModel.adVideoId,M.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.adsEngagementPanelLayoutViewModel;d=aA(W.v5.get(),d);return cb(L,V,"LAYOUT_TYPE_PANEL",new rL(c),A,F,d,M.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,y)}),[]; if(M.actionCompanionAdRenderer!=null){if(M.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return a02(W.K.get(),W.J,W.W.get(),M.actionCompanionAdRenderer,t,G,P,Z);Hb(Y,k.elementId,q,M.actionCompanionAdRenderer.isContentVideoCompanion,M.actionCompanionAdRenderer.adVideoId,M.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.actionCompanionAdRenderer;d=aA(W.v5.get(),d);return b2(L,V,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new ET(c),A,F,c.impressionPings,d,M.actionCompanionAdRenderer.adLayoutLoggingData,y)})}else if(M.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(M.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return WZS(W.K.get(),W.J,W.W.get(),M.topBannerImageTextIconButtonedLayoutViewModel,t,G,P,Z); Hb(Y,k.elementId,q,M.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,M.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,M.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.topBannerImageTextIconButtonedLayoutViewModel;d=aA(W.v5.get(),d);return cb(L,V,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new J7(c),A,F,d,M.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,y)})}else if(M.imageCompanionAdRenderer)Hb(Y, k.elementId,q,M.imageCompanionAdRenderer.isContentVideoCompanion,M.imageCompanionAdRenderer.adVideoId,M.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.imageCompanionAdRenderer; d=aA(W.v5.get(),d);return b2(L,V,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mZ(c),A,F,c.impressionPings,d,M.imageCompanionAdRenderer.adLayoutLoggingData,y)}); else if(M.bannerImageLayoutViewModel)Hb(Y,k.elementId,q,M.bannerImageLayoutViewModel.isContentVideoCompanion,M.bannerImageLayoutViewModel.adVideoId,M.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.bannerImageLayoutViewModel;d=aA(W.v5.get(),d);return cb(L,V,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Dm(c),A,F,d,M.bannerImageLayoutViewModel.adLayoutLoggingData,y)}); else if(M.shoppingCompanionCarouselRenderer)Hb(Y,k.elementId,q,M.shoppingCompanionCarouselRenderer.isContentVideoCompanion,M.shoppingCompanionCarouselRenderer.adVideoId,M.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(d,A,F,y){var L=W.W.get(),V=d.slotId,c=M.shoppingCompanionCarouselRenderer;d=aA(W.v5.get(),d);return b2(L,V,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new gL(c),A,F,c.impressionPings,d,M.shoppingCompanionCarouselRenderer.adLayoutLoggingData,y)}); else if(M.adBreakServiceRenderer){if(!VB0(k))return[];if(q==="AD_PLACEMENT_KIND_PAUSE")return f0S(W.K.get(),t,G,k.renderer.adBreakServiceRenderer,P);if(q!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&q!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return xx0(W.K.get(),t,G,k.renderer.adBreakServiceRenderer,P,T,I);h.t9||PP("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:t,daiEnabledForContentVideo:String(I),isServedFromLiveInfra:String(h.t9),clientPlaybackNonce:h.clientPlaybackNonce}); if(q==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!W.Cg)return new f("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!W.Na)return new f("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");W.Na.VJ({adPlacementRenderer:k,contentCpn:P,eS:T});T=W.Cg.get().getCurrentTimeSec(1,!1);return eqX(W.K.get(),k.renderer.adBreakServiceRenderer,t,T,P,G,I)}if(!W.QC)return new f("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); W.QC.VJ({adPlacementRenderer:k,contentCpn:P,eS:T})}else{if(M.clientForecastingAdRenderer)return hq7(W.K.get(),W.W.get(),t,G,M.clientForecastingAdRenderer,P,T,Z);if(M.invideoOverlayAdRenderer)return Z22(W.K.get(),W.W.get(),t,G,M.invideoOverlayAdRenderer,P,T,Z);if(M.instreamAdPlayerOverlayRenderer)return O2C(W.K.get(),W.W.get(),t,G,M.instreamAdPlayerOverlayRenderer,P,Z);if((M.linearAdSequenceRenderer||M.instreamVideoAdRenderer)&&J)return HWC(W.K.get(),W.W.get(),k,P,Z,O,!W.P6.get().Y.V().U("html5_override_ad_video_length_killswitch")); if(M.linearAdSequenceRenderer&&!J){if(X)return[];qj(Y,M,q);if(M.linearAdSequenceRenderer.adLayoutMetadata){if(!y21(M.linearAdSequenceRenderer))return new f("Received invalid LinearAdSequenceRenderer.")}else if(M.linearAdSequenceRenderer.linearAds==null)return new f("Received invalid LinearAdSequenceRenderer.");if(g.U(M.linearAdSequenceRenderer.adStart,UV)){PP("Found AdNotify in LinearAdSequenceRenderer");k=g.U(M.linearAdSequenceRenderer.adStart,UV);if(!H70(k))return new f("Invalid AdMessageRenderer."); I=M.linearAdSequenceRenderer.linearAds;return Gz7(W.T.get(),W.K.get(),W.W.get(),W.v5.get(),t,G,k,g8(M.linearAdSequenceRenderer.adLayoutMetadata)?M.linearAdSequenceRenderer.adLayoutMetadata:void 0,I,P,T,h,Z,B,W.loadPolicy,W.P6.get())}return r1v(W.K.get(),W.W.get(),t,G,M.linearAdSequenceRenderer.linearAds,g8(M.linearAdSequenceRenderer.adLayoutMetadata)?M.linearAdSequenceRenderer.adLayoutMetadata:void 0,P,T,h,Z,B,W.loadPolicy,W.P6.get(),u)}if(!M.remoteSlotsRenderer||I){if(M.instreamVideoAdRenderer&& !J){if(X)return[];qj(Y,M,q);return d27(W.K.get(),W.W.get(),t,G,M.instreamVideoAdRenderer,P,T,h,Z,B,W.loadPolicy,W.P6.get(),W.v5.get(),u)}if(M.instreamSurveyAdRenderer)return mVV(W.K.get(),W.W.get(),M.instreamSurveyAdRenderer,t,G,P,Z,F4(W.P6.get(),"supports_multi_step_on_desktop"));if(M.sandwichedLinearAdRenderer!=null)return ez2(M.sandwichedLinearAdRenderer)?g.U(M.sandwichedLinearAdRenderer.adVideoStart,UV)?(PP("Found AdNotify in SandwichedLinearAdRenderer"),k=g.U(M.sandwichedLinearAdRenderer.adVideoStart, UV),H70(k)?(I=g.U(M.sandwichedLinearAdRenderer.linearAd,be))?sVd(k,I,t,W.T.get(),W.K.get(),W.W.get(),W.v5.get(),G,P,T,h,Z,B,W.loadPolicy,W.P6.get()):new f("Missing IVAR from Sandwich"):new f("Invalid AdMessageRenderer.")):r1v(W.K.get(),W.W.get(),t,G,[M.sandwichedLinearAdRenderer.adVideoStart,M.sandwichedLinearAdRenderer.linearAd],void 0,P,T,h,Z,B,W.loadPolicy,W.P6.get()):new f("Received invalid SandwichedLinearAdRenderer.");if(M.videoAdTrackingRenderer!=null)return XjF(W.K.get(),W.W.get(),M.videoAdTrackingRenderer, t,G,P,T,h.xZ,Z)}}return[]}; xE=function(W,Y,k,P,T,I,X,h){g.e.call(this);var B=this;this.K=W;this.J=Y;this.Va=P;this.Cg=T;this.P6=I;this.sP=X;this.Pa=h;this.W=null;k.get().addListener(this);this.addOnDisposeCallback(function(){k.Xr()||k.get().removeListener(B)}); P.get().addListener(this);this.addOnDisposeCallback(function(){P.Xr()||P.get().removeListener(B)})}; Nj=function(W,Y,k){var P=W.Cg.get().getCurrentTimeSec(1,!1);W.P6.get().Y.V().OR()&&AA(W.sP.get(),"sdai","onopp.1;evt."+k.event+";start."+k.startSecs.toFixed(3)+";d."+k.sV.toFixed(3));Yy(W.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var T=W.J.get(),I=Y.adPlacementRenderer.renderer.adBreakServiceRenderer,X=Y.contentCpn,h=Y.adPlacementRenderer.adSlotLoggingData;fR(W.P6.get());var B=W.sP;var O=T.P6.get();O=g.W2(O.Y.V().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var u=T.P6.get();var Z=g.W2(u.Y.V().experiments,"min_prefetch_offset_sec_for_livestream_optimization");u=k.startSecs*1E3;u={AE:new M9(u,u+k.sV*1E3),jl:!1,cueProcessedMs:P*1E3};var M=k.startSecs+k.sV;if(P===0)u.f8=new M9(0,M*1E3);else{Z=k.startSecs-Z;var t=Z-P;u.f8=t<=0?new M9(Z*1E3,M*1E3):new M9(Math.floor(P+Math.random()*Math.min(t,O))*1E3,M*1E3)}I=i2(T,I,X,u,h,[new h1(k)]);Ve(T.P6.get())&&AA(B.get(),"abrsm","cpi."+k.identifier+";cps."+k.startSecs+";cpd."+k.sV+";cts."+P+";rbf."+u.f8.start);B.get().Y.gP(k.startSecs- P,u.f8.start/1E3-P);return[I]})}; an=function(W){var Y,k=(Y=bb(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Y.current;if(!k)return null;Y=bb(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=W.layoutId,T=bb(W.clientMetadata,"metadata_type_content_cpn"),I=bb(W.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X=bb(W.clientMetadata,"metadata_type_player_overlay_layout_renderer"),h=bb(W.clientMetadata,"metadata_type_player_underlay_renderer"),B=bb(W.clientMetadata, "metadata_type_ad_placement_config"),O=bb(W.clientMetadata,"metadata_type_video_length_seconds");var u=vj(W.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?bb(W.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):vj(W.clientMetadata,"metadata_type_layout_enter_ms")&&vj(W.clientMetadata,"metadata_type_layout_exit_ms")?(bb(W.clientMetadata,"metadata_type_layout_exit_ms")-bb(W.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BF:P,contentCpn:T,ZD:k,Xd:Y,instreamAdPlayerOverlayRenderer:I, playerOverlayLayoutRenderer:X,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:B,videoLengthSeconds:O,aN:u,inPlayerLayoutId:bb(W.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bb(W.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; vp0=function(W,Y){return opz(W,Y)}; CbC=function(W,Y){Y=opz(W,Y);if(!Y)return null;var k;Y.aN=(k=bb(W.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:k.adBreakRemainingLengthSeconds;return Y}; opz=function(W,Y){var k,P=(k=bb(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current;if(!P)return null;k=SZ2(W,Y);return{C9:XMq(W,Y),adPlacementConfig:bb(W.clientMetadata,"metadata_type_ad_placement_config"),Yd:k,contentCpn:bb(W.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:bb(W.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bb(W.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:bb(W.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,aN:void 0,ZD:P,BF:W.layoutId,videoLengthSeconds:bb(W.clientMetadata,"metadata_type_video_length_seconds")}}; WW=function(W,Y,k,P,T,I,X,h,B){g.e.call(this);this.T=W;this.X=Y;this.C=k;this.J=P;this.W=T;this.K=I;this.v5=X;this.P6=h;this.qq=B;this.ey=!0}; LKz=function(W,Y,k){return go7(W.W.get(),Y.contentCpn,Y.BF,function(P){return FZX(W.K.get(),P.slotId,k,Y.adPlacementConfig,Y.BF,aA(W.v5.get(),P))})}; Yk=function(W,Y,k,P,T,I,X,h){g.e.call(this);this.K=W;this.W=Y;this.J=k;this.P6=P;this.T=T;this.qq=I;this.Cg=X;this.CH=h}; $k=function(W){g.e.call(this);this.W=W}; Yy=function(W,Y,k,P){W.W().kH(Y,P);k=k();W=W.W();W.H7.Fe("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Y,P,k);Y=g.p(k);for(k=Y.next();!k.done;k=Y.next())a:{P=W;k=k.value;P.H7.P4("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",k);P.H7.P4("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",k);try{var T=P.W;if(g.zm(k.slotId))throw new f("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(X4(T,k))throw new f("Duplicate registration for slot.",{slotId:k.slotId,slotEntryTriggerType:k.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!T.x7.Pw.has(k.slotType))throw new f("No fulfillment adapter factory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!T.x7.Iu.has(k.slotType))throw new f("No SlotAdapterFactory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");EG(T,"TRIGGER_CATEGORY_SLOT_ENTRY",k.slotEntryTrigger?[k.slotEntryTrigger]:[]);EG(T,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", k.slotFulfillmentTriggers);EG(T,"TRIGGER_CATEGORY_SLOT_EXPIRATION",k.slotExpirationTriggers);var I=P.W,X=k.slotType+"_"+k.slotPhysicalPosition,h=H2(I,X);if(X4(I,k))throw new f("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");h.set(k.slotId,new Y5d(k));I.W.set(X,h)}catch(X7){X7 instanceof f&&X7.Y4?(P.H7.iE("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",X7.Y4,k),PP(X7,k,void 0,void 0,X7.j2)):(P.H7.iE("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", k),PP(X7,k));break a}X4(P.W,k).X=!0;try{var B=P.W,O=X4(B,k),u=k.slotEntryTrigger,Z=B.x7.hL.get(u.triggerType);Z&&(Z.Eq("TRIGGER_CATEGORY_SLOT_ENTRY",u,k,null),O.wD.set(u.triggerId,Z));for(var M=g.p(k.slotFulfillmentTriggers),t=M.next();!t.done;t=M.next()){var q=t.value,G=B.x7.hL.get(q.triggerType);G&&(G.Eq("TRIGGER_CATEGORY_SLOT_FULFILLMENT",q,k,null),O.A5.set(q.triggerId,G))}for(var J=g.p(k.slotExpirationTriggers),d=J.next();!d.done;d=J.next()){var A=d.value,F=B.x7.hL.get(A.triggerType);F&&(F.Eq("TRIGGER_CATEGORY_SLOT_EXPIRATION", A,k,null),O.N.set(A.triggerId,F))}var y=B.x7.Pw.get(k.slotType).get().build(B.J,k);O.G=y;var L=B.x7.Iu.get(k.slotType).get().build(B.C,k);L.init();O.K=L}catch(X7){X7 instanceof f&&X7.Y4?(P.H7.iE("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",X7.Y4,k),PP(X7,k,void 0,void 0,X7.j2)):(P.H7.iE("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",k),PP(X7,k));Tb(P,k,!0);break a}P.H7.P4("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",k);P.W.Q2(k);for(var V=g.p(P.K),c=V.next();!c.done;c= V.next())c.value.Q2(k);B2(P,k)}}; kk=function(W,Y,k,P,T){g.e.call(this);var I=this;this.K=W;this.J=Y;this.wZ=k;this.context=T;this.W=new Map;P.get().addListener(this);this.addOnDisposeCallback(function(){P.Xr()||P.get().removeListener(I)})}; ClX=function(W,Y){var k=0x8000000000000,P=0,T=0x8000000000000;var I=g.p(Y.slotFulfillmentTriggers);for(var X=I.next();!X.done;X=I.next())if(X=X.value,X instanceof B$){var h=X.W.start;k=Math.min(k,h);P=Math.max(P,X.W.end);X.visible&&(T=Math.min(T,h))}else PP("Found unexpected fulfillment trigger for throttled slot.",Y,null,{fulfillmentTrigger:X});I=k;T=T<0x8000000000000&&k0&&t9(W.X(),k)}; n1=function(W,Y,k,P,T){for(var I=[],X=g.p(W.Ym.values()),h=X.next();!h.done;h=X.next()){var B=h=h.value,O=B.trigger;B=B.slot;if(O.triggerType===Y){if(O instanceof X2||O instanceof Sp||O instanceof ON){if(T&&O.breakDurationMs!==k)continue;if(!T&&O.breakDurationMs===k)continue;if(P.has(B.slotId))continue}I.push(h)}}I.length>0&&t9(W.X(),I)}; $QF=function(W,Y){Y=(Y.sV+1)*1E3;var k=void 0;W=g.p(W.Ym.values());for(var P=W.next();!P.done;P=W.next()){var T=P.value;P=T.trigger;T=T.slot;P instanceof X2&&P.breakDurationMs<=Y&&(!k||P.breakDurationMs>k.trigger.breakDurationMs)&&(k={slot:T,trigger:P})}return k}; kbC=function(W){W=W.adPlacementRenderer.config.adPlacementConfig;if(!W.prefetchModeConfig||!W.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;W=Number(W.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(W)||W<=0?0:Math.floor(Math.random()*W)}; PPX=function(W){W=W.adPlacementRenderer.config.adPlacementConfig;if(W.prefetchModeConfig&&W.prefetchModeConfig.cacheFetchRefreshDurationMs&&(W=Number(W.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(W)||W<=0)))return W}; p1=function(W){W.W=null;W.Ym.clear();W.K&&W.K.stop();W.C&&W.C.stop();var Y;(Y=W.J)==null||Y.stop();delete W.J}; WFV=function(W){var Y=[];W=g.p(W.Ym.values());for(var k=W.next();!k.done;k=W.next())k=k.value.trigger,k instanceof X2&&Y.push(k.breakDurationMs);return Y}; Gp=function(W){g.e.call(this);this.J=W;this.ey=!0;this.Ym=new Map;this.W=new Map;this.K=new Map}; Tk2=function(W,Y){var k=[];if(Y=W.W.get(Y.layoutId)){Y=g.p(Y);for(var P=Y.next();!P.done;P=Y.next())(P=W.K.get(P.value.triggerId))&&k.push(P)}return k}; K1=function(W){g.e.call(this);this.W=W;this.Ym=new Map}; j1q=function(W,Y){for(var k=[],P=g.p(W.Ym.values()),T=P.next();!T.done;T=P.next())T=T.value,T.trigger instanceof NZ&&T.trigger.slotId===Y&&k.push(T);k.length>=1&&t9(W.W(),k)}; IwF=function(W,Y){var k={slotId:$y(Y,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],fg:"surface",clientMetadata:new lb([])},P=Object,T=P.assign;Y=wk(Y,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",k.slotId);Y={layoutId:Y,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",W7:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"surface", clientMetadata:new lb([]),XA:vj2(!1,k.slotId,k.slotType,k.slotPhysicalPosition,k.fg,k.slotEntryTrigger,k.slotFulfillmentTriggers,k.slotExpirationTriggers,Y,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return T.call(P,{},W,{Qk:!0,slot:k,layout:Y})}; c2z=function(W,Y,k,P){var T=W.kind;P=P?!1:!W.hideCueRangeMarker;switch(T){case "AD_PLACEMENT_KIND_START":return P={AE:new M9(-0x8000000000000,-0x8000000000000),jl:P},k!=null&&(P.f8=new M9(-0x8000000000000,-0x8000000000000)),P;case "AD_PLACEMENT_KIND_END":return P={AE:new M9(0x7ffffffffffff,0x8000000000000),jl:P},k!=null&&(P.f8=new M9(Math.max(0,Y-k),0x8000000000000)),P;case "AD_PLACEMENT_KIND_MILLISECONDS":T=W.adTimeOffset;T.offsetStartMilliseconds||PP("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); T.offsetEndMilliseconds||PP("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");W=Number(T.offsetStartMilliseconds);T=Number(T.offsetEndMilliseconds);T===-1&&(T=Y);if(Number.isNaN(W)||Number.isNaN(T)||W>T)return new f("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:W,offsetEndMs:T},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",T===Y&&W-500<=T);P={AE:new M9(W,T),jl:P};if(k!=null){W=Math.max(0,W-k);if(W===T)return P;P.f8=new M9(W,T)}return P; default:return new f("AdPlacementKind not supported in convertToRange.",{kind:T,adPlacementConfig:W})}}; X2v=function(W){if(!W||!W.adPlacements&&!W.adSlots)return!1;for(var Y=g.p(W.adPlacements||[]),k=Y.next();!k.done;k=Y.next())if(k=k.value)if(k=k.adPlacementRenderer,k!=null&&(k.config&&k.config.adPlacementConfig&&k.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;W=g.p(W.adSlots||[]);for(Y=W.next();!Y.done;Y=W.next()){var P=k=void 0;if(((k=g.U(Y.value,u2))==null?void 0:(P=k.adSlotMetadata)==null?void 0:P.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Ea=function(W){this.P6=W;this.K=new Map;this.W=new Map;this.J=new Map}; $y=function(W,Y){if(Ja(W.P6.get())){var k=W.K.get(Y)||0;k++;W.K.set(Y,k);return Y+"_"+k}return g.OY(16)}; wk=function(W,Y,k){if(Ja(W.P6.get())){var P=W.W.get(Y)||0;P++;W.W.set(Y,P);return k+"_"+Y+"_"+P}return g.OY(16)}; Fx=function(W,Y){if(Ja(W.P6.get())){var k=W.J.get(Y)||0;k++;W.J.set(Y,k);return Y+"_"+k}return g.OY(16)}; SGX=function(W){var Y=[new $p(W.BF),new j6(W.ZD),new QI(W.adPlacementConfig),new Oq(W.videoLengthSeconds),new sq(W.aN)];W.instreamAdPlayerOverlayRenderer&&Y.push(new UT(W.instreamAdPlayerOverlayRenderer));W.playerOverlayLayoutRenderer&&Y.push(new lB(W.playerOverlayLayoutRenderer));W.Xd&&Y.push(new vh(W.Xd));return Y}; hed=function(W,Y,k,P,T,I){W=k.inPlayerLayoutId?k.inPlayerLayoutId:wk(I,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",W);var X,h,B=k.instreamAdPlayerOverlayRenderer?(X=k.instreamAdPlayerOverlayRenderer)==null?void 0:X.adLayoutLoggingData:(h=k.playerOverlayLayoutRenderer)==null?void 0:h.adLayoutLoggingData;X={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",fg:Y};return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",W7:new Map,layoutExitNormalTriggers:[new jp(function(O){return Fx(I, O)},k.BF)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:Y,clientMetadata:P,XA:T(X),adLayoutLoggingData:B}}; sa=function(W,Y){var k=this;this.K=W;this.P6=Y;this.W=function(P){return Fx(k.K.get(),P)}}; FZX=function(W,Y,k,P,T,I){k=new lb([new bB(k),new QI(P)]);Y=wk(W.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Y);P={layoutId:Y,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",fg:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W7:new Map,layoutExitNormalTriggers:[new jp(function(X){return Fx(W.K.get(),X)},T)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:k,XA:I(P),adLayoutLoggingData:void 0}}; sV=function(W,Y,k,P,T){var I=SGX(P);return hed(Y,k,P,new lb(I),T,W.K.get())}; Bk2=function(W,Y,k,P,T){var I=SGX(P);I.push(new F6(P.C9));I.push(new wL(P.Yd));return hed(Y,k,P,new lb(I),T,W.K.get())}; b2=function(W,Y,k,P,T,I,X,h,B,O){Y=wk(W.K.get(),k,Y);var u={layoutId:Y,layoutType:k,fg:"core"},Z=new Map;X&&Z.set("impression",X);X=[new ue(W.W,T,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];O&&X.push(new TG(W.W,O,["normal"]));return{layoutId:Y,layoutType:k,W7:Z,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([P,new QI(I),new $p(T)]),XA:h(u),adLayoutLoggingData:B}}; cb=function(W,Y,k,P,T,I,X,h,B){Y=wk(W.K.get(),k,Y);var O={layoutId:Y,layoutType:k,fg:"core"},u=[new ue(W.W,T,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];B&&u.push(new TG(W.W,B,["normal"]));return{layoutId:Y,layoutType:k,W7:new Map,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([P,new QI(I),new $p(T)]),XA:X(O),adLayoutLoggingData:h}}; Qe=function(W,Y,k){var P=[];P.push(new ZT(W.W,k));Y&&P.push(Y);return P}; w0=function(W,Y,k,P,T,I,X){var h={layoutId:Y,layoutType:k,fg:"core"};return{layoutId:Y,layoutType:k,W7:new Map,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[new YX(W.W,Y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([new dL(P),new QI(T)]),XA:I(h),adLayoutLoggingData:P.adLayoutLoggingData}}; Gv=function(W,Y,k,P,T,I,X,h){var B={layoutId:Y,layoutType:I,fg:"core"};return{layoutId:Y,layoutType:I,W7:new Map,layoutExitNormalTriggers:[new jp(W.W,k)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([new QI(P)].concat(g.ZX(X))),XA:T(B),adLayoutLoggingData:h}}; em=function(W,Y,k,P){if(W.P6.get().OU(Y.kind==="AD_PLACEMENT_KIND_START"))if(k===void 0)PP("Expected SSAP layout ID in renderer",void 0,void 0,{caller:P});else return k}; i27=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M){W=ye(W,Y,k,T,I,X,h,B,Z,em(W,k,P.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),M);Y=W.Si;k=new kp(W.DN);P=W.layoutExitSkipTriggers;O>0&&(Y.push(k),Y.push(new oV(O)),P=[]);Y.push(new e8(u));return{Xu:{layoutId:W.layoutId,layoutType:W.layoutType,W7:W.W7,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:W.fg,clientMetadata:new lb(Y),XA:W.XA,adLayoutLoggingData:W.adLayoutLoggingData}, Yk:P,gM:W.layoutExitMuteTriggers,uC:W.layoutExitUserInputSubmittedTriggers,gt:W.II,ZS:W.ZS}}; Rq5=function(W,Y,k,P,T,I,X,h,B,O){Y=ye(W,Y,k,P,I,new Map,X,function(u){return h(u,B)},void 0,em(W,k,T.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); W=new d8(W.W,Y.DN);k=new kp(Y.DN);O=new e8(O);return{Xu:{layoutId:Y.layoutId,layoutType:Y.layoutType,W7:Y.W7,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:Y.fg,clientMetadata:new lb([].concat(g.ZX(Y.Si),[k,O])),XA:Y.XA,adLayoutLoggingData:Y.adLayoutLoggingData},Yk:Y.layoutExitSkipTriggers,gM:Y.layoutExitMuteTriggers,uC:[].concat(g.ZX(Y.layoutExitUserInputSubmittedTriggers),[W]),gt:Y.II,ZS:Y.ZS}}; ye=function(W,Y,k,P,T,I,X,h,B,O,u){Y=O!=null?O:wk(W.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",Y);O={layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fg:"adapter"};h=h(Y);var Z=bb(h.clientMetadata,"metadata_type_fulfilled_layout");Z||PP("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var M=Z?Z.layoutId:"";k=[new QI(k),new rt(P),new dt(T)];Z&&k.push(new Pj(Z.layoutType));u&&k.push(new qV(u));return{layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", W7:I,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new q3(W.W,M)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"adapter",Si:k,XA:X(O),adLayoutLoggingData:B,ZS:h,DN:M}}; m26=function(W,Y,k,P,T,I,X,h,B,O,u){W=O6F(W,Y,"core",k,P,T,I,X,h,B,O,void 0,u);return{layoutId:W.layoutId,layoutType:W.layoutType,W7:W.W7,layoutExitNormalTriggers:W.layoutExitNormalTriggers,layoutExitSkipTriggers:W.layoutExitSkipTriggers,layoutExitMuteTriggers:W.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:W.layoutExitUserInputSubmittedTriggers,II:W.II,fg:W.fg,clientMetadata:new lb(W.bV),XA:W.XA,adLayoutLoggingData:W.adLayoutLoggingData}}; zq2=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M){Y=O6F(W,Y,"adapter",k,P,T,I,X,h,B,u,Z,M);P=Y.layoutExitSkipTriggers;T=Y.bV;k.adPodSkipTarget&&k.adPodSkipTarget>0&&(T.push(O),T.push(new oV(k.adPodSkipTarget)),P=[]);T.push(new e8(h.adPodIndex));k.isCritical&&(P=[new TG(W.W,Y.layoutId,["error"])].concat(g.ZX(P)));return{Xu:{layoutId:Y.layoutId,layoutType:Y.layoutType,W7:Y.W7,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:Y.fg, clientMetadata:new lb(T),XA:Y.XA,adLayoutLoggingData:Y.adLayoutLoggingData},Yk:P,gM:Y.layoutExitMuteTriggers,uC:Y.layoutExitUserInputSubmittedTriggers,gt:Y.II}}; O6F=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M){var t={layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA",fg:k};T=[new QI(T),new yI(B),new CW(P.externalVideoId),new LW(h),new dt({impressionCommands:P.impressionCommands,abandonCommands:P.onAbandonCommands,completeCommands:P.completeCommands,progressCommands:P.adVideoProgressCommands}),new ub(I),new IA({current:null}),new Oq(X)];(I=P.playerOverlay.instreamAdPlayerOverlayRenderer)&&T.push(new UT(I));(X=P.playerOverlay.playerOverlayLayoutRenderer)&&T.push(new lB(X)); Z&&T.push(new Zp(Z));(Z=P.playerUnderlay)&&T.push(new bB(Z));h=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER");Z=(Z=I?I.elementId:X==null?void 0:X.layoutId)?Z:wk(W.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h);T.push(new kp(Z));T.push(new Tz(h));T.push(new qV(B.adPodIndex));P.adNextParams&&T.push(new A7(P.adNextParams));P.shrunkenPlayerBytesConfig&&T.push(new fW(P.shrunkenPlayerBytesConfig));P.clickthroughEndpoint&&T.push(new zf(P.clickthroughEndpoint));P.legacyInfoCardVastExtension&&T.push(new A1(P.legacyInfoCardVastExtension)); P.sodarExtensionData&&T.push(new ib(P.sodarExtensionData));u&&T.push(new J1(u));T.push(new gt(Br(P.pings)));B=Of(P.pings);if(M){a:{M=g.p(M);for(u=M.next();!u.done;u=M.next())if(u=u.value,u.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(I=g.U(u.fulfillmentContent.fulfilledLayout,kE))&&(I=g.U(I.renderingContent,YE))&&I.associatedPlayerBytesLayoutId===Y){M=u;break a}M=void 0}M&&T.push(new ch(M))}return{layoutId:Y,layoutType:"LAYOUT_TYPE_MEDIA",W7:B,layoutExitNormalTriggers:[new ie(W.W,Y)],layoutExitSkipTriggers:P.skipOffsetMilliseconds? [new q3(W.W,Z)]:[],layoutExitMuteTriggers:[new q3(W.W,Z)],layoutExitUserInputSubmittedTriggers:[],II:[],fg:k,bV:T,XA:O(t),adLayoutLoggingData:P.adLayoutLoggingData}}; phC=function(W,Y,k,P,T,I,X,h,B){P.every(function(u){return C2(u,[],["LAYOUT_TYPE_MEDIA"])})||PP("Unexpect subLayout type for DAI composite layout"); Y=wk(W.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Y);var O={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",fg:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W7:new Map,layoutExitNormalTriggers:[new II(W.W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],II:[],fg:"core",clientMetadata:new lb([new MV(k),new t1(h),new S6(P),new QI(T),new p2(I),new RA({}),new wt(B)]),XA:X(O)}}; t87=function(W){return W!=null}; rm=function(W,Y,k){var P=this;this.K=W;this.J=Y;this.P6=k;this.W=function(T){return Fx(P.K.get(),T)}}; eqX=function(W,Y,k,P,T,I,X){if(!k.prefetchModeConfig)return new f("AdPlacementConfig for Live Prefetch is missing prefetch_config");k=k.prefetchModeConfig;P*=1E3;var h=[];if(!k.breakLengthMs)return new f("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var B=g.p(k.breakLengthMs),O=B.next();!O.done;O=B.next())if(O=O.value,Number(O)>0){var u=P+Number(k.startTimeOffsetMs),Z=u+Number(k.cacheFetchSmearingDurationMs);O={AE:new M9(Z,Z+Number(O)),jl:!1,f8:new M9(Math.floor(u+Math.random()* Number(k.cacheFetchSmearingDurationMs)),Z),cueProcessedMs:P?P:u};u=[];u.push(new oA({}));Z=[];Z.push(new t$(W.W));Z.push(new Xg7(W.W));X&&u.push(new RA({}));h.push(i2(W,Y,T,O,I,u,Z))}return h}; i2=function(W,Y,k,P,T,I,X){I=I===void 0?[]:I;var h=$y(W.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");X||(X=[],P.f8&&P.f8.start!==P.AE.start&&X.push(new B$(W.W,k,new M9(P.f8.start,P.AE.start),!1)),X.push(new B$(W.W,k,new M9(P.AE.start,P.AE.end),P.jl)));P={getAdBreakUrl:Y.getAdBreakUrl,vD:P.AE.start,K5:P.AE.end,cueProcessedMs:P.cueProcessedMs};Y=new r8(W.W,h);I=[new K2(P)].concat(g.ZX(I));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:X, slotExpirationTriggers:[new M3(W.W,k),new H$(W.W,h),new sN(W.W,h)],fg:"core",clientMetadata:new lb(I),adSlotLoggingData:T}}; Z60=function(W,Y,k){var P=[];k=g.p(k);for(var T=k.next();!T.done;T=k.next())P.push(u41(W,Y,T.value));return P}; u41=function(W,Y,k){return k.triggeringSlotId!=null&&k.triggeringSlotId===W?k.clone(Y):k}; jVX=function(W,Y,k,P,T){return i67(W,Y,k,P,T)}; M6z=function(W,Y,k,P){var T=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER");return i67(W,T,Y,k,P)}; i67=function(W,Y,k,P,T){var I=new P$(W.W,k),X=[new RI(W.W,Y)];W=[new H$(W.W,Y),new M3(W.W,P)];return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(T({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:W},k))]),adSlotLoggingData:void 0}}; dVV=function(W,Y,k,P,T,I){var X=$y(W.K.get(),"SLOT_TYPE_PLAYER_BYTES"),h=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER"),B=wk(W.K.get(),"LAYOUT_TYPE_SURVEY",h);P=Aa(W,Y,k,P);var O=[new RI(W.W,X)];k=[new H$(W.W,X),new M3(W.W,k),new YX(W.W,B)];if(P instanceof f)return P;h=I({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:P,slotFulfillmentTriggers:O,slotExpirationTriggers:k},{slotId:h,layoutId:B});I=h.Hg6;h=h.GN;return[{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:vb(W,Y,X,P),slotFulfillmentTriggers:CR(W,Y,X,O),slotExpirationTriggers:k,fg:"core",clientMetadata:new lb([new Gz(I),new Qa(LR(Y)),new e6({kt:W.kt(Y)})]),adSlotLoggingData:T},h]}; LR=function(W){return W.kind==="AD_PLACEMENT_KIND_START"}; D2d=function(W,Y,k,P,T){T=T?T:$y(W.K.get(),"SLOT_TYPE_IN_PLAYER");k=new P$(W.W,k);var I=[new RI(W.W,T)];W=[new M3(W.W,Y),new H$(W.W,T)];return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:I,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(P({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:k,slotFulfillmentTriggers:I,slotExpirationTriggers:W}))])}}; go7=function(W,Y,k,P){var T=$y(W.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");k=new P$(W.W,k);var I=[new RI(W.W,T)];W=[new M3(W.W,Y),new H$(W.W,T)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:I,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(P({slotId:T,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:k,slotFulfillmentTriggers:I,slotExpirationTriggers:W}))])}}; Eo6=function(W,Y,k,P,T,I,X){var h=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER"),B=wk(W.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h);P=MO6(W,P,I,X,B);if(P instanceof f)return P;X=[new RI(W.W,h)];T=[new M3(W.W,I),new RI(W.W,T),new zG(W.W,T)];k=aA(k,{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:P,slotFulfillmentTriggers:X,slotExpirationTriggers:T});W=W.J.get();I={layoutId:B,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",fg:"core"};Y={layoutId:B,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", W7:new Map,layoutExitNormalTriggers:[new MB2(W.W,B,Y.durationMs)],layoutExitSkipTriggers:[new qcz(W.W,B,Y.durationMs)],II:[new tBv(W.W,B)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],fg:"core",clientMetadata:new lb([new zz(Y)]),XA:k(I)};return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:P,slotFulfillmentTriggers:X,slotExpirationTriggers:T,clientMetadata:new lb([new Gz(Y)])}}; u81=function(W,Y,k,P,T,I){Y=Aa(W,Y,k,P);if(Y instanceof f)return Y;var X=Y instanceof B$?new uYF(W.W,k,Y.W):null;P=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER");var h=[new RI(W.W,P)];W=[new M3(W.W,k),new H$(W.W,P)];I=I({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:h,slotExpirationTriggers:W},X);return I instanceof Uq?new f(I):{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:h,slotExpirationTriggers:W, fg:"core",clientMetadata:new lb([new Gz(I)]),adSlotLoggingData:T}}; Bt6=function(W,Y,k,P){var T=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER"),I=new W$(W.W,Y),X=[new A$(W.W,T)];W=[new M3(W.W,Y),new H$(W.W,T)];return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(P({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:W}))]),adSlotLoggingData:k}}; OWC=function(W,Y,k,P){var T=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER");k=new P$(W.W,k);var I=[new RI(W.W,T)],X=[new H$(W.W,T),new M3(W.W,Y)];I={slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:k,slotFulfillmentTriggers:I,slotExpirationTriggers:X};return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:[new RI(W.W,T)],slotExpirationTriggers:[new M3(W.W,Y),new H$(W.W,T)],fg:"core",clientMetadata:new lb([new Gz(P(I))])}}; STv=function(W,Y,k,P,T){var I=$y(W.K.get(),"SLOT_TYPE_IN_PLAYER");k=new kX(W.W,P,k);P=[new RI(W.W,I)];W=[new M3(W.W,Y)];return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:P,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(T({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:k,slotFulfillmentTriggers:P,slotExpirationTriggers:W}))])}}; kf2=function(W,Y,k,P,T,I){var X=$y(W.K.get(),Y);return zp(W,X,Y,new P$(W.W,P),[new M3(W.W,k),new H$(W.W,X),new TG(W.W,P,["error"])],T,I)}; $2q=function(W,Y,k,P,T,I,X){var h=$y(W.K.get(),Y);return zp(W,h,Y,new TG(W.W,T,["normal"]),[new M3(W.W,k),new H$(W.W,h),new TG(W.W,P,["error"])],I,X)}; NA5=function(W,Y,k,P,T){var I=$y(W.K.get(),Y);return zp(W,I,Y,new W$(W.W,k),[new M3(W.W,k),new H$(W.W,I)],P,T)}; Ipd=function(W,Y,k,P,T){k=k?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var I=$y(W.K.get(),k);Y=new W$(W.W,Y);var X=[new RI(W.W,I)];W=[new H$(W.W,I)];return{slotId:I,slotType:k,slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:X,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(T({slotId:I,slotType:k,slotPhysicalPosition:1,fg:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:X,slotExpirationTriggers:W}))]),adSlotLoggingData:P}}; qTV=function(W,Y,k,P){var T=$y(W.K.get(),"SLOT_TYPE_PLAYER_BYTES"),I=new h$(W.W),X=[new A$(W.W,T)];W=[new M3(W.W,Y)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(P({slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:I,slotFulfillmentTriggers:X,slotExpirationTriggers:W})),new RA({})]),adSlotLoggingData:k}}; J1d=function(W,Y){return QAz(W.P6.get())?new TG(W.W,Y,["normal","error","skipped"]):new TG(W.W,Y,["normal"])}; A7F=function(W,Y,k,P,T){Y=J1d(W,Y);W=on(W,Y,k);T=T({slotId:W.slotId,slotType:W.slotType,slotPhysicalPosition:W.slotPhysicalPosition,slotEntryTrigger:W.slotEntryTrigger,slotFulfillmentTriggers:W.slotFulfillmentTriggers,slotExpirationTriggers:W.slotExpirationTriggers,fg:W.fg});return T instanceof f?T:{Q3:Object.assign({},W,{clientMetadata:new lb([new Gz(T.layout)]),adSlotLoggingData:P}),I6:T.I6}}; z3C=function(W,Y,k,P,T,I,X){k=sAX(W,Y,k,P);if(k instanceof f)return k;X=X({slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:k.slotEntryTrigger,slotFulfillmentTriggers:k.slotFulfillmentTriggers,slotExpirationTriggers:k.slotExpirationTriggers,fg:k.fg});if(X instanceof f)return X;P=[new Qa(LR(Y)),new Gz(X.layout),new e6({kt:W.kt(Y)})];I&&P.push(new mK({}));return{Q3:{slotId:k.slotId,slotType:k.slotType,slotPhysicalPosition:k.slotPhysicalPosition,slotEntryTrigger:vb(W, Y,k.slotId,k.slotEntryTrigger),slotFulfillmentTriggers:CR(W,Y,k.slotId,k.slotFulfillmentTriggers),slotExpirationTriggers:k.slotExpirationTriggers,fg:k.fg,clientMetadata:new lb(P),adSlotLoggingData:T},I6:X.I6}}; vb=function(W,Y,k,P){return W.P6.get().OU(LR(Y))?new NZ(W.W,k):P}; CR=function(W,Y,k,P){return W.P6.get().OU(LR(Y))?[new A$(W.W,k)]:P}; on=function(W,Y,k){var P=$y(W.K.get(),"SLOT_TYPE_PLAYER_BYTES"),T=[new RI(W.W,P)];W=[new H$(W.W,P),new M3(W.W,k)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:T,slotExpirationTriggers:W,fg:"core"}}; sAX=function(W,Y,k,P){Y=Aa(W,Y,k,P);return Y instanceof f?Y:on(W,Y,k)}; SqS=function(W,Y,k,P,T,I){var X=$y(W.K.get(),"SLOT_TYPE_FORECASTING");Y=Aa(W,Y,k,P);if(Y instanceof f)return Y;P=[new RI(W.W,X)];W=[new H$(W.W,X),new M3(W.W,k)];return{slotId:X,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:P,slotExpirationTriggers:W,fg:"core",clientMetadata:new lb([new Gz(I({slotId:X,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,fg:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:P,slotExpirationTriggers:W}))]),adSlotLoggingData:T}}; tOd=function(W,Y,k,P,T){var I=!Y.hideCueRangeMarker;switch(Y.kind){case "AD_PLACEMENT_KIND_START":return new W$(W.W,k);case "AD_PLACEMENT_KIND_MILLISECONDS":return W=c2z(Y,P),W instanceof f?W:T(W.AE,I);case "AD_PLACEMENT_KIND_END":return new $X(W.W,k,I);default:return new f("Cannot construct entry trigger",{kind:Y.kind})}}; MO6=function(W,Y,k,P,T){return tOd(W,Y,k,P,function(I,X){return new O7X(W.W,k,I,X,T)})}; Aa=function(W,Y,k,P){return tOd(W,Y,k,P,function(T,I){return new B$(W.W,k,T,I)})}; zp=function(W,Y,k,P,T,I,X){W=[new A$(W.W,Y)];return{slotId:Y,slotType:k,slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:W,slotExpirationTriggers:T,fg:"core",clientMetadata:new lb([new Gz(X({slotId:Y,slotType:k,slotPhysicalPosition:1,fg:"core",slotEntryTrigger:P,slotFulfillmentTriggers:W,slotExpirationTriggers:T}))]),adSlotLoggingData:I}}; rrd=function(){}; dm=function(W,Y){g.e.call(this);this.P6=W;this.W=Y;this.eventCount=0;this.K=Ar1()()}; qGz=function(W,Y,k){if(Y){var P=Y.adLayoutLoggingData;g.Ce(g.Us(),function(){W.K!=null&&P&&g.W8("adsSeenClientLogging",{serializedAdServingDataEntry:P.serializedAdServingDataEntry})},k!=null?k:0)}}; mG=function(W,Y,k,P){dm.call(this,W,Y);this.P6=W;this.qq=k;this.context=P}; DP=function(){this.W=new Map}; gm=function(W){this.W="pending";this.K=[];this.J=[];try{W(this.T.bind(this),this.reject.bind(this))}catch(Y){this.reject(Y)}}; Re7=function(){var W,Y;return{oH:new gm(function(k,P){W=k;Y=P}), resolve:W,reject:Y}}; QQ=function(W){return Fo(W)?W:wm(W)?new gm(function(Y,k){W.then(Y,k)}):new gm(function(Y){Y(W)})}; yQ=function(W){return new gm(function(Y,k){k(W)})}; eP=function(W){try{return QQ(W())}catch(Y){return yQ(Y)}}; vW=function(W,Y,k){var P=Re7(),T=P.oH,I=P.resolve,X=P.reject;W.K.push(function(h){if(Y)try{var B=Y(h);I(B)}catch(O){X(O)}else I(h)}); W.J.push(function(h){if(k)try{var B=k(h);I(B)}catch(O){X(O)}else X(h)}); oN(W);return T}; C1=function(W,Y){return vW(W,void 0,Y)}; H6C=function(W,Y){vW(W,function(k){return vW(QQ(Y()),function(){return k})},function(k){return vW(QQ(Y()),function(){return yQ(k)})})}; oN=function(W){if(W.W==="fulfilled"){var Y=W.K;W.K=[];W.J=[];Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next())k=k.value,k(W.result)}else if(W.W==="rejected")for(Y=W.J,W.K=[],W.J=[],Y=g.p(Y),k=Y.next();!k.done;k=Y.next())k=k.value,k(W.error)}; L1=function(W,Y){return ng7(Y.call(W))}; Ua=function(W){return function k(){return Q0(k,function(P){if(P.W==1)return g.E2(P,2),g.m(P,{oH:QQ(W)},4);if(P.W!=2)return P.return(P.K);g.DX(P);return g.gv(P,0)})}()}; ng7=function(W){return eP(function(){return lS(W,W.next())})}; lS=function(W,Y){return Y.done?QQ(Y.value):C1(vW(Y.value.oH,function(k){return lS(W,W.next(k))}),function(k){return lS(W,W.throw(k))})}; bS=function(W,Y){if(W.length===0)return QQ(NaN);var k=Re7(),P=k.oH,T=k.resolve,I=W.length;W=g.p(W.entries());var X=W.next();for(k={};!X.done;k={CJ:void 0},X=W.next()){var h=g.p(X.value);X=h.next().value;h=h.next().value;k.CJ=X;H6C(h,function(B){return function(){P.W==="pending"&&(p20(Y)&&Y(B.CJ)&&P.W==="pending"?T(B.CJ):(--I,I===0&&T(NaN)))}}(k))}return P}; cW=function(W){return W.map(function(Y){return QQ(Y)})}; f1=function(W){var Y=W.hours||0;var k=W.minutes||0,P=W.seconds||0;Y=P+k*60+Y*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;Y<=0?Y={hours:0,minutes:0,seconds:0}:(W=Y,Y=Math.floor(W/3600),W%=3600,k=Math.floor(W/60),P=Math.floor(W%60),Y={hours:Y,minutes:k,seconds:P});var T=Y.hours===void 0?0:Y.hours;k=Y.minutes===void 0?0:Y.minutes;W=Y.seconds===void 0?0:Y.seconds;P=T>0;Y=[];if(P){T=(new Intl.NumberFormat("en-u-nu-latn")).format(T);var I=["fr"],X="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(" "); T="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(xk)?T.replace(",","\u00a0"):I.includes(xk)?T.replace(",","\u202f"):X.includes(xk)?T.replace(",","."):T;Y.push(T)}P=P===void 0?!1:P;k=(["af","be","lt"].includes(xk)||P)&&k<10?Gbq().format(k):(new Intl.NumberFormat("en-u-nu-latn")).format(k);Y.push(k);k=Gbq().format(W);Y.push(k);k=":";"da fi id si sr sr-Latn".split(" ").includes(xk)&&(k=".");return Y.join(k)}; Gbq=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; KFv=function(W,Y){var k,P;W=((k=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=k.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(k=0;kY;W=k}else W=!1;return W}; g.O7=function(W,Y){return W.xf+"timedtext_video?ref=player&v="+Y.videoId}; g.CP2=function(W){var Y=this;this.videoData=W;W={};this.W=(W.c1a=function(){var k=[];if(g.hM.isInitialized()){var P="";Y.videoData&&Y.videoData.Ps&&(P=Y.videoData.Ps+("&r1b="+Y.videoData.clientPlaybackNonce));var T={};P=(T.atr_challenge=P,T);Aw("bg_v",void 0,"player_att");(P=vg2(P))?(Aw("bg_s",void 0,"player_att"),k.push("r1a="+P)):(Aw("bg_e",void 0,"player_att"),k.push("r1c=2"))}else Aw("bg_e",void 0,"player_att"),window.trayride||window.botguard?k.push("r1c=1"):k.push("r1c=4");k.push("r1d="+g.hM.getState()); return k.join("&")},W.c6a=function(k){return"r6a="+(Number(k.c)^cE())},W.c6b=function(k){return"r6b="+(Number(k.c)^Number(g.eM("CATSTAT",0)))},W); this.videoData&&this.videoData.Ps?this.uE=cD(this.videoData.Ps):this.uE={}}; g.LF6=function(W){if(W.videoData&&W.videoData.Ps){for(var Y=[W.videoData.Ps],k=g.p(Object.keys(W.W)),P=k.next();!P.done;P=k.next())P=P.value,W.uE[P]&&W.W[P]&&(P=W.W[P](W.uE))&&Y.push(P);return Y.join("&")}return null}; g.uW=function(W,Y){og5(W,{ma1:g.W2(Y.experiments,"bg_vm_reinit_threshold"),cspNonce:Y.cspNonce,xf:Y.xf||""})}; UQ6=function(){var W=XMLHttpRequest.prototype.fetch;return!!W&&W.length===3}; lwd=function(W){W=W[S[2]](S[4]);Zs[S[73]](W,69);Zs[S[67]](W,1);Zs[S[73]](W,17);Zs[S[75]](W,11);return W[S[44]](S[4])}; c9S=function(W){b6d=2592E3*(W||1)}; iW=function(W){W=W===void 0?b6d:W;if(W>0&&!(luX()>(0,g.q5)()-W*1E3))return 0;W=g.Es("yt-player-quality");if(typeof W==="string"){if(W=g.FP[W],W>0)return W}else if(W instanceof Object)return W.quality;return 0}; Me=function(){var W=g.Es("yt-player-proxima-pref");return W==null?null:W}; xQ2=function(){var W=g.Es("yt-player-quality");if(W instanceof Object&&W.quality&&W.previousQuality){if(W.quality>W.previousQuality)return 1;if(W.quality0&&Y[0]?W.getAutoplayPolicy(Y[0]):W.getAutoplayPolicy("mediaelement");if(kO6[k])return kO6[k]}}catch(P){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; GC=function(W){return W.nu||W.zv||W.mutedAutoplay}; PH0=function(W,Y){return GC(W)?Y!==1&&Y!==2&&Y!==0?"AUTOPLAY_STATUS_UNAVAILABLE":W.rr?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; T50=function(W,Y,k){var P=Y.V();W.thirdParty||(W.thirdParty={});P.ancestorOrigins&&(W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{ancestorOrigins:P.ancestorOrigins}));P.U("embeds_enable_autoplay_and_visibility_signals")&&(P.ww!=null&&(W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(P.ww)})),P.Jj&&(W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{visibilityFractionSource:P.Jj})), W.thirdParty.embeddedPlayerContext=Object.assign({},W.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:pm(),autoplayIntended:GC(Y),autoplayStatus:PH0(Y,k)}))}; jf2=function(W){var Y=[];W=g.p(W.split(","));for(var k=W.next();!k.done;k=W.next()){var P=k.value;P&&((k=P.startsWith("!"))&&(P=P.substring(1)),P=P.split("-"),P.length<3||Y.push({xA:P[0],platform:P[1],deviceVersion:P[2],zy:k}))}return Y}; Sf0=function(W){return jf2(W).map(function(Y){return{deviceInterface:Id5[Xrd[Y.xA]]||0,deviceVersion:Y.deviceVersion||"",isSleeping:Y.zy}})}; g.Km=function(W,Y){this.id=W;this.Ib=Y;this.captionTracks=[];this.J=this.T=null;this.xtags="";this.C=!1;this.W=null;this.K="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";W=this.Ib.id.split(".");W.length>1&&(this.C=W[1]==="2")}; E7=function(W,Y,k,P,T){this.K=W;this.W=Y;this.J=k;this.reason=P;this.c6=T===void 0?0:T}; g.JM=function(W,Y,k,P){return new E7(g.FP[W]||0,g.FP[Y]||0,k,P)}; ro=function(W){if(s7&&W.c6)return!1;var Y=g.FP.auto;return W.K===Y&&W.W===Y}; zC=function(W){return AM[W.W||W.K]||"auto"}; hU6=function(W,Y){Y=g.FP[Y];return W.K<=Y&&(!W.W||W.W>=Y)}; mx=function(W){return"["+W.K+"-"+W.W+", override: "+(W.J+", reason: "+W.reason+"]")}; Ds=function(W,Y,k,P){this.videoInfos=W;this.W=Y;this.audioTracks=[];this.K=P||[];if(this.W){W=new Set;k==null||k({ainfolen:this.W.length});Y=g.p(this.W);for(P=Y.next();!P.done;P=Y.next())if(P=P.value,!P.Ib||W.has(P.Ib.id)){var T=void 0,I=void 0,X=void 0;(X=k)==null||X({atkerr:!!P.Ib,itag:P.itag,xtag:P.W,lang:((T=P.Ib)==null?void 0:T.name)||"",langid:((I=P.Ib)==null?void 0:I.id)||""})}else T=new g.Km(P.id,P.Ib),W.add(P.Ib.id),this.audioTracks.push(T);k==null||k({atklen:this.audioTracks.length})}}; go=function(){g.e.apply(this,arguments);this.W=null}; ZKd=function(W,Y,k,P,T,I,X){if(W.W)return W.W;var h={},B=new Set,O={};if(FK(P)){for(var u in P.W)P.W.hasOwnProperty(u)&&(W=P.W[u],O[W.info.lz]=[W.info]);return O}u=B5V(Y,P,h);I&&T({aftsrt:wo(u)});for(var Z={},M=g.p(Object.keys(u)),t=M.next();!t.done;t=M.next()){t=t.value;for(var q=g.p(u[t]),G=q.next();!G.done;G=q.next()){G=G.value;var J=G.itag,d=void 0,A=t+"_"+(((d=G.video)==null?void 0:d.fps)||0);Z.hasOwnProperty(A)?Z[A]===!0?O[t].push(G):h[J]=Z[A]:(d=QX(Y,G,k,P.isLive,B),d!==!0?(X.add(t),h[J]=d, d==="disablevp9hfr"&&(Z[A]="disablevp9hfr")):(O[t]=O[t]||[],O[t].push(G),Z[A]=!0))}}I&&T({bfflt:wo(O)});for(var F in O)O.hasOwnProperty(F)&&(P=F,O[P]&&O[P][0].qa()&&(O[P]=O[P],O[P]=OKC(Y,O[P],h),O[P]=uQ7(O[P],h)));I&&Object.keys(h).length>0&&T({rjr:Ol(h)});Y=g.p(B.values());for(P=Y.next();!P.done;P=Y.next())(P=k.T.get(P.value))&&--P.Ll;I&&T({aftflt:wo(O)});W.W=g.aj(O,function(y){return!!y.length}); return W.W}; M4V=function(W,Y,k,P,T,I,X,h){h=h===void 0?!1:h;if(Y.LH&&X&&X.length>1&&!(Y.nh>0||Y.L)){for(var B=Y.K||!!T,O=B&&Y.D_?I:void 0,u=B5V(Y,P),Z=[],M=[],t={},q=0;q0&&t&&M&&(u=[X,k],y=M.concat(t).filter(function(L){return L})); if(y.length&&!Y.W3){oc(y,u);if(B){B=[];Y=g.p(y);for(P=Y.next();!P.done;P=Y.next())B.push(P.value.itag);I({hbdfmt:B.join(".")})}return KN(new Ds(y,T,O,W))}y=Jpz(Y);y=g.qc(y,h);if(!y){if(Z[X])return I=Z[X],oc(I),KN(new Ds(I,T,O,W));B&&I({novideo:1});return G5()}Y.DY&&(y==="1"||y==="1h")&&Z[k]&&(X=v0(Z[y]),u=v0(Z[k]),u>X?y=k:u===X&&sf5(Z[k])&&(y=k));y==="9"&&Z.h&&v0(Z.h)>v0(Z["9"])&&(y="h");Y.K1&&P.isLive&&y==="("&&Z.H&&v0(Z["("])<1440&&(y="H");B&&I({vfmly:Cm(y)});Y=Z[y];if(!Y.length)return B&&I({novfmly:Cm(y)}), G5();oc(Y);return KN(new Ds(Y,T,O,W))}; qfV=function(W,Y){var k=!(!W.m&&!W.M),P=!(!W.mac3&&!W.MAC3),T=!(!W.meac3&&!W.MEAC3);W=!(!W.i&&!W.I);Y.Qa=W;return k||P||T||W}; sf5=function(W){W=g.p(W);for(var Y=W.next();!Y.done;Y=W.next())if(Y=Y.value,Y.itag&&rpC.has(Y.itag))return!0;return!1}; HKq=function(W){W=g.p(W);for(var Y=W.next();!Y.done;Y=W.next())if(Y.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Cm=function(W){switch(W){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return W}}; wo=function(W){var Y=[],k;for(k in W)if(W.hasOwnProperty(k)){var P=k;Y.push(Cm(P));P=g.p(W[P]);for(var T=P.next();!T.done;T=P.next())Y.push(T.value.itag)}return Y.join(".")}; t4S=function(W,Y,k,P,T,I){var X={},h={};g.Nc(Y,function(B,O){B=B.filter(function(u){var Z=u.itag;if(!u.tY)return h[Z]="noenc",!1;if(I.Gn&&u.lz==="(h"&&I.A9)return h[Z]="lichdr",!1;if(!W.C&&u.lz==="1e")return h[Z]="noav1enc",!1;if(u.lz==="("||u.lz==="(h"){if(W.J&&k&&k.flavor==="widevine"){var M=u.mimeType+"; experimental=allowed";(M=!!u.tY[k.flavor]&&!!k.W[M])||(h[Z]=u.tY[k.flavor]?"unspt":"noflv");return M}if(!Lm(W,U7.CRYPTOBLOCKFORMAT)&&!W.TJ||W.wD)return h[Z]=W.wD?"disvp":"vpsub",!1}return k&&u.tY[k.flavor]&& k.W[u.mimeType]?!0:(h[Z]=k?u.tY[k.flavor]?"unspt":"noflv":"nosys",!1)}); B.length&&(X[O]=B)}); P&&Object.entries(h).length&&T({rjr:Ol(h)});return X}; uQ7=function(W,Y){var k=R3(W,function(P,T){return T.video.fps>32?Math.min(P,T.video.width):P},Infinity); k32||P.video.widthW.X)return"max"+W.X;if(W.bz&&Y.lz==="h"&&Y.video&&Y.video.qualityOrdinal>1080)return"blkhigh264";if(Y.lz==="(h"&&!k.G)return"enchdr";if((P===void 0?0:P)&&bZ(Y)&&!W.UP)return"blk51live";if((Y.lz==="MAC3"||Y.lz==="mac3")&&!W.T)return"blkac3";if((Y.lz==="MEAC3"||Y.lz==="meac3")&&!W.C)return"blkeac3";if(Y.lz==="M"||Y.lz==="m")return"blkaac51"; if((Y.lz==="so"||Y.lz==="sa")&&!W.A5)return"blkamb";if(!W.Gn&&dy6(Y)&&(!k.C||Y.lz!=="1e"))return"cbc";if(!k.C&&dy6(Y)&&Y.lz==="1e")return"cbcav1";if((Y.lz==="i"||Y.lz==="I")&&!W.f1)return"blkiamf";var I;if(W.xm&&((I=Y.audio)==null?void 0:I.K)===!0)return"blkvbcabr";var X,h;if(W.rD&&(Y.lz==="1"||Y.lz==="1h"||k.C&&Y.lz==="1e")&&((X=Y.video)==null?0:X.qualityOrdinal)&&((h=Y.video)==null?void 0:h.qualityOrdinal)>W.rD)return"av1cap";P=k.T.get(Y.lz);if(!W.J9&&P&&P.Ll>0)return T.add(Y.lz),"byerr";var B; if((B=Y.video)==null?0:B.fps>32){if(!k.gD&&!Lm(k,U7.FRAMERATE))return"capHfr";if(W.Q5&&Y.video.qualityOrdinal>=4320)return"blk8khfr";if(vT(Y)&&W.KN&&Y.tY&&Y.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(W.c6&&Y.c6>W.c6)return"ratecap";if(W.wD>0&&Y.qa()&&Y.video.height>W.wD)return"mvhcap";W=Ap0(k,Y);return W!==!0?W:!0}; oc=function(W,Y){Y=Y===void 0?[]:Y;g.lQ(W,function(k,P){var T=P.c6-k.c6;if(!k.qa()||!P.qa())return T;var I=P.video.height*P.video.width-k.video.height*k.video.width;!I&&Y&&Y.length>0&&(k=Y.indexOf(k.lz)+1,P=Y.indexOf(P.lz)+1,I=k===0||P===0?P||-1:k-P);I||(I=T);return I})}; g.lW=function(W,Y){this[S[11]]=W;this[S[46]]=Y===void 0?!1:Y;this[S[8]]=this[S[23]]=this[S[13]]=S[4];this[S[6]]={};this[S[31]]=S[4]}; c0=function(W){bW(W);return W[S[8]]}; xt=function(W){return W[S[11]]?W[S[11]][S[5]](S[60]):W[S[13]]===S[60]}; zU7=function(W){bW(W);return g.Y8(W[S[6]],function(Y){return Y!==null})}; fm=function(W){bW(W);var Y=decodeURIComponent(W[S[78]](S[47])||S[4])[S[2]](S[18]);return W[S[23]]===S[17]&&Y[S[3]]>1&&!!Y[1]}; VX=function(W,Y){Y=Y===void 0?!1:Y;bW(W);if(W[S[23]]!==S[17]){var k=W[S[83]]();k[S[12]](S[51],S[19]);return k}var P=W[S[62]]();k=new g.av(P);var T=W[S[78]](S[49]),I=decodeURIComponent(W[S[78]](S[47])||S[4])[S[2]](S[18]);if(T&&I&&I[S[3]]>1&&I[1])return P=k.W,W=P[S[7]](/^[^.]*/,S[4]),g.YA(k,(P[S[1]](S[27])===0?S[27]:S[30])+T+S[28]+I[1]+W),k=new g.lW(k[S[33]]()),k[S[12]](S[61],S[19]),k;if(Y)return k=W[S[83]](),k[S[12]](S[61],S[19]),k;T=k.W[S[9]](S[76]);k.W[S[9]](S[35])?(g.YA(k,S[32]),P=k[S[33]]()):k.W[S[9]](S[48])? (g.YA(k,S[58]),P=k[S[33]]()):(k=pJ1(P),eO(k)&&(P=k));k=new g.lW(P);k[S[12]](S[74],S[19]);T&&k[S[12]](S[41],S[53]);return k}; bW=function(W){if(W[S[11]]){if(!(eO(W[S[11]])||W[S[11]][S[5]](S[60])||W[S[11]][S[5]](S[89])||W[S[11]][S[5]](S[56])))throw new g.Qq(S[85],W[S[11]]);var Y=g.X0(W[S[11]]);W[S[13]]=Y.C;W[S[8]]=Y.W+(Y.J!=null?S[77]+Y.J:S[4]);var k=Y.K;if(k[S[5]](S[17]))W[S[23]]=S[17],k=k[S[10]](14);else if(k[S[5]](S[68]))W[S[23]]=S[68],k=k[S[10]](13);else if(k[S[5]](S[54])){var P=k[S[1]](S[57],12),T=k[S[1]](S[57],P+1);P>0&&T>0?(W[S[23]]=k[S[10]](0,T),k=k[S[10]](T+1)):(W[S[23]]=k,k=S[4])}else W[S[23]]=k,k=S[4];P=W[S[6]]; W[S[6]]=dUv(k);Object[S[70]](W[S[6]],mU2(Y.T.toString()));Object[S[70]](W[S[6]],P);W[S[6]][S[0]]===S[82]&&(delete W[S[6]][S[0]],W[S[23]]+=S[81]);W[S[11]]=S[4];W[S[31]]=S[4];W[S[46]]&&(bW(W),Y=W[S[6]][S[39]]||null)&&(Y=DUq[0](Y),W[S[12]](S[39],Y))}}; gyX=function(W){bW(W);var Y=W[S[13]]+(W[S[13]]?S[55]:S[79])+W[S[8]]+W[S[23]];if(zU7(W)){var k=[];g.Nc(W[S[6]],function(P,T){P!==null&&k[S[21]](T+S[29]+P)}); Y+=S[71]+k[S[44]](S[25])}return Y}; dUv=function(W){W=W[S[2]](S[57]);var Y=0;W[0]||Y++;for(var k={};Y0?FNF(Y,P[S[10]](0,T),P[S[10]](T+1)):P&&(Y[P]=S[4])}return Y}; FNF=function(W,Y,k){if(Y===S[86]){var P;(P=k[S[1]](S[29]))>=0?(Y=S[14]+k[S[10]](0,P),k=k[S[10]](P+1)):(P=k[S[1]](S[43]))>=0&&(Y=S[14]+k[S[10]](0,P),k=k[S[10]](P+3))}W[Y]=k}; Ne=function(W){var Y=g.U(W,wrV)||W[S[40]];W={BM:!1,kY:S[4],O9:S[4],s:S[4]};if(!Y)return W;Y=cD(Y);W[S[20]]=!0;W[S[84]]=Y[S[31]];W[S[59]]=Y[S[80]];W[S[36]]=Y[S[36]];return W}; ac=function(W,Y,k,P,T,I,X,h,B){this.t5=W;this.startTime=Y;this.duration=k;this.ingestionTime=P;this.sourceURL=T;this.w5=B;this.endTime=Y+k;this.W=X||0;this.range=I||null;this.pending=h||!1;this.w5=B||null}; g.WR=function(){this.segments=[];this.W=null;this.K=!0;this.J=""}; QfX=function(W,Y){if(Y>W.QU())W.segments=[];else{var k=tN(W.segments,function(P){return P.t5>=Y},W); k>0&&W.segments.splice(0,k)}}; Yb=function(W,Y,k,P,T){T=T===void 0?!1:T;this.data=W;this.offset=Y;this.size=k;this.type=P;this.W=(this.K=T)?0:8;this.dataOffset=this.offset+this.W}; $b=function(W){var Y=W.data.getUint8(W.offset+W.W);W.W+=1;return Y}; kb=function(W){var Y=W.data.getUint16(W.offset+W.W);W.W+=2;return Y}; PR=function(W){var Y=W.data.getInt32(W.offset+W.W);W.W+=4;return Y}; TD=function(W){var Y=W.data.getUint32(W.offset+W.W);W.W+=4;return Y}; j$=function(W){var Y=W.data;var k=W.offset+W.W;Y=Y.getUint32(k)*4294967296+Y.getUint32(k+4);W.W+=8;return Y}; IQ=function(W,Y){Y=Y===void 0?NaN:Y;if(isNaN(Y))var k=W.size;else for(k=W.W;k1?Math.ceil(T*Y):Math.floor(T*Y))}W.skip(1);k=$b(W)<<16|kb(W);if(k&256){P=k&1;T=k&4;var I=k&512,X=k&1024,h=k&2048;k=TD(W);P&&W.skip(4);T&&W.skip(4);P=(I?4:0)+(X?4:0)+(h?4:0);for(T=0;T1?Math.ceil(X*Y):Math.floor(X*Y)),W.skip(P)}}}; iU=function(W){W=new DataView(W.buffer,W.byteOffset,W.byteLength);return(W=g.uU(W,0,1836476516))?g.ZN(W):NaN}; fd1=function(W){var Y=g.uU(W,0,1937011556);if(!Y)return null;Y=Mi(W,Y.dataOffset+8,1635148593)||Mi(W,Y.dataOffset+8,1635135537);if(!Y)return null;var k=Mi(W,Y.dataOffset+78,1936995172),P=Mi(W,Y.dataOffset+78,1937126244);if(!P)return null;Y=null;if(k)switch(k.skip(4),$b(k)){default:Y=0;break;case 1:Y=2;break;case 2:Y=1;break;case 3:Y=255}var T=k=null,I=null;if(P=Mi(W,P.dataOffset,1886547818)){var X=Mi(W,P.dataOffset,1886546020),h=Mi(W,P.dataOffset,2037673328);if(!h&&(h=Mi(W,P.dataOffset,1836279920), !h))return null;X&&(X.skip(4),k=PR(X)/65536,I=PR(X)/65536,T=PR(X)/65536);W=yp1(h);W=new DataView(W.buffer,W.byteOffset+8,W.byteLength-8);return new cpC(Y,k,I,T,W)}return null}; Mi=function(W,Y,k){for(;tH(W,Y);){var P=qi(W,Y);if(P.type===k)return P;Y+=P.size}return null}; g.uU=function(W,Y,k){for(;tH(W,Y);){var P=qi(W,Y);if(P.type===k)return P;Y=RQ(P.type)?Y+8:Y+P.size}return null}; g.HR=function(W){if(W.data.getUint8(W.dataOffset)){var Y=W.data;W=W.dataOffset+4;Y=Y.getUint32(W)*4294967296+Y.getUint32(W+4)}else Y=W.data.getUint32(W.dataOffset+4);return Y}; qi=function(W,Y){var k=W.getUint32(Y),P=W.getUint32(Y+4);return new Yb(W,Y,k,P)}; g.ZN=function(W){var Y=W.data.getUint8(W.dataOffset)?20:12;return W.data.getUint32(W.dataOffset+Y)}; V46=function(W){W=new Yb(W.data,W.offset,W.size,W.type,W.K);var Y=$b(W);W.skip(7);var k=TD(W);if(Y===0){Y=TD(W);var P=TD(W)}else Y=j$(W),P=j$(W);W.skip(2);for(var T=kb(W),I=[],X=[],h=0;h122)return!1}return!0}; RQ=function(W){return W===1701082227||W===1836019558||W===1836019574||W===1835297121||W===1835626086||W===1937007212||W===1953653094||W===1953653099||W===1836475768}; N5d=function(W){W.skip(4);return{hz5:IQ(W,0),value:IQ(W,0),timescale:TD(W),UHS:TD(W),eventDuration:TD(W),id:TD(W),vj:IQ(W),offset:W.offset}}; g.adX=function(W){var Y=Mi(W,0,1701671783);if(!Y)return null;var k=N5d(Y),P=k.hz5;k=Oy(k.vj);if(W=Mi(W,Y.offset+Y.size,1701671783))if(W=N5d(W),W=Oy(W.vj),k&&W){Y=g.p(Object.keys(W));for(var T=Y.next();!T.done;T=Y.next())T=T.value,k[T]=W[T]}return k?new BR(k,P):null}; nb=function(W,Y){for(var k=Mi(W,0,Y);k;){var P=k;P.type=1936419184;P.data.setUint32(P.offset+4,1936419184);k=Mi(W,k.offset+k.size,Y)}}; g.pb=function(W,Y){for(var k=0,P=[];tH(W,k);){var T=qi(W,k);T.type===Y&&P.push(T);k=RQ(T.type)?k+8:k+T.size}return P}; Wn2=function(W,Y){var k=g.uU(W,0,1937011556),P=g.uU(W,0,1953654136);if(!k||!P||W.getUint32(k.offset+12)>=2)return null;var T=new DataView(Y.buffer,Y.byteOffset,Y.length),I=g.uU(T,0,1937011556);if(!I)return null;Y=T.getUint32(I.dataOffset+8);P=T.getUint32(I.dataOffset+12);if(P!==1701733217&&P!==1701733238)return null;P=new eUz(W.byteLength+Y);Xc(P,W,0,k.offset+12);P.data.setInt32(P.offset,2);P.offset+=4;Xc(P,W,k.offset+16,k.size-16);Xc(P,T,T.byteOffset+I.dataOffset+8,Y);Xc(P,W,k.offset+k.size,W.byteLength- (k.offset+k.size));k=g.p([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(T=k.next();!T.done;T=k.next())T=g.uU(W,0,T.value),P.data.setUint32(T.offset,T.size+Y);W=g.uU(P.data,0,1953654136);P.data.setUint32(W.offset+16,2);return P.data}; Yl2=function(W){var Y=g.uU(W,0,1937011556);if(!Y)return null;var k=W.getUint32(Y.dataOffset+12);if(k!==1701733217&&k!==1701733238)return null;Y=Mi(W,Y.offset+24+(k===1701733217?28:78),1936289382);if(!Y)return null;k=Mi(W,Y.offset+8,1935894637);if(!k||W.getUint32(k.offset+12)!==1667392371)return null;Y=Mi(W,Y.offset+8,1935894633);if(!Y)return null;Y=Mi(W,Y.offset+8,1952804451);if(!Y)return null;k=new Uint8Array(16);for(var P=0;P<16;P++)k[P]=W.getInt8(Y.offset+16+P);return k}; GD=function(W,Y){this.W=W;this.pos=0;this.start=Y||0}; Kb=function(W){return W.pos>=W.W.byteLength}; AH=function(W,Y,k){var P=new GD(k);if(!Ey(P,W))return!1;P=JH(P);if(!sy(P,Y))return!1;for(W=0;Y;)Y>>>=8,W++;Y=P.start+P.pos;var T=rf(P,!0);P=W+(P.start+P.pos-Y)+T;P=P>9?$n1(P-9,8):$n1(P-2,1);W=Y-W;k.setUint8(W++,236);for(Y=0;Yk;T++)k=k*256+gf(W),P*=128;return Y?k-P:k}; df=function(W){var Y=rf(W,!0);W.pos+=Y}; Tw6=function(W){if(!sy(W,440786851,!0))return null;var Y=W.pos;rf(W,!1);var k=rf(W,!0)+W.pos-Y;W.pos=Y+k;if(!sy(W,408125543,!1))return null;rf(W,!0);if(!sy(W,357149030,!0))return null;var P=W.pos;rf(W,!1);var T=rf(W,!0)+W.pos-P;W.pos=P+T;if(!sy(W,374648427,!0))return null;var I=W.pos;rf(W,!1);var X=rf(W,!0)+W.pos-I,h=new Uint8Array(k+12+T+X),B=new DataView(h.buffer);h.set(new Uint8Array(W.W.buffer,W.W.byteOffset+Y,k));B.setUint32(k,408125543);B.setUint32(k+4,33554431);B.setUint32(k+8,4294967295); h.set(new Uint8Array(W.W.buffer,W.W.byteOffset+P,T),k+12);h.set(new Uint8Array(W.W.buffer,W.W.byteOffset+I,X),k+12+T);return h}; Fc=function(W){var Y=W.pos;W.pos=0;var k=1E6;Ey(W,[408125543,357149030,2807729])&&(k=zD(W));W.pos=Y;return k}; j9d=function(W,Y){var k=W.pos;W.pos=0;if(W.W.getUint8(W.pos)!==160&&!wf(W)||!sy(W,160))return W.pos=k,NaN;rf(W,!0);var P=W.pos;if(!sy(W,161))return W.pos=k,NaN;rf(W,!0);gf(W);var T=gf(W)<<8|gf(W);W.pos=P;if(!sy(W,155))return W.pos=k,NaN;P=zD(W);W.pos=k;return(T+P)*Y/1E9}; wf=function(W){if(!Ifz(W)||!sy(W,524531317))return!1;rf(W,!0);return!0}; Ifz=function(W){if(W.Ry()){if(!sy(W,408125543))return!1;rf(W,!0)}return!0}; Ey=function(W,Y){for(var k=0;k0){var P=mU2(Y.substring(k+1));g.Nc(P,function(T,I){this.set(I,T)},W); Y=Y.substring(0,k)}Y=dUv(Y);g.Nc(Y,function(T,I){this.set(I,T)},W)}; SlS=function(W){var Y=W.b5.OV(),k=[];g.Nc(W.W,function(T,I){k.push(I+"="+T)}); if(!k.length)return Y;var P=k.join("&");W=zU7(W.b5)?"&":"?";return Y+W+P}; y2=function(W,Y){var k=new g.lW(Y);(Y=k.get("req_id"))&&W.set("req_id",Y);g.Nc(W.W,function(P,T){k["set"](T,null)}); return k}; h1F=function(){this.T=this.J=this.W=this.timedOut=this.started=this.C=this.K=0}; e$=function(W){W.C=(0,g.q5)();W.started=0;W.timedOut=0;W.W=0}; oQ=function(W,Y){var k=W.started+W.W*4;Y&&(k+=W.J);k=Math.max(0,k-3);return Math.pow(1.6,k)}; vR=function(W,Y){W[Y]||(W[Y]=new h1F);return W[Y]}; Cb=function(W){this.N=this.G=this.C=this.J=0;this.L=this.X=!1;this.W=W;this.K=W.clone()}; Bwd=function(W,Y,k){if(xt(W.W))return!1;var P=vR(k,c0(W.W));if(P.timedOut<1&&P.W<1)return!1;P=P.timedOut+P.W;W=Lb(W,Y);k=vR(k,c0(W));return k.timedOut+k.W+01?Y=Y.Xz:(k=vR(k,lU(W,W.W4(Y,k),Y)),Y=Math.max(W.C,k.timedOut)+Y.w3*(W.J-W.C)+.25*W.G,Y=Y>3?1E3*Math.pow(1.6,Y-3):0);return Y===0?!0:W.N+Y<(0,g.q5)()}; O5C=function(W,Y,k){W.W.set(Y,k);W.K.set(Y,k);W.T&&W.T.set(Y,k)}; uPv=function(W,Y,k,P,T){++W.J;Y&&++W.C;c0(k.b5).startsWith("redirector.")&&(W.W=W.K.clone(),delete W.T,P.aW&&delete T[c0(W.W)])}; cR=function(W){return W?(W.itag||"")+";"+(W.lmt||0)+";"+(W.xtags||""):""}; xb=function(W,Y,k,P){this.initRange=k;this.indexRange=P;this.W=null;this.J=!1;this.X=0;this.T=this.zG=this.K=null;this.info=Y;this.ob=new Cb(W)}; fb=function(W,Y){this.start=W;this.end=Y;this.length=Y-W+1}; V2=function(W){W=W.split("-");var Y=Number(W[0]),k=Number(W[1]);if(!isNaN(Y)&&!isNaN(k)&&W.length===2&&(W=new fb(Y,k),!isNaN(W.start)&&!isNaN(W.end)&&!isNaN(W.length)&&W.length>0))return W}; Ni=function(W,Y){return new fb(W,W+Y-1)}; Z5d=function(W){return W.end==null?{start:String(W.start)}:{start:String(W.start),end:String(W.end)}}; aQ=function(W){if(!W)return new fb(0,0);var Y=Number(W.start);W=Number(W.end);if(!isNaN(Y)&&!isNaN(W)&&(Y=new fb(Y,W),Y.length>0))return Y}; W_=function(W,Y,k,P,T,I,X,h,B,O,u,Z){P=P===void 0?"":P;this.type=W;this.W=Y;this.range=k;this.source=P;this.lY=u;this.clipId=Z===void 0?"":Z;this.N=[];this.G="";this.t5=-1;this.A5=0;this.G=P;this.t5=T>=0?T:-1;this.startTime=I||0;this.duration=X||0;this.K=h||0;this.J=B>=0?B:this.range?this.range.length:NaN;this.T=this.range?this.K+this.J===this.range.length:O===void 0?!!this.J:O;this.range?(this.C=this.startTime+this.duration*this.K/this.range.length,this.L=this.duration*this.J/this.range.length,this.X= this.C+this.L):i57(this)}; i57=function(W){W.C=W.startTime;W.L=W.duration;W.X=W.C+W.L}; MvV=function(W,Y,k){var P=!(!Y||Y.W!==W.W||Y.type!==W.type||Y.t5!==W.t5);return k?P&&!!Y&&(W.range&&Y.range?Y.range.end===W.range.end:Y.range===W.range)&&Y.K+Y.J===W.K+W.J:P}; Y7=function(W){return W.type===1||W.type===2}; $7=function(W){return W.type===3||W.type===6}; k7=function(W,Y){return W.W===Y.W?W.range&&Y.range?W.range.start+W.K+W.J===Y.range.start+Y.K:W.t5===Y.t5?W.K+W.J===Y.K:W.t5+1===Y.t5&&Y.K===0&&W.T:!1}; ql7=function(W,Y){return W.t5!==Y.t5&&Y.t5!==W.t5+1||W.type!==Y.type?!1:k7(W,Y)?!0:Math.abs(W.C-Y.C)<=1E-6&&W.t5===Y.t5?!1:tvq(W,Y)}; tvq=function(W,Y){return k7(W,Y)||Math.abs(W.X-Y.C)<=1E-6||W.t5+1===Y.t5&&Y.K===0&&W.T?!0:!1}; P_=function(W){return W.t5+(W.T?1:0)}; R1d=function(W){W.length===1||g.q_(W,function(k){return!!k.range}); for(var Y=1;Y=Y.range.start+Y.K&&W.range.start+W.K+W.J<=Y.range.start+Y.K+Y.J:W.t5===Y.t5&&W.K>=Y.K&&(W.K+W.J<=Y.K+Y.J||Y.T)}; J_5=function(W,Y){return W.W!==Y.W?!1:W.type===4&&Y.type===3&&W.W.sE()?(W=W.W.sY(W),vQ(W,function(k){return J_5(k,Y)})):W.t5===Y.t5&&!!Y.J&&Y.K+Y.J>W.K&&Y.K+Y.J<=W.K+W.J}; jq=function(W,Y){var k=Y.t5;W.G="updateWithSegmentInfo";W.t5=k;if(W.startTime!==Y.startTime||W.duration!==Y.duration)W.startTime=Y.startTime+0,W.duration=Y.duration,i57(W)}; IO=function(W,Y){var k=this;this.EP=W;this.T=this.W=null;this.C=this.Cs=NaN;this.W4=this.requestId=null;this.zW={PZr:function(){return k.range}}; this.ob=W[0].W.ob;this.K=Y||"";this.EP[0].range&&this.EP[0].J>0&&(H5F(W)?(this.range=R1d(W),this.J=this.range.length):(this.range=this.EP[this.EP.length-1].range,this.J=n1d(W)))}; X$=function(W){return!Y7(W.EP[W.EP.length-1])}; Sq=function(W){return W.EP[W.EP.length-1].type===4}; g.ht=function(W,Y,k){k=W.W4===null?W.ob.W4(Y,k,W.EP[0].type):W.W4;if(W.W){Y=k?VX(W.W,Y.Jo):W.W;var P=new Q2(Y);P.get("alr")||P.set("alr","yes");W.K&&XT5(P,W.K)}else/http[s]?:\/\//.test(W.K)?P=new Q2(new g.lW(W.K)):(P=Uy(W.ob,k,Y),W.K&&XT5(P,W.K));(Y=W.range)?P.set("range",Y.toString()):W.EP[0].W.Rp()&&W.EP.length===1&&W.EP[0].K&&P.set("range",W.EP[0].K+"-");W.requestId&&P.set("req_id",W.requestId);isNaN(W.Cs)||P.set("headm",W.Cs.toString());isNaN(W.C)||P.set("mffa",W.C+"ms");W.urlParams&&g.Nc(W.urlParams, function(T,I){P.set(I,T)}); return P}; s9d=function(W){if(W.range)return W.J;W=W.EP[0];return Math.round(W.L*W.W.info.c6)}; r_0=function(W,Y){return Math.max(0,W.EP[0].C-Y)}; B_=function(W,Y,k,P,T,I){I=I===void 0?0:I;xb.call(this,W,Y,P,void 0);this.C=k;this.Lh=I;this.index=T||new g.WR}; A_v=function(W,Y,k,P,T){this.t5=W;this.startSecs=Y;this.sV=k;this.W=P||NaN;this.K=T||NaN}; OW=function(W,Y,k){for(;W;W=W.parentNode)if(W.attributes&&(!k||W.nodeName===k)){var P=W.getAttribute(Y);if(P)return P}return""}; ua=function(W,Y){for(;W;W=W.parentNode){var k=W.getElementsByTagName(Y);if(k.length>0)return k[0]}return null}; z1C=function(W){if(!W)return 0;var Y=W.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return Y?(Number(Y[2])|0)*3600+(Number(Y[4])|0)*60+(Number(Y[6])|0):Number(W)|0}; dnV=function(W){return W.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?W+"Z":W}; Z2=function(){this.W=[];this.K=null;this.X=0;this.J=[];this.C=!1;this.G="";this.T=-1}; mn7=function(W){var Y=W.J;W.J=[];return Y}; DnS=function(){this.T=[];this.W=null;this.K={};this.J={}}; Q91=function(W,Y){var k=[];Y=Array.from(Y.getElementsByTagName("SegmentTimeline"));Y=g.p(Y);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var T=P.parentNode.parentNode,I=null;T.nodeName==="Period"?I=g1X(W):T.nodeName==="AdaptationSet"?(T=T.getAttribute("id")||T.getAttribute("mimetype")||"",I=Fnd(W,T)):T.nodeName==="Representation"&&(T=T.getAttribute("id")||"",I=wTF(W,T));if(I==null)return;I.update(P);g.dB(k,mn7(I))}g.dB(W.T,k);sdq(W.T,function(X){return X.startSecs*1E3+X.W})}; y_v=function(W){W.W&&(W.W.W=[]);g.Nc(W.K,function(Y){Y.W=[]}); g.Nc(W.J,function(Y){Y.W=[]})}; g1X=function(W){W.W||(W.W=new Z2);return W.W}; Fnd=function(W,Y){W.K[Y]||(W.K[Y]=new Z2);return W.K[Y]}; wTF=function(W,Y){W.J[Y]||(W.J[Y]=new Z2);return W.J[Y]}; MN=function(W){var Y=W===void 0?{}:W;W=Y.Lh===void 0?0:Y.Lh;var k=Y.Cr===void 0?!1:Y.Cr;var P=Y.ol===void 0?0:Y.ol;var T=Y.UU===void 0?0:Y.UU;var I=Y.UA===void 0?Infinity:Y.UA;var X=Y.d2===void 0?0:Y.d2;var h=Y.Fj===void 0?!1:Y.Fj;Y=Y.lR===void 0?!1:Y.lR;g.WR.call(this);this.GC=this.L8=-1;this.Fu=W;this.ol=P;this.Cr=k;this.UU=T;this.UA=I;this.d2=X;((this.Fj=h)||isFinite(I)&&this.UA>0)&&k&&ia&&(this.K=!1,this.J="postLive");this.lR=Y}; tt=function(W,Y){return C$(W.segments,function(k){return Y-k.t5})}; qN=function(W,Y,k){k=k===void 0?{}:k;B_.call(this,W,Y,"",void 0,void 0,k.Lh||0);this.index=new MN(k)}; RO=function(W,Y,k){xb.call(this,W,Y);this.C=k;W=this.index=new g.WR;W.K=!1;W.J="d"}; e1d=function(W,Y,k){var P=W.index.f2(Y),T=W.index.getStartTime(Y),I=W.index.getDuration(Y);k?I=k=0:k=W.info.c6*I;return new IO([new W_(3,W,void 0,"otfCreateRequestInfoForSegment",Y,T,I,0,k)],P)}; o10=function(W,Y){if(!W.index.isLoaded()){var k=[],P=Y.T;Y=Y.C.split(",").filter(function(u){return u.length>0}); for(var T=0,I=0,X=0,h=/^(\d+)/,B=/r=(\d+)/,O=0;O0&&(T.W=Math.min(T.W+X,10),T.K=I);T.W>0?(T.W--,T=!0):T=!1;if(T)typeof P==="function"&&(P=P()),console.log("plyr."+Y,P);else{var h;P=((h=b5C.get(Y))!=null?h:0)+1;b5C.set(Y,P);P%100===1&&console.warn("plyr","plyr."+Y+" is chatty, dropping logs.")}}}; lf5=function(){this.W=10;this.K=Date.now()}; pr=function(W,Y){this.info=W;this.K=Y;this.W=null;this.T=this.J=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.C=this.info.W.q4()&&!this.info.K}; g.G8=function(W){return v4F(W.K)}; c_d=function(W,Y){Y=Math.min(Y,W.info.J);var k=W.K.split(Y),P=k.LL;k=new pr(new W_(W.info.type,W.info.W,W.info.range,W.info.G,W.info.t5,W.info.startTime,W.info.duration,W.info.K,Y,!1,W.info.lY,W.info.clipId),k.Mu);k.T=W.T;k.J=W.J;Y=new pr(new W_(W.info.type,W.info.W,W.info.range,W.info.G,W.info.t5,W.info.startTime,W.info.duration,W.info.K+Y,W.info.J-Y,W.info.T,W.info.lY,W.info.clipId),P);Y.T=W.T;Y.J=W.J;return[k,Y]}; g.Kr=function(W,Y,k,P){k=k===void 0?!1:k;P=P===void 0?0:P;if(W.isLocked||Y.isLocked||!k7(W.info,Y.info)||W.info.T)return null;if(P){if(W.K.totalLength+Y.K.totalLength>P)return null}else if(k&&(k=W.K,P=Y.K,k=!(P.W.length?e$F(k,P.W[0]):1)),k)return null;k=new W_(W.info.type,W.info.W,W.info.range,W.info.G,W.info.t5,W.info.startTime,W.info.duration,W.info.K,W.info.J,W.info.T,W.info.lY,W.info.clipId);P=Y.info;k.J+=P.J;k.range&&(k.L+=P.L);k.X=P.X;k.T=P.T;P=new $S;kS(P,W.K);kS(P,Y.K);k=new pr(k,P);k.W!= null&&Y.W!=null&&(new g.H_("dash")).W(414627957,"merged slice emsg overridden; prev: "+k.W.qH()+" next: "+Y.W.qH());k.W=Y.W||W.W;k.J=W.J!==-1?W.J:Y.J;k.T=W.T!==-1?W.T:Y.T;return k}; g.EW=function(W){g.cT(W.info.W.info)||W.info.W.info.pN();if(W.J!==-1)return W.J;if(W.W&&CH7(W.W))return W.J=CH7(W.W),W.J;if(g.cT(W.info.W.info)){var Y=g.G8(W);for(var k=W.info.W.W,P=NaN,T=NaN,I=0;tH(Y,I);){var X=qi(Y,I);X.type===1936286840?T=X.data.getUint32(X.dataOffset+8):X.type===1836476516?T=g.ZN(X):X.type===1952867444&&isNaN(P)&&(P=g.HR(X));I=RQ(X.type)?I+8:I+X.size}!T&&k&&(T=iU(k));Y=P/T}else Y=new GD(g.G8(W)),k=W.C?Y:new GD(new DataView(W.info.W.W.buffer)),P=Fc(k),k=Y.pos,Y.pos=0,wf(Y)?sy(Y, 231)?(P=zD(Y)*P/1E9,Y.pos=k,Y=P):(Y.pos=k,Y=NaN):(Y.pos=k,Y=NaN);W.J=Y||W.info.C;return W.J}; ffz=function(W,Y){W.timestampOffset>0&&(Y-=W.timestampOffset);var k=g.EW(W)+Y;xn0(W,k);W.timestampOffset=Y}; xn0=function(W,Y){g.cT(W.info.W.info)||W.info.W.info.pN();W.J=Y;if(g.cT(W.info.W.info)){var k=g.G8(W);W=W.info.W.W;for(var P=NaN,T=NaN,I=0;tH(k,I);){var X=qi(k,I);isNaN(P)&&(X.type===1936286840?P=X.data.getUint32(X.dataOffset+8):X.type===1836476516&&(P=g.ZN(X)));if(X.type===1952867444){!P&&W&&(P=iU(W));var h=g.HR(X);isNaN(T)&&(T=Math.round(Y*P)-h);var B=X;h+=T;if(B.data.getUint8(B.dataOffset)){var O=B.data;B=B.dataOffset+4;O.setUint32(B,Math.floor(h/4294967296));O.setUint32(B+4,h&4294967295)}else B.data.setUint32(B.dataOffset+ 4,h)}I=RQ(X.type)?I+8:I+X.size}return!0}k=new GD(g.G8(W));W=W.C?k:new GD(new DataView(W.info.W.W.buffer));P=Fc(W);W=k.pos;k.pos=0;if(wf(k)&&sy(k,231))if(T=rf(k,!0),Y=Math.floor(Y*1E9/P),Math.ceil(Math.log(Y)/Math.log(2)/8)>T)Y=!1;else{for(P=T-1;P>=0;P--)k.W.setUint8(k.pos+P,Y&255),Y>>>=8;k.pos=W;Y=!0}else Y=!1;return Y}; sW=function(W,Y){Y=Y===void 0?!1:Y;var k=Jt(W);W=Y?0:W.info.L;return k||W}; Jt=function(W){g.cT(W.info.W.info)||W.info.W.info.pN();if(W.W&&W.info.type===6)return W.W.Lh;if(g.cT(W.info.W.info)){var Y=g.G8(W);var k=0;Y=g.pb(Y,1936286840);Y=g.p(Y);for(var P=Y.next();!P.done;P=Y.next())P=V46(P.value),k+=P.Kz[0]/P.timescale;k=k||NaN;if(!(k>=0))a:{k=g.G8(W);Y=W.info.W.W;for(var T=P=0,I=0;tH(k,P);){var X=qi(k,P);if(X.type===1836476516)T=g.ZN(X);else if(X.type===1836019558){!T&&Y&&(T=iU(Y));if(!T){k=NaN;break a}var h=Mi(X.data,X.dataOffset,1953653094),B=h;h=T;var O=Mi(B.data,B.dataOffset, 1952868452);B=Mi(B.data,B.dataOffset,1953658222);var u=PR(O);PR(O);u&2&&PR(O);O=u&8?PR(O):0;var Z=PR(B),M=Z&1;u=Z&4;var t=Z&256,q=Z&512,G=Z&1024;Z&=2048;var J=TD(B);M&&PR(B);u&&PR(B);for(var d=M=0;d2048?"":Y.indexOf("https://")===0?Y:""}; D2=function(W,Y,k){Y.match(XCV);return W(Y,k).then(function(P){var T=g.IQX(P.xhr);return T?D2(W,T,k):P.xhr})}; Q_=function(W,Y,k){W=W===void 0?"":W;Y=Y===void 0?null:Y;k=k===void 0?!1:k;g.NR.call(this);var P=this;this.sourceUrl=W;this.isLivePlayback=k;this.V5=this.duration=0;this.isPremiere=this.Fj=this.T=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.UA=this.UU=0;this.isOtf=this.t9=!1;this.Fr=(0,g.q5)();this.Kg=Infinity;this.W={};this.J=new Map;this.state=this.Zg=0;this.X=null;this.isManifestless=!1;this.TJ=[];this.G=null;this.OP=0;this.C="";this.UP=NaN;this.gD=this.J9=this.timestampOffset=this.L=0;this.KL= this.UK=NaN;this.Gn=0;this.GJ=this.A5=!1;this.rD=[];this.Q5={};this.wD=NaN;this.zW={npa:function(h){gz(P,h)}}; var T;this.bz=(T=Y)==null?void 0:T.Nq("html5_use_network_error_code_enums");SMV=!!Y&&Y.Nq("html5_modern_vp9_mime_type");var I;F$=!((I=Y)==null||!I.Nq("html5_enable_flush_during_seek"))&&g.wn();var X;wz=!((X=Y)==null||!X.Nq("html5_enable_reset_audio_decoder"))&&g.wn()}; h2V=function(W){return g.Y8(W.W,function(Y){return!!Y.info.video&&Y.info.video.qualityOrdinal>=2160})}; Ey5=function(W){return g.Y8(W.W,function(Y){return!!Y.info.video&&Y.info.video.isHdr()})}; yX=function(W){return g.Y8(W.W,function(Y){return!!Y.info.tY})}; g.B67=function(W){return g.Y8(W.W,function(Y){return WC(Y.info.mimeType)})}; OY0=function(W){return g.Y8(W.W,function(Y){return Y.info.video?Y.info.video.projectionType==="EQUIRECTANGULAR":!1})}; u_C=function(W){return g.Y8(W.W,function(Y){return Y.info.video?Y.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; ZYd=function(W){return g.Y8(W.W,function(Y){return Y.info.video?Y.info.video.projectionType==="MESH":!1})}; iYd=function(W){return g.Y8(W.W,function(Y){return Y.info.video?Y.info.video.stereoLayout===1:!1})}; Mcd=function(W){return m62(W.W,function(Y){return Y.info.video?Y.Iz():!0})}; FK=function(W){return g.Y8(W.W,function(Y){return xt(Y.ob.W)})}; gz=function(W,Y){W.W[Y.info.id]=Y;W.J.set(cR(g.VR(Y.info,W.t9)),Y)}; oO=function(W,Y,k){k=k===void 0?0:k;var P=W.mimeType||"",T=W.itag;var I=W.xtags;T=T?T.toString():"";I&&(T+=";"+I);I=T;if(a9(P)){var X=W.width||640;T=W.height||360;var h=W.fps,B=W.qualityLabel,O=W.qualityOrdinal,u=W.colorInfo,Z=W.projectionType,M;W.stereoLayout&&(M=tcq[W.stereoLayout]);var t=T6X(W)||void 0;if(u==null?0:u.primaries)var q=qMS[u.primaries]||void 0;X=new ww(X,T,h,Z,M,void 0,B,O&&R22[O],t,q);P=y_(P,X,ev[W.itag||""]);F$&&(P+="; enableflushduringseek=true");wz&&(P+="; enableresetaudiodecoder=true")}var G; if(Nn(P)){var J=W.audioSampleRate;M=W.audioTrack;J=new G2(J?+J:void 0,W.audioChannels,W.spatialAudioType,W.isDrc,W.loudnessDb,W.trackAbsoluteLoudnessLkfs,W.audioQuality||"AUDIO_QUALITY_UNKNOWN",W.isVb);M&&(q=M.displayName,T=M.id,M=M.audioIsDefault,q&&(G=new g.mz(q,T||"",!!M)))}var d;W.captionTrack&&(B=W.captionTrack,M=B.displayName,q=B.vssId,T=B.languageCode,h=B.kind,B=B.id,M&&q&&T&&(d=new kc7(M,q,T,h,W.xtags,B)));M=Number(W.bitrate)/8;q=Number(W.contentLength);T=Number(W.lastModified);B=W.drmFamilies; h=W.type;k=k&&q?q/k:0;W=Number(W.approxDurationMs);if(Y&&B){var A={};B=g.p(B);for(O=B.next();!O.done;O=B.next())(O=eq[O.value])&&(A[O]=Y[O])}return new o9(I,P,{audio:J,video:X,Ib:G,tY:A,c6:M,Do:k,contentLength:q,lastModified:T,captionTrack:d,streamType:h,approxDurationMs:W})}; v_=function(W,Y,k){k=k===void 0?0:k;var P=W.type;var T=W.itag;var I=W.xtags;I&&(T=W.itag+";"+I);if(a9(P)){var X=(W.size||"640x360").split("x");X=new ww(+X[0],+X[1],+W.fps,W.projection_type,+W.stereo_layout,void 0,W.quality_label,+W.quality_ordinal,W.eotf,W.primaries);P=y_(P,X,ev[W.itag]);F$&&(P+="; enableflushduringseek=true");wz&&(P+="; enableresetaudiodecoder=true")}var h;if(Nn(P)){var B=new G2(+W.audio_sample_rate||void 0,+W.audio_channels||0,W.spatial_audio_type,!!W.drc);W.name&&(h=new g.mz(W.name, W.audio_track_id,W.isDefault==="1"))}var O;W.caption_display_name&&W.caption_vss_id&&W.caption_language_code&&(O=new kc7(W.caption_display_name,W.caption_vss_id,W.caption_language_code,W.caption_kind,W.xtags,W.caption_id));I=Number(W.bitrate)/8;var u=Number(W.clen),Z=Number(W.lmt);k=k&&u?u/k:0;if(Y&&W.drm_families){var M={};for(var t=g.p(W.drm_families.split(",")),q=t.next();!q.done;q=t.next())q=q.value,M[q]=Y[q]}return new o9(T,P,{audio:B,video:X,Ib:h,tY:M,c6:I,Do:k,contentLength:u,lastModified:Z, captionTrack:O,streamType:W.stream_type,approxDurationMs:Number(W.approx_duration_ms)})}; HYF=function(W){return vQ(W,function(Y){return"FORMAT_STREAM_TYPE_OTF"===Y.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; nBd=function(W){return vQ(W,function(Y){return"FORMAT_STREAM_TYPE_OTF"===Y.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; pC1=function(W,Y){return W.X?Fz(W.X.T,Y):W.TJ.length?Fz(W.TJ,Y):[]}; Cr=function(W,Y,k){Y=Y===void 0?"":Y;k=k===void 0?"":k;W=new g.lW(W,!0);W.set("alr","yes");k&&(k=lwd(decodeURIComponent(k)),W[S[12]](Y,encodeURIComponent(k)));return W}; Jf1=function(W,Y){var k=OW(Y,"id");k=k.replace(":",";");var P=OW(Y,"mimeType"),T=OW(Y,"codecs");P=T?P+'; codecs="'+T+'"':P;T=Number(OW(Y,"bandwidth"))/8;var I=Number(ua(Y,"BaseURL").getAttribute(W.C+":contentLength")),X=W.duration&&I?I/W.duration:0;if(a9(P)){var h=Number(OW(Y,"width"));var B=Number(OW(Y,"height")),O=Number(OW(Y,"frameRate")),u=Gcd(OW(Y,W.C+":projectionType"));a:switch(OW(Y,W.C+":stereoLayout")){case "layout_left_right":var Z=1;break a;case "layout_top_bottom":Z=2;break a;default:Z= 0}h=new ww(h,B,O,u,Z)}if(Nn(P)){var M=Number(OW(Y,"audioSamplingRate"));var t=Number(OW(Y.getElementsByTagName("AudioChannelConfiguration")[0],"value"));B=KWz(OW(Y,W.C+":spatialAudioType"));M=new G2(M,t,B);a:{t=OW(Y,"lang")||"und";if(B=ua(Y,"Role"))if(u=OW(B,"value")||"",g.SV(EBd,u)){B=t+"."+EBd[u];O=u==="main";W=OW(Y,W.C+":langName")||t+" - "+u;t=new g.mz(W,B,O);break a}t=void 0}}if(Y=ua(Y,"ContentProtection"))if(Y.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var q={};for(Y= Y.firstChild;Y!=null;Y=Y.nextSibling)Y instanceof Element&&/SystemURL/.test(Y.nodeName)&&(W=Y.getAttribute("type"),B=Y.textContent,W&&B&&(q[W]=B.trim()))}else q=void 0;return new o9(k,P,{audio:M,video:h,Ib:t,tY:q,c6:T,Do:X,contentLength:I})}; Gcd=function(W){switch(W){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"}}; KWz=function(W){switch(W){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"}}; rfF=function(W,Y){Y=Y===void 0?"":Y;W.state=1;W.Fr=(0,g.q5)();return jHq(Y||W.sourceUrl).then(function(k){if(!W.Xr()){W.Zg=k.status;k=k.responseText;var P=new DOMParser;k=EF(P,mW0(k),"text/xml").getElementsByTagName("MPD")[0];W.Kg=z1C(OW(k,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(k.attributes){P=g.p(k.attributes);for(var T=P.next();!T.done;T=P.next())if(T=T.value,T.value==="http://youtube.com/yt/2012/10/10"){P=T.name.split(":")[1];break b}}P=""}W.C=P;W.isLive=W.Kg=W.Kg}; z2S=function(W){W.G&&W.G.stop()}; sH7=function(W){var Y=W.Kg;isFinite(Y)&&(Lr(W)?W.refresh():(Y=Math.max(0,W.Fr+Y-(0,g.q5)()),W.G||(W.G=new g.C_(W.refresh,Y,W),g.v(W,W.G)),W.G.start(Y)))}; dtX=function(W){W=W.W;for(var Y in W){var k=W[Y].index;if(k.isLoaded())return k.QU()+1}return 0}; UW=function(W){return W.J9?W.J9-(W.L||W.timestampOffset):0}; la=function(W){return W.gD?W.gD-(W.L||W.timestampOffset):0}; ba=function(W){if(!isNaN(W.UP))return W.UP;var Y=W.W,k;for(k in Y){var P=Y[k].index;if(P.isLoaded()&&!WC(Y[k].info.mimeType)){Y=0;for(k=P.xN();k<=P.QU();k++)Y+=P.getDuration(k);Y/=P.Eo();Y=Math.round(Y/.5)*.5;P.Eo()>10&&(W.UP=Y);return Y}if(W.isLive&&(P=Y[k],P.Lh))return P.Lh}return NaN}; mtF=function(W,Y){W=g57(W.W,function(P){return P.index.isLoaded()}); if(!W)return NaN;W=W.index;var k=W.o7(Y);return W.getStartTime(k)===Y?Y:k=0&&T.segments.splice(I,1)}}}; gBv=function(W){for(var Y in W.W)WC(W.W[Y].info.mimeType)||QfX(W.W[Y].index,Infinity)}; fr=function(W,Y,k){for(var P in W.W){var T=W.W[P].index,I=Y,X=k;T.Cr&&(I&&(T.L8=Math.max(T.L8,I)),X&&(T.GC=Math.max(T.GC||0,X)))}k&&(W.wD=k/1E3)}; FWd=function(W){W.gD=0;W.J9=0;W.Gn=0}; V_=function(W){return W.GJ&&W.isManifestless?W.isLiveHeadPlayable:W.isLive}; y_=function(W,Y,k){NN===null&&(NN=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(SMV&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return NN||k!=="9"&&k!=="("?NN||k!=="9h"&&k!=="(h"||(W='video/webm; codecs="vp9.2"'):W='video/webm; codecs="vp9"',W;if(!NN&&!aO||W!=='video/webm; codecs="vp9"'&&W!=='video/webm; codecs="vp9.2"')return W; k="00";var P="08",T="01",I="01",X="01";W==='video/webm; codecs="vp9.2"'&&(k="02",P="10",Y.primaries==="bt2020"&&(X=T="09"),Y.W==="smpte2084"&&(I="16"),Y.W==="arib-std-b67"&&(I="18"));return'video/webm; codecs="'+["vp09",k,"51",P,"01",T,I,X,"00"].join(".")+'"'}; YO=function(W,Y,k){W=""+W+(Y>49?"p60":Y>32?"p48":"");Y=tM()[W];if(Y!=null&&Y>0)return Y;Y=Wq.get(W);if(Y!=null&&Y>0)return Y;k=k==null?void 0:k.get(W);return k!=null&&k>0?k:8192}; wCq=function(W){this.pg=W;this.xq=this.W3=this.OP=this.C=this.T=this.V5=this.GJ=this.A5=!1;this.G=this.X=0;this.bz=!1;this.Kg=!0;this.Q5=!1;this.nh=0;this.z7=this.gD=!1;this.DY=!0;this.Fr=this.UP=!1;this.W={};this.J9=this.xm=this.tT=this.disableAv1=this.A9=this.Qa=this.Lg=this.K1=this.K=this.L=!1;this.wD=0;this.e1=!1;this.AC=this.pg.U("html5_disable_aac_preference");this.KH=Infinity;this.TJ=0;this.D_=this.pg.OR();this.Gn=this.pg.experiments.Nq("html5_enable_vp9_fairplay");this.CN=this.pg.U("html5_force_av1_for_testing"); this.rD=g.W2(this.pg.experiments,"html5_av1_ordinal_cap");this.KN=this.pg.U("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.LH=this.pg.U("html5_account_onesie_format_selection_during_format_filter");this.c6=g.W2(this.pg.experiments,"html5_max_byterate");this.f1=this.pg.U("html5_enable_iamf_audio");this.UV=this.pg.experiments.Nq("html5_allow_capability_merge");this.rZ=this.pg.U("html5_enable_encrypted_av1");this.wD=g.W2(this.pg.experiments,"html5_hard_cap_max_vertical_resolution");this.e1= this.pg.U("html5_enable_audio_feature_manager")}; Jpz=function(W){if(W.GJ)return["f"];if(g.gn("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var Y=["9h","9","h","8"];W.rZ&&Y.push("1e");Y=Y.concat(["(h","(","H","*"]);W.gD&&(Y.unshift("1"),Y.unshift("1h"));W.W3&&Y.unshift("h");W.N&&(Y=(QH7[W.N]||[W.N]).concat(Y));return Y}; RUq=function(W){var Y=["o","a","A"];W.TJ===1&&(W.T&&(Y=["mac3","MAC3"].concat(Y)),W.C&&(Y=["meac3","MEAC3"].concat(Y)),W.f1&&(Y=["i","I"].concat(Y)));W.A5&&(Y=["so","sa"].concat(Y));!W.xq||W.OP||W.J||W.AC||Y.unshift("a");W.J&&(Y=(QH7[W.J]||[W.J]).concat(Y));return Y}; $O=function(W,Y,k,P){Y=Y===void 0?{}:Y;if(P===void 0?0:P)return Y.disabled=1,0;if(Lm(W.C,U7.AV1_CODECS)&&Lm(W.C,U7.HEIGHT)&&Lm(W.C,U7.BITRATE))return Y.isCapabilityUsable=1,8192;try{var T=WNz();if(T&&!W.U("disable_av1_setting"))return Y.localPref=T}catch(h){}P=1080;T=navigator.hardwareConcurrency;T<=2&&(P=480);Y.coreCount=T;if(T=g.W2(W.experiments,"html5_default_av1_threshold"))P=Y["default"]=T;!W.U("html5_disable_av1_arm_check")&&Md0()&&(Y.isArm=1,P=240);if(W=W.C.Kg)Y.mcap=W,P=Math.max(P,W);if(k){var I, X;if(W=(I=k.videoInfos.find(function(h){return Ul(h)}))==null?void 0:(X=I.K)==null?void 0:X.powerEfficient)P=8192,Y.isEfficient=1; k=k.videoInfos[0].video;I=Math.min(YO("1",k.fps),YO("1",30));Y.perfCap=I;P=Math.min(P,I);k.isHdr()&&!W&&(Y.hdr=1,P*=.75)}else k=YO("1",30),Y.perfCap30=k,P=Math.min(P,k),k=YO("1",60),Y.perfCap60=k,P=Math.min(P,k);return Y.av1Threshold=P}; kO=function(W,Y,k,P){this.flavor=W;this.keySystem=Y;this.K=k;this.experiments=P;this.W={};this.GJ=this.keySystemAccess=null;this.U2=this.n4=-1;this.S6=null;this.J=!!P&&P.Nq("edge_nonprefixed_eme");P&&P.Nq("html5_enable_vp9_fairplay")}; TY=function(W){return W.J?!1:!W.keySystemAccess&&!!Pq()&&W.keySystem==="com.microsoft.playready"}; jN=function(W){return W.keySystem==="com.microsoft.playready"}; IP=function(W){return!W.keySystemAccess&&!!Pq()&&W.keySystem==="com.apple.fps.1_0"}; XB=function(W){return W.keySystem==="com.youtube.fairplay"}; SN=function(W){return W.keySystem==="com.youtube.fairplay.sbdl"}; g.hn=function(W){return W.flavor==="fairplay"}; Pq=function(){var W=window,Y=W.MSMediaKeys;eU()&&!Y&&(Y=W.WebKitMediaKeys);return Y&&Y.isTypeSupported?Y:null}; OC=function(W){return navigator.requestMediaKeySystemAccess?g.qn&&!g.wn()?q9("45"):g.e5||g.IY?W.Nq("edge_nonprefixed_eme"):g.Bq?q9("47"):g.hj&&W.Nq("html5_enable_safari_fairplay")?!1:!0:!1}; yfC=function(W,Y,k,P){var T=Qp(),I=(k=T||k&&eU())?["com.youtube.fairplay"]:["com.widevine.alpha"];Y&&I.unshift("com.youtube.widevine.l3");T&&P&&I.unshift("com.youtube.fairplay.sbdl");return k?I:W?[].concat(g.ZX(I),g.ZX(ug.playready)):[].concat(g.ZX(ug.playready),g.ZX(I))}; Zz=function(W,Y,k,P,T){P=P===void 0?!1:P;g.e.call(this);this.pg=Y;this.useCobaltWidevine=P;this.y5=T;this.K=[];this.J={};this.W={};this.callback=null;this.C=!1;this.T=[];this.initialize(W,!k)}; oBv=function(W,Y){W.callback=Y;W.T=[];OC(W.pg.experiments)?ig(W):e2F(W)}; ig=function(W){if(!W.Xr())if(W.K.length===0)W.callback(W.T);else{var Y=W.K[0],k=W.J[Y],P=vB5(W,k);if(MG&&MG.keySystem===Y&&MG.VWz===JSON.stringify(P))W.y5("remksa",{re:!0}),CYq(W,k,MG.keySystemAccess);else{var T,I;W.y5("remksa",{re:!1,ok:(I=(T=MG)==null?void 0:T.keySystem)!=null?I:""});MG=void 0;navigator.requestMediaKeySystemAccess(Y,P).then(Ng(function(X){CYq(W,k,X,P)}),Ng(function(){W.C=!W.C&&W.J[W.K[0]].flavor==="widevine"; W.C||W.K.shift();ig(W)}))}}}; CYq=function(W,Y,k,P){if(!W.Xr()){P&&(MG={keySystem:Y.keySystem,keySystemAccess:k,VWz:JSON.stringify(P)});Y.keySystemAccess=k;if(jN(Y)){k=Mn();P=g.p(Object.keys(W.W[Y.flavor]));for(var T=P.next();!T.done;T=P.next())T=T.value,Y.W[T]=!!k.canPlayType(T)}else{k=Y.keySystemAccess.getConfiguration();if(k.audioCapabilities)for(P=g.p(k.audioCapabilities),T=P.next();!T.done;T=P.next())Y.W[T.value.contentType]=!0;if(k.videoCapabilities)for(k=g.p(k.videoCapabilities),P=k.next();!P.done;P=k.next())Y.W[P.value.contentType]= !0}W.T.push(Y);W.useCobaltWidevine||W.U("html5_enable_vp9_fairplay")&&SN(Y)?(W.K.shift(),ig(W)):W.callback(W.T)}}; vB5=function(W,Y){var k={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(W.U("html5_enable_vp9_fairplay")&&XB(Y))return k.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),k.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[k];jN(Y)&&(k.initDataTypes=["keyids","cenc"]);for(var P=g.p(Object.keys(W.W[Y.flavor])),T=P.next();!T.done;T=P.next()){T=T.value;var I=T.indexOf("audio/")===0,X=I?k.audioCapabilities:k.videoCapabilities;Y.flavor!== "widevine"||W.C?X.push({contentType:T}):I?X.push({contentType:T,robustness:"SW_SECURE_CRYPTO"}):(g.qn&&g.gn("windows nt")&&!W.U("html5_drm_enable_moho")||X.push({contentType:T,robustness:"HW_SECURE_ALL"}),I=T,W.pg.C.J&&T.includes("vp09")&&(I=T+"; experimental=allowed"),X.push({contentType:I,robustness:"SW_SECURE_DECODE"}),tn(W.pg)==="MWEB"&&(lw()||FU())&&(W.y5("swcrypto",{}),X.push({contentType:T,robustness:"SW_SECURE_CRYPTO"})))}return[k]}; e2F=function(W){if(Pq()&&(g.hj||vy))W.T.push(new kO("fairplay","com.apple.fps.1_0","",W.pg.experiments));else{var Y=LW5(),k=g.qc(W.K,function(P){var T=W.J[P],I=!1,X=!1,h;for(h in W.W[T.flavor])Y(h,P)&&(T.W[h]=!0,I=I||h.indexOf("audio/")===0,X=X||h.indexOf("video/")===0);return I&&X}); k&&W.T.push(W.J[k]);W.K=[]}W.callback(W.T)}; LW5=function(){var W=Pq();if(W){var Y=W.isTypeSupported;return function(P,T){return Y(T,P)}}var k=Mn(); return k&&(k.addKey||k.webkitAddKey)?function(P,T){return!!k.canPlayType(P,T)}:function(){return!1}}; UtS=function(W){this.experiments=W;this.W=2048;this.T=0;this.A5=(this.G=this.U("html5_streaming_resilience"))?.5:.25;var Y=Y===void 0?0:Y;this.J=g.W2(this.experiments,"html5_media_time_weight_prop")||Y;this.N=(this.C=this.experiments.Nq("html5_consider_end_stall"))&&qG;this.K=this.experiments.Nq("html5_measure_max_progress_handling");this.L=this.U("html5_treat_requests_pre_elbow_as_metadata");this.X=this.U("html5_media_time_weight")||!!this.J;this.U("html5_sabr_live_audio_early_return_fix")&&qG&& (this.W=65536)}; RP=function(W){var Y;W=lG((Y=W.serializedClientExperimentFlags)!=null?Y:"","&");this.flags=new Map(Object.entries(W).map(function(k){var P=g.p(k);k=P.next().value;P=P.next().value;return typeof P==="string"?[k,P]:[k,P[0]]}))}; xtS=function(W,Y){switch(Y.Qr){case "bool":return W.Nq(Y.Cc);case "int":return W=lQ7(W,Y.Cc),a3(W);case "double":return lQ7(W,Y.Cc);case "string":return bYv(W,Y.Cc);case "int32_list":return cfd(W,Y.Cc);case "int64_list":return cfd(W,Y.Cc).map(function(k){return a3(k)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; lQ7=function(W,Y){W=W.flags.get(""+Y);return Number(W)||0}; cfd=function(W,Y){if(W=W.flags.get(""+Y))if(W=W.replace(/\[ *(.*?) *\]/,"$1"))return W.split(",").map(Number);return[]}; bYv=function(W,Y){return(W=W.flags.get(""+Y))?W.toString():""}; Hq=function(W,Y,k){this.W=void 0;this.experimentIds=W?W.split(","):[];this.flags=lG(Y||"","&");W={};Y=g.p(this.experimentIds);for(var P=Y.next();!P.done;P=Y.next())W[P.value]=!0;this.experiments=W;this.Nq("html5_player_intkey")&&(k=new RP(k),this.J=new PpX(k),this.K=new k9q(k))}; g.W2=function(W,Y){W=W.Ik(Y);JSON.stringify(W);return Number(W)||0}; nA=function(W,Y){return(W=W.Ik(Y))?W.toString():""}; fQ7=function(W){if(W=W.Ik("html5_web_po_experiment_ids"))if(W=W.replace(/\[ *(.*?) *\]/,"$1"))return W.split(",").map(Number);return[]}; VcX=function(W){if(W.W)return W.W;if(W.experimentIds.length<=1)return W.W=W.experimentIds,W.W;var Y=[].concat(g.ZX(W.experimentIds)).map(function(P){return Number(P)}); Y.sort();for(var k=Y.length-1;k>0;--k)Y[k]-=Y[k-1];W.W=Y.map(function(P){return P.toString()}); W.W.unshift("v1");return W.W}; aQV=function(W){return N62.then(W)}; pA=function(W,Y,k){this.experiments=W;this.gD=Y;this.TJ=k===void 0?!1:k;this.N=!!g.Wp("cast.receiver.platform.canDisplayType");this.L={};this.A5=!1;this.T=new Map;this.G=!0;this.K=this.J=!1;this.W=new Map;this.Kg=0;this.wD=this.experiments.Nq("html5_disable_vp9_encrypted");this.C=this.experiments.Nq("html5_enable_encrypted_av1");W=g.Wp("cast.receiver.platform.getValue");this.X=!this.N&&W&&W("max-video-resolution-vpx")||null;WbS(this);this.J=!!(Qp()&&DJ()>=21)}; Ap0=function(W,Y,k){k=k===void 0?1:k;var P=Y.itag;if(P==="0")return!0;var T=Y.mimeType;if(Y.lz==="1e"&&!W.C)return"dav1enc";if(Ul(Y)&&W.A5)return"dav1";if(Y.video&&(Y.video.isHdr()||Y.video.primaries==="bt2020")&&!(Lm(W,U7.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(P==="338"&&!(g.qn?q9(53):g.Bq&&q9(64)))return"dopus";var I=k;I=I===void 0?1: I;k={};Y.video&&(Y.video.width&&(k[U7.WIDTH.name]=Y.video.width),Y.video.height&&(k[U7.HEIGHT.name]=Y.video.height),Y.video.fps&&(k[U7.FRAMERATE.name]=Y.video.fps*I),Y.video.W&&(k[U7.EOTF.name]=Y.video.W),Y.c6&&(k[U7.BITRATE.name]=Y.c6*8*I),Y.lz==="("&&(k[U7.CRYPTOBLOCKFORMAT.name]="subsample"),Y.video.projectionType==="EQUIRECTANGULAR"||Y.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Y.video.projectionType==="MESH")&&(k[U7.DECODETOTEXTURE.name]="true");var X;((X=Y.audio)==null?0:X.numChannels)&& (Y.lz!=="i"&&Y.lz!=="I"||!Y65)&&(k[U7.CHANNELS.name]=Y.audio.numChannels);W.J&&vT(Y)&&(k[U7.EXPERIMENTAL.name]="allowed");X=g.p(Object.keys(U7));for(I=X.next();!I.done;I=X.next()){I=U7[I.value];var h;if(h=k[I.name])if(h=!(I===U7.EOTF&&Y.mimeType.indexOf("vp09.02")>0)){h=I;var B=Y;h=!(W.experiments.Nq("html5_ignore_h264_framerate_cap")&&h===U7.FRAMERATE&&zkz(B))}if(h)if(Lm(W,I))if(W.X){if(W.X[I.name]1080&&Y.tY&&(T+="; hdcp=2.2");return P==="227"?"hqcenc":P!=="585"&&P!=="588"&&P!=="583"&&P!=="586"&&P!=="584"&&P!=="587"&&P!=="591"&&P!=="592"||W.experiments.Nq("html5_enable_new_hvc_enc")?Qp()&&DJ()>=21&&g.gn("appletv5")&&(P==="410"||P==="845")?!0:W.isTypeSupported(T)?!0:"tpus":"newhvc"}; GY=function(){var W=FU()&&!q9(29),Y=g.gn("google tv")&&g.gn("chrome")&&!q9(30);return W||Y?!1:wPX()}; $ZS=function(W,Y,k){var P=480;Y=g.p(Y);for(var T=Y.next();!T.done;T=Y.next()){T=T.value;var I=T.video.qualityOrdinal;I<=1080&&I>P&&Ap0(W,T,k)===!0&&(P=I)}return P}; g.KA=function(W,Y){Y=Y===void 0?!1:Y;return GY()&&W.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!Y&&W.canPlayType(Mn(),"application/x-mpegURL")?!0:!1}; PEC=function(W){knv(function(){for(var Y=g.p(Object.keys(U7)),k=Y.next();!k.done;k=Y.next())Lm(W,U7[k.value])})}; Lm=function(W,Y){Y.name in W.L||(W.L[Y.name]=TaF(W,Y));return W.L[Y.name]}; TaF=function(W,Y){if(W.X)return!!W.X[Y.name];if(Y===U7.BITRATE&&W.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!W.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(Y===U7.AV1_CODECS)return W.isTypeSupported("video/mp4; codecs="+Y.valid)&&!W.isTypeSupported("video/mp4; codecs="+Y.mz);if(Y.video){var k='video/webm; codecs="vp9"';W.isTypeSupported(k)||(k='video/mp4; codecs="avc1.4d401e"')}else k='audio/webm; codecs="opus"', W.isTypeSupported(k)||(k='audio/mp4; codecs="mp4a.40.2"');return W.isTypeSupported(k+"; "+Y.name+"="+Y.valid)&&!W.isTypeSupported(k+"; "+Y.name+"="+Y.mz)}; jL0=function(W,Y){var k=0;W.T.has(Y)&&(k=W.T.get(Y).bX);W.T.set(Y,{bX:k+1,Ll:Math.pow(2,k+1)});W.K=!0}; eb=function(W){for(var Y=[],k=g.p(W.W.keys()),P=k.next();!P.done;P=k.next()){P=P.value;var T=W.W.get(P);Y.push(P+"_"+T.maxWidth+"_"+T.maxHeight)}return Y.join(".")}; ny2=function(W,Y){for(var k=new Map,P=g.p(W.W.keys()),T=P.next();!T.done;T=P.next()){T=T.value;var I=T.split("_")[0];Y.has(I)||k.set(T,W.W.get(T))}W.W=k}; GO1=function(W,Y,k){var P,T=((P=k.video)==null?void 0:P.fps)||0;P=Y+"_"+T;var I=!!k.audio,X={itag:k.itag,lz:Y,xH:I};if(I)X.numChannels=k.audio.numChannels;else{var h=k.video;X.maxWidth=h==null?void 0:h.width;X.maxHeight=h==null?void 0:h.height;X.maxFramerate=T;Lm(W,U7.BITRATE)&&(X.maxBitrateBps=k.c6*8);X.PE=h==null?void 0:h.isHdr()}h=W.W.get(P);h?I||(k=Math.max(h.maxWidth||0,h.maxHeight||0)>Math.max(X.maxWidth||0,X.maxHeight||0)?h:X,Y={itag:k.itag,lz:Y,xH:I,maxWidth:Math.max(h.maxWidth||0,X.maxWidth|| 0),maxHeight:Math.max(h.maxHeight||0,X.maxHeight||0),maxFramerate:T,PE:k.PE},Lm(W,U7.BITRATE)&&(Y.maxBitrateBps=k.maxBitrateBps),W.W.set(P,Y)):W.W.set(P,X)}; KNC=function(W,Y,k){var P,T=((P=k.video)==null?void 0:P.fps)||0;P=Y+"_"+T;var I=!!k.audio,X=W.W.get(P);a:{var h=W.W.get(P),B=!!k.audio;if(h){if(B){var O=!1;break a}var u;if(!B&&((O=k.video)==null?0:O.height)&&h.maxHeight&&h.maxHeight>=((u=k.video)==null?void 0:u.height)){O=!1;break a}}O=!0}O&&(O=k.itag,Y=X?X:{itag:O,lz:Y,xH:I},I?Y.numChannels=k.audio.numChannels:(I=k.video,Y.maxWidth=I==null?void 0:I.width,Y.maxHeight=I==null?void 0:I.height,Y.maxFramerate=T,Lm(W,U7.BITRATE)&&(Y.maxBitrateBps=k.c6* 8),Y.PE=I==null?void 0:I.isHdr()),W.W.set(P,Y))}; WbS=function(W){var Y;(Y=navigator.mediaCapabilities)!=null&&Y.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(k){k.smooth&&k.powerEfficient&&(W.Kg=2160)})}; EC=function(){g.NR.call(this);this.items={}}; Jn=function(W,Y){this.W=W;this.cipher=this.W.exports.AES128CTRCipher_create(Y.byteOffset)}; r3=function(){this.K=this.N0=0;this.W=Array.from({length:sC.length}).fill(0)}; It6=function(){}; XvS=function(){this.startTimeMs=(0,g.q5)();this.W=!1}; S6z=function(){this.W=new It6}; hlq=function(W,Y,k,P){P=P===void 0?1:P;k>=0&&(Y in W.W||(W.W[Y]=new r3),W.W[Y].NB(k,P))}; Ba6=function(W,Y,k,P,T){var I=(0,g.q5)(),X=T?T(Y):void 0,h;T=(h=X==null?void 0:X.N0)!=null?h:1;if(T!==0){var B;h=(B=X==null?void 0:X.profile)!=null?B:k;hlq(W,h,I-P,T)}return Y}; OVF=function(W,Y,k,P,T){if(Y&&typeof Y==="object"){var I=function(X){return Ba6(W,X,k,P,T)}; if(wm(Y))return Y.then(I);if(Fo(Y))return vW(Y,I)}return Ba6(W,Y,k,P,T)}; ui0=function(){}; ZVq=function(W){var Y=window;Y.ywc||(Y.ywc={});var k=Y.ywc[W];if(k)return k;k={};return Y.ywc[W]=k}; iV5=function(W){var Y=window;Y.ywc&&delete Y.ywc[W]}; MtX=function(W){var Y=ZVq(W);if(Y.binP)return Y.binP;Y.binP=Promise.resolve().then(function(){return fetch(W)}).then(function(k){if(!k.ok)throw Error("HTTP"+k.statusText); return k.arrayBuffer()}); Y.binP.then(function(k){Y.bin=k},function(){iV5(W)}); return Y.binP}; Rlq=function(W,Y){return L1(tt2,function(){var k=this;return function T(){var I,X,h;return Q0(T,function(B){switch(B.W){case 1:g.E2(B,2);if(!k.K)throw"wasm.ps.ns";I=W;X=ez;return pC(B,Ua(q6F(k,Y)),4);case 4:h=X(B.K);if(!h)throw"wasm.ps.um";if(k.W)try{return B.return(new WebAssembly.Instance(h,I))}catch(O){k.W=!1}return pC(B,Ua(WebAssembly.instantiate(h,I)),5);case 5:return B.return(B.K);case 2:g.DX(B),g.gv(B,0)}})}()})}; q6F=function(W,Y){return L1(W,function(){var k=this;return function T(){var I,X,h,B,O,u,Z,M,t;return Q0(T,function(q){switch(q.W){case 1:g.E2(q,2);I=[];X=function(){return"wasm.ps.c: ["+I.map(function(G){return'"'+G+'"'}).join(", ")+"]"}; h=ZVq(Y);if(h.mod)return q.return(h.mod);if(!h.modP){q.oi(4);break}g.KC(q,5);B=ez;return pC(q,Ua(h.modP),7);case 7:return q.return(B(q.K));case 5:g.Aq(q),I.unshift("pcm");case 4:if((O=h.bin)||!h.binP){q.oi(8);break}g.KC(q,9);u=ez;return pC(q,Ua(h.binP),11);case 11:O=u(q.K);g.s2(q,8);break;case 9:g.Aq(q),I.unshift("pfb");case 8:if(O){q.oi(12);break}g.KC(q,13);Z=ez;return pC(q,Ua(MtX(Y)),15);case 15:O=Z(q.K);g.s2(q,12);break;case 13:throw g.Aq(q),k.K=!1,I.unshift("fb"),X();case 12:if(k.W)try{return q.return(new WebAssembly.Module(O))}catch(G){k.W= !1,I.unshift("cs")}g.KC(q,16);M=ez;return pC(q,Ua(WebAssembly.compile(O)),18);case 18:return q.return(M(q.K));case 16:t=g.Aq(q),iV5(Y),I.unshift("ca: "+t);case 17:throw X();case 2:g.DX(q),g.gv(q,0)}})}()})}; HVF=function(){}; nD0=function(){var W=this;this.proc_exit=function(){}; this.fd_write=function(Y,k,P){if(!W.exports)return 1;Y=new Uint32Array(W.exports.memory.buffer,k,P*2);k=[];for(var T=0;T0)Y=W.byterate,this.A5=!0;else{var P; k=(((P=navigator.connection)==null?void 0:P.downlink)||0)*64*1024;k>0&&(Y=k,this.A5=!0)}this.J.NL(this.policy.X,Y);W.delay>0&&this.L.NL(1,Math.min(W.delay,2));W.stall>0&&this.G.NL(1,W.stall);W.init>0&&(this.UP=Math.min(W.init,this.UP));W.interruptions&&(this.T=this.T.concat(W.interruptions),this.T.length>16&&this.T.pop());this.Kg=(0,g.q5)();this.policy.G>0&&(this.Fr=new g.C_(this.V5,this.policy.G,this),g.v(this,this.Fr),this.Fr.start())}; vq=function(W,Y,k,P){W.J.NL(P===void 0?Y:P,k/Y);W.X=(0,g.q5)()}; AAV=function(W){W.C||(W.C=(0,g.q5)());W.policy.N&&(W.X=(0,g.q5)())}; zlv=function(W,Y){if(W.C){var k=Y-W.C;if(k<6E4){if(k>1E3){var P=W.interruptions;P.push(Math.ceil(k));P.sort(function(T,I){return I-T}); P.length>16&&P.pop()}W.gD+=k}}W.C=Y}; CA=function(W,Y,k,P,T,I){I=I===void 0?!1:I;W.OP.NL(Y,k/Y);W.X=(0,g.q5)();T||W.N.NL(1,Y-P);I||(W.C=0);W.Kg>-1&&(0,g.q5)()-W.Kg>3E4&&dZX(W)}; LA=function(W,Y,k){Y=Math.max(Y,W.K.W);W.G.NL(1,k/Y)}; UC=function(W){W=W.L.le()+W.TJ.le()||0;W=isNaN(W)?.5:W;return W=Math.min(W,5)}; lg=function(W,Y,k){isNaN(k)||(W.wD+=k);isNaN(Y)||(W.GJ+=Y)}; bg=function(W){W=W.J.le();return W>0?W:1}; cq=function(W,Y,k){Y=Y===void 0?!1:Y;k=k===void 0?1048576:k;var P=bg(W);P=1/((W.G.le()||0)*W.policy.A5+1/P);var T=W.OP.le();T=T>0?T:1;var I=Math.max(P,T);W.policy.C>0&&T=4E3}; DZd=function(W){this.experiments=W;this.W=17;this.J=13E4;this.X=.5;this.T=this.K=!1;this.Kg=this.U("html5_use_histogram_for_bandwidth");this.C=g.W2(this.experiments,"html5_auxiliary_estimate_weight");this.A5=g.W2(this.experiments,"html5_stall_factor")||1;this.G=g.W2(this.experiments,"html5_check_for_idle_network_interval_ms");this.L=this.experiments.Nq("html5_trigger_loader_when_idle_network");this.N=this.experiments.Nq("html5_sabr_fetch_on_idle_network_preloaded_players")}; Fb1=function(W,Y){W=W===void 0?{}:W;Y=Y===void 0?{}:Y;g.e.call(this);var k=this;this.values=W;this.XO=Y;this.K={};this.J=this.W=0;this.T=new g.C_(function(){gDF(k)},1E4); g.v(this,this.T)}; fA=function(W,Y){wv7(W,Y);return W.values[Y]&&W.XO[Y]?W.values[Y]/Math.pow(2,W.W/W.XO[Y]):0}; wv7=function(W,Y){W.values[Y]||(Y=fw0(),W.values=Y.values||{},W.XO=Y.halfLives||{},W.K=Y.values?Object.assign({},Y.values):{})}; gDF=function(W){var Y=fw0();if(Y.values){Y=Y.values;for(var k={},P=g.p(Object.keys(W.values)),T=P.next();!T.done;T=P.next())T=T.value,Y[T]&&W.K[T]&&(W.values[T]+=Y[T]-W.K[T]),k[T]=fA(W,T);W.K=k}Y=W.XO;k={};k.values=W.K;k.halfLives=Y;g.Ke("yt-player-memory",k,2592E3)}; i6=function(W,Y,k,P,T){g.e.call(this);this.webPlayerContextConfig=Y;this.CL=P;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.u5=this.A9=this.Qa=this.i5=this.userDisplayName=this.userDisplayImage=this.k7="";this.W={};this.J9={};this.controlsType="0";this.KH=NaN;this.bz=!1;this.fN=(0,g.q5)();this.K1=0;this.gw=this.YF=!1;this.Ka=!0;this.preferGapless=this.S6=this.Zm=this.J=this.jW=!1;this.B4=[];this.k8=!1;this.Jo=0;W=W?g.ij(W):{};Y&&Y.csiPageType&&(this.csiPageType=Y.csiPageType);Y&&Y.csiServiceName&& (this.csiServiceName=Y.csiServiceName);Y&&Y.preferGapless&&(this.preferGapless=Y.preferGapless);this.experiments=new Hq(Y?Y.serializedExperimentIds:W.fexp,Y?Y.serializedExperimentFlags:W.fflags,Y!=null?Y:{});this.forcedExperiments=Y?Y.serializedForcedExperimentIds:NK("",W.forced_experiments)||void 0;this.cspNonce=(Y==null?0:Y.cspNonce)?Y.cspNonce:NK("",W.csp_nonce);this.U("web_player_deprecated_uvr_killswitch");try{var I=document.location.toString()}catch(X7){I=""}this.KN=I;this.ancestorOrigins=(P= window.location.ancestorOrigins)?Array.from(P):[];this.T=xG(!1,Y?Y.isEmbed:W.is_embed);if(Y&&Y.device){if(P=Y.device,P.androidOsExperience&&(this.W.caoe=""+P.androidOsExperience),P.androidPlayServicesVersion&&(this.W.capsv=""+P.androidPlayServicesVersion),P.brand&&(this.W.cbrand=P.brand),P.browser&&(this.W.cbr=P.browser),P.browserVersion&&(this.W.cbrver=P.browserVersion),P.cobaltReleaseVehicle&&(this.W.ccrv=""+P.cobaltReleaseVehicle),this.W.c=P.interfaceName||"WEB",this.W.cver=P.interfaceVersion|| "html5",P.interfaceTheme&&(this.W.ctheme=P.interfaceTheme),this.W.cplayer=P.interfacePlayerType||"UNIPLAYER",P.model&&(this.W.cmodel=P.model),P.network&&(this.W.cnetwork=P.network),P.os&&(this.W.cos=P.os),P.osVersion&&(this.W.cosver=P.osVersion),P.platform&&(this.W.cplatform=P.platform),I=nA(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),I==="all"||I==="once")P.chipset&&(this.J9.cchip=P.chipset),P.cobaltAppVersion&&(this.J9.ccappver=P.cobaltAppVersion),P.firmwareVersion&&(this.J9.cfrmver= P.firmwareVersion),P.deviceYear&&(this.J9.crqyear=P.deviceYear)}else this.W.c=W.c||"web",this.W.cver=W.cver||"html5",this.W.cplayer="UNIPLAYER";this.loaderUrl=Y?this.T||QLq(this)&&Y.loaderUrl?Y.loaderUrl||"":this.KN:this.T||QLq(this)&&W.loaderUrl?NK("",W.loaderUrl):this.KN;this.T&&g.N6("yt.embedded_player.embed_url",this.loaderUrl);this.L=y5(this.loaderUrl,yAX);P=this.loaderUrl;var X=X===void 0?!1:X;this.Xo=Q5(y5(P,el0),P,X,"Trusted Ad Domain URL");this.f1=xG(!1,W.privembed);this.protocol=this.KN.indexOf("http:")=== 0?"http":"https";this.xf=ued((Y?Y.customBaseYoutubeUrl:W.BASE_YT_URL)||"")||ued(this.KN)||this.protocol+"://www.youtube.com/";X=Y?Y.eventLabel:W.el;P="detailpage";X==="adunit"?P=this.T?"embedded":"detailpage":X==="embedded"||this.L?P=fN(P,X,oD1):X&&(P="embedded");this.TJ=P;EKd();X=null;P=Y?Y.playerStyle:W.ps;I=g.n$(vDX,P);!P||I&&!this.L||(X=P);this.playerStyle=X;this.X=g.n$(vDX,this.playerStyle);this.houseBrandUserStatus=Y==null?void 0:Y.houseBrandUserStatus;this.Kg=this.X&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.wf=!this.Kg;this.Fr=xG(!1,W.disableplaybackui);this.disablePaidContentOverlay=xG(!1,Y==null?void 0:Y.disablePaidContentOverlay);this.disableSeek=xG(!1,Y==null?void 0:Y.disableSeek);this.enableSpeedOptions=(Y==null?void 0:Y.enableSpeedOptions)||(Mn().defaultPlaybackRate?Vh||g.Ui||NG?g.Bq&&q9("20")||g.qn&&q9("4")||g.aP&&q9("11")||oi():!(g.aP&&!g.gn("chrome")||Vh||g.gn("android")||g.gn("silk")):!1);this.n8=xG(!1,W.enable_faster_speeds);var h;this.supportsVarispeedExtendedFeatures= (h=Y==null?void 0:Y.supportsVarispeedExtendedFeatures)!=null?h:!1;this.K=xG(this.playerStyle==="blazer",W.is_html5_mobile_device||Y&&Y.isMobileDevice);this.GJ=LN()||lw();this.vF=this.U("mweb_allow_background_playback")?!1:this.K&&!this.X;this.OP=n5();this.l3=g.W6;var B;this.uv=!!(Y==null?0:(B=Y.embedsHostFlags)==null?0:B.optOutApiDeprecation);var O;Y?Y.hideInfo!==void 0&&(O=!Y.hideInfo):O=W.showinfo;this.Kr=g.Y3(this)&&!this.uv||xG(!$3(this)&&!k3(this)&&!this.X,O);this.Ao=Y?!!Y.mobileIphoneSupportsInlinePlayback: xG(!1,W.playsinline);h=this.K&&P6&&TB!=null&&TB>0&&TB<=2.3;B=Y?Y.useNativeControls:W.use_native_controls;this.G=g.Y3(this)&&this.K;O=this.K&&!this.G;B=g.j_(this)||!h&&xG(O,B)?"3":"1";this.disableOrganicUi=!(Y==null||!Y.disableOrganicUi);O=Y?Y.controlsType:W.controls;this.controlsType=this.disableOrganicUi||O==="0"||O===0?"0":B;this.v4=this.K;this.color=fN("red",Y?Y.progressBarColor:W.color,CES);this.b3=this.controlsType==="3";this.Gn=!this.T;this.vV=(B=!this.Gn&&!k3(this)&&!this.Kg&&!this.X&&!$3(this))&& !this.b3&&this.controlsType==="1";this.rZ=g.IT(this)&&B&&this.controlsType==="0"&&!this.vV&&!(Y==null?0:Y.embedsEnableEmc3ds);this.zR=this.Ey=h;this.xq=(this.controlsType==="3"||this.K||xG(!1,W.use_media_volume))&&!this.G;this.il=vy&&!g.yg(601)?!1:!0;this.KI=this.T||!1;this.D_=k3(this)?"":(this.loaderUrl||W.post_message_origin||"").substring(0,128);this.widgetReferrer=NK("",Y?Y.widgetReferrer:W.widget_referrer);var u;Y?Y.disableCastApi&&(u=!1):u=W.enablecastapi;u=!this.L||xG(!0,u);h=!0;Y&&Y.disableMdxCast&& (h=!1);this.NA=this.U("enable_cast_for_web_unplugged")&&g.XF(this)&&h||g.dq(this)&&h||u&&h&&this.controlsType==="1"&&!this.K&&(k3(this)||g.IT(this)||g.S_(this));this.Mo=!!window.document.pictureInPictureEnabled||HT();u=Y?!!Y.supportsAutoplayOverride:xG(!1,W.autoplayoverride);this.nu=!(this.K&&!g.Y3(this))&&!g.gn("nintendo wiiu")||u;this.i_=(Y?!!Y.enableMutedAutoplay:xG(!1,W.mutedautoplay))&&!1;u=(k3(this)||$3(this))&&this.playerStyle==="blazer";this.Er=Y?!!Y.disableFullscreen:!xG(!0,W.fs);h=g.$F(g.hK(this))&& g.Y3(this);this.Lg=!this.Er&&(u||g.S0())&&!h;this.GU=this.U("html5_picture_in_picture_logging_onresize");var Z;this.I5=(Z=g.W2(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?Z:.33;this.PH=this.U("html5_picture_in_picture_blocking_onresize");this.wX=this.U("html5_picture_in_picture_blocking_ontimeupdate");this.qV=this.U("html5_picture_in_picture_blocking_document_fullscreen");this.WV=this.U("html5_picture_in_picture_blocking_standard_api");Z=FU()&&q9(58)&&!lw();u=yW||typeof MediaSource=== "undefined";this.vu=this.U("uniplayer_block_pip")&&(Z||u)||this.PH||this.wX||this.WV;Z=g.Y3(this)&&!this.uv;var M;Y?Y.disableRelatedVideos!==void 0&&(M=!Y.disableRelatedVideos):M=W.rel;this.DY=Z||xG(!this.X,M);this.LI=xG(!1,Y?Y.enableContentOwnerRelatedVideos:W.co_rel);this.N=lw()&&TB>0&&TB<=4.4?"_top":"_blank";this.vk=g.S_(this);this.yL=xG(this.playerStyle==="blazer",Y?Y.enableCsiLogging:W.enablecsi);switch(this.playerStyle){case "blogger":M="bl";break;case "gmail":M="gm";break;case "gac":M="ga"; break;case "ads-preview":M="ap";break;case "books":M="gb";break;case "docs":case "flix":M="gd";break;case "duo":M="gu";break;case "google-live":M="gl";break;case "google-one":M="go";break;case "play":case "play-ads":M="gp";break;case "chat":M="hc";break;case "hangouts-meet":M="hm";break;case "photos-edu":case "picasaweb":M="pw";break;default:M="yt"}this.A5=M;this.wD=NK("",Y?Y.authorizedUserIndex:W.authuser);this.xm=g.Y3(this)&&(this.f1||!ZM0()||this.GJ);var t;Y?Y.disableWatchLater!==void 0&&(t=!Y.disableWatchLater): t=W.showwatchlater;this.rV=((M=!this.xm)||!!this.wD&&M)&&xG(!this.Kg,this.L?t:void 0);this.AC=Y?Y.isMobileDevice||!!Y.disableKeyboardControls:xG(!1,W.disablekb);this.loop=xG(!1,W.loop);this.pageId=NK("",Y?Y.initialDelegatedSessionId:W.pageid);this.cF=xG(!0,W.canplaylive);t=g.W2(this.experiments,"html5_default_audio_quality_setting_lr");var q;this.wO=(q=Lb2[Lb2[t]])!=null?q:0;this.e1=xG(!1,W.livemonitor);this.disableSharing=xG(this.X,Y?Y.disableSharing:W.ss);(q=Y&&this.U("fill_video_container_size_override_from_wpcc")? Y.videoContainerOverride:W.video_container_override)?(t=q.split("x"),t.length!==2?q=null:(q=Number(t[0]),t=Number(t[1]),q=isNaN(q)||isNaN(t)||q*t<=0?null:new g.UF(q,t))):q=null;this.PV=q;this.mute=Y?!!Y.startMuted:xG(!1,W.mute);this.storeUserVolume=!this.mute&&xG(this.controlsType!=="0",Y?Y.storeUserVolume:W.store_user_volume);q=Y?Y.annotationsLoadPolicy:W.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:fN(void 0,q,B6);this.captionsLanguagePreference=Y?Y.captionsLanguagePreference|| "":NK("",W.cc_lang_pref);q=fN(2,Y?Y.captionsLanguageLoadPolicy:W.cc_load_policy,B6);this.controlsType==="3"&&q===2&&(q=3);this.KL=q;this.LH=Y?Y.hl||"en_US":NK("en_US",W.hl);this.region=Y?Y.contentRegion||"US":NK("US",W.cr);this.hostLanguage=Y?Y.hostLanguage||"en":NK("en",W.host_language);this.UK=!this.f1&&Math.random()=480;this.schedule=new oP(Z,new UtS(this.experiments),T);g.v(this,this.schedule);var G;this.enableSafetyMode=(G=Y==null?void 0:Y.initialEnableSafetyMode)!=null?G:xG(!1,W.enable_safety_mode);T=this.Fr?!1:k3(this)&&this.playerStyle!== "blazer";var J;Y?Y.disableAutonav!=null&&(J=!Y.disableAutonav):J=W.allow_autonav;this.UV=xG(T,!this.Kg&&J);this.sendVisitorIdHeader=Y?!!Y.sendVisitorIdHeader:xG(!1,W.send_visitor_id_header);var d;this.playerStyle==="docs"&&(Y?d=Y.disableNativeContextMenu:d=W.disable_native_context_menu);this.disableNativeContextMenu=xG(!1,d);this.l4=uP(this)&&this.U("enable_skip_intro_button");this.embedConfig=NK("",Y?Y.serializedEmbedConfig:W.embed_config);this.gD=YF(W,g.Y3(this));this.J=this.gD==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(Y==null||!Y.embedsErrorLinks);this.zg=xG(!1,W.full_window);var A;this.rD=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var F;this.livingRoomAppMode=fN("LIVING_ROOM_APP_MODE_UNSPECIFIED",W.living_room_app_mode||(Y==null?void 0:(F=Y.device)==null?void 0:F.livingRoomAppMode),bV6);var y;J=Vp(NaN,Y==null?void 0:(y=Y.device)==null?void 0:y.deviceYear);isNaN(J)||(this.deviceYear=J);this.transparentBackground=Y?!!Y.transparentBackground:xG(!1,W.transparent_background);this.showMiniplayerButton= Y?!!Y.showMiniplayerButton:xG(!1,W.show_miniplayer_button);var L;g.Y3(this)&&!(Y==null?0:(L=Y.embedsHostFlags)==null?0:L.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=Y?!!Y.externalFullscreen:xG(!1,W.external_fullscreen);this.showMiniplayerUiWhenMinimized=Y?!!Y.showMiniplayerUiWhenMinimized:xG(!1,W.use_miniplayer_ui);var V;this.Ka=(V=W.show_loop_video_toggle)!=null?V:!0;this.df=Math.random()<1E-4;if(W.onesie_hot_config||(Y==null?0:Y.onesieHotConfig))this.tT=new sL1(W.onesie_hot_config, Y==null?void 0:Y.onesieHotConfig),g.v(this,this.tT);this.isTectonic=Y?!!Y.isTectonic:!!W.isTectonic;this.playerCanaryState=k;this.playerCanaryStage=Y==null?void 0:Y.canaryStage;this.CN=new Fb1;g.v(this,this.CN);this.datasyncId=(Y==null?void 0:Y.datasyncId)||g.eM("DATASYNC_ID");this.Aj=g.eM("LOGGED_IN",!1);this.Cn=(Y==null?void 0:Y.allowWoffleManagement)||!1;this.yD=Infinity;this.A7=NaN;this.livingRoomPoTokenId=Y==null?void 0:Y.livingRoomPoTokenId;this.U("html5_high_res_logging_always")?this.Zm=!0: this.Zm=Math.random()*100=0&&W0&&W.df&&(P.sort(),g.Kx(new g.Qq("Player client parameters changed after startup",P)));W.userAge=Vp(W.userAge,Y.user_age);W.k7=NK(W.k7,Y.user_display_email);W.userDisplayImage=NK(W.userDisplayImage,Y.user_display_image);g.o1(W.userDisplayImage)||(W.userDisplayImage= "");W.userDisplayName=NK(W.userDisplayName,Y.user_display_name);W.i5=NK(W.i5,Y.user_gender);W.csiPageType=NK(W.csiPageType,Y.csi_page_type);W.csiServiceName=NK(W.csiServiceName,Y.csi_service_name);W.yL=xG(W.yL,Y.enablecsi);W.pageId=NK(W.pageId,Y.pageid);if(k=Y.enabled_engage_types)W.enabledEngageTypes=new Set(k.split(","));Y.living_room_session_po_token&&(W.Dm=Y.living_room_session_po_token.toString())}; MD=function(W,Y){return!W.X&&FU()&&q9(55)&&W.controlsType==="3"&&!Y}; g.tK=function(W){W=O9(W.xf);return W==="www.youtube-nocookie.com"?"www.youtube.com":W}; qD=function(W,Y,k){return W.protocol+"://i1.ytimg.com/vi/"+Y+"/"+(k||"hqdefault.jpg")}; RT=function(W){return k3(W)&&!g.XF(W)}; g.j_=function(W){return W.U("html5_local_playsinline")?vy&&!g.yg(602)&&!("playsInline"in Mn()):vy&&!W.Ao||g.gn("nintendo wiiu")?!0:!1}; tn=function(W){return W.W.c}; g.Zw=function(W){return/^TVHTML5/.test(tn(W))}; g.H6=function(W){return tn(W)==="TVHTML5"}; QLq=function(W){return tn(W)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; lt1=function(W){return W.W.cmodel==="CHROMECAST ULTRA/STEAK"||W.W.cmodel==="CHROMECAST/STEAK"}; g.nh=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; uP=function(W){return/web/i.test(tn(W))}; g.ph=function(W){return tn(W).toUpperCase()==="WEB"}; Z_=function(W){return tn(W)==="WEB_KIDS"}; g.XF=function(W){return tn(W)==="WEB_UNPLUGGED"}; GB=function(W){return tn(W)==="TVHTML5_UNPLUGGED"}; g.OG=function(W){return g.XF(W)||tn(W)==="TV_UNPLUGGED_CAST"||GB(W)}; g.dq=function(W){return tn(W)==="WEB_REMIX"}; g.Kh=function(W){return tn(W)==="WEB_MUSIC_INTEGRATIONS"}; g.E9=function(W){return tn(W)==="WEB_EMBEDDED_PLAYER"}; g.s9=function(W){return(W.deviceIsAudioOnly||!g.qn||yW||W.controlsType==="3"?!1:g.Ui?W.T&&g.yg(51):!0)||(W.deviceIsAudioOnly||!g.Bq||yW||W.controlsType==="3"?!1:g.Ui?W.T&&g.yg(48):g.yg(38))||(W.deviceIsAudioOnly||!g.aP||yW||W.controlsType==="3"?!1:g.Ui?W.T&&g.yg(37):g.yg(27))||!W.deviceIsAudioOnly&&g.JK&&!RPq()&&g.yg(11)||!W.deviceIsAudioOnly&&g.hj&&g.yg("604.4")}; ftd=function(W){if(g.IT(W)&&P6)return!1;if(g.Bq){if(!g.yg(47)||!g.yg(52)&&g.yg(51))return!1}else if(g.hj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Na1=function(W,Y){return W.enabledEngageTypes.has(Y.toString())||Vt6.includes(Y)}; k3=function(W){return W.TJ==="detailpage"}; g.IT=function(W){return W.TJ==="embedded"}; rV=function(W){return W.TJ==="leanback"}; $3=function(W){return W.TJ==="adunit"||W.playerStyle==="gvn"}; g.S_=function(W){return W.TJ==="profilepage"}; g.Y3=function(W){return W.T&&g.IT(W)&&!$3(W)&&!W.X}; AK=function(W){if(!W.userDisplayImage)return"";var Y=W.userDisplayImage.split("/");if(Y.length===5)return W=Y[Y.length-1].split("="),W[1]="s20-c",Y[Y.length-1]=W.join("="),Y.join("/");if(Y.length===8)return Y.splice(7,0,"s20-c"),Y.join("/");if(Y.length===9)return Y[7]+="-s20-c",Y.join("/");g.Kx(new g.Qq("Profile image not a FIFE URL.",W.userDisplayImage));return W.userDisplayImage}; g.zB=function(W){var Y=g.tK(W);atC.includes(Y)&&(Y="www.youtube.com");return W.protocol+"://"+Y}; g.dV=function(W,Y){Y=Y===void 0?"":Y;if(W.CL){var k=new KY,P,T=W.CL();T.signedOut?P="":T.token?P=T.token:T.pendingResult.then(function(I){T.signedOut?k.resolve(""):k.resolve(I.token)},function(I){g.Kx(new g.Qq("b189348328_oauth_callback_failed",{error:I})); k.resolve(Y)}); return P!==void 0?KN(P):new pN(k)}return KN(Y)}; mi=function(W,Y){Y=Y===void 0?"":Y;return W.Aj?QQ(!0):C1(vW(QQ(g.dV(W,Y)),function(k){return QQ(!!k)}),function(){return QQ(!1)})}; WkC=function(W,Y){Y==null||vW(Y,function(k){W.PU=k;var P,T;(P=W.tT)!=null&&(T=P.W)!=null&&(T.W=new mM(k,T.K,T.J),g.v(T,T.W))})}; O9=function(W){var Y=g.Xl(W);return(W=Number(g.I8(W)[4]||null)||null)?Y+":"+W:Y}; D_=function(W,Y){Y=Y===void 0?!1:Y;var k=ev[W],P=YNd[k],T=$3F[W];if(!T||!P)return null;Y=new ww(Y?T.height:T.width,Y?T.width:T.height,T.fps);P=y_(P,Y,k);return new o9(W,P,{video:Y,c6:T.bitrate/8})}; PeS=function(W){var Y=YNd[ev[W]],k=kG7[W];return k&&Y?new o9(W,Y,{audio:new G2(k.audioSampleRate,k.numChannels)}):null}; gV=function(W){this.W=W}; FF=function(W,Y,k,P){if(k)return G5();k={};var T=Mn();Y=g.p(Y);for(var I=Y.next();!I.done;I=Y.next())if(I=I.value,W.canPlayType(T,I.getInfo().mimeType)||P){var X=I.W.video.quality;if(!k[X]||k[X].getInfo().pN())k[X]=I}W=[];k.auto&&W.push(k.auto);P=g.p(QR);for(T=P.next();!T.done;T=P.next())(T=k[T.value])&&W.push(T);return W.length?KN(W):G5()}; T87=function(W){this.itag=W.itag;this.url=W.url;this.codecs=W.codecs;this.width=W.width;this.height=W.height;this.fps=W.fps;this.bitrate=W.bitrate;var Y;this.K=((Y=W.audioItag)==null?void 0:Y.split(","))||[];this.zF=W.zF;this.tY=W.tY||"";this.Ib=W.Ib;this.audioChannels=W.audioChannels;this.W=""}; jI0=function(W,Y,k,P){Y=Y===void 0?!1:Y;k=k===void 0?!0:k;P=P===void 0?{}:P;var T={};W=g.p(W);for(var I=W.next();!I.done;I=W.next()){I=I.value;if(Y&&MediaSource&&MediaSource.isTypeSupported){var X=I.type;I.audio_channels&&(X=X+"; channels="+I.audio_channels);if(!MediaSource.isTypeSupported(X)){P[I.itag]="tpus";continue}}if(k||!I.drm_families||I.eotf!=="smpte2084"&&I.eotf!=="arib-std-b67"){X=void 0;var h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},B=I.type.match(/codecs="([^"]*)"/); B=B?B[1]:"";I.audio_track_id&&(X=new g.mz(I.name,I.audio_track_id,!!I.is_default));var O=I.eotf;I=new T87({itag:I.itag,url:I.url,codecs:B,width:Number(I.width),height:Number(I.height),fps:Number(I.fps),bitrate:Number(I.bitrate),audioItag:I.audio_itag,zF:O?h[O]:void 0,tY:I.drm_families,Ib:X,audioChannels:Number(I.audio_channels)});T[I.itag]=T[I.itag]||[];T[I.itag].push(I)}else P[I.itag]="enchdr"}return T}; ITC=function(W,Y,k,P,T){this.J=W;this.K=Y;this.C=k;this.cpn=P;this.X=T;this.T=0;this.W=""}; X$5=function(W,Y){W.J.some(function(k){var P;return((P=k.Ib)==null?void 0:P.getId())===Y}); W.W=Y}; wV=function(W,Y,k){W.cpn&&(Y=g.MH(Y,{cpn:W.cpn}));k&&(Y=g.MH(Y,{paired:k}));return Y}; SNF=function(W,Y){W=W.itag.toString();Y!==null&&(W+=Y.itag.toString());return W}; hX2=function(W){for(var Y=[],k=[],P=g.p(W.K),T=P.next();!T.done;T=P.next())T=T.value,T.bitrate<=W.T?Y.push(T):k.push(T);Y.sort(function(I,X){return X.bitrate-I.bitrate}); k.sort(function(I,X){return I.bitrate-X.bitrate}); W.K=Y.concat(k)}; Qz=function(W,Y,k){this.W=W;this.K=Y;this.expiration=k;this.ob=null}; B86=function(W,Y){if(!(yW||eU()||Qp()))return null;W=jI0(Y,W.U("html5_filter_fmp4_in_hls"));if(!W)return null;Y=[];for(var k={},P=g.p(Object.keys(W)),T=P.next();!T.done;T=P.next()){T=g.p(W[T.value]);for(var I=T.next();!I.done;I=T.next()){var X=I.value;X.Ib&&(I=X.Ib.getId(),k[I]||(X=new g.Km(I,X.Ib),k[I]=X,Y.push(X)))}}return Y.length>0?Y:null}; Mpd=function(W,Y,k,P,T,I,X){if(!(yW||eU()||Qp()))return G5();var h={},B=OP5(k),O=jI0(k,W.U("html5_filter_fmp4_in_hls"),W.C.G,h);if(!O)return X({noplst:1}),G5();u2d(O);k={};var u=(k.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",k),Z;k=[];var M=[],t=[],q=null,G="";P=P&&P.match(/hls_timedtext_playlist/)?new T87({itag:"0",url:P,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ib:new g.mz("English","en",!1)}):null;for(var J=g.p(Object.keys(O)),d=J.next();!d.done;d=J.next())if(d=d.value,!W.U("html5_disable_drm_hfr_1080")|| d!=="383"&&d!=="373"){d=g.p(O[d]);for(var A=d.next();!A.done;A=d.next())if(A=A.value,A.width){for(var F=g.p(A.K),y=F.next();!y.done;y=F.next())if(y=y.value,O[y]){A.W=y;break}A.W||(A.W=ZP0(O,A));if(F=O[A.W])if(k.push(A),A.tY==="fairplay"&&(Z=u),y="",A.zF==="PQ"?y="smpte2084":A.zF==="HLG"&&(y="arib-std-b67"),y&&(G=y),t.push(iPV(F,[A],P,I,A.itag,A.width,A.height,A.fps,B,void 0,void 0,Z,y)),!q||A.width*A.height*A.fps>q.width*q.height*q.fps)q=A}else M.push(A)}else h[d]="disdrmhfr";t.reduce(function(L, V){return V.getInfo().isEncrypted()&&L},!0)&&(Z=u); T=Math.max(T,0);u=q||{};O=u.fps===void 0?0:u.fps;q=u.width===void 0?0:u.width;u=u.height===void 0?0:u.height;J=W.U("html5_native_audio_track_switching");t.push(iPV(M,k,P,I,"93",q,u,O,B,"auto",T,Z,G,J));Object.entries(h).length&&X(h);return FF(W.C,t,MD(W,Y),!1)}; iPV=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t){for(var q=0,G="",J=g.p(W),d=J.next();!d.done;d=J.next())d=d.value,G||(G=d.itag),d.audioChannels&&d.audioChannels>q&&(q=d.audioChannels,G=d.itag);T=new o9(T,"application/x-mpegURL",{audio:new G2(0,q),video:new ww(I,X,h,null,void 0,O,void 0,void 0,M),tY:Z,K_:G});W=new ITC(W,Y,k?[k]:[],P,!!t);W.T=u?u:1369843;return new Qz(T,W,B)}; OP5=function(W){W=g.p(W);for(var Y=W.next();!Y.done;Y=W.next())if(Y=Y.value,Y.url&&(Y=Y.url.split("expire/"),!(Y.length<=1)))return+Y[1].split("/")[0];return NaN}; ZP0=function(W,Y){for(var k=g.p(Object.keys(W)),P=k.next();!P.done;P=k.next()){P=P.value;var T=W[P][0];if(!T.width&&T.tY===Y.tY&&!T.audioChannels)return P}return""}; u2d=function(W){for(var Y=new Set,k=g.p(Object.values(W)),P=k.next();!P.done;P=k.next())P=P.value,P.length&&(P=P[0],P.height&&P.codecs.startsWith("vp09")&&Y.add(P.height));k=[];if(Y.size){P=g.p(Object.keys(W));for(var T=P.next();!T.done;T=P.next())if(T=T.value,W[T].length){var I=W[T][0];I.height&&Y.has(I.height)&&!I.codecs.startsWith("vp09")&&k.push(T)}}Y=g.p(k);for(k=Y.next();!k.done;k=Y.next())delete W[k.value]}; yz=function(W,Y){this.W=W;this.K=Y}; tp1=function(W,Y,k,P){var T=[];k=g.p(k);for(var I=k.next();!I.done;I=k.next()){var X=I.value;if(X.url){I=new g.lW(X.url,!0);if(X.s){var h=I,B=X.sp,O=lwd(decodeURIComponent(X.s));h[S[12]](B,encodeURIComponent(O))}h=g.p(Object.keys(P));for(B=h.next();!B.done;B=h.next())B=B.value,I.set(B,P[B]);X=YB(X.type,X.quality,X.itag,X.width,X.height);T.push(new yz(X,I))}}return FF(W.C,T,MD(W,Y),!1)}; e_=function(W,Y){this.W=W;this.K=Y}; qNd=function(W,Y,k){var P=[];k=g.p(k);for(var T=k.next();!T.done;T=k.next())if((T=T.value)&&T.url){var I=YB(T.type,"medium","0");P.push(new e_(I,T.url))}return FF(W.C,P,MD(W,Y),!1)}; RXv=function(W,Y){var k=[],P=YB(Y.type,"auto",Y.itag);k.push(new e_(P,Y.url));return FF(W.C,k,!1,!0)}; nXd=function(W){return W&&HP1[W]?HP1[W]:null}; p$z=function(W){switch(W){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return W;default:return"sabr.config"}}; GGF=function(W){if(W=W.commonConfig)this.url=W.url,this.urlQueryOverride=W.urlQueryOverride,W.ustreamerConfig&&(this.C8=Dz(W.ustreamerConfig)||void 0)}; Kkq=function(W,Y){var k;if(Y=Y==null?void 0:(k=Y.watchEndpointSupportedOnesieConfig)==null?void 0:k.html5PlaybackOnesieConfig)W.ZN=new GGF(Y)}; g.oT=function(W){W=W===void 0?{}:W;this.languageCode=W.languageCode||"";this.languageName=W.languageName||null;this.kind=W.kind||"";this.name=W.name===void 0?null:W.name;this.displayName=W.displayName||null;this.id=W.id||null;this.W=W.is_servable||!1;this.isTranslateable=W.is_translateable||!1;this.url=W.url||null;this.vssId=W.vss_id||"";this.isDefault=W.is_default||!1;this.translationLanguage=W.translationLanguage||null;this.xtags=W.xtags||"";this.captionId=W.captionId||""}; g.Ch=function(W){var Y={languageCode:W.languageCode,languageName:W.languageName,displayName:g.v6(W),kind:W.kind,name:W.name,id:W.id,is_servable:W.W,is_default:W.isDefault,is_translateable:W.isTranslateable,vss_id:W.vssId};W.xtags&&(Y.xtags=W.xtags);W.captionId&&(Y.captionId=W.captionId);W.translationLanguage&&(Y.translationLanguage=W.translationLanguage);return Y}; g.Lh=function(W){return W.translationLanguage?W.translationLanguage.languageCode:W.languageCode}; g.EX7=function(W){var Y=W.vssId;W.translationLanguage&&Y&&(Y="t"+Y+"."+g.Lh(W));return Y}; g.v6=function(W){var Y=[];if(W.displayName)Y.push(W.displayName);else{var k=W.languageName||"";Y.push(k);W.kind==="asr"&&k.indexOf("(")===-1&&Y.push(" (Subt\u00edtulos autom\u00e1ticos)");W.name&&Y.push(" - "+W.name)}W.translationLanguage&&Y.push(" >> "+W.translationLanguage.languageName);return Y.join("")}; A$6=function(W,Y,k,P){W||(W=Y&&J$z.hasOwnProperty(Y)&&sIS.hasOwnProperty(Y)?sIS[Y]+"_"+J$z[Y]:void 0);Y=W;if(!Y)return null;W=Y.match(r$F);if(!W||W.length!==5)return null;if(W=Y.match(r$F)){var T=Number(W[3]),I=[7,8,10,5,6];W=!(Number(W[1])===1&&T===8)&&I.indexOf(T)>=0}else W=!1;return k||P||W?Y:null}; U9=function(W,Y){for(var k={},P=g.p(Object.keys(zX7)),T=P.next();!T.done;T=P.next()){T=T.value;var I=Y?Y+T:T;I=W[I+"_webp"]||W[I];g.o1(I)&&(k[zX7[T]]=I)}return k}; l6=function(W){var Y={};if(!W||!W.thumbnails)return Y;W=W.thumbnails.filter(function(h){return!!h.url}); W.sort(function(h,B){return h.width-B.width||h.height-B.height}); for(var k=g.p(Object.keys(d30)),P=k.next();!P.done;P=k.next()){var T=Number(P.value);P=d30[T];for(var I=g.p(W),X=I.next();!X.done;X=I.next())if(X=X.value,X.width>=T){T=m32(X.url);g.o1(T)&&(Y[P]=T);break}}(W=W.pop())&&W.width>=1280&&(W=m32(W.url),g.o1(W)&&(Y["maxresdefault.jpg"]=W));return Y}; m32=function(W){return W.startsWith("//")?"https:"+W:W}; b6=function(W){return W&&W.baseUrl||""}; c6=function(W){W=g.fI(W);for(var Y=g.p(Object.keys(W)),k=Y.next();!k.done;k=Y.next()){k=k.value;var P=W[k];W[k]=Array.isArray(P)?P[0]:P}return W}; D3X=function(W,Y){W.botguardData=Y.playerAttestationRenderer.botguardData;Y=Y.playerAttestationRenderer.challenge;Y!=null&&(W.Ps=Y)}; w$1=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next()){k=k.value;var P=k.interstitials.map(function(X){var h=g.U(X,gXz);if(h)return{is_yto_interstitial:!0,raw_player_response:h};if(X=g.U(X,Fk0))return Object.assign({is_yto_interstitial:!0},cD(X))}); P=g.p(P);for(var T=P.next();!T.done;T=P.next())switch(T=T.value,k.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":W.interstitials=W.interstitials.concat({time:0,playerVars:T,WH:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":W.interstitials=W.interstitials.concat({time:0x7ffffffffffff,playerVars:T,WH:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var I=Number(k.podConfig.timeToInsertAtMillis);W.interstitials=W.interstitials.concat({time:I,playerVars:T, WH:I===0?5:7})}}}; QIV=function(W,Y){if(Y=Y.find(function(k){return!(!k||!k.tooltipRenderer)}))W.tooltipRenderer=Y.tooltipRenderer}; y$0=function(W,Y){Y.subscribeCommand&&(W.subscribeCommand=Y.subscribeCommand);Y.unsubscribeCommand&&(W.unsubscribeCommand=Y.unsubscribeCommand);Y.addToWatchLaterCommand&&(W.addToWatchLaterCommand=Y.addToWatchLaterCommand);Y.removeFromWatchLaterCommand&&(W.removeFromWatchLaterCommand=Y.removeFromWatchLaterCommand);Y.getSharePanelCommand&&(W.getSharePanelCommand=Y.getSharePanelCommand)}; eXd=function(W,Y){Y!=null?(W.Zu=Y,W.zr=!0):(W.Zu="",W.zr=!1)}; x3=function(W,Y){this.type=W||"";this.id=Y||""}; fh=function(W){return new x3(W.substring(0,2),W.substring(2))}; Vz=function(W,Y){this.pg=W;this.author="";this.wH=null;this.playlistLength=0;this.W=this.sessionData=null;this.L={};this.title="";if(Y){this.author=Y.author||Y.playlist_author||"";this.title=Y.playlist_title||"";if(W=Y.session_data)this.sessionData=lG(W,"&");var k;this.W=((k=Y.thumbnail_ids)==null?void 0:k.split(",")[0])||null;this.L=U9(Y,"playlist_");this.videoId=Y.video_id||void 0;if(k=Y.list)switch(Y.listType){case "user_uploads":this.playlistId=(new x3("UU","PLAYER_"+k)).toString();break;default:if(W= Y.playlist_length)this.playlistLength=Number(W)||0;this.playlistId=fh(k).toString();if(Y=Y.video)this.videoId=(Y[0]||null).video_id||void 0}else Y.playlist&&(this.playlistLength=Y.playlist.toString().split(",").length)}}; ND=function(W,Y){this.pg=W;this.rk=this.author="";this.wH=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.y3=this.lengthText="";this.sessionData=null;this.L={};this.title="";if(Y){this.ariaLabel=Y.aria_label||void 0;this.author=Y.author||"";this.rk=Y.rk||"";if(W=Y.endscreen_autoplay_session_data)this.wH=lG(W,"&");this.qE=Y.qE;this.isLivePlayback=Y.live_playback==="1";this.isUpcoming=!!Y.isUpcoming;if(W=Y.length_seconds)this.lengthSeconds=typeof W==="string"?Number(W):W;this.lengthText= Y.lengthText||"";this.y3=Y.y3||"";this.publishedTimeText=Y.publishedTimeText||void 0;if(W=Y.session_data)this.sessionData=lG(W,"&");this.shortViewCount=Y.short_view_count_text||void 0;this.L=U9(Y);this.title=Y.title||"";this.videoId=Y.docid||Y.video_id||Y.videoId||Y.id||void 0;this.watchUrl=Y.watchUrl||void 0}}; oX7=function(W){var Y,k,P=(Y=W.getWatchNextResponse())==null?void 0:(k=Y.contents)==null?void 0:k.twoColumnWatchNextResults,T,I,X,h,B;W=(T=W.getWatchNextResponse())==null?void 0:(I=T.playerOverlays)==null?void 0:(X=I.playerOverlayRenderer)==null?void 0:(h=X.endScreen)==null?void 0:(B=h.watchNextEndScreenRenderer)==null?void 0:B.results;if(!W){var O,u;W=P==null?void 0:(O=P.endScreen)==null?void 0:(u=O.endScreen)==null?void 0:u.results}return W}; g.Wn=function(W){var Y,k,P;W=g.U((Y=W.getWatchNextResponse())==null?void 0:(k=Y.playerOverlays)==null?void 0:(P=k.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,aT);return g.U(W==null?void 0:W.playerBar,vX0)}; Cez=function(W){this.W=W.playback_progress_0s_url;this.J=W.playback_progress_2s_url;this.K=W.playback_progress_10s_url}; Lkd=function(){if(Y0===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(Y){}a:{try{var W=!!self.localStorage}catch(Y){W=!1}if(W&&(W=g.A4(g.yq()+"::yt-player"))){Y0=new gq(W);break a}Y0=void 0}}return Y0}; g.$0=function(){var W=Lkd();if(!W)return{};try{var Y=W.get("yt-player-lv");return JSON.parse(Y||"{}")}catch(k){return{}}}; g.U3C=function(W){var Y=Lkd();Y&&(W=JSON.stringify(W),Y.set("yt-player-lv",W))}; g.k0=function(W){return g.$0()[W]||0}; g.Pn=function(W,Y){var k=g.$0();Y!==k[W]&&(Y!==0?k[W]=Y:delete k[W],g.U3C(k))}; g.TW=function(W){return g.D(function(Y){return Y.return(g.FH(lT0(),W))})}; I4=function(W,Y,k,P,T,I,X,h){var B,O,u,Z,M,t;return g.D(function(q){switch(q.W){case 1:return B=g.k0(W),B===4?q.return(4):g.m(q,g.LJ(),2);case 2:O=q.K;if(!O)throw g.OP("wiac");if(!h||X===void 0){q.oi(3);break}return g.m(q,bPV(h,X),4);case 4:X=q.K;case 3:return u=k.lastModified||"0",g.m(q,g.TW(O),5);case 5:return Z=q.K,g.KC(q,6),jE++,g.m(q,g.GX(Z,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",sR:!0},function(G){if(I!==void 0&&X!==void 0){var J=""+W+"|"+Y.id+"|"+u+"|"+String(I).padStart(10, "0");J=g.KJ(G.objectStore("media"),X,J)}else J=g.ZS.resolve(void 0);var d=c$C(W,Y.qa()),A=c$C(W,!Y.qa()),F={fmts:x31(P),format:k||{}};d=g.KJ(G.objectStore("index"),F,d);var y=P.downloadedEndTime===-1;F=y?G.objectStore("index").get(A):g.ZS.resolve(void 0);var L={fmts:"music",format:{}};G=y&&T&&!Y.qa()?g.KJ(G.objectStore("index"),L,A):g.ZS.resolve(void 0);return g.ZS.all([G,F,J,d]).then(function(V){V=g.p(V);V.next();V=V.next().value;jE--;var c=g.k0(W);if(c!==4&&y&&T||V!==void 0&&g.fTC(V.fmts))c=1,g.Pn(W, c);return c})}),8); case 8:return q.return(q.K);case 6:M=g.Aq(q);jE--;t=g.k0(W);if(t===4)return q.return(t);g.Pn(W,4);throw M;}})}; g.Vpd=function(W){var Y,k;return g.D(function(P){if(P.W==1)return g.m(P,g.LJ(),2);if(P.W!=3){Y=P.K;if(!Y)throw g.OP("ri");return g.m(P,g.TW(Y),3)}k=P.K;return P.return(g.GX(k,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(T){var I=IDBKeyRange.bound(W+"|",W+"~");return T.objectStore("index").getAll(I).then(function(X){return X.map(function(h){return h?h.format:{}})})}))})}; aT5=function(W,Y,k,P,T){var I,X,h;return g.D(function(B){if(B.W==1)return g.m(B,g.LJ(),2);if(B.W!=3){I=B.K;if(!I)throw g.OP("rc");return g.m(B,g.TW(I),3)}X=B.K;h=g.GX(X,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(O){var u=""+W+"|"+Y+"|"+k+"|"+String(P).padStart(10,"0");return O.objectStore("media").get(u)}); return T?B.return(h.then(function(O){if(O===void 0)throw Error("No data from indexDb");return N8d(T,O)}).catch(function(O){throw new g.Qq("Error while reading chunk: "+O.name+", "+O.message); })):B.return(h)})}; g.fTC=function(W){return W?W==="music"?!0:W.includes("dlt=-1")||!W.includes("dlt="):!1}; c$C=function(W,Y){return""+W+"|"+(Y?"v":"a")}; x31=function(W){var Y={};return bG((Y.dlt=W.downloadedEndTime.toString(),Y.mket=W.maxKnownEndTime.toString(),Y.avbr=W.averageByteRate.toString(),Y))}; YVV=function(W){var Y={},k={};W=g.p(W);for(var P=W.next();!P.done;P=W.next()){var T=P.value,I=T.split("|");T.match(g.WwX)?(P=Number(I.pop()),isNaN(P)?k[T]="?":(I=I.join("|"),(T=Y[I])?(I=T[T.length-1],P===I.end+1?I.end=P:T.push({start:P,end:P})):Y[I]=[{start:P,end:P}])):k[T]="?"}W=g.p(Object.keys(Y));for(P=W.next();!P.done;P=W.next())P=P.value,k[P]=Y[P].map(function(X){return X.start+"-"+X.end}).join(","); return k}; Xk=function(W){g.NR.call(this);this.W=null;this.J=new mH;this.W=null;this.X=new Set;this.crossOrigin=W||""}; $jd=function(W,Y,k){for(k=SE(W,k);k>=0;){var P=W.levels[k];if(P.isLoaded(h6(P,Y))&&(P=g.Bn(P,Y)))return P;k--}return g.Bn(W.levels[0],Y)}; P2C=function(W,Y,k){k=SE(W,k);for(var P,T;k>=0;k--)if(P=W.levels[k],T=h6(P,Y),!P.isLoaded(T)){P=W;var I=k,X=I+"-"+T;P.X.has(X)||(P.X.add(X),P.J.enqueue(I,{ZR:I,SV:T}))}kvS(W)}; kvS=function(W){if(!W.W&&!W.J.isEmpty()){var Y=W.J.remove();W.W=T0z(W,Y)}}; T0z=function(W,Y){var k=document.createElement("img");W.crossOrigin&&(k.crossOrigin=W.crossOrigin);k.src=W.levels[Y.ZR].OV(Y.SV);k.onload=function(){var P=Y.ZR,T=Y.SV;W.W!==null&&(W.W.onload=null,W.W=null);P=W.levels[P];P.loaded.add(T);kvS(W);var I=P.columns*P.rows;T*=I;P=Math.min(T+I-1,P.tI()-1);T=[T,P];W.publish("l",T[0],T[1])}; return k}; g.O4=function(W,Y,k,P){this.level=W;this.T=Y;this.loaded=new Set;this.level=W;this.T=Y;W=k.split("#");this.width=Math.floor(Number(W[0]));this.height=Math.floor(Number(W[1]));this.frameCount=Math.floor(Number(W[2]));this.columns=Math.floor(Number(W[3]));this.rows=Math.floor(Number(W[4]));this.W=Math.floor(Number(W[5]));this.J=W[6];this.signature=W[7];this.videoLength=P}; h6=function(W,Y){return Math.floor(Y/(W.columns*W.rows))}; g.Bn=function(W,Y){Y>=W.y8()&&W.cP();var k=h6(W,Y),P=W.columns*W.rows,T=Y%P;Y=T%W.columns;T=Math.floor(T/W.columns);var I=W.cP()+1-P*k;if(I1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; jnv=function(W,Y,k){return(W=W.levels[Y])?W.qM(k):-1}; SE=function(W,Y){var k=W.T.get(Y);if(k)return k;k=W.levels.length;for(var P=0;P=Y)return W.T.set(Y,P),P;W.T.set(Y,k-1);return k-1}; ZG=function(W,Y,k,P){k=k.split("#");k=[k[1],k[2],0,k[3],k[4],-1,k[0],""].join("#");g.O4.call(this,W,Y,k,0);this.K=null;this.C=P?2:0}; i0=function(W,Y,k,P){u0.call(this,W,0,void 0,Y,!(P===void 0||!P));for(W=0;W=0?O2.countDownSecsForFullscreen*1E3:-1);W.U("web_autonav_color_transition")&&O2.watchToWatchTransitionRenderer&&(W.watchToWatchTransitionRenderer=g.U(O2.watchToWatchTransitionRenderer, nE2))}var Md=oX7(W);if(Md){var hx,P3,qF,Rg=Md==null?void 0:(hx=Md[0])==null?void 0:(P3=hx.endScreenVideoRenderer)==null?void 0:(qF=P3.navigationEndpoint)==null?void 0:qF.clickTrackingParams,gp=g.Kz(W);Rg&&gp&&(gp.sessionData={itct:Rg})}W.OP.currentVideoThumbnail&&(W.L=l6(W.OP.currentVideoThumbnail));var Qb,yb,ej,W9,Fp,R8=(Qb=W.OP)==null?void 0:(yb=Qb.contents)==null?void 0:(ej=yb.twoColumnWatchNextResults)==null?void 0:(W9=ej.results)==null?void 0:(Fp=W9.results)==null?void 0:Fp.contents;if(R8&&R8[1]){var wp, Yd,oF,Ga,tZ=(wp=R8[1].videoSecondaryInfoRenderer)==null?void 0:(Yd=wp.owner)==null?void 0:(oF=Yd.videoOwnerRenderer)==null?void 0:(Ga=oF.thumbnail)==null?void 0:Ga.thumbnails;tZ&&tZ.length&&(W.profilePicture=tZ[tZ.length-1].url)}var DE=WO(Y),$d,Hu=($d=W.getWatchNextResponse())==null?void 0:$d.onResponseReceivedEndpoints;if(Hu)for(var kd=g.p(Hu),Q$=kd.next();!Q$.done;Q$=kd.next()){var nL=Q$.value;g.U(nL,E4)&&(W.Ve=g.U(nL,E4));var Ww=g.U(nL,pbS),x1=void 0;if((x1=Ww)==null?0:x1.entityKeys)W.Hr=Ww.entityKeys|| [],Ww.visibleOnLoadKeys&&(W.visibleOnLoadKeys=Ww.visibleOnLoadKeys)}if(W.U("web_key_moments_markers")){var Ob=g.J6.getState().entities,TR=g.xS("visibility_override","markersVisibilityOverrideEntity");var gF=VJ(Ob,"markersVisibilityOverrideEntity",TR);W.Q5=(gF==null?void 0:gF.videoId)===(W.videoId||DE)&&(gF==null?0:gF.visibilityOverrideMarkersKey)?gF.visibilityOverrideMarkersKey:W.visibleOnLoadKeys;W.visibleOnLoadKeys=[].concat(g.ZX(W.Q5))}}}; pz=function(W){var Y;return((Y=W.autoplaySwitchButtonRenderer)==null?void 0:Y.enabled)!==void 0}; s4=function(W){return!!(W.J&&W.J.videoInfos&&W.J.videoInfos.length)}; g.DG=function(W){var Y=W.G;W.U("html5_gapless_unlimit_format_selection")&&rR(W)&&(Y=!1);var k=!!W.W&&W.W.t9,P=W.pg,T=W.G_(),I=A6(W),X=W.V5,h=Y,B=W.isOtf();Y=W.z7();var O=W.e1,u=W.getUserAudio51Preference(),Z=zW(W),M=dR(W),t=new wCq(P);if(P.OR()||P.U("html5_logging_format_selection"))t.K=!0;t.GJ=I;t.V5=X&&P.L;t.TJ=u;g.gn("windows nt 5.1")&&!g.Bq&&(t.W3=!0);if(I=T)I=g.s9(P)?ftd(P):!1;I&&(t.A5=!0);h&&(t.W3=!0,t.xq=!0);B&&!P.U("html5_otf_prefer_vp9")&&(t.W3=!0);P.playerStyle==="picasaweb"&&(B&&(t.W3= !1),t.Kg=!1);O&&(t.W3=!0);Lm(P.C,U7.CHANNELS)&&(P.U("html5_enable_ac3")&&(t.T=!0),P.U("html5_enable_eac3")&&(t.C=!0),P.U("html5_enable_ac3_gapless")&&(t.OP=!0));P.U("html5_block_8k_hfr")&&(t.Q5=!0);t.X=g.W2(P.experiments,"html5_max_selectable_quality_ordinal");t.G=g.W2(P.experiments,"html5_min_selectable_quality_ordinal");NG&&(t.KH=480);if(k||T)t.Kg=!1;t.bz=!1;t.disableAv1=Z;k=$O(P,t.W,void 0,t.disableAv1);k>0&&k<2160&&(iY()||P.U("html5_format_hybridization"))&&(t.W.supportsChangeType=+iY(),t.nh= k);k>=2160&&(t.gD=!0);WNz()&&!P.U("disable_av1_setting")&&(t.W.serveVp9OverAv1IfHigherRes=0,t.DY=!1);t.z7=Y;t.Fr=g.e5||bw()&&!Y?!1:!0;t.L=P.U("html5_format_hybridization");t.K1=P.U("html5_disable_encrypted_vp9_live_non_2k_4k");t.J9=M;mX(W)&&(t.tT=W.U("html5_prefer_language_over_codec"));Qp()&&W.playerResponse&&W.playerResponse.playerConfig&&W.playerResponse.playerConfig.webPlayerConfig&&W.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(t.T=!0,t.C=!0);W.G&&W.isAd()&&(W.Ey&& (t.N=W.Ey),W.I5&&(t.J=W.I5));t.UP=W.isLivePlayback&&W.t$()&&W.pg.U("html5_drm_live_audio_51");t.A9=W.WQ;t.xm=!mX(W);return W.AC=t}; zW=function(W){return W.pg.U("html5_disable_av1")?!0:!1}; Gvz=function(W){KS("drm_pb_s",void 0,W.A5);W.GJ||W.W&&yX(W.W);var Y={};W.W&&(Y=ZKd(W.TT,g.DG(W),W.pg.C,W.W,function(k){return W.publish("ctmp","fmtflt",k)},!0,new Set)); Y=new Zz(Y,W.pg,W.oX,W.useCobaltWidevine?Qp()?gR(W):!1:!1,function(k,P){W.y5(k,P)}); g.v(W,Y);W.y7=!1;W.loading=!0;oBv(Y,function(k){KS("drm_pb_f",void 0,W.A5);for(var P=g.p(k),T=P.next();!T.done;T=P.next())switch(T=T.value,T.flavor){case "fairplay":T.GJ=W.GJ;T.n4=W.n4;T.U2=W.U2;break;case "widevine":T.S6=W.S6}W.PV=k;if(W.PV.length>0&&(W.C=W.PV[0],W.pg.OR())){k={};P=g.p(Object.entries(W.C.W));for(T=P.next();!T.done;T=P.next()){var I=g.p(T.value);T=I.next().value;I=I.next().value;var X="unk";(T=T.match(/(.*)codecs="(.*)"/))&&(X=T[2]);k[X]=I}W.y5("drmProbe",k)}W.M4()})}; Kw2=function(W,Y){if(Y.length===0||Fk(W))return null;W.pg.C.J&&(aO=!0);var k=W.tY;var P=W.lengthSeconds,T=W.isLivePlayback,I=W.Fj,X=W.pg,h=nBd(Y);if(T||I){X=X.experiments;P=new Q_("",X,!0);P.K=!I;P.t9=!0;P.isManifestless=!0;P.isLive=!I;P.Fj=I;Y=g.p(Y);for(T=Y.next();!T.done;T=Y.next()){var B=T.value;T=oO(B,k);h=Ne(B);h=Cr(h.kY||B.url||"",h.O9,h.s);var O=h.get("id");O&&O.includes("%7E")&&(P.A5=!0);var u=void 0;O=(u=X)==null?void 0:u.Nq("html5_max_known_end_time_rebase");u=Number(B.targetDurationSec|| 5);B=Number(B.maxDvrDurationSec||14400);var Z=Number(h.get("mindsq")||h.get("min_sq")||"0"),M=Number(h.get("maxdsq")||h.get("max_sq")||"0")||Infinity;P.UU=P.UU||Z;P.UA=P.UA||M;var t=!WC(T.mimeType);h&&gz(P,new qN(h,T,{Lh:u,Cr:t,ol:B,UU:Z,UA:M,d2:300,Fj:I,lR:O}))}k=P}else if(h==="FORMAT_STREAM_TYPE_OTF"){P=P===void 0?0:P;I=new Q_("",X.experiments,!1);I.duration=P||0;X=g.p(Y);for(P=X.next();!P.done;P=X.next())P=P.value,Y=oO(P,k,I.duration),T=Ne(P),(T=Cr(T.kY||P.url||"",T.O9,T.s))&&(Y.streamType==="FORMAT_STREAM_TYPE_OTF"? gz(I,new RO(T,Y,"sq/0")):gz(I,new dz(T,Y,aQ(P.initRange),aQ(P.indexRange))));I.isOtf=!0;k=I}else{P=P===void 0?0:P;I=new Q_("",X.experiments,!1);I.duration=P||0;X=g.p(Y);for(P=X.next();!P.done;P=X.next())h=P.value,P=oO(h,k,I.duration),Y=aQ(h.initRange),T=aQ(h.indexRange),O=Ne(h),(h=Cr(O.kY||h.url||"",O.O9,O.s))&&gz(I,new dz(h,P,Y,T));k=I}I=W.isLivePlayback&&!W.Fj&&!W.wD&&!W.isPremiere;W.U("html5_live_head_playable")&&(!wR(W)&&I&&W.y5("missingLiveHeadPlayable",{}),W.pg.A5==="yt"&&(k.GJ=!0));return k}; Fk=function(W){return Qp()?!gR(W):eU()?!(!W.GJ||!W.U("html5_enable_safari_fairplay")&&GY()):!1}; gR=function(W){return W.U("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.nz=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next())if(k=k.value,k.cueRangeSetIdentifier){var P=void 0;W.P1.set(k.cueRangeSetIdentifier,(P=k.playerCueRanges)!=null?P:[])}}; QO=function(W){return!(!W.W||!W.W.isManifestless)}; yO=function(W){return W.f1?W.isLowLatencyLiveStream&&W.W!=null&&ba(W.W)>=5:W.isLowLatencyLiveStream&&W.W!=void 0&&ba(W.W)>=5}; EEd=function(W){return Qp()&&gR(W)?!1:Fk(W)&&(g.OG(W.pg)?!W.isLivePlayback:W.hlsvp)||!GY()||W.Md?!0:!1}; snd=function(W){W.loading=!0;W.k7=!1;if(JV2(W))g.Vpd(W.videoId).then(function(P){var T;if((T=W.playerResponse)!=null&&T.streamingData){T=[];P=g.p(P);for(var I=P.next();!I.done;I=P.next())I=Object.assign({},I.value),I.signatureCipher="",T.push(I);T.length<2&&W.y5("offmlf",{len:T.length});T=Kw2(W,T);A6(W)&&Dtd(T,!1);eE(W,T);W.y5("dlr",{})}else W.y5("offsdm",{cotn:W.Ft?W.Ft.cotn:"0",cpn:W.clientPlaybackNonce})}).then(function(){W.M4()}); else{eO(W.D_)||g.Kx(new g.Qq("DASH MPD Origin invalid: ",W.D_));var Y=W.D_,k=g.W2(W.pg.experiments,"dash_manifest_version")||4;Y=g.MH(Y,{mpd_version:k});W.isLowLatencyLiveStream&&W.latencyClass!=="NORMAL"||(Y=g.MH(Y,{pacing:0}));AfV(Y,W.pg.experiments,W.isLivePlayback).then(function(P){W.Xr()||(eE(W,P,!0),KS("mrc",void 0,W.A5),W.M4())},function(P){W.Xr()||(W.loading=!1,W.publish("dataloaderror",new g.uZ("manifest.net.retryexhausted",{backend:"manifest", rc:P.status},1)))}); KS("mrs",void 0,W.A5)}}; rV2=function(W){var Y;return!((Y=W.pg.getWebPlayerContextConfig())==null||!Y.enableProximaLowLatency)}; o4=function(W){if(!W.isProximaLatencyEligible)return 0;var Y=Me();return rV2(W)?2:Y===1?1:W.U("html5_enable_proxima")?2:0}; eE=function(W,Y,k){k=k===void 0?!1:k;W.eI=void 0;W.W=Y;g.v(W,Y);Y.UU=W.UU;Y.UA=W.UA;Y.gD=W.gD;Y.J9=W.J9;Y.Gn=W.Gn;W.RB&&(Y.N=new Cb(W.RB));(W.G_()||g.vn(W))&&W.N.push("webgl");W.W.isLive||(W.isLivePlayback=!1);var P=Y.sourceUrl.split("/");if(W.f1?P.indexOf("manifest_duration")!==-1:P.indexOf("manifest_duration")!=-1)W.Xv=Number(P[P.indexOf("manifest_duration")+1]);if(Y.K||Y.isManifestless)Y.subscribe("clienttemp",W.y5,W),k?Y.subscribe("refresh",W.IG,W):Y.subscribe("cuepointsadded",W.Vz,W);yX(Y)?W.y7= !0:MG=void 0;W.wD&&(Y.T=W.wD,Y.isLive=!0,W.isLivePlayback=!0);Y.isPremiere=W.isPremiere;Y.isLiveHeadPlayable=W.isLiveHeadPlayable}; AV1=function(W,Y){var k=Y||EEd(W)||W.isExternallyHostedPodcast;if(!W.W||k)return W.y5("skipDash",{dm:!!W.W,air:Y,dd:W.Md,mss:GY(),"3pp":W.isExternallyHostedPodcast}),G5();A6(W)&&Dtd(W.W,W.isLivePlayback);return KN().then(function(){return M4V(W.TT,g.DG(W),W.pg.C,W.W,W.C,function(P){return W.publish("ctmp","fmtflt",P)},W.cE,mX(W)&&W.U("html5_enable_server_format_filter")).then(function(P){W.BJ(P); W.TT.W=null;/^av/.test(W.clientPlaybackNonce)&&W.AC&&W.y5("av1",W.AC.W)})})}; djv=function(W,Y){if(Y&&W.hlsvp)return G5();if(W.hlsFormats){Y=Cz(W.hlsFormats);var k;if(((k=W.AC)==null?0:k.K)&&Y){k=[];for(var P=g.p(Y),T=P.next();!T.done;T=P.next())k.push(T.value.itag);W.y5("hlsfmt",{itags:k.join(".")})}W.A7=B86(W.pg,Y);W.A7&&zpq(W,W.A7);k=W.clientPlaybackNonce;var I,X,h,B;return Mpd(W.pg,W.isAd(),Y,(B=(I=W.playerResponse)==null?void 0:(X=I.captions)==null?void 0:(h=X.playerCaptionsRenderer)==null?void 0:h.baseUrl)!=null?B:null,W.KH,k,function(O){return W.publish("ctmp","hlsflt", O)}).then(function(O){for(var u=0,Z=[],M=g.p(O),t=M.next();!t.done;t=M.next()){t=t.value; var q=void 0;Z.push((q=t.getInfo())==null?void 0:q.itag);var G=q=void 0;((q=t.getInfo())==null?void 0:(G=q.audio)==null?void 0:G.numChannels)>u&&(u=t.getInfo().audio.numChannels)}u>2&&W.y5("hlschl",{mn:u});var J;((J=W.AC)==null?0:J.K)&&W.y5("hlsfmtaf",{itags:Z.join(".")});var d;if(W.U("html5_enable_vp9_fairplay")&&((d=W.C)==null?0:SN(d)))for(W.y5("drm",{sbdlfbk:1}),u=g.p(W.PV),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,XB(Z)){W.C=Z;break}Lz(W,O)})}return G5()}; mjC=function(W){if(W.isExternallyHostedPodcast&&W.fN){var Y=Cz(W.fN);if(!Y[0])return G5();W.dIz=Y[0];return RXv(W.pg,Y[0]).then(function(k){Lz(W,k)})}return W.Jj&&W.h1?qNd(W.pg,W.isAd(),W.Jj).then(function(k){Lz(W,k)}):G5()}; gE2=function(W){if(W.isExternallyHostedPodcast)return G5();var Y=Cz(W.fN,W.ix);if(W.hlsvp){var k=IhV(W.hlsvp,W.clientPlaybackNonce,W.KH);Y.push(k)}return tp1(W.pg,W.isAd(),Y,Dj5(W)).then(function(P){Lz(W,P)})}; Lz=function(W,Y){W.xq=Y;W.BJ(new Ds(g.tx(W.xq,function(k){return k.getInfo()})))}; Dj5=function(W){var Y={cpn:W.clientPlaybackNonce,c:W.pg.W.c,cver:W.pg.W.cver};W.q0&&(Y.ptk=W.q0,Y.oid=W.Mg,Y.ptchn=W.Lz,Y.pltype=W.zm,W.Yi&&(Y.m=W.Yi));return Y}; g.U4=function(W){return Fk(W)&&W.GJ?(W={},W.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",W):W.K&&W.K.tY||null}; Fwz=function(W){var Y=l0(W);return Y&&Y.text?g.jy(Y.text):W.paidContentOverlayText}; wbV=function(W){var Y=l0(W);return Y&&Y.durationMs?mu(Y.durationMs):W.paidContentOverlayDurationMs}; l0=function(W){var Y,k,P;return W.playerResponse&&W.playerResponse.paidContentOverlay&&W.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.U((Y=W.OP)==null?void 0:(k=Y.playerOverlays)==null?void 0:(P=k.playerOverlayRenderer)==null?void 0:P.playerDisclosure,Qn7)||null}; b0=function(W){var Y="";if(W.gm)return W.gm;W.isLivePlayback&&(Y=W.allowLiveDvr?"dvr":W.isPremiere?"lp":W.wD?"window":"live");W.Fj&&(Y="post");return Y}; g.cn=function(W,Y){return typeof W.keywords[Y]!=="string"?null:W.keywords[Y]}; yVC=function(W){return!!W.JR||!!W.K6||!!W.mH||!!W.Br||W.e$}; g.x0=function(W){return!!(W.D_||W.fN||W.Jj||W.hlsvp||W.HA())}; qs=function(W){if(W.U("html5_onesie")&&W.errorCode)return!1;var Y=g.n$(W.N,"ypc");W.ypcPreview&&(Y=!1);return W.Nt()&&!W.loading&&(g.x0(W)||g.n$(W.N,"heartbeat")||Y)}; Cz=function(W,Y){W=xK(W);var k={};if(Y){Y=g.p(Y.split(","));for(var P=Y.next();!P.done;P=Y.next())(P=P.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(k[P[1]]={width:P[2],height:P[3]})}Y=g.p(W);for(P=Y.next();!P.done;P=Y.next()){P=P.value;var T=k[P.itag];T&&(P.width=T.width,P.height=T.height)}return W}; iRd=function(W,Y){W.showShareButton=!!Y;var k,P,T=((k=g.U(Y,g.hV))==null?void 0:k.navigationEndpoint)||((P=g.U(Y,g.hV))==null?void 0:P.command);T&&(W.l4=!!g.U(T,epd))}; Xb7=function(W,Y){var k=Y.raw_embedded_player_response;if(!k){var P=Y.embedded_player_response;P&&(k=JSON.parse(P))}k&&(W.ZJ=k);if(W.ZJ){W.embeddedPlayerConfig=W.ZJ.embeddedPlayerConfig||null;if(k=W.ZJ.videoFlags)k.playableInEmbed&&(W.allowEmbed=!0),k.isPrivate&&(W.isPrivate=!0),k.userDisplayName&&(Y.user_display_name=k.userDisplayName),k.userDisplayImage&&(Y.user_display_image=k.userDisplayImage);if(k=W.ZJ.embedPreview){k=k.thumbnailPreviewRenderer;eXd(W,k.controlBgHtml);if(P=k.defaultThumbnail)W.L= l6(P);W.U("embeds_web_enable_search_button")&&k.searchButton&&(P=g.U(k.searchButton,g.hV))&&(W.Q7a=g.U(P.navigationEndpoint,g.fz));(P=g.U(k==null?void 0:k.videoDetails,oEq))&&Rpz(W,Y,P);P=g.U(k==null?void 0:k.videoDetails,vE7);W.rV=!!k.addToWatchLaterButton;iRd(W,k.shareButton);if(P==null?0:P.musicVideoType)W.musicVideoType=P.musicVideoType;var T,I,X,h,B;if(P=g.U((T=W.getEmbeddedPlayerResponse())==null?void 0:(I=T.embedPreview)==null?void 0:(X=I.thumbnailPreviewRenderer)==null?void 0:(h=X.playButton)== null?void 0:(B=h.buttonRenderer)==null?void 0:B.navigationEndpoint,g.GW))Kkq(W,P),W.videoId=P.videoId||W.videoId;k.videoDurationSeconds&&(W.lengthSeconds=mu(k.videoDurationSeconds));k.webPlayerActionsPorting&&y$0(W,k.webPlayerActionsPorting);if(T=g.U(k==null?void 0:k.playlist,C2X)){W.PH=!0;I=[];X=Number(T.currentIndex);if(T.contents)for(h=0,B=T.contents.length;h0:W.Dm?!1:W.pg.nu||W.pg.i_||!g.Y3(W.pg)?!0:!1:(W.Dm?0:W.nu)&&g.Y3(W.pg)?!0:!1;W.U("html5_log_detailpage_autoplay")&&jW(W)==="detailpage"&&W.y5("autoplay_info",{autoplay:W.zv,autonav:W.isAutonav,wasDompaused:W.Dm,result:Y});return Y}; g.hD=function(W){return W.oauthToken||W.pg.u5}; ah5=function(W){if(W.U("html5_stateful_audio_normalization")){var Y=1,k=g.W2(W.pg.experiments,"html5_default_ad_gain");k&&W.isAd()&&(Y=k);var P,T;k=(T=(P=W.T)==null?void 0:P.audio.T)!=null?T:W.Xz;if(k==null||isNaN(k))W=N0V(W);else{P=(0,g.q5)();W.Kr=2;T=P-W.pg.A7<=W.maxStatefulTimeThresholdSec*1E3;W.applyStatefulNormalization&&T?W.Kr=4:T||(W.pg.yD=Infinity,W.pg.A7=NaN);T=(W.Kr===4?g.ee(W.pg.yD,W.minimumLoudnessTargetLkfs,W.loudnessTargetLkfs):W.loudnessTargetLkfs)-k;if(W.Kr!==4){var I,X,h,B,O=((I= W.playerResponse)==null?void 0:(X=I.playerConfig)==null?void 0:(h=X.audioConfig)==null?void 0:(B=h.loudnessNormalizationConfig)==null?void 0:B.statelessLoudnessAdjustmentGain)||0;T+=O}T=Math.min(T,0);W.preserveStatefulLoudnessTarget&&(W.pg.yD=k+T,W.pg.A7=P);W=Math.min(1,Math.pow(10,T/20))||Y}}else W=N0V(W);return W}; N0V=function(W){var Y=1,k=g.W2(W.pg.experiments,"html5_default_ad_gain");k&&W.isAd()&&(Y=k);if(W.bQ){var P,T;k=((P=W.T)==null?void 0:P.audio.J)!=null?(T=W.T)==null?void 0:T.audio.J:W.Zm}else{var I;k=((I=W.T)==null?void 0:I.audio.J)||W.Zm}isNaN(k)||(W.Kr=1);return Math.min(1,Math.pow(10,-k/20))||Y}; A6=function(W){var Y=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],k=tn(W.pg)==="TVHTML5_SIMPLY"&&W.pg.W.ctheme==="MUSIC";!W.k8&&(g.dq(W.pg)||g.Kh(W.pg)||k)&&(Y.includes(W.musicVideoType)||W.isExternallyHostedPodcast)&&(W.k8=!0);if(Y=g.wn())Y=/Starboard\/([0-9]+)/.exec(g.wY()),Y=(Y?parseInt(Y[1],10):NaN)<10;k=W.pg;k=(tn(k)==="TVHTML5_CAST"||tn(k)==="TVHTML5"&&(k.W.cver.startsWith("6.20130725")||k.W.cver.startsWith("6.20130726")))&&W.pg.W.ctheme==="MUSIC";var P;if(P=!W.k8)k||(k= W.pg,k=tn(k)==="TVHTML5"&&k.W.cver.startsWith("7")),P=k;P&&!Y&&(Y=W.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",k=(W.U("cast_prefer_audio_only_for_atv_and_uploads")||W.U("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&W.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",Y||k||W.isExternallyHostedPodcast)&&(W.k8=!0);return W.pg.deviceIsAudioOnly||W.k8&&W.pg.L}; dR=function(W){var Y,k,P;return((Y=W.playerResponse)==null?void 0:(k=Y.playerConfig)==null?void 0:(P=k.compositeVideoConfig)==null?void 0:P.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; WGq=function(W){var Y,k,P,T=(Y=W.playerResponse)==null?void 0:(k=Y.playerConfig)==null?void 0:(P=k.compositeVideoConfig)==null?void 0:P.sourceConfigs,I,X,h;W=(I=W.playerResponse)==null?void 0:(X=I.playerConfig)==null?void 0:(h=X.compositeVideoConfig)==null?void 0:h.defaultActiveSourceVideoId;if(!T||!W)return"";T=g.p(T);for(I=T.next();!I.done;I=T.next())if(I=I.value,I.videoId===W&&I.audioTracks)for(I=g.p(I.audioTracks),X=I.next();!X.done;X=I.next())if(X=X.value,X.isDefaultForSource)return X.id||""; return""}; g.Yaz=function(W){return W.t9()&&mX(W)}; BV=function(W){var Y,k,P;return!!((Y=W.playerResponse)==null?0:(k=Y.playerConfig)==null?0:(P=k.mediaCommonConfig)==null?0:P.splitScreenEligible)}; uf=function(W){var Y;return!((Y=W.playerResponse)==null||!Y.compositePlayabilityStatus)}; $gd=function(W){return isNaN(W)?0:Math.max((Date.now()-W)/1E3-30,0)}; kp6=function(W){return W.vk&&!W.Ci}; ZA=function(W){return!(!W.S2||!W.pg.L)&&W.HA()}; Mq=function(W){return W.uu&&W.enableServerStitchedDai}; PS5=function(W){return W.NA&&!W.RB}; mX=function(W){var Y=W.U("html5_enable_sabr_on_drive")&&W.pg.A5==="gd";if(W.mL)return W.NA&&W.y5("fds",{fds:!0},!0),!1;if(W.pg.A5!=="yt"&&!Y)return W.NA&&W.y5("dsvn",{ns:W.pg.A5},!0),!1;if(W.cotn||!W.W||W.W.isOtf&&!W.U("html5_enable_sabr_otf_in_client")||W.J&&!W.J.W||W.TL&&!W.U("html5_enable_sabr_csdai"))return!1;if(W.U("html5_use_sabr_requests_for_debugging"))return!0;W.NA&&W.y5("esfw",{usbc:W.NA,hsu:!!W.RB},!0);if(W.NA&&W.RB)return!0;if(W.U("html5_remove_client_sabr_determination"))return!1;var k= !W.W.t9&&!W.t$();Y=k&&qG&&W.U("html5_enable_sabr_vod_streaming_xhr");k=k&&!qG&&W.U("html5_enable_sabr_vod_non_streaming_xhr");var P=tD(W),T=W.U("html5_enable_sabr_drm_vod_streaming_xhr")&&qG&&W.t$()&&!W.W.t9&&(W.drmProduct==="1"?!1:!0);(Y=Y||k||P||T)&&!W.RB&&W.y5("sabr",{loc:"m"},!0);return Y&&!!W.RB}; tD=function(W){var Y;if(!(Y=qG&&W.t9()&&W.t$()&&(W.drmProduct==="1"?!1:!0)&&W.U("html5_sabr_live_drm_streaming_xhr"))){Y=W.t9()&&!W.t$()&&qG;var k=W.t9()&&W.latencyClass!=="ULTRALOW"&&!W.isLowLatencyLiveStream&&W.U("html5_sabr_live_normal_latency_streaming_xhr"),P=W.isLowLatencyLiveStream&&W.U("html5_sabr_live_low_latency_streaming_xhr"),T=W.latencyClass==="ULTRALOW"&&W.U("html5_sabr_live_ultra_low_latency_streaming_xhr");Y=Y&&(k||P||T)}k=Y;Y=W.enableServerStitchedDai&&k&&W.U("html5_enable_sabr_ssdai_streaming_xhr"); k=!W.enableServerStitchedDai&&k;P=W.t9()&&!qG&&W.U("html5_enable_sabr_live_non_streaming_xhr");W=qG&&(W.Xj()||BV(W)&&W.U("html5_enable_sabr_for_lifa_eligible_streams"));return Y||k||P||W}; JV2=function(W){var Y;if(Y=!!W.cotn)Y=W.videoId,Y=!!Y&&g.k0(Y)===1;return Y&&!W.S2}; g.qq=function(W){if(!W.W||!W.K||!W.T)return!1;var Y=W.W.W,k=!!Y[W.K.id]&&xt(Y[W.K.id].ob.W);Y=!!Y[W.T.id]&&xt(Y[W.T.id].ob.W);return(W.K.itag==="0"||k)&&Y}; RR=function(W){return W.GT?["OK","LIVE_STREAM_OFFLINE"].includes(W.GT.status):!0}; Lwd=function(W){return(W=W.WV)&&W.showError?W.showError:!1}; HV=function(W,Y){return W.U(Y)?!0:(W.fflags||"").includes(Y+"=true")}; uxd=function(W,Y){Y.inlineMetricEnabled&&(W.inlineMetricEnabled=!0);Y.playback_progress_0s_url&&(W.Br=new Cez(Y));if(Y=Y.video_masthead_ad_quartile_urls)W.K6=Y.quartile_0_url,W.jK=Y.quartile_25_url,W.D7=Y.quartile_50_url,W.Qc=Y.quartile_75_url,W.xT=Y.quartile_100_url,W.mH=Y.quartile_0_urls,W.P_=Y.quartile_25_urls,W.KB=Y.quartile_50_urls,W.v1=Y.quartile_75_urls,W.v_=Y.quartile_100_urls}; ORz=function(W){var Y={};W=g.p(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var P=k.split("=");P.length===2?Y[P[0]]=P[1]:Y[k]=!0}return Y}; hpV=function(W){if(W){if(nx6(W))return W;W=pJ1(W);if(nx6(W,!0))return W}return""}; g.Tmv=function(W){return W.captionsLanguagePreference||W.pg.captionsLanguagePreference||g.cn(W,"yt:cc_default_lang")||W.pg.LH}; nl=function(W){return!(!W.isLivePlayback||!W.hasProgressBarBoundaries())}; g.Kz=function(W){var Y;return W.zR||((Y=W.suggestions)==null?void 0:Y[0])||null}; g.pl=function(W){var Y,k;return!!((Y=W.embeddedPlayerConfig)==null?0:(k=Y.embeddedPlayerFlags)==null?0:k.enableMusicUx)}; jN0=function(W){return W.G||W.U("web_player_media_session_infinity")&&W.isLivePlayback}; GM=function(W){return W.pg.T&&W.isPrivate}; IP5=function(W){var Y,k;return!!((Y=W.playerResponse)==null?0:(k=Y.playerConfig)==null?0:k.granularVariableSpeedConfig)}; g.Eb=function(W){var Y=W.V(),k=g.Kl(Y),P=Y.D_;(Y.U("embeds_web_enable_iframe_api_send_full_embed_url")||Y.U("embeds_web_enable_rcat_validation_in_havs")||Y.U("embeds_enable_autoplay_and_visibility_signals"))&&g.IT(Y)&&(P&&(k.thirdParty=Object.assign({},k.thirdParty,{embedUrl:P})),T50(k,W));if(P=W.UP)k.clickTracking={clickTrackingParams:P};else if(g.IT(W.V())&&g.eM("EVENT_ID"))k.clickTracking={clickTrackingParams:g.eM("EVENT_ID")};else if(Y.U("html5_log_missing_itct")){var T;P=new g.Qq("Missing ITCT in InnerTubeContext", {isAd:W.isAd(),kX6:(T=Y.getWebPlayerContextConfig())==null?void 0:T.contextId});g.GH(P)}T=k.client||{};P="EMBED";var I=jW(W);I==="leanback"?P="WATCH":Y.U("gvi_channel_client_screen")&&I==="profilepage"?P="CHANNEL":W.e1?P="LIVE_MONITOR":I==="detailpage"?P="WATCH_FULL_SCREEN":I==="adunit"?P="ADUNIT":I==="sponsorshipsoffer"&&(P="UNKNOWN");T.clientScreen=P;if(Y=W.kidsAppInfo)T.kidsAppInfo=JSON.parse(Y);(P=W.u0)&&!Y&&(T.kidsAppInfo={contentSettings:{ageUpMode:XW0[P]}});if(Y=W.E8)T.unpluggedAppInfo={enableFilterMode:!0}; (P=W.unpluggedFilterModeType)&&!Y&&(T.unpluggedAppInfo={filterModeType:SaS[P]});if(Y=W.LH)T.unpluggedLocationInfo=Y;k.client=T;T=k.request||{};W.Cn&&(T.isPrefetch=!0);if(Y=W.mdxEnvironment)T.mdxEnvironment=Y;if(Y=W.mdxControlMode)T.mdxControlMode=hNC[Y];k.request=T;T=k.user||{};if(Y=W.TJ)T.credentialTransferTokens=[{token:Y,scope:"VIDEO"}];if(Y=W.tT)T.delegatePurchases={oauthToken:Y},T.kidsParent={oauthToken:Y};k.user=T;if(T=W.contextParams)k.activePlayers=[{playerContextParams:T}];if(W=W.clientScreenNonce)k.clientScreenNonce= W;return k}; g.Kl=function(W){var Y=g.lo(),k=Y.client||{};if(W.forcedExperiments){var P=W.forcedExperiments.split(","),T=[];P=g.p(P);for(var I=P.next();!I.done;I=P.next())T.push(Number(I.value));k.experimentIds=T}if(T=W.homeGroupInfo)k.homeGroupInfo=JSON.parse(T);if(T=W.getPlayerType())k.playerType=T;if(T=W.W.ctheme)k.theme=T;if(T=W.livingRoomAppMode)k.tvAppInfo=Object.assign({},k.tvAppInfo,{livingRoomAppMode:T});T=W.deviceYear;W.U("html5_propagate_device_year")&&T&&(k.tvAppInfo=Object.assign({},k.tvAppInfo,{deviceYear:T})); if(T=W.livingRoomPoTokenId)k.tvAppInfo=Object.assign({},k.tvAppInfo,{livingRoomPoTokenId:T});Y.client=k;k=Y.user||{};W.enableSafetyMode&&(k=Object.assign({},k,{enableSafetyMode:!0}));W.pageId&&(k=Object.assign({},k,{onBehalfOfUser:W.pageId}));Y.user=k;k=W.D_;W.U("embeds_web_enable_iframe_api_send_full_embed_url")||W.U("embeds_web_enable_rcat_validation_in_havs")||W.U("embeds_enable_autoplay_and_visibility_signals")||!k||(Y.thirdParty={embedUrl:k});return Y}; MP2=function(W,Y,k){var P=W.videoId,T=g.Eb(W),I=W.V(),X={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ml()),referer:document.location.toString(),signatureTimestamp:20319},h=g.mr();W.isAutonav&&(X.autonav=!0);h.Ik(141)&&(X.autonavState=h.Ik(140)?"STATE_OFF":"STATE_ON");X.autoCaptionsDefaultOn=h.Ik(66);VmC(W)&&(X.autoplay=!0);I.L&&W.cycToken&&(X.cycToken=W.cycToken);I.enablePrivacyFilter&&(X.enablePrivacyFilter=!0);W.isFling&&(X.fling=!0);var B=W.forceAdsUrl;if(B){h={};var O=[];B=B.split(","); B=g.p(B);for(var u=B.next();!u.done;u=B.next()){u=u.value;var Z=u.split("|");Z.length!==3||u.includes("=")||(Z[0]="breaktype="+Z[0],Z[1]="offset="+Z[1],Z[2]="url="+Z[2]);u={adtype:"video_ad"};Z=g.p(Z);for(var M=Z.next();!M.done;M=Z.next()){var t=g.p(M.value.split("="));M=t.next().value;t=TvF(t);u[M]=t.join("=")}Z=u.url;M=u.presetad;t=u.viralresponseurl;var q=Number(u.campaignid);if(u.adtype==="in_display_ad")Z&&(h.url=Z),M&&(h.presetAd=M),t&&(h.viralAdResponseUrl=t),q&&(h.viralCampaignId=String(q)); else if(u.adtype==="video_ad"){var G={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(u.offset)||0)}};if(u=Bm0[u.breaktype])G.breakType=u;Z&&(G.url=Z);M&&(G.presetAd=M);t&&(G.viralAdResponseUrl=t);q&&(G.viralCampaignId=String(q));O.push(G)}}X.forceAdParameters={videoAds:O,inDisplayAd:h}}W.isInlinePlaybackNoAd&&(X.isInlinePlaybackNoAd=!0);W.isLivingRoomDeeplink&&(X.isLivingRoomDeeplink=!0);h=W.X5r;if(h!=null){h={startWalltime:String(h)};if(O=W.Xv)h.manifestDuration=String(O||14400);X.liveContext= h}if(W.mutedAutoplay){X.mutedAutoplay=!0;h=I.getWebPlayerContextConfig();var J,d;(h==null?0:(J=h.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode)&&(h==null?0:(d=h.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode.includes(O1q[W.mutedAutoplayDurationMode]))&&(X.mutedAutoplayDurationMode=O1q[W.mutedAutoplayDurationMode])}if(W.Dm?0:W.nu)X.splay=!0;J=W.vnd;J===5&&(X.vnd=J);J={};if(d=W.isMdxPlayback)J.triggeredByMdx=d;if(d=W.dS)J.skippableAdsSupported=d.split(",").includes("ska");if(O= W.eA){d=W.ir;h=[];O=g.p(jf2(O));for(B=O.next();!B.done;B=O.next()){B=B.value;u=B.platform;B={applicationState:B.zy?"INACTIVE":"ACTIVE",clientFormFactor:uod[u]||"UNKNOWN_FORM_FACTOR",clientName:Xrd[B.xA]||"UNKNOWN_INTERFACE",clientVersion:B.deviceVersion||"",platform:Z10[u]||"UNKNOWN_PLATFORM"};u={};if(d){Z=void 0;try{Z=JSON.parse(d)}catch(F){g.Kx(F)}Z&&(u={params:[{key:"ms",value:Z.ms}]},Z.advertising_id&&(u.advertisingId=Z.advertising_id),Z.limit_ad_tracking!==void 0&&Z.limit_ad_tracking!==null&& (u.limitAdTracking=Z.limit_ad_tracking),B.osName=Z.os_name,B.userAgent=Z.user_agent,B.windowHeightPoints=Z.window_height_points,B.windowWidthPoints=Z.window_width_points)}h.push({adSignalsInfo:u,remoteClient:B})}J.remoteContexts=h}d=W.sourceContainerPlaylistId;h=W.serializedMdxMetadata;if(d||h)O={},d&&(O.mdxPlaybackContainerInfo={sourceContainerPlaylistId:d}),h&&(O.serializedMdxMetadata=h),J.mdxPlaybackSourceContext=O;X.mdxContext=J;J=Y.width;J>0&&(X.playerWidthPixels=Math.round(J));if(Y=Y.height)X.playerHeightPixels= Math.round(Y);k!==0&&(X.vis=k);if(k=I.widgetReferrer)X.widgetReferrer=k.substring(0,128);g.Y3(I)&&X&&(X.ancestorOrigins=I.ancestorOrigins);W.defaultActiveSourceVideoId&&(X.compositeVideoContext={defaultActiveSourceVideoId:W.defaultActiveSourceVideoId});if(I=I.getWebPlayerContextConfig())X.encryptedHostFlags=I.encryptedHostFlags;P={videoId:P,context:T,playbackContext:{contentPlaybackContext:X}};if(W.YF){var A;P.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(A=W.YF)==null?void 0:A.reloadPlaybackParams}}W.contentCheckOk&& (P.contentCheckOk=!0);if(A=W.clientPlaybackNonce)P.cpn=A;if(A=W.playerParams)P.params=A;if(A=W.playlistId)P.playlistId=A;W.racyCheckOk&&(P.racyCheckOk=!0);A=W.V();T=A.embedConfig;W.C4&&A.U("embeds_enable_per_video_embed_config")?P.serializedThirdPartyEmbedConfig=W.C4:T&&(P.serializedThirdPartyEmbedConfig=T);P.captionParams={};T=g.mr().Ik(65);W.deviceCaptionsOn!=null?P.captionParams.deviceCaptionsOn=W.deviceCaptionsOn:g.ph(A)&&(P.captionParams.deviceCaptionsOn=T!=null?!T:!1);W.d3&&(P.captionParams.deviceCaptionsLangPref= W.d3);W.ew.length?P.captionParams.viewerSelectedCaptionLangs=W.ew:g.ph(A)&&(T=g.Rc(),T==null?0:T.length)&&(P.captionParams.viewerSelectedCaptionLangs=T);T=W.fetchType==="onesie"&&W.U("html5_onesie_attach_po_token");X=W.fetchType!=="onesie"&&W.U("html5_non_onesie_attach_po_token");if(T||X)T=W.V(),T.Dm&&(P.serviceIntegrityDimensions={},P.serviceIntegrityDimensions.poToken=T.Dm);A.U("fetch_att_independently")&&(P.attestationRequest={omitBotguardData:!0});P.playbackContext||(P.playbackContext={});P.playbackContext.devicePlaybackCapabilities= i1q(W);P.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&W.y5("noVp9",{});return P}; i1q=function(W){var Y=!(W==null?0:W.z7())&&(W==null?void 0:W.t9())&&bw(),k;if(!(k=W==null)){k=g.DG(W);W=W.V().C;var P=D_("243");k=!(P&&QX(k,P,W,!0)===!0)}return{supportsVp9Encoding:!(k||Y),supportXhr:qG}}; qaz=function(W,Y){var k,P,T;return g.D(function(I){if(I.W==1)return k={context:g.Kl(W.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:W.videoId,cpn:W.clientPlaybackNonce}}]},P=g.xm(tPz),g.m(I,g.mR(Y,k,P),2);T=I.K;return I.return(T)})}; RN1=function(W,Y,k){var P=g.W2(Y.experiments,"bg_vm_reinit_threshold");(!B0||(0,g.q5)()-B0>P)&&qaz(W,k).then(function(T){T&&(T=T.botguardData)&&g.uW(T,Y)},function(T){W.Xr()||(T=iZ(T),W.y5("attf",T.details))})}; JD=function(W,Y){g.e.call(this);this.app=W;this.state=Y}; rW=function(W,Y,k){W.state.W.hasOwnProperty(Y)||sb(W,Y,k);W.state.G[Y]=function(){return k.apply(W,g.y0.apply(0,arguments))}; W.state.X.add(Y)}; AD=function(W,Y,k){W.state.W.hasOwnProperty(Y)||sb(W,Y,k);W.app.V().L&&(W.state.L[Y]=function(){return k.apply(W,g.y0.apply(0,arguments))},W.state.X.add(Y))}; sb=function(W,Y,k){W.state.W[Y]=function(){return k.apply(W,g.y0.apply(0,arguments))}}; g.zM=function(W,Y,k){return W.state.W[Y].apply(W.state.W,g.ZX(k))}; dW=function(){g.RY.call(this);this.C=new Map}; mO=function(){g.e.apply(this,arguments);this.element=null;this.X=new Set;this.G={};this.L={};this.W={};this.N=new Set;this.J=new dW;this.K=new dW;this.T=new dW;this.C=new dW}; H1d=function(W,Y,k){typeof W==="string"&&(W={mediaContentUrl:W,startSeconds:Y,suggestedQuality:k});a:{if((Y=W.mediaContentUrl)&&(Y=/\/([ve]|embed)\/([^#?]+)/.exec(Y))&&Y[2]){Y=Y[2];break a}Y=null}W.videoId=Y;return DA(W)}; DA=function(W,Y,k){if(typeof W==="string")return{videoId:W,startSeconds:Y,suggestedQuality:k};Y={};k=g.p(nkv);for(var P=k.next();!P.done;P=k.next())P=P.value,W[P]&&(Y[P]=W[P]);if(W=W.embedConfig||W.embed_config)if(typeof W==="string")Y.embed_config=W;else if(g.Pp(W))try{var T=JSON.stringify(W);Y.embed_config=T}catch(I){console.error("Invalid embedConfig JSON",I)}return Y}; pWS=function(W,Y,k,P){if(g.Pp(W)&&!Array.isArray(W)){Y="playlist list listType index startSeconds suggestedQuality".split(" ");k={};for(P=0;P32&&P.push("hfr");Y.isHdr()&&P.push("hdr");Y.primaries==="bt2020"&&P.push("wcg");k.video_quality_features=P}}if(W=W.getPlaylistId())k.list=W;return k}; yn=function(){gW.apply(this,arguments)}; eW=function(W,Y){var k={};if(W.app.V().Kg){W=g.p(Jaq);for(var P=W.next();!P.done;P=W.next())P=P.value,Y.hasOwnProperty(P)&&(k[P]=Y[P]);if(Y=k.qoe_cat)W="",typeof Y==="string"&&Y.length>0&&(W=Y.split(",").filter(function(T){return sNd.includes(T)}).join(",")),k.qoe_cat=W; raz(k)}else for(W=g.p(Aa5),P=W.next();!P.done;P=W.next())P=P.value,Y.hasOwnProperty(P)&&(k[P]=Y[P]);return k}; raz=function(W){var Y=W.raw_player_response;if(!Y){var k=W.player_response;k&&(Y=JSON.parse(k))}delete W.player_response;delete W.raw_player_response;if(Y){W.raw_player_response={streamingData:Y.streamingData,playerConfig:Y.playerConfig};var P;if((P=Y.playbackTracking)==null?0:P.qoeUrl)W.raw_player_response=Object.assign({},W.raw_player_response,{playbackTracking:{qoeUrl:Y.playbackTracking.qoeUrl}});Y.videoDetails&&(Y.videoDetails.videoId||Y.videoDetails.lengthSeconds)&&(k={},Y.videoDetails.videoId&& (k.videoId=Y.videoDetails.videoId),Y.videoDetails.lengthSeconds&&(k.lengthSeconds=Y.videoDetails.lengthSeconds),W.raw_player_response=Object.assign({},W.raw_player_response,{videoDetails:k}))}}; dg2=function(W){var Y=Y===void 0?5:Y;return W?zN1[W]||Y:Y}; g.oR=function(){yn.apply(this,arguments)}; mg7=function(W){sb(W,"getInternalApiInterface",W.getInternalApiInterface);sb(W,"addEventListener",W.tO);sb(W,"removeEventListener",W.j6z);sb(W,"cueVideoByPlayerVars",W.P0);sb(W,"loadVideoByPlayerVars",W.J5J);sb(W,"preloadVideoByPlayerVars",W.CDD);sb(W,"getAdState",W.getAdState);sb(W,"sendAbandonmentPing",W.sendAbandonmentPing);sb(W,"setLoopRange",W.setLoopRange);sb(W,"getLoopRange",W.getLoopRange);sb(W,"setAutonavState",W.setAutonavState);sb(W,"seekTo",W.WWD);sb(W,"seekBy",W.MWP);sb(W,"seekToLiveHead", W.seekToLiveHead);sb(W,"requestSeekToWallTimeSeconds",W.requestSeekToWallTimeSeconds);sb(W,"seekToStreamTime",W.seekToStreamTime);sb(W,"prefetchKeyPlay",W.prefetchKeyPlay);sb(W,"startSeekCsiAction",W.startSeekCsiAction);sb(W,"getStreamTimeOffset",W.getStreamTimeOffset);sb(W,"getVideoData",W.Z3);sb(W,"setInlinePreview",W.setInlinePreview);sb(W,"getAppState",W.getAppState);sb(W,"updateLastActiveTime",W.updateLastActiveTime);sb(W,"setBlackout",W.setBlackout);sb(W,"setUserEngagement",W.setUserEngagement); sb(W,"updateSubtitlesUserSettings",W.updateSubtitlesUserSettings);sb(W,"getPresentingPlayerType",W.uJ);sb(W,"canPlayType",W.canPlayType);sb(W,"updatePlaylist",W.updatePlaylist);sb(W,"updateVideoData",W.updateVideoData);sb(W,"updateEnvironmentData",W.updateEnvironmentData);sb(W,"sendVideoStatsEngageEvent",W.vHJ);sb(W,"productsInVideoVisibilityUpdated",W.productsInVideoVisibilityUpdated);sb(W,"setSafetyMode",W.setSafetyMode);sb(W,"isAtLiveHead",function(Y){return W.isAtLiveHead(void 0,Y)}); sb(W,"getVideoAspectRatio",W.getVideoAspectRatio);sb(W,"getPreferredQuality",W.getPreferredQuality);sb(W,"getPlaybackQualityLabel",W.getPlaybackQualityLabel);sb(W,"setPlaybackQualityRange",W.Ce1);sb(W,"onAdUxClicked",W.onAdUxClicked);sb(W,"getFeedbackProductData",W.getFeedbackProductData);sb(W,"getStoryboardFrame",W.getStoryboardFrame);sb(W,"getStoryboardFrameIndex",W.getStoryboardFrameIndex);sb(W,"getStoryboardLevel",W.getStoryboardLevel);sb(W,"getNumberOfStoryboardLevels",W.getNumberOfStoryboardLevels); sb(W,"getCaptionWindowContainerId",W.getCaptionWindowContainerId);sb(W,"getAvailableQualityLabels",W.getAvailableQualityLabels);sb(W,"addCueRange",W.addCueRange);sb(W,"addUtcCueRange",W.addUtcCueRange);sb(W,"showAirplayPicker",W.showAirplayPicker);sb(W,"dispatchReduxAction",W.dispatchReduxAction);sb(W,"getPlayerResponse",W.Xp);sb(W,"getWatchNextResponse",W.BG);sb(W,"getHeartbeatResponse",W.g$);sb(W,"getCurrentTime",W.Jk);sb(W,"getDuration",W.Lk);sb(W,"getPlayerState",W.getPlayerState);sb(W,"getPlayerStateObject", W.Fp);sb(W,"getVideoLoadedFraction",W.getVideoLoadedFraction);sb(W,"getProgressState",W.getProgressState);sb(W,"getVolume",W.getVolume);sb(W,"setVolume",W.RF);sb(W,"isMuted",W.isMuted);sb(W,"mute",W.yv);sb(W,"unMute",W.SQ);sb(W,"loadModule",W.loadModule);sb(W,"unloadModule",W.unloadModule);sb(W,"getOption",W.Tp);sb(W,"getOptions",W.getOptions);sb(W,"setOption",W.setOption);sb(W,"loadVideoById",W.Vo);sb(W,"loadVideoByUrl",W.rG);sb(W,"playVideo",W.xW);sb(W,"loadPlaylist",W.loadPlaylist);sb(W,"nextVideo", W.nextVideo);sb(W,"previousVideo",W.previousVideo);sb(W,"playVideoAt",W.playVideoAt);sb(W,"getDebugText",W.getDebugText);sb(W,"getWebPlayerContextConfig",W.getWebPlayerContextConfig);sb(W,"notifyShortsAdSwipeEvent",W.notifyShortsAdSwipeEvent);sb(W,"getVideoContentRect",W.getVideoContentRect);sb(W,"setSqueezeback",W.setSqueezeback);sb(W,"toggleSubtitlesOn",W.toggleSubtitlesOn);sb(W,"isSubtitlesOn",W.isSubtitlesOn);sb(W,"reportPlaybackIssue",W.reportPlaybackIssue);sb(W,"setAutonav",W.setAutonav);sb(W, "isNotServable",W.isNotServable);sb(W,"channelSubscribed",W.channelSubscribed);sb(W,"channelUnsubscribed",W.channelUnsubscribed);sb(W,"togglePictureInPicture",W.togglePictureInPicture);sb(W,"supportsGaplessAudio",W.supportsGaplessAudio);sb(W,"supportsGaplessShorts",W.supportsGaplessShorts);sb(W,"enqueueVideoByPlayerVars",function(Y){return void W.enqueueVideoByPlayerVars(Y)}); sb(W,"clearQueue",W.clearQueue);sb(W,"getAudioTrack",W.Ak);sb(W,"setAudioTrack",W.PeS);sb(W,"getAvailableAudioTracks",W.vG);sb(W,"getMaxPlaybackQuality",W.getMaxPlaybackQuality);sb(W,"getUserPlaybackQualityPreference",W.getUserPlaybackQualityPreference);sb(W,"getSubtitlesUserSettings",W.getSubtitlesUserSettings);sb(W,"resetSubtitlesUserSettings",W.resetSubtitlesUserSettings);sb(W,"setMinimized",W.setMinimized);sb(W,"setOverlayVisibility",W.setOverlayVisibility);sb(W,"confirmYpcRental",W.confirmYpcRental); sb(W,"queueNextVideo",W.queueNextVideo);sb(W,"handleExternalCall",W.handleExternalCall);sb(W,"logApiCall",W.logApiCall);sb(W,"isExternalMethodAvailable",W.isExternalMethodAvailable);sb(W,"setScreenLayer",W.setScreenLayer);sb(W,"getCurrentPlaylistSequence",W.getCurrentPlaylistSequence);sb(W,"getPlaylistSequenceForTime",W.getPlaylistSequenceForTime);sb(W,"shouldSendVisibilityState",W.shouldSendVisibilityState);sb(W,"syncVolume",W.syncVolume);sb(W,"highlightSettingsMenuItem",W.highlightSettingsMenuItem); sb(W,"openSettingsMenuItem",W.openSettingsMenuItem);sb(W,"getEmbeddedPlayerResponse",W.getEmbeddedPlayerResponse);sb(W,"getVisibilityState",W.getVisibilityState);sb(W,"isMutedByMutedAutoplay",W.isMutedByMutedAutoplay);sb(W,"isMutedByEmbedsMutedAutoplay",W.isMutedByEmbedsMutedAutoplay);sb(W,"setGlobalCrop",W.setGlobalCrop);sb(W,"setInternalSize",W.setInternalSize);sb(W,"setFauxFullscreen",W.setFauxFullscreen);sb(W,"setAppFullscreen",W.setAppFullscreen)}; Cl=function(W,Y,k){W=g.vV(W.r5(),Y);return k?(k.addOnDisposeCallback(W),null):W}; g.Ll=function(W,Y,k){return W.app.V().AC?Y:g.ky("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:Y,SHORTCUT:k})}; Dgd=function(W){W.r5().element.setAttribute("aria-live","polite")}; g.Ub=function(W,Y){g.oR.call(this,W,Y);mg7(this);AD(this,"addEventListener",this.O_);AD(this,"removeEventListener",this.fmz);AD(this,"cueVideoByPlayerVars",this.wg);AD(this,"loadVideoByPlayerVars",this.p6S);AD(this,"preloadVideoByPlayerVars",this.g81);AD(this,"loadVideoById",this.Vo);AD(this,"loadVideoByUrl",this.rG);AD(this,"playVideo",this.xW);AD(this,"loadPlaylist",this.loadPlaylist);AD(this,"nextVideo",this.nextVideo);AD(this,"previousVideo",this.previousVideo);AD(this,"playVideoAt",this.playVideoAt); AD(this,"getVideoData",this.Oh);AD(this,"seekBy",this.zng);AD(this,"seekTo",this.yDg);AD(this,"showControls",this.showControls);AD(this,"hideControls",this.hideControls);AD(this,"cancelPlayback",this.cancelPlayback);AD(this,"getProgressState",this.getProgressState);AD(this,"isInline",this.isInline);AD(this,"setInline",this.setInline);AD(this,"setLoopVideo",this.setLoopVideo);AD(this,"getLoopVideo",this.getLoopVideo);AD(this,"getVideoContentRect",this.getVideoContentRect);AD(this,"getVideoStats",this.D3); AD(this,"getCurrentTime",this.Ti);AD(this,"getDuration",this.Lk);AD(this,"getPlayerState",this.qn);AD(this,"getVideoLoadedFraction",this.fO);AD(this,"mute",this.yv);AD(this,"unMute",this.SQ);AD(this,"setVolume",this.RF);AD(this,"loadModule",this.loadModule);AD(this,"unloadModule",this.unloadModule);AD(this,"getOption",this.Tp);AD(this,"getOptions",this.getOptions);AD(this,"setOption",this.setOption);AD(this,"addCueRange",this.addCueRange);AD(this,"getDebugText",this.getDebugText);AD(this,"getStoryboardFormat", this.getStoryboardFormat);AD(this,"toggleFullscreen",this.toggleFullscreen);AD(this,"isFullscreen",this.isFullscreen);AD(this,"getPlayerSize",this.getPlayerSize);AD(this,"toggleSubtitles",this.toggleSubtitles);AD(this,"setCenterCrop",this.setCenterCrop);AD(this,"setFauxFullscreen",this.setFauxFullscreen);AD(this,"setSizeStyle",this.setSizeStyle);AD(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);AD(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);KGC(this)}; g.lf=function(W){W=W.gx();var Y=W.zd.get("endscreen");return Y&&Y.aM()?!0:W.U9()}; g.bf=function(W,Y){W.getPresentingPlayerType()===3?W.publish("mdxautoplaycancel"):W.Ri("onAutonavCancelled",Y)}; g.x9=function(W){var Y=cV(W.gx());return W.app.XK&&!W.isFullscreen()||W.getPresentingPlayerType()===3&&Y&&Y.Gg()&&Y.EK()||!!W.getPlaylist()}; g.fl=function(W,Y){g.zM(W,"addEmbedsConversionTrackingParams",[Y])}; g.Nq=function(W){return(W=g.Vn(W.gx()))?W.kG():{}}; g.gkS=function(W){W=(W=W.getVideoData())&&W.K;return!!W&&!(!W.audio||!W.video)&&W.mimeType!=="application/x-mpegURL"}; g.aR=function(W,Y,k){W=W.ai().element;var P=C$(W.children,function(T){T=Number(T.getAttribute("data-layer"));return k-T||1}); P<0&&(P=-(P+1));tv(W,Y,P);Y.setAttribute("data-layer",String(k))}; g.W1=function(W){var Y=W.V();if(!Y.UV)return!1;var k=W.getVideoData();if(!k||W.getPresentingPlayerType()===3)return!1;var P=(!k.isLiveDefaultBroadcast||Y.U("allow_poltergust_autoplay"))&&!nl(k);P=k.isLivePlayback&&(!Y.U("allow_live_autoplay")||!P);var T=k.isLivePlayback&&Y.U("allow_live_autoplay_on_mweb");W=W.getPlaylist();W=!!W&&W.Gg();var I=k.OP&&k.OP.playerOverlays||null;I=!!(I&&I.playerOverlayRenderer&&I.playerOverlayRenderer.autoplay);I=k.zr&&I;return!k.ypcPreview&&(!P||T)&&!g.n$(k.N,"ypc")&& !W&&(!g.Y3(Y)||I)}; wW0=function(W,Y){W=FGF(W.app.Ln().C);W=g.p(W);for(var k=W.next();!k.done;k=W.next()){k=k.value;var P=k.getAvailableAudioTracks(),T=null;P=g.p(P);for(var I=P.next();!I.done;I=P.next())if(I=I.value,I.getLanguageInfo().getId()===Y){T=I;break}T&&k.s4(T,!0)}}; $T=function(){zS.apply(this,arguments);this.requestHeaders={}}; P1=function(){kT||(kT=new $T);return kT}; TT=function(W,Y){Y?W.requestHeaders.Authorization="Bearer "+Y:delete W.requestHeaders.Authorization}; g.jk=function(W){g.e.call(this);var Y=this;this.W6=W;this.zW={Rv:function(){return Y.W6}}}; g.IJ=function(W,Y,k,P){P=P===void 0?!1:P;g.kZ.call(this,Y);var T=this;this.Y=W;this.Kg=P;this.X=new g.p5(this);this.fade=new g.cM(this,k,!0,void 0,void 0,function(){T.R4()}); g.v(this,this.X);g.v(this,this.fade)}; Xr=function(W){var Y=W.Y.getRootNode();return W.Y.U("web_watch_pip")||W.Y.U("web_shorts_pip")?ap(Y):document}; QNd=function(W){W.K&&(document.activeElement&&g.R_(W.element,document.activeElement)&&W.K.focus(),W.K.setAttribute("aria-expanded","false"),W.K=void 0);g.ne(W.X);W.G=void 0}; Sk=function(W,Y,k){W.IZ()?W.n1():W.fH(Y,k)}; hG=function(W,Y,k,P){P=new g.l({S:"div",Ya:["ytp-linked-account-popup-button"],v6:P,D:{role:"button",tabindex:"0"}});Y=new g.l({S:"div",j:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},B:[{S:"div",j:"ytp-linked-account-popup-title",v6:Y},{S:"div",j:"ytp-linked-account-popup-description",v6:k},{S:"div",j:"ytp-linked-account-popup-buttons",B:[P]}]});g.IJ.call(this,W,{S:"div",j:"ytp-linked-account-popup-container",B:[Y]},100);var T=this;this.dialog=Y;g.v(this,this.dialog); P.listen("click",function(){T.n1()}); g.v(this,P);g.aR(this.Y,this.element,4);this.hide()}; g.OH=function(W,Y,k,P){g.kZ.call(this,W);this.priority=Y;k&&g.B1(this,k);P&&this.N6(P)}; g.ui=function(W,Y,k,P){W=W===void 0?{}:W;Y=Y===void 0?[]:Y;k=k===void 0?!1:k;P=P===void 0?!1:P;Y.push("ytp-menuitem");var T=W;"role"in T||(T.role="menuitem");k||(T=W,"tabindex"in T||(T.tabindex="0"));W={S:k?"a":"div",Ya:Y,D:W,B:[{S:"div",j:"ytp-menuitem-icon",v6:"{{icon}}"},{S:"div",j:"ytp-menuitem-label",v6:"{{label}}"},{S:"div",j:"ytp-menuitem-content",v6:"{{content}}"}]};P&&W.B.push({S:"div",j:"ytp-menuitem-secondary-icon",v6:"{{secondaryIcon}}"});return W}; g.B1=function(W,Y){W.updateValue("label",Y)}; ZZ=function(W){g.OH.call(this,g.ui({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var Y=this;this.Y=W;this.K=this.W=!1;this.Mq=W.ML();W.createServerVe(this.element,this,!0);this.Z(this.Y,"settingsMenuVisibilityChanged",function(k){Y.h9(k)}); this.Z(this.Y,"videodatachange",this.T);this.listen("click",this.onClick);this.T()}; ii=function(W){return W?g.jy(W):""}; Mb=function(W){g.e.call(this);this.api=W}; tG=function(W){Mb.call(this,W);var Y=this;sb(W,"setAccountLinkState",function(k){Y.setAccountLinkState(k)}); sb(W,"updateAccountLinkingConfig",function(k){Y.updateAccountLinkingConfig(k)}); W.addEventListener("videodatachange",function(k,P){Y.onVideoDataChange(P)}); W.addEventListener("settingsMenuInitialized",function(){Y.menuItem=new ZZ(Y.api);g.v(Y,Y.menuItem)})}; qb=function(W){Mb.call(this,W);var Y=this;this.W=null;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"applicationvideodatachange",function(){Y.mw()})}; ya0=function(W){W=W.api.getVideoData();if(!W)return!1;var Y=W.adFormat==="17_8",k,P=((k=W.DT)==null?void 0:z3(k,5))===8;return W.isAd()&&(Y||P)}; eNC=function(W){this.api=W;this.W={}}; RJ=function(W,Y,k,P){Y in W.W||(k=new g.L6(k,P,{id:Y,priority:2,namespace:"appad"}),W.api.Bz([k],1),W.W[Y]=k)}; H1=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(this);g.v(this,this.events);this.W=new eNC(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){Y.W.W={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(k){var P=Y.W;RJ(P,"part2viewed",1,0x8000000000000);RJ(P,"engagedview",Math.max(1,k.A9*1E3),0x8000000000000);if(!k.isLivePlayback){var T=k.lengthSeconds*1E3;rR(k)&&P.api.U("html5_shorts_gapless_ads_duration_fix")&&(T=P.api.getProgressState().seekableEnd*1E3-k.zY);RJ(P,"videoplaytime25",T*.25,T);RJ(P,"videoplaytime50",T*.5,T);RJ(P,"videoplaytime75",T*.75,T);RJ(P,"videoplaytime100",T,0x8000000000000);RJ(P,"conversionview",T,0x8000000000000); RJ(P,"videoplaybackstart",1,T);RJ(P,"videoplayback2s",2E3,T);RJ(P,"videoplayback10s",1E4,T)}}); this.events.Z(this.api,g.lP("appad"),this.K);this.events.Z(this.api,g.bP("appad"),this.K)}; LGX=function(W,Y,k){if(!(k in Y))return!1;Y=Y[k];Array.isArray(Y)||(Y=[Y]);Y=g.p(Y);for(k=Y.next();!k.done;k=Y.next()){k=k.value;var P={CPN:W.api.getVideoData().clientPlaybackNonce};k=g.K_(k,P);P=void 0;P=P===void 0?!1:P;(P=Q5(y5(k,ok5),k,P,"Active View 3rd Party Integration URL"))||(P=void 0,P=P===void 0?!1:P,P=Q5(y5(k,vk2),k,P,"Google/YouTube Brand Lift URL"));P||(P=void 0,P=P===void 0?!1:P,P=Q5(y5(k,CS0),k,P,"Nielsen OCR URL"));g.rS(k,void 0,P)}return!0}; nu=function(W,Y){Ug5(W,Y).then(function(k){g.rS(Y,void 0,void 0,k)})}; pu=function(W,Y){Y.forEach(function(k){nu(W,k)})}; Ug5=function(W,Y){return g.Zw(W.api.V())&&YG(Y)&&Wy(Y)?g.dV(W.api.V(),g.hD(W.api.getVideoData())).then(function(k){var P;k&&(P={Authorization:"Bearer "+k});return P},void 0):KN()}; lPd=function(W){Mb.call(this,W);this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"videoready",function(Y){if(W.getPresentingPlayerType()===1){var k,P,T={playerDebugData:{pmlSignal:!!((k=Y.getPlayerResponse())==null?0:(P=k.adPlacements)==null?0:P.some(function(I){var X;return I==null?void 0:(X=I.adPlacementRenderer)==null?void 0:X.renderer})), contentCpn:Y.clientPlaybackNonce}};g.W8("adsClientStateChange",T)}})}; GT=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);sb(this.api,"getUserAudioQualitySetting",function(){return Y.getUserAudioQualitySetting()}); sb(this.api,"setUserAudioQualitySetting",function(k){Y.setUserAudioQualitySetting(k)}); sb(this.api,"hasHqaAudioTrack",function(){return Y.hasHqaAudioTrack()}); this.wO=$US();this.updateEnvironmentData()}; b11=function(W){Mb.call(this,W);var Y=this;sb(this.api,"getAudioTrackState",function(){return Y.api.kF(0)})}; Ku=function(W){g.l.call(this,{S:"button",Ya:["ytp-button","ytp-autonav-toggle"],D:{title:W.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},B:[{S:"div",j:"ytp-autonav-toggle-button-container",B:[{S:"div",j:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.Y=W;this.K=[];this.W=!1;this.isChecked=!0;W.createClientVe(this.element,this, 113681);this.Z(W,"presentingplayerstatechange",this.dn);this.listen("click",this.onClick);this.Y.V().U("web_player_autonav_toggle_always_listen")&&caC(this);Cl(W,this.element,this);this.dn()}; caC=function(W){W.K.push(W.Z(W.Y,"videodatachange",W.dn));W.K.push(W.Z(W.Y,"videoplayerreset",W.dn));W.K.push(W.Z(W.Y,"onPlaylistUpdate",W.dn));W.K.push(W.Z(W.Y,"autonavchange",W.Tk))}; xgd=function(W){W.isChecked=W.isChecked;W.J5("ytp-autonav-toggle-button").setAttribute("aria-checked",String(W.isChecked));var Y=W.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";W.Y.V().U("player_tooltip_data_title_killswitch")?W.update({title:Y,label:Y}):W.update({"data-tooltip-title":Y,label:Y});W.Y.wc()}; fPS=function(W){return W.Y.V().U("web_player_autonav_use_server_provided_state")&&pz(W.Kq())}; VPz=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"standardControlsInitialized",function(){var k=new Ku(W);g.v(Y,k);W.A4(k,"RIGHT_CONTROLS_LEFT")})}; EH=function(W,Y){g.OH.call(this,g.ui({role:"menuitemcheckbox","aria-checked":"false"}),Y,W,{S:"div",j:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; JG=function(W,Y){W.checked=Y;W.element.setAttribute("aria-checked",String(W.checked))}; NmC=function(W){var Y=!W.V().Er&&W.getPresentingPlayerType()!==3;return W.isFullscreen()||Y}; g.sH=function(W,Y,k,P){var T=W.currentTarget;if((k===void 0||!k)&&g.Rb(W))return W.preventDefault(),!0;Y.pauseVideo();W=T.getAttribute("href");g.QK(W,P,!0);return!1}; g.r7=function(W,Y,k){if(RT(Y.V())&&Y.getPresentingPlayerType()!==2){if(g.Rb(k))return Y.isFullscreen()&&!Y.V().externalFullscreen&&Y.toggleFullscreen(),k.preventDefault(),!0}else{var P=g.Rb(k);P&&Y.pauseVideo();g.QK(W,void 0,!0);P&&(g.yK(W),k.preventDefault())}return!1}; aPq=function(W){W=AG.includes("es-419")?W.U("delhi_modern_web_player_icons")?OZ():{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,D:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:W.U("delhi_modern_web_player_icons")?wOd():{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,D:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};W.j="ytp-subtitles-button-icon"; return W}; Wx7=function(W){return AG.includes("es-419")?W?OZ():{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:W?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},B:[{S:"path",D:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; zT=function(){return{S:"div",j:"ytp-spinner-container",B:[{S:"div",j:"ytp-spinner-rotator",B:[{S:"div",j:"ytp-spinner-left",B:[{S:"div",j:"ytp-spinner-circle"}]},{S:"div",j:"ytp-spinner-right",B:[{S:"div",j:"ytp-spinner-circle"}]}]}]}}; d7=function(W){if(document.createRange){var Y=document.createRange();Y&&(Y.selectNodeContents(W),W=window.getSelection())&&(W.removeAllRanges(),W.addRange(Y))}}; g7=function(W){var Y=W.U("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";EH.call(this,Y,g.m4.YR);var k=this;this.Y=W;this.W=!1;this.K=new g.C_(function(){g.YN(k.element,"ytp-menuitem-highlighted")},0); this.Mq=W.ML();W=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(W);this.subscribe("select",this.J,this);this.listen(DZ,this.T);g.v(this,this.K)}; Fr=function(W){Mb.call(this,W);var Y=this;this.W=!1;W.addEventListener("settingsMenuInitialized",function(){Y76(Y)}); W.addEventListener("highlightSettingsMenu",function(k){Y76(Y);var P=Y.menuItem;k==="menu_item_cinematic_lighting"&&(g.a2(P.element,"ytp-menuitem-highlighted"),g.a2(P.element,"ytp-menuitem-highlight-transition-enabled"),P.K.start())}); sb(W,"updateCinematicSettings",function(k){Y.updateCinematicSettings(k)})}; Y76=function(W){W.menuItem||(W.menuItem=new g7(W.api),g.v(W,W.menuItem),W.menuItem.xa(W.W))}; $ez=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"applicationvideodatachange",function(k,P){P=P.clipConfig;k==="dataloaded"&&P&&P.startTimeMs!=null&&P.endTimeMs!=null&&Y.api.setLoopRange({startTimeMs:Math.floor(Number(P.startTimeMs)),endTimeMs:Math.floor(Number(P.endTimeMs)),postId:P.postId,type:"clips"})})}; w7=function(W){Mb.call(this,W);this.events=new g.p5(W);g.v(this,this.events);sb(W,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));sb(W,"setCreatorEndscreenHideButton",this.W.bind(this))}; Qo=function(W,Y,k,P,T){var I=W.U("html5_enable_new_audio_settings_menu");EH.call(this,"Volumen estable",I?kCF.gC:g.m4.gC);this.Y=W;this.J=Y;this.K=k;this.hasDrcAudioTrack=P;this.getDrcState=T;this.enableNewAudioSettingsMenu=this.W=!1;g.a2(this.element,"ytp-drc-menu-item");this.Mq=(this.enableNewAudioSettingsMenu=I)?W.ML().Pm:W.ML();W.addEventListener("videodatachange",this.X5.bind(this));W.U("mta_drc_mutual_exclusion_removal")&&this.Z(W,"onPlaybackAudioChange",this.X5);this.enableNewAudioSettingsMenu&& this.Z(W,"audiopreferencechange",this.X5);Y=this.K()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(W=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(W));this.subscribe("select",this.T,this);this.enableNewAudioSettingsMenu?this.X5():(this.setEnabled(this.hasDrcAudioTrack()),JG(this,Y),this.Mq.c7(this))}; yo=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);W.U("html5_show_drc_toggle")&&W.addEventListener("settingsMenuInitialized",function(){Y.menuItem||(Y.menuItem=new Qo(Y.api,Y.setDrcUserPreference.bind(Y),Y.getDrcUserPreference.bind(Y),Y.iS.bind(Y),Y.getDrcState.bind(Y)),g.v(Y,Y.menuItem))}); sb(this.api,"setDrcUserPreference",function(P){Y.setDrcUserPreference(P)}); sb(this.api,"getDrcUserPreference",function(){return Y.getDrcUserPreference()}); sb(this.api,"hasDrcAudioTrack",function(){return Y.iS()}); sb(this.api,"getDrcState",function(){return Y.getDrcState()}); var k;this.W=(k=g.Es("yt-player-drc-pref"))!=null?k:1;this.updateEnvironmentData()}; ek=function(W){Mb.call(this,W);var Y=this;this.W={};this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"videodatachange",function(){Y.onVideoDataChange()}); this.events.Z(W,g.lP("embargo"),function(k){Y.api.aZ(!0);var P,T=(P=Y.W[k.id])!=null?P:[];P=g.p(T);for(T=P.next();!T.done;T=P.next()){var I=T.value;Y.api.hideControls();Y.api.SW("auth",2,"This video isn't available in your current playback area",Ol({embargoed:1,id:k.id,idx:k.K,start:k.start}));T=void 0;(I=(T=I.embargo)==null?void 0:T.onTrigger)&&Y.api.Ri("innertubeCommand",I)}})}; PWX=function(W,Y){var k;return(k=Y.onEnter)==null?void 0:k.some(W.K)}; Toq=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next()){k=k.value;var P=void 0,T=Number((P=k.playbackPosition)==null?void 0:P.utcTimeMillis)/1E3,I=void 0;P=T+Number((I=k.duration)==null?void 0:I.seconds);I="embargo_"+T;W.api.addUtcCueRange(I,T,P,"embargo",!1);k.onEnter&&(W.W[I]=k.onEnter.filter(W.K))}}; oJ=function(W){Mb.call(this,W);var Y=this;this.W=[];this.events=new g.p5(W);g.v(this,this.events);sb(W,"addEmbedsConversionTrackingParams",function(k){Y.addEmbedsConversionTrackingParams(k)}); this.events.Z(W,"veClickLogged",function(k){Y.api.hasVe(k)&&(k=k.visualElement.getAsJspb(),k=s1(k,2),Y.W.push(k))})}; jcq=function(W){Mb.call(this,W);sb(W,"isEmbedsShortsMode",function(){return W.isEmbedsShortsMode()})}; Isv=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"initialvideodatacreated",function(k){P0(kt(),16623);Y.W=g.iD();var P=W.V().nu&&!k.Dm;if(SW(k)&&P){P0(kt(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(k.getWatchNextResponse()){var T,I=(T=k.getWatchNextResponse())==null?void 0:T.trackingParams;I&&jb(I)}if(k.getPlayerResponse()){var X;(k=(X=k.getPlayerResponse())==null?void 0:X.trackingParams)&&jb(k)}}else P0(kt(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),k.getEmbeddedPlayerResponse()&&(X=(I=k.getEmbeddedPlayerResponse())==null?void 0:I.trackingParams)&&jb(X)}); this.events.Z(W,"loadvideo",function(){P0(kt(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Y.W})}); this.events.Z(W,"cuevideo",function(){P0(kt(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:Y.W})}); this.events.Z(W,"largeplaybuttonclicked",function(k){P0(kt(),27240,k.visualElement)}); this.events.Z(W,"playlistnextbuttonclicked",function(k){P0(kt(),27240,k.visualElement)}); this.events.Z(W,"playlistprevbuttonclicked",function(k){P0(kt(),27240,k.visualElement)}); this.events.Z(W,"playlistautonextvideo",function(){P0(kt(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; v1=function(W,Y){g.e.call(this);var k=this;this.W=null;this.J=Y;Y=[];for(var P=0;P<=100;P++)Y.push(P/100);Y={threshold:Y,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(T){T=T[T.length-1];var I=null;typeof T.isVisible==="undefined"?document.visibilityState==="visible"&&T.isIntersecting&&T.intersectionRatio>0?I=T.intersectionRatio:document.visibilityState==="hidden"?I=0:I=null:I=T.isVisible?T.intersectionRatio:0;I!=null&&(I=Math.max(I,0),I=Math.min(I, 1));k.W=I;typeof k.J==="function"&&k.J(k.W)},Y):null)&&this.K.observe(W)}; S70=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"applicationInitialized",function(){X0C(Y)})}; X0C=function(W){var Y=W.api.getRootNode(),k,P=W.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((k=Y.parentElement)==null?void 0:k.parentElement)||Y:Y;W.W=new v1(P,function(T){T!=null&&(W.api.V().ww=T,W.api.V().Jj="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.v(W,W.W);W.events.Z(W.api,"videoStatsPingCreated",function(T){var I=W.W;I=I.W==null?null:Math.round(I.W*100)/100;T.inview=I!=null?I:void 0;I=W.api.getPlayerSize();if(I.height>0&&I.width>0){I=[Math.round(I.width),Math.round(I.height)];var X=g.nh();X>1&&I.push(X);I=I.join(":")}else I=void 0;T.size=I})}; hCF=function(W){var Y;return((Y=((W==null?void 0:W.messageRenderers)||[]).find(function(k){return!!k.timeCounterRenderer}))==null?void 0:Y.timeCounterRenderer)||null}; Cu=function(W){g.l.call(this,{S:"div",Ya:["ytp-player-content","ytp-iv-player-content"],B:[{S:"div",j:"ytp-free-preview-countdown-timer",B:[{S:"span",v6:"{{label}}"},{S:"span",j:"ytp-free-preview-countdown-timer-separator",v6:"\u2022"},{S:"span",v6:"{{duration}}"}]}]});this.api=W;this.W=null;this.J=this.K=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Om5=function(W,Y){W.W||(W.K=Y,W.J=(0,g.q5)(),W.W=new g.vH(function(){BoC(W)},null),BoC(W))}; BoC=function(W){var Y=Math,k=Y.round,P=Math.min((0,g.q5)()-W.J,W.K);Y=k.call(Y,(W.K-P)/1E3);W.updateValue("duration",f1({seconds:Y}));Y<=0&&W.W?W.stopTimer():W.W&&W.W.start()}; uKq=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"basechromeinitialized",function(){Y.W=new Cu(W);g.v(Y,Y.W);g.aR(W,Y.W.element,4);Y.W.hide()})}; Lu=function(W){g.l.call(this,{S:"button",Ya:["ytp-fullerscreen-edu-button","ytp-button"],B:[{S:"div",Ya:["ytp-fullerscreen-edu-text"],v6:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{S:"div",Ya:["ytp-fullerscreen-edu-chevron"],B:[{S:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},B:[{S:"path",D:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],D:{"data-priority":"2"}});this.Ii=W;this.fade=new g.cM(this,250,void 0,100);this.K=this.W= !1;W.createClientVe(this.element,this,61214);g.v(this,this.fade);this.Z(W,"fullscreentoggled",this.xa);this.Z(W,"presentingplayerstatechange",this.xa);this.listen("click",this.onClick);this.xa()}; UH=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);sb(this.api,"updateFullerscreenEduButtonSubtleModeState",function(P){Y.updateFullerscreenEduButtonSubtleModeState(P)}); sb(this.api,"updateFullerscreenEduButtonVisibility",function(P){Y.updateFullerscreenEduButtonVisibility(P)}); var k=W.V();W.U("external_fullscreen_with_edu")&&k.externalFullscreen&&RT(k)&&k.controlsType==="1"&&this.events.Z(W,"standardControlsInitialized",function(){Y.W=new Lu(W);g.v(Y,Y.W);W.A4(Y.W)})}; Zm7=function(W){g.l.call(this,{S:"div",j:"ytp-gated-actions-overlay",B:[{S:"div",j:"ytp-gated-actions-overlay-background",B:[{S:"div",j:"ytp-gated-actions-overlay-background-overlay"}]},{S:"button",Ya:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Cerrar"},B:[g.BM()]},{S:"div",j:"ytp-gated-actions-overlay-bar",B:[{S:"div",j:"ytp-gated-actions-overlay-text-container",B:[{S:"div",j:"ytp-gated-actions-overlay-title",v6:"{{title}}"},{S:"div",j:"ytp-gated-actions-overlay-subtitle", v6:"{{subtitle}}"}]},{S:"div",j:"ytp-gated-actions-overlay-button-container"}]}]});var Y=this;this.api=W;this.background=this.J5("ytp-gated-actions-overlay-background");this.K=this.J5("ytp-gated-actions-overlay-button-container");this.W=[];this.Z(this.J5("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){Y.api.Ri("onCloseMiniplayer")}); this.hide()}; Mbz=function(W,Y){var k=0;k=0;for(var P={};k T&&(T=h.width,I="url("+h.url+")")}k.background.style.backgroundImage=I;Mbz(k,P.actionButtons||[]);k.show()}else k.hide()}); g.aR(this.api,this.W.element,4)}; li=function(W){Mb.call(this,W);var Y=this;AD(this.api,"getSphericalProperties",function(){return Y.getSphericalProperties()}); AD(this.api,"setSphericalProperties",function(){Y.setSphericalProperties.apply(Y,g.ZX(g.y0.apply(0,arguments)))}); rW(this.api,"getSphericalProperties",function(){return Y.api.getPresentingPlayerType()===2?{}:Y.getSphericalProperties()}); rW(this.api,"setSphericalProperties",function(){var k=g.y0.apply(0,arguments);Y.api.getPresentingPlayerType()!==2&&Y.setSphericalProperties.apply(Y,g.ZX(k))})}; bi=function(W){Mb.call(this,W);sb(W,"createClientVe",this.createClientVe.bind(this));sb(W,"createServerVe",this.createServerVe.bind(this));sb(W,"destroyVe",this.destroyVe.bind(this));sb(W,"hasVe",this.hasVe.bind(this));sb(W,"logClick",this.logClick.bind(this));sb(W,"logVisibility",this.logVisibility.bind(this));sb(W,"setTrackingParams",this.setTrackingParams.bind(this))}; fu=function(W){this.K={};this.W={};this.videoData=W;var Y;this.J=((Y=W.J)==null?void 0:Y.K)||[];W=g.p(c1);for(Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.K[Y]=vQ(this.J,xT[Y].LP);this.tL()}; q71=function(W,Y){var k=Y.getAudioTrack();return k.id!=="und"?g.Eo(W,function(P){var T;return((T=P.Ib)==null?void 0:T.name)===k.getLanguageInfo().name}):W}; HmV=function(W,Y){return Y.getUserAudio51Preference()?g.Eo(W,RCz):W}; p01=function(W){return g.Es("yt-player-drc-pref")?g.Eo(W,nt5):W}; Kxz=function(W){return Yfq()===2?g.Eo(W,GC5):W}; nt5=function(W){var Y;return((Y=W.audio)==null?void 0:Y.W)===!0}; RCz=function(W){return lZ(W)||bZ(W)}; Et0=function(W){return W.Ib!==void 0}; GC5=function(W){var Y;return((Y=W.audio)==null?void 0:Y.K)===!0}; Vo=function(W,Y,k,P){function T(X){var h=!(X.status!==204&&X.status!==200&&!X.response),B;X={succ:""+ +h,rc:X.status,lb:((B=X.response)==null?void 0:B.byteLength)||0,rt:((0,g.q5)()-I).toFixed(),shost:g.Xl(W),trigger:Y};JM5(X,W);k&&k(X);P&&!h&&P(new g.uZ("pathprobe.net",X))} var I=(0,g.q5)();g.tB(W,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:T,onTimeout:T})}; JM5=function(W,Y){var k;((k=window.performance)==null?0:k.getEntriesByName)&&(Y=performance.getEntriesByName(Y))&&Y.length&&(Y=Y[0],W.pedns=(Y.domainLookupEnd-Y.startTime).toFixed(),W.pecon=(Y.connectEnd-Y.domainLookupEnd).toFixed(),W.perqs=(Y.requestStart-Y.connectEnd).toFixed(),sc0&&(W.perqsa=Y.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; rMX=function(W){sc0=W}; Nb=function(W,Y){this.Sj=W;this.policy=Y;this.playbackRate=1}; AMF=function(W,Y){var k=Math.min(2.5,UC(W.Sj));W=aJ(W);return Y-k*W}; WS=function(W,Y,k,P,T){T=T===void 0?!1:T;if(W.policy.Ey)return Math.ceil(W.policy.Ey*Y);W.policy.y7&&(P=Math.abs(P));P/=W.playbackRate;var I=1/cq(W.Sj);k=Math.max(.9*(P-3),UC(W.Sj)+W.Sj.K.W*I)/I*.8/(Y+k);k=Math.min(k,P);W.policy.Wu>0&&T&&(k=Math.max(k,W.policy.Wu));return zC2(W,k,Y)}; zC2=function(W,Y,k){return Math.ceil(Math.max(Math.max(W.policy.vu,W.policy.qR*k),Math.min(Math.min(W.policy.GJ,31*k),Math.ceil(Y*k))))||W.policy.vu}; deF=function(W,Y,k){k=WS(W,Y.W.info.c6,k.W.info.c6,0);var P=UC(W.Sj)+k/cq(W.Sj);return Math.max(P,P+W.policy.E8-k/Y.W.info.c6)}; aJ=function(W){return cq(W.Sj,!W.policy.Aj,W.policy.JR)}; YJ=function(W){return aJ(W)/W.playbackRate}; $J=function(W,Y,k){var P=W.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],T=W.policy.playbackStartPolicy.startMinReadaheadPolicy||[];W=Infinity;Y=g.p(Y&&P.length>0?P:T);for(P=Y.next();!P.done;P=Y.next())P=P.value,T=P.minReadaheadMs||0,k<(P.minBandwidthBytesPerSec||0)||W>T&&(W=T);return W0&&(this.K=k.uu)}; gt0=function(W,Y,k,P,T){if(!P.info.T){if(k.length===0)k.push(P);else{var I;(W=(I=k.pop())==null?void 0:g.Kr(I,P))?k.push(W):k.push(P)}return T}var X;(k=(X=k.pop())==null?void 0:g.Kr(X,P))||(k=P);if(k.info.K)return W.logger&&W.logger({incompleteSegment:k.info.TW()}),T;P=W.jb(k);T=P.t5;P={clipId:P.clipId,formatId:P.formatId,startTimeMs:P.startTimeMs,durationMs:P.nU,T9:T,wV:T};T=mez(Y,P.startTimeMs);if(I=k=T>=0?Y[T]:null){I=P;var h=T;X=k.startTimeMs+k.durationMs;var B=I.startTimeMs+I.durationMs;if(I.startTimeMs- X>W.K)I=!1;else if(De1(W,k.formatId,I.formatId))k.durationMs=Math.max(X,B)-k.startTimeMs,k.wV=Math.max(k.wV,I.wV),I=!0;else if(Math.abs(k.startTimeMs-I.startTimeMs)<=W.K)if(k.durationMs>I.durationMs+W.K){var O=k.formatId,u=k.T9;h=k.wV;k.formatId=I.formatId;k.durationMs=I.durationMs;k.T9=I.T9;k.wV=I.wV;I.formatId=O;I.startTimeMs=B;I.durationMs=X-B;I.T9=u;I.wV=h;I=!1}else k.formatId=I.formatId,I=!0;else X>I.startTimeMs&&(X>B&&(Y.splice(h+1,0,{formatId:k.formatId,startTimeMs:B,durationMs:X-B,T9:I.wV+ 1,wV:k.wV}),W.logger&&W.logger({splitOldStart:(O=k.startTimeMs)==null?void 0:O.toFixed(3),splitOldEnd:X==null?void 0:X.toFixed(3),splitNewStart:(u=I.startTimeMs)==null?void 0:u.toFixed(3),splitNewEnd:B==null?void 0:B.toFixed(3)})),k.durationMs=I.startTimeMs-k.startTimeMs,k.wV=I.T9-1),I=!1}I?P=k:(T+=1,Y.splice(T,0,P));O=0;for(u=T+1;u=B+k.K?k=!0:h+k.K=0?W:-W-2}; FxX=function(W,Y){if(W.qT){var k=W.qT.Mt();if(k.length!==0){if(W.J&&Y){var P=W.J,T=P.info.C;!jc(k,T)&&P.info.L>0&&(0,g.q5)()-W.X<5E3&&(W.logger&&W.logger({dend:P.info.TW()}),k=gm5(k,T,T+.01))}W.policy.PH&&W.logger&&W.logger({cbri:""+W.W});P=[];for(var I=T=0;T=X){var u=Object.assign({},W.va[I]),Z=W.H6.J.get(cR(W.va[I].formatId)),M=Math.max(B,X);X=Z.index.o7(M+W.K/ 1E3);B=Z.index.getStartTime(X);var t=X+ +(Math.abs(B-M)>W.K/1E3);M=t+W.T;t=Z.index.getStartTime(t)*1E3;I!==W.W||Y?(u.T9=M,u.startTimeMs=t):(W.logger&&W.logger({pEvict:"1",og:u.startTimeMs,adj:B*1E3}),u.T9=X+W.T,u.startTimeMs=B*1E3);X=void 0;B=((X=W.J)==null?void 0:X.info.duration)||11;I===W.W&&hW.K/1E3);X=B+W.T;Z=Z.index.Ug(B)*1E3;u.wV=X;u.durationMs=Z-u.startTimeMs;u.T9<=u.wV&&P.push(u)}O=0&&XI(W.audioTrack,W.targetTime)>=0&&I?((W.videoTrack.C||W.audioTrack.C)&&W.loader.y5("iterativeSeeking",{status:"done",count:W.seekCount}),W.videoTrack.C=!1,W.audioTrack.C=!1):P&&g.GR(function(){if(W.W||!W.policy.K1)BS(W);else{var X=Y.startTime,h=Y.duration;if(!W.policy.C){var B=k?W.videoTrack.C:W.audioTrack.C,O=W.videoTrack.X!==-1&&W.audioTrack.X!==-1,u=W.targetTime>=X&&W.targetTime432E3&&FWd(W.H6);W.K&&(T=W.K,W.K=0);g.GR(function(){W.policy.C||Oz(W,T,102)}); W.loader.y5("initManifestlessSync",{st:T,ost:T+W.loader.m2(),a:W.audioTrack.X,v:W.videoTrack.X});W.J&&(W.J.resolve(T+.1),W.J=null);W.policy.C&&Oz(W,T,102)}}}; i5=function(W,Y){var k=this;this.wx=W;this.requestNumber=++xev;this.W=this.now();this.L=this.N=NaN;this.G=this.W;this.J=this.Gn=this.C=0;this.X=this.W;this.bz=this.Kg=this.OP=this.KH=this.D_=this.gD=this.K=this.T=0;this.A5=this.isActive=!1;this.J9=this.e1=0;this.zW={dVh:function(){return k.YN}}; this.Sj=Y.Sj;this.snapshot=mZ1(this.Sj);this.policy=this.Sj.K;this.jm=!!Y.jm;this.UM=Y.UM;this.QD=Y.QD||0;this.Fu=Y.Fu||0;Y.EJ&&(this.TJ=new FB);var P;this.YN=(P=Y.YN)!=null?P:!1;this.jm||AAV(this.Sj)}; fs2=function(W){W.OP=Math.max(W.OP,W.C-W.D_);W.Kg=Math.max(W.Kg,W.G-W.KH);W.gD=0}; MX=function(W,Y,k){zlv(W.Sj,Y);W.TJ&&(W.TJ.add(Math.ceil(Y)-Math.ceil(W.G)),W.TJ.add(Math.max(0,Math.ceil(k/1024)-Math.ceil(W.C/1024))));var P=Y-W.G,T=k-W.C;W.Gn=T;W.bz=Math.max(W.bz,T/(P+.01)*1E3);W.G=Y;W.C=k;W.gD&&k>W.gD&&fs2(W)}; to=function(W,Y){W.url=Y;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; qX=function(W,Y){i5.call(this,W,Y);this.A9=this.xm=!1;this.UP=this.wD=Infinity;this.Fr=NaN;this.K1=!1;this.Q5=NaN;this.f1=this.GJ=this.V5=0;this.GS=Y.GS||1;this.Ox=Y.Ox||this.GS;this.Dd=Y.Dd;this.t5=Y.t5;this.Cs=Y.Cs;Vb7(this);this.hA(this.W);this.Lg=(this.Q5-this.W)/1E3}; Nod=function(W){var Y=W.GJ||W.V5;return Y?W.snapshot.delay+Math.min(W.Fu,(W.L-W.N)/1E3)+Y:W.Lg}; Rm=function(W,Y,k){if(!W.jm){Y=Math.max(Y,.01);var P=W.QD?Math.max(Y,k/W.QD):Y,T=W.Sj.K.J;T&&(P=Y,W.QD&&(P=Math.max(Y,k/W.QD*T)));vq(W.Sj,Y,k,P)}}; asd=function(W){return(W.X-W.W)/1E3}; Vb7=function(W){W.Fr=W.W+W.snapshot.delay*1E3;W.K1=!1}; HS=function(W,Y){if(W.Dd&&W.t5!==void 0&&W.Cs!==void 0){var k=Math,P=k.min,T=W.wD;var I=W.Dd;var X=W.W;if(Wo7(I,W.t5))I=Y;else{var h=0;I.Ch&&(h=.2);I=X+(I.Fu+h)*1E3}W.wD=P.call(k,T,I);k=Math;P=k.min;T=W.UP;I=W.Dd;X=W.W;h=Yy6(I,W.t5,W.Cs);h!==2&&(Y=h?Y:X+I.Fu*1E3,I.Ch&&(Y+=I.Fu*1E3));W.UP=P.call(k,T,Y);W.wD<=W.W?Vb7(W):(W.Fr=W.wD,W.K1=!0)}}; $iF=function(W,Y){if(Y+1<=W.totalLength){var k=SB(W,Y);k=k<128?1:k<192?2:k<224?3:k<240?4:5}else k=0;if(k<1||!(Y+k<=W.totalLength))return[-1,Y];if(k===1)W=SB(W,Y++);else if(k===2)k=SB(W,Y++),W=SB(W,Y++),W=(k&63)+64*W;else if(k===3){k=SB(W,Y++);var P=SB(W,Y++);W=SB(W,Y++);W=(k&31)+32*(P+256*W)}else if(k===4){k=SB(W,Y++);P=SB(W,Y++);var T=SB(W,Y++);W=SB(W,Y++);W=(k&15)+16*(P+256*(T+256*W))}else k=Y+1,W.focus(k),jB(W,k,4)?W=o4V(W).getUint32(k-W.J,!0):(P=SB(W,k+2)+256*SB(W,k+3),W=SB(W,k)+256*(SB(W,k+1)+ 256*P)),Y+=5;return[W,Y]}; nD=function(W){this.wx=W;this.W=new $S}; pD=function(W,Y){this.info=W;this.callback=Y;this.state=1;this.iG=this.P8=!1;this.ue=null}; kD6=function(W){return g.q_(W.info.EP,function(Y){return Y.type===3})}; Gg=function(W,Y,k,P){var T=this;P=P===void 0?{}:P;this.policy=Y;this.wx=k;this.status=0;this.W=new $S;this.K=0;this.Xr=this.T=this.J=!1;this.xhr=new XMLHttpRequest;this.xhr.open(P.method||"GET",W);if(P.headers)for(W=P.headers,Y=g.p(Object.keys(W)),k=Y.next();!k.done;k=Y.next())k=k.value,this.xhr.setRequestHeader(k,W[k]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return T.WX()}; this.xhr.onload=function(){return T.onDone()}; this.xhr.onerror=function(){return T.onError()}; this.xhr.fetch(function(I){T.W.append(I);T.K+=I.length;I=(0,g.q5)();T.wx.M8(I,T.K)},function(){},P.body||null)}; PUq=function(W,Y){this.K=(new TextEncoder).encode(W);this.W=(new TextEncoder).encode(Y)}; bPV=function(W,Y){var k;return g.D(function(P){if(!Y)return P.return(Y);k=new g.h7(W.K);return P.return(k.encrypt(Y,W.W))})}; N8d=function(W,Y){var k;return g.D(function(P){if(P.W==1){if(!Y)return P.return(Y);k=new g.h7(W.K);return g.m(P,k.decrypt(Y,W.W),2)}return P.return(P.K)})}; jQ1=function(W,Y){var k=this;this.W=W;this.wx=Y;this.loaded=this.status=0;this.error="";W=V2(this.W.get("range")||"");if(!W)throw Error("bad range");this.range=W;this.K=new $S;Tfd(this).then(function(){k.wx.zM()},function(P){k.error=""+P||"unknown_err"; k.wx.zM()})}; Tfd=function(W){var Y,k,P,T,I,X,h,B,O,u,Z,M,t,q,G;return g.D(function(J){if(J.W==1){W.status=200;Y=W.W.get("docid");k=rE(W.W.get("fmtid")||"");P=W.W.get("lmt")||"0";T=+(W.W.get("csz")||0);if(!Y||!k||!T)throw Error("Invalid local URL");W.W.get("ck")&&W.W.get("civ")&&(I=new PUq(W.W.get("ck"),W.W.get("civ")));X=W.range;h=Math.floor(X.start/T);B=Math.floor(X.end/T);O=h}if(J.W!=5)return O<=B?g.m(J,aT5(Y,k,P,O,I),5):J.oi(0);u=J.K;if(u===void 0)throw Error("invariant: data is undefined");Z=O*T;M=(O+1)*T; t=Math.max(0,X.start-Z);q=Math.min(X.end+1,M)-(t+Z);G=new Uint8Array(u.buffer,t,q);W.K.append(G);W.loaded+=q;W.loaded=400?(W.lastError="net.badstatus",!0):(T===void 0?0:T)?(W.lastError="ump.spsrejectfailure",!0):k||P!==void 0&&P?!1:(W.lastError=Y===204?"net.nocontent":"net.connect",!0)}; ml=function(W,Y){if(W.policy.Md)return!1;var k=Y.getResponseHeader("content-type"),P=Y.Oa();W=!P||P<=W.policy.wu;return(!Y.ZU()||!k||k.indexOf("text/plain")!==-1)&&W}; ibz=function(W,Y){var k="";Y=Y.Ny();Y.totalLength<=W.policy.wu&&(k=Zb7(W,IC(Y)));return k}; Zb7=function(W,Y){var k=Bg(Y);return eO(k)?(W.logger.debug(function(){return"Redirecting to "+k}),k):""}; rX=function(W){return vR(W.T,c0(W.SL.b5))}; M$d=function(W){var Y=W.timing.iW();Y.shost=c0(W.SL.b5);return Y}; t$1=function(W,Y){return(W==null?void 0:W.maxWidth)>(Y==null?void 0:Y.maxWidth)||(W==null?void 0:W.maxHeight)>(Y==null?void 0:Y.maxHeight)}; qy0=function(W,Y){for(var k=g.p(Y.keys()),P=k.next();!P.done;P=k.next())if(P=Y.get(P.value),P.length!==0){g.lQ(P,function(h,B){return B.maxFramerate-h.maxFramerate}); for(var T=[P[0]],I=0,X=1;XW.W||k.push(P)}return k}; Dn=function(W,Y,k){var P=nbF[W]||[];k.U("html5_shorts_onesie_mismatched_fix")&&(P=pRC[W]||[]);Y.push.apply(Y,g.ZX(P));k.U("html5_early_media_for_drm")&&Y.push.apply(Y,g.ZX(GD1[W]||[]))}; AHV=function(W,Y){var k=g.DG(W),P=W.V(),T=P.C;P=P.U("html5_shorts_onesie_mismatched_fix");var I=W.xZ();if(P){if(!T.K){if(I&&gX)return gX;if(FI)return FI}}else if(FI&&!T.K)return FI;var X=[],h=[],B={},O=wX.concat(Koz);P&&(O=wX.concat(Eb5));W.U("html5_early_media_for_drm")&&(O=O.concat(JHv),W.U("allow_vp9_1080p_mq_enc")&&O.push(sQS));var u=[].concat(g.ZX(rHq));W.U("html5_iamf_audio_onesie_fmt")&&u.push(["773"]);O=g.p(O);for(var Z=O.next();!Z.done;Z=O.next()){var M=!1;Z=g.p(Z.value);for(var t=Z.next();!t.done;t= Z.next()){t=t.value;var q=D_(t,I&&P);if(q&&q.video&&!(Ul(q)&&!k.gD&&q.video.qualityOrdinal>k.nh)){var G=g.W2(W.V().experiments,"html5_drm_byterate_soft_cap");G>0&&myS(q)&&q.c6>G||(M?(X.push(t),Dn(t,X,W)):(q=QX(k,q,T),q===!0?(M=!0,X.push(t),Dn(t,X,W)):B[t]=q))}}}u=g.p(u);for(O=u.next();!O.done;O=u.next())for(O=g.p(O.value),M=O.next();!M.done;M=O.next())if(M=M.value,(Z=PeS(M))&&Z.audio&&(W.U("html5_onesie_51_audio")||!lZ(Z)&&!bZ(Z)))if(Z=QX(k,Z,T),Z===!0){h.push(M);Dn(M,h,W);break}else B[M]=Z;if(!W.U("html5_enable_audio_quality_setting"))for(W= g.p(["141","774"]),u=W.next();!u.done;u=W.next())u=u.value,h.includes(u)&&(g.GK(h,u),B[u]="blkhqa");k.K&&Y("orfmts",B);if(P)return T.K&&(T.K=!1,gX=FI=void 0),I?gX={video:X,audio:h}:FI={video:X,audio:h};FI={video:X,audio:h};T.K=!1;return FI}; g.miX=function(W,Y,k){var P=k.C,T=[],I=[],X=k.U("html5_shorts_onesie_mismatched_fix");W=W.xZ();var h=wX.concat(Koz);X&&(h=wX.concat(Eb5));k.U("html5_early_media_for_drm")&&(h=h.concat(JHv),k.U("allow_vp9_1080p_mq_enc")&&h.push(sQS));var B=[].concat(g.ZX(rHq));k.U("html5_iamf_audio_onesie_fmt")&&B.push(["773"]);h=g.p(h);for(var O=h.next();!O.done;O=h.next()){O=g.p(O.value);for(var u=O.next();!u.done;u=O.next()){u=u.value;var Z=D_(u,W&&X);if(Z&&Z.video){var M=g.W2(k.experiments,"html5_drm_byterate_soft_cap"); if(!(M>0&&myS(Z)&&Z.c6>M)&&QX(Y,Z,P)===!0){T.push({videoCodec:zhq[ev[u]],maxWidth:Z.video.width,maxHeight:Z.video.height,maxFramerate:Z.video.fps});break}}}}X=g.p(B);for(W=X.next();!W.done;W=X.next())for(W=g.p(W.value),B=W.next();!B.done;B=W.next())if(B=B.value,(h=PeS(B))&&h.audio&&(k.U("html5_onesie_51_audio")||!lZ(h)&&!bZ(h))&&QX(Y,h,P)===!0){I.push({audioCodec:diz[ev[B]],numChannels:h.audio.numChannels});break}return{videoFormatCapabilities:T,audioFormatCapabilities:I}}; FoF=function(W){var Y,k={},P=W.W6,T=W.pg,I=P.getVideoData(),X=iW(0),h=P.getVisibilityState(),B;if((B=W.l7)==null?0:B.B4)k.wO=T.wO;X&&(k.zSa=X,k.lastManualDirection=xQ2(),X=luX()||0,X>0&&(X=(T.U("html5_use_date_now_for_local_storage")?Date.now():(0,g.q5)())-X,T.U("html5_use_date_now_for_local_storage")?X>0&&(k.timeSinceLastManualFormatSelectionMs=X):k.timeSinceLastManualFormatSelectionMs=X));X=T.U("html5_use_streamer_bandwidth_for_low_latency_live")&&I.isLowLatencyLiveStream;if(T.schedule.A5&&!X){var O; X=T.U("html5_disable_bandwidth_cofactors_for_sabr_live")?!((O=W.l7)==null||!O.Aj):!1;k.It=cq(T.schedule,!X)}X=g.FP.medium;B=Math.floor(X*16/9);(O=I.xZ())||(I.W&&I.J&&I.J.videoInfos.length!==0?(O=I.J.videoInfos[0],O=!!O.video&&O.video.width0?{authorizedFormats:W.authorizedFormats}:{authorizedFormats:Y};W.sabrLicenseConstraint&&(k.fE.sabrLicenseConstraint=W.sabrLicenseConstraint);if(T.U("html5_onesie_media_capabilities")||T.U("html5_enable_server_format_filter"))k.Pd= 3;T.U("html5_onesie_audio_only_playback")&&A6(I)&&(k.Pd=1);var d;((d=W.l7)==null?0:d.Qa)&&W.dK&&(k.Pd=k.Pd===void 0?7:k.Pd|4);d=I.AC?I.AC:g.DG(I);T.U("html5_onesie_media_capabilities")&&(k.mediaCapabilities=g.miX(I,d,T));var A;if((A=W.l7)==null?0:Qt(A)){Z=T.C;A=[];Y=[];M=new Map;t=Array.from(Z.W.values());t=g.p(t);for(q=t.next();!q.done;q=t.next())G=q.value,G.xH?Y.push({audioCodec:diz[G.lz],numChannels:G.numChannels,spatialCapabilityBitmask:DiF[G.lz]}):(J=zhq[G.lz],q={videoCodec:J,maxWidth:G.maxWidth|| 0,maxHeight:G.maxHeight||0,maxFramerate:G.maxFramerate||0,is10BitSupported:G.PE||!1},G.maxBitrateBps&&(q.maxBitrateBps=G.maxBitrateBps,h=D_(G.itag),O=void 0,((O=h)==null?0:O.video)&&QX(d,h,Z)===!0&&(h=h.c6*8,h>q.maxBitrateBps&&(q.maxBitrateBps=h))),G=J+"_"+G.PE,J=M.get(G)||[],J.push(q),M.set(G,J));A=qy0(A,M);Z={};T.U("html5_ssff_denylist_opus_low")&&(Z={itagDenylist:[249,350]});k.mediaCapabilities={videoFormatCapabilities:A,audioFormatCapabilities:Y,hdrModeBitmask:3,perPlaybackAttributes:Z}}var F; if((F=W.l7)==null?0:F.W){k.W3=d.W3;var y;k.nh=(y=W.l7)==null?void 0:y.nh}T.k8&&(k.U5=T.k8);k.DD=W.fF;k.DI=W.DI;k.Qq=W.Qq;k.Ko=W.Ko;W.Gs&&(k.en5=(0,g.q5)()-W.Gs);W.isPrefetch&&T.U("html5_report_prefetch_requests")&&(k.isPrefetch=!0);qG||(k.ji1=!0);F=UC(T.schedule)*1E3;F>0&&(k.L9=F);var L;((L=W.l7)==null?0:L.Br)&&W.nX&&W.nX0?V:T.schedule.interruptions[0]||0;var c;if((c=W.l7)==null?0:c.Gn)k.bu=W.bu;T.Q5&&(k.audioTrackId=T.Q5);uf(I)&&!k.audioTrackId&&(T.U("html5_fill_default_mosaic_audio_track_id")||(W=WGq(I),k.audioTrackId=W),I==null||I.y5("misstrkchg",{"default":k.audioTrackId}));if(I=zGd())k.detailedNetworkType=gbz[I]||gbz.other;T.U("html5_enable_voice_boost")&&(k.mIJ=T.Jo);return k}; e1=function(W,Y,k,P,T,I,X){var h={};Y&&(h.wY=Y);if(!W)return h;h.playbackCookie=k==null?void 0:k.playbackCookie;T&&(h.qX=T);h.cX=[];h.y$=[];if(X==null?0:X.size)for(Y=g.p(X.values()),k=Y.next();!k.done;k=Y.next())h.y$.push(k.value);if(W.sabrContextUpdates.size>0)for(Y=g.p(W.sabrContextUpdates.values()),k=Y.next();!k.done;k=Y.next())wRS(h,k.value,P);mX(W)&&I&&wRS(h,I,P);P=W.V().W;h.clientInfo={clientName:QQq[P.c.toUpperCase()]||0};P.cbrand&&(h.clientInfo.deviceMake=P.cbrand);P.cmodel&&(h.clientInfo.deviceModel= P.cmodel);P.cver&&(h.clientInfo.clientVersion=P.cver);P.cos&&(h.clientInfo.osName=P.cos);P.cosver&&(h.clientInfo.osVersion=P.cosver);P=W.V();P.U("html5_sabr_enable_server_xtag_selection")&&P.LH&&(h.clientInfo.hl=P.LH);W.C8&&(h.C8=W.C8);return h}; wRS=function(W,Y,k){var P=Y.type||0;(k==null?0:k.has(P))?W.y$.push(Y):W.cX.push(P)}; j1=function(W,Y,k,P,T,I){var X=I===void 0?{}:I;var h=X.sF===void 0?[]:X.sF;var B=X.qP===void 0?!1:X.qP;var O=X.du===void 0?0:X.du;var u=X.poToken===void 0?"":X.poToken;var Z=X.Dx===void 0?void 0:X.Dx;var M=X.x9===void 0?"":X.x9;var t=X.Z9===void 0?0:X.Z9;var q=X.I3===void 0?new Uint8Array(0):X.I3;var G=X.M2===void 0?!1:X.M2;I=X.TX===void 0?0:X.TX;X=X.wY===void 0?void 0:X.wY;pD.call(this,Y,T);var J=this;this.policy=W;this.logger=new g.H_("dash/request");this.CK=this.Zg=0;this.wL=!1;this.GC=this.L8= null;this.Nl=!1;this.I3=this.Z9=null;this.oV=this.OQ=!1;this.CF=null;this.TX=this.Ww=0;this.cA=!1;this.zW={ZY:function(A){J.ZY(A)}, pD5:function(){return J.ue}, dH5:function(A){J.ue=A}, BTg:function(A){J.Zg=A}, QEP:function(A){J.Yq.lastError=A}, Nj:function(){return J.xhr}}; this.timing=new qX(this,k);this.qP=B;this.Z9=t;this.I3=q;this.SL=g.ht(this.info,this.policy,P);this.SL.set("rn",this.H4().toString());this.SL.set("rbuf",(O*1E3).toFixed().toString());this.qP&&this.SL.set("smb","1");this.policy.vV&&u&&this.SL.set("pot",u);M&&this.SL.set("bbs",M);this.policy.useUmp&&!xt(this.SL.b5)&&(this.MB=new nD(this),this.SL.set("ump","1"),this.SL.set("srfvp","1"));if(W=this.policy.No?this.policy.sJ&&!isNaN(this.info.Cs)&&this.info.Cs>this.policy.o8?!1:!0:!1)Y=null,this.policy.R9&& this.policy.YJ?Y=[1]:G&&(Y=[]),Y!=null&&(this.policy.RW&&Y.push(2),this.SL.set("defsel",Y.join(",")));this.Yq=new sz(this,this.policy,this.SL,this.info.ob,this.timing,this.logger,P,Z);this.sF=h||null;this.iG=yHv(this);hh1(this.Yq);P=void 0;if(this.policy.TL||this.MB||this.policy.OP)P={method:"POST"},h=(0,g.om)([120,0]),Z={},this.policy.PQ&&X&&(X=e1(void 0,X),Z.HB=X),this.policy.bK&&this.I3&&(Z.videoPlaybackUstreamerConfig=this.I3),this.policy.OP&&(X=this.info.T)&&Object.assign(Z,X),Object.keys(Z).length> 0?P.body=g.bl(Z,g.dw):P.body=h;if(this.Z9&&this.I3){this.SL.set("iwts","1");P={method:"POST"};X={Ko:this.Z9*1E3};var d;h=(d=this.info.T)==null?void 0:d.h7;d=g.bl({a5:X,h7:h||void 0,videoPlaybackUstreamerConfig:this.I3},g.dw);P.body=d}try{this.xhr=KD(this.SL,this.policy.G,this.timing,W,P),this.Yq.K.start(),I&&(this.MH=new g.C_(this.Wj,I,this),this.MH.start(I+(this.timing.Sj.L.le()||0)*1E3)),this.policy.Fv&&to(this.timing,this.OV()),this.logger.debug(function(){return"Sent, itag="+J.SL.get("itag")+ " seg="+J.info.EP[0].t5+" range="+J.SL.get("range")+" time="+Math.round(J.info.EP[0].C)+"-"+Math.round(g.iQ(J.info.EP).X)+" rtp="+(J.timing.ZW()-Date.now()).toFixed(0)}),g.GR(function(){})}catch(A){eh6(this,A,!0)}}; yHv=function(W){if(!(Sq(W.info)&&W.info.YN()&&W.policy.fN&&W.sF)||W.info.ob.J>=2||iW()>0||!awV())return!1;var Y=W.SL.get("aitags");if(!Y)return!1;Y=rE(Y).split(",");for(var k=[],P=g.p(W.sF),T=P.next();!T.done;T=P.next())T=T.value,g.n$(Y,T)&&k.push(T);if(!k.length)return!1;W.SL.set("altitags",g.JQ(k.join(",")));return!0}; eh6=function(W,Y,k){k=k===void 0?!1:k;g.GH(Y);W.Yq.lastError="player.exception";W.errorMessage=Y.name+"_"+Y.message;k?g.GR(function(){zg(W.Yq)}):zg(W.Yq)}; obF=function(W,Y){W.timing.A5=!0;W.xhr.ZU()&&W.timing.CY();if(W.policy.LH){var k;(k=W.MH)==null||k.stop()}Jo(W.ue,Y,!1)}; vbq=function(W,Y){W.info=Y;if(W.ue){var k=W.ue;Y=Y.EP;(Y.length!==k.EP.length||Y.length0){Y=g.p(Y.EP);for(var k=Y.next();!k.done;k=Y.next()){var P=void 0;W+=((P=k.value.range)==null?void 0:P.length)||0}return W}if(Y.BE.length>0)for(k=g.p(Y.BE),P=k.next();!P.done;P=k.next())W+=P.value.o5||0;return W+Y.KE}; xJ=function(W,Y){if(l5){var k=0;W=W.jj.get(Y);if(W==null||!W.j5)return 0;W=g.p(W.j5.values());for(Y=W.next();!Y.done;Y=W.next())k+=Y.value.data.totalLength;return k}return((k=W.jj.get(Y))==null?void 0:k.bD.totalLength)||0}; fD=function(W,Y){W=W.jj.get(Y);if(l5){if(W==null||!W.Uc)return!1;Y=W.j5.size>0;return W.g7.length>0||Y}return!(W==null||!W.Uc)&&!(W==null||!W.bD.totalLength)}; cH0=function(W,Y){var k=W.jj.get(Y),P=bbd(W,Y),T=!P&&!!k.bytesReceived;if(l5){var I;if((I=W.H6)==null?0:I.t9){W=g.p(k.j5.values());for(Y=W.next();!Y.done;Y=W.next())if(!Y.value.rq)return!1;return T}}else if(I=W.k5(Y),T&&W.W&&I!==void 0)return I;return(T||k.bytesReceived===P)&&k.P$+xJ(W,Y)===k.bytesReceived}; xiS=function(W,Y,k){W.jj.set(Y,{bD:new $S,P$:0,bytesReceived:0,KE:0,VI:!1,Lu:!1,k5:!1,xH:k,u9:[],EP:[],BE:[],Uc:!1,j5:new Map,s9:new Map,g7:[]});W.logger.debug(function(){return"[initStream] formatId: "+Y})}; fN5=function(W,Y,k,P){k.EP.push.apply(k.EP,g.ZX(P));if(l5){k.s9.has(Y)||k.s9.set(Y,[]);var T;(T=k.s9.get(Y)).push.apply(T,g.ZX(P))}else if(k.ue)for(W=g.p(P),Y=W.next();!Y.done;Y=W.next())k.ue.EP.push(Y.value);else{k.ue=new Ez(W.l7,[].concat(g.ZX(k.EP)));var I;((I=W.l7)==null?0:I.ww)&&g.v(W,k.ue)}}; V$0=function(W,Y,k){var P,T=(P=W.H6)==null?void 0:P.J.get(Y);if(!T)return[];if(k.Ry){var I;return((I=T.tR(0,k.clipId))==null?void 0:I.EP)||[]}if(T.xk()){var X=k.startMs,h=k.durationMs;P=1E3;var B;if(((B=W.l7)==null?0:B.W)&&k.timeRange){var O;X=(O=k.timeRange.startTicks)!=null?O:-1;var u;h=(u=k.timeRange.Wd)!=null?u:-1;var Z;P=(Z=k.timeRange.timescale)!=null?Z:-1}if(k.HX<0||k.e5<0||h<0||X<0||k.o5<0||P<0)return cS(W,Y),[];W=Ni(k.HX,k.o5);Y=k.Tt||0;return[new W_(3,T,W,"makeSliceInfosMediaBytes",k.e5- 1,X/P,h/P,Y,W.length-Y,void 0,k.lY,k.clipId)]}if(k.e5<0)return cS(W,Y),[];var M;return((M=W.H6)==null?0:M.t9)?(Y=T.Lh,B=Y*T.info.c6,O=k.Tt,((h=W.l7)==null?0:h.Zi)&&k.timeRange&&!O&&(X=k.timeRange.startTicks/k.timeRange.timescale),[new W_(3,T,void 0,"makeSliceInfosMediaBytes",k.e5,X,Y,O,B,!0,k.lY,k.clipId)]):[]}; Nfq=function(W,Y,k){W.H6=Y;W.l7=k;Y=g.p(W.jj);for(k=Y.next();!k.done;k=Y.next()){var P=g.p(k.value);k=P.next().value;P=P.next().value;for(var T=g.p(P.u9),I=T.next();!I.done;I=T.next()){I=I.value;var X=V$0(W,k,I);fN5(W,I.hE,P,X)}}}; Vt=function(W,Y,k,P){W.logger.debug(function(){return"[addStreamData] formatId: "+k+",headerId: "+Y+" bytes: "+P.totalLength}); (W=W.jj.get(k))&&!W.Lu&&(l5?(W.j5.has(Y)||W.j5.set(Y,{data:new $S,Sz:0,rq:!1}),kS(W.j5.get(Y).data,P)):kS(W.bD,P),W.bytesReceived+=P.totalLength,W.VI=!0)}; b5=function(W,Y){W.logger.debug(function(){return"[closeStream] formatId: "+Y}); var k=W.jj.get(Y);if(k&&!k.Lu){k.Lu=!0;if(k.onProgress)k.onProgress();aNd(W)&&W.T.tK()}}; aNd=function(W){W=g.p(W.jj.values());for(var Y=W.next();!Y.done;Y=W.next())if(!Y.value.Lu)return!1;return!0}; Wz1=function(W){l5=W}; NX=function(W,Y,k,P,T,I,X){g.e.call(this);this.policy=W;this.info=Y;this.H6=k;this.wx=T;this.logger=new g.H_("sabr");this.MB=new nD(this);this.y4=new LD(this);this.zj=new Uz(this);this.state=1;this.Wt=!1;this.zI=0;this.clipId="";this.bv=-1;this.rB=0;this.qC=-1;this.qU=this.cA=this.Cb=!1;this.policy.Tf?this.Wz=new vS(this,I):this.Wz=new qX(this,I);this.SL=this.policy.Gn?Y.xU:YWd(Y,this.policy,P);this.SL.set("rn",""+this.H4());this.SL.set("alr","yes");Nfq(this.zj,k,W);this.Yq=new sz(this,this.policy, this.SL,Y.ob,this.Wz,this.logger,P,X,this.policy.enableServerDrivenRequestCancellation);hh1(this.Yq);var h;if((h=this.policy)==null?0:h.ww)g.v(this,this.zj),g.v(this,this.Yq);W=Y.K;Y={method:"POST",body:W};W&&(this.rB=W.length);try{this.xhr=KD(this.SL,this.policy.G,this.Wz,qG,Y),this.policy.Fv&&to(this.Wz,this.OV()),this.Yq.K.start()}catch(B){g.Kx(B)}}; $N0=function(W){W.policy.CX&&W.GP&&!W.qU?W.qU=!0:W.Wz.CY()}; k86=function(W,Y){var k=-1,P=-1,T=-1,I;if((I=W.MO)==null?0:I.items)for(W=g.p(W.MO.items),I=W.next();!I.done;I=W.next())I=I.value,Y=h,B=W.H6.isManifestless,X){var O;if(((O=W.W)==null?void 0:O.w5.event)==="predictStart"&&W.W.t5W.X&&(W.X=NaN,W.G=NaN);W.W&&W.W.t5===Y?RLC(W,Y,k,W.W,T):W.K===1&&$R(W,5,"noad")}; Hr0=function(W,Y,k,P,T){P.qH?$R(W,4,"cue"):(W.X=Y,W.G=k,W.y5("sdai",{joinad:W.K,sg:W.X,st:W.G.toFixed(3)}),W.N=Date.now(),$R(W,2,W.K===3?"staftpred":"join"),T.Nu(P.w5))}; RLC=function(W,Y,k,P,T){if(T&&P){var I=P.w5,X=T.SF(I);I.event==="predictStart"&&(W.Kg=Y);W.y5("sdai",{onqevt:I.event,sq:Y,mt:k,gab:X,cst:I.startSecs,cueid:W.policy.LB&&(X||I.event==="start")?I.identifier:void 0},!0);if(X)I.event!=="predictStart"?(I.event==="start"&&W.Kg===Y-1&&W.y5("sdai",{gabonstart:Y}),Hr0(W,Y,k,P,T)):W.policy.vk?$R(W,3,"predict"):(Y+=Math.max(Math.ceil(-I.W/5E3),1),I=Math.floor(k-I.W/1E3),W.policy.K?W.C=I:W.T=Y,W.y5("sdai",{onpred:k,estsq:Y,estmt:I.toFixed(3)}),kR(W.loader,I,I, Y),W.N=Date.now(),$R(W,3,"predict"),T.Nu(P.w5));else if(W.K===1){var h;((h=W.J)==null?0:h.Qd(k))?(kR(W.loader,k,k,Y),$R(W,4,"sk2head")):$R(W,5,"nogab")}else I.event==="predictStart"?W.policy.K&&W.C>0?(k=Math.floor(k-I.W/1E3),W.C!==k&&W.y5("sdai",{updateSt:k,old:W.C}),W.C=k):W.T>0&&(k=Y+Math.max(Math.ceil(-I.W/5E3),1),W.T!==k&&(W.y5("sdai",{updateSt:k,old:W.T}),W.T=k)):W.policy.vk&&W.K===3&&Hr0(W,Y,k,P,T)}else W.y5("sdai",{nulldec:1,sq:Y,mt:k.toFixed(3),evt:(P==null?void 0:(I=P.w5)==null?void 0:I.event)|| "none"})}; p_v=function(W,Y,k){if(W.policy.Xo&&W.policy.K)return!(W.K===1||W.K===2||!W.policy.vk&&W.K===3&&k>=W.T);if(W.K===1||W.K===2)return!1;if(W.K!==0&&Y===W.audioTrack){if(W.policy.K)return n7V(W.videoTrack,k)||n7V(W.videoTrack,k+1);W=PG(W.videoTrack);if(k>(W?W.t5:-1))return!1}return!0}; Ti=function(W,Y,k){return(k<0||k===W.X)&&!isNaN(W.G)?W.G:Y}; irz=function(W,Y){if(W.W){var k=W.W.w5.sV-(Y.startTime+W.L-W.W.w5.startSecs);k<=0||(k=new S$(W.W.w5.startSecs-(isNaN(W.L)?0:W.L),k,W.W.w5.context,W.W.w5.identifier,"stop",W.W.w5.W+Y.duration*1E3),W.y5("cuepointdiscontinuity",{segNum:Y.t5}),YR(W,k,Y.t5))}}; $R=function(W,Y,k){W.K!==Y&&(W.y5("sdai",{setsst:Y,old:W.K,r:k}),W.K=Y)}; jI=function(W,Y,k,P){(P===void 0?0:P)?$R(W,1,"seek"):Y>0&&Math.abs(Y-k)>=5&&W.K===4&&$R(W,5,"sk2t")}; G87=function(W,Y){this.J=W;this.y5=Y;this.W="";this.K=new Map}; Kzd=function(W,Y,k,P,T){if(W.K.has(Y.identifier)){var I=W.K.get(Y.identifier);P>I.Xt&&(I.startTimeSecs=Y.startSecs,I.sV=Y.sV,I.event==="predictStart"&&I.p7===5&&Y.event!=="predictStart"&&(I.G7=Date.now()),I.event=Y.event)}else I={event:Y.event,startTimeSecs:Y.startSecs,sV:Y.sV,mp:[],Xt:P,p7:0},W.K.set(Y.identifier,I);T&&I.p7===0&&(T.SF(Y)?I.p7=5:(I.p7=2,I.c_=""),I.G7=Date.now(),I.Xt=P);P>I.Xt&&(T==null||T.SF(Y),I.Xt=P);W.T&&k>-1&&k1E4?(W.p7=1,!1):!0:!1}; sOS=function(W){switch(W){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Io=function(W,Y,k){this.audio=W;this.video=Y;this.reason=k}; Xh=function(W,Y,k){this.W=W;this.reason=Y;this.token=k;this.videoId=void 0}; SI=function(W,Y,k){g.e.call(this);this.policy=W;this.T=Y;this.y5=k;this.J=new Map;this.C=0;this.X=!1;this.W="";this.K=!1}; hk=function(W,Y,k){if(k===void 0?0:k)W.X=!0;++W.C;k=6E4*Math.pow(2,W.C);k=(0,g.q5)()+k;W.J.set(Y.info.id,k)}; BG=function(W){for(var Y=g.p(W.J.entries()),k=Y.next();!k.done;k=Y.next()){var P=g.p(k.value);k=P.next().value;P=P.next().value;P<(0,g.q5)()&&W.J.delete(k)}return W.J}; rtz=function(W){return W.X&&BG(W).size>0}; Ot=function(W,Y){W.W!==Y&&(W.W=Y,W.K=!0)}; AtS=function(W,Y){var k;Y&&(k=g.qc(W.T.W,function(T){return T.id===Y})); if(!k&&(k=g.qc(W.T.W,function(T){var I;return!((I=T.Ib)==null||!I.isDefault)}),Y)){var P; W.y5("iaf",{id:Y,sid:(P=k)==null?void 0:P.id})}return k}; ZC=function(W,Y,k,P,T,I){var X=this;I=I===void 0?[]:I;this.loader=W;this.wD=Y;this.policy=k;this.H6=P;this.X=T;this.bz=I;this.logger=new g.H_("dash/abr");this.W=Ms;this.J=this.G=null;this.N=-1;this.UP=!1;this.nextVideo=this.K=null;this.T=[];this.GJ=new Set;this.OP={};this.Q5=new Qh(1);this.L=0;this.V5=this.Kg=this.A5=!1;this.gD=0;this.rD=!1;this.TJ=new Set;this.Fr=!1;this.zW={vt:function(){uX(X)}}; this.C=new SI(this.policy,T,function(h,B){X.loader.y5(h,B)})}; g7F=function(W,Y,k){iX(W,Y);Y=AtS(W.C,k);k||Y||(Y=zLd(W));Y=Y||W.X.W[0];W.K=W.H6.W[Y.id];uX(W);W.G=W.K;dN7(W);mNv(W);W.J=W.nextVideo;W.G=W.K;return DNX(W)}; QOF=function(W,Y){if(Fzv(W,Y))return null;if(Y.reason==="m"&&Y.isLocked())return W.logger.debug(function(){return"User sets constraint to: "+mx(Y)}),iX(W,Y),W.L=W.T.length-1,uX(W),Mw(W),W.Kg=W.Kg||W.J!==W.nextVideo,W.J=W.nextVideo,new Io(W.K,W.J,Y.reason); Y.reason==="r"&&(W.N=-1);iX(W,Y);Mw(W);if(Y.reason==="r"&&W.nextVideo===W.J)return new Io(W.K,W.nextVideo,Y.reason);w_S(W);return null}; yt7=function(W,Y,k){W.K=W.H6.W[Y];W.G=W.K;return new Io(W.G,W.J,k?"t":"m")}; eL7=function(W,Y){if(Y.info.video){if(W.J!==Y)return W.J=Y,DNX(W)}else W.V5=W.G!==Y,W.G=Y;return null}; o77=function(W,Y){if(Y.W.info.video&&Y.T){var k=(Y.K+Y.J)/Y.duration,P=Y.W.info.c6;k&&P&&(W.Q5.NL(1,k/P),W.policy.J&&k/P>1.5&&W.loader.y5("overshoot",{sq:Y.t5,br:k,max:P}))}}; tk=function(W,Y,k){hk(W.C,Y,k===void 0?!1:k);W.N=-1;iX(W,W.W)}; v7z=function(W,Y){return new Io(W.G,W.J,Y||W.W.reason)}; w_S=function(W){if(W.J&&W.nextVideo&&qw(W,W.J.info)W.policy.nh,h=T<=W.policy.nh?Ul(P):vT(P);if(!I||X||h)k[T]=P}return k}; iX=function(W,Y){W.W=Y;var k=W.X.videoInfos;if(!W.W.isLocked()){var P=(0,g.q5)();k=g.Eo(k,function(h){if(h.c6>this.policy.c6)return!1;var B=this.H6.W[h.id];return BG(this.C).get(h.id)>P?!1:B.ob.J>4||B.X>4?(this.logger.debug(function(){return"Remove "+$B(h)+"; 4 load failures"}),!1):this.TJ.has(+h.itag)?!1:!0},W); rtz(W.C)&&(k=g.Eo(k,function(h){return h.video.width<=854&&h.video.height<=480}))}k.length||(k=W.X.videoInfos); var T=k;W.policy.l3&&(T=Lz6(W,T,Y));T=g.Eo(T,Y.T,Y);if(W.W.isLocked()&&W.C.W){var I=g.qc(k,function(h){return h.id===W.C.W}); I?T=[I]:Ot(W.C,"")}W.policy.l3||(T=Lz6(W,T,Y));T.length||(T=[k[0]]);T.sort(function(h,B){return qw(W,h)-qw(W,B)}); Y={};for(k=1;kY.Dy.video.width?(g.p$(T,k),k--):qw(W,Y.uq)*W.policy.L>qw(W,Y.Dy)&&(g.p$(T,k-1),k--);var X=T[T.length-1];W.rD=!!W.J&&!!W.J.info&&W.J.info.lz!==X.lz;W.logger.debug(function(){return"Constraint: "+mx(W.W)+", "+T.length+" fmts selectable, max selectable fmt: "+$B(X)}); W.T=T;W.GJ.clear();Y=!1;for(k=0;k=1080&&(Y=!0);UN7(W.policy,X,W.H6.t9)}; Lz6=function(W,Y,k){var P=k.reason==="m"||k.reason==="s";W.policy.gS&&Ro&&g.hj&&(!P||k.W<1080)&&(Y=Y.filter(function(O){return O.video&&(!O.K||O.K.powerEfficient)})); if(Y.length>0)if(iY()){var T=Caz(W,Y);Y=Y.filter(function(O){return!!O&&!!O.video&&O.lz===T[O.video.qualityOrdinal].lz})}else{var I,X,h=(I=Y[0])==null?void 0:(X=I.video)==null?void 0:X.qualityOrdinal; if(h){k=Y.filter(function(O){return!!O&&!!O.video&&O.video.qualityOrdinal===h}); var B=Caz(W,k)[h].lz;Y=Y.filter(function(O){return!!O&&!!O.video&&O.lz===B})}}return Y}; l20=function(W,Y){for(var k=0;k+1P}; uX=function(W){if(!W.K||!W.policy.T&&!W.K.info.Ib){var Y=W.X.W;W.K&&(Y=Y.filter(function(P){return P.audio.W===W.K.info.audio.W}),Y.length||(Y=W.X.W)); W.K=W.H6.W[Y[0].id];if(Y.length>1&&!W.policy.V5){if(!W.policy.B4){var k=g.qc(Y,function(P){return P.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); k&&(W.K=W.H6.W[k.id])}k=!1;if(k=W.policy.UV?!0:W.W.isLocked()?W.W.W<240:l20(W,W.K))W.K=W.H6.W[g.iQ(Y).id]}}}; Mw=function(W){if(!W.nextVideo||!W.policy.T)if(W.W.isLocked())W.nextVideo=W.W.W<=360?W.H6.W[W.T[0].id]:W.H6.W[g.iQ(W.T).id],W.logger.debug(function(){return"Select max fmt: "+$B(W.nextVideo.info)}); else{for(var Y=Math.min(W.L,W.T.length-1),k=YJ(W.wD),P=qw(W,W.K.info),T=k/W.policy.Kg-P;Y>0&&!(qw(W,W.T[Y])<=T);Y--);for(var I=k/W.policy.L-P;Y=I);Y++);W.nextVideo=W.H6.W[W.T[Y].id];W.L!==Y&&W.logger.info(function(){return"Adapt to: "+$B(W.nextVideo.info)+", bandwidth: "+k.toFixed(0)+", bandwidth to downgrade: "+T.toFixed(0)+", bandwidth to upgrade: "+I.toFixed(0)+", constraint: "+mx(W.W)}); W.L=Y}}; dN7=function(W){var Y=W.policy.Kg,k=YJ(W.wD),P=k/Y-qw(W,W.K.info);Y=g.Rj(W.T,function(T){return qw(this,T)I?T=0:P[X]>W.buffered[X]&&(X===I-1?T=2:X===I-2&&P[X+1]>W.buffered[X+1]&&(T=3))}W.W.add(Y<<3|(k&&4)|T);Y=Math.ceil(W.track.XZ()*1E3);W.W.add(Y-W.C);W.C=Y;if(T===1)for(W.W.add(I),X=Y=0;X=2&&W.W.add(P[I- 1]-W.buffered[I-1]);k&&W.W.add(k);W.buffered=P}; p8=function(W,Y,k){var P=this;this.policy=W;this.W=Y;this.gD=k;this.T=this.K=0;this.Ma=null;this.A5=new Set;this.N=[];this.indexRange=this.initRange=null;this.L=new KY;this.Kg=this.wD=!1;this.zW={Ktz:function(){return P.J}, qIP:function(){return P.chunkSize}, U86:function(){return P.G}, YI2:function(){return P.X}}; (Y=VqS(this))?(this.chunkSize=Y.csz,this.J=Math.floor(Y.clen/Y.csz),this.G=Y.ck,this.X=Y.civ):(this.chunkSize=W.Ki,this.J=0,this.G=g.OY(16),this.X=g.OY(16));this.C=new Uint8Array(this.chunkSize);this.G&&this.X&&(this.crypto=new PUq(this.G,this.X))}; VqS=function(W){if(W.policy.k7&&W.policy.vQ)for(var Y=g.p(W.policy.k7),k=Y.next(),P={};!k.done;P={Kd:void 0,Of:void 0},k=Y.next())if(k=g.fI(k.value),P.Kd=+k.clen,P.Of=+k.csz,P.Kd>0&&P.Of>0&&W.policy.T===k.docid&&W.W.info.id===k.fmtid&&W.W.info.lastModified===+k.lmt)return W={},W.clen=P.Kd,W.csz=P.Of,W.ck=k.ck,W.civ=k.civ,W}; Gi=function(W){return!!W.Ma&&W.Ma.IB()}; WMd=function(W,Y){if(!Gi(W)&&!W.Xr()){if(!(W.wD||(W.wD=!0,W.J>0))){var k=K8(W);k=I4(W.policy.T,W.W.info,Et(W),k,W.policy.e1);Jk(W,k)}if(Y.info.type===1){if(W.Ma){rc(W,Error("Woffle: Expect INIT slices to always start us off"));return}W.initRange=Ni(0,Y.K.totalLength)}else if(Y.info.type===2)W.Ma&&W.Ma.type===1||rc(W,Error("Woffle: Index before init")),W.indexRange=Ni(W.initRange.end+1,Y.K.totalLength);else if(Y.info.type===3){if(!W.Ma){rc(W,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(W.Ma.type===3&&!k7(W.Ma,Y.info)&&(W.N=[],Y.info.t5!==P_(W.Ma)||Y.info.K!==0))return;if(Y.info.T){k=g.p(W.N);for(var P=k.next();!P.done;P=k.next())Nzv(W,P.value);W.N=[]}else{W.N.push(Y);W.Ma=Y.info;return}}else{rc(W,Error("Woffle: Unexpected slice type"));return}W.Ma=Y.info;Nzv(W,Y);a25(W)}}; Nzv=function(W,Y){var k=0,P=IC(Y.K);if(W.T=P.length)return;if(k<0)throw Error("Missing data");W.T=W.J;W.K=0}for(T={};k0){var X=P.getUint32(k+28);I+=X*16+4}var h=P.getUint32(k+I-4);try{var B=T37(Y.subarray(k+I,k+I+h));if(B!==null){var O=B;break a}}catch(u){}}k+=T}O=null;break a}catch(u){O=null;break a}O=void 0}if(O!=null)for(Y=tC(Nv(O,7,void 0,dl)),Y==null||W.pN||(W.cryptoPeriodIndex=Y),Y=tC(Nv(O,10,void 0,dl)),Y!=null&&Y>0&& !W.pN&&(W.W=Y),O=T3(O,2,rQz,void 0===mL5?2:4),O=g.p(O),P=O.next();!P.done;P=O.next())Y=W.J,k=Y.push,P=gZ(P.value),P=g.Jx(P,4),k.call(Y,P)}; Iz1=function(W){return isNaN(W.cryptoPeriodIndex)?g.Jx(W.initData):""+W.cryptoPeriodIndex}; dc=function(W,Y,k){var P=k===void 0?{}:k;k=P.videoDuration===void 0?0:P.videoDuration;var T=P.Fh===void 0?void 0:P.Fh;P=P.Au===void 0?!1:P.Au;this.videoId=W;this.status=Y;this.videoDuration=k;this.Fh=T;this.Au=P}; Xq5=function(W,Y,k,P,T){this.videoId=W;this.yA=Y;this.K=k;this.bytesDownloaded=P;this.W=T}; mJ=function(W){this.W=W;this.offset=0}; DC=function(W){if(W.offset>=W.W.totalLength)throw Error();return SB(W.W,W.offset++)}; SCz=function(W,Y){Y=Y===void 0?!1:Y;var k=DC(W);if(k===1){Y=-1;for(k=0;k<7;k++){var P=DC(W);Y===-1&&P!==255&&(Y=0);Y>-1&&(Y=Y*256+P)}return Y}P=128;for(var T=0;T<6&&P>k;T++)k=k*256+DC(W),P*=128;return Y?k:k-P}; hJC=function(W){try{var Y=SCz(W,!0),k=SCz(W,!1);return{id:Y,size:k}}catch(P){return{id:-1,size:-1}}}; B3F=function(W){for(var Y=new mJ(W),k=-1,P=0,T=0;!P||!T;){var I=hJC(Y),X=I.id;I=I.size;if(X<0)return;if(X===176){if(I!==2)return;P=Y.X7()}else if(X===186){if(I!==2)return;T=Y.X7()}X===374648427?k=Y.X7()+I:X!==408125543&&X!==174&&X!==224&&Y.skip(I)}Y=XY(W,0,k);k=new DataView(Y.buffer);k.setUint16(P,3840);k.setUint16(T,2160);P=new $S([Y]);kS(P,W);return P}; OA0=function(W,Y,k){var P=this;this.loader=W;this.policy=Y;this.C=k;this.logger=new g.H_("dash");this.K=[];this.W=null;this.wD=-1;this.N=0;this.TJ=NaN;this.A5=0;this.J=NaN;this.L=this.UP=0;this.rD=-1;this.OP=this.T=this.X=this.gD=null;this.Q5=this.V5=NaN;this.G=this.Kg=this.GJ=this.bz=null;this.e1=!1;this.Fr=this.timestampOffset=0;this.zW={CQ:function(){return P.K}}; if(this.policy.T){var T=this.C,I=this.policy.T;this.policy.e1&&W.y5("atv",{ap:this.policy.e1});this.G=new p8(this.policy,T,function(X,h,B){Fh(W,new dc(P.policy.T,2,{Fh:new Xq5(I,X,T.info,h,B)}))}); this.G.L.promise.then(function(X){P.G=null;X===1?Fh(W,new dc(P.policy.T,X)):P.loader.y5("offlineerr",{status:X.toString()})},function(X){var h=(X.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); X instanceof Ak&&!X.W?(P.logger.info(function(){return"Assertion failed: "+h}),P.loader.y5("offlinenwerr",{em:h}),wc(P),Fh(W,new dc(P.policy.T,4))):(P.logger.info(function(){return"Failed to write to disk: "+h}),P.loader.y5("dldbwerr",{em:h}),wc(P),Fh(W,new dc(P.policy.T,4,{Au:!0})))})}}; uBq=function(W){return W.K.length?W.K[0]:null}; ZA7=function(W,Y){return W.K.some(function(k){return k.info.t5===Y})}; RJd=function(W,Y,k,P){P=P===void 0?0:P;if(W.T){var T=W.T.K+W.T.J;if(k.info.K>0)if(k.info.t5===W.T.t5&&k.info.K=0&&W.T.t5>=0&&!k7(W.T,k.info))throw new g.Qq("improper_continuation",W.T.TW(),k.info.TW());ql7(W.T,k.info)||Qs(W,"d")}else if(k.info.K>0)throw new g.Qq("continuation_of_null",k.info.TW());W.T=k.info;W.C=k.info.W;if(k.info.K===0){if(W.W)if(!W.loader.isOffline()||W.policy.v4)W.loader.y5("slice_not_fully_processed", {buffered:W.W.info.TW(),push:k.info.TW()});else throw new g.Qq("slice_not_fully_processed",W.W.info.TW(),k.info.TW());ys(W);W.UP=P}else{if(W.UP&&P&&W.UP!==P)throw W=new g.Qq("lmt_mismatch",k.info.t5,W.UP,P),W.level="WARNING",W;!k.info.W.xk()&&W.X&&(P=k.info,T=W.X.bv,P.G="updateWithEmsg",P.t5=T)}if(W.W){P=g.Kr(W.W,k);if(!P)throw new g.Qq("failed_to_merge",W.W.info.TW(),k.info.TW());W.W=P}else W.W=k;a:{k=g.cT(W.W.info.W.info);if(W.W.info.type!==3){if(!W.W.info.T)break a;W.W.info.type===6?iA2(W,Y,W.W): MN6(W,W.W);W.W=null}for(;W.W;){P=W.W.K.totalLength;if(W.wD<=0&&W.N===0){var I=W.W.K,X=-1;T=-1;if(k){for(var h=0;h+80))break;if(Z!==408125543)if(Z===524531317)h=!0,u>=0&&(T=I.X7()+u,B=!0);else{if(h&&(Z===160||Z===163)&&(X<0&&(X=O),B))break;Z===163&&(X=Math.max(0,X),T=I.X7()+u);if(Z===160){X<0&&(T=X=I.X7()+ u);break}I.skip(u)}}X<0&&(T=-1)}if(X<0)break;W.wD=X;W.N=T-X}if(W.wD>P)break;W.wD?(P=tN0(W,W.wD),P.C&&qCv(W,P),iA2(W,Y,P),eI(W,P),W.wD=0):W.N&&(P=tN0(W,W.N<0?Infinity:W.N),W.N-=P.K.totalLength,eI(W,P))}}W.W&&W.W.info.T&&(eI(W,W.W),W.W=null)}; MN6=function(W,Y){!Y.info.W.xk()&&Y.info.K===0&&(g.cT(Y.info.W.info)||Y.info.W.info.pN())&&WWv(Y);if(Y.info.type===1)try{qCv(W,Y),HAC(W,Y)}catch(T){g.GH(T);var k=T8(Y.info);k.hms="1";W.loader.handleError("fmt.unparseable",k||{},1)}k=Y.info.W;k.Mj(Y);W.G&&WMd(W.G,Y);if(k.sE()&&W.policy.W)a:{W=W.loader.H6;Y=Y.info.clipId;k=g.VR(k.info,W.t9);if(Y){var P=cR({itag:k.itag,lmt:W.t9?0:k.lmt||0,xtags:k.xtags});if(W.Q5[P])break a;W.Q5[P]=Y}W.rD.push(k)}}; Lx6=function(W,Y,k){if(W.K.length!==0&&(k||W.K.some(function(I){return I.info.C=vG(X)+h):Y=W.getDuration()>=X.getDuration(),Y=!Y;Y&&GYX(k)&&(Y=W.gD,oo?(h=Nw0(k),X=1/h,h=vG(W,h),Y=vG(Y)+X-h):Y=Y.getDuration()- W.getDuration(),Y=1+Y/k.info.duration,xU0(g.G8(k),Y))}else{X=!1;W.X||(WWv(k),k.W&&(W.X=k.W,X=!0,T=k.info,I=k.W.bv,T.G="updateWithEmsg",T.t5=I,T=k.W,T.IB&&(I=W.C.index,I.K=!T.IB,I.J="emsg"),T=k.info.W.info,I=g.G8(k),g.cT(T)?nb(I,1701671783):T.pN()&&AH([408125543],307544935,I)));a:if((T=sW(k,W.policy.KH))&&afC(k))h=KM2(W,k),W.L+=h,T-=h,W.A5+=T,W.J=W.policy.Pu?W.J+T:NaN;else{if(W.policy.tp){if(I=B=W.loader.ul(g.EW(k),1),W.J>=0&&k.info.type!==6){if(W.policy.Pu&&isNaN(W.V5)){g.Kx(new g.Qq("Missing duration while processing previous chunk", k.info.TW()));W.loader.isOffline()&&!W.policy.v4||EO7(W,k,I);Qs(W,"m");break a}P=B-W.J;var O=P-W.L,u=k.info.t5,Z=W.OP?W.OP.t5:-1,M=W.Q5,t=W.V5,q=W.policy.c9&&P>W.policy.c9,G=Math.abs(O)>10,J=Math.abs(W.J-I)<1E-7;if(Math.abs(O)>1E-4){W.Fr+=1;var d=(h=W.X)==null?void 0:LNd(h);h={audio:""+ +W.xH(),sq:u.toFixed(),sliceStart:B,lastSq:Z.toFixed(),lastSliceStart:M,lastSliceDuration:t,totalDrift:(P*1E3).toFixed(),segDrift:(O*1E3).toFixed(),skipRewrite:""+ +(q||G)};if(d==null?0:d.length)h.adCpn=d[0];W.loader.handleError("qoe.avsync", h);W.rD=u}q||G||J||(I=W.J);h=KM2(W,k,B);T-=h;W.L=P+h}}else I=isNaN(W.J)?k.info.startTime:W.J;EO7(W,k,I)&&(W.A5+=T,W.J=I+T,W.policy.eI&&W.Fr>=W.policy.eI&&(W.Fr=0,W.loader.yg({resetForRewrites:"count"})))}W.OP=k.info;W.V5=Jt(k);k.J>=0&&(W.Q5=k.J);if(X&&W.X){X=JnV(W,!0);jq(k.info,X);W.W&&jq(W.W.info,X);Y=g.p(Y);for(h=Y.next();!h.done;h=Y.next())h=h.value,T=void 0,W.policy.C&&h.t5!==((T=W.X)==null?void 0:T.bv)||jq(h,X);(k.info.T||W.W&&W.W.info.T)&&k.info.type!==6||(W.Kg=X,W.policy.K?(Y=sP5(W.X),W.loader.Xf(W.C, X,Y)):(Y=W.loader,Y.H6.isManifestless&&rn2(Y,X,null,!!W.C.info.video)),W.policy.i_||An0(W))}}HAC(W,k);W.timestampOffset&&ffz(k,W.timestampOffset)}; eI=function(W,Y){if(Y.info.T){W.bz=Y.info;if(W.X){var k=W.X,P=JnV(W,!1);k=sP5(k);W.loader.Xf(W.C,P,k);W.Kg||W.policy.i_||An0(W);W.Kg=null}ys(W)}W.G&&WMd(W.G,Y);if(P=W.nI())if(P=g.Kr(P,Y,W.policy.Yw,W.policy.rV)){W.K.pop();W.K.push(P);return}W.K.push(Y)}; sP5=function(W){if(W.qH()){var Y=W.data["Stitched-Video-Id"]?W.data["Stitched-Video-Id"].split(",").slice(0,-1):[],k=LNd(W),P=[];if(W.data["Stitched-Video-Duration-Us"])for(var T=g.p(W.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),I=T.next();!I.done;I=T.next())P.push((Number(I.value)||0)/1E6);T=[];if(W.data["Stitched-Video-Start-Frame-Index"]){I=g.p(W.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var X=I.next();!X.done;X=I.next())T.push(Number(X.value)||0)}T=[]; if(W.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(I=g.p(W.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),X=I.next();!X.done;X=I.next())T.push((Number(X.value)||0)/1E6);W=new PgF(Y,k,P,T,g.UU1(W),g.ld1(W))}else W=null;return W}; ys=function(W){W.W=null;W.wD=-1;W.N=0;W.X=null;W.TJ=NaN;W.A5=0;W.Kg=null}; Qs=function(W,Y){Y={rst4disc:Y,cd:W.L.toFixed(3),sq:W.OP?W.OP.t5:-1};W.J=NaN;W.L=0;W.rD=-1;W.OP=null;W.Q5=NaN;W.V5=NaN;W.GJ=null;W.loader.y5("mdstm",Y)}; HAC=function(W,Y){if(W.isDrm()){if(Y.info.W.info.pN()){var k=new GD(g.G8(Y));if(Ey(k,[408125543,374648427,174,28032,25152,20533,18402])){var P=rf(k,!0);k=P!==16?null:DN(k,P)}else k=null;P="webm"}else Y.info.N=$GX(g.G8(Y)),k=kY0(Y.info.N),P="cenc";k&&k.length&&(k=new zi(k,P),W.policy.mA&&g.cT(Y.info.W.info)&&(P=Yl2(g.G8(Y)))&&(k.K=P),k.pN=Y.info.W.info.pN(),Y.W&&Y.W.cryptoPeriodIndex&&(k.cryptoPeriodIndex=Y.W.cryptoPeriodIndex),Y.W&&Y.W.K&&(k.W=Y.W.K),W.loader.j7(k))}}; An0=function(W){var Y=W.X,k=vyS(Y);k&&(k.startSecs+=W.TJ,W.loader.Kw(W.C,k,Y.bv,Y.qH()))}; JnV=function(W,Y){var k,P=W.X;if(k=vyS(P))k.startSecs+=W.TJ;return new ac(P.bv,W.TJ,Y?P.Lh:W.A5,P.ingestionTime,"sq/"+P.bv,void 0,void 0,Y,k)}; EO7=function(W,Y,k){if(!xn0(Y,k))return Y=T8(Y.info),Y.smst="1",W.loader.handleError("fmt.unparseable",Y||{},1),!1;isNaN(W.TJ)&&(W.TJ=k);return!0}; KM2=function(W,Y,k){var P=0;if(Y.info.W.info.pN()&&!afC(Y))return 0;if(W.gD&&!W.xH()){var T=0;k&&g.cT(Y.info.W.info)?T=k-W.J:Y.info.W.info.pN()&&(T=W.L);var I=Y.info.t5;k=sW(Y,W.policy.KH);var X=W.gD;var h=X.rD;X=X.L;var B=Math.abs(X-T)>.02;if((I===h||I>h&&I>W.rD)&&B){P=Math.max(.95,Math.min(1.05,(k-(X-T))/k));if(g.cT(Y.info.W.info))xU0(g.G8(Y),P);else if(Y.info.W.info.pN()&&(I=T-X,!g.cT(Y.info.W.info)&&(Y.info.W.info.pN(),P=new GD(g.G8(Y)),h=Y.C?P:new GD(new DataView(Y.info.W.W.buffer)),sW(Y,!0)))){var O= I*1E3,u=Fc(h);h=P.pos;P.pos=0;if(P.W.getUint8(P.pos)===160||wf(P))if(sy(P,160))if(rf(P,!0),sy(P,155)){if(I=P.pos,B=rf(P,!0),P.pos=I,O=O*1E9/u,u=zD(P),O=u+Math.max(-u*.7,Math.min(u,O)),O=Math.sign(O)*Math.floor(Math.abs(O)),!(Math.ceil(Math.log(O)/Math.log(2)/8)>B)){P.pos=I+1;for(I=B-1;I>=0;I--)P.W.setUint8(P.pos+I,O&255),O>>>=8;P.pos=h}}else P.pos=h;else P.pos=h;else P.pos=h}P=sW(Y,W.policy.KH);P=k-P}P&&Y.info.W.info.pN()&&W.loader.y5("webmDurationAdjustment",{durationAdjustment:P,videoDrift:T+P, audioDrift:X})}return P}; GYX=function(W){return W.info.W.xk()&&W.info.t5===W.info.W.index.QU()}; vG=function(W,Y){Y=(Y=Y===void 0?0:Y)?Math.round(W.timestampOffset*Y)/Y:W.timestampOffset;W.C.T&&Y&&(Y+=W.C.T.W);return Y+W.getDuration()}; zJ1=function(W,Y){Y<0||(W.K.forEach(function(k){ffz(k,Y)}),W.timestampOffset=Y)}; Tg=function(W,Y,k,P,T){pD.call(this,k,T);var I=this;this.policy=W;this.formatId=Y;this.zj=P;this.lastError=null;this.onProgress=function(){I.Xr()||(I.zj.jj.has(I.formatId)?(I.isComplete()||I.W.start(),fD(I.zj,I.formatId)&&I.eY(2),I.zj.Lu(I.formatId)&&(cH0(I.zj,I.formatId)?I.ZY(4):(I.lastError="net.closed",I.ZY(5)))):(I.lastError="player.exception",I.ZY(5)))}; this.W=new g.C_(function(){I.isComplete()||(I.lastError="net.timeout",I.ZY(5))},1E3); this.W.start();Ui2(this.zj,this.formatId,this.onProgress);g.GR(this.onProgress)}; C8=function(W,Y,k,P){g.e.call(this);var T=this;this.loader=W;this.policy=Y;this.W=k;this.timing=P;this.logger=new g.H_("dash");this.J=[];this.gD=[];this.K=this.qT=null;this.GJ=!1;this.UP=this.Fr=0;this.X=-1;this.wD=!1;this.TJ=-1;this.OP=null;this.Kg=NaN;this.A5=[];this.zW={HT:function(){return T.T}, AUa:function(){return T.J}, OCS:function(){return T.L}}; this.T=new OA0(W,Y,k);this.policy.W&&(this.L=new kJ(this.T,this.loader.getManifest(),this.policy,function(I){T.policy.LI&&T.y5("buftl",I)})); this.policy.D_&&(this.N=new HG(this));this.c6=k.info.c6;this.G=this.policy.A5?!1:k.n0();this.isManifestless=k.n0();this.C=this.G;g.v(this,this.OP)}; L8=function(W,Y,k){k=k===void 0?!1:k;Y&&oo&&zJ1(W.T,Y.d9());if(!k){var P;(P=W.L)==null||eCz(P)}W.qT=Y;(Y=W.L)!=null&&(Y.qT=W.qT)}; Ut=function(W){var Y=W.qT&&W.qT.F3();if(W.policy.wX){if((W=W.L)==null)W=void 0;else{var k;W=(k=W.J)==null?void 0:k.info}return W||null}return Y}; dGC=function(W){for(var Y={},k=0;k4&&W.gD.shift()}; mGd=function(W,Y){if(Y.dX()){var k=Y.E3();k=g.p(k);for(var P=k.next();!P.done;P=k.next())P=P.value,W.policy.J&&Y instanceof Tg&&W.y5("omblss",{s:P.info.TW()}),bX(W,Y.info.EP,P,Y.DF())}}; bX=function(W,Y,k,P){P=P===void 0?0:P;isNaN(W.Kg)||(W.y5("aswm",{sq:Y[0].t5,id:Y[0].W.info.itag,xtag:Y[0].W.info.W,ep:Date.now()-W.Kg}),W.Kg=NaN);switch(k.info.type){case 1:case 2:DGV(W,k);break;case 4:var T=k.info.W,I=T.Jw(k),X;((X=W.K)==null?0:X.type===4)&&E10(k.info,W.K)&&(W.K=T.sY(W.K).pop());k=g.p(I);for(T=k.next();!T.done;T=k.next())bX(W,Y,T.value,P);break;case 3:k.info.W.info.video?(T=W.timing,T.TJ||(T.TJ=(0,g.q5)(),g.Wv("fvb_r",T.TJ,T.W))):(T=W.timing,T.X||(T.X=(0,g.q5)(),g.Wv("fab_r",T.X, T.W)));RJd(W.T,Y,k,P);W.policy.W&&gOd(W);break;case 6:RJd(W.T,Y,k,P),W.K=k.info}}; DGV=function(W,Y){if(Y.info.type===1)if(Y.info.W.info.video){var k=W.timing;k.UP||(k.UP=(0,g.q5)(),g.Wv("vis_r",k.UP,k.W))}else k=W.timing,k.L||(k.L=(0,g.q5)(),g.Wv("ais_r",k.L,k.W));MN6(W.T,Y);W=W.loader;W.videoTrack.W.sE()&&W.audioTrack.W.sE()&&W.policy.W&&!W.H6.t9&&(Y=W.audioTrack.getDuration(),k=W.videoTrack.getDuration(),Math.abs(Y-k)>1&&W.y5("trBug",{af:""+g.VR(W.audioTrack.W.info,!1),vf:""+g.VR(W.videoTrack.W.info,!1),a:""+Y,v:""+k}))}; Zn=function(W){return uBq(W.T)}; gOd=function(W){W.J.length?W.K=g.iQ(g.iQ(W.J).info.EP):W.T.K.length?W.K=W.T.nI().info:W.K=Ut(W)}; cG=function(W,Y){var k={va:[],dw:[]},P;if((W=W.L)==null)W=void 0;else{yMV(W,W.va,"og");FxX(W,Y);yMV(W,W.va,"trim");var T=Qc1(W);Y=T.va;T=T.Qy;for(var I=[],X=0;X0){var M=Tc(Z,B);M>=0&&(u=(Z.end(M)-B+.1)*1E3)}I.push({formatId:g.VR(h.info.W.info,W.H6.t9), lY:h.info.lY,sequenceNumber:h.info.t5+W.T,TO:O,xr:h.info.J,xK:u})}W={va:Y,dw:I}}return(P=W)!=null?P:k}; XI=function(W,Y,k){k=k===void 0?!1:k;if(W.qT){var P=W.qT.Mt(),T=IH(P,Y),I=NaN,X=Ut(W);X&&(I=IH(P,X.W.index.getStartTime(X.t5)));if(T===I&&W.K&&W.K.J&&FM2(xR(W),0))return Y}W=f8(W,Y,k);return W>=0?W:NaN}; ho=function(W,Y,k){W.W.sE();var P=f8(W,Y);if(P>=0)return P;var T;(T=W.L)==null||w01(T,Y,k);P=Math;T=P.min;var I=W.T;if(I.G)if(I=I.G,I.Ma&&I.Ma.type===3)I=I.Ma.startTime;else if(I.J>0){var X=I.W.index;X=g.vp(X.offsets.subarray(0,X.count),I.J*I.chunkSize);I=I.W.index.getStartTime(X>=0?X:Math.max(0,-X-2))}else I=0;else I=Infinity;Y=T.call(P,Y,I);W.K=W.policy.A5?null:W.W.gT(Y).EP[0];Vs(W)&&(W.policy.HP&&(k==null?void 0:k.seekSource)===60||W.qT&&W.qT.abort(),W.policy.zZ&&(k=W.L)!=null&&(k.J=void 0));W.UP= 0;return W.K?W.K.startTime:Y}; vtd=function(W){W.G=!0;W.C=!0;W.X=-1;ho(W,Infinity)}; Nw=function(W){for(var Y=0,k=g.p(W.J),P=k.next();!P.done;P=k.next())Y+=s9d(P.value.info);return Y+=nOS(W.T)}; W5=function(W,Y){Y=Y===void 0?!1:Y;var k=W.loader.getCurrentTime(),P=W.T.nI(),T=(P==null?void 0:P.info.X)||0;if((P==null?0:P.info.W.n0())&&!P.info.T)if(W.policy.yD)T=P.info.C;else if(W.policy.GU){var I=P.info;T=I.range?I.X:Math.min(I.startTime+Math.min(I.duration*I.K/I.W.info.c6,I.duration)+(I.range?I.L:Math.min(I.duration,I.duration*I.J/I.W.info.c6)),I.startTime+I.duration)}if(!W.qT)return W.policy.W&&Y&&!isNaN(k)&&P?T-k:0;if((I=Ut(W))&&ao(I))return I.X;var X=W.qT.Mt(!0);if(Y&&P)return I=0,W.policy.W&& (I=hf(X,T+.02)),I+T-k;Y=hf(X,k);W.policy.lr&&I&&(P=Tc(X,k),X=Tc(X,I.C-.02),P===X&&(k=I.X-k,W.policy.J&&k>Y+.02&&W.y5("abh",{bh:Y,bhtls:k}),Y=Math.max(Y,k)));return Y}; wqF=function(W){var Y=Ut(W);return Y?Y.X-W.loader.getCurrentTime():0}; QPV=function(W,Y){if(W.J.length){if(W.J[0].info.EP[0].startTime<=Y)return;Im(W)}for(var k=W.T,P=k.K.length-1;P>=0;P--)k.K[P].info.startTime>Y&&k.K.pop();gOd(W);W.K&&Y=0;X--){var h=T.K[X];h.info.t5>=Y&&(T.K.pop(),T.J-=sW(h,T.policy.KH),I=h.info)}I&&(T.T=T.K.length>0?T.K[T.K.length-1].info:T.GJ,T.K.length!==0||T.T||Qs(T,"r"));T.loader.y5("mdstm",{rollbk:1,itag:I?I.W.info.itag:"",popped:I?I.t5:-1,sq:Y,lastslc:T.T?T.T.t5:-1,lastfraget:T.J.toFixed(3)});if(W.policy.W)return W.K=null,!0;P>k?ho(W,P):W.K=W.W.kB(Y-1,!1).EP[0]}catch(B){return Y=iZ(B),Y.details.reason="rollbkerr", W.loader.handleError(Y.errorCode,Y.details,Y.severity),!1}return!0}; $V=function(W,Y){var k;for(k=0;k0?k||Y.t5>=W.TJ:k}; kV=function(W){var Y;return Vs(W)||ao((Y=W.T.nI())==null?void 0:Y.info)}; xR=function(W){var Y=[],k=Ut(W);k&&Y.push(k);Y=g.AN(Y,W.T.rU());k=g.p(W.J);for(var P=k.next();!P.done;P=k.next()){P=P.value;for(var T=g.p(P.info.EP),I=T.next(),X={};!I.done;X={L3:void 0},I=T.next())X.L3=I.value,P.P8&&(Y=g.Eo(Y,function(h){return function(B){return!E10(B,h.L3)}}(X))),($7(X.L3)||X.L3.type===4)&&Y.push(X.L3)}W.K&&!MvV(W.K,g.iQ(Y),W.K.W.xk())&&Y.push(W.K); return Y}; FM2=function(W,Y){if(!W.length)return!1;for(Y+=1;Y=Y){Y=I;break a}}Y=T}return Y<0?NaN:FM2(W,k?Y:0)?W[Y].startTime:NaN}; P5=function(W){return!(!W.K||W.K.W===W.W)}; eJ7=function(W){return P5(W)&&W.W.sE()&&W.K.W.info.c6Y&&W.X1080&&!W.U2&&(W.Fr=36700160,W.Lg=5242880,W.GJ=Math.max(4194304,W.GJ),W.U2=!0);Y.video.qualityOrdinal>2160&&!W.n4&&(W.Fr=104857600,W.c6=13107200,W.n4=!0);g.W2(W.pg.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?Y.isEncrypted()&&g.wn()&&g.gn("samsung")&&(g.gn("kant")||g.gn("muse"))&&(W.c6=g.W2(W.pg.experiments,"html5_samsung_kant_limit_max_bitrate")):Y.isEncrypted()&&g.wn()&&g.gn("kant")&&(W.c6=1310720);W.KI!==0&&Y.isEncrypted()&& (W.c6=W.KI);W.vF!==0&&Y.isEncrypted()&&k&&(W.c6=W.vF);Y.c6&&(W.JR=Math.max(W.vu,Math.min(W.GJ,5*Y.c6)))}; Qt=function(W){return W.W&&W.b3}; Ie=function(W){return W.W&&W.RB&&W.playbackStartPolicy}; Y9V=function(W,Y,k,P){W.RB&&(W.playbackStartPolicy=Y,W.DT=k,W.f6=P)}; jG=function(W,Y,k){k=k===void 0?0:k;return g.W2(W.pg.experiments,Y)||k}; $DX=function(W){var Y=W===void 0?{}:W;W=Y.YJ;var k=Y.Ch;var P=Y.Fu;var T=Y.QU;Y=Y.uh;this.YJ=W;this.Ch=k;this.Fu=P;this.QU=T;this.uh=Y}; Wo7=function(W,Y){if(Y<0)return!0;var k=W.QU();return Y0)return 2;if(Y<0)return 1;k=W.QU();return Y(0,g.q5)()?0:1}; SG=function(W,Y,k,P,T,I,X,h,B,O,u,Z,M,t){t=t===void 0?null:t;g.e.call(this);var q=this;this.loader=W;this.policy=Y;this.videoTrack=k;this.audioTrack=P;this.T=T;this.W=I;this.timing=X;this.C=h;this.schedule=B;this.H6=O;this.J=u;this.A5=Z;this.M2=M;this.I3=t;this.Kg=!1;this.x9="";this.Dd=null;this.Cs=NaN;this.wD=!1;this.K=null;this.Z9=this.N=NaN;this.TX=this.X=0;this.logger=new g.H_("dash");this.zW={Z4:function(G,J){return q.Z4(G,J)}}; this.policy.C4>0&&(this.x9=g.OY(this.policy.C4));this.policy.Cn&&(this.L=new XC(this.loader,this.policy,this.schedule),g.v(this,this.L))}; S91=function(W,Y,k){var P=Y.K?Y.K.W.ob:Y.W.ob;var T=W.T,I;(I=!W.policy.Vf)||(I=c0(P.W)===c0(P.K));I?P=!1:(T=vR(T,c0(P.K)),I=6E4*Math.pow(T.T,1.6),(0,g.q5)()=T.T?(T.y5("sdai",{haltrq:I+1,est:T.T}),P=!1):P=T.K!==2;if(!P||!bU(Y.K?Y.K.W.ob:Y.W.ob,W.policy,W.T,W.loader.u2())||W.loader.isSuspended&&(!xO(W.schedule)||W.loader.VM))return!1;if(W.policy.T&&jE>=5)return g.L_(W.loader.Da),!1;if(W.H6.isManifestless){if(Y.J.length>0&&Y.K&&Y.K.t5===-1||Y.J.length>=W.policy.zR||!W.policy.IW&&Y.J.length>0&&!W.policy.G.Ch)return!1;if(Y.G)return!W.H6.isLive|| !isNaN(W.Cs)}if(UGd(Y))return W.logger.debug("Pending request with server-selectable format found"),!1;if(!Y.K){if(!Y.W.sE())return!1;ho(Y,W.loader.getCurrentTime())}if(Zn(Y)&&(Y.nI()!==Zn(Y)||W.loader.isSuspended))return!1;T=(P=W.policy.nB)&&!Y.J.length&&W5(Y,!0)=W.policy.LY)return!1;P=Y.K;if(!P)return!0;P.type===4&&P.W.sE()&&(Y.K=g.iQ(P.W.sY(P)),P= Y.K);if(!P.IB()&&!P.W.f5(P))return!1;I=W.H6.Fj||W.H6.T;if(W.H6.isManifestless&&I){I=Y.W.index.QU();var X=k.W.index.QU();I=Math.min(I,X);if(Y.W.index.GG()>0&&I>0&&P.t5>=I)return Y.TJ=I,k.TJ=I,!1}if(P.W.info.audio&&P.type===4||P.IB())return!1;I=!Y.C&&!k.C;if(T=!T)T=P.X,T=!!(k.K&&!ao(k.K)&&k.K.Xh_F(W,Y)?(h_F(W,Y),!1):(W=Y.qT)&&W.isLocked()?!1:!0}; h_F=function(W,Y){var k=W.W;k=k.W?k.W.w5:null;if(W.policy.gD&&k)return k.startSecs+k.sV+15;Y=S1(W.loader,Y);W.policy.xm>0&&(k=((0,g.q5)()-W.loader.LJ)/1E3,Y=Math.min(Y,W.policy.xm+W.policy.u5*k));Y=W.loader.getCurrentTime()+Y;return W.policy.s2&&(k=BVz(W.loader)+W.policy.s2,k=0||Y.ob.xG("defrag")==="1"||Y.ob.xG("otf")==="1"){Y=null;break a}T=Ni(0,4096)}T=new IO([new W_(5,P.W,T,"createProbeRequestInfo"+P.G,P.t5)],Y.K);T.W4=k;T.W=Y.W;Y=T}Y&&X6S(W,Y)}}; X6S=function(W,Y){W.loader.Gp(Y);var k=s9d(Y),P=W.loader.jC();k={Sj:W.schedule,GS:k,Ox:AMF(W.C,k),YN:Y7(Y.EP[0]),jm:xt(Y.ob.W),EJ:W.policy.J,UM:function(X,h){W.loader.Dl(X,h)}}; if(W.schedule.K.X){var T,I;k.QD=(((T=W.videoTrack.W)==null?void 0:T.info.c6)||0)+(((I=W.audioTrack.W)==null?void 0:I.info.c6)||0)}W.Dd&&(k.t5=Y.EP[0].t5,k.Cs=Y.Cs,k.Dd=W.Dd);P={du:r_0(Y,W.loader.getCurrentTime()),sF:W.policy.fN&&Sq(Y)&&Y.EP[0].W.info.video?ctd(W.J):void 0,qP:W.policy.gD,poToken:W.loader.Dj(),Dx:W.loader.lC(),x9:W.x9,Z9:isNaN(W.Z9)?null:W.Z9,I3:W.I3,M2:W.M2,TX:W.TX,wY:P};return new j1(W.policy,Y,k,W.T,function(X,h){try{a:{var B=X.info.EP[0].W,O=B.info.video?W.videoTrack:W.audioTrack; if(!(X.state>=2)||X.isComplete()||X.td()||!(!W.loader.j1||W.loader.isSuspended||W5(O)>3)){var u=TV7(X,W.policy,W.T);u===1&&(W.wD=!0);uF5(W,X,u);if(X.isComplete()||X.Xr()&&h<3){if(W.policy.J){var Z=X.timing.iW();Z.rst=X.state;Z.strm=X.xhr.ZU();Z.cncl=X.xhr&&X.Yq.C?1:0;W.loader.y5("rqs",Z)}X.wL&&W.loader.y5("sbwe3",{},!0)}if(!W.Xr()&&X.state>=2){u$v(W.timing,X,B);var M=W.loader;W.Z9&&X.CF&&M&&(W.Z9=NaN,W.loader.jG(X.CF),W.loader.Df(),W.loader.y5("cabrUtcSeek",{mediaTimeSeconds:X.CF}));X.Fa&&W.Z9&&X.Fa&& !X.Fa.action&&(W.loader.Ed(W.Z9),W.Z9=NaN,W.loader.y5("cabrUtcSeekFallback",{targetUtcTimeSeconds:W.Z9}));X.Zh&&W.loader.P9(X.Zh);W.policy.LH&&(W.TX=X.TX);if(X.state===3){$V(O,X);Sq(X.info)&&hO(W,O,B,!0);if(W.K){var t=X.info.B$();t&&W.K.Gw(X.info.EP[0].t5,B.info.id,t)}W.loader.u7()}else if(X.isComplete()&&X.info.EP[0].type===5){if(X.state!==4)X.x4()&&W.loader.handleError(X.NI(),X.B3());else{var q=(X.info.EP[0].W.info.video?W.videoTrack:W.audioTrack).J[0]||null;q&&q instanceof j1&&q.td()&&q.B9()}X.dispose()}else{X.x4()|| ZhC(W,X);var G;((G=X.jY)==null?0:G.itagDenylist)&&W.loader.tP(X.jY.itagDenylist);if(X.state===4)ihd(W,X),W.W&&qWz(W.W,X.info,W.K);else if(W.policy.No&&X.dX()&&!X.isComplete()&&!ihd(W,X)&&!X.x4())break a;X.x4()&&(M_2(W,X),isNaN(W.Z9)||(W.loader.Ed(W.Z9),W.Z9=NaN));W.policy.tT&&!X.isComplete()?t_7(W.loader):W.loader.u7();var J=jTV(X,W.policy,W.T);uF5(W,X,J)}}}}}catch(d){h=W.Kg?1:0,W.Kg=!0,X=Zf(h),h=iZ(d,h),W.loader.handleError(h.errorCode,h.details,h.severity),X||W.loader.l5()}},P)}; ZhC=function(W,Y){if(Y.iG&&Y.state>=2&&Y.state!==3){var k=Y.xhr.getResponseHeader("X-Response-Itag");if(k){W.logger.debug(function(){return"Applying streamer-selected format "+k}); var P=brS(W.J,k),T=Y.info.J;T&&(T-=P.qj(),P.J=!0,Y.info.EP[0].W.J=!1,vbq(Y,P.tR(T)),B5(W.loader,W.videoTrack,P),lz1(W.videoTrack,P),W.loader.nw(P.info.video.quality),(T=Y.DF())&&P.info.lastModified&&P.info.lastModified!==+T&&$V(W.videoTrack,Y))}else Y.iG=!1}}; M_2=function(W,Y){var k=Y.info.EP[0].W,P=Y.NI();if(xt(k.ob.W)){var T=g.s$(Y.JD(),3);W.loader.y5("dldbrerr",{em:T||"none"})}T=Y.info.EP[0].t5;var I=Ti(W.W,Y.info.EP[0].C,T);P==="net.badstatus"&&(W.X+=1);if(Y.canRetry()&&q9X(W.loader)){if(!(Y.info.ob.J>=W.policy.Gb&&W.K&&Y.info.isDecorated()&&P==="net.badstatus"&&W.K.XM(I,T))){T=(k.info.video&&k.ob.J>1||Y.Zg===410||Y.Zg===500||Y.Zg===503)&&!(BG(W.J.C).size>0)&&!xt(k.ob.W);I=Y.B3();var X=k.info.video?W.videoTrack:W.audioTrack;T&&(I.stun="1");W.loader.handleError(P, I);W.Xr()||(T&&(W.logger.debug(function(){return"Stunning format "+k.info.id}),tk(W.J,k)),$V(X,Y),W.loader.u7())}}else X=1,W.K&&Y.info.isDecorated()&&P==="net.badstatus"&&W.K.XM(I,T)&&(X=0),W.H6.isLive&&Y.NI()==="net.badstatus"&&W.X<=W.policy.kp*2?(gBv(W.H6),W.H6.Fj||W.H6.isPremiere?u5(W.loader,0,{Fi:"badStatusWorkaround"}):W.H6.T?u5(W.loader,W.H6.gD,{Fi:"badStatusWorkaround", ul:!0}):On(W.loader)):W.loader.handleError(P,Y.B3(),X)}; ihd=function(W,Y){if(W.policy.useUmp&&Y.Xr())return!1;try{var k=Y.info.EP[0].W,P=k.info.video?W.videoTrack:W.audioTrack;if(W.H6.isManifestless&&P){W.X=0;P.G&&(Y.Xr(),Y.isComplete()||Y.dX(),P.G=!1);Y.ov()&&W.loader.BQ.NL(1,Y.ov());var T=Y.GG(),I=Y.yB();fr(W.H6,T,I)}if(Y.info.YN()&&!X$(Y.info))for(var X=g.p(Y.E3()),h=X.next();!h.done;h=X.next())DGV(P,h.value);for(W.loader.getCurrentTime();P.J.length&&P.J[0].state===4;){var B=P.J.shift();mGd(P,B);P.Fr=B.eR()}P.J.length&&mGd(P,P.J[0]);var O=!!Zn(P);O&& Y instanceof Tg&&(k.info.xH()?jOq(W.timing):Tzv(W.timing));return O}catch(u){Y=Y.B3();Y.origin="hrhs";a:{W=W.loader;k=u;if(k instanceof Error){Y.msg||(Y.msg=""+k.message);Y.name||(Y.name=""+k.name);if(k instanceof g.Qq&&k.args)for(P=g.p(Object.entries(k.args)),T=P.next();!T.done;T=P.next())I=g.p(T.value),T=I.next().value,I=I.next().value,Y["arg"+T]=""+I;g.Kx(k);if(k.level==="WARNING"){W.W6.yg(Y);break a}}W.handleError("fmt.unplayable",Y,1)}return!1}}; R_S=function(W){var Y=W.videoTrack.W.index;W.Dd=new $DX({YJ:W.policy.YJ,Ch:W.policy.G.Ch,Fu:Y.N5(),QU:function(){return Y.QU()}, uh:function(){return Y.uh()}})}; hO=function(W,Y,k,P){if(!(k.sE()||k.q4()||k.J||!bU(k.ob,W.policy,W.T,W.loader.u2())||k.info.lz==="f"||W.policy.W)){if(P){P=W.C;var T=k.info;P=zC2(P,T.video?P.policy.Di:P.policy.il,T.c6)}else P=0;P=k.tR(P);W=X6S(W,P);X$(P)&&lX(Y,W);k.J=!0}}; uJ=function(W,Y,k,P,T,I,X,h){g.e.call(this);var B=this;this.loader=W;this.l7=Y;this.videoTrack=k;this.audioTrack=P;this.H6=T;this.N=I;this.isAudioOnly=X;this.L=h;this.K=Ms;this.wD=!1;this.logger=new g.H_("sabr");this.G=this.Kg=this.A5=!1;this.videoInfos=this.X=this.N.videoInfos;this.J=this.gD=this.N.W;this.W=new SI(Y,I,function(O,u){B.loader.y5(O,u)}); this.isAudioOnly&&Hh2(this,this.H6.W["0"])}; n35=function(W,Y){var k=[];Y=g.p(Y);for(var P=Y.next();!P.done;P=Y.next())k.push(g.VR(P.value,W.H6.t9));return k}; Hh2=function(W,Y,k){Y!==W.T&&(W.T&&(W.wD=!0),W.T=Y,W.n_(Y,W.videoTrack,k))}; E3C=function(W,Y){W.logger.debug("setConstraint: "+mx(Y));Qt(W.l7)&&(W.Kg=Y.reason==="m"||Y.reason==="l"?!0:!1);Y.reason==="m"?Y.isLocked()&&p6S(W,Y.W):GB1(W,Y)?Ki0(W,Y.K,Y.W):W.videoInfos=W.X;W.K=Y}; GB1=function(W,Y){return W.l7.JS&&Y.reason==="b"||W.l7.nR&&Y.reason==="l"||W.l7.rr?!1:W.l7.Sw?!0:Y.reason==="l"||Y.reason==="b"||Y.reason==="o"}; JK0=function(W,Y){return Y.isLocked()&&W.W.K||W.K===void 0?!1:Y.equals(W.K)}; sT1=function(W,Y){var k,P=(k=W.T)==null?void 0:k.info.video.qualityOrdinal;return W.wD?!0:W.T?Y!==P?!0:!W.W.K||W.l7.zg&&W.W.W===W.T.info.itag?!1:!0:!1}; p6S=function(W,Y){var k=W.W.W;if(k){W.videoInfos=W.X;var P=g.qc(W.videoInfos,function(T){return T.id===k}); P&&P.video.qualityOrdinal===Y?W.videoInfos=[P]:(P=W.videoInfos.map(function(T){return T.id}),W.loader.y5("sabrpf",{pfid:""+k, vfids:""+P.join(".")}),Ki0(W,Y,Y),Ot(W.W,""))}else Ki0(W,Y,Y)}; Ki0=function(W,Y,k){W.videoInfos=W.X;W.videoInfos=g.Eo(W.videoInfos,function(P){return P.video.qualityOrdinal>=Y&&P.video.qualityOrdinal<=k})}; rKv=function(W,Y,k){if(W.L){var P=g.Eo(W.J,function(T){return T.id===W.L}); return ZD(P,k).includes(Y)}P=g.Eo(W.J,function(T){var I;return!((I=T.Ib)==null||!I.isDefault)}); return P.length>0?ZD(P,k).includes(Y):ZD(W.J,k).includes(Y)}; ZD=function(W,Y){return W.map(function(k){return cR(g.VR(k,Y))})}; AKv=function(W){var Y;if((Y=W.K)==null?0:Y.isLocked())return W.videoInfos;var k=BG(W.W);Y=g.Eo(W.videoInfos,function(P){return P.c6>W.l7.c6?!1:!k.has(P.id)}); rtz(W.W)&&(Y=g.Eo(Y,function(P){return P.video.width<=854&&P.video.height<=480})); return Y}; dD1=function(W,Y,k){var P=W.H6,T=W.W6.getVideoData(),I=W.iR,X=FoF({pg:T.V(),W6:W.W6,fF:W.fF,l7:W.l7,Gs:W.Gs,nX:W.nX,Vw:W.Vw,Co:W.Co,qo:W.qo,isPrefetch:W.isPrefetch,aX:W.aX,sabrLicenseConstraint:T.sabrLicenseConstraint,Ko:W.Ko,bu:W.bu,DI:W.DI,Qq:W.Qq,dK:!!I,authorizedFormats:T.authorizedFormats}),h=e1(T,W.wY,W.nextRequestPolicy,W.gy,W.qX,W.Wc,W.AQ);k&&Y&&(k=h.y$?h.y$.map(function(Z){return Z.type}):[],Y("sabr",{stmctxt:k.join("_"), unsntctxt:h.cX?h.cX.join("_"):""}));Y=W.vB;k=W.PB;if(k===void 0&&Y===void 0){var B;k=z_C(P.t9,(B=W.Z1)==null?void 0:B.video);var O;Y=z_C(P.t9,(O=W.Z1)==null?void 0:O.audio)}if(T.I3)var u=T.I3;T={a5:X,dw:W.dw,vB:Y,PB:k,iR:I,videoPlaybackUstreamerConfig:u,HB:h};W.h7&&(T.h7=W.h7);T.va=W.va;T.uT=P.rD;return T}; z_C=function(W,Y){return Y?[g.VR(Y.info,W)]:[]}; iJ=function(W,Y,k){var P=this;this.requestType=W;this.ob=Y;this.wx=k;this.K=null;this.zW={BkP:function(){var T;return(T=P.data)==null?void 0:T.isPrefetch}, qX:function(){var T;return(T=P.data)==null?void 0:T.qX}}}; YWd=function(W,Y,k){Y=Uy(W.ob,mD7(W,Y,k),Y);W.Zw()&&Y.set("probe","1");return Y}; mD7=function(W,Y,k){W.W4===void 0&&(W.W4=W.ob.W4(Y,k));return W.W4}; DDd=function(W){var Y,k;return((Y=W.W)==null?void 0:(k=Y.a5)==null?void 0:k.DD)||0}; g3z=function(W){var Y,k;return!!((Y=W.W)==null?0:(k=Y.a5)==null?0:k.Ko)}; Fi0=function(W){var Y={},k=[],P=[];if(!W.data)return Y;for(var T=0;T0;B--)k.push(h)}k.length!==X?Y.error=!0:(I=k.slice(-I),k.length=T,kWX(Y,k,I));break;case 1:kWX(Y,n3,V_5);break;case 0:P0C(Y, Y.W&7);k=En(Y,16);T=En(Y,16);(k^T)!==65535&&(Y.error=!0);Y.output.set(Y.data.subarray(Y.K,Y.K+k),Y.J);Y.K+=k;Y.J+=k;break;default:Y.error=!0}W.J>W.output.length&&(W.output=new Uint8Array(W.J*2),W.J=0,W.K=0,W.T=!1,W.W=0,W.register=0)}W.output.length!==W.J&&(W.output=W.output.subarray(0,W.J));return W.error?new Uint8Array(0):W.output}; kWX=function(W,Y,k){Y=Y4d(Y);k=Y4d(k);for(var P=W.data,T=W.output,I=W.J,X=W.register,h=W.W,B=W.K;;){if(h<15){if(B>P.length){W.error=!0;break}X|=(P[B+1]<<8)+P[B]<>=7;O<0;)O=Y[(X&1)-O],X>>=1;else X>>=O&15;h-=O&15;O>>=4;if(O<256)T[I++]=O;else if(W.register=X,W.W=h,W.K=B,O>256){X=Gh[O];X+=En(W,p3[O]);B=$sd(W,k);h=K3[B];h+=En(W,NVX[B]);if(j4d&&Xk.length&&(W.error=!0);W.register|=(k[P+1]<<8)+k[P]<=0)return P0C(W,k&15),k>>4;for(P0C(W,7);k<0;)k=Y[En(W,1)-k];return k>>4}; En=function(W,Y){for(;W.W=W.data.length)return W.error=!0,0;W.register|=W.data[W.K++]<>=Y;W.W-=Y;return k}; P0C=function(W,Y){W.W-=Y;W.register>>=Y}; Y4d=function(W){for(var Y=[],k=g.p(W),P=k.next();!P.done;P=k.next())P=P.value,Y[P]||(Y[P]=0),Y[P]++;var T=Y[0]=0;k=[];var I=0;P=0;for(var X=1;X7&&(I+=Y[X]);for(T=1;T>B&1;h=I<<4|X;if(X<=7)for(B=1<<7-X;B--;)P[B<>=7;X--;){P[B]||(P[B]=-Y,Y+=2);var O=T&1;T>>=1;B=O-P[B]}P[B]=h}}return P}; Xnd=function(W){var Y,k,P,T,I,X,h,B,O;return g.D(function(u){switch(u.W){case 1:if(!IG2)throw Error("DecompressionStream is not supported");Y=zY.X6();k=new DecompressionStream("gzip");P=k.writable.getWriter();P.write(W);P.close();T=k.readable.getReader();I=new $S([]);case 2:return g.m(u,T.read(),5);case 5:X=u.K;h=X.value;if(B=X.done){u.oi(4);break}I.append(h);u.oi(2);break;case 4:return O=IC(I),zY.IJ("gznb",Y,Math.ceil(O.byteLength/16)),u.return(O)}})}; S4d=function(W){CD.call(this,"onesie");this.q6=W;this.W={};this.T=!0;this.J=null;this.queue=new f_F(this);this.C={}}; hYd=function(W){var Y=W.queue;Y.W.length&&Y.W[0].isEncrypted&&!Y.K&&(Y.W.length=0);Y=g.p(Object.keys(W.W));for(var k=Y.next();!k.done;k=Y.next()){k=k.value;var P=W.W[k];if(!P.dA){var T=W.queue;T.W.push({videoId:P.videoId,formatId:k,isEncrypted:!1});T.K||H5(T)}}}; BR6=function(W,Y){var k=Y.totalLength,P=!1;switch(W.J){case 0:W.pw(Y,W.T).then(function(T){var I=W.q6;I.VU("oprr");I.playerResponse=T;I.Te||(I.MX=!1);JO(I)},function(T){W.q6.fail(T)}); break;case 2:W.VU("ormk");Y=IC(Y);W.queue.decrypt(Y);break;default:P=!0}W.q6.qv&&W.q6.y5("ombup","id.11;pt."+W.J+";len."+k+(P?";ignored.1":""));W.J=null}; Ozq=function(W,Y){var k,P,T,I,X;return g.D(function(h){switch(h.W){case 1:W.q6.VU("oprgz_s");if(!IG2){h.oi(2);break}g.KC(h,3);return g.m(h,Xnd(Y),5);case 5:return k=h.K,W.q6.VU("oprgz_n"),h.return(k);case 3:P=g.Aq(h),W.q6.y5("gzerr",{impl:"native",err:""+P});case 2:if(T=W.q6.V().PU)try{var B=zY.X6(),O=T.WA(Y),u=T,Z=O!=null?O:Y,M=Z.byteOffset,t=Z.byteLength,q=u.exports.getInflatedSize(M,t);if(q===0)throw Error("wasm_gz: bad input");var G=u.malloc(q),J=u.exports.inflateGzip(M,t,G);if(J)throw u.free(G), Error("wasm_gz: fail"+J);var d=new Uint8Array(u.exports.memory.buffer,G,q);O&&T.free(O.byteOffset);var A=T.b6(d);zY.IJ("gzwb",B,Math.ceil(A.byteLength/16));I=A;W.q6.VU("oprgz_w");return h.return(I)}catch(F){W.q6.y5("gzerr",{impl:"wasm",err:""+F})}B=zY.X6();O=g.TRC(new g.a_0(Y));zY.IJ("gzjb",B,Math.ceil(O.byteLength/16));X=O;W.q6.VU("oprgz_p");return h.return(X)}})}; uk7=function(W){return new Promise(function(Y){setTimeout(Y,W)})}; Zz6=function(W,Y){var k=W.V();k=W.Cn&&k.U("html5_onesie_preload_use_content_owner");var P=W.ZN;k=k===void 0?!1:k;var T=nA(Y.zJ.experiments,"debug_bandaid_hostname");if(T)Y=tO(Y,T);else if(k&&(P==null?0:P.url)&&!Y.K){var I=c0(new g.lW(P.url));Y=tO(Y,I)}else Y=(I=Y.W.get(0))==null?void 0:I.location.clone();if(Y&&W.videoId){I=Dz(W.videoId);W=[];if(I)for(I=g.p(I),k=I.next();!k.done;k=I.next())W.push(k.value.toString(16).padStart(2,"0"));Y.set("id",W.join(""));return Y}}; izV=function(W,Y,k){k=k===void 0?0:k;var P,T;return g.D(function(I){if(I.W==1)return P=[],P.push(Y.load()),k>0&&P.push(uk7(k)),g.m(I,Promise.race(P),2);T=Zz6(W,Y);return I.return(T)})}; ME2=function(W,Y,k,P){P=P===void 0?!1:P;W.set("cpn",Y.clientPlaybackNonce);W.set("opr","1");var T=Y.V();W.set("por","1");IV()||W.set("onem","1");Y.startSeconds>0&&W.set("osts",""+Y.startSeconds);P||(T.U("html5_onesie_disable_partial_segments")&&W.set("oses","1"),Y=T.U("html5_gapless_onesie_no_media_bytes")&&rR(Y)&&Y.Cn,k&&!Y?(Y=k.audio,W.set("pvi",k.video.join(",")),T.U("html5_onesie_disable_audio_bytes")||W.set("pai",Y.join(",")),qG||W.set("osh","1")):(W.set("oad","0"),W.set("ovd","0"),W.set("oaad", "0"),W.set("oavd","0")))}; tEF=function(W,Y,k,P,T){T=T===void 0?!1:T;var I="https://youtubei.googleapis.com/youtubei/"+Y.Wu.innertubeApiVersion+"/player",X=[{name:"Content-Type",value:"application/json"}];P&&X.push({name:"Authorization",value:"Bearer "+P});X.push({name:"User-Agent",value:g.wY()});g.eM("EOM_VISITOR_DATA")?X.push({name:"X-Goog-EOM-Visitor-Id",value:g.eM("EOM_VISITOR_DATA")}):(k=k.visitorData||g.eM("VISITOR_DATA"))&&X.push({name:"X-Goog-Visitor-Id",value:k});(k=g.eM("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&X.push({name:"X-YouTube-Lava-Device-Context", value:k});(Y=nA(Y.experiments,"debug_sherlog_username"))&&X.push({name:"X-Youtube-Sherlog-Username",value:Y});W=Mx(JSON.stringify(W));return{url:I,o$:X,postBody:W,ON1:T,po:T}}; q4v=function(W,Y,k,P,T,I,X){var h=W.rb,B=W.z2;W=W.pKD;var O=h!==void 0&&B!==void 0,u=P.getVideoData(),Z,M=Y.W.encryptedClientKey;Y=O?Y.iv:void 0;O=cq(k.schedule,!0);T=T||!!IV()&&O>1572864;return{innertubeRequest:{J$1:W,mG:h,z2:B,encryptedClientKey:M,iv:Y,iuJ:!0,Xl:!0,Hn:"DecompressionStream"in window||!T,s7D:k.experiments.Nq("html5_use_jsonformatter_to_parse_player_response")},a5:FoF({pg:k,W6:P,fF:u.startSeconds*1E3}),onesieUstreamerConfig:I,C8:X,HB:e1(u),reloadPlaybackParams:(Z=u.YF)==null?void 0: Z.reloadPlaybackParams}}; RY2=function(W,Y,k,P,T,I){var X=g.bl(W,A_),h;if(!W.po)if(h=e_2(Y,X)){var B=h.N7;h=h.signature}else h=B=Y.encrypt(X),(0,g.q5)(),h=IgX(new jBq(Y.W.J),h,Y.iv);return q4v(B&&h?{rb:B,z2:h}:{pKD:X},Y,k,P,!!W.po,T,I)}; Hzq=function(W,Y,k,P,T,I){var X,h,B;return g.D(function(O){if(O.W==1)return X=g.bl(W,A_),g.m(O,yKd(Y,X),2);if(O.W!=3)return h=O.K,g.m(O,o31(Y,h),3);B=O.K;return O.return(q4v({rb:h,z2:B},Y,k,P,!!W.po,T,I))})}; n0F=function(W,Y,k,P,T,I){var X=g.bl(W,A_);if(X=e_2(Y,X))return q4v({rb:X.N7,z2:X.signature},Y,k,P,!!W.po,T,I)}; rP=function(W,Y){g.e.call(this);var k=this;this.W6=W;this.playerRequest=Y;this.logger=new g.H_("onesie");this.xhr=null;this.state=1;this.fI=new KY;this.Rm=!1;this.playerResponse="";this.MB=new nD(this);this.Dr=new S4d(this);this.Tu="";this.CR=this.Ty=!1;this.tA="";this.enableCompression=this.Te=this.Ys=!1;this.mx=[];this.bv=-1;this.bb=0;this.zJ=this.W6.V();this.videoData=this.W6.getVideoData();this.qv=this.zJ.OR();this.Zq=this.zJ.tT;this.gJ=new w6C(this.Zq.W);this.E9=this.zJ.U("html5_onesie_check_timeout"); this.h0=new g.C_(this.Vh,500,this);this.uB=new g.C_(this.yl,1E4,this);this.jH=new g.C_(function(){if(!k.isComplete()){var P=sn(k);k.fail(new g.uZ("net.timeout",P))}},1E3); this.vR=new g.C_(this.X6S,2E3,this);this.vS=this.W6.lC();this.MX=this.U("html5_onesie_wait_for_media_availability");g.v(this.videoData,this);g.v(this,this.h0);g.v(this,this.uB);g.v(this,this.vR);W=GY();qG&&W&&(this.Sy=new Map);this.bF=new Map;this.uA=new Map;this.RL=new Map;this.Ax=new Map}; Re=function(W,Y){var k;return(k=W.Sy)==null?void 0:k.get(Y)}; GW1=function(W,Y,k){var P;return g.D(function(T){if(T.W==1)return W.VU("oprd_s"),pnF(W)?g.m(T,v3q(W.gJ,Y,k),3):(P=W.gJ.decrypt(Y,k),T.oi(2));T.W!=2&&(P=T.K);W.VU("oprd_c");return T.return(P)})}; KXd=function(W){return W.U("html5_onesie_host_probing")||W.qv?qG:!1}; JO=function(W){if(!W.playerResponse)return!1;if(W.Ys)return!0;var Y=W.videoData.U("html5_onesie_audio_only_playback")&&A6(W.videoData);if(W.Sy&&W.MX){if(!W.Sy.has(W.Tu))return!1;var k=W.Sy.get(W.Tu),P;if(P=k){P=!1;for(var T=g.p(k.jj.keys()),I=T.next();!I.done;I=T.next())if(I=k.jj.get(I.value))for(var X=g.p(I.BE),h=X.next();!h.done;h=X.next())h.value.o5>0&&(I.xH?P=!0:Y=!0);P=!(Y&&P)}if(P)return!1}W.VU("ofr");W.fI.resolve(W.playerResponse);if(!W.E9){var B;(B=W.jH)==null||B.start();W.uB.start()}return W.Ys= !0}; J6v=function(W){if(W.Sy&&!W.U("html5_onesie_media_capabilities")){W.VU("ogsf_s");var Y=AHV(W.W6.getVideoData(),function(P,T){W.y5(P,T)}),k=E07(W.W6); Y.video=HbV(k,Y.video);W.VU("ogsf_c");if(Y.video.length)return Y;W.y5("ombspf","l."+k.K+";u."+k.W+";o."+k.J+";r."+k.reason)}}; pnF=function(W,Y){return W.U("html5_onesie_sync_request_encryption")||(Y==null?0:Y.po)||g.E9(W.zJ)&&W.U("html5_embed_onesie_use_sync_encryption")?!1:!!IV()}; sn=function(W){if(!W.Wz)return{};var Y=W.Wz.iW(),k;Y.d=(k=W.Wz.TJ)==null?void 0:k.WK();Y.shost=W.xU;Y.ty="o";return Y}; s4C=function(W,Y){var k,P;(P=(W=(k=W.Sy)==null?void 0:k.get(Y))==null)||(Y=W.J?!1:W.J=!0,P=!Y);return!P}; r62=function(W,Y,k,P,T,I,X,h,B,O,u,Z){g.e.call(this);var M=this;this.W6=W;this.loader=Y;this.policy=k;this.audioTrack=P;this.videoTrack=T;this.H6=I;this.Sj=X;this.bz=h;this.J=B;this.timing=O;this.N=u;this.OP=Z;this.W=[];this.C={};this.V5=this.Q5=!1;this.T=this.GJ=this.A5=this.rD=this.qo=0;this.L=null;this.wD={va:[],dw:[]};this.gD={va:[],dw:[]};this.G=null;this.X=[];this.zW={JUS:function(){return M.W}, x85:function(){return M.C}, Ihh:function(){M.W.length=0}, awh:function(){return M.videoData.bz}, rdD:function(){return M.A5}, kcr:function(t){M.A5=t}, VTi:function(t){M.T=t}, Ue:function(t){M.G=t}, OD:function(t){M.X=t}}; this.videoData=this.W6.getVideoData();this.policy.Cn&&(this.UP=new XC(this.loader,this.policy,this.Sj),g.v(this,this.UP))}; ds0=function(W,Y){Y=Y===void 0?!1:Y;if(A60(W)){W.policy.X&&W.loader.y5("sabrcrq",{create:1});var k=new iJ(0,W.H6.N,W);W.policy.Dm>0&&W.T++;Y=zYq(W,k,Y);W.W.push(Y);var P;(P=W.UP)==null||kB7(P,W.H6.N)}}; g07=function(W,Y){var k=msd(W);if(W.policy.nu){var P=W.wD;var T=W.gD}else P=AO(W,W.audioTrack),T=AO(W,W.videoTrack);var I=[].concat(g.ZX(P.va),g.ZX(T.va));c5(W)&&I.push.apply(I,g.ZX(W.X));var X=[].concat(g.ZX(P.dw),g.ZX(T.dw)),h=W.loader.jC();if(W.policy.df&&!W.videoData.isLivePlayback){var B=W.videoData.lengthSeconds*1E3;k>=B&&W.loader.y5("invalidSabrCmt",{cmt:k,vd:B})}var O,u;B=W.W6;var Z=W.H6,M=W.K,t=W.videoData.bz,q=W.policy,G=W.loader.LJ,J=BVz(W.loader)*1E3,d=(O=W.TJ)==null?void 0:O.Vw;O=(u= W.TJ)==null?void 0:u.Co;var A;u=Number((A=W.J.T)==null?void 0:A.info.itag)||0;var F;A=Number((F=W.J.C)==null?void 0:F.info.itag)||0;Y={W6:B,H6:Z,va:I,dw:X,fF:k,nextRequestPolicy:M,gy:t,l7:q,Gs:G,nX:J,Vw:d,Co:O,qo:W.qo,isPrefetch:Y||W.loader.isSuspended,A5z:u,MD:A,wY:h,AQ:W.W6.Sp()};k=W.loader.Dj();I=Dz(k);k&&(Y.qX=I);if(k=W.W6.sG())Y.Ko=k*1E3;var y;k=W.J;I=k.A5;if(((y=k.l7)==null?0:Qt(y))&&!I)for(y=g.p(k.J),X=y.next();!X.done;X=y.next())if(X.value.Ib){I=!0;break}y=Qt(k.l7)&&!I?[]:n35(k,k.J);Y.vB= y;y=W.J;Qt(y.l7)&&!y.Kg?y=[]:(k=AKv(y),k.length===0&&(k=y.X),y=n35(y,k));Y.PB=y;Y.iR=c5(W)?[W.G]:void 0;W.policy.bk&&(Y.DI=Ds0(W.loader,W.audioTrack),Y.Qq=Ds0(W.loader,W.videoTrack));if(W.policy.K){y=W.loader.getCurrentTime();P=xV(W,P.va,y);T=xV(W,T.va,y);T=Math.min(P,T);c5(W)&&(P=xV(W,W.X,y),W.W6.OR()&&P0&&W.W[0].Ra()&&(Y.Wc=W.W[0].fm());return Y}; msd=function(W){var Y,k=W.policy.C&&((Y=W.loader)==null?void 0:Y.o_());Y=W.loader.getCurrentTime()||0;Y=FX5(W,Y);Y=W.policy.WV&&W.loader.isSeeking()?f8(W.videoTrack,Y):Y;var P=W.loader.m2()||0;Y+=P;P=a4(W.videoData)||g.Ns(W.videoData);var T=0;k?(P&&(T=Number.MAX_SAFE_INTEGER),W.videoData.wD&&(T=Math.ceil(W.videoData.gD*1E3))):T=Math.ceil(Y*1E3);return Math.min(Number.MAX_SAFE_INTEGER,T)}; c5=function(W){return W.policy.Qa&&!!W.G}; FX5=function(W,Y){if(W.loader.isSeeking())return Y;var k=W.W6.bd();if(!k)return Y;k=k.EE();if(k.length===0||jc(k,Y))return Y;if(!bAd(W.videoTrack,Y)&&!bAd(W.audioTrack,Y))return W.loader.y5("sundrn",{b:0,lt:Y}),Y;for(var P=Y,T=Infinity,I=0;IY)){var X=Y-k.end(I);X=20)?(W.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),Y):P}; xV=function(W,Y,k){W=W.loader.m2()||0;return f3(Y,(k+W)*1E3)/1E3+k}; A60=function(W){if(W.policy.Dm>0){var Y=Math.floor((0,g.q5)()/1E4);if(Y===W.GJ){if(W.T>=W.policy.Dm){if(W.T===W.policy.Dm){var k={reason:"toomanyrequests"};k.limit=W.T;W.loader.handleError("player.exception",k);W.T+=1}return!1}}else W.GJ=Y,W.T=0}if(W.loader.isSuspended&&W.loader.VM)return!1;if(W.Kg&&(0,g.q5)()0&&(!W.policy.N||W.W.length!==1||!W.W[0].Ra()))return!1;var P;if((P=W.H6.N)==null||!bU(P,W.policy,W.C,W.loader.u2())||kV(W.audioTrack)&&kV(W.videoTrack))return!1; if(W.policy.K)if(W.policy.UP){var T;if((T=W.OP)==null?0:Jt0(T))return!1}else{Y=!1;if(W.N.K===2)Y=!0;else if(W.N.K===3){msd(W);W.loader.m2();var I=cG(W.audioTrack,W.loader.isSeeking()).va;P=cG(W.videoTrack,W.loader.isSeeking()).va;T=W.loader.getCurrentTime()||0;I=xV(W,I,T);P=xV(W,P,T);P=Math.min(I,P);T=W.N;P>=T.C?(T.y5("sdai",{haltrq:P,est:T.C}),P=!0):P=!1;P&&(Y=!0)}Y&&W.policy.X&&W.loader.y5("sabrcrq",{waitad:1});if(Y)return!1}W.policy.nu&&(W.wD=AO(W,W.audioTrack),W.gD=AO(W,W.videoTrack));if(!W.K)return W.policy.X&& W.loader.y5("sabrcrq",{nopolicy:1}),!0;if(W.W6.sG())return W.policy.X&&W.loader.y5("sabrcrq",{utc:1}),!0;if(W.J.G)return W.policy.X&&W.loader.y5("sabrcrq",{audio:1}),!0;if(!W.K.targetAudioReadaheadMs||!W.K.targetVideoReadaheadMs)return W.policy.X&&W.loader.y5("sabrcrq",{noreadahead:1}),!0;if(W.policy.C&&W.loader.o_())return W.policy.X&&W.loader.y5("sabrcrq",{seekToHead:1}),!0;Y=Math.min(S1(W.loader,W.audioTrack)*1E3,W.K.targetAudioReadaheadMs);P=Math.min(S1(W.loader,W.videoTrack)*1E3,W.K.targetVideoReadaheadMs); var X=Math.min(Y,P);T=W5(W.audioTrack,!0)*1E3;I=W5(W.videoTrack,!0)*1E3;var h=W.W6.getCurrentTime()*1E3;if(W.policy.nu){var B=f3(W.wD.va,h);var O=f3(W.gD.va,h)}else B=T,O=I;var u=BY||P>=0&&T.T9>P+1)break;k=Math.max(k,T.startTimeMs+T.durationMs);P=Math.max(P,T.wV)}return Math.max(0,k-Y)}; zYq=function(W,Y,k){var P={Sj:W.Sj,UM:function(B,O){W.W6.Dl(B,O)}, YN:W.policy.l4,EJ:W.policy.J};W.Sj.K.X&&(P.QD=(W.videoTrack.W.info.c6||0)+(W.audioTrack.W.info.c6||0));W.policy.S6&&(P.Fu=W.audioTrack.W.index.N5(),P.YN=!1);var T=mD7(Y,W.policy,W.C)?2:1;T!==W.A5&&(W.A5=T,Q4v(W));k=g07(W,k);if(W.policy.N&&W.policy.J&&k.gy){for(var I=T="",X=g.p(k.gy),h=X.next();!h.done;h=X.next())h=h.value,W.videoData.sabrContextUpdates.has(h)||W.policy.N&&k.Wc&&k.Wc.type===h?T+="_"+h:I+="_"+h;W.loader.y5("sabrbldrqs",{ctxts:T,misctxts:I})}!Y.setData(k,W.policy,W.C)&&W.policy.N&&W.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);P=new NX(W.policy,Y,W.H6,W.C,W,P,W.loader.lC());am(W.timing);W.policy.X&&W.loader.y5("sabrcrq",{rn:P.H4(),probe:Y.Zw()});return P}; N0=function(W,Y){if(Y.Xr()||W.Xr())W.policy.n8||(W.policy.C?Vv(W.loader):W.loader.u7());else{if(W.policy.J&&Y.isComplete()&&Y instanceof NX){var k=W.loader,P=k.y5,T,I,X=Object.assign(Y.Wz.iW(),{rst:Y.state,strm:Y.xhr.ZU(),d:(T=Y.Wz.TJ)==null?void 0:T.WK(),cncl:Y.xhr&&Y.Yq.C?1:0,rqb:Y.rB,cwt:Y.Yq.J,swt:(I=Y.GP)==null?void 0:I.B2});T=Object.assign(Fi0(Y.info),X);P.call(k,"rqs",T)}if(Y.isComplete()&&Y.Zw()&&Y instanceof NX)W.policy.xq?Y.UH()?(Y.dispose(),W.W.length===0?W.loader.u7():(W=W.W[0],W instanceof NX&&W.td()&&W.B9())):Y.x4()&&W.loader.handleError(Y.NI(),Y.B3()):(Y.dispose(),W.loader.u7());else{if(Y.uj())Y instanceof NX&&u$v(W.timing,Y),Q4v(W),y6d(W);else if(Y.x4())k=W.W6.sG(),Y instanceof NX&&g3z(Y.info)&&k&&W.loader.Ed(k),Y instanceof rP?W.W.pop():(k=1,Y.canRetry()&&q9X(W.loader)&&(eY6(W,Y),k=0),W.loader.handleError(Y.NI(),Y.B3(),k));else{if(W.loader.isSuspended&&!Y.isComplete())return;y6d(W)}Y.Xr()||Y instanceof rP||(Y.isComplete()?k=jTV(Y,W.policy,W.C):(k=TV7(Y,W.policy,W.C),k===1&&(W.Q5= !0)),k!==0&&(P=new iJ(1,Y.info.ob),P.W4=k===2,zYq(W,P)));W.policy.tT&&!Y.isComplete()?t_7(W.loader):W.loader.u7()}}}; y6d=function(W){for(;W.W.length&&W.W[0].Eh(W.B5());){var Y=W.W.shift();o0q(W,Y)}W.W.length&&o0q(W,W.W[0])}; o0q=function(W,Y){Y instanceof NX&&(W.Fr=Y);var k=new Set(Y.Jg(W.B5()));k=g.p(k);for(var P=k.next();!P.done;P=k.next()){var T=P.value;if(!(P=!(Y instanceof rP))){P=W.J;var I=P.H6.t9,X=ZD(P.videoInfos,I);I=rKv(P,T,I);var h=X.includes(T);!P.l7.KB||I||h||P.loader.y5("sabrcpf",{fid:""+T,vfids:""+X.join("."),said:P.L||""});P=I||X.includes(T)}if(P&&(P=Y.rU(T,W.B5()),X=W.policy.Qa&&WC(P[0].W.info.mimeType),Y.dX(T,W.B5())))for(T=Y.E3(T,W.B5()),T=g.p(T),I=T.next();!I.done;I=T.next())if(I=I.value,W.policy.J&& Y instanceof rP&&W.loader.y5("omblss",{s:I.info.TW()}),X)h=W.timing,h.A5||(h.A5=(0,g.q5)(),g.Wv("fcb_r",h.A5,h.W)),h=W,h.videoData.t9()&&h.G&&cR(h.G)===cR(g.VR(I.info.W.info,h.H6.t9))&&h.W6.publish("sabrCaptionsDataLoaded",I,h.OD.bind(h));else{h=I.info.W.info.xH();var B=I.info.W;if(h){var O=void 0;var u=W.J,Z=(O=Y.jp(W.B5()))==null?void 0:O.token;u.G&&B!==u.C?O=!0:(u.G=!1,B!==u.C&&(u.C=B,u.n_(B,u.audioTrack,Z)),O=!1);if(O)continue}else O=void 0,Hh2(W.J,B,(O=Y.jp(W.B5()))==null?void 0:O.token);O=h? W.audioTrack:W.videoTrack;Y instanceof rP&&(O.G=!1,Y instanceof rP&&(h?jOq(W.timing):Tzv(W.timing)));try{bX(O,P,I)}catch(M){I=iZ(M),W.loader.handleError(I.errorCode,I.details,I.severity),O.l5(),W.JU(!1,"pushSlice"),Vv(W.loader)}}}}; eY6=function(W,Y){W.policy.N?W.W.splice(W.W.indexOf(Y)).forEach(function(k){k.dispose()}):(W.W.pop(),Y==null||Y.dispose())}; v0X=function(W,Y,k){for(var P=[],T=0;T0)for(var Y=g.p(W.videoData.sabrContextUpdates.keys()),k=Y.next();!k.done;k=Y.next()){k=k.value;var P=void 0;((P=W.videoData.sabrContextUpdates.get(k))==null?0:P.sendByDefault)&&W.videoData.bz.add(k)}if(W.policy.N&&W.W.length)for(Y=g.p(W.W),k=Y.next();!k.done;k=Y.next())(k=k.value.fm())&&k.type&&k.sendByDefault&&W.videoData.bz.add(k.type)}; C0F=function(W){W.policy.DY&&(W.TJ=void 0,W.qo=0)}; LXv=function(W,Y){if(Y.x4()||Y.Xr()){var k=W.loader,P=k.y5,T=Y.state;W=W.B5();var I,X;if((Y=(I=Y.Sy)==null?void 0:I.get(W))==null)Y=void 0;else{I=0;W=Y.Jg();for(var h=0;h=Y.mediaTime?(Y.resolve([Y.mediaTime,Y.id]),W.W.delete(Y.id)):(Y.delay.dispose(),k=(Y.mediaTime-k)*1E3/W.W6.getPlaybackRate(),Y.delay=new g.C_(function(){c6d(W,Y)},k/2),Y.delay.start()))}; aGX=function(W,Y,k,P){var T=this;this.J=W;this.cpn=Y;this.W6=k;this.W=P;this.K=new Map;this.C=new Map;this.G=this.L=NaN;this.X=!1;this.vU="";this.isSeeking=!1;this.N=0;this.T=new lG2(k);this.Pk=k.Pk;this.W6.subscribe("statechange",this.A5,this);this.W6.subscribe("SEEK_TO",function(){T.JX()}); this.W6.subscribe("SEEK_COMPLETE",function(){NRX(T)})}; Yb5=function(W,Y){if(!W.isSeeking&&W.N!==Y&&!isNaN(W.L)){W.N=Y;var k=W.X?W.G:W.J.o7(Y);(k!==W.G||W.X)&&WOS(W,k,Y)}}; WOS=function(W,Y,k){var P=W.K.get(Y),T=W.J.getStartTime(Y),I=W.J.getDuration(Y);W.X=!1;W.G=Y;var X=T,h;((h=P==null?void 0:P.W)!=null?h:[W.cpn]).forEach(function(B,O){var u,Z=(u=P==null?void 0:P.K[O])!=null?u:I;if(k>=X&&kT?TW5(W,I,W.K.get(I)):I===T&&TW5(W,I,W.K.get(I),P-W.J.getStartTime(I))})}; $qz=function(W,Y,k,P){Y!==W.vU&&(W.W6.y5("ssevt",{tag:W.W===0?"sstd-cr":W.W===1?"sstd-tm":W.W===2?"sstd-poll":W.W===3?"sstd-poll100":"sstd-unknown",ad:W.cpn!==Y,cpn:Y,st:k.toFixed(3),late:Math.round(W.isSeeking?0:(P-k)*1E3)}),W.vU=Y,W.W6.publish("playbackstarted",Y,k+W.W6.m2()))}; jRd=function(W){var Y=g.p(W.split("."));W=Y.next().value;Y=Y.next().value;return[Number(W),Y]}; Pf5=function(W,Y,k,P){k=Y+"."+k;W.C.has(Y)?W.C.get(Y).push(k):W.C.set(Y,[k]);W.W===1&&fGV(W.T,P,k).then(function(T){var I=g.p(T);T=I.next().value;I=I.next().value;I=g.p(jRd(I));I.next();I=I.next().value;$qz(W,I,T,bzC(W.T))}); W.W===0&&(W.Pk.g0("transitiondetector",k),Y=(P+W.W6.m2())*1E3,W.Pk.Bz([new g.L6(Y,Y+5E3,{id:k,namespace:"transitiondetector",priority:9})]))}; IA7=function(W,Y,k,P,T){this.loader=W;this.policy=Y;this.schedule=k;this.CK=P;this.N=T;this.A5=NaN;this.K=this.G=this.T=null;this.W=this.C=this.X=this.startTimeSecs=NaN;this.J=!1;this.L=NaN}; XVX=function(W,Y,k,P,T,I){return Y.NA&&Y.J9&&k===3?new IA7(W,Y,P,T,I):null}; SbX=function(W,Y){if(W.policy.e$){var k=Y.info.c6,P=cq(W.schedule);Y=Y.index.N5();k=Math.max(1,P/k);W.L=Math.round(Math.max(((k-1)*Y+W.policy.rZ)/k,Y-W.policy.uv)*1E3)}}; OlS=function(W,Y){var k=Date.now()/1E3,P=k-W.startTimeSecs,T=k-W.X,I=T>=W.policy.lM,X=!1;if(I){var h=0;!isNaN(Y)&&Y>W.C&&(h=Y-W.C,W.C=Y);h/T=W.policy.uv&&!W.J;if(!I&&!k&&hiv(W,Y))return NaN;k&&(W.J=!0);a:{P=X;k=(0,g.q5)()/1E3-(W.CK.le()||0)-W.G.W-W.policy.rZ;I=W.K.startTime;k=I+k;if(P){if(isNaN(Y)){ae(W,NaN,"n",Y);I=NaN;break a}P=Y-W.policy.gw;P0&&(h.headers=B);I&&(h.onFinish=I);return Object.keys(h).length>1? h:null}; pVS=function(W,Y,k,P,T,I,X,h){Wy()&&k.token&&(W=Vm(W,{ctt:k.token,cttype:k.T6,mdx_environment:k.mdxEnvironment}));P.U("net_pings_low_priority")&&(Y||(Y={}),Y.priority="low");I||h&&P.U("nwl_skip_retry")?(Y==null?Y={}:Riz(W,P.U("html5_assert_cpn_with_regex")),X?yk().sendAndWrite(W,Y):yk().sendThenWrite(W,Y,h)):Y?(Riz(W,P.U("html5_assert_cpn_with_regex")),PK5(W,Y)):g.rS(W,T)}; GMC=function(W){for(var Y=[],k=0;k0&&k>0&&!W.K&&W.J<1E7)try{W.T=W.C({sampleInterval:Y,maxBufferSize:k});var P;(P=W.T)==null||P.addEventListener("samplebufferfull",function(){return g.D(function(T){if(T.W==1)return g.m(T,W.stop(),2);JDz(W);g.G1(T)})})}catch(T){W.K=E91(T.message)}}; sRz=function(W,Y){var k,P;return!!((k=window.h5vcc)==null?0:(P=k.settings)==null?0:P.set(W,Y))}; ADd=function(){var W,Y,k,P=(W=window.h5vcc)==null?void 0:(Y=W.settings)==null?void 0:(k=Y.getPersistentSettingAsString)==null?void 0:k.call(Y,"cpu_usage_tracker_intervals");if(P!=null){var T;W=(T=JSON.parse(P))!=null?T:[];T=W.filter(function(O){return O.type==="total"}).map(function(O){return O.seconds}); Y=g.p(rDd);for(k=Y.next();!k.done;k=Y.next())k=k.value,T.indexOf(k)===-1&&W.push({type:"total",seconds:k});var I,X;(I=window.h5vcc)==null||(X=I.settings)==null||X.set("cpu_usage_tracker_intervals_enabled",1);var h,B;(h=window.h5vcc)==null||(B=h.settings)==null||B.set("cpu_usage_tracker_intervals",JSON.stringify(W))}}; zid=function(){var W=window.H5vccPlatformService,Y="";if(W&&W.has("dev.cobalt.coat.clientloginfo")&&(W=W.open("dev.cobalt.coat.clientloginfo",function(){}))){var k=W.send(new ArrayBuffer(0)); k&&(Y=String.fromCharCode.apply(String,g.ZX(new Uint8Array(k))));W.close()}return Y}; g.kL=function(W){g.e.call(this);var Y=this;this.provider=W;this.logger=new g.H_("qoe");this.W=new Map;this.sequenceNumber=1;this.Kg=NaN;this.b7="N";this.L=this.CS=this.Sh=this.A5=this.K=0;this.f1=this.UP=this.X=this.GJ="";this.KH=this.Fr=NaN;this.D_=0;this.xq=-1;this.tT=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.A9=this.isEmbargoed=this.TJ=this.isOffline=this.isBuffering=!1;this.rZ=[];this.N=null;this.Lg=this.T=this.e1=this.G=!1;this.J=-1;this.rD=!1;this.DY=new g.C_(this.iy,750,this);this.zS= this.adCpn=this.gD=this.contentCpn="";this.adFormat=void 0;this.Qa=0;this.bz=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.UV=new Set(["gd","pw","gp","gm"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.K1=!1;this.Gn=NaN;this.OP=0;this.J9=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.xm=!1;this.LH=new Set;this.zW={f3:function(I){Y.f3(I)}, lw6:function(){return Y.C}, s3:function(){return Y.contentCpn}, m8g:function(){return Y.gD}, reportStats:function(){Y.reportStats()}, Xsq:function(){return Y.W.get("cat")||[]}, xG:function(I){return Y.W.get(I)||[]}, nBi:function(){return Y.W}, XDq:function(){return 0}, CW5:function(){return{adCpn:Y.adCpn,zS:Y.zS,adFormat:Y.adFormat}}}; this.wD=this.provider.zJ.U("html5_qoe_relaxed_reporting");var k=g.W2(this.provider.zJ.experiments,"html5_qoe_proto_mock_length");k&&!YL.length&&(YL=GMC(k));g.v(this,this.DY);try{var P,T;(T=(P=navigator).getBattery)==null||T.call(P).then(function(I){Y.N=I})}catch(I){}g.$L(this,0,"vps",["N"]); W.zJ.OR()&&(this.OP=(0,g.q5)(),this.Gn=g.XU(function(){var I=(0,g.q5)(),X=I-Y.OP;X>500&&Y.y5("vmlock",{diff:X.toFixed()});Y.OP=I},250)); this.provider.videoData.ws&&(this.remoteControlMode=dqC[this.provider.videoData.ws]||0);this.provider.videoData.eA&&(k=Sf0(this.provider.videoData.eA),k==null?0:k.length)&&(this.remoteConnectedDevices=k);W.zJ.OR()&&(this.Q5=new ilq,g.v(this,this.Q5));k=g.W2(W.zJ.experiments,"html5_js_self_profiler_sample_interval_ms");W=g.W2(W.zJ.experiments,"html5_js_self_profiler_max_samples");k>0&&W>0&&(this.V5=new WB(k,W),g.v(this,this.V5))}; PB=function(W,Y,k){var P=W.W.get(Y);P?P.push(k):W.W.set(Y,[k])}; g.$L=function(W,Y,k,P){PB(W,k,Y.toFixed(3)+":"+P.join(":"))}; mq5=function(W,Y){var k=W.adCpn||W.provider.videoData.clientPlaybackNonce,P=W.provider.getCurrentTime(k);g.$L(W,Y,"cmt",[P.toFixed(3)]);k=P=W.provider.tD(k);if((!W.C||W.provider.zJ.U("html5_shorts_gapless_no_gllat")&&rR(W.provider.videoData)?0:k*1E3>W.C.YO+100)&&W.C){var T=W.C;k=T.isAd;P=P*1E3-T.YO;W.mE=Y*1E3-T.ezP-P-T.xa5;T=(0,g.q5)()-P;Y=W.mE;P=W.provider.videoData;var I=P.isAd();if(k||I){I=(k?"ad":"video")+"_to_"+(I?"ad":"video");var X={};P.X&&(X.cttAuthInfo={token:P.X,videoId:P.videoId});X.startTime= T-Y;Jw(I,X);g.Ek({targetVideoId:P.videoId,targetCpn:P.clientPlaybackNonce},I);KS("pbs",T,I)}else T=W.provider.W6.w_(),T.X!==P.clientPlaybackNonce?(T.C=P.clientPlaybackNonce,T.K=Y):P.xZ()||g.Kx(new g.Qq("CSI timing logged before gllat",{cpn:P.clientPlaybackNonce}));W.y5("gllat",{l:W.mE.toFixed(),prev_ad:+k});delete W.C}}; ju=function(W,Y){Y=Y===void 0?NaN:Y;Y=Y>=0?Y:g.TA(W.provider);var k=W.provider.W6.rH(),P=k.FV-(W.Fr||0);P>0&&g.$L(W,Y,"bwm",[P,(k.DU-(W.KH||0)).toFixed(3)]);isNaN(W.Fr)&&k.FV&&W.isOffline&&W.f3(!1);W.Fr=k.FV;W.KH=k.DU;isNaN(k.bandwidthEstimate)||g.$L(W,Y,"bwe",[k.bandwidthEstimate.toFixed(0)]);W.provider.zJ.OR()&&Object.keys(k.W).length!==0&&W.y5("bwinfo",k.W);if(W.provider.zJ.OR()||W.provider.zJ.U("html5_log_meminfo"))P=usV(),Object.values(P).some(function(I){return I!==void 0})&&W.y5("meminfo", P); if(W.provider.zJ.OR()){var T;(P=(T=W.Q5)==null?void 0:MW2(T))&&Object.values(P).some(function(I){return I!=null})&&W.y5("cpuinfo",P)}W.V5&&W.y5("jsprof",W.V5.flush()); W.N&&g.$L(W,Y,"bat",[W.N.level,W.N.charging?"1":"0"]);T=W.provider.W6.getVisibilityState();W.xq!==T&&(g.$L(W,Y,"vis",[T]),W.xq=T);mq5(W,Y);(T=Dqd(W.provider))&&T!==W.D_&&(g.$L(W,Y,"conn",[T]),W.D_=T);g9q(W,Y,k)}; FOC=function(W){var Y=W.provider.W6.rH(),k=g.TA(W.provider);g9q(W,k,Y);var P=Y.J;Y=Y.T;isNaN(P)||(W.provider.zJ.U("html5_unified_live_latency_reporting")&&!isNaN(Y)&&Y?g.$L(W,k,"e2el",[P.toFixed(3),Y.toFixed(3)]):g.$L(W,k,"e2el",[P.toFixed(3)]))}; g9q=function(W,Y,k){if(!isNaN(k.du)){var P=k.du;k.K96E3&&(new g.C_(W.reportStats,0,W)).start()}}; yDC=function(W){W.provider.videoData.Cn&&Ir(W,"prefetch");W.provider.videoData.xm&&W.y5("reload",{r:W.provider.videoData.reloadReason,ct:W.provider.videoData.xm});W.provider.videoData.e1&&Ir(W,"monitor");W.provider.videoData.isLivePlayback&&Ir(W,"live");qG&&Ir(W,"streaming");W.provider.videoData.ws&&W.y5("ctrl",{mode:W.provider.videoData.ws},!0);if(W.provider.videoData.eA){var Y=W.provider.videoData.eA.replace(/,/g,"_");W.y5("ytp",{type:Y},!0)}W.provider.videoData.hw&&(Y=W.provider.videoData.hw.replace(/,/g, "."),W.y5("ytrexp",{ids:Y},!0));Y=W.provider.videoData;var k=W.provider.zJ.U("enable_white_noise")||W.provider.zJ.U("enable_webgl_noop"),P=g.vn(Y)||g.WV(Y)||g.Y9(Y)||g.$9(Y);(k||P)&&(k=(0,g.Xm)())&&W.W.set("gpu",[k]);ZA(W.provider.videoData)&&g.$L(W,g.TA(W.provider),"dt",["1"]);Y.cotn&&!ZA(Y)&&W.f3(!0);W.provider.zJ.OR()&&(Y=(0,g.q5)()-W.provider.zJ.fN,W.y5("playerage",{secs:Math.pow(1.6,Math.round(Math.log(Y/1E3)/Math.log(1.6))).toFixed()}));W.T=!0;W.Kg=g.XU(function(){W.reportStats()},1E4)}; o90=function(W,Y,k){var P=g.TA(W.provider);eiC(W,P,Y,0,k);ju(W,P);QRS(W)}; eiC=function(W,Y,k,P,T){var I=W.provider.zJ.W.cbrver;W.provider.zJ.W.cbr==="Chrome"&&/^96[.]/.test(I)&&k==="net.badstatus"&&/rc\.500/.test(T)&&v95(W,3);W.provider.zJ.U("html5_use_ump")&&/b248180278/.test(T)&&v95(W,4);I=W.provider.getCurrentTime(W.adCpn||W.provider.videoData.clientPlaybackNonce);P=P===1?"fatal":"";k=[k,P,I.toFixed(3)];P&&(T+=";a6s."+cE());T&&k.push(CfX(T));g.$L(W,Y,"error",k);W.T=!0}; LOz=function(W,Y){var k=g.TA(W.provider);if(!W.provider.zJ.experiments.Nq("html5_refactor_sabr_video_format_selection_logging")||Y.W.id!==W.GJ){var P=[Y.W.id,Y.K,W.GJ,Y.reason];Y.token&&P.push(Y.token);g.$L(W,k,"vfs",P);W.GJ=Y.W.id;P=W.provider.W6.getPlayerSize();if(P.width>0&&P.height>0){P=[Math.round(P.width),Math.round(P.height)];var T=g.nh();T>1&&P.push(T);g.$L(W,k,"view",P)}W.e1||(W.provider.zJ.OR()&&Ir(W,"rqs2"),W.provider.videoData.W&&FK(W.provider.videoData.W)&&W.W.set("preload",["1"]));W.e1= !0;W.T=!0}Y.reason==="m"&&++W.Qa===100&&v95(W,2);g.$L(W,k,"vps",[W.b7]);W.wD||W.reportStats(k)}; Uqq=function(W){W.J>=0||(W.provider.zJ.jW||W.provider.W6.getVisibilityState()!==3?W.J=g.TA(W.provider):W.rD=!0)}; lAC=function(W,Y,k){var P=g.TA(W.provider);g.$L(W,P,"vfi",[Y==="A"?"":""+(k!=null?k:0),Y])}; bld=function(W,Y,k){if(W.provider.zJ.experiments.Nq("html5_refactor_sabr_audio_format_selection_logging")){Y=k.W;var P=[Y.audio&&Y.video?Y.K_?Y.K_:"":Y.id];Y.Ib&&Y.Ib.id&&P.push(Y.Ib.id);Y=P.join(";");Y!==W.X&&(P=[Y,W.X,k.reason],k.token&&P.push(k.token),g.$L(W,g.TA(W.provider),"afs",P),W.X=Y)}else k.W.id!==W.X&&(P=[k.W.id,W.X,k.reason],k.token&&P.push(k.token),g.$L(W,Y,"afs",P),W.X=k.W.id)}; Ir=function(W,Y){PB(W,"cat",Y)}; cD2=function(W,Y,k,P,T){var I=g.TA(W.provider);Y!==1&&Y!==3&&Y!==5||g.$L(W,I,"vps",[W.b7]);PB(W,"xvt","t."+I.toFixed(3)+";m."+T.toFixed(3)+";g.2;tt."+Y+";np.0;c."+k+";d."+P)}; v95=function(W,Y){W.Lg||(PB(W,"fcnz",""+Y),W.Lg=!0)}; CfX=function(W){/[^a-zA-Z0-9;.!_-]/.test(W)&&(W=W.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return W}; g.hS=function(W,Y,k,P,T,I,X,h,B,O){h=h===void 0?!1:h;g.e.call(this);var u=this;this.W6=W;this.schedule=Y;this.policy=k;this.H6=P;this.wD=B;this.LH=O;this.j1=null;this.GJ=this.V5=this.Fr=this.Kg=0;this.y0=this.VM=this.isSuspended=!1;this.bz="";this.UV={};this.J9=NaN;this.K1=0;this.L=null;this.Gn=this.UP=!1;this.LJ=0;this.e1=!1;this.OP=this.Lg=0;this.KH=null;this.Dn=!1;this.XZ=function(){return u.W6.XZ()}; this.timing=new PaF(this.LH);this.N=new Nb(this.schedule,this.policy);this.D_=new g.C_(this.u7,0,this);this.f1=new g.C_(this.u7,this.policy.tT,this);this.Da=new g.C_(this.u7,1E3,this);this.rZ=new g.C_(this.u7,void 0,this);this.Q5=new g.C_(function(){u.isSuspended||u.u7()},1E4,this); this.xq=new g.C_(this.p5P,250,this);this.X=this.currentTime=NaN;this.BQ=new Qh(5);this.TJ=this.timestampOffset=NaN;this.logger=new g.H_("dash");this.DY=Infinity;this.zW={HCa:function(){return u.qx}, Iwz:function(){return u.J}, getAudioTrack:function(){return u.audioTrack}, s51:function(){return u.videoTrack}, getManifest:function(){return u.H6}, S$r:function(){return u.K}, u7:function(){u.u7()}, pS:function(){u.Kg=0;u.pS()}, YdP:function(M){return Su(u,u.videoTrack,u.j1.K,M)}}; W=B&&B.Jg();B&&(Nfq(B,this.H6,this.policy),this.TJ=Date.now());this.W=new ZC(this,this.N,k,this.H6,T,W);k=g7F(this.W,I,X&&X.id);this.audioTrack=new C8(this,this.policy,k.audio,this.timing);this.videoTrack=new C8(this,this.policy,k.video,this.timing);this.videoTrack.T.gD=this.audioTrack.HT();this.rD={updateend:this.yO,error:this.c56};g.v(this,this.D_);g.v(this,this.f1);g.v(this,this.Da);g.v(this,this.rZ);g.v(this,this.Q5);k=this.policy.K6&&this.policy.YJ?!zkz(this.videoTrack.W.info):!1;this.tT=xNC({Ch:this.policy.G.Ch|| k,YJ:this.policy.YJ&&!k,No:this.policy.No});this.G=XVX(this,this.policy,this.tT,this.schedule,this.BQ,function(M,t){return xqq(u,M,t)}); this.J=new WG(this,this.H6,this.policy,this.videoTrack,this.audioTrack,h);this.policy.bz&&this.policy.K&&(this.gD=new G87(this.policy.UP,function(M,t){u.y5(M,t)})); this.qx=new PS(this,this.H6,this.videoTrack,this.audioTrack,this.policy);h=this.policy.bK?this.W6.getVideoData().I3:null;this.C=new SG(this,this.policy,this.videoTrack,this.audioTrack,this.UV,this.J,this.timing,this.N,this.schedule,this.H6,this.W,this.G,k,h);g.v(this,this.C);this.T=new uJ(this,this.policy,this.videoTrack,this.audioTrack,this.H6,T,A6(this.W6.getVideoData()),X==null?void 0:X.id);g.v(this,this.T);E3C(this.T,I);this.K=new r62(this.W6,this,this.policy,this.audioTrack,this.videoTrack,this.H6, this.schedule,this.W,this.T,this.timing,this.J,this.gD);g.v(this,this.K);this.A5=this.W6.GW.eT.TB;this.policy.C||fAC(this);if(this.policy.Zm){var Z;this.A9=new aGX(this.videoTrack.W.index,(Z=this.W6.getVideoData().clientPlaybackNonce)!=null?Z:"",this.W6,this.policy.A9);this.policy.A9===3&&(this.xm=new g.C_(this.BY,200,this),this.xm.start(),g.v(this,this.xm))}this.logger.debug("Created")}; fAC=function(W){var Y,k;if((Y=W.A5)==null?0:(k=Y.jY)==null?0:k.itagDenylist){var P;W.tP((P=W.A5)==null?void 0:P.jY.itagDenylist)}var T;if((T=W.A5)==null?0:T.playbackStartPolicy){var I,X;Y9V(W.policy,(I=W.A5)==null?void 0:I.playbackStartPolicy,3,(X=W.A5)==null?void 0:X.H4())}if(W.policy.UK){Y=W.B5();var h;(k=Y?(h=W.A5)==null?void 0:h.uA.get(Y):void 0)&&W.K.u3(k)}if(!W.H6.A5){var B;h=(B=W.A5)==null?void 0:B.Qo;(h==null?0:h.M5)&&(h==null?0:h.yK)&&W.H6.t9&&fr(W.H6,h.M5,h.yK)}var O;((O=W.A5)==null?0:O.Ax)&& (B=W.A5.Ax.get(W.B5()||""))&&W.H6&&B.formatId&&(W=W.H6.J.get(cR(B.formatId)))&&(W.info.debugInfo=B.debugInfo)}; VWF=function(W,Y){var k=cR(g.VR(Y.W.info,W.H6.t9)),P,T=((P=W.wD)==null?void 0:P.rU(k))||[];if(T.length===0)return W.y5("ombmsi",{}),!1;T=new IO(T);if(P=!W.policy.A5||isFinite(W.getCurrentTime())||W.W6.sG()){a:{P=W.getCurrentTime();T=g.p(T.EP);for(var I=T.next();!I.done;I=T.next())if(I=I.value,I.type===3&&P>=I.C&&P<=I.X){P=!0;break a}P=!1}P=!P}if(P)return W.y5("ostmf",{ct:W.getCurrentTime(),a:Y.W.info.xH()}),!1;(W=W.wD)!=null&&(W.jj.get(k).Uc=!0);return!0}; NW7=function(W){if(!W.H6.t9)return!0;var Y=W.W6.getVideoData();if(W.W6.ri())return W.y5("ombpa",{}),!1;var k,P;if(!!((k=W.A5)==null?0:(P=k.Qo)==null?0:P.TeJ)!==W.H6.Fj)return W.y5("ombplmm",{}),!1;k=Y.K1||Y.liveUtcStartSeconds||Y.rZ;if(W.H6.Fj&&k)return W.y5("ombplst",{}),!1;if(W.H6.A5)return W.y5("ombab",{}),!1;k=Date.now();return V_(W.H6)&&!isNaN(W.TJ)&&k-W.TJ>W.policy.hv*1E3?(W.y5("ombttl",{}),!1):W.H6.UU&&W.H6.T||!W.policy.N2&&W.H6.isPremiere||o4(Y)!==0&&!W.policy.W||Y.U("html5_disable_onesie_media_for_mosaic")&& uf(Y)||Y.U("html5_disable_onesie_media_for_lifa_eligible")&&BV(Y)?!1:!0}; aA2=function(W,Y){var k=Y.W,P=W.H6.t9;if(NW7(W))if(W.wD&&W.wD.jj.has(cR(g.VR(k.info,P)))){if(P=cR(g.VR(k.info,P)),VWF(W,Y)){var T=new IO(W.wD.rU(P)),I=function(X){try{if(X.x4())W.handleError(X.NI(),X.B3()),$V(Y,X),Sq(X.info)&&hO(W.C,Y,k,!0),W.u7();else if(ihd(W.C,X)){var h;(h=W.J)==null||qWz(h,X.info,W.L);W.u7()}}catch(B){X=iZ(B),W.handleError(X.errorCode,X.details,X.severity),W.l5()}}; k.J=!0;X$(T)&&(lX(Y,new Tg(W.policy,P,T,W.wD,I)),am(W.timing))}}else W.y5("ombfmt",{})}; W4z=function(W,Y){Y=Y||W.videoTrack&&W.videoTrack.K&&W.videoTrack.K.startTime||W.getCurrentTime();var k=B5,P=W.videoTrack,T=W.W;Y=T.nextVideo&&T.nextVideo.index.o7(Y)||0;T.gD!==Y&&(T.OP={},T.gD=Y,iX(T,T.W));Y=!T.W.isLocked()&&T.N>-1&&(0,g.q5)()-T.NY.W&&Y.reason==="b";P||T||k?(W.W6.yg({reattachOnConstraint:P?"u":T?"drm":"perf",lo:Y.K,up:Y.W}),W.policy.zg||(W.T.W.K=!1)):(W.policy.zg&&(W.T.W.K=!1),Vv(W))}}else if(!Fzv(W.W,Y)&&W.videoTrack){W.logger.debug(function(){return"Setting constraint: r="+Y.reason+" u="+Y.W}); k=W.W.W;X16(W,QOF(W.W,Y));W4z(W);P=Y.isLocked()&&Y.reason==="m"&&W.W.Kg;T=W.policy.PU&&Y.reason==="l"&&P5(W.videoTrack);k=k.W>Y.W&&Y.reason==="b";var I=W.W.rD&&!iY();P||T||k||I?W.W6.yg({reattachOnConstraint:P?"u":T?"drm":I?"codec":"perf"}):Vv(W)}}; hQF=function(W,Y,k){if((!W.j1||qt(W.j1)&&!W.policy.YF)&&!W.qx.isSeeking()&&(W.policy.W||P5(Y)&&Y.W.sE()&&W.W.A5)){var P=W.getCurrentTime()+deF(W.N,Y,k);W.logger.debug(function(){return"Clearing back to "+P.toFixed(3)}); QPV(Y,P)}}; X16=function(W,Y){Y&&(W.logger.debug(function(){return"Logging new format: "+$B(Y.video.info)}),B71(W.W6,new Xh(Y.video,Y.reason))); if(W.W.V5){var k=v7z(W.W,"a");W.W6.xX(new Xh(k.audio,k.reason))}}; Vv=function(W){g.L_(W.D_)}; t_7=function(W){W.policy.tT&&W.policy.No&&Math.min(wqF(W.videoTrack),wqF(W.audioTrack))*1E3>W.policy.zf?g.L_(W.f1):W.u7()}; Ouv=function(W,Y){var k=(0,g.q5)()-Y,P=W5(W.audioTrack,!0)*1E3,T=W5(W.videoTrack,!0)*1E3;W.logger.debug(function(){return"Appends paused for "+k}); if(W.policy.J&&(W.y5("apdpe",{dur:k.toFixed(),abuf:P.toFixed(),vbuf:T.toFixed()}),Ie(W.policy))){var I=YJ(W.N);W.y5("sdps",{ct:Y,ah:P.toFixed(),vh:T.toFixed(),mr:$J(W.N,W.y0,I),bw:I.toFixed(),js:W.isSeeking(),re:+W.y0,ps:(W.policy.DT||"").toString(),rn:(W.policy.f6||"").toString()})}}; ur0=function(W){if(UGd(W.videoTrack))return W.logger.debug("Pausing appends for server-selectable format"),"ssf";if(W.policy.rD&&cn5(W.videoTrack)&&cn5(W.audioTrack))return"updateEnd";if(kV(W.audioTrack)||kV(W.videoTrack)&&W.videoTrack.W.info.lz!=="f")return"";if(W.qx.isSeeking()){var Y=W.N;var k=W.videoTrack;var P=W.audioTrack;if(Y.policy.W){var T=Y.policy.Ka;Ie(Y.policy)&&(T=$J(Y,!1,YJ(Y)));Y=T;k=W5(P,!0)>=Y&&W5(k,!0)>=Y}else k.J.length||P.J.length?(T=k.W.info.c6+P.W.info.c6,T=10*(1-YJ(Y)/T),Y= Math.max(T,Y.policy.Ka),k=W5(P,!0)>=Y&&W5(k,!0)>=Y):k=!0;if(!k)return"abr";k=W.videoTrack;if(k.J.length>0&&k.T.K.length===1&&uBq(k.T).info.L360);P=Ie(W.policy)&&W.policy.xF;if(!W.y0||!P&&k)return"";k=W.policy.yL;Ie(W.policy)&&(k=$J(W.N,W.y0,YJ(W.N)));k=oOF(W.videoTrack,W.getCurrentTime(),k)||oOF(W.audioTrack,W.getCurrentTime(), k);return Ie(W.policy)?k?"mbnm":"":(W.videoTrack.J.length>0||W.audioTrack.J.length>0||I_2(W.C,W.videoTrack,W.audioTrack)||I_2(W.C,W.audioTrack,W.videoTrack))&&k?"nord":""}; ZuC=function(W){if(W.G){var Y=W.G.u7(W.audioTrack,X_(W.j1.K.Mt()));Y&&W.W6.seekTo(Y,{jx:!0,Fi:"pollSubsegmentReadahead",ul:!0})}}; nT2=function(W,Y,k){if(W.policy.rD&&cn5(Y))return!1;if(k.H8())return!0;if(!k.UJ())return!1;var P=Zn(Y);if(!P||P.info.type===6)return!1;var T;if(W.policy.Hr||((T=W.J)==null?0:p_v(T,Y,P.info.t5)))W.GJ=0;else return W.qx.isSeeking()&&Vv(W),W.GJ=W.GJ||(0,g.q5)(),!1;if(!Su(W,Y,k,P.info))return!1;if(W.H6.K&&P.info.K===0){if(T=iu1(Y,k,P)){var I=Ut(Y);W.y5("initchg",{it:P.info.W.info.id,sr:!!I&&I.W===P.info.W,ty:P.info.type,seg:P.info.t5})}I=g.cT(P.info.W.info);W.policy.KN&&I&&!T&&YMF(P)}I=W.G&&!!W.G.T&& Y.W.info.audio;T=W.H6.isManifestless||P.C;if(!(W.H6.K&&P.info.K!==0||T&&!I)&&MkS(W,Y,k,P))return!0;if(I)return!1;I=S1(W,Y);I=W.getCurrentTime()+I;if(P.info.C>I)return W.policy.W&&tkX(W,Y),W.policy.GT&&Lx6(Y.T,I,!1),!1;qHX(W,Y);var X;W.policy.jW&&k===((X=W.j1)==null?void 0:X.W)&&W.e1&&(k.rN()===0?(W.e1=!1,W.policy.jW=!1):W.Lg=k.rN());if(!RQz(W,k,P,Y))return!1;W.policy.rD&&P.info.IB()?(W.W6.V().OR()&&W.y5("eosl",{ls:P.info.TW()}),P.isLocked=!0):(Y.YB(P),o77(W.W,P.info),W.logger.debug(function(){return"Appended "+ P.info.TW()+", buffered: "+PC(k.Mt())})); T&&Hu1(W,P.info.W.zG);return!0}; tkX=function(W,Y){Y===W.videoTrack?W.V5=W.V5||(0,g.q5)():W.Fr=W.Fr||(0,g.q5)()}; qHX=function(W,Y){Y===W.videoTrack?W.V5=0:W.Fr=0}; RQz=function(W,Y,k,P){var T=W.policy.D_?(0,g.q5)():0,I=k.C&&k.info.W.W||void 0,X=k.K;k.C&&(X=p16(W,k,X)||X);var h=IC(X);X=W.policy.D_?(0,g.q5)():0;Y=GTV(W,Y,h,k.info,I);(P=P.N)!=null&&(I=k.info,T=X-T,X=(0,g.q5)()-X,!P.K||ql7(P.K,I)&&P.K.t5===I.t5||P.flush(),P.T+=T,P.J+=X,T=1,!P.K&&I.K&&(T=2),n8(P,T,Y),X=Math.ceil(I.K/1024),T===2&&P.W.add(X),P.W.add(Math.ceil((I.K+I.J)/1024)-X),P.K=I);W.OP=0;if(Y===0)return W.UP&&(W.logger.debug("Retry succeed, back to normal append logic."),W.UP=!1,W.Gn=!1),W.K1= 0,!0;if(Y===2||Y===5)return K4q(W,"checked",Y,k.info),!1;if(Y===1){if(!W.UP)return W.logger.debug("QuotaExceeded, retrying."),W.UP=!0,!1;if(!W.Gn)return W.Gn=!0,W.W6.seekTo(W.getCurrentTime(),{Fi:"quotaExceeded",ul:!0}),!1;k.info.qa()?(T=W.policy,T.Fr=Math.floor(T.Fr*.8),T.wD=Math.floor(T.wD*.8)):(T=W.policy,T.Lg=Math.floor(T.Lg*.8),T.wD=Math.floor(T.wD*.8));W.policy.W?hk(W.T.W,k.info.W,!1):tk(W.W,k.info.W)}W.W6.yg({reattachOnAppend:Y});return!1}; p16=function(W,Y,k){var P;if(P=W.policy.qY&&W.j1&&!W.j1.L&&!W.W6.ez())Y=Y.info.W.info,P=Y.pN()&&vT(Y)&&Y.video&&Y.video.width<3840&&Y.video.width>Y.video.height;if(P&&(W.j1.L=!0,R9('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return k=B3F(k),W.policy.J&&W.y5("sp4k",{s:!!k}),k}; K4q=function(W,Y,k,P){var T="fmt.unplayable",I=1;k===5||k===3?(T="fmt.unparseable",W.policy.W?!P.W.info.video||BG(W.T.W).size>0||hk(W.T.W,P.W,!1):!P.W.info.video||BG(W.W.C).size>0||tk(W.W,P.W)):k===2&&(W.K1<15?(W.K1++,T="html5.invalidstate",I=0):T="fmt.unplayable");P=T8(P);var X;P.mrs=(X=W.j1)==null?void 0:pY(X);P.origin=Y;P.reason=k;P.trg="appenderr";W.handleError(T,P,I)}; rn2=function(W,Y,k,P,T){var I=W.H6;var X=W.policy.W,h=!1,B=-1,O;for(O in I.W){var u=WC(I.W[O].info.mimeType)||I.W[O].info.qa();if(P===u)if(u=I.W[O].index,u.di(Y.t5)){h=u;var Z=Y,M=h.XC(Z.t5);M&&M.startTime!==Z.startTime?(h.segments=[],h.H_(Z),h=!0):h=!1;h?B=Y.t5:!Y.pending&&X&&(Z=u.getDuration(Y.t5),Z!==Y.duration&&(I.publish("clienttemp","mfldurUpdate",{itag:I.W[O].info.itag,seg:Y.t5,od:Z,nd:Y.duration},!1),u.H_(Y),h=!0))}else u.H_(Y),h=!0}B>=0&&(X={},I.publish("clienttemp","resetMflIndex",(X[P? "v":"a"]=B,X),!1));I=h;cMX(W.qx,Y,P,I);if(W.policy.bz&&W.policy.K&&(B=Y.w5||null)){var t;X=(t=W.K)==null?void 0:UsV(t).requestNumber;var q;(q=W.gD)==null||Kzd(q,B,X,Y.t5)}W.J.Xf(Y,k,P,T);Y.t5===W.H6.UU&&I&&la(W.H6)&&Y.startTime>la(W.H6)&&(W.H6.gD=Y.startTime+(isNaN(W.timestampOffset)?0:W.timestampOffset),W.qx.isSeeking()&&W.qx.targetTime5)return W.OP= 0,W.W6.yg({initSegStuck:1,as:P.info.TW()}),!0}else W.OP=0,W.KH=P;W.policy.TF&&(k.abort(),(X=Y.N)!=null&&(n8(X,4),X.flush()));T=GTV(W,k,I,B,T);var O;(O=Y.N)==null||f20(O,T,B);if(T!==0)return ET0(W,T,P),!0;P.info.qa()?SW7(W.timing):hLd(W.timing);W.logger.debug(function(){return"Appended init for "+P.info.W.info.id}); Hu1(W,P.info.W.zG);return k.j6()}; iu1=function(W,Y,k){if(Y.gq()==null){W=Ut(W);if(!(Y=!W||W.W!==k.info.W)){a:if(W=W.N,k=k.info.N,W.length!==k.length)k=!1;else{for(Y=0;Y1)return 6;X.OP=new g.C_(function(){var h=Zn(X);W.Xr()||h==null||!h.isLocked?W.W6.V().OR()&&W.y5("eosl",{delayA:h==null?void 0:h.info.TW()}):JGF(X)?(W.W6.V().OR()&&W.y5("eosl",{dunlock:h==null?void 0:h.info.TW()}),sJ7(W,X===W.audioTrack)):(W.y5("nue",{ls:h.info.TW()}),h.info.A5+=1,W.j1&&W.pS())},1E4,W); W.W6.V().OR()&&W.y5("eosl",{delayS:P.TW()});X.OP.start()}W.policy.kP&&(P==null?void 0:P.W)instanceof B_&&P.IB()&&W.y5("poseos",{itag:P.W.info.itag,seg:P.t5,lseg:P.W.index.QU(),es:P.W.index.J});Y.appendBuffer(k,P,T)}catch(h){if(h instanceof DOMException){if(h.code===11)return 2;if(h.code===12)return 5;if(h.code===22||h.message.indexOf("Not enough storage")===0)return Y=Object.assign({name:"QuotaExceededError",buffered:PC(Y.Mt()).replace(/,/g,"_"),vheap:Nw(W.videoTrack),aheap:Nw(W.audioTrack),message:g.s$(h.message, 3),track:W.j1?Y===W.j1.K?"v":"a":"u"},usV()),W.handleError("player.exception",Y),1;g.GH(h)}return 4}return W.j1.Lu()?3:0}; u5=function(W,Y,k){$bd(W,k.Fi||"unknown");W.W6.seekTo(Y,k)}; Hu1=function(W,Y){Y&&W.W6.j7(new zi(Y.key,Y.type))}; Fh=function(W,Y){W.W6.OO(Y)}; S1=function(W,Y){if(W.policy.A5&&W.UP&&!W.y0)return W.policy.Nm;if(W.UP&&!W.y0)return 3;if(W.isSuspended)return 1;var k;if((k=W.j1)==null?0:k.j1&&k.j1.streaming===!1)return 4;k=(Y.W.info.audio?W.policy.Lg:W.policy.Fr)/(Y.c6*W.policy.PV);if(W.policy.TT>0&&W.j1&&qt(W.j1)&&(Y=Y.W.info.video?W.j1.K:W.j1.W)&&!Y.j6()){Y=Y.Mt();var P=Tc(Y,W.getCurrentTime());P>=0&&(Y=W.getCurrentTime()-Y.start(P),k+=Math.max(0,Math.min(Y-W.policy.TT,W.policy.tv)))}W.policy.wD>0&&(k=Math.min(k,W.policy.wD));return k}; Ds0=function(W,Y){return(S1(W,Y)+W.policy.ZT)*Y.c6}; Qe6=function(W){W.bz&&!W.isSuspended&&xO(W.schedule)&&(rG5(W,W.bz),W.bz="")}; rG5=function(W,Y){Vo(Y,"cms",function(k){W.policy.J&&W.y5("pathprobe",k)},function(k){W.W6.handleError(k)})}; yOd=function(W,Y){if(W.j1&&W.j1.T&&!W.j1.Lu()&&(Y.du=W5(W.videoTrack),Y.K=W5(W.audioTrack),W.policy.J)){var k=Nw(W.videoTrack),P=Nw(W.audioTrack),T=PC(W.j1.K.Mt(),"_",5),I=PC(W.j1.W.Mt(),"_",5);Object.assign(Y.W,{lvq:k,laq:P,lvb:T,lab:I})}Y.bandwidthEstimate=aJ(W.N);var X;(X=W.audioTrack.N)==null||X.flush();var h;(h=W.videoTrack.N)==null||h.flush();W.logger.debug(function(){return Ol(Y.W)})}; ej2=function(W,Y){W.L=Y;W.J&&(W.J.J=Y);W.L.fv(W.videoTrack.W.info.pN());W.C.K=W.L;W.policy.K&&(W.K.L=W.L)}; vV5=function(W,Y){if(W.j1&&W.j1.K){if(W.policy.Ct){var k=fzd(W.audioTrack);if(k&&k.xH()){var P=W.W6;if(P.KF&&(P.KF.W=k,k=P.FA,k.qoe)){k=k.qoe;P=P.KF;var T=g.TA(k.provider);bld(k,T,P)}}}W.policy.gm&&(k=fzd(W.videoTrack))&&k.qa()&&(P=W.W6,P.Fq&&(P.Fq.W=k,k=P.FA,k.qoe&&LOz(k.qoe,P.Fq)));Y-=isNaN(W.timestampOffset)?0:W.timestampOffset;W.getCurrentTime()!==Y&&W.resume();W.qx.isSeeking()&&W.j1&&!W.j1.Lu()&&(P=W.getCurrentTime()<=Y&&Y=Y&&xqq(W,P.startTime,!1)}); return k&&k.startTimeW.getCurrentTime())return k.start/1E3;return Infinity}; wn5=function(W){if(W.W6.getVideoData().isLivePlayback)return!1;var Y=W.W6.bd();if(!Y)return!1;Y=Y.getDuration();if(W.j1&&W.j1.W&&W.j1.K){var k=W.getCurrentTime(),P=W.j1.W.Mt();W=W.j1.K.Mt();P=P?IH(P,k):k;k=W?IH(W,k):k;k=Math.min(P,k);Y=isNaN(k)?!1:k>=Y-.01}else Y=!1;return Y}; ET0=function(W,Y,k){W.policy.u0&&rR(W.W6.getVideoData())?(W.W6.jo()||K4q(W,"sepInit",Y,k.info),b3S(W.W6,"sie")):K4q(W,"sepInit",Y,k.info)}; q9X=function(W){return W.W6.u2()0){var P=k.W.shift();x0d(k,P.info)}k.W.length>0&&(P=k.W[0].time-(0,g.q5)(),k.K.start(Math.max(0,P)))}},0); g.v(this,this.K);Y.subscribe("widevine_set_need_key_info",this.T,this)}; x0d=function(W,Y){a:{var k=Y.cryptoPeriodIndex;if(isNaN(k)&&W.J.size>0)k=!0;else{for(var P=g.p(W.J.values()),T=P.next();!T.done;T=P.next())if(T.value.cryptoPeriodIndex===k){k=!0;break a}k=!1}}W.publish("log_qoe",{wvagt:"reqnews",canskip:k});k||W.publish("rotated_need_key_info_ready",Y)}; fD2=function(){var W={};var Y=W.url;var k=W.interval;W=W.retries;this.url=Y;this.interval=k;this.retries=W}; VG7=function(W,Y){this.statusCode=W;this.message=Y;this.K=this.heartbeatParams=this.errorMessage=null;this.W={};this.nextFairplayKeyId=null}; NP5=function(W,Y,k){k=k===void 0?"":k;g.e.call(this);this.message=W;this.requestNumber=Y;this.timer=k;this.onError=this.onSuccess=null;this.W=new g.z9(5E3,2E4,.2)}; aDz=function(W,Y,k){W.onSuccess=Y;W.onError=k}; YDd=function(W,Y,k,P){var T={timeout:3E4,onSuccess:function(I){if(!W.Xr()){KS("drm_net_r",void 0,W.timer);var X=I.status==="LICENSE_STATUS_OK"?0:9999,h=null;if(I.license)try{h=rZ(I.license)}catch(q){g.GH(q)}if(X!==0||h){h=new VG7(X,h);X!==0&&I.reason&&(h.errorMessage=I.reason);if(I.authorizedFormats){X={};for(var B=[],O={},u=g.p(I.authorizedFormats),Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.trackType&&Z.keyId){var M=WE6[Z.trackType];if(M){M==="HD"&&I.isHd720&&(M="HD720");Z.isHdr&&(M+="HDR");X[M]|| (B.push(M),X[M]=!0);var t=null;try{t=rZ(Z.keyId)}catch(q){g.GH(q)}t&&(O[g.Jx(t,4)]=M)}}h.K=B;h.W=O}I.nextFairplayKeyId&&(h.nextFairplayKeyId=I.nextFairplayKeyId);I.sabrLicenseConstraint&&(h.sabrLicenseConstraint=rZ(I.sabrLicenseConstraint));I=h}else I=null;if(I)W.onSuccess(I,W.requestNumber);else W.onError(W,"drm.net","t.p;p.i")}}, onError:function(I){if(!W.Xr())if(I&&I.error)I=I.error,W.onError(W,"drm.net.badstatus","t.r;p.i;c."+I.code+";s."+I.status,I.code);else W.onError(W,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){W.onError(W,"drm.net","rt.req."+W.requestNumber)}}; P&&(T.Uz="Bearer "+P);g.vw(k,"player/get_drm_license",Y,T)}; $IS=function(W,Y,k,P){g.NR.call(this);this.videoData=W;this.zJ=Y;this.L=k;this.sessionId=P;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.A5=this.Kg=!1;this.J=null;this.wD=[];this.T=[];this.authorizedFormats=[];this.G=!1;this.W={};this.status="";this.X=NaN;this.K=W.C;this.cryptoPeriodIndex=k.cryptoPeriodIndex;W={};Object.assign(W,this.zJ.W);W.cpn=this.videoData.clientPlaybackNonce;this.videoData.TJ&&(W.vvt=this.videoData.TJ,this.videoData.mdxEnvironment&&(W.mdx_environment= this.videoData.mdxEnvironment));this.zJ.wD&&(W.authuser=this.zJ.wD);this.zJ.pageId&&(W.pageid=this.zJ.pageId);isNaN(this.cryptoPeriodIndex)||(W.cpi=this.cryptoPeriodIndex.toString());var T=(T=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.wY()))?T[1]:"";T==="ATV"&&(W.cdt=T);this.C=W;this.C.session_id=P;this.N=!0;this.K.flavor==="widevine"&&(this.C.hdr="1");this.K.flavor==="playready"&&(Y=Number(nA(Y.experiments,"playready_first_play_expiration")),!isNaN(Y)&&Y>=0&&(this.C.mfpe=""+Y),this.N=!1);Y="";g.hn(this.K)? SN(this.K)?(P=k.K)&&(Y="https://www.youtube.com/api/drm/fps?ek="+KUd(P)):(Y=k.initData.subarray(4),Y=new Uint16Array(Y.buffer,Y.byteOffset,Y.byteLength/2),Y=String.fromCharCode.apply(null,Y).replace("skd://","https://")):Y=this.K.K;this.baseUrl=Y;this.fairplayKeyId=nk(this.baseUrl,"ek")||"";if(Y=nk(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(Y);this.wD=k.pN?[g.Jx(k.initData,4)]:k.J;iA(this,{sessioninit:k.cryptoPeriodIndex});this.status="in"}; jr5=function(W,Y){iA(W,{createkeysession:1});W.status="gr";KS("drm_gk_s",void 0,W.videoData.A5);W.url=kAv(W);try{W.J=Y.createSession(W.L,function(k){iA(W,{m:k})})}catch(k){Y="t.g"; k instanceof DOMException&&(Y+=";c."+k.code);W.publish("licenseerror","drm.unavailable",1,Y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}W.J&&(PAS(W.J,function(k,P){TxC(W,k,P)},function(k,P,T){if(!W.Xr()){P=void 0; var I=1;g.hn(W.K)&&g.XF(W.zJ)&&W.zJ.U("html5_enable_safari_fairplay")&&T===1212433232&&(P="ERROR_HDCP",I=W.zJ.U("html5_safari_fairplay_ignore_hdcp")?0:I);W.error("drm.keyerror",I,k,P)}},function(){W.Xr()||(iA(W,{onkyadd:1}),W.A5||(W.publish("sessionready"),W.A5=!0))},function(k){W.CI(k)}),g.v(W,W.J))}; kAv=function(W){var Y=W.baseUrl;RWv(Y)||W.error("drm.net",2,"t.x");if(!nk(Y,"fexp")){var k=["23898307","23914062","23916106","23883098"].filter(function(T){return W.zJ.experiments.experiments[T]}); k.length>0&&(W.C.fexp=k.join())}k=g.p(Object.keys(W.C));for(var P=k.next();!P.done;P=k.next())P=P.value,Y=LT1(Y,P,W.C[P]);return Y}; TxC=function(W,Y,k){if(!W.Xr())if(Y){iA(W,{onkmtyp:k});W.status="km";switch(k){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":IB6(W,Y);return;default:W.publish("ctmp","message_type",{t:k,l:Y.byteLength})}W.Kg||(KS("drm_gk_f",void 0,W.videoData.A5),W.Kg=!0,W.publish("newsession",W));if(jN(W.K)&&(Y=XB2(Y),!Y))return;Y=new NP5(Y,++W.requestNumber,W.videoData.A5);aDz(Y,function(P){SDV(W,P)},function(P,T,I){if(!W.Xr()){var X=0; P.W.K>=3&&(X=1,T="drm.net.retryexhausted");iA(W,{onlcsrqerr:T,info:I});W.error(T,X,I);W.shouldRetry(Zf(X),P)&&hR0(W,P)}}); g.v(W,Y);Bxz(W,Y)}else W.error("drm.unavailable",1,"km.empty")}; IB6=function(W,Y){iA(W,{sdpvrq:1});W.X=Date.now();if(W.K.flavor!=="widevine")W.error("drm.provision",1,"e.flavor;f."+W.K.flavor+";l."+Y.byteLength);else{var k={cpn:W.videoData.clientPlaybackNonce};Object.assign(k,W.zJ.W);k=g.MH("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",k);Y={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, Y)}),responseType:"arraybuffer"};g.nN(k,Y,3,500).then(Ng(function(P){P=P.xhr;if(!W.Xr()){P=new Uint8Array(P.response);var T=String.fromCharCode.apply(null,P);try{var I=JSON.parse(T)}catch(X){}I&&I.signedResponse?(W.publish("ctmp","drminfo",{provisioning:1}),I=(Date.now()-W.X)/1E3,W.X=NaN,W.publish("ctmp","provs",{et:I.toFixed(3)}),W.J&&W.J.update(P)):(I=I&&I.error&&I.error.message,P="e.parse",I&&(P+=";m."+I),W.error("drm.provision",1,P))}}),Ng(function(P){W.Xr()||W.error("drm.provision",1,"e."+P.errorCode+ ";c."+(P.xhr&&P.xhr.status))}))}}; MI=function(W){var Y;if(Y=W.N&&W.J!=null)W=W.J,Y=!(!W.W||!W.W.keyStatuses);return Y}; Bxz=function(W,Y){W.status="km";KS("drm_net_s",void 0,W.videoData.A5);var k=new g.o0(W.zJ.Wu),P={context:g.Pw(k.config_||g.k4())};P.drmSystem=OnC[W.K.flavor];P.videoId=W.videoData.videoId;P.cpn=W.videoData.clientPlaybackNonce;P.sessionId=W.sessionId;P.licenseRequest=g.Jx(Y.message);P.drmParams=W.videoData.drmParams;isNaN(W.cryptoPeriodIndex)||(P.isKeyRotated=!0,P.cryptoPeriodIndex=W.cryptoPeriodIndex);var T,I,X=!!((T=W.videoData.K)==null?0:(I=T.video)==null?0:I.isHdr());P.drmVideoFeature=X?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(P.context&&P.context.client){if(T=W.zJ.W)P.context.client.deviceMake=T.cbrand,P.context.client.deviceModel=T.cmodel,P.context.client.browserName=T.cbr,P.context.client.browserVersion=T.cbrver,P.context.client.osName=T.cos,P.context.client.osVersion=T.cosver;P.context.user=P.context.user||{};P.context.request=P.context.request||{};W.videoData.TJ&&(P.context.user.credentialTransferTokens=[{token:W.videoData.TJ,scope:"VIDEO"}]);P.context.request.mdxEnvironment=W.videoData.mdxEnvironment|| P.context.request.mdxEnvironment;W.videoData.tT&&(P.context.user.kidsParent={oauthToken:W.videoData.tT});g.hn(W.K)&&(P.fairplayKeyId=g.Jx(E81(W.fairplayKeyId)));g.dV(W.zJ,g.hD(W.videoData)).then(function(h){YDd(Y,P,k,h);W.status="rs"})}else W.error("drm.net",2,"t.r;ic.0")}; SDV=function(W,Y){if(!W.Xr())if(iA(W,{onlcsrsp:1}),W.status="rr",Y.statusCode!==0)W.error("drm.auth",1,"t.f;c."+Y.statusCode,Y.errorMessage||void 0);else{KS("drm_kr_s",void 0,W.videoData.A5);if(Y.heartbeatParams&&Y.heartbeatParams.url&&W.videoData.U("outertube_streaming_data_always_use_staging_license_service")){var k=W.K.K.match(/(.*)youtube.com/g);k&&(Y.heartbeatParams.url=k[0]+Y.heartbeatParams.url)}Y.heartbeatParams&&W.publish("newlicense",Y.heartbeatParams);Y.K&&(W.T=Y.K,W.videoData.vQ||W.publish("newlicense", new fD2),W.videoData.vQ=!0,W.G=vQ(W.T,function(P){return P.includes("HDR")})); Y.W&&(W.zJ.U("html5_enable_vp9_fairplay")&&SN(W.K)?(k=g.Jx(E81(W.fairplayKeyId),4),W.W[k]={type:Y.W[k],status:"unknown"}):W.W=Wk(Y.W,function(P){return{type:P,status:"unknown"}})); XB(W.K)&&(Y.message=Lg2(g.Jx(Y.message)));W.J&&(iA(W,{updtks:1}),W.status="ku",W.J.update(Y.message).then(function(){KS("drm_kr_f",void 0,W.videoData.A5);MI(W)||(iA(W,{ksApiUnsup:1}),W.publish("keystatuseschange",W))},function(P){P="msuf.req."+W.requestNumber+";msg."+g.s$(P.message,3); W.error("drm.keyerror",1,P)})); g.hn(W.K)&&W.publish("fairplay_next_need_key_info",W.baseUrl,Y.nextFairplayKeyId);W.zJ.U("html5_enable_vp9_fairplay")&&SN(W.K)&&W.publish("qualitychange",umC(W.T));Y.sabrLicenseConstraint&&W.publish("sabrlicenseconstraint",Y.sabrLicenseConstraint)}}; hR0=function(W,Y){var k=Y.W.getValue();k=new g.C_(function(){Bxz(W,Y)},k); g.v(W,k);k.start();g.dT(Y.W);iA(W,{rtyrq:1})}; Zn6=function(W,Y){for(var k=[],P=g.p(Object.keys(W.W)),T=P.next();!T.done;T=P.next())T=T.value,k.push(T+"_"+W.W[T].type+"_"+W.W[T].status);return k.join(Y)}; in2=function(W){var Y={};Y[W.status]=MI(W)?Zn6(W,"."):W.T.join(".");return Y}; Mud=function(W,Y,k){var P={};P.isHdr=Y.includes("HDR");switch(Y.replace("HDR","").replace("720","")){case "AUDIO":P.trackType=1;break;case "SD":P.trackType=2;break;case "HD":P.trackType=3;break;case "UHD1":P.trackType=4;break;case "UHD2":P.trackType=5;break;default:P.trackType=0}!P.trackType||k[Y]||MI(W)&&!tS(W,Y)||(W.authorizedFormats.push(P),k[Y]=!0)}; tS=function(W,Y){for(var k in W.W)if(W.W[k].status==="usable"&&W.W[k].type===Y)return!0;return!1}; tuX=function(W,Y){for(var k in W.W)if(W.W[k].type===Y)return W.W[k].status}; iA=function(W,Y){var k=k===void 0?!1:k;Ol(Y);(k||W.zJ.OR())&&W.publish("ctmp","drmlog",Y)}; qDV=function(W){var Y=W[0];W[0]=W[3];W[3]=Y;Y=W[1];W[1]=W[2];W[2]=Y;Y=W[4];W[4]=W[5];W[5]=Y;Y=W[6];W[6]=W[7];W[7]=Y}; umC=function(W){return g.n$(W,"UHD2")||g.n$(W,"UHD2HDR")?"highres":g.n$(W,"UHD1")||g.n$(W,"UHD1HDR")?"hd2160":g.n$(W,"HD")||g.n$(W,"HDHDR")?"hd1080":g.n$(W,"HD720")||g.n$(W,"HD720HDR")?"hd720":"large"}; XB2=function(W){for(var Y="",k=0;k'.charCodeAt(P);W=W.J.createSession("video/mp4",Y,k);return new qI(null,null,null,null,W)}; JSv=function(W,Y){var k=W.X[Y.sessionId];!k&&W.T&&(k=W.T,W.T=null,k.sessionId=Y.sessionId,W.X[Y.sessionId]=k);return k}; GAV=function(W,Y){var k=W.subarray(4);k=new Uint16Array(k.buffer,k.byteOffset,k.byteLength/2);k=String.fromCharCode.apply(null,k).match(/ek=([0-9a-f]+)/)[1];for(var P="",T=0;T19.2999?(W=k.n4,k=k.U2,k>=W&&(k=W* .75),Y=(W-k)*.5,k=new uA(Y,W,W-Y-k,this)):k=null;break a;case "widevine":k=new ZB(Y,this,W);break a;default:k=null}if(this.C=k)g.v(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.TY,this),this.C.subscribe("log_qoe",this.Ur,this);OC(this.zJ.experiments);this.Ur({cks:this.W.getInfo()})}; rS7=function(W){var Y=pBF(W.T);Y?Y.then(Ng(function(){zR5(W)}),Ng(function(k){if(!W.Xr()){g.GH(k); var P="t.a";k instanceof DOMException&&(P+=";n."+k.name+";m."+k.message);W.publish("licenseerror","drm.unavailable",1,P,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(W.Ur({mdkrdy:1}),W.N=!0); W.A5&&(Y=pBF(W.A5))}; mI1=function(W,Y,k){W.Fr=!0;k=new zi(Y,k);W.zJ.U("html5_eme_loader_sync")&&(W.X.get(Y)||W.X.set(Y,k));dIF(W,k)}; dIF=function(W,Y){if(!W.Xr()){W.Ur({onInitData:1});if(W.zJ.U("html5_eme_loader_sync")&&W.videoData.J&&W.videoData.J.W){var k=W.G.get(Y.initData);Y=W.X.get(Y.initData);if(!k||!Y)return;Y=k;k=Y.initData;W.X.remove(k);W.G.remove(k)}W.Ur({initd:Y.initData.length,ct:Y.contentType});if(W.W.flavor==="widevine")if(W.TJ&&!W.videoData.isLivePlayback)nn(W);else{if(!(W.zJ.U("vp9_drm_live")&&W.videoData.isLivePlayback&&Y.pN)){W.TJ=!0;k=Y.cryptoPeriodIndex;var P=Y.W;jPd(Y);Y.pN||(P&&Y.W!==P?W.publish("ctmp","cpsmm", {emsg:P,pssh:Y.W}):k&&Y.cryptoPeriodIndex!==k&&W.publish("ctmp","cpimm",{emsg:k,pssh:Y.cryptoPeriodIndex}));W.publish("widevine_set_need_key_info",Y)}}else W.TY(Y)}}; zR5=function(W){if(!W.Xr())if(W.zJ.U("html5_drm_set_server_cert")||SN(W.W)){var Y=W.T.setServerCertificate();Y?Y.then(Ng(function(k){W.zJ.OR()&&W.publish("ctmp","ssc",{success:k})}),Ng(function(k){W.publish("ctmp","ssce",{n:k.name, m:k.message})})).then(Ng(function(){DIX(W)})):DIX(W)}else DIX(W)}; DIX=function(W){W.Xr()||(W.N=!0,W.Ur({onmdkrdy:1}),nn(W))}; gLd=function(W){return W.W.flavor==="widevine"&&W.videoData.U("html5_drm_cpi_license_key")}; nn=function(W){if(W.Fr&&W.N&&!W.gD){for(;W.J.length;){var Y=W.J[0],k=gLd(W)?Iz1(Y):g.Jx(Y.initData);if(SN(W.W)&&!Y.K)W.J.shift();else{if(W.K.get(k))if(W.W.flavor!=="fairplay"||SN(W.W)){W.J.shift();continue}else W.K.delete(k);jPd(Y);break}}W.J.length&&W.createSession(W.J[0])}}; FEd=function(W){var Y,k;g.D(function(P){if(P.W==1){var T;if(T=g.wn()){var I;T=!((I=W.T.K)==null||!I.getMetrics)}return T?g.m(P,W.T.getMetrics(),2):P.return()}Y=P.K;if(!Y)return P.return();VL(Y)||(Y=g.ul(Y));k=/^[A-Za-z0-9_-]+={0,3}$/;k.test(Y)||(Y=g.s$(Y,void 0,!0));W.publish("ctmp","drm",{metrics:Y});g.G1(P)})}; wBF=function(){var W=gwz();return!(!W||W==="visible")}; yS7=function(W){var Y=Qr7();Y&&document.addEventListener(Y,W,!1)}; eRd=function(W){var Y=Qr7();Y&&document.removeEventListener(Y,W,!1)}; Qr7=function(){if(document.visibilityState)var W="visibilitychange";else{if(!document[j0+"VisibilityState"])return"";W=j0+"visibilitychange"}return W}; oLd=function(W){g.e.call(this);var Y=this;this.W6=W;this.sS=0;this.X=this.K=this.C=!1;this.T=0;this.pg=this.W6.V();this.videoData=this.W6.getVideoData();this.J=g.W2(this.pg.experiments,"html5_delayed_retry_count");this.W=new g.C_(function(){Y.W6.Je()},g.W2(this.pg.experiments,"html5_delayed_retry_delay_ms")); g.v(this,this.W)}; lBv=function(W,Y,k){var P=W.videoData.K,T=W.videoData.T,I=W.pg.U("html5_disable_codec_fallback_for_drm")&&W.videoData.t$();rR(W.W6.getVideoData())&&W.pg.U("html5_gapless_fallback_on_qoe_restart")&&b3S(W.W6,"pe");if((Y==="progressive.net.retryexhausted"||Y==="fmt.unplayable"||Y==="fmt.decode")&&!W.W6.vl.C&&P&&P.itag==="22")return W.W6.vl.C=!0,W.Pz("qoe.restart",{reason:"fmt.unplayable.22"}),W.W6.V0(),!0;var X=!1;if(W.videoData.isExternallyHostedPodcast){if(X=W.videoData.dIz)k.mimeType=X.type,W.y5("3pp", {url:X.url});k.ns="3pp";W.W6.SW(Y,1,"VIDEO_UNAVAILABLE",Ol((new g.uZ(Y,k,1)).details));return!0}var h=W.sS+3E4<(0,g.q5)()||W.W.isActive();if(W.pg.U("html5_empty_src")&&W.videoData.isAd()&&Y==="fmt.unplayable"&&/Empty src/.test(""+k.msg))return k.origin="emptysrc",W.Pz("auth",k),!0;h||vLV(W.W6.qz())||(k.nonfg="paused",h=!0,W.W6.pauseVideo());(Y==="fmt.decode"||Y==="fmt.unplayable")&&(T==null?0:lZ(T)||bZ(T))&&(jL0(W.pg.C,T.lz),k.acfallexp=T.lz,X=h=!0);!h&&W.J>0&&(W.W.start(),h=!0,k.delayed="1",--W.J); T=W.W6.loader;h||!((P==null?0:Ul(P))||(P==null?0:vT(P)))||I||(jL0(W.pg.C,P.lz),X=h=!0,k.cfallexp=P.lz);if(!h)return CA1(W,k);I=!1;W.C?W.sS=(0,g.q5)():I=W.C=!0;h=W.videoData;if(h.rD){h=h.rD.MU();var B=Date.now()/1E3+1800;h=h6048E5&&fBz(W,"signature");return!1}; fBz=function(W,Y){try{Y={detail:"pr."+Y},g.H6(W.pg)&&W.pg.U("html5_reload_by_kabuki_app")?W.W6.SW("qoe.restart",1,void 0,Ol(Y),"7"):(W.Pz("qoe.restart",Y),window.location.reload())}catch(k){}}; NxF=function(W,Y){var k=W.pg.C;k.G=!1;k.K=!0;W.Pz("qoe.restart",{e:Y===void 0?"fmt.noneavailable":Y,detail:"hdr"});W.W6.Je(!0)}; aBV=function(W,Y,k,P,T,I){this.videoData=W;this.W=Y;this.reason=k;this.K=P;this.token=T;this.videoId=I}; pn=function(W,Y,k){this.zJ=W;this.dY=Y;this.W6=k;this.L=this.X=this.W=this.T=this.G=this.K=0;this.C=!1;this.N=g.W2(this.zJ.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.J=new Map}; W3d=function(W,Y,k){!W.zJ.U("html5_tv_ignore_capable_constraint")&&g.Zw(W.zJ)&&(k=k.compose(W.l0(Y)));return k}; YS1=function(W){if(W.W6.qz().isInline())return Ms;var Y;W.U("html5_exponential_memory_for_sticky")?Y=fA(W.zJ.CN,"sticky-lifetime")<.5?"auto":AM[iW()]:Y=AM[iW()];return g.JM("auto",Y,!1,"s")}; kdz=function(W,Y){var k,P=$76(W,(k=Y.W)==null?void 0:k.videoInfos);k=W.W6.getPlaybackRate();return k>1&&P?(W=$ZS(W.zJ.C,Y.W.videoInfos,k),new E7(0,W,!0,"o")):new E7(0,0,!1,"o")}; $76=function(W,Y){return Y&&g.Zw(W.zJ)?Y.some(function(k){return k.video.fps>32}):!1}; PzV=function(W,Y){if(W.U("html5_disable_ustreamer_constraint_for_sabr")&&mX(Y.videoData))return Ms;var k=W.W6.n2();W.U("html5_use_video_quality_cap_for_ustreamer_constraint")&&k&&k.kD>0&&ro(Y.videoData.bK)&&(W=k.kD,Y.videoData.bK=new E7(0,W,!1,"u"));return Y.videoData.bK}; T$1=function(W,Y){var k;a:if((k=Y.W)&&k.videoInfos.length){for(var P=g.p(k.videoInfos),T=P.next();!T.done;T=P.next()){T=T.value;var I=void 0;if((I=T.K)==null?0:I.smooth){k=T.video.qualityOrdinal;break a}}k=k.videoInfos[0].video.qualityOrdinal}else k=0;Md0()&&!g.Zw(W.zJ)&&vT(Y.W.videoInfos[0])&&(k=Math.min(k,g.FP.large));P=g.W2(W.zJ.experiments,"html5_chipset_soft_cap");P>0&&(k=Math.min(k,P));if(P=g.W2(W.zJ.experiments,"html5_max_vertical_resolution")){T=4320;for(I=0;IP&&(T=Math.min(T,X.video.qualityOrdinal))}if(T<4320){for(X=I=0;X32){T=!0;break a}}T=!1}T&&(k=Math.min(k,P));(P=g.W2(W.zJ.experiments,"html5_live_quality_cap"))&&Y.videoData.isLivePlayback&&(k=Math.min(k,P));k=jWV(W,Y,k);W=g.W2(W.zJ.experiments,"html5_byterate_soft_cap");return new E7(0,k===4320?0:k,!1,"d",W)}; XFC=function(W){var Y,k,P,T;return g.D(function(I){switch(I.W){case 1:return W.W.W&&typeof((Y=navigator.mediaCapabilities)==null?void 0:Y.decodingInfo)==="function"?g.m(I,Promise.resolve(),2):I.return(Promise.resolve());case 2:k=g.p(W.W.videoInfos),P=k.next();case 3:if(P.done){I.oi(0);break}T=P.value;return g.m(I,Dyq(T),4);case 4:P=k.next(),I.oi(3)}})}; hA6=function(W,Y){if(!Y.videoData.K||W.U("html5_disable_performance_downgrade"))return!1;Date.now()-W.G>6E4&&(W.K=0);W.K++;W.G=Date.now();if(W.K!==4)return!1;SS7(W,Y.videoData.K);return!0}; OdX=function(W,Y,k,P){if(!Y||!k||!Y.videoData.K)return!1;var T=g.W2(W.zJ.experiments,"html5_df_downgrade_thresh"),I=W.U("html5_log_media_perf_info");if(!((0,g.q5)()-W.T<5E3?0:I||T>0))return!1;var X=((0,g.q5)()-W.T)/1E3;W.T=(0,g.q5)();k=k.getVideoPlaybackQuality();if(!k)return!1;var h=k.droppedVideoFrames-W.X,B=k.totalVideoFrames-W.L;W.X=k.droppedVideoFrames;W.L=k.totalVideoFrames;var O=k.displayCompositedVideoFrames===0?0:k.displayCompositedVideoFrames||-1;I&&W.zJ.OR()&&W.W6.y5("ddf",{dr:k.droppedVideoFrames, de:k.totalVideoFrames,comp:O});if(P)return W.W=0,!1;if((B-h)/X>W.N||!T||g.Zw(W.zJ))return!1;W.W=(B>60?h/B:0)>T?W.W+1:0;if(W.W!==3)return!1;SS7(W,Y.videoData.K);W.W6.y5("dfd",Object.assign({dr:k.droppedVideoFrames,de:k.totalVideoFrames},B$F()));return!0}; SS7=function(W,Y){var k=Y.lz,P=Y.video.fps,T=Y.video.qualityOrdinal-1,I=W.J;Y=""+k+(P>49?"p60":P>32?"p48":"");k=YO(k,P,I);T>0&&(k=Math.min(k,T));if(!GA.has(Y)&&qe().includes(Y)){var X=k;k=tM();+k[Y]>0&&(X=Math.min(+k[Y],X));k[Y]!==X&&(k[Y]=X,g.Ke("yt-player-performance-cap",k,2592E3))}else if(GA.has(Y)||I==null){a:{X=X===void 0?!0:X;P=qe().slice();if(X){if(P.includes(Y))break a;P.push(Y)}else{if(!P.includes(Y))break a;P.splice(P.indexOf(Y),1)}g.Ke("yt-player-performance-cap-active-set",P,2592E3)}Wq.set(Y, k)}else GA.add(Y),I==null||I.set(Y,k);W.W6.oA()}; uy6=function(W,Y){if(!Y.W.W)return W.C?new E7(0,360,!1,"b"):Ms;for(var k=!1,P=!1,T=g.p(Y.W.videoInfos),I=T.next();!I.done;I=T.next())Ul(I.value)?k=!0:P=!0;k=k&&P;P=0;T=g.W2(W.zJ.experiments,"html5_performance_cap_floor");T=W.zJ.K?240:T;Y=g.p(Y.W.videoInfos);for(I=Y.next();!I.done;I=Y.next()){var X=I.value;if(!k||!Ul(X))if(I=YO(X.lz,X.video.fps,W.J),X=X.video.qualityOrdinal,Math.max(I,T)>=X){P=X;break}}return new E7(0,P,!1,"b")}; Zdv=function(W,Y){var k=W.W6.qz();return k.isInline()&&!Y.Nd?new E7(0,480,!1,"v"):mX(Y)?Ms:k.isBackground()&&Ml()/1E3>60&&!g.Zw(W.zJ)?new E7(0,360,!1,"v"):Ms}; idC=function(W,Y,k){if(W.zJ.experiments.Nq("html5_disable_client_autonav_cap_for_onesie")&&Y.fetchType==="onesie"||g.Zw(W.zJ)&&(iW(-1)>=1080||Y.osid))return Ms;var P=g.W2(W.zJ.experiments,"html5_autonav_quality_cap"),T=g.W2(W.zJ.experiments,"html5_autonav_cap_idle_secs");return P&&Y.isAutonav&&Ml()/1E3>T?(k&&(P=jWV(W,k,P)),new E7(0,P,!1,"e")):Ms}; jWV=function(W,Y,k){if(W.U("html5_optimality_defaults_chooses_next_higher")&&k)for(W=Y.W.videoInfos,Y=1;Y=0||(W.provider.W6.getVisibilityState()===3?W.C=!0:(W.W=g.TA(W.provider),W.delay.start()))}; qS2=function(W){if(!(W.K<0)){var Y=g.TA(W.provider),k=Y-W.T;W.T=Y;W.playerState.state===8?W.playTimeSecs+=k:W.playerState.isBuffering()&&!g.b(W.playerState,16)&&(W.rebufferTimeSecs+=k)}}; RAV=function(W){var Y;switch((Y=W.zJ.playerCanaryStage)==null?void 0:Y.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"}}; HdF=function(W){this.provider=W;this.G=!1;this.W=0;this.T=-1;this.PF=NaN;this.J=0;this.segments=[];this.X=this.C=0;this.previouslyEnded=!1;this.N=this.provider.W6.getVolume();this.L=this.provider.W6.isMuted()?1:0;this.K=ED(this.provider)}; JS=function(W){W.K.startTime=W.J;W.K.endTime=W.W;var Y=!1;W.segments.length&&g.iQ(W.segments).isEmpty()?(W.segments[W.segments.length-1].previouslyEnded&&(W.K.previouslyEnded=!0),W.segments[W.segments.length-1]=W.K,Y=!0):W.segments.length&&W.K.isEmpty()||(W.segments.push(W.K),Y=!0);Y?W.K.endTime===0&&(W.previouslyEnded=!1):W.K.previouslyEnded&&(W.previouslyEnded=!0);W.C+=W.W-W.J;W.K=ED(W.provider);W.K.previouslyEnded=W.previouslyEnded;W.previouslyEnded=!1;W.J=W.W}; pFq=function(W){nHF(W);W.X=g.XU(function(){W.update()},100); W.PF=g.TA(W.provider);W.K=ED(W.provider)}; nHF=function(W){g.hB(W.X);W.X=NaN}; Gdd=function(W,Y,k){k-=W.PF;return Y===W.W&&k>.5}; K3z=function(W,Y,k,P){this.zJ=Y;this.f1=k;this.segments=[];this.experimentIds=[];this.rD=this.Gn=this.isFinal=this.delayThresholdMet=this.J9=this.xq=this.autoplay=this.autonav=!1;this.D_="yt";this.X=[];this.G=this.N=null;this.sendVisitorIdHeader=this.Q5=!1;this.L=this.pageId="";this.C=k==="watchtime";this.J=k==="playback";this.gD=k==="atr";this.rV=k==="engage";this.sendVisitorIdHeader=!1;this.uri=this.gD?"/api/stats/"+k:"//"+Y.wi+"/api/stats/"+k;P&&(this.Gn=P.fs,P.rtn&&(this.G=P.rtn),this.C?(this.playerState= P.state,P.rti>0&&(this.N=P.rti)):(this.fN=P.mos,this.nu=P.volume,P.at&&(this.adType=P.at)),P.autonav&&(this.autonav=P.autonav),P.inview!=null&&(this.tT=P.inview),P.size&&(this.KH=P.size),P.playerwidth&&(this.CN=P.playerwidth),P.playerheight&&(this.KN=P.playerheight));this.UV=g.ij(Y.W);this.L=nA(Y.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.L==="all"||this.L==="once")this.xm=g.ij(Y.J9);this.Zm=Y.D_;this.experimentIds=VcX(Y.experiments);this.V5=Y.LH;this.D_=Y.A5;this.region=Y.region; this.userAge=Y.userAge;this.e1=Y.i5;this.rZ=Ml();this.sendVisitorIdHeader=Y.sendVisitorIdHeader;this.TJ=Y.U("vss_pings_using_networkless")||Y.U("kevlar_woffle");this.k8=Y.U("vss_final_ping_send_and_write");this.OP=Y.U("vss_use_send_and_write");this.pageId=Y.pageId;this.Dm=Y.U("vss_playback_use_send_and_write");Y.livingRoomAppMode&&(this.livingRoomAppMode=Y.livingRoomAppMode);this.jW=Y.T&&Y.U("embeds_append_synth_ch_headers");g.Y3(Y)&&(this.Fr=Y.gD);g.$F(g.hK(Y))&&this.X.push(1);this.accessToken=g.hD(W); W.vV[this.f1]?this.T=W.vV[this.f1]:W.vV.playback&&(this.T=W.vV.playback);this.adFormat=W.adFormat;this.adQueryId=W.adQueryId;this.autoplay=VmC(W);this.J&&(this.xq=W.mT&&jW(W)==="adunit"?!0:!1);this.autonav=W.isAutonav||this.autonav;this.contentVideoId=Xs(W);this.clientPlaybackNonce=W.clientPlaybackNonce;this.J9=W.zr;W.X&&(this.Kg=W.X,this.K1=W.Mv);W.mdxEnvironment&&(this.mdxEnvironment=W.mdxEnvironment);this.W=W.UV;this.A9=W.A9;W.K&&(this.LH=W.K.itag,W.T&&W.T.itag!==this.LH&&(this.Lg=W.T.itag));W.W&& FK(W.W)&&(this.offlineDownloadUserChoice="1");this.eventLabel=jW(W);this.rD=W.Dm?!1:W.nu;this.Qa=W.Zi;if(Y=b0(W))this.vk=Y;this.AC=W.kP;this.partnerId=W.partnerId;this.eventId=W.eventId;this.playlistId=W.uF||W.playlistId;this.qR=W.qR;this.ws=W.ws;this.eA=W.eA;this.xF=W.xF;this.subscribed=W.subscribed;this.videoId=W.videoId;this.videoMetadata=W.videoMetadata;this.visitorData=W.visitorData;this.osid=W.osid;this.R9=W.R9;this.referrer=W.referrer;this.Jo=W.LG||W.Jo;this.bz=W.TF;this.CX=W.CX;this.userGenderAge= W.userGenderAge;this.l3=W.l3;this.embedsRct=W.embedsRct;this.embedsRctn=W.embedsRctn;g.Y3(this.zJ)&&W.mutedAutoplay&&(W.mutedAutoplayDurationMode===2&&W.limitedPlaybackDurationInSeconds===0&&W.endSeconds===0?this.X.push(7):this.X.push(2));W.isEmbedsShortsMode(new g.UF(this.CN,this.KN),!!this.playlistId)&&this.X.push(3);g.pl(W)&&this.X.push(4);this.GJ=W.IW;W.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=W.compositeLiveIngestionOffsetToken)}; EH7=function(W,Y){var k=W.sendVisitorIdHeader?W.visitorData:void 0;return g.dV(W.zJ,W.accessToken).then(function(P){return n92(W.uri,W.zJ,W.pageId,k,P,Y,W.jW)})}; r3d=function(W,Y){return function(){W.zJ.U("html5_simplify_pings")?(W.W=W.UP,W.DY=Y(),W.rZ=0,W.send()):EH7(W).then(function(k){var P=J3q(W);P.cmt=P.len;P.lact="0";var T=Y().toFixed(3);P.rt=Number(T).toString();P=g.MH(W.uri,P);W.zJ.U("vss_through_gel_double")&&sW1(P);W.TJ?(k==null&&(k={}),W.OP?yk().sendAndWrite(P,k):yk().sendThenWrite(P,k)):k?g.tB(P,k):g.rS(P)})}}; J3q=function(W){var Y={ns:W.D_,el:W.eventLabel,cpn:W.clientPlaybackNonce,ver:2,cmt:W.K(W.W),fmt:W.LH,fs:W.Gn?"1":"0",rt:W.K(W.DY),adformat:W.adFormat,content_v:W.contentVideoId,euri:W.Zm,lact:W.rZ,live:W.vk,cl:(796671093).toString(),mos:W.fN,state:W.playerState,volume:W.nu};W.subscribed&&(Y.subscribed="1");Object.assign(Y,W.UV);W.L==="all"?Object.assign(Y,W.xm):W.L==="once"&&W.J&&Object.assign(Y,W.xm);W.autoplay&&(Y.autoplay="1");W.xq&&(Y.sautoplay="1");W.J9&&(Y.dni="1");!W.C&&W.Fr&&(Y.epm=A30[W.Fr]); W.isFinal&&(Y["final"]="1");W.rD&&(Y.splay="1");W.A9&&(Y.delay=W.A9);W.V5&&(Y.hl=W.V5);W.region&&(Y.cr=W.region);W.userGenderAge&&(Y.uga=W.userGenderAge);W.userAge!==void 0&&W.e1&&(Y.uga=W.e1+W.userAge);W.UP!==void 0&&(Y.len=W.K(W.UP));!W.C&&W.experimentIds.length>0&&(Y.fexp=W.experimentIds.toString());W.G!==null&&(Y.rtn=W.K(W.G));W.Jo&&(Y.feature=W.Jo);W.ws&&(Y.ctrl=W.ws);W.eA&&(Y.ytr=W.eA);W.Lg&&(Y.afmt=W.Lg);W.offlineDownloadUserChoice&&(Y.ODUC=W.offlineDownloadUserChoice);W.A5&&(Y.lio=W.K(W.A5)); W.C?(Y.idpj=W.Qa,Y.ldpj=W.AC,W.delayThresholdMet&&(Y.dtm="1"),W.N!=null&&(Y.rti=W.K(W.N)),W.l3&&(Y.ald=W.l3),W.compositeLiveIngestionOffsetToken&&(Y.clio=W.compositeLiveIngestionOffsetToken)):W.adType!==void 0&&(Y.at=W.adType);W.KH&&(W.J||W.C)&&(Y.size=W.KH);W.J&&W.X.length&&(Y.pbstyle=W.X.join(","));W.tT!=null&&(W.J||W.C)&&(Y.inview=W.K(W.tT));W.C&&(Y.volume=sD(W,g.tx(W.segments,function(P){return P.volume})),Y.st=sD(W,g.tx(W.segments,function(P){return P.startTime})),Y.et=sD(W,g.tx(W.segments,function(P){return P.endTime})), vQ(W.segments,function(P){return P.playbackRate!==1})&&(Y.rate=sD(W,g.tx(W.segments,function(P){return P.playbackRate}))),vQ(W.segments,function(P){return P.W!=="-"})&&(Y.als=g.tx(W.segments,function(P){return P.W}).join(",")),vQ(W.segments,function(P){return P.previouslyEnded})&&(Y.pe=g.tx(W.segments,function(P){return""+ +P.previouslyEnded}).join(","))); Y.muted=sD(W,g.tx(W.segments,function(P){return P.muted?1:0})); vQ(W.segments,function(P){return P.visibilityState!==0})&&(Y.vis=sD(W,g.tx(W.segments,function(P){return P.visibilityState}))); vQ(W.segments,function(P){return P.connectionType!==0})&&(Y.conn=sD(W,g.tx(W.segments,function(P){return P.connectionType}))); vQ(W.segments,function(P){return P.K!==0})&&(Y.blo=sD(W,g.tx(W.segments,function(P){return P.K}))); vQ(W.segments,function(P){return!!P.J})&&(Y.blo=g.tx(W.segments,function(P){return P.J}).join(",")); vQ(W.segments,function(P){return!!P.compositeLiveStatusToken})&&(Y.cbs=g.tx(W.segments,function(P){return P.compositeLiveStatusToken}).join(",")); vQ(W.segments,function(P){return P.T!=="-"})&&(Y.cc=g.tx(W.segments,function(P){return P.T}).join(",")); vQ(W.segments,function(P){return P.clipId!=="-"})&&(Y.clipid=g.tx(W.segments,function(P){return P.clipId}).join(",")); if(vQ(W.segments,function(P){return!!P.audioId})){var k="au"; W.J&&(k="au_d");Y[k]=g.tx(W.segments,function(P){return P.audioId}).join(",")}Wy()&&W.Kg&&(Y.ctt=W.Kg,Y.cttype=W.K1,Y.mdx_environment=W.mdxEnvironment); W.rV&&(Y.etype=W.wD!==void 0?W.wD:0);W.bz&&(Y.uoo=W.bz);W.livingRoomAppMode&&W.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(Y.clram=zA5[W.livingRoomAppMode]||W.livingRoomAppMode);W.T?d7F(W,Y):(Y.docid=W.videoId,Y.referrer=W.referrer,Y.ei=W.eventId,Y.of=W.R9,Y.osid=W.osid,Y.vm=W.videoMetadata,W.adQueryId&&(Y.aqi=W.adQueryId),W.autonav&&(Y.autonav="1"),W.playlistId&&(Y.list=W.playlistId),W.xF&&(Y.ssrt="1"),W.CX&&(Y.upt=W.CX));W.J&&(W.embedsRct&&(Y.rct=W.embedsRct),W.embedsRctn&&(Y.rctn= W.embedsRctn),W.compositeLiveIngestionOffsetToken&&(Y.clio=W.compositeLiveIngestionOffsetToken));W.GJ&&(Y.host_cpn=W.GJ);return Y}; d7F=function(W,Y){if(Y&&W.T){var k=new Set(["q","feature","mos"]),P=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),T=new Set(["aqi","autonav","list","ssrt","upt"]);W.T.ns==="3pp"&&(Y.ns="3pp");for(var I=g.p(Object.keys(W.T)),X=I.next();!X.done;X=I.next())X=X.value,P.has(X)||k.has(X)||T.has(X)&&!W.T[X]||(Y[X]=W.T[X])}}; sD=function(W,Y){return g.tx(Y,W.K).join(",")}; sW1=function(W){W.indexOf("watchtime")!==-1&&g.W8("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:W}})}; m7d=function(W,Y){W.attestationResponse&&EH7(W).then(function(k){k=k||{};k.method="POST";k.postParams={atr:W.attestationResponse};W.TJ?W.OP?yk().sendAndWrite(Y,k):yk().sendThenWrite(Y,k):g.tB(Y,k)})}; rx=function(W){g.e.call(this);this.provider=W;this.X="paused";this.C=NaN;this.G=[10,10,10,40];this.N=this.L=0;this.Kg=this.gD=this.wD=this.A5=this.J=!1;this.K=this.T=NaN;this.logger=new g.H_("vss");this.W=new HdF(W)}; QWS=function(W){if(!W.J){W.provider.videoData.AN===16623&&g.Kx(Error("Playback for EmbedPage"));var Y=AS(W,"playback");W.G=D76(W);pFq(W.W);Y.G=zA(W);W.K>0&&(Y.W-=W.K);Y.send();if(W.provider.videoData.q0){Y=W.provider.zJ;var k=W.provider.videoData,P={html5:"1",video_id:k.videoId,cpn:k.clientPlaybackNonce,ei:k.eventId,ptk:k.q0,oid:k.Mg,ptchn:k.Lz,pltype:k.zm,content_v:Xs(k)};k.Yi&&Object.assign(P,{m:k.Yi});Y=g.MH(Y.xf+"ptracking",P);gHC(W,Y)}W.provider.videoData.A9||(F31(W),wFd(W));W.J=!0;W=W.W;W.W= W.tD();W.PF=g.TA(W.provider);!(W.J===0&&W.W<5)&&W.W-W.J>2&&(W.J=W.W);W.G=!0}}; D76=function(W){var Y=W.provider.videoData.Zi,k=W.provider.videoData.kP,P=[10+Y,10,10,40+k-Y,40],T,I=(T=W.provider.videoData.getPlayerResponse())==null?void 0:T.playbackTracking,X=I==null?void 0:I.videostatsScheduledFlushWalltimeSeconds;T=I==null?void 0:I.videostatsDefaultFlushIntervalSeconds;if(!(X&&X.length>0&&T))return W.logger.info("Missing valid scheduled pings config "+X+" "+T),P;Y=[X[0]+Y].concat(g.ZX(X.slice(1).map(function(h,B){return h-X[B]})),[T+k-Y, T]);return Y.some(function(h){return h<0})?(W.logger.W(347111855,"Neg vss scheduled pings "+X+" "+T),P):Y}; zA=function(W,Y){Y=Y===void 0?NaN:Y;var k=g.TA(W.provider);Y=isNaN(Y)?k:Y;Y=Math.ceil(Y);var P=W.G[W.L];W.L+11E3;!(I.length>1)&&I[0].isEmpty()||h||(X.G=zA(W,T));X.send();W.N++}},(T-k)*1E3); return W.T=T}; dx=function(W){g.SU(W.C);W.C=NaN}; y3v=function(W){W.W.update();W=W.W;W.segments.length&&W.W===W.J||JS(W);var Y=W.segments;W.segments=[];return Y}; AS=function(W,Y){var k=oHd(W.provider);Object.assign(k,{state:W.X});Y=new K3z(W.provider.videoData,W.provider.zJ,Y,k);Y.W=W.provider.W6.tD();k=W.provider.videoData.clientPlaybackNonce;Y.W=W.provider.W6.g9(k);W.provider.videoData.isLivePlayback||(Y.UP=W.provider.W6.getDuration(k));W.provider.videoData.W&&(k=W.provider.videoData.W.hT(Y.W))&&(Y.A5=k-Y.W,W.provider.zJ.U("html5_disable_live_dvr_shrink_for_cdm_vss")&&dR(W.provider.videoData)&&(Y.W+=W.provider.W6.m2(),Y.A5-=W.provider.W6.m2()));Y.DY=g.TA(W.provider); Y.segments=[ED(W.provider)];return Y}; eAd=function(W,Y){var k=AS(W,"watchtime");vH1(W)&&(k.delayThresholdMet=!0,W.wD=!0);if(W.K>0){for(var P=g.p(Y),T=P.next();!T.done;T=P.next())T=T.value,T.startTime-=W.K,T.endTime-=W.K;k.W-=W.K}else k.W=W.W.W;k.segments=Y;return k}; mE=function(W,Y){var k=Czd(W,!isNaN(W.T));Y&&(W.T=NaN);return k}; Czd=function(W,Y){var k=eAd(W,y3v(W));!isNaN(W.T)&&Y&&(k.N=W.T);return k}; vH1=function(W){var Y;if(Y=W.provider.videoData.isLoaded()&&W.provider.videoData.A9&&W.J&&!W.wD)Y=W.W,Y=Y.C+Y.tD()-Y.J>=W.provider.videoData.A9;return!!Y}; F31=function(W){W.provider.videoData.youtubeRemarketingUrl&&!W.gD&&(gHC(W,W.provider.videoData.youtubeRemarketingUrl),W.gD=!0)}; wFd=function(W){W.provider.videoData.googleRemarketingUrl&&!W.Kg&&(gHC(W,W.provider.videoData.googleRemarketingUrl),W.Kg=!0)}; L3F=function(W){if(!W.Xr()&&W.J){W.X="paused";var Y=mE(W);Y.isFinal=!0;Y.send();W.dispose()}}; U7V=function(W,Y){if(!W.Xr())if(g.b(Y.state,2)||g.b(Y.state,512)){if(W.X="paused",g.Sa(Y,2)||g.Sa(Y,512))g.Sa(Y,2)&&(W.W.previouslyEnded=!0),W.J&&(dx(W),mE(W).send(),W.T=NaN)}else if(g.b(Y.state,8)){W.X="playing";var k=W.J&&isNaN(W.C)?zA(W):NaN;if(!isNaN(k)&&(Ib(Y,64)<0||Ib(Y,512)<0)){var P=Czd(W,!1);P.G=k;P.send()}g.Sa(Y,16)&&Y.state.seekSource===58&&(W.W.previouslyEnded=!0)}else W.X="paused"}; lbV=function(W,Y,k){if(!W.A5){k||(k=AS(W,"atr"));k.attestationResponse=Y;try{k.send()}catch(P){if(P.message!=="Unknown Error")throw P;}W.A5=!0}}; gHC=function(W,Y){var k=W.provider.zJ;g.dV(W.provider.zJ,g.hD(W.provider.videoData)).then(function(P){var T=W.provider.zJ.pageId,I=W.provider.zJ.sendVisitorIdHeader?W.provider.videoData.visitorData:void 0,X=W.provider.zJ.U("vss_pings_using_networkless")||W.provider.zJ.U("kevlar_woffle"),h=W.provider.zJ.U("allow_skip_networkless");P=n92(Y,k,T,I,P);pVS(Y,P,{token:W.provider.videoData.X,T6:W.provider.videoData.Mv,mdxEnvironment:W.provider.videoData.mdxEnvironment},k,void 0,X&&!h,!1,!0)})}; bd0=function(){this.endTime=this.startTime=-1;this.T="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.K=0;this.compositeLiveStatusToken=this.J=void 0;this.volume=this.connectionType=0;this.muted=!1;this.W=this.clipId="-";this.previouslyEnded=!1}; DB=function(W,Y,k){this.videoData=W;this.zJ=Y;this.W6=k;this.W=void 0}; g.TA=function(W){return c37(W)()}; c37=function(W){if(!W.W){var Y=g.hN(function(P){var T=(0,g.q5)();P&&T<=631152E6&&(W.W6.y5("ytnerror",{issue:28799967,value:""+T}),T=(new Date).getTime()+2);return T},W.zJ.U("html5_validate_yt_now")),k=Y(); W.W=function(){return Math.round(Y()-k)/1E3}; W.W6.SO()}return W.W}; oHd=function(W){var Y=W.W6.sI()||{};Y.fs=W.W6.WF();Y.volume=W.W6.getVolume();Y.muted=W.W6.isMuted()?1:0;Y.mos=Y.muted;Y.clipid=W.W6.fK();var k;Y.playerheight=((k=W.W6.getPlayerSize())==null?void 0:k.height)||0;var P;Y.playerwidth=((P=W.W6.getPlayerSize())==null?void 0:P.width)||0;W=W.videoData;k={};W.K&&(k.fmt=W.K.itag,W.T&&(W.f1?W.T.itag!==W.K.itag:W.T.itag!=W.K.itag)&&(k.afmt=W.T.itag));k.ei=W.eventId;k.list=W.playlistId;k.cpn=W.clientPlaybackNonce;W.videoId&&(k.v=W.videoId);W.Aj&&(k.infringe=1); (W.Dm?0:W.nu)&&(k.splay=1);(P=b0(W))&&(k.live=P);W.mT&&(k.sautoplay=1);W.zv&&(k.autoplay=1);W.qR&&(k.sdetail=W.qR);W.partnerId&&(k.partnerid=W.partnerId);W.osid&&(k.osid=W.osid);W.LB&&(k.cc=g.EX7(W.LB));return Object.assign(Y,k)}; Dqd=function(W){var Y=zGd();if(Y)return x7C[Y]||x7C.other;if(g.Zw(W.zJ)){W=navigator.userAgent;if(/[Ww]ireless[)]/.test(W))return 3;if(/[Ww]ired[)]/.test(W))return 30}return 0}; ED=function(W){var Y=new bd0,k;Y.T=((k=oHd(W).cc)==null?void 0:k.toString())||"-";Y.playbackRate=W.W6.getPlaybackRate();k=W.W6.getVisibilityState();k!==0&&(Y.visibilityState=k);W.zJ.bz&&(Y.K=1);Y.J=W.videoData.qV;Y.compositeLiveStatusToken=W.videoData.compositeLiveStatusToken;k=W.W6.getAudioTrack();k.Ib&&k.Ib.id&&k.Ib.id!=="und"&&(Y.audioId=k.Ib.id);Y.connectionType=Dqd(W);Y.volume=W.W6.getVolume();Y.muted=W.W6.isMuted();Y.clipId=W.W6.fK()||"-";Y.W=W.videoData.mA||"-";return Y}; g.gx=function(W,Y){g.e.call(this);var k=this;this.provider=W;this.J=new Map;this.b7=new g.zc;this.zW={vBa:function(){return k.qoe}, O5g:function(){return k.W}, V95:function(){return k.K}}; this.provider.videoData.Nt()&&!this.provider.videoData.Jj&&(this.W=new rx(this.provider),this.W.K=0,g.v(this,this.W),this.qoe=new g.kL(this.provider,Y),g.v(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.vU=this.provider.videoData.clientPlaybackNonce)&&this.J.set(this.vU,this.W));if(W.zJ.playerCanaryState==="canary"||W.zJ.playerCanaryState==="holdback")this.K=new Kn(this.provider),g.v(this,this.K)}; fb2=function(W){W.K&&tod(W.K);W.qoe&&Uqq(W.qoe)}; VoV=function(W){if(W.qoe){W=W.qoe;for(var Y=W.provider.videoData,k=W.provider.zJ,P=g.p(k.B4),T=P.next();!T.done;T=P.next())Ir(W,T.value);if(W.provider.U("html5_enable_qoe_cat_list"))for(P=g.p(Y.wi),T=P.next();!T.done;T=P.next())Ir(W,T.value);else Y.B4&&Ir(W,W.provider.videoData.B4);Y.t9()&&(P=Y.W,QO(Y)&&Ir(W,"manifestless"),P&&ba(P)&&Ir(W,"live-segment-"+ba(P).toFixed(1)));mX(Y)?Ir(W,"sabr"):W.e7(o4(Y));if(BV(Y)||Y.Xj())Y.Xj()&&Ir(W,"ssa"),Ir(W,"lifa");dR(Y)&&Ir(W,"cdm");Y.gatewayExperimentGroup&& (P=Y.gatewayExperimentGroup,P==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?P="spkadtrt":P==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(P="spkadctrl"),Ir(W,P));k.A5!=="yt"&&W.W.set("len",[Y.lengthSeconds.toFixed(2)]);Y.cotn&&!ZA(Y)&&W.f3(!0);k.OR()&&(Y=zid())&&W.y5("cblt",{m:Y});if(k.U("html5_log_screen_diagonal")){k=W.y5;var I;Y=((I=window.H5vccScreen)==null?0:I.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;k.call(W,"cbltdiag",{v:Y})}}}; N$2=function(W,Y){W.W&&(W=W.W,Y===58?W.W.update():W.J&&(dx(W),mE(W).send(),W.T=NaN))}; abV=function(W,Y){if(g.Sa(Y,1024)||g.Sa(Y,512)||g.Sa(Y,4)){if(W.K){var k=W.K;k.K>=0||(k.W=-1,k.delay.stop())}W.qoe&&(k=W.qoe,k.G||(k.J=-1))}if(W.provider.videoData.enableServerStitchedDai&&W.vU){var P;(P=W.J.get(W.vU))==null||U7V(P,Y)}else W.W&&U7V(W.W,Y);if(W.qoe){P=W.qoe;k=Y.state;var T=g.TA(P.provider),I=P.getPlayerState(k),X=k.seekSource||void 0;if(I!==P.b7){P.wD||T= 10&&P.playTimeSecs<=180&&(P.W.set("qoealert",["1"]),P.A9=!0)),I!=="B"||P.b7!=="PL"&&P.b7!=="PB"||(P.isBuffering=!0),P.K=T);P.b7==="PL"&&(I==="B"||I==="S")||P.provider.zJ.OR()?ju(P,T):(P.K1||I!=="PL"||(P.K1=!0,g9q(P,T,P.provider.W6.rH())),mq5(P,T));I==="PL"&&g.L_(P.DY);var h=[I];I==="S"&&X&&h.push("ss."+X);g.$L(P,T,"vps",h);P.b7=I;P.A5=T;P.K=T;P.T=!0}I=k.dc;g.b(k,128)&&I&&(I.vJ=I.vJ||"",eiC(P,T,I.errorCode,I.AI,I.vJ));(g.b(k,2)||g.b(k,128))&&P.reportStats(T);k.isPlaying()&&!P.G&&(P.J>=0&&P.W.set("user_intent", [P.J.toString()]),P.G=!0);QRS(P)}W.K&&(W=W.K,qS2(W),W.playerState=Y.state,W.K>=0&&g.Sa(Y,16)&&W.seekCount++,Y.state.isError()&&W.send())}; Whd=function(W){W.K&&W.K.send();if(W.qoe){var Y=W.qoe;if(Y.T){Y.b7==="PL"&&(Y.b7="N");var k=g.TA(Y.provider);g.$L(Y,k,"vps",[Y.b7]);Y.G||(Y.J>=0&&Y.W.set("user_intent",[Y.J.toString()]),Y.G=!0);Y.provider.zJ.OR()&&Y.y5("finalized",{});Y.TJ=!0;Y.reportStats(k)}}if(W.provider.videoData.enableServerStitchedDai)for(Y=g.p(W.J.values()),k=Y.next();!k.done;k=Y.next())L3F(k.value);else W.W&&L3F(W.W);W.dispose()}; YXS=function(W,Y,k){switch(Y){case "M":var P;(P=W.qoe)==null||lAC(P,Y,k);break;case "A":var T;(T=W.qoe)==null||lAC(T,Y)}}; $EC=function(W,Y){W.W&&lbV(W.W,Y)}; k7v=function(W){if(!W.W)return null;var Y=AS(W.W,"atr");return function(k){W.W&&lbV(W.W,k,Y)}}; PTF=function(W,Y,k,P){k.adFormat=k.jW;var T=Y.W6;Y=new rx(new DB(k,Y.zJ,{getDuration:function(){return k.lengthSeconds}, getCurrentTime:function(){return T.getCurrentTime()}, tD:function(){return T.tD()}, g9:function(){return T.g9()}, rH:function(){return T.rH()}, getPlayerSize:function(){return T.getPlayerSize()}, getAudioTrack:function(){return k.getAudioTrack()}, getPlaybackRate:function(){return T.getPlaybackRate()}, Ea:function(){return T.Ea()}, getVisibilityState:function(){return T.getVisibilityState()}, w_:function(){return T.w_()}, sI:function(){return T.sI()}, getVolume:function(){return T.getVolume()}, isMuted:function(){return T.isMuted()}, WF:function(){return T.WF()}, fK:function(){return T.fK()}, getProximaLatencyPreference:function(){return T.getProximaLatencyPreference()}, SO:function(){T.SO()}, y5:function(I,X){T.y5(I,X)}, Jx:function(){return T.Jx()}, m2:function(){return T.m2()}})); Y.K=P;g.v(W,Y);return Y}; TK2=function(){this.du=0;this.T=this.J=this.DU=this.FV=this.K=NaN;this.W={};this.bandwidthEstimate=NaN}; jD5=function(){this.W=g.UG;this.array=[]}; XK5=function(W,Y,k){var P=[];for(Y=Iy2(W,Y);Yk)break}return P}; Fm=function(W,Y){var k=[];W=g.p(W.array);for(var P=W.next();!P.done&&!(P=P.value,P.contains(Y)&&k.push(P),P.start>Y);P=W.next());return k}; SX2=function(W){return W.array.slice(Iy2(W,0x7ffffffffffff),W.array.length)}; Iy2=function(W,Y){W=C$(W.array,function(k){return Y-k.start||1}); return W<0?-(W+1):W}; hF0=function(W,Y){var k=NaN;W=g.p(W.array);for(var P=W.next();!P.done;P=W.next())if(P=P.value,P.contains(Y)&&(isNaN(k)||P.endY&&(isNaN(k)||P.startW.mediaTime+W.C&&Y1)W.T=!0;if((T===void 0?0:T)||isNaN(W.K))W.K=Y;if(W.W)Y!==W.mediaTime&&(W.W=!1);else if(Y>0&&W.mediaTime===Y){T=1500;if(W.zJ.U("html5_buffer_underrun_transition_fix")){T=g.W2(W.zJ.experiments,"html5_min_playback_advance_for_steady_state_secs");var I=g.W2(W.zJ.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");T=T>0&&I>0&&Math.abs(Y-W.K)(P||!W.T?T:400)}W.mediaTime=Y;W.J=k;return!1}; HOv=function(W,Y){this.videoData=W;this.W=Y}; n67=function(W,Y,k){return Y.pF(k).then(function(){return KN(new HOv(Y,Y.J))},function(P){P instanceof Error&&g.Kx(P); var T=t_('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),I=R9('audio/mp4; codecs="mp4a.40.2"'),X=T||I,h=Y.isLivePlayback&&!g.KA(W.C,!0);P="fmt.noneavailable";h?P="html5.unsupportedlive":X||(P="html5.missingapi");X=h||!X?2:1;T={buildRej:"1",a:Y.HA(),d:!!Y.D_,drm:Y.t$(),f18:Y.fN.indexOf("itag=18")>=0,c18:T};Y.W&&(Y.t$()?(T.f142=!!Y.W.W["142"],T.f149=!!Y.W.W["149"],T.f279=!!Y.W.W["279"]):(T.f133=!!Y.W.W["133"],T.f140=!!Y.W.W["140"],T.f242=!!Y.W.W["242"]),T.cAAC=I,T.cAVC=R9('video/mp4; codecs="avc1.42001E"'), T.cVP9=R9('video/webm; codecs="vp9"'));Y.C&&(T.drmsys=Y.C.keySystem,I=0,Y.C.W&&(I=Object.keys(Y.C.W).length),T.drmst=I);return new g.uZ(P,T,X)})}; yG=function(W){this.data=window.Float32Array?new Float32Array(W):Array(W);this.K=this.W=W-1}; pKv=function(W){return W.data[W.W]||0}; G7z=function(W){this.C=W;this.J=this.K=0;this.T=new yG(50)}; or=function(W,Y,k){g.NR.call(this);this.videoData=W;this.experiments=Y;this.C=k;this.K=[];this.v$=0;this.J=!0;this.T=!1;this.X=0;k=new Kh5;W.latencyClass==="ULTRALOW"&&(k.X=!1);W.e1?k.J=3:g.Ns(W)&&(k.J=2);W.latencyClass==="NORMAL"&&(k.C=!0);k.A5=mX(W)&&Y.Nq("html5_refactor_decouple_liveness");g.W2(Y,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.W2(Y,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||W.latencyClass!=="LOW"&&W.latencyClass!=="ULTRALOW"||(k.C=!0);var P= g.W2(Y,"html5_liveness_drift_proxima_override");if(o4(W)!==0&&P){k.W=P;var T;((T=W.W)==null?0:h2V(T))&&k.W--}mX(W)&&Y.Nq("html5_sabr_parse_live_metadata_playback_boundaries")&&(k.Kg=!0);if(g.gn("trident/")||g.gn("edge/"))T=g.W2(Y,"html5_platform_minimum_readahead_seconds")||3,k.T=Math.max(k.T,T);g.W2(Y,"html5_minimum_readahead_seconds")&&(k.T=g.W2(Y,"html5_minimum_readahead_seconds"));g.W2(Y,"html5_maximum_readahead_seconds")&&(k.N=g.W2(Y,"html5_maximum_readahead_seconds"));Y.Nq("html5_force_adaptive_readahead")&& (k.X=!0);if(T=g.W2(Y,"html5_liveness_drift_chunk_override"))k.W=T;yO(W)&&(k.W=(k.W+1)/5,W.latencyClass==="LOW"&&(k.W*=2));!mX(W)||W.latencyClass!=="ULTRALOW"&&W.latencyClass!=="LOW"||(k.L=g.W2(Y,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,k.G=g.W2(Y,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=k;this.G=this.policy.J!==1;this.W=eu(this,E6q(this,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W))}; JJX=function(W,Y){if(Y)return Y=W.videoData,Y=E6q(W,isNaN(Y.liveChunkReadahead)?3:Y.liveChunkReadahead,Y),eu(W,Y);if(W.K.length){if(Math.min.apply(null,W.K)>1)return eu(W,W.W-1);if(W.policy.X)return eu(W,W.W+1)}return W.W}; sDq=function(W,Y){if(!W.K.length)return!1;var k=W.W;W.W=JJX(W,Y===void 0?!1:Y);if(Y=k!==W.W)W.K=[],W.v$=0;return Y}; Cn=function(W,Y){return Y>=W.Hl()-vB(W)}; rJ1=function(W,Y,k){Y=Cn(W,Y);k||Y?Y&&(W.J=!0):W.J=!1;W.G=W.policy.J===2||W.policy.J===3&&W.J}; AJq=function(W,Y){Y=Cn(W,Y);W.T!==Y&&W.publish("livestatusshift",Y);W.T=Y}; vB=function(W){var Y=W.policy.W;W.T||(Y=Math.max(Y-1,0));return Y*Ln(W)}; E6q=function(W,Y,k){k.e1&&Y--;yO(k)&&(Y=1);if(o4(k)!==0&&(W=g.W2(W.experiments,"html5_live_chunk_readahead_proxima_override"))){Y=W;var P;((P=k.W)==null?0:h2V(P))&&Y++}return Y}; Ln=function(W){return W.videoData.W?ba(W.videoData.W)||5:5}; eu=function(W,Y){Y=Math.max(Math.max(1,Math.ceil(W.policy.T/Ln(W))),Y);return Math.min(Math.min(8,Math.floor(W.policy.N/Ln(W))),Y)}; Kh5=function(){this.T=0;this.N=Infinity;this.X=!0;this.K=this.W=2;this.J=1;this.C=!1;this.G=10;this.Kg=!1;this.L=1;this.A5=!1}; bA=function(W){g.e.call(this);this.W6=W;this.W=0;this.K=null;this.X=this.T=0;this.J={};this.zJ=this.W6.V();this.C=new g.C_(this.u7,1E3,this);this.rD=UD(this,"html5_seek_timeout_delay_ms");this.wD=UD(this,"html5_long_rebuffer_threshold_ms");this.Q5=UD(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.OP=UD(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Fr=UD(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.J9=UD(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.A5=UD(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Kg=new lA(2E4);this.UP=UD(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.V5=UD(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.GJ=UD(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.TJ=UD(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.L=UD(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.N=UD(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.bz=UD(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.e1=UD(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.G=UD(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Lg=new lA(g.W2(this.zJ.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.zJ.U("html5_report_slow_ads_as_error"));this.A9=new lA(g.W2(this.zJ.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.zJ.U("html5_skip_slow_buffering_ad"));this.K1=UD(this,"html5_slow_start_timeout_delay_ms");this.gD=UD(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.v(this,this.C)}; UD=function(W,Y,k){k=k===void 0?null:k;var P=P===void 0?0:P;return new lA(g.W2(W.zJ.experiments,Y)||P,k?W.zJ.U(k):!1)}; zFq=function(W,Y){W.W=Y}; cB=function(W,Y,k,P,T,I,X,h){Y?Y.test(k)?(W.Pz(T,Y,X),Y.X||I()):(!Y.K||Y.T?k=!1:(k=(0,g.q5)(),P?Y.W||(Y.W=k):Y.W=0,I=!P&&k-Y.K>3E4,k=Y.W&&k-Y.W>1E3||I?Y.T=!0:!1),k&&(h=Object.assign({},W.ER(Y),h),h.wn=X,h.we=T,h.wsuc=P,W.W6.y5("workaroundReport",h),P&&(Y.reset(),W.J[T]=!1))):W.W6.SW("auth",2,"BROWSER_OR_EXTENSION_ERROR",Ol({source:"watchdog",name:X}))}; lA=function(W,Y){this.X=Y===void 0?!1:Y;this.W=this.K=this.J=this.startTimestamp=0;this.T=!1;this.C=Math.ceil(W/1E3)}; g6z=function(W){g.e.call(this);var Y=this;this.W6=W;this.L=this.W=this.loader=this.mediaElement=this.playbackData=null;this.J=0;this.C=this.wD=this.T=null;this.TJ=!1;this.K1=0;this.Kg=!1;this.timestampOffset=0;this.N=!0;this.V5=0;this.Q5=this.xm=!1;this.G=0;this.e1=!1;this.gD=0;this.zW={Tc:function(k){return Y.Tc(k)}}; this.zJ=this.W6.V();this.videoData=this.W6.getVideoData();this.policy=new dE5;this.A5=new bA(this.W6);this.Lg=this.GJ=this.Fr=this.X=this.K=NaN;this.UP=new g.C_(function(){mE2(Y,!1)},2E3); this.J9=new g.C_(function(){xL(Y)}); this.rD=new g.C_(function(){DEF(Y,{})}); this.A9=NaN;this.OP=new g.C_(function(){var k=Y.zJ.CN;k.W+=1E4/36E5;k.W-k.J>1/6&&(gDF(k),k.J=k.W);Y.OP.start()},1E4); g.v(this,this.A5);g.v(this,this.UP);g.v(this,this.rD);g.v(this,this.J9);g.v(this,this.OP)}; QDV=function(W,Y){W.playbackData=Y;W.videoData.isLivePlayback&&(W.L=new G7z(function(){a:{if(W.playbackData&&W.playbackData.W.W){if(QO(W.videoData)&&W.loader){var P=W.loader.BQ.le()||0;break a}if(W.videoData.W){P=W.videoData.W.OP;break a}}P=0}return P}),W.W=new or(W.videoData,W.zJ.experiments,function(){return W.M6(!0)})); if(fn(W.W6)){var k;(k=W.videoData.YF)!=null&&k.d4||(Y=Fh6(W),Y.nZ?(mX(W.videoData)&&W.wk(Y.nZ,Y.startSeconds),W.J=Y.startSeconds):Y.startSeconds>0&&W.seekTo(Y.startSeconds,{Fi:"seektimeline_startPlayback",seekSource:15}));W.N=!1}else wK0(W)||(W.J=W.J||W.videoData.startSeconds||0,W.videoData.isLivePlayback||(Y=W.W6.videoData.M6(),W.J>Y&&(W.U("html5_sabr_log_invalid_sabr_current_time")&&W.W6.y5("invalidSabrCmtStart",{rt:W.J,mst:Y}),W.U("html5_sabr_vod_invalid_start_time_fallback")&&(W.J=0))))}; eFz=function(W,Y){(W.loader=Y)?yJV(W,!0):VG(W)}; o62=function(W,Y){g.L_(W.A5.C);W.U("html5_exponential_memory_for_sticky")&&(Y.state.isPlaying()?g.L_(W.OP):W.OP.stop());if(W.mediaElement)if(Y.oldState.state===8&&Q8(Y.state)&&Y.state.isBuffering()){Y=W.mediaElement.getCurrentTime();var k=W.mediaElement.EE();var P=W.U("manifestless_post_live_ufph")||W.U("manifestless_post_live")?Tc(k,Math.max(Y-3.5,0)):Tc(k,Y-3.5);P>=0&&Y>k.end(P)-1.1&&P+10?(NI(W.W6,W.getCurrentTime()+W.videoData.limitedPlaybackDurationInSeconds),W.Q5=!0):W.videoData.isLivePlayback&&W.videoData.endSeconds>0&&(NI(W.W6,W.getCurrentTime()+W.videoData.endSeconds),W.Q5=!0))}; CT2=function(W,Y){var k=W.getCurrentTime(),P=W.isAtLiveHead(k);if(W.L&&P){var T=W.L;if(T.W&&!(k>=T.K&&k50&&T.K.shift())),T=W.W,rJ1(T,k,Y===void 0?!0:Y),AJq(T,k),Y&&mE2(W,!0));P!==W.xm&&(Y=W.getCurrentTime()-W.Lg<=500,k=W.K1>=1E3,Y||k||(Y=W.W6.FA,Y.qoe&&(Y=Y.qoe,k=g.TA(Y.provider), g.$L(Y,k,"lh",[P?"1":"0"])),W.xm=P,W.K1++,W.Lg=W.getCurrentTime()))}; mE2=function(W,Y){if(W.W){var k=W.W;var P=W.getCurrentTime(),T=k.Hl();var I=k.policy.K;k.T||(I=Math.max(I-1,0));I*=Ln(k);P>=T-I||!k.Ar()?k=Pk+1&&Y0&&Jf(W.mediaElement)>0&&(W.K=ar(W,W.K,!1)),Y=W.U("html5_pseudogapless_shorts_seek_to_next_start")&&(Y==null?void 0:Y.seekSource)===60,!W.mediaElement||!fyz(W,Y))W.J9.start(750);else if(!isNaN(W.K)&&isFinite(W.K)&&(Y=W.GJ-(W.K-W.timestampOffset),!(Y===0||Math.abs(Y)<.005)))if(Y=W.mediaElement.getCurrentTime()-W.K,Math.abs(Y)<=W.V5||Math.abs(Y)<.005)VJ6(W);else{if(W.videoData.AS)W.videoData.AS= !1;else if(!wR(W.videoData)&&W.K>=W.M6()-.1){W.K=W.M6();W.T.resolve(W.M6());W.zJ.OR()&&W.W6.y5("setEndedInSeek",{tgt:""+W.K,maxst:""+W.M6()});W.W6.XT();return}try{var k=W.K-W.timestampOffset;W.mediaElement.seekTo(k);W.A5.W=k;W.GJ=k;W.J=W.K;W.Kg=!1}catch(P){}}}; fyz=function(W,Y){Y=Y===void 0?!1:Y;if(!W.mediaElement||W.mediaElement.Tg()===0||W.mediaElement.hasError())return!1;var k=W.mediaElement.getCurrentTime()>0;return W.videoData.J&&W.videoData.J.W||W.videoData.isLivePlayback||!W.videoData.t$()?W.K>=0&&!Y&&(Y=W.mediaElement.c$(),Y.length||!k)?jc(Y,W.K-W.timestampOffset):k:k}; VJ6=function(W){W.T&&(W.T.resolve(W.mediaElement.getCurrentTime()),W.A5.K=null)}; cJd=function(W,Y){W.C&&(W.C.resolve(Y),W.W6.g1(),W.zJ.OR()||xE2(W))&&(Y=W.ER(),Y["native"]=""+ +W.Kg,Y.otgt=""+(W.K+W.timestampOffset),W.W6.y5("seekEnd",Y));VG(W)}; VG=function(W){W.K=NaN;W.X=NaN;W.GJ=NaN;W.T=null;W.wD=null;W.C=null;W.TJ=!1;W.Kg=!1;W.V5=0;W.UP.stop();W.rD.stop()}; ayd=function(W,Y){var k=W.mediaElement,P=Y.type;switch(P){case "seeking":var T=k.getCurrentTime()+W.timestampOffset;if(!W.T||W.Kg&&T!==W.K){W.T=new KY;W.T.then(function(X){cJd(W,X)},function(){VG(W)}); if(W.videoData.isAd()){var I;Te1({adCpn:W.videoData.clientPlaybackNonce,contentCpn:(I=W.videoData.IW)!=null?I:""},Y.W)}W.GJ=T;zFq(W.A5,k.getCurrentTime());W.seekTo(T,{seekSource:104,Fi:"seektimeline_mediaElementEvent"});W.Kg=!0}break;case "seeked":VJ6(W);break;case "loadedmetadata":fn(W.W6)||NKF(W);xL(W);break;case "progress":xL(W);break;case "pause":W.G=W.getCurrentTime()}W.G&&((P==="play"||P==="playing"||P==="timeupdate"||P==="progress")&&W.getCurrentTime()-W.G>10&&(W.U("html5_sky_skip_pause_jump")? W.W6.y5("skipPauseJump",{evt:P,cmt:W.getCurrentTime(),lpt:W.G}):W.seekTo(W.G,{Fi:"pauseJump"})),P!=="pause"&&P!=="play"&&P!=="playing"&&P!=="progress"&&(W.G=0))}; W7z=function(W){return(a4(W.videoData)||!!W.videoData.liveUtcStartSeconds)&&(!!W.videoData.liveUtcStartSeconds||wK0(W))&&!!W.videoData.W}; wK0=function(W){return!!W.videoData.startSeconds&&isFinite(W.videoData.startSeconds)&&W.videoData.startSeconds>1E9}; Fh6=function(W){var Y=0,k=NaN,P="";if(!W.N)return{startSeconds:Y,nZ:k,source:P};W.videoData.wD?Y=W.videoData.gD:wR(W.videoData)&&(Y=Infinity);if(g.Ns(W.videoData))return{startSeconds:Y,nZ:k,source:P};W.videoData.startSeconds?(P="ss",Y=W.videoData.startSeconds):W.videoData.rZ&&(P="stss",Y=W.videoData.rZ);W.videoData.liveUtcStartSeconds&&(k=W.videoData.liveUtcStartSeconds);if(isFinite(Y)&&(Y>W.M6()||YW.M6()||k 0?(P.onesie="0",W.handleError(new g.uZ("html5.missingapi",P)),!1):!0}; Sg5=function(W){var Y=P1();TT(Y,W);return g.LS(Y,mQV())}; jt6=function(W,Y){var k,P,T,I,X,h,B,O,u,Z,M,t,q,G,J,d,A,F,y,L,V,c,X7,Id,Sz,O2;return g.D(function($5){if($5.W==1)return Y.fetchType="onesie",k=MP2(Y,W.getPlayerSize(),W.getVisibilityState()),P=new rP(W,k),g.m($5,P.fetch(),2);T=$5.K;I={player_response:T};Y.loading=!1;X=W.GW.eT;if(P.Sy){h=g.p(P.Sy.entries());for(B=h.next();!B.done;B=h.next())O=B.value,u=g.p(O),Z=u.next().value,M=u.next().value,t=Z,q=M,X.W.set(t,q,180),t===Y.videoId&&(G=q.Jg(),Y.cE=G);X.TB=P}J=g.p(P.bF.entries());for(d=J.next();!d.done;d= J.next())A=d.value,F=g.p(A),y=F.next().value,L=F.next().value,V=y,c=L,X.K.set(V,c,180);g.Hn(Y,I,!0);if(Y.loading||qs(Y))return $5.return(Promise.resolve());X.W.removeAll();X.K.removeAll();Y.cE=[];X7={};Id="onesie.response";Sz=0;Y.errorCode?(Id="auth",X7.ec=Y.errorCode,X7.ed=Y.errorDetail,X7.es=Y.OX||"",Sz=2):(X7.successButUnplayable="1",X7.disposed=""+ +Y.Xr(),X7.afmts=""+ +/adaptiveFormats/.test(T),X7.cpn=Y.clientPlaybackNonce);O2=new g.uZ(Id,X7,Sz);return $5.return(Promise.reject(O2))})}; PnX=function(W,Y){var k,P,T,I,X,h,B,O,u,Z,M;return g.D(function(t){switch(t.W){case 1:k=Y.isAd(),P=!k,T=k?1:3,I=0;case 2:if(!(I0)){t.oi(5);break}return g.m(t,gg(5E3),6);case 6:X=new g.Qq("Retrying OnePlatform request",{attempt:I}),g.Kx(X);case 5:return g.KC(t,7),g.m(t,ho1(W,Y),9);case 9:return t.return();case 7:h=g.Aq(t);B=iZ(h);O=B.errorCode;u=W.V();Z=u.U("html5_use_network_error_code_enums")?401:"401";P&&O==="manifest.net.badstatus"&&B.details.rc===Z&&(P=!1,I===T-1&&(T+= 1));if(I===T-1)return M=BJC(k,B.details),M.details.backend="op",M.details.originec=O,t.return(Promise.reject(M));if(O==="auth"||O==="manifest.net.retryexhausted")return t.return(Promise.reject(B));W.handleError(B);if(Zf(B.severity)){t.oi(4);break}case 3:I++;t.oi(2);break;case 4:return t.return(Promise.reject(BJC(k,{backend:"op"})))}})}; ho1=function(W,Y){function k(Id){Id.readyState===2&&W.VU("ps_c")} var P,T,I,X,h,B,O,u,Z,M,t,q,G,J,d,A,F,y,L,V,c,X7;return g.D(function(Id){switch(Id.W){case 1:Y.fetchType="gp";P=W.V();T=g.dV(P,g.hD(Y));if(!T.W){I=T.getValue();Id.oi(2);break}return g.m(Id,T.W,3);case 3:I=Id.K;case 2:return X=I,h=Sg5(X),B=MP2(Y,W.getPlayerSize(),W.getVisibilityState()),O=g.xm(Oyd),u=g.hD(Y),Z=(0,g.q5)(),M=!1,t="empty",q=0,W.VU("psns"),G={WX:k},g.m(Id,g.mR(h,B,O,void 0,G),4);case 4:J=Id.K;W.VU("psnr");if(Y.Xr())return Id.return();J?"error"in J&&J.error?(M=!0,t="esf:"+J.error.message, q=J.error.code):J.errorMetadata&&(M=!0,t="its",q=J.errorMetadata.status):M=!0;if(M)return d=0,A=((0,g.q5)()-Z).toFixed(),F={},F=P.U("html5_use_network_error_code_enums")?{backend:"op",rc:q,rt:A,reason:t,has_kpt:Y.tT?"1":"0",has_mdx_env:Y.mdxEnvironment?"1":"0",has_omit_key_flag:g.eM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:P.pageId?"1":"0",has_token:u?"1":"0",has_vvt:Y.TJ?"1":"0",is_mdx:Y.isMdxPlayback?"1":"0",mdx_ctrl:Y.ws||"",token_eq:u===g.hD(Y)?"1":"0"}:{backend:"op", rc:""+q,rt:A,reason:t,has_kpt:Y.tT?"1":"0",has_mdx_env:Y.mdxEnvironment?"1":"0",has_omit_key_flag:g.eM("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:P.pageId?"1":"0",has_token:u?"1":"0",has_vvt:Y.TJ?"1":"0",is_mdx:Y.isMdxPlayback?"1":"0",mdx_ctrl:Y.ws||"",token_eq:u===g.hD(Y)?"1":"0"},y="manifest.net.connect",q===429?(y="auth",d=2):q>200&&(y="manifest.net.badstatus",q===400&&(d=2)),Id.return(Promise.reject(new g.uZ(y,F,d)));Y.loading=!1;g.Hn(Y,{raw_player_response:J},!0); L=J;g.IT(Y.V())&&L&&L.trackingParams&&jb(L.trackingParams);if(Y.errorCode)return V={ec:Y.errorCode,ed:Y.errorDetail,es:Y.OX||""},Id.return(Promise.reject(new g.uZ("auth",V,2)));if(!Y.loading&&!qs(Y))return c=Y.isAd()?"auth":"manifest.net.retryexhausted",X7=Y.isAd()?2:1,Id.return(Promise.reject(new g.uZ(c,{successButUnplayable:"1",hasMedia:g.x0(Y)?"1":"0"},X7)));g.G1(Id)}})}; kLd=function(W,Y,k){function P(q){q=iZ(q);if(Zf(q.severity))return Promise.reject(q);W.handleError(q);return!1} function T(){return!0} var I,X,h,B,O,u,Z,M,t;return g.D(function(q){switch(q.W){case 1:var G=W.V();W.getPlayerSize();W.getVisibilityState();W.isFullscreen();if(Y.partnerId===38&&G.playerStyle==="books")G=Y.videoId.indexOf(":"),G=g.MH("//play.google.com/books/volumes/"+Y.videoId.slice(0,G)+"/content/media",{aid:Y.videoId.slice(G+1),sig:Y.amD});else if(Y.partnerId===30&&G.playerStyle==="docs")G=g.MH("https://docs.google.com/get_video_info",{docid:Y.videoId,authuser:Y.VT,authkey:Y.WB5,eurl:G.D_});else if(Y.partnerId===33&& G.playerStyle==="google-live")G=g.MH("//google-liveplayer.appspot.com/get_video_info",{key:Y.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+G.A5);I=G;h=(X=Y.isAd())?1:3;B=0;case 2:if(!(B0)){q.oi(5);break}return g.m(q,gg(5E3),6);case 6:u={playerretry:B,playerretrysrc:k},X||(u.recover="embedded"),O=NC(I,u);case 5:return g.m(q,uL5(Y,O).then(T,P),7);case 7:if(Z=q.K)return q.return();B++;q.oi(2);break;case 4:M=X?"auth":"manifest.net.retryexhausted";t= X?2:1;if(!X&&Math.random()<1E-4)try{g.Kx(new g.Qq("b/152131571",btoa(I)))}catch(J){}return q.return(Promise.reject(new g.uZ(M,{backend:"gvi"},t)))}})}; uL5=function(W,Y){function k(J){return P(J.xhr)} function P(J){if(!W.Xr()){J=J?J.status:-1;var d=0,A=((0,g.q5)()-u).toFixed();A=T.U("html5_use_network_error_code_enums")?{backend:"gvi",rc:J,rt:A}:{backend:"gvi",rc:""+J,rt:A};var F="manifest.net.connect";J===429?(F="auth",d=2):J>200&&(F="manifest.net.badstatus",J===400&&(d=2));return Promise.reject(new g.uZ(F,A,d))}} var T,I,X,h,B,O,u,Z,M,t,q,G;return g.D(function(J){if(J.W==1){W.fetchType="gvi";T=W.V();var d={};W.ir&&(d.ytrext=W.ir);(h=g.Ox(d)?void 0:d)?(I={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:h},X=NC(Y,{action_display_post:1})):(I={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},X=Y);B={};T.sendVisitorIdHeader&&W.visitorData&&(B["X-Goog-Visitor-Id"]=W.visitorData);(O=nA(T.experiments,"debug_sherlog_username"))&&(B["X-Youtube-Sherlog-Username"]=O);Object.keys(B).length> 0&&(I.headers=B);u=(0,g.q5)();return g.m(J,D2(Hy,X,I).then(void 0,k),2)}Z=J.K;if(!Z||!Z.responseText)return J.return(P(Z));W.loading=!1;M=cD(Z.responseText);g.Hn(W,M,!0);if(W.errorCode)return t={ec:W.errorCode,ed:W.errorDetail,es:W.OX||""},J.return(Promise.reject(new g.uZ("auth",t,2)));if(!W.loading&&!qs(W))return q=W.isAd()?"auth":"manifest.net.retryexhausted",G=W.isAd()?2:1,J.return(Promise.reject(new g.uZ(q,{successButUnplayable:"1"},G)));g.G1(J)})}; BJC=function(W,Y){return new g.uZ(W?"auth":"manifest.net.retryexhausted",Y,W?2:1)}; PF=function(W,Y,k){k=k===void 0?!1:k;var P,T,I,X;g.D(function(h){if(h.W==1){P=W.V();if(k&&(!g.E9(P)||jW(Y)!=="embedded")||Y.yS||jW(Y)!=="adunit"&&(g.Zw(P)||Z_(P)||g.dq(P)||g.Kh(P)||g.XF(P)||tn(P)==="WEB_CREATOR"))return h.return();T=g.dV(P,g.hD(Y));return T.W?g.m(h,T.W,3):(I=T.getValue(),h.oi(2))}h.W!=2&&(I=h.K);X=I;return h.return(ZyV(W,Y,X))})}; ZyV=function(W,Y,k){var P,T,I,X,h;return g.D(function(B){if(B.W==1){g.KC(B,2);P=Sg5(k);var O=Y.V(),u=g.mr(),Z={context:g.Eb(Y),videoId:Y.videoId,racyCheckOk:Y.racyCheckOk,contentCheckOk:Y.contentCheckOk,autonavState:"STATE_NONE"};jW(Y)==="adunit"&&(Z.isAdPlayback=!0);O.embedConfig&&(Z.serializedThirdPartyEmbedConfig=O.embedConfig);O.LI&&(Z.showContentOwnerOnly=!0);Y.Wf&&(Z.showShortsOnly=!0);u.Ik(141)&&(Z.autonavState=u.Ik(140)?"STATE_OFF":"STATE_ON");if(g.ph(O)){u=u.Ik(65);u=u!=null?!u:!1;var M= !!g.Es("yt-player-sticky-caption");Z.captionsRequested=u&&M}var t;if(O=(t=O.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags)Z.playbackContext={encryptedHostFlags:O};T=Z;I=g.xm(iy6);W.VU("wn_s");return g.m(B,g.mR(P,T,I),4)}if(B.W!=2)return X=B.K,W.VU("wn_r"),!X||"error"in X&&X.error||(h=X,g.IT(Y.V())&&h.trackingParams&&jb(h.trackingParams),g.Hn(Y,{raw_watch_next_response:X},!1)),g.s2(B,0);g.Aq(B);g.G1(B)})}; MxV=function(W){W.VU("vir");W.VU("ps_s");Aw("vir",void 0,"video_to_ad");var Y=Xiq(W);Y.then(function(){W.VU("virc");Aw("virc",void 0,"video_to_ad");W.VU("ps_r");Aw("ps_r",void 0,"video_to_ad")},function(){W.VU("virc"); Aw("virc",void 0,"video_to_ad")}); return Y}; g.IW=function(W,Y,k,P,T,I,X,h,B,O){B=B===void 0?new g.t6(W):B;O=O===void 0?!0:O;g.NR.call(this);var u=this;this.zJ=W;this.playerType=Y;this.C1=k;this.dY=P;this.getVisibilityState=I;this.visibility=X;this.GW=h;this.videoData=B;this.kd=O;this.logger=new g.H_("VideoPlayer");this.hY=null;this.PX=new HB;this.S9=null;this.QB=!0;this.j1=this.loader=null;this.sy=[];this.AU=new kH;this.o6=this.UF=null;this.yR=new kH;this.bN=null;this.bJ=this.Zn=!1;this.aQ=NaN;this.Cl=!1;this.playerState=new g.zc;this.lN=[]; this.MP=new g.p5;this.mediaElement=null;this.gh=this.Py=!1;this.r7=NaN;this.yM=!1;this.je=0;this.oN=!1;this.Hq=NaN;this.sS=0;this.loop=!1;this.playbackRate=1;this.lS=0;this.FG=!1;this.EO=[];this.a$=this.gB=0;this.wh=this.Zt=!1;this.DU=this.FV=0;this.Q4=!1;this.FU=this.Fq=this.KF=this.Ha=null;this.R6=function(){var Z=u.FA;Z.provider.zJ.jW||Z.provider.W6.getVisibilityState()===3||(Z.provider.zJ.jW=!0);Z.vA();if(Z.K){var M=Z.K;M.C&&M.W<0&&M.provider.W6.getVisibilityState()!==3&&tod(M)}Z.qoe&&(Z=Z.qoe, Z.rD&&Z.J<0&&Z.provider.zJ.jW&&Uqq(Z),Z.T&&ju(Z));u.loader&&Td(u);u.zJ.vF&&!u.videoData.backgroundable&&u.mediaElement&&!u.Y7()&&(u.isBackground()&&u.mediaElement.sN()?(u.y5("bgmobile",{suspend:1}),u.lw(!0,!0)):u.isBackground()||jo(u)&&u.y5("bgmobile",{resume:1}))}; this.zW={CI:function(Z){u.CI(Z)}, fn5:function(Z){u.hY=Z}, cdz:function(){return u.FA}, s0:function(){return u.j1}, n$S:function(){return u.Zy}, t9r:function(){return u.fA}, vti:function(){}, V:function(){return u.zJ}, bd:function(){return u.mediaElement}, iyq:function(Z){u.Kl(Z)}, uVD:function(){return u.dY}}; this.nL=new oLd(this);this.Pb=new g.C_(this.QbP,15E3,this);this.Ab=new WF(new Map([["bufferhealth",function(){return v6V(u.O1)}], ["bandwidth",function(){return u.pm()}], ["networkactivity",function(){return u.zJ.schedule.wD}], ["livelatency",function(){return u.isAtLiveHead()&&u.isPlaying()?tx0(u):NaN}], ["rawlivelatency",function(){return tx0(u)}]])); this.O1=new g6z(this);this.nA=new g.C_(this.Nn,0,this);this.V11=[this.MP,this.nA,this.Pb,this.Ab];this.logger.debug(function(){return"creating, type "+Y}); this.mY=new RFS(this.zJ);this.vl=new pn(this.zJ,this.dY,this);this.Pk=new g.wx(this,function(Z,M){Z!==g.lP("endcr")||g.b(u.playerState,32)||u.XT();T(Z,M,u.playerType);if(Z===g.lP("transitiondetector")&&(Z=u.loader)!=null&&(Z=Z.A9)!=null){var t=g.p(jRd(M.id));t.next();t=t.next().value;$qz(Z,t,M.start/1E3-Z.W6.m2(),bzC(Z.T))}}); g.v(this,this.Pk);g.v(this,this.O1);qg2(this,B);this.videoData.subscribe("dataupdated",this.dt2,this);this.videoData.subscribe("dataloaded",this.MG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.y5,this);this.videoData.subscribe("ctmpstr",this.lf,this);!this.FA||this.FA.Xr();this.FA=new g.gx(new DB(this.videoData,this.zJ,this));yS7(this.R6);this.visibility.subscribe("visibilitystatechange",this.R6);this.Zy=new g.C_(this.jZ,g.W2(this.zJ.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.fA=new g.C_(this.jZ,g.W2(this.zJ.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.bA=new g.b9(this.RNJ,350,this);g.v(this,this.bA)}; qg2=function(W,Y){if(W.playerType===2||W.zJ.Xo)Y.h1=!0;var k=A$6(Y.jW,Y.SB,W.zJ.T,W.zJ.L);k&&(Y.adFormat=k);W.playerType===2&&(Y.zv=!0);if(W.isFullscreen()||W.zJ.T)k=g.Es("yt-player-autonavstate"),Y.autonavState=k||(W.zJ.T?2:W.videoData.autonavState);Y.endSeconds&&Y.endSeconds>Y.startSeconds&&NI(W,Y.endSeconds)}; RoV=function(W){var Y=W.videoData;MxV(W).then(void 0,function(k){W.videoData!==Y||Y.Xr()||(k=iZ(k),k.errorCode==="auth"&&W.videoData.errorDetail?W.SW(k.errorCode,2,unescape(W.videoData.errorReason),Ol(k.details),W.videoData.errorDetail,W.videoData.OX||void 0):W.handleError(k))})}; pid=function(W){if(!g.b(W.playerState,128))if(W.videoData.isLoaded(),W.logger.debug("finished loading playback data"),W.sy=g.zK(W.videoData.N),g.x0(W.videoData)){W.C1.tick("bpd_s");Xy(W).then(function(){W.C1.tick("bpd_c");if(!W.Xr()){W.Zn&&(W.AT(DQ(DQ(W.playerState,512),1)),jo(W));var P=W.videoData;P.endSeconds&&P.endSeconds>P.startSeconds&&NI(W,P.endSeconds);W.AU.finished=!0;So(W,"dataloaded");W.yR.Q9()&&Hyz(W);MoS(W.vl,W.o6)}}); W.U("html5_log_media_perf_info")&&W.y5("loudness",{v:W.videoData.Zm.toFixed(3)},!0);var Y,k=(Y=W.mediaElement)==null?void 0:Y.Tn();if(k&&"disablePictureInPicture"in k&&W.zJ.WV)try{k.disablePictureInPicture=W.zJ.vu&&!W.videoData.backgroundable}catch(P){g.Kx(P)}nc0(W);W.U("html5_enable_audio_feature_manager")&&(W.FU=new fu(W.videoData))}else So(W,"dataloaded")}; Xy=function(W){h3(W);W.o6=null;var Y=n67(W.zJ,W.videoData,W.Y7());W.UF=Y;W.UF.then(function(k){GLC(W,k)},function(k){W.Xr()||(k=iZ(k),W.visibility.isBackground()?(BF(W,"vp_none_avail"),W.UF=null,W.AU.reset()):(W.AU.finished=!0,W.SW(k.errorCode,k.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ol(k.details))))}); return Y}; GLC=function(W,Y){if(!W.Xr()&&!Y.videoData.Xr()){W.logger.debug("finished building playback data");W.o6=Y;QDV(W.O1,W.o6);if(W.videoData.isLivePlayback){var k=K76(W.GW.eT,W.videoData.videoId)||W.loader&&!isNaN(W.loader.TJ);k=W.U("html5_onesie_live")&&k;fn(W)||W.videoData.K1>0&&!QO(W.videoData)||k||W.seekTo(W.M6(),{Fi:"videoplayer_playbackData",seekSource:18})}if(W.videoData.J.W){if(PS5(W.videoData)){W.SW("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",Ol({missabrurl:1}));return}W.loader?g.Kx(Error("Duplicated Loader")): (k=g.W2(W.zJ.experiments,"html5_onesie_defer_content_loader_ms"))&&W.ri()&&K76(W.GW.eT,W.videoData.Hsr)?g.Ii(function(){W.Xr()||W.loader||EcS(W)},k):EcS(W)}else!W.videoData.J.W&&ZA(W.videoData)&&W.OO(new dc(W.videoData.videoId||"",4)); W.rf();XFC(Y).then(function(){var P={};W.oA(P);W.zJ.OR()&&W.U("html5_log_media_perf_info")&&W.y5("av1Info",P);Td(W)})}}; Hyz=function(W){W.Xr();W.logger.debug("try finish readying playback");if(W.yR.finished)W.logger.debug("already finished readying");else if(W.AU.finished)if(g.b(W.playerState,128))W.logger.debug("cannot finish readying because of error");else if(W.sy.length)W.logger.debug(function(){return"cannot finish readying because of pending preroll: "+W.sy}); else if(W.Pk.started||OOC(W.Pk),W.IS())W.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{W.loader&&(W.bJ=ZrV(W.loader.timing));W.yR.finished||(W.yR.finished=!0);var Y=W.U("html5_onesie_live")&&W.loader&&!isNaN(W.loader.TJ);!W.videoData.isLivePlayback||W.videoData.K1>0&&!QO(W.videoData)||Y||fn(W)||(W.logger.debug("seek to head for live"),W.seekTo(Infinity,{Fi:"videoplayer_readying",seekSource:18}),W.isBackground()&&(W.gh=!0));VoV(W.FA);W.logger.debug("finished readying playback"); W.publish("playbackready");sk("pl_c",W.C1.timerName)||(W.C1.tick("pl_c"),Aw("pl_c",void 0,"video_to_ad"));sk("pbr",W.C1.timerName)||(W.C1.tick("pbr"),Aw("pbr",void 0,"video_to_ad"))}else W.logger.debug("playback data not loaded")}; NI=function(W,Y){W.S9&&Jg2(W);W.S9=new g.L6(Y*1E3,0x7ffffffffffff);W.S9.namespace="endcr";W.addCueRange(W.S9)}; Jg2=function(W){W.removeCueRange(W.S9);W.S9=null}; stF=function(W,Y,k,P,T){var I=W.FA,X=W.videoData;X.K=k;var h=g.OS(W);k=new aBV(X,k,Y,h?h.itag:"",P);W.zJ.experiments.Nq("html5_refactor_sabr_video_format_selection_logging")?(k.videoId=T,W.Fq=k):I.qoe&&LOz(I.qoe,k);T=W.vl;T.K=0;T.W=0;W.publish("internalvideoformatchange",X,Y==="m")}; g.OS=function(W){var Y=uz(W);return ro(Y)||!W.o6?null:g.qc(W.o6.W.videoInfos,function(k){return Y.T(k)})}; uz=function(W){if(W.o6){var Y=W.vl;var k=W.o6;W=W.Y5();var P=YS1(Y);if(ro(P)){if(P=Y.l0(k).compose(T$1(Y,k)).compose(IbC(Y,k)).compose(Zdv(Y,k.videoData)).compose(idC(Y,k.videoData,k)).compose(uy6(Y,k)).compose(kdz(Y,k)),ro(W)||Y.U("html5_apply_pbr_cap_for_drm"))P=P.compose(PzV(Y,k))}else Y.U("html5_perf_cap_override_sticky")&&(P=P.compose(uy6(Y,k))),Y.U("html5_ustreamer_cap_override_sticky")&&(P=P.compose(PzV(Y,k)));P=P.compose(kdz(Y,k));Y=k.videoData.Nm.compose(P).compose(k.videoData.aW).compose(W)}else Y= Ms;return Y}; E07=function(W){var Y=W.vl;W=W.videoData;var k=Zdv(Y,W);Y.U("html5_disable_client_autonav_cap_for_onesie")||k.compose(idC(Y,W));return k}; Td=function(W){if(W.videoData.J&&W.videoData.J.W){var Y=uz(W);W.loader&&SH6(W.loader,Y)}}; rgz=function(W){var Y;return!!(W.U("html5_native_audio_track_switching")&&g.hj&&((Y=W.videoData.K)==null?0:f5(Y)))}; Agd=function(W){if(!rgz(W))return!1;var Y;W=(Y=W.mediaElement)==null?void 0:Y.audioTracks();return!!(W&&W.length>1)}; dA7=function(W){var Y=zoz(W);if(Y)return W.videoData.getAvailableAudioTracks().find(function(k){return k.Ib.getName()===Y})}; zoz=function(W){var Y;if(W=(Y=W.mediaElement)==null?void 0:Y.audioTracks())for(Y=0;Y0&&(Y.k7=k.GU));Y.PU=k.i5;Y.nh=$O(P,{},k.J||void 0,zW(k));Y.e1=A6(k)&&(g.dq(P)||g.Kh(P));mX(k)&&(Y.C=!0,Y.GU=P.U("html5_estimate_live_partial_slice_duration"),g.Zw(P)&&!g.wn()&&P.U("html5_force_audio_to_cover_video_keyframe")?Y.J9=!1:Y.J9=!0,P.U("html5_sabr_report_partial_segment_estimated_duration")&& (Y.mH=!0),Y.W=!0,Y.xF=P.U("html5_disable_client_resume_policy_for_sabr"),Y.Io=P.U("html5_trigger_loader_when_idle_network"),Y.Yi=P.U("html5_sabr_parse_live_metadata_playback_boundaries"),Y.UK=P.U("html5_consume_onesie_next_request_policy_for_sabr"),Y.Br=P.U("html5_sabr_report_next_ad_break_time"),Y.LI=P.U("html5_log_high_res_buffer_timeline")&&P.OR(),Y.GT=P.U("html5_remove_stuck_slices_beyond_max_buffer_limits"),Y.wX=P.U("html5_gapless_sabr_btl_last_slice")&&rR(k),Y.zZ=P.U("html5_reset_last_appended_slice_on_seek")&& rR(k),QO(k)?(Y.q0=!0,Y.l4=P.U("html5_disable_variability_tracker_for_live"),Y.Q5=!0,P.U("html5_simplified_backup_timeout_sabr_live")&&(Y.CL=!0,Y.k8=Y.cF)):Y.xq=P.U("html5_probe_request_on_sabr_request_progress"),Y.O2=P.U("html5_serve_start_seconds_seek_for_post_live_sabr"),Y.CN=P.U("html5_flush_index_on_updated_timestamp_offset"),Y.N=mX(k),Y.yD=P.U("html5_ignore_partial_segment_from_live_readahead"),P.U("html5_include_partial_segment_for_jumbo_ll")&&yO(k)&&(Y.yD=!1),Y.kP=P.U("html5_use_non_active_broadcast_for_post_live"), Y.TJ=P.U("html5_use_centralized_player_time"),Y.f1=P.U("html5_log_centralized_player_time"),Y.FC=P.U("html5_consume_onesie_sabr_seek"),Y.A5=P.U("html5_enable_sabr_seek_loader_refactor"),Y.Nm=g.W2(P.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),Y.Zi=P.U("html5_update_segment_start_time_from_media_header"),k.enableServerStitchedDai&&(Y.K=!0,Y.SB=P.U("html5_reset_server_stitch_state_for_non_sabr_seek"),Y.Hr=P.U("html5_remove_ssdai_append_pause")&&!k.Xj(),Y.Zm=P.U("html5_ssdai_log_ssevt_in_loader")|| P.U("html5_ssdai_log_ssevt_in_loader_200ms")||P.U("html5_ssdai_log_ssevt_in_loader_timers")||P.U("html5_ssdai_log_ssevt_in_loader_cuerange"),P.U("html5_ssdai_log_ssevt_in_loader_timers")?Y.A9=1:P.U("html5_ssdai_log_ssevt_in_loader_200ms")?Y.A9=3:P.U("html5_ssdai_log_ssevt_in_loader_cuerange")&&(Y.A9=0)),Y.qV=P.OR()||k.Xj());Y.Qa=g.Yaz(k);Lm(P.C,U7.BITRATE)&&(Y.c6=NaN);if(h=g.W2(P.experiments,"html5_request_size_max_kb"))Y.GJ=h*1024;P.C.J?Y.Er="; "+U7.EXPERIMENTAL.name+"=allowed":P.U("html5_enable_cobalt_tunnel_mode")&& g.wn()&&(h=U7.TUNNELMODE,Y.Er="; "+h.name+"="+h.valid);k=k.serverPlaybackStartConfig;(k==null?0:k.enable)&&(k==null?0:k.playbackStartPolicy)&&(Y.RB=!0,Y9V(Y,k.playbackStartPolicy,2));k=mAV(W);W.PX.removeAll();a:{h=W.GW.eT;if(P=W.videoData.videoId)if(T=h.W.get(P)){h.W.remove(P);h=T;break a}h=void 0}W.loader=new g.hS(W,W.zJ.schedule,Y,W.videoData.W,W.videoData.J,uz(W),k,W.videoData.enableServerStitchedDai,h,W.videoData.A5);Y=W.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&W.videoData.isLivePlayback&& W.ri()?!0:W.Zn&&g.Zw(W.zJ)&&W.videoData.isLivePlayback;W.loader.initialize(W.getCurrentTime(),uz(W),Y);W.videoData.probeUrl&&(W.loader.bz=W.videoData.probeUrl);if(W.sy.length||W.Zn)W.videoData.cotn||Zb(W,!1);eFz(W.O1,W.loader);W.Ha&&(ej2(W.loader,new g.BB(W.Ha)),W.y5("sdai",{sdl:1}));g.qq(W.videoData)&&(W=W.loader,W.policy.kp=W.policy.ew)}; h3=function(W){W.loader&&(W.loader.dispose(),W.loader=null,eFz(W.O1,null));W.Jf()?DAX(W):W.Fo()}; DAX=function(W){if(W.j1)if(W.logger.debug("release media source"),W.Oo(),W.j1.C)try{W.zJ.OR()&&W.y5("rms",{l:"vprms",sr:W.Jf(),rs:pY(W.j1)});W.j1.clear();var Y;(Y=W.mediaElement)!=null&&(Y.K=W.j1);W.j1=null}catch(k){Y=new g.Qq("Error while clearing Media Source in VideoPlayer: "+k.name+", "+k.message),Y=iZ(Y),W.handleError(Y),W.Fo()}else W.Fo()}; gcC=function(W,Y){Y=Y===void 0?!1:Y;if(W.j1)return W.j1.J;W.logger.debug("update media source");a:{Y=Y===void 0?!1:Y;try{g.wn()&&W.videoData.G_()&&Ls7(W.mediaElement);var k=W.mediaElement.s0(W.Qg(),W.Cm())}catch(T){if(lBv(W.nL,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",T);W.SW("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}W.mK(k,!1,!1,Y)}var P;return((P=W.s0())==null?void 0:P.J)||null}; F76=function(W,Y){Y=Y===void 0?!1:Y;if(W.loader){W.videoData.enableServerStitchedDai&&lDF(W.loader);var k=W.getCurrentTime()-W.m2();W.loader.seek(k,{dT:Y}).MA(function(){})}else EcS(W)}; Qt1=function(W,Y,k,P){k=k===void 0?!1:k;P=P===void 0?!1:P;if(W.j1&&(!Y||W.j1===Y)){W.logger.debug("media source opened");var T=W.getDuration();!T&&QO(W.videoData)&&(T=25200);if(W.j1.isView){var I=T;W.logger.debug(function(){return"Set media source duration to "+I+", video duration "+T}); I>W.j1.getDuration()&&wi5(W,I)}else wi5(W,T);jJd(W.loader,W.j1,k,P);W.publish("mediasourceattached")}}; wi5=function(W,Y){if(W.j1){W.j1.Nv(Y);var k;(k=W.loader)!=null&&k.policy.TJ&&(k.X=Y)}}; B71=function(W,Y){stF(W,Y.reason,Y.W.info,Y.token,Y.videoId)}; So=function(W,Y){W.publish("internalvideodatachange",Y===void 0?"dataupdated":Y,W.videoData)}; yg2=function(W){for(var Y=g.p("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),k=Y.next();!k.done;k=Y.next())W.MP.Z(W.mediaElement,k.value,W.Kl,W);W.zJ.y7&&W.mediaElement.vr()&&(W.MP.Z(W.mediaElement,"webkitplaybacktargetavailabilitychanged",W.a2a,W),W.MP.Z(W.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",W.Eag,W))}; ocz=function(W){g.hB(W.aQ);eoX(W)||(W.aQ=g.XU(function(){return eoX(W)},100))}; eoX=function(W){var Y=W.mediaElement;Y&&W.Py&&!W.videoData.Kg&&!sk("vfp",W.C1.timerName)&&Y.Tg()>=2&&!Y.isEnded()&&Sc(Y.EE())&&W.C1.tick("vfp");return(Y=W.mediaElement)&&!W.videoData.Kg&&Y.getDuration()>0&&(Y.isPaused()&&Y.Tg()>=2&&Sc(Y.EE())&&(sk("pbp",W.C1.timerName)||W.C1.tick("pbp"),!W.videoData.Ka||W.Cl||Y.isSeeking()||(W.Cl=!0,W.publish("onPlaybackPauseAtStart"))),Y=Y.getCurrentTime(),QG(W.mY,Y))?(W.l6(),!0):!1}; Cn6=function(W){W.FA.onProgress();if(wR(W.videoData)&&Date.now()>W.lS+6283){if(W.U("html5_unified_live_latency_reporting")){var Y=W.FA;Y.qoe&&FOC(Y.qoe)}else!W.isAtLiveHead()||W.videoData.W&&Lr(W.videoData.W)||(Y=W.FA,Y.qoe&&FOC(Y.qoe));Y=g.OG(W.zJ);var k=W.U("html5_always_log_rawlat");(Y||k)&&W.y5("rawlat",{l:$H(W.Ab,"rawlivelatency").toFixed(3)});W.lS=Date.now()}W.videoData.K&&f5(W.videoData.K)&&(Y=W.Ud())&&Y.videoHeight!==W.a$&&(W.a$=Y.videoHeight,stF(W,"a",vcV(W,W.videoData.rD)))}; vcV=function(W,Y){if(Y.W.video.quality==="auto"&&f5(Y.getInfo())&&W.videoData.xq)for(var k=g.p(W.videoData.xq),P=k.next();!P.done;P=k.next())if(P=P.value,P.getHeight()===W.a$&&P.W.video.quality!=="auto")return P.getInfo();return Y.getInfo()}; tx0=function(W){if(!wR(W.videoData))return NaN;var Y=0;W.loader&&W.videoData.W&&(Y=QO(W.videoData)?W.loader.BQ.le()||0:W.videoData.W.OP);return(0,g.q5)()/1E3-W.hT()-Y}; UA7=function(W){W.mediaElement&&W.mediaElement.Y7()&&(W.Hq=(0,g.q5)());W.zJ.l3?g.Ii(function(){L7q(W)},0):L7q(W)}; L7q=function(W){var Y;if((Y=W.j1)==null||!Y.IM()){if(W.mediaElement)try{W.bN=W.mediaElement.playVideo()}catch(P){BF(W,"err."+P)}if(W.bN){var k=W.bN;k.then(void 0,function(P){W.logger.debug(function(){return"playMediaElement failed: "+P}); if(!g.b(W.playerState,4)&&!g.b(W.playerState,256)&&W.bN===k)if(P&&P.name==="AbortError"&&P.message&&P.message.includes("load"))W.logger.debug(function(){return"ignore play media element failure: "+P.message}); else{var T="promise";P&&P.name&&(T+=";m."+P.name);BF(W,T);W.FG=!0;W.videoData.Dm=!0}})}}}; BF=function(W,Y){g.b(W.playerState,128)||(W.AT(F_(W.playerState,1028,9)),W.y5("dompaused",{r:Y}),W.publish("onAutoplayBlocked"))}; jo=function(W,Y){Y=Y===void 0?!1:Y;if(!W.mediaElement||!W.videoData.J)return!1;var k=Y;k=k===void 0?!1:k;var P=null;var T;if((T=W.videoData.J)==null?0:T.W){P=gcC(W,k);var I;(I=W.loader)==null||I.resume()}else h3(W),W.videoData.rD&&(P=W.videoData.rD.B1());T=W.mediaElement.sN();k=!1;T&&T.equals(P)||(l6d(W,P),k=!0);g.b(W.playerState,2)||(P=W.O1,Y=Y===void 0?!1:Y,P.C||!(P.J>0)||P.mediaElement&&P.mediaElement.getCurrentTime()>0||(Y={Fi:"seektimeline_resumeTime",dT:Y},P.videoData.Kg||(Y.seekSource=15), P.seekTo(P.J,Y)));a:{Y=k;if(mX(W.videoData)){if(!W.videoData.t$())break a}else if(!g.U4(W.videoData))break a;if(W.mediaElement)if((P=W.videoData.C)&&W.mediaElement.vr()){T=W.mediaElement.Tn();if(W.hY)if(T!==W.hY.element)iz(W);else if(Y&&P.flavor==="fairplay"&&!Qp())iz(W);else break a;if(W.U("html5_report_error_for_unsupported_tvos_widevine")&&Qp()&&P.flavor==="widevine")W.SW("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{W.hY=new ASF(T,W.videoData,W.zJ);W.hY.subscribe("licenseerror", W.sO,W);W.hY.subscribe("qualitychange",W.DTa,W);W.hY.subscribe("heartbeatparams",W.eM,W);W.hY.subscribe("keystatuseschange",W.CI,W);W.hY.subscribe("ctmp",W.y5,W);Y=g.p(W.PX.keys);for(P=Y.next();!P.done;P=Y.next())P=W.PX.get(P.value),W.hY.j7(P);W.U("html5_eme_loader_sync")||W.PX.removeAll()}}else W.SW("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return k}; l6d=function(W,Y){W.C1.tick("vta");Aw("vta",void 0,"video_to_ad");W.getCurrentTime()>0&&LhC(W.O1,W.getCurrentTime());W.mediaElement.activate(Y);W.j1&&bC(4);!W.videoData.Kg&&W.playerState.isOrWillBePlaying()&&W.Pb.start();if(rgz(W)){var k;if(Y=(k=W.mediaElement)==null?void 0:k.audioTracks())Y.onchange=function(){W.publish("internalaudioformatchange",W.videoData,!0)}}}; iz=function(W){W.hY&&(W.hY.dispose(),W.hY=null)}; byd=function(W){var Y=Y===void 0?!1:Y;W.logger.debug("reattachVideoSource");W.mediaElement&&(W.j1?(iz(W),W.Fo(),gcC(W,Y)):(W.videoData.rD&&W.videoData.rD.UD(),W.mediaElement.stopVideo()),W.playVideo())}; cg7=function(W,Y){W.zJ.U("html5_log_rebuffer_reason")&&(Y={r:Y,lact:Ml()},W.mediaElement&&(Y.bh=sM(W.mediaElement)),W.y5("bufreason",Y))}; xAq=function(W,Y){if(W.zJ.OR()&&W.mediaElement){var k=W.mediaElement.ER();k.omt=(W.mediaElement.getCurrentTime()+W.m2()).toFixed(3);k.ps=W.playerState.state.toString(16);k.rt=(g.TA(W.FA.provider)*1E3).toFixed();k.e=Y;W.EO[W.gB++%5]=k}try{if(Y==="timeupdate"||Y==="progress")return}catch(P){}W.logger.debug(function(){return"video element event "+Y})}; f67=function(W){if(W.zJ.OR()){W.EO.sort(function(P,T){return+P.rt-+T.rt}); for(var Y=g.p(W.EO),k=Y.next();!k.done;k=Y.next())k=k.value,W.y5("vpe",Object.assign({t:k.rt},k));W.EO=[];W.gB=0}}; Vx1=function(W){if(g.gn("cobalt")&&g.gn("nintendo switch")){var Y=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;W.y5("nxdock",{d:Y})}}; Zb=function(W,Y){var k;(k=W.loader)==null||YH6(k,Y)}; nc0=function(W){HV(W.videoData,"html5_set_debugging_opt_in")&&(W=g.mr(),W.Ik(183)||(gD(183,!0),W.save()))}; b3S=function(W,Y){W.GW.g_()||(W.y5("sgap",{f:Y}),W.GW.clearQueue(!1,Y==="pe"))}; fn=function(W){return W.U("html5_disable_video_player_initiated_seeks")&&mX(W.videoData)}; NJq=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);sb(this.api,"isLifaAdPlaying",function(){return Y.api.isLifaAdPlaying()}); this.events.Z(W,"serverstitchedvideochange",function(){var k;(k=Y.api.getVideoData())!=null&&k.Xj()&&(Y.api.isLifaAdPlaying()?(Y.playbackRate=Y.api.getPlaybackRate(),Y.api.setPlaybackRate(1)):Y.api.setPlaybackRate(Y.playbackRate))}); this.playbackRate=1}; M7=function(W){EH.call(this,"En bucle",g.m4.QO);this.Y=W;var Y=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:m8C();this.setIcon(Y);this.subscribe("select",this.K,this);W.createClientVe(this.element,this,28661);this.Z(W,"settingsMenuVisibilityChanged",this.W);this.listen("click",this.logClick);this.Z(W,"onLoopChange",this.onLoopChange);JG(this,W.getLoopVideo());W.ML().c7(this)}; a62=function(W){Mb.call(this,W);var Y=this;W.addEventListener("settingsMenuInitialized",function(){Y.menuItem||(Y.menuItem=new M7(Y.api),g.v(Y,Y.menuItem))}); W.addEventListener("videodatachange",function(k,P){k=Y.api.getPresentingPlayerType()===2;var T;(T=Y.menuItem)==null||T.b8(!P.isLivePlayback&&!k)})}; Wcv=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);sb(this.api,"seekToChapterWithAnimation",function(k){Y.seekToChapterWithAnimation(k)}); sb(this.api,"seekToTimeWithAnimation",function(k,P){Y.seekToTimeWithAnimation(k,P)}); sb(this.api,"renderChapterSeekingAnimation",function(k,P,T){Y.api.renderChapterSeekingAnimation(k,P,T)}); sb(this.api,"setMacroMarkers",function(k){Y.setMacroMarkers(W,k)}); sb(this.api,"changeMarkerVisibility",function(k,P,T){Y.changeMarkerVisibility(k,P,T)}); sb(this.api,"isSameMarkerTypeVisible",function(k){return Y.isSameMarkerTypeVisible(k)})}; YAX=function(W,Y,k){var P=W.api.getCurrentTime()*1E30&&T>0&&(k.width+=T,g.CX(Y.element,"width",k.width+"px")));W.size=k}}; g.m3=function(W,Y){var k=W.W[W.W.length-1];k!==Y&&(W.W.push(Y),gMF(W,k,Y))}; g.Db=function(W){if(!(W.W.length<=1)){var Y=W.W.pop(),k=W.W[0];W.W=[k];gMF(W,Y,k,!0)}}; gMF=function(W,Y,k,P){Fc1(W);Y&&(Y.unsubscribe("size-change",W.h6,W),Y.unsubscribe("back",W.iY,W));k.subscribe("size-change",W.h6,W);k.subscribe("back",W.iY,W);if(W.v7){g.a2(k.element,P?"ytp-panel-animate-back":"ytp-panel-animate-forward");k.S1(W.content);k.focus();W.element.scrollLeft=0;W.element.scrollTop=0;var T=W.size;DfV(W);g.a_(W.element,T);W.T=new g.C_(function(){wN5(W,Y,k,P)},20,W); W.T.start()}else k.S1(W.content),Y&&Y.detach()}; wN5=function(W,Y,k,P){W.T.dispose();W.T=null;g.a2(W.element,"ytp-popup-animating");P?(g.a2(Y.element,"ytp-panel-animate-forward"),g.YN(k.element,"ytp-panel-animate-back")):(g.a2(Y.element,"ytp-panel-animate-back"),g.YN(k.element,"ytp-panel-animate-forward"));g.a_(W.element,W.size);W.C=new g.C_(function(){g.YN(W.element,"ytp-popup-animating");Y.detach();g.$N(Y.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);W.C.dispose();W.C=null},250,W); W.C.start()}; Fc1=function(W){W.T&&g.UU(W.T);W.C&&g.UU(W.C)}; g$=function(W){g.d$.call(this,W,"ytp-shopping-product-menu");this.iD=new g.A3(this.Y);g.v(this,this.iD);this.hide();g.m3(this,this.iD);g.aR(this.Y,this.element,4)}; yiC=function(W,Y,k){var P,T=Y==null?void 0:(P=Y.text)==null?void 0:P.simpleText;T&&(k=QKF(W,k,T,Y==null?void 0:Y.icon,Y==null?void 0:Y.secondaryIcon),Y.navigationEndpoint&&k.listen("click",function(){W.Y.Ri("innertubeCommand",Y.navigationEndpoint);W.hide()},W))}; evC=function(W,Y,k){var P,T=Y==null?void 0:(P=Y.text)==null?void 0:P.simpleText;T&&QKF(W,k,T,Y==null?void 0:Y.icon).listen("click",function(){var I;(Y==null?void 0:(I=Y.icon)==null?void 0:I.iconType)==="HIDE"?W.Y.publish("featuredproductdismissed"):Y.serviceEndpoint&&W.Y.Ri("innertubeCommand",Y.serviceEndpoint);W.hide()},W)}; QKF=function(W,Y,k,P,T){Y=new g.OH(g.ui({},[],!1,!!T),Y,k);T&&Y.updateValue("secondaryIcon",oM7(T));Y.setIcon(oM7(P));g.v(W,Y);W.iD.c7(Y,!0);return Y}; oM7=function(W){if(!W)return null;switch(W.iconType){case "ACCOUNT_CIRCLE":return{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Hez();case "HIDE":return{S:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"g",B:[{S:"path",D:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return MO()}}; Fy=function(W){sS.call(this,W,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.G=!0;this.overflowButton=new g.l({S:"button",Ya:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.v(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.l({S:"img",j:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}}); this.thumbnailImage.hide();g.v(this,this.thumbnailImage);this.thumbnailIcon=new g.l({S:"div",j:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.v(this,this.thumbnailIcon);this.banner=new g.l({S:"a",j:"ytp-suggested-action-container",B:[this.thumbnailImage,this.thumbnailIcon,{S:"div",j:"ytp-suggested-action-details",B:[{S:"text",j:"ytp-suggested-action-title",v6:"{{title}}"},{S:"text",j:"ytp-suggested-action-subtitle",v6:"{{subtitle}}"},{S:"text",j:"ytp-suggested-action-metadata-text", v6:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.v(this,this.banner);this.banner.S1(this.J.element);this.Z(this.Y,"videodatachange",this.onVideoDataChange);this.Z(this.Y,g.lP("suggested_action_view_model"),this.H1i);this.Z(this.Y,g.bP("suggested_action_view_model"),this.GnP);this.Z(this.overflowButton.element,"click",this.pM);this.Z(W,"featuredproductdismissed",this.yQ);this.Y.createServerVe(this.banner.element,this.banner,!0)}; vMV=function(W){W.isInitialized&&(W.enabled=W.isVisible,W.Kg=W.isVisible,J3(W),W.zw(),W.thumbnailImage.b8(W.isVisible),W.shouldHideDismissButton||W.dismissButton.b8(W.isVisible),W.shouldShowOverflowButton&&W.overflowButton.b8(W.isVisible))}; w$=function(){Fy.apply(this,arguments)}; CO0=function(W){Mb.call(this,W);this.W=new w$(this.api);g.v(this,this.W);g.aR(this.api,this.W.element,4)}; QA=function(W){Mb.call(this,W);var Y=this;this.W=!0;var k=new g.p5(W);g.v(this,k);k.Z(W,"internalaudioformatchange",function(P,T){LcC(Y,P,T)}); k.Z(W,"videoplayerreset",function(){Ufd(Y)}); k.Z(W,"videodatachange",function(P,T){Y.onVideoDataChange(P,T)})}; LcC=function(W,Y,k){if(k){var P="";l15(W,Y)&&(P=Y,W.api.V().Q5=Y);if(P&&bqz(W,P)){wW0(W.api,P);var T;vW(mi(W.api.V(),(T=W.api.getVideoData())==null?void 0:g.hD(T)),function(I){ciz(W,P,I)})}}}; Ufd=function(W){var Y;if((Y=H0())==null?0:Y.size){var k;vW(mi(W.api.V(),(k=W.api.getVideoData())==null?void 0:g.hD(k)),function(P){(P=xfV(P))&&bqz(W,P)&&(W.api.V().Q5=P)})}}; ciz=function(W,Y,k){xfV(k)!==Y&&(f1V([{settingItemId:yA(k),settingOptionValue:{stringValue:Y}}]),vW(W.fn(),function(P){Rfd(P,yA(k),{stringValue:Y})}))}; Vsd=function(W,Y){C1(vW(vW(W.fn(),function(k){return tKS(k,[yA(Y)])}),function(k){if(k){k=g.p(k); for(var P=k.next();!P.done;P=k.next()){var T=P.value;P=T.key;T=T.value;P&&T&&(f1V([{settingItemId:P,settingOptionValue:T}]),Ufd(W))}}}),function(){W.W=!0})}; l15=function(W,Y){W=W.api.getAvailableAudioTracks();W=g.p(W);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.getLanguageInfo().getId()===Y)return k;return null}; xfV=function(W){W=yA(W);var Y=H0();W=Y?Y.get(W):void 0;return W&&W.stringValue?W.stringValue:""}; yA=function(W){var Y=(484).toString();W&&(Y=(483).toString());return Y}; bqz=function(W,Y){var k;return Y.split(".")[0]!==""&&((k=W.api.getVideoData())==null?void 0:!uf(k))}; f1V=function(W){var Y=H0();Y||(Y=new Map);W=g.p(W);for(var k=W.next();!k.done;k=W.next())k=k.value,Y.set(k.settingItemId,k.settingOptionValue);Y=JSON.stringify(Object.fromEntries(Y));g.Ke("yt-player-user-settings",Y,2592E3)}; g.eo=function(W,Y,k,P,T,I,X){g.OH.call(this,g.ui({"aria-haspopup":"true"}),Y,W);this.Mq=P;this.N=!1;this.J=null;this.options={};this.Ba=new g.A3(k,void 0,W,T,I,X);g.v(this,this.Ba);this.listen("keydown",this.kZ);this.listen("click",this.open)}; N_7=function(W){if(W.J){var Y=W.options[W.J];Y.element.getAttribute("aria-checked");Y.element.setAttribute("aria-checked","false");W.J=null}}; a1z=function(W,Y){g.eo.call(this,"Temporizador de apagado",g.m4.SLEEP_TIMER,W,Y);this.Y=W;this.X={};this.T=this.NE("Off");this.C=this.W="";W.U("web_settings_menu_icons")&&(Y=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{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"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{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(Y)); this.K=new g.l({S:"div",Ya:["ytp-menuitem-label-wrapper"],B:[{S:"div",v6:"Fin del video"},{S:"div",Ya:["ytp-menuitem-sublabel"],v6:"{{content}}"}]});g.v(this,this.K);this.listen("click",this.onClick);this.Z(W,"videodatachange",this.onVideoDataChange);this.Z(W,"presentingplayerstatechange",this.xa);this.Z(W,"settingsMenuVisibilityChanged",this.TQ);W.createClientVe(this.element,this,218889);this.xa();this.Y.Ri("onSleepTimerFeatureAvailable")}; WB0=function(W){var Y="Off 10 15 20 30 45 60".split(" "),k;((k=W.Y.getVideoData())==null?0:k.isLivePlayback)||Y.push("End of video");k=W.Y.getPlaylist();var P;k&&((P=k.listId)==null?void 0:P.type)!=="RD"&&Y.push("End of playlist");W.oS(g.tx(Y,W.NE));W.X=g.f$(Y,W.NE,W);Y=W.NE("End of video");W.options[Y]&&g.B1(W.options[Y],W.K)}; Y0z=function(W,Y){var k=W.X[Y],P=k==="End of video"||k==="End of playlist";k==="Off"&&(W.W="");W.Y.getPlayerState()!==0&&W.Y.getPlayerState()!==5||!P?(W.T=Y,g.eo.prototype.vK.call(W,Y),W.yH(Y),W.Y.Ri("onSleepTimerSettingsChanged",k)):W.Y.Ri("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; oW=function(W){Mb.call(this,W);var Y=this;W.addEventListener("settingsMenuInitialized",function(){Y.menuItem||(Y.menuItem=new a1z(Y.api,Y.api.ML()),g.v(Y,Y.menuItem))}); W.addEventListener("openSettingsMenuItem",function(k){if(k==="menu_item_sleep_timer"){if(!Y.menuItem){var P;(P=Y.api.ML())==null||P.fH()}Y.menuItem.open()}}); sb(W,"resetSleepTimerMenuSettings",function(){Y.resetSleepTimerMenuSettings()}); sb(W,"setSleepTimerTimeLeft",function(k){Y.setSleepTimerTimeLeft(k)}); sb(W,"setVideoTimeLeft",function(k){Y.setVideoTimeLeft(k)})}; $T1=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"onSnackbarMessage",function(k){switch(k){case 1:k=Y.api.getPlayerStateObject(),k.isBuffering()&&(Y.api.U("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.b(k,8)&&g.b(k,16))&&Y.api.Ri("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubre los motivos"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.Cd=function(W,Y,k,P,T){Y=Y===void 0?!1:Y;P=P===void 0?!1:P;T=T===void 0?!1:T;g.NR.call(this);this.N=T;this.G=!1;this.T=new Rk(this);this.C=this.X=null;this.J=this.K=!1;g.v(this,this.T);this.target=W;this.W=Y;this.L=k||W;this.G=P;Y&&(g.Sh&&this.target.setAttribute("draggable","true"),T||(this.target.style.touchAction="none"));vF(this)}; Ld=function(W){g.ne(W.T,!W.W)}; vF=function(W){W.C=null;W.X=null;W.Z(US("over"),W.YX);W.Z("touchstart",W.iq);W.W&&W.Z(US("down"),W.f25)}; kF2=function(W,Y){for(var k=0;ku.start&&k>=5;G+=d}T=G.substr(0,4)+" "+G.substr(4,4)+" "+G.substr(8,4)+" "+(G.substr(12,4)+" "+G.substr(16,4))}else T="";X={video_id_and_cpn:String(Y.videoId)+" / "+T,codecs:"",dims_and_frames:"",bandwidth_kbps:X.toFixed(0)+" Kbps",buffer_health_seconds:B.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:O?"":"display:none",drm:O,debug_info:k,extra_debug_info:"",bandwidth_style:M,network_activity_style:M,network_activity_bytes:h.toFixed(0)+" KB",shader_info:Z,shader_info_style:Z?"":"display:none",playback_categories:""};h=P.clientWidth+"x"+P.clientHeight+(u>1?"*"+u.toFixed(2):"");B="-";I.totalVideoFrames&&(B=(I.droppedVideoFrames||0)+" dropped of "+I.totalVideoFrames);X.dims_and_frames=h+" / "+B;W=W.getVolume();h=ah5(Y);var F;if((F=Y.T)==null?0:F.audio.K)F= "VB";else{var y;F=((y=Y.T)==null?0:y.audio.W)?"DRC":Math.round(W*h)+"%"}y=Math.round(W)+"% / "+F;F=Y.Zm.toFixed(1);isFinite(Number(F))&&(y+=" (content loudness "+F+"dB)");X.volume=y;X.resolution=P.videoWidth+"x"+P.videoHeight;if(P=Y.K){if(y=P.video)F=y.fps,F>1&&(X.resolution+="@"+F),(F=I.wB)&&F.video&&(X.resolution+=" / "+F.video.width+"x"+F.video.height,F.video.fps>1&&(X.resolution+="@"+F.video.fps)),X.codecs=Xz7(P),!Y.T||P.audio&&P.video?P.K_&&(X.codecs+=" / "+P.K_+"A"):X.codecs+=" / "+Xz7(Y.T), y.W||y.primaries?(F=y.W||"unknown",F==="smpte2084"?F+=" (PQ)":F==="arib-std-b67"&&(F+=" (HLG)"),X.color=F+" / "+(y.primaries||"unknown"),X.color_style=""):X.color_style="display:none";if(P.debugInfo)for(X.fmt_debug_info="",P=g.p(P.debugInfo),y=P.next();!y.done;y=P.next())y=y.value,X.fmt_debug_info+=y.label+":"+y.text+" ";X.fmt_debug_info_style=X.fmt_debug_info&&X.fmt_debug_info.length>0?"":"display:none"}P=Y.isLivePlayback;y=Y.Fj;X.live_mode_style=P||y?"":"display:none";X.live_latency_style=P?"": "display:none";if(y)X.live_mode="Post-Live"+(QO(Y)?" Manifestless":"");else if(P){y=I.mM;X.live_latency_secs=y.toFixed(2)+"s";P=QO(Y)?"Manifestless, ":"";Y.wD&&(P+="Windowed, ");F="Uncertain";if(y>=0&&y<120)if(Y.latencyClass&&Y.latencyClass!=="UNKNOWN")switch(Y.latencyClass){case "NORMAL":F="Optimized for Normal Latency";break;case "LOW":F="Optimized for Low Latency";break;case "ULTRALOW":F="Optimized for Ultra Low Latency";break;default:F="Unknown Latency Setting"}else F=Y.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";P+=F;(y=I.tJ)&&(P+=", seq "+y.sequence);X.live_mode=P}!I.isGapless||rR(Y)&&I.g_||(X.playback_categories+="Gapless ");X.playback_categories_style=X.playback_categories?"":"display:none";X.bandwidth_samples=I.mU;X.network_activity_samples=I.CT;X.live_latency_samples=I.DR;X.buffer_health_samples=I.v$;I=g.qq(Y);if(Y.cotn||I)X.cotn_and_local_media=(Y.cotn?Y.cotn:"null")+" / "+I;X.cotn_and_local_media_style=X.cotn_and_local_media?"":"display:none"; HV(Y,"web_player_release_debug")?(X.release_name=S[26],X.release_style=""):X.release_style="display:none";X.debug_info&&t.length>0&&X.debug_info.length+t.length<=60?X.debug_info+=" "+t:X.extra_debug_info=t;X.extra_debug_info_style=X.extra_debug_info&&X.extra_debug_info.length>0?"":"display:none";return X}; Xz7=function(W){var Y=/codecs="([^"]*)"/.exec(W.mimeType);return Y&&Y[1]?Y[1]+" ("+W.itag+")":W.itag}; N7=function(W,Y,k,P,T){g.l.call(this,{S:"div",j:"ytp-horizonchart"});this.X=Y;this.sampleCount=k;this.T=P;this.C=T;this.index=0;this.heightPx=-1;this.J=this.K=null;this.W=Math.round(W/k);this.element.style.width=this.W*this.sampleCount+"px";this.element.style.height=this.X+"em"}; aW=function(W,Y){if(W.heightPx===-1){var k=null;try{k=g.um("CANVAS"),W.K=k.getContext("2d")}catch(h){}if(W.K){var P=W.W*W.sampleCount;W.J=k;W.J.width=P;W.J.style.width=P+"px";W.element.appendChild(W.J)}else for(W.sampleCount=Math.floor(W.sampleCount/4),W.W*=4,k=0;k1?2:1,W.J.height=W.heightPx*k,W.J.style.height= W.heightPx+"px",W.K.scale(1,k)));Y=g.p(Y);for(P=Y.next();!P.done;P=Y.next()){k=W;var T=W.index,I=P.value;for(P=0;P+20&&g.MB(Y.K.element);P.classList.add("ytp-timely-actions-overlay");Y.K.element.appendChild(P)}); g.v(this,this.K);this.U("web_player_overlay_positioned_layout")?this.events.Z(W,"basechromeinitialized",function(){Y.api.R3(Y.K.element,4,!0);Y.K.element.setAttribute("data-overlay-order","10")}):g.aR(this.api,this.K.element,4)}; KBS=function(W){W.timelyActions&&(W.T=W.timelyActions.reduce(function(Y,k){if(k.cueRangeId===void 0)return Y;Y[k.cueRangeId]=0;return Y},{}))}; k6=function(W,Y){if(W.timelyActions){W=g.p(W.timelyActions);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.cueRangeId===Y)return k}}; Eq7=function(W,Y){if((W=k6(W,Y))&&W.onCueRangeExit)return rj(W.onCueRangeExit)}; HfF=function(W,Y){return W.J===void 0?!1:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Y.seekLengthMilliseconds)===5E3?W.J===72:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(Y.seekLengthMilliseconds)===1E4?W.J===74:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Y.seekLengthMilliseconds)===5E3?W.J===71:Y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(Y.seekLengthMilliseconds)===1E4?W.J===73:!1}; JTF=function(W,Y){var k=Number(Y==null?void 0:Y.maxVisibleDurationMilliseconds);k&&(PK(W),W.Kg=setTimeout(function(){if(W.W!==void 0&&(Y==null?void 0:Y.cueRangeId)===W.W){W.N=!1;var P=Eq7(W,W.W);P&&W.api.Ri("innertubeCommand",P)}},k))}; PK=function(W){W.Kg&&clearTimeout(W.Kg);W.Kg=void 0;W.N=!1}; nqS=function(W){if(W=W.getWatchNextResponse()){var Y,k;W=(Y=W.playerOverlays)==null?void 0:(k=Y.playerOverlayRenderer)==null?void 0:k.timelyActionsOverlayViewModel;Y=g.U(W,sw6);if(Y!=null&&Y.timelyActions)return Y==null?void 0:Y.timelyActions.map(function(P){return g.U(P,rT0)}).filter(function(P){return!!P})}}; ATd=function(W){Mb.call(this,W);var Y=this;rW(this.api,"getPlaybackRate",function(){return Y.api.getPlaybackRate()}); rW(this.api,"setPlaybackRate",function(k){typeof k==="number"&&Y.api.setPlaybackRate(k)})}; T7=function(W,Y,k,P,T){EH.call(this,"VOICE_BOOST",g.m4.cZ);this.Y=W;this.J=Y;this.K=k;this.hasVoiceBoostAudioTrack=P;this.getVoiceBoostState=T;this.W=!1;this.Mq=this.Y.U("html5_enable_new_audio_settings_menu")?W.ML().Pm:W.ML();this.Z(W,"videodatachange",this.X5.bind(this));this.Z(W,"onPlaybackAudioChange",this.X5);this.Z(W,"audiopreferencechange",this.X5);this.Y.U("html5_enable_new_audio_settings_menu")||this.setIcon(rl5());this.subscribe("select",this.T,this);this.X5()}; dTF=function(W){Mb.call(this,W);var Y=this;this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"settingsMenuInitialized",function(){z85(Y)}); sb(this.api,"getVoiceBoostUserPreference",function(){return Y.getVoiceBoostUserPreference()}); sb(this.api,"setVoiceBoostUserPreference",function(P){Y.setVoiceBoostUserPreference(P)}); sb(this.api,"hasVoiceBoostAudioTrack",function(){return Y.hasVoiceBoostAudioTrack()}); sb(this.api,"getVoiceBoostState",function(){return Y.getVoiceBoostState()}); var k;this.W=(k=Yfq())!=null?k:0;this.updateEnvironmentData()}; z85=function(W){W.menuItem||(W.menuItem=new T7(W.api,function(Y){W.setVoiceBoostUserPreference(Y)},function(){return W.getVoiceBoostUserPreference()},function(){return W.hasVoiceBoostAudioTrack()},function(){return W.getVoiceBoostState()}),g.v(W,W.menuItem))}; mTd=function(W){W=W.OV();if(!W)return!1;W=g.fI(W).exp||"";return W.includes("xpv")||W.includes("xpe")}; DT5=function(W){W=g.p(g.jJ(W,!0));for(var Y=W.next();!Y.done;Y=W.next())if(mTd(Y.value))return!0;return!1}; gqd=function(W,Y){W=g.p(g.jJ(W,!0));for(var k=W.next();!k.done;k=W.next())if(k=k.value,mTd(k)){var P={potc:"1",pot:Y};k.url&&(k.url=Vm(k.url,P))}}; FBz=function(W){return g.D(function(Y){if(Y.W==1)return g.KC(Y,2),g.m(Y,W,4);if(Y.W!=2)return g.s2(Y,0);g.Aq(Y);g.G1(Y)})}; XS=function(W){Mb.call(this,W);var Y=this;this.useLivingRoomPoToken=!1;this.C=new g.Xd;this.W=!1;this.C1=null;this.L=!1;this.T=null;this.X=!1;var k=W.V().getWebPlayerContextConfig();this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"spsumpreject",function(P,T,I){Y.X=T;P&&Y.L&&!Y.T&&(Y.U("html5_generate_content_po_token")&&I?Y.O4(I):Y.U("html5_generate_session_po_token")&&wzv(Y));Y.T||Y.api.y5("stp",{s:+Y.L,b:+Y.X})}); this.events.Z(W,"poTokenVideoBindingChange",function(P){Y.O4(P)}); this.useLivingRoomPoToken=!(k==null||!k.useLivingRoomPoToken);W.addEventListener("csiinitialized",function(){Y.C1=W.w_();var P=(Y.U("html5_generate_session_po_token")||Y.U("html5_generate_content_po_token"))&&!Y.useLivingRoomPoToken;try{if(Y.U("html5_use_shared_owl_instance"))Qw6(Y);else if(P){Y.C1.yC("pot_isc");var T=g.W2(Y.api.V().experiments,"html5_webpo_kaios_defer_timeout_ms");T?(Y.J=Fd(),g.Ii(function(){ID(Y)},T)):Y.U("html5_webpo_idle_priority_job")?(Y.J=Fd(),g.Ce(g.Us(),function(){ID(Y)})): ID(Y)}}catch(I){I instanceof Error&&g.Kx(I)}}); W.addEventListener("trackListLoaded",this.BU.bind(this));W.mF(this)}; yT5=function(W){var Y=nA(W.experiments,"html5_web_po_request_key");return Y?Y:g.Zw(W)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; e82=function(W){var Y=new W6C,k={},P=(k["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",k);return new Zu(Y,W,function(){return P})}; oqX=function(W){return new iK(W)}; SJ=function(W,Y){W.U("html5_webpo_bge_ctmp")&&W.api.y5(Y,{hwpo:!!W.K,hwpor:W.W})}; Qw6=function(W){var Y,k;g.D(function(P){if(P.W==1)return SJ(W,"swpo_i"),W.J=Fd(),hJ(W),g.m(P,xi(),2);if(P.W!=3)return Y=P.K,SJ(W,"swpo_co"),g.m(P,dm7(Y),3);k=P.K;W.U("html5_web_po_token_disable_caching")||k.Yg(150);W.K=k;SJ(W,"swpo_cc");FBz(k.MC()).then(function(){W.W=!0;W.C.resolve();SJ(W,"swpo_re")}); g.Ii(function(){ID(W);SJ(W,"swpo_si")},0); g.G1(P)})}; LBz=function(W){var Y=W.api.V(),k=yT5(Y);k=e82(k);var P=k.Ld.bind(k);k.Ld=function(h){var B;return g.D(function(O){if(O.W==1)return g.m(O,P(h),2);B=O.K;W.api.y5("itr",{});return O.return(B)})}; try{var T=oqX({TB:k,QV:{maxAttempts:5},N4:{Af:"CLEn",disable:Y.experiments.Nq("html5_web_po_disable_remote_logging")||vqC.includes(g.Xl(Y.xf)||""),rg:fQ7(Y.experiments),bG:Y.experiments.Nq("wpo_gel_strz")?function(h){var B=C1d.get(h);B||(B=new iJd(h),B=new g.FA(B),C1d.set(h,B));return B}:void 0, xq5:W.U("wpo_dis_lfdms")?0:1E3},qRD:g.Kx});var I=new Du({W5:T,TB:k,onError:g.Kx});FBz(I.MC()).then(function(){W.W=!0;W.C.resolve()}); W.U("html5_web_po_token_disable_caching")||I.Yg(150);g.v(W,T);g.v(W,I);W.K=I}catch(h){g.Kx(h);var X;(X=T)==null||X.dispose()}}; ID=function(W){var Y=W.api.V();W.C1.yC("pot_ist");W.K||LBz(W);W.U("html5_bandaid_attach_content_po_token")||(W.U("html5_generate_session_po_token")&&(hJ(W),wzv(W)),Y=g.W2(Y.experiments,"html5_session_po_token_interval_time_ms")||0,Y>0&&(W.G=g.XU(function(){hJ(W)},Y)),W.L=!0)}; hJ=function(W){var Y,k,P,T;g.D(function(I){if(!W.U("html5_generate_session_po_token")||W.useLivingRoomPoToken)return I.return();Y=W.api.V();k=g.eM("EOM_VISITOR_DATA")||g.eM("VISITOR_DATA");P=Y.Aj?Y.datasyncId:k;T=nA(Y.experiments,"html5_mock_content_binding_for_session_token")||Y.livingRoomPoTokenId||P;Y.Dm=BK(W,T);g.G1(I)})}; BK=function(W,Y){if(!W.K){if(W.J)try{return W.J(Y)}catch(I){g.Kx(I)}return""}try{W.C1.yC(W.W?"pot_cms":"pot_csms");var k={T0:!0,oG:!0,mO:Y};W.U("html5_web_po_token_disable_caching")||(k.NV={dC:Y,uV:!0,rL:!0});var P=W.K.R_(k);W.C1.yC(W.W?"pot_cmf":"pot_csmf");if(W.W){var T;(T=W.T)==null||T.resolve();W.T=null;W.X&&(W.X=!1,W.api.app.D2().TZ(!1))}return P}catch(I){return g.Kx(I),""}}; wzv=function(W){W.K&&(W.T=new KY,W.C.promise.then(function(){W.C1.yC("pot_if");hJ(W)}))}; g.OX=function(W,Y,k){g.kN(W.element,"ytp-suggestion-set",!!Y.videoId);var P=Y.playlistId;k=Y.Ss(k?k:"mqdefault.jpg");var T=null,I=null;Y instanceof ND&&(Y.lengthText?(T=Y.lengthText||null,I=Y.y3||null):Y.lengthSeconds&&(T=g.qy(Y.lengthSeconds),I=g.qy(Y.lengthSeconds,!0)));var X=!!P;P=X&&fh(P).type==="RD";var h=Y instanceof ND?Y.isLivePlayback:null,B=Y instanceof ND?Y.isUpcoming:null,O=Y.author,u=Y.shortViewCount,Z=Y.publishedTimeText,M=[],t=[];O&&M.push(O);u&&(M.push(u),t.push(u));Z&&t.push(Z);k= {title:Y.title,author:O,author_and_views:M.join(" \u2022 "),aria_label:Y.ariaLabel||g.ky("Ver $TITLE",{TITLE:Y.title}),duration:T,timestamp:I,url:Y.md(),is_live:h,is_upcoming:B,is_list:X,is_mix:P,background:k?"background-image: url("+k+")":"",views_and_publish_time:t.join(" \u2022 "),autoplayAlternativeHeader:Y.rk};Y instanceof Vz&&(k.playlist_length=Y.playlistLength);W.update(k)}; g.uT=function(W){var Y=W.V(),k=g.qn||g.aP?{style:"will-change: opacity"}:void 0,P=Y.T,T=["ytp-modern-videowall-still"];Y.K&&T.push("ytp-videowall-show-text");g.l.call(this,{S:"a",Ya:T,D:{href:"{{url}}",target:P?Y.N:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},B:[{S:"div",j:"ytp-modern-videowall-still-image",D:{style:"{{background}}"},B:[{S:"span",j:"ytp-modern-videowall-still-info-duration",v6:"{{duration}}"}]},{S:"span",j:"ytp-modern-videowall-still-info", D:{"aria-hidden":"true"},B:[{S:"span",j:"ytp-modern-videowall-still-info-bg",B:[{S:"span",j:"ytp-modern-videowall-still-info-content",D:k,B:[{S:"span",j:"ytp-modern-videowall-still-info-title",v6:"{{title}}"},{S:"span",j:"ytp-modern-videowall-still-info-author",v6:"{{author_and_views}}"},{S:"span",j:"ytp-modern-videowall-still-info-live",v6:"En vivo"}]}]}]},{S:"span",Ya:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],D:{"aria-hidden":"true"},B:[{S:"span",j:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{S:"span",j:"ytp-modern-videowall-still-listlabel-length",B:[" (",{S:"span",v6:"{{playlist_length}}"},")"]}]},{S:"span",Ya:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],D:{"aria-hidden":"true"},B:[{S:"span",j:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{S:"span",j:"ytp-modern-videowall-still-listlabel-length",v6:" (50+)"}]}]});this.suggestion=null;this.K=P;this.api=W;this.W=new g.p5(this);g.v(this,this.W);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.W.Z(W,"videodatachange",this.onVideoDataChange);W.createServerVe(this.element,this);this.onVideoDataChange()}; g.UT2=function(W,Y){if(W.suggestion!==Y){W.suggestion=Y;var k=W.api.V();g.OX(W,Y,"hqdefault.jpg");if(g.Y3(k)&&!W.api.U("web_player_log_click_before_generating_ve_conversion_params")){k=Y.md();var P={};g.zM(W.api,"addEmbedsConversionTrackingParams",[P]);k=g.MH(k,P);W.updateValue("url",k)}(Y=(Y=Y.sessionData)&&Y.itct)&&W.api.setTrackingParams(W.element,Y)}}; bfF=function(W,Y){g.l.call(this,{S:"div",Ya:["ytp-fullscreen-grid"],B:[{S:"div",j:"ytp-fullscreen-grid-hover-overlay",D:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},B:[{S:"div",j:"ytp-fullscreen-grid-hover-overlay-chevron",B:[{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"g",D:{filter:"url(#filter0_d_3104_799356)"},B:[{S:"path",D:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{S:"defs",B:[{S:"filter",D:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},B:[{S:"feFlood",D:{"flood-opacity":"0",result:"BackgroundImageFix"}},{S:"feColorMatrix",D:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{S:"feOffset"},{S:"feGaussianBlur",D:{stdDeviation:"0.5"}},{S:"feComposite",D:{in2:"hardAlpha",operator:"out"}},{S:"feColorMatrix",D:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {S:"feBlend",D:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{S:"feBlend",D:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{S:"div",j:"ytp-fullscreen-grid-main-content",B:[{S:"div",j:"ytp-fullscreen-grid-header",B:[{S:"div",j:"ytp-fullscreen-grid-header-buttons",B:[{S:"button",Ya:["ytp-grid-replay-button","ytp-button"],D:{title:"Volver a reproducir","aria-keyshortcuts":"k","aria-label":"Volver a reproducir","data-title-no-tooltip":"Volver a reproducir"}, B:[D85()]},{S:"button",j:"ytp-fullscreen-grid-header-button",D:{"aria-label":"{{ariaLabel}}"}}]},{S:"button",Ya:["ytp-grid-menu-close","ytp-button"],D:{"aria-label":"Cerrar"},B:[g.BM()]}]},{S:"div",j:"ytp-fullscreen-grid-stills-container"}]}]});var k=this;this.player=W;this.stills=[];this.videoData=null;this.currentState=0;this.X=this.J5("ytp-fullscreen-grid-main-content");this.C=this.J5("ytp-fullscreen-grid-header");W=this.J5("ytp-fullscreen-grid-header-buttons");this.J=this.J5("ytp-grid-menu-close"); this.K=this.J5("ytp-grid-replay-button");this.W=this.J5("ytp-fullscreen-grid-header-button");this.N=this.J5("ytp-fullscreen-grid-stills-container");this.T=new g.p5(this);g.v(this,this.T);this.G=Y;if(this.C&&this.X&&W&&this.N&&this.W&&this.J){if(Y=this.J5("ytp-fullscreen-grid-hover-overlay"))this.Z(Y,"click",this.zo),Cl(this.player,Y,this);this.K&&(this.Z(this.K,"click",function(P){k.BR(P)}),Cl(this.player,this.K,this)); this.W&&this.Z(this.W,"click",this.zo);this.J&&this.Z(this.J,"click",this.zo);if(Y=this.player.getVideoData(1))this.videoData=Y,lUv(this);this.player.createClientVe(this.C,this,223051);this.T.Z(this.player,"videodatachange",this.onVideoDataChange);this.T.Z(this.player,"presentingplayerstatechange",this.OA)}}; lUv=function(W){var Y=W.player.getPlayerStateObject();g.kN(W.player.getRootNode(),"ytp-grid-ended-state",g.b(Y,2))}; ME=function(W){Mb.call(this,W);var Y=this;this.G=this.W=this.K=0;this.X=null;this.A5=this.T=0;this.isEnded=!1;this.L=null;var k=new g.p5(W);g.v(this,k);this.Kg=this.api.U("web_player_grid_natural_scroll");this.wD=g.W2(this.api.V().experiments,"web_player_default_peeking_px");this.gD=this.api.U("delhi_modern_player_enable_pause_peeking");this.TJ=g.W2(this.api.V().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.UP=this.api.U("web_player_imax_theater_mode");this.J=this.api.U("web_player_enable_fullscreen_grid_components"); this.Kg&&g.a2(this.api.getRootNode(),"ytp-grid-default-scroll");k.Z(W,"fullscreentoggled",function(){Zy(Y)}); k.Z(W,"autohideupdate",function(P){P&&Y.K===2&&iT(Y,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED")}); k.Z(W,"videodatachange",function(){if(Y.J){var P=Y.api.getVideoData(1);Y.videoData!==P&&Y.K===2&&iT(Y,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");Y.videoData=P}},this); k.Z(W,"sizestylechange",function(){Y.J&&Zy(Y)}); sb(this.api,"setFullscreenQuickActions",function(P){Y.setFullscreenQuickActions(P)}); sb(this.api,"setPlayerOverlayVideoDetailsRenderer",function(P){Y.setPlayerOverlayVideoDetailsRenderer(P)}); this.J&&cT5(this,k,W)}; cT5=function(W,Y,k){Y.Z(k,"keyboardserviceglobalkeydown",function(P,T){W.J&&P.keyCode===86&&!P.repeat&&W.K!==0&&(T&&(T.SE=!0),xTv(W,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); Y.Z(W.api.getRootNode(),"wheel",function(P){if(!W.L){var T;if(W.J&&(T=W.C)!=null&&T.element&&W.K!==0&&tJ(W))if(g.a2(W.api.getRootNode(),"ytp-grid-scrolling"),W.T===0&&(W.T=window.innerHeight),W.K===1)W.T!==0&&(W.W+=P.deltaY/W.T,W.W=Math.min(Math.max(W.W,0),.85),qE(W),fU1(W,Math.abs(W.W)>=.85));else if(W.K===2){T=P.deltaY<0;var I,X=((I=W.C)==null?void 0:I.element.scrollTop)===0;T&&X?W.T!==0&&(W.W+=P.deltaY/W.T,qE(W),fU1(W,Math.abs(W.W)>=.85)):W.W!==0&&(W.W=0,qE(W))}}},W,!0); Y.Z(k,"standardControlsInitialized",function(){if(!W.C){W.C=new bfF(W.api,W.OP.bind(W));g.v(W,W.C);var P=W.api.getRootNode().querySelector(".ytp-chrome-bottom");P&&P.parentNode&&P.parentNode.insertBefore(W.C.element,P.nextSibling);VX5(W)}}); Y.Z(k,"presentingplayerstatechange",function(){RD(W)}); Y.Z(k,"autonavvisibility",function(){RD(W)}); W.api.qz().subscribe("visibilitystatechange",function(){RD(W)}); NdV(W,W.K)}; fU1=function(W,Y){W.X&&clearTimeout(W.X);W.W===0&&g.YN(W.api.getRootNode(),"ytp-grid-scrolling");Y?aUS(W):W.Kg?W.Kg&&W.W<.1&&(W.X=window.setTimeout(function(){aUS(W)},1E3)):W.X=window.setTimeout(function(){aUS(W)},150)}; aUS=function(W){W.X&&(clearTimeout(W.X),W.X=null);W.T=0;W.J&&W.K!==0&&(Math.abs(W.W)>=.15&&xTv(W,"INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),W.W=0,qE(W),g.YN(W.api.getRootNode(),"ytp-grid-scrolling"))}; xTv=function(W,Y){W.J&&(Y==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(W.L&&clearTimeout(W.L),W.L=window.setTimeout(function(){W.L=null},1E3)),W.K===1?iT(W,2,Y):iT(W,1,Y))}; tJ=function(W){return W.api.isFullscreen()||W.UP&&W.api.kf()}; Zy=function(W){var Y=tJ(W);g.kN(W.api.getRootNode(),"ytp-full-bleed-player",Y);W.N&&g.Ya(W.N,Y);W.playerOverlayVideoDetailsRenderer&&g.Ya(W.playerOverlayVideoDetailsRenderer,Y);W.J&&RD(W)}; RD=function(W){if(W.J){var Y;if(W.api.getPresentingPlayerType()===2||W.api.Y8()||((Y=g.Fs(W.api))==null?0:Y.jy())||W.api.isMinimized())iT(W,0);else{if(Y=g.b(W.api.getPlayerStateObject(),2))iT(W,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(W.isEnded&&!Y){var k=tJ(W)?1:0;W.isEnded=Y;iT(W,k)}else tJ(W)?W.K!==2&&iT(W,1):iT(W,0);W.isEnded=Y}}}; iT=function(W,Y,k){W.K=Y;var P;(P=W.C)==null||P.ZY(Y,k);W.W=0;qE(W);NdV(W,Y)}; NdV=function(W,Y){var k=W.api.getRootNode();g.kN(k,"ytp-fullscreen-grid-peeking",Y===1);g.kN(k,"ytp-fullscreen-grid-active",Y===2);Y===1&&VX5(W)}; VX5=function(W){var Y=W.api.getRootNode();if(W.gD&&W.api.getPlayerStateObject().isPaused()){var k;var P=(((k=W.C)==null?void 0:k.element.clientWidth)||0)*.5625/3*W.TJ||W.wD}else P=W.wD;W.A5=P;Y.style.setProperty("--ytp-grid-peek-height",W.A5+"px");g.kN(Y,"ytp-disable-bottom-gradient",W.A5<=12)}; qE=function(W){requestAnimationFrame(function(){var Y=W.W-W.G,k=Y;W.W!==0&&(k=Math.max(-.01,Math.min(Y,.01)));W.G+=k;W.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+W.G.toString());W.G!==W.W&&qE(W)})}; WeX=function(W){Mb.call(this,W);var Y=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.p5(W);g.v(this,this.events);this.events.Z(W,"heartbeatRequest",function(k){if(Y.freePreviewUsageDetails.length||Y.freePreviewWatchedDuration!==null)k.heartbeatRequestParams||(k.heartbeatRequestParams={}),k.heartbeatRequestParams.unpluggedParams||(k.heartbeatRequestParams.unpluggedParams={}),Y.freePreviewUsageDetails.length>0?k.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= Y.freePreviewUsageDetails:k.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+Y.freePreviewWatchedDuration}}); sb(W,"setFreePreviewWatchedDuration",function(k){Y.freePreviewWatchedDuration=k}); sb(W,"setFreePreviewUsageDetails",function(k){Y.freePreviewUsageDetails=k})}; HK=function(W){g.e.call(this);this.features=[];var Y=this.W,k=new bi(W),P=new tG(W),T=new HF(W),I=new XS(W);var X=g.OG(W.V())?void 0:new ek(W);var h=new RW(W),B=new OfC(W),O=new ATd(W),u=new li(W);var Z=g.OG(W.V())?new WeX(W):void 0;var M;var t=(M=W.V().getWebPlayerContextConfig())!=null&&M.cinematicSettingsAvailable?new Fr(W):void 0;M=new UH(W);var q=W.U("enable_courses_player_overlay_purchase")?new tbd(W):void 0;var G=g.ph(W.V())?new uKq(W):void 0;var J=new oJ(W);var d=W.V().T?new Isv(W):void 0; var A=g.Y3(W.V())?new jcq(W):void 0;var F=W.U("web_player_move_autonav_toggle")&&W.V().UV?new VPz(W):void 0;var y=g.ph(W.V())?new Wcv(W):void 0;var L=W.U("web_enable_speedmaster")&&g.ph(W.V())?new cF(W):void 0;var V=W.V().zg?void 0:new R8d(W);var c=W.U("report_pml_debug_signal")?new lPd(W):void 0;var X7=new uvS(W),Id=new Kd(W);var Sz=g.dq(W.V())?new Aiv(W):void 0;var O2=navigator.mediaSession&&window.MediaMetadata&&W.V().xF?new t3(W):void 0;var $5=W.U("html5_enable_drc")&&!W.V().X?new yo(W):void 0; var z1=new H1(W);var cd=g.ph(W.V())?new CO0(W):void 0;var ad=W.U("html5_enable_d6de4")?new nd(W):void 0;var Mc=g.ph(W.V())&&W.U("web_sleep_timer")?new oW(W):void 0;var Ij=g.Y3(W.V())?new S70(W):void 0;var mV=new QA(W),jV=new $ez(W),wB=new NJq(W);var L$=W.U("enable_sabr_snackbar_message")?new $T1(W):void 0;var Iq=W.U("web_enable_timely_actions")?new GFd(W):void 0;var z=new w7(W);var vk=g.ph(W.V())?new ME(W):void 0;var m1=W.U("html5_enable_voice_boost")?new dTF(W):void 0;var k5=W.U("web_player_loop_settings_menu")&& W.V().Ka?new a62(W):void 0;var EK=g.OG(W.V())?void 0:new qb(W);var K=W.U("web_player_playable_sequences_refactor")?new Kc7(W):void 0;var Y5=W.U("html5_enable_audio_quality_setting")&&W.U("html5_enable_audio_quality_setting_feature")?new GT(W):void 0;var Jm=W.U("html5_ypc_clickwrap_module_refactor")?new ZqV(W):void 0;Y.call(this,k,P,T,I,X,h,B,O,u,Z,t,M,q,G,J,d,A,F,y,L,V,c,X7,Id,Sz,void 0,O2,$5,z1,void 0,cd,ad,Mc,Ij,void 0,mV,jV,wB,void 0,L$,Iq,z,vk,m1,void 0,k5,void 0,EK,K,Y5,Jm,new b11(W))}; Yw6=function(){this.K=this.W=NaN}; $pF=function(W,Y){this.zJ=W;this.timerName="";this.J=!1;this.K=NaN;this.T=new Yw6;this.W=Y||null;this.J=!1}; kIC=function(W,Y,k){var P=g.IT(Y.pg)&&!Y.pg.X;if(Y.pg.yL&&(k3(Y.pg)||Y.pg.TJ==="shortspage"||rV(Y.pg)||P)&&!W.J){W.J=!0;W.X=Y.clientPlaybackNonce;g.eM("TIMING_ACTION")||ym("TIMING_ACTION",W.zJ.csiPageType);W.zJ.csiServiceName&&ym("CSI_SERVICE_NAME",W.zJ.csiServiceName);if(W.W){P=W.W.w_();for(var T=g.p(Object.keys(P)),I=T.next();!I.done;I=T.next())I=I.value,KS(I,P[I],W.timerName);P=g.LI(cjF)(W.W.jz);g.Ek(P,W.timerName);P=W.W;P.W={};P.jz={}}g.Ek({playerInfo:{visibilityState:g.LI(bJ0)()},playerType:"LATENCY_PLAYER_HTML5"}, W.timerName);W.C!==Y.clientPlaybackNonce||Number.isNaN(W.K)||(sk("_start",W.timerName)?k=g.LI(Rl)("_start",W.timerName)+W.K:g.Kx(new g.Qq("attempted to log gapless pbs before CSI timeline started",{cpn:Y.clientPlaybackNonce})));k&&!sk("pbs",W.timerName)&&nO(W,k)}}; nO=function(W,Y,k){KS("pbs",Y!=null?Y:(0,g.q5)(),k!=null?k:W.timerName)}; pO=function(W){Pud();k_q();W.timerName=""}; PV2=function(W){if(W.W){var Y=W.W;Y.W={};Y.jz={}}W.J=!1;W.C=void 0;W.K=NaN}; Tb6=function(W,Y){g.NR.call(this);this.pg=W;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.W=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.L={};this.K=0;if(W=Y.session_data)this.sessionData=lG(W,"&");this.index=Math.max(0,Number(Y.index)||0);this.loop=!!Y.loop;this.startSeconds=Number(Y.startSeconds)||0;this.title=Y.playlist_title||"";this.description=Y.playlist_description||"";this.author= Y.author||Y.playlist_author||"";Y.video_id&&(this.items[this.index]=Y);if(W=Y.api)typeof W==="string"&&W.length===16?Y.list="PL"+W:Y.playlist=W;if(W=Y.list)switch(Y.listType){case "user_uploads":this.listId=new x3("UU","PLAYER_"+W);break;default:var k=Y.playlist_length;k&&(this.length=Number(k)||0);this.listId=fh(W);if(W=Y.video)this.items=W.slice(0),this.loaded=!0}else if(Y.playlist){W=Y.playlist.toString().split(",");this.index>0&&(this.items=[]);W=g.p(W);for(k=W.next();!k.done;k=W.next())(k=k.value)&& this.items.push({video_id:k});this.length=this.items.length;if(W=Y.video)this.items=W.slice(0),this.loaded=!0}this.setShuffle(!!Y.shuffle);if(W=Y.suggestedQuality)this.quality=W;this.L=U9(Y,"playlist_");this.J=(Y=Y.thumbnail_ids)?Y.split(","):[]}; jM7=function(W){return!!(W.playlist||W.list||W.api)}; Ia5=function(W){var Y=W.index+1;return Y>=W.length?0:Y}; XmC=function(W){var Y=W.index-1;return Y<0?W.length-1:Y}; g.G7=function(W,Y,k,P){Y=Y!==void 0?Y:W.index;Y=W.items&&Y in W.items?W.items[W.order[Y]]:null;var T=null;Y&&(k&&(Y.autoplay="1"),P&&(Y.autonav="1"),T=new g.t6(W.pg,Y),g.v(W,T),T.PH=!0,T.startSeconds=W.startSeconds||T.clipStart||0,W.listId&&(T.playlistId=W.listId.toString()));return T}; Sw7=function(W,Y){W.index=g.ee(Y,0,W.length-1);W.startSeconds=0}; hmV=function(W,Y){if(Y.video&&Y.video.length){W.title=Y.title||"";W.description=Y.description;W.views=Y.views;W.likes=Y.likes;W.dislikes=Y.dislikes;W.author=Y.author||"";var k=Y.loop;k&&(W.loop=k);k=g.G7(W);W.items=[];for(var P=g.p(Y.video),T=P.next();!T.done;T=P.next())if(T=T.value)T.video_id=T.encrypted_id,W.items.push(T);W.length=W.items.length;(Y=Y.index)?W.index=Y:W.findIndex(k);W.setShuffle(!1);W.loaded=!0;W.K++;W.W&&W.W()}}; uWv=function(W,Y){var k,P,T,I,X,h,B;return g.D(function(O){if(O.W==1){k=g.LS();var u=W.V(),Z={context:g.Eb(W),playbackContext:{contentPlaybackContext:{ancestorOrigins:u.ancestorOrigins}}},M=u.getWebPlayerContextConfig();if(M==null?0:M.encryptedHostFlags)Z.playbackContext.contentPlaybackContext.encryptedHostFlags=M.encryptedHostFlags;if(M==null?0:M.hideInfo)Z.playerParams={showinfo:!1};M=u.embedConfig;var t=W.C4;var q=Y.docid||Y.video_id||Y.videoId||Y.id;if(!q){q=Y.raw_embedded_player_response;if(!q){var G= Y.embedded_player_response;G&&(q=JSON.parse(G))}if(q){var J,d,A,F,y,L;q=((L=g.U((J=q)==null?void 0:(d=J.embedPreview)==null?void 0:(A=d.thumbnailPreviewRenderer)==null?void 0:(F=A.playButton)==null?void 0:(y=F.buttonRenderer)==null?void 0:y.navigationEndpoint,g.GW))==null?void 0:L.videoId)||null}else q=null}J=(J=q)?J:void 0;d=W.playlistId?W.playlistId:Y.list;A=Y.listType;if(d){var V;A==="user_uploads"?V={username:d}:V={playlistId:d};Bb7(M,t,J,Y,V,u.experiments);Z.playlistRequest=V}else Y.playlist? (V={templistVideoIds:Y.playlist.toString().split(",")},Bb7(M,t,J,Y,V,u.experiments),Z.playlistRequest=V):J&&(V={videoId:J},t&&u.U("embeds_enable_per_video_embed_config")?V.serializedThirdPartyEmbedConfig=t:M&&(V.serializedThirdPartyEmbedConfig=M),Z.singleVideoRequest=V);P=Z;T=g.xm(Og5);g.KC(O,2);return g.m(O,g.mR(k,P,T),4)}if(O.W!=2)return I=O.K,X=W.V(),Y.raw_embedded_player_response=I,X.gD=YF(Y,g.Y3(X)),X.J=X.gD==="EMBEDDED_PLAYER_MODE_PFL",I&&(h=I,h.trackingParams&&jb(h.trackingParams)),O.return(new g.t6(X, Y));B=g.Aq(O);B instanceof Error||(B=Error("b259802748"));g.GH(B);return O.return(W)})}; Bb7=function(W,Y,k,P,T,I){P.index&&(T.playlistIndex=String(Number(P.index)+1));T.videoId=k?k:"";Y&&I.Nq("embeds_enable_per_video_embed_config")?T.serializedThirdPartyEmbedConfig=Y:W&&(T.serializedThirdPartyEmbedConfig=W)}; g.EX=function(W,Y){KO.get(W);KO.set(W,Y)}; g.JJ=function(W){g.NR.call(this);this.loaded=!1;this.player=W}; ZgS=function(){this.K=[];this.W=[]}; g.jJ=function(W,Y){return Y?W.W.concat(W.K):W.W}; g.sX=function(W,Y){switch(Y.kind){case "asr":igC(Y,W.K);break;default:igC(Y,W.W)}}; igC=function(W,Y){g.qc(Y,function(k){return W.equals(k)})||Y.push(W)}; g.rK=function(W){g.e.call(this);this.Ii=W;this.K=new ZgS;this.J=null;this.C=[];this.L=[]}; g.AJ=function(W,Y,k){g.rK.call(this,W);this.videoData=Y;this.audioTrack=k;this.W=null;this.T=!1;this.C=Y.LY;this.L=Y.a8;this.T=g.IR(Y)}; g.MAS=function(W,Y){var k;return W.V().U("safari_live_drm_captions_fix")&&((k=W.getVideoData())==null?0:k.t$())?!1:g.OG(W.V())&&!Y.isManifestless}; g.z7=function(W,Y){return WC(W.info.mimeType)?Y?W.info.itag===Y:!0:!1}; g.tAd=function(W,Y){if(W.W!=null&&g.MAS(Y,W.W)&&W.W.W.rawcc!=null)return!0;if(!W.t9())return!1;Y=!!W.W&&W.W.isManifestless&&Object.values(W.W.W).some(function(k){return g.z7(k,"386")}); W=!!W.W&&!W.W.isManifestless&&g.B67(W.W);return Y||W}; g.dK=function(W,Y,k,P,T,I){g.rK.call(this,W);this.videoId=k;this.Wv=T;this.eventId=I;this.X={};this.W=null;W=P||g.fI(Y).hl||"";W=W.split("_").join("-");this.T=Vm(Y,{hl:W})}; qwC=function(W,Y){g.e.call(this);var k=this;this.Y=W;this.T=Y;this.jz={};this.W={};this.K=null;this.J=new Set;this.C=new g.p5(this);this.zW={oBD:function(){return k.T}}; this.X=this.Y.U("web_player_defer_modules");this.zd=new Map;g.v(this,this.C);this.C.Z(W,"videodatachange",this.onVideoDataChange)}; Rm0=function(W,Y){W.K=Y}; g.mh=function(W){return W.zd.get("captions")}; Jy6=function(W,Y){switch(Y){case "ad":return Hgd(W);case "annotations_module":return W.Y.isEmbedsShortsMode()?W=!1:(Y=W.Y,W=Y.V(),Y=Y.getVideoData(),W=W.J||Y.Lx||W.controlsType==="3"?!1:W.UP.isEmpty()&&W.playerStyle!=="annotation-editor"&&W.playerStyle!=="live-dashboard"?!!Y.Fr||!!g.PV(Y)||!!g.TM(Y):!0),W;case "asmjs":return n_0(W);case "creatorendscreen":return pm7(W);case "embed":return g.Y3(W.Y.V());case "endscreen":return g.GId(W);case "heartbeat":return W.Bc();case "kids":return Z_(W.Y.V()); case "remote":return W.Y.V().NA;case "miniplayer":return W.Y.V().showMiniplayerUiWhenMinimized;case "offline":return W.Y.V().Cn;case "captions":return Ked(W);case "unplugged":return g.XF(W.Y.V());case "ux":return W.Y.V().rD;case "webgl":return E_z(W);case "ypc":return W.U9();case "ypc_clickwrap":return kp6(W.Y.getVideoData());case "yto":return W.Y.U("web_player_playable_sequences_refactor")?!1:!!W.Y.getVideoData().N.includes("yto");default:return g.GH(Error("Module descriptor "+Y+" does not match")), !1}}; Dy=function(W,Y,k,P,T){var I;k=k===void 0?!1:k;P=P===void 0?!1:P;var X=W.zd.get(Y);if(!X||P)if(T||(T=function(){Dy(W,Y,k,P)}),I||(I=function(){W.Y.sU(Y)}),X=X||sM5(W,Y,Jy6(W,Y),T,I))W.zd.set(Y,X),X.create(),W.Y.publish("modulecreated",Y),k&&W.Y.x8("onApiChange")}; Ayd=function(W){var Y=Y===void 0?!1:Y;var k,P,T,I,X;return g.D(function(h){if(h.W==1)return(k=W.zd.get("asmjs"))&&!Y?h.return(k):(P=KO.get("asmjs"))!=null?(T=P,h.oi(2)):g.m(h,new Promise(function(B,O){ryd(W,"asmjs",function(){var u=KO.get("asmjs");u?B(u):O("cannot load module asmjs")},O)}),3); h.W!=2&&(T=h.K);I=T;if(!I)return h.return(Promise.reject("cannot load module asmjs"));X=new I(W.Y);W.zd.set("asmjs",X);X.create();return h.return(X)})}; mp0=function(W){zmv(W)&&W.uI();dp0(W)&&(Dy(W,"captions",!0),Dy(W,"endscreen"),W.xv(),Dy(W,"creatorendscreen",!0))}; dp0=function(W){var Y=W.Y.getVideoData(),k=W.X&&!Y.isInlinePlaybackNoAd;W.Y.U("html5_defer_modules_on_ads_only")&&!Y.isAd()&&(k=!1);return k}; zmv=function(W){W=W.Y.getVideoData();var Y;if(Y=W.U("web_player_defer_ad")){if(g.n$(W.N,"ad")||yVC(W)||W.enableServerStitchedDai)W=!1;else{Y=W.playerResponse;W=W.startSeconds;var k=Y==null?void 0:Y.adPlacements;if(Y=k){Y=Number.MAX_VALUE;k=g.p(k);for(var P=k.next();!P.done;P=k.next())if(P=P.value.adPlacementRenderer){var T=void 0,I=(T=P.config)==null?void 0:T.adPlacementConfig;T=void 0;if(((T=I)==null?void 0:T.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var X=T=void 0;I=Number((T=I)==null?void 0:(X= T.adTimeOffset)==null?void 0:X.offsetStartMilliseconds)||0;X=T=void 0;P=Number(((T=P.renderer)==null?void 0:(X=T.adBreakServiceRenderer)==null?void 0:X.prefetchMilliseconds)||0);P=I-P;P=11;W=W.api.V().G&&CO;return!(!Y&&!W)}; Yc=function(W,Y){return!W.api.isInline()&&!WCX(W,tl(Y))&&g.Rb(Y)}; aaF=function(W){W.EU.Q0();if(W.Ph&&W.gb)W.gb=!1;else if(!W.api.V().Fr&&!W.CC()){var Y=W.api.getPlayerStateObject();g.b(Y,2)&&g.lf(W.api)||W.nP(Y);!W.api.V().Lg||Y.isCued()||g.b(Y,1024)?W.XV():W.yX.isActive()?(W.pJ(),W.yX.stop()):W.yX.start()}}; $oC=function(W,Y){var k;if((k=W.api.getVideoData())==null?0:k.mutedAutoplay){var P,T;if((P=Y.target)==null?0:(T=P.className)==null?0:T.includes("ytp-info-panel"))return!1}return g.Rb(Y)&&W.api.isMutedByMutedAutoplay()?(W.api.unMute(),W.api.getPresentingPlayerType()===2&&W.api.playVideo(),Y=W.api.getPlayerStateObject(),!g.b(Y,4)||g.b(Y,8)||g.b(Y,2)||W.XV(),!0):!1}; kk2=function(W,Y,k){W.api.isFullscreen()?k<1-Y&&W.api.toggleFullscreen():k>1+Y&&W.api.toggleFullscreen()}; Nb1=function(W){var Y=FU()&&mf()>=67&&!W.api.V().G;W=W.api.V().disableOrganicUi;return!g.gn("tizen")&&!NG&&!Y&&!W}; g.$c=function(W){g.l.call(this,{S:"div",B:[{S:"div",j:"ytp-bezel-text-wrapper",B:[{S:"div",j:"ytp-bezel-text",v6:"{{title}}"}]},{S:"div",j:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},B:[{S:"div",j:"ytp-bezel-icon",v6:"{{icon}}"}]}]});this.Y=W;this.K=new g.C_(this.show,10,this);W=this.Y.U("delhi_modern_web_player")?1E3:500;this.W=new g.C_(this.hide,W,this);g.v(this,this.K);g.v(this,this.W);this.hide()}; Pi=function(W,Y,k){if(Y<=0){k=Gy();Y="silenciado";var P=0}else k=k?{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,D:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,D:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},P=Math.floor(Y),Y=P+"volumen";kc(W,k,Y,P+"%")}; Prq=function(W,Y){Y=Y?{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:RB1();var k=W.Y.getPlaybackRate(),P=g.ky("La velocidad es de $RATE",{RATE:String(k)});kc(W,Y,P,k+"x")}; TNd=function(W,Y){Y=Y?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";kc(W,aPq(W.Y),Y)}; kc=function(W,Y,k,P){P=P===void 0?"":P;W.updateValue("label",k===void 0?"":k);W.updateValue("icon",Y);g.l9(W.W);W.K.start();W.updateValue("title",P);g.kN(W.element,"ytp-bezel-text-hide",!P)}; juV=function(W,Y){g.l.call(this,{S:"button",Ya:["ytp-button","ytp-cards-button"],D:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Y3(W.V()))},B:[{S:"span",j:"ytp-cards-button-icon-default",B:[{S:"div",j:"ytp-cards-button-icon",B:[W.V().U("player_new_info_card_format")?pO6():{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {S:"div",j:"ytp-cards-button-title",v6:"Informaci\u00f3n"}]},{S:"span",j:"ytp-cards-button-icon-shopping",B:[{S:"div",j:"ytp-cards-button-icon",B:[{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",j:"ytp-svg-shadow",D:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{S:"path",j:"ytp-svg-fill",D:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{S:"path",j:"ytp-svg-shadow-fill",D:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{S:"div", j:"ytp-cards-button-title",v6:"Shopping"}]}]});this.Y=W;this.K=Y;this.W=null;this.fade=new g.cM(this,250,!0,100);g.v(this,this.fade);g.kN(this.K,"ytp-show-cards-title",g.Y3(W.V()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Sn(!0)}; Ijq=function(W,Y){g.l.call(this,{S:"div",j:"ytp-cards-teaser",B:[{S:"div",j:"ytp-cards-teaser-box"},{S:"div",j:"ytp-cards-teaser-text",B:W.V().U("player_new_info_card_format")?[{S:"button",j:"ytp-cards-teaser-info-icon",D:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},B:[pO6()]},{S:"img",j:"ytp-cards-teaser-channel-avatar",D:{alt:"","aria-hidden":"true"}},{S:"span",j:"ytp-cards-teaser-label",v6:"{{text}}"},{S:"button",j:"ytp-cards-teaser-close-button",D:{"aria-label":"Cerrar"},B:[g.BM()]}]: [{S:"span",j:"ytp-cards-teaser-label",v6:"{{text}}"}]}]});var k=this;this.Y=W;this.Nx=Y;this.fade=new g.cM(this,250,!1,250);this.W=null;this.X=new g.C_(this.l_6,300,this);this.C=new g.C_(this.Emz,2E3,this);this.T=[];this.K=null;this.G=new g.C_(function(){k.element.style.margin="0"},250); this.onClickCommand=this.J=null;g.v(this,this.fade);g.v(this,this.X);g.v(this,this.C);g.v(this,this.G);W.V().U("player_new_info_card_format")?(g.a2(W.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.J5("ytp-cards-teaser-close-button"),"click",this.YM),this.Z(this.J5("ytp-cards-teaser-info-icon"),"click",this.iQ),this.Z(this.J5("ytp-cards-teaser-label"),"click",this.iQ)):this.listen("click",this.iQ);this.Z(Y.element,"mouseover",this.Xs);this.Z(Y.element,"mouseout",this.OT);this.Z(W,"cardsteasershow", this.mtz);this.Z(W,"cardsteaserhide",this.n1);this.Z(W,"cardstatechange",this.IR);this.Z(W,"presentingplayerstatechange",this.IR);this.Z(W,"appresize",this.Po);this.Z(W,"onShowControls",this.Po);this.Z(W,"onHideControls",this.NK);this.listen("mouseenter",this.UW)}; Xo1=function(W){g.l.call(this,{S:"button",Ya:[TL.BUTTON,TL.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},B:[{S:"div",j:TL.TITLE_NOTIFICATIONS_ON,D:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},B:[g.id()]},{S:"div",j:TL.TITLE_NOTIFICATIONS_OFF,D:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},B:[{S:"svg",D:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},B:[{S:"path",D:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=W;this.W=!1;W.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; SO5=function(W,Y){W.W=Y;W.element.classList.toggle(TL.NOTIFICATIONS_ENABLED,W.W);var k=W.api.getVideoData();k?(Y=Y?k.tv:k.U8)?(W=W.api.fn())?dG(W,Y):g.GH(Error("No innertube service available when updating notification preferences.")):g.GH(Error("No update preferences command available.")):g.GH(Error("No video data when updating notification preferences."))}; BN1=function(W,Y,k){var P=P===void 0?800:P;var T=T===void 0?600:T;var I=document.location.protocol;W=vs0(I+"//"+W+"/signin?context=popup","feature",Y,"next",I+"//"+location.hostname+"/post_login");hdX(W,k,P,T)}; hdX=function(W,Y,k,P){k=k===void 0?800:k;P=P===void 0?600:P;if(W=g.ZY(window,W,"loginPopup","width="+k+",height="+P+",resizable=yes,scrollbars=yes"))iIC(function(){Y()}),W.moveTo((screen.width-k)/2,(screen.height-P)/2)}; g.jx=function(W,Y,k,P,T,I,X,h,B,O,u,Z){W=W.charAt(0)+W.substring(1).toLowerCase();k=k.charAt(0)+k.substring(1).toLowerCase();if(Y==="0"||Y==="-1")Y=null;if(P==="0"||P==="-1")P=null;var M=u.V(),t=M.userDisplayName&&g.IT(M);g.l.call(this,{S:"div",Ya:["ytp-button","ytp-sb"],B:[{S:"div",j:"ytp-sb-subscribe",D:t?{title:u.V().U("player_tooltip_data_title_killswitch")?g.ky("Suscribirse como $USER_NAME",{USER_NAME:M.userDisplayName}):"","data-tooltip-title":g.ky("Suscribirse como $USER_NAME",{USER_NAME:M.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":AK(M),"data-tooltip-opaque":String(g.Y3(M)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},B:[{S:"div",j:"ytp-sb-text",B:[{S:"div",j:"ytp-sb-icon"},W]},Y?{S:"div",j:"ytp-sb-count",v6:Y}:""]},{S:"div",j:"ytp-sb-unsubscribe",D:t?{title:u.U("player_tooltip_data_title_killswitch")?g.ky("Suscrito como $USER_NAME",{USER_NAME:M.userDisplayName}):"","data-tooltip-title":g.ky("Suscrito como $USER_NAME",{USER_NAME:M.userDisplayName}), "aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":AK(M),"data-tooltip-opaque":String(g.Y3(M)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},B:[{S:"div",j:"ytp-sb-text",B:[{S:"div",j:"ytp-sb-icon"},k]},P?{S:"div",j:"ytp-sb-count",v6:P}:""]}],D:{"aria-live":"polite"}});var q=this;this.channelId=X;this.Y=u;this.J=Z;var G=this.J5("ytp-sb-subscribe"),J=this.J5("ytp-sb-unsubscribe");I&&g.a2(this.element,"ytp-sb-classic");if(T){h?this.W():this.K(); var d=function(){if(M.wD){var F=q.channelId;if(B||O){var y={c:F};var L;g.hM.isInitialized()&&(L=vg2(y));y=L||"";if(L=u.getVideoData())if(L=L.subscribeCommand){var V=u.fn();V?(dG(V,L,{botguardResponse:y,feature:B}),u.Ri("SUBSCRIBE",F)):g.GH(Error("No innertube service available when updating subscriptions."))}else g.GH(Error("No subscribe command in videoData."));else g.GH(Error("No video data available when updating subscription."))}J.focus();J.removeAttribute("aria-hidden");G.setAttribute("aria-hidden", "true")}else BN1(g.tK(q.Y.V()),"sb_button",q.T)},A=function(){var F=q.channelId; if(B||O){var y=u.getVideoData();dG(u.fn(),y.unsubscribeCommand,{feature:B});u.Ri("UNSUBSCRIBE",F)}G.focus();G.removeAttribute("aria-hidden");J.setAttribute("aria-hidden","true")}; this.Z(G,"click",d);this.Z(J,"click",A);this.Z(G,"keypress",function(F){F.keyCode===13&&d(F)}); this.Z(J,"keypress",function(F){F.keyCode===13&&A(F)}); this.Z(u,"SUBSCRIBE",this.W);this.Z(u,"UNSUBSCRIBE",this.K);this.J&&t&&(Dgd(u),Cl(u,G,this),Cl(u,J,this))}else g.a2(G,"ytp-sb-disabled"),g.a2(J,"ytp-sb-disabled")}; ZGd=function(W){g.l.call(this,{S:"div",j:"ytp-title-channel",B:[{S:"div",j:"ytp-title-beacon"},{S:"a",j:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:W.V().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{S:"div",j:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},B:[{S:"div",j:"ytp-title-expanded-heading",B:[{S:"div",j:"ytp-title-expanded-title",B:[{S:"a",v6:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:W.V().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{S:"div",j:"ytp-title-expanded-subtitle",v6:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var Y=this;this.api=W;this.channel=this.J5("ytp-title-channel");this.K=this.J5("ytp-title-channel-logo");this.channelName=this.J5("ytp-title-expanded-title");this.C=this.J5("ytp-title-expanded-overlay");this.J=this.W=this.subscribeButton=null;this.T=!1;W.createClientVe(this.K,this,36925);W.createClientVe(this.channelName,this, 37220);g.Y3(this.api.V())&&OGF(this);this.Z(W,"videodatachange",this.xa);this.Z(W,"videoplayerreset",this.xa);this.Z(this.channelName,"click",function(k){Y.api.logClick(Y.channelName);g.ZY(window,u1v(Y));k.preventDefault()}); this.Z(this.K,"click",this.w7D);this.xa()}; iG0=function(W){if(!W.api.V().xm){var Y=W.api.getVideoData(),k=new g.jx("Suscribirse",null,"Suscrito/a",null,!0,!1,Y.zC,Y.subscribed,"channel_avatar",null,W.api,!0);W.api.createServerVe(k.element,W);var P;W.api.setTrackingParams(k.element,((P=Y.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);W.Z(k.element,"click",function(){W.api.logClick(k.element)}); W.subscribeButton=k;g.v(W,W.subscribeButton);W.subscribeButton.S1(W.C);W.subscribeButton.hide();var T=new Xo1(W.api);W.W=T;g.v(W,T);T.S1(W.C);T.hide();W.Z(W.api,"SUBSCRIBE",function(){Y.ww&&(T.show(),W.api.logVisibility(T.element,!0))}); W.Z(W.api,"UNSUBSCRIBE",function(){Y.ww&&(T.hide(),W.api.logVisibility(T.element,!1),SO5(T,!1))})}}; OGF=function(W){var Y=W.api.V();iG0(W);W.updateValue("flyoutUnfocusable","true");W.updateValue("channelTitleFocusable","-1");W.updateValue("shouldHideExpandedTitleForA11y","true");W.updateValue("shouldHideExpandedSubtitleForA11y","true");Y.K||Y.GJ||(W.Z(W.channel,"mouseenter",W.Ef),W.Z(W.channel,"mouseleave",W.vL),W.Z(W.channel,"focusin",W.Ef),W.Z(W.channel,"focusout",function(k){W.channel.contains(k.relatedTarget)||W.vL()})); W.J=new g.C_(function(){W.isExpanded()&&(W.api.logVisibility(W.channelName,!1),W.subscribeButton&&(W.subscribeButton.hide(),W.api.logVisibility(W.subscribeButton.element,!1)),W.W&&(W.W.hide(),W.api.logVisibility(W.W.element,!1)),W.channel.classList.remove("ytp-title-expanded"),W.channel.classList.add("ytp-title-show-collapsed"))},500); g.v(W,W.J);W.Z(W.channel,MFF,function(){tFF(W)}); W.Z(W.api,"onHideControls",W.Kv);W.Z(W.api,"appresize",W.Kv);W.Z(W.api,"fullscreentoggled",W.Kv)}; tFF=function(W){W.channel.classList.remove("ytp-title-show-collapsed");W.channel.classList.remove("ytp-title-show-expanded")}; qO6=function(W){var Y=W.api.getPlayerSize();return g.Y3(W.api.V())&&Y.width>=524}; u1v=function(W){var Y=W.api.V(),k=W.api.getVideoData(),P=g.zB(Y)+k.Lg;g.pl(k)&&(P="https://music.youtube.com"+k.Lg);if(!g.Y3(Y))return P;Y={};g.zM(W.api,"addEmbedsConversionTrackingParams",[Y]);return g.MH(P,Y)}; It=function(W){var Y=g.ui({"aria-haspopup":"true"});g.OH.call(this,Y,W);this.listen("keydown",this.kZ)}; XL=function(W,Y){W.element.setAttribute("aria-haspopup",String(Y))}; Rd1=function(W,Y){g.l.call(this,{S:"div",j:"ytp-user-info-panel",D:{"aria-label":"Informaci\u00f3n del usuario"},B:W.V().wD&&!W.U("embeds_web_always_enable_signed_out_state")?[{S:"div",j:"ytp-user-info-panel-icon",v6:"{{icon}}"},{S:"div",j:"ytp-user-info-panel-content",B:[{S:"div",j:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},v6:"{{watchingAsUsername}}"},{S:"div",j:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},v6:"{{watchingAsEmail}}"}]}]: [{S:"div",j:"ytp-user-info-panel-icon",v6:"{{icon}}"},{S:"div",j:"ytp-user-info-panel-content",B:[{S:"div",B:[{S:"text",D:{tabIndex:"{{userInfoFocusable}}"},v6:"Saliste de la cuenta"}]},{S:"div",j:"ytp-user-info-panel-login",B:[{S:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},v6:W.V().xm?"":"Acceder a YouTube"}]}]}]});this.Ii=W;this.W=Y;W.V().wD||W.V().xm||this.Z(this.J5("ytp-user-info-panel-login"),"click",this.t_);this.closeButton=new g.l({S:"button",Ya:["ytp-collapse","ytp-button"],D:{title:"Cerrar"}, B:[g.pU()]});this.closeButton.S1(this.element);g.v(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.nM);this.xa()}; KCX=function(W,Y,k){g.A3.call(this,W);var P=this;this.Mq=Y;this.qt=k;this.getVideoUrl=new It(6);this.Q7=new It(5);this.Gq=new It(4);this.ER=new It(3);this.EF=new g.OH(g.ui({href:"{{href}}",target:this.Y.V().N},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.OH(g.ui(),1,"Estad\u00edsticas");this.Uo=new g.kZ({S:"div",Ya:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},v6:"{{text}}"});this.Kk=new r$(this.Y,this.Uo);this.cB=this.ma=null;g.Y3(this.Y.V())&& (this.closeButton=new g.l({S:"button",Ya:["ytp-collapse","ytp-button"],D:{title:"Cerrar"},B:[g.pU()]}),g.v(this,this.closeButton),this.closeButton.S1(this.element),this.closeButton.listen("click",this.bH,this));g.Y3(this.Y.V())&&(this.e6=new g.OH(g.ui(),8,"Cuenta"),g.v(this,this.e6),this.c7(this.e6,!0),this.e6.listen("click",this.tLz,this),W.createClientVe(this.e6.element,this.e6,137682));this.Y.V().Ka&&(this.fL=new EH("En bucle",7),g.v(this,this.fL),this.c7(this.fL,!0),this.fL.listen("click",this.dTz, this),W.createClientVe(this.fL.element,this.fL,28661));this.Y.U("web_player_miniplayer_in_context_menu")&&(this.Rl=new g.OH(g.ui(),6,"Reproductor en miniatura"),g.v(this,this.Rl),this.c7(this.Rl,!0),this.Rl.listen("click",this.a_5,this),W.createClientVe(this.Rl.element,this.Rl,62946));g.v(this,this.getVideoUrl);this.c7(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.jba,this);W.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.v(this,this.Q7);this.c7(this.Q7,!0);this.Q7.listen("click", this.Z15,this);W.createClientVe(this.Q7.element,this.Q7,28660);g.v(this,this.Gq);this.c7(this.Gq,!0);this.Gq.listen("click",this.xTD,this);W.createClientVe(this.Gq.element,this.Gq,28658);g.v(this,this.ER);this.c7(this.ER,!0);this.ER.listen("click",this.I_P,this);g.v(this,this.EF);this.c7(this.EF,!0);this.EF.listen("click",this.zJJ,this);g.v(this,this.showVideoInfo);this.c7(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.skP,this);g.v(this,this.Uo);this.Uo.listen("click",this.SRg,this); g.v(this,this.Kk);HGC()&&(this.ma=new g.l({S:"textarea",j:"ytp-html5-clipboard",D:{readonly:"",tabindex:"-1"}}),g.v(this,this.ma),this.ma.S1(this.element));var T;(T=this.e6)==null||T.setIcon(sk2());var I;(I=this.fL)==null||I.setIcon(m8C());var X;(X=this.Rl)==null||X.setIcon(tu());this.ER.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.EF.setIcon(Hez());this.showVideoInfo.setIcon(nFV());this.Z(W,"onLoopChange",this.onLoopChange);this.Z(W,"videodatachange",this.onVideoDataChange);this.Z(W,"fullscreentoggled",function(){nPz(P)}); po6(this);Gk6(this,this.Y.getVideoData())}; Sx=function(W,Y){var k=!1;if(W.ma){var P=W.ma.element;P.value=Y;P.select();try{k=document.execCommand("copy")}catch(T){}}k?W.Mq.n1():(W.Uo.N6(Y,"text"),g.m3(W.Mq,W.Kk),d7(W.Uo.element),W.ma&&(W.ma=null,po6(W)));return k}; HGC=function(){var W=document.queryCommandSupported&&document.queryCommandSupported("copy");cqF("Chromium")>=43&&(W=!0);cqF("Firefox")<=40&&(W=!1);return W}; nPz=function(W){var Y;(Y=W.Rl)==null||Y.b8(!W.Y.isFullscreen()&&W.Y.getPresentingPlayerType()!==2&&W.Y.V().showMiniplayerButton)}; Gk6=function(W,Y){var k=W.Y.V(),P=W.Y.getPresentingPlayerType()===2,T=!P||Y.isListed;T=!k.Kg&&!!Y.videoId&&T;k.playerStyle!=="play"?k="https://support.google.com/youtube/?p=report_playback":(k={contact_type:"playbackissue",html5:1,ei:Y.eventId,v:Y.videoId,p:"movies_playback"},Y.K&&(k.fmt=Y.K.itag),Y.clientPlaybackNonce&&(k.cpn=Y.clientPlaybackNonce),Y.partnerId&&(k.partnerid=Y.partnerId),k=g.MH("//support.google.com/googleplay/",k));W.Gq.b8(T&&Y.allowEmbed);W.getVideoUrl.b8(T);W.Q7.b8(T&&!Y.isLivePlayback); W.EF.N6(k,"href");var I;(I=W.fL)==null||I.b8(!Y.isLivePlayback&&!P);nPz(W);var X;(X=W.e6)==null||X.b8(!P)}; po6=function(W){var Y=!!W.ma;g.B1(W.ER,Y?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");XL(W.ER,!Y);g.B1(W.Gq,Y?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");XL(W.Gq,!Y);g.B1(W.getVideoUrl,Y?"Copiar URL del video":"Obtener la URL del video");XL(W.getVideoUrl,!Y);g.B1(W.Q7,Y?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");XL(W.Q7,!Y);W.Gq.setIcon(Y?t0V():null);W.getVideoUrl.setIcon(Y? ud():null);W.Q7.setIcon(Y?ud():null)}; EPd=function(W){return g.Y3(W.Y.V())?W.e6:W.fL}; sud=function(W,Y){g.d$.call(this,W);this.qt=Y;this.J=new g.p5(this);this.N=new g.C_(this.kr6,1E3,this);this.A5=this.Ba=null;g.v(this,this.J);g.v(this,this.N);Y=this.Y.V();W.createClientVe(this.element,this,28656);g.a2(this.element,"ytp-contextmenu");this.Y.V().experiments.Nq("delhi_modern_web_player")&&g.ph(Y)&&g.a2(this.element,"ytp-delhi-modern-contextmenu");J51(this);this.hide()}; J51=function(W){g.ne(W.J);var Y=W.Y.V();Y.playerStyle==="gvn"||Y.K||Y.GJ||(Y=W.Y.ai(),W.J.Z(Y,"contextmenu",W.Txg),W.J.Z(Y,"touchstart",W.onTouchStart,null,!0),W.J.Z(Y,"touchmove",W.AJ,null,!0),W.J.Z(Y,"touchend",W.AJ,null,!0))}; r5F=function(W){W.Y.isFullscreen()?g.aR(W.Y,W.element,10):W.S1(Xr(W).body)}; hg=function(W,Y,k){k=k===void 0?240:k;g.l.call(this,{S:"button",Ya:["ytp-button","ytp-copylink-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Y3(W.V()))},B:[{S:"div",j:"ytp-copylink-icon",v6:"{{icon}}"},{S:"div",j:"ytp-copylink-title",v6:"Copiar v\u00ednculo",D:{"aria-hidden":"true"}}]});this.api=W;this.W=Y;this.K=k;this.visible=!1;this.tooltip=this.W.r5();Y=W.V();this.tooltip.element.setAttribute("aria-live", "polite");g.kN(this.element,"ytp-show-copylink-title",g.Y3(Y));W.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Z(W,"videodatachange",this.xa);this.Z(W,"videoplayerreset",this.xa);this.Z(W,"appresize",this.xa);this.xa();this.addOnDisposeCallback(g.vV(this.tooltip,this.element))}; A5F=function(W){var Y=W.api.V(),k=W.api.getVideoData(),P=W.api.ai().getPlayerSize().width;Y=Y.J;return!!k.videoId&&P>=W.K&&k.l4&&!k.zr&&!W.api.isEmbedsShortsMode()&&!Y}; zdz=function(W){W.updateValue("icon",XE());if(W.api.V().K)W.tooltip.tN(W.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{W.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");W.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");W.tooltip.wc();W.tooltip.tN(W.element);var Y=W.listen("mouseleave",function(){W.nH(Y);W.xa();W.tooltip.gX()})}}; do1=function(W,Y){return g.D(function(k){if(k.W==1)return g.KC(k,2),g.m(k,navigator.clipboard.writeText(Y),4);if(k.W!=2)return k.return(!0);g.Aq(k);var P=k.return,T=!1,I=g.um("TEXTAREA");I.value=Y;I.setAttribute("readonly","");var X=W.api.getRootNode();X.appendChild(I);if(yW){var h=window.getSelection();h.removeAllRanges();var B=document.createRange();B.selectNodeContents(I);h.addRange(B);I.setSelectionRange(0,Y.length)}else I.select();try{T=document.execCommand("copy")}catch(O){}X.removeChild(I); return P.call(k,T)})}; mod=function(W){g.l.call(this,{S:"div",j:"ytp-doubletap-ui-legacy",B:[{S:"div",j:"ytp-doubletap-fast-forward-ve"},{S:"div",j:"ytp-doubletap-rewind-ve"},{S:"div",j:"ytp-doubletap-static-circle",B:[{S:"div",j:"ytp-doubletap-ripple"}]},{S:"div",j:"ytp-doubletap-overlay-a11y"},{S:"div",j:"ytp-doubletap-seek-info-container",B:[{S:"div",j:"ytp-doubletap-arrows-container",B:[{S:"span",j:"ytp-doubletap-base-arrow"},{S:"span",j:"ytp-doubletap-base-arrow"},{S:"span",j:"ytp-doubletap-base-arrow"}]},{S:"div", j:"ytp-doubletap-tooltip",B:[{S:"div",j:"ytp-seek-icon-text-container",B:[{S:"div",j:"ytp-seek-icon",v6:"{{seekIcon}}"},{S:"div",j:"ytp-chapter-seek-text-legacy",v6:"{{seekText}}"}]},{S:"div",j:"ytp-doubletap-tooltip-label",v6:"{{seekTime}}"}]}]}]});this.Y=W;this.T=new g.C_(this.show,10,this);this.K=new g.C_(this.hide,700,this);this.X=this.J=0;this.A5=this.C=!1;this.W=this.J5("ytp-doubletap-static-circle");g.v(this,this.T);g.v(this,this.K);this.hide();this.G=this.J5("ytp-doubletap-fast-forward-ve"); this.N=this.J5("ytp-doubletap-rewind-ve");this.Y.createClientVe(this.G,this,28240);this.Y.createClientVe(this.N,this,28239);this.Y.logVisibility(this.G,!0);this.Y.logVisibility(this.N,!0);this.C=W.U("web_show_cumulative_seek_time");this.A5=W.U("web_center_static_circles")}; Do5=function(W,Y){Y=g.ky("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:Y.toString()});W.updateValue("seekTime",Y)}; gPF=function(W){sS.call(this,W,!1,!0);this.gD=[];this.Gn=[];this.element.setAttribute("data-overlay-order","9");this.G=!0;this.badge.element.classList.add("ytp-featured-product");this.TJ=new g.l({S:"div",j:"ytp-featured-product-open-in-new"});g.v(this,this.TJ);this.countdownTimer=new g.l({S:"text",j:"ytp-featured-product-countdown",v6:"{{content}}"});this.countdownTimer.hide();g.v(this,this.countdownTimer);this.K=new g.l({S:"div",j:"ytp-featured-product-trending",B:[{S:"div",j:"ytp-featured-product-trending-icon"}, {S:"text",j:"ytp-featured-product-trending-text",v6:"{{trendingOffer}}"}]});this.K.hide();g.v(this,this.K);this.overflowButton=new g.l({S:"button",Ya:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.v(this,this.overflowButton);this.X=new g.l({S:"text",j:"ytp-featured-product-exclusive-countdown",v6:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.X.hide();g.v(this,this.X);this.C=new g.l({S:"div",j:"ytp-featured-product-exclusive-container", D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},B:[{S:"div",j:"ytp-featured-product-exclusive-badge-container",B:[{S:"div",j:"ytp-featured-product-exclusive-badge",B:[{S:"text",j:"ytp-featured-product-exclusive-badge-text",v6:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.X]});this.C.hide();g.v(this,this.C);this.banner=new g.l({S:"a",j:"ytp-featured-product-container",B:[{S:"div",j:"ytp-featured-product-thumbnail",B:[{S:"img",D:{src:"{{thumbnail}}"}},this.TJ]},{S:"div", j:"ytp-featured-product-details",B:[{S:"text",j:"ytp-featured-product-title",v6:"{{title}}"},this.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",j:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},B:[{S:"text",j:"ytp-featured-product-price-when-promotion-text-enabled",v6:"{{price}}",D:{"aria-hidden":"true"}},{S:"text",j:"ytp-featured-product-promotion-text",v6:"{{promotionText}}",D:{"aria-hidden":"true"}}]}:{S:"div",D:{"aria-label":"{{priceA11yText}}"}, B:[{S:"text",j:"ytp-featured-product-price",v6:"{{price}}",D:{"aria-hidden":"true"}},{S:"text",j:"ytp-featured-product-sales-original-price",v6:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{S:"text",j:"ytp-featured-product-price-drop-reference-price",v6:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",j:"ytp-featured-product-when-promotion-text-enabled",B:[{S:"text",j:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", v6:"{{affiliateDisclaimer}}"},this.K,{S:"text",j:"ytp-featured-product-vendor-when-promotion-text-enabled",v6:"{{vendor}}"}]}:{S:"div",B:[{S:"text",j:"ytp-featured-product-affiliate-disclaimer",v6:"{{affiliateDisclaimer}}"},this.Y.U("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.C:null,this.K,{S:"text",j:"ytp-featured-product-vendor",v6:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.v(this,this.banner);this.banner.S1(this.J.element);this.Z(this.Y,g.lP("featured_product"), this.pkr);this.Z(this.Y,g.bP("featured_product"),this.Vm);this.Z(this.Y,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.OW);this.Z(W,"featuredproductdismissed",this.yQ)}; FC6=function(W){var Y,k;W=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:k.itemData;var P,T,I;return(W==null||!W.affiliateDisclaimer)&&(W==null?0:(P=W.exclusivesData)==null?0:P.exclusiveOfferLabelText)&&(W==null?0:(T=W.exclusivesData)==null?0:T.expirationTimestampMs)&&(W==null?0:(I=W.exclusivesData)==null?0:I.exclusiveOfferCountdownText)?!0:!1}; Qu0=function(W){var Y,k,P,T,I=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:(P=k.itemData)==null?void 0:(T=P.exclusivesData)==null?void 0:T.expirationTimestampMs;Y=(Number(I)-Date.now())/1E3;if(Y>0){if(Y<604800){var X,h,B,O;k=(X=W.W)==null?void 0:(h=X.bannerData)==null?void 0:(B=h.itemData)==null?void 0:(O=B.exclusivesData)==null?void 0:O.exclusiveOfferCountdownText;if(k!==void 0)for(X=Date.now(),h=g.p(k),B=h.next();!B.done;B=h.next())if(B=B.value,B!==void 0&&B.text!==void 0&&(O=Number(B.textDisplayStartTimestampMs), !isNaN(O)&&X>=O)){B.insertCountdown?(Y=B.text.replace(/\$0/,String(f1({seconds:Y}))),W.X.N6(Y)):W.X.N6(B.text);W.X.show();break}}var u,Z,M,t;W.C.update({exclusive:(u=W.W)==null?void 0:(Z=u.bannerData)==null?void 0:(M=Z.itemData)==null?void 0:(t=M.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});W.C.show();Bi(W);var q;(q=W.f1)==null||q.start()}else wov(W)}; wov=function(W){var Y;(Y=W.f1)==null||Y.stop();W.X.hide();W.C.hide();Og(W)}; y5C=function(W){var Y,k,P=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:k.itemData;return W.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(P==null||!P.priceReplacementText)&&(P==null?0:P.promotionText)?P==null?void 0:P.promotionText.content:null}; edV=function(W){var Y,k,P=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:k.itemData,T,I;if(!(P!=null&&P.priceReplacementText||W.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(P==null?0:(T=P.dealsData)==null?0:(I=T.sales)==null?0:I.originalPrice)){var X,h;return P==null?void 0:(X=P.dealsData)==null?void 0:(h=X.sales)==null?void 0:h.originalPrice}return null}; oP0=function(W){var Y,k,P=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:k.itemData,T,I,X,h;if(!((P==null?0:P.priceReplacementText)||W.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(P==null?0:(T=P.dealsData)==null?0:(I=T.sales)==null?0:I.originalPrice))&&(P==null?0:(X=P.dealsData)==null?0:(h=X.priceDrop)==null?0:h.referencePrice)){var B,O;return P==null?void 0:(B=P.dealsData)==null?void 0:(O=B.priceDrop)==null?void 0:O.referencePrice}return null}; vP0=function(W){var Y,k,P=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:k.itemData;if(P==null?0:P.priceReplacementText)return P==null?void 0:P.priceReplacementText;if((P==null?0:P.promotionText)&&W.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var T;return(P==null?void 0:P.price)+" "+(P==null?void 0:(T=P.promotionText)==null?void 0:T.content)}var I,X;if(P==null?0:(I=P.dealsData)==null?0:(X=I.sales)==null?0:X.originalPrice){var h,B;return P==null?void 0:(h=P.dealsData)== null?void 0:(B=h.sales)==null?void 0:B.salesPriceAccessibilityLabel}var O,u;if(P==null?0:(O=P.dealsData)==null?0:(u=O.priceDrop)==null?0:u.referencePrice){var Z,M;return(P==null?void 0:P.price)+" "+(P==null?void 0:(Z=P.dealsData)==null?void 0:(M=Z.priceDrop)==null?void 0:M.referencePrice)}return P==null?void 0:P.price}; Cr1=function(W){if(W.Y.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Y,k,P;return W.K.v7?null:(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:(P=k.itemData)==null?void 0:P.vendorName}var T,I,X,h,B,O;return W.K.v7||W.C.v7||((T=W.W)==null?0:(I=T.bannerData)==null?0:(X=I.itemData)==null?0:X.affiliateDisclaimer)?null:(h=W.W)==null?void 0:(B=h.bannerData)==null?void 0:(O=B.itemData)==null?void 0:O.vendorName}; Uo6=function(W,Y){un(W);if(Y){var k=g.J6.getState().entities;k=VJ(k,"featuredProductsEntity",Y);if(k!=null&&k.productsData){Y=[];k=g.p(k.productsData);for(var P=k.next();!P.done;P=k.next()){P=P.value;var T=void 0;if((T=P)!=null&&T.identifier&&P.featuredSegments){W.gD.push(P);var I=void 0;T=g.p((I=P)==null?void 0:I.featuredSegments);for(I=T.next();!I.done;I=T.next()){var X=I.value;I=LC2(X.startTimeSec);I!==void 0&&(X=LC2(X.endTimeSec),Y.push(new g.L6(I*1E3,X===void 0?0x7ffffffffffff:X*1E3,{id:P.identifier, namespace:"featured_product"})))}}}W.Y.Bz(Y)}}}; Og=function(W){if(W.trendingOfferEntityKey){var Y=g.J6.getState().entities;if(Y=VJ(Y,"trendingOfferEntity",W.trendingOfferEntityKey)){var k,P,T;Y.encodedSkuId!==((k=W.W)==null?void 0:(P=k.bannerData)==null?void 0:(T=P.itemData)==null?void 0:T.encodedOfferSkuId)?Bi(W):(W.K.update({trendingOffer:Y.shortLabel+" \u2022 "+Y.countLabel}),W.K.show(),W.banner.update({vendor:Cr1(W)}))}else Bi(W)}else Bi(W)}; Bi=function(W){W.K.hide();W.banner.update({vendor:Cr1(W)})}; un=function(W){W.gD=[];W.Vm();W.Y.fq("featured_product")}; lj7=function(W){var Y,k,P,T,I=(Y=W.W)==null?void 0:(k=Y.bannerData)==null?void 0:(P=k.itemData)==null?void 0:(T=P.hiddenProductOptions)==null?void 0:T.dropTimestampMs;Y=(Number(I)-Date.now())/1E3;W.countdownTimer.N6(f1({seconds:Y}));if(Y>0){var X;(X=W.J9)==null||X.start()}}; bGd=function(W){var Y;(Y=W.J9)==null||Y.stop();W.countdownTimer.hide()}; LC2=function(W){if(W!==void 0&&W.trim()!==""&&(W=Math.trunc(Number(W.trim())),!(isNaN(W)||W<0)))return W}; NN2=function(W,Y,k){g.l.call(this,{S:"div",Ya:["ytp-info-panel-action-item"],B:[{S:"div",j:"ytp-info-panel-action-item-disclaimer",v6:"{{disclaimer}}"},{S:"a",Ya:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},B:[{S:"div",j:"ytp-info-panel-action-item-icon",v6:"{{icon}}"},{S:"div",j:"ytp-info-panel-action-item-label",v6:"{{label}}"}]}]});this.Y=W;this.W=k;this.disclaimer=this.J5("ytp-info-panel-action-item-disclaimer");this.button= this.J5("ytp-info-panel-action-item-button");this.Nt=!1;this.Y.createServerVe(this.element,this,!0);this.listen("click",this.onClick);W="";k=g.U(Y==null?void 0:Y.onTap,Jh);var P=g.U(k,g.Au);this.Nt=!1;P?(W=P.url||"",W.startsWith("//")&&(W="https:"+W),this.Nt=!0,g.Se(this.button,g.je(W))):(P=g.U(k,c5d))&&!this.W?((W=P.phoneNumbers)&&W.length>0?(W="sms:"+W[0],P.messageText&&(W+="?&body="+encodeURI(P.messageText))):W="",this.Nt=!0,g.Se(this.button,g.je(W,[xoV]))):(k=g.U(k,fj7))&&!this.W&&(W=k.phoneNumber? "tel:"+k.phoneNumber:"",this.Nt=!0,g.Se(this.button,g.je(W,[VFV])));var T;if(k=(T=Y.disclaimerText)==null?void 0:T.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var I;this.update({label:(I=Y.bodyText)==null?void 0:I.content,icon:MO(),disclaimer:k})}else{this.disclaimer.style.display="none";var X;this.update({label:(X=Y.bodyText)==null?void 0:X.content,icon:MO()})}this.Y.setTrackingParams(this.element,Y.trackingParams||null);this.Nt&&(this.K={externalLinkData:{url:W}})}; ajS=function(W,Y){var k=as();g.IJ.call(this,W,{S:"div",j:"ytp-info-panel-detail-skrim",B:[{S:"div",j:"ytp-info-panel-detail",D:{role:"dialog",id:k},B:[{S:"div",j:"ytp-info-panel-detail-header",B:[{S:"div",j:"ytp-info-panel-detail-title",v6:"{{title}}"},{S:"button",Ya:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Cerrar"},B:[g.BM()]}]},{S:"div",j:"ytp-info-panel-detail-body",v6:"{{body}}"},{S:"div",j:"ytp-info-panel-detail-items"}]}]},250);this.W=Y;this.items=this.J5("ytp-info-panel-detail-items"); this.J=new g.p5(this);this.itemData=[];this.T=k;this.Z(this.J5("ytp-info-panel-detail-close"),"click",this.n1);this.Z(this.J5("ytp-info-panel-detail-skrim"),"click",this.n1);this.Z(this.J5("ytp-info-panel-detail"),"click",function(P){P.stopPropagation()}); g.v(this,this.J);this.Y.createServerVe(this.element,this,!0);this.Z(W,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",W.getVideoData());this.hide()}; W0X=function(W,Y){W=g.p(W.itemData);for(var k=W.next();!k.done;k=W.next())k=k.value,k.Y.logVisibility(k.element,Y)}; kPv=function(W,Y){g.l.call(this,{S:"div",j:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":Y.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Y3(W.V()))},B:[{S:"div",j:"ytp-info-panel-preview-text",v6:"{{text}}"},{S:"div",j:"ytp-info-panel-preview-chevron",v6:"{{chevron}}"}]});var k=this;this.Y=W;this.b7=this.W=this.videoId=null;this.J=this.showControls=this.K=!1;this.Z(this.element,"click",function(){W.logClick(k.element);W.CC();Sk(Y)}); this.fade=new g.cM(this,250,!1,100);g.v(this,this.fade);this.Y.createServerVe(this.element,this,!0);this.Z(W,"videodatachange",this.onVideoDataChange);this.Z(W,"presentingplayerstatechange",this.HI);this.Z(this.Y,"paidcontentoverlayvisibilitychange",this.mj);this.Z(this.Y,"infopaneldetailvisibilitychange",this.mj);var P=W.getVideoData()||{};Y_v(P)&&$rS(this,P);this.Z(W,"onShowControls",this.FD);this.Z(W,"onHideControls",this.XD)}; $rS=function(W,Y){if(!Y.vk||!W.Y.IS()){var k=Y.JS||1E4,P=Y_v(Y);W.W?Y.videoId&&Y.videoId!==W.videoId&&(g.l9(W.W),W.videoId=Y.videoId,P?(Pyd(W,k,Y),W.fH()):(W.n1(),W.W.dispose(),W.W=null)):P&&(Y.videoId&&(W.videoId=Y.videoId),Pyd(W,k,Y),W.fH())}}; Y_v=function(W){var Y,k,P,T;return!!((Y=W.KN)==null?0:(k=Y.title)==null?0:k.content)||!!((P=W.KN)==null?0:(T=P.bodyText)==null?0:T.content)}; Pyd=function(W,Y,k){W.W&&W.W.dispose();W.W=new g.C_(W.uuJ,Y,W);g.v(W,W.W);var P;Y=((P=k.KN)==null?void 0:P.trackingParams)||null;W.Y.setTrackingParams(W.element,Y);var T;var I,X;if(k==null?0:(I=k.KN)==null?0:(X=I.title)==null?0:X.content){var h;P=(T=k.KN)==null?void 0:(h=T.title)==null?void 0:h.content;var B,O;if((B=k.KN)==null?0:(O=B.bodyText)==null?0:O.content)P+=" \u2022 ";T=P}else T="";var u,Z;k=((u=k.KN)==null?void 0:(Z=u.bodyText)==null?void 0:Z.content)||"";W.update({text:T+k,chevron:g.hu()})}; TQS=function(W,Y){W.W&&(g.b(Y,8)?(W.K=!0,W.fH(),W.W.start()):(g.b(Y,2)||g.b(Y,64))&&W.videoId&&(W.videoId=null))}; Z6=function(W){var Y=null;try{Y=W.toLocaleString("es-419",{style:"percent"})}catch(k){Y=W.toLocaleString(void 0,{style:"percent"})}return Y}; MA=function(W,Y){var k=0;W=g.p(W);for(var P=W.next();!(P.done||P.value.startTime>Y);P=W.next())k++;return k===0?k:k-1}; jSd=function(W,Y){for(var k=0,P=g.p(W),T=P.next();!T.done;T=P.next()){T=T.value;if(Y=T.timeRangeStartMillis&&Y2147483647?"0":String(W)}; qA=function(W,Y,k){var P=W.api.getCurrentTime(),T=OEv(W,P);W=OEv(W,P+Y);return{startMediaTimeMs:T,endMediaTimeMs:W,seekSource:k}}; uVv=function(W){var Y,k=(Y=W.api.getVideoData())==null?void 0:Y.Xj();return W.api.getPresentingPlayerType(k)!==2}; tg=function(W,Y){W.J.Ov=Y;g.kN(W.api.getRootNode(),"ytp-probably-keyboard-focus",Y);g.kN(W.contextMenu.element,"ytp-probably-keyboard-focus",Y)}; Hi=function(W,Y,k,P){var T=g.mh(W.api.gx());if(T&&T.loaded){var I=W.api.getSubtitlesUserSettings();T=void 0;for(var X=0;X0?Y[0]:null;var k=g.I_("ytp-chrome-bottom"),P=g.I_("ytp-ad-module");W.T=!(k==null||!k.contains(Y));W.G=!(P==null||!P.contains(Y));W.N=!(Y==null||!Y.hasAttribute("data-tooltip-target-fixed"));return Y}; GPS=function(W,Y,k){if(!W.C){if(Y){W.tooltipRenderer=Y;Y=W.tooltipRenderer.text;var P=!1,T;(Y==null?0:(T=Y.runs)==null?0:T.length)&&Y.runs[0].text&&(W.update({title:Y.runs[0].text.toString()}),P=!0);g.Ya(W.title,P);Y=W.tooltipRenderer.detailsText;T=!1;var I;if((Y==null?0:(I=Y.runs)==null?0:I.length)&&Y.runs[0].text){P=Y.runs[0].text.toString();I=P.indexOf("$TARGET_ICON");if(I>-1)if(W.tooltipRenderer.targetId){Y=[];P=P.split("$TARGET_ICON");var X=new g.WM({S:"span",j:"ytp-promotooltip-details-icon", B:[nYd[W.tooltipRenderer.targetId]]});g.v(W,X);for(var h=[],B=g.p(P),O=B.next();!O.done;O=B.next())O=new g.WM({S:"span",j:"ytp-promotooltip-details-component",v6:O.value}),g.v(W,O),h.push(O);P.length===2?(Y.push(h[0].element),Y.push(X.element),Y.push(h[1].element)):P.length===1&&(I===0?(Y.push(X.element),Y.push(h[0].element)):(Y.push(h[0].element),Y.push(X.element)));I=Y.length?Y:null}else I=null;else I=P;if(I){if(typeof I!=="string")for(g.MB(W.details),T=g.p(I),I=T.next();!I.done;I=T.next())W.details.appendChild(I.value); else W.update({details:I});T=!0}}g.Ya(W.details,T);T=W.tooltipRenderer.acceptButton;I=!1;var u,Z,M;((u=g.U(T,g.hV))==null?0:(Z=u.text)==null?0:(M=Z.runs)==null?0:M.length)&&g.U(T,g.hV).text.runs[0].text&&(W.update({acceptButtonText:g.U(T,g.hV).text.runs[0].text.toString()}),I=!0);g.Ya(W.acceptButton,I);u=W.tooltipRenderer.dismissButton;Z=!1;var t,q,G;((t=g.U(u,g.hV))==null?0:(q=t.text)==null?0:(G=q.runs)==null?0:G.length)&&g.U(u,g.hV).text.runs[0].text&&(W.update({dismissButtonText:g.U(u,g.hV).text.runs[0].text.toString()}), Z=!0);g.Ya(W.dismissButton,Z)}k&&(W.J=k);W.W=HE0(W);W.X=!1;W.Y.V().U("web_player_hide_nitrate_promo_tooltip")||W.b8(!0);pfd(W);W.v7&&!W.A5&&(W.A5=!0,W.zW.JN(0));W.K&&W.Y.logVisibility(W.element,W.v7)}}; GL=function(W){W.b8(!1);W.K&&W.Y.logVisibility(W.element,W.v7)}; K0v=function(W){var Y,k,P,T=((Y=g.U(W.acceptButton,g.hV))==null?void 0:(k=Y.text)==null?void 0:(P=k.runs)==null?void 0:P.length)&&!!g.U(W.acceptButton,g.hV).text.runs[0].text,I,X,h;Y=((I=g.U(W.dismissButton,g.hV))==null?void 0:(X=I.text)==null?void 0:(h=X.runs)==null?void 0:h.length)&&!!g.U(W.dismissButton,g.hV).text.runs[0].text;return T||Y}; pfd=function(W){var Y;if(!(Y=!W.W)){Y=W.W;var k=window.getComputedStyle(Y);Y=k.display==="none"||k.visibility==="hidden"||Y.getAttribute("aria-hidden")==="true"}if(Y||W.Y.isMinimized())W.b8(!1);else if(Y=g.Wl(W.W),Y.width&&Y.height){W.Y.d7(W.element,W.W);var P=W.Y.ai().getPlayerSize().height;k=g.Wl(W.J5("ytp-promotooltip-container")).height;W.T?W.element.style.top=P-k-Y.height-12+"px":W.N||(P=W.Y.Hu().height-k-Y.height-12,W.element.style.top=P+"px");P=W.J5("ytp-promotooltip-pointer");var T=g.NB(W.W, W.Y.getRootNode()),I=Number(W.element.style.left.replace(/[^\d\.]/g,""));W=W.Y.isFullscreen()?18:12;P.style.left=T.x-I+Y.width/2-W+"px";P.style.top=k+"px"}else W.b8(!1)}; Ky=function(W){g.l.call(this,{S:"button",Ya:["ytp-replay-button","ytp-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},B:[g.HM()]});this.Y=W;this.Z(W,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.ZY(W.getPlayerStateObject());Cl(this.Y,this.element,this)}; Eg=function(W,Y){Y=Y===void 0?240:Y;g.l.call(this,{S:"button",Ya:["ytp-button","ytp-search-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.Y3(W.V()))},B:[{S:"div",j:"ytp-search-icon",v6:"{{icon}}"},{S:"div",j:"ytp-search-title",v6:"Buscar"}]});this.api=W;this.K=Y;this.visible=!1;this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},B:[{S:"path",j:"ytp-svg-fill",D:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); W.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.W();this.Z(W,"appresize",this.W);this.Z(W,"videodatachange",this.W);Cl(W,this.element,this)}; Jg=function(W){g.l.call(this,{S:"div",j:"ytp-seek-overlay",B:[{S:"div",Ya:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],B:[{S:"div",Ya:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{S:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"24"},B:[{S:"path",D:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{S:"div",j:"ytp-seek-overlay-duration",v6:"{{durationBack}}"}]},{S:"div",Ya:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],B:[{S:"div",j:"ytp-seek-overlay-duration",v6:"{{durationForward}}"},{S:"div",Ya:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],B:[{S:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"24"},B:[{S:"path",D:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{S:"div",j:"ytp-seek-overlay-message",B:[{S:"div",j:"ytp-seek-overlay-message-icon",v6:"{{icon}}"},{S:"div",j:"ytp-seek-overlay-message-text", v6:"{{text}}"}]}]});var Y=this;this.Y=W;this.X=0;this.W="hidden";this.G=this.J5("ytp-seek-overlay-animation-back");this.N=this.J5("ytp-seek-overlay-animation-forward");this.A5=this.J5("ytp-seek-overlay-message");this.C=new g.C_(function(){EYX(Y)},g.W2(this.Y.V().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.v(this,this.C);this.Y.createClientVe(this.N,this,28240);this.Y.createClientVe(this.G,this,28239);this.Y.logVisibility(this.N,!0);this.Y.logVisibility(this.G,!0);this.hide()}; J0d=function(W,Y){W.J=W.T.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:Y},{offset:1,opacity:1}],{duration:200,fill:"forwards"});W.J.addEventListener("finish",function(){W.J=void 0;W.C.start();W.W="lingering"})}; sS2=function(W,Y,k,P){k=k===void 0?!1:k;P=P===void 0?!1:P;var T=[];T.push({offset:0,transform:"translateX("+(W.K===-1?20:-20)+"px)",opacity:k?"0":"1"});k&&T.push({offset:.5,opacity:"1"});T.push({offset:1,transform:"translateX(0)",opacity:"1"});k=Y.animate(T,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});Y=Y.querySelector("path");T=[];var I={offset:0,d:W.K===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};P&&(I.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");T.push(I); P&&T.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});W={offset:1,d:W.K===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};P&&(W.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");T.push(W);Y.animate(T,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return k}; r05=function(W){var Y=W.T.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);Y.classList.add("ytp-seek-overlay-arrow-additional");Y.classList.remove("ytp-seek-overlay-arrow-persistent");W.T.appendChild(Y);sS2(W,Y,!0,!0).addEventListener("finish",function(){Y.remove()})}; EYX=function(W,Y,k){k=k===void 0?!0:k;W.J=W.T.animate([{offset:0,opacity:Y===void 0?1:Y},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});k&&(W.J.addEventListener("finish",function(){W.J=void 0;A00(W);W.hide()}),W.W="fading-out")}; zO2=function(W){var Y=Number(getComputedStyle(W.T).opacity),k;(k=W.J)==null||k.cancel();W.J=void 0;return Y}; A00=function(W){W.X=0;W.W="hidden";W.K=void 0;W.T=void 0;W.C.stop();W.J=void 0}; drS=function(W,Y,k){W.updateValue("text",Y);if(k){a:{switch(k){case "PREMIUM_STANDALONE":Y=Ald();break a;case "PREMIUM_STANDALONE_CAIRO":Y=zBC();break a}Y=void 0}W.updateValue("icon",Y)}Y=g.p(W.A5.getAnimations());for(k=Y.next();!k.done;k=Y.next())k.value.cancel();W.A5.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){W.updateValue("text","");W.updateValue("icon","")})}; sg=function(W,Y,k,P){P=P===void 0?240:P;g.l.call(this,{S:"button",Ya:["ytp-button","ytp-share-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":k.element.id,"data-tooltip-opaque":String(g.Y3(W.V()))},B:[{S:"div",j:"ytp-share-icon",v6:"{{icon}}"},{S:"div",j:"ytp-share-title",v6:"Compartir"}]});this.api=W;this.W=Y;this.K=k;this.J=P;this.visible=!1;this.tooltip=this.W.r5();W.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.Z(W,"videodatachange",this.xa);this.Z(W,"videoplayerreset",this.xa);this.Z(W,"appresize",this.xa);this.Z(W,"presentingplayerstatechange",this.xa);this.xa();this.addOnDisposeCallback(g.vV(this.tooltip,this.element))}; mr0=function(W){var Y=W.api.V(),k=W.api.getVideoData(),P=g.Y3(Y)&&g.x9(W.api)&&g.b(W.api.getPlayerStateObject(),128);Y=Y.J||Y.disableSharing&&W.api.getPresentingPlayerType()!==2||!k.showShareButton||k.l4||P||k.zr||!1;P=W.api.ai().getPlayerSize().width;return!!k.videoId&&P>=W.J&&!Y}; Drd=function(W,Y){Y.name!=="InvalidStateError"&&Y.name!=="AbortError"&&(Y.name==="NotAllowedError"?(W.W.CC(),Sk(W.K,W.element,!1)):g.GH(Y))}; F0S=function(W,Y){var k=as(),P=W.V();k={S:"div",j:"ytp-share-panel",D:{id:as(),role:"dialog","aria-labelledby":k},B:[{S:"div",j:"ytp-share-panel-inner-content",B:[{S:"div",j:"ytp-share-panel-title",D:{id:k},v6:"Compartir"},{S:"a",Ya:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:P.N,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},v6:"{{linkText}}"},{S:"label",j:"ytp-share-panel-include-playlist",B:[{S:"input",j:"ytp-share-panel-include-playlist-checkbox", D:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{S:"div",j:"ytp-share-panel-loading-spinner",B:[zT()]},{S:"div",j:"ytp-share-panel-service-buttons",v6:"{{buttons}}"},{S:"div",j:"ytp-share-panel-error",v6:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{S:"button",Ya:["ytp-share-panel-close","ytp-button"],D:{title:"Cerrar"},B:[g.BM()]}]};g.IJ.call(this,W,k,250);var T=this;this.moreButton=null;this.api=W;this.tooltip=Y.r5();this.J=[];this.C= this.J5("ytp-share-panel-inner-content");this.closeButton=this.J5("ytp-share-panel-close");this.Z(this.closeButton,"click",this.n1);this.addOnDisposeCallback(g.vV(this.tooltip,this.closeButton));this.T=this.J5("ytp-share-panel-include-playlist-checkbox");this.Z(this.T,"click",this.xa);this.W=this.J5("ytp-share-panel-link");this.addOnDisposeCallback(g.vV(this.tooltip,this.W));this.api.createClientVe(this.W,this,164503);this.Z(this.W,"click",function(I){I.preventDefault();T.api.logClick(T.W);var X= T.api.getVideoUrl(!0,!0,!1,!1);X=gYd(T,X);g.r7(X,T.api,I)&&T.api.Ri("SHARE_CLICKED")}); this.listen("click",this.ju);this.Z(W,"videoplayerreset",this.hide);this.Z(W,"fullscreentoggled",this.onFullscreenToggled);this.Z(W,"onLoopRangeChange",this.ur5);this.hide()}; y07=function(W,Y){wf5(W);for(var k=Y.links||Y.shareTargets,P=0,T={},I=0;I0&&!V&&!y?(F.length===2&&(F=["noreferrer"]),g.ZY(t,G,M,F[0]),t=NTC()):(J=A.join(","),FZ()&&t.navigator&&t.navigator.standalone&&M&&M!="_self"?(J=g.um("A"),g.Se(J,G),J.target=M,d&&(J.rel="noreferrer"),((q=q.attributionsrc)||q==="")&&J.setAttribute("attributionsrc",q),q=document.createEvent("MouseEvent"), q.initMouseEvent("click",!0,!0,t,1),J.dispatchEvent(q),t=NTC()):d?(t=g.ZY(t,"",M,J),q=g.k$(G),t&&(t.opener=null,q===""&&(q="javascript:''"),q='',q=OF(q),(G=t.document)&&G.write&&(G.write(u7(q)),G.close()))):((t=g.ZY(t,G,M,J))&&q.noopener&&(t.opener=null),t&&q.noreferrer&&(t.opener=null)));t&&(t.opener||(t.opener=window),t.focus());Z.preventDefault()}}}(T)); T.RM.addOnDisposeCallback(g.vV(W.tooltip,T.RM.element));h==="Facebook"?W.api.createClientVe(T.RM.element,T.RM,164504):h==="Twitter"&&W.api.createClientVe(T.RM.element,T.RM,164505);W.Z(T.RM.element,"click",function(u){return function(){W.api.logClick(u.RM.element)}}(T)); W.api.logVisibility(T.RM.element,!0);W.J.push(T.RM);P++}}var B=Y.more||Y.moreLink,O=new g.l({S:"a",Ya:["ytp-share-panel-service-button","ytp-button"],B:[{S:"span",j:"ytp-share-panel-service-button-more",B:[{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},B:[{S:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",D:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],D:{href:B,target:"_blank",title:"M\u00e1s"}});O.listen("click",function(u){var Z=B;W.api.logClick(W.moreButton.element);Z=gYd(W,Z);g.r7(Z,W.api,u)&&W.api.Ri("SHARE_CLICKED")}); O.addOnDisposeCallback(g.vV(W.tooltip,O.element));W.api.createClientVe(O.element,O,164506);W.Z(O.element,"click",function(){W.api.logClick(O.element)}); W.api.logVisibility(O.element,!0);W.J.push(O);W.moreButton=O;W.updateValue("buttons",W.J)}; gYd=function(W,Y){var k={};g.Y3(W.api.V())&&(g.zM(W.api,"addEmbedsConversionTrackingParams",[k]),Y=g.MH(Y,k));return Y}; wf5=function(W){for(var Y=g.p(W.J),k=Y.next();!k.done;k=Y.next())k=k.value,k.detach(),g.Wu(k);W.J=[]}; rJ=function(W){return W===void 0||W.startSec===void 0||W.endSec===void 0?!1:!0}; eOv=function(W,Y){W.startSec+=Y;W.endSec+=Y}; vY0=function(W){sS.call(this,W);this.K=this.W=this.isContentForward=this.X=!1;this.element.setAttribute("data-overlay-order","8");oYS(this);this.Z(this.Y,"changeProductsInVideoVisibility",this.fYr);this.Z(this.Y,"videodatachange",this.onVideoDataChange)}; Cyd=function(W){W.C&&W.OP.element.removeChild(W.C.element);W.C=void 0}; Ur2=function(W,Y){return Y.map(function(k){var P,T;if((k=(P=g.U(k,L0q))==null?void 0:(T=P.thumbnail)==null?void 0:T.thumbnails)&&k.length!==0)return k[0].url}).filter(function(k){return k!==void 0}).map(function(k){k=new g.l({S:"img", j:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:k}});g.v(W,k);return k})}; l8C=function(W,Y){W.isContentForward=Y;g.kN(W.badge.element,"ytp-suggested-action-badge-content-forward",Y)}; Ag=function(W){var Y=W.isContentForward&&!W.Em();g.kN(W.badge.element,"ytp-suggested-action-badge-preview-collapsed",Y&&W.W);g.kN(W.badge.element,"ytp-suggested-action-badge-preview-expanded",Y&&W.K)}; zL=function(W,Y,k){return new g.L6(W*1E3,Y*1E3,{priority:9,namespace:k})}; bEX=function(W){W.Y.fq("shopping_overlay_visible");W.Y.fq("shopping_overlay_preview_collapsed");W.Y.fq("shopping_overlay_preview_expanded");W.Y.fq("shopping_overlay_expanded")}; oYS=function(W){W.Z(W.Y,g.lP("shopping_overlay_visible"),function(){W.R6(!0)}); W.Z(W.Y,g.bP("shopping_overlay_visible"),function(){W.R6(!1)}); W.Z(W.Y,g.lP("shopping_overlay_expanded"),function(){W.Kg=!0;J3(W)}); W.Z(W.Y,g.bP("shopping_overlay_expanded"),function(){W.Kg=!1;J3(W)}); W.Z(W.Y,g.lP("shopping_overlay_preview_collapsed"),function(){W.W=!0;Ag(W)}); W.Z(W.Y,g.bP("shopping_overlay_preview_collapsed"),function(){W.W=!1;Ag(W)}); W.Z(W.Y,g.lP("shopping_overlay_preview_expanded"),function(){W.K=!0;Ag(W)}); W.Z(W.Y,g.bP("shopping_overlay_preview_expanded"),function(){W.K=!1;Ag(W)})}; f8d=function(W){g.l.call(this,{S:"div",j:"ytp-shorts-title-channel",B:[{S:"a",j:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:W.V().N,"aria-label":"{{channelLogoLabel}}"}},{S:"div",j:"ytp-shorts-title-expanded-heading",B:[{S:"div",j:"ytp-shorts-title-expanded-title",B:[{S:"a",v6:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:W.V().N,tabIndex:"0"}}]}]}]});var Y=this;this.api=W;this.W=this.J5("ytp-shorts-title-channel-logo");this.channelName=this.J5("ytp-shorts-title-expanded-title"); this.subscribeButton=null;W.createClientVe(this.W,this,36925);this.Z(this.W,"click",function(k){Y.api.logClick(Y.W);g.ZY(window,c01(Y));k.preventDefault()}); W.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(k){Y.api.logClick(Y.channelName);g.ZY(window,c01(Y));k.preventDefault()}); xrC(this);this.Z(W,"videodatachange",this.xa);this.Z(W,"videoplayerreset",this.xa);this.xa()}; xrC=function(W){if(!W.api.V().xm){var Y=W.api.getVideoData(),k=new g.jx("Suscribirse",null,"Suscrito/a",null,!0,!1,Y.zC,Y.subscribed,"channel_avatar",null,W.api,!0);W.api.createServerVe(k.element,W);var P;W.api.setTrackingParams(k.element,((P=Y.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);W.Z(k.element,"click",function(){W.api.logClick(k.element)}); W.subscribeButton=k;g.v(W,W.subscribeButton);W.subscribeButton.S1(W.element)}}; c01=function(W){var Y=W.api.V(),k=W.api.getVideoData();k=g.zB(Y)+k.Lg;if(!g.Y3(Y))return k;Y={};g.zM(W.api,"addEmbedsConversionTrackingParams",[Y]);return g.MH(k,Y)}; dJ=function(W){g.IJ.call(this,W,{S:"button",Ya:["ytp-skip-intro-button","ytp-popup","ytp-button"],B:[{S:"div",j:"ytp-skip-intro-button-text",v6:"Omitir introducci\u00f3n"}]},100);var Y=this;this.J=!1;this.W=new g.C_(function(){Y.hide()},5E3); this.CN=this.PU=NaN;g.v(this,this.W);this.N=function(){Y.show()}; this.C=function(){Y.hide()}; this.T=function(){var k=Y.Y.getCurrentTime();k>Y.PU/1E3&&k0?{S:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{S:"path",Ya:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {S:"text",Ya:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{S:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},B:[{S:"path",Ya:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {S:"text",Ya:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var k=this;this.Y=W;this.W=Y;this.K=new g.C_(function(){k.J?(k.J=!1,k.K.start()):k.element.classList.remove("ytp-jump-spin","backwards")},250); this.J=!1;(Y=Y>0)?this.Y.createClientVe(this.element,this,36843):this.Y.createClientVe(this.element,this,36844);var P=g.ky(Y?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.W).toString()});this.Y.U("player_tooltip_data_title_killswitch")?this.update({title:P,"data-title-no-tooltip":P,"aria-keyshortcuts":Y?"\u2192":"\u2190"}):this.update({"tooltip-title":P,"data-title-no-tooltip":P,"aria-keyshortcuts":Y?"\u2192":"\u2190"});this.T=this.element.querySelector(".ytp-jump-button-text"); this.T.textContent=Math.abs(this.W).toString();this.listen("click",this.onClick,this);Cl(W,this.element,this)}; PLv=function(W,Y){Y?W.element.classList.add("ytp-jump-button-enabled"):W.element.classList.remove("ytp-jump-button-enabled");W.Y.logVisibility(W.element,Y);W.Y.wc()}; yj=function(W,Y){D6.call(this,W,Y,"timedMarkerCueRange","Ver momentos clave");this.Z(W,g.bP("timedMarkerCueRange"),this.Xi);this.Z(W,"updatemarkervisibility",this.updateVideoData)}; TuX=function(W){var Y,k=(Y=W.Y.getVideoData())==null?void 0:Y.Q5;if(k)for(W=W.T.V5,k=g.p(k),Y=k.next();!Y.done;Y=k.next())if(Y=W[Y.value]){var P=void 0,T=void 0,I=void 0;if(((P=Y.onTap)==null?void 0:(T=P.innertubeCommand)==null?void 0:(I=T.changeEngagementPanelVisibilityAction)==null?void 0:I.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return Y}}; ex=function(W){var Y=W.U("web_enable_pip_on_miniplayer");g.l.call(this,{S:"button",Ya:["ytp-miniplayer-button","ytp-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},B:["{{icon}}"]});this.Y=W;this.visible=!1;this.listen("click",this.onClick);this.Z(W,"fullscreentoggled",this.xa);this.Y.U("player_tooltip_data_title_killswitch")? this.update({title:g.Ll(W,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:jGd(this,Y)}):this.update({"tooltip-title":g.Ll(W,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:jGd(this,Y)});Cl(W,this.element,this);W.createClientVe(this.element,this,62946);this.xa()}; jGd=function(W,Y){return W.Y.U("delhi_modern_web_player_icons")?{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{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"}}]}:Y?{S:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},B:[{S:"g",D:{transform:"translate(96, -96) scale(0.8)"},B:[{S:"path",yU:!0,D:{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"}}]}]}:tu()}; ot=function(W,Y,k,P,T,I){I=I===void 0?!1:I;var X={S:"div",Ya:["ytp-input-slider-section"],B:[{S:"input",j:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};T&&X.B.unshift(T);I&&X.Ya.push("ytp-vertical-slider");g.l.call(this,X);this.T=W;this.C=Y;this.G=k;this.initialValue=P;this.header=T;this.K=this.J5("ytp-input-slider");this.W=P?P:W;this.init();this.Z(this.K,"input",this.J);this.Z(this.K,"keydown", this.X)}; vi=function(W,Y){W.W=Y;W.updateValue("slidervalue",W.W);W.K.valueAsNumber=W.W;Io1(W,Y)}; Io1=function(W,Y){W.K.style.setProperty("--yt-slider-shape-gradient-percent",(Y-W.T)/(W.C-W.T)*100+"%")}; Cy=function(W){var Y=W.isMuted()?0:W.getVolume();ot.call(this,0,100,1,Y,void 0,!0);this.Y=W;this.A5=gs(this.wD,10,this);this.N=!1;this.Z(W,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.Kg)}; XUV=function(W,Y){g.l.call(this,{S:"div",D:{tabindex:"0",title:W.U("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},Ya:["ytp-volume-popover"]});var k=this;this.isVisible=!1;this.tooltip=Y.r5();this.K=new Cy(W);g.v(this,this.K);this.K.S1(this.element);this.W=new g.C_(function(){Ly(k,!1)},300); this.listen("mouseenter",function(){k.W.stop()}); this.listen("mouseleave",function(){k.W.start()}); this.listen("focus",function(){k.W.stop()}); this.Z(this.K.K,"focus",function(){k.W.stop()}); this.listen("focusout",function(){k.W.start();k.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.vV(Y.r5(),this.element));g.v(this,this.W)}; Ly=function(W,Y){W.element.classList.toggle("ytp-volume-popover-hovering",Y);W.isVisible=Y;(W=W.element.closest(".ytp-chrome-bottom"))&&W.classList.toggle("ytp-volume-popover-showing",Y)}; Ug=function(W,Y,k){k=k===void 0?!1:k;var P=W.V().OP?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:W.U("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};P=W.U("delhi_modern_web_player")?{S:"div",j:"ytp-mute-button",B:[{S:"button",D:P,Ya:["ytp-volume-icon", "ytp-button"],v6:"{{icon}}"}]}:{S:"button",Ya:["ytp-mute-button","ytp-button"],D:P,B:[{S:"div",j:"ytp-volume-icon",v6:"{{icon}}"}]};g.l.call(this,P);this.Y=W;this.UP=k;this.K=null;this.X=this.wD=this.N=this.G=NaN;this.TJ=this.A5=null;this.C=[];this.T=[];this.visible=!1;this.J=this.W=this.Kg=null;W.U("delhi_modern_web_player")&&this.update({"data-priority":4});k=this.Y.V();this.updateValue("icon",Gy());this.tooltip=Y.r5();this.updateValue("dataTooltipOffsetY",0);this.J=g.I_("ytp-volume-icon",this.element); P=this.Y.U("delhi_modern_web_player_icons")?{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",Ya:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{S:"path",j:"ytp-svg-volume-animation-small-ripple",D:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{S:"path",j:"ytp-svg-volume-animation-big-ripple",D:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"defs",B:[{S:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},B:[{S:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{S:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{S:"path",j:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{S:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"},B:[{S:"path",j:"ytp-svg-volume-animation-mover", D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{S:"path",yU:!0,Ya:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{S:"path",yU:!0,Ya:["ytp-svg-fill","ytp-svg-volume-animation-hider"],D:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.K=new g.WM(P);g.v(this,this.K);this.A5=this.K.J5("ytp-svg-volume-animation-speaker");this.TJ=this.A5.getAttribute("d");this.C=g.Ta("ytp-svg-volume-animation-mover",this.K.element);this.Y.U("delhi_modern_web_player_icons");this.T=g.Ta("ytp-svg-volume-animation-hider",this.K.element);this.Y.U("delhi_modern_web_player_icons");this.OP=new Y6;g.v(this,this.OP);this.gD=new Y6;g.v(this,this.gD);this.Z(W,"appresize",this.HZ);this.Z(W,"onVolumeChange",this.onVolumeChange);W.U("delhi_modern_web_player")? this.listen("click",this.VLS):this.listen("click",this.w1);k.OP?(W.U("delhi_modern_web_player")&&!W.U("delhi_modern_web_player_horizontal_volume_controls")&&(this.W=new XUV(W,Y),this.W.S1(this.element),g.v(this,this.W),this.Z(this.J,"mouseover",this.Fs),this.Z(this.J,"focus",this.Fs),this.Z(this.J,"mouseout",this.cM),this.Z(this.J,"blur",this.cM)),k=W.U("delhi_modern_web_player")?this.J:this.element,this.addOnDisposeCallback(g.vV(Y.r5(),k))):SeX(this);this.message=null;W.createClientVe(this.element, this,28662);this.HZ(W.ai().getPlayerSize());this.setVolume(W.getVolume(),W.isMuted())}; htq=function(W,Y){if(W.Y.V().OP){var k=g.Ll(W.Y,"Silenciar","m"),P=g.Ll(W.Y,"Activar sonido","m");k=Y?P:k;W.Y.V().U("player_tooltip_data_title_killswitch")?W.updateValue("title",k):W.update({"tooltip-title":k,"aria-label":k});W.update({"data-title-no-tooltip":Y?"Activar sonido":"Silenciar"});W.tooltip.wc()}}; ut5=function(W,Y){W.G=Y;var k=W.TJ;W.Y.U("delhi_modern_web_player_icons")?W.K.J5("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Y+") translate(-22,-12)")):Y&&(k+=MXV(Bu0,O90,Y));W.A5.setAttribute("d",k)}; Z9V=function(W,Y){var k;Y===1?k=W.Y.U("delhi_modern_web_player_icons")?{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:Gy():k=W.K;W.wD=Y;if(W.Y.U("delhi_modern_web_player_icons"))W.K.J5("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-Y+") translate(-18,-12)")),W.K.J5("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(W.G-Y+") translate(-22, -12)"));else{for(var P=20*Y,T=0;T=3&&W.Y.getPresentingPlayerType()!==2}; H9d=function(W){var Y=cV(W.Y.gx());return Y?W.W?Y.Gg():Y.EK():!1}; tZS=function(W){var Y={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},k=W.playlist!=null&&W.playlist.Gg();k=g.x9(W.Y)&&(!W.W||k);var P=W.W&&g.W1(W.Y),T=H9d(W),I=W.W&&W.Y.getPresentingPlayerType()===5,X=g.Ll(W.Y,"Siguiente","SHIFT+n"),h=g.Ll(W.Y,"Anterior","SHIFT+p");if(I)Y.title="Iniciar video",Y["tooltip-title"]="Iniciar video";else if(W.J)Y.title="Volver a reproducir",Y["tooltip-title"]="Volver a reproducir";else if(k){var B= null;W.playlist&&(B=g.G7(W.playlist,W.W?Ia5(W.playlist):XmC(W.playlist)));if(B){if(B.videoId){var O=W.playlist.listId;Y.url=W.Y.V().getVideoUrl(B.videoId,O?O.toString():void 0)}Y.text=B.title;Y.duration=B.lengthText?B.lengthText:B.lengthSeconds?g.qy(B.lengthSeconds):null;Y.preview=B.Ss("mqdefault.jpg")}W.W?(Y.title=X,Y["tooltip-title"]=X,Y["data-title-no-tooltip"]="Siguiente",Y["aria-keyshortcuts"]="SHIFT+n"):(Y.title=h,Y["tooltip-title"]=h,Y["data-title-no-tooltip"]="Anterior",Y["aria-keyshortcuts"]= "SHIFT+p")}else if(P){if(h=(B=W.videoData)==null?void 0:g.Kz(B))Y.url=h.md(),Y.text=h.title,Y.duration=h.lengthText?h.lengthText:h.lengthSeconds?g.qy(h.lengthSeconds):null,Y.preview=h.Ss("mqdefault.jpg");Y.title=X;Y["tooltip-title"]=X;Y["data-title-no-tooltip"]="Siguiente";Y["aria-keyshortcuts"]="SHIFT+n"}Y.disabled=!P&&!k&&!T&&!I;W.update(Y);W.X=!!Y.url;P||k||W.J||T||I?W.K||(W.K=g.vV(W.tooltip,W.element),W.C=W.listen("click",W.onClick,W)):W.K&&(W.K(),W.K=null,W.nH(W.C),W.C=null);W.tooltip.wc();g.kN(W.element, "ytp-playlist-ui",W.W&&(k||W.Y.U("web_hide_next_button")))}; MZX=function(W,Y){return W?Y?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{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"}}]}:ZM():Y?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:d8q()}; pU0=function(W,Y){g.l.call(this,{S:"div",j:"ytp-fine-scrubbing",B:[{S:"div",j:"ytp-fine-scrubbing-draggable",B:[{S:"div",j:"ytp-fine-scrubbing-thumbnails",D:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{S:"div",D:{"aria-hidden":"true"},j:"ytp-fine-scrubbing-cursor"},{S:"div", j:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"},v6:"{{seekTime}}"},{S:"div",j:"ytp-fine-scrubbing-play",B:[W.U("delhi_modern_web_player_icons")?Ra():qO()],D:{title:"Reproducir desde este momento",role:"button"}},{S:"div",j:"ytp-fine-scrubbing-dismiss",B:[g.BM()],D:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var k=this;this.api=W;this.C=this.J5("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.J5("ytp-fine-scrubbing-dismiss");this.wD=this.J5("ytp-fine-scrubbing-draggable"); this.playButton=this.J5("ytp-fine-scrubbing-play");this.thumbnails=[];this.K=[];this.UP=this.W=0;this.OP=void 0;this.A5=NaN;this.Fr=this.N=this.J=this.G=0;this.T=[];this.interval=this.frameCount=0;this.X=160;this.scale=1;this.GJ=0;this.isEnabled=this.TJ=!1;nU2(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.vV(Y,this.dismissButton));this.addOnDisposeCallback(g.vV(Y,this.playButton));this.gD=new g.Cd(this.wD,!0);this.gD.subscribe("dragstart",this.T$,this);this.gD.subscribe("dragmove",this.pA, this);this.gD.subscribe("dragend",this.fM,this);this.Z(W,"SEEK_COMPLETE",this.Db);W.U("web_fix_fine_scrubbing_false_play")&&this.Z(W,"rootnodemousedown",function(P){k.Kg=P}); this.C.addEventListener("keydown",function(){}); g.v(this,this.gD);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.C,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; nU2=function(W,Y){var k=g.qy(Y),P=g.ky("Saltar a: $PROGRESS",{PROGRESS:g.qy(Y,!0)});W.update({ariamin:0,ariamax:Math.floor(W.api.getDuration()),arianow:Math.floor(Y),arianowtext:P,seekTime:k})}; GQ1=function(W){W.A5=NaN;W.N=0;W.G=W.J}; Jzd=function(W){var Y=W.api.T8();if(Y){var k=90*W.scale,P=SE(Y,160*W.scale);if(Y=Y.levels[P]){W.X=Y.width;if(!W.T.length){P=[];for(var T=h6(Y,Y.cP()),I=Y.columns*Y.rows,X=Y.frameCount,h=0;h<=T;h++)for(var B=XW.T.length;)P= void 0,(P=W.thumbnails.pop())==null||P.dispose();for(;W.thumbnails.lengthk.length;)P=void 0,(P=W.K.pop())==null||P.dispose(); for(;W.K.length-k?-Y/k*W.interval*.5:-(Y+k/2)/k*W.interval}; sGq=function(W){return-((W.C.offsetWidth||(W.frameCount-1)*W.X*W.scale)-W.W/2)}; KDX=function(){g.l.call(this,{S:"div",j:"ytp-fine-scrubbing-thumbnail"})}; EUV=function(){g.l.call(this,{S:"div",j:"ytp-fine-scrubbing-chapter-title",B:[{S:"div",j:"ytp-fine-scrubbing-chapter-title-content",v6:"{{chapterTitle}}"}]})}; AzV=function(W){g.l.call(this,{S:"div",j:"ytp-heat-map-chapter",B:[{S:"svg",j:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},B:[{S:"defs",B:[{S:"clipPath",D:{id:"{{id}}"},B:[{S:"path",j:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{S:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},B:[{S:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{S:"stop",D:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{S:"rect",j:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",j:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",j:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{S:"path",j:"ytp-modern-heat-map",D:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=W;this.G=this.J5("ytp-heat-map-svg");this.C=this.J5("ytp-heat-map-path");this.T=this.J5("ytp-heat-map-graph");this.X=this.J5("ytp-heat-map-play");this.W=this.J5("ytp-heat-map-hover");this.J=this.J5("ytp-modern-heat-map");this.Nt=!1;this.K=60;W=""+g.jw(this);this.update({id:W});W="url(#"+W+")";this.T.setAttribute("clip-path",W);this.X.setAttribute("clip-path",W);this.W.setAttribute("clip-path",W)}; ztF=function(W,Y){Y>0&&(W.K=Y,W.G.style.height=W.K+"px")}; xc=function(){g.l.call(this,{S:"div",j:"ytp-chapter-hover-container",B:[{S:"div",j:"ytp-progress-bar-padding"},{S:"div",j:"ytp-progress-list",B:[{S:"div",Ya:["ytp-play-progress","ytp-swatch-background-color"]},{S:"div",j:"ytp-progress-linear-live-buffer"},{S:"div",j:"ytp-load-progress"},{S:"div",j:"ytp-hover-progress"},{S:"div",j:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.J5("ytp-progress-list");this.C=this.J5("ytp-progress-linear-live-buffer"); this.T=this.J5("ytp-ad-progress-list");this.X=this.J5("ytp-load-progress");this.G=this.J5("ytp-play-progress");this.J=this.J5("ytp-hover-progress");this.W=this.J5("ytp-chapter-hover-container")}; fy=function(W,Y){g.CX(W.W,"width",Y)}; dJz=function(W,Y){g.CX(W.W,"margin-right",Y+"px")}; mJ1=function(){this.K=this.position=this.J=this.W=this.T=this.width=NaN}; DJ2=function(){g.l.call(this,{S:"div",j:"ytp-timed-marker"});this.W=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.NA=function(W,Y){g.kZ.call(this,{S:"div",j:"ytp-progress-bar-container",D:{"aria-disabled":"true"},B:[{S:"div",Ya:["ytp-heat-map-container"],B:[{S:"div",j:"ytp-heat-map-edu"}]},{S:"div",Ya:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},B:[{S:"div",j:"ytp-chapters-container"},{S:"div",j:"ytp-timed-markers-container"}, {S:"div",j:"ytp-clip-start-exclude"},{S:"div",j:"ytp-clip-end-exclude"},{S:"div",j:"ytp-scrubber-container",B:[{S:"div",Ya:["ytp-scrubber-button","ytp-swatch-background-color"],B:[{S:"div",j:"ytp-scrubber-pull-indicator"},{S:"img",Ya:["ytp-decorated-scrubber-button"]}]}]}]},{S:"div",Ya:["ytp-fine-scrubbing-container"],B:[{S:"div",j:"ytp-fine-scrubbing-edu"}]},{S:"div",j:"ytp-bound-time-left",v6:"{{boundTimeLeft}}"},{S:"div",j:"ytp-bound-time-right",v6:"{{boundTimeRight}}"},{S:"div",j:"ytp-clip-start", D:{title:"{{clipstarttitle}}"},v6:"{{clipstarticon}}"},{S:"div",j:"ytp-clip-end",D:{title:"{{clipendtitle}}"},v6:"{{clipendicon}}"}]});this.api=W;this.nu=!1;this.Zm=this.u5=this.Q5=this.C=this.Cn=0;this.rV=null;this.jW=!1;this.GJ={};this.D_={};this.clipEnd=Infinity;this.Gn=this.J5("ytp-clip-end");this.rZ=new g.Cd(this.Gn,!0);this.DY=this.J5("ytp-clip-end-exclude");this.LH=this.J5("ytp-clip-start-exclude");this.clipStart=0;this.f1=this.J5("ytp-clip-start");this.UV=new g.Cd(this.f1,!0);this.A5=this.A9= 0;this.progressBar=this.J5("ytp-progress-bar");this.J9={};this.V5={};this.bz=this.J5("ytp-chapters-container");this.PU=this.J5("ytp-timed-markers-container");this.W=[];this.X=[];this.Dm={};this.i_=null;this.TJ=-1;this.K1=this.OP=0;this.KN=this.G=null;this.fN=this.J5("ytp-scrubber-button");this.wD=this.J5("ytp-decorated-scrubber-button");this.B4=this.J5("ytp-scrubber-container");this.Lg=new g.Cc;this.xq=0;this.k7=new mJ1;this.J=new sI(0,0);this.u8=null;this.N=this.vk=!1;this.i5=null;this.Kg=this.J5("ytp-heat-map-container"); this.AC=this.J5("ytp-heat-map-edu");this.T=[];this.heatMarkersDecorations=[];this.e1=this.J5("ytp-fine-scrubbing-container");this.Qa=this.J5("ytp-fine-scrubbing-edu");this.K=void 0;this.UP=this.CN=this.Fr=!1;this.tooltip=Y.r5();this.addOnDisposeCallback(g.vV(this.tooltip,this.Gn));g.v(this,this.rZ);this.rZ.subscribe("hoverstart",this.Hj,this);this.rZ.subscribe("hoverend",this.F$,this);this.Z(this.Gn,"click",this.Cf);this.addOnDisposeCallback(g.vV(this.tooltip,this.f1));g.v(this,this.UV);this.UV.subscribe("hoverstart", this.Hj,this);this.UV.subscribe("hoverend",this.F$,this);this.Z(this.f1,"click",this.Cf);gUv(this);this.Z(W,"resize",this.Rb);this.Z(W,"presentingplayerstatechange",this.yk);this.Z(W,"videodatachange",this.qB);this.Z(W,"videoplayerreset",this.AF);this.Z(W,"cuerangesadded",this.uIr);this.Z(W,"cuerangesremoved",this.kd1);this.Z(W,"onLoopRangeChange",this.qr);this.Z(W,"innertubeCommand",this.onClickCommand);this.Z(W,"onRetroModeChanged",this.yY2);this.Z(W,g.lP("timedMarkerCueRange"),this.jkr);this.Z(W, "updatemarkervisibility",this.jt);this.Z(W,"serverstitchedvideochange",this.Y6a);this.updateVideoData(W.getVideoData(),!0);this.qr(W.getLoopRange());Vj(this)&&!this.K&&(this.K=new pU0(this.api,this.tooltip),W=g.V7(this.element).x||0,this.K.Rb(W,this.C),this.K.S1(this.e1),g.v(this,this.K),this.Z(this.K.dismissButton,"click",this.Sx),this.Z(this.K.playButton,"click",this.hM),this.Z(this.K.element,"dblclick",this.hM));this.api.createClientVe(this.Kg,this,139609,!0);this.api.createClientVe(this.AC,this, 140127,!0);this.api.createClientVe(this.Qa,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; gUv=function(W){if(W.W.length===0){var Y=new xc;W.W.push(Y);g.v(W,Y);Y.S1(W.bz,0)}for(;W.W.length>1;)W.W.pop().dispose();fy(W.W[0],"100%");W.W[0].startTime=0;W.W[0].title=""}; FD1=function(W){var Y=Y===void 0?NaN:Y;var k=new AzV(W.api);W.T.push(k);g.v(W,k);k.S1(W.Kg);Y>=0&&(k.element.style.width=Y+"px")}; wUS=function(W){for(;W.X.length;)W.X.pop().dispose()}; yz1=function(W){var Y,k,P,T,I;return(I=g.U((T=g.U((Y=W.getWatchNextResponse())==null?void 0:(k=Y.playerOverlays)==null?void 0:(P=k.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,aT))==null?void 0:T.playerBar,QGd))==null?void 0:I.chapters}; et5=function(W){for(var Y=W.W,k=[],P=0;P=X&&G<=u&&I.push(M)}B>0&&(W.Kg.style.height=B+"px");X=W.T[P];u=I;M=T;q=B;G=P===0;G=G===void 0?!1:G;ztF(X,q);Z=u;t=X.K;G=G===void 0?!1:G;var J=1E3/Z.length,d=[];d.push({x:0,y:100});for(var A=0;A0&&(k=I[I.length-1])}g.at(W);h=[];Y=g.p(Y.heatMarkersDecorations||[]);for(T=Y.next();!T.done;T=Y.next())if(T=g.U(T.value,b95))B=T.label,P=k=O=void 0,h.push({visibleTimeRangeStartMillis:(O=T.visibleTimeRangeStartMillis)!=null?O:-1,visibleTimeRangeEndMillis:(k=T.visibleTimeRangeEndMillis)!=null?k:-1,decorationTimeMillis:(P=T.decorationTimeMillis)!=null?P:NaN,label:B?g.jy(B):""});W.heatMarkersDecorations=h}}; CL6=function(W,Y){W.X.push(Y);g.v(W,Y);Y.S1(W.PU,W.PU.children.length)}; LDd=function(W,Y){Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next()){k=k.value;var P=WN(W,k.timeRangeStartMillis/(W.J.W*1E3),YM(W)),T=W.api.U("delhi_modern_web_player")?.667:.6;g.CX(k.element,"transform","translateX("+P+"px) scaleX("+T+")")}}; oU0=function(W,Y){var k=0,P=!1;Y=g.p(Y);for(var T=Y.next();!T.done;T=Y.next()){T=T.value;if(g.U(T,xJ1)){T=g.U(T,xJ1);var I={startTime:NaN,title:null,onActiveCommand:void 0},X=T.title;I.title=X?g.jy(X):"";X=T.timeRangeStartMillis;X!=null&&(I.startTime=X);I.onActiveCommand=T.onActiveCommand;T=I;k===0&&T.startTime!==0&&(W.W[k].startTime=0,W.W[k].title="",W.W[k].onActiveCommand=T.onActiveCommand,k++,P=!0);W.W.length<=k&&(I=new xc,W.W.push(I),g.v(W,I),I.S1(W.bz,W.bz.children.length));W.W[k].startTime= T.startTime;W.W[k].title=T.title?T.title:"";W.W[k].onActiveCommand=T.onActiveCommand;W.W[k].index=P?k-1:k}k++}for(;k=0;P--)if(W.W[P].width>0){dJz(W.W[P],0);var T=Math.floor(W.W[P].width);W.W[P].width=T;fy(W.W[P],T+"px");break}W.W[k].width=0;fy(W.W[k],"0")}else k===W.W.length-1?(P=Math.floor(W.W[k].width+Y),W.W[k].width=P,fy(W.W[k],P+"px")):(Y=W.W[k].width+Y,P=Math.round(Y),Y-=P,W.W[k].width=P,fy(W.W[k],P+"px"));k=0;if(W.T.length===W.W.length)for(Y=0;Y< W.T.length;Y++)P=W.W[Y].width,W.T[Y].element.style.width=P+"px",W.T[Y].element.style.left=k+"px",k+=P+kM(W);W.api.U("delhi_modern_web_player")&&(W.W.length===1?W.W[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(W.W[0].K.classList.remove("ytp-progress-bar-end"),W.W[0].K.classList.add("ytp-progress-bar-start"),W.W[W.W.length-1].K.classList.add("ytp-progress-bar-end")))}; foq=function(W,Y){var k=0,P=!1,T=W.W.length,I=W.J.W*1E3;I===0&&(I=W.api.getProgressState().seekableEnd*1E3);if(I>0&&W.C>0){for(var X=W.C-kM(W)*W.OP,h=W.K1===0?3:X*W.K1,B=g.p(W.W),O=B.next();!O.done;O=B.next())O.value.width=0;for(;k1);O=(I===0?0:B/I*X)+W.W[k].width;if(O>h)W.W[k].width=O;else{W.W[k].width=0;var u=W,Z=k,M=u.W[Z-1];M!==void 0&&M.width>0? M.width+=O:ZW.K1&&(W.K1=B/I),P=!0)}k++}}return P}; $M=function(W){if(W.C){var Y=W.api.getProgressState(),k=W.api.getVideoData();if(!(k&&k.enableServerStitchedDai&&k.uu)||isFinite(Y.current)){var P;if(((P=W.api.getVideoData())==null?0:nl(P))&&Y.airingStart&&Y.airingEnd)var T=PN(W,Y.airingStart,Y.airingEnd);else if(W.api.getPresentingPlayerType()===2){var I,X,h;T=(k=(T=W.api.getVideoData())==null?void 0:(I=T.getPlayerResponse())==null?void 0:(X=I.playerConfig)==null?void 0:(h=X.webPlayerConfig)==null?void 0:h.skippableAdProgressBarDuration)?PN(W,Y.seekableStart, k/1E3):PN(W,Y.seekableStart,Y.seekableEnd)}else T=PN(W,Y.seekableStart,Y.seekableEnd);I=rq(T,Y.loaded,0);Y=rq(T,Y.current,0);X=W.J.K!==T.K||W.J.W!==T.W;W.J=T;T$(W,Y,I);X&&VZq(W);Nud(W)}}}; PN=function(W,Y,k){return aoz(W)?new sI(Math.max(Y,W.u8.startTimeMs/1E3),Math.min(k,W.u8.endTimeMs/1E3)):new sI(Y,k)}; YB6=function(W,Y){var k,P,T;Y=g.U((k=Y.getWatchNextResponse())==null?void 0:(P=k.playerOverlays)==null?void 0:(T=P.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,aT);if(Y==null?0:Y.progressColor)for(k=0;k1){k=js(W,Y.J,!0);for(var P=0,T=0;T0&&(P+=W.W[T].width,P+=kM(W));k=(W.W[k].startTime+(Y.J-P)/W.W[k].width*((k===W.W.length-1?W.J.W*1E3:W.W[k+1].startTime)-W.W[k].startTime))/1E3||0}return k}; kjS=function(W,Y){if(Y<0)return"0";W=Math.floor(Math.min(Y,W.api.getDuration())*1E3);return W>2147483647?"0":String(W)}; Xv=function(W,Y,k,P,T){Y=kjS(W,Y);k=kjS(W,k);W=W.progressBar.visualElement;P={seekData:{startMediaTimeMs:Y,endMediaTimeMs:k,seekSource:P}};(Y=g.iD())&&xx(Y,W,T,P)}; Pcv=function(W,Y,k){if(k>=W.W.length)return!1;var P=W.C-kM(W)*W.OP;return Math.abs(Y-W.W[k].startTime/1E3)/W.J.W*P<4}; VZq=function(W){W.fN.style.removeProperty("height");for(var Y=g.p(Object.keys(W.GJ)),k=Y.next();!k.done;k=Y.next())TI7(W,k.value);Ss(W);T$(W,W.A5,W.A9)}; YM=function(W){var Y=W.Lg.x;Y=g.ee(Y,0,W.C);W.k7.update(Y,W.C);return W.k7}; BN=function(W){return(W.N?135:90)-hi(W)}; hi=function(W){var Y=48,k=W.api.V();W.api.U("delhi_modern_web_player")?Y=W.api.getPlayerSize().width<=528?64:W.N?96:72:W.N?Y=54:g.Y3(k)&&!k.K&&(Y=40);return Y}; T$=function(W,Y,k){W.A5=Y;W.A9=k;var P=YM(W),T=W.J.W,I=OJ5(W.J,W.A5),X=g.ky("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.qy(I,!0),DURATION:g.qy(T,!0)}),h=MA(W.W,I*1E3);h=W.W[h].title;W.update({ariamin:Math.floor(W.J.K),ariamax:Math.floor(T),arianow:Math.floor(I),arianowtext:h?h+" "+X:X});T=W.clipStart;I=W.clipEnd;W.u8&&W.api.getPresentingPlayerType()!==2&&(T=W.u8.startTimeMs/1E3,I=W.u8.endTimeMs/1E3);T=rq(W.J,T,0);h=rq(W.J,I,1);X=W.api.getVideoData();I=g.ee(Y,T,h);k=(X==null?0:g.qq(X))?1:g.ee(k, T,h);Y=WN(W,Y,P);g.CX(W.B4,"transform","translateX("+Y+"px)");W.api.U("delhi_modern_web_player")&&W.api.U("delhi_modern_web_player_cutout")&&jUz(W,Y);OA(W,P,T,I,"PLAY_PROGRESS");(X==null?0:nl(X))?(Y=W.api.getProgressState().seekableEnd)&&OA(W,P,I,rq(W.J,Y),"LIVE_BUFFER"):OA(W,P,T,k,"LOAD_PROGRESS");if(W.api.U("web_player_heat_map_played_bar")){var B;(B=W.T[0])!=null&&B.X.setAttribute("width",(I*100).toFixed(2)+"%")}}; jUz=function(W,Y){W.api.getPresentingPlayerType()!==1?W.bz.style.removeProperty("clip-path"):(Y||(Y=WN(W,W.A5,YM(W))),W.bz.style.clipPath='path("'+(W.jW?Ir1(W,8,Y,W.N?50:36,0,6):Ir1(W,4,Y,W.N?34:24,2,3))+'")')}; Ir1=function(W,Y,k,P,T,I){var X=k-P/2;k+=P/2;Y+=T;return"M 0 "+T+" L 0 "+(Y+" L ")+(X+" "+Y+" C ")+(X+I+" "+Y+" "+(X+I)+" "+T+" "+X+" "+T+" L 0 ")+(T+" M ")+(k+" "+T+" L ")+(W.C+" "+T+" L ")+(W.C+" "+Y+" L ")+(k+" "+Y+" C ")+(k-I+" "+Y+" "+(k-I)+" "+T+" "+k+" "+T)}; OA=function(W,Y,k,P,T){var I=W.W.length,X=Y.W-W.OP*kM(W),h=k*X;k=js(W,h);var B=P*X;X=js(W,B);T==="HOVER_PROGRESS"&&(X=js(W,Y.W*P,!0),B=Y.W*P-XX7(W,Y.W*P)*kM(W));P=Math.max(h-SB5(W,k),0);for(h=k;h=W.W.length)return W.C;for(var k=0,P=0;P0||W.DY.clientWidth>0?(I=Y.clientWidth/k,W=-1*W.LH.clientWidth/k):(I/=k,W=-1*W.W[T].element.offsetLeft/k),g.CX(Y,"background-size",I+"px"),g.CX(Y,"background-position-x",W+"px"))}; uO=function(W,Y,k,P,T){T||W.api.V().K?Y.style.width=k+"px":g.CX(Y,"transform","scalex("+(P?k/P:0)+")")}; js=function(W,Y,k){var P=0;(k===void 0?0:k)&&(Y-=XX7(W,Y)*kM(W));k=g.p(W.W);for(var T=k.next();!T.done;T=k.next()){T=T.value;if(Y>T.width)Y-=T.width;else break;P++}return P===W.W.length?P-1:P}; WN=function(W,Y,k){var P=Y*W.J.W*1E3;for(var T=-1,I=g.p(W.W),X=I.next();!X.done;X=I.next())X=X.value,P>X.startTime&&X.width>0&&T++;P=T<0?0:T;T=k.W-kM(W)*W.OP;return Y*T+kM(W)*P+k.T}; XX7=function(W,Y){for(var k=W.W.length,P=0,T=g.p(W.W),I=T.next();!I.done;I=T.next())if(I=I.value,I.width!==0)if(Y>I.width)Y-=I.width,Y-=kM(W),P++;else break;return P===k?k-1:P}; g.O4d=function(W,Y,k,P){var T=W.C!==k,I=W.N!==P;W.Cn=Y;W.C=k;W.N=P;Vj(W)&&(Y=W.K)!=null&&(Y.scale=P?1.5:1);VZq(W);W.W.length===1&&(W.W[0].width=k||0);T&&g.at(W);W.K&&I&&Vj(W)&&(W.K.isEnabled&&(k=W.N?135:90,P=k-hi(W),W.e1.style.height=k+"px",g.CX(W.Kg,"transform","translateY("+-P+"px)"),g.CX(W.progressBar,"transform","translateY("+-P+"px)")),Jzd(W.K))}; Ss=function(W){var Y=!!W.u8&&W.api.getPresentingPlayerType()!==2,k=W.clipStart,P=W.clipEnd,T=!0,I=!0;Y&&W.u8?(k=W.u8.startTimeMs/1E3,P=W.u8.endTimeMs/1E3):(T=k>W.J.K,I=W.J.W>0&&PW.A5);g.kN(W.fN,"ytp-scrubber-button-hover",k===P&&W.W.length>1);if(W.api.U("web_player_heat_map_played_bar")){var I;(I=W.T[0])!=null&&I.W.setAttribute("width",(Y.K*100).toFixed(2)+"%")}}}; TI7=function(W,Y){var k=W.GJ[Y];Y=W.D_[Y];var P=YM(W),T=rq(W.J,k.start/1E3,0),I=Exq(k,W.N)/P.width;var X=rq(W.J,k.end/1E3,1);I!==Number.POSITIVE_INFINITY&&(T=g.ee(T,0,X-I));X=Math.min(X,T+I);k.color&&(Y.style.background=k.color);k=T;Y.style.left=Math.max(k*P.W+P.T,0)+"px";uO(W,Y,g.ee((X-k)*P.W+P.T,0,P.width),P.width,!0)}; uN1=function(W,Y){var k=Y.getId();W.GJ[k]===Y&&(g.qB(W.D_[k]),delete W.GJ[k],delete W.D_[k])}; Vj=function(W){var Y=g.ph(W.api.V())&&(W.api.U("web_shorts_pip")||W.api.U("web_watch_pip")),k;return!((k=W.api.getVideoData())==null?0:k.isLivePlayback)&&!W.api.isMinimized()&&!W.api.isInline()&&(!W.api.Wl()||!Y)}; Z1=function(W){W.K&&(W.K.disable(),W.Q5=0,W.Kg.style.removeProperty("transform"),W.progressBar.style.removeProperty("transform"),W.e1.style.removeProperty("height"),W.element.parentElement&&W.element.parentElement.style.removeProperty("height"))}; Z4F=function(W,Y){var k=Y/BN(W)*hi(W);g.CX(W.progressBar,"transform","translateY("+-Y+"px)");g.CX(W.Kg,"transform","translateY("+-Y+"px)");g.CX(W.e1,"transform","translateY("+k+"px)");W.e1.style.height=Y+k+"px";W.element.parentElement&&(W.element.parentElement.style.height=hi(W)-k+"px")}; i4z=function(W,Y){Y?W.G||(W.element.removeAttribute("aria-disabled"),W.G=new g.Cd(W.progressBar,!0),W.api.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&W.G.subscribe("hoverstart",W.D6z,W),W.G.subscribe("hovermove",W.BZr,W),W.G.subscribe("hoverend",W.QIh,W),W.G.subscribe("dragstart",W.kW2,W),W.G.subscribe("dragmove",W.Vjg,W),W.G.subscribe("dragend",W.d6D,W),W.api&&W.api.U("delhi_modern_web_player")&&W.api.U("delhi_modern_web_player_cutout")&&(W.KN=new g.Cd(W.progressBar, !0),W.KN.subscribe("hoverstart",function(){W.jW=!0;jUz(W)},W),W.KN.subscribe("hoverend",function(){W.jW=!1; jUz(W)},W)),W.i5=W.listen("keydown",W.kZ)):W.G&&(W.element.setAttribute("aria-disabled","true"),W.nH(W.i5),W.G.cancel(),W.G.dispose(),W.G=null)}; kM=function(W){return W.api.U("delhi_modern_web_player")?4:W.N?3:2}; aoz=function(W){var Y;return!((Y=W.u8)==null||!Y.postId)&&W.api.getPresentingPlayerType()!==2}; iO=function(W,Y){g.l.call(this,{S:"button",Ya:["ytp-remote-button","ytp-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},v6:"{{icon}}"});this.Y=W;this.Mq=Y;this.W=null;this.Z(W,"onMdxReceiversChange",this.xa);this.Z(W,"presentingplayerstatechange",this.xa);this.Z(W,"appresize",this.xa);W.createClientVe(this.element,this,139118);this.xa();this.listen("click",this.K, this);Cl(W,this.element,this)}; Mf=function(W,Y){g.l.call(this,{S:"button",Ya:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":as(),title:W.U("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},B:[W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.nU()]});this.Y=W;this.Mq=Y;this.K=!0;this.listen("click",this.J);this.Z(W,"onPlaybackQualityChange",this.updateBadge);this.Z(W,"videodatachange",this.updateBadge);this.Z(W,"webglsettingschanged",this.updateBadge);this.Z(W,"appresize",this.W);Cl(W,this.element,this);this.Y.createClientVe(this.element,this,28663);this.updateBadge();this.W(W.ai().getPlayerSize())}; Mf6=function(W,Y){W.K=!!Y;W.W(W.Y.ai().getPlayerSize())}; ti=function(W,Y){EH.call(this,"Anotaciones",g.m4.yF);this.Y=W;this.Mq=Y;this.W=!1;W.U("web_settings_menu_icons")&&(Y=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(Y));this.Z(W,"videodatachange",this.xa);this.Z(W,"onApiChange",this.xa);this.subscribe("select",this.onSelect,this);this.xa()}; qf=function(W,Y,k){g.eo.call(this,"Pista de audio",g.m4.AUDIO,W,Y);this.Y=W;this.K=k;this.tracks={};g.a2(this.element,"ytp-audio-menu-item");this.countLabel=new g.l({S:"div",B:[{S:"span",v6:"Pista de audio"},{S:"span",j:"ytp-menuitem-label-count",v6:"{{content}}"}]});W.U("web_settings_menu_icons")&&!this.Y.U("html5_enable_new_audio_settings_menu")&&(Y=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:rl5(),this.setIcon(Y));g.v(this,this.countLabel);g.B1(this,this.countLabel);this.Z(W,"videodatachange",this.xa);this.Z(W,"onPlaybackAudioChange",this.xa);this.xa()}; tf6=function(W,Y){g.OH.call(this,g.ui({"aria-haspopup":"true"},["ytp-audio-menu-item"]),g.m4.wl);this.Y=W;this.Mq=Y;g.a2(this.element,"ytp-audio-menu-item");this.Ba=new g.A3(W,void 0,"Audio");this.countLabel=new g.l({S:"div",B:[{S:"span",v6:"Audio"},{S:"span",j:"ytp-menuitem-label-count",v6:"{{content}}"}]});W.U("web_settings_menu_icons")&&this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.qK=new qf(W,this.Mq,this);g.v(this,this.qK);this.Z(W,"settingsMenuInitialized",this.X5.bind(this));this.Z(W,"videodatachange",this.X5.bind(this));g.v(this,this.countLabel);g.B1(this,this.countLabel);this.Mq.c7(this);this.Z(W,"onPlaybackAudioChange",this.tL);this.Z(W,"audiopreferencechange",this.tL);this.listen("keydown",this.kZ);this.listen("click",this.open)}; RK=function(W,Y){EH.call(this,"Reproducci\u00f3n autom\u00e1tica",g.m4.Jz);this.Y=W;this.Mq=Y;this.W=!1;this.K=[];this.Z(W,"presentingplayerstatechange",this.X5);this.subscribe("select",this.onSelect,this);W.createClientVe(this.element,this,113682);this.X5()}; qBq=function(W,Y){g.OH.call(this,g.ui({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.Y=W;this.Mq=Y;this.Z(this.element,"click",this.onClick);this.Mq.c7(this)}; RuC=function(W,Y){var k;g.ph(W.V())&&(k={S:"div",j:"ytp-panel-footer-content",B:[{S:"span",v6:"Ajusta la calidad de descarga en la "},{S:"a",j:"ytp-panel-footer-content-link",v6:"Configuraci\u00f3n",D:{href:"/account_downloads"}}]});g.eo.call(this,"Calidad",g.m4.LM,W,Y,void 0,void 0,k);this.Y=W;this.Kg={};this.X={};this.K={};this.wD=new Set;this.W=this.T=!1;this.C="unknown";this.G="";this.A5=new g.FJ;g.v(this,this.A5);this.T=this.Y.U("web_player_use_new_api_for_quality_pullback");this.W=this.Y.U("web_player_enable_premium_hbr_playback_cap"); W.U("web_settings_menu_icons")&&(Y=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(Y));g.a2(this.Ba.element,"ytp-quality-menu");this.Z(W,"videodatachange",this.X5);this.Z(W,"videoplayerreset",this.X5);this.Z(W,"onPlaybackQualityChange",this.A8);this.X5();W.createClientVe(this.element,this,137721)}; nv5=function(W,Y,k){var P=W.Kg[Y],T=g.FP[Y];return H4C(W,P?P.qualityLabel:T?T+"p":"Autom\u00e1tica",Y,k)}; pXv=function(W,Y,k,P,T){var I=(Y=W.W?W.K[Y]:W.X[Y])&&Y.quality,X=Y&&Y.qualityLabel;X=X?X:"Autom\u00e1tica";P&&(X="("+X);W=H4C(W,X,I||"",T);P&&W.B.push(")");(P=(P=Y&&Y.paygatedQualityDetails)&&P.paygatedIndicatorText)&&k&&W.B.push({S:"div",j:"ytp-premium-label",v6:P});return W}; H4C=function(W,Y,k,P){Y={S:"span",Ya:P,B:[Y]};var T;P="ytp-swatch-color";if(W.T||W.W)P="ytp-swatch-color-white";k==="highres"?T="8K":k==="hd2880"?T="5K":k==="hd2160"?T="4K":k.indexOf("hd")===0&&k!=="hd720"&&(T="HD");T&&(Y.B.push(" "),Y.B.push({S:"sup",j:P,v6:T}));return Y}; HN=function(W){ot.call(this,W.getAvailablePlaybackRates()[0],W.getAvailablePlaybackRates()[W.getAvailablePlaybackRates().length-1],.05,W.getPlaybackRate(),{S:"div",j:"ytp-speedslider-indicator-container",B:[{S:"div",j:"ytp-speedslider-badge"},{S:"p",j:"ytp-speedslider-text"}]});this.Y=W;this.A5=gs(this.wD,50,this);g.a2(this.K,"ytp-speedslider");this.N=this.J5("ytp-speedslider-text");this.Kg=this.J5("ytp-speedslider-badge");GjX(this);this.Z(this.K,"change",this.gD)}; GjX=function(W){W.N.textContent=W.W.toFixed(2)+"x";var Y=W.W>2&&W.Y.U("enable_web_premium_varispeed");W.Kg.classList.toggle("ytp-speedslider-premium-badge",Y);W.Kg.setAttribute("aria-label",Y?"Premium":"")}; nq=function(W,Y,k,P,T,I,X){g.l.call(this,{S:"div",j:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},B:[{S:"div",j:"ytp-slider",B:[{S:"div",j:"ytp-slider-handle"}]}]});this.G=W;this.N=Y;this.K=k;this.J=P;this.A5=T;this.TJ=I;this.range=this.J-this.K;this.OP=this.J5("ytp-slider-section");this.T=this.J5("ytp-slider");this.Kg=this.J5("ytp-slider-handle");this.X=new g.Cd(this.T, !0);this.W=X?X:k;g.v(this,this.X);this.X.subscribe("dragmove",this.xR,this);this.Z(this.element,"keydown",this.jk);this.Z(this.element,"wheel",this.IU);this.init()}; pq=function(W){nq.call(this,.05,.05,W.getAvailablePlaybackRates()[0],W.getAvailablePlaybackRates()[W.getAvailablePlaybackRates().length-1],150,20,W.getPlaybackRate());this.Y=W;this.C=g.um("P");this.gD=gs(this.wD,50,this);g.a2(this.T,"ytp-speedslider");g.a2(this.C,"ytp-speedslider-text");W=this.C;var Y=this.T;Y.parentNode&&Y.parentNode.insertBefore(W,Y.nextSibling);K82(this);this.Z(this.Y,"onPlaybackRateChange",this.updateValues)}; K82=function(W){W.C.textContent=Evd(W,W.W)+"x"}; Evd=function(W,Y){W=Number(g.ee(Y,W.K,W.J).toFixed(2));Y=Math.floor((W+.001)*100%5+2E-15);var k=W;Y!==0&&(k=W-Y*.01);return Number(k.toFixed(2))}; JXV=function(W){g.kZ.call(this,{S:"div",j:"ytp-speedslider-component"});W.U("web_settings_use_input_slider")?this.W=new HN(W):this.W=new pq(W);g.v(this,this.W);this.element.appendChild(this.W.element)}; sUV=function(W){var Y=new JXV(W);r$.call(this,W,Y,"Personalizada");g.v(this,Y)}; AXF=function(W,Y){var k=new sUV(W);g.eo.call(this,"Velocidad de reproducci\u00f3n",g.m4.zz,W,Y,G$(W)?void 0:"Personalizada",G$(W)?void 0:function(){g.m3(Y,k)}); var P=this;this.X=new g.l({S:"div",j:"ytp-menuitem-premium-badge"});this.T=!1;g.v(this,k);this.G=new HN(W);g.v(this,this.G);if(W.U("web_settings_menu_icons")){var T=W.U("delhi_modern_web_player_icons")?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{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"}}]}:{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(T)}this.Y=W;this.T=!1;this.Kg=null;G$(W)?(this.W=g.ky("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.Y.getPlaybackRate().toString()}),this.C=this.Y.getPlaybackRate()):this.C=this.W=null;g.v(this,this.X);var I,X,h,B;this.wD=(I=this.Y.getVideoData())==null?void 0:(X=I.getWatchNextResponse())==null?void 0:(h=X.playerOverlays)==null?void 0:(B=h.playerOverlayRenderer)==null?void 0:B.showPlaybackRateUpsellPanelCommand;rXd(W,this.wD)?(this.K=Kq(4),this.Y.createClientVe(this.X.element, this,273508)):this.K=null;this.A5=this.Y.getAvailablePlaybackRates();this.Z(W,"presentingplayerstatechange",this.xa);var O;((O=this.Y.getVideoData())==null?0:O.Xj())&&this.Z(W,"serverstitchedvideochange",this.xa);this.Z(this.G.K,"change",function(){P.T=!0;P.xa()}); this.xa()}; zuF=function(W,Y){var k=Kq(Y);W.W&&(W.T||Y===W.C)?(W.yH(W.W),W.N6(Y.toString())):W.yH(k)}; m1z=function(W){var Y=W.A5.map(Kq);W.K&&Y.push(W.K);W.oS(Y);W.W=null;W.C=null;Y=W.Y.getPlaybackRate();G$(W.Y)&&d15(W,Y);!W.A5.includes(Y)||W.T?W.yH(W.W):W.yH(Kq(Y))}; d15=function(W,Y){W.C=Y;W.W=g.ky("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:Y.toString()});Y=W.A5.map(Kq);Y.unshift(W.W);W.K&&Y.push(W.K);W.oS(Y)}; D1C=function(W,Y,k,P){k=new g.OH({S:"div",Ya:["ytp-menuitem"],D:{tabindex:"0",role:"menuitemradio","aria-checked":P?"true":"false"},B:[{S:"div",Ya:["ytp-menuitem-label"],B:[{S:"div",Ya:["ytp-menuitem-container-with-badge"],B:[{S:"div",v6:"{{label}}"},W.X]}]}]},k,W.wM(Y));k.listen("click",function(){W.Gx(Y)}); W.Y.logVisibility(W.X.element,!0);return k}; Kq=function(W){return W.toString()}; G$=function(W){return W.U("web_settings_menu_surface_custom_playback")}; rXd=function(W,Y){return!!Y&&W.getAvailablePlaybackRates()[W.getAvailablePlaybackRates().length-1]<=2}; gv2=function(W){return W.U("web_settings_menu_surface_custom_playback")&&W.U("web_settings_use_input_slider")}; wXS=function(W,Y,k,P){var T=new g.A3(Y,void 0,"Anulaci\u00f3n de video");g.eo.call(this,P.text||"",W,Y,k,"Anulaci\u00f3n de video",function(){g.m3(k,T)}); var I=this;g.a2(this.element,"ytp-subtitles-options-menu-item");this.setting=P.option.toString();W=P.options;this.settings=g.f$(W,this.KD,this);this.T=T;g.v(this,this.T);Y=new g.OH({S:"div",j:"ytp-menuitemtitle",v6:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.v(this,Y);this.T.c7(Y,!0);this.K=new g.OH({S:"div",j:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},B:[{S:"div",j:"ytp-menuitem-label",v6:"S\u00ed"}]},-1);g.v(this,this.K);this.T.c7(this.K, !0);this.Z(this.K.element,"click",function(){F8z(I,!0)}); this.W=new g.OH({S:"div",j:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},B:[{S:"div",j:"ytp-menuitem-label",v6:"No"}]},-2);g.v(this,this.W);this.T.c7(this.W,!0);this.Z(this.W.element,"click",function(){F8z(I,!1)}); this.oS(g.tx(W,this.KD))}; F8z=function(W,Y){W.publish("settingChange",W.setting+"Override",!Y);W.Mq.iY()}; EA=function(W,Y){g.A3.call(this,W,void 0,"Opciones");var k=this;this.cw={};for(var P=0;P=0);if(!(Y<0||Y===W.T)){W.T=Y;Y=243*W.scale;var k=141*W.scale,P=$jd(W.K,W.T,Y);a85(W.bg,P,Y,k,!0);W.Kg.start()}}; BCX=function(W){var Y=W.W;W.type===3&&W.wD.stop();W.api.removeEventListener("appresize",W.A5);W.G||(W.env.U("player_tooltip_data_title_killswitch")?Y.setAttribute("title",W.J):Y.setAttribute("data-tooltip-title",W.J));W.J="";W.W=null;W.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});W.wrapper.style.width=""}; u3F=function(W){g.l.call(this,{S:"button",Ya:["ytp-watch-later-button","ytp-button"],D:{title:W.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Y3(W.V()))},B:[{S:"div",j:"ytp-watch-later-icon",v6:"{{icon}}"},{S:"div",j:"ytp-watch-later-title",v6:"Ver m\u00e1s tarde"}]});this.Y=W;this.icon=null;this.visible=this.isRequestPending=this.W=!1;Dgd(W);W.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.Z(W,"videoplayerreset",this.onReset);this.Z(W,"appresize",this.O8);this.Z(W,"videodatachange",this.O8);this.Z(W,"presentingplayerstatechange",this.O8);this.O8();W=this.Y.V();var Y=g.Es("yt-player-watch-later-pending");W.T&&Y?(NkV(),Op6(this)):this.xa(2);g.kN(this.element,"ytp-show-watch-later-title",g.Y3(W));Cl(this.Y,this.element,this)}; ZpC=function(W){var Y=W.Y.getPlayerSize(),k=W.Y.V(),P=W.Y.getVideoData(),T=g.Y3(k)&&g.x9(W.Y)&&g.b(W.Y.getPlayerStateObject(),128),I=k.J;return k.rV&&Y.width>=240&&!P.isAd()&&P.rV&&!T&&!P.zr&&!W.Y.isEmbedsShortsMode()&&!I}; ipv=function(W,Y){BN1(g.tK(W.Y.V()),"wl_button",function(){NkV({videoId:Y});window.location.reload()})}; Op6=function(W){if(!W.isRequestPending){W.isRequestPending=!0;W.xa(3);var Y=W.Y.getVideoData();Y=W.W?Y.removeFromWatchLaterCommand:Y.addToWatchLaterCommand;var k=W.Y.fn(),P=W.W?function(){W.W=!1;W.isRequestPending=!1;W.xa(2);W.Y.V().L&&W.Y.Ri("WATCH_LATER_VIDEO_REMOVED")}:function(){W.W=!0; W.isRequestPending=!1;W.xa(1);W.Y.V().K&&W.Y.tN(W.element);W.Y.V().L&&W.Y.Ri("WATCH_LATER_VIDEO_ADDED")}; dG(k,Y).then(P,function(){W.isRequestPending=!1;W.xa(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");W.Y.V().L&&W.Y.Ri("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; ML1=function(W,Y){if(Y!==W.icon){switch(Y){case 3:var k=zT();break;case 1:k=XE();break;case 2:k={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:k={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path", yU:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}W.updateValue("icon",k);W.icon=Y}}; tLF=function(){g.aD.apply(this,arguments);this.S$=(this.x$=g.Y3(this.api.V()))&&(this.api.V().K||lw()||LN());this.zA=48;this.WL=69;this.Ec=this.ZJ=null;this.W9=[];this.KZ=this.G8=this.iO=this.MV=this.qt=null;this.BB=[];this.contextMenu=this.Bk=this.overflowButton=this.Xb=this.Nx=this.searchButton=this.copyLinkButton=this.shareButton=this.gU=this.Hk=this.title=this.channelAvatar=this.Bb=this.tooltip=null;this.kE=!1;this.HO=this.Wb=this.Ce=this.gH=null;this.EhS=this.o1=this.Cd=!1}; q3d=function(W){var Y=W.api.V(),k=g.b(W.api.getPlayerStateObject(),128);return Y.T&&k&&!W.api.isFullscreen()}; RIS=function(W){if(W.jy()&&!W.api.isEmbedsShortsMode()&&W.Xb){var Y=W.api.U("web_player_hide_overflow_button_if_empty_menu");!W.gU||Y&&!ZpC(W.gU)||iEd(W.Xb,W.gU);!W.shareButton||Y&&!mr0(W.shareButton)||iEd(W.Xb,W.shareButton);!W.copyLinkButton||Y&&!A5F(W.copyLinkButton)||iEd(W.Xb,W.copyLinkButton)}else{Y=W.api.V().getWebPlayerContextConfig();if(W.Xb){for(var k=W.Xb,P=g.p(k.actionButtons),T=P.next();!T.done;T=P.next())T.value.detach();k.actionButtons=[]}W.searchButton&&!g.R_(W.Hk.element,W.searchButton.element)&& W.searchButton.S1(W.Hk.element);!W.gU||(Y==null?0:Y.hideTopWatchNextButton)||g.R_(W.Hk.element,W.gU.element)||W.gU.S1(W.Hk.element);!W.shareButton||(Y==null?0:Y.hideTopShareButton)||g.R_(W.Hk.element,W.shareButton.element)||W.shareButton.S1(W.Hk.element);W.copyLinkButton&&!g.R_(W.Hk.element,W.copyLinkButton.element)&&W.copyLinkButton.S1(W.Hk.element)}}; Hpq=function(W,Y,k){Y=k?Y.lastElementChild:Y.firstElementChild;for(var P=null;Y;){if(lm(Y,"display")!=="none"&&Y.getAttribute("aria-hidden")!=="true"){var T=void 0;Y.tabIndex>=0?T=Y:T=Hpq(W,Y,k);T&&(P?k?T.tabIndex>P.tabIndex&&(P=T):T.tabIndexP/1E3+1)return{msg:"in-the-past"};if(I.isLivePlayback&&!isFinite(P))return{msg:"live-infinite"};(P=Y.bd())&&P.isView()&&(P=P.mediaElement);if(P&&P.OG().length>12&&g.U4(T))return{msg:"played-ranges"};if(!T.J)return null;if(!X)return{msg:"no-pvd-formats"};if(!T.J.W||!X.W)return{msg:"non-dash"};P=X.videoInfos[0];var h=T.J.videoInfos[0];W.A5&&rR(I)&&(P=Y.Qg(), h=k.Qg());if(!P||!h)return{msg:"no-video-info"};if(W.X&&(Ul(P)||Ul(h)))return{msg:"av1"};Y=W.T&&I.xZ()&&iY();if(h.containerType!==P.containerType)if(Y)I.y5("sgap",{ierr:"container"});else return{msg:"container"};if(W.C&&!Y&&(h.lz!==P.lz||h.lz===""||P.lz===""))return{msg:"codec"};if(W.G&&h.video&&P.video&&Math.abs(h.video.width/h.video.height-P.video.width/P.video.height)>.01)return{msg:"ratio"};if(g.U4(I)&&g.U4(T))return{msg:"content-protection"};X=X.W[0];T=T.J.W[0];k=X.audio;var B=T.audio;if(k.sampleRate!== B.sampleRate&&!g.qn)if(Y)I.y5("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:X.itag,cr:k.sampleRate,ni:T.itag,nr:B.sampleRate};return(k.numChannels||2)!==(B.numChannels||2)?{msg:"channel-count"}:W.L&&I.xZ()&&P.video.fps!==h.video.fps?{msg:"fps"}:null}; KP2=function(W,Y,k){var P=W.getVideoData(),T=Y.getVideoData();if(!P.V().supportsGaplessShorts())return{nq:"env"};if((!k.N||P.zv&&!P.isAd()||T.zv&&!T.isAd())&&(!k.K||P.zv&&!P.isAd()||T.zv)&&(!k.J||T.zv&&!T.isAd()||P.zv)&&(P.zv||T.zv))return{nq:"autoplay"};if(P.endSeconds>0)return{nq:"endcr"};if(!P.G)return{nq:"client"};if(!W.g_())return{nq:"no-empty"};W=GUX(k,W,Y,Infinity);return W!=null?{nq:W.msg}:null}; Cq=function(W){g.e.call(this);this.app=W;this.C=this.T=this.K=this.W=null;this.J=1;this.events=new g.p5(this);this.events.Z(this.app.Ii,g.bP("gaplessshortslooprange"),this.L);g.v(this,this.events)}; Ezq=function(){this.W=this.G=this.J=this.K=this.N=this.X=this.A5=this.L=this.C=this.T=!1}; Js0=function(W){var Y=new Ezq;Y.T=W.U("h5_gapless_support_types_diff");Y.L=!1;Y.A5=W.U("html5_gapless_use_format_info_fix");Y.X=W.U("html5_gapless_disable_on_av1")&&!W.U("html5_gapless_enable_on_av1");Y.C=W.U("html5_gapless_check_codec_diff_strictly");Y.N=W.U("html5_gapless_on_ad_autoplay");Y.G=W.U("html5_gapless_disable_diff_aspect_radio");Y.K=W.U("html5_gapless_ad_autoplay_on_ad_to_video_only");Y.W=W.U("html5_pseudogapless_shorts_seek_to_next_start");Y.J=W.U("html5_gapless_ad_autoplay_on_video_to_ad_only"); return Y}; g.Lq=function(W,Y,k,P){P=P===void 0?!1:P;EM.call(this);this.mediaElement=W;this.start=Y;this.end=k;this.W=P}; s$5=function(W,Y,k,P,T,I){I=I===void 0?0:I;g.e.call(this);var X=this;this.policy=W;this.W=Y;this.K=k;this.GW=T;this.C=I;this.T=this.J=null;this.currentVideoDuration=this.X=-1;this.G=!1;this.fI=new KY;this.L7=P-Y.m2()*1E3;this.fI.then(void 0,function(){}); this.timeout=new g.C_(function(){X.A$("timeout")},1E4); g.v(this,this.timeout);this.L=isFinite(P)||this.GW.V().experiments.Nq("html5_pseudogapless_shorts")&&rR(Y.getVideoData());this.status={status:0,error:null}}; Asz=function(W){var Y,k,P,T,I,X,h,B,O;return g.D(function(u){if(u.W==1){if(W.Xr())return u.return(Promise.reject(Error(W.status.error||"disposed")));W.timeout.start();return g.m(u,W.fI,2)}Y=W.W.bd();if(Y.isEnded())return W.A$("ended_in_finishTransition"),u.return(Promise.reject(Error(W.status.error||"")));if(!W.T||!qt(W.T))return W.A$("next_mse_closed"),u.return(Promise.reject(Error(W.status.error||"")));if(W.K.s0()!==W.T)return W.A$("next_mse_mismatch"),u.return(Promise.reject(Error(W.status.error|| "")));k=UA(W);P=k.vy;T=k.TH;I=k.g6;W.W.Fb(!1,!0);X=rs2(Y,P,I,!W.K.getVideoData().isAd());W.K.setMediaElement(X);(h=W.W.ST())&&W.K.H9(h.Sh,h.CS);W.L&&(W.policy.W||W.K.seekTo(W.K.getCurrentTime()+.001,{jx:!0,oO:3,Fi:"gapless_pseudo"}),X.play());B=Y.ER();B.cpn=W.W.getVideoData().clientPlaybackNonce;B.st=""+P;B.et=""+I;W.K.y5("gapless",B);W.W.y5("gaplessTo",{cpn:W.K.getVideoData().clientPlaybackNonce});O=W.W.getPlayerType()===W.K.getPlayerType();W.W.Zl(T,!0,!1,O,W.K.getVideoData().clientPlaybackNonce); W.K.Zl(W.K.getCurrentTime(),!0,!0,O,W.W.getVideoData().clientPlaybackNonce);W.K.m4();g.GR(function(){!W.K.getVideoData().Kg&&W.K.getPlayerState().isOrWillBePlaying()&&W.K.l6()}); lO(W,6);W.dispose();return u.return(Promise.resolve())})}; DMv=function(W){if(W.K.getVideoData().J){var Y=W.GW.V().U("html5_gapless_suspend_next_loader")&&W.C===1;W.K.mK(W.T,Y,zI6(W));lO(W,3);dMC(W);var k=mMq(W);Y=k.DC;k=k.XW;Y.subscribe("updateend",W.Q$,W);k.subscribe("updateend",W.Q$,W);W.Q$(Y);W.Q$(k)}}; dMC=function(W){W.W.unsubscribe("internalvideodatachange",W.gi,W);W.K.unsubscribe("internalvideodatachange",W.gi,W);W.GW.V().U("html5_gapless_use_format_info_fix")&&(W.W.unsubscribe("internalvideoformatchange",W.gi,W),W.K.unsubscribe("internalvideoformatchange",W.gi,W));W.W.unsubscribe("mediasourceattached",W.gi,W);W.K.unsubscribe("statechange",W.Pg,W)}; rs2=function(W,Y,k,P){W=W.isView()?W.mediaElement:W;return new g.Lq(W,Y,k,P)}; lO=function(W,Y){Y<=W.status.status||(W.status={status:Y,error:null},Y===5&&W.fI.resolve())}; zI6=function(W){return W.GW.V().U("html5_gapless_no_clear_buffer_timeline")&&W.C===1&&mX(W.W.getVideoData())}; UA=function(W){var Y=W.W.bd();Y=Y.isView()?Y.start:0;var k=W.W.getVideoData().isLivePlayback?Infinity:W.W.qA(!0);k=Math.min(W.L7/1E3,k)+Y;var P=W.L?100:0;W=k-W.K.tD()+P;return{o4:Y,vy:W,TH:k,g6:Infinity}}; mMq=function(W){return{DC:W.J.W.AY,XW:W.J.K.AY}}; bO=function(W){g.e.call(this);var Y=this;this.app=W;this.X=this.K=this.W=null;this.L=!1;this.J=this.T=null;this.C=Js0(this.app.V());this.G=function(){g.GR(function(){gzS(Y)})}}; FPd=function(W,Y,k,P,T){P=P===void 0?0:P;T=T===void 0?0:T;W.g_()||cN(W);W.T=new KY;W.W=Y;var I=k,X=T===0;X=X===void 0?!0:X;var h=W.app.D2(),B=h.getVideoData().isLivePlayback?Infinity:h.qA(!0)*1E3;I>B&&(I=B-200,W.L=!0);X&&h.getCurrentTime()>=I/1E3?W.G():(W.K=h,X&&(X=I,I=W.K,W.app.Ii.addEventListener(g.lP("vqueued"),W.G),X=isFinite(X)||X/1E3>I.getDuration()?X:0x8000000000000,W.X=new g.L6(X,0x8000000000000,{namespace:"vqueued"}),I.addCueRange(W.X)));X=P/=1E3;I=Y.getVideoData().W;P&&I&&W.K&&(h=P,B=0, Y.getVideoData().isLivePlayback&&(X=Math.min(k/1E3,W.K.qA(!0)),B=Math.max(0,X-W.K.getCurrentTime()),h=Math.min(P,Y.qA()+B)),X=mtF(I,h)||P,X!==P&&W.W.y5("qvaln",{st:P,at:X,rm:B,ct:h}));Y=X;P=W.W;P.getVideoData().Cn=!0;P.getVideoData().G=!0;P.s$(!0);I={};W.K&&(I=W.K.XZ(),X=W.K.getVideoData().clientPlaybackNonce,I={crt:(I*1E3).toFixed(),cpn:X});P.y5("queued",I);Y!==0&&P.seekTo(Y+.01,{jx:!0,oO:3,Fi:"videoqueuer_queued"});W.J=new s$5(W.C,W.app.D2(),W.W,k,W.app,T);k=W.J;k.status.status!==Infinity&&(lO(k, 1),k.W.subscribe("internalvideodatachange",k.gi,k),k.K.subscribe("internalvideodatachange",k.gi,k),k.GW.V().U("html5_gapless_use_format_info_fix")&&(k.W.subscribe("internalvideoformatchange",k.gi,k),k.K.subscribe("internalvideoformatchange",k.gi,k)),k.W.subscribe("mediasourceattached",k.gi,k),k.K.subscribe("statechange",k.Pg,k),k.W.subscribe("newelementrequired",k.ZK,k),k.gi());return W.T}; gzS=function(W){var Y,k,P,T,I,X,h;g.D(function(B){switch(B.W){case 1:if(W.Xr()||!W.T||!W.W)return B.return();W.L&&W.app.D2().XT(!0,!1);Y=null;if(!W.J){B.oi(2);break}g.KC(B,3);return g.m(B,Asz(W.J),5);case 5:g.s2(B,2);break;case 3:Y=k=g.Aq(B);case 2:if(!W.W)return B.return();wxd.Ex("vqsp",function(){W.app.gk(W.W)}); if(!W.W)return B.return();P=W.W.bd();W.app.V().U("html5_gapless_seek_on_negative_time")&&P&&P.getCurrentTime()<-.01&&W.W.seekTo(0);wxd.Ex("vqpv",function(){W.app.playVideo()}); Y&&(W.W?(T=Y?Y.message:"forced",(I=W.K)==null||I.y5("gapfulfbk",{r:T}),W.W.eC(T)):(X=W.K)==null||X.y5("gapsp",{}));h=W.T;cN(W);h&&h.resolve();return B.return(Promise.resolve())}})}; cN=function(W,Y){Y=Y===void 0?!1:Y;if(W.K){if(W.X){var k=W.K;W.app.Ii.removeEventListener(g.lP("vqueued"),W.G);k.removeCueRange(W.X)}W.K=null;W.X=null}W.J&&(W.J.status.status!==6&&(k=W.J,k.status.status!==Infinity&&k.C!==1&&k.A$("Canceled")),W.J=null);W.T=null;W.W&&!Y&&W.W!==W.app.zn()&&W.W!==W.app.D2()&&W.W.dispose();W.W&&Y&&W.W.Fo();W.W=null;W.L=!1}; Q$5=function(W){var Y;return((Y=W.J)==null?void 0:Y.currentVideoDuration)||-1}; ysF=function(W,Y,k){if(W.g_())return"qie";if(W.W==null||W.W.Xr()||W.W.getVideoData()==null)return"qpd";if(Y.videoId!==W.W.B5())return"vinm";if(Q$5(W)<=0)return"ivd";if(k!==1)return"upt";if((k=W.J)==null)W=void 0;else if(k.getStatus().status!==5)W="niss";else if(GUX(k.policy,k.W,k.K,k.L7)!=null)W="pge";else{Y=mMq(k);W=Y.DC;var P=Y.XW;Y=g.W2(k.GW.V().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var T=k.X+Y;k.GW.V().experiments.Nq("html5_pseudogapless_shorts")&&(T=UA(k).vy+Y);k=jc(P.Mt(), T);W=jc(W.Mt(),T);W=!(Y>0)||k&&W?null:"neb"}return W!=null?W:null}; eIC=function(){g.NR.call(this);var W=this;this.fullscreen=0;this.T=this.J=this.pictureInPicture=this.W=this.K=this.inline=!1;this.C=function(){W.R6()}; yS7(this.C);this.X=this.getVisibilityState(this.Y7(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wl(),this.Us(),this.Go(),this.kf())}; vLV=function(W){return!(W.isMinimized()||W.isInline()||W.isBackground()||W.Wl()||W.Us()||W.Go()||W.kf())}; g.xM=function(W){g.e.call(this);this.zJ=W;this.videoData=this.playerState=null}; Nf=function(W,Y){g.e.call(this);var k=this;this.data=[];this.J=W||NaN;this.K=Y||null;this.W=new g.C_(function(){fq(k);VV(k)}); g.v(this,this.W)}; FGF=function(W){fq(W);return W.data.map(function(Y){return Y.value})}; fq=function(W){var Y=(0,g.q5)();W.data.forEach(function(k){k.expire0));W.OR()&& ADd();Error.stackTraceLimit=50;var T=g.W2(Y,"html5_idle_rate_limit_ms");T&&Object.defineProperty(window,"requestIdleCallback",{value:function(I){return window.setTimeout(I,T)}}); PEC(W.C);Wz1(k("html5_use_ump_request_slicer"));rMX(k("html5_record_now"));k("html5_disable_streaming_xhr")&&(qG=!1);k("html5_byterate_constraints")&&(s7=!0);k("html5_use_non_active_broadcast_for_post_live")&&(ia=!0);k("html5_enable_encrypted_av1")&&(L5=!0);k("html5_skip_num_channels_for_iamf")&&(Y65=!0);c9S(g.W2(W.experiments,"html5_sticky_duration_mos"))}; bpS=function(W,Y){return W.slice(Y.length).replace(/_[a-z]/g,function(k){return k.toUpperCase().replace("_","")}).replace("Dot",".")}; csv=function(W){var Y={},k=Object.keys(W.experiments.flags);k=g.p(k);for(var P=k.next();!P.done;P=k.next())if(P=P.value,P.startsWith("cobalt_h5vcc"))if(P.startsWith("cobalt_h5vcc_string")){var T=bpS(P,"cobalt_h5vcc_string");P=nA(W.experiments,P);T&&P&&(Y[T]=sRz(T,P))}else P.startsWith("cobalt_h5vcc")&&(T=bpS(P,"cobalt_h5vcc"),P=g.W2(W.experiments,P),T&&P&&(Y[T]=sRz(T,P)));return Y}; fIC=function(W,Y,k,P){P=P===void 0?0:P;g.jk.call(this,k.Rv());var T=this;this.Ha=W;this.videoData=Y;this.duration=P;this.W=this.startTimeSecs=0;this.K=new xMz(function(I,X){return void T.y5(I,X)})}; xMz=function(W){this.y5=W;this.W={}}; VLS=function(W,Y,k){W.W[Y]||(W.y5("huli-sdai-err",k),W.W[Y]=!0)}; NCC=function(W){this.end=this.start=W}; g.kq=function(){this.W=new Map;this.J=new Map;this.K=new Map}; aId=function(W){var Y=this;this.zJ=W;this.K=[];this.J=new Map;this.T=new Map;this.W=new Map;this.zW={En:function(){return Y.J}, uOa:function(){return Y.T}, a4:function(){return Y.K}}; this.C=this.zJ.U("html5_huli_ssdai_deprecate_playback_timeline_id")}; W_d=function(W,Y,k){W=W.K;var P=g.vp(W,{pH:Y},function(X,h){return X.pH-h.pH}); P=P<0?(P+2)*-1:P;if(P>=0)for(var T=P;T<=P+1&&T=I.pH-k&&Y<=I.vz+k)return I}}; $h7=function(W,Y){g.cp(W.K,Y,function(k,P){return k.pH===P.pH?k.durationMs-P.durationMs:k.pH-P.pH}); W.J.set(Y.cpn,Y);Y.U1&&!W.C&&W.T.set(Y.U1,Y);Y.J7&&Ymd(W,Y.J7,Y)}; kqS=function(W,Y){for(var k=[],P=g.p(W.K),T=P.next();!T.done;T=P.next())T=T.value,Y(T)||k.push(T);if(W.zJ.U("html5_sstm_fixes"))for(P=g.p(W.K),T=P.next();!T.done;T=P.next())T=T.value,Y(T)&&(W.J.delete(T.cpn),T.U1&&W.T.delete(T.U1));W.K=k}; PvS=function(W,Y){Y=g.vp(W.K,{vz:Y},function(k,P){return k.vz-P.vz}); return Y>=0?W.K[Y]:null}; Thq=function(W,Y){var k=W.K.indexOf(Y);k>=0&&W.K.splice(k,1);W.J.delete(Y.cpn);Y.U1&&W.T.delete(Y.U1)}; Ymd=function(W,Y,k){var P=W.W.get(Y);P?(P.push(k),g.lQ(P,function(T,I){return T.pH-I.pH})):W.W.set(Y,[k])}; g.Pz=function(W,Y,k,P){g.e.call(this);var T=this;this.api=W;this.zJ=Y;this.playback=k;this.app=P;this.Kg=new g.kq;this.K=new Map;this.TJ=new Map;this.gD=null;this.Lg=NaN;this.Q5=this.e1=null;this.bz=new g.C_(function(){jEC(T,T.Lg,T.e1||void 0)}); this.events=new g.p5(this);this.GJ=15E3;this.G=new g.C_(function(){T.L=!0;T.playback.w0(T.GJ);IF2(T);if(T.playback.getVideoData().Xj()){var I;T.P7({togab:(I=T.X)==null?void 0:I.identifier})}T.Od(!1)},this.GJ); this.L=!1;this.C=new Map;this.UP=[];this.X=null;this.KH=new Set;this.N=[];this.V5=[];this.Gn=[];this.J9=[];this.OP=new Set;this.pY=0;this.A5=!1;this.xm=new Set;this.D_=new Set;this.f1=new Set;this.rD=new Set;this.K1=this.yY=0;this.U0=this.A9=!1;this.eW=this.J="";this.wD=null;this.logger=new g.H_("dai");this.zW={SI6:function(){return T.K}, En:function(){return T.W.zW.En()}, UVi:function(){return T.J}, MFz:function(I){T.onCueRangeEnter(T.K.get(I))}, v$r:function(I){T.onCueRangeExit(T.K.get(I))}, mH2:function(I,X){T.K.set(I,X)}, xHS:function(I){T.eW=I}, qh:function(){return T.qh()}, g$h:function(I){return T.W.W.get(I)}, Y$i:function(){return T.wD}, a4:function(){return T.W.zW.a4()}}; this.playback.getPlayerType();this.W=new aId(this.zJ);this.playback.r0(this);this.Fr=this.zJ.OR();g.v(this,this.bz);g.v(this,this.events);g.v(this,this.G);this.zJ.U("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.Bx,this):(this.events.Z(this.api,g.lP("serverstitchedcuerange"),this.onCueRangeEnter),this.events.Z(this.api,g.bP("serverstitchedcuerange"),this.onCueRangeExit));$q(this.app.Ln(),this.playback,!1)}; O0q=function(W,Y,k,P,T,I,X,h){var B=XY7(W,I,I+T);W.L&&W.P7({adaftto:1});k||W.P7({missadcon:1,enter:I,len:T,aid:h});W.T&&!W.T.lk&&(W.T.lk=h);W.U0&&W.P7({adfbk:1,enter:I,len:T,aid:h});var O=W.playback;I>X&&TF(W,{reason:"enterTime_greater_than_return",pH:I,vz:X});var u=O.aI()*1E3;IO&&TF(W,{reason:"parent_return_greater_than_content_duration",vz:X,pwi:O});(O=PvS(W.W,I))&&O.vz>I&&SmS(W,Y.video_id||"", I,X,O);if(B&&O)for(u=0;u=Y)return k}W=g.p(W.K.values());for(k=W.next();!k.done;k=W.next())if(k=k.value,k.start<=Y&&k.end>=Y)return k}; jEC=function(W,Y,k){var P=W.Q5||W.app.D2().getPlayerState();Xq(W,!0);W.playback.seekTo(Y,k);W=W.app.D2();Y=W.getPlayerState();P.isOrWillBePlaying()&&!Y.isOrWillBePlaying()?W.playVideo():P.isPaused()&&!Y.isPaused()&&W.pauseVideo()}; Xq=function(W,Y){W.Lg=NaN;W.e1=null;W.bz.stop();W.gD&&Y&&W.gD.xl();W.Q5=null;W.gD=null}; GqS=function(W){var Y=Y===void 0?-1:Y;var k=k===void 0?Infinity:k;nlX(W,Y,k);for(var P=g.p(W.K.values()),T=P.next();!T.done;T=P.next())T=T.value,T.start>=Y&&T.end<=k&&(W.playback.removeCueRange(T),W.K.delete(T.getId()),W.P7({rmAdCR:1}));P=Iw(W,Y/1E3);Y=P.qS;P=P.cS;Y&&(P=P*1E3-Y.pH,pYd(W,Y,P,Y.pH+P),P=W.K.get(Y.cpn))&&(P.start=Y.pH,P.end=Y.pH+Y.durationMs);if(Y=Iw(W,k/1E3).qS){var I;P="playback_timelinePlaybackId_"+Y.U1+"_video_id_"+((I=Y.videoData)==null?void 0:I.videoId)+"_durationMs_"+Y.durationMs+ "_enterTimeMs_"+Y.pH+"_parentReturnTimeMs_"+Y.vz;W.kJ("Invalid_clearEndTimeMs_"+k+"_that_falls_during_"+P+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; K_5=function(W){W.Kg.clearAll();W.K.clear();W.W.clear();W.C.clear();W.UP=[];W.X=null;W.KH.clear();W.zJ.experiments.Nq("html5_ssdai_log_missing_ad_config_reason")&&W.OP.clear();W.N=[];W.V5=[];W.Gn=[];W.J9=[];W.xm.clear();W.D_.clear();W.f1.clear();W.rD.clear();W.L=!1;W.pY=0;W.A5=!1;W.yY=0;W.K1=0;W.A9=!1;W.U0=!1;W.J="";ozS(W.app.Ln());$q(W.app.Ln(),W.playback,!1);W.TJ.clear();W.G.isActive()&&jX(W)}; pYd=function(W,Y,k,P){Y.durationMs=k;Y.vz=P;(P=W.TJ.get(Y.cpn))?P.Nv(k/1E3):W.P7({nop_d:Y.cpn})}; nlX=function(W,Y,k){kqS(W.W,function(P){return P.pH>=Y&&P.vz<=k})}; sEd=function(W,Y,k,P,T,I){if(!W.U0)if(g.Elq(W,k))W.P7({gdu:"undec",seg:k,itag:T});else if(Y=JY1(W,Y,k,P,I),!(W.playback.getVideoData().Xj()&&(Y==null?0:Y.Yr)))return Y}; JY1=function(W,Y,k,P,T){var I=W.C.get(k);if(!I){if(I=rYv(W,Y))return I;Y=W.LK(k-1,P!=null?P:2);if(T)return W.P7({misscue:T,sq:k,type:P,prevsstate:Y==null?void 0:Y.MY,prevrecord:W.C.has(k-1)}),W.C.get(k-1);if((Y==null?void 0:Y.MY)===2)return W.P7({adnf:1,sq:k,type:P,prevrecord:W.C.has(k-1)}),W.C.get(k-1)}return I}; rYv=function(W,Y){Y+=W.RA();var k;if(W.playback.getVideoData().Xj()){a:{var P=Y*1E3;W=g.p(W.W.K);for(k=W.next();!k.done;k=W.next()){k=k.value;var T=k.W$?k.W$*1E3:k.pH;if(P>=k.pH-1E3&&P<=T+k.durationMs+1E3){P=k;break a}}P=void 0}k={qS:P,cS:Y}}else k=Iw(W,Y),((P=k)==null?0:P.qS)||(k=Iw(W,Y,1));var I;return(I=k)==null?void 0:I.qS}; AYF=function(W,Y){Y=Y===void 0?"":Y;var k=Dz(Y)||void 0;if(!Y||!k){var P;W.P7({adcfg:(P=Y)==null?void 0:P.length,dcfg:k==null?void 0:k.length})}return k}; znC=function(W){for(var Y=g.p(W.K.values()),k=Y.next();!k.done;k=Y.next())W.playback.removeCueRange(k.value);W.K.clear();W.Kg.clearAll()}; dhd=function(W,Y,k,P,T,I,X){if(Y&&k){W.eW=k.cpn;W.zJ.U("html5_use_new_ssdai_transition_detector")&&X||W.FO(k.cpn,k.startTimeSecs||T);Z02(W,k);var h=ufS(W,"a2a",k);W.P7(h);W.yY++;W.playback.Qm(Y,k,P||0,T||0,!!I,!!X)}else W.P7({misspbkonadtrans:1,enter:(k==null?void 0:k.cpn)||"",exit:(Y==null?void 0:Y.cpn)||"",seek:I,skip:X})}; SX=function(W,Y,k){if(k===void 0||!k){k=g.p(W.UP);for(var P=k.next();!P.done;P=k.next()){P=P.value;if(Y>=P.start&&Y<=P.end)return;if(Y===P.end+1){P.end+=1;return}}W.UP.push(new NCC(Y))}}; g.Elq=function(W,Y){W=g.p(W.UP);for(var k=W.next();!k.done;k=W.next())if(k=k.value,Y>=k.start&&Y<=k.end)return!0;return!1}; mh2=function(W,Y,k){var P;if(P=W.playback.getVideoData().Xj())P=(P=W.W.s1({cpn:Y}))&&P.J7?(W=W.W.W.get(P==null?void 0:P.J7))&&W.slice(-1)[0].cpn===Y:!1;return P&&k===2?1E3:0}; SmS=function(W,Y,k,P,T){var I;Y={reason:"overlapping_playbacks",Kaa:Y,pH:k,vz:P,ydJ:T.U1,KfS:((I=T.videoData)==null?void 0:I.videoId)||"",z$h:T.durationMs,Wfh:T.pH,Ad1:T.vz};TF(W,Y)}; TF=function(W,Y,k){W.playback.Js(Y,k)}; DhF=function(W,Y){var k=[];W=W.W.W.get(Y);if(!W)return[];W=g.p(W);for(Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.cpn&&k.push(Y.cpn);return k}; gl7=function(W,Y,k){var P=0;W=W.W.W.get(k);if(!W)return-1;W=g.p(W);for(k=W.next();!k.done;k=W.next()){if(k.value.cpn===Y)return P;P++}return-1}; F_z=function(W,Y){var k=0;W=W.W.W.get(Y);if(!W)return 0;W=g.p(W);for(Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.durationMs!==0&&Y.vz!==Y.pH&&k++;return k}; wYd=function(W,Y,k){var P=!1;if(k=W.W.W.get(k)){k=g.p(k);for(var T=k.next();!T.done;T=k.next())T=T.value,T.durationMs!==0&&T.vz!==T.pH&&(T=T.cpn,Y===T&&(P=!0),P&&!W.D_.has(T)&&(W.P7({decoratedAd:T}),W.D_.add(T)))}}; IF2=function(W){W.Fr&&W.P7({adf:"0_"+((new Date).getTime()/1E3-W.K1)+"_isTimeout_"+W.L})}; XY7=function(W,Y,k){if(W.N.length)for(var P=g.p(W.N),T=P.next(),I={};!T.done;I={nK:void 0},T=P.next()){I.nK=T.value;T=I.nK.startSecs*1E3;var X=I.nK.sV*1E3+T;if(Y>T&&YT&&k0?W:0}else W.qh().videoData.UV=W.playback.getCurrentTime()}; yYX=function(W){W.rD.add(W.J);W.J="";W.A5=!1}; L_6=function(W,Y,k,P){g.e.call(this);var T=this;this.api=W;this.zJ=Y;this.W=k;this.app=P;this.C=new Map;this.K=[];this.J=this.G=null;this.A5=NaN;this.X=this.T=this.N=null;this.L=new g.C_(function(){CvF(T,T.A5,T.N||void 0)}); this.Kg=[];this.wD=new g.C_(function(){var I=T.Kg.pop();if(I){var X=I.U1,h=I.playerVars;I=I.playerType;h&&(h.prefer_gapless=!0,T.api.preloadVideoByPlayerVars(h,I,NaN,"",X),T.Kg.length&&g.L_(T.wD,4500))}}); this.events=new g.p5(this);this.zW={Ffi:function(){return T.K}}; this.W.getPlayerType();g.v(this,this.L);g.v(this,this.wD);g.v(this,this.events);this.events.Z(this.api,g.lP("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.OA)}; cY6=function(W,Y,k,P,T,I){var X=Y.cpn,h=Y.docid||Y.video_id||Y.videoId||Y.id,B=W.W;I=I===void 0?T+P:I;if(T>I)return O0(W,"enterAfterReturn enterTimeMs="+T+" is greater than parentReturnTimeMs="+I.toFixed(3),X,h),"";var O=B.aI()*1E3;if(TO)return B="returnAfterDuration parentReturnTimeMs="+I.toFixed(3)+" is greater than parentDurationMs="+O+". And timestampOffset in seconds is "+ B.m2(),O0(W,B,X,h),"";O=null;for(var u=g.p(W.K),Z=u.next();!Z.done;Z=u.next()){Z=Z.value;if(T>=Z.pH&&TZ.pH)return O0(W,"overlappingReturn",X,h),"";if(I===Z.pH)return O0(W,"outOfOrder",X,h),"";T===Z.vz&&(O=Z)}X="cs_childplayback_"+Uh0++;h={BK:u1(P,!0),L7:Infinity,target:null};var M={U1:X,playerVars:Y,playerType:k,durationMs:P,pH:T,vz:I,Ag:h};W.K=W.K.concat(M).sort(function(G,J){return G.pH-J.pH}); O?lF0(W,O,{BK:u1(O.durationMs,!0),L7:O.Ag.L7,target:M}):(Y={BK:u1(T,!1),L7:T,target:M},W.C.set(Y.BK,Y),B.addCueRange(Y.BK));Y=!0;if(W.W===W.app.D2()&&(B=B.getCurrentTime()*1E3,B>=M.pH&&BY)break;if(I>Y)return{qS:P,cS:Y-T};k=I-P.vz/1E3}return{qS:null,cS:Y-k}}; CvF=function(W,Y,k){k=k===void 0?{}:k;var P=W.X||W.app.D2().getPlayerState();MT(W,!0);Y=isFinite(Y)?Y:W.W.Hl();var T=NhX(W,Y);Y=T.cS;var I=(T=T.qS)&&!ZU(W,T)||!T&&W.W!==W.app.D2(),X=Y*1E3;X=W.J&&W.J.start<=X&&X<=W.J.end;!I&&X||i1(W);T?b0F(W,T,Y,k,P):aF1(W,Y,k,P,"_execute")}; aF1=function(W,Y,k,P,T){var I=W.W;I!==W.app.D2()&&W.app.nY();W.zJ.U("html5_sabr_csdai_seek_log")||(T="");var X;I.seekTo(Y,Object.assign({},{Fi:"application_timelinemanager"+((X=T)!=null?X:"")},k));WIS(W,P)}; b0F=function(W,Y,k,P,T){var I=ZU(W,Y);if(!I){Y.playerVars.prefer_gapless=!0;var X=new g.t6(W.zJ,Y.playerVars);X.U1=Y.U1;W.api.b2(X,Y.playerType)}X=W.app.D2();I||X.addCueRange(Y.Ag.BK);X.seekTo(k,Object.assign({},{Fi:"application_timelinemanager"},P));WIS(W,T)}; WIS=function(W,Y){W=W.app.D2();var k=W.getPlayerState();Y.isOrWillBePlaying()&&!k.isOrWillBePlaying()?W.playVideo():Y.isPaused()&&!k.isPaused()&&W.pauseVideo()}; MT=function(W,Y){W.A5=NaN;W.N=null;W.L.stop();W.T&&Y&&W.T.xl();W.X=null;W.T=null}; ZU=function(W,Y){W=W.app.D2();return!!W&&W.getVideoData().U1===Y.U1}; YR2=function(W){var Y=W.K.find(function(T){return ZU(W,T)}); if(Y){var k=W.app.D2();i1(W);var P=new g.zc(8);Y=Vg6(W,Y)/1E3;aF1(W,Y,{},P,"_force");k.y5("forceParentTransition",{childPlayback:1});W.W.y5("forceParentTransition",{parentPlayback:1})}}; kEq=function(W,Y,k){Y=Y===void 0?-1:Y;k=k===void 0?Infinity:k;for(var P=Y,T=k,I=g.p(W.C),X=I.next();!X.done;X=I.next()){var h=g.p(X.value);X=h.next().value;h=h.next().value;h.L7>=P&&h.target&&h.target.vz<=T&&(W.W.removeCueRange(X),W.C.delete(X))}P=Y;T=k;I=[];X=g.p(W.K);for(h=X.next();!h.done;h=X.next())if(h=h.value,h.pH>=P&&h.vz<=T){var B=W;B.G===h&&i1(B);ZU(B,h)&&B.app.nY()}else I.push(h);W.K=I;P=NhX(W,Y/1E3);Y=P.qS;P=P.cS;Y&&(P*=1E3,$z5(W,Y,P,Y.vz===Y.pH+Y.durationMs?Y.pH+P:Y.vz));(Y=NhX(W,k/1E3).qS)&& O0(W,"Invalid clearEndTimeMs="+k+" that falls during playback={timelinePlaybackId="+(Y.U1+" video_id="+Y.playerVars.video_id+" durationMs="+Y.durationMs+" enterTimeMs="+Y.pH+" parentReturnTimeMs="+Y.vz+"}.Child playbacks can only have duration updated not their start."))}; $z5=function(W,Y,k,P){Y.durationMs=k;Y.vz=P;P={BK:u1(k,!0),L7:k,target:null};lF0(W,Y,P);ZU(W,Y)&&W.app.D2().getCurrentTime()*1E3>k&&(Y=Vg6(W,Y)/1E3,k=W.app.D2().getPlayerState(),aF1(W,Y,{},k,"_update"))}; O0=function(W,Y,k,P){W.W.y5("timelineerror",{e:Y,cpn:k?k:void 0,videoId:P?P:void 0})}; T1d=function(W){W&&W!=="web"&&PM0.includes(W)}; tT=function(){g.e.call(this);this.W=new Nf(5,null);g.v(this,this.W);this.K=new Nf(15,null);g.v(this,this.K)}; K76=function(W,Y){return Y?!!W.W.get(Y):!1}; jZ0=function(W,Y){W.dataset.version=Y}; SRC=function(W){g.l.call(this,{S:"div",Ya:["html5-video-player"],D:{tabindex:W.V().disableOrganicUi?"":"-1",id:W.webPlayerContextConfig.rootElementId},B:[{S:"div",j:g.nm.VIDEO_CONTAINER,D:{"data-layer":"0"}}]});var Y=this;this.app=W;this.M0=this.J5(g.nm.VIDEO_CONTAINER);this.Th=new g.eh(0,0,0,0);this.L1=null;this.zP=new g.eh(0,0,0,0);this.Eg=this.us=this.C$=NaN;this.Wq=this.eH=this.QI=this.Bf=!1;this.TA=NaN;this.Vl=!1;this.ZI=null;this.gQ=new g.C_(function(){return void Y.resize()},100); this.R1=function(){Y.element.focus({preventScroll:!0})}; this.IQ=function(){Y.app.Ii.publish("playerUnderlayVisibilityChange","visible");Y.L1.classList.remove(g.nm.VIDEO_CONTAINER_TRANSITIONING);Y.L1.removeEventListener(DZ,Y.IQ);Y.L1.removeEventListener("transitioncancel",Y.IQ)}; this.i9=this.K8=!1;var k=this.element.addEventListener,P=this.element.removeEventListener;this.addEventListener=function(I,X,h){k.apply(Y.element,[I,X,h])}; this.removeEventListener=function(I,X,h){P.apply(Y.element,[I,X,h])}; var T=W.V();T.transparentBackground&&this.dk("ytp-transparent");T.controlsType==="0"&&this.dk("ytp-hide-controls");g.a2(this.element,"ytp-exp-bottom-control-flexbox");g.a2(this.element,"ytp-modern-caption");T.U("enable_new_paid_product_placement")&&!g.E9(T)&&g.a2(this.element,"ytp-exp-ppp-update");g.a2(this.element,"ytp-livebadge-color");if(T.U("delhi_modern_web_player"))switch(g.a2(this.element,"ytp-delhi-modern"),T.U("delhi_modern_web_player_icons")&&g.a2(this.element,"ytp-delhi-modern-icons"), T.U("delhi_modern_web_player_horizontal_volume_controls")&&g.a2(this.element,"ytp-delhi-horizontal-volume-controls"),nA(T.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.a2(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.a2(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.a2(this.element,"ytp-delhi-modern-with-exclusion")}jZ0(this.element,IL6(W));this.FW=!1;this.Sb=new g.UF(NaN,NaN);XcS(this);this.Z(W.Ii,"onMutedAutoplayChange", this.onMutedAutoplayChange);g.v(this,this.gQ)}; XcS=function(W){function Y(X){W.L1&&qT(W);Rw(W)!==W.Vl&&W.resize();W.app.V().U("web_enable_smart_zoom")&&W.HL&&(X.state.isPaused()?W.HL.pause():g.Sa(X,8)&&W.HL.playState==="paused"&&W.HL.play())} function k(X,h){W.qB(X,h)} function P(X){X.getVideoData()&&W.updateVideoData(X.getVideoData())} function T(){W.zP=new g.eh(0,0,0,0);W.Th=new g.eh(0,0,0,0)} var I=W.app.Ii;I.addEventListener("initializingmode",T);I.addEventListener("videoplayerreset",P);I.addEventListener("videodatachange",k);I.addEventListener("presentingplayerstatechange",Y);W.addOnDisposeCallback(function(){I.removeEventListener("initializingmode",T);I.removeEventListener("videoplayerreset",P);I.removeEventListener("videodatachange",k);I.removeEventListener("presentingplayerstatechange",Y)})}; B15=function(W){var Y=W.app.D2();if(Y=Y?Y.getVideoData():null){if(g.WV(Y)||g.Y9(Y)||g.$9(Y))return 16/9;if(s4(Y)&&Y.J.W)return W=Y.J.videoInfos[0].video,hc1(W.width,W.height)}return(W=W.L1)?hc1(W.videoWidth,W.videoHeight):16/9}; Owv=function(W,Y,k,P){var T=k,I=hc1(Y.width,Y.height);W.Bf?T=kI?{width:Y.width,height:Y.width/T,aspectRatio:T}:TT?W.width=W.height*k:kB;if(Rw(W)){var O=B15(W);var u=isNaN(O)||g.e5||Ro&&g.hj||B;yW&&!g.yg(601)?O=T.aspectRatio:u=u||I.controlsType==="3";u?B?(u=I.U("place_shrunken_video_on_left_of_player")?16:W.getPlayerSize().width-Y.width-16,O=Math.max((W.getPlayerSize().height-Y.height)/2,0),u=new g.eh(u,O,Y.width, Y.height),W.L1.style.setProperty("border-radius","12px")):u=new g.eh(0,0,Y.width,Y.height):(k=T.aspectRatio/O,u=new g.eh((Y.width-T.width/k)/2,(Y.height-T.height)/2,T.width/k,T.height),k===1&&g.hj&&(O=u.width-Y.height*O,O>0&&(u.width+=O,u.height+=O)));g.kN(W.element,"ytp-fit-cover-video",Math.max(u.width-T.width,u.height-T.height)<1);if(h||W.FW)W.L1.style.display="";W.Vl=!0}else{u=-Y.height;yW?u*=window.devicePixelRatio:g.JK&&(u-=window.screen.height);u=new g.eh(0,u,Y.width,Y.height);if(h||W.FW)W.L1.style.display= "none";W.Vl=!1}o_(W.zP,u)||(W.zP=u,g.XF(I)?(W.L1.style.setProperty("width",u.width+"px","important"),W.L1.style.setProperty("height",u.height+"px","important")):g.a_(W.L1,u.getSize()),P=new g.Cc(u.left,u.top),g.xs(W.L1,Math.round(P.x),Math.round(P.y)),P=!0);Y=new g.eh((Y.width-T.width)/2,(Y.height-T.height)/2,T.width,T.height);o_(W.Th,Y)||(W.Th=Y,P=!0);g.CX(W.L1,"transform",k===1?"":"scaleX("+k+")");X&&B!==W.eH&&(B&&(W.L1.addEventListener(DZ,W.IQ),W.L1.addEventListener("transitioncancel",W.IQ),W.L1.classList.add(g.nm.VIDEO_CONTAINER_TRANSITIONING)), W.eH=B,W.app.Ii.publish("playerUnderlayVisibilityChange",W.eH?"transitioning":"hidden"));return P}; iwV=function(W){W.K8=!W.K8;W.i9=!0;W.element.classList.toggle("ytp-retro-player",W.K8);W.resize();W.i9=!1;W.app.Ii.Ri("onRetroModeChanged",W.K8)}; MTF=function(){this.csn=g.iD();this.clientPlaybackNonce=null;this.elements=new Set;this.J=new Set;this.W=new Set;this.K=new Set}; tT2=function(W){if(W.csn!==g.iD())if(W.csn==="UNDEFINED_CSN")W.csn=g.iD();else{var Y=g.iD(),k=g.Ze();if(Y&&k){W.csn=Y;for(var P=g.p(W.elements),T=P.next();!T.done;T=P.next())(T=T.value.visualElement)&&T.isClientVe()&&Y&&k&&(g.Oi("combine_ve_grafts")?TC(kt(),T,k):g.LI(g.wj)(void 0,Y,k,T))}if(Y)for(W=g.p(W.W),k=W.next();!k.done;k=W.next())(k=k.value.visualElement)&&k.isClientVe()&&g.U5(Y,k)}}; g.Hz=function(W,Y,k,P){g.e.call(this);var T=this;this.logger=new g.H_("App");this.Es=this.XK=!1;this.yW={};this.Xa=[];this.ij=!1;this.XN=null;this.intentionalPlayback=!1;this.EG=!0;this.dh=!1;this.OS=this.XH=this.c8=null;this.R2=!0;this.mediaElement=this.u8=null;this.Ol=NaN;this.Y9=!1;this.DS=this.W1=this.cz=this.screenLayer=this.playlist=null;this.tG=[];this.K$=0;this.zW={Ln:function(){return T.ud}, gBD:function(){return T.cz}}; this.logger.debug("constructor begin");if(!k)throw Error("b/179532961");this.wv=(Y==null?void 0:Y.args)||{};this.webPlayerContextConfig=k;P9z();Y=this.wv;this.zJ=new i6(Y,k,k.canaryState,P,this);g.v(this,this.zJ);if(this.U("html5_player_intkey")){var I=this.Qn(),X=this.Dp();P=I==null?void 0:I.W.Ik(qRv);I=I==null?void 0:I.W.Ik(Rcq);var h=X==null?void 0:X.W.Ik(Hw1);X=X==null?void 0:X.W.Ik(nC2);this.TP("intkey",{input:k.serializedClientExperimentFlags,ub:""+P,ui:""+I,cb:""+h,ci:""+X})}lI1(this.zJ);k= csv(this.zJ);this.zJ.OR()&&this.TP("h5vcc",k);this.zJ.experiments.Nq("jspb_serialize_with_worker")&&oK6();this.zJ.experiments.Nq("gzip_gel_with_worker")&&zZ0();this.zJ.K&&!pcv&&(window.addEventListener(Vh?"touchstart":"click",px6,{capture:!0,passive:!0}),pcv=!0);this.U("html5_onesie")&&(this.Dx=new M0(this.zJ),g.v(this,this.Dx));this.qJ=xG(k3(this.zJ)&&!0,Y.enablesizebutton);this.Ql=xG(!1,Y.player_wide);this.visibility=new eIC;g.v(this,this.visibility);this.U("web_log_theater_mode_visibility")&&this.D8(xG(!1, Y.player_wide));this.XK=xG(!1,Y.external_list);this.events=new g.p5(this);g.v(this,this.events);this.U("start_client_gcf")&&(HA(Ka(),{R0:Y4,jE:WHV()}),this.cY=Ka().resolve(Y4),kx7(this.cY));this.tWP=new dW;g.v(this,this.tWP);this.mf=new MTF;k=new mO;this.Ii=new g.Ub(this,k);g.v(this,this.Ii);this.template=new SRC(this);g.v(this,this.template);this.appState=1;this.VH=GE5(this);g.v(this,k);k={};this.xE=(k.internalvideodatachange=this.mw,k.playbackready=this.Lhg,k.playbackstarted=this.hS2,k.statechange= this.M1J,k);this.E5=new HK(this.Ii);this.eL=KIX(this);k=this.zJ.X;!1!==k&&this.TP("badps",{hbp:k,hostname:window.location.hostname,ps:this.zJ.playerStyle});this.C1=new $pF(this.zJ,this.eL);this.Ii.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||n_0(this.eL))&&ECF(this);k=10;g.Zw(this.zJ)&&(k=3);GB(this.zJ)&&(k=g.W2(this.zJ.experiments,"tvhtml5_unplugged_preload_cache_size"));this.ud=new g.Wz(this.Ii,k);k=JFd(this);this.ud.kU(k);sZF(this);k={};this.HR=(k.airplayactivechange=this.vqg, k.airplayavailabilitychange=this.iH5,k.beginseeking=this.JTz,k.sabrCaptionsDataLoaded=this.Xah,k.endseeking=this.TZ5,k.internalAbandon=this.S1S,k.internalaudioformatchange=this.Pd6,k.internalvideodatachange=this.IY5,k.internalvideoformatchange=this.jI5,k.liveviewshift=this.Cd5,k.playbackstalledatstart=this.m6P,k.progresssync=this.sIS,k.onAbnormalityDetected=this.Ko1,k.onSnackbarMessage=this.GWJ,k.onLoadProgress=this.gq6,k.SEEK_COMPLETE=this.Foz,k.SEEK_TO=this.HHJ,k.onVideoProgress=this.ZHJ,k.onLoadedMetadata= this.ui5,k.onAutoplayBlocked=this.wah,k.onPlaybackPauseAtStart=this.U6i,k.playbackready=this.nqS,k.statechange=this.r6,k.newelementrequired=this.Vp,k.heartbeatparams=this.oq2,k.videoelementevent=this.x6P,k.drmoutputrestricted=this.paS,k.signatureexpired=this.q11,k.nonfatalerror=this.Y11,k.reloadplayer=this.OHP,k);this.l2=new g.p5(this);g.v(this,this.l2);this.eT=new tT;g.v(this,this.eT);this.lI=this.wN=-1;this.XX=new g.C_(this.template.resize,16,this.template);g.v(this,this.XX);this.Ha=new L_6(this.Ii, this.zJ,this.zn(),this);this.gs=new bO(this);g.v(this,this.gs);this.Hh=new Cq(this);g.v(this,this.Hh);T1d(this.zJ.W.c);this.events.Z(this.Ii,g.lP("appapi"),this.l25);this.events.Z(this.Ii,g.bP("appapi"),this.eS5);this.events.Z(this.Ii,g.lP("appprogressboundary"),this.rT5);this.events.Z(this.Ii,g.bP("applooprange"),this.IF);this.events.Z(this.Ii,"presentingplayerstatechange",this.OA);this.events.Z(this.Ii,"resize",this.Wy5);this.template.S1(ks(document,W));this.events.Z(this.Ii,"offlineslatestatechange", this.hmh);this.events.Z(this.Ii,"sabrCaptionsTrackChanged",this.ohJ);this.events.Z(this.Ii,"sabrCaptionsBufferedRangesUpdated",this.T55);this.eL.Y.V().Cn&&Dy(this.eL,"offline");this.zJ.rD&&g.EX("ux",g.oK);W=g.W2(this.zJ.experiments,"html5_defer_fetch_att_ms");this.YV=new g.C_(this.qUz,W,this);g.v(this,this.YV);this.Kq().Nt()&&(g.rD()&&this.Kq().N.push("remote"),rFC(this));this.C1.tick("fs");AFd(this);this.zJ.rD&&Dy(this.eL,"ux",!0);g.Y3(this.eL.Y.V())&&Dy(this.eL,"embed");this.U("web_player_sentinel_is_uniplayer")|| g.Kx(new g.Qq("Player experiment flags missing","web_player_sentinel_is_uniplayer"));W=this.U("web_player_sentinel_yt_experiments_sync");k=g.Oi("web_player_sentinel_yt_experiments_sync");W!==k&&g.Kx(new g.Qq("b/195699950",{yt:W,player:k}));this.Fn=zcS(this);if(W=g.W2(this.zJ.experiments,"html5_block_pip_safari_delay"))this.vT=new g.C_(this.fb,W,this),g.v(this,this.vT);Ei=this.zJ.f1;this.Ii.publish("applicationInitialized");this.logger.debug("constructor end")}; zcS=function(W){function Y(k){k.stack&&k.stack.indexOf("player")!==-1&&W.D2().Yb(k)} E5.subscribe("handleError",Y);vD.push(Y);return function(){E5.unsubscribe("handleError",Y);var k=vD.indexOf(Y);k!==-1&&vD.splice(k,1)}}; JFd=function(W){var Y=new g.t6(W.zJ,W.wv);W.Ii.publish("initialvideodatacreated",Y);return nf(W,1,Y,!1)}; sZF=function(W){var Y=W.zn();Y.setPlaybackRate(W.zJ.T?1:dzq(W,Number(g.Es("yt-player-playback-rate"))||1));Y.cH(W.xE,W);Y.QN()}; KIX=function(W){var Y="",k=IL6(W);k.indexOf("//")===0&&(k=W.zJ.protocol+":"+k);var P=k.lastIndexOf("/base.js");P!==-1&&(Y=k.substring(0,P+1));if(k=Error().stack)if(k=k.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))k=k[1],k.includes(Y)||g.Kx(Error("Player module URL mismatch: "+(k+" vs "+Y+".")));Y=new qwC(W.Ii,Y);k={};Rm0(Y,(k.destroyed=function(){W.onApiChange()},k)); return Y}; GE5=function(W){if(W.zJ.storeUserVolume){W=g.Es("yt-player-volume")||{};var Y=W.volume;W={volume:isNaN(Y)?100:g.ee(Math.floor(Y),0,100),muted:!!W.muted}}else W={volume:100,muted:W.zJ.mute};return W}; pf=function(W){W.mediaElement=W.zJ.deviceIsAudioOnly?new g.VA(g.um("AUDIO")):vN.pop()||new g.VA(g.um("VIDEO"));g.v(W,W.mediaElement);W.D2().setMediaElement(W.mediaElement);try{W.zJ.xq?(W.W1&&W.events.nH(W.W1),W.W1=W.events.Z(W.mediaElement,"volumechange",W.b1J)):(W.mediaElement.Ic(W.VH.muted),W.mediaElement.setVolume(W.VH.volume/100))}catch(T){W.A$("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(T&&typeof T==="object"&&"message"in T&&typeof T.message==="string"&&T.message.replace(/[;:,]/g, "_")));return}g.ne(W.l2);mz1(W);var Y=W.template,k=W.mediaElement.Tn();Y.L1=k;Y.Wq=!1;Y.L1.parentNode||tv(Y.M0,Y.L1,0);Y.zP=new g.eh(0,0,0,0);Zw1(Y);qT(Y);k=Y.L1;g.a2(k,"video-stream");g.a2(k,g.nm.MAIN_VIDEO);var P=Y.app.V();P.Er&&k.setAttribute("data-no-fullscreen","true");P.U("html5_local_playsinline")?"playsInline"in Mn()&&(k.playsInline=!0):P.Ao&&(k.setAttribute("webkit-playsinline",""),k.setAttribute("playsinline",""));P.Ey&&Y.L1&&Y.Z(k,"click",k.play,k);try{W.mediaElement.activate()}catch(T){W.A$("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(T&&typeof T==="object"&&"message"in T&&typeof T.message==="string"&&T.message.replace(/[;:,]/g,"_")))}}; gCq=function(W){if(!DzX(W)){var Y=W.zn().bd();Y&&(Y=Y.TG(),Y instanceof Promise&&Y.catch(function(){})); GF(W,y8(W.getPlayerStateObject()))}}; mz1=function(W){var Y=W.mediaElement;HT()?W.l2.Z(Y,"webkitpresentationmodechanged",W.C7S):window.document.pictureInPictureEnabled&&(W.l2.Z(Y,"enterpictureinpicture",function(){W.FT(!0)}),W.l2.Z(Y,"leavepictureinpicture",function(){W.FT(!1)})); vy&&(W.l2.Z(Y,"webkitbeginfullscreen",function(){W.aS(3)}),W.l2.Z(Y,"webkitendfullscreen",function(){W.aS(0)}))}; FIX=function(W,Y){var k=Y.getPlayerType(),P=W.ud.J[k]||null;Y!==W.zn()&&Y!==P&&(P==null||P.dispose(),W.ud.J[k]=Y)}; wcd=function(W,Y){Y=Y===void 0?!0:Y;W.logger.debug("start clear presenting player");var k;if(k=W.DS){k=W.DS;var P=W.mediaElement;k=!!P&&P===k.mediaElement}k&&(W.Fb(),pf(W));k=W.D2();k.Fb(!Y);k.VQ(W.HR,W);k.getPlayerType()!==1&&k.dispose();Y=W.ud;Y.K=Y.W;Yq(Y);W.logger.debug("finish clear presenting player")}; g.QZ7=function(W,Y,k,P){var T=W.C1;Y===2&&(T=new $pF(W.zJ));return new g.IW(W.zJ,Y,T,W.template,function(I,X,h){W.Ii.publish(I,X,h)},function(){return W.Ii.getVisibilityState()},W.visibility,W,k,P)}; nf=function(W,Y,k,P,T){W=g.QZ7(W,Y,k,T);W=new g.jk(W);P&&W.QN();return W}; Kf=function(W,Y){return W.Tj(Y)?W.zn():Y}; E0=function(W,Y){var k=W.D2();return Y===W.zn()&&W.Tj(Y)&&W.Tj(k)?k:Y}; oC5=function(W){W.logger.debug("start application playback");if(W.zn().getPlayerState().isError())W.logger.debug("start application playback done, player in error state");else{var Y=JT(W);W.Kq().isLoaded();Y&&W.IC(6);yFd(W);zmv(W.eL)||ec0(W)}}; ec0=function(W){if(!JT(W)){var Y=FS(W.eL);Y&&!Y.created&&Hgd(W.eL)&&(W.logger.debug("reload ad module"),Y.create())}}; yFd=function(W){W.logger.debug("start presenter playback");var Y=W.getVideoData(),k=W.eL;zmv(k)||k.uI();!d3&&k.Y.U("html5_allow_asmjs")&&wmv(k);Dy(k,"embed");Dy(k,"kids");Dy(k,"remote");Dy(k,"miniplayer");Dy(k,"offline");Dy(k,"unplugged");Dy(k,"ypc",!1,!0);k.Y.U("html5_ypc_clickwrap_module_refactor")||Dy(k,"ypc_clickwrap",!1,!0);Dy(k,"yto",!1,!0);Dy(k,"webgl",!1,!0);dp0(k)||(Dy(k,"captions",!0),Dy(k,"endscreen"),k.xv(),Dy(k,"creatorendscreen",!0));k.vn();k.Y.publish("modulesCreated");W.Ii.publish("videoready", Y)}; s0=function(W){W=W.Kq();W.Nt();return SW(W)}; AFd=function(W){W.logger.debug("start prepare initial playback");W.Ij();var Y=W.wv;pf(W);W.events.Z(window,"resize",W.AYz);var k=W.Kq();W.Ii.x8("onVolumeChange",W.VH);if(Y&&jM7(Y)){var P=RT(W.zJ);P&&!W.XK&&(Y.fetch=0);var T=g.Y3(W.zJ);T&&!W.XK&&(Y.fetch=0);rd(W,Y);g.Y3(W.zJ)&&W.C1.tick("ep_pr_s");if(!P||W.XK)if(T&&!W.XK)vCV(W);else if(!k.Nt())W.playlist.onReady(function(){AT(W)})}W.gk(W.zn(),!1,!0); g.b(W.zn().getPlayerState(),128)||(Y=AuV(!W.zJ.deviceIsAudioOnly),Y==="fmt.noneavailable"?W.A$("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Y==="html5.missingapi"?W.A$(Y,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):k&&k.Nt()&&s0(W)&&(W.zJ.nu||W.zJ.i_)?zF(W):k.o8?W.Ii.mutedAutoplay({durationMode:k.mutedAutoplayDurationMode}):g.Es("yt-player-playback-on-reload")?(g.W8("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!W.zJ.wD}),g.Ke("yt-player-playback-on-reload",!1), zF(W)):rV(W.zJ)||CMF(W),g.ph(W.zJ)||tn(W.zJ)==="MWEB"?(g.Ce(g.Us(),function(){dd(W)}),g.Ce(g.Us(),function(){r8C()})):(dd(W),r8C()),W.logger.debug("finish prepare initial playback"))}; dd=function(W){if(!W.U("use_rta_for_player"))if(W.U("fetch_att_independently"))g.L_(W.YV);else{var Y=W.getVideoData().botguardData;Y&&g.uW(Y,W.zJ,W.getVideoData().Ps||"")}}; CMF=function(W){W.logger.debug("start initialize to CUED mode");W.Ii.publish("initializingmode");W.IC(2);Dy(W.eL,"remote");Dy(W.eL,"miniplayer");W.logger.debug("initialized to CUED mode")}; zF=function(W){W.logger.debug("start initialize application playback");var Y=W.zn();if(g.b(Y.getPlayerState(),128))return!1;Y=Y.getVideoData();s0(W)&&W.zJ.i_&&(vN.length&&W.Es?(mB(W,{muted:!1,volume:W.VH.volume},!1),DU(W,!1)):vN.length||W.VH.muted||(mB(W,{muted:!0,volume:W.VH.volume},!1),DU(W,!0)));s0(W)&&g.Y3(W.zJ)&&Y.mutedAutoplay&&(mB(W,{muted:!0,volume:W.VH.volume},!1),DU(W,!0));Y.Vf&&mB(W,{muted:!0,volume:W.VH.volume},!1);LId(W,1,Y,!1);var k=W.zn();W.Ii.publish("initializingmode");W.gk(k);W.IC(3); var P;if(!(P=!W.zJ.il)){if(P=W.DS){P=W.DS;var T=W.mediaElement;P=!!T&&T===P.mediaElement}P=P&&W.ij}P&&(W.Fb(),pf(W),k.setMediaElement(W.mediaElement));k.rY();if(g.b(k.getPlayerState(),128))return!1;Y.Ka||GF(W,3);return W.ij=!0}; JT=function(W){W=cV(W.eL);return!!W&&W.loaded}; UzF=function(W,Y){if(!W.u8)return!1;var k=W.u8.startTimeMs*.001-1,P=W.u8.endTimeMs*.001;W.u8.type==="repeatChapter"&&P--;return Math.abs(Y-k)<=1E-6||Math.abs(Y-P)<=1E-6||Y>=k&&Y<=P}; lL7=function(W){var Y=W.D2();rR(Y.getVideoData())&&!Y.BA()&&(Y=gd(W)*1E3-W.getVideoData().zY,W.U("html5_gapless_new_slr")?(W=W.Hh,Fq(W.app,"gaplessshortslooprange"),Y=new g.L6(0,Y,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(W=W.app.D2())&&W.addCueRange(Y)):W.setLoopRange({startTimeMs:0,endTimeMs:Y,type:"shortsLoop"}))}; bwd=function(W){var Y=W.zn();if(!(g.b(Y.getPlayerState(),64)&&W.Kq().isLivePlayback&&W.u8.startTimeMs<5E3)){if(W.u8.type==="repeatChapter"){var k,P=(k=EkC(W.gx()))==null?void 0:k.FK(),T;k=(T=W.getVideoData())==null?void 0:T.i_;P instanceof g.aD&&k&&(T=k[MA(k,W.u8.startTimeMs)],P.renderChapterSeekingAnimation(0,T.title));isNaN(Number(W.u8.loopCount))?W.u8.loopCount=0:W.u8.loopCount++;W.u8.loopCount===1&&W.Ii.Ri("innertubeCommand",W.getVideoData().ZsD)}P={Fi:"application_loopRangeStart"};if(W.u8.type=== "clips"||W.u8.type==="shortsLoop")P.seekSource=58;Y.seekTo(W.u8.startTimeMs*.001,P)}}; dzq=function(W,Y){var k=W.Ii.getAvailablePlaybackRates();Y=Number(Y.toFixed(2));W=k[0];k=k[k.length-1];Y<=W?Y=W:Y>=k?Y=k:(W=Math.floor(Y*100+.001)%5,Y=W===0?Y:Math.floor((Y-W*.01)*100+.001)/100);return Y}; gd=function(W,Y){Y=W.s1({playerType:Y});if(!Y)return W.ud.W.qA();Y=Kf(W,Y);return wd(W,Y.qA(),Y)}; wd=function(W,Y,k){if(W.Tj(k)&&(k=k.getVideoData(),!Q9(W))){W=W.Ha;for(var P=g.p(W.K),T=P.next();!T.done;T=P.next())if(T=T.value,k.U1===T.U1){Y+=T.pH/1E3;break}P=Y;W=g.p(W.K);for(T=W.next();!T.done;T=W.next()){T=T.value;if(k.U1===T.U1)break;var I=T.pH/1E3;if(I1&&(T=!1);W.Y9&&T===Y||(P=P.lock(T?"portrait":"landscape"),P!=null&&P.catch(function(){}),W.Y9=!0)}else W.Y9&&(W.Y9=!1,P.unlock())}; Cf=function(W,Y,k){W.Ii.publish(Y,k);var P=g.Zw(W.zJ)||g.XF(W.zJ)||g.dq(W.zJ);if(k&&P){switch(Y){case "cuerangemarkersupdated":var T="onCueRangeMarkersUpdated";break;case "cuerangesadded":T="onCueRangesAdded";break;case "cuerangesremoved":T="onCueRangesRemoved"}T&&W.Ii.Ri(T,k.map(function(I){return{getId:function(){return this.id}, end:I.end,id:I.getId(),namespace:I.namespace==="ad"?"ad":"",start:I.start,style:I.style,visible:I.visible,markerPositionMs:I.markerPositionMs}}))}}; Lf=function(W,Y,k,P,T,I){k=k===void 0?!0:k;var X=W.s1({playerType:T});if(!X||(X.getPlayerType()!==2||W.Tj(X))&&!g.Ns(X.getVideoData())){var h=W.ud.sA;h?h.seekTo(Y,{eh:!k,nz:P,Fi:"application",seekSource:I}):(X&&X===W.zn()&&W.u8&&!UzF(W,Y)&&W.setLoopRange(null),W.seekTo(Y,k,P,T,I,"_request"))}}; S86=function(W,Y,k,P){k&&(W.Fb(),pf(W));k=W.D2();k.oF(Y);var T=W.getVideoData(),I={};I.video_id=T.videoId;I.adformat=T.adFormat;T.isLivePlayback||(I.start=k.getCurrentTime(),I.resume="1");T.isLivePlayback&&QO(T)&&g.OG(W.zJ)&&(I.live_utc_start=k.hT(),I.resume="1");T.TJ&&(I.vvt=T.TJ);T.X&&(I.vss_credentials_token=T.X,I.vss_credentials_token_type=T.Mv);T.oauthToken&&(I.oauth_token=T.oauthToken);I.autoplay=1;I.reload_count=T.xm+1;I.reload_reason=Y;T.TF&&(I.unplugged_partner_opt_out=T.TF);T.zg&&(I.ypc_is_premiere_trailer= T.zg);T.playerParams&&(I.player_params=T.playerParams);W.loadVideoByPlayerVars(I,void 0,!0,void 0,void 0,P);Y==="signature"&&W.cz&&ec0(W)}; h6F=function(W,Y){W.Kq().autonavState=Y;g.Ke("yt-player-autonavstate",Y);W.Ii.publish("autonavchange",Y)}; B4z=function(W){var Y=W.getVideoData().Aj,k=W.zJ.bz,P=W.isInline()&&!W.getVideoData().zs,T=W.mediaElement;Y||k||P?T.jc():(T.BL(),mB(W,W.VH))}; y9=function(W){var Y=FS(W.gx());Y&&Y.created&&(W.logger.debug("reset ad module"),Y.destroy())}; Q9=function(W){return W.getVideoData().enableServerStitchedDai&&!!W.cz}; Osq=function(W,Y){Y.bounds=W.getBoundingClientRect();for(var k=g.p(["display","opacity","visibility","zIndex"]),P=k.next();!P.done;P=k.next())P=P.value,Y[P]=lm(W,P);Y.hidden=!!W.hidden}; IL6=function(W){var Y=W.webPlayerContextConfig.trustedJsUrl;return Y?MC(Y).toString():W.webPlayerContextConfig.jsUrl}; uaz=function(W,Y){var k=W.s1({playerType:1});if(k){if(k.getVideoData().clientPlaybackNonce===Y)return k;if((W=W.gs.W)&&W.getVideoData().clientPlaybackNonce===Y)return W}return null}; ECF=function(W){function Y(P){return vW(QMz(W.eL),function(T){return T.xu(P)})} W.C1.tick("wasm_s");var k=Gn2(W.webPlayerContextConfig.wasmModuleUrl,n_0(W.eL)?Y:void 0,W.TP.bind(W));k==null||vW(k,function(P){W.C1.tick(P.W?"wasm_fa":"wasm_fw")},function(){W.C1.tick("wasm_ferr")}); WkC(W.zJ,k)}; Zsv=function(W){return W.name==="TypeError"&&W.stack.includes("/s/player/")&&mf()<=105}; isd=function(W){return W.isTimeout?"NO_BID":"ERR_BID"}; MHd=function(){var W=null;ARS().then(function(Y){return W=Y},function(Y){return W=isd(Y)}); return W}; tH7=function(){var W=gg(1E3,"NO_BID");return g.zR(ChX([ARS(),W]).MA(isd),function(){W.cancel()})}; U0=function(W){return W.UV?g.mr().Ik(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; l1=function(W){this.player=W;this.J=this.W=1}; Hs7=function(W,Y,k,P,T,I){Y.client||(Y.client={});W.player.V().U("h5_remove_url_for_get_ad_break")||(Y.client.originalUrl=k);var X=ah(k),h=g.Xl(k)?!1:!0;(X||h)&&typeof Intl!=="undefined"&&(Y.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Xl(k)?!1:!0;if(X||h||P!==""){var B={};k=bG(Py(P)).split("&");var O=new Map;k.forEach(function(u){u=u.split("=");u.length>1&&O.set(u[0].toString(),decodeURIComponent(u[1].toString()))}); O.has("bid")&&(B.bid=O.get("bid"));B.params=[];q8d.forEach(function(u){O.has(u)&&(u={key:u,value:O.get(u)},B.params.push(u))}); R6F(W,B);Y.adSignalsInfo=B}Y.client.unpluggedAppInfo||(Y.client.unpluggedAppInfo={});Y.client.unpluggedAppInfo.enableFilterMode=!1;k=T.W.cosver;k!=null&&k!=="cosver"&&(Y.client.osVersion=k);k=T.W.cplatform;k!=null&&k!=="cplatform"&&k!==""&&(Y.client.platform=k);k=T.W.cmodel;k!=null&&k!=="cmodel"&&(Y.client.deviceModel=k);k=T.W.cplayer;k!=null&&k!=="cplayer"&&(Y.client.playerType=k);k=T.W.cbrand;k!=null&&k!=="cbrand"&&(Y.client.deviceMake=k);Y.user||(Y.user={});Y.user.lockedSafetyMode=!1;(T.U("embeds_web_enable_iframe_api_send_full_embed_url")|| T.U("embeds_enable_autoplay_and_visibility_signals"))&&g.IT(T)&&T50(Y,I,W.player.getPlayerState(1))}; GrX=function(W,Y){var k=!1;if(Y==="")return k;Y.split(",").forEach(function(P){var T={},I={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},X="ACTIVE";P[0]==="!"&&(P=P.substring(1),X="INACTIVE");P=P.split("-");P.length<3||(P[0]in n22&&(I.clientName=n22[P[0]]),P[1]in pt5&&(I.platform=pt5[P[1]]),I.applicationState=X,I.clientVersion=P.length>2?P[2]:"",T.remoteClient=I,W.remoteContexts?W.remoteContexts.push(T):W.remoteContexts=[T],k=!0)}); return k}; E2z=function(W){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in KtF))return!1;W=W.split(RegExp("[:&]"));var Y=KtF.FLAG_AUTO_CAPTIONS_DEFAULT_ON,k="f"+(1+Math.floor(Y/31)).toString();Y=1<=2?X[1]:"";var h=s65.test(Y),B=rc5.exec(Y);B=B!=null&&B.length>=2?B[1]:"";var O=Acd.exec(Y);O=O!=null&&O.length>=2&&!Number.isNaN(Number(O[1]))?Number(O[1]):1;var u=z62.exec(Y);u=u!=null&&u.length>=2?u[1]:"0";var Z=O9(W.player.V().xf),M=W.player.getVideoData(1),t=g.lo(M.UP,!0),q="BISCOTTI_ID"in k?k.BISCOTTI_ID:"";Hs7(W,t,Y,q.toString(),W.player.V(), M);M={splay:!1,lactMilliseconds:k.LACT.toString(),playerHeightPixels:Math.trunc(k.P_H),playerWidthPixels:Math.trunc(k.P_W),vis:Math.trunc(k.VIS),signatureTimestamp:20319,autonavState:U0(W.player.V())};P&&(P={},GrX(P,k.YT_REMOTE)&&(M.mdxContext=P));if(P=dYS.includes(Z)?void 0:g.rn("PREF")){for(var G=P.split(RegExp("[:&]")),J=0,d=G.length;J1&&A[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}M.autoCaptionsDefaultOn= E2z(P)}Y=mY2.exec(Y);(Y=Y!=null&&Y.length>=2?Y[1]:"")&&B&&(t.user.credentialTransferTokens=[{token:Y,scope:"VIDEO"}]);Y={contentPlaybackContext:M};X={adBlock:Math.trunc(k.AD_BLOCK),params:X,breakIndex:O,breakPositionMs:u,clientPlaybackNonce:k.CPN,topLevelDomain:Z,isProxyAdTagRequest:h,context:t,adSignalsInfoString:bG(Py(q.toString())),overridePlaybackContext:Y};T!==void 0&&(X.cueProcessedMs=Math.round(T).toString());B&&(X.videoId=B);k.LIVE_TARGETING_CONTEXT&&(X.liveTargetingParams=k.LIVE_TARGETING_CONTEXT); k.AD_BREAK_LENGTH&&(X.breakLengthMs=Math.trunc(k.AD_BREAK_LENGTH*1E3).toString());I&&(X.driftFromHeadMs=I.toString());X.currentMediaTimeMs=Math.round(W.player.getCurrentTime(1)*1E3);(W=W.player.getGetAdBreakContext())&&(X.getAdBreakContext=W);return X}; g20=function(){l1.apply(this,arguments)}; Ft7=function(W,Y,k,P,T){var I=k.AR;var X=k.BK;var h=W.player.V().RB,B=0;k.cueProcessedMs&&X&&!I&&(k=X.end-X.start,k>0&&(B=Math.floor(k/1E3)));var O={AD_BLOCK:T,AD_BREAK_LENGTH:I?I.sV:B,AUTONAV_STATE:U0(W.player.V()),CA_TYPE:"image",CPN:W.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:W.player.O3()*1E3,LACT:Ml(),LIVE_INDEX:I?W.J++:1,LIVE_TARGETING_CONTEXT:I&&I.context?I.context:"",MIDROLL_POS:X?Math.round(X.start/1E3):0,MIDROLL_POS_MS:X?Math.round(X.start):0,VIS:W.player.getVisibilityState(), P_H:W.player.ai().o3().height,P_W:W.player.ai().o3().width,YT_REMOTE:h?h.join(","):""},u=kG($G);Object.keys(u).forEach(function(Z){u[Z]!=null&&(O[Z.toUpperCase()]=u[Z].toString())}); P!==""&&(O.BISCOTTI_ID=P);P={};YG(Y)&&(P.sts="20319",(W=W.player.V().forcedExperiments)&&(P.forced_experiments=W));return NC(g.K_(Y,O),P)}; wt1=function(W,Y){var k=W.player.V(),P,T=(P=W.player.getVideoData(1))==null?void 0:P.oauthToken;return g.dV(k,T).then(function(I){if(I&&Wy()){var X=P1();TT(X,I)}return g.mR(W.player.fn(X),Y,"/youtubei/v1/player/ad_break").then(function(h){return h})})}; Q6V=function(W){this.sP=W}; yc5=function(W){this.Y=W}; e66=function(W){this.sP=W}; v2d=function(W){g.e.call(this);this.W=W;this.dl=o20(this)}; o20=function(W){var Y=new AIS(W.W.RI);g.v(W,Y);W=[new Q6V(W.W.sP),new yc5(W.W.Y),new e66(W.W.sP),new q2(W.W.Zd,W.W.Lr),new Hh,new Gf(W.W.AD,W.W.tj,W.W.sP),new RV,new t7];W=g.p(W);for(var k=W.next();!k.done;k=W.next())zfq(Y,k.value);W=g.p(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(k=W.next();!k.done;k=W.next())nW(Y,k.value,function(){}); return Y}; b1=function(W){var Y=W.qq,k=W.P6;W=W.v5;var P=new UVd,T={cU:new saq(Y.get(),k),P6:k};return{H7:new mG(k,W,Y,T),context:T,E6:P}}; cz=function(W,Y,k,P,T){g.e.call(this);this.K=Y;this.Cg=k;this.qq=P;this.Va=T;this.listeners=[];var I=new Rk(this);g.v(this,I);I.Z(W,"internalAbandon",this.f_z);this.addOnDisposeCallback(function(){g.ne(I)})}; xq=function(W){this.Y=W;this.adVideoId=this.W=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.K=this.J=!1;this.adFormat=null;this.T="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; CId=function(W){W.contentCpn=null;W.adCpn=null;W.videoId=null;W.adVideoId=null;W.adFormat=null;W.T="AD_PLACEMENT_KIND_UNKNOWN";W.actionType="unknown_type";W.J=!1;W.K=!1}; Lt2=function(W,Y){W=g.p(Y);for(Y=W.next();!Y.done;Y=W.next())if((Y=Y.value.renderer)&&(Y.instreamVideoAdRenderer||Y.linearAdSequenceRenderer||Y.sandwichedLinearAdRenderer||Y.instreamSurveyAdRenderer)){KS("ad_i");g.Ek({isMonetized:!0});break}}; UY7=function(W){var Y;(Y=W.Y.getVideoData(1))!=null&&Y.Kg&&(W.K=!1,Y={},W.W&&W.videoId&&(Y.cttAuthInfo={token:W.W,videoId:W.videoId}),Jw("video_to_ad",Y))}; qZ=function(W){W.K=!1;var Y={};W.W&&W.videoId&&(Y.cttAuthInfo={token:W.W,videoId:W.videoId});Jw("ad_to_video",Y);lH7(W)}; lH7=function(W){if(W.J)if(W.T==="AD_PLACEMENT_KIND_START"&&W.actionType==="video_to_ad")nS("video_to_ad");else{var Y={adBreakType:xB(W.T),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:W.videoStreamType};W.actionType==="ad_to_video"?(W.contentCpn&&(Y.targetCpn=W.contentCpn),W.videoId&&(Y.targetVideoId=W.videoId)):(W.adCpn&&(Y.targetCpn=W.adCpn),W.adVideoId&&(Y.targetVideoId=W.adVideoId));W.adFormat&&(Y.adType=W.adFormat);W.contentCpn&& (Y.clientPlaybackNonce=W.contentCpn);W.videoId&&(Y.videoId=W.videoId);W.adCpn&&(Y.adClientPlaybackNonce=W.adCpn);W.adVideoId&&(Y.adVideoId=W.adVideoId);g.Ek(Y,W.actionType);W.Y.V().experiments.Nq("html5_ads_csi_qoes")&&(Y=W.Y.XZ(W.actionType==="ad_to_video"?1:2),Y=(0,g.q5)()-1E3*Y,rG("qoes",Y,W.actionType))}}; ff=function(W){g.e.call(this);this.Y=W;this.W=new Map;this.K=new Rk(this);g.v(this,this.K);this.K.Z(this.Y,g.lP("ad"),this.onCueRangeEnter,this);this.K.Z(this.Y,g.bP("ad"),this.onCueRangeExit,this)}; bsC=function(W,Y,k,P,T,I,X){g.L6.call(this,Y,k,{id:W,namespace:"ad",priority:T,visible:P,associatedClipId:I,markerPositionMs:X})}; V9=function(W){this.Y=W}; ccd=function(W,Y){W.Y.cueVideoByPlayerVars(Y,2)}; NT=function(W){this.Y=W}; aw=function(W){this.Y=W;g.W2(this.Y.V().experiments,"tv_pacf_logging_sample_rate")}; xY1=function(W){return F4(W,"html5_ssap_play_cached_preroll")}; h_=function(W,Y){Y=Y===void 0?!1:Y;return W.Y.V().U("html5_ssap_force_ads_ctmp")?!0:(Y||W.Y.V().OR())&&W.Y.V().U("html5_ssap_pacf_qoe_ctmp")}; Wm=function(W){var Y;return(Y=W.Y.getVideoData(1)==null?void 0:!1)!=null?Y:!1}; F4=function(W,Y){return W.Y.V().U(Y)}; fH1=function(W){return W.Y.V().U("substitute_ad_cpn_macro_in_ssdai")}; fR=function(W){var Y,k,P;return((Y=W.Y.getVideoData(1).getPlayerResponse())==null?void 0:(k=Y.playerConfig)==null?void 0:(P=k.daiConfig)==null?void 0:P.enableServerStitchedDai)||!1}; QAz=function(W){return W.Y.V().U("html5_enable_vod_slar_with_notify_pacf")}; VHF=function(W){return W.Y.V().U("html5_recognize_predict_start_cue_point")}; r0=function(W){return W.Y.V().experiments.Nq("enable_desktop_player_underlay")}; N47=function(W){return W.Y.V().experiments.Nq("html5_load_empty_player_in_media_break_sub_lra")}; IL=function(W){return W.Y.V().experiments.Nq("html5_load_ads_instead_of_cue")}; Xi=function(W){return W.Y.V().experiments.Nq("html5_preload_ads")}; aHz=function(W){return W.Y.V().experiments.Nq("should_ignore_cuepoints_during_lifa_preroll")}; Ja=function(W){return W.Y.V().experiments.Nq("enable_ads_control_flow_deterministic_id_generation")}; WVB=function(W){return W.Y.V().experiments.Nq("enable_desktop_discovery_video_abandon_pings")||g.H6(W.Y.V())}; Y21=function(W){return W.Y.V().experiments.Nq("enable_progres_commands_lr_feeds")}; Ve=function(W){return W.Y.V().experiments.Nq("html5_cuepoint_identifier_logging")}; Ux0=function(W){W=W.Y.getVideoData(1);return!!W&&W.U("html5_preload_first_vod_video_ad")&&!W.isDaiEnabled()&&!W.isLivePlayback}; $6z=function(W){return W.Y.V().experiments.Nq("html5_ssdai_enable_media_end_cue_range")}; k1N=function(W){switch(W){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}}; PFz=function(){g.NR.call(this);var W=this;this.W={};this.addOnDisposeCallback(function(){for(var Y=g.p(Object.keys(W.W)),k=Y.next();!k.done;k=Y.next())delete W.W[k.value]})}; Y_=function(){if(TvQ===null){TvQ=new PFz;Hl(Lj).K="b";var W=Hl(Lj),Y=m9(W)=="h"||m9(W)=="b",k=!($r(),!1);Y&&k&&(W.C=!0,W.X=new S1S)}return TvQ}; jdQ=function(W,Y,k){W.W[Y]=k}; IXc=function(W){switch(W){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}}; $_=function(W,Y,k){this.Cg=W;this.Y=Y;this.P6=k;this.K=new Set;this.W=new Map;Y_().subscribe("adactiveviewmeasurable",this.qm,this);Y_().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Hb,this);Y_().subscribe("adviewableimpression",this.GZ,this);Y_().subscribe("adaudioaudible",this.XY,this);Y_().subscribe("adaudiomeasurable",this.FY,this)}; Pm=function(W,Y,k){var P=k.BD,T=k.zx,I=k.listener,X=k.p9;k=k.Nh===void 0?!1:k.Nh;if(W.W.has(Y))PP("Unexpected registration of layout in LidarApi");else{if(X){if(W.K.has(X))return;W.K.add(X)}W.W.set(Y,I);KT($r().gZ,"fmd",1);RsF(Hl(Lj),P);var h=k?Y:void 0;jdQ(Y_(),Y,{nm:function(){if(!T)return{};var B=W.Y.getPresentingPlayerType(!0),O;return(O=W.Y.getVideoData(B))!=null&&O.isAd()?{currentTime:W.Cg.get().getCurrentTimeSec(B,!1,h),duration:T,isPlaying:k_(W.Cg.get(),B).isPlaying(),isVpaid:!1,isYouTube:!0, volume:W.Cg.get().isMuted()?0:W.Cg.get().getVolume()/100}:{}}})}}; TI=function(W,Y){W.W.has(Y)?(W.W.delete(Y),delete Y_().W[Y]):PP("Unexpected unregistration of layout in LidarApi")}; Xdh=function(W,Y){if(W.Y.isLifaAdPlaying()){var k=W.Y.Hu(!0,!0);W.Ns(Y,k.width*.5*1.1,k.height*.25*1.1,k.width*.5*.9,k.height*.5*.9)}}; Bv$=function(W,Y,k){var P={};S2K(W,P,Y,k);hSc(P);P.LACT=jA(function(){return Ml().toString()}); P.VIS=jA(function(){return W.getVisibilityState().toString()}); P.SDKV="h.3.0";P.VOL=jA(function(){return W.isMuted()?"0":Math.round(W.getVolume()).toString()}); P.VED="";return P}; OC9=function(W,Y){var k={};if(Y||!W||!W.kind)return k;if(W.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||W.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!W.adTimeOffset||!W.adTimeOffset.offsetStartMilliseconds)return g.GH(Error("malformed AdPlacementConfig")),k;k.MIDROLL_POS=jA(za(Math.round(mu(W.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else k.MIDROLL_POS=jA(za("0"));return k}; jA=function(W){return{toString:function(){return W()}}}; u7$=function(W,Y,k){function P(h,B){(B=k[B])&&(I[h]=B)} function T(h,B){(B=k[B])&&(I[h]=X(B))} if(!k||g.Ox(k))return W;var I=Object.assign({},W),X=Y?encodeURIComponent:function(h){return h}; T("DV_VIEWABILITY","doubleVerifyViewability");T("IAS_VIEWABILITY","integralAdsViewability");T("MOAT_INIT","moatInit");T("MOAT_VIEWABILITY","moatViewability");P("GOOGLE_VIEWABILITY","googleViewability");P("VIEWABILITY","viewability");return I}; S2K=function(W,Y,k,P){Y.CPN=jA(function(){var T;(T=W.getVideoData(1))?T=T.clientPlaybackNonce:(g.Kx(Error("Video data is null.")),T=null);return T}); Y.AD_MT=jA(function(){if(P!=null)var T=P;else{var I=k;W.V().U("html5_ssap_use_cpn_to_get_time")||(I=void 0);if(W.V().U("enable_h5_shorts_ad_fill_ad_mt_macro")||W.V().U("enable_desktop_discovery_pings_ad_mt_macro")||g.H6(W.V())){var X=W.getPresentingPlayerType(!0),h;T=((h=W.getVideoData(X))==null?0:h.isAd())?ZCK(W,X,I):0}else T=ZCK(W,2,I)}return iCB(T)}); Y.MT=jA(function(){return iCB(W.getCurrentTime(1,!1))}); Y.P_H=jA(function(){return W.ai().o3().height.toString()}); Y.P_W=jA(function(){return W.ai().o3().width.toString()}); Y.PV_H=jA(function(){return W.ai().getVideoContentRect().height.toString()}); Y.PV_W=jA(function(){return W.ai().getVideoContentRect().width.toString()})}; iCB=function(W){return Math.round(Math.max(0,W*1E3)).toString()}; hSc=function(W){W.CONN=jA(za("0"));W.WT=jA(function(){return Date.now().toString()})}; ZCK=function(W,Y,k){return k!==void 0?W.getCurrentTime(Y,!1,k):W.getCurrentTime(Y,!1)}; MzN=function(){}; tz$=function(W,Y,k,P,T){var I,X,h,B,O,u,Z,M,t,q,G,J,d;g.D(function(A){switch(A.W){case 1:I=!!Y.scrubReferrer;X=g.K_(Y.baseUrl,u7$(k,I,P));h={};if(!Y.headers){A.oi(2);break}B=W.T();if(!B.W){O=B.getValue();A.oi(3);break}return g.m(A,B.W,4);case 4:O=A.K;case 3:u=O;Z=g.p(Y.headers);for(M=Z.next();!M.done;M=Z.next())switch(t=M.value,t.headerType){case "VISITOR_ID":g.eM("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.eM("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.eM("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]= g.eM("EOM_VISITOR_DATA"));break;case "USER_AUTH":u&&(h.Authorization="Bearer "+u);break;case "PLUS_PAGE_ID":(q=W.C())&&(h["X-Goog-PageId"]=q);break;case "AUTH_USER":G=W.W();!u&&G&&(h["X-Goog-AuthUser"]=G);break;case "DATASYNC_ID":if(J=void 0,(J=W.J())==null?0:J.Nq("enable_datasync_id_header_in_web_vss_pings"))d=W.K(),ah(X)&&g.eM("LOGGED_IN")&&d&&(h["X-YouTube-DataSync-Id"]=d)}"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.rS(X,void 0,I,Object.keys(h).length!== 0?h:void 0,"",!0,T),g.G1(A)}})}; q2j=function(W,Y,k,P,T){this.T=W;this.C=Y;this.W=k;this.K=P;this.J=T}; RSj=function(W,Y){this.W=W;this.P6=Y}; IM=function(W,Y,k,P,T,I,X){var h=h===void 0?new q2j(function(){var B=W.V(),O=W.getVideoData(1);return g.dV(B,O?g.hD(O):"")},function(){return W.V().pageId},function(){return W.V().wD},function(){var B; return(B=W.V().datasyncId)!=null?B:""},function(){return W.V().experiments}):h; this.Y=W;this.K=Y;this.i8=k;this.qq=P;this.H7=T;this.P6=I;this.E6=X;this.T=h;this.jn=null;this.W=new Map;this.J=new RSj(h,this.P6)}; n5i=function(W,Y,k,P,T){var I=jP(W.K.get(),k);I?(k=iH(W,HCh(I),I,void 0,void 0,P),Y.hasOwnProperty("baseUrl")?W.T.send(Y,k):W.J.send(Y,k,{},T)):PP("Trying to ping from an unknown layout",void 0,void 0,{layoutId:k})}; wJF=function(W,Y,k,P,T,I){P=P===void 0?[]:P;var X=jP(W.K.get(),Y);if(X){var h=W.i8.get().h$(Y,k),B=iH(W,HCh(X),X,T,I);P.forEach(function(O,u){O.baseUrl&&(W.J.send(O.baseUrl,B,h,O.attributionSrcMode),O.serializedAdPingMetadata&&W.H7.Bs("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,X,new Z7z(O,u),void 0,void 0,X.adLayoutLoggingData))})}else PP("Trying to track from an unknown layout.",void 0,void 0,{layoutId:Y, trackingType:k})}; XQ=function(W,Y){W.Y.sendVideoStatsEngageEvent(Y,void 0,2)}; JA=function(W,Y){g.W8("adsClientStateChange",Y)}; pdK=function(W,Y){W.W.has(Y.aJ())?PP("Trying to register an existing AdErrorInfoSupplier."):W.W.set(Y.aJ(),Y)}; G11=function(W,Y){W.W.delete(Y.aJ())||PP("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; AA=function(W,Y,k){typeof k==="string"?W.Y.getVideoData(1).lf(Y,k):W.Y.getVideoData(1).y5(Y,k)}; HCh=function(W){var Y=bb(W.clientMetadata,"metadata_type_ad_placement_config");W=bb(W.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:Y,AK:W}}; iH=function(W,Y,k,P,T,I){var X=k?KVi(W):{},h=k?E5w(W,k.layoutId):{},B=Jqp(W),O,u=T!=null?T:(O=UM(W.qq.get(),2))==null?void 0:O.clientPlaybackNonce;T=void 0;if(k){var Z;if((Z=W.E6.W.get(k.layoutId))==null?0:Z.Nh)T=k.layoutId}Z={};W=Object.assign({},Bv$(W.Y,T,P),OC9(Y.adPlacementConfig,(k==null?void 0:k.renderingContent)!==void 0),h,X,B,(Z.FINAL=jA(function(){return"1"}),Z.AD_CPN=jA(function(){return u||""}),Z)); (k==null?void 0:k.renderingContent)!==void 0||(W.SLOT_POS=jA(function(){return(Y.AK||0).toString()})); k={};I=Object.assign({},W,I);W=g.p(Object.values(sdN));for(P=W.next();!P.done;P=W.next())P=P.value,X=I[P],X!=null&&X.toString()!=null&&(k[P]=X.toString());return k}; KVi=function(W){var Y={},k,P=(k=W.jn)==null?void 0:k.oB/1E3;P!=null&&(Y.SURVEY_ELAPSED_MS=jA(function(){return Math.round(P*1E3).toString()})); Y.SURVEY_LOCAL_TIME_EPOCH_S=jA(function(){return Math.round(Date.now()/1E3).toString()}); return Y}; E5w=function(W,Y){W=W.W.get(Y);if(!W)return{};W=W.PT();if(!W)return{};Y={};return Y.YT_ERROR_CODE=W.mD.toString(),Y.ERRORCODE=W.hN.toString(),Y.ERROR_MSG=W.errorMessage,Y}; Jqp=function(W){var Y={},k=W.Y.getVideoData(1);Y.ASR=jA(function(){var P;return(P=k==null?void 0:k.LI)!=null?P:null}); Y.EI=jA(function(){var P;return(P=k==null?void 0:k.eventId)!=null?P:null}); return Y}; XW=function(W,Y,k){g.e.call(this);this.Y=W;this.Dh=Y;this.P6=k;this.listeners=[];this.ze=null;this.Fd=new Map;Y=new g.p5(this);g.v(this,Y);Y.Z(W,"videodatachange",this.B5h);Y.Z(W,"serverstitchedvideochange",this.YVh);this.Kc=UM(this)}; UM=function(W,Y){var k=W.Y.getVideoData(Y);return k?W.pF(k,Y||W.Y.getPresentingPlayerType(!0)):null}; rqp=function(W,Y,k){var P=W.pF(Y,k);W.Kc=P;W.listeners.forEach(function(T){T.Ff(P)})}; Aqc=function(W){switch(W){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}}; SA=function(W,Y,k){g.e.call(this);this.Y=W;this.qq=Y;this.P6=k;this.listeners=[];this.Ne=[];this.W=function(){PP("Called 'doUnlockPreroll' before it's initialized.")}; Y=new Rk(this);k=new g.p5(this);g.v(this,k);g.v(this,Y);Y.Z(W,"progresssync",this.NZ5);Y.Z(W,"presentingplayerstatechange",this.tj1);Y.Z(W,"fullscreentoggled",this.onFullscreenToggled);Y.Z(W,"onVolumeChange",this.onVolumeChange);Y.Z(W,"minimized",this.XI);Y.Z(W,"overlayvisibilitychange",this.D6);Y.Z(W,"shortsadswipe",this.Bl);Y.Z(W,"resize",this.Rb);k.Z(W,g.lP("appad"),this.Z6)}; hy=function(W){Wm(W.P6.get())||W.W()}; zSh=function(W,Y){W.Ne=W.Ne.filter(function(k){return k!==Y})}; Bm=function(W,Y,k){return W.getCurrentTimeSec(Y,k)}; Ow=function(W,Y){var k;Y=(k=W.qq.get().Fd.get(Y))!=null?k:null;if(Y===null)return PP("Expected ad video start time on playback timeline"),0;W=W.Y.getCurrentTime(2,!0);return W0){var I=Y.end.toString();T.forEach(function(X){(X=X.config&&X.config.adPlacementConfig)&&X.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&X.adTimeOffset&&X.adTimeOffset.offsetEndMilliseconds==="-1"&&X.adTimeOffset.offsetEndMilliseconds!==I&&(X.adTimeOffset.offsetEndMilliseconds=I)}); P.map(function(X){return g.U(X,u2)}).forEach(function(X){var h; (X=X==null?void 0:(h=X.slotEntryTrigger)==null?void 0:h.mediaTimeRangeTrigger)&&X.offsetEndMilliseconds==="-1"&&(X.offsetEndMilliseconds=I)})}return{xi:T, adSlots:P,ac:!1,ssdaiAdsConfig:W.ssdaiAdsConfig}}; ty=function(W){g.e.call(this);this.Y=W;this.listeners=[];this.W=new Rk(this);g.v(this,this.W);this.W.Z(this.Y,"aduxclicked",this.onAdUxClicked);this.W.Z(this.Y,"aduxmouseover",this.Ge);this.W.Z(this.Y,"aduxmouseout",this.q$);this.W.Z(this.Y,"muteadaccepted",this.bgq)}; FVw=function(W,Y,k){Y=g.tx(Y,function(P){return new LrX(P,k,P.id)}); W.Y.Ri("onAdUxUpdate",Y)}; qp=function(W,Y){W=g.p(W.listeners);for(var k=W.next();!k.done;k=W.next())Y(k.value)}; RM=function(W,Y){this.K=W;this.J=Y===void 0?!1:Y;this.W={}}; wdc=function(W,Y){var k=W.startSecs+W.sV;k=k<=0?null:k;if(k===null)return null;switch(W.event){case "start":case "continue":case "stop":break;case "predictStart":if(Y)break;return null;default:return null}Y=Math.max(W.startSecs,0);return{KU:new M9(Y,k),De:new S$(Y,k-Y,W.context,W.identifier,W.event,W.W)}}; Qd1=function(){this.W=[]}; mk7=function(W,Y,k){var P=g.vp(W.W,Y);if(P>=0)return Y;Y=-P-1;return Y>=W.W.length||W.W[Y]>k?null:W.W[Y]}; Hm=function(W,Y,k){g.e.call(this);this.Y=W;this.P6=Y;this.sP=k;this.listeners=[];this.T=!1;this.lG=[];this.W=null;this.C=new RM(this,VHF(Y.get()));this.J=new Qd1;this.K=null}; yqc=function(W,Y){W.lG.push(Y);for(var k=!1,P=g.p(W.listeners),T=P.next();!T.done;T=P.next())k=T.value.JA(Y)||k;W.T=k;Ve(W.P6.get())&&AA(W.sP.get(),"onci","cpi."+Y.identifier+";cpe."+Y.event+";cps."+Y.startSecs+";cbi."+k)}; o5K=function(W,Y){JA(W.sP.get(),{cuepointTrigger:{event:eSi(Y.event),cuepointId:Y.identifier,totalCueDurationMs:Y.sV*1E3,playheadTimeMs:Y.W,cueStartTimeMs:Y.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:W.Y.getVideoData(1).clientPlaybackNonce}})}; eSi=function(W){switch(W){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 hQ(W,"Unexpected cuepoint event")}}; ng=function(W){this.Y=W}; pg=function(W){this.Y=W}; v5c=function(W){switch(W){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:hQ(W,"unknown transitionReason")}}; GI=function(){g.e.apply(this,arguments);this.PDq=new Map}; CFp=function(W){this.Y=W}; LVz=function(W,Y,k,P,T){g.e.call(this);var I=this,X=rk(function(){return new Ea(I.P6)}); g.v(this,X);var h=rk(function(){return new sa(X,I.P6)}); g.v(this,h);var B=rk(function(){return new PW}); g.v(this,B);var O=rk(function(){return new $k(W)}); g.v(this,O);var u=rk(function(){return new rm(X,h,I.P6)}); g.v(this,u);var Z=rk(function(){return new DP}); g.v(this,Z);this.Wa=rk(function(){return new ty(Y)}); g.v(this,this.Wa);this.UR=rk(function(){return new zb(T)}); g.v(this,this.UR);this.CH=rk(function(){return new xq(Y)}); g.v(this,this.CH);this.wZ=rk(function(){return new ff(Y)}); g.v(this,this.wZ);this.JT=rk(function(){return new V9(Y)}); g.v(this,this.JT);this.RI=rk(function(){return new NT(Y)}); g.v(this,this.RI);this.P6=rk(function(){return new aw(Y)}); g.v(this,this.P6);var M=rk(function(){return new Mp(P)}); g.v(this,M);var t=rk(function(){return new Yg(I.P6)}); g.v(this,t);this.fu=rk(function(){return new ng(Y)}); g.v(this,this.fu);this.eN=rk(function(){return new Dw}); g.v(this,this.eN);this.qq=rk(function(){return new XW(Y,Z,I.P6)}); g.v(this,this.qq);var q=b1({qq:this.qq,P6:this.P6,v5:t}),G=q.context,J=q.E6;this.H7=q.H7;this.Va=rk(function(){return new Hm(Y,I.P6,I.sP)}); g.v(this,this.Va);this.Pa=rk(function(){return new pg(Y)}); g.v(this,this.Pa);this.Cg=rk(function(){return new SA(Y,I.qq,I.P6)}); g.v(this,this.Cg);this.gV=rk(function(){return new GI}); g.v(this,this.gV);q=rk(function(){return new l2(X,u,h,I.P6,t,"SLOT_TYPE_ABOVE_FEED",I.Cg,I.QC,I.Na)}); g.v(this,q);this.a6=rk(function(){return new gk(I.P6)}); this.i8=rk(function(){return new $_(I.Cg,Y,I.P6)}); g.v(this,this.i8);this.sP=rk(function(){return new IM(Y,B,I.i8,I.qq,I.H7,I.P6,J)}); g.v(this,this.sP);this.RZ=new WW(an,Kg,function(A,F,y,L){return sV(h.get(),A,F,y,L)},O,u,h,t,this.P6,this.qq); g.v(this,this.RZ);this.Tr=new Yk(O,q,k,this.P6,W,this.qq,this.Cg,this.CH);g.v(this,this.Tr);var d=new cz(Y,this.Tr,this.Cg,this.qq,this.Va);this.Gj=rk(function(){return d}); this.mV=d;this.QC=new xE(O,u,this.Gj,this.Va,this.Cg,this.P6,this.sP,this.Pa);g.v(this,this.QC);this.dV=new kk(O,u,this.wZ,this.Gj,G);g.v(this,this.dV);this.Cq=new OV(this.P6,O,u,q,this.qq,this.dV,k,this.JT);g.v(this,this.Cq);this.oZ=rk(function(){return new a1(M,h,t,I.P6,I.sP,I.Cg,I.Pa)}); g.v(this,this.oZ);this.ge=rk(function(){return new Wr}); g.v(this,this.ge);this.PK=new BW(W,this.Wa,this.P6);g.v(this,this.PK);this.Qi=new Oa(W);g.v(this,this.Qi);this.hh=new uS(W);g.v(this,this.hh);this.D9=new iS(W,this.Gj,G);g.v(this,this.D9);this.lD=new Mg(W,this.wZ,this.Cg,this.qq,G);g.v(this,this.lD);this.iK=new ta(W,this.qq);g.v(this,this.iK);this.Na=new HW(W,this.Va,this.Cg,this.sP,this.Gj,this.QC);g.v(this,this.Na);this.nN=new qg(W);g.v(this,this.nN);this.Yh=new K1(W);g.v(this,this.Yh);this.VL=new RN(W);g.v(this,this.VL);this.gp=new Gp(W);g.v(this, this.gp);this.Yh=new K1(W);g.v(this,this.Yh);this.JC=rk(function(){return new IN}); g.v(this,this.JC);this.Nz=rk(function(){return new Xo(I.Cg)}); g.v(this,this.Nz);this.Kb=rk(function(){return new kyz(I.Wa,I.sP,W,B,I.i8)}); g.v(this,this.Kb);this.Tw=rk(function(){return new Qc(I.Cq,O,X)}); g.v(this,this.Tw);this.t7=rk(function(){return new of(I.P6,I.sP,I.nN,I.i8)}); g.v(this,this.t7);this.rM=rk(function(){return new yu(W,I.Yh,I.nN,I.qq,I.Pa,I.Cg,I.gV,I.sP,Z,I.Va,I.i8,I.a6,I.JT,I.wZ,I.CH,I.RI,I.UR,I.fu,I.P6,B,G,J)}); g.v(this,this.rM);this.jO=rk(function(){return new ty5(I.Cg,I.sP,I.UR,I.P6,I.i8,I.qq)}); g.v(this,this.jO);this.IE=rk(function(){return new kJ6(I.Wa,I.Cg,I.sP,B,I.i8,I.hh,I.gp,I.UR,I.P6,k)}); g.v(this,this.IE);this.HC=rk(function(){return new Pdd(I.Wa,I.sP,B)}); g.v(this,this.HC);this.t0=new iV(W,this.eN,X);g.v(this,this.t0);this.x7={vX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cq],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.QC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.RZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Tr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.dV]]),Pw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oZ],["SLOT_TYPE_ABOVE_FEED",this.ge],["SLOT_TYPE_FORECASTING",this.ge], ["SLOT_TYPE_IN_PLAYER",this.ge],["SLOT_TYPE_PLAYER_BYTES",this.ge],["SLOT_TYPE_PLAYER_UNDERLAY",this.ge],["SLOT_TYPE_PLAYBACK_TRACKING",this.ge],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.ge]]),hL:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PK],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.PK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qi],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qi],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Qi],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qi],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Qi],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Qi],["TRIGGER_TYPE_CLOSE_REQUESTED",this.hh],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.D9],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.lD],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.lD],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.lD],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lD],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.lD],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.lD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iK],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nN],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.D9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VL],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.gp],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Na],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Na],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Na],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Na],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Na]]),Iu:new Map([["SLOT_TYPE_ABOVE_FEED",this.JC], ["SLOT_TYPE_AD_BREAK_REQUEST",this.JC],["SLOT_TYPE_FORECASTING",this.JC],["SLOT_TYPE_IN_PLAYER",this.JC],["SLOT_TYPE_PLAYER_BYTES",this.Nz],["SLOT_TYPE_PLAYER_UNDERLAY",this.JC],["SLOT_TYPE_PLAYBACK_TRACKING",this.JC],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.JC]]),RE:new Map([["SLOT_TYPE_ABOVE_FEED",this.Kb],["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.t7],["SLOT_TYPE_PLAYER_BYTES",this.rM],["SLOT_TYPE_PLAYBACK_TRACKING",this.jO],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.jO],["SLOT_TYPE_IN_PLAYER",this.IE],["SLOT_TYPE_PLAYER_UNDERLAY",this.HC]])};this.listeners=[B.get()];this.Za={Cq:this.Cq,tj:this.P6.get(),B6:this.UR.get(),J6:this.Cg.get(),Tr:this.Tr,x5:X.get(),HE:this.eN.get(),Lr:this.PK,Zd:B.get(),AD:this.qq.get()}}; U6j=function(W,Y,k,P,T){g.e.call(this);var I=this,X=rk(function(){return new Ea(I.P6)}); g.v(this,X);var h=rk(function(){return new sa(X,I.P6)}); g.v(this,h);var B=rk(function(){return new PW}); g.v(this,B);var O=rk(function(){return new $k(W)}); g.v(this,O);var u=rk(function(){return new rm(X,h,I.P6)}); g.v(this,u);var Z=rk(function(){return new DP}); g.v(this,Z);this.Wa=rk(function(){return new ty(Y)}); g.v(this,this.Wa);this.UR=rk(function(){return new zb(T)}); g.v(this,this.UR);this.CH=rk(function(){return new xq(Y)}); g.v(this,this.CH);this.wZ=rk(function(){return new ff(Y)}); g.v(this,this.wZ);this.JT=rk(function(){return new V9(Y)}); g.v(this,this.JT);this.RI=rk(function(){return new NT(Y)}); g.v(this,this.RI);this.P6=rk(function(){return new aw(Y)}); g.v(this,this.P6);var M=rk(function(){return new Mp(P)}); g.v(this,M);var t=rk(function(){return new Yg(I.P6)}); g.v(this,t);var q=rk(function(){return new l2(X,u,h,I.P6,t,null,null,I.QC,I.Na)}); g.v(this,q);this.fu=rk(function(){return new ng(Y)}); g.v(this,this.fu);this.eN=rk(function(){return new Dw}); g.v(this,this.eN);this.qq=rk(function(){return new XW(Y,Z,I.P6)}); g.v(this,this.qq);var G=b1({qq:this.qq,P6:this.P6,v5:t}),J=G.context,d=G.E6;this.H7=G.H7;this.Va=rk(function(){return new Hm(Y,I.P6,I.sP)}); this.Cg=rk(function(){return new SA(Y,I.qq,I.P6)}); g.v(this,this.Cg);this.gV=rk(function(){return new GI}); g.v(this,this.gV);this.i8=rk(function(){return new $_(I.Cg,Y,I.P6)}); g.v(this,this.i8);this.sP=rk(function(){return new IM(Y,B,I.i8,I.qq,I.H7,I.P6,d)}); g.v(this,this.sP);this.a6=rk(function(){return new gk(I.P6)}); g.v(this,this.a6);this.RZ=new WW(an,Kg,function(F,y,L,V){return sV(h.get(),F,y,L,V)},O,u,h,t,this.P6,this.qq); g.v(this,this.RZ);this.Tr=new Yk(O,q,k,this.P6,W,this.qq,this.Cg,this.CH);g.v(this,this.Tr);var A=new cz(Y,this.Tr,this.Cg,this.qq,this.Va);this.Gj=rk(function(){return A}); this.mV=A;this.QC=new xE(O,u,this.Gj,this.Va,this.Cg,this.P6,this.sP);g.v(this,this.QC);this.dV=new kk(O,u,this.wZ,this.Gj,J);g.v(this,this.dV);this.Cq=new OV(this.P6,O,u,q,this.qq,this.dV,k,this.JT);g.v(this,this.Cq);this.oZ=rk(function(){return new a1(M,h,t,I.P6,I.sP,I.Cg)}); g.v(this,this.oZ);this.ge=rk(function(){return new Wr}); g.v(this,this.ge);this.PK=new BW(W,this.Wa,this.P6);g.v(this,this.PK);this.Qi=new Oa(W);g.v(this,this.Qi);this.hh=new uS(W);g.v(this,this.hh);this.D9=new iS(W,this.Gj,J);g.v(this,this.D9);this.lD=new Mg(W,this.wZ,this.Cg,this.qq,J);g.v(this,this.lD);this.nN=new qg(W);g.v(this,this.nN);this.VL=new RN(W);g.v(this,this.VL);this.gp=new Gp(W);g.v(this,this.gp);this.Pa=rk(function(){return new pg(Y)}); g.v(this,this.Pa);this.Yh=new K1(W);g.v(this,this.Yh);this.Na=new HW(W,this.Va,this.Cg,this.sP,this.Gj,this.QC);g.v(this,this.Na);this.JC=rk(function(){return new IN}); g.v(this,this.JC);this.Nz=rk(function(){return new Xo(I.Cg)}); g.v(this,this.Nz);this.Tw=rk(function(){return new Qc(I.Cq,O,X)}); g.v(this,this.Tw);this.t7=rk(function(){return new of(I.P6,I.sP,I.nN,I.i8)}); g.v(this,this.t7);this.IE=rk(function(){return new Pl1(I.Wa,I.Cg,I.sP,B,I.i8,I.hh,I.gp,I.UR,I.P6,k)}); g.v(this,this.IE);this.rM=rk(function(){return new et(W,I.Yh,I.nN,I.sP,I.i8,I.a6,I.JT,I.qq,I.Cg,I.gV,I.wZ,I.CH,I.RI,I.UR,I.fu,I.P6,I.Pa,J,d)}); g.v(this,this.rM);this.t0=new iV(W,this.eN,X);g.v(this,this.t0);this.x7={vX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cq],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.QC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.RZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Tr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.dV]]),Pw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oZ],["SLOT_TYPE_FORECASTING",this.ge],["SLOT_TYPE_IN_PLAYER",this.ge], ["SLOT_TYPE_PLAYER_BYTES",this.ge]]),hL:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qi],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qi],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qi], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Qi],["TRIGGER_TYPE_CLOSE_REQUESTED",this.hh],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.D9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lD],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.lD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nN],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.D9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VL],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.gp],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Na],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Na],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Na],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Na],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Na]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JC],["SLOT_TYPE_FORECASTING",this.JC],["SLOT_TYPE_IN_PLAYER",this.JC],["SLOT_TYPE_PLAYER_BYTES",this.Nz]]), RE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.t7],["SLOT_TYPE_IN_PLAYER",this.IE],["SLOT_TYPE_PLAYER_BYTES",this.rM]])};this.listeners=[B.get()];this.Za={Cq:this.Cq,tj:this.P6.get(),B6:this.UR.get(),J6:this.Cg.get(),Tr:this.Tr,x5:X.get(),HE:this.eN.get(),Lr:this.PK,Zd:B.get(),AD:this.qq.get()}}; lXB=function(W,Y,k,P,T){g.e.call(this);var I=this,X=rk(function(){return new Ea(I.P6)}); g.v(this,X);var h=rk(function(){return new sa(X,I.P6)}); g.v(this,h);var B=rk(function(){return new PW}); g.v(this,B);var O=rk(function(){return new $k(W)}); g.v(this,O);var u=rk(function(){return new rm(X,h,I.P6)}); g.v(this,u);var Z=rk(function(){return new DP}); g.v(this,Z);this.Wa=rk(function(){return new ty(Y)}); g.v(this,this.Wa);this.UR=rk(function(){return new zb(T)}); g.v(this,this.UR);this.CH=rk(function(){return new xq(Y)}); g.v(this,this.CH);this.wZ=rk(function(){return new ff(Y)}); g.v(this,this.wZ);this.JT=rk(function(){return new V9(Y)}); g.v(this,this.JT);this.RI=rk(function(){return new NT(Y)}); g.v(this,this.RI);this.P6=rk(function(){return new aw(Y)}); g.v(this,this.P6);var M=rk(function(){return new Mp(P)}); g.v(this,M);var t=rk(function(){return new Yg(I.P6)}); g.v(this,t);var q=rk(function(){return new l2(X,u,h,I.P6,t,null,null,null,null)}); g.v(this,q);this.fu=rk(function(){return new ng(Y)}); g.v(this,this.fu);this.qq=rk(function(){return new XW(Y,Z,I.P6)}); g.v(this,this.qq);var G=b1({qq:this.qq,P6:this.P6,v5:t}),J=G.context,d=G.E6;this.H7=G.H7;this.Cg=rk(function(){return new SA(Y,I.qq,I.P6)}); g.v(this,this.Cg);this.gV=rk(function(){return new GI}); g.v(this,this.gV);this.i8=rk(function(){return new $_(I.Cg,Y,I.P6)}); g.v(this,this.i8);this.sP=rk(function(){return new IM(Y,B,I.i8,I.qq,I.H7,I.P6,d)}); g.v(this,this.sP);this.a6=rk(function(){return new gk(I.P6)}); g.v(this,this.a6);this.RZ=new WW(an,Kg,function(F,y,L,V){return sV(h.get(),F,y,L,V)},O,u,h,t,this.P6,this.qq); g.v(this,this.RZ);this.Tr=new Yk(O,q,k,this.P6,W,this.qq,this.Cg,this.CH);g.v(this,this.Tr);var A=new cz(Y,this.Tr,this.Cg,this.qq);this.Gj=rk(function(){return A}); this.mV=A;this.dV=new kk(O,u,this.wZ,this.Gj,J);g.v(this,this.dV);this.Cq=new OV(this.P6,O,u,q,this.qq,this.dV,k,this.JT);g.v(this,this.Cq);this.oZ=rk(function(){return new a1(M,h,t,I.P6,I.sP,I.Cg)}); g.v(this,this.oZ);this.ge=rk(function(){return new Wr}); g.v(this,this.ge);this.PK=new BW(W,this.Wa,this.P6);g.v(this,this.PK);this.Qi=new Oa(W);g.v(this,this.Qi);this.D9=new iS(W,this.Gj,J);g.v(this,this.D9);this.lD=new Mg(W,this.wZ,this.Cg,this.qq,J);g.v(this,this.lD);this.nN=new qg(W);g.v(this,this.nN);this.VL=new RN(W);g.v(this,this.VL);this.Pa=rk(function(){return new pg(Y)}); g.v(this,this.Pa);this.Yh=new K1(W);g.v(this,this.Yh);this.JC=rk(function(){return new IN}); g.v(this,this.JC);this.Nz=rk(function(){return new Xo(I.Cg)}); g.v(this,this.Nz);this.Tw=rk(function(){return new Qc(I.Cq,O,X)}); g.v(this,this.Tw);this.t7=rk(function(){return new of(I.P6,I.sP,I.nN,I.i8)}); g.v(this,this.t7);this.T3=rk(function(){return new MyF(I.Wa,I.Cg,I.sP,B,k,I.P6)}); g.v(this,this.T3);this.rM=rk(function(){return new et(W,I.Yh,I.nN,I.sP,I.i8,I.a6,I.JT,I.qq,I.Cg,I.gV,I.wZ,I.CH,I.RI,I.UR,I.fu,I.P6,I.Pa,J,d)}); g.v(this,this.rM);this.x7={vX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cq],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.RZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Tr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.dV]]),Pw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oZ],["SLOT_TYPE_FORECASTING",this.ge],["SLOT_TYPE_IN_PLAYER",this.ge],["SLOT_TYPE_PLAYER_BYTES",this.ge]]),hL:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Qi],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qi],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qi],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qi],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.D9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lD],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.lD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nN],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.D9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VL],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yh]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JC],["SLOT_TYPE_ABOVE_FEED",this.JC],["SLOT_TYPE_FORECASTING",this.JC],["SLOT_TYPE_IN_PLAYER",this.JC],["SLOT_TYPE_PLAYER_BYTES",this.Nz]]),RE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.t7],["SLOT_TYPE_IN_PLAYER", this.T3],["SLOT_TYPE_PLAYER_BYTES",this.rM]])};this.listeners=[B.get()];this.Za={Cq:this.Cq,tj:this.P6.get(),B6:this.UR.get(),J6:this.Cg.get(),Tr:this.Tr,x5:X.get(),HE:null,Lr:this.PK,Zd:B.get(),AD:this.qq.get()}}; bCc=function(W,Y,k,P,T){g.e.call(this);var I=this,X=rk(function(){return new Ea(I.P6)}); g.v(this,X);var h=rk(function(){return new sa(X,I.P6)}); g.v(this,h);var B=rk(function(){return new PW}); g.v(this,B);var O=rk(function(){return new $k(W)}); g.v(this,O);var u=rk(function(){return new rm(X,h,I.P6)}); g.v(this,u);var Z=rk(function(){return new DP}); g.v(this,Z);this.Tq=rk(function(){return new CFp(Y)}); g.v(this,this.Tq);this.Wa=rk(function(){return new ty(Y)}); g.v(this,this.Wa);this.UR=rk(function(){return new zb(T)}); g.v(this,this.UR);this.CH=rk(function(){return new xq(Y)}); g.v(this,this.CH);this.wZ=rk(function(){return new ff(Y)}); g.v(this,this.wZ);this.JT=rk(function(){return new V9(Y)}); g.v(this,this.JT);this.RI=rk(function(){return new NT(Y)}); g.v(this,this.RI);this.P6=rk(function(){return new aw(Y)}); g.v(this,this.P6);var M=rk(function(){return new Mp(P)}); g.v(this,M);var t=rk(function(){return new Yg(I.P6)}); g.v(this,t);var q=rk(function(){return new l2(X,u,h,I.P6,t,null,null,null,null)}); g.v(this,q);this.fu=rk(function(){return new ng(Y)}); g.v(this,this.fu);this.qq=rk(function(){return new XW(Y,Z,I.P6)}); g.v(this,this.qq);var G=b1({qq:this.qq,P6:this.P6,v5:t}),J=G.context,d=G.E6;this.H7=G.H7;this.Cg=rk(function(){return new SA(Y,I.qq,I.P6)}); g.v(this,this.Cg);this.gV=rk(function(){return new GI}); g.v(this,this.gV);this.i8=rk(function(){return new $_(I.Cg,Y,I.P6)}); g.v(this,this.i8);this.sP=rk(function(){return new IM(Y,B,I.i8,I.qq,I.H7,I.P6,d)}); g.v(this,this.sP);this.a6=rk(function(){return new gk(I.P6)}); g.v(this,this.a6);this.RZ=new WW(vp0,Kg,function(F,y,L,V){return Bk2(h.get(),F,y,L,V)},O,u,h,t,this.P6,this.qq); g.v(this,this.RZ);this.Tr=new Yk(O,q,k,this.P6,W,this.qq,this.Cg,this.CH);g.v(this,this.Tr);var A=new cz(Y,this.Tr,this.Cg,this.qq);this.Gj=rk(function(){return A}); this.mV=A;this.dV=new kk(O,u,this.wZ,this.Gj,J);g.v(this,this.dV);this.Cq=new OV(this.P6,O,u,q,this.qq,this.dV,k,this.JT);g.v(this,this.Cq);this.oZ=rk(function(){return new a1(M,h,t,I.P6,I.sP,I.Cg)}); g.v(this,this.oZ);this.ge=rk(function(){return new Wr}); g.v(this,this.ge);this.PK=new BW(W,this.Wa,this.P6);g.v(this,this.PK);this.Qi=new Oa(W);g.v(this,this.Qi);this.D9=new iS(W,this.Gj,J);g.v(this,this.D9);this.lD=new Mg(W,this.wZ,this.Cg,this.qq,J);g.v(this,this.lD);this.nN=new qg(W);g.v(this,this.nN);this.VL=new RN(W);g.v(this,this.VL);this.Pa=rk(function(){return new pg(Y)}); g.v(this,this.Pa);this.Yh=new K1(W);g.v(this,this.Yh);this.JC=rk(function(){return new IN}); g.v(this,this.JC);this.Nz=rk(function(){return new Xo(I.Cg)}); g.v(this,this.Nz);this.Tw=rk(function(){return new Qc(I.Cq,O,X)}); g.v(this,this.Tw);this.t7=rk(function(){return new of(I.P6,I.sP,I.nN,I.i8)}); g.v(this,this.t7);this.rM=rk(function(){return new et(W,I.Yh,I.nN,I.sP,I.i8,I.a6,I.JT,I.qq,I.Cg,I.gV,I.wZ,I.CH,I.RI,I.UR,I.fu,I.P6,I.Pa,J,d)}); g.v(this,this.rM);this.EQ=rk(function(){return new jC7(I.Wa,I.Cg,I.sP,B,I.Tq,k,I.qq)}); g.v(this,this.EQ);this.x7={vX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cq],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.RZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Tr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.dV]]),Pw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oZ],["SLOT_TYPE_FORECASTING",this.ge],["SLOT_TYPE_IN_PLAYER",this.ge],["SLOT_TYPE_PLAYER_BYTES",this.ge]]),hL:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.PK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Qi],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qi],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qi],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qi],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.D9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lD],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.lD],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nN],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.D9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VL],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yh]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JC],["SLOT_TYPE_FORECASTING",this.JC],["SLOT_TYPE_IN_PLAYER",this.JC],["SLOT_TYPE_PLAYER_BYTES",this.Nz]]),RE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.t7],["SLOT_TYPE_IN_PLAYER",this.EQ],["SLOT_TYPE_PLAYER_BYTES", this.rM]])};this.listeners=[B.get()];this.Za={Cq:this.Cq,tj:this.P6.get(),B6:this.UR.get(),J6:this.Cg.get(),Tr:this.Tr,x5:X.get(),HE:null,Lr:this.PK,Zd:B.get(),AD:this.qq.get()}}; cqQ=function(W,Y,k,P,T){g.e.call(this);var I=this,X=rk(function(){return new Ea(I.P6)}); g.v(this,X);var h=rk(function(){return new sa(X,I.P6)}); g.v(this,h);var B=rk(function(){return new PW}); g.v(this,B);var O=rk(function(){return new $k(W)}); g.v(this,O);var u=rk(function(){return new rm(X,h,I.P6)}); g.v(this,u);var Z=rk(function(){return new DP}); g.v(this,Z);this.Tq=rk(function(){return new CFp(Y)}); g.v(this,this.Tq);this.Wa=rk(function(){return new ty(Y)}); g.v(this,this.Wa);this.UR=rk(function(){return new zb(T)}); g.v(this,this.UR);this.CH=rk(function(){return new xq(Y)}); g.v(this,this.CH);this.wZ=rk(function(){return new ff(Y)}); g.v(this,this.wZ);this.JT=rk(function(){return new V9(Y)}); g.v(this,this.JT);this.RI=rk(function(){return new NT(Y)}); g.v(this,this.RI);this.P6=rk(function(){return new aw(Y)}); g.v(this,this.P6);var M=rk(function(){return new Mp(P)}); g.v(this,M);var t=rk(function(){return new Yg(I.P6)}); g.v(this,t);this.fu=rk(function(){return new ng(Y)}); g.v(this,this.fu);this.qq=rk(function(){return new XW(Y,Z,I.P6)}); g.v(this,this.qq);var q=b1({qq:this.qq,P6:this.P6,v5:t}),G=q.context,J=q.E6;this.H7=q.H7;this.Va=rk(function(){return new Hm(Y,I.P6,I.sP)}); g.v(this,this.Va);this.Pa=rk(function(){return new pg(Y)}); g.v(this,this.Pa);this.Cg=rk(function(){return new SA(Y,I.qq,I.P6)}); g.v(this,this.Cg);this.gV=rk(function(){return new GI}); g.v(this,this.gV);q=rk(function(){return new l2(X,u,h,I.P6,t,null,I.Cg,I.QC,I.Na,3)}); g.v(this,q);this.a6=rk(function(){return new gk(I.P6)}); this.i8=rk(function(){return new $_(I.Cg,Y,I.P6)}); g.v(this,this.i8);this.sP=rk(function(){return new IM(Y,B,I.i8,I.qq,I.H7,I.P6,J)}); g.v(this,this.sP);this.Tr=new Yk(O,q,k,this.P6,W,this.qq,this.Cg,this.CH);g.v(this,this.Tr);var d=new cz(Y,this.Tr,this.Cg,this.qq,this.Va);this.Gj=rk(function(){return d}); this.mV=d;this.RZ=new WW(CbC,Kg,function(A,F,y,L){return Bk2(h.get(),A,F,y,L)},O,u,h,t,this.P6,this.qq); g.v(this,this.RZ);this.QC=new xE(O,u,this.Gj,this.Va,this.Cg,this.P6,this.sP,this.Pa);g.v(this,this.QC);this.dV=new kk(O,u,this.wZ,this.Gj,G);g.v(this,this.dV);this.Cq=new OV(this.P6,O,u,q,this.qq,this.dV,k,this.JT);g.v(this,this.Cq);this.oZ=rk(function(){return new a1(M,h,t,I.P6,I.sP,I.Cg,I.Pa)}); g.v(this,this.oZ);this.ge=rk(function(){return new Wr}); g.v(this,this.ge);this.PK=new BW(W,this.Wa,this.P6);g.v(this,this.PK);this.Qi=new Oa(W);g.v(this,this.Qi);this.D9=new iS(W,this.Gj,G);g.v(this,this.D9);this.lD=new Mg(W,this.wZ,this.Cg,this.qq,G);g.v(this,this.lD);this.iK=new ta(W,this.qq);g.v(this,this.iK);this.Na=new HW(W,this.Va,this.Cg,this.sP,this.Gj,this.QC);g.v(this,this.Na);this.nN=new qg(W);g.v(this,this.nN);this.VL=new RN(W);g.v(this,this.VL);this.Yh=new K1(W);g.v(this,this.Yh);this.JC=rk(function(){return new IN}); g.v(this,this.JC);this.Nz=rk(function(){return new Xo(I.Cg)}); g.v(this,this.Nz);this.Tw=rk(function(){return new Qc(I.Cq,O,X)}); g.v(this,this.Tw);this.t7=rk(function(){return new of(I.P6,I.sP,I.nN,I.i8)}); g.v(this,this.t7);this.rM=rk(function(){return new yu(W,I.Yh,I.nN,I.qq,I.Pa,I.Cg,I.gV,I.sP,Z,I.Va,I.i8,I.a6,I.JT,I.wZ,I.CH,I.RI,I.UR,I.fu,I.P6,B,G,J)}); g.v(this,this.rM);this.IE=rk(function(){return new I0z(I.Wa,I.Cg,I.sP,B,I.Tq,k,I.P6,I.qq)}); g.v(this,this.IE);this.x7={vX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Cq],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.QC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.RZ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Tr],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.dV]]),Pw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.oZ],["SLOT_TYPE_FORECASTING",this.ge],["SLOT_TYPE_IN_PLAYER",this.ge],["SLOT_TYPE_PLAYER_BYTES",this.ge]]),hL:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.PK],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Qi],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Qi],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Qi],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Qi],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Qi],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.D9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.lD],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lD],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iK],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nN],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.D9],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.VL],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Na],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Na],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Na],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Na],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Na]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JC],["SLOT_TYPE_FORECASTING",this.JC],["SLOT_TYPE_IN_PLAYER",this.JC],["SLOT_TYPE_PLAYER_BYTES",this.Nz]]),RE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.t7],["SLOT_TYPE_PLAYER_BYTES",this.rM],["SLOT_TYPE_IN_PLAYER",this.IE]])};this.listeners=[B.get()]; this.Za={Cq:this.Cq,tj:this.P6.get(),B6:this.UR.get(),J6:this.Cg.get(),Tr:this.Tr,x5:X.get(),HE:null,Lr:this.PK,Zd:B.get(),AD:this.qq.get()}}; fXh=function(W,Y,k,P){function T(){return I.K} g.e.call(this);var I=this;W.V().experiments.Nq("html5_dispose_of_manager_before_dependency")?(this.W=x6K(T,W,Y,k,P),this.K=(new A9(this.W)).J(),g.v(this,this.K),g.v(this,this.W)):(this.W=x6K(T,W,Y,k,P),g.v(this,this.W),this.K=(new A9(this.W)).J(),g.v(this,this.K))}; Ew=function(W){return W.W.Za}; x6K=function(W,Y,k,P,T){try{var I=Y.V();if(g.ph(I))var X=new LVz(W,Y,k,P,T);else if(g.E9(I))X=new U6j(W,Y,k,P,T);else if(Z_(I))X=new lXB(W,Y,k,P,T);else if(g.dq(I))X=new bCc(W,Y,k,P,T);else if(g.XF(I))X=new cqQ(W,Y,k,P,T);else throw new TypeError("Unknown web interface");return X}catch(h){return X=Y.V(),PP("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:X.W.cplatform,interface:X.W.c,fzi:X.W.cver,Z5i:X.W.ctheme,j5q:X.W.cplayer,gt5:X.playerStyle}),new D6Q(W,Y,k,P,T)}}; Vz1=function(W){wH.call(this,W)}; Nvc=function(W,Y,k,P,T){UZ.call(this,W,{S:"div",j:"ytp-ad-timed-pie-countdown-container",B:[{S:"svg",j:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},B:[{S:"circle",j:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{S:"circle",j:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{S:"circle",j:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",Y,k,P,T);this.T=this.J5("ytp-ad-timed-pie-countdown-container");this.J=this.J5("ytp-ad-timed-pie-countdown-inner"); this.C=this.J5("ytp-ad-timed-pie-countdown-outer");this.K=Math.ceil(2*Math.PI*5);this.hide()}; aXj=function(W,Y,k,P,T,I){PM.call(this,W,{S:"div",j:"ytp-ad-action-interstitial",D:{tabindex:"0"},B:[{S:"div",j:"ytp-ad-action-interstitial-background-container"},{S:"div",j:"ytp-ad-action-interstitial-slot",B:[{S:"div",j:"ytp-ad-action-interstitial-instream-info"},{S:"div",j:"ytp-ad-action-interstitial-card",B:[{S:"div",j:"ytp-ad-action-interstitial-image-container"},{S:"div",j:"ytp-ad-action-interstitial-headline-container"},{S:"div",j:"ytp-ad-action-interstitial-description-container"},{S:"div", j:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",Y,k,P);this.rh=T;this.aF=I;this.navigationEndpoint=this.W=this.skipButton=this.K=this.actionButton=null;this.Fr=this.J5("ytp-ad-action-interstitial-instream-info");this.UP=this.J5("ytp-ad-action-interstitial-image-container");this.N=new mq(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,"ytp-ad-action-interstitial-image");g.v(this,this.N);this.N.S1(this.UP);this.TJ=this.J5("ytp-ad-action-interstitial-headline-container"); this.C=new CU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,"ytp-ad-action-interstitial-headline");g.v(this,this.C);this.C.S1(this.TJ);this.Kg=this.J5("ytp-ad-action-interstitial-description-container");this.J=new CU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,"ytp-ad-action-interstitial-description");g.v(this,this.J);this.J.S1(this.Kg);this.bz=this.J5("ytp-ad-action-interstitial-background-container");this.GJ=new mq(this.api,this.layoutId,this.interactionLoggingClientData, this.B6,"ytp-ad-action-interstitial-background",!0);g.v(this,this.GJ);this.GJ.S1(this.bz);this.Q5=this.J5("ytp-ad-action-interstitial-action-button-container");this.slot=this.J5("ytp-ad-action-interstitial-slot");this.Qt=this.J5("ytp-ad-action-interstitial-card");this.T=new Rk;g.v(this,this.T);this.hide()}; W1N=function(W){var Y=g.I_("html5-video-player");Y&&g.kN(Y,"ytp-ad-display-override",W)}; PQB=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-overlay-slot",B:[{S:"div",j:"ytp-ad-overlay-container"}]},"invideo-overlay",Y,k,P);this.N=[];this.bz=this.TJ=this.T=this.Q5=this.Fr=null;this.GJ=!1;this.C=null;this.Kg=0;W=this.J5("ytp-ad-overlay-container");this.UP=new aa(W,45E3,6E3,.3,.4);g.v(this,this.UP);this.J=YKi(this);g.v(this,this.J);this.J.S1(W);this.K=$cQ(this);g.v(this,this.K);this.K.S1(W);this.W=kKQ(this);g.v(this,this.W);this.W.S1(W);this.hide()}; YKi=function(W){var Y=new g.kZ({S:"div",j:"ytp-ad-text-overlay",B:[{S:"div",j:"ytp-ad-overlay-ad-info-button-container"},{S:"div",j:"ytp-ad-overlay-close-container",B:[{S:"button",j:"ytp-ad-overlay-close-button",B:[KU(TBQ)]}]},{S:"div",j:"ytp-ad-overlay-title",v6:"{{title}}"},{S:"div",j:"ytp-ad-overlay-desc",v6:"{{description}}"},{S:"div",Ya:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],v6:"{{displayUrl}}"}]});W.Z(Y.J5("ytp-ad-overlay-title"),"click",function(k){Jy(W,Y.element,k)}); W.Z(Y.J5("ytp-ad-overlay-link"),"click",function(k){Jy(W,Y.element,k)}); W.Z(Y.J5("ytp-ad-overlay-close-container"),"click",W.jQ);Y.hide();return Y}; $cQ=function(W){var Y=new g.kZ({S:"div",Ya:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],B:[{S:"div",j:"ytp-ad-overlay-ad-info-button-container"},{S:"div",j:"ytp-ad-overlay-close-container",B:[{S:"button",j:"ytp-ad-overlay-close-button",B:[KU(TBQ)]}]},{S:"div",j:"ytp-ad-overlay-text-image",B:[{S:"img",D:{src:"{{imageUrl}}"}}]},{S:"div",j:"ytp-ad-overlay-title",v6:"{{title}}"},{S:"div",j:"ytp-ad-overlay-desc",v6:"{{description}}"},{S:"div",Ya:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], v6:"{{displayUrl}}"}]});W.Z(Y.J5("ytp-ad-overlay-title"),"click",function(k){Jy(W,Y.element,k)}); W.Z(Y.J5("ytp-ad-overlay-link"),"click",function(k){Jy(W,Y.element,k)}); W.Z(Y.J5("ytp-ad-overlay-close-container"),"click",W.jQ);W.Z(Y.J5("ytp-ad-overlay-text-image"),"click",W.ISa);Y.hide();return Y}; kKQ=function(W){var Y=new g.kZ({S:"div",j:"ytp-ad-image-overlay",B:[{S:"div",j:"ytp-ad-overlay-ad-info-button-container"},{S:"div",j:"ytp-ad-overlay-close-container",B:[{S:"button",j:"ytp-ad-overlay-close-button",B:[KU(TBQ)]}]},{S:"div",j:"ytp-ad-overlay-image",B:[{S:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});W.Z(Y.J5("ytp-ad-overlay-image"),"click",function(k){Jy(W,Y.element,k)}); W.Z(Y.J5("ytp-ad-overlay-close-container"),"click",W.jQ);Y.hide();return Y}; jjQ=function(W,Y){if(Y){var k=g.U(Y,Xx)||null;k==null?g.GH(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(Y=g.I_("video-ads ytp-ad-module")||null,Y==null?g.GH(Error("Could not locate the root ads container element to attach the ad info dialog.")):(W.TJ=new g.kZ({S:"div",j:"ytp-ad-overlay-ad-info-dialog-container"}),g.v(W,W.TJ),W.TJ.S1(Y),Y=new vM(W.api,W.layoutId,W.interactionLoggingClientData,W.B6,W.TJ.element,!1),g.v(W,Y),Y.init(fx("ad-info-hover-text-button"),k,W.macros), W.C?(Y.S1(W.C,0),Y.subscribe("f",W.RSi,W),Y.subscribe("e",W.PW,W),W.Z(W.C,"click",W.NDh),W.Z(g.I_("ytp-ad-button",Y.element),"click",function(){var P;if(g.U((P=g.U(k.button,g.hV))==null?void 0:P.serviceEndpoint,Wdq))W.GJ=W.api.getPlayerState(1)===2,W.api.pauseVideo();else W.api.onAdUxClicked("ad-info-hover-text-button",W.layoutId)}),W.bz=Y):g.GH(Error("Ad info button container within overlay ad was not present."))))}else g.Kx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Xpz=function(W,Y){if(IcN(W,rb)||W.api.isMinimized())return!1;var k=Ty(Y.title),P=Ty(Y.description);if(g.zm(k)||g.zm(P))return!1;W.createServerVe(W.J.element,Y.trackingParams||null);W.J.updateValue("title",Ty(Y.title));W.J.updateValue("description",Ty(Y.description));W.J.updateValue("displayUrl",Ty(Y.displayUrl));Y.navigationEndpoint&&g.dB(W.N,Y.navigationEndpoint);W.J.show();W.UP.start();W.logVisibility(W.J.element,!0);W.Z(W.J.element,"mouseover",function(){W.Kg++}); return!0}; SKj=function(W,Y){if(IcN(W,rb)||W.api.isMinimized())return!1;var k=Ty(Y.title),P=Ty(Y.description);if(g.zm(k)||g.zm(P))return!1;W.createServerVe(W.K.element,Y.trackingParams||null);W.K.updateValue("title",Ty(Y.title));W.K.updateValue("description",Ty(Y.description));W.K.updateValue("displayUrl",Ty(Y.displayUrl));W.K.updateValue("imageUrl",BD0(Y.image));Y.navigationEndpoint&&g.dB(W.N,Y.navigationEndpoint);W.Q5=Y.imageNavigationEndpoint||null;W.K.show();W.UP.start();W.logVisibility(W.K.element,!0); W.Z(W.K.element,"mouseover",function(){W.Kg++}); return!0}; h9h=function(W,Y){if(W.api.isMinimized())return!1;var k=Oe6(Y.image),P=k;k.width0?(Y=new Ad(W.api,W.W), Y.S1(W.playerOverlay),g.v(W,Y)):(W=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(Y)),g.GH(W))}}else g.GH(Error("addCommonComponents() needs to be called before starting countdown."))}; nhw=function(W){function Y(k){return{toString:function(){return k()}}} W.macros.SURVEY_LOCAL_TIME_EPOCH_S=Y(function(){var k=new Date;return(Math.round(k.valueOf()/1E3)+-1*k.getTimezoneOffset()*60).toString()}); W.macros.SURVEY_ELAPSED_MS=Y(function(){return(Date.now()-W.J).toString()})}; pp1=function(W,Y,k,P,T){me.call(this,W,Y,k,P,"survey-question-multi-select");this.Kg=T;this.noneOfTheAbove=null;this.submitEndpoints=[];this.C=null;this.hide()}; GK$=function(W,Y,k){W.noneOfTheAbove=new Mwz(W.api,W.layoutId,W.interactionLoggingClientData,W.B6);W.noneOfTheAbove.S1(W.answers);W.noneOfTheAbove.init(fx("survey-none-of-the-above"),Y,k)}; Eh9=function(W){W.K.forEach(function(Y){Y.W.toggleButton(!1)}); K1w(W,!0)}; K1w=function(W,Y){var k=W.T;W=JNQ(W);Y=Y===void 0?!1:Y;k.W&&(W?k.W.hide():k.W.show(),Y&&k.W instanceof OI&&!k.W.T&&SPS(k.W,!1));k.K&&(W?k.K.show():k.K.hide())}; JNQ=function(W){return W.K.some(function(Y){return Y.W.isToggled()})||W.noneOfTheAbove.button.isToggled()}; Da=function(W,Y,k,P,T){me.call(this,W,Y,k,P,"survey-question-single-select",function(X){I.api.V().U("supports_multi_step_on_desktop")&&T([X])}); var I=this;this.hide()}; gb=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-survey",B:[{S:"div",j:"ytp-ad-survey-questions"}]},"survey",Y,k,P);this.questions=[];this.K=[];this.conditioningRules=[];this.W=0;this.C=this.J5("ytp-ad-survey-questions");this.api.V().U("fix_survey_color_contrast_on_destop")&&this.J5("ytp-ad-survey").classList.add("color-contrast-fix");this.api.V().U("web_enable_speedmaster")&&this.J5("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; ANj=function(W,Y){var k=W.K[Y],P;(P=W.J)==null||P.dispose();g.U(k,jm)?sj1(W,g.U(k,jm),W.macros):g.U(k,Tv)&&rNQ(W,g.U(k,Tv),W.macros);W.W=Y}; sj1=function(W,Y,k){var P=new Da(W.api,W.layoutId,W.interactionLoggingClientData,W.B6,W.T.bind(W));P.S1(W.C);P.init(fx("survey-question-single-select"),Y,k);W.api.V().U("supports_multi_step_on_desktop")?W.J=P:W.questions.push(P);g.v(W,P)}; rNQ=function(W,Y,k){var P=new pp1(W.api,W.layoutId,W.interactionLoggingClientData,W.B6,W.T.bind(W));P.S1(W.C);P.init(fx("survey-question-multi-select"),Y,k);W.api.V().U("supports_multi_step_on_desktop")?W.J=P:W.questions.push(P);g.v(W,P)}; FW=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-survey-interstitial",B:[{S:"div",j:"ytp-ad-survey-interstitial-contents",B:[{S:"div",j:"ytp-ad-survey-interstitial-logo",B:[{S:"div",j:"ytp-ad-survey-interstitial-logo-image"}]},{S:"div",j:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",Y,k,P);this.W=this.actionButton=null;this.interstitial=this.J5("ytp-ad-survey-interstitial");this.K=this.J5("ytp-ad-survey-interstitial-contents");this.text=this.J5("ytp-ad-survey-interstitial-text"); this.logoImage=this.J5("ytp-ad-survey-interstitial-logo-image");this.transition=new g.cM(this,500,!1,300);g.v(this,this.transition)}; z9z=function(W,Y){Y=Y&&dH(Y)||"";if(g.zm(Y))g.Kx(Error("Found ThumbnailDetails without valid image URL"));else{var k=W.style;W=W.style.cssText;var P=document.implementation.createHTMLDocument("").createElement("DIV");P.style.cssText=W;W=Q5v(P.style);k.cssText=[W,'background-image:url("'+Y+'");'].join("")}}; dc$=function(W){var Y=g.I_("html5-video-player");Y&&g.kN(Y,"ytp-ad-display-override",W)}; wb=function(W,Y,k,P,T,I){I=I===void 0?0:I;UZ.call(this,W,{S:"div",j:"ytp-preview-ad",B:[{S:"div",j:"ytp-preview-ad__text"}]},"preview-ad",Y,k,P,T);var X=this;this.Kg=I;this.K=0;this.T=-1;this.J=this.J5("ytp-preview-ad__text");switch(this.Kg){case 1:this.J.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.cM(this,400,!1,100,function(){X.hide()}); g.v(this,this.transition);this.hide()}; QU=function(W,Y,k,P){PM.call(this,W,{S:"img",j:"ytp-ad-avatar"},"ad-avatar",Y,k,P);this.hide()}; mcB=function(W){switch(W.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}}; yU=function(W,Y,k,P,T,I){T=T===void 0?!1:T;I=I===void 0?!1:I;PM.call(this,W,{S:"button",j:"ytp-ad-button-vm"},"ad-button",Y,k,P);this.buttonText=this.buttonIcon=null;this.hide();this.W=T;this.K=I}; Dcc=function(W,Y,k,P,T){UZ.call(this,W,{S:"div",Ya:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],B:[{S:"div",j:"ytp-ad-avatar-lockup-card__avatar_and_text_container",B:[{S:"div",j:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",Y,k,P,T);this.startMilliseconds=0;this.adAvatar=new QU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.adAvatar);tv(this.element,this.adAvatar.element,0);this.headline=new G4(this.api,this.layoutId, this.interactionLoggingClientData,this.B6);g.v(this,this.headline);this.headline.S1(this.J5("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.description);this.description.S1(this.J5("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new yU(this.api, this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.adButton);this.adButton.S1(this.element);this.hide()}; eA=function(W,Y,k,P){PM.call(this,W,{S:"button",j:"ytp-skip-ad-button",B:[{S:"div",j:"ytp-skip-ad-button__text"}]},"skip-button",Y,k,P);var T=this;this.K=!1;this.T=this.J5("ytp-skip-ad-button__text");this.transition=new g.cM(this,500,!1,100,function(){T.hide()}); g.v(this,this.transition);this.W=new aa(this.element,15E3,5E3,.5,.5,!0);g.v(this,this.W);this.hide()}; ghp=function(W,Y,k,P,T){UZ.call(this,W,{S:"div",j:"ytp-skip-ad"},"skip-ad",Y,k,P,T);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.J=new eA(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.J);this.J.S1(this.element);this.hide()}; oM=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-visit-advertiser-link"},"visit-advertiser-link",Y,k,P);this.hide()}; vm=function(W,Y,k,P,T){PM.call(this,W,{S:"div",j:"ytp-ad-player-overlay-layout",B:[{S:"div",j:"ytp-ad-player-overlay-layout__player-card-container"},{S:"div",j:"ytp-ad-player-overlay-layout__ad-info-container"},{S:"div",j:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{S:"div",j:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",Y,k,P);this.K=T;this.TJ=this.J5("ytp-ad-player-overlay-layout__player-card-container");this.W=this.J5("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.J5("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Kg=this.J5("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; F1K=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-grid-card-text",B:[{S:"div",j:"ytp-ad-grid-card-text__metadata",B:[{S:"div",j:"ytp-ad-grid-card-text__metadata__headline"},{S:"div",j:"ytp-ad-grid-card-text__metadata__description",B:[{S:"div",j:"ytp-ad-grid-card-text__metadata__description__line"},{S:"div",j:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{S:"div",j:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",Y,k,P);this.headline=new G4(this.api,this.layoutId,this.interactionLoggingClientData, this.B6);g.v(this,this.headline);this.headline.S1(this.J5("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new yU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0);g.v(this,this.moreInfoButton);this.moreInfoButton.S1(this.J5("ytp-ad-grid-card-text__button"))}; Cg=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",Y,k,P);this.W=[]}; Lg=function(W,Y,k,P,T,I,X){UZ.call(this,W,I,X,Y,k,P,T);this.playerProgressOffsetMs=0;this.K=!1}; wpc=function(W){var Y=g.I_("html5-video-player");Y&&g.kN(Y,"ytp-ad-display-override",W)}; Qjp=function(W,Y,k,P,T){Lg.call(this,W,Y,k,P,T,{S:"div",j:"ytp-display-underlay-text-grid-cards",B:[{S:"div",j:"ytp-display-underlay-text-grid-cards__content_container",B:[{S:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header",B:[{S:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{S:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{S:"div",j:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {S:"div",j:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.adGridCardCollection);this.adGridCardCollection.S1(this.J5("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new yU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.adButton);this.adButton.S1(this.J5("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.J=this.J5("ytp-display-underlay-text-grid-cards__content_container");this.T=this.J5("ytp-display-underlay-text-grid-cards__content_container__header")}; Uw=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-ad-details-line"},"ad-details-line",Y,k,P);this.W=[];this.hide()}; lV=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-image-background",B:[{S:"img",j:"ytp-image-background-image"}]},"image-background",Y,k,P);this.hide()}; yNw=function(W,Y,k,P,T){UZ.call(this,W,{S:"svg",j:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},B:[{S:"circle",j:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{S:"circle",j:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{S:"circle",j:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",Y,k,P,T);this.J=this.J5("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; bV=function(W,Y,k,P){PM.call(this,W,{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},B:[{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content",B:[{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",B:[{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{S:"div",j:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",Y,k,P);this.K=null;this.T=this.J5("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.J=new Rk;g.v(this,this.J);this.hide()}; e9$=function(W){var Y=g.I_("html5-video-player");Y&&g.kN(Y,"ytp-ad-display-override",W)}; ohK=function(W){if(!W.adAvatar||!g.U(W.adAvatar,cm))return g.GH(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!W.headline)return g.GH(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!W.adBadge||!g.U(W.adBadge,x_))return g.GH(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!W.adButton||!g.U(W.adButton,fg))return g.GH(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!W.adInfoRenderer|| !g.U(W.adInfoRenderer,Xx))return g.GH(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;W=W.durationMilliseconds||0;return typeof W!=="number"||W<=0?(g.GH(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+W)),!1):!0}; VU=function(W,Y){Y=Y===void 0?2:Y;g.NR.call(this);this.api=W;this.W=null;this.handler=new Rk(this);g.v(this,this.handler);this.K=hb0;this.handler.Z(this.api,"presentingplayerstatechange",this.VF);this.W=this.handler.Z(this.api,"progresssync",this.Xi);this.WH=Y;this.WH===1&&this.Xi()}; Np=function(W,Y,k){wH.call(this,W);this.api=W;this.B6=Y;this.components={};W=new g.l({S:"div",Ya:["video-ads","ytp-ad-module"]});g.v(this,W);NG&&g.a2(W.element,"ytp-ads-tiny-mode");this.T=new XT(W.element);g.v(this,this.T);g.aR(this.api,W.element,4);r0(k)&&(k=new g.l({S:"div",Ya:["ytp-ad-underlay"]}),g.v(this,k),this.K=new XT(k.element),g.v(this,this.K),g.aR(this.api,k.element,0));g.v(this,ylq())}; vhK=function(W,Y){W=g.uj(W.components,Y.id,null);W==null&&g.Kx(Error("Component not found for element id: "+Y.id));return W||null}; CQj=function(W){g.JJ.call(this,W);var Y=this;this.K=null;this.created=!1;this.J=W.V().U("h5_use_refactored_get_ad_break")?new g20(this.player):new l1(this.player);this.T=function(){if(Y.K!=null)return Y.K;var P=new v2d({Lr:Ew(Y.W).Lr,AD:Ew(Y.W).AD,Y:Y.player,tj:Ew(Y.W).tj,sP:Y.W.W.sP,Zd:Ew(Y.W).Zd,RI:Y.W.W.RI});Y.K=P.dl;return Y.K}; this.W=new fXh(this.player,this,this.J,this.T);g.v(this,this.W);var k=W.V();!uP(k)||g.XF(k)||Z_(k)||(g.v(this,new Np(W,Ew(this.W).B6,Ew(this.W).tj)),g.v(this,new Vz1(W)))}; L1K=function(W){W.created!==W.loaded&&PP("Created and loaded are out of sync")}; b$j=function(W){g.JJ.prototype.load.call(W);var Y=Ew(W.W).tj;try{W.player.getRootNode().classList.add("ad-created")}catch(B){PP(B instanceof Error?B:String(B))}var k=W.player.getVideoData(1),P=k&&k.videoId||"",T=k&&k.getPlayerResponse()||{},I=(T&&T.adPlacements||[]).map(function(B){return B.adPlacementRenderer}),X=((T==null?void 0:T.adSlots)||[]).map(function(B){return g.U(B,u2)}); T=T.playerConfig&&T.playerConfig.daiConfig&&T.playerConfig.daiConfig.enableDai||!1;k&&k.t9();I=UcN(I,X,Y,Ew(W.W).x5);X=k&&k.clientPlaybackNonce||"";k=k&&k.Rr||!1;if(h_(Y,!0)&&k){var h;Y={};(h=W.player.getVideoData())==null||h.y5("p_cpb",(Y.cc=X,Y))}h=1E3*W.player.getDuration(1);lcB(W);W.W.W.mV.fh(X,h,k,I.dW,I.JB,I.dW,T,P)}; lcB=function(W){var Y,k;if(k=(Y=W.player.getVideoData(1))==null||!Y.Rr)Y=W.player.V(),k=uP(Y)&&!g.OG(Y)&&Y.playerStyle==="desktop-polymer";k&&(W=W.player.getInternalApi(),W.addEventListener("updateKevlarOrC3Companion",RbF),W.addEventListener("updateEngagementPanelAction",HJd),W.addEventListener("changeEngagementPanelVisibility",nuX),window.addEventListener("yt-navigate-start",GXz))}; aM=function(W,Y){Y===W.QR&&(W.QR=void 0)}; cNK=function(W){var Y=Ew(W.W).Tr,k=Y.T().kc("SLOT_TYPE_PLAYER_BYTES",1);Y=UM(Y.qq.get(),1).clientPlaybackNonce;var P=!1;k=g.p(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;var I=T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.slotEntryTrigger instanceof W$?T.slotEntryTrigger.dP:void 0;I&&I===Y&&(P&&PP("More than 1 preroll playerBytes slot detected",T),P=!0)}P||hy(Ew(W.W).J6)}; xcK=function(W){if(Wm(Ew(W.W).tj))return!0;var Y="";W=g.p(Ew(W.W).Zd.ph.keys());for(var k=W.next();!k.done;k=W.next()){k=k.value;if(k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&k.fg==="core")return!0;Y+=k.slotType+" "}Math.random()<.01&&PP("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:Y});return!1}; fc$=function(W){W=g.p(Ew(W.W).Zd.ph.values());for(var Y=W.next();!Y.done;Y=W.next())if(Y.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; vSC=function(W,Y,k,P,T,I,X){k=k===void 0?[]:k;P=P===void 0?"":P;T=T===void 0?"":T;var h=Ew(W.W).tj,B=W.player.getVideoData(1);B&&B.getPlayerResponse();B&&B.t9();k=UcN(Y,k,h,Ew(W.W).x5);b76(Ew(W.W).Cq,P,k.dW,k.JB,Y,T,I,X)}; UcN=function(W,Y,k,P){Y={dW:[],JB:Y};W=g.p(W);for(var T=W.next();!T.done;T=W.next())if((T=T.value)&&T.renderer!=null){var I=T.renderer;if(!k.Y.V().U("html5_enable_vod_lasr_with_notify_pacf")){var X=void 0,h=void 0,B=void 0,O=void 0,u=P;g.U((O=I.sandwichedLinearAdRenderer)==null?void 0:O.adVideoStart,UV)?(X=g.U((B=I.sandwichedLinearAdRenderer)==null?void 0:B.adVideoStart,UV),X=IwF(X,u),g.Ah(I.sandwichedLinearAdRenderer.adVideoStart,UV,X)):g.U((h=I.linearAdSequenceRenderer)==null?void 0:h.adStart,UV)&& (B=g.U((X=I.linearAdSequenceRenderer)==null?void 0:X.adStart,UV),X=IwF(B,u),g.Ah(I.linearAdSequenceRenderer.adStart,UV,X))}Y.dW.push(T)}return Y}; g.Wo=function(W){if(typeof DOMParser!="undefined")return EF(new DOMParser,mW0(W),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.YP=function(W){g.e.call(this);this.callback=W;this.W=new Z3(0,0,.4,0,.2,1,1,1);this.delay=new g.vH(this.next,window,this);g.v(this,this.delay)}; g.Vw9=function(W){var Y=W.V();return Y.DY&&!Y.J&&g.Y3(Y)?W.isEmbedsShortsMode()?(W=W.Hu(),Math.min(W.width,W.height)>=315):!W.jy():!1}; g.$P=function(W){g.l.call(this,{S:"div",j:"ytp-more-videos-view",D:{tabIndex:"-1"}});var Y=this;this.api=W;this.K=!0;this.J=new g.p5(this);this.W=[];this.suggestionData=[];this.columns=this.containerWidth=this.G=this.T=this.scrollPosition=0;this.title=new g.l({S:"h2",j:"ytp-related-title",v6:"{{title}}"});this.previous=new g.l({S:"button",Ya:["ytp-button","ytp-previous"],D:{"aria-label":"Mostrar videos sugeridos anteriores"},B:[g.Sy()]});this.X=new g.YP(function(k){Y.suggestions.element.scrollLeft= -k}); this.next=new g.l({S:"button",Ya:["ytp-button","ytp-next"],D:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},B:[g.hu()]});g.v(this,this.J);this.C=W.V().T;g.v(this,this.title);this.title.S1(this.element);this.suggestions=new g.l({S:"div",j:"ytp-suggestions"});g.v(this,this.suggestions);this.suggestions.S1(this.element);g.v(this,this.previous);this.previous.S1(this.element);this.previous.listen("click",this.RU,this);g.v(this,this.X);NBz(this);g.v(this,this.next);this.next.S1(this.element);this.next.listen("click", this.rl,this);this.J.Z(this.api,"appresize",this.Rb);this.J.Z(this.api,"fullscreentoggled",this.I0);this.J.Z(this.api,"videodatachange",this.onVideoDataChange);this.Rb(this.api.ai().getPlayerSize());this.onVideoDataChange()}; NBz=function(W){for(var Y={w2:0};Y.w2<16;Y={w2:Y.w2},++Y.w2){var k=new g.l({S:"a",j:"ytp-suggestion-link",D:{href:"{{link}}",target:W.api.V().N,"aria-label":"{{aria_label}}"},B:[{S:"div",j:"ytp-suggestion-image"},{S:"div",j:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},B:[{S:"div",j:"ytp-suggestion-title",v6:"{{title}}"},{S:"div",j:"ytp-suggestion-author",v6:"{{author_and_views}}"},{S:"div",D:{"data-is-live":"{{is_live}}"},j:"ytp-suggestion-duration", v6:"{{duration}}"}]}]});g.v(W,k);var P=k.J5("ytp-suggestion-link");g.CX(P,"transitionDelay",Y.w2/20+"s");W.J.Z(P,"click",function(T){return function(I){var X=T.w2;if(W.K){var h=W.suggestionData[X],B=h.sessionData;W.C&&W.api.U("web_player_log_click_before_generating_ve_conversion_params")?(W.api.logClick(W.W[X].element),X=h.md(),h={},g.fl(W.api,h),X=g.MH(X,h),g.r7(X,W.api,I)):g.sH(I,W.api,W.C,B||void 0)&&W.api.zq(h.videoId,B,h.playlistId)}else I.preventDefault(),document.activeElement.blur()}}(Y)); k.S1(W.suggestions.element);W.W.push(k);W.api.createServerVe(k.element,k)}}; acj=function(W){if(W.api.V().U("web_player_log_click_before_generating_ve_conversion_params"))for(var Y=Math.floor(-W.scrollPosition/(W.T+8)),k=Math.min(Y+W.columns,W.suggestionData.length)-1;Y<=k;Y++)W.api.logVisibility(W.W[Y].element,!0)}; g.kP=function(W){var Y=W.api.U6()?32:16;Y=W.G/2+Y;W.next.element.style.bottom=Y+"px";W.previous.element.style.bottom=Y+"px";Y=W.scrollPosition;var k=W.containerWidth-W.suggestionData.length*(W.T+8);g.kN(W.element,"ytp-scroll-min",Y>=0);g.kN(W.element,"ytp-scroll-max",Y<=k)}; YxB=function(W){for(var Y=W.suggestionData.length,k=0;k>>0)+"_",T=0;return Y}); Bd("Symbol.iterator",function(W){if(W)return W;W=Symbol("Symbol.iterator");for(var Y="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),k=0;k0&&k>0;)if(P[--k]!=Y[--T])return!1;return T<=0}}); Bd("Array.prototype.find",function(W){return W?W:function(Y,k){return OCS(this,Y,k).Ou}}); Bd("Array.prototype.entries",function(W){return W?W:function(){return vd(this,function(Y,k){return[Y,k]})}}); Bd("Array.prototype.keys",function(W){return W?W:function(){return vd(this,function(Y){return Y})}}); Bd("String.prototype.startsWith",function(W){return W?W:function(Y,k){var P=od(this,Y,"startsWith");Y+="";var T=P.length,I=Y.length;k=Math.max(0,Math.min(k|0,P.length));for(var X=0;X=I}}); Bd("Number.isFinite",function(W){return W?W:function(Y){return typeof Y!=="number"?!1:!isNaN(Y)&&Y!==Infinity&&Y!==-Infinity}}); Bd("String.prototype.repeat",function(W){return W?W:function(Y){var k=od(this,null,"repeat");if(Y<0||Y>1342177279)throw new RangeError("Invalid count value");Y|=0;for(var P="";Y;)if(Y&1&&(P+=k),Y>>>=1)k+=k;return P}}); Bd("Object.entries",function(W){return W?W:function(Y){var k=[],P;for(P in Y)M6(Y,P)&&k.push([P,Y[P]]);return k}}); Bd("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); Bd("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); Bd("Array.from",function(W){return W?W:function(Y,k,P){k=k!=null?k:function(h){return h}; var T=[],I=typeof Symbol!="undefined"&&Symbol.iterator&&Y[Symbol.iterator];if(typeof I=="function"){Y=I.call(Y);for(var X=0;!(I=Y.next()).done;)T.push(k.call(P,I.value,X++))}else for(I=Y.length,X=0;X>>0;if(Y===0)return 32;var k=0;(Y&4294901760)===0&&(Y<<=16,k+=16);(Y&4278190080)===0&&(Y<<=8,k+=8);(Y&4026531840)===0&&(Y<<=4,k+=4);(Y&3221225472)===0&&(Y<<=2,k+=2);(Y&2147483648)===0&&k++;return k}}); Bd("Number.isNaN",function(W){return W?W:function(Y){return typeof Y==="number"&&isNaN(Y)}}); Bd("Array.prototype.values",function(W){return W?W:function(){return vd(this,function(Y,k){return k})}}); Bd("Array.prototype.fill",function(W){return W?W:function(Y,k,P){var T=this.length||0;k<0&&(k=Math.max(0,T+k));if(P==null||P>T)P=T;P=Number(P);P<0&&(P=Math.max(0,T+P));for(k=Number(k||0);k0&&k?k.repeat(Math.ceil(Y/k.length)).substring(0,Y):"")+P}}); Bd("Array.prototype.findIndex",function(W){return W?W:function(Y,k){return OCS(this,Y,k).iT}}); Bd("Promise.prototype.finally",function(W){return W?W:function(Y){return this.then(function(k){return Promise.resolve(Y()).then(function(){return k})},function(k){return Promise.resolve(Y()).then(function(){throw k; })})}}); Bd("Math.imul",function(W){return W?W:function(Y,k){Y=Number(Y);k=Number(k);var P=Y&65535,T=k&65535;return P*T+((Y>>>16&65535)*T+P*(k>>>16&65535)<<16>>>0)|0}}); Bd("Math.sign",function(W){return W?W:function(Y){Y=Number(Y);return Y===0||isNaN(Y)?Y:Y>0?1:-1}}); Bd("WeakSet",function(W){function Y(k){this.W=new WeakMap;if(k){k=g.p(k);for(var P;!(P=k.next()).done;)this.add(P.value)}} if(function(){if(!W||!Object.seal)return!1;try{var k=Object.seal({}),P=Object.seal({}),T=new W([k]);if(!T.has(k)||T.has(P))return!1;T.delete(k);T.add(P);return!T.has(k)&&T.has(P)}catch(I){return!1}}())return W; Y.prototype.add=function(k){this.W.set(k,!0);return this}; Y.prototype.has=function(k){return this.W.has(k)}; Y.prototype.delete=function(k){return this.W.delete(k)}; return Y}); Bd("AggregateError",function(W){function Y(k,P){P=Error(P);"stack"in P&&(this.stack=P.stack);this.errors=k;this.message=P.message} if(W)return W;g.H(Y,Error);Y.prototype.name="AggregateError";return Y}); Bd("Array.prototype.copyWithin",function(W){function Y(k){k=Number(k);return k===Infinity||k===-Infinity?k:k|0} return W?W:function(k,P,T){var I=this.length;k=Y(k);P=Y(P);T=T===void 0?I:Y(T);k=k<0?Math.max(I+k,0):Math.min(k,I);P=P<0?Math.max(I+P,0):Math.min(P,I);T=T<0?Math.max(I+T,0):Math.min(T,I);if(kP;)--T in this?this[--k]=this[T]:delete this[--k];return this}}); Bd("Int8Array.prototype.copyWithin",LC);Bd("Uint8Array.prototype.copyWithin",LC);Bd("Uint8ClampedArray.prototype.copyWithin",LC);Bd("Int16Array.prototype.copyWithin",LC);Bd("Uint16Array.prototype.copyWithin",LC);Bd("Int32Array.prototype.copyWithin",LC);Bd("Uint32Array.prototype.copyWithin",LC);Bd("Float32Array.prototype.copyWithin",LC);Bd("Float64Array.prototype.copyWithin",LC);Bd("Array.prototype.at",function(W){return W?W:bF}); Bd("Int8Array.prototype.at",x5);Bd("Uint8Array.prototype.at",x5);Bd("Uint8ClampedArray.prototype.at",x5);Bd("Int16Array.prototype.at",x5);Bd("Uint16Array.prototype.at",x5);Bd("Int32Array.prototype.at",x5);Bd("Uint32Array.prototype.at",x5);Bd("Float32Array.prototype.at",x5);Bd("Float64Array.prototype.at",x5);Bd("String.prototype.at",function(W){return W?W:bF}); Bd("Array.prototype.findLastIndex",function(W){return W?W:function(Y,k){return u7C(this,Y,k).iT}}); Bd("Int8Array.prototype.findLastIndex",fC);Bd("Uint8Array.prototype.findLastIndex",fC);Bd("Uint8ClampedArray.prototype.findLastIndex",fC);Bd("Int16Array.prototype.findLastIndex",fC);Bd("Uint16Array.prototype.findLastIndex",fC);Bd("Int32Array.prototype.findLastIndex",fC);Bd("Uint32Array.prototype.findLastIndex",fC);Bd("Float32Array.prototype.findLastIndex",fC);Bd("Float64Array.prototype.findLastIndex",fC);Bd("Number.parseInt",function(W){return W||parseInt});var Cv,TK,iCv;Cv=Cv||{};g.V0=this||self;TK="closure_uid_"+(Math.random()*1E9>>>0);iCv=0;g.uQ(Zc,Error);Zc.prototype.name="CustomError";var dcC;var pd2,R3,vQ;pd2=Array.prototype.indexOf?function(W,Y){return Array.prototype.indexOf.call(W,Y,void 0)}:function(W,Y){if(typeof W==="string")return typeof Y!=="string"||Y.length!=1?-1:W.indexOf(Y,0); for(var k=0;k=0;k--)if(k in W&&W[k]===Y)return k;return-1}; g.xh=Array.prototype.forEach?function(W,Y,k){Array.prototype.forEach.call(W,Y,k)}:function(W,Y,k){for(var P=W.length,T=typeof W==="string"?W.split(""):W,I=0;I=.3:this.Gr>=.5};var rY={t5q:0,Pwz:1},Jvd={NONE:0,lPi:1,Cw1:2};var wdX="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");qS.prototype.getValue=function(){return this.K}; g.H(Rq,qS);Rq.prototype.J=function(W){this.K===null&&g.hm(this.T,W)&&(this.K=W)}; g.H(Hk,qS);Hk.prototype.J=function(W){this.K===null&&typeof W==="number"&&(this.K=W)}; g.H(nT,qS);nT.prototype.J=function(W){this.K===null&&typeof W==="string"&&(this.K=W)};pT.prototype.disable=function(){this.K=!1}; pT.prototype.enable=function(){this.K=!0}; pT.prototype.isEnabled=function(){return this.K}; pT.prototype.reset=function(){this.W={};this.K=!0;this.J={}};var I3=document,Av=window;var Sxc=$h(1,!0),QC=$h(610401301,!1);$h(899588437,!1);var h5i=$h(772657768,!1),BYc=$h(513659523,!1),OTK=$h(568333945,!0),QSF=$h(1331761403,!1);$h(651175828,!1);$h(722764542,!1);$h(748402145,!1);$h(748402146,!1);var pZ2=$h(748402147,Sxc);$h(333098724,!1);$h(2147483644,!1);$h(2147483645,!1);$h(2147483646,Sxc);$h(2147483647,!0);var yC=!!g.Wp("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var DR=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},Icq=/&/g,Xp7=//g,h95=/"/g,BBC=/'/g,O$6=/\x00/g,jjF=/[\x00&<>"']/;var eV,uDQ=g.V0.navigator;eV=uDQ?uDQ.userAgentData||null:null;var x62=globalThis.trustedTypes,fT;NS.prototype.toString=function(){return this.W+""};Y$.prototype.toString=function(){return this.W}; var NvX=new Y$("about:invalid#zClosurez");var VFV=T6("tel"),xoV=T6("sms"),VzV=[T6("data"),T6("http"),T6("https"),T6("mailto"),T6("ftp"),new PZ(function(W){return/^[^:]*([/?#]|$)/.test(W)})],aXd=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;BZ.prototype.toString=function(){return this.W+""};ML.prototype.toString=function(){return this.W+""};nc.prototype.toString=function(){return this.W};var G6={};g.ZTw=String.prototype.repeat?function(W,Y){return W.repeat(Y)}:function(W,Y){return Array(Y+1).join(W)};Qg[" "]=function(){};var LX,Ro,IHq,iTQ,MVz,tV9,Vh,NG,qxz;g.aP=lj();g.IY=CFd();g.e5=LT("Edge");g.JK=g.e5||g.IY;LX=LT("Gecko")&&!(mU(g.wY(),"WebKit")&&!LT("Edge"))&&!(LT("Trident")||LT("MSIE"))&&!LT("Edge");g.Sh=mU(g.wY(),"WebKit")&&!LT("Edge");Ro=wE();IHq=qK2();g.Ui=twS();iTQ=gE();MVz=LT("iPad");tV9=LT("iPod");Vh=FZ();NG=mU(g.wY(),"KaiOS"); a:{var R5i="",HTp=function(){var W=g.wY();if(LX)return/rv:([^\);]+)(\)|;)/.exec(W);if(g.e5)return/Edge\/([\d\.]+)/.exec(W);if(g.IY)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(g.Sh)return/WebKit\/(\S+)/.exec(W);if(g.aP)return/(?:Version)[ \/]?(\S+)/.exec(W)}(); HTp&&(R5i=HTp?HTp[1]:"");if(g.IY){var Po,n8h=g.V0.document;Po=n8h?n8h.documentMode:void 0;if(Po!=null&&Po>parseFloat(R5i)){qxz=String(Po);break a}}qxz=R5i}var ppV=qxz,H$7={};var vy,CN;g.Bq=bj();vy=gE()||LT("iPod");CN=LT("iPad");g.W6=U6d();g.qn=ck();g.hj=x8()&&!FZ();var m_q=!g.IY&&!x8();g.R=g.Cc.prototype;g.R.clone=function(){return new g.Cc(this.x,this.y)}; g.R.equals=function(W){return W instanceof g.Cc&&Lc(this,W)}; g.R.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.R.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.R.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.R.scale=function(W,Y){this.x*=W;this.y*=typeof Y==="number"?Y:W;return this};g.R=g.UF.prototype;g.R.clone=function(){return new g.UF(this.width,this.height)}; g.R.aspectRatio=function(){return this.width/this.height}; g.R.isEmpty=function(){return!b7(this)}; g.R.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.R.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.R.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.R.scale=function(W,Y){this.width*=W;this.height*=typeof Y==="number"?Y:W;return this};x$.prototype.toString=function(){return this.W}; var cZ={};new x$(cZ,"");var EhS=/^[a-z][a-z\d-]*$/i,JNF="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),rNF="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),z97=["action","formaction","href"];var mcv={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.R=NL.prototype;g.R.Tn=function(W){return ks(this.W,W)}; g.R.getElementsByTagName=function(W,Y){return(Y||this.W).getElementsByTagName(String(W))}; g.R.J5=function(W){return g.I_(W,this.W)}; g.R.setProperties=XG;g.R.createElement=function(W){return BL(this.W,W)}; g.R.appendChild=g.im;g.R.append=function(W,Y){wpX(ap(W),W,arguments,1)}; g.R.canHaveChildren=function(W){if(W.nodeType!=1)return!1;switch(W.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.R.removeNode=g.qB;g.R.getChildren=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(Y){return Y.nodeType==1})}; g.R.contains=g.R_;Jv.prototype.now=function(){return 0}; Jv.prototype.K=function(){return 0}; Jv.prototype.J=function(){return 0}; Jv.prototype.W=function(){return 0};g.H(rs,Jv);rs.prototype.now=function(){return sh()&&Av.performance.now?Av.performance.now():Jv.prototype.now.call(this)}; rs.prototype.K=function(){return sh()&&Av.performance.memory?Av.performance.memory.totalJSHeapSize||0:Jv.prototype.K.call(this)}; rs.prototype.J=function(){return sh()&&Av.performance.memory?Av.performance.memory.usedJSHeapSize||0:Jv.prototype.J.call(this)}; rs.prototype.W=function(){return sh()&&Av.performance.memory?Av.performance.memory.jsHeapSizeLimit||0:Jv.prototype.W.call(this)};var s8v=function(){if(!g.V0.addEventListener||!Object.defineProperty)return!1;var W=!1,Y=Object.defineProperty({},"passive",{get:function(){W=!0}}); try{var k=function(){}; g.V0.addEventListener("test",k,Y);g.V0.removeEventListener("test",k,Y)}catch(P){}return W}();var MFF=oh1("AnimationEnd"),DZ=oh1("TransitionEnd");g.R=FG.prototype;g.R.getHeight=function(){return this.bottom-this.top}; g.R.clone=function(){return new FG(this.top,this.right,this.bottom,this.left)}; g.R.contains=function(W){return this&&W?W instanceof FG?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1}; g.R.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.R.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.R.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.R.scale=function(W,Y){Y=typeof Y==="number"?Y:W;this.left*=W;this.right*=W;this.top*=Y;this.bottom*=Y;return this};g.R=g.eh.prototype;g.R.clone=function(){return new g.eh(this.left,this.top,this.width,this.height)}; g.R.contains=function(W){return W instanceof g.Cc?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height}; g.R.getSize=function(){return new g.UF(this.width,this.height)}; g.R.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.R.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.R.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.R.scale=function(W,Y){Y=typeof Y==="number"?Y:W;this.left*=W;this.width*=W;this.top*=Y;this.height*=Y;return this};var CQd={};var xc1=mT(function(){var W=!1;try{var Y=Object.defineProperty({},"passive",{get:function(){W=!0}}); g.V0.addEventListener("test",null,Y)}catch(k){}return W});fcC.prototype.isVisible=function(){return Pl(I3)===1};var $Sd=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");var US7=Bl(function(W){return typeof W==="number"}),VL=Bl(function(W){return typeof W==="string"}),lRd=Bl(function(W){return typeof W==="boolean"}),wm=Bl(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),p20=Bl(function(W){return typeof W==="function"}),pkz=Bl(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var TYq={Wi6:"allow-forms",Aeg:"allow-modals",ye5:"allow-orientation-lock",Ki5:"allow-pointer-lock",vfg:"allow-popups",inP:"allow-popups-to-escape-sandbox",P5z:"allow-presentation",wUS:"allow-same-origin",Je2:"allow-scripts",pU5:"allow-top-navigation",T_i:"allow-top-navigation-by-user-activation"},Xk1=mT(function(){return jqd()});uq.prototype.OV=function(W,Y,k){W=W+"//"+Y+k;var P=BY6(this)-k.length;if(P<0)return"";this.W.sort(function(O,u){return O-u}); k=null;Y="";for(var T=0;T=B.length){P-=B.length;W+=B;Y=this.J;break}k=k==null?I:k}}P="";k!=null&&(P=""+Y+"trn="+k);return W+P};nB.prototype.setInterval=function(W,Y){return Av.setInterval(W,Y)}; nB.prototype.clearInterval=function(W){Av.clearInterval(W)}; nB.prototype.setTimeout=function(W,Y){return Av.setTimeout(W,Y)}; nB.prototype.clearTimeout=function(W){Av.clearTimeout(W)};var Sj=void 0,X9,LuX=typeof TextDecoder!=="undefined",pk7,n85=typeof String.prototype.isWellFormed==="function",HTd=typeof TextEncoder!=="undefined";var sqz={},Ax=null,rmS=LX||g.Sh||typeof g.V0.btoa=="function";var ym6=typeof Uint8Array!=="undefined",DS6=!g.IY&&typeof btoa==="function",g8z=/[-_.]/g,dSC={"-":"+",_:"/",".":"="},dZ={};ze.prototype.isEmpty=function(){return this.W==null}; ze.prototype.sizeBytes=function(){var W=DW(this);return W?W.length:0}; var QqS;var e5d=void 0;var yL=typeof Symbol==="function"&&typeof Symbol()==="symbol",Gmi=QL("jas",void 0,!0),Hs=QL(void 0,"1oa"),di=QL(void 0,Symbol()),KUj=QL(void 0,"0ub"),Zcv=QL(void 0,"0ubs"),ZX7=QL(void 0,"0ubsb"),Ku0=QL(void 0,"0actk"),ri=QL("m_m","LtP",!0),ted=QL(void 0,"vps"),E8K=QL();Math.max.apply(Math,g.ZX(Object.values({g45:1,Cvz:2,S32:4,wHi:8,nFh:16,zuz:32,YrD:64,qq6:128,TMi:256,ljr:512,SqS:1024,Gw1:2048,WzJ:4096})));var v8d={jU:{value:0,configurable:!0,writable:!0,enumerable:!1}},o8F=Object.defineProperties,e9=yL?Gmi:"jU",$Q,JmQ=[];vl(JmQ,7);$Q=Object.freeze(JmQ);var AC={},LB={},mL5=Object.freeze({}),xa={};var N_=typeof g.V0.BigInt==="function"&&typeof g.V0.BigInt(0)==="bigint";var en=Bl(function(W){return N_?W>=sqw&&W<=rm9:W[0]==="-"?bT2(W,Am$):bT2(W,z5h)}),Am$=Number.MIN_SAFE_INTEGER.toString(),sqw=N_?BigInt(Number.MIN_SAFE_INTEGER):void 0,z5h=Number.MAX_SAFE_INTEGER.toString(),rm9=N_?BigInt(Number.MAX_SAFE_INTEGER):void 0;var yQX=typeof Uint8Array.prototype.slice==="function",W7=0,YI=0,iXV;var RX=typeof BigInt==="function"?BigInt.asIntN:void 0,XZF=typeof BigInt==="function"?BigInt.asUintN:void 0,GZ=Number.isSafeInteger,B7=Number.isFinite,KZ=Math.trunc,NY5=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var qF6={};var dS$={bN1:!0};var Qw;var R06,HcC;var FuS=a3(0),dl={};el.prototype.init=function(W,Y,k,P){var T=P===void 0?{}:P;P=T.MM===void 0?!1:T.MM;T=T.wE===void 0?!1:T.wE;this.MM=P;this.wE=T;W&&(W=yf(W,this.wE),this.K=W.buffer,this.C=W.W,this.T=Y||0,this.J=k!==void 0?this.T+k:this.K.length,this.W=this.T)}; el.prototype.free=function(){this.clear();cs.length<100&&cs.push(this)}; el.prototype.clear=function(){this.K=null;this.C=!1;this.W=this.J=this.T=0;this.MM=!1}; el.prototype.reset=function(){this.W=this.T}; var cs=[];xQ.prototype.free=function(){this.W.clear();this.K=this.J=-1;Tl.length<100&&Tl.push(this)}; xQ.prototype.reset=function(){this.W.reset();this.T=this.W.W;this.K=this.J=-1}; var Tl=[];var lY7,cQ7;u8.prototype.length=function(){return this.W.length}; u8.prototype.end=function(){var W=this.W;this.W=[];return W};var pt=H3(),mSc=H3(),DSc=H3(),g8w=H3(),FUi=H3(),wk$=H3(),Qq9=H3(),ymc=H3(),e5j=H3(),o8Q=H3(),v8p=H3();nt.prototype.toJSON=function(){return v7(this)}; nt.prototype.WK=function(W){return JSON.stringify(v7(this,W))}; nt.prototype.clone=function(){var W=this.h5,Y=W[e9]|0;return l4(this,W,Y)?b4(this,W,!0):new this.constructor(Up(W,Y,!1))}; nt.prototype[ri]=AC;nt.prototype.toString=function(){return this.h5.toString()};var Pmz=Kt(function(W,Y,k,P,T){if(W.K!==2)return!1;IF(W,nF(Y,P,k),T);return!0},kaq),TsC=Kt(function(W,Y,k,P,T){if(W.K!==2)return!1; IF(W,nF(Y,P,k),T);return!0},kaq),wU=Symbol(),AE=Symbol(),mj=Symbol(),BsC=Symbol(),XLV=Symbol(),EL,JE;var Cjh=Lt(function(W,Y,k){if(W.K!==1)return!1;b8(Y,k,lx(W.W));return!0},c3,e5j),LUB=Lt(function(W,Y,k){if(W.K!==1)return!1; W=lx(W.W);b8(Y,k,W===0?void 0:W);return!0},c3,e5j),USz=Lt(function(W,Y,k,P){if(W.K!==1)return!1; qd(Y,k,P,lx(W.W));return!0},c3,e5j),lRj=Lt(function(W,Y,k){if(W.K!==0)return!1; b8(Y,k,vs(W.W));return!0},xW,Qq9),bTK=Lt(function(W,Y,k){if(W.K!==0)return!1; W=vs(W.W);b8(Y,k,W===0?void 0:W);return!0},xW,Qq9),cmK=Lt(function(W,Y,k,P){if(W.K!==0)return!1; qd(Y,k,P,vs(W.W));return!0},xW,Qq9),xSw=Lt(function(W,Y,k){if(W.K!==0)return!1; b8(Y,k,CF(W.W));return!0},ft,g8w),fRh=Lt(function(W,Y,k){if(W.K!==0)return!1; W=CF(W.W);b8(Y,k,W===0?void 0:W);return!0},ft,g8w),VVz=Lt(function(W,Y,k,P){if(W.K!==0)return!1; qd(Y,k,P,CF(W.W));return!0},ft,g8w),NYh=Lt(function(W,Y,k){if(W.K!==1)return!1; b8(Y,k,U1(W.W));return!0},function(W,Y,k){WT7(W,k,SFX(Y))},ymc),aR1=l8(function(W,Y,k){if(W.K!==1&&W.K!==2)return!1; Y=Sl(Y,Y[e9]|0,k);if(W.K==2)for(k=CF(W.W)>>>0,k=W.W.W+k;W.W.W>>0);return!0},function(W,Y,k){Y=tC(Y); Y!=null&&Y!=null&&(qm(W,k,0),i8(W.W,Y))},FUi),h5=Lt(function(W,Y,k){if(W.K!==0)return!1; b8(Y,k,CF(W.W));return!0},function(W,Y,k){Y=Mv(Y); Y!=null&&(Y=parseInt(Y,10),qm(W,k,0),fY7(W.W,Y))},v8p);HX5.prototype.register=function(){Qg(this)};g.H(aF,nt);aF.prototype.J=pL0([0,LUB,bTK,-2,fRh]);Esd.prototype.Ik=function(W){var Y=this.W[W.key];if(W.valueType==="proto"){try{var k=JSON.parse(Y);if(Array.isArray(k))return k}catch(P){}return W.defaultValue}return typeof Y===typeof W.defaultValue?Y:W.defaultValue};var s_5={mv5:1,PY:2,E4J:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Av0.prototype.d1=function(W){if(typeof W==="string"&&W.length!=0){var Y=this.gZ;if(Y.K){W=W.split("&");for(var k=W.length-1;k>=0;k--){var P=W[k].split("="),T=decodeURIComponent(P[0]);P.length>1?(P=decodeURIComponent(P[1]),P=/^[0-9]+$/g.exec(P)?parseInt(P,10):P):P=1;(T=Y.W[T])&&T.J(P)}}}};var Bo=null;var Tt=g.V0.performance,IYN=!!(Tt&&Tt.mark&&Tt.measure&&Tt.clearMarks),kr=mT(function(){var W;if(W=IYN){var Y=Y===void 0?window:Y;if(Bo===null){Bo="";try{W="";try{W=Y.top.location.hash}catch(P){W=Y.location.hash}if(W){var k=W.match(/\bdeid=([\d,]+)/);Bo=k?k[1]:""}}catch(P){}}Y=Bo;W=!!Y.indexOf&&Y.indexOf("1337")>=0}return W}); PQ.prototype.disable=function(){this.W=!1;this.events!==this.K.google_js_reporting_queue&&(kr()&&g.xh(this.events,FTC),this.events.length=0)}; PQ.prototype.start=function(W,Y){if(!this.W)return null;var k=DB6()||mB1();W=new gsV(W,Y,k);Y="goog_"+W.label+"_"+W.uniqueId+"_start";Tt&&kr()&&Tt.mark(Y);return W}; PQ.prototype.end=function(W){if(this.W&&typeof W.value==="number"){var Y=DB6()||mB1();W.duration=Y-W.value;Y="goog_"+W.label+"_"+W.uniqueId+"_end";Tt&&kr()&&Tt.mark(Y);!this.W||this.events.length>2048||this.events.push(W)}};var wLz=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),HQ=/#|$/,Cm6=/[?&]($|#)/;UB1.prototype.JZ=function(W,Y,k,P,T){T=T||this.I4;try{var I=new uq;I.W.push(1);I.K[1]=ZW("context",W);Y.error&&Y.meta&&Y.id||(Y=new Jb(sd(Y)));if(Y.msg){var X=Y.msg.substring(0,512);I.W.push(2);I.K[2]=ZW("msg",X)}var h=Y.meta||{};if(this.qG)try{this.qG(h)}catch(t){}if(P)try{P(h)}catch(t){}P=[h];I.W.push(3);I.K[3]=P;var B=Pjz();if(B.K){var O=B.K.url||"";I.W.push(4);I.K[4]=ZW("top",O)}var u={url:B.W.url||""};if(B.W.url){var Z=g.I8(B.W.url);var M=j7(Z[1],null,Z[3],Z[4])}else M="";O=[u,{url:M}];I.W.push(5); I.K[5]=O;zr7(this.W,T,I,k)}catch(t){try{zr7(this.W,T,{context:"ecmserr",rctx:W,msg:sd(t),url:B&&B.W.url},k)}catch(q){}}return this.b9}; g.H(Jb,dB7);var Kk,Ed,Gt=new PQ;Kk=new function(){var W="https:";Av&&Av.location&&Av.location.protocol==="http:"&&(W="http:");this.K=W;this.W=.01}; Ed=new UB1;Av&&Av.document&&(Av.document.readyState=="complete"?bXC():Gt.W&&ka(Av,"load",function(){bXC()}));var f5F=Date.now(),g2=-1,mm=-1,Tlq,Fl=-1,Dl=!1;w2.prototype.equals=function(W,Y){return!!W&&(!(Y===void 0?0:Y)||this.volume==W.volume)&&this.J==W.J&&Q7(this.W,W.W)&&!0};QY.prototype.Tn=function(){return this.G}; QY.prototype.equals=function(W,Y){return this.T.equals(W.T,Y===void 0?!1:Y)&&this.G==W.G&&Q7(this.J,W.J)&&Q7(this.X,W.X)&&this.W==W.W&&this.C==W.C&&this.K==W.K&&this.L==W.L};var XZQ={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},LL={WY:"start",Hx:"firstquartile",rz:"midpoint",AO:"thirdquartile",COMPLETE:"complete",ERROR:"error",VO:"metric",PAUSE:"pause",h_:"resume",Mp:"skip",iH:"viewable_impression",Np:"mute",K9:"unmute",q_:"fullscreen",FP:"exitfullscreen",Sk:"bufferstart",oU:"bufferfinish",GK:"fully_viewable_audible_half_duration_impression",BI:"measurable_impression",Wx:"abandon",XP:"engagedview",mP:"impression",Uw:"creativeview",LOADED:"loaded", Z71:"progress",CLOSE:"close",gZD:"collapse",CES:"overlay_resize",gkS:"overlay_unmeasurable_impression",u7g:"overlay_unviewable_impression",Uva:"overlay_viewable_immediate_impression",Y01:"overlay_viewable_end_of_session_impression",nW:"custom_metric_viewable",vx:"audio_audible",Px:"audio_measurable",iL:"audio_impression"},Mjd="start firstquartile midpoint thirdquartile resume loaded".split(" "),tjz=["start","firstquartile","midpoint","thirdquartile"],Ii1=["abandon"],he={UNKNOWN:-1,WY:0,Hx:1,rz:2, AO:3,COMPLETE:4,VO:5,PAUSE:6,h_:7,Mp:8,iH:9,Np:10,K9:11,q_:12,FP:13,GK:14,BI:15,Wx:16,XP:17,mP:18,Uw:19,LOADED:20,nW:21,Sk:22,oU:23,iL:27,Px:28,vx:29};var Ns1={a9D:"addEventListener",u8J:"getMaxSize",Yq5:"getScreenSize",Uzz:"getState",nJ5:"getVersion",wV6:"removeEventListener",uZJ:"isViewable"};TZ0.prototype.update=function(W){W&&W.document&&(this.G=yY(!1,W,this.isMobileDevice),this.W=yY(!0,W,this.isMobileDevice),IWX(this,W),j3v(this,W))};Ud.prototype.cancel=function(){pB().clearTimeout(this.W);this.W=null}; Ud.prototype.schedule=function(){var W=this,Y=pB(),k=$r().W.W;this.W=Y.setTimeout(WQ(k,Ab(143,function(){W.K++;W.J.sample()})),Vhz())};g.R=lh.prototype;g.R.ZE=function(){return!1}; g.R.initialize=function(){return this.isInitialized=!0}; g.R.RJ=function(){return this.W.TJ}; g.R.Le=function(){return this.W.A5}; g.R.fail=function(W,Y){if(!this.A5||(Y===void 0?0:Y))this.A5=!0,this.TJ=W,this.L=0,this.W!=this||cQ(this)}; g.R.getName=function(){return this.W.Fr}; g.R.py=function(){return this.W.KQ()}; g.R.KQ=function(){return{}}; g.R.OI=function(){return this.W.L}; g.R.cg=function(){var W=Ck();W.W=yY(!0,this.J,W.isMobileDevice)}; g.R.LD=function(){j3v(Ck(),this.J)}; g.R.tH=function(){return this.T.W}; g.R.sample=function(){}; g.R.isActive=function(){return this.W.X}; g.R.WS=function(W){var Y=this.W;this.W=W.OI()>=this.L?W:this;Y!==this.W?(this.X=this.W.X,cQ(this)):this.X!==this.W.X&&(this.X=this.W.X,cQ(this))}; g.R.FL=function(W){if(W.K===this.W){var Y=!this.T.equals(W,this.N);this.T=W;Y&&hM6(this)}}; g.R.GX=function(){return this.N}; g.R.dispose=function(){this.gD=!0}; g.R.Xr=function(){return this.gD};g.R=xr.prototype;g.R.observe=function(){return!0}; g.R.unobserve=function(){}; g.R.Ns=function(W){this.C=W}; g.R.dispose=function(){if(!this.Xr()){var W=this.K;g.GK(W.C,this);W.N&&this.GX()&&S$7(W);this.unobserve();this.wD=!0}}; g.R.Xr=function(){return this.wD}; g.R.py=function(){return this.K.py()}; g.R.OI=function(){return this.K.OI()}; g.R.RJ=function(){return this.K.RJ()}; g.R.Le=function(){return this.K.Le()}; g.R.WS=function(){}; g.R.FL=function(){this.bZ()}; g.R.GX=function(){return this.gD};g.R=fk.prototype;g.R.OI=function(){return this.W.OI()}; g.R.RJ=function(){return this.W.RJ()}; g.R.Le=function(){return this.W.Le()}; g.R.create=function(W,Y,k){var P=null;this.W&&(P=this.UN(W,Y,k),bh(this.W,P));return P}; g.R.h8=function(){return this.fB()}; g.R.fB=function(){return!1}; g.R.init=function(W){return this.W.initialize()?(bh(this.W,this),this.T=W,!0):!1}; g.R.WS=function(W){W.OI()==0&&this.T(W.RJ(),this)}; g.R.FL=function(){}; g.R.GX=function(){return!1}; g.R.dispose=function(){this.C=!0}; g.R.Xr=function(){return this.C}; g.R.py=function(){return{}};VY.prototype.add=function(W,Y,k){++this.J;W=new OBS(W,Y,k);this.W.push(new OBS(W.K,W.W,W.J+this.J/4096));this.K=!0;return this};t97.prototype.toString=function(){var W="//pagead2.googlesyndication.com//pagead/gen_204",Y=a8(this.W);Y.length>0&&(W+="?"+Y);return W};g.e.prototype.kp=!1;g.e.prototype.Xr=function(){return this.kp}; g.e.prototype.dispose=function(){this.kp||(this.kp=!0,this.iz())}; g.e.prototype[Symbol.dispose]=function(){this.dispose()}; g.e.prototype.addOnDisposeCallback=function(W,Y){this.kp?Y!==void 0?W.call(Y):W():(this.FC||(this.FC=[]),Y&&(W=W.bind(Y)),this.FC.push(W))}; g.e.prototype.iz=function(){if(this.FC)for(;this.FC.length;)this.FC.shift()()};var SFc=[0,lRj,Wup,-1];$n.prototype.update=function(W,Y,k){W&&(this.W+=Y,this.K+=Y,this.T+=Y,this.J=Math.max(this.J,this.T));if(k===void 0?!W:k)this.T=0};var pl6=[1,.75,.5,.3,0];kn.prototype.update=function(W,Y,k,P,T,I){I=I===void 0?!0:I;Y=T?Math.min(W,Y):Y;for(T=0;T0&&Y>=X;X=!(W>0&&W>=X)||k;this.W[T].update(I&&h,P,!I||X)}};SD.prototype.update=function(W,Y,k,P){this.G=this.G!=-1?Math.min(this.G,Y.Gr):Y.Gr;this.Kg=Math.max(this.Kg,Y.Gr);this.wD=this.wD!=-1?Math.min(this.wD,Y.La):Y.La;this.TJ=Math.max(this.TJ,Y.La);this.e1.update(Y.La,k.La,Y.W,W,P);this.UP+=W;Y.Gr===0&&(this.Fr+=W);this.K.update(Y.Gr,k.Gr,Y.W,W,P);k=P||k.VY!=Y.VY?k.isVisible()&&Y.isVisible():k.isVisible();Y=!Y.isVisible()||Y.W;this.V5.update(k,W,Y)}; SD.prototype.Dw=function(){return this.V5.J>=this.bz};if(I3&&I3.URL){var h0p=!(WUd().length>0);Ed.b9=h0p};var BEK=new FG(0,0,0,0);var zM5=new FG(0,0,0,0);g.H(Zq,g.e);g.R=Zq.prototype; g.R.iz=function(){if(this.uw.W){if(this.zB.tZ){var W=this.uw.W;typeof W.removeEventListener==="function"&&W.removeEventListener("mouseover",this.zB.tZ,$a());this.zB.tZ=null}this.zB.n$&&(W=this.uw.W,typeof W.removeEventListener==="function"&&W.removeEventListener("mouseout",this.zB.n$,$a()),this.zB.n$=null)}this.F6&&this.F6.dispose();this.jL&&this.jL.dispose();delete this.NF;delete this.p$;delete this.Gl;delete this.uw.aE;delete this.uw.W;delete this.zB;delete this.F6;delete this.jL;delete this.gZ; g.e.prototype.iz.call(this)}; g.R.oE=function(){return this.jL?this.jL.W:this.position}; g.R.d1=function(W){$r().d1(W)}; g.R.GX=function(){return!1}; g.R.IH=function(){return new SD}; g.R.G9=function(){return this.NF}; g.R.wA=function(W){return mv0(this,W,1E4)}; g.R.xa=function(W,Y,k,P,T,I,X){this.xt||(this.A3&&(W=this.Bo(W,k,T,X),P=P&&this.Yf.Gr>=(this.VY()?.3:.5),this.H2(I,W,P),this.PF=Y,W.Gr>0&&-1===this.WC&&(this.WC=Y),this.PC==-1&&this.Dw()&&(this.PC=Y),this.AZ==-2&&(this.AZ=Oo(this.oE())?W.Gr:-1),this.Yf=W),this.p$(this))}; g.R.H2=function(W,Y,k){this.G9().update(W,Y,this.Yf,k)}; g.R.G5=function(){return new Vi}; g.R.Bo=function(W,Y,k,P){k=this.G5();k.W=Y;Y=pB().K;Y=Pl(I3)===0?-1:Y.isVisible()?0:1;k.K=Y;k.Gr=this.wb(W);k.VY=this.VY();k.La=P;return k}; g.R.wb=function(W){return this.opacity===0&&Ex(this.gZ,"opac")===1?0:W}; g.R.VY=function(){return!1}; g.R.lP=function(){return this.rK||this.by}; g.R.YX=function(){d2()}; g.R.aP=function(){d2()}; g.R.NS=function(){return 0}; g.R.Dw=function(){return this.NF.Dw()}; g.R.FE=function(){var W=this.A3;W=(this.hasCompleted||this.Xr())&&!W;var Y=$r().K!==2||this.Wrr;return this.xt||Y&&W?2:this.Dw()?4:3}; g.R.C2=function(){return 0};g.MF.prototype.next=function(){return g.OO}; g.OO={done:!0,value:void 0};g.MF.prototype.JL=function(){return this};g.H(yC7,Vi);var ur=oIF([void 0,1,2,3,4,8,16]),Zj=oIF([void 0,4,8,16]),OcK={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:KL("p0",Zj),p1:KL("p1",Zj),p2:KL("p2",Zj),p3:KL("p3",Zj),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:G0("mtos1",[0,2,4],!1,Zj),mtos2:G0("mtos2",[0,2,4],!1,Zj),mtos3:G0("mtos3",[0,2,4],!1,Zj),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:KL("a0",Zj),a1:KL("a1",Zj),a2:KL("a2",Zj),a3:KL("a3",Zj),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:KL("c0",Zj),c1:KL("c1",Zj),c2:KL("c2",Zj),c3:KL("c3",Zj),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:KL("qmtos",ur),qnc:KL("qnc",ur),qmv:KL("qmv",ur),qnv:KL("qnv",ur), 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:KL("ss0",Zj),ss1:KL("ss1",Zj),ss2:KL("ss2",Zj),ss3:KL("ss3",Zj),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"},uZK=Object.assign({},OcK,{avid:za("audio"),avas:"avas",vs:"vs"}),ZcB={atos:"atos",avt:G0("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(W,Y){return function(k){return k[W]===void 0&&Y!==void 0?Y:k[W]}}("ss",0), t:"t"};rr.prototype.getValue=function(){return this.K}; rr.prototype.update=function(W,Y){W>=32||(this.W&1<=.5;o8(Y.volume)&&(this.T=this.T!=-1?Math.min(this.T,Y.volume):Y.volume,this.X=Math.max(this.X,Y.volume));I&&(this.gD+=W,this.N+=T?W:0);this.W.update(Y.Gr,k.Gr,Y.W,W,P,T);this.J.update(!0,W);this.C.update(T,W);this.A5.update(k.fullscreen,W);this.Lg.update(T&&!I,W);W=Math.floor(Y.mediaTime/1E3);this.OP.update(W,Y.isVisible());this.Q5.update(W,Y.Gr>=1);this.rD.update(W, pL(Y))}};bZ2.prototype.K=function(W){this.J||(this.W(W)?(W=P82(this.N,this.T,W),this.C|=W,W=W==0):W=!1,this.J=W)};g.H(dr,bZ2);dr.prototype.W=function(){return!0}; dr.prototype.X=function(){return!1}; dr.prototype.getId=function(){var W=this,Y=Bk(LL,function(k){return k==W.T}); return he[Y].toString()}; dr.prototype.toString=function(){var W="";this.X()&&(W+="c");this.J&&(W+="s");this.C>0&&(W+=":"+this.C);return this.getId()+W};g.H(m2,dr);m2.prototype.K=function(W,Y){Y=Y===void 0?null:Y;Y!=null&&this.G.push(Y);dr.prototype.K.call(this,W)};g.H(Dq,cCV);Dq.prototype.K=function(){return null}; Dq.prototype.J=function(){return[]};g.H(FO,xr);g.R=FO.prototype;g.R.rC=function(){if(this.element){var W=this.element,Y=this.K.W.J;try{try{var k=$_S(W.getBoundingClientRect())}catch(O){k=new FG(0,0,0,0)}var P=k.right-k.left,T=k.bottom-k.top,I=lcv(W,Y),X=I.x,h=I.y;var B=new FG(Math.round(h),Math.round(X+P),Math.round(h+T),Math.round(X))}catch(O){B=BEK.clone()}this.J=B;this.W=BZ7(this,this.J)}}; g.R.jX=function(){this.X=this.K.T.W}; g.R.Sa=function(W){var Y=Ex(this.gZ,"od")==1;return Axz(W,this.X,this.element,Y)}; g.R.ZQ=function(){this.timestamp=d2()}; g.R.bZ=function(){this.ZQ();this.rC();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var W=this.element;var Y=new g.UF(W.videoWidth,W.videoHeight);W=this.W;var k=ws(W),P=W.getHeight(),T=Y.width;Y=Y.height;T<=0||Y<=0||k<=0||P<=0||(T/=Y,Y=k/P,W=W.clone(),T>Y?(k/=T,P=(P-k)/2,P>0&&(P=W.top+P,W.top=Math.round(P),W.bottom=Math.round(P+k))):(P*=T,k=Math.round((k-P)/2),k>0&&(k=W.left+k,W.left=Math.round(k),W.right=Math.round(k+P))));this.W=W}this.jX(); W=this.W;k=this.X;W=W.left<=k.right&&k.left<=W.right&&W.top<=k.bottom&&k.top<=W.bottom?new FG(Math.max(W.top,k.top),Math.min(W.right,k.right),Math.min(W.bottom,k.bottom),Math.max(W.left,k.left)):new FG(0,0,0,0);k=W.top>=W.bottom||W.left>=W.right?new FG(0,0,0,0):W;W=this.K.T;Y=T=P=0;if((this.W.bottom-this.W.top)*(this.W.right-this.W.left)>0)if(this.Sa(k))k=new FG(0,0,0,0);else{P=Ck().T;Y=new FG(0,P.height,P.width,0);var I;P=u_(k,(I=this.C)!=null?I:this.W);T=u_(k,Ck().W);Y=u_(k,Y)}I=k.top>=k.bottom|| k.left>=k.right?new FG(0,0,0,0):y7(k,-this.W.left,-this.W.top);Lk()||(T=P=0);this.N=new QY(W,this.element,this.W,I,P,T,this.timestamp,Y)}; g.R.getName=function(){return this.K.getName()};var icB=new FG(0,0,0,0);g.H(wr,FO);g.R=wr.prototype;g.R.observe=function(){this.T();return!0}; g.R.FL=function(){FO.prototype.bZ.call(this)}; g.R.ZQ=function(){}; g.R.rC=function(){}; g.R.bZ=function(){this.T();FO.prototype.bZ.call(this)}; g.R.WS=function(W){W=W.isActive();W!==this.L&&(W?this.T():(Ck().W=new FG(0,0,0,0),this.W=new FG(0,0,0,0),this.X=new FG(0,0,0,0),this.timestamp=-1));this.L=W};var ir={},PxV=(ir.firstquartile=0,ir.midpoint=1,ir.thirdquartile=2,ir.complete=3,ir);g.H(yP,Zq);g.R=yP.prototype;g.R.GX=function(){return!0}; g.R.bl=function(){return this.DP==2}; g.R.wA=function(W){return mv0(this,W,Math.max(1E4,this.J/3))}; g.R.xa=function(W,Y,k,P,T,I,X){var h=this,B=this.G(this)||{};g.tm(B,T);this.J=B.duration||this.J;this.N=B.isVpaid||this.N;this.Fr=B.isYouTube||this.Fr;pB();this.e1=!1;T=f$v(this,Y);xvz(this)===1&&(I=T);Zq.prototype.xa.call(this,W,Y,k,P,B,I,X);this.dO&&this.dO.J&&g.xh(this.X,function(O){O.K(h)})}; g.R.H2=function(W,Y,k){Zq.prototype.H2.call(this,W,Y,k);vu(this).update(W,Y,this.Yf,k);this.bz=pL(this.Yf)&&pL(Y);this.TJ==-1&&this.Q5&&(this.TJ=this.G9().J.W);this.Rs.J=0;W=this.Dw();Y.isVisible()&&so(this.Rs,"vs");W&&so(this.Rs,"vw");o8(Y.volume)&&so(this.Rs,"am");pL(Y)?so(this.Rs,"a"):so(this.Rs,"mut");this.SY&&so(this.Rs,"f");Y.K!=-1&&(so(this.Rs,"bm"),Y.K==1&&(so(this.Rs,"b"),pL(Y)&&so(this.Rs,"umutb")));pL(Y)&&Y.isVisible()&&so(this.Rs,"avs");this.bz&&W&&so(this.Rs,"avw");Y.Gr>0&&so(this.Rs, "pv");CL(this,this.G9().J.W,!0)&&so(this.Rs,"gdr");Ig(this.G9().K,1)>=2E3&&so(this.Rs,"pmx");this.e1&&so(this.Rs,"tvoff")}; g.R.IH=function(){return new AL}; g.R.G9=function(){return this.NF}; g.R.G5=function(){return new yC7}; g.R.Bo=function(W,Y,k,P){W=Zq.prototype.Bo.call(this,W,Y,k,P===void 0?-1:P);W.fullscreen=this.SY;W.paused=this.bl();W.volume=k.volume;o8(W.volume)||(this.A9++,Y=this.Yf,o8(Y.volume)&&(W.volume=Y.volume));k=k.currentTime;W.mediaTime=k!==void 0&&k>=0?k:-1;return W}; g.R.wb=function(W){return Ck(),this.SY?1:Zq.prototype.wb.call(this,W)}; g.R.NS=function(){return 1}; g.R.getDuration=function(){return this.J}; g.R.FE=function(){return this.xt?2:NiV(this)?5:this.Dw()?4:3}; g.R.C2=function(){return this.Lg?this.G9().C.J>=2E3?4:3:2}; g.R.Ns=function(W){this.jL&&this.jL.Ns(W)};var Mew=g.Bp();iFz.prototype.reset=function(){this.W=[];this.K=[]}; var xn=Hl(iFz);g.H(NF,fk);g.R=NF.prototype;g.R.getName=function(){return(this.K?this.K:this.W).getName()}; g.R.py=function(){return(this.K?this.K:this.W).py()}; g.R.OI=function(){return(this.K?this.K:this.W).OI()}; g.R.init=function(W){var Y=!1;(0,g.xh)(this.J,function(k){k.initialize()&&(Y=!0)}); Y&&(this.T=W,bh(this.W,this));return Y}; g.R.dispose=function(){(0,g.xh)(this.J,function(W){W.dispose()}); fk.prototype.dispose.call(this)}; g.R.h8=function(){return vQ(this.J,function(W){return W.ZE()})}; g.R.fB=function(){return vQ(this.J,function(W){return W.ZE()})}; g.R.UN=function(W,Y,k){return new FO(W,this.W,Y,k)}; g.R.FL=function(W){this.K=W.K};var K5z={threshold:[0,.3,.5,.75,1]};g.H(ag,FO);g.R=ag.prototype;g.R.observe=function(){var W=this;this.Kg||(this.Kg=d2());if(xB7(298,function(){return EQS(W)}))return!0; this.K.fail("msf");return!1}; g.R.unobserve=function(){if(this.T&&this.element)try{this.T.unobserve(this.element),this.L?(this.L.unobserve(this.element),this.L=null):this.G&&(this.G.disconnect(),this.G=null)}catch(W){}}; g.R.bZ=function(){var W=W4(this);W.length>0&&Yi(this,W);FO.prototype.bZ.call(this)}; g.R.rC=function(){}; g.R.Sa=function(){return!1}; g.R.jX=function(){}; g.R.py=function(){var W={};return Object.assign(this.K.py(),(W.niot_obs=this.Kg,W.niot_cbk=this.A5,W))}; g.R.getName=function(){return"nio"};g.H($i,fk);$i.prototype.getName=function(){return"nio"}; $i.prototype.fB=function(){return!Ck().K&&this.W.W.J.IntersectionObserver!=null}; $i.prototype.UN=function(W,Y,k){return new ag(W,this.W,Y,k)};g.H(ki,lh);ki.prototype.tH=function(){return Ck().W}; ki.prototype.ZE=function(){var W=s7v();this.L!==W&&(this.W!=this&&W>this.W.L&&(this.W=this,cQ(this)),this.L=W);return W==2};P4.prototype.sample=function(){Iz(this,fL(),!1)}; P4.prototype.T=function(){var W=Lk(),Y=d2();W?(Dl||(g2=Y,g.xh(xn.W,function(k){var P=k.G9();P.GJ=z0(P,Y,k.DP!=1)})),Dl=!0):(this.G=md2(this,Y),Dl=!1,Tlq=Y,g.xh(xn.W,function(k){k.A3&&(k.G9().L=Y)})); Iz(this,fL(),!W)}; var TV=Hl(P4);var gQ2=null,zV="",Ae=!1;var Q75=wsq().GM,Si=wsq().IA;var oQ5={w4D:"visible",fJ1:"audible",LgP:"time",hra:"timetype"},vQd={visible:function(W){return/^(100|[0-9]{1,2})$/.test(W)}, audible:function(W){return W=="0"||W=="1"}, timetype:function(W){return W=="mtos"||W=="tos"}, time:function(W){return/^(100|[0-9]{1,2})%$/.test(W)||/^([0-9])+ms$/.test(W)}}; e71.prototype.setTime=function(W,Y,k){Y=="ms"?(this.J=W,this.T=-1):(this.J=-1,this.T=W);this.C=k===void 0?"tos":k;return this};g.H(uk,dr);uk.prototype.getId=function(){return this.G}; uk.prototype.X=function(){return!0}; uk.prototype.W=function(W){var Y=W.G9(),k=W.getDuration();return vQ(this.L,function(P){if(P.W!=void 0)var T=L5V(P,Y);else b:{switch(P.C){case "mtos":T=P.K?Y.C.J:Y.J.W;break b;case "tos":T=P.K?Y.C.W:Y.J.W;break b}T=0}T==0?P=!1:(P=P.J!=-1?P.J:k!==void 0&&k>0?P.T*k:-1,P=P!=-1&&T>=P);return P})};g.H(Zk,C42);Zk.prototype.W=function(W){var Y=new vI1;Y.W=JL(W,OcK);Y.K=JL(W,ZcB);return Y};g.H(ik,dr);ik.prototype.W=function(W){return NiV(W)};g.H(Mu,cCV);g.H(te,dr);te.prototype.W=function(W){return W.G9().Dw()};g.H(qu,m2);qu.prototype.W=function(W){var Y=g.n$(this.G,Ex($r().gZ,"ovms"));return!W.xt&&(W.DP!=0||Y)};g.H(Rz,Mu);Rz.prototype.K=function(){return new qu(this.W)}; Rz.prototype.J=function(){return[new te("viewable_impression",this.W),new ik(this.W)]};g.H(H4,wr);H4.prototype.T=function(){var W=g.Wp("ima.admob.getViewability"),Y=Ex(this.gZ,"queryid");typeof W==="function"&&Y&&W(Y)}; H4.prototype.getName=function(){return"gsv"};g.H(nj,fk);nj.prototype.getName=function(){return"gsv"}; nj.prototype.fB=function(){var W=Ck();$r();return W.K&&!1}; nj.prototype.UN=function(W,Y,k){return new H4(this.W,Y,k)};g.H(pj,wr);pj.prototype.T=function(){var W=this,Y=g.Wp("ima.bridge.getNativeViewability"),k=Ex(this.gZ,"queryid");typeof Y==="function"&&k&&Y(k,function(P){g.Ox(P)&&W.G++;var T=P.opt_nativeViewVisibleBounds||{},I=P.opt_nativeViewHidden;W.W=keF(P.opt_nativeViewBounds||{});var X=W.K.T;X.W=I?icB.clone():keF(T);W.timestamp=P.opt_nativeTime||-1;Ck().W=X.W;P=P.opt_nativeVolume;P!==void 0&&(X.volume=P)})}; pj.prototype.getName=function(){return"nis"};g.H(GV,fk);GV.prototype.getName=function(){return"nis"}; GV.prototype.fB=function(){var W=Ck();$r();return W.K&&!1}; GV.prototype.UN=function(W,Y,k){return new pj(this.W,Y,k)};g.H(Kj,lh);g.R=Kj.prototype;g.R.ZE=function(){return this.K.cV!=null}; g.R.KQ=function(){var W={};this.OP&&(W.mraid=this.OP);this.wD&&(W.mlc=1);W.mtop=this.K.XkJ;this.G&&(W.mse=this.G);this.UP&&(W.msc=1);W.mcp=this.K.compatibility;return W}; g.R.OM=function(W){var Y=g.y0.apply(1,arguments);try{return this.K.cV[W].apply(this.K.cV,Y)}catch(k){zt(538,k,.01,function(P){P.method=W})}}; g.R.initialize=function(){var W=this;if(this.isInitialized)return!this.Le();this.isInitialized=!0;if(this.K.compatibility===2)return this.G="ng",this.fail("w"),!1;if(this.K.compatibility===1)return this.G="mm",this.fail("w"),!1;Ck().L=!0;this.J.document.readyState&&this.J.document.readyState=="complete"?cZV(this):Bu(this.J,"load",function(){pB().setTimeout(Ab(292,function(){return cZV(W)}),100)},292); return!0}; g.R.cg=function(){var W=Ck(),Y=aiS(this,"getMaxSize");W.W=new FG(0,Y.width,Y.height,0)}; g.R.LD=function(){Ck().T=aiS(this,"getScreenSize")}; g.R.dispose=function(){fiF(this);lh.prototype.dispose.call(this)};var tep=new function(W,Y){this.key=W;this.defaultValue=Y===void 0?!1:Y;this.valueType="boolean"}("45378663");g.R=Je.prototype;g.R.Bm=function(W){i_(W,!1);R7z(W)}; g.R.dN=function(){}; g.R.dJ=function(W,Y,k,P){var T=this;W=new yP(Av,W,k?Y:-1,7,this.tM(),this.iF());W.Pl=P;QdV(W.gZ);KT(W.gZ,"queryid",W.Pl);W.d1("");FA2(W,function(){return T.jd.apply(T,g.ZX(g.y0.apply(0,arguments)))},function(){return T.TN.apply(T,g.ZX(g.y0.apply(0,arguments)))}); (P=Hl(VP).W)&&D_2(W,P);this.J&&(W.Ns(this.J),this.J=null);W.uw.aE&&Hl(rZ7);return W}; g.R.WS=function(W){switch(W.OI()){case 0:if(W=Hl(VP).W)W=W.W,g.GK(W.C,this),W.N&&this.GX()&&S$7(W);rp();break;case 2:ji()}}; g.R.FL=function(){}; g.R.GX=function(){return!1}; g.R.TN=function(W,Y){W.xt=!0;switch(W.NS()){case 1:TUz(W,Y);break;case 2:this.Lw(W)}}; g.R.tF=function(W){var Y=W.G(W);Y&&(Y=Y.volume,W.Lg=o8(Y)&&Y>0);Y1z(W,0);return Uo(W,"start",Lk())}; g.R.LS=function(W,Y,k){Iz(TV,[W],!Lk());return this.b4(W,Y,k)}; g.R.b4=function(W,Y,k){return Uo(W,k,Lk())}; g.R.gK=function(W){return y$(W,"firstquartile",1)}; g.R.Yu=function(W){W.Q5=!0;return y$(W,"midpoint",2)}; g.R.sZ=function(W){return y$(W,"thirdquartile",3)}; g.R.oh=function(W){var Y=y$(W,"complete",4);eD(W);return Y}; g.R.SU=function(W){W.DP=3;return Uo(W,"error",Lk())}; g.R.cR=function(W,Y,k){Y=Lk();if(W.bl()&&!Y){var P=W.G9(),T=d2();P.L=T}Iz(TV,[W],!Y);W.bl()&&(W.DP=1);return Uo(W,k,Y)}; g.R.nj=function(W,Y){Y=this.LS(W,Y||{},"skip");eD(W);return Y}; g.R.uy=function(W,Y){i_(W,!0);return this.LS(W,Y||{},"fullscreen")}; g.R.Cj=function(W,Y){i_(W,!1);return this.LS(W,Y||{},"exitfullscreen")}; g.R.GD=function(W,Y,k){Y=W.G9();var P=d2();Y.GJ=z0(Y,P,W.DP!=1);Iz(TV,[W],!Lk());W.DP==1&&(W.DP=2);return Uo(W,k,Lk())}; g.R.UZ=function(W){Iz(TV,[W],!Lk());return W.K()}; g.R.KJ=function(W){Iz(TV,[W],!Lk());this.dB(W);eD(W);return W.K()}; g.R.jd=function(){}; g.R.Lw=function(){}; g.R.dB=function(){}; g.R.M3=function(){}; g.R.sf=function(){}; g.R.iF=function(){this.W||(this.W=this.sf());return this.W==null?new Dq:new Rz(this.W)}; g.R.tM=function(){return new Zk};g.H(ei,dr);ei.prototype.W=function(W){return W.C2()==4};g.H(oz,m2);oz.prototype.W=function(W){W=W.C2();return W==3||W==4};g.H(v4,Mu);v4.prototype.K=function(){return new oz(this.W)}; v4.prototype.J=function(){return[new ei(this.W)]};g.H(Cj,C42);Cj.prototype.W=function(W){W&&(W.e===28&&(W=Object.assign({},W,{avas:3})),W.vs===4||W.vs===5)&&(W=Object.assign({},W,{vs:3}));var Y=new vI1;Y.W=JL(W,uZK);Y.K=JL(W,ZcB);return Y};SL0.prototype.K=function(){return g.Wp(this.W)};g.H(Lj,Je);g.R=Lj.prototype;g.R.dN=function(W,Y){var k=this,P=Hl(VP);if(P.W!=null)switch(P.W.getName()){case "nis":var T=u9z(this,W,Y);break;case "gsv":T=Ot6(this,W,Y);break;case "exc":T=Ztd(this,W)}T||(Y.opt_overlayAdElement?T=void 0:Y.opt_adElement&&(T=I95(this,W,Y.opt_adElement,Y.opt_osdId)));T&&T.NS()==1&&(T.G==g.ds&&(T.G=function(I){return k.M3(I)}),BUv(this,T,Y)); return T}; g.R.M3=function(W){W.K=0;W.gD=0;if(W.T=="h"||W.T=="n"){$r();W.rD&&($r(),m9(this)!="h"&&m9(this));var Y=g.Wp("ima.common.getVideoMetadata");if(typeof Y==="function")try{var k=Y(W.Pl)}catch(T){W.K|=4}else W.K|=2}else if(W.T=="b")if(Y=g.Wp("ytads.bulleit.getVideoMetadata"),typeof Y==="function")try{k=Y(W.Pl)}catch(T){W.K|=4}else W.K|=2;else if(W.T=="ml")if(Y=g.Wp("ima.common.getVideoMetadata"),typeof Y==="function")try{k=Y(W.Pl)}catch(T){W.K|=4}else W.K|=2;else W.K|=1;W.K||(k===void 0?W.K|=8:k===null? W.K|=16:g.Ox(k)?W.K|=32:k.errorCode!=null&&(W.gD=k.errorCode,W.K|=64));k==null&&(k={});Y=k;W.L=0;for(var P in XZQ)Y[P]==null&&(W.L|=XZQ[P]);X3V(Y,"currentTime");X3V(Y,"duration");o8(k.volume)&&o8()&&(k.volume*=NaN);return k}; g.R.sf=function(){$r();m9(this)!="h"&&m9(this);var W=itF(this);return W!=null?new SL0(W):null}; g.R.Lw=function(W){!W.W&&W.xt&&Dk(this,W,"overlay_unmeasurable_impression")&&(W.W=!0)}; g.R.dB=function(W){W.Ht&&(W.Dw()?Dk(this,W,"overlay_viewable_end_of_session_impression"):Dk(this,W,"overlay_unviewable_impression"),W.Ht=!1)}; g.R.jd=function(){}; g.R.dJ=function(W,Y,k,P){if($r().flags.Ik(tep)){var T=Ex($r().gZ,"mm"),I={};(T=(I[Yr.KW]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",I[Yr.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",I)[T])&&RsF(this,T);this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&zt(1044,Error())}W=Je.prototype.dJ.call(this,W,Y,k,P);this.C&&(Y=this.X,W.C==null&&(W.C=new w7v),Y.W[W.Pl]=W.C,W.C.C=Mew);return W}; g.R.Bm=function(W){W&&W.NS()==1&&this.C&&delete this.X.W[W.Pl];return Je.prototype.Bm.call(this,W)}; g.R.iF=function(){this.W||(this.W=this.sf());return this.W==null?new Dq:this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new v4(this.W):new Rz(this.W)}; g.R.tM=function(){return this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Cj:new Zk}; g.R.Ns=function(W,Y,k,P,T){Y=new FG(k,Y+P,k+T,Y);(W=cu(xn,W))?W.Ns(Y):this.J=Y}; var qFc=r2(193,nW5,void 0,jFS);g.N6("Goog_AdSense_Lidar_sendVastEvent",qFc);var R0c=Ab(194,function(W,Y){Y=Y===void 0?{}:Y;W=qL2(Hl(Lj),W,Y);return Htz(W)}); g.N6("Goog_AdSense_Lidar_getViewability",R0c);var Hc$=r2(195,function(){return tVS()}); g.N6("Goog_AdSense_Lidar_getUrlSignalsArray",Hc$);var n$9=Ab(196,function(){return JSON.stringify(tVS())}); g.N6("Goog_AdSense_Lidar_getUrlSignalsList",n$9);var Kj6=g.iF(["//ep2.adtrafficquality.google/sodar/",""]),EWd=g.iF(["//tpc.googlesyndication.com/sodar/",""]);g.H(bk,Error);g.H(fj,g.e);fj.prototype.MC=function(){return this.wpc.f()}; fj.prototype.Yg=function(W){this.wpc.c(W)}; fj.prototype.Ly=function(W){return this.wpc.m(AE6(W))}; fj.prototype.R_=function(W){return this.wpc.mws(AE6(W))}; g.H(c4,g.e);c4.prototype.snapshot=function(W){return this.W5.s(Object.assign({},W.mO&&{c:W.mO},W.N1&&{s:W.N1},W.l9!==void 0&&{p:W.l9}))}; c4.prototype.Vv=function(W){this.W5.e(W)}; c4.prototype.bP=function(){return this.W5.l()};g.H(Nu,g.e);Nu.prototype.share=function(){if(this.Xr())throw Error("E:AD");this.K++;return this}; Nu.prototype.dispose=function(){--this.K||g.e.prototype.dispose.call(this)};Fj0.prototype.NB=function(W,Y){this.W.NB("/client_streamz/bg/frs",W,Y)}; w36.prototype.NB=function(W,Y,k,P,T,I){this.W.NB("/client_streamz/bg/wrl",W,Y,k,P,T,I)}; QF2.prototype.Vt=function(W,Y){this.W.vH("/client_streamz/bg/ec",W,Y)}; yE5.prototype.NB=function(W,Y,k){this.W.NB("/client_streamz/bg/el",W,Y,k)}; es0.prototype.Vt=function(W,Y){this.W.vH("/client_streamz/bg/cec",W,Y)}; oW5.prototype.Vt=function(W,Y){this.W.vH("/client_streamz/bg/po/csc",W,Y)}; vWX.prototype.Vt=function(W,Y){this.W.vH("/client_streamz/bg/po/ctav",W,Y)}; C81.prototype.Vt=function(W,Y){this.W.vH("/client_streamz/bg/po/cwsc",W,Y)};g.H(Ljz,nt);g.H(Ye,nt);var XM=[1,2,3];var pZK=[0,XM,P7K,VVz,$Lj];var G6h=[0,jF,[0,Cjh,lRj]];g.H($e,nt);var I5=[1,2,3];var Kui=[0,I5,cmK,USz,X1,G6h];g.H(ke,nt);var E$9=[0,jF,pZK,Kui];var JQc=[0,Tk];g.H(PI,nt);var spw=[0,Tk,-1,YFw];var rQw=[0,Tk,-1,xSw,YFw];g.H(T9,nt);var ZJ6=[1,2,3];var AQN=[0,ZJ6,X1,spw,X1,rQw,X1,JQc];g.H(jR,nt);jR.prototype.Y$=function(){var W=T3(this,3,JC,3,!0);lq(W);return W[void 0]};jR.prototype.J=pL0([0,Tk,AQN,k6K,jF,E$9,NYh,aR1]);g.H(l96,nt);g.R=SR.prototype;g.R.isEnabled=function(){if(!g.V0.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{k_:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.R.set=function(W,Y,k){var P=!1;if(typeof k==="object"){var T=k.LB1;P=k.secure||!1;var I=k.domain||void 0;var X=k.path||void 0;var h=k.k_}if(/[;=\s]/.test(W))throw Error('Invalid cookie name "'+W+'"');if(/[;\r\n]/.test(Y))throw Error('Invalid cookie value "'+Y+'"');h===void 0&&(h=-1);k=I?";domain="+I:"";X=X?";path="+X:"";P=P?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.W.cookie=W+"="+Y+k+X+h+P+(T!=null?";samesite="+ T:"")}; g.R.get=function(W,Y){for(var k=W+"=",P=(this.W.cookie||"").split(";"),T=0,I;T=0;Y--)this.remove(W[Y])}; var JB=new SR(typeof document=="undefined"?null:document);BI.prototype.compress=function(W){var Y,k,P,T;return g.D(function(I){switch(I.W){case 1:return Y=new CompressionStream("gzip"),k=(new Response(Y.readable)).arrayBuffer(),P=Y.writable.getWriter(),g.m(I,P.write((new TextEncoder).encode(W)),2);case 2:return g.m(I,P.close(),3);case 3:return T=Uint8Array,g.m(I,k,4);case 4:return I.return(new T(I.K))}})}; BI.prototype.isSupported=function(W){return W<1024?!1:typeof CompressionStream!=="undefined"};g.H(Ou,nt);up.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; up.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.K=this.W())}; up.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; up.prototype.tick=function(){var W=this;if(this.enabled){var Y=Math.max(this.W()-this.K,0);Y0?k:void 0));k=Ws(k,4,u4(T>0?T:void 0));k=Ws(k,5,u4(I>0?I:void 0));T=k.h5;I=T[e9]|0;k=U$(k,I)?k:l4(k,T,I)?b4(k,T):new k.constructor(Up(T,I,!0));KF(X,M4,10,k)}X=this.W.clone();k=Date.now().toString();X=Ws(X,4,pZ(k));W=E1(X,KH,3,W.slice());P&&(X=new Zv,P=Ws(X,13,u4(P)),X=new ip, P=KF(X,Zv,2,P),X=new G9,P=KF(X,ip,1,P),P=wl(P,2,9),KF(W,G9,18,P));Y&&Di(W,14,Y);return W};g.z9.prototype.K=0;g.z9.prototype.reset=function(){this.W=this.J=this.T;this.K=0}; g.z9.prototype.getValue=function(){return this.J};g.H(Vb,nt);var z0c=Nm(Vb);g.H(Rrq,nt);var Mo;Mo=new HX5;g.H(gT,g.e);g.R=gT.prototype;g.R.iz=function(){Dv(this);this.K.stop();this.OP.stop();g.e.prototype.iz.call(this)}; g.R.dispatch=function(W){if(W instanceof KH)this.log(W);else try{var Y=new KH,k=W.WK();var P=gl(Y,8,k);this.log(P)}catch(T){FM(this,4,1)}}; g.R.log=function(W){FM(this,2,1);if(this.UP){W=W.clone();var Y=this.V5++;W=Di(W,21,Y);this.componentId&&gl(W,26,this.componentId);Y=W;var k=Nv(Y,1);var P=P===void 0?!1:P;var T=typeof k;P=k==null?k:T==="bigint"?String(RX(64,k)):Op(k)?T==="string"?qv(k):P?H7(k):nZ(k):void 0;P==null&&(P=Date.now(),P=Number.isFinite(P)?P.toString():"0",Ws(Y,1,pZ(P)));P=Nv(Y,15);P!=null&&(typeof P==="bigint"?en(P)?P=Number(P):(P=RX(64,P),P=en(P)?Number(P):String(P)):P=Op(P)?typeof P==="number"?nZ(P):qv(P):void 0);P!=null|| Di(Y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(P=this.experimentIds.clone(),KF(Y,Ou,16,P));FM(this,1,1);Y=this.W.length-1E3+1;Y>0&&(this.W.splice(0,Y),this.T+=Y,FM(this,3,Y));this.W.push(W);this.Li||this.K.enabled||this.K.start()}}; g.R.flush=function(W,Y){var k=this;if(this.W.length===0)W&&W();else if(this.TJ&&this.A5)this.J.K=3,M7C(this);else{var P=Date.now();if(this.GJ>P&&this.gD0&&(k.gD=Date.now(),k.GJ=k.gD+M);M=OK(di);var G;yL&&M&&((G=t.h5[M])==null?void 0:G[175237375])!=null&&wZ(KUj,3);a:{var J=J===void 0?!1:J;if(OK(E8K)&&OK(di)&&void 0===E8K){G=t.h5;M=G[di];if(!M)break a;if(M=M.JG)try{M(G,175237375,dS$);break a}catch(d){KB(d)}}J&&(J=t.h5, (G=OK(di))&&G in J&&(J=J[G])&&delete J[175237375])}J=Mo.W?Mo.K(t,Mo.W,175237375,Mo.J):Mo.K(t,175237375,null,Mo.J);if(J=J===null?void 0:J)J=s1(J,1,-1),J!==-1&&(k.C=new g.z9(J<1?1:J,3E5,.1),k.K.setInterval(k.C.getValue()))}}W&&W();k.X=0},u=function(M,t){var q=G3(I,KH,3); var G=Number(wZd(I,14));g.dT(k.C);k.K.setInterval(k.C.getValue());M===401&&X&&(k.Fr=X);G&&(k.T+=G);t===void 0&&(t=k.isRetryable(M));t&&(k.W=q.concat(k.W),k.Li||k.K.enabled||k.K.start());FM(k,7,1);Y&&Y("net-send-failed",M);++k.X},Z=function(){k.network&&k.network.send(B,O,u)}; h?h.then(function(M){FM(k,5,T);B.requestHeaders["Content-Encoding"]="gzip";B.requestHeaders["Content-Type"]="application/binary";B.body=M;B.jf=2;Z()},function(){FM(k,6,T); Z()}):Z()}}}}; g.R.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};wT.prototype.send=function(W,Y,k){var P=this,T,I,X,h,B,O,u,Z,M,t;return g.D(function(q){switch(q.W){case 1:return I=(T=P.wR?new AbortController:void 0)?setTimeout(function(){T.abort()},W.timeoutMillis):void 0,g.KC(q,2,3),X=Object.assign({},{method:W.requestType, headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&T?T.signal:null}),g.m(q,fetch(W.url,X),5);case 5:h=q.K;if(h.status!==200){(B=k)==null||B(h.status);q.oi(3);break}if((O=Y)==null){q.oi(7);break}return g.m(q,h.text(),8);case 8:O(q.K);case 7:case 3:g.DX(q);clearTimeout(I);g.gv(q,0);break;case 2:u=g.Aq(q);switch((Z=u)==null?void 0:Z.name){case "AbortError":(M=k)==null||M(408);break;default:(t=k)==null||t(400)}q.oi(3)}})}; wT.prototype.Bp=function(){return 4};g.H(QS,g.e);QS.prototype.fd=function(){this.C=!0;return this}; QS.prototype.build=function(){this.network||(this.network=new wT);var W=new gT({logSource:this.logSource,Z$:this.Z$?this.Z$:ktz,sessionIndex:this.sessionIndex,n7h:this.hU,fC:this.T,Li:!1,fd:this.C,q7:this.q7,network:this.network});g.v(this,W);if(this.K){var Y=this.K,k=AW(W.J);gl(k,7,Y)}W.G=new BI;this.componentId&&(W.componentId=this.componentId);this.V3&&(W.V3=this.V3);this.pageId&&(W.pageId=this.pageId);this.W&&((k=this.W)?(W.experimentIds||(W.experimentIds=new Ou),Y=W.experimentIds,k=k.WK(),gl(Y, 4,k)):W.experimentIds&&Ws(W.experimentIds,4));this.J&&(W.TJ=W.A5);B20(W.J);this.network.TV&&this.network.TV(this.logSource);this.network.YE5&&this.network.YE5(W);return W};g.H(yS,g.e);yS.prototype.flush=function(W){W=W||[];if(W.length){for(var Y=new l96,k=[],P=0;P-1?(Y=W[X],k||(Y.ut=!1)):(Y=new KmX(Y,this.src,I,!!P,T),Y.ut=k,W.push(Y));return Y}; g.R.remove=function(W,Y,k,P){W=W.toString();if(!(W in this.listeners))return!1;var T=this.listeners[W];Y=xe(T,Y,k,P);return Y>-1?(lp(T[Y]),g.p$(T,Y),T.length==0&&(delete this.listeners[W],this.W--),!0):!1}; g.R.removeAll=function(W){W=W&&W.toString();var Y=0,k;for(k in this.listeners)if(!W||k==W){for(var P=this.listeners[k],T=0;T-1?W[T]:null}; g.R.hasListener=function(W,Y){var k=W!==void 0,P=k?W.toString():"",T=Y!==void 0;return g.Y8(this.listeners,function(I){for(var X=0;X>>0);g.uQ(g.S2,g.e);g.S2.prototype[pQ0]=!0;g.R=g.S2.prototype;g.R.addEventListener=function(W,Y,k,P){g.VS(this,W,Y,k,P)}; g.R.removeEventListener=function(W,Y,k,P){dH0(this,W,Y,k,P)}; g.R.dispatchEvent=function(W){var Y=this.F0;if(Y){var k=[];for(var P=1;Y;Y=Y.F0)k.push(Y),++P}Y=this.Tz;P=W.type||W;if(typeof W==="string")W=new g.CH(W,Y);else if(W instanceof g.CH)W.target=W.target||Y;else{var T=W;W=new g.CH(P,Y);g.tm(W,T)}T=!0;var I;if(k)for(I=k.length-1;!W.K&&I>=0;I--){var X=W.currentTarget=k[I];T=hU(X,P,!0,W)&&T}W.K||(X=W.currentTarget=Y,T=hU(X,P,!0,W)&&T,W.K||(T=hU(X,P,!1,W)&&T));if(k)for(I=0;!W.K&&I0){this.K--;var W=this.W;this.W=W.next;W.next=null}else W=this.J();return W};var u3;i3.prototype.add=function(W,Y){var k=Q8F.get();k.set(W,Y);this.K?this.K.next=k:this.W=k;this.K=k}; i3.prototype.remove=function(){var W=null;this.W&&(W=this.W,this.W=this.W.next,this.W||(this.K=null),W.next=null);return W}; var Q8F=new B9(function(){return new MW},function(W){return W.reset()}); MW.prototype.set=function(W,Y){this.W=W;this.scope=Y;this.next=null}; MW.prototype.reset=function(){this.next=this.scope=this.W=null};var tU,pv=!1,FmV=new i3;yb2.prototype.reset=function(){this.context=this.K=this.J=this.W=null;this.T=!1}; var eKS=new B9(function(){return new yb2},function(W){W.reset()}); g.EJ.prototype.then=function(W,Y,k){return xHS(this,OJ(typeof W==="function"?W:null),OJ(typeof Y==="function"?Y:null),k)}; g.EJ.prototype.$goog_Thenable=!0;g.R=g.EJ.prototype;g.R.finally=function(W){var Y=this;W=OJ(W);return new g.EJ(function(k,P){LmS(Y,function(T){W();k(T)},function(T){W(); P(T)})})}; g.R.MA=function(W,Y){return xHS(this,null,OJ(W),Y)}; g.R.catch=g.EJ.prototype.MA;g.R.cancel=function(W){if(this.W==0){var Y=new dg(W);g.GR(function(){UHS(this,Y)},this)}}; g.R.P_5=function(W){this.W=0;Kv(this,2,W)}; g.R.wK5=function(W){this.W=0;Kv(this,3,W)}; g.R.V_=function(){for(var W;W=llv(this);)bkq(this,W,this.W,this.G);this.X=!1}; var alF=KB;g.uQ(dg,Zc);dg.prototype.name="cancel";g.uQ(g.mQ,g.S2);g.R=g.mQ.prototype;g.R.enabled=!1;g.R.kq=null;g.R.setInterval=function(W){this.z9=W;this.kq&&this.enabled?(this.stop(),this.start()):this.kq&&this.stop()}; g.R.EHr=function(){if(this.enabled){var W=g.Bp()-this.FH;W>0&&W0&&(this.getStatus(),this.X=setTimeout(this.LV.bind(this), this.A5)),this.getStatus(),this.N=!0,this.W.send(W),this.N=!1}catch(X){this.getStatus(),ZLv(this,X)}}; g.R.LV=function(){typeof Cv!="undefined"&&this.W&&(this.T="Timed out after "+this.A5+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.R.abort=function(W){this.W&&this.J&&(this.getStatus(),this.J=!1,this.C=!0,this.W.abort(),this.C=!1,this.K=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),v9(this))}; g.R.iz=function(){this.W&&(this.J&&(this.J=!1,this.C=!0,this.W.abort(),this.C=!1),v9(this,!0));g.ox.Ku.iz.call(this)}; g.R.aG=function(){this.Xr()||(this.wD||this.N||this.C?iLF(this):this.Eqr())}; g.R.Eqr=function(){iLF(this)}; g.R.isActive=function(){return!!this.W}; g.R.isComplete=function(){return g.Lv(this)==4}; g.R.getStatus=function(){try{return g.Lv(this)>2?this.W.status:-1}catch(W){return-1}}; g.R.getResponseHeader=function(W){if(this.W&&this.isComplete())return W=this.W.getResponseHeader(W),W===null?void 0:W}; g.R.getLastError=function(){return typeof this.T==="string"?this.T:String(this.T)};xd.prototype.send=function(W,Y,k){Y=Y===void 0?function(){}:Y; k=k===void 0?function(){}:k; OLC(W.url,function(P){P=P.target;UJ(P)?Y(g.l3(P)):k(P.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)}; xd.prototype.Bp=function(){return 1};Vx.prototype.done=function(){this.logger.Ji(this.event,fv()-this.startTime)}; g.H(NW,Nu);g.H(Wa,NW);g.R=Wa.prototype;g.R.I_=function(){}; g.R.pI=function(){}; g.R.Ji=function(){}; g.R.kJ=function(){}; g.R.PD=function(){}; g.R.x_=function(W,Y,k,P){return P}; g.R.fR=function(){}; g.R.xo=function(){}; g.R.ZB=function(){}; g.H(Yw,NW);g.R=Yw.prototype;g.R.update=function(W){this.logger.dispose();this.logger=W}; g.R.pI=function(W){this.logger.pI(W)}; g.R.Ji=function(W,Y){this.logger.Ji(W,Y)}; g.R.kJ=function(W){this.logger.kJ(W)}; g.R.PD=function(){this.logger.PD()}; g.R.x_=function(W,Y,k,P){return this.logger.x_(W,Y,k,P)}; g.R.fR=function(W){this.logger.fR(W)}; g.R.xo=function(W){this.logger.xo(W)}; g.R.ZB=function(W){this.logger.ZB(W)}; g.R.I_=function(W){this.logger.I_(W)}; g.H(RaV,g.e);g.H($w,NW);g.R=$w.prototype;g.R.I_=function(W){this.metrics.HuJ.NB(W,this.Af)}; g.R.pI=function(W){this.metrics.eventCount.Vt(W,this.Af)}; g.R.Ji=function(W,Y){this.metrics.dg.NB(Y,W,this.Af)}; g.R.kJ=function(W){this.metrics.errorCount.Vt(W,this.Af)}; g.R.x_=function(W,Y,k,P){function T(h){if(!I.Xr()){var B=fv()-X;I.metrics.I9a.NB(B,W,k,h,Y,I.Af)}} var I=this,X=fv();P.then(function(){return void T(0)},function(h){return void T(h instanceof wg?h.code:-1)}); return P}; g.R.fR=function(W){this.metrics.j75.Vt(W,this.Af)}; g.R.xo=function(W){this.metrics.f9.Vt(W,this.Af)}; g.R.ZB=function(W){this.metrics.xI6.Vt(W,this.Af)}; g.H(kw,$w);kw.prototype.PD=function(){HL2(this.W)};g.H(Pa,nt);g.H(Tu,nt);g.H(jd,nt);var DFF=Nm(jd),pu0=function(W){return Bl(function(Y){return Y instanceof W&&!U$(Y)})}(jd); jd.messageId="bfkj";g.H(V$,nt);g.H(Iv,nt);var G00=Nm(Iv);g.H(Sd,g.e);Sd.prototype.snapshot=function(W){if(this.Xr())throw Error("Already disposed");this.logger.pI("n");var Y=this.logger.share();return this.J.then(function(k){var P=k.F9;return new Promise(function(T){var I=new Vx(Y,"n");P(function(X){I.done();Y.I_(X.length);Y.PD();Y.dispose();T(X)},[W.mO, W.N1,W.aR,W.l9])})})}; Sd.prototype.Iq=function(W){var Y=this;if(this.Xr())throw Error("Already disposed");this.logger.pI("n");var k=ax(this.logger,function(){return Y.T([W.mO,W.N1,W.aR,W.l9])},"n"); this.logger.I_(k.length);this.logger.PD();return k}; Sd.prototype.Vv=function(W){this.J.then(function(Y){var k;(k=Y.hJg)==null||k(W)})}; Sd.prototype.bP=function(){return this.logger.share()};g.H(Ov,nt);g.H(uK,nt);Zu.prototype.Ld=function(W){return Qg6(this,W,new Wa,0)};g.H(iK,g.e);iK.prototype.snapshot=function(W){var Y=this;return g.D(function(k){switch(k.W){case 1:if(Y.Xr())throw Error("Already disposed");if(Y.K||Y.G){k.oi(2);break}return g.m(k,Y.C.promise,2);case 2:if(!Y.K){k.oi(4);break}return g.m(k,Y.K.snapshot(W),5);case 5:return k.return(k.K);case 4:throw Y.G;}})}; iK.prototype.Vv=function(W){var Y,k;(Y=this.K)==null||(k=Y.Vv)==null||k.call(Y,W)}; iK.prototype.handleError=function(W){if(!this.Xr()){this.G=W;this.C.resolve();var Y,k;(k=(Y=this.options).qRD)==null||k.call(Y,W)}}; iK.prototype.bP=function(){return this.logger.share()}; var onv={Gd6:432E5,zl:3E5,i$:10,hO:1E4,lX:3E4,Pzh:3E4,tya:6E4,DL:1E3,k6:6E4,Q_:6E5,B0:.25,fU:2,maxAttempts:10};var DLK,fq2=(DLK=Math.imul)!=null?DLK:function(W,Y){return W*Y|0},Rv=[196, 200,224,18];Ha.prototype.WK=function(){return String(this.W)+","+this.K.join()}; Ha.prototype.b_=function(W,Y){var k=void 0;if(this.K[this.W]!==W){var P=this.K.indexOf(W);P!==-1?(this.K.splice(P,1),P0;)Y[k++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return Y.join("")}};g.H(pM,g.e);pM.prototype.R_=function(W,Y){var k=this.Ly(W);Y==null||Y(k);return ax(this.logger,function(){return g.Jx(k,2)},this.K)}; g.H(Ev,pM);Ev.prototype.Ly=function(W,Y){var k=this;this.logger.pI(this.W);++this.C>=this.X&&this.J.resolve();var P=W();W=ax(this.logger,function(){return k.T(P)},"C"); if(W===void 0)throw new bk(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new bk(18,"ODM:Invalid");Y==null||Y(W);return W}; g.H(JR,pM);JR.prototype.Ly=function(){return this.T}; g.H(rM,pM);rM.prototype.Ly=function(){var W=this;return ax(this.logger,function(){return rZ(W.T)},"d")}; rM.prototype.R_=function(){return this.T}; g.H(AR,pM);AR.prototype.Ly=function(){if(this.T)return this.T;this.T=SE2(this,function(W){return"_"+X4d(W)}); return SE2(this,function(W){return W})}; g.H(dM,pM);dM.prototype.Ly=function(){var W=Math.floor(Date.now()/1E3),Y=[Math.random()*255,Math.random()*255],k=Y.concat([this.T&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+k.length);W[0]=34;W[1]=k.length;W.set(k,2);k=W.subarray(2);for(var P=Y=Y.length;P150))try{this.cache=new kV7(W,this.logger)}catch(Y){this.reportError(new bk(22,"GBJ:init",Y))}}; g.R.reportError=function(W){this.logger.kJ(W.code);this.onError(W);return W}; var Ojq=function(W){return Bl(function(Y){if(!pkz(Y))return!1;for(var k=g.p(Object.entries(W)),P=k.next();!P.done;P=k.next()){var T=g.p(P.value);P=T.next().value;T=T.next().value;if(!(P in Y)){if(T.Q5D===!0)continue;return!1}if(!T(Y[P]))return!1}return!0})}({W5:function(W){return Bl(function(Y){return Y instanceof W})}(iK)},"");var f45=(new Date).getTime();g.H(wM,nt);var g$1=Nm(wM);niC.prototype.getMetadata=function(){return this.metadata};QN.prototype.getMetadata=function(){return this.metadata}; QN.prototype.getStatus=function(){return this.status};yN.prototype.G=function(W,Y){Y=Y===void 0?{}:Y;return new niC(W,this,Y)}; yN.prototype.getName=function(){return this.name};var Fu9=new yN("/google.internal.waa.v1.Waa/Create",Ov,wM,function(W){return W.WK()},g$1);g.H(ed,nt);var F2d=new yN("/google.internal.waa.v1.Waa/GenerateIT",uK,ed,function(W){return W.WK()},Nm(ed));var Np0=new Set(["SAPISIDHASH","APISIDHASH"]);g.H(ov,nt);ov.prototype.getValue=function(){var W=Nv(this,2);if(Array.isArray(W)||W instanceof nt)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return I7(this,2)};g.H(va,nt);va.prototype.getMessage=function(){return AZ(this,2)}; var szV=Nm(va);CM.prototype.al=function(W,Y){W=="data"?this.J.push(Y):W=="metadata"?this.C.push(Y):W=="status"?this.X.push(Y):W=="end"?this.T.push(Y):W=="error"&&this.K.push(Y);return this}; CM.prototype.removeListener=function(W,Y){W=="data"?ca(this.J,Y):W=="metadata"?ca(this.C,Y):W=="status"?ca(this.X,Y):W=="end"?ca(this.T,Y):W=="error"&&ca(this.K,Y);return this}; CM.prototype.cancel=function(){this.W.abort()}; CM.prototype.cancel=CM.prototype.cancel;CM.prototype.removeListener=CM.prototype.removeListener;CM.prototype.on=CM.prototype.al;g.H(GV6,Error);g.uQ(g.xw,ha2);g.xw.prototype.W=function(){var W=new fM(this.T,this.J);this.K&&W.setCredentialsMode(this.K);return W}; g.xw.prototype.setCredentialsMode=function(W){this.K=W}; g.uQ(fM,g.S2);g.R=fM.prototype;g.R.open=function(W,Y){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Kg=W;this.A5=Y;this.readyState=1;VN(this)}; g.R.send=function(W){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.L.signal.aborted)throw this.abort(),Error("Request was aborted.");this.W=!0;var Y={headers:this.N,method:this.Kg,credentials:this.C,cache:void 0,signal:this.L.signal};W&&(Y.body=W);(this.wD||g.V0).fetch(new Request(this.A5,Y)).then(this.JF.bind(this),this.L2.bind(this))}; g.R.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.L.abort();this.J&&this.J.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.W&&this.readyState!=4&&(this.W=!1,N$(this));this.readyState=0}; g.R.JF=function(W){if(this.W&&(this.T=W,this.K||(this.status=this.T.status,this.statusText=this.T.statusText,this.K=W.headers,this.readyState=2,VN(this)),this.W&&(this.readyState=3,VN(this),this.W)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.Pi.bind(this),this.L2.bind(this));else if(typeof g.V0.ReadableStream!=="undefined"&&"body"in W){this.J=W.body.getReader();if(this.X){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;reV(this)}else W.text().then(this.wK.bind(this),this.L2.bind(this))}; g.R.LO=function(W){if(this.W){if(this.X&&W.value)this.response.push(W.value);else if(!this.X){var Y=W.value?W.value:new Uint8Array(0);if(Y=this.G.decode(Y,{stream:!W.done}))this.response=this.responseText+=Y}W.done?N$(this):VN(this);this.readyState==3&&reV(this)}}; g.R.wK=function(W){this.W&&(this.response=this.responseText=W,N$(this))}; g.R.Pi=function(W){this.W&&(this.response=W,N$(this))}; g.R.L2=function(){this.W&&N$(this)}; g.R.setRequestHeader=function(W,Y){this.N.append(W,Y)}; g.R.getResponseHeader=function(W){return this.K?this.K.get(W.toLowerCase())||"":""}; g.R.getAllResponseHeaders=function(){if(!this.K)return"";for(var W=[],Y=this.K.entries(),k=Y.next();!k.done;)k=k.value,W.push(k[0]+": "+k[1]),k=Y.next();return W.join("\r\n")}; g.R.setCredentialsMode=function(W){this.C=W}; Object.defineProperty(fM.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});g.av.prototype.toString=function(){var W=[],Y=this.C;Y&&W.push(jS(Y,wZj,!0),":");var k=this.W;if(k||Y=="file")W.push("//"),(Y=this.L)&&W.push(jS(Y,wZj,!0),"@"),W.push(g.JQ(k).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),k=this.J,k!=null&&W.push(":",String(k));if(k=this.K)this.W&&k.charAt(0)!="/"&&W.push("/"),W.push(jS(k,k.charAt(0)=="/"?Qpw:yQc,!0));(k=this.T.toString())&&W.push("?",k);(k=this.X)&&W.push("#",jS(k,e0j));return W.join("")}; g.av.prototype.resolve=function(W){var Y=this.clone(),k=!!W.C;k?g.WH(Y,W.C):k=!!W.L;k?Y.L=W.L:k=!!W.W;k?g.YA(Y,W.W):k=W.J!=null;var P=W.K;if(k)g.$A(Y,W.J);else if(k=!!W.K){if(P.charAt(0)!="/")if(this.W&&!this.K)P="/"+P;else{var T=Y.K.lastIndexOf("/");T!=-1&&(P=Y.K.slice(0,T+1)+P)}T=P;if(T==".."||T==".")P="";else if(g.dY(T,"./")||g.dY(T,"/.")){P=Am(T,"/");T=T.split("/");for(var I=[],X=0;X1||I.length==1&&I[0]!="")&&I.pop(), P&&X==T.length&&I.push("")):(I.push(h),P=!0)}P=I.join("/")}else P=T}k?Y.K=P:k=W.T.toString()!=="";k?kA(Y,W.T.clone()):k=!!W.X;k&&(Y.X=W.X);return Y}; g.av.prototype.clone=function(){return new g.av(this)}; var wZj=/[#\/\?@]/g,yQc=/[#\?:]/g,Qpw=/[#\?]/g,Du7=/[#\?@]/g,e0j=/#/g;g.R=To.prototype;g.R.add=function(W,Y){SS(this);this.J=null;W=hP(this,W);var k=this.W.get(W);k||this.W.set(W,k=[]);k.push(Y);this.K=this.K+1;return this}; g.R.remove=function(W){SS(this);W=hP(this,W);return this.W.has(W)?(this.J=null,this.K=this.K-this.W.get(W).length,this.W.delete(W)):!1}; g.R.clear=function(){this.W=this.J=null;this.K=0}; g.R.isEmpty=function(){SS(this);return this.K==0}; g.R.forEach=function(W,Y){SS(this);this.W.forEach(function(k,P){k.forEach(function(T){W.call(Y,T,P,this)},this)},this)}; g.R.dU=function(){SS(this);for(var W=Array.from(this.W.values()),Y=Array.from(this.W.keys()),k=[],P=0;P0?String(W[0]):Y}; g.R.toString=function(){if(this.J)return this.J;if(!this.W)return"";for(var W=[],Y=Array.from(this.W.keys()),k=0;k>>3;I.J!=1&&I.J!=2&&I.J!=15&&Zx(I,X,h,"unexpected tag");I.W=1;I.K=0;I.T=0} function k(B){I.T++;I.T==5&&B&240&&Zx(I,X,h,"message length too long");I.K|=(B&127)<<(I.T-1)*7;B&128||(I.W=2,I.L=0,typeof Uint8Array!=="undefined"?I.C=new Uint8Array(I.K):I.C=Array(I.K),I.K==0&&T())} function P(B){I.C[I.L++]=B;I.L==I.K&&T()} function T(){if(I.J<15){var B={};B[I.J]=I.C;I.G.push(B)}I.W=0} for(var I=this,X=W instanceof Array?W:new Uint8Array(W),h=0;h0?W:null};i9.prototype.isInputValid=function(){return this.W===null}; i9.prototype.JD=function(){return this.W}; i9.prototype.EN=function(){return!1}; i9.prototype.parse=function(W){this.W!==null&&viv(this,W,"stream already broken");var Y=null;try{var k=this.J;k.J||oiF(k,W,"stream already broken");k.W+=W;var P=Math.floor(k.W.length/4);if(P==0)var T=null;else{try{var I=z55(k.W.slice(0,P*4))}catch(X){oiF(k,k.W,X.message)}k.K+=P*4;k.W=k.W.slice(P*4);T=I}Y=T===null?null:this.T.parse(T)}catch(X){viv(this,W,X.message)}this.K+=W.length;return Y};var v$z={INIT:0,wS:1,CA:2,Lo:3,yE:4,Av:5,STRING:6,oa:7,mR:8,Nr:9,ag:10,ET:11,aO:12,Et:13,lQ:14,eE:15,Z7:16,fG:17,kT:18,EW:19,Se:20};g.R=tP.prototype;g.R.isInputValid=function(){return this.C!=3}; g.R.JD=function(){return this.N}; g.R.done=function(){return this.C===2}; g.R.EN=function(){return!1}; g.R.parse=function(W){function Y(){for(;M0;)if(q=W[M++], I.L===4?I.L=0:I.L++,!q)break a;if(q==='"'&&!I.G){I.W=P();break}if(q==="\\"&&!I.G&&(I.G=!0,q=W[M++],!q))break;if(I.G)if(I.G=!1,q==="u"&&(I.L=1),q=W[M++])continue;else break;h.lastIndex=M;q=h.exec(W);if(!q){M=W.length+1;break}M=q.index+1;q=W[q.index];if(!q)break}I.J+=M-G;continue;case B.Nr:if(!q)continue;q==="r"?I.W=B.ag:qa(I,W,M);continue;case B.ag:if(!q)continue;q==="u"?I.W=B.ET:qa(I,W,M);continue;case B.ET:if(!q)continue;q==="e"?I.W=P():qa(I,W,M);continue;case B.aO:if(!q)continue;q==="a"?I.W=B.Et: qa(I,W,M);continue;case B.Et:if(!q)continue;q==="l"?I.W=B.lQ:qa(I,W,M);continue;case B.lQ:if(!q)continue;q==="s"?I.W=B.eE:qa(I,W,M);continue;case B.eE:if(!q)continue;q==="e"?I.W=P():qa(I,W,M);continue;case B.Z7:if(!q)continue;q==="u"?I.W=B.fG:qa(I,W,M);continue;case B.fG:if(!q)continue;q==="l"?I.W=B.kT:qa(I,W,M);continue;case B.kT:if(!q)continue;q==="l"?I.W=P():qa(I,W,M);continue;case B.EW:q==="."?I.W=B.Se:qa(I,W,M);continue;case B.Se:if("0123456789.eE+-".indexOf(q)!==-1)continue;else M--,I.J--,I.W= P();continue;default:qa(I,W,M)}}} function P(){var q=X.pop();return q!=null?q:B.wS} function T(q){I.K>1||(q||(q=Z===-1?I.T+W.substring(u,M):W.substring(Z,M)),I.A5?I.X.push(q):I.X.push(JSON.parse(q)),Z=M)} for(var I=this,X=I.Kg,h=I.wD,B=v$z,O=W.length,u=0,Z=-1,M=0;M0?(t=I.X,I.X=[],t):null}return null};R2.prototype.isInputValid=function(){return this.C===null}; R2.prototype.JD=function(){return this.C}; R2.prototype.EN=function(){return!1}; R2.prototype.parse=function(W){function Y(B){I.K=6;I.C="The stream is broken @"+I.W+"/"+X+". Error: "+B+". With input:\n";throw Error(I.C);} function k(){I.J=new tP({OI5:!0,SP:!0})} function P(B){if(B)for(var O=0;O1)&&Y("extra status: "+B);I.X=!0;var O={};O[2]=B[0];I.T.push(O)}} for(var I=this,X=0;X0?(W=I.T,I.T=[],W):null};HH.prototype.Nj=function(){return this.W}; HH.prototype.getStatus=function(){return this.C}; HH.prototype.A5=function(W){W=W.target;try{if(W==this.W)a:{var Y=g.Lv(this.W),k=this.W.K,P=this.W.getStatus(),T=g.l3(this.W);W=[];if(g.b3(this.W)instanceof Array){var I=g.b3(this.W);I.length>0&&I[0]instanceof Uint8Array&&(this.N=!0,W=I)}if(!(Y<3||Y==3&&!T&&W.length==0))if(P=P==200||P==206,Y==4&&(k==8?n_(this,7):k==7?n_(this,8):P||n_(this,3)),this.K||(this.K=CkF(this.W),this.K==null&&n_(this,5)),this.C>2)p_(this);else{if(W.length>this.J){var X=W.length;k=[];try{if(this.K.EN())for(var h=0;hthis.J){h=T.slice(this.J);this.J=T.length;try{var O=this.K.parse(h);O!=null&&this.T&&this.T(O)}catch(u){n_(this,5);p_(this);break a}}Y==4?(T.length!= 0||this.N?n_(this,2):n_(this,4),p_(this)):n_(this,1)}}}catch(u){n_(this,6),p_(this)}};g.R=L9F.prototype;g.R.al=function(W,Y){var k=this.K[W];k||(k=[],this.K[W]=k);k.push(Y);return this}; g.R.addListener=function(W,Y){this.al(W,Y);return this}; g.R.removeListener=function(W,Y){var k=this.K[W];k&&g.GK(k,Y);(W=this.W[W])&&g.GK(W,Y);return this}; g.R.once=function(W,Y){var k=this.W[W];k||(k=[],this.W[W]=k);k.push(Y);return this}; g.R.gma=function(W){var Y=this.K.data;Y&&Uu7(W,Y);(Y=this.W.data)&&Uu7(W,Y);this.W.data=[]}; g.R.qV6=function(){switch(this.J.getStatus()){case 1:Go(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Go(this,"error");break;case 8:Go(this,"close");break;case 2:Go(this,"end")}};lk5.prototype.serverStreaming=function(W,Y,k,P){var T=this,I=W.substring(0,W.length-P.name.length);return akv(function(X){var h=X.Pj,B=X.getMetadata(),O=xu6(T,!1);B=fk2(T,B,O,I+h.getName());var u=Vi1(O,h.K,!0);X=h.W(X.NW);O.send(B,"POST",X);return u},this.NJ).call(this,P.G(Y,k))};W6C.prototype.create=function(W,Y,k){var P=this.W,T=this.K+"/$rpc/google.internal.waa.v1.Waa/Create";Y=Y||{};k=k===void 0?{}:k;return wuF(P,T,W,Y,Fu9,k)};var qRv=new Yu7(45713224),Rcq=new $46(45713225);var Hw1=new Yu7(45713226),nC2=new $46(45713227);var TTv="://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(" "),j56=/\bocr\b/;var XId=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(W){throw W;}},{VFh:!0, RQ1:!0,Nf5:!1,bI1:BYc,aha:OTK,EpS:!1,lhD:!1,XFg:!1,rr6:!0,crr:h5i,doJ:!1,JdJ:!1,Nkh:!1});var JP=null,rO=!1,Rgz=1,MRC=Symbol("SIGNAL"),t5={version:0,rUz:0,TR:!1,producers:void 0,uG:void 0,rS:void 0,Iw:void 0,bf:!1,zH:!1,Wn:!1,kind:"unknown",mZ:function(){return!1}, IL:function(){}, Ay:function(){}, fh6:function(){}};var qo=Symbol("UNSET"),Ru=Symbol("COMPUTING"),Ho=Symbol("ERRORED");Object.assign({},t5,{value:qo,TR:!0,error:null,J3:EU,kind:"computed",mZ:function(W){return W.value===qo||W.value===Ru}, IL:function(W){if(W.value===Ru)throw Error("");var Y=W.value;W.value=Ru;var k=BTC(W),P=!1;try{var T=W.lH();sU(null);P=Y!==qo&&Y!==Ho&&T!==Ho&&W.J3(Y,T)}catch(I){T=Ho,W.error=I}finally{uMd(W,k)}P?W.value=Y:(W.value=T,W.version++)}});var iHq=Object.assign({},t5,{J3:EU,value:void 0,kind:"signal"});Object.assign({},t5,{value:qo,TR:!0,error:null,J3:EU,kind:"linkedSignal",mZ:function(W){return W.value===qo||W.value===Ru}, IL:function(W){if(W.value===Ru)throw Error("");var Y=W.value;W.value=Ru;var k=BTC(W);try{var P=W.source();var T=W.lH(P,Y===qo||Y===Ho?void 0:{source:W.Gj2,value:Y});W.Gj2=P}catch(I){T=Ho,W.error=I}finally{uMd(W,k)}Y!==qo&&T!==Ho&&W.J3(Y,T)?W.value=Y:(W.value=T,W.version++)}});Object.assign({},t5,{Wn:!0,zH:!1,Ay:function(W){W.schedule!==null&&W.schedule(W.tTP)}, H5z:!1,moi:function(){}});g.H(mY,g.S2);mY.prototype.dispose=function(){window.removeEventListener("offline",this.J);window.removeEventListener("online",this.J);this.EX.Ca(this.C);delete mY.instance}; mY.prototype.s6=function(){return this.W}; mY.prototype.u7=function(){var W=this;this.C=this.EX.r_(function(){var Y;return g.D(function(k){if(k.W==1)return W.W?((Y=window.navigator)==null?0:Y.onLine)?k.oi(3):g.m(k,dO(W),3):g.m(k,dO(W),3);W.u7();g.G1(k)})},3E4)};g.H(neV,nt);var C79=ns1(neV,[0,h5,SFc,xSw,h5,-2,xSw,lRj]);wO.prototype.set=function(W,Y){Y=Y===void 0?!0:Y;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==Y&&(this.data[W]=Y,this.W=-1)}; wO.prototype.get=function(W){return!!this.data[W]};var yB;g.uQ(g.vH,g.e);g.R=g.vH.prototype;g.R.start=function(){this.stop();this.T=!1;var W=G92(this),Y=K67(this);W&&!Y&&this.K.mozRequestAnimationFrame?(this.W=g.VS(this.K,"MozBeforePaint",this.J),this.K.mozRequestAnimationFrame(null),this.T=!0):this.W=W&&Y?W.call(this.K,this.J):this.K.setTimeout(vh1(this.J),20)}; g.R.stop=function(){if(this.isActive()){var W=G92(this),Y=K67(this);W&&!Y&&this.K.mozRequestAnimationFrame?j2(this.W):W&&Y?Y.call(this.K,this.W):this.K.clearTimeout(this.W)}this.W=null}; g.R.isActive=function(){return this.W!=null}; g.R.MN=function(){this.T&&this.W&&j2(this.W);this.W=null;this.X.call(this.C,g.Bp())}; g.R.iz=function(){this.stop();g.vH.Ku.iz.call(this)};g.uQ(g.C_,g.e);g.R=g.C_.prototype;g.R.DE=0;g.R.iz=function(){g.C_.Ku.iz.call(this);this.stop();delete this.W;delete this.K}; g.R.start=function(W){this.stop();this.DE=g.D4(this.J,W!==void 0?W:this.z9)}; g.R.stop=function(){this.isActive()&&g.V0.clearTimeout(this.DE);this.DE=0}; g.R.isActive=function(){return this.DE!=0}; g.R.WZ=function(){this.DE=0;this.W&&this.W.call(this.K)};g.H(g.b9,g.e);g.R=g.b9.prototype;g.R.n6=function(W){this.J=arguments;this.kq||this.K?this.W=!0:cH(this)}; g.R.stop=function(){this.kq&&(g.V0.clearTimeout(this.kq),this.kq=null,this.W=!1,this.J=null)}; g.R.pause=function(){this.K++}; g.R.resume=function(){this.K--;this.K||!this.W||this.kq||(this.W=!1,cH(this))}; g.R.iz=function(){g.e.prototype.iz.call(this);this.stop()};g.xA.prototype[Symbol.iterator]=function(){return this}; g.xA.prototype.next=function(){var W=this.W.next();return{value:W.done?void 0:this.K.call(void 0,W.value),done:W.done}};g.uQ(g.Pe,g.S2);g.R=g.Pe.prototype;g.R.isPlaying=function(){return this.W==1}; g.R.isPaused=function(){return this.W==-1}; g.R.SH=function(){this.sX("begin")}; g.R.e9=function(){this.sX("end")}; g.R.onFinish=function(){this.sX("finish")}; g.R.onStop=function(){this.sX("stop")}; g.R.sX=function(W){this.dispatchEvent(W)};var Luc=mT(function(){var W=g.um("DIV"),Y=g.Sh?"-webkit":LX?"-moz":null,k="transition:opacity 1s linear;";Y&&(k+=Y+"-transition:opacity 1s linear;");Y=ANd({style:k});if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("");W.innerHTML=u7(Y);return g.Uh(W.firstChild,"transition")!=""});g.uQ(Tx,g.Pe);g.R=Tx.prototype;g.R.play=function(){if(this.isPlaying())return!1;this.SH();this.sX("play");this.startTime=g.Bp();this.W=1;if(Luc())return g.CX(this.K,this.X),this.J=g.D4(this.iNz,void 0,this),!0;this.MZ(!1);return!1}; g.R.iNz=function(){g.Wl(this.K);s5z(this.K,this.G);g.CX(this.K,this.T);this.J=g.D4((0,g.Xz)(this.MZ,this,!1),this.C*1E3)}; g.R.stop=function(){this.isPlaying()&&this.MZ(!0)}; g.R.MZ=function(W){g.CX(this.K,"transition","");g.V0.clearTimeout(this.J);g.CX(this.K,this.T);this.endTime=g.Bp();this.W=0;if(W)this.onStop();else this.onFinish();this.e9()}; g.R.iz=function(){this.stop();Tx.Ku.iz.call(this)}; g.R.pause=function(){};var AW7={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};jQ("Element","attributes")||jQ("Node","attributes");jQ("Element","innerHTML")||jQ("HTMLElement","innerHTML");jQ("Node","nodeName");jQ("Node","nodeType");jQ("Node","parentNode");jQ("Node","childNodes");jQ("HTMLElement","style")||jQ("Element","style");jQ("HTMLStyleElement","sheet");var F67=d47("getPropertyValue"),wIX=d47("setProperty");jQ("Element","namespaceURI")||jQ("Node","namespaceURI");var ge7={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var oeC,WUp,egX,yWS,ve6;oeC=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]");WUp=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.ULh=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.Xu=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]");egX=/^http:\/\/.*/;g.lYz=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");yWS=/\s+/;ve6=/[\d\u06f0-\u06f9]/;h4.prototype.JL=function(){return new Be(this.K())}; h4.prototype[Symbol.iterator]=function(){return new Or(this.K())}; h4.prototype.W=function(){return new Or(this.K())}; g.H(Be,g.MF);Be.prototype.next=function(){return this.K.next()}; Be.prototype[Symbol.iterator]=function(){return new Or(this.K)}; Be.prototype.W=function(){return new Or(this.K)}; g.H(Or,h4);Or.prototype.next=function(){return this.J.next()};Z3.prototype.clone=function(){return new Z3(this.W,this.G,this.J,this.C,this.T,this.X,this.K,this.L)}; Z3.prototype.equals=function(W){return this.W==W.W&&this.G==W.G&&this.J==W.J&&this.C==W.C&&this.T==W.T&&this.X==W.X&&this.K==W.K&&this.L==W.L};M9.prototype.clone=function(){return new M9(this.start,this.end)};(function(){if(IHq){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(g.wY()))?W[1]:"0"}return Ro?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(g.wY()))?W[0].replace(/_/g,"."):"10"):g.Ui?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(g.wY()))?W[1]:""):iTQ||MVz||tV9?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(g.wY()))?W[1].replace(/_/g,"."):""):""})();var L6S=function(){if(g.Bq)return t4(/Firefox\/([0-9.]+)/);if(g.IY||g.e5||g.aP)return ppV;if(g.qn){if(FZ()||wE()){var W=t4(/CriOS\/([0-9.]+)/);if(W)return W}return t4(/Chrome\/([0-9.]+)/)}if(g.hj&&!FZ())return t4(/Version\/([0-9.]+)/);if(vy||CN){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.wY()))return W[1]+"."+W[2]}else if(g.W6)return(W=t4(/Android\s+([0-9.]+)/))?W:t4(/Version\/([0-9.]+)/);return""}();g.uQ(g.RY,g.e);g.R=g.RY.prototype;g.R.subscribe=function(W,Y,k){var P=this.K[W];P||(P=this.K[W]=[]);var T=this.X;this.W[T]=W;this.W[T+1]=Y;this.W[T+2]=k;this.X=T+3;P.push(T);return T}; g.R.unsubscribe=function(W,Y,k){if(W=this.K[W]){var P=this.W;if(W=W.find(function(T){return P[T+1]==Y&&P[T+2]==k}))return this.MI(W)}return!1}; g.R.MI=function(W){var Y=this.W[W];if(Y){var k=this.K[Y];this.T!=0?(this.J.push(W),this.W[W+1]=function(){}):(k&&g.GK(k,W),delete this.W[W],delete this.W[W+1],delete this.W[W+2])}return!!Y}; g.R.publish=function(W,Y){var k=this.K[W];if(k){var P=Array(arguments.length-1),T=arguments.length,I;for(I=1;I0&&this.T==0)for(;k=this.J.pop();)this.MI(k)}}return I!=0}return!1}; g.R.clear=function(W){if(W){var Y=this.K[W];Y&&(Y.forEach(this.MI,this),delete this.K[W])}else this.W.length=0,this.K={}}; g.R.iz=function(){g.RY.Ku.iz.call(this);this.clear();this.J.length=0};g.He.prototype.set=function(W,Y){Y===void 0?this.W.remove(W):this.W.set(W,g.Qx(Y))}; g.He.prototype.get=function(W){try{var Y=this.W.get(W)}catch(k){return}if(Y!==null)try{return JSON.parse(Y)}catch(k){throw"Storage: Invalid value was encountered";}}; g.He.prototype.remove=function(W){this.W.remove(W)};g.uQ(no,g.He);no.prototype.set=function(W,Y){no.Ku.set.call(this,W,bHq(Y))}; no.prototype.K=function(W){W=no.Ku.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";}; no.prototype.get=function(W){if(W=this.K(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};g.uQ(po,no);po.prototype.set=function(W,Y,k){if(Y=bHq(Y)){if(k){if(k=k.length)return g.OO;var T=k.key(Y++);if(W)return g.tL(T);T=k.getItem(T);if(typeof T!=="string")throw"Storage mechanism: Invalid value was encountered";return g.tL(T)}; return P}; g.R.clear=function(){J4(this);this.W.clear()}; g.R.key=function(W){J4(this);return this.W.key(W)};g.uQ(sr,Er);g.uQ(fvq,Er);g.uQ(r9,Ko);r9.prototype.set=function(W,Y){this.K.set(this.W+W,Y)}; r9.prototype.get=function(W){return this.K.get(this.W+W)}; r9.prototype.remove=function(W){this.K.remove(this.W+W)}; r9.prototype.JL=function(W){var Y=this.K[Symbol.iterator](),k=this,P=new g.MF;P.next=function(){var T=Y.next();if(T.done)return T;for(T=T.value;T.slice(0,k.W.length)!=k.W;){T=Y.next();if(T.done)return T;T=T.value}return g.tL(W?T.slice(k.W.length):k.K.get(T))}; return P};zx.prototype.getValue=function(){return this.K}; zx.prototype.clone=function(){return new zx(this.W,this.K)};g.R=d9.prototype;g.R.b_=function(W,Y){var k=this.W;k.push(new zx(W,Y));W=k.length-1;Y=this.W;for(k=Y[W];W>0;){var P=W-1>>1;if(Y[P].W>k.W)Y[W]=Y[P],W=P;else break}Y[W]=k}; g.R.remove=function(){var W=this.W,Y=W.length,k=W[0];if(!(Y<=0)){if(Y==1)W.length=0;else{W[0]=W.pop();W=0;Y=this.W;for(var P=Y.length,T=Y[W];W

>1;){var I=W*2+1,X=W*2+2;I=XT.W)break;Y[W]=Y[I];W=I}Y[W]=T}return k.getValue()}}; g.R.F7=function(){for(var W=this.W,Y=[],k=W.length,P=0;P>>16&65535|0;for(var I;k!==0;){I=k>2E3?2E3:k;k-=I;do T=T+Y[P++]|0,W=W+T|0;while(--I);T%=65521;W%=65521}return T|W<<16|0};for(var Ih={},nG,VeK=[],pG=0;pG<256;pG++){nG=pG;for(var NEB=0;NEB<8;NEB++)nG=nG&1?3988292384^nG>>>1:nG>>>1;VeK[pG]=nG}Ih=function(W,Y,k,P){k=P+k;for(W^=-1;P>>8^VeK[(W^Y[P])&255];return W^-1};var VZ={};VZ={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 Lo=[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],bs=[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],ndS=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],hx2=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],YK=Array(576);Fu(YK);var $K=Array(60);Fu($K);var ls=Array(512);Fu(ls);var Co=Array(256);Fu(Co);var Ur=Array(29);Fu(Ur);var ce=Array(30);Fu(ce);var qJ5,Rx0,HvX,t27=!1;var OQ;OQ=[new BD(0,0,0,0,function(W,Y){var k=65535;for(k>W.BH-5&&(k=W.BH-5);;){if(W.B7<=1){Xb(W);if(W.B7===0&&Y===0)return 1;if(W.B7===0)break}W.Sr+=W.B7;W.B7=0;var P=W.U3+k;if(W.Sr===0||W.Sr>=P)if(W.B7=W.Sr-P,W.Sr=P,kK(W,!1),W.kh.Lq===0)return 1;if(W.Sr-W.U3>=W.uY-262&&(kK(W,!1),W.kh.Lq===0))return 1}W.b_=0;if(Y===4)return kK(W,!0),W.kh.Lq===0?3:4;W.Sr>W.U3&&kK(W,!1);return 1}), new BD(4,4,8,4,SM),new BD(4,5,16,8,SM),new BD(4,6,32,32,SM),new BD(4,4,16,16,hr),new BD(8,16,32,32,hr),new BD(8,16,128,128,hr),new BD(8,32,128,256,hr),new BD(32,128,258,1024,hr),new BD(32,258,258,4096,hr)];var M2V={};M2V=function(){this.input=null;this.YP=this.tf=this.O7=0;this.output=null;this.Cz=this.Lq=this.lT=0;this.msg="";this.state=null;this.GA=2;this.g5=0};var p9F=Object.prototype.toString; uG.prototype.push=function(W,Y){var k=this.kh,P=this.options.chunkSize;if(this.ended)return!1;var T=Y===~~Y?Y:Y===!0?4:0;typeof W==="string"?k.input=avd(W):p9F.call(W)==="[object ArrayBuffer]"?k.input=new Uint8Array(W):k.input=W;k.O7=0;k.tf=k.input.length;do{k.Lq===0&&(k.output=new g9.jB(P),k.lT=0,k.Lq=P);W=ivX(k,T);if(W!==1&&W!==0)return this.e9(W),this.ended=!0,!1;if(k.Lq===0||k.tf===0&&(T===4||T===2))if(this.options.to==="string"){var I=g9.Rx(k.output,k.lT);Y=I;I=I.length;if(I<65537&&(Y.subarray&& fYz||!Y.subarray))Y=String.fromCharCode.apply(null,g9.Rx(Y,I));else{for(var X="",h=0;h0||k.Lq===0)&&W!==1);if(T===4)return(k=this.kh)&&k.state?(P=k.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?W=N9(k,-2):(k.state=null,W=P===113?N9(k,-3):0)):W=-2,this.e9(W),this.ended=!0,W===0;T===2&&(this.e9(0),k.Lq=0);return!0}; uG.prototype.e9=function(W){W===0&&(this.result=this.options.to==="string"?this.chunks.join(""):g9.Bn(this.chunks));this.chunks=[];this.err=W;this.msg=this.kh.msg};var iG="@@redux/INIT"+ZE(),rUF="@@redux/REPLACE"+ZE();var AU5=typeof Symbol==="function"&&Symbol.observable||"@@observable";var aYQ=[0,TEh,-3,SF];g.H(DW1,nt);var T37=ns1(DW1,[0,h5,jpN,Tk,TEh,Tk,-1,SF,TEh,SF,-1,h5,SF,jpN,jF,aYQ,Tk,-1,SF]);var gdC=1713604564;var Wdq=new g.qC("adInfoDialogEndpoint");var ml6=new g.qC("adPingingEndpoint");var aOX=new g.qC("crossDeviceProgressCommand");var F2=new g.qC("actionCompanionAdRenderer");var fK=new g.qC("adActionInterstitialRenderer");var WTz=new g.qC("adDurationRemainingRenderer");var Xx=new g.qC("adHoverTextButtonRenderer");var NDV=new g.qC("adInfoDialogRenderer");var UV=new g.qC("adMessageRenderer");var Sm=new g.qC("adPreviewRenderer");var Qy=new g.qC("adsEngagementPanelRenderer");var J22=new g.qC("dismissablePanelTextPortraitImageRenderer");var KLd=new g.qC("adsEngagementPanelSectionListViewModel");var Yhc=new g.qC("flyoutCtaRenderer");var w8=new g.qC("imageCompanionAdRenderer");var bH=new g.qC("instreamAdPlayerOverlayRenderer");var R9$=new g.qC("instreamSurveyAdBackgroundImageRenderer");var In=new g.qC("instreamSurveyAdPlayerOverlayRenderer");var xX=new g.qC("instreamSurveyAdRenderer"),jm=new g.qC("instreamSurveyAdSingleSelectQuestionRenderer"),Tv=new g.qC("instreamSurveyAdMultiSelectQuestionRenderer"),Gk=new g.qC("instreamSurveyAdAnswerRenderer"),$BN=new g.qC("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var be=new g.qC("instreamVideoAdRenderer");var kaN=new g.qC("textOverlayAdContentRenderer"),Pmw=new g.qC("enhancedTextOverlayAdContentRenderer"),Ts$=new g.qC("imageOverlayAdContentRenderer");var cr=new g.qC("playerOverlayLayoutRenderer");var Vc=new g.qC("videoInterstitialButtonedCenteredLayoutRenderer");var dx6=new g.qC("aboveFeedAdLayoutRenderer");var mx0=new g.qC("belowPlayerAdLayoutRenderer");var zzq=new g.qC("inPlayerAdLayoutRenderer");var N3=new g.qC("playerBytesAdLayoutRenderer");var Pb=new g.qC("playerBytesSequenceItemAdLayoutRenderer");var kE=new g.qC("playerUnderlayAdLayoutRenderer");var c$=new g.qC("adIntroRenderer");var UN=new g.qC("playerBytesSequentialLayoutRenderer");var BLd=new g.qC("slidingTextPlayerOverlayRenderer");var fP=new g.qC("surveyTextInterstitialRenderer");var aI=new g.qC("videoAdTrackingRenderer");var nSv=new g.qC("videoInterstitialCenteredLayoutViewModel");var j_w=new g.qC("simpleAdBadgeRenderer");var Fi=new g.qC("skipAdRenderer"),I5h=new g.qC("skipButtonRenderer");var u2=new g.qC("adSlotRenderer");var YE=new g.qC("squeezebackPlayerSidePanelRenderer");var XL1=new g.qC("timedPieCountdownRenderer");var cm=new g.qC("adAvatarViewModel");var x_=new g.qC("adBadgeViewModel");var fg=new g.qC("adButtonViewModel");var Shw=new g.qC("adDetailsLineViewModel");var hrh=new g.qC("adDisclosureBannerViewModel");var Bs$=new g.qC("adPodIndexViewModel");var OXh=new g.qC("imageBackgroundViewModel");var uGK=new g.qC("adGridCardCollectionViewModel");var ZXz=new g.qC("adGridCardTextViewModel");var iX1=new g.qC("adPreviewViewModel");var Mhj=new g.qC("playerAdAvatarLockupCardButtonedViewModel");var th9=new g.qC("skipAdButtonViewModel");var qh1=new g.qC("skipAdViewModel");var RrN=new g.qC("timedPieCountdownViewModel");var HXh=new g.qC("visitAdvertiserLinkViewModel");var yy=new g.qC("bannerImageLayoutViewModel");var ep=new g.qC("topBannerImageTextIconButtonedLayoutViewModel");var oI=new g.qC("adsEngagementPanelLayoutViewModel");var $E=new g.qC("displayUnderlayTextGridCardsLayoutViewModel");g.fz=new g.qC("browseEndpoint");var nsK=new g.qC("confirmDialogEndpoint");var pz7=new g.qC("commandContext");var uU6=new g.qC("rawColdConfigGroup");var ONz=new g.qC("rawHotConfigGroup");g.BP=new g.qC("commandExecutorCommand");g.H(w90,nt);var UZd={tmS:0,fua:1,au1:32,hVi:61,vp5:67,WTr:103,zQh:86,b8J:42,EFJ:60,DSq:62,LO1:73,eV1:76,ArJ:88,yrr:90,iIg:99,RVh:98,KTq:100,cED:102,P32:41,wF6:69,JrP:70,pF5:71,ALi:2,yL2:27,ANDROID:3,C5D:54,gf6:14,HnD:91,ub5:55,YA2:24,ULa:20,nfz:18,s3g:21,Ong:104,G8r:30,xLg:29,j3D:28,mSq:101,Znq:34,qAg:36,tSa:38,IOS:5,c7D:15,iLz:92,Lla:40,MAS:25,zOP:17,Wmh:19,AjS:64,yj5:66,Km2:26,wuz:22,Jja:33,pu5:68,Twq:35,v4z:53,PvS:37,hR5:39,i81:7,P4S:57,w3q:43,p3S:59,JEJ:93,IJ1:74,TU1:75,oF6:85,SKi:65,gF2:80,ugS:8,KO6:10, USr:58,YK5:63,C4P:72,mLa:23,SyD:11,C3D:13,oZr:12,vFS:16,NU1:56,Mmi:31,hOg:77,tAi:84,lu2:87,Oag:89,sZz:94,Bwi:95};g.H(Rh,nt);Rh.prototype.w$=function(){return AZ(this,3)}; Rh.prototype.YQ=function(){return AZ(this,5)}; Rh.prototype.SD=function(W){return gl(this,5,W)};g.H(HD,nt);g.H(QxS,nt);g.H(nI,nt);g.R=nI.prototype;g.R.getDeviceId=function(){return AZ(this,6)}; g.R.Vs=function(W){var Y=T3(this,9,Mv,3,!0);lq(Y,W);return Y[W]}; g.R.getPlayerType=function(){return z3(this,36)}; g.R.setHomeGroupInfo=function(W){return KF(this,QxS,81,W)}; g.R.clearLocationPlayabilityToken=function(){return Ws(this,89)};g.H(pI,nt);pI.prototype.getValue=function(){return AZ(this,R7(this,hEV,2))}; var hEV=[2,3,4,5,6];g.H(Gs,nt);Gs.prototype.setTrackingParams=function(W){return Ws(this,1,Cj5(W,!1))};g.H(KI,nt);g.H(EQ,nt);EQ.prototype.Vs=function(W){var Y=T3(this,5,tC,3,!0);lq(Y,W);return Y[W]};g.H(Jr,nt);Jr.prototype.getToken=function(){return m5(this,2)}; Jr.prototype.setToken=function(W){return gl(this,2,W)};g.H(sQ,nt);sQ.prototype.setSafetyMode=function(W){return wl(this,5,W)};g.H(rF,nt);rF.prototype.pP=function(W){return KF(this,nI,1,W)};var Bb=new g.qC("thumbnailLandscapePortraitRenderer");g.pLi=new g.qC("changeEngagementPanelVisibilityAction");var rj0=new g.qC("continuationCommand");g.Gaw=new g.qC("openPopupAction");g.KG=new g.qC("webCommandMetadata");var HRv=new g.qC("metadataBadgeRenderer");var syv=new g.qC("signalServiceEndpoint");var Jh=new g.qC("innertubeCommand");var BeV=new g.qC("loggingDirectives");var paS={ehq:"EMBEDDED_PLAYER_MODE_UNKNOWN",a6P:"EMBEDDED_PLAYER_MODE_DEFAULT",l6i:"EMBEDDED_PLAYER_MODE_PFP",EZ5:"EMBEDDED_PLAYER_MODE_PFL"};var lhv=new g.qC("channelThumbnailEndpoint");var Uj2=new g.qC("embeddedPlayerErrorMessageRenderer");var oEq=new g.qC("embeddedPlayerOverlayVideoDetailsRenderer"),bR2=new g.qC("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),cVv=new g.qC("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var tmS=new g.qC("embedsInfoPanelRenderer");var KTc=new g.qC("feedbackEndpoint");var Esp=new g.qC("callToActionButtonViewModel");var Jvp=new g.qC("interactionLoggingCommandMetadata");var tQq={rEh:"WEB_DISPLAY_MODE_UNKNOWN",QA1:"WEB_DISPLAY_MODE_BROWSER",dSg:"WEB_DISPLAY_MODE_MINIMAL_UI",Vmg:"WEB_DISPLAY_MODE_STANDALONE",BUD:"WEB_DISPLAY_MODE_FULLSCREEN"};g.H(Ar,nt);Ar.prototype.getPlayerType=function(){return z3(this,7)}; Ar.prototype.B5=function(){return AZ(this,19)}; Ar.prototype.setVideoId=function(W){return gl(this,19,W)};g.H(zs,nt);g.H(dF,nt);g.H(my,nt); var s_h=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527];var rvz=new g.qC("loggingContext");g.H(Fb,nt);g.H(wF,nt);wF.prototype.B5=function(){return m5(this,R7(this,WJ,1))}; wF.prototype.setVideoId=function(W){return ux(this,1,WJ,Ep(W))}; wF.prototype.getPlaylistId=function(){return m5(this,R7(this,WJ,2))}; var WJ=[1,2];g.H(yU1,nt);var E4=new g.qC("changeKeyedMarkersVisibilityCommand");var Avi=new g.qC("changeMarkersVisibilityCommand");var pbS=new g.qC("loadMarkersCommand");var zrz=new g.qC("suggestedActionDataViewModel");var rT0=new g.qC("timelyActionViewModel");var sw6=new g.qC("timelyActionsOverlayViewModel");var L0q=new g.qC("productListItemRenderer");var dBz=new g.qC("shoppingOverlayRenderer");var vE7=new g.qC("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var mBK=new g.qC("adFeedbackEndpoint");var DBc=new g.qC("menuEndpoint");var fj7=new g.qC("phoneDialerEndpoint");var c5d=new g.qC("sendSmsEndpoint");var epd=new g.qC("copyTextEndpoint");var gs1=new g.qC("shareEndpoint"),FT$=new g.qC("shareEntityEndpoint"),wLw=new g.qC("shareEntityServiceEndpoint"),Q_c=new g.qC("webPlayerShareEntityServiceEndpoint");g.Au=new g.qC("urlEndpoint");g.GW=new g.qC("watchEndpoint");var yv1=new g.qC("watchPlaylistEndpoint");g.erc=new g.qC("offlineOrchestrationActionCommand");var SAX=new g.qC("compositeVideoOverlayRenderer");var osN=new g.qC("miniplayerRenderer");var Qn7=new g.qC("paidContentOverlayRenderer");var vsi=new g.qC("playerMutedAutoplayOverlayRenderer"),Cmc=new g.qC("playerMutedAutoplayEndScreenRenderer");var gXz=new g.qC("unserializedPlayerResponse"),LTK=new g.qC("unserializedPlayerResponse");var UBK=new g.qC("playlistEditEndpoint");var EO;g.hV=new g.qC("buttonRenderer");EO=new g.qC("toggleButtonRenderer");var GJ6=new g.qC("counterfactualRenderer");var l5w=new g.qC("resolveUrlCommandMetadata");var bX$=new g.qC("modifyChannelNotificationPreferenceEndpoint");var dld=new g.qC("pingingEndpoint");var cvz=new g.qC("unsubscribeEndpoint");g.VO=new g.qC("subscribeButtonRenderer");var xBz=new g.qC("subscribeEndpoint");var imv=new g.qC("buttonViewModel");var ES0=new g.qC("qrCodeRenderer");var bV6={mBJ:"LIVING_ROOM_APP_MODE_UNSPECIFIED",HLP:"LIVING_ROOM_APP_MODE_MAIN",Fmh:"LIVING_ROOM_APP_MODE_KIDS",q36:"LIVING_ROOM_APP_MODE_MUSIC",GgS:"LIVING_ROOM_APP_MODE_UNPLUGGED",Xu5:"LIVING_ROOM_APP_MODE_GAMING"};var ZRF=new g.qC("autoplaySwitchButtonRenderer");var aT,QGd,vX0,xJ1;aT=new g.qC("decoratedPlayerBarRenderer");QGd=new g.qC("chapteredPlayerBarRenderer");vX0=new g.qC("multiMarkersPlayerBarRenderer");xJ1=new g.qC("chapterRenderer");g.vUX=new g.qC("markerRenderer");var W8v=new g.qC("decoratedPlayheadRenderer");var qVd=new g.qC("desktopOverlayConfigRenderer");var sC7=new g.qC("engagementPanelSectionListRenderer");var Mmd=new g.qC("gatedActionsOverlayViewModel");var lo0=new g.qC("heatMarkerRenderer");var UJ6=new g.qC("heatmapRenderer");var nE2=new g.qC("watchToWatchTransitionRenderer");var C2X=new g.qC("playlistPanelRenderer");var f5Q=new g.qC("productUpsellSuggestedActionViewModel");var Vhw=new g.qC("suggestedActionTimeRangeTrigger"),NsK=new g.qC("suggestedActionsRenderer"),a5B=new g.qC("suggestedActionRenderer");var b95=new g.qC("timedMarkerDecorationRenderer");var wrV=new g.qC("cipher");var Fk0=new g.qC("playerVars");var WaK=new g.qC("playerVars");var J5=g.V0.window,Y$j,$_9,Qm=(J5==null?void 0:(Y$j=J5.yt)==null?void 0:Y$j.config_)||(J5==null?void 0:($_9=J5.ytcfg)==null?void 0:$_9.data_)||{};g.N6("yt.config_",Qm);var vD=[];var xW6=/^[\w.]*$/,UW7={q:!0,search_query:!0},LQ5=String(lG);var $G=new function(){var W=window.document;this.W=window;this.K=W}; g.N6("yt.ads_.signals_.getAdSignalsString",function(W){return bG(Py(W))});g.Bp();var V2F="XMLHttpRequest"in g.V0?function(){return new XMLHttpRequest}:null;var keQ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.ZX(keQ);var YvC={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"},OM0="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.ZX(keQ)),XaV=!1,TMd=MK;g.H(Ri,Zc);pN.prototype.then=function(W,Y,k){return this.W?this.W.then(W,Y,k):this.J===1&&W?(W=W.call(k,this.K))&&typeof W.then==="function"?W:KN(W):this.J===2&&Y?(W=Y.call(k,this.K))&&typeof W.then==="function"?W:G5(W):this}; pN.prototype.getValue=function(){return this.K}; pN.prototype.$goog_Thenable=!0;var Ei=!1;var yW=vy||CN;var HMC=/^([0-9\.]+):([0-9\.]+)$/;g.H(PO,Zc);PO.prototype.name="BiscottiError";g.H(kF,Zc);kF.prototype.name="BiscottiMissingError";var K$0={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},TS=null;var $cF=g.iF(["data-"]),D$v={};var Pqz=0,j0=g.Sh?"webkit":LX?"moz":g.IY?"ms":g.aP?"o":"",TZi=g.Wp("ytDomDomGetNextId")||function(){return++Pqz}; g.N6("ytDomDomGetNextId",TZi);var Qvq={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};Os.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Os.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Os.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var uC=g.V0.ytEventsEventsListeners||{};g.N6("ytEventsEventsListeners",uC);var ow0=g.V0.ytEventsEventsCounter||{count:0};g.N6("ytEventsEventsCounter",ow0);var U$z=mT(function(){var W=!1;try{var Y=Object.defineProperty({},"passive",{get:function(){W=!0}}); window.addEventListener("test",null,Y)}catch(k){}return W}),vwS=mT(function(){var W=!1; try{var Y=Object.defineProperty({},"capture",{get:function(){W=!0}}); window.addEventListener("test",null,Y)}catch(k){}return W});var sO;sO=window;g.q5=sO.ytcsi&&sO.ytcsi.now?sO.ytcsi.now:sO.performance&&sO.performance.timing&&sO.performance.now&&sO.performance.timing.navigationStart?function(){return sO.performance.timing.navigationStart+sO.performance.now()}:function(){return(new Date).getTime()};g.uQ(q8,g.e);q8.prototype.N=function(W){W.W===void 0&&yRX(W);var Y=W.W;W.K===void 0&&yRX(W);this.W=new g.Cc(Y,W.K)}; q8.prototype.oE=function(){return this.W||new g.Cc}; q8.prototype.A5=function(){if(this.W){var W=(0,g.q5)();if(this.T!=0){var Y=this.X,k=this.W,P=Y.x-k.x;Y=Y.y-k.y;P=Math.sqrt(P*P+Y*Y)/(W-this.T);this.K[this.J]=Math.abs((P-this.C)/this.C)>.5?1:0;for(k=Y=0;k<4;k++)Y+=this.K[k]||0;Y>=3&&this.G();this.C=P}this.T=W;this.X=this.W;this.J=(this.J+1)%4}}; q8.prototype.iz=function(){g.hB(this.L);g.iC(this.Kg)};g.H(Rk,g.e);Rk.prototype.Z=function(W,Y,k,P,T){k=g.LI((0,g.Xz)(k,P||this.J9));k={target:W,name:Y,callback:k};var I;T&&U$z()&&(I={passive:!0});W.addEventListener(Y,k.callback,I);this.G.push(k);return k}; Rk.prototype.nH=function(W){for(var Y=0;Y=L.SN)||J.W.version>=V||J.W.objectStoreNames.contains(y)||A.push(y)}B=A;if(B.length===0){G.oi(5);break}O=Object.keys(k.options.bW); u=h.objectStoreNames();if(k.Ck.options.version+1)throw M.close(),k.J=!1,daC(k,t);return G.return(M);case 8:throw Y(), Z instanceof Error&&!g.Oi("ytidb_async_stack_killswitch")&&(Z.stack=Z.stack+"\n"+X.substring(X.indexOf("\n")+1)),B8(Z,k.name,"",(q=k.options.version)!=null?q:-1);}})} function Y(){k.W===P&&(k.W=void 0)} var k=this;if(!this.J)throw daC(this);if(this.W)return this.W;var P,T={blocking:function(I){I.close()}, closed:Y,NV2:Y,upgrade:this.options.upgrade};return this.W=P=W()};var we=new ge("YtIdbMeta",{bW:{databases:{SN:1}},upgrade:function(W,Y){Y(1)&&g.nJ(W,"databases",{keyPath:"actualName"})}});var v8,oy=new function(){}(new function(){});new g.Xd;g.H(UP,ge);UP.prototype.K=function(W,Y,k){k=k===void 0?{}:k;return(this.options.shared?oAC:eT7)(W,Y,Object.assign({},k))}; UP.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?Ua7:vA0)(this.name,W)};var ZBi={},b_d=g.lN("ytGcfConfig",{bW:(ZBi.coldConfigStore={SN:1},ZBi.hotConfigStore={SN:1},ZBi),shared:!1,upgrade:function(W,Y){Y(1)&&(g.sP(g.nJ(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.sP(g.nJ(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.H(c8,g.e);c8.prototype.iz=function(){for(var W=g.p(this.K),Y=W.next();!Y.done;Y=W.next()){var k=this.W;Y=k.indexOf(Y.value);Y>=0&&k.splice(Y,1)}this.K.length=0;g.e.prototype.iz.call(this)};Y4.prototype.SD=function(W){this.hotHashData=W;g.N6("yt.gcf.config.hotHashData",this.hotHashData||null)};var iB1=typeof TextEncoder!=="undefined"?new TextEncoder:null,FH2=iB1?function(W){return iB1.encode(W)}:function(W){W=g.E$(W); for(var Y=new Uint8Array(W.length),k=0;k=Y?!1:!0}; g.R.HJ=function(){var W=this;if(!G_(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.a7.JH("QUEUED",this.c5).then(function(Y){Y&&!W.nf(Y,W.Z0)?W.EX.r_(function(){return g.D(function(k){if(k.W==1)return Y.id===void 0?k.oi(2):g.m(k,W.a7.vc(Y.id,W.c5),2);W.HJ();g.G1(k)})}):W.O6.s6()&&W.EY()})};var J8;var MU6={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var t9z={},Wy0=g.lN("ServiceWorkerLogsDatabase",{bW:(t9z.SWHealthLog={SN:1},t9z),shared:!0,upgrade:function(W,Y){Y(1)&&g.sP(g.nJ(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var A8={},jhS=0;var z_;mg.prototype.requestComplete=function(W,Y){Y&&(this.K=!0);W=this.removeParams(W);this.W.get(W)||this.W.set(W,Y)}; mg.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.W.get(W))?!1:W===!1&&this.K?!0:null}; mg.prototype.removeParams=function(W){return W.split("?")[0]}; mg.prototype.removeParams=mg.prototype.removeParams;mg.prototype.isEndpointCFR=mg.prototype.isEndpointCFR;mg.prototype.requestComplete=mg.prototype.requestComplete;mg.getInstance=DK;g.H(gS,g.S2);g.R=gS.prototype;g.R.s6=function(){return this.W.s6()}; g.R.U7=function(W){this.W.W=W}; g.R.d$=function(){var W=window.navigator.onLine;return W===void 0?!0:W}; g.R.Fl=function(){this.K=!0}; g.R.listen=function(W,Y){return this.W.listen(W,Y)}; g.R.ZX=function(W){W=dO(this.W,W);W.then(function(Y){g.Oi("use_cfr_monitor")&&DK().requestComplete("generate_204",Y)}); return W}; gS.prototype.sendNetworkCheckRequest=gS.prototype.ZX;gS.prototype.listen=gS.prototype.listen;gS.prototype.enableErrorFlushing=gS.prototype.Fl;gS.prototype.getWindowStatus=gS.prototype.d$;gS.prototype.networkStatusHint=gS.prototype.U7;gS.prototype.isNetworkAvailable=gS.prototype.s6;gS.getInstance=SQS;g.H(g.FJ,g.S2);g.FJ.prototype.s6=function(){var W=g.Wp("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.K)():!0}; g.FJ.prototype.U7=function(W){var Y=g.Wp("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);Y&&Y(W)}; g.FJ.prototype.ZX=function(W){var Y=this,k;return g.D(function(P){k=g.Wp("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Y.K);return g.Oi("skip_network_check_if_cfr")&&DK().isEndpointCFR("generate_204")?P.return(new Promise(function(T){var I;Y.U7(((I=window.navigator)==null?void 0:I.onLine)||!0);T(Y.s6())})):k?P.return(k(W)):P.return(!0)})};var wS;g.H(Qk,KQ);Qk.prototype.writeThenSend=function(W,Y){Y||(Y={});Y=er(W,Y);g.e0()||(this.W=!1);KQ.prototype.writeThenSend.call(this,W,Y)}; Qk.prototype.sendThenWrite=function(W,Y,k){Y||(Y={});Y=er(W,Y);g.e0()||(this.W=!1);KQ.prototype.sendThenWrite.call(this,W,Y,k)}; Qk.prototype.sendAndWrite=function(W,Y){Y||(Y={});Y=er(W,Y);g.e0()||(this.W=!1);KQ.prototype.sendAndWrite.call(this,W,Y)}; Qk.prototype.awaitInitialization=function(){return this.J.promise};var ZId=g.V0.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.N6("ytNetworklessLoggingInitializationOptions",ZId);g.o0.prototype.isReady=function(){!this.config_&&hZv()&&(this.config_=g.k4());return!!this.config_};var q$h,LQ,lu;q$h=g.V0.ytPubsubPubsubInstance||new g.RY;LQ=g.V0.ytPubsubPubsubSubscribedKeys||{};lu=g.V0.ytPubsubPubsubTopicToKeys||{};g.Uj=g.V0.ytPubsubPubsubIsSynchronous||{};g.RY.prototype.subscribe=g.RY.prototype.subscribe;g.RY.prototype.unsubscribeByKey=g.RY.prototype.MI;g.RY.prototype.publish=g.RY.prototype.publish;g.RY.prototype.clear=g.RY.prototype.clear;g.N6("ytPubsubPubsubInstance",q$h);g.N6("ytPubsubPubsubTopicToKeys",lu);g.N6("ytPubsubPubsubIsSynchronous",g.Uj); g.N6("ytPubsubPubsubSubscribedKeys",LQ);var HIV={};g.H(IB,g.e);IB.prototype.append=function(W){if(!this.K)throw Error("This does not support the append operation");W=W.Tn();this.Tn().appendChild(W)}; g.H(XT,IB);XT.prototype.Tn=function(){return this.W};g.H(SK,g.e);SK.prototype.onTouchStart=function(W){this.G=!0;this.K=W.touches.length;this.W.isActive()&&(this.W.stop(),this.C=!0);W=W.touches;this.X=Gsz(this,W)||W.length!=1;var Y=W.item(0);this.X||!Y?this.N=this.L=Infinity:(this.L=Y.clientX,this.N=Y.clientY);for(Y=this.J.length=0;Y=0)}if(Y||W&&Math.pow(W.clientX-this.L,2)+Math.pow(W.clientY-this.N,2)>25)this.T=!0}; SK.prototype.onTouchEnd=function(W){var Y=W.changedTouches;Y&&this.G&&this.K==1&&!this.T&&!this.C&&!this.X&&Gsz(this,Y)&&(this.A5=W,this.W.start());this.K=W.touches.length;this.K===0&&(this.T=this.G=!1,this.J.length=0);this.C=!1};var hI=Date.now().toString();var i$={};var na=Symbol("injectionDeps");tI.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Jr2.prototype.resolve=function(W){return W instanceof ql?pa(this,W.key,[],!0):pa(this,W,[])};var GN;var EY=window;var AI=g.Oi("web_enable_lifecycle_monitoring")&&JI()!==0,Fy7=g.Oi("web_enable_lifecycle_monitoring");mC6.prototype.cancel=function(){for(var W=g.p(this.W),Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.jobId===void 0||Y.WJ||this.scheduler.Ca(Y.jobId),Y.WJ=!0;this.K.resolve()};g.R=zN.prototype;g.R.install=function(W){this.plugins.push(W);return this}; g.R.uninstall=function(){var W=this;g.y0.apply(0,arguments).forEach(function(Y){Y=W.plugins.indexOf(Y);Y>-1&&W.plugins.splice(Y,1)})}; g.R.transition=function(W,Y){var k=this;AI&&zV6(this.state);var P=this.transitions.find(function(I){return Array.isArray(I.from)?I.from.find(function(X){return X===k.state&&I.to===W}):I.from===k.state&&I.to===W}); if(P){this.K&&(DC7(this.K),this.K=void 0);wD6(this,W,Y);this.state=W;AI&&sY(this.state);P=P.action.bind(this);var T=this.plugins.filter(function(I){return I[W]}).map(function(I){return I[W]}); P(gKC(this,T),Y)}else throw Error("no transition specified from "+this.state+" to "+W);}; g.R.lm1=function(W){var Y=g.y0.apply(1,arguments);g.Us();for(var k=g.p(W),P=k.next(),T={};!P.done;T={qk:void 0},P=k.next())T.qk=P.value,kov(function(I){return function(){mp(I.qk.name);gy(function(){return I.qk.callback.apply(I.qk,g.ZX(Y))}); Dg(I.qk.name)}}(T))}; g.R.E8J=function(W){var Y=g.y0.apply(1,arguments),k,P,T,I;return g.D(function(X){X.W==1&&(g.Us(),k=g.p(W),P=k.next(),T={});if(X.W!=3){if(P.done)return X.oi(0);T.NH=P.value;T.Aq=void 0;I=function(h){return function(){mp(h.NH.name);var B=gy(function(){return h.NH.callback.apply(h.NH,g.ZX(Y))}); wm(B)?h.Aq=g.Oi("web_lifecycle_error_handling_killswitch")?B.then(function(){Dg(h.NH.name)}):B.then(function(){Dg(h.NH.name)},function(O){dCd(O); Dg(h.NH.name)}):Dg(h.NH.name)}}(T); kov(I);return T.Aq?g.m(X,T.Aq,3):X.oi(3)}T={NH:void 0,Aq:void 0};P=k.next();return X.oi(2)})}; g.R.YA=function(W){var Y=g.y0.apply(1,arguments),k=this,P=W.map(function(T){return{R$:function(){mp(T.name);gy(function(){return T.callback.apply(T,g.ZX(Y))}); Dg(T.name)}, priority:dy(k,T)}}); P.length&&(this.K=new mC6(P))}; g.T1.Object.defineProperties(zN.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var wy;g.H(FT,zN);FT.prototype.C=function(W,Y){var k=this;this.W=g.Ce(0,function(){k.currentState==="application_navigating"&&k.transition("none")},5E3); W(Y==null?void 0:Y.event)}; FT.prototype.X=function(W,Y){this.W&&(g.Dx.Ca(this.W),this.W=null);W(Y==null?void 0:Y.event)};var Xe=[];g.N6("yt.logging.transport.getScrapedGelPayloads",function(){return Xe});Qr.prototype.storePayload=function(W,Y){W=yr(W);this.store[W]?this.store[W].push(Y):(this.K={},this.store[W]=[Y]);this.W++;g.Oi("more_accurate_gel_parser")&&(Y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Y));return W}; Qr.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var Y=oB(this,W.keys.splice(0,1)[0]),k=[],P=0;P=0){P=!1;break a}}P=!0}P&&(Y=rj(Y))&&this.yV(Y)}}; g.R.xI=function(W){return W}; g.R.onTouchStart=function(W){this.wD.onTouchStart(W)}; g.R.onTouchMove=function(W){this.wD.onTouchMove(W)}; g.R.onTouchEnd=function(W){if(this.wD)this.wD.onTouchEnd(W)}; g.R.yV=function(W){this.layoutId?this.B6.executeCommand(W,this.layoutId):(W=new g.Qq("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.GH(W))}; g.R.createServerVe=function(W,Y){this.api.createServerVe(W,this);this.api.setTrackingParams(W,Y)}; g.R.logVisibility=function(W,Y){this.api.hasVe(W)&&this.api.logVisibility(W,Y,this.interactionLoggingClientData)}; g.R.iz=function(){this.clear(null);this.nH(this.e1);for(var W=g.p(this.gD),Y=W.next();!Y.done;Y=W.next())this.nH(Y.value);g.kZ.prototype.iz.call(this)};g.H(EZ,PM); EZ.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);this.W=Y;if(Y.text==null&&Y.icon==null)g.Kx(Error("ButtonRenderer did not have text or an icon set."));else{switch(Y.style||null){case "STYLE_UNKNOWN":W="ytp-ad-button-link";break;default:W=null}W!=null&&g.a2(this.element,W);Y.text!=null&&(W=g.jy(Y.text),g.zm(W)||(this.element.setAttribute("aria-label",W),this.J=new g.kZ({S:"span",j:"ytp-ad-button-text",v6:W}),g.v(this,this.J),this.J.S1(this.element)));Y.accessibilityData&&Y.accessibilityData.accessibilityData&& Y.accessibilityData.accessibilityData.label&&!g.zm(Y.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",Y.accessibilityData.accessibilityData.label);Y.icon!=null&&(Y=KU(Y.icon,this.T),Y!=null&&(this.K=new g.kZ({S:"span",j:"ytp-ad-button-icon",B:[Y]}),g.v(this,this.K)),this.C?tv(this.element,this.K.element,0):this.K.S1(this.element))}}; EZ.prototype.clear=function(){this.hide()}; EZ.prototype.onClick=function(W){PM.prototype.onClick.call(this,W);W=g.p(Qk1(this));for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.layoutId?this.B6.executeCommand(Y,this.layoutId):g.GH(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.H(Ju,g.e);Ju.prototype.iz=function(){this.K&&g.iC(this.K);this.W.clear();sZ=null;g.e.prototype.iz.call(this)}; Ju.prototype.register=function(W,Y){Y&&this.W.set(W,Y)}; var sZ=null;g.H(zy,PM); zy.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);W=Y.hoverText||null;Y=Y.button&&g.U(Y.button,g.hV)||null;Y==null?g.GH(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new EZ(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,void 0,void 0,void 0,void 0,this.J),g.v(this,this.button),this.button.init(fx("button"),Y,this.macros),W&&this.button.element.setAttribute("aria-label",g.jy(W)),this.button.S1(this.element),this.N&&!g.Na(this.button.element, "ytp-ad-clickable")&&g.a2(this.button.element,"ytp-ad-clickable"),this.J&&g.a2(this.button.element,"ytp-ad-hover-text-button--clean-player"),W&&(this.K=new g.kZ({S:"div",j:"ytp-ad-hover-text-container"}),this.C&&(Y=new g.kZ({S:"div",j:"ytp-ad-hover-text-callout"}),Y.S1(this.K.element),g.v(this,Y)),g.v(this,this.K),this.K.S1(this.element),Y=rH(W),tv(this.K.element,Y,0)),this.show())}; zy.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();PM.prototype.hide.call(this)}; zy.prototype.show=function(){this.button&&this.button.show();PM.prototype.show.call(this)};g.H(mq,PM); mq.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);k=(W=Y.thumbnail)&&dH(W)||"";g.zm(k)?Math.random()<.01&&g.Kx(Error("Found AdImage without valid image URL")):(this.W?g.CX(this.element,"backgroundImage","url("+k+")"):XG(this.element,{src:k}),XG(this.element,{alt:W&&W.accessibility&&W.accessibility.label||""}),Y&&Y.adRendererCommands&&Y.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; mq.prototype.clear=function(){this.hide()};g.H(DM,PM);g.R=DM.prototype;g.R.hide=function(){PM.prototype.hide.call(this);this.J&&this.J.focus()}; g.R.show=function(){this.J=document.activeElement;PM.prototype.show.call(this);this.T.focus()}; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);this.K=Y;Y.dialogMessages||Y.title!=null?Y.confirmLabel==null?g.GH(Error("ConfirmDialogRenderer.confirmLabel was not set.")):Y.cancelLabel==null?g.GH(Error("ConfirmDialogRenderer.cancelLabel was not set.")):vFS(this,Y):g.GH(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.R.clear=function(){g.ne(this.W);this.hide()}; g.R.xn=function(){this.hide()}; g.R.z$=function(){var W=this.K.cancelEndpoint;W&&(this.layoutId?this.B6.executeCommand(W,this.layoutId):g.GH(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.R.jM=function(){var W=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;W&&(this.layoutId?this.B6.executeCommand(W,this.layoutId):g.GH(Error("Missing layoutId for confirm dialog.")));this.hide()};g.H(gH,PM);g.R=gH.prototype; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);this.J=Y;if(Y.defaultText==null&&Y.defaultIcon==null)g.GH(Error("ToggleButtonRenderer must have either text or icon set."));else if(Y.defaultIcon==null&&Y.toggledIcon!=null)g.GH(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(Y.style){switch(Y.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":W="ytp-ad-toggle-button-default-style";break;default:W=null}W!=null&&g.a2(this.T,W)}W={};Y.defaultText? (k=g.jy(Y.defaultText),g.zm(k)||(W.buttonText=k,this.api.V().experiments.Nq("a11y_h5_associate_survey_question")||this.W.setAttribute("aria-label",k),this.api.V().experiments.Nq("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",k))):g.Ya(this.TJ,!1);Y.defaultTooltip&&(W.tooltipText=Y.defaultTooltip,this.W.hasAttribute("aria-label")||this.K.setAttribute("aria-label",Y.defaultTooltip));Y.defaultIcon?(k=KU(Y.defaultIcon),this.updateValue("untoggledIconTemplateSpec",k),Y.toggledIcon?(this.Kg= !0,k=KU(Y.toggledIcon),this.updateValue("toggledIconTemplateSpec",k)):(g.Ya(this.N,!0),g.Ya(this.C,!1)),g.Ya(this.W,!1)):g.Ya(this.K,!1);g.Ox(W)||this.update(W);Y.isToggled&&(g.a2(this.T,"ytp-ad-toggle-button-toggled"),this.toggleButton(Y.isToggled));FE(this);this.Z(this.element,"change",this.Aw);this.show()}}; g.R.onClick=function(W){this.gD.length>0&&(this.toggleButton(!this.isToggled()),this.Aw());PM.prototype.onClick.call(this,W)}; g.R.Aw=function(){g.kN(this.T,"ytp-ad-toggle-button-toggled",this.isToggled());for(var W=g.p(CCS(this,this.isToggled())),Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.layoutId?this.B6.executeCommand(Y,this.layoutId):g.GH(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);FE(this)}; g.R.clear=function(){this.hide()}; g.R.toggleButton=function(W){g.kN(this.T,"ytp-ad-toggle-button-toggled",W);this.W.checked=W;FE(this)}; g.R.isToggled=function(){return this.W.checked};g.H(wH,Rk);wH.prototype.C=function(W){if(Array.isArray(W)){W=g.p(W);for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y instanceof LrX&&this.J(Y)}};g.H(Q1,PM);g.R=Q1.prototype;g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);Y.reasons?Y.confirmLabel==null?g.GH(Error("AdFeedbackRenderer.confirmLabel was not set.")):(Y.cancelLabel==null&&g.Kx(Error("AdFeedbackRenderer.cancelLabel was not set.")),Y.title==null&&g.Kx(Error("AdFeedbackRenderer.title was not set.")),cl0(this,Y)):g.GH(Error("AdFeedbackRenderer.reasons were not set."))}; g.R.clear=function(){M8(this.C);M8(this.N);this.T.length=0;this.hide()}; g.R.hide=function(){this.W&&this.W.hide();this.K&&this.K.hide();PM.prototype.hide.call(this);this.J&&this.J.focus()}; g.R.show=function(){this.W&&this.W.show();this.K&&this.K.show();this.J=document.activeElement;PM.prototype.show.call(this);this.C.focus()}; g.R.qQ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.R.QkJ=function(){this.hide()}; y1.prototype.Tn=function(){return this.W.element}; y1.prototype.getCommand=function(){return this.K}; y1.prototype.isChecked=function(){return this.J.checked};g.H(ey,DM);ey.prototype.xn=function(W){DM.prototype.xn.call(this,W);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ey.prototype.z$=function(W){DM.prototype.z$.call(this,W);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; ey.prototype.jM=function(W){DM.prototype.jM.call(this,W);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.H(oa,PM);g.R=oa.prototype; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);this.C=Y;if(Y.dialogMessage==null&&Y.title==null)g.GH(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{Y.confirmLabel==null&&g.Kx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(W=Y.closeOverlayRenderer&&g.U(Y.closeOverlayRenderer,g.hV)||null)this.W=new EZ(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.v(this,this.W),this.W.init(fx("button"),W,this.macros),this.W.S1(this.element);Y.title&&(W=g.jy(Y.title),this.updateValue("title",W));if(Y.adReasons)for(W=Y.adReasons,k=0;k=this.UP?(this.Kg.hide(),this.GJ=!0,this.publish("i")):this.J&&this.J.isTemplated()&&(W=Math.max(0,Math.ceil((this.UP-W)/1E3)),W!=this.Q5&&(LU(this.J,{TIME_REMAINING:String(W)}),this.Q5=W)))}};g.H(V1,UZ);g.R=V1.prototype; g.R.init=function(W,Y,k){UZ.prototype.init.call(this,W,Y,k);if(Y.image&&Y.image.thumbnail)if(Y.headline)if(Y.description)if((W=Y.actionButton&&g.U(Y.actionButton,g.hV))&&W.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null)if(Y.image&&Y.image.thumbnail){var T=Y.image.thumbnail.thumbnails;T!=null&&T.length>0&&g.zm(g.z6(T[0].url))&&(T[0].url=P.profilePicture)}else g.Kx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.J.init(fx("ad-image"),Y.image,k);this.C.init(fx("ad-text"), Y.headline,k);this.T.init(fx("ad-text"),Y.description,k);this.K.init(fx("button"),W,k);k=o2(this.K.element);eS(this.K.element,k+" This link opens in new tab");this.Kg=W.navigationEndpoint;this.api.FJ()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.KG.bind(this));this.TJ=Y.startMs||0;ld(this)}else g.GH(Error("FlyoutCtaRenderer has no valid action button."));else g.GH(Error("FlyoutCtaRenderer has no description AdText."));else g.GH(Error("FlyoutCtaRenderer has no headline AdText.")); else g.Kx(Error("FlyoutCtaRenderer has no image."))}; g.R.onClick=function(W){UZ.prototype.onClick.call(this,W);this.api.pauseVideo();!g.R_(this.K.element,W.target)&&this.Kg&&(this.layoutId?this.B6.executeCommand(this.Kg,this.layoutId):g.GH(Error("Missing layoutId for flyout cta.")))}; g.R.RS=function(){if(this.W){var W=this.W.getProgressState();(W&&W.current||this.UP)&&1E3*W.current>=this.TJ&&(bd(this),g.YN(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.R.Vy=function(){this.clear()}; g.R.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.KG.bind(this))}; g.R.show=function(){this.K&&this.K.show();UZ.prototype.show.call(this)}; g.R.hide=function(){this.K&&this.K.hide();UZ.prototype.hide.call(this)}; g.R.KG=function(W){W=="hidden"?this.show():this.hide()};g.H(NO,PM);g.R=NO.prototype; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);this.W=Y;if(this.W.rectangle)for(W=this.W.likeButton&&g.U(this.W.likeButton,EO),Y=this.W.dislikeButton&&g.U(this.W.dislikeButton,EO),this.J.init(fx("toggle-button"),W,k),this.K.init(fx("toggle-button"),Y,k),this.Z(this.element,"change",this.vZ),this.T.show(100),this.show(),k=g.p(this.W&&this.W.impressionCommands||[]),W=k.next();!W.done;W=k.next())W=W.value,this.layoutId?this.B6.executeCommand(W,this.layoutId):g.GH(Error("Missing layoutId for instream user sentiment."))}; g.R.clear=function(){this.hide()}; g.R.hide=function(){this.J.hide();this.K.hide();PM.prototype.hide.call(this)}; g.R.show=function(){this.J.show();this.K.show();PM.prototype.show.call(this)}; g.R.vZ=function(){JW6(this.element,"ytp-ad-instream-user-sentiment-selected");this.W.postMessageAction&&this.api.Ri("onYtShowToast",this.W.postMessageAction);this.T.hide()}; g.R.onClick=function(W){this.gD.length>0&&this.vZ();PM.prototype.onClick.call(this,W)};g.H(aa,g.e);g.R=aa.prototype;g.R.iz=function(){this.reset();g.e.prototype.iz.call(this)}; g.R.reset=function(){g.ne(this.T);this.X=!1;this.W&&this.W.stop();this.C.stop();this.J&&(this.J=!1,this.G.play())}; g.R.start=function(){this.reset();this.T.Z(this.K,"mouseover",this.wd,this);this.T.Z(this.K,"mouseout",this.PZ,this);this.A5&&(this.T.Z(this.K,"focusin",this.wd,this),this.T.Z(this.K,"focusout",this.PZ,this));this.W?this.W.start():(this.X=this.J=!0,g.CX(this.K,{opacity:this.N}))}; g.R.wd=function(){this.J&&(this.J=!1,this.G.play());this.C.stop();this.W&&this.W.stop()}; g.R.PZ=function(){this.X?this.C.start():this.W&&this.W.start()}; g.R.sz=function(){this.J||(this.J=!0,this.L.play(),this.X=!0)};var jy1=[new WP("b.f_",!1,0),new WP("j.s_",!1,2),new WP("r.s_",!1,4),new WP("e.h_",!1,6),new WP("i.s_",!0,8),new WP("s.t_",!1,10),new WP("p.h_",!1,12),new WP("s.i_",!1,14),new WP("f.i_",!1,16),new WP("a.b_",!1,18),new WP("a.o_",!1),new WP("g.o_",!1,22),new WP("p.i_",!1,24),new WP("p.m_",!1),new WP("n.k_",!0,20),new WP("i.f_",!1),new WP("a.s_",!0),new WP("m.c_",!1),new WP("n.h_",!1,26),new WP("o.p_",!1),new WP("m.p_",!0,28),new WP("o.a_",!1),new WP("d.p_",!1),new WP("e.i_",!1)].reduce(function(W,Y){W[Y.K]= Y;return W},{});g.H(hd,UZ);g.R=hd.prototype; g.R.init=function(W,Y,k){UZ.prototype.init.call(this,W,Y,k);this.Kg=Y;(this.TJ=X85(this))&&g.Kx(Error("hasAdControlInClickCommands_ is true."));if(!Y||g.Ox(Y))g.GH(Error("SkipButtonRenderer was not specified or empty."));else if(!Y.message||g.Ox(Y.message))g.GH(Error("SkipButtonRenderer.message was not specified or empty."));else if(W=this.C?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},Y=KU(W),Y==null?g.GH(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+W.iconType+".")): (this.api.V().U("disable_touch_events_on_skip_button")&&(Y.D=Object.assign({},Y.D,{"aria-hidden":"true",psD:"false"})),this.J=new g.kZ({S:"button",Ya:[this.C?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],B:[{S:"span",j:this.C?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",B:[Y]}]}),g.v(this,this.J),this.J.S1(this.T.element),this.K=new CU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,"ytp-ad-skip-button-text"),this.C&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"), this.K.init(fx("ad-text"),this.Kg.message,k),g.v(this,this.K),tv(this.J.element,this.K.element,0)),!this.api.V().U("disable_touch_events_on_skip_button")){var P=P===void 0?null:P;k=this.api.V();!(this.gD.length>0)&&k.K&&(NG?0:"ontouchstart"in document.documentElement&&(NB7()||j9()))&&(this.nH(this.e1),P&&this.nH(P),this.gD=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.R.clear=function(){this.UP.reset();this.hide()}; g.R.hide=function(){this.T.hide();this.K&&this.K.hide();bd(this);UZ.prototype.hide.call(this)}; g.R.onClick=function(W){if(this.J!=null){if(W){var Y=W||window.event;Y.returnValue=!1;Y.preventDefault&&Y.preventDefault()}var k;if(PNz(W,{contentCpn:((k=this.api.getVideoData(1))==null?void 0:k.clientPlaybackNonce)||""})===0)this.api.Ri("onAbnormalityDetected");else if(UZ.prototype.onClick.call(this,W),this.publish("j"),this.api.Ri("onAdSkip"),this.GJ||!this.TJ)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.R.xI=function(W){if(!this.GJ)return this.TJ&&PP("SkipButton click commands not pruned while ALC exist"),W;var Y,k=(Y=g.U(W,g.BP))==null?void 0:Y.commands;if(!k)return W;W=[];for(Y=0;Y=this.C&&SPS(this,!0)};g.H(uo,EZ);uo.prototype.init=function(W,Y,k){EZ.prototype.init.call(this,W,Y,k);W=!1;Y.text!=null&&(W=g.jy(Y.text),W=!g.zm(W));W?Y.navigationEndpoint==null?g.Kx(Error("No visit advertiser clickthrough provided in renderer,")):Y.style!=="STYLE_UNKNOWN"?g.Kx(Error("Button style was not a link-style type in renderer,")):this.show():g.Kx(Error("No visit advertiser text was present in the renderer."))};g.H(ZO,PM); ZO.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);W=Y.text;g.zm(Ty(W))?g.Kx(Error("SimpleAdBadgeRenderer has invalid or empty text")):(W&&W.text&&(Y=W.text,this.J&&!this.K&&(Y=this.api.V(),Y=W.text+" "+(Y&&Y.K?"\u2022":"\u00b7")),Y={text:Y,isTemplated:W.isTemplated},W.style&&(Y.style=W.style),W.targetId&&(Y.targetId=W.targetId),W=new CU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),W.init(fx("simple-ad-badge"),Y,k),W.S1(this.element),g.v(this,W)),this.show())}; ZO.prototype.clear=function(){this.hide()};g.H(io,V4);g.H(My,g.NR);g.R=My.prototype;g.R.YG=function(){return this.durationMs}; g.R.stop=function(){this.W&&this.handler.nH(this.W)}; g.R.Xi=function(W){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:W.current};this.publish("h")}; g.R.getProgressState=function(){return this.K}; g.R.zQ=function(W){g.Sa(W,2)&&this.publish("g")};g.H(td,g.NR);g.R=td.prototype;g.R.YG=function(){return this.durationMs}; g.R.start=function(){this.W||(this.W=!0,this.timer.start())}; g.R.stop=function(){this.W&&(this.W=!1,this.timer.stop())}; g.R.Xi=function(){this.oB+=100;var W=!1;this.oB>this.durationMs&&(this.oB=this.durationMs,this.timer.stop(),W=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.oB/1E3};this.publish("h");W&&this.publish("g")}; g.R.getProgressState=function(){return this.K};g.H(HP,UZ);g.R=HP.prototype;g.R.init=function(W,Y,k){UZ.prototype.init.call(this,W,Y,k);var P;if(Y==null?0:(P=Y.templatedCountdown)==null?0:P.templatedAdText){W=Y.templatedCountdown.templatedAdText;if(!W.isTemplated){g.Kx(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new CU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);this.K.init(fx("ad-text"),W,{});this.K.S1(this.element);g.v(this,this.K)}this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){bd(this);UZ.prototype.hide.call(this)}; g.R.Vy=function(){this.hide()}; g.R.RS=function(){if(this.W!=null){var W=this.W.getProgressState();if(W!=null&&W.current!=null&&this.K){var Y=this.W instanceof My?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:W.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.W instanceof td?W.seekableEnd:this.api.getDuration(2,!1);W=W.current;var k,P,T=((k=this.api.getVideoData())==null?0:(P=k.Xj)==null?0:P.call(k))?Math.max(Y-W,0):Y-W;LU(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.qy(T)), TIME_REMAINING:String(Math.ceil(T))})}}}; g.R.show=function(){ld(this);UZ.prototype.show.call(this)};g.H(ni,CU);ni.prototype.onClick=function(W){CU.prototype.onClick.call(this,W);this.api.onAdUxClicked(this.componentType)};g.H(G4,PM);G4.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(W=Y.content){g.HL(this.element,W);var k,P;Y=((k=Y.interaction)==null?void 0:(P=k.accessibility)==null?void 0:P.label)||W;this.element.setAttribute("aria-label",Y)}else g.GH(Error("AdSimpleAttributedString does not have text content"))}; G4.prototype.clear=function(){this.hide()}; G4.prototype.onClick=function(W){PM.prototype.onClick.call(this,W)};g.H(Ki,PM); Ki.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});(W=Y.label)&&W.content&&!g.zm(W.content)?(this.adBadgeText.init(fx("ad-simple-attributed-string"),new pi(W)),(Y=Y.adPodIndex)&&Y.content&&!g.zm(Y.content)&&(this.W=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),this.W.S1(this.element),g.v(this,this.W),this.W.element.classList.add("ytp-ad-badge__pod-index"),this.W.init(fx("ad-simple-attributed-string"),new pi(Y))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.GH(Error("No label is returned in AdBadgeViewModel."))}; Ki.prototype.show=function(){this.adBadgeText.show();var W;(W=this.W)==null||W.show();PM.prototype.show.call(this)}; Ki.prototype.hide=function(){this.adBadgeText.hide();var W;(W=this.W)==null||W.hide();PM.prototype.hide.call(this)};g.H(EI,PM);EI.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});(W=Y.adPodIndex)&&W.content&&!g.zm(W.content)&&(this.W=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),this.W.S1(this.element),g.v(this,this.W),this.W.init(fx("ad-simple-attributed-string"),new pi(W)),Y.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()}; EI.prototype.show=function(){var W;(W=this.W)==null||W.show();PM.prototype.show.call(this)}; EI.prototype.hide=function(){var W;(W=this.W)==null||W.hide();PM.prototype.hide.call(this)};g.H(Jd,PM); Jd.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(Y!=null&&Y.text){var k;if(((k=Y.text)==null?0:k.content)&&!g.zm(Y.text.content)){this.W=new g.kZ({S:"div",j:"ytp-ad-disclosure-banner__text",v6:Y.text.content});g.v(this,this.W);this.W.S1(this.element);var P,T;W=((P=Y.interaction)==null?void 0:(T=P.accessibility)==null?void 0:T.label)||Y.text.content;this.element.setAttribute("aria-label",W);var I;if((I=Y.interaction)==null?0:I.onTap)this.K=new g.kZ({S:"div",j:"ytp-ad-disclosure-banner__chevron",B:[g.hu()]}), g.v(this,this.K),this.K.S1(this.element),this.api.V().U("enable_ad_disclosure_banner_a11y_fix")&&(QB(this.element),this.element.setAttribute("tabindex","0"));this.show()}}else g.GH(Error("No banner text found in AdDisclosureBanner."))}; Jd.prototype.clear=function(){this.hide()};g.H(Ad,g.kZ);Ad.prototype.Xi=function(){var W=this.K.getProgressState(),Y=W.seekableEnd;this.api.getPresentingPlayerType()===2&&(Y=this.J?this.J/1E3:W.seekableEnd);this.progressBar.style.width=rq(new sI(W.seekableStart,Y),W.current,0)*100+"%"}; Ad.prototype.onStateChange=function(){g.XF(this.api.V())||(this.api.getPresentingPlayerType()===2?this.W===-1&&(this.show(),this.W=this.K.subscribe("h",this.Xi,this),this.Xi()):this.W!==-1&&(this.hide(),this.K.MI(this.W),this.W=-1))};g.H(z4,PM); z4.prototype.init=function(W,Y,k,P){PM.prototype.init.call(this,W,Y,k);if(Y.skipOrPreviewRenderer){if(W=g.U(Y.skipOrPreviewRenderer,Fi))k=new OI(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K,this.N),k.S1(this.Fr),k.init(fx("skip-button"),W,this.macros),g.v(this,k);if(W=g.U(Y.skipOrPreviewRenderer,Fi))var T=W.skipOffsetMilliseconds}Y.brandInteractionRenderer&&(W=Y.brandInteractionRenderer.brandInteractionRenderer,k=new NO(this.api,this.layoutId,this.interactionLoggingClientData,this.B6), k.S1(this.TJ),k.init(fx("instream-user-sentiment"),W,this.macros),g.v(this,k));if(W=g.U(Y,Yhc))if(W=g.U(W,Yhc))k=new V1(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K,!!Y.showWithoutLinkedMediaLayout),g.v(this,k),k.S1(this.C),k.init(fx("flyout-cta"),W,this.macros);P=P&&P.videoAdDurationSeconds;Y.adBadgeRenderer&&(k=Y.adBadgeRenderer,W=g.U(k,x_),W!=null?(k=new Ki(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!1),g.v(this,k),k.S1(this.W),k.init(fx("ad-badge"), W,this.macros),this.J=k.element):(W=k.simpleAdBadgeRenderer,W==null&&(W={text:{text:"Anuncio",isTemplated:!1}}),k=new ZO(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0),g.v(this,k),k.S1(this.W),k.init(fx("simple-ad-badge"),W,this.macros)));Y.adPodIndex&&(W=g.U(Y.adPodIndex,Bs$),W!=null&&(k=new EI(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,k),k.S1(this.W),k.init(fx("ad-pod-index"),W)));Y.adDurationRemaining&&!Y.showWithoutLinkedMediaLayout&&(W=Y.adDurationRemaining.adDurationRemainingRenderer, W==null&&(W={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),P=new HP(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K,P,!1),g.v(this,P),P.S1(this.W),P.init(fx("ad-duration-remaining"),W,this.macros));Y.adInfoRenderer&&(P=g.U(Y.adInfoRenderer,Xx))&&(W=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.element,void 0,!1),g.v(this,W),this.J!==null?this.W.insertBefore(W.element,this.J.nextSibling):W.S1(this.W), W.init(fx("ad-info-hover-text-button"),P,this.macros));Y.visitAdvertiserRenderer&&(W=g.U(Y.visitAdvertiserRenderer,g.hV))&&(k=uHS(this)&&this.T?this.T:this.W)&&(P=new uo(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,P),P.S1(k),P.init(fx("visit-advertiser"),W,this.macros),QB(P.element),W=o2(P.element),eS(P.element,W+" This link opens in new tab"));!(P=this.api.V())||g.j_(P)||g.Y3(P)||P.controlsType!="3"&&!P.disableOrganicUi||(T=new Ad(this.api,this.K,T,!1),T.S1(this.UP), g.v(this,T));Y.adDisclosureBannerRenderer&&(Y=g.U(Y.adDisclosureBannerRenderer,hrh))&&(T=new Jd(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),T.S1(this.Kg),T.init(fx("ad-disclosure-banner"),Y),g.v(this,T));this.api.V().U("enable_updated_html5_player_focus_style")&&g.a2(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; z4.prototype.clear=function(){this.hide()};g.DO.prototype.flush=function(W,Y){W=W===void 0?[]:W;Y=Y===void 0?!1:Y;if(g.Oi("enable_client_streamz_web")){W=g.p(W);for(var k=W.next();!k.done;k=W.next())k=xm5(k.value),this.W&&KF(k,T9,2,this.W),k={serializedIncrementBatch:g.Jx(k.J())},g.W8("streamzIncremented",k,{sendIsolatedPayload:Y})}}; g.H(iJd,g.DO);var C1d=new Map;gq.prototype.set=function(W,Y,k){k=k!==void 0?Date.now()+k:void 0;this.W.set(W,Y,k)}; gq.prototype.get=function(W){return this.W.get(W)}; gq.prototype.remove=function(W){this.W.remove(W)};var t56=null;var ea=null,ob=null,vP=null,p82=null;g.N6("yt.www.ads.eventcache.getLastCompanionData",function(){return ea}); g.N6("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.N6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ob}); g.N6("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return vP}); g.N6("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return p82});var Kd5=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Ci.prototype.handleResponse=function(W,Y){if(!Y)throw Error("request needs to be passed into ConsistencyService");var k,P;Y=((k=Y.zX.context)==null?void 0:(P=k.request)==null?void 0:P.consistencyTokenJars)||[];var T;(W=(T=W.responseContext)==null?void 0:T.consistencyTokenJar)&&this.replace(Y,W)}; Ci.prototype.replace=function(W,Y){W=g.p(W);for(var k=W.next();!k.done;k=W.next())delete this.W[k.value.encryptedTokenJarContents];Jj5(this,Y)};var Kah=window.location.hostname.split(".").slice(-2).join("."),Dj;UI.getInstance=function(){Dj=g.Wp("yt.clientLocationService.instance");Dj||(Dj=new UI,g.N6("yt.clientLocationService.instance",Dj));return Dj}; g.R=UI.prototype; g.R.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.W)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.W.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.W.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.W.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.J||this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.J|| this.locationPlayabilityToken}; g.R.handleResponse=function(W){var Y;W=(Y=W.responseContext)==null?void 0:Y.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.W=void 0,g.eM("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Li(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):g.si("YT_CL",JSON.stringify({loctok:W}),15552E3,Kah,!0))}; g.R.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=Li(this))&&this.localStorage.remove("yt-location-playability-token"):g.AB("YT_CL");this.J=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.R.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var Y=!1,k=1E4;g.eM("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Y=!0,k=15E3);return new Promise(function(P,T){navigator.geolocation.getCurrentPosition(function(I){W.W=I;P(I)},function(I){T(I)},{enableHighAccuracy:Y, maximumAge:0,timeout:k})})}; g.R.createUnpluggedLocationInfo=function(W){var Y={};W=W.coords;if(W==null?0:W.latitude)Y.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)Y.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)Y.locationRadiusMeters=Math.round(W.accuracy);return Y}; g.R.createLocationInfo=function(W){var Y={};W=W.coords;if(W==null?0:W.latitude)Y.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)Y.longitudeE7=Math.floor(W.longitude*1E7);return Y};g.R=d52.prototype;g.R.contains=function(W){return Object.prototype.hasOwnProperty.call(this.W,W)}; g.R.get=function(W){if(this.contains(W))return this.W[W]}; g.R.set=function(W,Y){this.W[W]=Y}; g.R.dU=function(){return Object.keys(this.W)}; g.R.remove=function(W){delete this.W[W]};bo.prototype.getModuleId=function(W){return W.serviceId.getModuleId()}; bo.prototype.get=function(W){a:{var Y=this.mappings.get(W.toString());switch(Y.type){case "mapping":W=Y.value;break a;case "factory":Y=Y.value();this.mappings.set(W.toString(),{type:"mapping",value:Y});W=Y;break a;default:W=hQ(Y)}}return W}; bo.prototype.registerService=function(W,Y){this.mappings.set(W.toString(),{type:"mapping",value:Y});return W}; new bo;var gN={},m50=(gN.WEB_UNPLUGGED="^unplugged/",gN.WEB_UNPLUGGED_ONBOARDING="^unplugged/",gN.WEB_UNPLUGGED_OPS="^unplugged/",gN.WEB_UNPLUGGED_PUBLIC="^unplugged/",gN.WEB_CREATOR="^creator/",gN.WEB_KIDS="^kids/",gN.WEB_EXPERIMENTS="^experiments/",gN.WEB_MUSIC="^music/",gN.WEB_REMIX="^music/",gN.WEB_MUSIC_EMBEDDED_PLAYER="^music/",gN.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",gN);fi.prototype.C=function(W,Y,k){Y=Y===void 0?{}:Y;k=k===void 0?T_:k;var P={context:g.lo(W.clickTrackingParams,!1,this.T)};var T=this.K(W);if(T){this.W(P,T,Y);var I;Y=g.xm(this.J());(T=(I=g.U(W.commandMetadata,g.KG))==null?void 0:I.apiUrl)&&(Y=T);I=iMF(z5(Y));W=Object.assign({},{command:W},void 0);P={input:I,sM:dn(I),zX:P,config:W};P.config.Zo?P.config.Zo.identity=k:P.config.Zo={identity:k};return P}k=new g.Qq("Error: Failed to create Request from Command.",W);g.GH(k)}; g.T1.Object.defineProperties(fi.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.H(VK,fi);g.H(Ny,VK);Ny.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",sM:dn("/getDatasyncIdsEndpoint","GET"),zX:{}}}; Ny.prototype.J=function(){return[]}; Ny.prototype.K=function(){}; Ny.prototype.W=function(){};var Ea$={},OQd=(Ea$.GET_DATASYNC_IDS=cP(Ny),Ea$);var F1={},JxK=(F1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",F1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",F1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",F1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",F1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",F1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",F1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", F1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",F1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",F1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",F1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",F1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",F1["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",F1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",F1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", F1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",F1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",F1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",F1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",F1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",F1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",F1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", F1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",F1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",F1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",F1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",F1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",F1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",F1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",F1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", F1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",F1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",F1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",F1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",F1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",F1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",F1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",F1["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",F1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",F1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",F1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",F1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",F1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",F1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",F1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",F1["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",F1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",F1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",F1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",F1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",F1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",F1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",F1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",F1["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",F1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",F1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",F1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",F1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",F1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",F1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",F1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",F1["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", F1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",F1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",F1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",F1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",F1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",F1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",F1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",F1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",F1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", F1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",F1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",F1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",F1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",F1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",F1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",F1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",F1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", F1),wN={},ebv=(wN.auto_search="LATENCY_ACTION_AUTO_SEARCH",wN.ad_to_ad="LATENCY_ACTION_AD_TO_AD",wN.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",wN.app_startup="LATENCY_ACTION_APP_STARTUP",wN.browse="LATENCY_ACTION_BROWSE",wN.cast_splash="LATENCY_ACTION_CAST_SPLASH",wN.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",wN.channels="LATENCY_ACTION_CHANNELS",wN.chips="LATENCY_ACTION_CHIPS",wN.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",wN.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", wN.editor="LATENCY_ACTION_EDITOR",wN.embed="LATENCY_ACTION_EMBED",wN.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",wN.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",wN.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",wN.explore="LATENCY_ACTION_EXPLORE",wN.favorites="LATENCY_ACTION_FAVORITES",wN.home="LATENCY_ACTION_HOME",wN.inboarding="LATENCY_ACTION_INBOARDING",wN.landing="LATENCY_ACTION_LANDING",wN.learning="LATENCY_ACTION_LEARNING", wN.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",wN.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",wN.library="LATENCY_ACTION_LIBRARY",wN.live="LATENCY_ACTION_LIVE",wN.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",wN.management="LATENCY_ACTION_MANAGEMENT",wN.mini_app="LATENCY_ACTION_MINI_APP_PLAY",wN.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",wN.onboarding="LATENCY_ACTION_ONBOARDING",wN.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", wN.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",wN.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",wN.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",wN.prebuffer="LATENCY_ACTION_PREBUFFER",wN.prefetch="LATENCY_ACTION_PREFETCH",wN.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",wN.profile_switcher="LATENCY_ACTION_LOGIN",wN.projects="LATENCY_ACTION_PROJECTS",wN.reel_watch="LATENCY_ACTION_REEL_WATCH",wN.results="LATENCY_ACTION_RESULTS",wN.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", wN.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",wN.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",wN.review="LATENCY_ACTION_REVIEW",wN.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",wN.search_ui="LATENCY_ACTION_SEARCH_UI",wN.search_suggest="LATENCY_ACTION_SUGGEST",wN.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",wN.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",wN.seek="LATENCY_ACTION_PLAYER_SEEK",wN.settings="LATENCY_ACTION_SETTINGS",wN.store="LATENCY_ACTION_STORE", wN.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",wN.tenx="LATENCY_ACTION_TENX",wN.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",wN.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",wN.watch="LATENCY_ACTION_WATCH",wN.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",wN["watch,watch7"]="LATENCY_ACTION_WATCH",wN["watch,watch7_html5"]="LATENCY_ACTION_WATCH",wN["watch,watch7ad"]="LATENCY_ACTION_WATCH",wN["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",wN.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", wN.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",wN.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",wN.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",wN.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",wN.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",wN.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",wN.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",wN);Object.assign(ebv,JxK);g.H(Il,jr);var Wg5=new I0("aft-recorded",Il);var s3$=g.V0.ytLoggingGelSequenceIdObj_||{};g.N6("ytLoggingGelSequenceIdObj_",s3$);var hw=g.V0.ytLoggingLatencyUsageStats_||{};g.N6("ytLoggingLatencyUsageStats_",hw);Xn.prototype.tick=function(W,Y,k,P){BE(this,"tick_"+W+"_"+Y)||g.W8("latencyActionTicked",{tickName:W,clientActionNonce:Y},{timestamp:k,cttAuthInfo:P})}; Xn.prototype.info=function(W,Y,k){var P=Object.keys(W).join("");BE(this,"info_"+P+"_"+Y)||(W=Object.assign({},W),W.clientActionNonce=Y,g.W8("latencyActionInfo",W,{cttAuthInfo:k}))}; Xn.prototype.jspbInfo=function(W,Y,k){for(var P="",T=0;T=T.length?(Y.append(T),W-=T.length):W?(Y.append(new Uint8Array(T.buffer,T.byteOffset,W)),k.append(new Uint8Array(T.buffer,T.byteOffset+W,T.length-W)),W=0):k.append(T);return{Mu:Y,LL:k}}; $S.prototype.isFocused=function(W){return W>=this.J&&W=64&&(this.X.set(W.subarray(0,64-this.K),this.K),Y=64-this.K,this.K=0,kN0(this,this.X,0));for(;Y+64<=k;Y+=64)kN0(this,W,Y);Y=this.start&&(W=2&&k.ssdaiAdsConfig&&PP("Unexpected ad placement renderers length",W.slot,null,{length:P.length});var T;((T=k.adSlots)==null?0:T.some(function(I){var X,h;return((X=g.U(I,u2))==null?void 0:(h=X.adSlotMetadata)==null?void 0:h.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||P.some(function(I){var X,h,B,O; return!!((X=I.renderer)==null?0:(h=X.linearAdSequenceRenderer)==null?0:(B=h.linearAds)==null?0:B.length)||!((O=I.renderer)==null||!O.instreamVideoAdRenderer)})||Jhv(W)})}; c2.prototype.NG=function(){Bjz(this.W)};xg.prototype.oY=function(){var W=this;hW1(this.K,function(){var Y=bb(W.slot.clientMetadata,"metadata_type_ad_break_request_data");return Y.cueProcessedMs?W.W.get().fetch({xD:Y.getAdBreakUrl,F2:new g.L6(Y.vD,Y.K5),cueProcessedMs:Y.cueProcessedMs}):W.W.get().fetch({xD:Y.getAdBreakUrl,F2:new g.L6(Y.vD,Y.K5)})})}; xg.prototype.NG=function(){Bjz(this.K)};f6.prototype.oY=function(){var W=this.slot.clientMetadata,Y,k=(Y=this.slot.fulfilledLayout)!=null?Y:bb(W,"metadata_type_fulfilled_layout");Lp0(this.callback,this.slot,k)}; f6.prototype.NG=function(){jO(this.callback,this.slot,new f("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")};NQ.prototype.build=function(W,Y){return Y.fulfilledLayout||V5(Y,{ya:["metadata_type_fulfilled_layout"]})?new f6(W,Y):this.J(W,Y)};g.H(a1,NQ); a1.prototype.J=function(W,Y){if(V5(Y,{ya:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new c2(W,Y,this.W,this.K,this.v5,this.P6,this.sP,this.Cg,this.Pa);if(V5(Y,{ya:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new xg(W,Y,this.W,this.K,this.v5,this.P6);throw new f("Unsupported slot with type: "+Y.slotType+" and client metadata: "+cj(Y.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.H(Wr,NQ);Wr.prototype.J=function(W,Y){throw new f("Unsupported slot with type: "+Y.slotType+" and client metadata: "+cj(Y.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.R=ssd.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){}; g.R.release=function(){}; g.R.startRendering=function(W){if(W.layoutId!==this.layout.layoutId)this.callback.Wk(this.slot,W,new Uq("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 Y=bb(W.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Vi(this.slot,W),LL5(this.J, this.slot,Y)):PP("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,W)}}; g.R.ej=function(W,Y){W.layoutId!==this.layout.layoutId?this.callback.Wk(this.slot,W,new Uq("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.oI(this.slot,W,Y),Ah0(this),zWX(this))};g.H(TO,g.NR);g.R=TO.prototype;g.R.jr=function(){return this.K.slot}; g.R.Z2=function(){return this.K.layout}; g.R.init=function(){this.J.get().addListener(this)}; g.R.release=function(){this.J.get().removeListener(this);this.dispose()}; g.R.z_=function(){}; g.R.hx=function(){}; g.R.Lm=function(){}; g.R.aH=function(){}; g.R.startRendering=function(W){var Y=this;Pr(this.K,W,function(){return void Y.eZ()})}; g.R.eZ=function(){this.J.get().eZ(this.W)}; g.R.ej=function(W,Y){var k=this;Pr(this.K,W,function(){var P=k.J.get();FVw(P,k.W,3);k.W=[];k.callback.oI(k.slot,W,Y)})}; g.R.iz=function(){this.J.Xr()||this.J.get().removeListener(this);g.NR.prototype.iz.call(this)}; g.T1.Object.defineProperties(TO.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});uH.prototype.h$=function(W,Y){Y=Y===void 0?!1:Y;var k=(this.J.get(W)||[]).concat();if(Y=Y&&gxC(W)){var P=this.J.get(Y);P&&k.push.apply(k,g.ZX(P))}MU(this,W,k);this.W.add(W);Y&&this.W.add(Y)}; uH.prototype.Z_=function(W,Y){Y=Y===void 0?!1:Y;if(!this.W.has(W)){var k=Y&&gxC(W);k&&(Y=!this.W.has(k));this.h$(W,Y)}};g.H(QsV,V4);g.H(nK,TO);g.R=nK.prototype;g.R.pu=function(W,Y){S4("ads-engagement-panel-layout",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),g.U(this.Z2().renderingContent,oI),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(Y,k,P,T,I){return new QsV(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};g.H(eW2,V4);g.H(pK,TO);g.R=pK.prototype;g.R.pu=function(W,Y){S4("banner-image",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),g.U(this.Z2().renderingContent,yy),this.callback,"metadata_type_banner_image_layout_view_model",function(Y,k,P,T,I){return new eW2(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};g.H(GO,V4);g.H(KK,TO);g.R=KK.prototype;g.R.pu=function(W,Y){S4("action-companion",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),g.U(this.Z2().renderingContent,F2),this.callback,"metadata_type_action_companion_ad_renderer",function(Y,k,P,T,I){return new GO(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){Y.layoutId===this.layout.layoutId?this.dD.Z_("impression"):this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};g.H(CDv,V4);g.H(Ef,TO);g.R=Ef.prototype;g.R.pu=function(W,Y){S4("image-companion",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),g.U(this.Z2().renderingContent,w8),this.callback,"metadata_type_image_companion_ad_renderer",function(Y,k,P,T,I){return new CDv(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){Y.layoutId===this.layout.layoutId?this.dD.Z_("impression"):this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};g.H(URd,V4);g.H(Jp,TO);g.R=Jp.prototype;g.R.pu=function(W,Y){S4("shopping-companion",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(Y,k,P,T,I){return new URd(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){Y.layoutId===this.layout.layoutId?this.dD.Z_("impression"):this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};g.H(r5,TO);g.R=r5.prototype;g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(Y,k,P,T,I){return new GO(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(){}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)}; g.R.pu=function(){};g.R=VYF.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){this.Cg.get().addListener(this);this.Cg.get().Ne.push(this);var W=bb(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=bb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hp(this.layout.W7)&&Pm(this.i8.get(),this.layout.layoutId,{BD:Y,zx:W,listener:this})}; g.R.release=function(){this.Cg.get().removeListener(this);zSh(this.Cg.get(),this);hp(this.layout.W7)&&TI(this.i8.get(),this.layout.layoutId)}; g.R.startRendering=function(W){this.callback.Vi(this.slot,W)}; g.R.ej=function(W,Y){WVB(this.P6.get())&&!this.W&&(this.dD.Z_("abandon"),this.W=!0);this.callback.oI(this.slot,W,Y)}; g.R.Z6=function(W){switch(W.id){case "part2viewed":this.dD.Z_("start");this.dD.Z_("impression");break;case "videoplaytime25":this.dD.Z_("first_quartile");break;case "videoplaytime50":this.dD.Z_("midpoint");break;case "videoplaytime75":this.dD.Z_("third_quartile");break;case "videoplaytime100":WVB(this.P6.get())?this.W||(this.dD.Z_("complete"),this.W=!0):this.dD.Z_("complete");Hr(this.dD)&&qU(this.dD,Infinity,!0);Y21(this.P6.get())&&sf(this.K,Infinity,!0);break;case "engagedview":Hr(this.dD)||this.dD.Z_("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:PP("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.R.onVolumeChange=function(){}; g.R.yb=function(){}; g.R.XI=function(){}; g.R.D6=function(){}; g.R.onFullscreenToggled=function(){}; g.R.Dg=function(){}; g.R.DJ=function(){}; g.R.Zk=function(W){Y21(this.P6.get())&&sf(this.K,W*1E3,!1);Hr(this.dD)&&qU(this.dD,W*1E3,!1)}; g.R.Bl=function(){}; g.R.qm=function(){this.dD.Z_("active_view_measurable")}; g.R.GZ=function(){this.dD.Z_("active_view_viewable")}; g.R.Hb=function(){this.dD.Z_("active_view_fully_viewable_audible_half_duration")}; g.R.FY=function(){this.dD.Z_("audio_measurable")}; g.R.XY=function(){this.dD.Z_("audio_audible")};g.H(Ap,TO);g.R=Ap.prototype;g.R.init=function(){TO.prototype.init.call(this);var W=bb(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Y={adsClientData:this.layout.XA};this.W.push(new io(W,this.layout.layoutId,bb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Y,!0))}; g.R.oC=function(){this.T||this.Cg.get().resumeVideo(1)}; g.R.startRendering=function(W){TO.prototype.startRendering.call(this,W);uV(this.Cg.get(),"ad-showing");this.callback.Vi(this.slot,W);this.C.QR=this}; g.R.ej=function(W,Y){TO.prototype.ej.call(this,W,Y);Za(this.Cg.get(),"ad-showing");aM(this.C,this)}; g.R.pu=function(W){switch(W){case "ad-info-icon-button":(this.T=this.Cg.get().bl(1))||this.Cg.get().pauseVideo();break;case "visit-advertiser":this.Cg.get().pauseVideo()}}; g.R.iz=function(){TO.prototype.iz.call(this)};g.H(zO,V4);g.H(d5,TO);g.R=d5.prototype;g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Y,k,P,T,I){return new zO(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(){}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)}; g.R.pu=function(){};g.H(mN,V4);g.H(Dd,TO);Dd.prototype.init=function(){TO.prototype.init.call(this);this.W.push(new mN(g.U(this.layout.renderingContent,$E),this.layout.layoutId,{adsClientData:this.layout.XA}))}; Dd.prototype.pu=function(){Tp(this.T.get(),this.C)&&XQ(this.sP.get(),3)}; Dd.prototype.startRendering=function(W){TO.prototype.startRendering.call(this,W);this.callback.Vi(this.slot,W)}; Dd.prototype.iz=function(){TO.prototype.iz.call(this)};g.H(g5,V4);g.H(FQ,TO);FQ.prototype.init=function(){TO.prototype.init.call(this);var W=g.U(this.layout.renderingContent,fK)||bb(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),Y=j4(this.dD);this.W.push(new g5(W,Y,this.layout.layoutId,{adsClientData:this.layout.XA},!0,!0))}; FQ.prototype.startRendering=function(W){TO.prototype.startRendering.call(this,W);this.callback.Vi(this.slot,W)}; FQ.prototype.pu=function(W,Y){if(Y===this.layout.layoutId)switch(W){case "skip-button":var k;(W=(k=bb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&W.Sl(this.jr(),this.layout)}}; FQ.prototype.iz=function(){TO.prototype.iz.call(this)};Qc.prototype.build=function(W,Y,k,P){if(w5(P,{ya:["metadata_type_ad_break_response_data"],EV:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new ssd(W,k,P,this.K,this.J,this.W);throw new Uq("Unsupported layout with type: "+P.layoutType+" and client metadata: "+cj(P.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.H(WqF,V4);g.H(yc,TO);g.R=yc.prototype;g.R.pu=function(W,Y){S4("ads-engagement-panel",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),g.U(this.Z2().renderingContent,Qy),this.callback,"metadata_type_ads_engagement_panel_renderer",function(Y,k,P,T,I){return new WqF(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){Y.layoutId===this.layout.layoutId?this.dD.Z_("impression"):this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};g.H(e4,TO);g.R=e4.prototype;g.R.pu=function(W,Y){S4("top-banner-image-text-icon-buttoned",W,this.X.get().ph,this.sP.get(),this.T,this.C,this.jr(),this.Z2(),Y)}; g.R.startRendering=function(W){If(this.dD,this.jr(),this.Z2(),g.U(this.Z2().renderingContent,ep),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(Y,k,P,T,I){return new zO(Y,k,P,T,I)},this.W); TO.prototype.startRendering.call(this,W)}; g.R.Vi=function(W,Y){this.C===Y.layoutId&&(this.T===null?this.T=this.sP.get().Tv():PP("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.iz=function(){P2(this.er(),this);TO.prototype.iz.call(this)};kyz.prototype.build=function(W,Y,k,P){if(w5(P,YZX())||g.U(P.renderingContent,Qy)!==void 0)return new yc(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,vxF())||g.U(P.renderingContent,F2)!==void 0)return new KK(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,LSX())||g.U(P.renderingContent,w8)!==void 0)return new Ef(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,leV()))return new Jp(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,fe1()))return new r5(W,k,P,this.Wa,this.sP,this.er, this.i8,this.W);if(w5(P,ox7())||g.U(P.renderingContent,yy)!==void 0)return new pK(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,$Od())||g.U(P.renderingContent,ep)!==void 0)return new e4(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,NjC()))return new d5(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);if(w5(P,yhq())||g.U(P.renderingContent,oI)!==void 0)return new nK(W,k,P,this.Wa,this.sP,this.er,this.i8,this.W);throw new Uq("Unsupported layout with type: "+P.layoutType+" and client metadata: "+ cj(P.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Pdd.prototype.build=function(W,Y,k,P){if(w5(P,{ya:["metadata_type_linked_player_bytes_layout_id"],EV:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Dd(W,k,P,this.Wa,this.sP,this.W);throw new Uq("Unsupported layout with type: "+P.layoutType+" and client metadata: "+cj(P.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.R=THX.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){}; g.R.release=function(){}; g.R.startRendering=function(W){W.layoutId!==this.layout.layoutId?this.callback.Wk(this.slot,W,new Uq("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.Vi(this.slot,W),this.dD.Z_("impression"),RL(this.QH,W,"normal"))}; g.R.ej=function(W,Y){W.layoutId!==this.layout.layoutId?this.callback.Wk(this.slot,W,new Uq("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.oI(this.slot,W,Y)};g.R=IM5.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){}; g.R.release=function(){}; g.R.startRendering=function(W){W.layoutId!==this.layout.layoutId?this.callback.Wk(this.slot,W,new Uq("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.Vi(this.slot,W),this.dD.Z_("impression"),RL(this.QH,W,"normal"))}; g.R.ej=function(W,Y){W.layoutId!==this.layout.layoutId?this.callback.Wk(this.slot,W,new Uq("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.oI(this.slot,W,Y)};of.prototype.build=function(W,Y,k,P){if(!this.P6.get().Y.V().U("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(w5(P,jaX()))return new THX(W,k,P,this.sP,this.QH)}else if(w5(P,{ya:[],EV:["LAYOUT_TYPE_FORECASTING"]}))return new IM5(W,k,P,this.sP,this.QH);throw new Uq("Unsupported layout with type: "+P.layoutType+" and client metadata: "+cj(P.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.H(hG2,V4);g.H(vr,TO);g.R=vr.prototype;g.R.init=function(){TO.prototype.init.call(this);var W=g.U(this.layout.renderingContent,cr)||bb(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),Y={adsClientData:this.layout.XA};this.W.push(new hG2(W,bb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,Y))}; g.R.oC=function(){this.T||this.Cg.get().resumeVideo(2)}; g.R.startRendering=function(W){TO.prototype.startRendering.call(this,W);this.callback.Vi(this.slot,W);this.C.QR=this}; g.R.ej=function(W,Y){TO.prototype.ej.call(this,W,Y);aM(this.C,this)}; g.R.pu=function(W,Y){if(!F4(this.P6.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Y===this.layout.layoutId){if(Tp(this.X.get(),this.G))switch(W){case "visit-advertiser-link":XQ(this.sP.get(),3)}switch(W){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Cg.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Cg.get().bl(2))||this.Cg.get().pauseVideo();break; case "visit-advertiser-link":this.Cg.get().pauseVideo();BH7(this).YU();break;case "skip-button":if(W=BH7(this),this.layout.renderingContent&&!vj(this.layout.clientMetadata,"metadata_type_dai")||!W||!W.uo){var k;(W=(k=bb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&W.Sl(this.jr(),this.layout)}else PP("Requesting to skip by LegacyPlayerBytes when components enabled"),W.fX(this.jr(),this.layout)}}}; g.R.iz=function(){TO.prototype.iz.call(this)};g.H(CK,TO);g.R=CK.prototype;g.R.init=function(){TO.prototype.init.call(this);var W=g.U(this.layout.renderingContent,bH)||bb(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Y={adsClientData:this.layout.XA},k;(k=!!this.layout.renderingContent)||(k=LK(this),k=!(k&&k.uo));this.W.push(new io(W,this.layout.layoutId,bb(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),Y,k))}; g.R.oC=function(){this.T||this.Cg.get().resumeVideo(2)}; g.R.startRendering=function(W){TO.prototype.startRendering.call(this,W);this.callback.Vi(this.slot,W);this.C.QR=this}; g.R.ej=function(W,Y){TO.prototype.ej.call(this,W,Y);aM(this.C,this)}; g.R.pu=function(W,Y){if(!this.P6||!F4(this.P6.get(),"stop_handling_click_for_non_rendering_overlay_layout")||Y===this.layout.layoutId){if(Tp(this.X.get(),this.G))switch(W){case "visit-advertiser":XQ(this.sP.get(),3)}switch(W){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Cg.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Cg.get().bl(2))||this.Cg.get().pauseVideo();break; case "visit-advertiser":this.Cg.get().pauseVideo();LK(this).YU();break;case "skip-button":if(W=LK(this),this.layout.renderingContent&&!vj(this.layout.clientMetadata,"metadata_type_dai")||!W||!W.uo){var k;(W=(k=bb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&W.Sl(this.jr(),this.layout)}else PP("Requesting to skip by LegacyPlayerBytes"),W.fX(this.jr(),this.layout)}}}; g.R.iz=function(){TO.prototype.iz.call(this)};g.H(uE2,V4);g.H(Uf,TO);g.R=Uf.prototype;g.R.startRendering=function(W){var Y=this;Pr(this.K,W,function(){Y.W.push(new uE2(bb(Y.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),W.layoutId,W.XA));Y.eZ();Y.callback.Vi(Y.slot,W);g.b(k_(Y.Cg.get(),1),512)&&Y.callback.Wk(Y.jr(),Y.Z2(),new Uq("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.R.DJ=function(){}; g.R.Dg=function(W){if(W.state.isError()){var Y;this.callback.Wk(this.jr(),this.Z2(),new Uq("A player error happened during adNotify",{playerErrorCode:(Y=W.state.dc)==null?void 0:Y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.R.onFullscreenToggled=function(){}; g.R.XI=function(){}; g.R.D6=function(){}; g.R.yb=function(){}; g.R.onVolumeChange=function(){}; g.R.Z6=function(){}; g.R.Bl=function(){}; g.R.pu=function(){};g.H(iUC,V4);g.H(lH,TO);lH.prototype.init=function(){TO.prototype.init.call(this);var W=g.U(this.layout.renderingContent,Vc),Y=j4(this.dD);this.W.push(new iUC(W,Y,this.layout.layoutId,{adsClientData:this.layout.XA}))}; lH.prototype.startRendering=function(W){TO.prototype.startRendering.call(this,W);this.callback.Vi(this.slot,W)}; lH.prototype.pu=function(W,Y){if(Y===this.layout.layoutId)switch(W){case "skip-button":var k;(W=(k=bb(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&W.Sl(this.jr(),this.layout)}}; lH.prototype.iz=function(){TO.prototype.iz.call(this)};MyF.prototype.build=function(W,Y,k,P){if(W=NU(W,k,P,this.Wa,this.Cg,this.sP,this.K,this.W,this.P6))return W;throw new Uq("Unsupported layout with type: "+P.layoutType+" and client metadata: "+cj(P.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.R=Y1.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){this.Cg.get().addListener(this);this.Cg.get().Ne.push(this);if(this.layout.renderingContent){var W=this.qq.get();W=UM(W,1).S_/1E3}else W=bb(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Y=g.U(this.layout.renderingContent,aI),k=Y?Br(Y.pings):bb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Y=Y?DRd(Y.pings):bb(this.layout.clientMetadata,"metadata_type_active_view_identifier");hp(this.layout.W7)&&Pm(this.i8.get(),this.layout.layoutId, {BD:k,zx:W,listener:this,p9:Y})}; g.R.release=function(){this.Cg.get().removeListener(this);zSh(this.Cg.get(),this);hp(this.layout.W7)&&TI(this.i8.get(),this.layout.layoutId)}; g.R.startRendering=function(W){this.callback.Vi(this.slot,W)}; g.R.ej=function(W,Y){$1(this,"abandon");this.callback.oI(this.slot,W,Y)}; g.R.Z6=function(W){switch(W.id){case "part2viewed":this.dD.Z_("start");this.dD.Z_("impression");break;case "videoplaytime25":this.dD.Z_("first_quartile");break;case "videoplaytime50":this.dD.Z_("midpoint");break;case "videoplaytime75":this.dD.Z_("third_quartile");break;case "videoplaytime100":$1(this,"complete");Hr(this.dD)&&qU(this.dD,Infinity,!0);break;case "engagedview":Hr(this.dD)||this.dD.Z_("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:PP("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.R.onVolumeChange=function(){}; g.R.yb=function(){}; g.R.XI=function(){}; g.R.D6=function(){}; g.R.onFullscreenToggled=function(){}; g.R.Dg=function(W){this.W||(g.Sa(W,4)&&!g.Sa(W,2)?tp(this.dD,"pause"):Ib(W,4)<0&&!(Ib(W,2)<0)&&tp(this.dD,"resume"))}; g.R.DJ=function(){}; g.R.Zk=function(W){Hr(this.dD)&&qU(this.dD,W*1E3,!1)}; g.R.Bl=function(){$1(this,"swipe")}; g.R.qm=function(){this.dD.Z_("active_view_measurable")}; g.R.GZ=function(){this.dD.Z_("active_view_viewable")}; g.R.Hb=function(){this.dD.Z_("active_view_fully_viewable_audible_half_duration")}; g.R.FY=function(){this.dD.Z_("audio_measurable")}; g.R.XY=function(){this.dD.Z_("audio_audible")};ty5.prototype.build=function(W,Y,k,P){if(k.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.U(P.renderingContent,aI)!==void 0)return new Y1(W,k,P,this.Cg,this.sP,this.P6,this.i8,this.qq);Y=["metadata_type_ad_placement_config"];for(var T=g.p(Zd()),I=T.next();!I.done;I=T.next())Y.push(I.value);if(w5(P,{ya:Y,EV:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return k.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Y1(W,k,P,this.Cg,this.sP,this.P6,this.i8,this.qq):new VYF(W,k,P,this.Cg,this.sP, this.UR,this.P6,this.i8);throw new Uq("Unsupported layout with type: "+P.layoutType+" and client metadata: "+cj(P.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var jv={contentCpn:"",QS:new Map};saq.prototype.P7=function(W,Y){var k={};Y=Object.assign({},Y,(k.cc=this.AD.s3(),k));this.AD.Y.y5(W,Y)};var cx9,vo; cx9={ofh:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",dL5:"AUTHENTICATION_MALFORMED",VSr:"AUTHENTICATION_MISSING",N_r:"BAD_REQUEST",hHh:"CAST_SESSION_DEVICE_MISMATCHED",MSS:"CAST_SESSION_VIDEO_MISMATCHED",zh5:"CAST_TOKEN_EXPIRED",Wd5:"CAST_TOKEN_FAILED",Afh:"CAST_TOKEN_MALFORMED",yfg:"CGI_PARAMS_MALFORMED",Kda:"CGI_PARAMS_MISSING",I66:"DEVICE_FALLBACK",zRa:"GENERIC_WITH_LINK_AND_CPN",Wlg:"ERROR_HDCP",A7z:"LICENSE",Kl5:"VIDEO_UNAVAILABLE",p45:"FORMAT_UNAVAILABLE",gJ2:"GEO_FAILURE", ZaD:"HTML5_AUDIO_RENDERER_ERROR",fPS:"GENERIC_WITHOUT_LINK",kwP:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Dz2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",QZr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",BM6:"HTML5_SPS_UMP_STATUS_REJECTED",eR6:"INVALID_DRM_MESSAGE",Dv5:"PURCHASE_NOT_FOUND",QM1:"PURCHASE_REFUNDED",Jo2:"RENTAL_EXPIRED",uCh:"RETRYABLE_ERROR",FgJ:"SERVER_ERROR",kqS:"SIGNATURE_EXPIRED",Rr5:"STOPPED_BY_ANOTHER_PLAYBACK",Nih:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",brS:"STREAMING_NOT_ALLOWED", ajS:"STREAM_LICENSE_NOT_FOUND",zVq:"TOO_MANY_REQUESTS",WOS:"TOO_MANY_REQUESTS_WITH_LINK",AEq:"TOO_MANY_STREAMS_PER_ENTITLEMENT",yEa:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",H8D:"VIDEO_FORBIDDEN",qKP:"VIDEO_NOT_FOUND",eHr:"BROWSER_OR_EXTENSION_ERROR"};vo={}; g.cK=(vo.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",vo.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",vo.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", vo.LICENSE="Se produjo un error de licencia con este video.",vo.VIDEO_UNAVAILABLE="Video no disponible",vo.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",vo.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",vo.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",vo.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",vo.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",vo.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",vo.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",vo.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", vo.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",vo.PURCHASE_NOT_FOUND="Este es un video pagado.",vo.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",vo.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",vo.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",vo.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", vo.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",vo.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",vo.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",vo.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",vo.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",vo.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",vo.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",vo.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",vo.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", vo.TOO_MANY_REQUESTS="Accede para mirar el video.",vo.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",vo.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",vo.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",vo.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", vo.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",vo.VIDEO_NOT_FOUND="No se puede encontrar este video.",vo.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",vo);var x_j;var fW9=g.wY(),V9N=fW9.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!V9N||V9N.length<2)x_j=void 0;else{var NZN=fW9.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);x_j=NZN&&NZN.length===6?Number(NZN[5].replace("_",".")):0}var Wi=x_j,CO=Wi>=0;g.H(g.p5,Rk);g.p5.prototype.Z=function(W,Y,k,P,T){return Rk.prototype.Z.call(this,W,Y,k,P,T)};var CG={},eq=(CG.FAIRPLAY="fairplay",CG.PLAYREADY="playready",CG.WIDEVINE="widevine",CG.CLEARKEY=null,CG.FLASHACCESS=null,CG.UNKNOWN=null,CG.WIDEVINE_CLASSIC=null,CG);G2.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var LG={},U7=(LG.WIDTH={name:"width",video:!0,valid:640,mz:99999},LG.HEIGHT={name:"height",video:!0,valid:360,mz:99999},LG.FRAMERATE={name:"framerate",video:!0,valid:30,mz:9999},LG.BITRATE={name:"bitrate",video:!0,valid:3E5,mz:2E9},LG.EOTF={name:"eotf",video:!0,valid:"bt709",mz:"catavision"},LG.CHANNELS={name:"channels",video:!1,valid:2,mz:99},LG.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",mz:"invalidformat"},LG.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", mz:"nope"},LG.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",mz:"av99.0.05M.08"},LG.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",mz:"invalid"},LG.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",mz:"false"},LG);var aWB=["h","H"],WAK=["9","("],YpK=["9h","(h"],$vc=["8","*"],kZi=["a","A"],P49=["o","O"],Tih=["m","M"],jXj=["mac3","MAC3"],I$K=["meac3","MEAC3"],UO={},QH7=(UO.h=aWB,UO.H=aWB,UO["9"]=WAK,UO["("]=WAK,UO["9h"]=YpK,UO["(h"]=YpK,UO["8"]=$vc,UO["*"]=$vc,UO.a=kZi,UO.A=kZi,UO.o=P49,UO.O=P49,UO.m=Tih,UO.M=Tih,UO.mac3=jXj,UO.MAC3=jXj,UO.meac3=I$K,UO.MEAC3=I$K,UO),X71=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),prz=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var N={},ev=(N["0"]="f",N["160"]="h",N["133"]="h",N["134"]="h",N["135"]="h",N["136"]="h",N["137"]="h",N["264"]="h",N["266"]="h",N["138"]="h",N["298"]="h",N["299"]="h",N["304"]="h",N["305"]="h",N["214"]="h",N["216"]="h",N["374"]="h",N["375"]="h",N["140"]="a",N["141"]="a",N["327"]="sa",N["258"]="m",N["380"]="mac3",N["328"]="meac3",N["161"]="H",N["142"]="H",N["143"]="H",N["144"]="H",N["222"]="H",N["223"]="H",N["145"]="H",N["224"]="H",N["225"]="H",N["146"]="H",N["226"]="H",N["227"]="H",N["147"]="H",N["384"]= "H",N["376"]="H",N["385"]="H",N["377"]="H",N["149"]="A",N["261"]="M",N["381"]="MAC3",N["329"]="MEAC3",N["598"]="9",N["278"]="9",N["242"]="9",N["243"]="9",N["244"]="9",N["775"]="9",N["776"]="9",N["777"]="9",N["778"]="9",N["779"]="9",N["780"]="9",N["781"]="9",N["782"]="9",N["783"]="9",N["247"]="9",N["248"]="9",N["353"]="9",N["355"]="9",N["356"]="9",N["271"]="9",N["577"]="9",N["313"]="9",N["579"]="9",N["272"]="9",N["302"]="9",N["303"]="9",N["407"]="9",N["408"]="9",N["308"]="9",N["315"]="9",N["330"]= "9h",N["331"]="9h",N["332"]="9h",N["333"]="9h",N["334"]="9h",N["335"]="9h",N["336"]="9h",N["337"]="9h",N["338"]="so",N["600"]="o",N["250"]="o",N["251"]="o",N["774"]="o",N["194"]="*",N["195"]="*",N["220"]="*",N["221"]="*",N["196"]="*",N["197"]="*",N["279"]="(",N["280"]="(",N["317"]="(",N["318"]="(",N["273"]="(",N["274"]="(",N["357"]="(",N["358"]="(",N["275"]="(",N["359"]="(",N["360"]="(",N["276"]="(",N["583"]="(",N["584"]="(",N["314"]="(",N["585"]="(",N["561"]="(",N["277"]="(",N["361"]="(h",N["362"]= "(h",N["363"]="(h",N["364"]="(h",N["365"]="(h",N["366"]="(h",N["591"]="(h",N["592"]="(h",N["367"]="(h",N["586"]="(h",N["587"]="(h",N["368"]="(h",N["588"]="(h",N["562"]="(h",N["409"]="(",N["410"]="(",N["411"]="(",N["412"]="(",N["557"]="(",N["558"]="(",N["394"]="1",N["395"]="1",N["396"]="1",N["397"]="1",N["398"]="1",N["399"]="1",N["720"]="1",N["721"]="1",N["400"]="1",N["401"]="1",N["571"]="1",N["402"]="1",N["694"]="1h",N["695"]="1h",N["696"]="1h",N["697"]="1h",N["698"]="1h",N["699"]="1h",N["700"]="1h", N["701"]="1h",N["702"]="1h",N["703"]="1h",N["386"]="3",N["387"]="w",N["406"]="6",N["787"]="1",N["788"]="1",N["548"]="1e",N["549"]="1e",N["550"]="1e",N["551"]="1e",N["809"]="1e",N["810"]="1e",N["552"]="1e",N["811"]="1e",N["812"]="1e",N["553"]="1e",N["813"]="1e",N["814"]="1e",N["554"]="1e",N["815"]="1e",N["816"]="1e",N["555"]="1e",N["817"]="1e",N["818"]="1e",N["572"]="1e",N["556"]="1e",N["645"]="(",N["646"]="(",N["647"]="(",N["648"]="(",N["649"]="(",N["650"]="(",N["651"]="(",N["652"]="(",N["653"]="(", N["654"]="(",N["655"]="(",N["656"]="(",N["657"]="(",N["658"]="(",N["659"]="(",N["660"]="(",N["661"]="(",N["662"]="(",N["663"]="(",N["664"]="(",N["665"]="(",N["666"]="(",N["667"]="(",N["668"]="(",N["669"]="(",N["670"]="(",N["671"]="(",N["672"]="(",N["673"]="(",N["674"]="(h",N["675"]="(h",N["676"]="(h",N["677"]="(h",N["678"]="(h",N["679"]="(h",N["680"]="(h",N["681"]="(h",N["682"]="(h",N["683"]="(h",N["684"]="(h",N["685"]="(h",N["686"]="(h",N["687"]="(h",N["688"]="A",N["689"]="A",N["690"]="A",N["691"]= "MEAC3",N["773"]="i",N["806"]="I",N["805"]="I",N["829"]="9",N["830"]="9",N["831"]="9",N["832"]="9",N["833"]="9",N["834"]="9",N["835"]="9",N["836"]="9",N["892"]="9",N["893"]="9",N["837"]="9",N["838"]="9",N["839"]="9",N["840"]="9",N["841"]="(",N["842"]="(",N["843"]="(",N["844"]="(",N["845"]="(",N["846"]="(",N["847"]="(",N["848"]="(",N["894"]="(",N["895"]="(",N["849"]="(",N["850"]="(",N["851"]="(",N["852"]="(",N["865"]="9",N["866"]="9",N["867"]="9",N["868"]="9",N["869"]="9",N["870"]="9",N["871"]="9", N["872"]="9",N["896"]="9",N["897"]="9",N["873"]="9",N["874"]="9",N["875"]="9",N["876"]="9",N["877"]="(",N["878"]="(",N["879"]="(",N["880"]="(",N["881"]="(",N["882"]="(",N["883"]="(",N["884"]="(",N["898"]="(",N["899"]="(",N["885"]="(",N["886"]="(",N["887"]="(",N["888"]="(",N);var lr={},tcq=(lr.STEREO_LAYOUT_UNKNOWN=0,lr.STEREO_LAYOUT_LEFT_RIGHT=1,lr.STEREO_LAYOUT_TOP_BOTTOM=2,lr);var Lb2={Q32:0,k8q:1,DLJ:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"},rdv={yog:0,NXr:124,Rug:144,lra:220,Ekg:240,cLq:340,eua:360,Lzq:480,M3z:588,huP:608,zrr:720,Wga:740,dvq:1080,V35:1100,rLP:1440,b7q:2160,Aog:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P", 588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED",1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var br,AM,co,R22;br={};g.FP=(br.auto=0,br.tiny=144,br.light=144,br.small=240,br.medium=360,br.large=480,br.hd720=720,br.hd1080=1080,br.hd1440=1440,br.hd2160=2160,br.hd2880=2880,br.highres=4320,br);AM={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};co={}; R22=(co.QUALITY_ORDINAL_UNKNOWN=0,co.QUALITY_ORDINAL_144P_SAVER=124,co.QUALITY_ORDINAL_144P=144,co.QUALITY_ORDINAL_240P_SAVER=220,co.QUALITY_ORDINAL_240P=240,co.QUALITY_ORDINAL_360P_SAVER=340,co.QUALITY_ORDINAL_360P=360,co.QUALITY_ORDINAL_480P=480,co.QUALITY_ORDINAL_608P_SAVER=588,co.QUALITY_ORDINAL_608P=608,co.QUALITY_ORDINAL_720P=720,co.QUALITY_ORDINAL_720P_ENHANCED=740,co.QUALITY_ORDINAL_1080P=1080,co.QUALITY_ORDINAL_1080P_ENHANCED=1100,co.QUALITY_ORDINAL_1440P=1440,co.QUALITY_ORDINAL_2160P=2160, co.QUALITY_ORDINAL_HIGHRES=9999,co);var QR="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ww.prototype.isHdr=function(){return this.W==="smpte2084"||this.W==="arib-std-b67"};o9.prototype.pN=function(){return this.containerType===2}; o9.prototype.isEncrypted=function(){return!!this.tY}; o9.prototype.xH=function(){return!!this.audio}; o9.prototype.qa=function(){return!!this.video}; var L5=!1,Y65=!1;g.H(OM,g.NR);g.R=OM.prototype;g.R.appendBuffer=function(W,Y,k){if(this.AY.Yj()!==this.appendWindowStart+this.start||this.AY.SC()!==this.appendWindowEnd+this.start||this.AY.m2()!==this.timestampOffset+this.start)this.AY.supports(1),this.AY.sD(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.AY.v3(this.timestampOffset+this.start);this.AY.appendBuffer(W,Y,k)}; g.R.abort=function(){this.AY.abort()}; g.R.remove=function(W,Y){this.AY.remove(W+this.start,Y+this.start)}; g.R.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.R.clear=function(){this.AY.clear()}; g.R.sD=function(W,Y){this.appendWindowStart=W;this.appendWindowEnd=Y}; g.R.d9=function(){return this.timestampOffset+this.start}; g.R.Yj=function(){return this.appendWindowStart}; g.R.SC=function(){return this.appendWindowEnd}; g.R.v3=function(W){this.timestampOffset=W}; g.R.m2=function(){return this.timestampOffset}; g.R.Mt=function(W){W=this.AY.Mt(W===void 0?!1:W);return BC(W,this.start,this.end)}; g.R.j6=function(){return this.AY.j6()}; g.R.rN=function(){return this.AY.rN()}; g.R.IM=function(){return this.AY.IM()}; g.R.H8=function(){return this.AY.H8()}; g.R.pK=function(){this.AY.pK()}; g.R.Lc=function(W){return this.AY.Lc(W)}; g.R.gq=function(){return this.AY.gq()}; g.R.OL=function(){return this.AY.OL()}; g.R.Ot=function(W,Y,k){this.AY.Ot(W,Y,k)}; g.R.Xw=function(W,Y,k){this.AY.Xw(W,Y,k)}; g.R.hX=function(W,Y){return this.AY.hX(W,Y)}; g.R.supports=function(W){return this.AY.supports(W)}; g.R.F3=function(){return this.AY.F3()}; g.R.isView=function(){return!0}; g.R.UJ=function(){return this.AY.UJ()?this.isActive:!1}; g.R.isLocked=function(){return this.yf&&!this.isActive}; g.R.ER=function(W){W=this.AY.ER(W);W.vw=this.start+"-"+this.end;return W}; g.R.X3=function(){return this.AY.X3()}; g.R.m$=function(){return this.AY.m$()}; g.R.ZF=function(){return this.AY.ZF()}; g.R.iz=function(){this.AY.VQ(this.DH);g.NR.prototype.iz.call(this)};var oo=!1;g.H(ZQ,g.NR);g.R=ZQ.prototype;g.R.appendBuffer=function(W,Y,k){this.j8=!1;k&&(this.US=k);if(W.length){var P;((P=this.qT)==null?0:P.appendBuffer)?this.qT.appendBuffer(W):this.qT?this.qT.append(W):this.I7&&this.I7.webkitSourceAppend(this.id,W)}Y&&(Y.isEncrypted()&&(this.Ep=this.US),Y.type===3&&(this.Ma=Y),this.Y_.push(Y.TW()),this.Y_.length>4&&this.Y_.shift());this.OY&&(this.OY.length>=2||W.length>1048576?delete this.OY:this.OY.push(W))}; g.R.abort=function(){try{this.qT?this.qT.abort():this.I7&&this.I7.webkitSourceAbort(this.id)}catch(Y){if(UM2){var W=new g.Qq("Error while abort the source buffer: "+Y.name+", "+Y.message);g.GH(W)}}this.US=this.Ma=null}; g.R.remove=function(W,Y,k){this.j8=!1;var P;if((P=this.qT)==null?0:P.remove)k&&k({b:PC(this.Mt()),s:W,e:Y}),this.qT.remove(W,Y)}; g.R.removeAll=function(){this.remove(this.Yj(),this.SC())}; g.R.clear=function(){this.IM()||(this.abort(),this.removeAll(),this.Ep=this.US=this.Ma=null,this.appendWindowStart=this.timestampOffset=0,this.V8=kB([],[]),this.j8=!1,this.OY=uY?[]:void 0,this.F_=!0)}; g.R.Yj=function(){if(oo&&this.qa)return this.appendWindowStart;var W;return((W=this.qT)==null?void 0:W.appendWindowStart)||0}; g.R.SC=function(){var W;return((W=this.qT)==null?void 0:W.appendWindowEnd)||0}; g.R.sD=function(W,Y){this.qT&&(oo&&this.qa?(this.appendWindowStart=W,this.qT.appendWindowEnd=Y):W>this.Yj()?(this.qT.appendWindowEnd=Y,this.qT.appendWindowStart=W):(this.qT.appendWindowStart=W,this.qT.appendWindowEnd=Y))}; g.R.d9=function(){return this.timestampOffset}; g.R.v3=function(W){oo?this.timestampOffset=W:this.supports(1)&&(this.qT.timestampOffset=W)}; g.R.m2=function(){return oo?this.timestampOffset:this.supports(1)?this.qT.timestampOffset:0}; g.R.Mt=function(W){if(W===void 0?0:W)return this.j8||this.j6()||(this.V8=this.Mt(!1),this.j8=!0),this.V8;try{return this.qT?this.qT.buffered:this.I7?this.I7.webkitSourceBuffered(this.id):kB([0],[Infinity])}catch(Y){return kB([],[])}}; g.R.j6=function(){var W;return((W=this.qT)==null?void 0:W.updating)||!1}; g.R.IM=function(){return this.F_}; g.R.H8=function(){return!this.F_&&this.j6()}; g.R.pK=function(){this.F_=!1}; g.R.Lc=function(W){var Y=W==null?void 0:W.lz;W=W==null?void 0:W.containerType;return!Y&&!W||Y===this.lz&&W===this.containerType}; g.R.gq=function(){return this.US}; g.R.OL=function(){return this.Ep}; g.R.hX=function(W,Y){return this.containerType!==W||this.lz!==Y}; g.R.Ot=function(W,Y,k){if(this.containerType!==W||k&&this.hX(W,k))this.supports(4),iY()&&this.qT.changeType(Y),k&&(this.lz=k);this.containerType=W}; g.R.Xw=function(W,Y,k){this.containerType&&this.hX(W,Y)&&iY()&&this.qT.changeType(k);this.containerType=W;this.lz=Y}; g.R.F3=function(){return this.Ma}; g.R.isView=function(){return!1}; g.R.supports=function(W){switch(W){case 1:var Y;return((Y=this.qT)==null?void 0:Y.timestampOffset)!==void 0;case 0:var k;return!((k=this.qT)==null||!k.appendBuffer);case 2:var P;return!((P=this.qT)==null||!P.remove);case 3:var T,I;return!!(((T=this.qT)==null?0:T.addEventListener)&&((I=this.qT)==null?0:I.removeEventListener));case 4:return!(!this.qT||!this.qT.changeType);default:return!1}}; g.R.UJ=function(){return!this.j6()}; g.R.isLocked=function(){return!1}; g.R.ER=function(W){W.to=this.m2();W.up=this.j6();var Y,k=((Y=this.qT)==null?void 0:Y.appendWindowStart)||0,P;Y=((P=this.qT)==null?void 0:P.appendWindowEnd)||Infinity;W.aw=k.toFixed(3)+"-"+Y.toFixed(3);return W}; g.R.rN=function(){var W;return((W=this.qT)==null?void 0:W.writeHead)||0}; g.R.X3=function(){for(var W={},Y=0;Y=7&&(!Y||((P=this.W6)==null?0:P.U("mweb_ios_allow_playback_workaround_when_ready")))&&ru6(this,function(){g.Ii(function(){Uy1(W,W.getCurrentTime(),0)},500)})}return Y}; g.R.seekTo=function(W){this.Tg()>0&&(CO&&Wi<4&&(W=Math.max(.1,W)),this.setCurrentTime(W))}; g.R.lw=function(){if(!this.K&&this.j1)if(this.j1.C)try{var W;HC(this,{l:"mer",sr:(W=this.W6)==null?void 0:W.Jf(),rs:pY(this.j1)});this.j1.clear();this.K=this.j1;this.j1=void 0}catch(Y){W=new g.Qq("Error while clearing Media Source in MediaElement: "+Y.name+", "+Y.message),g.GH(W),this.stopVideo()}else this.stopVideo()}; g.R.stopVideo=function(){var W=this;if(!this.K){var Y;(Y=this.j1)==null||vmq(Y);if(vzF){if(!this.J){var k=new KY;k.then(void 0,function(){}); this.J=k;CRq&&this.pause();g.Ii(function(){W.J===k&&(r6(W),k.resolve())},200)}}else r6(this)}}; g.R.F8=function(){var W=this.EE();return Sc(W)&&this.getDuration()?IH(W,this.getCurrentTime()):0}; g.R.UG=function(){var W=this.getDuration();return W===Infinity?1:W?this.F8()/W:0}; g.R.ER=function(){try{var W=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:PC(this.OG(),",",3),vbu:PC(this.EE()),vbs:PC(this.c$()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Tg(),vns:""+this.m7(),vec:""+this.NI(),vemsg:this.JD(),vvol:""+this.getVolume(),vdom:""+ +this.qw(),vsrc:""+ +!!this.pn(),vw:""+W.width,vh:""+W.height}}catch(Y){return{}}}; g.R.hasError=function(){return this.NI()>0}; g.R.addEventListener=function(W,Y){this.T.listen(W,Y,!1,this);this.NC(W)}; g.R.removeEventListener=function(W,Y){this.T.nH(W,Y,!1,this)}; g.R.dispatchEvent=function(W){if(this.J&&W.type==="pause")return!1;if(LPd){var Y,k=((Y=W.W)==null?void 0:Y.timeStamp)||Infinity;Y=k>performance.now()?k-Date.now()+performance.now():k;k=this.K||this.j1;if((k==null?0:k.IM())||Y<=((k==null?void 0:k.X)||0)){var P;HC(this,{l:"mede",sr:(P=this.W6)==null?void 0:P.Jf(),et:W.type});return!1}if(this.yG)return HC(this,{l:"medes",et:W.type}),k&&W.type==="seeking"&&(k.X=performance.now(),this.yG=!1),!1}return this.T.dispatchEvent(W)}; g.R.BL=function(){this.X=!1}; g.R.jc=function(){this.X=!0;this.Ic(!0)}; g.R.RX=function(){this.X&&!this.GO()&&this.Ic(!0)}; g.R.equals=function(W){return!!W&&W.Tn()===this.Tn()}; g.R.iz=function(){this.G&&this.removeEventListener("volumechange",this.RX);vzF&&r6(this);g.e.prototype.iz.call(this)}; var vzF=!1,CRq=!1,LPd=!1,cdF=!1;g.R=g.zc.prototype;g.R.isPaused=function(){return g.b(this,4)}; g.R.isPlaying=function(){return g.b(this,8)&&!g.b(this,512)&&!g.b(this,64)&&!g.b(this,2)}; g.R.isOrWillBePlaying=function(){return g.b(this,8)&&!g.b(this,2)&&!g.b(this,1024)}; g.R.isCued=function(){return g.b(this,64)&&!g.b(this,8)&&!g.b(this,4)}; g.R.isBuffering=function(){return g.b(this,1)&&!g.b(this,2)}; g.R.isError=function(){return g.b(this,128)}; g.R.isSuspended=function(){return g.b(this,512)}; g.R.jT=function(){return g.b(this,64)&&g.b(this,4)}; g.R.toString=function(){return"PSt."+this.state.toString(16)}; var xP={},fG=(xP.BUFFERING="buffering-mode",xP.CUED="cued-mode",xP.ENDED="ended-mode",xP.PAUSED="paused-mode",xP.PLAYING="playing-mode",xP.SEEKING="seeking-mode",xP.UNSTARTED="unstarted-mode",xP);g.H(oH,g.e);g.R=oH.prototype;g.R.Iy=function(){return this.J}; g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){var W=bb(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Y=bb(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");hp(this.layout.W7)&&Pm(this.i8.get(),this.layout.layoutId,{BD:Y,zx:W,listener:this,Nh:this.OU()});pdK(this.sP.get(),this);W=this.E6;Y=this.layout.layoutId;var k={Nh:this.OU()};W.W.set(Y,k);this.KR()}; g.R.g2=function(){}; g.R.release=function(){hp(this.layout.W7)&&TI(this.i8.get(),this.layout.layoutId);G11(this.sP.get(),this);this.E6.W.delete(this.layout.layoutId);this.LX()}; g.R.WD=function(){}; g.R.p5=function(){}; g.R.startRendering=function(W){Sv(vC(this));if(CY(this,W)){var Y=this.W;h_(Y.params.cU.P6.get(),!0)&&JuF(Y,"p_sr",{});LY(this);this.Tb(W);this.OU()||this.Jq(!1)}}; g.R.Vi=function(W,Y){if(Y.layoutId===this.layout.layoutId){this.NT="rendering";this.K=this.Cg.get().isMuted()||this.Cg.get().getVolume()===0;this.Z_("impression");this.Z_("start");if(this.Cg.get().isMuted()){fY(this,"mute");var k;W=((k=ec(this))==null?void 0:k.muteCommands)||[];dk(this.UR.get(),W,this.layout.layoutId)}if(this.Cg.get().isFullscreen()){this.h$("fullscreen");var P;k=((P=ec(this))==null?void 0:P.fullscreenCommands)||[];dk(this.UR.get(),k,this.layout.layoutId)}this.OU()||(P=this.CH.get(), P.J&&!P.K&&(P.C=!1,P.K=!0,P.actionType!=="ad_to_video"&&(Aw("pbs",void 0,P.actionType),g.Oi("finalize_all_timelines")&&TS2(P.actionType))));this.rX(1);this.M$(Y);var T;Y=((T=ec(this))==null?void 0:T.impressionCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.JP=function(W,Y,k){this.G={mD:3,hN:W==="load_timeout"?402:400,errorMessage:Y.message};this.Z_("error");var P;W=((P=ec(this))==null?void 0:P.errorCommands)||[];dk(this.UR.get(),W,this.layout.layoutId);this.OU()||this.JE.Wk(this.slot,this.layout,Y,k)}; g.R.u$=function(){if(this.NT==="rendering"){fY(this,"pause");var W,Y=((W=ec(this))==null?void 0:W.pauseCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId);this.rX(2)}}; g.R.YS=function(){if(this.NT==="rendering"){fY(this,"resume");var W,Y=((W=ec(this))==null?void 0:W.resumeCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.U4=function(W,Y){Y=Y===void 0?!1:Y;if(this.NT==="rendering"){var k={currentTimeSec:W,flush:Y};BT(this.W,"p_ip",k);qU(this.dD,W*1E3,Y);this.K||qU(this.dD,W*1E3,Y===void 0?!1:Y);var P=this.bC();if(P){P/=1E3;if(W>=P*.25||Y)this.Z_("first_quartile"),BT(this.W,"p_fq",k);if(W>=P*.5||Y)this.Z_("midpoint"),BT(this.W,"p_sq",k);if(W>=P*.75||Y)this.Z_("third_quartile"),BT(this.W,"p_tq",k);this.P6.get().Y.V().experiments.Nq("enable_progress_command_flush_on_kabuki")?sf(this.T,W*1E3,Y):sf(this.T,W*1E3,WRF(this)? Y:!1)}}}; g.R.s3=function(){var W;return((W=UM(this.qq.get(),1))==null?void 0:W.clientPlaybackNonce)||""}; g.R.Xx=function(W,Y){W.layoutId!==this.layout.layoutId?this.JE.Wk(this.slot,W,new Uq("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"):Y()}; g.R.oI=function(W,Y,k){if(Y.layoutId===this.layout.layoutId)switch(this.NT="not_rendering",this.layoutExitReason=void 0,this.OU()||(W=k!=="normal"||this.position+1===this.X)&&this.Jq(W),this.g4(k),this.rX(0),k){case "abandoned":if(Rf(this.dD,"impression")){var P,T=((P=ec(this))==null?void 0:P.abandonCommands)||[];dk(this.UR.get(),T,this.layout.layoutId)}break;case "normal":P=((T=ec(this))==null?void 0:T.completeCommands)||[];dk(this.UR.get(),P,this.layout.layoutId);break;case "skipped":var I;P=((I= ec(this))==null?void 0:I.skipCommands)||[];dk(this.UR.get(),P,this.layout.layoutId)}}; g.R.aJ=function(){return this.layout.layoutId}; g.R.PT=function(){return this.G}; g.R.qm=function(){if(this.NT==="rendering"){this.dD.Z_("active_view_measurable");var W,Y=((W=ec(this))==null?void 0:W.activeViewMeasurableCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.Hb=function(){if(this.NT==="rendering"){this.dD.Z_("active_view_fully_viewable_audible_half_duration");var W,Y=((W=ec(this))==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.GZ=function(){if(this.NT==="rendering"){this.dD.Z_("active_view_viewable");var W,Y=((W=ec(this))==null?void 0:W.activeViewViewableCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.XY=function(){if(this.NT==="rendering"){this.dD.Z_("audio_audible");var W,Y=((W=ec(this))==null?void 0:W.activeViewAudioAudibleCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.FY=function(){if(this.NT==="rendering"){this.dD.Z_("audio_measurable");var W,Y=((W=ec(this))==null?void 0:W.activeViewAudioMeasurableCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}}; g.R.Jq=function(W){this.CH.get().Jq(bb(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,W,this.position,this.X,!1)}; g.R.onFullscreenToggled=function(W){if(this.NT==="rendering")if(W){this.h$("fullscreen");var Y,k=((Y=ec(this))==null?void 0:Y.fullscreenCommands)||[];dk(this.UR.get(),k,this.layout.layoutId)}else this.h$("end_fullscreen"),Y=((k=ec(this))==null?void 0:k.endFullscreenCommands)||[],dk(this.UR.get(),Y,this.layout.layoutId)}; g.R.onVolumeChange=function(){if(this.NT==="rendering")if(this.Cg.get().isMuted()){fY(this,"mute");var W,Y=((W=ec(this))==null?void 0:W.muteCommands)||[];dk(this.UR.get(),Y,this.layout.layoutId)}else fY(this,"unmute"),W=((Y=ec(this))==null?void 0:Y.unmuteCommands)||[],dk(this.UR.get(),W,this.layout.layoutId)}; g.R.XI=function(){}; g.R.D6=function(){}; g.R.yb=function(){}; g.R.Z6=function(){}; g.R.Bl=function(){}; g.R.h$=function(W){this.dD.h$(W,!this.K)}; g.R.Z_=function(W){this.dD.Z_(W,!this.K)}; g.R.OU=function(){var W=bb(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return W===void 0?(PP("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.P6.get().OU(W)};g.H(YD,oH);g.R=YD.prototype;g.R.KR=function(){}; g.R.LX=function(){var W=this.sP.get();W.jn===this&&(W.jn=null);this.timer.stop()}; g.R.WD=function(){this.timer.stop();oH.prototype.u$.call(this)}; g.R.p5=function(){kD(this);oH.prototype.YS.call(this)}; g.R.bC=function(){return bb(this.Z2().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.R.ej=function(W,Y){var k=this;this.Xx(W,function(){k.NT!=="rendering_stop_requested"&&(k.NT="rendering_stop_requested",k.layoutExitReason=Y,lY(k,Y),k.timer.stop())})}; g.R.Xi=function(){var W=Date.now(),Y=W-this.Mw;this.Mw=W;this.oB+=Y;this.oB>=this.bC()?this.ql():(this.U4(this.oB/1E3),$D(this,this.oB))}; g.R.g4=function(){}; g.R.DJ=function(){}; g.H(Pv,YD);g.R=Pv.prototype;g.R.Dg=function(W){if(this.NT!=="not_rendering"){W=bY(this,W);var Y=this.Cg.get().getPresentingPlayerType()===2;this.NT==="rendering_start_requested"?Y&&af(W)&&this.m8():Y?g.Sa(W,2)?PP("Receive player ended event during MediaBreak",this.jr(),this.Z2()):cC(this,W):this.ME()}}; g.R.Tb=function(){Nqd(this);m6K(this.Cg.get());this.sP.get().jn=this;sk("pbp")||sk("pbs")||Aw("pbp");sk("pbp","watch")||sk("pbs","watch")||Aw("pbp",void 0,"watch");this.m8()}; g.R.M$=function(W){this.CH.get();var Y=bb(W.clientMetadata,"metadata_type_ad_placement_config").kind,k=this.position===0;W=bb(W.clientMetadata,"metadata_type_linked_in_player_layout_type");W={adBreakType:xB(Y),adType:BGS(W)};var P=void 0;k?Y!=="AD_PLACEMENT_KIND_START"&&(P="video_to_ad"):P="ad_to_ad";KS("ad_mbs",void 0,P);g.Ek(W,P);kD(this)}; g.R.ME=function(){this.VS()}; g.R.ql=function(){$k1(this);this.VS()}; g.H(Tn,YD);g.R=Tn.prototype;g.R.Dg=function(W){this.NT!=="not_rendering"&&(W=bY(this,W),cC(this,W))}; g.R.Tb=function(){PP("Not used in SSAP")}; g.R.M$=function(){kD(this)}; g.R.ME=function(){PP("Not used in SSAP")}; g.R.ql=function(){$k1(this);this.JE.t6(this.jr(),this.Z2(),"normal")}; g.H(jt,Tn);jt.prototype.ej=function(W,Y){var k=this;this.Xx(W,function(){PT(k.J,Y)&&(k.NT="rendering_stop_requested",k.layoutExitReason=Y,lY(k,Y),k.timer.stop())})}; jt.prototype.startRendering=function(W){Sv(vC(this));CY(this,W)&&(LY(this),this.sP.get().jn=this)};g.H(St,oH);g.R=St.prototype;g.R.ME=function(){this.VS()}; g.R.Dg=function(W){if(this.NT!=="not_rendering"){W=bY(this,W);var Y=this.Cg.get().getPresentingPlayerType()===2;this.NT==="rendering_start_requested"?Y&&af(W)&&this.m8():!Y||g.Sa(W,2)?this.VS():cC(this,W)}}; g.R.KR=function(){bb(this.Z2().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=bb(this.Z2().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.R.LX=function(){bb(this.Z2().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.J$){var W=this.context.cU,Y=this.J$,k=this.Z2().layoutId;if(h_(W.P6.get(),!0)){var P={};W.P7("mccru",(P.cid=Y,P.p_ac=k,P))}this.wZ.get().removeCueRange(this.J$)}this.J$=void 0;var T;(T=this.Ev)==null||T.dispose();this.RP&&this.RP.dispose()}; g.R.Tb=function(W){var Y=IL(this.P6.get()),k=Xi(this.P6.get());if(Y&&k&&!this.OU()){k=bb(W.clientMetadata,"metadata_type_preload_player_vars");var P=this.P6.get();P=g.W2(P.Y.V().experiments,"html5_preload_wait_time_secs");k&&this.RP&&this.RP.start(P*1E3)}TG7(this,W);Nqd(this);Y?(k=this.JT.get(),W=bb(W.clientMetadata,"metadata_type_player_vars"),k.Y.loadVideoByPlayerVars(W,!1,2)):ccd(this.JT.get(),bb(W.clientMetadata,"metadata_type_player_vars"));var T;(T=this.Ev)==null||T.start();Y||this.JT.get().Y.playVideo(2)}; g.R.M$=function(){var W;(W=this.Ev)==null||W.stop();this.We();(this.adCpn=VaF(this))||PP("Media layout confirmed started, but ad CPN not set.");this.RI.get().ou("onAdStart",this.adCpn);this.wQ=Date.now()}; g.R.bC=function(){var W;return(W=UM(this.qq.get(),2))==null?void 0:W.S_}; g.R.YU=function(){this.dD.h$("clickthrough")}; g.R.ej=function(W,Y){var k=this;this.Xx(W,function(){if(k.NT!=="rendering_stop_requested"){k.NT="rendering_stop_requested";k.layoutExitReason=Y;lY(k,Y);var P;(P=k.Ev)==null||P.stop();k.RP&&k.RP.stop();jlC(k)}})}; g.R.onCueRangeEnter=function(W){if(W!==this.J$)PP("Received CueRangeEnter signal for unknown layout.",this.jr(),this.Z2(),{cueRangeId:W});else{var Y=this.context.cU,k=this.Z2().layoutId;if(h_(Y.P6.get(),!0)){var P={};Y.P7("mccre",(P.cid=W,P.p_ac=k,P))}this.wZ.get().removeCueRange(this.J$);this.J$=void 0;F4(this.context.P6.get(),"html5_ssap_flush_at_stop_rendering")&&this.OU()||(W=bb(this.Z2().clientMetadata,"metadata_type_video_length_seconds"),this.U4(W,!0),this.Z_("complete"))}}; g.R.g4=function(W){W!=="abandoned"&&this.RI.get().ou("onAdComplete");this.RI.get().ou("onAdEnd",this.adCpn)}; g.R.We=function(){this.J$="adcompletioncuerange:"+this.Z2().layoutId;this.wZ.get().addCueRange(this.J$,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var W=this.context.cU,Y=this.J$,k=this.Z2().layoutId;if(h_(W.P6.get(),!0)){var P={};W.P7("mccr",(P.cid=Y,P.p_ac=k,P))}}; g.R.onCueRangeExit=function(){}; g.R.DJ=function(W){this.NT==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&W>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Cg.get().xp(!0),this.U4(W))}; g.R.U4=function(W,Y){oH.prototype.U4.call(this,W,Y===void 0?!1:Y);Y=Date.now()-this.wQ;var k=W*1E3,P={contentCpn:this.s3(),adCpn:VaF(this)};if(W-this.tV>=5){var T=Y=2||(this.dZ.ej(this.layout,Y),W=F4(this.params.context.P6.get(),"html5_ssap_pass_transition_reason")&&Y==="abandoned",this.Ts()&&!W&&(F4(this.params.context.P6.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(Y)||PP("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:Y})),this.Pa.get().finishSegmentByCpn(this.layout.layoutId, UM(this.qq.get(),1).clientPlaybackNonce,Nt(Y,this.params.context.P6))),this.Cg.get().removeListener(this),this.qs()&&T2(this.dZ.Iy())&&this.O$.oI(this.slot,this.layout,this.dZ.Iy().W))}; g.R.WO=function(W,Y,k){Kqv({cpn:W,AD:this.qq.get(),k$:!0});this.Z2().layoutId!==W||F4(this.params.context.P6.get(),"html5_ssap_pass_transition_reason")&&k===5||(this.dZ.Iy().currentState<2&&(W=aH(k,this.params.context.P6),W==="error"?this.O$.Wk(this.slot,this.layout,new Uq("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:k},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):RL(this.nN, this.layout,W)),F4(this.params.context.P6.get(),"html5_ssap_exit_without_waiting_for_transition")||this.O$.oI(this.slot,this.layout,this.dZ.Iy().W))};g.H(Zt,g.e);g.R=Zt.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.Ff=function(){}; g.R.LN=function(){return this.Ls[this.tS]}; g.R.X8=function(){return this.tS}; g.R.WD=function(W,Y){var k=this.LN();Y.layoutId!==MZ(k,W,Y)?PP("pauseLayout for a PlayerBytes layout that is not currently active",W,Y):k.WD()}; g.R.p5=function(W,Y){var k=this.LN();Y.layoutId!==MZ(k,W,Y)?PP("resumeLayout for a PlayerBytes layout that is not currently active",W,Y):k.p5()}; g.R.fX=function(W,Y){var k=this.LN();MC1(this,W,Y);tC7(k,W,Y)&&this.vp(k.jr(),k.Z2(),"skipped")}; g.R.Sl=function(W,Y){var k=this.LN();qkv(this);RHq(k,W,Y)&&(W=HSd(this,k,W,Y),W!==void 0&&(this.OU()?PP("Should not happen. Should delete"):pEd(this,k.jr(),k.Z2(),W)))}; g.R.MQ=function(W,Y){var k=Object.assign({},iE(this),{layoutId:Y.layoutId}),P=k.layoutId,T=k.k$;if(k.Nh){var I={};XP(k.AD,"wrse",(I.ec=P,I.is=T,I.ctp=I9(P),I))}iP(this.wU,W,Y)}; g.R.Vi=function(W,Y){var k;(k=this.LN())==null||k.Vi(W,Y)}; g.R.oI=function(W,Y,k){Y.layoutId===this.Z2().layoutId&&(this.ZV=!1,P2(this.er(),this));var P;(P=this.LN())==null||P.oI(W,Y,k)}; g.R.DJ=function(W){var Y;(Y=this.LN())==null||Y.DJ(W)}; g.R.EL=function(W,Y,k){this.X8()===-1&&(this.callback.Vi(this.slot,this.layout),this.tS++);var P=this.LN();P?(P.JP(W,Y,k),this.OU()&&this.callback.Wk(this.slot,this.layout,Y,k)):PP("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.X8()),layoutId:this.Z2().layoutId})}; g.R.onFullscreenToggled=function(W){var Y;(Y=this.LN())==null||Y.onFullscreenToggled(W)}; g.R.XI=function(W){var Y;(Y=this.LN())==null||Y.XI(W)}; g.R.yb=function(W){var Y;(Y=this.LN())==null||Y.yb(W)}; g.R.onVolumeChange=function(){var W;(W=this.LN())==null||W.onVolumeChange()}; g.R.JM=function(W,Y,k){MQ(this.wU,W,Y,k)}; g.R.W2=function(W){W.startRendering(W.Z2())}; g.R.init=function(){var W=bb(this.Z2().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=this);if(this.Ls.length<1)throw new f("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ls.length)});if(W=bb(this.Z2().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))W.current=this;W=g.p(this.Ls);for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.init(),Uld(this.wU,this.slot,Y.Z2()),lg1(this.wU,this.slot,Y.Z2()); if(this.OU())for(this.qq.get().addListener(this),qZC(iSq(this),this.qq.get()),W=iSq(this),W=g.p(W),Y=W.next();!Y.done;Y=W.next())this.G$(Y.value)}; g.R.G$=function(W){var Y=bb(W.clientMetadata,"metadata_type_player_vars");Y?(W.layoutType!=="LAYOUT_TYPE_MEDIA"&&PP("Non-video ad contains playerVars",this.slot,W),this.JT.get().addPlayerResponseForAssociation({playerVars:Y})):(W=OS2(W),this.JT.get().addPlayerResponseForAssociation({w8:W}))}; g.R.release=function(){var W=bb(this.Z2().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=null);if(W=bb(this.Z2().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))W.current=null;W=g.p(this.Ls);for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,baV(this.wU,this.slot,Y.Z2()),Y.release();this.OU()&&(this.qq.get().removeListener(this),RGz())}; g.R.Xx=function(W){return W.layoutId!==this.Z2().layoutId?(this.callback.Wk(this.jr(),W,new Uq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Z2().layoutId+("and LayoutType: "+this.Z2().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.R.h2=function(){this.Cg.get().addListener(this);kg(this.er(),this)}; g.R.Dg=function(W){if(W.state.isError()){var Y,k;this.EL((Y=W.state.dc)==null?void 0:Y.errorCode,new Uq("There was a player error during this media layout.",{playerErrorCode:(k=W.state.dc)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(Y=this.LN())&&Y.Dg(W)}; g.R.OU=function(){var W=bb(this.jr().clientMetadata,"metadata_type_eligible_for_ssap");return W===void 0?(PP("Expected SSAP eligibility in PlayerBytes slots",this.jr(),this.Z2()),!1):this.P6.get().OU(W)}; g.R.D6=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.Z6=function(){}; g.R.Bl=function(){}; g.H(Hv,Zt);g.R=Hv.prototype;g.R.WR=function(W,Y,k){this.vp(W,Y,k)}; g.R.z3=function(W,Y){this.vp(W,Y,"error")}; g.R.vp=function(W,Y,k){var P=this;nfF(this,W,Y,k,function(){tA(P,P.X8()+1)})}; g.R.startRendering=function(W){this.Xx(W)&&(this.h2(),UY7(this.CH.get()),N47(this.P6.get())||m6K(this.Cg.get()),this.X8()===-1&&tA(this,this.X8()+1))}; g.R.ej=function(W,Y){var k=this;this.ZV=!0;this.X8()===this.Ls.length?this.callback.oI(this.slot,this.layout,Y):(W=this.LN(),W.ej(W.Z2(),Y),this.Ml=function(){k.callback.oI(k.slot,k.layout,Y)}); this.Cg.get().Y.nY();ccd(this.JT.get(),{});W=k_(this.Cg.get(),1);W.isPaused()&&!g.b(W,2)&&this.Cg.get().playVideo();this.Cg.get().removeListener(this);this.ZV&&Gwz(this)}; g.R.WO=function(){}; g.R.z4=function(){}; g.R.t6=function(){}; g.H(nV,Zt);g.R=nV.prototype;g.R.WR=function(W,Y,k){W=Object.assign({},iE(this),{layoutId:Y.layoutId,layoutExitReason:k});Y=W.layoutId;k=W.layoutExitReason;var P={};XP(W.AD,"prse",(P.xc=Y,P.ler=k,P.ctp=I9(Y),P))}; g.R.z3=function(){PP("onSubLayoutError in SSAP")}; g.R.vp=function(){PP("exitSubLayoutAndPlayNext in SSAP")}; g.R.LN=function(){return this.F5}; g.R.X8=function(){var W=this;return this.Ls.findIndex(function(Y){var k;return Y.Z2().layoutId===((k=W.F5)==null?void 0:k.Z2().layoutId)})}; g.R.W2=function(W){km(this.F5===void 0,"replacing another adapter");this.F5=W;W.startRendering(W.Z2())}; g.R.JM=function(W,Y,k){MQ(this.wU,W,Y,k);var P;km(Y.layoutId===((P=this.F5)==null?void 0:P.Z2().layoutId),"currentAdapter does not match exiting layout",{slot:W?"slot: "+W.slotType:"",subLayout:$m(Y)})&&(this.F5=void 0)}; g.R.release=function(){Zt.prototype.release.call(this);km(this.F5===void 0,"currentAdapter is still active during release");this.F5=void 0}; g.R.Ts=function(){return this.Cg.get().getPresentingPlayerType()===2}; g.R.ej=function(W,Y){function k(){pV(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(Y)||PP("Composite stopRendering: Unexpected layout exit reason",this.slot,W,{layoutExitReason:Y}))} function P(){this.F5&&Gn(this,this.F5,Y);if(this.Ts()&&(!pV(this)||Y!=="abandoned")){k.call(this);var I;var X=((I=this.qq.get().Y.getVideoData())==null?void 0:I.clientPlaybackNonce)||"";I=UM(this.qq.get(),1).clientPlaybackNonce;this.Pa.get().finishSegmentByCpn(X,I,Nt(Y,this.P6))}KRd(this,Y)} function T(){if(this.F5){var I=this.F5;I.Iy().currentState<2&&I.ej(I.Z2(),Y);I=pV(this)&&Y==="abandoned";this.Ts()&&!I&&(k.call(this),this.Pa.get().finishSegmentByCpn(this.F5.Z2().layoutId,UM(this.qq.get(),1).clientPlaybackNonce,Nt(Y,this.P6)))}} km(W.layoutId===this.Z2().layoutId,"StopRendering for wrong layout")&&PT(this.lZ.K,Y)&&(this.qs()?P.call(this):T.call(this))}; g.R.oI=function(W,Y,k){Zt.prototype.oI.call(this,W,Y,k);Y.layoutId===this.Z2().layoutId&&this.Cg.get().removeListener(this)}; g.R.s3=function(){return UM(this.qq.get(),1).clientPlaybackNonce}; g.R.WO=function(W,Y,k){Kqv(Object.assign({},iE(this),{cpn:W}));if(!pV(this)||k!==5)if(this.qs()){if(this.F5&&this.F5.Z2().layoutId!==Y){var P=this.F5.Z2().layoutId;P!==W&&PP("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:P,exitingCpn:W,enteringCpn:Y});W=aH(k,this.P6);Gn(this,this.F5,W)}else this.F5&&PP("onClipExited: active layout is entering again");Y===this.s3()&&Jw6(this,k)}else{if(this.F5&&this.F5.Z2().layoutId===W)Ef2(this,this.F5,k);else{var T;PP("Exiting cpn does not match active cpn", this.slot,(P=this.F5)==null?void 0:P.Z2(),{exitingCpn:W,transitionReason:k,activeCpn:(T=this.F5)==null?void 0:T.Z2().layoutId})}Y===this.s3()&&(this.F5!==void 0&&(PP("active adapter is not properly exited",this.slot,this.layout,{activeLayout:$m(this.F5.Z2())}),Ef2(this,this.F5,k)),Jw6(this,k),KRd(this,this.lZ.K.W))}}; g.R.qs=function(){return F4(this.P6.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.R.startRendering=function(W){this.Xx(W)&&(W=this.lZ,km(W.W===1,"tickStartRendering: state is not initial"),W.W=2,this.h2())}; g.R.z4=function(W){GyC(Object.assign({},iE(this),{cpn:W}));var Y=this.Ls.find(function(k){return k.Z2().layoutId===W}); Y?(this.lZ.W!==2&&(j1q(this.Yh,this.slot.slotId),km(this.lZ.W===2,"Expect started"),this.callback.Vi(this.slot,this.layout)),this.W2(Y),iP(this.wU,this.slot,Y.Z2())):sl5(this,W)}; g.R.fX=function(W,Y){MC1(this,W,Y);var k=this.LN();k?tC7(k,W,Y)&&rwd(this,"skipped"):Awz(this,"onSkipRequested")}; g.R.Sl=function(W,Y){var k;a:{if(k=this.LN()){if(qkv(this),RHq(k,W,Y)&&(W=HSd(this,k,W,Y),W!==void 0)){k={JO:k,rD6:this.Ls[W]};break a}}else Awz(this,"SkipWithAdPodSkip");k=void 0}if(W=k)k=W.JO,Y=W.rD6,W=k.Z2().layoutId,this.qs()?Gn(this,k,"skipped"):k.ej(k.Z2(),"skipped"),k=Y.Z2().layoutId,this.Pa.get().finishSegmentByCpn(W,k,Nt("skipped",this.P6))}; g.R.MQ=function(){PP("Not used in html5_ssap_fix_layout_exit")}; g.R.Dg=function(W){var Y;(Y=this.LN())==null||Y.Dg(W)}; g.R.EL=function(){PP("Not used in html5_ssap_fix_layout_exit")}; g.R.t6=function(W,Y,k){var P;if(((P=this.LN())==null?void 0:P.Z2().layoutId)!==Y.layoutId)return void PP("requestToExitSubLayout: wrong layout");rwd(this,k)};g.H(KV,g.e);g.R=KV.prototype;g.R.jr=function(){return this.dZ.jr()}; g.R.Z2=function(){return this.dZ.Z2()}; g.R.init=function(){var W=bb(this.Z2().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=this);this.KR()}; g.R.KR=function(){this.dZ.init()}; g.R.release=function(){var W=bb(this.Z2().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");W&&(W.current=null);this.LX()}; g.R.LX=function(){this.dZ.release()}; g.R.WD=function(){this.dZ.WD()}; g.R.p5=function(){this.dZ.p5()}; g.R.fX=function(W,Y){PP("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.jr(),this.Z2(),{requestingSlot:W,requestingLayout:Y})}; g.R.startRendering=function(W){W.layoutId!==this.Z2().layoutId?this.callback.Wk(this.jr(),W,new Uq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Z2().layoutId+("and LayoutType: "+this.Z2().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Cg.get().addListener(this),kg(this.er(),this),UY7(this.CH.get()),N47(this.P6.get())||m6K(this.Cg.get()),this.dZ.startRendering(W))}; g.R.ej=function(W,Y){this.ZV=!0;this.dZ.ej(W,Y);this.Cg.get().Y.nY();ccd(this.JT.get(),{});W=k_(this.Cg.get(),1);W.isPaused()&&!g.b(W,2)&&this.Cg.get().playVideo();this.Cg.get().removeListener(this);this.ZV&&this.dZ.ME()}; g.R.Vi=function(W,Y){this.dZ.Vi(W,Y)}; g.R.oI=function(W,Y,k){Y.layoutId===this.Z2().layoutId&&(this.ZV=!1,P2(this.er(),this));this.dZ.oI(W,Y,k);Y.layoutId===this.Z2().layoutId&&qZ(this.CH.get())}; g.R.DJ=function(W){this.dZ.DJ(W)}; g.R.Dg=function(W){if(W.state.isError()){var Y,k;this.EL((Y=W.state.dc)==null?void 0:Y.errorCode,new Uq("There was a player error during this media layout.",{playerErrorCode:(k=W.state.dc)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.dZ.Dg(W)}; g.R.EL=function(W,Y,k){this.dZ.JP(W,Y,k)}; g.R.onFullscreenToggled=function(W){this.dZ.onFullscreenToggled(W)}; g.R.XI=function(W){this.dZ.XI(W)}; g.R.yb=function(W){this.dZ.yb(W)}; g.R.onVolumeChange=function(){this.dZ.onVolumeChange()}; g.R.D6=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.Z6=function(){}; g.R.Bl=function(){};g.R=E6.prototype;g.R.jr=function(){return this.slot}; g.R.Z2=function(){return this.layout}; g.R.init=function(){this.Va.get().addListener(this);this.Cg.get().addListener(this);var W=bb(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var Y=bb(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.T){var k=this.Va.get().lG.slice(-1)[0];k!==void 0&&(W=k.startSecs*1E3,Y=(k.startSecs+k.sV)*1E3)}this.g2(W,Y);var P;k=(P=this.qq.get().Kc)==null?void 0:P.clientPlaybackNonce;P=this.layout.XA.adClientDataEntry;JA(this.sP.get(),{daiStateTrigger:{filledAdsDurationMs:Y-W,contentCpn:k, adClientData:P}});var T=this.Va.get();T=mk7(T.J,W,Y);T!==null&&(JA(this.sP.get(),{daiStateTrigger:{filledAdsDurationMs:T-W,contentCpn:k,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:P}}),this.Pa.get().J4(T,Y))}; g.R.release=function(){this.LX();this.Va.get().removeListener(this);this.Cg.get().removeListener(this)}; g.R.startRendering=function(){this.Tb();this.callback.Vi(this.slot,this.layout)}; g.R.ej=function(W,Y){this.V4(Y);this.driftRecoveryMs!==null&&(s6(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Dkd(this)-bb(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Cg.get().Y.O3()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.oI(this.slot,this.layout,Y)}; g.R.JA=function(){return!1}; g.R.f$=function(W){var Y=bb(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=bb(this.layout.clientMetadata,"metadata_type_layout_exit_ms");W*=1E3;if(Y<=W&&W0&&t9(this.W(),Y)}; g.R.Gv=function(W){this.C.delete(W.slotId);for(var Y=[],k=g.p(this.Ym.values()),P=k.next();!P.done;P=k.next()){P=P.value;var T=P.trigger;T instanceof zG&&T.triggeringSlotId===W.slotId&&Y.push(P)}Y.length>0&&t9(this.W(),Y)}; g.R.FI=function(W){for(var Y=[],k=g.p(this.Ym.values()),P=k.next();!P.done;P=k.next()){P=P.value;var T=P.trigger;T instanceof ZT&&T.slotType===W.slotType&&T.W!==W.slotId&&Y.push(P)}Y.length>0&&t9(this.W(),Y)}; g.R.Gd=function(W){this.J.add(W.slotId);for(var Y=[],k=g.p(this.Ym.values()),P=k.next();!P.done;P=k.next())P=P.value,P.trigger instanceof RI&&W.slotId===P.trigger.triggeringSlotId&&Y.push(P);Y.length>0&&t9(this.W(),Y)}; g.R.mB=function(W){this.J.delete(W.slotId);this.T.add(W.slotId);for(var Y=[],k=g.p(this.Ym.values()),P=k.next();!P.done;P=k.next())if(P=P.value,P.trigger instanceof H$)W.slotId===P.trigger.triggeringSlotId&&Y.push(P);else if(P.trigger instanceof kX){var T=P.trigger;W.slotId===T.slotId&&this.K.has(T.triggeringLayoutId)&&Y.push(P)}Y.length>0&&t9(this.W(),Y)}; g.R.HK=function(W){for(var Y=[],k=g.p(this.Ym.values()),P=k.next();!P.done;P=k.next())P=P.value,P.trigger instanceof sN&&W.slotId===P.trigger.triggeringSlotId&&Y.push(P);Y.length>0&&t9(this.W(),Y)}; g.R.qI=function(W){for(var Y=[],k=g.p(this.Ym.values()),P=k.next();!P.done;P=k.next())P=P.value,P.trigger instanceof r8&&W.slotId===P.trigger.triggeringSlotId&&Y.push(P);Y.length>0&&t9(this.W(),Y)}; g.R.Mx=function(W,Y){this.X.add(Y.layoutId)}; g.R.Cu=function(W,Y){this.X.delete(Y.layoutId)}; g.R.Vi=function(W,Y){this.K.add(Y.layoutId);for(var k=[],P=g.p(this.Ym.values()),T=P.next();!T.done;T=P.next())if(T=T.value,T.trigger instanceof P$)Y.layoutId===T.trigger.triggeringLayoutId&&k.push(T);else if(T.trigger instanceof ue){var I=T.trigger;W.slotType===I.slotType&&Y.layoutType===I.layoutType&&Y.layoutId!==I.W&&k.push(T)}else T.trigger instanceof kX&&(I=T.trigger,Y.layoutId===I.triggeringLayoutId&&this.T.has(I.slotId)&&k.push(T));k.length>0&&t9(this.W(),k)}; g.R.oI=function(W,Y,k){this.K.delete(Y.layoutId);W=[];for(var P=g.p(this.Ym.values()),T=P.next();!T.done;T=P.next())if(T=T.value,T.trigger instanceof jp&&Y.layoutId===T.trigger.triggeringLayoutId&&W.push(T),T.trigger instanceof TG){var I=T.trigger;Y.layoutId===I.triggeringLayoutId&&I.W.includes(k)&&W.push(T)}W.length>0&&t9(this.W(),W)}; g.R.kH=function(){}; g.R.fh=function(){this.T.clear()}; g.R.f7=function(){};g.H(uS,g.e);uS.prototype.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");if(!(Y instanceof YX))throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in CloseRequestedTriggerAdapter");this.Ym.set(Y.triggerId,new DT(W,Y,k,P))}; uS.prototype.Mz=function(W){this.Ym.delete(W.triggerId)};g.H(iS,g.e);iS.prototype.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");if(!(Y instanceof W$||Y instanceof M3))throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ym.set(Y.triggerId,new DT(W,Y,k,P))}; iS.prototype.Mz=function(W){this.Ym.delete(W.triggerId)}; iS.prototype.fh=function(W){for(var Y=[],k=Y.push,P=k.apply,T=[],I=g.p(this.Ym.values()),X=I.next();!X.done;X=I.next())X=X.value,X.trigger instanceof W$&&X.trigger.dP===W&&T.push(X);P.call(k,Y,g.ZX(T));k=Y.push;P=k.apply;T=[];I=g.p(this.Ym.values());for(X=I.next();!X.done;X=I.next())X=X.value,X.trigger instanceof M3&&X.trigger.W!==W&&T.push(X);P.call(k,Y,g.ZX(T));Y.length&&t9(this.W(),Y)}; iS.prototype.f7=function(W){for(var Y=[],k=Y.push,P=k.apply,T=[],I=g.p(this.Ym.values()),X=I.next();!X.done;X=I.next()){X=X.value;var h=X.trigger;h instanceof M3&&h.W===W&&T.push(X)}P.call(k,Y,g.ZX(T));Y.length&&t9(this.W(),Y)};g.H(Mg,g.e);g.R=Mg.prototype;g.R.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");var T="adtriggercuerange:"+Y.triggerId;if(Y instanceof B$)fpq(this,W,Y,k,P,T,Y.W.start,Y.W.end,Y.dP,Y.visible);else if(Y instanceof $X)fpq(this,W,Y,k,P,T,0x7ffffffffffff,0x8000000000000,Y.dP,Y.visible);else throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in CueRangeTriggerAdapter");}; g.R.Mz=function(W){var Y=this.Ym.get(W.triggerId);Y&&this.wZ.get().removeCueRange(Y.cueRangeId);this.Ym.delete(W.triggerId)}; g.R.onCueRangeEnter=function(W){var Y=V6v(this,W);if(Y&&(Y=this.Ym.get(Y)))if(g.b(k_(this.Cg.get()),32))this.W.add(Y.cueRangeId);else{var k=Y==null?void 0:Y.Id.trigger;if(k instanceof B$||k instanceof $X){if(h_(this.context.P6.get())){var P=Y.Id.slot,T=Y.Id.layout,I={};this.context.cU.P7("cre",(I.ca=Y.Id.category,I.tt=k.triggerType,I.st=P.slotType,I.lt=T==null?void 0:T.layoutType,I.cid=W,I))}t9(this.K(),[Y.Id])}}}; g.R.onCueRangeExit=function(W){(W=V6v(this,W))&&(W=this.Ym.get(W))&&this.W.delete(W.cueRangeId)}; g.R.Dg=function(W){if(Ib(W,16)<0){W=g.p(this.W);for(var Y=W.next();!Y.done;Y=W.next())this.onCueRangeEnter(Y.value,!0);this.W.clear()}}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.Vi=function(){}; g.R.oI=function(){}; g.R.kH=function(){}; g.R.DJ=function(){}; g.R.onFullscreenToggled=function(){}; g.R.XI=function(){}; g.R.D6=function(){}; g.R.yb=function(){}; g.R.onVolumeChange=function(){}; g.R.Z6=function(){}; g.R.Bl=function(){};g.H(ta,g.e);g.R=ta.prototype; g.R.Eq=function(W,Y,k,P){if(this.K.has(Y.triggerId)||this.J.has(Y.triggerId))throw new f("Tried to re-register the trigger.");W=new DT(W,Y,k,P);if(W.trigger instanceof h$)this.K.set(W.trigger.triggerId,W);else if(W.trigger instanceof II)this.J.set(W.trigger.triggerId,W);else throw new f("Incorrect TriggerType: Tried to register trigger of type "+W.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(W.trigger.triggerId)&&W.slot.slotId===this.W&&t9(this.T(),[W])}; g.R.Mz=function(W){this.K.delete(W.triggerId);this.J.delete(W.triggerId)}; g.R.Ff=function(W){W=W.slotId;if(this.W!==W){var Y=[];this.W!=null&&Y.push.apply(Y,g.ZX(NtS(this.J,this.W)));W!=null&&Y.push.apply(Y,g.ZX(NtS(this.K,W)));this.W=W;Y.length&&t9(this.T(),Y)}}; g.R.WO=function(){}; g.R.z4=function(){};g.H(qg,g.e);g.R=qg.prototype;g.R.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");if(!(Y instanceof ie))throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ym.set(Y.triggerId,new DT(W,Y,k,P))}; g.R.Mz=function(W){this.Ym.delete(W.triggerId)}; g.R.Vi=function(){}; g.R.oI=function(){}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){};g.H(RN,g.e);g.R=RN.prototype;g.R.kH=function(W,Y){for(var k=[],P=g.p(this.Ym.values()),T=P.next();!T.done;T=P.next()){T=T.value;var I=T.trigger;I.opportunityType===W&&(I.associatedSlotId&&I.associatedSlotId!==Y||k.push(T))}k.length&&t9(this.W(),k)}; g.R.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");if(!(Y instanceof S55))throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in OpportunityEventTriggerAdapter");this.Ym.set(Y.triggerId,new DT(W,Y,k,P))}; g.R.Mz=function(W){this.Ym.delete(W.triggerId)}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.Vi=function(){}; g.R.oI=function(){};g.H(HW,g.e);g.R=HW.prototype;g.R.Eq=function(W,Y,k,P){W=new DT(W,Y,k,P);if(Y instanceof X2||Y instanceof ON||Y instanceof Sp||Y instanceof t$||Y instanceof Xg7){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");this.Ym.set(Y.triggerId,W)}else throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in PrefetchTriggerAdapter");}; g.R.Mz=function(W){this.Ym.delete(W.triggerId)}; g.R.Q2=function(W){var Y=W.slotFulfillmentTriggers.find(function(k){return k instanceof X2}); Y&&(n1(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Y.breakDurationMs,new Set([W.slotId]),!0),AA(this.sP.get(),"ads_css","sid."+W.slotId+";bd."+Y.breakDurationMs))}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.Vi=function(){}; g.R.oI=function(){}; g.R.kH=function(){}; g.R.JA=function(W){var Y=this;if(!this.W)return PP("Unexpected cue break before fetch instructions are available"),!1;this.K&&this.K.stop();this.C&&g.L_(this.C);var k=$QF(this,W);if(!k){var P=WFV(this),T=this.G!==void 0&&Date.now()<=this.G+1E4;AA(this.sP.get(),"ads_ncfs","cid."+W.identifier+";cd."+W.sV.toFixed(3)+";ccs."+T+";cfa."+this.T+";bdc."+P.length+";"+P.slice(0,6).map(function(I){return";bd."+I}).join("")); return T?(Nj(this.QC,this.W,W),!0):!1}(P=bb(k.slot.clientMetadata,"metadata_type_triggering_cue_point"))?P.current=W:PP("Expected triggering cue point ref to be available",k.slot);(new g.C_(function(){var I=k.trigger,X=k.slot;n1(Y,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",I.breakDurationMs,new Set,!0);n1(Y,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",I.breakDurationMs,new Set,!1);for(var h=0,B=g.p(Y.Ym.values()),O=B.next();!O.done;O=B.next()){O=O.value;var u=O.trigger; O.slot.slotId===X.slotId&&(Y.Ym.delete(u.triggerId),h++)}AA(Y.sP.get(),"ads_csf","sid."+X.slotId+";bd."+I.breakDurationMs+";dt."+h)},10)).start(); return!0}; g.R.f$=function(){}; g.R.fh=function(W){var Y=this;this.T=!1;this.G=Date.now();if(this.W&&this.W.contentCpn!==W)PP("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:W,fetchInstructionsCpn:this.W.contentCpn}),p1(this);else{this.J=new g.C_(function(){if(Y.T)delete Y.J;else{var P=Y.Cg.get().getGetAdBreakContext(),T;if(Number(P==null?void 0:(T=P.livePlaybackPosition)==null?void 0:T.utcTimeMillis)>0)delete Y.J,YG5(Y);else{var I;(I=Y.J)==null||I.start()}}},200); var k;(k=this.J)==null||k.start()}}; g.R.f7=function(W){this.W&&this.W.contentCpn!==W&&PP("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:W,fetchInstructionsCpn:this.W.contentCpn},!0);p1(this)}; g.R.VJ=function(W){var Y=this;if(this.W)PP("Unexpected multiple fetch instructions for the current content");else{this.W=W;W=PPX(W);this.K=new g.C_(function(){YG5(Y)},W?W:6E5); this.K.start();this.C=new g.C_(function(){Y.W&&(Y.K&&(Y.K.stop(),Y.K.start()),apF(Y,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},kbC(this.W)); W=this.Cg.get().getCurrentTimeSec(1,!1);for(var k=g.p(this.Va.get().lG),P=k.next();!P.done;P=k.next())P=P.value,AA(this.sP.get(),"nocache","ct."+Date.now()+";cmt."+W+";d."+P.sV.toFixed(3)+";tw."+(P.startSecs-W)+";cid."+P.identifier+";")}}; g.R.iz=function(){g.e.prototype.iz.call(this);p1(this)};g.H(Gp,g.e);g.R=Gp.prototype;g.R.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");if(!(Y instanceof mk))throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ym.set(Y.triggerId,new DT(W,Y,k,P));W=this.W.has(Y.triggeringLayoutId)?this.W.get(Y.triggeringLayoutId):new Set;W.add(Y);this.W.set(Y.triggeringLayoutId,W)}; g.R.Mz=function(W){this.Ym.delete(W.triggerId);if(!(W instanceof mk))throw new f("Incorrect TriggerType: Tried to unregister trigger of type "+W.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var Y=this.K.get(W.triggerId);Y&&(Y.dispose(),this.K.delete(W.triggerId));if(Y=this.W.get(W.triggeringLayoutId))Y.delete(W),Y.size===0&&this.W.delete(W.triggeringLayoutId)}; g.R.Q2=function(){}; g.R.Gv=function(){}; g.R.FI=function(){}; g.R.Gd=function(){}; g.R.mB=function(){}; g.R.HK=function(){}; g.R.qI=function(){}; g.R.Mx=function(){}; g.R.Cu=function(){}; g.R.kH=function(){}; g.R.Vi=function(W,Y){var k=this;if(this.W.has(Y.layoutId)){W=this.W.get(Y.layoutId);W=g.p(W);var P=W.next();for(Y={};!P.done;Y={Jn:void 0},P=W.next())Y.Jn=P.value,P=new g.C_(function(T){return function(){var I=k.Ym.get(T.Jn.triggerId);t9(k.J(),[I])}}(Y),Y.Jn.durationMs),P.start(),this.K.set(Y.Jn.triggerId,P)}}; g.R.oI=function(){};g.H(K1,g.e);K1.prototype.Eq=function(W,Y,k,P){if(this.Ym.has(Y.triggerId))throw new f("Tried to register duplicate trigger for slot.");if(!(Y instanceof NZ))throw new f("Incorrect TriggerType: Tried to register trigger of type "+Y.triggerType+" in VideoTransitionTriggerAdapter.");this.Ym.set(Y.triggerId,new DT(W,Y,k,P))}; K1.prototype.Mz=function(W){this.Ym.delete(W.triggerId)};rm.prototype.kt=function(W){return W.kind==="AD_PLACEMENT_KIND_START"};g.H(dm,g.e);g.R=dm.prototype;g.R.logEvent=function(W){this.Bs(W)}; g.R.P4=function(W,Y,k){this.Bs(W,void 0,void 0,void 0,Y,void 0,void 0,void 0,Y.adSlotLoggingData,void 0,void 0,k)}; g.R.Ae=function(W,Y,k,P){this.Bs(W,void 0,void 0,void 0,Y,k?k:void 0,void 0,void 0,Y.adSlotLoggingData,k?k.adLayoutLoggingData:void 0,void 0,P);Y=Ka().resolve(RB(Y4))==null?void 0:$4();W=Y==null?void 0:Y.adsSeenHotConfig;Y=Y==null?void 0:Y.adsHotConfig;(W==null?0:W.logOnAdsSeen)&&(Y==null?0:Y.webEnablePremiumAdsSeenLogging)&&qGz(this,k?k:void 0,P)}; g.R.A0=function(W,Y,k,P){F4(this.P6.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"trigger:",k,"slot:",Y,"layout:",P);NV(this.W.get())&&this.Bs(W,void 0,void 0,void 0,Y,P?P:void 0,void 0,k,Y.adSlotLoggingData,P?P.adLayoutLoggingData:void 0)}; g.R.Fe=function(W,Y,k,P,T){this.Bs(W,Y,k,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T)}; g.R.iE=function(W,Y,k,P){this.Bs("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,k,P,void 0,void 0,k.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,{errorType:W,errorMessage:Y})}; g.R.Bs=function(W,Y,k,P,T,I,X,h,B,O,u,Z){var M=this;Z=Z===void 0?0:Z;F4(this.P6.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"slot:",T,"layout:",I,"ping:",X,"Opportunity:",{opportunityType:Y,associatedSlotId:k,cgr:P,h9a:h,adSlotLoggingData:B,adLayoutLoggingData:O});try{var t=function(){if(!M.P6.get().Y.V().U("html5_disable_client_tmp_logs")&&W!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){W||PP("Empty PACF event type",T,I);var q=NV(M.W.get()),G={eventType:W,eventOrder:++M.eventCount},J={}; T&&(J.slotData=Va(q,T));I&&(J.layoutData=efq(q,I));X&&(J.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:X.W.serializedAdPingMetadata,pingIndex:X.index});h&&(J.triggerData=f2(h.trigger,h.category));Y&&(J.opportunityData=oj2(q,Y,k,P));q={organicPlaybackContext:{contentCpn:UM(M.qq.get(),1).clientPlaybackNonce}};q.organicPlaybackContext.isLivePlayback=UM(M.qq.get(),1).t9;var d;q.organicPlaybackContext.isMdxPlayback=(d=UM(M.qq.get(),1))==null?void 0:d.isMdxPlayback; var A;if((A=UM(M.qq.get(),1))==null?0:A.daiEnabled)q.organicPlaybackContext.isDaiContent=!0;var F;if(d=(F=UM(M.qq.get(),2))==null?void 0:F.clientPlaybackNonce)q.adVideoPlaybackContext={adVideoCpn:d};q&&(J.externalContext=q);G.adClientData=J;B&&(G.serializedSlotAdServingData=B.serializedSlotAdServingDataEntry);O&&(G.serializedAdServingData=O.serializedAdServingDataEntry);u&&(G.errorInfo=u);g.W8("adsClientStateChange",{adsClientEvent:G})}}; Z&&Z>0?g.Ce(g.Us(),function(){return t()},Z):t()}catch(q){F4(this.P6.get(),"html5_log_pacf_logging_errors")&&g.Ce(g.Us(),function(){PP(q instanceof Error?q:String(q),T,I,{pacf_message:"exception during pacf logging"})})}};var hDc=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.H(mG,dm);g.R=mG.prototype; g.R.P4=function(W,Y,k){dm.prototype.P4.call(this,W,Y,k);h_(this.P6.get())&&(k={},this.context.cU.P7("pacf",(k.et=W,k.st=Y.slotType,k.si=Y.slotId,k)))}; g.R.Ae=function(W,Y,k,P){var T=hDc.has(W);dm.prototype.Ae.call(this,W,Y,k,P);h_(this.P6.get(),T)&&(P={},this.context.cU.P7("pacf",(P.et=W,P.st=Y.slotType,P.si=Y.slotId,P.lt=k==null?void 0:k.layoutType,P.li=k==null?void 0:k.layoutId,P.p_ac=k==null?void 0:k.layoutId,P)))}; g.R.Fe=function(W,Y,k,P,T){dm.prototype.Fe.call(this,W,Y,k,P,T);h_(this.P6.get())&&(k={},this.context.cU.P7("pacf",(k.et=W,k.ot=Y,k.ss=P==null?void 0:P.length,k)))}; g.R.A0=function(W,Y,k,P){dm.prototype.A0.call(this,W,Y,k,P);if(h_(this.P6.get())){var T={};this.context.cU.P7("pacf",(T.et=W,T.tt=k.trigger.triggerType,T.tc=k.category,T.st=Y.slotType,T.si=Y.slotId,T.lt=P==null?void 0:P.layoutType,T.li=P==null?void 0:P.layoutId,T.p_ac=P==null?void 0:P.layoutId,T))}}; g.R.iE=function(W,Y,k,P){dm.prototype.iE.call(this,W,Y,k,P);if(h_(this.P6.get(),!0)){var T={};this.context.cU.P7("perror",(T.ert=W,T.erm=Y,T.st=k.slotType,T.si=k.slotId,T.lt=P==null?void 0:P.layoutType,T.li=P==null?void 0:P.layoutId,T.p_ac=P==null?void 0:P.layoutId,T))}}; g.R.Bs=function(W,Y,k,P,T,I,X,h,B,O,u){var Z=this.P6.get();g.Zw(Z.Y.V())?(Z=this.P6.get(),Z=g.W2(Z.Y.V().experiments,"H5_async_logging_delay_ms")):Z=void 0;dm.prototype.Bs.call(this,W,Y,k,P,T,I,X,h,B,O,u,Z)};DP.prototype.clear=function(){this.W.clear()};gm.prototype.state=function(){return this.W==="fulfilled"?{state:"fulfilled",value:this.result}:this.W==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; gm.prototype.T=function(W){wm(W)||Fo(W)?vW(QQ(W),this.T.bind(this),this.reject.bind(this)):(this.W="fulfilled",this.result=W,oN(this))}; gm.prototype.reject=function(W){this.W="rejected";this.error=W;oN(this)}; var Fo=Bl(function(W){return pkz(W)?W instanceof gm:!1});Object.freeze({v02:function(W){var Y=cW(W);return vW(bS(Y,function(k){return Y[k].W==="rejected"}),function(k){return Number.isNaN(k)?Y.map(function(P){return P.state().value}):Y[k]})}, iY6:function(W){var Y=cW(W);return vW(bS(Y),function(){return Y.map(function(k){return k.state()})})}, PM5:function(W){var Y=cW(W);return vW(bS(Y,function(k){return Y[k].W==="fulfilled"}),function(k){return Number.isNaN(k)?yQ(new AggregateError(Y.map(function(P){return P.state().reason}))):Y[k].state().value})}, w95:function(W){var Y=cW(W);return vW(bS(Y,function(){return!0}),function(k){return Y[k]})}});var xk=window.uo6||"es-419";aN.prototype.pP=function(W){this.client=W}; aN.prototype.W=function(){this.clear();this.csn=g.iD()}; aN.prototype.clear=function(){this.J.clear();this.K.clear();this.T.clear();this.csn=null};Yt.prototype.pP=function(W){g.LI(W0().pP).bind(W0())(W)}; Yt.prototype.clear=function(){g.LI(W0().clear).bind(W0())()};g.R=$t.prototype;g.R.pP=function(W){this.client=W}; g.R.Pn=function(W,Y){var k=this;Y=Y===void 0?{}:Y;g.LI(function(){var P,T,I,X=((P=g.U(W==null?void 0:W.commandMetadata,g.KG))==null?void 0:P.rootVe)||((T=g.U(W==null?void 0:W.commandMetadata,Jvp))==null?void 0:(I=T.screenVisualElement)==null?void 0:I.uiType);if(X){P=g.U(W==null?void 0:W.commandMetadata,l5w);if(P==null?0:P.parentTrackingParams){var h=g.O5(P.parentTrackingParams);if(P.parentCsn)var B=P.parentCsn}else Y.clickedVisualElement?h=Y.clickedVisualElement:W.clickTrackingParams&&(h=g.O5(W.clickTrackingParams)); a:{P=g.U(W,g.GW);T=g.U(W,yv1);if(P){if(T=KFv(P,"VIDEO")){P={token:T,videoId:P.videoId};break a}}else if(T&&(P=KFv(T,"PLAYLIST"))){P={token:P,playlistId:T.playlistId};break a}P=void 0}Y=Object.assign({},{cttAuthInfo:P,parentCsn:B},Y);if(g.Oi("expectation_logging")){var O;Y.loggingExpectations=((O=g.U(W==null?void 0:W.commandMetadata,Jvp))==null?void 0:O.loggingExpectations)||void 0}P0(k,X,h,Y)}else g.Kx(new g.Qq("Error: Trying to create a new screen without a rootVeType",W))})()}; g.R.clickCommand=function(W,Y,k){W=W.clickTrackingParams;k=k===void 0?0:k;W?(k=g.iD(k===void 0?0:k))?(vJ(this.client,k,g.O5(W),Y),Y=!0):Y=!1:Y=!1;return Y}; g.R.stateChanged=function(W,Y,k){this.visualElementStateChanged(g.O5(W),Y,k===void 0?0:k)}; g.R.visualElementStateChanged=function(W,Y,k){k=k===void 0?0:k;k===0&&this.K.has(k)?this.L.push([W,Y]):zeF(this,W,Y,k)};XK.prototype.fetch=function(W,Y,k){var P=this,T=DQS(W,Y,k);return new Promise(function(I,X){function h(){if(k==null?0:k.gO)try{var O=P.handleResponse(W,T.status,T.response,k);I(O)}catch(u){X(u)}else I(P.handleResponse(W,T.status,T.response,k))} T.onerror=h;T.onload=h;var B;T.send((B=Y.body)!=null?B:null)})}; XK.prototype.handleResponse=function(W,Y,k,P){k=k.replace(")]}'","");try{var T=JSON.parse(k)}catch(I){g.Kx(new g.Qq("JSON parsing failed after XHR fetch",W,Y,k));if((P==null?0:P.gO)&&k)throw new g.ol(1,"JSON parsing failed after XHR fetch");T={}}Y!==200&&(g.Kx(new g.Qq("XHR API fetch failed",W,Y,k)),T=Object.assign({},T,{errorMetadata:{status:Y}}));return T};Sb.getInstance=function(){var W=g.Wp("ytglobal.storage_");W||(W=new Sb,g.N6("ytglobal.storage_",W));return W}; Sb.prototype.estimate=function(){var W,Y,k;return g.D(function(P){W=navigator;return((Y=W.storage)==null?0:Y.estimate)?P.return(W.storage.estimate()):((k=W.webkitTemporaryStorage)==null?0:k.queryUsageAndQuota)?P.return(ggX()):P.return()})}; g.N6("ytglobal.storageClass_",Sb);N8.prototype.kJ=function(W){this.handleError(W)}; N8.prototype.logEvent=function(W,Y){switch(W){case "IDB_DATA_CORRUPTED":g.Oi("idb_data_corrupted_killswitch")||this.W("idbDataCorrupted",Y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.W("idbUnexpectedlyClosed",Y);break;case "IS_SUPPORTED_COMPLETED":g.Oi("idb_is_supported_completed_killswitch")||this.W("idbIsSupportedCompleted",Y);break;case "QUOTA_EXCEEDED":w25(this,Y);break;case "TRANSACTION_ENDED":this.J&&Math.random()<=.1&&this.W("idbTransactionEnded",Y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W= Object.assign({},Y,{hasWindowUnloaded:this.K}),this.W("idbTransactionAborted",W)}};var VD={},lT0=g.lN("yt-player-local-media",{bW:(VD.index={SN:2},VD.media={SN:2},VD.captions={SN:5},VD),shared:!1,upgrade:function(W,Y){Y(2)&&(g.nJ(W,"index"),g.nJ(W,"media"));Y(5)&&g.nJ(W,"captions");Y(6)&&(pJ(W,"metadata"),pJ(W,"playerdata"))}, version:5});var BiB={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},No;a:{var au=g.wY();au=au.toLowerCase();if(g.dY(au,"android")){var OZi=au.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(OZi){var uw9=parseFloat(OZi[1]);if(uw9<100){No=uw9;break a}}var ZZB=au.match("("+Object.keys(BiB).join("|")+")");No=ZZB?BiB[ZZB[0]]:0}else No=void 0}var TB=No,P6=TB>=0;var Hld=window;var Q12=mT(function(){var W,Y;return(Y=(W=window).matchMedia)==null?void 0:Y.call(W,"(prefers-reduced-motion: reduce)").matches});var B0;g.hM=new M2;B0=0;var qG=UQ6()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.e5?!0:!1;var Zs={d5:function(W){W[S[38]]()}, "in":function(W,Y){W[S[15]](0,Y)}, Ip:function(W,Y){var k=W[0];W[0]=W[Y%W[S[3]]];W[Y%W[S[3]]]=k}};var oD1={Msi:"adunit",mAh:"detailpage",RhS:"editpage",bh2:"embedded",t6i:"leanback",IrJ:"previewpage",jMr:"profilepage",vY:"unplugged",q0J:"playlistoverview",roD:"sponsorshipsoffer",xhJ:"shortspage",Flz:"handlesclaiming",VAh:"immersivelivepage",Fd6:"creatormusic",r7r:"immersivelivepreviewpage",E7i:"admintoolyurt",Ij5:"shortsaudiopivot",UAr:"consumption"};var b6d=2592E3;var Wf,iZQ,g_;Wf={};g.nm=(Wf.STOP_EVENT_PROPAGATION="html5-stop-propagation",Wf.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Wf.IV_DRAWER_OPEN="ytp-iv-drawer-open",Wf.MAIN_VIDEO="html5-main-video",Wf.VIDEO_CONTAINER="html5-video-container",Wf.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Wf.HOUSE_BRAND="house-brand",Wf);iZQ={};g_=(iZQ.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",iZQ.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",iZQ);var kO6={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Id5={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},Xrd={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"},dqC={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var B00={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Km.prototype.getLanguageInfo=function(){return this.Ib}; g.Km.prototype.getXtags=function(){if(!this.xtags){var W=this.id.split(";");W.length>1&&(this.xtags=W[1])}return this.xtags}; g.Km.prototype.toString=function(){return this.Ib.name}; g.Km.prototype.getLanguageInfo=g.Km.prototype.getLanguageInfo;E7.prototype.equals=function(W){return this.K===W.K&&this.W===W.W&&this.J===W.J&&this.reason===W.reason&&(!s7||this.c6===W.c6)}; E7.prototype.isLocked=function(){return this.J&&!!this.K&&this.K===this.W}; E7.prototype.compose=function(W){if(W.J&&ro(W))return Ms;if(W.J||ro(this))return W;if(this.J||ro(W))return this;var Y=this.K&&W.K?Math.max(this.K,W.K):this.K||W.K,k=this.W&&W.W?Math.min(this.W,W.W):this.W||W.W;Y=Math.min(Y,k);var P=0;s7&&(P=this.c6!==0&&W.c6!==0?Math.min(this.c6,W.c6):this.c6===0?W.c6:this.c6);return s7&&Y===this.K&&k===this.W&&P===this.c6||!s7&&Y===this.K&&k===this.W?this:s7?new E7(Y,k,!1,k===this.W&&P===this.c6?this.reason:W.reason,P):new E7(Y,k,!1,k===this.W?this.reason:W.reason)}; E7.prototype.T=function(W){return!W.video||s7&&this.c6!==0&&this.c6=0}; g.R.UI=function(){var W=this.segments[this.segments.length-1];return W?W.endTime:NaN}; g.R.aI=function(){return this.segments[0].startTime}; g.R.Eo=function(){return this.segments.length}; g.R.X7=function(){return 0}; g.R.o7=function(W){return(W=this.mQ(W))?W.t5:-1}; g.R.f2=function(W){return(W=this.XC(W))?W.sourceURL:""}; g.R.getStartTime=function(W){return(W=this.XC(W))?W.startTime:0}; g.R.Ug=function(W){return this.getStartTime(W)+this.getDuration(W)}; g.R.QZ=Wd(1);g.R.isLoaded=function(){return this.segments.length>0}; g.R.XC=function(W){if(this.W&&this.W.t5===W)return this.W;W=g.vp(this.segments,new ac(W,0,0,0,""),function(Y,k){return Y.t5-k.t5}); return this.W=W>=0?this.segments[W]:null}; g.R.mQ=function(W){if(this.W&&this.W.startTime<=W&&W=0?this.segments[W]:this.segments[Math.max(0,-W-2)]}; g.R.append=function(W){if(W.length)if(W=g.zK(W),this.segments.length){var Y=this.segments.length?g.iQ(this.segments).endTime:0,k=W[0].t5-this.QU();k>1&&G1V(this.segments);for(k=k>0?0:-k+1;kW.t5&&this.index.xN()<=W.t5+1}; g.R.update=function(W,Y,k){this.index.append(W);QfX(this.index,k);W=this.index;W.K=Y;W.J="update"}; g.R.sE=function(){return this.q4()?!0:xb.prototype.sE.call(this)}; g.R.kB=function(W,Y){var k=this.index.f2(W),P=this.index.getStartTime(W),T=this.index.getDuration(W),I;Y?T=I=0:I=this.info.c6>0?this.info.c6*T:1E3;return new IO([new W_(3,this,void 0,"liveCreateRequestInfoForSegment",W,P,T,0,I,!Y)],k)}; g.R.qj=function(){return this.q4()?0:this.initRange.length}; g.R.Iz=function(){return!1};Z2.prototype.update=function(W){var Y=void 0;this.K&&(Y=this.K);var k=new Z2,P=Array.from(W.getElementsByTagName("S"));if(P.length){var T=+OW(W,"timescale")||1,I=(+P[0].getAttribute("t")||0)/T,X=+OW(W,"startNumber")||0;k.T=I;var h=Y?Y.startSecs+Y.sV:0,B=Date.parse(dnV(OW(W,"yt:segmentIngestTime")))/1E3;k.C=W.parentElement.tagName==="SegmentTemplate";k.C&&(k.G=OW(W,"media"));W=Y?X-Y.t5:1;k.X=W>0?0:-W+1;W=g.p(P);for(P=W.next();!P.done;P=W.next()){P=P.value;for(var O=+P.getAttribute("d")/T,u=(+P.getAttribute("yt:sid")|| 0)/T,Z=+P.getAttribute("r")||0,M=0;M<=Z;M++)if(Y&&X<=Y.t5)X++;else{var t=new A_v(X,h,O,B+u,I);k.W.push(t);var q=P;var G=T,J=t.startSecs;t=q.getAttribute("yt:cuepointTimeOffset");var d=q.getAttribute("yt:cuepointDuration");if(t&&d){t=Number(t);J=-t/G+J;G=Number(d)/G;d=q.getAttribute("yt:cuepointContext")||null;var A=q.getAttribute("yt:cuepointIdentifier")||"";q=q.getAttribute("yt:cuepointEvent")||"";q=new S$(J,G,d,A,tnB[q]||"unknown",t)}else q=null;q&&k.J.push(q);X++;h+=O;I+=O;B+=O+u}}k.W.length&& (k.K=g.iQ(k.W))}this.X=k.X;this.K=k.K||this.K;g.dB(this.W,k.W);g.dB(this.J,k.J);this.C=k.C;this.G=k.G;this.T===-1&&(this.T=k.getStreamTimeOffset())}; Z2.prototype.getStreamTimeOffset=function(){return this.T===-1?0:this.T};g.H(MN,g.WR);g.R=MN.prototype;g.R.N5=function(){return this.Fu}; g.R.di=function(W,Y){W=tt(this,W);return W>=0&&(Y||!this.segments[W].pending)}; g.R.xN=function(){return this.Cr?this.segments.length?this.mQ(this.aI()).t5:-1:g.WR.prototype.xN.call(this)}; g.R.aI=function(){if(this.Fj)return 0;if(!this.Cr)return g.WR.prototype.aI.call(this);if(!this.segments.length)return 0;var W=Math.max(g.iQ(this.segments).endTime-this.ol,0);return this.UU>0&&this.mQ(W).t50)return this.GC/1E3;if(!this.segments.length)return g.WR.prototype.UI.call(this);var W=this.QU();if(!this.Cr||W<=this.segments[this.segments.length-1].t5)W=this.segments[this.segments.length-1];else{var Y=this.segments[this.segments.length-1];W=new ac(W,Math.max(0,Y.startTime-(Y.t5-W)*this.Fu),this.Fu,0,"sq/"+W,void 0,void 0,!0)}return this.Fj?Math.min(this.ol,W.endTime):W.endTime}; g.R.Eo=function(){return this.Cr?this.segments.length?this.QU()-this.xN()+1:0:g.WR.prototype.Eo.call(this)}; g.R.QU=function(){var W=Math.min(this.UA,Math.max(g.WR.prototype.QU.call(this),this.L8)),Y=this.ol*1E3;Y=this.GC>0&&this.GC0&&this.L8>0&&!Y&&(Y=this.mQ(this.ol))&&(W=Math.min(Y.t5-1,W));return W}; g.R.uh=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.R.H_=function(W){var Y=tt(this,W.t5);if(Y>=0)this.segments[Y]=W;else if(this.segments.splice(-(Y+1),0,W),this.d2&&W.t5%(300/this.Fu)===0){var k=this.segments[0].t5,P=Math.floor(this.d2/this.Fu);W=W.t5-P;Y=-(Y+1)-P;Y>0&&W>k&&(this.segments=this.segments.slice(Y))}}; g.R.GG=function(){return this.L8}; g.R.S0=function(W){return ia?!this.K&&W>=0&&this.QU()<=W:g.WR.prototype.S0.call(this,W)}; g.R.mQ=function(W){if(!this.Cr)return g.WR.prototype.mQ.call(this,W);if(!this.segments.length)return null;var Y=this.segments[this.segments.length-1];if(W=Y.endTime)Y=Y.t5+Math.floor((W-Y.endTime)/this.Fu+1);else{Y=C$(this.segments,function(P){return W=P.endTime?1:0}); if(Y>=0)return this.segments[Y];var k=-(Y+1);Y=this.segments[k-1];k=this.segments[k];Y=Math.floor((W-Y.endTime)/((k.startTime-Y.endTime)/(k.t5-Y.t5-1))+1)+Y.t5}return this.XC(Y)}; g.R.XC=function(W){if(!this.Cr)return g.WR.prototype.XC.call(this,W);if(!this.segments.length)return null;var Y=tt(this,W);if(Y>=0)return this.segments[Y];var k=-(Y+1);Y=this.Fu;if(k===0)var P=Math.max(0,this.segments[0].startTime-(this.segments[0].t5-W)*Y);else k===this.segments.length?(P=this.segments[this.segments.length-1],P=P.endTime+(W-P.t5-1)*Y):(P=this.segments[k-1],Y=this.segments[k],Y=(Y.startTime-P.endTime)/(Y.t5-P.t5-1),P=P.endTime+(W-P.t5-1)*Y);return new ac(W,P,Y,0,"sq/"+W,void 0,void 0, !0)}; var ia=!1;g.H(qN,B_);g.R=qN.prototype;g.R.n0=function(){return!0}; g.R.sE=function(){return!0}; g.R.f5=function(W){return this.Rp()&&W.J&&!W.T||!W.W.index.S0(W.t5)}; g.R.tR=function(){}; g.R.gT=function(W,Y){return typeof W!=="number"||isFinite(W)?B_.prototype.gT.call(this,W,Y===void 0?!1:Y):new IO([new W_(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Lh,void 0,this.Lh*this.info.c6)],"")}; g.R.kB=function(W,Y){var k=k===void 0?!1:k;if(this.index.di(W))return B_.prototype.kB.call(this,W,Y);var P=this.index.getStartTime(W),T=Math.round(this.Lh*this.info.c6),I=this.Lh;Y&&(I=T=0);return new IO([new W_(k?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",W,P,I,void 0,T,!Y)],W>=0?"sq/"+W:"")};g.H(RO,xb);g.R=RO.prototype;g.R.xk=function(){return!1}; g.R.Rp=function(){return!1}; g.R.n0=function(){return!1}; g.R.tR=function(){return new IO([new W_(1,this,void 0,"otfInit")],this.C)}; g.R.eB=function(){return null}; g.R.QE=function(W){this.f5(W);return e1d(this,P_(W),!1)}; g.R.gT=function(W,Y){Y=Y===void 0?!1:Y;W=this.index.o7(W);Y&&(W=Math.min(this.index.QU(),W+1));return e1d(this,W,!0)}; g.R.Mj=function(W){W.info.type===1&&(this.W||(this.W=XY(W.K)),W.W&&W.W.uri==="http://youtube.com/streaming/otf/durations/112015"&&o10(this,W.W))}; g.R.f5=function(W){return W.J===0?!0:this.index.QU()>W.t5&&this.index.xN()<=W.t5+1}; g.R.qj=function(){return 0}; g.R.Iz=function(){return!1};g.H_.prototype.info=function(){}; g.H_.prototype.debug=function(){}; g.H_.prototype.W=function(W){nr.apply(null,[5,this.tag,W].concat(g.ZX(g.y0.apply(1,arguments))))}; var Ln6=new Map,b5C=new Map,Un7=new function(){var W=this;this.W=new Map;this.zW={sla:function(){return W.W}}};g.R=g.At.prototype;g.R.di=function(W){return W<=this.QU()}; g.R.X7=function(W){return this.offsets[W]}; g.R.getStartTime=function(W){return this.startTicks[W]/this.W}; g.R.Ug=function(W){return this.getStartTime(W)+this.getDuration(W)}; g.R.QZ=Wd(0);g.R.hT=function(){return NaN}; g.R.getDuration=function(W){W=this.cn(W);return W>=0?W/this.W:-1}; g.R.cn=function(W){return W+1=0}; g.R.UI=function(){return this.K?this.startTicks[this.count]/this.W:NaN}; g.R.aI=function(){return 0}; g.R.Eo=function(){return this.count}; g.R.f2=function(){return""}; g.R.o7=function(W){W=g.vp(this.startTicks.subarray(0,this.count),W*this.W);return W>=0?W:Math.max(0,-W-2)}; g.R.isLoaded=function(){return this.QU()>=0}; g.R.iJ=function(W,Y){if(W>=this.QU())return 0;var k=0;for(Y=this.getStartTime(W)+Y;Wthis.getStartTime(W);W++)k=Math.max(k,$tS(this,W)/this.getDuration(W));return k}; g.R.resize=function(W){W+=2;var Y=this.offsets;this.offsets=new Float64Array(W+1);var k=this.startTicks;this.startTicks=new Float64Array(W+1);for(W=0;W0&&W&&(k=k.range.end+1,W=Math.min(W,this.info.contentLength-k),W>0&&P.push(new W_(4,this,Ni(k,W),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Y)));return new IO(P)}; g.R.Mj=function(W){if(W.info.type===1){if(this.W)return;this.W=XY(W.K)}else if(W.info.type===2){if(this.C||this.index.QU()>=0)return;if(g.cT(this.info)){var Y=this.index,k=g.G8(W);W=W.info.range.start;var P=g.uU(k,0,1936286840);k=V46(P);Y.W=k.timescale;var T=k.tQ;Y.offsets[0]=k.LU+W+P.size;Y.startTicks[0]=T;Y.K=!0;W=k.Kz.length;for(P=0;P0&&W===I[0].qb)for(W=0;W=Y+k)break}T.length||(W=new g.Qq("b189619593",""+W,""+Y,""+k),g.GH(W));return new IO(T)}; g.R.Jw=function(W){for(var Y=this.sY(W.info),k=W.info.range.start+W.info.K,P=[],T=0;T=this.index.X7(k+1);)k++;return this.Vn(k,Y,W.J).EP}; g.R.f5=function(W){W.IB();return this.sE()?!0:W.range.end+1this.info.contentLength&&(Y=new fb(Y.start,this.info.contentLength-1)),new IO([new W_(4,W.W,Y,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W.clipId)]);W.type===4&&(W=this.sY(W),W=W[W.length-1]);var k=0,P=W.range.start+W.K+W.J;W.type===3&&(W.IB(),k=W.t5,P===W.range.end+1&&(k+=1));return this.Vn(k,P,Y)}; g.R.QE=function(){return null}; g.R.gT=function(W,Y){Y=Y===void 0?!1:Y;W=this.index.o7(W);Y&&(W=Math.min(this.index.QU(),W+1));return this.Vn(W,this.index.X7(W),0,void 0)}; g.R.xk=function(){return!0}; g.R.Rp=function(){return!0}; g.R.n0=function(){return!1}; g.R.qj=function(){return this.indexRange.length+this.initRange.length}; g.R.Iz=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var $Y={},qMS=($Y.COLOR_PRIMARIES_BT709="bt709",$Y.COLOR_PRIMARIES_BT2020="bt2020",$Y.COLOR_PRIMARIES_UNKNOWN=null,$Y.COLOR_PRIMARIES_UNSPECIFIED=null,$Y),kY={},PYz=(kY.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",kY.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",kY.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",kY.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",kY.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,kY.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,kY);g.mz.prototype.getName=function(){return this.name}; g.mz.prototype.getId=function(){return this.id}; g.mz.prototype.getIsDefault=function(){return this.isDefault}; g.mz.prototype.toString=function(){return this.name}; g.mz.prototype.getName=g.mz.prototype.getName;g.mz.prototype.getId=g.mz.prototype.getId;g.mz.prototype.getIsDefault=g.mz.prototype.getIsDefault;var XCV=/action_display_post/;var SMV,F$,wz;g.H(Q_,g.NR);g.R=Q_.prototype;g.R.isLoading=function(){return this.state===1}; g.R.x4=function(){return this.state===3}; g.R.lS5=function(W){var Y=W.getElementsByTagName("Representation");if(W.getElementsByTagName("SegmentList").length>0||W.getElementsByTagName("SegmentTemplate").length>0){this.t9=this.K=!0;this.X||(this.X=new DnS);Q91(this.X,W);this.publish("refresh");for(W=0;W=0?u=V2(M):Z=Z+"?range="+M}B.call(h,new ac(O.t5,O.startSecs,O.sV,O.W,Z,u,O.K))}P=T}k.update(P,this.isLive,this.V5)}y_v(this.X);return!0}this.duration=z1C(OW(W,"mediaPresentationDuration"));a:{for(W= 0;W0))return this.M6()-W}}W=this.W;for(var Y in W){var k=W[Y].index;if(k.isLoaded()&&!WC(W[Y].info.mimeType))return k.aI()}return 0}; g.R.getStreamTimeOffset=function(){return this.L}; g.R.hT=function(W){for(var Y in this.W){var k=this.W[Y].index;if(k.isLoaded()){var P=k.o7(W),T=k.hT(P);if(T)return T+W-k.getStartTime(P)}}return NaN}; var NN=null,qpj,aO=!((qpj=navigator.mediaCapabilities)==null||!qpj.decodingInfo),EBd={commentary:1,alternate:2,dub:3,main:4};var GA=new Set,Wq=new Map;kO.prototype.clone=function(W){return new kO(this.flavor,W,this.K,this.experiments)}; kO.prototype.ER=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; kO.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 RDi={},ug=(RDi.playready=["com.youtube.playready","com.microsoft.playready"],RDi.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],RDi),Pf={},OnC=(Pf.widevine="DRM_SYSTEM_WIDEVINE",Pf.fairplay="DRM_SYSTEM_FAIRPLAY",Pf.playready="DRM_SYSTEM_PLAYREADY",Pf),TP={},HZz=(TP.widevine=1,TP.fairplay=2,TP.playready=3,TP);var MG;g.H(Zz,g.e); Zz.prototype.initialize=function(W,Y){for(var k=this,P=g.p(Object.keys(W)),T=P.next();!T.done;T=P.next()){T=g.p(W[T.value]);for(var I=T.next();!I.done;I=T.next())if(I=I.value,I.tY)for(var X=g.p(Object.keys(I.tY)),h=X.next();!h.done;h=X.next()){var B=h.value;h=B;B=ug[B];!B&&this.U("html5_enable_vp9_fairplay")&&h==="fairplay"&&(B=["com.youtube.fairplay.sbdl"]);if(B){B=g.p(B);for(var O=B.next();!O.done;O=B.next())O=O.value,this.J[O]=this.J[O]||new kO(h,O,I.tY[h],this.pg.experiments),this.W[h]=this.W[h]|| {},this.W[h][I.mimeType]=!0}}}Qp()&&(this.J["com.youtube.fairplay"]=new kO("fairplay","com.youtube.fairplay","",this.pg.experiments),this.U("html5_enable_vp9_fairplay")||(this.W.fairplay=this.W.fairplay||{},this.W.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.W.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=yfC(Y,this.useCobaltWidevine,this.U("html5_enable_safari_fairplay")&&!0,this.U("html5_enable_vp9_fairplay")).filter(function(u){return!!k.J[u]})}; Zz.prototype.U=function(W){return this.pg.experiments.Nq(W)};var nIw={"":"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"};UtS.prototype.U=function(W){return this.experiments.Nq(W)};var CES={RED:"red",Tfi:"white"};RP.prototype.Ik=function(W){if(W.Lb!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return xtS(this,W)}; RP.prototype.Nq=function(W){return this.flags.get(""+W)==="true"};Hq.prototype.Qn=function(){return this.J}; Hq.prototype.Dp=function(){return this.K}; Hq.prototype.Nq=function(W){W=this.Ik(W);JSON.stringify(W);return W==="true"}; Hq.prototype.Ik=function(W){return this.flags[W]};var N62=Promise.resolve(),knv=window.queueMicrotask?window.queueMicrotask.bind(window):aQV;pA.prototype.canPlayType=function(W,Y){W=W.canPlayType?W.canPlayType(Y):!1;yW?W=W||p7h[Y]:TB===2.2?W=W||GZQ[Y]:FU()&&(W=W||KAc[Y]);return!!W}; pA.prototype.isTypeSupported=function(W){return this.N?window.cast.receiver.platform.canDisplayType(W):R9(W)}; var GZQ={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},KAc={"application/x-mpegURL":"maybe"},p7h={"application/x-mpegURL":"maybe"};g.H(EC,g.NR);EC.prototype.add=function(W,Y){if(!this.items[W]&&(Y.tq||Y.lq||Y.St)){var k=this.items,P=Y;Object.isFrozen&&!Object.isFrozen(Y)&&(P=Object.create(Y),Object.freeze(P));k[W]=P;this.publish("vast_info_card_add",W)}}; EC.prototype.remove=function(W){var Y=this.get(W);delete this.items[W];return Y}; EC.prototype.get=function(W){return this.items[W]||null}; EC.prototype.isEmpty=function(){return g.Ox(this.items)};Jn.prototype.encrypt=function(W){this.W.exports.AES128CTRCipher_encrypt(this.cipher,W.byteOffset,W.byteLength);return W}; Jn.prototype.Xr=function(){return this.cipher===0}; Jn.prototype.dispose=function(){this.W.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};r3.prototype.NB=function(W,Y){Y=Y===void 0?1:Y;this.N0+=Y;this.K+=W;W/=Y;for(var k=0;k0)P+="."+sC[T].toFixed(0)+"_"+k.W[T].toFixed(0);else break;k=P}k&&(W[Y]=k)}this.W=new It6;return W}; g.R.toString=function(){return""};g.R=ui0.prototype;g.R.isActive=function(){return!1}; g.R.pE=function(){}; g.R.X6=function(){}; g.R.IJ=function(){}; g.R.Ex=function(W,Y){Y()}; g.R.d8=function(){return{}}; g.R.toString=function(){return""};var EIK=new ui0,JCz=!!+oh("html5_enable_profiler"),sXK=!!+oh("html5_onesie_enable_profiler"),j3=JCz||sXK?new S6z:EIK,wxd=JCz?j3:EIK,zY=sXK?j3:EIK;HVF.prototype.emscripten_notify_memory_growth=function(){};g.R=An.prototype;g.R.malloc=function(W){return this.exports.malloc(W)}; g.R.free=function(W){this.exports.free(W)}; g.R.realloc=function(W,Y){return this.exports.realloc(W,Y)}; g.R.WA=function(W){if(W.buffer!==this.exports.memory.buffer){var Y=this.malloc(W.byteLength);Y=new Uint8Array(this.exports.memory.buffer,Y,W.byteLength);Y.set(W);return Y}}; g.R.b6=function(W){if(W.buffer===this.exports.memory.buffer){var Y=W.slice();this.free(W.byteOffset);return Y}}; var tt2=new function(){this.W=this.K="WebAssembly"in window},d3="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); zY.pE(An,{WA:function(W){return{profile:"copyj2w",N0:W===void 0?0:Math.ceil(W.byteLength/16)}}, b6:function(W){return{profile:"copyw2j",N0:W===void 0?0:Math.ceil(W.byteLength/16)}}});mM.prototype.encrypt=function(W,Y){try{return this.W.b6(Kb2(this,W,Y))}catch(k){g.Kx(Error("ocwce: wasm encrypt failed: "+k))}}; mM.prototype.Xr=function(){return this.J}; mM.prototype.dispose=function(){this.Xr()||(g.Wu(this.K),this.W.free(this.T.byteOffset),this.J=!0)};g.H(ED0,g.e);g.H(sL1,g.e);var g3;FB.prototype.add=function(W){if(this.pos+20>this.data.length){var Y=new Uint8Array(this.data.length*2);Y.set(this.data);this.data=Y}for(;W>31;)this.data[this.pos++]=g3[(W&31)+32],W>>=5;this.data[this.pos++]=g3[W|0]}; FB.prototype.WK=function(){return g.ul(this.data.subarray(0,this.pos))}; FB.prototype.reset=function(){this.pos=0};Qh.prototype.NL=function(W,Y){var k=Math.pow(this.alpha,W);this.W=Y*(1-k)+k*this.W;this.K+=W}; Qh.prototype.le=function(){return this.W/(1-Math.pow(this.alpha,this.K))};yh.prototype.NL=function(W,Y){for(var k=0;k<10;k++){var P=this.W[k],T=P+(k===0?W:0),I=1*Math.pow(2,k);if(T<=I)break;P=Math.min(1,(T-I*.5)/P);for(T=0;T<16;T++)I=this.values[k*16+T]*P,this.values[(k+1)*16+T]+=I,this.W[k+1]+=I,this.values[k*16+T]-=I,this.W[k]-=I}P=k=0;T=8192;Y>8192&&(k=Math.ceil(Math.log(Y/8192)/Math.log(2)),P=8192*Math.pow(2,k-1),T=P*2);k+2>16?this.values[15]+=W:(Y=(Y-P)/(T-P),this.values[k]+=W*(1-Y),this.values[k+1]+=W*Y);this.W[0]+=W}; yh.prototype.le=function(){var W=W===void 0?this.K:W;var Y=Y===void 0?.02:Y;var k=k===void 0?.98:k;for(var P=this.J,T=0;T<16;T++)P[T]=this.values[T];T=this.W[0];for(var I=1;I<11;I++){var X=this.W[I];if(X===0)break;for(var h=Math.min(1,(W-T)/X),B=0;B<16;B++)P[B]+=this.values[I*16+B]*h;T+=X*h;if(h<1)break}for(I=W=X=0;I<16;I++){h=X+P[I]/T;W+=Math.max(0,Math.min(h,k)-Math.max(X,Y))*(I>0?8192*Math.pow(2,I-1):0);if(h>k)break;X=h}return W/(k-Y)};eN.prototype.NL=function(W,Y){W=Math.min(this.W,Math.max(1,Math.round(W*this.resolution)));W+this.K>=this.W&&(this.J=!0);for(;W--;)this.values[this.K]=Y,this.K=(this.K+1)%this.W;this.TR=!0}; eN.prototype.percentile=function(W){var Y=this;if(!this.J&&this.K===0)return 0;this.TR&&(g.lQ(this.C,function(k,P){return Y.values[k]-Y.values[P]}),this.TR=!1); return this.values[this.C[Math.round(W*((this.J?this.W:this.K)-1))]]||0}; eN.prototype.le=function(){return this.X?(this.percentile(this.T-this.X)+this.percentile(this.T)+this.percentile(this.T+this.X))/3:this.percentile(this.T)};g.H(oP,g.e);oP.prototype.V5=function(){var W;(W=this.Fr)==null||W.start();if(xO(this)&&this.policy.L){var Y;(Y=this.GW)==null||Y.Al()}};DZd.prototype.U=function(W){return this.experiments.Nq(W)};g.H(Fb1,g.e);var vDX="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(" "),xZ0={XUh:"caoe",Fi5:"capsv",EfP:"cbrand",lJa:"cbr",ceJ:"cbrver",ihi:"cchip",Srh:"ccappver",CY5:"ccrv",J7q:"cfrmver",NM1:"c",EJS:"cver",aP5:"ctheme",bah:"cplayer",ad2:"cmodel",b1:"cnetwork",S0P:"cos",OS_VERSION:"cosver",sMa:"cplatform",oNq:"crqyear"};g.H(i6,g.e);g.R=i6.prototype;g.R.U=function(W){return this.experiments.Nq(W)}; g.R.Qn=function(){return this.experiments.Qn()}; g.R.Dp=function(){return this.experiments.Dp()}; g.R.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.R.getVideoUrl=function(W,Y,k,P,T,I,X){Y={list:Y};k&&(T?Y.time_continue=k:Y.t=k);k=X?"music.youtube.com":g.tK(this);T=k==="www.youtube.com";!I&&P&&T?I="https://youtu.be/"+W:g.XF(this)?(I="https://"+k+"/fire",Y.v=W):(I&&T?(I=this.protocol+"://"+k+"/shorts/"+W,P&&(Y.feature="share")):(I=this.protocol+"://"+k+"/watch",Y.v=W),yW&&(W=exF())&&(Y.ebc=W));return g.MH(I,Y)}; g.R.getVideoEmbedCode=function(W,Y,k,P){Y="https://"+g.tK(this)+"/embed/"+Y;P&&(Y=g.MH(Y,{list:P}));P=k.width;k=k.height;Y=AQ(Y);W=AQ(W!=null?W:"YouTube video player");return'')}; g.R.supportsGaplessAudio=function(){return g.qn&&!yW&&mf()>=74||g.Bq&&g.yg(68)?!0:!1}; g.R.supportsGaplessShorts=function(){return!this.U("html5_enable_short_gapless")||this.GJ||g.hj?!1:!0}; g.R.getPlayerType=function(){return this.W.cplayer}; g.R.OR=function(){return this.Zm}; var atC=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],cAz=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Vt6=[19];var IS={},kG7=(IS["140"]={numChannels:2},IS["141"]={numChannels:2},IS["251"]={audioSampleRate:48E3,numChannels:2},IS["774"]={audioSampleRate:48E3,numChannels:2},IS["380"]={numChannels:6},IS["328"]={numChannels:6},IS["773"]={},IS),XV={},YNd=(XV["1"]='video/mp4; codecs="av01.0.08M.08"',XV["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',XV["1e"]='video/mp4; codecs="av01.0.08M.08"',XV["9"]='video/webm; codecs="vp9"',XV["("]='video/webm; codecs="vp9"',XV["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', XV.h='video/mp4; codecs="avc1.64001e"',XV.H='video/mp4; codecs="avc1.64001e"',XV.o='audio/webm; codecs="opus"',XV.a='audio/mp4; codecs="mp4a.40.2"',XV.ah='audio/mp4; codecs="mp4a.40.2"',XV.mac3='audio/mp4; codecs="ac-3"; channels=6',XV.meac3='audio/mp4; codecs="ec-3"; channels=6',XV.i='audio/mp4; codecs="iamf.001.001.Opus"',XV),S3={},$3F=(S3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},S3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},S3["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, S3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},S3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},S3["700"]={width:2560,height:1440,bitrate:1E7,fps:60},S3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},S3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},S3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},S3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, S3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},S3["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},S3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},S3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},S3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},S3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},S3["308"]={width:2560, height:1440,bitrate:1E7,fps:60},S3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},S3["302"]={width:1280,height:720,bitrate:25E5,fps:60},S3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},S3["298"]={width:1280,height:720,bitrate:35E5,fps:60},S3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},S3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},S3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},S3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},S3["398"]={width:1280,height:720,bitrate:1E6, fps:60},S3["397"]={width:854,height:480,bitrate:4E5,fps:30},S3["396"]={width:640,height:360,bitrate:25E4,fps:30},S3["787"]={width:1080,height:608,bitrate:2E5,fps:30},S3["788"]={width:1080,height:608,bitrate:4E5,fps:30},S3["572"]={width:7680,height:4320,bitrate:3E7,fps:60},S3["555"]={width:3840,height:2160,bitrate:15E6,fps:60},S3["554"]={width:2560,height:1440,bitrate:75E5,fps:60},S3["553"]={width:1920,height:1080,bitrate:2E6,fps:60},S3["552"]={width:1280,height:720,bitrate:1E6,fps:60},S3["551"]={width:854, height:480,bitrate:4E5,fps:30},S3["550"]={width:640,height:360,bitrate:25E4,fps:30},S3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},S3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},S3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},S3["247"]={width:1280,height:720,bitrate:15E5,fps:30},S3["244"]={width:854,height:480,bitrate:52E4,fps:30},S3["243"]={width:640,height:360,bitrate:28E4,fps:30},S3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},S3["136"]={width:1280,height:720,bitrate:3E6, fps:30},S3["135"]={width:854,height:480,bitrate:1E6,fps:30},S3["385"]={width:1920,height:1080,bitrate:6503313,fps:60},S3["376"]={width:1280,height:720,bitrate:5706960,fps:60},S3["384"]={width:1280,height:720,bitrate:3660979,fps:60},S3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},S3["224"]={width:1280,height:720,bitrate:453E4,fps:30},S3["145"]={width:1280,height:720,bitrate:2682052,fps:30},S3);g.R=gV.prototype;g.R.getInfo=function(){return this.W}; g.R.B1=function(){return null}; g.R.MU=function(){var W=this.B1();return W?(W=g.fI(W.ob),Number(W.expire)):NaN}; g.R.UD=function(){}; g.R.getHeight=function(){return this.W.video.height};ITC.prototype.build=function(){hX2(this);var W=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],Y={};a:if(this.W)var k=this.W;else{k="";for(var P=g.p(this.J),T=P.next();!T.done;T=P.next())if(T=T.value,T.Ib){if(T.Ib.getIsDefault()){k=T.Ib.getId();break a}k||(k=T.Ib.getId())}}P=g.p(this.J);for(T=P.next();!T.done;T=P.next())if(T=T.value,this.X||!T.Ib||T.Ib.getId()===k)Y[T.itag]||(Y[T.itag]=[]),Y[T.itag].push(T);k=g.p(this.K);for(P=k.next();!P.done;P=k.next())if(P=P.value,T=Y[P.W]){T=g.p(T);for(var I=T.next();!I.done;I= T.next()){var X=W,h=X.push;I=I.value;var B="#EXT-X-MEDIA:TYPE=AUDIO,",O="YES",u="audio";if(I.Ib){u=I.Ib;var Z=u.getId().split(".")[0];Z&&(B+='LANGUAGE="'+Z+'",');(this.W?this.W===u.getId():u.getIsDefault())||(O="NO");u=u.getName()}Z="";P!==null&&(Z=P.itag.toString());Z=wV(this,I.url,Z);B=B+('NAME="'+u+'",DEFAULT='+(O+',AUTOSELECT=YES,GROUP-ID="'))+(SNF(I,P)+'",URI="'+(Z+'"'));h.call(X,B)}}k=g.p(this.C);for(P=k.next();!P.done;P=k.next())P=P.value,T=rC1,P=(X=P.Ib)?'#EXT-X-MEDIA:URI="'+wV(this,P.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+T+'",LANGUAGE="'+X.getId()+'",NAME="'+X.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,P&&W.push(P);k=this.C.length>0?rC1:void 0;P=g.p(this.K);for(T=P.next();!T.done;T=P.next())T=T.value,h=Y[T.W],X=void 0,((X=h)==null?void 0:X.length)>0&&(X=T,h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(X.bitrate+h.bitrate)+',CODECS="'+(X.codecs+","+h.codecs+'",RESOLUTION=')+(X.width+"x"+X.height+',AUDIO="')+(SNF(h,X)+'",')+(k?'SUBTITLES="'+k+'",':"")+"CLOSED-CAPTIONS=NONE",X.fps>1&&(h+= ",FRAME-RATE="+X.fps),X.zF&&(h+=",VIDEO-RANGE="+X.zF),W.push(h),W.push(wV(this,T.url,"")));return W.join("\n")}; var rC1="text";g.H(Qz,gV);Qz.prototype.MU=function(){return this.expiration}; Qz.prototype.B1=function(){if(!this.ob||this.ob.Xr()){var W=this.K.build();W="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(W);this.ob=new Mt(W)}return this.ob};g.H(yz,gV);yz.prototype.B1=function(){return new Mt(this.K.OV())}; yz.prototype.UD=function(){this.K=VX(this.K)};g.H(e_,gV);e_.prototype.B1=function(){return new Mt(this.K)};var h0={},HP1=(h0.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",h0.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",h0.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",h0.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",h0);g.R=g.oT.prototype;g.R.getId=function(){return this.id}; g.R.getName=function(){return this.name}; g.R.isServable=function(){return this.W}; g.R.OV=function(){return this.url}; g.R.getXtags=function(){return this.xtags}; g.R.toString=function(){return this.languageCode+": "+g.v6(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.R.equals=function(W){return W?this.toString()===W.toString():!1}; g.R.Nt=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var J$z={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},sIS={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},r$F=/^(\d*)_((\d*)_?(\d*))$/;var zX7={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},d30={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Bf={},ACw=(Bf.ALWAYS=1,Bf.BY_REQUEST=3,Bf.UNKNOWN=void 0,Bf),O_={},zDp=(O_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",O_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",O_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",O_.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",O_);var y82; y82=function(W){for(var Y=Object.keys(W),k={},P=0;PP-Y?-1:W}; g.R.cP=function(){return this.K.QU()}; g.R.y8=function(){return this.K.xN()}; g.R.pG=function(W){this.K=W};g.H(i0,u0);i0.prototype.K=function(W,Y){return u0.prototype.K.call(this,"$N|"+W,Y)}; i0.prototype.C=function(W,Y,k){return new ZG(W,Y,k,this.isLive)};g.H(g.t6,g.NR);g.R=g.t6.prototype; g.R.setData=function(W){W=W||{};var Y=W.errordetail;Y!=null&&(this.errorDetail=Y);var k=W.errorcode;k!=null?this.errorCode=k:W.status==="fail"&&(this.errorCode="auth");var P=W.reason;P!=null&&(this.errorReason=P);var T=W.subreason;T!=null&&(this.OX=T);this.clientPlaybackNonce||(this.clientPlaybackNonce=W.cpn||(this.pg.OR()?"r"+g.OY(15):g.OY(16)));this.e1=xG(this.pg.e1,W.livemonitor);Xb7(this,W);var I=W.raw_player_response;if(I)this.Ft=I;else{var X=W.player_response;X&&(I=JSON.parse(X))}I&&(this.playerResponse= I);if(this.playerResponse){var h=this.playerResponse.annotations;if(h)for(var B=g.p(h),O=B.next();!O.done;O=B.next()){var u=O.value.playerAnnotationsUrlsRenderer;if(u){u.adsOnly&&(this.Mo=!0);var Z=u.loadPolicy;Z&&(this.annotationsLoadPolicy=ACw[Z]);var M=u.invideoUrl;M&&(this.Fr=v2(M));break}}var t=this.playerResponse.attestation;t&&D3X(this,t);var q=this.playerResponse.cotn;q&&(this.cotn=q);var G=this.playerResponse.heartbeatParams;if(G){this.iN=!0;var J=G.heartbeatToken;J&&(this.drmSessionId=G.drmSessionId|| "",this.heartbeatToken=J,this.O2=Number(G.intervalMilliseconds),this.Kf=Number(G.maxRetries),this.q2=!!G.softFailOnError,this.An=!!G.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=G.heartbeatServerData;var d;this.v4=!((d=G.heartbeatAttestationConfig)==null||!d.requiresAttestation)}var A=this.playerResponse.messages;A&&QIV(this,A);var F=this.playerResponse.overlay;if(F){var y=F.playerControlsOverlayRenderer;if(y)if(eXd(this,y.controlBgHtml),y.mutedAutoplay){var L=g.U(y.mutedAutoplay,vsi);if(L&& L.endScreen){var V=g.U(L.endScreen,Cmc);V&&V.text&&(this.Ng=g.jy(V.text))}}else this.mutedAutoplay=!1}var c=this.playerResponse.playabilityStatus;if(c){var X7=c.backgroundability;X7&&X7.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Id,Sz;if((Id=c.offlineability)==null?0:(Sz=Id.offlineabilityRenderer)==null?0:Sz.offlineable)this.offlineable=!0;var O2=c.contextParams;O2&&(this.contextParams=O2);var $5=c.pictureInPicture;$5&&$5.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);c.playableInEmbed&&(this.allowEmbed=!0);var z1=c.ypcClickwrap;if(z1){var cd=z1.playerLegacyDesktopYpcClickwrapRenderer,ad=z1.ypcRentalActivationRenderer;if(cd)this.CL=cd.durationMessage||"",this.vk=!0;else if(ad){var Mc=ad.durationMessage;this.CL=Mc?g.jy(Mc):"";this.vk=!0}}var Ij=c.errorScreen;if(Ij){if(Ij.playerLegacyDesktopYpcTrailerRenderer){var mV=Ij.playerLegacyDesktopYpcTrailerRenderer;this.b3=mV.trailerVideoId||"";var jV=Ij.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var wB=jV&&jV.ypcTrailerRenderer}else if(Ij.playerLegacyDesktopYpcOfferRenderer)mV= Ij.playerLegacyDesktopYpcOfferRenderer;else if(Ij.ypcTrailerRenderer){wB=Ij.ypcTrailerRenderer;var L$=wB.fullVideoMessage;this.vF=L$?g.jy(L$):"";var Iq,z;this.b3=((Iq=g.U(wB,LTK))==null?void 0:(z=Iq.videoDetails)==null?void 0:z.videoId)||""}mV&&(this.wf=mV.itemTitle||"",mV.itemUrl&&(this.Gb=mV.itemUrl),mV.itemBuyUrl&&(this.HP=mV.itemBuyUrl),this.qY=mV.itemThumbnail||"",this.lM=mV.offerHeadline||"",this.Xo=mV.offerDescription||"",this.gw=mV.offerId||"",this.Io=mV.offerButtonText||"",this.hv=mV.offerButtonFormattedText|| null,this.df=mV.overlayDurationMsec||NaN,this.vF=mV.fullVideoMessage||"",this.Er=!0);if(wB){var vk=g.U(wB,LTK);if(vk)this.uv={raw_player_response:vk};else{var m1=g.U(wB,WaK);this.uv=m1?cD(m1):null}this.Er=!0}}}var k5=this.playerResponse.playbackTracking;if(k5){var EK=W,K=b6(k5.googleRemarketingUrl);K&&(this.googleRemarketingUrl=K);var Y5=b6(k5.youtubeRemarketingUrl);Y5&&(this.youtubeRemarketingUrl=Y5);var Jm={},XZ=b6(k5.ptrackingUrl);if(XZ){var ew=c6(XZ),U2=ew.oid;U2&&(this.Mg=U2);var Yh=ew.pltype; Yh&&(this.zm=Yh);var $$=ew.ptchn;$$&&(this.Lz=$$);var CT=ew.ptk;CT&&(this.q0=encodeURIComponent(CT));var E=ew.m;E&&(this.Yi=E)}var n=b6(k5.qoeUrl);if(n){for(var r=g.fI(n),w=g.p(Object.keys(r)),C=w.next();!C.done;C=w.next()){var nC=C.value,x=r[nC];r[nC]=Array.isArray(x)?x.join(","):x}this.bk=r;var a=r.cat;a&&(this.U("html5_enable_qoe_cat_list")?this.wi=this.wi.concat(a.split(",")):this.B4=a);var Q=r.live;Q&&(this.gm=Q);var q6=r.drm_product;q6&&(this.drmProduct=q6)}var Hp=b6(k5.videostatsPlaybackUrl); if(Hp){var jz=c6(Hp),Sw=jz.adformat;if(Sw){EK.adformat=Sw;var lF=this.V(),Jq=A$6(Sw,this.SB,lF.T,lF.L);Jq&&(this.adFormat=Jq)}var WL=jz.aqi;WL&&(EK.ad_query_id=WL);var K$=jz.autoplay;K$&&(this.zv=K$=="1",this.mT=K$=="1");var Qi=jz.autonav;Qi&&(this.isAutonav=Qi=="1");var rv=jz.delay;rv&&(this.A9=mu(rv));var nX=jz.ei;nX&&(this.eventId=nX);var dv=Dz(jz.adcontext);if(dv)try{var Dc=C79(dv);Dc&&(this.DT=Dc)}catch(wPc){g.Kx(Error("Malformed adContext"))}if(dv||Sw)this.zv=!0;var JN=jz.feature;JN&&(this.Jo= JN);var XD=jz.list;XD&&(this.playlistId=XD);var sK=jz.of;sK&&(this.R9=sK);var fF=jz.osid;fF&&(this.osid=fF);var k8=jz.referrer;k8&&(this.referrer=k8);var UK=jz.sdetail;UK&&(this.qR=UK);var gB=jz.ssrt;gB&&(this.xF=gB=="1");var sF=jz.subscribed;sF&&(this.subscribed=sF=="1");var bq=jz.uga;bq&&(this.userGenderAge=bq);var Z$=jz.upt;Z$&&(this.CX=Z$);var gi=jz.vm;gi&&(this.videoMetadata=gi);Jm.playback=jz}var Vf=b6(k5.videostatsWatchtimeUrl);if(Vf){var Nd=c6(Vf),S9=Nd.ald;S9&&(this.l3=S9);Jm.watchtime=Nd}var pX= b6(k5.atrUrl);if(pX){var gU=c6(pX);Jm.atr=gU}var cl=b6(k5.engageUrl);if(cl){var F9=c6(cl);Jm.engage=F9}this.vV=Jm;if(k5.promotedPlaybackTracking){var Ys=k5.promotedPlaybackTracking;Ys.startUrls&&(this.mH=Ys.startUrls);Ys.firstQuartileUrls&&(this.P_=Ys.firstQuartileUrls);Ys.secondQuartileUrls&&(this.KB=Ys.secondQuartileUrls);Ys.thirdQuartileUrls&&(this.v1=Ys.thirdQuartileUrls);Ys.completeUrls&&(this.v_=Ys.completeUrls);Ys.engagedViewUrls&&(Ys.engagedViewUrls.length>1&&g.Kx(new g.Qq("There are more than one engaged_view_urls.")), this.JR=Ys.engagedViewUrls[0])}}var i4=this.playerResponse.playerCueRanges;i4&&i4.length>0&&(this.cueRanges=i4);var Fw=this.playerResponse.playerCueRangeSet;Fw&&g.nz(this,Fw);a:{var Zi=this.playerResponse.adPlacements;if(Zi)for(var a7=g.p(Zi),ix=a7.next();!ix.done;ix=a7.next()){var W3=void 0,YW=void 0,$W=(W3=ix.value.adPlacementRenderer)==null?void 0:(YW=W3.renderer)==null?void 0:YW.videoAdTrackingRenderer;if($W){var kW=$W;break a}}kW=null}var Md=kW;k5&&k5.promotedPlaybackTracking&&Md&&g.Kx(new g.Qq("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var hx;if(!(hx=Md))a:{for(var P3=g.p(this.playerResponse.adSlots||[]),qF=P3.next();!qF.done;qF=P3.next()){var Rg=g.U(qF.value,u2);if(Rg===void 0||!DxV(Rg))break;var gp=void 0,Qb=(gp=Rg.fulfillmentContent)==null?void 0:gp.fulfilledLayout,yb=g.U(Qb,Pb);if(yb&&Wb(yb)){hx=!0;break a}}hx=!1}hx&&(this.e$=!0);var ej=this.playerResponse.playerAds;if(ej)for(var W9=W,Fp=g.p(ej),R8=Fp.next();!R8.done;R8=Fp.next()){var wp=R8.value;if(wp){var Yd=wp.playerLegacyDesktopWatchAdsRenderer;if(Yd){var oF=Yd.playerAdParams; if(oF){oF.autoplay=="1"&&(this.mT=this.zv=!0);this.LI=oF.encodedAdSafetyReason||null;oF.showContentThumbnail!==void 0&&(this.vu=!!oF.showContentThumbnail);W9.enabled_engage_types=oF.enabledEngageTypes;break}}}}var Ga=this.playerResponse.playerConfig;if(Ga){var tZ=Ga.manifestlessWindowedLiveConfig;if(tZ){var DE=Number(tZ.minDvrSequence),$d=Number(tZ.maxDvrSequence),Hu=Number(tZ.minDvrMediaTimeMs),kd=Number(tZ.maxDvrMediaTimeMs),Q$=Number(tZ.startWalltimeMs);DE&&(this.UU=DE);Hu&&(this.gD=Hu/1E3,this.U("html5_sabr_parse_live_metadata_playback_boundaries")&& mX(this)&&(this.UK=Hu/1E3));$d&&(this.UA=$d);kd&&(this.J9=kd/1E3,this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&mX(this)&&(this.KL=kd/1E3));Q$&&(this.Gn=Q$/1E3);(DE||Hu)&&($d||kd)&&(this.allowLiveDvr=this.isLivePlayback=this.wD=!0,this.Fj=!1)}var nL=Ga.daiConfig;if(nL){if(nL.enableDai){this.Tj=!0;var Ww=nL.enableServerStitchedDai;Ww&&(this.enableServerStitchedDai=Ww);var x1=nL.enablePreroll;x1&&(this.uu=x1)}var Ob;if(nL.daiType==="DAI_TYPE_SS_DISABLED"||((Ob=nL.debugInfo)==null?0:Ob.isDisabledUnpluggedChannel))this.S8= !0;nL.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.TL=!0);nL.allowUstreamerRequestAdconfig&&(this.MR=!0)}var TR=Ga.audioConfig;if(TR){var gF=TR.loudnessDb;gF!=null&&(this.Zm=gF);var AG7=TR.trackAbsoluteLoudnessLkfs;AG7!=null&&(this.Xz=AG7);var zQV=TR.loudnessTargetLkfs;zQV!=null&&(this.loudnessTargetLkfs=zQV);TR.audioMuted&&(this.Aj=!0);TR.muteOnStart&&(this.Vf=!0);var nP=TR.loudnessNormalizationConfig;if(nP){nP.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);nP.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var dbV=nP.minimumLoudnessTargetLkfs;dbV!=null&&(this.minimumLoudnessTargetLkfs=dbV);var mbS=nP.maxStatefulTimeThresholdSec;mbS!=null&&(this.maxStatefulTimeThresholdSec=mbS)}TR.playAudioOnly&&(this.k8=!0)}var ga5=Ga.playbackEndConfig;if(ga5){var Db0=ga5.endSeconds,gTd=ga5.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Db0&&(this.endSeconds=Db0),gTd&&(this.limitedPlaybackDurationInSeconds=gTd))}var zh=Ga.fairPlayConfig;if(zh){var F41=zh.certificate;F41&& (this.GJ=Dz(F41));var w1V=Number(zh.keyRotationPeriodMs);w1V>0&&(this.n4=w1V);var QJ2=Number(zh.keyPrefetchMarginMs);QJ2>0&&(this.U2=QJ2)}var dA=Ga.playbackStartConfig;if(dA){this.il=Number(dA.startSeconds);var yGd=dA.liveUtcStartSeconds,eQ0=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;yGd&&!eQ0&&(this.liveUtcStartSeconds=Number(yGd));var FaS=dA.startPosition;if(FaS){var oT0=FaS.utcTimeMillis;oT0&&!eQ0&&(this.liveUtcStartSeconds=Number(oT0)*.001);var vTd=FaS.streamTimeMillis;vTd&&(this.rZ= Number(vTd)*.001)}this.progressBarStartPosition=dA.progressBarStartPosition;this.progressBarEndPosition=dA.progressBarEndPosition}else{var wlS=Ga.skippableSegmentsConfig;if(wlS){var Ci1=wlS.introSkipDurationMs;Ci1&&(this.Ao=Number(Ci1)/1E3);var L4d=wlS.outroSkipDurationMs;L4d&&(this.mX=Number(L4d)/1E3)}}var Q3X=Ga.skippableIntroConfig;if(Q3X){var UbV=Number(Q3X.startMs),lZq=Number(Q3X.endMs);isNaN(UbV)||isNaN(lZq)||(this.PU=UbV,this.CN=lZq)}var bu0=Ga.streamSelectionConfig;bu0&&(this.KH=Number(bu0.maxBitrate)); var cGS=Ga.vrConfig;cGS&&(this.Os=cGS.partialSpherical=="1");var pP=Ga.webDrmConfig;if(pP){pP.skipWidevine&&(this.oX=!0);var xb0=pP.widevineServiceCert;xb0&&(this.S6=Dz(xb0));pP.useCobaltWidevine&&(this.useCobaltWidevine=!0);pP.startWithNoQualityConstraint&&(this.i5=!0)}var gO=Ga.mediaCommonConfig;if(gO){var dP=gO.dynamicReadaheadConfig;if(dP){this.maxReadAheadMediaTimeMs=dP.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=dP.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=dP.readAheadGrowthRateMs|| NaN;var fZ1,Vk2=gO==null?void 0:(fZ1=gO.mediaUstreamerRequestConfig)==null?void 0:fZ1.videoPlaybackUstreamerConfig;Vk2&&(this.I3=Dz(Vk2));var yx7=gO==null?void 0:gO.sabrContextUpdates;if(yx7&&yx7.length>0)for(var N7V=g.p(yx7),eMv=N7V.next();!eMv.done;eMv=N7V.next()){var Vk=eMv.value;if(Vk.type&&Vk.value){var kSi={type:Vk.type,scope:Vk.scope,value:Dz(Vk.value)||void 0,sendByDefault:Vk.sendByDefault};this.sabrContextUpdates.set(Vk.type,kSi)}}}var aZF=gO.serverPlaybackStartConfig;aZF&&(this.serverPlaybackStartConfig= aZF);gO.useServerDrivenAbr&&(this.NA=!0);var WlC=gO.requestPipeliningConfig;WlC&&(this.requestPipeliningConfig=WlC)}var Yz6=Ga.inlinePlaybackConfig;Yz6&&(this.zs=!!Yz6.showAudioControls);var mv=Ga.embeddedPlayerConfig;if(mv){this.embeddedPlayerConfig=mv;var oaC=mv.embeddedPlayerMode;if(oaC){var $XX=this.V();$XX.gD=oaC;$XX.J=oaC==="EMBEDDED_PLAYER_MODE_PFL"}var kg1=mv.permissions;kg1&&(this.allowImaMonetization=!!kg1.allowImaMonetization)}var DD=Ga.webPlayerConfig;DD&&(DD.gatewayExperimentGroup&&(this.gatewayExperimentGroup= DD.gatewayExperimentGroup),DD.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var F0=this.playerResponse.streamingData;if(F0){var va5=F0.formats;if(va5){for(var GG=[],P5F=g.p(va5),Cq7=P5F.next();!Cq7.done;Cq7=P5F.next()){var LaF=Cq7.value;GG.push(LaF.itag+"/"+LaF.width+"x"+LaF.height)}this.ix=GG.join(",");GG=[];for(var TXS=g.p(va5),U_F=TXS.next();!U_F.done;U_F=TXS.next()){var KP=U_F.value,EN={itag:KP.itag,type:KP.mimeType,quality:KP.quality},jm7=KP.url;jm7&&(EN.url=jm7);var gP=Ne(KP),PCh=gP.kY, TDc=gP.O9,jkz=gP.s;gP.BM&&(EN.url=PCh,EN.sp=TDc,EN.s=jkz);GG.push(g.ih(EN))}this.fN=GG.join(",")}var lWC=F0.hlsFormats;if(lWC){var Ind=Ga||null,FC={};if(Ind){var bBF=Ind.audioPairingConfig;if(bBF&&bBF.pairs)for(var XS7=g.p(bBF.pairs),cxS=XS7.next();!cxS.done;cxS=XS7.next()){var SzS=cxS.value,x_d=SzS.videoItag;FC[x_d]||(FC[x_d]=[]);FC[x_d].push(SzS.audioItag)}}for(var hw2={},BXC=g.p(lWC),fWS=BXC.next();!fWS.done;fWS=BXC.next()){var ODF=fWS.value;hw2[ODF.itag]=ODF.bitrate}for(var uI7=[],ZDS=g.p(lWC), V9q=ZDS.next();!V9q.done;V9q=ZDS.next()){var UL=V9q.value,qW={itag:UL.itag,type:UL.mimeType,url:UL.url,bitrate:UL.bitrate,width:UL.width,height:UL.height,fps:UL.fps},wP=UL.audioTrack;if(wP){var iDV=wP.displayName;iDV&&(qW.name=iDV,qW.audio_track_id=wP.id,wP.audioIsDefault&&(qW.is_default="1"))}if(UL.drmFamilies){for(var M11=[],t1z=g.p(UL.drmFamilies),NZq=t1z.next();!NZq.done;NZq=t1z.next())M11.push(eq[NZq.value]);qW.drm_families=M11.join(",")}var Qv=FC[UL.itag];if(Qv&&Qv.length){qW.audio_itag=Qv.join(","); var qz7=hw2[Qv[0]];qz7&&(qW.bitrate+=qz7)}var Rw6=T6X(UL);Rw6&&(qW.eotf=Rw6);UL.audioChannels&&(qW.audio_channels=UL.audioChannels);uI7.push(g.ih(qW))}this.hlsFormats=uI7.join(",")}var aWv=F0.licenseInfos;if(aWv&&aWv.length>0){for(var HD7={},nJq=g.p(aWv),WA1=nJq.next();!WA1.done;WA1=nJq.next()){var pSV=WA1.value,GgS=pSV.drmFamily,Klq=pSV.url;GgS&&Klq&&(HD7[eq[GgS]]=Klq)}this.tY=HD7}var EJS=F0.drmParams;EJS&&(this.drmParams=EJS);var JoX=F0.dashManifestUrl;JoX&&(this.D_=g.MH(JoX,{cpn:this.clientPlaybackNonce})); var smF=F0.hlsManifestUrl;smF&&(this.hlsvp=smF);var rov=F0.probeUrl;rov&&(this.probeUrl=v2(g.MH(rov,{cpn:this.clientPlaybackNonce})));var AoC=F0.serverAbrStreamingUrl;AoC&&(this.RB=new g.lW(AoC,!0))}var zwS=this.playerResponse.trackingParams;zwS&&(this.UP=zwS);var HZ=this.playerResponse.videoDetails;if(HZ){var Rx=W,Yp2=HZ.videoId;Yp2&&(this.videoId=Yp2,Rx.video_id||(Rx.video_id=Yp2));var $vX=HZ.title;$vX&&(this.title=$vX,Rx.title||(Rx.title=$vX));var kZ0=HZ.lengthSeconds;kZ0&&(this.lengthSeconds= Number(kZ0),Rx.length_seconds||(Rx.length_seconds=kZ0));var dXS=HZ.keywords;dXS&&(this.keywords=ORz(dXS));var P4S=HZ.channelId;P4S&&(this.zC=P4S,Rx.ucid||(Rx.ucid=P4S));var mX1=HZ.viewCount;mX1&&(this.rawViewCount=Number(mX1));var Ti5=HZ.author;Ti5&&(this.author=Ti5,Rx.author||(Rx.author=Ti5));var DX5=HZ.shortDescription;DX5&&(this.shortDescription=DX5);var gJX=HZ.isCrawlable;gJX&&(this.isListed=gJX);var FlF=HZ.musicVideoType;FlF&&(this.musicVideoType=FlF);var jXd=HZ.isLive;jXd!=null&&(this.isLivePlayback= jXd);if(jXd||HZ.isUpcoming)this.isPremiere=!HZ.isLiveContent;var wSz=HZ.thumbnail;wSz&&(this.L=l6(wSz));var QmS=HZ.isExternallyHostedPodcast;QmS&&(this.isExternallyHostedPodcast=QmS);var I$2=HZ.viewerLivestreamJoinPosition;if(I$2==null?0:I$2.utcTimeMillis)this.tp=mu(I$2.utcTimeMillis);var yoC=Ga||null,X7V=W;HZ.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);HZ.isUpcoming&&(this.isUpcoming=!0);if(HZ.isPostLiveDvr){this.Fj=!0;var ewC=HZ.latencyClass;ewC&&(this.latencyClass=zDp[ewC]||"UNKNOWN"); HZ.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var Sp0=!1;this.e1?(this.allowLiveDvr=GY()?!0:CN&&Wi<5?!1:!0,this.isLivePlayback=!0):HZ.isLive?(X7V.livestream="1",this.allowLiveDvr=HZ.isLiveDvrEnabled?GY()?!0:CN&&Wi<5?!1:!0:!1,this.partnerId=27,Sp0=!0):HZ.isUpcoming&&(Sp0=!0);if(HZ.isLive||this.e1){HZ.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var oJz=HZ.latencyClass;oJz&&(this.latencyClass=zDp[oJz]||"UNKNOWN");var vJd=HZ.liveChunkReadahead;vJd&&(this.liveChunkReadahead= vJd);var mL=yoC&&yoC.livePlayerConfig;if(mL){mL.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);mL.hasSubfragmentedWebm&&(this.h3=!0);mL.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var C5v=mL.liveExperimentalContentId;C5v&&(this.liveExperimentalContentId=Number(C5v));var Ll5=mL.isLiveHeadPlayable;this.U("html5_live_head_playable")&&Ll5!=null&&(this.isLiveHeadPlayable=Ll5)}}Sp0&&(this.isLivePlayback=!0,X7V.adformat&&X7V.adformat.split("_")[1]!=="8"||this.N.push("heartbeat"))}var UXd= HZ.isPrivate;UXd!==void 0&&(this.isPrivate=xG(this.isPrivate,UXd))}if(c){var lnC=HZ||null,bDd=!1,D0=c.errorScreen;bDd=D0&&(D0.playerLegacyDesktopYpcOfferRenderer||D0.playerLegacyDesktopYpcTrailerRenderer||D0.ypcTrailerRenderer)?!0:lnC&&lnC.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(c.status);if(!bDd){this.errorCode=nXd(c.errorCode)||"auth";var yv=D0&&D0.playerErrorMessageRenderer;if(yv){this.playerErrorMessageRenderer=yv;var cod=yv.reason;cod&&(this.errorReason=g.jy(cod)); var hDX=yv.subreason;hDX&&(this.OX=g.jy(hDX),this.s2=hDX)}else this.errorReason=c.reason||null;var Biv=c.status;if(Biv==="LOGIN_REQUIRED")this.errorDetail="1";else if(Biv==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(Biv==="AGE_CHECK_REQUIRED"){var xXd=c.errorScreen,fn0=xXd&&xXd.playerKavRenderer;this.errorDetail=fn0&&fn0.kavUrl?"4":"3"}else this.errorDetail=c.isBlockedInRestrictedMode?"5":"0"}}var V1z=this.playerResponse.interstitialPods;V1z&&w$1(this,V1z);this.Fr&&this.eventId&&(this.Fr= NC(this.Fr,{ei:this.eventId}));var OZ0=this.playerResponse.captions;if(OZ0&&OZ0.playerCaptionsTracklistRenderer)a:{var H9=OZ0.playerCaptionsTracklistRenderer;this.captionTracks=[];if(H9.captionTracks)for(var NX7=g.p(H9.captionTracks),uwS=NX7.next();!uwS.done;uwS=NX7.next()){var nv=uwS.value,an6=hpV(nv.baseUrl);if(!an6)break a;var ZZv={is_translateable:!!nv.isTranslatable,languageCode:nv.languageCode,languageName:nv.name&&g.jy(nv.name),url:an6,vss_id:nv.vssId,kind:nv.kind};ZZv.name=nv.trackName;ZZv.displayName= nv.name&&g.jy(nv.name);this.captionTracks.push(new g.oT(ZZv))}this.VE=H9.audioTracks||[];this.w3=H9.defaultAudioTrackIndex||0;this.LY=[];if(H9.translationLanguages)for(var WJV=g.p(H9.translationLanguages),iZF=WJV.next();!iZF.done;iZF=WJV.next()){var gA=iZF.value,NP={};NP.languageCode=gA.languageCode;NP.languageName=g.jy(gA.languageName);if(gA.translationSourceTrackIndices){NP.translationSourceTrackIndices=[];for(var Ytv=g.p(gA.translationSourceTrackIndices),Mn7=Ytv.next();!Mn7.done;Mn7=Ytv.next())NP.translationSourceTrackIndices.push(Mn7.value)}if(gA.excludeAudioTrackIndices){NP.excludeAudioTrackIndices= [];for(var $w0=g.p(gA.excludeAudioTrackIndices),tnv=$w0.next();!tnv.done;tnv=$w0.next())NP.excludeAudioTrackIndices.push(tnv.value)}this.LY.push(NP)}this.a8=[];if(H9.defaultTranslationSourceTrackIndices)for(var ki2=g.p(H9.defaultTranslationSourceTrackIndices),qpd=ki2.next();!qpd.done;qpd=ki2.next())this.a8.push(qpd.value);this.c9=!!H9.contribute&&!!H9.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.il=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&y$0(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var PX2;this.compositeLiveIngestionOffsetToken=(PX2=this.playerResponse.playbackTracking)==null?void 0:PX2.compositeLiveIngestionOffsetToken;var Tcq;this.compositeLiveStatusToken=(Tcq=this.playerResponse.playbackTracking)==null?void 0: Tcq.compositeLiveStatusToken;this.U("html5_fill_default_mosaic_audio_track_id")&&uf(this)&&(this.pg.Q5=WGq(this));var joq,IC7,XGz=(joq=this.playerResponse.playerConfig)==null?void 0:(IC7=joq.granularVariableSpeedConfig)==null?void 0:IC7.minimumPlaybackRate,StS,hyq,BcX=(StS=this.playerResponse.playerConfig)==null?void 0:(hyq=StS.granularVariableSpeedConfig)==null?void 0:hyq.maximumPlaybackRate;XGz&&BcX&&(this.RO=XGz/100,this.rI=BcX/100)}R4(this,W);W.queue_info&&(this.queueInfo=W.queue_info);var O8S= W.hlsdvr;O8S!=null&&(this.allowLiveDvr=Number(O8S)===1?GY()?!0:CN&&Wi<5?!1:!0:!1);this.adQueryId=W.ad_query_id||null;this.LI||(this.LI=W.encoded_ad_safety_reason||null);this.Aj=xG(this.Aj,W.infringe||W.muted);this.WB5=W.authkey;this.VT=W.authuser;this.mutedAutoplay=xG(this.mutedAutoplay,W&&W.playmuted);this.mutedAutoplayDurationMode=Vp(this.mutedAutoplayDurationMode,W&&W.muted_autoplay_duration_mode);this.o8=xG(this.o8,W&&W.mutedautoplay);var eG=W.length_seconds;eG&&(this.lengthSeconds=typeof eG=== "string"?mu(eG):eG);if(this.isAd()||this.PH||!g.$F(g.hK(this.pg)))this.endSeconds=Vp(this.endSeconds,this.mX||W.end||W.endSeconds);else{var IVK=g.hK(this.pg),oe=this.lengthSeconds;switch(IVK){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":oe>30?this.limitedPlaybackDurationInSeconds=30:oe<30&&oe>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=oe*.2}}this.UP=NK(this.UP,W.itct);this.gS=xG(this.gS, W.is_live_destination);this.isLivePlayback=xG(this.isLivePlayback,W.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.t9();W.isUpcoming&&(this.isUpcoming=xG(this.isUpcoming,W.isUpcoming));this.Fj=xG(this.Fj,W.post_live_playback);this.wD&&(this.Fj=!1);this.isMdxPlayback=xG(this.isMdxPlayback,W.mdx);var v5=W.mdx_control_mode;v5&&(this.mdxControlMode=typeof v5==="number"?v5:mu(v5));this.isInlinePlaybackNoAd=xG(this.isInlinePlaybackNoAd,W.is_inline_playback_no_ad);this.xm= Vp(this.xm,W.reload_count);this.reloadReason=NK(this.reloadReason,W.reload_reason);this.vu=xG(this.vu,W.show_content_thumbnail);this.cycToken=W.cyc||null;var uh7=U9(W);Object.keys(uh7).length>0&&(this.L=uh7);this.TJ=NK(this.TJ,W.vvt);this.mdxEnvironment=NK(this.mdxEnvironment,W.mdx_environment);W.source_container_playlist_id&&(this.sourceContainerPlaylistId=W.source_container_playlist_id);W.serialized_mdx_metadata&&(this.serializedMdxMetadata=W.serialized_mdx_metadata);this.amD=W.osig;this.eventId|| (this.eventId=W.eventid);this.osid||(this.osid=W.osid);this.playlistId=NK(this.playlistId,W.list);W.index&&(this.playlistIndex=this.playlistIndex===void 0?Vp(0,W.index):Vp(this.playlistIndex,W.index));this.BZ=W.pyv_view_beacon_url;this.Rg=W.pyv_quartile25_beacon_url;this.lc=W.pyv_quartile50_beacon_url;this.eK=W.pyv_quartile75_beacon_url;this.rd=W.pyv_quartile100_beacon_url;var Z8X=W.session_data;!this.LG&&Z8X&&(this.LG=lG(Z8X,"&").feature);this.isFling=Vp(this.isFling?1:0,W.is_fling)===1;this.vnd= Vp(this.vnd,W.vnd);this.forceAdsUrl=NK(this.forceAdsUrl,W.force_ads_url);this.ws=NK(this.ws,W.ctrl);this.eA=NK(this.eA,W.ytr);this.dS=W.ytrcc;this.hw=W.ytrexp;this.ir=W.ytrext;this.jW=NK(this.jW,W.adformat);this.SB=NK(this.SB,W.attrib);this.slotPosition=Vp(this.slotPosition,W.slot_pos);this.breakType=W.break_type;this.xF=xG(this.xF,W.ssrt);this.videoId=WO(W)||this.videoId;this.X=NK(this.X,W.vss_credentials_token);this.Mv=NK(this.Mv,W.vss_credentials_token_type);this.k8=xG(this.k8,W.audio_only);this.V5= xG(this.V5,W.aac_high);this.Di=xG(this.Di,W.prefer_low_quality_audio);this.Nd=xG(this.Nd,W.uncap_inline_quality);this.U("html5_enable_qoe_cat_list")?W.qoe_cat&&(this.wi=this.wi.concat(W.qoe_cat.split(","))):this.B4=NK(this.B4,W.qoe_cat);this.S2=xG(this.S2,W.download_media);var i8z=W.prefer_gapless;this.G=i8z!=null?xG(this.G,i8z):this.G?this.G:this.pg.preferGapless&&this.pg.supportsGaplessShorts();X2v(this.playerResponse)&&this.N.push("ad");var MIF=W.adaptive_fmts;MIF&&(this.adaptiveFormats=MIF,this.y5("adpfmts", {},!0));var tIC=W.allow_embed;tIC&&(this.allowEmbed=Number(tIC)===1);var qt1=W.backgroundable;qt1&&(this.backgroundable=Number(qt1)===1);var Ryq=W.autonav;Ryq&&(this.isAutonav=Number(Ryq)===1);var H8v=W.autoplay;H8v&&(this.zv=this.mT=Number(H8v)===1);var nRC=W.iv_load_policy;nRC&&(this.annotationsLoadPolicy=fN(this.annotationsLoadPolicy,nRC,B6));var pGX=W.cc_lang_pref;pGX&&(this.captionsLanguagePreference=NK(pGX,this.captionsLanguagePreference));var GiS=W.cc_load_policy;GiS&&(this.xP=fN(this.xP,GiS, B6));var KJF;this.deviceCaptionsOn=(KJF=W.device_captions_on)!=null?KJF:void 0;var ERV;this.d3=(ERV=W.device_captions_lang_pref)!=null?ERV:"";var Jkd;this.ew=(Jkd=W.viewer_selected_caption_langs)!=null?Jkd:[];var so1=W.cached_load;so1&&(this.Rr=xG(this.Rr,so1));if(W.dash==="0"||W.dash===0||W.dash===!1)this.Md=!0;var rk0=W.dashmpd;rk0&&(this.D_=g.MH(rk0,{cpn:this.clientPlaybackNonce}));var AkS=W.delay;AkS&&(this.A9=mu(AkS));var RD0=this.mX||W.end;if(this.f1?RD0!=null:RD0!=void 0)this.clipEnd=Vp(this.clipEnd, RD0);var zyX=W.fmt_list;zyX&&(this.ix=zyX);W.heartbeat_preroll&&this.N.push("heartbeat");this.Zi=-Math.floor(Math.random()*10);this.kP=-Math.floor(Math.random()*40);var dwC=W.is_listed;dwC&&(this.isListed=xG(this.isListed,dwC));var mwv=W.is_private;mwv&&(this.isPrivate=xG(this.isPrivate,mwv));var Dwz=W.is_dni;Dwz&&(this.zr=xG(this.zr,Dwz));var gR1=W.dni_color;gR1&&(this.Zu=NK(this.Zu,gR1));var FJ2=W.pipable;FJ2&&(this.pipable=xG(this.pipable,FJ2));this.dQ=(this.Qf=this.pipable&&this.pg.Mo)&&!this.pg.showMiniplayerButton; var wGX=W.paid_content_overlay_duration_ms;wGX&&(this.paidContentOverlayDurationMs=mu(wGX));var QoS=W.paid_content_overlay_text;QoS&&(this.paidContentOverlayText=QoS);var ykv=W.url_encoded_fmt_stream_map;ykv&&(this.fN=ykv);var ey0=W.hls_formats;ey0&&(this.hlsFormats=ey0);var oRC=W.hlsvp;oRC&&(this.hlsvp=oRC);var C3=W.live_start_walltime;C3&&(this.X5r=typeof C3==="number"?C3:mu(C3));var L3=W.live_manifest_duration;L3&&(this.Xv=typeof L3==="number"?L3:mu(L3));var vR2=W.player_params;vR2&&(this.playerParams= vR2);var CX7=W.partnerid;CX7&&(this.partnerId=Vp(this.partnerId,CX7));var LJS=W.probe_url;LJS&&(this.probeUrl=v2(g.MH(LJS,{cpn:this.clientPlaybackNonce})));var HZ7=W.pyv_billable_url;HZ7&&tYq(HZ7)&&(this.JR=HZ7);var nIz=W.pyv_conv_url;nIz&&tYq(nIz)&&(this.Vc=nIz);uxd(this,W);this.startSeconds>0?this.U("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.il||this.Ao||W.start||W.startSeconds)&&this.y5("lss",{css:this.startSeconds,pcss:this.il,iss:this.Ao,ps:W.start||void 0,pss:W.startSeconds|| void 0}):this.K1=this.startSeconds=Vp(this.startSeconds,this.il||this.Ao||W.start||W.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Uw1=W.live_utc_start;if(Uw1!=null)this.liveUtcStartSeconds=Number(Uw1);else{var p75=this.startSeconds;p75&&isFinite(p75)&&p75>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var lCz=W.utc_start_millis;lCz&&(this.liveUtcStartSeconds=Number(lCz)*.001)}var b81=W.stream_time_start_millis; b81&&(this.rZ=Number(b81)*.001);var GZF=this.Ao||W.start;(this.f1?GZF==null||Number(W.resume)===1:GZF==void 0||W.resume=="1")||this.isLivePlayback||(this.clipStart=Vp(this.clipStart,GZF));var ck0=W.url_encoded_third_party_media;ck0&&(this.Jj=xK(ck0));var KA6=W.ypc_offer_button_formatted_text;if(KA6){var xw5=JSON.parse(KA6);this.hv=xw5!=null?xw5:null;this.fk=KA6}var fC2=W.ypc_offer_button_text;fC2&&(this.Io=fC2);var VI0=W.ypc_offer_description;VI0&&(this.Xo=VI0);var NcS=W.ypc_offer_headline;NcS&&(this.lM= NcS);var aC0=W.ypc_full_video_message;aC0&&(this.vF=aC0);var Wvv=W.ypc_offer_id;Wvv&&(this.gw=Wvv);var YnS=W.ypc_buy_url;YnS&&(this.HP=YnS);var $01=W.ypc_item_thumbnail;$01&&(this.qY=$01);var khV=W.ypc_item_title;khV&&(this.wf=khV);var PJS=W.ypc_item_url;PJS&&(this.Gb=PJS);var TPz=W.ypc_vid;TPz&&(this.b3=TPz);W.ypc_overlay_timeout&&(this.df=Number(W.ypc_overlay_timeout));var jeF=W.ypc_trailer_player_vars;jeF&&(this.uv=cD(jeF));var ID7=W.ypc_original_itct;ID7&&(this.pW=ID7);this.zC=NK(this.zC,W.ucid); this.zZ=W.storyboard_spec||null;this.Fv=W.live_storyboard_spec||null;this.zK=W.iv_endscreen_url||null;this.Er=xG(this.Er,W.ypc_module);this.vk=xG(this.vk,W.ypc_clickwrap_module);this.Er&&this.N.push("ypc");this.vk&&this.N.push("ypc_clickwrap");this.Gk={video_id:W.video_id,eventid:W.eventid,cbrand:W.cbrand,cbr:W.cbr,cbrver:W.cbrver,c:W.c,cver:W.cver,ctheme:W.ctheme,cplayer:W.cplayer,cmodel:W.cmodel,cnetwork:W.cnetwork,cos:W.cos,cosver:W.cosver,cplatform:W.cplatform,user_age:W.user_age,user_display_image:W.user_display_image, user_display_name:W.user_display_name,user_gender:W.user_gender,csi_page_type:W.csi_page_type,csi_service_name:W.csi_service_name,enablecsi:W.enablecsi,enabled_engage_types:W.enabled_engage_types};SVX(this,W);var X57=W.cotn;X57&&(this.cotn=X57);if(EEd(this))Fk(this)&&(this.isLivePlayback&&this.D_&&(this.k7=!0),this.GJ&&(this.y7=!0));else if(JV2(this))this.k7=!0;else{var Sn0,hjC,BPV=((Sn0=this.playerResponse)==null?void 0:(hjC=Sn0.streamingData)==null?void 0:hjC.adaptiveFormats)||[],FY=null;if(BPV.length> 0)FY=Kw2(this,BPV);else if(!this.U("html5_deprecate_adaptive_formats_string")){this.y5("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var O3S=this.adaptiveFormats;if(O3S&&!Fk(this)){this.pg.C.J&&(aO=!0);var wA=Cz(O3S),EI2=this.tY,uCV=this.lengthSeconds,XOK=this.isLivePlayback,J$=this.Fj,QJ=this.pg,Ssp=HYF(wA);if(XOK||J$){var Z3q=QJ==null?void 0:QJ.experiments,gr=new Q_("",Z3q,!0);gr.t9=!0;gr.isManifestless=!0;gr.K=!J$;gr.isLive=!J$;gr.Fj=J$;for(var i3d=g.p(wA),JC7=i3d.next();!JC7.done;JC7=i3d.next()){var yJ= JC7.value,MGV=v_(yJ,EI2),a0=Cr(yJ.url,yJ.sp,yJ.s),tGC=a0.get("id");tGC&&tGC.includes("%7E")&&(gr.A5=!0);var qnq=void 0,hB1=(qnq=Z3q)==null?void 0:qnq.Nq("html5_max_known_end_time_rebase"),BDi=Number(yJ.target_duration_sec)||5,Oec=Number(yJ.max_dvr_duration_sec)||14400,Rjz=Number(a0.get("mindsq")||a0.get("min_sq")||"0"),H3d=Number(a0.get("maxdsq")||a0.get("max_sq")||"0")||Infinity;gr.UU=gr.UU||Rjz;gr.UA=gr.UA||H3d;var u5$=!WC(MGV.mimeType);a0&&gz(gr,new qN(a0,MGV,{Lh:BDi,Cr:u5$,ol:Oec,UU:Rjz,UA:H3d, d2:300,Fj:J$,lR:hB1}))}var nVv=gr}else{if(Ssp==="FORMAT_STREAM_TYPE_OTF"){var Un=uCV;Un=Un===void 0?0:Un;var eB=new Q_("",QJ==null?void 0:QJ.experiments,!1);eB.duration=Un||0;for(var p52=g.p(wA),sX2=p52.next();!sX2.done;sX2=p52.next()){var oC=sX2.value,rCV=v_(oC,EI2,eB.duration),ACz=Cr(oC.url,oC.sp,oC.s);if(ACz)if(rCV.streamType==="FORMAT_STREAM_TYPE_OTF")gz(eB,new RO(ACz,rCV,"sq/0"));else{var ZeK=V2(oC.init),iec=V2(oC.index);gz(eB,new dz(ACz,rCV,ZeK,iec))}}eB.isOtf=!0;var Gh6=eB}else{var lJ=uCV; lJ=lJ===void 0?0:lJ;var bJ=new Q_("",QJ==null?void 0:QJ.experiments,!1);bJ.duration=lJ||0;for(var KvF=g.p(wA),zDd=KvF.next();!zDd.done;zDd=KvF.next()){var vg=zDd.value,M0c=v_(vg,EI2,bJ.duration),t01=V2(vg.init),qsw=V2(vg.index),EV1=Cr(vg.url,vg.sp,vg.s);EV1&&gz(bJ,new dz(EV1,M0c,t01,qsw))}Gh6=bJ}nVv=Gh6}var JO2=nVv;if(wA.length>0){var seX=wA[0];if(this.V().playerStyle==="hangouts-meet"&&seX.url){var RBK=g.fI(seX.url);this.KI=this.KI||Number(RBK.expire)}}var Hew=this.isLivePlayback&&!this.Fj&&!this.wD&& !this.isPremiere;this.U("html5_live_head_playable")&&(!wR(this)&&Hew&&this.y5("missingLiveHeadPlayable",{}),this.pg.A5==="yt"&&(JO2.GJ=!0));FY=JO2}else FY=null;this.y5("pafmts",{isManifestFilled:!!FY})}if(FY){eE(this,FY);var rO7=!0}else rO7=!1;rO7?this.enableServerStitchedDai=this.enableServerStitchedDai&&QO(this):this.D_&&(this.pg.A5==="yt"&&this.t9()&&this.U("drm_manifestless_unplugged")&&this.U("html5_deprecate_manifestful_fallback")?this.y5("deprecateMflFallback",{}):this.k7=!0)}var dv6=W.adpings; dv6&&(this.cF=dv6?cD(dv6):null);var AOS=W.feature;AOS&&(this.Jo=AOS);var zjX=W.referrer;zjX&&(this.referrer=zjX);this.clientScreenNonce=NK(this.clientScreenNonce,W.csn);this.AN=Vp(this.AN,W.root_ve_type);this.u0=Vp(this.u0,W.kids_age_up_mode);this.f1||W.kids_app_info==void 0||(this.kidsAppInfo=W.kids_app_info);this.f1&&W.kids_app_info!=null&&(this.kidsAppInfo=W.kids_app_info);this.E8=xG(this.E8,W.upg_content_filter_mode);this.unpluggedFilterModeType=Vp(this.unpluggedFilterModeType,W.unplugged_filter_mode_type); var d01=W.unplugged_location_info;d01&&(this.LH=d01);var m0S=W.unplugged_partner_opt_out;m0S&&(this.TF=NK("",m0S));this.yS=xG(this.yS,W.disable_watch_next);this.Tf=NK(this.Tf,W.internal_ip_override);this.Ci=!!W.is_yto_interstitial;(this.interstitials.length||this.Ci)&&this.N.push("yto");var D0v=W.Zr;D0v&&(this.Zr=D0v);this.A5=NK(this.A5,W.csi_timer);W.watchUrl&&(this.watchUrl=W.watchUrl);var WA=W.watch_endpoint;this.U("html5_attach_watch_endpoint_ustreamer_config")&&WA&&Kkq(this,WA);if(WA==null?0: WA.ustreamerConfig)this.C8=Dz(WA.ustreamerConfig);var gV7,FvF,w5V=WA==null?void 0:(gV7=WA.loggingContext)==null?void 0:(FvF=gV7.qoeLoggingContext)==null?void 0:FvF.serializedContextData;w5V&&(this.Bc2=w5V);g.Y3(this.pg)&&this.pg.S6&&(this.embedsRct=NK(this.embedsRct,W.rct),this.embedsRctn=NK(this.embedsRctn,W.rctn));W.embed_config&&(this.C4=W.embed_config);this.Ka=this.Ka||!!W.pause_at_start;W.default_active_source_video_id&&(this.defaultActiveSourceVideoId=W.default_active_source_video_id)}; g.R.V=function(){return this.pg}; g.R.U=function(W){return this.pg.U(W)}; g.R.hD=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.R.hasSupportedAudio51Tracks=function(){var W;return!((W=this.AC)==null||!W.Lg)}; g.R.getUserAudio51Preference=function(){var W=1;GB(this.pg)&&this.U("html5_ytv_surround_toggle_default_off")?W=0:g.H6(this.pg)&&this.isLivePlayback&&this.t$()&&(W=0);var Y;return(Y=g.Es("yt-player-audio51"))!=null?Y:W}; g.R.IG=function(){this.Xr()||(this.W.K||this.W.unsubscribe("refresh",this.IG,this),this.Vz(-1))}; g.R.Vz=function(W){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var Y=pC1(this.W,this.Ct);if(Y.length>0){for(var k=g.p(Y),P=k.next();!P.done;P=k.next())P=P.value,P.startSecs=Math.max(P.startSecs,this.aI()),this.U("html5_cuepoint_identifier_logging")&&P.event==="start"&&this.y5("cuepoint",{pubCue:P.identifier,segNum:W});this.publish("cuepointupdated",Y,W);this.Ct+=Y.length;if(QO(this)&&this.pg.OR())for(Y=g.p(Y),k=Y.next();!k.done;k=Y.next())k=k.value,this.y5("cuepoint",{segNum:W,event:k.event, startSecs:k.startSecs,id:k.identifier.slice(-16)}),k.event==="start"&&(k=k.startSecs,this.Sw.start=this.UV,this.Sw.end=k+3)}}}; g.R.M4=function(){this.Xr()||(this.loading=!1,this.publish("dataloaded"))}; g.R.t$=function(){return this.eI!==void 0?this.eI:this.eI=!!this.tY||!!this.W&&yX(this.W)}; g.R.pF=function(W){var Y=this;if(this.Xr())return G5();this.xq=this.rD=this.J=null;HV(this,"html5_high_res_logging_always")&&(this.pg.Zm=!0);return AV1(this,W).then(void 0,function(){return djv(Y,W)}).then(void 0,function(){return mjC(Y)}).then(void 0,function(){return gE2(Y)})}; g.R.BJ=function(W){this.J=W;zpq(this,this.J.getAvailableAudioTracks());if(this.J){W=g.p(this.J.videoInfos);for(var Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var k=Y.containerType;k!==0&&(this.wu[k]=Y.id)}}W=this.getAvailableAudioTracks();W=W.concat(this.yD);for(Y=0;Y0?this.J.getAvailableAudioTracks():this.A7||[]:[]}; g.R.getAudioTrack=function(){var W=this;if(this.T&&!f5(this.T)){var Y=g.qc(this.getAvailableAudioTracks(),function(T){return T.id===W.T.id}),k; if(!Y&&((k=this.T.Ib)==null?0:k.id)){var P=this.T.Ib.id;Y=g.qc(this.getAvailableAudioTracks(),function(T){return T.Ib.id===P}); this.y5("nat",{id:this.T.id,track:!!Y})}return Y||this.yD}if(this.A7){if(!this.n8)for(Y=g.p(this.A7),k=Y.next();!k.done;k=Y.next())if(k=k.value,k.Ib.getIsDefault()){this.n8=k;break}return this.n8||this.yD}return this.yD}; g.R.getPlayerResponse=function(){return this.playerResponse}; g.R.getWatchNextResponse=function(){return this.OP}; g.R.getHeartbeatResponse=function(){return this.PQ}; g.R.md=function(){return this.watchUrl?this.watchUrl:this.pg.getVideoUrl(this.videoId)}; g.R.G_=function(){return!!this.W&&(OY0(this.W)||u_C(this.W)||ZYd(this.W))}; g.R.getEmbeddedPlayerResponse=function(){return this.ZJ}; g.R.xZ=function(){return(this.eventLabel||this.pg.TJ)==="shortspage"}; g.R.isAd=function(){return!!this.adFormat}; g.R.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.R.Xj=function(){var W,Y,k;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((W=this.playerResponse)==null?0:(Y=W.playerConfig)==null?0:(k=Y.daiConfig)==null?0:k.ssaEnabledPlayback)}; g.R.Bc=function(){return this.iN}; g.R.U9=function(){return this.Er||this.zg}; g.R.z7=function(){return HV(this,"html5_samsung_vp9_live")}; g.R.y5=function(W,Y,k){this.publish("ctmp",W,Y,k)}; g.R.lf=function(W,Y,k){this.publish("ctmpstr",W,Y,k)}; g.R.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.R.getGetAdBreakContext=function(W,Y){W=W===void 0?NaN:W;Y=Y===void 0?NaN:Y;var k={isSabr:mX(this)},P,T=(P=this.getHeartbeatResponse())==null?void 0:P.adBreakHeartbeatParams;T&&(k.adBreakHeartbeatParams=T);if(this.U("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.W&&!isNaN(W)&&!isNaN(Y)){Y=W-Y;for(var I in this.W.W)if(P=this.W.W[I],P.info.qa()||P.info.xH())if(P=P.index,P.isLoaded()){I=P.o7(Y);P=P.hT(I)+Y-P.getStartTime(I);this.y5("gabc",{t:W.toFixed(3),mt:Y.toFixed(3),sg:I,igt:P.toFixed(3)}); k.livePlaybackPosition={utcTimeMillis:""+(P*1E3).toFixed(0)};break}}return k}; g.R.isEmbedsShortsMode=function(W,Y){if(!g.Y3(this.pg)||(this.pg.gD||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||Y)return!1;var k,P;return!!(((k=this.embeddedPlayerConfig)==null?0:(P=k.embeddedPlayerFlags)==null?0:P.isShortsExperienceEligible)&&W.width<=W.height)}; g.R.iz=function(){g.NR.prototype.iz.call(this);this.cF=null;delete this.ly;delete this.accountLinkingConfig;delete this.W;this.J=this.PQ=this.playerResponse=this.OP=null;this.fN=this.adaptiveFormats="";delete this.botguardData;this.Q5=this.suggestions=this.zR=null;this.sabrContextUpdates.clear()};var uod={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Z10={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Bm0={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},XW0={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"},hNC={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},SaS={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"},O1q={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.H(JD,g.e);g.R=JD.prototype;g.R.handleExternalCall=function(W,Y,k){var P=this.state.G[W],T=this.state.L[W],I=P;if(T)if(k&&y5(k,bBQ))I=T;else if(!P)throw Error('API call from an untrusted origin: "'+k+'"');this.logApiCall(W,k);if(I){k=!1;P=g.p(Y);for(T=P.next();!T.done;T=P.next())if(String(T.value).includes("javascript:")){k=!0;break}k&&g.Kx(Error('Dangerous call to "'+W+'" with ['+Y+"]."));return I.apply(this,Y)}throw Error('Unknown API method: "'+W+'".');}; g.R.logApiCall=function(W,Y,k){var P=this.app.V();P.UK&&!this.state.N.has(W)&&(this.state.N.add(W),g.W8("webPlayerApiCalled",{callerUrl:P.loaderUrl,methodName:W,origin:Y||void 0,playerStyle:P.playerStyle||void 0,embeddedPlayerMode:P.gD,errorCode:k}))}; g.R.publish=function(W){var Y=g.y0.apply(1,arguments);this.state.J.publish.apply(this.state.J,[W].concat(g.ZX(Y)));if(W==="videodatachange"||W==="resize"||W==="cardstatechange")this.state.K.publish.apply(this.state.K,[W].concat(g.ZX(Y))),this.state.T.publish.apply(this.state.T,[W].concat(g.ZX(Y)))}; g.R.Ri=function(W){var Y=g.y0.apply(1,arguments);this.state.J.publish.apply(this.state.J,[W].concat(g.ZX(Y)));this.state.K.publish.apply(this.state.K,[W].concat(g.ZX(Y)))}; g.R.i7=function(W){var Y=g.y0.apply(1,arguments);this.state.J.publish.apply(this.state.J,[W].concat(g.ZX(Y)));this.state.K.publish.apply(this.state.K,[W].concat(g.ZX(Y)));this.state.T.publish.apply(this.state.T,[W].concat(g.ZX(Y)))}; g.R.x8=function(W){var Y=g.y0.apply(1,arguments);this.state.J.publish.apply(this.state.J,[W].concat(g.ZX(Y)));this.state.K.publish.apply(this.state.K,[W].concat(g.ZX(Y)));this.state.T.publish.apply(this.state.T,[W].concat(g.ZX(Y)));this.state.C.publish.apply(this.state.C,[W].concat(g.ZX(Y)))}; g.R.U=function(W){return this.app.V().U(W)}; g.R.iz=function(){if(this.state.element){var W=this.state.element,Y;for(Y in this.state.W)this.state.W.hasOwnProperty(Y)&&(W[Y]=null);this.state.element=null}g.e.prototype.iz.call(this)};g.H(dW,g.RY);dW.prototype.publish=function(W){var Y=g.y0.apply(1,arguments);if(this.C.has(W))return this.C.get(W).push(Y),!0;var k=!1;try{for(Y=[Y],this.C.set(W,Y);Y.length;)k=g.RY.prototype.publish.call.apply(g.RY.prototype.publish,[this,W].concat(g.ZX(Y.shift())))}finally{this.C.delete(W)}return k};g.H(mO,g.e);mO.prototype.iz=function(){this.C.dispose();this.T.dispose();this.K.dispose();this.J.dispose();this.N=this.W=this.L=this.G=this.X=void 0};var nkv=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.H(gW,JD);g.R=gW.prototype;g.R.getApiInterface=function(){return Array.from(this.state.X)}; g.R.s_=function(W,Y){this.state.C.subscribe(W,Y)}; g.R.ZN1=function(W,Y){this.state.C.unsubscribe(W,Y)}; g.R.getPlayerState=function(W){return cFd(this.app,W)}; g.R.HG=function(){return cFd(this.app)}; g.R.ADi=function(W,Y,k){Qn(this)&&(ow(this.app,!0,1),Lf(this.app,W,Y,k,1))}; g.R.getCurrentTime=function(W,Y,k){var P=this.getPlayerState(W);if(this.app.getAppState()===2&&P===5){var T;return((T=this.app.getVideoData())==null?void 0:T.startSeconds)||0}return this.U("web_player_max_seekable_on_ended")&&P===0?gd(this.app,W):W?this.app.getCurrentTime(W,Y,k):this.app.getCurrentTime(W)}; g.R.pO=function(){return this.app.getCurrentTime(1)}; g.R.Uk=function(){var W=this.app.hT(1);return isNaN(W)?this.getCurrentTime(1):W}; g.R.CO=function(){return this.app.getDuration(1)}; g.R.RF=function(W,Y){W=g.ee(Math.floor(W),0,100);isFinite(W)&&mB(this.app,{volume:W,muted:this.isMuted()},Y)}; g.R.nHz=function(W){this.RF(W,!1)}; g.R.yv=function(W){mB(this.app,{muted:!0,volume:this.getVolume()},W)}; g.R.Dqi=function(){this.yv(!1)}; g.R.SQ=function(W){mB(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},W)}; g.R.is6=function(){wW(this.app)||this.SQ(!1)}; g.R.getPlayerMode=function(){var W={};this.app.getVideoData().zr&&(W.pfp={enableIma:this.app.Kq().allowImaMonetization,autoplay:SW(this.app.Kq()),mutedAutoplay:this.app.Kq().mutedAutoplay});return W}; g.R.xW=function(){var W=this.app.getPresentingPlayerType();if(W===2&&!this.app.Tj()){var Y=FS(this.app.gx());if(!(xcK(Y)||g.Y3(this.app.V())&&g.b(this.app.D2().getPlayerState(),1024))||fc$(Y))return}(Y=this.app.Ln().sA)?Y.playVideo():this.app.playVideo(W)}; g.R.v86=function(){ow(this.app,!0,1);this.xW()}; g.R.pauseVideo=function(W){var Y=this.app.getPresentingPlayerType();if(Y!==2||this.app.Tj()||xcK(FS(this.app.gx()))){var k=this.app.Ln().sA;k?k.pauseVideo():this.app.pauseVideo(Y,W)}}; g.R.fg6=function(){var W=this.app,Y=!1;W.zJ.Gn&&(W.Ii.publish("pageTransition"),Y=!0);W.stopVideo(Y)}; g.R.clearVideo=function(){}; g.R.getAvailablePlaybackRates=function(){var W=this.app.V();if(W.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(W.T?W.ancestorOrigins[0]:window.location.origin)||W.n8)return RMK;var Y=this.app.getVideoData();if(IP5(Y)){var k=Y.RO,P=Y.rI;return plc.filter(function(T){return T>=k&&T<=P})}return W.supportsVarispeedExtendedFeatures?HBK:W.U("web_remix_allow_up_to_3x_playback_rate")&&g.dq(W)?nai:mC}return[1]}; g.R.getPlaybackQuality=function(W){return(W=this.app.H5(W))?W.getPlaybackQuality():"unknown"}; g.R.SEP=function(){}; g.R.getAvailableQualityLevels=function(W){return(W=this.app.H5(W))?(W=g.tx(W.HV(),function(Y){return Y.quality}),W.length&&(W[0]==="auto"&&W.shift(),W=W.concat(["auto"])),W):[]}; g.R.ip=function(){return this.getAvailableQualityLevels(1)}; g.R.xQ=function(){return this.XE()}; g.R.jq=function(){return 1}; g.R.getVideoLoadedFraction=function(W){return this.app.getVideoLoadedFraction(W)}; g.R.XE=function(){return this.getVideoLoadedFraction()}; g.R.kQ=function(){return 0}; g.R.getSize=function(){var W=this.app.ai().getPlayerSize();return{width:W.width,height:W.height}}; g.R.setSize=function(){this.app.ai().resize()}; g.R.loadVideoById=function(W,Y,k,P){if(!W)return!1;W=DA(W,Y,k);return this.app.loadVideoByPlayerVars(W,P)}; g.R.w6g=function(W,Y,k){W=this.loadVideoById(W,Y,k,1);ow(this.app,W,1)}; g.R.cueVideoById=function(W,Y,k,P){W=DA(W,Y,k);this.app.cueVideoByPlayerVars(W,P)}; g.R.iX=function(W,Y,k){this.cueVideoById(W,Y,k,1)}; g.R.loadVideoByUrl=function(W,Y,k,P){W=H1d(W,Y,k);return this.app.loadVideoByPlayerVars(W,P)}; g.R.TD2=function(W,Y,k){W=this.loadVideoByUrl(W,Y,k,1);ow(this.app,W,1)}; g.R.cueVideoByUrl=function(W,Y,k,P){W=H1d(W,Y,k);this.app.cueVideoByPlayerVars(W,P)}; g.R.JQ=function(W,Y,k){this.cueVideoByUrl(W,Y,k,1)}; g.R.QT=function(){var W=this.app.V();if(W.Kg)return"";var Y=this.app.Kq(),k=void 0;Y.isLivePlayback||(k=Math.floor(this.app.getCurrentTime(1)));return W.getVideoUrl(Y.videoId,this.getPlaylistId()||void 0,k)}; g.R.Sq=function(){return this.app.getDebugText()}; g.R.getVideoEmbedCode=function(){var W=this.app.V();if(W.Kg)return"";var Y=this.app.Kq();return W.getVideoEmbedCode(Y.isPrivate?"":Y.title,this.app.Kq().videoId,this.app.ai().getPlayerSize(),this.getPlaylistId()||void 0)}; g.R.n9=function(W,Y,k){return $Y0(this.app,W,Y,k)}; g.R.removeCueRange=function(W){return this.app.g0(W)}; g.R.loadPlaylist=function(W,Y,k,P){this.app.loadPlaylist(W,Y,k,P)}; g.R.igg=function(W,Y,k,P){this.loadPlaylist(W,Y,k,P);ow(this.app,!0,1)}; g.R.cuePlaylist=function(W,Y,k,P){this.app.cuePlaylist(W,Y,k,P)}; g.R.nextVideo=function(W,Y){this.app.nextVideo(W,Y)}; g.R.Qia=function(){this.nextVideo();ow(this.app,!0,1)}; g.R.previousVideo=function(W){this.app.previousVideo(W)}; g.R.YU5=function(){this.previousVideo();ow(this.app,!0,1)}; g.R.playVideoAt=function(W){this.app.playVideoAt(W)}; g.R.KBS=function(W){this.playVideoAt(W);ow(this.app,!0,1)}; g.R.setShuffle=function(W){var Y=this.app.getPlaylist();Y&&Y.setShuffle(W)}; g.R.setLoop=function(W){var Y=this.app.getPlaylist();Y&&(Y.loop=W)}; g.R.Gi=function(){var W=this.app.getPlaylist();if(!W)return null;for(var Y=[],k=0;k=400)if(W=this.Kq(),this.Y.V().U("client_respect_autoplay_switch_button_renderer"))W=!!W.autoplaySwitchButtonRenderer;else{var Y,k,P,T;W=!!((Y=W.getWatchNextResponse())==null?0:(k=Y.contents)==null?0:(P=k.twoColumnWatchNextResults)==null?0:(T=P.autoplay)==null?0:T.autoplay)!==!1}if(W)this.W||(this.W=!0,this.b8(this.W),this.Y.V().U("web_player_autonav_toggle_always_listen")||caC(this), Y=this.Kq(),this.Tk(Y.autonavState),this.Y.logVisibility(this.element,this.W));else if(this.W=!1,this.b8(this.W),!this.Y.V().U("web_player_autonav_toggle_always_listen"))for(this.Y.V().U("web_player_autonav_toggle_always_listen"),Y=g.p(this.K),k=Y.next();!k.done;k=Y.next())this.nH(k.value)}; g.R.Tk=function(W){fPS(this)?this.isChecked=W!==1:((W=W!==1)||(W=g.mr(),W=g.Oi("web_autonav_allow_off_by_default")&&!W.Ik(141)&&g.eM("AUTONAV_OFF_BY_DEFAULT")?!1:!W.Ik(140)),this.isChecked=W);xgd(this)}; g.R.onClick=function(){this.isChecked=!this.isChecked;this.Y.Um(this.isChecked?2:1);xgd(this);if(fPS(this)){var W=this.Kq().autoplaySwitchButtonRenderer;this.isChecked&&(W==null?0:W.onEnabledCommand)?this.Y.Ri("innertubeCommand",W.onEnabledCommand):!this.isChecked&&(W==null?0:W.onDisabledCommand)&&this.Y.Ri("innertubeCommand",W.onDisabledCommand)}this.Y.logClick(this.element)}; g.R.getValue=function(){return this.isChecked}; g.R.Kq=function(){return this.Y.getVideoData(1)};g.H(VPz,Mb);g.H(EH,g.OH);EH.prototype.onClick=function(){this.enabled&&(JG(this,!this.checked),this.publish("select",this.checked))}; EH.prototype.getValue=function(){return this.checked}; EH.prototype.setEnabled=function(W){(this.enabled=W)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var kCF={B_i:2,cZ:1,gC:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var AG=["en-CA","en","es-MX","fr-CA"];g.H(g7,EH);g7.prototype.xa=function(W){W?this.W||(this.Mq.c7(this),this.W=!0):this.W&&(this.Mq.tC(this),this.W=!1);this.W&&JG(this,y9C())}; g7.prototype.T=function(){g.YN(this.element,"ytp-menuitem-highlight-transition-enabled")}; g7.prototype.J=function(W){var Y=y9C();W!==Y&&(Y=g.mr(),gD(190,W),gD(192,!0),Y.save(),this.Y.Ri("cinematicSettingsToggleChange",W))}; g7.prototype.iz=function(){this.W&&this.Mq.tC(this);EH.prototype.iz.call(this)};g.H(Fr,Mb);Fr.prototype.updateCinematicSettings=function(W){this.W=W;var Y;(Y=this.menuItem)==null||Y.xa(W);this.api.publish("onCinematicSettingsVisibilityChange",W)};g.H($ez,Mb);g.H(w7,Mb);w7.prototype.setCreatorEndscreenVisibility=function(W){var Y;(Y=eJ(this.api.gx()))==null||Y.b8(W)}; w7.prototype.W=function(W){function Y(P){P==="creatorendscreen"&&(P=eJ(k.api.gx()))&&P.TVr(k.hideButton)} var k=this;this.hideButton=W;this.events.Z(this.api,"modulecreated",Y);Y("creatorendscreen")};g.H(Qo,EH);Qo.prototype.T=function(W){this.J(W?1:0);this.Y.publish("audiopreferencechange")}; Qo.prototype.X5=function(){if(this.enableNewAudioSettingsMenu){var W=this.Y.getPresentingPlayerType();W===2||W===3?(this.W=!1,this.Mq.tC(this)):(W=this.getDrcState(),W!==1?(W===0?(JG(this,this.K()===1),this.setEnabled(!0)):(JG(this,!1),this.setEnabled(!1)),this.W||(this.Mq.c7(this),this.W=!0)):this.W&&(this.Mq.tC(this),this.W=!1))}else{W=this.hasDrcAudioTrack();var Y=this.K()===1&&W;JG(this,Y);this.setEnabled(W)}}; Qo.prototype.iz=function(){this.Mq.tC(this);EH.prototype.iz.call(this)};g.H(yo,Mb);g.R=yo.prototype;g.R.getDrcUserPreference=function(){return this.W}; g.R.setDrcUserPreference=function(W){this.api.U("html5_log_drc_pref")&&this.api.y5("drc_set",{pref:W});g.Ke("yt-player-drc-pref",W,31536E3);W!==this.W&&(this.W=W,this.updateEnvironmentData(),this.iS()&&this.api.V0())}; g.R.updateEnvironmentData=function(){this.api.V().k8=this.W===1}; g.R.iS=function(){var W,Y,k=(W=this.api.getVideoData())==null?void 0:(Y=W.J)==null?void 0:Y.W;if(!k)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.U("mta_drc_mutual_exclusion_removal")){var P,T,I=(P=this.api.ji())==null?void 0:(T=P.Ib)==null?void 0:T.id;return vQ(k,function(X){var h;return X.audio.W&&((h=X.Ib)==null?void 0:h.id)===I})}return vQ(k,function(X){var h; return((h=X.audio)==null?void 0:h.W)===!0})}; g.R.getDrcState=function(){return this.api.kF(2)};g.H(ek,Mb);ek.prototype.onVideoDataChange=function(){var W=this,Y=this.api.getVideoData();this.api.fq("embargo",1);var k=Y==null?void 0:Y.P1.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(k==null?0:k.length)?Toq(this,k.filter(function(P){return PWX(W,P)})):(Y==null?0:Y.cueRanges)&&Toq(this,Y.cueRanges.filter(function(P){return PWX(W,P)}))}; ek.prototype.K=function(W){return W.embargo!==void 0}; ek.prototype.iz=function(){Mb.prototype.iz.call(this);this.W={}};g.H(oJ,Mb); oJ.prototype.addEmbedsConversionTrackingParams=function(W){var Y=this.api.V(),k=Y.widgetReferrer,P=Y.D_,T=this.W,I="",X=Y.getWebPlayerContextConfig();X&&(I=X.embedsIframeOriginParam||"");k.length>0&&(W.embeds_widget_referrer=k);P.length>0&&(W.embeds_referring_euri=P);Y.T&&I.length>0&&(W.embeds_referring_origin=I);X&&X.embedsFeature&&(W.feature=X.embedsFeature);T.length>0&&(Y.U("embeds_web_enable_lite_experiment_control_arm_logging")?T.unshift(28572):g.$F(g.hK(Y))&&T.unshift(159628),Y=T.join(","),Y= g.wn()?Y:g.s$(Y,4),W.source_ve_path=Y);this.W.length=0};g.H(jcq,Mb);g.H(Isv,Mb);g.H(v1,g.e);v1.prototype.iz=function(){g.e.prototype.iz.call(this);this.W=null;this.K&&this.K.disconnect()};g.H(S70,Mb);g.H(Cu,g.l);Cu.prototype.show=function(){g.l.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Cu.prototype.stopTimer=function(){this.W&&(this.W.dispose(),this.W=null)}; Cu.prototype.onVideoDataChange=function(W){var Y,k,P=(Y=this.api.getVideoData())==null?void 0:(k=Y.getPlayerResponse())==null?void 0:k.playabilityStatus;P&&(Y=hCF(P),g.b(this.api.getPlayerStateObject(),128)||W==="dataloaderror"||!Y?(this.K=0,this.stopTimer(),this.hide()):(W=(Y.remainingTimeSecs||0)*1E3,W>0&&(this.show(),this.updateValue("label",VQ(Y.label)),Om5(this,W))))}; Cu.prototype.iz=function(){this.stopTimer();g.l.prototype.iz.call(this)};g.H(uKq,Mb);g.H(Lu,g.l);Lu.prototype.onClick=function(){this.Ii.logClick(this.element);this.Ii.Ri("onFullerscreenEduClicked")}; Lu.prototype.xa=function(){this.Ii.isFullscreen()?this.W?this.fade.hide():this.fade.show():this.hide();this.Ii.logVisibility(this.element,this.Ii.isFullscreen()&&!this.W)};g.H(UH,Mb);UH.prototype.updateFullerscreenEduButtonSubtleModeState=function(W){var Y;(Y=this.W)!=null&&(g.kN(Y.element,"ytp-fullerscreen-edu-button-subtle",W),W&&!Y.K&&(Y.Ii.U("player_tooltip_data_title_killswitch")?Y.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):Y.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),Cl(Y.Ii,Y.element,Y),Y.K=!0))}; UH.prototype.updateFullerscreenEduButtonVisibility=function(W){var Y;(Y=this.W)!=null&&(Y.W=W,Y.xa())};g.H(Zm7,g.l);g.H(tbd,Mb);g.H(li,Mb);li.prototype.getSphericalProperties=function(){var W=g.Vn(this.api.gx());return W?W.getSphericalProperties():{}}; li.prototype.setSphericalProperties=function(W){if(W){var Y=g.Vn(this.api.gx());Y&&Y.setSphericalProperties(W,!0)}};g.H(bi,Mb);g.R=bi.prototype;g.R.createClientVe=function(W,Y,k,P){this.api.createClientVe(W,Y,k,P===void 0?!1:P)}; g.R.createServerVe=function(W,Y,k){this.api.createServerVe(W,Y,k===void 0?!1:k)}; g.R.setTrackingParams=function(W,Y){this.api.setTrackingParams(W,Y)}; g.R.logClick=function(W,Y){this.api.logClick(W,Y)}; g.R.logVisibility=function(W,Y,k){this.api.logVisibility(W,Y,k)}; g.R.hasVe=function(W){return this.api.hasVe(W)}; g.R.destroyVe=function(W){this.api.destroyVe(W)};fu.prototype.kF=function(W){return this.W[W]}; fu.prototype.tL=function(){for(var W=this.J,Y={},k=g.p(c1),P=k.next();!P.done;P=k.next())if(P=P.value,this.K[P]){W=xT[P].JI(W,this.videoData);for(var T=g.p(c1),I=T.next();!I.done;I=T.next())I=I.value,Y[I]!==void 0||vQ(W,xT[I].LP)||(Y[I]=xT[P].pR);Y[P]===void 0&&(Y[P]=0)}else Y[P]=1;this.W=Y}; var c1=[0,1,3,2],Z8={},xT=(Z8[0]={pR:2,LP:Et0,JI:q71},Z8[1]={pR:3,LP:RCz,JI:HmV},Z8[2]={pR:4,LP:nt5,JI:p01},Z8[3]={pR:5,LP:GC5,JI:Kxz},Z8);var sc0=!1;Nb.prototype.setPlaybackRate=function(W){this.playbackRate=Math.max(1,W)}; Nb.prototype.getPlaybackRate=function(){return this.playbackRate};kJ.prototype.jb=function(W){var Y=g.VR(W.info.W.info,this.H6.t9),k=W.info.t5+this.T,P=W.info.startTime*1E3;if(this.policy.Q5)try{P=this.policy.Q5?g.EW(W)*1E3:W.info.startTime*1E3}catch(X){Math.random()>.99&&this.logger&&(P=XY(W.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:W.info.TW(),encodedDataView:g.Jx(P,4)})),P=W.info.startTime*1E3}var T=W.info.clipId,I=this.policy.Q5?g.VvC(W)*1E3:W.info.duration*1E3;this.policy.Q5&&(P<0||I<0)&&(this.logger&&(this.logger({missingSegInfo:W.info.TW(), startTimeMs:P,durationMs:I}),this.policy.Kr||(P<0&&(P=W.info.startTime*1E3),I<0&&(I=W.info.duration*1E3))),this.policy.Kr&&(P<0&&(P=W.info.startTime*1E3),I<0&&(I=W.info.duration*1E3)));return{formatId:Y,t5:k,startTimeMs:P,clipId:T,nU:I}}; kJ.prototype.v3=function(W){this.timestampOffset=W};PS.prototype.seek=function(W,Y){W!==this.targetTime&&(this.seekCount=0);this.targetTime=W;var k=this.videoTrack.K,P=this.audioTrack.K,T=this.audioTrack.qT,I=lsC(this,this.videoTrack,W,this.videoTrack.qT,Y);Y=lsC(this,this.audioTrack,this.policy.J9?W:I,T,Y);W=Math.max(W,I,Y);this.T=!0;this.H6.isManifestless&&(otC(this,this.videoTrack,k),otC(this,this.audioTrack,P));return W}; PS.prototype.isSeeking=function(){return this.T}; PS.prototype.jG=function(W){this.K=W}; var Ue0=2/24;var xev=0;g.R=i5.prototype;g.R.Jl=function(){this.N=this.now();zlv(this.Sj,this.N);this.wx.Jl()}; g.R.M8=function(W,Y){var k=this.policy.K?(0,g.q5)():0;MX(this,W,Y);W-this.X<10&&this.K>0||this.Pr(W,Y);this.wx.M8(W,Y);this.policy.K&&(W=(0,g.q5)()-k,this.J9+=W,this.e1=Math.max(W,this.e1))}; g.R.Pr=function(W,Y){var k=(W-this.X)/1E3,P=Y-this.J;this.jm||(lg(this.Sj,k,P),this.UM(k,P));this.X=W;this.J=Y}; g.R.zM=function(){this.gD&&fs2(this);this.wx.zM()}; g.R.LC=function(W){this.gD||(this.gD=this.C-this.Gn+W,this.D_=this.C,this.KH=this.G)}; g.R.CY=function(W,Y){W=W===void 0?this.G:W;Y=Y===void 0?this.C:Y;this.K>0||(this.L=W,this.K=Y,this.A5=this.isActive=!0)}; g.R.Hp=function(){return this.Fu||2}; g.R.kI=function(){}; g.R.iW=function(){var W,Y={rn:this.requestNumber,rt:(this.G-this.W).toFixed(),lb:this.C,stall:(1E3*this.T).toFixed(),ht:(this.N-this.W).toFixed(),elt:(this.L-this.W).toFixed(),elb:this.K,d:(W=this.TJ)==null?void 0:W.WK()};this.url&&JM5(Y,this.url);this.policy.K&&(Y.mph=this.e1.toFixed(),Y.tph=this.J9.toFixed());Y.ulb=this.OP;Y.ult=this.Kg;return Y}; g.R.now=function(){return(0,g.q5)()}; g.R.deactivate=function(){this.isActive&&(this.isActive=!1)};g.H(qX,i5);g.R=qX.prototype;g.R.iW=function(){var W=i5.prototype.iW.call(this);W.pb=this.GS;W.pt=(1E3*this.Lg).toFixed();W.se=this.f1;return W}; g.R.Du=function(){var W=this.wx;this.rD||(this.rD=W.Du?W.Du():1);return this.rD}; g.R.D4=function(){return this.Dd?this.Du()!==1:!1}; g.R.FS=function(W,Y,k){if(!this.xm){this.xm=!0;if(!this.jm){MX(this,W,Y);this.Pr(W,Y);var P=this.Du();this.f1=k;if(!this.jm)if(P===2){P=W-this.L0)||Rm(this,P,Y),this.K>0&&LA(this.Sj,Y,this.T));W=(W-this.W)/ 1E3||.01;this.policy.L&&!(this.K>0)||CA(this.Sj,W,this.J,Nod(this),this.YN)}this.deactivate()}}; g.R.iM=function(W,Y,k){k&&(this.rD=2);W<0&&this.Fu&&(W=this.Fu);Y?this.V5+=W:this.GJ+=W}; g.R.Hp=function(){return this.GJ||this.V5||i5.prototype.Hp.call(this)}; g.R.Pr=function(W,Y){var k=(W-this.X)/1E3,P=Y-this.J,T=this.Du();this.isActive?T===1&&((P>0||this.policy.C)&&(k>.2||P<1024)?(this.T+=k,P>0&&k>.2&&Rm(this,this.QD?k:.05,P),this.A9=!0):P>0&&(Rm(this,k,P),this.A9=!0)):Y&&Y>=this.policy.W&&this.CY(W,Y);i5.prototype.Pr.call(this,W,Y)}; g.R.p_=function(W){if(!this.jm){MX(this,W,this.C);var Y=(W-this.W)/1E3;this.Du()!==2&&this.K>0&&(this.T+=(W-this.X)/1E3,LA(this.Sj,this.J,this.T));CA(this.Sj,Y,this.J,Nod(this),this.YN,!0);W=(W-this.X)/1E3;lg(this.Sj,W,0);this.UM(W,0)}}; g.R.CY=function(W,Y){W=W===void 0?this.G:W;Y=Y===void 0?this.C:Y;if(!(this.K>0)&&(i5.prototype.CY.call(this,W,Y),this.Du()===1)){Y=(this.N-this.W)/1E3;var k=(W-this.N)/1E3;this.Dd&&HS(this,this.now());this.K1||this.jm||(this.Fu&&(k=Math.max(0,k-this.Fu)),W=this.Sj,W.L.NL(1,Y),W.TJ.NL(1,k))}}; g.R.gA=function(){this.Dd&&HS(this,this.now());return this.Fr}; g.R.NR=function(){var W;if(W=this.J>this.Ox)W=(W=this.J)?W>=this.policy.W:!1;return W}; g.R.ZW=function(){return this.Q5}; g.R.hA=function(W){W=W===void 0?this.now():W;if(this.Dd){HS(this,W);if(this.rD?this.D4():this.wD!==this.UP){var Y=this.UP;if(W0?k+W:k+Math.max(W,Y)}; g.R.UL=function(){return this.now()-this.L}; g.R.Iv=function(){return(this.J-this.K)*1E3/this.UL()||0}; g.R.YC=function(){return this.L};nD.prototype.feed=function(W){kS(this.W,W);this.u7()}; nD.prototype.u7=function(){if(this.T){if(!this.W.totalLength)return;var W=this.W.split(this.J-this.K),Y=W.Mu;W=W.LL;if(!this.wx.LC(this.T,Y,this.K,this.J))return;this.K+=Y.totalLength;this.W=W;this.K===this.J&&(this.T=this.J=this.K=void 0)}for(;;){var k=0;W=g.p($iF(this.W,k));Y=W.next().value;k=W.next().value;k=g.p($iF(this.W,k));W=k.next().value;k=k.next().value;if(Y<0||W<0)break;if(!(k+W<=this.W.totalLength)){if(!(this.wx.LC&&k+1<=this.W.totalLength))break;k=this.W.split(k).LL;this.wx.LC(Y,k,0, W)&&(this.T=Y,this.K=k.totalLength,this.J=W,this.W=new $S([]));break}W=this.W.split(k).LL.split(W);k=W.LL;this.wx.KS(Y,W.Mu);this.W=k}}; nD.prototype.dispose=function(){this.W=new $S};g.R=pD.prototype;g.R.ov=function(){return 0}; g.R.GG=function(){return null}; g.R.yB=function(){return null}; g.R.Q9=function(){return this.state>=1}; g.R.isComplete=function(){return this.state>=3}; g.R.x4=function(){return this.state===5}; g.R.onStateChange=function(){}; g.R.ZY=function(W){var Y=this.state;this.state=W;this.onStateChange(Y);this.callback&&this.callback(this,Y)}; g.R.eY=function(W){W&&this.state=this.xhr.HEADERS_RECEIVED}; g.R.getResponseHeader=function(W){try{return this.xhr.getResponseHeader(W)}catch(Y){return""}}; g.R.Oa=function(){return+this.getResponseHeader("content-length")}; g.R.O0=function(){return this.K}; g.R.E7=function(){return this.status>=200&&this.status<300&&!!this.K}; g.R.Il=function(){return this.W.totalLength>0}; g.R.wp=function(){var W=this.W;this.W=new $S;return W}; g.R.Ny=function(){return this.W}; g.R.abort=function(){this.Xr=!0;this.xhr.abort()}; g.R.ZU=function(){return!0}; g.R.iP=function(){return this.J}; g.R.JD=function(){return""};g.R=jQ1.prototype;g.R.getResponseHeader=function(W){return W==="content-type"?this.W.get("type"):""}; g.R.abort=function(){}; g.R.Hw=function(){return!0}; g.R.Oa=function(){return this.range.length}; g.R.O0=function(){return this.loaded}; g.R.E7=function(){return!!this.loaded}; g.R.Il=function(){return!!this.K.totalLength}; g.R.wp=function(){var W=this.K;this.K=new $S;return W}; g.R.Ny=function(){return this.K}; g.R.ZU=function(){return!0}; g.R.iP=function(){return!!this.error}; g.R.JD=function(){return this.error};g.R=XRV.prototype;g.R.start=function(W){var Y={credentials:"include",cache:"no-store"};Object.assign(Y,this.G);this.T&&(Y.signal=this.T.signal);W=new Request(W,Y);fetch(W).then(this.N,this.onError).then(void 0,ak)}; g.R.onDone=function(){this.Xr()||this.wx.zM()}; g.R.getResponseHeader=function(W){return this.responseHeaders?this.responseHeaders.get(W):null}; g.R.Hw=function(){return!!this.responseHeaders}; g.R.O0=function(){return this.K}; g.R.Oa=function(){return+this.getResponseHeader("content-length")}; g.R.E7=function(){return this.status>=200&&this.status<300&&!!this.K}; g.R.Il=function(){return!!this.W.totalLength}; g.R.wp=function(){var W=this.W;this.W=new $S;return W}; g.R.Ny=function(){return this.W}; g.R.Xr=function(){return this.C}; g.R.abort=function(){this.J&&this.J.cancel().catch(function(){}); this.T&&this.T.abort();this.C=!0}; g.R.ZU=function(){return!0}; g.R.iP=function(){return this.X}; g.R.JD=function(){return this.errorMessage};g.R=Syv.prototype;g.R.onDone=function(){if(!this.Xr){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(W){}this.W=!0;this.wx.zM()}}; g.R.WX=function(){this.xhr.readyState===2&&this.wx.Jl()}; g.R.onProgress=function(W){this.Xr||(this.status=this.xhr.status,this.W||(this.K=W.loaded),this.wx.M8((0,g.q5)(),W.loaded))}; g.R.Hw=function(){return this.xhr.readyState>=2}; g.R.getResponseHeader=function(W){try{return this.xhr.getResponseHeader(W)}catch(Y){return g.Kx(Error("Could not read XHR header "+W)),""}}; g.R.Oa=function(){return+this.getResponseHeader("content-length")}; g.R.O0=function(){return this.K}; g.R.E7=function(){return this.status>=200&&this.status<300&&this.W&&!!this.K}; g.R.Il=function(){return this.W&&!!this.response&&!!this.response.byteLength}; g.R.wp=function(){var W=this.response;this.response=void 0;return new $S([new Uint8Array(W)])}; g.R.Ny=function(){return new $S([new Uint8Array(this.response)])}; g.R.abort=function(){this.Xr=!0;this.xhr.abort()}; g.R.ZU=function(){return!1}; g.R.iP=function(){return!1}; g.R.JD=function(){return""};g.H(Ez,g.e);Ez.prototype.E3=function(){if(!this.bD.length)return[];var W=this.bD;this.bD=[];this.J=g.iQ(W).info;return W}; Ez.prototype.n3=function(){return this.bD}; Ez.prototype.iz=function(){g.e.prototype.iz.call(this);this.W=null;this.bD.length=0;this.EP.length=0;this.J=null};g.H(sz,g.e);g.R=sz.prototype; g.R.Beh=function(){if(!this.Xr()){var W=(0,g.q5)(),Y=!1;if(this.policy.CL){var k=this.timing.K>0?this.timing.L:this.timing.W;this.policy.v_&&this.J&&(k=this.J);W=W-k-this.timing.Hp()*1E3;k=oQ(rX(this),!1);W>=2E3*k?Y=!0:W>=this.policy.cF*k&&(this.W=this.policy.KL)}else if(this.timing.K>0){if(this.X){this.policy.xq&&(this.W=0);return}var P=this.timing.ZW();this.timing.hA();var T=this.timing.ZW();T-P>=this.policy.k8*.8?(this.W++,this.logger.debug(function(){return"Mispredicted by "+(T-P).toFixed(0)}), Y=this.W>=5):this.W=0}else{var I=W-this.timing.gA(); this.policy.KL&&I>0&&(this.W+=1);Y=oQ(rX(this),!1)*this.policy.pB;(Y=I>Y*1E3)&&this.logger.debug(function(){return"Elbow late by "+I.toFixed(3)})}this.W>0&&this.wx.W8(); Y?this.B9():this.K.start()}}; g.R.B9=function(){this.C=!0;this.wx.hp();this.lastError="net.timeout";zg(this)}; g.R.canRetry=function(W){var Y=rX(this);W=W?this.policy.Gb:this.policy.kp;return Y.timedOut0&&(Y=SB(Y.W,0),W.ubyte=Y,k===1&&Y===0&&(W.b248180278=!0))}this.Zg&&(W.rc=this.policy.Ao?this.Zg:this.Zg.toString());this.policy.LH&&this.vC&&(W.tr=this.vC);W.itag=this.info.EP[0].W.info.itag;W.ml=""+ +this.info.EP[0].W.sE();W.sq=""+this.info.EP[0].t5;this.SL&&(W.ifi=""+ +fm(this.info.ob.K));this.Zg!==410&&this.Zg!==500&&this.Zg!==503||(W.fmt_unav="true");var P;(k=this.errorMessage||((P=this.xhr)==null?void 0: P.JD()))&&(W.msg=k);this.qP&&(W.smb="1");this.info.isDecorated()&&(W.sdai="1");return W}; g.R.eR=function(){return asd(this.timing)}; g.R.JD=function(){return this.xhr.JD()||""}; g.R.NR=function(){return this.isComplete()||this.timing.NR()}; g.R.M8=function(){!this.Xr()&&this.xhr&&(this.Zg=this.xhr.status,this.policy.Jh&&this.ue&&this.HH(!1),this.dX()?this.eY(2):!this.Nl&&this.NR()&&(this.eY(),this.Nl=!0))}; g.R.Jl=function(){if(!this.Xr()&&this.xhr){if(!this.CK&&this.xhr.Hw()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var W=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.CK=((0,g.q5)()-W)/1E3}this.xhr.Hw()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.mL&&!awV()&&g.Ke("yt-player-headers-readable",!0,2592E3);W=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var Y=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),k;(k=this.MH)==null||k.stop();this.L8=W||this.L8; this.GC=Y||this.GC}}; g.R.zM=function(){var W=this.xhr;if(!this.Xr()&&W){this.Zg=W.status;W=this.v8(W);if(this.policy.LH){var Y;(Y=this.MH)==null||Y.stop()}W===5?zg(this.Yq):this.ZY(W);this.Yq.K.stop()}}; g.R.v8=function(W){var Y=this;CU5(this);if(dX(this.Yq,this.xhr.status,this.Ww?this.timing.A5||this.oV:this.xhr.E7(),!1,this.cA))return 5;var k="";ml(this.Yq,this.xhr)&&(k=ibz(this.Yq,this.xhr));if(k)return e$(rX(this.Yq)),this.info.Gw(this.SL,k),3;k=W.O0();if(this.MB){this.HH(!0);CU5(this);if(dX(this.Yq,this.xhr.status,this.timing.A5||this.oV,!1,this.cA))return 5;if(!this.OQ){if(this.oV)return e$(rX(this.Yq)),3;this.Yq.lastError="net.closed";return 5}}else{if(dX(this.Yq,this.xhr.status,this.xhr.E7(), !1,this.cA))return 5;var P=this.info.J;if(P&&P!==k||W.iP())return this.Yq.lastError="net.closed",5;this.HH(!0)}P=kD6(this)?W.getResponseHeader("X-Bandwidth-Est"):0;if(W=kD6(this)?W.getResponseHeader("X-Bandwidth-Est3"):0)this.wL=!0,this.policy.B_&&(P=W);ucd(this.Yq,k,P?Number(P):0,this.info.EP[0].type===5);this.logger.debug(function(){var T=Y.timing;return"Succeeded, rtpd="+(T.Lg*1E3+T.W-Date.now()).toFixed(0)}); return 4}; g.R.canRetry=function(){this.Xr();var W=this.info.isDecorated();return this.Yq.canRetry(W)}; g.R.onStateChange=function(){this.isComplete()&&(this.policy.I5?this.hp():this.timing.deactivate())}; g.R.B9=function(){this.Yq.B9()}; g.R.W8=function(){this.callback&&this.callback(this,this.state)}; g.R.td=function(){return this.Yq.td()}; g.R.dispose=function(){pD.prototype.dispose.call(this);this.Yq.dispose();var W;(W=this.MH)==null||W.dispose();this.policy.I5||this.hp()}; g.R.hp=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.R.E3=function(){if(!this.n3().length)return[];this.P8=!0;return this.ue.E3()}; g.R.dX=function(){if(this.state<1)return!1;if(this.ue&&this.ue.bD.length)return!0;var W;return((W=this.xhr)==null?0:W.Il())?!0:!1}; g.R.n3=function(){this.HH(!1);return this.ue?this.ue.n3():[]}; g.R.HH=function(W){try{if(W||this.xhr.Hw()&&this.xhr.Il()&&!ml(this.Yq,this.xhr)&&!this.iG)this.ue||(this.ue=new Ez(this.policy,this.info.EP)),this.xhr.Il()&&(this.MB?this.MB.feed(this.xhr.wp()):Jo(this.ue,this.xhr.wp(),W&&!this.xhr.Il()))}catch(Y){this.MB?eh6(this,Y):g.Kx(Y)}}; g.R.KS=function(W,Y){switch(W){case 21:W=Y.split(1).LL;obF(this,W);break;case 22:this.OQ=!0;Jo(this.ue,new $S([]),!0);break;case 43:if(W=GJ(new t2(Y),1))this.info.Gw(this.SL,W),this.oV=!0;break;case 45:Y=Df(new t2(Y));W=Y.mu;Y=Y.Cv;W&&Y&&(this.CF=W/Y);break;case 44:this.Fa=sbv(new t2(Y));var k,P,T;!this.timing.A5&&((k=this.Fa)==null?void 0:k.action)===4&&((P=this.Fa)==null?0:(T=P.z1)==null?0:T.Ww)&&(this.Ww=this.Fa.z1.Ww);break;case 53:this.policy.LH&&(W=Ks1(new t2(Y)).TX)&&(this.MH||(this.TX=W,this.MH= new g.C_(this.Wj,W,this)),this.MH.start());break;case 60:this.jY=mn(new t2(Y));break;case 58:if(W=YIX(new t2(Y)))this.Zh=W,W.Zh===3&&(this.cA=!0)}}; g.R.LC=function(W,Y,k,P){k||this.timing.LC(P);if(W!==21)return!1;if(W=this.policy.Jh)if(W*=this.info.EP[0].W.info.c6,Y.totalLength+k!==P&&Y.totalLength0)return!1;if(!this.xhr.Hw())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.MB)var W=!this.info.J;else this.xhr.Oa()?W=!1:(W=this.xhr.getResponseHeader("content-type"),W=W==="audio/mp4"||W==="video/mp4"||W==="video/webm");if(!W)return!1;if(isNaN(this.info.Cs)){W=this.xhr.getResponseHeader("x-head-seqnum");var Y=this.timing.policy.G?1:0;if(!W)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(W)>this.info.EP[0].t5+Y)return!1}return!0}; g.R.DF=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.R.GG=function(){this.xhr&&(this.L8=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.L8}; g.R.yB=function(){this.xhr&&(this.GC=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.GC}; g.R.NI=function(){return this.Yq.NI()}; g.R.Wj=function(){if(!this.Xr()&&this.xhr){this.vC="heartbeat";var W=this.Yq;W.W+=2;this.W8()}};g.H(vS,i5);g.R=vS.prototype;g.R.Pr=function(W,Y){var k=(W-this.X)/1E3,P=Y-this.J;this.K>0?P>0&&(this.wD&&(k>.2||P<1024?(this.T+=k,k>.2&&LoV(this,.05,P)):LoV(this,k,P)),this.UP&&(this.Fr+=P,this.GJ+=k)):Y>this.policy.W&&this.CY(W,Y);i5.prototype.Pr.call(this,W,Y)}; g.R.FS=function(W,Y){MX(this,W,Y);this.Pr(W,Y);this.wD&&(Y=this.J*this.snapshot.stall+this.J/this.snapshot.byterate,this.K>0&&LA(this.Sj,this.Fr,this.T),W=(W-this.W)/1E3||.01,this.policy.L&&!(this.K>0)||CA(this.Sj,W,this.J,Y,!1))}; g.R.p_=function(W){MX(this,W,this.C);var Y=(W-this.X)/1E3;lg(this.Sj,Y,0);this.UM(Y,0);!this.wD&&this.K>0||(Y=this.J*this.snapshot.stall+this.J/this.snapshot.byterate,this.K>0&&(this.T+=(W-this.X)/1E3,LA(this.Sj,this.Fr,this.T)),CA(this.Sj,(W-this.W)/1E3||.01,this.J,Y,!1,!0))}; g.R.C3=function(W){W=W.Q8||2147483647;(W&2)!==2&&(this.UP=!1);(W&1)===1&&(this.wD=!0)}; g.R.AX=function(W){W=W.Q8||2147483647;(W&2)===2&&(this.UP=!1);(W&1)===1&&(this.wD=!1)}; g.R.YC=function(){return this.L}; g.R.UL=function(){var W=this.UP?this.now()-this.X:0;return Math.max(this.GJ*1E3+W,1)}; g.R.Iv=function(){return this.Fr*1E3/this.UL()}; g.R.CY=function(W,Y){W=W===void 0?this.G:W;Y=Y===void 0?this.C:Y;this.K>0||(i5.prototype.CY.call(this,W,Y),Y=this.Sj,W=(W-this.N)/1E3,Y.L.NL(1,(this.N-this.W)/1E3),Y.TJ.NL(1,W))}; g.R.kI=function(W){this.V5=W}; g.R.iW=function(){var W=i5.prototype.iW.call(this);W.rbw=this.Iv();W.rbe=+this.UP;W.gbe=+this.wD;W.ackt=(this.V5-this.W).toFixed();return W}; g.R.hA=function(){}; g.R.ZW=function(){return NaN}; g.R.gA=function(){return this.W+this.snapshot.delay*1E3};CD.prototype.KS=function(W,Y){switch(W){case 20:W=new t2(Y);W={hE:Hg(W,1),videoId:GJ(W,2),itag:Hg(W,3),lmt:Hg(W,4),xtags:GJ(W,5),HX:Hg(W,6),Ry:n7(W,8),e5:Hg(W,9),QCq:Hg(W,10),startMs:Hg(W,11),durationMs:Hg(W,12),o5:Hg(W,14),timeRange:K7(W,15,QaF),lY:Hg(W,16),Tt:Hg(W,17),clipId:GJ(W,1E3)};this.yI(W);break;case 21:this.WW(Y,!1);break;case 22:this.gf(Y);break;case 31:W=sc(Y,Ma2);this.KY(W);break;case 52:W=sc(Y,EmF);this.A6(W);break;default:this.Be(W,Y)}}; CD.prototype.yI=function(){}; CD.prototype.Be=function(){};g.H(LD,CD);g.R=LD.prototype; g.R.Be=function(W,Y){switch(W){case 35:this.u3(Y);break;case 44:this.PO(Y);break;case 43:this.Cw(Y);break;case 53:this.TD(Y);break;case 56:this.vO();break;case 57:this.Zx(Y);break;case 42:this.N$(Y);break;case 45:this.Yp(Y);break;case 59:this.iB(Y);break;case 51:this.T4(Y);break;case 49:this.C3(Y);break;case 50:this.AX(Y);break;case 47:this.wJ(Y);break;case 58:this.P9(Y);break;case 61:this.wx.Wz.kI((0,g.q5)());break;case 66:this.hd(Y);break;case 46:this.ym(Y);break;case 67:this.onSnackbarMessage(Y);break; case 69:this.lW(Y)}}; g.R.T4=function(W){W=new t2(W);W={qdi:J2(W,1,rw),Hy1:J2(W,2,rw)};this.wx.T4(W)}; g.R.iB=function(W){var Y=new t2(W);W=Ec(Y,1);var k=Ec(Y,2);Y=Ec(Y,3);this.wx.iB(W,k,Y)}; g.R.Yp=function(W){W=Df(new t2(W));this.wx.Yp(W)}; g.R.wJ=function(W){W=sc(W,Rkd);this.wx.wJ(W)}; g.R.N$=function(W){W=new t2(W);W={videoId:GJ(W,1),formatId:K7(W,2,rw),endTimeMs:Hg(W,3),hQz:Hg(W,4),mimeType:GJ(W,5),vv:K7(W,6,hk5),indexRange:K7(W,7,hk5),yA:K7(W,8,Bqv)};this.wx.N$(W)}; g.R.Zx=function(W){W=new t2(W);W={type:Hg(W,1),scope:Hg(W,2),value:p7(W,3),sendByDefault:n7(W,4),writePolicy:Hg(W,5)};this.wx.Zx(W)}; g.R.vO=function(){this.wx.vO()}; g.R.u3=function(W){W=tad(new t2(W));this.wx.u3(W)}; g.R.TD=function(W){W=Ks1(new t2(W));this.wx.TD(W)}; g.R.PO=function(W){W=sbv(new t2(W));this.wx.PO(W)}; g.R.Cw=function(W){W={redirectUrl:GJ(new t2(W),1)};this.wx.Cw(W)}; g.R.WW=function(W){var Y=SB(W,0);if(W.totalLength!==1){W=W.split(1).LL;var k=this.K[Y]||null;k&&Vt(this.wx.zj,Y,k,W)}}; g.R.gf=function(W){W=SB(W,0);var Y=this.K[W]||null;Y&&this.wx.gf(W,Y)}; g.R.A6=function(W){this.wx.A6(W)}; g.R.yI=function(W){var Y=W.hE,k=W.Ry,P=W.HX,T=W.Tt,I=W.lY,X=W.e5,h=W.startMs,B=W.durationMs,O=W.timeRange,u=W.o5,Z=W.clipId,M=cR(W);W=X71.has(ev[""+W.itag]);this.K[Y]=M;this.wx.iM(M,W,{hE:Y,Ry:!!k,HX:P!=null?P:-1,e5:X!=null?X:-1,startMs:h!=null?h:-1,durationMs:B!=null?B:-1,o5:u,Tt:T,lY:I,clipId:Z,timeRange:O})}; g.R.C3=function(W){W={Q8:Hg(new t2(W),1)};this.wx.C3(W)}; g.R.AX=function(W){W={Q8:Hg(new t2(W),1)};this.wx.AX(W)}; g.R.KY=function(W){this.wx.KY(W)}; g.R.P9=function(W){W=YIX(new t2(W));this.wx.P9(W)}; g.R.hd=function(W){W={i6:K7(new t2(W),1,pP0)};this.wx.hd(W)}; g.R.onSnackbarMessage=function(W){W=Hg(new t2(W),1);this.wx.onSnackbarMessage(W)}; g.R.lW=function(W){W={pk:J2(new t2(W),1,SId)};this.wx.lW(W)}; g.R.ym=function(W){W=new t2(W);W={reloadPlaybackParams:K7(W,1,WsV),d4:n7(W,2)};this.wx.ym(W)};g.H(Uz,g.e);g.R=Uz.prototype;g.R.Jg=function(){return Array.from(this.jj.keys())}; g.R.YB=function(W){W=this.jj.get(W);var Y=W.bD;W.P$+=Y.totalLength;W.bD=new $S;return Y}; g.R.Lu=function(W){return this.jj.get(W).Lu}; g.R.k5=function(W){return this.jj.get(W).k5}; g.R.iM=function(W,Y,k){this.jj.get(W)||xiS(this,W,Y);Y=this.jj.get(W);this.H6?(W=V$0(this,W,k),fN5(this,k.hE,Y,W)):(k.Ry?Y.KE=k.o5:Y.BE.push(k),Y.u9.push(k))}; g.R.rU=function(W){var Y;return((Y=this.jj.get(W))==null?void 0:Y.EP)||[]}; g.R.eY=function(){for(var W=g.p(this.jj.values()),Y=W.next();!Y.done;Y=W.next())if(Y=Y.value,Y.VI){if(Y.onProgress)Y.onProgress();Y.VI=!1}}; g.R.gf=function(W,Y){this.logger.debug(function(){return"[onMediaEnd] formatId: "+Y}); var k=this.jj.get(Y);l5?k&&!k.Lu&&(k.j5.get(W)?k.j5.get(W).rq=!0:k.j5.set(W,{data:new $S,Sz:0,rq:!0}),k.k5=!0):k&&!k.k5&&(k.k5=!0)}; g.R.E3=function(W){if(l5){var Y=this.jj.get(W);if(Y)for(var k=g.p(Y.j5),P=k.next();!P.done;P=k.next()){var T=g.p(P.value);P=T.next().value;T=T.next().value;var I=Y.s9.get(P);if(Y7(I[0])){if(!T.rq)continue;var X=T.data,h=0,B=[];I=g.p(I);for(var O=I.next();!O.done;O=I.next()){O=O.value;var u=O.J,Z=Pg(X,h,u);h+=u;B.push(new pr(O,Z))}Y.g7.push.apply(Y.g7,g.ZX(B))}else if(T.data.totalLength>0||!I[0].range&&T.rq)X=void 0,h=I[0],B=T.Sz,I=T.data,h.range||(X=T.rq),X=new pr(KnC(h,h.K+B,I.totalLength,X),I), T.Sz+=X.info.J,Y.g7.push(X);Y.j5.get(P).data=new $S;T.rq&&Y.j5.delete(P)}W=this.jj.get(W);if(!W)return[];Y=W.g7;W.g7=[];k=g.p(Y);for(P=k.next();!P.done;P=k.next())W.P$+=P.value.info.J;return Y||[]}k=(Y=this.jj.get(W))==null?void 0:Y.ue;if(!k)return[];this.HH(W,k);return k.E3()}; g.R.dX=function(W){if(l5)return fD(this,W);var Y,k,P;return!!((k=(Y=this.jj.get(W))==null?void 0:Y.ue)==null?0:(P=k.n3())==null?0:P.length)||fD(this,W)}; g.R.HH=function(W,Y){for(;fD(this,W);){var k=this.YB(W);var P=W;P=this.jj.get(P).Lu&&!xJ(this,P);Jo(Y,k,P&&cH0(this,W))}}; g.R.iz=function(){g.e.prototype.iz.call(this);for(var W=g.p(this.jj.keys()),Y=W.next();!Y.done;Y=W.next())b5(this,Y.value);var k;if((k=this.l7)==null?0:k.ww)for(W=g.p(this.jj.values()),Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.j5.clear(),Y.s9.clear(),Y.g7.length=0,Y.EP.length=0,Y.u9.length=0,Y.BE.length=0;this.jj.clear()}; var l5=!1;g.H(NX,g.e);g.R=NX.prototype;g.R.M8=function(){!this.Xr()&&this.xhr&&(this.HH(!1),N0(this.wx,this))}; g.R.Jl=function(){}; g.R.zM=function(){if(!this.Xr()&&this.xhr){var W=this.v8();W===5?zg(this.Yq):this.ZY(W);this.Yq.K.stop();var Y;(Y=this.lB)==null||Y.stop()}}; g.R.v8=function(){var W="";ml(this.Yq,this.xhr)&&(W=ibz(this.Yq,this.xhr));if(W)return this.info.ob.Gw(this.SL,W),3;this.HH(!0);if(dX(this.Yq,this.xhr.status,this.xhr.E7(),this.info.Zw(),this.cA))return 5;if(this.Wt)return 3;ucd(this.Yq,this.xhr.O0(),0,this.Zw());this.policy.DY&&C0F(this.wx);return 4}; g.R.HH=function(W){var Y=this.xhr;if((W||!ml(this.Yq,this.xhr))&&Y.Il()){W=Y.wp();var k=W.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+k}); this.MB.feed(W)}}; g.R.KS=function(W,Y){this.xhr.ZU()&&W===21&&$N0(this);this.y4.KS(W,Y)}; g.R.LC=function(W,Y,k,P){k||(this.Wz.LC(P),this.policy.CX&&W===21&&$N0(this));if(W!==21)return!1;this.Wz.A5=!0;W=Y.totalLength;k||(this.qC=SB(Y,0),Y=Y.split(1).LL);var T=this.policy.U8,I=this.y4.K[this.qC],X=this.H6.J.get(I);if(T&&X&&(T*=X.info.c6,W+k!==P&&W0){this.policy.CL&&this.Yq.K.stop();W=this.Wz.UL();Y=this.Wz.Iv();var k=k86(this,W);if(!(Y>k.MF||k.Ul>0&&this.info.un()>k.Ul)){this.zI=(0,g.q5)();var P;(P=this.lB)==null||P.stop();this.policy.DY&&(P=this.wx,W={Vw:Math.round(Y*W/1E3),Co:W},P.policy.DY&&(P.TJ=W,P.qo++));this.B9()}}}}; g.R.B9=function(){this.Yq.B9()}; g.R.PO=function(W){this.wx.PO(W,this.H4())}; g.R.Cw=function(W){this.Wt=!0;this.info.ob.Gw(this.SL,W.redirectUrl)}; g.R.C3=function(W){this.Wz instanceof vS&&this.Wz.C3(W)}; g.R.AX=function(W){this.Wz instanceof vS&&this.Wz.AX(W)}; g.R.N$=function(W){var Y=W.formatId,k=cR({itag:Y.itag,lmt:Y.lmt,xtags:Y.xtags}),P,T,I=new fb(((P=W.vv)==null?void 0:P.first)||0,((T=W.vv)==null?void 0:T.nE)||0),X,h;P=new fb(((X=W.indexRange)==null?void 0:X.first)||0,((h=W.indexRange)==null?void 0:h.nE)||0);this.H6.J.get(k)||(k=W.yA||{},k.mimeType=W.mimeType,k.itag=Y.itag,k.lastModified=""+(Y.lmt||0),k.xtags=Y.xtags,W=this.H6,Y=Cr(""),k=oO(k,null),gz(W,new dz(Y,k,I,P)))}; g.R.Yp=function(W){this.wx.Yp(W,this.H4())}; g.R.onSnackbarMessage=function(W){if(this.policy.S8)this.wx.onSnackbarMessage(W)}; g.R.lW=function(W){this.policy.UP&&this.wx.lW(W,this.H4())}; g.R.KY=function(W){this.GP=W;this.Yq.J=(0,g.q5)();this.wx.KY(W)}; g.R.iB=function(W,Y,k){this.wx.iB(W,Y,k)}; g.R.Zx=function(W){W.scope===2&&(this.SG=W);this.wx.Zx(W)}; g.R.vO=function(){this.Cb=!0;this.wx.vO()}; g.R.T4=function(W){this.policy.b3&&this.wx.T4(W)}; g.R.wJ=function(W){this.wx.wJ(W,this.H4())}; g.R.P9=function(W){W.Zh===3&&(this.cA=!0);this.wx.P9(W)}; g.R.hd=function(W){this.wx.hd(W)}; g.R.ym=function(W){this.wx.ym(W)}; g.R.canRetry=function(){this.Xr();return this.Yq.canRetry(!1)}; g.R.dispose=function(){if(!this.Xr()){g.e.prototype.dispose.call(this);this.Yq.dispose();var W;(W=this.lB)==null||W.dispose();this.ZY(-1);this.hp()}}; g.R.ZY=function(W){this.state=W;N0(this.wx,this)}; g.R.Zw=function(){return this.info.Zw()}; g.R.Ra=function(){return this.Cb}; g.R.fm=function(){return this.SG}; g.R.iM=function(W,Y,k){k.clipId&&(this.clipId=k.clipId);this.policy.K&&!Y&&(this.bv=k.e5);if(this.policy.ir&&this.info.isDecorated()){var P=this.info,T,I;var X=((T=P.data)==null?0:(I=T.h7)==null?0:I.VN)?P.data.h7.VN:-1;X>=0&&X>k.e5&&this.wx.loader.y5("sdai",{skpsqmismatch:"1",stsq:X,rcvsq:k.e5,a:Y})}this.zj.iM(W,Y,k);this.policy.S6&&this.GP&&this.Wz instanceof qX&&(X=this.GP.M5,this.Wz.iM(k.durationMs/1E3,Y,X>0&&k.e5+1>=X));this.zj.jj.get(W).Uc=!0}; g.R.gf=function(W,Y){this.zj.gf(W,Y)}; g.R.A6=function(W){this.requestIdentifier=W}; g.R.E3=function(W){return this.zj.E3(W)}; g.R.rU=function(W){return this.zj.rU(W)}; g.R.dX=function(W){return this.zj.dX(W)}; g.R.Jg=function(){return this.zj.Jg()}; g.R.Du=function(){return 1}; g.R.H4=function(){return this.Wz.requestNumber}; g.R.jp=function(){return this.requestIdentifier}; g.R.OV=function(){return this.SL.OV()}; g.R.tK=function(){this.hp()}; g.R.hp=function(){this.Wz.deactivate();var W;(W=this.xhr)==null||W.abort()}; g.R.isComplete=function(){return this.state>=3}; g.R.uj=function(){return this.state===3}; g.R.x4=function(){return this.state===5}; g.R.UH=function(){return this.state===4}; g.R.Eh=function(){return this.isComplete()}; g.R.Q9=function(){return this.state>=1}; g.R.td=function(){return this.policy.xq?this.Yq.td():0}; g.R.W8=function(){this.policy.xq&&N0(this.wx,this)}; g.R.Uh=function(){return DDd(this.info)}; g.R.NI=function(){return this.Yq.NI()}; g.R.B3=function(){var W=M$d(this.Yq);Object.assign(W,Fi0(this.info));W.req="sabr";W.rn=this.H4();var Y;if((Y=this.xhr)==null?0:Y.status)W.rc=this.policy.Ao?this.xhr.status:this.xhr.status.toString();var k;(Y=(k=this.xhr)==null?void 0:k.JD())&&(W.msg=Y);this.zI&&(k=k86(this,this.zI-this.Wz.YC()),W.letm=k.hF,W.mrbps=k.MF,W.mram=k.Ul);return W};PaF.prototype.tick=function(W,Y){this.ticks[W]=Y?window.performance.timing.navigationStart+Y:(0,g.q5)()};g.H(WG,g.NR);g.R=WG.prototype; g.R.Xf=function(W,Y,k,P){if(this.policy.Xo&&this.policy.K){var T=W.w5||null;T?(RLC(this,W.t5,Ti(this,W.startTime,W.t5),{w5:T,t5:W.t5,qH:!!Y,qa:k},this.J),P&&this.J&&this.J.yN(W.t5,W.startTime,this.K,(Y==null?void 0:Y.W)||[],(Y==null?void 0:Y.K)||[],(Y==null?void 0:Y.T)||[],k,(Y==null?void 0:Y.MY)||0,(Y==null?void 0:Y.J)||void 0)):this.K===1&&$R(this,5,"noad")}else{var I=!1;this.policy.K&&(I=k?this.gD===W.t5:this.wD===W.t5);if(this.J&&P&&!I){P=[];I=[];var X=[],h=void 0,B=0;Y&&(P=Y.W,I=Y.K,X=Y.T,h= Y.J,B=Y.MY,this.y5("sdai",{sq:W.t5,ssvicpns:P.join("."),ssvid:I.join(".")}));this.policy.K&&(k?this.gD=W.t5:this.wD=W.t5);this.J.yN(W.t5,W.startTime,this.K,P,I,X,k,B,h)}this.policy.K?k&&(this.K===1&&$R(this,5,"noad"),W.t5!==((T=this.W)==null?void 0:T.t5)&&(MqS(this,W,Y,k),isNaN(W.startTime)||tqC(this,W.t5,Ti(this,W.startTime,W.t5),!!Y,this.J))):k&&MqS(this,W,Y)}}; g.R.Kw=function(W,Y,k){var P=this.videoTrack.W.index.QU()<=Y;this.W={w5:W,t5:Y,qH:k};P&&YR(this,W,Y)}; g.R.Fc=function(){this.J&&this.J.Fc()}; g.R.y5=function(W,Y,k){(W!=="sdai"||this.policy.qV||(k===void 0?0:k))&&this.loader.y5(W,Y)}; g.R.E0=function(W,Y){var k=this.videoTrack.W.index.o7(W);if(k>=0){var P;var T=((P=Y.Ha.LK(k,2))==null?void 0:P.ih)||"";if(this.policy.K||T)return Y.U$(W,k),kR(this.loader,W,W,k),this.y5("sdai",{cmskpad:1,t:W.toFixed(3),sq:k}),!0}this.y5("sdai",{cmskpad:0,t:W.toFixed(3),sq:k});return!1};g.R=G87.prototype;g.R.uZ=function(W,Y,k){W=W||this.W;this.K.has(W)||(this.y5("sldai",{setadconfig:"noentry",cid:W}),this.K.set(W,{event:"unknown",startTimeSecs:0,sV:0,mp:[],G7:Date.now(),Xt:-1,p7:6}));var P=this.K.get(W);P?Y?(P.p7=6,P.mp.push(k),P.c_=Y):P.p7=2:this.y5("sldai",{setadconfig:"notfound",cid:W})}; g.R.lW=function(W,Y,k){var P;if(!((((P=W.pk)==null?void 0:P.length)||0)<=0)&&(W=W.pk[0],W.w5)){var T;P=-(((T=W.w5)==null?void 0:T.Ui)||0);W.timeRange&&(P+=(W.timeRange.startTicks||0)/(W.timeRange.timescale||1));var I,X,h,B,O;T=new S$(P,((I=W.w5)==null?void 0:I.LWa)||0,((X=W.w5)==null?void 0:X.pU)||"",((h=W.w5)==null?void 0:h.identifier)||"",sOS(((B=W.w5)==null?void 0:B.event)||0),(((O=W.w5)==null?void 0:O.Ui)||0)*1E3);Kzd(this,T,Y,W.e5||0,k)}}; g.R.U$=function(W,Y){this.a9(W);var k=this.K.get(this.W);k?(this.y5("ssskipad",{cid:this.W,sn:Y,mt:W.toFixed(3)}),k.eG=Y):this.y5("ssskipadfail",{cid:this.W,sn:Y,mt:W.toFixed(3)})}; g.R.zV=function(){for(var W=g.p(this.K.values()),Y=W.next();!Y.done;Y=W.next())Y.value.eG=NaN}; g.R.a9=function(W,Y){Y&&(this.T=Y);if(this.W&&(Y=this.K.get(this.W))&&Y.startTimeSecs<=W&&W<=Y.startTimeSecs+Y.sV)return;this.W=E7d(this,W)};g.H(SI,g.e);SI.prototype.oA=function(W,Y,k){k=k===void 0?{}:k;this.policy.nh=$O(W,k,this.T,Y===void 0?!1:Y)};ZC.prototype.tP=function(W){var Y=this;if(this.policy.ix){var k=new Set(W);k.size===this.TJ.size&&[].concat(g.ZX(k)).every(function(P){return Y.TJ.has(P)})||(this.loader.y5("lwnmow",{itagDenylist:[].concat(g.ZX(W)).join(",")}),this.loader.zb(!!k.size),this.N=-1,this.TJ=k,iX(this,this.W),this.Fr=!0)}}; ZC.prototype.oA=function(W,Y,k){k=k===void 0?{}:k;var P=this.policy.nh;this.C.oA(W,Y===void 0?!1:Y,k);if(P!==this.policy.nh){iX(this,this.W);Mw(this);var T,I;P>this.policy.nh&&((T=this.J)==null?0:Ul(T.info))&&((I=this.nextVideo)==null||!Ul(I.info))&&(this.A5=!0)}};HG.prototype.v3=function(W){this.timestampOffset=W;this.flush()}; HG.prototype.flush=function(){if(this.W.pos>0){var W={a:this.track.xH(),u:this.W.WK(),pd:Math.round(this.T),ad:Math.round(this.J)},Y=this.K;if(Y){var k=Y.W.info;W.itag=k.itag;k.W&&(W.xtags=k.W);W.sq=Y.t5;W.st=Y.startTime;W.sd=Y.duration;this.track.policy.v1&&(W.si=Y.TW());Y.T&&(W.esl=Y.K+Y.J);Y.IB()&&(W.eos=1)}isNaN(this.timestampOffset)||(W.to=this.timestampOffset);var P;if(Y=(P=this.track.qT)==null?void 0:P.ER({})){for(var T in Y)this.X[T]!==Y[T]&&(W["sb_"+T]=Y[T]);this.X=Y}this.track.y5("sbu", W);this.W.reset();this.buffered=[];this.C=this.J=this.T=0;this.timestampOffset=this.K=void 0}};p8.prototype.dispose=function(){this.Kg=!0}; p8.prototype.Xr=function(){return this.Kg}; g.H(Ak,Error);mJ.prototype.skip=function(W){this.offset+=W}; mJ.prototype.X7=function(){return this.offset};g.R=OA0.prototype;g.R.CQ=function(){return this.K}; g.R.nI=function(){return this.K.length?this.K[this.K.length-1]:null}; g.R.l5=function(){this.K=[];ys(this);wc(this)}; g.R.YB=function(W){this.GJ=this.K.shift().info;W.info.equals(this.GJ)}; g.R.rU=function(){return g.tx(this.K,function(W){return W.info})}; g.R.xH=function(){return!!this.C.info.audio}; g.R.isDrm=function(){return!!this.C.info.tY}; g.R.getDuration=function(){return this.C.index.UI()};g.H(Tg,pD);g.R=Tg.prototype;g.R.onStateChange=function(){this.Xr()&&(cS(this.zj,this.formatId),this.W.dispose())}; g.R.B3=function(){var W=bbd(this.zj,this.formatId),Y;var k=((Y=this.zj.jj.get(this.formatId))==null?void 0:Y.bytesReceived)||0;var P;Y=((P=this.zj.jj.get(this.formatId))==null?void 0:P.P$)||0;return{expected:W,received:k,bytesShifted:Y,sliceLength:xJ(this.zj,this.formatId),isAnyMediaEndReceived:this.zj.k5(this.formatId)}}; g.R.eR=function(){return 0}; g.R.NR=function(){return!0}; g.R.E3=function(){return this.zj.E3(this.formatId)}; g.R.n3=function(){return[]}; g.R.dX=function(){return this.zj.dX(this.formatId)}; g.R.NI=function(){return this.lastError}; g.R.td=function(){return 0};g.H(C8,g.e);g.R=C8.prototype;g.R.xH=function(){return!!this.W.info.audio}; g.R.nI=function(){return this.T.nI()}; g.R.YB=function(W){this.T.YB(W);var Y;(Y=this.L)!=null&&(Y.C.add(W.info.t5),Y.W=gt0(Y,Y.va,Y.Qy,W,Y.W),Y.J=W,Y.X=(0,g.q5)());this.c6=Math.max(this.c6,W.info.W.info.c6||0)}; g.R.getDuration=function(){return this.W.index.UI()}; g.R.l5=function(){Im(this);this.T.l5()}; g.R.HT=function(){return this.T}; g.R.isRequestPending=function(W){return this.J.length?W===this.J[this.J.length-1].info.EP[0].t5:!1}; g.R.v3=function(W){var Y;(Y=this.L)==null||Y.v3(W);var k;(k=this.N)==null||k.v3(W)}; g.R.y5=function(W,Y){this.loader.y5(W,Y)}; g.R.XZ=function(){return this.loader.XZ()}; g.R.dispose=function(){var W;(W=this.N)==null||W.flush();g.e.prototype.dispose.call(this)};g.H(XC,g.e);XC.prototype.J=function(){this.K++>15||(this.W=!this.W,new P6V(this.loader,this.policy,this.Sj,this.ob,this.W),this.delay.start())}; g.R=P6V.prototype;g.R.Jl=function(){}; g.R.M8=function(){}; g.R.zM=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.O0()===this.size)this.loader.y5("rqs",this.getInfo());else{var W="net.connect";this.xhr.status>200?W="net.badstatus":this.xhr.Hw()&&(W="net.closed");this.onError(W)}}; g.R.onError=function(W){var Y=this;this.loader.handleError(W,this.getInfo());Vo("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(k){Y.loader.y5("pathprobe",k)},function(k){Y.loader.handleError(k.errorCode,k.details)})}; g.R.getInfo=function(){var W=this.timing.iW();W.shost=c0(this.location.b5);W.pb=this.size;return W};g.H(SG,g.e); SG.prototype.G=function(W,Y){if(W.G){this.H6.isLive?(W=this.H6.UU&&this.H6.T?W.W.kB(this.H6.UU,!1):W.W.gT(Infinity),W.Cs=this.Cs):W=W.W.kB(0,!1);if(this.A5){var k=this.A5;W.Cs===0&&(W.C=k.L)}else W.C=this.N;return W}k=W.K;if(!k.W.sE())return k.W.xk()?(W=WS(this.C,W.W.info.c6,Y.W.info.c6,0),W=k.W.eB(k,W)):W=k.W.QE(k),W;var P=k.X-this.loader.getCurrentTime(),T=!k.range||k.J===0&&k.K===0?0:k.range.length-(k.K+k.J),I=k.W;this.Z4(W,P)&&T===0&&(this.H6.isManifestless?I=W.W:(I=k.startTime+oV5,k.J&&(I+=k.duration), ho(W,I),k=W.K,I=k.W));I.xk()?(T=this.J,Y=WS(this.C,I.info.c6,Y.W.info.c6,P,T.T.length>0&&T.L===0&&this.loader.y0),P=P5(W),W=k.W.eB(k,Y),(Y=W.J)&&W.EP.length>1&&(P||W.ob.J||W.EP[0].W!==k.W?W=k.W.eB(k,W.EP[0].J):(P=W.EP[W.EP.length-1],I=P.J/Y,!P.T&&I<.4&&(W=k.W.eB(k,Y-P.J))))):(k.t5<0&&(Y=T8(k),Y.pr=""+W.J.length,this.loader.isSeeking()&&(Y.sk="1"),Y.snss=k.G,this.loader.y5("nosq",Y)),W=I.QE(k));if(this.policy.gD)for(k=g.p(W.EP),Y=k.next();!Y.done;Y=k.next())Y.value.type=6;return W}; SG.prototype.Z4=function(W,Y){if(!P5(W)||!W.W.sE())return!1;var k=this.J.Fr||eJ7(W)||Y<=this.policy.P1||this.J.A5;this.logger.debug(function(){return"ready to adapt: "+k+", upgrade pending: "+eJ7(W)+", health: "+Y}); return k}; SG.prototype.iz=function(){g.e.prototype.iz.call(this)}; var oV5=2/24;g.H(uJ,g.e);uJ.prototype.n_=function(W,Y,k){var P;var T=((P=this.K)==null?void 0:P.reason)==="m"?"m":this.K&&GB1(this,this.K)?this.K.reason:"a";this.loader.n_(new Xh(W,T,k));B5(this.loader,Y,W,!0)}; uJ.prototype.vt=function(W,Y){for(var k=g.p(this.gD),P=k.next();!P.done;P=k.next())if(P.value.id===W)return this.C=this.H6.W[W],Qt(this.l7)&&(this.A5=!0),W=new Xh(this.C,Y?"t":"m"),Y&&(this.G=!0),W;this.J=[];return null}; uJ.prototype.oA=function(W,Y,k){k=k===void 0?{}:k;this.W.oA(W,Y===void 0?!1:Y,k)};iJ.prototype.setData=function(W,Y,k){var P=this;k=k===void 0?{}:k;if(Y==null?0:Y.Gn)this.xU=YWd(this,Y,k),W.bu=this.ob.bu();if(this.Zw())return!0;this.data=W;this.W=dD1(W,function(T,I){var X;(X=P.wx)==null||X.P7(T,I)},Y==null?void 0:Y.J); if(!this.W)return!1;this.K=g.bl(this.W,Po7);return!0}; iJ.prototype.Zw=function(){return this.requestType===1}; iJ.prototype.un=function(){var W;return((W=this.wx)==null?void 0:W.un())||0}; iJ.prototype.isDecorated=function(){var W;return!((W=this.data)==null||!W.h7)};w6C.prototype.encrypt=function(W){(0,g.q5)();return this.W.W?C6z(this,W,this.iv):(new g.S8(this.W.K)).encrypt(W,this.iv)}; w6C.prototype.decrypt=function(W,Y){(0,g.q5)();return this.W.W?C6z(this,W,Y):(new g.S8(this.W.K)).decrypt(W,Y)};g.H(M0,g.e);M0.prototype.J=function(W,Y){if(Y){Y=Y instanceof g.lW?Y:tO(this,Y);var k;((k=this.W.get(W))==null?void 0:c0(k.location))!==c0(Y)&&this.W.set(W,new xDd(Y,W))}else this.W.delete(W)}; M0.prototype.load=function(){var W=this,Y,k,P,T,I,X,h,B,O,u;return g.D(function(Z){switch(Z.W){case 1:Y=W.W.get(0);g.KC(Z,2);var M;if(M=Y&&!W.K)M=c0(Y.location),M=W.K===Ao(M);if(M){Z.oi(4);break}return g.m(Z,bhX(W,W.K?2:0),5);case 5:if(k=Z.K)W.J(0,k),fm(k)&&W.J(1,VX(k));case 4:g.s2(Z,3);break;case 2:P=g.Aq(Z);g.Kx(P);if(!W.K){Z.oi(3);break}W.K=!1;return g.m(Z,W.load(),7);case 7:return Z.return();case 3:if(!W.zJ.experiments.Nq("html5_onesie_probe_ec_hosts")){Z.oi(0);break}g.KC(Z,9);T=W;I=T.J;X=3;return g.m(Z, bhX(W,1),11);case 11:return I.call(T,X,Z.K),h=W,B=h.J,O=4,g.m(Z,bhX(W,2),12);case 12:B.call(h,O,Z.K);g.s2(Z,0);break;case 9:u=g.Aq(Z),g.Kx(u),g.G1(Z)}})}; M0.prototype.G=function(){var W=this,Y,k;return g.D(function(P){g.L_(W.L);Y=g.W2(W.zJ.experiments,"html5_onesie_prewarm_max_lact_ms");if(Ml()>=Y)return P.return();(k=W.W.get(0))&&l_d(W,k);g.G1(P)})}; var Liz={xv1:0,Orz:1,vNg:2,XV2:3,G9P:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};f_F.prototype.decrypt=function(W){var Y=this,k,P,T,I,X,h;return g.D(function(B){switch(B.W){case 1:if(Y.W.length&&!Y.W[0].isEncrypted)return B.return();Y.K=!0;Y.Dr.VU("omd_s");k=new Uint8Array(16);IV()?P=new g.h7(W):T=new g.S8(W);case 2:if(!Y.W.length||!Y.W[0].isEncrypted){B.oi(4);break}I=Y.W.shift();if(!P){X=T.decrypt(IC(I.buffer),k);B.oi(5);break}return g.m(B,P.decrypt(IC(I.buffer),k),6);case 6:X=B.K;case 5:h=X;for(var O=0;O=4)){var Y=sn(this),k=this.xhr;Y.rc=k.status;W&&(Y.ab=!0);if(k.JD()){var P="onesie.net";Y.msg=k.JD()}else k.status>=400?P="onesie.net.badstatus":k.E7()?this.Rm||(P="onesie.response.noplayerresponse"):P=k.status===204?"onesie.net.nocontent":"onesie.net.connect";P?this.fail(new g.uZ(P,Y)):(this.VU("or_fs"),this.Wz.FS((0,g.q5)(),k.O0(),0),this.ZY(4),this.qv&&this.y5("rqs",Y));this.qv&&this.y5("ombre", "ok."+ +!P);this.MX=!1;JO(this);hYd(this.Dr);if(!this.E9){this.uB.stop();var T;(T=this.jH)==null||T.stop()}var I;if(W=(I=this.vS)==null?void 0:cKS(I))for(I=0;I1E3){var W;(W=this.Wz)==null||W.p_((0,g.q5)());W=sn(this);if(this.zJ.OR()&&this.xhr instanceof Gg){var Y=this.xhr;W.xrs=Y.xhr.readyState;W.xpb=Y.W.totalLength;W.xdc=Y.T}this.fail(new g.uZ("net.timeout",W))}}else(0,g.q5)()-this.Wz.W>1E4&&((Y=this.Wz)==null||Y.p_((0,g.q5)()),this.yl());this.isComplete()||this.h0.start()}}; g.R.yl=function(){this.logger.info("Onesie request timed out");this.MX=!1;if(!JO(this)){var W=sn(this);W.timeout="1";this.fail(new g.uZ("onesie.request",W))}}; g.R.fail=function(W){var Y=this;W=iZ(W);this.Ys?this.W6.Pz(W):(this.fI.reject(W),this.Ys=!0);hYd(this.Dr);this.E9||this.uB.stop();this.VU("or_fe");var k,P;(k=this.vS)==null||(P=cKS(k))==null||P.forEach(function(T){Y.y5("pathprobe",T)}); this.ZY(5);this.dispose()}; g.R.isComplete=function(){return this.state>=3}; g.R.UH=function(){return this.state===4}; g.R.Eh=function(W){var Y,k;return this.isComplete()||!!((Y=this.Sy)==null?0:(k=Y.get(W))==null?0:k.W)}; g.R.uj=function(){return!1}; g.R.x4=function(){return this.state===5}; g.R.notifySubscribers=function(W){for(var Y=0;Y102400&&!this.Ty&&(this.VU("or100k"),this.Ty=!0);if(W.Il()){var Y=W.wp(),k=Y.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+k}); this.qv&&this.y5("ombrss","len."+k);this.MB.feed(Y)}if(this.Sy)for(var P=g.p(this.Sy.keys()),T=P.next();!T.done;T=P.next()){var I=T.value;W=void 0;(W=this.Sy.get(I))==null||W.eY();this.notifySubscribers(I)}}catch(X){this.fail(X)}}; g.R.H4=function(){return this.Wz.requestNumber}; g.R.jp=function(W){return this.RL.get(W)};g.H(r62,g.e);g.R=r62.prototype;g.R.JU=function(W,Y){this.Kg=void 0;C0F(this);v0X(this,W,Y)}; g.R.I$=function(W){if(this.W.length===0)return!1;var Y=this.W[0];return Y instanceof rP?W===this.loader.getCurrentTime()*1E3:!(Y instanceof NX&&g3z(Y.info))&&Math.abs(Y.Uh()-W)<50}; g.R.u3=function(W){this.K=W;this.Kg=(0,g.q5)()+(W.backoffTimeMs||0)}; g.R.PO=function(W,Y){if(W.action===void 0){var k=this.W6.sG();k!==void 0&&this.loader.Ed(k)}else if(W.action!==0||!this.V5)if(W.action===0&&this.policy.AS&&(W.action=2),W.In==="sabr.malformed_config"&&this.rD++<3)this.loader.handleError("sabr.malformed_config",{action:W.action,rn:Y,retry:this.rD},0);else switch(W.In==="sabr.malformed_config"&&(W.action=2),k={},k.reason=W.In,k.action=W.action,k.rn=Y,W.action){case 1:this.policy.K&&this.L&&this.L.XM(void 0,void 0,k);break;case 0:this.V5=!0;this.videoData.Xj()&& this.policy.K&&this.L&&this.L.XM(void 0,void 0,k,!1);this.loader.Zc(k);break;case 2:p$z(W.In)!=="sabr.config"&&delete k.reason;this.loader.handleError(p$z(W.In),k,1);break;case 3:this.policy.Gn&&((W=this.H6.N)!=null&&(W.L=!0),this.loader.handleError("sabr.hostfallback",k))}}; g.R.Zx=function(W){W&&(this.loader.y5("sabrctxt",{onsbrctxt:W.type,scp:W.scope,dflt:W.sendByDefault}),W.type&&W.sendByDefault&&this.videoData.bz.add(W.type),W.scope!==2&&(W.type&&this.videoData.sabrContextUpdates.set(W.type,W),this.W6.Zx(W)))}; g.R.vO=function(){}; g.R.Yp=function(W,Y){if(this.policy.A7&&this.loader.Dn)this.loader.y5("sdai",{ignSabrSeek:1,smt:W==null?void 0:W.mu,rn:Y});else if(W.mu!==void 0&&W.Cv){var k=W.mu/W.Cv;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.A5||this.policy.FC||this.policy.n8)this.loader.qx.W=!1;var P=this.loader.ul(k,1);this.policy.bz&&this.policy.K&&this.loader.a9(P,Y);this.W6.getCurrentTime()!==k&&(Y={Fi:"sabr_seek",dT:!0,ED:!0},W.seekSource&&(Y.seekSource=W.seekSource),u5(this.loader,k+.1,Y))}}; g.R.onSnackbarMessage=function(W){this.W6.publish("onSnackbarMessage",W)}; g.R.lW=function(W,Y){this.policy.UP&&this.N&&this.loader.lW(W,Y)}; g.R.KY=function(W){W.M5&&W.yK&&fr(this.H6,W.M5,W.yK);this.policy.Yi&&(W.JK&&W.pT&&(this.H6.UK=W.JK/W.pT),W.ea&&W.hV&&(this.H6.KL=W.ea/W.hV));a4(this.videoData)&&!this.videoData.wD&&W.yK&&this.loader.ul(W.yK,1E3);W.IN!=null&&this.W6.e7(W.IN);W.B2&&(W=((0,g.q5)()-W.B2)/1E3,this.loader.BQ.NL(1,W))}; g.R.P9=function(W){this.loader.P9(W)}; g.R.HS=function(W){return this.videoData.bz.has(W)}; g.R.iB=function(W,Y,k){this.policy.J&&this.loader.y5("sabrctxtplc",{start:W?W.join("_"):"",stop:Y?Y.join("_"):"",discard:k?k.join("_"):""});if(W){W=g.p(W);for(var P=W.next();!P.done;P=W.next())this.videoData.bz.add(P.value)}if(Y)for(Y=g.p(Y),W=Y.next();!W.done;W=Y.next())W=W.value,this.videoData.bz.has(W)&&this.videoData.bz.delete(W);if(k)for(k=g.p(k),Y=k.next();!Y.done;Y=k.next())if(Y=Y.value,this.videoData.sabrContextUpdates.has(Y)&&this.videoData.sabrContextUpdates.delete(Y),this.policy.N&&this.W.length)for(W= g.p(this.W),P=W.next();!P.done;P=W.next())if(P=P.value,!(P instanceof rP)){var T=void 0;((T=P.SG)==null?void 0:T.type)===Y&&(P.SG=void 0)}}; g.R.T4=function(){}; g.R.Ue=function(W){this.G=W}; g.R.OD=function(W){this.X=W}; g.R.wJ=function(W,Y){Y9V(this.policy,W,4,Y)}; g.R.hd=function(W){if(W==null?0:W.i6)if(W=W.i6.NU){W=g.p(W);for(var Y=W.next();!Y.done;Y=W.next())if(Y=Y.value,Y.formatId){var k=this.H6.J.get(cR(Y.formatId));k&&k.info&&(k.info.debugInfo=Y.debugInfo)}}}; g.R.ym=function(W){this.W6.publish("reloadplayer",W)}; g.R.B5=function(){return this.W6.B5()||""}; g.R.un=function(){var W=W5(this.audioTrack,!0)*1E3,Y=W5(this.videoTrack,!0)*1E3;return Math.min(W,Y)}; g.R.P7=function(W,Y){this.loader.y5(W,Y)}; g.R.Gp=function(W){X16(this.loader,eL7(this.bz,W))}; g.R.iz=function(){g.e.prototype.iz.call(this);this.K=void 0;v0X(this,!0,"i");this.W=[]};aGX.prototype.A5=function(W){Q8(W.state)&&xs7(this.T)}; aGX.prototype.JX=function(){this.isSeeking=!0;this.W===1&&VE5(this.T);this.W===0&&this.Pk.fq("transitiondetector");this.X=!1};IA7.prototype.u7=function(W,Y){if(this.T)return OlS(this,Y);if(Y=Zn(W)){var k=Y.W;k&&k.J&&k.W&&(W=W.J.length?W.J[0]:null)&&W.state>=2&&!W.x4()&&W.info.Cs===0&&(this.T=W,this.G=k,this.K=Y.info,this.X=this.startTimeSecs=Date.now()/1E3,this.C=this.K.startTime)}return NaN}; IA7.prototype.clear=function(){this.K=this.G=this.T=null;this.W=this.C=this.X=this.startTimeSecs=NaN;this.J=!1};g.H(ilq,g.e);ilq.prototype.iz=function(){tW2(this);g.e.prototype.iz.call(this)};var qbd=/[?&]cpn=/;g.H(WB,g.e);WB.prototype.flush=function(){var W={};this.K&&(W.pe=this.K);this.W.length>0&&(W.pt=this.W.join("."));this.W=[];return W}; WB.prototype.stop=function(){var W=this,Y,k,P;return g.D(function(T){if(T.W==1)return g.KC(T,2),g.m(T,(Y=W.T)==null?void 0:Y.stop(),4);if(T.W!=2)return(k=T.K)&&W.logTrace(k),g.s2(T,0);P=g.Aq(T);W.K=E91(P.message);g.G1(T)})}; WB.prototype.logTrace=function(W){this.encoder.reset();this.encoder.add(1);this.encoder.add(W.resources.length);for(var Y=g.p(W.resources),k=Y.next();!k.done;k=Y.next()){k=k.value.replace("https://www.youtube.com/s/","");this.encoder.add(k.length);for(var P=0;P=0?W:g.TA(this.provider),this.wD?dvc.has(this.b7)&&(this.W.size||(this.b7==="PL"?W>=this.K+30:W<=this.A5+30||W>=this.K+1200&&W<=this.A5+86400))&&(g.$L(this,W,"vps",[this.b7]),this.K=W):["PL","B","S"].indexOf(this.b7)>-1&&(this.W.size||W>=this.K+30)&&(g.$L(this,W,"vps",[this.b7]),this.K=W),this.W.size)){this.sequenceNumber===7E3&&g.Kx(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){ju(this,W);var Y=this.provider.W6.Jx(); Y=g.p(Y);for(var k=Y.next();!k.done;k=Y.next())k=k.value,this.y5(k.key,k.value);Y=W;k=this.provider.W6.Ea();var P=k.droppedVideoFrames||0,T=k.totalVideoFrames||0,I=P-this.Sh,X=T&&!this.CS;P>k.totalVideoFrames||I>5E3?o90(this,"html5.badframedropcount","df."+P+";tf."+k.totalVideoFrames):(I>0||X)&&g.$L(this,Y,"df",[I]);this.Sh=P;this.CS=T;this.L>0&&(g.$L(this,W,"glf",[this.L]),this.L=0);j3.isActive()&&(W=j3.d8(),Object.keys(W).length>0&&this.y5("profile",W));this.J9&&Ir(this,"lwnmow");this.provider.zJ.OR()&& this.provider.U("html5_record_now")&&this.y5("now",{wt:(0,g.q5)()});W={};this.provider.videoData.K&&(W.fmt=this.provider.videoData.K.itag,(Y=this.provider.videoData.T)&&Y.itag!==W.fmt&&(W.afmt=Y.itag));W.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(W.adcpn=this.adCpn);this.zS&&(W.addocid=this.zS);this.contentCpn&&(W.ccpn=this.contentCpn);this.gD&&(W.cdocid=this.gD);this.provider.videoData.cotn&&(W.cotn=this.provider.videoData.cotn);W.el=jW(this.provider.videoData);W.content_v=Xs(this.provider.videoData); W.ns=this.provider.zJ.A5;W.fexp=VcX(this.provider.zJ.experiments).toString();W.cl=(796671093).toString();(Y=this.provider.videoData.adFormat||this.adFormat)&&(W.adformat=Y);(Y=b0(this.provider.videoData))&&(W.live=Y);this.provider.videoData.t$()&&(W.drm=1,this.provider.videoData.C&&(W.drm_system=HZz[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(W.drm_product=this.provider.videoData.drmProduct));Wy()&&this.provider.videoData.X&&(W.ctt=this.provider.videoData.X,W.cttype= this.provider.videoData.Mv,this.provider.videoData.mdxEnvironment&&(W.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(W.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.qZ&&(W.dai_fallback="1")):this.provider.videoData.U1?W.dai="cs":this.provider.videoData.S8&&(W.dai="disabled");W.seq=this.sequenceNumber++;if(this.provider.videoData.bk){if(Y=this.provider.videoData.bk,W&&Y)for(Y.ns==="3pp"&&(W.ns="3pp"),this.UV.has(Y.ns)&& Ir(this,"hbps"),Y.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=Y.shbpslc),this.provider.zJ.experiments.Nq("html5_use_server_qoe_el_value")&&this.bz.delete("el"),k=g.p(Object.keys(Y)),P=k.next();!P.done;P=k.next())P=P.value,this.bz.has(P)||(W[P]=Y[P])}else W.event="streamingstats",W.docid=this.provider.videoData.videoId,W.ei=this.provider.videoData.eventId;this.isEmbargoed&&(W.embargoed="1");Object.assign(W,this.provider.zJ.W);if(Y=W.seq)Y={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+Y,serializedWatchEndpointLoggingContext:this.provider.videoData.Bc2},this.serializedHouseBrandPlayerServiceLoggingContext&&(Y.serializedHouseBrandPlayerServiceLoggingContext=rZ(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(Y.playerResponseCpn=this.provider.videoData.playerResponseCpn),YL.length&&(Y.decoderInfo=YL),this.remoteControlMode&&(Y.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(Y.remoteConnectedDevices= this.remoteConnectedDevices),Y=g.bl(Y,IO2),Y=g.Jx(Y,4),this.W.set("qclc",[Y]);W=g.MH("//"+this.provider.zJ.wi+"/api/stats/qoe",W);k=Y="";P=g.p(this.W.entries());for(T=P.next();!T.done;T=P.next())I=g.p(T.value),T=I.next().value,I=I.next().value,X=void 0,(X=I)!=null&&X.join&&(T="&"+T+"="+I.join(","),T.length>100?k+=T:Y+=T);wVd(this,W+Y,k.replace(/ /g,"%20"))}this.W.clear()}}; g.R.zb=function(W){this.J9=W}; g.R.gL=function(){if(this.provider.videoData.C){var W=this.provider.videoData.C;Ir(this,"eme-"+(W.keySystemAccess?"final":TY(W)?"ms":XB(W)?"ytfp":IP(W)?"safarifp":"nonfinal"))}}; g.R.Bu=Wd(53);g.R.aZ=function(W){this.isEmbargoed=W}; g.R.l_=Wd(30);g.R.cK=Wd(36);g.R.onPlaybackRateChange=function(W){var Y=g.TA(this.provider);W&&W!==this.tT&&(g.$L(this,Y,"rate",[W]),this.tT=W);this.wD||this.reportStats(Y)}; g.R.Kh=Wd(24);g.R.getPlayerState=function(W){if(g.b(W,128))return"ER";if(g.b(W,2048))return"B";if(g.b(W,512))return"SU";if(g.b(W,16)||g.b(W,32))return"S";if(W.isOrWillBePlaying()&&g.b(W,64))return"B";var Y=mvi[y8(W)];g.Zw(this.provider.zJ)&&Y==="B"&&this.provider.W6.getVisibilityState()===3&&(Y="SU");Y==="B"&&g.b(W,4)&&(Y="PB");return Y}; g.R.BO=function(W){var Y=g.TA(this.provider);g.$L(this,Y,"vfi",[W===0?"":""+W,W===0?"A":"M"])}; g.R.iz=function(){g.e.prototype.iz.call(this);g.hB(this.Kg);g.hB(this.Gn)}; g.R.f3=function(W){this.isOffline=W;g.$L(this,g.TA(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.R.y5=function(W,Y,k){var P=this.rZ.indexOf(W)!==-1;P||this.rZ.push(W);if(!k||!P){var T=typeof Y!=="string"?Ol(Y):Y;T=CfX(T);if(!k&&!/^t[.]/.test(T)){var I=g.TA(this.provider)*1E3;T="t."+I.toFixed()+";"+T}PB(this,"ctmp",W+":"+T);this.logger.debug(function(){return"ctmp "+W+" "+T}); QRS(this);return I}}; g.R.uM=function(W,Y,k){this.C={ezP:Number(this.y5("glrem",{nst:W.toFixed(),rem:Y.toFixed(),ca:+k})),YO:W,xa5:Y,isAd:k}}; g.R.iZ=function(W,Y,k){g.$L(this,g.TA(this.provider),"ad_playback",[W,Y,k])}; g.R.gP=function(W,Y){var k=g.TA(this.provider)*1E3;PB(this,"daism","t."+k.toFixed(0)+";smw."+(W*1E3).toFixed(0)+";smo."+(Y*1E3).toFixed(0))}; g.R.resume=function(){var W=this;isNaN(this.Kg)?yDC(this):this.Kg=g.XU(function(){W.reportStats()},1E4)}; var pE={},mvi=(pE[5]="N",pE[-1]="N",pE[3]="B",pE[0]="EN",pE[2]="PA",pE[1]="PL",pE[-1E3]="ER",pE[1E3]="N",pE),dvc=new Set(["PL","B","S"]),YL=[];g.H(g.hS,g.e);g.R=g.hS.prototype;g.R.initialize=function(W,Y,k){this.logger.debug(function(){return"Initialized, t="+W}); W=W||0;this.policy.W||(Y=v7z(this.W),B71(this.W6,new Xh(Y.video,Y.reason)),this.W6.xX(new Xh(Y.audio,Y.reason)));this.policy.W&&Ohv(this);this.H6.isManifestless&&R_S(this.C);this.G&&SbX(this.G,this.videoTrack.W);Y=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var P=!this.H6.isManifestless;this.policy.O2&&(P=P||this.H6.Fj);if(!this.policy.TJ||this.policy.f1)this.currentTime=P?W:Y;this.policy.A5&&this.seek(this.getCurrentTime(),{}).MA(function(){}); if(this.policy.W){var T;((T=this.A5)==null?0:s4C(T,this.B5()||""))&&NW7(this)&&VWF(this,this.videoTrack)&&VWF(this,this.audioTrack)&&(LXv(this.K,this.A5),this.policy.C&&fAC(this))}else this.wD&&(aA2(this,this.videoTrack),aA2(this,this.audioTrack),lNF(this.wD),delete this.wD);k?(YH6(this,!1),g.L_(this.Da)):(k=this.getCurrentTime()===0,hO(this.C,this.videoTrack,this.videoTrack.W,k),hO(this.C,this.audioTrack,this.audioTrack.W,k),this.policy.W&&ds0(this.K,!0),this.policy.A5||this.seek(this.getCurrentTime(), {}).MA(function(){}),this.timing.tick("gv")); (this.H6.UU||this.H6.UA||this.H6.gD||this.H6.J9||this.H6.Gn)&&this.W6.k9(this.H6)}; g.R.resume=function(){if(this.isSuspended||this.y0){this.logger.debug("Resumed.");this.VM=this.y0=this.isSuspended=!1;try{this.u7()}catch(W){g.GH(W)}}}; g.R.BA=function(){return!this.policy.AC}; g.R.Oo=function(W,Y){W=W===void 0?!1:W;Y=Y===void 0?!1:Y;this.logger.debug("detaching media source");T71(this);this.W6.Jf()&&(this.X=NaN);W?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.OP&&this.y5("loader",{setsmb:1}),this.policy.gD=!0,this.l5()):(YH6(this,!1),Y||this.l5())}; g.R.setAudioTrack=function(W,Y,k){k=k===void 0?!1:k;if(!this.Xr()){var P=!isNaN(Y);k&&P&&(this.audioTrack.Kg=Date.now(),this.policy.jW&&(this.e1=!0));if(this.policy.W){var T=this.T.vt(W.id,P);this.logger.debug(function(){return"Logging new audio format: "+T.W.info.id}); this.W6.xX(T)}else{var I=yt7(this.W,W.id,P);this.logger.debug(function(){return"Logging new audio format: "+I.audio.info.id}); this.W6.xX(new Xh(I.audio,I.reason))}P?(this.J9=Date.now(),k=this.audioTrack.W.index.o7(Y),this.y5("setAudio",{id:W.id,cmt:Y,sq:k}),k>=0&&(W=this.policy.Ci?k+1:k,this.policy.W&&this.JU(!0,"mosaic"),ynv(this.audioTrack,W,NaN,NaN),!this.policy.CN&&this.H6.isLive&&x7(this.H6,W,!1))):this.W6.yg()}}; g.R.setPlaybackRate=function(W){W!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(W)}; g.R.fS=function(W){var Y=this.K.G;this.K.Ue(W);this.y5("scfidc",{curr:cR(Y),"new":cR(W)});W&&cR(W)!==cR(Y)&&(this.JU(!0,"caption change"),this.u7())}; g.R.Z8=function(W){this.K.OD(W)}; g.R.n_=function(W){var Y=W.W.info.xH();this.logger.debug(function(){return"New "+(Y?"audio":"video")+" format from SABR: "+$B(W.W.info)}); Y?this.W6.xX(W):B71(this.W6,W)}; g.R.Gp=function(W){$7(W.EP[W.EP.length-1])&&X16(this,eL7(this.W,W.EP[0].W))}; g.R.Dj=function(){return this.W6.Dj()}; g.R.jC=function(){return this.W6.jC()}; g.R.P9=function(W){this.W6.V().OR()&&this.y5("sps",{status:W.Zh||""});if(W.Zh===1)this.W6.videoData.pB=0;else if(W.Zh===2||W.Zh===3){var Y=!1;if(W.Zh===3){Y=this.W6.u2();var k;this.DY=(k=W.Imq)!=null?k:Infinity;this.W6.videoData.pB=Y+1;(Y=q9X(this))&&this.TZ(!0)}this.W6.uf(!0,Y)}}; g.R.lC=function(){return this.W6.lC()}; g.R.R7=function(){return this.W6.R7()}; g.R.nw=function(W){this.W6.nw(W)}; g.R.p5P=function(){var W,Y=(W=this.W6.bd())==null?void 0:W.getCurrentTime();Y?this.W6.y5("rms",{cta:Y}):g.L_(this.xq)}; g.R.u7=function(){IZ1(this);if(this.j1&&qt(this.j1)&&!this.j1.j6()&&(!this.policy.TJ||isFinite(this.getCurrentTime()))){var W=Ut(this.videoTrack);W=this.policy.mX&&W&&W.IB();this.H6.isManifestless&&this.H6.T&&UW(this.H6)?(this.X=UW(this.H6),this.j1.Nv(this.X)):V_(this.H6)&&!W?isNaN(this.X)?(this.X=this.getCurrentTime()+3600,this.j1.Nv(this.X)):this.X<=this.getCurrentTime()+1800&&(this.X=Math.max(this.X+1800,this.getCurrentTime()+3600),this.j1.Nv(this.X)):this.j1.isView||(W=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.X)||this.X!==W)&&W>0&&(this.j1.Nv(W),this.X=W))}if(!this.Xr())if(Lr(this.H6)&&this.H6.x4()){var Y=this.H6;this.handleError("manifest.net.retryexhausted",Y.bz?{rc:Y.Zg}:{rc:Y.Zg.toString()},1)}else if(this.policy.W)a:{try{y6d(this.K);this.H6.isManifestless&&this.policy.C&&BS(this.qx);var k;((k=this.j1)==null?0:nY(k))&&this.pS();ds0(this.K)}catch(X){g.Kx(X);Y=X;if(Y.message.includes("changeType")){this.y5("ctype",{exp:Y.name,msg:Y.message,s:Y.stack});break a}this.handleError("fmt.unplayable", {exp:Y.name,msg:Y.message,s:Y.stack,trg:"sabrslicerqt"},1)}Qe6(this);g.L_(this.Q5)}else if(!this.H6.K||!CgC(this.videoTrack)&&!CgC(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.K1?k=!1:(this.l5(),this.W6.seekTo(Infinity,{Fi:"checkLoaderTracksSync",ul:!0}),k=!0),!k){IZ1(this);this.H6.isManifestless&&(LM2(this.videoTrack),LM2(this.audioTrack),BS(this.qx),(k=Zn(this.videoTrack))&&k.W&&(k=k.W.J&&!this.policy.YJ,this.y5(k===this.policy.G.Ch?"strm":"strmbug",{strm:k,sfmp4:this.policy.G.Ch, dfs:this.policy.YJ},!0)));if(this.j1)this.pS();else if(this.policy.T){var P;k=!1;if(this.policy.a8){var T;W=g.p([this.videoTrack,this.audioTrack]);for(T=W.next();!T.done;T=W.next()){var I=T.value;for(T=Zn(I);T&&I.nI()!==Ut(I);T=Zn(I))I.YB(T);k=k||!!T}}else(Y=Zn(this.videoTrack))&&this.videoTrack.YB(Y),(P=Zn(this.audioTrack))&&this.audioTrack.YB(P);Vs(this.videoTrack)&&Vs(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(Y||P||k)&&Vv(this)}W4z(this);hO(this.C,this.videoTrack, this.videoTrack.W,!1);hO(this.C,this.audioTrack,this.audioTrack.W,!1);this.policy.yS||hQF(this,this.videoTrack,this.audioTrack);S91(this.C,this.videoTrack,this.audioTrack);S91(this.C,this.audioTrack,this.videoTrack);Qe6(this);this.G&&(Y=this.G,Y.T?(P=Y.X+Y.policy.lM,Y.J||(P=Math.min(P,Y.startTimeSecs+Y.policy.uv)),Y=Math.max(0,P*1E3-Date.now())):Y=NaN,isNaN(Y)||g.L_(this.rZ,Y));g.L_(this.Q5)}}; g.R.Zc=function(W){this.W6.Zc(W)}; g.R.pS=function(){var W=this;if(this.j1){var Y=this.j1.W,k=this.j1.K;LvS(this,this.audioTrack);LvS(this,this.videoTrack);var P=ur0(this);if(P){if(this.policy.No){if(!Y.gq()){var T=Zn(this.audioTrack);if(T){if(!Su(this,this.audioTrack,Y,T.info))return;MkS(this,this.audioTrack,Y,T)}}if(!k.gq()&&(T=Zn(this.videoTrack))){if(!Su(this,this.videoTrack,k,T.info))return;MkS(this,this.videoTrack,k,T)}}this.Kg||(this.Kg=(0,g.q5)(),this.logger.debug(function(){return"Appends pause start "+W.Kg+" reason "+P}), this.policy.J&&this.y5("apdps",{r:P}))}else if(this.Kg&&(Ouv(this,this.Kg),this.Kg=0),ZuC(this),T=!1,nT2(this,this.videoTrack,k)&&(T=!0,I2d(this.timing),Bzq(this.timing)),this.j1&&!this.j1.Lu()&&(nT2(this,this.audioTrack,Y)&&(T=!0,X_V(this.timing),OrF(this.timing)),!this.Xr()&&this.j1))!this.policy.AC&&Vs(this.videoTrack)&&Vs(this.audioTrack)&&qt(this.j1)&&!this.j1.j6()&&(k=!1,k=Ut(this.audioTrack).W,k=k===this.H6.W[k.info.id])&&(this.logger.debug("Setting EOS"),ekC(this.j1),dZX(this.schedule),this.Y0("e")), T&&!this.j1.isAsync()&&Vv(this)}}; g.R.Y0=function(W){if(this.H6.isManifestless){var Y=this.videoTrack.W;if(Y){var k=Y.index.QU(),P=-1,T=-1;Y.index instanceof MN&&(P=Y.index.GG(),T=Y.index.UI());this.W6.Y0(W,k,P,T)}}}; g.R.yO=function(W){var Y,k=W===((Y=this.j1)==null?void 0:Y.W)?this.audioTrack:this.videoTrack,P;if((P=Zn(k))==null?0:P.isLocked){if(this.W6.V().OR()){var T;this.y5("eosl",{ounlock:(T=Zn(k))==null?void 0:T.info.TW()})}var I;sJ7(this,W===((I=this.j1)==null?void 0:I.W))}var X;if(this.policy.jW&&W===((X=this.j1)==null?void 0:X.W)&&this.Lg){Y=this.Lg-this.getCurrentTime();var h;this.W6.y5("asl",{l:Y,xtag:(h=Ut(this.audioTrack))==null?void 0:h.W.info.W});this.e1=!1;this.Lg=0}W.IM()&&W.Mt().length===0&& (W.pK(),this.j1&&!this.j1.IM()&&(this.W6.V().OR()&&this.W6.y5("rms",{ld:"seek"}),this.j1.X=performance.now(),this.W6.z5(),this.W6.V().OR()&&g.L_(this.xq)));var B;(B=k.N)!=null&&n8(B,0);this.policy.tT?t_7(this):this.u7()}; g.R.c56=function(W){if(this.j1){var Y=Ut(W===this.j1.W?this.audioTrack:this.videoTrack);if(W=W.ZF())for(var k=0;k5&&h.A5.shift();Y=Y.t5;var B;if((B=this.W6.getVideoData())==null?0:B.enableServerStitchedDai)B=VNd(this.audioTrack,Y),k=VNd(this.videoTrack,Y),B!==0&&k!==0&&B!==k&&this.handleError("ssdai.avsync",{sq:Y,a:B,v:k},0)}}; g.R.Kw=function(W,Y,k,P){W.info.video&&this.J.Kw(Y,k,P)}; g.R.tP=function(W){this.W.tP(W)}; g.R.b0=Wd(12);g.R.BY=function(){if(g.b(this.W6.getPlayerState(),8)){var W,Y,k=(Y=(W=this.W6.bd())==null?void 0:W.getCurrentTime())!=null?Y:this.W6.getCurrentTime(),P;(P=this.A9)==null||Yb5(P,k)}var T;(T=this.xm)==null||g.L_(T)}; g.R.o_=function(){return this.videoTrack.G||this.audioTrack.G}; g.R.seek=function(W,Y){if(this.Xr())return rg();if(this.o_())return rg("seeking to head");if(this.policy.A5&&!isFinite(W))return CWq(this.qx),g.sJ(Infinity);IZ1(this);Ohv(this);this.policy.W||W4z(this,W);this.j1&&this.j1.W&&this.j1.K&&!this.W6.getVideoData().B_&&(this.j1.W.isLocked()||this.j1.K.isLocked())&&this.W6.yg({reattachOnLockedBuffer:1,vsb:""+this.j1.K.isLocked(),asb:""+this.j1.W.isLocked()});var k=this.getCurrentTime(),P=this.qx.seek(W,Y);if(!this.policy.TJ||this.policy.f1)this.currentTime= P;jI(this.J,W,k,this.policy.SB&&!Y.dT);Vv(this);return g.sJ(P)}; g.R.I$=function(W){return this.policy.W&&this.K.I$(W)}; g.R.HS=function(W){return this.K.HS(W)}; g.R.JU=function(W,Y){this.K.JU(W,Y)}; g.R.getCurrentTime=function(){if(this.policy.TJ){var W=this.m2()||0;return this.W6.getCurrentTime(!0)-W}return this.currentTime}; g.R.Cm=function(){return this.audioTrack.W.info}; g.R.Qg=function(){return this.videoTrack.W.info}; g.R.D$=function(){return this.audioTrack.W.info.lz}; g.R.Qs=function(){return this.videoTrack.W.info.lz}; g.R.iz=function(){try{this.Oo(),Im(this.audioTrack),Im(this.videoTrack),Th(this.audioTrack),Th(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.e.prototype.iz.call(this)}catch(W){g.GH(W)}}; g.R.handleError=function(W,Y,k){k=k===void 0?0:k;var P=Zf(k);W==="fmt.unplayable"&&this.H6.isLive&&(this.policy.No=!1,c_(this.H6));Y=new g.uZ(W,Y,k);g.jw(this);Ol(Y.details);this.W6.handleError(Y);W!=="html5.invalidstate"&&Y.errorCode!=="fmt.unplayable"&&W!=="fmt.unparseable"&&P&&this.dispose()}; g.R.ER=function(){var W=Ut(this.audioTrack),Y=Ut(this.videoTrack);W={lct:this.getCurrentTime().toFixed(3),lsk:this.qx.isSeeking(),lmf:this.W.W.isLocked(),lbw:bg(this.schedule).toFixed(3),lhd:UC(this.schedule).toFixed(3),lst:((this.schedule.G.le()||0)*1E9).toFixed(3),laa:W?W.TW():"",lva:Y?Y.TW():"",lar:this.audioTrack.K?this.audioTrack.K.TW():"",lvr:this.videoTrack.K?this.videoTrack.K.TW():"",laq:""+Nw(this.audioTrack),lvq:""+Nw(this.videoTrack)};this.j1&&!this.j1.Lu()&&this.j1.W&&this.j1.K&&(W.lab= PC(this.j1.W.Mt()),W.lvb=PC(this.j1.K.Mt()));this.Kg&&(W.lapt=((0,g.q5)()-this.Kg).toFixed(0),W.lapr=ur0(this));this.Fr&&(W.lapmabht=((0,g.q5)()-this.Fr).toFixed(0),W.lapmabh=S1(this,this.audioTrack).toFixed(0));this.V5&&(W.lapmvbht=((0,g.q5)()-this.V5).toFixed(0),W.lapmvbh=S1(this,this.videoTrack).toFixed(0));this.GJ&&(W.lapsdai=((0,g.q5)()-this.GJ).toFixed(0));return W}; g.R.l5=function(){try{this.policy.W&&this.K.JU(!1,"pending"),this.audioTrack.l5(),this.videoTrack.l5()}catch(W){g.GH(W)}this.policy.T=""}; g.R.pm=function(){return aJ(this.N)}; g.R.y5=function(W,Y,k){this.W6.y5(W,Y,k===void 0?!1:k)}; g.R.B5=function(){return this.W6.B5()}; g.R.ul=function(W,Y){W/=Y;isNaN(this.timestampOffset)&&U0d(this,W-Math.min(W,this.policy.CB));return(W-this.timestampOffset)*Y}; g.R.m2=function(){return this.timestampOffset}; g.R.isSeeking=function(){return this.qx.isSeeking()}; g.R.Fc=function(){this.J.Fc()}; g.R.oA=function(W,Y,k){Y=Y===void 0?!1:Y;k=k===void 0?{}:k;this.policy.W?this.T.oA(W,Y,k):this.W.oA(W,Y,k)}; g.R.E0=function(W,Y){if(this.policy.K&&this.policy.Jj&&(this.Dn||this.isSeeking()))return this.y5("sdai",{ignoreSkip:"1",isSkip:this.Dn,isSeek:this.isSeeking(),t:W.toFixed(3)}),!1;if(this.L&&this.J.E0(W,this.L)){this.policy.K&&this.policy.Jj&&(this.y5("sdai",{skipAdStd:"1"}),this.Dn=!0);if(this.policy.bz&&this.policy.K){var k=this.videoTrack.W.index.o7(W),P;(P=this.gD)==null||P.U$(W,k)}U0d(this,this.timestampOffset-Y);Vv(this);this.policy.K&&(c_(this.H6),Th(this.audioTrack),Th(this.videoTrack),this.l5()); return!0}Y=this.videoTrack.W.index.o7(W);this.handleError("ad.skipfailed",{dec:!!this.L,t:W.toFixed(3),sq:Y});return!1}; g.R.getManifest=function(){return this.H6}; g.R.isOffline=function(){return!!this.W6.getVideoData().cotn}; g.R.Dl=function(W,Y){this.W6.Dl(W,Y)}; g.R.wk=function(W){if(this.policy.W)this.K.JU(!0,"utc"),this.u7();else{var Y=this.W6.getVideoData().I3;if(Y){var k=this.C;k.Z9=W;k.I3=Y;On(this)}}}; g.R.Ed=function(W){this.videoTrack.G=!1;this.audioTrack.G=!1;this.qx.W=!1;this.W6.Ed(W)}; g.R.jG=function(W){this.qx.jG(W-this.m2())}; g.R.Df=function(){this.W6.Df()}; g.R.TZ=function(W){W!==this.policy.i5&&((this.policy.i5=W)||this.u7())}; g.R.yg=function(W){this.W6.yg(W)}; g.R.zb=function(W){this.W6.zb(W)}; g.R.uZ=function(W,Y,k){var P;(P=this.gD)==null||P.uZ(W,Y,k)}; g.R.a9=function(W,Y){var k;(k=this.gD)==null||k.a9(W,Y)}; g.R.u2=function(){return this.W6.u2()}; g.R.lW=function(W,Y){if(this.policy.UP){var k;(k=this.gD)==null||k.lW(W,Y,this.L||void 0)}};g.R=g.BB.prototype;g.R.B$=function(W,Y,k,P,T,I){return this.Ha.B$(W,Y,k,P,T,I)}; g.R.VZ=function(W,Y,k,P,T,I){return this.Ha.VZ(W,Y,k,P,T,I)}; g.R.QA=function(W){return this.Ha.QA(W)}; g.R.Nu=function(W){this.Ha.Nu(W)}; g.R.XM=function(W,Y,k,P){return this.Ha.XM(W,Y,k,P)}; g.R.Fc=function(){this.Ha.Fc()}; g.R.U$=function(W,Y){this.Ha.U$(W,Y)}; g.R.zV=function(){this.Ha.zV()}; g.R.XR=Wd(56);g.R.Gw=function(W,Y,k){this.Ha.Gw(W,Y,k)}; g.R.rP=Wd(59);g.R.yN=function(W,Y,k,P,T,I,X,h,B){this.Ha.yN(W,Y,k,P,T,I,X,h,B)}; g.R.fv=function(W){this.Ha.fv(W)}; g.R.SF=function(W){return this.Ha.SF(W)}; g.R.VA=function(W){return this.Ha.VA(W)}; g.R.Qd=function(W){return this.Ha.Qd(W)};g.H(OD,g.NR);g.H(uA,OD);uA.prototype.X=function(W,Y){if(W&&Y){var k=Number(nk(W,"cpi"))*1+1;isNaN(k)||k<=0||kthis.J&&(this.J=k,g.Ox(this.W)||(this.W={},this.T.stop(),this.K.stop())),this.W[Y]=W,g.L_(this.K))}}; uA.prototype.C=function(){for(var W=g.p(Object.keys(this.W)),Y=W.next();!Y.done;Y=W.next()){var k=Y.value;Y=this.publish;for(var P=this.J,T=g.I8(this.W[k]),I=[],X=g.p(T[6].split("&")),h=X.next();!h.done;h=X.next())h=h.value,h.indexOf("cpi=")===0?I.push("cpi="+P.toString()):h.indexOf("ek=")===0?I.push("ek="+g.JQ(k)):I.push(h);T[6]="?"+I.join("&");k="skd://"+T.slice(2).join("");T=k.length*2;P=new Uint8Array(T+4);P[0]=T%256;P[1]=(T-P[0])/256;for(T=0;T0)for(var k=g.p(this.W),P=k.next();!P.done;P=k.next())if(Y===P.value.info.cryptoPeriodIndex){Y=!0;break a}Y=!1}if(!Y){Y=(0,g.q5)();a:{k=W.cryptoPeriodIndex;if(!isNaN(k)){P=g.p(this.J.values());for(var T=P.next();!T.done;T=P.next())if(Math.abs(T.value.cryptoPeriodIndex-k)<=1){k=!0;break a}}k=!1}k?(k=W.W,k=Math.max(0,Math.random()*((isNaN(k)?120:k)-30))*1E3):k=0;this.publish("log_qoe",{wvagt:"delay."+k,cpi:W.cryptoPeriodIndex,reqlen:this.W.length}); k<=0?x0d(this,W):(this.W.push({time:Y+k,info:W}),g.L_(this.K,k))}}; ZB.prototype.iz=function(){this.W=[];OD.prototype.iz.call(this)};var GP={},WE6=(GP.DRM_TRACK_TYPE_AUDIO="AUDIO",GP.DRM_TRACK_TYPE_SD="SD",GP.DRM_TRACK_TYPE_HD="HD",GP.DRM_TRACK_TYPE_UHD1="UHD1",GP);g.H(NP5,g.e);g.H($IS,g.NR);g.R=$IS.prototype;g.R.CI=function(W){var Y=this;if(!(this.Xr()||W.size<=0)){var k={};W.forEach(function(P,T){var I=jN(Y.K)?T:P;T=new Uint8Array(jN(Y.K)?P:T);jN(Y.K)&&qDV(T);P=g.Jx(T,4);qDV(T);T=g.Jx(T,4);Y.W[P]?Y.W[P].status=I:Y.W[T]?Y.W[T].status=I:Y.W[P]={type:"",status:I};Mud(Y,Y.W[P].type,k)}); Zn6(this,",");iA(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.R.error=function(W,Y,k,P){this.Xr()||(this.publish("licenseerror",W,Y,k,P),W==="drm.provision"&&(W=(Date.now()-this.X)/1E3,this.X=NaN,this.publish("ctmp","provf",{et:W.toFixed(3)})));Zf(Y)&&this.dispose()}; g.R.shouldRetry=function(W,Y){return!W&&this.requestNumber===Y.requestNumber}; g.R.iz=function(){this.W={};g.NR.prototype.iz.call(this)}; g.R.ER=function(){var W={ctype:this.L.contentType||"",length:this.L.initData.length,requestedKeyIds:this.wD,cryptoPeriodIndex:this.cryptoPeriodIndex};this.J&&(W.keyStatuses=this.W);return W}; g.R.getInfo=function(){var W=this.T.join();if(MI(this)){var Y=new Set,k;for(k in this.W)this.W[k].status!=="usable"&&Y.add(this.W[k].type);W+="/UKS."+Array.from(Y)}return W+="/"+this.cryptoPeriodIndex}; g.R.OV=function(){return this.url};g.H(qI,g.e);g.R=qI.prototype;g.R.KM=function(W){if(this.C){var Y=W.messageType||"license-request";this.C(new Uint8Array(W.message),Y)}}; g.R.CI=function(){this.G&&this.G(this.W.keyStatuses)}; g.R.onClosed=function(){this.Xr()||g.gn("xboxone")&&this.J&&this.J("closedShouldNotRetry")}; g.R.d6=function(W){this.C&&this.C(W.message,"license-request")}; g.R.Bj=function(W){if(this.J){if(this.K){var Y=this.K.error.code;W=this.K.error.systemCode}else Y=W.errorCode,W=W.systemCode;this.J("t.prefixedKeyError;c."+Y+";sc."+W,Y,W)}}; g.R.Qp=function(){this.X&&this.X()}; g.R.update=function(W){var Y=this;if(this.W)return this.W.update(W).then(null,Ng(function(k){Hnv(Y,"t.update",k)})); this.K?this.K.update(W):this.element.addKey?this.element.addKey(this.L.keySystem,W,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.L.keySystem,W,this.initData,this.sessionId);return KN()}; g.R.iz=function(){this.W&&(this.N?this.W.close().catch(g.Kx):this.W.close());this.element=null;g.e.prototype.iz.call(this)};g.H(Rr,g.e);g.R=Rr.prototype;g.R.setServerCertificate=function(){return this.K.setServerCertificate?this.W.flavor==="widevine"&&this.W.S6?this.K.setServerCertificate(this.W.S6):SN(this.W)&&this.W.GJ?this.K.setServerCertificate(this.W.GJ):null:null}; g.R.createSession=function(W,Y){var k=W.initData;if(this.W.keySystemAccess){Y&&Y("createsession");var P=this.K.createSession();XB(this.W)?k=GAV(k,this.W.GJ):SN(this.W)&&(k=cO2(k)||new Uint8Array(0));Y&&Y("genreq");W=P.generateRequest(W.contentType,k);var T=new qI(null,null,null,P,null,this.G);W.then(function(){Y&&Y("genreqsuccess")},Ng(function(X){Hnv(T,"t.generateRequest",X)})); return T}if(TY(this.W))return EL7(this,k);if(IP(this.W))return KE7(this,k);if((P=this.element)==null?0:P.generateKeyRequest)this.element.generateKeyRequest(this.W.keySystem,k);else{var I;(I=this.element)==null||I.webkitGenerateKeyRequest(this.W.keySystem,k)}return this.T=new qI(this.element,this.W,k,null,null,this.G)}; g.R.J_=function(W){var Y=JSv(this,W);Y&&Y.d6(W)}; g.R.wz=function(W){var Y=JSv(this,W);Y&&Y.Bj(W)}; g.R.vI=function(W){var Y=JSv(this,W);Y&&Y.Qp(W)}; g.R.getMetrics=function(){var W=null;if(this.K&&this.K.getMetrics)try{W=this.K.getMetrics()}catch(Y){}return W}; g.R.iz=function(){this.J=this.K=null;var W;(W=this.T)==null||W.dispose();W=g.p(Object.values(this.X));for(var Y=W.next();!Y.done;Y=W.next())Y.value.dispose();this.X={};g.e.prototype.iz.call(this);delete this.element};g.R=HB.prototype;g.R.get=function(W){W=this.findIndex(W);return W!==-1?this.values[W]:null}; g.R.remove=function(W){W=this.findIndex(W);W!==-1&&(this.keys.splice(W,1),this.values.splice(W,1))}; g.R.removeAll=function(){this.keys=[];this.values=[]}; g.R.set=function(W,Y){var k=this.findIndex(W);k!==-1?this.values[k]=Y:(this.keys.push(W),this.values.push(Y))}; g.R.findIndex=function(W){return g.Rj(this.keys,function(Y){return g.bQ(W,Y)})};g.H(ASF,g.NR);g.R=ASF.prototype;g.R.F26=function(W){this.Ur({onecpt:1});W.initData&&mI1(this,new Uint8Array(W.initData),W.initDataType)}; g.R.c9S=function(W){this.Ur({onndky:1});mI1(this,W.initData,W.contentType)}; g.R.j7=function(W){this.Ur({onneedkeyinfo:1});this.zJ.U("html5_eme_loader_sync")&&(this.G.get(W.initData)||this.G.set(W.initData,W));dIF(this,W)}; g.R.TY=function(W){this.J.push(W);nn(this)}; g.R.createSession=function(W){var Y=gLd(this)?Iz1(W):g.Jx(W.initData);this.K.get(Y);this.gD=!0;W=new $IS(this.videoData,this.zJ,W,this.drmSessionId);this.K.set(Y,W);W.subscribe("ctmp",this.X$,this);W.subscribe("keystatuseschange",this.CI,this);W.subscribe("licenseerror",this.sO,this);W.subscribe("newlicense",this.fT,this);W.subscribe("newsession",this.kO,this);W.subscribe("sessionready",this.LT,this);W.subscribe("fairplay_next_need_key_info",this.xO,this);this.zJ.U("html5_enable_vp9_fairplay")&&W.subscribe("qualitychange", this.mN,this);W.subscribe("sabrlicenseconstraint",this.SV2,this);jr5(W,this.T)}; g.R.fT=function(W){this.Xr()||(this.Ur({onnelcswhb:1}),W&&!this.heartbeatParams&&(this.heartbeatParams=W,this.publish("heartbeatparams",W)))}; g.R.kO=function(){this.Xr()||(this.Ur({newlcssn:1}),this.J.shift(),this.gD=!1,nn(this))}; g.R.LT=function(){if(TY(this.W)&&(this.Ur({onsnrdy:1}),this.UP--,this.UP===0)){var W=this.A5,Y,k;(Y=W.element)==null||(k=Y.msSetMediaKeys)==null||k.call(Y,W.J)}}; g.R.CI=function(W){if(!this.Xr()){this.OP||(this.OP=!0,this.zJ.OR()&&FEd(this));this.Ur({onksch:1});var Y=this.mN;if(!MI(W)&&g.e5&&W.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var k="large";else{k=[];var P=!0;if(MI(W))for(var T=g.p(Object.keys(W.W)),I=T.next();!I.done;I=T.next())I=I.value,W.W[I].status==="usable"&&k.push(W.W[I].type),W.W[I].status!=="unknown"&&(P=!1);if(!MI(W)||P)k=W.T;k=umC(k)}Y.call(this,k);if(!MI(W))for(Y={},k=g.p(W.T),P=k.next();!P.done;P=k.next())Mud(W, P.value,Y);this.videoData.authorizedFormats=W.authorizedFormats;this.publish("keystatuseschange",W)}}; g.R.X$=function(W,Y){this.Xr()||this.publish("ctmp",W,Y)}; g.R.xO=function(W,Y){this.Xr()||this.publish("fairplay_next_need_key_info",W,Y)}; g.R.sO=function(W,Y,k,P){this.Xr()||(this.videoData.U("html5_log_drm_metrics_on_error")&&FEd(this),this.publish("licenseerror",W,Y,k,P))}; g.R.Y5=function(){return this.L}; g.R.mN=function(W){var Y=g.JM("auto",W,!1,"l");if(this.videoData.i5){if(this.L.equals(Y))return}else if(hU6(this.L,W))return;this.L=Y;this.publish("qualitychange");this.Ur({updtlq:W})}; g.R.SV2=function(W){this.videoData.sabrLicenseConstraint=W}; g.R.iz=function(){this.W.keySystemAccess&&this.element&&(this.wD?this.element.setMediaKeys(null).catch(g.Kx):this.element.setMediaKeys(null));this.element=null;this.J=[];for(var W=g.p(this.K.values()),Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.unsubscribe("ctmp",this.X$,this),Y.unsubscribe("keystatuseschange",this.CI,this),Y.unsubscribe("licenseerror",this.sO,this),Y.unsubscribe("newlicense",this.fT,this),Y.unsubscribe("newsession",this.kO,this),Y.unsubscribe("sessionready",this.LT,this),Y.unsubscribe("fairplay_next_need_key_info", this.xO,this),this.zJ.U("html5_enable_vp9_fairplay")&&Y.unsubscribe("qualitychange",this.mN,this),Y.dispose();this.K.clear();this.X.removeAll();this.G.removeAll();this.heartbeatParams=null;g.NR.prototype.iz.call(this)}; g.R.ER=function(){for(var W={systemInfo:this.W.ER(),sessions:[]},Y=g.p(this.K.values()),k=Y.next();!k.done;k=Y.next())W.sessions.push(k.value.ER());return W}; g.R.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.C?"/KR":"")}; g.R.Ur=function(W,Y){Y=Y===void 0?!1:Y;this.Xr()||(Ol(W),(this.zJ.OR()||Y)&&this.publish("ctmp","drmlog",W))};g.H(oLd,g.e);g.R=oLd.prototype;g.R.ez=function(){return!!this.sS}; g.R.hR=function(){return this.K}; g.R.handleError=function(W){var Y=this;bn5(this,W);if((W.errorCode!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&W.errorCode!=="fmt.unparseable"||!lBv(this,W.errorCode,W.details))&&!Vu1(this,W)){if(this.pg.A5!=="yt"&&xId(this,W)&&this.videoData.KI&&(0,g.q5)()/1E3>this.videoData.KI&&this.pg.A5==="hm"){var k=Object.assign({e:W.errorCode},W.details);k.stalesigexp="1";k.expire=this.videoData.KI;k.init=this.videoData.Wg/1E3;k.now=(0,g.q5)()/1E3;k.systelapsed=((0,g.q5)()-this.videoData.Wg)/1E3; W=new g.uZ(W.errorCode,k,2);this.W6.SW(W.errorCode,2,"SIGNATURE_EXPIRED",Ol(W.details))}if(Zf(W.severity)){var P;k=(P=this.W6.loader)==null?void 0:P.W.W;if(this.pg.U("html5_use_network_error_code_enums"))if(cS5(W)&&k&&k.isLocked())var T="FORMAT_UNAVAILABLE";else if(this.pg.X||W.errorCode!=="auth"||W.details.rc!==429)W.errorCode==="ump.spsrejectfailure"&&(T="HTML5_SPS_UMP_STATUS_REJECTED");else{T="TOO_MANY_REQUESTS";var I="6"}else cS5(W)&&k&&k.isLocked()?T="FORMAT_UNAVAILABLE":this.pg.X||W.errorCode!== "auth"||W.details.rc!=="429"?W.errorCode==="ump.spsrejectfailure"&&(T="HTML5_SPS_UMP_STATUS_REJECTED"):(T="TOO_MANY_REQUESTS",I="6");this.W6.SW(W.errorCode,W.severity,T,Ol(W.details),I)}else this.W6.publish("nonfatalerror",W),P=/^pp/.test(this.videoData.clientPlaybackNonce),this.Pz(W.errorCode,W.details),P&&W.errorCode==="manifest.net.connect"&&(W="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.q5)(),Vo(W,"manifest",function(X){Y.X=!0;Y.y5("pathprobe",X)}, function(X){Y.Pz(X.errorCode,X.details)}))}}; g.R.y5=function(W,Y){this.W6.FA.y5(W,Y)}; g.R.Pz=function(W,Y){Y=Ol(Y);this.W6.FA.Pz(W,Y)};pn.prototype.w9=function(W){var Y=YS1(this);if(!W)return{oL:Ms,g8:Ms,mS:Ms,Nc:Ms,GH:Ms,jJ:Ms,dL:Y};var k=Ms;if(ro(Y)||this.U("html5_perf_cap_override_sticky"))k=uy6(this,W);return{oL:k,g8:IbC(this,W),mS:T$1(this,W),Nc:Zdv(this,W.videoData),GH:idC(this,W.videoData,W),jJ:kdz(this,W),dL:Y}}; pn.prototype.l0=function(W){if(g.Zw(this.zJ)&&Lm(this.zJ.C,U7.HEIGHT))var Y=W.W.videoInfos[0].video.qualityOrdinal;else{var k=this.gN(!!W.W.W);A6(W.videoData)||ZA(W.videoData);W=W.W.videoInfos;if(W.length){var P=g.W2(this.zJ.experiments,"html5_override_oversend_fraction")||.85,T=W[0].video;T.projectionType!=="MESH"&&T.projectionType!=="EQUIRECTANGULAR"&&T.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||P6||(P=.45);T=g.W2(this.zJ.experiments,"html5_viewport_undersend_maximum");for(var I=0;I< W.length;I++){Y=W[I];var X=Y.video;if(k===null||X.width*P=0,stateAtSend:Y,joinLatencySecs:I,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:P,playerCanaryStage:T,isAd:this.provider.videoData.isAd(),liveMode:k,hasDrm:!!g.U4(this.provider.videoData),isGapless:this.provider.videoData.G,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:mX(this.provider.videoData)};W||g.W8("html5PlayerHealthEvent",Y);this.J=!0;this.dispose()}}; Kn.prototype.iz=function(){this.J||this.send();window.removeEventListener("error",this.hm);window.removeEventListener("unhandledrejection",this.hm);g.e.prototype.iz.call(this)}; var DvN=/\bnet\b/;HdF.prototype.update=function(){if(this.G){var W=this.tD()||0,Y=g.TA(this.provider);W>=this.provider.W6.getDuration()-.1&&(this.previouslyEnded=!0);if(W!==this.W||Gdd(this,W,Y)){var k;if(!(k=WY-this.PF+2||Gdd(this,W,Y))){k=this.provider.W6.getVolume();var P=k!==this.N,T=this.provider.W6.isMuted()?1:0;T!==this.L?(this.L=T,k=!0):(!P||this.T>=0||(this.N=k,this.T=Y),k=Y-this.T,this.T>=0&&k>2?(this.T=-1,k=!0):k=!1)}k&&(JS(this),this.J=W);this.PF=Y;this.W=W}}}; HdF.prototype.tD=function(){var W=this.provider.W6.tD();return this.provider.zJ.U("html5_disable_live_dvr_shrink_for_cdm_vss")&&dR(this.provider.videoData)?W+this.provider.W6.m2():W};K3z.prototype.send=function(W){var Y=this;if(!this.Q5){var k=J3q(this),P=g.MH(this.uri,k);this.zJ.U("vss_through_gel_double")&&sW1(P);this.gD&&!this.zJ.U("html5_simplify_pings")?m7d(this,P):EH7(this,W).then(function(T){Y.gD&&(T=T||{},T.method="POST",T.postParams={atr:Y.attestationResponse});pVS(P,T,{token:Y.Kg,T6:Y.K1,mdxEnvironment:Y.mdxEnvironment},Y.zJ,W,Y.TJ,Y.isFinal&&Y.k8||Y.OP||Y.J&&Y.Dm)}); this.Q5=!0}}; K3z.prototype.K=function(W){W===void 0&&(W=NaN);return Number(W.toFixed(3)).toString()}; var KE={},zA5=(KE.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,KE.LIVING_ROOM_APP_MODE_MAIN=1,KE.LIVING_ROOM_APP_MODE_KIDS=2,KE.LIVING_ROOM_APP_MODE_MUSIC=3,KE.LIVING_ROOM_APP_MODE_UNPLUGGED=4,KE.LIVING_ROOM_APP_MODE_GAMING=5,KE),E_={},A30=(E_.EMBEDDED_PLAYER_MODE_UNKNOWN=0,E_.EMBEDDED_PLAYER_MODE_DEFAULT=1,E_.EMBEDDED_PLAYER_MODE_PFP=2,E_.EMBEDDED_PLAYER_MODE_PFL=3,E_);g.H(rx,g.e);rx.prototype.onProgress=function(){this.W.update();vH1(this)&&(F31(this),wFd(this))}; rx.prototype.iz=function(){g.e.prototype.iz.call(this);dx(this);nHF(this.W)}; rx.prototype.ER=function(){return J3q(AS(this,"playback"))}; rx.prototype.Tv=function(W){var Y=AS(this,"engage");Y.wD=W;return r3d(Y,c37(this.provider))};bd0.prototype.isEmpty=function(){return this.endTime===this.startTime};DB.prototype.U=function(W){return this.zJ.U(W)}; DB.prototype.getCurrentTime=function(){return this.W6.getCurrentTime()}; DB.prototype.tD=function(){return this.W6.tD()}; var x7C={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.H(g.gx,g.e);g.R=g.gx.prototype;g.R.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.vU){var W;(W=this.J.get(this.vU))==null||W.onProgress()}else if(this.W)this.W.onProgress()}; g.R.aZ=function(W){this.qoe&&this.qoe.aZ(W)}; g.R.l_=Wd(29);g.R.cK=Wd(35);g.R.gP=function(W,Y){this.qoe&&this.qoe.gP(W,Y)}; g.R.vA=function(){if(this.provider.videoData.enableServerStitchedDai&&this.vU){var W;(W=this.J.get(this.vU))!=null&&JS(W.W)}else this.W&&JS(this.W.W)}; g.R.Pz=function(W,Y){this.qoe&&o90(this.qoe,W,Y);if(this.K)this.K.onError(W)}; g.R.BO=function(W){var Y;(Y=this.qoe)==null||Y.BO(W)}; g.R.onPlaybackRateChange=function(W){if(this.qoe)this.qoe.onPlaybackRateChange(W);this.W&&JS(this.W.W)}; g.R.Bu=Wd(52);g.R.y5=function(W,Y,k){this.qoe&&this.qoe.y5(W,Y,k)}; g.R.uM=function(W,Y,k){this.qoe&&this.qoe.uM(W,Y,k)}; g.R.e7=function(W){var Y;(Y=this.qoe)==null||Y.e7(W)}; g.R.k9=function(W){var Y;(Y=this.qoe)==null||Y.k9(W)}; g.R.Y0=function(W,Y,k,P){var T;(T=this.qoe)==null||T.Y0(W,Y,k,P)}; g.R.zb=function(W){this.qoe&&this.qoe.zb(W)}; g.R.iZ=function(W,Y,k){this.qoe&&this.qoe.iZ(W,Y,k)}; g.R.Kh=Wd(23);g.R.IY=function(){if(this.qoe)return this.qoe.IY()}; g.R.ER=function(){if(this.provider.videoData.enableServerStitchedDai&&this.vU){var W,Y;return(Y=(W=this.J.get(this.vU))==null?void 0:W.ER())!=null?Y:{}}return this.W?this.W.ER():{}}; g.R.ST=function(){var W;return(W=this.qoe)==null?void 0:W.ST()}; g.R.H9=function(W,Y){var k;(k=this.qoe)==null||k.H9(W,Y)}; g.R.Tv=function(W){return this.W?this.W.Tv(W):function(){}}; g.R.getVideoData=function(){return this.provider.videoData}; g.R.resume=function(){this.qoe&&this.qoe.resume()};g.H(g.wx,g.e);g.R=g.wx.prototype;g.R.Bz=function(W,Y){this.sync();Y&&this.W.array.length>=2E3&&this.wq("captions",1E4);Y=this.W;if(W.length>1&&W.length>Y.array.length)Y.array=Y.array.concat(W),Y.array.sort(Y.W);else{W=g.p(W);for(var k=W.next();!k.done;k=W.next())k=k.value,!Y.array.length||Y.W(k,Y.array[Y.array.length-1])>0?Y.array.push(k):g.cp(Y.array,k,Y.W)}this.J=NaN;this.sync()}; g.R.aB=function(W){W.length>1E4&&g.Kx(new g.Qq("Over 10k cueRanges removal occurs with a sample: ",W[0]));if(!this.Xr()){var Y=new Set(W);this.K=this.K.filter(function(k){return!Y.has(k)}); BKd(this.W,Y);this.sync()}}; g.R.g0=function(W,Y){if(!this.Xr()){var k=this.R7().find(function(P){return P.id===Y&&P.namespace===W}); k&&this.aB([k])}}; g.R.wq=function(W,Y){var k=(isNaN(this.J)?MJ6(this):this.J)-Y;Y=this.R7().filter(function(P){return P.namespace===W&&P.endthis.W,I=g.b(k,8)&&g.b(k,16),X=this.W6.qz().isBackground()||k.isSuspended();cB(this,this.rD,I&&!X,T,"qoe.slowseek",function(){},"timeout"); var h=isFinite(this.W);h=I&&h&&biz(Y,this.W);var B=!P||Math.abs(P-this.W)>10,O=this.zJ.U("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),u=P===0&&this.K&&[11,10].includes(this.K);cB(this,this.Q5,h&&B&&!X&&(!O||!u),T,"qoe.slowseek",function(){Y.seekTo(W.W)},"set_cmt"); B=h&&jc(Y.EE(),this.W);var Z=this.W6.loader;h=!Z||Z.BA();var M=function(){Y.seekTo(W.W+.001)}; cB(this,this.OP,B&&h&&!X,T,"qoe.slowseek",M,"jiggle_cmt");h=function(){return W.W6.Je()}; cB(this,this.Fr,B&&!X,T,"qoe.slowseek",h,"new_elem");var t=Q8(k);u=k.isBuffering();var q=Y.EE(),G=Tc(q,P),J=G>=0&&q.end(G)>P+5;B=t&&u&&J;O=this.W6.getVideoData();cB(this,this.UP,P<.002&&this.W<.002&&I&&g.Zw(this.zJ)&&g.IR(O)&&!X,T,"qoe.slowseek",h,"slow_seek_shorts");cB(this,this.N,O.xZ()&&I&&!X&&!O.Kg,T,"qoe.slowseek",h,"slow_seek_gapless_shorts");cB(this,this.A5,B&&!X,t&&!u,"qoe.longrebuffer",M,"jiggle_cmt");cB(this,this.Kg,B&&!X,t&&!u,"qoe.longrebuffer",h,"new_elem_nnr");if(Z){var d=Z.getCurrentTime(); I=Y.OG();I=Fs7(I,d);I=!Z.isSeeking()&&P===I;cB(this,this.J9,t&&u&&I&&!X,t&&!u&&!I,"qoe.longrebuffer",function(){Y.seekTo(d)},"seek_to_loader")}I={}; M=Tc(q,Math.max(P-3.5,0));var A=M>=0&&P>q.end(M)-1.1,F=M>=0&&M+1=0&&A&&F<11;I.close2edge=A;I.gapsize=F;I.buflen=q.length;this.K&&(I.seekSour=this.K);cB(this,this.wD,t&&u&&!X,t&&!u,"qoe.longrebuffer",function(){},"timeout",I); I=k.isSuspended();I=this.W6.ri()&&!I;cB(this,this.G,I,!I,"qoe.start15s",function(){W.W6.sU("ad")},"ads_preroll_timeout"); I=this.zJ.experiments.Nq("html5_use_playback_rate_in_skip_slow_ad")?this.W6.getPlaybackRate()*1E3:1E3;G=P-this.T5;cB(this,this.V5,g.IR(O)&&Z,t&&!u,"qoe.longrebuffer",function(){W.W6.yg()},"reset_media_source"); cB(this,this.GJ,g.IR(O)&&Z,t&&!u,"qoe.longrebuffer",h,"reset_media_element");this.T===0&&(this.X=P);Z=u&&this.W===0&&P>1&&P===this.X;cB(this,this.TJ,g.IR(O)&&Z,t&&!u,"qoe.slowseek",function(){Y.seekTo(0)},"reseek_after_time_jump"); X=k.isOrWillBePlaying()&&!X;J=this.W6.qA()-P<6&&!J&&this.W6.j9();cB(this,this.L,O.xZ()&&X&&u&&J,t&&!u,"qoe.longrebuffer",function(){W.W6.Je(!1,!0)},"handoff_end_long_buffer_reload"); X=this.K===104||this.W6.Q4;k=rR(O)&&O.isAd()&&!O.Kg&&X&&(u||g.b(k,8)&&g.b(k,16));cB(this,this.bz,k,T,"qoe.start15s",h,"gapless_ad_slow_start");k=rR(O)&&!O.Kg&&X&&B;cB(this,this.e1,k,T,"qoe.longrebuffer",h,"gapless_slow_start");this.T=P;this.C.start()}}; bA.prototype.Pz=function(W,Y,k){Y=this.ER(Y);Y.wn=k;Y.wdup=this.J[W]?"1":"0";this.W6.Pz(new g.uZ(W,Y));this.J[W]=!0}; bA.prototype.ER=function(W){W=Object.assign(this.W6.ER(!0),W.ER());this.W&&(W.stt=this.W.toFixed(3));this.W6.getVideoData().isLivePlayback&&(W.ct=this.W6.getCurrentTime().toFixed(3),W.to=this.W6.m2().toFixed(3));delete W.uga;delete W.euri;delete W.referrer;delete W.fexp;delete W.vm;return W}; lA.prototype.reset=function(){this.W=this.K=this.J=this.startTimestamp=0;this.T=!1}; lA.prototype.test=function(W){if(!this.C||this.K)return!1;if(!W)return this.reset(),!1;W=(0,g.q5)();if(!this.startTimestamp)this.startTimestamp=W,this.J=0;else if(this.J>=this.C)return this.K=W,!0;this.J+=1;return!1}; lA.prototype.ER=function(){var W={},Y=(0,g.q5)();this.startTimestamp&&(W.wsd=(Y-this.startTimestamp).toFixed());this.K&&(W.wtd=(Y-this.K).toFixed());this.W&&(W.wssd=(Y-this.W).toFixed());return W};g.H(g6z,g.e);g.R=g6z.prototype;g.R.setMediaElement=function(W){(this.mediaElement=W)?(this.mediaElement&&(this.C||this.J||!this.mediaElement.yP()||this.seekTo(.01,{Fi:"seektimeline_setupMediaElement"})),xL(this)):VG(this)}; g.R.getCurrentTime=function(W){W=W===void 0?!1:W;if(fn(this.W6)){if(this.U("html5_use_centralized_player_time")&&!W&&!isNaN(this.X))return this.X;if(!isNaN(this.K))return this.K}else{if(this.U("html5_use_centralized_player_time")&&!W&&!isNaN(this.X)&&isFinite(this.X))return this.X;if(!isNaN(this.K)&&isFinite(this.K))return this.K}return this.mediaElement&&fyz(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.J||0}; g.R.sG=function(){return this.bz}; g.R.tD=function(){return this.getCurrentTime()-this.m2()}; g.R.Hl=function(){return this.W?this.W.Hl():Infinity}; g.R.isAtLiveHead=function(W){if(!this.W)return!1;W===void 0&&(W=this.getCurrentTime());return Cn(this.W,W)}; g.R.Ar=function(){return!!this.W&&this.W.Ar()}; g.R.seekTo=function(W,Y){var k=Y===void 0?{}:Y;Y=k.eh===void 0?!1:k.eh;var P=k.nz===void 0?0:k.nz;var T=k.jx===void 0?!1:k.jx;var I=k.oO===void 0?0:k.oO;var X=k.Fi===void 0?"":k.Fi;var h=k.seekSource===void 0?void 0:k.seekSource;var B=k.ul===void 0?!1:k.ul;var O=k.dT===void 0?!1:k.dT;k=k.ED===void 0?!1:k.ED;B&&(W+=this.m2());mX(this.videoData)&&h===29&&(this.bz=void 0);B=W=this.M6())||!g.Ns(this.videoData),G||(J={st:J,mst:this.M6()},this.W&&this.U("html5_high_res_seek_logging")&&(J.ht=this.W.Hl(),J.adft=vB(this.W)),this.W6.y5("seeknotallowed",J)),J=G));if(!J)return this.T&&(this.T=null,bOd(this)),g.sJ(this.getCurrentTime());J=.005;O&&this.U("html5_sabr_seek_no_shift_tolerance")&&(J=0);if(Math.abs(W-this.K)<=J&&this.TJ)return this.C;X&&(J=W,this.zJ.OR()||this.U("html5_log_seek_reasons"))&& (X={reason:X,tgt:J},this.U("html5_sabr_csdai_seek_log")&&(X.source=h),this.W6.y5("seekreason",X));h&&(this.A5.K=h);this.TJ&&VG(this);this.C||(this.C=new KY);W&&!isFinite(W)&&yJV(this,!1);(X=k||B)||(X=W,X=!(this.videoData.isLivePlayback&&this.videoData.J&&!this.videoData.J.W&&!(this.mediaElement&&this.mediaElement.Tg()>0&&Jf(this.mediaElement)>0)||QO(this.videoData)&&this.aI()===this.M6(!1)?0:isFinite(X)||!QO(this.videoData)));X||(W=ar(this,W,T));W&&!isFinite(W)&&yJV(this,!1);this.U("html5_use_centralized_player_time")? this.X=W:this.K=this.J=W;this.V5=I;this.G=0;this.W&&(T=this.W,I=W,rJ1(T,I,!1),AJq(T,I));T=this.W6;I=W;X={eh:Y,seekSource:h};T.O1.J=I;k=T.mY;k.mediaTime=I;k.W=!0;X.eh&&T.Rc(X);X=I>T.videoData.endSeconds&&I>T.videoData.limitedPlaybackDurationInSeconds;T.S9&&X&&isFinite(I)&&Jg2(T);IY.start&&Jg2(this.W6);return this.C}; g.R.M6=function(W){if(!this.videoData.isLivePlayback)return this.W6.videoData.M6();var Y;return nl(this.videoData)&&((Y=this.mediaElement)==null?0:Y.isPaused())&&this.videoData.W?(W=this.getCurrentTime(),$gd(this.hT(W)*1E3)+W):this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&mX(this.videoData)&&this.videoData.W?W?this.videoData.W.wD||0:this.videoData.W.KL||0:QO(this.videoData)&&this.videoData.wD&&this.videoData.W?this.videoData.W.M6()+this.timestampOffset:this.videoData.J&&this.videoData.J.W? !W&&this.W?this.W.Hl():this.W6.videoData.M6()+this.timestampOffset:this.mediaElement?Qp()?$gd(this.mediaElement.Xe().getTime()):Jf(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.R.aI=function(){if(this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&mX(this.videoData)){var W;return((W=this.videoData.W)==null?void 0:W.UK)||0}W=this.videoData?this.videoData.aI()+this.timestampOffset:this.timestampOffset;if(nl(this.videoData)&&this.videoData.W){var Y,k=Number((Y=this.videoData.progressBarStartPosition)==null?void 0:Y.utcTimeMillis)/1E3;if(this.U("html5_unify_utc_media_time_calculation")){if(!isNaN(k)&&(k=this.Tc(k),!isNaN(k)))return Math.max(W,k)}else if(Y=this.getCurrentTime(), Y=this.hT(Y)-Y,!isNaN(k)&&!isNaN(Y))return Math.max(W,k-Y)}return W}; g.R.z5=function(){this.C||this.seekTo(this.J,{Fi:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.R.o_=function(){return this.TJ&&!isFinite(this.K)}; g.R.iz=function(){eFz(this,null);this.A5.dispose();g.e.prototype.iz.call(this)}; g.R.ER=function(){var W={};this.loader&&Object.assign(W,this.loader.ER());this.mediaElement&&Object.assign(W,this.mediaElement.ER());return W}; g.R.Ux=function(W){this.timestampOffset=W}; g.R.getStreamTimeOffset=function(){return QO(this.videoData)?0:this.videoData.W?this.videoData.W.getStreamTimeOffset():0}; g.R.m2=function(){return this.timestampOffset}; g.R.hT=function(W){return this.videoData&&this.videoData.W?this.videoData.W.hT(W-this.timestampOffset):NaN}; g.R.UG=function(){if(!this.mediaElement)return 0;if(a4(this.videoData)){var W=this.mediaElement,Y=W.EE();W=(Sc(Y)&&W.getDuration()?Y.end(Y.length-1):0)+this.timestampOffset-this.aI();Y=this.M6()-this.aI();return Math.max(0,Math.min(1,W/Y))}return this.mediaElement.UG()}; g.R.xX=function(W){this.L&&(this.L.W=W)}; g.R.wk=function(W,Y){this.W6.y5("requestUtcSeek",{time:W});mX(this.videoData)&&(this.bz=W);var k;(k=this.loader)==null||k.wk(W);Y&&(this.gD=Y)}; g.R.Ed=function(W){mX(this.videoData)&&(this.bz=void 0);if(this.gD)this.W6.y5("utcSeekingFallback",{source:"streamTime",timeSeconds:this.gD}),this.W6.seekTo(this.gD,{Fi:"utcSeekingFallback_streamTime"}),this.gD=0;else{if(this.U("html5_unify_utc_media_time_calculation")){var Y=this.Tc(W);if(isNaN(Y))return}else{Y=this.getCurrentTime();if(isNaN(Y))return;W=this.hT(Y)-W;Y-=W}this.W6.y5("utcSeekingFallback",{source:"estimate",timeSeconds:Y});this.W6.seekTo(Y,{Fi:"utcSeekingFallback_estimate"})}}; g.R.Df=function(){this.gD=0}; g.R.Tc=function(W){var Y=this.getCurrentTime();if(isNaN(Y))return NaN;var k=this.hT(Y);return isNaN(k)?NaN:W-(k-Y)}; g.R.U=function(W){return this.zJ&&this.zJ.U(W)};g.H(WF,g.e);WF.prototype.start=function(){this.K.start()}; WF.prototype.stop=function(){this.K.stop()}; WF.prototype.clear=function(){for(var W=g.p(this.W.values()),Y=W.next();!Y.done;Y=W.next())Y.value.clear()}; WF.prototype.sample=function(){for(var W=g.p(this.J),Y=W.next();!Y.done;Y=W.next()){var k=g.p(Y.value);Y=k.next().value;k=k.next().value;this.W.has(Y)||this.W.set(Y,new $AC(gIh.has(Y)));this.W.get(Y).update(k())}this.K.start()}; var gIh=new Set(["networkactivity"]);$AC.prototype.update=function(W){this.K?(this.buffer.add(W-this.W||0),this.W=W):this.buffer.add(W)}; $AC.prototype.clear=function(){this.buffer.clear();this.W=0};kH.prototype.Q9=function(){return this.started}; kH.prototype.start=function(){this.started=!0}; kH.prototype.reset=function(){this.finished=this.started=!1};var I6d=!1;g.H(g.IW,g.NR);g.R=g.IW.prototype;g.R.iz=function(){this.logger.debug("dispose");g.hB(this.aQ);eRd(this.R6);this.visibility.unsubscribe("visibilitystatechange",this.R6);Whd(this.FA);g.Wu(this.FA);h3(this);g.Dx.Ca(this.r7);this.Fb();this.o6=null;g.Wu(this.videoData);g.Wu(this.nL);g.Wu(this.Zy);g.Wu(this.fA);g.Yn(this.V11);this.S9=null;g.NR.prototype.iz.call(this)}; g.R.iZ=function(W,Y,k,P,T){if(this.zJ.U("html5_log_ad_playback_docid")){var I=this.FA;if(I.qoe){I=I.qoe;var X=this.zJ.A5||"yt";g.$L(I,g.TA(I.provider),"ad_playback",[W,Y,k,T,X])}}else this.FA.iZ(W,Y,k);this.U("html5_log_media_perf_info")&&this.y5("adloudness",{ld:P.toFixed(3),cpn:W})}; g.R.D$=function(){var W;return(W=this.loader)==null?void 0:W.D$()}; g.R.Qs=function(){var W;return(W=this.loader)==null?void 0:W.Qs()}; g.R.Qg=function(){var W;return(W=this.loader)==null?void 0:W.Qg()}; g.R.Cm=function(){var W;return(W=this.loader)==null?void 0:W.Cm()}; g.R.t$=function(){return this.videoData.t$()}; g.R.Jf=function(){return this.U("html5_not_reset_media_source")&&!this.t$()&&!this.videoData.isLivePlayback&&g.IR(this.videoData)&&!this.zJ.supportsGaplessShorts()}; g.R.QN=function(){this.videoData.G&&(this.videoData.I5=this.videoData.I5||this.GW.D2().D$(),this.videoData.Ey=this.videoData.Ey||this.GW.D2().Qs());if(Lwd(this.videoData)||!RR(this.videoData)){var W=this.videoData.errorDetail;this.SW(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),W,W,this.videoData.OX||void 0)}this.U("html5_generate_content_po_token")&&this.O4();this.U("html5_enable_d6de4")&&this.NP()}; g.R.getVideoData=function(){return this.videoData}; g.R.V=function(){return this.zJ}; g.R.w9=function(){return this.vl.w9(this.o6)}; g.R.qz=function(){return this.visibility}; g.R.Ud=function(){return this.mediaElement&&this.mediaElement.vr()?this.mediaElement.Tn():null}; g.R.bd=function(){return this.mediaElement}; g.R.L4=function(){if(this.videoData.errorCode)return!1;this.V().X&&this.V().houseBrandUserStatus&&this.y5("hbut",{status:this.V().houseBrandUserStatus},!0);if(this.videoData.Nt())return!0;this.SW("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.R.s$=function(W){(W=W===void 0?!1:W)||fb2(this.FA);this.Zn=W;!this.L4()||this.AU.Q9()?g.Zw(this.zJ)&&this.videoData.isLivePlayback&&this.AU.Q9()&&!this.AU.finished&&!this.Zn&&this.MG():(this.AU.start(),W=this.FA,g.TA(W.provider),W.qoe&&yDC(W.qoe),this.MG())}; g.R.MG=function(){if(this.videoData.isLoaded()){var W=this.nL;g.W2(W.pg.experiments,"html5_player_min_build_cl")>0&&g.W2(W.pg.experiments,"html5_player_min_build_cl")>796671093&&fBz(W,"oldplayer");pid(this)}else this.videoData.k7||this.videoData.y7?this.Zn&&g.Zw(this.zJ)&&this.videoData.isLivePlayback||(this.videoData.k7?snd(this.videoData):(W=this.FA,W.qoe&&(W=W.qoe,Ir(W,"protected"),W.provider.videoData.C?W.gL():W.provider.videoData.subscribe("dataloaded",W.gL,W)),Gvz(this.videoData))):!this.videoData.loading&& this.kd&&RoV(this)}; g.R.r0=function(W){this.Ha=W;this.loader&&(ej2(this.loader,new g.BB(W)),this.y5("sdai",{sdsstm:1}))}; g.R.uZ=function(W,Y,k){var P;(P=this.loader)==null||P.uZ(W,Y,k)}; g.R.Zj=Wd(8);g.R.isFullscreen=function(){return this.visibility.isFullscreen()}; g.R.isBackground=function(){return this.visibility.isBackground()}; g.R.V0=function(){var W=this;this.logger.debug("Updating for format change");Xy(this).then(function(){return jo(W)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.R.rY=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.s$();this.L4()&&!g.b(this.playerState,128)&&(this.yR.Q9()||(this.yR.start(),this.videoData.Ka?this.AT(DQ(this.playerState,4)):this.AT(DQ(DQ(this.playerState,8),1))),Hyz(this))}; g.R.T2=function(){return this.AU.finished}; g.R.sendAbandonmentPing=function(){g.b(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.jZ(!0),Whd(this.FA),g.Wu(this.FA),g.Dx.Ca(this.r7))}; g.R.XT=function(W,Y,k){W=W===void 0?!0:W;(Y===void 0||Y)&&this.mediaElement&&this.mediaElement.pause();W&&k&&this.loader&&QO(this.videoData)&&this.loader.Y0(k);this.AT(W?new g.zc(14):new g.zc)}; g.R.HD=function(){this.FA.vA()}; g.R.SW=function(W,Y,k,P,T,I){this.logger.debug(function(){return"set player error: ec="+W+", detail="+T}); var X,h;g.hm(cx9,k)?X=k:k?h=k:X="GENERIC_WITHOUT_LINK";P=(P||"")+(";a6s."+cE());if(W==="auth"||W==="drm.auth"||W==="heartbeat.stop")k&&(P+=";r."+k.replaceAll(" ","_")),I&&(P+="sr."+I.replaceAll(" ","_"));Y={errorCode:W,errorDetail:T,errorMessage:h||g.cK[X]||"",bI:X,OX:I||"",vJ:P,AI:Y,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=W;So(this,"dataloaderror");this.AT(mW(this.playerState,128,Y));g.Dx.Ca(this.r7);h3(this);this.lw()}; g.R.sU=function(W){this.sy=this.sy.filter(function(Y){return W!==Y}); this.logger.debug(function(){return"set preroll ready for "+W}); this.yR.Q9()&&Hyz(this)}; g.R.IS=function(){var W;(W=!!this.sy.length)||(W=this.Pk.W.array[0],W=!!W&&W.start<=-0x8000000000000);return W}; g.R.Ar=function(){return this.O1.Ar()}; g.R.isPlaying=function(){return this.playerState.isPlaying()}; g.R.jT=function(){return this.playerState.jT()&&this.videoData.Ka}; g.R.getPlayerState=function(){return this.playerState}; g.R.fS=function(W){var Y;(Y=this.loader)==null||Y.fS(W)}; g.R.Z8=function(W){var Y;(Y=this.loader)==null||Y.Z8(W)}; g.R.getPlayerType=function(){return this.playerType}; g.R.getPreferredQuality=function(){if(this.o6){var W=this.o6;W=W.videoData.Nm.compose(W.videoData.aW);W=zC(W)}else W="auto";return W}; g.R.Vg=Wd(16);g.R.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.R.setMediaElement=function(W){this.logger.debug("set media element");if(this.mediaElement&&W.Tn()===this.mediaElement.Tn()&&(W.isView()||this.mediaElement.isView())){if(W.isView()||!this.mediaElement.isView())this.UY(),this.mediaElement=W,this.mediaElement.W6=this,yg2(this),this.O1.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Fb();if(!this.playerState.isError()){var Y=g6(this.playerState,512);g.b(Y,8)&&!g.b(Y,2)&&(Y=DQ(Y,1));W.isView()&&(Y=g6(Y,64));this.AT(Y)}this.mediaElement= W;this.mediaElement.W6=this;!g.Zw(this.zJ)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);yg2(this);this.O1.setMediaElement(this.mediaElement);this.U("html5_prewarm_media_source")&&!this.nL.ez()&&Coq(this.mediaElement)}}; g.R.Fb=function(W,Y,k){W=W===void 0?!1:W;Y=Y===void 0?!1:Y;k=k===void 0?!1:k;this.logger.debug("remove media element");if(this.mediaElement){var P=this.getCurrentTime();P>0&&(this.O1.J=P);this.O1.setMediaElement(null);!W&&this.Jf()?DAX(this):this.Fo(k);this.loader&&(Vv(this.loader),Zb(this,Y));this.Pb.stop();if(this.mediaElement&&(!this.yR.Q9()&&!this.ri()||this.playerState.isError()||g.b(this.playerState,2)||this.AT(DQ(this.playerState,512)),this.mediaElement)){this.UY();if(W||!this.mediaElement.isView())this.C1.k0("mesv_s"), this.mediaElement.stopVideo(),iz(this);this.mediaElement=this.mediaElement.W6=null}}}; g.R.playVideo=function(W,Y){W=W===void 0?!1:W;Y=Y===void 0?!1:Y;var k=this,P,T,I,X,h,B;return g.D(function(O){if(O.W==1){k.logger.debug("start play video");var u=window.google_image_requests;u&&u.length>10&&(window.google_image_requests=u.slice(-10));if(g.b(k.playerState,128))return O.return();if(k.nL.hR())return k.publish("signatureexpired"),O.return();k.mediaElement&&fb2(k.FA);k.rY();(g.b(k.playerState,64)||W)&&k.AT(DQ(k.playerState,8));return k.yR.finished&&k.mediaElement?k.o6||!k.UF?O.oi(2):g.m(O, k.UF,3):O.return()}if(O.W!=2&&g.b(k.playerState,128))return O.return();if(!k.videoData.J)return k.videoData.isLivePlayback&&!g.KA(k.zJ.C,!0)?(P="html5.unsupportedlive",T=2):(P=k.videoData.t$()?"fmt.unplayable":"fmt.noneavailable",T=1),g.Kx(Error("selectableFormats")),k.SW(P,T,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),O.return();if(k.Y7()&&k.videoData.J.W)return k.logger.debug("rebuild playbackData for airplay"),O.return(Xy(k));if(fn(k))u=k.O1,wR(u.videoData)&&!u.isAtLiveHead(u.getCurrentTime())&& u.Ar()&&u.W6.seekTo(Infinity,{Fi:"seektimeline_peggedToLive",seekSource:34});else if(wR(k.videoData)&&(I=k.getCurrentTime()X;if(!h||!X){T&&h&&(I=Math.max(I,T));var B;T=$76(Y,(B=P.W)==null?void 0:B.videoInfos);B=Y.W6.getPlaybackRate();B>1&&T&&(B=$ZS(Y.zJ.C,P.W.videoInfos,B),W.W!==0&&B=480;if(Y.U("html5_exponential_memory_for_sticky")){O=Y.zJ.CN;u=1;var Z=Z===void 0?!1:Z;wv7(O,"sticky-lifetime");O.values["sticky-lifetime"]&&O.XO["sticky-lifetime"]||(O.values["sticky-lifetime"]=0,O.XO["sticky-lifetime"]=0);Z&&fA(O,"sticky-lifetime")>.0625&&(u=O.XO["sticky-lifetime"]*2);O.values["sticky-lifetime"]+=1*Math.pow(2, O.W/u);O.XO["sticky-lifetime"]=u;O.T.start()}if(Y.U("html5_perf_cap_override_sticky")){Z=Y.J;Y=Y.U("html5_perserve_av1_perf_cap");Y=Y===void 0?!1:Y;if(Y===void 0?0:Y){O=tM();u=g.p(Object.keys(O));for(W=u.next();!W.done;W=u.next())W=W.value,W.indexOf("1")!==0&&delete O[W];g.Ke("yt-player-performance-cap",O,2592E3)}else g.Jl("yt-player-performance-cap");VOv(Y);if(Y){Y=g.p(Wq.keys());for(O=Y.next();!O.done;O=Y.next())O=O.value,O.startsWith("1")||Wq.delete(O);Y=g.p(GA.values());for(O=Y.next();!O.done;O= Y.next())O=O.value,O.startsWith("1")||GA.delete(O);Y=g.p(Z.keys());for(O=Y.next();!O.done;O=Y.next())O=O.value,O.startsWith("1")||Z.delete(O)}else Wq.clear(),GA.clear(),Z.clear()}}}}this.loader&&(Y=this.loader,k=k||"",Y.policy.W?Ot(Y.T.W,k):Ot(Y.W.C,k));this.rf()}; g.R.getUserPlaybackQualityPreference=function(){return this.videoData.J&&!this.videoData.J.W?zC(this.videoData.Nm):AM[iW()]}; g.R.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.R.setUserAudio51Preference=function(W,Y){this.getUserAudio51Preference()!==W&&(this.y5("toggle51",{pref:W}),g.Ke("yt-player-audio51",W,Y?31536E3:2592E3),this.V0())}; g.R.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.R.setProximaLatencyPreference=function(W){var Y=this.getProximaLatencyPreference();this.y5("proxima",{pref:W});g.Ke("yt-player-proxima-pref",W,31536E3);Y!==W&&(W=this.O1,W.e1=!0,W.W6.seekTo(Infinity,{Fi:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.R.getProximaLatencyPreference=function(){var W;return(W=Me())!=null?W:0}; g.R.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.R.O4=function(){this.videoData.videoId?this.GW.O4(this.videoData):this.y5("povid",{})}; g.R.NP=function(){this.videoData.videoId?this.GW.NP(this.videoData):this.y5("piavid",{})}; g.R.rf=function(){if(!this.Xr()&&!g.b(this.playerState,128)&&this.videoData.J){if(this.videoData.J.W)Td(this);else{var W=uz(this),Y=this.videoData;a:{var k=this.videoData.xq;if(W.W){for(var P=g.p(k),T=P.next();!T.done;T=P.next()){T=T.value;var I=T.getInfo(),X=g.FP[I.video.quality];if((!W.J||I.video.quality!=="auto")&&X<=W.W){k=T;break a}}k=k[k.length-1]}else k=k[0]}Y.rD=k;stF(this,W.reason,vcV(this,this.videoData.rD))}if(this.U("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.O1.N= !1,this.playVideo()}}; g.R.s4=function(W,Y){if(this.Xr()||g.b(this.playerState,128))return!1;var k,P=!((k=this.videoData.J)==null||!k.W);k=P&&Y?this.getCurrentTime()-this.m2():NaN;if(W.Ib&&W.Ib.id){var T=this.FA;if(T.qoe){T=T.qoe;var I=[W.Ib.id,isNaN(k)?"m":"t"];g.$L(T,g.TA(T.provider),"afi",I)}}if(P)return Y&&(P=v6V(this.O1),this.y5("aswh",{id:W.id,xtags:W.xtags,bh:P.toFixed(3)})),this.loader.setAudioTrack(W,k,Y),!0;if(Agd(this)){a:{Y=this.mediaElement.audioTracks();for(P=0;P=0?W:this.getCurrentTime()}; g.R.hT=function(){var W;return((W=this.videoData.W)==null?0:W.hT)?this.videoData.W.hT(this.getCurrentTime()-this.m2()):this.mediaElement&&(W=this.mediaElement.Xe())&&(W=W.getTime(),!isNaN(W))?W/1E3+this.getCurrentTime():NaN}; g.R.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.m2():this.M6()?this.M6():0}; g.R.rH=function(){var W=new TK2;if(this.loader){var Y=this.zJ.schedule,k=this.zJ.OR();k=k===void 0?!1:k;W.FV=Y.wD;W.DU=Y.GJ;W.bandwidthEstimate=cq(Y);if(k){k=(Y.L.le()*1E3).toFixed();var P=(Y.TJ.le()*1E3).toFixed(),T=UC(Y).toFixed(2),I=((Y.G.le()||0)*1E9).toFixed(2),X=Y.J.le().toFixed(0),h=Y.OP.le().toFixed(0),B=Y.N.percentile(.5).toFixed(2),O=Y.N.percentile(.92).toFixed(2),u=Y.N.percentile(.96).toFixed(2),Z=Y.N.percentile(.98).toFixed(2);Y.W?Y.W.reset():Y.W=new FB;Y.W.add(Y.gD);Y.W.add(Y.interruptions.length); for(var M=0,t=Y.interruptions.length-1;t>=0;t--){var q=Y.interruptions[t];Y.W.add(q-M);M=q}M=0;for(t=Y.T.length-1;t>=0;t--){q=Y.T[t];var G=q.stamp/36E5;Y.W.add(G-M);M=G;Y.W.add(q.net/1E3);Y.W.add(q.max)}Y=Y.W.WK();W.W={ttr:k,ttm:P,d:T,st:I,bw:X,abw:h,v50:B,v92:O,v96:u,v98:Z,"int":Y}}yOd(this.loader,W)}else this.mediaElement&&(W.du=sM(this.mediaElement));W.FV=this.FV;W.DU=this.DU;W.J=this.isAtLiveHead()&&this.isPlaying()?tx0(this):NaN;Y=this.O1;Y=Y.W?vB(Y.W):0;W.T=Y;return W}; g.R.Dl=function(W,Y){this.DU+=W;this.FV+=Y}; g.R.UG=function(){return this.mediaElement?g.Ns(this.videoData)?1:a4(this.videoData)?this.isAtLiveHead()||this.Ar()?1:this.O1.UG():this.mediaElement.UG():0}; g.R.h4=function(){var W=this.Ab,Y=$H(W,"bandwidth"),k=$H(W,"bufferhealth"),P=$H(W,"livelatency"),T=$H(W,"networkactivity"),I=YH(W,"bandwidth"),X=YH(W,"bufferhealth"),h=YH(W,"livelatency");W=YH(W,"networkactivity");var B=this.Ea(),O=B.droppedVideoFrames;B=B.totalVideoFrames;var u=this.getCurrentTime();if(this.hY){var Z="IT/"+(this.hY.W.getInfo()+"/"+zC(this.Y5()));Z+="/"+this.hY.getInfo()}else Z="";var M=this.isGapless(),t=this.g_(),q=this.IY(),G=g.OS(this),J=this.getPlayerState(),d=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var A=0;var F="";if(this.Ha){if(this.Ha.U0){F="D,";break a}A=this.Ha.yY;F=this.Ha.eW.substring(0,4)}A>0?(A="AD"+A+", ",F&&(A+=F+", "),F=A):F=""}return{mU:I,v$:X,currentTime:u,zG:Z,droppedVideoFrames:O,isGapless:M,g_:t,mE:q,Hv:Y,q9:k,mM:P,I2:T,DR:h,CT:W,wB:G,playerState:J,tJ:d,Kx:F,totalVideoFrames:B}}; g.R.ER=function(W){var Y={};if(W===void 0?0:W){Object.assign(Y,this.FA.ER());this.mediaElement&&(Object.assign(Y,this.mediaElement.ER()),W=this.Ea(),Y.dvf=W.droppedVideoFrames,Y.tvf=W.totalVideoFrames);this.loader&&Object.assign(Y,this.loader.ER());this.hY&&(Y.drm=JSON.stringify(this.hY.ER()));Y.state=this.playerState.state.toString(16);g.b(this.playerState,128)&&(Y.debug_error=JSON.stringify(this.playerState.dc));this.IS()&&(Y.prerolls=this.sy.join(","));this.videoData.KH&&(Y.ismb=this.videoData.KH); this.videoData.latencyClass!=="UNKNOWN"&&(Y.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(Y.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)Y.is_mosaic=1;this.videoData.cotn&&(Y.is_offline=1,Y.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(Y.playerResponseCpn=this.videoData.playerResponseCpn);this.GW.isOrchestrationLeader()&&(Y.leader=1);this.videoData.isLivePlayback&& (this.videoData.W&&ba(this.videoData.W)&&(Y.segduration=ba(this.videoData.W)),W=this.O1,Y.lat=W.L?pKv(W.L.T):0,Y.liveutcstart=this.videoData.liveUtcStartSeconds);Y.relative_loudness=this.videoData.Zm.toFixed(3);if(W=g.OS(this))Y.optimal_format=W.video.qualityLabel;Y.user_qual=iW();Y.release_version=S[26]}Y.debug_videoId=this.videoData.videoId;return Y}; g.R.addCueRange=function(W){this.VR([W])}; g.R.removeCueRange=function(W){this.Pk.aB([W])}; g.R.uN=function(){var W=this.Pk;if(W.W6.V().U("html5_sort_cueranges_on_update")&&!(W.R7().length<=0||W.Xr())){var Y=W.W;Y.array.sort(Y.W)}W.sync()}; g.R.wq=function(W,Y){return this.Pk.wq(W,Y)}; g.R.VR=function(W,Y){this.Pk.Bz(W,Y)}; g.R.Mm=function(W){this.Pk.aB(W)}; g.R.R7=function(){return this.Pk.R7()||[]}; g.R.sL=function(){return this.oN}; g.R.Y7=function(){return this.visibility.Y7()}; g.R.i4=function(){this.mediaElement&&this.mediaElement.i4()}; g.R.dt2=function(){So(this)}; g.R.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.R.UY=function(){g.ne(this.MP)}; g.R.RNJ=function(){this.Xi();this.publish("onLoadProgress",this.UG())}; g.R.Kl=function(W){var Y=W.target.pn();if(this.mediaElement&&this.mediaElement.pn()&&this.mediaElement.pn()===Y){xAq(this,W.type);switch(W.type){case "error":var k=Af(this.mediaElement)||"",P=this.mediaElement.JD();if(k==="capability.changed"){this.U("html5_restart_on_capability_change")?(this.y5("capchg",{msg:P}),this.Je(!0)):Xy(this);return}if(this.mediaElement.hasError()&&lBv(this.nL,k,{msg:P,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.NI()===4){this.lw();BF(this,"unplayable"); return}break;case "durationchange":k=this.mediaElement.getDuration();isFinite(k)&&(!this.j1||k>0)&&k!==1&&this.Nv(k);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());OOC(this.Pk);this.FA.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Vx1(this);this.publish("onLoadedMetadata");ocz(this);k=this.hT();this.videoData.tp&&(this.videoData.tp=k);break;case "loadstart":ocz(this);break;case "progress":case "suspend":this.bA.n6(); break;case "seeked":(this.zJ.U("html5_sabr_ignore_skipad_before_completion")||this.zJ.U("html5_ignore_sabrseek_during_adskip"))&&(k=this.loader)!=null&&k.policy.K&&k.policy.Jj&&k.Dn&&(k.y5("sdai",{skipAdSked:"1"}),k.Dn=!1);break;case "playing":this.C1.k0("plev");this.gh&&!fn(this)&&(this.gh=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Fi:"videoplayer_onPlaying"})));break;case "timeupdate":k=this.mediaElement&&!this.mediaElement.getCurrentTime();P= this.mediaElement&&this.mediaElement.Tg()===0;if(k&&(!this.Py||P))return;this.Py=this.Py||!!this.mediaElement.getCurrentTime();eoX(this);this.Xi();if(!this.mediaElement||this.mediaElement.pn()!==Y)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.OG().length>0&&this.mediaElement.EE().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.U("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()|| this.mediaElement.Tg()>2||!this.mediaElement.isSeeking()&&jc(this.mediaElement.EE(),this.mediaElement.getCurrentTime()))&&(k=this.mediaElement.ER(),k.bh=sM(this.mediaElement).toFixed(3),this.y5("uwe",k));break;case "resize":Vx1(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.FG&&g.b(this.playerState,8)&&!g.b(this.playerState,1024)&&this.getCurrentTime()===0&&g.hj){BF(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.pn()===Y){ayd(this.O1,W);this.publish("videoelementevent",W);Y=this.playerState;P=this.mY;var T=this.mediaElement;k=this.videoData.clientPlaybackNonce;if(!g.b(Y,128)){var I=Y.state;T=T?T:W.target;var X=T.getCurrentTime();if(!g.b(Y,64)||W.type!=="ended"&&W.type!=="pause"){var h=T.getDuration();h=T.isEnded()||X>1&&Math.abs(X-h)<1.1;var B=W.type==="pause"&&T.isEnded();X=W.type==="ended"||W.type==="waiting"||W.type==="timeupdate"&&!g.b(Y,4)&&!QG(P,X);if(B|| h&&X)T.m7()>0&&T.pn()&&(I=14);else switch(W.type){case "error":Af(T)&&(I|=128);break;case "pause":g.b(Y,256)?(I^=256)||(I=64):g.b(Y,32)||g.b(Y,2)||g.b(Y,4)||(I=4,g.b(Y,1)&&g.b(Y,8)&&(I|=1));break;case "playing":X=I;I=(I|8)&-1093;X&4?(I|=1,d6(P,T,!0)):QG(P,T.getCurrentTime())&&(I&=-2);g.b(Y,1)&&d6(P,T)&&(I|=1);break;case "seeking":I|=16;g.b(Y,8)&&(I|=1);I&=-3;break;case "seeked":I&=-17;d6(P,T,!0);break;case "waiting":g.b(Y,2)||(I|=1);d6(P,T);break;case "timeupdate":X=g.b(Y,16),h=g.b(Y,4),(g.b(Y,8)|| X)&&!h&&QG(P,T.getCurrentTime())&&(I=8),d6(P,T)&&(I|=1)}}P=I;I=null;P&128&&(I=W.target,T=Af(I),X=1,T?(T==="capability.changed"&&(X=2),h="GENERIC_WITHOUT_LINK",B=I.ER(),B.mediaElem="1",B.trg="melem",/AUDIO_RENDERER/.test(I.JD())&&(h="HTML5_AUDIO_RENDERER_ERROR"),I={errorCode:T,errorMessage:g.cK[h]||"",bI:h,vJ:Ol(B),AI:X,cpn:Y.dc?Y.dc.cpn:""}):I=null,I&&(I.cpn=k));Y=mW(Y,P,I)}!g.b(this.playerState,1)&&g.b(Y,1)&&cg7(this,"evt"+W.type);this.AT(Y)}}}; g.R.a2a=function(W){W=W.W.availability==="available";W!==this.oN&&(this.oN=W,this.publish("airplayavailabilitychange"))}; g.R.Eag=function(){var W=(0,g.q5)(),Y=this.mediaElement.Y7();this.y5("airplay",{ia:Y});!Y&&!isNaN(this.Hq)&&W-this.Hq<2E3||(this.Hq=W,Y!==this.Y7()&&(W=this.visibility,W.W!==Y&&(W.W=Y,W.R6()),this.y5("airplay",{rbld:Y}),this.V0()),this.publish("airplayactivechange"))}; g.R.Od=function(W){if(this.loader){var Y=this.loader,k=Y.J,P=Y.getCurrentTime(),T=Date.now()-k.N;k.N=NaN;k.y5("sdai",{adfetchdone:W,d:T});W&&!isNaN(k.G)&&k.K!==3&&kR(k.loader,P,k.G,k.X);k.policy.K?k.C=NaN:k.T=NaN;$R(k,4,k.K===3?"adfps":"adf");Vv(Y)}}; g.R.l6=function(){g.hB(this.aQ);this.Pb.stop();this.videoData.Kg=!0;this.zJ.YF=!0;this.zJ.K1=0;var W=this.nL;if(W.videoData.K){var Y=W.pg.C,k=W.videoData.K.lz;Y.T.has(k)&&(Y.T.delete(k),Y.K=!0)}W.W.stop();this.Zf();g.b(this.playerState,8)&&this.AT(g6(this.playerState,65));this.Zn=!1;W=this.FA;W.W&&QWS(W.W);W.K&&(W=W.K,Y=g.TA(W.provider),W.W<0&&(W.W=Y,W.delay.start()),W.K=Y,W.T=Y);g.L_(this.Zy);this.publish("playbackstarted");(W=g.Wp("yt.scheduler.instance.clearPriorityThreshold"))?W():bC(0)}; g.R.Zf=function(){var W=this.GW.Kq(),Y={},k={};!sk("pbs",this.C1.timerName)&&Ok.measure&&Ok.getEntriesByName&&(Ok.getEntriesByName("mark_nr")[0]?j0F("mark_nr"):j0F());W.videoId&&(Y.videoId=W.videoId);W.clientPlaybackNonce&&!this.U("web_player_early_cpn")&&(Y.clientPlaybackNonce=W.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(k.isPausedOnLoad=!0);k.itag=W.K?Number(W.K.itag):-1;W.Cn&&(k.preloadType=String(this.bJ?2:1));Y.liveStreamMode=nIw[b0(W)];Y.playerInfo=k;this.C1.infoGel(Y); if(this.loader){W=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(W.J&&(Y=window.performance.getEntriesByName(W.J),Y.length&&(Y=Y[0],W.tick("vri",Y.fetchStart),W.tick("vdns",Y.domainLookupEnd),W.tick("vreq",Y.requestStart),W.tick("vrc",Y.responseEnd))),W.K&&(Y=window.performance.getEntriesByName(W.K),Y.length&&(Y=Y[0],W.tick("ari",Y.fetchStart),W.tick("adns",Y.domainLookupEnd),W.tick("areq",Y.requestStart),W.tick("arc",Y.responseEnd))));W=W.ticks;for(var P in W)W.hasOwnProperty(P)&& this.C1.tick(P,W[P])}}; g.R.Xi=function(W){var Y=this;W=W===void 0?!1:W;if(this.mediaElement&&this.videoData){CT2(this.O1,this.isPlaying());var k=this.getCurrentTime();if(this.loader&&(g.b(this.playerState,4)&&g.Ns(this.videoData)||g.b(this.playerState,32)&&mX(this.videoData)||vV5(this.loader,k),this.U("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var P;this.y5("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(P=this.loader)==null?void 0:P.currentTime},!0)}k> 5&&(this.O1.J=k);(P=g.lC())?g.Dx.Ca(this.r7):g.SU(this.r7);var T=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!T||nl(this.videoData))&&!g.b(this.playerState,128)){var I=function(){if(Y.mediaElement&&!g.b(Y.playerState,128)){Y.zJ.OR()&&xAq(Y,"pfx");var X=Y.getCurrentTime();Y.U("html5_buffer_underrun_transition_fix")&&(X-=Y.m2());var h=sM(Y.mediaElement),B=g.b(Y.playerState,8),O=QG(Y.mY,X),u=xyd(Y.mY,X,(0,g.q5)(),h);B&&O?Y.AT(g6(Y.playerState,1)):B&&u?(B=Y.getDuration(),O=wR(Y.videoData), B&&Math.abs(B-X)<1.1?(Y.y5("setended",{ct:X,bh:h,dur:B,live:O}),Y.mediaElement.kN()?(Y.logger.debug("seek to 0 because of looping"),Y.seekTo(0,{Fi:"videoplayer_loop",seekSource:37})):Y.XT()):(Y.playerState.isBuffering()||cg7(Y,"progress_fix"),Y.AT(DQ(Y.playerState,1)))):(B&&!O&&!u&&X>0&&(B=(Date.now()-Y.sS)/1E3,O=Y.getDuration(),X>O-1&&Y.y5("misspg",{t:X.toFixed(2),d:O.toFixed(2),r:B.toFixed(2),bh:h.toFixed(2)})),Y.playerState.isPaused()&&Y.playerState.isBuffering()&&sM(Y.mediaElement)>5&&Y.AT(g6(Y.playerState, 1)));Y.Xi()}}; this.mediaElement.OG().length===0?this.r7=P?g.Dx.r_(I,100):g.Ii(I,100):this.r7=P?g.Dx.r_(I,500):g.Ii(I,500)}this.videoData.UV=k;!W&&this.isPlaying()&&Cn6(this);OdX(this.vl,this.o6,this.bd(),this.isBackground())&&Td(this);this.publish("progresssync",W);T&&nl(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.R.Nn=function(){this.SW("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.R.IY=function(){return this.FA.IY()}; g.R.pm=function(){return this.loader?this.loader.pm():cq(this.zJ.schedule,!0)}; g.R.AT=function(W){if(!g.w6(this.playerState,W)){this.logger.debug(function(){return"Setting state "+W.toString()}); var Y=new g.T4(W,this.playerState);this.playerState=W;f67(this);var k=!this.lN.length;this.lN.push(Y);var P=this.mediaElement&&this.mediaElement.isSeeking();g.Sa(Y,1)&&this.loader&&$bd(this.loader);P=Y.oldState.state===8&&!P;g.Sa(Y,1)&&P&&g.b(this.playerState,8)&&!g.b(this.playerState,64)&&this.loader&&(kT1(this.loader),this.mediaElement&&sM(this.mediaElement)>=5&&hA6(this.vl,this.o6)&&Td(this));(P=g.W2(this.zJ.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.b(W,1)&&(g.b(W,8)||g.b(W, 16))?this.nA.start(P):this.nA.stop();(Ib(Y,8)<0||g.Sa(Y,1024))&&this.Pb.stop();!g.Sa(Y,8)||this.videoData.Kg||g.b(Y.state,1024)||this.Pb.start();g.b(Y.state,8)&&Ib(Y,16)<0&&!g.b(Y.state,32)&&!g.b(Y.state,2)&&this.playVideo();g.b(Y.state,2)&&a4(this.videoData)&&(this.Nv(this.getCurrentTime()),this.Xi(!0));g.Sa(Y,2)&&(this.jZ(!0),this.zJ.OR()&&this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&mX(this.videoData)&&this.videoData.W&&(P={minst:""+this.videoData.W.UK,cminst:""+(this.videoData.W.aI()+ this.m2()),maxst:""+this.videoData.W.KL,hts:""+this.videoData.W.wD,cmaxst:""+(this.videoData.W.M6()+this.m2())},this.y5("sabrSeekableBoundaries",P)));g.Sa(Y,128)&&this.lw();this.videoData.W&&this.videoData.isLivePlayback&&!this.Zt&&(Ib(Y,8)<0?z2S(this.videoData.W):g.Sa(Y,8)&&this.videoData.W.resume());o62(this.O1,Y);abV(this.FA,Y);if(k&&!this.Xr())try{for(var T=g.p(this.lN),I=T.next();!I.done;I=T.next()){var X=I.value;uSC(this.Pk,X);this.publish("statechange",X)}}finally{this.lN.length=0}}}; g.R.SO=function(){this.C1.tick("qoes")}; g.R.z5=function(){this.O1.z5()}; g.R.sO=function(W,Y,k,P){a:{var T=this.nL;P=P===void 0?"LICENSE":P;k=k.substring(0,256);var I=Zf(Y);W==="drm.keyerror"&&this.hY&&this.hY.K.keys.length>1&&T.T<96&&(W="drm.sessionlimitexhausted",I=!1);var X=T.pg.experiments.Nq("html5_retry_on_drm_unavailable"),h=T.pg.experiments.Nq("html5_retry_on_drm_key_error"),B=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(X&&W==="drm.unavailable"||h&&W==="drm.keyerror"&&!k.match(B))T.Pz("qoe.restart",{retryOnDrmError:1,e:W,detail:k}),T.W6.Je(!0);else{if(I)if(T.videoData.K&& T.videoData.K.video.isHdr())NxF(T,W);else{if(T.W6.SW(W,Y,P,k),CA1(T,{detail:k}))break a}else T.Pz(W,{detail:k});W==="drm.sessionlimitexhausted"&&(T.y5("retrydrm",{sessionLimitExhausted:1}),T.T++,byd(T.W6))}}}; g.R.DTa=function(){var W=this,Y=g.W2(this.zJ.experiments,"html5_license_constraint_delay"),k=bw();Y&&k?(Y=new g.C_(function(){W.rf();So(W)},Y),g.v(this,Y),Y.start()):(this.rf(),So(this))}; g.R.eM=function(W){this.publish("heartbeatparams",W)}; g.R.CI=function(W){this.y5("keystatuses",in2(W));var Y="auto",k=!1;this.videoData.K&&(Y=this.videoData.K.video.quality,k=this.videoData.K.video.isHdr());a:{switch(Y){case "highres":case "hd2880":Y="UHD2";break;case "hd2160":case "hd1440":Y="UHD1";break;case "hd1080":case "hd720":Y="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Y="SD";break;default:Y="";break a}k&&(Y+="HDR")}Y=MI(W)?tS(W,Y):W.T.includes(Y);if(this.U("html5_enable_vp9_fairplay")){if(k)if(W.G){var P;if((P= this.hY)==null?0:SN(P.W))if((k=this.hY)==null)k=0;else{for(var T=P=void 0,I=g.p(k.K.values()),X=I.next();!X.done;X=I.next())X=X.value,P||(P=tuX(X,"SD")),T||(T=tuX(X,"AUDIO"));k.Ur({sd:P,audio:T});k=P==="output-restricted"||T==="output-restricted"}else k=!Y;if(k){this.y5("drm",{dshdr:1});NxF(this.nL);return}}else{this.videoData.WQ||(this.videoData.WQ=!0,this.y5("drm",{dphdr:1}),this.Je(!0));return}var h;if((h=this.hY)==null?0:SN(h.W))return}else if(h=W.G&&Y,k&&!h){NxF(this.nL);return}Y||tS(W,"AUDIO")&& tS(W,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),W=in2(W),this.wh?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.U("html5_report_fatal_drm_restricted_error_killswitch")||this.SW("drm.keyerror",2,void 0,"info."+W)):(this.wh=!0,this.Pz(new g.uZ("qoe.restart",Object.assign({},{retrydrm:1},W))),Td(this),byd(this)))}; g.R.QbP=function(){if(!this.videoData.Kg&&this.mediaElement&&!this.isBackground()){var W="0";this.mediaElement.Tg()>0&&sM(this.mediaElement)>=5&&this.videoData.J&&this.videoData.J.W&&(this.AT(DQ(this.playerState,1)),cg7(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),W="1");f67(this);var Y=this.videoData.J;W={restartmsg:W,mfmt:!s4(this.videoData),mdrm:!(!(Y&&Y.videoInfos&&Y.videoInfos.length&&Y.videoInfos[0].tY)||this.hY),mfmtinfo:!this.videoData.K,prerolls:this.IS()?this.sy.join(","): "0"};if(this.hY){Y=this.hY;if(Y.K.size<=0){var k="ns;";Y.N||(k+="nr;");Y=k+="ql."+Y.J.length}else Y=in2(Y.K.values().next().value),Y=Ol(Y);W.drmp=Y}var P;Object.assign(W,((P=this.loader)==null?void 0:P.ER())||{});var T;Object.assign(W,((T=this.mediaElement)==null?void 0:T.ER())||{});this.FA.Pz("qoe.start15s",Ol(W));this.publish("loadsofttimeout")}}; g.R.Nv=function(W){this.videoData.lengthSeconds!==W&&(this.videoData.lengthSeconds=W,So(this))}; g.R.jZ=function(W,Y){var k=this;W=W===void 0?!1:W;if(!this.yM)if(sk("att_s","player_att")||Aw("att_s",void 0,"player_att"),this.U("use_rta_for_player"))(function(){var T,I,X,h;return g.D(function(B){switch(B.W){case 1:if(!(T=W)){B.oi(2);break}return g.m(B,g.Fg1(),3);case 3:T=!B.K;case 2:if(T)return B.return();g.KC(B,4);I=k7v(k.FA);if(!I)throw Error();X={};return g.m(B,g.g40((X.cpn=k.videoData.clientPlaybackNonce,X.encryptedVideoId=k.videoData.videoId||"",X),3E4),6);case 6:h=B.K;if(k.yM)throw Error(); if(!h.challenge)throw g.Kx(Error("Not sending attestation ping; no attestation challenge string")),Error();k.yM=!0;var O=[h.challenge];h.error?O.push("r1c="+h.error):h.webResponse&&O.push("r1a="+h.webResponse);var u;((u=h.adblockReporting)==null?void 0:u.reportingStatus)!==void 0&&O.push("r6a="+h.adblockReporting.reportingStatus);var Z;((Z=h.adblockReporting)==null?void 0:Z.broadSpectrumDetectionResult)!==void 0&&O.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);I(O.join("&"));Aw("att_f", void 0,"player_att");g.s2(B,0);break;case 4:g.Aq(B),Aw("att_e",void 0,"player_att"),g.G1(B)}})})().then(function(){Y==null||Y()}); else{var P=new g.CP2(this.videoData);if("c1a"in P.uE&&!g.hM.isInitialized()){Aw("att_wb",void 0,"player_att");this.je===2&&Math.random()<.01&&g.Kx(Error("Botguard not available after 2 attempts"));if(W)return;if(this.je<5){g.L_(this.fA);this.je++;return}}(P=g.LF6(P))?(Aw("att_f",void 0,"player_att"),$EC(this.FA,P),this.yM=!0):Aw("att_e",void 0,"player_att")}}; g.R.qA=function(W){W=W===void 0?!1:W;return wR(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Ar()||g.Ns(this.videoData))?this.getCurrentTime():this.M6(W)}; g.R.nC=function(){return this.aI()}; g.R.M6=function(W){return this.O1.M6(W===void 0?!1:W)}; g.R.aI=function(){return this.O1.aI()}; g.R.m2=function(){return this.O1?this.O1.m2():0}; g.R.getStreamTimeOffset=function(){return this.O1?this.O1.getStreamTimeOffset():0}; g.R.RA=function(){var W=0;this.zJ.U("web_player_ss_media_time_offset")&&(W=this.getStreamTimeOffset()===0?this.m2():this.getStreamTimeOffset());return W}; g.R.setPlaybackRate=function(W){var Y;this.playbackRate!==W&&$76(this.vl,(Y=this.videoData.J)==null?void 0:Y.videoInfos)&&(this.playbackRate=W,Td(this));this.playbackRate=W;this.mediaElement&&this.mediaElement.setPlaybackRate(W)}; g.R.getPlaybackRate=function(){return this.playbackRate}; g.R.getPlaybackQuality=function(){var W="unknown";if(this.videoData.K&&(W=this.videoData.K.video.quality,W==="auto"&&this.mediaElement)){var Y=this.Ud();Y&&Y.videoHeight>0&&(W=gw(Y.videoWidth,Y.videoHeight))}return W}; g.R.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.R.sendVideoStatsEngageEvent=function(W,Y){var k=this.FA;k.W?(k=AS(k.W,"engage"),k.wD=W,k.send(Y)):Y&&Y()}; g.R.Tv=function(W){return this.FA.Tv(W)}; g.R.isAtLiveHead=function(W,Y){Y=Y===void 0?!1:Y;return wR(this.videoData)&&(this.QB||Y)?this.O1.isAtLiveHead(W):!1}; g.R.O3=function(){var W=this.M6(),Y=this.getCurrentTime(),k;(k=!wR(this.videoData))||(k=this.O1,k=!(k.W&&k.W.J));return k||this.Ar()||isNaN(W)||isNaN(Y)?0:Math.max(0,W-Y)}; g.R.uO=function(W){(this.QB=W)||this.Pb.stop();this.videoData.W&&(W?this.videoData.W.resume():z2S(this.videoData.W));if(this.loader){var Y=this.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&this.ri()&&this.videoData.isLivePlayback;W&&!Y?this.loader.resume():Zb(this,!0)}g.b(this.playerState,2)||W?g.b(this.playerState,512)&&W&&this.AT(g6(this.playerState,512)):this.AT(DQ(this.playerState,512));Y=this.FA;Y.qoe&&(Y=Y.qoe,g.$L(Y,g.TA(Y.provider),"stream",[W?"A":"I"]))}; g.R.Yb=function(W){this.FA.Pz("player.exception",Ol({n:W.name,m:W.message}))}; g.R.Kh=Wd(22);g.R.Bu=Wd(51);g.R.aZ=function(W){this.FA.aZ(W)}; g.R.e7=function(W){this.FA.e7(W)}; g.R.zb=function(W){this.FA.zb(W)}; g.R.l_=Wd(28);g.R.cK=Wd(34);g.R.k9=function(W){this.FA.k9(W)}; g.R.Y0=function(W,Y,k,P){this.FA.Y0(W,Y,k,P)}; g.R.DB=function(){this.y5("hidden",{},!0)}; g.R.Ea=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.R.BA=function(){return this.loader?this.loader.BA():!0}; g.R.setLoop=function(W){this.loop=W;this.mediaElement&&!g.Zw(this.zJ)&&this.mediaElement.setLoop(W)}; g.R.kN=function(){return this.mediaElement&&!g.Zw(this.zJ)?this.mediaElement.kN():this.loop}; g.R.Ux=function(W){this.y5("timestamp",{o:W.toString()});this.O1.Ux(W)}; g.R.VU=function(W){this.C1.tick(W)}; g.R.yC=function(W){return this.C1.yC(W)}; g.R.k0=function(W){this.C1.k0(W)}; g.R.y5=function(W,Y,k){this.FA.y5(W,Y,k===void 0?!1:k)}; g.R.lf=function(W,Y,k){this.FA.y5(W,Y,k===void 0?!1:k)}; g.R.Pz=function(W){this.FA.Pz(W.errorCode,Ol(W.details));W=W.errorCode;if(this.videoData.isLivePlayback&&(W==="qoe.longrebuffer"||W==="qoe.slowseek")||W==="qoe.restart"){W=this.loader?dGC(this.loader.videoTrack):{};var Y,k;this.y5("lasoe",Object.assign(this.loader?dGC(this.loader.audioTrack):{},(Y=this.j1)==null?void 0:(k=Y.W)==null?void 0:k.X3()));var P,T;this.y5("lvsoe",Object.assign(W,(P=this.j1)==null?void 0:(T=P.K)==null?void 0:T.X3()))}if(this.U("html5_log_centralized_player_time")){var I;this.y5("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(I=this.loader)==null?void 0:I.currentTime})}}; g.R.uM=function(W,Y,k){this.FA.uM(W,Y,k)}; g.R.Qm=function(W,Y,k,P,T,I,X,h){var B;if((B=this.videoData.W)!=null&&B.isLive){var O=Y.playerType===2?Y:W,u=W.videoData.videoId,Z=Y.videoData.videoId;if(u&&Z){B=this.FA;if(B.qoe){var M=B.qoe,t=W.cpn,q=Y.cpn,G=O.videoData.jW,J=M.provider.videoData.clientPlaybackNonce,d=M.provider.videoData.videoId,A=q!==J&&Z!==d;J=t!==J&&u!==d;M.reportStats();M.adCpn&&M.adCpn!==t||(M.adCpn=J?t:"",M.zS=J?u:"",M.adFormat=J?G:void 0,cD2(M,I?4:T?2:0,q,Z,P),M.reportStats(),M.adCpn=A?q:"",M.zS=A?Z:"",M.adFormat=A?G:void 0, cD2(M,I?5:T?3:1,t,u,k),M.reportStats())}k=W.cpn;if(B.J.has(k)){if(T=B.J.get(k),mE(T,!0).send(),dx(T),k!==B.provider.videoData.clientPlaybackNonce){L3F(T);var F;(F=B.W)==null||y3v(F);B.J.delete(k)}}else B.vU=B.provider.videoData.clientPlaybackNonce,B.vU&&B.W&&(B.J.set(B.vU,B.W),mE(B.W).send(),dx(B.W));F=Y.cpn;O=O.videoData;P-=this.RA();if(B.J.has(F)){P=B.J.get(F);var y=P.J&&isNaN(P.C)?zA(P):NaN;P=Czd(P,!1);isNaN(y)||(P.G=y);P.send()}else P=PTF(B,B.provider,O,P),B.J.set(F,P),U7V(P,new g.T4(DQ(new g.zc, 8),new g.zc)),QWS(P),(y=B.W)==null||dx(y);B.vU=F;if(this.U("html5_unify_csi_server_stitched_transition_logging")){if(B=this.C1,y=Y.cpn,P=this.videoData.clientPlaybackNonce,Y=Y.videoData,W=(W.cpn===P?"video":"ad")+"_to_"+(y===P?"video":"ad"),W!=="video_to_ad"){P=W==="ad_to_video"?void 0:Y;O=P==null?void 0:P.w8;F={};if(Y==null?0:Y.X)F.cttAuthInfo={token:Y.X,videoId:Y.videoId};X&&(F.startTime=X);Jw(W,F);var L,V,c;X={targetVideoId:(L=Y==null?void 0:Y.videoId)!=null?L:"empty_video",targetCpn:y,adVideoId:(V= P==null?void 0:P.videoId)!=null?V:"empty_video",adClientPlaybackNonce:(c=O==null?void 0:O.cpn)!=null?c:P==null?void 0:P.clientPlaybackNonce};O&&(X.adBreakType=O.adBreakType,X.adType=O.adType);g.Ek(X,W);nO(B,h,W)}}else L=this.C1,c=this.videoData.clientPlaybackNonce,V=Y.videoData,c=(W.cpn===c?"video":"ad")+"_to_"+(Y.cpn===c?"video":"ad"),W={},V.X&&(W.cttAuthInfo={token:V.X,videoId:V.videoId}),X&&(W.startTime=X),Jw(c,W),g.Ek({targetVideoId:V.videoId,targetCpn:Y.cpn,isSsdai:!0},c),X||nO(L,h,c)}}else this.logger.W(360717806, "SSTEvent for nonSS")}; g.R.Jx=function(){var W=this.GW,Y=W.tG;W.tG=[];return Y}; g.R.Zc=function(W){this.videoData.mL=!0;this.Pz(new g.uZ("sabr.fallback",W));this.Je(!0)}; g.R.r3=function(W,Y){this.videoData.qZ=!0;if(Y===void 0||Y)this.Pz(new g.uZ("qoe.restart",W)),this.Je(!0)}; g.R.w0=function(W){this.y5("sdai",{aftimeout:W});this.Pz(new g.uZ("ad.fetchtimeout",{timeout:W}))}; g.R.Js=function(W,Y){this.y5("timelineerror",W);W=new g.uZ("dai.timelineerror",W);Y?this.SW("dai.timelineerror",1,"RETRYABLE_ERROR",Ol(W.details)):this.Pz(W)}; g.R.XZ=function(){return g.TA(this.FA.provider)}; g.R.getPlayerSize=function(){return this.dY.getPlayerSize()}; g.R.o3=function(){return this.dY.o3()}; g.R.w_=function(){return this.C1}; g.R.sI=function(){return this.GW.sI()}; g.R.getVolume=function(){return this.GW.getVolume()}; g.R.WF=function(){return this.GW.WF()}; g.R.isMuted=function(){return this.GW.isMuted()}; g.R.fK=function(){return this.GW.fK()}; g.R.QW=function(){this.Zt=!0}; g.R.U=function(W){return this.zJ.U(W)}; g.R.Zl=function(W,Y,k,P,T){this.y5("xvt",{m:W,g:Y?1:0,tt:k?1:0,np:P?1:0,c:T})}; g.R.FX=function(){var W;(W=this.loader)==null||W.resume()}; g.R.ri=function(){return g.n$(this.sy,"ad")}; g.R.E0=function(){var W=this.getCurrentTime(),Y=W-this.m2();var k=this.mediaElement?X_(this.mediaElement.EE()):0;k=Math.floor(Math.max(k-Y,0))+100;var P;return((P=this.loader)==null?0:P.E0(Y,k))?(this.y5("sdai",{skipad:1,ct:Y.toFixed(3),adj:k.toFixed(3)}),mX(this.videoData)&&this.loader.seek(Y+k,{seekSource:89,Fi:"videoplayer_skipServerStitchedAd"}),Yg0(this.O1,W),!0):!1}; g.R.OR=function(){return this.zJ.OR()}; g.R.Dj=function(){if(this.U("html5_generate_content_po_token"))return this.videoData.sJ||"";this.GW.qg();return this.zJ.Dm||""}; g.R.jC=function(){if(this.videoData.videoId)return this.videoData.lr}; g.R.B5=function(){return this.videoData.videoId}; g.R.lC=function(){return this.GW.Dx}; g.R.XJ=function(){return this.Zn}; g.R.j9=function(){return this.GW.j9()}; g.R.wk=function(W,Y,k){this.AT(DQ(this.playerState,16,k));this.O1.wk(W,Y)}; g.R.prefetchKeyPlay=function(){}; g.R.Df=function(){this.O1.Df()}; g.R.uf=function(W,Y){var k=this.U("html5_generate_content_po_token")?this.videoData:void 0;this.GW.uf(W,Y,k)}; g.R.H9=function(W,Y){this.FA.H9(W,Y)}; g.R.ST=function(){return this.FA.ST()}; g.R.u2=function(){return this.videoData.pB}; g.R.g_=function(){return this.GW.g_()}; g.R.jo=function(){return this.GW.jo(this)}; g.R.m4=function(){this.Q4=!0}; g.R.TZ=function(W){var Y;(Y=this.loader)==null||Y.TZ(W)};g.H(NJq,Mb);g.H(M7,EH);M7.prototype.W=function(W){W&&JG(this,this.Y.getLoopVideo());this.Y.logVisibility(this.element,W)}; M7.prototype.logClick=function(){this.Y.logClick(this.element)}; M7.prototype.onLoopChange=function(W){JG(this,W)}; M7.prototype.K=function(W){this.Y.setLoopVideo(W)};g.H(a62,Mb);g.H(Wcv,Mb);g.R=Wcv.prototype;g.R.seekToChapterWithAnimation=function(W){var Y=this;if(g.Fs(this.api)&&!(W<0)){var k=this.api.getVideoData(),P=k.i_;if(P&&W=0)return;Y=~Y;g.yi(this.items,Y,0,W);tv(this.menuItems.element,W.element,Y)}W.subscribe("size-change",this.vW,this);this.menuItems.publish("size-change")}; g.R.Vr=function(){df5(this)||this.items[0].focus();return!0}; g.R.r8=function(){this.items[this.items.length-1].focus();return!0}; g.R.tC=function(W){W.unsubscribe("size-change",this.vW,this);this.Xr()||(g.GK(this.items,W),this.menuItems.element.removeChild(W.element),this.menuItems.publish("size-change"))}; g.R.vW=function(){this.menuItems.publish("size-change")}; g.R.focus=function(){for(var W=0,Y=0;Y1&&g.Db(this)}; g.R.h6=function(){Fc1(this);this.v7&&(DfV(this),g.a_(this.element,this.size))}; g.R.iY=function(){var W=this.W.pop();gMF(this,W,this.W[this.W.length-1],!0)}; g.R.kZ=function(W){if(!W.defaultPrevented)switch(W.keyCode){case 27:this.n1();W.preventDefault();break;case 37:this.W.length>1&&this.iY();W.preventDefault();break;case 39:W.preventDefault()}}; g.R.focus=function(){this.W.length&&this.W[this.W.length-1].focus()}; g.R.iz=function(){g.IJ.prototype.iz.call(this);this.T&&this.T.dispose();this.C&&this.C.dispose()};g.H(g$,g.d$);g$.prototype.open=function(W,Y){this.initialize(W.items)&&this.fH(Y,!!Y)}; g$.prototype.initialize=function(W){g.zd(this.iD);if(W===void 0||W.length===0)return!1;var Y=W.length;W=g.p(W);for(var k=W.next();!k.done;k=W.next())this.c7(k.value,Y--);return!0}; g$.prototype.c7=function(W,Y){W.menuNavigationItemRenderer?yiC(this,W.menuNavigationItemRenderer,Y):W.menuServiceItemRenderer&&evC(this,W.menuServiceItemRenderer,Y)};g.H(Fy,sS);g.R=Fy.prototype;g.R.Lt=function(W){W.target!==this.dismissButton.element&&W.target!==this.overflowButton.element&&(this.S7(),this.onClickCommand&&this.Y.Ri("innertubeCommand",this.onClickCommand))}; g.R.yQ=function(){this.enabled=!1;this.N.hide()}; g.R.Gu=function(){return!!this.W&&this.enabled}; g.R.onVideoDataChange=function(W,Y){this.T1(Y);if(this.W){this.Cp();a:if(!this.isCounterfactual){var k,P,T;this.banner.update({title:(k=this.W)==null?void 0:k.title,subtitle:(P=this.W)==null?void 0:P.subtitle,metadata:(T=this.W)==null?void 0:T.metadataText});var I;this.onClickCommand=g.U((I=this.W)==null?void 0:I.onTap,Jh);var X;if(W=g.U((X=this.W)==null?void 0:X.onOverflow,Jh))this.X=g.U(W,DBc);var h;if((h=this.W)==null?0:h.thumbnailImage){var B,O;X=((B=this.W)==null?void 0:(O=B.thumbnailImage)== null?void 0:O.sources)||[];if(X.length===0)break a;this.thumbnailImage.update({url:X[0].url})}else{var u;if((u=this.W)==null?0:u.thumbnailIconName){var Z;this.thumbnailIcon.update({icon:(Z=this.W)==null?void 0:Z.thumbnailIconName})}}var M;this.shouldShowOverflowButton=!((M=this.W)==null||!M.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.W)==null||!t.shouldHideDismissButton)}var q;this.banner.element.setAttribute("aria-label",((q=this.W)==null?void 0:q.a11yLabel)||"");var G; this.V5=(G=this.W)==null?void 0:G.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;vMV(this)}}; g.R.H1i=function(){this.isVisible=!0;vMV(this)}; g.R.GnP=function(){this.isVisible=!1;vMV(this)}; g.R.RN=function(){sS.prototype.RN.call(this);this.K&&this.Y.logVisibility(this.banner.element,this.isVisible)}; g.R.S7=function(){sS.prototype.S7.call(this,!1);this.K&&this.Y.logClick(this.banner.element)}; g.R.pM=function(W){this.C||(this.C=new g$(this.Y),g.v(this,this.C));var Y,k;if((Y=this.X)==null?0:(k=Y.menu)==null?0:k.menuRenderer)this.C.open(this.X.menu.menuRenderer,W.target),W.preventDefault()}; g.R.T1=function(){}; g.R.Cp=function(){}; g.R.iz=function(){this.Y.fq("suggested_action_view_model");sS.prototype.iz.call(this)};g.H(w$,Fy); w$.prototype.T1=function(W){var Y,k,P;this.productUpsellSuggestedActionViewModel=g.U((Y=W.getWatchNextResponse())==null?void 0:(k=Y.playerOverlays)==null?void 0:(P=k.playerOverlayRenderer)==null?void 0:P.suggestedActionViewModel,f5Q);var T;if((T=this.productUpsellSuggestedActionViewModel)==null?0:T.content){var I;this.W=g.U((I=this.productUpsellSuggestedActionViewModel)==null?void 0:I.content,zrz)}var X,h;if(this.K=!!((X=this.productUpsellSuggestedActionViewModel)==null?0:(h=X.loggingDirectives)==null? 0:h.trackingParams)){var B,O;this.Y.setTrackingParams(this.banner.element,((B=this.productUpsellSuggestedActionViewModel)==null?void 0:(O=B.loggingDirectives)==null?void 0:O.trackingParams)||null)}var u;this.isCounterfactual=!((u=this.productUpsellSuggestedActionViewModel)==null||!u.isCounterfactualServing)}; w$.prototype.Cp=function(){var W=[],Y,k=g.p(((Y=this.productUpsellSuggestedActionViewModel)==null?void 0:Y.ranges)||[]);for(Y=k.next();!Y.done;Y=k.next()){var P=Y.value;P&&(Y=Number(P.startTimeMilliseconds),P=Number(P.endTimeMilliseconds),isNaN(Y)||isNaN(P)||W.push(new g.L6(Y,P,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.Y.Bz(W)};g.H(CO0,Mb);g.H(QA,Mb);QA.prototype.onVideoDataChange=function(W,Y){var k=this;if(!uf(Y)&&(W==="newdata"&&Ufd(this),this.W&&W==="dataloaded")){this.W=!1;var P;C1(vW(mi(this.api.V(),(P=this.api.getVideoData())==null?void 0:g.hD(P)),function(T){Vsd(k,T)}),function(){k.W=!0})}}; QA.prototype.fn=function(){var W=this;if(g.Zw(this.api.V())){var Y,k=g.dV(this.api.V(),(Y=this.api.getVideoData())==null?void 0:g.hD(Y));return vW(QQ(k),function(P){var T=P1();TT(T,P);return W.api.fn(T)})}return QQ(this.api.fn())};g.H(g.eo,g.OH);g.R=g.eo.prototype;g.R.open=function(){g.m3(this.Mq,this.Ba)}; g.R.yH=function(W){N_7(this);var Y=this.options[W];Y&&(Y.element.setAttribute("aria-checked","true"),this.N6(this.wM(W)),this.J=W)}; g.R.oS=function(W){g.zd(this.Ba);for(var Y={},k=!1,P=0;P=0?this.W.playbackRate:1}catch(W){return 1}}; g.R.setPlaybackRate=function(W){this.getPlaybackRate()!==W&&(this.W.playbackRate=W);return W}; g.R.kN=function(){return this.W.loop}; g.R.setLoop=function(W){this.W.loop=W}; g.R.canPlayType=function(W,Y){return this.W.canPlayType(W,Y)}; g.R.isPaused=function(){return this.W.paused}; g.R.isSeeking=function(){return this.W.seeking}; g.R.isEnded=function(){return this.W.ended}; g.R.GO=function(){return this.W.muted}; g.R.Ic=function(W){n5();this.W.muted=W}; g.R.OG=function(){return this.W.played||kB([],[])}; g.R.EE=function(){try{var W=this.W.buffered}catch(Y){}return W||kB([],[])}; g.R.c$=function(){return this.W.seekable||kB([],[])}; g.R.Xe=function(){var W=this.W;return W.getStartDate?W.getStartDate():null}; g.R.getCurrentTime=function(){return this.W.currentTime}; g.R.setCurrentTime=function(W){this.W.currentTime=W}; g.R.getDuration=function(){return this.W.duration}; g.R.load=function(){var W=this.W.playbackRate;try{this.W.load()}catch(Y){}this.W.playbackRate=W}; g.R.pause=function(){this.W.pause()}; g.R.play=function(){var W=this.W.play();if(!W||!W.then)return null;W.then(void 0,function(){}); return W}; g.R.Tg=function(){return this.W.readyState}; g.R.m7=function(){return this.W.networkState}; g.R.NI=function(){return this.W.error?this.W.error.code:null}; g.R.JD=function(){return this.W.error?this.W.error.message:""}; g.R.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.W instanceof window.HTMLVideoElement&&this.W.getVideoPlaybackQuality)return this.W.getVideoPlaybackQuality();if(this.W){var W=this.W,Y=W.webkitDroppedFrameCount;if(W=W.webkitDecodedFrameCount)return{droppedVideoFrames:Y||0,totalVideoFrames:W}}return{}}; g.R.Y7=function(){return!!this.W.webkitCurrentPlaybackTargetIsWireless}; g.R.i4=function(){return!!this.W.webkitShowPlaybackTargetPicker()}; g.R.togglePictureInPicture=function(){var W=this.W,Y=window.document;window.document.pictureInPictureEnabled?this.W!==Y.pictureInPictureElement?W.requestPictureInPicture():Y.exitPictureInPicture():HT()&&W.webkitSetPresentationMode(W.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.R.oE=function(){var W=this.W;return new g.Cc(W.offsetLeft,W.offsetTop)}; g.R.getSize=function(){return g.Wl(this.W)}; g.R.setSize=function(W){g.a_(this.W,W)}; g.R.getVolume=function(){return this.W.volume}; g.R.setVolume=function(W){n5();this.W.volume=W}; g.R.NC=function(W){this.C[W]||(this.W.addEventListener(W,this.listener),this.C[W]=this.listener)}; g.R.setAttribute=function(W,Y){this.W.setAttribute(W,Y)}; g.R.removeAttribute=function(W){this.W.removeAttribute(W)}; g.R.hasAttribute=function(W){return this.W.hasAttribute(W)}; g.R.XU=Wd(61);g.R.I9=Wd(63);g.R.xL=Wd(65);g.R.oJ=Wd(67);g.R.TG=function(){return BO(this.W)}; g.R.dk=function(W){g.a2(this.W,W)}; g.R.RY=function(W){return g.Uh(this.W,W)}; g.R.qw=function(){return g.R_(document.body,this.W)}; g.R.audioTracks=function(){var W=this.W;if("audioTracks"in W)return W.audioTracks}; g.R.iz=function(){for(var W=g.p(Object.keys(this.C)),Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.W.removeEventListener(Y,this.C[Y]);EM.prototype.iz.call(this)}; g.R.Fm=function(W){this.W.disableRemotePlayback=W};g.H(N7,g.l);g.H(WK,g.l);WK.prototype.show=function(){g.l.prototype.show.call(this);this.xa()}; WK.prototype.hide=function(){g.l.prototype.hide.call(this);this.delay.stop();this.T.stop()}; WK.prototype.xa=function(){var W=(0,g.q5)(),Y=S02(this.Ii);aW(this.W,Y.bandwidth_samples);aW(this.X,Y.network_activity_samples);aW(this.J,Y.live_latency_samples);aW(this.K,Y.buffer_health_samples);var k={};Y=g.p(Object.entries(Y));for(var P=Y.next();!P.done;P=Y.next()){var T=g.p(P.value);P=T.next().value;T=T.next().value;this.G[P]!==T&&(k[P]=" "+String(T));this.G[P]=T}this.update(k);W=(0,g.q5)()-W>25?5E3:500;this.delay.start(W)}; WK.prototype.N=function(){this.C?(this.position+=1,this.position>15&&(this.C=!1)):(--this.position,this.position<=0&&(this.C=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.T.start(2E4)};g.H(OfC,Mb);g.H(Y6,g.e);Y6.prototype.W=function(){var W=(0,g.q5)()-this.startTime;W=Wthis.T[W])&&(this.W=W,this.o0())}; g.R.onCueRangeExit=function(W){var Y=Eq7(this,W);Y&&this.W===W&&this.api.Ri("innertubeCommand",Y);PK(this);this.W=void 0}; g.R.JX=function(W){this.J=W}; g.R.g1=function(){this.o0();this.J=void 0}; g.R.o0=function(){if(this.W!==void 0){var W=(W=k6(this,this.W))&&W.onCueRangeEnter?rj(W.onCueRangeEnter):void 0;var Y=k6(this,this.W);a:if(Y&&Y.additionalTrigger){var k=g.p(Y.additionalTrigger);for(var P=k.next();!P.done;P=k.next())if(P=P.value,P.type){var T=void 0,I=void 0;if((T=this.gD[P.type])==null?0:T((I=P.args)!=null?I:{})){k=!0;break a}}k=!1}else k=!0;W&&k&&(this.api.Ri("innertubeCommand",W),JTF(this,Y),this.T[this.W]!==void 0&&this.T[this.W]++,this.N=!0)}}; g.R.iz=function(){this.timelyActions=this.J=this.W=this.videoId=void 0;this.T={};this.aB();PK(this);Mb.prototype.iz.call(this)};g.H(ATd,Mb);g.H(T7,EH);T7.prototype.T=function(W){this.J(W?2:1);this.Y.publish("audiopreferencechange")}; T7.prototype.X5=function(){var W=this.Y.getPresentingPlayerType();W===2||W===3?(this.W=!1,this.Mq.tC(this)):this.Y.U("html5_enable_new_audio_settings_menu")?(W=this.getVoiceBoostState(),W!==1?(W===0?(JG(this,this.K()===2),this.setEnabled(!0)):(JG(this,!1),this.setEnabled(!1)),this.W||(this.Mq.c7(this),this.W=!0)):this.W&&(this.Mq.tC(this),this.W=!1)):this.W||(W=this.hasVoiceBoostAudioTrack(),this.setEnabled(W),W=this.K()===2&&W,JG(this,W),this.Mq.c7(this),this.W=!0)}; T7.prototype.iz=function(){this.Mq.tC(this);EH.prototype.iz.call(this)};g.H(dTF,Mb);g.R=dTF.prototype;g.R.getVoiceBoostUserPreference=function(){return this.W}; g.R.setVoiceBoostUserPreference=function(W){this.api.y5("vb_set",{pref:W});g.Ke("yt-player-voice-boost",W);W!==this.W&&(this.W=W,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.V0())}; g.R.hasVoiceBoostAudioTrack=function(){var W,Y,k=(W=this.api.getVideoData())==null?void 0:(Y=W.J)==null?void 0:Y.W;return k?vQ(k,function(P){var T;return((T=P.audio)==null?void 0:T.K)===!0}):!1}; g.R.getVoiceBoostState=function(){return this.api.kF(3)}; g.R.updateEnvironmentData=function(){this.api.V().Jo=this.W};var vqC=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.H(XS,Mb);XS.prototype.iz=function(){this.G&&(g.hB(this.G),this.G=void 0);Mb.prototype.iz.call(this)}; XS.prototype.qg=function(){(this.K?!this.W:this.J)&&hJ(this)}; XS.prototype.BU=function(W,Y,k){var P=this;if(DT5(W)){var T=k||"";if(this.W)Y=BK(this,T),gqd(W,Y);else{var I=new g.Xd;Y.push(I.promise);this.C.promise.then(function(){var X=BK(P,T);gqd(W,X);I.resolve()})}}}; XS.prototype.O4=function(W){var Y=this;if(this.K||this.J)W.sJ=BK(this,W.videoId),this.W||(this.T=new KY,this.C.promise.then(function(){Y.C1.yC("pot_if");W.sJ=BK(Y,W.videoId)}))};g.H(g.uT,g.l);g.uT.prototype.select=function(){this.api.zq(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.qE||void 0)&&this.api.logClick(this.element)}; g.uT.prototype.onClick=function(W){if(g.Y3(this.api.V())&&this.api.U("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var Y=this.suggestion.md(),k={};g.fl(this.api,k);Y=g.MH(Y,k);g.r7(Y,this.api,W)}else g.sH(W,this.api,this.K,this.suggestion.sessionData||void 0)&&this.select()}; g.uT.prototype.onKeyPress=function(W){switch(W.keyCode){case 13:case 32:W.defaultPrevented||(this.select(),W.preventDefault())}}; g.uT.prototype.onVideoDataChange=function(){var W=this.api.getVideoData(),Y=this.api.V();this.K=W.zr?!1:Y.T};g.H(bfF,g.l);g.R=bfF.prototype;g.R.iz=function(){this.hide();g.ne(this.T);g.Yn(this.stills);this.stills.length=0;this.K&&this.K.removeEventListener("click",this.BR);this.J&&this.J.removeEventListener("click",this.zo);this.W&&this.W.removeEventListener("click",this.zo);g.l.prototype.iz.call(this)}; g.R.zo=function(W){this.G&&this.G(W)}; g.R.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var W,Y,k,P,T;var I=(((W=this.videoData)==null?0:(Y=W.suggestions)==null?0:Y.length)?(k=this.videoData)==null?void 0:k.suggestions:((P=this.videoData)==null?0:g.Kz(P))?[(T=this.videoData)==null?void 0:g.Kz(T)]:[]).slice(0,18);if((W=this.N)&&this.X&&this.C)if(g.MB(W),I.length)for(this.stills.length>I.length&&g.Yn(this.stills.splice(I.length)),this.stills.length=I.length,Y=0;Y=0;W--)this.features[W].dispose();this.features.length=0;g.e.prototype.iz.call(this)};Yw6.prototype.reset=function(){this.W=this.K=NaN};g.R=$pF.prototype;g.R.reset=function(){nS(this.timerName)}; g.R.tick=function(W,Y){KS(W,Y,this.timerName)}; g.R.yC=function(W){return rG(W,void 0,this.timerName)}; g.R.k0=function(W){g.Wv(W,void 0,this.timerName)}; g.R.infoGel=function(W){g.Ek(W,this.timerName)};g.H(Tb6,g.NR);g.R=Tb6.prototype;g.R.Gg=function(W){return this.loop||!!W||this.index+1=0}; g.R.setShuffle=function(W){this.shuffle=W;W=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var Y=0;Y0)||oD(this,1,!0)}; g.R.nG=function(){this.X=!0;this.W.nH(this.C);this.C=this.W.Z(document,"mouseup",this.CM)}; g.R.CM=function(){this.X=!1;oD(this,8,!1);this.W.nH(this.C);this.C=this.W.Z(this.target,"mousedown",this.nG)}; g.R.sT=function(W){if(W=(W=W.changedTouches)&&W[0])this.gD=W.identifier,this.W.nH(this.L),this.L=this.W.Z(this.target,"touchend",this.gz,void 0,!0),oD(this,1024,!0)}; g.R.gz=function(W){if(W=W.changedTouches)for(var Y=0;Y1280||T>720)if(Y=P.Ss("maxresdefault.jpg"))break;if(I>640||T>480)if(Y=P.Ss("maxresdefault.jpg"))break;if(I>320||T>180)if(Y=P.Ss("sddefault.jpg")||P.Ss("hqdefault.jpg")||P.Ss("mqdefault.jpg"))break;if(Y=P.Ss("default.jpg"))break}g.E9(W)&&(W=new Image,W.addEventListener("load", function(){BSX()}),W.src=Y?Y:"",this.api.w_().tick("ftr")); this.T.style.backgroundImage=Y?"url("+Y+")":""};g.H(g.lT,g.l);g.lT.prototype.resize=function(){}; g.lT.prototype.K=function(W){var Y=this;this.J=!1;Upd(this);var k=W.bI,P=this.api.V();k!=="GENERIC_WITHOUT_LINK"||P.X?k==="TOO_MANY_REQUESTS"?(P=this.api.getVideoData(),this.N6(x6(this,"TOO_MANY_REQUESTS_WITH_LINK",P.md(),void 0,void 0,void 0,!1))):k!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||P.X?this.api.V().U("html5_enable_bandaid_error_screen")&&k==="HTML5_SPS_UMP_STATUS_REJECTED"&&!P.X?(P=P.hostLanguage,W="//support.google.com/youtube?p=videoError",P&&(W=g.MH(W,{hl:P})),this.N6(x6(this,"HTML5_SPS_UMP_STATUS_REJECTED", W))):this.api.V().U("enable_adb_handling_in_sabr")&&k==="BROWSER_OR_EXTENSION_ERROR"&&!P.X?(P=P.hostLanguage,W="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",P&&(W=g.MH(W,{hl:P})),this.N6(x6(this,"BROWSER_OR_EXTENSION_ERROR",W))):this.N6(g.bT(W.errorMessage)):this.N6(x6(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(W=P.hostLanguage,k="//support.google.com/youtube/?p=player_error1",W&&(k=g.MH(k, {hl:W})),this.N6(x6(this,"GENERIC_WITH_LINK_AND_CPN",k,!0)),P.Gn&&!P.T&&Lez(this,function(I){if(g.sH(I,Y.api,!RT(Y.api.V()))){I={as3:!1,html5:!0,player:!0,cpn:Y.api.getVideoData().clientPlaybackNonce};var X=Y.api;X.i7("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:I});X.isFullscreen()&&X.toggleFullscreen()}})); if(this.J){var T=this.J5("ytp-error-link");T&&(this.api.createClientVe(T,this,216104),this.api.logVisibility(T,!0),Lez(this,function(){Y.api.logClick(T)}))}}; var CVd=/([^<>]+)<\/a>/;g.H(laV,g.l);laV.prototype.R3=function(W,Y,k){k=k===void 0?!1:k;switch(Y){case 1:fO(this,W,this.J,k);break;case 2:fO(this,W,this.T,k);break;case 3:fO(this,W,this.W,k);break;case 4:fO(this,W,this.K,k)}};g.H(bg6,g.l);g.R=bg6.prototype;g.R.onClick=function(W){this.innertubeCommand?(this.Y.Ri("innertubeCommand",this.innertubeCommand),W.preventDefault()):g.sH(W,this.Y,!0);this.Y.logClick(this.element)}; g.R.onVideoDataChange=function(W,Y){xp2(this,Y);this.b7&&faq(this,this.b7)}; g.R.u1=function(W){var Y=this.Y.getVideoData();this.videoId!==Y.videoId&&xp2(this,Y);this.W&&faq(this,W.state);this.b7=W.state}; g.R.fH=function(){this.fade.show();this.Y.publish("paidcontentoverlayvisibilitychange",!0);this.Y.logVisibility(this.element,!0)}; g.R.n1=function(){this.fade.hide();this.Y.publish("paidcontentoverlayvisibilitychange",!1);this.Y.logVisibility(this.element,!1)};g.H(V3,g.l);V3.prototype.hide=function(){this.W.stop();this.message.style.display="none";g.l.prototype.hide.call(this)}; V3.prototype.onStateChange=function(W){this.ZY(W.state)}; V3.prototype.ZY=function(W){if(g.b(W,128)||this.api.XJ())var Y=!1;else{var k;Y=this.api.U("web_watch_enable_multiview_manager")&&((k=this.api.getVideoData())==null?0:uf(k))?!1:g.b(W,16)||g.b(W,1)?!0:!1}Y?this.W.start():this.hide()}; V3.prototype.K=function(){this.message.style.display="block"};g.H(NE,g.IJ);NE.prototype.onMutedAutoplayChange=function(W){this.J&&(W?(VAV(this),this.fH()):(this.W&&this.logClick(),this.n1()))}; NE.prototype.OA=function(W){this.api.isMutedByMutedAutoplay()&&g.Sa(W,2)&&this.n1()}; NE.prototype.onClick=function(){this.api.unMute();this.logClick()}; NE.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.H(g.aD,g.p5);g.R=g.aD.prototype;g.R.init=function(){var W=this.api,Y=W.getPlayerStateObject();this.Pq=W.getPlayerSize();this.AT(Y);this.RC();this.Rb();this.api.publish("basechromeinitialized",this);this.BT()&&this.api.publish("standardControlsInitialized")}; g.R.onVideoDataChange=function(W,Y){var k=this.nt!==Y.videoId;if(k||W==="newdata")W=this.api,W.isFullscreen()||(this.Pq=W.getPlayerSize());k&&(this.nt=Y.videoId,k=this.EU,k.TJ=3E3,oD(k,512,!0),this.RC());this.api.U("web_render_jump_buttons")&&Y.showSeekingControls&&(this.G1=572)}; g.R.yTa=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.R.BX=function(){var W=this.api.SA()&&this.api.Xg(),Y=this.api.Yo();return this.Cd||W||this.Jc||Y}; g.R.Ru=function(){var W=!this.BX();g.kN(this.api.getRootNode(),"ytp-menu-shown",!W)}; g.R.nF=function(W){try{if(!g.R_(this.api.getRootNode(),W))return!1}catch(Y){return!1}for(;W&&!yNz(W);)W=W===this.api.getRootNode()?null:W.parentElement||null;return!!W}; g.R.L0=function(W){var Y=this.api.getRootNode();g.kN(Y,"ytp-autohide",W);g.kN(Y,"ytp-autohide-active",!0);this.Oz.start(W?250:100);W&&(this.Ph=!1,g.YN(Y,"ytp-touch-mode"));this.gb=!W;this.api.DX(!W);this.api.U("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",W)}; g.R.I1=function(){var W=this.api.getRootNode();g.kN(W,"ytp-autohide-active",!1)}; g.R.pzr=function(){this.gI=!0}; g.R.JYJ=function(W){if(this.api.V().U("player_doubletap_to_seek")||this.api.V().G)this.gI=!1,this.uQ&&this.nH(this.uQ),this.e0===0&&Yc(this,W)?(this.pJ(),this.Rw.start(),this.uQ=this.Z(this.api.ai(),"touchmove",this.pzr,void 0,!0)):this.Rw.stop();YOF(this)&&Yc(this,W)&&!this.api.V().G&&aaF(this);var Y=this.tb.IZ();if(!g.Y3(this.api.V())&&Vh&&$oC(this,W))Y&&W.preventDefault();else if(this.Ph=!0,g.a2(this.api.getRootNode(),"ytp-touch-mode"),this.EU.Q0(),this.api.V().U("player_doubletap_to_seek")||this.api.V().G)if(Y= this.api.getPlayerStateObject(),!(!this.api.hD()||g.b(Y,2)&&g.lf(this.api)||g.b(Y,64))){Y=Date.now()-this.OH;this.e0+=1;if(Y<=350){this.Me=!0;Y=this.api.getPlayerSize().width/3;var k=this.api.getRootNode().getBoundingClientRect(),P=W.targetTouches[0].clientX-k.left;k=W.targetTouches[0].clientY-k.top;var T=(this.e0-1)*10;P>0&&PY*2&&P=650,P=W.width<528;this.EU.resize();if(this.api.U("web_player_use_screen_width_for_big_mode")){var T,I=W.width>=((T=g.W2(this.api.V().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?T:2E3);g.kN(Y,"ytp-big-mode",I)}g.kN(Y,"ytp-fullscreen",this.api.isFullscreen());g.kN(Y,"ytp-large-width-mode",k);this.api.U("delhi_modern_web_player")?g.kN(Y,"ytp-xsmall-width-mode",P):g.kN(Y,"ytp-small-mode",this.jy()); g.kN(Y,"ytp-tiny-mode",this.Uv());g.kN(Y,"ytp-big-mode",this.U6());this.mW&&this.mW.resize(W)}; g.R.OA=function(W){this.AT(W.state);this.RC()}; g.R.xe=Wd(3);g.R.X1=function(){var W=!!this.nt&&!this.api.Y8()&&!this.X0,Y=this.api.getPresentingPlayerType()===2,k=this.api.V();if(Y)return k=FS(this.api.gx()),W&&(k&&k.player?W=(W=k.player.getVideoData(2))?W.isListed&&!g.OG(k.player.V()):!1:(PP("showInfoBarDuringAd: this is null"),W=!1)),W;Y=k.U("web_player_imax_theater_mode")&&this.api.kf();return W&&(k.Kr||Y||this.api.isFullscreen()||k.zg)}; g.R.RC=function(){var W=this.X1();this.V7!==W&&(this.V7=W,g.kN(this.api.getRootNode(),"ytp-hide-info-bar",!W))}; g.R.AT=function(W){var Y=W.isCued()||this.api.IS()&&this.api.getPresentingPlayerType()!==3;Y!==this.isCued&&(this.isCued=Y,this.YD&&this.nH(this.YD),this.YD=this.Z(this.api.ai(),"touchstart",this.JYJ,void 0,Y));var k=this.EU,P=W.isPlaying()&&!g.b(W,32)||this.api.Jt();oD(k,128,!P);k=this.EU;P=this.api.getPresentingPlayerType()===3;oD(k,256,P);k=this.api.getRootNode();g.b(W,2)?P=[fG.ENDED]:(P=[],g.b(W,8)?P.push(fG.PLAYING):g.b(W,4)&&P.push(fG.PAUSED),g.b(W,1)&&!g.b(W,32)&&P.push(fG.BUFFERING),g.b(W, 32)&&P.push(fG.SEEKING),g.b(W,64)&&P.push(fG.UNSTARTED));g.bQ(this.UB,P)||(g.$N(k,this.UB),this.UB=P,g.We(k,P));P=this.api.V();var T=g.b(W,2);a:{var I=this.api.V();var X=I.controlsType;switch(X){case "2":case "0":I=!1;break a}I=X==="3"&&!g.b(W,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:fc$(FS(this.api.gx())))||this.api.Yo()||g.Y3(I)&&this.api.getPresentingPlayerType()===2?!1:!0}g.kN(k,"ytp-hide-controls",!I);g.kN(k,"ytp-native-controls",P.controlsType==="3"&&!Y&&!T&&!this.Jc);g.b(W, 128)&&!g.Y3(P)?(this.mW||(this.mW=new g.lT(this.api),g.v(this,this.mW),g.aR(this.api,this.mW.element,4)),this.mW.K(W.dc),this.mW.show()):this.mW&&(this.mW.dispose(),this.mW=null)}; g.R.CC=function(){return this.api.SA()&&this.api.Xg()?(this.api.Gh(!1,!1),!0):this.api.Y8()?(g.bf(this.api,!0),!0):!1}; g.R.onMutedAutoplayChange=function(W){this.Jc=W;this.Ru()}; g.R.U6=function(){return!1}; g.R.jy=function(){return!this.U6()&&(this.api.getPlayerSize().width=0&&Y.left>=0&&Y.bottom>Y.top&&Y.right>Y.left?Y:null;Y=this.size;W=W.clone();Y=Y.clone();P&&(X=Y,T=5,(T&65)==65&&(W.x=P.right)&&(T&=-2),(T&132)==132&&(W.y=P.bottom)&&(T&=-5),W.xP.right&&(X.width=Math.min(P.right-W.x,I+X.width-P.left),X.width=Math.max(X.width,0))),W.x+X.width>P.right&&T&1&&(W.x=Math.max(P.right-X.width,P.left)),W.yP.bottom&&(X.height=Math.min(P.bottom-W.y,I+X.height-P.top),X.height=Math.max(X.height,0))),W.y+X.height>P.bottom&&T&4&&(W.y=Math.max(P.bottom-X.height,P.top)));P=new g.eh(0,0,0,0);P.left=W.x;P.top=W.y;P.width= Y.width;P.height=Y.height;g.xs(this.element,new g.Cc(P.left,P.top));g.ne(this.J);this.J.Z(Xr(this),"contextmenu",this.nmr);this.J.Z(this.Y,"fullscreentoggled",this.onFullscreenToggled);this.J.Z(this.Y,"pageTransition",this.sW)}; g.R.nmr=function(W){if(!W.defaultPrevented){var Y=tl(W);g.R_(this.element,Y)||this.n1();this.Y.V().disableNativeContextMenu&&W.preventDefault()}}; g.R.onFullscreenToggled=function(){this.n1();r5F(this)}; g.R.sW=function(){this.n1()};g.H(hg,g.l);hg.prototype.onClick=function(){var W=this,Y,k,P,T;return g.D(function(I){if(I.W==1)return Y=W.api.V(),k=W.api.getVideoData(),P=W.api.getPlaylistId(),T=Y.getVideoUrl(k.videoId,P,void 0,!0),g.m(I,do1(W,T),2);I.K&&zdz(W);W.api.logClick(W.element);g.G1(I)})}; hg.prototype.xa=function(){this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= A5F(this);g.kN(this.element,"ytp-copylink-button-visible",this.visible);this.b8(this.visible);this.tooltip.wc();this.api.logVisibility(this.element,this.visible&&this.L)}; hg.prototype.h9=function(W){g.l.prototype.h9.call(this,W);this.api.logVisibility(this.element,this.visible&&W)}; hg.prototype.iz=function(){g.l.prototype.iz.call(this);g.YN(this.element,"ytp-copylink-button-visible")};g.H(mod,g.l);g.R=mod.prototype;g.R.show=function(){g.l.prototype.show.call(this);g.L_(this.K)}; g.R.hide=function(){this.T.stop();this.J=0;this.J5("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.YN(this.element,"ytp-chapter-seek");g.YN(this.element,"ytp-time-seeking");g.l.prototype.hide.call(this)}; g.R.nS=function(W,Y,k,P){this.J=W===this.X?this.J+P:P;this.X=W;var T=W===-1?this.N:this.G;T&&this.Y.logClick(T);this.C?this.K.stop():g.l9(this.K);this.T.start();this.element.setAttribute("data-side",W===-1?"back":"forward");var I=3*this.Y.ai().getPlayerSize().height;T=this.Y.ai().getPlayerSize();T=T.width/3-3*T.height;this.W.style.width=I+"px";this.W.style.height=I+"px";W===1?(this.W.style.left="",this.W.style.right=T+"px"):W===-1&&(this.W.style.right="",this.W.style.left=T+"px");var X=I*2.5;I=X/ 2;var h=this.J5("ytp-doubletap-ripple");h.style.width=X+"px";h.style.height=X+"px";W===1?(W=this.Y.ai().getPlayerSize().width-Y+Math.abs(T),h.style.left="",h.style.right=W-I+"px"):W===-1&&(W=Math.abs(T)+Y,h.style.right="",h.style.left=W-I+"px");h.style.top="calc((33% + "+Math.round(k)+"px) - "+I+"px)";if(k=this.J5("ytp-doubletap-ripple"))k.classList.remove("ytp-doubletap-ripple"),k.classList.add("ytp-doubletap-ripple");Do5(this,this.C?this.J:P)}; g.R.HF=function(W,Y,k){if(k=k===void 0?null:k){var P=W===-1?this.N.visualElement:this.G.visualElement;k={seekData:k};var T=g.iD();T&&xx(T,P,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",k)}this.J=W===this.X?this.J+Y:Y;this.X=W;P=this.Y.ai().getPlayerSize();this.C?this.K.stop():g.l9(this.K);this.T.start();this.element.setAttribute("data-side",W===-1?"back":"forward");g.a2(this.element,"ytp-time-seeking");this.W.style.width="110px";this.W.style.height="110px";k=P.width*.1-15;W===1?this.A5?(this.W.style.right= k+"px",this.W.style.left=""):(this.W.style.right="",this.W.style.left=P.width*.8-30+"px"):W===-1&&(this.A5?(this.W.style.right="",this.W.style.left=k+"px"):(this.W.style.right="",this.W.style.left=P.width*.1-15+"px"));this.W.style.top=P.height*.5+15+"px";Do5(this,this.C?this.J:Y)}; g.R.bB=function(W,Y,k){k=k===void 0?null:k;g.l9(this.K);this.T.start();switch(W){case -1:W="back";break;case 1:W="forward";break;default:W=""}this.element.setAttribute("data-side",W);this.W.style.width="0";this.W.style.height="0";g.a2(this.element,"ytp-chapter-seek");this.updateValue("seekText",Y);this.updateValue("seekTime","");Y=this.J5("ytp-seek-icon");if(k){a:if(k){switch(k){case "PREMIUM_STANDALONE":k=Ald();break a;case "PREMIUM_STANDALONE_CAIRO":k=zBC();break a}k=void 0}else k=null;this.updateValue("seekIcon", k);Y.style.display="inline-block"}else Y.style.display="none"};g.H(gPF,sS);g.R=gPF.prototype;g.R.OW=function(W){this.UP||(this.UP=new g$(this.Y),g.v(this,this.UP));var Y,k;if((Y=this.A9)==null?0:(k=Y.menu)==null?0:k.menuRenderer)this.UP.open(this.A9.menu.menuRenderer,W.target),W.preventDefault()}; g.R.Gu=function(){return!!this.W}; g.R.Em=function(){return!!this.W}; g.R.Lt=function(W){W.target===this.overflowButton.element?W.preventDefault():(this.KH&&this.Y.Ri("innertubeCommand",this.KH),this.S7(!1))}; g.R.yQ=function(){this.S7(!0);var W,Y;((W=this.W)==null?0:(Y=W.bannerData)==null?0:Y.dismissedStatusKey)&&this.Gn.push(this.W.bannerData.dismissedStatusKey);this.Vm()}; g.R.SK=function(){this.Vm();un(this)}; g.R.pkr=function(W){var Y=this,k;if(W.id!==((k=this.W)==null?void 0:k.identifier)){this.Vm();k=g.p(this.gD);for(var P=k.next();!P.done;P=k.next()){var T=P.value,I=void 0,X=void 0;if((P=(I=T)==null?void 0:(X=I.bannerData)==null?void 0:X.itemData)&&T.identifier===W.id){X=I=void 0;var h=((I=T)==null?void 0:(X=I.bannerData)==null?void 0:X.dismissedStatusKey)||"";if(this.Gn.includes(h))return;this.W=T;this.banner.element.setAttribute("aria-label",P.accessibilityLabel||"");P.trackingParams&&(this.T=!0, this.Y.setTrackingParams(this.badge.element,P.trackingParams));this.show();this.N.show();J3(this);this.TJ.b8(!P.stayInApp);bGd(this);wov(this);Og(this);this.KH=g.U(P.onTapCommand,Jh);if(T=g.U(P.menuOnTap,Jh))this.A9=g.U(T,DBc);T=void 0;this.banner.update({thumbnail:(T=(P.thumbnailSources||[])[0])==null?void 0:T.url,title:P.productTitle,price:P.priceReplacementText?P.priceReplacementText:P.price,salesOriginalPrice:edV(this),priceDropReferencePrice:oP0(this),promotionText:y5C(this),priceA11yText:vP0(this), affiliateDisclaimer:P.affiliateDisclaimer,vendor:Cr1(this)});h=X=I=T=void 0;((T=P)==null?0:(I=T.hiddenProductOptions)==null?0:I.showDropCountdown)&&((X=P)==null?0:(h=X.hiddenProductOptions)==null?0:h.dropTimestampMs)&&(this.J9=new g.C_(function(){lj7(Y)},1E3),this.TJ.hide(),this.countdownTimer.show(),lj7(this)); this.Y.U("web_player_enable_featured_product_banner_exclusives_on_desktop")&&FC6(this)&&(this.f1=new g.C_(function(){Qu0(Y)},1E3),Qu0(this))}}this.Y.getRootNode()&&g.a2(this.Y.getRootNode(),"ytp-featured-product-shown")}}; g.R.Vm=function(){this.W&&(this.W=void 0,this.zw(),this.Y.getRootNode()&&g.YN(this.Y.getRootNode(),"ytp-featured-product-shown"))}; g.R.onVideoDataChange=function(W,Y){var k=this;W==="dataloaded"&&un(this);var P,T,I;W=g.U((P=Y.getWatchNextResponse())==null?void 0:(T=P.playerOverlays)==null?void 0:(I=T.playerOverlayRenderer)==null?void 0:I.productsInVideoOverlayRenderer,dBz);this.overflowButton.show();this.dismissButton.hide();var X=W==null?void 0:W.featuredProductsEntityKey;this.trendingOfferEntityKey=W==null?void 0:W.trendingOfferEntityKey;this.gD.length||(Uo6(this,X),Og(this));var h;(h=this.tT)==null||h.call(this);this.tT=g.J6.subscribe(function(){Uo6(k, X);Og(k)})}; g.R.iz=function(){un(this);bGd(this);wov(this);sS.prototype.iz.call(this)};g.H(NN2,g.l);NN2.prototype.onClick=function(){this.Y.logClick(this.element,this.K)};g.H(ajS,g.IJ);g.R=ajS.prototype;g.R.show=function(){g.IJ.prototype.show.call(this);this.Y.publish("infopaneldetailvisibilitychange",!0);this.Y.logVisibility(this.element,!0);W0X(this,!0)}; g.R.hide=function(){g.IJ.prototype.hide.call(this);this.Y.publish("infopaneldetailvisibilitychange",!1);this.Y.logVisibility(this.element,!1);W0X(this,!1)}; g.R.getId=function(){return this.T}; g.R.jN=function(){return this.itemData.length}; g.R.onVideoDataChange=function(W,Y){if(Y){var k,P,T,I;this.update({title:((k=Y.yL)==null?void 0:(P=k.title)==null?void 0:P.content)||"",body:((T=Y.yL)==null?void 0:(I=T.bodyText)==null?void 0:I.content)||""});var X;W=((X=Y.yL)==null?void 0:X.trackingParams)||null;this.Y.setTrackingParams(this.element,W);X=g.p(this.itemData);for(W=X.next();!W.done;W=X.next())W.value.dispose();this.itemData=[];var h;if((h=Y.yL)==null?0:h.ctaButtons)for(Y=g.p(Y.yL.ctaButtons),h=Y.next();!h.done;h=Y.next())if(h=g.U(h.value, Esp))h=new NN2(this.Y,h,this.W),h.Nt&&(this.itemData.push(h),h.S1(this.items))}}; g.R.iz=function(){this.hide();g.IJ.prototype.iz.call(this)};g.H(kPv,g.l);g.R=kPv.prototype;g.R.onVideoDataChange=function(W,Y){$rS(this,Y);this.b7&&TQS(this,this.b7)}; g.R.HI=function(W){var Y=this.Y.getVideoData();this.videoId!==Y.videoId&&$rS(this,Y);TQS(this,W.state);this.b7=W.state}; g.R.mj=function(W){(this.J=W)?this.hide():this.W&&this.show()}; g.R.FD=function(){this.K||this.fH();this.showControls=!0}; g.R.XD=function(){this.K||this.n1();this.showControls=!1}; g.R.fH=function(){var W,Y=(W=this.Y)==null?void 0:W.getPlayerSize();W=Y.width<380;var k;Y=Y.height<(((k=this.Y)==null?0:k.isEmbedsShortsMode())?400:280);var P,T;(((P=this.Y)==null?0:P.getPlayerStateObject().isCued())||((T=this.Y)==null?0:g.b(T.getPlayerStateObject(),1024)))&&W&&Y||!this.W||this.J||(this.fade.show(),this.Y.publish("infopanelpreviewvisibilitychange",!0),this.Y.logVisibility(this.element,!0))}; g.R.n1=function(){this.W&&!this.J&&(this.fade.hide(),this.Y.publish("infopanelpreviewvisibilitychange",!1),this.Y.logVisibility(this.element,!1))}; g.R.uuJ=function(){this.K=!1;this.showControls||this.n1()};var yCz={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(yCz).reduce(function(W,Y){W[yCz[Y]]=Y;return W},{}); var eDK={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(eDK).reduce(function(W,Y){W[eDK[Y]]=Y;return W},{}); var oIQ={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(oIQ).reduce(function(W,Y){W[oIQ[Y]]=Y;return W},{});var vIK,C4K;vIK=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];C4K=[{option:0,text:Z6(0)},{option:.25,text:Z6(.25)},{option:.5,text:Z6(.5)},{option:.75,text:Z6(.75)},{option:1,text:Z6(1)}]; g.Rt=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:vIK},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:Z6(.5)},{option:-1,text:Z6(.75)},{option:0,text:Z6(1)},{option:1, text:Z6(1.5)},{option:2,text:Z6(2)},{option:3,text:Z6(3)},{option:4,text:Z6(4)}]},{option:"background",text:"Color de fondo",options:vIK},{option:"backgroundOpacity",text:"Opacidad de fondo",options:C4K},{option:"windowColor",text:"Color de la ventana",options:vIK},{option:"windowOpacity",text:"Opacidad de la ventana",options:C4K},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:Z6(.25)},{option:.5,text:Z6(.5)},{option:.75,text:Z6(.75)},{option:1,text:Z6(1)}]}];var LAp=[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.H(BQ2,g.p5);g.R=BQ2.prototype; g.R.ZH=function(W){W.repeat||(this.J.WE=!1);var Y=!1,k=W.keyCode,P=tl(W),T=!W.altKey&&!W.ctrlKey&&!W.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||LAp.includes(k)),I=!1,X=!1,h=this.api.V();W.defaultPrevented?(T=!1,X=!0):h.AC&&!this.api.isMutedByEmbedsMutedAutoplay()&&(T=!1);if(k===9)Y=!0;else{if(P)switch(k){case 32:case 13:if(P.tagName==="BUTTON"||P.tagName==="A"||P.tagName==="INPUT")Y=!0,T=!1;else if(T){var B=P.getAttribute("role");!B||B!=="option"&&B!=="button"&&B.indexOf("menuitem")!==0|| (Y=!0,P.click(),I=!0)}break;case 37:case 39:case 36:case 35:Y=P.getAttribute("role")==="slider";break;case 38:case 40:B=P.getAttribute("role"),P=k===38?P.previousSibling:P.nextSibling,B==="slider"?Y=!0:T&&(B==="option"?(P&&P.getAttribute("role")==="option"&&P.focus(),I=Y=!0):B&&B.indexOf("menuitem")===0&&(P&&P.hasAttribute("role")&&P.getAttribute("role").indexOf("menuitem")===0&&P.focus(),I=Y=!0))}if(T&&!I)switch(k){case 38:I=Math.min(this.api.getVolume()+5,100);Pi(this.qt,I,!1);this.api.setVolume(I); X=I=!0;break;case 40:I=Math.max(this.api.getVolume()-5,0);Pi(this.qt,I,!0);this.api.setVolume(I);X=I=!0;break;case 36:this.api.hD()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),X=I=!0);break;case 35:this.api.hD()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),X=I=!0)}}Y&&tg(this,!0);(Y||X)&&this.EU.Q0();(I||T&&this.handleGlobalKeyDown(k,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat))&&W.preventDefault();h.L&&(W={keyCode:W.keyCode, altKey:W.altKey,ctrlKey:W.ctrlKey,metaKey:W.metaKey,shiftKey:W.shiftKey,handled:W.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.x8("onKeyPress",W))}; g.R.fQ=function(W){var Y=W.keyCode;(!this.api.U("web_player_spacebar_control_bugfix")||this.api.U("web_player_spacebar_control_bugfix")&&!this.J.Ov)&&this.handleGlobalKeyUp(Y,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)&&W.preventDefault()}; g.R.handleGlobalKeyUp=function(W,Y,k,P,T,I,X){this.api.publish("keyboardserviceglobalkeyup",{keyCode:W,shiftKey:Y,ctrlKey:k,altKey:P,metaKey:T,key:I,code:X});Y=!1;if(this.J.WE)return Y;(I=g.Vn(this.api.gx()))&&(I=I.tU)&&I.v7&&(I.xC(W),Y=!0);switch(W){case 9:tg(this,!0);Y=!0;break;case 32:if(this.api.U("web_speedmaster_spacebar_control")&&(!this.api.U("web_player_spacebar_control_bugfix")&&!this.J.Ov||this.api.U("web_player_spacebar_control_bugfix"))&&!this.api.V().AC){var h,B;W=(h=this.progressBar)== null?void 0:(B=h.K)==null?void 0:B.isEnabled;Y=this.XV(W)}break;case 39:(Ro?P:k)&&!T&&this.api.hD()&&this.api.U("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),h=(h=this.api.getVideoData())?h.i_:[],B=I80(h,this.api.getCurrentTime()*1E3),B!==-1&&this.W!=null&&(this.W.bB(1,h[B].title),this.api.seekTo(h[B].startTime/1E3,void 0,void 0,void 0,52),Y=!0))}return Y}; g.R.handleGlobalKeyDown=function(W,Y,k,P,T,I,X,h){h||(this.J.WE=!1);var B=!1,O=this.api.V();if(O.AC&&!this.api.isMutedByEmbedsMutedAutoplay())return B;var u=g.Vn(this.api.gx());if(u&&(u=u.tU)&&u.v7)switch(W){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:B=u.Im(W)}O.X||B||(B=I||String.fromCharCode(W).toLowerCase(),this.K+=B,"awesome".indexOf(this.K)===0||this.api.U("web_player_rtr_ctrls")&&"bday".indexOf(this.K)===0?(B=!0,4===this.K.length&&this.K==="bday"&&this.api.U("web_player_rtr_ctrls")&& (iwV(this.C),this.EU.Q0()),7===this.K.length&&this.K==="awesome"&&JW6(this.api.getRootNode(),"ytp-color-party")):(this.K=B,B="awesome".indexOf(this.K)===0||"bday".indexOf(this.K)===0));if(!B&&(!this.api.isMutedByEmbedsMutedAutoplay()||LAp.includes(W))){var Z=this.api.getVideoData(),M,t;u=(M=this.progressBar)==null?void 0:(t=M.K)==null?void 0:t.isEnabled;M=Z?Z.i_:[];t=Ro?P:k;switch(W){case 80:Y&&!O.Fr&&(kc(this.qt,d8q(),"Anterior"),this.api.previousVideo(),B=!0);break;case 78:Y&&!O.Fr&&(kc(this.qt, ZM(),"Siguiente"),this.api.nextVideo(),B=!0);break;case 74:this.api.hD()&&(this.api.startSeekCsiAction(),this.W?this.api.U("enable_key_press_seek_logging")?(B=qA(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.W.HF(-1,10,B)):this.W.HF(-1,10):kc(this.qt,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),B=!0);break;case 76:this.api.hD()&&(this.api.startSeekCsiAction(),this.W?this.api.U("enable_key_press_seek_logging")?(B=qA(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.W.HF(1,10,B)):this.W.HF(1,10):kc(this.qt,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),B=!0);break;case 37:this.api.hD()&&(this.api.startSeekCsiAction(),t?(t=XfV(M,this.api.getCurrentTime()*1E3),t!==-1&&this.W!=null&&(this.W.bB(-1,M[t].title),this.api.seekTo(M[t].startTime/1E3,void 0,void 0,void 0,53),B=!0)):(this.W?this.api.U("enable_key_press_seek_logging")?(B=qA(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.W.HF(-1,5,B)):this.W.HF(-1,5):kc(this.qt,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),B=!0));break;case 39:this.api.hD()&&(this.api.startSeekCsiAction(),t?this.api.U("web_enable_keyboard_shortcut_for_timely_actions")||(t=I80(M,this.api.getCurrentTime()*1E3),t!==-1&&this.W!=null&&(this.W.bB(1,M[t].title),this.api.seekTo(M[t].startTime/1E3,void 0,void 0,void 0,52),B=!0)):(this.W!=null?this.api.U("enable_key_press_seek_logging")?(B=qA(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.W.HF(1,5,B)):this.W.HF(1, 5):kc(this.qt,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),B=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Pi(this.qt,this.api.getVolume(),!1)):(this.api.mute(),Pi(this.qt,0,!0));B=!0;break;case 32:B=this.api.U("web_speedmaster_spacebar_control")?!this.api.V().Fr:this.XV(u);break;case 75:B=this.XV(u);break;case 190:Y?O.enableSpeedOptions&&uVv(this)&&(B=this.api.getPlaybackRate(),this.api.setPlaybackRate(B+.25,!0),Prq(this.qt,!1),B=!0):this.api.hD()&&(this.step(1),B=!0);break;case 188:Y? O.enableSpeedOptions&&uVv(this)&&(B=this.api.getPlaybackRate(),this.api.setPlaybackRate(B-.25,!0),Prq(this.qt,!0),B=!0):this.api.hD()&&(this.step(-1),B=!0);break;case 70:NmC(this.api)&&(this.api.toggleFullscreen().catch(function(){}),B=!0); break;case 27:u?(this.progressBar.Sx(),B=!0):this.X()&&(B=!0)}if(O.controlsType!=="3")switch(W){case 67:g.mh(this.api.gx())&&(O=this.api.getOption("captions","track"),this.api.toggleSubtitles(),TNd(this.qt,!O||O&&!O.displayName),B=!0);break;case 79:Hi(this,"textOpacity");break;case 87:Hi(this,"windowOpacity");break;case 187:case 61:Hi(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Hi(this,"fontSizeIncrement",!0,!0)}var q;Y||k||P||(W>=48&&W<=57?q=W-48:W>=96&&W<=105&&(q=W-96));q!=null&&this.api.hD()&& !this.api.U("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),O=this.api.getProgressState(),this.api.seekTo(q/10*(O.seekableEnd-O.seekableStart)+O.seekableStart,void 0,void 0,void 0,81),B=!0);B&&this.EU.Q0()}this.J.SE=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:W,shiftKey:Y,ctrlKey:k,altKey:P,metaKey:T,key:I,code:X,repeat:h},this.J);this.J.SE&&(B=!0,this.EU.Q0());return B}; g.R.step=function(W){this.api.hD();if(this.api.getPlayerStateObject().isPaused()){var Y=this.api.getVideoData().K;Y&&(Y=Y.video)&&this.api.seekBy(W/(Y.fps||30),void 0,void 0,W>0?77:78)}}; g.R.XV=function(W){if(!this.api.V().Fr){var Y;var k,P=(Y=this.api.getVideoData())==null?void 0:(k=Y.getPlayerResponse())==null?void 0:k.playabilityStatus;if(P){var T;Y=((T=g.U(P.miniplayer,osN))==null?void 0:T.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else Y=!1;Y&&this.api.Ri("onExpandMiniplayer");W?this.progressBar.hM():(W=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.qt.nP(W),W?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.R.iz=function(){g.l9(this.T);g.p5.prototype.iz.call(this)};g.H(ny,g.l);ny.prototype.xa=function(){var W=this.Y.V(),Y=W.J||this.Y.U("web_player_hide_overflow_button_if_empty_menu")&&this.Xb.isEmpty();W=g.Y3(W)&&g.x9(this.Y)&&g.b(this.Y.getPlayerStateObject(),128);var k=this.Y.getPlayerSize();this.visible=this.Y.jy()&&!W&&k.width>=240&&!this.Y.getVideoData().zr&&!Y&&!this.Y.isEmbedsShortsMode();g.kN(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.Y.wc();this.Y.logVisibility(this.element,this.visible&&this.L)}; ny.prototype.h9=function(W){g.l.prototype.h9.call(this,W);this.Y.logVisibility(this.element,this.visible&&W)}; ny.prototype.iz=function(){g.l.prototype.iz.call(this);g.YN(this.element,"ytp-overflow-button-visible")};g.H(ZEX,g.IJ);g.R=ZEX.prototype;g.R.qp=function(W){W=tl(W);g.R_(this.element,W)&&(g.R_(this.W,W)||g.R_(this.closeButton,W)||Sk(this))}; g.R.n1=function(){g.IJ.prototype.n1.call(this);this.Y.gX(this.element)}; g.R.show=function(){this.v7&&this.Y.publish("OVERFLOW_PANEL_OPENED");g.IJ.prototype.show.call(this);this.element.setAttribute("aria-modal","true");M3F(this,!0)}; g.R.hide=function(){g.IJ.prototype.hide.call(this);this.element.removeAttribute("aria-modal");M3F(this,!1)}; g.R.onFullscreenToggled=function(W){!W&&this.IZ()&&Sk(this)}; g.R.isEmpty=function(){return this.actionButtons.length===0}; g.R.focus=function(){for(var W=g.p(this.actionButtons),Y=W.next();!Y.done;Y=W.next())if(Y=Y.value,Y.v7){Y.focus();break}};g.H(t3d,g.l);t3d.prototype.onClick=function(W){g.sH(W,this.api)&&this.api.playVideoAt(this.index)};g.H(q_5,g.IJ);g.R=q_5.prototype;g.R.show=function(){g.IJ.prototype.show.call(this);this.W.Z(this.api,"videodatachange",this.wC);this.W.Z(this.api,"onPlaylistUpdate",this.wC);this.wC()}; g.R.hide=function(){g.IJ.prototype.hide.call(this);g.ne(this.W);this.updatePlaylist(null)}; g.R.wC=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().J&&(this.J5("ytp-playlist-menu-title-name").removeAttribute("href"),this.J&&(this.nH(this.J),this.J=null))}; g.R.Om=function(){var W=this.playlist,Y=W.author,k=Y?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",P={CURRENT_POSITION:String(W.index+1),PLAYLIST_LENGTH:String(W.length)};Y&&(P.AUTHOR=Y);this.update({title:W.title,subtitle:g.ky(k,P),playlisturl:this.api.getVideoUrl(!0)});Y=W.K;if(Y===this.T)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[W.index];else{k=g.p(this.playlistData);for(P=k.next();!P.done;P=k.next())P.value.dispose(); k=W.length;this.playlistData=[];for(P=0;P=this.K&&!W.J&&!Y.isAd()&&!this.api.isEmbedsShortsMode()}else W=!1;this.visible=W;this.b8(this.visible);g.kN(this.element,"ytp-search-button-visible",this.visible);g.kN(this.element,"ytp-show-search-title",!this.api.jy());this.api.logVisibility(this.element,this.visible&&this.L)}; Eg.prototype.h9=function(W){g.l.prototype.h9.call(this,W);this.api.logVisibility(this.element,this.visible&&W)};g.H(Jg,g.l); Jg.prototype.trigger=function(W,Y,k,P){this.show();if(this.K&&W!==this.K){var T=1;this.J&&(T=zO2(this));EYX(this,T,!1);A00(this)}this.K=W;this.T=this.K===-1?this.G:this.N;W="";Y?(this.X+=Y,W=(this.K===-1?"\u2212":"+")+" "+this.X):this.X=0;this.updateValue(this.K===-1?"durationBack":"durationForward",W);if(this.W==="hidden"||this.W==="fading-out")Y=0,this.W==="fading-out"&&(Y=zO2(this),r05(this)),J0d(this,Y),this.W!=="fading-out"&&sS2(this,this.T.querySelector(".ytp-seek-overlay-arrow-persistent")),this.W= "fading-in";else if(this.W==="fading-in"||this.W==="lingering")Y=this.T.querySelector(".ytp-seek-overlay-duration"),W=g.W2(this.Y.V().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,Y.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+W+")"},{offset:1,transform:"scale(1)"}],{duration:184}),r05(this),this.W==="lingering"&&(this.C.stop(),this.C.start());k&&drS(this,k,P)}; Jg.prototype.nS=function(W,Y,k,P){this.trigger(W,P)}; Jg.prototype.HF=function(W,Y,k){this.trigger(W,Y);k&&(W=W===-1?this.N.visualElement:this.G.visualElement,k={seekData:k},(Y=g.iD())&&xx(Y,W,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",k))}; Jg.prototype.bB=function(W,Y,k){this.trigger(W,void 0,Y,k)};g.H(sg,g.l);sg.prototype.onClick=function(){var W=this,Y=this.api.V(),k=this.api.getVideoData(this.api.getPresentingPlayerType()),P=this.api.getPlaylistId();Y=this.api.U("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):Y.getVideoUrl(k.videoId,P,void 0,!0);if(navigator.share)try{var T=navigator.share({title:k.title,url:Y});T instanceof Promise&&T.catch(function(I){Drd(W,I)})}catch(I){I instanceof Error&&Drd(this,I)}else this.W.CC(),Sk(this.K,this.element,!1); this.api.logClick(this.element)}; sg.prototype.xa=function(){var W=this.api.V(),Y=this.api.isEmbedsShortsMode();g.kN(this.element,"ytp-show-share-title",g.Y3(W)&&!Y);this.W.U6()&&Y?(W=(this.api.ai().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.CX(this.element,"right",W+"px")):Y&&g.CX(this.element,"right","0px");this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=mr0(this);g.kN(this.element,"ytp-share-button-visible",this.visible);this.b8(this.visible);this.tooltip.wc();this.api.logVisibility(this.element,mr0(this)&&this.L)}; sg.prototype.h9=function(W){g.l.prototype.h9.call(this,W);this.api.logVisibility(this.element,this.visible&&W)}; sg.prototype.iz=function(){g.l.prototype.iz.call(this);g.YN(this.element,"ytp-share-button-visible")};g.H(F0S,g.IJ);g.R=F0S.prototype;g.R.ju=function(W){W=tl(W);g.R_(this.C,W)||g.R_(this.closeButton,W)||Sk(this)}; g.R.n1=function(){g.IJ.prototype.n1.call(this);this.tooltip.gX(this.element);this.api.logVisibility(this.W,!1);for(var W=g.p(this.J),Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.api.hasVe(Y.element)&&this.api.logVisibility(Y.element,!1)}; g.R.show=function(){var W=this.v7;g.IJ.prototype.show.call(this);this.xa();W||this.api.Ri("onSharePanelOpened")}; g.R.ur5=function(){this.v7&&this.xa()}; g.R.xa=function(){var W=this;g.a2(this.element,"ytp-share-panel-loading");g.YN(this.element,"ytp-share-panel-fail");var Y=this.api.getVideoData(),k=this.api.getPlaylistId()&&this.T.checked;Y.getSharePanelCommand&&dG(this.api.fn(),Y.getSharePanelCommand,{includeListId:k}).then(function(P){W.Xr()||(g.YN(W.element,"ytp-share-panel-loading"),y07(W,P))}); Y=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",Y);this.updateValue("linkText",Y);this.updateValue("shareLinkWithUrl",g.ky("Compartir v\u00ednculo $URL",{URL:Y}));d7(this.W);this.api.logVisibility(this.W,!0)}; g.R.onFullscreenToggled=function(W){!W&&this.IZ()&&Sk(this)}; g.R.focus=function(){this.W.focus()}; g.R.iz=function(){g.IJ.prototype.iz.call(this);wf5(this)};g.H(vY0,sS);g.R=vY0.prototype;g.R.iz=function(){bEX(this);sS.prototype.iz.call(this)}; g.R.Lt=function(W){W.target!==this.dismissButton.element&&(this.S7(!1),this.Y.Ri("innertubeCommand",this.onClickCommand))}; g.R.yQ=function(){this.rD=!0;this.S7(!0);this.zw()}; g.R.fYr=function(W){this.X=W;this.zw()}; g.R.onVideoDataChange=function(W,Y){if(W=!!Y.videoId&&this.videoId!==Y.videoId)this.videoId=Y.videoId,this.rD=!1,this.wD=!0,this.G=this.Kg=!1,bEX(this),l8C(this,!1),this.K=this.W=!1,Ag(this),Cyd(this);if(W||!Y.videoId)this.A5=this.T=!1;var k,P;if(Y==null?0:(k=Y.getPlayerResponse())==null?0:(P=k.videoDetails)==null?0:P.isLiveContent)this.R6(!1);else{var T,I,X;Y=g.U((T=Y.getWatchNextResponse())==null?void 0:(I=T.playerOverlays)==null?void 0:(X=I.playerOverlayRenderer)==null?void 0:X.productsInVideoOverlayRenderer, dBz);this.X=this.enabled=!1;if(Y){if(T=Y==null?void 0:Y.featuredProductsEntityKey){I=g.J6.getState().entities;var h;if((h=VJ(I,"featuredProductsEntity",T))==null?0:h.productsData){this.R6(!1);return}}if(!Y.text||!Y.onClickCommand||!Y.timing){this.R6(!1);return}this.enabled=!0;if(!this.T){var B;h=(B=Y.badgeInteractionLogging)==null?void 0:B.trackingParams;(this.T=!!h)&&this.Y.setTrackingParams(this.badge.element,h||null)}if(!this.A5){var O;if(this.A5=!((O=Y.dismissButton)==null||!O.trackingParams)){var u; this.Y.setTrackingParams(this.dismissButton.element,((u=Y.dismissButton)==null?void 0:u.trackingParams)||null)}}Y.isContentForward&&(B=Y.productsData,l8C(this,!0),Cyd(this),B=Ur2(this,B),O=[],B.length>0&&O.push(B[0]),B.length>1&&(u=new g.l({S:"div",j:"ytp-suggested-action-more-products-icon"}),g.v(this,u),O.push(u),O.push.apply(O,g.ZX(B.slice(1)))),this.C=new g.l({S:"div",B:O,j:"ytp-suggested-action-content-forward-container"}),g.v(this,this.C),this.OP.element.append(this.C.element));this.text=g.jy(Y.text); var Z;if(B=(Z=Y.dismissButton)==null?void 0:Z.a11yLabel)this.V5=g.jy(B);this.onClickCommand=Y.onClickCommand;this.timing=Y.timing;this.Bz()}zv5(this);J3(this);this.zw()}}; g.R.Gu=function(){return!this.X&&this.enabled&&!this.rD&&!this.Y.jy()&&!this.K1&&(this.G||this.wD)}; g.R.gW=function(W){sS.prototype.gW.call(this,W);if(this.W||this.K)this.timing&&rJ(this.timing.preview)&&(this.W=!1,Ag(this),this.K=!1,Ag(this),this.Y.fq("shopping_overlay_preview_collapsed"),this.Y.fq("shopping_overlay_preview_expanded"),W=zL(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),rJ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.Y.fq("shopping_overlay_expanded"),W.end=this.timing.expanded.endSec*1E3),this.Y.Bz([W])), this.Kg=!0,J3(this);Ag(this)}; g.R.R6=function(W){(this.G=W)?(ES(this),J3(this,!1)):(bEX(this),this.Fr.start());this.zw()}; g.R.Bz=function(W){var Y=this.timing;W=(W===void 0?0:W)+this.Y.getCurrentTime();var k=[],P=Y.visible,T=Y.preview;Y=Y.expanded;rJ(P)&&(eOv(P,W),k.push(zL(P.startSec,P.endSec,"shopping_overlay_visible")));rJ(T)&&(eOv(T,W),P=T.startSec+1,k.push(zL(T.startSec,P,"shopping_overlay_preview_collapsed")),k.push(zL(P,T.endSec,"shopping_overlay_preview_expanded")));rJ(Y)&&(eOv(Y,W),k.push(zL(Y.startSec,Y.endSec,"shopping_overlay_expanded")));this.Y.Bz(k)}; g.R.zw=function(){sS.prototype.zw.call(this);this.Y.getRootNode()&&g.kN(this.Y.getRootNode(),"ytp-shopping-pill-shown",this.Gu())};g.H(f8d,g.l); f8d.prototype.xa=function(){var W=this.api.V();this.b8(g.Y3(W)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.v7);var Y=this.api.getVideoData(),k=!1;this.api.getPresentingPlayerType()===2?k=!!Y.videoId&&!!Y.isListed&&!!Y.author&&!!Y.Lg&&!!Y.profilePicture:g.Y3(W)&&(k=!!Y.videoId&&!!Y.Lg&&!!Y.profilePicture&&!Y.zr&&!W.J&&!(W.G&&this.api.getPlayerSize().width<200));var P=Y.profilePicture;W=g.Y3(W)?Y.expandedTitle:Y.author;P=P===void 0? "":P;W=W===void 0?"":W;k?(this.K!==P&&(this.W.style.backgroundImage="url("+P+")",this.K=P),this.updateValue("channelLogoLabel",g.ky("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:W})),g.a2(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.YN(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.W,k&&this.L);this.api.logVisibility(this.channelName,k&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=Y.zC);this.updateValue("expandedTitle",Y.expandedTitle)};g.H(dJ,g.IJ);dJ.prototype.show=function(){g.IJ.prototype.show.call(this);this.W.start()}; dJ.prototype.hide=function(){g.IJ.prototype.hide.call(this);this.W.stop()}; dJ.prototype.qB=function(W,Y){W==="dataloaded"&&((this.PU=Y.PU,this.CN=Y.CN,isNaN(this.PU)||isNaN(this.CN))?this.J&&(this.Y.fq("intro"),this.Y.removeEventListener(g.lP("intro"),this.N),this.Y.removeEventListener(g.bP("intro"),this.C),this.Y.removeEventListener("onShowControls",this.T),this.hide(),this.J=!1):(this.Y.addEventListener(g.lP("intro"),this.N),this.Y.addEventListener(g.bP("intro"),this.C),this.Y.addEventListener("onShowControls",this.T),W=new g.L6(this.PU,this.CN,{priority:9,namespace:"intro"}), this.Y.Bz([W]),this.J=!0))};g.H(m7,g.l);m7.prototype.onClick=function(){this.Y.i4()}; m7.prototype.xa=function(){var W=!0;g.Y3(this.Y.V())&&(W=W&&this.Y.ai().getPlayerSize().width>=480);this.b8(W);W=this.updateValue;var Y=this.Y.U("delhi_modern_web_player_icons"),k=Y?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,D:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};Y=Y?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};W.call(this,"icon",this.Y.Y7()?k:Y)};g.H(NQq,g.l);NQq.prototype.iz=function(){this.W=null;g.l.prototype.iz.call(this)};g.H(D6,g.l);D6.prototype.onClick=function(){this.Y.Ri("innertubeCommand",this.K)}; D6.prototype.N=function(){if(this.Y.U("delhi_modern_web_player")){var W=this.Y.getPlayerSize();W.width&&(this.element.style.maxWidth=W.width*.25+"px")}}; D6.prototype.Kg=function(W){W!==this.X&&(this.update({chapterTitle:W,ariaLabel:W}),this.X=W);W?this.show():this.hide()}; D6.prototype.A5=function(){this.W.disabled=this.K==null;g.kN(this.W,"ytp-chapter-container-disabled",this.W.disabled);this.Xi()};g.H(gJ,D6);gJ.prototype.onClickCommand=function(W){g.U(W,E4)&&this.Xi()}; gJ.prototype.updateVideoData=function(W,Y){var k,P,T;W=g.U((k=Y.getWatchNextResponse())==null?void 0:(P=k.playerOverlays)==null?void 0:(T=P.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,aT);k=g.U(W==null?void 0:W.playerBarActionButton,g.hV);if(this.Y.U("web_player_updated_entrypoint")){this.G=VQ(k==null?void 0:k.text);var I;P=(I=k==null?void 0:k.tooltip)!=null?I:"Ver cap\u00edtulo";this.C.setAttribute("title",P)}this.K=k==null?void 0:k.command;D6.prototype.A5.call(this)}; gJ.prototype.Xi=function(){var W=this.G,Y=this.T.W,k,P=((k=this.Y.getLoopRange())==null?void 0:k.type)==="clips";if(Y.length>1&&!P){W=this.Y.getProgressState().current*1E3;k=MA(Y,W);W=Y[k].title||"Cap\u00edtulos";if(k!==this.currentIndex||this.J)this.Y.Ri("innertubeCommand",Y[k].onActiveCommand),this.currentIndex=k;this.J=!1}else this.J=!0;D6.prototype.Kg.call(this,W)};g.H(FL,g.kZ);FL.prototype.K=function(){var W;(W=this.element.parentElement)==null||W.classList.contains("ytp-right-controls-left");(this.W=!this.W)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; FL.prototype.isExpanded=function(){return this.W};g.H(wJ,g.l);wJ.prototype.J=function(W){g.b(W.state,32)?WDd(this,this.api.T8()):this.v7&&(g.b(W.state,16)||g.b(W.state,1))||this.fade.hide()}; wJ.prototype.onProgress=function(){var W=this.api.getPlayerStateObject();(g.b(W,32)||g.b(W,16))&&Yeq(this)}; wJ.prototype.T=function(){this.frameIndex=NaN;Yeq(this)}; wJ.prototype.hide=function(){this.W&&WDd(this,null);g.l.prototype.hide.call(this)};g.H($Jq,g.l);g.R=$Jq.prototype;g.R.onClick=function(){var W=this;if(this.Y.V().Lg||this.Y.V().G){this.Y.logClick(this.element);try{this.Y.toggleFullscreen().catch(function(Y){W.eb(Y)})}catch(Y){this.eb(Y)}}else Sk(this.message,this.element,!0)}; g.R.eb=function(W){String(W).includes("fullscreen error")?g.Kx(W):g.GH(W);this.El()}; g.R.El=function(){this.disable();this.message.fH(this.element,!0)}; g.R.I0=function(){hl()===this.Y.getRootNode()?this.J.start():(this.J.stop(),this.message&&this.message.hide())}; g.R.dR=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var W=window.screen.width*.9,Y=window.screen.height*.9,k=Math.max(window.outerWidth,window.innerWidth),P=Math.max(window.outerHeight,window.innerHeight);if(k>P!==W>Y){var T=k;k=P;P=T}W>k&&Y>P&&this.El()}}; g.R.disable=function(){var W=this;if(!this.message){var Y=(Ik(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.IJ(this.Y,{S:"div",Ya:["ytp-popup","ytp-generic-popup"], D:{role:"alert",tabindex:"0"},B:[Y[0],{S:"a",D:{href:"https://support.google.com/youtube/answer/6276924",target:this.Y.V().N},v6:Y[2]},Y[4]]},100,!0);this.message.hide();g.v(this,this.message);this.message.subscribe("show",function(k){W.K.Ke(W.message,k)}); g.aR(this.Y,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.W)();this.W=null}}; g.R.xa=function(){var W=NmC(this.Y),Y=this.Y.V().G&&this.Y.getPlayerSize().width<250;this.b8(W&&!Y);this.Y.logVisibility(this.element,this.v7)}; g.R.aS=function(W){if(W){var Y=g.Ll(this.Y,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.Y.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(k){g.Kx(k)})}else Y=g.Ll(this.Y,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); W=kQ2(this,W);Y=this.message?null:Y;this.Y.V().U("player_tooltip_data_title_killswitch")?this.update({title:Y,icon:W}):this.update({"tooltip-title":Y,"aria-label":Y,icon:W});this.K.r5().wc()}; g.R.iz=function(){this.message||((0,this.W)(),this.W=null);g.l.prototype.iz.call(this)}; g.R.h9=function(W){g.l.prototype.h9.call(this,W)};g.H(Qj,g.l);Qj.prototype.onClick=function(){this.Y.logClick(this.element);this.Y.seekBy(this.W,!0);var W=this.W>0?1:-1,Y=Math.abs(this.W),k=this.Y.FK().MV;k&&k.HF(W,Y);this.K.isActive()?this.J=!0:(W=["ytp-jump-spin"],this.W<0&&W.push("backwards"),this.element.classList.add.apply(this.element.classList,g.ZX(W)),g.L_(this.K))};g.H(yj,D6);yj.prototype.onClickCommand=function(W){g.U(W,Avi)&&this.Xi()}; yj.prototype.updateVideoData=function(){var W,Y;this.K=(W=TuX(this))==null?void 0:(Y=W.onTap)==null?void 0:Y.innertubeCommand;D6.prototype.A5.call(this)}; yj.prototype.Xi=function(){var W="",Y=this.T.X,k,P=(k=TuX(this))==null?void 0:k.headerTitle;k=P?g.jy(P):"";var T;P=((T=this.Y.getLoopRange())==null?void 0:T.type)==="clips";Y.length>1&&!P&&(W=this.Y.getProgressState().current*1E3,T=jSd(Y,W),W=T!=null?Y[T].title:k,T!=null&&T!==this.currentIndex&&(this.Y.Ri("innertubeCommand",Y[T].onActiveCommand),this.currentIndex=T));D6.prototype.Kg.call(this,W)};g.H(ex,g.l);ex.prototype.onClick=function(){this.Y.Ri("onCollapseMiniplayer");this.Y.logClick(this.element)}; ex.prototype.xa=function(){this.visible=!this.Y.isFullscreen();this.b8(this.visible);this.Y.logVisibility(this.element,this.visible&&this.L)}; ex.prototype.h9=function(W){g.l.prototype.h9.call(this,W);this.Y.logVisibility(this.element,this.visible&&W)};g.H(ot,g.l);ot.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.C);this.updateValue("stepvalue",this.G);this.updateValue("slidervalue",this.W);Io1(this,this.W)}; ot.prototype.J=function(){vi(this,Number(this.K.value));this.K.focus()}; ot.prototype.X=function(W){if(!W.defaultPrevented){switch(W.code){case "ArrowDown":W=-this.G;break;case "ArrowUp":W=this.G;break;default:return}vi(this,Math.min(this.C,Math.max(Number((this.W+W).toFixed(2)),this.T)))}};g.H(Cy,ot);Cy.prototype.onVolumeChange=function(W){if(this.N)this.N=!1;else{var Y=W.volume;Y===0||W.muted?vi(this,0):vi(this,Y)}}; Cy.prototype.J=function(){ot.prototype.J.call(this);this.A5(this.W)}; Cy.prototype.Kg=function(W){var Y=-W.deltaY;Y=W.deltaMode===WheelEvent.DOM_DELTA_LINE||W.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.ee(this.W+Y,0,100):g.ee(this.W+g.ee(Y/10,-10,10),0,100);Y===0?vi(this,0):vi(this,Y);this.A5(Y);W.preventDefault();W.stopPropagation()}; Cy.prototype.wD=function(W,Y){this.N=!0;W===0||Y?this.Y.mute():(this.Y.isMuted()&&this.Y.unMute(),this.Y.setVolume(W))};g.H(XUV,g.l);g.H(Ug,g.l);g.R=Ug.prototype;g.R.Fs=function(){if(!this.Y.jA()){this.updateValue("dataTooltipOffsetY",-120);var W;(W=this.W)!=null&&Ly(W,!0);var Y;(Y=this.W)!=null&&Y.W.stop()}}; g.R.cM=function(){var W;(W=this.W)!=null&&W.W.start()}; g.R.HZ=function(W){this.visible=W.width>=300||this.UP;this.b8(this.visible);this.Y.logVisibility(this.element,this.visible&&this.L)}; g.R.w1=function(){this.Y.V().OP?this.Y.isMuted()?this.Y.unMute():this.Y.mute():Sk(this.message,this.element,!0);this.Y.logClick(this.element)}; g.R.VLS=function(W){if(this.Y.V().OP&&this.W)if(W.target===this.J){var Y;if(!this.Y.jA()||((Y=this.W)==null?0:Y.isVisible))this.w1();else{var k;(k=this.W)!=null&&Ly(k,!0)}}else{var P;(P=this.W)!=null&&Ly(P,!0)}else this.w1()}; g.R.onVolumeChange=function(W){this.setVolume(W.volume,W.muted)}; g.R.setVolume=function(W,Y){var k=this,P=Y?0:W/100;W=P===0?1:W>50?1:0;if(this.N!==W){var T=this.G;isNaN(T)?ut5(this,W):ifd(this.OP,function(X){ut5(k,T+(k.N-T)*X)},250); this.N=W}P=P===0?1:0;if(this.X!==P){var I=this.wD;isNaN(I)?Z9V(this,P):ifd(this.gD,function(X){Z9V(k,I+(k.X-I)*X)},250); this.X=P}htq(this,Y)}; g.R.h9=function(W){g.l.prototype.h9.call(this,W);this.Y.logVisibility(this.element,this.visible&&W)}; var Bu0=["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"],O90=["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.H(g.ln,g.l);g.R=g.ln.prototype;g.R.onStateChange=function(W){this.ZY(W.state)}; g.R.ZY=function(W){var Y=g.Ns(this.Y.getVideoData()),k=!1;W.isOrWillBePlaying()?W=Y?4:2:g.b(W,2)?(W=3,k=Y):W=1;this.element.disabled=k;if(this.W!==W){Y=null;switch(W){case 2:Y=g.Ll(this.Y,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:Y="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:Y=g.Ll(this.Y,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:Y="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}W=== 3?this.Y.V().U("player_tooltip_data_title_killswitch")?this.update({title:Y,icon:i9F(this,W)}):this.update({"tooltip-title":Y,icon:i9F(this,W)}):(this.Y.U("player_tooltip_data_title_killswitch")?this.update({title:Y}):this.update({"tooltip-title":Y}),(Y=i9F(this,W))&&this.W&&this.W!==3?tXz(this.transition,this.element,Y):this.updateValue("icon",Y));this.tooltip.wc();this.W=W}}; g.R.onVideoDataChange=function(){g.kN(this.element,"ytp-play-button-playlist",g.x9(this.Y))}; g.R.XV=function(W){this.Y.logClick(this.element);if(this.Y.getPlayerStateObject().isOrWillBePlaying())this.Y.pauseVideo();else{if(this.Y.isMinimized()&&this.Y.getPlayerStateObject().isCued()){var Y={},k;if((k=this.Y.getVideoData())==null?0:k.X)Y.cttAuthInfo={token:this.Y.getVideoData().X,videoId:this.Y.getVideoData().videoId};Jw("direct_playback",Y);this.Y.w_().timerName="direct_playback"}this.Y.playVideo()}this.Y.isMinimized()&&(W==null?void 0:W.type)==="click"&&this.element.blur()}; g.R.h9=function(W){g.l.prototype.h9.call(this,W)};g.H(g.bn,g.l);g.R=g.bn.prototype;g.R.onVideoDataChange=function(){qe6(this);this.T&&(this.nH(this.T),this.T=null);this.videoData=this.Y.getVideoData(1);if(this.playlist=this.Y.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.T=this.Z(this.Y,"progresssync",this.Zb);this.J=Rt7(this);tZS(this);this.J0(this.Y.ai().getPlayerSize())}; g.R.J0=function(W){W=W===void 0?this.Y.ai().getPlayerSize():W;var Y,k=((Y=this.Y.getLoopRange())==null?void 0:Y.type)==="clips";Y=g.x9(this.Y)||this.W&&g.W1(this.Y)&&!this.Y.U("web_hide_next_button")||H9d(this);var P=!this.W&&W.width<400;W=this.Y.U("delhi_modern_web_player_horizontal_volume_controls")&&W.width<640;k=Y&&!k&&!P&&!W;this.b8(k);this.Y.logVisibility(this.element,k)}; g.R.onClick=function(W){this.Y.logClick(this.element);var Y=!0;this.X?Y=g.sH(W,this.Y):W.preventDefault();Y&&(this.W&&this.Y.getPresentingPlayerType()===5?this.Y.publish("ytoprerollinternstitialnext"):this.W?(pO(this.Y.w_()),this.Y.publish("playlistnextbuttonclicked",this.element),this.Y.nextVideo(!0)):this.J?this.Y.seekTo(0):(pO(this.Y.w_()),this.Y.publish("playlistprevbuttonclicked",this.element),this.Y.previousVideo(!0)))}; g.R.Zb=function(){var W=Rt7(this);W!==this.J&&(this.J=W,tZS(this))}; g.R.iz=function(){this.K&&(this.K(),this.K=null);qe6(this);g.l.prototype.iz.call(this)};g.H(pU0,g.l);g.R=pU0.prototype;g.R.kM=function(W){this.T$(W.pageX);this.pA(W.pageX+W.deltaX);GQ1(this)}; g.R.T$=function(W){this.A5=W-this.UP}; g.R.pA=function(W){W-=this.UP;!isNaN(this.A5)&&this.thumbnails.length>0&&(this.N=W-this.A5,this.thumbnails.length>0&&this.N!==0&&(this.J=this.G+this.N,W=rz2(this,this.J),this.J<=this.W/2&&this.J>=sGq(this)?(this.api.seekTo(W,!1,void 0,void 0,25),g.CX(this.wD,"transform","translateX("+(this.J-this.W/2)+"px)"),nU2(this,W)):this.J=this.G))}; g.R.fM=function(){this.Kg&&(this.Kg.oP=!0);var W=(0,g.q5)()-this.GJ<300;if(Math.abs(this.N)<5&&!W){this.GJ=(0,g.q5)();W=this.A5+this.N;var Y=this.W/2-W;this.T$(W);this.pA(W+Y);GQ1(this);this.api.logClick(this.C)}GQ1(this)}; g.R.Db=function(){ci(this,this.api.getCurrentTime())}; g.R.play=function(W){this.api.seekTo(rz2(this,this.J),void 0,void 0,void 0,26);this.api.playVideo();W&&this.api.logClick(this.playButton)}; g.R.onExit=function(W){this.api.seekTo(this.Fr,void 0,void 0,void 0,63);this.api.playVideo();W&&this.api.logClick(this.dismissButton)}; g.R.Rb=function(W,Y){this.UP=W;this.W=Y;ci(this,this.api.getCurrentTime())}; g.R.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Fr=this.api.getCurrentTime(),nU2(this,this.Fr),g.kN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.OP=this.Z(this.element,"wheel",this.kM),this.logVisibility(this.isEnabled))}; g.R.disable=function(){this.isEnabled=!1;this.hide();g.kN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.OP&&this.nH(this.OP);this.logVisibility(this.isEnabled)}; g.R.reset=function(){this.disable();this.T=[];this.TJ=!1}; g.R.logVisibility=function(W){this.api.logVisibility(this.element,W);this.api.logVisibility(this.C,W);this.api.logVisibility(this.dismissButton,W);this.api.logVisibility(this.playButton,W)}; g.R.iz=function(){for(;this.K.length;){var W=void 0;(W=this.K.pop())==null||W.dispose()}g.l.prototype.iz.call(this)}; g.H(KDX,g.l);g.H(EUV,g.l);g.H(AzV,g.l);g.H(xc,g.l);xc.prototype.Tn=function(W){return W==="PLAY_PROGRESS"?this.G:W==="LOAD_PROGRESS"?this.X:W==="LIVE_BUFFER"?this.C:this.J};mJ1.prototype.update=function(W,Y,k,P){k=k===void 0?0:k;this.width=Y;this.T=k;this.W=Y-k-(P===void 0?0:P);this.position=g.ee(W,k,k+this.W);this.J=this.position-k;this.K=this.J/this.W};g.H(DJ2,g.l);g.H(g.NA,g.kZ);g.R=g.NA.prototype; g.R.jt=function(){var W=!1,Y=this.api.getVideoData();if(!Y)return W;this.api.fq("timedMarkerCueRange");wUS(this);for(var k=g.p(Y.Q5),P=k.next();!P.done;P=k.next()){P=P.value;var T=void 0,I=(T=this.V5[P])==null?void 0:T.markerType,X=void 0;T=(X=this.V5[P])==null?void 0:X.markers;if(!T)break;if(I==="MARKER_TYPE_TIMESTAMPS"){W=g.p(T);for(I=W.next();!I.done;I=W.next()){X=I.value;I=new DJ2;var h=void 0;I.title=((h=X.title)==null?void 0:h.simpleText)||"";I.timeRangeStartMillis=Number(X.startMillis);I.W= Number(X.durationMillis);var B=h=void 0;I.onActiveCommand=(B=(h=X.onActive)==null?void 0:h.innertubeCommand)!=null?B:void 0;CL6(this,I)}LDd(this,this.X);W=this.X;I=this.Dm;X=[];h=null;for(B=0;BO&&(h.end=O);O=S_d(O,O+Z);X.push(O);h=O;I[O.id]=W[B].onActiveCommand}}this.api.Bz(X);a:{W=g.p(T);for(T=W.next();!T.done;T=W.next())if(T.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){W= !1;break a}W=!0}W&&(this.i_=this.V5[P]);W=!0}else if(I==="MARKER_TYPE_HEATMAP"){P=this.V5[P];u=O=I=B=h=X=void 0;if(P&&P.markers){T=(I=(u=P.markersMetadata)==null?void 0:(O=u.heatmapMetadata)==null?void 0:O.minHeightDp)!=null?I:0;I=(X=(B=P.markersMetadata)==null?void 0:(h=B.heatmapMetadata)==null?void 0:h.maxHeightDp)!=null?X:60;X=this.W.length;h=null;for(B=0;B=u&&q<=Z&&O.push(t)}I>0&&(this.Kg.style.height=I+"px");u=this.T[B];Z=O;t=T;var G=I,J=B===0;J=J===void 0?!1:J;ztF(u,G);M=Z;q=u.K;J=J===void 0?!1:J;var d=1E3/M.length,A=[];A.push({x:0,y:100});for(var F=0;F0&&(h=O[O.length-1])}g.at(this)}I=void 0;T=[];if(P=(I=P.markersDecoration)==null?void 0:I.timedMarkerDecorations)for(P=g.p(P),I=P.next();!I.done;I=P.next())I=I.value,B=h=X=void 0,T.push({visibleTimeRangeStartMillis:(X=I.visibleTimeRangeStartMillis)!= null?X:-1,visibleTimeRangeEndMillis:(h=I.visibleTimeRangeEndMillis)!=null?h:-1,decorationTimeMillis:(B=I.decorationTimeMillis)!=null?B:NaN,label:I.label?g.jy(I.label):""});P=T;this.heatMarkersDecorations=P}}Y.f6=this.X;g.kN(this.element,"ytp-timed-markers-enabled",W);return W}; g.R.Rb=function(){g.at(this);$M(this);LDd(this,this.X);if(this.K){var W=g.V7(this.element).x||0;this.K.Rb(W,this.C)}}; g.R.yY2=function(){var W=this.api.getVideoData();W&&YB6(this,W)}; g.R.onClickCommand=function(W){if(W=g.U(W,E4)){var Y=W.key;W.isVisible&&Y&&czF(this,Y)}}; g.R.jkr=function(W){this.api.Ri("innertubeCommand",this.Dm[W.id])}; g.R.Xi=function(){$M(this);var W=this.api.getCurrentTime();(Wthis.clipEnd)&&this.Cf()}; g.R.kZ=function(W){if(!W.defaultPrevented){var Y=!1;switch(W.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);Y=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);Y=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);Y=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);Y=!0;break;case 38:this.api.U("enable_key_press_seek_logging")&&Xv(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);Y=!0;break;case 40:this.api.U("enable_key_press_seek_logging")&&Xv(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),Y=!0}Y&&W.preventDefault()}}; g.R.qB=function(W,Y){this.updateVideoData(Y,W==="newdata")}; g.R.AF=function(){this.qB("newdata",this.api.getVideoData())}; g.R.updateVideoData=function(W,Y){Y=Y===void 0?!1:Y;var k=!!W&&W.Nt();k&&(nl(W)||aoz(this)?this.vk=!1:this.vk=W.allowLiveDvr,g.kN(this.api.getRootNode(),"ytp-enable-live-buffer",!(W==null||!nl(W))),YB6(this,W));i4z(this,this.api.hD());if(Y){if(k){Y=W.clipEnd;this.clipStart=W.clipStart;this.clipEnd=Y;Ss(this);for(T$(this,this.A5,this.A9);this.T.length>0;)this.T.pop().dispose();this.heatMarkersDecorations=[];this.J9={};var P;(P=this.K)==null||P.reset();Z1(this);g.kN(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Vj(this))}else this.Cf();this.SS()}if(W){var T;P=((T=this.u8)==null?void 0:T.type)==="clips";if(T=!W.isLivePlayback){T=this.api.getVideoData();Y=g.Wn(T);k=yz1(T);var I;T=Y!=null||k!=null&&k.length>0||((I=T.Hr)==null?void 0:I.length)>0}if(T&&!P){I=this.api.getVideoData();P=g.Wn(I);T=!1;if(P==null?0:P.markersMap){T=this.api.getVideoData();var X;T.Jh=((X=P.visibleOnLoad)==null?void 0:X.key)||T.Jh;X=g.p(P.markersMap);for(P=X.next();!P.done;P=X.next())P=P.value,P.key&&P.value&&(this.J9[P.key]=P.value, P.value.onChapterRepeat&&(T.ZsD=P.value.onChapterRepeat));T.Jh!=null&&czF(this,T.Jh);T=!0}var h;if(((h=I.Hr)==null?void 0:h.length)>0){h=g.J6.getState().entities;X=g.p(I.Hr);for(P=X.next();!P.done;P=X.next()){P=P.value;k=void 0;Y=(k=VJ(h,"macroMarkersListEntity",P))==null?void 0:k.markersList;var B=k=void 0;if(((k=Y)==null?void 0:k.markerType)==="MARKER_TYPE_TIMESTAMPS"||((B=Y)==null?void 0:B.markerType)==="MARKER_TYPE_HEATMAP")this.V5[P]=Y}T=this.jt()||T}!T&&(h=yz1(I))&&(oU0(this,h),I.i_=this.W, et5(this));$1d(this,null);W.Ve&&this.T.length===0&&(W=W.Ve,h=W.key,W.isVisible&&h&&czF(this,h))}else gUv(this),wUS(this)}$M(this)}; g.R.yk=function(W){this.G&&!g.b(W.state,32)&&this.api.getPresentingPlayerType()!==3&&this.G.cancel();var Y;((Y=this.K)==null?0:Y.isEnabled)&&g.b(W.state,8)&&this.api.pauseVideo();W=this.api.getPresentingPlayerType()===2||!this.api.hD()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.kN(this.fN,"ytp-hide-scrubber-button",W)}; g.R.qr=function(W){var Y=!!this.u8!==!!W,k=this.u8;this.u8=W;$1d(this,k);(W==null?void 0:W.type)!=="clips"&&W||(W?(this.updateValue("clipstarticon",Kr1()),this.updateValue("clipendicon",Kr1()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",M0X()),this.updateValue("clipendicon",ie6()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),Y&&(this.updateVideoData(this.api.getVideoData(), !0),g.at(this)),Ss(this));T$(this,this.A5,this.A9)}; g.R.D6z=function(){this.api.publish("progressBarHoverStart")}; g.R.BZr=function(W,Y,k){var P=g.V7(this.element),T=YM(this).W,I=k?k.getAttribute("data-tooltip"):void 0,X=k?k.getAttribute("data-position"):void 0,h=k?k.getAttribute("data-offset-y"):void 0;h=h?Number(h):0;X&&(W=rq(this.J,Number(k.getAttribute("data-position")),0)*T+g.V7(this.progressBar).x);this.Lg.x=W-P.x;this.Lg.y=Y-P.y;W=YM(this);k=IK(this,W);Y=0;var B;if((B=this.api.getVideoData())==null?0:nl(B))(B=this.api.getProgressState().seekableEnd)&&k>B&&(k=B,W.position=rq(this.J,B)*YM(this).W),Y=this.J.K; aoz(this)&&(Y=this.J.K);B=I||g.qy(this.vk?k-this.J.W:k-Y);Y=W.position+this.Cn;k-=this.api.m2();var O;if((O=this.K)==null||!O.isEnabled)if(this.api.T8()){if(this.W.length>1){O=js(this,this.Lg.x,!0);if(!this.u8)for(P=0;P1)for(P=0;P0)for(O=this.Lg.x,P=g.p(this.X),T=P.next();!T.done;T=P.next())T=T.value,X=WN(this,T.timeRangeStartMillis/ (this.J.W*1E3),YM(this)),g.kN(T.element,"ytp-timed-marker-hover",X<=O&&X+6>=O);P=this.tooltip.scale;O=this.api.U("delhi_modern_web_player")?67:45;h=(isNaN(h)?0:h)-O*P;this.api.U("web_key_moments_markers")?this.i_?(O=jSd(this.X,k*1E3),O=O!=null?this.X[O].title:""):(O=MA(this.W,k*1E3),O=this.W[O].title):(O=MA(this.W,k*1E3),O=this.W[O].title);O||(h+=16*P);this.tooltip.scale===.6&&(g.ph(this.api.V())?(h=this.api.ai().getPlayerSize().height-225,P=this.api.U("delhi_modern_web_player")?70:110,h=O?h+P:h+ P+16):h=O?110:126);P=MA(this.W,k*1E3);this.TJ=Pcv(this,k,P)?P:Pcv(this,k,P+1)?P+1:-1;g.kN(this.api.getRootNode(),"ytp-progress-bar-snap",this.TJ!==-1&&this.W.length>1);P=!1;T=g.p(this.heatMarkersDecorations);for(X=T.next();!X.done;X=T.next()){X=X.value;var u=k*1E3;u>=X.visibleTimeRangeStartMillis&&u<=X.visibleTimeRangeEndMillis&&(O=X.label,B=g.qy(X.decorationTimeMillis/1E3),this.api.U("web_heat_marker_use_current_time")&&(B=g.qy(IK(this,W))),P=!0)}this.CN!==P&&(this.CN=P,this.api.logVisibility(this.AC, this.CN));g.kN(this.api.getRootNode(),"ytp-progress-bar-decoration",P);P=160*this.tooltip.scale*2;T=O.length*(this.N?8.55:5.7);T=T<=P?T:P;X=T<160*this.tooltip.scale;P=3;!X&&T/2>W.position&&(P=1);!X&&T/2>this.C-W.position&&(P=2);this.api.V().G&&(h-=10);this.T.length&&this.T[0].Nt&&(h-=14*(this.N?2:1),this.Fr||(this.Fr=!0,this.api.logVisibility(this.Kg,this.Fr)));var Z;if(Vj(this)&&(((Z=this.K)==null?0:Z.isEnabled)||this.Q5>0)){var M;h-=((M=this.K)==null?0:M.isEnabled)?BN(this):this.Q5}Z=void 0;Vj(this)&& !this.api.U("web_player_hide_fine_scrubbing_edu")&&(Z="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.UP||(this.UP=!0,this.api.logVisibility(this.Qa,this.UP)));this.tooltip.cJ(Y,k,B,!!I,h,O,P,Z)}else this.tooltip.cJ(Y,k,B,!!I,h);g.a2(this.api.getRootNode(),"ytp-progress-bar-hover");Nud(this)}; g.R.QIh=function(){this.SS();g.YN(this.api.getRootNode(),"ytp-progress-bar-hover");this.Fr&&(this.Fr=!1,this.api.logVisibility(this.Kg,this.Fr));this.UP&&(this.UP=!1,this.api.logVisibility(this.Qa,this.UP));this.api.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.R.kW2=function(W,Y){var k=g.V7(this.element);this.xq=W-k.x;Vj(this)&&this.K&&(this.K.TJ?ci(this.K,this.api.getCurrentTime()):Jzd(this.K),this.K.show(),g.kN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.rV&&(this.rV.dispose(),this.rV=null);this.u5=Y;this.Zm=this.api.getCurrentTime();this.W.length>1&&this.TJ!==-1?this.api.seekTo(this.W[this.TJ].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(IK(this,YM(this)),!1,void 0,void 0,7);g.a2(this.element,"ytp-drag");(this.nu= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.R.d6D=function(){if(Vj(this)&&this.K){var W=BN(this);this.Q5>=W*.5?(this.K.enable(),ci(this.K,this.api.getCurrentTime()),Z4F(this,W)):Z1(this)}if(g.b(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var Y;if((Y=this.K)==null?0:Y.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.W.length>1&&this.TJ!==-1)this.api.U("html5_enable_progress_bar_slide_seek_logging")&&Xv(this,this.Zm,this.W[this.TJ].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.W[this.TJ].startTime/1E3,void 0,void 0,void 0,7);else{W=IK(this,YM(this));this.api.U("html5_enable_progress_bar_slide_seek_logging")&&Xv(this,this.Zm,W,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(W,void 0,void 0,void 0,7);Y=g.p(this.heatMarkersDecorations);for(var k=Y.next();!k.done;k=Y.next())k=k.value,W*1E3>=k.visibleTimeRangeStartMillis&&W*1E3<=k.visibleTimeRangeEndMillis&& this.api.logClick(this.AC)}g.YN(this.element,"ytp-drag");this.gD&&(this.wD.src=this.gD);this.nu&&!g.b(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.R.Vjg=function(W,Y){var k=this,P=YM(this),T=IK(this,P);this.api.ai().K8||(P.position>this.xq+2?this.KH&&(this.wD.src=this.KH):P.position1);this.b8(W&&this.Y.ai().getPlayerSize().width>=400);this.Y.logVisibility(this.element,this.v7);var Y=1;W&&this.isActive()&&(Y=2);if(this.W!==Y){this.W=Y;W=this.Y.U("delhi_modern_web_player_icons");switch(Y){case 1:this.updateValue("icon",W?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},B:[{S:"path",yU:!0,D:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", W?{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},B:[{S:"path",D:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.u5C())}g.kN(this.element,"ytp-remote-button-active",this.isActive())}}; iO.prototype.K=function(){if(this.Y.getOption("remote","quickCast"))this.Y.setOption("remote","quickCast",!0);else{var W=this.Mq,Y=this.element;if(W.IZ())W.n1();else{W.initialize();a:{var k=g.p(W.iD.items);for(var P=k.next();!P.done;P=k.next())if(P=P.value,P.priority===1){k=P;break a}k=null}k&&(k.open(),W.fH(Y));W.fH(Y)}}this.Y.logClick(this.element)};g.H(Mf,g.l);Mf.prototype.W=function(W){var Y=this.Y.V(),k=400;this.Y.U("web_player_small_hbp_settings_menu")&&Y.X?k=300:Y.G&&(k=200);W=this.K&&W.width>=k;this.b8(W);this.Y.logVisibility(this.element,W)}; Mf.prototype.J=function(){if(this.Mq.v7)this.Mq.n1();else{var W=g.mh(this.Y.gx());W&&!W.loaded&&(W.Kn("tracklist",{includeAsr:!0}).length||W.load());this.Y.logClick(this.element);this.Mq.fH(this.element)}}; Mf.prototype.updateBadge=function(){var W=this.Y.isHdr(),Y=this.Y.getPresentingPlayerType(),k=Y!==2&&Y!==3,P=g.Nq(this.Y),T=k&&!!g.Vn(this.Y.gx());Y=T&&P.displayMode===1;P=T&&P.displayMode===2;k=(T=Y||P)||!k?null:this.Y.getPlaybackQuality();g.kN(this.element,"ytp-hdr-quality-badge",W);g.kN(this.element,"ytp-hd-quality-badge",!W&&(k==="hd1080"||k==="hd1440"));g.kN(this.element,"ytp-4k-quality-badge",!W&&k==="hd2160");g.kN(this.element,"ytp-5k-quality-badge",!W&&k==="hd2880");g.kN(this.element,"ytp-8k-quality-badge", !W&&k==="highres");g.kN(this.element,"ytp-3d-badge-grey",!W&&T&&Y);g.kN(this.element,"ytp-3d-badge",!W&&T&&P)};g.H(ti,EH);ti.prototype.isLoaded=function(){var W=g.y3(this.Y.gx());return W!==void 0&&W.loaded}; ti.prototype.xa=function(){g.y3(this.Y.gx())!==void 0&&this.Y.getPresentingPlayerType()!==3?this.W||(this.Mq.c7(this),this.W=!0):this.W&&(this.Mq.tC(this),this.W=!1);JG(this,this.isLoaded())}; ti.prototype.onSelect=function(W){this.isLoaded();W?this.Y.loadModule("annotations_module"):this.Y.unloadModule("annotations_module");this.Y.publish("annotationvisibility",W)}; ti.prototype.iz=function(){this.W&&this.Mq.tC(this);EH.prototype.iz.call(this)};g.H(qf,g.eo);qf.prototype.xa=function(){var W=this.Y.getAvailableAudioTracks();W.length>1?(this.oS(g.tx(W,this.W)),this.tracks=g.f$(W,this.W,this),this.countLabel.N6(W.length?" ("+W.length+")":""),this.publish("size-change"),this.yH(this.W(this.Y.getAudioTrack())),this.enable(!0)):this.enable(!1)}; qf.prototype.vK=function(W){g.eo.prototype.vK.call(this,W);this.Y.setAudioTrack(this.tracks[W]);this.Y.publish("audiopreferencechange");this.Mq.iY()}; qf.prototype.W=function(W){return W.toString()}; qf.prototype.Dz=function(W){this.Y.U("html5_enable_new_audio_settings_menu")?this.K&&(W?this.K.c7(this):this.K.tC(this)):g.eo.prototype.Dz.call(this,W)};g.H(tf6,g.OH);g.R=tf6.prototype;g.R.tL=function(){this.Y.tL()}; g.R.open=function(){g.m3(this.Mq,this.Ba)}; g.R.X5=function(){this.Ba.jN()>0&&this.Y.getPresentingPlayerType()!==2&&this.Y.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.R.kZ=function(W){W.defaultPrevented||(this.open(),W.preventDefault())}; g.R.c7=function(W){this.Ba.c7(W)}; g.R.tC=function(W){this.Ba.tC(W)};g.H(RK,EH); RK.prototype.X5=function(){var W=this.Y.getPresentingPlayerType();if(W!==2&&W!==3&&g.W1(this.Y))this.W||(this.Mq.c7(this),this.W=!0,this.K.push(this.Z(this.Y,"videodatachange",this.X5)),this.K.push(this.Z(this.Y,"videoplayerreset",this.X5)),this.K.push(this.Z(this.Y,"onPlaylistUpdate",this.X5)),this.K.push(this.Z(this.Y,"autonavchange",this.J)),W=this.Y.getVideoData(),this.J(W.autonavState),this.Y.logVisibility(this.element,this.W));else if(this.W){this.Mq.tC(this);this.W=!1;W=g.p(this.K);for(var Y= W.next();!Y.done;Y=W.next())this.nH(Y.value)}}; RK.prototype.J=function(W){JG(this,W!==1)}; RK.prototype.onSelect=function(W){this.Y.Um(W?2:1);this.W&&(this.Y.logVisibility(this.element,this.W),this.Y.logClick(this.element))}; RK.prototype.iz=function(){this.W&&this.Mq.tC(this);EH.prototype.iz.call(this)};g.H(qBq,g.OH);qBq.prototype.onClick=function(W){W.preventDefault();var Y,k;(Y=g.Fs(this.Y))==null||(k=Y.ML())==null||k.n1();var P,T;(P=g.Fs(this.Y))==null||(T=P.lF())==null||T.fH(W.target)};g.H(RuC,g.eo);g.R=RuC.prototype; g.R.X5=function(){var W=this.Y.getPresentingPlayerType();if(W!==2&&W!==3){this.Kg=this.Y.HV();var Y=this.Y.getAvailableQualityLevels();if(this.W){this.K={};W=g.zM(this.Y,"getAvailableQualityData",[]);W=g.p(W);for(var k=W.next();!k.done;k=W.next())k=k.value,this.K[k.qualityLabel]=k;W=Object.keys(this.K);Y[Y.length-1]==="auto"&&W.push("auto");this.wD=new Set(Y)}else if(this.T){k=g.zM(this.Y,"getAvailableQualityData",[]);W=[];k=g.p(k);for(var P=k.next();!P.done;P=k.next())P=P.value,this.X[P.quality]= P,P.quality&&W.push(P.quality);Y[Y.length-1]==="auto"&&W.push("auto")}else W=Y;g.gkS(this.Y)&&this.Y.HA()&&W.unshift("missing-qualities");Y=this.Y.app.D2();k=Y.getVideoData();if(!k.K||!k.K.video||k.K.video.qualityOrdinal<1080||k.N2)Y=!1;else{P=/^qsa/.test(k.clientPlaybackNonce);var T="r";k.K.id.indexOf(";")>=0&&(P=/^[a-p]/.test(k.clientPlaybackNonce),T="x");P?(Y.y5("iqss",{trigger:T},!0),Y=!0):Y=!1}Y&&W.unshift("inline-survey");this.oS(W);Y=this.Y.getVideoData().cotn?!0:!1;k=this.A5.s6();k=!g.ph(this.Y.V())|| !(Y===void 0?0:Y)||!(k===void 0||k);Y=this.Ba;k=k===void 0?!1:k;Y.VB&&g.kN(Y.J5("ytp-panel-footer"),"ytp-panel-hide-footer",k===void 0?!1:k);if(W.length){this.A8();this.enable(!0);return}}this.enable(!1)}; g.R.A8=function(){if(this.W){var W=this.Y.getPreferredQuality();this.wD.has(W)&&(this.C=this.Y.getPlaybackQuality(),this.G=this.Y.getPlaybackQualityLabel(),W==="auto"?(this.yH(W),this.N6(this.wM(W))):this.yH(this.G))}else W=this.Y.getPreferredQuality(),this.options[W]&&(this.C=this.Y.getPlaybackQuality(),this.yH(W),W==="auto"&&this.N6(this.wM(W)))}; g.R.vK=function(W){if(W!=="missing-qualities"){g.eo.prototype.vK.call(this,W);var Y=this.W?this.K[W]:this.X[W];var k=Y==null?void 0:Y.quality,P=Y==null?void 0:Y.formatId,T=Y==null?void 0:Y.paygatedQualityDetails;Y=T==null?void 0:T.endpoint;if(T){var I;T=(I=this.options[W])==null?void 0:I.element;this.Y.logClick(T)}if(this.W){var X,h;if((X=g.U(Y,g.Gaw))==null?0:(h=X.popup)==null?0:h.notificationActionRenderer)this.Y.Ri("innertubeCommand",Y);else if(Y){this.Y.Ri("innertubeCommand",Y);return}P?this.Y.setPlaybackQuality(k, P):this.Y.setPlaybackQuality(k)}else{if(this.T){var B,O;if((B=g.U(Y,g.Gaw))==null?0:(O=B.popup)==null?0:O.notificationActionRenderer)this.Y.Ri("innertubeCommand",Y);else if(Y){this.Y.Ri("innertubeCommand",Y);return}}this.Y.setPlaybackQuality(W)}this.Mq.n1();this.X5()}}; g.R.open=function(){for(var W=g.p(Object.values(this.options)),Y=W.next();!Y.done;Y=W.next()){Y=Y.value;var k=void 0;this.Y.hasVe((k=Y)==null?void 0:k.element)&&(k=void 0,this.Y.logVisibility((k=Y)==null?void 0:k.element,!0))}g.eo.prototype.open.call(this);this.Y.logClick(this.element)}; g.R.iC=function(W,Y,k){var P=this;if(W==="missing-qualities")return new g.OH({S:"a",Ya:["ytp-menuitem"],D:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.Y.V().N,tabindex:"0",role:"menuitemradio"},B:[{S:"div",Ya:["ytp-menuitem-label"],v6:"{{label}}"}]},Y,this.wM(W));if(W!=="inline-survey"){var T,I=(T=this.W?this.K[W]:this.X[W])==null?void 0:T.paygatedQualityDetails;T=I==null?void 0:I.veType;I=I==null?void 0:I.trackingParams;Y=g.eo.prototype.iC.call(this,W,Y,k);I?(this.Y.createServerVe(Y.element, this,!0),this.Y.setTrackingParams(Y.element,I)):T&&this.Y.createClientVe(Y.element,this,T,!0);return Y}W=[{S:"span",v6:"\u00bfSe ve bien?"}];k=g.p([!0,!1]);I=k.next();for(T={};!I.done;T={So:void 0},I=k.next())T.So=I.value,I=new g.l({S:"span",j:"ytp-menuitem-inline-survey-response",B:[T.So?GS2():qsz()],D:{tabindex:"0",role:"button"}}),I.listen("click",function(X){return function(){var h=P.Y.app.D2();h.y5("iqsr",{tu:X.So});h.getVideoData().N2=!0;P.Mq.n1();P.X5()}}(T)),W.push(I); return new g.OH({S:"div",j:"ytp-menuitem",D:{"aria-disabled":"true"},B:[{S:"div",Ya:["ytp-menuitem-label"],B:W}]},Y)}; g.R.wM=function(W,Y){Y=Y===void 0?!1:Y;if(W==="missing-qualities")return{S:"div",v6:"\u00bfFaltan opciones?"};if(W==="inline-survey")return"";var k=this.T||this.W?[pXv(this,W,Y,!1)]:[nv5(this,W)];var P=this.Y.getPreferredQuality();Y||P!=="auto"||W!=="auto"||(k.push(" "),this.W?k.push(pXv(this,this.G,Y,!0,["ytp-menu-label-secondary"])):this.T?k.push(pXv(this,this.C,Y,!0,["ytp-menu-label-secondary"])):k.push(nv5(this,this.C,["ytp-menu-label-secondary"])));return{S:"div",B:k}};g.H(HN,ot);HN.prototype.J=function(){ot.prototype.J.call(this);this.N&&GjX(this)}; HN.prototype.gD=function(){this.A5()}; HN.prototype.wD=function(){this.Y.setPlaybackRate(this.W,!0)}; HN.prototype.X=function(W){ot.prototype.X.call(this,W);this.A5();GjX(this);W.preventDefault()};g.H(nq,g.l);g.R=nq.prototype;g.R.init=function(){this.PP(this.W);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.J)}; g.R.jk=function(W){if(!W.defaultPrevented){switch(W.keyCode){case 37:case 40:var Y=-this.G;break;case 39:case 38:Y=this.G;break;default:return}this.PP(this.W+Y);W.preventDefault()}}; g.R.IU=function(W){var Y=this.W;Y+=(W.deltaX||-W.deltaY)<0?-this.N:this.N;this.PP(Y);W.preventDefault()}; g.R.xR=function(W){W=(W-g.V7(this.T).x)/this.A5*this.range+this.K;this.PP(W)}; g.R.PP=function(W,Y){Y=Y===void 0?"":Y;W=g.ee(W,this.K,this.J);Y===""&&(Y=W.toString());this.updateValue("valuenow",W);this.updateValue("valuetext",Y);this.Kg.style.left=(W-this.K)/this.range*(this.A5-this.TJ)+"px";this.W=W}; g.R.focus=function(){this.OP.focus()};g.H(pq,nq);pq.prototype.wD=function(){this.Y.setPlaybackRate(this.W,!0)}; pq.prototype.PP=function(W){nq.prototype.PP.call(this,W,Evd(this,W).toString());this.C&&(K82(this),this.gD())}; pq.prototype.updateValues=function(){var W=this.Y.getPlaybackRate();Evd(this,this.W)!==W&&(this.PP(W),K82(this))};g.H(JXV,g.kZ);JXV.prototype.focus=function(){this.W.focus()};g.H(sUV,r$);g.H(AXF,g.eo);g.R=AXF.prototype;g.R.wM=function(W){return W==="1"?"Normal":W.toLocaleString()}; g.R.xa=function(){var W,Y=(W=this.Y.getVideoData())==null?void 0:W.Xj();W=this.Y.getPresentingPlayerType(Y);this.enable(W!==2&&W!==3);m1z(this)}; g.R.oS=function(W){g.eo.prototype.oS.call(this,W);this.G&&this.G.K.focus()}; g.R.Dz=function(W){g.eo.prototype.Dz.call(this,W);W?(this.Kg=this.Z(this.Y,"onPlaybackRateChange",this.onPlaybackRateChange),m1z(this),zuF(this,this.Y.getPlaybackRate())):(this.nH(this.Kg),this.Kg=null)}; g.R.onPlaybackRateChange=function(W){var Y=this.Y.getPlaybackRate();!this.T&&this.A5.includes(Y)||d15(this,Y);zuF(this,W)}; g.R.iC=function(W,Y,k){return W===this.W&&gv2(this.Y)?g.eo.prototype.iC.call(this,W,Y,k,{S:"div",j:"ytp-speed-slider-menu-footer",B:[this.G]}):W===this.K&&rXd(this.Y,this.wD)?D1C(this,W,Y,k):g.eo.prototype.iC.call(this,W,Y,k)}; g.R.vK=function(W){g.eo.prototype.vK.call(this,W);W===this.K?(this.Y.logClick(this.X.element),this.Y.Ri("innertubeCommand",this.wD)):W===this.W?this.Y.setPlaybackRate(this.C,!0):this.Y.setPlaybackRate(Number(W),!0);gv2(this.Y)&&W===this.W||this.Mq.iY()}; g.R.Gx=function(W){var Y=W===this.W;this.T=!1;Y&&G$(this.Y)&&!gv2(this.Y)?(W=new sUV(this.Y),g.m3(this.Mq,W)):g.eo.prototype.Gx.call(this,W)};g.H(wXS,g.eo);g.R=wXS.prototype;g.R.yH=function(W){g.eo.prototype.yH.call(this,W)}; g.R.KD=function(W){return W.option.toString()}; g.R.getOption=function(W){return this.settings[W]}; g.R.wM=function(W){return this.getOption(W).text||""}; g.R.vK=function(W){g.eo.prototype.vK.call(this,W);this.publish("settingChange",this.setting,this.settings[W].option)};g.H(EA,g.A3);EA.prototype.qL=function(W){for(var Y=g.p(Object.keys(W)),k=Y.next();!k.done;k=Y.next()){var P=k.value;if(k=this.cw[P]){var T=W[P].toString();P=!!W[P+"Override"];k.options[T]&&(k.yH(T),k.K.element.setAttribute("aria-checked",String(!P)),k.W.element.setAttribute("aria-checked",String(P)))}}}; EA.prototype.dM=function(W,Y){this.publish("settingChange",W,Y)};g.H(Ji,g.eo);Ji.prototype.W=function(W){return W.languageCode}; Ji.prototype.wM=function(W){return this.languages[W].languageName||""}; Ji.prototype.vK=function(W){this.publish("select",W);this.Y.logClick(this.element);g.Db(this.Mq)};g.H(eu5,g.eo);g.R=eu5.prototype;g.R.s8=function(W){return g.Ox(W)?"__off__":W.displayName}; g.R.wM=function(W){return W==="__off__"?"Desactivados":W==="__translate__"?"Traducci\u00f3n autom\u00e1tica":W==="__contribute__"?"Agregar subt\u00edtulos":W==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(W==="__off__"?{}:this.tracks[W]).displayName}; g.R.vK=function(W){if(W==="__translate__")this.W.open();else if(W==="__contribute__"){this.Y.pauseVideo();this.Y.isFullscreen()&&this.Y.toggleFullscreen();var Y=g.O7(this.Y.V(),this.Y.getVideoData());g.yK(Y)}else if(W==="__correction__"){this.Y.pauseVideo();this.Y.isFullscreen()&&this.Y.toggleFullscreen();var k=ovC(this);sA(this,k);g.eo.prototype.vK.call(this,this.s8(k));var P,T;k=(Y=this.Y.getVideoData().getPlayerResponse())==null?void 0:(P=Y.captions)==null?void 0:(T=P.playerCaptionsTracklistRenderer)== null?void 0:T.openTranscriptCommand;this.Y.Ri("innertubeCommand",k);this.Mq.iY();this.K&&this.Y.logClick(this.K)}else{if(W==="__correction__"){this.Y.pauseVideo();this.Y.isFullscreen()&&this.Y.toggleFullscreen();Y=ovC(this);sA(this,Y);g.eo.prototype.vK.call(this,this.s8(Y));var I,X;Y=(k=this.Y.getVideoData().getPlayerResponse())==null?void 0:(I=k.captions)==null?void 0:(X=I.playerCaptionsTracklistRenderer)==null?void 0:X.openTranscriptCommand;this.Y.Ri("innertubeCommand",Y)}else this.Y.logClick(this.element), sA(this,W==="__off__"?{}:this.tracks[W]),g.eo.prototype.vK.call(this,W);this.Mq.iY()}}; g.R.xa=function(){var W=this.Y.getOptions();W=W&&W.indexOf("captions")!==-1;var Y=this.Y.getVideoData(),k=Y&&Y.c9,P,T=!((P=this.Y.getVideoData())==null||!g.qq(P));P={};if(W||k){var I;if(W){var X=this.Y.getOption("captions","track");P=this.Y.getOption("captions","tracklist",{includeAsr:!0});var h=T?[]:this.Y.getOption("captions","translationLanguages");this.tracks=g.f$(P,this.s8,this);T=g.tx(P,this.s8);var B,O;ovC(this)&&((I=Y.getPlayerResponse())==null?0:(B=I.captions)==null?0:(O=B.playerCaptionsTracklistRenderer)== null?0:O.openTranscriptCommand)&&T.push("__correction__");if(h.length&&!g.Ox(X)){if((I=X.translationLanguage)&&I.languageName){var u=I.languageName;I=h.findIndex(function(Z){return Z.languageName===u}); zS5(h,I)}QUd(this.W,h);T.push("__translate__")}I=this.s8(X)}else this.tracks={},T=[],I="__off__";T.unshift("__off__");this.tracks.__off__={};k&&T.unshift("__contribute__");this.tracks[I]||(this.tracks[I]=X,T.push(I));this.oS(T);this.yH(I);X&&X.translationLanguage?this.W.yH(this.W.W(X.translationLanguage)):N_7(this.W);W&&this.T.qL(this.Y.getSubtitlesUserSettings());this.countLabel.N6(P&&P.length?" ("+P.length+")":"");this.publish("size-change");this.Y.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.R.ZM=function(W){var Y=this.Y.getOption("captions","track");Y=g.ij(Y);Y.translationLanguage=this.W.languages[W];sA(this,Y)}; g.R.dM=function(W,Y){if(W==="reset")this.Y.resetSubtitlesUserSettings();else{var k={};k[W]=Y;this.Y.updateSubtitlesUserSettings(k)}yXS(this,!0);this.C.start();this.T.qL(this.Y.getSubtitlesUserSettings())}; g.R.nh1=function(W){W||g.l9(this.C)}; g.R.iz=function(){g.l9(this.C);g.eo.prototype.iz.call(this)}; g.R.open=function(){g.eo.prototype.open.call(this);this.options.__correction__&&!this.K&&(this.K=this.options.__correction__.element,this.Y.createClientVe(this.K,this,167341),this.Y.logVisibility(this.K,!0))};g.H(vvq,g.d$);g.R=vvq.prototype; g.R.initialize=function(){if(!this.isInitialized){var W=this.Y.V();this.isInitialized=!0;try{this.NO=new RuC(this.Y,this)}catch(k){g.Kx(Error("QualityMenuItem creation failed"))}g.v(this,this.NO);var Y=new eu5(this.Y,this);g.v(this,Y);W.J||(Y=new ti(this.Y,this),g.v(this,Y));W.enableSpeedOptions&&(Y=new AXF(this.Y,this),g.v(this,Y));(g.Y3(W)||W.X)&&(W.K||W.GJ)&&(Y=new qBq(this.Y,this),g.v(this,Y));W.UV&&!W.U("web_player_move_autonav_toggle")&&(Y=new RK(this.Y,this),g.v(this,Y));W.U("html5_enable_new_audio_settings_menu")? (this.Pm=new tf6(this.Y,this),g.v(this,this.Pm)):(W=new qf(this.Y,this),g.v(this,W));this.Y.publish("settingsMenuInitialized");Mf6(this.settingsButton,this.iD.jN())}}; g.R.c7=function(W){this.initialize();this.iD.c7(W);Mf6(this.settingsButton,this.iD.jN())}; g.R.tC=function(W){this.v7&&this.iD.jN()<=1&&this.hide();this.iD.tC(W);Mf6(this.settingsButton,this.iD.jN())}; g.R.fH=function(W){this.initialize();this.iD.jN()>0&&g.d$.prototype.fH.call(this,W)}; g.R.n1=function(){this.By?this.By=!1:g.d$.prototype.n1.call(this)}; g.R.show=function(){g.d$.prototype.show.call(this);g.a2(this.Y.getRootNode(),"ytp-settings-shown")}; g.R.hide=function(){g.d$.prototype.hide.call(this);g.YN(this.Y.getRootNode(),"ytp-settings-shown")}; g.R.R6=function(W){this.Y.logVisibility(this.element,W);this.Y.publish("settingsMenuVisibilityChanged",W)};g.H(U16,g.l);g.R=U16.prototype;g.R.onClick=function(){if(r_(this)&&(this.Y.toggleSubtitles(),this.Y.logClick(this.element),!this.isEnabled())){var W=!1,Y=g.mr().Ik(65);g.ph(this.Y.V())&&Y!=null&&(W=!Y);W&&this.Y.V().U("web_player_nitrate_promo_tooltip")&&this.Y.publish("showpromotooltip",this.element)}}; g.R.fS2=function(W){var Y,k;(Y=g.Fs(this.Y))==null||(k=Y.ML())==null||k.fH(W)}; g.R.isEnabled=function(){var W=this.Y.getOption("captions","track");return!(!W||!W.displayName)}; g.R.xa=function(){var W=r_(this),Y=300;this.Y.V().G&&(Y=480);this.Y.U("delhi_modern_web_player_icons")&&this.updateValue("icon",L85(this));if(this.Y.V().X){this.updateValue("title",g.Ll(this.Y,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.Ll(this.Y,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var k=W}else{if(W)(k=this.J5("ytp-subtitles-button-icon"))==null||k.setAttribute("fill-opacity","1"),this.Y.V().U("player_tooltip_data_title_killswitch")?this.updateValue("title", g.Ll(this.Y,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.Ll(this.Y,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.Y.U("delhi_modern_web_player_icons")){var P;(P=this.J5("ytp-subtitles-button-icon"))==null||P.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var T;(T=this.J5("ytp-subtitles-button-icon"))==null||T.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}k=!0}this.tooltip.wc();k=k&&this.Y.ai().getPlayerSize().width>=Y;this.b8(k);this.Y.logVisibility(this.element,k);W?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.R.h9=function(W){g.l.prototype.h9.call(this,W)};g.H(g.Ai,g.l);g.R=g.Ai.prototype;g.R.canShowCountdown=function(){return!d_(this)&&!z$(this)}; g.R.Xi=function(){var W=this.api.ai().getPlayerSize().width,Y=this.N;this.api.V().G&&(Y=400);Y=W>=Y&&(!z$(this)||!g.b(this.api.getPlayerStateObject(),64));this.b8(Y);g.kN(this.element,"ytp-time-display-allow-autohide",Y&&W<400);W=this.api.getProgressState();if(Y){var k=this.api.getPresentingPlayerType();Y=this.api.getCurrentTime(k,!1);this.K&&(Y-=W.airingStart);d_(this)&&(Y-=this.u8.startTimeMs/1E3);this.canShowCountdown()&&this.J&&(Y-=this.api.getDuration(k,!1));var P=g.qy(Y);this.T!==P&&(this.updateValue("currenttime", P),this.T=P);k=d_(this)?(this.u8.endTimeMs-this.u8.startTimeMs)/1E3:this.api.getDuration(k,!1);P=g.qy(k);this.C!==P&&(this.updateValue("duration",P),this.C=P,Y&&(Y=g.ky("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.qy(Y,!0),DURATION:g.qy(k,!0)}),this.updateValue("timeDisplayAriaLabel",Y)))}lr5(this,W.isAtLiveHead);b4C(this,this.api.getLoopRange())}; g.R.onLoopRangeChange=function(W){var Y=this.u8!==W;this.u8=W;Y&&(this.Xi(),cXd(this))}; g.R.rYD=function(){this.api.setLoopRange(null)}; g.R.C8J=function(){this.J=!this.J;this.Xi()}; g.R.onVideoDataChange=function(W,Y,k){this.updateVideoData((this.api.V().U("enable_topsoil_wta_for_halftime")||this.api.V().U("enable_topsoil_wta_for_halftime_live_infra"))&&k===2?this.api.getVideoData(1):Y);this.Xi();cXd(this)}; g.R.updateVideoData=function(W){this.wm=W.isLivePlayback&&!W.e1;this.K=nl(W);this.isPremiere=W.isPremiere;g.kN(this.element,"ytp-live",z$(this));this.api.U("delhi_modern_web_player")&&this.J5("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.R.onClick=function(W){W.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.R.iz=function(){this.W&&this.W();g.l.prototype.iz.call(this)};g.H(frd,g.l);g.R=frd.prototype;g.R.I0=function(){var W=this.api.U6();this.J!==W&&(this.J=W,x1z(this,this.api.getVolume(),this.api.isMuted()))}; g.R.vg=function(W){this.b8(W.width>=350)}; g.R.DM=function(W){if(!W.defaultPrevented){var Y=W.keyCode,k=null;Y===37?k=this.volume-5:Y===39?k=this.volume+5:Y===36?k=0:Y===35&&(k=100);k!==null&&(k=g.ee(k,0,100),k===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(k)),W.preventDefault())}}; g.R.fW=function(W){var Y=W.deltaX||-W.deltaY;W.deltaMode?this.api.setVolume(this.volume+(Y<0?-10:10)):this.api.setVolume(this.volume+g.ee(Y/10,-10,10));W.preventDefault()}; g.R.Xzr=function(){mc(this,this.W,!0,this.K,this.api.jA());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.R.kR=function(W){var Y=this.J?78:52,k=this.J?18:12;W-=g.V7(this.G).x;this.api.setVolume(g.ee((W-k/2)/(Y-k),0,1)*100)}; g.R.Oqz=function(){mc(this,this.W,!1,this.K,this.api.jA());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.R.onVolumeChange=function(W){x1z(this,W.volume,W.muted)}; g.R.rQ=function(){mc(this,this.W,this.isDragging,this.K,this.api.jA())}; g.R.iz=function(){g.l.prototype.iz.call(this);g.YN(this.X,"ytp-volume-slider-active")};g.H(D1,g.l); D1.prototype.onVideoDataChange=function(){var W=this.api.V();this.Rb();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).zr;this.b8(this.visible);this.api.logVisibility(this.element,this.visible&&this.L);if(this.visible){var Y=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",Y)}W.J&&(this.W&&(this.nH(this.W),this.W=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.a2(this.element,"no-link")); Y=this.api.V();W=this.api.getVideoData();var k="";Y.J||(Y=g.tK(Y),Y.indexOf("www.")===0&&(Y=Y.substring(4)),k=g.pl(W)?"Mirar en YouTube Music":Y==="youtube.com"?"Mirar en YouTube":g.ky("Mirar en $WEBSITE",{WEBSITE:Y}));this.api.U("player_tooltip_data_title_killswitch")?this.updateValue("title",k):this.updateValue("tooltip-title",k)}; D1.prototype.onClick=function(W){this.api.U("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Y=this.api.V(),k=this.api.getVideoUrl(!g.Rb(W),!1,!0,!0);if(g.Y3(Y)){var P={};g.Y3(Y)&&g.zM(this.api,"addEmbedsConversionTrackingParams",[P]);k=g.MH(k,P)}g.r7(k,this.api,W);this.api.U("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; D1.prototype.Rb=function(){var W={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},B:[{S:"path",yU:!0,j:"ytp-svg-fill",D:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, Y=28666,k=this.api.getVideoData();this.api.isEmbedsShortsMode()?W={S:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},B:[{S:"path",D:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.pl(k)&&(W={S:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},B:[{S:"path",D:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{S:"path",D:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{S:"path",D:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{S:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{S:"path",D:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{S:"path",D:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{S:"path",D:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{S:"path",D:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{S:"path",D:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{S:"path",D:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{S:"path",D:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{S:"path",D:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},Y=216163);g.pl(k)?g.a2(this.element,"ytp-youtube-music-button"):g.YN(this.element,"ytp-youtube-music-button");W.D=Object.assign({},W.D,{"aria-hidden":"true"});this.updateValue("logoSvg",W);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,Y,!0)}; D1.prototype.h9=function(W){g.l.prototype.h9.call(this,W);this.api.logVisibility(this.element,this.visible&&W)};g.H(arF,g.p5);g.R=arF.prototype;g.R.onProgress=function(){if(this.Y.U("web_player_max_seekable_on_ended")||!g.b(this.Y.getPlayerStateObject(),2))vK(this.EU),this.progressBar.Xi(),this.TJ.Xi()}; g.R.L0=function(){this.G6();if(vK(this.EU))this.progressBar.SS();else this.onProgress()}; g.R.QF=function(){this.onProgress();this.N.start()}; g.R.G6=function(){var W;if(W=!this.Y.V().K){W=this.progressBar;var Y=2*g.nh()*W.C,k=W.J;W=(k.W-k.K)*1E3/W.api.getPlaybackRate()/Y<300}W=W&&this.Y.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;Y=!W;vK(this.EU)&&(W=Y=!1);Y?this.wD||(this.wD=this.Z(this.Y,"progresssync",this.onProgress)):this.wD&&(this.nH(this.wD),this.wD=null);W?this.N.isActive()||this.N.start():this.N.stop()}; g.R.Rb=function(){var W=this.Y.U6(),Y=this.Y.ai().getPlayerSize(),k=this.Y.ai().K8,P=Y3d(this),T=$M1(this),I=Math.max(Y.width-P*2,100);if(this.Lg!==Y.width||this.e1!==W||this.Y.U("web_player_rtr_ctrls")&&this.OS!==k)this.Lg=Y.width,this.e1=W,this.OS=k,this.K.element.style.width=T+"px",this.K.element.style.left=P+"px",g.O4d(this.progressBar,P,T,W),this.Y.r5().iU=T;k=this.T;I=Math.min(570*(W?1.5:1),I);W=Math.min(413*(W?1.5:1),Math.round((Y.height-kUq(this))*.82));k.maxWidth=I;k.maxHeight=W;k.h6();this.G6(); this.K1&&V30(this.Q5,Y.height)}; g.R.onVideoDataChange=function(){var W=this.Y.getVideoData();this.GJ.style.background=W.zr?W.Zu:"";this.Kg&&PLv(this.Kg,W.showSeekingControls);this.A5&&PLv(this.A5,W.showSeekingControls)}; g.R.Tn=function(){return this.K.element};g.H(PR1,sS);g.R=PR1.prototype;g.R.Lt=function(W){W.target!==this.dismissButton.element&&(this.onClickCommand&&this.Y.Ri("innertubeCommand",this.onClickCommand),this.yQ())}; g.R.yQ=function(){this.enabled=!1;this.N.hide()}; g.R.onVideoDataChange=function(W,Y){W==="dataloaded"&&TCv(this);W=[];var k,P,T,I;if(Y=(I=g.U((k=Y.getWatchNextResponse())==null?void 0:(P=k.playerOverlays)==null?void 0:(T=P.playerOverlayRenderer)==null?void 0:T.suggestedActionsRenderer,NsK))==null?void 0:I.suggestedActions)for(k=g.p(Y),P=k.next();!P.done;P=k.next())(P=g.U(P.value,a5B))&&g.U(P.trigger,Vhw)&&W.push(P);if(W.length!==0){k=[];W=g.p(W);for(P=W.next();!P.done;P=W.next())if(P=P.value,T=g.U(P.trigger,Vhw))I=(I=P.title)?g.jy(I):"View Chapters", Y=T.timeRangeStartMillis,T=T.timeRangeEndMillis,Y!=null&&T!=null&&P.tapCommand&&(k.push(new g.L6(Y,T,{priority:9,namespace:"suggested_action_button_visible",id:I})),this.suggestedActions[I]=P.tapCommand);this.Y.Bz(k)}}; g.R.Gu=function(){return this.enabled}; g.R.R6=function(){this.enabled?this.Fr.start():ES(this);this.zw()}; g.R.iz=function(){TCv(this);sS.prototype.iz.call(this)};var A0={},w_=(A0.CHANNEL_NAME="ytp-title-channel-name",A0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",A0.LINK="ytp-title-link",A0.SESSIONLINK="yt-uix-sessionlink",A0.SUBTEXT="ytp-title-subtext",A0.TEXT="ytp-title-text",A0.TITLE="ytp-title",A0);g.H(QV,g.l);QV.prototype.onClick=function(W){this.api.logClick(this.element);var Y=this.api.V(),k=this.api.getVideoUrl(!g.Rb(W),!1,!0);g.Y3(Y)&&(Y={},g.zM(this.api,"addEmbedsConversionTrackingParams",[Y]),k=g.MH(k,Y));g.r7(k,this.api,W)}; QV.prototype.xa=function(){var W=this.api.getVideoData(),Y=this.api.V();this.updateValue("title",W.title);var k={S:"a",j:w_.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},v6:"{{channelName}}"};this.api.V().J&&(k={S:"span",j:w_.CHANNEL_NAME,v6:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",k);j$F(this);this.api.getPresentingPlayerType()===2&&(k=this.api.getVideoData(),k.videoId&&k.isListed&&k.author&&k.Lg&&k.profilePicture?(this.updateValue("channelLink", k.Lg),this.updateValue("channelName",k.author),this.updateValue("channelTitleFocusable","0")):j$F(this));k=Y.externalFullscreen||!this.api.isFullscreen()&&Y.zg;g.kN(this.link,w_.FULLERSCREEN_LINK,k);Y.Kg||!W.videoId||k||W.zr||Y.J?this.W&&(this.updateValue("url",null),this.nH(this.W),this.W=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.W||(this.W=this.Z(this.link,"click",this.onClick)));Y.J&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Y3(Y)?W.expandedTitle: W.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.H(g.yV,g.l);g.R=g.yV.prototype;g.R.setEnabled=function(W){if(this.type!=null)if(W)switch(this.type){case 3:case 2:es(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.X=W}; g.R.cJ=function(W,Y,k,P,T,I,X,h){if(!this.gD||this.env.G){this.type===3&&this.SS();this.type!==1&&(g.VB(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.X&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.T8())&&this.K.subscribe("l",this.jV,this));if(h){var B=g.Wl(this.bg).height||141;this.TJ.style.bottom=B+2+"px"}else this.TJ.style.display="none";this.env.U("delhi_modern_web_player")?(this.update({pillTimeStamp:k,pillTitle:I!=null?I:"",eduText:h!=null?h:""}),g.a2(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:k,title:I!=null?I:"",eduText:h!=null?h:""}),g.kN(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!I));this.api.isInline()&&g.a2(this.bottomText,"ytp-modern-tooltip-text");g.kN(this.element,"ytp-text-detail",!!P);k=-1;this.K&&(k=SE(this.K,243*this.scale),this.env.U("web_l3_storyboard")&&this.K.levels.length===4&&(k=this.K.levels.length-1),k=jnv(this.K,k,Y));hIF(this,k);if(X)switch(Y=g.Wl(this.element).width,X){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=Y+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=Y/2+"px",this.title.style.textAlign="center"}S3X(this,!!P,W,T)}}; g.R.T_=function(){this.type===1&&this.SS()}; g.R.tN=function(W,Y){if(this.type)if(this.type===3)this.SS();else return;II1(this,W,3,Y)}; g.R.wc=function(){this.W&&!this.G&&(this.env.U("player_tooltip_data_title_killswitch")?this.W.hasAttribute("title")&&(this.J=this.W.getAttribute("title")||"",this.W.removeAttribute("title"),this.X&&es(this)):this.W.hasAttribute("data-tooltip-title")&&(this.J=this.W.getAttribute("data-tooltip-title")||"",this.W.removeAttribute("data-tooltip-title"),this.X&&es(this)))}; g.R.jV=function(W,Y){W<=this.T&&this.T<=Y&&(W=this.T,this.T=NaN,hIF(this,W))}; g.R.vaa=function(){P2C(this.K,this.T,243*this.scale)}; g.R.SS=function(){switch(this.type){case 2:var W=this.W;W.removeEventListener("mouseout",this.N);W.addEventListener("mouseover",this.C);W.removeEventListener("blur",this.N);W.addEventListener("focus",this.C);BCX(this);break;case 3:BCX(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.jV,this),this.K=null),this.api.removeEventListener("videoready",this.A5),this.Kg.stop()}this.type=null;this.X&&this.fade.hide()}; g.R.gX=function(){if(this.W)for(var W=0;W=0;Y--)if(this.W9[Y]===W){this.W9.splice(Y,1);break}oD(this.EU,64,this.W9.length>0)}; g.R.BX=function(){this.api.SA()&&this.api.Xg();return!!this.Ec||q3d(this)||g.aD.prototype.BX.call(this)}; g.R.Ru=function(){var W=!this.BX(),Y=W&&this.api.SA()&&!g.b(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().zr&&!this.api.V().J&&!this.api.isEmbedsShortsMode(),k=this.x$&&g.x9(this.api)&&g.b(this.api.getPlayerStateObject(),128);W||k?(this.KZ.show(),this.iO.show()):(this.KZ.hide(),this.iO.hide(),this.api.gX(this.G8.element));Y?this.Nx.fH():this.Nx.n1();this.Bk&&WPd(this.Bk,this.EhS||!W);this.api.U("web_player_hide_overflow_button_if_empty_menu")&&RIS(this);g.aD.prototype.Ru.call(this)}; g.R.d7=function(W,Y,k,P,T){W.style.left="";W.style.top="";W.style.bottom="";var I=g.Wl(W),X=P||this.Bk&&g.R_(this.Bk.Tn(),Y),h=P=null;k!=null&&X||(P=g.Wl(Y),h=g.NB(Y,this.api.getRootNode()),k==null&&(k=h.x+P.width/2));k-=I.width/2;X?(Y=this.Bk,P=Y3d(Y),h=$M1(Y),X=this.api.ai().getPlayerSize().height,k=g.ee(k,P,P+h-I.width),I=X-kUq(Y)-I.height):g.R_(this.G8.element,Y)?(Y=this.api.ai().getPlayerSize().width,k=g.ee(k,12,Y-I.width-12),I=this.U6()?this.WL:this.zA,this.api.V().playerStyle==="gvn"&&(I+= 20),this.x$&&(I-=this.U6()?26:18)):(Y=this.api.ai().getPlayerSize(),k=g.ee(k,12,Y.width-I.width-12),I=h.y>(Y.height-P.height)/2?h.y-I.height-12:h.y+P.height+12);W.style.top=I+(T||0)+"px";W.style.left=k+"px"}; g.R.L0=function(W){W&&(this.api.gX(this.G8.element),this.Bk&&this.api.gX(this.Bk.Tn()));this.S$&&(g.kN(this.contextMenu.element,"ytp-autohide",W),g.kN(this.contextMenu.element,"ytp-autohide-active",!0));g.aD.prototype.L0.call(this,W)}; g.R.I1=function(){g.aD.prototype.I1.call(this);this.S$&&(g.kN(this.contextMenu.element,"ytp-autohide-active",!1),this.S$&&(this.contextMenu.hide(),this.Xb&&this.Xb.hide()))}; g.R.Hu=function(W,Y){var k=this.api.ai().getPlayerSize();k=new g.eh(0,0,k.width,k.height);if(W||!vK(this.EU)&&!this.BX()){if(this.api.V().Kr||Y)W=this.U6()?this.WL:this.zA,k.top+=W,k.height-=W;this.Bk&&(k.height-=kUq(this.Bk))}return k}; g.R.I0=function(W){var Y=this.api.getRootNode();W?Y.parentElement?(Y.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.V().externalFullscreen||(Y.parentElement.insertBefore(this.gH.element,Y),Y.parentElement.insertBefore(this.Ce.element,Y.nextSibling))):g.GH(Error("Player not in DOM.")):(Y.setAttribute("aria-label","Reproductor de video de YouTube"),this.gH.detach(),this.Ce.detach());this.Rb();this.RC()}; g.R.U6=function(){if(this.api.U("web_player_use_screen_width_for_big_mode")){var W;return this.api.ai().getPlayerSize().width>=((W=g.W2(this.api.V().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?W:2E3)}W=this.api.V();return this.api.isFullscreen()&&!W.G||!1}; g.R.showControls=function(W){this.Cd=!W;this.Ru()}; g.R.Rb=function(){var W=this.U6();this.tooltip.scale=W?1.5:1;this.contextMenu&&g.kN(this.contextMenu.element,"ytp-big-mode",W);this.Ru();this.api.U("web_player_hide_overflow_button_if_empty_menu")||RIS(this);this.RC();var Y=this.api.isEmbedsShortsMode();Y&&W?(W=(this.api.ai().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.CX(this.G8.element,"padding-left",W+"px"),g.CX(this.G8.element,"padding-right",W+"px")):Y&&(g.CX(this.G8.element,"padding-left",""),g.CX(this.G8.element,"padding-right", ""));g.aD.prototype.Rb.call(this)}; g.R.X1=function(){if(q3d(this)&&!g.x9(this.api))return!1;var W=this.api.getVideoData();return!g.Y3(this.api.V())||this.api.getPresentingPlayerType()===2||!this.ZJ||((W=this.ZJ||W.ZJ)?(W=W.embedPreview)?(W=W.thumbnailPreviewRenderer,W=W.videoDetails&&g.U(W.videoDetails,oEq)||null):W=null:W=null,W&&W.collapsedRenderer&&W.expandedRenderer)?g.aD.prototype.X1.call(this):!1}; g.R.RC=function(){g.aD.prototype.RC.call(this);this.api.logVisibility(this.title.element,!!this.V7);this.Bb&&this.Bb.h9(!!this.V7);this.channelAvatar.h9(!!this.V7);this.overflowButton&&this.overflowButton.h9(this.jy()&&!!this.V7);this.shareButton&&this.shareButton.h9(!this.jy()&&!!this.V7);this.gU&&this.gU.h9(!this.jy()&&!!this.V7);this.searchButton&&this.searchButton.h9(!this.jy()&&!!this.V7);this.copyLinkButton&&this.copyLinkButton.h9(!this.jy()&&!!this.V7);if(!this.V7){this.api.gX(this.G8.element); for(var W=0;W5&&Y.y5("glrs",{cmt:k});Y.seekTo(0,{seekSource:58});Y.y5("glrre",{cmt:k})}}; Cq.prototype.iz=function(){this.W=null;g.e.prototype.iz.call(this)};g.H(g.Lq,EM);g.R=g.Lq.prototype;g.R.isView=function(){return!0}; g.R.yP=function(){var W=this.mediaElement.getCurrentTime();if(W1;jc(W.Mt(),P-.01)&&!T&&(lO(this,4),k.isActive=!1,k.yf=k.yf||k.isActive,(this.C===1?this.W:this.K).y5("sbh",{}),Y.isActive=!0,Y.yf=Y.yf||Y.isActive,this.C!==0&&(this.W.getVideoData().B_=!0));W=this.T.K;if(this.T.W.isActive&&W.isActive&&(lO(this,5),this.C!==0)){W=this.K.Qg();k=this.W.Qg(); this.W.y5("sbs",{citag:k==null?void 0:k.itag,nitag:W==null?void 0:W.itag});this.K.y5("gitags",{pitag:k==null?void 0:k.itag,citag:W==null?void 0:W.itag});var I;(I=this.K)==null||I.wW()}}}; g.R.ZK=function(){this.j9()&&this.A$("player-reload-after-handoff")}; g.R.A$=function(W,Y){Y=Y===void 0?{}:Y;if(!this.Xr()&&this.status.status!==6){var k=this.status.status>=4&&W!=="player-reload-after-handoff";this.status={status:Infinity,error:W};if(this.W&&this.K){var P=this.K.getVideoData().clientPlaybackNonce;this.W.Pz(new g.uZ("dai.transitionfailure",Object.assign(Y,{cpn:P,transitionTimeMs:this.L7,msg:W})));this.W.Xc(k)}this.fI.reject(W);this.dispose()}}; g.R.j9=function(){return this.status.status>=4&&this.status.status<6}; g.R.iz=function(){dMC(this);this.W.unsubscribe("newelementrequired",this.ZK,this);if(this.J){var W=this.J.K;this.J.W.AY.unsubscribe("updateend",this.Q$,this);W.AY.unsubscribe("updateend",this.Q$,this)}g.e.prototype.iz.call(this)}; g.R.Pg=function(W){g.Sa(W,128)&&this.A$("player-error-event")};g.H(bO,g.e);bO.prototype.clearQueue=function(W,Y){W=W===void 0?!1:W;Y=Y===void 0?!1:Y;this.T&&this.T.reject("Queue cleared");this.app.V().U("html5_gapless_fallback_on_qoe_restart_v2")||Y&&this.K&&this.K.Xc(!1);cN(this,W)}; bO.prototype.g_=function(){return!this.W}; bO.prototype.j9=function(){var W;return((W=this.J)==null?void 0:W.j9())||!1}; bO.prototype.iz=function(){cN(this);g.e.prototype.iz.call(this)};g.H(eIC,g.NR);g.R=eIC.prototype;g.R.getVisibilityState=function(W,Y,k,P,T,I,X,h){return W?4:wBF()?3:Y?2:k?1:P?5:T?7:I?8:X?9:h?10:0}; g.R.aS=function(W){this.fullscreen!==W&&(this.fullscreen=W,this.R6())}; g.R.setMinimized=function(W){this.K!==W&&(this.K=W,this.R6())}; g.R.setInline=function(W){this.inline!==W&&(this.inline=W,this.R6())}; g.R.FT=function(W){this.pictureInPicture!==W&&(this.pictureInPicture=W,this.R6())}; g.R.setSqueezeback=function(W){this.J!==W&&(this.J=W,this.R6())}; g.R.D8=function(W){this.T!==W&&(this.T=W,this.R6())}; g.R.Y7=function(){return this.W}; g.R.WF=function(){return this.fullscreen!==0}; g.R.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.R.q5=function(){return this.fullscreen}; g.R.isMinimized=function(){return this.K}; g.R.isInline=function(){return this.inline}; g.R.isBackground=function(){return wBF()}; g.R.Wl=function(){return this.pictureInPicture}; g.R.Us=function(){return!1}; g.R.Go=function(){return this.J}; g.R.kf=function(){return this.T}; g.R.R6=function(){this.publish("visibilitychange");var W=this.getVisibilityState(this.Y7(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wl(),this.Us(),this.Go(),this.kf());W!==this.X&&this.publish("visibilitystatechange");this.X=W}; g.R.iz=function(){eRd(this.C);g.NR.prototype.iz.call(this)};g.H(g.xM,g.e);g.R=g.xM.prototype;g.R.iz=function(){this.videoData=this.playerState=null;g.e.prototype.iz.call(this)}; g.R.addCueRange=function(){}; g.R.VR=function(){}; g.R.Zf=function(){}; g.R.L4=function(){return!1}; g.R.yr=function(){return!1}; g.R.vA=function(){}; g.R.r3=function(){}; g.R.wq=function(){return[]}; g.R.tL=function(){}; g.R.xl=function(){}; g.R.kF=function(){return 1}; g.R.getAudioTrack=function(){return this.getVideoData().yD}; g.R.ji=function(){return null}; g.R.getAvailableAudioTracks=function(){return[]}; g.R.HV=function(){return[]}; g.R.uW=function(){return[]}; g.R.VC=function(){return""}; g.R.R7=function(){return[]}; g.R.D$=function(){}; g.R.tD=function(){return 0}; g.R.getCurrentTime=function(){return 0}; g.R.Qs=function(){}; g.R.Qg=function(){}; g.R.ER=function(){return{}}; g.R.getDuration=function(){return 0}; g.R.Hl=function(){return 0}; g.R.hT=function(){return 0}; g.R.sL=function(){return!1}; g.R.O3=function(){return 0}; g.R.F8=function(){return 0}; g.R.Zj=Wd(7);g.R.XZ=function(){return 0}; g.R.kN=function(){return!1}; g.R.qA=function(){return 0}; g.R.bd=function(){return null}; g.R.s0=function(){return null}; g.R.aI=function(){return 0}; g.R.nC=function(){return 0}; g.R.Je=function(){return g.D(function(W){g.G1(W)})}; g.R.Vg=Wd(15);g.R.getPlaybackQuality=function(){return"auto"}; g.R.getPlaybackRate=function(){return 1}; g.R.getPlayerState=function(){this.playerState||(this.playerState=new g.zc);return this.playerState}; g.R.getPlayerType=function(){return 0}; g.R.getPlaylistSequenceForTime=function(){return null}; g.R.Tv=function(){return function(){}}; g.R.Dj=function(){return""}; g.R.getPreferredQuality=function(){return"unknown"}; g.R.ST=function(){}; g.R.getProximaLatencyPreference=function(){return 0}; g.R.DW=function(){return Ms}; g.R.T8=function(){return null}; g.R.getStoryboardFormat=function(){return null}; g.R.getStreamTimeOffset=function(){return 0}; g.R.RA=function(){return 0}; g.R.m2=function(){return 0}; g.R.h4=function(){return{mU:[],v$:[],currentTime:0,zG:"",droppedVideoFrames:0,isGapless:!1,g_:!0,mE:0,Hv:0,q9:0,mM:0,I2:0,DR:[],CT:[],wB:null,playerState:this.getPlayerState(),tJ:null,Kx:"",totalVideoFrames:0}}; g.R.getUserAudio51Preference=function(){return 0}; g.R.getUserPlaybackQualityPreference=function(){return""}; g.R.getVideoData=function(){this.videoData||(this.videoData=new g.t6(this.zJ),g.v(this,this.videoData));return this.videoData}; g.R.Rv=function(){return null}; g.R.Ud=function(){return null}; g.R.B5=function(){}; g.R.getVideoLoadedFraction=function(){return 0}; g.R.Od=function(){}; g.R.handleError=function(){}; g.R.Xc=function(){}; g.R.eC=function(){}; g.R.aA=Wd(40);g.R.IS=function(){return!1}; g.R.hasSupportedAudio51Tracks=function(){return!1}; g.R.ri=function(){return!1}; g.R.Y7=function(){return!1}; g.R.isAtLiveHead=function(){return!1}; g.R.BA=function(){return!0}; g.R.isGapless=function(){return!1}; g.R.isHdr=function(){return!1}; g.R.jT=function(){return!1}; g.R.T2=function(){return!1}; g.R.XJ=function(){return!1}; g.R.isProximaLatencyEligible=function(){return!1}; g.R.g_=function(){return!0}; g.R.HS=function(){return!1}; g.R.hR=function(){return!1}; g.R.DB=function(){}; g.R.TZ=function(){}; g.R.wW=function(){}; g.R.Al=function(){}; g.R.l6=function(){}; g.R.uN=function(){}; g.R.Yb=function(){}; g.R.Bu=Wd(50);g.R.Kh=Wd(21);g.R.m4=function(){}; g.R.pauseVideo=function(){}; g.R.prefetchKeyPlay=function(){}; g.R.playVideo=function(){return g.D(function(W){return W.return()})}; g.R.iZ=function(){}; g.R.l_=Wd(27);g.R.cK=Wd(33);g.R.Zl=function(){}; g.R.y5=function(){}; g.R.aZ=function(){}; g.R.gP=function(){}; g.R.uM=function(){}; g.R.Pz=function(){}; g.R.w0=function(){}; g.R.Js=function(){}; g.R.Qm=function(){}; g.R.D0=function(){}; g.R.oF=function(){}; g.R.lw=function(){}; g.R.removeCueRange=function(){}; g.R.Mm=function(){}; g.R.fq=function(){return[]}; g.R.Fo=function(){}; g.R.Fb=function(){}; g.R.UY=function(){}; g.R.aL=function(){}; g.R.FX=function(){}; g.R.wk=function(){}; g.R.seekTo=function(){}; g.R.sendAbandonmentPing=function(){}; g.R.sendVideoStatsEngageEvent=function(){}; g.R.XT=function(){}; g.R.setLoop=function(){}; g.R.QW=function(){}; g.R.setMediaElement=function(){}; g.R.mK=function(){}; g.R.setPlaybackRate=function(){}; g.R.SW=function(){}; g.R.H9=function(){}; g.R.sU=function(){}; g.R.setProximaLatencyPreference=function(){}; g.R.Z8=function(){}; g.R.fS=function(){}; g.R.uZ=function(){}; g.R.QN=function(){}; g.R.r0=function(){}; g.R.setUserAudio51Preference=function(){}; g.R.CP=function(){}; g.R.Jf=function(){return!1}; g.R.i4=function(){}; g.R.E0=function(){return!1}; g.R.s$=function(){}; g.R.rY=function(){}; g.R.Rc=function(){}; g.R.stopVideo=function(){}; g.R.subscribe=function(){return NaN}; g.R.cH=function(){}; g.R.togglePictureInPicture=function(){}; g.R.QQ=function(){return 0}; g.R.Rn=function(){}; g.R.unsubscribe=function(){return!1}; g.R.VQ=function(){}; g.R.s4=function(){return!1}; g.R.rf=function(){}; g.R.uO=function(){}; g.R.V0=function(){};g.H(Nf,g.e);g.R=Nf.prototype;g.R.get=function(W){fq(this);var Y=this.data.find(function(k){return k.key===W}); return Y?Y.value:null}; g.R.set=function(W,Y,k){this.remove(W,!0);fq(this);W={key:W,value:Y,expire:Infinity};k&&isFinite(k)&&(k*=1E3,W.expire=(0,g.q5)()+k);for(this.data.push(W);this.data.length>this.J;)(k=this.data.shift())&&aK(this,k,!0);VV(this)}; g.R.remove=function(W,Y){Y=Y===void 0?!1:Y;var k=this.data.find(function(P){return P.key===W}); k&&(aK(this,k,Y),g.rB(this.data,function(P){return P.key===W}),VV(this))}; g.R.removeAll=function(W){if(W=W===void 0?!1:W)for(var Y=g.p(this.data),k=Y.next();!k.done;k=Y.next())aK(this,k.value,W);this.data=[];VV(this)}; g.R.iz=function(){var W=this;g.e.prototype.iz.call(this);this.data.forEach(function(Y){aK(W,Y,!0)}); this.data=[]};g.H(g.Wz,g.e);g.R=g.Wz.prototype;g.R.iz=function(){for(var W=g.p(Object.values(this.J)),Y=W.next();!Y.done;Y=W.next())Y.value.dispose();ozS(this);this.W.dispose();g.e.prototype.iz.call(this)}; g.R.H5=function(W){return W?W===1?this.L:this.K.getVideoData().enableServerStitchedDai&&W===2?this.K.getVideoData().uu?this.J[2]||this.K:this.K:this.J[W]||null:this.K}; g.R.s1=function(W){var Y=W.cpn;W=W.playerType;if(Y)a:{W=g.p(Object.values(this.J));for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.VC()===Y){Y=k;break a}Y=this.X[Y]||null}else Y=W?this.H5(W):this.K;return Y}; g.R.zn=function(){return this.L}; g.R.kU=function(W){this.L=W}; g.R.D2=function(){return this.K}; g.R.gk=function(W){this.K=W;Yq(this)}; g.R.o9=Wd(46);g.R.rJ=Wd(48);g.H(fIC,g.jk);g.R=fIC.prototype;g.R.On=function(){}; g.R.VC=function(){return this.videoData.clientPlaybackNonce}; g.R.getVideoData=function(){if(g.jk.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){var W=H0q(this.Ha,g.jk.prototype.getCurrentTime.call(this))||g.jk.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==W.clientPlaybackNonce&&VLS(this.K,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:W.clientPlaybackNonce});return this.videoData}return H0q(this.Ha,g.jk.prototype.getCurrentTime.call(this))||g.jk.prototype.getVideoData.call(this)}; g.R.getCurrentTime=function(W){var Y=g.jk.prototype.getCurrentTime.call(this);if(g.jk.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){this.W===0?W||(Y-=this.startTimeSecs):W&&(Y=this.W);var k=W?this.Ha.pY||g.jk.prototype.getCurrentTime.call(this):MgS(this.Ha,g.jk.prototype.getCurrentTime.call(this));Y!==k&&VLS(this.K,"time"+(W!=null?W:!1),{time:Y,ref:k,ct:W!=null?W:!1})}else Y=W?this.Ha.pY||Y:MgS(this.Ha,Y);return Y}; g.R.getDuration=function(){if(g.jk.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){var W=qm0(this.Ha,g.jk.prototype.getCurrentTime.call(this));this.duration!==W&&VLS(this.K,"duration",{dur:this.duration,ref:W});return this.duration}return qm0(this.Ha,g.jk.prototype.getCurrentTime.call(this))}; g.R.Nv=function(W){this.duration=W};g.kq.prototype.LK=function(W,Y){if(Y===1)return this.W.get(W);if(Y===2)return this.J.get(W);if(Y===3)return this.K.get(W)}; g.kq.prototype.rP=Wd(58);g.kq.prototype.yN=function(W,Y,k,P){k={ih:P,MY:k};Y?this.J.set(W,k):this.W.set(W,k)}; g.kq.prototype.clearAll=function(){this.W.clear();this.J.clear();this.K.clear()}; aId.prototype.clear=function(){this.K=[];this.J.clear();this.T.clear();this.W.clear()}; aId.prototype.s1=function(W){var Y=W.cpn;W=W.U1;if(Y&&(Y=this.J.get(Y))||W&&(Y=(this.C?this.J:this.T).get(W)))return Y}; g.H(g.Pz,g.e);g.R=g.Pz.prototype;g.R.onCueRangeEnter=function(W){var Y=W.getId();this.P7({oncueEnter:1,cpn:Y,start:W.start,end:W.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.tD()||0).toFixed(3)});var k=this.W.s1({cpn:Y});this.P7({enterAdCueRange:1});var P=this.eW||this.qh().cpn,T;P=(T=this.W.s1({cpn:P}))!=null?T:this.qh();k&&(T=this.playback.getCurrentTime(),k.startTimeSecs=W.start/1E3,k={K2:P,zO:k,Wp:T},enq(this,Y,W.start/1E3,T),Bz(this,k))}; g.R.Bx=function(W,Y){if(W&&Y){var k,P=((k=this.app.Ln().T)==null?void 0:k.VC())||this.playback.VC(),T;k=(T=this.W.s1({cpn:P}))!=null?T:this.qh();var I;W=(I=this.W.s1({cpn:W}))!=null?I:this.qh();W.startTimeSecs=Y;I=this.playback.getCurrentTime();enq(this,P,Y,I);Bz(this,{K2:k,zO:W,Wp:I})}}; g.R.FO=function(W,Y){if(W===this.playback.VC())$q(this.app.Ln(),this.playback,!1);else{var k=this.TJ.get(W);k?(k.W=0,k.startTimeSecs=Y,$q(this.app.Ln(),k,!0)):this.P7({nop_s:W})}}; g.R.onCueRangeExit=function(W){for(var Y=this.playback.getCurrentTime()*1E3,k=W.getId(),P=g.p(this.K.values()),T=P.next();!T.done;T=P.next())if(T=T.value,T.getId()!==k&&Y>=T.start&&Y<=T.end)return;if(k=this.W.s1({cpn:k}))Y=this.playback.getCurrentTime(),P=this.qh(),P.startTimeSecs=W.end/1E3,k={K2:k,zO:P,Wp:Y},enq(this,this.playback.VC(),W.end/1E3,Y),Bz(this,k)}; g.R.qh=function(){return{cpn:this.playback.VC(),durationMs:0,pH:0,playerType:1,vz:0,videoData:this.playback.getVideoData(),errorCount:0,J7:""}}; g.R.seekTo=function(W,Y,k,P){W=W===void 0?0:W;Y=Y===void 0?{}:Y;k=k===void 0?!1:k;P=P===void 0?null:P;hT(this,this.eW);if(this.playback.getVideoData().Xj()&&W<=this.pY)this.playback.pauseVideo(),this.pY=0,ol2(this,W);else if(this.A5=!0,k)jEC(this,W,Y);else{k=this.app.D2();var T=k===this.gD?this.Q5:null;Xq(this,!1);this.Lg=W;this.e1=Y;P!=null&&this.bz.start(P);k&&(this.Q5=T||k.getPlayerState(),k.Rc(Y),this.gD=k)}}; g.R.iz=function(){Xq(this,!1);GqS(this);K_5(this);g.e.prototype.iz.call(this)}; g.R.fv=function(W){this.A9=W;this.P7({swebm:W})}; g.R.Gw=function(W,Y,k){if(k&&Y){var P=this.C.get(W);if(P){P.locations||(P.locations=new Map);var T=Number(Y.split(";")[0]);k=new g.lW(k);this.P7({hdlredir:1,itag:Y,seg:W,hostport:c0(k)});P.locations.set(T,k)}}}; g.R.VZ=function(W,Y,k,P,T,I){var X=P===3,h=sEd(this,W,Y,P,k,I);if(!h){SX(this,Y,X);var B=g.Elq(this,Y)?"undec":"ncp";this.P7({gvprp:B,mt:W,seg:Y,tt:P,itag:k,ce:I});return null}X||this.C.set(Y,h);I=h.J7;var O;P=((O=this.LK(Y-1,P,T))==null?void 0:O.ih)||"";P===""&&this.P7({eds:1});O=AYF(this,h.ssdaiAdsConfig);T=this.playback.getVideoData();var u;X=((u=T.K)==null?void 0:u.containerType)||0;u=T.wu[X];h=h.n5&&Y>=h.n5?h.n5:void 0;u={Ir:I?DhF(this,I):[],adsConfig:O,ih:P,VN:h,ZA:mu(u.split(";")[0]),fz:u.split(";")[1]|| ""};h={h7:u};this.Fr&&(W={gvprpro:"v",sq:Y,mt:W.toFixed(3),itag:k,acpns:((B=u.Ir)==null?void 0:B.join("_"))||"none",abid:I},this.P7(W));return h}; g.R.QA=function(W){a:{if(!this.U0){var Y=rYv(this,W);if(!(this.playback.getVideoData().Xj()&&(Y==null?0:Y.Yr)))break a}Y=void 0}var k=Y;if(!k)return this.P7({gvprp:"ncp",mt:W}),null;Y=k.J7;var P=AYF(this,k.ssdaiAdsConfig);k=k.n5&&k.hG&&W>=k.hG?k.n5:void 0;var T=this.playback.getVideoData(),I,X=((I=T.K)==null?void 0:I.containerType)||0;I=T.wu[X];I={Ir:Y?DhF(this,Y):[],adsConfig:P,VN:k,ZA:mu(I.split(";")[0]),fz:I.split(";")[1]||""};var h;W={gvprpro:"v",mt:W.toFixed(3),acpns:((h=I.Ir)==null?void 0:h.join("_"))|| "none",abid:Y};this.P7(W);return I}; g.R.B$=function(W,Y,k,P,T,I){var X=Number(k.split(";")[0]),h=P===3;W=sEd(this,W,Y,P,k,I);this.P7({gdu:1,seg:Y,itag:X,pb:""+!!W});if(!W)return SX(this,Y,h),null;W.locations||(W.locations=new Map);if(!W.locations.has(X)){var B,O;I=(B=W.videoData.getPlayerResponse())==null?void 0:(O=B.streamingData)==null?void 0:O.adaptiveFormats;if(!I)return this.P7({gdu:"noadpfmts",seg:Y,itag:X}),SX(this,Y,h),null;B=I.find(function(M){return M.itag===X}); if(!B||!B.url){var u=W.videoData.videoId;W=[];var Z=g.p(I);for(P=Z.next();!P.done;P=Z.next())W.push(P.value.itag);this.P7({gdu:"nofmt",seg:Y,vid:u,itag:X,fullitag:k,itags:W.join(",")});SX(this,Y,h);return null}W.locations.set(X,new g.lW(B.url,!0))}I=W.locations.get(X);if(!I)return this.P7({gdu:"nourl",seg:Y,itag:X}),SX(this,Y,h),null;I=new Q2(I);this.A9&&(I.get("dvc")?this.P7({dvc:I.get("dvc")||""}):I.set("dvc","webm"));(P=(Z=this.LK(Y-1,P,T))==null?void 0:Z.ih)&&I.set("daistate",P);W.n5&&Y>=W.n5&& I.set("skipsq",""+W.n5);(Z=this.playback.getVideoData().clientPlaybackNonce)&&I.set("cpn",Z);Z=[];W.J7&&(Z=DhF(this,W.J7),Z.length>0&&I.set("acpns",Z.join(",")));h||this.C.set(Y,W);h=null;h=I.get("aids");P=I.OV();(P==null?void 0:P.length)>2048&&this.P7({urltoolong:1,sq:Y,itag:X,len:P.length});this.Fr&&(P&&(I=W.cpn,T=W.J7,wYd(this,I,T),T&&!this.f1.has(T)&&(I=gl7(this,I,T),B=F_z(this,T),this.P7({iofa:I}),this.P7({noawnzd:B-I}),this.P7({acpns:Z.join("."),aids:(u=h)==null?void 0:u.replace(/,/g,".")}), this.f1.add(T))),this.P7({gdu:"v",seg:Y,itag:k,ast:W.pH.toFixed(3),alen:W.durationMs.toFixed(3),acpn:W.cpn,avid:W.videoData.videoId}));return P}; g.R.U$=function(W,Y,k){k=k===void 0?!1:k;var P=JY1(this,W,Y);if(P){var T=void 0,I=P.J7;if(I){this.P7({skipadonsq:Y,sts:k,abid:I,acpn:P.cpn,avid:P.videoData.videoId});k=this.W.W.get(I);if(!k)return;k=g.p(k);for(I=k.next();!I.done;I=k.next())I=I.value,I.n5=Y,I.hG=W,I.pH>P.pH&&(T=I)}hT(this,this.eW);this.J=P.cpn;znC(this);this.api.U("html5_ssdai_enable_media_end_cue_range")&&this.playback.Rn(this.J);W=this.playback.getCurrentTime();this.zJ.U("html5_use_new_ssdai_transition_detector")&&this.FO(this.playback.VC(), W);dhd(this,P,T,W,W,!1,!0);yYX(this)}}; g.R.zV=function(){for(var W=g.p(this.W.K),Y=W.next();!Y.done;Y=W.next())Y=Y.value,Y.n5=NaN,Y.hG=NaN;znC(this);this.P7({rsac:"resetSkipAd",sac:this.J});this.rD.delete(this.J);this.J=""}; g.R.LK=function(W,Y,k){return this.Kg.LK(W,Y,k)}; g.R.rP=Wd(57); g.R.yN=function(W,Y,k,P,T,I,X,h,B){P.length>0&&this.P7({onssinfo:1,sq:W,start:Y.toFixed(3),cpns:P.join(","),ds:T.join(","),isVideo:X?1:0});B&&this.Kg.yN(W,X,h,B);if(X){if(P.length&&T.length)for(this.rD.has(P[0])&&this.P7({skipfail:1,sq:W,acpn:P[0]}),W=Y+this.RA(),k=0;k0&&(this.yY=0,this.eW="",this.zJ.U("html5_huli_ssdai_use_playback_state")&&this.FO(this.playback.VC(),0),this.api.publish("serverstitchedvideochange"));this.playback.r3(k,P);return!0}; g.R.Fc=function(){this.P7({rstdaist:1});this.Kg.clearAll()}; g.R.v9=function(W){var Y;if(W!==((Y=this.X)==null?void 0:Y.identifier))this.P7({ignorenoad:W});else{this.KH.add(W);this.P7({noadrcv:W});var k;((k=this.X)==null?void 0:k.identifier)===W&&jX(this)}}; g.R.SF=function(W){if(this.U0)return this.P7({dai_disabled:W.event}),!1;if(this.playback.getVideoData().Xj()&&(W.event==="continue"||W.event==="stop"))return!1;var Y=FS(this.api.gx());if(Y=Y?Y.SF(W):!1)this.T={X2:W.identifier,ev:W.startSecs};else if(this.T&&this.T.X2===W.identifier&&W.startSecs>this.T.ev+1){this.P7({cueStChg:W.identifier,oldSt:this.T.ev.toFixed(3),newSt:W.startSecs.toFixed(3),abid:this.T.lk});if(this.T.lk){var k=W.startSecs-this.T.ev,P=this.W.W.get(this.T.lk);if(P){P=g.p(P);for(var T= P.next();!T.done;T=P.next())T=T.value,T.pH>=0&&(T.pH+=k*1E3,this.zJ.U("html5_ssdai_update_timeline_on_start_time_change")&&(T.vz+=k*1E3),this.P7({newApEt:T.pH,newApPrt:T.vz,acpn:T.cpn}))}}this.T.ev=W.startSecs}this.zJ.U("html5_ssdai_log_missing_ad_config_reason")&&(Y?this.OP.add(W.identifier):this.OP.has(W.identifier)&&this.OP.delete(W.identifier));return Y}; g.R.VA=function(W){var Y="";W?W.event==="unknown"?Y="unknown":this.OP.has(W.identifier)?this.T&&this.T.X2===W.identifier?this.T.X2===W.identifier?Y="pending":vQ(this.V5,function(k){return k.identifier===W.identifier})||(Y="noAdsAdded"):Y="wrongAdBreakInfo":Y="unscheduled":Y="noCuepoint"; return Y}; g.R.Qd=function(W){return this.U0?!1:!!rYv(this,W)}; g.R.Lv=function(W){var Y=this;if(this.zJ.U("html5_lifa_ignore_multiple_skips")&&this.wD)return this.P7({ufs_ad:this.J,ufs_cur:this.eW,ufs_cont:this.qh().cpn}),!1;hT(this,this.eW);this.playback.pauseVideo();var k=this.playback.getCurrentTime(),P=this.W.s1({cpn:this.eW});if(!P)return this.P7({skipFail:k}),!1;this.J=this.eW;this.A5=!1;this.api.U("html5_ssdai_enable_media_end_cue_range")&&this.playback.Rn(this.J);QE2(this,P.J7);vlv(this,P,this.qh(),W);ol2(this,k,{seekSource:89,Fi:"lifa_skip"});this.wD|| (this.wD=this.events.Z(this.api,"progresssync",function(){nO(Y.api.w_(),(0,g.q5)(),"ad_to_video");Y.wD&&(Y.events.nH(Y.wD),Y.wD=null)})); return!0}; g.R.P7=function(W,Y){((Y===void 0?0:Y)||this.Fr||this.playback.getVideoData().Xj())&&this.playback.y5("sdai",W)}; var hnz=0;g.H(L_6,g.e);g.R=L_6.prototype;g.R.onCueRangeEnter=function(W){if(this.W===this.app.D2()){var Y=this.C.get(W);Y?fF6(this,Y.target,Y.L7,W):this.Pz("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:W.toString()})}else if(Y=this.K.find(function(T){return T.Ag.BK===W})){var k=Y.Ag,P=k.target; k=k.L7;P?fF6(this,P,k,W):xh1(this,Y.vz,k,W)}}; g.R.onQueuedVideoLoaded=function(){var W=this.G;i1(this);if(W){if(!ZU(this,W)){var Y=this.app.D2();this.Pz("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:Y==null?void 0:Y.getVideoData().clientPlaybackNonce,ccpn:""+W.playerVars.cpn})}this.app.D2().addCueRange(W.Ag.BK)}}; g.R.seekTo=function(W,Y,k,P){W=W===void 0?0:W;Y=Y===void 0?{}:Y;P=P===void 0?null:P;if(k===void 0?0:k)CvF(this,W,Y);else{k=this.app.D2()||null;var T=k===this.T?this.X:null;MT(this,!1);this.A5=W;this.N=Y;P!=null&&this.L.start(P);k&&(this.X=T||k.getPlayerState(),k.Rc(),this.T=k)}}; g.R.OA=function(W){g.Sa(W,128)&&YR2(this)}; g.R.isManifestless=function(){return QO(this.W.getVideoData())}; g.R.iz=function(){MT(this,!1);kEq(this);g.e.prototype.iz.call(this)}; g.R.Pz=function(W,Y){this.W.Pz(new g.uZ(W,Y))}; var Uh0=0;var PM0="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.H(tT,g.e);tT.prototype.n2=function(W){if(W)return this.K.get(W)}; tT.prototype.iz=function(){this.W.removeAll();this.K.removeAll();g.e.prototype.iz.call(this)};g.Uvh=mT(function(){var W=window.AudioContext||window.webkitAudioContext;try{return new W}catch(Y){return Y.name}});g.H(SRC,g.l);g.R=SRC.prototype;g.R.dk=function(){g.We(this.element,g.y0.apply(0,arguments))}; g.R.Fb=function(){this.L1&&(this.L1.removeEventListener("focus",this.R1),g.qB(this.L1),this.L1=null)}; g.R.Ij=function(){this.Xr();var W=this.app.V();W.il||this.dk("tag-pool-enabled");W.X&&this.dk(g.nm.HOUSE_BRAND);W.playerStyle==="gvn"&&(this.dk("ytp-gvn"),this.element.style.backgroundColor="transparent");W.Gn&&(this.TA=g.bu("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.R.DX=function(W){g.j_(this.app.V());this.Wq=!W;qT(this)}; g.R.resize=function(){if(this.L1){var W=this.o3();if(!W.isEmpty()){this.app.Ii.isFullscreen()&&FU()&&this.gQ.start();var Y=!g.l7(W,this.Th.getSize()),k=Zw1(this);Y&&(this.Th.width=W.width,this.Th.height=W.height);W=this.app.V();(k||Y||this.i9||W.Gn)&&this.app.Ii.publish("resize",this.getPlayerSize())}}}; g.R.qB=function(W,Y){this.updateVideoData(Y)}; g.R.updateVideoData=function(W){if(this.L1){var Y=this.app.V();yW&&(this.L1.setAttribute("x-webkit-airplay","allow"),W.title?this.L1.setAttribute("title",W.title):this.L1.removeAttribute("title"));this.L1.setAttribute("controlslist","nodownload");Y.zR&&W.videoId&&(this.L1.poster=W.Ss("default.jpg"))}Y=g.cn(W,"yt:bgcolor");this.M0.style.backgroundColor=Y?Y:"";this.C$=ai(g.cn(W,"yt:stretch"));this.us=ai(g.cn(W,"yt:crop"),!0);g.kN(this.element,"ytp-dni",W.zr);this.app.V().U("delhi_modern_web_player")&& (W=this.app.Ii.isHdr()||this.app.V().U("delhi_modern_web_player_disable_frosted_glass")?"none":"initial",this.element.style.setProperty("--yt-frosted-glass-backdrop-filter-override",W));this.resize()}; g.R.setGlobalCrop=function(W){this.Eg=ai(W,!0);this.resize()}; g.R.setCenterCrop=function(W){this.Bf=W;this.resize()}; g.R.aS=function(){}; g.R.getPlayerSize=function(){var W=this.app.V(),Y=this.app.Ii.isFullscreen(),k=W.externalFullscreen&&g.Y3(W);if(Y&&FU()&&!k)return new g.UF(window.outerWidth,window.outerHeight);k=!isNaN(this.Sb.width)&&!isNaN(this.Sb.height);var P=this.app.V().U("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.V().U("web_watch_enable_fs_squeezeback_panels");if(Y&&!k&&P)return new g.UF(this.element.clientWidth,this.element.clientHeight);if(Y||W.KI){if(window.matchMedia){W="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.ZI&&this.ZI.media===W||(this.ZI=window.matchMedia(W));var T=this.ZI&&this.ZI.matches}if(T)return new g.UF(window.innerWidth,window.innerHeight)}else if(k)return this.Sb.clone();return new g.UF(this.element.clientWidth,this.element.clientHeight)}; g.R.o3=function(){var W=this.app.V().U("enable_desktop_player_underlay"),Y=this.getPlayerSize(),k=g.W2(this.app.V().experiments,"player_underlay_min_player_width");return W&&this.QI&&Y.width>k?(W=g.W2(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.UF(Math.min(Y.height*this.getVideoAspectRatio(),Y.width*W),Math.min(Y.height,Y.width*W/this.getVideoAspectRatio()))):Y}; g.R.getVideoAspectRatio=function(){return isNaN(this.C$)?B15(this):this.C$}; g.R.getVideoContentRect=function(W){var Y=this.o3();W=Owv(this,Y,this.getVideoAspectRatio(),W);return new g.eh((Y.width-W.width)/2,(Y.height-W.height)/2,W.width,W.height)}; g.R.xp=function(W){this.QI=W;this.resize()}; g.R.FJ=function(){return this.eH}; g.R.onMutedAutoplayChange=function(){qT(this)}; g.R.setInternalSize=function(W){g.l7(this.Sb,W)||(this.Sb=W,this.resize())}; g.R.iz=function(){this.TA&&g.cw(this.TA);this.Fb();g.l.prototype.iz.call(this)};g.R=MTF.prototype;g.R.click=function(W,Y){this.elements.has(W);this.W.has(W);var k=g.iD();k&&W.visualElement&&g.cJ(k,W.visualElement,Y)}; g.R.createClientVe=function(W,Y,k,P){var T=this;P=P===void 0?!1:P;this.elements.has(W);this.elements.add(W);k=REq(k);W.visualElement=k;var I=g.iD(),X=g.Ze();I&&X&&(g.Oi("combine_ve_grafts")?TC(kt(),k,X):g.LI(g.wj)(void 0,I,X,k));Y.addOnDisposeCallback(function(){T.elements.has(W)&&T.destroyVe(W)}); P&&this.K.add(W)}; g.R.createServerVe=function(W,Y,k){var P=this;k=k===void 0?!1:k;this.elements.has(W);this.elements.add(W);Y.addOnDisposeCallback(function(){P.destroyVe(W)}); k&&this.K.add(W)}; g.R.destroyVe=function(W){this.elements.has(W);this.elements.delete(W);this.J.delete(W);this.W.delete(W);this.K.delete(W)}; g.R.Pn=function(W,Y){this.clientPlaybackNonce!==Y&&(this.clientPlaybackNonce=Y,P0(kt(),W),tT2(this))}; g.R.setTrackingParams=function(W,Y){this.elements.has(W);Y&&(W.visualElement=g.O5(Y))}; g.R.b8=function(W,Y,k){this.elements.has(W);Y?this.W.add(W):this.W.delete(W);var P=g.iD(),T=W.visualElement;this.K.has(W)?P&&T&&(Y?g.lD(P,[T]):g.bD(P,[T])):Y&&!this.J.has(W)&&(P&&T&&g.U5(P,T,void 0,k),this.J.add(W))}; g.R.hasVe=function(W){return this.elements.has(W)};g.H(g.Hz,g.e);g.Hz.create=function(W,Y,k,P){try{var T=typeof W==="string"?W:"player"+g.jw(W),I=zP[T];if(I){try{I.dispose()}catch(h){g.GH(h)}zP[T]=null}var X=new g.Hz(W,Y,k,P);X.addOnDisposeCallback(function(){zP[T]=null;X.Fn&&X.Fn()}); return zP[T]=X}catch(h){throw g.GH(h),(h&&h instanceof Error?h:Error(String(h))).stack;}}; g.R=g.Hz.prototype;g.R.qz=function(){return this.visibility}; g.R.kU=function(W){var Y=this.zn();if(W!==Y){W.getVideoData().autonavState=Y.getVideoData().autonavState;Y.VQ(this.xE,this);var k=Y.getPlaybackRate();Y.dispose();this.ud.kU(W);W.setPlaybackRate(k);W.cH(this.xE,this);rFC(this)}}; g.R.fn=function(){this.XN||(this.XN=g.LS(P1(),mQV()));return this.XN}; g.R.Fb=function(W){if(this.mediaElement){this.W1&&(this.events.nH(this.W1),this.W1=null);g.ne(this.l2);this.D2().Fb(!0,!1,W);this.template.Fb();try{this.U("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.uP()}catch(Y){g.Kx(Y)}this.mediaElement=null}}; g.R.gk=function(W,Y,k){k=k===void 0?!1:k;if(W!==this.D2()){this.logger.debug(function(){return"start set presenting player, type "+W.getPlayerType()+", vid "+W.getVideoData().videoId}); var P=null;k||(k=this.D2(),P=k.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),gK(this.eL,3),Cf(this,"cuerangesremoved",k.R7()),this.gs&&!W.isGapless()&&k.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),k=W.Jf()&&k.Jf(),this.C1.k0("iv_s"),wcd(this,k));W.getPlayerType()===1&&this.kU(W);FIX(this,W);this.ud.gk(W);this.mediaElement&&W.setMediaElement(this.mediaElement);W.cH(this.HR,this);W.hR()?S86(this,"setPresenting",!1):(this.qB("newdata",W,W.getVideoData()), P&&!g.w6(P,W.getPlayerState())&&this.r6(new g.T4(W.getPlayerState(),P)),Y=Y&&W.getPlayerType()===1,W.T2()&&!Y&&this.qB("dataloaded",W,W.getVideoData()),(Y=(Y=W.getVideoData().K)&&Y.video)&&this.Ii.x8("onPlaybackQualityChange",Y.quality),Cf(this,"cuerangesadded",W.R7()),Y=W.getPlayerState(),g.b(Y,2)?gCq(this):g.b(Y,8)?W.playVideo():W.jT()&&W.pauseVideo(),Y=this.zn(),W.getPlayerType()===2&&(W.getVideoData().IW=Y.getVideoData().clientPlaybackNonce),W.getPlayerType()!==2||this.Tj()||(P=W.getVideoData(), Y.iZ(P.clientPlaybackNonce,P.jW||"",P.breakType||0,P.Zm,P.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.R.nY=function(){if(this.zn()!==this.D2()){var W=this.D2();this.logger.debug(function(){return"release presenting player, type "+W.getPlayerType()+", vid "+W.getVideoData().videoId}); this.gk(this.zn())}}; g.R.Ln=function(){return this.ud}; g.R.s1=function(W){return this.ud.s1(W)}; g.R.H5=function(W){return this.ud.H5(W)}; g.R.zn=function(){return this.ud.zn()}; g.R.D2=function(){return this.ud.D2()}; g.R.bx=Wd(44);g.R.Lhg=function(){JT(this)||(this.logger.debug("application playback ready"),this.IC(5))}; g.R.nqS=function(){if(!JT(this)){this.logger.debug("playback ready");T45(this);var W=this.D2(),Y=W.getPlayerState();W.jT()?this.pauseVideo():Y.isOrWillBePlaying()&&this.playVideo()}}; g.R.canPlayType=function(W){return t_(W)}; g.R.V=function(){return this.zJ}; g.R.getVideoData=function(){return this.D2().getVideoData()}; g.R.b0=Wd(11);g.R.Kq=function(){return this.zn().getVideoData()}; g.R.getVideoLoadedFraction=function(W){return(W=this.s1({playerType:W}))?W.getVideoLoadedFraction():this.ud.W.getVideoLoadedFraction()}; g.R.ai=function(){return this.template}; g.R.gx=function(){return this.eL}; g.R.w_=function(){return this.C1}; g.R.jh=function(W,Y,k){(Y=this.s1({playerType:Y===void 0?1:Y}))&&Y.XT(W,void 0,k)}; g.R.sI=function(){var W=this.eL.sI();this.Ii.publish("videoStatsPingCreated",W);return W}; g.R.getVolume=function(){return Math.round(this.Ii.getVolume())}; g.R.isMuted=function(){return this.Ii.isMuted()}; g.R.fK=function(){if(this.zn()===this.D2()&&this.u8)return this.u8.postId}; g.R.qUz=function(){var W=this;this.U("use_rta_for_player")||(g.Zw(this.zJ)?g.dV(this.zJ,g.hD(this.getVideoData())).then(function(Y){TT(P1(),Y);RN1(W.getVideoData(),W.zJ,W.fn())}):RN1(this.getVideoData(),this.zJ,this.fn()))}; g.R.O4=function(W){this.Ii.publish("poTokenVideoBindingChange",W)}; g.R.NP=function(W){this.Ii.publish("d6de4videobindingchange",W)}; g.R.qg=function(){this.Oi&&this.Oi.qg()}; g.R.mF=function(W){this.Oi=W}; g.R.G4=function(W){if(W===1){this.C1.tick("vr");var Y=this.D2();Y.Zf();kIC(this.C1,Y.getVideoData(),PId(this));mp0(this.eL)}Y=this.zJ;if(rV(Y)&&Y.L||g.XF(Y)){var k;(((k=this.D2().getVideoData())==null?0:k.enableServerStitchedDai)||!this.Tj())&&this.Ii.x8("onAdStateChange",W)}}; g.R.setLoopVideo=function(W){var Y=this.D2();Y===this.zn()&&Y.kN()!==W&&(Y.setLoop(W),this.Ii.Ri("onLoopChange",W))}; g.R.getLoopVideo=function(){return this.D2().kN()}; g.R.setLoopRange=function(W){var Y=!1;!!this.u8!==!!W?Y=!0:this.u8&&W&&(Y=this.u8.startTimeMs!==W.startTimeMs||this.u8.endTimeMs!==W.endTimeMs||this.u8.postId!==W.postId||this.u8.type!==W.type);if(Y){Y=this.D2();rR(Y.getVideoData())&&Y.y5("slr",{et:(W==null?void 0:W.endTimeMs)||-1});Y=this.zn();Y.fq("applooprange");if(W){var k=new g.L6(W.startTimeMs,W.endTimeMs,{id:"looprange",namespace:"applooprange"});Y.addCueRange(k)}else{this.Kq().clipConfig=void 0;var P;((k=this.u8)==null?void 0:k.type)!=="repeatChapter"|| isNaN(Number((P=this.u8)==null?void 0:P.loopCount))||(k={loopCount:String(this.u8.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.W8("repeatChapterLoopEvent",k))}this.u8=W;this.Ii.Ri("onLoopRangeChange",W||void 0);this.zn()===this.D2()&&(this.IF(),Y.vA())}}; g.R.getLoopRange=function(){return this.u8}; g.R.IF=function(){var W="",Y=this.zn();this.u8?Y!==this.D2()?W="pnea":UzF(this,Y.getCurrentTime())&&(this.u8.loopCount=0,W="ilr"):W="nlr";var k=this.D2();if(rR(k.getVideoData()))if(this.U("html5_gapless_log_loop_range_info")){var P,T;k.y5("slrre",{rej:W,ct:Y.getCurrentTime(),lst:(P=this.u8)==null?void 0:P.startTimeMs,let:(T=this.u8)==null?void 0:T.endTimeMs})}else k.y5("slrre",{});W||bwd(this)}; g.R.setPlaybackRate=function(W,Y){if(!isNaN(W)){W=dzq(this,W);var k=this.zn();k.getPlaybackRate()!==W&&(k.setPlaybackRate(W),Y&&!this.zJ.T&&g.Ke("yt-player-playback-rate",W),this.Ii.x8("onPlaybackRateChange",W))}}; g.R.getCurrentTime=function(W,Y){Y=Y===void 0?!0:Y;var k=this.ud.sA;if(k)return k.getCurrentTime();var P=W===2&&this.getVideoData().enableServerStitchedDai;k=null;P?k=this.D2():k=this.s1({playerType:W});return k?P&&this.cz?(W=this.ud.G)?W.getCurrentTime(Y):k.getCurrentTime():Y?(Y=E0(this,k),wd(this,Y.getCurrentTime(),Y)):k.getCurrentTime():this.ud.W.getCurrentTime()}; g.R.F8=function(){var W=this.s1({playerType:void 0});if(!W)return this.ud.W.F8();W=E0(this,W);return wd(this,W.F8(),W)}; g.R.getDuration=function(W,Y){Y=Y===void 0?!0:Y;var k=this.ud.sA;if(k)return k.getDuration();k=this.getVideoData();var P=W===2&&k.enableServerStitchedDai,T=null;P?T=this.D2():T=this.s1({playerType:W});if(!T)return this.ud.W.getDuration();if(k.hasProgressBarBoundaries()&&!P){var I,X=Number((I=k.progressBarStartPosition)==null?void 0:I.utcTimeMillis),h;I=Number((h=k.progressBarEndPosition)==null?void 0:h.utcTimeMillis);if(!isNaN(X)&&!isNaN(I))return(I-X)/1E3}if(rR(k)&&!k.isLivePlayback)return gd(this, W);if(Y)return W=Kf(this,T),wd(this,W.getDuration(),W);if(P&&this.cz){if(this.U("html5_huli_ssdai_use_playback_state"))return W=this.ud,W=W.T===W.G?W.T:null,(W==null?void 0:W.getDuration())||0;var B;return((B=this.ud.G)==null?void 0:B.getDuration())||0}return T.getDuration()}; g.R.hT=function(W){var Y=this.s1({playerType:W});return Y?this.Tj(Y)?(Y=Kf(this,Y),Y.hT()-Y.getCurrentTime()+this.getCurrentTime(W)):Y.hT():this.ud.W.hT()}; g.R.finishSegmentByCpn=function(){return[]}; g.R.Ij=function(){this.template.Ij();var W=this.Ii;W.state.element=this.template.element;var Y=W.state.element,k;for(k in W.state.W)W.state.W.hasOwnProperty(k)&&(Y[k]=W.state.W[k]);(W=F$F(this.template.element))&&this.events.Z(this.template,W,this.onFullscreenChange)}; g.R.getDebugText=function(W){var Y=this.zn().ER(W),k=this.D2();if(k!==this.zn()){k=k.ER(W);for(var P=g.p(Object.keys(k)),T=P.next();!T.done;T=P.next())T=T.value,Y["ad"+T]=k[T];if(W){k=Y;P={};if(T=ks(document,"movie_player"))P.bounds=T.getBoundingClientRect(),P["class"]=T.className;T={};var I=g.I_("video-ads");I?(Osq(I,T),T.html=I.outerHTML):T.missing=1;I={};var X=g.I_("videoAdUiSkipContainer"),h=g.I_("ytp-ad-skip-button-container"),B=g.I_("ytp-skip-ad-button"),O=X||h||B;O?(Osq(O,I),I.ima=X?1:0,I.bulleit= h?1:0,I.component=B?1:0):I.missing=1;P=JSON.stringify({player:P,videoAds:T,skipButton:I});k.ad_skipBtnDbgInfo=P}}W&&this.mediaElement&&(Y["0sz"]=""+(+b7(this.mediaElement.getSize())===0),Y.op=this.mediaElement.RY("opacity"),k=this.mediaElement.oE().y+this.mediaElement.getSize().height,Y.yof=""+(+k<=0),Y.dis=this.mediaElement.RY("display"));W&&((W=(0,g.Xm)())&&(Y.gpu=W),(W=this.zJ.playerStyle)&&(Y.ps=W),this.zJ.GJ&&(Y.webview=1),(W=this.webPlayerContextConfig.jsUrl)&&(Y.js=W));Y.debug_playbackQuality= this.Ii.getPlaybackQuality(1);Y.debug_date=(new Date).toString();Y.origin=window.origin;Y.timestamp=Date.now();delete Y.uga;delete Y.q;return JSON.stringify(Y,null,2)}; g.R.getFeedbackProductData=function(){var W={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", "),player_release:S[26]},Y=this.getPlayerStateObject().dc;Y&&(W.player_error_code=Y.errorCode,W.player_error_details=JSON.stringify(Y.errorDetail));return W}; g.R.getPresentingPlayerType=function(W){if(this.appState===1)return 1;if(JT(this))return 3;var Y;return W&&((Y=this.cz)==null?0:Rnq(Y,this.getCurrentTime()))?2:this.D2().getPlayerType()}; g.R.Yo=function(){return!1}; g.R.getPlayerStateObject=function(W){var Y=this.ud.sA;return Y?Y.getPlayerState():this.s1({playerType:W}).getPlayerState()}; g.R.getAppState=function(){return this.appState}; g.R.x6P=function(W){switch(W.type){case "loadedmetadata":this.XX.start();W=g.p(this.Xa);for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,krd(this,Y.id,Y.FrS,Y.XKa,void 0,!1);this.Xa=[];break;case "loadstart":this.C1.k0("gv");break;case "progress":case "timeupdate":X_(W.target.EE())>=2&&this.C1.k0("l2s");break;case "playing":g.JK&&this.XX.start();if(g.Zw(this.zJ))W=!1;else{Y=g.Vn(this.gx());W=this.mediaElement.RY("display")==="none"||b7(this.mediaElement.getSize())===0;var k=Rw(this.template),P=this.D2().getVideoData(), T=g.dq(this.zJ);P=A6(P);Y=!k||Y||T||P||this.zJ.bz;W=W&&!Y}W&&(W=this.D2(),W.DB(),this.getVideoData().xm||(this.getVideoData().xm=1,this.Vp(),W.playVideo()))}}; g.R.gq6=function(W){this.Ii.i7("onLoadProgress",W)}; g.R.m6P=function(){this.Ii.publish("playbackstalledatstart")}; g.R.Xah=function(W,Y){this.Ii.publish("sabrCaptionsDataLoaded",W,Y)}; g.R.ohJ=function(W){this.D2().fS(W)}; g.R.T55=function(W){this.D2().Z8(W)}; g.R.ZHJ=function(W){W=E0(this,this.D2());W=wd(this,W.getCurrentTime(),W);this.Ii.x8("onVideoProgress",W);this.zJ.wX&&aLV(this,this.visibility.Wl())&&this.pauseVideo()}; g.R.wah=function(){this.Ii.x8("onAutoplayBlocked");var W=this.D2().getVideoData();W&&(W.rr=!0);this.U("embeds_enable_autoplay_and_visibility_signals")&&g.Y3(this.zJ)&&(W={autoplayBrowserPolicy:pm(),autoplayIntended:GC(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.W8("embedsAutoplayStatusChanged",W))}; g.R.sIS=function(){this.Ii.publish("progresssync")}; g.R.U6i=function(){this.Ii.i7("onPlaybackPauseAtStart")}; g.R.M1J=function(W){if(this.getPresentingPlayerType()===1){g.Sa(W,1)&&!g.b(W.state,64)&&this.Kq().isLivePlayback&&this.zn().isAtLiveHead()&&this.Ii.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Sa(W,2)){if(this.u8&&this.u8.endTimeMs>=(this.getDuration()-1)*1E3){bwd(this);return}gCq(this)}if(g.b(W.state,128)){var Y=W.state;this.cancelPlayback(5);Y=Y.dc;JSON.stringify({errorData:Y,debugInfo:this.getDebugText(!0)});this.Ii.x8("onError",dg2(Y.errorCode));this.Ii.i7("onDetailedError",{errorCode:Y.errorCode, errorDetail:Y.errorDetail,message:Y.errorMessage,messageKey:Y.bI,cpn:Y.cpn});(0,g.q5)()-this.zJ.fN>6048E5&&this.Ii.i7("onReloadRequired")}Y={};if(W.state.isPlaying()&&!W.state.isBuffering()&&!sk("pbresume","ad_to_video")&&sk("_start","ad_to_video")){var k=this.getVideoData();Y.clientPlaybackNonce=k.clientPlaybackNonce;k.videoId&&(Y.videoId=k.videoId);g.Ek(Y,"ad_to_video");KS("pbresume",void 0,"ad_to_video");mp0(this.eL)}this.Ii.publish("applicationplayerstatechange",W)}}; g.R.r6=function(W){this.ud.sA||this.Ii.publish("presentingplayerstatechange",W)}; g.R.OA=function(W){GF(this,y8(W.state));g.b(W.state,1024)&&this.Ii.isMutedByMutedAutoplay()&&(mB(this,{muted:!1,volume:this.VH.volume},!1),DU(this,!1))}; g.R.onPlayerRequestSent=function(W){this.Ii.Ri("onPlayerRequestSent",W)}; g.R.mw=function(W,Y){W==="newdata"&&rFC(this);this.Ii.publish("applicationvideodatachange",W,Y)}; g.R.Pd6=function(W,Y){this.U("html5_afmt_change_update_volume")&&T45(this);this.Ii.i7("onPlaybackAudioChange",this.Ii.getAudioTrack().Ib.name);this.Ii.publish("internalaudioformatchange",this.Ii.getAudioTrack().Ib.id,Y)}; g.R.jI5=function(W){var Y=this.D2().getVideoData();W===Y&&this.Ii.x8("onPlaybackQualityChange",W.K.video.quality)}; g.R.X_=function(){var W=this.ud.J[2]||null;W&&(W=W.getVideoData(),this.D2().y5("ssdai",{cleanaply:1,acpn:W==null?void 0:W.clientPlaybackNonce,avid:W.videoId,isDai:this.Kq().enableServerStitchedDai?1:0}),delete this.ud.J[2])}; g.R.IY5=function(W,Y){this.qB(W,this.D2(),Y)}; g.R.qB=function(W,Y,k){this.logger.debug(function(){return"on video data change "+W+", player type "+Y.getPlayerType()+", vid "+k.videoId}); this.zJ.OR()&&Y.y5("vdc",{type:W,vid:k.videoId||"",cpn:k.clientPlaybackNonce||""});Y===this.zn()&&(this.zJ.u5=k.oauthToken);Y===this.zn()&&(this.getVideoData().enableServerStitchedDai&&!this.cz?(this.zn().y5("sdai",{initSstm:1}),this.cz=new g.Pz(this.Ii,this.zJ,this.zn(),this)):!this.getVideoData().enableServerStitchedDai&&this.cz&&(this.cz.dispose(),this.cz=null));if(W==="newdata")this.logger.debug("new video data, destroy modules"),gK(this.eL,2),this.Ii.publish("videoplayerreset",Y);else{if(!this.mediaElement)return; W==="dataloaded"&&(this.zn()===this.D2()?(u6(k.pg,k.Gk),oC5(this)):yFd(this));Y.getPlayerType()===1&&(this.zJ.OP&&B4z(this),this.getVideoData().isLivePlayback&&!this.zJ.cF&&this.A$("html5.unsupportedlive",2,"DEVICE_FALLBACK"),k.isLoaded()&&((yVC(k)||this.getVideoData().cF)&&this.Ii.publish("legacyadtrackingpingchange",this.getVideoData()),k.hasProgressBarBoundaries()&&xzv(this)));this.Ii.publish("videodatachange",W,k,Y.getPlayerType())}this.Ii.x8("onVideoDataChange",{type:W,playertype:Y.getPlayerType()}); this.IF();var P=k.AN;P?this.mf.Pn(P,k.clientPlaybackNonce):tT2(this.mf)}; g.R.yd=function(){rd(this,null);this.Ii.i7("onPlaylistUpdate")}; g.R.rT5=function(W){delete this.yW[W.getId()];this.zn().removeCueRange(W);a:{W=this.getVideoData();var Y,k,P,T,I,X,h,B,O,u,Z=((Y=W.OP)==null?void 0:(k=Y.contents)==null?void 0:(P=k.singleColumnWatchNextResults)==null?void 0:(T=P.autoplay)==null?void 0:(I=T.autoplay)==null?void 0:I.sets)||((X=W.OP)==null?void 0:(h=X.contents)==null?void 0:(B=h.twoColumnWatchNextResults)==null?void 0:(O=B.autoplay)==null?void 0:(u=O.autoplay)==null?void 0:u.sets);if(Z)for(Y=g.p(Z),k=Y.next();!k.done;k=Y.next())if(k= k.value,T=P=void 0,k=k.autoplayVideo||((P=k.autoplayVideoRenderer)==null?void 0:(T=P.autoplayEndpointRenderer)==null?void 0:T.endpoint),P=g.U(k,g.GW),I=T=void 0,k!=null&&((T=P)==null?void 0:T.videoId)===W.videoId&&((I=P)==null?0:I.continuePlayback)){W=k;break a}W=null}(Y=g.U(W,g.GW))&&this.Ii.Ri("onPlayVideo",{sessionData:{autonav:"1",itct:W==null?void 0:W.clickTrackingParams},videoId:Y.videoId,watchEndpoint:Y})}; g.R.IC=function(W){var Y=this;W!==this.appState&&(this.logger.debug(function(){return"app state change "+Y.appState+" -> "+W}),W===2&&this.getPresentingPlayerType()===1&&(GF(this,-1),GF(this,5)),this.appState=W,this.Ii.publish("appstatechange",W))}; g.R.A$=function(W,Y,k,P,T){this.zn().SW(W,Y,k,P,T)}; g.R.jF=Wd(13);g.R.isAtLiveHead=function(W,Y){Y=Y===void 0?!1:Y;var k=this.s1({playerType:W});if(!k)return this.ud.W.isAtLiveHead();W=Kf(this,k);k=E0(this,k);return W!==k?W.isAtLiveHead(wd(this,k.getCurrentTime(),k),!0):W.isAtLiveHead(void 0,Y)}; g.R.O3=function(){var W=this.s1({playerType:void 0});return W?Kf(this,W).O3():this.ud.W.O3()}; g.R.seekTo=function(W,Y,k,P,T,I){Y=Y!==!1;if(P=this.s1({playerType:P}))if(this.appState===2&&zF(this),this.Tj(P))Q9(this)?this.cz.seekTo(W,{seekSource:T},Y,k):this.Ha.seekTo(W,{seekSource:T},Y,k);else{this.U("html5_sabr_csdai_seek_log")||(I="");var X;P.seekTo(W,{eh:!Y,nz:k,Fi:"application"+((X=I)!=null?X:""),seekSource:T})}}; g.R.seekBy=function(W,Y,k,P){this.seekTo(this.getCurrentTime()+W,Y,k,P,void 0,"_by")}; g.R.Foz=function(){this.Ii.x8("SEEK_COMPLETE")}; g.R.Ko1=function(){this.Ii.Ri("onAbnormalityDetected")}; g.R.GWJ=function(W){this.Ii.Ri("onSnackbarMessage",W)}; g.R.HHJ=function(W){var Y=this.D2(),k=Y.getVideoData();if(this.appState===1||this.appState===2)k.startSeconds=W;this.appState===2?g.b(Y.getPlayerState(),512)||zF(this):this.Ii.x8("SEEK_TO",W)}; g.R.vqg=function(){this.Ii.publish("airplayactivechange")}; g.R.iH5=function(){this.Ii.publish("airplayavailabilitychange")}; g.R.showAirplayPicker=function(){this.D2().i4()}; g.R.JTz=function(){this.Ii.publish("beginseeking")}; g.R.TZ5=function(){this.Ii.publish("endseeking")}; g.R.getStoryboardFormat=function(W){return(W=this.s1({playerType:W}))?Kf(this,W).getStoryboardFormat():this.ud.W.getStoryboardFormat()}; g.R.T8=function(W){return(W=this.s1({playerType:W}))?Kf(this,W).getVideoData().T8():this.ud.W.T8()}; g.R.Tj=function(W){W=(W||this.D2()).getVideoData();if(Q9(this))W=W===this.cz.playback.getVideoData();else a:{var Y=this.Ha;if(W===Y.W.getVideoData()&&Y.K.length)W=!0;else{Y=g.p(Y.K);for(var k=Y.next();!k.done;k=Y.next())if(W.U1===k.value.U1){W=!0;break a}W=!1}}return W}; g.R.Oc=function(W,Y,k,P,T,I,X,h){this.logger.debug(function(){return"Adding video to timeline id="+W.video_id+"\n lengthMs="+P+" enterTimeMs="+T}); var B="",O=Q9(this);this.D2().y5("appattl",{sstm:this.cz?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:O});O?(k=O0q(this.cz,W,Y,k,P,T,I,X),B=(k==null?void 0:k.U1)||"",(this.U("html5_ssdai_new_decoration_logic")||this.zn().getVideoData().MR)&&this.zn().uZ(h||"",Y,(k==null?void 0:k.clientPlaybackNonce)||"")):B=cY6(this.Ha,W,k,P,T,I);this.logger.debug(function(){return"Video added to timeline id="+W.video_id+" timelinePlaybackId="+B}); return B}; g.R.yq=function(W,Y,k,P,T,I,X){if(Q9(this)){var h,B=(h=this.cz)==null?void 0:O0q(h,W,Y,k,P,T,I,X);this.logger.debug(function(){return"Remaining video added to timeline id="+W.video_id+" timelinePlaybackId="+((B==null?void 0:B.U1)||"")})}}; g.R.v9=function(W){(this.U("html5_ssdai_new_decoration_logic")||this.zn().getVideoData().MR)&&this.zn().uZ(W,"","");var Y;(Y=this.cz)==null||Y.v9(W)}; g.R.J4=function(W,Y){W=W===void 0?-1:W;Y=Y===void 0?Infinity:Y;Q9(this)||kEq(this.Ha,W,Y)}; g.R.bR=function(W,Y,k){if(Q9(this)){var P=this.cz,T=P.W.s1({U1:W});T?(k===void 0&&(k=T.vz),pYd(P,T,Y,k)):P.kJ("Invalid_timelinePlaybackId_"+W+"_specified")}else{P=this.Ha;T=null;for(var I=g.p(P.K),X=I.next();!X.done;X=I.next())if(X=X.value,X.U1===W){T=X;break}T?(k===void 0&&(k=T.vz),$z5(P,T,Y,k)):O0(P,"InvalidTimelinePlaybackId timelinePlaybackId="+W)}}; g.R.enqueueVideoByPlayerVars=function(W,Y,k,P){k=k===void 0?Infinity:k;P=P===void 0?"":P;this.Tj();W=new g.t6(this.zJ,W);P&&(W.U1=P);fLS(this,W,Y,k)}; g.R.queueNextVideo=function(W,Y,k,P,T){k=k===void 0?NaN:k;W=this.preloadVideoByPlayerVars(W,Y===void 0?1:Y,k,P===void 0?"":P,T===void 0?"":T);Y=this.D2();W&&(this.U("html5_check_queue_on_data_loaded")?this.V().supportsGaplessShorts()&&Y.getVideoData().G&&(k=this.Hh,P=this.gs.C,k.T!==W&&(k.K=Y,k.T=W,k.J=1,k.W=W.getVideoData(),k.C=P,k.W.isLoaded()?k.X():k.W.subscribe("dataloaded",k.X,k))):(k=KP2(Y,W,this.gs.C),k!=null?(Y.y5("sgap",k),Y.getVideoData().G&&Y.Xc(!1)):(W=W.getVideoData(),Y=this.Hh,Y.W!== W&&(Y.W=W,Y.J=1,W.isLoaded()?Y.G():Y.W.subscribe("dataloaded",Y.G,Y)))))}; g.R.hq=function(W,Y,k,P){var T=this;k=k===void 0?0:k;P=P===void 0?0:P;Kf(this,this.D2()).QW();FPd(this.gs,W,Y,k,P).then(function(){T.Ii.i7("onQueuedVideoLoaded")},function(){})}; g.R.g_=function(){return this.gs.g_()}; g.R.jo=function(W){var Y=this.gs.W;return Y?Y.yr(W):!1}; g.R.clearQueue=function(W,Y){W=W===void 0?!1:W;Y=Y===void 0?!1:Y;this.logger.debug("Clearing queue");this.gs.clearQueue(W,Y)}; g.R.loadVideoByPlayerVars=function(W,Y,k,P,T,I){Y=Y===void 0?1:Y;var X=this.zn();if(Y===2&&this.Kq().enableServerStitchedDai&&X&&!X.ri())return X.y5("lvonss",{vid:(W==null?void 0:W.videoId)||"",ptype:Y}),!1;var h=!1;X=new g.t6(this.zJ,W);X.YF=I;g.E9(this.zJ)&&!X.zv&&pO(this.C1);var B;I=this.C1;var O=(B=X.A5)!=null?B:"";I.timerName=O;this.C1.yC("pl_i");this.U("web_player_early_cpn")&&X.clientPlaybackNonce&&this.C1.infoGel({clientPlaybackNonce:X.clientPlaybackNonce});i1q(X).supportsVp9Encoding===!1&& this.D2().y5("noVp9enc",{});if(this.V().supportsGaplessShorts()){B=ysF(this.gs,X,Y);if(B==null){GF(this,-1);var u;((u=this.gs.W)==null?0:u.getVideoData().isAd())||y9(this);W=this.gs;W.app.V().U("html5_gapless_new_slr")?Fq(W.app,"gaplessshortslooprange"):W.app.setLoopRange(null);W.app.getVideoData().AS=!0;var Z;(Z=W.W)==null||Z.FX();var M;(M=W.W)==null||M.D0();k={Fi:"gapless_to_next_video",seekSource:60,ED:W.C.W};P=g.W2(W.app.V().experiments,"html5_gapless_seek_offset");T=Q$5(W);if(W.C.W){var t;X= ((t=W.J)==null?void 0:UA(t))||{};t=X.o4;X=X.vy;X!=null&&t!=null&&(T=X-t+.001)}var q;(q=W.app.D2())==null||q.seekTo(T+P,k);if(!W.app.getPlayerStateObject(Y).isPlaying()){var G;(G=W.app.D2())==null||G.playVideo(!0)}var J;(J=W.app.D2())==null||J.UY();W.G();return!0}q=this.U("html5_shorts_gapless_preload_fallback");G=this.gs.W;q&&G&&!G.Xr()&&(J=G.getVideoData(),this.ud.C.set(eX(Y,J),G,3600));this.gs.clearQueue(q);this.D2().y5("sgap",{f:B})}if(T){for(;X.Zr.length&&X.Zr[0].isExpired();)X.Zr.shift();q=X.Zr.length- 1;h=q>0&&T.K(X.Zr[q])&&T.K(X.Zr[q-1]);X.Zr.push(T)}k||(W&&jM7(W)?(RT(this.zJ)&&!this.XK&&(W.fetch=0),rd(this,W)):this.playlist&&rd(this,null),W&&(this.XK=xG(!1,W.external_list)));this.Ii.publish("loadvideo");q=this.b2(X,Y,P);h&&this.A$("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+X.Zr.join()).replace(/[;:,]/g,"_"));return q}; g.R.preloadVideoByPlayerVars=function(W,Y,k,P,T){Y=Y===void 0?1:Y;k=k===void 0?NaN:k;P=P===void 0?"":P;T=T===void 0?"":T;var I=N11(Y,W,T),X=this.ud.C.get(I)||null;if(X)return this.logger.debug(function(){return"already preloaded "+I}),X; W=new g.t6(this.zJ,W);T&&(W.U1=T);return VTd(this,W,Y,k,P)}; g.R.setMinimized=function(W){this.visibility.setMinimized(W);(W=FeF(this.eL))&&(this.isMinimized()?W.load():W.unload());this.Ii.publish("minimized")}; g.R.setInline=function(W){this.visibility.setInline(W)}; g.R.setInlinePreview=function(W){this.visibility.setInline(W)}; g.R.FT=function(W){Wtv(this,W)||this.visibility.FT(W)}; g.R.setSqueezeback=function(W){this.visibility.setSqueezeback(W)}; g.R.fb=function(){var W,Y=(W=this.mediaElement)==null?void 0:W.Tn();Y&&(this.zJ.qV&&C1(eP(function(){return document.exitFullscreen()}),function(){}),C1(eP(function(){return BO(Y)}),function(){}))}; g.R.C7S=function(){this.mediaElement.Tn();this.mediaElement.Tn().webkitPresentationMode==="picture-in-picture"?this.FT(!0):this.FT(!1)}; g.R.togglePictureInPicture=function(){this.D2().togglePictureInPicture()}; g.R.b2=function(W,Y,k){Y=Y===void 0?1:Y;this.logger.debug(function(){return"start load video, id "+W.videoId+", type "+Y}); sk("_start",this.C1.timerName)||g.LI(tw)(void 0,this.C1.timerName);var P=!1,T=LId(this,Y,W,!1);T?(P=!0,W.dispose()):(T=nf(this,Y,W,!0,k),(this.U("html5_onesie")||this.U("html5_load_before_stop"))&&T.L4()&&T.s$(),this.XX.stop(),Y===1&&Y!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,Y),this.gk(T));T===this.zn()&&(this.zJ.u5=W.oauthToken);if(!T.L4())return!1;if(T===this.zn())return this.IC(1),k=zF(this),P&&this.U("html5_player_preload_ad_fix")&&T.getPlayerType()===1&& T.T2()&&this.qB("dataloaded",T,T.getVideoData()),k;T.rY();return!0}; g.R.cueVideoByPlayerVars=function(W,Y){var k=this;Y=Y===void 0?1:Y;var P=this.zn();if(this.Kq().enableServerStitchedDai&&P&&!P.ri()&&W&&Object.keys(W).length>0)P.y5("qvonss",{vid:(W==null?void 0:W.videoId)||"",ptype:Y});else if(W&&jM7(W))if(this.EG=!0,rd(this,W),(W=g.G7(this.playlist))&&W.Nt())vz(this,W,Y);else this.playlist.onReady(function(){AT(k)}); else{Y||(Y=this.getPresentingPlayerType());Y===1&&this.yd();P=new g.t6(this.zJ,W);var T=g.Y3(this.zJ)&&!this.zJ.Kg&&Y===1&&!P.isAd()&&!P.jW;this.Ii.publish("cuevideo");T?(this.D2().getVideoData().loading=!0,uWv(P,W?W:{}).then(function(I){vz(k,I,Y)}),P.dispose()):vz(this,P,Y)}}; g.R.zq=function(W,Y,k,P,T,I,X){if(!W&&!k)throw Error("Playback source is invalid");if(k3(this.zJ)||g.OG(this.zJ))return Y=Y||{},Y.lact=Ml(),Y.vis=this.Ii.getVisibilityState(),this.Ii.Ri("onPlayVideo",{videoId:W,watchEndpoint:I,sessionData:Y,listId:k}),!1;PV2(this.C1);this.C1.reset();W={video_id:W};P&&(W.autoplay="1");P&&(W.autonav="1");I&&(W.player_params=I.playerParams);X&&(W.oauth_token=X);k?(W.list=k,this.loadPlaylist(W)):this.loadVideoByPlayerVars(W,1);return!0}; g.R.cuePlaylist=function(W,Y,k,P){this.EG=!0;Y85(this,W,Y,k,P)}; g.R.loadPlaylist=function(W,Y,k,P){this.EG=!1;Y85(this,W,Y,k,P)}; g.R.t3=function(){return this.Ii.isMutedByMutedAutoplay()?!1:this.ud.sA?!0:!(!this.playlist||!this.playlist.Gg())}; g.R.wT=Wd(5); g.R.nextVideo=function(W,Y){var k=g.Kz(this.zn().getVideoData());g.W1(this.Ii)&&k?this.zq(k.videoId,Y?k.wH:k.sessionData,k.playlistId,Y,void 0,k.XG||void 0):this.XK?this.Ii.i7("onPlaylistNext"):this.getPresentingPlayerType()===3?cV(this.eL).nextVideo():!this.playlist||RT(this.zJ)&&!this.Ii.isFullscreen()||(this.playlist.Gg(W)&&Sw7(this.playlist,Ia5(this.playlist)),this.playlist.loaded?(W=Y&&this.zJ.U("html5_player_autonav_logging"),Y&&this.Ii.publish("playlistautonextvideo"),this.b2(g.G7(this.playlist,void 0, Y,W),1)):this.EG=!1)}; g.R.previousVideo=function(W){this.XK?this.Ii.i7("onPlaylistPrevious"):this.getPresentingPlayerType()===3?cV(this.eL).My():!this.playlist||RT(this.zJ)&&!this.Ii.isFullscreen()||(this.playlist.EK(W)&&Sw7(this.playlist,XmC(this.playlist)),this.playlist.loaded?this.b2(g.G7(this.playlist),1):this.EG=!1)}; g.R.playVideoAt=function(W){this.XK?this.Ii.i7("onPlaylistIndex",W):this.playlist&&(this.playlist.loaded?this.b2(g.G7(this.playlist,W),1):this.EG=!1,Sw7(this.playlist,W))}; g.R.getPlaylist=function(){return this.playlist}; g.R.Zp=Wd(19);g.R.g0=function(W){this.Xa=g.Eo(this.Xa,function(I){return I.id!==W}); for(var Y=this.zn(),k=Y.R7(),P=0;P0&&(B=Math.floor(O/1E3))}B=Y?Y.sV:B;var u={AD_BLOCK:this.W++,AD_BREAK_LENGTH:B,AUTONAV_STATE:U0(this.player.V()),CA_TYPE:"image",CPN:h.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.O3()*1E3,LACT:Ml(),LIVE_INDEX:Y?this.J++:1,LIVE_TARGETING_CONTEXT:Y&&Y.context?Y.context:"",MIDROLL_POS:I? Math.round(I.start/1E3):0,MIDROLL_POS_MS:I?Math.round(I.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.ai().o3().height,P_W:this.player.ai().o3().width,YT_REMOTE:T?T.join(","):""},Z=kG($G);Object.keys(Z).forEach(function(t){Z[t]!=null&&(u[t.toUpperCase()]=Z[t].toString())}); k!==""&&(u.BISCOTTI_ID=k);k={};YG(W)&&(k.sts="20319",(Y=this.player.V().forcedExperiments)&&(k.forced_experiments=Y));var M=NC(g.K_(W,u),k);return M.split("?").length!==2?rg(Error("Invalid AdBreakInfo URL")):g.dV(this.player.V(),h==null?void 0:h.oauthToken).then(function(t){if(t&&Wy()){var q=P1();TT(q,t)}t=P.player.fn(q);q=DYv(P,M,u,h.isMdxPlayback,X);return g.mR(t,q,"/youtubei/v1/player/ad_break").then(function(G){return G})})}; l1.prototype.reset=function(){this.J=this.W=1};g.H(g20,l1); g20.prototype.K=function(W,Y,k){Y=Y===void 0?{}:Y;var P=Y.AR;var T=Y.BK;var I=Y.cueProcessedMs;k=k===void 0?"":k;Y=this.W;this.W++;var X=this.player.V().U("h5_disable_macro_substitution_in_get_ad_break")?W:Ft7(this,W,{AR:P,BK:T,cueProcessedMs:I},k,Y);if(X.split("?").length!==2)return Math.random()<.1&&g.Kx(Error("Invalid AdBreakInfo URL")),rg(Error("Invalid AdBreakInfo URL"));var h=this.player.getVideoData(1).isMdxPlayback,B=k;k=Jc1.exec(X);k=k!=null&&k.length>=2?k[1]:"";W=s65.test(X);var O=rc5.exec(X); O=O!=null&&O.length>=2?O[1]:"";var u=Acd.exec(X);u=u!=null&&u.length>=2&&!Number.isNaN(Number(u[1]))?Number(u[1]):1;var Z=z62.exec(X);Z=Z!=null&&Z.length>=2?Z[1]:"0";var M=O9(this.player.V().xf),t=g.lo(this.player.getVideoData(1).UP,!0);Hs7(this,t,X,B===""?"":B,this.player.V(),this.player.getVideoData(1));B={splay:!1,lactMilliseconds:String(Ml()),playerHeightPixels:Math.trunc(this.player.ai().o3().height),playerWidthPixels:Math.trunc(this.player.ai().o3().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20319,autonavState:U0(this.player.V())};if(h){h={};var q=this.player.V().RB;GrX(h,q?q.join(","):"")&&(B.mdxContext=h)}if(h=dYS.includes(M)?void 0:g.rn("PREF")){q=h.split(RegExp("[:&]"));for(var G=0,J=q.length;G1&&d[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}B.autoCaptionsDefaultOn=E2z(h)}X=mY2.exec(X);(X=X!=null&&X.length>=2?X[1]:"")&&O&&(t.user.credentialTransferTokens= [{token:X,scope:"VIDEO"}]);X={contentPlaybackContext:B};B=this.player.getVideoData(1).getGetAdBreakContext();h=this.player.getVideoData(1).clientPlaybackNonce;q=I!==void 0?Math.round(I).toString():void 0;G=(P==null?0:P.context)?P.context:void 0;J=0;I&&T&&!P&&(T=T.end-T.start,T>0&&(J=Math.floor(T/1E3)));P=(P=Math.trunc((P?P.sV:J)*1E3))?String(P):void 0;T=this.player.O3()*1E3;T=Number.isNaN(T)?0:Math.trunc(T);Y={adBlock:Y,params:k,breakIndex:u,breakPositionMs:Z,clientPlaybackNonce:h,topLevelDomain:M, isProxyAdTagRequest:W,context:t,overridePlaybackContext:X,cueProcessedMs:q,videoId:O?O:void 0,liveTargetingParams:G,breakLengthMs:P,driftFromHeadMs:T?String(T):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:B?B:void 0};return wt1(this,Y)};var bZK={pVS:"replaceUrlMacros",pHD:"onAboutThisAdPopupClosed",iaD:"executeCommand"};Q6V.prototype.Y$=function(){return"adPingingEndpoint"}; Q6V.prototype.XL=function(W,Y,k){n5i(this.sP.get(),W,Y,k)};yc5.prototype.Y$=function(){return"changeEngagementPanelVisibilityAction"}; yc5.prototype.XL=function(W){this.Y.Ri("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:W})};e66.prototype.Y$=function(){return"loggingUrls"}; e66.prototype.XL=function(W,Y,k){W=g.p(W);for(var P=W.next();!P.done;P=W.next())P=P.value,n5i(this.sP.get(),P.baseUrl,Y,k,P.attributionSrcMode)};g.H(v2d,g.e);g.H(cz,g.e);g.R=cz.prototype;g.R.addListener=function(W){this.listeners.push(W)}; g.R.removeListener=function(W){this.listeners=this.listeners.filter(function(Y){return Y!==W})}; g.R.fh=function(W,Y,k,P,T,I,X,h){if(W==="")PP("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(W!==this.W||k){this.W=W;this.Cg.get().fh(W,Y,k,P,T,I,X,h);this.qq.get().fh(W,Y,k,P,T,I,X,h);var B;(B=this.Va)==null||B.get().fh(W,Y,k,P,T,I,X,h);this.K.fh(W,Y,k,P,T,I,X,h);B=g.p(this.listeners);for(var O=B.next();!O.done;O=B.next())O.value.fh(W,Y,k,P,T,I,X,h)}else PP("Duplicate content video loaded signal")}; g.R.f_z=function(){this.W&&this.f7(this.W)}; g.R.f7=function(W){this.W=void 0;for(var Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.f7(W)};xq.prototype.Jq=function(W,Y,k,P,T){CId(this);this.C=!Y&&k===0;var I=this.Y.getVideoData(1),X=this.Y.getVideoData(2);I&&(this.contentCpn=I.clientPlaybackNonce,this.videoId=I.videoId,this.W=I.X);X&&(this.adCpn=X.clientPlaybackNonce,this.adVideoId=X.videoId,this.adFormat=X.adFormat);this.T=W;P<=0?(CId(this),this.C=!Y&&k===0):(this.actionType=this.C?Y?"unknown_type":"video_to_ad":Y?"ad_to_video":"ad_to_ad",this.videoStreamType=T?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.J=!0,sk("_start",this.actionType)&&lH7(this)))}; xq.prototype.reset=function(){return new xq(this.Y)};g.H(ff,g.e);ff.prototype.addCueRange=function(W,Y,k,P,T,I,X,h,B){I=I===void 0?3:I;X=X===void 0?1:X;this.W.has(W)?PP("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:W}):(W=new bsC(W,Y,k,P,I,h,B),this.W.set(W.id,{BK:W,listener:T,WH:X}),this.Y.Bz([W],X))}; ff.prototype.removeCueRange=function(W){var Y=this.W.get(W);Y?(this.Y.aB([Y.BK],Y.WH),this.W.delete(Y.BK.id)):PP("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:W})}; ff.prototype.onCueRangeEnter=function(W){if(this.W.has(W.id))this.W.get(W.id).listener.onCueRangeEnter(W.id)}; ff.prototype.onCueRangeExit=function(W){if(this.W.has(W.id))this.W.get(W.id).listener.onCueRangeExit(W.id)}; g.H(bsC,g.L6);V9.prototype.addPlayerResponseForAssociation=function(W){this.Y.addPlayerResponseForAssociation(W)};NT.prototype.G4=function(W){this.Y.G4(W)}; NT.prototype.ou=function(W){var Y=g.y0.apply(1,arguments);W==="onAdStart"||W==="onAdEnd"?this.Y.x8.apply(this.Y,[W].concat(g.ZX(Y))):this.Y.Ri.apply(this.Y,[W].concat(g.ZX(Y)))};aw.prototype.OU=function(W){return W&&Wm(this)};var TvQ=null;g.H(PFz,g.NR);PFz.prototype.nm=function(W){return this.W.hasOwnProperty(W)?this.W[W].nm():{}}; g.N6("ytads.bulleit.getVideoMetadata",function(W){return Y_().nm(W)}); g.N6("ytads.bulleit.triggerExternalActivityEvent",function(W,Y,k){var P=Y_();k=k1N(k);k!==null&&P.publish(k,{queryId:W,viewabilityString:Y})});g.R=$_.prototype;g.R.h$=function(W,Y){if(!this.W.has(W))return{};if(Y==="seek"){Y=!1;Y=Y===void 0?!1:Y;var k=Hl(Lj).dN(W,{});k?eD(k):Y&&(W=Hl(Lj).dJ(null,d2(),!1,W),W.DP=3,nQ2([W]));return{}}Y=IXc(Y);if(Y===null)return{};var P=this.Y.Ud();if(!P)return{};var T=this.Y.getPresentingPlayerType(!0);if((k=this.Y.getVideoData(T))==null||!k.isAd())return{};k={opt_adElement:P,opt_fullscreen:this.Cg.get().isFullscreen()};return nW5(Y,W,k)}; g.R.Ns=function(W,Y,k,P,T){this.W.has(W)&&(P<=0||T<=0||Hl(Lj).Ns(W,Y,k,P,T))}; g.R.qm=function(W){var Y;(Y=this.W.get(W.queryId))==null||Y.qm()}; g.R.Hb=function(W){var Y;(Y=this.W.get(W.queryId))==null||Y.Hb()}; g.R.GZ=function(W){var Y;(Y=this.W.get(W.queryId))==null||Y.GZ()}; g.R.XY=function(W){var Y;(Y=this.W.get(W.queryId))==null||Y.XY()}; g.R.FY=function(W){var Y;(Y=this.W.get(W.queryId))==null||Y.FY()};MzN.prototype.send=function(W,Y,k,P){try{tz$(this,W,Y,k,P===void 0?!1:P)}catch(T){}};g.H(q2j,MzN);RSj.prototype.send=function(W,Y,k,P){var T=!1;try{if(P==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||P==="ATTRIBUTION_SRC_MODE_XHR_OPTION")T=!0,W=IES(W);P=T;var I=g.I8(W);if(I[1]==="https")var X=W;else I[1]="https",X=j7("https",I[2],I[3],I[4],I[5],I[6],I[7]);var h=Iv7(X);I=[];var B=cU1(X)&&this.P6.get().Y.V().experiments.Nq("add_auth_headers_to_remarketing_google_dot_com_ping");if(YG(X)||B)I.push({headerType:"USER_AUTH"}),I.push({headerType:"PLUS_PAGE_ID"}),I.push({headerType:"VISITOR_ID"}),I.push({headerType:"EOM_VISITOR_ID"}), I.push({headerType:"AUTH_USER"}),I.push({headerType:"DATASYNC_ID"});this.W.send({baseUrl:X,scrubReferrer:h,headers:I},Y,k,P)}catch(O){}};IM.prototype.Tv=function(){return this.Y.Tv(1)};g.H(XW,g.e);g.R=XW.prototype;g.R.s3=function(){return this.Y.getVideoData(1).clientPlaybackNonce}; g.R.addListener=function(W){this.listeners.push(W)}; g.R.removeListener=function(W){this.listeners=this.listeners.filter(function(Y){return Y!==W})}; g.R.fh=function(){this.Fd.clear();this.ze=null;this.Dh.get().clear()}; g.R.f7=function(){}; g.R.B5h=function(W,Y,k,P,T){Y.videoId==="nPpU29QrbiU"&&this.Y.y5("ads_ssm_vdc_s",{pt:k,dvt:W});fR(this.P6.get())&&W!=="dataloaded"||rqp(this,Y,k);if(Wm(this.P6.get())&&W==="newdata"&&T!==void 0){W=this.s3();var I=Y.clientPlaybackNonce,X={};XP(this,"rte",(X.ec=I,X.xc=P==null?void 0:P.clientPlaybackNonce,X.tr=T,X.pt=k,X.ia=I!==W,X.ctp=I9(I),X));Y=Y.clientPlaybackNonce;P=P==null?void 0:P.clientPlaybackNonce;T=Aqc(T);if(T!==1)if(P!==void 0)for(k=g.p(this.listeners),W=k.next();!W.done;W=k.next())W.value.WO(P, Y,T);else PP("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:Y,transitionReason:String(T)});T=g.p(this.listeners);for(P=T.next();!P.done;P=T.next())P.value.z4(Y)}}; g.R.YVh=function(W,Y){W!==void 0&&(this.ze=W,Y===void 0?PP("Expected ad video start time on SS video changed"):this.Fd.set(W,Y));var k=this.Y.getPresentingPlayerType(!0),P=this.Y.getVideoData(k),T;W===void 0?T=null:T=this.Dh.get().W.get(W)||null;this.Y.getVideoData(1).y5("ads_ssvc",{pt:k,cpn:P==null?void 0:P.clientPlaybackNonce,crtt:this.Y.getCurrentTime(1,!1),atlh:this.Y.isAtLiveHead(),adstt:Y,pid:W,slid:T==null?void 0:T.layoutId});P?rqp(this,P,k):PP("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.Y.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:W})}; g.R.pF=function(W,Y){var k=W.author,P=W.clientPlaybackNonce,T=W.isListed,I=W.U1,X=W.title,h=W.ws,B=W.eA,O=W.isMdxPlayback,u=W.Mv,Z=W.mdxEnvironment,M=W.isAutonav,t=W.mT,q=W.zv,G=W.Rr,J=W.videoId||"",d=W.profilePicture||"",A=W.zC||"",F=W.xZ()||!1,y=W.Xj()||!1;W=W.dS||void 0;I=this.Dh.get().W.get(I)||{layoutId:null,slotId:null};var L=this.Y.getVideoData(1),V=L.t9();L=L.getPlayerResponse();Y=1E3*this.Y.getDuration(Y);var c=1E3*this.Y.getDuration(1),X7,Id,Sz=(L==null?void 0:(X7=L.playerConfig)==null? void 0:(Id=X7.daiConfig)==null?void 0:Id.enableDai)||!1,O2,$5;X7=(L==null?void 0:(O2=L.playerConfig)==null?void 0:($5=O2.daiConfig)==null?void 0:$5.enablePreroll)||!1;return Object.assign({},I,{videoId:J,author:k,clientPlaybackNonce:P,S_:Y,eS:c,daiEnabled:Sz,SR:X7,isListed:T,t9:V,profilePicture:d,title:X,zC:A,ws:h,eA:B,dS:W,isMdxPlayback:O,Mv:u,mdxEnvironment:Z,isAutonav:M,mT:t,zv:q,Rr:G,xZ:F,Xj:y})}; g.R.iz=function(){this.listeners.length=0;this.Kc=null;g.e.prototype.iz.call(this)};g.H(SA,g.e);g.R=SA.prototype;g.R.fh=function(){var W=this;Wm(this.P6.get())||(this.W=D5(function(){W.Y.Xr()||W.Y.sU("ad",1)}))}; g.R.f7=function(){}; g.R.addListener=function(W){this.listeners.push(W)}; g.R.removeListener=function(W){this.listeners=this.listeners.filter(function(Y){return Y!==W})}; g.R.Zk=function(){}; g.R.playVideo=function(){this.Y.playVideo()}; g.R.pauseVideo=function(){this.Y.pauseVideo()}; g.R.resumeVideo=function(W){this.bl(W)&&this.Y.playVideo()}; g.R.bl=function(W){return this.Y.getPlayerState(W)===2}; g.R.getCurrentTimeSec=function(W,Y,k){var P=this.qq.get().ze;if(W===2&&!Y&&P!==null)return Ow(this,P);F4(this.P6.get(),"html5_ssap_use_cpn_to_get_time")||(k=void 0);return k!==void 0?this.Y.getCurrentTime(W,Y,k):this.Y.getCurrentTime(W,Y)}; g.R.getVolume=function(){return this.Y.getVolume()}; g.R.isMuted=function(){return this.Y.isMuted()}; g.R.getPresentingPlayerType=function(){return this.Y.getPresentingPlayerType(!0)}; g.R.getPlayerState=function(W){return this.Y.getPlayerState(W)}; g.R.getGetAdBreakContext=function(){return this.Y.getGetAdBreakContext()}; g.R.isFullscreen=function(){return this.Y.isFullscreen()}; g.R.isAtLiveHead=function(){return this.Y.isAtLiveHead()}; g.R.xp=function(W){this.Y.xp(W)}; g.R.NZ5=function(){var W=this.Y.getPresentingPlayerType(!0),Y=this.getCurrentTimeSec(W,!1);if(W===2){W=g.p(this.listeners);for(var k=W.next();!k.done;k=W.next())k.value.DJ(Y)}else if(W===1)for(W=g.p(this.Ne),k=W.next();!k.done;k=W.next())k.value.Zk(Y)}; g.R.tj1=function(W){for(var Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.Dg(W,this.getPresentingPlayerType())}; g.R.onFullscreenToggled=function(W){for(var Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.onFullscreenToggled(W)}; g.R.onVolumeChange=function(){for(var W=g.p(this.listeners),Y=W.next();!Y.done;Y=W.next())Y.value.onVolumeChange()}; g.R.XI=function(){for(var W=this.Y.isMinimized(),Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.XI(W)}; g.R.D6=function(W){for(var Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.D6(W)}; g.R.Rb=function(){for(var W=this.Y.ai().o3(),Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.yb(W)}; g.R.Z6=function(W){for(var Y=g.p(this.listeners),k=Y.next();!k.done;k=Y.next())k.value.Z6(W)}; g.R.Bl=function(){for(var W=g.p(this.listeners),Y=W.next();!Y.done;Y=W.next())Y.value.Bl()};g.H(D6Q,g.e);g.H(iV,g.e);iV.prototype.iz=function(){this.eN.Xr()||this.eN.get().removeListener(this);g.e.prototype.iz.call(this)};Mp.prototype.fetch=function(W){var Y=W.F2;return this.W.fetch(W.xD,{AR:W.AR===void 0?void 0:W.AR,BK:Y,cueProcessedMs:W.cueProcessedMs===void 0?0:W.cueProcessedMs}).then(function(k){return g5z(k,Y)})};g.H(ty,g.e);g.R=ty.prototype;g.R.addListener=function(W){this.listeners.push(W)}; g.R.removeListener=function(W){this.listeners=this.listeners.filter(function(Y){return Y!==W})}; g.R.eZ=function(W){FVw(this,W,1)}; g.R.onAdUxClicked=function(W,Y){qp(this,function(k){k.pu(W,Y)})}; g.R.Ge=function(W){qp(this,function(Y){Y.hx(W)})}; g.R.q$=function(W){qp(this,function(Y){Y.Lm(W)})}; g.R.bgq=function(W){qp(this,function(Y){Y.aH(W)})};RM.prototype.reduce=function(W){switch(W.event){case "unknown":return}var Y=W.identifier;var k=this.W[Y];k?Y=k:(k={lx:null,Gy:-Infinity},Y=this.W[Y]=k);k=W.startSecs+W.W/1E3;if(!(k=this.W.startSecs&&k.startSecs<=this.W.startSecs+this.W.sV)){var P=void 0;if(Ve(this.P6.get())&&k.identifier!==((P=this.W)==null?void 0:P.identifier)){var T=P=void 0,I=void 0,X=void 0;AA(this.sP.get(),"ocud","ccpi."+k.identifier+";ccpe."+k.event+";ccps."+k.startSecs+";\n ccpd."+k.sV+";pcpi."+((P=this.W)==null?void 0:P.identifier)+ ";pcpe."+((T=this.W)==null?void 0:T.event)+";\n pcps."+((I=this.W)==null?void 0:I.startSecs)+";pcpd."+((X=this.W)==null?void 0:X.sV)+";")}P=void 0;k.identifier!==((P=this.W)==null?void 0:P.identifier)&&PP("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.W=k,yqc(this,k)}}; g.R.iz=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.Dk,this),this.K=null);this.listeners.length=0;this.lG.length=0;g.e.prototype.iz.call(this)};g.R=pg.prototype;g.R.Oc=function(W,Y,k,P,T,I,X,h){return this.Y.Oc(W,Y,k,P,T,I,X,h)}; g.R.J4=function(W,Y){this.Y.J4(W,Y)}; g.R.bR=function(W,Y,k){this.Y.bR(W,Y,k)}; g.R.v9=function(W){this.Y.v9(W)}; g.R.yq=function(W,Y,k,P,T,I,X,h){this.Y.yq(W,Y,k,P,T,I,X,h)}; g.R.E0=function(W){return this.Y.E0(W)}; g.R.finishSegmentByCpn=function(W,Y,k){k=v5c(k);this.Y.finishSegmentByCpn(W,Y,k)};g.H(GI,g.e);g.H(LVz,g.e);g.H(U6j,g.e);g.H(lXB,g.e);g.H(bCc,g.e);g.H(cqQ,g.e);g.H(fXh,g.e);fXh.prototype.J=function(){return this.K};g.H(Vz1,wH); Vz1.prototype.J=function(W){var Y=W.content;if(Y.componentType==="shopping-companion")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.Ri("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId,shoppingCompanionCarouselRenderer:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.W,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:this.W.Ri("updateKevlarOrC3Companion",{})}else if(Y.componentType==="action-companion")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1); this.W.Ri("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId,actionCompanionAdRenderer:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.W,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y.renderer&&(Y=this.W.getVideoData(1),this.W.Ri("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId})),this.W.Ri("updateKevlarOrC3Companion",{})}else if(Y.componentType==="image-companion")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.Ri("updateKevlarOrC3Companion", {contentVideoId:W&&W.videoId,imageCompanionAdRenderer:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.W,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y=this.W.getVideoData(1),this.W.Ri("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId}),this.W.Ri("updateKevlarOrC3Companion",{})}else if(Y.componentType==="top-banner-image-text-icon-buttoned")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.Ri("updateKevlarOrC3Companion", {contentVideoId:W&&W.videoId,topBannerImageTextIconButtonedLayoutViewModel:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.W,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y.renderer&&(Y=this.W.getVideoData(1),this.W.Ri("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId})),this.W.Ri("updateKevlarOrC3Companion",{})}else if(Y.componentType==="banner-image")switch(W.actionType){case 1:case 2:W=this.W.getVideoData(1);this.W.Ri("updateKevlarOrC3Companion", {contentVideoId:W&&W.videoId,bannerImageLayoutViewModel:Y.renderer,layoutId:Y.layoutId,macros:Y.macros,onLayoutVisibleCallback:Y.W,interactionLoggingClientData:Y.interactionLoggingClientData});break;case 3:Y=this.W.getVideoData(1),this.W.Ri("updateKevlarOrC3Companion",{contentVideoId:Y&&Y.videoId}),this.W.Ri("updateKevlarOrC3Companion",{})}else if(Y.componentType==="ads-engagement-panel")switch(Y=Y.renderer,W.actionType){case 1:case 2:this.W.Ri("updateEngagementPanelAction",Y.addAction);this.W.Ri("changeEngagementPanelVisibility", Y.expandAction);break;case 3:this.W.Ri("changeEngagementPanelVisibility",Y.hideAction),this.W.Ri("updateEngagementPanelAction",Y.removeAction)}else if(Y.componentType==="ads-engagement-panel-layout"){var k=Y.renderer;switch(W.actionType){case 1:case 2:this.W.Ri("updateEngagementPanelAction",{action:rj(k.addAction),layoutId:Y.layoutId,onLayoutVisibleCallback:Y.W,interactionLoggingClientData:Y.interactionLoggingClientData});this.W.Ri("changeEngagementPanelVisibility",rj(k.expandAction));break;case 3:this.W.Ri("changeEngagementPanelVisibility", rj(k.hideAction)),this.W.Ri("updateEngagementPanelAction",{action:rj(k.removeAction)})}}};g.H(Nvc,UZ);g.R=Nvc.prototype;g.R.init=function(W,Y,k){UZ.prototype.init.call(this,W,Y,k);g.CX(this.J,"stroke-dasharray","0 "+this.K);this.J.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.T.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){bd(this);UZ.prototype.hide.call(this)}; g.R.show=function(){ld(this);UZ.prototype.show.call(this)}; g.R.Vy=function(){this.hide()}; g.R.RS=function(){if(this.W){var W=this.W.getProgressState();W!=null&&W.current!=null&&g.CX(this.J,"stroke-dasharray",W.current/W.seekableEnd*this.K+" "+this.K)}};g.H(aXj,PM);g.R=aXj.prototype; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);if(Y.image&&Y.image.thumbnail)if(Y.headline)if(Y.description)if(Y.backgroundImage&&Y.backgroundImage.thumbnail)if(Y.actionButton&&g.U(Y.actionButton,g.hV))if(W=Y.durationMilliseconds||0,typeof W!=="number"||W<=0)g.GH(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+W));else if(Y.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null){var T=Y.image.thumbnail.thumbnails;T!=null&& T.length>0&&g.zm(g.z6(T[0].url))&&(T[0].url=P.profilePicture,g.zm(g.z6(P.profilePicture))&&v1V("VideoPlayer",239976093,"Expected non-empty profile picture."));T=Y.backgroundImage.thumbnail.thumbnails;T!=null&&T.length>0&&g.zm(g.z6(T[0].url))&&(T[0].url=P.Ss());T=Y.headline;T!=null&&g.zm(g.z6(T.text))&&(T.text=P.author)}this.N.init(fx("ad-image"),Y.image,k);this.C.init(fx("ad-text"),Y.headline,k);this.J.init(fx("ad-text"),Y.description,k);this.GJ.init(fx("ad-image"),Y.backgroundImage,k);P=["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.C.element.classList.add("ytp-ad-action-interstitial-headline-light");this.J.element.classList.add("ytp-ad-action-interstitial-description-light");P.push("ytp-ad-action-interstitial-action-button-dark");this.api.V().K&&(P.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),P.push("ytp-ad-action-interstitial-action-button-dark"));this.api.V().U("enable_unified_action_endcap_on_web")&& !this.api.V().K&&(P.push("ytp-ad-action-interstitial-action-button-unified"),this.Q5.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.bz.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Qt.classList.add("ytp-ad-action-interstitial-card-unified"),this.Kg.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.TJ.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.UP.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Fr.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new EZ(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,P);g.v(this,this.actionButton);this.actionButton.S1(this.Q5); this.actionButton.init(fx("button"),g.U(Y.actionButton,g.hV),k);QB(this.actionButton.element);P=o2(this.actionButton.element);eS(this.actionButton.element,P+" This link opens in new tab");this.navigationEndpoint=Y.navigationEndpoint;this.T.Z(this.UP,"click",this.aj,this);this.T.Z(this.Kg,"click",this.aj,this);!this.api.V().U("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.V().K||this.T.Z(this.TJ,"click",this.aj,this);this.W=this.rh?new My(this.api,W):new td(W);g.v(this,this.W);if(Y.skipButton){(W= g.U(Y.skipButton,I5h))&&this.W&&(this.skipButton=new hd(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.W,this.aF),g.v(this,this.skipButton),this.skipButton.S1(this.element),this.skipButton.init(fx("skip-button"),W,k));if(k=Y.adBadgeRenderer)if(k=g.U(k,j_w))W=new ZO(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0,!0),W.S1(this.Fr),W.init(fx("simple-ad-badge"),k,this.macros),g.v(this,W);if(k=Y.adInfoRenderer)if(k=g.U(k,Xx))W=new vM(this.api,this.layoutId,this.interactionLoggingClientData, this.B6,this.element,void 0,!0),W.S1(this.Fr),W.init(fx("ad-info-hover-text-button"),k,this.macros),g.v(this,W)}else Y.nonskippableOverlayRenderer&&(W=g.U(Y.nonskippableOverlayRenderer,Sm))&&this.W&&(this.K=new fU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.W,!1),g.v(this,this.K),this.K.S1(this.element),this.K.init(fx("ad-preview"),W,k));Y.countdownRenderer&&(Y=Y.countdownRenderer,g.U(Y,XL1)&&this.W&&(k=new Nvc(this.api,this.layoutId,this.interactionLoggingClientData,this.B6, this.W),g.v(this,k),k.S1(this.element),k.init(fx("timed-pie-countdown"),g.U(Y,XL1),this.macros)));this.show();this.element.focus()}else g.GH(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.GH(Error("AdActionInterstitialRenderer has no button."));else g.GH(Error("AdActionInterstitialRenderer has no background AdImage."));else g.GH(Error("AdActionInterstitialRenderer has no description AdText."));else g.GH(Error("AdActionInterstitialRenderer has no headline AdText."));else g.GH(Error("AdActionInterstitialRenderer has no image."))}; g.R.clear=function(){g.ne(this.T);this.hide()}; g.R.show=function(){W1N(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();PM.prototype.show.call(this)}; g.R.hide=function(){W1N(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();PM.prototype.hide.call(this)}; g.R.aj=function(){this.navigationEndpoint&&(this.layoutId?this.B6.executeCommand(this.navigationEndpoint,this.layoutId):g.GH(Error("Missing layoutId for ad action interstitial.")))};var TBQ={iconType:"CLOSE"},rb=new g.UF(320,63);g.H(PQB,PM);g.R=PQB.prototype; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);this.T=Y;this.N=g.zK(this.T.onClickCommands||[]);this.Fr=this.T.onErrorCommand||null;if(W=this.T.contentSupportedRenderer)W=this.T.contentSupportedRenderer,Y=this.T.adInfoRenderer||null,g.U(W,kaN)?(this.C=g.I_("ytp-ad-overlay-ad-info-button-container",this.J.element),jjQ(this,Y),W=Xpz(this,g.U(W,kaN))):g.U(W,Pmw)?(this.C=g.I_("ytp-ad-overlay-ad-info-button-container",this.K.element),jjQ(this,Y),W=SKj(this,g.U(W,Pmw))):g.U(W,Ts$)?(this.C= g.I_("ytp-ad-overlay-ad-info-button-container",this.W.element),jjQ(this,Y),W=h9h(this,g.U(W,Ts$))):(g.GH(Error("InvideoOverlayAdRenderer content could not be initialized.")),W=!1);W&&(this.show(),BB$(this,!0))}; g.R.clear=function(){BB$(this,!1);this.UP.reset();this.Kg=0;this.J.hide();this.logVisibility(this.J.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.hide();this.dispose()}; g.R.ISa=function(){this.Q5&&(this.layoutId?this.B6.executeCommand(this.Q5,this.layoutId):g.GH(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.R.jQ=function(){a:{if(this.T&&this.T.closeButton&&this.T.closeButton.buttonRenderer){var W=this.T.closeButton.buttonRenderer;if(W.serviceEndpoint){W=[W.serviceEndpoint];break a}}W=[]}W=g.p(W);for(var Y=W.next();!Y.done;Y=W.next())Y=Y.value,this.layoutId?this.B6.executeCommand(Y,this.layoutId):g.GH(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.R.RSi=function(){this.GJ||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.R.PW=function(){this.GJ||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.PW("invideo-overlay")}; g.R.NDh=function(W){W.target===this.C&&g.I_("ytp-ad-button",this.bz.element).click()};g.H(O$c,UZ);g.R=O$c.prototype;g.R.init=function(W,Y,k){UZ.prototype.init.call(this,W,Y,k);W=Y.durationMs;this.J=W==null||W===0?0:W+this.W.getProgressState().current*1E3;if(Y.text)var P=Y.text.templatedAdText;else Y.staticMessage&&(P=Y.staticMessage);this.messageText.init(fx("ad-text"),P,k);this.messageText.S1(this.K.element);this.T.show(100);this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){uzQ(this,!1);UZ.prototype.hide.call(this);this.K.hide();this.messageText.hide();bd(this)}; g.R.show=function(){uzQ(this,!0);UZ.prototype.show.call(this);ld(this);this.K.show();this.messageText.show()}; g.R.Vy=function(){this.hide()}; g.R.RS=function(){if(this.W!=null){var W=this.W.getProgressState();W!=null&&W.current!=null&&(W=1E3*W.current,!this.Kg&&W>=this.J?(this.T.hide(),this.Kg=!0):this.messageText&&this.messageText.isTemplated()&&(W=Math.max(0,Math.ceil((this.J-W)/1E3)),W!==this.C&&(LU(this.messageText,{TIME_REMAINING:String(W)}),this.C=W)))}};g.H(Z$N,PM);g.R=Z$N.prototype; g.R.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,{});Y.image&&Y.image.thumbnail?Y.headline?Y.description?Y.actionButton&&g.U(Y.actionButton,g.hV)?(this.J.init(fx("ad-image"),Y.image,k),this.K.init(fx("ad-text"),Y.headline,k),this.T.init(fx("ad-text"),Y.description,k),this.actionButton=new EZ(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,["ytp-ad-underlay-action-button"]),Y.backgroundColor&&g.CX(this.element,"background-color",g.ms(Y.backgroundColor)),g.v(this,this.actionButton), this.actionButton.S1(this.C),this.actionButton.init(fx("button"),g.U(Y.actionButton,g.hV),k),W=g.W2(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().U("place_shrunken_video_on_left_of_player")?(Y=this.W,g.YN(Y,"ytp-ad-underlay-left-container"),g.a2(Y,"ytp-ad-underlay-right-container"),g.CX(this.W,"margin-left",Math.round((W+.02)*100)+"%")):(Y=this.W,g.YN(Y,"ytp-ad-underlay-right-container"),g.a2(Y,"ytp-ad-underlay-left-container")),g.CX(this.W,"width",Math.round((1-W- .04)*100)+"%"),this.api.FJ()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.J8.bind(this)),this.api.addEventListener("resize",this.wj.bind(this))):g.GH(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.GH(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.GH(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.GH(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.R.show=function(){i$1(!0);this.actionButton&&this.actionButton.show();PM.prototype.show.call(this)}; g.R.hide=function(){i$1(!1);this.actionButton&&this.actionButton.hide();PM.prototype.hide.call(this)}; g.R.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.J8.bind(this));this.api.removeEventListener("resize",this.wj.bind(this));this.hide()}; g.R.onClick=function(W){PM.prototype.onClick.call(this,W);this.actionButton&&g.R_(this.actionButton.element,W.target)&&this.api.pauseVideo()}; g.R.J8=function(W){W==="transitioning"?(this.W.classList.remove("ytp-ad-underlay-clickable"),this.show()):W==="visible"?this.W.classList.add("ytp-ad-underlay-clickable"):W==="hidden"&&(this.hide(),this.W.classList.remove("ytp-ad-underlay-clickable"))}; g.R.wj=function(W){W.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):W.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.CX(this.K.element,"font-size",W.width/40+"px")};g.H(Ay,PM); Ay.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);Y.toggledLoggingParams&&(this.toggledLoggingParams=Y.toggledLoggingParams);Y.answer&&g.U(Y.answer,g.hV)?(W=new EZ(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),W.S1(this.answer),W.init(fx("ytp-ad-survey-answer-button"),g.U(Y.answer,g.hV),k),W.show()):Y.answer&&g.U(Y.answer,EO)&&(this.W=new gH(this.api,this.layoutId,this.interactionLoggingClientData,this.B6, ["ytp-ad-survey-answer-toggle-button"]),this.W.S1(this.answer),g.v(this,this.W),this.W.init(fx("survey-answer-button"),g.U(Y.answer,EO),k));this.show()}; Ay.prototype.yV=function(W){this.layoutId?mF(this.B6,W,this.layoutId,this.macros):(W=new g.Qq("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.GH(W))}; Ay.prototype.onClick=function(W){PM.prototype.onClick.call(this,W);if(this.api.V().U("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Ay.prototype.clear=function(){this.hide()};g.H(Mwz,PM);Mwz.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);Y.answer&&g.U(Y.answer,EO)&&(this.button=new gH(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.S1(this.W),this.button.init(fx("survey-none-of-the-above-button"),g.U(Y.answer,EO),k));this.show()};g.H(zI,EZ);zI.prototype.init=function(W,Y,k){EZ.prototype.init.call(this,W,Y,k);W=!1;Y.text&&(Y=g.jy(Y.text),W=!g.zm(Y));W||g.Kx(Error("No submit text was present in the renderer."))}; zI.prototype.onClick=function(W){this.publish("l");EZ.prototype.onClick.call(this,W)};g.H(db,PM); db.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);if(W=Y.skipOrPreviewRenderer)g.U(W,Fi)?(W=g.U(W,Fi),k=new OI(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.T,!0),k.S1(this.skipOrPreview),k.init(fx("skip-button"),W,this.macros),g.v(this,k),this.W=k):g.U(W,Sm)&&(W=g.U(W,Sm),k=new fU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.T,!1),k.S1(this.skipOrPreview),k.init(fx("ad-preview"),W,this.macros),k.Kg.show(100),k.show(),g.v(this,k), this.W=k);this.W==null&&(W=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(Y)),g.GH(W));Y.submitButton&&(W=Y.submitButton,g.U(W,g.hV)&&(W=g.U(W,g.hV),k=new zI(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),k.S1(this.submitButton),k.init(fx("survey-submit"),W,this.macros),g.v(this,k),this.K=k));if(W=Y.adBadgeRenderer)W=g.U(W,j_w),k=new ZO(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0,!0,!0),k.S1(this.J),k.init(fx("simple-ad-badge"), W,this.macros),this.adBadge=k.element,g.v(this,k);if(W=Y.adDurationRemaining)W=g.U(W,WTz),k=new HP(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.T,void 0,!0),k.S1(this.J),k.init(fx("ad-duration-remaining"),W,this.macros),g.v(this,k);(Y=Y.adInfoRenderer)&&g.U(Y,Xx)&&(W=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.element,void 0,!0),g.v(this,W),this.adBadge!==void 0?this.J.insertBefore(W.element,this.adBadge.nextSibling):W.S1(this.J),W.init(fx("ad-info-hover-text-button"), g.U(Y,Xx),this.macros));this.show()}; db.prototype.clear=function(){this.hide()};g.H(me,PM);me.prototype.init=function(W,Y,k){PM.prototype.init.call(this,W,Y,k);nhw(this)}; me.prototype.show=function(){this.J=Date.now();PM.prototype.show.call(this)}; me.prototype.Qu=function(){};g.H(pp1,me);g.R=pp1.prototype;g.R.init=function(W,Y,k){var P=this;me.prototype.init.call(this,W,Y,k);Y.questionText&&tw9(this,Y.questionText);Y.answers&&Y.answers.forEach(function(T,I){g.U(T,Gk)&&qKK(P,g.U(T,Gk),k,I)}); this.C=new Set(this.K.map(function(T){return T.W.W})); (W=Y.noneOfTheAbove)&&(W=g.U(W,$BN))&&GK$(this,W,k);Y.surveyAdQuestionCommon&&H$z(this,Y.surveyAdQuestionCommon);Y.submitEndpoints&&(this.submitEndpoints=Y.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.R.Qu=function(){K1w(this,!1);this.T.K.subscribe("l",this.Gr2,this)}; g.R.onChange=function(W){W.target===this.noneOfTheAbove.button.W?Eh9(this):this.C.has(W.target)&&(this.noneOfTheAbove.button.toggleButton(!1),K1w(this,!0))}; g.R.Gr2=function(){var W=[],Y=this.K.reduce(function(T,I,X){var h=I.toggledLoggingParams;I.W&&I.W.isToggled()&&h&&(T.push(h),W.push(X));return T},[]).join("&"),k=this.submitEndpoints.map(function(T){if(!T.loggingUrls)return T; T=g.MS(T);T.loggingUrls=T.loggingUrls.map(function(I){I.baseUrl&&(I.baseUrl=tb(I.baseUrl,Y));return I}); return T}); if(k){k=g.p(k);for(var P=k.next();!P.done;P=k.next())P=P.value,this.layoutId?mF(this.B6,P,this.layoutId,this.macros):g.GH(Error("Missing layoutId for multi_select_question."))}this.api.V().U("supports_multi_step_on_desktop")&&this.Kg(W)}; g.R.clear=function(){this.api.V().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.H(Da,me);Da.prototype.init=function(W,Y,k){var P=this;me.prototype.init.call(this,W,Y,k);Y.questionText&&tw9(this,Y.questionText);Y.answers&&Y.answers.forEach(function(T,I){g.U(T,Gk)&&qKK(P,g.U(T,Gk),k,I)}); Y.surveyAdQuestionCommon?H$z(this,Y.surveyAdQuestionCommon):ak(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(Y)));this.show()}; Da.prototype.clear=function(){this.api.V().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.H(gb,PM);gb.prototype.init=function(W,Y,k){var P=this;PM.prototype.init.call(this,W,Y,k);if(this.api.V().U("supports_multi_step_on_desktop")){var T;this.conditioningRules=(T=Y.conditioningRules)!=null?T:[];var I;this.K=(I=Y.questions)!=null?I:[];var X;((X=Y.questions)==null?0:X.length)&&ANj(this,0)}else(Y.questions||[]).forEach(function(h){g.U(h,jm)?sj1(P,g.U(h,jm),k):g.U(h,Tv)&&rNQ(P,g.U(h,Tv),k)}); this.show()}; gb.prototype.clear=function(){this.api.V().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; gb.prototype.T=function(W){var Y=this;if(this.api.V().U("supports_multi_step_on_desktop")){var k;if((k=this.conditioningRules)==null?0:k.length){var P;if(W.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(T){return T.questionIndex===Y.W})==null)g.GH(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(T){if(T.questionIndex===Y.W)switch(T.condition){case "CONDITION_ALL_OF":var I;if((I=T.answerIndices)==null?0:I.every(function(h){return W.includes(h)}))P=T.nextQuestionIndex; break;case "CONDITION_ANY_OF":var X;if((X=T.answerIndices)==null?0:X.some(function(h){return W.includes(h)}))P=T.nextQuestionIndex; break;default:g.GH(Error("Expected specified condition in survey conditioning rules."))}}),P!=null)ANj(this,P); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.GH(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.H(FW,PM); FW.prototype.init=function(W,Y,k){var P=this;PM.prototype.init.call(this,W,Y,k);W=Y.timeoutSeconds||0;if(typeof W!=="number"||W<0)g.GH(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+W));else if(Y.timeoutCommands)if(Y.text)if(Y.ctaButton&&g.U(Y.ctaButton,g.hV))if(Y.brandImage)if(Y.backgroundImage&&g.U(Y.backgroundImage,Bb)&&g.U(Y.backgroundImage,Bb).landscape){this.layoutId||g.GH(Error("Missing layoutId for survey interstitial."));z9z(this.interstitial,g.U(Y.backgroundImage, Bb).landscape);z9z(this.logoImage,Y.brandImage);g.HL(this.text,g.jy(Y.text));var T=["ytp-ad-survey-interstitial-action-button"];T.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new EZ(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,T);g.v(this,this.actionButton);this.actionButton.S1(this.K);this.actionButton.init(fx("button"),g.U(Y.ctaButton,g.hV),k);this.actionButton.show();this.W=new My(this.api,W*1E3);this.W.subscribe("g",function(){P.transition.hide()}); g.v(this,this.W);this.Z(this.element,"click",function(I){var X=I.target===P.interstitial;I=P.actionButton.element.contains(I.target);if(X||I)if(P.transition.hide(),X)P.api.onAdUxClicked(P.componentType,P.layoutId)}); this.transition.show(100)}else g.GH(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.GH(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.GH(Error("SurveyTextInterstitialRenderer has no button."));else g.GH(Error("SurveyTextInterstitialRenderer has no text."));else g.GH(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; FW.prototype.clear=function(){this.hide()}; FW.prototype.show=function(){dc$(!0);PM.prototype.show.call(this)}; FW.prototype.hide=function(){dc$(!1);PM.prototype.hide.call(this)};g.H(wb,UZ);g.R=wb.prototype; g.R.init=function(W,Y){UZ.prototype.init.call(this,W,Y,{});if(Y.durationMilliseconds){if(Y.durationMilliseconds<0){g.GH(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+Y.durationMilliseconds));return}this.K=Y.durationMilliseconds}else this.K=this.W.YG();var k;if((k=Y.previewText)==null||!k.text||g.zm(Y.previewText.text))g.GH(Error("No text is returned for AdPreview."));else{this.C=Y.previewText;Y.previewText.isTemplated||g.HL(this.J,Y.previewText.text);var P; if(((P=this.api.getVideoData(1))==null?0:P.vu)&&Y.previewImage){var T,I;(W=((I=uB(((T=Y.previewImage)==null?void 0:T.sources)||[],52,!1))==null?void 0:I.url)||"")&&W.length?(this.previewImage=new g.kZ({S:"img",j:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",W),g.v(this,this.previewImage),this.previewImage.S1(this.element)):g.GH(Error("Failed to get imageUrl in AdPreview."))}else this.J.classList.add("ytp-preview-ad__text--padding--wide")}}; g.R.clear=function(){this.hide()}; g.R.hide=function(){bd(this);UZ.prototype.hide.call(this)}; g.R.show=function(){ld(this);UZ.prototype.show.call(this)}; g.R.Vy=function(){this.hide()}; g.R.RS=function(){if(this.W){var W=this.W.getProgressState();if(W!=null&&W.current)if(W=1E3*W.current,W>=this.K)this.transition.hide();else{var Y;if((Y=this.C)==null?0:Y.isTemplated)if(Y=Math.max(0,Math.ceil((this.K-W)/1E3)),Y!==this.T){var k,P;(W=(k=this.C)==null?void 0:(P=k.text)==null?void 0:P.replace("{TIME_REMAINING}",String(Y)))&&g.HL(this.J,W);this.T=Y}}}};g.H(QU,PM); QU.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});var k,P;if((W=((P=uB(((k=Y.image)==null?void 0:k.sources)||[],mcB(Y),!0))==null?void 0:P.url)||"")&&W.length){k=this.J5("ytp-ad-avatar");k.src=W;var T,I;if(P=(T=Y.interaction)==null?void 0:(I=T.accessibility)==null?void 0:I.label)k.alt=P;switch(Y.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(Y.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.GH(Error("Failed to get imageUrl in AdAvatar."))}; QU.prototype.clear=function(){this.hide()}; QU.prototype.onClick=function(W){PM.prototype.onClick.call(this,W)};g.H(yU,PM); yU.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});var k;W=(k=Y.label)==null?void 0:k.content;if((k=W!=null&&!g.zm(W))||Y.iconImage){k&&(this.buttonText=new g.kZ({S:"span",j:"ytp-ad-button-vm__text",v6:W}),g.v(this,this.buttonText),this.buttonText.S1(this.element));var P,T,I=((P=Y.interaction)==null?0:(T=P.accessibility)==null?0:T.label)||k?W:"";I&&eS(this.element,I+" This link opens in new tab");QB(this.element);if(Y.iconImage){P=void 0;if(Y.iconImage){a:{T=Y.iconImage;if(T.sources)for(T= g.p(T.sources),W=T.next();!W.done;W=T.next())if(W=W.value,I=void 0,(I=W.clientResource)==null?0:I.imageName){T=W;break a}T=void 0}if(T){var X;P={iconType:(X=T.clientResource)==null?void 0:X.imageName}}}X=KU(P,!1,this.K);X!=null&&(this.buttonIcon=new g.kZ({S:"span",j:"ytp-ad-button-vm__icon",B:[X]}),g.v(this,this.buttonIcon),Y.iconLeading?(tv(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):k?(this.buttonIcon.S1(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.S1(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(Y.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.U("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.W?"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(Y.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.Kx(Error("AdButton does not have label or an icon."))}; yU.prototype.clear=function(){this.hide()}; yU.prototype.onClick=function(W){PM.prototype.onClick.call(this,W)};g.H(Dcc,UZ);g.R=Dcc.prototype; g.R.init=function(W,Y){UZ.prototype.init.call(this,W,Y,{});if(W=g.U(Y.avatar,cm)){var k=Y.headline;if(k){var P=Y.description;if(P){var T=g.U(Y.button,fg);T?(this.adAvatar.init(fx("ad-avatar"),W),this.headline.init(fx("ad-simple-attributed-string"),new pi(k)),this.description.init(fx("ad-simple-attributed-string"),new pi(P)),k.content&&k.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(fx("ad-button"),T), this.startMilliseconds=Y.startMs||0,this.api.FJ()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.pD.bind(this)),ld(this)):g.GH(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.GH(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.GH(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.GH(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.R.RS=function(){if(this.W){var W=this.W.getProgressState();W&&W.current&&1E3*W.current>=this.startMilliseconds&&(bd(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.R.Vy=function(){this.clear()}; g.R.onClick=function(W){this.api.pauseVideo();UZ.prototype.onClick.call(this,W)}; g.R.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.pD.bind(this))}; g.R.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();UZ.prototype.show.call(this)}; g.R.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();UZ.prototype.hide.call(this)}; g.R.pD=function(W){W==="hidden"?this.show():this.hide()};g.H(eA,PM);g.R=eA.prototype; g.R.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(!Y.label||g.zm(Y.label))g.GH(Error("No label is returned for SkipAdButton."));else if(g.HL(this.T,Y.label),W=KU({iconType:"SKIP_NEXT_NEW"}),W==null)g.GH(Error("Unable to retrieve icon for SkipAdButton"));else if(this.J=new g.kZ({S:"span",j:"ytp-skip-ad-button__icon",B:[W]}),g.v(this,this.J),this.J.S1(this.element),this.api.V().experiments.Nq("enable_skip_to_next_messaging")&&(Y=g.z6(Y.targetId)))this.K=!0,this.element.setAttribute("data-tooltip-target-id",Y), this.element.setAttribute("data-tooltip-target-fixed","")}; g.R.onClick=function(W){W&&W.preventDefault();var Y,k;PNz(W,{contentCpn:(k=(Y=this.api.getVideoData(1))==null?void 0:Y.clientPlaybackNonce)!=null?k:""})===0?this.api.Ri("onAbnormalityDetected"):(PM.prototype.onClick.call(this,W),this.api.Ri("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.R.clear=function(){this.W.reset();this.hide()}; g.R.hide=function(){PM.prototype.hide.call(this)}; g.R.show=function(){this.W.start();PM.prototype.show.call(this);this.K&&this.api.V().experiments.Nq("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.H(ghp,UZ);g.R=ghp.prototype; g.R.init=function(W,Y){UZ.prototype.init.call(this,W,Y,{});W=g.U(Y.preskipState,iX1);var k;if((k=this.api.getVideoData())==null?0:k.isDaiEnabled()){if(!W){g.GH(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new wb(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.W);g.v(this,this.K);this.K.S1(this.element);var P;(P=this.K)==null||P.init(fx("preview-ad"),W);(k=this.K)!=null&&(k.transition.show(100),k.show())}(k=g.U(Y.skippableState,th9))?(Y.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=Y.skipOffsetMilliseconds:(g.Kx(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.J.init(fx("skip-button"),k),this.show()):g.GH(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.R.show=function(){ld(this);UZ.prototype.show.call(this)}; g.R.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.J&&this.J.hide();bd(this);UZ.prototype.hide.call(this)}; g.R.clear=function(){var W;(W=this.K)==null||W.clear();this.J&&this.J.clear();bd(this);UZ.prototype.hide.call(this)}; g.R.Vy=function(){this.hide()}; g.R.RS=function(){if(1E3*this.W.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var W;(W=this.K)!=null&&W.transition.hide();(W=this.J)!=null&&(W.transition.show(),W.show())}};g.H(oM,PM); oM.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(Y.label){var k;((k=Y.label)==null?0:k.content)&&!g.zm(Y.label.content)&&(this.linkText=new g.kZ({S:"span",j:"ytp-visit-advertiser-link__text",v6:Y.label.content}),g.v(this,this.linkText),this.linkText.S1(this.element));var P,T;if((P=Y.interaction)==null?0:(T=P.accessibility)==null?0:T.label)eS(this.element,Y.interaction.accessibility.label+" This link opens in new tab");else{var I;((I=Y.label)==null?0:I.content)&&!g.zm(Y.label.content)&&eS(this.element, Y.label.content+" This link opens in new tab")}QB(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.GH(Error("No label found in VisitAdvertiserLink."))}; oM.prototype.onClick=function(W){PM.prototype.onClick.call(this,W);this.api.onAdUxClicked(this.componentType,this.layoutId)}; oM.prototype.clear=function(){this.hide()};g.H(vm,PM); vm.prototype.init=function(W,Y,k,P){PM.prototype.init.call(this,W,Y,{});if(Y.skipOrPreview){k=Y.skipOrPreview;W=g.U(k,qh1);k=g.U(k,iX1);if(W)this.U$=new ghp(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K),g.v(this,this.U$),this.U$.S1(this.N),this.U$.init(fx("skip-ad"),W);else{var T;k&&((T=this.api.getVideoData())==null?0:T.isDaiEnabled())&&(this.T=new wb(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K,1),g.v(this,this.T),this.T.S1(this.N),this.T.init(fx("ad-preview"), k),T=this.T,T.transition.show(100),T.show())}if(T=g.U(Y.skipOrPreview,qh1))var I=T.skipOffsetMilliseconds}Y.playerAdCard&&(T=g.U(Y.playerAdCard,Mhj))&&(this.playerAdCard=new Dcc(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K),g.v(this,this.playerAdCard),this.playerAdCard.S1(this.TJ),this.playerAdCard.init(fx("ad-avatar-lockup-card"),T));Y.adBadgeRenderer&&((T=g.U(Y.adBadgeRenderer,x_))?(this.J=new Ki(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0),g.v(this, this.J),this.J.S1(this.W),this.J.init(fx("ad-badge"),T)):g.GH(Error("AdBadgeViewModel is not found in player overlay layout.")));Y.adPodIndex&&(T=g.U(Y.adPodIndex,Bs$))&&(this.adPodIndex=new EI(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.adPodIndex),this.adPodIndex.S1(this.W),this.adPodIndex.init(fx("ad-pod-index"),T));Y.adInfoRenderer&&((T=g.U(Y.adInfoRenderer,Xx))?(this.adInfoButton=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.element, void 0,!0),g.v(this,this.adInfoButton),this.J!==void 0?this.W.insertBefore(this.adInfoButton.element,this.J.element.nextSibling):this.adInfoButton.S1(this.W),this.adInfoButton.init(fx("ad-info-hover-text-button"),T,this.macros)):g.Kx(Error("AdInfoRenderer is not found in player overlay layout.")));var X;T=(X=this.api.getVideoData())==null?void 0:X.isDaiEnabled();Y.adDurationRemaining&&T&&(X=g.U(Y.adDurationRemaining,WTz))&&(this.adDurationRemaining=new HP(this.api,this.layoutId,this.interactionLoggingClientData, this.B6,this.K,P.videoAdDurationSeconds,!0),g.v(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.W.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.S1(this.W),this.adDurationRemaining.init(fx("ad-duration-remaining"),X,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));Y.visitAdvertiserLink&&(P=g.U(Y.visitAdvertiserLink,HXh))&&(this.visitAdvertiserLink=new oM(this.api,this.layoutId, this.interactionLoggingClientData,this.B6),g.v(this,this.visitAdvertiserLink),this.visitAdvertiserLink.S1(this.W),this.visitAdvertiserLink.init(fx("visit-advertiser-link"),P));Y.adDisclosureBanner&&(Y=g.U(Y.adDisclosureBanner,hrh))&&(this.adDisclosureBanner=new Jd(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.adDisclosureBanner),this.adDisclosureBanner.S1(this.Kg),this.adDisclosureBanner.init(fx("ad-disclosure-banner"),Y));this.C=new Ad(this.api,this.K,I,!0);g.v(this, this.C);g.aR(this.api,this.C.element,4);this.show()}; vm.prototype.clear=function(){this.hide()};g.H(F1K,PM);g.R=F1K.prototype; g.R.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(Y!=null&&Y.title)if(W=Y.title)if(this.headline.init(fx("ad-simple-attributed-string"),new pi(W)),W=g.U(Y.moreInfoButton,fg)){if(this.moreInfoButton.init(fx("ad-button"),W),Y.descriptions)Y.descriptions.length>0&&(W=Y.descriptions[0])&&(this.W=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.W),this.W.S1(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.W.init(fx("ad-simple-attributed-string"), new pi(W))),Y.descriptions.length>1&&(Y=Y.descriptions[1])&&(this.K=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.K),this.K.S1(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(fx("ad-simple-attributed-string"),new pi(Y)))}else g.GH(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.GH(Error("No headline found in AdGridCardText."));else g.GH(Error("No headline found in AdGridCardText."))}; g.R.onClick=function(W){PM.prototype.onClick.call(this,W);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.R.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var W;(W=this.W)==null||W.clear();var Y;(Y=this.K)==null||Y.clear()}; g.R.hide=function(){this.headline.hide();this.moreInfoButton.hide();var W;(W=this.W)==null||W.hide();var Y;(Y=this.K)==null||Y.hide();PM.prototype.hide.call(this)}; g.R.show=function(){PM.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var W;(W=this.W)==null||W.show();var Y;(Y=this.K)==null||Y.show()};g.H(Cg,PM);Cg.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(Y!=null&&Y.gridCards)if(Y.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.GH(Error("Only single column style is currently supported in AdGridCardCollection."));else for(W=g.p(Y.gridCards),Y=W.next();!Y.done;Y=W.next()){if(Y=g.U(Y.value,ZXz)){var k=new F1K(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,k);k.S1(this.element);k.init(fx("ad-grid-card-text"),Y);this.W.push(k)}}else g.GH(Error("No grid cards found in AdGridCardCollection."))}; Cg.prototype.show=function(){for(var W=g.p(this.W),Y=W.next();!Y.done;Y=W.next())Y.value.show();PM.prototype.show.call(this)}; Cg.prototype.clear=function(){this.hide();for(var W=g.p(this.W),Y=W.next();!Y.done;Y=W.next())Y.value.clear()}; Cg.prototype.hide=function(){for(var W=g.p(this.W),Y=W.next();!Y.done;Y=W.next())Y.value.hide();PM.prototype.hide.call(this)};g.H(Lg,UZ);g.R=Lg.prototype;g.R.init=function(W,Y,k,P,T){T=T===void 0?0:T;UZ.prototype.init.call(this,W,Y,k,P);this.playerProgressOffsetMs=T;ld(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.kC.bind(this));this.api.addEventListener("resize",this.Tm.bind(this));this.api.FJ()?(this.K=!0,this.api.xp(!0),this.show()):this.hide()}; g.R.RS=function(){if(this.W){var W=this.W.getProgressState();W&&W.current&&!this.K&&1E3*W.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.xp(!0),this.show())}}; g.R.Vy=function(){this.K&&this.api.xp(!1);this.hide()}; g.R.clear=function(){this.api.xp(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.kC.bind(this));this.api.removeEventListener("resize",this.Tm.bind(this));bd(this);this.hide()}; g.R.hide=function(){wpc(!1);UZ.prototype.hide.call(this)}; g.R.show=function(){wpc(!0);UZ.prototype.show.call(this)};g.H(Qjp,Lg);g.R=Qjp.prototype; g.R.init=function(W,Y,k,P){if(Y!=null&&Y.adGridCardCollection)if(Y!=null&&Y.adButton){var T=Number(Y.playerProgressOffsetMs||"0");isNaN(T)?Lg.prototype.init.call(this,W,Y,k,P):Lg.prototype.init.call(this,W,Y,k,P,T);W=Y.headline;k=g.U(Y.adAvatar,cm);W&&k?(this.headline=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.headline),this.headline.S1(this.J5("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(fx("ad-simple-attributed-string"),new pi(W)), this.adAvatar=new QU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.adAvatar),this.adAvatar.S1(this.J5("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(fx("ad-avatar"),k)):this.T.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");W=g.U(Y.adGridCardCollection,uGK);this.adGridCardCollection.init(fx("ad-grid-card-collection"),W);Y=g.U(Y.adButton,fg);this.adButton.init(fx("ad-button"),Y); this.hide()}else g.GH(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.GH(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.R.onClick=function(W){(this.adButton&&g.R_(this.adButton.element,W.target)||this.adAvatar&&g.R_(this.adAvatar.element,W.target))&&this.api.pauseVideo();Lg.prototype.onClick.call(this,W);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.R.Tm=function(){}; g.R.clear=function(){this.hide();var W;(W=this.headline)==null||W.clear();var Y;(Y=this.adAvatar)==null||Y.clear();this.adGridCardCollection.clear();this.adButton.clear();Lg.prototype.clear.call(this)}; g.R.show=function(){var W;(W=this.headline)==null||W.show();var Y;(Y=this.adAvatar)==null||Y.show();this.adGridCardCollection.show();this.adButton.show();Lg.prototype.show.call(this)}; g.R.hide=function(){var W;(W=this.headline)==null||W.hide();var Y;(Y=this.adAvatar)==null||Y.hide();this.adGridCardCollection.hide();this.adButton.hide();Lg.prototype.hide.call(this)}; g.R.kC=function(W){W==="transitioning"?(this.J.classList.remove("ytp-ad-underlay-clickable"),this.show()):W==="visible"?this.J.classList.add("ytp-ad-underlay-clickable"):W==="hidden"&&(this.hide(),this.J.classList.remove("ytp-ad-underlay-clickable"))};g.H(Uw,PM); Uw.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(Y.attributes===void 0)g.GH(Error("No attributes found in AdDetailsLineViewModel."));else if(Y.style===void 0)g.GH(Error("No style found in AdDetailsLineViewModel."));else{W=g.p(Y.attributes);for(var k=W.next();!k.done;k=W.next())if(k=k.value,k.text!==void 0){k=k.text;var P=Y.style,T=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,T);T.S1(this.element);a:switch(P){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":P="ytp-ad-details-line__text--style-responsive"; break a;default:P="ytp-ad-details-line__text--style-standard"}T.element.classList.add(P);T.init(fx("ad-simple-attributed-string"),new pi(k));this.W.push(T)}this.show()}}; Uw.prototype.show=function(){this.W.forEach(function(W){W.show()}); PM.prototype.show.call(this)}; Uw.prototype.clear=function(){this.hide()}; Uw.prototype.hide=function(){this.W.forEach(function(W){W.hide()}); PM.prototype.hide.call(this)};g.H(lV,PM);lV.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});var k,P;(W=((P=uB(((k=Y.image)==null?void 0:k.sources)||[]))==null?void 0:P.url)||"")&&W.length?(k=this.J5("ytp-image-background-image"),g.CX(k,"backgroundImage","url("+W+")"),Y.blurLevel!==void 0&&g.CX(k,"filter","blur("+Y.blurLevel+"px)"),Y.gradient!==void 0&&(Y=new g.l({S:"div",Ya:["ytp-image-background--gradient-vertical"]}),g.v(this,Y),Y.S1(this.element)),this.show()):g.GH(Error("Failed to get imageUrl in ImageBackground."))}; lV.prototype.clear=function(){this.hide()};g.H(yNw,UZ);g.R=yNw.prototype;g.R.init=function(W,Y){UZ.prototype.init.call(this,W,Y,{});g.CX(this.J,"stroke-dasharray","0 "+this.K);this.show()}; g.R.clear=function(){this.hide()}; g.R.hide=function(){bd(this);UZ.prototype.hide.call(this)}; g.R.show=function(){ld(this);UZ.prototype.show.call(this)}; g.R.Vy=function(){this.hide()}; g.R.RS=function(){if(this.W){var W=this.W.getProgressState();W!=null&&W.current!=null&&g.CX(this.J,"stroke-dasharray",W.current/W.seekableEnd*this.K+" "+this.K)}};g.H(bV,PM); bV.prototype.init=function(W,Y){PM.prototype.init.call(this,W,Y,{});if(ohK(Y)){this.adAvatar=new QU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.adAvatar);this.adAvatar.S1(this.J5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(fx("ad-avatar"),g.U(Y.adAvatar,cm));this.headline=new G4(this.api,this.layoutId,this.interactionLoggingClientData,this.B6);g.v(this,this.headline);this.headline.S1(this.J5("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(fx("ad-simple-attributed-string"),new pi(Y.headline));if(W=g.U(Y.adDetailsLine,Shw))this.detailsLine=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.detailsLine),this.detailsLine.S1(this.J5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(fx("ad-details-line"),W);this.adButton=new yU(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0);g.v(this,this.adButton); this.adButton.S1(this.J5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(fx("ad-button"),g.U(Y.adButton,fg));this.adBadge=new Ki(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,!0);g.v(this,this.adBadge);this.adBadge.S1(this.T);this.adBadge.init(fx("ad-badge"),g.U(Y.adBadge,x_));this.adInfoButton=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.element,void 0,!0);g.v(this,this.adInfoButton);this.adInfoButton.S1(this.T); this.adInfoButton.init(fx("ad-info-hover-text-button"),g.U(Y.adInfoRenderer,Xx),this.macros);if(W=g.U(Y.skipAdButton,th9))this.skipAdButton=new eA(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.skipAdButton),this.skipAdButton.S1(this.element),this.skipAdButton.init(fx("skip-button"),W);this.K=new td(Y.durationMilliseconds);g.v(this,this.K);if(W=g.U(Y.countdownViewModel,RrN))this.W=new yNw(this.api,this.layoutId,this.interactionLoggingClientData,this.B6,this.K),g.v(this, this.W),this.W.S1(this.J5("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.W.init(fx("timed-pie-countdown"),W);if(Y=g.U(Y.imageBackground,OXh))this.imageBackground=new lV(this.api,this.layoutId,this.interactionLoggingClientData,this.B6),g.v(this,this.imageBackground),this.imageBackground.S1(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(fx("image-background"), Y);this.show();this.element.focus()}}; bV.prototype.clear=function(){g.ne(this.J);this.hide()}; bV.prototype.show=function(){e9$(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();PM.prototype.show.call(this)}; bV.prototype.hide=function(){e9$(!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.W&&this.W.hide();this.imageBackground&&this.imageBackground.hide();PM.prototype.hide.call(this)};g.H(VU,g.NR);g.R=VU.prototype;g.R.YG=function(){return 1E3*this.api.getDuration(this.WH,!1)}; g.R.stop=function(){this.W&&this.handler.nH(this.W)}; g.R.Xi=function(){var W=this.api.getProgressState(this.WH);this.K={seekableStart:W.seekableStart,seekableEnd:W.seekableEnd,current:this.api.getCurrentTime(this.WH,!1)};this.publish("h")}; g.R.getProgressState=function(){return this.K}; g.R.VF=function(W){g.Sa(W,2)&&this.publish("g")};var cC1="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.H(Np,wH); Np.prototype.J=function(W){var Y=W.id,k=W.content,P=k.componentType;if(!cC1.includes(P))switch(W.actionType){case 1:W=this.api;var T=this.B6,I=k.layoutId,X=k.interactionLoggingClientData,h=k instanceof g5?k.rh:!1,B=k instanceof g5||k instanceof io?k.aF:!1;X=X===void 0?{}:X;h=h===void 0?!1:h;B=B===void 0?!1:B;switch(P){case "invideo-overlay":W=new PQB(W,I,X,T);break;case "player-overlay":W=new z4(W,I,X,T,new VU(W),B);break;case "player-overlay-layout":W=new vm(W,I,X,T,new VU(W));break;case "survey":W= new gb(W,I,X,T);break;case "ad-action-interstitial":W=new aXj(W,I,X,T,h,B);break;case "video-interstitial-buttoned-centered":W=new bV(W,I,X,T);break;case "survey-interstitial":W=new FW(W,I,X,T);break;case "ad-message":W=new O$c(W,I,X,T,new VU(W,1));break;case "player-underlay":W=new Z$N(W,I,X,T);break;case "display-underlay-text-grid-cards":W=new Qjp(W,I,X,T,new VU(W));break;default:W=null}if(!W){g.Kx(Error("No UI component returned from ComponentFactory for type: "+P));break}g.SV(this.components, Y)?g.Kx(Error("Ad UI component already registered: "+Y)):this.components[Y]=W;W.bind(k);k instanceof mN?this.K?this.K.append(W.TI):g.Kx(Error("Underlay view was not created but UnderlayRenderer was created")):this.T.append(W.TI);break;case 2:Y=vhK(this,W);if(Y==null)break;Y.bind(k);break;case 3:k=vhK(this,W),k!=null&&(g.Wu(k),g.SV(this.components,Y)?(k=this.components,Y in k&&delete k[Y]):g.Kx(Error("Ad UI component does not exist: "+Y)))}}; Np.prototype.iz=function(){g.Yn(Object.values(this.components));this.components={};wH.prototype.iz.call(this)};g.H(CQj,g.JJ);g.R=CQj.prototype;g.R.create=function(){try{L1K(this),this.load(),this.created=!0,L1K(this)}catch(W){PP(W instanceof Error?W:String(W))}}; g.R.load=function(){try{b$j(this)}finally{Wm(Ew(this.W).tj)&&this.player.sU("ad",1)}}; g.R.destroy=function(){var W=this.player.getVideoData(1);this.W.W.mV.f7(W&&W.clientPlaybackNonce||"");this.unload();this.created=!1}; g.R.unload=function(){g.JJ.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(Y){PP(Y instanceof Error?Y:String(Y))}if(this.K!=null){var W=this.K;this.K=null;W.dispose()}this.J.reset()}; g.R.bE=function(){return!1}; g.R.getAdState=function(){return-1}; g.R.getOptions=function(){return Object.values(bZK)}; g.R.Kn=function(W,Y){Y=Y===void 0?{}:Y;switch(W){case "replaceUrlMacros":return W=Y,W.url?(Y=Bv$(this.player),Object.assign(Y,W.tFz),W=g.K_(W.url,Y)):W=null,W;case "onAboutThisAdPopupClosed":this.oC(Y);break;case "executeCommand":W=Y;W.command&&W.layoutId&&this.executeCommand(W);break;default:return null}}; g.R.SF=function(W){var Y;return!((Y=this.W.W.Va)==null||!Y.get().SF(W))}; g.R.oC=function(W){W.isMuted&&sBF(Ew(this.W).Zd,Ew(this.W).Lr,W.layoutId);this.QR&&this.QR.oC()}; g.R.executeCommand=function(W){Ew(this.W).B6.executeCommand(W.command,W.layoutId)};g.N6("yt.player.Application.create",g.Hz.create);g.N6("yt.player.Application.createAlternate",g.Hz.create);wy7(Rs(),l$w);var xvw=g.Wp("ytcsi.tick");xvw&&xvw("pe");g.EX("ad",CQj);g.H(g.YP,g.e);g.YP.prototype.start=function(W,Y,k){this.config={from:W,to:Y,duration:k,startTime:(0,g.q5)()};this.next()}; g.YP.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.YP.prototype.next=function(){if(this.config){var W=this.config,Y=W.from,k=W.to,P=W.duration;W=W.startTime;var T=(0,g.q5)()-W;W=this.W;P=CpS(W,T/P);if(P==0)W=W.G;else if(P==1)W=W.L;else{T=vZ(W.G,W.C,P);var I=vZ(W.C,W.X,P);W=vZ(W.X,W.L,P);T=vZ(T,I,P);I=vZ(I,W,P);W=vZ(T,I,P)}W=g.ee(W,0,1);this.callback(Y+(k-Y)*W);W<1&&this.delay.start()}};g.H(g.$P,g.l);g.R=g.$P.prototype;g.R.hasSuggestions=function(){return this.suggestionData.length>0}; g.R.rl=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.R.show=function(){g.l.prototype.show.call(this);acj(this)}; g.R.RU=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.R.I0=function(){this.Rb(this.api.ai().getPlayerSize())}; g.R.Rb=function(W){var Y=this.api.isEmbedsShortsMode()?.5625:16/9,k=this.api.U6();W=W.width-(k?112:58);k=Math.ceil(W/(k?320:192));var P=(W-k*8)/k;Y=Math.floor(P/Y);for(var T=g.p(this.W),I=T.next();!I.done;I=T.next())I=I.value.J5("ytp-suggestion-image"),I.style.width=P+"px",I.style.height=Y+"px";this.suggestions.element.style.height=Y+"px";this.T=P;this.G=Y;this.containerWidth=W;this.columns=k;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.kP(this)}; g.R.onVideoDataChange=function(){var W=this.api.V(),Y=this.api.getVideoData();this.C=Y.zr?!1:W.T;this.suggestionData=Y.suggestions?g.Eo(Y.suggestions,function(k){return k&&!k.playlistId}):[]; YxB(this);Y.zr?this.title.update({title:g.ky("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:Y.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.R.scrollTo=function(W){W=g.ee(W,this.containerWidth-this.suggestionData.length*(this.T+8),0);this.X.start(this.scrollPosition,W,1E3);this.scrollPosition=W;g.kP(this);acj(this)};})(_yt_player);