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 G="undefined;;:;D;length;cmo=;https://local;reverse;Untrusted URL;scheme;fromCharCode;toString;/videoplayback;url;B;path;startsWith;set;youtube.player.web_20250624_21_RC00;assign;KyKLQZGfxfoqJ4B1-H-_w8_;cmo=pf;rr;Qo;s;K;//;cmo;push;split;\\.googlevideo\\.com$;indexOf;signatureCipher;replace;/initplayback;=;rJ;local;&;/;splice;join;match;clone;fallback_count;unshift;forEach;1;,},](;%3D;prototype;playerfallback;L;get;file;n;slice;/api/manifest;r;://;index.m3u8;1970-01-01T11:45:05.000+11:45;1970-01-01T11:00:48.000+11:00;1970-01-01T02:01:00.000+02:00;/file/index.m3u8;hT;rr?[1-9].*\\.c\\.youtube\\.com$;1970-01-01T02:46:15.000+02:45;cmo=td;function;www.youtube.com;http://local;,;mn;sp;pow;\\.a1\\.googlevideo\\.com$;zr;iI;pop;?;redirector.googlevideo.com;fvip;x9;a1.googlevideo.com;bk;---".split(";"), Jf,F2i,hO_,rL,aTL,MBm,sm,vL2,p_,gLi,kL,Qn,$L,Af,GIg,IT_,og,Xi,i_I,n_,wiL,dL,zI,ELi,tf,l7,DT,Vn,Um,BLi,C_,au,rf7,sgm,pii,Ev,kI_,Qga,r7,$aL,Af2,k7,NL_,H_B,ou,L2O,ze,TLm,yf_,d7,qmn,fT_,jgi,Z_g,Wh,al,b_g,SmO,gd,ER,O_L,Q5,$m,AX,xm,NJ,HV,Xif,LM,TD,y5,eOL,uin,fM,da_,b_,OR,PV,zD,tX,l_,P7m,zOm,D7,UR,V5,K2B,tBL,lTn,DaL,Uai,WV,Ra,Fw,h7,aa,Mk,vZ,RUf,Ia,wU,EW,BZ,rU,sW,ph,F4I,kN,QT,xN,at_,JG7,M6B,Nk,Lh,Tq,fh,jW,bu,SW,B7I,rGL,Yv_,sug,OW,ph_,m3,oa,Xw,ke7,eW,Qun,AGi,PZ,Kh,D$,UW,Ch,Hgi,N72,fti,yGg,ZgO,hR,aG,GL,m4i, Xh2,o7i,iX,E$,eUB,ws,kT,WZ,uki,n72,TL,xT,cZ,d4i,yH,fb,qS,P9B,Z2,zUi,Su,O$,mO,oG,XW,eu,nb,ds,P4,lX,D2,Cb,t6g,D4f,ltI,V6L,U47,aP,Jt,Mx,cGO,v_,W4B,IP,i1,wC,FBB,ham,MPm,a7_,vmf,iM7,EQ,I7L,gmL,B_,rC,wVi,Yz,Em7,sQ,rXg,Bd_,YRm,slL,$z,At,pVO,kDa,Qlm,xz,Nx,$Jf,HM_,H_,LBB,Tdn,ZMn,qx,jl_,yXO,SR_,omO,jY,b1,OQ,SY,XVT,mu,oP,XJ,u1,dC,P_,K1,zaf,tt,KBO,Dh,UQ,VPB,Fj,a1,MI,UJa,Jx,C_T,cXg,vX,hx,gR,Gr,WBn,I1,wR,F3I,En,BX,rR,J7a,Ax,MWm,vN_,gNL,GqO,$i,QK,Yi,hAa,a$a,I$m,wZg,EN7,BUL,HX,Lr,Tr,r7i,fr,Zf,bx,SX,YWg,pZm,m9,kqO, ux,Xj,NUB,PX,dR,Hhm,TUB,tx,zr,y7f,lx,Df,VK,Kr,Cr,Un,WX,cX,Jy,qWB,RH,hy,Mw,f$L,vw,jaT,gX,GF,E1,Bw,rX,IH,wX,i3,s1,Zh_,pK,bhT,kM,OhL,Qx,mki,Hw,aH,LK,TF,yx,XZ7,qw,fK,Za,b3,Sb,O1,my,eAi,oH,nNL,XF,eb,nK,dX,u3,Pw,zF,KK,ty,l3,uwO,Pug,Vx,zAL,K3B,tWm,CK,cw,ic,Dki,wj,UkL,E8,c7L,BJ,rj,Yd,W3i,s8,Rwa,pE,FO_,hwm,kd,a2L,Qt,$d,Ap,JRT,NC,HJ,vTi,qC,I2i,Mug,fE,Zz,bc,ETn,ibB,O8,PJ,Bs_,Y$g,sGf,zY,KE,tp,lc,Vt,U8,CE,QGi,$Sg,ARO,NsI,Hb2,WJ,R8,LOB,F1,Ts_,yRT,f2n,S$i,hS,ObT,mSa,oTn,X4i,ew_,M1,nTm,gy,dS_,ib,wy,zwO,EA,BC,ry, KOi,tuT,pT,kR,AS,xR,DSa,VuI,USi,q1,yg,Tg,CXi,cRI,WOO,fT,jv,Zn,FuO,o8,X1,ahL,Jtn,MYO,ev,nT,vz7,gzO,ub,GfB,Ih2,i1f,w_O,KT,PC,tS,lb,Dn,Ezf,BCT,rtB,Vg,UA,YQn,CT,sPL,p_L,s1L,cC,pXL,WC,RT,kri,Q1m,$IO,AxB,xIi,NRT,aT,JT,Mh,g4,TR_,GR,IT,yxi,L97,vj,qnf,ih,w4,EI,r4,Bj,ffB,j1f,Zr2,Yj,Snn,Ql,mII,oi7,XXi,e0g,ni_,uj7,dI7,Px2,Nh,Hj,Ll,K9L,z0a,tXB,lfL,yl,DIT,qh,VXL,UIi,fl,jC,Zu,CxO,bh,OI,cxO,mt,oT,Xm,eC,nl,uh,d4,Pj,W9i,RV2,Fyi,hVg,zR,aa7,MbB,Jya,tT,lh,gM7,vM2,iKB,BX_,EMO,Du,ryg,Y1B,sHi,kFm,pwg,QHi,Vl,$wn,Ayi,Cl,xwL, NXi,HKf,Lyf,cj,TXO,Wj,yy7,Rh,Fz,faf,hN,jHf,ah,JN,ZKi,bKi,Mp,gT,OK_,GB,S1O,mwL,oMi,XwB,nMm,Ih,uFL,E_,BB,P3T,zVa,la2,DwB,rT,YX,s_,pi,kX,Q3,$X,AN,xX,Np,HB,Li,TB,cyi,C3L,Wyn,FIT,Rti,azg,UwI,htf,Vbi,y3,qp,MLI,vdI,gd_,Xz,ep,ni,fi,IzI,uE,JpB,wJ7,Edf,iEg,dT,PB,zB,Ki,BjB,GYT,rp_,tN,Y8L,sdf,pJI,kYn,Qd2,xC7,Nj_,HEn,LIg,lE,DM,Tjg,ypI,jd7,ZET,V3,Ci,S8a,cB,U_,mCa,OEL,odi,XJf,etL,Rx,FR,uLL,dCg,PcL,zt7,KIT,tL7,lzI,DCi,VLO,UC_,ax,JV,MT,vp,gF,Gd,Cci,RjB,FG7,hj_,JSL,ana,Mv2,wF,Et,vRm,gRI,GgO,Bp,rF,YA,pu,kA,Qb,$A,AV, Ing,NT,wCf,Lu,ER2,Byf,Td,yb,qT,jR,fu,rSi,s8L,ZR,cJ,xSB,ox,pCI,kgI,eR,Q87,mz,AS7,$1g,Ot,nu,uL,x1B,NyT,HTi,LGT,dF,Tym,Pp,WIO,cp_,zd,Ku,lL,DR,fnn,Vb,Ut,cp,j8L,ZTB,Wp,oR_,G3,SAT,m1B,hh,FN,BL,rq,XC2,pJ,ejm,ka,Q0,nR_,d1L,zjT,fJ,ZH,D1_,Vv_,U1a,be,R4a,y0,tvf,h4n,WGf,Cb_,cSL,auB,Fti,OL,XN,MCI,vjm,gjT,GRg,Iug,nJ,ilf,dq,wjO,rTn,YIT,PL,pji,QTi,kR2,$hi,KJ,DH,cL,Rj,Fy,h1,aj,J1,N4i,Hlg,MK,Ltm,vY,gz,WL,Gn,Ij,ij,WB,wz,T4L,BY,fuL,rz,Yy,Zlf,jT2,bli,SIi,OlO,sJ,mhm,ojm,Xj7,pV,ky,njT,Phn,z4m,Qd,Dh7,luT,VCL,Uhn,ChT,$y, cTL,Kt7,A1,WtL,REf,NK,hE2,aMB,JN7,Mpg,vXn,LV,gXB,GBI,IML,ii7,BT_,wB7,Tn,yd,qK,fV,jk,Z_,bj,Sk,Y_L,mW,OJ,shi,Xy,Qhm,oj,$p7,ANg,TTL,xpm,NT_,Him,Lh_,ek,nV,uj,yNB,dz,PY,zn,KV,t1,lj,biB,q_L,CV,Zi7,cY,jhO,UJ,D_,fMT,Vd,R3,Oi7,hj,FO,mpn,oXi,G$,I3,wI,nXg,iG,rI,uz7,YY,XBm,zEI,KhL,tpI,kY,QI,$Y,lMB,Aj,xY,Nn,H9,DpI,LD,T$,yI,Vpg,Upi,qn,CEO,dhi,Whi,Rei,FzL,heg,JVm,cNI,MR_,Gdi,jr,bG,iuI,wpT,EAg,BF_,YtL,md,OX,sxL,rVm,$TI,QxO,xTL,XO,NFB,o3,nD,HuI,uG,KD,tj,Lza,TFL,W9,yV_,Fg,qtI,fRL,iy,jx2,bun,wA,StO,OuL,nA7,mTg,YU,sN, pW,QM,$U,Kzg,A$,xU,NE,lRg,Ti,DTL,VRn,yM,CLa,fW,jM,Zl,by,cVL,SM,mn,op,Xg,eM,WzI,RqL,F7a,uy,dA,Ps,zi,KW,t$,hqi,aHB,JhL,MVi,vaL,gaL,ly,G3g,RM,IHf,iJg,wLB,Fo,aM,Ji,Mg,Gu,IM,iO,BqL,Bk,r1,Y6,rhO,YLn,sV,s2m,pLn,k6,L7f,Tqi,yhf,Qz,qLm,fHI,bJn,Ai,OJL,SLn,mWn,XL2,eqT,Hk,Lp,nan,Tu,yz,qg,fp,jm,ZP,bO,Sm,OV,mw,oM,Xo,em,d1,uNI,dWO,PeO,zu,ti,zqm,UV,Cp,ck,Wk,Rz,h3,az,DWI,J3,Ml,v6,UWi,VVi,K7a,Iz,G6,Rvi,iB,QS,sg,$$,A3,hvL,Nl,vyO,J1i,MkO,Gnm,Bzf,I_m,wYi,EyL,FWi,LR,H6,YJI,yS,ql,fR,sj2,mK,pYi,oz,Xf,en,uB,knL,P6,z6,Qji, KR,t3,A1T,VS,CR,c6,W6,RA,FB,hs,aA,Js,Mm,NzL,vv,IA,GP,LWL,f_7,y1i,qJL,jj7,ZVf,SJi,OV7,bVa,oyi,EK,Bv,sK,XYi,ev_,YO,pn,uya,dKI,tkT,KWB,As,xO,Nm,Hv,Ln,DKn,Vkm,SA,OK,UK7,CjL,c1g,nn,uH,dK,WWL,RGB,hGm,JjL,ts,Mra,VG,lH,cv,Wv,Fh,vYn,GC,If,iI,wS,BR,rS,sU,w9n,EYT,kV,BIn,rjn,$V,YXO,s3_,AY,xV,p97,k$I,$nI,TC,xnn,NIn,HR,HDi,Ld7,yjn,TIi,j1,AjO,fYi,j3L,of,OU,ZDO,bDg,Xh,e1,SXm,OD7,dS,mni,oYO,X9B,eG7,lI,nYg,uOL,dn2,PG7,zGi,KdL,trg,lYi,Ve,DnO,Cm,Uni,CGI,cj7,Wdf,R7B,cR,Jq,h7L,MML,Md,vUT,GiO,Fni,Iln,iW2,wsf,al7,J$B,WR, RD,aD,gUL,hq,F8,EU2,BAB,r$7,YNi,spB,psL,xEm,kim,wM,EP,rM,Lna,qNi,y$n,Bm,pd,fln,$3,jpf,bWi,Ld,ZW2,dEL,SN7,ugO,fd,Pyg,tMi,jl,qd,z7B,Kn_,llL,bn,VM7,UEm,Cyi,c$_,Wnm,RiB,FwB,DE7,aPf,Jii,Mmg,g6B,v62,IPL,oD,ipL,X8,el,nd,wk_,E6f,Pm,zj,riI,B1L,Kd,YV2,pki,QMB,ku7,$gg,N1I,AiL,h_,Ie,J_,Hpf,ae,ii,w_,EY,BO,Lwi,YG,yi_,kG,pw,$G,A_,xG,N_,qVi,HO,Ts,fPO,q_,j_,Zj,jMi,Zp_,bpO,SVT,bi,OY,Opa,mT,oe,X5,o6m,e_,nw,XkI,d_,Kw,zs,PO,t_,li,uoi,lPg,Vm_,tmO,Kwm,Dgg,UY,WO,WwT,UgL,COn,ciB,n6i,G6L,IB,g$2,w6_,v$i,VD,iw,aB,gr,IDi,FX, PO_,dgm,zig,cO,Mni,rr,p6O,Yf,QzT,$ln,A3n,px,xlO,NbI,HRL,Tba,y3L,$f,fDm,AI,jzi,ZR7,SgL,ORB,mla,NN,o$B,e$7,H5,n$O,Lx,T0,JY,tnL,CB2,bw,WKm,hN_,OD,Jsn,MAO,vOL,lw,tI,gOg,z0,TAT,dr,Kx,P5,m$,Fu,R7,a7,MF,I1f,vx,GA,I7,inm,wvi,Ej,BKg,rsm,YKn,sj,sAT,pva,kPL,QAB,$mT,AsB,xmL,pB,NK7,ks,$s,HnL,LiB,TKm,ys7,qKm,A0,xs,f12,jA2,Zna,bnL,SKg,On_,mmB,TA,y2,qF,oO7,fB,XvO,Z6,nOO,eN_,Si,Oj,mU,o7,uBf,Xu,ei,dmi,PHn,nB,uQ,l1L,zNI,tAg,Kin,dY,Px,zA,Dmg,VA2,Um7,KB,csL,FFa,R5n,t0,lQ,D6,V2,Uj,cx,Wx,RK,FC,hF,aK,h5n,adT,JYI,JF,Mv,vM, gf,IK,wf,gVi,vVL,BM,GCL,rf,Yr,sx,pP,kr,AF,xr,Nv,HM,LP,T2,y6,qv,wRO,fP,jj,ZJ,EVI,rYL,m5,YUn,oK,XC,kC7,QfT,$UO,xUn,Hm2,z2,LFa,tF,KP,qU7,fdI,jfm,DJ,V6,bmi,CP,cM,WM,RS,OmL,Fp,h9,aS,mUm,J9,SUg,MH,vf,XR2,oVL,g5,GQ,IS,iN,Ey,nVL,uhi,r5,YJ,p4,kJ,dUL,sy,KFL,t1B,ldI,DUf,V1B,UUI,CIi,$J,Qh,z5L,RQB,A9,hQ7,ab2,TQ,Jqi,NH,Hf,Mli,yh,g3B,Ib_,qH,f4,id_,jG,E3_,ZC,kjO,sDf,BMi,YPO,rqi,SG,Oy,mZ,oS,Xp,eG,n4,d5,$dL,NMB,K4,bET,t9,Hd7,TMg,DC,cf,Vh,C4,Uy,fbm,qPa,yqT,jDL,Wf,ZdL,mdm,RN,hl,Xm_,aN,Jl,Ms,vD,eQn,n3L,gw,GJ,IN,u8I,dd2, ww,Yo,sa,pU,ko,QQ,$o,Al,xo,Ns,HD,LU,TJ,yQ,PnT,zQ2,qs,fU,j9,ZI,bp,S9,KqL,tlT,KU,VQ,VlB,Udg,Ua,CU,Jb,Mu,cq7,GS,Wq7,RIO,wi,FT_,ajO,hI7,J_L,M_m,vGB,gGL,GsB,Ijf,wOi,iw2,EGg,YYL,pOa,r_n,ksa,Qea,A_L,Be,ri,N_i,x_g,YH,si,p6,LTI,kH,QP,$H,y_L,qY2,Ab,T_g,xH,ZwI,Nu,He,L6,TS,yP,qu,f6,jT,Zm,bU,ST,Oi,mc,oZ,X3,eT,n6,uU,di,Pe,zS,K6,tb,lU,Dm,VP,Ui,C6,ce,We,RO,F6,hA,aO,JA,MZ,v3,gZ,Gp,IO,wZ,Eb,B3,rZ,YP,sb,pf,kP,QX,$P,AA,xP,NZ,H3,Lf,Tp,yX,qZ,ff,j3,Zv,bt,S3,Ob,mx,oO,X6,e3,nf,ut,P3,zp,SYm,Kf,C,tA,dZ,lt,Dv,VX,m_f,Cf,XOI, Ub,eI_,W3,nG2,Ft,c3,hB,aI,JB,vW,d_O,PiT,zIa,KTa,sH,pI,EH,k0,lji,D_m,V_L,U_7,u5_,CiI,Me,c_i,WTi,$0,LI,AB,II,RTi,GW,Qk,x0,TW,hT2,iz,wa,HW,Ne,aiO,yk,qe,fI,j7,JII,Zq,bz,S7,OH,me,M22,vf_,G0n,IiI,e7,nI,w52,uz,YDi,p5m,QBL,$Nn,PW,xN_,Nri,Vk,HxL,UH,CI,cW,WW,Ri,Fe,L$L,yIL,qD2,Trm,fi7,jBf,M9,vQ,GM,iZ,wW,Ee,Zxn,BQ,bx2,rW,Y_,gW,k_,Q1,$_,AE,SD2,pA,mNL,x_,of2,X5i,N9,eTi,HQ,LA,nf7,uXI,TM,dNi,Pw7,y1,zTn,K$n,t2i,lii,q9,fA,DNT,V27,je,ZX,bZ,UNi,Se,Oe,mQ,oi,CwB,Xe,ee,cIn,nA,W$n,uZ,RWL,FUn,hWI,a6m,J0g,Mia,dW,vsn,gs2,GA2, PQ,I6i,zM,iB2,KA,wxi,tE,Esi,BYa,lZ,cQ,r0L,WQ,Rk,FI,hH,Yji,ak,JH,MQ,s7L,pxa,ge,Gm,Q7L,Ik,$FL,A0n,kAL,xF7,NYL,HBm,we,LUL,ES,re,YK,TYf,sS,p7,Qp,y0i,$K,AH,qji,NQ,Tm,Hz,jf,ZK,f6i,bW,j7n,OS,ma,ok,ZBn,ef,bB7,uW,de,Pz,qQ,zm,K7,lW,SjB,DK,Vp,US,OBO,C7,cz,Wz,Ry,Fx,ha,Ja,M8,v1,gh,mFL,osf,Xx_,wh,G7,Ec,B1,eWm,nsI,uuI,rh,Yu,sc,dFn,PQL,iA,zWT,KUg,pv,ti2,ku,QY,Aa,xu,N8,H1,Lv,yY,q8,jS,ZF,bA,SS,fv,ViI,UFi,mj,oy,Xx,CQg,nv,WUi,uA,dh,R1i,P1,Kv,lA,F5f,ta,DF,VY,Uc,h17,W1,JFi,Mji,vr2,F2,RU,grg,G2T,IJB,ho,wM2,eS,iP2,Erf,aU, BfL,Jo,rF_,Mi,YxL,sKf,pM7,k2m,QK7,vT,AFi,$vT,gv,id,xvB,wv,Nff,E5,HPI,L52,BT,Tfg,yFi,qxi,fJB,rv,jKT,Y1,bP2,pq,k1,OPL,Sxa,mvn,orL,XMf,$1,Ao,x1,e1g,nrg,uC2,dva,P57,z1_,K5B,tjB,lJL,Dvf,HT,Lq,Vj_,UvL,Tb,yJ,C5L,qi,fq,Z5,cFi,bd,Sd,O5,W5T,mD,Rb7,oU,FZT,X2,hbn,aCn,ed,J9I,MG2,vJg,nq,ud,dv,PT,zb,gJT,GQI,Kq,to,ld,ICi,D5,VJ,U5,Cq,cT,i4B,wfL,WT,Rq,EJO,Fn,hO,aq,JO,gfi,B52,r92,M0,Yya,sSm,pfg,vq,gk,GN,Iq,i2,wk,Er,Bq,rk,YS,sr,kQm,QS7,jw,ZA,A92,b2,n5,Or,Pq,y9_,b4_,qyn,SyL,mHT,oJB,O4g,Xf2,ebL,nJf,FT,PNB,tG_,KZm,DH_, VGi,UHO,M7,vK,c9O,WZO,aIi,g3,Jlg,RYm,GV,IL,iJ,w3,von,III,goi,Eoa,QNg,kJa,Bwg,$sg,BK,YaB,rlL,Nwn,Twa,LRL,jNn,ylf,r3,Y8,msi,k8,oo7,zYf,PpT,dsn,u__,eYa,lII,t9i,noL,cln,CpO,WR7,N7,hm2,Rmn,FcI,XDa,amL,Jb7,Qo,AQ,V9f,Dsn,Us2,MT7,$8,KRg,gH_,Ima,weB,BiL,sZ7,peB,QZi,$ui,xua,Ab2,ybm,H6_,Ni2,qi7,Z6n,b6i,Sii,O67,O0,aL,Xen,mug,XT,u37,uJ,PUf,zmL,du7,d3,Kci,PK,zV,hE,Ke,dHn,tQ,lJ,Dp,tTm,lmB,Vo,Dui,VTg,Uui,U0,Ce,cK,WK,Rs,FP,hu,as,Ju,CUL,cbi,Mb,WcL,vl,IU,gE,Ga,hoI,Ro2,Is,avi,JAm,M37,ia,FxT,wE,vPn,Eu,gP7,GpI,lCB,nH7, Ivi,Bl,ai,Xt,HK,ifg,w3a,Yh,OUi,s0,EPg,mL,oL,TV,Le,E0,q7,rba,kSn,yo,ZUL,fm7,BZi,Ali,sNi,pO,em2,JQ,YbL,rAI,M9I,Yin,sOO,jZn,bJ,bUB,SaO,HUf,EHi,i6i,wDa,GJa,hYi,FRa,CN7,vHI,pDn,Lc_,qaB,fI_,jO,Zp,fe,TiL,GSm,kpa,p3O,kh,Q_,$h,Au,xh,Nb,QO7,Ta,y_,qb,jI,ZV,$ZO,fO,ba,SI,AA2,Ou,mp,os,eI,NZf,Hf7,nO,ua,dE,Pl,za,KO,tu,la,qbg,V_,fvf,DV,jOf,TZn,yAT,Zfm,Uu,CO,bf7,SbT,cl,Of_,af,oPn,mZI,eoT,u62,dZT,nPB,KxB,t3g,V3n,Ctn,cAB,UZg,vG,GE,gV,Wxi,Ru_,hum,Fe7,Jd,aqL,JB_,M7_,v0T,MR,iI_,wWn,E0i,Iqn,GWI,g0i,Baa,rBL,lvm,YHa,DZg,sIO, pWO,ABI,kWT,QI2,$eB,HI2,xeL,NaI,LeB,Ta7,iM,fqm,yBn,jIn,qHT,ZIi,bIB,SHa,OIn,meB,o0f,XWn,euL,n07,utL,de7,Pz2,wV,Keg,t72,lq_,zu7,DeI,Uen,Eq,BG,Czi,cBa,rV,Yn,WeT,RJg,FQI,hJ_,po,aXg,QZ,$n,MeB,v_T,g_i,iAm,xn,Lo,yZ,wQL,qR,fo,jE,Yef,pQn,siL,QiL,qea,AEa,eE,bM,kMO,rE2,BWn,E_B,XH,SE,o9,zE,Ko,ZAi,td,lM,PG,m97,bAg,SeT,o_i,Do,VZ,eJi,Co,cG,WG,Ro,FG,hD,ao,n_n,ueg,JD,MG,g$,PZi,zJI,v$,KQL,D9m,Vem,G4,U92,w$,CZi,Ef,r$,cEL,B$,YE,WQT,p$,FaO,hDT,QB,$E,L$,JHL,xE,T4,qG,Mfa,j$,H$,yB,vKI,ZQ,gK_,b8,Gmn,AD,NG,aKB,f$,S$,IKL,i7g, Of,wzL,mA,oo,XG,e$,EKg,u8,n$,d$,P$,Be2,rHf,z4,K$,tD,l8,DQ,YSI,VB,Uf,skm,pzi,C$,c$,W$,QkI,kmn,R_,$Q7,AH2,xQm,Fv,NeL,H7n,La7,TeI,yHL,hP,a_,JP,M3,qSm,fKa,gH,jki,Gl,I_,Z7B,b7a,il,SSi,O7T,eDI,nKa,mQ2,oKa,Xzi,E3,BI,rH,Yb,uIi,dQi,PWT,zDi,pL,lKL,kb,Vff,CWf,UQa,N3,xb,Wam,RZi,Fjn,hZL,HI,aFI,Tl,yF,Jaf,vuO,gug,fL,O3,w12,TWL,Oq,Bhi,raB,YcT,syL,p1a,Zo,ZL,Xv,ea,$87,AaL,x8n,nL,Thf,NhT,HvT,qcB,fFa,ul,jyI,yan,Zvi,dH,PI,zl,bvn,Sc_,KL,tP,Ovn,ll,m8_,DL,mP,cI,ouL,yEL,$9n,WI,R6,hc,a6,Jc,MM,vy,FU,I6,eZ_,wp,uxg,Ek,PAO,d8f, nuT,zZn,Kja,tSL,sk,lFn,D8L,U8i,pG,jiB,k9,ca_,RSg,no,FDI,hST,mm,x9n,HA_,LQL,CAI,$9,a5L,JoT,Ac,Mdn,NM,Hy,LG,To,y9,v12,qM,fG,g1T,Gbf,jD,ZU,bo,SD,Ok,mo,iq_,I5L,o6,wT7,Bv_,XU,roL,E1n,aX,FV,JJ,vc,gG,rp,Y5i,xiO,ra,hJ,wG,Tv7,q5T,KG,sZ,zo,pZ,$x,RX,AJ,S5L,xx,N5,Oq7,miT,o1n,XTL,Hc,eSn,n1i,LZ,u2i,tdn,KDT,diB,zSL,Pdi,Ty,l5B,yj,Di7,Vd_,Cdn,coi,WDg,Rnf,Mwi,bg,SQ,GNi,OZ,mM,IAi,ESn,Bkm,rOi,YrL,oX,XV,eQ,nZ,sqB,kNn,QqO,Vj,qrm,Nk2,H57,jqi,UZ,Z5g,Sr2,b5_,O5_,cc,F$,m0O,CZ,hL,aV,oSi,enf,d0I,g9,w9,sG,QC,FLB,h3n,Hr,Nz,TT, yC,ap7,v8i,MOa,g8B,ft,qz,GVa,iea,wKn,B37,bR,E8I,rQB,Y0B,OG,mS,pKL,vr,Zy,lA_,XqL,C2T,d9,Lt,Ipg,VC,pt,Ct,cr,fpf,Zem,jLn,kF,$F,beL,Rc,FM,Oea,hC,ac,m7g,AL,JC,JQT,vn,x7_,GU,zn_,P2_,nSL,Ic,XKL,E4,lpL,tOi,VOL,U72,YC,pF,kC,s4,$C,AC,CJf,xC,WLL,NX,Fpi,TU,RdI,yV,qX,MI7,fF,GaB,IVm,bm,iOT,BEI,KF,lm,D4,CF,rua,cn,Wn,aJ,Jz,MD,vg,Yui,g0,GH,Qs2,IJ,iD,$bi,Au2,w0,xbn,NEL,HOL,Lpn,El,Bg,TEL,yuf,qun,pY,kQ,Az,xQ,fVO,jsi,ND,Hg,LY,TH,ZOT,bOg,yi,Su7,OO_,qD,ohI,mbO,Xlm,fY,nhB,ed2,uPL,jo,ZW,db2,zdB,Kpf,bD,So,Ol,tI_,Dbn,mr,VIn, Xa,Ub2,CaB,oJ,eo,nY,uD,Rxn,hxm,cu7,Fm2,aoB,Wp7,JdI,MEm,d0,vnO,GEL,wGT,BVB,EnL,Ul,Vi,Wg,Yqn,Rm,FS,hU,pGT,am,kEf,s9g,JU,AdB,Mr,vd,xR2,gJ,NVT,x0g,yOi,LmO,Ho2,ydI,TVi,qqi,Gv,Im,iv,wJ,fof,boi,rJ,Y4,sM,Oog,SqO,EM,mRL,onL,XGB,nnT,p2,VEL,hC7,x4,aQ2,zH,M$i,vEi,gEm,G42,IQT,Hd,i$2,L2,Tv,yv,w$I,jh,EEi,B$7,Z8,bv,rDi,Yff,soI,p$B,k4L,Sh,f2,QoO,$GT,OM,xGn,N$m,H$i,mk,LAi,T$I,yD_,qf2,fQi,jof,Z$f,b$g,Sfn,O$a,om,oEf,XS,eCB,X$L,uGI,nEm,P8m,dJ,mGi,eh,Pd,zCm,zv,K2,tU,lv,D8,KAa,Vv,t$I,C2,C8I,RPf,FPi,hPn,aL2,Rr,JPO,WAI,UGg, Mam,cd,vbf,Gl_,UM,Wd,DG2,V$n,Fc,ILa,iL7,cDm,lQi,wIT,ar,EbL,Jn,MY,BHi,vE,s_L,rPi,Y3g,gt,pIL,Gz,Ir,i6,wt,klI,Q_T,$37,EE,x3I,NHg,BE,HLm,rt,YI,LPi,THT,yPn,q3i,fLO,j_B,m3m,bL2,IoI,p8,XIi,ePa,S3T,OL_,ZLL,$I,zPB,QA,kI,ob7,tag,PlI,d3n,uvO,nb7,xI,lLi,Pg,NY,HE,L8,D3T,Tz,Va7,yA,U3_,cg,ClT,qY,tz,DW,gni,ZB,SU,RFO,Fo7,OE,or,b6,jU,Xc,f8,cPI,WPg,eU,hFn,aUO,uv,dG_,KY,n8,JcI,m6,MDn,v9L,g9f,GoO,u6,dt,IUm,iGn,wyi,E9I,Bp_,gbB,AU,zz,K8,PE,Yk2,Q9I,$Rf,tn,s6L,py_,koL,Q62,l6,$MI,DB,Aci,Npn,VA,HG_,Lo2,cE,ycL,C8,hg,fUI,qkL, Sk_,ZGi,OG7,mMf,j67,bGg,o9n,aQ,XyB,n9m,eFB,Jg,ADg,uUa,dM_,Poi,zFf,KoB,tDO,lUL,DML,VDO,UMm,Cof,cci,Woi,vH,hLi,a9L,FMm,JJT,MQm,vx7,gx_,gB,I9L,iZ7,IQ,wcg,i4,wB,Exf,E6,BGO,rJI,BH,YZT,sXm,pcL,rB,Zoi,Yq,$5L,s6,QX2,AJf,x5L,j9g,Bd,NGm,HZi,mv,ZZL,jXg,u4,bZm,f9f,oxi,XcO,eLi,nxa,uVL,d5m,Pg7,zLi,KMm,tQf,l9a,D5B,VQi,zt,pj,Cg_,cJi,dB,R_O,U5i,PH,FSL,h_7,MZT,GT2,vFO,tg,Iym,l4,ayi,Kj,Dw,JLm,U6,EFI,rLm,B9I,YGL,wr2,sVi,prB,kTI,QVi,$zL,xzL,N9g,ALg,LST,yLT,T9m,Zti,fyB,HtB,qGB,bt2,jVT,SGT,Ota,mzI,e_m,Xrg,oFi,Cj,nF2,dzf, PRI,z__,KST,tZO,lyL,n2,DzT,VZf,Uz7,cLa,CRf,WSg,FXL,hkL,Rki,V4,WE,JCi,MtT,vC2,Bun,I42,iFB,wnL,rC2,scn,KPm,cH,GUT,gCf,Y4g,CY,EC7,sE,lD,gFT,ACB,$XT,xXg,Nug,yCi,q4L,u$L,FD,RQ,kUf,f4L,QcI,jcf,UE,ZF_,xMB,it7,pn7,TpI,h2,a$,S4g,J2,OFg,mXI,oCL,Xng,ek_,uMi,zHf,DYL,K6i,lBL,VU2,vS,W6_,C6B,cnL,hlf,aw2,Jgm,gQ,MNa,M$,vq_,Fv7,UYi,G1,gqi,tUi,Gta,I$,ijg,Iw7,Eqi,BB_,rgB,wHg,iK,pHL,sQO,$Lg,QQf,ktB,Agg,xL_,wQ,NBi,Hjf,TB7,ygm,LvO,q67,S6B,jQI,Zji,bjL,Ojf,mLL,oqT,eln,XHm,nqO,uD7,EO,P4O,zlL,tNn,Kv7,lwi,dLf,DLI,ULL,C4m,WvL, FYg,cgi,hhI,a3m,J2m,VNi,Mx2,RhO,rQ,vWT,gW_,G12,I3L,iz2,wSB,EWi,r27,s$L,pS2,k1f,Q$L,$$L,YW,A2L,sO,NQf,Hzf,$W,TQO,A2,qOa,f3m,j$7,Zza,SOL,bz_,LXL,oWL,HFi,xW,XSi,Ozf,m$2,eha,Lz,udi,nWL,d$2,PKL,zhf,l3L,KY7,U$B,T1,txn,CKB,yE,hp2,c2B,fz,jx,aEm,q$,J4L,Z3,gtn,vtg,RpB,FEi,GK_,IEO,i3i,WYi,wu7,bK,Etn,Mzf,y2I,HS,r4L,YFB,st7,pun,kK7,QtI,$6i,A47,x6m,ND2,LEL,TDT,y4L,H3g,qFa,fE2,jta,Z3f,b3O,SFT,ot_,m6m,O3O,Xun,mY,DF7,epi,ntL,o$,uq_,d6L,ex,KEi,tz_,nz,D67,Vz2,lEI,zpf,uK,Xd,PfL,z1,dQ,U6g,Kz,PS,RMI,a0m,Mcg,vwO,GwB,c4B, J5I,I0B,WEa,isi,wb2,EwI,UO,t2,Ywa,sFO,BP2,D3,kwm,QFm,hMa,F_B,pbO,$Oi,gwB,r57,CfT,Cz,cS,WS,A57,Rt,y5_,Hsi,qw_,L_a,NPL,f0O,xOf,bs_,jFO,Fq,Swi,mO_,Xbi,eML,dOn,M6,PVm,nwL,VE,tcf,l0i,wD,WMi,h4,DOa,VcT,CVi,UOf,c5i,K_L,gD,W_g,R8g,Ffg,axn,h8O,a4n,vu,Jkg,vBL,M8m,GXB,gBL,own,iQL,IxL,GK,at,wPT,Bu,EBg,Bo_,rkn,Y7a,sRB,EF,u7_,bFn,lK,pPn,rD,kXi,QRO,$qB,AkO,xqf,Yt,sF,Lf7,Tof,ykL,Nog,HQm,p3,ZQ_,fxi,jRi,bQa,kt,S7n,OQg,mqL,QO,oBL,e8m,nBg,uA_,$t,XPf,A4,xt,dq_,PsO,L3,N6,Hu,z8L,TK,KfO,t8i,lxn,V82,Dqg,bf,Csg,ckn,Uqf,Wf2, Sz,Rs7,OF,FgI,mE,hsm,ar7,vlL,IrI,JML,gli,ot,MJa,Gx_,icL,wa2,Elf,BOL,ez,rMT,dD,n3,Yog,Pu,zK,paO,kxi,t4,lf,QCa,K3,$o_,DE,xo2,AM7,UF,C3,cu,Lgm,NOL,Hc_,Wu,TOm,jCi,qoL,yM2,frg,RF,bc2,olm,Xa2,h5,esn,F7,So2,OcI,doI,aF,J5,PCL,zsT,Kg7,tJ2,lrL,gP,Uoa,CCO,cMT,Gw,VJa,FHm,vb,IF,iV,DoL,Bb,ps,akL,My7,gei,JeT,rP,Yw,vea,G9m,kw,IkL,i97,w8g,Qw,$w,Eef,B6i,re2,Y22,s0L,p8m,k9f,Ae_,Q02,xAf,N6m,T6T,yef,O9n,Z0,X8L,uQi,ne2,eKO,b9L,S2I,q2g,j07,mA2,bV,Sc,P0_,XM,hdT,zKI,m_,X7,KH2,tyL,fkm,oe_,DAT,VyB,UAi,ec,t5,ceI,WH2,RBI,lV, Fl7,aNi,hB2,Jm7,D0,Vw,M0T,GG7,IN2,cb,gpm,iki,wFi,vpn,FA,EpO,BgL,RR,rmO,YTB,sYB,pFf,QYO,kGi,xjn,Ngm,$ji,LlL,Tgf,Am_,Jk,Mq,yma,jYT,vP,fNL,qT2,ZkI,STL,bkf,OkB,go,mj_,opB,XF_,eB_,npL,u0_,djL,zB_,PT7,Klf,t02,lN7,DjL,V0B,CTm,IR,GX,is,cmI,Wl_,Ujm,Jrm,M5a,vc2,ISL,Gcg,gc_,iaL,w2L,wo,E7,EcO,B8a,rri,YsO,p2n,kci,ro,QWO,BP,s7,sWI,pQ,$y2,ArI,xyg,N8i,Ha7,kB,Lsi,T8i,fST,Qf,jW2,qsB,$B,Ak,xB,ba2,Ssi,Oa_,ZaL,ocB,myO,X2L,Nq,e9_,ncn,dya,KsI,uZI,PSL,HP,t5a,Dyf,V5i,CSn,cri,LQ,TX,Ws2,lSf,hXm,F8B,RXL,yf,qq,Jvi,aZ7,fQ,j8, Zx,MHi,bs,vkm,gkO,GZ7,IZI,S8,iSf,O7,wUO,mf,oR,XA,Ek_,e8,BnL,nQ,us,Ypm,kZn,Qwa,rvi,$tO,Nnf,HSg,L8L,xtO,Avn,yv2,Tna,qpg,ZSI,KQ,Spn,bS2,fZI,jwn,OSm,mt7,tk,ls,okL,XU2,eXi,nkL,uKf,dtT,zXi,K8m,W8L,Dtg,VH7,tHi,FN7,WP,Fs,v5a,g5i,JM,Mo,G8i,hzn,cP,Gx,gO,hM,iX2,wNL,IC,BlT,Ydm,rwg,iC,aC,CQ,E5B,va,aOT,IOm,pN_,Dx,wO,k8a,Q4L,RC,Jwa,Eo,Ba,$ff,rO,Yl,so,AwB,xf2,HXL,LNg,Nli,pc,Tlf,kl,Qc,yw2,qdg,fOL,j4i,ZXi,bX_,OXL,SdL,AM,$l,mf2,XNf,o5m,xl,No,ezm,urn,dfL,Ha,n5n,PYB,zzf,tq_,Lc,KN_,lOO,Df2,VqO,yc,qo,CYf,Ufi,cwi,fc,jJ, Ryf,WNB,FCa,aei,hyf,J8n,bC,Msg,vgm,Oo,ggT,Iem,Gha,iya,woL,EgI,BNI,Y92,s5B,poa,r8_,kh2,Q5L,$2f,A8B,x2m,NNm,HyB,LCm,TNg,eJ,y8m,q9T,feI,Zy2,m2a,S9I,j5a,dO,byi,uC,Oyi,Pa,XoI,ogL,zx,ngi,u9B,d2i,fwn,Dr,EhO,tM,Vc,lC,Cc,PPT,ca,D2i,Vsg,U2a,CPm,c82,WCT,vDT,a0,gD7,MKn,GOI,Je,v8,g6,iN7,Icf,Rcf,G9,EDn,BxB,w0I,Yha,I0,sng,p0I,kOa,MA,$Bf,Qni,i0,w6,acg,FQ,AKL,xBi,Nx7,HNi,FbI,hcI,he,Lbm,yKg,qh2,fc_,jnL,Tx_,E2,bNB,oDI,r6,X0_,ecn,ONB,s2,nDn,ubf,ZNB,dBi,mBI,P$g,p9,Ye,zcO,tKO,Kbm,B8,DBa,ke,zML,VKL,cKO,C$m,Rrf,FVB,WbO, $e,Qs,asi,J6L,MF7,vZO,YCm,w7L,EZn,IsL,Gka,NA,QEm,p7L,$PL,A6n,xe,L9,T9,LVi,HCL,N22,qA,r6m,b0,y6i,Zk,ys,fsm,jE_,ZCm,sEi,mH,XQ,bCa,B2n,T2L,f9,SCB,H8,OCO,mPL,oZi,u0,d6,qCL,X72,erT,P8,z9,nZi,jy,kkm,u4I,dP7,o0,Prf,Sy,zri,O2,LF,KVn,ls_,K9,te,DPT,VF2,UPi,n9,ey,CrI,UBI,c6i,iCL,WVL,RgB,FJm,hg2,l0,Dk,M42,G5i,i0I,JWa,k5i,Qvf,$c7,AWi,xcI,NcO,H0f,Tcf,LJO,Vs,U2,C9,yWO,qBf,fgi,Gb,jvO,c8,Z0m,W8,b07,RY,F0,SBL,iW,hm,oI,O0f,eO,oHi,mcL,pe,ov_,Cv,c1,XAO,rE,egT,nvL,ne,zbL,uEm,dc_,Pqi,aY,KJ7,t4O,Jm,vF,gg,lgI,Ucf,Cqi,GG, cWn,DcT,RRL,V4a,WJ2,F0O,hRn,aGT,JZL,IY,v2g,OxI,Ii,s5,g2n,G_L,QJ,MgO,se,IGm,iHf,wtI,iT,Oc,Bmn,rZi,wg,ET,Yza,BF,rg,Mj,sbL,ptL,aJm,Yp,sT,k_f,pk,kp,Qbm,Qr,$VO,$p,Am,AZi,xVf,ZPn,xp,Nm_,L0f,HHI,Nj,HF,TmL,Lk,yZi,qzi,fG2,jbL,ZHI,bHf,OHm,yr,SzO,mV2,o2n,XtB,eRi,PFi,n2m,uY7,dV2,K0L,lGm,DVa,Vga,tgi,qj,UVg,CFi,cZ2,W0T,ROt,j0,F2h,ZN,bT,S0,hOg,aT7,MBv,vL4,gLh,GIu,i_e,ITg,wi7,OT,ml,rf9,ELk,BLh,oY,Ymu,sgv,X0,e0,pih,nk,kIg,uT,Qg4,dg,PF,$a7,zG,Kk,Af4,xaG,tm,lT,NLg,DN,H_6,L2U,cF,WF,TLv,yfg,qmL,Z_u,jgk,RW,b_u,SmU,O_7, upL,fTg,oLu,XiG,nLG,ROT,wL;Jf=function(R){return function(){return ROT[R].apply(this,arguments)}}; g.Ma=function(R,F){return ROT[R]=F}; F2i=function(R){var F=0;return function(){return F=this.length))return this[R]}; Um=function(R){return R?R:Vn}; BLi=function(R,F,h){R instanceof String&&(R=String(R));for(var a=R.length-1;a>=0;a--){var J=R[a];if(F.call(h,J,a,R))return{JQ:a,XK:J}}return{JQ:-1,XK:void 0}}; C_=function(R){return R?R:function(F,h){return BLi(this,F,h).JQ}}; g.Fk=function(R,F,h){R=R.split(".");h=h||g.Wi;for(var a;R.length&&(a=R.shift());)R.length||F===void 0?h[a]&&h[a]!==Object.prototype[a]?h=h[a]:h=h[a]={}:h[a]=F}; au=function(R,F){var h=g.hG("CLOSURE_FLAGS");R=h&&h[R];return R!=null?R:F}; g.hG=function(R,F){R=R.split(".");F=F||g.Wi;for(var h=0;h2){var a=Array.prototype.slice.call(arguments,2);return function(){var J=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(J,a);return R.apply(F,J)}}return function(){return R.apply(F,arguments)}}; g.Ge=function(R,F,h){g.Ge=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?sgm:pii;return g.Ge.apply(null,arguments)}; g.Iu=function(R,F){var h=Array.prototype.slice.call(arguments,1);return function(){var a=h.slice();a.push.apply(a,arguments);return R.apply(this,a)}}; g.w7=function(){return Date.now()}; Ev=function(R){return R}; g.Bh=function(R,F){function h(){} h.prototype=F.prototype;R.dk=F.prototype;R.prototype=new h;R.prototype.constructor=R;R.t0=function(a,J,M){for(var v=Array(arguments.length-2),I=2;I=0;--h)h in a&&F.call(void 0,a[h],h,R)}; g.QL=function(R,F,h){F=k7(R,F,h);return F<0?null:typeof R==="string"?R.charAt(F):R[F]}; k7=function(R,F,h){for(var a=R.length,J=typeof R==="string"?R.split(""):R,M=0;M=0;a--)if(a in J&&F.call(h,J[a],a,R))return a;return-1}; g.x7=function(R,F){return xaf(R,F)>=0}; NL_=function(R){if(!Array.isArray(R))for(var F=R.length-1;F>=0;F--)delete R[F];R.length=0}; g.Hh=function(R,F){F=xaf(R,F);var h;(h=F>=0)&&g.N4(R,F);return h}; g.N4=function(R,F){return Array.prototype.splice.call(R,F,1).length==1}; g.q4=function(R,F){F=k7(R,F);F>=0&&g.N4(R,F)}; H_B=function(R,F){var h=0;Af2(R,function(a,J){F.call(void 0,a,J,R)&&g.N4(R,J)&&h++})}; g.j6=function(R){return Array.prototype.concat.apply([],arguments)}; g.Zt=function(R){var F=R.length;if(F>0){for(var h=Array(F),a=0;a>>1),w=void 0;h?w=F.call(void 0,R[I],I,R):w=F(a,R[I]);w>0?J=I+1:(M=I,v=!w)}return v?J:-J-1}; g.l9=function(R,F){R.sort(F||d7)}; yf_=function(R,F){var h=d7;g.l9(R,function(a,J){return h(F(a),F(J))})}; g.Dt=function(R,F,h){if(!g.JG(R)||!g.JG(F)||R.length!=F.length)return!1;var a=R.length;h=h||qmn;for(var J=0;JF?1:R0&&(F[J]=a)},R); return F}; eOL=function(R){R=y5(R);var F=[];g.Rl(R,function(h,a){a in Object.prototype||typeof h!="undefined"&&F.push([a,":",h].join(""))}); return F}; uin=function(R){HV(R,"od",nLf);HV(R,"opac",qJ).B=!0;HV(R,"sbeos",qJ).B=!0;HV(R,"prf",qJ).B=!0;HV(R,"mwt",qJ).B=!0;HV(R,"iogeo",qJ)}; fM=function(R,F){return R.lastIndexOf(F,0)==0}; da_=function(R,F){var h=R.length-F.length;return h>=0&&R.indexOf(F,h)==h}; g.jP=function(R){return/^[\s\xa0]*$/.test(R)}; g.Z7=function(R,F){return R.indexOf(F)!=-1}; b_=function(R,F){return g.Z7(R.toLowerCase(),F.toLowerCase())}; g.mB=function(R,F){var h=0;R=SP(String(R)).split(".");F=SP(String(F)).split(".");for(var a=Math.max(R.length,F.length),J=0;h==0&&JF?1:0}; g.ol=function(){var R=g.Wi.navigator;return R&&(R=R.userAgent)?R:""}; PV=function(R){if(!nM&&!u_||!dd)return!1;for(var F=0;F0:!1}; l_=function(){return tX()?!1:zD("Opera")}; P7m=function(){return tX()?!1:zD("Trident")||zD("MSIE")}; zOm=function(){return tX()?PV("Microsoft Edge"):zD("Edg/")}; D7=function(){return zD("Firefox")||zD("FxiOS")}; UR=function(){return zD("Safari")&&!(V5()||(tX()?0:zD("Coast"))||l_()||(tX()?0:zD("Edge"))||zOm()||(tX()?PV("Opera"):zD("OPR"))||D7()||zD("Silk")||zD("Android"))}; V5=function(){return tX()?PV("Chromium"):(zD("Chrome")||zD("CriOS"))&&!(tX()?0:zD("Edge"))||zD("Silk")}; K2B=function(){return zD("Android")&&!(V5()||D7()||l_()||zD("Silk"))}; tBL=function(R){var F={};R.forEach(function(h){F[h[0]]=h[1]}); return function(h){return F[h.find(function(a){return a in F})]||""}}; lTn=function(R){var F=g.ol();if(R==="Internet Explorer"){if(P7m())if((R=/rv: *([\d\.]*)/.exec(F))&&R[1])F=R[1];else{R="";var h=/MSIE +([\d\.]+)/.exec(F);if(h&&h[1])if(F=/Trident\/(\d.\d)/.exec(F),h[1]=="7.0")if(F&&F[1])switch(F[1]){case "4.0":R="8.0";break;case "5.0":R="9.0";break;case "6.0":R="10.0";break;case "7.0":R="11.0"}else R="7.0";else R=h[1];F=R}else F="";return F}var a=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");h=[];for(var J;J=a.exec(F);)h.push([J[1],J[2],J[3]||void 0]); F=tBL(h);switch(R){case "Opera":if(l_())return F(["Version","Opera"]);if(tX()?PV("Opera"):zD("OPR"))return F(["OPR"]);break;case "Microsoft Edge":if(tX()?0:zD("Edge"))return F(["Edge"]);if(zOm())return F(["Edg"]);break;case "Chromium":if(V5())return F(["Chrome","CriOS","HeadlessChrome"])}return R==="Firefox"&&D7()||R==="Safari"&&UR()||R==="Android Browser"&&K2B()||R==="Silk"&&zD("Silk")?(F=h[2])&&F[1]||"":""}; DaL=function(R){if(tX()&&R!=="Silk"){var F=dd.brands.find(function(h){return h.brand===R}); if(!F||!F.version)return NaN;F=F.version.split(".")}else{F=lTn(R);if(F==="")return NaN;F=F.split(".")}return F.length===0?NaN:Number(F[0])}; Uai=function(){var R=null;if(!VBn)return R;try{var F=function(h){return h}; R=VBn.createPolicy("goog#html",{createHTML:F,createScript:F,createScriptURL:F})}catch(h){}return R}; WV=function(){cV===void 0&&(cV=Uai());return cV}; Ra=function(R){this.B=R}; Fw=function(R){var F=WV();R=F?F.createScriptURL(R):R;return new Ra(R)}; h7=function(R){if(R instanceof Ra)return R.B;throw Error("");}; aa=function(R){this.B=R}; g.J7=function(R){if(R instanceof aa)return R.B;throw Error("");}; Mk=function(R){this.Fd=R}; vZ=function(R){return new Mk(function(F){return F.substr(0,R.length+1).toLowerCase()===R+":"})}; g.Gq=function(R,F){F=F===void 0?C7O:F;a:if(F=F===void 0?C7O:F,!(R instanceof aa)){for(var h=0;h4);J++)F[Lh(R[J])]||(h+="\nInner error "+a++ +": ",R[J].stack&&R[J].stack.indexOf(R[J].toString())==0||(h+=typeof R[J]==="string"?R[J]:R[J].message+"\n"),h+=Nk(R[J],F));J")!=-1&&(R=R.replace(Ita,">")),R.indexOf('"')!=-1&&(R=R.replace(ig_,""")),R.indexOf("'")!=-1&&(R=R.replace(whB,"'")),R.indexOf("\x00")!=-1&&(R=R.replace(E7g,"�")));return R}; g.Z$=function(R){return R==null?"":String(R)}; bu=function(R){for(var F=0,h=0;h>>0;return F}; SW=function(R){var F=Number(R);return F==0&&g.jP(R)?NaN:F}; B7I=function(R){return String(R).replace(/\-([a-z])/g,function(F,h){return h.toUpperCase()})}; rGL=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Yv_=function(R){return R.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(F,h,a){return h+a.toUpperCase()})}; sug=function(R){var F=1;R=R.split(":");for(var h=[];F>0&&R.length;)h.push(R.shift()),F--;R.length&&h.push(R.join(":"));return h}; OW=function(){return nM||u_?!!dd&&!!dd.platform:!1}; ph_=function(){return OW()?dd.platform==="Android":zD("Android")}; m3=function(){return zD("iPhone")&&!zD("iPod")&&!zD("iPad")}; oa=function(){return m3()||zD("iPad")||zD("iPod")}; Xw=function(){return OW()?dd.platform==="macOS":zD("Macintosh")}; ke7=function(){return OW()?dd.platform==="Windows":zD("Windows")}; eW=function(R){eW[" "](R);return R}; Qun=function(R,F){try{return eW(R[F]),!0}catch(h){}return!1}; AGi=function(R,F){var h=$4a;return Object.prototype.hasOwnProperty.call(h,R)?h[R]:h[R]=F(R)}; g.nh=function(R){return AGi(R,function(){return g.mB(x4n,R)>=0})}; g.uu=function(R,F,h){return Math.min(Math.max(R,F),h)}; g.dU=function(R,F){R%=F;return R*F<0?R+F:R}; PZ=function(R,F,h){return R+h*(F-R)}; g.zq=function(R,F){this.x=R!==void 0?R:0;this.y=F!==void 0?F:0}; Kh=function(R,F){return R==F?!0:R&&F?R.x==F.x&&R.y==F.y:!1}; g.t7=function(R,F){this.width=R;this.height=F}; g.lu=function(R,F){return R==F?!0:R&&F?R.width==F.width&&R.height==F.height:!1}; D$=function(R){return R.width*R.height}; UW=function(R,F){this.B=R===VT&&F||""}; Ch=function(R){if(R instanceof EW)return R;R=String(R).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return BZ(R)}; Hgi=function(R){return N72(R)}; N72=function(R){var F=Ch("");return BZ(R.map(function(h){return rU(Ch(h))}).join(rU(F).toString()))}; fti=function(R){var F;if(!L4i.test("div"))throw Error("");if(T7I.indexOf("DIV")!==-1)throw Error("");var h="":(R=Hgi(F.map(function(a){return a instanceof EW?a:Ch(String(a))})),h+=">"+R.toString()+""); return BZ(h)}; yGg=function(R){for(var F="",h=Object.keys(R),a=0;a2&&eUB(J,v,a,2);return v}; eUB=function(R,F,h,a){function J(I){I&&F.appendChild(typeof I==="string"?R.createTextNode(I):I)} for(;a0)J(M);else{a:{if(M&&typeof M.length=="number"){if(g.M4(M)){var v=typeof M.item=="function"||typeof M.item=="string";break a}if(typeof M==="function"){v=typeof M.item=="function";break a}}v=!1}g.Uv(v?g.Zt(M):M,J)}}}; g.B4=function(R){return ws(document,R)}; ws=function(R,F){F=String(F);R.contentType==="application/xhtml+xml"&&(F=F.toLowerCase());return R.createElement(F)}; g.rs=function(R){return document.createTextNode(String(R))}; g.s$=function(R,F){R.appendChild(F)}; g.pb=function(R){for(var F;F=R.firstChild;)R.removeChild(F)}; kT=function(R,F,h){R.insertBefore(F,R.childNodes[h]||null)}; g.QH=function(R){return R&&R.parentNode?R.parentNode.removeChild(R):null}; g.$T=function(R,F){if(!R||!F)return!1;if(R.contains&&F.nodeType==1)return R==F||R.contains(F);if(typeof R.compareDocumentPosition!="undefined")return R==F||!!(R.compareDocumentPosition(F)&16);for(;F&&R!=F;)F=F.parentNode;return F==R}; WZ=function(R){return R.nodeType==9?R:R.ownerDocument||R.document}; g.AR=function(R,F){if("textContent"in R)R.textContent=F;else if(R.nodeType==3)R.data=String(F);else if(R.firstChild&&R.firstChild.nodeType==3){for(;R.lastChild!=R.firstChild;)R.removeChild(R.lastChild);R.firstChild.data=String(F)}else g.pb(R),R.appendChild(WZ(R).createTextNode(String(F)))}; uki=function(R){return R.tagName=="A"&&R.hasAttribute("href")||R.tagName=="INPUT"||R.tagName=="TEXTAREA"||R.tagName=="SELECT"||R.tagName=="BUTTON"?!R.disabled&&(!R.hasAttribute("tabindex")||n72(R)):R.hasAttribute("tabindex")&&n72(R)}; n72=function(R){R=R.tabIndex;return typeof R==="number"&&R>=0&&R<32768}; TL=function(R,F,h){if(!F&&!h)return null;var a=F?String(F).toUpperCase():null;return xT(R,function(J){return(!a||J.nodeName==a)&&(!h||typeof J.className==="string"&&g.x7(J.className.split(/\s+/),h))},!0)}; xT=function(R,F,h){R&&!h&&(R=R.parentNode);for(h=0;R;){if(F(R))return R;R=R.parentNode;h++}return null}; cZ=function(R){this.B=R||g.Wi.document||document}; d4i=function(){this.B=this.Da=null}; yH=function(){}; fb=function(){if(!qS())throw Error();}; qS=function(){return!(!ju||!ju.performance)}; P9B=function(R){return g.IG?"webkit"+R:R.toLowerCase()}; Z2=function(R){return function(){return R}}; g.bX=function(){}; zUi=function(R){var F=F||0;return function(){return R.apply(this,Array.prototype.slice.call(arguments,0,F))}}; Su=function(R){var F=!1,h;return function(){F||(h=R(),F=!0);return h}}; O$=function(R){var F=R;return function(){if(F){var h=F;F=null;h()}}}; mO=function(R,F,h){var a=0;return function(J){g.Wi.clearTimeout(a);var M=arguments;a=g.Wi.setTimeout(function(){R.apply(h,M)},F)}}; oG=function(R,F,h,a){this.top=R;this.right=F;this.bottom=h;this.left=a}; XW=function(R){return R.right-R.left}; eu=function(R,F){return R==F?!0:R&&F?R.top==F.top&&R.right==F.right&&R.bottom==F.bottom&&R.left==F.left:!1}; nb=function(R,F,h){F instanceof g.zq?(R.left+=F.x,R.right+=F.x,R.top+=F.y,R.bottom+=F.y):(R.left+=F,R.right+=F,typeof h==="number"&&(R.top+=h,R.bottom+=h));return R}; g.uX=function(R,F,h,a){this.left=R;this.top=F;this.width=h;this.height=a}; ds=function(R,F){return R==F?!0:R&&F?R.left==F.left&&R.width==F.width&&R.top==F.top&&R.height==F.height:!1}; g.zL=function(R,F,h){if(typeof F==="string")(F=P4(R,F))&&(R.style[F]=h);else for(var a in F){h=R;var J=F[a],M=P4(h,a);M&&(h.style[M]=J)}}; P4=function(R,F){var h=K4f[F];if(!h){var a=B7I(F);h=a;R.style[a]===void 0&&(a=(g.IG?"Webkit":Kb?"Moz":null)+Yv_(a),R.style[a]!==void 0&&(h=a));K4f[F]=h}return h}; g.tR=function(R,F){var h=R.style[B7I(F)];return typeof h!=="undefined"?h:R.style[P4(R,F)]||""}; lX=function(R,F){var h=WZ(R);return h.defaultView&&h.defaultView.getComputedStyle&&(R=h.defaultView.getComputedStyle(R,null))?R[F]||R.getPropertyValue(F)||"":""}; D2=function(R,F){return lX(R,F)||(R.currentStyle?R.currentStyle[F]:null)||R.style&&R.style[F]}; g.U$=function(R,F,h){if(F instanceof g.zq){var a=F.x;F=F.y}else a=F,F=h;R.style.left=g.VH(a,!1);R.style.top=g.VH(F,!1)}; Cb=function(R){try{return R.getBoundingClientRect()}catch(F){return{left:0,top:0,right:0,bottom:0}}}; t6g=function(R){var F=WZ(R),h=D2(R,"position"),a=h=="fixed"||h=="absolute";for(R=R.parentNode;R&&R!=F;R=R.parentNode)if(R.nodeType==11&&R.host&&(R=R.host),h=D2(R,"position"),a=a&&h=="static"&&R!=F.documentElement&&R!=F.body,!a&&(R.scrollWidth>R.clientWidth||R.scrollHeight>R.clientHeight||h=="fixed"||h=="absolute"||h=="relative"))return R;return null}; g.c4=function(R){var F=WZ(R),h=new g.zq(0,0);if(R==(F?WZ(F):document).documentElement)return h;R=Cb(R);F=hR(F);F=Xh2(F.B);h.x=R.left+F.x;h.y=R.top+F.y;return h}; D4f=function(R,F){var h=new g.zq(0,0),a=iX(WZ(R));if(!Qun(a,"parent"))return h;do{var J=a==F?g.c4(R):ltI(R);h.x+=J.x;h.y+=J.y}while(a&&a!=F&&a!=a.parent&&(R=a.frameElement)&&(a=a.parent));return h}; g.W4=function(R,F){R=V6L(R);F=V6L(F);return new g.zq(R.x-F.x,R.y-F.y)}; ltI=function(R){R=Cb(R);return new g.zq(R.left,R.top)}; V6L=function(R){if(R.nodeType==1)return ltI(R);R=R.changedTouches?R.changedTouches[0]:R;return new g.zq(R.clientX,R.clientY)}; g.RP=function(R,F,h){if(F instanceof g.t7)h=F.height,F=F.width;else if(h==void 0)throw Error("missing height argument");R.style.width=g.VH(F,!0);R.style.height=g.VH(h,!0)}; g.VH=function(R,F){typeof R=="number"&&(R=(F?Math.round(R):R)+"px");return R}; g.FJ=function(R){var F=U47;if(D2(R,"display")!="none")return F(R);var h=R.style,a=h.display,J=h.visibility,M=h.position;h.visibility="hidden";h.position="absolute";h.display="inline";R=F(R);h.display=a;h.position=M;h.visibility=J;return R}; U47=function(R){var F=R.offsetWidth,h=R.offsetHeight,a=g.IG&&!F&&!h;return(F===void 0||a)&&R.getBoundingClientRect?(R=Cb(R),new g.t7(R.right-R.left,R.bottom-R.top)):new g.t7(F,h)}; g.ht=function(R,F){R.style.display=F?"":"none"}; aP=function(R){return R?R.passive&&C97()?R:R.capture||!1:!1}; Jt=function(R,F,h,a){return typeof R.addEventListener==="function"?(R.addEventListener(F,h,aP(a)),!0):!1}; Mx=function(R){if(R.prerendering)return 3;var F;return(F={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[R.visibilityState||R.webkitVisibilityState||R.mozVisibilityState||""])!=null?F:0}; cGO=function(){}; v_=function(R){R.ZpI=!0;return R}; W4B=function(){return(nM||u_)&&dd?dd.mobile:!IP()&&(zD("iPod")||zD("iPhone")||zD("Android")||zD("IEMobile"))}; IP=function(){return(nM||u_)&&dd?!dd.mobile&&(zD("iPad")||zD("Android")||zD("Silk")):zD("iPad")||zD("Android")&&!zD("Mobile")||zD("Silk")}; i1=function(R){try{return!!R&&R.location.href!=null&&Qun(R,"foo")}catch(F){return!1}}; wC=function(R,F){if(R)for(var h in R)Object.prototype.hasOwnProperty.call(R,h)&&F(R[h],h,R)}; FBB=function(){var R=[];wC(Ra2,function(F){R.push(F)}); return R}; ham=function(R){var F,h;return(h=(F=/https?:\/\/[^\/]+/.exec(R))==null?void 0:F[0])!=null?h:""}; MPm=function(){var R=a7_("IFRAME"),F={};g.Uv(JX2(),function(h){R.sandbox&&R.sandbox.supports&&R.sandbox.supports(h)&&(F[h]=!0)}); return F}; a7_=function(R,F){F=F===void 0?document:F;return F.createElement(String(R).toLowerCase())}; vmf=function(R){for(var F=R;R&&R!=R.parent;)R=R.parent,i1(R)&&(F=R);return F}; iM7=function(R){R=R||EQ();for(var F=new gmL(g.Wi.location.href,!1),h=null,a=R.length-1,J=a;J>=0;--J){var M=R[J];!h&&GDI.test(M.url)&&(h=M);if(M.url&&!M.B){F=M;break}}J=null;M=R.length&&R[a].url;F.depth!==0&&M&&(J=R[a]);return new I7L(F,J,h)}; EQ=function(){var R=g.Wi,F=[],h=null;do{var a=R;if(i1(a)){var J=a.location.href;h=a.document&&a.document.referrer||null}else J=h,h=null;F.push(new gmL(J||""));try{R=a.parent}catch(M){R=null}}while(R&&a!==R);a=0;for(R=F.length-1;a<=R;++a)F[a].depth=R-a;a=g.Wi;if(a.location&&a.location.ancestorOrigins&&a.location.ancestorOrigins.length===F.length-1)for(R=1;RF&&(F=h.length);return 3997-F-R.K.length-1}; sQ=function(R,F){this.B=R;this.depth=F}; rXg=function(){function R(I,w){return I==null?w:I} var F=EQ(),h=Math.max(F.length-1,0),a=iM7(F);F=a.B;var J=a.D,M=a.K,v=[];M&&v.push(new sQ([M.url,M.B?2:0],R(M.depth,1)));J&&J!=M&&v.push(new sQ([J.url,2],0));F.url&&F!=M&&v.push(new sQ([F.url,0],R(F.depth,h)));a=g.p1(v,function(I,w){return v.slice(0,v.length-w)}); !F.url||(M||J)&&F!=M||(J=ham(F.url))&&a.push([new sQ([J,1],R(F.depth,h))]);a.push([]);return g.p1(a,function(I){return Bd_(h,I)})}; Bd_=function(R,F){g.kz(F,function(J){return J.depth>=0}); var h=QU(F,function(J,M){return Math.max(J,M.depth)},-1),a=fT_(h+2); a[0]=R;g.Uv(F,function(J){return a[J.depth+1]=J.B}); return a}; YRm=function(){var R=R===void 0?rXg():R;return R.map(function(F){return Yz(F)})}; slL=function(R){var F=!1;F=F===void 0?!1:F;ju.google_image_requests||(ju.google_image_requests=[]);var h=a7_("IMG",ju.document);F&&(h.attributionSrc="");h.src=R;ju.google_image_requests.push(h)}; $z=function(R){var F="UT";if(R.UT&&R.hasOwnProperty(F))return R.UT;var h=new R;R.UT=h;R.hasOwnProperty(F);return h}; At=function(){this.D=new cGO;this.B=qS()?new fb:new yH}; pVO=function(){xz();var R=ju.document;return!!(R&&R.body&&R.body.getBoundingClientRect&&typeof ju.setInterval==="function"&&typeof ju.clearInterval==="function"&&typeof ju.setTimeout==="function"&&typeof ju.clearTimeout==="function")}; kDa=function(){xz();return YRm()}; Qlm=function(){}; xz=function(){var R=$z(Qlm);if(!R.B){if(!ju)throw Error("Context has not been set and window is undefined.");R.B=$z(At)}return R.B}; Nx=function(){throw Error("Invalid UTF8");}; $Jf=function(R,F){F=String.fromCharCode.apply(null,F);return R==null?F:R+F}; HM_=function(R){var F=!1;F=F===void 0?!1:F;if(AX7){if(F&&(xJI?!R.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(R)))throw Error("Found an unpaired surrogate");R=(Nd2||(Nd2=new TextEncoder)).encode(R)}else{for(var h=0,a=new Uint8Array(3*R.length),J=0;J>6|192;else{if(M>=55296&&M<=57343){if(M<=56319&&J=56320&&v<=57343){M=(M-55296)*1024+ v-56320+65536;a[h++]=M>>18|240;a[h++]=M>>12&63|128;a[h++]=M>>6&63|128;a[h++]=M&63|128;continue}else J--}if(F)throw Error("Found an unpaired surrogate");M=65533}a[h++]=M>>12|224;a[h++]=M>>6&63|128}a[h++]=M&63|128}}R=h===a.length?a:a.subarray(0,h)}return R}; H_=function(R){g.Wi.setTimeout(function(){throw R;},0)}; LBB=function(R){return Array.prototype.map.call(R,function(F){F=F.toString(16);return F.length>1?F:"0"+F}).join("")}; Tdn=function(R){for(var F=[],h=0;h>6|192:((J&64512)==55296&&a+1>18|240,F[h++]=J>>12&63|128):F[h++]=J>>12|224,F[h++]=J>>6&63|128),F[h++]=J&63|128)}return F}; g.Tf=function(R,F){F===void 0&&(F=0);yXO();F=qRL[F];for(var h=Array(Math.floor(R.length/3)),a=F[64]||"",J=0,M=0;J>2];v=F[(v&3)<<4|I>>4];I=F[(I&15)<<2|w>>6];w=F[w&63];h[M++]=""+E+v+I+w}E=0;w=a;switch(R.length-J){case 2:E=R[J+1],w=F[(E&15)<<2]||a;case 1:R=R[J],h[M]=""+F[R>>2]+F[(R&3)<<4|E>>4]+w+a}return h.join("")}; g.yU=function(R,F){if(f77&&!F)R=g.Wi.btoa(R);else{for(var h=[],a=0,J=0;J255&&(h[a++]=M&255,M>>=8);h[a++]=M}R=g.Tf(h,F)}return R}; ZMn=function(R){var F=[];jl_(R,function(h){F.push(h)}); return F}; qx=function(R){var F=R.length,h=F*3/4;h%3?h=Math.floor(h):g.Z7("=.",R[F-1])&&(h=g.Z7("=.",R[F-2])?h-2:h-1);var a=new Uint8Array(h),J=0;jl_(R,function(M){a[J++]=M}); return J!==h?a.subarray(0,J):a}; jl_=function(R,F){function h(w){for(;a>4);v!=64&&(F(M<<4&240|v>>2),I!=64&&F(v<<6&192|I))}}; yXO=function(){if(!f1){f1={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),F=["+/=","+/","-_=","-_.","-_"],h=0;h<5;h++){var a=R.concat(F[h].split(""));qRL[h]=a;for(var J=0;J=F||(a[R]=h+1,R=Error(),JG7(R,"incident"),H_(R))}}; XJ=function(R,F,h){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(h===void 0?0:h)&&Symbol.for&&R?Symbol.for(R):R!=null?Symbol(R):Symbol():F}; u1=function(R,F){eY||n1 in R||dJB(R,P_f);R[n1]|=F}; dC=function(R,F){eY||n1 in R||dJB(R,P_f);R[n1]=F}; P_=function(){return typeof BigInt==="function"}; K1=function(R,F){return F===void 0?R.B!==zf&&!!(2&(R.Bo[n1]|0)):!!(2&F)&&R.B!==zf}; zaf=function(R,F){if(R!=null)if(typeof R==="string")R=R?new jY(R,Zh):b1();else if(R.constructor!==jY)if(nmi&&R!=null&&R instanceof Uint8Array)R=R.length?new jY(new Uint8Array(R),Zh):b1();else{if(!F)throw Error();R=void 0}return R}; tt=function(R,F){if(typeof F!=="number"||F<0||F>=R.length)throw Error();}; KBO=function(R,F,h){var a=F&128?0:-1,J=R.length,M;if(M=!!J)M=R[J-1],M=M!=null&&typeof M==="object"&&M.constructor===Object;var v=J+(M?-1:0);for(F=F&128?1:0;FF.length)return!1;if(R.lengthJ)return!1;if(a>>0;W_=F;R1=(R-F)/4294967296>>>0}; a1=function(R){if(R<0){Fj(0-R);var F=g.N(hx(W_,R1));R=F.next().value;F=F.next().value;W_=R>>>0;R1=F>>>0}else Fj(R)}; MI=function(R,F){var h=F*4294967296+(R>>>0);return Number.isSafeInteger(h)?h:Jx(R,F)}; UJa=function(R,F){var h=F&2147483648;h&&(R=~R+1>>>0,F=~F>>>0,R==0&&(F=F+1>>>0));R=MI(R,F);return typeof R==="number"?h?-R:R:h?"-"+R:R}; Jx=function(R,F){F>>>=0;R>>>=0;if(F<=2097151)var h=""+(4294967296*F+R);else P_()?h=""+(BigInt(F)<>>24|F<<8)&16777215,F=F>>16&65535,R=(R&16777215)+h*6777216+F*6710656,h+=F*8147497,F*=2,R>=1E7&&(h+=R/1E7>>>0,R%=1E7),h>=1E7&&(F+=h/1E7>>>0,h%=1E7),h=F+C_T(h)+C_T(R));return h}; C_T=function(R){R=String(R);return"0000000".slice(R.length)+R}; cXg=function(){var R=W_,F=R1;F&2147483648?P_()?R=""+(BigInt(F|0)<>>0)):(F=g.N(hx(R,F)),R=F.next().value,F=F.next().value,R="-"+Jx(R,F)):R=Jx(R,F);return R}; vX=function(R){if(R.length<16)a1(Number(R));else if(P_())R=BigInt(R),W_=Number(R&BigInt(4294967295))>>>0,R1=Number(R>>BigInt(32)&BigInt(4294967295));else{var F=+(R[0]==="-");R1=W_=0;for(var h=R.length,a=0+F,J=(h-F)%6+F;J<=h;a=J,J+=6)a=Number(R.slice(a,J)),R1*=1E6,W_=W_*1E6+a,W_>=4294967296&&(R1+=Math.trunc(W_/4294967296),R1>>>=0,W_>>>=0);F&&(F=g.N(hx(W_,R1)),R=F.next().value,F=F.next().value,W_=R,R1=F)}}; hx=function(R,F){F=~F;R?R=~R+1:F+=1;return[R,F]}; gR=function(R){return Array.prototype.slice.call(R)}; Gr=function(R){if(R!=null&&typeof R!=="number")throw Error("Value of float/double field must be a number, found "+typeof R+": "+R);return R}; WBn=function(R){return R.displayName||R.name||"unknown type name"}; I1=function(R){if(R!=null&&typeof R!=="boolean")throw Error("Expected boolean but got "+rf7(R)+": "+R);return R}; wR=function(R){switch(typeof R){case "bigint":return!0;case "number":return ix(R);case "string":return RA2.test(R);default:return!1}}; F3I=function(R){if(typeof R!=="number")throw mu("int32");if(!ix(R))throw mu("int32");return R|0}; En=function(R){return R==null?R:F3I(R)}; BX=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return ix(R)?R|0:void 0}; rR=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return ix(R)?R>>>0:void 0}; J7a=function(R){var F=0;F=F===void 0?0:F;if(!wR(R))throw mu("int64");var h=typeof R;switch(F){case 512:switch(h){case "string":return Yi(R);case "bigint":return String(sn(64,R));default:return QK(R)}case 1024:switch(h){case "string":return hAa(R);case "bigint":return UQ(sn(64,R));default:return a$a(R)}case 0:switch(h){case "string":return Yi(R);case "bigint":return UQ(sn(64,R));default:return $i(R)}default:return wU(F,"Unknown format requested type for int64")}}; Ax=function(R){return R==null?R:J7a(R)}; MWm=function(R){if(R[0]==="-")return!1;var F=R.length;return F<20?!0:F===20&&Number(R.substring(0,6))<184467}; vN_=function(R){var F=R.length;return R[0]==="-"?F<20?!0:F===20&&Number(R.substring(0,7))>-922337:F<19?!0:F===19&&Number(R.substring(0,6))<922337}; gNL=function(R){if(R<0){a1(R);var F=Jx(W_,R1);R=Number(F);return xi(R)?R:F}F=String(R);if(MWm(F))return F;a1(R);return MI(W_,R1)}; GqO=function(R){if(vN_(R))return R;vX(R);return cXg()}; $i=function(R){wR(R);R=NI(R);xi(R)||(a1(R),R=UJa(W_,R1));return R}; QK=function(R){wR(R);R=NI(R);if(xi(R))R=String(R);else{var F=String(R);vN_(F)?R=F:(a1(R),R=cXg())}return R}; Yi=function(R){wR(R);var F=NI(Number(R));if(xi(F))return String(F);F=R.indexOf(".");F!==-1&&(R=R.substring(0,F));return GqO(R)}; hAa=function(R){var F=NI(Number(R));if(xi(F))return UQ(F);F=R.indexOf(".");F!==-1&&(R=R.substring(0,F));return P_()?UQ(sn(64,BigInt(R))):UQ(GqO(R))}; a$a=function(R){return xi(R)?UQ($i(R)):UQ(QK(R))}; I$m=function(R){if(R==null)return R;var F=typeof R;if(F==="bigint")return String(sn(64,R));if(wR(R)){if(F==="string")return Yi(R);if(F==="number")return $i(R)}}; wZg=function(R){if(R==null)return R;var F=typeof R;if(F==="bigint")return String(ihg(64,R));if(wR(R)){if(F==="string")return wR(R),F=NI(Number(R)),xi(F)&&F>=0?R=String(F):(F=R.indexOf("."),F!==-1&&(R=R.substring(0,F)),MWm(R)||(vX(R),R=Jx(W_,R1))),R;if(F==="number")return wR(R),R=NI(R),R>=0&&xi(R)?R:gNL(R)}}; EN7=function(R){if(R==null||typeof R=="string"||R instanceof jY)return R}; BUL=function(R){if(typeof R!=="string")throw Error();return R}; HX=function(R){if(R!=null&&typeof R!=="string")throw Error();return R}; Lr=function(R){return R==null||typeof R==="string"?R:void 0}; Tr=function(R,F){if(!(R instanceof F))throw Error("Expected instanceof "+WBn(F)+" but got "+(R&&WBn(R.constructor)));return R}; r7i=function(R,F,h){if(R!=null&&R[yK]===qI)return R;if(Array.isArray(R)){var a=R[n1]|0;h=a|h&32|h&2;h!==a&&dC(R,h);return new F(R)}}; fr=function(R){return R}; Zf=function(R){var F=Ev(jX);return F?R[F]:void 0}; bx=function(){}; SX=function(R,F){for(var h in R)!isNaN(h)&&F(R,+h,R[h])}; YWg=function(R){var F=new bx;SX(R,function(h,a,J){F[a]=gR(J)}); F.Lf=R.Lf;return F}; pZm=function(R,F){F<100||oP(saf,1)}; m9=function(R,F,h,a){var J=a!==void 0;a=!!a;var M=Ev(jX),v;!J&&eY&&M&&(v=R[M])&&SX(v,pZm);M=[];var I=R.length;v=4294967295;var w=!1,E=!!(F&64),B=E?F&128?0:-1:void 0;if(!(F&1)){var r=I&&R[I-1];r!=null&&typeof r==="object"&&r.constructor===Object?(I--,v=I):r=void 0;if(E&&!(F&128)&&!J){w=!0;var Y;v=((Y=On)!=null?Y:fr)(v-B,B,R,r)+B}}F=void 0;for(Y=0;Y=v){var k=Y-B,H=void 0;((H=F)!=null?H:F={})[k]=p}else M[Y]=p}if(r)for(var T in r)I=r[T],I!=null&& (I=h(I,a))!=null&&(Y=+T,p=void 0,E&&!Number.isNaN(Y)&&(p=Y+B)0?void 0:R===0?xk_||(xk_=[0,void 0]):[-R,void 0];case "string":return[0,R];case "object":return R}}; PX=function(R,F,h){return R=dR(R,F[0],F[1],h?1:2)}; dR=function(R,F,h,a){a=a===void 0?0:a;if(R==null){var J=32;h?(R=[h],J|=128):R=[];F&&(J=J&-8380417|(F&1023)<<13)}else{if(!Array.isArray(R))throw Error("narr");J=R[n1]|0;2048&J&&!(2&J)&&Hhm();if(J&256)throw Error("farr");if(J&64)return a!==0||J&2048||dC(R,J|2048),R;if(h&&(J|=128,h!==R[0]))throw Error("mid");a:{h=R;J|=64;var M=h.length;if(M){var v=M-1,I=h[v];if(I!=null&&typeof I==="object"&&I.constructor===Object){F=J&128?0:-1;v-=F;if(v>=1024)throw Error("pvtlmt");for(var w in I)M=+w,M1024)throw Error("spvt");J=J&-8380417|(w&1023)<<13}}}J|=64;a===0&&(J|=2048);dC(R,J);return R}; Hhm=function(){oP(L37,5)}; TUB=function(R,F){if(typeof R!=="object")return R;if(Array.isArray(R)){var h=R[n1]|0;R.length===0&&h&1?R=void 0:h&2||(!F||4096&h||16&h?R=zr(R,h,!1,F&&!(h&16)):(u1(R,34),h&4&&Object.freeze(R)));return R}if(R!=null&&R[yK]===qI)return F=R.Bo,h=F[n1]|0,K1(R,h)?R:Kr(R,F,h)?tx(R,F):zr(F,h);if(R instanceof jY)return R}; tx=function(R,F,h){R=new R.constructor(F);h&&(R.B=zf);R.D=zf;return R}; zr=function(R,F,h,a){a!=null||(a=!!(34&F));R=m9(R,F,TUB,a);a=32;h&&(a|=2);F=F&8380609|a;dC(R,F);return R}; y7f=function(R){var F=R.Bo,h=F[n1]|0;return K1(R,h)?Kr(R,F,h)?tx(R,F,!0):new R.constructor(zr(F,h,!1)):R}; lx=function(R){if(R.B!==zf)return!1;var F=R.Bo;F=zr(F,F[n1]|0);u1(F,2048);R.Bo=F;R.B=void 0;R.D=void 0;return!0}; Df=function(R){if(!lx(R)&&K1(R,R.Bo[n1]|0))throw Error();}; VK=function(R,F){F===void 0&&(F=R[n1]|0);F&32&&!(F&4096)&&dC(R,F|4096)}; Kr=function(R,F,h){return h&2?!0:h&32&&!(h&4096)?(dC(F,h|2),R.B=zf,!0):!1}; Cr=function(R,F,h,a,J){Object.isExtensible(R);F=Un(R.Bo,F,h,J);if(F!==null||a&&R.D!==zf)return F}; Un=function(R,F,h,a){if(F===-1)return null;var J=F+(h?0:-1),M=R.length-1;if(!(M<1+(h?0:-1))){if(J>=M){var v=R[M];if(v!=null&&typeof v==="object"&&v.constructor===Object){h=v[F];var I=!0}else if(J===M)h=v;else return}else h=R[J];if(a&&h!=null){a=a(h);if(a==null)return a;if(!Object.is(a,h))return I?v[F]=a:R[J]=a,a}return h}}; WX=function(R,F,h,a){Df(R);var J=R.Bo;cX(J,J[n1]|0,F,h,a);return R}; cX=function(R,F,h,a,J){var M=h+(J?0:-1),v=R.length-1;if(v>=1+(J?0:-1)&&M>=v){var I=R[v];if(I!=null&&typeof I==="object"&&I.constructor===Object)return I[h]=a,F}if(M<=v)return R[M]=a,F;if(a!==void 0){var w;v=((w=F)!=null?w:F=R[n1]|0)>>13&1023||536870912;h>=v?a!=null&&(M={},R[v+(J?0:-1)]=(M[h]=a,M)):R[M]=a}return F}; Jy=function(R,F,h,a,J){var M=R.Bo,v=M[n1]|0;a=K1(R,v)?1:a;J=!!J||a===3;a===2&&lx(R)&&(M=R.Bo,v=M[n1]|0);R=RH(M,F);var I=R===FF?7:R[n1]|0,w=hy(I,v);var E=4&w?!1:!0;if(E){4&w&&(R=gR(R),I=0,w=aH(w,v),v=cX(M,v,F,R));for(var B=0,r=0;B "+R)}; XF=function(R,F,h){this.buffer=R;if(h&&!F)throw Error();this.B=F}; eb=function(R,F){if(typeof R==="string")return new XF(omO(R),F);if(Array.isArray(R))return new XF(new Uint8Array(R),F);if(R.constructor===Uint8Array)return new XF(R,!1);if(R.constructor===ArrayBuffer)return R=new Uint8Array(R),new XF(R,!1);if(R.constructor===jY)return F=SY(R)||new Uint8Array(0),new XF(F,!0,R);if(R instanceof Uint8Array)return R=R.constructor===Uint8Array?R:new Uint8Array(R.buffer,R.byteOffset,R.byteLength),new XF(R,!1);throw Error();}; nK=function(R,F,h,a){this.D=null;this.N=!1;this.B=this.K=this.L=0;this.init(R,F,h,a)}; dX=function(R){var F=0,h=0,a=0,J=R.D,M=R.B;do{var v=J[M++];F|=(v&127)<32&&(h|=(v&127)>>4);for(a=3;a<32&&v&128;a+=7)v=J[M++],h|=(v&127)<>>0,h>>>0);throw oH();}; u3=function(R,F){R.B=F;if(F>R.K)throw nNL(R.K,F);}; Pw=function(R){var F=R.D,h=R.B,a=F[h++],J=a&127;if(a&128&&(a=F[h++],J|=(a&127)<<7,a&128&&(a=F[h++],J|=(a&127)<<14,a&128&&(a=F[h++],J|=(a&127)<<21,a&128&&(a=F[h++],J|=a<<28,a&128&&F[h++]&128&&F[h++]&128&&F[h++]&128&&F[h++]&128&&F[h++]&128)))))throw oH();u3(R,h);return J}; zF=function(R){var F=R.D,h=R.B,a=F[h+0],J=F[h+1],M=F[h+2];F=F[h+3];u3(R,R.B+4);return(a<<0|J<<8|M<<16|F<<24)>>>0}; KK=function(R){var F=zF(R);R=zF(R);return MI(F,R)}; ty=function(R){var F=zF(R),h=zF(R);R=(h>>31)*2+1;var a=h>>>20&2047;F=4294967296*(h&1048575)+F;return a==2047?F?NaN:R*Infinity:a==0?R*4.9E-324*F:R*Math.pow(2,a-1075)*(F+4503599627370496)}; l3=function(R){for(var F=0,h=R.B,a=h+10,J=R.D;hR.K)throw nNL(F,R.K-h);R.B=a;return h}; Pug=function(R,F){if(F==0)return b1();var h=uwO(R,F);R.Xe&&R.N?h=R.D.subarray(h,h+F):(R=R.D,F=h+F,h=h===F?new Uint8Array(0):dk_?R.slice(h,F):new Uint8Array(R.subarray(h,F)));return h.length==0?b1():new jY(h,Zh)}; Vx=function(R,F,h,a){if(Da.length){var J=Da.pop();J.init(R,F,h,a);R=J}else R=new nK(R,F,h,a);this.B=R;this.K=this.B.B;this.D=this.L=-1;zAL(this,a)}; zAL=function(R,F){F=F===void 0?{}:F;R.Fy=F.Fy===void 0?!1:F.Fy}; K3B=function(R,F,h,a){if(U1.length){var J=U1.pop();zAL(J,a);J.B.init(R,F,h,a);return J}return new Vx(R,F,h,a)}; tWm=function(R){var F=R.B;if(F.B==F.K)return!1;R.K=R.B.B;var h=Pw(R.B)>>>0;F=h>>>3;h&=7;if(!(h>=0&&h<=5))throw eAi(h,R.K);if(F<1)throw Error("Invalid field number: "+F+" (at position "+R.K+")");R.L=F;R.D=h;return!0}; CK=function(R){switch(R.D){case 0:R.D!=0?CK(R):l3(R.B);break;case 1:R=R.B;u3(R,R.B+8);break;case 2:if(R.D!=2)CK(R);else{var F=Pw(R.B)>>>0;R=R.B;u3(R,R.B+F)}break;case 5:R=R.B;u3(R,R.B+4);break;case 3:F=R.L;do{if(!tWm(R))throw Error("Unmatched start-group tag: stream EOF");if(R.D==4){if(R.L!=F)throw Error("Unmatched end-group tag");break}CK(R)}while(1);break;default:throw eAi(R.D,R.K);}}; cw=function(R,F,h){var a=R.B.K,J=Pw(R.B)>>>0,M=R.B.B+J,v=M-a;v<=0&&(R.B.K=M,h(F,R,void 0,void 0,void 0),v=M-R.B.B);if(v)throw Error("Message parsing ended unexpectedly. Expected to read "+(J+" bytes, instead read "+(J-v)+" bytes, either the data ended unexpectedly or the message misreported its own length"));R.B.B=M;R.B.K=a}; ic=function(R){var F=Pw(R.B)>>>0;R=R.B;var h=uwO(R,F);R=R.D;if(l$B){var a=R,J;(J=Ww)||(J=Ww=new TextDecoder("utf-8",{fatal:!0}));F=h+F;a=h===0&&F===a.length?a:a.subarray(h,F);try{var M=J.decode(a)}catch(E){if(Id===void 0){try{J.decode(new Uint8Array([128]))}catch(B){}try{J.decode(new Uint8Array([97])),Id=!0}catch(B){Id=!1}}!Id&&(Ww=void 0);throw E;}}else{M=h;F=M+F;h=[];for(var v=null,I,w;M=F?Nx():(w=R[M++],I<194||(w&192)!==128?(M--,Nx()):h.push((I&31)<<6|w&63)): I<240?M>=F-1?Nx():(w=R[M++],(w&192)!==128||I===224&&w<160||I===237&&w>=160||((J=R[M++])&192)!==128?(M--,Nx()):h.push((I&15)<<12|(w&63)<<6|J&63)):I<=244?M>=F-2?Nx():(w=R[M++],(w&192)!==128||(I<<28)+(w-144)>>30!==0||((J=R[M++])&192)!==128||((a=R[M++])&192)!==128?(M--,Nx()):(I=(I&7)<<18|(w&63)<<12|(J&63)<<6|a&63,I-=65536,h.push((I>>10&1023)+55296,(I&1023)+56320))):Nx(),h.length>=8192&&(v=$Jf(v,h),h.length=0);M=$Jf(v,h)}return M}; Dki=function(R){var F=Pw(R.B)>>>0;return Pug(R.B,F)}; wj=function(R,F){this.D=R>>>0;this.B=F>>>0}; UkL=function(R){if(!R)return VW7||(VW7=new wj(0,0));if(!/^\d+$/.test(R))return null;vX(R);return new wj(W_,R1)}; E8=function(R,F){this.D=R>>>0;this.B=F>>>0}; c7L=function(R){if(!R)return Cum||(Cum=new E8(0,0));if(!/^-?\d+$/.test(R))return null;vX(R);return new E8(W_,R1)}; BJ=function(){this.B=[]}; rj=function(R,F,h){for(;h>0||F>127;)R.B.push(F&127|128),F=(F>>>7|h<<25)>>>0,h>>>=7;R.B.push(F)}; Yd=function(R,F){for(;F>127;)R.B.push(F&127|128),F>>>=7;R.B.push(F)}; W3i=function(R,F){if(F>=0)Yd(R,F);else{for(var h=0;h<9;h++)R.B.push(F&127|128),F>>=7;R.B.push(1)}}; s8=function(R,F){R.B.push(F>>>0&255);R.B.push(F>>>8&255);R.B.push(F>>>16&255);R.B.push(F>>>24&255)}; Rwa=function(){this.K=[];this.D=0;this.B=new BJ}; pE=function(R,F){F.length!==0&&(R.K.push(F),R.D+=F.length)}; FO_=function(R,F){kd(R,F,2);F=R.B.end();pE(R,F);F.push(R.D);return F}; hwm=function(R,F){var h=F.pop();for(h=R.D+R.B.length()-h;h>127;)F.push(h&127|128),h>>>=7,R.D++;F.push(h);R.D++}; kd=function(R,F,h){Yd(R.B,F*8+h)}; a2L=function(R,F,h){if(h!=null){switch(typeof h){case "string":UkL(h)}kd(R,F,1);switch(typeof h){case "number":R=R.B;Fj(h);s8(R,W_);s8(R,R1);break;case "bigint":h=BigInt.asUintN(64,h);h=new wj(Number(h&BigInt(4294967295)),Number(h>>BigInt(32)));R=R.B;F=h.B;s8(R,h.D);s8(R,F);break;default:h=UkL(h),R=R.B,F=h.B,s8(R,h.D),s8(R,F)}}}; Qt=function(R,F,h){kd(R,F,2);Yd(R.B,h.length);pE(R,R.B.end());pE(R,h)}; $d=function(){function R(){throw Error();} Object.setPrototypeOf(R,R.prototype);return R}; Ap=function(R,F,h){this.Bo=dR(R,F,h)}; JRT=function(R,F){if(F==null||F=="")return new R;F=JSON.parse(F);if(!Array.isArray(F))throw Error("dnarr");u1(F,32);return new R(F)}; NC=function(R,F,h){this.Ji=R;this.T4=F;R=Ev(xd);this.B=!!R&&h===R||!1}; HJ=function(R,F){var h=h===void 0?xd:h;return new NC(R,F,h)}; vTi=function(R,F,h,a,J){F=Mug(F,a);F!=null&&(h=FO_(R,h),J(F,R),hwm(R,h))}; qC=function(R,F,h,a){var J=a[R];if(J)return J;J={};J.I$=a;J.mu=NUB(a[0]);var M=a[1],v=1;M&&M.constructor===Object&&(J.extensions=M,M=a[++v],typeof M==="function"&&(J.sE=!0,LE!=null||(LE=M),TY!=null||(TY=a[v+1]),M=a[v+=2]));for(var I={};M&&Array.isArray(M)&&M.length&&typeof M[0]==="number"&&M[0]>0;){for(var w=0;w>BigInt(32)));rj(R.B,h.D,h.B);break;default:h=c7L(F),rj(R.B,h.D,h.B)}}}; CE=function(R,F,h){F=BX(F);F!=null&&F!=null&&(kd(R,h,0),W3i(R.B,F))}; QGi=function(R,F,h){F=F==null||typeof F==="boolean"?F:typeof F==="number"?!!F:void 0;F!=null&&(kd(R,h,0),R.B.B.push(F?1:0))}; $Sg=function(R,F,h){F=Lr(F);F!=null&&Qt(R,h,HM_(F))}; ARO=function(R,F,h,a,J){F=Mug(F,a);F!=null&&(h=FO_(R,h),J(F,R),hwm(R,h))}; NsI=function(){var R=cJ;this.B=xSB;this.isRepeated=0;this.D=pK;this.defaultValue=void 0;this.K=R.messageId!=null?l1:void 0}; Hb2=function(R){return function(){var F=new Rwa;Y$g(this.Bo,F,qC(XL,O8,PJ,R));pE(F,F.B.end());for(var h=new Uint8Array(F.D),a=F.K,J=a.length,M=0,v=0;v-1)return F.apply(null,g.S(h));try{return R.B=R.K.B.now(),F.apply(null,g.S(h))}finally{R.L+=R.K.B.now()-R.B,R.B=-1,R.D+=1}}}; Ts_=function(R,F){this.D=R;this.K=F;this.B=new LOB(R)}; yRT=function(){this.B={}}; f2n=function(){var R=hS().flags,F=q$L;R=R.B[F.key];if(F.valueType==="proto"){try{var h=JSON.parse(R);if(Array.isArray(h))return h}catch(a){}return F.defaultValue}return typeof R===typeof F.defaultValue?R:F.defaultValue}; S$i=function(){this.K=void 0;this.D=this.S=0;this.N=-1;this.Gn=new NJ;HV(this.Gn,"mv",jGi).B=!0;HV(this.Gn,"omid",qJ);HV(this.Gn,"epoh",qJ).B=!0;HV(this.Gn,"epph",qJ).B=!0;HV(this.Gn,"umt",qJ).B=!0;HV(this.Gn,"phel",qJ).B=!0;HV(this.Gn,"phell",qJ).B=!0;HV(this.Gn,"oseid",Zbi).B=!0;var R=this.Gn;R.B.sloi||(R.B.sloi=new AX);R.B.sloi.B=!0;HV(this.Gn,"mm",a8);HV(this.Gn,"ovms",bbi).B=!0;HV(this.Gn,"xdi",qJ).B=!0;HV(this.Gn,"amp",qJ).B=!0;HV(this.Gn,"prf",qJ).B=!0;HV(this.Gn,"gtx",qJ).B=!0;HV(this.Gn, "mvp_lv",qJ).B=!0;HV(this.Gn,"ssmol",qJ).B=!0;HV(this.Gn,"fmd",qJ).B=!0;HV(this.Gn,"gen204simple",qJ);this.B=new Ts_(xz(),this.Gn);this.L=!1;this.flags=new yRT}; hS=function(){return $z(S$i)}; ObT=function(R,F,h,a){if(Math.random()<(a||R.B))try{if(h instanceof B_)var J=h;else J=new B_,wC(h,function(v,I){var w=J,E=w.L++;v=rC(I,v);w.B.push(E);w.D[E]=v}); var M=J.hT(R.D,"pagead2.googlesyndication.com","/pagead/gen_204?id="+F+"&");M&&(xz(),slL(M))}catch(v){}}; mSa=function(R,F,h){h=h===void 0?{}:h;this.error=R;this.meta=h;this.context=F.context;this.msg=F.message||"";this.id=F.id||"jserror"}; oTn=function(){var R=R===void 0?g.Wi:R;return(R=R.performance)&&R.now&&R.timing?Math.floor(R.now()+R.timing.navigationStart):g.w7()}; X4i=function(){var R=R===void 0?g.Wi:R;return(R=R.performance)&&R.now?R.now():null}; ew_=function(R,F,h){this.label=R;this.type=F;this.value=h;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; M1=function(){var R=window;this.events=[];this.D=R||g.Wi;var F=null;R&&(R.google_js_reporting_queue=R.google_js_reporting_queue||[],this.events=R.google_js_reporting_queue,F=R.google_measure_js_timing);this.B=JS()||(F!=null?F:Math.random()<1)}; nTm=function(R){R&&vC&&JS()&&(vC.clearMarks("goog_"+R.label+"_"+R.uniqueId+"_start"),vC.clearMarks("goog_"+R.label+"_"+R.uniqueId+"_end"))}; gy=function(R,F,h,a,J,M,v){var I="";R&&(I+=R+":");h&&(I+="//",F&&(I+=F+"@"),I+=h,a&&(I+=":"+a));J&&(I+=J);M&&(I+="?"+M);v&&(I+="#"+v);return I}; g.Gg=function(R){return R.match(uWL)}; dS_=function(R){return R?decodeURI(R):R}; g.I8=function(R){return dS_(g.Gg(R)[3]||null)}; ib=function(R){return dS_(g.Gg(R)[5]||null)}; g.PXm=function(R){R=g.Gg(R);return gy(R[1],R[2],R[3],R[4])}; wy=function(R){R=g.Gg(R);return gy(null,null,null,null,R[5],R[6],R[7])}; zwO=function(R){var F=R.indexOf("#");return F<0?R:R.slice(0,F)}; EA=function(R,F){if(R){R=R.split("&");for(var h=0;h=0){var M=R[h].substring(0,a);J=R[h].substring(a+1)}else M=R[h];F(M,J?fh(J):"")}}}; BC=function(R,F){if(!F)return R;var h=R.indexOf("#");h<0&&(h=R.length);var a=R.indexOf("?");if(a<0||a>h){a=h;var J=""}else J=R.substring(a+1,h);R=[R.slice(0,a),J,R.slice(h)];h=R[1];R[1]=F?h?h+"&"+F:F:h;return R[0]+(R[1]?"?"+R[1]:"")+R[2]}; ry=function(R,F,h){if(Array.isArray(F))for(var a=0;a=0&&Fh)J=h;a+=F.length+1;return fh(R.slice(a,J!==-1?J:0))}; xR=function(R,F){for(var h=R.search(Qg),a=0,J,M=[];(J=kR(R,a,F,h))>=0;)M.push(R.substring(a,J)),a=Math.min(R.indexOf("&",J)+1||h,h);M.push(R.slice(a));return M.join("").replace(l2n,"$1")}; DSa=function(R,F,h){return pT(xR(R,F),F,h)}; VuI=function(){var R=N1;this.B=HC;this.YI="jserror";this.nf=!0;this.Ib=null;this.D=this.pC;this.tp=R===void 0?null:R}; USi=function(R,F,h){var a=LT;return F1(hS().B.B,function(){try{if(a.tp&&a.tp.B){var J=a.tp.start(R.toString(),3);var M=F();a.tp.end(J)}else M=F()}catch(I){var v=a.nf;try{nTm(J),v=a.D(R,new Tg(yg(I)),void 0,h)}catch(w){a.pC(217,w)}if(!v)throw I;}return M})()}; q1=function(R,F,h,a){return F1(hS().B.B,function(){var J=g.u7.apply(0,arguments);return USi(R,function(){return F.apply(h,J)},a)})}; yg=function(R){var F=R.toString();R.name&&F.indexOf(R.name)==-1&&(F+=": "+R.name);R.message&&F.indexOf(R.message)==-1&&(F+=": "+R.message);if(R.stack)a:{R=R.stack;var h=F;try{R.indexOf(h)==-1&&(R=h+"\n"+R);for(var a;R!=a;)a=R,R=R.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");F=R.replace(/\n */g,"\n");break a}catch(J){F=h;break a}F=void 0}return F}; Tg=function(R){mSa.call(this,Error(R),{message:R})}; CXi=function(){ju&&typeof ju.google_measure_js_timing!="undefined"&&(ju.google_measure_js_timing||N1.disable())}; cRI=function(R){LT.Ib=function(F){g.Uv(R,function(h){h(F)})}}; WOO=function(R,F){return USi(R,F)}; fT=function(R,F){return q1(R,F)}; jv=function(R,F,h,a){LT.pC(R,F,h,a)}; Zn=function(){return Date.now()-R67}; FuO=function(){var R=hS().K,F=bb>=0?Zn()-bb:-1,h=Sv?Zn()-OA:-1,a=mG>=0?Zn()-mG:-1;if(R==947190542)return 100;if(R==79463069)return 200;R=[2E3,4E3];var J=[250,500,1E3];jv(637,Error(),.001);var M=F;h!=-1&&h1500&&a<4E3?500:v}; o8=function(R,F,h){var a=new oG(0,0,0,0);this.time=R;this.volume=null;this.K=F;this.B=a;this.D=h}; X1=function(R,F,h,a,J,M,v,I){this.L=R;this.Y=F;this.K=h;this.S=a;this.B=J;this.N=M;this.D=v;this.Z=I}; ahL=function(R){var F=R!==R.top,h=R.top===vmf(R),a=-1,J=0;if(F&&h&&R.top.mraid){a=3;var M=R.top.mraid}else a=(M=R.mraid)?F?h?2:1:0:-1;M&&(M.IS_GMA_SDK||(J=2),b_g(h67,function(v){return typeof M[v]==="function"})||(J=1)); return{zK:M,compatibility:J,z0Q:a}}; Jtn=function(){var R=window.document;return R&&typeof R.elementFromPoint==="function"}; MYO=function(R,F,h){if(R&&F!==null&&F!=F.top){if(!F.top)return new g.t7(-12245933,-12245933);F=F.top}try{return(h===void 0?0:h)?(new g.t7(F.innerWidth,F.innerHeight)).round():m4i(F||window).round()}catch(a){return new g.t7(-12245933,-12245933)}}; ev=function(R,F,h){try{if(R){if(!F.top)return new oG(-12245933,-12245933,-12245933,-12245933);F=F.top}var a=MYO(R,F,h),J=a.height,M=a.width;if(M===-12245933)return new oG(M,M,M,M);var v=hR(F.document);var I=Xh2(v.B);var w=I.x,E=I.y;return new oG(E,w+M,E+J,w)}catch(B){return new oG(-12245933,-12245933,-12245933,-12245933)}}; nT=function(R,F){F=Math.pow(10,F);return Math.floor(R*F)/F}; vz7=function(R){return new oG(R.top,R.right,R.bottom,R.left)}; gzO=function(R){var F=R.top||0,h=R.left||0;return new oG(F,h+(R.width||0),F+(R.height||0),h)}; ub=function(R){return R!=null&&R>=0&&R<=1}; GfB=function(){var R=g.ol();return R?dy("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(F){return b_(R,F)})||b_(R,"OMI/")&&!b_(R,"XiaoMi/")?!0:b_(R,"Presto")&&b_(R,"Linux")&&!b_(R,"X11")&&!b_(R,"Android")&&!b_(R,"Mobi"):!1}; Ih2=function(){this.K=!i1(ju.top);this.isMobileDevice=IP()||W4B();var R=EQ();this.domain=R.length>0&&R[R.length-1]!=null&&R[R.length-1].url!=null?g.I8(R[R.length-1].url)||"":"";this.B=new oG(0,0,0,0);this.L=new g.t7(0,0);this.N=new g.t7(0,0);this.Y=new oG(0,0,0,0);this.frameOffset=new g.zq(0,0);this.S=0;this.Z=!1;this.D=!(!ju||!ahL(ju).zK);this.update(ju)}; i1f=function(R,F){F&&F.screen&&(R.L=new g.t7(F.screen.width,F.screen.height))}; w_O=function(R,F){a:{var h=R.B?new g.t7(XW(R.B),R.B.getHeight()):new g.t7(0,0);F=F===void 0?ju:F;F!==null&&F!=F.top&&(F=F.top);var a=0,J=0;try{var M=F.document,v=M.body,I=M.documentElement;if(M.compatMode=="CSS1Compat"&&I.scrollHeight)a=I.scrollHeight!=h.height?I.scrollHeight:I.offsetHeight,J=I.scrollWidth!=h.width?I.scrollWidth:I.offsetWidth;else{var w=I.scrollHeight,E=I.scrollWidth,B=I.offsetHeight,r=I.offsetWidth;I.clientHeight!=B&&(w=v.scrollHeight,E=v.scrollWidth,B=v.offsetHeight,r=v.offsetWidth); w>h.height?w>B?(a=w,J=E):(a=B,J=r):w0||R.Z)return!0;R=xz().D.isVisible();var F=Mx(zg)===0;return R||F}; PC=function(){return $z(Ih2)}; tS=function(R){this.K=R;this.D=0;this.B=null}; lb=function(R,F,h){this.K=R;this.NQ=h===void 0?"na":h;this.N=[];this.isInitialized=!1;this.L=new o8(-1,!0,this);this.B=this;this.Z=F;this.oR=this.C=!1;this.fI="uk";this.Uz=!1;this.S=!0}; Dn=function(R,F){g.x7(R.N,F)||(R.N.push(F),F.XL(R.B),F.TE(R.L),F.hO()&&(R.C=!0))}; Ezf=function(R){R=R.B;R.oV();R.BD();var F=PC();F.Y=ev(!1,R.K,F.isMobileDevice);w_O(PC(),R.K);R.L.B=R.R4()}; BCT=function(R){R.C=R.N.length?dy(R.N,function(F){return F.hO()}):!1}; rtB=function(R){var F=g.Zt(R.N);g.Uv(F,function(h){h.TE(R.L)})}; Vg=function(R){var F=g.Zt(R.N);g.Uv(F,function(h){h.XL(R.B)}); R.B!=R||rtB(R)}; UA=function(R,F,h,a){this.element=R;this.B=new oG(0,0,0,0);this.K=null;this.S=new oG(0,0,0,0);this.D=F;this.Gn=h;this.Uz=a;this.KI=!1;this.timestamp=-1;this.C=new X1(F.L,this.element,this.B,new oG(0,0,0,0),0,0,Zn(),0);this.N=void 0}; YQn=function(R,F){return R.N?new oG(Math.max(F.top+R.N.top,F.top),Math.min(F.left+R.N.right,F.right),Math.min(F.top+R.N.bottom,F.bottom),Math.max(F.left+R.N.left,F.left)):F.clone()}; CT=function(R){this.N=!1;this.B=R;this.L=function(){}}; sPL=function(R,F,h){this.K=h===void 0?0:h;this.D=R;this.B=F==null?"":F}; p_L=function(R){switch(Math.trunc(R.K)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; s1L=function(R,F){return R.KF.K?!1:R.DF.D?!1:typeof R.Btypeof F.B?!1:R.B0?a[h]-a[h-1]:a[h]})}; ih=function(){this.D=new JT;this.NQ=this.Sl=0;this.IR=new aT;this.aR=this.Y=-1;this.HG=1E3;this.nI=new JT([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.fI=this.KI=-1}; w4=function(R,F){return TR_(R.D,F===void 0?!0:F)}; EI=function(R,F,h,a){var J=J===void 0?!1:J;h=q1(a,h);Jt(R,F,h,{capture:J})}; r4=function(R,F){F=Bj(F);return F===0?0:Bj(R)/F}; Bj=function(R){return Math.max(R.bottom-R.top,0)*Math.max(R.right-R.left,0)}; ffB=function(R,F){if(!R||!F)return!1;for(var h=0;R!==null&&h++<100;){if(R===F)return!0;try{if(R=R.parentElement||R){var a=WZ(R),J=a&&iX(a),M=J&&J.frameElement;M&&(R=M)}}catch(v){break}}return!1}; j1f=function(R,F,h){if(!R||!F)return!1;F=nb(R.clone(),-F.left,-F.top);R=(F.left+F.right)/2;F=(F.top+F.bottom)/2;i1(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Jtn())return!1;R=window.document.elementFromPoint(R,F);if(!R)return!1;F=(F=(F=WZ(h))&&F.defaultView&&F.defaultView.frameElement)&&ffB(F,R);var a=R===h;R=!a&&R&&xT(R,function(J){return J===h}); return!(F||a||R)}; Zr2=function(R,F,h,a){return PC().K?!1:XW(R)<=0||R.getHeight()<=0?!0:h&&a?WOO(208,function(){return j1f(R,F,h)}):!1}; Yj=function(R,F,h){g.d.call(this);this.position=brO.clone();this.En=this.QG();this.dH=-2;this.timeCreated=Date.now();this.aI=-1;this.EX=F;this.jU=null;this.k$=!1;this.lG=null;this.opacity=-1;this.requestSource=h;this.ho$=!1;this.KC=function(){}; this.kK=function(){}; this.K$=new d4i;this.K$.Da=R;this.K$.B=R;this.jN=!1;this.un={vM:null,Sc:null};this.Rw=!0;this.eP=null;this.yx=this.Ud=!1;hS().S++;this.m3=this.JA();this.nh=-1;this.wv=null;this.hasCompleted=this.Lq=!1;this.Gn=new NJ;uin(this.Gn);Snn(this);this.requestSource==1?LM(this.Gn,"od",1):LM(this.Gn,"od",0)}; Snn=function(R){R=R.K$.Da;var F;if(F=R&&R.getAttribute)F=/-[a-z]/.test("googleAvInapp")?!1:Or7&&R.dataset?"googleAvInapp"in R.dataset:R.hasAttribute?R.hasAttribute("data-"+rGL()):!!R.getAttribute("data-"+rGL());F&&(PC().D=!0)}; Ql=function(R,F){F!=R.yx&&(R.yx=F,R=PC(),F?R.S++:R.S>0&&R.S--)}; mII=function(R,F){if(R.wv){if(F.getName()===R.wv.getName())return;R.wv.dispose();R.wv=null}F=F.create(R.K$.B,R.Gn,R.hO());if(F=F!=null&&F.observe()?F:null)R.wv=F}; oi7=function(R,F,h){if(!R.jU||R.EX==-1||F.D===-1||R.jU.D===-1)return 0;R=F.D-R.jU.D;return R>h?0:R}; XXi=function(R,F,h){if(R.wv){R.wv.nG();var a=R.wv.C,J=a.L,M=J.B;if(a.S!=null){var v=a.K;R.lG=new g.zq(v.left-M.left,v.top-M.top)}M=R.uZ()?Math.max(a.B,a.N):a.B;v={};J.volume!==null&&(v.volume=J.volume);J=R.E4(a);R.jU=a;R.gA(M,F,h,!1,v,J,a.Z)}}; e0g=function(R){if(R.k$&&R.eP){var F=TD(R.Gn,"od")==1,h=PC().B,a=R.eP,J=R.wv?R.wv.getName():"ns",M=R.lG,v=new g.t7(XW(h),h.getHeight());h=R.uZ();R={KAQ:J,lG:M,oZo:v,uZ:h,Pc:R.m3.Pc,zol:F};if(F=a.D){F.nG();J=F.C;M=J.L.B;var I=v=null;J.S!=null&&M&&(v=J.K,v=new g.zq(v.left-M.left,v.top-M.top),I=new g.t7(M.right-M.left,M.bottom-M.top));J=h?Math.max(J.B,J.N):J.B;h={KAQ:F.getName(),lG:v,oZo:I,uZ:h,zol:!1,Pc:J}}else h=null;h&&NRT(a,R,h)}}; ni_=function(R,F,h){F&&(R.KC=F);h&&(R.kK=h)}; g.AT=function(){}; g.xj=function(R){return{value:R,done:!1}}; uj7=function(){this.L=this.B=this.K=this.D=this.N=0}; dI7=function(R){var F={};var h=g.w7()-R.N;F=(F.ptlt=h,F);(h=R.D)&&(F.pnk=h);(h=R.K)&&(F.pnc=h);(h=R.L)&&(F.pnmm=h);(R=R.B)&&(F.pns=R);return F}; Px2=function(){Wh.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Nh=function(R){return ub(R.volume)&&R.volume>0}; Hj=function(R,F,h,a){h=h===void 0?!0:h;a=a===void 0?function(){return!0}:a; return function(J){var M=J[R];if(Array.isArray(M)&&a(J))return z0a(M,F,h)}}; Ll=function(R,F){return function(h){return F(h)?h[R]:void 0}}; K9L=function(R){return function(F){for(var h=0;h0?M[J-1]+1:0,a+1).reduce(function(v,I){return v+I},0)})}; tXB=function(){this.D=this.B=""}; lfL=function(){}; yl=function(R,F){var h={};if(R!==void 0)if(F!=null)for(var a in F){var J=F[a];a in Object.prototype||J!=null&&(h[a]=typeof J==="function"?J(R):R[J])}else g.km(h,R);return RT(WC(new cC,h))}; DIT=function(){var R={};this.D=(R.vs=[1,0],R.vw=[0,1],R.am=[2,2],R.a=[4,4],R.f=[8,8],R.bm=[16,16],R.b=[32,32],R.avw=[0,64],R.avs=[64,0],R.pv=[256,256],R.gdr=[0,512],R.p=[0,1024],R.r=[0,2048],R.m=[0,4096],R.um=[0,8192],R.ef=[0,16384],R.s=[0,32768],R.pmx=[0,16777216],R.mut=[33554432,33554432],R.umutb=[67108864,67108864],R.tvoff=[134217728,134217728],R);this.B={};for(var F in this.D)this.D[F][1]>0&&(this.B[F]=0);this.K=0}; qh=function(R,F){var h=R.D[F],a=h[1];R.K+=h[0];a>0&&R.B[F]==0&&(R.B[F]=1)}; VXL=function(R){var F=g.Il(R.D),h=0,a;for(a in R.B)g.x7(F,a)&&R.B[a]==1&&(h+=R.D[a][1],R.B[a]=2);return h}; UIi=function(R){var F=0,h;for(h in R.B){var a=R.B[h];if(a==1||a==2)F+=R.D[h][1]}return F}; fl=function(){this.B=this.D=0}; jC=function(){ih.call(this);this.K=new aT;this.PG=this.C=this.Uz=0;this.Z=-1;this.uY=new aT;this.N=new aT;this.B=new JT;this.S=this.L=-1;this.oR=new aT;this.HG=2E3;this.Oz=new fl;this.T$=new fl;this.Fo=new fl}; Zu=function(R,F,h){var a=R.PG;Sv||h||R.Z==-1||(a+=F-R.Z);return a}; CxO=function(){this.K=!1}; bh=function(R,F){this.K=!1;this.L=R;this.C=F;this.N=0}; OI=function(R,F){bh.call(this,R,F);this.Y=[]}; cxO=function(){}; mt=function(){}; oT=function(R,F,h,a){UA.call(this,R,F,h,a)}; Xm=function(R,F,h){UA.call(this,null,R,F,h);this.Z=R.isActive();this.Y=0}; eC=function(R){return[R.top,R.left,R.bottom,R.right]}; nl=function(R,F,h,a,J,M){M=M===void 0?new mt:M;Yj.call(this,F,h,a);this.XI=J;this.IC=0;this.SC={};this.ZG=new DIT;this.yL={};this.zT="";this.Fo=null;this.iY=!1;this.B=[];this.VZ=M.D();this.S=M.K();this.L=null;this.K=-1;this.NQ=this.C=void 0;this.aR=this.oR=0;this.fI=-1;this.HG=this.T$=!1;this.Uz=this.Z=this.D=this.gy=this.EP=0;new JT;this.Oz=this.PG=0;this.IR=-1;this.l1=0;this.Y=g.bX;this.KI=[this.QG()];this.YH=2;this.fQ={};this.fQ.pause="p";this.fQ.resume="r";this.fQ.skip="s";this.fQ.mute="m";this.fQ.unmute= "um";this.fQ.exitfullscreen="ef";this.N=null;this.nI=this.uY=!1;this.Sw=Math.floor(Date.now()/1E3-1704067200);this.Sl=0}; uh=function(R){R.hasCompleted=!0;R.l1!=0&&(R.l1=3)}; d4=function(R){return R===void 0?R:Number(R)?nT(R,3):0}; Pj=function(R,F){return R.KI[F!=null&&FMath.max(1E4,R.K/3)?0:F);var h=R.Y(R)||{};h=h.currentTime!==void 0?h.currentTime:R.oR;var a=h-R.oR,J=0;a>=0?(R.aR+=F,R.Oz+=Math.max(F-a,0),J=Math.min(a,R.aR)):R.PG+=Math.abs(a);a!=0&&(R.aR=0);R.IR==-1&&a>0&&(R.IR=mG>=0?Zn()-mG:-1);R.oR=h;return J}; Fyi=function(R,F){dy(R.S,function(h){return h.L==F.L})||R.S.push(F)}; hVg=function(R){var F=g4(R.O6().B,1);return zR(R,F)}; zR=function(R,F,h){return F>=15E3?!0:R.T$?(h===void 0?0:h)?!0:R.K>0?F>=R.K/2:R.fI>0?F>=R.fI:!1:!1}; aa7=function(R){var F=nT(R.m3.Pc,2),h=R.ZG.K,a=R.m3,J=Pj(R),M=d4(J.L),v=d4(J.S),I=d4(a.volume),w=nT(J.Y,2),E=nT(J.aR,2),B=nT(a.Pc,2),r=nT(J.KI,2),Y=nT(J.fI,2);a=nT(a.F4,2);var p=R.Mj().clone().round();R=R.wv&&R.wv.K?(R.wv?R.wv.K:null).clone().round():null;J=w4(J,!1);return{BLG:F,N5:h,m_:M,Bv:v,CJ:I,LZ:w,ov:E,Pc:B,Gr:r,dJ:Y,F4:a,position:p,UQ:R,A6:J}}; MbB=function(R,F){Jya(R.B,F,function(){return{BLG:0,N5:void 0,m_:-1,Bv:-1,CJ:-1,LZ:-1,ov:-1,Pc:-1,Gr:-1,dJ:-1,F4:-1,position:void 0,UQ:void 0,A6:[]}}); R.B[F]=aa7(R)}; Jya=function(R,F,h){for(var a=R.length;a0?1:0;r.atos= Mh(E.B);r.ssb=Mh(E.nI,!1);r.amtos=TR_(E.B,!1);r.uac=R.EP;r.vpt=E.K.B;B=="nio"&&(r.nio=1,r.avms="nio");r.gmm="4";r.gdr=zR(R,E.K.B,!0)?1:0;r.efpf=R.YH;if(B=="gsv"||B=="nis")B=R.wv,B.Y>0&&(r.nnut=B.Y);r.tcm=W9i(R);r.nmt=R.PG;r.bt=R.Oz;r.pst=R.IR;r.vpaid=R.C;r.dur=R.K;r.vmtime=R.oR;r.is=R.ZG.K;R.B.length>=1&&(r.i0=R.B[0].N5,r.a0=[R.B[0].CJ],r.c0=[R.B[0].Pc],r.ss0=[R.B[0].F4],B=R.B[0].position,M=R.B[0].UQ,r.p0=B?eC(B):void 0,B&&M&&!eu(M,B)&&(r.cp0=eC(M)));R.B.length>=2&&(r.i1=R.B[1].N5,r.a1=lh(R.B[1].m_, R.B[1].CJ,R.B[1].Bv),r.c1=lh(R.B[1].LZ,R.B[1].Pc,R.B[1].ov),r.ss1=lh(R.B[1].Gr,R.B[1].F4,R.B[1].dJ),B=R.B[1].position,M=R.B[1].UQ,r.p1=B?eC(B):void 0,B&&M&&!eu(M,B)&&(r.cp1=eC(M)),r.mtos1=R.B[1].A6);R.B.length>=3&&(r.i2=R.B[2].N5,r.a2=lh(R.B[2].m_,R.B[2].CJ,R.B[2].Bv),r.c2=lh(R.B[2].LZ,R.B[2].Pc,R.B[2].ov),r.ss2=lh(R.B[2].Gr,R.B[2].F4,R.B[2].dJ),B=R.B[2].position,M=R.B[2].UQ,r.p2=B?eC(B):void 0,B&&M&&!eu(M,B)&&(r.cp2=eC(M)),r.mtos2=R.B[2].A6);R.B.length>=4&&(r.i3=R.B[3].N5,r.a3=lh(R.B[3].m_,R.B[3].CJ, R.B[3].Bv),r.c3=lh(R.B[3].LZ,R.B[3].Pc,R.B[3].ov),r.ss3=lh(R.B[3].Gr,R.B[3].F4,R.B[3].dJ),B=R.B[3].position,M=R.B[3].UQ,r.p3=B?eC(B):void 0,B&&M&&!eu(M,B)&&(r.cp3=eC(M)),r.mtos3=R.B[3].A6);r.cs=UIi(R.ZG);F&&(r.ic=VXL(R.ZG),r.dvpt=E.K.D,r.dvs=IT(E.D,.5),r.dfvs=IT(E.D,1),r.davs=IT(E.B,.5),r.dafvs=IT(E.B,1),h&&(E.K.D=0,yxi(E.D),yxi(E.B)),R.WR()&&(r.dtos=E.Uz,r.dav=E.C,r.dtoss=R.IC+1,h&&(E.Uz=0,E.C=0,R.IC++)),r.dat=E.N.D,r.dft=E.oR.D,h&&(E.N.D=0,E.oR.D=0));r.ps=[I.N.width,I.N.height];r.bs=[XW(I.B),I.B.getHeight()]; r.scs=[I.L.width,I.L.height];r.dom=I.domain;R.gy&&(r.vds=R.gy);if(R.S.length>0||R.VZ)F=g.Zt(R.S),R.VZ&&F.push(R.VZ),r.pings=g.p1(F,function(Y){return Y.toString()}); F=g.p1(g.TR(R.S,function(Y){return Y.S()}),function(Y){return Y.getId()}); L2O(F);r.ces=F;R.D&&(r.vmer=R.D);R.Z&&(r.vmmk=R.Z);R.Uz&&(r.vmiec=R.Uz);r.avms=R.wv?R.wv.getName():"ns";R.wv&&g.km(r,R.wv.Om());a?(r.c=nT(R.m3.Pc,2),r.ss=nT(R.m3.F4,2)):r.tth=Zn()-IaL;r.mc=nT(E.aR,2);r.nc=nT(E.Y,2);r.mv=d4(E.S);r.nv=d4(E.L);r.lte=nT(R.dH,2);a=Pj(R,J);w4(E);r.qmtos=w4(a);r.qnc=nT(a.Y,2);r.qmv=d4(a.S);r.qnv=d4(a.L);r.qas=a.L>0?1:0;r.qi=R.zT;r.avms||(r.avms="geo");r.psm=E.Oz.B;r.psv=E.Oz.getValue();r.psfv=E.T$.getValue();r.psa=E.Fo.getValue();w=eOL(w.Gn);w.length&&(r.veid=w);R.N&&g.km(r, dI7(R.N));r.avas=R.Yw();r.vs=R.Mo();r.co=iKB(R);r.tm=E.Sl;r.tu=E.NQ;return r}; vM2=function(R,F){if(g.x7(ww2,F))return!0;var h=R.SC[F];return h!==void 0?(R.SC[F]=!0,!h):!1}; iKB=function(R){var F=R.Sl.toString(10).padStart(2,"0");F=""+R.Sw+F;R.Sl<99&&R.Sl++;return F}; BX_=function(){this.B={};var R=iX();Du(this,R,document);var F=EMO();try{if("1"==F){for(var h=R.parent;h!=R.top;h=h.parent)Du(this,h,h.document);Du(this,R.top,R.top.document)}}catch(a){}}; EMO=function(){var R=document.documentElement;try{if(!i1(iX().top))return"2";var F=[],h=iX(R.ownerDocument);for(R=h;R!=h.top;R=R.parent)if(R.frameElement)F.push(R.frameElement);else break;return F&&F.length!=0?"1":"0"}catch(a){return"2"}}; Du=function(R,F,h){EI(h,"mousedown",function(){return ryg(R)},301); EI(F,"scroll",function(){return Y1B(R)},302); EI(h,"touchmove",function(){return sHi(R)},303); EI(h,"mousemove",function(){return pwg(R)},304); EI(h,"keydown",function(){return kFm(R)},305)}; ryg=function(R){g.Rl(R.B,function(F){F.K>1E5||++F.K})}; Y1B=function(R){g.Rl(R.B,function(F){F.B>1E5||++F.B})}; sHi=function(R){g.Rl(R.B,function(F){F.B>1E5||++F.B})}; kFm=function(R){g.Rl(R.B,function(F){F.D>1E5||++F.D})}; pwg=function(R){g.Rl(R.B,function(F){F.L>1E5||++F.L})}; QHi=function(){this.B=[];this.D=[]}; Vl=function(R,F){return g.QL(R.B,function(h){return h.zT==F})}; $wn=function(R,F){return F?g.QL(R.B,function(h){return h.K$.Da==F}):null}; Ayi=function(R,F){return g.QL(R.D,function(h){return h.jo()==2&&h.zT==F})}; Cl=function(){var R=UI;return R.B.length==0?R.D:R.D.length==0?R.B:g.j6(R.D,R.B)}; xwL=function(R,F){R=F.jo()==1?R.B:R.D;var h=k7(R,function(a){return a==F}); return h!=-1?(R.splice(h,1),F.wv&&F.wv.unobserve(),F.dispose(),!0):!1}; NXi=function(R){var F=UI;if(xwL(F,R)){switch(R.jo()){case 0:var h=function(){return null}; case 2:h=function(){return Ayi(F,R.zT)}; break;case 1:h=function(){return Vl(F,R.zT)}}for(var a=h();a;a=h())xwL(F,a)}}; HKf=function(R){var F=UI;R=g.TR(R,function(h){return!$wn(F,h.K$.Da)}); F.B.push.apply(F.B,g.S(R))}; Lyf=function(R){var F=[];g.Uv(R,function(h){dy(UI.B,function(a){return a.K$.Da===h.K$.Da&&a.zT===h.zT})||(UI.B.push(h),F.push(h))})}; cj=function(){this.B=this.D=null}; TXO=function(R,F){function h(a,J){F(a,J)} if(R.D==null)return!1;R.B=g.QL(R.D,function(a){return a!=null&&a.aV()}); R.B&&(R.B.init(h)?Ezf(R.B.B):F(R.B.B.sC(),R.B));return R.B!=null}; Wj=function(R){R=yy7(R);CT.call(this,R.length?R[R.length-1]:new lb(ju,0));this.K=R;this.D=null}; yy7=function(R){if(!R.length)return[];R=(0,g.TR)(R,function(h){return h!=null&&h.UA()}); for(var F=1;Fh.time?F:h},R[0])}; ah=function(R){R=R===void 0?ju:R;CT.call(this,new lb(R,2))}; JN=function(){var R=ZKi();lb.call(this,ju.top,R,"geo")}; ZKi=function(){hS();var R=PC();return R.K||R.D?0:2}; bKi=function(){}; Mp=function(){this.done=!1;this.B={cj:0,s2:0,I0l:0,Nq:0,OM:-1,fl:0,Ll:0,Gh:0,pfR:0};this.N=null;this.S=!1;this.K=null;this.Y=0;this.D=new tS(this)}; gT=function(){var R=vB;R.S||(R.S=!0,S1O(R,function(){return R.L.apply(R,g.S(g.u7.apply(0,arguments)))}),R.L())}; OK_=function(){$z(bKi);var R=$z(cj);R.B!=null&&R.B.B?Ezf(R.B.B):PC().update(ju)}; GB=function(R,F,h){if(!R.done&&(R.D.cancel(),F.length!=0)){R.K=null;try{OK_();var a=Zn();hS().N=a;if($z(cj).B!=null)for(var J=0;J=0?Zn()-bb:-1,I=Zn();J.B.OM==-1&&(v=I);var w=PC(),E=hS(),B=y5(E.Gn),r=Cl();try{if(r.length>0){var Y=w.B;Y&&(B.bs=[XW(Y),Y.getHeight()]);var p=w.N;p&&(B.ps=[p.width,p.height]);ju.screen&&(B.scs=[ju.screen.width,ju.screen.height])}else B.url=encodeURIComponent(ju.location.href.substring(0,512)),M.referrer&&(B.referrer=encodeURIComponent(M.referrer.substring(0,512))); B.tt=v;B.pt=bb;B.bin=E.D;ju.google_osd_load_pub_page_exp!==void 0&&(B.olpp=ju.google_osd_load_pub_page_exp);B.deb=[1,J.B.cj,J.B.s2,J.B.Nq,J.B.OM,0,J.D.D,J.B.fl,J.B.Ll,J.B.Gh,J.B.pfR,-1].join(";");B.tvt=oMi(J,I);w.D&&(B.inapp=1);if(ju!==null&&ju!=ju.top){r.length>0&&(B.iframe_loc=encodeURIComponent(ju.location.href.substring(0,512)));var k=w.Y;B.is=[XW(k),k.getHeight()]}}catch(H){B.error=1}vB.K=B}Y=g.sR(vB.K);p=hS().B;TD(p.K,"prf")==1?(k=new R8,J=p.B,M=0,J.B>-1&&(M=J.K.B.now()-J.B),k=gX(k,1,Gr(J.L+ M),0),J=p.B,k=gX(k,5,En(J.B>-1?J.D+1:J.D),0),k=gX(k,2,Ax(p.D.B.K()),"0"),k=gX(k,3,Ax(p.D.B.D()),"0"),p=gX(k,4,Ax(p.D.B.B()),"0"),k={},p=(k.pf=g.Tf(p.K()),k)):p={};g.km(Y,p);g.km(F,a,h,Y,R())}])}; nMm=function(){var R=eVB||ju;if(!R)return"";var F=[];if(!R.location||!R.location.href)return"";F.push("url="+encodeURIComponent(R.location.href.substring(0,512)));R.document&&R.document.referrer&&F.push("referrer="+encodeURIComponent(R.document.referrer.substring(0,512)));return F.join("&")}; Ih=function(){var R="youtube.player.web_20250624_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250624_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250624_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250624_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),F;if(((F=R)==null?void 0:F.length)==2)return R[1];R="youtube.player.web_20250624_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var h;return((h=R)==null?void 0:h.length)==3?"20"+R[1]+R[2]:null}; uFL=function(){return"av.default_js".includes("ima_html5_sdk")?{P0:"ima",g0:null}:"av.default_js".includes("ima_native_sdk")?{P0:"nima",g0:null}:"av.default_js".includes("admob-native-video-javascript")?{P0:"an",g0:null}:"youtube.player.web_20250624_21_RC00".includes("cast_js_sdk")?{P0:"cast",g0:Ih()}:"youtube.player.web_20250624_21_RC00".includes("youtube.player.web")?{P0:"yw",g0:Ih()}:"youtube.player.web_20250624_21_RC00".includes("outstream_web_client")?{P0:"out",g0:Ih()}:"youtube.player.web_20250624_21_RC00".includes("drx_rewarded_web")? {P0:"r",g0:Ih()}:"youtube.player.web_20250624_21_RC00".includes("gam_native_web_video")?{P0:"n",g0:Ih()}:"youtube.player.web_20250624_21_RC00".includes("admob_interstitial_video")?{P0:"int",g0:Ih()}:{P0:"j",g0:null}}; E_=function(R,F){var h={sv:"967"};iE!==null&&(h.v=iE);h.cb=dw_;h.nas=UI.B.length;h.msg=R;F!==void 0&&(R=P3T(F))&&(h.e=wT[R]);return h}; BB=function(R){return fM(R,"custom_metric_viewable")}; P3T=function(R){var F=BB(R)?"custom_metric_viewable":R.toLowerCase();return ER(Kl,function(h){return h==F})}; zVa=function(){this.B=void 0;this.D=!1;this.K=0;this.L=-1;this.N="tos"}; la2=function(R){try{var F=R.split(",");return F.length>g.Il(KyL).length?null:QU(F,function(h,a){a=a.toLowerCase().split("=");if(a.length!=2||tbi[a[0]]===void 0||!tbi[a[0]](a[1]))throw Error("Entry ("+a[0]+", "+a[1]+") is invalid.");h[a[0]]=a[1];return h},{})}catch(h){return null}}; DwB=function(R,F){if(R.B==void 0)return 0;switch(R.N){case "mtos":return R.D?GR(F.B,R.B):GR(F.D,R.B);case "tos":return R.D?g4(F.B,R.B):g4(F.D,R.B)}return 0}; rT=function(R,F,h,a){bh.call(this,F,a);this.Y=R;this.Z=h}; YX=function(){}; s_=function(R){bh.call(this,"fully_viewable_audible_half_duration_impression",R)}; pi=function(R){this.B=R}; kX=function(R,F){bh.call(this,R,F)}; Q3=function(R){OI.call(this,"measurable_impression",R)}; $X=function(){pi.apply(this,arguments)}; AN=function(R,F,h){Xm.call(this,R,F,h)}; xX=function(R){R=R===void 0?ju:R;CT.call(this,new lb(R,2))}; Np=function(R,F,h){Xm.call(this,R,F,h)}; HB=function(R){R=R===void 0?ju:R;CT.call(this,new lb(R,2))}; Li=function(){lb.call(this,ju,2,"mraid");this.Oz=0;this.aR=this.KI=!1;this.Y=null;this.D=ahL(this.K);this.L.B=new oG(0,0,0,0);this.Sl=!1}; TB=function(R,F,h){R.wB("addEventListener",F,h)}; cyi=function(R){hS().L=!!R.wB("isViewable");TB(R,"viewableChange",Vbi);R.wB("getState")==="loading"?TB(R,"ready",UwI):C3L(R)}; C3L=function(R){typeof R.D.zK.AFMA_LIDAR==="string"?(R.KI=!0,Wyn(R)):(R.D.compatibility=3,R.Y="nc",R.fail("w"))}; Wyn=function(R){R.aR=!1;var F=TD(hS().Gn,"rmmt")==1,h=!!R.wB("isViewable");(F?!h:1)&&xz().setTimeout(fT(524,function(){R.aR||(Rti(R),jv(540,Error()),R.Y="mt",R.fail("w"))}),500); FIT(R);TB(R,R.D.zK.AFMA_LIDAR,htf)}; FIT=function(R){var F=TD(hS().Gn,"sneio")==1,h=R.D.zK.AFMA_LIDAR_EXP_1!==void 0,a=R.D.zK.AFMA_LIDAR_EXP_2!==void 0;(F=F&&a)&&(R.D.zK.AFMA_LIDAR_EXP_2=!0);h&&(R.D.zK.AFMA_LIDAR_EXP_1=!F)}; Rti=function(R){R.wB("removeEventListener",R.D.zK.AFMA_LIDAR,htf);R.KI=!1}; azg=function(R,F){if(R.wB("getState")==="loading")return new g.t7(-1,-1);F=R.wB(F);if(!F)return new g.t7(-1,-1);R=parseInt(F.width,10);F=parseInt(F.height,10);return isNaN(R)||isNaN(F)?new g.t7(-1,-1):new g.t7(R,F)}; UwI=function(){try{var R=$z(Li);R.wB("removeEventListener","ready",UwI);C3L(R)}catch(F){jv(541,F)}}; htf=function(R,F){try{var h=$z(Li);h.aR=!0;var a=R?new oG(R.y,R.x+R.width,R.y+R.height,R.x):new oG(0,0,0,0);var J=Zn(),M=KT();var v=new o8(J,M,h);v.B=a;v.volume=F;h.TE(v)}catch(I){jv(542,I)}}; Vbi=function(R){var F=hS(),h=$z(Li);R&&!F.L&&(F.L=!0,h.Sl=!0,h.Y&&h.fail("w",!0))}; y3=function(){this.isInitialized=!1;this.B=this.D=null;var R={};this.Y=(R.start=this.Fh,R.firstquartile=this.Jz,R.midpoint=this.Ia,R.thirdquartile=this.W3,R.complete=this.gP,R.error=this.Yy,R.pause=this.hH,R.resume=this.xd,R.skip=this.y0,R.viewable_impression=this.H0,R.mute=this.X1,R.unmute=this.X1,R.fullscreen=this.Ts,R.exitfullscreen=this.wP,R.fully_viewable_audible_half_duration_impression=this.H0,R.measurable_impression=this.H0,R.abandon=this.hH,R.engagedview=this.H0,R.impression=this.H0,R.creativeview= this.H0,R.progress=this.X1,R.custom_metric_viewable=this.H0,R.bufferstart=this.hH,R.bufferfinish=this.xd,R.audio_measurable=this.H0,R.audio_audible=this.H0,R);R={};this.Z=(R.overlay_resize=this.ZC,R.abandon=this.KW,R.close=this.KW,R.collapse=this.KW,R.overlay_unmeasurable_impression=function(F){return tT(F,"overlay_unmeasurable_impression",KT())},R.overlay_viewable_immediate_impression=function(F){return tT(F,"overlay_viewable_immediate_impression",KT())},R.overlay_unviewable_impression=function(F){return tT(F, "overlay_unviewable_impression",KT())},R.overlay_viewable_end_of_session_impression=function(F){return tT(F,"overlay_viewable_end_of_session_impression",KT())},R); hS().D=3;JpB(this);this.K=null}; qp=function(R,F,h,a){R=R.fU(null,a,!0,F);R.L=h;HKf([R]);return R}; MLI=function(R,F,h){Z_g(F);var a=R.B;g.Uv(F,function(J){var M=g.p1(J.criteria,function(v){var I=la2(v);if(I==null)v=null;else if(v=new zVa,I.visible!=null&&(v.B=I.visible/100),I.audible!=null&&(v.D=I.audible==1),I.time!=null){var w=I.timetype=="mtos"?"mtos":"tos",E=da_(I.time,"%")?"%":"ms";I=parseInt(I.time,10);E=="%"&&(I/=100);v.setTime(I,E,w)}return v}); dy(M,function(v){return v==null})||Fyi(h,new rT(J.id,J.event,M,a))})}; vdI=function(){var R=[],F=hS();R.push($z(JN));TD(F.Gn,"mvp_lv")&&R.push($z(Li));F=[new xX,new HB];F.push(new Wj(R));F.push(new ah(ju));return F}; gd_=function(R){if(!R.isInitialized){R.isInitialized=!0;try{var F=Zn(),h=hS(),a=PC();bb=F;h.K=79463069;R.D!=="o"&&(eVB=vmf(ju));if(pVO()){vB.B.s2=0;vB.B.OM=Zn()-F;var J=vdI(),M=$z(cj);M.D=J;TXO(M,function(){fi()})?vB.done||(mwL(),Dn(M.B.B,R),gT()):a.K?fi():gT()}else jp=!0}catch(v){throw UI.reset(),v; }}}; Xz=function(R){vB.D.cancel();ZM=R;vB.done=!0}; ep=function(R){if(R.D)return R.D;var F=$z(cj).B;if(F)switch(F.getName()){case "nis":R.D="n";break;case "gsv":R.D="m"}R.D||(R.D="h");return R.D}; ni=function(R,F,h){if(R.B==null)return F.gy|=4,!1;R=GYT(R.B,h,F);F.gy|=R;return R==0}; fi=function(){var R=[new ah(ju)],F=$z(cj);F.D=R;TXO(F,function(){Xz("i")})?vB.done||(mwL(),gT()):Xz("i")}; IzI=function(R,F){if(!R.iY){var h=tT(R,"start",KT());h=R.XI.B(h).B;var a={id:"lidarv"};a.r=F;a.sv="967";iE!==null&&(a.v=iE);EA(h,function(J,M){return a[J]=J=="mtos"||J=="tos"?M:encodeURIComponent(M)}); F=nMm();EA(F,function(J,M){return a[J]=encodeURIComponent(M)}); F="//pagead2.googlesyndication.com/pagead/gen_204?"+RT(WC(new cC,a));AxB(F);R.iY=!0}}; uE=function(R,F,h){GB(vB,[R],!KT());MbB(R,h);h!=4&&Jya(R.KI,h,R.QG);return tT(R,F,KT())}; JpB=function(R){XwB(function(){var F=iEg();R.D!=null&&(F.sdk=R.D);var h=$z(cj);h.B!=null&&(F.avms=h.B.getName());return F})}; wJ7=function(R,F,h,a){var J=$wn(UI,h);J!==null&&J.zT!==F&&(R.Km(J),J=null);J||(F=R.fU(h,Zn(),!1,F),UI.D.length==0&&(hS().K=79463069),Lyf([F]),J=F,J.L=ep(R),a&&(J.Fo=a));return J}; Edf=function(R,F){var h=R[F];h!==void 0&&h>0&&(R[F]=Math.floor(h*1E3))}; iEg=function(){var R=PC(),F={},h={},a={};return Object.assign({},(F.sv="967",F),iE!==null&&(h.v=iE,h),(a["if"]=R.K?"1":"0",a.nas=String(UI.B.length),a))}; dT=function(R){bh.call(this,"audio_audible",R)}; PB=function(R){OI.call(this,"audio_measurable",R)}; zB=function(){pi.apply(this,arguments)}; Ki=function(){}; BjB=function(R){this.B=R}; GYT=function(R,F,h){R=R.D();if(typeof R==="function"){var a={};var J={};a=Object.assign({},iE!==null&&(a.v=iE,a),(J.sv="967",J.cb=dw_,J.e=rp_(F),J));J=tT(h,F,KT());g.km(a,J);h.yL[F]=J;a=h.jo()==2?$IO(a).join("&"):h.XI.B(a).B;try{return R(h.zT,a,F),0}catch(M){return 2}}else return 1}; rp_=function(R){var F=BB(R)?"custom_metric_viewable":R;R=ER(Kl,function(h){return h==F}); return wT[R]}; tN=function(){y3.call(this);this.S=null;this.N=!1;this.L="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Y8L=function(R,F,h){h=h.opt_configurable_tracking_events;R.B!=null&&Array.isArray(h)&&MLI(R,h,F)}; sdf=function(R,F,h){var a=Vl(UI,F);a||(a=h.opt_nativeTime||-1,a=qp(R,F,ep(R),a),h.opt_osdId&&(a.Fo=h.opt_osdId));return a}; pJI=function(R,F,h){var a=Vl(UI,F);a||(a=qp(R,F,"n",h.opt_nativeTime||-1));return a}; kYn=function(R,F){var h=Vl(UI,F);h||(h=qp(R,F,"h",-1));return h}; Qd2=function(R){hS();switch(ep(R)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; xC7=function(R,F,h,a){h=h===void 0?{}:h;var J={};g.km(J,{opt_adElement:void 0,opt_fullscreen:void 0},h);var M=R.im(F,h);h=M?M.XI:R.Xy();if(J.opt_bounds)return h.B(E_("ol",a));if(a!==void 0)if(P3T(a)!==void 0)if(jp)R=E_("ue",a);else if(gd_(R),ZM=="i")R=E_("i",a),R["if"]=0;else if(F=R.im(F,J)){b:{ZM=="i"&&(F.jN=!0);M=J.opt_fullscreen;M!==void 0&&Ql(F,!!M);var v;if(M=!PC().D)(M=b_(g.ol(),"CrKey")&&!(b_(g.ol(),"CrKey")&&b_(g.ol(),"SmartSpeaker"))||b_(g.ol(),"PlayStation")||b_(g.ol(),"Roku")||GfB()||b_(g.ol(), "Xbox"))||(M=g.ol(),M=b_(M,"AppleTV")||b_(M,"Apple TV")||b_(M,"CFNetwork")||b_(M,"tvOS")),M||(M=g.ol(),M=b_(M,"sdk_google_atv_x86")||b_(M,"Android TV")),M=!M;M&&(xz(),M=Mx(zg)===0);if(v=M){switch(F.jo()){case 1:IzI(F,"pv");break;case 2:R.xa(F)}Xz("pv")}M=a.toLowerCase();if(v=!v)v=TD(hS().Gn,"ssmol")&&M==="loaded"?!1:g.x7($Cf,M);if(v&&F.l1==0){ZM!="i"&&(vB.done=!1);v=J!==void 0?J.opt_nativeTime:void 0;mG=v=typeof v==="number"?v:Zn();F.k$=!0;var I=KT();F.l1=1;F.SC={};F.SC.start=!1;F.SC.firstquartile= !1;F.SC.midpoint=!1;F.SC.thirdquartile=!1;F.SC.complete=!1;F.SC.resume=!1;F.SC.pause=!1;F.SC.skip=!1;F.SC.mute=!1;F.SC.unmute=!1;F.SC.viewable_impression=!1;F.SC.measurable_impression=!1;F.SC.fully_viewable_audible_half_duration_impression=!1;F.SC.fullscreen=!1;F.SC.exitfullscreen=!1;F.IC=0;I||(F.O6().Z=v);GB(vB,[F],!I)}(v=F.fQ[M])&&qh(F.ZG,v);TD(hS().Gn,"fmd")||g.x7(Apn,M)&&F.VZ&&F.VZ.D(F,null);switch(F.jo()){case 1:var w=BB(M)?R.Y.custom_metric_viewable:R.Y[M];break;case 2:w=R.Z[M]}if(w&&(a=w.call(R, F,J,a),TD(hS().Gn,"fmd")&&g.x7(Apn,M)&&F.VZ&&F.VZ.D(F,null),a!==void 0)){J=E_(void 0,M);g.km(J,a);a=J;break b}a=void 0}F.l1==3&&R.Km(F);R=a}else R=E_("nf",a);else R=void 0;else jp?R=E_("ue"):M?(R=E_(),g.km(R,gM7(M,!0,!1,!1))):R=E_("nf");return typeof R==="string"?h.B():h.B(R)}; Nj_=function(R,F){F&&(R.L=F)}; HEn=function(R){var F={};return F.viewability=R.B,F.googleViewability=R.D,F}; LIg=function(R,F,h){h=h===void 0?{}:h;R=xC7($z(tN),F,h,R);return HEn(R)}; lE=function(R){var F=g.u7.apply(1,arguments).filter(Boolean).join("&");if(!F)return R;var h=R.match(/[?&]adurl=/);return h?R.slice(0,h.index+1)+F+"&"+R.slice(h.index+1):R+(R.indexOf("?")<0?"?":"&")+F}; DM=function(R,F){return F?"&"+R+"="+encodeURIComponent(F):""}; Tjg=function(R){var F=R.url;R=R.syA;this.D=F;this.L=R;this.K=(new Date).getTime()-17040672E5;this.B={};for(var h=/[?&]([^&=]+)=([^&]*)/g;R=h.exec(F);)this.B[R[1]]=R[2]}; ypI=function(R){R=R.L;if(!R)return"";var F=DM("uap",R.platform)+DM("uapv",R.platformVersion)+DM("uafv",R.uaFullVersion)+DM("uaa",R.architecture)+DM("uam",R.model)+DM("uab",R.bitness);R.fullVersionList&&(F+="&uafvl="+encodeURIComponent(R.fullVersionList.map(function(h){return encodeURIComponent(h.brand)+";"+encodeURIComponent(h.version)}).join("|"))); R.wow64!=null&&(F+="&uaw="+Number(R.wow64));return F.slice(1)}; jd7=function(R,F,h,a,J){var M=window;var v=v===void 0?!1:v;var I;h?I=(v===void 0?0:v)?"//ep1.adtrafficquality.google/bg/"+jW(h)+".js":"//pagead2.googlesyndication.com/bg/"+jW(h)+".js":I="";v=v===void 0?!1:v;h=M.document;var w={};F&&(w._scs_=F);w._bgu_=I;w._bgp_=a;w._li_="v_h.3.0.0.0";J&&(w._upb_=J);(F=M.GoogleTyFxhY)&&typeof F.push=="function"||(F=M.GoogleTyFxhY=[]);F.push(w);F=hR(h).createElement("SCRIPT");F.type="text/javascript";F.async=!0;R=(v===void 0?0:v)?ZgO(q8g,jW(R)+".js"):ZgO(fzg,jW(R)+ ".js");g.$N(F,R);(M=(M.GoogleTyFxhYEET||{})[F.src])?M():h.getElementsByTagName("head")[0].appendChild(F)}; ZET=function(){try{var R,F;return!!((R=window)==null?0:(F=R.top)==null?0:F.location.href)&&!1}catch(h){return!0}}; V3=function(R,F,h){h=h===void 0?Error():h;var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=R;F+=":";h instanceof Error?(this.message=F+h.message,this.stack=h.stack||""):(this.message=F+String(h),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Ci=function(){var R=bET();R=R===void 0?"bevasrsg":R;return new Promise(function(F){var h=window===window.top?window:ZET()?window:window.top,a=h[R],J;((J=a)==null?0:J.bevasrs)?F(new U_(a.bevasrs)):(a||(a={},a=(a.nqfbel=[],a),h[R]=a),a.nqfbel.push(function(M){F(new U_(M))}))})}; S8a=function(R){var F={c:R.sS,e:R.HC,mc:R.Kv,me:R.mS};R.QE&&(F.co={c:R.QE.z9,a:R.QE.kM,s:R.QE.Iw});return F}; cB=function(R){g.d.call(this);this.wpc=R}; U_=function(R){g.d.call(this);var F=this;this.VK=R;this.K="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.D=void 0;this.ZP=this.VK.p;this.L=this.oE.bind(this);this.addOnDisposeCallback(function(){return void OEL(F)})}; mCa=function(R){var F;return g.u(function(h){if(h.D==1){if(!R.VK.wpc)throw new V3(30,"NWA");return R.B?h.return(R.B):g.m(h,R.VK.wpc(),2)}F=h.B;R.B=new cB(F);return h.return(R.B)})}; OEL=function(R){R.D!==void 0&&(R.K.forEach(function(F){var h;(h=R.D)==null||h.removeEventListener(F,R.L)}),R.D=void 0)}; odi=function(R){var F=F===void 0?49:F;var h=[];kM(R,WB,6).forEach(function(a){TF(a,2)<=F&&h.push(TF(a,1))}); return h}; XJf=function(R){var F=F===void 0?49:F;var h=[];kM(R,WB,6).forEach(function(a){TF(a,2)>F&&h.push(TF(a,1))}); return h}; etL=function(R){R.then(function(){},function(){})}; Rx=function(){g.d.apply(this,arguments);this.L=1;this[ndO]=this.dispose}; FR=function(R){return{fieldType:2,fieldName:R}}; g.hV=function(R){return{fieldType:3,fieldName:R}}; uLL=function(R){this.B=R;R.tq("/client_streamz/bg/frs",g.hV("mk"))}; dCg=function(R){this.B=R;R.tq("/client_streamz/bg/wrl",g.hV("mn"),FR("ac"),FR("sc"),g.hV("rk"),g.hV("mk"))}; PcL=function(R){this.B=R;R.oQ("/client_streamz/bg/ec",g.hV("en"),g.hV("mk"))}; zt7=function(R){this.B=R;R.tq("/client_streamz/bg/el",g.hV("en"),g.hV("mk"))}; KIT=function(R){this.B=R;R.oQ("/client_streamz/bg/cec",FR("ec"),g.hV("mk"))}; tL7=function(R){this.B=R;R.oQ("/client_streamz/bg/po/csc",FR("cs"),g.hV("mk"))}; lzI=function(R){this.B=R;R.oQ("/client_streamz/bg/po/ctav",g.hV("av"),g.hV("mk"))}; DCi=function(R){this.B=R;R.oQ("/client_streamz/bg/po/cwsc",g.hV("su"),g.hV("mk"))}; VLO=function(R){this.Bo=dR(R)}; UC_=function(R,F){return jaT(R,F,F3I)}; ax=function(R){this.Bo=dR(R)}; JV=function(R){this.Bo=dR(R)}; MT=function(R){this.Bo=dR(R)}; vp=function(R){this.Bo=dR(R)}; gF=function(R){this.Bo=dR(R)}; Gd=function(R){this.Bo=dR(R)}; Cci=function(R){this.Bo=dR(R)}; RjB=function(R){var F=new Gd;F=Sb(F,1,R.D);var h=cp_(R);F=jaT(F,h,BUL);h=[];for(var a=[],J=g.N(R.B.keys()),M=J.next();!M.done;M=J.next())a.push(M.value.split(","));for(J=0;J>>31)&4294967295;r=J[0];var k=J[1],H=J[2],T=J[3],Z=J[4];for(p=0;p<80;p++){if(p<40)if(p<20){var b=T^k&(H^T);var O=1518500249}else b=k^H^T,O=1859775393;else p<60?(b=k&H|T&(k|H),O=2400959708):(b=k^H^T,O=3395469782);b=((r<<5|r>>>27)&4294967295)+b+Z+O+Y[p]&4294967295;Z=T;T=H;H=(k<<30|k>>>2)&4294967295;k=r;r=b}J[0]=J[0]+r&4294967295;J[1]=J[1]+k&4294967295;J[2]= J[2]+H&4294967295;J[3]=J[3]+T&4294967295;J[4]=J[4]+Z&4294967295} function h(r,Y){if(typeof r==="string"){r=unescape(encodeURIComponent(r));for(var p=[],k=0,H=r.length;k=56;p--)M[p]=Y&255,Y>>>=8;F(M);for(p=Y=0;p<5;p++)for(var k=24;k>=0;k-=8)r[Y++]=J[p]>>k&255;return r} for(var J=[],M=[],v=[],I=[128],w=1;w<64;++w)I[w]=0;var E,B;R();return{reset:R,update:h,digest:a,ly:function(){for(var r=a(),Y="",p=0;p1)));v=v.next)J||(M=v);J&&(h.B==0&&a==1?U1a(h,F):(M?(a=M,a.next==h.L&&(h.L=a),a.next=a.next.next):Cb_(h),cSL(h,J,3,F)))}R.K=null}else y0(R,3,F)}; be=function(R,F){R.D||R.B!=2&&R.B!=3||WGf(R);R.L?R.L.next=F:R.D=F;R.L=F}; R4a=function(R,F,h,a){var J=fJ(null,null,null);J.B=new g.qW(function(M,v){J.K=F?function(I){try{var w=F.call(a,I);M(w)}catch(E){v(E)}}:M; J.D=h?function(I){try{var w=h.call(a,I);w===void 0&&I instanceof OL?v(I):M(w)}catch(E){v(E)}}:v}); J.B.K=R;be(R,J);return J.B}; y0=function(R,F,h){R.B==0&&(R===h&&(F=3,h=new TypeError("Promise cannot resolve to itself")),R.B=1,tvf(h,R.wfo,R.J4A,R)||(R.Y=h,R.B=F,R.K=null,WGf(R),F!=3||h instanceof OL||Fti(R,h)))}; tvf=function(R,F,h,a){if(R instanceof g.qW)return Vv_(R,F,h,a),!0;if(R)try{var J=!!R.$goog_Thenable}catch(v){J=!1}else J=!1;if(J)return R.then(F,h,a),!0;if(g.M4(R))try{var M=R.then;if(typeof M==="function")return h4n(R,M,F,h,a),!0}catch(v){return h.call(a,v),!0}return!1}; h4n=function(R,F,h,a,J){function M(w){I||(I=!0,a.call(J,w))} function v(w){I||(I=!0,h.call(J,w))} var I=!1;try{F.call(R,v,M)}catch(w){M(w)}}; WGf=function(R){R.S||(R.S=!0,g.T3(R.pH,R))}; Cb_=function(R){var F=null;R.D&&(F=R.D,R.D=F.next,F.next=null);R.D||(R.L=null);return F}; cSL=function(R,F,h,a){if(h==3&&F.D&&!F.L)for(;R&&R.N;R=R.K)R.N=!1;if(F.B)F.B.K=null,auB(F,h,a);else try{F.L?F.K.call(F.context):auB(F,h,a)}catch(J){JT7.call(null,J)}XC2(KG_,F)}; auB=function(R,F,h){F==2?R.K.call(R.context,h):R.D&&R.D.call(R.context,h)}; Fti=function(R,F){R.N=!0;g.T3(function(){R.N&&JT7.call(null,F)})}; OL=function(R){r7.call(this,R)}; g.m7=function(R,F){g.EL.call(this);this.W_=R||1;this.Kd=F||g.Wi;this.yg=(0,g.Ge)(this.c4l,this);this.kE=g.w7()}; g.o2=function(R,F,h){if(typeof R==="function")h&&(R=(0,g.Ge)(R,h));else if(R&&typeof R.handleEvent=="function")R=(0,g.Ge)(R.handleEvent,R);else throw Error("Invalid listener argument");return Number(F)>2147483647?-1:g.Wi.setTimeout(R,F||0)}; XN=function(R,F){var h=null;return(new g.qW(function(a,J){h=g.o2(function(){a(F)},R); h==-1&&J(Error("Failed to schedule timer."))})).eK(function(a){g.Wi.clearTimeout(h); throw a;})}; g.eV=function(R){g.d.call(this);this.Y=R;this.L=0;this.K=100;this.N=!1;this.D=new Map;this.S=new Set;this.flushInterval=3E4;this.B=new g.m7(this.flushInterval);this.B.listen("tick",this.VB,!1,this);g.z(this,this.B)}; MCI=function(R){R.B.enabled||R.B.start();R.L++;R.L>=R.K&&R.VB()}; vjm=function(R,F){return R.S.has(F)?void 0:R.D.get(F)}; gjT=function(R){for(var F=0;F2?R.B.statusText:""}catch(h){F=""}R.L=F+" ["+R.getStatus()+"]";kR2(R)}}finally{KJ(R)}}}; KJ=function(R,F){if(R.B){R.S&&(clearTimeout(R.S),R.S=null);var h=R.B;R.B=null;F||R.dispatchEvent("ready");try{h.onreadystatechange=null}catch(a){}}}; DH=function(R){var F=R.getStatus();a:switch(F){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var h=!0;break a;default:h=!1}if(!h){if(F=F===0)R=g.Gg(String(R.Z))[1]||null,!R&&g.Wi.self&&g.Wi.self.location&&(R=g.Wi.self.location.protocol.slice(0,-1)),F=!ATi.test(R?R.toLowerCase():"");h=F}return h}; g.le=function(R){return R.B?R.B.readyState:0}; g.V0=function(R){try{return R.B?R.B.responseText:""}catch(F){return""}}; g.UL=function(R){try{if(!R.B)return null;if("response"in R.B)return R.B.response;switch(R.Uz){case "":case "text":return R.B.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in R.B)return R.B.mozResponseArrayBuffer}return null}catch(F){return null}}; g.xhI=function(R){var F={};R=(R.B&&g.le(R)>=2?R.B.getAllResponseHeaders()||"":"").split("\r\n");for(var h=0;h>1,F),NK(R,R.length>>1)]}; aMB=function(R){var F=g.N(hE2(R,HY));R=F.next().value;F=F.next().value;return R.toString(16)+F.toString(16)}; JN7=function(R,F){var h=hE2(F);R=new Uint32Array(R.buffer);F=R[0];var a=g.N(h);h=a.next().value;a=a.next().value;for(var J=1;J>>8|v<<24,v+=M|0,v^=I+38293,M=M<<3|M>>>29,M^=v,w=w>>>8|w<<24,w+=I|0,w^=E+38293,I=I<<3|I>>>29,I^=w;M=[M,v];R[J]^=M[0];J+1=h?(globalThis.sessionStorage.removeItem(R),["e"]):["a",new Uint8Array(a.buffer,F+4)]}; LV=function(R,F,h){h=h===void 0?[]:h;this.maxItems=R;this.B=F===void 0?0:F;this.D=h}; gXB=function(R){var F=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!F)return new LV(R);var h=F.split(",");if(h.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new LV(R);F=h.slice(1);F.length===1&&F[0]===""&&(F=[]);h=Number(h[0]);return isNaN(h)||h<0||h>F.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new LV(R)):new LV(R,h,F)}; GBI=function(R,F){this.logger=F;try{var h=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(a){h=!1}h&&(this.index=gXB(R))}; IML=function(R,F,h,a,J){var M=R.index?h1(R.logger,function(){return Mpg(R.index,aMB(F),h,a,J)},"W"):"u"; R.logger.zl(M)}; ii7=function(R,F,h){var a=g.N(R.index?h1(R.logger,function(){return vXn(aMB(F),h)},"R"):["u"]),J=a.next().value; a=a.next().value;R.logger.eU(J);return a}; BT_=function(R){function F(){h-=a;h-=J;h^=J>>>13;a-=J;a-=h;a^=h<<8;J-=h;J-=a;J^=a>>>13;h-=a;h-=J;h^=J>>>12;a-=J;a-=h;a^=h<<16;J-=h;J-=a;J^=a>>>5;h-=a;h-=J;h^=J>>>3;a-=J;a-=h;a^=h<<10;J-=h;J-=a;J^=a>>>15} R=wB7(R);for(var h=2654435769,a=2654435769,J=314159265,M=R.length,v=M,I=0;v>=12;v-=12,I+=12)h+=Tn(R,I),a+=Tn(R,I+4),J+=Tn(R,I+8),F();J+=M;switch(v){case 11:J+=R[I+10]<<24;case 10:J+=R[I+9]<<16;case 9:J+=R[I+8]<<8;case 8:a+=R[I+7]<<24;case 7:a+=R[I+6]<<16;case 6:a+=R[I+5]<<8;case 5:a+=R[I+4];case 4:h+=R[I+3]<<24;case 3:h+=R[I+2]<<16;case 2:h+=R[I+1]<<8;case 1:h+=R[I+0]}F();return EXi.toString(J)}; wB7=function(R){for(var F=[],h=0;h>7,R.error.code]);a.set(h,4);return a}; mW=function(R,F,h){yd.call(this,R);this.L=F;this.clientState=h;this.B="S";this.D="q"}; OJ=function(R){return globalThis.TextEncoder?(new TextEncoder).encode(R):g.L1(R)}; shi=function(R,F,h){return R instanceof ky?Phn(R,h,F,1):R.D4(h)}; Xy=function(R){g.d.call(this);var F=this;this.K=new g.EJ;this.L=0;this.D=void 0;this.state=2;this.VK=R.VK;this.m8=R.m8;this.Ld=Object.assign({},pB7,R.Ld||{});this.logger=R.VK.n6();var h;this.onError=(h=R.onError)!=null?h:function(){}; this.Ci=R.Ci||!1;if(kBi(R)){var a=this.VK;this.N=function(){return Dh7(a).catch(function(v){v=F.reportError(new V3(F.B?20:32,"TRG:Disposed",v));F.D=v;var I;(I=F.B)==null||I.dispose();F.B=void 0;F.K.reject(v)})}; VCL(a,function(){return void oj(F)}); a.Z===2&&oj(this)}else this.N=R.SZz,oj(this);var J=this.logger.share();J.KP("o");var M=new Rj(J,"o");this.K.promise.then(function(){M.done();J.UZ();J.dispose()},function(){return void J.dispose()}); this.addOnDisposeCallback(function(){F.B?(F.B.dispose(),F.B=void 0):F.D?F.logger.UZ():(F.D=F.reportError(new V3(32,"TNP:Disposed")),F.logger.UZ(),F.K.reject(F.D))}); g.z(this,this.logger)}; Qhm=function(R,F){if(!(F instanceof V3))if(F instanceof nJ){var h=Error(F.toString());h.stack=F.stack;F=new V3(11,"EBH:Error",h)}else F=new V3(12,"BSO:Unknown",F);return R.reportError(F)}; oj=function(R){var F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H;return g.u(function(T){switch(T.D){case 1:F=void 0;R.L++;h=new g.EJ;R.VK instanceof Qd&&R.VK.L.push(h.promise);if(!R.Ci){T.G$(2);break}a=new g.EJ;setTimeout(function(){return void a.resolve()}); return g.m(T,a.promise,2);case 2:return J=R.logger.share(),g.Hi(T,4,5),R.state=5,M={},v=[],g.m(T,A1(R.VK.snapshot({sS:M,jD:v}),R.Ld.Bkz,function(){return Promise.reject(new V3(15,"MDA:Timeout"))}),7); case 7:I=T.B;if(R.RR())throw new V3(R.B?20:32,"MDA:Disposed");w=v[0];R.state=6;return g.m(T,A1(shi(R.m8,J,I),R.Ld.Uu,function(){return Promise.reject(new V3(10,"BWB:Timeout"))}),8); case 8:E=T.B;if(R.RR())throw new V3(R.B?20:32,"BWB:Disposed");R.state=7;F=h1(J,function(){var b=$p7(R,E,h,w);b.K.promise.then(function(){return void R.N()}); return b},"i"); case 5:g.SB(T);J.dispose();g.Om(T,6);break;case 4:B=g.f_(T);(r=F)==null||r.dispose();if(!R.D){Y=Qhm(R,B);h.resolve();var Z;if(Z=R.VK instanceof Qd&&R.L<2)a:if(B instanceof V3)Z=B.code!==32&&B.code!==20&&B.code!==10;else{if(B instanceof nJ)switch(B.code){case 2:case 13:case 14:case 4:break;default:Z=!1;break a}Z=!0}if(Z)return p=(1+Math.random()*.25)*(R.B?6E4:1E3),k=setTimeout(function(){return void R.N()},p),R.addOnDisposeCallback(function(){return void clearTimeout(k)}),T.return(); R.D=Y}J.X4(R.B?13:14);R.K.reject(R.D);return T.return();case 6:R.state=8,R.L=0,(H=R.B)==null||H.dispose(),R.B=F,R.K.resolve(),g.Na(T)}})}; $p7=function(R,F,h,a){var J=yx(F,2)*1E3;if(J<=0)throw new V3(31,"TTM:Invalid");if(qw(F,4))return new bj(R.logger,qw(F,4),J);if(!yx(F,3))return new Z_(R.logger,OQ(vw(F,1)),J);if(!a)throw new V3(4,"PMD:Undefined");a=a(OQ(vw(F,1)));if(!(a instanceof Function))throw new V3(16,"APF:Failed");R.S=Math.floor((Date.now()+J)/1E3);R=new jk(R.logger,a,yx(F,3),J);R.addOnDisposeCallback(function(){return void h.resolve()}); return R}; ANg=function(R,F){F=F instanceof V3?F:new V3(5,"TVD:error",F);return R.reportError(F)}; TTL=function(R,F,h){try{if(R.RR())throw new V3(21,"BNT:disposed");if(!R.B&&R.D)throw R.D;var a,J;return(J=(a=xpm(R,F,h))!=null?a:NT_(R,F,h))!=null?J:Him(R,F,h)}catch(M){if(!F.mS)throw ANg(R,M);return Lh_(R,h,M)}}; xpm=function(R,F,h){var a;return(a=R.B)==null?void 0:fV(a,function(){return ek(R,F)},h,function(J){var M; if(R.B instanceof jk&&((M=F.QE)==null?0:M.Iw))try{var v;(v=R.cache)==null||IML(v,ek(R,F),J,F.QE.z9,R.S-120)}catch(I){R.reportError(new V3(24,"ELX:write",I))}})}; NT_=function(R,F,h){var a;if((a=F.QE)!=null&&a.kM)try{var J,M=(J=R.cache)==null?void 0:ii7(J,ek(R,F),F.QE.z9);return M?h?h1(R.logger,function(){return g.Tf(M,2)},"a"):M:void 0}catch(v){R.reportError(new V3(23,"RXO:read",v))}}; Him=function(R,F,h){var a={stack:[],error:void 0,hasError:!1};try{if(!F.Kv)throw new V3(29,"SDF:notready");return fV(kI_(a,new mW(R.logger,0,R.state)),function(){return ek(R,F)},h)}catch(J){a.error=J,a.hasError=!0}finally{Qga(a)}}; Lh_=function(R,F,h){var a={stack:[],error:void 0,hasError:!1};try{var J=ANg(R,h);return fV(kI_(a,new Sk(R.logger,J)),function(){return[]},F)}catch(M){a.error=M,a.hasError=!0}finally{Qga(a)}}; ek=function(R,F){return F.HC?F.HC:F.sS?h1(R.logger,function(){return F.HC=OJ(F.sS)},"c"):[]}; nV=function(){var R=0,F;return function(h){F||(F=new aj);var a=new mW(F,R,1),J=fV(a,function(){return OJ(h)},!0); a.dispose();R++;return J}}; uj=function(R){this.Bo=dR(R)}; yNB=function(R,F,h){this.Fz=R;this.aW=F;this.metadata=h}; dz=function(R,F){F=F===void 0?{}:F;this.Ajb=R;this.metadata=F;this.status=null}; PY=function(R,F,h,a,J){this.name=R;this.methodType="unary";this.requestType=F;this.responseType=h;this.B=a;this.D=J}; zn=function(R){this.Bo=dR(R)}; KV=function(R){this.Bo=dR(R)}; t1=function(R){this.Bo=dR(R)}; lj=function(R,F){this.Y=R.LIR;this.Z=F;this.B=R.xhr;this.K=[];this.N=[];this.S=[];this.L=[];this.D=[];this.Y&&q_L(this)}; biB=function(R,F){var h=new fMT;g.R2(R.B,"complete",function(){if(DH(R.B)){var a=g.V0(R.B);if(F&&R.B.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");a=atob(a)}try{var J=R.Z(a)}catch(I){D_(R,Vd(new nJ(13,"Error when deserializing response data; error: "+I+(", response: "+a)),h));return}a=GRg(R.B.getStatus());UJ(R,CV(R));a==0?jhO(R,J):D_(R,Vd(new nJ(a,"Xhr succeeded but the status code is not 200"),h))}else{a=g.V0(R.B);J=CV(R);if(a){var M=Zi7(R, a);a=M.code;var v=M.details;M=M.metadata}else a=2,v="Rpc failed due to xhr error. uri: "+String(R.B.Z)+", error code: "+R.B.D+", error: "+R.B.getLastError(),M=J;UJ(R,J);D_(R,Vd(new nJ(a,v,M),h))}})}; q_L=function(R){R.Y.Cp("data",function(F){if("1"in F){var h=F["1"];try{var a=R.Z(h)}catch(J){D_(R,new nJ(13,"Error when deserializing response data; error: "+J+(", response: "+h)))}a&&jhO(R,a)}if("2"in F)for(F=Zi7(R,F["2"]),h=0;h-1&&R.splice(F,1)}; jhO=function(R,F){for(var h=0;h>4&15).toString(16)+(R&15).toString(16)}; iG=function(R,F){this.D=this.B=null;this.K=R||null;this.L=!!F}; rI=function(R){R.B||(R.B=new Map,R.D=0,R.K&&EA(R.K,function(F,h){R.add(fh(F),h)}))}; uz7=function(R,F){rI(R);F=YY(R,F);return R.B.has(F)}; g.dpn=function(R,F,h){R.remove(F);h.length>0&&(R.K=null,R.B.set(YY(R,F),g.Zt(h)),R.D=R.D+h.length)}; YY=function(R,F){F=String(F);R.L&&(F=F.toLowerCase());return F}; XBm=function(R,F){F&&!R.L&&(rI(R),R.K=null,R.B.forEach(function(h,a){var J=a.toLowerCase();a!=J&&(this.remove(a),g.dpn(this,J,h))},R)); R.L=F}; g.PE_=function(R){var F="";g.Rl(R,function(h,a){F+=a;F+=":";F+=h;F+="\r\n"}); return F}; g.sX=function(R,F,h){if(g.BV(h))return R;h=g.PE_(h);if(typeof R==="string")return pT(R,g.yT(F),h);g.EX(R,F,h);return R}; g.pD=function(R){g.d.call(this);this.D=R;this.B={}}; zEI=function(R,F,h,a,J,M){if(Array.isArray(h))for(var v=0;v=0)return!0;try{var F=new g.Jj(R)}catch(h){return g.QL(vAn,function(a){return R.search(a)>0})!=null}return F.S.match(gAa)?!0:g.QL(vAn,function(h){return R.match(h)!=null})!=null}; g.fD=function(R,F){return R.replace(IRT,function(h,a){try{var J=g.rd(F,a);if(J==null||J.toString()==null)return h;J=J.toString();if(J==""||!g.jP(g.Z$(J)))return encodeURIComponent(J).replace(/%2C/g,",")}catch(M){}return h})}; jr=function(R,F){return Object.is(R,F)}; bG=function(R){var F=ZY;ZY=R;return F}; iuI=function(R){if(R.hV!==void 0){var F=Sr;Sr=!0;try{for(var h=g.N(R.hV),a=h.next();!a.done;a=h.next()){var J=a.value;J.At||(R=void 0,J.At=!0,iuI(J),(R=J.E3)==null||R.call(J,J))}}finally{Sr=F}}}; wpT=function(){var R;return((R=ZY)==null?void 0:R.dg)!==!1}; EAg=function(R){R&&(R.Rv=0);return bG(R)}; BF_=function(R,F){bG(F);if(R&&R.rl!==void 0&&R.OX!==void 0&&R.Cx!==void 0){if(OX(R))for(F=R.Rv;FR.Rv;)R.rl.pop(),R.Cx.pop(),R.OX.pop()}}; YtL=function(R,F,h){rVm(R);if(R.hV.length===0&&R.rl!==void 0)for(var a=0;a0}; sxL=function(R){R.rl!=null||(R.rl=[]);R.OX!=null||(R.OX=[]);R.Cx!=null||(R.Cx=[])}; rVm=function(R){R.hV!=null||(R.hV=[]);R.Qm!=null||(R.Qm=[])}; $TI=function(R){function F(){if(Sr)throw Error("");if(ZY!==null){var a=ZY.Rv++;sxL(ZY);a0?" "+F:F))}}; g.ME=function(R,F){if(R.classList)Array.prototype.forEach.call(F,function(J){g.J$(R,J)}); else{var h={};Array.prototype.forEach.call(Fg(R),function(J){h[J]=!0}); Array.prototype.forEach.call(F,function(J){h[J]=!0}); F="";for(var a in h)F+=F.length>0?" "+a:a;g.h$(R,F)}}; g.vs=function(R,F){R.classList?R.classList.remove(F):g.ap(R,F)&&g.h$(R,Array.prototype.filter.call(Fg(R),function(h){return h!=F}).join(" "))}; g.gA=function(R,F){R.classList?Array.prototype.forEach.call(F,function(h){g.vs(R,h)}):g.h$(R,Array.prototype.filter.call(Fg(R),function(h){return!g.x7(F,h)}).join(" "))}; g.Gi=function(R,F,h){h?g.J$(R,F):g.vs(R,F)}; qtI=function(R,F){var h=!g.ap(R,F);g.Gi(R,F,h)}; g.Ip=function(){g.EL.call(this);this.B=0;this.endTime=this.startTime=null}; fRL=function(R,F){Array.isArray(F)||(F=[F]);F=F.map(function(h){return typeof h==="string"?h:h.property+" "+h.duration+"s "+h.timing+" "+h.delay+"s"}); g.zL(R,"transition",F.join(","))}; iy=function(R,F,h,a,J){g.Ip.call(this);this.D=R;this.N=F;this.S=h;this.L=a;this.Y=Array.isArray(J)?J:[J]}; jx2=function(R,F,h,a){return new iy(R,F,{opacity:h},{opacity:a},{property:"opacity",duration:F,timing:"ease-in",delay:0})}; bun=function(R){R=SP(R);if(R=="")return null;var F=String(R.slice(0,4)).toLowerCase();if(("url("1||R&&R.split(")"),null;if(R.indexOf("(")>0){if(/"|'/.test(R))return null;F=/([\-\w]+)\(/g;for(var h;h=F.exec(R);)if(!(h[1].toLowerCase()in Zu_))return null}return R}; wA=function(R,F){R=g.Wi[R];return R&&R.prototype?(F=Object.getOwnPropertyDescriptor(R.prototype,F))&&F.get||null:null}; StO=function(R){var F=g.Wi.CSSStyleDeclaration;return F&&F.prototype&&F.prototype[R]||null}; OuL=function(R,F,h,a){if(R)return R.apply(F,a);if(g.EN&&document.documentMode<10){if(!F[h].call)throw Error("IE Clobbering detected");}else if(typeof F[h]!="function")throw Error("Clobbering detected");return F[h].apply(F,a)}; nA7=function(R){if(!R)return"";var F=document.createElement("div").style;mTg(R).forEach(function(h){var a=g.IG&&h in oA_?h:h.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");fM(a,"--")||fM(a,"var")||(h=OuL(Xpi,R,R.getPropertyValue?"getPropertyValue":"getAttribute",[h])||"",h=bun(h),h!=null&&OuL(eeg,F,F.setProperty?"setProperty":"setAttribute",[a,h]))}); return F.cssText||""}; mTg=function(R){g.JG(R)?R=g.Zt(R):(R=g.Il(R),g.Hh(R,"cssText"));return R}; g.rA=function(R){var F,h=F=0,a=!1;R=R.split(uRL);for(var J=0;J.4?-1:1;return(F==0?null:F)==-1?"rtl":"ltr"}; g.kU=function(R){if(R instanceof YU||R instanceof sN||R instanceof pW)return R;if(typeof R.next=="function")return new YU(function(){return R}); if(typeof R[Symbol.iterator]=="function")return new YU(function(){return R[Symbol.iterator]()}); if(typeof R.CS=="function")return new YU(function(){return R.CS()}); throw Error("Not an iterator or iterable.");}; YU=function(R){this.D=R}; sN=function(R){this.D=R}; pW=function(R){YU.call(this,function(){return R}); this.K=R}; QM=function(R,F,h,a,J,M,v,I){this.B=R;this.Y=F;this.K=h;this.N=a;this.L=J;this.S=M;this.D=v;this.Z=I}; $U=function(R,F){if(F==0)return R.B;if(F==1)return R.D;var h=PZ(R.B,R.K,F),a=PZ(R.K,R.L,F);R=PZ(R.L,R.D,F);h=PZ(h,a,F);a=PZ(a,R,F);return PZ(h,a,F)}; Kzg=function(R,F){var h=(F-R.B)/(R.D-R.B);if(h<=0)return 0;if(h>=1)return 1;for(var a=0,J=1,M=0,v=0;v<8;v++){M=$U(R,h);var I=($U(R,h+1E-6)-M)/1E-6;if(Math.abs(M-F)<1E-6)return h;if(Math.abs(I)<1E-6)break;else M1E-6&&v<8;v++)M=0}; g.Hs=function(R){g.d.call(this);this.S=1;this.K=[];this.L=0;this.B=[];this.D={};this.Y=!!R}; lRg=function(R,F,h){g.T3(function(){R.apply(F,h)})}; g.LW=function(R){this.B=R}; Ti=function(R){this.B=R}; DTL=function(R){this.data=R}; VRn=function(R){return R===void 0||R instanceof DTL?R:new DTL(R)}; yM=function(R){this.B=R}; g.UTm=function(R){var F=R.creation;R=R.expiration;return!!R&&Rg.w7()}; g.qE=function(R){this.B=R}; CLa=function(){}; fW=function(){}; jM=function(R){this.B=R;this.D=null}; Zl=function(R){if(R.B==null)throw Error("Storage mechanism: Storage unavailable");R.isAvailable()||H_(Error("Storage mechanism: Storage unavailable"))}; by=function(){var R=null;try{R=g.Wi.localStorage||null}catch(F){}jM.call(this,R)}; cVL=function(){var R=null;try{R=g.Wi.sessionStorage||null}catch(F){}jM.call(this,R)}; SM=function(R,F){this.D=R;this.B=F+"::"}; g.ON=function(R){var F=new by;return F.isAvailable()?R?new SM(F,R):F:null}; mn=function(R,F){this.B=R;this.D=F}; op=function(R){this.B=[];if(R)a:{if(R instanceof op){var F=R.yj();R=R.UU();if(this.B.length<=0){for(var h=this.B,a=0;a>>6:(M<65536?I[h++]=224|M>>>12:(I[h++]=240|M>>>18,I[h++]=128|M>>>12&63),I[h++]=128|M>>> 6&63),I[h++]=128|M&63);return I}; uy=function(R){for(var F=R.length;--F>=0;)R[F]=0}; dA=function(R,F,h,a,J){this.Jk=R;this.mW=F;this.KH=h;this.Id=a;this.xu=J;this.xv=R&&R.length}; Ps=function(R,F){this.qq=R;this.AS=0;this.WO=F}; zi=function(R,F){R.S5[R.pending++]=F&255;R.S5[R.pending++]=F>>>8&255}; KW=function(R,F,h){R.N2>16-h?(R.s6|=F<>16-R.N2,R.N2+=h-16):(R.s6|=F<>>=1,h<<=1;while(--F>0);return h>>>1}; aHB=function(R,F,h){var a=Array(16),J=0,M;for(M=1;M<=15;M++)a[M]=J=J+h[M-1]<<1;for(h=0;h<=F;h++)J=R[h*2+1],J!==0&&(R[h*2]=hqi(a[J]++,J))}; JhL=function(R){var F;for(F=0;F<286;F++)R.GL[F*2]=0;for(F=0;F<30;F++)R.Eg[F*2]=0;for(F=0;F<19;F++)R.Ip[F*2]=0;R.GL[512]=1;R.pG=R.RL=0;R.OU=R.matches=0}; MVi=function(R){R.N2>8?zi(R,R.s6):R.N2>0&&(R.S5[R.pending++]=R.s6);R.s6=0;R.N2=0}; vaL=function(R,F,h){MVi(R);zi(R,h);zi(R,~h);nW.Tz(R.S5,R.window,F,h,R.pending);R.pending+=h}; gaL=function(R,F,h,a){var J=F*2,M=h*2;return R[J]>>7)];t$(R,v,h);I=cs[v];I!==0&&(J-=Ws[v],KW(R,J,I))}}while(a>1;v>=1;v--)ly(R,h,v);w=M;do v=R.h4[1],R.h4[1]=R.h4[R.gp--],ly(R,h,1),a=R.h4[1],R.h4[--R.YS]=v,R.h4[--R.YS]=a,h[w*2]=h[v*2]+h[a*2],R.depth[w]=(R.depth[v]>=R.depth[a]?R.depth[v]:R.depth[a])+1,h[v*2+1]=h[a*2+1]=w,R.h4[1]=w++,ly(R,h,1);while(R.gp>= 2);R.h4[--R.YS]=R.h4[1];v=F.qq;w=F.AS;a=F.WO.Jk;J=F.WO.xv;M=F.WO.mW;var E=F.WO.KH,B=F.WO.xu,r,Y=0;for(r=0;r<=15;r++)R.GF[r]=0;v[R.h4[R.YS]*2+1]=0;for(F=R.YS+1;F<573;F++){var p=R.h4[F];r=v[v[p*2+1]*2+1]+1;r>B&&(r=B,Y++);v[p*2+1]=r;if(!(p>w)){R.GF[r]++;var k=0;p>=E&&(k=M[p-E]);var H=v[p*2];R.pG+=H*(r+k);J&&(R.RL+=H*(a[p*2+1]+k))}}if(Y!==0){do{for(r=B-1;R.GF[r]===0;)r--;R.GF[r]--;R.GF[r+1]+=2;R.GF[B]--;Y-=2}while(Y>0);for(r=B;r!==0;r--)for(p=R.GF[r];p!==0;)a=R.h4[--F],a>w||(v[a*2+1]!==r&&(R.pG+=(r-v[a* 2+1])*v[a*2],v[a*2+1]=r),p--)}aHB(h,I,R.GF)}; IHf=function(R,F,h){var a,J=-1,M=F[1],v=0,I=7,w=4;M===0&&(I=138,w=3);F[(h+1)*2+1]=65535;for(a=0;a<=h;a++){var E=M;M=F[(a+1)*2+1];++v>>=1)if(F&1&&R.GL[h*2]!==0)return 0;if(R.GL[18]!==0||R.GL[20]!==0||R.GL[26]!==0)return 1;for(h=32;h<256;h++)if(R.GL[h*2]!==0)return 1;return 0}; Fo=function(R,F,h){R.S5[R.vP+R.OU*2]=F>>>8&255;R.S5[R.vP+R.OU*2+1]=F&255;R.S5[R.HN+R.OU]=h&255;R.OU++;F===0?R.GL[h*2]++:(R.matches++,F--,R.GL[(Dl[h]+256+1)*2]++,R.Eg[(F<256?CW[F]:CW[256+(F>>>7)])*2]++);return R.OU===R.CA-1}; aM=function(R,F){R.msg=hi[F];return F}; Ji=function(R){for(var F=R.length;--F>=0;)R[F]=0}; Mg=function(R){var F=R.state,h=F.pending;h>R.QK&&(h=R.QK);h!==0&&(nW.Tz(R.output,F.S5,F.xR,h,R.R0),R.R0+=h,F.xR+=h,R.Sm+=h,R.QK-=h,F.pending-=h,F.pending===0&&(F.xR=0))}; Gu=function(R,F){var h=R.KS>=0?R.KS:-1,a=R.Aa-R.KS,J=0;if(R.level>0){R.tT.TC===2&&(R.tT.TC=wLB(R));RM(R,R.Fn);RM(R,R.pm);IHf(R,R.GL,R.Fn.AS);IHf(R,R.Eg,R.pm.AS);RM(R,R.ZF);for(J=18;J>=3&&R.Ip[Ea_[J]*2+1]===0;J--);R.pG+=3*(J+1)+5+5+4;var M=R.pG+3+7>>>3;var v=R.RL+3+7>>>3;v<=M&&(M=v)}else M=v=a+5;if(a+4<=M&&h!==-1)KW(R,F?1:0,3),vaL(R,h,a);else if(R.strategy===4||v===M)KW(R,2+(F?1:0),3),G3g(R,vk,g1);else{KW(R,4+(F?1:0),3);h=R.Fn.AS+1;a=R.pm.AS+1;J+=1;KW(R,h-257,5);KW(R,a-1,5);KW(R,J-4,4);for(M=0;M>>8&255;R.S5[R.pending++]=F&255}; BqL=function(R,F){var h=R.er,a=R.Aa,J=R.T5,M=R.rC,v=R.Aa>R.KB-262?R.Aa-(R.KB-262):0,I=R.window,w=R.dZ,E=R.Ri,B=R.Aa+258,r=I[a+J-1],Y=I[a+J];R.T5>=R.qo&&(h>>=2);M>R.VY&&(M=R.VY);do{var p=F;if(I[p+J]===Y&&I[p+J-1]===r&&I[p]===I[a]&&I[++p]===I[a+1]){a+=2;for(p++;I[++a]===I[++p]&&I[++a]===I[++p]&&I[++a]===I[++p]&&I[++a]===I[++p]&&I[++a]===I[++p]&&I[++a]===I[++p]&&I[++a]===I[++p]&&I[++a]===I[++p]&&aJ){R.GD=F;J=p;if(p>=M)break;r=I[a+J-1];Y=I[a+J]}}}while((F=E[F&w])>v&&--h!== 0);return J<=R.VY?J:R.VY}; Bk=function(R){var F=R.KB,h;do{var a=R.xK-R.VY-R.Aa;if(R.Aa>=F+(F-262)){nW.Tz(R.window,R.window,F,F,0);R.GD-=F;R.Aa-=F;R.KS-=F;var J=h=R.sD;do{var M=R.head[--J];R.head[J]=M>=F?M-F:0}while(--h);J=h=F;do M=R.Ri[--J],R.Ri[J]=M>=F?M-F:0;while(--h);a+=F}if(R.tT.r4===0)break;J=R.tT;h=R.window;M=R.Aa+R.VY;var v=J.r4;v>a&&(v=a);v===0?h=0:(J.r4-=v,nW.Tz(h,J.input,J.Lo,v,M),J.state.wrap===1?J.SI=w1(J.SI,h,v,M):J.state.wrap===2&&(J.SI=EV(J.SI,h,v,M)),J.Lo+=v,J.pQ+=v,h=v);R.VY+=h;if(R.VY+R.TV>=3)for(a=R.Aa-R.TV, R.yK=R.window[a],R.yK=(R.yK<=3&&(R.yK=(R.yK<=3)if(h=Fo(R,R.Aa-R.GD,R.mj-3),R.VY-=R.mj,R.mj<=R.E$&&R.VY>=3){R.mj--;do R.Aa++,R.yK=(R.yK<=3&&(R.yK=(R.yK<4096)&&(R.mj=2));if(R.T5>=3&&R.mj<=R.T5){a=R.Aa+R.VY-3;h=Fo(R,R.Aa-1-R.h$,R.T5-3);R.VY-=R.T5-1;R.T5-=2;do++R.Aa<=a&&(R.yK=(R.yK<=3&&R.Aa>0&&(a=R.Aa-1,h=M[a],h===M[++a]&&h===M[++a]&&h===M[++a])){for(J=R.Aa+258;h===M[++a]&&h===M[++a]&&h===M[++a]&&h===M[++a]&&h===M[++a]&&h===M[++a]&&h===M[++a]&&h===M[++a]&&aR.VY&&(R.mj=R.VY)}R.mj>=3?(h=Fo(R,1,R.mj-3),R.VY-=R.mj,R.Aa+=R.mj,R.mj=0):(h=Fo(R,0,R.window[R.Aa]),R.VY--,R.Aa++);if(h&&(Gu(R,!1),R.tT.QK===0))return 1}R.TV=0;return F=== 4?(Gu(R,!0),R.tT.QK===0?3:4):R.OU&&(Gu(R,!1),R.tT.QK===0)?1:2}; YLn=function(R,F){for(var h;;){if(R.VY===0&&(Bk(R),R.VY===0)){if(F===0)return 1;break}R.mj=0;h=Fo(R,0,R.window[R.Aa]);R.VY--;R.Aa++;if(h&&(Gu(R,!1),R.tT.QK===0))return 1}R.TV=0;return F===4?(Gu(R,!0),R.tT.QK===0?3:4):R.OU&&(Gu(R,!1),R.tT.QK===0)?1:2}; sV=function(R,F,h,a,J){this.ir=R;this.VC=F;this.mQI=h;this.Ht=a;this.func=J}; s2m=function(){this.tT=null;this.status=0;this.S5=null;this.wrap=this.pending=this.xR=this.h5=0;this.mN=null;this.IS=0;this.method=8;this.Dj=-1;this.dZ=this.FV=this.KB=0;this.window=null;this.xK=0;this.head=this.Ri=null;this.rC=this.qo=this.strategy=this.level=this.E$=this.er=this.T5=this.VY=this.GD=this.Aa=this.oB=this.h$=this.mj=this.KS=this.PR=this.l7=this.fW=this.sD=this.yK=0;this.GL=new nW.nP(1146);this.Eg=new nW.nP(122);this.Ip=new nW.nP(78);Ji(this.GL);Ji(this.Eg);Ji(this.Ip);this.ZF=this.pm= this.Fn=null;this.GF=new nW.nP(16);this.h4=new nW.nP(573);Ji(this.h4);this.YS=this.gp=0;this.depth=new nW.nP(573);Ji(this.depth);this.N2=this.s6=this.TV=this.matches=this.RL=this.pG=this.vP=this.OU=this.CA=this.HN=0}; pLn=function(R,F){if(!R||!R.state||F>5||F<0)return R?aM(R,-2):-2;var h=R.state;if(!R.output||!R.input&&R.r4!==0||h.status===666&&F!==4)return aM(R,R.QK===0?-5:-2);h.tT=R;var a=h.Dj;h.Dj=F;if(h.status===42)if(h.wrap===2)R.SI=0,IM(h,31),IM(h,139),IM(h,8),h.mN?(IM(h,(h.mN.text?1:0)+(h.mN.Zy?2:0)+(h.mN.extra?4:0)+(h.mN.name?8:0)+(h.mN.comment?16:0)),IM(h,h.mN.time&255),IM(h,h.mN.time>>8&255),IM(h,h.mN.time>>16&255),IM(h,h.mN.time>>24&255),IM(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),IM(h,h.mN.os& 255),h.mN.extra&&h.mN.extra.length&&(IM(h,h.mN.extra.length&255),IM(h,h.mN.extra.length>>8&255)),h.mN.Zy&&(R.SI=EV(R.SI,h.S5,h.pending,0)),h.IS=0,h.status=69):(IM(h,0),IM(h,0),IM(h,0),IM(h,0),IM(h,0),IM(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),IM(h,3),h.status=113);else{var J=8+(h.FV-8<<4)<<8;J|=(h.strategy>=2||h.level<2?0:h.level<6?1:h.level===6?2:3)<<6;h.Aa!==0&&(J|=32);h.status=113;iO(h,J+(31-J%31));h.Aa!==0&&(iO(h,R.SI>>>16),iO(h,R.SI&65535));R.SI=1}if(h.status===69)if(h.mN.extra){for(J= h.pending;h.IS<(h.mN.extra.length&65535)&&(h.pending!==h.h5||(h.mN.Zy&&h.pending>J&&(R.SI=EV(R.SI,h.S5,h.pending-J,J)),Mg(R),J=h.pending,h.pending!==h.h5));)IM(h,h.mN.extra[h.IS]&255),h.IS++;h.mN.Zy&&h.pending>J&&(R.SI=EV(R.SI,h.S5,h.pending-J,J));h.IS===h.mN.extra.length&&(h.IS=0,h.status=73)}else h.status=73;if(h.status===73)if(h.mN.name){J=h.pending;do{if(h.pending===h.h5&&(h.mN.Zy&&h.pending>J&&(R.SI=EV(R.SI,h.S5,h.pending-J,J)),Mg(R),J=h.pending,h.pending===h.h5)){var M=1;break}M=h.ISJ&&(R.SI=EV(R.SI,h.S5,h.pending-J,J));M===0&&(h.IS=0,h.status=91)}else h.status=91;if(h.status===91)if(h.mN.comment){J=h.pending;do{if(h.pending===h.h5&&(h.mN.Zy&&h.pending>J&&(R.SI=EV(R.SI,h.S5,h.pending-J,J)),Mg(R),J=h.pending,h.pending===h.h5)){M=1;break}M=h.ISJ&&(R.SI=EV(R.SI,h.S5,h.pending-J,J));M===0&&(h.status=103)}else h.status= 103;h.status===103&&(h.mN.Zy?(h.pending+2>h.h5&&Mg(R),h.pending+2<=h.h5&&(IM(h,R.SI&255),IM(h,R.SI>>8&255),R.SI=0,h.status=113)):h.status=113);if(h.pending!==0){if(Mg(R),R.QK===0)return h.Dj=-1,0}else if(R.r4===0&&(F<<1)-(F>4?9:0)<=(a<<1)-(a>4?9:0)&&F!==4)return aM(R,-5);if(h.status===666&&R.r4!==0)return aM(R,-5);if(R.r4!==0||h.VY!==0||F!==0&&h.status!==666){a=h.strategy===2?YLn(h,F):h.strategy===3?rhO(h,F):pp[h.level].func(h,F);if(a===3||a===4)h.status=666;if(a===1||a===3)return R.QK===0&&(h.Dj= -1),0;if(a===2&&(F===1?(KW(h,2,3),t$(h,256,vk),h.N2===16?(zi(h,h.s6),h.s6=0,h.N2=0):h.N2>=8&&(h.S5[h.pending++]=h.s6&255,h.s6>>=8,h.N2-=8)):F!==5&&(KW(h,0,3),vaL(h,0,0),F===3&&(Ji(h.head),h.VY===0&&(h.Aa=0,h.KS=0,h.TV=0))),Mg(R),R.QK===0))return h.Dj=-1,0}if(F!==4)return 0;if(h.wrap<=0)return 1;h.wrap===2?(IM(h,R.SI&255),IM(h,R.SI>>8&255),IM(h,R.SI>>16&255),IM(h,R.SI>>24&255),IM(h,R.pQ&255),IM(h,R.pQ>>8&255),IM(h,R.pQ>>16&255),IM(h,R.pQ>>24&255)):(iO(h,R.SI>>>16),iO(h,R.SI&65535));Mg(R);h.wrap>0&& (h.wrap=-h.wrap);return h.pending!==0?0:1}; k6=function(R){if(!(this instanceof k6))return new k6(R);R=this.options=nW.assign({level:-1,method:8,chunkSize:16384,D3:15,uoG:8,strategy:0,to:""},R||{});R.raw&&R.D3>0?R.D3=-R.D3:R.Ku&&R.D3>0&&R.D3<16&&(R.D3+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.tT=new k3L;this.tT.QK=0;var F=this.tT;var h=R.level,a=R.method,J=R.D3,M=R.uoG,v=R.strategy;if(F){var I=1;h===-1&&(h=6);J<0?(I=0,J=-J):J>15&&(I=2,J-=16);if(M<1||M>9||a!==8||J<8||J>15||h<0||h>9||v<0||v>4)F=aM(F,-2);else{J===8&&(J=9); var w=new s2m;F.state=w;w.tT=F;w.wrap=I;w.mN=null;w.FV=J;w.KB=1<>=7;M<30;M++)for(Ws[M]=v<<7,J=0;J<1<=E.KB&&(F===0&&(Ji(E.head),E.Aa=0,E.KS=0,E.TV=0),h=new nW.sN(E.KB),nW.Tz(h,M,v-E.KB,E.KB,0),M=h,v=E.KB);h=R.r4;a=R.Lo;J=R.input;R.r4=v;R.Lo=0;R.input=M;for(Bk(E);E.VY>=3;){M=E.Aa;v=E.VY-2;do E.yK=(E.yK<=-5&&(0,h[68])((0,h[0])(h[26],h[81]),h[39],h[15],h[29])}catch(a){(0,h[85])(h[29],h[93]),(0,h[3])((0,h[85])(h[64],h[45]),h[2],(0,h[9])(), h[22],h[64])}try{h[21]<5&&(h[44]<=-2&&((0,h[10])(h[75],h[55]),1)||(0,h[85])(h[29],h[90])),((0,h[46])(h[51]),h[77])(h[new Date(G[67])/1E3])}catch(a){h[44]!==0&&((0,h[0])(((((0,h[39])(h[47],h[26]),h[69])(h[2],h[56]),h[47])(h[18],h[93]),h[5])(h[88],h[72]),h[20],h[56]),h[26])(h[66],h[86])}finally{h[86]>5&&(h[49]!==0?(0,h[14])(h[28],(0,h[37])((0,h[28])(h[7],h[49])<(0,h[65])(h[56]),h[27],h[88],h[14]),(0,h[87])(h[50],(0,h[50])(h[66],h[85]),(0,h[26])(h[66],h[54]),(0,h[26])(h[88],h[74]),(0,h[5])(h[88],h[19]), h[56],h[81]),(0,h[76])(h[6],h[56]),h[56],h[29]):(((((0,h[37])((0,h[20])(h[88]),h[39],(0,h[10])(),h[75],h[56]),h[39])((0,h[46])(),h[75],h[7]),h[11])((0,h[39])((0,h[10])(),h[75],h[56]),h[50],h[7],h[30]),((0,h[50])(h[66],h[89]),h[28])(h[7],h[16]),h[50])(h[66],h[44])>>>(0,h[50])(h[7],h[43]))*(0,h[5])(h[63],h[21]))}try{(h[77]<10||((0,h[37])((0,h[65])(h[88]),h[18],h[39],h[28]),(0,h[0])(h[18],(0,h[83])((0,h[89])(h[6],h[92]),h[68],h[76],h[15]),(0,h[44])(h[87],h[82]),(0,h[18])(h[93],h[31]),h[10],h[24]),0))&& (0,h[58])(h[37],(0,h[72])((0,h[67])(h[21]),h[76],(0,h[76])((0,h[48])((0,h[77])(),h[12],h[80]),h[48],(0,h[77])(),h[12],h[21]),h[37],h[80],h[62]),(0,h[37])(h[80],h[36]),(0,h[new Date(G[62])/1E3])((0,h[41])(),h[12],h[80]),h[80],h[17]),h[92]!=0?(0,h[50])((0,h[59])(h[24],h[27])-(0,h[70])(h[12],h[79]),h[36],(0,h[65])(),h[33],h[68]):(0,h[8])((0,h[25])(h[9],h[58]),h[47],(0,h[94])(h[53],h[12]),h[57],h[0]),h[85]!=3&&(h[43]<=-4&&((((0,h[25])(h[68],h[17]),h[38])(((0,h[36])((0,h[40])(),h[33],h[19]),h[94])(h[43], h[68]),h[94],h[2],h[9]),h[64])((0,h[25])(h[68],h[6]),h[94],h[71],h[19]),10)||(((0,h[25])(h[68],h[52]),h[94])(h[22],h[9])|(0,h[25])(h[19],h[18]))!==(0,h[38])((0,h[64])((0,h[25])(h[19],h[92]),h[70],h[9],h[41]),h[70],h[9],h[80])),h[63]>=4&&(h[1]>1&&((0,h[55])(h[9]),1)||(0,h[36])((0,h[40])(),h[33],h[19]))}catch(a){(0,h[70])(h[68],h[11]),(0,h[47])(h[68],h[75]),(0,h[36])((0,h[65])(),h[33],h[68]),(0,h[25])(h[68],h[4])}}catch(a){return G[20]+R}return F[G[41]](G[1])}; g.Ng=function(R){this.name=R}; eqT=function(R){this.Bo=dR(R)}; Hk=function(R){this.Bo=dR(R)}; Lp=function(R){this.Bo=dR(R)}; nan=function(R){this.Bo=dR(R)}; Tu=function(R){this.Bo=dR(R)}; yz=function(R){this.Bo=dR(R)}; qg=function(R){this.Bo=dR(R)}; fp=function(R){this.Bo=dR(R)}; jm=function(R){this.Bo=dR(R)}; ZP=function(R){this.Bo=dR(R)}; bO=function(R){this.Bo=dR(R)}; Sm=function(R){this.Bo=dR(R)}; OV=function(R){this.Bo=dR(R)}; mw=function(R){this.Bo=dR(R)}; oM=function(R){this.Bo=dR(R)}; Xo=function(R){this.Bo=dR(R,500)}; em=function(R){this.Bo=dR(R)}; d1=function(R){this.Bo=dR(R)}; uNI=function(R){this.Bo=dR(R)}; dWO=function(){return g.hG("yt.ads.biscotti.lastId_")||""}; PeO=function(R){g.Fk("yt.ads.biscotti.lastId_",R)}; zu=function(){var R=arguments,F=Pk;R.length>1?F[R[0]]=R[1]:R.length===1&&Object.assign(F,R[0])}; g.Kp=function(R,F){return R in Pk?Pk[R]:F}; ti=function(R){var F=Pk.EXPERIMENT_FLAGS;return F?F[R]:void 0}; zqm=function(R){lO.forEach(function(F){return F(R)})}; g.Vz=function(R){return R&&window.yterr?function(){try{return R.apply(this,arguments)}catch(F){g.DP(F)}}:R}; g.DP=function(R){var F=g.hG("yt.logging.errors.log");F?F(R,"ERROR",void 0,void 0,void 0,void 0,void 0):(F=g.Kp("ERRORS",[]),F.push([R,"ERROR",void 0,void 0,void 0,void 0,void 0]),zu("ERRORS",F));zqm(R)}; UV=function(R,F,h,a,J){var M=g.hG("yt.logging.errors.log");M?M(R,"WARNING",F,h,a,void 0,J):(M=g.Kp("ERRORS",[]),M.push([R,"WARNING",F,h,a,void 0,J]),zu("ERRORS",M))}; Cp=function(R,F){F=R.split(F);for(var h={},a=0,J=F.length;a1?R[1]:R[0])):{}}; h3=function(R,F){return DWI(R,F||{},!0)}; az=function(R,F){return DWI(R,F||{},!1)}; DWI=function(R,F,h){var a=R.split("#",2);R=a[0];a=a.length>1?"#"+a[1]:"";var J=R.split("?",2);R=J[0];J=Wk(J[1]||"");for(var M in F)if(h||!g.i_(J,M))J[M]=F[M];return g.sA(R,J)+a}; J3=function(R){if(!F)var F=window.location.href;var h=g.Gg(R)[1]||null,a=g.I8(R);h&&a?(R=g.Gg(R),F=g.Gg(F),R=R[3]==F[3]&&R[1]==F[1]&&R[4]==F[4]):R=a?g.I8(F)===a&&(Number(g.Gg(F)[4]||null)||null)===(Number(g.Gg(R)[4]||null)||null):!0;return R}; Ml=function(R){R||(R=document.location.href);R=g.Gg(R)[1]||null;return R!==null&&R==="https"}; v6=function(R){R=VVi(R);return R===null?!1:R[0]==="com"&&R[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; UWi=function(R){R=VVi(R);return R===null?!1:R[1]==="google"?!0:R[2]==="google"?R[0]==="au"&&R[1]==="com"?!0:R[0]==="uk"&&R[1]==="co"?!0:!1:!1}; VVi=function(R){R=g.I8(R);return R!==null?R.split(".").reverse():null}; K7a=function(R){return R&&R.match(CeB)?R:fh(R)}; Iz=function(R){var F=gb;R=R===void 0?dWO():R;var h=Object,a=h.assign,J=G6(F);var M=F.B;try{var v=M.screenX;var I=M.screenY}catch(Z){}try{var w=M.outerWidth;var E=M.outerHeight}catch(Z){}try{var B=M.innerWidth;var r=M.innerHeight}catch(Z){}try{var Y=M.screenLeft;var p=M.screenTop}catch(Z){}try{B=M.innerWidth,r=M.innerHeight}catch(Z){}try{var k=M.screen.availWidth;var H=M.screen.availTop}catch(Z){}M=[Y,p,v,I,k,H,w,E,B,r];v=MYO(!1,F.B.top);I={};var T=T===void 0?g.Wi:T;w=new nD;"SVGElement"in T&&"createElementNS"in T.document&&w.set(0);E=MPm();E["allow-top-navigation-by-user-activation"]&&w.set(1);E["allow-popups-to-escape-sandbox"]&&w.set(2);T.crypto&&T.crypto.subtle&&w.set(3);"TextDecoder"in T&&"TextEncoder"in T&&w.set(4);T=HuI(w);F=(I.bc=T,I.bih=v.height,I.biw=v.width,I.brdim=M.join(),I.vis=Mx(F.D),I.wgl=!!ju.WebGLRenderingContext,I);h=a.call(h,J,F);h.ca_type="image";R&&(h.bid=R);return h}; G6=function(R){var F={};F.dt=chf;F.flash="0";a:{try{var h=R.B.top.location.href}catch(B){R=2;break a}R=h?h===R.D.location.href?0:1:2}F=(F.frm=R,F);try{F.u_tz=-(new Date).getTimezoneOffset();var a=a===void 0?ju:a;try{var J=a.history.length}catch(B){J=0}F.u_his=J;var M;F.u_h=(M=ju.screen)==null?void 0:M.height;var v;F.u_w=(v=ju.screen)==null?void 0:v.width;var I;F.u_ah=(I=ju.screen)==null?void 0:I.availHeight;var w;F.u_aw=(w=ju.screen)==null?void 0:w.availWidth;var E;F.u_cd=(E=ju.screen)==null?void 0: E.colorDepth}catch(B){}return F}; Rvi=function(){if(!W7B)return null;var R=W7B();return"open"in R?R:null}; g.wb=function(R){switch(iB(R)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; iB=function(R){return R&&"status"in R?R.status:-1}; g.Eg=function(R,F){typeof R==="function"&&(R=g.Vz(R));return window.setTimeout(R,F)}; g.B6=function(R,F){typeof R==="function"&&(R=g.Vz(R));return window.setInterval(R,F)}; g.rb=function(R){window.clearTimeout(R)}; g.Y$=function(R){window.clearInterval(R)}; g.pR=function(R){R=sg(R);return typeof R==="string"&&R==="false"?!1:!!R}; g.k$=function(R,F){R=sg(R);return R===void 0&&F!==void 0?F:Number(R||0)}; QS=function(){return g.Kp("EXPERIMENTS_TOKEN","")}; sg=function(R){return g.Kp("EXPERIMENT_FLAGS",{})[R]}; $$=function(){for(var R=[],F=g.Kp("EXPERIMENTS_FORCED_FLAGS",{}),h=g.N(Object.keys(F)),a=h.next();!a.done;a=h.next())a=a.value,R.push({key:a,value:String(F[a])});h=g.Kp("EXPERIMENT_FLAGS",{});a=g.N(Object.keys(h));for(var J=a.next();!J.done;J=a.next())J=J.value,J.startsWith("force_")&&F[J]===void 0&&R.push({key:J,value:String(h[J])});return R}; A3=function(R,F,h,a,J,M,v,I){function w(){(E&&"readyState"in E?E.readyState:0)===4&&F&&g.Vz(F)(E)} h=h===void 0?"GET":h;a=a===void 0?"":a;I=I===void 0?!1:I;var E=Rvi();if(!E)return null;"onloadend"in E?E.addEventListener("loadend",w,!1):E.onreadystatechange=w;g.pR("debug_forward_web_query_parameters")&&(R=FWi(R));E.open(h,R,!0);M&&(E.responseType=M);v&&(E.withCredentials=!0);h=h==="POST"&&(window.FormData===void 0||!(a instanceof FormData));if(J=hvL(R,J))for(var B in J)E.setRequestHeader(B,J[B]),"content-type"===B.toLowerCase()&&(h=!1);h&&E.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(I&&"setAttributionReporting"in XMLHttpRequest.prototype){R={eventSourceEligible:!0,triggerEligible:!1};try{E.setAttributionReporting(R)}catch(r){UV(r)}}E.send(a);return E}; hvL=function(R,F){F=F===void 0?{}:F;var h=J3(R),a=g.Kp("INNERTUBE_CLIENT_NAME"),J=g.pR("web_ajax_ignore_global_headers_if_set"),M;for(M in a_n){var v=g.Kp(a_n[M]),I=M==="X-Goog-AuthUser"||M==="X-Goog-PageId";M!=="X-Goog-Visitor-Id"||v||(v=g.Kp("VISITOR_DATA"));var w;if(!(w=!v)){if(!(w=h||(g.I8(R)?!1:!0))){w=R;var E;if(E=g.pR("add_auth_headers_to_remarketing_google_dot_com_ping")&&M==="Authorization"&&(a==="TVHTML5"||a==="TVHTML5_UNPLUGGED"||a==="TVHTML5_SIMPLY")&&UWi(w))w=ib(w)||"",w=w.split("/"), w="/"+(w.length>1?w[1]:""),E=w==="/pagead";w=E?!0:!1}w=!w}w||J&&F[M]!==void 0||a==="TVHTML5_UNPLUGGED"&&I||(F[M]=v)}"X-Goog-EOM-Visitor-Id"in F&&"X-Goog-Visitor-Id"in F&&delete F["X-Goog-Visitor-Id"];if(h||!g.I8(R))F["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(h||!g.I8(R)){try{var B=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(r){}B&&(F["X-YouTube-Time-Zone"]=B)}document.location.hostname.endsWith("youtubeeducation.com")||!h&&g.I8(R)||(F["X-YouTube-Ad-Signals"]= ck(Iz()));return F}; Nl=function(R,F){F.method="POST";F.postParams||(F.postParams={});return g.x$(R,F)}; vyO=function(R,F){if(window.fetch&&F.format!=="XML"){var h={method:F.method||"GET",credentials:"same-origin"};F.headers&&(h.headers=F.headers);F.priority&&(h.priority=F.priority);R=J1i(R,F);var a=MkO(R,F);a&&(h.body=a);F.withCredentials&&(h.credentials="include");var J=F.context||g.Wi,M=!1,v;fetch(R,h).then(function(I){if(!M){M=!0;v&&g.rb(v);var w=I.ok,E=function(B){B=B||{};w?F.onSuccess&&F.onSuccess.call(J,B,I):F.onError&&F.onError.call(J,B,I);F.onFinish&&F.onFinish.call(J,B,I)}; (F.format||"JSON")==="JSON"&&(w||I.status>=400&&I.status<500)?I.json().then(E,function(){E(null)}):E(null)}}).catch(function(){F.onError&&F.onError.call(J,{},{})}); R=F.timeout||0;F.onFetchTimeout&&R>0&&(v=g.Eg(function(){M||(M=!0,g.rb(v),F.onFetchTimeout.call(F.context||g.Wi))},R))}else g.x$(R,F)}; g.x$=function(R,F){var h=F.format||"JSON";R=J1i(R,F);var a=MkO(R,F),J=!1,M=gyT(R,function(w){if(!J){J=!0;I&&g.rb(I);var E=g.wb(w),B=null,r=400<=w.status&&w.status<500,Y=500<=w.status&&w.status<600;if(E||r||Y)B=Gnm(R,h,w,F.convertToSafeHtml);E&&(E=I_m(h,w,B));B=B||{};r=F.context||g.Wi;E?F.onSuccess&&F.onSuccess.call(r,w,B):F.onError&&F.onError.call(r,w,B);F.onFinish&&F.onFinish.call(r,w,B)}},F.method,a,F.headers,F.responseType,F.withCredentials); a=F.timeout||0;if(F.onTimeout&&a>0){var v=F.onTimeout;var I=g.Eg(function(){J||(J=!0,M.abort(),g.rb(I),v.call(F.context||g.Wi,M))},a)}return M}; J1i=function(R,F){F.includeDomain&&(R=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+R);var h=g.Kp("XSRF_FIELD_NAME");if(F=F.urlParams)F[h]&&delete F[h],R=h3(R,F);return R}; MkO=function(R,F){var h=g.Kp("XSRF_FIELD_NAME"),a=g.Kp("XSRF_TOKEN"),J=F.postBody||"",M=F.postParams,v=g.Kp("XSRF_FIELD_NAME"),I;F.headers&&(I=F.headers["Content-Type"]);F.excludeXsrf||g.I8(R)&&!F.withCredentials&&g.I8(R)!==document.location.hostname||F.method!=="POST"||I&&I!=="application/x-www-form-urlencoded"||F.postParams&&F.postParams[v]||(M||(M={}),M[h]=a);(g.pR("ajax_parse_query_data_only_when_filled")&&M&&Object.keys(M).length>0||M)&&typeof J==="string"&&(J=Wk(J),g.km(J,M),J=F.postBodyFormat&& F.postBodyFormat==="JSON"?JSON.stringify(J):g.YR(J));M=J||M&&!g.BV(M);!iVL&&M&&F.method!=="POST"&&(iVL=!0,g.DP(Error("AJAX request with postData should use POST")));return J}; Gnm=function(R,F,h,a){var J=null;switch(F){case "JSON":try{var M=h.responseText}catch(v){throw a=Error("Error reading responseText"),a.params=R,UV(a),v;}R=h.getResponseHeader("Content-Type")||"";M&&R.indexOf("json")>=0&&(M.substring(0,5)===")]}'\n"&&(M=M.substring(5)),J=JSON.parse(M));break;case "XML":if(R=(R=h.responseXML)?wYi(R):null)J={},g.Uv(R.getElementsByTagName("*"),function(v){J[v.tagName]=EyL(v)})}a&&Bzf(J); return J}; Bzf=function(R){if(g.M4(R))for(var F in R)F==="html_content"||da_(F,"_html")?R[F]=BZ(R[F]):Bzf(R[F])}; I_m=function(R,F,h){if(F&&F.status===204)return!0;switch(R){case "JSON":return!!h;case "XML":return Number(h&&h.return_code)===0;case "RAW":return!0;default:return!!h}}; wYi=function(R){return R?(R=("responseXML"in R?R.responseXML:R).getElementsByTagName("root"))&&R.length>0?R[0]:null:null}; EyL=function(R){var F="";g.Uv(R.childNodes,function(h){F+=h.nodeValue}); return F}; FWi=function(R){var F=window.location.search,h=g.I8(R);g.pR("debug_handle_relative_url_for_query_forward_killswitch")||!h&&J3(R)&&(h=document.location.hostname);var a=ib(R);a=(h=h&&(h.endsWith("youtube.com")||h.endsWith("youtube-nocookie.com")))&&a&&a.startsWith("/api/");if(!h||a)return R;var J=Wk(F),M={};g.Uv(r1L,function(v){J[v]&&(M[v]=J[v])}); return az(R,M)}; LR=function(R,F){var h=g.sR(F),a;return(new g.qW(function(J,M){h.onSuccess=function(v){g.wb(v)?J(new YJI(v)):M(new H6("Request failed, status="+iB(v),"net.badstatus",v))}; h.onError=function(v){M(new H6("Unknown request error","net.unknown",v))}; h.onTimeout=function(v){M(new H6("Request timed out","net.timeout",v))}; a=g.x$(R,h)})).eK(function(J){if(J instanceof OL){var M; (M=a)==null||M.abort()}return ZH(J)})}; g.T6=function(R,F,h,a,J,M){function v(w,E,B){return w.eK(function(r){if(E<=0||iB(r.xhr)===403)return ZH(new H6("Request retried too many times","net.retryexhausted",r.xhr,r));var Y=Math.pow(2,h-E+1)*B,p=J>0?Math.min(J,Y):Y;return I(B).then(function(){M&&M(r,E-1);return v(LR(R,F),E-1,p)})})} function I(w){return new g.qW(function(E){setTimeout(E,w)})} J=J===void 0?-1:J;return v(LR(R,F),h-1,a)}; H6=function(R,F,h){r7.call(this,R+", errorCode="+F);this.errorCode=F;this.xhr=h;this.name="PromiseAjaxError"}; YJI=function(R){this.xhr=R}; yS=function(R){this.B=R===void 0?null:R;this.K=0;this.D=null}; ql=function(R){var F=new yS;R=R===void 0?null:R;F.K=2;F.D=R===void 0?null:R;return F}; fR=function(R){var F=new yS;R=R===void 0?null:R;F.K=1;F.D=R===void 0?null:R;return F}; g.bB=function(R,F,h,a,J){jn||ZD.set(""+R,F,{D8:h,path:"/",domain:a===void 0?"youtube.com":a,secure:J===void 0?!1:J})}; g.Sn=function(R,F){if(!jn)return ZD.get(""+R,F)}; g.Og=function(R,F,h){jn||ZD.remove(""+R,F===void 0?"/":F,h===void 0?"youtube.com":h)}; sj2=function(){if(g.pR("embeds_web_enable_cookie_detection_fix")){if(!g.Wi.navigator.cookieEnabled)return!1}else if(!ZD.isEnabled())return!1;if(!ZD.isEmpty())return!0;g.pR("embeds_web_enable_cookie_detection_fix")?ZD.set("TESTCOOKIESENABLED","1",{D8:60,N$z:"none",secure:!0}):ZD.set("TESTCOOKIESENABLED","1",{D8:60});if(ZD.get("TESTCOOKIESENABLED")!=="1")return!1;ZD.remove("TESTCOOKIESENABLED");return!0}; g.t=function(R,F){if(R)return R[F.name]}; mK=function(R){var F=g.Kp("INNERTUBE_HOST_OVERRIDE");F&&(R=String(F)+String(wy(R)));return R}; pYi=function(R){var F={};g.pR("json_condensed_response")&&(F.prettyPrint="false");return R=az(R,F)}; oz=function(R,F){var h=h===void 0?{}:h;R={method:F===void 0?"POST":F,mode:J3(R)?"same-origin":"cors",credentials:J3(R)?"same-origin":"include"};F={};for(var a=g.N(Object.keys(h)),J=a.next();!J.done;J=a.next())J=J.value,h[J]&&(F[J]=h[J]);Object.keys(F).length>0&&(R.headers=F);return R}; Xf=function(){var R=/Chrome\/(\d+)/.exec(g.ol());return R?parseFloat(R[1]):NaN}; en=function(){var R=/\sCobalt\/(\S+)\s/.exec(g.ol());if(!R)return NaN;var F=[];R=g.N(R[1].split("."));for(var h=R.next();!h.done;h=R.next())h=parseInt(h.value,10),h>=0&&F.push(h);return parseFloat(F.join("."))}; uB=function(){return g.nR("android")&&g.nR("chrome")&&!(g.nR("trident/")||g.nR("edge/"))&&!g.nR("cobalt")}; knL=function(){return g.nR("armv7")||g.nR("aarch64")||g.nR("android")}; g.db=function(){return g.nR("cobalt")}; P6=function(){return g.nR("cobalt")&&g.nR("appletv")}; z6=function(){return g.nR("(ps3; leanback shell)")||g.nR("ps3")&&g.db()}; Qji=function(){return g.nR("(ps4; leanback shell)")||g.nR("ps4")&&g.db()}; g.$KL=function(){return g.db()&&(g.nR("ps4 vr")||g.nR("ps4 pro vr"))}; KR=function(){var R=/WebKit\/([0-9]+)/.exec(g.ol());return!!(R&&parseInt(R[1],10)>=600)}; t3=function(){var R=/WebKit\/([0-9]+)/.exec(g.ol());return!!(R&&parseInt(R[1],10)>=602)}; A1T=function(){return g.nR("iemobile")||g.nR("windows phone")&&g.nR("edge")}; VS=function(){return(lB||DD)&&g.nR("applewebkit")&&!g.nR("version")&&(!g.nR("safari")||g.nR("gsa/"))}; CR=function(){return g.Ug&&g.nR("version/")}; c6=function(){return g.nR("smart-tv")&&g.nR("samsung")}; g.nR=function(R){var F=g.ol();return F?F.toLowerCase().indexOf(R)>=0:!1}; W6=function(){return vRm()||VS()||CR()?!0:g.Kp("EOM_VISITOR_DATA")?!1:!0}; RA=function(R,F){return F===void 0||F===null?R:F==="1"||F===!0||F===1||F==="True"?!0:!1}; FB=function(R,F,h){for(var a in h)if(h[a]==F)return h[a];return R}; hs=function(R,F){return F===void 0||F===null?R:Number(F)}; aA=function(R,F){return F===void 0||F===null?R:F.toString()}; Js=function(R,F){if(F){if(R==="fullwidth")return Infinity;if(R==="fullheight")return 0}return R&&(F=R.match(xKT))&&(R=Number(F[2]),F=Number(F[1]),!isNaN(R)&&!isNaN(F)&&R>0)?F/R:NaN}; Mm=function(R){var F=R.docid||R.video_id||R.videoId||R.id;if(F)return F;F=R.raw_player_response;F||(R=R.player_response)&&(F=JSON.parse(R));return F&&F.videoDetails&&F.videoDetails.videoId||null}; NzL=function(R){return vv(R,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.gK=function(R){return R==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||R==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; vv=function(R,F){F=(F===void 0?0:F)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(F="EMBEDDED_PLAYER_MODE_PFL");var h=R.raw_embedded_player_response;if(!h&&(R=R.embedded_player_response))try{h=JSON.parse(R)}catch(a){return F}return h?FB(F,h.embeddedPlayerMode,HV7):F}; IA=function(R){r7.call(this,R.message||R.description||R.name);this.isMissing=R instanceof GP;this.isTimeout=R instanceof H6&&R.errorCode=="net.timeout";this.isCanceled=R instanceof OL}; GP=function(){r7.call(this,"Biscotti ID is missing from server")}; LWL=function(){if(g.pR("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!W6())return Error("User has not consented - not fetching biscotti id.");var R=g.Kp("PLAYER_VARS",{});if(g.rd(R,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(NzL(R))return Error("Biscotti id fetching has been disabled for pfl.")}; f_7=function(){var R=LWL();if(R!==void 0)return ZH(R);iH||(iH=LR("//googleads.g.doubleclick.net/pagead/id",TzL).then(y1i).eK(function(F){return qJL(2,F)})); return iH}; y1i=function(R){R=R.xhr.responseText;if(!fM(R,")]}'"))throw new GP;R=JSON.parse(R.substr(4));if((R.type||1)>1)throw new GP;R=R.id;PeO(R);iH=fR(R);jj7(18E5,2);return R}; qJL=function(R,F){F=new IA(F);PeO("");iH=ql(F);R>0&&jj7(12E4,R-1);throw F;}; jj7=function(R,F){g.Eg(function(){LR("//googleads.g.doubleclick.net/pagead/id",TzL).then(y1i,function(h){return qJL(F,h)}).eK(g.bX)},R)}; ZVf=function(){try{var R=g.hG("yt.ads.biscotti.getId_");return R?R():f_7()}catch(F){return ZH(F)}}; SJi=function(R){R&&(R.dataset?R.dataset[bVa()]="true":at_(R))}; OV7=function(R){return R?R.dataset?R.dataset[bVa()]:R.getAttribute("data-loaded"):null}; bVa=function(){return mKO.loaded||(mKO.loaded="loaded".replace(/\-([a-z])/g,function(R,F){return F.toUpperCase()}))}; oyi=function(){var R=document;if("visibilityState"in R)return R.visibilityState;var F=wK+"VisibilityState";if(F in R)return R[F]}; EK=function(R,F){var h;dy(R,function(a){h=F[a];return!!h}); return h}; Bv=function(R){if(R.requestFullscreen)R=R.requestFullscreen(void 0);else if(R.webkitRequestFullscreen)R=R.webkitRequestFullscreen();else if(R.mozRequestFullScreen)R=R.mozRequestFullScreen();else if(R.msRequestFullscreen)R=R.msRequestFullscreen();else if(R.webkitEnterFullscreen)R=R.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return R instanceof Promise?R:Promise.resolve()}; sK=function(R){var F;g.rK()?YO()==R&&(F=document):F=R;return F&&(R=EK(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],F))?(F=R.call(F),F instanceof Promise?F:Promise.resolve()):Promise.resolve()}; XYi=function(R){return g.QL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(F){return"on"+F.toLowerCase()in R})}; ev_=function(){var R=document;return g.QL(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(F){return"on"+F.toLowerCase()in R})}; g.rK=function(){return!!EK(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; YO=function(R){R=R===void 0?!1:R;var F=EK(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(R)for(;F&&F.shadowRoot;)F=F.shadowRoot.fullscreenElement;return F?F:null}; pn=function(R){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(R=R||window.event){this.event=R;for(var F in R)F in nym||(this[F]=R[F]);this.scale=R.scale;this.rotation=R.rotation;var h=R.target||R.srcElement;h&&h.nodeType==3&&(h=h.parentNode);this.target=h;var a=R.relatedTarget; if(a)try{a=a.nodeName?a:null}catch(J){a=null}else this.type=="mouseover"?a=R.fromElement:this.type=="mouseout"&&(a=R.toElement);this.relatedTarget=a;this.clientX=R.clientX!=void 0?R.clientX:R.pageX;this.clientY=R.clientY!=void 0?R.clientY:R.pageY;this.keyCode=R.keyCode?R.keyCode:R.which;this.charCode=R.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=R.altKey;this.ctrlKey=R.ctrlKey;this.shiftKey=R.shiftKey;this.metaKey=R.metaKey;this.B=R.pageX;this.D=R.pageY}}catch(J){}}; uya=function(R){if(document.body&&document.documentElement){var F=document.body.scrollTop+document.documentElement.scrollTop;R.B=R.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);R.D=R.clientY+F}}; dKI=function(R,F,h,a){a=a===void 0?{}:a;R.addEventListener&&(F!="mouseenter"||"onmouseenter"in document?F!="mouseleave"||"onmouseenter"in document?F=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(F="MozMousePixelScroll"):F="mouseout":F="mouseover");return ER(kO,function(J){var M=typeof J[4]==="boolean"&&J[4]==!!a,v=g.M4(J[4])&&g.M4(a)&&g.Ym(J[4],a);return!!J.length&&J[0]==R&&J[1]==F&&J[2]==h&&(M||v)})}; g.QG=function(R,F,h,a){a=a===void 0?{}:a;if(!R||!R.addEventListener&&!R.attachEvent)return"";var J=dKI(R,F,h,a);if(J)return J;J=++PjB.count+"";var M=!(F!="mouseenter"&&F!="mouseleave"||!R.addEventListener||"onmouseenter"in document);var v=M?function(I){I=new pn(I);if(!xT(I.relatedTarget,function(w){return w==R},!0))return I.currentTarget=R,I.type=F,h.call(R,I)}:function(I){I=new pn(I); I.currentTarget=R;return h.call(R,I)}; v=g.Vz(v);R.addEventListener?(F=="mouseenter"&&M?F="mouseover":F=="mouseleave"&&M?F="mouseout":F=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(F="MozMousePixelScroll"),zvL()||typeof a==="boolean"?R.addEventListener(F,v,a):R.addEventListener(F,v,!!a.capture)):R.attachEvent("on"+F,v);kO[J]=[R,F,h,v,a];return J}; tkT=function(R){return KWB(R,function(F){return g.ap(F,"ytp-ad-has-logging-urls")})}; KWB=function(R,F){var h=document.body||document;return g.QG(h,"click",function(a){var J=xT(a.target,function(M){return M===h||F(M)},!0); J&&J!==h&&!J.disabled&&(a.currentTarget=J,R.call(J,a))})}; g.$O=function(R){R&&(typeof R=="string"&&(R=[R]),g.Uv(R,function(F){if(F in kO){var h=kO[F],a=h[0],J=h[1],M=h[3];h=h[4];a.removeEventListener?zvL()||typeof h==="boolean"?a.removeEventListener(J,M,h):a.removeEventListener(J,M,!!h.capture):a.detachEvent&&a.detachEvent("on"+J,M);delete kO[F]}}))}; As=function(R){for(var F in kO)kO[F][0]==R&&g.$O(F)}; xO=function(R){R=R||window.event;var F;R.composedPath&&typeof R.composedPath==="function"?F=R.composedPath():F=R.path;F&&F.length?R=F[0]:(R=R||window.event,R=R.target||R.srcElement,R.nodeType==3&&(R=R.parentNode));return R}; Nm=function(R){this.Y=R;this.B=null;this.L=0;this.S=null;this.N=0;this.D=[];for(R=0;R<4;R++)this.D.push(0);this.K=0;this.aR=g.QG(window,"mousemove",(0,g.Ge)(this.C,this));this.Z=g.B6((0,g.Ge)(this.oR,this),25)}; Hv=function(R){g.d.call(this);this.Y=[];this.iY=R||this}; Ln=function(R,F,h,a){for(var J=0;J0?h:0;h=a?Date.now()+a*1E3:0;if((a=a?(0,g.yG)():qm())&&window.JSON){typeof F!=="string"&&(F=JSON.stringify(F,void 0));try{a.set(R,F,h)}catch(J){a.remove(R)}}}; g.jA=function(R){var F=qm(),h=(0,g.yG)();if(!F&&!h||!window.JSON)return null;try{var a=F.get(R)}catch(J){}if(typeof a!=="string")try{a=h.get(R)}catch(J){}if(typeof a!=="string")return null;try{a=JSON.parse(a,void 0)}catch(J){}return a}; DKn=function(){var R=(0,g.yG)();if(R&&(R=R.D("yt-player-quality")))return R.creation}; g.Z1=function(R){try{var F=qm(),h=(0,g.yG)();F&&F.remove(R);h&&h.remove(R)}catch(a){}}; g.bH=function(){return g.jA("yt-remote-session-screen-id")}; Vkm=function(R){var F=this;this.D=void 0;this.B=!1;R.addEventListener("beforeinstallprompt",function(h){h.preventDefault();F.D=h}); R.addEventListener("appinstalled",function(){F.B=!0},{once:!0})}; SA=function(){if(!g.Wi.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Wi.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Wi.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Wi.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Wi.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(R){return"WEB_DISPLAY_MODE_UNKNOWN"}}; OK=function(){this.jZ=!0}; UK7=function(){OK.instance||(OK.instance=new OK);return OK.instance}; CjL=function(R){switch(R){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}}; c1g=function(){this.B=g.Kp("ALT_PREF_COOKIE_NAME","PREF");this.D=g.Kp("ALT_PREF_COOKIE_DOMAIN","youtube.com");var R=g.Sn(this.B);R&&this.parse(R)}; g.oA=function(){mi||(mi=new c1g);return mi}; g.XB=function(R,F){return!!((WWL("f"+(Math.floor(F/31)+1))||0)&1<0;)switch(R=vR.shift(),R.type){case "ERROR":hY.X4(R.payload);break;case "EVENT":hY.logEvent(R.eventType,R.payload)}}; GC=function(R){gS||(hY?hY.X4(R):(vR.push({type:"ERROR",payload:R}),vR.length>10&&vR.shift()))}; If=function(R,F){gS||(hY?hY.logEvent(R,F):(vR.push({type:"EVENT",eventType:R,payload:F}),vR.length>10&&vR.shift()))}; iI=function(R){if(R.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; wS=function(R){return R.substr(0,R.indexOf(":"))||R}; g.EU=function(R,F,h,a,J){F=F===void 0?{}:F;h=h===void 0?gYi[R]:h;a=a===void 0?G$n[R]:a;J=J===void 0?IYf[R]:J;g.Pv.call(this,h,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:R},F));this.type=R;this.message=h;this.level=a;this.B=J;Object.setPrototypeOf(this,g.EU.prototype)}; BR=function(R,F){g.EU.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:F,foundObjectStores:R},gYi.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,BR.prototype)}; rS=function(R,F){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.index=R;this.objectStore=F;Object.setPrototypeOf(this,rS.prototype)}; sU=function(R,F,h,a){F=wS(F);var J=R instanceof Error?R:Error("Unexpected error: "+R);if(J instanceof g.EU)return J;R={objectStoreNames:h,dbName:F,dbVersion:a};if(J.name==="QuotaExceededError")return new g.EU("QUOTA_EXCEEDED",R);if(g.YV&&J.name==="UnknownError")return new g.EU("QUOTA_MAYBE_EXCEEDED",R);if(J instanceof rS)return new g.EU("MISSING_INDEX",Object.assign({},R,{objectStore:J.objectStore,index:J.index}));if(J.name==="InvalidStateError"&&iD2.some(function(M){return J.message.includes(M)}))return new g.EU("EXECUTE_TRANSACTION_ON_CLOSED_DB", R); if(J.name==="AbortError")return new g.EU("UNKNOWN_ABORT",R,J.message);J.args=[Object.assign({},R,{name:"IdbError",Q8:J.name})];J.level="WARNING";return J}; g.pm=function(R,F,h){var a=Fh();return new g.EU("IDB_NOT_SUPPORTED",{context:{caller:R,publicName:F,version:h,hasSucceededOnce:a==null?void 0:a.hasSucceededOnce}})}; w9n=function(R){if(!R)throw Error();throw R;}; EYT=function(R){return R}; kV=function(R){this.B=R}; g.Qe=function(R){function F(J){if(a.state.status==="PENDING"){a.state={status:"REJECTED",reason:J};J=g.N(a.D);for(var M=J.next();!M.done;M=J.next())M=M.value,M()}} function h(J){if(a.state.status==="PENDING"){a.state={status:"FULFILLED",value:J};J=g.N(a.B);for(var M=J.next();!M.done;M=J.next())M=M.value,M()}} var a=this;this.state={status:"PENDING"};this.B=[];this.D=[];R=R.B;try{R(h,F)}catch(J){F(J)}}; BIn=function(R,F,h,a,J){try{if(R.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var M=h(R.state.value);M instanceof g.Qe?$V(R,F,M,a,J):a(M)}catch(v){J(v)}}; rjn=function(R,F,h,a,J){try{if(R.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var M=h(R.state.reason);M instanceof g.Qe?$V(R,F,M,a,J):a(M)}catch(v){J(v)}}; $V=function(R,F,h,a,J){F===h?J(new TypeError("Circular promise chain detected.")):h.then(function(M){M instanceof g.Qe?$V(R,F,M,a,J):a(M)},function(M){J(M)})}; YXO=function(R,F,h){function a(){h(R.error);M()} function J(){F(R.result);M()} function M(){try{R.removeEventListener("success",J),R.removeEventListener("error",a)}catch(v){}} R.addEventListener("success",J);R.addEventListener("error",a)}; s3_=function(R){return new Promise(function(F,h){YXO(R,F,h)})}; AY=function(R){return new g.Qe(new kV(function(F,h){YXO(R,F,h)}))}; xV=function(R,F){return new g.Qe(new kV(function(h,a){function J(){var M=R?F(R):null;M?M.then(function(v){R=v;J()},a):h()} J()}))}; p97=function(R,F){this.request=R;this.cursor=F}; k$I=function(R){return AY(R).then(function(F){return F?new p97(R,F):null})}; g.Q3T=function(R){R.cursor.continue(void 0);return k$I(R.request)}; $nI=function(R,F){this.B=R;this.options=F;this.transactionCount=0;this.K=Math.round((0,g.NU)());this.D=!1}; g.Lm=function(R,F,h){R=R.B.createObjectStore(F,h);return new HR(R)}; TC=function(R,F){R.B.objectStoreNames.contains(F)&&R.B.deleteObjectStore(F)}; g.fm=function(R,F,h){return g.ye(R,[F],{mode:"readwrite",qt:!0},function(a){return g.qU(a.objectStore(F),h)})}; g.ye=function(R,F,h,a){var J,M,v,I,w,E,B,r,Y,p,k,H;return g.u(function(T){switch(T.D){case 1:var Z={mode:"readonly",qt:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof h==="string"?Z.mode=h:Object.assign(Z,h);J=Z;R.transactionCount++;M=J.qt?3:1;v=0;case 2:if(I){T.G$(4);break}v++;w=Math.round((0,g.NU)());g.Hi(T,5);E=R.B.transaction(F,J.mode);Z=new j1(E);Z=AjO(Z,a);return g.m(T,Z,7);case 7:return B=T.B,r=Math.round((0,g.NU)()),xnn(R,w,r,v,void 0,F.join(),J),T.return(B);case 5:Y=g.f_(T);p=Math.round((0,g.NU)()); k=sU(Y,R.B.name,F.join(),R.B.version);if((H=k instanceof g.EU&&!k.B)||v>=M)xnn(R,w,p,v,k,F.join(),J),I=k;T.G$(2);break;case 4:return T.return(Promise.reject(I))}})}; xnn=function(R,F,h,a,J,M,v){F=h-F;J?(J instanceof g.EU&&(J.type==="QUOTA_EXCEEDED"||J.type==="QUOTA_MAYBE_EXCEEDED")&&If("QUOTA_EXCEEDED",{dbName:wS(R.B.name),objectStoreNames:M,transactionCount:R.transactionCount,transactionMode:v.mode}),J instanceof g.EU&&J.type==="UNKNOWN_ABORT"&&(h-=R.K,h<0&&h>=2147483648&&(h=0),If("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:M,transactionDuration:F,transactionCount:R.transactionCount,dbDuration:h}),R.D=!0),NIn(R,!1,a,M,F,v.tag),GC(J)):NIn(R,!0,a,M,F, v.tag)}; NIn=function(R,F,h,a,J,M){If("TRANSACTION_ENDED",{objectStoreNames:a,connectionHasUnknownAbortedTransaction:R.D,duration:J,isSuccessful:F,tryCount:h,tag:M===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":M})}; HR=function(R){this.B=R}; g.Zd=function(R,F,h){R.B.createIndex(F,h,{unique:!1})}; HDi=function(R,F){return g.bI(R,{query:F},function(h){return h.delete().then(function(){return g.S1(h)})}).then(function(){})}; Ld7=function(R,F,h){var a=[];return g.bI(R,{query:F},function(J){if(!(h!==void 0&&a.length>=h))return a.push(J.getValue()),g.S1(J)}).then(function(){return a})}; yjn=function(R){return"getAllKeys"in IDBObjectStore.prototype?AY(R.B.getAllKeys(void 0,void 0)):TIi(R)}; TIi=function(R){var F=[];return g.qX2(R,{query:void 0},function(h){F.push(h.cursor.primaryKey);return g.Q3T(h)}).then(function(){return F})}; g.qU=function(R,F,h){return AY(R.B.put(F,h))}; g.bI=function(R,F,h){R=R.B.openCursor(F.query,F.direction);return OU(R).then(function(a){return xV(a,h)})}; g.qX2=function(R,F,h){var a=F.query;F=F.direction;R="openKeyCursor"in IDBObjectStore.prototype?R.B.openKeyCursor(a,F):R.B.openCursor(a,F);return k$I(R).then(function(J){return xV(J,h)})}; j1=function(R){var F=this;this.B=R;this.K=new Map;this.D=!1;this.done=new Promise(function(h,a){F.B.addEventListener("complete",function(){h()}); F.B.addEventListener("error",function(J){J.currentTarget===J.target&&a(F.B.error)}); F.B.addEventListener("abort",function(){var J=F.B.error;if(J)a(J);else if(!F.D){J=g.EU;for(var M=F.B.objectStoreNames,v=[],I=0;I=h))return a.push(J.getValue()),g.S1(J)}).then(function(){return a})}; g.mF=function(R,F,h){R=R.B.openCursor(F.query===void 0?null:F.query,F.direction===void 0?"next":F.direction);return OU(R).then(function(a){return xV(a,h)})}; of=function(R,F){this.request=R;this.cursor=F}; OU=function(R){return AY(R).then(function(F){return F?new of(R,F):null})}; g.S1=function(R){R.cursor.continue(void 0);return OU(R.request)}; ZDO=function(R,F,h){return new Promise(function(a,J){function M(){Y||(Y=new $nI(v.result,{closed:r}));return Y} var v=F!==void 0?self.indexedDB.open(R,F):self.indexedDB.open(R);var I=h.blocked,w=h.blocking,E=h.sgz,B=h.upgrade,r=h.closed,Y;v.addEventListener("upgradeneeded",function(p){try{if(p.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(v.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");p.dataLoss&&p.dataLoss!=="none"&&If("IDB_DATA_CORRUPTED",{reason:p.dataLossMessage||"unknown reason",dbName:wS(R)});var k=M(),H=new j1(v.transaction); B&&B(k,function(T){return p.oldVersion=T},H); H.done.catch(function(T){J(T)})}catch(T){J(T)}}); v.addEventListener("success",function(){var p=v.result;w&&p.addEventListener("versionchange",function(){w(M())}); p.addEventListener("close",function(){If("IDB_UNEXPECTEDLY_CLOSED",{dbName:wS(R),dbVersion:p.version});E&&E()}); a(M())}); v.addEventListener("error",function(){J(v.error)}); I&&v.addEventListener("blocked",function(){I()})})}; bDg=function(R,F,h){h=h===void 0?{}:h;return ZDO(R,F,h)}; Xh=function(R,F){F=F===void 0?{}:F;var h,a,J,M;return g.u(function(v){if(v.D==1)return g.Hi(v,2),h=self.indexedDB.deleteDatabase(R),a=F,(J=a.blocked)&&h.addEventListener("blocked",function(){J()}),g.m(v,s3_(h),4); if(v.D!=2)return g.yn(v,0);M=g.f_(v);throw sU(M,R,"",-1);})}; e1=function(R,F){this.name=R;this.options=F;this.K=!0;this.N=this.L=0}; SXm=function(R,F){return new g.EU("INCOMPATIBLE_DB_VERSION",{dbName:R.name,oldVersion:R.options.version,newVersion:F})}; g.nm=function(R,F){if(!F)throw g.pm("openWithToken",wS(R.name));return R.open()}; OD7=function(R,F){var h;return g.u(function(a){if(a.D==1)return g.m(a,g.nm(uI,F),2);h=a.B;return a.return(g.ye(h,["databases"],{qt:!0,mode:"readwrite"},function(J){var M=J.objectStore("databases");return M.get(R.actualName).then(function(v){if(v?R.actualName!==v.actualName||R.publicName!==v.publicName||R.userIdentifier!==v.userIdentifier:1)return g.qU(M,R).then(function(){})})}))})}; dS=function(R,F){var h;return g.u(function(a){if(a.D==1)return R?g.m(a,g.nm(uI,F),2):a.return();h=a.B;return a.return(h.delete("databases",R))})}; mni=function(R,F){var h,a;return g.u(function(J){return J.D==1?(h=[],g.m(J,g.nm(uI,F),2)):J.D!=3?(a=J.B,g.m(J,g.ye(a,["databases"],{qt:!0,mode:"readonly"},function(M){h.length=0;return g.bI(M.objectStore("databases"),{},function(v){R(v.getValue())&&h.push(v.getValue());return g.S1(v)})}),3)):J.return(h)})}; oYO=function(R,F){return mni(function(h){return h.publicName===R&&h.userIdentifier!==void 0},F)}; X9B=function(){var R,F,h,a;return g.u(function(J){switch(J.D){case 1:R=Fh();if((F=R)==null?0:F.hasSucceededOnce)return J.return(!0);if(PR&&KR()&&!t3()||g.zC)return J.return(!1);try{if(h=self,!(h.indexedDB&&h.IDBIndex&&h.IDBKeyRange&&h.IDBObjectStore))return J.return(!1)}catch(M){return J.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return J.return(!1);g.Hi(J,2);a={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.m(J,OD7(a,Km),4);case 4:return g.m(J,dS("yt-idb-test-do-not-use",Km),5);case 5:return J.return(!0);case 2:return g.f_(J),J.return(!1)}})}; eG7=function(){if(tY!==void 0)return tY;gS=!0;return tY=X9B().then(function(R){gS=!1;var F;if((F=Rf())!=null&&F.B){var h;F={hasSucceededOnce:((h=Fh())==null?void 0:h.hasSucceededOnce)||R};var a;(a=Rf())==null||a.set("LAST_RESULT_ENTRY_KEY",F,2592E3,!0)}return R})}; lI=function(){return g.hG("ytglobal.idbToken_")||void 0}; g.Dd=function(){var R=lI();return R?Promise.resolve(R):eG7().then(function(F){(F=F?Km:void 0)&&g.Fk("ytglobal.idbToken_",F);return F})}; nYg=function(R){if(!g.Kn())throw R=new g.EU("AUTH_INVALID",{dbName:R}),GC(R),R;var F=g.zP();return{actualName:R+":"+F,publicName:R,userIdentifier:F}}; uOL=function(R,F,h,a){var J,M,v,I,w,E;return g.u(function(B){switch(B.D){case 1:return M=(J=Error().stack)!=null?J:"",g.m(B,g.Dd(),2);case 2:v=B.B;if(!v)throw I=g.pm("openDbImpl",R,F),g.pR("ytidb_async_stack_killswitch")||(I.stack=I.stack+"\n"+M.substring(M.indexOf("\n")+1)),GC(I),I;iI(R);w=h?{actualName:R,publicName:R,userIdentifier:void 0}:nYg(R);g.Hi(B,3);return g.m(B,OD7(w,v),5);case 5:return g.m(B,bDg(w.actualName,F,a),6);case 6:return B.return(B.B);case 3:return E=g.f_(B),g.Hi(B,7),g.m(B,dS(w.actualName, v),9);case 9:g.yn(B,8);break;case 7:g.f_(B);case 8:throw E;}})}; dn2=function(R,F,h){h=h===void 0?{}:h;return uOL(R,F,!1,h)}; PG7=function(R,F,h){h=h===void 0?{}:h;return uOL(R,F,!0,h)}; zGi=function(R,F){F=F===void 0?{}:F;var h,a;return g.u(function(J){if(J.D==1)return g.m(J,g.Dd(),2);if(J.D!=3){h=J.B;if(!h)return J.return();iI(R);a=nYg(R);return g.m(J,Xh(a.actualName,F),3)}return g.m(J,dS(a.actualName,h),0)})}; KdL=function(R,F,h){R=R.map(function(a){return g.u(function(J){return J.D==1?g.m(J,Xh(a.actualName,F),2):g.m(J,dS(a.actualName,h),0)})}); return Promise.all(R).then(function(){})}; trg=function(R){var F=F===void 0?{}:F;var h,a;return g.u(function(J){if(J.D==1)return g.m(J,g.Dd(),2);if(J.D!=3){h=J.B;if(!h)return J.return();iI(R);return g.m(J,oYO(R,h),3)}a=J.B;return g.m(J,KdL(a,F,h),0)})}; lYi=function(R,F){F=F===void 0?{}:F;var h;return g.u(function(a){if(a.D==1)return g.m(a,g.Dd(),2);if(a.D!=3){h=a.B;if(!h)return a.return();iI(R);return g.m(a,Xh(R,F),3)}return g.m(a,dS(R,h),0)})}; Ve=function(R,F){e1.call(this,R,F);this.options=F;iI(R)}; DnO=function(R,F){var h;return function(){h||(h=new Ve(R,F));return h}}; g.UU=function(R,F){return DnO(R,F)}; Cm=function(R){return g.nm(Vr2(),R)}; Uni=function(R,F,h,a){var J,M,v;return g.u(function(I){switch(I.D){case 1:return J={config:R,hashData:F,timestamp:a!==void 0?a:(0,g.NU)()},g.m(I,Cm(h),2);case 2:return M=I.B,g.m(I,M.clear("hotConfigStore"),3);case 3:return g.m(I,g.fm(M,"hotConfigStore",J),4);case 4:return v=I.B,I.return(v)}})}; CGI=function(R,F,h,a,J){var M,v,I;return g.u(function(w){switch(w.D){case 1:return M={config:R,hashData:F,configData:h,timestamp:J!==void 0?J:(0,g.NU)()},g.m(w,Cm(a),2);case 2:return v=w.B,g.m(w,v.clear("coldConfigStore"),3);case 3:return g.m(w,g.fm(v,"coldConfigStore",M),4);case 4:return I=w.B,w.return(I)}})}; cj7=function(R){var F,h;return g.u(function(a){return a.D==1?g.m(a,Cm(R),2):a.D!=3?(F=a.B,h=void 0,g.m(a,g.ye(F,["coldConfigStore"],{mode:"readwrite",qt:!0},function(J){return g.mF(J.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(M){h=M.getValue()})}),3)):a.return(h)})}; Wdf=function(R){var F,h;return g.u(function(a){return a.D==1?g.m(a,Cm(R),2):a.D!=3?(F=a.B,h=void 0,g.m(a,g.ye(F,["hotConfigStore"],{mode:"readwrite",qt:!0},function(J){return g.mF(J.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(M){h=M.getValue()})}),3)):a.return(h)})}; R7B=function(){return g.u(function(R){return g.m(R,trg("ytGcfConfig"),0)})}; cR=function(){g.d.call(this);this.D=[];this.B=[];var R=g.hG("yt.gcf.config.hotUpdateCallbacks");R?(this.D=[].concat(g.S(R)),this.B=R):(this.B=[],g.Fk("yt.gcf.config.hotUpdateCallbacks",this.B))}; Jq=function(){var R=this;this.N=!1;this.K=this.L=0;this.S=new cR;this.rf={Tp$:function(){R.N=!0}, Pjl:function(){return R.B}, neI:function(F){WR(R,F)}, cn:function(F){R.cn(F)}, jko:function(F){RD(R,F)}, X9:function(){return R.coldHashData}, Ty:function(){return R.hotHashData}, xzA:function(){return R.D}, I2G:function(){return F8()}, yOG:function(){return hq()}, ZPt:function(){return g.hG("yt.gcf.config.coldHashData")}, FmI:function(){return g.hG("yt.gcf.config.hotHashData")}, AlG:function(){Fni(R)}, TQb:function(){R.cn(void 0);aD(R);delete Jq.instance}, xSl:function(F){R.K=F}, T5t:function(){return R.K}}}; h7L=function(){if(!Jq.instance){var R=new Jq;Jq.instance=R}return Jq.instance}; MML=function(R){var F;g.u(function(h){if(h.D==1)return g.pR("start_client_gcf")||g.pR("delete_gcf_config_db")?g.pR("start_client_gcf")?g.m(h,g.Dd(),3):h.G$(2):h.return();h.D!=2&&((F=h.B)&&g.Kn()&&!g.pR("delete_gcf_config_db")?(R.N=!0,Fni(R)):(al7(R),J$B(R)));return g.pR("delete_gcf_config_db")?g.m(h,R7B(),0):h.G$(0)})}; Md=function(){var R;return(R=hq())!=null?R:g.Kp("RAW_HOT_CONFIG_GROUP")}; vUT=function(R){var F,h,a,J,M,v;return g.u(function(I){switch(I.D){case 1:if(R.D)return I.return(hq());if(!R.N)return F=g.pm("getHotConfig IDB not initialized"),UV(F),I.return(Promise.reject(F));h=lI();a=g.Kp("TIME_CREATED_MS");if(!h){J=g.pm("getHotConfig token error");UV(J);I.G$(2);break}return g.m(I,Wdf(h),3);case 3:if((M=I.B)&&M.timestamp>a)return WR(R,M.config),R.cn(M.hashData),I.return(hq());case 2:J$B(R);if(!(h&&R.D&&R.hotHashData)){I.G$(4);break}return g.m(I,Uni(R.D,R.hotHashData,h,a),4);case 4:return R.D? I.return(hq()):(v=new g.Pv("Config not available in ytConfig"),UV(v),I.return(Promise.reject(v)))}})}; GiO=function(R){var F,h,a,J,M,v;return g.u(function(I){switch(I.D){case 1:if(R.B)return I.return(F8());if(!R.N)return F=g.pm("getColdConfig IDB not initialized"),UV(F),I.return(Promise.reject(F));h=lI();a=g.Kp("TIME_CREATED_MS");if(!h){J=g.pm("getColdConfig");UV(J);I.G$(2);break}return g.m(I,cj7(h),3);case 3:if((M=I.B)&&M.timestamp>a)return RD(R,M.config),gUL(R,M.configData),aD(R,M.hashData),I.return(F8());case 2:al7(R);if(!(h&&R.B&&R.coldHashData&&R.configData)){I.G$(4);break}return g.m(I,CGI(R.B, R.coldHashData,R.configData,h,a),4);case 4:return R.B?I.return(F8()):(v=new g.Pv("Config not available in ytConfig"),UV(v),I.return(Promise.reject(v)))}})}; Fni=function(R){if(!R.D||!R.B){if(!lI()){var F=g.pm("scheduleGetConfigs");UV(F)}R.L||(R.L=g.er.J0(function(){return g.u(function(h){switch(h.D){case 1:return g.Hi(h,2),g.m(h,vUT(R),4);case 4:g.yn(h,3);break;case 2:g.f_(h);case 3:return g.Hi(h,5),g.m(h,GiO(R),7);case 7:g.yn(h,6);break;case 5:g.f_(h);case 6:R.L&&(R.L=0),g.Na(h)}})},100))}}; Iln=function(R,F,h){var a,J,M;return g.u(function(v){switch(v.D){case 1:if(!g.pR("start_client_gcf")){v.G$(0);break}h&&WR(R,h);R.cn(F);a=lI();if(!a){v.G$(3);break}if(h){v.G$(4);break}return g.m(v,Wdf(a),5);case 5:J=v.B,h=(M=J)==null?void 0:M.config;case 4:return g.m(v,Uni(h,F,a),3);case 3:if(h)for(var I=h,w=g.N(R.S.B),E=w.next();!E.done;E=w.next())E=E.value,E(I);g.Na(v)}})}; iW2=function(R,F,h){var a,J,M,v;return g.u(function(I){if(I.D==1){if(!g.pR("start_client_gcf"))return I.G$(0);aD(R,F);return(a=lI())?h?I.G$(4):g.m(I,cj7(a),5):I.G$(0)}I.D!=4&&(J=I.B,h=(M=J)==null?void 0:M.config);if(!h)return I.G$(0);v=h.configData;return g.m(I,CGI(h,F,v,a),0)})}; wsf=function(){var R=h7L(),F=(0,g.NU)()-R.K;if(!(R.K!==0&&F0&&(F.request={internalExperimentFlags:h});BAB(R,void 0,F);r$7(void 0,F);YNi(void 0,F);spB(R,void 0,F);psL(void 0,F);g.pR("start_client_gcf")&&kim(void 0,F);g.Kp("DELEGATED_SESSION_ID")&& !g.pR("pageid_as_header_web")&&(F.user={onBehalfOfUser:g.Kp("DELEGATED_SESSION_ID")});!g.pR("fill_delegate_context_in_gel_killswitch")&&(R=g.Kp("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(F.user=Object.assign({},F.user,{serializedDelegationContext:R}));R=g.Kp("INNERTUBE_CONTEXT");var a;if(g.pR("enable_persistent_device_token")&&(R==null?0:(a=R.client)==null?0:a.rolloutToken)){var J;F.client.rolloutToken=R==null?void 0:(J=R.client)==null?void 0:J.rolloutToken}a=Object;J=a.assign;R=F.client; h={};for(var M=g.N(Object.entries(Wk(g.Kp("DEVICE","")))),v=M.next();!v.done;v=M.next()){var I=g.N(v.value);v=I.next().value;I=I.next().value;v==="cbrand"?h.deviceMake=I:v==="cmodel"?h.deviceModel=I:v==="cbr"?h.browserName=I:v==="cbrver"?h.browserVersion=I:v==="cos"?h.osName=I:v==="cosver"?h.osVersion=I:v==="cplatform"&&(h.platform=I)}F.client=J.call(a,R,h);return F}; BAB=function(R,F,h){R=R.Nw;if(R==="WEB"||R==="MWEB"||R===1||R===2)if(F){h=pK(F,Lp,96)||new Lp;var a=SA();a=Object.keys(QpB).indexOf(a);a=a===-1?null:a;a!==null&&my(h,3,a);Qx(F,Lp,96,h)}else h&&(h.client.mainAppWebInfo=(a=h.client.mainAppWebInfo)!=null?a:{},h.client.mainAppWebInfo.webDisplayMode=SA())}; r$7=function(R,F){var h=g.hG("yt.embedded_player.embed_url");h&&(R?(F=pK(R,jm,7)||new jm,Sb(F,4,h),Qx(R,jm,7,F)):F&&(F.thirdParty={embedUrl:h}))}; YNi=function(R,F){var h;if(g.pR("web_log_memory_total_kbytes")&&((h=g.Wi.navigator)==null?0:h.deviceMemory)){var a;h=(a=g.Wi.navigator)==null?void 0:a.deviceMemory;R?WX(R,95,Ax(h*1E6)):F&&(F.client.memoryTotalKbytes=""+h*1E6)}}; spB=function(R,F,h){if(R.appInstallData)if(F){var a;h=(a=pK(F,Hk,62))!=null?a:new Hk;Sb(h,6,R.appInstallData);Qx(F,Hk,62,h)}else h&&(h.client.configInfo=h.client.configInfo||{},h.client.configInfo.appInstallData=R.appInstallData)}; psL=function(R,F){var h=hGm();h&&(R?my(R,61,$E_[h]):F&&(F.client.connectionType=h));g.pR("web_log_effective_connection_type")&&(h=JjL())&&(R?my(R,94,A$a[h]):F&&(F.client.effectiveConnectionType=h))}; xEm=function(R,F,h){h=h===void 0?{}:h;var a={};g.Kp("EOM_VISITOR_DATA")?a={"X-Goog-EOM-Visitor-Id":g.Kp("EOM_VISITOR_DATA")}:a={"X-Goog-Visitor-Id":h.visitorData||g.Kp("VISITOR_DATA","")};if(F&&F.includes("www.youtube-nocookie.com"))return a;F=h.X$||g.Kp("AUTHORIZATION");F||(R?F="Bearer "+g.hG("gapi.auth.getToken")().access_token:(R=UK7().yn(ID),g.pR("pageid_as_header_web")||delete R["X-Goog-PageId"],a=Object.assign({},a,R)));F&&(a.Authorization=F);return a}; kim=function(R,F){var h=wsf();if(h){var a=h.coldConfigData,J=h.coldHashData;h=h.hotHashData;if(R){var M;F=(M=pK(R,Hk,62))!=null?M:new Hk;a=Sb(F,1,a);Sb(a,3,J).cn(h);Qx(R,Hk,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},a&&(F.client.configInfo.coldConfigData=a),J&&(F.client.configInfo.coldHashData=J),h&&(F.client.configInfo.hotHashData=h))}}; wM=function(R,F){this.version=R;this.args=F}; EP=function(R,F){this.topic=R;this.B=F}; rM=function(R,F){var h=Bm();h&&h.publish.call(h,R.toString(),R,F)}; Lna=function(R){var F=NAL,h=Bm();if(!h)return 0;var a=h.subscribe(F.toString(),function(J,M){var v=g.hG("ytPubsub2Pubsub2SkipSubKey");v&&v==a||(v=function(){if(Y3[a])try{if(M&&F instanceof EP&&F!=J)try{var I=F.B,w=M;if(!w.args||!w.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!I.BY){var E=new I;I.BY=E.version}var B=I.BY}catch(r){}if(!B||w.version!=B)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{M=Reflect.construct(I, g.Zt(w.args))}catch(r){throw r.message="yt.pubsub2.Data.deserialize(): "+r.message,r;}}catch(r){throw r.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+F.toString()+": "+r.message,r;}R.call(window,M)}catch(r){g.DP(r)}},HW_[F.toString()]?g.Cn()?g.er.J0(v):g.Eg(v,0):v())}); Y3[a]=!0;sP[F.toString()]||(sP[F.toString()]=[]);sP[F.toString()].push(a);return a}; qNi=function(){var R=TAT,F=Lna(function(h){R.apply(void 0,arguments);y$n(F)}); return F}; y$n=function(R){var F=Bm();F&&(typeof R==="number"&&(R=[R]),g.Uv(R,function(h){F.unsubscribeByKey(h);delete Y3[h]}))}; Bm=function(){return g.hG("ytPubsub2Pubsub2Instance")}; pd=function(R,F,h){h=h===void 0?{sampleRate:.1}:h;Math.random()OW_||v=e7I&&(ym++,g.pR("abandon_compression_after_N_slow_zips")?Tj===g.k$("compression_disable_point")&&ym>nUm&&(Nd=!1):Nd=!1);ugO(F);a.headers||(a.headers={});a.headers["Content-Encoding"]="gzip";a.postBody=R;a.postParams=void 0;J(h,a)}; dEL=function(R){var F=F===void 0?!1:F;var h=h===void 0?!1:h;var a=(0,g.NU)(),J={startTime:a,ticks:{},infos:{}},M=F?g.hG("yt.logging.gzipForFetch",!1):!0;if(Nd&&M){if(!R.body)return R;try{var v=h?R.body:typeof R.body==="string"?R.body:JSON.stringify(R.body);M=v;if(!h&&typeof v==="string"){var I=SN7(v);if(I!=null&&(I>OW_||I=e7I)if(ym++,g.pR("abandon_compression_after_N_slow_zips")||g.pR("abandon_compression_after_N_slow_zips_lr")){F=ym/Tj;var E=nUm/g.k$("compression_disable_point");Tj>0&&Tj%g.k$("compression_disable_point")===0&&F>=E&&(Nd=!1)}else Nd=!1;ugO(J)}}R.headers=Object.assign({},{"Content-Encoding":"gzip"},R.headers||{});R.body=M;return R}catch(B){return UV(B),R}}else return R}; SN7=function(R){try{return(new Blob(R.split(""))).size}catch(F){return UV(F),null}}; ugO=function(R){g.pR("gel_compression_csi_killswitch")||!g.pR("log_gel_compression_latency")&&!g.pR("log_gel_compression_latency_lr")||pd("gel_compression",R,{sampleRate:.1})}; fd=function(R){var F=this;this.I5=this.B=!1;this.potentialEsfErrorCounter=this.D=0;this.handleError=function(){}; this.lQ=function(){}; this.now=Date.now;this.OQ=!1;this.rf={V4Q:function(B){F.HJ=B}, rlo:function(){F.MX()}, jh:function(){F.d6()}, Rs:function(B){return g.u(function(r){return g.m(r,F.Rs(B),0)})}, ll:function(B,r){return F.ll(B,r)}, wD:function(){F.wD()}}; var h;this.eZ=(h=R.eZ)!=null?h:100;var a;this.zb=(a=R.zb)!=null?a:1;var J;this.I9=(J=R.I9)!=null?J:2592E6;var M;this.Yd=(M=R.Yd)!=null?M:12E4;var v;this.Qq=(v=R.Qq)!=null?v:5E3;var I;this.HJ=(I=R.HJ)!=null?I:void 0;this.Ao=!!R.Ao;var w;this.Qp=(w=R.Qp)!=null?w:.1;var E;this.L6=(E=R.L6)!=null?E:10;R.handleError&&(this.handleError=R.handleError);R.lQ&&(this.lQ=R.lQ);R.OQ&&(this.OQ=R.OQ);R.I5&&(this.I5=R.I5);this.jl=R.jl;this.eX=R.eX;this.tG=R.tG;this.Sq=R.Sq;this.sendFn=R.sendFn;this.v2=R.v2;this.M7= R.M7;qd(this)&&(!this.jl||this.jl("networkless_logging"))&&Pyg(this)}; Pyg=function(R){qd(R)&&!R.OQ&&(R.B=!0,R.Ao&&Math.random()<=R.Qp&&R.tG.nR(R.HJ),R.wD(),R.Sq.sT()&&R.MX(),R.Sq.listen(R.v2,R.MX.bind(R)),R.Sq.listen(R.M7,R.d6.bind(R)))}; tMi=function(R,F){if(!qd(R))throw Error("IndexedDB is not supported: updateRequestHandlers");var h=F.options.onError?F.options.onError:function(){}; F.options.onError=function(J,M){var v,I,w,E;return g.u(function(B){switch(B.D){case 1:v=z7B(M);(I=Kn_(M))&&R.jl&&R.jl("web_enable_error_204")&&R.handleError(Error("Request failed due to compression"),F.url,M);if(!(R.jl&&R.jl("nwl_consider_error_code")&&v||R.jl&&!R.jl("nwl_consider_error_code")&&R.potentialEsfErrorCounter<=R.L6)){B.G$(2);break}if(!R.Sq.Zc){B.G$(3);break}return g.m(B,R.Sq.Zc(),3);case 3:if(R.Sq.sT()){B.G$(2);break}h(J,M);if(!R.jl||!R.jl("nwl_consider_error_code")||((w=F)==null?void 0: w.id)===void 0){B.G$(6);break}return g.m(B,R.tG.D9(F.id,R.HJ,!1),6);case 6:return B.return();case 2:if(R.jl&&R.jl("nwl_consider_error_code")&&!v&&R.potentialEsfErrorCounter>R.L6)return B.return();R.potentialEsfErrorCounter++;if(((E=F)==null?void 0:E.id)===void 0){B.G$(8);break}return F.sendCount=400&&R<=599?!1:!0}; Kn_=function(R){var F;R=R==null?void 0:(F=R.error)==null?void 0:F.code;return!(R!==400&&R!==415)}; llL=function(){if(Zb)return Zb();var R={};Zb=g.UU("LogsDatabaseV2",{zF:(R.LogsRequestsStore={L7:2},R),shared:!1,upgrade:function(F,h,a){h(2)&&g.Lm(F,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});h(3);h(5)&&(a=a.objectStore("LogsRequestsStore"),a.B.indexNames.contains("newRequest")&&a.B.deleteIndex("newRequest"),g.Zd(a,"newRequestV2",["status","interface","timestamp"]));h(7)&&TC(F,"sapisid");h(9)&&TC(F,"SWHealthLog")}, version:9});return Zb()}; bn=function(R){return g.nm(llL(),R)}; VM7=function(R,F){var h,a,J,M;return g.u(function(v){if(v.D==1)return h={startTime:(0,g.NU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.m(v,bn(F),2);if(v.D!=3)return a=v.B,J=Object.assign({},R,{options:JSON.parse(JSON.stringify(R.options)),interface:g.Kp("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.m(v,g.fm(a,"LogsRequestsStore",J),3);M=v.B;h.ticks.tc=(0,g.NU)();DE7(h);return v.return(M)})}; UEm=function(R,F){var h,a,J,M,v,I,w,E;return g.u(function(B){if(B.D==1)return h={startTime:(0,g.NU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.m(B,bn(F),2);if(B.D!=3)return a=B.B,J=g.Kp("INNERTUBE_CONTEXT_CLIENT_NAME",0),M=[R,J,0],v=[R,J,(0,g.NU)()],I=IDBKeyRange.bound(M,v),w="prev",g.pR("use_fifo_for_networkless")&&(w="next"),E=void 0,g.m(B,g.ye(a,["LogsRequestsStore"],{mode:"readwrite",qt:!0},function(r){return g.mF(r.objectStore("LogsRequestsStore").index("newRequestV2"), {query:I,direction:w},function(Y){Y.getValue()&&(E=Y.getValue(),R==="NEW"&&(E.status="QUEUED",Y.update(E)))})}),3); h.ticks.tc=(0,g.NU)();DE7(h);return B.return(E)})}; Cyi=function(R,F){var h;return g.u(function(a){if(a.D==1)return g.m(a,bn(F),2);h=a.B;return a.return(g.ye(h,["LogsRequestsStore"],{mode:"readwrite",qt:!0},function(J){var M=J.objectStore("LogsRequestsStore");return M.get(R).then(function(v){if(v)return v.status="QUEUED",g.qU(M,v).then(function(){return v})})}))})}; c$_=function(R,F,h,a){h=h===void 0?!0:h;var J;return g.u(function(M){if(M.D==1)return g.m(M,bn(F),2);J=M.B;return M.return(g.ye(J,["LogsRequestsStore"],{mode:"readwrite",qt:!0},function(v){var I=v.objectStore("LogsRequestsStore");return I.get(R).then(function(w){return w?(w.status="NEW",h&&(w.sendCount+=1),a!==void 0&&(w.options.compress=a),g.qU(I,w).then(function(){return w})):g.Qe.resolve(void 0)})}))})}; Wnm=function(R,F){var h;return g.u(function(a){if(a.D==1)return g.m(a,bn(F),2);h=a.B;return a.return(h.delete("LogsRequestsStore",R))})}; RiB=function(R){var F,h;return g.u(function(a){if(a.D==1)return g.m(a,bn(R),2);F=a.B;h=(0,g.NU)()-2592E6;return g.m(a,g.ye(F,["LogsRequestsStore"],{mode:"readwrite",qt:!0},function(J){return g.bI(J.objectStore("LogsRequestsStore"),{},function(M){if(M.getValue().timestamp<=h)return M.delete().then(function(){return g.S1(M)})})}),0)})}; FwB=function(){g.u(function(R){return g.m(R,trg("LogsDatabaseV2"),0)})}; DE7=function(R){g.pR("nwl_csi_killswitch")||pd("networkless_performance",R,{sampleRate:1})}; aPf=function(R){return g.nm(hiL(),R)}; Jii=function(R){var F,h;g.u(function(a){if(a.D==1)return g.m(a,aPf(R),2);F=a.B;h=(0,g.NU)()-2592E6;return g.m(a,g.ye(F,["SWHealthLog"],{mode:"readwrite",qt:!0},function(J){return g.bI(J.objectStore("SWHealthLog"),{},function(M){if(M.getValue().timestamp<=h)return M.delete().then(function(){return g.S1(M)})})}),0)})}; Mmg=function(R){var F;return g.u(function(h){if(h.D==1)return g.m(h,aPf(R),2);F=h.B;return g.m(h,F.clear("SWHealthLog"),0)})}; g.Sl=function(R,F,h,a,J,M,v){J=J===void 0?"":J;M=M===void 0?!1:M;v=v===void 0?!1:v;if(R)if(h&&!g.db())UV(new g.Pv("Legacy referrer-scrubbed ping detected")),R&&v62(R,void 0,{scrubReferrer:!0});else if(J)A3(R,F,"POST",J,a);else if(g.Kp("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||a||v)A3(R,F,"GET","",a,void 0,M,v);else{b:{try{c:{var I=new Tjg({url:R});if(I.B.dsh==="1")var w=null;else{var E=I.B.ae;if(E==="1"){var B=I.B.adurl;if(B)try{w={version:3,Pl:decodeURIComponent(B),JY:lE(I.D,"act=1","ri=1",ypI(I))}; break c}catch(p){}}w=E==="2"?{version:4,Pl:lE(I.D,"dct=1","suid="+I.K,""),JY:lE(I.D,"act=1","ri=1","suid="+I.K)}:null}}if(w){var r=ib(R);var Y=!(!r||!r.endsWith("/aclk")||AS(R,"ri")!=="1");break b}}catch(p){}Y=!1}Y?g6B(R)?(F&&F(),h=!0):h=!1:h=!1;h||v62(R,F)}}; g6B=function(R,F){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(R,F===void 0?"":F))return!0}catch(h){}return!1}; v62=function(R,F,h){h=h===void 0?{}:h;var a=new Image,J=""+Gui++;OP[J]=a;a.onload=a.onerror=function(){F&&OP[J]&&F();delete OP[J]}; h.scrubReferrer&&(a.referrerPolicy="no-referrer");a.src=R}; IPL=function(R){var F;return((F=document.featurePolicy)==null?0:F.allowedFeatures().includes("attribution-reporting"))?R+"&nis=6":R+"&nis=5"}; oD=function(){mq||(mq=new Wv("yt.offline"));return mq}; ipL=function(R){if(g.pR("offline_error_handling")){var F=oD().get("errors",!0)||{};F[R.message]={name:R.name,stack:R.stack};R.level&&(F[R.message].level=R.level);oD().set("errors",F,2592E3,!0)}}; X8=function(){this.B=new Map;this.D=!1}; el=function(){if(!X8.instance){var R=g.hG("yt.networkRequestMonitor.instance")||new X8;g.Fk("yt.networkRequestMonitor.instance",R);X8.instance=R}return X8.instance}; nd=function(){g.EL.call(this);var R=this;this.D=!1;this.B=NFB();this.B.listen("networkstatus-online",function(){if(R.D&&g.pR("offline_error_handling")){var F=oD().get("errors",!0);if(F){for(var h in F)if(F[h]){var a=new g.Pv(h,"sent via offline_errors");a.name=F[h].name;a.stack=F[h].stack;a.level=F[h].level;g.DP(a)}oD().set("errors",{},2592E3,!0)}}})}; wk_=function(){if(!nd.instance){var R=g.hG("yt.networkStatusManager.instance")||new nd;g.Fk("yt.networkStatusManager.instance",R);nd.instance=R}return nd.instance}; g.un=function(R){R=R===void 0?{}:R;g.EL.call(this);var F=this;this.B=this.L=0;this.D=wk_();var h=g.hG("yt.networkStatusManager.instance.listen").bind(this.D);h&&(R.rateLimit?(this.rateLimit=R.rateLimit,h("networkstatus-online",function(){E6f(F,"publicytnetworkstatus-online")}),h("networkstatus-offline",function(){E6f(F,"publicytnetworkstatus-offline")})):(h("networkstatus-online",function(){F.dispatchEvent("publicytnetworkstatus-online")}),h("networkstatus-offline",function(){F.dispatchEvent("publicytnetworkstatus-offline")})))}; E6f=function(R,F){R.rateLimit?R.B?(g.er.Ew(R.L),R.L=g.er.J0(function(){R.K!==F&&(R.dispatchEvent(F),R.K=F,R.B=(0,g.NU)())},R.rateLimit-((0,g.NU)()-R.B))):(R.dispatchEvent(F),R.K=F,R.B=(0,g.NU)()):R.dispatchEvent(F)}; Pm=function(){var R=fd.call;dM||(dM=new g.un({oeI:!0,QZo:!0}));R.call(fd,this,{tG:{nR:RiB,uQ:Wnm,py:UEm,FY:Cyi,D9:c$_,set:VM7},Sq:dM,handleError:function(F,h,a){var J,M=a==null?void 0:(J=a.error)==null?void 0:J.code;if(M===400||M===415){var v;F=new g.Pv(F.message,h,a==null?void 0:(v=a.error)==null?void 0:v.code);UV(F,void 0,void 0,void 0,!0)}else g.DP(F)}, lQ:UV,sendFn:B1L,now:g.NU,eD:ipL,eX:g.UK(),v2:"publicytnetworkstatus-online",M7:"publicytnetworkstatus-offline",Ao:!0,Qp:.1,L6:g.k$("potential_esf_error_limit",10),jl:g.pR,OQ:!(g.Kn()&&g.I8(document.location.toString())!=="www.youtube-nocookie.com")});this.K=new g.EJ;g.pR("networkless_immediately_drop_all_requests")&&FwB();lYi("LogsDatabaseV2")}; zj=function(){var R=g.hG("yt.networklessRequestController.instance");R||(R=new Pm,g.Fk("yt.networklessRequestController.instance",R),g.pR("networkless_logging")&&g.Dd().then(function(F){R.HJ=F;Pyg(R);R.K.resolve();R.Ao&&Math.random()<=R.Qp&&R.HJ&&Jii(R.HJ);g.pR("networkless_immediately_drop_sw_health_store")&&riI(R)})); return R}; riI=function(R){var F;g.u(function(h){if(!R.HJ)throw F=g.pm("clearSWHealthLogsDb"),F;return h.return(Mmg(R.HJ).catch(function(a){R.handleError(a)}))})}; B1L=function(R,F,h,a){a=a===void 0?!1:a;F=g.pR("web_fp_via_jspb")?Object.assign({},F):F;g.pR("use_cfr_monitor")&&YV2(R,F);if(g.pR("use_request_time_ms_header"))F.headers&&J3(R)&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.NU)())));else{var J;if((J=F.postParams)==null?0:J.requestTimeMs)F.postParams.requestTimeMs=Math.round((0,g.NU)())}h&&Object.keys(F).length===0?g.Sl(R):F.compress?F.postBody?(typeof F.postBody!=="string"&&(F.postBody=JSON.stringify(F.postBody)),Ld(R,F.postBody, F,g.x$,a)):Ld(R,JSON.stringify(F.postParams),F,Nl,a):g.x$(R,F)}; Kd=function(R,F){g.pR("use_event_time_ms_header")&&J3(R)&&(F.headers||(F.headers={}),F.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.NU)())));return F}; YV2=function(R,F){var h=F.onError?F.onError:function(){}; F.onError=function(J,M){el().requestComplete(R,!1);h(J,M)}; var a=F.onSuccess?F.onSuccess:function(){}; F.onSuccess=function(J,M){el().requestComplete(R,!0);a(J,M)}}; g.tq=function(R){this.config_=null;R?this.config_=R:EU2()&&(this.config_=g.vm())}; g.ln=function(R,F,h,a){function J(E){try{if((E===void 0?0:E)&&a.retry&&!a.networklessOptions.bypassNetworkless)M.method="POST",a.networklessOptions.writeThenSend?zj().writeThenSend(w,M):zj().sendAndWrite(w,M);else if(a.compress){var B=!a.networklessOptions.writeThenSend;if(M.postBody){var r=M.postBody;typeof r!=="string"&&(r=JSON.stringify(M.postBody));Ld(w,r,M,g.x$,B)}else Ld(w,JSON.stringify(M.postParams),M,Nl,B)}else g.pR("web_all_payloads_via_jspb")?g.x$(w,M):Nl(w,M)}catch(Y){if(Y.name==="InvalidAccessError")UV(Error("An extension is blocking network request.")); else throw Y;}} !g.Kp("VISITOR_DATA")&&F!=="visitor_id"&&Math.random()<.01&&UV(new g.Pv("Missing VISITOR_DATA when sending innertube request.",F,h,a));if(!R.isReady())throw R=new g.Pv("innertube xhrclient not ready",F,h,a),g.DP(R),R;var M={headers:a.headers||{},method:"POST",postParams:h,postBody:a.postBody,postBodyFormat:a.postBodyFormat||"JSON",onTimeout:function(){a.onTimeout()}, onFetchTimeout:a.onTimeout,onSuccess:function(E,B){if(a.onSuccess)a.onSuccess(B)}, onFetchSuccess:function(E){if(a.onSuccess)a.onSuccess(E)}, onError:function(E,B){if(a.onError)a.onError(B)}, onFetchError:function(E){if(a.onError)a.onError(E)}, timeout:a.timeout,withCredentials:!0,compress:a.compress};M.headers["Content-Type"]||(M.headers["Content-Type"]="application/json");h="";var v=R.config_.md;v&&(h=v);v=R.config_.L0||!1;var I=xEm(v,h,a);Object.assign(M.headers,I);M.headers.Authorization&&!h&&v&&(M.headers["x-origin"]=window.location.origin);var w=h3(""+h+("/youtubei/"+R.config_.innertubeApiVersion+"/"+F),{alt:"json"});g.hG("ytNetworklessLoggingInitializationOptions")&&sML.isNwlInitialized?eG7().then(function(E){J(E)}):J(!1)}; g.cm=function(R,F,h){var a=g.Db();if(a&&F){var J=a.subscribe(R,function(){function M(){Vm[J]&&F.apply&&typeof F.apply=="function"&&F.apply(h||window,v)} var v=arguments;try{g.UP[R]?M():g.Eg(M,0)}catch(I){g.DP(I)}},h); Vm[J]=!0;Cd[R]||(Cd[R]=[]);Cd[R].push(J);return J}return 0}; pki=function(R){var F=g.cm("LOGGED_IN",function(h){R.apply(void 0,arguments);g.Wm(F)})}; g.Wm=function(R){var F=g.Db();F&&(typeof R==="number"?R=[R]:typeof R==="string"&&(R=[parseInt(R,10)]),g.Uv(R,function(h){F.unsubscribeByKey(h);delete Vm[h]}))}; g.Re=function(R,F){var h=g.Db();return h?h.publish.apply(h,arguments):!1}; QMB=function(R){var F=g.Db();if(F)if(F.clear(R),R)ku7(R);else for(var h in Cd)ku7(h)}; g.Db=function(){return g.Wi.ytPubsubPubsubInstance}; ku7=function(R){Cd[R]&&(R=Cd[R],g.Uv(R,function(F){Vm[F]&&delete Vm[F]}),R.length=0)}; g.F5=function(R,F,h){$gg(R,F,h===void 0?null:h)}; $gg=function(R,F,h){h=h===void 0?null:h;var a=AiL(R),J=document.getElementById(a),M=J&&OV7(J),v=J&&!M;M?F&&F():(F&&(M=g.cm(a,F),F=""+g.g7(F),xgi[F]=M),v||(J=N1I(R,a,function(){OV7(J)||(SJi(J),g.Re(a),g.Eg(function(){QMB(a)},0))},h)))}; N1I=function(R,F,h,a){a=a===void 0?null:a;var J=g.B4("SCRIPT");J.id=F;J.onload=function(){h&&setTimeout(h,0)}; J.onreadystatechange=function(){switch(J.readyState){case "loaded":case "complete":J.onload()}}; a&&J.setAttribute("nonce",a);g.$N(J,g.x6(R));R=document.getElementsByTagName("head")[0]||document.body;R.insertBefore(J,R.firstChild);return J}; AiL=function(R){var F=document.createElement("a");g.iu(F,R);R=F.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+bu(R)}; h_=function(R,F){if(R===F)R=!0;else if(Array.isArray(R)&&Array.isArray(F))R=g.Dt(R,F,h_);else if(g.M4(R)&&g.M4(F))a:if(g.Il(R).length!=g.Il(F).length)R=!1;else{for(var h in R)if(!h_(R[h],F[h])){R=!1;break a}R=!0}else R=!1;return R}; Ie=function(R){var F=g.u7.apply(1,arguments);if(!ae(R)||F.some(function(a){return!ae(a)}))throw Error("Only objects may be merged."); F=g.N(F);for(var h=F.next();!h.done;h=F.next())J_(R,h.value)}; J_=function(R,F){for(var h in F)if(ae(F[h])){if(h in R&&!ae(R[h]))throw Error("Cannot merge an object into a non-object.");h in R||(R[h]={});J_(R[h],F[h])}else if(ii(F[h])){if(h in R&&!ii(R[h]))throw Error("Cannot merge an array into a non-array.");h in R||(R[h]=[]);Hpf(R[h],F[h])}else R[h]=F[h];return R}; Hpf=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next())h=h.value,ae(h)?R.push(J_({},h)):ii(h)?R.push(Hpf([],h)):R.push(h);return R}; ae=function(R){return typeof R==="object"&&!Array.isArray(R)}; ii=function(R){return typeof R==="object"&&Array.isArray(R)}; w_=function(R){g.d.call(this);this.D=R}; EY=function(R){w_.call(this,!0);this.B=R}; BO=function(R,F){g.d.call(this);var h=this;this.K=[];this.Y=!1;this.D=0;this.N=this.S=this.L=!1;this.oR=null;var a=(0,g.Ge)(R,F);this.B=new g.DY(function(){return a(h.oR)},300); g.z(this,this.B);this.C=this.Z=Infinity}; Lwi=function(R,F){if(!F)return!1;for(var h=0;h-1)throw Error("Deps cycle for: "+F);if(R.D.has(F))return R.D.get(F);if(!R.B.has(F)){if(a)return;throw Error("No provider for: "+F);}a=R.B.get(F);h.push(F);if(a.TQ!==void 0)var J=a.TQ;else if(a.QgQ)J=a[Lw]?fPO(R,a[Lw],h):[],J=a.QgQ.apply(a,g.S(J));else if(a.Jg){J=a.Jg;var M=J[Lw]?fPO(R,J[Lw],h):[];J=new (Function.prototype.bind.apply(J,[null].concat(g.S(M))))}else throw Error("Could not resolve providers for: "+F);h.pop();a.Kr$||R.D.set(F,J); return J}; fPO=function(R,F,h){return F?F.map(function(a){return a instanceof xG?Ts(R,a.key,h,!0):Ts(R,a,h)}):[]}; q_=function(){yD||(yD=new qVi);return yD}; j_=function(){var R,F;return"h5vcc"in fw&&((R=fw.h5vcc.traceEvent)==null?0:R.traceBegin)&&((F=fw.h5vcc.traceEvent)==null?0:F.traceEnd)?1:"performance"in fw&&fw.performance.mark&&fw.performance.measure?2:0}; Zj=function(R){var F=j_();switch(F){case 1:fw.h5vcc.traceEvent.traceBegin("YTLR",R);break;case 2:fw.performance.mark(R+"-start");break;case 0:break;default:wU(F,"unknown trace type")}}; jMi=function(R){var F=j_();switch(F){case 1:fw.h5vcc.traceEvent.traceEnd("YTLR",R);break;case 2:F=R+"-start";var h=R+"-end";fw.performance.mark(h);fw.performance.measure(R,F,h);break;case 0:break;default:wU(F,"unknown trace type")}}; Zp_=function(R){var F,h;(h=(F=window).onerror)==null||h.call(F,R.message,"",0,0,R)}; bpO=function(R){var F=this;var h=h===void 0?0:h;var a=a===void 0?g.UK():a;this.K=h;this.scheduler=a;this.D=new g.EJ;this.B=R;for(R={MN:0};R.MN=1E3?J():a>=R?hI||(hI=aB(function(){J();hI=void 0},0)):M-I>=10&&(UgL(F,h.tier),v.L=M)}; Kwm=function(R,F){if(R.endpoint==="log_event"){g.pR("more_accurate_gel_parser")&&li().storePayload({isJspb:!1},R.payload);VD(R);var h=UY(R),a=new Map;a.set(h,[R.payload]);var J=dgm(R.payload)||"";F&&(RB=new F);return new g.qW(function(M,v){RB&&RB.isReady()?COn(a,RB,M,v,{bypassNetworkless:!0},!0,cO(J)):M()})}}; Dgg=function(R,F,h){if(F.endpoint==="log_event"){VD(void 0,F);var a=UY(F,!0),J=new Map;J.set(a,[ux(F.payload)]);h&&(RB=new h);return new g.qW(function(M){RB&&RB.isReady()?ciB(J,RB,M,{bypassNetworkless:!0},!0,cO(R)):M()})}}; UY=function(R,F){var h="";if(R.dangerousLogToVisitorSession)h="visitorOnlyApprovedKey";else if(R.cttAuthInfo){if(F===void 0?0:F){F=R.cttAuthInfo.token;h=R.cttAuthInfo;var a=new d1;h.videoId?a.setVideoId(h.videoId):h.playlistId&&E1(a,2,JI,HX(h.playlistId));MN[F]=a}else F=R.cttAuthInfo,h={},F.videoId?h.videoId=F.videoId:F.playlistId&&(h.playlistId=F.playlistId),v5[R.cttAuthInfo.token]=h;h=R.cttAuthInfo.token}return h}; WO=function(R,F,h){R=R===void 0?{}:R;F=F===void 0?!1:F;new g.qW(function(a,J){var M=FX(F,h),v=M.K;M.K=!1;gr(M.D);gr(M.B);M.B=0;RB&&RB.isReady()?h===void 0&&g.pR("enable_web_tiered_gel")?WwT(a,J,R,F,300,v):WwT(a,J,R,F,h,v):(UgL(F,h),a())})}; WwT=function(R,F,h,a,J,M){var v=RB;h=h===void 0?{}:h;a=a===void 0?!1:a;J=J===void 0?200:J;M=M===void 0?!1:M;var I=new Map,w=new Map,E={isJspb:a,cttAuthInfo:void 0,tier:J},B={isJspb:a,cttAuthInfo:void 0};if(a){F=g.N(Object.keys(Cw));for(J=F.next();!J.done;J=F.next())J=J.value,w=g.pR("enable_web_tiered_gel")?li().smartExtractMatchingEntries({keys:[E,B],sizeLimit:1E3}):li().extractMatchingEntries({isJspb:!0,cttAuthInfo:J}),w.length>0&&I.set(J,w),(g.pR("web_fp_via_jspb_and_json")&&h.writeThenSend||!g.pR("web_fp_via_jspb_and_json"))&& delete Cw[J];ciB(I,v,R,h,!1,M)}else{I=g.N(Object.keys(Cw));for(E=I.next();!E.done;E=I.next())E=E.value,B=g.pR("enable_web_tiered_gel")?li().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:E,tier:J},{isJspb:!1,cttAuthInfo:E}],sizeLimit:1E3}):li().extractMatchingEntries({isJspb:!1,cttAuthInfo:E}),B.length>0&&w.set(E,B),(g.pR("web_fp_via_jspb_and_json")&&h.writeThenSend||!g.pR("web_fp_via_jspb_and_json"))&&delete Cw[E];COn(w,v,R,F,h,!1,M)}}; UgL=function(R,F){function h(){WO({writeThenSend:!0},R,F)} R=R===void 0?!1:R;F=F===void 0?200:F;var a=FX(R,F),J=a===R$g||a===FKg?5E3:h$2;g.pR("web_gel_timeout_cap")&&!a.B&&(J=aB(function(){h()},J),a.B=J); gr(a.D);J=g.Kp("LOGGING_BATCH_TIMEOUT",g.k$("web_gel_debounce_ms",1E4));g.pR("shorten_initial_gel_batch_timeout")&&G0&&(J=aDB);J=aB(function(){g.k$("gel_min_batch_size")>0?li().getSequenceCount({cttAuthInfo:void 0,isJspb:R,tier:F})>=J3f&&h():h()},J); a.D=J}; COn=function(R,F,h,a,J,M,v){J=J===void 0?{}:J;var I=Math.round((0,g.NU)()),w=R.size,E=Mni(v);R=g.N(R);var B=R.next();for(v={};!B.done;v={O$:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,GO:void 0,J_:void 0},B=R.next()){var r=g.N(B.value);B=r.next().value;r=r.next().value;v.batchRequest=g.pM({context:g.Gj(F.config_||g.vm())});if(!g.JG(r)&&!g.pR("throw_err_when_logevent_malformed_killswitch")){a();break}v.batchRequest.events=r;(r=v5[B])&&v$i(v.batchRequest,B,r);delete v5[B];v.dangerousLogToVisitorSession= B==="visitorOnlyApprovedKey";g$2(v.batchRequest,I,v.dangerousLogToVisitorSession);G6L(J);v.GO=function(Y){g.pR("start_client_gcf")&&g.er.J0(function(){return g.u(function(p){return g.m(p,IDi(Y),0)})}); w--;w||h()}; v.O$=0;v.J_=function(Y){return function(){Y.O$++;if(J.bypassNetworkless&&Y.O$===1)try{g.ln(F,E,Y.batchRequest,IB({writeThenSend:!0},Y.dangerousLogToVisitorSession,Y.GO,Y.J_,M)),G0=!1}catch(p){g.DP(p),a()}w--;w||h()}}(v); try{g.ln(F,E,v.batchRequest,IB(J,v.dangerousLogToVisitorSession,v.GO,v.J_,M)),G0=!1}catch(Y){g.DP(Y),a()}}}; ciB=function(R,F,h,a,J,M){a=a===void 0?{}:a;var v=Math.round((0,g.NU)()),I={value:R.size},w=new Map([].concat(g.S(R)));w=g.N(w);for(var E=w.next();!E.done;E=w.next()){var B=g.N(E.value).next().value,r=R.get(B);E=new uNI;var Y=F.config_||g.vm(),p=new Sm,k=new Tu;Sb(k,1,Y.qw);Sb(k,2,Y.Mw);my(k,16,Y.K0);Sb(k,17,Y.innertubeContextClientVersion);if(Y.lm){var H=Y.lm,T=new Hk;H.coldConfigData&&Sb(T,1,H.coldConfigData);H.appInstallData&&Sb(T,6,H.appInstallData);H.coldHashData&&Sb(T,3,H.coldHashData);H.hotHashData&& T.cn(H.hotHashData);Qx(k,Hk,62,T)}(H=g.Wi.devicePixelRatio)&&H!=1&&WX(k,65,Gr(H));H=QS();H!==""&&Sb(k,54,H);H=$$();if(H.length>0){T=new fp;for(var Z=0;Z65535&&(R=1);zu("BATCH_CLIENT_COUNTER",R);return R}; v$i=function(R,F,h){if(h.videoId)var a="VIDEO";else if(h.playlistId)a="PLAYLIST";else return;R.credentialTransferTokenTargetId=h;R.context=R.context||{};R.context.user=R.context.user||{};R.context.user.credentialTransferTokens=[{token:F,scope:a}]}; VD=function(R,F){var h=g.hG("yt.logging.transport.enableScrapingForTest"),a=sg("il_payload_scraping");a=(a!==void 0?String(a):"")==="enable_il_payload_scraping";if(!h)if(a)ED=[],g.Fk("yt.logging.transport.enableScrapingForTest",!0),g.Fk("yt.logging.transport.scrapedPayloadsForTesting",ED),g.Fk("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Fk("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Fk("yt.logging.transport.scrapeClientEvent",!0);else return;h=g.hG("yt.logging.transport.scrapedPayloadsForTesting");a=g.hG("yt.logging.transport.payloadToScrape");F&&(F=F.payload,(F=g.hG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(F)())&&h.push(F));F=g.hG("yt.logging.transport.scrapeClientEvent");if(a&&a.length>=1)for(var J=0;J0&&jzi(R,F,M)}else jzi(R,F)}; jzi=function(R,F,h){R=ZR7(R);F=F?g.YR(F):"";h=h||5;W6()&&g.bB(R,F,h)}; ZR7=function(R){for(var F=g.N(bRm),h=F.next();!h.done;h=F.next())R=xR(R,h.value);return"ST-"+bu(R).toString(36)}; SgL=function(R){if(R.name==="JavaException")return!0;R=R.stack;return R.includes("chrome://")||R.includes("-extension://")||R.includes("webkit-masked-url://")}; ORB=function(R){if(!R.stack)return!0;var F=!R.stack.includes("\n");return F&&R.stack.includes("ErrorType: ")||F&&R.stack.includes("Anonymous function (Unknown script")||R.stack.toLowerCase()==="not available"||R.fileName==="user-script"||R.fileName.startsWith("user-script:")?!0:!1}; mla=function(){this.Ut=[];this.eV=[]}; NN=function(){if(!xf){var R=xf=new mla;R.eV.length=0;R.Ut.length=0;o$B(R,X6O)}return xf}; o$B=function(R,F){F.eV&&R.eV.push.apply(R.eV,F.eV);F.Ut&&R.Ut.push.apply(R.Ut,F.Ut)}; e$7=function(R){function F(){return R.charCodeAt(a++)} var h=R.length,a=0;do{var J=H5(F);if(J===Infinity)break;var M=J>>3;switch(J&7){case 0:J=H5(F);if(M===2)return J;break;case 1:if(M===2)return;a+=8;break;case 2:J=H5(F);if(M===2)return R.substr(a,J);a+=J;break;case 5:if(M===2)return;a+=4;break;default:return}}while(a500));a++);a=J}else if(typeof R==="object")for(J in R){if(R[J]){var M=J;var v=R[J],I=F,w=h;M=typeof v!=="string"||M!=="clickTrackingParams"&&M!=="trackingParams"?0:(v=e$7(atob(v.replace(/-/g,"+").replace(/_/g,"/"))))?Lx(M+".ve",v,I,w):0;a+=M;a+=Lx(J,R[J],F,h);if(a>500)break}}else h[F]=T0(R),a+=h[F].length;else h[F]=T0(R),a+=h[F].length;return a}; Lx=function(R,F,h,a){h+="."+R;R=T0(F);a[h]=R;return h.length+R.length}; T0=function(R){try{return(typeof R==="string"?R:String(JSON.stringify(R))).substr(0,500)}catch(F){return"unable to serialize "+typeof R+" ("+F.message+")"}}; JY=function(R){g.y7(R)}; g.qN=function(R){g.y7(R,"WARNING")}; g.y7=function(R,F){var h=h===void 0?{}:h;h.name=g.Kp("INNERTUBE_CONTEXT_CLIENT_NAME",1);h.version=g.Kp("INNERTUBE_CONTEXT_CLIENT_VERSION");F=F===void 0?"ERROR":F;var a=!1;F=F===void 0?"ERROR":F;a=a===void 0?!1:a;if(R){R.hasOwnProperty("level")&&R.level&&(F=R.level);if(g.pR("console_log_js_exceptions")){var J=[];J.push("Name: "+R.name);J.push("Message: "+R.message);R.hasOwnProperty("params")&&J.push("Error Params: "+JSON.stringify(R.params));R.hasOwnProperty("args")&&J.push("Error args: "+JSON.stringify(R.args)); J.push("File name: "+R.fileName);J.push("Stacktrace: "+R.stack);window.console.log(J.join("\n"),R)}if(!(ufO>=5)){J=[];for(var M=g.N(dli),v=M.next();!v.done;v=M.next()){v=v.value;try{v()&&J.push(v())}catch(H){}}J=[].concat(g.S(PB2),g.S(J));var I=M6B(R);M=I.message||"Unknown Error";v=I.name||"UnknownError";var w=I.stack||R.D||"Not available";if(w.startsWith(v+": "+M)){var E=w.split("\n");E.shift();w=E.join("\n")}E=I.lineNumber||"Not available";I=I.fileName||"Not available";var B=0;if(R.hasOwnProperty("args")&& R.args&&R.args.length)for(var r=0;r=500);r++);else if(R.hasOwnProperty("params")&&R.params){var Y=R.params;if(typeof R.params==="object")for(r in Y){if(Y[r]){var p="params."+r,k=T0(Y[r]);h[p]=k;B+=p.length+k.length;if(B>500)break}}else h.params=T0(Y)}if(J.length)for(r=0;r=500);r++);navigator.vendor&&!h.hasOwnProperty("vendor")&&(h["device.vendor"]=navigator.vendor);h={message:M,name:v,lineNumber:E, fileName:I,stack:w,params:h,sampleWeight:1};r=Number(R.columnNumber);isNaN(r)||(h.lineNumber=h.lineNumber+":"+r);if(R.level==="IGNORED")R=0;else a:{R=NN();r=g.N(R.eV);for(J=r.next();!J.done;J=r.next())if(J=J.value,h.message&&h.message.match(J.x8)){R=J.weight;break a}R=g.N(R.Ut);for(r=R.next();!r.done;r=R.next())if(r=r.value,r.callback(h)){R=r.weight;break a}R=1}h.sampleWeight=R;R=g.N(z$2);for(r=R.next();!r.done;r=R.next())if(r=r.value,r.aE[h.name])for(M=g.N(r.aE[h.name]),J=M.next();!J.done;J=M.next())if(v= J.value,J=h.message.match(v.WV)){h.params["params.error.original"]=J[0];M=v.groups;v={};for(E=0;E1E3&&g.qN(new g.Pv("IL Attach cache exceeded limit"))}I= dr(h,F);oB.has(I)?P5(h,F):e2.set(I,!0)}}a=a.filter(function(B){B.csn!==F?(B.csn=F,B=!0):B=!1;return B}); h={csn:F,parentVe:h.getAsJson(),childVes:g.p1(a,function(B){return B.getAsJson()})}; F==="UNDEFINED_CSN"?z0("visualElementAttached",M,h):R?rr("visualElementAttached",h,R,M):g.MU("visualElementAttached",h,M)}; MAO=function(R,F,h,a,J){Kx(h,F);a=m$({cttAuthInfo:$f(F)||void 0},F);h={csn:F,ve:h.getAsJson(),eventType:1};J&&(h.clientData=J);F==="UNDEFINED_CSN"?z0("visualElementShown",a,h):R?rr("visualElementShown",h,R,a):g.MU("visualElementShown",h,a)}; vOL=function(R,F,h,a){var J=(a=a===void 0?!1:a)?16:8;a=m$({cttAuthInfo:$f(F)||void 0,endOfSequence:a},F);h={csn:F,ve:h.getAsJson(),eventType:J};F==="UNDEFINED_CSN"?z0("visualElementHidden",a,h):R?rr("visualElementHidden",h,R,a):g.MU("visualElementHidden",h,a)}; lw=function(R,F,h,a,J){tI(R,F,h,void 0,a,J)}; tI=function(R,F,h,a,J){Kx(h,F);a=a||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var M=m$({cttAuthInfo:$f(F)||void 0},F);h={csn:F,ve:h.getAsJson(),gestureType:a};J&&(h.clientData=J);F==="UNDEFINED_CSN"?z0("visualElementGestured",M,h):R?rr("visualElementGestured",h,R,M):g.MU("visualElementGestured",h,M)}; gOg=function(){var R=YG(16);for(var F=[],h=0;h0&&h.push(g.B4("BR"));h.push(g.rs(M))}):h.push(g.rs(a))}return h}; vx=function(R,F,h,a){if(h==="child"){g.pb(F);var J;a===void 0?J=void 0:J=!Array.isArray(a)||a&&typeof a.G==="string"?[a]:a;h=I1f(R,J);h=g.N(h);for(R=h.next();!R.done;R=h.next())F.appendChild(R.value)}else h==="style"?g.zL(F,"cssText",a?a:""):a===null||a===void 0?F.removeAttribute(h):(R=a.toString(),h==="href"&&(R=g.J7(g.Gq(R))),F.setAttribute(h,R))}; g.D=function(R){g.J0.call(this,R);this.dW=!0;this.N=!1;this.listeners=[]}; g.gY=function(R){g.D.call(this,R);this.Fo=new g.h0;g.z(this,this.Fo)}; GA=function(R,F,h,a,J,M,v){v=v===void 0?null:v;g.gY.call(this,F);this.api=R;this.macros={};this.componentType=h;this.Y=this.Z=null;this.uY=v;this.layoutId=a;this.interactionLoggingClientData=J;this.tb=M;this.IR=null;this.GB=new EY(this.element);g.z(this,this.GB);this.nI=this.T(this.element,"click",this.onClick);this.Uz=[];this.KI=new BO(this.onClick,this);g.z(this,this.KI);this.EP=!1;this.Oz=this.oR=null}; I7=function(R,F){R=R===void 0?null:R;F=F===void 0?null:F;if(R==null)return g.qN(Error("Got null or undefined adText object")),"";var h=g.Z$(R.text);if(!R.isTemplated)return h;if(F==null)return g.qN(Error("Missing required parameters for a templated message")),h;R=g.N(Object.entries(F));for(F=R.next();!F.done;F=R.next()){var a=g.N(F.value);F=a.next().value;a=a.next().value;h=h.replace("{"+F+"}",a)}return h}; inm=function(R){R=R===void 0?null:R;return R!=null&&(R=R.thumbnail,R!=null&&R.thumbnails!=null&&R.thumbnails.length!=0&&R.thumbnails[0].url!=null)?g.Z$(R.thumbnails[0].url):""}; wvi=function(R){R=R===void 0?null:R;return R!=null&&(R=R.thumbnail,R!=null&&R.thumbnails!=null&&R.thumbnails.length!=0&&R.thumbnails[0].width!=null&&R.thumbnails[0].height!=null)?new g.t7(R.thumbnails[0].width||0,R.thumbnails[0].height||0):new g.t7(0,0)}; g.iQ=function(R){if(R.simpleText)return R.simpleText;if(R.runs){var F=[];R=g.N(R.runs);for(var h=R.next();!h.done;h=R.next())h=h.value,h.text&&F.push(h.text);return F.join("")}return""}; g.wY=function(R){if(R.simpleText)return R=document.createTextNode(R.simpleText),R;var F=[];if(R.runs)for(var h=0;h1){for(var F=[R[0]],h=1;h0&&(this.B=new g.DY(this.Pd,F,this),g.z(this,this.B));this.N=new g.DY(this.Pd,h,this);g.z(this,this.N);this.Z=jx2(this.D,J,1,a);g.z(this,this.Z);this.Y=jx2(this.D,0,a,1);g.z(this,this.Y);this.L=new Hv;g.z(this,this.L)}; aK=function(R,F,h){this.D=R;this.isAsync=F;this.B=h}; h5n=function(R){switch(R){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:wU(R,"unknown result type")}}; adT=function(R,F){var h=1;R.isTrusted===!1&&(h=0);zu("ISDSTAT",h);JF(h,"i.s_",{triggerContext:"sk",metadata:F});return h}; JYI=function(R,F){var h=[];F?F.isTrusted===!0?h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):F.isTrusted===!1?h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");JF(0,"a.s_",{metadata:R,states:h});zu("ASDSTAT",0)}; JF=function(R,F,h){F=M1I[F];var a,J,M={detected:R===0,source:""+F.D+((a=h.triggerContext)!=null?a:"")+((J=h.MK)!=null?J:""),detectionStates:h.states,durationMs:h.NK};h.metadata&&(M.contentCpn=h.metadata.contentCpn,M.adCpn=h.metadata.adCpn);g.MU("biscottiBasedDetection",M);F.B!==void 0&&(h=Number(g.Kp("CATSTAT",0)),F.B!==void 0?(F=F.B,R=h5n(R),R=h&~(3<0}; wf=function(R,F,h,a,J,M){D6.call(this,R,{G:"div",J:"ytp-ad-skip-button-slot"},"skip-button",F,h,a,J);var v=this;this.aR=null;this.fI=!1;this.PG=M;this.S=this.api.W().experiments.jl("enable_modern_skip_button_on_web");this.T$=!1;this.L=new g.gY({G:"span",sz:["ytp-ad-skip-button-container"]});this.S&&this.L.element.classList.add("ytp-ad-skip-button-container-detached");g.z(this,this.L);this.L.Ab(this.element);this.D=this.K=null;this.HG=new g.CB(this.L,500,!1,100,function(){return v.hide()}); g.z(this,this.HG);this.Sl=new hF(this.L.element,15E3,5E3,.5,.5,this.S);g.z(this,this.Sl);this.hide()}; gVi=function(R){R=R.aR&&R.aR.adRendererCommands;return(R&&R.clickCommand&&g.t(R.clickCommand,g.Ex)&&g.t(R.clickCommand,g.Ex).commands||[]).some(function(F){return F.adLifecycleCommand?vVL(F.adLifecycleCommand):!1})}; vVL=function(R){return R.action==="END_LINEAR_AD"||R.action==="END_LINEAR_AD_PLACEMENT"}; BM=function(R,F,h,a,J,M){D6.call(this,R,{G:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",F,h,a,J);this.aR=M;this.L=!1;this.S=0;this.K=this.D=null;this.hide()}; GCL=function(R,F){R.L||(R.L=!0,R.D&&(F?R.D.aR.hide():R.D.hide()),F?(R=R.K,R.HG.show(),R.show()):R.K.show())}; rf=function(R,F,h,a){qF.call(this,R,F,h,a,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Yr=function(R,F,h,a,J,M,v){M=M===void 0?!1:M;v=v===void 0?!1:v;GA.call(this,R,{G:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",F,h,a);this.K=J;this.B=this.mI("ytp-ad-simple-ad-badge");(this.D=M)&&this.B.classList.add("ytp-ad-simple-ad-badge--clean-player");v&&this.B.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; sx=function(R,F,h,a,J){J=J===void 0?!1:J;Fu.call(this,"player-overlay",R,{},F,a);this.videoAdDurationSeconds=h;this.interactionLoggingClientData=a;this.zf=J}; pP=function(R,F){g.h0.call(this);this.api=R;this.durationMs=F;this.B=null;this.nV=new Hv(this);g.z(this,this.nV);this.D=IdL;this.nV.T(this.api,"presentingplayerstatechange",this.Vl);this.B=this.nV.T(this.api,"onAdPlaybackProgress",this.Na)}; kr=function(R){g.h0.call(this);this.B=!1;this.d4=0;this.nV=new Hv(this);g.z(this,this.nV);this.durationMs=R;this.timer=new g.m7(100);g.z(this,this.timer);this.nV.T(this.timer,"tick",this.Na);this.D={seekableStart:0,seekableEnd:R/1E3,current:0};this.start()}; g.Q6=function(R,F){var h=Math.abs(Math.floor(R)),a=Math.floor(h/86400),J=Math.floor(h%86400/3600),M=Math.floor(h%3600/60);h=Math.floor(h%60);if(F){F="";a>0&&(F+=" "+a+" d\u00edas");if(a>0||J>0)F+=" "+J+" horas";F+=" "+M+" minutos";F+=" "+h+" segundos";a=F.trim()}else{F="";a>0&&(F+=a+":",J<10&&(F+="0"));if(a>0||J>0)F+=J+":",M<10&&(F+="0");F+=M+":";h<10&&(F+="0");a=F+h}return R>=0?a:"-"+a}; g.$r=function(R){return(!("button"in R)||typeof R.button!=="number"||R.button===0)&&!("shiftKey"in R&&R.shiftKey)&&!("altKey"in R&&R.altKey)&&!("metaKey"in R&&R.metaKey)&&!("ctrlKey"in R&&R.ctrlKey)}; AF=function(R,F,h,a,J,M,v){D6.call(this,R,{G:"span",J:v?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",F,h,a,J);this.videoAdDurationSeconds=M;this.D=null;v&&this.api.W().D&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),PR&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; xr=function(R,F,h,a){t0.call(this,R,F,h,a,"ytp-video-ad-top-bar-title","ad-title")}; Nv=function(R){this.content=R.content;if(R.commandRuns){R=g.N(R.commandRuns);for(var F=R.next();!F.done;F=R.next())F=F.value,this.loggingDirectives=g.t(F,imL),F.onTap&&(this.interaction={onTap:F.onTap})}}; HM=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",F,h,a);this.hide()}; LP=function(R,F,h,a,J){GA.call(this,R,{G:"span",J:J?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",F,h,a);this.D=J;this.adBadgeText=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);this.adBadgeText.Ab(this.element);g.z(this,this.adBadgeText);J?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),PR&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; T2=function(R,F,h,a){GA.call(this,R,{G:"span",J:"ytp-ad-pod-index"},"ad-pod-index",F,h,a);this.api.W().D&&(this.element.classList.add("ytp-ad-pod-index--mweb"),PR&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; y6=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",F,h,a);this.hide()}; qv=function(R,F){this.D=R;this.B=F}; wRO=function(R,F){return R.D+F*(R.B-R.D)}; fP=function(R,F,h){return R.B-R.D?g.uu((F-R.D)/(R.B-R.D),0,1):h!=null?h:Infinity}; jj=function(R,F,h,a){a=a===void 0?!1:a;g.gY.call(this,{G:"div",J:"ytp-ad-persistent-progress-bar-container",V:[{G:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=R;this.D=F;this.K=h;a&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.z(this,this.D);this.progressBar=this.mI("ytp-ad-persistent-progress-bar");this.B=-1;this.T(R,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; ZJ=function(R,F,h,a,J,M){GA.call(this,R,{G:"div",J:"ytp-ad-player-overlay",V:[{G:"div",J:"ytp-ad-player-overlay-flyout-cta"},{G:"div",J:"ytp-ad-player-overlay-instream-info"},{G:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",J:"ytp-ad-player-overlay-progress-bar"},{G:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{G:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",F,h,a);this.C=M;this.S=this.mI("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.B=this.mI("ytp-ad-player-overlay-instream-info");this.L=null;EVI(this)&&(R=E$("div"),g.J$(R,"ytp-ad-player-overlay-top-bar-gradients"),F=this.B,F.parentNode&&F.parentNode.insertBefore(R,F),(F=this.api.getVideoData(2))&&F.isListed&&F.title&&(h=new xr(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),h.Ab(R),h.init(R7("ad-title"),{text:F.title},this.macros),g.z(this,h)),this.L=R);this.K=null;this.NQ=this.mI("ytp-ad-player-overlay-skip-or-preview");this.Sl=this.mI("ytp-ad-player-overlay-progress-bar"); this.fI=this.mI("ytp-ad-player-overlay-instream-user-sentiment");this.aR=this.mI("ytp-ad-player-overlay-ad-disclosure-banner");this.D=J;g.z(this,this.D);this.hide()}; EVI=function(R){R=R.api.W();return g.b5(R)&&R.D}; g.Sj=function(R){R&=16777215;var F=[(R&16711680)>>16,(R&65280)>>8,R&255];R=F[0];var h=F[1];F=F[2];R=Number(R);h=Number(h);F=Number(F);if(R!=(R&255)||h!=(h&255)||F!=(F&255))throw Error('"('+R+","+h+","+F+'") is not a valid RGB color');h=R<<16|h<<8|F;return R<16?"#"+(16777216|h).toString(16).slice(1):"#"+h.toString(16)}; g.Ox=function(){}; rYL=function(R){var F=new gF;var h=new vp;h=Sb(h,1,"botguard");R=Sb(h,2,R);this.B=mki(F,vp,1,BST,R)}; m5=function(R){this.B=new yM(R)}; YUn=function(){var R=!1;try{R=!!window.sessionStorage.getItem("session_logininfo")}catch(F){R=!0}return(g.Kp("INNERTUBE_CLIENT_NAME")==="WEB"||g.Kp("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&R}; oK=function(){var R=R===void 0?!0:R;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");zu("LOGIN_INFO","");R&&window.sessionStorage.setItem("from_switch_account","1");R=!0;R=R===void 0?!1:R;var F,h=sfL;h||(h=document.querySelector("#persist_identity"));if(F=h){var a=F.src?(new URL(F.src)).origin:"*";if(R){var J;(J=F.contentWindow)==null||J.postMessage({action:"clear"},a)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var M=window.sessionStorage.getItem("session_logininfo");if(M){var v;(v=F.contentWindow)==null||v.postMessage({loginInfo:M},a)}}}}catch(I){}}; XC=function(R){R&&(R.startsWith("https://accounts.google.com/AddSession")?oK():R.startsWith("https://accounts.google.com/ServiceLogin")?oK():R.startsWith("https://myaccount.google.com")&&g.B9(R).D.endsWith("/youtubeoptions")&&oK());if(g.Kp("LOGGED_IN",!0)&&YUn()){var F=g.Kp("VALID_SESSION_TEMPDATA_DOMAINS",[]);var h=g.I8(window.location.href);h&&F.push(h);h=g.I8(R);g.x7(F,h)||!h&&fM(R,"/")?(F=wy(R),(F=zwO(F))?(F=ZR7(F),F=(F=g.Sn(F)||null)?Wk(F):{}):F=null):F=null;F==null&&(F={});h=F;var a=void 0; YUn()?(a||(a=g.Kp("LOGIN_INFO")),a?(h.session_logininfo=a,h=!0):h=!1):h=!1;h&&AI(R,F)}}; g.pR_=function(R){var F=F===void 0?{}:F;var h=h===void 0?"":h;var a=a===void 0?window:a;R=g.sA(R,F);XC(R);h=g.Gq(R+h);a=a.location;h=Ia(h);h!==void 0&&(a.href=h)}; g.ej=function(R,F,h){F=F===void 0?{}:F;h=h===void 0?!1:h;var a=g.Kp("EVENT_ID");a&&(F.ei||(F.ei=a));F&&AI(R,F);h||(XC(R),g.pR_(R))}; g.nP=function(R,F,h,a,J){J=J===void 0?!1:J;h&&AI(R,h);h=g.Gq(R);var M=g.J7(h);R!=M&&UV(Error("Unsafe window.open URL: "+R));R=M;F=F||bu(R).toString(36);try{if(J)return J=R,J=IPL(J),XC(J),g.YN(window,J,F,"attributionsrc")}catch(v){g.DP(v)}XC(R);return g.YN(window,h,F,a)}; kC7=function(R){u5=R}; QfT=function(R){df=R}; $UO=function(R){PM=R}; xUn=function(){AY7=PM=df=u5=null}; Hm2=function(){var R=R===void 0?window.location.href:R;if(g.pR("kevlar_disable_theme_param"))return null;var F=ib(R);if(g.pR("enable_dark_theme_only_on_shorts")&&F!=null&&F.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var h=g.Ff(R).theme;return NSO.get(h)||null}catch(a){}return null}; z2=function(){this.B={};if(this.D=sj2()){var R=g.Sn("CONSISTENCY");R&&LFa(this,{encryptedTokenJarContents:R})}}; LFa=function(R,F){if(F.encryptedTokenJarContents&&(R.B[F.encryptedTokenJarContents]=F,typeof F.expirationSeconds==="string")){var h=Number(F.expirationSeconds);setTimeout(function(){delete R.B[F.encryptedTokenJarContents]},h*1E3); R.D&&g.bB("CONSISTENCY",F.encryptedTokenJarContents,h,void 0,!0)}}; tF=function(){this.D=-1;var R=g.Kp("LOCATION_PLAYABILITY_TOKEN");g.Kp("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=KP(this))&&(R=this.localStorage.get("yt-location-playability-token"));R&&(this.locationPlayabilityToken=R,this.B=void 0)}; KP=function(R){return R.localStorage===void 0?new Wv("yt-client-location"):R.localStorage}; g.l5=function(R,F,h){F=F===void 0?!1:F;h=h===void 0?!1:h;var a=g.Kp("INNERTUBE_CONTEXT");if(!a)return g.y7(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};a=g.pM(a);g.pR("web_no_tracking_params_in_shell_killswitch")||delete a.clickTracking;a.client||(a.client={});var J=a.client;J.clientName==="MWEB"&&J.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(J.clientFormFactor=g.Kp("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");J.screenWidthPoints=window.innerWidth;J.screenHeightPoints= window.innerHeight;J.screenPixelDensity=Math.round(window.devicePixelRatio||1);J.screenDensityFloat=window.devicePixelRatio||1;J.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var M=M===void 0?!1:M;g.oA();var v="USER_INTERFACE_THEME_LIGHT";g.XB(0,165)?v="USER_INTERFACE_THEME_DARK":g.XB(0,174)?v="USER_INTERFACE_THEME_LIGHT":!g.pR("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (v="USER_INTERFACE_THEME_DARK");M=M?v:Hm2()||v;J.userInterfaceTheme=M;if(!F){if(M=hGm())J.connectionType=M;g.pR("web_log_effective_connection_type")&&(M=JjL())&&(a.client.effectiveConnectionType=M)}var I;if(g.pR("web_log_memory_total_kbytes")&&((I=g.Wi.navigator)==null?0:I.deviceMemory)){var w;I=(w=g.Wi.navigator)==null?void 0:w.deviceMemory;a.client.memoryTotalKbytes=""+I*1E6}g.pR("web_gcf_hashes_innertube")&&(M=wsf())&&(w=M.coldConfigData,I=M.coldHashData,M=M.hotHashData,a.client.configInfo=a.client.configInfo|| {},w&&(a.client.configInfo.coldConfigData=w),I&&(a.client.configInfo.coldHashData=I),M&&(a.client.configInfo.hotHashData=M));w=g.Ff(g.Wi.location.href);!g.pR("web_populate_internal_geo_killswitch")&&w.internalcountrycode&&(J.internalGeo=w.internalcountrycode);J.clientName==="MWEB"||J.clientName==="WEB"?(J.mainAppWebInfo={graftUrl:g.Wi.location.href},g.pR("kevlar_woffle")&&Vkm.instance&&(w=Vkm.instance,J.mainAppWebInfo.pwaInstallabilityStatus=!w.B&&w.D?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),J.mainAppWebInfo.webDisplayMode=SA(),J.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):J.clientName==="TVHTML5"&&(!g.pR("web_lr_app_quality_killswitch")&&(w=g.Kp("LIVING_ROOM_APP_QUALITY"))&&(J.tvAppInfo=Object.assign(J.tvAppInfo||{},{appQuality:w})),w=g.Kp("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(J.tvAppInfo=Object.assign(J.tvAppInfo||{},{certificationScope:w}));if(!g.pR("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var E=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(n){}E=void 0}E&&(J.timeZone=E)}(E=QS())?J.experimentsToken=E:delete J.experimentsToken;E=$$();z2.instance||(z2.instance=new z2);a.request=Object.assign({},a.request,{internalExperimentFlags:E,consistencyTokenJars:gd(z2.instance.B)});!g.pR("web_prequest_context_killswitch")&&(E=g.Kp("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(a.request.externalPrequestContext=E);J=g.oA();E=g.XB(0,58);J=J.get("gsml","");a.user=Object.assign({}, a.user);E&&(a.user.enableSafetyMode=E);J&&(a.user.lockedSafetyMode=!0);g.pR("warm_op_csn_cleanup")?h&&(F=g.Q7())&&(a.clientScreenNonce=F):!F&&(F=g.Q7())&&(a.clientScreenNonce=F);R&&(a.clickTracking={clickTrackingParams:R});if(R=g.hG("yt.mdx.remote.remoteClient_"))a.remoteClient=R;tF.getInstance().setLocationOnInnerTubeContext(a);try{var B=Iz(),r=B.bid;delete B.bid;a.adSignalsInfo={params:[],bid:r};for(var Y=g.N(Object.entries(B)),p=Y.next();!p.done;p=Y.next()){var k=g.N(p.value),H=k.next().value, T=k.next().value;B=H;r=T;R=void 0;(R=a.adSignalsInfo.params)==null||R.push({key:B,value:""+r})}var Z,b;if(((Z=a.client)==null?void 0:Z.clientName)==="TVHTML5"||((b=a.client)==null?void 0:b.clientName)==="TVHTML5_UNPLUGGED"){var O=g.Kp("INNERTUBE_CONTEXT");O.adSignalsInfo&&(a.adSignalsInfo.advertisingId=O.adSignalsInfo.advertisingId,a.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",a.adSignalsInfo.limitAdTracking=O.adSignalsInfo.limitAdTracking)}}catch(n){g.y7(n)}return a}; qU7=function(R,F){if(!R)return!1;var h,a=(h=g.t(R,TSm))==null?void 0:h.signal;if(a&&F.uL)return!!F.uL[a];var J;if((h=(J=g.t(R,yYT))==null?void 0:J.request)&&F.Ob)return!!F.Ob[h];for(var M in R)if(F.sb[M])return!0;return!1}; fdI=function(R){var F={"Content-Type":"application/json"};g.Kp("EOM_VISITOR_DATA")?F["X-Goog-EOM-Visitor-Id"]=g.Kp("EOM_VISITOR_DATA"):g.Kp("VISITOR_DATA")&&(F["X-Goog-Visitor-Id"]=g.Kp("VISITOR_DATA"));F["X-Youtube-Bootstrap-Logged-In"]=g.Kp("LOGGED_IN",!1);g.Kp("DEBUG_SETTINGS_METADATA")&&(F["X-Debug-Settings-Metadata"]=g.Kp("DEBUG_SETTINGS_METADATA"));R!=="cors"&&((R=g.Kp("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(F["X-Youtube-Client-Name"]=R),(R=g.Kp("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(F["X-Youtube-Client-Version"]= R),(R=g.Kp("CHROME_CONNECTED_HEADER"))&&(F["X-Youtube-Chrome-Connected"]=R),(R=g.Kp("DOMAIN_ADMIN_STATE"))&&(F["X-Youtube-Domain-Admin-State"]=R),g.Kp("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(R=g.Kp("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(F["X-YouTube-Lava-Device-Context"]=R));return F}; jfm=function(){this.B={}}; DJ=function(){this.mappings=new jfm}; V6=function(R){return function(){return new R}}; bmi=function(R){var F=F===void 0?"UNKNOWN_INTERFACE":F;if(R.length===1)return R[0];var h=Zmi[F];if(h){h=new RegExp(h);for(var a=g.N(R),J=a.next();!J.done;J=a.next())if(J=J.value,h.exec(J))return J}var M=[];Object.entries(Zmi).forEach(function(v){var I=g.N(v);v=I.next().value;I=I.next().value;F!==v&&M.push(I)}); h=new RegExp(M.join("|"));R.sort(function(v,I){return v.length-I.length}); a=g.N(R);for(J=a.next();!J.done;J=a.next())if(J=J.value,!h.exec(J))return J;return R[0]}; g.Ux=function(R){return"/youtubei/v1/"+bmi(R)}; CP=function(){}; cM=function(){}; WM=function(){}; RS=function(R){return g.hG("ytcsi."+(R||"")+"data_")||SUg(R)}; OmL=function(){var R=RS();R.info||(R.info={});return R.info}; Fp=function(R){R=RS(R);R.metadata||(R.metadata={});return R.metadata}; h9=function(R){R=RS(R);R.tick||(R.tick={});return R.tick}; aS=function(R){R=RS(R);if(R.gel){var F=R.gel;F.gelInfos||(F.gelInfos={});F.gelTicks||(F.gelTicks={})}else R.gel={gelTicks:{},gelInfos:{}};return R.gel}; mUm=function(R){R=aS(R);R.gelInfos||(R.gelInfos={});return R.gelInfos}; J9=function(R){var F=RS(R).nonce;F||(F=g.sY(16),RS(R).nonce=F);return F}; SUg=function(R){var F={tick:{},info:{}};g.Fk("ytcsi."+(R||"")+"data_",F);return F}; MH=function(){var R=g.hG("ytcsi.debug");R||(R=[],g.Fk("ytcsi.debug",R),g.Fk("ytcsi.reference",{}));return R}; vf=function(R){R=R||"";var F=oVL();if(F[R])return F[R];var h=MH(),a={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};h.push(a);return F[R]=a}; XR2=function(R){R=R||"";var F=oVL();F[R]&&delete F[R];var h=MH(),a={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};h.push(a);F[R]=a}; oVL=function(){var R=g.hG("ytcsi.reference");if(R)return R;MH();return g.hG("ytcsi.reference")}; g5=function(R){return e5g[R]||"LATENCY_ACTION_UNKNOWN"}; GQ=function(R,F){wM.call(this,1,arguments);this.timer=F}; IS=function(){this.B=0}; iN=function(){IS.instance||(IS.instance=new IS);return IS.instance}; Ey=function(R,F){w5[F]=w5[F]||{count:0};var h=w5[F];h.count++;h.time=(0,g.NU)();R.B||(R.B=g.D1(0,function(){var a=(0,g.NU)(),J;for(J in w5)w5[J]&&a-w5[J].time>6E4&&delete w5[J];R&&(R.B=0)},5E3)); return h.count>5?(h.count===6&&Math.random()*1E5<1&&(h=new g.Pv("CSI data exceeded logging limit with key",F.split("_")),F.indexOf("plev")>=0||g.qN(h)),!0):!1}; nVL=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; uhi=function(){var R;if(g.pR("csi_use_performance_navigation_timing")){var F,h,a,J=Bf==null?void 0:(R=Bf.getEntriesByType)==null?void 0:(F=R.call(Bf,"navigation"))==null?void 0:(h=F[0])==null?void 0:(a=h.toJSON)==null?void 0:a.call(h);J?(J.requestStart=r5(J.requestStart),J.responseEnd=r5(J.responseEnd),J.redirectStart=r5(J.redirectStart),J.redirectEnd=r5(J.redirectEnd),J.domainLookupEnd=r5(J.domainLookupEnd),J.connectStart=r5(J.connectStart),J.connectEnd=r5(J.connectEnd),J.responseStart=r5(J.responseStart), J.secureConnectionStart=r5(J.secureConnectionStart),J.domainLookupStart=r5(J.domainLookupStart),J.isPerformanceNavigationTiming=!0,R=J):R=Bf.timing}else R=g.pR("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Bf.timing)):Bf.timing;return R}; r5=function(R){return Math.round(YJ()+R)}; YJ=function(){return(g.pR("csi_use_time_origin")||g.pR("csi_use_time_origin_tvhtml5"))&&Bf.timeOrigin?Math.floor(Bf.timeOrigin):Bf.timing.navigationStart}; p4=function(R,F){sy("_start",R,F)}; kJ=function(R,F){if(!g.pR("web_csi_action_sampling_enabled")||!RS(F).actionDisabled){var h=vf(F||"");Ie(h.info,R);R.loadType&&(h=R.loadType,Fp(F).loadType=h);Ie(mUm(F),R);h=J9(F);F=RS(F).cttAuthInfo;iN().info(R,h,F)}}; dUL=function(){var R,F,h,a;return((a=q_().resolve(N_(Jq))==null?void 0:(R=Md())==null?void 0:(F=R.loggingHotConfig)==null?void 0:(h=F.csiConfig)==null?void 0:h.debugTicks)!=null?a:[]).map(function(J){return Object.values(J)[0]})}; sy=function(R,F,h){if(!g.pR("web_csi_action_sampling_enabled")||!RS(h).actionDisabled){var a=J9(h),J;if(J=g.pR("web_csi_debug_sample_enabled")&&a){(q_().resolve(N_(Jq))==null?0:Md())&&!PIg&&(PIg=!0,sy("gcfl",(0,g.NU)(),h));var M,v,I;J=(q_().resolve(N_(Jq))==null?void 0:(M=Md())==null?void 0:(v=M.loggingHotConfig)==null?void 0:(I=v.csiConfig)==null?void 0:I.debugSampleWeight)||0;if(M=J!==0)b:{M=dUL();if(M.length>0)for(v=0;vh.duration?a:h},{duration:0}))&&F.startTime>0&&F.responseEnd>0&&(sy("wffs",r5(F.startTime)),sy("wffe",r5(F.responseEnd)))}; UUI=function(R,F,h){Bf&&Bf.measure&&(R.startsWith("measure_")||(R="measure_"+R),h?Bf.measure(R,F,h):F?Bf.measure(R,F):Bf.measure(R))}; CIi=function(R){var F=Qh("aft",R);if(F)return F;F=g.Kp((R||"")+"TIMING_AFT_KEYS",["ol"]);for(var h=F.length,a=0;a0&&kJ(F);F={isNavigation:!0,actionType:g5(g.Kp("TIMING_ACTION"))};var h=g.Kp("PREVIOUS_ACTION");h&&(F.previousAction=g5(h));if(h=g.Kp("CLIENT_PROTOCOL"))F.httpProtocol=h;if(h=g.Kp("CLIENT_TRANSPORT"))F.transportProtocol=h;(h=g.Q7())&&h!=="UNDEFINED_CSN"&&(F.clientScreenNonce=h);h=t1B();if(h===1||h===-1)F.isVisible= !0;h=Fp().loadType==="cold";var a=OmL();h||(h=a.yt_lt==="cold");if(h){F.loadType="cold";h=OmL();a=uhi();var J=YJ(),M=g.Kp("CSI_START_TIMESTAMP_MILLIS",0);M>0&&!g.pR("embeds_web_enable_csi_start_override_killswitch")&&(J=M);J&&(sy("srt",a.responseStart),h.prerender!==1&&p4(J));h=RQB();h>0&&sy("fpt",h);h=uhi();h.isPerformanceNavigationTiming&&kJ({performanceNavigationTiming:!0},void 0);sy("nreqs",h.requestStart,void 0);sy("nress",h.responseStart,void 0);sy("nrese",h.responseEnd,void 0);h.redirectEnd- h.redirectStart>0&&(sy("nrs",h.redirectStart,void 0),sy("nre",h.redirectEnd,void 0));h.domainLookupEnd-h.domainLookupStart>0&&(sy("ndnss",h.domainLookupStart,void 0),sy("ndnse",h.domainLookupEnd,void 0));h.connectEnd-h.connectStart>0&&(sy("ntcps",h.connectStart,void 0),sy("ntcpe",h.connectEnd,void 0));h.secureConnectionStart>=YJ()&&h.connectEnd-h.secureConnectionStart>0&&(sy("nstcps",h.secureConnectionStart,void 0),sy("ntcpe",h.connectEnd,void 0));Bf&&"getEntriesByType"in Bf&&V1B();h=[];if(document.querySelector&& Bf&&Bf.getEntriesByName)for(var v in xJ)xJ.hasOwnProperty(v)&&(a=xJ[v],DUf(v,a)&&h.push(a));if(h.length>0)for(F.resourceInfo=[],v=g.N(h),h=v.next();!h.done;h=v.next())F.resourceInfo.push({resourceCache:h.value})}kJ(F);F=aS();F.preLoggedGelInfos||(F.preLoggedGelInfos=[]);v=F.preLoggedGelInfos;F=mUm();h=void 0;for(a=0;a-1&&(delete qa["@type"],U=qa);H&&R.D.has(H)&&R.D.delete(H);((Ru=F.config)==null?0:Ru.rjt)&&Hf(F.config.rjt);if(U||(ng=R.K)==null||!ng.hnl(F.input,F.uj)){eB.G$(15);break}return g.m(eB,R.K.ziR(F.input,F.uj),16);case 16:U=eB.B;case 15:return kjO(R, U,F),(($7=F.config)==null?0:$7.VIt)&&Hf(F.config.VIt),a(),eB.return(U||void 0)}})}; BMi=function(R,F){a:{R=R.VT;var h,a=(h=g.t(F,TSm))==null?void 0:h.signal;if(a&&R.uL&&(h=R.uL[a])){var J=h();break a}var M;if((h=(M=g.t(F,yYT))==null?void 0:M.request)&&R.Ob&&(M=R.Ob[h])){J=M();break a}for(J in F)if(R.sb[J]&&(F=R.sb[J])){J=F();break a}J=void 0}if(J!==void 0)return Promise.resolve(J)}; YPO=function(R,F,h){var a,J,M,v,I,w,E;return g.u(function(B){if(B.D==1){M=((a=F)==null?void 0:(J=a.Z3)==null?void 0:J.identity)||ID;w=(v=F)==null?void 0:(I=v.Z3)==null?void 0:I.sessionIndex;var r=g.jV(R.B.yn(M,{sessionIndex:w}));return g.m(B,r,2)}E=B.B;return B.return(Promise.resolve(Object.assign({},fdI(h),E)))})}; rqi=function(R,F,h){var a,J=(F==null?void 0:(a=F.Z3)==null?void 0:a.identity)||ID,M;F=F==null?void 0:(M=F.Z3)==null?void 0:M.sessionIndex;R=R.B.yn(J,{sessionIndex:F});return Object.assign({},fdI(h),R)}; SG=function(){}; Oy=function(){}; mZ=function(R){this.S=R}; oS=function(){}; Xp=function(){}; eG=function(){}; n4=function(){}; g.uN=function(R,F){var h=g.u7.apply(2,arguments);R=R===void 0?0:R;g.Pv.call(this,F,h);this.errorType=R;Object.setPrototypeOf(this,this.constructor.prototype)}; d5=function(R,F,h,a){this.B=R;this.D=F;this.K=h;this.L=a}; $dL=function(R,F,h){if(R.B){var a=ib(xR(F,"key"))||"/UNKNOWN_PATH";R.B.start(a)}a=h;g.pR("wug_networking_gzip_request")&&(a=dEL(h));var J;return new ((J=R.L)!=null?J:window.Request)(F,a)}; g.zQ=function(R,F){if(!Pf){var h=q_();HO(h,{WS:AqT,Jg:d5});var a={sb:{feedbackEndpoint:V6(oS),modifyChannelNotificationPreferenceEndpoint:V6(Xp),playlistEditEndpoint:V6(eG),shareEntityEndpoint:V6(mZ),subscribeEndpoint:V6(SG),unsubscribeEndpoint:V6(Oy),webPlayerShareEntityServiceEndpoint:V6(n4)}},J=tF.getInstance(),M={};J&&(M.client_location=J);R===void 0&&(R=UK7());F===void 0&&(F=h.resolve(AqT));E3_(a,F,R,M);HO(h,{WS:xdi,TQ:jG.instance});Pf=h.resolve(xdi)}return Pf}; NMB=function(R){var F=new ij;if(R.interpreterJavascript){var h=bJn(R.interpreterJavascript);h=kN(h).toString();var a=new Gn;Sb(a,6,h);Qx(F,Gn,1,a,l1)}else R.interpreterUrl&&(h=Ai(R.interpreterUrl),h=h7(h).toString(),a=new Ij,Sb(a,4,h),Qx(F,Ij,2,a,l1));R.interpreterHash&&O1(F,3,R.interpreterHash,l1);R.program&&O1(F,4,R.program,l1);R.globalName&&O1(F,5,R.globalName,l1);R.clientExperimentsStateBlob&&O1(F,7,R.clientExperimentsStateBlob,l1);return F}; K4=function(R){var F={};R=R.split("&");R=g.N(R);for(var h=R.next();!h.done;h=R.next())h=h.value.split("="),h.length===2&&(F[h[0]]=h[1]);return F}; bET=function(){if(g.pR("bg_st_hr"))return"havuokmhhs-0";var R,F=((R=performance)==null?void 0:R.timeOrigin)||0;return"havuokmhhs-"+Math.floor(F)}; t9=function(R){this.B=R}; Hd7=function(){return new Promise(function(R){var F=window.top;F.ntpevasrs!==void 0?R(new t9(F.ntpevasrs)):(F.ntpqfbel===void 0&&(F.ntpqfbel=[]),F.ntpqfbel.push(function(h){R(new t9(h))}))})}; TMg=function(){if(W6()){var R=g.Kp("PLAYER_VARS",{});if(g.rd(R,"privembed",!1)!="1"&&!NzL(R)){var F=function(){lN=!0;"google_ad_status"in window?zu("DCLKSTAT",1):zu("DCLKSTAT",2)}; try{g.F5("//static.doubleclick.net/instream/ad_status.js",F)}catch(h){}Lqg.push(g.er.J0(function(){if(!(lN||"google_ad_status"in window)){try{if(F){var h=""+g.g7(F),a=xgi[h];a&&g.Wm(a)}}catch(J){}lN=!0;zu("DCLKSTAT",3)}},5E3))}}}; DC=function(){var R=Number(g.Kp("DCLKSTAT",0));return isNaN(R)?0:R}; cf=function(R,F,h){var a=this;this.network=R;this.options=F;this.D=h;this.B=null;if(F.eon){var J=new g.EJ;this.B=J.promise;g.Wi.ytAtRC&&lH(function(){var M,v;return g.u(function(I){if(I.D==1){if(!g.Wi.ytAtRC)return I.return();M=Vh(null);return g.m(I,Uy(a,M),2)}v=I.B;g.Wi.ytAtRC&&g.Wi.ytAtRC(JSON.stringify(v));g.Na(I)})},2); Hd7().then(function(M){var v,I,w,E;return g.u(function(B){if(B.D==1)return M.bindInnertubeChallengeFetcher(function(r){return Uy(a,Vh(r))}),g.m(B,Ci(),2); v=B.B;I=M.getLatestChallengeResponse();w=I.challenge;if(!w)throw Error("BGE_MACIL");E={challenge:w,EU:K4(w),VK:v,bgChallenge:new ij};J.resolve(E);M.registerChallengeFetchedCallback(function(r){r=r.challenge;if(!r)throw Error("BGE_MACR");r={challenge:r,EU:K4(r),VK:v,bgChallenge:new ij};a.B=Promise.resolve(r)}); g.Na(B)})})}else F.preload&&yqT(this,new Promise(function(M){g.D1(0,function(){M(C4(a))},0)}))}; Vh=function(R){var F={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};R&&(F.interpreterHash=R);return F}; C4=function(R,F){F=F===void 0?0:F;var h,a,J,M,v,I,w,E,B,r,Y,p;return g.u(function(k){switch(k.D){case 1:h=Vh(Yy().B);if(g.pR("att_fet_ks"))return g.Hi(k,7),g.m(k,Uy(R,h),9);g.Hi(k,4);return g.m(k,qPa(R,h),6);case 6:v=k.B;J=v.cTo;M=v.Rlb;a=v;g.yn(k,3);break;case 4:return g.f_(k),g.qN(Error("Failed to fetch attestation challenge after "+(F+" attempts; not retrying for 24h."))),Wf(R,864E5),k.return({challenge:"",EU:{},VK:void 0,bgChallenge:void 0});case 9:a=k.B;if(!a)throw Error("Fetching Attestation challenge returned falsy"); if(!a.challenge)throw Error("Missing Attestation challenge");J=a.challenge;M=K4(J);if("c1a"in M&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.yn(k,3);break;case 7:I=g.f_(k);g.qN(I);F++;if(F>=5)return g.qN(Error("Failed to fetch attestation challenge after "+(F+" attempts; not retrying for 24h."))),Wf(R,864E5),k.return({challenge:"",EU:{},VK:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,F-1)+Math.random()*1E3;return k.return(new Promise(function(H){g.D1(0, function(){H(C4(R,F))},w)})); case 3:E=Number(M.t)||7200;Wf(R,E*1E3);B=void 0;if(!("c1a"in M&&a.bgChallenge)){k.G$(10);break}r=NMB(a.bgChallenge);g.Hi(k,11);return g.m(k,Zlf(Yy(),r),13);case 13:g.yn(k,12);break;case 11:return Y=g.f_(k),g.qN(Y),k.return({challenge:J,EU:M,VK:B,bgChallenge:r});case 12:return g.Hi(k,14),B=new BY({challenge:r,sH:{H_:"aGIf"}}),g.m(k,B.ZP,16);case 16:g.yn(k,10);break;case 14:p=g.f_(k),g.qN(p),B=void 0;case 10:return k.return({challenge:J,EU:M,VK:B,bgChallenge:r})}})}; Uy=function(R,F){var h;return g.u(function(a){h=R.D;if(!h||h.sT())return a.return(Uy(R.network,F));f4("att_pna",void 0,"attestation_challenge_fetch");return a.return(new Promise(function(J){h.nA("publicytnetworkstatus-online",function(){Uy(R.network,F).then(J)})}))})}; fbm=function(R){if(!R)throw Error("Fetching Attestation challenge returned falsy");if(!R.challenge)throw Error("Missing Attestation challenge");var F=R.challenge,h=K4(F);if("c1a"in h&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},R,{cTo:F,Rlb:h})}; qPa=function(R,F){var h,a,J,M,v;return g.u(function(I){switch(I.D){case 1:h=void 0,a=0,J={};case 2:if(!(a<5)){I.G$(4);break}if(!(a>0)){I.G$(5);break}J.bX=1E3*Math.pow(2,a-1)+Math.random()*1E3;return g.m(I,new Promise(function(w){return function(E){g.D1(0,function(){E(void 0)},w.bX)}}(J)),5); case 5:return g.Hi(I,7),g.m(I,Uy(R,F),9);case 9:return M=I.B,I.return(fbm(M));case 7:h=v=g.f_(I),v instanceof Error&&g.qN(v);case 8:a++;J={bX:void 0};I.G$(2);break;case 4:throw h;}})}; yqT=function(R,F){R.B=F}; jDL=function(R){var F,h,a;return g.u(function(J){if(J.D==1)return g.m(J,Promise.race([R.B,null]),2);F=J.B;var M=C4(R);R.B=M;(h=F)==null||(a=h.VK)==null||a.dispose();g.Na(J)})}; Wf=function(R,F){function h(){var J;return g.u(function(M){J=a-Date.now();return J<1E3?g.m(M,jDL(R),0):(lH(h,0,Math.min(J,6E4)),M.G$(0))})} var a=Date.now()+F;h()}; ZdL=function(R,F){return new Promise(function(h){g.D1(0,function(){h(F())},R)})}; g.bdn=function(R,F){var h;return g.u(function(a){var J=g.hG("yt.aba.att");return(h=J?J:cf.instance!==void 0?cf.instance.K.bind(cf.instance):null)?a.return(h("ENGAGEMENT_TYPE_PLAYBACK",R,F)):a.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.SPO=function(){var R;return(R=(R=g.hG("yt.aba.att2"))?R:cf.instance!==void 0?cf.instance.L.bind(cf.instance):null)?R():Promise.resolve(!1)}; mdm=function(R,F){var h=g.hG("ytDebugData.callbacks");h||(h={},g.Fk("ytDebugData.callbacks",h));if(g.pR("web_dd_iu")||OdT.includes(R))h[R]=F}; RN=function(){var R=o3I;var F=F===void 0?[]:F;var h=h===void 0?[]:h;F=Tqi.apply(null,[yhf.apply(null,g.S(F))].concat(g.S(h)));this.store=fHI(R,void 0,F)}; g.F_=function(R,F,h){for(var a=Object.assign({},R),J=g.N(Object.keys(F)),M=J.next();!M.done;M=J.next()){M=M.value;var v=R[M],I=F[M];if(I===void 0)delete a[M];else if(v===void 0)a[M]=I;else if(Array.isArray(I)&&Array.isArray(v))a[M]=h?[].concat(g.S(v),g.S(I)):I;else if(!Array.isArray(I)&&g.M4(I)&&!Array.isArray(v)&&g.M4(v))a[M]=g.F_(v,I,h);else if(typeof I===typeof v)a[M]=I;else return F=new g.Pv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:M,cFG:v,updateValue:I}),g.y7(F), R}return a}; hl=function(R){var F=this;R=R===void 0?[]:R;this.B=[];this.K=this.D=0;this.L=void 0;this.totalLength=0;R.forEach(function(h){F.append(h)})}; Xm_=function(R,F){return R.B.length===0?!1:(R=R.B[R.B.length-1])&&R.buffer===F.buffer&&R.byteOffset+R.length===F.byteOffset}; aN=function(R,F){F=g.N(F.B);for(var h=F.next();!h.done;h=F.next())R.append(h.value)}; Jl=function(R,F,h){return R.split(F).W9.split(h).SU}; Ms=function(R){R.L=void 0;R.D=0;R.K=0}; vD=function(R,F,h){R.isFocused(F);return F-R.K+h<=R.B[R.D].length}; eQn=function(R){if(!R.L){var F=R.B[R.D];R.L=new DataView(F.buffer,F.byteOffset,F.length)}return R.L}; n3L=function(R,F,h){F=F===void 0?0:F;h=h===void 0?-1:h;if(!R.totalLength||!h)return new DataView(new ArrayBuffer(0));h<0&&(h=R.totalLength-F);R.focus(F);if(!vD(R,F,h)){var a=R.D,J=R.K;R.focus(F+h-1);J=new Uint8Array(R.K+R.B[R.D].length-J);for(var M=0,v=a;v<=R.D;v++)J.set(R.B[v],M),M+=R.B[v].length;R.B.splice(a,R.D-a+1,J);Ms(R);R.focus(F)}a=R.B[R.D];return new DataView(a.buffer,a.byteOffset+F-R.K,h)}; gw=function(R,F,h){R=n3L(R,F===void 0?0:F,h===void 0?-1:h);return new Uint8Array(R.buffer,R.byteOffset,R.byteLength)}; GJ=function(R,F,h){R=gw(R,F===void 0?0:F,h===void 0?-1:h);F=new Uint8Array(R.length);try{F.set(R)}catch(a){for(h=0;h>10;M=56320|M&1023}Ea[J++]=M}}M=String.fromCharCode.apply(String,Ea); J<1024&&(M=M.substring(0,J));h.push(M)}return h.join("")}; Yo=function(R,F){var h;if((h=rw)==null?0:h.encodeInto)return F=rw.encodeInto(R,F),F.read>6|192:((J&64512)===55296&&a+1>18|240,F[h++]=J>>12&63|128):F[h++]=J>>12|224,F[h++]=J>>6&63|128),F[h++]=J&63|128)}return h}; sa=function(R){if(rw)return rw.encode(R);var F=new Uint8Array(Math.ceil(R.length*1.2)),h=Yo(R,F);F.lengthh&&(F=F.subarray(0,h));return F}; pU=function(R){this.B=R;this.pos=0;this.D=-1}; ko=function(R){var F=IN(R.B,R.pos);++R.pos;if(F<128)return F;for(var h=F&127,a=1;F>=128;)F=IN(R.B,R.pos),++R.pos,a*=128,h+=(F&127)*a;return h}; QQ=function(R,F){var h=R.D;for(R.D=-1;R.pos+1<=R.B.totalLength;){h<0&&(h=ko(R));var a=h>>3,J=h&7;if(a===F)return!0;if(a>F){R.D=h;break}h=-1;switch(J){case 0:ko(R);break;case 1:R.pos+=8;break;case 2:a=ko(R);R.pos+=a;break;case 5:R.pos+=4}}return!1}; $o=function(R,F){if(QQ(R,F))return ko(R)}; Al=function(R,F){if(QQ(R,F))return!!ko(R)}; xo=function(R,F){if(QQ(R,F)){F=ko(R);var h=gw(R.B,R.pos,F);R.pos+=F;return h}}; Ns=function(R,F){if(R=xo(R,F))return g.BD(R)}; HD=function(R,F,h){if(R=xo(R,F))return h(new pU(new hl([R])))}; LU=function(R,F){for(var h=[];QQ(R,F);)h.push(ko(R));return h.length?h:void 0}; TJ=function(R,F,h){for(var a=[],J;J=xo(R,F);)a.push(h(new pU(new hl([J]))));return a.length?a:void 0}; yQ=function(R,F){R=R instanceof Uint8Array?new hl([R]):R;return F(new pU(R))}; PnT=function(R,F,h){if(F&&h&&h.buffer===F.exports.memory.buffer){var a=F.realloc(h.byteOffset,R);if(a)return new Uint8Array(F.exports.memory.buffer,a,R)}R=F?new Uint8Array(F.exports.memory.buffer,F.malloc(R),R):new Uint8Array(R);h&&R.set(h);return R}; zQ2=function(R,F){this.K=F;this.pos=0;this.D=[];this.B=PnT(R===void 0?4096:R,F);this.view=new DataView(this.B.buffer,this.B.byteOffset,this.B.byteLength)}; qs=function(R,F){F=R.pos+F;if(!(R.B.length>=F)){for(var h=R.B.length*2;h268435455){qs(R,4);for(var h=F&1073741823,a=0;a<4;a++)R.view.setUint8(R.pos,h&127|128),h>>=7,R.pos+=1;F=Math.floor(F/268435456)}for(qs(R,4);F>127;)R.view.setUint8(R.pos,F&127|128),F>>=7,R.pos+=1;R.view.setUint8(R.pos,F);R.pos+=1}; j9=function(R,F,h){h!==void 0&&(fU(R,F*8),fU(R,h))}; ZI=function(R,F,h){h!==void 0&&j9(R,F,h?1:0)}; bp=function(R,F,h){h!==void 0&&(fU(R,F*8+2),F=h.length,fU(R,F),qs(R,F),R.B.set(h,R.pos),R.pos+=F)}; S9=function(R,F,h){h!==void 0&&(KqL(R,F,Math.ceil(Math.log2(h.length*4+2)/7)),qs(R,h.length*1.2),F=Yo(h,R.B.subarray(R.pos)),R.pos+F>R.B.length&&(qs(R,F),F=Yo(h,R.B.subarray(R.pos))),R.pos+=F,tlT(R))}; KqL=function(R,F,h){h=h===void 0?2:h;fU(R,F*8+2);R.D.push(R.pos);R.D.push(h);R.pos+=h}; tlT=function(R){for(var F=R.D.pop(),h=R.D.pop(),a=R.pos-h-F;F--;){var J=F?128:0;R.view.setUint8(h++,a&127|J);a>>=7}}; KU=function(R,F,h,a,J){h&&(KqL(R,F,J===void 0?3:J),a(R,h),tlT(R))}; g.tl=function(R,F,h){h=new zQ2(4096,h);F(h,R);return new Uint8Array(h.B.buffer,h.B.byteOffset,h.pos)}; g.lp=function(R){var F=new pU(new hl([qx(decodeURIComponent(R))]));R=Ns(F,2);F=$o(F,4);var h=lb2[F];if(typeof h==="undefined")throw R=new g.Pv("Failed to recognize field number",{name:"EntityKeyHelperError",Lmb:F}),g.y7(R),R;return{Cl:F,entityType:h,entityId:R}}; g.DI=function(R,F){var h=h===void 0?0:h;var a=new zQ2;bp(a,2,sa(R));R=Dd2[F];if(typeof R==="undefined")throw h=new g.Pv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:F}),g.y7(h),h;j9(a,4,R);j9(a,5,1);F=new Uint8Array(a.B.buffer,a.B.byteOffset,a.pos);return encodeURIComponent(g.Tf(F,h))}; VQ=function(R,F,h,a){if(a===void 0)return a=Object.assign({},R[F]||{}),h=(delete a[h],a),a={},Object.assign({},R,(a[F]=h,a));var J={},M={};return Object.assign({},R,(M[F]=Object.assign({},R[F],(J[h]=a,J)),M))}; VlB=function(R,F,h,a,J){var M=R[F];if(M==null||!M[h])return R;a=g.F_(M[h],a,J==="REPEATED_FIELDS_MERGE_OPTION_APPEND");J={};M={};return Object.assign({},R,(M[F]=Object.assign({},R[F],(J[h]=a,J)),M))}; Udg=function(R,F){R=R===void 0?{}:R;switch(F.type){case "ENTITY_LOADED":return F.payload.reduce(function(a,J){var M,v=(M=J.options)==null?void 0:M.persistenceOption;if(v&&v!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&v!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return a;if(!J.entityKey)return g.y7(Error("Missing entity key")),a;if(J.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!J.payload)return J=new g.Pv("REPLACE entity mutation is missing a payload",{entityKey:J.entityKey}),g.y7(J),a;var I=g.vV(J.payload); return VQ(a,I,J.entityKey,J.payload[I])}if(J.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{J=J.entityKey;try{var w=g.lp(J).entityType;I=VQ(a,w,J);break a}catch(r){if(r instanceof Error){J=new g.Pv("Failed to deserialize entity key",{entityKey:J,originalMessage:r.message});g.y7(J);I=a;break a}throw r;}I=void 0}return I}if(J.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!J.payload)return J=new g.Pv("UPDATE entity mutation is missing a payload",{entityKey:J.entityKey}),g.y7(J),a;I=g.vV(J.payload);var E,B;return VlB(a, I,J.entityKey,J.payload[I],(E=J.fieldMask)==null?void 0:(B=E.mergeOptions)==null?void 0:B.repeatedFieldsMergeOption)}return a},R); case "REPLACE_ENTITY":var h=F.payload;return VQ(R,h.entityType,h.key,h.Qe);case "REPLACE_ENTITIES":return Object.keys(F.payload).reduce(function(a,J){var M=F.payload[J];return Object.keys(M).reduce(function(v,I){return VQ(v,J,I,M[I])},a)},R); case "UPDATE_ENTITY":return h=F.payload,VlB(R,h.entityType,h.key,h.Qe,h.Eeb);default:return R}}; Ua=function(R,F,h){return R[F]?R[F][h]||null:null}; CU=function(R){return window.Int32Array?new Int32Array(R):Array(R)}; Jb=function(R){g.d.call(this);this.counter=[0,0,0,0];this.D=new Uint8Array(16);this.B=16;if(!Cna){var F,h=new Uint8Array(256),a=new Uint8Array(256);var J=1;for(F=0;F<256;F++)h[J]=F,a[F]=J,J^=J<<1^(J>>7&&283);cD=new Uint8Array(256);WD=CU(256);RZ=CU(256);F3=CU(256);aZ=CU(256);for(var M=0;M<256;M++){J=M?a[255^h[M]]:0;J^=J<<1^J<<2^J<<3^J<<4;J=J&255^J>>>8^99;cD[M]=J;F=J<<1^(J>>7&&283);var v=F^J;WD[M]=F<<24|J<<16|J<<8|v;RZ[M]=v<<24|WD[M]>>>8;F3[M]=J<<24|RZ[M]>>>8;aZ[M]=J<<24|F3[M]>>>8}Cna=!0}J=CU(44);for(h= 0;h<4;h++)J[h]=R[4*h]<<24|R[4*h+1]<<16|R[4*h+2]<<8|R[4*h+3];for(a=1;h<44;h++)R=J[h-1],h%4||(R=(cD[R>>16&255]^a)<<24|cD[R>>8&255]<<16|cD[R&255]<<8|cD[R>>>24],a=a<<1^(a>>7&&283)),J[h]=J[h-4]^R;this.key=J}; Mu=function(R,F){for(var h=0;h<4;h++)R.counter[h]=F[h*4]<<24|F[h*4+1]<<16|F[h*4+2]<<8|F[h*4+3];R.B=16}; cq7=function(R){for(var F=R.key,h=R.counter[0]^F[0],a=R.counter[1]^F[1],J=R.counter[2]^F[2],M=R.counter[3]^F[3],v=3;v>=0&&!(R.counter[v]=-~R.counter[v]);v--);for(var I,w,E=4;E<40;)v=WD[h>>>24]^RZ[a>>16&255]^F3[J>>8&255]^aZ[M&255]^F[E++],I=WD[a>>>24]^RZ[J>>16&255]^F3[M>>8&255]^aZ[h&255]^F[E++],w=WD[J>>>24]^RZ[M>>16&255]^F3[h>>8&255]^aZ[a&255]^F[E++],M=WD[M>>>24]^RZ[h>>16&255]^F3[a>>8&255]^aZ[J&255]^F[E++],h=v,a=I,J=w;R=R.D;v=F[40];R[0]=cD[h>>>24]^v>>>24;R[1]=cD[a>>16&255]^v>>16&255;R[2]=cD[J>>8&255]^ v>>8&255;R[3]=cD[M&255]^v&255;v=F[41];R[4]=cD[a>>>24]^v>>>24;R[5]=cD[J>>16&255]^v>>16&255;R[6]=cD[M>>8&255]^v>>8&255;R[7]=cD[h&255]^v&255;v=F[42];R[8]=cD[J>>>24]^v>>>24;R[9]=cD[M>>16&255]^v>>16&255;R[10]=cD[h>>8&255]^v>>8&255;R[11]=cD[a&255]^v&255;v=F[43];R[12]=cD[M>>>24]^v>>>24;R[13]=cD[h>>16&255]^v>>16&255;R[14]=cD[a>>8&255]^v>>8&255;R[15]=cD[J&255]^v&255}; GS=function(){if(!ve&&!g.zC){if(gi)return gi;var R;gi=(R=window.crypto)==null?void 0:R.subtle;var F,h,a;if(((F=gi)==null?0:F.importKey)&&((h=gi)==null?0:h.sign)&&((a=gi)==null?0:a.encrypt))return gi;gi=void 0}}; g.IZ=function(R){this.D=R}; Wq7=function(R,F,h,a){var J,M;return g.u(function(v){switch(v.D){case 1:if(R.K){v.G$(2);break}return g.m(v,a.importKey("raw",R.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:R.K=v.B;case 2:return J={name:"AES-CTR",counter:h,length:128},g.m(v,a.encrypt(J,R.K,F),4);case 4:return M=v.B,v.return(new Uint8Array(M))}})}; RIO=function(R,F,h){R.B||(R.B=new Jb(R.D));Mu(R.B,h);return R.B.encrypt(F)}; g.iU=function(R){this.D=R}; wi=function(R){this.N=new Uint8Array(64);this.K=new Uint8Array(64);this.L=0;this.S=new Uint8Array(64);this.D=0;this.N.set(R);this.K.set(R);for(R=0;R<64;R++)this.N[R]^=92,this.K[R]^=54;this.reset()}; FT_=function(R,F,h){for(var a=R.Y,J=R.B[0],M=R.B[1],v=R.B[2],I=R.B[3],w=R.B[4],E=R.B[5],B=R.B[6],r=R.B[7],Y,p,k,H=0;H<64;)H<16?(a[H]=k=F[h]<<24|F[h+1]<<16|F[h+2]<<8|F[h+3],h+=4):(Y=a[H-2],p=a[H-15],k=a[H-7]+a[H-16]+((Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10)+((p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3),a[H]=k),Y=r+Ei[H]+k+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&E^~w&B),p=((J>>>2|J<<30)^(J>>>13|J<<19)^(J>>>22|J<<10))+(J&M^J&v^M&v),r=Y+p,I+=Y,H++,H<16?(a[H]=k=F[h]<<24|F[h+1]<<16|F[h+2]<<8|F[h+3],h+=4):(Y= a[H-2],p=a[H-15],k=a[H-7]+a[H-16]+((Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10)+((p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3),a[H]=k),Y=B+Ei[H]+k+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&w^~I&E),p=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&J^r&M^J&M),B=Y+p,v+=Y,H++,H<16?(a[H]=k=F[h]<<24|F[h+1]<<16|F[h+2]<<8|F[h+3],h+=4):(Y=a[H-2],p=a[H-15],k=a[H-7]+a[H-16]+((Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10)+((p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3),a[H]=k),Y=E+Ei[H]+k+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&I^ ~v&w),p=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&r^B&J^r&J),E=Y+p,M+=Y,H++,H<16?(a[H]=k=F[h]<<24|F[h+1]<<16|F[h+2]<<8|F[h+3],h+=4):(Y=a[H-2],p=a[H-15],k=a[H-7]+a[H-16]+((Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10)+((p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3),a[H]=k),Y=w+Ei[H]+k+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&v^~M&I),p=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&B^E&r^B&r),k=r,r=I,I=k,k=B,B=v,v=k,k=E,E=M,M=k,w=J+Y,J=Y+p,H++;R.B[0]=J+R.B[0]|0;R.B[1]=M+R.B[1]|0;R.B[2]=v+R.B[2]|0;R.B[3]= I+R.B[3]|0;R.B[4]=w+R.B[4]|0;R.B[5]=E+R.B[5]|0;R.B[6]=B+R.B[6]|0;R.B[7]=r+R.B[7]|0}; ajO=function(R){var F=new Uint8Array(32),h=64-R.D;R.D>55&&(h+=64);var a=new Uint8Array(h);a[0]=128;for(var J=R.L*8,M=1;M<9;M++){var v=J%256;a[h-M]=v;J=(J-v)/256}R.update(a);for(h=0;h<8;h++)F[h*4]=R.B[h]>>>24,F[h*4+1]=R.B[h]>>>16&255,F[h*4+2]=R.B[h]>>>8&255,F[h*4+3]=R.B[h]&255;hI7(R);return F}; hI7=function(R){R.B=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];R.Y=[];R.Y.length=64;R.L=0;R.D=0}; J_L=function(R){this.B=R}; M_m=function(R,F,h){R=new wi(R.B);R.update(F);R.update(h);F=ajO(R);R.update(R.N);R.update(F);F=ajO(R);R.reset();return F}; vGB=function(R){this.D=R}; gGL=function(R,F,h,a){var J,M,v;return g.u(function(I){switch(I.D){case 1:if(R.B){I.G$(2);break}return g.m(I,a.importKey("raw",R.D,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:R.B=I.B;case 2:return J=new Uint8Array(F.length+h.length),J.set(F),J.set(h,F.length),M={name:"HMAC",hash:"SHA-256"},g.m(I,a.sign(M,R.B,J),4);case 4:return v=I.B,I.return(new Uint8Array(v))}})}; GsB=function(R,F,h){R.K||(R.K=new J_L(R.D));return M_m(R.K,F,h)}; Ijf=function(R,F,h){var a,J;return g.u(function(M){if(M.D==1){a=GS();if(!a)return M.return(GsB(R,F,h));g.Hi(M,3);return g.m(M,gGL(R,F,h,a),5)}if(M.D!=3)return M.return(M.B);J=g.f_(M);g.qN(J);ve=!0;return M.return(GsB(R,F,h))})}; wOi=function(R){for(var F="",h=0;h=0||kR(R,0,"gad_source",R.search(Qg))>=0}; Qea=function(){this.B=new Map}; A_L=function(R,F){var h=q_().resolve($_O);if(ksa(F)){var a=AS(F,"gclid");F={handleEvent:function(I){R&&!R.closed&&typeof R.postMessage==="function"&&I&&I.origin&&I.source===R&&I.data&&I.data.action==="gcl_setup"&&R.postMessage(Object.assign({},{action:"gcl_transfer"},a&&{gclid:a},{gadSource:2}),I.origin)}}; for(var J=g.N(h.B),M=J.next();!M.done;M=J.next()){var v=g.N(M.value);M=v.next().value;v=v.next().value;if(M.closed)try{window.removeEventListener("message",v),h.B.delete(M)}catch(I){g.y7(I)}}R&&h.B.size<15&&(h.B.set(R,F),window.addEventListener("message",F))}}; Be=function(R,F,h){if(!F)return R.length>=1?R[R.length-1]:null;for(var a=g.N(R),J=a.next();!J.done;J=a.next())if(J=J.value,J.width&&J.height&&(h&&J.width>=F||!h&&J.height>=F))return J;for(F=R.length-1;F>=0;F--)if(h&&R[F].width||!h&&R[F].height)return R[F];return R[0]}; ri=function(){this.state=1;this.VK=null;this.OJ=void 0}; N_i=function(R,F,h,a,J,M){var v=v===void 0?"trayride":v;h?(R.wf(2),g.F5(h,function(){if(window[v])x_g(R,a,v,J);else{R.wf(3);var I=AiL(h),w=document.getElementById(I);w&&(QMB(I),w.parentNode.removeChild(w));g.qN(new g.Pv("BL:ULB",""+h))}},M)):F?(M=g.B4("SCRIPT"),F instanceof ph?(M.textContent=kN(F),QT(M)):M.textContent=F,M.nonce=sW(document),document.head.appendChild(M),document.head.removeChild(M),window[v]?x_g(R,a,v,J):(R.wf(4),g.qN(new g.Pv("BL:ULBJ")))):g.qN(new g.Pv("BL:ULV"))}; x_g=function(R,F,h,a){R.wf(5);var J=!!R.OJ&&HwI.includes(g.I8(R.OJ)||"");try{var M=new BY({program:F,globalName:h,sH:{disable:!g.pR("att_web_record_metrics")||!g.pR("att_skip_metrics_for_cookieless_domains_ks")&&J,H_:"aGIf"}});M.ZP.then(function(){R.wf(6);a&&a(F)}); R.I1(M)}catch(v){R.wf(7),v instanceof Error&&g.qN(v)}}; YH=function(){var R=g.hG("yt.abuse.playerAttLoader");return R&&["bgvma","bgvmb","bgvmc"].every(function(F){return F in R})?R:null}; si=function(){ri.apply(this,arguments)}; p6=function(){}; LTI=function(R,F,h){for(var a=!1,J=g.N(R.o3.entries()),M=J.next();!M.done;M=J.next())M=g.N(M.value).next().value,M.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M.Jb==="core"&&(a=!0);if(a){a:if(!h){R=g.N(R.o3.entries());for(h=R.next();!h.done;h=R.next())if(a=g.N(h.value),h=a.next().value,a=a.next().value,h.slotType==="SLOT_TYPE_IN_PLAYER"&&h.Jb==="core"){h=a.layoutId;break a}h=void 0}h?F.aJ(h):gf("No triggering layout ID available when attempting to mute.")}}; kH=function(R,F){this.hI=R;this.C7=F}; QP=function(){}; $H=function(){}; y_L=function(R){g.d.call(this);var F=this;this.yd=R;this.B=new Map;Ab(this,"commandExecutorCommand",function(h,a,J){T_g(F,h.commands,a,J)}); Ab(this,"clickTrackingParams",function(){})}; qY2=function(R,F){Ab(R,F.Ot(),function(h,a,J){F.Jl(h,a,J)})}; Ab=function(R,F,h){R.RR();R.B.get(F)&&g.y7(Error("Extension name "+F+" already registered"));R.B.set(F,h)}; T_g=function(R,F,h,a){F=F===void 0?[]:F;R.RR();var J=[],M=[];F=g.N(F);for(var v=F.next();!v.done;v=F.next())v=v.value,g.t(v,fji)||g.t(v,je7)?J.push(v):M.push(v);J=g.N(J);for(F=J.next();!F.done;F=J.next())xH(R,F.value,h,a);M=g.N(M);for(J=M.next();!J.done;J=M.next())xH(R,J.value,h,a)}; xH=function(R,F,h,a){R.RR();F.loggingUrls&&ZwI(R,"loggingUrls",F.loggingUrls,h,a);F=g.N(Object.entries(F));for(var J=F.next();!J.done;J=F.next()){var M=g.N(J.value);J=M.next().value;M=M.next().value;J==="openPopupAction"?R.yd.get().qs("innertubeCommand",{openPopupAction:M}):J==="confirmDialogEndpoint"?R.yd.get().qs("innertubeCommand",{confirmDialogEndpoint:M}):bwg.hasOwnProperty(J)||ZwI(R,J,M,h,a)}}; ZwI=function(R,F,h,a,J){if((R=R.B.get(F))&&typeof R==="function")try{R(h,a,J)}catch(M){g.y7(M)}else F=new g.Pv("Unhandled field",F),g.qN(F)}; Nu=function(R,F,h){this.Bf=R;this.B=F;this.cG=h;HO(q_(),{WS:$_O,Jg:Qea})}; He=function(R){this.value=R}; L6=function(R){this.value=R}; TS=function(R){this.value=R}; yP=function(R){this.value=R}; qu=function(R){this.value=R}; f6=function(R){this.value=R}; jT=function(R){this.value=R}; Zm=function(){He.apply(this,arguments)}; bU=function(R){this.value=R}; ST=function(R){this.value=R}; Oi=function(R){this.value=R}; mc=function(R){this.value=R}; oZ=function(R){this.value=R}; X3=function(R){this.value=R}; eT=function(R){this.value=R}; n6=function(R){this.value=R}; uU=function(R){this.value=R}; di=function(R){this.value=R}; Pe=function(){He.apply(this,arguments)}; zS=function(R){this.value=R}; K6=function(R){this.value=R}; tb=function(R){this.value=R}; lU=function(R){this.value=R}; Dm=function(R){this.value=R}; VP=function(R){this.value=R}; Ui=function(R){this.value=R}; C6=function(R){this.value=R}; ce=function(R){this.value=R}; We=function(R){this.value=R}; RO=function(R){this.value=R}; F6=function(R){this.value=R}; hA=function(R){this.value=R}; aO=function(R){this.value=R}; JA=function(R){this.value=R}; MZ=function(R){this.value=R}; v3=function(R){this.value=R}; gZ=function(R){this.value=R}; Gp=function(R){this.value=R}; IO=function(R){this.value=R}; wZ=function(R){this.value=R}; Eb=function(R){this.value=R}; B3=function(R){this.value=R}; rZ=function(R){this.value=R}; YP=function(R){this.value=R}; sb=function(R){this.value=R}; pf=function(R){this.value=R}; kP=function(R){this.value=R}; QX=function(R){this.value=R}; $P=function(R){this.value=R}; AA=function(R){this.value=R}; xP=function(R){this.value=R}; NZ=function(R){this.value=R}; H3=function(R){this.value=R}; Lf=function(R){this.value=R}; Tp=function(R){this.value=R}; yX=function(R){this.value=R}; qZ=function(R){this.value=R}; ff=function(){He.apply(this,arguments)}; j3=function(R){this.value=R}; Zv=function(){He.apply(this,arguments)}; bt=function(){He.apply(this,arguments)}; S3=function(){He.apply(this,arguments)}; Ob=function(){He.apply(this,arguments)}; mx=function(){He.apply(this,arguments)}; oO=function(R){this.value=R}; X6=function(R){this.value=R}; e3=function(R){this.value=R}; nf=function(R){this.value=R}; ut=function(R){this.value=R}; P3=function(R,F,h){if(h&&!h.includes(R.layoutType))return!1;F=g.N(F);for(h=F.next();!h.done;h=F.next())if(!dZ(R.clientMetadata,h.value))return!1;return!0}; zp=function(){return""}; SYm=function(R,F){switch(R){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 F(R),8}}; Kf=function(R,F,h,a){a=a===void 0?!1:a;r7.call(this,R);this.ib=h;this.If=a;this.args=[];F&&this.args.push(F)}; C=function(R,F,h,a){a=a===void 0?!1:a;r7.call(this,R);this.ib=h;this.If=a;this.args=[];F&&this.args.push(F)}; tA=function(R){var F=new Map;R.forEach(function(h){F.set(h.B(),h)}); this.B=F}; dZ=function(R,F){return R.B.has(F)}; lt=function(R,F){R=R.B.get(F);if(R!==void 0)return R.get()}; Dv=function(R){return Array.from(R.B.keys())}; VX=function(R,F,h){if(h&&h!==R.slotType)return!1;F=g.N(F);for(h=F.next();!h.done;h=F.next())if(!dZ(R.clientMetadata,h.value))return!1;return!0}; m_f=function(R){var F;return((F=OwL.get(R))==null?void 0:F.aU)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Cf=function(R,F){var h={type:F.slotType,controlFlowManagerLayer:oGm.get(F.Jb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F.slotEntryTrigger&&(h.entryTriggerType=F.slotEntryTrigger.triggerType);F.slotPhysicalPosition!==1&&(h.slotPhysicalPosition=F.slotPhysicalPosition);if(R){h.debugData={slotId:F.slotId};if(R=F.slotEntryTrigger)h.debugData.slotEntryTriggerData=Ub(R);R=F.slotFulfillmentTriggers;h.debugData.fulfillmentTriggerData=[];R=g.N(R);for(var a=R.next();!a.done;a=R.next())h.debugData.fulfillmentTriggerData.push(Ub(a.value)); F=F.slotExpirationTriggers;h.debugData.expirationTriggerData=[];F=g.N(F);for(R=F.next();!R.done;R=F.next())h.debugData.expirationTriggerData.push(Ub(R.value))}return h}; XOI=function(R,F){var h={type:F.layoutType,controlFlowManagerLayer:oGm.get(F.Jb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R&&(h.debugData={layoutId:F.layoutId});return h}; Ub=function(R,F){var h={type:R.triggerType};F!=null&&(h.category=F);R.triggeringSlotId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedSlotId=R.triggeringSlotId);R.triggeringLayoutId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedLayoutId=R.triggeringLayoutId);return h}; eI_=function(R,F,h,a){F={opportunityType:F};R&&(a||h)&&(a=g.p1(a||[],function(J){return Cf(R,J)}),F.debugData=Object.assign({},h&&h.length>0?{associatedSlotId:h}:{},a.length>0?{slots:a}:{})); return F}; W3=function(R,F){return function(h){return nG2(c3(R),F.slotId,F.slotType,F.slotPhysicalPosition,F.Jb,F.slotEntryTrigger,F.slotFulfillmentTriggers,F.slotExpirationTriggers,h.layoutId,h.layoutType,h.Jb)}}; nG2=function(R,F,h,a,J,M,v,I,w,E,B){return{adClientDataEntry:{slotData:Cf(R,{slotId:F,slotType:h,slotPhysicalPosition:a,Jb:J,slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:I,clientMetadata:new tA([])}),layoutData:XOI(R,{layoutId:w,layoutType:E,Jb:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Df:new Map,clientMetadata:new tA([]),kH:{}})}}}; Ft=function(R){this.pI=R;R=Math.random();var F=this.pI.get();F=g.RI(F.U.W().experiments,"html5_debug_data_log_probability");F=Number.isFinite(F)&&F>=0&&F<=1?F:0;this.B=R1){g.qN(new g.Pv("Exit already started",{current:R.currentState}));var h=!1}else h=!0;if(!h)return!1;R.currentState=2;R.B=F;return!0}; MQ=function(R){if(R.currentState!==2)return!1;R.currentState=3;return!0}; s7L=function(R,F){var h=new Map;R=g.N(R);for(var a=R.next();!a.done;a=R.next()){a=a.value;if(a.layoutType==="LAYOUT_TYPE_MEDIA")var J="v";else a.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(J=lt(a.clientMetadata,"metadata_type_linked_in_player_layout_type"),J=J==="LAYOUT_TYPE_ENDCAP"||J==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":J==="LAYOUT_TYPE_SURVEY"?"s":J==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):J="u";h.set(a.layoutId,J);if(J==="u"){var M={};J=F;a=(M.c=a.layoutId,M);J.U.dA("uct",a)}}R= F.G5();vz={contentCpn:R,m4:h};a={};h=(a.ct=h.size,a.c=R,a);F.U.dA("acc",h)}; pxa=function(){vz={contentCpn:"",m4:new Map}}; ge=function(R){var F;return(F=vz.m4.get(R))!=null?F:"u"}; Gm=function(R,F,h){R.U.dA(F,h);kAL(R)}; Q7L=function(R){var F=R.layoutId,h=R.F6;if(R.Ha){var a={};Gm(R.Bf,"slso",(a.ec=F,a.is=h,a.ctp=ge(F),a))}}; Ik=function(R){var F=R.layoutId,h=R.F6;if(R.Ha){var a={};Gm(R.Bf,"slse",(a.ec=F,a.is=h,a.ctp=ge(F),a))}}; $FL=function(R){var F=R.layoutId,h=R.F6,a=R.Bf;R.Ha&&(R={},Gm(a,"sleo",(R.xc=F,R.is=h,R.ctp=ge(F),R)),kAL(a))}; A0n=function(R){var F=R.cpn,h=R.Bf;R=R.F6;var a=h.G5(),J={};Gm(h,"ce",(J.ec=F,J.ia=F!==a,J.r=vz.m4.has(F),J.is=R,J.ctp=ge(F),J))}; kAL=function(R){if(R.G5()!==vz.contentCpn){var F={};F=(F.c=vz.contentCpn,F);R.U.dA("ccm",F)}}; xF7=function(R){var F=R.cpn,h=R.Bf;R=R.F6;var a=h.G5(),J={};Gm(h,"cx",(J.xc=F,J.ia=F!==a,J.r=vz.m4.has(F),J.is=R,J.ctp=ge(F),J))}; NYL=function(R){this.params=R;this.B=new Set}; HBm=function(R,F,h){if(!R.B.has(F)){R.B.add(F);var a={};R.params.yz.z$(F,Object.assign({},h,(a.p_ac=R.params.adCpn,a.p_isv=R.params.Ay&&R.params.In,a)))}}; we=function(R,F,h){if(iW(R.params.yz.pI.get(),!0)){var a=h.flush,J={};HBm(R,F,(J.cts=h.currentTimeSec,J.f=a,J))}}; LUL=function(R,F){this.Bf=R;this.pI=F}; ES=function(R){var F=[];if(R){R=g.N(Object.entries(R));for(var h=R.next();!h.done;h=R.next()){var a=g.N(h.value);h=a.next().value;a=a.next().value;a!==void 0&&(a=typeof a==="boolean"?""+ +a:(""+a).replace(/[:,=]/g,"_"),F.push(h+"."+a))}}return F.join(";")}; g.Bz=function(R,F,h){F=F===void 0?{}:F;this.errorCode=R;this.details=F;this.severity=h===void 0?0:h}; re=function(R){return R===1||R===2}; YK=function(R,F){F=F===void 0?0:F;if(R instanceof g.Bz)return R;R=R&&R instanceof Error?R:Error(""+R);re(F)?g.y7(R):g.qN(R);return new g.Bz(F===1?"player.fatalexception":"player.exception",{name:""+R.name,message:""+R.message},F)}; TYf=function(R,F){function h(){var a=g.u7.apply(0,arguments);R.removeEventListener("playing",h);F.apply(null,g.S(a))} R.addEventListener("playing",h)}; sS=function(){var R=g.hG("yt.player.utils.videoElement_");R||(R=g.B4("VIDEO"),g.Fk("yt.player.utils.videoElement_",R));return R}; p7=function(R){var F=sS();return!!(F&&F.canPlayType&&F.canPlayType(R))}; Qp=function(R){if(/opus/.test(R)&&g.kK&&!NE("38")&&!g.db())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(R);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(R);if(/webm/.test(R)&&!Qji())return!1;R==='audio/mp4; codecs="mp4a.40.2"'&&(R='video/mp4; codecs="avc1.4d401f"');return!!p7(R)}; y0i=function(R){try{var F=Qp('video/mp4; codecs="avc1.42001E"')||Qp('video/webm; codecs="vp9"');return(Qp('audio/mp4; codecs="mp4a.40.2"')||Qp('audio/webm; codecs="opus"'))&&(F||!R)||p7('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(h){return"html5.missingapi"}}; $K=function(){var R=sS();return!(!R.webkitSupportsPresentationMode||typeof R.webkitSetPresentationMode!=="function")}; AH=function(){var R=sS();try{var F=R.muted;R.muted=!F;return R.muted!==F}catch(h){}return!1}; qji=function(){var R;return((R=navigator.connection)==null?void 0:R.type)||""}; g.xK=function(){Hv.apply(this,arguments)}; NQ=function(R,F,h,a,J,M,v,I){this.sampleRate=R===void 0?0:R;this.numChannels=F===void 0?0:F;this.spatialAudioType=h===void 0?"SPATIAL_AUDIO_TYPE_NONE":h;this.B=a===void 0?!1:a;this.K=J;this.L=M;this.audioQuality=v===void 0?"AUDIO_QUALITY_UNKNOWN":v;this.D=I===void 0?!1:I}; Tm=function(R,F,h,a,J,M,v,I,w){this.width=R;this.height=F;this.quality=M||Hz(R,F);this.qualityOrdinal=g.L7[this.quality];this.fps=h||0;this.stereoLayout=!J||a!=null&&a!=="UNKNOWN"&&a!=="RECTANGULAR"?0:J;this.projectionType=a?a==="EQUIRECTANGULAR"&&J===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":a:"UNKNOWN";(R=v)||(R=g.L7[this.quality],R===0?R="Autom\u00e1tica":(F=this.fps,h=this.projectionType,R=R.toString()+(h==="EQUIRECTANGULAR"||h==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||h==="MESH"?"s":"p")+(F>55?"60": F>49?"50":F>39?"48":"")));this.qualityLabel=R;this.B=I||"";this.primaries=w||""}; Hz=function(R,F){var h=Math.max(R,F);R=Math.min(R,F);F=yp[0];for(var a=0;a=Math.floor(M*16/9)*1.3||R>=M*1.3)return F;F=J}return"tiny"}; jf=function(R,F,h){h=h===void 0?{}:h;this.id=R;this.mimeType=F;h.CI>0||(h.CI=16E3);Object.assign(this,h);R=g.N(this.id.split(";"));this.itag=R.next().value;this.B=R.next().value;this.containerType=qQ(F);this.Qt=f7[this.itag]||""}; ZK=function(R){return R.Qt==="9"||R.Qt==="("||R.Qt==="9h"||R.Qt==="(h"}; f6i=function(R){return R.Qt==="H"||R.Qt==="h"}; bW=function(R){return R.Qt==="9h"||R.Qt==="(h"}; j7n=function(R){return!!R.qH&&!!R.qH.fairplay&&(R.Qt==="("||R.Qt==="(h"||R.Qt==="A"||R.Qt==="MEAC3")||Sf&&!!R.qH&&R.Qt==="1e"}; OS=function(R){return R.Qt==="1"||R.Qt==="1h"||Sf&&R.Qt==="1e"}; ma=function(R){return R.Qt==="mac3"||R.Qt==="meac3"||R.Qt==="m"||R.Qt==="i"}; ok=function(R){return R.Qt==="MAC3"||R.Qt==="MEAC3"||R.Qt==="M"||R.Qt==="I"}; g.XI=function(R){return R.containerType===1}; ZBn=function(R){return R.Qt==="("||R.Qt==="(h"||R.Qt==="H"||Sf&&R.Qt==="1e"}; ef=function(R){return R.mimeType==="application/x-mpegURL"}; g.n7=function(R,F){return{itag:+R.itag,lmt:F?0:R.lastModified,xtags:R.B||""}}; bB7=function(R){var F=navigator.mediaCapabilities;if(F==null||!F.decodingInfo||R.Qt==="f")return Promise.resolve();var h={type:R.audio&&R.video?"file":"media-source"};R.video&&(h.video={contentType:R.mimeType,width:R.video.width||640,height:R.video.height||360,bitrate:R.CI*8||1E6,framerate:R.video.fps||30});R.audio&&(h.audio={contentType:R.mimeType,channels:""+(R.audio.numChannels||2),bitrate:R.CI*8||128E3,samplerate:R.audio.sampleRate||44100});return F.decodingInfo(h).then(function(a){R.D=a})}; uW=function(R){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(R)}; de=function(R){return/(vp9|vp09|vp8|avc1|av01)/.test(R)}; Pz=function(R){return R.includes("vtt")||R.includes("text/mp4")}; qQ=function(R){return R.indexOf("/mp4")>=0?1:R.indexOf("/webm")>=0?2:R.indexOf("/x-flv")>=0?3:R.indexOf("/vtt")>=0?4:0}; zm=function(R,F,h,a,J,M){var v=new NQ;F in g.L7||(F="small");F==="light"&&(F="tiny");a&&J?(J=Number(J),a=Number(a)):(J=g.L7[F],a=Math.round(J*16/9));M=new Tm(a,J,0,null,void 0,F,M);R=unescape(R.replace(/"/g,'"'));return new jf(h,R,{audio:v,video:M})}; K7=function(R){var F="id="+R.id;R.video&&(F+=", res="+R.video.qualityLabel);var h,a;return F+", byterate=("+((h=R.Fl)==null?void 0:h.toFixed(0))+", "+((a=R.CI)==null?void 0:a.toFixed(0))+")"}; lW=function(R,F){return{start:function(h){return R[h]}, end:function(h){return F[h]}, length:R.length}}; SjB=function(R,F,h){for(var a=[],J=[],M=0;M=F)return h}catch(a){}return-1}; US=function(R,F){return Vp(R,F)>=0}; OBO=function(R,F){if(!R)return NaN;F=Vp(R,F);return F>=0?R.start(F):NaN}; C7=function(R,F){if(!R)return NaN;F=Vp(R,F);return F>=0?R.end(F):NaN}; cz=function(R){return R&&R.length?R.end(R.length-1):NaN}; Wz=function(R){return cz(R)>0}; Ry=function(R,F){R=C7(R,F);return R>=0?R-F:0}; Fx=function(R,F,h){for(var a=[],J=[],M=0;Mh||(a.push(Math.max(F,R.start(M))-F),J.push(Math.min(h,R.end(M))-F));return lW(a,J)}; ha=function(R,F,h,a){g.h0.call(this);var J=this;this.CV=R;this.start=F;this.end=h;this.isActive=a;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.TP={error:function(){!J.RR()&&J.isActive&&J.publish("error",J)}, updateend:function(){!J.RR()&&J.isActive&&J.publish("updateend",J)}}; this.CV.Fc(this.TP);this.hs=this.isActive}; Ja=function(R,F,h,a,J,M){g.h0.call(this);var v=this;this.XW=R;this.MF=F;this.id=h;this.containerType=a;this.Qt=J;this.In=M;this.ez=this.ZS=this.n_=null;this.z6=!1;this.appendWindowStart=this.timestampOffset=0;this.C8=lW([],[]);this.EQ=!1;this.Is=[];this.CF=ay?[]:void 0;this.nV=function(w){return v.publish(w.type,v)}; var I;if((I=this.XW)==null?0:I.addEventListener)this.XW.addEventListener("updateend",this.nV),this.XW.addEventListener("error",this.nV)}; M8=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; v1=function(R,F){this.UP=R;this.B=F===void 0?!1:F;this.D=!1}; gh=function(R,F,h){h=h===void 0?!1:h;g.d.call(this);this.mediaElement=R;this.Yo=F;this.isView=h;this.S=0;this.L=!1;this.N=!0;this.C=0;this.callback=null;this.Z=!1;this.Yo||(this.MF=this.mediaElement.G_());this.events=new g.xK(this);g.z(this,this.events);this.K=new v1(this.Yo?window.URL.createObjectURL(this.Yo):this.MF.webkitMediaSourceURL,!0);R=this.Yo||this.MF;Ln(this.events,R,["sourceopen","webkitsourceopen"],this.z3I);Ln(this.events,R,["sourceclose","webkitsourceclose"],this.nmo);this.Y={updateend:this.Ql}}; mFL=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; osf=function(R,F){G7(R)?g.T3(function(){F(R)}):R.callback=F}; Xx_=function(R,F,h){if(Iy){var a;iA(R.mediaElement,{l:"mswssb",sr:(a=R.mediaElement.BG)==null?void 0:a.BV()},!1);F.Fc(R.Y,R);h.Fc(R.Y,R)}R.B=F;R.D=h;g.z(R,F);g.z(R,h)}; wh=function(R){return!!R.B||!!R.D}; G7=function(R){try{return Ec(R)==="open"}catch(F){return!1}}; Ec=function(R){if(R.Yo)return R.Yo.readyState;switch(R.MF.webkitSourceState){case R.MF.SOURCE_OPEN:return"open";case R.MF.SOURCE_ENDED:return"ended";default:return"closed"}}; B1=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; eWm=function(R){G7(R)&&(R.Yo?R.Yo.endOfStream():R.MF.webkitSourceEndOfStream(R.MF.EOS_NO_ERROR))}; nsI=function(R,F,h,a){if(!R.B||!R.D)return null;var J=R.B.isView()?R.B.CV:R.B,M=R.D.isView()?R.D.CV:R.D,v=new gh(R.mediaElement,R.Yo,!0);v.K=R.K;Xx_(v,new ha(J,F,h,a),new ha(M,F,h,a));G7(R)||R.B.Ea(R.B.wW());return v}; uuI=function(R){var F;(F=R.B)==null||F.Ww();var h;(h=R.D)==null||h.Ww();R.N=!1}; rh=function(){var R=this;this.H2=this.V7=$aL;this.promise=new g.qW(function(F,h){R.V7=F;R.H2=h})}; Yu=function(){g.d.call(this);this.qD=!1;this.UP=null;this.Y=this.S=!1;this.L=new g.EL;this.BG=null;g.z(this,this.L)}; sc=function(R){R=R.MO();return R.length<1?NaN:R.end(R.length-1)}; dFn=function(R){!R.D&&mFL()&&(R.K?R.K.then(function(){return dFn(R)}):R.ut()||(R.D=R.s0()))}; PQL=function(R){R.D&&(R.D.dispose(),R.D=void 0)}; iA=function(R,F,h){var a;((a=R.BG)==null?0:a.Po())&&R.BG.dA("rms",F,h===void 0?!1:h)}; zWT=function(R,F,h){R.isPaused()||R.getCurrentTime()>F||h>10||(R.play(),g.Eg(function(){zWT(R,R.getCurrentTime(),h+1)},500))}; KUg=function(R,F){R.UP&&R.UP.equals(F)||(R.UP&&R.UP.dispose(),R.UP=F)}; pv=function(R){return Ry(R.Ft(),R.getCurrentTime())}; ti2=function(R,F){if(R.aH()===0||R.hasError())return!1;var h=R.getCurrentTime()>0;return F>=0&&(R=R.MO(),R.length||!h)?US(R,F):h}; ku=function(R){R.ut()&&(R.BG&&R.BG.Vb("rs_s"),PR&&R.getCurrentTime()>0&&R.seekTo(0),R.kG(),R.load(),KUg(R,null));delete R.K}; QY=function(R){switch(R.JG()){case 2:return"progressive.net.retryexhausted";case 3:return R=R.pK(),(R==null?0:R.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||l6g&&(R==null?0:R.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.$u=function(R,F,h){this.wL=F===void 0?null:F;this.seekSource=h===void 0?null:h;this.state=R||64}; Aa=function(R,F,h){h=h===void 0?!1:h;return DF7(R,F.getCurrentTime(),(0,g.NU)(),pv(F),h)}; xu=function(R,F,h,a){if(!(F===R.state&&h===R.wL&&a===R.seekSource||F!==void 0&&(F&128&&!h||F&2&&F&16))){var J;if(J=F)J=F||R.state,J=!!(J&16||J&32);R=new g.$u(F,h,J?a?a:R.seekSource:null)}return R}; N8=function(R,F,h){return xu(R,R.state|F,null,h===void 0?null:h)}; H1=function(R,F){return xu(R,R.state&~F,null,null)}; Lv=function(R,F,h,a){return xu(R,(R.state|F)&~h,null,a===void 0?null:a)}; g.V=function(R,F){return!!(R.state&F)}; g.T7=function(R,F){return F.state===R.state&&F.wL===R.wL}; yY=function(R){return R.isPlaying()&&!g.V(R,16)&&!g.V(R,32)}; q8=function(R){return g.V(R,128)?-1:g.V(R,2)?0:g.V(R,2048)?3:g.V(R,64)?-1:g.V(R,1)&&!g.V(R,32)?3:g.V(R,8)?1:g.V(R,4)?2:-1}; jS=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H,T){g.d.call(this);var Z=this;this.LY=R;this.slot=F;this.layout=h;this.cG=a;this.KO=J;this.qQ=M;this.rA=v;this.fV=I;this.OP=w;this.gT=E;this.position=r;this.S=Y;this.pI=p;this.Q1=k;this.bT=H;this.context=T;this.j5=!0;this.N=!1;this.QY="not_rendering";this.D=!1;this.K=new ak;R=lt(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Zn=new rW(h.Df,this.cG,R,h.layoutId);var b;R=((b=fv(this))==null?void 0:b.progressCommands)||[];this.L=new lii(w, R,h.layoutId,function(){return Z.vu()}); this.B=new NYL({adCpn:this.layout.layoutId,yz:T.yz,Ay:this.Q1,In:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; ZF=function(R){return{layoutId:R.RA(),F6:R.Q1,Bf:R.qQ.get(),Ha:R.r$()}}; bA=function(R,F){return F.layoutId!==R.layout.layoutId?(R.LY.C_(R.slot,F,new Kf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+R.layout.layoutId+("and LayoutType: "+R.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; SS=function(R){R.QY="rendering_start_requested";R.gT(-1)}; fv=function(R){return lt(R.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; ViI=function(R){gf("Received layout exit signal when not in layout exit flow.",R.slot,R.layout)}; UFi=function(R){var F;return((F=Oc(R.qQ.get(),2))==null?void 0:F.clientPlaybackNonce)||""}; mj=function(R,F){switch(F){case "normal":R.bY("complete");break;case "skipped":R.bY("skip");break;case "abandoned":$_(R.Zn,"impression")&&R.bY("abandon")}}; oy=function(R,F){R.N||(F=new g.G2(F.state,new g.$u),R.N=!0);return F}; Xx=function(R,F){WQ(F)?R.gT(1):g.i5(F,4)&&!g.i5(F,2)&&R.GS();IK(F,4)<0&&!(IK(F,2)<0)&&R.Up()}; CQg=function(R){R.position===0&&(R.fV.get(),R=lt(R.layout.clientMetadata,"metadata_type_ad_placement_config").kind,R={adBreakType:eS(R)},Hf("ad_bl"),g.L4(R))}; nv=function(R,F){k_(R.Zn,F,!R.D)}; WUi=function(R){var F;return(((F=fv(R))==null?void 0:F.progressCommands)||[]).findIndex(function(h){return!!g.t(h==null?void 0:h.command,c0I)})!==-1}; uA=function(R,F){var h=lt(R.clientMetadata,"metadata_type_eligible_for_ssap");return h===void 0?(gf("Expected SSAP eligibility in PlayerBytes factory",R),!1):F.r$(h)}; dh=function(R,F){if(!oI(F.get(),"html5_ssap_pass_transition_reason"))return 3;switch(R){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return gf("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return gf("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:R}),3;default:wU(R,"unknown layoutExitReason")}}; R1i=function(R){gf("getExitReason: unexpected reason",void 0,void 0,{reason:R})}; P1=function(R,F){if(oI(F.get(),"html5_ssap_pass_transition_reason"))switch(R){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return R1i(R),"abandoned";case 3:case 1:return R1i(R),"error";default:wU(R,"unexpected transition reason")}else switch(R){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return gf("getExitReason: unexpected reason",void 0,void 0,{reason:R}),"error";default:wU(R,"unexpected transition reason")}}; g.z7=function(R,F,h){yh(R,h)||f4(R,F,h);yh(R,"video_to_ad")||f4(R,F,"video_to_ad");yh(R,"ad_to_video")||f4(R,F,"ad_to_video");yh(R,"ad_to_ad")||f4(R,F,"ad_to_ad")}; Kv=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H,T,Z){jS.call(this,R,F,h,a,J,M,v,I,E,B,r,Y,p,k,H,T,Z);var b=this;this.yd=w;this.CY=r;this.wz=!0;this.uo=this.d4=0;this.Bk=O$(function(){Q7L(ZF(b));b.LY.xH(b.slot,b.layout)}); this.Gk=O$(function(){$FL(ZF(b));b.QY!=="rendering_stop_requested"&&b.CY(b);b.layoutExitReason?b.LY.mz(b.slot,b.layout,b.layoutExitReason):ViI(b)}); this.timer=new g.m7(200);this.timer.listen("tick",function(){b.Na()}); g.z(this,this.timer)}; lA=function(R){R.uo=Date.now();ta(R,R.d4);R.timer.start()}; F5f=function(R){R.d4=R.vu();R.iL(R.d4/1E3,!0);ta(R,R.d4)}; ta=function(R,F){F={current:F/1E3,duration:R.vu()/1E3};R.yd.get().qs("onAdPlaybackProgress",F)}; DF=function(R){Kv.call(this,R.LY,R.slot,R.Rg,R.cG,R.KO,R.qQ,R.rA,R.fV,R.yd,R.OP,R.gT,R.CY,R.Ze,R.GU,R.pI,R.Q1,R.bT,R.context)}; VY=function(R){Kv.call(this,R.LY,R.slot,R.Rg,R.cG,R.KO,R.qQ,R.rA,R.fV,R.yd,R.OP,R.gT,R.CY,R.Ze,R.GU,R.pI,R.Q1,R.bT,R.context)}; Uc=function(){VY.apply(this,arguments)}; h17=function(R){return uA(R.slot,R.pI.get())?new Uc(R):new DF(R)}; W1=function(R){jS.call(this,R.callback,R.slot,R.Rg,R.cG,R.KO,R.qQ,R.rA,R.fV,R.OP,R.gT,R.CY,R.Ze,R.GU,R.pI,R.Q1,R.bT,R.context);var F=this;this.adCpn="";this.Rm=this.R_=0;this.Bk=O$(function(){Q7L(ZF(F));F.LY.xH(F.slot,F.layout)}); this.Gk=O$(function(){$FL(ZF(F));F.QY!=="rendering_stop_requested"&&F.CY(F);F.layoutExitReason?F.LY.mz(F.slot,F.layout,F.layoutExitReason):ViI(F)}); this.WJ=R.WJ;this.i$=R.i$;this.pV=R.pV;this.yd=R.yd;this.l0=R.l0;this.CY=R.CY;if(!this.r$()){oI(this.pI.get(),"html5_disable_media_load_timeout")||(this.iG=new g.DY(function(){F.kN("load_timeout",new Kf("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); R=Cv(this.pI.get());var h=c1(this.pI.get());R&&h&&(this.rh=new g.DY(function(){var a=lt(F.layout.clientMetadata,"metadata_type_preload_player_vars");a&&F.i$.get().U.preloadVideoByPlayerVars(a,2,300)}))}}; JFi=function(R,F){var h=lt(F.clientMetadata,"metadata_type_ad_video_id"),a=lt(F.clientMetadata,"metadata_type_legacy_info_card_vast_extension");h&&a&&R.l0.get().U.W().Sl.add(h,{xk:a});(F=lt(F.clientMetadata,"metadata_type_sodar_extension_data"))&&M22(R.WJ.get(),F);aJm(R.rA.get(),!1)}; Mji=function(R){aJm(R.rA.get(),!0);var F;((F=R.shrunkenPlayerBytesConfig)==null?0:F.shouldRequestShrunkenPlayerBytes)&&R.rA.get().g5(!1)}; vr2=function(R){return new RU(R)}; F2=function(){W1.apply(this,arguments)}; RU=function(){F2.apply(this,arguments)}; grg=function(R){return h17(Object.assign({},R,{LY:R.callback,gT:function(){}}))}; G2T=function(R){return new W1(Object.assign({},R,{gT:function(F){R.yd.get().qs("onAdIntroStateChange",F)}}))}; IJB=function(R){function F(h){R.yd.get().a7(h)} return uA(R.slot,R.pI.get())?vr2(Object.assign({},R,{gT:F})):new W1(Object.assign({},R,{gT:F}))}; ho=function(R){for(var F=R.Rg,h=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],a=g.N(Y_()),J=a.next();!J.done;J=a.next())h.push(J.value);if(Xe(F,{u9:h,jI:["LAYOUT_TYPE_MEDIA_BREAK"]}))return grg(R);F=R.Rg;h=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];a=g.N(Y_());for(J=a.next();!J.done;J=a.next())h.push(J.value);if(Xe(F,{u9:h,jI:["LAYOUT_TYPE_MEDIA"]}))return dZ(R.Rg.clientMetadata,"metadata_type_ad_intro")?G2T(R):IJB(R)}; wM2=function(R){var F=lt(R.clientMetadata,"metadata_type_ad_placement_config").kind,h=lt(R.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:R.layoutId,adType:iP2(h),adBreakType:eS(F)}}; eS=function(R){switch(R){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"}}; iP2=function(R){switch(R){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Erf=function(R){try{return new aU(R.hF,R.slot,R.layout,R.MH,R.Us,R.qQ,R.Ei,R.i$,R.u$,R.rA,R.mxt,R)}catch(F){}}; aU=function(R,F,h,a,J,M,v,I,w,E,B,r){g.d.call(this);this.hF=R;this.slot=F;this.layout=h;this.MH=a;this.Us=J;this.qQ=M;this.Ei=v;this.i$=I;this.u$=w;this.rA=E;this.params=r;this.j5=!0;R=ho(B);if(!R)throw Error("Invalid params for sublayout");this.IT=R}; BfL=function(){this.B=1;this.D=new ak}; Jo=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p){g.d.call(this);this.callback=R;this.qQ=F;this.Ei=h;this.i$=a;this.rA=J;this.cf=M;this.fV=v;this.mZ=I;this.slot=w;this.layout=E;this.MH=B;this.Xx=r;this.u$=Y;this.pI=p;this.j5=!0;this.Xq=!1;this.yH=[];this.Q$=-1;this.XG=!1;this.oy=new BfL}; rF_=function(R){var F;return(F=R.layout.yQ)!=null?F:lt(R.layout.clientMetadata,"metadata_type_sub_layouts")}; Mi=function(R){return{Bf:R.qQ.get(),F6:!1,Ha:R.r$()}}; YxL=function(R,F,h){if(R.fS()===R.yH.length-1){var a,J;gf("Unexpected skip requested during the last sublayout",(a=R.Vs())==null?void 0:a.T_(),(J=R.Vs())==null?void 0:J.wA(),{requestingSlot:F,requestingLayout:h})}}; sKf=function(R,F,h){return h.layoutId!==vT(R,F,h)?(gf("onSkipRequested for a PlayerBytes layout that is not currently active",R.T_(),R.wA()),!1):!0}; pM7=function(R){R.fS()===R.yH.length-1&&gf("Unexpected skip with target requested during the last sublayout")}; k2m=function(R,F,h){return h.renderingContent===void 0&&h.layoutId!==vT(R,F,h)?(gf("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",R.T_(),R.wA(),{requestingSlot:F,requestingLayout:h}),!1):!0}; QK7=function(R,F,h,a){var J=lt(F.wA().clientMetadata,"metadata_type_ad_pod_skip_target");if(J&&J>0&&J0)){gf("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",R.slot,R.layout,{indexToPlay:F,layoutId:R.layout.layoutId});break a}R.Q$=F;F=R.Vs();if(R.fS()>0&&!R.r$()){var h=R.fV.get();h.D=!1;var a={};h.B&&h.videoId&&(a.cttAuthInfo={token:h.B,videoId:h.videoId});TQ("ad_to_ad",a)}R.dI(F)}}; id=function(R){Jo.call(this,R.hF,R.qQ,R.Ei,R.i$,R.rA,R.cf,R.fV,R.mZ,R.slot,R.layout,R.MH,R.Xx,R.u$,R.pI)}; xvB=function(R){(R=R.Vs())&&R.hQ()}; wv=function(R){Jo.call(this,R.hF,R.qQ,R.Ei,R.i$,R.rA,R.cf,R.fV,R.mZ,R.slot,R.layout,R.MH,R.Xx,R.u$,R.pI);this.cJ=void 0}; Nff=function(R,F){R.bV()&&!MQ(R.oy.D)||R.callback.mz(R.slot,R.layout,F)}; E5=function(R){return oI(R.pI.get(),"html5_ssap_pass_transition_reason")}; HPI=function(R,F,h){F.l8().currentState<2&&(h=P1(h,R.pI),F.Qd(F.wA(),h));h=F.l8().B;R.cC(R.slot,F.wA(),h)}; L52=function(R,F){if(R.oy.D.currentState<2){var h=P1(F,R.pI);h==="error"?R.callback.C_(R.slot,R.layout,new Kf("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:F},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):IU(R.Xx,R.layout,h)}}; BT=function(R,F,h){F.l8().currentState>=2||(F.Qd(F.wA(),h),MQ(F.l8())&&(pI(R.mZ,R.slot,F.wA(),h),R.cJ=void 0))}; Tfg=function(R,F){R.oy.B===2&&F!==R.G5()&&gf("onClipEntered: unknown cpn",R.slot,R.layout,{cpn:F})}; yFi=function(R,F){var h=R.Vs();if(h){var a=h.wA().layoutId,J=R.fS()+1;R.bV()?BT(R,h,F):h.Qd(h.wA(),F);J>=0&&JJ&&v.rN(B,J-a);return B}; orL=function(R,F,h){var a=lt(F.clientMetadata,"metadata_type_sodar_extension_data");if(a)try{M22(h,a)}catch(J){gf("Unexpected error when loading Sodar",R,F,{error:J})}}; XMf=function(R,F,h,a,J,M,v){$1(R,F,new g.G2(h,new g.$u),a,J,v,!1,M)}; $1=function(R,F,h,a,J,M,v,I){v=v===void 0?!0:v;WQ(h)&&Rk(J,0,null)&&(!$_(R,"impression")&&I&&I(),R.bY("impression"));$_(R,"impression")&&(g.i5(h,4)&&!g.i5(h,2)&&R.FJ("pause"),IK(h,4)<0&&!(IK(h,2)<0)&&R.FJ("resume"),g.i5(h,16)&&J>=.5&&R.FJ("seek"),v&&g.i5(h,2)&&Ao(R,h.state,F,a,J,M))}; Ao=function(R,F,h,a,J,M,v,I){$_(R,"impression")&&(M?(M=J-a,M=M>=-1&&M<=2):M=Math.abs(a-J)<=1,x1(R,F,M?a:J,h,a,v,I&&M),M&&R.bY("complete"))}; x1=function(R,F,h,a,J,M,v){Q1(R,h*1E3,v);J<=0||h<=0||(F==null?0:g.V(F,16))||(F==null?0:g.V(F,32))||(Rk(h,J*.25,a)&&(M&&!$_(R,"first_quartile")&&M("first"),R.bY("first_quartile")),Rk(h,J*.5,a)&&(M&&!$_(R,"midpoint")&&M("second"),R.bY("midpoint")),Rk(h,J*.75,a)&&(M&&!$_(R,"third_quartile")&&M("third"),R.bY("third_quartile")))}; e1g=function(R,F){$_(R,"impression")&&R.FJ(F?"fullscreen":"end_fullscreen")}; nrg=function(R){$_(R,"impression")&&R.FJ("clickthrough")}; uC2=function(R){R.FJ("active_view_measurable")}; dva=function(R){$_(R,"impression")&&!$_(R,"seek")&&R.FJ("active_view_fully_viewable_audible_half_duration")}; P57=function(R){$_(R,"impression")&&!$_(R,"seek")&&R.FJ("active_view_viewable")}; z1_=function(R){$_(R,"impression")&&!$_(R,"seek")&&R.FJ("audio_audible")}; K5B=function(R){$_(R,"impression")&&!$_(R,"seek")&&R.FJ("audio_measurable")}; tjB=function(R,F,h,a,J,M,v,I,w,E,B,r,Y){this.callback=R;this.slot=F;this.layout=h;this.Ei=a;this.Zn=J;this.rA=M;this.Ii=v;this.KO=I;this.WJ=w;this.pI=E;this.cG=B;this.qQ=r;this.pV=Y;this.wz=!0;this.Jp=this.QY=null;this.adCpn=void 0;this.B=!1}; lJL=function(R,F,h){var a;QJ(R.cG.get(),"ads_qua","cpn."+lt(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=Oc(R.qQ.get(),2))==null?void 0:a.clientPlaybackNonce)+";qt."+F+";clr."+h)}; Dvf=function(R,F){var h,a;QJ(R.cG.get(),"ads_imp","cpn."+lt(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((h=Oc(R.qQ.get(),2))==null?void 0:h.clientPlaybackNonce)+";clr."+F+";skp."+!!g.t((a=lt(R.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:a.skipOrPreviewRenderer,Ni))}; HT=function(R){return{enterMs:lt(R.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:lt(R.clientMetadata,"metadata_type_layout_exit_ms")}}; Lq=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p){Y1.call(this,R,F,h,a,J,v,I,w,E,r);this.Ii=M;this.WJ=B;this.KO=Y;this.pI=p;this.Jp=this.QY=null}; Vj_=function(R,F){var h;QJ(R.cG.get(),"ads_imp","acpn."+((h=Oc(R.qQ.get(),2))==null?void 0:h.clientPlaybackNonce)+";clr."+F)}; UvL=function(R,F,h){var a;QJ(R.cG.get(),"ads_qua","cpn."+lt(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((a=Oc(R.qQ.get(),2))==null?void 0:a.clientPlaybackNonce)+";qt."+F+";clr."+h)}; Tb=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H,T,Z,b,O,n,K){this.u$=R;this.MH=F;this.Xx=h;this.qQ=a;this.Ei=J;this.rA=M;this.cf=v;this.cG=I;this.Ii=w;this.Iz=E;this.KO=B;this.WJ=r;this.i$=Y;this.pV=p;this.fV=k;this.yd=H;this.OP=T;this.l0=Z;this.pI=b;this.B=O;this.context=n;this.bT=K}; yJ=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H,T,Z,b){this.u$=R;this.MH=F;this.Xx=h;this.cG=a;this.KO=J;this.WJ=M;this.i$=v;this.qQ=I;this.rA=w;this.cf=E;this.pV=B;this.fV=r;this.yd=Y;this.OP=p;this.l0=k;this.pI=H;this.Ei=T;this.context=Z;this.bT=b}; C5L=function(R,F,h,a){Fu.call(this,"survey-interstitial",R,F,h,a)}; qi=function(R,F,h,a,J){vQ.call(this,h,R,F,a);this.cG=J;R=lt(F.clientMetadata,"metadata_type_ad_placement_config");this.Zn=new rW(F.Df,J,R,F.layoutId)}; fq=function(R){return Math.round(R.width)+"x"+Math.round(R.height)}; Z5=function(R,F,h){h=h===void 0?jd:h;h.widthR.width*R.height*.2)return{wr:3,Rx:501,errorMessage:"ad("+fq(h)+") to container("+fq(R)+") ratio exceeds limit."};if(h.height>R.height/3-F)return{wr:3,Rx:501,errorMessage:"ad("+fq(h)+") covers container("+fq(R)+") center."}}; cFi=function(R,F){var h=lt(R.clientMetadata,"metadata_type_ad_placement_config");return new rW(R.Df,F,h,R.layoutId)}; bd=function(R){return lt(R.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Sd=function(R,F,h,a){Fu.call(this,"invideo-overlay",R,F,h,a);this.interactionLoggingClientData=a}; O5=function(R,F,h,a,J,M,v,I,w,E,B,r){vQ.call(this,M,R,F,J);this.cG=h;this.L=v;this.rA=I;this.OP=w;this.pI=E;this.S=B;this.N=r;this.Zn=cFi(F,h)}; W5T=function(){var R=["metadata_type_invideo_overlay_ad_renderer"];Y_().forEach(function(F){R.push(F)}); return{u9:R,jI:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; mD=function(R,F,h,a,J,M,v,I,w,E,B,r,Y){vQ.call(this,M,R,F,J);this.cG=h;this.L=v;this.Z=I;this.rA=w;this.OP=E;this.pI=B;this.S=r;this.N=Y;this.Zn=cFi(F,h)}; Rb7=function(){for(var R=["metadata_type_invideo_overlay_ad_renderer"],F=g.N(Y_()),h=F.next();!h.done;h=F.next())R.push(h.value);return{u9:R,jI:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; oU=function(R){this.rA=R;this.B=!1}; FZT=function(R,F,h){Fu.call(this,"survey",R,{},F,h)}; X2=function(R,F,h,a,J,M,v){vQ.call(this,h,R,F,a);this.L=J;this.rA=M;this.pI=v}; hbn=function(R,F,h,a,J,M,v,I,w,E){this.oT=R;this.rA=F;this.cG=h;this.L=a;this.KO=J;this.D=M;this.K=v;this.OP=I;this.pI=w;this.B=E}; aCn=function(R,F,h,a,J,M,v,I,w,E){this.oT=R;this.rA=F;this.cG=h;this.L=a;this.KO=J;this.D=M;this.K=v;this.OP=I;this.pI=w;this.B=E}; ed=function(R,F,h,a,J,M,v,I,w,E){zM.call(this,R,F,h,a,J,M,v,w);this.p7=I;this.qQ=E}; J9I=function(){var R=iB2();R.u9.push("metadata_type_ad_info_ad_metadata");return R}; MG2=function(R,F,h,a,J,M,v){this.oT=R;this.rA=F;this.cG=h;this.D=a;this.p7=J;this.B=M;this.qQ=v}; vJg=function(R,F,h,a,J,M,v,I){this.oT=R;this.rA=F;this.cG=h;this.D=a;this.p7=J;this.B=M;this.pI=v;this.qQ=I}; nq=function(R,F){this.slotId=F;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=R(this.triggerType)}; ud=function(R,F){this.adPodIndex=R;this.B=F.length;this.adBreakLengthSeconds=F.reduce(function(a,J){return a+J},0); var h=0;for(R+=1;R0}; jw=function(R){return!!(R.Ed&&R.slot&&R.layout)}; ZA=function(R){var F,h=(F=R.config)==null?void 0:F.adPlacementConfig;R=R.renderer;return!(!h||h.kind==null||!R)}; A92=function(R){if(!sr(R.adLayoutMetadata))return!1;R=R.renderingContent;return g.t(R,Ue)||g.t(R,CA)||g.t(R,$H_)||g.t(R,DX)||g.t(R,V1)?!0:!1}; b2=function(R){return R.playerVars!==void 0&&R.pings!==void 0&&R.externalVideoId!==void 0}; n5=function(R){if(!sr(R.adLayoutMetadata))return!1;R=R.renderingContent;var F=g.t(R,Sw);return F?Or(F):(F=g.t(R,m1))?b2(F):(F=g.t(R,oq))?F.playerVars!==void 0:(F=g.t(R,Ue))?F.durationMilliseconds!==void 0:g.t(R,Xn)||g.t(R,ew)?!0:!1}; Or=function(R){R=(R.sequentialLayouts||[]).map(function(F){return g.t(F,u2)}); return R.length>0&&R.every(n5)}; Pq=function(R){return sr(R.adLayoutMetadata)?(R=g.t(R.renderingContent,dk))&&R.pings?!0:!1:!1}; y9_=function(R){if(!sr(R.adLayoutMetadata))return!1;if(g.t(R.renderingContent,xHO)||g.t(R.renderingContent,N5g))return!0;var F=g.t(R.renderingContent,zN);return g.t(R.renderingContent,K5)||g.t(F==null?void 0:F.sidePanel,H4_)||g.t(F==null?void 0:F.sidePanel,LZI)||g.t(F==null?void 0:F.sidePanel,T5n)?!0:!1}; b4_=function(R){var F;(F=!R)||(F=R.adSlotMetadata,F=!((F==null?void 0:F.slotId)!==void 0&&(F==null?void 0:F.slotType)!==void 0));if(F||!(qyn(R)||R.slotEntryTrigger&&R.slotFulfillmentTriggers&&R.slotExpirationTriggers))return!1;var h;R=(h=R.fulfillmentContent)==null?void 0:h.fulfilledLayout;return(h=g.t(R,u2))?n5(h):(h=g.t(R,tO))?y9_(h):(h=g.t(R,fCm))?A92(h):(h=g.t(R,jSi))?kQm(h):(h=g.t(R,Z47))?sr(h.adLayoutMetadata)?g.t(h.renderingContent,p5)?!0:!1:!1:(R=g.t(R,l2))?Pq(R):!1}; qyn=function(R){var F;R=g.t((F=R.fulfillmentContent)==null?void 0:F.fulfilledLayout,tO);var h;return R&&((h=R.adLayoutMetadata)==null?void 0:h.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&R.layoutExitNormalTriggers===void 0}; SyL=function(R){var F;return(R==null?void 0:(F=R.adSlotMetadata)==null?void 0:F.slotType)==="SLOT_TYPE_IN_PLAYER"}; mHT=function(R,F){var h;if((h=R.questions)==null||!h.length||!R.playbackCommands||(F===void 0||!F)&&R.questions.length!==1)return!1;R=g.N(R.questions);for(F=R.next();!F.done;F=R.next()){F=F.value;var a=h=void 0,J=((h=g.t(F,DA))==null?void 0:h.surveyAdQuestionCommon)||((a=g.t(F,Vu))==null?void 0:a.surveyAdQuestionCommon);if(!O4g(J))return!1}return!0}; oJB=function(R){R=((R==null?void 0:R.playerOverlay)||{}).instreamSurveyAdRenderer;var F;if(R)if(R.playbackCommands&&R.questions&&R.questions.length===1){var h,a=((F=g.t(R.questions[0],DA))==null?void 0:F.surveyAdQuestionCommon)||((h=g.t(R.questions[0],Vu))==null?void 0:h.surveyAdQuestionCommon);F=O4g(a)}else F=!1;else F=!1;return F}; O4g=function(R){if(!R)return!1;R=g.t(R.instreamAdPlayerOverlay,Ur);var F=g.t(R==null?void 0:R.skipOrPreviewRenderer,Ni),h=g.t(R==null?void 0:R.adInfoRenderer,C5);return(g.t(R==null?void 0:R.skipOrPreviewRenderer,cq)||F)&&h?!0:!1}; Xf2=function(R){return R.linearAds!=null&&sr(R.adLayoutMetadata)}; ebL=function(R){return R.linearAd!=null&&R.adVideoStart!=null}; nJf=function(R){if(isNaN(Number(R.timeoutSeconds))||!R.text||!R.ctaButton||!g.t(R.ctaButton,g.Wq)||!R.brandImage)return!1;var F;return R.backgroundImage&&g.t(R.backgroundImage,RL)&&((F=g.t(R.backgroundImage,RL))==null?0:F.landscape)?!0:!1}; FT=function(R,F,h,a,J,M,v,I){g.d.call(this);this.pI=R;this.B=F;this.D=a;this.qQ=J;this.L=M;this.K=v;this.i$=I}; PNB=function(R,F,h){var a,J=((a=h.adSlots)!=null?a:[]).map(function(I){return g.t(I,hQ)}); if(h.O5)if(lt(F.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))hE(R.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},F.slotId); else{if(R.pI.get().U.W().X("h5_check_forecasting_renderer_for_throttled_midroll")){var M=h.b2.filter(function(I){var w;return((w=I.renderer)==null?void 0:w.clientForecastingAdRenderer)!=null}); M.length!==0?upL(R.K,M,J,F.slotId,h.ssdaiAdsConfig):hE(R.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},F.slotId)}else hE(R.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},F.slotId); dHn(R.L,F)}else{var v;a={fG:Math.round(((M=lt(F.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:M.fG)||0),LG:(v=lt(F.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:v.LG};upL(R.K,h.b2,J,F.slotId,h.ssdaiAdsConfig,a)}}; tG_=function(R,F,h,a,J,M,v){var I=Oc(R.qQ.get(),1);if(zbL(R.pI.get())){var w=aL(R.D.get(),h,a,J,I.clientPlaybackNonce,I.Z5,I.daiEnabled,I,M,v);KZm(R,w);hE(R.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return w},F)}else hE(R.B.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return aL(R.D.get(),h,a,J,I.clientPlaybackNonce,I.Z5,I.daiEnabled,I,M,v)},F)}; KZm=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next()){var a=h.value;if(a.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a.fulfilledLayout)if(h=void 0,a.fulfilledLayout.renderingContent)h=lt(a.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(a.fulfilledLayout.yQ){a=g.N(a.fulfilledLayout.yQ);for(var J=a.next();!J.done&&(J=J.value,!J.renderingContent||!(h=lt(J.clientMetadata,"metadata_type_player_vars")));J=a.next());}}else h=void 0;if(h){R.i$.get().U.preloadVideoByPlayerVars(h, 2,300);break}}}; DH_=function(R,F,h,a,J,M,v){F=lCB(F,M,Number(a.prefetchMilliseconds)||0,v);R=F instanceof C?F:JQ(R,a,J,F,h);return R instanceof C?R:[R]}; VGi=function(R,F,h,a,J){var M=ai(R.D.get(),"SLOT_TYPE_AD_BREAK_REQUEST");a=[new H3({getAdBreakUrl:a.getAdBreakUrl,fG:0,LG:0}),new e3(!0)];R=F.pauseDurationMs?F.lactThresholdMs?{slotId:M,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new wk(R.B,M),slotFulfillmentTriggers:[new GQI(R.B)],slotExpirationTriggers:[new JO(R.B,J),new GN(R.B,M)],Jb:"core",clientMetadata:new tA(a),adSlotLoggingData:h}:new C("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new C("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return R instanceof C?R:[R]}; UHO=function(R){var F,h;return((F=R.renderer)==null?void 0:(h=F.adBreakServiceRenderer)==null?void 0:h.getAdBreakUrl)!==void 0}; M7=function(R,F,h){if(R.beforeContentVideoIdStartedTrigger)R=R.beforeContentVideoIdStartedTrigger?new dv(zp,F,R.id):new C("Not able to create BeforeContentVideoIdStartedTrigger");else{if(R.layoutIdExitedTrigger){var a;F=(a=R.layoutIdExitedTrigger)!=null&&a.triggeringLayoutId?new D5(zp,R.layoutIdExitedTrigger.triggeringLayoutId,R.id):new C("Not able to create LayoutIdExitedTrigger")}else{if(R.layoutExitedForReasonTrigger){var J,M;((J=R.layoutExitedForReasonTrigger)==null?0:J.triggeringLayoutId)&&((M= R.layoutExitedForReasonTrigger)==null?0:M.layoutExitReason)?(F=ICi(R.layoutExitedForReasonTrigger.layoutExitReason),R=F instanceof C?F:new ld(zp,R.layoutExitedForReasonTrigger.triggeringLayoutId,[F],R.id)):R=new C("Not able to create LayoutIdExitedForReasonTrigger")}else{if(R.onLayoutSelfExitRequestedTrigger){var v;F=(v=R.onLayoutSelfExitRequestedTrigger)!=null&&v.triggeringLayoutId?new aq(zp,R.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,R.id):new C("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(R.onNewPlaybackAfterContentVideoIdTrigger)R= R.onNewPlaybackAfterContentVideoIdTrigger?new JO(zp,F,R.id):new C("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(R.skipRequestedTrigger){var I;F=(I=R.skipRequestedTrigger)!=null&&I.triggeringLayoutId?new vq(zp,R.skipRequestedTrigger.triggeringLayoutId,R.id):new C("Not able to create SkipRequestedTrigger")}else if(R.slotIdEnteredTrigger){var w;F=(w=R.slotIdEnteredTrigger)!=null&&w.triggeringSlotId?new gk(zp,R.slotIdEnteredTrigger.triggeringSlotId,R.id):new C("Not able to create SlotIdEnteredTrigger")}else if(R.slotIdExitedTrigger){var E; F=(E=R.slotIdExitedTrigger)!=null&&E.triggeringSlotId?new GN(zp,R.slotIdExitedTrigger.triggeringSlotId,R.id):new C("Not able to create SkipRequestedTrigger")}else if(R.surveySubmittedTrigger){var B;F=(B=R.surveySubmittedTrigger)!=null&&B.triggeringLayoutId?new Bq(zp,R.surveySubmittedTrigger.triggeringLayoutId,R.id):new C("Not able to create SurveySubmittedTrigger")}else{if(R.mediaResumedTrigger)R=R.mediaResumedTrigger&&R.id?new i4B(R.id):new C("Not able to create MediaResumedTrigger");else{if(R.closeRequestedTrigger){var r; F=(r=R.closeRequestedTrigger)!=null&&r.triggeringLayoutId?new PT(zp,R.closeRequestedTrigger.triggeringLayoutId,R.id):new C("Not able to create CloseRequestedTrigger")}else if(R.slotIdScheduledTrigger){var Y;F=(Y=R.slotIdScheduledTrigger)!=null&&Y.triggeringSlotId?new wk(zp,R.slotIdScheduledTrigger.triggeringSlotId,R.id):new C("Not able to create SlotIdScheduledTrigger")}else{if(R.mediaTimeRangeTrigger){var p;a=Number((p=R.mediaTimeRangeTrigger)==null?void 0:p.offsetStartMilliseconds);var k;v=Number((k= R.mediaTimeRangeTrigger)==null?void 0:k.offsetEndMilliseconds);isFinite(a)&&isFinite(v)?(k=v,k===-1&&(k=h),h=a>k?new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:k},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",k===h&&a-500<=k):new A$(a,k),R=h instanceof C?h:new WT(zp,F,h,!1,R.id)):R=new C("Not able to create MediaTimeRangeTrigger")}else if(R.contentVideoIdEndedTrigger)R=R.contentVideoIdEndedTrigger?new zb(zp,F,!1,R.id):new C("Not able to create ContentVideoIdEndedTrigger"); else{if(R.layoutIdEnteredTrigger){var H;F=(H=R.layoutIdEnteredTrigger)!=null&&H.triggeringLayoutId?new to(zp,R.layoutIdEnteredTrigger.triggeringLayoutId,R.id):new C("Not able to create LayoutIdEnteredTrigger")}else if(R.timeRelativeToLayoutEnterTrigger){var T;F=(T=R.timeRelativeToLayoutEnterTrigger)!=null&&T.triggeringLayoutId?new rk(zp,Number(R.timeRelativeToLayoutEnterTrigger.durationMs),R.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,R.id):new C("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(R.onDifferentLayoutIdEnteredTrigger){var Z; F=(Z=R.onDifferentLayoutIdEnteredTrigger)!=null&&Z.triggeringLayoutId&&R.onDifferentLayoutIdEnteredTrigger.slotType&&R.onDifferentLayoutIdEnteredTrigger.layoutType?new Fn(zp,R.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,R.onDifferentLayoutIdEnteredTrigger.slotType,R.onDifferentLayoutIdEnteredTrigger.layoutType,R.id):new C("Not able to create CloseRequestedTrigger")}else{if(R.liveStreamBreakStartedTrigger)R=R.liveStreamBreakStartedTrigger&&R.id?new cT(zp,R.id):new C("Not able to create LiveStreamBreakStartedTrigger"); else if(R.liveStreamBreakEndedTrigger)R=R.liveStreamBreakEndedTrigger&&R.id?new VJ(zp,R.id):new C("Not able to create LiveStreamBreakEndedTrigger");else{if(R.liveStreamBreakScheduledDurationMatchedTrigger){var b;F=(b=R.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&b.breakDurationMs?new U5(Number(R.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,R.id):new C("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(R.liveStreamBreakScheduledDurationNotMatchedTrigger){var O; F=(O=R.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&O.breakDurationMs?new Cq(Number(R.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,R.id):new C("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(R.newSlotScheduledWithBreakDurationTrigger){var n;F=(n=R.newSlotScheduledWithBreakDurationTrigger)!=null&&n.breakDurationMs?new Rq(Number(R.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,R.id):new C("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else F= R.prefetchCacheExpiredTrigger?new M0(zp,R.id):new C("Not able to convert an AdsControlflowTrigger.");R=F}F=R}R=F}F=R}R=F}F=R}R=F}F=R}R=F}F=R}R=F}return R}; vK=function(R,F){F.B>=2&&(R.slot_pos=F.adPodIndex);R.autoplay="1"}; c9O=function(R,F,h,a,J,M,v,I){return F===null?new C("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:F,ActionCompanionAdRenderer:a}):[CN7(R,F,v,M,function(w){var E=w.slotId;w=I(w);var B=a.adLayoutLoggingData,r=new tA([new L6(a),new X3(J)]);E=Xt(h.D.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",E);var Y={layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Jb:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Df:new Map, layoutExitNormalTriggers:[new JO(h.B,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:r,kH:w(Y),adLayoutLoggingData:B}})]}; WZO=function(R,F,h,a,J,M,v,I){return F===null?new C("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:F,TopBannerImageTextIconButtonedLayoutViewModel:a}):[CN7(R,F,v,M,function(w){var E=w.slotId;w=I(w);var B=a.adLayoutLoggingData,r=new tA([new TS(a),new X3(J)]);E=Xt(h.D.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",E);var Y={layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Jb:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Df:new Map,layoutExitNormalTriggers:[new JO(h.B,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:r,kH:w(Y),adLayoutLoggingData:B}})]}; aIi=function(R,F,h,a,J,M){if(!M)for(F=g.N(F),M=F.next();!M.done;M=F.next())M=M.value,g3(R,M.renderer,M.config.adPlacementConfig.kind);R=Array.from(R.values()).filter(function(B){return RYm(B)}); F=[];M=g.N(R);for(var v=M.next(),I={};!v.done;I={eB:void 0},v=M.next()){I.eB=v.value;v=g.N(I.eB.wb);for(var w=v.next(),E={};!w.done;E={i8:void 0},w=v.next())E.i8=w.value,w=function(B,r){return function(Y){return B.i8.hD(Y,r.eB.instreamVideoAdRenderer.elementId,B.i8.YD)}}(E,I),E.i8.isContentVideoCompanion?F.push(FRa(h,a,J,I.eB.instreamVideoAdRenderer.elementId,E.i8.associatedCompositePlayerBytesLayoutId,E.i8.adSlotLoggingData,w)):R.length>1?F.push(hYi(h,a,J,I.eB.instreamVideoAdRenderer.elementId,E.i8.adSlotLoggingData, function(B,r){return function(Y){return B.i8.hD(Y,r.eB.instreamVideoAdRenderer.elementId,B.i8.YD,B.i8.associatedCompositePlayerBytesLayoutId)}}(E,I))):F.push(hYi(h,a,J,I.eB.instreamVideoAdRenderer.elementId,E.i8.adSlotLoggingData,w))}return F}; g3=function(R,F,h){if(F=Jlg(F)){F=g.N(F);for(var a=F.next();!a.done;a=F.next())if((a=a.value)&&a.externalVideoId){var J=GV(R,a.externalVideoId);J.instreamVideoAdRenderer||(J.instreamVideoAdRenderer=a,J.M5=h)}else gf("InstreamVideoAdRenderer without externalVideoId")}}; Jlg=function(R){var F=[],h=R.sandwichedLinearAdRenderer&&R.sandwichedLinearAdRenderer.linearAd&&g.t(R.sandwichedLinearAdRenderer.linearAd,m1);if(h)return F.push(h),F;if(R.instreamVideoAdRenderer)return F.push(R.instreamVideoAdRenderer),F;if(R.linearAdSequenceRenderer&&R.linearAdSequenceRenderer.linearAds){R=g.N(R.linearAdSequenceRenderer.linearAds);for(h=R.next();!h.done;h=R.next())h=h.value,g.t(h,m1)&&F.push(g.t(h,m1));return F}return null}; RYm=function(R){if(R.instreamVideoAdRenderer===void 0)return gf("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var F=g.N(R.wb),h=F.next();!h.done;h=F.next()){h=h.value;if(h.hD===void 0)return!1;if(h.YD===void 0)return gf("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(R.M5===void 0||h.Nu===void 0||R.M5!==h.Nu&&h.Nu!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(R.instreamVideoAdRenderer.elementId===void 0)return gf("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:R.M5,"matching APSR kind":h.Nu}),!1}return!0}; GV=function(R,F){R.has(F)||R.set(F,{instreamVideoAdRenderer:void 0,M5:void 0,adVideoId:F,wb:[]});return R.get(F)}; IL=function(R,F,h,a,J,M,v,I,w){J?GV(R,J).wb.push({Sab:F,Nu:h,isContentVideoCompanion:a,YD:v,associatedCompositePlayerBytesLayoutId:M,adSlotLoggingData:I,hD:w}):gf("Companion AdPlacementSupportedRenderer without adVideoId")}; iJ=function(R){var F=0;R=g.N(R.questions);for(var h=R.next();!h.done;h=R.next())if(h=h.value,h=g.t(h,DA)||g.t(h,Vu)){var a=void 0;F+=((a=h.surveyAdQuestionCommon)==null?void 0:a.durationMilliseconds)||0}return F}; w3=function(R){var F,h,a,J,M=((h=g.t((F=R.questions)==null?void 0:F[0],DA))==null?void 0:h.surveyAdQuestionCommon)||((J=g.t((a=R.questions)==null?void 0:a[0],Vu))==null?void 0:J.surveyAdQuestionCommon),v;F=[].concat(g.S(((v=R.playbackCommands)==null?void 0:v.instreamAdCompleteCommands)||[]),g.S((M==null?void 0:M.timeoutCommands)||[]));var I,w,E,B,r,Y,p,k,H,T,Z,b,O,n,K,Rg,U,vi,GI,gL;return{impressionCommands:(I=R.playbackCommands)==null?void 0:I.impressionCommands,errorCommands:(w=R.playbackCommands)== null?void 0:w.errorCommands,muteCommands:(E=R.playbackCommands)==null?void 0:E.muteCommands,unmuteCommands:(B=R.playbackCommands)==null?void 0:B.unmuteCommands,pauseCommands:(r=R.playbackCommands)==null?void 0:r.pauseCommands,rewindCommands:(Y=R.playbackCommands)==null?void 0:Y.rewindCommands,resumeCommands:(p=R.playbackCommands)==null?void 0:p.resumeCommands,skipCommands:(k=R.playbackCommands)==null?void 0:k.skipCommands,progressCommands:(H=R.playbackCommands)==null?void 0:H.progressCommands,gJn:(T= R.playbackCommands)==null?void 0:T.clickthroughCommands,fullscreenCommands:(Z=R.playbackCommands)==null?void 0:Z.fullscreenCommands,activeViewViewableCommands:(b=R.playbackCommands)==null?void 0:b.activeViewViewableCommands,activeViewMeasurableCommands:(O=R.playbackCommands)==null?void 0:O.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(n=R.playbackCommands)==null?void 0:n.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(K=R.playbackCommands)== null?void 0:(Rg=K.activeViewTracking)==null?void 0:Rg.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(U=R.playbackCommands)==null?void 0:(vi=U.activeViewTracking)==null?void 0:vi.activeViewAudioMeasurableCommands,endFullscreenCommands:(GI=R.playbackCommands)==null?void 0:GI.endFullscreenCommands,abandonCommands:(gL=R.playbackCommands)==null?void 0:gL.abandonCommands,completeCommands:F}}; von=function(R,F,h,a,J,M,v){return function(I,w){return M9I(R,w.slotId,I,M,function(E,B){var r=w.layoutId;E=v(E);return E0(F,r,B,J,E,"LAYOUT_TYPE_SURVEY",[new RO(h),a],h.adLayoutLoggingData)})}}; III=function(R,F,h,a,J,M,v){if(!goi(R))return new C("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:R});var I=R.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[GJa(M,F,h,a,function(w){var E=w.slotId;w=v(w);E=Xt(J.D.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",E);var B={layoutId:E,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Jb:"core"},r=new D5(J.B,a);return{layoutId:E,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Df:new Map,layoutExitNormalTriggers:[r], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([new F6(I)]),kH:w(B)}})]}; goi=function(R){R=g.t(R==null?void 0:R.additionalPlayerOverlay,iU_);if(!R)return!1;var F=R.slidingMessages;return R.title&&F&&F.length!==0?!0:!1}; Eoa=function(R,F,h,a,J){var M;if((M=R.playerOverlay)==null||!M.instreamSurveyAdRenderer)return function(){return[]}; if(!oJB(R))return function(){return new C("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:R})}; var v=R.playerOverlay.instreamSurveyAdRenderer,I=iJ(v);return I<=0?function(){return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:v})}:function(w,E){var B=wDa(w,h,a,function(r){var Y=r.slotId; r=E(r);var p=w3(v);Y=Xt(J.D.get(),"LAYOUT_TYPE_SURVEY",Y);var k={layoutId:Y,layoutType:"LAYOUT_TYPE_SURVEY",Jb:"core"},H=new D5(J.B,a),T=new vq(J.B,Y),Z=new Bq(J.B,Y),b=new r92(J.B);return{layoutId:Y,layoutType:"LAYOUT_TYPE_SURVEY",Df:new Map,layoutExitNormalTriggers:[H,b],layoutExitSkipTriggers:[T],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Z],l$:[],Jb:"core",clientMetadata:new tA([new We(v),new X3(F),new yX(I/1E3),new Zv(p)]),kH:r(k),adLayoutLoggingData:v.adLayoutLoggingData}}); w=III(R,h,B.slotId,a,J,w,E);return w instanceof C?w:[B].concat(g.S(w))}}; QNg=function(R,F,h,a,J,M,v){v=v===void 0?!1:v;var I=[];try{var w=[];if(h.renderer.linearAdSequenceRenderer)var E=function(H){H=Bwg(H.slotId,h,F,J(H),a,M,v);w=H.Uxt;return H.M0}; else if(h.renderer.instreamVideoAdRenderer)E=function(H){var T=H.slotId;H=J(H);var Z=v,b=h.config.adPlacementConfig,O=rlL(b),n=O.gg,K=O.T3;O=h.renderer.instreamVideoAdRenderer;var Rg;if(O==null?0:(Rg=O.playerOverlay)==null?0:Rg.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var U=BK(O,Z);Rg=Math.min(n+U.videoLengthSeconds*1E3,K);Z=new ud(0,[U.videoLengthSeconds]);K=U.videoLengthSeconds;var vi=U.playerVars,GI=U.instreamAdPlayerOverlayRenderer,gL=U.playerOverlayLayoutRenderer, Em=U.adVideoId,hf=YaB(h),qa=U.Df;U=U.j4;var m2=O==null?void 0:O.adLayoutLoggingData;O=O==null?void 0:O.sodarExtensionData;T=Xt(F.D.get(),"LAYOUT_TYPE_MEDIA",T);var Ru={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",Jb:"core"};return{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",Df:qa,layoutExitNormalTriggers:[new VJ(F.B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([new zS(a),new Eb(K),new B3(vi),new sb(n),new pf(Rg),GI&& new K6(GI),gL&&new tb(gL),new X3(b),new Pe(Em),new eT(Z),new xP(hf),O&&new YP(O),new gZ({current:null}),new QX({}),new Ob(U)].filter(sNi)),kH:H(Ru),adLayoutLoggingData:m2}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var B=pDn(R,a,h.adSlotLoggingData,E);I.push(B);for(var r=g.N(w),Y=r.next();!Y.done;Y=r.next()){var p=Y.value,k=p(R,J);if(k instanceof C)return k;I.push.apply(I,g.S(k))}}catch(H){return new C(H,{errorMessage:H.message,AdPlacementRenderer:h,numberOfSurveyRenderers:kJa(h)})}return I}; kJa=function(R){R=(R.renderer.linearAdSequenceRenderer||{}).linearAds;return R!=null&&R.length?R.filter(function(F){var h,a;return((h=g.t(F,m1))==null?void 0:(a=h.playerOverlay)==null?void 0:a.instreamSurveyAdRenderer)!=null}).length:0}; Bwg=function(R,F,h,a,J,M,v){var I=F.config.adPlacementConfig,w=rlL(I),E=w.gg,B=w.T3;w=(F.renderer.linearAdSequenceRenderer||{}).linearAds;if(w==null||!w.length)throw new TypeError("Expected linear ads");var r=[],Y={zM:E,Ze:0,LAG:r};w=w.map(function(k){return $sg(R,k,Y,h,a,I,J,B,v)}).map(function(k,H){H=new ud(H,r); return k(H)}); var p=w.map(function(k){return k.q0}); return{M0:Ali(h,R,E,p,I,YaB(F),a,B,M),Uxt:w.map(function(k){return k.Gqb})}}; $sg=function(R,F,h,a,J,M,v,I,w){var E=BK(g.t(F,m1),w),B=h.zM,r=h.Ze,Y=Math.min(B+E.videoLengthSeconds*1E3,I);h.zM=Y;h.Ze++;h.LAG.push(E.videoLengthSeconds);var p,k,H=(p=g.t(F,m1))==null?void 0:(k=p.playerOverlay)==null?void 0:k.instreamSurveyAdRenderer;if(E.adVideoId==="nPpU29QrbiU"&&H==null)throw new TypeError("Survey slate media has no survey overlay");return function(T){vK(E.playerVars,T);var Z,b,O=E.videoLengthSeconds,n=E.playerVars,K=E.Df,Rg=E.j4,U=E.instreamAdPlayerOverlayRenderer,vi=E.playerOverlayLayoutRenderer, GI=E.adVideoId,gL=(Z=g.t(F,m1))==null?void 0:Z.adLayoutLoggingData;Z=(b=g.t(F,m1))==null?void 0:b.sodarExtensionData;b=Xt(a.D.get(),"LAYOUT_TYPE_MEDIA",R);var Em={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Jb:"adapter"};T={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Df:K,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"adapter",clientMetadata:new tA([new zS(v),new Eb(O),new B3(n),new sb(B),new pf(Y),new kP(r),new gZ({current:null}), U&&new K6(U),vi&&new tb(vi),new X3(M),new Pe(GI),new eT(T),Z&&new YP(Z),H&&new S3(H),new QX({}),new Ob(Rg)].filter(sNi)),kH:J(Em),adLayoutLoggingData:gL};O=Eoa(g.t(F,m1),M,v,T.layoutId,a);return{q0:T,Gqb:O}}}; BK=function(R,F){if(!R)throw new TypeError("Expected instream video ad renderer");if(!R.playerVars)throw new TypeError("Expected player vars in url encoded string");var h=Wk(R.playerVars),a=Number(h.length_seconds);if(isNaN(a))throw new TypeError("Expected valid length seconds in player vars");var J=Number(R.trimmedMaxNonSkippableAdDurationMs);a=isNaN(J)?a:Math.min(a,J/1E3);J=R.playerOverlay||{};J=J.instreamAdPlayerOverlayRenderer===void 0?null:J.instreamAdPlayerOverlayRenderer;var M=R.playerOverlay|| {};M=M.playerOverlayLayoutRenderer===void 0?null:M.playerOverlayLayoutRenderer;var v=h.video_id;v||(v=(v=R.externalVideoId)?v:void 0);if(!v)throw new TypeError("Expected valid video id in IVAR");if(F&&a===0){var I;F=(I=xsi[v])!=null?I:a}else F=a;return{playerVars:h,videoLengthSeconds:F,instreamAdPlayerOverlayRenderer:J,playerOverlayLayoutRenderer:M,adVideoId:v,Df:R.pings?BQ(R.pings):new Map,j4:Ee(R.pings)}}; YaB=function(R){R=Number(R.driftRecoveryMs);return isNaN(R)||R<=0?null:R}; rlL=function(R){var F=R.adTimeOffset||{};R=F.offsetEndMilliseconds;F=Number(F.offsetStartMilliseconds);if(isNaN(F))throw new TypeError("Expected valid start offset");R=Number(R);if(isNaN(R))throw new TypeError("Expected valid end offset");return{gg:F,T3:R}}; Nwn=function(R){var F,h=(F=lt(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current;if(!h)return null;F=lt(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var a=R.layoutId,J=lt(R.clientMetadata,"metadata_type_content_cpn"),M=lt(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),v=lt(R.clientMetadata,"metadata_type_player_underlay_renderer"),I=lt(R.clientMetadata,"metadata_type_ad_placement_config"),w=lt(R.clientMetadata,"metadata_type_video_length_seconds"); var E=dZ(R.clientMetadata,"metadata_type_layout_enter_ms")&&dZ(R.clientMetadata,"metadata_type_layout_exit_ms")?(lt(R.clientMetadata,"metadata_type_layout_exit_ms")-lt(R.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Z2:a,contentCpn:J,Ya:h,Jq:F,instreamAdPlayerOverlayRenderer:M,instreamAdPlayerUnderlayRenderer:v,adPlacementConfig:I,videoLengthSeconds:w,pZ:E,inPlayerLayoutId:lt(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:lt(R.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Twa=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k){a=ai(a,"SLOT_TYPE_PLAYER_BYTES");R=HUf(J,R,v,h,a,w,E);if(R instanceof C)return R;var H;E=(H=lt(R.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:H.layoutId;if(!E)return new C("Invalid adNotify layout");F=LRL(E,J,M,h,I,F,w,B,r,Y,p,k,v);return F instanceof C?F:[R].concat(g.S(F))}; LRL=function(R,F,h,a,J,M,v,I,w,E,B,r,Y){h=ylf(F,h,a,M,v,I,w,E,B,r,Y);if(h instanceof C)return h;R=qaB(F,R,v,J,h);return R instanceof C?R:[].concat(g.S(R.k6),[R.Xi])}; jNn=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p){F=ylf(R,F,h,J,M,I,w,E,B,r,Y,p);if(F instanceof C)return F;R=fI_(R,h,M,v,a,I.Mt,F);return R instanceof C?R:R.k6.concat(R.Xi)}; ylf=function(R,F,h,a,J,M,v,I,w,E,B,r){var Y=r3(a,h,E);return Y instanceof Kf?new C(Y):E.U.W().experiments.jl("html5_refactor_in_player_slot_generation")?function(p){var k=new ud(0,[Y.qP]);p=ZUL(F,Y.layoutId,Y.AX,h,Y8(Y.playerVars,Y.HS,M,w,k),Y.qP,J,k,v(p),I.get(Y.AX.externalVideoId),r);k=[];if(Y.AX.playerOverlay.instreamAdPlayerOverlayRenderer){var H=Nwn(p);if(!H)return gf("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,p),{layout:p,k6:[]}; k=[bUB(R,H.contentCpn,H.Z2,function(Z){return s0(F,Z.slotId,"core",H,W3(B,Z))},H.inPlayerSlotId)].concat(g.S(k)); if(H.instreamAdPlayerUnderlayRenderer&&pe(E)){var T=H.instreamAdPlayerUnderlayRenderer;k=[SaO(R,H.contentCpn,H.Z2,function(Z){return OUi(F,Z.slotId,T,H.adPlacementConfig,H.Z2,W3(B,Z))})].concat(g.S(k))}}return{layout:p, k6:k}}:function(p){var k=new ud(0,[Y.qP]); return{layout:ZUL(F,Y.layoutId,Y.AX,h,Y8(Y.playerVars,Y.HS,M,w,k),Y.qP,J,k,v(p),I.get(Y.AX.externalVideoId),r),k6:[]}}}; r3=function(R,F,h){if(!R.playerVars)return new Kf("No playerVars available in InstreamVideoAdRenderer.");var a,J;if(R.elementId==null||R.playerVars==null||R.playerOverlay==null||((a=R.playerOverlay)==null?void 0:a.instreamAdPlayerOverlayRenderer)==null&&((J=R.playerOverlay)==null?void 0:J.playerOverlayLayoutRenderer)==null||R.pings==null||R.externalVideoId==null)return new Kf("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:R});a=Wk(R.playerVars);J=Number(a.length_seconds); isNaN(J)&&(J=0,gf("Expected valid length seconds in player vars but got NaN"));if(h.r$(F.kind==="AD_PLACEMENT_KIND_START")){if(R.layoutId===void 0)return new Kf("Expected server generated layout ID in instreamVideoAdRenderer");F=R.layoutId}else F=R.elementId;return{layoutId:F,AX:R,playerVars:a,HS:R.playerVars,qP:J}}; Y8=function(R,F,h,a,J){R.iv_load_policy=a;F=Wk(F);if(F.cta_conversion_urls)try{R.cta_conversion_urls=JSON.parse(F.cta_conversion_urls)}catch(M){gf(M)}h.Cr&&(R.ctrl=h.Cr);h.ZY&&(R.ytr=h.ZY);h.fg&&(R.ytrcc=h.fg);h.isMdxPlayback&&(R.mdx="1");R.vvt&&(R.vss_credentials_token=R.vvt,h.H4&&(R.vss_credentials_token_type=h.H4),h.mdxEnvironment&&(R.mdx_environment=h.mdxEnvironment));vK(R,J);return R}; msi=function(R){var F=new Map;R=g.N(R);for(var h=R.next();!h.done;h=R.next())(h=h.value.renderer.remoteSlotsRenderer)&&h.hostElementId&&F.set(h.hostElementId,h);return F}; k8=function(R){return R.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; oo7=function(R){return R!=null}; zYf=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p){for(var k=[],H=g.N(R),T=H.next();!T.done;T=H.next())if(T=T.value,!qyn(T)&&!SyL(T)){var Z=k8(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger,b=w.r$(Z),O=XDa(T,E,a,h.Z5,b);if(O instanceof C)return O;var n=void 0,K={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(n=T.adSlotMetadata.slotPhysicalPosition)!=null?n:1,Jb:"core",slotEntryTrigger:O.slotEntryTrigger,slotFulfillmentTriggers:O.slotFulfillmentTriggers, slotExpirationTriggers:O.slotExpirationTriggers},Rg=g.t(T.fulfillmentContent.fulfilledLayout,u2);if(Rg){if(!n5(Rg))return new C("Invalid PlayerBytesAdLayoutRenderer");n=r&&!(k8(T)&&T.slotEntryTrigger.beforeContentVideoIdStartedTrigger);O=O.slotFulfillmentTriggers.some(function(U){return U instanceof U5}); b=n?eYa(K,T.adSlotMetadata.triggerEvent,Rg,h,a,M,E,R,b,Y,O,p):noL(K,T.adSlotMetadata.triggerEvent,Rg,F,h,a,J,M,v,I,w,E,R,B,b,T.adSlotMetadata.triggeringSourceLayoutId);if(b instanceof C)return b;O=[];k8(T)&&O.push(new nf({xs:k8(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));n&&O.push(new QX({}));h.Mt&&O.push(new bt({}));O.push(new X6(Z));T=Object.assign({},K,{clientMetadata:new tA(O),fulfilledLayout:b.layout,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});k.push.apply(k,g.S(b.k6)); k.push(T)}else if(Z=g.t(T.fulfillmentContent.fulfilledLayout,tO)){if(!y9_(Z))return new C("Invalid PlayerUnderlayAdLayoutRenderer");Z=u__(Z,a,h.Z5,M,K,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof C)return Z;T=Object.assign({},K,{clientMetadata:new tA([]),fulfilledLayout:Z,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});k.push(T)}else if(Z=g.t(T.fulfillmentContent.fulfilledLayout,jSi)){if(!kQm(Z))return new C("Invalid AboveFeedAdLayoutRenderer");Z= dsn(Z,a,h.Z5,M,K,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(Z instanceof C)return Z;T=Object.assign({},K,{clientMetadata:new tA([]),fulfilledLayout:Z,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});k.push(T)}else if(Z=g.t(T.fulfillmentContent.fulfilledLayout,Z47)){if(!sr(Z.adLayoutMetadata)||!g.t(Z.renderingContent,p5))return new C("Invalid BelowPlayerAdLayoutRenderer");Z=dsn(Z,a,h.Z5,M,K,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId); if(Z instanceof C)return Z;T=Object.assign({},K,{clientMetadata:new tA([]),fulfilledLayout:Z,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});k.push(T)}else if(Z=g.t(T.fulfillmentContent.fulfilledLayout,l2)){if(!Pq(Z))return new C("Invalid PlayerBytesSequenceItemAdLayoutRenderer");Z=PpT(Z,a,h.Z5,M,K,T.adSlotMetadata.triggerEvent);if(Z instanceof C)return Z;T=Object.assign({},K,{clientMetadata:new tA([]),fulfilledLayout:Z,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});k.push(T)}else return new C("Unable to retrieve a client slot ["+ K.slotType+"] from a given AdSlotRenderer")}return k}; PpT=function(R,F,h,a,J,M){var v={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Jb:"core"};F=Qo(R,F,h);return F instanceof C?F:(h=g.t(R.renderingContent,dk))&&h.pings?Object.assign({},v,{renderingContent:R.renderingContent,Df:BQ(h.pings)},F,{kH:W3(a,J)(v),clientMetadata:new tA([new X3($8(M))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}):new C("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; dsn=function(R,F,h,a,J,M,v){var I={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Jb:"core"};F=Qo(R,F,h);if(F instanceof C)return F;h=[];h.push(new X3($8(M)));M==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&v!==void 0&&h.push(new hA(v));return Object.assign({},I,{renderingContent:R.renderingContent,Df:new Map([["impression",KRg(R)]])},F,{kH:W3(a,J)(I),clientMetadata:new tA(h),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}; u__=function(R,F,h,a,J,M,v){if(R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(v=g.t(R.renderingContent,zN))if(v=g.t(v.sidePanel,LZI)){var I={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Jb:"core"};F=Qo(R,F,h);R=F instanceof C?F:Object.assign({},I,{renderingContent:R.renderingContent,Df:new Map([["impression",v.impressionPings||[]],["resume",v.resumePings||[]]])},F,{kH:W3(a,J)(I),clientMetadata:new tA([new X3($8(M))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R= new C("DismissablePanelTextPortraitImageRenderer is missing");else R=new C("SqueezebackPlayerSidePanelRenderer is missing");else R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.t(R.renderingContent,xHO)?(v={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Jb:"core"},F=Qo(R,F,h),R=F instanceof C?F:Object.assign({},v,{renderingContent:R.renderingContent,Df:new Map},F,{kH:W3(a,J)(v),clientMetadata:new tA([new X3($8(M))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})): R=new C("CounterfactualRenderer is missing"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?R=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?R=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.t(R.renderingContent,K5)?(M={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType, Jb:"core"},F=Qo(R,F,h),R=F instanceof C?F:v?Object.assign({},M,{renderingContent:R.renderingContent,Df:new Map},F,{kH:W3(a,J)(M),clientMetadata:new tA([new hA(v)]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}):new C("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):R=new C("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.t(R.renderingContent,N5g)? (M={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,Jb:"core"},F=Qo(R,F,h),R=F instanceof C?F:Object.assign({},M,{renderingContent:R.renderingContent,Df:new Map([])},F,{kH:W3(a,J)(M),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new tA([])})):R=new C("AdsEngagementPanelSectionListViewModel is missing"):R=new C("LayoutType ["+R.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return R}; eYa=function(R,F,h,a,J,M,v,I,w,E,B,r){if((r==null?void 0:r.fG)===void 0||(r==null?void 0:r.LG)===void 0)return new C("Cached ad break range from cue point is missing");var Y=Qo(h,J,a.Z5);if(Y instanceof C)return Y;Y={layoutExitMuteTriggers:[],layoutExitNormalTriggers:Y.layoutExitNormalTriggers,layoutExitSkipTriggers:[],l$:[],layoutExitUserInputSubmittedTriggers:[]};if(g.t(h.renderingContent,m1))return R=t9i(R,F,h,Y,J,M,I,w,a.Z5,v,r.fG,r.LG),R instanceof C?R:R.T0===void 0?new C("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:R.layout,k6:[R.T0]};var p=g.t(h.renderingContent,Sw);if(p){if(!sr(h.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!Or(p))return new C("Invalid sequential layout");p=p.sequentialLayouts.map(function(k){return k.playerBytesAdLayoutRenderer}); R=lII(R,F,h,Y,p,J,a,M,v,w,I,E,r.fG,r.LG,B);return R instanceof C?R:{layout:R.S8,k6:R.k6}}return new C("Not able to convert a sequential layout")}; lII=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k){var H=Dsn(J,Y,p);if(H instanceof C)return H;var T=[],Z=[];H=g.N(H);for(var b=H.next();!b.done;b=H.next()){var O=b.value;b=R;var n=J[O.Ze],K=O,Rg=F;O=M;var U=v,vi=I,GI=w,gL=E,Em=B,hf=AQ(n);if(hf instanceof C)b=hf;else{var qa={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Jb:"adapter"};K=V9f(Rg,n,K,O);K instanceof C?b=K:(b=Object.assign({},qa,x8,{Df:hf,renderingContent:n.renderingContent,clientMetadata:new tA(K),kH:W3(vi,b)(qa), adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}),b=(n=N7(Em,b,O,U.Z5,vi,GI,gL,void 0,!0))?n instanceof C?n:{layout:b,T0:n}:new C("Expecting associatedInPlayerSlot"))}if(b instanceof C)return b;T.push(b.layout);Z.push(b.T0)}J={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Jb:"core"};F=[new xP(Number(h.driftRecoveryMs)),new sb(Y),new pf(p),new X3($8(F)),new oO(r),new QX({})];k&&F.push(new ut({}));return{S8:Object.assign({},J,a,{yQ:T,Df:new Map,clientMetadata:new tA(F), kH:W3(I,R)(J)}),k6:Z}}; t9i=function(R,F,h,a,J,M,v,I,w,E,B,r){if(!n5(h))return new C("Invalid PlayerBytesAdLayoutRenderer");var Y=AQ(h);if(Y instanceof C)return Y;var p={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Jb:"core"},k=g.t(h.renderingContent,m1);if(!k)return new C("Invalid rendering content for DAI media layout");k=BK(k,!1);B={iJ:k,Ze:0,zM:B,Fj:Math.min(B+k.videoLengthSeconds*1E3,r),MP:new ud(0,[k.videoLengthSeconds])};var H;r=(H=Number(h.driftRecoveryMs))!=null?H:void 0;F=V9f(F, h,B,J,r);if(F instanceof C)return F;R=Object.assign({},p,a,{Df:Y,renderingContent:h.renderingContent,clientMetadata:new tA(F),kH:W3(M,R)(p),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData});return(J=N7(v,R,J,w,M,E,I,void 0,!0))?J instanceof C?J:{layout:R,T0:J}:new C("Expecting associatedInPlayerSlot")}; noL=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H){var T=Qo(h,M,J.Z5);if(T instanceof C)return T;if(g.t(h.renderingContent,m1)){w=Us2([h],J,w);if(w instanceof C)return w;if(w.length!==1)return new C("Only expected one media layout.");R=CpO(R,F,h,T,w[0],void 0,"core",a,M,v,I,E,Y,p,k,J.Z5,r,void 0,H);return R instanceof C?R:{layout:R.layout,k6:R.T0?[R.T0]:[]}}var Z=g.t(h.renderingContent,Sw);if(Z){if(!sr(h.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!Or(Z))return new C("Invalid sequential layout"); Z=Z.sequentialLayouts.map(function(b){return b.playerBytesAdLayoutRenderer}); R=cln(R,F,h.adLayoutMetadata,T,Z,a,M,J,w,v,I,E,B,r,k,Y,p,H);return R instanceof C?R:{layout:R.S8,k6:R.k6}}return new C("Not able to convert a sequential layout")}; cln=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H,T,Z){var b=new di({current:null}),O=Us2(J,I,w);if(O instanceof C)return O;w=[];for(var n=[],K=void 0,Rg=0;Rg0&&(Rg.push(Z),Rg.push(new uU(K.adPodSkipTarget)));(M=E.get(K.externalVideoId))&&Rg.push(new Tp(M));M=Rg}else M= new C("Invalid vod media renderer")}if(M instanceof C)return M;R=Object.assign({},v,a,{Df:O,renderingContent:h.renderingContent,clientMetadata:new tA(M),kH:W3(B,R)(v),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData});h=g.t(h.renderingContent,m1);if(!h||!b2(h))return new C("Invalid meida renderer");r=GV(r,h.externalVideoId);r.instreamVideoAdRenderer=h;r.M5="AD_PLACEMENT_KIND_START";return p?(w=N7(Y,R,w,H,B,T,k,Z,!1),w instanceof C?w:FcI(R.layoutId,Y)&&w?{layout:Object.assign({},R,{clientMetadata:new tA(M.concat(new VP(w)))})}: {layout:R,T0:w}):{layout:R}}; WR7=function(R,F,h,a,J){if(!n5(F))return new C("Invalid PlayerBytesAdLayoutRenderer");var M=g.t(F.renderingContent,Ue);if(!M||M.durationMilliseconds===void 0)return new C("Invalid endcap renderer");var v={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Jb:"adapter"};a=[new qZ(M.durationMilliseconds),new Zv({impressionCommands:void 0,abandonCommands:M.abandonCommands?[{commandExecutorCommand:M.abandonCommands}]:void 0,completeCommands:M.completionCommands}),new X3(a), new JA("LAYOUT_TYPE_ENDCAP")];if(J){a.push(new n6(J.MP.adPodIndex-1));a.push(new kP(J.MP.adPodIndex));var I;a.push(new uU((I=J.adPodSkipTarget)!=null?I:-1))}return Object.assign({},v,x8,{renderingContent:F.renderingContent,clientMetadata:new tA(a),Df:M.skipPings?new Map([["skip",M.skipPings]]):new Map,kH:W3(h,R)(v),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}; N7=function(R,F,h,a,J,M,v,I,w){R=R.filter(function(r){return r.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&r.adSlotMetadata.triggeringSourceLayoutId===F.layoutId}); if(R.length!==0){if(R.length!==1)return new C("Invalid InPlayer slot association for the given PlayerBytes layout");R=R[0];v=XDa(R,M,h,a,v);if(v instanceof C)return v;var E;M={slotId:R.adSlotMetadata.slotId,slotType:R.adSlotMetadata.slotType,slotPhysicalPosition:(E=R.adSlotMetadata.slotPhysicalPosition)!=null?E:1,Jb:"core",slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:v.slotExpirationTriggers};E=g.t(R.fulfillmentContent.fulfilledLayout, fCm);if(!E||!A92(E))return new C("Invalid InPlayerAdLayoutRenderer");v={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,Jb:"core"};h=Qo(E,h,a);if(h instanceof C)return h;a=[];var B=E.adLayoutMetadata.layoutType;w&&a.push(new QX({}));if(B==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")a.push.apply(a,g.S(hm2(R.adSlotMetadata.triggerEvent,F)));else if(B==="LAYOUT_TYPE_ENDCAP"||B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){a.push(new X3($8(R.adSlotMetadata.triggerEvent))); if(B==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new C("Cannot parse endcap layout since AdUxReadyApi is not provided");I&&a.push(I)}else return new C("Not able to parse an SDF InPlayer layout");J=Object.assign({},v,h,{renderingContent:E.renderingContent,Df:new Map,kH:W3(J,M)(v),clientMetadata:new tA(a),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},M,{fulfilledLayout:J,clientMetadata:new tA([])})}}; hm2=function(R,F){var h=[];h.push(new X3($8(R)));h.push(new hA(F.layoutId));(R=lt(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&h.push(new gZ(R));(R=lt(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&h.push(new di(R));(R=lt(F.clientMetadata,"metadata_type_remote_slots_data"))&&h.push(new Tp(R));(R=lt(F.clientMetadata,"metadata_type_ad_next_params"))&&h.push(new f6(R));(R=lt(F.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&h.push(new jT(R));(R= lt(F.clientMetadata,"metadata_type_ad_pod_info"))&&h.push(new eT(R));(F=lt(F.clientMetadata,"metadata_type_ad_video_id"))&&h.push(new Pe(F));return h}; Rmn=function(R,F,h,a,J,M){function v(E){return HK(F,E)} var I=a.vk.inPlayerSlotId,w={layoutId:a.vk.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Jb:"core"};h={slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:new to(v,R),slotFulfillmentTriggers:[new gk(v,I)],slotExpirationTriggers:[new GN(v,I),new JO(v,h)]};R=Object.assign({},w,{layoutExitNormalTriggers:[new D5(v,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Df:new Map,clientMetadata:new tA([new C6(a.vk), new X3(a.adPlacementConfig),J]),kH:W3(M,h)(w),adLayoutLoggingData:a.vk.adLayoutLoggingData});return Object.assign({},h,{clientMetadata:new tA([new NZ(R)])})}; FcI=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next())if(h=h.value,h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var a=g.t(h.fulfillmentContent.fulfilledLayout,tO);if(a&&(a=g.t(a.renderingContent,zN))&&a.associatedPlayerBytesLayoutId===R)return h}}; XDa=function(R,F,h,a,J){var M=amL(M7(R.slotEntryTrigger,h,a),J,R,F);if(M instanceof C)return M;for(var v=[],I=g.N(R.slotFulfillmentTriggers),w=I.next();!w.done;w=I.next()){w=M7(w.value,h,a);if(w instanceof C)return w;v.push(w)}v=Jb7(v,J,R,F);F=[];R=g.N(R.slotExpirationTriggers);for(J=R.next();!J.done;J=R.next()){J=M7(J.value,h,a);if(J instanceof C)return J;F.push(J)}return{slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:F}}; amL=function(R,F,h,a){return F&&h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R instanceof dv?new nq(function(J){return HK(a,J)},h.adSlotMetadata.slotId):R}; Jb7=function(R,F,h,a){return F&&h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?R.map(function(J){return J instanceof gk?new wk(function(M){return HK(a,M)},h.adSlotMetadata.slotId):J}):R}; Qo=function(R,F,h){for(var a=[],J=g.N(R.layoutExitNormalTriggers||[]),M=J.next();!M.done;M=J.next()){M=M7(M.value,F,h);if(M instanceof C)return M;a.push(M)}J=[];M=g.N(R.layoutExitSkipTriggers||[]);for(var v=M.next();!v.done;v=M.next()){v=M7(v.value,F,h);if(v instanceof C)return v;J.push(v)}M=[];v=g.N(R.layoutExitMuteTriggers||[]);for(var I=v.next();!I.done;I=v.next()){I=M7(I.value,F,h);if(I instanceof C)return I;M.push(I)}v=[];R=g.N(R.layoutExitUserInputSubmittedTriggers||[]);for(I=R.next();!I.done;I= R.next()){I=M7(I.value,F,h);if(I instanceof C)return I;v.push(I)}return{layoutExitNormalTriggers:a,layoutExitSkipTriggers:J,layoutExitMuteTriggers:M,layoutExitUserInputSubmittedTriggers:v,l$:[]}}; AQ=function(R){var F=g.t(R.renderingContent,m1);if(F==null?0:F.pings)return BQ(F.pings);R=g.t(R.renderingContent,Ue);return(R==null?0:R.skipPings)?new Map([["skip",R.skipPings]]):new Map}; V9f=function(R,F,h,a,J){F=g.t(F.renderingContent,m1);if(!F)return new C("Invalid rendering content for DAI media layout");R=[new zS(a),new Eb(h.iJ.videoLengthSeconds),new B3(h.iJ.playerVars),new sb(h.zM),new pf(h.Fj),new kP(h.Ze),new X3($8(R)),new Pe(h.iJ.adVideoId),new eT(h.MP),F.sodarExtensionData&&new YP(F.sodarExtensionData),new gZ({current:null}),new QX({}),new Ob(Ee(F.pings))].filter(oo7);J!==void 0&&R.push(new xP(J));return R}; Dsn=function(R,F,h){R=R.map(function(w){return BK(g.t(w.renderingContent,m1),!1)}); var a=R.map(function(w){return w.videoLengthSeconds}),J=a.map(function(w,E){return new ud(E,a)}),M=F,v=h,I=[]; R.forEach(function(w,E){v=Math.min(M+w.videoLengthSeconds*1E3,h);vK(w.playerVars,J[E]);I.push({iJ:w,zM:M,Fj:v,Ze:E,MP:J[E]});M=v}); return I}; Us2=function(R,F,h){for(var a=[],J=g.N(R),M=J.next();!M.done;M=J.next())if(M=g.t(M.value.renderingContent,m1)){if(!b2(M))return new C("Invalid vod media renderer");a.push(MT7(M))}J=a.map(function(r){return r.qP}); M=[];for(var v=0,I=0;I0?gL:-1;else if(qa= g.t(hf,Ue)){hf=sZ7(R,F,h,qa,M,H,I,U,gL);if(hf instanceof C){p=hf;break a}hf=hf(Y);T.push(hf.Rg);Z=[].concat(g.S(hf.KX),g.S(Z));b=[].concat(g.S(hf.p$),g.S(b));hf.T0&&(GI=[hf.T0].concat(g.S(GI)))}else if(qa=g.t(hf,Xn)){if(p===void 0){p=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:qa});break a}hf=QZi(R,F,h,M,qa,Rg,I,p,H,oI(B,"supports_multi_step_on_desktop"));if(hf instanceof C){p=hf;break a}hf=hf(Y);T.push(hf.Rg);hf.T0&&GI.push(hf.T0); Z=[].concat(g.S(hf.KX),g.S(Z));b=[].concat(g.S(hf.p$),g.S(b));O=[].concat(g.S(hf.QA),g.S(O));n=[].concat(g.S(hf.xP),g.S(n));K=[Rg].concat(g.S(K))}else if(hf=g.t(hf,ew)){hf=$ui(R,F,h,M,hf,Rg,I,H);if(hf instanceof C){p=hf;break a}hf=hf(Y);T.push(hf.Rg);hf.T0&&GI.push(hf.T0);b=[].concat(g.S(hf.p$),g.S(b))}else{p=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={yQ:T,layoutExitSkipTriggers:Z,layoutExitUserInputSubmittedTriggers:O,l$:n,layoutExitMuteTriggers:b,Hw:K,k6:GI}}}else a:if(H= qi7(a,h,B),H instanceof C)p=H;else{T=0;Z=[];b=[];O=[];n=[];K=[];Rg=[];U=new Gp({current:null});vi=new di({current:null});GI=!1;Em=[];gL=-1;k=g.N(a);for(hf=k.next();!hf.done;hf=k.next())if(hf=hf.value,g.t(hf,oq)){hf=peB(F,h,g.t(hf,oq),I);if(hf instanceof C){p=hf;break a}hf=hf(Y);Z.push(hf.Rg);b=[].concat(g.S(hf.KX),g.S(b));O=[].concat(g.S(hf.p$),g.S(O));hf.T0&&(Em=[hf.T0].concat(g.S(Em)))}else if(g.t(hf,m1)){gL=r3(g.t(hf,m1),h,B);if(gL instanceof Kf){p=new C(gL);break a}hf=new ud(T,H);hf=fm7(F,gL.layoutId, gL.AX,h,Y8(gL.playerVars,gL.HS,v,E,hf),gL.qP,M,hf,I(Y),vi,w.get(gL.AX.externalVideoId),void 0,r);T++;Z.push(hf.Rg);b=[].concat(g.S(hf.KX),g.S(b));O=[].concat(g.S(hf.p$),g.S(O));GI||(Rg.push(vi),GI=!0);gL=(gL=gL.AX.adPodSkipTarget)&&gL>0?gL:-1}else if(g.t(hf,Ue)){hf=sZ7(R,F,h,g.t(hf,Ue),M,T,I,vi,gL);if(hf instanceof C){p=hf;break a}hf=hf(Y);Z.push(hf.Rg);b=[].concat(g.S(hf.KX),g.S(b));O=[].concat(g.S(hf.p$),g.S(O));hf.T0&&(Em=[hf.T0].concat(g.S(Em)))}else if(g.t(hf,Xn)){if(p===void 0){p=new C("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.t(hf,Xn)});break a}hf=QZi(R,F,h,M,g.t(hf,Xn),U,I,p,T,oI(B,"supports_multi_step_on_desktop"));if(hf instanceof C){p=hf;break a}hf=hf(Y);Z.push(hf.Rg);hf.T0&&Em.push(hf.T0);b=[].concat(g.S(hf.KX),g.S(b));O=[].concat(g.S(hf.p$),g.S(O));n=[].concat(g.S(hf.QA),g.S(n));K=[].concat(g.S(hf.xP),g.S(K));Rg=[U].concat(g.S(Rg))}else if(g.t(hf,ew)){hf=$ui(R,F,h,M,g.t(hf,ew),U,I,T);if(hf instanceof C){p=hf;break a}hf=hf(Y);Z.push(hf.Rg);hf.T0&&Em.push(hf.T0);O=[].concat(g.S(hf.p$),g.S(O))}else{p= new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={yQ:Z,layoutExitSkipTriggers:b,layoutExitUserInputSubmittedTriggers:n,l$:K,layoutExitMuteTriggers:O,Hw:Rg,k6:Em}}p instanceof C?Y=p:(K=Y.slotId,H=p.yQ,T=p.layoutExitSkipTriggers,Z=p.layoutExitMuteTriggers,b=p.layoutExitUserInputSubmittedTriggers,O=p.Hw,Y=I(Y),n=J?J.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",K=J?J.layoutId:Xt(F.D.get(),n,K),Rg={layoutId:K,layoutType:n,Jb:"core"},Y={layout:{layoutId:K,layoutType:n,Df:new Map, layoutExitNormalTriggers:[new aq(F.B,K)],layoutExitSkipTriggers:T,layoutExitMuteTriggers:Z,layoutExitUserInputSubmittedTriggers:b,l$:[],Jb:"core",clientMetadata:new tA([new IO(H)].concat(g.S(O))),kH:Y(Rg)},k6:p.k6});return Y}}; qi7=function(R,F,h){var a=[];R=g.N(R);for(var J=R.next();!J.done;J=R.next())if(J=J.value,g.t(J,m1)){J=r3(g.t(J,m1),F,h);if(J instanceof Kf)return new C(J);a.push(J.qP)}return a}; Z6n=function(R,F,h,a,J,M,v,I){if(!mHT(h,I===void 0?!1:I))return new C("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:h});var w=iJ(h);if(w<=0)return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h});var E=new Gp({current:null}),B=von(R,F,h,E,a,M,v);return jZn(R,a,M,w,J,function(r,Y){var p=r.slotId,k=w3(h);r=v(r);var H,T=(H=q7(F,a,h.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?H: Xt(F.D.get(),"LAYOUT_TYPE_MEDIA_BREAK",p);p={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Jb:"core"};H=B(T,Y);var Z=lt(H.clientMetadata,"metadata_type_fulfilled_layout");Z||gf("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");k=[new X3(a),new qZ(w),new Zv(k),E];Z&&k.push(new JA(Z.layoutType));return{z7:{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Df:new Map,layoutExitNormalTriggers:[new aq(F.B,T)],layoutExitSkipTriggers:[new vq(F.B, Y.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Bq(F.B,Y.layoutId)],l$:[],Jb:"core",clientMetadata:new tA(k),kH:r(p)},nu:H}})}; b6i=function(R){if(!ebL(R))return!1;var F=g.t(R.adVideoStart,SO);return F?g.t(R.linearAd,m1)&&jw(F)?!0:(gf("Invalid Sandwich with notify"),!1):!1}; Sii=function(R){if(R.linearAds==null)return!1;R=g.t(R.adStart,SO);return R?jw(R)?!0:(gf("Invalid LASR with notify"),!1):!1}; O67=function(R){if(!Xf2(R))return!1;R=g.t(R.adStart,SO);return R?jw(R)?!0:(gf("Invalid LASR with notify"),!1):!1}; O0=function(R,F,h,a,J,M,v,I,w,E){this.L=R;this.D=F;this.B=h;this.pI=a;this.DN=J;this.K=M;this.rA=v;this.L$=I;this.ys=w;this.loadPolicy=E===void 0?1:E}; aL=function(R,F,h,a,J,M,v,I,w,E){var B=[];if(F.length===0&&a.length===0&&h.length===0)return B;F=F.filter(ZA);var r=h.filter(b4_),Y=a.filter(ZA),p=new Map,k=msi(F),H=h.some(function(m2){var Ru;return(m2==null?void 0:(Ru=m2.adSlotMetadata)==null?void 0:Ru.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),T=h.some(function(m2){var Ru; return(m2==null?void 0:(Ru=m2.adSlotMetadata)==null?void 0:Ru.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Z=h.some(function(m2){var Ru; return(m2==null?void 0:(Ru=m2.adSlotMetadata)==null?void 0:Ru.slotType)==="SLOT_TYPE_IN_PLAYER"}),b=h.some(function(m2){var Ru,ng; return(m2==null?void 0:(Ru=m2.adSlotMetadata)==null?void 0:Ru.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(m2==null?void 0:(ng=m2.adSlotMetadata)==null?void 0:ng.slotType)==="SLOT_TYPE_ABOVE_FEED"}); h=h.some(function(m2){var Ru;return(m2==null?void 0:(Ru=m2.adSlotMetadata)==null?void 0:Ru.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(H||T||Z||b||h)E=zYf(r,F,I,J,k,R.DN.get(),R.loadPolicy,p,R.pI.get(),R.L.get(),Z,v,w,E),E instanceof C?gf(E,void 0,void 0,{contentCpn:J}):B.push.apply(B,g.S(E));E=g.N(F);for(h=E.next();!h.done;h=E.next())h=h.value,T=mug(R,p,h,J,M,v,H,I,k,w,r),T instanceof C?gf(T,void 0,void 0,{renderer:h.renderer,config:h.config.adPlacementConfig,kind:h.config.adPlacementConfig.kind,contentCpn:J,daiEnabled:v}):B.push.apply(B,g.S(T));oHi(R.pI.get())||(M=Xen(R,Y,J,I,k,p),B.push.apply(B,g.S(M)));if(R.K===null||v&&!I.s3){var O, n,K;R=I.Mt&&F.length===1&&((O=F[0].config)==null?void 0:(n=O.adPlacementConfig)==null?void 0:n.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((K=F[0].renderer)==null?void 0:K.adBreakServiceRenderer);if(!B.length&&!R){var Rg,U,vi,GI;gf("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":F.length,contentCpn:J,"first APR kind":(Rg=F[0])==null?void 0:(U=Rg.config)==null?void 0:(vi=U.adPlacementConfig)==null?void 0:vi.kind,renderer:(GI=F[0])==null?void 0: GI.renderer})}return B}O=a.filter(ZA);B.push.apply(B,g.S(aIi(p,O,R.D.get(),R.K,J,H)));if(!B.length){var gL,Em,hf,qa;gf("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":F.length,contentCpn:J,daiEnabled:v.toString(),"first APR kind":(gL=F[0])==null?void 0:(Em=gL.config)==null?void 0:(hf=Em.adPlacementConfig)==null?void 0:hf.kind,renderer:(qa=F[0])==null?void 0:qa.renderer})}return B}; Xen=function(R,F,h,a,J,M){function v(Y){return W3(R.DN.get(),Y)} var I=[];F=g.N(F);for(var w=F.next();!w.done;w=F.next()){w=w.value;var E=w.renderer,B=E.sandwichedLinearAdRenderer,r=E.linearAdSequenceRenderer;B&&b6i(B)?(gf("Found AdNotify with SandwichedLinearAdRenderer"),r=g.t(B.adVideoStart,SO),B=g.t(B.linearAd,m1),g3(M,E,w.config.adPlacementConfig.kind),E=void 0,r=LRL((E=r)==null?void 0:E.layout.layoutId,R.D.get(),R.B.get(),w.config.adPlacementConfig,w.adSlotLoggingData,B,h,a,v,J,R.loadPolicy,R.pI.get(),R.DN.get()),r instanceof C?gf(r):I.push.apply(I,g.S(r))): r&&(!r.adLayoutMetadata&&Sii(r)||r.adLayoutMetadata&&O67(r))&&(gf("Found AdNotify with LinearAdSequenceRenderer"),g3(M,E,w.config.adPlacementConfig.kind),E=void 0,B=Ab2((E=g.t(r.adStart,SO))==null?void 0:E.layout.layoutId,R.D.get(),R.B.get(),w.config.adPlacementConfig,w.adSlotLoggingData,r.linearAds,sr(r.adLayoutMetadata)?r.adLayoutMetadata:void 0,h,a,v,J,R.loadPolicy,R.pI.get()),B instanceof C?gf(B):I.push.apply(I,g.S(B)))}return I}; mug=function(R,F,h,a,J,M,v,I,w,E,B){function r(Z){return W3(R.DN.get(),Z)} var Y=h.renderer,p=h.config.adPlacementConfig,k=p.kind,H=h.adSlotLoggingData,T=I.s3&&k==="AD_PLACEMENT_KIND_START";T=M&&!T;if(Y.adsEngagementPanelRenderer!=null)return IL(F,h.elementId,k,Y.adsEngagementPanelRenderer.isContentVideoEngagementPanel,Y.adsEngagementPanelRenderer.adVideoId,Y.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.adsEngagementPanelRenderer;Z=W3(R.DN.get(),Z);return mL(K,Rg,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new yP(U),b,O,U.impressionPings,Z,Y.adsEngagementPanelRenderer.adLayoutLoggingData,n)}),[]; if(Y.adsEngagementPanelLayoutViewModel)return IL(F,h.elementId,k,Y.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,Y.adsEngagementPanelLayoutViewModel.adVideoId,Y.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.adsEngagementPanelLayoutViewModel;Z=W3(R.DN.get(),Z);return oL(K,Rg,"LAYOUT_TYPE_PANEL",new qu(U),b,O,Z,Y.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,n)}),[]; if(Y.actionCompanionAdRenderer!=null){if(Y.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return c9O(R.D.get(),R.K,R.B.get(),Y.actionCompanionAdRenderer,p,H,a,r);IL(F,h.elementId,k,Y.actionCompanionAdRenderer.isContentVideoCompanion,Y.actionCompanionAdRenderer.adVideoId,Y.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.actionCompanionAdRenderer;Z=W3(R.DN.get(),Z);return mL(K,Rg,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new L6(U),b,O,U.impressionPings,Z,Y.actionCompanionAdRenderer.adLayoutLoggingData,n)})}else if(Y.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(Y.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return WZO(R.D.get(),R.K,R.B.get(),Y.topBannerImageTextIconButtonedLayoutViewModel,p,H,a,r); IL(F,h.elementId,k,Y.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,Y.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,Y.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.topBannerImageTextIconButtonedLayoutViewModel;Z=W3(R.DN.get(),Z);return oL(K,Rg,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new TS(U),b,O,Z,Y.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,n)})}else if(Y.imageCompanionAdRenderer)IL(F, h.elementId,k,Y.imageCompanionAdRenderer.isContentVideoCompanion,Y.imageCompanionAdRenderer.adVideoId,Y.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.imageCompanionAdRenderer; Z=W3(R.DN.get(),Z);return mL(K,Rg,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new bU(U),b,O,U.impressionPings,Z,Y.imageCompanionAdRenderer.adLayoutLoggingData,n)}); else if(Y.bannerImageLayoutViewModel)IL(F,h.elementId,k,Y.bannerImageLayoutViewModel.isContentVideoCompanion,Y.bannerImageLayoutViewModel.adVideoId,Y.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.bannerImageLayoutViewModel;Z=W3(R.DN.get(),Z);return oL(K,Rg,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ST(U),b,O,Z,Y.bannerImageLayoutViewModel.adLayoutLoggingData,n)}); else if(Y.shoppingCompanionCarouselRenderer)IL(F,h.elementId,k,Y.shoppingCompanionCarouselRenderer.isContentVideoCompanion,Y.shoppingCompanionCarouselRenderer.adVideoId,Y.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,p,H,function(Z,b,O,n){var K=R.B.get(),Rg=Z.slotId,U=Y.shoppingCompanionCarouselRenderer;Z=W3(R.DN.get(),Z);return mL(K,Rg,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Oi(U),b,O,U.impressionPings,Z,Y.shoppingCompanionCarouselRenderer.adLayoutLoggingData,n)}); else if(Y.adBreakServiceRenderer){if(!UHO(h))return[];if(k==="AD_PLACEMENT_KIND_PAUSE")return VGi(R.D.get(),p,H,h.renderer.adBreakServiceRenderer,a);if(k!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&k!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return DH_(R.D.get(),p,H,h.renderer.adBreakServiceRenderer,a,J,M);I.Mt||gf("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:k,adPlacementConfig:p,daiEnabledForContentVideo:String(M),isServedFromLiveInfra:String(I.Mt),clientPlaybackNonce:I.clientPlaybackNonce}); if(k==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!R.rA)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!R.ys)return new C("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");R.ys.t_({adPlacementRenderer:h,contentCpn:a,Z5:J});J=R.rA.get().getCurrentTimeSec(1,!1);return em2(R.D.get(),h.renderer.adBreakServiceRenderer,p,J,a,H,M)}if(!R.L$)return new C("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); R.L$.t_({adPlacementRenderer:h,contentCpn:a,Z5:J})}else{if(Y.clientForecastingAdRenderer)return Ima(R.D.get(),R.B.get(),p,H,Y.clientForecastingAdRenderer,a,J,r);if(Y.invideoOverlayAdRenderer)return BiL(R.D.get(),R.B.get(),p,H,Y.invideoOverlayAdRenderer,a,J,r);if(Y.instreamAdPlayerOverlayRenderer)return weB(R.D.get(),R.B.get(),p,H,Y.instreamAdPlayerOverlayRenderer,a,r);if((Y.linearAdSequenceRenderer||Y.instreamVideoAdRenderer)&&T)return QNg(R.D.get(),R.B.get(),h,a,r,E,!R.pI.get().U.W().X("html5_override_ad_video_length_killswitch")); if(Y.linearAdSequenceRenderer&&!T){if(v)return[];g3(F,Y,k);if(Y.linearAdSequenceRenderer.adLayoutMetadata){if(!Xf2(Y.linearAdSequenceRenderer))return new C("Received invalid LinearAdSequenceRenderer.")}else if(Y.linearAdSequenceRenderer.linearAds==null)return new C("Received invalid LinearAdSequenceRenderer.");if(g.t(Y.linearAdSequenceRenderer.adStart,SO)){gf("Found AdNotify in LinearAdSequenceRenderer");h=g.t(Y.linearAdSequenceRenderer.adStart,SO);if(!QS7(h))return new C("Invalid AdMessageRenderer."); M=Y.linearAdSequenceRenderer.linearAds;return xua(R.L.get(),R.D.get(),R.B.get(),R.DN.get(),p,H,h,sr(Y.linearAdSequenceRenderer.adLayoutMetadata)?Y.linearAdSequenceRenderer.adLayoutMetadata:void 0,M,a,J,I,r,w,R.loadPolicy,R.pI.get())}return ybm(R.D.get(),R.B.get(),p,H,Y.linearAdSequenceRenderer.linearAds,sr(Y.linearAdSequenceRenderer.adLayoutMetadata)?Y.linearAdSequenceRenderer.adLayoutMetadata:void 0,a,J,I,r,w,R.loadPolicy,R.pI.get(),B)}if(!Y.remoteSlotsRenderer||M){if(Y.instreamVideoAdRenderer&& !T){if(v)return[];g3(F,Y,k);return jNn(R.D.get(),R.B.get(),p,H,Y.instreamVideoAdRenderer,a,J,I,r,w,R.loadPolicy,R.pI.get(),R.DN.get(),B)}if(Y.instreamSurveyAdRenderer)return Z6n(R.D.get(),R.B.get(),Y.instreamSurveyAdRenderer,p,H,a,r,oI(R.pI.get(),"supports_multi_step_on_desktop"));if(Y.sandwichedLinearAdRenderer!=null)return ebL(Y.sandwichedLinearAdRenderer)?g.t(Y.sandwichedLinearAdRenderer.adVideoStart,SO)?(gf("Found AdNotify in SandwichedLinearAdRenderer"),h=g.t(Y.sandwichedLinearAdRenderer.adVideoStart, SO),QS7(h)?(M=g.t(Y.sandwichedLinearAdRenderer.linearAd,m1))?Twa(h,M,p,R.L.get(),R.D.get(),R.B.get(),R.DN.get(),H,a,J,I,r,w,R.loadPolicy,R.pI.get()):new C("Missing IVAR from Sandwich"):new C("Invalid AdMessageRenderer.")):ybm(R.D.get(),R.B.get(),p,H,[Y.sandwichedLinearAdRenderer.adVideoStart,Y.sandwichedLinearAdRenderer.linearAd],void 0,a,J,I,r,w,R.loadPolicy,R.pI.get()):new C("Received invalid SandwichedLinearAdRenderer.");if(Y.videoAdTrackingRenderer!=null)return gH_(R.D.get(),R.B.get(),Y.videoAdTrackingRenderer, p,H,a,J,I.XO,r)}}return[]}; XT=function(R,F,h,a,J,M,v,I){g.d.call(this);var w=this;this.D=R;this.K=F;this.Iz=a;this.rA=J;this.pI=M;this.cG=v;this.Ei=I;this.B=null;h.get().addListener(this);this.addOnDisposeCallback(function(){h.RR()||h.get().removeListener(w)}); a.get().addListener(this);this.addOnDisposeCallback(function(){a.RR()||a.get().removeListener(w)})}; u37=function(R,F,h){var a=R.rA.get().getCurrentTimeSec(1,!1);R.pI.get().U.W().Po()&&QJ(R.cG.get(),"sdai","onopp.1;evt."+h.event+";start."+h.startSecs.toFixed(3)+";d."+h.Rz.toFixed(3));hE(R.D.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var J=R.K.get(),M=F.adPlacementRenderer.renderer.adBreakServiceRenderer,v=F.contentCpn,I=F.adPlacementRenderer.adSlotLoggingData,w=eO(R.pI.get()),E=R.cG;if(J.pI.get().U.W().experiments.jl("enable_smearing_expansion_dai")){var B=J.pI.get();B=g.RI(B.U.W().experiments, "max_prefetch_window_sec_for_livestream_optimization");w=J.pI.get();var r=g.RI(w.U.W().experiments,"min_prefetch_offset_sec_for_livestream_optimization");w={YY:nH7(h),j_:!1,cueProcessedMs:a*1E3};var Y=h.startSecs+h.Rz;if(a===0)w.M3=new A$(0,Y*1E3);else{r=h.startSecs-r;var p=r-a;w.M3=p<=0?new A$(r*1E3,Y*1E3):new A$(Math.floor(a+Math.random()*Math.min(p,B))*1E3,Y*1E3)}B=w}else B={YY:nH7(h),j_:!1},Y=h.startSecs+h.Rz,h.startSecs<=a?w=new A$((h.startSecs-4)*1E3,Y*1E3):(r=Math.max(0,h.startSecs-a-10),w= new A$(Math.floor(a+Math.random()*(w?a===0?0:Math.min(r,5):r))*1E3,Y*1E3)),B.M3=w;M=JQ(J,M,v,B,I,[new wZ(h)]);ne(J.pI.get())&&QJ(E.get(),"abrsm","cpi."+h.identifier+";cps."+h.startSecs+";cpd."+h.Rz+";cts."+a+";rbf."+B.M3.start);E.get().U.Xw(h.startSecs-a,B.M3.start/1E3-a);return[M]})}; uJ=function(R){var F,h=(F=lt(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current;if(!h)return null;F=lt(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var a=R.layoutId,J=lt(R.clientMetadata,"metadata_type_content_cpn"),M=lt(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),v=lt(R.clientMetadata,"metadata_type_player_overlay_layout_renderer"),I=lt(R.clientMetadata,"metadata_type_player_underlay_renderer"),w=lt(R.clientMetadata, "metadata_type_ad_placement_config"),E=lt(R.clientMetadata,"metadata_type_video_length_seconds");var B=dZ(R.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?lt(R.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):dZ(R.clientMetadata,"metadata_type_layout_enter_ms")&&dZ(R.clientMetadata,"metadata_type_layout_exit_ms")?(lt(R.clientMetadata,"metadata_type_layout_exit_ms")-lt(R.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Z2:a,contentCpn:J,Ya:h,Jq:F,instreamAdPlayerOverlayRenderer:M, playerOverlayLayoutRenderer:v,instreamAdPlayerUnderlayRenderer:I,adPlacementConfig:w,videoLengthSeconds:E,pZ:B,inPlayerLayoutId:lt(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:lt(R.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; PUf=function(R,F){return du7(R,F)}; zmL=function(R,F){F=du7(R,F);if(!F)return null;var h;F.pZ=(h=lt(R.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:h.adBreakRemainingLengthSeconds;return F}; du7=function(R,F){var h,a=(h=lt(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:h.current;if(!a)return null;h=gs2(R,F);return{R$:vsn(R,F),adPlacementConfig:lt(R.clientMetadata,"metadata_type_ad_placement_config"),qK:h,contentCpn:lt(R.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:lt(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:lt(R.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:lt(R.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,pZ:void 0,Ya:a,Z2:R.layoutId,videoLengthSeconds:lt(R.clientMetadata,"metadata_type_video_length_seconds")}}; d3=function(R,F,h,a,J,M,v,I,w){g.d.call(this);this.L=R;this.S=F;this.N=h;this.K=a;this.B=J;this.D=M;this.DN=v;this.pI=I;this.qQ=w;this.j5=!0}; Kci=function(R,F,h){return SaO(R.B.get(),F.contentCpn,F.Z2,function(a){return OUi(R.D.get(),a.slotId,h,F.adPlacementConfig,F.Z2,W3(R.DN.get(),a))})}; PK=function(R,F,h,a,J,M,v,I){g.d.call(this);this.D=R;this.B=F;this.K=h;this.pI=a;this.L=J;this.qQ=M;this.rA=v;this.fV=I}; zV=function(R){g.d.call(this);this.B=R}; hE=function(R,F,h,a){R.B().Pf(F,a);h=h();R=R.B();R.lY.Qu("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",F,a,h);F=g.N(h);for(h=F.next();!h.done;h=F.next())a:{a=R;h=h.value;a.lY.ou("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",h);a.lY.ou("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",h);try{var J=a.B;if(g.jP(h.slotId))throw new C("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(II(J,h))throw new C("Duplicate registration for slot.",{slotId:h.slotId,slotEntryTriggerType:h.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!J.qF.SN.has(h.slotType))throw new C("No fulfillment adapter factory registered for slot of type: "+h.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!J.qF.yb.has(h.slotType))throw new C("No SlotAdapterFactory registered for slot of type: "+h.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");TW(J,"TRIGGER_CATEGORY_SLOT_ENTRY",h.slotEntryTrigger?[h.slotEntryTrigger]:[]);TW(J,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", h.slotFulfillmentTriggers);TW(J,"TRIGGER_CATEGORY_SLOT_EXPIRATION",h.slotExpirationTriggers);var M=a.B,v=h.slotType+"_"+h.slotPhysicalPosition,I=AB(M,v);if(II(M,h))throw new C("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");I.set(h.slotId,new WTi(h));M.B.set(v,I)}catch(vi){vi instanceof C&&vi.ib?(a.lY.z5("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",vi.ib,h),gf(vi,h,void 0,void 0,vi.If)):(a.lY.z5("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", h),gf(vi,h));break a}II(a.B,h).S=!0;try{var w=a.B,E=II(w,h),B=h.slotEntryTrigger,r=w.qF.jE.get(B.triggerType);r&&(r.b1("TRIGGER_CATEGORY_SLOT_ENTRY",B,h,null),E.KI.set(B.triggerId,r));for(var Y=g.N(h.slotFulfillmentTriggers),p=Y.next();!p.done;p=Y.next()){var k=p.value,H=w.qF.jE.get(k.triggerType);H&&(H.b1("TRIGGER_CATEGORY_SLOT_FULFILLMENT",k,h,null),E.oR.set(k.triggerId,H))}for(var T=g.N(h.slotExpirationTriggers),Z=T.next();!Z.done;Z=T.next()){var b=Z.value,O=w.qF.jE.get(b.triggerType);O&&(O.b1("TRIGGER_CATEGORY_SLOT_EXPIRATION", b,h,null),E.C.set(b.triggerId,O))}var n=w.qF.SN.get(h.slotType).get().build(w.K,h);E.Y=n;var K=w.qF.yb.get(h.slotType).get().build(w.N,h);K.init();E.D=K}catch(vi){vi instanceof C&&vi.ib?(a.lY.z5("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",vi.ib,h),gf(vi,h,void 0,void 0,vi.If)):(a.lY.z5("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",h),gf(vi,h));Me(a,h,!0);break a}a.lY.ou("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",h);a.B.wk(h);for(var Rg=g.N(a.D),U=Rg.next();!U.done;U= Rg.next())U.value.wk(h);EH(a,h)}}; Ke=function(R,F,h,a,J){g.d.call(this);var M=this;this.D=R;this.K=F;this.pV=h;this.context=J;this.B=new Map;a.get().addListener(this);this.addOnDisposeCallback(function(){a.RR()||a.get().removeListener(M)})}; dHn=function(R,F){var h=0x8000000000000;var a=0;for(var J=g.N(F.slotFulfillmentTriggers),M=J.next();!M.done;M=J.next())M=M.value,M instanceof WT?(h=Math.min(h,M.B.start),a=Math.max(a,M.B.end)):gf("Found unexpected fulfillment trigger for throttled slot.",F,null,{fulfillmentTrigger:M});a=new A$(h,a);h="throttledadcuerange:"+F.slotId;R.B.set(h,F);R.pV.get().addCueRange(h,a.start,a.end,!1,R);iW(R.context.pI.get())&&(F=a.start,a=a.end,J={},R.context.yz.z$("tcrr",(J.cid=h,J.sm=F,J.em=a,J)))}; tQ=function(){g.d.apply(this,arguments);this.j5=!0;this.o3=new Map;this.B=new Map}; lJ=function(R,F){R=g.N(R.o3.values());for(var h=R.next();!h.done;h=R.next())if(h.value.layoutId===F)return!0;return!1}; Dp=function(R,F){R=g.N(R.B.values());for(var h=R.next();!h.done;h=R.next()){h=g.N(h.value);for(var a=h.next();!a.done;a=h.next())if(a=a.value,a.layoutId===F)return a}gf("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.jP(F)),layoutId:F})}; tTm=function(){this.B=new Map}; lmB=function(R,F){this.callback=R;this.slot=F}; Vo=function(){}; Dui=function(R,F,h){this.callback=R;this.slot=F;this.rA=h}; VTg=function(R,F,h){this.callback=R;this.slot=F;this.rA=h;this.D=!1;this.B=0}; Uui=function(R,F,h){this.callback=R;this.slot=F;this.rA=h}; U0=function(R){this.rA=R}; Ce=function(R){g.d.call(this);this.K8=R;this.Rt=new Map}; cK=function(R,F){for(var h=[],a=g.N(R.Rt.values()),J=a.next();!J.done;J=a.next()){J=J.value;var M=J.trigger;M instanceof Bq&&M.triggeringLayoutId===F&&h.push(J)}h.length?k0(R.K8(),h):gf("Survey is submitted but no registered triggers can be activated.")}; WK=function(R,F,h){Ce.call(this,R);var a=this;this.pI=h;F.get().addListener(this);this.addOnDisposeCallback(function(){F.RR()||F.get().removeListener(a)})}; Rs=function(R){g.d.call(this);this.B=R;this.j5=!0;this.Rt=new Map;this.N=new Set;this.K=new Set;this.L=new Set;this.S=new Set;this.D=new Set}; FP=function(R){g.d.call(this);this.B=R;this.Rt=new Map}; hu=function(R,F){for(var h=[],a=g.N(R.Rt.values()),J=a.next();!J.done;J=a.next())J=J.value,J.trigger.B===F.layoutId&&h.push(J);h.length&&k0(R.B(),h)}; as=function(R,F,h){g.d.call(this);var a=this;this.B=R;this.context=h;this.Rt=new Map;F.get().addListener(this);this.addOnDisposeCallback(function(){F.RR()||F.get().removeListener(a)})}; Ju=function(R,F,h,a,J){g.d.call(this);var M=this;this.D=R;this.pV=F;this.rA=h;this.qQ=a;this.context=J;this.j5=!0;this.Rt=new Map;this.B=new Set;h.get().addListener(this);this.addOnDisposeCallback(function(){h.RR()||h.get().removeListener(M)})}; CUL=function(R,F,h,a,J,M,v,I,w,E){if(Oc(R.qQ.get(),1).clientPlaybackNonce!==w)throw new C("Cannot register CueRange-based trigger for different content CPN",{trigger:h});R.Rt.set(h.triggerId,{aF:new YS(F,h,a,J),cueRangeId:M});R.pV.get().addCueRange(M,v,I,E,R);iW(R.context.pI.get())&&(w={},R.context.yz.z$("crr",(w.ca=F,w.tt=h.triggerType,w.st=a.slotType,w.lt=J==null?void 0:J.layoutType,w.cid=M,w.sm=v,w.em=I,w)))}; cbi=function(R,F){R=g.N(R.Rt.entries());for(var h=R.next();!h.done;h=R.next()){var a=g.N(h.value);h=a.next().value;a=a.next().value;if(F===a.cueRangeId)return h}return""}; Mb=function(R,F){g.d.call(this);var h=this;this.L=R;this.D=new Map;this.K=new Map;this.B=null;F.get().addListener(this);this.addOnDisposeCallback(function(){F.RR()||F.get().removeListener(h)}); var a;this.B=((a=F.get().al)==null?void 0:a.slotId)||null}; WcL=function(R,F){var h=[];R=g.N(R.values());for(var a=R.next();!a.done;a=R.next())a=a.value,a.slot.slotId===F&&h.push(a);return h}; vl=function(R){g.d.call(this);this.B=R;this.j5=!0;this.Rt=new Map}; IU=function(R,F,h){F=F.layoutId;for(var a=[],J=g.N(R.Rt.values()),M=J.next();!M.done;M=J.next())if(M=M.value,M.trigger instanceof aq){var v;if(v=M.trigger.layoutId===F){v=h;var I=t_i.get(M.category);v=I?I===v:!1}v&&a.push(M)}a.length&&k0(R.B(),a)}; gE=function(R){g.d.call(this);this.B=R;this.j5=!0;this.Rt=new Map}; Ga=function(R,F,h,a,J){g.d.call(this);var M=this;this.S=R;this.Iz=F;this.rA=h;this.cG=a;this.B=null;this.L=!1;this.j5=!0;this.Rt=new Map;F.get().addListener(this);this.addOnDisposeCallback(function(){F.RR()||F.get().removeListener(M)}); J.get().addListener(this);this.addOnDisposeCallback(function(){J.RR()||J.get().removeListener(M)})}; hoI=function(R){R.B&&(R.L=!0,R.D&&(R.D.stop(),R.D.start()),Ro2(R,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),QJ(R.cG.get(),"ads_ce","bdc."+FxT(R).length))}; Ro2=function(R,F){for(var h=[],a=g.N(R.Rt.values()),J=a.next();!J.done;J=a.next())J=J.value,J.trigger.triggerType===F&&h.push(J);h.length>0&&k0(R.S(),h)}; Is=function(R,F,h,a,J){for(var M=[],v=g.N(R.Rt.values()),I=v.next();!I.done;I=v.next()){var w=I=I.value,E=w.trigger;w=w.slot;if(E.triggerType===F){if(E instanceof U5||E instanceof Cq||E instanceof Rq){if(J&&E.breakDurationMs!==h)continue;if(!J&&E.breakDurationMs===h)continue;if(a.has(w.slotId))continue}M.push(I)}}M.length>0&&k0(R.S(),M)}; avi=function(R,F){F=(F.Rz+1)*1E3;var h=void 0;R=g.N(R.Rt.values());for(var a=R.next();!a.done;a=R.next()){var J=a.value;a=J.trigger;J=J.slot;a instanceof U5&&a.breakDurationMs<=F&&(!h||a.breakDurationMs>h.trigger.breakDurationMs)&&(h={slot:J,trigger:a})}return h}; JAm=function(R){R=R.adPlacementRenderer.config.adPlacementConfig;if(!R.prefetchModeConfig||!R.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;R=Number(R.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(R)||R<=0?0:Math.floor(Math.random()*R)}; M37=function(R){R=R.adPlacementRenderer.config.adPlacementConfig;if(R.prefetchModeConfig&&R.prefetchModeConfig.cacheFetchRefreshDurationMs&&(R=Number(R.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(R)||R<=0)))return R}; ia=function(R){R.B=null;R.Rt.clear();R.D&&R.D.stop();R.N&&R.N.stop();var F;(F=R.K)==null||F.stop();delete R.K}; FxT=function(R){var F=[];R=g.N(R.Rt.values());for(var h=R.next();!h.done;h=R.next())h=h.value.trigger,h instanceof U5&&F.push(h.breakDurationMs);return F}; wE=function(R){g.d.call(this);this.K=R;this.j5=!0;this.Rt=new Map;this.B=new Map;this.D=new Map}; vPn=function(R,F){var h=[];if(F=R.B.get(F.layoutId)){F=g.N(F);for(var a=F.next();!a.done;a=F.next())(a=R.D.get(a.value.triggerId))&&h.push(a)}return h}; Eu=function(R){g.d.call(this);this.B=R;this.Rt=new Map}; gP7=function(R,F){for(var h=[],a=g.N(R.Rt.values()),J=a.next();!J.done;J=a.next())J=J.value,J.trigger instanceof nq&&J.trigger.slotId===F&&h.push(J);h.length>=1&&k0(R.B(),h)}; GpI=function(R,F){var h={slotId:ai(F,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Jb:"surface",clientMetadata:new tA([])},a=Object,J=a.assign;F=Xt(F,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h.slotId);F={layoutId:F,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Df:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"surface", clientMetadata:new tA([]),kH:nG2(!1,h.slotId,h.slotType,h.slotPhysicalPosition,h.Jb,h.slotEntryTrigger,h.slotFulfillmentTriggers,h.slotExpirationTriggers,F,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return J.call(a,{},R,{Ed:!0,slot:h,layout:F})}; lCB=function(R,F,h,a){var J=R.kind;a=a?!1:!R.hideCueRangeMarker;switch(J){case "AD_PLACEMENT_KIND_START":return a={YY:new A$(-0x8000000000000,-0x8000000000000),j_:a},h!=null&&(a.M3=new A$(-0x8000000000000,-0x8000000000000)),a;case "AD_PLACEMENT_KIND_END":return a={YY:new A$(0x7ffffffffffff,0x8000000000000),j_:a},h!=null&&(a.M3=new A$(Math.max(0,F-h),0x8000000000000)),a;case "AD_PLACEMENT_KIND_MILLISECONDS":J=R.adTimeOffset;J.offsetStartMilliseconds||gf("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); J.offsetEndMilliseconds||gf("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");R=Number(J.offsetStartMilliseconds);J=Number(J.offsetEndMilliseconds);J===-1&&(J=F);if(Number.isNaN(R)||Number.isNaN(J)||R>J)return new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:R,offsetEndMs:J},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",J===F&&R-500<=J);a={YY:new A$(R,J),j_:a};if(h!=null){R=Math.max(0,R-h);if(R===J)return a;a.M3=new A$(R,J)}return a; default:return new C("AdPlacementKind not supported in convertToRange.",{kind:J,adPlacementConfig:R})}}; nH7=function(R){var F=R.startSecs*1E3;return new A$(F,F+R.Rz*1E3)}; Ivi=function(R){if(!R||!R.adPlacements&&!R.adSlots)return!1;for(var F=g.N(R.adPlacements||[]),h=F.next();!h.done;h=F.next())if(h=h.value)if(h=h.adPlacementRenderer,h!=null&&(h.config&&h.config.adPlacementConfig&&h.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;R=g.N(R.adSlots||[]);for(F=R.next();!F.done;F=R.next()){var a=h=void 0;if(((h=g.t(F.value,hQ))==null?void 0:(a=h.adSlotMetadata)==null?void 0:a.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Bl=function(R){this.pI=R;this.D=new Map;this.B=new Map;this.K=new Map}; ai=function(R,F){if(rE(R.pI.get())){var h=R.D.get(F)||0;h++;R.D.set(F,h);return F+"_"+h}return g.sY(16)}; Xt=function(R,F,h){if(rE(R.pI.get())){var a=R.B.get(F)||0;a++;R.B.set(F,a);return h+"_"+F+"_"+a}return g.sY(16)}; HK=function(R,F){if(rE(R.pI.get())){var h=R.K.get(F)||0;h++;R.K.set(F,h);return F+"_"+h}return g.sY(16)}; ifg=function(R){var F=[new hA(R.Z2),new v3(R.Ya),new X3(R.adPlacementConfig),new Eb(R.videoLengthSeconds),new yX(R.pZ)];R.instreamAdPlayerOverlayRenderer&&F.push(new K6(R.instreamAdPlayerOverlayRenderer));R.playerOverlayLayoutRenderer&&F.push(new tb(R.playerOverlayLayoutRenderer));R.Jq&&F.push(new di(R.Jq));return F}; w3a=function(R,F,h,a,J,M){R=h.inPlayerLayoutId?h.inPlayerLayoutId:Xt(M,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",R);var v,I,w=h.instreamAdPlayerOverlayRenderer?(v=h.instreamAdPlayerOverlayRenderer)==null?void 0:v.adLayoutLoggingData:(I=h.playerOverlayLayoutRenderer)==null?void 0:I.adLayoutLoggingData;v={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Jb:F};return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Df:new Map,layoutExitNormalTriggers:[new D5(function(E){return HK(M, E)},h.Z2)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:F,clientMetadata:a,kH:J(v),adLayoutLoggingData:w}}; Yh=function(R,F){var h=this;this.D=R;this.pI=F;this.B=function(a){return HK(h.D.get(),a)}}; OUi=function(R,F,h,a,J,M){h=new tA([new lU(h),new X3(a)]);F=Xt(R.D.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",F);a={layoutId:F,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Jb:"core"};return{layoutId:F,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Df:new Map,layoutExitNormalTriggers:[new D5(function(v){return HK(R.D.get(),v)},J)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:h,kH:M(a),adLayoutLoggingData:void 0}}; s0=function(R,F,h,a,J){var M=ifg(a);return w3a(F,h,a,new tA(M),J,R.D.get())}; EPg=function(R,F,h,a,J){var M=ifg(a);M.push(new mc(a.R$));M.push(new oZ(a.qK));return w3a(F,h,a,new tA(M),J,R.D.get())}; mL=function(R,F,h,a,J,M,v,I,w,E){F=Xt(R.D.get(),h,F);var B={layoutId:F,layoutType:h,Jb:"core"},r=new Map;v&&r.set("impression",v);v=[new Fn(R.B,J,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&v.push(new ld(R.B,E,["normal"]));return{layoutId:F,layoutType:h,Df:r,layoutExitNormalTriggers:v,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([a,new X3(M),new hA(J)]),kH:I(B),adLayoutLoggingData:w}}; oL=function(R,F,h,a,J,M,v,I,w){F=Xt(R.D.get(),h,F);var E={layoutId:F,layoutType:h,Jb:"core"},B=[new Fn(R.B,J,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&B.push(new ld(R.B,w,["normal"]));return{layoutId:F,layoutType:h,Df:new Map,layoutExitNormalTriggers:B,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([a,new X3(M),new hA(J)]),kH:v(E),adLayoutLoggingData:I}}; TV=function(R,F,h){var a=[];a.push(new hO(R.B,h));F&&a.push(F);return a}; Le=function(R,F,h,a,J,M,v){var I={layoutId:F,layoutType:h,Jb:"core"};return{layoutId:F,layoutType:h,Df:new Map,layoutExitNormalTriggers:v,layoutExitSkipTriggers:[new PT(R.B,F)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([new Zm(a),new X3(J)]),kH:M(I),adLayoutLoggingData:a.adLayoutLoggingData}}; E0=function(R,F,h,a,J,M,v,I){var w={layoutId:F,layoutType:M,Jb:"core"};return{layoutId:F,layoutType:M,Df:new Map,layoutExitNormalTriggers:[new D5(R.B,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([new X3(a)].concat(g.S(v))),kH:J(w),adLayoutLoggingData:I}}; q7=function(R,F,h,a){if(R.pI.get().r$(F.kind==="AD_PLACEMENT_KIND_START"))if(h===void 0)gf("Expected SSAP layout ID in renderer",void 0,void 0,{caller:a});else return h}; rba=function(R,F,h,a,J,M,v,I,w,E,B,r,Y){R=yo(R,F,h,J,M,v,I,w,r,q7(R,h,a.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),Y);F=R.Hw;h=new aO(R.nZ);a=R.layoutExitSkipTriggers;E>0&&(F.push(h),F.push(new uU(E)),a=[]);F.push(new n6(B));return{Rg:{layoutId:R.layoutId,layoutType:R.layoutType,Df:R.Df,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:R.Jb,clientMetadata:new tA(F),kH:R.kH,adLayoutLoggingData:R.adLayoutLoggingData}, KX:a,p$:R.layoutExitMuteTriggers,QA:R.layoutExitUserInputSubmittedTriggers,xP:R.l$,T0:R.T0}}; kSn=function(R,F,h,a,J,M,v,I,w,E){F=yo(R,F,h,a,M,new Map,v,function(B){return I(B,w)},void 0,q7(R,h,J.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); R=new Bq(R.B,F.nZ);h=new aO(F.nZ);E=new n6(E);return{Rg:{layoutId:F.layoutId,layoutType:F.layoutType,Df:F.Df,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:F.Jb,clientMetadata:new tA([].concat(g.S(F.Hw),[h,E])),kH:F.kH,adLayoutLoggingData:F.adLayoutLoggingData},KX:F.layoutExitSkipTriggers,p$:F.layoutExitMuteTriggers,QA:[].concat(g.S(F.layoutExitUserInputSubmittedTriggers),[R]),xP:F.l$,T0:F.T0}}; yo=function(R,F,h,a,J,M,v,I,w,E,B){F=E!=null?E:Xt(R.D.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);E={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Jb:"adapter"};I=I(F);var r=lt(I.clientMetadata,"metadata_type_fulfilled_layout");r||gf("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var Y=r?r.layoutId:"";h=[new X3(h),new qZ(a),new Zv(J)];r&&h.push(new JA(r.layoutType));B&&h.push(new kP(B));return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Df:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new vq(R.B,Y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"adapter",Hw:h,kH:v(E),adLayoutLoggingData:w,T0:I,nZ:Y}}; ZUL=function(R,F,h,a,J,M,v,I,w,E,B){R=BZi(R,F,"core",h,a,J,M,v,I,w,E,void 0,B);return{layoutId:R.layoutId,layoutType:R.layoutType,Df:R.Df,layoutExitNormalTriggers:R.layoutExitNormalTriggers,layoutExitSkipTriggers:R.layoutExitSkipTriggers,layoutExitMuteTriggers:R.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:R.layoutExitUserInputSubmittedTriggers,l$:R.l$,Jb:R.Jb,clientMetadata:new tA(R.Cj),kH:R.kH,adLayoutLoggingData:R.adLayoutLoggingData}}; fm7=function(R,F,h,a,J,M,v,I,w,E,B,r,Y){F=BZi(R,F,"adapter",h,a,J,M,v,I,w,B,r,Y);a=F.layoutExitSkipTriggers;J=F.Cj;h.adPodSkipTarget&&h.adPodSkipTarget>0&&(J.push(E),J.push(new uU(h.adPodSkipTarget)),a=[]);J.push(new n6(I.adPodIndex));h.isCritical&&(a=[new ld(R.B,F.layoutId,["error"])].concat(g.S(a)));return{Rg:{layoutId:F.layoutId,layoutType:F.layoutType,Df:F.Df,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:F.Jb,clientMetadata:new tA(J), kH:F.kH,adLayoutLoggingData:F.adLayoutLoggingData},KX:a,p$:F.layoutExitMuteTriggers,QA:F.layoutExitUserInputSubmittedTriggers,xP:F.l$}}; BZi=function(R,F,h,a,J,M,v,I,w,E,B,r,Y){var p={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Jb:h};J=[new X3(J),new eT(w),new Pe(a.externalVideoId),new zS(I),new Zv({impressionCommands:a.impressionCommands,abandonCommands:a.onAbandonCommands,completeCommands:a.completeCommands,progressCommands:a.adVideoProgressCommands}),new B3(M),new gZ({current:null}),new Eb(v)];(M=a.playerOverlay.instreamAdPlayerOverlayRenderer)&&J.push(new K6(M));(v=a.playerOverlay.playerOverlayLayoutRenderer)&&J.push(new tb(v)); r&&J.push(new rZ(r));(r=a.playerUnderlay)&&J.push(new lU(r));I=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER");r=(r=M?M.elementId:v==null?void 0:v.layoutId)?r:Xt(R.D.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",I);J.push(new aO(r));J.push(new MZ(I));J.push(new kP(w.adPodIndex));a.adNextParams&&J.push(new f6(a.adNextParams));a.shrunkenPlayerBytesConfig&&J.push(new Ui(a.shrunkenPlayerBytesConfig));a.clickthroughEndpoint&&J.push(new jT(a.clickthroughEndpoint));a.legacyInfoCardVastExtension&&J.push(new ff(a.legacyInfoCardVastExtension)); a.sodarExtensionData&&J.push(new YP(a.sodarExtensionData));B&&J.push(new Tp(B));J.push(new Ob(Ee(a.pings)));w=BQ(a.pings);if(Y){a:{Y=g.N(Y);for(B=Y.next();!B.done;B=Y.next())if(B=B.value,B.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(M=g.t(B.fulfillmentContent.fulfilledLayout,tO))&&(M=g.t(M.renderingContent,zN))&&M.associatedPlayerBytesLayoutId===F){Y=B;break a}Y=void 0}Y&&J.push(new Dm(Y))}return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Df:w,layoutExitNormalTriggers:[new aq(R.B,F)],layoutExitSkipTriggers:a.skipOffsetMilliseconds? [new vq(R.B,r)]:[],layoutExitMuteTriggers:[new vq(R.B,r)],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:h,Cj:J,kH:E(p),adLayoutLoggingData:a.adLayoutLoggingData}}; Ali=function(R,F,h,a,J,M,v,I,w){a.every(function(B){return P3(B,[],["LAYOUT_TYPE_MEDIA"])})||gf("Unexpect subLayout type for DAI composite layout"); F=Xt(R.D.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",F);var E={layoutId:F,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Jb:"core"};return{layoutId:F,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Df:new Map,layoutExitNormalTriggers:[new VJ(R.B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],l$:[],Jb:"core",clientMetadata:new tA([new sb(h),new pf(I),new IO(a),new X3(J),new xP(M),new QX({}),new oO(w)]),kH:v(E)}}; sNi=function(R){return R!=null}; pO=function(R,F,h){var a=this;this.D=R;this.K=F;this.pI=h;this.B=function(J){return HK(a.D.get(),J)}}; em2=function(R,F,h,a,J,M,v){if(!h.prefetchModeConfig)return new C("AdPlacementConfig for Live Prefetch is missing prefetch_config");h=h.prefetchModeConfig;a*=1E3;var I=[];if(!h.breakLengthMs)return new C("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var w=g.N(h.breakLengthMs),E=w.next();!E.done;E=w.next())if(E=E.value,Number(E)>0){var B=a+Number(h.startTimeOffsetMs),r=B+Number(h.cacheFetchSmearingDurationMs);E={YY:new A$(r,r+Number(E)),j_:!1,M3:new A$(Math.floor(B+Math.random()* Number(h.cacheFetchSmearingDurationMs)),r),cueProcessedMs:a?a:B};B=[];B.push(new ut({}));r=[];r.push(new M0(R.B));r.push(new gJT(R.B));v&&B.push(new QX({}));I.push(JQ(R,F,J,E,M,B,r))}return I}; JQ=function(R,F,h,a,J,M,v){M=M===void 0?[]:M;var I=ai(R.D.get(),"SLOT_TYPE_AD_BREAK_REQUEST");v||(v=[],a.M3&&a.M3.start!==a.YY.start&&v.push(new WT(R.B,h,new A$(a.M3.start,a.YY.start),!1)),v.push(new WT(R.B,h,new A$(a.YY.start,a.YY.end),a.j_)));a={getAdBreakUrl:F.getAdBreakUrl,fG:a.YY.start,LG:a.YY.end,cueProcessedMs:a.cueProcessedMs};F=new i2(R.B,I);M=[new H3(a)].concat(g.S(M));return{slotId:I,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:v, slotExpirationTriggers:[new JO(R.B,h),new GN(R.B,I),new Iq(R.B,I)],Jb:"core",clientMetadata:new tA(M),adSlotLoggingData:J}}; YbL=function(R,F,h){var a=[];h=g.N(h);for(var J=h.next();!J.done;J=h.next())a.push(rAI(R,F,J.value));return a}; rAI=function(R,F,h){return h.triggeringSlotId!=null&&h.triggeringSlotId===R?h.clone(F):h}; M9I=function(R,F,h,a,J){return sOO(R,F,h,a,J)}; Yin=function(R,F,h,a){var J=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER");return sOO(R,J,F,h,a)}; sOO=function(R,F,h,a,J){var M=new to(R.B,h),v=[new gk(R.B,F)];R=[new GN(R.B,F),new JO(R.B,a)];return{slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(J({slotId:F,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:R},h))]),adSlotLoggingData:void 0}}; jZn=function(R,F,h,a,J,M){var v=ai(R.D.get(),"SLOT_TYPE_PLAYER_BYTES"),I=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER"),w=Xt(R.D.get(),"LAYOUT_TYPE_SURVEY",I);a=kh(R,F,h,a);var E=[new gk(R.B,v)];h=[new GN(R.B,v),new JO(R.B,h),new PT(R.B,w)];if(a instanceof C)return a;I=M({slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:a,slotFulfillmentTriggers:E,slotExpirationTriggers:h},{slotId:I,layoutId:w});M=I.z7;I=I.nu;return[{slotId:v,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:jO(R,F,v,a),slotFulfillmentTriggers:Zp(R,F,v,E),slotExpirationTriggers:h,Jb:"core",clientMetadata:new tA([new NZ(M),new X6(bJ(F)),new nf({xs:R.xs(F)})]),adSlotLoggingData:J},I]}; bJ=function(R){return R.kind==="AD_PLACEMENT_KIND_START"}; bUB=function(R,F,h,a,J){J=J?J:ai(R.D.get(),"SLOT_TYPE_IN_PLAYER");h=new to(R.B,h);var M=[new gk(R.B,J)];R=[new JO(R.B,F),new GN(R.B,J)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:M,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(a({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:h,slotFulfillmentTriggers:M,slotExpirationTriggers:R}))])}}; SaO=function(R,F,h,a){var J=ai(R.D.get(),"SLOT_TYPE_PLAYER_UNDERLAY");h=new to(R.B,h);var M=[new gk(R.B,J)];R=[new JO(R.B,F),new GN(R.B,J)];return{slotId:J,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:M,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(a({slotId:J,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:h,slotFulfillmentTriggers:M,slotExpirationTriggers:R}))])}}; HUf=function(R,F,h,a,J,M,v){var I=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER"),w=Xt(R.D.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",I);a=p3O(R,a,M,v,w);if(a instanceof C)return a;v=[new gk(R.B,I)];J=[new JO(R.B,M),new gk(R.B,J),new Er(R.B,J)];h=W3(h,{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:a,slotFulfillmentTriggers:v,slotExpirationTriggers:J});R=R.K.get();M={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Jb:"core"};F={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Df:new Map,layoutExitNormalTriggers:[new Yya(R.B,w,F.durationMs)],layoutExitSkipTriggers:[new pfg(R.B,w,F.durationMs)],l$:[new sSm(R.B,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Jb:"core",clientMetadata:new tA([new j3(F)]),kH:h(M)};return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:a,slotFulfillmentTriggers:v,slotExpirationTriggers:J,clientMetadata:new tA([new NZ(F)])}}; EHi=function(R,F,h,a,J,M){F=kh(R,F,h,a);if(F instanceof C)return F;var v=F instanceof WT?new EJO(R.B,h,F.B):null;a=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER");var I=[new gk(R.B,a)];R=[new JO(R.B,h),new GN(R.B,a)];M=M({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:F,slotFulfillmentTriggers:I,slotExpirationTriggers:R},v);return M instanceof Kf?new C(M):{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:I,slotExpirationTriggers:R, Jb:"core",clientMetadata:new tA([new NZ(M)]),adSlotLoggingData:J}}; i6i=function(R,F,h,a){var J=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER"),M=new dv(R.B,F),v=[new wk(R.B,J)];R=[new JO(R.B,F),new GN(R.B,J)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(a({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:R}))]),adSlotLoggingData:h}}; wDa=function(R,F,h,a){var J=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER");h=new to(R.B,h);var M=[new gk(R.B,J)],v=[new GN(R.B,J),new JO(R.B,F)];M={slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:h,slotFulfillmentTriggers:M,slotExpirationTriggers:v};return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:[new gk(R.B,J)],slotExpirationTriggers:[new JO(R.B,F),new GN(R.B,J)],Jb:"core",clientMetadata:new tA([new NZ(a(M))])}}; GJa=function(R,F,h,a,J){var M=ai(R.D.get(),"SLOT_TYPE_IN_PLAYER");h=new Kq(R.B,a,h);a=[new gk(R.B,M)];R=[new JO(R.B,F)];return{slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:a,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(J({slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:h,slotFulfillmentTriggers:a,slotExpirationTriggers:R}))])}}; hYi=function(R,F,h,a,J,M){var v=ai(R.D.get(),F);return Q_(R,v,F,new to(R.B,a),[new JO(R.B,h),new GN(R.B,v),new ld(R.B,a,["error"])],J,M)}; FRa=function(R,F,h,a,J,M,v){var I=ai(R.D.get(),F);return Q_(R,I,F,new ld(R.B,J,["normal"]),[new JO(R.B,h),new GN(R.B,I),new ld(R.B,a,["error"])],M,v)}; CN7=function(R,F,h,a,J){var M=ai(R.D.get(),F);return Q_(R,M,F,new dv(R.B,h),[new JO(R.B,h),new GN(R.B,M)],a,J)}; vHI=function(R,F,h,a,J){h=h?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var M=ai(R.D.get(),h);F=new dv(R.B,F);var v=[new gk(R.B,M)];R=[new GN(R.B,M)];return{slotId:M,slotType:h,slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:v,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(J({slotId:M,slotType:h,slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:F,slotFulfillmentTriggers:v,slotExpirationTriggers:R}))]),adSlotLoggingData:a}}; pDn=function(R,F,h,a){var J=ai(R.D.get(),"SLOT_TYPE_PLAYER_BYTES"),M=new cT(R.B),v=[new wk(R.B,J)];R=[new JO(R.B,F)];return{slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(a({slotId:J,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:M,slotFulfillmentTriggers:v,slotExpirationTriggers:R})),new QX({})]),adSlotLoggingData:h}}; Lc_=function(R,F){return oHi(R.pI.get())?new ld(R.B,F,["normal","error","skipped"]):new ld(R.B,F,["normal"])}; qaB=function(R,F,h,a,J){F=Lc_(R,F);R=fe(R,F,h);J=J({slotId:R.slotId,slotType:R.slotType,slotPhysicalPosition:R.slotPhysicalPosition,slotEntryTrigger:R.slotEntryTrigger,slotFulfillmentTriggers:R.slotFulfillmentTriggers,slotExpirationTriggers:R.slotExpirationTriggers,Jb:R.Jb});return J instanceof C?J:{Xi:Object.assign({},R,{clientMetadata:new tA([new NZ(J.layout)]),adSlotLoggingData:a}),k6:J.k6}}; fI_=function(R,F,h,a,J,M,v){h=TiL(R,F,h,a);if(h instanceof C)return h;v=v({slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers,Jb:h.Jb});if(v instanceof C)return v;a=[new X6(bJ(F)),new NZ(v.layout),new nf({xs:R.xs(F)})];M&&a.push(new bt({}));return{Xi:{slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:jO(R, F,h.slotId,h.slotEntryTrigger),slotFulfillmentTriggers:Zp(R,F,h.slotId,h.slotFulfillmentTriggers),slotExpirationTriggers:h.slotExpirationTriggers,Jb:h.Jb,clientMetadata:new tA(a),adSlotLoggingData:J},k6:v.k6}}; jO=function(R,F,h,a){return R.pI.get().r$(bJ(F))?new nq(R.B,h):a}; Zp=function(R,F,h,a){return R.pI.get().r$(bJ(F))?[new wk(R.B,h)]:a}; fe=function(R,F,h){var a=ai(R.D.get(),"SLOT_TYPE_PLAYER_BYTES"),J=[new gk(R.B,a)];R=[new GN(R.B,a),new JO(R.B,h)];return{slotId:a,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:J,slotExpirationTriggers:R,Jb:"core"}}; TiL=function(R,F,h,a){F=kh(R,F,h,a);return F instanceof C?F:fe(R,F,h)}; GSm=function(R,F,h,a,J,M){var v=ai(R.D.get(),"SLOT_TYPE_FORECASTING");F=kh(R,F,h,a);if(F instanceof C)return F;a=[new gk(R.B,v)];R=[new GN(R.B,v),new JO(R.B,h)];return{slotId:v,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:a,slotExpirationTriggers:R,Jb:"core",clientMetadata:new tA([new NZ(M({slotId:v,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:F,slotFulfillmentTriggers:a,slotExpirationTriggers:R}))]),adSlotLoggingData:J}}; kpa=function(R,F,h,a,J){var M=!F.hideCueRangeMarker;switch(F.kind){case "AD_PLACEMENT_KIND_START":return new dv(R.B,h);case "AD_PLACEMENT_KIND_MILLISECONDS":return R=lCB(F,a),R instanceof C?R:J(R.YY,M);case "AD_PLACEMENT_KIND_END":return new zb(R.B,h,M);default:return new C("Cannot construct entry trigger",{kind:F.kind})}}; p3O=function(R,F,h,a,J){return kpa(R,F,h,a,function(M,v){return new wfL(R.B,h,M,v,J)})}; kh=function(R,F,h,a){return kpa(R,F,h,a,function(J,M){return new WT(R.B,h,J,M)})}; Q_=function(R,F,h,a,J,M,v){R=[new wk(R.B,F)];return{slotId:F,slotType:h,slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:R,slotExpirationTriggers:J,Jb:"core",clientMetadata:new tA([new NZ(v({slotId:F,slotType:h,slotPhysicalPosition:1,Jb:"core",slotEntryTrigger:a,slotFulfillmentTriggers:R,slotExpirationTriggers:J}))]),adSlotLoggingData:M}}; $h=function(R,F){g.d.call(this);this.pI=R;this.B=F;this.eventCount=0}; Au=function(R,F,h,a){$h.call(this,R,F);this.pI=R;this.qQ=h;this.context=a}; xh=function(){this.B=new Map}; Nb=function(R){this.B="pending";this.D=[];this.K=[];try{R(this.L.bind(this),this.reject.bind(this))}catch(F){this.reject(F)}}; QO7=function(){var R,F;return{Pk:new Nb(function(h,a){R=h;F=a}), resolve:R,reject:F}}; Ta=function(R){return Hl(R)?R:LO(R)?new Nb(function(F,h){R.then(F,h)}):new Nb(function(F){F(R)})}; y_=function(R){return new Nb(function(F,h){h(R)})}; qb=function(R){try{return Ta(R())}catch(F){return y_(F)}}; jI=function(R,F,h){var a=QO7(),J=a.Pk,M=a.resolve,v=a.reject;R.D.push(function(I){if(F)try{var w=F(I);M(w)}catch(E){v(E)}else M(I)}); R.K.push(function(I){if(h)try{var w=h(I);M(w)}catch(E){v(E)}else v(I)}); fO(R);return J}; ZV=function(R,F){return jI(R,void 0,F)}; $ZO=function(R,F){jI(R,function(h){return jI(Ta(F()),function(){return h})},function(h){return jI(Ta(F()),function(){return y_(h)})})}; fO=function(R){if(R.B==="fulfilled"){var F=R.D;R.D=[];R.K=[];F=g.N(F);for(var h=F.next();!h.done;h=F.next())h=h.value,h(R.result)}else if(R.B==="rejected")for(F=R.K,R.D=[],R.K=[],F=g.N(F),h=F.next();!h.done;h=F.next())h=h.value,h(R.error)}; ba=function(R,F){return AA2(F.call(R))}; SI=function(R){return function h(){return n_(h,function(a){if(a.D==1)return g.L_(a,2),g.m(a,{Pk:Ta(R)},4);if(a.D!=2)return a.return(a.B);g.SB(a);return g.Om(a,0)})}()}; AA2=function(R){return qb(function(){return Ou(R,R.next())})}; Ou=function(R,F){return F.done?Ta(F.value):ZV(jI(F.value.Pk,function(h){return Ou(R,R.next(h))}),function(h){return Ou(R,R.throw(h))})}; mp=function(R,F){if(R.length===0)return Ta(NaN);var h=QO7(),a=h.Pk,J=h.resolve,M=R.length;R=g.N(R.entries());var v=R.next();for(h={};!v.done;h={vN:void 0},v=R.next()){var I=g.N(v.value);v=I.next().value;I=I.next().value;h.vN=v;$ZO(I,function(w){return function(){a.B==="pending"&&(xZn(F)&&F(w.vN)&&a.B==="pending"?J(w.vN):(--M,M===0&&J(NaN)))}}(h))}return a}; os=function(R){return R.map(function(F){return Ta(F)})}; eI=function(R){var F=R.hours||0;var h=R.minutes||0,a=R.seconds||0;F=a+h*60+F*3600+(R.days||0)*86400+(R.weeks||0)*604800+(R.months||0)*2629800+(R.years||0)*31557600;F<=0?F={hours:0,minutes:0,seconds:0}:(R=F,F=Math.floor(R/3600),R%=3600,h=Math.floor(R/60),a=Math.floor(R%60),F={hours:F,minutes:h,seconds:a});var J=F.hours===void 0?0:F.hours;h=F.minutes===void 0?0:F.minutes;R=F.seconds===void 0?0:F.seconds;a=J>0;F=[];if(a){J=(new Intl.NumberFormat("en-u-nu-latn")).format(J);var M=["fr"],v="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); J="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(XP)?J.replace(",","\u00a0"):M.includes(XP)?J.replace(",","\u202f"):v.includes(XP)?J.replace(",","."):J;F.push(J)}a=a===void 0?!1:a;h=(["af","be","lt"].includes(XP)||a)&&h<10?NZf().format(h):(new Intl.NumberFormat("en-u-nu-latn")).format(h);F.push(h);h=NZf().format(R);F.push(h);h=":";"da fi id si sr sr-Latn".split(" ").includes(XP)&&(h=".");return F.join(h)}; NZf=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; Hf7=function(R,F){var h,a;R=((h=R.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(a=h.videoAuthorizationToken)==null?void 0:a.credentialTransferTokens)||[];for(h=0;hF;R=h}else R=!1;return R}; g.FH=function(R,F){return R.OJ+"timedtext_video?ref=player&v="+F.videoId}; g.Pt2=function(R){var F=this;this.videoData=R;R={};this.B=(R.c1a=function(){var h=[];if(g.Wl.isInitialized()){var a="";F.videoData&&F.videoData.fp&&(a=F.videoData.fp+("&r1b="+F.videoData.clientPlaybackNonce));var J={};a=(J.atr_challenge=a,J);f4("bg_v",void 0,"player_att");(a=dZT(a))?(f4("bg_s",void 0,"player_att"),h.push("r1a="+a)):(f4("bg_e",void 0,"player_att"),h.push("r1c=2"))}else f4("bg_e",void 0,"player_att"),window.trayride||window.botguard?h.push("r1c=1"):h.push("r1c=4");h.push("r1d="+g.Wl.getState()); return h.join("&")},R.c6a=function(h){return"r6a="+(Number(h.c)^DC())},R.c6b=function(h){return"r6b="+(Number(h.c)^Number(g.Kp("CATSTAT",0)))},R); this.videoData&&this.videoData.fp?this.EU=Wk(this.videoData.fp):this.EU={}}; g.zoB=function(R){if(R.videoData&&R.videoData.fp){for(var F=[R.videoData.fp],h=g.N(Object.keys(R.B)),a=h.next();!a.done;a=h.next())a=a.value,R.EU[a]&&R.B[a]&&(a=R.B[a](R.EU))&&F.push(a);return F.join("&")}return null}; g.hd=function(R,F){u62(R,{B$u:g.RI(F.experiments,"bg_vm_reinit_threshold"),cspNonce:F.cspNonce,OJ:F.OJ||""})}; KxB=function(){var R=XMLHttpRequest.prototype.fetch;return!!R&&R.length===3}; t3g=function(R){R=R[G[29]](G[1]);a9[G[23]](R,36);a9[G[77]](R,20);a9[G[23]](R,4);a9[G[23]](R,31);a9[G[36]](R,3);a9[G[23]](R,56);a9[G[36]](R,1);a9[G[23]](R,18);return R[G[41]](G[1])}; V3n=function(R,F){KU(R,2,F.CG,Jd,3);KU(R,3,F.innertubeRequest,lvm,3);bp(R,4,F.onesieUstreamerConfig);bp(R,9,F.xT);KU(R,10,F.QB,MR,3);KU(R,15,F.reloadPlaybackParams,DZg,3)}; Ctn=function(R,F){KU(R,1,F.formatId,vG,3);j9(R,2,F.startTimeMs);j9(R,3,F.durationMs);j9(R,4,F.HV);j9(R,5,F.EG);KU(R,9,F.OYt,UZg,3);KU(R,11,F.M4I,gV,1);KU(R,12,F.MG,gV,1)}; cAB=function(R,F){S9(R,1,F.videoId);j9(R,2,F.lmt)}; UZg=function(R,F){if(F.SY)for(var h=0;h>31));j9(R,16,F.NV);j9(R,17,F.detailedNetworkType);j9(R,18,F.Bl);j9(R,19,F.uy);j9(R,21,F.DxI);j9(R,23,F.bE);j9(R,28,F.JH);j9(R,29,F.OKI);j9(R,34,F.visibility);h=F.playbackRate;if(h!==void 0){var a=new ArrayBuffer(4);(new Float32Array(a))[0]=h;h=(new Uint32Array(a))[0];if(h!==void 0)for(fU(R,285),qs(R,4),a=0;a<4;)R.view.setUint8(R.pos,h&255),h>>=8,R.pos+=1,a+=1}j9(R,36,F.by); KU(R,38,F.mediaCapabilities,aqL,3);j9(R,39,F.RoI);j9(R,40,F.lI);j9(R,44,F.playerState);ZI(R,46,F.wi);j9(R,48,F.e3);j9(R,50,F.VM);j9(R,51,F.DT);j9(R,54,F.kT);if(F.lX)for(h=0;h>31));S9(R,2,F.message)}; E0i=function(R,F){j9(R,1,F.clientState);KU(R,2,F.mSQ,iI_,1)}; Iqn=function(R,F){bp(R,1,F.Xcb);KU(R,2,F.hlb,wWn,3);KU(R,3,F.coldStartInfo,E0i,3)}; GWI=function(R,F){j9(R,1,F.type);bp(R,2,F.value)}; g0i=function(R,F){S9(R,1,F.hl);S9(R,12,F.deviceMake);S9(R,13,F.deviceModel);j9(R,16,F.clientName);S9(R,17,F.clientVersion);S9(R,18,F.osName);S9(R,19,F.osVersion)}; Baa=function(R,F){S9(R,1,F.name);S9(R,2,F.value)}; rBL=function(R,F){S9(R,1,F.url);if(F.sM)for(var h=0;h0&&!(DKn()>(0,g.NU)()-R*1E3))return 0;R=g.jA("yt-player-quality");if(typeof R==="string"){if(R=g.L7[R],R>0)return R}else if(R instanceof Object)return R.quality;return 0}; BG=function(){var R=g.jA("yt-player-proxima-pref");return R==null?null:R}; Czi=function(){var R=g.jA("yt-player-quality");if(R instanceof Object&&R.quality&&R.previousQuality){if(R.quality>R.previousQuality)return 1;if(R.quality0&&F[0]?R.getAutoplayPolicy(F[0]):R.getAutoplayPolicy("mediaelement");if(JEI[h])return JEI[h]}}catch(a){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; $n=function(R){return R.Nx||R.nK||R.mutedAutoplay}; MeB=function(R,F){return $n(R)?F!==1&&F!==2&&F!==0?"AUTOPLAY_STATUS_UNAVAILABLE":R.K3?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; v_T=function(R,F,h){var a=F.W();R.thirdParty||(R.thirdParty={});a.ancestorOrigins&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{ancestorOrigins:a.ancestorOrigins}));a.X("embeds_enable_autoplay_and_visibility_signals")&&(a.ub!=null&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(a.ub)})),a.B9&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{visibilityFractionSource:a.B9})), R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:QZ(),autoplayIntended:$n(F),autoplayStatus:MeB(F,h)}))}; g_i=function(R){var F=[];R=g.N(R.split(","));for(var h=R.next();!h.done;h=R.next()){var a=h.value;a&&((h=a.startsWith("!"))&&(a=a.substring(1)),a=a.split("-"),a.length<3||F.push({q4:a[0],platform:a[1],deviceVersion:a[2],uF:h}))}return F}; iAm=function(R){return g_i(R).map(function(F){return{deviceInterface:GM_[IXT[F.q4]]||0,deviceVersion:F.deviceVersion||"",isSleeping:F.uF}})}; g.Ad=function(R,F){this.id=R;this.jw=F;this.captionTracks=[];this.K=this.L=null;this.xtags="";this.N=!1;this.B=null;this.D="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";R=this.jw.id.split(".");R.length>1&&(this.N=R[1]==="2")}; xn=function(R,F,h,a,J){this.D=R;this.B=F;this.K=h;this.reason=a;this.CI=J===void 0?0:J}; g.NR=function(R,F,h,a){return new xn(g.L7[R]||0,g.L7[F]||0,h,a)}; Lo=function(R){if(HG&&R.CI)return!1;var F=g.L7.auto;return R.D===F&&R.B===F}; yZ=function(R){return TE[R.B||R.D]||"auto"}; wQL=function(R,F){F=g.L7[F];return R.D<=F&&(!R.B||R.B>=F)}; qR=function(R){return"["+R.D+"-"+R.B+", override: "+(R.K+", reason: "+R.reason+"]")}; fo=function(R,F,h){this.videoInfos=R;this.B=F;this.audioTracks=[];if(this.B){R=new Set;h==null||h({ainfolen:this.B.length});F=g.N(this.B);for(var a=F.next();!a.done;a=F.next())if(a=a.value,!a.jw||R.has(a.jw.id)){var J=void 0,M=void 0,v=void 0;(v=h)==null||v({atkerr:!!a.jw,itag:a.itag,xtag:a.B,lang:((J=a.jw)==null?void 0:J.name)||"",langid:((M=a.jw)==null?void 0:M.id)||""})}else J=new g.Ad(a.id,a.jw),R.add(a.jw.id),this.audioTracks.push(J);h==null||h({atklen:this.audioTracks.length})}}; jE=function(){g.d.apply(this,arguments);this.B=null}; Yef=function(R,F,h,a,J,M,v){if(R.B)return R.B;var I={},w=new Set,E={};if(Zo(a)){for(var B in a.B)a.B.hasOwnProperty(B)&&(R=a.B[B],E[R.info.Qt]=[R.info]);return E}B=E_B(F,a,I);M&&J({aftsrt:bM(B)});for(var r={},Y=g.N(Object.keys(B)),p=Y.next();!p.done;p=Y.next()){p=p.value;for(var k=g.N(B[p]),H=k.next();!H.done;H=k.next()){H=H.value;var T=H.itag,Z=void 0,b=p+"_"+(((Z=H.video)==null?void 0:Z.fps)||0);r.hasOwnProperty(b)?r[b]===!0?E[p].push(H):I[T]=r[b]:(Z=SE(F,H,h,a.isLive,w),Z!==!0?(v.add(p),I[T]=Z, Z==="disablevp9hfr"&&(r[b]="disablevp9hfr")):(E[p]=E[p]||[],E[p].push(H),r[b]=!0))}}M&&J({bfflt:bM(E)});for(var O in E)E.hasOwnProperty(O)&&(a=O,E[a]&&E[a][0].In()&&(E[a]=E[a],E[a]=BWn(F,E[a],I),E[a]=rE2(E[a],I)));M&&Object.keys(I).length>0&&J({rjr:ES(I)});F=g.N(w.values());for(a=F.next();!a.done;a=F.next())(a=h.L.get(a.value))&&--a.eQ;M&&J({aftflt:bM(E)});R.B=g.Fl(E,function(n){return!!n.length}); return R.B}; pQn=function(R,F,h,a,J,M,v,I){I=I===void 0?!1:I;if(F.gf&&v&&v.length>1&&!(F.Ae>0||F.Z)){for(var w=F.D||!!J,E=w&&F.gW?M:void 0,B=E_B(F,a),r=[],Y=[],p={},k=0;k0&&Y&&J&&(B=[v,h],O=J.concat(Y).filter(function(n){return n})); if(O.length&&!F.oZ){o9(O,B);if(w){w=[];F=g.N(O);for(a=F.next();!a.done;a=F.next())w.push(a.value.itag);M({hbdfmt:w.join(".")})}return fR(new fo(O,R,E))}O=yEL(F);O=g.QL(O,I);if(!O){if(r[v])return M=r[v],o9(M),fR(new fo(M,R,E));w&&M({novideo:1});return ql()}F.Xf&&(O==="1"||O==="1h")&&r[h]&&(v=XH(r[O]),B=XH(r[h]),B>v?O=h:B===v&&qea(r[h])&&(O=h));O==="9"&&r.h&&XH(r.h)>XH(r["9"])&&(O="h");F.uY&&a.isLive&&O==="("&&r.H&&XH(r["("])<1440&&(O="H");w&&M({vfmly:eE(O)});F=r[O];if(!F.length)return w&&M({novfmly:eE(O)}), ql();o9(F);return fR(new fo(F,R,E))}; QiL=function(R,F){var h=!(!R.m&&!R.M),a=!(!R.mac3&&!R.MAC3),J=!(!R.meac3&&!R.MEAC3);R=!(!R.i&&!R.I);F.i9=R;return h||a||J||R}; qea=function(R){R=g.N(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.itag&&fXL.has(F.itag))return!0;return!1}; AEa=function(R){R=g.N(R);for(var F=R.next();!F.done;F=R.next())if(F.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; eE=function(R){switch(R){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return R}}; bM=function(R){var F=[],h;for(h in R)if(R.hasOwnProperty(h)){var a=h;F.push(eE(a));a=g.N(R[a]);for(var J=a.next();!J.done;J=a.next())F.push(J.value.itag)}return F.join(".")}; kMO=function(R,F,h,a,J,M){var v={},I={};g.Rl(F,function(w,E){w=w.filter(function(B){var r=B.itag;if(!B.qH)return I[r]="noenc",!1;if(M.Sw&&B.Qt==="(h"&&M.nI)return I[r]="lichdr",!1;if(!R.N&&B.Qt==="1e")return I[r]="noav1enc",!1;if(B.Qt==="("||B.Qt==="(h"){if(R.K&&h&&h.flavor==="widevine"){var Y=B.mimeType+"; experimental=allowed";(Y=!!B.qH[h.flavor]&&!!h.B[Y])||(I[r]=B.qH[h.flavor]?"unspt":"noflv");return Y}if(!no(R,uM.CRYPTOBLOCKFORMAT)&&!R.fI||R.KI)return I[r]=R.KI?"disvp":"vpsub",!1}return h&&B.qH[h.flavor]&& h.B[B.mimeType]?!0:(I[r]=h?B.qH[h.flavor]?"unspt":"noflv":"nosys",!1)}); w.length&&(v[E]=w)}); a&&Object.entries(I).length&&J({rjr:ES(I)});return v}; rE2=function(R,F){var h=QU(R,function(a,J){return J.video.fps>32?Math.min(a,J.video.width):a},Infinity); h32||a.video.widthR.S)return"max"+R.S;if(R.T$&&F.Qt==="h"&&F.video&&F.video.qualityOrdinal>1080)return"blkhigh264";if(F.Qt==="(h"&&!h.Y)return"enchdr";if((a===void 0?0:a)&&ok(F)&&!R.Oz)return"blk51live";if((F.Qt==="MAC3"||F.Qt==="mac3")&&!R.L)return"blkac3";if((F.Qt==="MEAC3"||F.Qt==="meac3")&&!R.N)return"blkeac3";if(F.Qt==="M"||F.Qt==="m")return"blkaac51"; if((F.Qt==="so"||F.Qt==="sa")&&!R.oR)return"blkamb";if(!R.Sw&&j7n(F)&&(!h.N||F.Qt!=="1e"))return"cbc";if(!h.N&&j7n(F)&&F.Qt==="1e")return"cbcav1";if((F.Qt==="i"||F.Qt==="I")&&!R.YH)return"blkiamf";var M;if(R.iY&&((M=F.audio)==null?void 0:M.D)===!0)return"blkvbcabr";var v,I;if(R.PG&&(F.Qt==="1"||F.Qt==="1h"||h.N&&F.Qt==="1e")&&((v=F.video)==null?0:v.qualityOrdinal)&&((I=F.video)==null?void 0:I.qualityOrdinal)>R.PG)return"av1cap";a=h.L.get(F.Qt);if(!R.EP&&a&&a.eQ>0)return J.add(F.Qt),"byerr";var w; if((w=F.video)==null?0:w.fps>32){if(!h.Uz&&!no(h,uM.FRAMERATE))return"capHfr";if(R.Fo&&F.video.qualityOrdinal>=4320)return"blk8khfr";if(ZK(F)&&R.xO&&F.qH&&F.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(R.CI&&F.CI>R.CI)return"ratecap";R=jiB(h,F);return R!==!0?R:!0}; o9=function(R,F){F=F===void 0?[]:F;g.l9(R,function(h,a){var J=a.CI-h.CI;if(!h.In()||!a.In())return J;var M=a.video.height*a.video.width-h.video.height*h.video.width;!M&&F&&F.length>0&&(h=F.indexOf(h.Qt)+1,a=F.indexOf(a.Qt)+1,M=h===0||a===0?a||-1:h-a);M||(M=J);return M})}; g.dV=function(R,F){this[G[3]]=R;this[G[52]]=F===void 0?!1:F;this[G[25]]=this[G[15]]=this[G[9]]=G[1];this[G[14]]={};this[G[13]]=G[1]}; zE=function(R){PG(R);return R[G[25]]}; Ko=function(R){return R[G[3]]?R[G[3]][G[16]](G[37]):R[G[9]]===G[37]}; ZAi=function(R){PG(R);return g.JX(R[G[14]],function(F){return F!==null})}; td=function(R){PG(R);var F=decodeURIComponent(R[G[53]](G[73])||G[1])[G[29]](G[72]);return R[G[15]]===G[12]&&F[G[4]]>1&&!!F[1]}; lM=function(R,F){F=F===void 0?!1:F;PG(R);if(R[G[15]]!==G[12]){var h=R[G[43]]();h[G[17]](G[51],G[47]);return h}var a=R[G[65]]();h=new g.Jj(a);var J=R[G[53]](G[82]),M=decodeURIComponent(R[G[53]](G[73])||G[1])[G[29]](G[72]);if(J&&M&&M[G[4]]>1&&M[1])return a=h.B,R=a[G[33]](/^[^.]*/,G[1]),g.v9(h,(a[G[31]](G[22])===0?G[22]:G[58])+J+G[86]+M[1]+R),h=new g.dV(h[G[11]]()),h[G[17]](G[44],G[47]),h;if(F)return h=R[G[43]](),h[G[17]](G[44],G[47]),h;J=h.B[G[42]](G[76]);h.B[G[42]](G[30])?(g.v9(h,G[81]),a=h[G[11]]()): h.B[G[42]](G[66])?(g.v9(h,G[70]),a=h[G[11]]()):(h=$Nn(a),uz(h)&&(a=h));h=new g.dV(a);h[G[17]](G[21],G[47]);J&&h[G[17]](G[68],G[84]);return h}; PG=function(R){if(R[G[3]]){if(!(uz(R[G[3]])||R[G[3]][G[16]](G[37])||R[G[3]][G[16]](G[6])||R[G[3]][G[16]](G[71])))throw new g.Pv(G[8],R[G[3]]);var F=g.B9(R[G[3]]);R[G[9]]=F.N;R[G[25]]=F.B+(F.K!=null?G[2]+F.K:G[1]);var h=F.D;if(h[G[16]](G[12]))R[G[15]]=G[12],h=h[G[56]](14);else if(h[G[16]](G[34]))R[G[15]]=G[34],h=h[G[56]](13);else if(h[G[16]](G[57])){var a=h[G[31]](G[39],12),J=h[G[31]](G[39],a+1);a>0&&J>0?(R[G[15]]=h[G[56]](0,J),h=h[G[56]](J+1)):(R[G[15]]=h,h=G[1])}else R[G[15]]=h,h=G[1];a=R[G[14]]; R[G[14]]=bAg(h);Object[G[19]](R[G[14]],SeT(F.L.toString()));Object[G[19]](R[G[14]],a);R[G[14]][G[54]]===G[60]&&(delete R[G[14]][G[54]],R[G[15]]+=G[64]);R[G[3]]=G[1];R[G[13]]=G[1];R[G[52]]&&(PG(R),F=R[G[14]][G[55]]||null)&&(F=OAn[0](F),R[G[17]](G[55],F))}}; m97=function(R){PG(R);var F=R[G[9]]+(R[G[9]]?G[59]:G[26])+R[G[25]]+R[G[15]];if(ZAi(R)){var h=[];g.Rl(R[G[14]],function(a,J){a!==null&&h[G[28]](J+G[35]+a)}); F+=G[80]+h[G[41]](G[38])}return F}; bAg=function(R){R=R[G[29]](G[39]);var F=0;R[0]||F++;for(var h={};F0?o_i(F,a[G[56]](0,J),a[G[56]](J+1)):a&&(F[a]=G[1])}return F}; o_i=function(R,F,h){if(F===G[27]){var a;(a=h[G[31]](G[35]))>=0?(F=G[5]+h[G[56]](0,a),h=h[G[56]](a+1)):(a=h[G[31]](G[49]))>=0&&(F=G[5]+h[G[56]](0,a),h=h[G[56]](a+3))}R[F]=h}; Do=function(R){var F=g.t(R,XQ7)||R[G[32]];R={bk:!1,iI:G[1],x9:G[1],s:G[1]};if(!F)return R;F=Wk(F);R[G[85]]=!0;R[G[78]]=F[G[13]];R[G[83]]=F[G[74]];R[G[24]]=F[G[24]];return R}; VZ=function(R,F,h,a,J,M,v,I,w){this.vG=R;this.startTime=F;this.duration=h;this.ingestionTime=a;this.sourceURL=J;this.vJ=w;this.endTime=F+h;this.B=v||0;this.range=M||null;this.pending=I||!1;this.vJ=w||null}; g.Uq=function(){this.segments=[];this.B=null;this.D=!0;this.K=""}; eJi=function(R,F){if(F>R.Ff())R.segments=[];else{var h=k7(R.segments,function(a){return a.vG>=F},R); h>0&&R.segments.splice(0,h)}}; Co=function(R,F,h,a,J){J=J===void 0?!1:J;this.data=R;this.offset=F;this.size=h;this.type=a;this.B=(this.D=J)?0:8;this.dataOffset=this.offset+this.B}; cG=function(R){var F=R.data.getUint8(R.offset+R.B);R.B+=1;return F}; WG=function(R){var F=R.data.getUint16(R.offset+R.B);R.B+=2;return F}; Ro=function(R){var F=R.data.getInt32(R.offset+R.B);R.B+=4;return F}; FG=function(R){var F=R.data.getUint32(R.offset+R.B);R.B+=4;return F}; hD=function(R){var F=R.data;var h=R.offset+R.B;F=F.getUint32(h)*4294967296+F.getUint32(h+4);R.B+=8;return F}; ao=function(R,F){F=F===void 0?NaN:F;if(isNaN(F))var h=R.size;else for(h=R.B;h1?Math.ceil(J*F):Math.floor(J*F))}R.skip(1);h=cG(R)<<16|WG(R);if(h&256){a=h&1;J=h&4;var M=h&512,v=h&1024,I=h&2048;h=FG(R);a&&R.skip(4);J&&R.skip(4);a=(M?4:0)+(v?4:0)+(I?4:0);for(J=0;J1?Math.ceil(v*F):Math.floor(v*F)),R.skip(a)}}}; w$=function(R){R=new DataView(R.buffer,R.byteOffset,R.byteLength);return(R=g.Io(R,0,1836476516))?g.i8(R):NaN}; CZi=function(R){var F=g.Io(R,0,1937011556);if(!F)return null;F=Ef(R,F.dataOffset+8,1635148593)||Ef(R,F.dataOffset+8,1635135537);if(!F)return null;var h=Ef(R,F.dataOffset+78,1936995172),a=Ef(R,F.dataOffset+78,1937126244);if(!a)return null;F=null;if(h)switch(h.skip(4),cG(h)){default:F=0;break;case 1:F=2;break;case 2:F=1;break;case 3:F=255}var J=h=null,M=null;if(a=Ef(R,a.dataOffset,1886547818)){var v=Ef(R,a.dataOffset,1886546020),I=Ef(R,a.dataOffset,2037673328);if(!I&&(I=Ef(R,a.dataOffset,1836279920), !I))return null;v&&(v.skip(4),h=Ro(v)/65536,M=Ro(v)/65536,J=Ro(v)/65536);R=n_n(I);R=new DataView(R.buffer,R.byteOffset+8,R.byteLength-8);return new Vem(F,h,M,J,R)}return null}; Ef=function(R,F,h){for(;B$(R,F);){var a=r$(R,F);if(a.type===h)return a;F+=a.size}return null}; g.Io=function(R,F,h){for(;B$(R,F);){var a=r$(R,F);if(a.type===h)return a;F=YE(a.type)?F+8:F+a.size}return null}; g.sf=function(R){if(R.data.getUint8(R.dataOffset)){var F=R.data;R=R.dataOffset+4;F=F.getUint32(R)*4294967296+F.getUint32(R+4)}else F=R.data.getUint32(R.dataOffset+4);return F}; r$=function(R,F){var h=R.getUint32(F),a=R.getUint32(F+4);return new Co(R,F,h,a)}; g.i8=function(R){var F=R.data.getUint8(R.dataOffset)?20:12;return R.data.getUint32(R.dataOffset+F)}; cEL=function(R){R=new Co(R.data,R.offset,R.size,R.type,R.D);var F=cG(R);R.skip(7);var h=FG(R);if(F===0){F=FG(R);var a=FG(R)}else F=hD(R),a=hD(R);R.skip(2);for(var J=WG(R),M=[],v=[],I=0;I122)return!1}return!0}; YE=function(R){return R===1701082227||R===1836019558||R===1836019574||R===1835297121||R===1835626086||R===1937007212||R===1953653094||R===1953653099||R===1836475768}; WQT=function(R){R.skip(4);return{M9$:ao(R,0),value:ao(R,0),timescale:FG(R),YZn:FG(R),B5I:FG(R),id:FG(R),Br:ao(R),offset:R.offset}}; g.RDn=function(R){var F=Ef(R,0,1701671783);if(!F)return null;var h=WQT(F),a=h.M9$;h=G4(h.Br);if(R=Ef(R,F.offset+F.size,1701671783))if(R=WQT(R),R=G4(R.Br),h&&R){F=g.N(Object.keys(R));for(var J=F.next();!J.done;J=F.next())J=J.value,h[J]=R[J]}return h?new g$(h,a):null}; p$=function(R,F){for(var h=Ef(R,0,F);h;){var a=h;a.type=1936419184;a.data.setUint32(a.offset+4,1936419184);h=Ef(R,h.offset+h.size,F)}}; g.kE=function(R,F){for(var h=0,a=[];B$(R,h);){var J=r$(R,h);J.type===F&&a.push(J);h=YE(J.type)?h+8:h+J.size}return a}; FaO=function(R,F){var h=g.Io(R,0,1937011556),a=g.Io(R,0,1953654136);if(!h||!a||R.getUint32(h.offset+12)>=2)return null;var J=new DataView(F.buffer,F.byteOffset,F.length),M=g.Io(J,0,1937011556);if(!M)return null;F=J.getUint32(M.dataOffset+8);a=J.getUint32(M.dataOffset+12);if(a!==1701733217&&a!==1701733238)return null;a=new ueg(R.byteLength+F);JD(a,R,0,h.offset+12);a.data.setInt32(a.offset,2);a.offset+=4;JD(a,R,h.offset+16,h.size-16);JD(a,J,J.byteOffset+M.dataOffset+8,F);JD(a,R,h.offset+h.size,R.byteLength- (h.offset+h.size));h=g.N([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(J=h.next();!J.done;J=h.next())J=g.Io(R,0,J.value),a.data.setUint32(J.offset,J.size+F);R=g.Io(a.data,0,1953654136);a.data.setUint32(R.offset+16,2);return a.data}; hDT=function(R){var F=g.Io(R,0,1937011556);if(!F)return null;var h=R.getUint32(F.dataOffset+12);if(h!==1701733217&&h!==1701733238)return null;F=Ef(R,F.offset+24+(h===1701733217?28:78),1936289382);if(!F)return null;h=Ef(R,F.offset+8,1935894637);if(!h||R.getUint32(h.offset+12)!==1667392371)return null;F=Ef(R,F.offset+8,1935894633);if(!F)return null;F=Ef(R,F.offset+8,1952804451);if(!F)return null;h=new Uint8Array(16);for(var a=0;a<16;a++)h[a]=R.getInt8(F.offset+16+a);return h}; QB=function(R,F){this.B=R;this.pos=0;this.start=F||0}; $E=function(R){return R.pos>=R.B.byteLength}; L$=function(R,F,h){var a=new QB(h);if(!AD(a,R))return!1;a=xE(a);if(!NG(a,F))return!1;for(R=0;F;)F>>>=8,R++;F=a.start+a.pos;var J=H$(a,!0);a=R+(a.start+a.pos-F)+J;a=a>9?aKB(a-9,8):aKB(a-2,1);R=F-R;h.setUint8(R++,236);for(F=0;Fh;J++)h=h*256+j$(R),a*=128;return F?h-a:h}; yB=function(R){var F=H$(R,!0);R.pos+=F}; vKI=function(R){if(!NG(R,440786851,!0))return null;var F=R.pos;H$(R,!1);var h=H$(R,!0)+R.pos-F;R.pos=F+h;if(!NG(R,408125543,!1))return null;H$(R,!0);if(!NG(R,357149030,!0))return null;var a=R.pos;H$(R,!1);var J=H$(R,!0)+R.pos-a;R.pos=a+J;if(!NG(R,374648427,!0))return null;var M=R.pos;H$(R,!1);var v=H$(R,!0)+R.pos-M,I=new Uint8Array(h+12+J+v),w=new DataView(I.buffer);I.set(new Uint8Array(R.B.buffer,R.B.byteOffset+F,h));w.setUint32(h,408125543);w.setUint32(h+4,33554431);w.setUint32(h+8,4294967295); I.set(new Uint8Array(R.B.buffer,R.B.byteOffset+a,J),h+12);I.set(new Uint8Array(R.B.buffer,R.B.byteOffset+M,v),h+12+J);return I}; ZQ=function(R){var F=R.pos;R.pos=0;var h=1E6;AD(R,[408125543,357149030,2807729])&&(h=T4(R));R.pos=F;return h}; gK_=function(R,F){var h=R.pos;R.pos=0;if(R.B.getUint8(R.pos)!==160&&!b8(R)||!NG(R,160))return R.pos=h,NaN;H$(R,!0);var a=R.pos;if(!NG(R,161))return R.pos=h,NaN;H$(R,!0);j$(R);var J=j$(R)<<8|j$(R);R.pos=a;if(!NG(R,155))return R.pos=h,NaN;a=T4(R);R.pos=h;return(J+a)*F/1E9}; b8=function(R){if(!Gmn(R)||!NG(R,524531317))return!1;H$(R,!0);return!0}; Gmn=function(R){if(R.jX()){if(!NG(R,408125543))return!1;H$(R,!0)}return!0}; AD=function(R,F){for(var h=0;h0){var a=SeT(F.substring(h+1));g.Rl(a,function(J,M){this.set(M,J)},R); F=F.substring(0,h)}F=bAg(F);g.Rl(F,function(J,M){this.set(M,J)},R)}; i7g=function(R){var F=R.t0.hT(),h=[];g.Rl(R.B,function(J,M){h.push(M+"="+J)}); if(!h.length)return F;var a=h.join("&");R=ZAi(R.t0)?"&":"?";return F+R+a}; Of=function(R,F){var h=new g.dV(F);(F=h.get("req_id"))&&R.set("req_id",F);g.Rl(R.B,function(a,J){h["set"](J,null)}); return h}; wzL=function(){this.L=this.K=this.B=this.timedOut=this.started=this.N=this.D=0}; mA=function(R){R.N=(0,g.NU)();R.started=0;R.timedOut=0;R.B=0}; oo=function(R,F){var h=R.started+R.B*4;F&&(h+=R.K);h=Math.max(0,h-3);return Math.pow(1.6,h)}; XG=function(R,F){R[F]||(R[F]=new wzL);return R[F]}; e$=function(R){this.C=this.Y=this.N=this.K=0;this.Z=this.S=!1;this.B=R;this.D=R.clone()}; EKg=function(R,F,h){if(Ko(R.B))return!1;var a=XG(h,zE(R.B));if(a.timedOut<1&&a.B<1)return!1;a=a.timedOut+a.B;R=n$(R,F);h=XG(h,zE(R));return h.timedOut+h.B+01?F=F.L1:(h=XG(h,d$(R,R.nB(F,h),F)),F=Math.max(R.N,h.timedOut)+F.Ul*(R.K-R.N)+.25*R.Y,F=F>3?1E3*Math.pow(1.6,F-3):0);return F===0?!0:R.C+F<(0,g.NU)()}; Be2=function(R,F,h){R.B.set(F,h);R.D.set(F,h);R.L&&R.L.set(F,h)}; rHf=function(R,F,h,a,J){++R.K;F&&++R.N;zE(h.t0).startsWith("redirector.")&&(R.B=R.D.clone(),delete R.L,a.G6&&delete J[zE(R.B)])}; z4=function(R){return R?(R.itag||"")+";"+(R.lmt||0)+";"+(R.xtags||""):""}; K$=function(R,F,h,a){this.initRange=h;this.indexRange=a;this.B=null;this.K=!1;this.S=0;this.L=this.MZ=this.D=null;this.info=F;this.UP=new e$(R)}; tD=function(R,F){this.start=R;this.end=F;this.length=F-R+1}; l8=function(R){R=R.split("-");var F=Number(R[0]),h=Number(R[1]);if(!isNaN(F)&&!isNaN(h)&&R.length===2&&(R=new tD(F,h),!isNaN(R.start)&&!isNaN(R.end)&&!isNaN(R.length)&&R.length>0))return R}; DQ=function(R,F){return new tD(R,R+F-1)}; YSI=function(R){return R.end==null?{start:String(R.start)}:{start:String(R.start),end:String(R.end)}}; VB=function(R){if(!R)return new tD(0,0);var F=Number(R.start);R=Number(R.end);if(!isNaN(F)&&!isNaN(R)&&(F=new tD(F,R),F.length>0))return F}; Uf=function(R,F,h,a,J,M,v,I,w,E,B,r){a=a===void 0?"":a;this.type=R;this.B=F;this.range=h;this.source=a;this.jK=B;this.clipId=r===void 0?"":r;this.C=[];this.Y="";this.vG=-1;this.oR=this.aR=0;this.Y=a;this.vG=J>=0?J:-1;this.startTime=M||0;this.duration=v||0;this.D=I||0;this.K=w>=0?w:this.range?this.range.length:NaN;this.N=this.range?this.D+this.K===this.range.length:E===void 0?!!this.K:E;this.range?(this.L=this.startTime+this.duration*this.D/this.range.length,this.Z=this.duration*this.K/this.range.length, this.S=this.L+this.Z):skm(this)}; skm=function(R){R.L=R.startTime;R.Z=R.duration;R.S=R.L+R.Z}; pzi=function(R,F,h){var a=!(!F||F.B!==R.B||F.type!==R.type||F.vG!==R.vG);return h?a&&!!F&&(R.range&&F.range?F.range.end===R.range.end:F.range===R.range)&&F.D+F.K===R.D+R.K:a}; C$=function(R){return R.type===1||R.type===2}; c$=function(R){return R.type===3||R.type===6}; W$=function(R,F){return R.B===F.B?R.range&&F.range?R.range.start+R.D+R.K===F.range.start+F.D:R.vG===F.vG?R.D+R.K===F.D:R.vG+1===F.vG&&F.D===0&&R.N:!1}; QkI=function(R,F){return R.vG!==F.vG&&F.vG!==R.vG+1||R.type!==F.type?!1:W$(R,F)?!0:Math.abs(R.L-F.L)<=1E-6&&R.vG===F.vG?!1:kmn(R,F)}; kmn=function(R,F){return W$(R,F)||Math.abs(R.S-F.L)<=1E-6||R.vG+1===F.vG&&F.D===0&&R.N?!0:!1}; R_=function(R){return R.vG+(R.N?1:0)}; $Q7=function(R){R.length===1||g.kz(R,function(h){return!!h.range}); for(var F=1;F=F.range.start+F.D&&R.range.start+R.D+R.K<=F.range.start+F.D+F.K:R.vG===F.vG&&R.D>=F.D&&(R.D+R.K<=F.D+F.K||F.N)}; yHL=function(R,F){return R.B!==F.B?!1:R.type===4&&F.type===3&&R.B.sG()?(R=R.B.zD(R),dy(R,function(h){return yHL(h,F)})):R.vG===F.vG&&!!F.K&&F.D+F.K>R.D&&F.D+F.K<=R.D+R.K}; hP=function(R,F){var h=F.vG;R.Y="updateWithSegmentInfo";R.vG=h;if(R.startTime!==F.startTime||R.duration!==F.duration)R.startTime=F.startTime+R.aR,R.duration=F.duration,skm(R)}; a_=function(R,F){var h=this;this.Vt=R;this.L=this.B=null;this.N=this.GV=NaN;this.nB=this.requestId=null;this.rf={LwG:function(){return h.range}}; this.UP=R[0].B.UP;this.D=F||"";this.Vt[0].range&&this.Vt[0].K>0&&(AH2(R)?(this.range=$Q7(R),this.K=this.range.length):(this.range=this.Vt[this.Vt.length-1].range,this.K=xQm(R)))}; JP=function(R){return!C$(R.Vt[R.Vt.length-1])}; M3=function(R){return R.Vt[R.Vt.length-1].type===4}; g.vI=function(R,F,h){h=R.nB===null?R.UP.nB(F,h,R.Vt[0].type):R.nB;if(R.B){F=h?lM(R.B,F.Ba):R.B;var a=new S$(F);a.get("alr")||a.set("alr","yes");R.D&&IKL(a,R.D)}else/http[s]?:\/\//.test(R.D)?a=new S$(new g.dV(R.D)):(a=u8(R.UP,h,F),R.D&&IKL(a,R.D));(F=R.range)?a.set("range",F.toString()):R.Vt[0].B.Tp()&&R.Vt.length===1&&R.Vt[0].D&&a.set("range",R.Vt[0].D+"-");R.requestId&&a.set("req_id",R.requestId);isNaN(R.GV)||a.set("headm",R.GV.toString());isNaN(R.N)||a.set("mffa",R.N+"ms");R.urlParams&&g.Rl(R.urlParams, function(J,M){a.set(M,J)}); return a}; qSm=function(R){if(R.range)return R.K;R=R.Vt[0];return Math.round(R.Z*R.B.info.CI)}; fKa=function(R,F){return Math.max(0,R.Vt[0].L-F)}; gH=function(R,F,h,a,J,M){M=M===void 0?0:M;K$.call(this,R,F,a,void 0);this.N=h;this.VD=M;this.index=J||new g.Uq}; jki=function(R,F,h,a,J){this.vG=R;this.startSecs=F;this.Rz=h;this.B=a||NaN;this.D=J||NaN}; Gl=function(R,F,h){for(;R;R=R.parentNode)if(R.attributes&&(!h||R.nodeName===h)){var a=R.getAttribute(F);if(a)return a}return""}; I_=function(R,F){for(;R;R=R.parentNode){var h=R.getElementsByTagName(F);if(h.length>0)return h[0]}return null}; Z7B=function(R){if(!R)return 0;var F=R.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return F?(Number(F[2])|0)*3600+(Number(F[4])|0)*60+(Number(F[6])|0):Number(R)|0}; b7a=function(R){return R.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?R+"Z":R}; il=function(){this.B=[];this.D=null;this.S=0;this.K=[];this.N=!1;this.Y="";this.L=-1}; SSi=function(R){var F=R.K;R.K=[];return F}; O7T=function(){this.L=[];this.B=null;this.D={};this.K={}}; eDI=function(R,F){var h=[];F=Array.from(F.getElementsByTagName("SegmentTimeline"));F=g.N(F);for(var a=F.next();!a.done;a=F.next()){a=a.value;var J=a.parentNode.parentNode,M=null;J.nodeName==="Period"?M=mQ2(R):J.nodeName==="AdaptationSet"?(J=J.getAttribute("id")||J.getAttribute("mimetype")||"",M=oKa(R,J)):J.nodeName==="Representation"&&(J=J.getAttribute("id")||"",M=Xzi(R,J));if(M==null)return;M.update(a);g.m4(h,SSi(M))}g.m4(R.L,h);yf_(R.L,function(v){return v.startSecs*1E3+v.B})}; nKa=function(R){R.B&&(R.B.B=[]);g.Rl(R.D,function(F){F.B=[]}); g.Rl(R.K,function(F){F.B=[]})}; mQ2=function(R){R.B||(R.B=new il);return R.B}; oKa=function(R,F){R.D[F]||(R.D[F]=new il);return R.D[F]}; Xzi=function(R,F){R.K[F]||(R.K[F]=new il);return R.K[F]}; E3=function(R){var F=R===void 0?{}:R;R=F.VD===void 0?0:F.VD;var h=F.f7===void 0?!1:F.f7;var a=F.rp===void 0?0:F.rp;var J=F.G2===void 0?0:F.G2;var M=F.Lr===void 0?Infinity:F.Lr;var v=F.UH===void 0?0:F.UH;var I=F.Xd===void 0?!1:F.Xd;F=F.vT===void 0?!1:F.vT;g.Uq.call(this);this.sU=this.nY=-1;this.OG=R;this.rp=a;this.f7=h;this.G2=J;this.Lr=M;this.UH=v;((this.Xd=I)||isFinite(M)&&this.Lr>0)&&h&&wH&&(this.D=!1,this.K="postLive");this.vT=F}; BI=function(R,F){return ze(R.segments,function(h){return F-h.vG})}; rH=function(R,F,h){h=h===void 0?{}:h;gH.call(this,R,F,"",void 0,void 0,h.VD||0);this.index=new E3(h)}; Yb=function(R,F,h){K$.call(this,R,F);this.N=h;R=this.index=new g.Uq;R.D=!1;R.K="d"}; uIi=function(R,F,h){var a=R.index.Bm(F),J=R.index.getStartTime(F),M=R.index.getDuration(F);h?M=h=0:h=R.info.CI*M;return new a_([new Uf(3,R,void 0,"otfCreateRequestInfoForSegment",F,J,M,0,h)],a)}; dQi=function(R,F){if(!R.index.isLoaded()){var h=[],a=F.L;F=F.N.split(",").filter(function(B){return B.length>0}); for(var J=0,M=0,v=0,I=/^(\d+)/,w=/r=(\d+)/,E=0;E0&&(J.B=Math.min(J.B+v,10),J.D=M);J.B>0?(J.B--,J=!0):J=!1;if(J)typeof a==="function"&&(a=a()),console.log("plyr."+F,a);else{var I;a=((I=DQO.get(F))!=null?I:0)+1;DQO.set(F,a);a%100===1&&console.warn("plyr","plyr."+F+" is chatty, dropping logs.")}}}; lKL=function(){this.B=10;this.D=Date.now()}; kb=function(R,F){this.info=R;this.D=F;this.B=null;this.L=this.K=-1;this.timestampOffset=0;this.isLocked=this.S=!1;this.N=this.info.B.BS()&&!this.info.D}; g.QF=function(R){return n3L(R.D)}; Vff=function(R,F){F=Math.min(F,R.info.K);var h=R.D.split(F),a=h.W9;h=new kb(new Uf(R.info.type,R.info.B,R.info.range,R.info.Y,R.info.vG,R.info.startTime,R.info.duration,R.info.D,F,!1,R.info.jK,R.info.clipId),h.SU);h.L=R.L;h.K=R.K;F=new kb(new Uf(R.info.type,R.info.B,R.info.range,R.info.Y,R.info.vG,R.info.startTime,R.info.duration,R.info.D+F,R.info.K-F,R.info.N,R.info.jK,R.info.clipId),a);F.L=R.L;F.K=R.K;return[h,F]}; g.$b=function(R,F,h,a){h=h===void 0?!1:h;a=a===void 0?0:a;if(R.isLocked||F.isLocked||!W$(R.info,F.info)||R.info.N)return null;if(a){if(R.D.totalLength+F.D.totalLength>a)return null}else if(h&&(h=R.D,a=F.D,h=!(a.B.length?Xm_(h,a.B[0]):1)),h)return null;h=new Uf(R.info.type,R.info.B,R.info.range,R.info.Y,R.info.vG,R.info.startTime,R.info.duration,R.info.D,R.info.K,R.info.N,R.info.jK,R.info.clipId);a=F.info;h.K+=a.K;h.range&&(h.Z+=a.Z);h.S=a.S;h.N=a.N;a=new hl;aN(a,R.D);aN(a,F.D);h=new kb(h,a);h.B!= null&&F.B!=null&&(new g.s3("dash")).B(414627957,"merged slice emsg overridden; prev: "+h.B.Iy()+" next: "+F.B.Iy());h.B=F.B||R.B;h.K=R.K!==-1?R.K:F.K;h.L=R.L!==-1?R.L:F.L;return h}; g.AP=function(R){g.XI(R.info.B.info)||R.info.B.info.K_();if(R.K!==-1)return R.K;if(R.B&&zJI(R.B))return R.K=zJI(R.B),R.K;if(g.XI(R.info.B.info)){var F=g.QF(R);for(var h=R.info.B.B,a=NaN,J=NaN,M=0;B$(F,M);){var v=r$(F,M);v.type===1936286840?J=v.data.getUint32(v.dataOffset+8):v.type===1836476516?J=g.i8(v):v.type===1952867444&&isNaN(a)&&(a=g.sf(v));M=YE(v.type)?M+8:M+v.size}!J&&h&&(J=w$(h));F=a/J}else F=new QB(g.QF(R)),h=R.N?F:new QB(new DataView(R.info.B.B.buffer)),a=ZQ(h),h=F.pos,F.pos=0,b8(F)?NG(F, 231)?(a=T4(F)*a/1E9,F.pos=h,F=a):(F.pos=h,F=NaN):(F.pos=h,F=NaN);R.K=F||R.info.L;return R.K}; CWf=function(R,F){R.timestampOffset>0&&(F-=R.timestampOffset);var h=g.AP(R)+F;UQa(R,h);R.timestampOffset=F}; UQa=function(R,F){g.XI(R.info.B.info)||R.info.B.info.K_();R.K=F;if(g.XI(R.info.B.info)){var h=g.QF(R);R=R.info.B.B;for(var a=NaN,J=NaN,M=0;B$(h,M);){var v=r$(h,M);isNaN(a)&&(v.type===1936286840?a=v.data.getUint32(v.dataOffset+8):v.type===1836476516&&(a=g.i8(v)));if(v.type===1952867444){!a&&R&&(a=w$(R));var I=g.sf(v);isNaN(J)&&(J=Math.round(F*a)-I);var w=v;I+=J;if(w.data.getUint8(w.dataOffset)){var E=w.data;w=w.dataOffset+4;E.setUint32(w,Math.floor(I/4294967296));E.setUint32(w+4,I&4294967295)}else w.data.setUint32(w.dataOffset+ 4,I)}M=YE(v.type)?M+8:M+v.size}return!0}h=new QB(g.QF(R));R=R.N?h:new QB(new DataView(R.info.B.B.buffer));a=ZQ(R);R=h.pos;h.pos=0;if(b8(h)&&NG(h,231))if(J=H$(h,!0),F=Math.floor(F*1E9/a),Math.ceil(Math.log(F)/Math.log(2)/8)>J)F=!1;else{for(a=J-1;a>=0;a--)h.B.setUint8(h.pos+a,F&255),F>>>=8;h.pos=R;F=!0}else F=!1;return F}; N3=function(R,F){F=F===void 0?!1:F;var h=xb(R);R=F?0:R.info.Z;return h||R}; xb=function(R){g.XI(R.info.B.info)||R.info.B.info.K_();if(R.B&&R.info.type===6)return R.B.VD;if(g.XI(R.info.B.info)){var F=g.QF(R);var h=0;F=g.kE(F,1936286840);F=g.N(F);for(var a=F.next();!a.done;a=F.next())a=cEL(a.value),h+=a.iU[0]/a.timescale;h=h||NaN;if(!(h>=0))a:{h=g.QF(R);F=R.info.B.B;for(var J=a=0,M=0;B$(h,a);){var v=r$(h,a);if(v.type===1836476516)J=g.i8(v);else if(v.type===1836019558){!J&&F&&(J=w$(F));if(!J){h=NaN;break a}var I=Ef(v.data,v.dataOffset,1953653094),w=I;I=J;var E=Ef(w.data,w.dataOffset, 1952868452);w=Ef(w.data,w.dataOffset,1953658222);var B=Ro(E);Ro(E);B&2&&Ro(E);E=B&8?Ro(E):0;var r=Ro(w),Y=r&1;B=r&4;var p=r&256,k=r&512,H=r&1024;r&=2048;var T=FG(w);Y&&Ro(w);B&&Ro(w);for(var Z=Y=0;Z2048?"":F.indexOf("https://")===0?F:""}; fL=function(R,F,h){F.match(IFm);return R(F,h).then(function(a){var J=g.G7B(a.xhr);return J?fL(R,J,h):a.xhr})}; O3=function(R,F,h){R=R===void 0?"":R;F=F===void 0?null:F;h=h===void 0?!1:h;g.h0.call(this);var a=this;this.sourceUrl=R;this.isLivePlayback=h;this.PG=this.duration=0;this.isPremiere=this.Xd=this.L=this.isLiveHeadPlayable=this.isLive=this.D=!1;this.Lr=this.G2=0;this.isOtf=this.Mt=!1;this.Sl=(0,g.NU)();this.oR=Infinity;this.B={};this.K=new Map;this.state=this.Xt=0;this.timeline=null;this.isManifestless=!1;this.KI=[];this.S=null;this.fI=0;this.N="";this.Oz=NaN;this.Uz=this.Sw=this.timestampOffset=this.Y= 0;this.B1=this.ES=NaN;this.gW=0;this.NQ=this.C=!1;this.IR=[];this.Fo={};this.aR=NaN;this.rf={cXR:function(I){ZL(a,I)}}; var J;this.T$=(J=F)==null?void 0:J.jl("html5_use_network_error_code_enums");ivT=!!F&&F.jl("html5_modern_vp9_mime_type");var M;bl=!((M=F)==null||!M.jl("html5_enable_flush_during_seek"))&&g.db();var v;Sa=!((v=F)==null||!v.jl("html5_enable_reset_audio_decoder"))&&g.db()}; w12=function(R){return g.JX(R.B,function(F){return!!F.info.video&&F.info.video.qualityOrdinal>=2160})}; TWL=function(R){return g.JX(R.B,function(F){return!!F.info.video&&F.info.video.isHdr()})}; Oq=function(R){return g.JX(R.B,function(F){return!!F.info.qH})}; g.Eu_=function(R){return g.JX(R.B,function(F){return Pz(F.info.mimeType)})}; Bhi=function(R){return g.JX(R.B,function(F){return F.info.video?F.info.video.projectionType==="EQUIRECTANGULAR":!1})}; raB=function(R){return g.JX(R.B,function(F){return F.info.video?F.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; YcT=function(R){return g.JX(R.B,function(F){return F.info.video?F.info.video.projectionType==="MESH":!1})}; syL=function(R){return g.JX(R.B,function(F){return F.info.video?F.info.video.stereoLayout===1:!1})}; p1a=function(R){return b_g(R.B,function(F){return F.info.video?F.lS():!0})}; Zo=function(R){return g.JX(R.B,function(F){return Ko(F.UP.B)})}; ZL=function(R,F){R.B[F.info.id]=F;R.K.set(z4(g.n7(F.info,R.Mt)),F)}; Xv=function(R,F,h){h=h===void 0?0:h;var a=R.mimeType||"",J=R.itag;var M=R.xtags;J=J?J.toString():"";M&&(J+=";"+M);M=J;if(de(a)){var v=R.width||640;J=R.height||360;var I=R.fps,w=R.qualityLabel,E=R.colorInfo,B=R.projectionType,r;R.stereoLayout&&(r=k7L[R.stereoLayout]);var Y=vuO(R)||void 0;if(E==null?0:E.primaries)var p=QyB[E.primaries]||void 0;v=new Tm(v,J,I,B,r,void 0,w,Y,p);a=mP(a,v,f7[R.itag||""]);bl&&(a+="; enableflushduringseek=true");Sa&&(a+="; enableresetaudiodecoder=true")}var k;if(uW(a)){var H= R.audioSampleRate;r=R.audioTrack;H=new NQ(H?+H:void 0,R.audioChannels,R.spatialAudioType,R.isDrc,R.loudnessDb,R.trackAbsoluteLoudnessLkfs,R.audioQuality||"AUDIO_QUALITY_UNKNOWN",R.isVb);r&&(p=r.displayName,J=r.id,r=r.audioIsDefault,p&&(k=new g.q3(p,J||"",!!r)))}var T;R.captionTrack&&(w=R.captionTrack,r=w.displayName,p=w.vssId,J=w.languageCode,I=w.kind,w=w.id,r&&p&&J&&(T=new Jaf(r,p,J,I,R.xtags,w)));r=Number(R.bitrate)/8;p=Number(R.contentLength);J=Number(R.lastModified);w=R.drmFamilies;I=R.type;h= h&&p?p/h:0;R=Number(R.approxDurationMs);if(F&&w){var Z={};w=g.N(w);for(E=w.next();!E.done;E=w.next())(E=o_[E.value])&&(Z[E]=F[E])}return new jf(M,a,{audio:H,video:v,jw:k,qH:Z,CI:r,Fl:h,contentLength:p,lastModified:J,captionTrack:T,streamType:I,approxDurationMs:R})}; ea=function(R,F,h){h=h===void 0?0:h;var a=R.type;var J=R.itag;var M=R.xtags;M&&(J=R.itag+";"+M);if(de(a)){var v=(R.size||"640x360").split("x");v=new Tm(+v[0],+v[1],+R.fps,R.projection_type,+R.stereo_layout,void 0,R.quality_label,R.eotf,R.primaries);a=mP(a,v,f7[R.itag]);bl&&(a+="; enableflushduringseek=true");Sa&&(a+="; enableresetaudiodecoder=true")}var I;if(uW(a)){var w=new NQ(+R.audio_sample_rate||void 0,+R.audio_channels||0,R.spatial_audio_type,!!R.drc);R.name&&(I=new g.q3(R.name,R.audio_track_id, R.isDefault==="1"))}var E;R.caption_display_name&&R.caption_vss_id&&R.caption_language_code&&(E=new Jaf(R.caption_display_name,R.caption_vss_id,R.caption_language_code,R.caption_kind,R.xtags,R.caption_id));M=Number(R.bitrate)/8;var B=Number(R.clen),r=Number(R.lmt);h=h&&B?B/h:0;if(F&&R.drm_families){var Y={};for(var p=g.N(R.drm_families.split(",")),k=p.next();!k.done;k=p.next())k=k.value,Y[k]=F[k]}return new jf(J,a,{audio:w,video:v,jw:I,qH:Y,CI:M,Fl:h,contentLength:B,lastModified:r,captionTrack:E, streamType:R.stream_type,approxDurationMs:Number(R.approx_duration_ms)})}; $87=function(R){return dy(R,function(F){return"FORMAT_STREAM_TYPE_OTF"===F.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; AaL=function(R){return dy(R,function(F){return"FORMAT_STREAM_TYPE_OTF"===F.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; x8n=function(R,F){return R.timeline?ou(R.timeline.L,F):R.KI.length?ou(R.KI,F):[]}; nL=function(R,F,h){F=F===void 0?"":F;h=h===void 0?"":h;R=new g.dV(R,!0);R.set("alr","yes");h&&(h=t3g(decodeURIComponent(h)),R[G[17]](F,encodeURIComponent(h)));return R}; Thf=function(R,F){var h=Gl(F,"id");h=h.replace(":",";");var a=Gl(F,"mimeType"),J=Gl(F,"codecs");a=J?a+'; codecs="'+J+'"':a;J=Number(Gl(F,"bandwidth"))/8;var M=Number(I_(F,"BaseURL").getAttribute(R.N+":contentLength")),v=R.duration&&M?M/R.duration:0;if(de(a)){var I=Number(Gl(F,"width"));var w=Number(Gl(F,"height")),E=Number(Gl(F,"frameRate")),B=NhT(Gl(F,R.N+":projectionType"));a:switch(Gl(F,R.N+":stereoLayout")){case "layout_left_right":var r=1;break a;case "layout_top_bottom":r=2;break a;default:r= 0}I=new Tm(I,w,E,B,r)}if(uW(a)){var Y=Number(Gl(F,"audioSamplingRate"));var p=Number(Gl(F.getElementsByTagName("AudioChannelConfiguration")[0],"value"));w=HvT(Gl(F,R.N+":spatialAudioType"));Y=new NQ(Y,p,w);a:{p=Gl(F,"lang")||"und";if(w=I_(F,"Role"))if(B=Gl(w,"value")||"",g.i_(LjB,B)){w=p+"."+LjB[B];E=B==="main";R=Gl(F,R.N+":langName")||p+" - "+B;p=new g.q3(R,w,E);break a}p=void 0}}if(F=I_(F,"ContentProtection"))if(F.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var k={};for(F= F.firstChild;F!=null;F=F.nextSibling)F instanceof Element&&/SystemURL/.test(F.nodeName)&&(R=F.getAttribute("type"),w=F.textContent,R&&w&&(k[R]=w.trim()))}else k=void 0;return new jf(h,a,{audio:Y,video:I,jw:p,qH:k,CI:J,Fl:v,contentLength:M})}; NhT=function(R){switch(R){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"}}; HvT=function(R){switch(R){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"}}; qcB=function(R,F){F=F===void 0?"":F;R.state=1;R.Sl=(0,g.NU)();return gug(F||R.sourceUrl).then(function(h){if(!R.RR()){R.Xt=h.status;h=h.responseText;var a=new DOMParser;h=Tq(a,OJL(h),"text/xml").getElementsByTagName("MPD")[0];R.oR=Z7B(Gl(h,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(h.attributes){a=g.N(h.attributes);for(var J=a.next();!J.done;J=a.next())if(J=J.value,J.value==="http://youtube.com/yt/2012/10/10"){a=J.name.split(":")[1];break b}}a=""}R.N=a;R.isLive=R.oR=R.oR}; jyI=function(R){R.S&&R.S.stop()}; yan=function(R){var F=R.oR;isFinite(F)&&(ul(R)?R.refresh():(F=Math.max(0,R.Sl+F-(0,g.NU)()),R.S||(R.S=new g.DY(R.refresh,F,R),g.z(R,R.S)),R.S.start(F)))}; Zvi=function(R){R=R.B;for(var F in R){var h=R[F].index;if(h.isLoaded())return h.Ff()+1}return 0}; dH=function(R){return R.Sw?R.Sw-(R.Y||R.timestampOffset):0}; PI=function(R){return R.Uz?R.Uz-(R.Y||R.timestampOffset):0}; zl=function(R){if(!isNaN(R.Oz))return R.Oz;var F=R.B,h;for(h in F){var a=F[h].index;if(a.isLoaded()&&!Pz(F[h].info.mimeType)){F=0;for(h=a.Pa();h<=a.Ff();h++)F+=a.getDuration(h);F/=a.OC();F=Math.round(F/.5)*.5;a.OC()>10&&(R.Oz=F);return F}if(R.isLive&&(a=F[h],a.VD))return a.VD}return NaN}; bvn=function(R,F){R=O_L(R.B,function(a){return a.index.isLoaded()}); if(!R)return NaN;R=R.index;var h=R.L2(F);return R.getStartTime(h)===F?F:h=0&&J.segments.splice(M,1)}}}; Ovn=function(R){for(var F in R.B)Pz(R.B[F].info.mimeType)||eJi(R.B[F].index,Infinity)}; ll=function(R,F,h){for(var a in R.B){var J=R.B[a].index,M=F,v=h;J.f7&&(M&&(J.nY=Math.max(J.nY,M)),v&&(J.sU=Math.max(J.sU||0,v)))}h&&(R.aR=h/1E3)}; m8_=function(R){R.Uz=0;R.Sw=0;R.gW=0}; DL=function(R){return R.NQ&&R.isManifestless?R.isLiveHeadPlayable:R.isLive}; mP=function(R,F,h){VF===null&&(VF=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(ivT&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return VF||h!=="9"&&h!=="("?VF||h!=="9h"&&h!=="(h"||(R='video/webm; codecs="vp9.2"'):R='video/webm; codecs="vp9"',R;if(!VF&&!U3||R!=='video/webm; codecs="vp9"'&&R!=='video/webm; codecs="vp9.2"')return R; h="00";var a="08",J="01",M="01",v="01";R==='video/webm; codecs="vp9.2"'&&(h="02",a="10",F.primaries==="bt2020"&&(v=J="09"),F.B==="smpte2084"&&(M="16"),F.B==="arib-std-b67"&&(M="18"));return'video/webm; codecs="'+["vp09",h,"51",a,"01",J,M,v,"00"].join(".")+'"'}; cI=function(R,F,h){R=""+R+(F>49?"p60":F>32?"p48":"");F=rV()[R];if(F!=null&&F>0)return F;F=CL.get(R);if(F!=null&&F>0)return F;h=h==null?void 0:h.get(R);return h!=null&&h>0?h:8192}; ouL=function(R){this.LI=R;this.Ho=this.oZ=this.fI=this.N=this.L=this.IR=this.NQ=this.oR=!1;this.Y=this.S=0;this.T$=!1;this.aR=!0;this.Fo=!1;this.Ae=0;this.lf=this.KI=!1;this.Xf=!0;this.Sl=this.Oz=!1;this.B={};this.EP=this.iY=this.FW=this.disableAv1=this.nI=this.i9=this.HG=this.uY=this.D=this.Z=!1;this.AT=this.LI.X("html5_disable_aac_preference");this.It=Infinity;this.Uz=0;this.gW=this.LI.Po();this.Sw=this.LI.experiments.jl("html5_enable_vp9_fairplay");this.d$=this.LI.X("html5_force_av1_for_testing"); this.PG=g.RI(this.LI.experiments,"html5_av1_ordinal_cap");this.xO=this.LI.X("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.gf=this.LI.X("html5_account_onesie_format_selection_during_format_filter");this.CI=g.RI(this.LI.experiments,"html5_max_byterate");this.YH=this.LI.X("html5_enable_iamf_audio");this.Ym=this.LI.experiments.jl("html5_allow_capability_merge");this.Ma=this.LI.X("html5_enable_encrypted_av1")}; yEL=function(R){if(R.NQ)return["f"];if(g.nR("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var F=["9h","9","h","8"];R.Ma&&F.push("1e");F=F.concat(["(h","(","H","*"]);R.KI&&(F.unshift("1"),F.unshift("1h"));R.oZ&&F.unshift("h");R.C&&(F=(X1a[R.C]||[R.C]).concat(F));return F}; $9n=function(R){var F=["o","a","A"];R.Uz===1&&(R.L&&(F=["mac3","MAC3"].concat(F)),R.N&&(F=["meac3","MEAC3"].concat(F)),R.YH&&(F=["i","I"].concat(F)));R.oR&&(F=["so","sa"].concat(F));!R.Ho||R.fI||R.K||R.AT||F.unshift("a");R.K&&(F=(X1a[R.K]||[R.K]).concat(F));return F}; WI=function(R,F,h,a){F=F===void 0?{}:F;if(a===void 0?0:a)return F.disabled=1,0;if(no(R.N,uM.AV1_CODECS)&&no(R.N,uM.HEIGHT)&&no(R.N,uM.BITRATE))return F.isCapabilityUsable=1,8192;try{var J=hJ_();if(J&&!R.X("disable_av1_setting"))return F.localPref=J}catch(I){}a=1080;J=navigator.hardwareConcurrency;J<=2&&(a=480);F.coreCount=J;if(J=g.RI(R.experiments,"html5_default_av1_threshold"))a=F["default"]=J;!R.X("html5_disable_av1_arm_check")&&knL()&&(F.isArm=1,a=240);if(R=R.N.aR)F.mcap=R,a=Math.max(a,R);if(h){var M, v;if(R=(M=h.videoInfos.find(function(I){return OS(I)}))==null?void 0:(v=M.D)==null?void 0:v.powerEfficient)a=8192,F.isEfficient=1; h=h.videoInfos[0].video;M=Math.min(cI("1",h.fps),cI("1",30));F.perfCap=M;a=Math.min(a,M);h.isHdr()&&!R&&(F.hdr=1,a*=.75)}else h=cI("1",30),F.perfCap30=h,a=Math.min(a,h),h=cI("1",60),F.perfCap60=h,a=Math.min(a,h);return F.av1Threshold=a}; R6=function(R,F,h,a){this.flavor=R;this.keySystem=F;this.D=h;this.experiments=a;this.B={};this.PG=this.keySystemAccess=null;this.Nv=this.Mv=-1;this.B9=null;this.K=!!a&&a.jl("edge_nonprefixed_eme");a&&a.jl("html5_enable_vp9_fairplay")}; hc=function(R){return R.K?!1:!R.keySystemAccess&&!!FU()&&R.keySystem==="com.microsoft.playready"}; a6=function(R){return R.keySystem==="com.microsoft.playready"}; Jc=function(R){return!R.keySystemAccess&&!!FU()&&R.keySystem==="com.apple.fps.1_0"}; MM=function(R){return R.keySystem==="com.youtube.fairplay"}; vy=function(R){return R.keySystem==="com.youtube.fairplay.sbdl"}; g.gp=function(R){return R.flavor==="fairplay"}; FU=function(){var R=window,F=R.MSMediaKeys;KR()&&!F&&(F=R.WebKitMediaKeys);return F&&F.isTypeSupported?F:null}; I6=function(R){return navigator.requestMediaKeySystemAccess?g.kK&&!g.db()?NE("45"):g.zC||g.EN?R.jl("edge_nonprefixed_eme"):g.Go?NE("47"):g.YV&&R.jl("html5_enable_safari_fairplay")?!1:!0:!1}; eZ_=function(R,F,h,a){var J=P6(),M=(h=J||h&&KR())?["com.youtube.fairplay"]:["com.widevine.alpha"];F&&M.unshift("com.youtube.widevine.l3");J&&a&&M.unshift("com.youtube.fairplay.sbdl");return h?M:R?[].concat(g.S(M),g.S(io.playready)):[].concat(g.S(io.playready),g.S(M))}; wp=function(R,F,h,a,J){a=a===void 0?!1:a;g.d.call(this);this.LI=F;this.useCobaltWidevine=a;this.dA=J;this.D=[];this.K={};this.B={};this.callback=null;this.N=!1;this.L=[];this.initialize(R,!h)}; uxg=function(R,F){R.callback=F;R.L=[];I6(R.LI.experiments)?Ek(R):nuT(R)}; Ek=function(R){if(!R.RR())if(R.D.length===0)R.callback(R.L);else{var F=R.D[0],h=R.K[F],a=d8f(R,h);if(By&&By.keySystem===F&&By.G2n===JSON.stringify(a))R.dA("remksa",{re:!0}),PAO(R,h,By.keySystemAccess);else{var J,M;R.dA("remksa",{re:!1,ok:(M=(J=By)==null?void 0:J.keySystem)!=null?M:""});By=void 0;navigator.requestMediaKeySystemAccess(F,a).then(ua(function(v){PAO(R,h,v,a)}),ua(function(){R.N=!R.N&&R.K[R.D[0]].flavor==="widevine"; R.N||R.D.shift();Ek(R)}))}}}; PAO=function(R,F,h,a){if(!R.RR()){a&&(By={keySystem:F.keySystem,keySystemAccess:h,G2n:JSON.stringify(a)});F.keySystemAccess=h;if(a6(F)){h=sS();a=g.N(Object.keys(R.B[F.flavor]));for(var J=a.next();!J.done;J=a.next())J=J.value,F.B[J]=!!h.canPlayType(J)}else{h=F.keySystemAccess.getConfiguration();if(h.audioCapabilities)for(a=g.N(h.audioCapabilities),J=a.next();!J.done;J=a.next())F.B[J.value.contentType]=!0;if(h.videoCapabilities)for(h=g.N(h.videoCapabilities),a=h.next();!a.done;a=h.next())F.B[a.value.contentType]= !0}R.L.push(F);R.useCobaltWidevine||R.X("html5_enable_vp9_fairplay")&&vy(F)?(R.D.shift(),Ek(R)):R.callback(R.L)}}; d8f=function(R,F){var h={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(R.X("html5_enable_vp9_fairplay")&&MM(F))return h.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),h.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[h];a6(F)&&(h.initDataTypes=["keyids","cenc"]);for(var a=g.N(Object.keys(R.B[F.flavor])),J=a.next();!J.done;J=a.next()){J=J.value;var M=J.indexOf("audio/")===0,v=M?h.audioCapabilities:h.videoCapabilities;F.flavor!== "widevine"||R.N?v.push({contentType:J}):M?v.push({contentType:J,robustness:"SW_SECURE_CRYPTO"}):(g.kK&&g.nR("windows nt")&&!R.X("html5_drm_enable_moho")||v.push({contentType:J,robustness:"HW_SECURE_ALL"}),M=J,R.LI.N.K&&J.includes("vp09")&&(M=J+"; experimental=allowed"),v.push({contentType:M,robustness:"SW_SECURE_DECODE"}),rp(R.LI)==="MWEB"&&(CR()||uB())&&(R.dA("swcrypto",{}),v.push({contentType:J,robustness:"SW_SECURE_CRYPTO"})))}return[h]}; nuT=function(R){if(FU()&&(g.YV||lB))R.L.push(new R6("fairplay","com.apple.fps.1_0","",R.LI.experiments));else{var F=zZn(),h=g.QL(R.D,function(a){var J=R.K[a],M=!1,v=!1,I;for(I in R.B[J.flavor])F(I,a)&&(J.B[I]=!0,M=M||I.indexOf("audio/")===0,v=v||I.indexOf("video/")===0);return M&&v}); h&&R.L.push(R.K[h]);R.D=[]}R.callback(R.L)}; zZn=function(){var R=FU();if(R){var F=R.isTypeSupported;return function(a,J){return F(J,a)}}var h=sS(); return h&&(h.addKey||h.webkitAddKey)?function(a,J){return!!h.canPlayType(a,J)}:function(){return!1}}; Kja=function(R){this.experiments=R;this.B=2048;this.L=0;this.aR=(this.Y=this.X("html5_streaming_resilience"))?.5:.25;var F=F===void 0?0:F;this.K=g.RI(this.experiments,"html5_media_time_weight_prop")||F;this.oR=g.RI(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.C=(this.N=this.experiments.jl("html5_consider_end_stall"))&&Y9;this.D=this.experiments.jl("html5_measure_max_progress_handling");this.Z=this.X("html5_treat_requests_pre_elbow_as_metadata");this.S=this.X("html5_media_time_weight")|| !!this.K;this.X("html5_sabr_live_audio_early_return_fix")&&Y9&&(this.B=65536)}; tSL=function(R,F){this.B=void 0;this.experimentIds=R?R.split(","):[];this.flags=Cp(F||"","&");R={};F=g.N(this.experimentIds);for(var h=F.next();!h.done;h=F.next())R[h.value]=!0;this.experiments=R}; g.RI=function(R,F){R=R.flags[F];JSON.stringify(R);return Number(R)||0}; sk=function(R,F){return(R=R.flags[F])?R.toString():""}; lFn=function(R){if(R=R.flags.html5_web_po_experiment_ids)if(R=R.replace(/\[ *(.*?) *\]/,"$1"))return R.split(",").map(Number);return[]}; D8L=function(R){if(R.B)return R.B;if(R.experimentIds.length<=1)return R.B=R.experimentIds,R.B;var F=[].concat(g.S(R.experimentIds)).map(function(a){return Number(a)}); F.sort();for(var h=F.length-1;h>0;--h)F[h]-=F[h-1];R.B=F.map(function(a){return a.toString()}); R.B.unshift("v1");return R.B}; U8i=function(R){return VSi.then(R)}; pG=function(R,F,h){this.experiments=R;this.Uz=F;this.fI=h===void 0?!1:h;this.C=!!g.hG("cast.receiver.platform.canDisplayType");this.Z={};this.oR=!1;this.L=new Map;this.Y=!0;this.D=this.K=!1;this.B=new Map;this.aR=0;this.KI=this.experiments.jl("html5_disable_vp9_encrypted");this.N=this.experiments.jl("html5_enable_encrypted_av1");R=g.hG("cast.receiver.platform.getValue");this.S=!this.C&&R&&R("max-video-resolution-vpx")||null;CAI(this);this.K=!!(P6()&&en()>=21)}; jiB=function(R,F,h){h=h===void 0?1:h;var a=F.itag;if(a==="0")return!0;var J=F.mimeType;if(F.Qt==="1e"&&!R.N)return"dav1enc";if(OS(F)&&R.oR)return"dav1";if(F.video&&(F.video.isHdr()||F.video.primaries==="bt2020")&&!(no(R,uM.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(a==="338"&&!(g.kK?NE(53):g.Go&&NE(64)))return"dopus";var M=h;M=M===void 0?1: M;h={};F.video&&(F.video.width&&(h[uM.WIDTH.name]=F.video.width),F.video.height&&(h[uM.HEIGHT.name]=F.video.height),F.video.fps&&(h[uM.FRAMERATE.name]=F.video.fps*M),F.video.B&&(h[uM.EOTF.name]=F.video.B),F.CI&&(h[uM.BITRATE.name]=F.CI*8*M),F.Qt==="("&&(h[uM.CRYPTOBLOCKFORMAT.name]="subsample"),F.video.projectionType==="EQUIRECTANGULAR"||F.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||F.video.projectionType==="MESH")&&(h[uM.DECODETOTEXTURE.name]="true");F.audio&&F.audio.numChannels&& (h[uM.CHANNELS.name]=F.audio.numChannels);R.K&&ZK(F)&&(h[uM.EXPERIMENTAL.name]="allowed");M=g.N(Object.keys(uM));for(var v=M.next();!v.done;v=M.next()){v=uM[v.value];var I;if(I=h[v.name])if(I=!(v===uM.EOTF&&F.mimeType.indexOf("vp09.02")>0)){I=v;var w=F;I=!(R.experiments.jl("html5_ignore_h264_framerate_cap")&&I===uM.FRAMERATE&&f6i(w))}if(I)if(no(R,v))if(R.S){if(R.S[v.name] 1080&&F.qH&&(J+="; hdcp=2.2");return a==="227"?"hqcenc":a!=="585"&&a!=="588"&&a!=="583"&&a!=="586"&&a!=="584"&&a!=="587"&&a!=="591"&&a!=="592"||R.experiments.jl("html5_enable_new_hvc_enc")?P6()&&en()>=21&&g.nR("appletv5")&&(a==="410"||a==="845")?!0:R.isTypeSupported(J)?!0:"tpus":"newhvc"}; k9=function(){var R=uB()&&!NE(29),F=g.nR("google tv")&&g.nR("chrome")&&!NE(30);return R||F?!1:mFL()}; ca_=function(R,F,h){var a=480;F=g.N(F);for(var J=F.next();!J.done;J=F.next()){J=J.value;var M=J.video.qualityOrdinal;M<=1080&&M>a&&jiB(R,J,h)===!0&&(a=M)}return a}; g.Q9=function(R,F){F=F===void 0?!1:F;return k9()&&R.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!F&&R.canPlayType(sS(),"application/x-mpegURL")?!0:!1}; RSg=function(R){Wji(function(){for(var F=g.N(Object.keys(uM)),h=F.next();!h.done;h=F.next())no(R,uM[h.value])})}; no=function(R,F){F.name in R.Z||(R.Z[F.name]=FDI(R,F));return R.Z[F.name]}; FDI=function(R,F){if(R.S)return!!R.S[F.name];if(F===uM.BITRATE&&R.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!R.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(F===uM.AV1_CODECS)return R.isTypeSupported("video/mp4; codecs="+F.valid)&&!R.isTypeSupported("video/mp4; codecs="+F.SE);if(F.video){var h='video/webm; codecs="vp9"';R.isTypeSupported(h)||(h='video/mp4; codecs="avc1.4d401e"')}else h='audio/webm; codecs="opus"', R.isTypeSupported(h)||(h='audio/mp4; codecs="mp4a.40.2"');return R.isTypeSupported(h+"; "+F.name+"="+F.valid)&&!R.isTypeSupported(h+"; "+F.name+"="+F.SE)}; hST=function(R,F){var h=0;R.L.has(F)&&(h=R.L.get(F).LH);R.L.set(F,{LH:h+1,eQ:Math.pow(2,h+1)});R.D=!0}; mm=function(R){for(var F=[],h=g.N(R.B.keys()),a=h.next();!a.done;a=h.next()){a=a.value;var J=R.B.get(a);F.push(a+"_"+J.maxWidth+"_"+J.maxHeight)}return F.join(".")}; x9n=function(R,F){for(var h=new Map,a=g.N(R.B.keys()),J=a.next();!J.done;J=a.next()){J=J.value;var M=J.split("_")[0];F.has(M)||h.set(J,R.B.get(J))}R.B=h}; HA_=function(R,F,h){var a,J=((a=h.video)==null?void 0:a.fps)||0;a=F+"_"+J;var M=!!h.audio,v={itag:h.itag,Qt:F,rk:M};if(M)v.numChannels=h.audio.numChannels;else{var I=h.video;v.maxWidth=I==null?void 0:I.width;v.maxHeight=I==null?void 0:I.height;v.maxFramerate=J;no(R,uM.BITRATE)&&(v.maxBitrateBps=h.CI*8);v.Xb=I==null?void 0:I.isHdr()}I=R.B.get(a);I?M||(h=Math.max(I.maxWidth||0,I.maxHeight||0)>Math.max(v.maxWidth||0,v.maxHeight||0)?I:v,F={itag:h.itag,Qt:F,rk:M,maxWidth:Math.max(I.maxWidth||0,v.maxWidth|| 0),maxHeight:Math.max(I.maxHeight||0,v.maxHeight||0),maxFramerate:J,Xb:h.Xb},no(R,uM.BITRATE)&&(F.maxBitrateBps=h.maxBitrateBps),R.B.set(a,F)):R.B.set(a,v)}; LQL=function(R,F,h){var a,J=((a=h.video)==null?void 0:a.fps)||0;a=F+"_"+J;var M=!!h.audio,v=R.B.get(a);a:{var I=R.B.get(a),w=!!h.audio;if(I){if(w){var E=!1;break a}var B;if(!w&&((E=h.video)==null?0:E.height)&&I.maxHeight&&I.maxHeight>=((B=h.video)==null?void 0:B.height)){E=!1;break a}}E=!0}E&&(E=h.itag,F=v?v:{itag:E,Qt:F,rk:M},M?F.numChannels=h.audio.numChannels:(M=h.video,F.maxWidth=M==null?void 0:M.width,F.maxHeight=M==null?void 0:M.height,F.maxFramerate=J,no(R,uM.BITRATE)&&(F.maxBitrateBps=h.CI* 8),F.Xb=M==null?void 0:M.isHdr()),R.B.set(a,F))}; CAI=function(R){var F;(F=navigator.mediaCapabilities)!=null&&F.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(h){h.smooth&&h.powerEfficient&&(R.aR=2160)})}; $9=function(){g.h0.call(this);this.items={}}; a5L=function(R,F,h){this.encryptedClientKey=F;this.N=h;this.B=new Uint8Array(R.buffer,0,16);this.D=new Uint8Array(R.buffer,16)}; JoT=function(R){R.K||(R.K=new g.IZ(R.B));return R.K}; Ac=function(R){try{return qx(R)}catch(F){return null}}; Mdn=function(R,F){if(!F&&R)try{F=JSON.parse(R)}catch(J){}if(F){R=F.clientKey?Ac(F.clientKey):null;var h=F.encryptedClientKey?Ac(F.encryptedClientKey):null,a=F.keyExpiresInSeconds?Number(F.keyExpiresInSeconds)*1E3+(0,g.NU)():null;R&&h&&a&&(this.B=new a5L(R,h,a));F.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Ac(F.onesieUstreamerConfig)||void 0);this.baseUrl=F.baseUrl}}; NM=function(){this.data=new Uint8Array(2048);this.pos=0;x9||(x9=sa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Hy=function(R,F){R.add(F==null||isNaN(F)?0:F+1)}; LG=function(R){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/R)}; To=function(R){this.D=R===void 0?15:R;this.values=new Float64Array(176);this.B=new Float64Array(11);this.K=new Float64Array(16)}; y9=function(R,F,h,a){h=h===void 0?.5:h;a=a===void 0?0:a;this.resolution=F;this.D=0;this.K=!1;this.At=!0;this.B=Math.round(R*this.resolution);this.values=Array(this.B);for(R=0;R0)F=R.byterate,this.oR=!0;else{var a; h=(((a=navigator.connection)==null?void 0:a.downlink)||0)*64*1024;h>0&&(F=h,this.oR=!0)}this.K.TT(this.policy.S,F);R.delay>0&&this.Z.TT(1,Math.min(R.delay,2));R.stall>0&&this.Y.TT(1,R.stall);R.init>0&&(this.Sl=Math.min(R.init,this.Sl));R.interruptions&&(this.L=this.L.concat(R.interruptions),this.L.length>16&&this.L.pop());this.aR=(0,g.NU)();this.policy.Y>0&&(this.NQ=new g.DY(this.IR,this.policy.Y,this),g.z(this,this.NQ),this.NQ.start())}; fG=function(R,F,h,a){R.K.TT(a===void 0?F:a,h/F);R.S=(0,g.NU)()}; g1T=function(R){R.N||(R.N=(0,g.NU)());R.policy.C&&(R.S=(0,g.NU)())}; Gbf=function(R,F){if(R.N){var h=F-R.N;if(h<6E4){if(h>1E3){var a=R.interruptions;a.push(Math.ceil(h));a.sort(function(J,M){return M-J}); a.length>16&&a.pop()}R.Uz+=h}}R.N=F}; jD=function(R,F,h,a,J,M){M=M===void 0?!1:M;R.Oz.TT(F,h/F);R.S=(0,g.NU)();J||R.C.TT(1,F-a);M||(R.N=0);R.aR>-1&&(0,g.NU)()-R.aR>3E4&&I5L(R)}; ZU=function(R,F,h){F=Math.max(F,R.D.B);R.Y.TT(1,h/F)}; bo=function(R){R=R.Z.Wf()+R.fI.Wf()||0;R=isNaN(R)?.5:R;return R=Math.min(R,5)}; SD=function(R,F,h){isNaN(h)||(R.KI+=h);isNaN(F)||(R.PG+=F)}; Ok=function(R){R=R.K.Wf();return R>0?R:1}; mo=function(R,F,h){F=F===void 0?!1:F;h=h===void 0?1048576:h;var a=Ok(R);a=1/((R.Y.Wf()||0)*R.policy.oR+1/a);var J=R.Oz.Wf();J=J>0?J:1;var M=Math.max(a,J);R.policy.N>0&&J=4E3}; wT7=function(R){this.experiments=R;this.B=17;this.K=13E4;this.S=.5;this.L=this.D=!1;this.aR=this.X("html5_use_histogram_for_bandwidth");this.N=g.RI(this.experiments,"html5_auxiliary_estimate_weight");this.oR=g.RI(this.experiments,"html5_stall_factor")||1;this.Y=g.RI(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.jl("html5_trigger_loader_when_idle_network");this.C=this.experiments.jl("html5_sabr_fetch_on_idle_network_preloaded_players")}; Bv_=function(R,F){R=R===void 0?{}:R;F=F===void 0?{}:F;g.d.call(this);var h=this;this.values=R;this.X6=F;this.D={};this.K=this.B=0;this.L=new g.DY(function(){E1n(h)},1E4); g.z(this,this.L)}; XU=function(R,F){roL(R,F);return R.values[F]&&R.X6[F]?R.values[F]/Math.pow(2,R.B/R.X6[F]):0}; roL=function(R,F){R.values[F]||(F=cBa(),R.values=F.values||{},R.X6=F.halfLives||{},R.D=F.values?Object.assign({},F.values):{})}; E1n=function(R){var F=cBa();if(F.values){F=F.values;for(var h={},a=g.N(Object.keys(R.values)),J=a.next();!J.done;J=a.next())J=J.value,F[J]&&R.D[J]&&(R.values[J]+=F[J]-R.D[J]),h[J]=XU(R,J);R.D=h}F=R.X6;h={};h.values=R.D;h.halfLives=F;g.fn("yt-player-memory",h,2592E3)}; aX=function(R,F,h,a,J){g.d.call(this);this.webPlayerContextConfig=F;this.pS=a;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.UJ=this.iY=this.d$=this.n2=this.userDisplayName=this.userDisplayImage=this.YZ="";this.B={};this.YH={};this.controlsType="0";this.Xf=NaN;this.uY=!1;this.Y6=(0,g.NU)();this.Sw=0;this.xY=this.RZ=!1;this.u1=!0;this.preferGapless=this.E0=this.g$=this.K=this.PJ=!1;this.qg=[];this.w$=!1;this.ES=0;R=R?g.sR(R):{};F&&F.csiPageType&&(this.csiPageType=F.csiPageType);F&&F.csiServiceName&& (this.csiServiceName=F.csiServiceName);F&&F.preferGapless&&(this.preferGapless=F.preferGapless);this.experiments=new tSL(F?F.serializedExperimentIds:R.fexp,F?F.serializedExperimentFlags:R.fflags);this.forcedExperiments=F?F.serializedForcedExperimentIds:aA("",R.forced_experiments)||void 0;this.cspNonce=(F==null?0:F.cspNonce)?F.cspNonce:aA("",R.csp_nonce);this.X("web_player_deprecated_uvr_killswitch");try{var M=document.location.toString()}catch(vi){M=""}this.Xk=M;this.ancestorOrigins=(a=window.location.ancestorOrigins)? Array.from(a):[];this.L=RA(!1,F?F.isEmbed:R.is_embed);if(F&&F.device){if(a=F.device,a.androidOsExperience&&(this.B.caoe=""+a.androidOsExperience),a.androidPlayServicesVersion&&(this.B.capsv=""+a.androidPlayServicesVersion),a.brand&&(this.B.cbrand=a.brand),a.browser&&(this.B.cbr=a.browser),a.browserVersion&&(this.B.cbrver=a.browserVersion),a.cobaltReleaseVehicle&&(this.B.ccrv=""+a.cobaltReleaseVehicle),this.B.c=a.interfaceName||"WEB",this.B.cver=a.interfaceVersion||"html5",a.interfaceTheme&&(this.B.ctheme= a.interfaceTheme),this.B.cplayer=a.interfacePlayerType||"UNIPLAYER",a.model&&(this.B.cmodel=a.model),a.network&&(this.B.cnetwork=a.network),a.os&&(this.B.cos=a.os),a.osVersion&&(this.B.cosver=a.osVersion),a.platform&&(this.B.cplatform=a.platform),M=sk(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),M==="all"||M==="once")a.chipset&&(this.YH.cchip=a.chipset),a.cobaltAppVersion&&(this.YH.ccappver=a.cobaltAppVersion),a.firmwareVersion&&(this.YH.cfrmver=a.firmwareVersion),a.deviceYear&&(this.YH.crqyear= a.deviceYear)}else this.B.c=R.c||"web",this.B.cver=R.cver||"html5",this.B.cplayer="UNIPLAYER";this.loaderUrl=F?this.L||Y5i(this)&&F.loaderUrl?F.loaderUrl||"":this.Xk:this.L||Y5i(this)&&R.loaderUrl?aA("",R.loaderUrl):this.Xk;this.L&&g.Fk("yt.embedded_player.embed_url",this.loaderUrl);this.Z=nI(this.loaderUrl,sU2);a=this.loaderUrl;var v=v===void 0?!1:v;this.Ye=e7(nI(a,pTi),a,v,"Trusted Ad Domain URL");this.FW=RA(!1,R.privembed);this.protocol=this.Xk.indexOf("http:")===0?"http":"https";this.OJ=w52((F? F.customBaseYoutubeUrl:R.BASE_YT_URL)||"")||w52(this.Xk)||this.protocol+"://www.youtube.com/";v=F?F.eventLabel:R.el;a="detailpage";v==="adunit"?a=this.L?"embedded":"detailpage":v==="embedded"||this.Z?a=FB(a,v,kb_):v&&(a="embedded");this.fI=a;yi_();v=null;a=F?F.playerStyle:R.ps;M=g.x7(QUi,a);!a||M&&!this.Z||(v=a);this.playerStyle=v;this.S=g.x7(QUi,this.playerStyle);this.houseBrandUserStatus=F==null?void 0:F.houseBrandUserStatus;this.aR=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.yh=!this.aR;this.NQ=RA(!1,R.disableplaybackui);this.disablePaidContentOverlay=RA(!1,F==null?void 0:F.disablePaidContentOverlay);this.disableSeek=RA(!1,F==null?void 0:F.disableSeek);this.enableSpeedOptions=(F==null?void 0:F.enableSpeedOptions)||(sS().defaultPlaybackRate?eD||g.Ug||nG?g.Go&&NE("20")||g.kK&&NE("4")||g.uo&&NE("11")||t3():!(g.uo&&!g.nR("chrome")||eD||g.nR("android")||g.nR("silk")):!1);this.NP=RA(!1,R.enable_faster_speeds);var I;this.supportsVarispeedExtendedFeatures=(I=F==null?void 0: F.supportsVarispeedExtendedFeatures)!=null?I:!1;this.D=RA(this.playerStyle==="blazer",R.is_html5_mobile_device||F&&F.isMobileDevice);this.PG=VS()||CR();this.Nz=this.X("mweb_allow_background_playback")?!1:this.D&&!this.S;this.Oz=AH();this.u7=g.dp;var w;this.eE=!!(F==null?0:(w=F.embedsHostFlags)==null?0:w.optOutApiDeprecation);var E;this.Qj=!!(F==null?0:(E=F.embedsHostFlags)==null?0:E.allowPfpImaIntegration);this.D2=this.X("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var B;F?F.hideInfo!== void 0&&(B=!F.hideInfo):B=R.showinfo;this.Ba=g.Py(this)&&!this.eE||RA(!zo(this)&&!KG(this)&&!this.S,B);this.CX=F?!!F.mobileIphoneSupportsInlinePlayback:RA(!1,R.playsinline);I=this.D&&tc&&lo!=null&&lo>0&&lo<=2.3;w=F?F.useNativeControls:R.use_native_controls;this.Y=g.Py(this)&&this.D;E=this.D&&!this.Y;w=g.DU(this)||!I&&RA(E,w)?"3":"1";this.disableOrganicUi=!(F==null||!F.disableOrganicUi);E=F?F.controlsType:R.controls;this.controlsType=this.disableOrganicUi||E==="0"||E===0?"0":w;this.B1=this.D;this.color= FB("red",F?F.progressBarColor:R.color,$i7);this.T8=this.controlsType==="3";this.It=!this.L;this.oS=(w=!this.It&&!KG(this)&&!this.aR&&!this.S&&!zo(this))&&!this.T8&&this.controlsType==="1";this.Ym=g.V9(this)&&w&&this.controlsType==="0"&&!this.oS&&!(F==null?0:F.embedsEnableEmc3ds);this.Ds=this.CP=I;this.Ma=(this.controlsType==="3"||this.D||RA(!1,R.use_media_volume))&&!this.Y;this.aS=lB&&!g.nh(601)?!1:!0;this.pP=this.L||!1;this.Ho=KG(this)?"":(this.loaderUrl||R.post_message_origin||"").substring(0,128); this.widgetReferrer=aA("",F?F.widgetReferrer:R.widget_referrer);var r;F?F.disableCastApi&&(r=!1):r=R.enablecastapi;r=!this.Z||RA(!0,r);I=!0;F&&F.disableMdxCast&&(I=!1);this.FO=this.X("enable_cast_for_web_unplugged")&&g.Uk(this)&&I||g.b5(this)&&I||r&&I&&this.controlsType==="1"&&!this.D&&(KG(this)||g.V9(this)||g.CG(this));this.aO=!!window.document.pictureInPictureEnabled||$K();r=F?!!F.supportsAutoplayOverride:RA(!1,R.autoplayoverride);this.XJ=!(this.D&&!g.Py(this))&&!g.nR("nintendo wiiu")||r;this.lT= (F?!!F.enableMutedAutoplay:RA(!1,R.mutedautoplay))&&!1;r=(KG(this)||zo(this))&&this.playerStyle==="blazer";this.W1=F?!!F.disableFullscreen:!RA(!0,R.fs);I=g.gK(g.cy(this))&&g.Py(this);this.EP=!this.W1&&(r||g.rK())&&!I;this.e6=this.X("html5_picture_in_picture_logging_onresize");var Y;this.Qh=(Y=g.RI(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?Y:.33;this.QQ=this.X("html5_picture_in_picture_blocking_onresize");this.nX=this.X("html5_picture_in_picture_blocking_ontimeupdate"); this.tF=this.X("html5_picture_in_picture_blocking_document_fullscreen");this.zd=this.X("html5_picture_in_picture_blocking_standard_api");Y=uB()&&NE(58)&&!CR();r=PR||typeof MediaSource==="undefined";this.zL=this.X("uniplayer_block_pip")&&(Y||r)||this.QQ||this.nX||this.zd;Y=g.Py(this)&&!this.eE;var p;F?F.disableRelatedVideos!==void 0&&(p=!F.disableRelatedVideos):p=R.rel;this.gf=Y||RA(!this.S,p);this.oO=RA(!1,F?F.enableContentOwnerRelatedVideos:R.co_rel);this.C=CR()&&lo>0&&lo<=4.4?"_top":"_blank";this.Nx= g.CG(this);this.CB=RA(this.playerStyle==="blazer",F?F.enableCsiLogging:R.enablecsi);switch(this.playerStyle){case "blogger":p="bl";break;case "gmail":p="gm";break;case "gac":p="ga";break;case "ads-preview":p="ap";break;case "books":p="gb";break;case "docs":case "flix":p="gd";break;case "duo":p="gu";break;case "google-live":p="gl";break;case "google-one":p="go";break;case "play":case "play-ads":p="gp";break;case "chat":p="hc";break;case "hangouts-meet":p="hm";break;case "photos-edu":case "picasaweb":p= "pw";break;default:p="yt"}this.oR=p;this.KI=aA("",F?F.authorizedUserIndex:R.authuser);this.gW=g.Py(this)&&(this.FW||!sj2()||this.PG);var k;F?F.disableWatchLater!==void 0&&(k=!F.disableWatchLater):k=R.showwatchlater;this.Ig=((p=!this.gW)||!!this.KI&&p)&&RA(!this.aR,this.Z?k:void 0);this.S9=F?F.isMobileDevice||!!F.disableKeyboardControls:RA(!1,R.disablekb);this.loop=RA(!1,R.loop);this.pageId=aA("",F?F.initialDelegatedSessionId:R.pageid);this.BR=RA(!0,R.canplaylive);this.nI=RA(!1,R.livemonitor);this.disableSharing= RA(this.S,F?F.disableSharing:R.ss);(k=F&&this.X("fill_video_container_size_override_from_wpcc")?F.videoContainerOverride:R.video_container_override)?(p=k.split("x"),p.length!==2?k=null:(k=Number(p[0]),p=Number(p[1]),k=isNaN(k)||isNaN(p)||k*p<=0?null:new g.t7(k,p))):k=null;this.dn=k;this.mute=F?!!F.startMuted:RA(!1,R.mute);this.storeUserVolume=!this.mute&&RA(this.controlsType!=="0",F?F.storeUserVolume:R.store_user_volume);k=F?F.annotationsLoadPolicy:R.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:FB(void 0,k,Wy);this.captionsLanguagePreference=F?F.captionsLanguagePreference||"":aA("",R.cc_lang_pref);k=FB(2,F?F.captionsLanguageLoadPolicy:R.cc_load_policy,Wy);this.controlsType==="3"&&k===2&&(k=3);this.n$=k;this.i9=F?F.hl||"en_US":aA("en_US",R.hl);this.region=F?F.contentRegion||"US":aA("US",R.cr);this.hostLanguage=F?F.hostLanguage||"en":aA("en",R.host_language);this.Oa=!this.FW&&Math.random()=480;this.schedule=new qM(r,new Kja(this.experiments),J);g.z(this,this.schedule);var H;this.enableSafetyMode=(H=F==null?void 0:F.initialEnableSafetyMode)!=null? H:RA(!1,R.enable_safety_mode);J=this.NQ?!1:KG(this)&&this.playerStyle!=="blazer";var T;F?F.disableAutonav!=null&&(T=!F.disableAutonav):T=R.allow_autonav;this.xO=RA(J,!this.aR&&T);this.sendVisitorIdHeader=F?!!F.sendVisitorIdHeader:RA(!1,R.send_visitor_id_header);var Z;this.playerStyle==="docs"&&(F?Z=F.disableNativeContextMenu:Z=R.disable_native_context_menu);this.disableNativeContextMenu=RA(!1,Z);this.d5=ra(this)&&this.X("enable_skip_intro_button");this.embedConfig=aA("",F?F.serializedEmbedConfig: R.embed_config);this.Uz=vv(R,g.Py(this));this.K=this.Uz==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(F==null||!F.embedsErrorLinks);this.jb=RA(!1,R.full_window);var b;this.T$=!((b=this.webPlayerContextConfig)==null?0:b.chromeless);var O;this.livingRoomAppMode=FB("LIVING_ROOM_APP_MODE_UNSPECIFIED",R.living_room_app_mode||(F==null?void 0:(O=F.device)==null?void 0:O.livingRoomAppMode),NvT);var n;T=hs(NaN,F==null?void 0:(n=F.device)==null?void 0:n.deviceYear);isNaN(T)||(this.deviceYear=T);this.transparentBackground= F?!!F.transparentBackground:RA(!1,R.transparent_background);this.showMiniplayerButton=F?!!F.showMiniplayerButton:RA(!1,R.show_miniplayer_button);var K;g.Py(this)&&!(F==null?0:(K=F.embedsHostFlags)==null?0:K.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=F?!!F.externalFullscreen:RA(!1,R.external_fullscreen);this.showMiniplayerUiWhenMinimized=F?!!F.showMiniplayerUiWhenMinimized:RA(!1,R.use_miniplayer_ui);var Rg;this.u1=(Rg=R.show_loop_video_toggle)!=null?Rg:!0;this.JF=Math.random()< 1E-4;this.eb=R.onesie_hot_config||(F==null?0:F.onesieHotConfig)?new Mdn(R.onesie_hot_config,F==null?void 0:F.onesieHotConfig):void 0;this.isTectonic=F?!!F.isTectonic:!!R.isTectonic;this.playerCanaryState=h;this.playerCanaryStage=F==null?void 0:F.canaryStage;this.lq=new Bv_;g.z(this,this.lq);this.datasyncId=(F==null?void 0:F.datasyncId)||g.Kp("DATASYNC_ID");this.x0=g.Kp("LOGGED_IN",!1);this.EJ=(F==null?void 0:F.allowWoffleManagement)||!1;this.Qw=Infinity;this.zN=NaN;this.livingRoomPoTokenId=F==null? void 0:F.livingRoomPoTokenId;this.X("html5_high_res_logging_always")?this.g$=!0:this.g$=Math.random()*100=0&&R0&&R.JF&&(a.sort(),g.qN(new g.Pv("Player client parameters changed after startup",a)));R.userAge=hs(R.userAge,F.user_age);R.YZ=aA(R.YZ,F.user_display_email);R.userDisplayImage=aA(R.userDisplayImage,F.user_display_image);g.da(R.userDisplayImage)||(R.userDisplayImage= "");R.userDisplayName=aA(R.userDisplayName,F.user_display_name);R.n2=aA(R.n2,F.user_gender);R.csiPageType=aA(R.csiPageType,F.csi_page_type);R.csiServiceName=aA(R.csiServiceName,F.csi_service_name);R.CB=RA(R.CB,F.enablecsi);R.pageId=aA(R.pageId,F.pageid);if(h=F.enabled_engage_types)R.enabledEngageTypes=new Set(h.split(","));F.living_room_session_po_token&&(R.DG=F.living_room_session_po_token.toString())}; JJ=function(R,F){return!R.S&&uB()&&NE(55)&&R.controlsType==="3"&&!F}; g.M5=function(R){R=RX(R.OJ);return R==="www.youtube-nocookie.com"?"www.youtube.com":R}; vc=function(R,F,h){return R.protocol+"://i1.ytimg.com/vi/"+F+"/"+(h||"hqdefault.jpg")}; gG=function(R){return KG(R)&&!g.Uk(R)}; g.DU=function(R){return R.X("html5_local_playsinline")?lB&&!g.nh(602)&&!("playsInline"in sS()):lB&&!R.CX||g.nR("nintendo wiiu")?!0:!1}; rp=function(R){return R.B.c}; g.Y0=function(R){return/^TVHTML5/.test(rp(R))}; g.Gy=function(R){return rp(R)==="TVHTML5"}; Y5i=function(R){return rp(R)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; xiO=function(R){return R.B.cmodel==="CHROMECAST ULTRA/STEAK"||R.B.cmodel==="CHROMECAST/STEAK"}; g.IX=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; ra=function(R){return/web/i.test(rp(R))}; g.ig=function(R){return rp(R).toUpperCase()==="WEB"}; hJ=function(R){return rp(R)==="WEB_KIDS"}; g.Uk=function(R){return rp(R)==="WEB_UNPLUGGED"}; wG=function(R){return rp(R)==="TVHTML5_UNPLUGGED"}; g.BW=function(R){return g.Uk(R)||rp(R)==="TV_UNPLUGGED_CAST"||wG(R)}; g.b5=function(R){return rp(R)==="WEB_REMIX"}; g.EZ=function(R){return rp(R)==="WEB_MUSIC_INTEGRATIONS"}; g.Bc=function(R){return rp(R)==="WEB_EMBEDDED_PLAYER"}; g.Yx=function(R){return(R.deviceIsAudioOnly||!g.kK||PR||R.controlsType==="3"?!1:g.Ug?R.L&&g.nh(51):!0)||(R.deviceIsAudioOnly||!g.Go||PR||R.controlsType==="3"?!1:g.Ug?R.L&&g.nh(48):g.nh(38))||(R.deviceIsAudioOnly||!g.uo||PR||R.controlsType==="3"?!1:g.Ug?R.L&&g.nh(37):g.nh(27))||!R.deviceIsAudioOnly&&g.rG&&!A1T()&&g.nh(11)||!R.deviceIsAudioOnly&&g.YV&&g.nh("604.4")}; Tv7=function(R){if(g.V9(R)&&tc)return!1;if(g.Go){if(!g.nh(47)||!g.nh(52)&&g.nh(51))return!1}else if(g.YV)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; q5T=function(R,F){return R.enabledEngageTypes.has(F.toString())||yo_.includes(F)}; KG=function(R){return R.fI==="detailpage"}; g.V9=function(R){return R.fI==="embedded"}; sZ=function(R){return R.fI==="leanback"}; zo=function(R){return R.fI==="adunit"||R.playerStyle==="gvn"}; g.CG=function(R){return R.fI==="profilepage"}; g.Py=function(R){return R.L&&g.V9(R)&&!zo(R)&&!R.S}; pZ=function(R){if(!R.userDisplayImage)return"";var F=R.userDisplayImage.split("/");if(F.length===5)return R=F[F.length-1].split("="),R[1]="s20-c",F[F.length-1]=R.join("="),F.join("/");if(F.length===8)return F.splice(7,0,"s20-c"),F.join("/");if(F.length===9)return F[7]+="-s20-c",F.join("/");g.qN(new g.Pv("Profile image not a FIFE URL.",R.userDisplayImage));return R.userDisplayImage}; g.kx=function(R){var F=g.M5(R);f57.includes(F)&&(F="www.youtube.com");return R.protocol+"://"+F}; g.Qj=function(R,F){F=F===void 0?"":F;if(R.pS){var h=new rh,a,J=R.pS();J.signedOut?a="":J.token?a=J.token:J.pendingResult.then(function(M){J.signedOut?h.resolve(""):h.resolve(M.token)},function(M){g.qN(new g.Pv("b189348328_oauth_callback_failed",{error:M})); h.resolve(F)}); return a!==void 0?fR(a):new yS(h)}return fR(F)}; $x=function(R,F){F=F===void 0?"":F;return R.x0?Ta(!0):ZV(jI(Ta(g.Qj(R,F)),function(h){return Ta(!!h)}),function(){return Ta(!1)})}; RX=function(R){var F=g.I8(R);return(R=Number(g.Gg(R)[4]||null)||null)?F+":"+R:F}; AJ=function(R,F){F=F===void 0?!1:F;var h=f7[R],a=jUB[h],J=Zq2[R];if(!J||!a)return null;F=new Tm(F?J.height:J.width,F?J.width:J.height,J.fps);a=mP(a,F,h);return new jf(R,a,{video:F,CI:J.bitrate/8})}; S5L=function(R){var F=jUB[f7[R]],h=bqB[R];return h&&F?new jf(R,F,{audio:new NQ(h.audioSampleRate,h.numChannels)}):null}; xx=function(R){this.B=R}; N5=function(R,F,h,a){if(h)return ql();h={};var J=sS();F=g.N(F);for(var M=F.next();!M.done;M=F.next())if(M=M.value,R.canPlayType(J,M.getInfo().mimeType)||a){var v=M.B.video.quality;if(!h[v]||h[v].getInfo().K_())h[v]=M}R=[];h.auto&&R.push(h.auto);a=g.N(yp);for(J=a.next();!J.done;J=a.next())(J=h[J.value])&&R.push(J);return R.length?fR(R):ql()}; Oq7=function(R){this.itag=R.itag;this.url=R.url;this.codecs=R.codecs;this.width=R.width;this.height=R.height;this.fps=R.fps;this.bitrate=R.bitrate;var F;this.D=((F=R.audioItag)==null?void 0:F.split(","))||[];this.Yq=R.Yq;this.qH=R.qH||"";this.jw=R.jw;this.audioChannels=R.audioChannels;this.B=""}; miT=function(R,F,h,a){F=F===void 0?!1:F;h=h===void 0?!0:h;a=a===void 0?{}:a;var J={};R=g.N(R);for(var M=R.next();!M.done;M=R.next()){M=M.value;if(F&&MediaSource&&MediaSource.isTypeSupported){var v=M.type;M.audio_channels&&(v=v+"; channels="+M.audio_channels);if(!MediaSource.isTypeSupported(v)){a[M.itag]="tpus";continue}}if(h||!M.drm_families||M.eotf!=="smpte2084"&&M.eotf!=="arib-std-b67"){v=void 0;var I={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},w=M.type.match(/codecs="([^"]*)"/); w=w?w[1]:"";M.audio_track_id&&(v=new g.q3(M.name,M.audio_track_id,!!M.is_default));var E=M.eotf;M=new Oq7({itag:M.itag,url:M.url,codecs:w,width:Number(M.width),height:Number(M.height),fps:Number(M.fps),bitrate:Number(M.bitrate),audioItag:M.audio_itag,Yq:E?I[E]:void 0,qH:M.drm_families,jw:v,audioChannels:Number(M.audio_channels)});J[M.itag]=J[M.itag]||[];J[M.itag].push(M)}else a[M.itag]="enchdr"}return J}; o1n=function(R,F,h,a,J){this.K=R;this.D=F;this.N=h;this.cpn=a;this.S=J;this.L=0;this.B=""}; XTL=function(R,F){R.K.some(function(h){var a;return((a=h.jw)==null?void 0:a.getId())===F}); R.B=F}; Hc=function(R,F,h){R.cpn&&(F=g.sA(F,{cpn:R.cpn}));h&&(F=g.sA(F,{paired:h}));return F}; eSn=function(R,F){R=R.itag.toString();F!==null&&(R+=F.itag.toString());return R}; n1i=function(R){for(var F=[],h=[],a=g.N(R.D),J=a.next();!J.done;J=a.next())J=J.value,J.bitrate<=R.L?F.push(J):h.push(J);F.sort(function(M,v){return v.bitrate-M.bitrate}); h.sort(function(M,v){return M.bitrate-v.bitrate}); R.D=F.concat(h)}; LZ=function(R,F,h){this.B=R;this.D=F;this.expiration=h;this.UP=null}; u2i=function(R,F){if(!(PR||KR()||P6()))return null;R=miT(F,R.X("html5_filter_fmp4_in_hls"));if(!R)return null;F=[];for(var h={},a=g.N(Object.keys(R)),J=a.next();!J.done;J=a.next()){J=g.N(R[J.value]);for(var M=J.next();!M.done;M=J.next()){var v=M.value;v.jw&&(M=v.jw.getId(),h[M]||(v=new g.Ad(M,v.jw),h[M]=v,F.push(v)))}}return F.length>0?F:null}; tdn=function(R,F,h,a,J,M,v){if(!(PR||KR()||P6()))return ql();var I={},w=diB(h),E=miT(h,R.X("html5_filter_fmp4_in_hls"),R.N.Y,I);if(!E)return v({noplst:1}),ql();Pdi(E);h={};var B=(h.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",h),r;h=[];var Y=[],p=[],k=null,H="";a=a&&a.match(/hls_timedtext_playlist/)?new Oq7({itag:"0",url:a,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,jw:new g.q3("English","en",!1)}):null;for(var T=g.N(Object.keys(E)),Z=T.next();!Z.done;Z=T.next())if(Z=Z.value,!R.X("html5_disable_drm_hfr_1080")|| Z!=="383"&&Z!=="373"){Z=g.N(E[Z]);for(var b=Z.next();!b.done;b=Z.next())if(b=b.value,b.width){for(var O=g.N(b.D),n=O.next();!n.done;n=O.next())if(n=n.value,E[n]){b.B=n;break}b.B||(b.B=zSL(E,b));if(O=E[b.B])if(h.push(b),b.qH==="fairplay"&&(r=B),n="",b.Yq==="PQ"?n="smpte2084":b.Yq==="HLG"&&(n="arib-std-b67"),n&&(H=n),p.push(KDT(O,[b],a,M,b.itag,b.width,b.height,b.fps,w,void 0,void 0,r,n)),!k||b.width*b.height*b.fps>k.width*k.height*k.fps)k=b}else Y.push(b)}else I[Z]="disdrmhfr";p.reduce(function(K, Rg){return Rg.getInfo().isEncrypted()&&K},!0)&&(r=B); J=Math.max(J,0);B=k||{};E=B.fps===void 0?0:B.fps;k=B.width===void 0?0:B.width;B=B.height===void 0?0:B.height;T=R.X("html5_native_audio_track_switching");p.push(KDT(Y,h,a,M,"93",k,B,E,w,"auto",J,r,H,T));Object.entries(I).length&&v(I);return N5(R.N,p,JJ(R,F),!1)}; KDT=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p){for(var k=0,H="",T=g.N(R),Z=T.next();!Z.done;Z=T.next())Z=Z.value,H||(H=Z.itag),Z.audioChannels&&Z.audioChannels>k&&(k=Z.audioChannels,H=Z.itag);J=new jf(J,"application/x-mpegURL",{audio:new NQ(0,k),video:new Tm(M,v,I,null,void 0,E,void 0,Y),qH:r,vv:H});R=new o1n(R,F,h?[h]:[],a,!!p);R.L=B?B:1369843;return new LZ(J,R,w)}; diB=function(R){R=g.N(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.url&&(F=F.url.split("expire/"),!(F.length<=1)))return+F[1].split("/")[0];return NaN}; zSL=function(R,F){for(var h=g.N(Object.keys(R)),a=h.next();!a.done;a=h.next()){a=a.value;var J=R[a][0];if(!J.width&&J.qH===F.qH&&!J.audioChannels)return a}return""}; Pdi=function(R){for(var F=new Set,h=g.N(Object.values(R)),a=h.next();!a.done;a=h.next())a=a.value,a.length&&(a=a[0],a.height&&a.codecs.startsWith("vp09")&&F.add(a.height));h=[];if(F.size){a=g.N(Object.keys(R));for(var J=a.next();!J.done;J=a.next())if(J=J.value,R[J].length){var M=R[J][0];M.height&&F.has(M.height)&&!M.codecs.startsWith("vp09")&&h.push(J)}}F=g.N(h);for(h=F.next();!h.done;h=F.next())delete R[h.value]}; Ty=function(R,F){this.B=R;this.D=F}; l5B=function(R,F,h,a){var J=[];h=g.N(h);for(var M=h.next();!M.done;M=h.next()){var v=M.value;if(v.url){M=new g.dV(v.url,!0);if(v.s){var I=M,w=v.sp,E=t3g(decodeURIComponent(v.s));I[G[17]](w,encodeURIComponent(E))}I=g.N(Object.keys(a));for(w=I.next();!w.done;w=I.next())w=w.value,M.set(w,a[w]);v=zm(v.type,v.quality,v.itag,v.width,v.height);J.push(new Ty(v,M))}}return N5(R.N,J,JJ(R,F),!1)}; yj=function(R,F){this.B=R;this.D=F}; Di7=function(R,F,h){var a=[];h=g.N(h);for(var J=h.next();!J.done;J=h.next())if((J=J.value)&&J.url){var M=zm(J.type,"medium","0");a.push(new yj(M,J.url))}return N5(R.N,a,JJ(R,F),!1)}; Vd_=function(R,F){var h=[],a=zm(F.type,"auto",F.itag);h.push(new yj(a,F.url));return N5(R.N,h,!1,!0)}; Cdn=function(R){return R&&Uim[R]?Uim[R]:null}; coi=function(R){switch(R){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return R;default:return"sabr.config"}}; WDg=function(R){if(R=R.commonConfig)this.url=R.url,this.urlQueryOverride=R.urlQueryOverride,R.ustreamerConfig&&(this.xT=Ac(R.ustreamerConfig)||void 0)}; Rnf=function(R,F){var h;if(F=F==null?void 0:(h=F.watchEndpointSupportedOnesieConfig)==null?void 0:h.html5PlaybackOnesieConfig)R.sL=new WDg(F)}; g.q5=function(R){R=R===void 0?{}:R;this.languageCode=R.languageCode||"";this.languageName=R.languageName||null;this.kind=R.kind||"";this.name=R.name===void 0?null:R.name;this.displayName=R.displayName||null;this.id=R.id||null;this.B=R.is_servable||!1;this.isTranslateable=R.is_translateable||!1;this.url=R.url||null;this.vssId=R.vss_id||"";this.isDefault=R.is_default||!1;this.translationLanguage=R.translationLanguage||null;this.xtags=R.xtags||"";this.captionId=R.captionId||""}; g.jQ=function(R){var F={languageCode:R.languageCode,languageName:R.languageName,displayName:g.fZ(R),kind:R.kind,name:R.name,id:R.id,is_servable:R.B,is_default:R.isDefault,is_translateable:R.isTranslateable,vss_id:R.vssId};R.xtags&&(F.xtags=R.xtags);R.captionId&&(F.captionId=R.captionId);R.translationLanguage&&(F.translationLanguage=R.translationLanguage);return F}; g.Z9=function(R){return R.translationLanguage?R.translationLanguage.languageCode:R.languageCode}; g.F1m=function(R){var F=R.vssId;R.translationLanguage&&F&&(F="t"+F+"."+g.Z9(R));return F}; g.fZ=function(R){var F=[];if(R.displayName)F.push(R.displayName);else{var h=R.languageName||"";F.push(h);R.kind==="asr"&&h.indexOf("(")===-1&&F.push(" (Subt\u00edtulos autom\u00e1ticos)");R.name&&F.push(" - "+R.name)}R.translationLanguage&&F.push(" >> "+R.translationLanguage.languageName);return F.join("")}; Mwi=function(R,F,h,a){R||(R=F&&hnB.hasOwnProperty(F)&&aAm.hasOwnProperty(F)?aAm[F]+"_"+hnB[F]:void 0);F=R;if(!F)return null;R=F.match(JOm);if(!R||R.length!==5)return null;if(R=F.match(JOm)){var J=Number(R[3]),M=[7,8,10,5,6];R=!(Number(R[1])===1&&J===8)&&M.indexOf(J)>=0}else R=!1;return h||a||R?F:null}; bg=function(R,F){for(var h={},a=g.N(Object.keys(vS_)),J=a.next();!J.done;J=a.next()){J=J.value;var M=F?F+J:J;M=R[M+"_webp"]||R[M];g.da(M)&&(h[vS_[J]]=M)}return h}; SQ=function(R){var F={};if(!R||!R.thumbnails)return F;R=R.thumbnails.filter(function(I){return!!I.url}); R.sort(function(I,w){return I.width-w.width||I.height-w.height}); for(var h=g.N(Object.keys(gSm)),a=h.next();!a.done;a=h.next()){var J=Number(a.value);a=gSm[J];for(var M=g.N(R),v=M.next();!v.done;v=M.next())if(v=v.value,v.width>=J){J=GNi(v.url);g.da(J)&&(F[a]=J);break}}(R=R.pop())&&R.width>=1280&&(R=GNi(R.url),g.da(R)&&(F["maxresdefault.jpg"]=R));return F}; GNi=function(R){return R.startsWith("//")?"https:"+R:R}; OZ=function(R){return R&&R.baseUrl||""}; mM=function(R){R=g.Ff(R);for(var F=g.N(Object.keys(R)),h=F.next();!h.done;h=F.next()){h=h.value;var a=R[h];R[h]=Array.isArray(a)?a[0]:a}return R}; IAi=function(R,F){R.botguardData=F.playerAttestationRenderer.botguardData;F=F.playerAttestationRenderer.challenge;F!=null&&(R.fp=F)}; ESn=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next()){h=h.value;var a=h.interstitials.map(function(v){var I=g.t(v,i5i);if(I)return{is_yto_interstitial:!0,raw_player_response:I};if(v=g.t(v,wq7))return Object.assign({is_yto_interstitial:!0},Wk(v))}); a=g.N(a);for(var J=a.next();!J.done;J=a.next())switch(J=J.value,h.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":R.interstitials=R.interstitials.concat({time:0,playerVars:J,r0:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":R.interstitials=R.interstitials.concat({time:0x7ffffffffffff,playerVars:J,r0:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var M=Number(h.podConfig.timeToInsertAtMillis);R.interstitials=R.interstitials.concat({time:M,playerVars:J, r0:M===0?5:7})}}}; Bkm=function(R,F){if(F=F.find(function(h){return!(!h||!h.tooltipRenderer)}))R.tooltipRenderer=F.tooltipRenderer}; rOi=function(R,F){F.subscribeCommand&&(R.subscribeCommand=F.subscribeCommand);F.unsubscribeCommand&&(R.unsubscribeCommand=F.unsubscribeCommand);F.addToWatchLaterCommand&&(R.addToWatchLaterCommand=F.addToWatchLaterCommand);F.removeFromWatchLaterCommand&&(R.removeFromWatchLaterCommand=F.removeFromWatchLaterCommand);F.getSharePanelCommand&&(R.getSharePanelCommand=F.getSharePanelCommand)}; YrL=function(R,F){F!=null?(R.JX=F,R.bq=!0):(R.JX="",R.bq=!1)}; oX=function(R,F){this.type=R||"";this.id=F||""}; XV=function(R){return new oX(R.substring(0,2),R.substring(2))}; eQ=function(R,F){this.LI=R;this.author="";this.PP=null;this.playlistLength=0;this.B=this.sessionData=null;this.Z={};this.title="";if(F){this.author=F.author||F.playlist_author||"";this.title=F.playlist_title||"";if(R=F.session_data)this.sessionData=Cp(R,"&");var h;this.B=((h=F.thumbnail_ids)==null?void 0:h.split(",")[0])||null;this.Z=bg(F,"playlist_");this.videoId=F.video_id||void 0;if(h=F.list)switch(F.listType){case "user_uploads":this.playlistId=(new oX("UU","PLAYER_"+h)).toString();break;default:if(R= F.playlist_length)this.playlistLength=Number(R)||0;this.playlistId=XV(h).toString();if(F=F.video)this.videoId=(F[0]||null).video_id||void 0}else F.playlist&&(this.playlistLength=F.playlist.toString().split(",").length)}}; nZ=function(R,F){this.LI=R;this.xe=this.author="";this.PP=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.xQ=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(F){this.ariaLabel=F.aria_label||void 0;this.author=F.author||"";this.xe=F.xe||"";if(R=F.endscreen_autoplay_session_data)this.PP=Cp(R,"&");this.Dd=F.Dd;this.isLivePlayback=F.live_playback==="1";this.isUpcoming=!!F.isUpcoming;if(R=F.length_seconds)this.lengthSeconds=typeof R==="string"?Number(R):R;this.lengthText= F.lengthText||"";this.xQ=F.xQ||"";this.publishedTimeText=F.publishedTimeText||void 0;if(R=F.session_data)this.sessionData=Cp(R,"&");this.shortViewCount=F.short_view_count_text||void 0;this.Z=bg(F);this.title=F.title||"";this.videoId=F.docid||F.video_id||F.videoId||F.id||void 0;this.watchUrl=F.watchUrl||void 0}}; sqB=function(R){var F,h,a=(F=R.getWatchNextResponse())==null?void 0:(h=F.contents)==null?void 0:h.twoColumnWatchNextResults,J,M,v,I,w;R=(J=R.getWatchNextResponse())==null?void 0:(M=J.playerOverlays)==null?void 0:(v=M.playerOverlayRenderer)==null?void 0:(I=v.endScreen)==null?void 0:(w=I.watchNextEndScreenRenderer)==null?void 0:w.results;if(!R){var E,B;R=a==null?void 0:(E=a.endScreen)==null?void 0:(B=E.endScreen)==null?void 0:B.results}return R}; g.dG=function(R){var F,h,a;R=g.t((F=R.getWatchNextResponse())==null?void 0:(h=F.playerOverlays)==null?void 0:(a=h.playerOverlayRenderer)==null?void 0:a.decoratedPlayerBarRenderer,ug);return g.t(R==null?void 0:R.playerBar,pq_)}; kNn=function(R){this.B=R.playback_progress_0s_url;this.K=R.playback_progress_2s_url;this.D=R.playback_progress_10s_url}; QqO=function(){if(Pc===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(F){}a:{try{var R=!!self.localStorage}catch(F){R=!1}if(R&&(R=g.ON(g.zP()+"::yt-player"))){Pc=new m5(R);break a}Pc=void 0}}return Pc}; g.zy=function(){var R=QqO();if(!R)return{};try{var F=R.get("yt-player-lv");return JSON.parse(F||"{}")}catch(h){return{}}}; g.$0I=function(R){var F=QqO();F&&(R=JSON.stringify(R),F.set("yt-player-lv",R))}; g.KZ=function(R){return g.zy()[R]||0}; g.tJ=function(R,F){var h=g.zy();F!==h[R]&&(F!==0?h[R]=F:delete h[R],g.$0I(h))}; g.lg=function(R){return g.u(function(F){return F.return(g.nm(AOO(),R))})}; Vj=function(R,F,h,a,J,M,v,I){var w,E,B,r,Y,p;return g.u(function(k){switch(k.D){case 1:return w=g.KZ(R),w===4?k.return(4):g.m(k,g.Dd(),2);case 2:E=k.B;if(!E)throw g.pm("wiac");if(!I||v===void 0){k.G$(3);break}return g.m(k,x0g(I,v),4);case 4:v=k.B;case 3:return B=h.lastModified||"0",g.m(k,g.lg(E),5);case 5:return r=k.B,g.Hi(k,6),D9++,g.m(k,g.ye(r,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",qt:!0},function(H){if(M!==void 0&&v!==void 0){var T=""+R+"|"+F.id+"|"+B+"|"+String(M).padStart(10, "0");T=g.qU(H.objectStore("media"),v,T)}else T=g.Qe.resolve(void 0);var Z=Nk2(R,F.In()),b=Nk2(R,!F.In()),O={fmts:H57(a),format:h||{}};Z=g.qU(H.objectStore("index"),O,Z);var n=a.downloadedEndTime===-1;O=n?H.objectStore("index").get(b):g.Qe.resolve(void 0);var K={fmts:"music",format:{}};H=n&&J&&!F.In()?g.qU(H.objectStore("index"),K,b):g.Qe.resolve(void 0);return g.Qe.all([H,O,T,Z]).then(function(Rg){Rg=g.N(Rg);Rg.next();Rg=Rg.next().value;D9--;var U=g.KZ(R);if(U!==4&&n&&J||Rg!==void 0&&g.L1I(Rg.fmts))U= 1,g.tJ(R,U);return U})}),8); case 8:return k.return(k.B);case 6:Y=g.f_(k);D9--;p=g.KZ(R);if(p===4)return k.return(p);g.tJ(R,4);throw Y;}})}; g.Tkm=function(R){var F,h;return g.u(function(a){if(a.D==1)return g.m(a,g.Dd(),2);if(a.D!=3){F=a.B;if(!F)throw g.pm("ri");return g.m(a,g.lg(F),3)}h=a.B;return a.return(g.ye(h,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(J){var M=IDBKeyRange.bound(R+"|",R+"~");return J.objectStore("index").getAll(M).then(function(v){return v.map(function(I){return I?I.format:{}})})}))})}; qrm=function(R,F,h,a,J){var M,v,I;return g.u(function(w){if(w.D==1)return g.m(w,g.Dd(),2);if(w.D!=3){M=w.B;if(!M)throw g.pm("rc");return g.m(w,g.lg(M),3)}v=w.B;I=g.ye(v,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(E){var B=""+R+"|"+F+"|"+h+"|"+String(a).padStart(10,"0");return E.objectStore("media").get(B)}); return J?w.return(I.then(function(E){if(E===void 0)throw Error("No data from indexDb");return yOi(J,E)}).catch(function(E){throw new g.Pv("Error while reading chunk: "+E.name+", "+E.message); })):w.return(I)})}; g.L1I=function(R){return R?R==="music"?!0:R.includes("dlt=-1")||!R.includes("dlt="):!1}; Nk2=function(R,F){return""+R+"|"+(F?"v":"a")}; H57=function(R){var F={};return ck((F.dlt=R.downloadedEndTime.toString(),F.mket=R.maxKnownEndTime.toString(),F.avbr=R.averageByteRate.toString(),F))}; jqi=function(R){var F={},h={};R=g.N(R);for(var a=R.next();!a.done;a=R.next()){var J=a.value,M=J.split("|");J.match(g.fA_)?(a=Number(M.pop()),isNaN(a)?h[J]="?":(M=M.join("|"),(J=F[M])?(M=J[J.length-1],a===M.end+1?M.end=a:J.push({start:a,end:a})):F[M]=[{start:a,end:a}])):h[J]="?"}R=g.N(Object.keys(F));for(a=R.next();!a.done;a=R.next())a=a.value,h[a]=F[a].map(function(v){return v.start+"-"+v.end}).join(","); return h}; UZ=function(R){g.h0.call(this);this.B=null;this.K=new Xg;this.B=null;this.S=new Set;this.crossOrigin=R||""}; Z5g=function(R,F,h){for(h=CZ(R,h);h>=0;){var a=R.levels[h];if(a.isLoaded(cc(a,F))&&(a=g.Wc(a,F)))return a;h--}return g.Wc(R.levels[0],F)}; Sr2=function(R,F,h){h=CZ(R,h);for(var a,J;h>=0;h--)if(a=R.levels[h],J=cc(a,F),!a.isLoaded(J)){a=R;var M=h,v=M+"-"+J;a.S.has(v)||(a.S.add(v),a.K.enqueue(M,{ww:M,Lv:J}))}b5_(R)}; b5_=function(R){if(!R.B&&!R.K.isEmpty()){var F=R.K.remove();R.B=O5_(R,F)}}; O5_=function(R,F){var h=document.createElement("img");R.crossOrigin&&(h.crossOrigin=R.crossOrigin);h.src=R.levels[F.ww].hT(F.Lv);h.onload=function(){var a=F.ww,J=F.Lv;R.B!==null&&(R.B.onload=null,R.B=null);a=R.levels[a];a.loaded.add(J);b5_(R);var M=a.columns*a.rows;J*=M;a=Math.min(J+M-1,a.I2()-1);J=[J,a];R.publish("l",J[0],J[1])}; return h}; g.RV=function(R,F,h,a){this.level=R;this.L=F;this.loaded=new Set;this.level=R;this.L=F;R=h.split("#");this.width=Math.floor(Number(R[0]));this.height=Math.floor(Number(R[1]));this.frameCount=Math.floor(Number(R[2]));this.columns=Math.floor(Number(R[3]));this.rows=Math.floor(Number(R[4]));this.B=Math.floor(Number(R[5]));this.K=R[6];this.signature=R[7];this.videoLength=a}; cc=function(R,F){return Math.floor(F/(R.columns*R.rows))}; g.Wc=function(R,F){F>=R.f8()&&R.kP();var h=cc(R,F),a=R.columns*R.rows,J=F%a;F=J%R.columns;J=Math.floor(J/R.columns);var M=R.kP()+1-a*h;if(M1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; m0O=function(R,F,h){return(R=R.levels[F])?R.Cd(h):-1}; CZ=function(R,F){var h=R.L.get(F);if(h)return h;h=R.levels.length;for(var a=0;a=F)return R.L.set(F,a),a;R.L.set(F,h-1);return h-1}; hL=function(R,F,h,a){h=h.split("#");h=[h[1],h[2],0,h[3],h[4],-1,h[0],""].join("#");g.RV.call(this,R,F,h,0);this.D=null;this.N=a?2:0}; aV=function(R,F,h,a){F$.call(this,R,0,void 0,F,!(a===void 0||!a));for(R=0;R50&&(F=K1B.shift())&&IV.delete(F),F=a),a!==F&&R.V4("ssei","dcpn_"+a+"_"+F+"_"+R.clientPlaybackNonce),F)}; g9=function(R,F){var h=F.raw_watch_next_response;if(!h){var a=F.watch_next_response;a&&(h=JSON.parse(a))}if(h){R.Oz=h;var J=R.Oz.playerCueRangeSet;J&&g.iR(R,J);var M=R.Oz.playerOverlays;if(M){var v=M.playerOverlayRenderer;if(v){var I=v.autonavToggle;I&&(R.autoplaySwitchButtonRenderer=g.t(I,twO),R.X("web_player_autonav_use_server_provided_state")&&w9(R)&&(R.autonavState=R.autoplaySwitchButtonRenderer.enabled?2:1));var w=v.videoDetails;if(w){var E=w.embeddedPlayerOverlayVideoDetailsRenderer;var B=w.playerOverlayVideoDetailsRenderer; B&&(B.title&&(F.title=g.iQ(B.title)),B.subtitle&&(F.subtitle=g.iQ(B.subtitle)))}g.V9(R.LI)&&(R.Ig=!!v.addToMenu);lA_(R,v.shareButton);v.startPosition&&v.endPosition&&(R.progressBarStartPosition=v.startPosition,R.progressBarEndPosition=v.endPosition);var r=v.gatedActionsOverlayRenderer;r&&(R.gM=g.t(r,D0L));var Y,p,k,H=g.t((Y=R.getWatchNextResponse())==null?void 0:(p=Y.playerOverlays)==null?void 0:(k=p.playerOverlayRenderer)==null?void 0:k.infoPanel,VwO);if(H){R.TX=Number(H==null?void 0:H.durationMs)|| NaN;if(H==null?0:H.infoPanelOverviewViewModel)R.Xk=H==null?void 0:H.infoPanelOverviewViewModel;if(H==null?0:H.infoPanelDetailsViewModel)R.zN=H==null?void 0:H.infoPanelDetailsViewModel}R.showSeekingControls=!!v.showSeekingControls}}var T,Z,b=(T=R.getWatchNextResponse())==null?void 0:(Z=T.contents)==null?void 0:Z.twoColumnWatchNextResults;if(b){var O=b.desktopOverlay&&g.t(b.desktopOverlay,U0i);O&&(O.suppressShareButton&&(R.showShareButton=!1),O.suppressWatchLaterButton&&(R.Ig=!1))}E&&C2T(R,F,E);var n= hs(0,F.autoplay_count),K=R.getWatchNextResponse(),Rg,U=(Rg=K.contents)==null?void 0:Rg.twoColumnWatchNextResults,vi,GI,gL,Em=(vi=K.playerOverlays)==null?void 0:(GI=vi.playerOverlayRenderer)==null?void 0:(gL=GI.autoplay)==null?void 0:gL.playerOverlayAutoplayRenderer,hf=sqB(R),qa,m2=(qa=K.contents)==null?void 0:qa.singleColumnWatchNextResults;if(m2){var Ru;if(((Ru=m2.autoplay)==null?0:Ru.autoplay)&&!m2.playlist){var ng=m2.autoplay.autoplay.sets,$7={},eB=new nZ(R.W()),ch=null,Y7;if(ng){for(var Kg=g.N(ng), hX=Kg.next();!hX.done;hX=Kg.next()){var f=hX.value.autoplayVideoRenderer;if(f&&f.compactVideoRenderer){ch=f.compactVideoRenderer;break}}if(Y7=ng[0].autoplayVideo){var Xl=Y7.clickTrackingParams;Xl&&($7.itct=Xl);$7.autonav="1";$7.playnext=String(n)}}else $7.feature="related-auto";var b9=g.t(Y7,g.EG);if(ch){eB.videoId=ch.videoId;var ag=ch.shortBylineText;ag&&(eB.author=g.iQ(ag));var fg=ch.title;fg&&(eB.title=g.iQ(fg))}else b9!=null&&b9.videoId&&(eB.videoId=b9.videoId);eB.PP=$7;R.suggestions=[];R.BR= eB}}if(hf){for(var L=[],Fi=g.N(hf),KM=Fi.next();!KM.done;KM=Fi.next()){var gU=KM.value,u9=void 0,K_=null;if(gU.endScreenVideoRenderer){var ci=gU.endScreenVideoRenderer,CM=ci.title;K_=new nZ(R.W());K_.videoId=ci.videoId;K_.lengthSeconds=ci.lengthInSeconds||0;var eP=ci.publishedTimeText;eP&&(K_.publishedTimeText=g.iQ(eP));var y=ci.shortBylineText;y&&(K_.author=g.iQ(y));var x=ci.shortViewCountText;x&&(K_.shortViewCount=g.iQ(x));if(CM){K_.title=g.iQ(CM);var q=CM.accessibility;if(q){var X=q.accessibilityData; X&&X.label&&(K_.ariaLabel=X.label)}}var P=ci.navigationEndpoint;if(P){u9=P.clickTrackingParams;var Bi=g.t(P,g.EG),l=g.t(P,g.bQ);Bi?K_.Dd=Bi:l!=null&&(K_.watchUrl=l.url)}var c=ci.thumbnailOverlays;if(c)for(var e=g.N(c),b7=e.next();!b7.done;b7=e.next()){var Pi=b7.value.thumbnailOverlayTimeStatusRenderer;if(Pi)if(Pi.style==="LIVE"){K_.isLivePlayback=!0;break}else if(Pi.style==="UPCOMING"){K_.isUpcoming=!0;break}}K_.Z=SQ(ci.thumbnail)}else if(gU.endScreenPlaylistRenderer){var Ig=gU.endScreenPlaylistRenderer, i9=Ig.navigationEndpoint;if(!i9)continue;var jB=g.t(i9,g.EG);if(!jB)continue;var xL=jB.videoId;K_=new eQ(R.W());K_.playlistId=Ig.playlistId;K_.playlistLength=Number(Ig.videoCount)||0;K_.B=xL||null;K_.videoId=xL;var RG=Ig.title;RG&&(K_.title=g.iQ(RG));var Lg=Ig.shortBylineText;Lg&&(K_.author=g.iQ(Lg));u9=i9.clickTrackingParams;K_.Z=SQ(Ig.thumbnail)}K_&&(u9&&(K_.sessionData={itct:u9}),L.push(K_))}R.suggestions=L}if(Em){R.zQ=!!Em.preferImmediateRedirect;R.i9=R.i9||!!Em.webShowNewAutonavCountdown;R.zL= R.zL||!!Em.webShowBigThumbnailEndscreen;if(R.i9||R.zL){var Xk=U||null,TI=new nZ(R.W());TI.videoId=Em.videoId;var NS=Em.videoTitle;if(NS){TI.title=g.iQ(NS);var ZT=NS.accessibility;if(ZT){var S6=ZT.accessibilityData;S6&&S6.label&&(TI.ariaLabel=S6.label)}}var Te=Em.byline;Te&&(TI.author=g.iQ(Te));var GD=Em.publishedTimeText;GD&&(TI.publishedTimeText=g.iQ(GD));var yL=Em.shortViewCountText;yL&&(TI.shortViewCount=g.iQ(yL));var Rd=Em.thumbnailOverlays;if(Rd)for(var MJ=g.N(Rd),tG=MJ.next();!tG.done;tG=MJ.next()){var Ov= tG.value.thumbnailOverlayTimeStatusRenderer;if(Ov)if(Ov.style==="LIVE"){TI.isLivePlayback=!0;break}else if(Ov.style==="UPCOMING"){TI.isUpcoming=!0;break}else if(Ov.style==="DEFAULT"&&Ov.text){TI.lengthText=g.iQ(Ov.text);var qk=Ov.text.accessibility;if(qk){var C1=qk.accessibilityData;C1&&C1.label&&(TI.xQ=C1.label||"")}break}}TI.Z=SQ(Em.background);var pr=Em.nextButton;if(pr){var eX=pr.buttonRenderer;if(eX){var FL=eX.navigationEndpoint;if(FL){var hp=g.t(FL,g.EG);hp&&(TI.Dd=hp)}}}if(Em.topBadges){var gC= Em.topBadges[0];if(gC){var H4=g.t(gC,cOm);H4&&H4.style==="BADGE_STYLE_TYPE_PREMIUM"&&(TI.e0R=!0)}}var mI=Em.alternativeTitle;mI&&(TI.xe=g.iQ(mI));var c_={autonav:"1",playnext:String(n)};TI.playlistId&&(c_.autoplay="1");if(Xk){var od,FW,ki,nr,$M=(od=Xk.autoplay)==null?void 0:(FW=od.autoplay)==null?void 0:(ki=FW.sets)==null?void 0:(nr=ki[0])==null?void 0:nr.autoplayVideo;if($M){var ad=$M.clickTrackingParams;ad&&(c_.itct=ad);var Ay=g.t($M,g.EG);Ay&&(TI.YM=Ay)}}else if(Em){var Jp,MC,vJ,gj=(Jp=Em.nextButton)== null?void 0:(MC=Jp.buttonRenderer)==null?void 0:(vJ=MC.navigationEndpoint)==null?void 0:vJ.clickTrackingParams;gj&&(c_.itct=gj)}c_.itct||(c_.feature="related-auto");TI.PP=c_;R.suggestions||(R.suggestions=[]);R.BR=TI}Em.countDownSecs!=null&&(R.mM=Em.countDownSecs*1E3);Em.countDownSecsForFullscreen!=null&&(R.xq=Em.countDownSecsForFullscreen>=0?Em.countDownSecsForFullscreen*1E3:-1);R.X("web_autonav_color_transition")&&Em.watchToWatchTransitionRenderer&&(R.watchToWatchTransitionRenderer=g.t(Em.watchToWatchTransitionRenderer, W1f))}var xM=sqB(R);if(xM){var Gf,GY,sI,pl=xM==null?void 0:(Gf=xM[0])==null?void 0:(GY=Gf.endScreenVideoRenderer)==null?void 0:(sI=GY.navigationEndpoint)==null?void 0:sI.clickTrackingParams,bE=g.Br(R);pl&&bE&&(bE.sessionData={itct:pl})}R.Oz.currentVideoThumbnail&&(R.Z=SQ(R.Oz.currentVideoThumbnail));var eL,nE,uc,Jh,Sp,$R=(eL=R.Oz)==null?void 0:(nE=eL.contents)==null?void 0:(uc=nE.twoColumnWatchNextResults)==null?void 0:(Jh=uc.results)==null?void 0:(Sp=Jh.results)==null?void 0:Sp.contents;if($R&&$R[1]){var O_, MW,dj,Lb,Nw=(O_=$R[1].videoSecondaryInfoRenderer)==null?void 0:(MW=O_.owner)==null?void 0:(dj=MW.videoOwnerRenderer)==null?void 0:(Lb=dj.thumbnail)==null?void 0:Lb.thumbnails;Nw&&Nw.length&&(R.profilePicture=Nw[Nw.length-1].url)}var np=Mm(F),vL,kj=(vL=R.getWatchNextResponse())==null?void 0:vL.onResponseReceivedEndpoints;if(kj)for(var gq=g.N(kj),mh=gq.next();!mh.done;mh=gq.next()){var oh=mh.value;g.t(oh,r9)&&(R.QL=g.t(oh,r9));var gM=g.t(oh,R3I),tH=void 0;if((tH=gM)==null?0:tH.entityKeys)R.Xl=gM.entityKeys|| [],gM.visibleOnLoadKeys&&(R.visibleOnLoadKeys=gM.visibleOnLoadKeys)}if(R.X("web_key_moments_markers")){var gu=g.YF.getState().entities,I2=g.DI("visibility_override","markersVisibilityOverrideEntity");var uO=Ua(gu,"markersVisibilityOverrideEntity",I2);R.T$=(uO==null?void 0:uO.videoId)===(R.videoId||np)&&(uO==null?0:uO.visibilityOverrideMarkersKey)?uO.visibilityOverrideMarkersKey:R.visibleOnLoadKeys;R.visibleOnLoadKeys=[].concat(g.S(R.T$))}}}; w9=function(R){var F;return((F=R.autoplaySwitchButtonRenderer)==null?void 0:F.enabled)!==void 0}; sG=function(R){return!!(R.K&&R.K.videoInfos&&R.K.videoInfos.length)}; g.xF=function(R){var F=R.Y;R.X("html5_gapless_unlimit_format_selection")&&pt(R)&&(F=!1);var h=!!R.B&&R.B.Mt,a=R.LI,J=R.Yi(),M=kF(R),v=R.IR,I=F,w=R.isOtf();F=R.lf();var E=R.nI,B=R.getUserAudio51Preference(),r=QC(R),Y=$F(R),p=new ouL(a);if(a.Po()||a.X("html5_logging_format_selection"))p.D=!0;p.NQ=M;p.IR=v&&a.Z;p.Uz=B;g.nR("windows nt 5.1")&&!g.Go&&(p.oZ=!0);if(M=J)M=g.Yx(a)?Tv7(a):!1;M&&(p.oR=!0);I&&(p.oZ=!0,p.Ho=!0);w&&!a.X("html5_otf_prefer_vp9")&&(p.oZ=!0);a.playerStyle==="picasaweb"&&(w&&(p.oZ= !1),p.aR=!1);E&&(p.oZ=!0);no(a.N,uM.CHANNELS)&&(a.X("html5_enable_ac3")&&(p.L=!0),a.X("html5_enable_eac3")&&(p.N=!0),a.X("html5_enable_ac3_gapless")&&(p.fI=!0));a.X("html5_block_8k_hfr")&&(p.Fo=!0);p.S=g.RI(a.experiments,"html5_max_selectable_quality_ordinal");p.Y=g.RI(a.experiments,"html5_min_selectable_quality_ordinal");nG&&(p.It=480);if(h||J)p.aR=!1;p.T$=!1;p.disableAv1=r;h=WI(a,p.B,void 0,p.disableAv1);h>0&&h<2160&&(M8()||a.X("html5_format_hybridization"))&&(p.B.supportsChangeType=+M8(),p.Ae= h);h>=2160&&(p.KI=!0);hJ_()&&!a.X("disable_av1_setting")&&(p.B.serveVp9OverAv1IfHigherRes=0,p.Xf=!1);p.lf=F;p.Sl=g.zC||c6()&&!F?!1:!0;p.Z=a.X("html5_format_hybridization");p.uY=a.X("html5_disable_encrypted_vp9_live_non_2k_4k");p.EP=Y;AL(R)&&(p.FW=R.X("html5_prefer_language_over_codec"));P6()&&R.playerResponse&&R.playerResponse.playerConfig&&R.playerResponse.playerConfig.webPlayerConfig&&R.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.L=!0,p.N=!0);R.Y&&R.isAd()&&(R.tF&& (p.C=R.tF),R.T8&&(p.K=R.T8));p.Oz=R.isLivePlayback&&R.rL()&&R.LI.X("html5_drm_live_audio_51");p.nI=R.ql;p.iY=!AL(R);return R.S9=p}; QC=function(R){return R.LI.X("html5_disable_av1")||R.X("html5_gapless_shorts_disable_av1")&&pt(R)?!0:!1}; FLB=function(R){Hf("drm_pb_s",void 0,R.C);R.PG||R.B&&Oq(R.B);var F={};R.B&&(F=Yef(R.vY,g.xF(R),R.LI.N,R.B,function(h){return R.publish("ctmp","fmtflt",h)},!0,new Set)); F=new wp(F,R.LI,R.E2,R.useCobaltWidevine?P6()?Nz(R):!1:!1,function(h,a){R.dA(h,a)}); g.z(R,F);R.zd=!1;R.loading=!0;uxg(F,function(h){Hf("drm_pb_f",void 0,R.C);for(var a=g.N(h),J=a.next();!J.done;J=a.next())switch(J=J.value,J.flavor){case "fairplay":J.PG=R.PG;J.Mv=R.Mv;J.Nv=R.Nv;break;case "widevine":J.B9=R.B9}R.oS=h;if(R.oS.length>0&&(R.N=R.oS[0],R.LI.Po())){h={};a=g.N(Object.entries(R.N.B));for(J=a.next();!J.done;J=a.next()){var M=g.N(J.value);J=M.next().value;M=M.next().value;var v="unk";(J=J.match(/(.*)codecs="(.*)"/))&&(v=J[2]);h[v]=M}R.dA("drmProbe",h)}R.qb()})}; h3n=function(R,F){if(F.length===0||Hr(R))return null;R.LI.N.K&&(U3=!0);var h=R.qH;var a=R.lengthSeconds,J=R.isLivePlayback,M=R.Xd,v=R.LI,I=AaL(F);if(J||M){v=v.experiments;a=new O3("",v,!0);a.D=!M;a.Mt=!0;a.isManifestless=!0;a.isLive=!M;a.Xd=M;F=g.N(F);for(J=F.next();!J.done;J=F.next()){var w=J.value;J=Xv(w,h);I=Do(w);I=nL(I.iI||w.url||"",I.x9,I.s);var E=I.get("id");E&&E.includes("%7E")&&(a.C=!0);var B=void 0;E=(B=v)==null?void 0:B.jl("html5_max_known_end_time_rebase");B=Number(w.targetDurationSec|| 5);w=Number(w.maxDvrDurationSec||14400);var r=Number(I.get("mindsq")||I.get("min_sq")||"0"),Y=Number(I.get("maxdsq")||I.get("max_sq")||"0")||Infinity;a.G2=a.G2||r;a.Lr=a.Lr||Y;var p=!Pz(J.mimeType);I&&ZL(a,new rH(I,J,{VD:B,f7:p,rp:w,G2:r,Lr:Y,UH:300,Xd:M,vT:E}))}h=a}else if(I==="FORMAT_STREAM_TYPE_OTF"){a=a===void 0?0:a;M=new O3("",v.experiments,!1);M.duration=a||0;v=g.N(F);for(a=v.next();!a.done;a=v.next())a=a.value,F=Xv(a,h,M.duration),J=Do(a),(J=nL(J.iI||a.url||"",J.x9,J.s))&&(F.streamType==="FORMAT_STREAM_TYPE_OTF"? ZL(M,new Yb(J,F,"sq/0")):ZL(M,new yF(J,F,VB(a.initRange),VB(a.indexRange))));M.isOtf=!0;h=M}else{a=a===void 0?0:a;M=new O3("",v.experiments,!1);M.duration=a||0;v=g.N(F);for(a=v.next();!a.done;a=v.next())I=a.value,a=Xv(I,h,M.duration),F=VB(I.initRange),J=VB(I.indexRange),E=Do(I),(I=nL(E.iI||I.url||"",E.x9,E.s))&&ZL(M,new yF(I,a,F,J));h=M}M=R.isLivePlayback&&!R.Xd&&!R.oR&&!R.isPremiere;R.X("html5_live_head_playable")&&(!Lt(R)&&M&&R.dA("missingLiveHeadPlayable",{}),R.LI.oR==="yt"&&(h.NQ=!0));return h}; Hr=function(R){return P6()?!Nz(R):KR()?!(!R.PG||!R.X("html5_enable_safari_fairplay")&&k9()):!1}; Nz=function(R){return R.X("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.iR=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next())if(h=h.value,h.cueRangeSetIdentifier){var a=void 0;R.gN.set(h.cueRangeSetIdentifier,(a=h.playerCueRanges)!=null?a:[])}}; TT=function(R){return!(!R.B||!R.B.isManifestless)}; yC=function(R){return R.It?R.isLowLatencyLiveStream&&R.B!=null&&zl(R.B)>=5:R.isLowLatencyLiveStream&&R.B!=void 0&&zl(R.B)>=5}; ap7=function(R){return P6()&&Nz(R)?!1:Hr(R)&&(g.BW(R.LI)?!R.isLivePlayback:R.hlsvp)||!k9()||R.Nl?!0:!1}; v8i=function(R){R.loading=!0;R.lT=!1;if(JQT(R))g.Tkm(R.videoId).then(function(a){MOa(R,a)}).then(function(){R.qb()}); else{uz(R.Ho)||g.qN(new g.Pv("DASH MPD Origin invalid: ",R.Ho));var F=R.Ho,h=g.RI(R.LI.experiments,"dash_manifest_version")||4;F=g.sA(F,{mpd_version:h});R.isLowLatencyLiveStream&&R.latencyClass!=="NORMAL"||(F=g.sA(F,{pacing:0}));fFa(F,R.LI.experiments,R.isLivePlayback).then(function(a){R.RR()||(qz(R,a,!0),Hf("mrc",void 0,R.C),R.qb())},function(a){R.RR()||(R.loading=!1,R.publish("dataloaderror",new g.Bz("manifest.net.retryexhausted",{backend:"manifest", rc:a.status},1)))}); Hf("mrs",void 0,R.C)}}; MOa=function(R,F){var h=F.map(function(w){return w.itag}),a; if((a=R.playerResponse)!=null&&a.streamingData){a=[];if(R.X("html5_offline_always_use_local_formats")){h=0;for(var J=g.N(F),M=J.next();!M.done;M=J.next()){M=M.value;var v=Object.assign({},M);v.signatureCipher="";a.push(v);v=g.N(R.playerResponse.streamingData.adaptiveFormats);for(var I=v.next();!I.done;I=v.next())if(I=I.value,M.itag===I.itag&&M.xtags===I.xtags){h+=1;break}}hB&&(B=p.getInfo().audio.numChannels)}B>2&&R.dA("hlschl",{mn:B});var T;((T=R.S9)==null?0:T.D)&&R.dA("hlsfmtaf",{itags:r.join(".")});var Z;if(R.X("html5_enable_vp9_fairplay")&&((Z=R.N)==null?0:vy(Z)))for(R.dA("drm",{sbdlfbk:1}),B=g.N(R.oS),r=B.next();!r.done;r=B.next())if(r=r.value,MM(r)){R.N=r;break}bR(R,E)})}return ql()}; wKn=function(R){if(R.isExternallyHostedPodcast&&R.g$){var F=Zy(R.g$);if(!F[0])return ql();R.Qzn=F[0];return Vd_(R.LI,F[0]).then(function(h){bR(R,h)})}return R.ub&&R.c6?Di7(R.LI,R.isAd(),R.ub).then(function(h){bR(R,h)}):ql()}; B37=function(R){if(R.isExternallyHostedPodcast)return ql();var F=Zy(R.g$,R.YW);if(R.hlsvp){var h=oSi(R.hlsvp,R.clientPlaybackNonce,R.Xf);F.push(h)}return l5B(R.LI,R.isAd(),F,E8I(R)).then(function(a){bR(R,a)})}; bR=function(R,F){R.gf=F;R.jM(new fo(g.p1(R.gf,function(h){return h.getInfo()})))}; E8I=function(R){var F={cpn:R.clientPlaybackNonce,c:R.LI.B.c,cver:R.LI.B.cver};R.l2&&(F.ptk=R.l2,F.oid=R.HZ,F.ptchn=R.Bz,F.pltype=R.V3,R.Oc&&(F.m=R.Oc));return F}; g.SZ=function(R){return Hr(R)&&R.PG?(R={},R.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",R):R.D&&R.D.qH||null}; rQB=function(R){var F=OG(R);return F&&F.text?g.iQ(F.text):R.paidContentOverlayText}; Y0B=function(R){var F=OG(R);return F&&F.durationMs?SW(F.durationMs):R.paidContentOverlayDurationMs}; OG=function(R){var F,h,a;return R.playerResponse&&R.playerResponse.paidContentOverlay&&R.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.t((F=R.Oz)==null?void 0:(h=F.playerOverlays)==null?void 0:(a=h.playerOverlayRenderer)==null?void 0:a.playerDisclosure,sLI)||null}; mS=function(R){var F="";if(R.jp)return R.jp;R.isLivePlayback&&(F=R.allowLiveDvr?"dvr":R.isPremiere?"lp":R.oR?"window":"live");R.Xd&&(F="post");return F}; g.oV=function(R,F){return typeof R.keywords[F]!=="string"?null:R.keywords[F]}; pKL=function(R){return!!R.wZ||!!R.Hh||!!R.gZ||!!R.Yp||R.RM}; g.X$=function(R){return!!(R.Ho||R.g$||R.ub||R.hlsvp||R.Og())}; vr=function(R){if(R.X("html5_onesie")&&R.errorCode)return!1;var F=g.x7(R.aR,"ypc");R.ypcPreview&&(F=!1);return R.Fd()&&!R.loading&&(g.X$(R)||g.x7(R.aR,"heartbeat")||F)}; Zy=function(R,F){R=Rz(R);var h={};if(F){F=g.N(F.split(","));for(var a=F.next();!a.done;a=F.next())(a=a.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(h[a[1]]={width:a[2],height:a[3]})}F=g.N(R);for(a=F.next();!a.done;a=F.next()){a=a.value;var J=h[a.itag];J&&(a.width=J.width,a.height=J.height)}return R}; lA_=function(R,F){R.showShareButton=!!F;var h,a,J=((h=g.t(F,g.Wq))==null?void 0:h.navigationEndpoint)||((a=g.t(F,g.Wq))==null?void 0:a.command);J&&(R.NP=!!g.t(J,kVi))}; XqL=function(R,F){var h=F.raw_embedded_player_response;if(!h){var a=F.embedded_player_response;a&&(h=JSON.parse(a))}h&&(R.q2=h);if(R.q2){R.embeddedPlayerConfig=R.q2.embeddedPlayerConfig||null;if(h=R.q2.videoFlags)h.playableInEmbed&&(R.allowEmbed=!0),h.isPrivate&&(R.isPrivate=!0),h.userDisplayName&&(F.user_display_name=h.userDisplayName),h.userDisplayImage&&(F.user_display_image=h.userDisplayImage);if(h=R.q2.embedPreview){h=h.thumbnailPreviewRenderer;YrL(R,h.controlBgHtml);if(a=h.defaultThumbnail)R.Z= SQ(a);R.X("embeds_web_enable_search_button")&&h.searchButton&&(a=g.t(h.searchButton,g.Wq))&&(R.r3=g.t(a.navigationEndpoint,g.eZ));(a=g.t(h==null?void 0:h.videoDetails,QLf))&&C2T(R,F,a);a=g.t(h==null?void 0:h.videoDetails,$7a);R.Ig=!!h.addToWatchLaterButton;lA_(R,h.shareButton);if(a==null?0:a.musicVideoType)R.musicVideoType=a.musicVideoType;var J,M,v,I,w;if(a=g.t((J=R.getEmbeddedPlayerResponse())==null?void 0:(M=J.embedPreview)==null?void 0:(v=M.thumbnailPreviewRenderer)==null?void 0:(I=v.playButton)== null?void 0:(w=I.buttonRenderer)==null?void 0:w.navigationEndpoint,g.EG))Rnf(R,a),R.videoId=a.videoId||R.videoId;h.videoDurationSeconds&&(R.lengthSeconds=SW(h.videoDurationSeconds));h.webPlayerActionsPorting&&rOi(R,h.webPlayerActionsPorting);if(J=g.t(h==null?void 0:h.playlist,AQf)){R.xY=!0;M=[];v=Number(J.currentIndex);if(J.contents)for(I=0,w=J.contents.length;I0:R.w$?!1:R.LI.XJ||R.LI.lT||!g.Py(R.LI)?!0:!1:(R.w$?0:R.Nx)&&g.Py(R.LI)?!0:!1;R.X("html5_log_detailpage_autoplay")&&VC(R)==="detailpage"&&R.dA("autoplay_info",{autoplay:R.nK,autonav:R.isAutonav,wasDompaused:R.w$,result:F});return F}; g.Wr=function(R){return R.oauthToken||R.LI.UJ}; Zem=function(R){if(R.X("html5_stateful_audio_normalization")){var F=1,h=g.RI(R.LI.experiments,"html5_default_ad_gain");h&&R.isAd()&&(F=h);var a,J;h=(J=(a=R.L)==null?void 0:a.audio.L)!=null?J:R.Lm;if(h==null||isNaN(h))R=jLn(R);else{a=(0,g.NU)();R.CX=2;J=a-R.LI.zN<=R.maxStatefulTimeThresholdSec*1E3;R.applyStatefulNormalization&&J?R.CX=4:J||(R.LI.Qw=Infinity,R.LI.zN=NaN);J=(R.CX===4?g.uu(R.LI.Qw,R.minimumLoudnessTargetLkfs,R.loudnessTargetLkfs):R.loudnessTargetLkfs)-h;if(R.CX!==4){var M,v,I,w,E=((M= R.playerResponse)==null?void 0:(v=M.playerConfig)==null?void 0:(I=v.audioConfig)==null?void 0:(w=I.loudnessNormalizationConfig)==null?void 0:w.statelessLoudnessAdjustmentGain)||0;J+=E}J=Math.min(J,0);R.preserveStatefulLoudnessTarget&&(R.LI.Qw=h+J,R.LI.zN=a);R=Math.min(1,Math.pow(10,J/20))||F}}else R=jLn(R);return R}; jLn=function(R){var F=1,h=g.RI(R.LI.experiments,"html5_default_ad_gain");h&&R.isAd()&&(F=h);if(R.LI.experiments.jl("html5_audio_gain_null_coalescing")){var a,J;h=(J=(a=R.L)==null?void 0:a.audio.K)!=null?J:R.Ym;h==0&&R.dA("db0fix",{rldb:R.Ym},!0)}else{var M;h=((M=R.L)==null?void 0:M.audio.K)||R.Ym}isNaN(h)||(R.CX=1);return Math.min(1,Math.pow(10,-h/20))||F}; kF=function(R){var F=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],h=rp(R.LI)==="TVHTML5_SIMPLY"&&R.LI.B.ctheme==="MUSIC";!R.Y6&&(g.b5(R.LI)||g.EZ(R.LI)||h)&&(F.includes(R.musicVideoType)||R.isExternallyHostedPodcast)&&(R.Y6=!0);if(F=g.db())F=/Starboard\/([0-9]+)/.exec(g.ol()),F=(F?parseInt(F[1],10):NaN)<10;h=R.LI;h=(rp(h)==="TVHTML5_CAST"||rp(h)==="TVHTML5"&&(h.B.cver.startsWith("6.20130725")||h.B.cver.startsWith("6.20130726")))&&R.LI.B.ctheme==="MUSIC";var a;if(a=!R.Y6)h||(h= R.LI,h=rp(h)==="TVHTML5"&&h.B.cver.startsWith("7")),a=h;a&&!F&&(F=R.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",h=(R.X("cast_prefer_audio_only_for_atv_and_uploads")||R.X("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&R.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",F||h||R.isExternallyHostedPodcast)&&(R.Y6=!0);return R.LI.deviceIsAudioOnly||R.Y6&&R.LI.Z}; $F=function(R){var F,h,a;return((F=R.playerResponse)==null?void 0:(h=F.playerConfig)==null?void 0:(a=h.compositeVideoConfig)==null?void 0:a.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; beL=function(R){var F,h,a,J=(F=R.playerResponse)==null?void 0:(h=F.playerConfig)==null?void 0:(a=h.compositeVideoConfig)==null?void 0:a.sourceConfigs,M,v,I;R=(M=R.playerResponse)==null?void 0:(v=M.playerConfig)==null?void 0:(I=v.compositeVideoConfig)==null?void 0:I.defaultActiveSourceVideoId;if(!J||!R)return"";J=g.N(J);for(M=J.next();!M.done;M=J.next())if(M=M.value,M.videoId===R&&M.audioTracks)for(M=g.N(M.audioTracks),v=M.next();!v.done;v=M.next())if(v=v.value,v.isDefaultForSource)return v.id||""; return""}; g.S0m=function(R){return R.X("html5_enable_sabr_live_captions")&&R.Mt()&&AL(R)||$F(R)}; Rc=function(R){var F,h,a;return!!((F=R.playerResponse)==null?0:(h=F.playerConfig)==null?0:(a=h.mediaCommonConfig)==null?0:a.splitScreenEligible)}; FM=function(R){var F;return!((F=R.playerResponse)==null||!F.compositePlayabilityStatus)}; Oea=function(R){return isNaN(R)?0:Math.max((Date.now()-R)/1E3-30,0)}; hC=function(R){return!(!R.cY||!R.LI.Z)&&R.Og()}; ac=function(R){return R.Rf&&R.enableServerStitchedDai}; m7g=function(R){return R.yD&&!R.UJ}; AL=function(R){var F=R.X("html5_enable_sabr_on_drive")&&R.LI.oR==="gd";if(R.L1)return R.yD&&R.dA("fds",{fds:!0},!0),!1;if(R.LI.oR!=="yt"&&!F)return R.yD&&R.dA("dsvn",{ns:R.LI.oR},!0),!1;if(R.cotn||!R.B||R.B.isOtf&&!R.X("html5_enable_sabr_otf_in_client")||R.K&&!R.K.B||R.Jd&&!R.X("html5_enable_sabr_csdai"))return!1;if(R.X("html5_use_sabr_requests_for_debugging"))return!0;R.yD&&R.dA("esfw",{usbc:R.yD,hsu:!!R.UJ},!0);if(R.yD&&R.UJ)return!0;if(R.X("html5_remove_client_sabr_determination"))return!1;var h= !R.B.Mt&&!R.rL();F=h&&Y9&&R.X("html5_enable_sabr_vod_streaming_xhr");h=h&&!Y9&&R.X("html5_enable_sabr_vod_non_streaming_xhr");var a=JC(R),J=R.X("html5_enable_sabr_drm_vod_streaming_xhr")&&Y9&&R.rL()&&!R.B.Mt&&(R.drmProduct==="1"?!1:!0);(F=F||h||a||J)&&!R.UJ&&R.dA("sabr",{loc:"m"},!0);return F&&!!R.UJ}; JC=function(R){var F;if(!(F=Y9&&R.Mt()&&R.rL()&&(R.drmProduct==="1"?!1:!0)&&R.X("html5_sabr_live_drm_streaming_xhr"))){F=R.Mt()&&!R.rL()&&Y9;var h=R.Mt()&&R.latencyClass!=="ULTRALOW"&&!R.isLowLatencyLiveStream&&R.X("html5_sabr_live_normal_latency_streaming_xhr"),a=R.isLowLatencyLiveStream&&R.X("html5_sabr_live_low_latency_streaming_xhr"),J=R.latencyClass==="ULTRALOW"&&R.X("html5_sabr_live_ultra_low_latency_streaming_xhr");F=F&&(h||a||J)}h=F;F=R.enableServerStitchedDai&&h&&R.X("html5_enable_sabr_ssdai_streaming_xhr"); h=!R.enableServerStitchedDai&&h;a=R.Mt()&&!Y9&&R.X("html5_enable_sabr_live_non_streaming_xhr");R=Y9&&(R.We()||Rc(R)&&R.X("html5_enable_sabr_for_lifa_eligible_streams"));return F||h||a||R}; JQT=function(R){var F;if(F=!!R.cotn)F=R.videoId,F=!!F&&g.KZ(F)===1;return F&&!R.cY}; g.MX=function(R){if(!R.B||!R.D||!R.L)return!1;var F=R.B.B,h=!!F[R.D.id]&&Ko(F[R.D.id].UP.B);F=!!F[R.L.id]&&Ko(F[R.L.id].UP.B);return(R.D.itag==="0"||h)&&F}; vn=function(R){return R.PY?["OK","LIVE_STREAM_OFFLINE"].includes(R.PY.status):!0}; x7_=function(R){return(R=R.QQ)&&R.showError?R.showError:!1}; GU=function(R,F){return R.X(F)?!0:(R.fflags||"").includes(F+"=true")}; zn_=function(R,F){F.inlineMetricEnabled&&(R.inlineMetricEnabled=!0);F.playback_progress_0s_url&&(R.Yp=new kNn(F));if(F=F.video_masthead_ad_quartile_urls)R.Hh=F.quartile_0_url,R.Dw=F.quartile_25_url,R.EF=F.quartile_50_url,R.pM=F.quartile_75_url,R.aG=F.quartile_100_url,R.gZ=F.quartile_0_urls,R.d1=F.quartile_25_urls,R.UI=F.quartile_50_urls,R.l_=F.quartile_75_urls,R.Ov=F.quartile_100_urls}; P2_=function(R){var F={};R=g.N(R);for(var h=R.next();!h.done;h=R.next()){h=h.value;var a=h.split("=");a.length===2?F[a[0]]=a[1]:F[h]=!0}return F}; nSL=function(R){if(R){if(QBL(R))return R;R=$Nn(R);if(QBL(R,!0))return R}return""}; g.o87=function(R){return R.captionsLanguagePreference||R.LI.captionsLanguagePreference||g.oV(R,"yt:cc_default_lang")||R.LI.i9}; Ic=function(R){return!(!R.isLivePlayback||!R.hasProgressBarBoundaries())}; g.Br=function(R){var F;return R.BR||((F=R.suggestions)==null?void 0:F[0])||null}; g.im=function(R){return R.bq&&(R.X("embeds_enable_pfp_always_unbranded")||R.LI.Qj)}; g.wu=function(R){var F,h;return!!((F=R.embeddedPlayerConfig)==null?0:(h=F.embeddedPlayerFlags)==null?0:h.enableMusicUx)}; XKL=function(R){return R.Y||R.X("web_player_media_session_infinity")&&R.isLivePlayback}; E4=function(R){return R.LI.L&&R.isPrivate}; g.ru=function(R){var F=R.W(),h=g.Bn(F),a=F.Ho;(F.X("embeds_web_enable_iframe_api_send_full_embed_url")||F.X("embeds_web_enable_rcat_validation_in_havs")||F.X("embeds_enable_autoplay_and_visibility_signals"))&&g.V9(F)&&(a&&(h.thirdParty=Object.assign({},h.thirdParty,{embedUrl:a})),v_T(h,R));if(a=R.Sl)h.clickTracking={clickTrackingParams:a};else if(g.V9(R.W())&&g.Kp("EVENT_ID"))h.clickTracking={clickTrackingParams:g.Kp("EVENT_ID")};else if(F.X("html5_log_missing_itct")){var J;a=new g.Pv("Missing ITCT in InnerTubeContext", {isAd:R.isAd(),toG:(J=F.getWebPlayerContextConfig())==null?void 0:J.contextId});g.y7(a)}J=h.client||{};a="EMBED";var M=VC(R);M==="leanback"?a="WATCH":F.X("gvi_channel_client_screen")&&M==="profilepage"?a="CHANNEL":R.nI?a="LIVE_MONITOR":M==="detailpage"?a="WATCH_FULL_SCREEN":M==="adunit"?a="ADUNIT":M==="sponsorshipsoffer"&&(a="UNKNOWN");J.clientScreen=a;if(F=R.kidsAppInfo)J.kidsAppInfo=JSON.parse(F);(a=R.Fa)&&!F&&(J.kidsAppInfo={contentSettings:{ageUpMode:e3L[a]}});if(F=R.BW)J.unpluggedAppInfo={enableFilterMode:!0}; (a=R.unpluggedFilterModeType)&&!F&&(J.unpluggedAppInfo={filterModeType:n8L[a]});if(F=R.xO)J.unpluggedLocationInfo=F;h.client=J;J=h.request||{};R.n2&&(J.isPrefetch=!0);if(F=R.mdxEnvironment)J.mdxEnvironment=F;if(F=R.mdxControlMode)J.mdxControlMode=uTf[F];h.request=J;J=h.user||{};if(F=R.fI)J.credentialTransferTokens=[{token:F,scope:"VIDEO"}];if(F=R.Ma)J.delegatePurchases={oauthToken:F},J.kidsParent={oauthToken:F};h.user=J;if(J=R.contextParams)h.activePlayers=[{playerContextParams:J}];if(R=R.clientScreenNonce)h.clientScreenNonce= R;return h}; g.Bn=function(R){var F=g.l5(),h=F.client||{};if(R.forcedExperiments){var a=R.forcedExperiments.split(","),J=[];a=g.N(a);for(var M=a.next();!M.done;M=a.next())J.push(Number(M.value));h.experimentIds=J}if(J=R.homeGroupInfo)h.homeGroupInfo=JSON.parse(J);if(J=R.getPlayerType())h.playerType=J;if(J=R.B.ctheme)h.theme=J;if(J=R.livingRoomAppMode)h.tvAppInfo=Object.assign({},h.tvAppInfo,{livingRoomAppMode:J});J=R.deviceYear;R.X("html5_propagate_device_year")&&J&&(h.tvAppInfo=Object.assign({},h.tvAppInfo,{deviceYear:J})); if(J=R.livingRoomPoTokenId)h.tvAppInfo=Object.assign({},h.tvAppInfo,{livingRoomPoTokenId:J});F.client=h;h=F.user||{};R.enableSafetyMode&&(h=Object.assign({},h,{enableSafetyMode:!0}));R.pageId&&(h=Object.assign({},h,{onBehalfOfUser:R.pageId}));F.user=h;h=R.Ho;R.X("embeds_web_enable_iframe_api_send_full_embed_url")||R.X("embeds_web_enable_rcat_validation_in_havs")||R.X("embeds_enable_autoplay_and_visibility_signals")||!h||(F.thirdParty={embedUrl:h});return F}; lpL=function(R,F,h){var a=R.videoId,J=g.ru(R),M=R.W(),v={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String($G()),referer:document.location.toString(),signatureTimestamp:20264};g.oA();R.isAutonav&&(v.autonav=!0);g.XB(0,141)&&(v.autonavState=g.XB(0,140)?"STATE_OFF":"STATE_ON");v.autoCaptionsDefaultOn=g.XB(0,66);fpf(R)&&(v.autoplay=!0);M.Z&&R.cycToken&&(v.cycToken=R.cycToken);M.enablePrivacyFilter&&(v.enablePrivacyFilter=!0);R.isFling&&(v.fling=!0);var I=R.forceAdsUrl;if(I){var w={},E=[];I= I.split(",");I=g.N(I);for(var B=I.next();!B.done;B=I.next()){B=B.value;var r=B.split("|");r.length!==3||B.includes("=")||(r[0]="breaktype="+r[0],r[1]="offset="+r[1],r[2]="url="+r[2]);B={adtype:"video_ad"};r=g.N(r);for(var Y=r.next();!Y.done;Y=r.next()){var p=g.N(Y.value.split("="));Y=p.next().value;p=MBm(p);B[Y]=p.join("=")}r=B.url;Y=B.presetad;p=B.viralresponseurl;var k=Number(B.campaignid);if(B.adtype==="in_display_ad")r&&(w.url=r),Y&&(w.presetAd=Y),p&&(w.viralAdResponseUrl=p),k&&(w.viralCampaignId= String(k));else if(B.adtype==="video_ad"){var H={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(B.offset)||0)}};if(B=d77[B.breaktype])H.breakType=B;r&&(H.url=r);Y&&(H.presetAd=Y);p&&(H.viralAdResponseUrl=p);k&&(H.viralCampaignId=String(k));E.push(H)}}v.forceAdParameters={videoAds:E,inDisplayAd:w}}R.isInlinePlaybackNoAd&&(v.isInlinePlaybackNoAd=!0);R.isLivingRoomDeeplink&&(v.isLivingRoomDeeplink=!0);w=R.t2;if(w!=null){w={startWalltime:String(w)};if(E=R.kp)w.manifestDuration=String(E||14400); v.liveContext=w}if(R.mutedAutoplay){v.mutedAutoplay=!0;w=M.getWebPlayerContextConfig();var T,Z;(w==null?0:(T=w.embedsHostFlags)==null?0:T.allowMutedAutoplayDurationMode)&&(w==null?0:(Z=w.embedsHostFlags)==null?0:Z.allowMutedAutoplayDurationMode.includes(PJO[R.mutedAutoplayDurationMode]))&&(v.mutedAutoplayDurationMode=PJO[R.mutedAutoplayDurationMode])}if(R.w$?0:R.Nx)v.splay=!0;T=R.vnd;T===5&&(v.vnd=T);T={};if(Z=R.isMdxPlayback)T.triggeredByMdx=Z;if(Z=R.fg)T.skippableAdsSupported=Z.split(",").includes("ska"); if(E=R.ZY){Z=R.PT;w=[];E=g.N(g_i(E));for(I=E.next();!I.done;I=E.next()){I=I.value;B=I.platform;I={applicationState:I.uF?"INACTIVE":"ACTIVE",clientFormFactor:z3_[B]||"UNKNOWN_FORM_FACTOR",clientName:IXT[I.q4]||"UNKNOWN_INTERFACE",clientVersion:I.deviceVersion||"",platform:KLi[B]||"UNKNOWN_PLATFORM"};B={};if(Z){r=void 0;try{r=JSON.parse(Z)}catch(O){g.qN(O)}r&&(B={params:[{key:"ms",value:r.ms}]},r.advertising_id&&(B.advertisingId=r.advertising_id),r.limit_ad_tracking!==void 0&&r.limit_ad_tracking!== null&&(B.limitAdTracking=r.limit_ad_tracking),I.osName=r.os_name,I.userAgent=r.user_agent,I.windowHeightPoints=r.window_height_points,I.windowWidthPoints=r.window_width_points)}w.push({adSignalsInfo:B,remoteClient:I})}T.remoteContexts=w}Z=R.sourceContainerPlaylistId;w=R.serializedMdxMetadata;if(Z||w)E={},Z&&(E.mdxPlaybackContainerInfo={sourceContainerPlaylistId:Z}),w&&(E.serializedMdxMetadata=w),T.mdxPlaybackSourceContext=E;v.mdxContext=T;T=F.width;T>0&&(v.playerWidthPixels=Math.round(T));if(F=F.height)v.playerHeightPixels= Math.round(F);h!==0&&(v.vis=h);if(h=M.widgetReferrer)v.widgetReferrer=h.substring(0,128);g.Py(M)&&v&&(v.ancestorOrigins=M.ancestorOrigins);R.defaultActiveSourceVideoId&&(v.compositeVideoContext={defaultActiveSourceVideoId:R.defaultActiveSourceVideoId});if(M=M.getWebPlayerContextConfig())v.encryptedHostFlags=M.encryptedHostFlags;a={videoId:a,context:J,playbackContext:{contentPlaybackContext:v}};if(R.DK){var b;a.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(b=R.DK)==null?void 0:b.reloadPlaybackParams}}R.contentCheckOk&& (a.contentCheckOk=!0);if(b=R.clientPlaybackNonce)a.cpn=b;if(b=R.playerParams)a.params=b;if(b=R.playlistId)a.playlistId=b;R.racyCheckOk&&(a.racyCheckOk=!0);b=R.W();if(J=b.embedConfig)a.serializedThirdPartyEmbedConfig=J;a.captionParams={};J=g.XB(g.oA(),65);R.deviceCaptionsOn!=null?a.captionParams.deviceCaptionsOn=R.deviceCaptionsOn:g.ig(b)&&(a.captionParams.deviceCaptionsOn=J!=null?!J:!1);R.AZ&&(a.captionParams.deviceCaptionsLangPref=R.AZ);R.aN.length?a.captionParams.viewerSelectedCaptionLangs=R.aN: g.ig(b)&&(J=g.sq(),J==null?0:J.length)&&(a.captionParams.viewerSelectedCaptionLangs=J);J=R.fetchType==="onesie"&&R.X("html5_onesie_attach_po_token");v=R.fetchType!=="onesie"&&R.X("html5_non_onesie_attach_po_token");if(J||v)J=R.W(),J.DG&&(a.serviceIntegrityDimensions={},a.serviceIntegrityDimensions.poToken=J.DG);b.X("fetch_att_independently")&&(a.attestationRequest={omitBotguardData:!0});a.playbackContext||(a.playbackContext={});a.playbackContext.devicePlaybackCapabilities=tOi(R);a.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&R.dA("noVp9",{});return a}; tOi=function(R){var F=!(R==null?0:R.lf())&&(R==null?void 0:R.Mt())&&c6(),h;if(!(h=R==null)){h=g.xF(R);R=R.W().N;var a=AJ("243");h=!(a&&SE(h,a,R,!0)===!0)}return{supportsVp9Encoding:!(h||F),supportXhr:Y9}}; VOL=function(R,F){var h,a,J;return g.u(function(M){if(M.D==1)return h={context:g.Bn(R.W()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:R.videoId,cpn:R.clientPlaybackNonce}}]},a=g.Ux(D7a),g.m(M,g.bN(F,h,a),2);J=M.B;return M.return(J)})}; U72=function(R,F,h){var a=g.RI(F.experiments,"bg_vm_reinit_threshold");(!R9||(0,g.NU)()-R9>a)&&VOL(R,h).then(function(J){J&&(J=J.botguardData)&&g.hd(J,F)},function(J){R.RR()||(J=YK(J),R.dA("attf",J.details))})}; YC=function(R,F){g.d.call(this);this.app=R;this.state=F}; pF=function(R,F,h){R.state.B.hasOwnProperty(F)||s4(R,F,h);R.state.Y[F]=function(){return h.apply(R,g.u7.apply(0,arguments))}; R.state.S.add(F)}; kC=function(R,F,h){R.state.B.hasOwnProperty(F)||s4(R,F,h);R.app.W().Z&&(R.state.Z[F]=function(){return h.apply(R,g.u7.apply(0,arguments))},R.state.S.add(F))}; s4=function(R,F,h){R.state.B[F]=function(){return h.apply(R,g.u7.apply(0,arguments))}}; g.QV=function(R,F,h){return R.state.B[F].apply(R.state.B,g.S(h))}; $C=function(){g.Hs.call(this);this.N=new Map}; AC=function(){g.d.apply(this,arguments);this.element=null;this.S=new Set;this.Y={};this.Z={};this.B={};this.C=new Set;this.K=new $C;this.D=new $C;this.L=new $C;this.N=new $C}; CJf=function(R,F,h){typeof R==="string"&&(R={mediaContentUrl:R,startSeconds:F,suggestedQuality:h});a:{if((F=R.mediaContentUrl)&&(F=/\/([ve]|embed)\/([^#?]+)/.exec(F))&&F[2]){F=F[2];break a}F=null}R.videoId=F;return xC(R)}; xC=function(R,F,h){if(typeof R==="string")return{videoId:R,startSeconds:F,suggestedQuality:h};F={};h=g.N(cQi);for(var a=h.next();!a.done;a=h.next())a=a.value,R[a]&&(F[a]=R[a]);return F}; WLL=function(R,F,h,a){if(g.M4(R)&&!Array.isArray(R)){F="playlist list listType index startSeconds suggestedQuality".split(" ");h={};for(a=0;a32&&a.push("hfr");F.isHdr()&&a.push("hdr");F.primaries==="bt2020"&&a.push("wcg");h.video_quality_features=a}}if(R=R.getPlaylistId())h.list=R;return h}; yV=function(){NX.apply(this,arguments)}; qX=function(R,F){var h={};if(R.app.W().aR){R=g.N(aVO);for(var a=R.next();!a.done;a=R.next())a=a.value,F.hasOwnProperty(a)&&(h[a]=F[a]);if(F=h.qoe_cat)R="",typeof F==="string"&&F.length>0&&(R=F.split(",").filter(function(J){return Ju7.includes(J)}).join(",")),h.qoe_cat=R; MI7(h)}else for(R=g.N(vhI),a=R.next();!a.done;a=R.next())a=a.value,F.hasOwnProperty(a)&&(h[a]=F[a]);return h}; MI7=function(R){var F=R.raw_player_response;if(!F){var h=R.player_response;h&&(F=JSON.parse(h))}delete R.player_response;delete R.raw_player_response;if(F){R.raw_player_response={streamingData:F.streamingData,playerConfig:F.playerConfig};var a;if((a=F.playbackTracking)==null?0:a.qoeUrl)R.raw_player_response=Object.assign({},R.raw_player_response,{playbackTracking:{qoeUrl:F.playbackTracking.qoeUrl}});F.videoDetails&&(F.videoDetails.videoId||F.videoDetails.lengthSeconds)&&(h={},F.videoDetails.videoId&& (h.videoId=F.videoDetails.videoId),F.videoDetails.lengthSeconds&&(h.lengthSeconds=F.videoDetails.lengthSeconds),R.raw_player_response=Object.assign({},R.raw_player_response,{videoDetails:h}))}}; fF=function(R,F,h){var a=R.app.oz(h);if(!a)return 0;R=a-R.app.getCurrentTime(h);return F-R}; GaB=function(R){var F=F===void 0?5:F;return R?ghi[R]||F:F}; g.jt=function(){yV.apply(this,arguments)}; IVm=function(R){s4(R,"getInternalApiInterface",R.getInternalApiInterface);s4(R,"addEventListener",R.X2);s4(R,"removeEventListener",R.dil);s4(R,"cueVideoByPlayerVars",R.Rd);s4(R,"loadVideoByPlayerVars",R.w3);s4(R,"preloadVideoByPlayerVars",R.IQn);s4(R,"getAdState",R.getAdState);s4(R,"sendAbandonmentPing",R.sendAbandonmentPing);s4(R,"setLoopRange",R.setLoopRange);s4(R,"getLoopRange",R.getLoopRange);s4(R,"setAutonavState",R.setAutonavState);s4(R,"seekTo",R.h0G);s4(R,"seekBy",R.qsl);s4(R,"seekToLiveHead", R.seekToLiveHead);s4(R,"requestSeekToWallTimeSeconds",R.requestSeekToWallTimeSeconds);s4(R,"seekToStreamTime",R.seekToStreamTime);s4(R,"startSeekCsiAction",R.startSeekCsiAction);s4(R,"getStreamTimeOffset",R.getStreamTimeOffset);s4(R,"getVideoData",R.zy);s4(R,"setInlinePreview",R.setInlinePreview);s4(R,"getAppState",R.getAppState);s4(R,"updateLastActiveTime",R.updateLastActiveTime);s4(R,"setBlackout",R.setBlackout);s4(R,"setUserEngagement",R.setUserEngagement);s4(R,"updateSubtitlesUserSettings",R.updateSubtitlesUserSettings); s4(R,"getPresentingPlayerType",R.A1);s4(R,"canPlayType",R.canPlayType);s4(R,"updatePlaylist",R.updatePlaylist);s4(R,"updateVideoData",R.updateVideoData);s4(R,"updateEnvironmentData",R.updateEnvironmentData);s4(R,"sendVideoStatsEngageEvent",R.g6l);s4(R,"productsInVideoVisibilityUpdated",R.productsInVideoVisibilityUpdated);s4(R,"setSafetyMode",R.setSafetyMode);s4(R,"isAtLiveHead",function(F){return R.isAtLiveHead(void 0,F)}); s4(R,"getVideoAspectRatio",R.getVideoAspectRatio);s4(R,"getPreferredQuality",R.getPreferredQuality);s4(R,"getPlaybackQualityLabel",R.getPlaybackQualityLabel);s4(R,"setPlaybackQualityRange",R.yjt);s4(R,"onAdUxClicked",R.onAdUxClicked);s4(R,"getFeedbackProductData",R.getFeedbackProductData);s4(R,"getStoryboardFrame",R.getStoryboardFrame);s4(R,"getStoryboardFrameIndex",R.getStoryboardFrameIndex);s4(R,"getStoryboardLevel",R.getStoryboardLevel);s4(R,"getNumberOfStoryboardLevels",R.getNumberOfStoryboardLevels); s4(R,"getCaptionWindowContainerId",R.getCaptionWindowContainerId);s4(R,"getAvailableQualityLabels",R.getAvailableQualityLabels);s4(R,"addCueRange",R.addCueRange);s4(R,"addUtcCueRange",R.addUtcCueRange);s4(R,"showAirplayPicker",R.showAirplayPicker);s4(R,"dispatchReduxAction",R.dispatchReduxAction);s4(R,"getPlayerResponse",R.F9);s4(R,"getWatchNextResponse",R.DC);s4(R,"getHeartbeatResponse",R.Jh);s4(R,"getCurrentTime",R.lR);s4(R,"getDuration",R.Q2);s4(R,"getPlayerState",R.getPlayerState);s4(R,"getPlayerStateObject", R.WB);s4(R,"getVideoLoadedFraction",R.getVideoLoadedFraction);s4(R,"getProgressState",R.getProgressState);s4(R,"getVolume",R.getVolume);s4(R,"setVolume",R.eM);s4(R,"isMuted",R.isMuted);s4(R,"mute",R.SG);s4(R,"unMute",R.v$);s4(R,"loadModule",R.loadModule);s4(R,"unloadModule",R.unloadModule);s4(R,"getOption",R.mx);s4(R,"getOptions",R.getOptions);s4(R,"setOption",R.setOption);s4(R,"loadVideoById",R.Im);s4(R,"loadVideoByUrl",R.Z6);s4(R,"playVideo",R.P2);s4(R,"loadPlaylist",R.loadPlaylist);s4(R,"nextVideo", R.nextVideo);s4(R,"previousVideo",R.previousVideo);s4(R,"playVideoAt",R.playVideoAt);s4(R,"getDebugText",R.getDebugText);s4(R,"getWebPlayerContextConfig",R.getWebPlayerContextConfig);s4(R,"notifyShortsAdSwipeEvent",R.notifyShortsAdSwipeEvent);s4(R,"getVideoContentRect",R.getVideoContentRect);s4(R,"setSqueezeback",R.setSqueezeback);s4(R,"toggleSubtitlesOn",R.toggleSubtitlesOn);s4(R,"isSubtitlesOn",R.isSubtitlesOn);s4(R,"reportPlaybackIssue",R.reportPlaybackIssue);s4(R,"setAutonav",R.setAutonav);s4(R, "isNotServable",R.isNotServable);s4(R,"channelSubscribed",R.channelSubscribed);s4(R,"channelUnsubscribed",R.channelUnsubscribed);s4(R,"togglePictureInPicture",R.togglePictureInPicture);s4(R,"supportsGaplessAudio",R.supportsGaplessAudio);s4(R,"supportsGaplessShorts",R.supportsGaplessShorts);s4(R,"enqueueVideoByPlayerVars",function(F){return void R.enqueueVideoByPlayerVars(F)}); s4(R,"clearQueue",R.clearQueue);s4(R,"getAudioTrack",R.Ou);s4(R,"setAudioTrack",R.wJu);s4(R,"getAvailableAudioTracks",R.q8);s4(R,"getMaxPlaybackQuality",R.getMaxPlaybackQuality);s4(R,"getUserPlaybackQualityPreference",R.getUserPlaybackQualityPreference);s4(R,"getSubtitlesUserSettings",R.getSubtitlesUserSettings);s4(R,"resetSubtitlesUserSettings",R.resetSubtitlesUserSettings);s4(R,"setMinimized",R.setMinimized);s4(R,"setOverlayVisibility",R.setOverlayVisibility);s4(R,"confirmYpcRental",R.confirmYpcRental); s4(R,"queueNextVideo",R.queueNextVideo);s4(R,"handleExternalCall",R.handleExternalCall);s4(R,"logApiCall",R.logApiCall);s4(R,"isExternalMethodAvailable",R.isExternalMethodAvailable);s4(R,"setScreenLayer",R.setScreenLayer);s4(R,"getCurrentPlaylistSequence",R.getCurrentPlaylistSequence);s4(R,"getPlaylistSequenceForTime",R.getPlaylistSequenceForTime);s4(R,"shouldSendVisibilityState",R.shouldSendVisibilityState);s4(R,"syncVolume",R.syncVolume);s4(R,"highlightSettingsMenuItem",R.highlightSettingsMenuItem); s4(R,"openSettingsMenuItem",R.openSettingsMenuItem);s4(R,"getEmbeddedPlayerResponse",R.getEmbeddedPlayerResponse);s4(R,"getVisibilityState",R.getVisibilityState);s4(R,"isMutedByMutedAutoplay",R.isMutedByMutedAutoplay);s4(R,"isMutedByEmbedsMutedAutoplay",R.isMutedByEmbedsMutedAutoplay);s4(R,"setGlobalCrop",R.setGlobalCrop);s4(R,"setInternalSize",R.setInternalSize);s4(R,"setFauxFullscreen",R.setFauxFullscreen);s4(R,"setAppFullscreen",R.setAppFullscreen)}; bm=function(R,F,h){R=g.Z4(R.ZQ(),F);return h?(h.addOnDisposeCallback(R),null):R}; g.St=function(R,F,h){return R.app.W().S9?F:g.JE("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:F,SHORTCUT:h})}; iOT=function(R){R.ZQ().element.setAttribute("aria-live","polite")}; g.O4=function(R,F){g.jt.call(this,R,F);IVm(this);kC(this,"addEventListener",this.Pj);kC(this,"removeEventListener",this.E6b);kC(this,"cueVideoByPlayerVars",this.OB);kC(this,"loadVideoByPlayerVars",this.Jy);kC(this,"preloadVideoByPlayerVars",this.ZaA);kC(this,"loadVideoById",this.Im);kC(this,"loadVideoByUrl",this.Z6);kC(this,"playVideo",this.P2);kC(this,"loadPlaylist",this.loadPlaylist);kC(this,"nextVideo",this.nextVideo);kC(this,"previousVideo",this.previousVideo);kC(this,"playVideoAt",this.playVideoAt); kC(this,"getVideoData",this.O4);kC(this,"seekBy",this.k2z);kC(this,"seekTo",this.lNu);kC(this,"showControls",this.showControls);kC(this,"hideControls",this.hideControls);kC(this,"cancelPlayback",this.cancelPlayback);kC(this,"getProgressState",this.getProgressState);kC(this,"isInline",this.isInline);kC(this,"setInline",this.setInline);kC(this,"setLoopVideo",this.setLoopVideo);kC(this,"getLoopVideo",this.getLoopVideo);kC(this,"getVideoContentRect",this.getVideoContentRect);kC(this,"getVideoStats",this.oa); kC(this,"getCurrentTime",this.gU);kC(this,"getDuration",this.Q2);kC(this,"getPlayerState",this.HB);kC(this,"getVideoLoadedFraction",this.CH);kC(this,"mute",this.SG);kC(this,"unMute",this.v$);kC(this,"setVolume",this.eM);kC(this,"loadModule",this.loadModule);kC(this,"unloadModule",this.unloadModule);kC(this,"getOption",this.mx);kC(this,"getOptions",this.getOptions);kC(this,"setOption",this.setOption);kC(this,"addCueRange",this.addCueRange);kC(this,"getDebugText",this.getDebugText);kC(this,"getStoryboardFormat", this.getStoryboardFormat);kC(this,"toggleFullscreen",this.toggleFullscreen);kC(this,"isFullscreen",this.isFullscreen);kC(this,"getPlayerSize",this.getPlayerSize);kC(this,"toggleSubtitles",this.toggleSubtitles);kC(this,"setCenterCrop",this.setCenterCrop);kC(this,"setFauxFullscreen",this.setFauxFullscreen);kC(this,"setSizeStyle",this.setSizeStyle);kC(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);kC(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Fpi(this)}; g.mX=function(R){R=R.LO();var F=R.BJ.get("endscreen");return F&&F.Ih()?!0:R.FU()}; g.oc=function(R,F){R.getPresentingPlayerType()===3?R.publish("mdxautoplaycancel"):R.WG("onAutonavCancelled",F)}; g.et=function(R){var F=XM(R.LO());return R.app.SK&&!R.isFullscreen()||R.getPresentingPlayerType()===3&&F&&F.NC()&&F.xJ()||!!R.getPlaylist()}; g.nF=function(R,F){g.QV(R,"addEmbedsConversionTrackingParams",[F])}; g.du=function(R){return(R=g.um(R.LO()))?R.oM():{}}; g.wlO=function(R){R=(R=R.getVideoData())&&R.D;return!!R&&!(!R.audio||!R.video)&&R.mimeType!=="application/x-mpegURL"}; g.Pn=function(R,F,h){R=R.xo().element;var a=ze(R.children,function(J){J=Number(J.getAttribute("data-layer"));return h-J||1}); a<0&&(a=-(a+1));kT(R,F,a);F.setAttribute("data-layer",String(h))}; g.zU=function(R){var F=R.W();if(!F.xO)return!1;var h=R.getVideoData();if(!h||R.getPresentingPlayerType()===3)return!1;var a=(!h.isLiveDefaultBroadcast||F.X("allow_poltergust_autoplay"))&&!Ic(h);a=h.isLivePlayback&&(!F.X("allow_live_autoplay")||!a);var J=h.isLivePlayback&&F.X("allow_live_autoplay_on_mweb");R=R.getPlaylist();R=!!R&&R.NC();var M=h.Oz&&h.Oz.playerOverlays||null;M=!!(M&&M.playerOverlayRenderer&&M.playerOverlayRenderer.autoplay);M=h.bq&&M;return!h.ypcPreview&&(!a||J)&&!g.x7(h.aR,"ypc")&& !R&&(!g.Py(F)||M)}; BEI=function(R,F){R=EhO(R.app.NI().N);R=g.N(R);for(var h=R.next();!h.done;h=R.next()){h=h.value;var a=h.getAvailableAudioTracks(),J=null;a=g.N(a);for(var M=a.next();!M.done;M=a.next())if(M=M.value,M.getLanguageInfo().getId()===F){J=M;break}J&&h.mK(J,!0)}}; KF=function(){OK.apply(this,arguments);this.requestHeaders={}}; lm=function(){tC||(tC=new KF);return tC}; D4=function(R,F){F?R.requestHeaders.Authorization="Bearer "+F:delete R.requestHeaders.Authorization}; g.VV=function(R){g.d.call(this);var F=this;this.BG=R;this.rf={Qv:function(){return F.BG}}}; g.U4=function(R,F,h,a){a=a===void 0?!1:a;g.gY.call(this,F);var J=this;this.U=R;this.KI=a;this.Z=new g.xK(this);this.fade=new g.CB(this,h,!0,void 0,void 0,function(){J.W5()}); g.z(this,this.Z);g.z(this,this.fade)}; CF=function(R){var F=R.U.getRootNode();return R.U.X("web_watch_pip")||R.U.X("web_shorts_pip")?WZ(F):document}; rua=function(R){R.D&&(document.activeElement&&g.$T(R.element,document.activeElement)&&R.D.focus(),R.D.setAttribute("aria-expanded","false"),R.D=void 0);g.TP(R.Z);R.C=void 0}; cn=function(R,F,h){R.Ow()?R.Nt():R.Tn(F,h)}; Wn=function(R,F,h,a){a=new g.D({G:"div",sz:["ytp-linked-account-popup-button"],Dn:a,j:{role:"button",tabindex:"0"}});F=new g.D({G:"div",J:"ytp-linked-account-popup",j:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{G:"div",J:"ytp-linked-account-popup-title",Dn:F},{G:"div",J:"ytp-linked-account-popup-description",Dn:h},{G:"div",J:"ytp-linked-account-popup-buttons",V:[a]}]});g.U4.call(this,R,{G:"div",J:"ytp-linked-account-popup-container",V:[F]},100);var J=this;this.dialog=F;g.z(this,this.dialog); a.listen("click",function(){J.Nt()}); g.z(this,a);g.Pn(this.U,this.element,4);this.hide()}; g.Fa=function(R,F,h,a){g.gY.call(this,R);this.priority=F;h&&g.RJ(this,h);a&&this.jA(a)}; g.hz=function(R,F,h,a){R=R===void 0?{}:R;F=F===void 0?[]:F;h=h===void 0?!1:h;a=a===void 0?!1:a;F.push("ytp-menuitem");var J=R;"role"in J||(J.role="menuitem");h||(J=R,"tabindex"in J||(J.tabindex="0"));R={G:h?"a":"div",sz:F,j:R,V:[{G:"div",J:"ytp-menuitem-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-menuitem-label",Dn:"{{label}}"},{G:"div",J:"ytp-menuitem-content",Dn:"{{content}}"}]};a&&R.V.push({G:"div",J:"ytp-menuitem-secondary-icon",Dn:"{{secondaryIcon}}"});return R}; g.RJ=function(R,F){R.updateValue("label",F)}; aJ=function(R){g.Fa.call(this,g.hz({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var F=this;this.U=R;this.D=this.B=!1;this.mC=R.v1();R.createServerVe(this.element,this,!0);this.T(this.U,"settingsMenuVisibilityChanged",function(h){F.yY(h)}); this.T(this.U,"videodatachange",this.L);this.listen("click",this.onClick);this.L()}; Jz=function(R){return R?g.iQ(R):""}; MD=function(R){g.d.call(this);this.api=R}; vg=function(R){MD.call(this,R);var F=this;s4(R,"setAccountLinkState",function(h){F.setAccountLinkState(h)}); s4(R,"updateAccountLinkingConfig",function(h){F.updateAccountLinkingConfig(h)}); R.addEventListener("videodatachange",function(h,a){F.onVideoDataChange(a)}); R.addEventListener("settingsMenuInitialized",function(){F.menuItem=new aJ(F.api);g.z(F,F.menuItem)})}; Yui=function(R){this.api=R;this.B={}}; g0=function(R,F,h,a){F in R.B||(h=new g.KI(h,a,{id:F,priority:2,namespace:"appad"}),R.api.eI([h],1),R.B[F]=h)}; GH=function(R){MD.call(this,R);var F=this;this.events=new g.xK(this);g.z(this,this.events);this.B=new Yui(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){F.B.B={}}); this.events.T(this.api,"legacyadtrackingpingchange",function(h){var a=F.B;g0(a,"part2viewed",1,0x8000000000000);g0(a,"engagedview",Math.max(1,h.EP*1E3),0x8000000000000);if(!h.isLivePlayback){var J=h.lengthSeconds*1E3;pt(h)&&a.api.X("html5_shorts_gapless_ads_duration_fix")&&(J=a.api.getProgressState().seekableEnd*1E3-h.uX);g0(a,"videoplaytime25",J*.25,J);g0(a,"videoplaytime50",J*.5,J);g0(a,"videoplaytime75",J*.75,J);g0(a,"videoplaytime100",J,0x8000000000000);g0(a,"conversionview",J,0x8000000000000); g0(a,"videoplaybackstart",1,J);g0(a,"videoplayback2s",2E3,J);g0(a,"videoplayback10s",1E4,J)}}); this.events.T(this.api,g.lz("appad"),this.D);this.events.T(this.api,g.Dq("appad"),this.D)}; Qs2=function(R,F,h){if(!(h in F))return!1;F=F[h];Array.isArray(F)||(F=[F]);F=g.N(F);for(h=F.next();!h.done;h=F.next()){h=h.value;var a={CPN:R.api.getVideoData().clientPlaybackNonce};h=g.fD(h,a);a=void 0;a=a===void 0?!1:a;(a=e7(nI(h,ssg),h,a,"Active View 3rd Party Integration URL"))||(a=void 0,a=a===void 0?!1:a,a=e7(nI(h,pla),h,a,"Google/YouTube Brand Lift URL"));a||(a=void 0,a=a===void 0?!1:a,a=e7(nI(h,kaf),h,a,"Nielsen OCR URL"));g.Sl(h,void 0,a)}return!0}; IJ=function(R,F){$bi(R,F).then(function(h){g.Sl(F,void 0,void 0,h)})}; iD=function(R,F){F.forEach(function(h){IJ(R,h)})}; $bi=function(R,F){return g.Y0(R.api.W())&&v6(F)&&Ml(F)?g.Qj(R.api.W(),g.Wr(R.api.getVideoData())).then(function(h){var a;h&&(a={Authorization:"Bearer "+h});return a},void 0):fR()}; Au2=function(R){MD.call(this,R);this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"videoready",function(F){if(R.getPresentingPlayerType()===1){var h,a,J={playerDebugData:{pmlSignal:!!((h=F.getPlayerResponse())==null?0:(a=h.adPlacements)==null?0:a.some(function(M){var v;return M==null?void 0:(v=M.adPlacementRenderer)==null?void 0:v.renderer})), contentCpn:F.clientPlaybackNonce}};g.MU("adsClientStateChange",J)}})}; w0=function(R){g.D.call(this,{G:"button",sz:["ytp-button","ytp-autonav-toggle"],j:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{G:"div",J:"ytp-autonav-toggle-button-container",V:[{G:"div",J:"ytp-autonav-toggle-button",j:{"aria-checked":"true"}}]}]});this.U=R;this.D=[];this.B=!1;this.isChecked=!0;R.createClientVe(this.element,this,113681);this.T(R,"presentingplayerstatechange",this.vW);this.listen("click",this.onClick);this.U.W().X("web_player_autonav_toggle_always_listen")&& xbn(this);bm(R,this.element,this);this.vW()}; xbn=function(R){R.D.push(R.T(R.U,"videodatachange",R.vW));R.D.push(R.T(R.U,"videoplayerreset",R.vW));R.D.push(R.T(R.U,"onPlaylistUpdate",R.vW));R.D.push(R.T(R.U,"autonavchange",R.cD))}; NEL=function(R){R.isChecked=R.isChecked;R.mI("ytp-autonav-toggle-button").setAttribute("aria-checked",String(R.isChecked));var F=R.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";R.updateValue("title",F);R.updateValue("label",F);R.U.P7()}; HOL=function(R){return R.U.W().X("web_player_autonav_use_server_provided_state")&&w9(R.Bc())}; Lpn=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"standardControlsInitialized",function(){var h=new w0(R);g.z(F,h);R.J7(h,"RIGHT_CONTROLS_LEFT")})}; El=function(R,F){g.Fa.call(this,g.hz({role:"menuitemcheckbox","aria-checked":"false"}),F,R,{G:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Bg=function(R,F){R.checked=F;R.element.setAttribute("aria-checked",String(R.checked))}; TEL=function(R){var F=!R.W().W1&&R.getPresentingPlayerType()!==3;return R.isFullscreen()||F}; g.r0=function(R,F,h,a){var J=R.currentTarget;if((h===void 0||!h)&&g.$r(R))return R.preventDefault(),!0;F.pauseVideo();R=J.getAttribute("href");g.ej(R,a,!0);return!1}; g.YQ=function(R,F,h){if(gG(F.W())&&F.getPresentingPlayerType()!==2){if(g.$r(h))return F.isFullscreen()&&!F.W().externalFullscreen&&F.toggleFullscreen(),h.preventDefault(),!0}else{var a=g.$r(h);a&&F.pauseVideo();g.ej(R,void 0,!0);a&&(g.nP(R),h.preventDefault())}return!1}; yuf=function(R){R=sl.includes("es-419")?R.X("delhi_modern_web_player_icons")?sj():{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,j:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:R.X("delhi_modern_web_player_icons")?mmB():{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,j:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};R.J="ytp-subtitles-button-icon"; return R}; qun=function(R){return sl.includes("es-419")?R?sj():{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:R?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{G:"path",j:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; pY=function(){return{G:"div",J:"ytp-spinner-container",V:[{G:"div",J:"ytp-spinner-rotator",V:[{G:"div",J:"ytp-spinner-left",V:[{G:"div",J:"ytp-spinner-circle"}]},{G:"div",J:"ytp-spinner-right",V:[{G:"div",J:"ytp-spinner-circle"}]}]}]}}; kQ=function(R){if(document.createRange){var F=document.createRange();F&&(F.selectNodeContents(R),R=window.getSelection())&&(R.removeAllRanges(),R.addRange(F))}}; Az=function(R){var F=R.X("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";El.call(this,F,g.Qi.S7);var h=this;this.U=R;this.B=!1;this.D=new g.DY(function(){g.vs(h.element,"ytp-menuitem-highlighted")},0); this.mC=R.v1();R=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(R);this.subscribe("select",this.K,this);this.listen($Q,this.L);g.z(this,this.D)}; xQ=function(R){MD.call(this,R);var F=this;this.B=!1;R.addEventListener("settingsMenuInitialized",function(){fVO(F)}); R.addEventListener("highlightSettingsMenu",function(h){fVO(F);var a=F.menuItem;h==="menu_item_cinematic_lighting"&&(g.J$(a.element,"ytp-menuitem-highlighted"),g.J$(a.element,"ytp-menuitem-highlight-transition-enabled"),a.D.start())}); s4(R,"updateCinematicSettings",function(h){F.updateCinematicSettings(h)})}; fVO=function(R){R.menuItem||(R.menuItem=new Az(R.api),g.z(R,R.menuItem),R.menuItem.gA(R.B))}; jsi=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"applicationvideodatachange",function(h,a){a=a.clipConfig;h==="dataloaded"&&a&&a.startTimeMs!=null&&a.endTimeMs!=null&&F.api.setLoopRange({startTimeMs:Math.floor(Number(a.startTimeMs)),endTimeMs:Math.floor(Number(a.endTimeMs)),postId:a.postId,type:"clips"})})}; ND=function(R){MD.call(this,R);this.events=new g.xK(R);g.z(this,this.events);s4(R,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));s4(R,"setCreatorEndscreenHideButton",this.B.bind(this))}; Hg=function(R,F,h,a){El.call(this,"Volumen estable",g.Qi.EW);g.J$(this.element,"ytp-drc-menu-item");this.mC=R.v1();this.K=F;this.B=h;this.hasDrcAudioTrack=a;R.addEventListener("videodatachange",this.D.bind(this));R.X("mta_drc_mutual_exclusion_removal")&&this.T(R,"onPlaybackAudioChange",this.D);F=this.B()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());R=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(R);this.subscribe("select",this.L,this);Bg(this,F);this.mC.SA(this)}; LY=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);R.X("html5_show_drc_toggle")&&R.addEventListener("settingsMenuInitialized",function(){F.menuItem||(F.menuItem=new Hg(F.api,F.setDrcUserPreference.bind(F),F.getDrcUserPreference.bind(F),F.D.bind(F)),g.z(F,F.menuItem))}); s4(this.api,"setDrcUserPreference",function(a){F.setDrcUserPreference(a)}); s4(this.api,"getDrcUserPreference",function(){return F.getDrcUserPreference()}); s4(this.api,"hasDrcAudioTrack",function(){return F.D()}); var h;this.B=(h=g.jA("yt-player-drc-pref"))!=null?h:1;this.updateEnvironmentData()}; TH=function(R){MD.call(this,R);var F=this;this.B={};this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"videodatachange",function(){F.onVideoDataChange()}); this.events.T(R,g.lz("embargo"),function(h){F.api.tV(!0);var a,J=(a=F.B[h.id])!=null?a:[];a=g.N(J);for(J=a.next();!J.done;J=a.next()){var M=J.value;F.api.hideControls();F.api.Aj("auth",2,"This video isn't available in your current playback area",ES({embargoed:1,id:h.id,idx:h.D,start:h.start}));J=void 0;(M=(J=M.embargo)==null?void 0:J.onTrigger)&&F.api.WG("innertubeCommand",M)}})}; ZOT=function(R,F){var h;return(h=F.onEnter)==null?void 0:h.some(R.D)}; bOg=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next()){h=h.value;var a=void 0,J=Number((a=h.playbackPosition)==null?void 0:a.utcTimeMillis)/1E3,M=void 0;a=J+Number((M=h.duration)==null?void 0:M.seconds);M="embargo_"+J;R.api.addUtcCueRange(M,J,a,"embargo",!1);h.onEnter&&(R.B[M]=h.onEnter.filter(R.D))}}; yi=function(R){MD.call(this,R);var F=this;this.B=[];this.events=new g.xK(R);g.z(this,this.events);s4(R,"addEmbedsConversionTrackingParams",function(h){F.api.W().D2&&F.addEmbedsConversionTrackingParams(h)}); this.events.T(R,"veClickLogged",function(h){F.api.hasVe(h)&&(h=h.visualElement.getAsJspb(),h=TF(h,2),F.B.push(h))})}; Su7=function(R){MD.call(this,R);s4(R,"isEmbedsShortsMode",function(){return R.isEmbedsShortsMode()})}; OO_=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"initialvideodatacreated",function(h){la(tu(),16623);F.B=g.Q7();var a=R.W().XJ&&!h.w$;if(cr(h)&&a){la(tu(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(h.getWatchNextResponse()){var J,M=(J=h.getWatchNextResponse())==null?void 0:J.trackingParams;M&&V_(M)}if(h.getPlayerResponse()){var v;(h=(v=h.getPlayerResponse())==null?void 0:v.trackingParams)&&V_(h)}}else la(tu(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),h.getEmbeddedPlayerResponse()&&(v=(M=h.getEmbeddedPlayerResponse())==null?void 0:M.trackingParams)&&V_(v)}); this.events.T(R,"loadvideo",function(){la(tu(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:F.B})}); this.events.T(R,"cuevideo",function(){la(tu(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:F.B})}); this.events.T(R,"largeplaybuttonclicked",function(h){la(tu(),27240,h.visualElement)}); this.events.T(R,"playlistnextbuttonclicked",function(h){la(tu(),27240,h.visualElement)}); this.events.T(R,"playlistprevbuttonclicked",function(h){la(tu(),27240,h.visualElement)}); this.events.T(R,"playlistautonextvideo",function(){la(tu(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; qD=function(R,F){g.d.call(this);var h=this;this.B=null;this.K=F;F=[];for(var a=0;a<=100;a++)F.push(a/100);F={threshold:F,trackVisibility:!0,delay:1E3};(this.D=window.IntersectionObserver?new IntersectionObserver(function(J){J=J[J.length-1];var M=null;typeof J.isVisible==="undefined"?document.visibilityState==="visible"&&J.isIntersecting&&J.intersectionRatio>0?M=J.intersectionRatio:document.visibilityState==="hidden"?M=0:M=null:M=J.isVisible?J.intersectionRatio:0;M!=null&&(M=Math.max(M,0),M=Math.min(M, 1));h.B=M;typeof h.K==="function"&&h.K(h.B)},F):null)&&this.D.observe(R)}; ohI=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"applicationInitialized",function(){mbO(F)})}; mbO=function(R){var F=R.api.getRootNode(),h,a=R.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((h=F.parentElement)==null?void 0:h.parentElement)||F:F;R.B=new qD(a,function(J){J!=null&&(R.api.W().ub=J,R.api.W().B9="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.z(R,R.B);R.events.T(R.api,"videoStatsPingCreated",function(J){var M=R.B;M=M.B==null?null:Math.round(M.B*100)/100;J.inview=M!=null?M:void 0;M=R.api.getPlayerSize();if(M.height>0&&M.width>0){M=[Math.round(M.width),Math.round(M.height)];var v=g.IX();v>1&&M.push(v);M=M.join(":")}else M=void 0;J.size=M})}; Xlm=function(R){var F;return((F=((R==null?void 0:R.messageRenderers)||[]).find(function(h){return!!h.timeCounterRenderer}))==null?void 0:F.timeCounterRenderer)||null}; fY=function(R){g.D.call(this,{G:"div",sz:["ytp-player-content","ytp-iv-player-content"],V:[{G:"div",J:"ytp-free-preview-countdown-timer",V:[{G:"span",Dn:"{{label}}"},{G:"span",J:"ytp-free-preview-countdown-timer-separator",Dn:"\u2022"},{G:"span",Dn:"{{duration}}"}]}]});this.api=R;this.B=null;this.K=this.D=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; nhB=function(R,F){R.B||(R.D=F,R.K=(0,g.NU)(),R.B=new g.lG(function(){ed2(R)},null),ed2(R))}; ed2=function(R){var F=Math,h=F.round,a=Math.min((0,g.NU)()-R.K,R.D);F=h.call(F,(R.D-a)/1E3);R.updateValue("duration",eI({seconds:F}));F<=0&&R.B?R.stopTimer():R.B&&R.B.start()}; uPL=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"basechromeinitialized",function(){F.B=new fY(R);g.z(F,F.B);g.Pn(R,F.B.element,4);F.B.hide()})}; jo=function(R){g.D.call(this,{G:"button",sz:["ytp-fullerscreen-edu-button","ytp-button"],V:[{G:"div",sz:["ytp-fullerscreen-edu-text"],Dn:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{G:"div",sz:["ytp-fullerscreen-edu-chevron"],V:[{G:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{G:"path",j:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],j:{"data-priority":"2"}});this.Xo=R;this.fade=new g.CB(this,250,void 0,100);this.D=this.B= !1;R.createClientVe(this.element,this,61214);g.z(this,this.fade);this.T(R,"fullscreentoggled",this.gA);this.T(R,"presentingplayerstatechange",this.gA);this.listen("click",this.onClick);this.gA()}; ZW=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);s4(this.api,"updateFullerscreenEduButtonSubtleModeState",function(a){F.updateFullerscreenEduButtonSubtleModeState(a)}); s4(this.api,"updateFullerscreenEduButtonVisibility",function(a){F.updateFullerscreenEduButtonVisibility(a)}); var h=R.W();R.X("external_fullscreen_with_edu")&&h.externalFullscreen&&gG(h)&&h.controlsType==="1"&&this.events.T(R,"standardControlsInitialized",function(){F.B=new jo(R);g.z(F,F.B);R.J7(F.B)})}; db2=function(R){g.D.call(this,{G:"div",J:"ytp-gated-actions-overlay",V:[{G:"div",J:"ytp-gated-actions-overlay-background",V:[{G:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",sz:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],j:{"aria-label":"Cerrar"},V:[g.Ys()]},{G:"div",J:"ytp-gated-actions-overlay-bar",V:[{G:"div",J:"ytp-gated-actions-overlay-text-container",V:[{G:"div",J:"ytp-gated-actions-overlay-title",Dn:"{{title}}"},{G:"div",J:"ytp-gated-actions-overlay-subtitle", Dn:"{{subtitle}}"}]},{G:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var F=this;this.api=R;this.background=this.mI("ytp-gated-actions-overlay-background");this.D=this.mI("ytp-gated-actions-overlay-button-container");this.B=[];this.T(this.mI("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){F.api.WG("onCloseMiniplayer")}); this.hide()}; zdB=function(R,F){var h=0;h=0;for(var a={};h J&&(J=I.width,M="url("+I.url+")")}h.background.style.backgroundImage=M;zdB(h,a.actionButtons||[]);h.show()}else h.hide()}); g.Pn(this.api,this.B.element,4)}; bD=function(R){MD.call(this,R);var F=this;kC(this.api,"getSphericalProperties",function(){return F.getSphericalProperties()}); kC(this.api,"setSphericalProperties",function(){F.setSphericalProperties.apply(F,g.S(g.u7.apply(0,arguments)))}); pF(this.api,"getSphericalProperties",function(){return F.api.getPresentingPlayerType()===2?{}:F.getSphericalProperties()}); pF(this.api,"setSphericalProperties",function(){var h=g.u7.apply(0,arguments);F.api.getPresentingPlayerType()!==2&&F.setSphericalProperties.apply(F,g.S(h))})}; So=function(R){MD.call(this,R);s4(R,"createClientVe",this.createClientVe.bind(this));s4(R,"createServerVe",this.createServerVe.bind(this));s4(R,"destroyVe",this.destroyVe.bind(this));s4(R,"hasVe",this.hasVe.bind(this));s4(R,"logClick",this.logClick.bind(this));s4(R,"logVisibility",this.logVisibility.bind(this));s4(R,"setTrackingParams",this.setTrackingParams.bind(this))}; Ol=function(R,F,h,a){function J(v){var I=!(v.status!==204&&v.status!==200&&!v.response),w;v={succ:""+ +I,rc:v.status,lb:((w=v.response)==null?void 0:w.byteLength)||0,rt:((0,g.NU)()-M).toFixed(),shost:g.I8(R),trigger:F};tI_(v,R);h&&h(v);a&&!I&&a(new g.Bz("pathprobe.net",v))} var M=(0,g.NU)();g.x$(R,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:J,onTimeout:J})}; tI_=function(R,F){var h;((h=window.performance)==null?0:h.getEntriesByName)&&(F=performance.getEntriesByName(F))&&F.length&&(F=F[0],R.pedns=(F.domainLookupEnd-F.startTime).toFixed(),R.pecon=(F.connectEnd-F.domainLookupEnd).toFixed(),R.perqs=(F.requestStart-F.connectEnd).toFixed(),lVm&&(R.perqsa=F.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Dbn=function(R){lVm=R}; mr=function(R,F){this.LV=R;this.policy=F;this.playbackRate=1}; VIn=function(R,F){var h=Math.min(2.5,bo(R.LV));R=oJ(R);return F-h*R}; Xa=function(R,F,h,a,J){J=J===void 0?!1:J;if(R.policy.JF)return Math.ceil(R.policy.JF*F);R.policy.eE&&(a=Math.abs(a));a/=R.playbackRate;var M=1/mo(R.LV);h=Math.max(.9*(a-3),bo(R.LV)+R.LV.D.B*M)/M*.8/(F+h);h=Math.min(h,a);R.policy.W1>0&&J&&(h=Math.max(h,R.policy.W1));return Ub2(R,h,F)}; Ub2=function(R,F,h){return Math.ceil(Math.max(Math.max(R.policy.CB,R.policy.jB*h),Math.min(Math.min(R.policy.NQ,31*h),Math.ceil(F*h))))||R.policy.CB}; CaB=function(R,F,h){h=Xa(R,F.B.info.CI,h.B.info.CI,0);var a=bo(R.LV)+h/mo(R.LV);return Math.max(a,a+R.policy.BW-h/F.B.info.CI)}; oJ=function(R){return mo(R.LV,!R.policy.jb,R.policy.Jn)}; eo=function(R){return oJ(R)/R.playbackRate}; nY=function(R,F,h){var a=R.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],J=R.policy.playbackStartPolicy.startMinReadaheadPolicy||[];R=Infinity;F=g.N(F&&a.length>0?a:J);for(a=F.next();!a.done;a=F.next())a=a.value,J=a.minReadaheadMs||0,h<(a.minBandwidthBytesPerSec||0)||R>J&&(R=J);return R0&&(this.D=h.cY)}; Rxn=function(R,F,h,a,J){if(!a.info.N){if(h.length===0)h.push(a);else{var M;(R=(M=h.pop())==null?void 0:g.$b(M,a))?h.push(R):h.push(a)}return J}var v;(h=(v=h.pop())==null?void 0:g.$b(v,a))||(h=a);if(h.info.D)return R.logger&&R.logger({incompleteSegment:h.info.KV()}),J;a=R.Cg(h);J=a.vG;a={clipId:a.clipId,formatId:a.formatId,startTimeMs:a.startTimeMs,durationMs:a.J2,HV:J,EG:J};J=cu7(F,a.startTimeMs);if(M=h=J>=0?F[J]:null){M=a;var I=J;v=h.startTimeMs+h.durationMs;var w=M.startTimeMs+M.durationMs;if(M.startTimeMs- v>R.D)M=!1;else if(Wp7(R,h.formatId,M.formatId))h.durationMs=Math.max(v,w)-h.startTimeMs,h.EG=Math.max(h.EG,M.EG),M=!0;else if(Math.abs(h.startTimeMs-M.startTimeMs)<=R.D)if(h.durationMs>M.durationMs+R.D){var E=h.formatId,B=h.HV;I=h.EG;h.formatId=M.formatId;h.durationMs=M.durationMs;h.HV=M.HV;h.EG=M.EG;M.formatId=E;M.startTimeMs=w;M.durationMs=v-w;M.HV=B;M.EG=I;M=!1}else h.formatId=M.formatId,M=!0;else v>M.startTimeMs&&(v>w&&(F.splice(I+1,0,{formatId:h.formatId,startTimeMs:w,durationMs:v-w,HV:M.EG+ 1,EG:h.EG}),R.logger&&R.logger({splitOldStart:(E=h.startTimeMs)==null?void 0:E.toFixed(3),splitOldEnd:v==null?void 0:v.toFixed(3),splitNewStart:(B=M.startTimeMs)==null?void 0:B.toFixed(3),splitNewEnd:w==null?void 0:w.toFixed(3)})),h.durationMs=M.startTimeMs-h.startTimeMs,h.EG=M.HV-1),M=!1}M?a=h:(J+=1,F.splice(J,0,a));E=0;for(B=J+1;B=w+h.D?h=!0:I+h.D=0?R:-R-2}; Fm2=function(R,F){if(R.XW){var h=R.XW.Ca();if(h.length!==0){if(R.K&&F){var a=R.K,J=a.info.L;!US(h,J)&&a.info.Z>0&&(0,g.NU)()-R.S<5E3&&(R.logger&&R.logger({dend:a.info.KV()}),h=SjB(h,J,J+.01))}R.policy.E0&&R.logger&&R.logger({cbri:""+R.B});a=[];for(var M=J=0;J=v){var B=Object.assign({},R.D1[M]),r=R.MQ.K.get(z4(R.D1[M].formatId)),Y=Math.max(w,v);v=r.index.L2(Y+R.D/ 1E3);w=r.index.getStartTime(v);var p=v+ +(Math.abs(w-Y)>R.D/1E3);Y=p+R.L;p=r.index.getStartTime(p)*1E3;M!==R.B||F?(B.HV=Y,B.startTimeMs=p):(R.logger&&R.logger({pEvict:"1",og:B.startTimeMs,adj:w*1E3}),B.HV=v+R.L,B.startTimeMs=w*1E3);v=void 0;w=((v=R.K)==null?void 0:v.info.duration)||11;M===R.B&&IR.D/1E3);v=w+R.L;r=r.index.hA(w)*1E3;B.EG=v;B.durationMs=r-B.startTimeMs;B.HV<=B.EG&&a.push(B)}E=0&&tz(R.audioTrack,R.B)>=0&&M?((R.videoTrack.N||R.audioTrack.N)&&R.loader.dA("iterativeSeeking",{status:"done",count:R.seekCount}),R.videoTrack.N=!1,R.audioTrack.N=!1):a&&g.T3(function(){if(R.D||!R.policy.EP)Vi(R);else{var v=F.startTime,I=F.duration;if(!R.policy.N){var w=h?R.videoTrack.N:R.audioTrack.N,E=R.videoTrack.S!==-1&&R.audioTrack.S!==-1,B=R.B>=v&&R.B432E3&&m8_(R.MQ);R.K&&(J=R.K,R.K=0);g.T3(function(){R.policy.N||Ul(R,J,102)}); R.loader.dA("initManifestlessSync",{st:J,ost:J+R.loader.wW(),a:R.audioTrack.S,v:R.videoTrack.S});R.L&&(R.L.resolve(J+.1),R.L=null);R.policy.N&&Ul(R,J,102)}}}; Wg=function(R,F){var h=this;this.fO=R;this.requestNumber=++rdL;this.B=this.now();this.Z=this.C=NaN;this.Y=this.B;this.K=this.gW=this.N=0;this.S=this.B;this.HG=this.aR=this.Oz=this.Ho=this.FW=this.Uz=this.D=this.L=0;this.oR=this.isActive=!1;this.Sw=this.nI=0;this.rf={Hpb:function(){return h.Au}}; this.LV=F.LV;this.snapshot=iq_(this.LV);this.policy=this.LV.D;this.w0=!!F.w0;this.PO=F.PO;this.gY=F.gY||0;this.OG=F.OG||0;F.rq&&(this.fI=new NM);var a;this.Au=(a=F.Au)!=null?a:!1;this.w0||g1T(this.LV)}; Yqn=function(R){R.Oz=Math.max(R.Oz,R.N-R.FW);R.aR=Math.max(R.aR,R.Y-R.Ho);R.Uz=0}; Rm=function(R,F,h){Gbf(R.LV,F);R.fI&&(R.fI.add(Math.ceil(F)-Math.ceil(R.Y)),R.fI.add(Math.max(0,Math.ceil(h/1024)-Math.ceil(R.N/1024))));var a=F-R.Y,J=h-R.N;R.gW=J;R.HG=Math.max(R.HG,J/(a+.01)*1E3);R.Y=F;R.N=h;R.Uz&&h>R.Uz&&Yqn(R)}; FS=function(R,F){R.url=F;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; hU=function(R,F){Wg.call(this,R,F);this.EP=this.YH=!1;this.Sl=this.KI=Infinity;this.NQ=NaN;this.iY=!1;this.T$=NaN;this.It=this.PG=this.IR=0;this.EC=F.EC||1;this.Ro=F.Ro||this.EC;this.P9=F.P9;this.vG=F.vG;this.GV=F.GV;s9g(this);this.QP(this.B);this.uY=(this.T$-this.B)/1E3}; pGT=function(R){var F=R.PG||R.IR;return F?R.snapshot.delay+Math.min(R.OG,(R.Z-R.C)/1E3)+F:R.uY}; am=function(R,F,h){if(!R.w0){F=Math.max(F,.01);var a=R.gY?Math.max(F,h/R.gY):F,J=R.LV.D.K;J&&(a=F,R.gY&&(a=Math.max(F,h/R.gY*J)));fG(R.LV,F,h,a)}}; kEf=function(R){return(R.S-R.B)/1E3}; s9g=function(R){R.NQ=R.B+R.snapshot.delay*1E3;R.iY=!1}; JU=function(R,F){if(R.P9&&R.vG!==void 0&&R.GV!==void 0){var h=Math,a=h.min,J=R.KI;var M=R.P9;var v=R.B;if(Q9I(M,R.vG))M=F;else{var I=0;M.E6&&(I=.2);M=v+(M.OG+I)*1E3}R.KI=a.call(h,J,M);h=Math;a=h.min;J=R.Sl;M=R.P9;v=R.B;I=$Rf(M,R.vG,R.GV);I!==2&&(F=I?F:v+M.OG*1E3,M.E6&&(F+=M.OG*1E3));R.Sl=a.call(h,J,F);R.KI<=R.B?s9g(R):(R.NQ=R.KI,R.iY=!0)}}; AdB=function(R,F){if(F+1<=R.totalLength){var h=IN(R,F);h=h<128?1:h<192?2:h<224?3:h<240?4:5}else h=0;if(h<1||!(F+h<=R.totalLength))return[-1,F];if(h===1)R=IN(R,F++);else if(h===2)h=IN(R,F++),R=IN(R,F++),R=(h&63)+64*R;else if(h===3){h=IN(R,F++);var a=IN(R,F++);R=IN(R,F++);R=(h&31)+32*(a+256*R)}else if(h===4){h=IN(R,F++);a=IN(R,F++);var J=IN(R,F++);R=IN(R,F++);R=(h&15)+16*(a+256*(J+256*R))}else h=F+1,R.focus(h),vD(R,h,4)?R=eQn(R).getUint32(h-R.K,!0):(a=IN(R,h+2)+256*IN(R,h+3),R=IN(R,h)+256*(IN(R,h+1)+ 256*a)),F+=5;return[R,F]}; Mr=function(R){this.fO=R;this.B=new hl}; vd=function(R,F){this.info=R;this.callback=F;this.state=1;this.wh=this.LW=!1;this.fK=null}; xR2=function(R){return g.kz(R.info.Vt,function(F){return F.type===3})}; gJ=function(R,F,h,a){var J=this;a=a===void 0?{}:a;this.policy=F;this.fO=h;this.status=0;this.B=new hl;this.D=0;this.RR=this.L=this.K=!1;this.xhr=new XMLHttpRequest;this.xhr.open(a.method||"GET",R);if(a.headers)for(R=a.headers,F=g.N(Object.keys(R)),h=F.next();!h.done;h=F.next())h=h.value,this.xhr.setRequestHeader(h,R[h]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return J.hS()}; this.xhr.onload=function(){return J.onDone()}; this.xhr.onerror=function(){return J.onError()}; this.xhr.fetch(function(M){J.B.append(M);J.D+=M.length;M=(0,g.NU)();J.fO.EZ(M,J.D)},function(){},a.body||null)}; NVT=function(R,F){this.D=(new TextEncoder).encode(R);this.B=(new TextEncoder).encode(F)}; x0g=function(R,F){var h;return g.u(function(a){if(!F)return a.return(F);h=new g.IZ(R.D);return a.return(h.encrypt(F,R.B))})}; yOi=function(R,F){var h;return g.u(function(a){if(a.D==1){if(!F)return a.return(F);h=new g.IZ(R.D);return g.m(a,h.decrypt(F,R.B),2)}return a.return(a.B)})}; LmO=function(R,F){var h=this;this.B=R;this.fO=F;this.loaded=this.status=0;this.error="";R=l8(this.B.get("range")||"");if(!R)throw Error("bad range");this.range=R;this.D=new hl;Ho2(this).then(function(){h.fO.B0()},function(a){h.error=""+a||"unknown_err"; h.fO.B0()})}; Ho2=function(R){var F,h,a,J,M,v,I,w,E,B,r,Y,p,k,H;return g.u(function(T){if(T.D==1){R.status=200;F=R.B.get("docid");h=fh(R.B.get("fmtid")||"");a=R.B.get("lmt")||"0";J=+(R.B.get("csz")||0);if(!F||!h||!J)throw Error("Invalid local URL");R.B.get("ck")&&R.B.get("civ")&&(M=new NVT(R.B.get("ck"),R.B.get("civ")));v=R.range;I=Math.floor(v.start/J);w=Math.floor(v.end/J);E=I}if(T.D!=5)return E<=w?g.m(T,qrm(F,h,a,E,M),5):T.G$(0);B=T.B;if(B===void 0)throw Error("invariant: data is undefined");r=E*J;Y=(E+1)*J; p=Math.max(0,v.start-r);k=Math.min(v.end+1,Y)-(p+r);H=new Uint8Array(B.buffer,p,k);R.D.append(H);R.loaded+=k;R.loaded=400?(R.lastError="net.badstatus",!0):(J===void 0?0:J)?(R.lastError="ump.spsrejectfailure",!0):h||a!==void 0&&a?!1:(R.lastError=F===204?"net.nocontent":"net.connect",!0)}; sM=function(R,F){if(R.policy.hJ)return!1;var h=F.getResponseHeader("content-type"),a=F.WP();R=!a||a<=R.policy.aO;return(!F.jT()||!h||h.indexOf("text/plain")!==-1)&&R}; Oog=function(R,F){var h="";F=F.Dc();F.totalLength<=R.policy.aO&&(h=SqO(R,gw(F)));return h}; SqO=function(R,F){var h=ww(F);return uz(h)?(R.logger.debug(function(){return"Redirecting to "+h}),h):""}; EM=function(R){return XG(R.K,zE(R.G0.t0))}; mRL=function(R){var F=R.timing.Lp();F.shost=zE(R.G0.t0);return F}; onL=function(R,F){return(R==null?void 0:R.maxWidth)>(F==null?void 0:F.maxWidth)||(R==null?void 0:R.maxHeight)>(F==null?void 0:F.maxHeight)}; XGB=function(R,F){for(var h=g.N(F.keys()),a=h.next();!a.done;a=h.next())if(a=F.get(a.value),a.length!==0){g.l9(a,function(I,w){return w.maxFramerate-I.maxFramerate}); for(var J=[a[0]],M=0,v=1;vR.B||h.push(a)}return h}; p2=function(R,F,h){var a=uHO[R]||[];h.X("html5_shorts_onesie_mismatched_fix")&&(a=dRn[R]||[]);F.push.apply(F,g.S(a));h.X("html5_early_media_for_drm")&&F.push.apply(F,g.S(PMn[R]||[]))}; VEL=function(R,F){var h=g.xF(R),a=R.W(),J=a.N;a=a.X("html5_shorts_onesie_mismatched_fix");var M=R.XO();if(a){if(!J.D){if(M&&k4)return k4;if(Qv)return Qv}}else if(Qv&&!J.D)return Qv;var v=[],I=[],w={},E=$4.concat(zx2);a&&(E=$4.concat(KmT));R.X("html5_early_media_for_drm")&&(E=E.concat(tE7),R.X("allow_vp9_1080p_mq_enc")&&E.push(lon));var B=[].concat(g.S(DRi));R.X("html5_iamf_audio_onesie_fmt")&&B.push(["773"]);E=g.N(E);for(var r=E.next();!r.done;r=E.next()){var Y=!1;r=g.N(r.value);for(var p=r.next();!p.done;p= r.next()){p=p.value;var k=AJ(p,M&&a);if(k&&k.video&&!(OS(k)&&!h.KI&&k.video.qualityOrdinal>h.Ae)){var H=g.RI(R.W().experiments,"html5_drm_byterate_soft_cap");H>0&&ZBn(k)&&k.CI>H||(Y?(v.push(p),p2(p,v,R)):(k=SE(h,k,J),k===!0?(Y=!0,v.push(p),p2(p,v,R)):w[p]=k))}}}B=g.N(B);for(E=B.next();!E.done;E=B.next())for(E=g.N(E.value),Y=E.next();!Y.done;Y=E.next())if(Y=Y.value,(r=S5L(Y))&&r.audio&&(R.X("html5_onesie_51_audio")||!ma(r)&&!ok(r)))if(r=SE(h,r,J),r===!0){I.push(Y);p2(Y,I,R);break}else w[Y]=r;if(!R.X("html5_enable_audio_quality_setting"))for(R= g.N(["141","774"]),B=R.next();!B.done;B=R.next())B=B.value,I.includes(B)&&(g.Hh(I,B),w[B]="blkhqa");h.D&&F("orfmts",w);if(a)return J.D&&(J.D=!1,k4=Qv=void 0),M?k4={video:v,audio:I}:Qv={video:v,audio:I};Qv={video:v,audio:I};J.D=!1;return Qv}; g.cd7=function(R,F,h){var a=h.N,J=[],M=[],v=h.X("html5_shorts_onesie_mismatched_fix");R=R.XO();var I=$4.concat(zx2);v&&(I=$4.concat(KmT));h.X("html5_early_media_for_drm")&&(I=I.concat(tE7),h.X("allow_vp9_1080p_mq_enc")&&I.push(lon));var w=[].concat(g.S(DRi));h.X("html5_iamf_audio_onesie_fmt")&&w.push(["773"]);I=g.N(I);for(var E=I.next();!E.done;E=I.next()){E=g.N(E.value);for(var B=E.next();!B.done;B=E.next()){B=B.value;var r=AJ(B,R&&v);if(r&&r.video){var Y=g.RI(h.experiments,"html5_drm_byterate_soft_cap"); if(!(Y>0&&ZBn(r)&&r.CI>Y)&&SE(F,r,a)===!0){J.push({videoCodec:URi[f7[B]],maxWidth:r.video.width,maxHeight:r.video.height,maxFramerate:r.video.fps});break}}}}v=g.N(w);for(R=v.next();!R.done;R=v.next())for(R=g.N(R.value),w=R.next();!w.done;w=R.next())if(w=w.value,(I=S5L(w))&&I.audio&&(h.X("html5_onesie_51_audio")||!ma(I)&&!ok(I))&&SE(F,I,a)===!0){M.push({audioCodec:CM7[f7[w]],numChannels:I.audio.numChannels});break}return{videoFormatCapabilities:J,audioFormatCapabilities:M}}; hC7=function(R){var F={},h=R.BG,a=R.LI,J=h.getVideoData(),M=Eq(0),v=h.getVisibilityState();if(a.X("html5_enable_audio_quality_setting")){var I=g.RI(a.experiments,"html5_default_audio_quality_setting_lr"),w;F.TI=(w=Wm2[I])!=null?w:0}M&&(F.NV=M,F.lastManualDirection=Czi(),M=DKn()||0,M>0&&(M=(a.X("html5_use_date_now_for_local_storage")?Date.now():(0,g.NU)())-M,a.X("html5_use_date_now_for_local_storage")?M>0&&(F.timeSinceLastManualFormatSelectionMs=M):F.timeSinceLastManualFormatSelectionMs=M));M=a.X("html5_use_streamer_bandwidth_for_low_latency_live")&& J.isLowLatencyLiveStream;if(a.schedule.oR&&!M){var E;M=a.X("html5_disable_bandwidth_cofactors_for_sabr_live")?!((E=R.uq)==null||!E.jb):!1;F.bE=mo(a.schedule,!M)}E=g.L7.medium;M=Math.floor(E*16/9);(I=J.XO())||(J.B&&J.K&&J.K.videoInfos.length!==0?(I=J.K.videoInfos[0],I=!!I.video&&I.video.width 0&&(F.o8.authorizedFormats=R.authorizedFormats);R.sabrLicenseConstraint&&(F.o8.sabrLicenseConstraint=R.sabrLicenseConstraint);if(a.X("html5_onesie_media_capabilities")||a.X("html5_enable_server_format_filter"))F.lI=3;a.X("html5_onesie_audio_only_playback")&&kF(J)&&(F.lI=1);var Z;((Z=R.uq)==null?0:Z.Ym)&&R.Kq&&(F.lI=F.lI===void 0?7:F.lI|4);B=J.S9?J.S9:g.xF(J);a.X("html5_onesie_media_capabilities")&&(F.mediaCapabilities=g.cd7(J,B,a));var b;if((b=R.uq)==null?0:AU(b)){Y=a.N;b=[];r=[];p=new Map;k=Array.from(Y.B.values()); k=g.N(k);for(H=k.next();!H.done;H=k.next())T=H.value,T.rk?r.push({audioCodec:CM7[T.Qt],numChannels:T.numChannels,spatialCapabilityBitmask:RCB[T.Qt]}):(Z=URi[T.Qt],H={videoCodec:Z,maxWidth:T.maxWidth||0,maxHeight:T.maxHeight||0,maxFramerate:T.maxFramerate||0,is10BitSupported:T.Xb||!1},T.maxBitrateBps&&(H.maxBitrateBps=T.maxBitrateBps,v=AJ(T.itag),E=void 0,((E=v)==null?0:E.video)&&SE(B,v,Y)===!0&&(v=v.CI*8,v>H.maxBitrateBps&&(H.maxBitrateBps=v))),T=Z+"_"+T.Xb,Z=p.get(T)||[],Z.push(H),p.set(T,Z));b= XGB(b,p);Y={};a.X("html5_ssff_denylist_opus_low")&&(Y={itagDenylist:[249,350]});F.mediaCapabilities={videoFormatCapabilities:b,audioFormatCapabilities:r,hdrModeBitmask:3,perPlaybackAttributes:Y}}var O;if((O=R.uq)==null?0:O.B){F.oZ=B.oZ;var n;F.Ae=(n=R.uq)==null?void 0:n.Ae}a.w$&&(F.wi=a.w$);F.JH=R.Ee;F.Ev=R.Ev;F.ih=R.ih;F.e3=R.e3;R.Hm&&(F.OKI=(0,g.NU)()-R.Hm);R.isPrefetch&&a.X("html5_report_prefetch_requests")&&(F.isPrefetch=!0);Y9||(F.dQG=!0);O=bo(a.schedule)*1E3;O>0&&(F.Kl=O);var K;((K=R.uq)==null? 0:K.wZ)&&R.m2&&R.m20?Rg:a.schedule.interruptions[0]||0;var U;if((U=R.uq)==null?0:U.Sw)F.xp=R.xp;a.HG&&(F.audioTrackId=a.HG);FM(J)&&!F.audioTrackId&&(a.X("html5_fill_default_mosaic_audio_track_id")||(R=beL(J),F.audioTrackId= R),J==null||J.dA("misstrkchg",{"default":F.audioTrackId}));if(J=qji())F.detailedNetworkType=FAm[J]||FAm.other;a.X("html5_enable_voice_boost")&&(F.aqo=a.ES);return F}; x4=function(R,F,h,a,J,M,v){var I={};F&&(I.TD=F);if(!R)return I;I.playbackCookie=h==null?void 0:h.playbackCookie;J&&(I.o7=J);I.hE=[];I.xn=[];if(v==null?0:v.size)for(F=g.N(v.values()),h=F.next();!h.done;h=F.next())I.xn.push(h.value);if(R.sabrContextUpdates.size>0)for(F=g.N(R.sabrContextUpdates.values()),h=F.next();!h.done;h=F.next())aQ2(I,h.value,a);AL(R)&&M&&aQ2(I,M,a);R.y9&&(I.n6o=R.y9);a=R.W().B;I.clientInfo={clientName:JDB[a.c.toUpperCase()]||0};a.cbrand&&(I.clientInfo.deviceMake=a.cbrand);a.cmodel&& (I.clientInfo.deviceModel=a.cmodel);a.cver&&(I.clientInfo.clientVersion=a.cver);a.cos&&(I.clientInfo.osName=a.cos);a.cosver&&(I.clientInfo.osVersion=a.cosver);a=R.W();a.X("html5_sabr_enable_server_xtag_selection")&&a.i9&&(I.clientInfo.hl=a.i9);R.xT&&(I.xT=R.xT);return I}; aQ2=function(R,F,h){var a=F.type||0;(h==null?0:h.has(a))?R.xn.push(F):R.hE.push(a)}; zH=function(R,F,h,a,J,M){var v=M===void 0?{}:M;var I=v.Qf===void 0?[]:v.Qf;var w=v.nU===void 0?!1:v.nU;var E=v.HY===void 0?0:v.HY;var B=v.poToken===void 0?"":v.poToken;var r=v.hx===void 0?void 0:v.hx;var Y=v.E9===void 0?"":v.E9;var p=v.kZ===void 0?0:v.kZ;var k=v.Rp===void 0?new Uint8Array(0):v.Rp;var H=v.iZ===void 0?!1:v.iZ;M=v.LP===void 0?0:v.LP;v=v.TD===void 0?void 0:v.TD;vd.call(this,F,J);var T=this;this.policy=R;this.logger=new g.s3("dash/request");this.VA=this.Xt=0;this.ph=!1;this.sU=this.nY= null;this.Wi=!1;this.Rp=this.kZ=null;this.SL=this.RI=!1;this.yp=null;this.LP=this.GE=0;this.Zb=!1;this.rf={wf:function(b){T.wf(b)}, Uht:function(){return T.fK}, uTb:function(b){T.fK=b}, CzG:function(b){T.Xt=b}, zE$:function(b){T.Oi.lastError=b}, nT:function(){return T.xhr}}; this.timing=new hU(this,h);this.nU=w;this.kZ=p;this.Rp=k;this.G0=g.vI(this.info,this.policy,a);this.G0.set("rn",this.Sy().toString());this.G0.set("rbuf",(E*1E3).toFixed().toString());this.nU&&this.G0.set("smb","1");this.policy.nX&&B&&this.G0.set("pot",B);Y&&this.G0.set("bbs",Y);this.policy.useUmp&&!Ko(this.G0.t0)&&(this.H9=new Mr(this),this.G0.set("ump","1"),this.G0.set("srfvp","1"));if(R=this.policy.HE?this.policy.AZ&&!isNaN(this.info.GV)&&this.info.GV>this.policy.WU?!1:!0:!1)F=null,this.policy.d1&& this.policy.f$?F=[1]:H&&(F=[]),F!=null&&(this.policy.L3&&F.push(2),this.G0.set("defsel",F.join(",")));this.Oi=new wJ(this,this.policy,this.G0,this.info.UP,this.timing,this.logger,a,r);this.Qf=I||null;this.wh=M$i(this);fof(this.Oi);a=void 0;if(this.policy.Jd||this.H9||this.policy.Oz)a={method:"POST"},I=(0,g.Nr)([120,0]),r={},this.policy.tJ&&v&&(v=x4(void 0,v),r.QB=v),this.policy.j0&&this.Rp&&(r.videoPlaybackUstreamerConfig=this.Rp),this.policy.Oz&&(v=this.info.L)&&Object.assign(r,v),Object.keys(r).length> 0?a.body=g.tl(r,g.I9):a.body=I;if(this.kZ&&this.Rp){this.G0.set("iwts","1");a={method:"POST"};v={e3:this.kZ*1E3};var Z;I=(Z=this.info.L)==null?void 0:Z.wT;Z=g.tl({CG:v,wT:I||void 0,videoPlaybackUstreamerConfig:this.Rp},g.I9);a.body=Z}try{this.xhr=Gv(this.G0,this.policy.Y,this.timing,R,a),this.Oi.D.start(),M&&(this.L9=new g.DY(this.n0,M,this),this.L9.start(M+(this.timing.LV.Z.Wf()||0)*1E3)),this.policy.Xl&&FS(this.timing,this.hT()),this.logger.debug(function(){return"Sent, itag="+T.G0.get("itag")+ " seg="+T.info.Vt[0].vG+" range="+T.G0.get("range")+" time="+Math.round(T.info.Vt[0].L)+"-"+Math.round(g.pg(T.info.Vt).S)+" rtp="+(T.timing.Cm()-Date.now()).toFixed(0)}),g.T3(function(){})}catch(b){vEi(this,b,!0)}}; M$i=function(R){if(!(M3(R.info)&&R.info.Au()&&R.policy.PJ&&R.Qf)||R.info.UP.K>=2||Eq()>0||!FQI())return!1;var F=R.G0.get("aitags");if(!F)return!1;F=fh(F).split(",");for(var h=[],a=g.N(R.Qf),J=a.next();!J.done;J=a.next())J=J.value,g.x7(F,J)&&h.push(J);if(!h.length)return!1;R.G0.set("altitags",g.yT(h.join(",")));return!0}; vEi=function(R,F,h){h=h===void 0?!1:h;g.y7(F);R.Oi.lastError="player.exception";R.errorMessage=F.name+"_"+F.message;h?g.T3(function(){rJ(R.Oi)}):rJ(R.Oi)}; gEm=function(R,F){R.timing.oR=!0;R.xhr.jT()&&R.timing.hN();if(R.policy.Ma){var h;(h=R.L9)==null||h.stop()}iv(R.fK,F,!1)}; G42=function(R,F){R.info=F;if(R.fK){var h=R.fK;F=F.Vt;(F.length!==h.Vt.length||F.length0){F=g.N(F.Vt);for(var h=F.next();!h.done;h=F.next()){var a=void 0;R+=((a=h.value.range)==null?void 0:a.length)||0}return R}if(F.Kx.length>0)for(h=g.N(F.Kx),a=h.next();!a.done;a=h.next())R+=a.value.vn||0;return R+F.D6}; Z8=function(R,F){if(qr){var h=0;R=R.Pe.get(F);if(R==null||!R.g4)return 0;R=g.N(R.g4.values());for(F=R.next();!F.done;F=R.next())h+=F.value.data.totalLength;return h}return((h=R.Pe.get(F))==null?void 0:h.Fk.totalLength)||0}; bv=function(R,F){R=R.Pe.get(F);if(qr){if(R==null||!R.xW)return!1;F=R.g4.size>0;return R.Er.length>0||F}return!(R==null||!R.xW)&&!(R==null||!R.Fk.totalLength)}; rDi=function(R,F){var h=R.Pe.get(F),a=B$7(R,F),J=!a&&!!h.bytesReceived;if(qr){var M;if((M=R.MQ)==null?0:M.Mt){R=g.N(h.g4.values());for(F=R.next();!F.done;F=R.next())if(!F.value.JC)return!1;return J}}else if(M=R.Pg(F),J&&R.B&&M!==void 0)return M;return(J||h.bytesReceived===a)&&h.ZT+Z8(R,F)===h.bytesReceived}; Yff=function(R,F,h){R.Pe.set(F,{Fk:new hl,ZT:0,bytesReceived:0,D6:0,Io:!1,VV:!1,Pg:!1,rk:h,cI:[],Vt:[],Kx:[],xW:!1,g4:new Map,HQ:new Map,Er:[]});R.logger.debug(function(){return"[initStream] formatId: "+F})}; soI=function(R,F,h,a){h.Vt.push.apply(h.Vt,g.S(a));if(qr){h.HQ.has(F)||h.HQ.set(F,[]);var J;(J=h.HQ.get(F)).push.apply(J,g.S(a))}else if(h.fK)for(R=g.N(a),F=R.next();!F.done;F=R.next())h.fK.Vt.push(F.value);else{h.fK=new Im(R.uq,[].concat(g.S(h.Vt)));var M;((M=R.uq)==null?0:M.B1)&&g.z(R,h.fK)}}; p$B=function(R,F,h){var a,J=(a=R.MQ)==null?void 0:a.K.get(F);if(!J)return[];if(h.jX){var M;return((M=J.rX(0,h.clipId))==null?void 0:M.Vt)||[]}if(J.RQ()){var v=h.startMs,I=h.durationMs;a=1E3;var w;if(((w=R.uq)==null?0:w.B)&&h.timeRange){var E;v=(E=h.timeRange.startTicks)!=null?E:-1;var B;I=(B=h.timeRange.qZ)!=null?B:-1;var r;a=(r=h.timeRange.timescale)!=null?r:-1}if(h.oL<0||h.DH<0||I<0||v<0||h.vn<0||a<0)return jh(R,F),[];R=DQ(h.oL,h.vn);F=h.X5||0;return[new Uf(3,J,R,"makeSliceInfosMediaBytes",h.DH- 1,v/a,I/a,F,R.length-F,void 0,h.jK,h.clipId)]}if(h.DH<0)return jh(R,F),[];var Y;return((Y=R.MQ)==null?0:Y.Mt)?(F=J.VD,w=F*J.info.CI,E=h.X5,((I=R.uq)==null?0:I.tE)&&h.timeRange&&!E&&(v=h.timeRange.startTicks/h.timeRange.timescale),[new Uf(3,J,void 0,"makeSliceInfosMediaBytes",h.DH,v,F,E,w,!0,h.jK,h.clipId)]):[]}; k4L=function(R,F,h){R.MQ=F;R.uq=h;F=g.N(R.Pe);for(h=F.next();!h.done;h=F.next()){var a=g.N(h.value);h=a.next().value;a=a.next().value;for(var J=g.N(a.cI),M=J.next();!M.done;M=J.next()){M=M.value;var v=p$B(R,h,M);soI(R,M.ze,a,v)}}}; Sh=function(R,F,h,a){R.logger.debug(function(){return"[addStreamData] formatId: "+h+",headerId: "+F+" bytes: "+a.totalLength}); (R=R.Pe.get(h))&&!R.VV&&(qr?(R.g4.has(F)||R.g4.set(F,{data:new hl,ZA:0,JC:!1}),aN(R.g4.get(F).data,a)):aN(R.Fk,a),R.bytesReceived+=a.totalLength,R.Io=!0)}; f2=function(R,F){R.logger.debug(function(){return"[closeStream] formatId: "+F}); var h=R.Pe.get(F);h&&!h.VV&&(h.VV=!0,h.YX&&h.YX(),QoO(R)&&R.L.vr())}; QoO=function(R){R=g.N(R.Pe.values());for(var F=R.next();!F.done;F=R.next())if(!F.value.VV)return!1;return!0}; $GT=function(R){qr=R}; OM=function(R,F,h,a,J,M,v){g.d.call(this);this.policy=R;this.info=F;this.MQ=h;this.fO=J;this.logger=new g.s3("sabr");this.H9=new Mr(this);this.Bs=new Tv(this);this.z2=new yv(this);this.state=1;this.uW=!1;this.Cc=0;this.clipId="";this.IH=-1;this.ZX=0;this.JD=-1;this.Zb=this.qU=!1;this.wC=0;this.Xr=!1;this.policy.IN?this.zn=new Hd(this,M):this.zn=new hU(this,M);this.G0=this.policy.Sw?F.bl:ADg(F,this.policy,a);this.G0.set("rn",""+this.Sy());this.G0.set("alr","yes");k4L(this.z2,h,R);this.Oi=new wJ(this, this.policy,this.G0,F.UP,this.zn,this.logger,a,v,this.policy.enableServerDrivenRequestCancellation);fof(this.Oi);var I;if((I=this.policy)==null?0:I.B1)g.z(this,this.z2),g.z(this,this.Oi);R=F.D;F={method:"POST",body:R};R&&(this.ZX=R.length);try{this.xhr=Gv(this.G0,this.policy.Y,this.zn,Y9,F),this.policy.Xl&&FS(this.zn,this.hT()),this.Oi.D.start()}catch(w){g.qN(w)}}; xGn=function(R){R.policy.Wg&&R.Tf&&!R.Xr?R.Xr=!0:R.zn.hN()}; N$m=function(R,F){var h=-1,a=-1,J=-1,M;if((M=R.zO)==null?0:M.items)for(R=g.N(R.zO.items),M=R.next();!M.done;M=R.next())M=M.value,F=I,w=R.MQ.isManifestless&&R.policy.hn,v){var E;if(((E=R.B)==null?void 0:E.vJ.event)==="predictStart"&&R.B.vGR.S&&(R.S=NaN,R.Y=NaN);R.B&&R.B.vG===F?nEm(R,F,h,R.B,J):R.D===1&&eh(R,5,"noad")}; uGI=function(R,F,h,a,J){a.Iy?eh(R,4,"cue"):(R.S=F,R.Y=h,R.dA("sdai",{joinad:R.D,sg:R.S,st:R.Y.toFixed(3)}),R.C=Date.now(),eh(R,2,R.D===3?"staftpred":"join"),J.f1(a.vJ))}; nEm=function(R,F,h,a,J){if(J&&a){var M=a.vJ,v=J.rB(M);M.event==="predictStart"&&(R.aR=F);R.dA("sdai",{onqevt:M.event,sq:F,mt:h,gab:v,cst:M.startSecs,cueid:R.policy.Nl&&(v||M.event==="start")?M.identifier:void 0},!0);if(v)M.event!=="predictStart"?(M.event==="start"&&R.aR===F-1&&R.dA("sdai",{gabonstart:F}),uGI(R,F,h,a,J)):R.policy.Y6?eh(R,3,"predict"):(F+=Math.max(Math.ceil(-M.B/5E3),1),M=Math.floor(h-M.B/1E3),R.policy.D?R.N=M:R.L=F,R.dA("sdai",{onpred:h,estsq:F,estmt:M.toFixed(3)}),n2(R.loader,M,M, F),R.C=Date.now(),eh(R,3,"predict"),J.f1(a.vJ));else if(R.D===1){var I;((I=R.K)==null?0:I.WC(h))?(n2(R.loader,h,h,F),eh(R,4,"sk2head")):eh(R,5,"nogab")}else M.event==="predictStart"?R.policy.D&&R.N>0?(h=Math.floor(h-M.B/1E3),R.N!==h&&R.dA("sdai",{updateSt:h,old:R.N}),R.N=h):R.L>0&&(h=F+Math.max(Math.ceil(-M.B/5E3),1),R.L!==h&&(R.dA("sdai",{updateSt:h,old:R.L}),R.L=h)):R.policy.Y6&&R.D===3&&uGI(R,F,h,a,J)}else R.dA("sdai",{nulldec:1,sq:F,mt:h.toFixed(3),evt:(a==null?void 0:(M=a.vJ)==null?void 0:M.event)|| "none"})}; P8m=function(R,F,h){if(R.policy.Qj&&R.policy.D)return!(R.D===1||R.D===2||!R.policy.Y6&&R.D===3&&h>=R.L);if(R.D===1||R.D===2)return!1;if(R.D!==0&&F===R.audioTrack){if(R.policy.D)return dG_(R.videoTrack,h)||dG_(R.videoTrack,h+1);R=uv(R.videoTrack);if(h>(R?R.vG:-1))return!1}return!0}; dJ=function(R,F,h){return(h<0||h===R.S)&&!isNaN(R.Y)?R.Y:F}; mGi=function(R,F){if(R.B){var h=R.B.vJ.Rz-(F.startTime+R.Z-R.B.vJ.startSecs);h<=0||(h=new MG(R.B.vJ.startSecs-(isNaN(R.Z)?0:R.Z),h,R.B.vJ.context,R.B.vJ.identifier,"stop",R.B.vJ.B+F.duration*1E3),R.dA("cuepointdiscontinuity",{segNum:F.vG}),XS(R,h,F.vG))}}; eh=function(R,F,h){R.D!==F&&(R.dA("sdai",{setsst:F,old:R.D,r:h}),R.D=F)}; Pd=function(R,F,h,a){(a===void 0?0:a)?eh(R,1,"seek"):F>0&&Math.abs(F-h)>=5&&R.D===4&&eh(R,5,"sk2t")}; zCm=function(R){this.dA=R;this.B="";this.D=new Map}; zv=function(R,F,h){this.audio=R;this.video=F;this.reason=h}; K2=function(R,F,h){this.B=R;this.reason=F;this.token=h;this.videoId=void 0}; tU=function(R,F,h){g.d.call(this);this.policy=R;this.L=F;this.dA=h;this.K=new Map;this.N=0;this.S=!1;this.B="";this.D=!1}; lv=function(R,F,h){if(h===void 0?0:h)R.S=!0;++R.N;h=6E4*Math.pow(2,R.N);h=(0,g.NU)()+h;R.K.set(F.info.id,h)}; D8=function(R){for(var F=g.N(R.K.entries()),h=F.next();!h.done;h=F.next()){var a=g.N(h.value);h=a.next().value;a=a.next().value;a<(0,g.NU)()&&R.K.delete(h)}return R.K}; KAa=function(R){return R.S&&D8(R).size>0}; Vv=function(R,F){R.B!==F&&(R.B=F,R.D=!0)}; t$I=function(R,F){var h;F&&(h=g.QL(R.L.B,function(J){return J.id===F})); if(!h&&(h=g.QL(R.L.B,function(J){var M;return!((M=J.jw)==null||!M.isDefault)}),F)){var a; R.dA("iaf",{id:F,sid:(a=h)==null?void 0:a.id})}return h}; C2=function(R,F,h,a,J,M){var v=this;M=M===void 0?[]:M;this.loader=R;this.KI=F;this.policy=h;this.MQ=a;this.S=J;this.HG=M;this.logger=new g.s3("dash/abr");this.B=JL;this.K=this.Y=null;this.C=-1;this.Sl=!1;this.nextVideo=this.D=null;this.L=[];this.PG=new Set;this.Oz={};this.T$=new LG(1);this.Z=0;this.IR=this.aR=this.oR=!1;this.Uz=0;this.Fo=!1;this.fI=new Set;this.NQ=!1;this.rf={D_:function(){UM(v)}}; this.N=new tU(this.policy,J,function(I,w){v.loader.dA(I,w)})}; C8I=function(R,F,h){cd(R,F);F=t$I(R.N,h);h||F||(F=lQi(R));F=F||R.S.B[0];R.D=R.MQ.B[F.id];UM(R);R.Y=R.D;DG2(R);V$n(R);R.K=R.nextVideo;R.Y=R.D;return UGg(R)}; RPf=function(R,F){if(cDm(R,F))return null;if(F.reason==="m"&&F.isLocked())return R.logger.debug(function(){return"User sets constraint to: "+qR(F)}),cd(R,F),R.Z=R.L.length-1,UM(R),Wd(R),R.aR=R.aR||R.K!==R.nextVideo,R.K=R.nextVideo,new zv(R.D,R.K,F.reason); F.reason==="r"&&(R.C=-1);cd(R,F);Wd(R);if(F.reason==="r"&&R.nextVideo===R.K)return new zv(R.D,R.nextVideo,F.reason);WAI(R);return null}; FPi=function(R,F,h){R.D=R.MQ.B[F];R.Y=R.D;return new zv(R.Y,R.K,h?"t":"m")}; hPn=function(R,F){if(F.info.video){if(R.K!==F)return R.K=F,UGg(R)}else R.IR=R.Y!==F,R.Y=F;return null}; aL2=function(R,F){if(F.B.info.video&&F.N){var h=(F.D+F.K)/F.duration,a=F.B.info.CI;h&&a&&(R.T$.TT(1,h/a),R.policy.K&&h/a>1.5&&R.loader.dA("overshoot",{sq:F.vG,br:h,max:a}))}}; Rr=function(R,F,h){lv(R.N,F,h===void 0?!1:h);R.C=-1;cd(R,R.B)}; JPO=function(R,F){return new zv(R.Y,R.K,F||R.B.reason)}; WAI=function(R){if(R.K&&R.nextVideo&&Fc(R,R.K.info)R.policy.Ae,I=J<=R.policy.Ae?OS(a):ZK(a);if(!M||v||I)h[J]=a}return h}; cd=function(R,F){R.B=F;var h=R.S.videoInfos;if(!R.B.isLocked()){var a=(0,g.NU)();h=g.TR(h,function(I){if(I.CI>this.policy.CI)return!1;var w=this.MQ.B[I.id];return D8(this.N).get(I.id)>a?!1:w.UP.K>4||w.S>4?(this.logger.debug(function(){return"Remove "+K7(I)+"; 4 load failures"}),!1):this.fI.has(+I.itag)?!1:!0},R); KAa(R.N)&&(h=g.TR(h,function(I){return I.video.width<=854&&I.video.height<=480}))}h.length||(h=R.S.videoInfos); var J=h;R.policy.T8&&(J=vbf(R,J,F));J=g.TR(J,F.L,F);if(R.B.isLocked()&&R.N.B){var M=g.QL(h,function(I){return I.id===R.N.B}); M?J=[M]:Vv(R.N,"")}R.policy.T8||(J=vbf(R,J,F));J.length||(J=[h[0]]);J.sort(function(I,w){return Fc(R,I)-Fc(R,w)}); F={};for(h=1;hF.ek.video.width?(g.N4(J,h),h--):Fc(R,F.qf)*R.policy.Z>Fc(R,F.ek)&&(g.N4(J,h-1),h--);var v=J[J.length-1];R.Fo=!!R.K&&!!R.K.info&&R.K.info.Qt!==v.Qt;R.logger.debug(function(){return"Constraint: "+qR(R.B)+", "+J.length+" fmts selectable, max selectable fmt: "+K7(v)}); R.L=J;R.PG.clear();F=!1;for(h=0;h=1080&&(F=!0);gbB(R.policy,v,R.MQ.Mt)}; vbf=function(R,F,h){var a=h.reason==="m"||h.reason==="s";R.policy.jp&&hn&&g.YV&&(!a||h.B<1080)&&(F=F.filter(function(E){return E.video&&(!E.D||E.D.powerEfficient)})); if(F.length>0)if(M8()){var J=Mam(R,F);F=F.filter(function(E){return!!E&&!!E.video&&E.Qt===J[E.video.qualityOrdinal].Qt})}else{var M,v,I=(M=F[0])==null?void 0:(v=M.video)==null?void 0:v.qualityOrdinal; if(I){h=F.filter(function(E){return!!E&&!!E.video&&E.video.qualityOrdinal===I}); var w=Mam(R,h)[I].Qt;F=F.filter(function(E){return!!E&&!!E.video&&E.Qt===w})}}return F}; Gl_=function(R,F){for(var h=0;h+1a}; UM=function(R){if(!R.D||!R.policy.L&&!R.D.info.jw){var F=R.S.B;R.D&&(F=F.filter(function(a){return a.audio.B===R.D.info.audio.B}),F.length||(F=R.S.B)); R.D=R.MQ.B[F[0].id];if(F.length>1&&!R.policy.IR){if(!R.policy.NP){var h=g.QL(F,function(a){return a.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); h&&(R.D=R.MQ.B[h.id])}h=!1;if(h=R.policy.gf?!0:R.B.isLocked()?R.B.B<240:Gl_(R,R.D))R.D=R.MQ.B[g.pg(F).id]}}}; Wd=function(R){if(!R.nextVideo||!R.policy.L)if(R.B.isLocked())R.nextVideo=R.B.B<=360?R.MQ.B[R.L[0].id]:R.MQ.B[g.pg(R.L).id],R.logger.debug(function(){return"Select max fmt: "+K7(R.nextVideo.info)}); else{for(var F=Math.min(R.Z,R.L.length-1),h=eo(R.KI),a=Fc(R,R.D.info),J=h/R.policy.oR-a;F>0&&!(Fc(R,R.L[F])<=J);F--);for(var M=h/R.policy.Z-a;F=M);F++);R.nextVideo=R.MQ.B[R.L[F].id];R.Z!==F&&R.logger.info(function(){return"Adapt to: "+K7(R.nextVideo.info)+", bandwidth: "+h.toFixed(0)+", bandwidth to downgrade: "+J.toFixed(0)+", bandwidth to upgrade: "+M.toFixed(0)+", constraint: "+qR(R.B)}); R.Z=F}}; DG2=function(R){var F=R.policy.oR,h=eo(R.KI),a=h/F-Fc(R,R.D.info);F=g.AG(R.L,function(J){return Fc(this,J)M?J=0:a[v]>R.buffered[v]&&(v===M-1?J=2:v===M-2&&a[v+1]>R.buffered[v+1]&&(J=3))}R.B.add(F<<3|(h&&4)|J);F=Math.ceil(R.track.rY()*1E3);R.B.add(F-R.N);R.N=F;if(J===1)for(R.B.add(M),v=F=0;v=2&&R.B.add(a[M- 1]-R.buffered[M-1]);h&&R.B.add(h);R.buffered=a}; MY=function(R,F,h){var a=this;this.policy=R;this.B=F;this.Uz=h;this.L=this.D=0;this.n_=null;this.oR=new Set;this.C=[];this.indexRange=this.initRange=null;this.Z=new rh;this.aR=this.KI=!1;this.rf={ipA:function(){return a.K}, l2t:function(){return a.chunkSize}, Rsu:function(){return a.Y}, cOz:function(){return a.S}}; (F=BHi(this))?(this.chunkSize=F.csz,this.K=Math.floor(F.clen/F.csz),this.Y=F.ck,this.S=F.civ):(this.chunkSize=R.YW,this.K=0,this.Y=g.sY(16),this.S=g.sY(16));this.N=new Uint8Array(this.chunkSize);this.Y&&this.S&&(this.crypto=new NVT(this.Y,this.S))}; BHi=function(R){if(R.policy.Nx&&R.policy.JJ)for(var F=g.N(R.policy.Nx),h=F.next(),a={};!h.done;a={AD:void 0,g6:void 0},h=F.next())if(h=g.Ff(h.value),a.AD=+h.clen,a.g6=+h.csz,a.AD>0&&a.g6>0&&R.policy.L===h.docid&&R.B.info.id===h.fmtid&&R.B.info.lastModified===+h.lmt)return R={},R.clen=a.AD,R.csz=a.g6,R.ck=h.ck,R.civ=h.civ,R}; vE=function(R){return!!R.n_&&R.n_.k7()}; s_L=function(R,F){if(!vE(R)&&!R.RR()){if(!(R.KI||(R.KI=!0,R.K>0))){var h=gt(R);h=Vj(R.policy.L,R.B.info,Gz(R),h,R.policy.T$);Ir(R,h)}if(F.info.type===1){if(R.n_){i6(R,Error("Woffle: Expect INIT slices to always start us off"));return}R.initRange=DQ(0,F.D.totalLength)}else if(F.info.type===2)R.n_&&R.n_.type===1||i6(R,Error("Woffle: Index before init")),R.indexRange=DQ(R.initRange.end+1,F.D.totalLength);else if(F.info.type===3){if(!R.n_){i6(R,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(R.n_.type===3&&!W$(R.n_,F.info)&&(R.C=[],F.info.vG!==R_(R.n_)||F.info.D!==0))return;if(F.info.N){h=g.N(R.C);for(var a=h.next();!a.done;a=h.next())rPi(R,a.value);R.C=[]}else{R.C.push(F);R.n_=F.info;return}}else{i6(R,Error("Woffle: Unexpected slice type"));return}R.n_=F.info;rPi(R,F);Y3g(R)}}; rPi=function(R,F){var h=0,a=gw(F.D);if(R.L=a.length)return;if(h<0)throw Error("Missing data");R.L=R.K;R.D=0}for(J={};h0){var v=a.getUint32(h+28);M+=v*16+4}var I=a.getUint32(h+M-4);try{var w=APL(F.subarray(h+M,h+M+I));if(w!==null){var E=w;break a}}catch(B){}}h+=J}E=null;break a}catch(B){E=null;break a}E=void 0}if(E!=null)for(F=rR(Cr(E,7,void 0,jb)),F==null||R.K_||(R.cryptoPeriodIndex=F),F=rR(Cr(E,10,void 0,jb)),F!=null&&F>0&& !R.K_&&(R.B=F),E=Jy(E,2,f$L,void 0===SWi?2:4),E=g.N(E),a=E.next();!a.done;a=E.next())F=R.K,h=F.push,a=OQ(a.value),a=g.Tf(a,4),h.call(F,a)}; NHg=function(R){return isNaN(R.cryptoPeriodIndex)?g.Tf(R.initData):""+R.cryptoPeriodIndex}; BE=function(R,F,h){var a=h===void 0?{}:h;h=a.videoDuration===void 0?0:a.videoDuration;var J=a.ud===void 0?void 0:a.ud;a=a.MD===void 0?!1:a.MD;this.videoId=R;this.status=F;this.videoDuration=h;this.ud=J;this.MD=a}; HLm=function(R,F,h,a,J){this.videoId=R;this.fT=F;this.D=h;this.bytesDownloaded=a;this.B=J}; rt=function(R){this.B=R;this.offset=0}; YI=function(R){if(R.offset>=R.B.totalLength)throw Error();return IN(R.B,R.offset++)}; LPi=function(R,F){F=F===void 0?!1:F;var h=YI(R);if(h===1){F=-1;for(h=0;h<7;h++){var a=YI(R);F===-1&&a!==255&&(F=0);F>-1&&(F=F*256+a)}return F}a=128;for(var J=0;J<6&&a>h;J++)h=h*256+YI(R),a*=128;return F?h:h-a}; THT=function(R){try{var F=LPi(R,!0),h=LPi(R,!1);return{id:F,size:h}}catch(a){return{id:-1,size:-1}}}; yPn=function(R){for(var F=new rt(R),h=-1,a=0,J=0;!a||!J;){var M=THT(F),v=M.id;M=M.size;if(v<0)return;if(v===176){if(M!==2)return;a=F.Gd()}else if(v===186){if(M!==2)return;J=F.Gd()}v===374648427?h=F.Gd()+M:v!==408125543&&v!==174&&v!==224&&F.skip(M)}F=GJ(R,0,h);h=new DataView(F.buffer);h.setUint16(a,3840);h.setUint16(J,2160);a=new hl([F]);aN(a,R);return a}; q3i=function(R,F,h){var a=this;this.loader=R;this.policy=F;this.N=h;this.logger=new g.s3("dash");this.D=[];this.B=null;this.KI=-1;this.C=0;this.fI=NaN;this.oR=0;this.K=NaN;this.Z=this.Sl=0;this.Fo=-1;this.Oz=this.L=this.S=this.Uz=null;this.T$=this.IR=NaN;this.Y=this.aR=this.PG=this.HG=null;this.nI=!1;this.NQ=this.timestampOffset=0;this.rf={GP:function(){return a.D}}; if(this.policy.L){var J=this.N,M=this.policy.L;this.policy.T$&&R.dA("atv",{ap:this.policy.T$});this.Y=new MY(this.policy,J,function(v,I,w){sE(R,new BE(a.policy.L,2,{ud:new HLm(M,v,J.info,I,w)}))}); this.Y.Z.promise.then(function(v){a.Y=null;v===1?sE(R,new BE(a.policy.L,v)):a.loader.dA("offlineerr",{status:v.toString()})},function(v){var I=(v.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); v instanceof wt&&!v.B?(a.logger.info(function(){return"Assertion failed: "+I}),a.loader.dA("offlinenwerr",{em:I}),p8(a),sE(R,new BE(a.policy.L,4))):(a.logger.info(function(){return"Failed to write to disk: "+I}),a.loader.dA("dldbwerr",{em:I}),p8(a),sE(R,new BE(a.policy.L,4,{MD:!0})))})}}; fLO=function(R){return R.D.length?R.D[0]:null}; j_B=function(R,F){return R.D.some(function(h){return h.info.vG===F})}; m3m=function(R,F,h,a){a=a===void 0?0:a;if(R.L){var J=R.L.D+R.L.K;if(h.info.D>0)if(h.info.vG===R.L.vG&&h.info.D=0&&R.L.vG>=0&&!W$(R.L,h.info))throw new g.Pv("improper_continuation",R.L.KV(),h.info.KV());QkI(R.L,h.info)||kI(R,"d")}else if(h.info.D>0)throw new g.Pv("continuation_of_null",h.info.KV());R.L=h.info;R.N=h.info.B;if(h.info.D===0){if(R.B)if(!R.loader.isOffline()||R.policy.Qw)R.loader.dA("slice_not_fully_processed", {buffered:R.B.info.KV(),push:h.info.KV()});else throw new g.Pv("slice_not_fully_processed",R.B.info.KV(),h.info.KV());QA(R);R.Sl=a}else{if(R.Sl&&a&&R.Sl!==a)throw R=new g.Pv("lmt_mismatch",h.info.vG,R.Sl,a),R.level="WARNING",R;!h.info.B.RQ()&&R.S&&(a=h.info,J=R.S.IH,a.Y="updateWithEmsg",a.vG=J)}if(R.B){a=g.$b(R.B,h);if(!a)throw new g.Pv("failed_to_merge",R.B.info.KV(),h.info.KV());R.B=a}else R.B=h;a:{h=g.XI(R.B.info.B.info);if(R.B.info.type!==3){if(!R.B.info.N)break a;R.B.info.type===6?ZLL(R,F,R.B): bL2(R,R.B);R.B=null}for(;R.B;){a=R.B.D.totalLength;if(R.KI<=0&&R.C===0){var M=R.B.D,v=-1;J=-1;if(h){for(var I=0;I+80))break;if(r!==408125543)if(r===524531317)I=!0,B>=0&&(J=M.Gd()+B,w=!0);else{if(I&&(r===160||r===163)&&(v<0&&(v=E),w))break;r===163&&(v=Math.max(0,v),J=M.Gd()+B);if(r===160){v<0&&(J=v=M.Gd()+ B);break}M.skip(B)}}v<0&&(J=-1)}if(v<0)break;R.KI=v;R.C=J-v}if(R.KI>a)break;R.KI?(a=S3T(R,R.KI),a.N&&OL_(R,a),ZLL(R,F,a),$I(R,a),R.KI=0):R.C&&(a=S3T(R,R.C<0?Infinity:R.C),R.C-=a.D.totalLength,$I(R,a))}}R.B&&R.B.info.N&&($I(R,R.B),R.B=null)}; bL2=function(R,F){!F.info.B.RQ()&&F.info.D===0&&(g.XI(F.info.B.info)||F.info.B.info.K_())&&Fjn(F);if(F.info.type===1)try{OL_(R,F),ob7(R,F)}catch(J){g.y7(J);var h=Fv(F.info);h.hms="1";R.loader.handleError("fmt.unparseable",h||{},1)}h=F.info.B;h.oJ(F);R.Y&&s_L(R.Y,F);if(h.sG()&&R.policy.B)a:{R=R.loader.MQ;F=F.info.clipId;h=g.n7(h.info,R.Mt);if(F){var a=z4({itag:h.itag,lmt:R.Mt?0:h.lmt||0,xtags:h.xtags});if(R.Fo[a])break a;R.Fo[a]=F}R.IR.push(h)}}; IoI=function(R,F,h){if(R.D.length!==0&&(h||R.D.some(function(M){return M.info.L=xI(v)+I):F=R.getDuration()>=v.getDuration(),F=!F;F&&nb7(h)&&(F=R.Uz,An?(I=Wam(h),v=1/I,I=xI(R,I),F=xI(F)+v-I):F=F.getDuration()- R.getDuration(),F=1+F/h.info.duration,U92(g.QF(h),F))}else{v=!1;R.S||(Fjn(h),h.B&&(R.S=h.B,v=!0,J=h.info,M=h.B.IH,J.Y="updateWithEmsg",J.vG=M,J=h.B,J.k7&&(M=R.N.index,M.D=!J.k7,M.K="emsg"),J=h.info.B.info,M=g.QF(h),g.XI(J)?p$(M,1701671783):J.K_()&&L$([408125543],307544935,M)));a:if((J=N3(h,R.policy.gW))&&RZi(h))I=uvO(R,h),R.Z+=I,J-=I,R.oR+=J,R.K=R.policy.u1?R.K+J:NaN;else{if(R.policy.wO){if(M=w=R.loader.US(g.AP(h),1),R.K>=0&&h.info.type!==6){if(R.policy.u1&&isNaN(R.IR)){g.qN(new g.Pv("Missing duration while processing previous chunk", h.info.KV()));R.loader.isOffline()&&!R.policy.Qw||d3n(R,h,M);kI(R,"m");break a}a=w-R.K;var E=a-R.Z,B=h.info.vG,r=R.Oz?R.Oz.vG:-1,Y=R.T$,p=R.IR,k=R.policy.BR&&a>R.policy.BR,H=Math.abs(E)>10,T=Math.abs(R.K-M)<1E-7;if(Math.abs(E)>1E-4){R.NQ+=1;var Z=(I=R.S)==null?void 0:KQL(I);I={audio:""+ +R.rk(),sq:B.toFixed(),sliceStart:w,lastSq:r.toFixed(),lastSliceStart:Y,lastSliceDuration:p,totalDrift:(a*1E3).toFixed(),segDrift:(E*1E3).toFixed(),skipRewrite:""+ +(k||H)};if(Z==null?0:Z.length)I.adCpn=Z[0];R.loader.handleError("qoe.avsync", I);R.Fo=B}k||H||T||(M=R.K);I=uvO(R,h,w);J-=I;R.Z=a+I}}else M=isNaN(R.K)?h.info.startTime:R.K;d3n(R,h,M)&&(R.oR+=J,R.K=M+J,R.policy.u7&&R.NQ>=R.policy.u7&&(R.NQ=0,R.loader.aZ({resetForRewrites:"count"})))}R.Oz=h.info;R.IR=xb(h);h.K>=0&&(R.T$=h.K);if(v&&R.S){v=PlI(R,!0);hP(h.info,v);R.B&&hP(R.B.info,v);F=g.N(F);for(I=F.next();!I.done;I=F.next())I=I.value,J=void 0,R.policy.N&&I.vG!==((J=R.S)==null?void 0:J.IH)||hP(I,v);(h.info.N||R.B&&R.B.info.N)&&h.info.type!==6||(R.aR=v,R.policy.D?(F=zPB(R.S),R.loader.ZB(R.N, v,F)):(F=R.loader,F.MQ.isManifestless&&KPm(F,v,null,!!R.N.info.video)),R.policy.DG||tag(R))}}ob7(R,h);R.timestampOffset&&CWf(h,R.timestampOffset)}; $I=function(R,F){if(F.info.N){R.HG=F.info;if(R.S){var h=R.S,a=PlI(R,!1);h=zPB(h);R.loader.ZB(R.N,a,h);R.aR||R.policy.DG||tag(R);R.aR=null}QA(R)}R.Y&&s_L(R.Y,F);if(a=R.S6())if(a=g.$b(a,F,R.policy.xq,R.policy.lq)){R.D.pop();R.D.push(a);return}R.D.push(F)}; zPB=function(R){if(R.Iy()){var F=R.data["Stitched-Video-Id"]?R.data["Stitched-Video-Id"].split(",").slice(0,-1):[],h=KQL(R),a=[];if(R.data["Stitched-Video-Duration-Us"])for(var J=g.N(R.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),M=J.next();!M.done;M=J.next())a.push((Number(M.value)||0)/1E6);J=[];if(R.data["Stitched-Video-Start-Frame-Index"]){M=g.N(R.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var v=M.next();!v.done;v=M.next())J.push(Number(v.value)||0)}J=[]; if(R.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(M=g.N(R.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),v=M.next();!v.done;v=M.next())J.push((Number(v.value)||0)/1E6);R=new $37(F,h,a,J,g.tei(R),g.lXL(R))}else R=null;return R}; QA=function(R){R.B=null;R.KI=-1;R.C=0;R.S=null;R.fI=NaN;R.oR=0;R.aR=null}; kI=function(R,F){F={rst4disc:F,cd:R.Z.toFixed(3),sq:R.Oz?R.Oz.vG:-1};R.K=NaN;R.Z=0;R.Fo=-1;R.Oz=null;R.T$=NaN;R.IR=NaN;R.PG=null;R.loader.dA("mdstm",F)}; ob7=function(R,F){if(R.isDrm()){if(F.info.B.info.K_()){var h=new QB(g.QF(F));if(AD(h,[408125543,374648427,174,28032,25152,20533,18402])){var a=H$(h,!0);h=a!==16?null:f$(h,a)}else h=null;a="webm"}else F.info.C=klI(g.QF(F)),h=Q_T(F.info.C),a="cenc";h&&h.length&&(h=new EE(h,a),R.policy.uf&&g.XI(F.info.B.info)&&(a=hDT(g.QF(F)))&&(h.D=a),h.K_=F.info.B.info.K_(),F.B&&F.B.cryptoPeriodIndex&&(h.cryptoPeriodIndex=F.B.cryptoPeriodIndex),F.B&&F.B.D&&(h.B=F.B.D),R.loader.Or(h))}}; tag=function(R){var F=R.S,h=PZi(F);h&&(h.startSecs+=R.fI,R.loader.CC(R.N,h,F.IH,F.Iy()))}; PlI=function(R,F){var h,a=R.S;if(h=PZi(a))h.startSecs+=R.fI;return new VZ(a.IH,R.fI,F?a.VD:R.oR,a.ingestionTime,"sq/"+a.IH,void 0,void 0,F,h)}; d3n=function(R,F,h){if(!UQa(F,h))return F=Fv(F.info),F.smst="1",R.loader.handleError("fmt.unparseable",F||{},1),!1;isNaN(R.fI)&&(R.fI=h);return!0}; uvO=function(R,F,h){var a=0;if(F.info.B.info.K_()&&!RZi(F))return 0;if(R.Uz&&!R.rk()){var J=0;h&&g.XI(F.info.B.info)?J=h-R.K:F.info.B.info.K_()&&(J=R.Z);var M=F.info.vG;h=N3(F,R.policy.gW);var v=R.Uz;var I=v.Fo;v=v.Z;var w=Math.abs(v-J)>.02;if((M===I||M>I&&M>R.Fo)&&w){a=Math.max(.95,Math.min(1.05,(h-(v-J))/h));if(g.XI(F.info.B.info))U92(g.QF(F),a);else if(F.info.B.info.K_()&&(M=J-v,!g.XI(F.info.B.info)&&(F.info.B.info.K_(),a=new QB(g.QF(F)),I=F.N?a:new QB(new DataView(F.info.B.B.buffer)),N3(F,!0)))){var E= M*1E3,B=ZQ(I);I=a.pos;a.pos=0;if(a.B.getUint8(a.pos)===160||b8(a))if(NG(a,160))if(H$(a,!0),NG(a,155)){if(M=a.pos,w=H$(a,!0),a.pos=M,E=E*1E9/B,B=T4(a),E=B+Math.max(-B*.7,Math.min(B,E)),E=Math.sign(E)*Math.floor(Math.abs(E)),!(Math.ceil(Math.log(E)/Math.log(2)/8)>w)){a.pos=M+1;for(M=w-1;M>=0;M--)a.B.setUint8(a.pos+M,E&255),E>>>=8;a.pos=I}}else a.pos=I;else a.pos=I;else a.pos=I}a=N3(F,R.policy.gW);a=h-a}a&&F.info.B.info.K_()&&R.loader.dA("webmDurationAdjustment",{durationAdjustment:a,videoDrift:J+a, audioDrift:v})}return a}; nb7=function(R){return R.info.B.RQ()&&R.info.vG===R.info.B.index.Ff()}; xI=function(R,F){F=(F=F===void 0?0:F)?Math.round(R.timestampOffset*F)/F:R.timestampOffset;R.N.L&&F&&(F+=R.N.L.B);return F+R.getDuration()}; lLi=function(R,F){F<0||(R.D.forEach(function(h){CWf(h,F)}),R.timestampOffset=F)}; Pg=function(R,F,h,a,J){vd.call(this,h,J);var M=this;this.policy=R;this.formatId=F;this.z2=a;this.lastError=null;this.YX=function(){M.RR()||(M.z2.Pe.has(M.formatId)?(M.isComplete()||M.B.start(),bv(M.z2,M.formatId)&&M.OH(2),M.z2.VV(M.formatId)&&(rDi(M.z2,M.formatId)?M.wf(4):(M.lastError="net.closed",M.wf(5)))):(M.lastError="player.exception",M.wf(5)))}; this.B=new g.DY(function(){M.isComplete()||(M.lastError="net.timeout",M.wf(5))},1E3); this.B.start();w$I(this.z2,this.formatId,this.YX);g.T3(this.YX)}; NY=function(R,F,h,a){g.d.call(this);var J=this;this.loader=R;this.policy=F;this.B=h;this.timing=a;this.logger=new g.s3("dash");this.K=[];this.Uz=[];this.D=this.XW=null;this.PG=!1;this.Sl=this.NQ=0;this.S=-1;this.KI=!1;this.fI=-1;this.Oz=null;this.aR=NaN;this.oR=[];this.rf={Yh:function(){return J.L}, E8$:function(){return J.K}, qXI:function(){return J.Z}}; this.L=new q3i(R,F,h);this.policy.B&&(this.Z=new uD(this.L,this.loader.getManifest(),this.policy,function(M){J.policy.Qh&&J.dA("buftl",M)})); this.policy.YH&&(this.C=new ar(this));this.CI=h.info.CI;this.Y=this.policy.aR?!1:h.eW();this.isManifestless=h.eW();this.N=this.Y;g.z(this,this.Oz)}; HE=function(R,F,h){h=h===void 0?!1:h;F&&An&&lLi(R.L,F.Vv());if(!h){var a;(a=R.Z)==null||MEm(a)}R.XW=F;(F=R.Z)!=null&&(F.XW=R.XW)}; L8=function(R){var F=R.XW&&R.XW.Hk();if(R.policy.pS){if((R=R.Z)==null)R=void 0;else{var h;R=(h=R.K)==null?void 0:h.info}return R||null}return F}; D3T=function(R){for(var F={},h=0;h4&&R.Uz.shift()}; Va7=function(R,F){if(F.Xc()){var h=F.yc();h=g.N(h);for(var a=h.next();!a.done;a=h.next())a=a.value,R.policy.K&&F instanceof Pg&&R.dA("omblss",{s:a.info.KV()}),yA(R,F.info.Vt,a,F.F0())}}; yA=function(R,F,h,a){a=a===void 0?0:a;isNaN(R.aR)||(R.dA("aswm",{sq:F[0].vG,id:F[0].B.info.itag,xtag:F[0].B.info.B,ep:Date.now()-R.aR}),R.aR=NaN);switch(h.info.type){case 1:case 2:U3_(R,h);break;case 4:var J=h.info.B,M=J.Sx(h),v;((v=R.D)==null?0:v.type===4)&&TeI(h.info,R.D)&&(R.D=J.zD(R.D).pop());h=g.N(M);for(J=h.next();!J.done;J=h.next())yA(R,F,J.value,a);break;case 3:h.info.B.info.video?(J=R.timing,J.fI||(J.fI=(0,g.NU)(),g.z7("fvb_r",J.fI,J.B))):(J=R.timing,J.S||(J.S=(0,g.NU)(),g.z7("fab_r",J.S, J.B)));m3m(R.L,F,h,a);R.policy.B&&ClT(R);break;case 6:m3m(R.L,F,h,a),R.D=h.info}}; U3_=function(R,F){if(F.info.type===1)if(F.info.B.info.video){var h=R.timing;h.Sl||(h.Sl=(0,g.NU)(),g.z7("vis_r",h.Sl,h.B))}else h=R.timing,h.Z||(h.Z=(0,g.NU)(),g.z7("ais_r",h.Z,h.B));bL2(R.L,F);R=R.loader;R.videoTrack.B.sG()&&R.audioTrack.B.sG()&&R.policy.B&&!R.MQ.Mt&&(F=R.audioTrack.getDuration(),h=R.videoTrack.getDuration(),Math.abs(F-h)>1&&R.dA("trBug",{af:""+g.n7(R.audioTrack.B.info,!1),vf:""+g.n7(R.videoTrack.B.info,!1),a:""+F,v:""+h}))}; cg=function(R){return fLO(R.L)}; ClT=function(R){R.K.length?R.D=g.pg(g.pg(R.K).info.Vt):R.L.D.length?R.D=R.L.S6().info:R.D=L8(R)}; qY=function(R,F){var h={D1:[],JI:[]},a;if((R=R.Z)==null)R=void 0;else{JdI(R,R.D1,"og");Fm2(R,F);JdI(R,R.D1,"trim");var J=aoB(R);F=J.D1;J=J.kY;for(var M=[],v=0;v0){var Y=Vp(r,w);Y>=0&&(B=(r.end(Y)-w+.1)*1E3)}M.push({formatId:g.n7(I.info.B.info,R.MQ.Mt), jK:I.info.jK,sequenceNumber:I.info.vG+R.L,lJ:E,YE:I.info.K,wg:B})}R={D1:F,JI:M}}return(a=R)!=null?a:h}; tz=function(R,F,h){h=h===void 0?!1:h;if(R.XW){var a=R.XW.Ca(),J=C7(a,F),M=NaN,v=L8(R);v&&(M=C7(a,v.B.index.getStartTime(v.vG)));if(J===M&&R.D&&R.D.K&&cPI(f8(R),0))return F}R=WPg(R,F,h);return R>=0?R:NaN}; DW=function(R,F,h){R.B.sG();var a=WPg(R,F);if(a>=0)return a;var J;(J=R.Z)==null||hxm(J,F,h);a=Math;J=a.min;var M=R.L;if(M.Y)if(M=M.Y,M.n_&&M.n_.type===3)M=M.n_.startTime;else if(M.K>0){var v=M.B.index;v=g.Ph(v.offsets.subarray(0,v.count),M.K*M.chunkSize);M=M.B.index.getStartTime(v>=0?v:Math.max(0,-v-2))}else M=0;else M=Infinity;F=J.call(a,F,M);R.D=R.policy.aR?null:R.B.lx(F).Vt[0];jU(R)&&(R.policy.Jx&&(h==null?void 0:h.seekSource)===60||R.XW&&R.XW.abort(),R.policy.NN&&(h=R.Z)!=null&&(h.K=void 0)); R.Sl=0;return R.D?R.D.startTime:F}; gni=function(R){R.Y=!0;R.N=!0;R.S=-1;DW(R,Infinity)}; ZB=function(R){for(var F=0,h=g.N(R.K),a=h.next();!a.done;a=h.next())F+=qSm(a.value.info);return F+=XIi(R.L)}; SU=function(R,F){F=F===void 0?!1:F;var h=R.loader.getCurrentTime(),a=R.L.S6(),J=(a==null?void 0:a.info.S)||0;if((a==null?0:a.info.B.eW())&&!a.info.N)if(R.policy.Vw)J=a.info.L;else if(R.policy.yh){var M=a.info;J=M.range?M.S:Math.min(M.startTime+Math.min(M.duration*M.D/M.B.info.CI,M.duration)+(M.range?M.Z:Math.min(M.duration,M.duration*M.K/M.B.info.CI)),M.startTime+M.duration)}if(!R.XW)return R.policy.B&&F&&!isNaN(h)&&a?J-h:0;if((M=L8(R))&&b6(M))return M.S;var v=R.XW.Ca(!0);if(F&&a)return M=0,R.policy.B&& (M=Ry(v,J+.02)),M+J-h;F=Ry(v,h);R.policy.oN&&M&&(a=Vp(v,h),v=Vp(v,M.L-.02),a===v&&(h=M.S-h,R.policy.K&&h>F+.02&&R.dA("abh",{bh:F,bhtls:h}),F=Math.max(F,h)));return F}; RFO=function(R){var F=L8(R);return F?F.S-R.loader.getCurrentTime():0}; Fo7=function(R,F){if(R.K.length){if(R.K[0].info.Vt[0].startTime<=F)return;KY(R)}for(var h=R.L,a=h.D.length-1;a>=0;a--)h.D[a].info.startTime>F&&h.D.pop();ClT(R);R.D&&F=0;v--){var I=J.D[v];I.info.vG>=F&&(J.D.pop(),J.K-=N3(I,J.policy.gW),M=I.info)}M&&(J.L=J.D.length>0?J.D[J.D.length-1].info:J.PG,J.D.length!==0||J.L||kI(J,"r"));J.loader.dA("mdstm",{rollbk:1,itag:M?M.B.info.itag:"",popped:M?M.vG:-1,sq:F,lastslc:J.L?J.L.vG:-1,lastfraget:J.K.toFixed(3)});if(R.policy.B)return R.D=null,!0;a>h?DW(R,a):R.D=R.B.F8(F-1,!1).Vt[0]}catch(w){return F=YK(w),F.details.reason="rollbkerr", R.loader.handleError(F.errorCode,F.details,F.severity),!1}return!0}; or=function(R,F){var h;for(h=0;h0?h||F.vG>=R.fI:h}; Xc=function(R){var F;return jU(R)||b6((F=R.L.S6())==null?void 0:F.info)}; f8=function(R){var F=[],h=L8(R);h&&F.push(h);F=g.j6(F,R.L.W0());h=g.N(R.K);for(var a=h.next();!a.done;a=h.next()){a=a.value;for(var J=g.N(a.info.Vt),M=J.next(),v={};!M.done;v={R7:void 0},M=J.next())v.R7=M.value,a.LW&&(F=g.TR(F,function(I){return function(w){return!TeI(w,I.R7)}}(v))),(c$(v.R7)||v.R7.type===4)&&F.push(v.R7)}R.D&&!pzi(R.D,g.pg(F),R.D.B.RQ())&&F.push(R.D); return F}; cPI=function(R,F){if(!R.length)return!1;for(F+=1;F=F){F=M;break a}}F=J}return F<0?NaN:cPI(R,h?F:0)?R[F].startTime:NaN}; eU=function(R){return!(!R.D||R.D.B===R.B)}; hFn=function(R){return eU(R)&&R.B.sG()&&R.D.B.info.CIF&&R.S1080&&!R.Oc&&(R.Sl=36700160,R.HG=5242880,R.NQ=Math.max(4194304,R.NQ),R.Oc=!0);F.video.qualityOrdinal>2160&&!R.Nv&&(R.Sl=104857600,R.CI=13107200,R.Nv=!0);g.RI(R.LI.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?F.isEncrypted()&&g.db()&&g.nR("samsung")&&(g.nR("kant")||g.nR("muse"))&&(R.CI=g.RI(R.LI.experiments,"html5_samsung_kant_limit_max_bitrate")):F.isEncrypted()&&g.db()&&g.nR("kant")&&(R.CI=1310720);R.RZ!==0&&F.isEncrypted()&& (R.CI=R.RZ);R.Oa!==0&&F.isEncrypted()&&h&&(R.CI=R.Oa);F.CI&&(R.Jn=Math.max(R.CB,Math.min(R.NQ,5*F.CI)))}; AU=function(R){return R.B&&R.pP}; zz=function(R){return R.B&&R.EJ&&R.playbackStartPolicy}; K8=function(R,F,h,a){R.EJ&&(R.playbackStartPolicy=F,R.d2=h,R.a5=a)}; PE=function(R,F,h){h=h===void 0?0:h;return g.RI(R.LI.experiments,F)||h}; Yk2=function(R){var F=R===void 0?{}:R;R=F.f$;var h=F.E6;var a=F.OG;var J=F.Ff;F=F.Gp;this.f$=R;this.E6=h;this.OG=a;this.Ff=J;this.Gp=F}; Q9I=function(R,F){if(F<0)return!0;var h=R.Ff();return F0)return 2;if(F<0)return 1;h=R.Ff();return F(0,g.NU)()?0:1}; l6=function(R,F,h,a,J,M,v,I,w,E,B,r,Y,p){p=p===void 0?null:p;g.d.call(this);var k=this;this.loader=R;this.policy=F;this.videoTrack=h;this.audioTrack=a;this.L=J;this.B=M;this.timing=v;this.N=I;this.schedule=w;this.MQ=E;this.K=B;this.oR=r;this.iZ=Y;this.Rp=p;this.aR=!1;this.E9="";this.P9=null;this.GV=NaN;this.KI=!1;this.D=null;this.kZ=this.C=NaN;this.LP=this.S=0;this.logger=new g.s3("dash");this.rf={b3:function(H,T){return k.b3(H,T)}}; this.policy.vY>0&&(this.E9=g.sY(this.policy.vY));this.policy.N3&&(this.Z=new tn(this.loader,this.policy,this.schedule),g.z(this,this.Z))}; $MI=function(R,F,h){var a=F.D?F.D.B.UP:F.B.UP;var J=R.L,M;(M=!R.policy.K3)||(M=zE(a.B)===zE(a.D));M?a=!1:(J=XG(J,zE(a.D)),M=6E4*Math.pow(J.L,1.6),(0,g.NU)()=J.L?(J.dA("sdai",{haltrq:M+1,est:J.L}),a=!1):a=J.D!==2;if(!a||!P$(F.D?F.D.B.UP:F.B.UP,R.policy,R.L,R.loader.PA())||R.loader.isSuspended&&(!o6(R.schedule)||R.loader.fm))return!1;if(R.policy.L&&D9>=5)return g.VI(R.loader.LF),!1;if(R.MQ.isManifestless){if(F.K.length>0&&F.D&&F.D.vG===-1||F.K.length>=R.policy.CP||!R.policy.Bq&&F.K.length>0&&!R.policy.Y.E6)return!1;if(F.Y)return!R.MQ.isLive|| !isNaN(R.GV)}if(g9f(F))return R.logger.debug("Pending request with server-selectable format found"),!1;if(!F.D){if(!F.B.sG())return!1;DW(F,R.loader.getCurrentTime())}if(cg(F)&&(F.S6()!==cg(F)||R.loader.isSuspended))return!1;J=(a=R.policy.Q9)&&!F.K.length&&SU(F,!0)=R.policy.oO)return!1;a=F.D;if(!a)return!0;a.type===4&&a.B.sG()&&(F.D=g.pg(a.B.zD(a)),a= F.D);if(!a.k7()&&!a.B.yE(a))return!1;M=R.MQ.Xd||R.MQ.L;if(R.MQ.isManifestless&&M){M=F.B.index.Ff();var v=h.B.index.Ff();M=Math.min(M,v);if(F.B.index.Zh()>0&&M>0&&a.vG>=M)return F.fI=M,h.fI=M,!1}if(a.B.info.audio&&a.type===4||a.k7())return!1;M=!F.N&&!h.N;if(J=!J)J=a.S,J=!!(h.D&&!b6(h.D)&&h.D.SAci(R,F)?(Aci(R,F),!1):(R=F.XW)&&R.isLocked()?!1:!0}; Aci=function(R,F){var h=R.B;h=h.B?h.B.vJ:null;if(R.policy.Uz&&h)return h.startSecs+h.Rz+15;F=lD(R.loader,F);R.policy.iY>0&&(h=((0,g.NU)()-R.loader.nW)/1E3,F=Math.min(F,R.policy.iY+R.policy.n2*h));F=R.loader.getCurrentTime()+F;return R.policy.Mv&&(h=xMB(R.loader)+R.policy.Mv,h=0||F.UP.nm("defrag")==="1"||F.UP.nm("otf")==="1"){F=null;break a}J=DQ(0,4096)}J=new a_([new Uf(5,a.B,J,"createProbeRequestInfo"+a.Y,a.vG)],F.D);J.nB=h;J.B=F.B;F=J}F&&VA(R,F)}}; VA=function(R,F){R.loader.XQ(F);var h=qSm(F),a=R.loader.zg();h={LV:R.schedule,EC:h,Ro:VIn(R.N,h),Au:C$(F.Vt[0]),w0:Ko(F.UP.B),rq:R.policy.K,PO:function(v,I){R.loader.LU(v,I)}}; if(R.schedule.D.S){var J,M;h.gY=(((J=R.videoTrack.B)==null?void 0:J.info.CI)||0)+(((M=R.audioTrack.B)==null?void 0:M.info.CI)||0)}R.P9&&(h.vG=F.Vt[0].vG,h.GV=F.GV,h.P9=R.P9);a={HY:fKa(F,R.loader.getCurrentTime()),Qf:R.policy.PJ&&M3(F)&&F.Vt[0].B.info.video?iL7(R.K):void 0,nU:R.policy.Uz,poToken:R.loader.TK(),hx:R.loader.NO(),E9:R.E9,kZ:isNaN(R.kZ)?null:R.kZ,Rp:R.Rp,iZ:R.iZ,LP:R.LP,TD:a};return new zH(R.policy,F,h,R.L,function(v,I){try{a:{var w=v.info.Vt[0].B,E=w.info.video?R.videoTrack:R.audioTrack; if(!(v.state>=2)||v.isComplete()||v.Mh()||!(!R.loader.Yo||R.loader.isSuspended||SU(E)>3)){var B=koL(v,R.policy,R.L);B===1&&(R.KI=!0);Npn(R,v,B);if(v.isComplete()||v.RR()&&I<3){if(R.policy.K){var r=v.timing.Lp();r.rst=v.state;r.strm=v.xhr.jT();r.cncl=v.xhr&&v.Oi.L?1:0;R.loader.dA("rqs",r)}v.ph&&R.loader.dA("sbwe3",{},!0)}if(!R.RR()&&v.state>=2){Sfn(R.timing,v,w);var Y=R.loader;R.kZ&&v.yp&&Y&&(R.kZ=NaN,R.loader.bC(v.yp),R.loader.Kg(),R.loader.dA("cabrUtcSeek",{mediaTimeSeconds:v.yp}));v.BU&&R.kZ&&v.BU&& !v.BU.action&&(R.loader.ER(R.kZ),R.kZ=NaN,R.loader.dA("cabrUtcSeekFallback",{targetUtcTimeSeconds:R.kZ}));v.tO&&R.loader.Rh(v.tO);R.policy.Ma&&(R.LP=v.LP);if(v.state===3){or(E,v);M3(v.info)&&C8(R,E,w,!0);if(R.D){var p=v.info.UC();p&&R.D.Ru(v.info.Vt[0].vG,w.info.id,p)}R.loader.Of()}else if(v.isComplete()&&v.info.Vt[0].type===5){if(v.state!==4)v.qC()&&R.loader.handleError(v.JG(),v.IZ());else{var k=(v.info.Vt[0].B.info.video?R.videoTrack:R.audioTrack).K[0]||null;k&&k instanceof zH&&k.Mh()&&k.eT()}v.dispose()}else{v.qC()|| HG_(R,v);var H;((H=v.pF)==null?0:H.itagDenylist)&&R.loader.t6(v.pF.itagDenylist);if(v.state===4)cE(R,v),R.B&&eCB(R.B,v.info,R.D);else if(R.policy.HE&&v.Xc()&&!v.isComplete()&&!cE(R,v)&&!v.qC())break a;v.qC()&&(Lo2(R,v),isNaN(R.kZ)||(R.loader.ER(R.kZ),R.kZ=NaN));R.policy.It&&!v.isComplete()?WE(R.loader):R.loader.Of();var T=Q62(v,R.policy,R.L);Npn(R,v,T)}}}}}catch(Z){I=R.aR?1:0,R.aR=!0,v=re(I),I=YK(Z,I),R.loader.handleError(I.errorCode,I.details,I.severity),v||R.loader.M2()}},a)}; HG_=function(R,F){if(F.wh&&F.state>=2&&F.state!==3){var h=F.xhr.getResponseHeader("X-Response-Itag");if(h){R.logger.debug(function(){return"Applying streamer-selected format "+h}); var a=ILa(R.K,h),J=F.info.K;J&&(J-=a.w_(),a.K=!0,F.info.Vt[0].B.K=!1,G42(F,a.rX(J)),RQ(R.loader,R.videoTrack,a),GoO(R.videoTrack,a),R.loader.r9(a.info.video.quality),(J=F.F0())&&a.info.lastModified&&a.info.lastModified!==+J&&or(R.videoTrack,F))}else F.wh=!1}}; Lo2=function(R,F){var h=F.info.Vt[0].B,a=F.JG();if(Ko(h.UP.B)){var J=g.yU(F.pK(),3);R.loader.dA("dldbrerr",{em:J||"none"})}J=F.info.Vt[0].vG;var M=dJ(R.B,F.info.Vt[0].L,J);a==="net.badstatus"&&(R.S+=1);if(F.canRetry()&&TpI(R.loader)){if(!(F.info.UP.K>=R.policy.KQ&&R.D&&F.info.isDecorated()&&a==="net.badstatus"&&R.D.oA(M,J))){J=(h.info.video&&h.UP.K>1||F.Xt===410||F.Xt===500||F.Xt===503)&&!(D8(R.K.N).size>0)&&!Ko(h.UP.B);M=F.IZ();var v=h.info.video?R.videoTrack:R.audioTrack;J&&(M.stun="1");R.loader.handleError(a, M);R.RR()||(J&&(R.logger.debug(function(){return"Stunning format "+h.info.id}),Rr(R.K,h)),or(v,F),R.loader.Of())}}else v=1,R.D&&F.info.isDecorated()&&a==="net.badstatus"&&R.D.oA(M,J)&&(v=0),R.MQ.isLive&&F.JG()==="net.badstatus"&&R.S<=R.policy.FO*2?(Ovn(R.MQ),R.MQ.Xd||R.MQ.isPremiere?CY(R.loader,0,{RT:"badStatusWorkaround"}):R.MQ.L?CY(R.loader,R.MQ.Uz,{RT:"badStatusWorkaround", US:!0}):FD(R.loader)):R.loader.handleError(a,F.IZ(),v)}; cE=function(R,F){if(R.policy.useUmp&&F.RR())return!1;try{var h=F.info.Vt[0].B,a=h.info.video?R.videoTrack:R.audioTrack;if(R.MQ.isManifestless&&a){R.S=0;a.Y&&(F.RR(),F.isComplete()||F.Xc(),a.Y=!1);F.Rq()&&R.loader.Lg.TT(1,F.Rq());var J=F.Zh(),M=F.Bi();ll(R.MQ,J,M)}if(F.info.Au()&&!JP(F.info))for(var v=g.N(F.yc()),I=v.next();!I.done;I=v.next())U3_(a,I.value);for(R.loader.getCurrentTime();a.K.length&&a.K[0].state===4;){var w=a.K.shift();Va7(a,w);a.NQ=w.xI()}a.K.length&&Va7(a,a.K[0]);var E=!!cg(a);E&& F instanceof Pg&&(h.info.rk()?T$I(R.timing):LAi(R.timing));return E}catch(B){F=F.IZ();F.origin="hrhs";a:{R=R.loader;h=B;if(h instanceof Error){F.msg||(F.msg=""+h.message);F.name||(F.name=""+h.name);if(h instanceof g.Pv&&h.args)for(a=g.N(Object.entries(h.args)),J=a.next();!J.done;J=a.next())M=g.N(J.value),J=M.next().value,M=M.next().value,F["arg"+J]=""+M;g.qN(h);if(h.level==="WARNING"){R.BG.aZ(F);break a}}R.handleError("fmt.unplayable",F,1)}return!1}}; ycL=function(R){var F=R.videoTrack.B.index;R.P9=new Yk2({f$:R.policy.f$,E6:R.policy.Y.E6,OG:F.KA(),Ff:function(){return F.Ff()}, Gp:function(){return F.Gp()}})}; C8=function(R,F,h,a){if(!(h.sG()||h.BS()||h.K||!P$(h.UP,R.policy,R.L,R.loader.PA())||h.info.Qt==="f"||R.policy.B)){if(a){a=R.N;var J=h.info;a=Ub2(a,J.video?a.policy.A7:a.policy.zd,J.CI)}else a=0;a=h.rX(a);R=VA(R,a);JP(a)&&Tz(F,R);h.K=!0}}; hg=function(R,F,h,a,J,M,v,I){g.d.call(this);var w=this;this.loader=R;this.uq=F;this.videoTrack=h;this.audioTrack=a;this.MQ=J;this.C=M;this.isAudioOnly=v;this.Z=I;this.D=JL;this.KI=!1;this.logger=new g.s3("sabr");this.Y=this.aR=this.oR=!1;this.videoInfos=this.S=this.C.videoInfos;this.K=this.Uz=this.C.B;this.B=new tU(F,M,function(E,B){w.loader.dA(E,B)}); this.isAudioOnly&&qkL(this,this.MQ.B["0"])}; fUI=function(R,F){var h=[];F=g.N(F);for(var a=F.next();!a.done;a=F.next())h.push(g.n7(a.value,R.MQ.Mt));return h}; qkL=function(R,F,h){F!==R.L&&(R.L&&(R.KI=!0),R.L=F,R.Tr(F,R.videoTrack,h))}; Sk_=function(R,F){R.logger.debug("setConstraint: "+qR(F));AU(R.uq)&&(R.aR=F.reason==="m"||F.reason==="l"?!0:!1);F.reason==="m"?F.isLocked()&&j67(R,F.B):ZGi(R,F)?bGg(R,F.D,F.B):R.videoInfos=R.S;R.D=F}; ZGi=function(R,F){return R.uq.bN&&F.reason==="b"||R.uq.Lm&&F.reason==="l"||R.uq.mM?!1:R.uq.jR?!0:F.reason==="l"||F.reason==="b"||F.reason==="o"}; OG7=function(R,F){return F.isLocked()&&R.B.D||R.D===void 0?!1:F.equals(R.D)}; mMf=function(R,F){var h,a=(h=R.L)==null?void 0:h.info.video.qualityOrdinal;return R.KI?!0:R.L?F!==a?!0:!R.B.D||R.uq.XS&&R.B.B===R.L.info.itag?!1:!0:!1}; j67=function(R,F){var h=R.B.B;if(h){R.videoInfos=R.S;var a=g.QL(R.videoInfos,function(J){return J.id===h}); a&&a.video.qualityOrdinal===F?R.videoInfos=[a]:(a=R.videoInfos.map(function(J){return J.id}),R.loader.dA("sabrpf",{pfid:""+h, vfids:""+a.join(".")}),bGg(R,F,F),Vv(R.B,""))}else bGg(R,F,F)}; bGg=function(R,F,h){R.videoInfos=R.S;R.videoInfos=g.TR(R.videoInfos,function(a){return a.video.qualityOrdinal>=F&&a.video.qualityOrdinal<=h})}; o9n=function(R,F,h){if(R.Z){var a=g.TR(R.K,function(J){return J.id===R.Z}); return aQ(a,h).includes(F)}a=g.TR(R.K,function(J){var M;return!((M=J.jw)==null||!M.isDefault)}); return a.length>0?aQ(a,h).includes(F):aQ(R.K,h).includes(F)}; aQ=function(R,F){return R.map(function(h){return z4(g.n7(h,F))})}; XyB=function(R){var F;if((F=R.D)==null?0:F.isLocked())return R.videoInfos;var h=D8(R.B);F=g.TR(R.videoInfos,function(a){return a.CI>R.uq.CI?!1:!h.has(a.id)}); KAa(R.B)&&(F=g.TR(F,function(a){return a.video.width<=854&&a.video.height<=480})); return F}; n9m=function(R,F,h){var a=R.MQ,J=R.BG.getVideoData(),M=R.g1,v=hC7({LI:J.W(),BG:R.BG,Ee:R.Ee,uq:R.uq,Hm:R.Hm,m2:R.m2,VM:R.VM,DT:R.DT,kT:R.kT,isPrefetch:R.isPrefetch,uA:R.uA,sabrLicenseConstraint:J.sabrLicenseConstraint,e3:R.e3,xp:R.xp,Ev:R.Ev,ih:R.ih,Kq:!!M,authorizedFormats:J.authorizedFormats}),I=x4(J,R.TD,R.nextRequestPolicy,R.cN,R.o7,R.uC,R.UB);h&&F&&(h=I.xn?I.xn.map(function(r){return r.type}):[],F("sabr",{stmctxt:h.join("_"), unsntctxt:I.hE?I.hE.join("_"):""}));F=R.PQ;h=R.Y9;if(h===void 0&&F===void 0){var w;h=eFB(a.Mt,(w=R.yU)==null?void 0:w.video);var E;F=eFB(a.Mt,(E=R.yU)==null?void 0:E.audio)}if(J.Rp)var B=J.Rp;J={CG:v,JI:R.JI,PQ:F,Y9:h,g1:M,videoPlaybackUstreamerConfig:B,QB:I};R.wT&&(J.wT=R.wT);J.D1=R.D1;J.jW=a.IR;return J}; eFB=function(R,F){return F?[g.n7(F.info,R)]:[]}; Jg=function(R,F,h){var a=this;this.requestType=R;this.UP=F;this.fO=h;this.D=null;this.rf={jOb:function(){var J;return(J=a.data)==null?void 0:J.isPrefetch}, o7:function(){var J;return(J=a.data)==null?void 0:J.o7}}}; ADg=function(R,F,h){F=u8(R.UP,uUa(R,F,h),F);R.b7()&&F.set("probe","1");return F}; uUa=function(R,F,h){R.nB===void 0&&(R.nB=R.UP.nB(F,h));return R.nB}; dM_=function(R){var F,h;return((F=R.B)==null?void 0:(h=F.CG)==null?void 0:h.JH)||0}; Poi=function(R){var F,h;return!!((F=R.B)==null?0:(h=F.CG)==null?0:h.e3)}; zFf=function(R){var F={},h=[],a=[];if(!R.data)return F;for(var J=0;J=0&&(F in R.B||(R.B[F]=new tDO),R.B[F].bb(h,a))}; Cof=function(R,F,h,a,J){var M=(0,g.NU)(),v=J?J(F):void 0,I;J=(I=v==null?void 0:v.z8)!=null?I:1;if(J!==0){var w;I=(w=v==null?void 0:v.profile)!=null?w:h;UMm(R,I,M-a,J)}return F}; cci=function(R,F,h,a,J){if(F&&typeof F==="object"){var M=function(v){return Cof(R,v,h,a,J)}; if(LO(F))return F.then(M);if(Hl(F))return jI(F,M)}return Cof(R,F,h,a,J)}; Woi=function(){}; vH=function(R,F){this.B=R;this.cipher=this.B.exports.AES128CTRCipher_create(F.byteOffset)}; hLi=function(R,F){return ba(RL_,function(){var h=this;return function J(){var M,v,I;return n_(J,function(w){switch(w.D){case 1:g.L_(w,2);if(!h.L)throw"wasm.ps.ns";M=R;v=dL;return Af(w,SI(FMm(h,F)),4);case 4:I=v(w.B);if(!I)throw"wasm.ps.um";try{return w.return(new WebAssembly.Instance(I,M))}catch(E){}return Af(w,SI(WebAssembly.instantiate(I,M)),5);case 5:return w.return(w.B);case 2:g.SB(w),g.Om(w,0)}})}()})}; a9L=function(R,F){R.B||(R.B=jI(qb(function(){return fetch(F)}),function(h){return h.arrayBuffer()}),ZV(R.B,function(h){R.B=void 0; throw"wasm.ps.f: "+h;}))}; FMm=function(R,F){if(R.D)return R.D;R.D=JJT(R,F);ZV(R.D,function(h){R.D=void 0;throw"wasm.ps.c: "+h;}); return R.D}; JJT=function(R,F){return ba(R,function(){var h=this;return function J(){var M,v,I,w,E,B,r,Y,p,k,H,T,Z,b;return n_(J,function(O){switch(O.D){case 1:g.L_(O,2);M=[];v=window.ywc;if(!v){O.G$(4);break}I=v[F];if(!I){O.G$(4);break}if(I.mod)return O.return(I.mod);if(!I.modP){O.G$(6);break}g.Hi(O,7);w=dL;return Af(O,SI(I.modP),9);case 9:return O.return(w(O.B));case 7:g.f_(O),M.unshift("pcm");case 6:if(I.bin){h.B=Ta(I.bin);O.G$(4);break}if(!I.binP){O.G$(4);break}g.Hi(O,12);E=Nb;B=Ta;r=dL;return Af(O,SI(I.binP), 14);case 14:h.B=B.call(E,r(O.B));g.yn(O,4);break;case 12:g.f_(O),h.B=void 0,M.unshift("pfb");case 4:if(!h.B){O.G$(15);break}g.Hi(O,16);Y=dL;return Af(O,SI(h.B),18);case 18:p=Y(O.B);if(h.K)try{return O.return(new WebAssembly.Module(p))}catch(n){h.K=!1,M.unshift("f0cs")}k=dL;return Af(O,SI(WebAssembly.compile(p)),19);case 19:return O.return(k(O.B));case 16:g.f_(O),h.B=void 0,M.unshift("f0ca");case 15:return g.Hi(O,20),a9L(h,F),H=dL,Af(O,SI(h.B),22);case 22:T=H(O.B);if(h.K)try{return O.return(new WebAssembly.Module(T))}catch(n){h.K= !1,M.unshift("f1cs")}Z=dL;return Af(O,SI(WebAssembly.compile(T)),23);case 23:return O.return(Z(O.B));case 20:b=g.f_(O),h.B=void 0,h.L=!1,M.unshift("f1ca: "+b);case 21:throw"["+M.map(function(n){return'"'+n+'"'}).join(", ")+"]"; case 2:g.SB(O),g.Om(O,0)}})}()})}; MQm=function(){}; vx7=function(){var R=this;this.proc_exit=function(){}; this.fd_write=function(F,h,a){if(!R.exports)return 1;F=new Uint32Array(R.exports.memory.buffer,h,a*2);h=[];for(var J=0;J0;w--)h.push(I)}h.length!==v?F.error=!0:(M=h.slice(-M),h.length=J,ZZL(F,h,M));break;case 1:ZZL(F,oQ,LMm);break;case 0:bZm(F, F.B&7);h=u4(F,16);J=u4(F,16);(h^J)!==65535&&(F.error=!0);F.output.set(F.data.subarray(F.D,F.D+h),F.K);F.D+=h;F.K+=h;break;default:F.error=!0}R.K>R.output.length&&(R.output=new Uint8Array(R.K*2),R.K=0,R.D=0,R.L=!1,R.B=0,R.register=0)}R.output.length!==R.K&&(R.output=R.output.subarray(0,R.K));return R.error?new Uint8Array(0):R.output}; ZZL=function(R,F,h){F=f9f(F);h=f9f(h);for(var a=R.data,J=R.output,M=R.K,v=R.register,I=R.B,w=R.D;;){if(I<15){if(w>a.length){R.error=!0;break}v|=(a[w+1]<<8)+a[w]<>=7;E<0;)E=F[(v&1)-E],v>>=1;else v>>=E&15;I-=E&15;E>>=4;if(E<256)J[M++]=E;else if(R.register=v,R.B=I,R.D=w,E>256){v=eN[E];v+=u4(R,XD[E]);w=jXg(R,h);I=nj[w];I+=u4(R,TGi[w]);if(OZn&&vh.length&&(R.error=!0);R.register|=(h[a+1]<<8)+h[a]<=0)return bZm(R,h&15),h>>4;for(bZm(R,7);h<0;)h=F[u4(R,1)-h];return h>>4}; u4=function(R,F){for(;R.B=R.data.length)return R.error=!0,0;R.register|=R.data[R.D++]<>=F;R.B-=F;return h}; bZm=function(R,F){R.B-=F;R.register>>=F}; f9f=function(R){for(var F=[],h=g.N(R),a=h.next();!a.done;a=h.next())a=a.value,F[a]||(F[a]=0),F[a]++;var J=F[0]=0;h=[];var M=0;a=0;for(var v=1;v7&&(M+=F[v]);for(J=1;J>w&1;I=M<<4|v;if(v<=7)for(w=1<<7-v;w--;)a[w<>=7;v--;){a[w]||(a[w]=-F,F+=2);var E=J&1;J>>=1;w=E-a[w]}a[w]=I}}return a}; oxi=function(R){var F,h,a,J,M,v,I,w;return g.u(function(E){switch(E.D){case 1:if(!m5n)throw Error("DecompressionStream is not supported");F=new DecompressionStream("gzip");h=F.writable.getWriter();h.write(R);h.close();a=F.readable.getReader();J=new hl([]);case 2:return g.m(E,a.read(),5);case 5:M=E.B;v=M.value;if(I=M.done){E.G$(4);break}J.append(v);E.G$(2);break;case 4:return w=gw(J),E.return(w)}})}; XcO=function(R){L2.call(this,"onesie");this.b$=R;this.B={};this.L=!0;this.K=null;this.queue=new HZi(this);this.N={}}; eLi=function(R){var F=R.queue;F.B.length&&F.B[0].isEncrypted&&!F.D&&(F.B.length=0);F=g.N(Object.keys(R.B));for(var h=F.next();!h.done;h=F.next()){h=h.value;var a=R.B[h];if(!a.I4){var J=R.queue;J.B.push({videoId:a.videoId,formatId:h,isEncrypted:!1});J.D||mv(J)}}}; nxa=function(R,F){var h=F.totalLength,a=!1;switch(R.K){case 0:R.d9(F,R.L).then(function(J){var M=R.b$;M.Uf("oprr");M.playerResponse=J;M.LC||(M.Nr=!1);dB(M)},function(J){R.b$.fail(J)}); break;case 2:R.Uf("ormk");F=gw(F);R.queue.decrypt(F);break;default:a=!0}R.b$.rT&&R.b$.dA("ombup","id.11;pt."+R.K+";len."+h+(a?";ignored.1":""));R.K=null}; uVL=function(R,F){var h,a,J,M,v;return g.u(function(I){switch(I.D){case 1:if(!m5n){I.G$(2);break}g.Hi(I,3);return g.m(I,oxi(F),5);case 5:return h=I.B,I.return(h);case 3:a=g.f_(I),R.b$.dA("gzerr",{impl:"native",err:""+a});case 2:if(J=R.b$.W().IR)try{var w=J.Bg(F),E=J,B=w!=null?w:F,r=B.byteOffset,Y=B.byteLength,p=E.exports.getInflatedSize(r,Y);if(p===0)throw Error("wasm_gz: bad input");var k=E.malloc(p),H=E.exports.inflateGzip(r,Y,k);if(H)throw E.free(k),Error("wasm_gz: fail"+H);var T=new Uint8Array(E.exports.memory.buffer, k,p);w&&J.free(w.byteOffset);M=J.Uv(T);return I.return(M)}catch(Z){R.b$.dA("gzerr",{impl:"wasm",err:""+Z})}v=g.SZm(new g.yJ2(F));return I.return(v)}})}; d5m=function(R){return new Promise(function(F){setTimeout(F,R)})}; Pg7=function(R,F){var h=R.W();h=R.n2&&h.X("html5_onesie_preload_use_content_owner");var a=R.sL,J=sk(F.uu.experiments,"debug_bandaid_hostname");if(J)F=Yq(F,J);else if((h===void 0?0:h)&&(a==null?0:a.url)&&!F.D){var M=zE(new g.dV(a.url));F=Yq(F,M)}else F=(M=F.B.get(0))==null?void 0:M.location.clone();if(F&&R.videoId){M=Ac(R.videoId);R=[];if(M)for(M=g.N(M),h=M.next();!h.done;h=M.next())R.push(h.value.toString(16).padStart(2,"0"));F.set("id",R.join(""));return F}}; zLi=function(R,F,h){h=h===void 0?0:h;var a,J;return g.u(function(M){if(M.D==1)return a=[],a.push(F.load()),h>0&&a.push(d5m(h)),g.m(M,Promise.race(a),2);J=Pg7(R,F);return M.return(J)})}; KMm=function(R,F,h,a){a=a===void 0?!1:a;R.set("cpn",F.clientPlaybackNonce);R.set("opr","1");var J=F.W();R.set("por","1");GS()||R.set("onem","1");F.startSeconds>0&&R.set("osts",""+F.startSeconds);a||(J.X("html5_onesie_disable_partial_segments")&&R.set("oses","1"),F=J.X("html5_gapless_onesie_no_media_bytes")&&pt(F)&&F.n2,h&&!F?(F=h.audio,R.set("pvi",h.video.join(",")),J.X("html5_onesie_disable_audio_bytes")||R.set("pai",F.join(",")),Y9||R.set("osh","1")):(R.set("oad","0"),R.set("ovd","0"),R.set("oaad", "0"),R.set("oavd","0")))}; tQf=function(R,F,h,a,J){J=J===void 0?!1:J;var M="https://youtubei.googleapis.com/youtubei/"+F.Vw.innertubeApiVersion+"/player",v=[{name:"Content-Type",value:"application/json"}];a&&v.push({name:"Authorization",value:"Bearer "+a});v.push({name:"User-Agent",value:g.ol()});g.Kp("EOM_VISITOR_DATA")?v.push({name:"X-Goog-EOM-Visitor-Id",value:g.Kp("EOM_VISITOR_DATA")}):(h=h.visitorData||g.Kp("VISITOR_DATA"))&&v.push({name:"X-Goog-Visitor-Id",value:h});(h=g.Kp("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&v.push({name:"X-YouTube-Lava-Device-Context", value:h});(F=sk(F.experiments,"debug_sherlog_username"))&&v.push({name:"X-Youtube-Sherlog-Username",value:F});R=sa(JSON.stringify(R));return{url:M,sM:v,postBody:R,xHb:J,SR:J}}; l9a=function(R,F,h,a,J,M,v){var I=R.lA,w=R.ND;R=R.t5Q;var E=I!==void 0&&w!==void 0,B=a.getVideoData(),r,Y=F.B.encryptedClientKey;F=E?F.iv:void 0;E=mo(h.schedule,!0);J=J||!!GS()&&E>1572864;return{innertubeRequest:{Tkz:R,Hl:I,ND:w,encryptedClientKey:Y,iv:F,Ysb:!0,ZM:!0,kI:"DecompressionStream"in window||!J,nXR:h.experiments.jl("html5_use_jsonformatter_to_parse_player_response")},CG:hC7({LI:h,BG:a,Ee:B.startSeconds*1E3}),onesieUstreamerConfig:M,xT:v,QB:x4(B),reloadPlaybackParams:(r=B.DK)==null?void 0: r.reloadPlaybackParams}}; D5B=function(R,F,h,a,J,M){var v=g.tl(R,rBL,R.SR?void 0:h.IR);if(!R.SR){if(h.IR){var I;try{F.D||(F.D=new E6(F.B.B,F.L,F.S));var w=I=F.D.D(v,F.iv);(0,g.NU)();var E=F.N,B=F.iv,r=E.Bg(F.B.D),Y=E.Bg(B),p=new Uint8Array(E.exports.memory.buffer,E.malloc(32),32);E.exports.Sha256Hmac(r.byteOffset,r.byteLength,Y.byteOffset,Y.byteLength,w.byteOffset,w.byteLength,p.byteOffset);E.free(r.byteOffset);E.free(Y.byteOffset);var k=E.Uv(p);var H;var T=(H=h.IR.Uv(I))!=null?H:I;I=void 0}catch(Z){I&&h.IR.free(I.byteOffset)}}T|| (T=F.encrypt(v));k||(k=T,(0,g.NU)(),k=M_m(new J_L(F.B.D),k,F.iv))}return l9a(T&&k?{lA:T,ND:k}:{t5Q:v},F,h,a,!!R.SR,J,M)}; VQi=function(R,F,h,a,J,M){var v,I,w;return g.u(function(E){if(E.D==1)return v=g.tl(R,rBL),g.m(E,YZT(F,v),2);if(E.D!=3)return I=E.B,g.m(E,sXm(F,I),3);w=E.B;return E.return(l9a({lA:I,ND:w},F,h,a,!!R.SR,J,M))})}; zt=function(R,F){g.d.call(this);var h=this;this.BG=R;this.playerRequest=F;this.logger=new g.s3("onesie");this.xhr=null;this.state=1;this.bj=new rh;this.FQ=!1;this.playerResponse="";this.H9=new Mr(this);this.qn=new XcO(this);this.Ms="";this.Yf=this.f0=!1;this.St="";this.enableCompression=this.LC=this.Vx=!1;this.CU=[];this.IH=-1;this.WL=0;this.uu=this.BG.W();this.videoData=this.BG.getVideoData();this.rT=this.uu.Po();this.YF=this.uu.eb;this.Fv=new BH(this.YF.B,this.uu.AT,KoB(this.uu));this.S1=this.uu.X("html5_onesie_check_timeout"); this.ip=new g.DY(this.QU,500,this);this.Wy=new g.DY(this.pW,1E4,this);this.eG=new g.DY(function(){if(!h.isComplete()){var a=PH(h);h.fail(new g.Bz("net.timeout",a))}},1E3); this.Ke=new g.DY(this.e$,2E3,this);this.wu=this.BG.NO();this.Nr=this.X("html5_onesie_wait_for_media_availability");g.z(this.videoData,this);g.z(this,this.ip);g.z(this,this.Wy);g.z(this,this.Ke);g.z(this,this.Fv);R=k9();Y9&&R&&(this.mA=new Map);this.H5=new Map;this.Uk=new Map;this.yq=new Map;this.LT=new Map}; pj=function(R,F){var h;return(h=R.mA)==null?void 0:h.get(F)}; Cg_=function(R,F,h){var a;return g.u(function(J){if(J.D==1)return R.Uf("oprd_s"),U5i(R)?g.m(J,pcL(R.Fv,F,h),3):(a=R.Fv.decrypt(F,h),J.G$(2));J.D!=2&&(a=J.B);R.Uf("oprd_c");return J.return(a)})}; cJi=function(R){return R.X("html5_onesie_host_probing")||R.rT?Y9:!1}; dB=function(R){if(!R.playerResponse)return!1;if(R.Vx)return!0;var F=R.videoData.X("html5_onesie_audio_only_playback")&&kF(R.videoData);if(R.mA&&R.Nr){if(!R.mA.has(R.Ms))return!1;var h=R.mA.get(R.Ms),a;if(a=h){a=!1;for(var J=g.N(h.Pe.keys()),M=J.next();!M.done;M=J.next())if(M=h.Pe.get(M.value))for(var v=g.N(M.Kx),I=v.next();!I.done;I=v.next())I.value.vn>0&&(M.rk?a=!0:F=!0);a=!(F&&a)}if(a)return!1}R.Uf("ofr");R.bj.resolve(R.playerResponse);if(!R.S1){var w;(w=R.eG)==null||w.start();R.Wy.start()}return R.Vx= !0}; R_O=function(R){if(R.mA&&!R.X("html5_onesie_media_capabilities")){R.Uf("ogsf_s");var F=VEL(R.BG.getVideoData(),function(a,J){R.dA(a,J)}),h=WMi(R.BG); F.video=nnT(h,F.video);R.Uf("ogsf_c");if(F.video.length)return F;R.dA("ombspf","l."+h.D+";u."+h.B+";o."+h.K+";r."+h.reason)}}; U5i=function(R,F){return R.X("html5_onesie_sync_request_encryption")||(F==null?0:F.SR)||g.Bc(R.uu)&&R.X("html5_embed_onesie_use_sync_encryption")?!1:!!GS()}; PH=function(R){if(!R.zn)return{};var F=R.zn.Lp(),h;F.d=(h=R.zn.fI)==null?void 0:h.zq();F.shost=R.bl;F.ty="o";return F}; FSL=function(R,F){var h,a;(a=(R=(h=R.mA)==null?void 0:h.get(F))==null)||(F=R.K?!1:R.K=!0,a=!F);return!a}; h_7=function(R,F,h,a,J,M,v,I,w,E,B){g.d.call(this);var r=this;this.BG=R;this.loader=F;this.policy=h;this.audioTrack=a;this.videoTrack=J;this.MQ=M;this.LV=v;this.T$=I;this.K=w;this.timing=E;this.oR=B;this.B=[];this.N={};this.PG=this.Fo=!1;this.L=this.NQ=this.C=this.IR=this.kT=0;this.Z=null;this.KI={D1:[],JI:[]};this.Uz={D1:[],JI:[]};this.Y=null;this.S=[];this.rf={GFR:function(){return r.B}, wEb:function(){return r.N}, PcA:function(){r.B.length=0}, Qio:function(){return r.videoData.HG}, jil:function(){return r.C}, Qk$:function(Y){r.C=Y}, Bjl:function(Y){r.L=Y}, Gi:function(Y){r.Y=Y}, hw:function(Y){r.S=Y}}; this.videoData=this.BG.getVideoData();this.policy.N3&&(this.Oz=new tn(this.loader,this.policy,this.LV),g.z(this,this.Oz))}; MZT=function(R,F){F=F===void 0?!1:F;if(ayi(R)){R.policy.S&&R.loader.dA("sabrcrq",{create:1});var h=new Jg(0,R.MQ.Z,R);R.policy.g$>0&&R.L++;F=JLm(R,h,F);R.B.push(F);var a;(a=R.Oz)==null||s6L(a,R.MQ.Z)}}; GT2=function(R,F){var h=vFO(R);if(R.policy.w$){var a=R.KI;var J=R.Uz}else a=Kj(R,R.audioTrack),J=Kj(R,R.videoTrack);var M=[].concat(g.S(a.D1),g.S(J.D1));tg(R)&&M.push.apply(M,g.S(R.S));var v=[].concat(g.S(a.JI),g.S(J.JI)),I=R.loader.zg();if(R.policy.D2&&!R.videoData.isLivePlayback){var w=R.videoData.lengthSeconds*1E3;h>=w&&R.loader.dA("invalidSabrCmt",{cmt:h,vd:w})}var E,B;w=R.BG;var r=R.MQ,Y=R.D,p=R.videoData.HG,k=R.policy,H=R.loader.nW,T=xMB(R.loader)*1E3,Z=(E=R.fI)==null?void 0:E.VM;E=(B=R.fI)== null?void 0:B.DT;var b;B=Number((b=R.K.L)==null?void 0:b.info.itag)||0;var O;b=Number((O=R.K.N)==null?void 0:O.info.itag)||0;F={BG:w,MQ:r,D1:M,JI:v,Ee:h,nextRequestPolicy:Y,cN:p,uq:k,Hm:H,m2:T,VM:Z,DT:E,kT:R.kT,isPrefetch:F||R.loader.isSuspended,MV:B,Od:b,TD:I,UB:R.BG.Oj()};h=R.loader.TK();M=Ac(h);h&&(F.o7=M);if(h=R.BG.S0())F.e3=h*1E3;var n;h=R.K;M=h.oR;if(((n=h.uq)==null?0:AU(n))&&!M)for(n=g.N(h.K),v=n.next();!v.done;v=n.next())if(v.value.jw){M=!0;break}n=AU(h.uq)&&!M?[]:fUI(h,h.K);F.PQ=n;n=R.K; AU(n.uq)&&!n.aR?n=[]:(h=XyB(n),h.length===0&&(h=n.S),n=fUI(n,h));F.Y9=n;F.g1=tg(R)?[R.Y]:void 0;R.policy.f3&&(F.Ev=gFT(R.loader,R.audioTrack),F.ih=gFT(R.loader,R.videoTrack));if(R.policy.D){n=R.loader.getCurrentTime();a=l4(R,a.D1,n);J=l4(R,J.D1,n);J=Math.min(a,J);tg(R)&&(a=l4(R,R.S,n),R.BG.Po()&&a0&&R.B[0].oC()&&(F.uC=R.B[0].Z4());return F}; vFO=function(R){var F,h=R.policy.N&&((F=R.loader)==null?void 0:F.Y5());F=R.loader.getCurrentTime()||0;F=Iym(R,F);var a=R.loader.wW()||0;F+=a;a=d9(R.videoData)||g.uR(R.videoData);var J=0;h?(a&&(J=Number.MAX_SAFE_INTEGER),R.videoData.oR&&(J=Math.ceil(R.videoData.Uz*1E3))):J=Math.ceil(F*1E3);return Math.min(Number.MAX_SAFE_INTEGER,J)}; tg=function(R){return R.policy.Ym&&!!R.Y}; Iym=function(R,F){if(R.loader.isSeeking())return F;var h=R.BG.He();if(!h)return F;h=h.Ft();if(h.length===0||US(h,F))return F;if(!u6(R.videoTrack,F)&&!u6(R.audioTrack,F))return R.loader.dA("sundrn",{b:0,lt:F}),F;for(var a=F,J=Infinity,M=0;MF)){var v=F-h.end(M);v=20)?(R.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),F):a}; l4=function(R,F,h){R=R.loader.wW()||0;return Dw(F,(h+R)*1E3)/1E3+h}; ayi=function(R){if(R.policy.g$>0){var F=Math.floor((0,g.NU)()/1E4);if(F===R.NQ){if(R.L>=R.policy.g$){if(R.L===R.policy.g$){var h={reason:"toomanyrequests"};h.limit=R.L;R.loader.handleError("player.exception",h);R.L+=1}return!1}}else R.NQ=F,R.L=0}if(R.loader.isSuspended&&R.loader.fm)return!1;if(R.aR&&(0,g.NU)()0&&(!R.policy.C||R.B.length!==1||!R.B[0].oC()))return!1;var a;if(!(F=(a=R.MQ.Z)==null||!P$(a,R.policy,R.N,R.loader.PA())||Xc(R.audioTrack)&&Xc(R.videoTrack))){if(a= R.policy.D){a=!1;if(R.oR.D===2)a=!0;else if(R.oR.D===3){vFO(R);R.loader.wW();var J=qY(R.audioTrack,R.loader.isSeeking()).D1;F=qY(R.videoTrack,R.loader.isSeeking()).D1;var M=R.loader.getCurrentTime()||0;J=l4(R,J,M);F=l4(R,F,M);F=Math.min(J,F);M=R.oR;F>=M.N?(M.dA("sdai",{haltrq:F,est:M.N}),F=!0):F=!1;F&&(a=!0)}a&&R.policy.S&&R.loader.dA("sabrcrq",{waitad:1})}F=a}if(F)return!1;R.policy.w$&&(R.KI=Kj(R,R.audioTrack),R.Uz=Kj(R,R.videoTrack));if(!R.D)return R.policy.S&&R.loader.dA("sabrcrq",{nopolicy:1}), !0;if(R.BG.S0())return R.policy.S&&R.loader.dA("sabrcrq",{utc:1}),!0;if(R.K.Y)return R.policy.S&&R.loader.dA("sabrcrq",{audio:1}),!0;if(!R.D.targetAudioReadaheadMs||!R.D.targetVideoReadaheadMs)return R.policy.S&&R.loader.dA("sabrcrq",{noreadahead:1}),!0;if(R.policy.N&&R.loader.Y5())return R.policy.S&&R.loader.dA("sabrcrq",{seekToHead:1}),!0;a=Math.min(lD(R.loader,R.audioTrack)*1E3,R.D.targetAudioReadaheadMs);F=Math.min(lD(R.loader,R.videoTrack)*1E3,R.D.targetVideoReadaheadMs);var v=Math.min(a,F); M=SU(R.audioTrack,!0)*1E3;J=SU(R.videoTrack,!0)*1E3;var I=R.BG.getCurrentTime()*1E3;if(R.policy.w$){var w=Dw(R.KI.D1,I);var E=Dw(R.Uz.D1,I)}else w=M,E=J;var B=wF||a>=0&&J.HV>a+1)break;h=Math.max(h,J.startTimeMs+J.durationMs);a=Math.max(a,J.EG)}return Math.max(0,h-F)}; JLm=function(R,F,h){var a={LV:R.LV,PO:function(w,E){R.BG.LU(w,E)}, Au:R.policy.ES,rq:R.policy.K};R.LV.D.S&&(a.gY=(R.videoTrack.B.info.CI||0)+(R.audioTrack.B.info.CI||0));R.policy.n$&&(a.OG=R.audioTrack.B.index.KA(),a.Au=!1);var J=uUa(F,R.policy,R.N)?2:1;J!==R.C&&(R.C=J,wr2(R));h=GT2(R,h);if(R.policy.C&&R.policy.K&&h.cN){for(var M=J="",v=g.N(h.cN),I=v.next();!I.done;I=v.next())I=I.value,R.videoData.sabrContextUpdates.has(I)||R.policy.C&&h.uC&&h.uC.type===I?J+="_"+I:M+="_"+I;R.loader.dA("sabrbldrqs",{ctxts:J,misctxts:M})}!F.setData(h,R.policy,R.N)&&R.policy.C&&R.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);a=new OM(R.policy,F,R.MQ,R.N,R,a,R.loader.NO());mk(R.timing);R.policy.S&&R.loader.dA("sabrcrq",{rn:a.Sy(),probe:F.b7()});return a}; U6=function(R,F){if(F.RR()||R.RR())R.policy.dn||(R.policy.N?V4(R.loader):R.loader.Of());else{if(R.policy.K&&F.isComplete()&&F instanceof OM){var h=R.loader,a=h.dA,J,M,v=Object.assign(F.zn.Lp(),{rst:F.state,strm:F.xhr.jT(),d:(J=F.zn.fI)==null?void 0:J.zq(),cncl:F.xhr&&F.Oi.L?1:0,rqb:F.ZX,cwt:F.wC,swt:(M=F.Tf)==null?void 0:M.WZ});J=Object.assign(zFf(F.info),v);a.call(h,"rqs",J)}if(F.isComplete()&&F.b7()&&F instanceof OM)R.policy.FW?F.vH()?(F.dispose(),R.B.length===0?R.loader.Of():(R=R.B[0],R instanceof OM&&R.Mh()&&R.eT())):F.qC()&&R.loader.handleError(F.JG(),F.IZ()):(F.dispose(),R.loader.Of());else{if(F.Sr())F instanceof OM&&Sfn(R.timing,F),wr2(R),EFI(R);else if(F.qC())h=R.BG.S0(),F instanceof OM&&Poi(F.info)&&h&&R.loader.ER(h),F instanceof zt?R.B.pop():(h=1,F.canRetry()&&TpI(R.loader)&&(B9I(R,F),h=0),R.loader.handleError(F.JG(),F.IZ(),h));else{if(R.loader.isSuspended&&!F.isComplete())return;EFI(R)}F.RR()||F instanceof zt||(F.isComplete()?h=Q62(F,R.policy,R.N):(h=koL(F,R.policy,R.N),h===1&&(R.Fo= !0)),h!==0&&(a=new Jg(1,F.info.UP),a.nB=h===2,JLm(R,a)));R.policy.It&&!F.isComplete()?WE(R.loader):R.loader.Of()}}}; EFI=function(R){for(;R.B.length&&R.B[0].Vk(R.T2());){var F=R.B.shift();rLm(R,F)}R.B.length&&rLm(R,R.B[0])}; rLm=function(R,F){F instanceof OM&&(R.Sl=F);var h=new Set(F.cA(R.T2()));h=g.N(h);for(var a=h.next();!a.done;a=h.next()){var J=a.value;if(!(a=!(F instanceof zt))){a=R.K;var M=a.MQ.Mt,v=aQ(a.videoInfos,M);M=o9n(a,J,M);var I=v.includes(J);!a.uq.PT||M||I||a.loader.dA("sabrcpf",{fid:""+J,vfids:""+v.join("."),said:a.Z||""});a=M||v.includes(J)}if(a&&(a=F.W0(J,R.T2()),v=R.policy.Ym&&Pz(a[0].B.info.mimeType),(!(!v&&R.policy.ql&&a.length>0&&(a[0].B.info.rk()?SU(R.audioTrack):SU(R.videoTrack))>3)||F.isComplete())&& F.Xc(J,R.T2())))for(J=F.yc(J,R.T2()),J=g.N(J),M=J.next();!M.done;M=J.next())if(M=M.value,R.policy.K&&F instanceof zt&&R.loader.dA("omblss",{s:M.info.KV()}),v)I=R.timing,I.oR||(I.oR=(0,g.NU)(),g.z7("fcb_r",I.oR,I.B)),I=R,I.videoData.Mt()&&I.Y&&z4(I.Y)===z4(g.n7(M.info.B.info,I.MQ.Mt))&&I.BG.publish("sabrCaptionsDataLoaded",M,I.hw.bind(I));else{I=M.info.B.info.rk();var w=M.info.B;if(I){var E=void 0;var B=R.K,r=(E=F.bH(R.T2()))==null?void 0:E.token;B.Y&&w!==B.N?E=!0:(B.Y=!1,w!==B.N&&(B.N=w,B.Tr(w,B.audioTrack, r)),E=!1);if(E)continue}else E=void 0,qkL(R.K,w,(E=F.bH(R.T2()))==null?void 0:E.token);E=I?R.audioTrack:R.videoTrack;F instanceof zt&&(E.Y=!1,F instanceof zt&&(I?T$I(R.timing):LAi(R.timing)));try{yA(E,a,M)}catch(Y){M=YK(Y),R.loader.handleError(M.errorCode,M.details,M.severity),E.M2(),R.rQ(!1,"pushSlice"),V4(R.loader)}}}}; B9I=function(R,F){R.policy.C?R.B.splice(R.B.indexOf(F)).forEach(function(h){h.dispose()}):(R.B.pop(),F==null||F.dispose())}; YGL=function(R,F,h){for(var a=[],J=0;J0)for(var F=g.N(R.videoData.sabrContextUpdates.keys()),h=F.next();!h.done;h=F.next()){h=h.value;var a=void 0;((a=R.videoData.sabrContextUpdates.get(h))==null?0:a.sendByDefault)&&R.videoData.HG.add(h)}if(R.policy.C&&R.B.length)for(F=g.N(R.B),h=F.next();!h.done;h=F.next())(h=h.value.Z4())&&h.type&&h.sendByDefault&&R.videoData.HG.add(h.type)}; sVi=function(R){R.policy.Ho&&(R.fI=void 0,R.kT=0)}; prB=function(R,F){if(F.qC()||F.RR()){var h=R.loader,a=h.dA,J=F.state;R=R.T2();var M,v;if((F=(M=F.mA)==null?void 0:M.get(R))==null)F=void 0;else{M=0;R=F.cA();for(var I=0;I=F.mediaTime&&g.V(R.BG.getPlayerState(),8)?(F.resolve([F.mediaTime,F.id]),R.B.delete(F.id)):(F.delay.dispose(),F.delay=new g.DY(function(){ALg(R,F)},(F.mediaTime-h)*1E3/R.BG.getPlaybackRate()),F.delay.start())}; LST=function(R,F,h,a){var J=this;this.K=R;this.cpn=F;this.BG=h;this.B=a;this.D=new Map;this.N=new Map;this.Y=this.Z=NaN;this.S=!1;this.QH="";this.isSeeking=!1;this.C=0;this.L=new QVi(h);this.A4=h.A4;this.BG.subscribe("SEEK_TO",function(){J.t8()}); this.BG.subscribe("SEEK_COMPLETE",function(){HtB(J)})}; yLT=function(R,F){if(!R.isSeeking&&R.C!==F&&!isNaN(R.Z)){R.C=F;var h=R.S?R.Y:R.K.L2(F);(h!==R.Y||R.S)&&T9m(R,h,F)}}; T9m=function(R,F,h){var a=R.D.get(F),J=R.K.getStartTime(F),M=R.K.getDuration(F);R.S=!1;R.Y=F;var v=J,I;((I=a==null?void 0:a.B)!=null?I:[R.cpn]).forEach(function(w,E){var B;E=(B=a==null?void 0:a.D[E])!=null?B:M;h>=v&&hJ?Zti(R,M,R.D.get(M)):M===J&&Zti(R,M,R.D.get(M),a-R.K.getStartTime(M))})}; qGB=function(R,F,h,a){F!==R.QH&&(R.BG.dA("ssevt",{tag:R.B===0?"sstd-cr":R.B===1?"sstd-tm":R.B===2?"sstd-poll":R.B===3?"sstd-poll100":"sstd-unknown",ad:R.cpn!==F,cpn:F,st:h.toFixed(3),late:Math.round(R.isSeeking?0:(a-h)*1E3)}),R.QH=F)}; bt2=function(R){var F=g.N(R.split("."));R=F.next().value;F=F.next().value;return[Number(R),F]}; jVT=function(R,F,h,a){h=F+"."+h;R.N.has(F)?R.N.get(F).push(h):R.N.set(F,[h]);R.B===1&&xzL(R.L,a,h).then(function(J){var M=g.N(J);J=M.next().value;M=M.next().value;M=g.N(bt2(M));M.next();M=M.next().value;qGB(R,M,J,$zL(R.L))}); R.B===0&&(R.A4.GM("transitiondetector",h),F=(a+R.BG.wW())*1E3,R.A4.eI([new g.KI(F,F+5E3,{id:h,namespace:"transitiondetector",priority:9})]))}; SGT=function(R,F,h,a,J){this.loader=R;this.policy=F;this.schedule=h;this.VA=a;this.C=J;this.oR=NaN;this.D=this.Y=this.L=null;this.B=this.N=this.S=this.startTimeSecs=NaN;this.K=!1;this.Z=NaN}; Ota=function(R,F,h,a,J,M){return F.UJ&&F.AT&&h===3?new SGT(R,F,a,J,M):null}; mzI=function(R,F){if(R.policy.IM){var h=F.info.CI,a=mo(R.schedule);F=F.index.KA();h=Math.max(1,a/h);R.Z=Math.round(Math.max(((h-1)*F+R.policy.Xf)/h,F-R.policy.B9)*1E3)}}; e_m=function(R,F){var h=Date.now()/1E3,a=h-R.startTimeSecs,J=h-R.S,M=J>=R.policy.JE,v=!1;if(M){var I=0;!isNaN(F)&&F>R.N&&(I=F-R.N,R.N=F);I/J=R.policy.B9&&!R.K;if(!M&&!h&&oFi(R,F))return NaN;h&&(R.K=!0);a:{a=v;h=(0,g.NU)()/1E3-(R.VA.Wf()||0)-R.Y.B-R.policy.Xf;M=R.D.startTime;h=M+h;if(a){if(isNaN(F)){Cj(R,NaN,"n",F);M=NaN;break a}a=F-R.policy.ub;a=M.L&&a<=M.S){a=!0;break a}a=!1}a=!a}if(a)return R.dA("ostmf",{ct:R.getCurrentTime(),a:F.B.info.rk()}),!1;(R=R.KI)!=null&&(R.Pe.get(h).xW=!0);return!0}; z__=function(R){if(!R.MQ.Mt)return!0;var F=R.BG.getVideoData();if(R.BG.Wa())return R.dA("ombpa",{}),!1;var h,a;if(!!((h=R.C)==null?0:(a=h.TR)==null?0:a.Tvu)!==R.MQ.Xd)return R.dA("ombplmm",{}),!1;h=F.iY||F.liveUtcStartSeconds||F.AT;if(R.MQ.Xd&&h)return R.dA("ombplst",{}),!1;if(R.MQ.C)return R.dA("ombab",{}),!1;h=Date.now();return DL(R.MQ)&&!isNaN(R.Uz)&&h-R.Uz>R.policy.Ml*1E3?(R.dA("ombttl",{}),!1):R.MQ.G2&&R.MQ.L||!R.policy.N$&&R.MQ.isPremiere||ft(F)!==0&&!R.policy.B||F.X("html5_disable_onesie_media_for_mosaic")&& FM(F)||F.We()&&!F.X("html5_enable_onesie_media_for_lifa")&&F.isDaiEnabled()&&F.enableServerStitchedDai||F.X("html5_disable_onesie_media_for_lifa_eligible")&&Rc(F)?!1:!0}; KST=function(R,F){var h=F.B,a=R.MQ.Mt;if(z__(R))if(R.KI&&R.KI.Pe.has(z4(g.n7(h.info,a)))){if(a=z4(g.n7(h.info,a)),PRI(R,F)){var J=new a_(R.KI.W0(a)),M=function(v){try{if(v.qC())R.handleError(v.JG(),v.IZ()),or(F,v),M3(v.info)&&C8(R.N,F,h,!0),R.Of();else if(cE(R.N,v)){var I;(I=R.K)==null||eCB(I,v.info,R.oR);R.Of()}}catch(w){v=YK(w),R.handleError(v.errorCode,v.details,v.severity),R.M2()}}; h.K=!0;JP(J)&&(Tz(F,new Pg(R.policy,a,J,R.KI,M)),mk(R.timing))}}else R.dA("ombfmt",{})}; tZO=function(R,F){F=F||R.videoTrack&&R.videoTrack.D&&R.videoTrack.D.startTime||R.getCurrentTime();var h=RQ,a=R.videoTrack,J=R.B;F=J.nextVideo&&J.nextVideo.index.L2(F)||0;J.Uz!==F&&(J.Oz={},J.Uz=F,cd(J,J.B));F=!J.B.isLocked()&&J.C>-1&&(0,g.NU)()-J.CF.B&&F.reason==="b";a||J||h?(R.BG.aZ({reattachOnConstraint:a?"u":J?"drm":"perf",lo:F.D,up:F.B}),R.policy.XS||(R.L.B.D=!1)):(R.policy.XS&&(R.L.B.D=!1),V4(R))}}else if(!cDm(R.B,F)&&R.videoTrack){R.logger.debug(function(){return"Setting constraint: r="+F.reason+" u="+F.B}); h=R.B.B;Rki(R,RPf(R.B,F));tZO(R);a=F.isLocked()&&F.reason==="m"&&R.B.aR;J=R.policy.lT&&F.reason==="l"&&eU(R.videoTrack);h=h.B>F.B&&F.reason==="b";var M=R.B.Fo&&!M8();a||J||h||M?R.BG.aZ({reattachOnConstraint:a?"u":J?"drm":M?"codec":"perf"}):V4(R)}}; hkL=function(R,F,h){if((!R.Yo||G7(R.Yo)&&!R.policy.oS)&&!R.yV.isSeeking()&&(R.policy.B||eU(F)&&F.B.sG()&&R.B.oR)){var a=R.getCurrentTime()+CaB(R.Z,F,h);R.logger.debug(function(){return"Clearing back to "+a.toFixed(3)}); Fo7(F,a)}}; Rki=function(R,F){F&&(R.logger.debug(function(){return"Logging new format: "+K7(F.video.info)}),a4n(R.BG,new K2(F.video,F.reason))); if(R.B.IR){var h=JPO(R.B,"a");R.BG.RB(new K2(h.audio,h.reason))}}; V4=function(R){g.VI(R.FW)}; WE=function(R){R.policy.It&&R.policy.HE&&Math.min(RFO(R.videoTrack),RFO(R.audioTrack))*1E3>R.policy.kW?g.VI(R.It):R.Of()}; JCi=function(R,F){var h=(0,g.NU)()-F,a=SU(R.audioTrack,!0)*1E3,J=SU(R.videoTrack,!0)*1E3;R.logger.debug(function(){return"Appends paused for "+h}); if(R.policy.K&&(R.dA("apdpe",{dur:h.toFixed(),abuf:a.toFixed(),vbuf:J.toFixed()}),zz(R.policy))){var M=eo(R.Z);R.dA("sdps",{ct:F,ah:a.toFixed(),vh:J.toFixed(),mr:nY(R.Z,R.Zs,M),bw:M.toFixed(),js:R.isSeeking(),re:+R.Zs,ps:(R.policy.d2||"").toString(),rn:(R.policy.a5||"").toString()})}}; MtT=function(R){if(g9f(R.videoTrack))return R.logger.debug("Pausing appends for server-selectable format"),"ssf";if(R.policy.PG&&dt(R.videoTrack)&&dt(R.audioTrack))return"updateEnd";if(Xc(R.audioTrack)||Xc(R.videoTrack)&&R.videoTrack.B.info.Qt!=="f")return"";if(R.yV.isSeeking()){var F=R.Z;var h=R.videoTrack;var a=R.audioTrack;if(F.policy.B){var J=F.policy.eb;zz(F.policy)&&(J=nY(F,!1,eo(F)));F=J;h=SU(a,!0)>=F&&SU(h,!0)>=F}else h.K.length||a.K.length?(J=h.B.info.CI+a.B.info.CI,J=10*(1-eo(F)/J),F=Math.max(J, F.policy.eb),h=SU(a,!0)>=F&&SU(h,!0)>=F):h=!0;if(!h)return"abr";h=R.videoTrack;if(h.K.length>0&&h.L.D.length===1&&fLO(h.L).info.Z360);a=zz(R.policy)&&R.policy.DK;if(!R.Zs||!a&&h)return"";h=R.policy.x0;zz(R.policy)&&(h=nY(R.Z,R.Zs,eo(R.Z)));h=aUO(R.videoTrack,R.getCurrentTime(),h)||aUO(R.audioTrack,R.getCurrentTime(), h);return zz(R.policy)?h?"mbnm":"":(R.videoTrack.K.length>0||R.audioTrack.K.length>0||DB(R.N,R.videoTrack,R.audioTrack)||DB(R.N,R.audioTrack,R.videoTrack))&&h?"nord":""}; vC2=function(R){if(R.Y){var F=R.Y.Of(R.audioTrack,cz(R.Yo.D.Ca()));F&&R.BG.seekTo(F,{hC:!0,RT:"pollSubsegmentReadahead",US:!0})}}; Bun=function(R,F,h){if(R.policy.PG&&dt(F))return!1;if(h.l3())return!0;if(!h.Hq())return!1;var a=cg(F);if(!a||a.info.type===6)return!1;var J;if(R.policy.l2||((J=R.K)==null?0:P8m(J,F,a.info.vG)))R.NQ=0;else return R.yV.isSeeking()&&V4(R),R.NQ=R.NQ||(0,g.NU)(),!1;if(!cH(R,F,h,a.info))return!1;if(R.MQ.D&&a.info.D===0){if(J=gCf(F,h,a)){var M=L8(F);R.dA("initchg",{it:a.info.B.info.id,sr:!!M&&M.B===a.info.B,ty:a.info.type,seg:a.info.vG})}M=g.XI(a.info.B.info);R.policy.xO&&M&&!J&&hZL(a)}M=R.Y&&!!R.Y.L&&F.B.info.audio; J=R.MQ.isManifestless||a.N;if(!(R.MQ.D&&a.info.D!==0||J&&!M)&&GUT(R,F,h,a))return!0;if(M)return!1;M=lD(R,F);M=R.getCurrentTime()+M;if(a.info.L>M)return R.policy.B&&I42(R,F),R.policy.gZ&&IoI(F.L,M,!1),!1;iFB(R,F);var v;R.policy.S9&&h===((v=R.Yo)==null?void 0:v.B)&&R.nI&&(h.mO()===0?(R.nI=!1,R.policy.S9=!1):R.uY=h.mO());if(!wnL(R,h,a,F))return!1;R.policy.PG&&a.info.k7()?(R.BG.W().Po()&&R.dA("eosl",{ls:a.info.KV()}),a.isLocked=!0):(F.MS(a),aL2(R.B,a.info),R.logger.debug(function(){return"Appended "+ a.info.KV()+", buffered: "+DK(h.Ca())})); J&&EC7(R,a.info.B.MZ);return!0}; I42=function(R,F){F===R.videoTrack?R.PG=R.PG||(0,g.NU)():R.Sl=R.Sl||(0,g.NU)()}; iFB=function(R,F){F===R.videoTrack?R.PG=0:R.Sl=0}; wnL=function(R,F,h,a){var J=R.policy.YH?(0,g.NU)():0,M=h.N&&h.info.B.B||void 0,v=h.D;h.N&&(v=rC2(R,h,v)||v);var I=gw(v);v=R.policy.YH?(0,g.NU)():0;F=Y4g(R,F,I,h.info,M);(a=a.C)!=null&&(M=h.info,J=v-J,v=(0,g.NU)()-v,!a.D||QkI(a.D,M)&&a.D.vG===M.vG||a.flush(),a.L+=J,a.K+=v,J=1,!a.D&&M.D&&(J=2),Jn(a,J,F),v=Math.ceil(M.D/1024),J===2&&a.B.add(v),a.B.add(Math.ceil((M.D+M.K)/1024)-v),a.D=M);R.Oz=0;if(F===0)return R.IR&&(R.logger.debug("Retry succeed, back to normal append logic."),R.IR=!1,R.gW=!1),R.iY= 0,!0;if(F===2||F===5)return scn(R,"checked",F,h.info),!1;if(F===1){if(!R.IR)return R.logger.debug("QuotaExceeded, retrying."),R.IR=!0,!1;if(!R.gW)return R.gW=!0,R.BG.seekTo(R.getCurrentTime(),{RT:"quotaExceeded",US:!0}),!1;h.info.In()?(J=R.policy,J.Sl=Math.floor(J.Sl*.8),J.KI=Math.floor(J.KI*.8)):(J=R.policy,J.HG=Math.floor(J.HG*.8),J.KI=Math.floor(J.KI*.8));R.policy.B?lv(R.L.B,h.info.B,!1):Rr(R.B,h.info.B)}R.BG.aZ({reattachOnAppend:F});return!1}; rC2=function(R,F,h){var a;if(a=R.policy.dc&&R.Yo&&!R.Yo.Z&&!R.BG.Sv())F=F.info.B.info,a=F.K_()&&ZK(F)&&F.video&&F.video.width<3840&&F.video.width>F.video.height;if(a&&(R.Yo.Z=!0,Qp('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return h=yPn(h),R.policy.K&&R.dA("sp4k",{s:!!h}),h}; scn=function(R,F,h,a){var J="fmt.unplayable",M=1;h===5||h===3?(J="fmt.unparseable",R.policy.B?!a.B.info.video||D8(R.L.B).size>0||lv(R.L.B,a.B,!1):!a.B.info.video||D8(R.B.N).size>0||Rr(R.B,a.B)):h===2&&(R.iY<15?(R.iY++,J="html5.invalidstate",M=0):J="fmt.unplayable");a=Fv(a);var v;a.mrs=(v=R.Yo)==null?void 0:Ec(v);a.origin=F;a.reason=h;R.policy.e6&&(a.trg="appenderr");R.handleError(J,a,M)}; KPm=function(R,F,h,a,J){var M=R.MQ;var v=R.policy.B,I=!1,w=-1;for(p in M.B){var E=Pz(M.B[p].info.mimeType)||M.B[p].info.In();if(a===E)if(E=M.B[p].index,E.yr(F.vG)){I=E;var B=F,r=I.q3(B.vG);r&&r.startTime!==B.startTime?(I.segments=[],I.zU(B),I=!0):I=!1;I?w=F.vG:!F.pending&&v&&(B=E.getDuration(F.vG),B!==F.duration&&(M.publish("clienttemp","mfldurUpdate",{itag:M.B[p].info.itag,seg:F.vG,od:B,nd:F.duration},!1),E.zU(F),I=!0))}else E.zU(F),I=!0}w>=0&&(v={},M.publish("clienttemp","resetMflIndex",(v[a?"v": "a"]=w,v),!1));M=I;BVB(R.yV,F,a,M);if(R.policy.uY&&R.policy.D&&(w=F.vJ||null)){var Y;v=(Y=R.D)==null?void 0:kTI(Y).requestNumber;if((Y=R.fI)!=null){if(Y.D.has(w.identifier)){var p=Y.D.get(w.identifier);p.event=w.event;p.startTimeSecs=w.startSecs;p.Rz=w.Rz}else Y.D.set(w.identifier,{event:w.event,startTimeSecs:w.startSecs,Rz:w.Rz,hZ:[]});Y.K&&v>-1&&vPI(R.MQ)&&(R.MQ.Uz=F.startTime+(isNaN(R.timestampOffset)? 0:R.timestampOffset),R.yV.isSeeking()&&R.yV.B5)return R.Oz= 0,R.BG.aZ({initSegStuck:1,as:a.info.KV()}),!0}else R.Oz=0,R.Ho=a;R.policy.F1&&(h.abort(),(v=F.C)!=null&&(Jn(v,4),v.flush()));J=Y4g(R,h,M,w,J);var E;(E=F.C)==null||EbL(E,J,w);if(J!==0)return pn7(R,J,a),!0;a.info.In()?fQi(R.timing):jof(R.timing);R.logger.debug(function(){return"Appended init for "+a.info.B.info.id}); EC7(R,a.info.B.MZ);return h.k_()}; gCf=function(R,F,h){if(F.fb()==null){R=L8(R);if(!(F=!R||R.B!==h.info.B)){a:if(R=R.C,h=h.info.C,R.length!==h.length)h=!1;else{for(F=0;F1)return 6;v.Oz=new g.DY(function(){var I=cg(v);R.RR()||I==null||!I.isLocked?R.BG.W().Po()&&R.dA("eosl",{delayA:I==null?void 0:I.info.KV()}):kUf(v)?(R.BG.W().Po()&&R.dA("eosl",{dunlock:I==null?void 0:I.info.KV()}),QcI(R,v===R.audioTrack)):(R.dA("nue",{ls:I.info.KV()}),I.info.oR+=1,R.Yo&&R.bv())},1E4,R); R.BG.W().Po()&&R.dA("eosl",{delayS:a.KV()});v.Oz.start()}R.policy.UN&&(a==null?void 0:a.B)instanceof gH&&a.k7()&&R.dA("poseos",{itag:a.B.info.itag,seg:a.vG,lseg:a.B.index.Ff(),es:a.B.index.K});F.appendBuffer(h,a,J)}catch(I){if(I instanceof DOMException){if(I.code===11)return 2;if(I.code===12)return 5;if(I.code===22||I.message.indexOf("Not enough storage")===0)return F=Object.assign({name:"QuotaExceededError",buffered:DK(F.Ca()).replace(/,/g,"_"),vheap:ZB(R.videoTrack),aheap:ZB(R.audioTrack),message:g.yU(I.message, 3),track:R.Yo?F===R.Yo.D?"v":"a":"u"},nF2()),R.handleError("player.exception",F),1;g.y7(I)}return 4}return R.Yo.VV()?3:0}; CY=function(R,F,h){R.policy.qg&&DzT(R,h.RT||"unknown");R.BG.seekTo(F,h)}; EC7=function(R,F){F&&R.BG.Or(new EE(F.key,F.type))}; sE=function(R,F){R.BG.Iv(F)}; lD=function(R,F){if(R.IR&&!R.Zs)return 3;if(R.isSuspended)return 1;var h;if((h=R.Yo)==null?0:h.Yo&&h.Yo.streaming===!1)return 4;h=(F.B.info.audio?R.policy.HG:R.policy.Sl)/(F.CI*R.policy.CX);if(R.policy.Ec>0&&R.Yo&&G7(R.Yo)&&(F=F.B.info.video?R.Yo.D:R.Yo.B)&&!F.k_()){F=F.Ca();var a=Vp(F,R.getCurrentTime());a>=0&&(F=R.getCurrentTime()-F.start(a),h+=Math.max(0,Math.min(F-R.policy.Ec,R.policy.nN)))}R.policy.KI>0&&(h=Math.min(h,R.policy.KI));return h}; gFT=function(R,F){return(lD(R,F)+R.policy.o5)*F.CI}; ACB=function(R){R.HG&&!R.isSuspended&&o6(R.schedule)&&($XT(R,R.HG),R.HG="")}; $XT=function(R,F){Ol(F,"cms",function(h){R.policy.K&&R.dA("pathprobe",h)},function(h){R.BG.handleError(h)})}; xXg=function(R,F){if(R.Yo&&R.Yo.L&&!R.Yo.VV()&&(F.HY=SU(R.videoTrack),F.D=SU(R.audioTrack),R.policy.K)){var h=ZB(R.videoTrack),a=ZB(R.audioTrack),J=DK(R.Yo.D.Ca(),"_",5),M=DK(R.Yo.B.Ca(),"_",5);Object.assign(F.B,{lvq:h,laq:a,lvb:J,lab:M})}F.bandwidthEstimate=oJ(R.Z);var v;(v=R.audioTrack.C)==null||v.flush();var I;(I=R.videoTrack.C)==null||I.flush();R.logger.debug(function(){return ES(F.B)})}; Nug=function(R,F){R.oR=F;R.K&&(R.K.K=F);R.oR.Z9(R.videoTrack.B.info.K_());R.N.D=R.oR;R.policy.D&&(R.D.Z=R.oR)}; yCi=function(R,F){if(R.Yo&&R.Yo.D){if(R.policy.IF){var h=iGn(R.audioTrack);if(h&&h.rk()){var a=R.BG;if(a.w2&&(a.w2.B=h,h=a.Ja,h.qoe)){h=h.qoe;a=a.w2;var J=g.R$(h.provider);HFi(h,J,a)}}}R.policy.JK&&(h=iGn(R.videoTrack))&&h.In()&&(a=R.BG,a.P$&&(a.P$.B=h,h=a.Ja,h.qoe&&LXL(h.qoe,a.P$)));F-=isNaN(R.timestampOffset)?0:R.timestampOffset;R.getCurrentTime()!==F&&R.resume();R.yV.isSeeking()&&R.Yo&&!R.Yo.VV()&&(a=R.getCurrentTime()<=F&&F=F&&u$L(R,a.startTime,!1)}); return h&&h.startTimeR.getCurrentTime())return h.start/1E3;return Infinity}; it7=function(R){if(R.BG.getVideoData().isLivePlayback)return!1;var F=R.BG.He();if(!F)return!1;F=F.getDuration();if(R.Yo&&R.Yo.B&&R.Yo.D){var h=R.getCurrentTime(),a=R.Yo.B.Ca();R=R.Yo.D.Ca();a=a?C7(a,h):h;h=R?C7(R,h):h;h=Math.min(a,h);F=isNaN(h)?!1:h>=F-.01}else F=!1;return F}; pn7=function(R,F,h){R.policy.HW&&pt(R.BG.getVideoData())?(R.BG.t9()||scn(R,"sepInit",F,h.info),bFn(R.BG,"sie")):scn(R,"sepInit",F,h.info)}; TpI=function(R){return R.BG.PA()0){var a=h.B.shift();OFg(h,a.info)}h.B.length>0&&(a=h.B[0].time-(0,g.NU)(),h.D.start(Math.max(0,a)))}},0); g.z(this,this.D);F.subscribe("widevine_set_need_key_info",this.L,this)}; OFg=function(R,F){a:{var h=F.cryptoPeriodIndex;if(isNaN(h)&&R.K.size>0)h=!0;else{for(var a=g.N(R.K.values()),J=a.next();!J.done;J=a.next())if(J.value.cryptoPeriodIndex===h){h=!0;break a}h=!1}}R.publish("log_qoe",{wvagt:"reqnews",canskip:h});h||R.publish("rotated_need_key_info_ready",F)}; mXI=function(){var R={};var F=R.url;var h=R.interval;R=R.retries;this.url=F;this.interval=h;this.retries=R}; oCL=function(R,F){this.statusCode=R;this.message=F;this.D=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null}; Xng=function(R,F,h){h=h===void 0?"":h;g.d.call(this);this.message=R;this.requestNumber=F;this.timer=h;this.onError=this.onSuccess=null;this.B=new g.bL(5E3,2E4,.2)}; ek_=function(R,F,h){R.onSuccess=F;R.onError=h}; uMi=function(R,F,h,a){var J={timeout:3E4,onSuccess:function(M){if(!R.RR()){Hf("drm_net_r",void 0,R.timer);var v=M.status==="LICENSE_STATUS_OK"?0:9999,I=null;if(M.license)try{I=qx(M.license)}catch(k){g.y7(k)}if(v!==0||I){I=new oCL(v,I);v!==0&&M.reason&&(I.errorMessage=M.reason);if(M.authorizedFormats){v={};for(var w=[],E={},B=g.N(M.authorizedFormats),r=B.next();!r.done;r=B.next())if(r=r.value,r.trackType&&r.keyId){var Y=nCm[r.trackType];if(Y){Y==="HD"&&M.isHd720&&(Y="HD720");r.isHdr&&(Y+="HDR");v[Y]|| (w.push(Y),v[Y]=!0);var p=null;try{p=qx(r.keyId)}catch(k){g.y7(k)}p&&(E[g.Tf(p,4)]=Y)}}I.D=w;I.B=E}M.nextFairplayKeyId&&(I.nextFairplayKeyId=M.nextFairplayKeyId);M.sabrLicenseConstraint&&(I.sabrLicenseConstraint=qx(M.sabrLicenseConstraint));M=I}else M=null;if(M)R.onSuccess(M,R.requestNumber);else R.onError(R,"drm.net","t.p;p.i")}}, onError:function(M){if(!R.RR())if(M&&M.error)M=M.error,R.onError(R,"drm.net.badstatus","t.r;p.i;c."+M.code+";s."+M.status,M.code);else R.onError(R,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){R.onError(R,"drm.net","rt.req."+R.requestNumber)}}; a&&(J.X$="Bearer "+a);g.ln(h,"player/get_drm_license",F,J)}; zHf=function(R,F,h,a){g.h0.call(this);this.videoData=R;this.uu=F;this.Z=h;this.sessionId=a;this.N={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.oR=this.aR=!1;this.K=null;this.KI=[];this.L=[];this.authorizedFormats=[];this.Y=!1;this.B={};this.status="";this.S=NaN;this.D=R.N;this.cryptoPeriodIndex=h.cryptoPeriodIndex;R={};Object.assign(R,this.uu.B);R.cpn=this.videoData.clientPlaybackNonce;this.videoData.fI&&(R.vvt=this.videoData.fI,this.videoData.mdxEnvironment&&(R.mdx_environment= this.videoData.mdxEnvironment));this.uu.KI&&(R.authuser=this.uu.KI);this.uu.pageId&&(R.pageid=this.uu.pageId);isNaN(this.cryptoPeriodIndex)||(R.cpi=this.cryptoPeriodIndex.toString());var J=(J=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.ol()))?J[1]:"";J==="ATV"&&(R.cdt=J);this.N=R;this.N.session_id=a;this.C=!0;this.D.flavor==="widevine"&&(this.N.hdr="1");this.D.flavor==="playready"&&(F=Number(sk(F.experiments,"playready_first_play_expiration")),!isNaN(F)&&F>=0&&(this.N.mfpe=""+F),this.C=!1);F="";g.gp(this.D)? vy(this.D)?(a=h.D)&&(F="https://www.youtube.com/api/drm/fps?ek="+LBB(a)):(F=h.initData.subarray(4),F=new Uint16Array(F.buffer,F.byteOffset,F.byteLength/2),F=String.fromCharCode.apply(null,F).replace("skd://","https://")):F=this.D.D;this.baseUrl=F;this.fairplayKeyId=AS(this.baseUrl,"ek")||"";if(F=AS(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(F);this.KI=h.K_?[g.Tf(h.initData,4)]:h.K;M$(this,{sessioninit:h.cryptoPeriodIndex});this.status="in"}; DYL=function(R,F){M$(R,{createkeysession:1});R.status="gr";Hf("drm_gk_s",void 0,R.videoData.C);R.url=K6i(R);try{R.K=F.createSession(R.Z,function(h){M$(R,{m:h})})}catch(h){F="t.g"; h instanceof DOMException&&(F+=";c."+h.code);R.publish("licenseerror","drm.unavailable",1,F,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}R.K&&(tUi(R.K,function(h,a){lBL(R,h,a)},function(h,a,J){if(!R.RR()){a=void 0; var M=1;g.gp(R.D)&&g.Uk(R.uu)&&R.uu.X("html5_enable_safari_fairplay")&&J===1212433232&&(a="ERROR_HDCP",M=R.uu.X("html5_safari_fairplay_ignore_hdcp")?0:M);R.error("drm.keyerror",M,h,a)}},function(){R.RR()||(M$(R,{onkyadd:1}),R.oR||(R.publish("sessionready"),R.oR=!0))},function(h){R.Ga(h)}),g.z(R,R.K))}; K6i=function(R){var F=R.baseUrl;p5m(F)||R.error("drm.net",2,"t.x");if(!AS(F,"fexp")){var h=["23898307","23914062","23916106","23883098"].filter(function(J){return R.uu.experiments.experiments[J]}); h.length>0&&(R.N.fexp=h.join())}h=g.N(Object.keys(R.N));for(var a=h.next();!a.done;a=h.next())a=a.value,F=DSa(F,a,R.N[a]);return F}; lBL=function(R,F,h){if(!R.RR())if(F){M$(R,{onkmtyp:h});R.status="km";switch(h){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":VU2(R,F);return;default:R.publish("ctmp","message_type",{t:h,l:F.byteLength})}R.aR||(Hf("drm_gk_f",void 0,R.videoData.C),R.aR=!0,R.publish("newsession",R));if(a6(R.D)&&(F=UYi(F),!F))return;F=new Xng(F,++R.requestNumber,R.videoData.C);ek_(F,function(a){C6B(R,a)},function(a,J,M){if(!R.RR()){var v=0; a.B.D>=3&&(v=1,J="drm.net.retryexhausted");M$(R,{onlcsrqerr:J,info:M});R.error(J,v,M);R.shouldRetry(re(v),a)&&cnL(R,a)}}); g.z(R,F);W6_(R,F)}else R.error("drm.unavailable",1,"km.empty")}; VU2=function(R,F){M$(R,{sdpvrq:1});R.S=Date.now();if(R.D.flavor!=="widevine")R.error("drm.provision",1,"e.flavor;f."+R.D.flavor+";l."+F.byteLength);else{var h={cpn:R.videoData.clientPlaybackNonce};Object.assign(h,R.uu.B);h=g.sA("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",h);F={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, F)}),responseType:"arraybuffer"};g.T6(h,F,3,500).then(ua(function(a){a=a.xhr;if(!R.RR()){a=new Uint8Array(a.response);var J=String.fromCharCode.apply(null,a);try{var M=JSON.parse(J)}catch(v){}M&&M.signedResponse?(R.publish("ctmp","drminfo",{provisioning:1}),M=(Date.now()-R.S)/1E3,R.S=NaN,R.publish("ctmp","provs",{et:M.toFixed(3)}),R.K&&R.K.update(a)):(M=M&&M.error&&M.error.message,a="e.parse",M&&(a+=";m."+M),R.error("drm.provision",1,a))}}),ua(function(a){R.RR()||R.error("drm.provision",1,"e."+a.errorCode+ ";c."+(a.xhr&&a.xhr.status))}))}}; vS=function(R){var F;if(F=R.C&&R.K!=null)R=R.K,F=!(!R.B||!R.B.keyStatuses);return F}; W6_=function(R,F){R.status="km";Hf("drm_net_s",void 0,R.videoData.C);var h=new g.tq(R.uu.Vw),a={context:g.Gj(h.config_||g.vm())};a.drmSystem=Rlf[R.D.flavor];a.videoId=R.videoData.videoId;a.cpn=R.videoData.clientPlaybackNonce;a.sessionId=R.sessionId;a.licenseRequest=g.Tf(F.message);a.drmParams=R.videoData.drmParams;isNaN(R.cryptoPeriodIndex)||(a.isKeyRotated=!0,a.cryptoPeriodIndex=R.cryptoPeriodIndex);var J,M,v=!!((J=R.videoData.D)==null?0:(M=J.video)==null?0:M.isHdr());a.drmVideoFeature=v?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(a.context&&a.context.client){if(J=R.uu.B)a.context.client.deviceMake=J.cbrand,a.context.client.deviceModel=J.cmodel,a.context.client.browserName=J.cbr,a.context.client.browserVersion=J.cbrver,a.context.client.osName=J.cos,a.context.client.osVersion=J.cosver;a.context.user=a.context.user||{};a.context.request=a.context.request||{};R.videoData.fI&&(a.context.user.credentialTransferTokens=[{token:R.videoData.fI,scope:"VIDEO"}]);a.context.request.mdxEnvironment=R.videoData.mdxEnvironment|| a.context.request.mdxEnvironment;R.videoData.Ma&&(a.context.user.kidsParent={oauthToken:R.videoData.Ma});g.gp(R.D)&&(a.fairplayKeyId=g.Tf(Tdn(R.fairplayKeyId)));g.Qj(R.uu,g.Wr(R.videoData)).then(function(I){uMi(F,a,h,I);R.status="rs"})}else R.error("drm.net",2,"t.r;ic.0")}; C6B=function(R,F){if(!R.RR())if(M$(R,{onlcsrsp:1}),R.status="rr",F.statusCode!==0)R.error("drm.auth",1,"t.f;c."+F.statusCode,F.errorMessage||void 0);else{Hf("drm_kr_s",void 0,R.videoData.C);if(F.heartbeatParams&&F.heartbeatParams.url&&R.videoData.X("outertube_streaming_data_always_use_staging_license_service")){var h=R.D.D.match(/(.*)youtube.com/g);h&&(F.heartbeatParams.url=h[0]+F.heartbeatParams.url)}F.heartbeatParams&&R.publish("newlicense",F.heartbeatParams);F.D&&(R.L=F.D,R.videoData.PW||R.publish("newlicense", new mXI),R.videoData.PW=!0,R.Y=dy(R.L,function(a){return a.includes("HDR")})); F.B&&(R.uu.X("html5_enable_vp9_fairplay")&&vy(R.D)?(h=g.Tf(Tdn(R.fairplayKeyId),4),R.B[h]={type:F.B[h],status:"unknown"}):R.B=al(F.B,function(a){return{type:a,status:"unknown"}})); MM(R.D)&&(F.message=dd2(g.Tf(F.message)));R.K&&(M$(R,{updtks:1}),R.status="ku",R.K.update(F.message).then(function(){Hf("drm_kr_f",void 0,R.videoData.C);vS(R)||(M$(R,{ksApiUnsup:1}),R.publish("keystatuseschange",R))},function(a){a="msuf.req."+R.requestNumber+";msg."+g.yU(a.message,3); R.error("drm.keyerror",1,a)})); g.gp(R.D)&&R.publish("fairplay_next_need_key_info",R.baseUrl,F.nextFairplayKeyId);R.uu.X("html5_enable_vp9_fairplay")&&vy(R.D)&&R.publish("qualitychange",Fv7(R.L));F.sabrLicenseConstraint&&R.publish("sabrlicenseconstraint",F.sabrLicenseConstraint)}}; cnL=function(R,F){var h=F.B.getValue();h=new g.DY(function(){W6_(R,F)},h); g.z(R,h);h.start();g.SR(F.B);M$(R,{rtyrq:1})}; hlf=function(R,F){for(var h=[],a=g.N(Object.keys(R.B)),J=a.next();!J.done;J=a.next())J=J.value,h.push(J+"_"+R.B[J].type+"_"+R.B[J].status);return h.join(F)}; aw2=function(R){var F={};F[R.status]=vS(R)?hlf(R,"."):R.L.join(".");return F}; Jgm=function(R,F,h){var a={};a.isHdr=F.includes("HDR");switch(F.replace("HDR","").replace("720","")){case "AUDIO":a.trackType=1;break;case "SD":a.trackType=2;break;case "HD":a.trackType=3;break;case "UHD1":a.trackType=4;break;case "UHD2":a.trackType=5;break;default:a.trackType=0}!a.trackType||h[F]||vS(R)&&!gQ(R,F)||(R.authorizedFormats.push(a),h[F]=!0)}; gQ=function(R,F){for(var h in R.B)if(R.B[h].status==="usable"&&R.B[h].type===F)return!0;return!1}; MNa=function(R,F){for(var h in R.B)if(R.B[h].type===F)return R.B[h].status}; M$=function(R,F){var h=h===void 0?!1:h;ES(F);(h||R.uu.Po())&&R.publish("ctmp","drmlog",F)}; vq_=function(R){var F=R[0];R[0]=R[3];R[3]=F;F=R[1];R[1]=R[2];R[2]=F;F=R[4];R[4]=R[5];R[5]=F;F=R[6];R[6]=R[7];R[7]=F}; Fv7=function(R){return g.x7(R,"UHD2")||g.x7(R,"UHD2HDR")?"highres":g.x7(R,"UHD1")||g.x7(R,"UHD1HDR")?"hd2160":g.x7(R,"HD")||g.x7(R,"HDHDR")?"hd1080":g.x7(R,"HD720")||g.x7(R,"HD720HDR")?"hd720":"large"}; UYi=function(R){for(var F="",h=0;h'.charCodeAt(a);R=R.K.createSession("video/mp4",F,h);return new G1(null,null,null,null,R)}; rgB=function(R,F){var h=R.S[F.sessionId];!h&&R.L&&(h=R.L,R.L=null,h.sessionId=F.sessionId,R.S[F.sessionId]=h);return h}; wHg=function(R,F){var h=R.subarray(4);h=new Uint16Array(h.buffer,h.byteOffset,h.byteLength/2);h=String.fromCharCode.apply(null,h).match(/ek=([0-9a-f]+)/)[1];for(var a="",J=0;J19.2999?(R=h.Mv,h=h.Nv,h>=R&&(h=R* .75),F=(R-h)*.5,h=new a$(F,R,R-F-h,this)):h=null;break a;case "widevine":h=new J2(F,this,R);break a;default:h=null}if(this.N=h)g.z(this,this.N),this.N.subscribe("rotated_need_key_info_ready",this.NU,this),this.N.subscribe("log_qoe",this.fB,this);I6(this.uu.experiments);this.fB({cks:this.B.getInfo()})}; sQO=function(R){var F=ijg(R.L);F?F.then(ua(function(){ktB(R)}),ua(function(h){if(!R.RR()){g.y7(h); var a="t.a";h instanceof DOMException&&(a+=";n."+h.name+";m."+h.message);R.publish("licenseerror","drm.unavailable",1,a,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(R.fB({mdkrdy:1}),R.C=!0); R.oR&&(F=ijg(R.oR))}; $Lg=function(R,F,h){R.NQ=!0;h=new EE(F,h);R.uu.X("html5_eme_loader_sync")&&(R.S.get(F)||R.S.set(F,h));QQf(R,h)}; QQf=function(R,F){if(!R.RR()){R.fB({onInitData:1});if(R.uu.X("html5_eme_loader_sync")&&R.videoData.K&&R.videoData.K.B){var h=R.Y.get(F.initData);F=R.S.get(F.initData);if(!h||!F)return;F=h;h=F.initData;R.S.remove(h);R.Y.remove(h)}R.fB({initd:F.initData.length,ct:F.contentType});if(R.B.flavor==="widevine")if(R.fI&&!R.videoData.isLivePlayback)wQ(R);else{if(!(R.uu.X("vp9_drm_live")&&R.videoData.isLivePlayback&&F.K_)){R.fI=!0;h=F.cryptoPeriodIndex;var a=F.B;x3I(F);F.K_||(a&&F.B!==a?R.publish("ctmp","cpsmm", {emsg:a,pssh:F.B}):h&&F.cryptoPeriodIndex!==h&&R.publish("ctmp","cpimm",{emsg:h,pssh:F.cryptoPeriodIndex}));R.publish("widevine_set_need_key_info",F)}}else R.NU(F)}}; ktB=function(R){if(!R.RR())if(R.uu.X("html5_drm_set_server_cert")||vy(R.B)){var F=R.L.setServerCertificate();F?F.then(ua(function(h){R.uu.Po()&&R.publish("ctmp","ssc",{success:h})}),ua(function(h){R.publish("ctmp","ssce",{n:h.name, m:h.message})})).then(ua(function(){Agg(R)})):Agg(R)}else Agg(R)}; Agg=function(R){R.RR()||(R.C=!0,R.fB({onmdkrdy:1}),wQ(R))}; xL_=function(R){return R.B.flavor==="widevine"&&R.videoData.X("html5_drm_cpi_license_key")}; wQ=function(R){if(R.NQ&&R.C&&!R.Uz){for(;R.K.length;){var F=R.K[0],h=xL_(R)?NHg(F):g.Tf(F.initData);if(vy(R.B)&&!F.D)R.K.shift();else{if(R.D.get(h))if(R.B.flavor!=="fairplay"||vy(R.B)){R.K.shift();continue}else R.D.delete(h);x3I(F);break}}R.K.length&&R.createSession(R.K[0])}}; NBi=function(R){var F;if(F=g.db()){var h;F=!((h=R.L.D)==null||!h.getMetrics)}F&&(F=R.L.getMetrics())&&(F=g.BD(F),R.publish("ctmp","drm",{metrics:F}))}; Hjf=function(){var R=oyi();return!(!R||R==="visible")}; TB7=function(R){var F=LvO();F&&document.addEventListener(F,R,!1)}; ygm=function(R){var F=LvO();F&&document.removeEventListener(F,R,!1)}; LvO=function(){if(document.visibilityState)var R="visibilitychange";else{if(!document[wK+"VisibilityState"])return"";R=wK+"visibilitychange"}return R}; q67=function(R){g.d.call(this);var F=this;this.BG=R;this.Wh=0;this.S=this.D=this.N=!1;this.L=0;this.LI=this.BG.W();this.videoData=this.BG.getVideoData();this.K=g.RI(this.LI.experiments,"html5_delayed_retry_count");this.B=new g.DY(function(){F.BG.K2()},g.RI(this.LI.experiments,"html5_delayed_retry_delay_ms")); g.z(this,this.B)}; S6B=function(R,F,h){var a=R.videoData.D,J=R.videoData.L,M=R.LI.X("html5_disable_codec_fallback_for_drm")&&R.videoData.rL();pt(R.BG.getVideoData())&&R.LI.X("html5_gapless_fallback_on_qoe_restart")&&bFn(R.BG,"pe");if((F==="progressive.net.retryexhausted"||F==="fmt.unplayable"||F==="fmt.decode")&&!R.BG.Zt.N&&a&&a.itag==="22")return R.BG.Zt.N=!0,R.Ef("qoe.restart",{reason:"fmt.unplayable.22"}),R.BG.FS(),!0;var v=!1;if(R.videoData.isExternallyHostedPodcast){if(v=R.videoData.Qzn)h.mimeType=v.type,R.dA("3pp", {url:v.url});h.ns="3pp";R.BG.Aj(F,1,"VIDEO_UNAVAILABLE",ES((new g.Bz(F,h,1)).details));return!0}var I=R.Wh+3E4<(0,g.NU)()||R.B.isActive();if(R.LI.X("html5_empty_src")&&R.videoData.isAd()&&F==="fmt.unplayable"&&/Empty src/.test(""+h.msg))return h.origin="emptysrc",R.Ef("auth",h),!0;I||fwn(R.BG.RH())||(h.nonfg="paused",I=!0,R.BG.pauseVideo());(F==="fmt.decode"||F==="fmt.unplayable")&&(J==null?0:ma(J)||ok(J))&&(hST(R.LI.N,J.Qt),h.acfallexp=J.Qt,v=I=!0);!I&&R.K>0&&(R.B.start(),I=!0,h.delayed="1",--R.K); J=R.BG.loader;I||!((a==null?0:OS(a))||(a==null?0:ZK(a)))||M||(hST(R.LI.N,a.Qt),v=I=!0,h.cfallexp=a.Qt);if(!I)return jQI(R,h);M=!1;R.N?R.Wh=(0,g.NU)():M=R.N=!0;I=R.videoData;if(I.Fo){I=I.Fo.nw();var w=Date.now()/1E3+1800;I=I6048E5&&XHm(R,"signature");return!1}; XHm=function(R,F){try{F={detail:"pr."+F},g.Gy(R.LI)&&R.LI.X("html5_reload_by_kabuki_app")?R.BG.Aj("qoe.restart",1,void 0,ES(F),"7"):(R.Ef("qoe.restart",F),window.location.reload())}catch(h){}}; nqO=function(R,F){var h=R.LI.N;h.Y=!1;h.D=!0;R.Ef("qoe.restart",{e:F===void 0?"fmt.noneavailable":F,detail:"hdr"});R.BG.K2(!0)}; uD7=function(R,F,h,a,J,M){this.videoData=R;this.B=F;this.reason=h;this.D=a;this.token=J;this.videoId=M}; EO=function(R,F,h){this.uu=R;this.s5=F;this.BG=h;this.Z=this.S=this.B=this.L=this.Y=this.D=0;this.N=!1;this.C=g.RI(this.uu.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.K=new Map}; P4O=function(R,F,h){!R.uu.X("html5_tv_ignore_capable_constraint")&&g.Y0(R.uu)&&(h=h.compose(dLf(R,F)));return h}; zlL=function(R){if(R.BG.RH().isInline())return JL;var F;R.X("html5_exponential_memory_for_sticky")?F=XU(R.uu.lq,"sticky-lifetime")<.5?"auto":TE[Eq()]:F=TE[Eq()];return g.NR("auto",F,!1,"s")}; tNn=function(R,F){var h,a=Kv7(R,(h=F.B)==null?void 0:h.videoInfos);h=R.BG.getPlaybackRate();return h>1&&a?(R=ca_(R.uu.N,F.B.videoInfos,h),new xn(0,R,!0,"o")):new xn(0,0,!1,"o")}; Kv7=function(R,F){return F&&g.Y0(R.uu)?F.some(function(h){return h.video.fps>32}):!1}; lwi=function(R,F){if(R.X("html5_disable_ustreamer_constraint_for_sabr")&&AL(F.videoData))return JL;var h=R.BG.bJ();R.X("html5_use_video_quality_cap_for_ustreamer_constraint")&&h&&h.Zl>0&&Lo(F.videoData.Wg)&&(R=h.Zl,F.videoData.Wg=new xn(0,R,!1,"u"));return F.videoData.Wg}; dLf=function(R,F){if(g.Y0(R.uu)&&no(R.uu.N,uM.HEIGHT))var h=F.B.videoInfos[0].video.qualityOrdinal;else{var a=R.wq(!!F.B.B);kF(F.videoData)||hC(F.videoData);F=F.B.videoInfos;if(F.length){var J=g.RI(R.uu.experiments,"html5_override_oversend_fraction")||.85,M=F[0].video;M.projectionType!=="MESH"&&M.projectionType!=="EQUIRECTANGULAR"&&M.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||tc||(J=.45);R=g.RI(R.uu.experiments,"html5_viewport_undersend_maximum");for(M=0;M0&&(h=Math.min(h,a));if(a=g.RI(R.uu.experiments,"html5_max_vertical_resolution")){R=4320;for(J=0;Ja&&(R=Math.min(R,M.video.qualityOrdinal));if(R<4320){for(J=a=0;J32){J=!0;break a}}J=!1}J&&(h=Math.min(h,a));(a=g.RI(R.uu.experiments,"html5_live_quality_cap"))&&F.videoData.isLivePlayback&&(h=Math.min(h,a));h=VNi(R,F,h);R=g.RI(R.uu.experiments,"html5_byterate_soft_cap");return new xn(0,h===4320?0:h,!1,"d",R)}; C4m=function(R){var F,h,a,J;return g.u(function(M){switch(M.D){case 1:return R.B.B&&typeof((F=navigator.mediaCapabilities)==null?void 0:F.decodingInfo)==="function"?g.m(M,Promise.resolve(),2):M.return(Promise.resolve());case 2:h=g.N(R.B.videoInfos),a=h.next();case 3:if(a.done){M.G$(0);break}J=a.value;return g.m(M,bB7(J),4);case 4:a=h.next(),M.G$(3)}})}; WvL=function(R,F){if(!F.videoData.D||R.X("html5_disable_performance_downgrade"))return!1;Date.now()-R.Y>6E4&&(R.D=0);R.D++;R.Y=Date.now();if(R.D!==4)return!1;cgi(R,F.videoData.D);return!0}; FYg=function(R,F,h,a){if(!F||!h||!F.videoData.D)return!1;var J=g.RI(R.uu.experiments,"html5_df_downgrade_thresh"),M=R.X("html5_log_media_perf_info");if(!((0,g.NU)()-R.L<5E3?0:M||J>0))return!1;var v=((0,g.NU)()-R.L)/1E3;R.L=(0,g.NU)();h=h.getVideoPlaybackQuality();if(!h)return!1;var I=h.droppedVideoFrames-R.S,w=h.totalVideoFrames-R.Z;R.S=h.droppedVideoFrames;R.Z=h.totalVideoFrames;var E=h.displayCompositedVideoFrames===0?0:h.displayCompositedVideoFrames||-1;M&&R.uu.Po()&&R.BG.dA("ddf",{dr:h.droppedVideoFrames, de:h.totalVideoFrames,comp:E});if(a)return R.B=0,!1;if((w-I)/v>R.C||!J||g.Y0(R.uu))return!1;R.B=(w>60?I/w:0)>J?R.B+1:0;if(R.B!==3)return!1;cgi(R,F.videoData.D);R.BG.dA("dfd",Object.assign({dr:h.droppedVideoFrames,de:h.totalVideoFrames},RhO()));return!0}; cgi=function(R,F){var h=F.Qt,a=F.video.fps,J=F.video.qualityOrdinal-1,M=R.K;F=""+h+(a>49?"p60":a>32?"p48":"");h=cI(h,a,M);J>0&&(h=Math.min(h,J));if(!BS.has(F)&&Yn().includes(F)){var v=h;h=rV();+h[F]>0&&(v=Math.min(+h[F],v));h[F]!==v&&(h[F]=v,g.fn("yt-player-performance-cap",h,2592E3))}else if(BS.has(F)||M==null){a:{v=v===void 0?!0:v;a=Yn().slice();if(v){if(a.includes(F))break a;a.push(F)}else{if(!a.includes(F))break a;a.splice(a.indexOf(F),1)}g.fn("yt-player-performance-cap-active-set",a,2592E3)}CL.set(F, h)}else BS.add(F),M==null||M.set(F,h);R.BG.Ua()}; hhI=function(R,F){if(!F.B.B)return R.N?new xn(0,360,!1,"b"):JL;for(var h=!1,a=!1,J=g.N(F.B.videoInfos),M=J.next();!M.done;M=J.next())OS(M.value)?h=!0:a=!0;h=h&&a;a=0;J=g.RI(R.uu.experiments,"html5_performance_cap_floor");J=R.uu.D?240:J;F=g.N(F.B.videoInfos);for(M=F.next();!M.done;M=F.next()){var v=M.value;if(!h||!OS(v))if(M=cI(v.Qt,v.video.fps,R.K),v=v.video.qualityOrdinal,Math.max(M,J)>=v){a=v;break}}return new xn(0,a,!1,"b")}; a3m=function(R,F){var h=R.BG.RH();return h.isInline()&&!F.CN?new xn(0,480,!1,"v"):AL(F)?JL:h.isBackground()&&$G()/1E3>60&&!g.Y0(R.uu)?new xn(0,360,!1,"v"):JL}; J2m=function(R,F,h){if(R.uu.experiments.jl("html5_disable_client_autonav_cap_for_onesie")&&F.fetchType==="onesie"||g.Y0(R.uu)&&(Eq(-1)>=1080||F.osid))return JL;var a=g.RI(R.uu.experiments,"html5_autonav_quality_cap"),J=g.RI(R.uu.experiments,"html5_autonav_cap_idle_secs");return a&&F.isAutonav&&$G()/1E3>J?(h&&(a=VNi(R,h,a)),new xn(0,a,!1,"e")):JL}; VNi=function(R,F,h){if(R.X("html5_optimality_defaults_chooses_next_higher")&&h)for(R=F.B.videoInfos,F=1;F=0||(R.provider.BG.getVisibilityState()===3?R.N=!0:(R.B=g.R$(R.provider),R.delay.start()))}; gW_=function(R){if(!(R.D<0)){var F=g.R$(R.provider),h=F-R.L;R.L=F;R.playerState.state===8?R.playTimeSecs+=h:R.playerState.isBuffering()&&!g.V(R.playerState,16)&&(R.rebufferTimeSecs+=h)}}; G12=function(R){var F;switch((F=R.uu.playerCanaryStage)==null?void 0:F.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"}}; I3L=function(R){return window.PressureObserver&&new window.PressureObserver(R)}; iz2=function(R){R=R===void 0?I3L:R;g.d.call(this);var F=this;try{this.K=R(function(a){F.D=a.at(-1)}); var h;this.L=(h=this.K)==null?void 0:h.observe("cpu",{sampleInterval:2E3}).catch(function(a){a instanceof DOMException&&(F.B=a)})}catch(a){a instanceof DOMException&&(this.B=a)}}; wSB=function(R){var F={},h=window.h5vcc;F.hwConcurrency=navigator.hardwareConcurrency;R.B&&(F.cpe=R.B.message);R.D&&(F.cpt=R.D.time,F.cps=R.D.state);if(h==null?0:h.cVal)F.cb2s=h.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),F.cb5s=h.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),F.cb30s=h.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return F}; EWi=function(R){var F;g.u(function(h){switch(h.D){case 1:return g.Hi(h,2),g.m(h,R.L,4);case 4:g.yn(h,3);break;case 2:g.f_(h);case 3:(F=R.K)==null||F.disconnect(),g.Na(h)}})}; r27=function(R,F){F?BQm.test(R):(R=g.Ff(R),Object.keys(R).includes("cpn"))}; s$L=function(R,F,h,a,J,M,v){var I={format:"RAW"},w={};if(J3(R)&&Ml()){if(v){var E;((E=YO7.uaChPolyfill)==null?void 0:E.state.type)!==2?v=null:(v=YO7.uaChPolyfill.state.data.values,v={"Synth-Sec-CH-UA-Arch":v.architecture,"Synth-Sec-CH-UA-Model":v.model,"Synth-Sec-CH-UA-Platform":v.platform,"Synth-Sec-CH-UA-Platform-Version":v.platformVersion,"Synth-Sec-CH-UA-Full-Version":v.uaFullVersion});w=Object.assign(w,v);I.withCredentials=!0}(v=g.Kp("EOM_VISITOR_DATA"))?w["X-Goog-EOM-Visitor-Id"]=v:a?w["X-Goog-Visitor-Id"]= a:g.Kp("VISITOR_DATA")&&(w["X-Goog-Visitor-Id"]=g.Kp("VISITOR_DATA"));h&&(w["X-Goog-PageId"]=h);(a=F.KI)&&!wG(F)&&(w["X-Goog-AuthUser"]=a);J&&(w.Authorization="Bearer "+J);F.X("enable_datasync_id_header_in_web_vss_pings")&&F.x0&&F.datasyncId&&(w["X-YouTube-DataSync-Id"]=F.datasyncId);v||w["X-Goog-Visitor-Id"]||J||h||a?I.withCredentials=!0:F.X("html5_send_cpn_with_options")&&BQm.test(R)&&(I.withCredentials=!0)}Object.keys(w).length>0&&(I.headers=w);M&&(I.onFinish=M);return Object.keys(I).length>1? I:null}; pS2=function(R,F,h,a,J,M,v,I){Ml()&&h.token&&(R=h3(R,{ctt:h.token,cttype:h.Ag,mdx_environment:h.mdxEnvironment}));a.X("net_pings_low_priority")&&(F||(F={}),F.priority="low");M||I&&a.X("nwl_skip_retry")?(F==null?F={}:r27(R,a.X("html5_assert_cpn_with_regex")),v?zj().sendAndWrite(R,F):zj().sendThenWrite(R,F,I)):F?(r27(R,a.X("html5_assert_cpn_with_regex")),vyO(R,F)):g.Sl(R,J)}; k1f=function(R){for(var F=[],h=0;h0&&h>0&&!R.D&&R.K<1E7)try{R.L=R.N({sampleInterval:F,maxBufferSize:h});var a;(a=R.L)==null||a.addEventListener("samplebufferfull",function(){return g.u(function(J){if(J.D==1)return g.m(J,R.stop(),2);A2L(R);g.Na(J)})})}catch(J){R.D=$$L(J.message)}}; sO=function(R,F){var h,a;return!!((h=window.h5vcc)==null?0:(a=h.settings)==null?0:a.set(R,F))}; NQf=function(){var R,F,h,a=(R=window.h5vcc)==null?void 0:(F=R.settings)==null?void 0:(h=F.getPersistentSettingAsString)==null?void 0:h.call(F,"cpu_usage_tracker_intervals");if(a!=null){var J;R=(J=JSON.parse(a))!=null?J:[];J=R.filter(function(E){return E.type==="total"}).map(function(E){return E.seconds}); F=g.N(x$i);for(h=F.next();!h.done;h=F.next())h=h.value,J.indexOf(h)===-1&&R.push({type:"total",seconds:h});var M,v;(M=window.h5vcc)==null||(v=M.settings)==null||v.set("cpu_usage_tracker_intervals_enabled",1);var I,w;(I=window.h5vcc)==null||(w=I.settings)==null||w.set("cpu_usage_tracker_intervals",JSON.stringify(R))}}; Hzf=function(){var R=window.H5vccPlatformService,F="";if(R&&R.has("dev.cobalt.coat.clientloginfo")&&(R=R.open("dev.cobalt.coat.clientloginfo",function(){}))){var h=R.send(new ArrayBuffer(0)); h&&(F=String.fromCharCode.apply(String,g.S(new Uint8Array(h))));R.close()}return F}; g.QE=function(R){g.d.call(this);var F=this;this.provider=R;this.logger=new g.s3("qoe");this.B=new Map;this.sequenceNumber=1;this.aR=NaN;this.Wc="N";this.Z=this.y4=this.Zj=this.oR=this.D=0;this.It=this.Sl=this.S=this.PG="";this.Ho=this.NQ=NaN;this.FW=0;this.Ma=-1;this.Xf=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.EP=this.isEmbargoed=this.fI=this.isOffline=this.isBuffering=!1;this.Ym=[];this.C=null;this.uY=this.L=this.nI=this.Y=!1;this.K=-1;this.Fo=!1;this.gf=new g.DY(this.N6,750,this);this.wc= this.adCpn=this.Uz=this.contentCpn="";this.adFormat=void 0;this.AT=0;this.HG=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.i9=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.iY=!1;this.gW=NaN;this.Oz=0;this.Sw=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.YH=!1;this.rf={KU:function(a){F.KU(a)}, zsn:function(){return F.N}, G5:function(){return F.contentCpn}, YXb:function(){return F.Uz}, reportStats:function(){F.reportStats()}, hsz:function(){return F.B.get("cat")||[]}, nm:function(a){return F.B.get(a)||[]}, MVo:function(){return F.B}, XRI:function(){return 0}, rOo:function(){return{adCpn:F.adCpn,wc:F.wc,adFormat:F.adFormat}}}; this.KI=this.provider.uu.X("html5_qoe_relaxed_reporting");var h=g.RI(this.provider.uu.experiments,"html5_qoe_proto_mock_length");h&&!pz.length&&(pz=k1f(h));g.z(this,this.gf);try{navigator.getBattery().then(function(a){F.C=a})}catch(a){}g.kW(this,0,"vps",["N"]); R.uu.Po()&&(this.Oz=(0,g.NU)(),this.gW=g.B6(function(){var a=(0,g.NU)(),J=a-F.Oz;J>500&&F.dA("vmlock",{diff:J.toFixed()});F.Oz=a},250)); this.provider.videoData.Cr&&(this.remoteControlMode=LYL[this.provider.videoData.Cr]||0);this.provider.videoData.ZY&&(h=iAm(this.provider.videoData.ZY),h==null?0:h.length)&&(this.remoteConnectedDevices=h);R.uu.Po()&&(this.T$=new iz2,g.z(this,this.T$));h=g.RI(R.uu.experiments,"html5_js_self_profiler_sample_interval_ms");R=g.RI(R.uu.experiments,"html5_js_self_profiler_max_samples");h>0&&R>0&&(this.IR=new YW(h,R),g.z(this,this.IR))}; $W=function(R,F,h){var a=R.B.get(F);a?a.push(h):R.B.set(F,[h])}; g.kW=function(R,F,h,a){$W(R,h,F.toFixed(3)+":"+a.join(":"))}; TQO=function(R,F){var h=R.adCpn||R.provider.videoData.clientPlaybackNonce,a=R.provider.getCurrentTime(h);g.kW(R,F,"cmt",[a.toFixed(3)]);h=a=R.provider.x6(h);if((!R.N||R.provider.uu.X("html5_shorts_gapless_no_gllat")&&pt(R.provider.videoData)?0:h*1E3>R.N.AU+100)&&R.N){var J=R.N;h=J.isAd;a=a*1E3-J.AU;R.dh=F*1E3-J.R0Q-a-J.aNG;J=(0,g.NU)()-a;F=R.dh;a=R.provider.videoData;var M=a.isAd();if(h||M){M=(h?"ad":"video")+"_to_"+(M?"ad":"video");var v={};a.S&&(v.cttAuthInfo={token:a.S,videoId:a.videoId});v.startTime= J-F;TQ(M,v);g.L4({targetVideoId:a.videoId,targetCpn:a.clientPlaybackNonce},M);Hf("pbs",J,M)}else J=R.provider.BG.zV(),J.S!==a.clientPlaybackNonce?(J.N=a.clientPlaybackNonce,J.D=F):a.XO()||g.qN(new g.Pv("CSI timing logged before gllat",{cpn:a.clientPlaybackNonce}));R.dA("gllat",{l:R.dh.toFixed(),prev_ad:+h});delete R.N}}; A2=function(R,F){F=F===void 0?NaN:F;F=F>=0?F:g.R$(R.provider);var h=R.provider.BG.pA(),a=h.lz-(R.NQ||0);a>0&&g.kW(R,F,"bwm",[a,(h.xz-(R.Ho||0)).toFixed(3)]);isNaN(R.NQ)&&h.lz&&R.isOffline&&R.KU(!1);R.NQ=h.lz;R.Ho=h.xz;isNaN(h.bandwidthEstimate)||g.kW(R,F,"bwe",[h.bandwidthEstimate.toFixed(0)]);R.provider.uu.Po()&&Object.keys(h.B).length!==0&&R.dA("bwinfo",h.B);if(R.provider.uu.Po()||R.provider.uu.X("html5_log_meminfo"))a=nF2(),Object.values(a).some(function(M){return M!==void 0})&&R.dA("meminfo", a); if(R.provider.uu.Po()){var J;(a=(J=R.T$)==null?void 0:wSB(J))&&Object.values(a).some(function(M){return M!=null})&&R.dA("cpuinfo",a)}R.IR&&R.dA("jsprof",R.IR.flush()); R.C&&g.kW(R,F,"bat",[R.C.level,R.C.charging?"1":"0"]);J=R.provider.BG.getVisibilityState();R.Ma!==J&&(g.kW(R,F,"vis",[J]),R.Ma=J);TQO(R,F);(J=y2I(R.provider))&&J!==R.FW&&(g.kW(R,F,"conn",[J]),R.FW=J);qOa(R,F,h)}; qOa=function(R,F,h){if(!isNaN(h.HY)){var a=h.HY;h.D96E3&&(new g.DY(R.reportStats,0,R)).start()}}; Zza=function(R){R.provider.videoData.n2&&xW(R,"prefetch");R.provider.videoData.YH&&R.dA("reload",{r:R.provider.videoData.reloadReason,ct:R.provider.videoData.YH});R.provider.videoData.nI&&xW(R,"monitor");R.provider.videoData.isLivePlayback&&xW(R,"live");Y9&&xW(R,"streaming");R.provider.videoData.Cr&&R.dA("ctrl",{mode:R.provider.videoData.Cr},!0);if(R.provider.videoData.ZY){var F=R.provider.videoData.ZY.replace(/,/g,"_");R.dA("ytp",{type:F},!0)}R.provider.videoData.zm&&(F=R.provider.videoData.zm.replace(/,/g, "."),R.dA("ytrexp",{ids:F},!0));F=R.provider.videoData;var h=R.provider.uu.X("enable_white_noise")||R.provider.uu.X("enable_webgl_noop"),a=g.jZ(F)||g.Pr(F)||g.zT(F)||g.Kt(F);(h||a)&&(h=(0,g.N$)())&&R.B.set("gpu",[h]);hC(R.provider.videoData)&&g.kW(R,g.R$(R.provider),"dt",["1"]);R.provider.X("html5_record_is_offline_on_playback_attempt_start")&&F.cotn&&!hC(F)&&R.KU(!0);R.provider.uu.Po()&&(F=(0,g.NU)()-R.provider.uu.Y6,R.dA("playerage",{secs:Math.pow(1.6,Math.round(Math.log(F/1E3)/Math.log(1.6))).toFixed()})); R.L=!0;R.aR=g.B6(function(){R.reportStats()},1E4)}; SOL=function(R,F,h){var a=g.R$(R.provider);bz_(R,a,F,0,h);A2(R,a);j$7(R)}; bz_=function(R,F,h,a,J){var M=R.provider.uu.B.cbrver;R.provider.uu.B.cbr==="Chrome"&&/^96[.]/.test(M)&&h==="net.badstatus"&&/rc\.500/.test(J)&&Ozf(R,3);R.provider.uu.X("html5_use_ump")&&/b248180278/.test(J)&&Ozf(R,4);M=R.provider.getCurrentTime(R.adCpn||R.provider.videoData.clientPlaybackNonce);a=a===1?"fatal":"";h=[h,a,M.toFixed(3)];a&&(J+=";a6s."+DC());J&&h.push(m$2(J));g.kW(R,F,"error",h);R.L=!0}; LXL=function(R,F){var h=g.R$(R.provider);if(!R.provider.uu.experiments.jl("html5_refactor_sabr_video_format_selection_logging")||F.B.id!==R.PG){var a=[F.B.id,F.D,R.PG,F.reason];F.token&&a.push(F.token);g.kW(R,h,"vfs",a);R.PG=F.B.id;a=R.provider.BG.getPlayerSize();if(a.width>0&&a.height>0){a=[Math.round(a.width),Math.round(a.height)];var J=g.IX();J>1&&a.push(J);g.kW(R,h,"view",a)}R.nI||(R.provider.uu.Po()&&xW(R,"rqs2"),R.provider.videoData.B&&Zo(R.provider.videoData.B)&&R.B.set("preload",["1"]));R.nI= !0;R.L=!0}F.reason==="m"&&++R.AT===100&&Ozf(R,2);g.kW(R,h,"vps",[R.Wc]);R.KI||R.reportStats(h)}; oWL=function(R){R.K>=0||(R.provider.uu.PJ||R.provider.BG.getVisibilityState()!==3?R.K=g.R$(R.provider):R.Fo=!0)}; HFi=function(R,F,h){if(R.provider.uu.experiments.jl("html5_refactor_sabr_audio_format_selection_logging")){F=h.B;var a=[F.audio&&F.video?F.vv?F.vv:"":F.id];F.jw&&F.jw.id&&a.push(F.jw.id);F=a.join(";");F!==R.S&&(a=[F,R.S,h.reason],h.token&&a.push(h.token),g.kW(R,g.R$(R.provider),"afs",a),R.S=F)}else h.B.id!==R.S&&(a=[h.B.id,R.S,h.reason],h.token&&a.push(h.token),g.kW(R,F,"afs",a),R.S=h.B.id)}; xW=function(R,F){$W(R,"cat",F)}; XSi=function(R,F,h,a,J){var M=g.R$(R.provider);F!==1&&F!==3&&F!==5||g.kW(R,M,"vps",[R.Wc]);$W(R,"xvt","t."+M.toFixed(3)+";m."+J.toFixed(3)+";g.2;tt."+F+";np.0;c."+h+";d."+a)}; Ozf=function(R,F){R.uY||($W(R,"fcnz",""+F),R.uY=!0)}; m$2=function(R){/[^a-zA-Z0-9;.!_-]/.test(R)&&(R=R.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return R}; eha=function(R){this.provider=R;this.Y=!1;this.B=0;this.L=-1;this.EX=NaN;this.K=0;this.segments=[];this.S=this.N=0;this.previouslyEnded=!1;this.C=this.provider.BG.getVolume();this.Z=this.provider.BG.isMuted()?1:0;this.D=HS(this.provider)}; Lz=function(R){R.D.startTime=R.K;R.D.endTime=R.B;var F=!1;R.segments.length&&g.pg(R.segments).isEmpty()?(R.segments[R.segments.length-1].previouslyEnded&&(R.D.previouslyEnded=!0),R.segments[R.segments.length-1]=R.D,F=!0):R.segments.length&&R.D.isEmpty()||(R.segments.push(R.D),F=!0);F?R.D.endTime===0&&(R.previouslyEnded=!1):R.D.previouslyEnded&&(R.previouslyEnded=!0);R.N+=R.B-R.K;R.D=HS(R.provider);R.D.previouslyEnded=R.previouslyEnded;R.previouslyEnded=!1;R.K=R.B}; udi=function(R){nWL(R);R.S=g.B6(function(){R.update()},100); R.EX=g.R$(R.provider);R.D=HS(R.provider)}; nWL=function(R){g.Y$(R.S);R.S=NaN}; d$2=function(R,F,h){h-=R.EX;return F===R.B&&h>.5}; PKL=function(R,F,h,a){this.uu=F;this.It=h;this.segments=[];this.experimentIds=[];this.Fo=this.gW=this.isFinal=this.delayThresholdMet=this.Sw=this.Ma=this.autoplay=this.autonav=!1;this.FW="yt";this.S=[];this.Y=this.C=null;this.sendVisitorIdHeader=this.T$=!1;this.Z=this.pageId="";this.N=h==="watchtime";this.K=h==="playback";this.Uz=h==="atr";this.Ig=h==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Uz?"/api/stats/"+h:"//"+F.DK+"/api/stats/"+h;a&&(this.gW=a.fs,a.rtn&&(this.Y=a.rtn),this.N?(this.playerState= a.state,a.rti>0&&(this.C=a.rti)):(this.g$=a.mos,this.Nx=a.volume,a.at&&(this.adType=a.at)),a.autonav&&(this.autonav=a.autonav),a.inview!=null&&(this.Xf=a.inview),a.size&&(this.Ho=a.size),a.playerwidth&&(this.Xk=a.playerwidth),a.playerheight&&(this.S9=a.playerheight));this.AT=g.sR(F.B);this.Z=sk(F.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.YH=g.sR(F.YH);this.PJ=F.Ho;this.experimentIds=D8L(F.experiments);this.IR=F.i9;this.FW=F.oR;this.region=F.region; this.userAge=F.userAge;this.nI=F.n2;this.Ym=$G();this.sendVisitorIdHeader=F.sendVisitorIdHeader;this.fI=F.X("vss_pings_using_networkless")||F.X("kevlar_woffle");this.Y6=F.X("vss_final_ping_send_and_write");this.Oz=F.X("vss_use_send_and_write");this.pageId=F.pageId;this.w$=F.X("vss_playback_use_send_and_write");F.livingRoomAppMode&&(this.livingRoomAppMode=F.livingRoomAppMode);this.lq=F.L&&F.X("embeds_append_synth_ch_headers");g.Py(F)&&(this.NQ=F.Uz);g.gK(g.cy(F))&&this.S.push(1);this.accessToken=g.Wr(R); R.u8[this.It]?this.L=R.u8[this.It]:R.u8.playback&&(this.L=R.u8.playback);this.adFormat=R.adFormat;this.adQueryId=R.adQueryId;this.autoplay=fpf(R);this.K&&(this.Ma=R.lj&&VC(R)==="adunit"?!0:!1);this.autonav=R.isAutonav||this.autonav;this.contentVideoId=Ct(R);this.clientPlaybackNonce=R.clientPlaybackNonce;this.Sw=R.bq;R.S&&(this.aR=R.S,this.iY=R.H4);R.mdxEnvironment&&(this.mdxEnvironment=R.mdxEnvironment);this.B=R.FW;this.EP=R.EP;R.D&&(this.i9=R.D.itag,R.L&&R.L.itag!==this.i9&&(this.uY=R.L.itag));R.B&& Zo(R.B)&&(this.offlineDownloadUserChoice="1");this.eventLabel=VC(R);this.Fo=R.w$?!1:R.Nx;this.xO=R.Tt;if(F=mS(R))this.DG=F;this.d$=R.tE;this.partnerId=R.partnerId;this.eventId=R.eventId;this.playlistId=R.iX||R.playlistId;this.Jn=R.Jn;this.Cr=R.Cr;this.ZY=R.ZY;this.Oa=R.Oa;this.subscribed=R.subscribed;this.videoId=R.videoId;this.videoMetadata=R.videoMetadata;this.visitorData=R.visitorData;this.osid=R.osid;this.tK=R.tK;this.referrer=R.referrer;this.dn=R.nt||R.dn;this.HG=R.A7;this.Kb=R.Kb;this.userGenderAge= R.userGenderAge;this.e6=R.e6;this.embedsRct=R.embedsRct;this.embedsRctn=R.embedsRctn;g.Py(this.uu)&&R.mutedAutoplay&&(R.mutedAutoplayDurationMode===2&&R.limitedPlaybackDurationInSeconds===0&&R.endSeconds===0?this.S.push(7):this.S.push(2));R.isEmbedsShortsMode(new g.t7(this.Xk,this.S9),!!this.playlistId)&&this.S.push(3);g.wu(R)&&this.S.push(4);this.PG=R.Bq;R.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=R.compositeLiveIngestionOffsetToken)}; zhf=function(R,F){var h=R.sendVisitorIdHeader?R.visitorData:void 0;return g.Qj(R.uu,R.accessToken).then(function(a){return s$L(R.uri,R.uu,R.pageId,h,a,F,R.lq)})}; l3L=function(R,F){return function(){R.uu.X("html5_simplify_pings")?(R.B=R.Sl,R.gf=F(),R.Ym=0,R.send()):zhf(R).then(function(h){var a=KY7(R);a.cmt=a.len;a.lact="0";var J=F().toFixed(3);a.rt=Number(J).toString();a=g.sA(R.uri,a);R.uu.X("vss_through_gel_double")&&txn(a);R.fI?(h==null&&(h={}),R.Oz?zj().sendAndWrite(a,h):zj().sendThenWrite(a,h)):h?g.x$(a,h):g.Sl(a)})}}; KY7=function(R){var F={ns:R.FW,el:R.eventLabel,cpn:R.clientPlaybackNonce,ver:2,cmt:R.D(R.B),fmt:R.i9,fs:R.gW?"1":"0",rt:R.D(R.gf),adformat:R.adFormat,content_v:R.contentVideoId,euri:R.PJ,lact:R.Ym,live:R.DG,cl:(775466715).toString(),mos:R.g$,state:R.playerState,volume:R.Nx};R.subscribed&&(F.subscribed="1");Object.assign(F,R.AT);R.Z==="all"?Object.assign(F,R.YH):R.Z==="once"&&R.K&&Object.assign(F,R.YH);R.autoplay&&(F.autoplay="1");R.Ma&&(F.sautoplay="1");R.Sw&&(F.dni="1");!R.N&&R.NQ&&(F.epm=D$L[R.NQ]); R.isFinal&&(F["final"]="1");R.Fo&&(F.splay="1");R.EP&&(F.delay=R.EP);R.IR&&(F.hl=R.IR);R.region&&(F.cr=R.region);R.userGenderAge&&(F.uga=R.userGenderAge);R.userAge!==void 0&&R.nI&&(F.uga=R.nI+R.userAge);R.Sl!==void 0&&(F.len=R.D(R.Sl));!R.N&&R.experimentIds.length>0&&(F.fexp=R.experimentIds.toString());R.Y!==null&&(F.rtn=R.D(R.Y));R.dn&&(F.feature=R.dn);R.Cr&&(F.ctrl=R.Cr);R.ZY&&(F.ytr=R.ZY);R.uY&&(F.afmt=R.uY);R.offlineDownloadUserChoice&&(F.ODUC=R.offlineDownloadUserChoice);R.oR&&(F.lio=R.D(R.oR)); R.N?(F.idpj=R.xO,F.ldpj=R.d$,R.delayThresholdMet&&(F.dtm="1"),R.C!=null&&(F.rti=R.D(R.C)),R.e6&&(F.ald=R.e6),R.compositeLiveIngestionOffsetToken&&(F.clio=R.compositeLiveIngestionOffsetToken)):R.adType!==void 0&&(F.at=R.adType);R.Ho&&(R.K||R.N)&&(F.size=R.Ho);R.K&&R.S.length&&(F.pbstyle=R.S.join(","));R.Xf!=null&&(R.K||R.N)&&(F.inview=R.D(R.Xf));R.N&&(F.volume=T1(R,g.p1(R.segments,function(a){return a.volume})),F.st=T1(R,g.p1(R.segments,function(a){return a.startTime})),F.et=T1(R,g.p1(R.segments,function(a){return a.endTime})), dy(R.segments,function(a){return a.playbackRate!==1})&&(F.rate=T1(R,g.p1(R.segments,function(a){return a.playbackRate}))),dy(R.segments,function(a){return a.B!=="-"})&&(F.als=g.p1(R.segments,function(a){return a.B}).join(",")),dy(R.segments,function(a){return a.previouslyEnded})&&(F.pe=g.p1(R.segments,function(a){return""+ +a.previouslyEnded}).join(","))); F.muted=T1(R,g.p1(R.segments,function(a){return a.muted?1:0})); dy(R.segments,function(a){return a.visibilityState!==0})&&(F.vis=T1(R,g.p1(R.segments,function(a){return a.visibilityState}))); dy(R.segments,function(a){return a.connectionType!==0})&&(F.conn=T1(R,g.p1(R.segments,function(a){return a.connectionType}))); dy(R.segments,function(a){return a.D!==0})&&(F.blo=T1(R,g.p1(R.segments,function(a){return a.D}))); dy(R.segments,function(a){return!!a.K})&&(F.blo=g.p1(R.segments,function(a){return a.K}).join(",")); dy(R.segments,function(a){return!!a.compositeLiveStatusToken})&&(F.cbs=g.p1(R.segments,function(a){return a.compositeLiveStatusToken}).join(",")); dy(R.segments,function(a){return a.L!=="-"})&&(F.cc=g.p1(R.segments,function(a){return a.L}).join(",")); dy(R.segments,function(a){return a.clipId!=="-"})&&(F.clipid=g.p1(R.segments,function(a){return a.clipId}).join(",")); if(dy(R.segments,function(a){return!!a.audioId})){var h="au"; R.K&&(h="au_d");F[h]=g.p1(R.segments,function(a){return a.audioId}).join(",")}Ml()&&R.aR&&(F.ctt=R.aR,F.cttype=R.iY,F.mdx_environment=R.mdxEnvironment); R.Ig&&(F.etype=R.KI!==void 0?R.KI:0);R.HG&&(F.uoo=R.HG);R.livingRoomAppMode&&R.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(F.clram=VxI[R.livingRoomAppMode]||R.livingRoomAppMode);R.L?U$B(R,F):(F.docid=R.videoId,F.referrer=R.referrer,F.ei=R.eventId,F.of=R.tK,F.osid=R.osid,F.vm=R.videoMetadata,R.adQueryId&&(F.aqi=R.adQueryId),R.autonav&&(F.autonav="1"),R.playlistId&&(F.list=R.playlistId),R.Oa&&(F.ssrt="1"),R.Kb&&(F.upt=R.Kb));R.K&&(R.embedsRct&&(F.rct=R.embedsRct),R.embedsRctn&&(F.rctn= R.embedsRctn),R.compositeLiveIngestionOffsetToken&&(F.clio=R.compositeLiveIngestionOffsetToken));R.PG&&(F.host_cpn=R.PG);return F}; U$B=function(R,F){if(F&&R.L){var h=new Set(["q","feature","mos"]),a=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),J=new Set(["aqi","autonav","list","ssrt","upt"]);R.L.ns==="3pp"&&(F.ns="3pp");for(var M=g.N(Object.keys(R.L)),v=M.next();!v.done;v=M.next())v=v.value,a.has(v)||h.has(v)||J.has(v)&&!R.L[v]||(F[v]=R.L[v])}}; T1=function(R,F){return g.p1(F,R.D).join(",")}; txn=function(R){R.indexOf("watchtime")!==-1&&g.MU("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:R}})}; CKB=function(R,F){R.attestationResponse&&zhf(R).then(function(h){h=h||{};h.method="POST";h.postParams={atr:R.attestationResponse};R.fI?R.Oz?zj().sendAndWrite(F,h):zj().sendThenWrite(F,h):g.x$(F,h)})}; yE=function(R){g.d.call(this);this.provider=R;this.S="paused";this.N=NaN;this.Y=[10,10,10,40];this.C=this.Z=0;this.aR=this.Uz=this.KI=this.oR=this.K=!1;this.D=this.L=NaN;this.logger=new g.s3("vss");this.B=new eha(R)}; hp2=function(R){if(!R.K){R.provider.videoData.k9===16623&&g.qN(Error("Playback for EmbedPage"));var F=q$(R,"playback");R.Y=c2B(R);udi(R.B);F.Y=fz(R);R.D>0&&(F.B-=R.D);F.send();if(R.provider.videoData.l2){F=R.provider.uu;var h=R.provider.videoData,a={html5:"1",video_id:h.videoId,cpn:h.clientPlaybackNonce,ei:h.eventId,ptk:h.l2,oid:h.HZ,ptchn:h.Bz,pltype:h.V3,content_v:Ct(h)};h.Oc&&Object.assign(a,{m:h.Oc});F=g.sA(F.OJ+"ptracking",a);WYi(R,F)}R.provider.videoData.EP||(RpB(R),FEi(R));R.K=!0;R=R.B;R.B= R.x6();R.EX=g.R$(R.provider);!(R.K===0&&R.B<5)&&R.B-R.K>2&&(R.K=R.B);R.Y=!0}}; c2B=function(R){var F=R.provider.videoData.Tt,h=R.provider.videoData.tE,a=[10+F,10,10,40+h-F,40],J,M=(J=R.provider.videoData.getPlayerResponse())==null?void 0:J.playbackTracking,v=M==null?void 0:M.videostatsScheduledFlushWalltimeSeconds;J=M==null?void 0:M.videostatsDefaultFlushIntervalSeconds;if(!(v&&v.length>0&&J))return R.logger.info("Missing valid scheduled pings config "+v+" "+J),a;F=[v[0]+F].concat(g.S(v.slice(1).map(function(I,w){return I-v[w]})),[J+h-F, J]);return F.some(function(I){return I<0})?(R.logger.B(347111855,"Neg vss scheduled pings "+v+" "+J),a):F}; fz=function(R,F){F=F===void 0?NaN:F;var h=g.R$(R.provider);F=isNaN(F)?h:F;F=Math.ceil(F);var a=R.Y[R.Z];R.Z+11E3;!(M.length>1)&&M[0].isEmpty()||I||(v.Y=fz(R,J));v.send();R.C++}},(J-h)*1E3); return R.L=J}; jx=function(R){g.rb(R.N);R.N=NaN}; aEm=function(R){R.B.update();R=R.B;R.segments.length&&R.B===R.K||Lz(R);var F=R.segments;R.segments=[];return F}; q$=function(R,F){var h=Mzf(R.provider);Object.assign(h,{state:R.S});F=new PKL(R.provider.videoData,R.provider.uu,F,h);F.B=R.provider.BG.x6();h=R.provider.videoData.clientPlaybackNonce;F.B=R.provider.BG.Me(h);R.provider.videoData.isLivePlayback||(F.Sl=R.provider.BG.getDuration(h));R.provider.videoData.B&&(h=R.provider.videoData.B.oz(F.B))&&(F.oR=h-F.B,R.provider.uu.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&$F(R.provider.videoData)&&(F.B+=R.provider.BG.wW(),F.oR-=R.provider.BG.wW()));F.gf=g.R$(R.provider); F.segments=[HS(R.provider)];return F}; J4L=function(R,F){var h=q$(R,"watchtime");vtg(R)&&(h.delayThresholdMet=!0,R.KI=!0);if(R.D>0){for(var a=g.N(F),J=a.next();!J.done;J=a.next())J=J.value,J.startTime-=R.D,J.endTime-=R.D;h.B-=R.D}else h.B=R.B.B;h.segments=F;return h}; Z3=function(R,F){var h=gtn(R,!isNaN(R.L));F&&(R.L=NaN);return h}; gtn=function(R,F){var h=J4L(R,aEm(R));!isNaN(R.L)&&F&&(h.C=R.L);return h}; vtg=function(R){var F;if(F=R.provider.videoData.isLoaded()&&R.provider.videoData.EP&&R.K&&!R.KI)F=R.B,F=F.N+F.x6()-F.K>=R.provider.videoData.EP;return!!F}; RpB=function(R){R.provider.videoData.youtubeRemarketingUrl&&!R.Uz&&(WYi(R,R.provider.videoData.youtubeRemarketingUrl),R.Uz=!0)}; FEi=function(R){R.provider.videoData.googleRemarketingUrl&&!R.aR&&(WYi(R,R.provider.videoData.googleRemarketingUrl),R.aR=!0)}; GK_=function(R){if(!R.RR()&&R.K){R.S="paused";var F=Z3(R);F.isFinal=!0;F.send();R.dispose()}}; IEO=function(R,F){if(!R.RR())if(g.V(F.state,2)||g.V(F.state,512)){if(R.S="paused",g.i5(F,2)||g.i5(F,512))g.i5(F,2)&&(R.B.previouslyEnded=!0),R.K&&(jx(R),Z3(R).send(),R.L=NaN)}else if(g.V(F.state,8)){R.S="playing";var h=R.K&&isNaN(R.N)?fz(R):NaN;if(!isNaN(h)&&(IK(F,64)<0||IK(F,512)<0)){var a=gtn(R,!1);a.Y=h;a.send()}g.i5(F,16)&&F.state.seekSource===58&&(R.B.previouslyEnded=!0)}else R.S="paused"}; i3i=function(R,F,h){if(!R.oR){h||(h=q$(R,"atr"));h.attestationResponse=F;try{h.send()}catch(a){if(a.message!=="Unknown Error")throw a;}R.oR=!0}}; WYi=function(R,F){var h=R.provider.uu;g.Qj(R.provider.uu,g.Wr(R.provider.videoData)).then(function(a){var J=R.provider.uu.pageId,M=R.provider.uu.sendVisitorIdHeader?R.provider.videoData.visitorData:void 0,v=R.provider.uu.X("vss_pings_using_networkless")||R.provider.uu.X("kevlar_woffle"),I=R.provider.uu.X("allow_skip_networkless");a=s$L(F,h,J,M,a);pS2(F,a,{token:R.provider.videoData.S,Ag:R.provider.videoData.H4,mdxEnvironment:R.provider.videoData.mdxEnvironment},h,void 0,v&&!I,!1,!0)})}; wu7=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.D=0;this.compositeLiveStatusToken=this.K=void 0;this.volume=this.connectionType=0;this.muted=!1;this.B=this.clipId="-";this.previouslyEnded=!1}; bK=function(R,F,h){this.videoData=R;this.uu=F;this.BG=h;this.B=void 0}; g.R$=function(R){return Etn(R)()}; Etn=function(R){if(!R.B){var F=g.Iu(function(a){var J=(0,g.NU)();a&&J<=631152E6&&(R.BG.dA("ytnerror",{issue:28799967,value:""+J}),J=(new Date).getTime()+2);return J},R.uu.X("html5_validate_yt_now")),h=F(); R.B=function(){return Math.round(F()-h)/1E3}; R.BG.iS()}return R.B}; Mzf=function(R){var F=R.BG.qh()||{};F.fs=R.BG.BE();F.volume=R.BG.getVolume();F.muted=R.BG.isMuted()?1:0;F.mos=F.muted;F.clipid=R.BG.Lz();var h;F.playerheight=((h=R.BG.getPlayerSize())==null?void 0:h.height)||0;var a;F.playerwidth=((a=R.BG.getPlayerSize())==null?void 0:a.width)||0;R=R.videoData;h={};R.D&&(h.fmt=R.D.itag,R.L&&(R.It?R.L.itag!==R.D.itag:R.L.itag!=R.D.itag)&&(h.afmt=R.L.itag));h.ei=R.eventId;h.list=R.playlistId;h.cpn=R.clientPlaybackNonce;R.videoId&&(h.v=R.videoId);R.Vw&&(h.infringe=1); (R.w$?0:R.Nx)&&(h.splay=1);(a=mS(R))&&(h.live=a);R.lj&&(h.sautoplay=1);R.nK&&(h.autoplay=1);R.Jn&&(h.sdetail=R.Jn);R.partnerId&&(h.partnerid=R.partnerId);R.osid&&(h.osid=R.osid);R.oN&&(h.cc=g.F1m(R.oN));return Object.assign(F,h)}; y2I=function(R){var F=qji();if(F)return BDn[F]||BDn.other;if(g.Y0(R.uu)){R=navigator.userAgent;if(/[Ww]ireless[)]/.test(R))return 3;if(/[Ww]ired[)]/.test(R))return 30}return 0}; HS=function(R){var F=new wu7,h;F.L=((h=Mzf(R).cc)==null?void 0:h.toString())||"-";F.playbackRate=R.BG.getPlaybackRate();h=R.BG.getVisibilityState();h!==0&&(F.visibilityState=h);R.uu.uY&&(F.D=1);F.K=R.videoData.Ye;F.compositeLiveStatusToken=R.videoData.compositeLiveStatusToken;h=R.BG.getAudioTrack();h.jw&&h.jw.id&&h.jw.id!=="und"&&(F.audioId=h.jw.id);F.connectionType=y2I(R);F.volume=R.BG.getVolume();F.muted=R.BG.isMuted();F.clipId=R.BG.Lz()||"-";F.B=R.videoData.uf||"-";return F}; g.Sx=function(R,F){g.d.call(this);var h=this;this.provider=R;this.K=new Map;this.Wc=new g.$u;this.rf={Kwz:function(){return h.qoe}, hiA:function(){return h.B}, WmI:function(){return h.D}}; this.provider.videoData.Fd()&&!this.provider.videoData.ub&&(this.B=new yE(this.provider),this.B.D=0,g.z(this,this.B),this.qoe=new g.QE(this.provider,F),g.z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.QH=this.provider.videoData.clientPlaybackNonce)&&this.K.set(this.QH,this.B));if(R.uu.playerCanaryState==="canary"||R.uu.playerCanaryState==="holdback")this.D=new rQ(this.provider),g.z(this,this.D)}; r4L=function(R){R.D&&vWT(R.D);R.qoe&&oWL(R.qoe)}; YFB=function(R){if(R.qoe){R=R.qoe;for(var F=R.provider.videoData,h=R.provider.uu,a=g.N(h.qg),J=a.next();!J.done;J=a.next())xW(R,J.value);if(R.provider.X("html5_enable_qoe_cat_list"))for(a=g.N(F.aS),J=a.next();!J.done;J=a.next())xW(R,J.value);else F.qg&&xW(R,R.provider.videoData.qg);F.Mt()&&(a=F.B,TT(F)&&xW(R,"manifestless"),a&&zl(a)&&xW(R,"live-segment-"+zl(a).toFixed(1)));AL(F)?xW(R,"sabr"):R.IB(ft(F));if(Rc(F)||F.We())F.We()&&xW(R,"ssa"),xW(R,"lifa");$F(F)&&xW(R,"cdm");F.gatewayExperimentGroup&& (a=F.gatewayExperimentGroup,a==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?a="spkadtrt":a==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(a="spkadctrl"),xW(R,a));h.oR!=="yt"&&R.B.set("len",[F.lengthSeconds.toFixed(2)]);F.cotn&&!hC(F)&&R.KU(!0);h.Po()&&(F=Hzf())&&R.dA("cblt",{m:F});if(h.X("html5_log_screen_diagonal")){h=R.dA;var M;F=((M=window.H5vccScreen)==null?0:M.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;h.call(R,"cbltdiag",{v:F})}}}; st7=function(R,F){R.B&&(R=R.B,F===58?R.B.update():R.K&&(jx(R),Z3(R).send(),R.L=NaN))}; pun=function(R,F){if(g.i5(F,1024)||g.i5(F,512)||g.i5(F,4)){if(R.D){var h=R.D;h.D>=0||(h.B=-1,h.delay.stop())}R.qoe&&(h=R.qoe,h.Y||(h.K=-1))}if(R.provider.videoData.enableServerStitchedDai&&R.QH){var a;(a=R.K.get(R.QH))==null||IEO(a,F)}else R.B&&IEO(R.B,F);if(R.qoe){a=R.qoe;h=F.state;var J=g.R$(a.provider),M=a.getPlayerState(h),v=h.seekSource||void 0;if(M!==a.Wc){a.KI||J= 10&&a.playTimeSecs<=180&&(a.B.set("qoealert",["1"]),a.EP=!0)),M!=="B"||a.Wc!=="PL"&&a.Wc!=="PB"||(a.isBuffering=!0),a.D=J);a.Wc==="PL"&&(M==="B"||M==="S")||a.provider.uu.Po()?A2(a,J):(a.iY||M!=="PL"||(a.iY=!0,qOa(a,J,a.provider.BG.pA())),TQO(a,J));M==="PL"&&g.VI(a.gf);var I=[M];M==="S"&&v&&I.push("ss."+v);g.kW(a,J,"vps",I);a.Wc=M;a.oR=J;a.D=J;a.L=!0}M=h.wL;g.V(h,128)&&M&&(M.SM=M.SM||"",bz_(a,J,M.errorCode,M.N9,M.SM));(g.V(h,2)||g.V(h,128))&&a.reportStats(J);h.isPlaying()&&!a.Y&&(a.K>=0&&a.B.set("user_intent", [a.K.toString()]),a.Y=!0);j$7(a)}R.D&&(R=R.D,gW_(R),R.playerState=F.state,R.D>=0&&g.i5(F,16)&&R.seekCount++,F.state.isError()&&R.send())}; kK7=function(R){R.D&&R.D.send();if(R.qoe){var F=R.qoe;if(F.L){F.Wc==="PL"&&(F.Wc="N");var h=g.R$(F.provider);g.kW(F,h,"vps",[F.Wc]);F.Y||(F.K>=0&&F.B.set("user_intent",[F.K.toString()]),F.Y=!0);F.provider.uu.Po()&&F.dA("finalized",{});F.fI=!0;F.reportStats(h)}}if(R.provider.videoData.enableServerStitchedDai)for(F=g.N(R.K.values()),h=F.next();!h.done;h=F.next())GK_(h.value);else R.B&&GK_(R.B);R.dispose()}; QtI=function(R,F){R.B&&i3i(R.B,F)}; $6i=function(R){if(!R.B)return null;var F=q$(R.B,"atr");return function(h){R.B&&i3i(R.B,h,F)}}; A47=function(R,F,h,a){h.adFormat=h.PJ;var J=F.BG;F=new yE(new bK(h,F.uu,{getDuration:function(){return h.lengthSeconds}, getCurrentTime:function(){return J.getCurrentTime()}, x6:function(){return J.x6()}, Me:function(){return J.Me()}, pA:function(){return J.pA()}, getPlayerSize:function(){return J.getPlayerSize()}, getAudioTrack:function(){return h.getAudioTrack()}, getPlaybackRate:function(){return J.getPlaybackRate()}, fA:function(){return J.fA()}, getVisibilityState:function(){return J.getVisibilityState()}, zV:function(){return J.zV()}, qh:function(){return J.qh()}, getVolume:function(){return J.getVolume()}, isMuted:function(){return J.isMuted()}, BE:function(){return J.BE()}, Lz:function(){return J.Lz()}, getProximaLatencyPreference:function(){return J.getProximaLatencyPreference()}, iS:function(){J.iS()}, dA:function(M,v){J.dA(M,v)}, sj:function(){return J.sj()}, wW:function(){return J.wW()}})); F.D=a;g.z(R,F);return F}; x6m=function(){this.HY=0;this.K=this.xz=this.lz=this.D=NaN;this.B={};this.bandwidthEstimate=NaN}; ND2=function(){this.B=g.tB;this.array=[]}; LEL=function(R,F,h){var a=[];for(F=H3g(R,F);Fh)break}return a}; TDT=function(R,F){var h=[];R=g.N(R.array);for(var a=R.next();!a.done&&!(a=a.value,a.contains(F)&&h.push(a),a.start>F);a=R.next());return h}; y4L=function(R){return R.array.slice(H3g(R,0x7ffffffffffff),R.array.length)}; H3g=function(R,F){R=ze(R.array,function(h){return F-h.start||1}); return R<0?-(R+1):R}; qFa=function(R,F){var h=NaN;R=g.N(R.array);for(var a=R.next();!a.done;a=R.next())if(a=a.value,a.contains(F)&&(isNaN(h)||a.endF&&(isNaN(h)||a.startR.mediaTime+R.N&&F1)R.L=!0;if((J===void 0?0:J)||isNaN(R.D))R.D=F;if(R.B)F!==R.mediaTime&&(R.B=!1);else if(F>0&&R.mediaTime===F){J=1500;if(R.uu.X("html5_buffer_underrun_transition_fix")){J=g.RI(R.uu.experiments,"html5_min_playback_advance_for_steady_state_secs");var M=g.RI(R.uu.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");J=J>0&&M>0&&Math.abs(F-R.D)(a||!R.L?J:400)}R.mediaTime=F;R.K=h;return!1}; epi=function(R,F){this.videoData=R;this.B=F}; ntL=function(R,F,h){return F.tZ(h).then(function(){return fR(new epi(F,F.K))},function(a){a instanceof Error&&g.qN(a); var J=p7('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),M=Qp('audio/mp4; codecs="mp4a.40.2"'),v=J||M,I=F.isLivePlayback&&!g.Q9(R.N,!0);a="fmt.noneavailable";I?a="html5.unsupportedlive":v||(a="html5.missingapi");v=I||!v?2:1;J={buildRej:"1",a:F.Og(),d:!!F.Ho,drm:F.rL(),f18:F.g$.indexOf("itag=18")>=0,c18:J};F.B&&(F.rL()?(J.f142=!!F.B.B["142"],J.f149=!!F.B.B["149"],J.f279=!!F.B.B["279"]):(J.f133=!!F.B.B["133"],J.f140=!!F.B.B["140"],J.f242=!!F.B.B["242"]),J.cAAC=M,J.cAVC=Qp('video/mp4; codecs="avc1.42001E"'), J.cVP9=Qp('video/webm; codecs="vp9"'));F.N&&(J.drmsys=F.N.keySystem,M=0,F.N.B&&(M=Object.keys(F.N.B).length),J.drmst=M);return new g.Bz(a,J,v)})}; o$=function(R){this.data=window.Float32Array?new Float32Array(R):Array(R);this.D=this.B=R-1}; uq_=function(R){return R.data[R.B]||0}; d6L=function(R){this.N=R;this.K=this.D=0;this.L=new o$(50)}; ex=function(R,F,h){g.h0.call(this);this.videoData=R;this.experiments=F;this.N=h;this.D=[];this.bL=0;this.K=!0;this.L=!1;this.S=0;h=new PfL;R.latencyClass==="ULTRALOW"&&(h.S=!1);R.nI?h.K=3:g.uR(R)&&(h.K=2);R.latencyClass==="NORMAL"&&(h.N=!0);h.oR=AL(R)&&F.jl("html5_refactor_decouple_liveness");g.RI(F,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.RI(F,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||R.latencyClass!=="LOW"&&R.latencyClass!=="ULTRALOW"||(h.N=!0);var a= g.RI(F,"html5_liveness_drift_proxima_override");if(ft(R)!==0&&a){h.B=a;var J;((J=R.B)==null?0:w12(J))&&h.B--}AL(R)&&F.jl("html5_sabr_parse_live_metadata_playback_boundaries")&&(h.aR=!0);if(g.nR("trident/")||g.nR("edge/"))J=g.RI(F,"html5_platform_minimum_readahead_seconds")||3,h.L=Math.max(h.L,J);g.RI(F,"html5_minimum_readahead_seconds")&&(h.L=g.RI(F,"html5_minimum_readahead_seconds"));g.RI(F,"html5_maximum_readahead_seconds")&&(h.C=g.RI(F,"html5_maximum_readahead_seconds"));F.jl("html5_force_adaptive_readahead")&& (h.S=!0);if(J=g.RI(F,"html5_liveness_drift_chunk_override"))h.B=J;yC(R)&&(h.B=(h.B+1)/5,R.latencyClass==="LOW"&&(h.B*=2));!AL(R)||R.latencyClass!=="ULTRALOW"&&R.latencyClass!=="LOW"||(h.Z=g.RI(F,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,h.Y=g.RI(F,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=h;this.Y=this.policy.K!==1;this.B=Xd(this,zpf(this,isNaN(R.liveChunkReadahead)?3:R.liveChunkReadahead,R))}; KEi=function(R,F){if(F)return F=R.videoData,F=zpf(R,isNaN(F.liveChunkReadahead)?3:F.liveChunkReadahead,F),Xd(R,F);if(R.D.length){if(Math.min.apply(null,R.D)>1)return Xd(R,R.B-1);if(R.policy.S)return Xd(R,R.B+1)}return R.B}; tz_=function(R,F){if(!R.D.length)return!1;var h=R.B;R.B=KEi(R,F===void 0?!1:F);if(F=h!==R.B)R.D=[],R.bL=0;return F}; nz=function(R,F){return F>=R.cV()-lEI(R)}; D67=function(R,F,h){F=nz(R,F);h||F?F&&(R.K=!0):R.K=!1;R.Y=R.policy.K===2||R.policy.K===3&&R.K}; Vz2=function(R,F){F=nz(R,F);R.L!==F&&R.publish("livestatusshift",F);R.L=F}; lEI=function(R){var F=R.policy.B;R.L||(F=Math.max(F-1,0));return F*uK(R)}; zpf=function(R,F,h){h.nI&&F--;yC(h)&&(F=1);if(ft(h)!==0&&(R=g.RI(R.experiments,"html5_live_chunk_readahead_proxima_override"))){F=R;var a;((a=h.B)==null?0:w12(a))&&F++}return F}; uK=function(R){return R.videoData.B?zl(R.videoData.B)||5:5}; Xd=function(R,F){F=Math.max(Math.max(1,Math.ceil(R.policy.L/uK(R))),F);return Math.min(Math.min(8,Math.floor(R.policy.C/uK(R))),F)}; PfL=function(){this.L=0;this.C=Infinity;this.S=!0;this.D=this.B=2;this.K=1;this.N=!1;this.Y=10;this.aR=!1;this.Z=1;this.oR=!1}; z1=function(R){g.d.call(this);this.BG=R;this.B=0;this.D=null;this.S=this.L=0;this.K={};this.uu=this.BG.W();this.N=new g.DY(this.Of,1E3,this);this.Fo=dQ(this,"html5_seek_timeout_delay_ms");this.KI=dQ(this,"html5_long_rebuffer_threshold_ms");this.T$=dQ(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Oz=dQ(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.NQ=dQ(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.iY=dQ(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.oR=dQ(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.aR=new PS(2E4);this.Sl=dQ(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.IR=dQ(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.PG=dQ(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.fI=dQ(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Z=dQ(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.C=dQ(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.HG=dQ(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Y=dQ(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.nI=new PS(g.RI(this.uu.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.uu.X("html5_report_slow_ads_as_error"));this.uY=new PS(g.RI(this.uu.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.uu.X("html5_skip_slow_buffering_ad"));this.EP=dQ(this,"html5_slow_start_timeout_delay_ms");this.Uz=dQ(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.z(this,this.N)}; dQ=function(R,F,h){h=h===void 0?null:h;var a=a===void 0?0:a;return new PS(g.RI(R.uu.experiments,F)||a,h?R.uu.X(h):!1)}; U6g=function(R,F){R.B=F}; Kz=function(R,F,h,a,J,M,v,I){F.test(h)?(R.Ef(J,F,v),F.S||M()):(!F.D||F.L?h=!1:(h=(0,g.NU)(),a?F.B||(F.B=h):F.B=0,M=!a&&h-F.D>3E4,h=F.B&&h-F.B>1E3||M?F.L=!0:!1),h&&(I=Object.assign({},R.nO(F),I),I.wn=v,I.we=J,I.wsuc=a,R.BG.dA("workaroundReport",I),a&&(F.reset(),R.K[J]=!1)))}; PS=function(R,F){this.S=F===void 0?!1:F;this.B=this.D=this.K=this.startTimestamp=0;this.L=!1;this.N=Math.ceil(R/1E3)}; RMI=function(R){g.d.call(this);var F=this;this.BG=R;this.Z=this.B=this.loader=this.mediaElement=this.playbackData=null;this.K=0;this.N=this.KI=this.L=null;this.fI=!1;this.iY=0;this.aR=!1;this.timestampOffset=0;this.C=!0;this.IR=0;this.T$=this.YH=!1;this.Y=0;this.nI=!1;this.Uz=0;this.uu=this.BG.W();this.videoData=this.BG.getVideoData();this.policy=new CfT;this.oR=new z1(this.BG);this.uY=this.PG=this.NQ=this.S=this.D=NaN;this.Sl=new g.DY(function(){c4B(F,!1)},2E3); this.Sw=new g.DY(function(){t2(F)}); this.Fo=new g.DY(function(){WEa(F,{})}); this.EP=NaN;this.Oz=new g.DY(function(){var h=F.uu.lq;h.B+=1E4/36E5;h.B-h.K>1/6&&(E1n(h),h.K=h.B);F.Oz.start()},1E4); g.z(this,this.oR);g.z(this,this.Sl);g.z(this,this.Fo);g.z(this,this.Sw);g.z(this,this.Oz)}; a0m=function(R,F){R.playbackData=F;R.videoData.isLivePlayback&&(R.Z=new d6L(function(){a:{if(R.playbackData&&R.playbackData.B.B){if(TT(R.videoData)&&R.loader){var a=R.loader.Lg.Wf()||0;break a}if(R.videoData.B){a=R.videoData.B.fI;break a}}a=0}return a}),R.B=new ex(R.videoData,R.uu.experiments,function(){return R.Ka(!0)})); if(lK(R.BG)){var h;(h=R.videoData.DK)!=null&&h.bD||(F=F_B(R),F.qp?(AL(R.videoData)&&R.AF(F.qp,F.startSeconds),R.K=F.startSeconds):F.startSeconds>0&&R.seekTo(F.startSeconds,{RT:"seektimeline_startPlayback",seekSource:15}));R.C=!1}else hMa(R)||(R.K=R.K||R.videoData.startSeconds||0,R.X("html5_sabr_vod_invalid_start_time_fallback")&&!R.videoData.isLivePlayback&&(F=R.BG.videoData.Ka(),R.K>F&&(R.X("html5_sabr_log_invalid_sabr_current_time")&&R.BG.dA("invalidSabrCmtStart",{rt:R.K,mst:F}),R.K=0)))}; Mcg=function(R,F){(R.loader=F)?J5I(R,!0):D3(R)}; vwO=function(R,F){g.VI(R.oR.N);R.X("html5_exponential_memory_for_sticky")&&(F.state.isPlaying()?g.VI(R.Oz):R.Oz.stop());if(R.mediaElement)if(F.oldState.state===8&&yY(F.state)&&F.state.isBuffering()){F=R.mediaElement.getCurrentTime();var h=R.mediaElement.Ft();var a=R.X("manifestless_post_live_ufph")||R.X("manifestless_post_live")?Vp(h,Math.max(F-3.5,0)):Vp(h,F-3.5);if(a>=0&&F>h.end(a)-1.1&&a+10?(VE(R.BG,R.getCurrentTime()+R.videoData.limitedPlaybackDurationInSeconds),R.T$=!0):R.videoData.isLivePlayback&&R.videoData.endSeconds>0&&(VE(R.BG,R.getCurrentTime()+R.videoData.endSeconds),R.T$=!0))}; GwB=function(R,F){var h=R.getCurrentTime(),a=R.isAtLiveHead(h);if(R.Z&&a){var J=R.Z;if(J.B&&!(h>=J.D&&h50&&J.D.shift())),J=R.B,D67(J,h,F===void 0?!0:F),Vz2(J,h),F&&c4B(R,!0));a!==R.YH&&(F=R.getCurrentTime()-R.uY<=500,h=R.iY>=1E3,F||h||(F=R.BG.Ja,F.qoe&&(F=F.qoe,h=g.R$(F.provider), g.kW(F,h,"lh",[a?"1":"0"])),R.YH=a,R.iY++,R.uY=R.getCurrentTime()))}; c4B=function(R,F){if(R.B){var h=R.B;var a=R.getCurrentTime(),J=h.cV();var M=h.policy.D;h.L||(M=Math.max(M-1,0));M*=uK(h);a>=J-M||!h.ai()?h=a0&&sc(R.mediaElement)>0&&(R.D=UO(R,R.D,!1)),F=R.X("html5_pseudogapless_shorts_seek_to_next_start")&&(F==null?void 0:F.seekSource)===60,!R.mediaElement||!Ywa(R,F))R.Sw.start(750);else if(!isNaN(R.D)&&isFinite(R.D)&&(F=R.PG-(R.D-R.timestampOffset),!(F===0||Math.abs(F)<.005)))if(F=R.mediaElement.getCurrentTime()-R.D,Math.abs(F)<=R.IR||Math.abs(F)<.005)sFO(R);else{if(R.videoData.hJ)R.videoData.hJ= !1;else if(!Lt(R.videoData)&&R.D>=R.Ka()-.1){R.D=R.Ka();R.L.resolve(R.Ka());R.BG.JN();return}try{var h=R.D-R.timestampOffset;R.mediaElement.seekTo(h);R.oR.B=h;R.PG=h;R.K=R.D;R.aR=!1}catch(a){}}}; Ywa=function(R,F){F=F===void 0?!1:F;if(!R.mediaElement||R.mediaElement.aH()===0||R.mediaElement.hasError())return!1;var h=R.mediaElement.getCurrentTime()>0;return R.videoData.K&&R.videoData.K.B||R.videoData.isLivePlayback||!R.videoData.rL()?R.D>=0&&!F&&(F=R.mediaElement.MO(),F.length||!h)?US(F,R.D-R.timestampOffset):h:h}; sFO=function(R){R.L&&(R.L.resolve(R.mediaElement.getCurrentTime()),R.oR.D=null)}; BP2=function(R,F){R.N&&(R.N.resolve(F),R.BG.mB(),R.uu.Po()||r57(R))&&(F=R.nO(),F["native"]=""+ +R.aR,F.otgt=""+(R.D+R.timestampOffset),R.BG.dA("seekEnd",F));D3(R)}; D3=function(R){R.D=NaN;R.S=NaN;R.PG=NaN;R.L=null;R.KI=null;R.N=null;R.fI=!1;R.aR=!1;R.IR=0;R.Sl.stop();R.Fo.stop()}; kwm=function(R,F){var h=R.mediaElement,a=F.type;switch(a){case "seeking":var J=h.getCurrentTime()+R.timestampOffset;if(!R.L||R.aR&&J!==R.D){R.L=new rh;R.L.then(function(v){BP2(R,v)},function(){D3(R)}); if(R.videoData.isAd()){var M;JYI({adCpn:R.videoData.clientPlaybackNonce,contentCpn:(M=R.videoData.Bq)!=null?M:""},F.B)}R.PG=J;U6g(R.oR,h.getCurrentTime());R.seekTo(J,{seekSource:104,RT:"seektimeline_mediaElementEvent"});R.aR=!0}break;case "seeked":sFO(R);break;case "loadedmetadata":lK(R.BG)||pbO(R);t2(R);break;case "progress":t2(R);break;case "pause":R.Y=R.getCurrentTime()}R.Y&&((a==="play"||a==="playing"||a==="timeupdate"||a==="progress")&&R.getCurrentTime()-R.Y>10&&(R.X("html5_sky_skip_pause_jump")? R.BG.dA("skipPauseJump",{evt:a,cmt:R.getCurrentTime(),lpt:R.Y}):R.seekTo(R.Y,{RT:"pauseJump"})),a!=="pause"&&a!=="play"&&a!=="playing"&&a!=="progress"&&(R.Y=0))}; QFm=function(R){return(d9(R.videoData)||!!R.videoData.liveUtcStartSeconds)&&(!!R.videoData.liveUtcStartSeconds||hMa(R))&&!!R.videoData.B}; hMa=function(R){return!!R.videoData.startSeconds&&isFinite(R.videoData.startSeconds)&&R.videoData.startSeconds>1E9}; F_B=function(R){var F=0,h=NaN,a="";if(!R.C)return{startSeconds:F,qp:h,source:a};R.videoData.oR?F=R.videoData.Uz:Lt(R.videoData)&&(F=Infinity);if(g.uR(R.videoData))return{startSeconds:F,qp:h,source:a};R.videoData.startSeconds?(a="ss",F=R.videoData.startSeconds):R.videoData.AT&&(a="stss",F=R.videoData.AT);R.videoData.liveUtcStartSeconds&&(h=R.videoData.liveUtcStartSeconds);if(isFinite(F)&&(F>R.Ka()||FR.Ka()||h 0?(a.onesie="0",R.handleError(new g.Bz("html5.missingapi",a)),!1):!0}; qw_=function(R){var F=lm();D4(F,R);return g.zQ(F,bf7())}; L_a=function(R,F){var h,a,J,M,v,I,w,E,B,r,Y,p,k,H,T,Z,b,O,n,K,Rg,U,vi,GI,gL,Em;return g.u(function(hf){if(hf.D==1)return F.fetchType="onesie",h=lpL(F,R.getPlayerSize(),R.getVisibilityState()),a=new zt(R,h),g.m(hf,a.fetch(),2);J=hf.B;M={player_response:J};F.loading=!1;v=R.qa.iV;if(a.mA){I=g.N(a.mA.entries());for(w=I.next();!w.done;w=I.next())E=w.value,B=g.N(E),r=B.next().value,Y=B.next().value,p=r,k=Y,v.B.set(p,k,180),p===F.videoId&&(H=k.cA(),F.IF=H);v.m8=a}T=g.N(a.H5.entries());for(Z=T.next();!Z.done;Z= T.next())b=Z.value,O=g.N(b),n=O.next().value,K=O.next().value,Rg=n,U=K,v.D.set(Rg,U,180);g.GT(F,M,!0);if(F.loading||vr(F))return hf.return(Promise.resolve());v.B.removeAll();v.D.removeAll();F.IF=[];vi={};GI="onesie.response";gL=0;F.errorCode?(GI="auth",vi.ec=F.errorCode,vi.ed=F.errorDetail,vi.es=F.OS||"",gL=2):(vi.successButUnplayable="1",vi.disposed=""+ +F.RR(),vi.afmts=""+ +/adaptiveFormats/.test(J),vi.cpn=F.clientPlaybackNonce);Em=new g.Bz(GI,vi,gL);return hf.return(Promise.reject(Em))})}; NPL=function(R,F){var h,a,J,M,v,I,w,E,B,r,Y;return g.u(function(p){switch(p.D){case 1:h=F.isAd(),a=!h,J=h?1:3,M=0;case 2:if(!(M0)){p.G$(5);break}return g.m(p,XN(5E3),6);case 6:v=new g.Pv("Retrying OnePlatform request",{attempt:M}),g.qN(v);case 5:return g.Hi(p,7),g.m(p,f0O(R,F),9);case 9:return p.return();case 7:I=g.f_(p);w=YK(I);E=w.errorCode;B=R.W();r=B.X("html5_use_network_error_code_enums")?401:"401";a&&E==="manifest.net.badstatus"&&w.details.rc===r&&(a=!1,M===J-1&&(J+= 1));if(M===J-1)return Y=jFO(h,w.details),Y.details.backend="op",Y.details.originec=E,p.return(Promise.reject(Y));if(E==="auth"||E==="manifest.net.retryexhausted")return p.return(Promise.reject(w));R.handleError(w);if(re(w.severity)){p.G$(4);break}case 3:M++;p.G$(2);break;case 4:return p.return(Promise.reject(jFO(h,{backend:"op"})))}})}; f0O=function(R,F){function h(GI){GI.readyState===2&&R.Uf("ps_c")} var a,J,M,v,I,w,E,B,r,Y,p,k,H,T,Z,b,O,n,K,Rg,U,vi;return g.u(function(GI){switch(GI.D){case 1:F.fetchType="gp";a=R.W();J=g.Qj(a,g.Wr(F));if(!J.B){M=J.getValue();GI.G$(2);break}return g.m(GI,J.B,3);case 3:M=GI.B;case 2:return v=M,I=qw_(v),w=lpL(F,R.getPlayerSize(),R.getVisibilityState()),E=g.Ux(ZsL),B=g.Wr(F),r=(0,g.NU)(),Y=!1,p="empty",k=0,R.Uf("psns"),H={hS:h},g.m(GI,g.bN(I,w,E,void 0,H),4);case 4:T=GI.B;R.Uf("psnr");if(F.RR())return GI.return();T?"error"in T&&T.error?(Y=!0,p="esf:"+T.error.message, k=T.error.code):T.errorMetadata&&(Y=!0,p="its",k=T.errorMetadata.status):Y=!0;if(Y)return Z=0,b=((0,g.NU)()-r).toFixed(),O={},O=a.X("html5_use_network_error_code_enums")?{backend:"op",rc:k,rt:b,reason:p,has_kpt:F.Ma?"1":"0",has_mdx_env:F.mdxEnvironment?"1":"0",has_omit_key_flag:g.Kp("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:a.pageId?"1":"0",has_token:B?"1":"0",has_vvt:F.fI?"1":"0",is_mdx:F.isMdxPlayback?"1":"0",mdx_ctrl:F.Cr||"",token_eq:B===g.Wr(F)?"1":"0"}:{backend:"op", rc:""+k,rt:b,reason:p,has_kpt:F.Ma?"1":"0",has_mdx_env:F.mdxEnvironment?"1":"0",has_omit_key_flag:g.Kp("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:a.pageId?"1":"0",has_token:B?"1":"0",has_vvt:F.fI?"1":"0",is_mdx:F.isMdxPlayback?"1":"0",mdx_ctrl:F.Cr||"",token_eq:B===g.Wr(F)?"1":"0"},n="manifest.net.connect",k===429?(n="auth",Z=2):k>200&&(n="manifest.net.badstatus",k===400&&(Z=2)),GI.return(Promise.reject(new g.Bz(n,O,Z)));F.loading=!1;g.GT(F,{raw_player_response:T},!0); K=T;g.V9(F.W())&&K&&K.trackingParams&&V_(K.trackingParams);if(F.errorCode)return Rg={ec:F.errorCode,ed:F.errorDetail,es:F.OS||""},GI.return(Promise.reject(new g.Bz("auth",Rg,2)));if(!F.loading&&!vr(F))return U=F.isAd()?"auth":"manifest.net.retryexhausted",vi=F.isAd()?2:1,GI.return(Promise.reject(new g.Bz(U,{successButUnplayable:"1",hasMedia:g.X$(F)?"1":"0"},vi)));g.Na(GI)}})}; xOf=function(R,F,h){function a(k){k=YK(k);if(re(k.severity))return Promise.reject(k);R.handleError(k);return!1} function J(){return!0} var M,v,I,w,E,B,r,Y,p;return g.u(function(k){switch(k.D){case 1:var H=R.W();R.getPlayerSize();R.getVisibilityState();R.isFullscreen();if(F.partnerId===38&&H.playerStyle==="books")H=F.videoId.indexOf(":"),H=g.sA("//play.google.com/books/volumes/"+F.videoId.slice(0,H)+"/content/media",{aid:F.videoId.slice(H+1),sig:F.Ah});else if(F.partnerId===30&&H.playerStyle==="docs")H=g.sA("https://docs.google.com/get_video_info",{docid:F.videoId,authuser:F.AY,authkey:F.XB,eurl:H.Ho});else if(F.partnerId===33&&H.playerStyle=== "google-live")H=g.sA("//google-liveplayer.appspot.com/get_video_info",{key:F.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+H.oR);M=H;I=(v=F.isAd())?1:3;w=0;case 2:if(!(w0)){k.G$(5);break}return g.m(k,XN(5E3),6);case 6:B={playerretry:w,playerretrysrc:h},v||(B.recover="embedded"),E=az(M,B);case 5:return g.m(k,bs_(F,E).then(J,a),7);case 7:if(r=k.B)return k.return();w++;k.G$(2);break;case 4:Y=v?"auth":"manifest.net.retryexhausted";p=v?2:1;if(!v&&Math.random()< 1E-4)try{g.qN(new g.Pv("b/152131571",btoa(M)))}catch(T){}return k.return(Promise.reject(new g.Bz(Y,{backend:"gvi"},p)))}})}; bs_=function(R,F){function h(T){return a(T.xhr)} function a(T){if(!R.RR()){T=T?T.status:-1;var Z=0,b=((0,g.NU)()-B).toFixed();b=J.X("html5_use_network_error_code_enums")?{backend:"gvi",rc:T,rt:b}:{backend:"gvi",rc:""+T,rt:b};var O="manifest.net.connect";T===429?(O="auth",Z=2):T>200&&(O="manifest.net.badstatus",T===400&&(Z=2));return Promise.reject(new g.Bz(O,b,Z))}} var J,M,v,I,w,E,B,r,Y,p,k,H;return g.u(function(T){if(T.D==1){R.fetchType="gvi";J=R.W();var Z={};R.PT&&(Z.ytrext=R.PT);(I=g.BV(Z)?void 0:Z)?(M={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:I},v=az(F,{action_display_post:1})):(M={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},v=F);w={};J.sendVisitorIdHeader&&R.visitorData&&(w["X-Goog-Visitor-Id"]=R.visitorData);(E=sk(J.experiments,"debug_sherlog_username"))&&(w["X-Youtube-Sherlog-Username"]=E);Object.keys(w).length> 0&&(M.headers=w);B=(0,g.NU)();return g.m(T,fL(LR,v,M).then(void 0,h),2)}r=T.B;if(!r||!r.responseText)return T.return(a(r));R.loading=!1;Y=Wk(r.responseText);g.GT(R,Y,!0);if(R.errorCode)return p={ec:R.errorCode,ed:R.errorDetail,es:R.OS||""},T.return(Promise.reject(new g.Bz("auth",p,2)));if(!R.loading&&!vr(R))return k=R.isAd()?"auth":"manifest.net.retryexhausted",H=R.isAd()?2:1,T.return(Promise.reject(new g.Bz(k,{successButUnplayable:"1"},H)));g.Na(T)})}; jFO=function(R,F){return new g.Bz(R?"auth":"manifest.net.retryexhausted",F,R?2:1)}; Fq=function(R,F,h){h=h===void 0?!1:h;var a,J,M,v;g.u(function(I){if(I.D==1){a=R.W();if(h&&(!g.Bc(a)||VC(F)!=="embedded")||F.Xa||VC(F)!=="adunit"&&(g.Y0(a)||hJ(a)||g.b5(a)||g.EZ(a)||g.Uk(a)||rp(a)==="WEB_CREATOR"))return I.return();J=g.Qj(a,g.Wr(F));return J.B?g.m(I,J.B,3):(M=J.getValue(),I.G$(2))}I.D!=2&&(M=I.B);v=M;return I.return(Swi(R,F,v))})}; Swi=function(R,F,h){var a,J,M,v,I;return g.u(function(w){if(w.D==1){g.Hi(w,2);a=qw_(h);var E=F.W();g.oA();var B={context:g.ru(F),videoId:F.videoId,racyCheckOk:F.racyCheckOk,contentCheckOk:F.contentCheckOk,autonavState:"STATE_NONE"};VC(F)==="adunit"&&(B.isAdPlayback=!0);E.embedConfig&&(B.serializedThirdPartyEmbedConfig=E.embedConfig);E.oO&&(B.showContentOwnerOnly=!0);F.DF&&(B.showShortsOnly=!0);g.XB(0,141)&&(B.autonavState=g.XB(0,140)?"STATE_OFF":"STATE_ON");if(g.ig(E)){var r=g.XB(0,65);r=r!=null? !r:!1;var Y=!!g.jA("yt-player-sticky-caption");B.captionsRequested=r&&Y}var p;if(E=(p=E.getWebPlayerContextConfig())==null?void 0:p.encryptedHostFlags)B.playbackContext={encryptedHostFlags:E};J=B;M=g.Ux(Osf);R.Uf("wn_s");return g.m(w,g.bN(a,J,M),4)}if(w.D!=2)return v=w.B,R.Uf("wn_r"),!v||"error"in v&&v.error||(I=v,g.V9(F.W())&&I.trackingParams&&V_(I.trackingParams),g.GT(F,{raw_watch_next_response:v},!1)),g.yn(w,0);g.f_(w);g.Na(w)})}; mO_=function(R){R.Uf("vir");R.Uf("ps_s");f4("vir",void 0,"video_to_ad");var F=y5_(R);F.then(function(){R.Uf("virc");f4("virc",void 0,"video_to_ad");R.Uf("ps_r");f4("ps_r",void 0,"video_to_ad")},function(){R.Uf("virc"); f4("virc",void 0,"video_to_ad")}); return F}; g.J4=function(R,F,h,a,J,M,v,I,w,E){w=w===void 0?new g.Mz(R):w;E=E===void 0?!0:E;g.h0.call(this);var B=this;this.uu=R;this.playerType=F;this.rW=h;this.s5=a;this.getVisibilityState=M;this.visibility=v;this.qa=I;this.videoData=w;this.Wj=E;this.logger=new g.s3("VideoPlayer");this.z0=null;this.JS=new iK;this.SV=null;this.t1=!0;this.Yo=this.loader=null;this.vE=[];this.KG=new Rt;this.ZN=this.Hy=null;this.mV=new Rt;this.Eh=null;this.Hi=this.V1=!1;this.p6=NaN;this.SQ=!1;this.playerState=new g.$u;this.K6=[]; this.OI=new g.xK;this.mL=new q67(this);this.mediaElement=null;this.Cb=new g.DY(this.mtu,15E3,this);this.vI=this.M$=!1;this.Yn=NaN;this.Yk=!1;this.jk=0;this.hK=!1;this.Wm=NaN;this.Dl=new Cz(new Map([["bufferhealth",function(){return gwB(B.hp)}], ["bandwidth",function(){return B.SS()}], ["networkactivity",function(){return B.uu.schedule.KI}], ["livelatency",function(){return B.isAtLiveHead()&&B.isPlaying()?own(B):NaN}], ["rawlivelatency",function(){return own(B)}]])); this.Wh=0;this.loop=!1;this.playbackRate=1;this.OE=0;this.hp=new RMI(this);this.JL=!1;this.il=[];this.xi=this.vL=0;this.Kf=this.gK=!1;this.xz=this.lz=0;this.XC=new g.DY(this.m$,0,this);this.YV=!1;this.Z1=null;this.fnt=[this.OI,this.XC,this.Cb,this.Dl];this.P$=this.w2=null;this.u0=function(){var r=B.Ja;r.provider.uu.PJ||r.provider.BG.getVisibilityState()===3||(r.provider.uu.PJ=!0);r.dX();if(r.D){var Y=r.D;Y.N&&Y.B<0&&Y.provider.BG.getVisibilityState()!==3&&vWT(Y)}r.qoe&&(r=r.qoe,r.Fo&&r.K<0&&r.provider.uu.PJ&& oWL(r),r.L&&A2(r));B.loader&&h4(B);B.uu.Nz&&!B.videoData.backgroundable&&B.mediaElement&&!B.Hf()&&(B.isBackground()&&B.mediaElement.xl()?(B.dA("bgmobile",{suspend:1}),B.Iu(!0,!0)):B.isBackground()||at(B)&&B.dA("bgmobile",{resume:1}))}; this.rf={Ga:function(r){B.Ga(r)}, eEQ:function(r){B.z0=r}, u6I:function(){return B.Ja}, s0:function(){return B.Yo}, OPo:function(){return B.Hp}, N5R:function(){return B.Vy}, rFI:function(){}, W:function(){return B.uu}, He:function(){return B.mediaElement}, skz:function(r){B.iB(r)}, Ril:function(){return B.s5}}; this.logger.debug(function(){return"creating, type "+F}); this.oF=new Xun(this.uu);this.Zt=new EO(this.uu,this.s5,this);this.A4=new g.OO(this,function(r,Y){r!==g.lz("endcr")||g.V(B.playerState,32)||B.JN();J(r,Y,B.playerType);if(r===g.lz("transitiondetector")&&(r=B.loader)!=null&&(r=r.EP)!=null){var p=g.N(bt2(Y.id));p.next();p=p.next().value;qGB(r,p,Y.start/1E3-r.BG.wW(),$zL(r.L))}}); g.z(this,this.A4);g.z(this,this.hp);Xbi(this,w);this.videoData.subscribe("dataupdated",this.LNR,this);this.videoData.subscribe("dataloaded",this.Kn,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.dA,this);this.videoData.subscribe("ctmpstr",this.V4,this);!this.Ja||this.Ja.RR();this.Ja=new g.Sx(new bK(this.videoData,this.uu,this));TB7(this.u0);this.visibility.subscribe("visibilitystatechange",this.u0);this.Hp=new g.DY(this.IE,g.RI(this.uu.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Vy=new g.DY(this.IE,g.RI(this.uu.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.VN=new g.c9(this.Uao,350,this);g.z(this,this.VN)}; Xbi=function(R,F){if(R.playerType===2||R.uu.Ye)F.c6=!0;var h=Mwi(F.PJ,F.j0,R.uu.L,R.uu.Z);h&&(F.adFormat=h);R.playerType===2&&(F.nK=!0);if(R.isFullscreen()||R.uu.L)h=g.jA("yt-player-autonavstate"),F.autonavState=h||(R.uu.L?2:R.videoData.autonavState);F.endSeconds&&F.endSeconds>F.startSeconds&&VE(R,F.endSeconds)}; eML=function(R){var F=R.videoData;mO_(R).then(void 0,function(h){R.videoData!==F||F.RR()||(h=YK(h),h.errorCode==="auth"&&R.videoData.errorDetail?R.Aj(h.errorCode,2,unescape(R.videoData.errorReason),ES(h.details),R.videoData.errorDetail,R.videoData.OS||void 0):R.handleError(h))})}; dOn=function(R){if(!g.V(R.playerState,128))if(R.videoData.isLoaded(),R.logger.debug("finished loading playback data"),R.vE=g.Zt(R.videoData.aR),g.X$(R.videoData)){R.rW.tick("bpd_s");M6(R).then(function(){R.rW.tick("bpd_c");if(!R.RR()){R.V1&&(R.aT(N8(N8(R.playerState,512),1)),at(R));var a=R.videoData;a.endSeconds&&a.endSeconds>a.startSeconds&&VE(R,a.endSeconds);R.KG.finished=!0;vu(R,"dataloaded");R.mV.eN()&&nwL(R);Mx2(R.Zt,R.ZN)}}); R.X("html5_log_media_perf_info")&&R.dA("loudness",{v:R.videoData.Ym.toFixed(3)},!0);var F,h=(F=R.mediaElement)==null?void 0:F.G_();if(h&&"disablePictureInPicture"in h&&R.uu.zd)try{h.disablePictureInPicture=R.uu.zL&&!R.videoData.backgroundable}catch(a){g.qN(a)}u7_(R)}else vu(R,"dataloaded")}; M6=function(R){gD(R);R.ZN=null;var F=ntL(R.uu,R.videoData,R.Hf());R.Hy=F;R.Hy.then(function(h){PVm(R,h)},function(h){R.RR()||(h=YK(h),R.visibility.isBackground()?(GK(R,"vp_none_avail"),R.Hy=null,R.KG.reset()):(R.KG.finished=!0,R.Aj(h.errorCode,h.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ES(h.details))))}); return F}; PVm=function(R,F){if(!R.RR()&&!F.videoData.RR()){R.logger.debug("finished building playback data");R.ZN=F;a0m(R.hp,R.ZN);if(R.videoData.isLivePlayback){var h=zML(R.qa.iV,R.videoData.videoId)||R.loader&&!isNaN(R.loader.Uz);h=R.X("html5_onesie_live")&&h;lK(R)||R.videoData.iY>0&&!TT(R.videoData)||h||R.seekTo(R.Ka(),{RT:"videoplayer_playbackData",seekSource:18})}if(R.videoData.K.B){if(m7g(R.videoData)){R.X("html5_sabr_report_missing_url_as_error_terminal")?R.Aj("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", ES({missabrurl:1})):R.handleError(new g.Bz("fmt.missing",{missabrurl:"1"},2));return}R.loader?g.qN(Error("Duplicated Loader")):(h=g.RI(R.uu.experiments,"html5_onesie_defer_content_loader_ms"))&&R.Wa()&&zML(R.qa.iV,R.videoData.pu)?g.Eg(function(){R.RR()||R.loader||K_L(R)},h):K_L(R)}else!R.videoData.K.B&&hC(R.videoData)&&R.Iv(new BE(R.videoData.videoId||"",4)); R.WE();C4m(F).then(function(){var a={};R.Ua(a);R.uu.Po()&&R.X("html5_log_media_perf_info")&&R.dA("av1Info",a);h4(R)})}}; nwL=function(R){R.RR();R.logger.debug("try finish readying playback");if(R.mV.finished)R.logger.debug("already finished readying");else if(R.KG.finished)if(g.V(R.playerState,128))R.logger.debug("cannot finish readying because of error");else if(R.vE.length)R.logger.debug(function(){return"cannot finish readying because of pending preroll: "+R.vE}); else if(R.A4.started||jta(R.A4),R.MC())R.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{R.loader&&(R.Hi=O$a(R.loader.timing));R.mV.finished||(R.mV.finished=!0);var F=R.X("html5_onesie_live")&&R.loader&&!isNaN(R.loader.Uz);!R.videoData.isLivePlayback||R.videoData.iY>0&&!TT(R.videoData)||F||lK(R)||(R.logger.debug("seek to head for live"),R.seekTo(Infinity,{RT:"videoplayer_readying",seekSource:18}),R.isBackground()&&(R.vI=!0));YFB(R.Ja);R.logger.debug("finished readying playback"); R.publish("playbackready");yh("pl_c",R.rW.timerName)||(R.rW.tick("pl_c"),f4("pl_c",void 0,"video_to_ad"));yh("pbr",R.rW.timerName)||(R.rW.tick("pbr"),f4("pbr",void 0,"video_to_ad"))}else R.logger.debug("playback data not loaded")}; VE=function(R,F){R.SV&&tcf(R);R.SV=new g.KI(F*1E3,0x7ffffffffffff);R.SV.namespace="endcr";R.addCueRange(R.SV)}; tcf=function(R){R.removeCueRange(R.SV);R.SV=null}; l0i=function(R,F,h,a,J){var M=R.Ja,v=R.videoData;v.D=h;var I=g.It(R);h=new uD7(v,h,F,I?I.itag:"",a);R.uu.experiments.jl("html5_refactor_sabr_video_format_selection_logging")?(h.videoId=J,R.P$=h):M.qoe&&LXL(M.qoe,h);J=R.Zt;J.D=0;J.B=0;R.publish("internalvideoformatchange",v,F==="m")}; g.It=function(R){var F=wD(R);return Lo(F)||!R.ZN?null:g.QL(R.ZN.B.videoInfos,function(h){return F.L(h)})}; wD=function(R){if(R.ZN){var F=R.Zt;var h=R.ZN;R=R.Ug();var a=zlL(F);if(Lo(a)){if(a=dLf(F,h).compose(DLI(F,h)).compose(ULL(F,h)).compose(a3m(F,h.videoData)).compose(J2m(F,h.videoData,h)).compose(hhI(F,h)).compose(tNn(F,h)),Lo(R)||F.X("html5_apply_pbr_cap_for_drm"))a=a.compose(lwi(F,h))}else F.X("html5_perf_cap_override_sticky")&&(a=a.compose(hhI(F,h))),F.X("html5_ustreamer_cap_override_sticky")&&(a=a.compose(lwi(F,h)));a=a.compose(tNn(F,h));F=h.videoData.NN.compose(a).compose(h.videoData.f3).compose(R)}else F= JL;return F}; WMi=function(R){var F=R.Zt;R=R.videoData;var h=a3m(F,R);F.X("html5_disable_client_autonav_cap_for_onesie")||h.compose(J2m(F,R));return h}; h4=function(R){if(R.videoData.K&&R.videoData.K.B){var F=wD(R);R.loader&&FXL(R.loader,F)}}; DOa=function(R){var F;return!!(R.X("html5_native_audio_track_switching")&&g.YV&&((F=R.videoData.D)==null?0:ef(F)))}; VcT=function(R){if(!DOa(R))return!1;var F;R=(F=R.mediaElement)==null?void 0:F.audioTracks();return!!(R&&R.length>1)}; CVi=function(R){var F=UOf(R);if(F)return R.videoData.getAvailableAudioTracks().find(function(h){return h.jw.getName()===F})}; UOf=function(R){var F;if(R=(F=R.mediaElement)==null?void 0:F.audioTracks())for(F=0;F0&&(F.Nx=h.JF));F.lT=h.eb;F.Ae=WI(a,{},h.K||void 0,QC(h));F.T$=kF(h)&&(g.b5(a)||g.EZ(a));AL(h)&&(F.N=!0,F.yh=a.X("html5_estimate_live_partial_slice_duration"),F.AT=!0,a.X("html5_sabr_report_partial_segment_estimated_duration")&& (F.Yp=!0),F.B=!0,F.d5=a.X("html5_sabr_enable_live_clock_offset"),F.DK=a.X("html5_disable_client_resume_policy_for_sabr"),F.Gz=a.X("html5_trigger_loader_when_idle_network"),F.Rf=a.X("html5_sabr_parse_live_metadata_playback_boundaries"),F.aS=a.X("html5_consume_onesie_next_request_policy_for_sabr"),F.wZ=a.X("html5_sabr_report_next_ad_break_time"),F.Qh=a.X("html5_log_high_res_buffer_timeline")&&a.Po(),F.gZ=a.X("html5_remove_stuck_slices_beyond_max_buffer_limits"),F.pS=a.X("html5_gapless_sabr_btl_last_slice")&& pt(h),F.NN=a.X("html5_reset_last_appended_slice_on_seek")&&pt(h),TT(h)?(F.PY=!0,F.WW=a.X("html5_estimate_partial_segment_duration"),F.ES=a.X("html5_disable_variability_tracker_for_live"),F.Fo=!0,a.X("html5_simplified_backup_timeout_sabr_live")&&(F.C$=!0,F.Ig=F.tF)):F.FW=a.X("html5_probe_request_on_sabr_request_progress"),F.qv=a.X("html5_serve_start_seconds_seek_for_post_live_sabr"),F.d$=a.X("html5_flush_index_on_updated_timestamp_offset"),F.C=AL(h),F.Vw=a.X("html5_ignore_partial_segment_from_live_readahead"), a.X("html5_include_partial_segment_for_jumbo_ll")&&yC(h)&&(F.Vw=!1),F.UN=a.X("html5_use_non_active_broadcast_for_post_live"),F.fI=a.X("html5_use_centralized_player_time"),F.YZ=a.X("html5_consume_onesie_sabr_seek"),F.aR=a.X("html5_enable_sabr_seek_loader_refactor"),F.tE=a.X("html5_update_segment_start_time_from_media_header"),h.enableServerStitchedDai&&(F.D=!0,F.DZ=a.X("html5_reset_server_stitch_state_for_non_sabr_seek"),F.l2=a.X("html5_remove_ssdai_append_pause")&&!h.We(),F.Xk=a.X("html5_ssdai_log_ssevt_in_loader")|| a.X("html5_ssdai_log_ssevt_in_loader_200ms")||a.X("html5_ssdai_log_ssevt_in_loader_timers")||a.X("html5_ssdai_log_ssevt_in_loader_cuerange"),a.X("html5_ssdai_log_ssevt_in_loader_timers")?F.nI=1:a.X("html5_ssdai_log_ssevt_in_loader_200ms")?F.nI=3:a.X("html5_ssdai_log_ssevt_in_loader_cuerange")&&(F.nI=0)),F.Nz=a.Po()||h.We());F.Ym=g.S0m(h);no(a.N,uM.BITRATE)&&(F.CI=NaN);if(I=g.RI(a.experiments,"html5_request_size_max_kb"))F.NQ=I*1024;a.N.K?F.yD="; "+uM.EXPERIMENTAL.name+"=allowed":a.X("html5_enable_cobalt_tunnel_mode")&& g.db()&&(I=uM.TUNNELMODE,F.yD="; "+I.name+"="+I.valid);h=h.serverPlaybackStartConfig;(h==null?0:h.enable)&&(h==null?0:h.playbackStartPolicy)&&(F.EJ=!0,K8(F,h.playbackStartPolicy,2));h=c5i(R);R.JS.removeAll();a:{I=R.qa.iV;if(a=R.videoData.videoId)if(J=I.B.get(a)){I.B.remove(a);I=J;break a}I=void 0}R.loader=new g.WH(R,R.uu.schedule,F,R.videoData.B,R.videoData.K,wD(R),h,R.videoData.enableServerStitchedDai,I,R.videoData.C);F=R.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&R.videoData.isLivePlayback&& R.Wa()?!0:R.V1&&g.Y0(R.uu)&&R.videoData.isLivePlayback;R.loader.initialize(R.getCurrentTime(),wD(R),F);R.videoData.probeUrl&&(R.loader.HG=R.videoData.probeUrl);if(R.vE.length||R.V1)R.videoData.cotn||EF(R,!1);Mcg(R.hp,R.loader);R.Z1&&(Nug(R.loader,new g.Fd(R.Z1)),R.dA("sdai",{sdl:1}));g.MX(R.videoData)&&(R=R.loader,R.policy.FO=R.policy.aN)}; gD=function(R){R.loader&&(R.loader.dispose(),R.loader=null,Mcg(R.hp,null));R.BV()?W_g(R):R.Mz()}; W_g=function(R){if(R.Yo)if(R.logger.debug("release media source"),R.Bu(),R.Yo.N)try{R.uu.Po()&&R.dA("rms",{l:"vprms",sr:R.BV(),rs:Ec(R.Yo)});R.Yo.clear();var F;(F=R.mediaElement)!=null&&(F.D=R.Yo);R.Yo=null}catch(h){F=new g.Pv("Error while clearing Media Source in VideoPlayer: "+h.name+", "+h.message),F=YK(F),R.handleError(F),R.Mz()}else R.Mz()}; R8g=function(R,F){F=F===void 0?!1:F;if(R.Yo)return R.Yo.K;R.logger.debug("update media source");a:{F=F===void 0?!1:F;try{g.db()&&R.videoData.Yi()&&PQL(R.mediaElement);var h=R.mediaElement.s0(R.tX(),R.Ne())}catch(J){if(S6B(R.mL,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",J);R.Aj("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}R.E5(h,!1,!1,F)}var a;return((a=R.s0())==null?void 0:a.K)||null}; Ffg=function(R,F){F=F===void 0?!1:F;if(R.loader){R.videoData.enableServerStitchedDai&&ZF_(R.loader);var h=R.getCurrentTime()-R.wW();R.loader.seek(h,{zE:F}).eK(function(){})}else K_L(R)}; axn=function(R,F,h,a){h=h===void 0?!1:h;a=a===void 0?!1:a;if(R.Yo&&(!F||R.Yo===F)){R.logger.debug("media source opened");var J=R.getDuration();!J&&TT(R.videoData)&&(J=25200);if(R.Yo.isView){var M=J;R.logger.debug(function(){return"Set media source duration to "+M+", video duration "+J}); M>R.Yo.getDuration()&&h8O(R,M)}else h8O(R,J);cLa(R.loader,R.Yo,h,a);R.publish("mediasourceattached")}}; h8O=function(R,F){if(R.Yo){R.Yo.Td(F);var h;(h=R.loader)!=null&&h.policy.fI&&(h.S=F)}}; a4n=function(R,F){l0i(R,F.reason,F.B.info,F.token,F.videoId)}; vu=function(R,F){R.publish("internalvideodatachange",F===void 0?"dataupdated":F,R.videoData)}; Jkg=function(R){for(var F=g.N("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),h=F.next();!h.done;h=F.next())R.OI.T(R.mediaElement,h.value,R.iB,R);R.uu.u8&&R.mediaElement.An()&&(R.OI.T(R.mediaElement,"webkitplaybacktargetavailabilitychanged",R.sRl,R),R.OI.T(R.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",R.Szb,R))}; vBL=function(R){g.Y$(R.p6);M8m(R)||(R.p6=g.B6(function(){return M8m(R)},100))}; M8m=function(R){var F=R.mediaElement;F&&R.M$&&!R.videoData.KI&&!yh("vfp",R.rW.timerName)&&F.aH()>=2&&!F.isEnded()&&Wz(F.Ft())&&R.rW.tick("vfp");return(F=R.mediaElement)&&!R.videoData.KI&&F.getDuration()>0&&(F.isPaused()&&F.aH()>=2&&Wz(F.Ft())&&(yh("pbp",R.rW.timerName)||R.rW.tick("pbp"),!R.videoData.CB||R.SQ||F.isSeeking()||(R.SQ=!0,R.publish("onPlaybackPauseAtStart"))),F=F.getCurrentTime(),mY(R.oF,F))?(R.vy(),!0):!1}; GXB=function(R){R.Ja.YX();if(Lt(R.videoData)&&Date.now()>R.OE+6283){if(!(!R.isAtLiveHead()||R.videoData.B&&ul(R.videoData.B))){var F=R.Ja;if(F.qoe){F=F.qoe;var h=F.provider.BG.pA(),a=g.R$(F.provider);qOa(F,a,h);h=h.K;isNaN(h)||g.kW(F,a,"e2el",[h.toFixed(3)])}}R.X("html5_alc_live_log_rawlat")?(F=R.videoData,F=g.BW(F.W())?!0:g.Gy(F.W())?F.drmProduct==="6":!1):F=g.BW(R.uu);a=R.X("html5_always_log_rawlat");(F||a)&&R.dA("rawlat",{l:WS(R.Dl,"rawlivelatency").toFixed(3)});R.OE=Date.now()}R.videoData.D&& ef(R.videoData.D)&&(F=R.Ys())&&F.videoHeight!==R.xi&&(R.xi=F.videoHeight,l0i(R,"a",gBL(R,R.videoData.Fo)))}; gBL=function(R,F){if(F.B.video.quality==="auto"&&ef(F.getInfo())&&R.videoData.gf)for(var h=g.N(R.videoData.gf),a=h.next();!a.done;a=h.next())if(a=a.value,a.getHeight()===R.xi&&a.B.video.quality!=="auto")return a.getInfo();return F.getInfo()}; own=function(R){if(!Lt(R.videoData))return NaN;var F=0;R.loader&&R.videoData.B&&(F=TT(R.videoData)?R.loader.Lg.Wf()||0:R.videoData.B.fI);return(0,g.NU)()/1E3-R.oz()-F}; iQL=function(R){R.mediaElement&&R.mediaElement.Hf()&&(R.Wm=(0,g.NU)());R.uu.u7?g.Eg(function(){IxL(R)},0):IxL(R)}; IxL=function(R){var F;if((F=R.Yo)==null||!F.v4()){if(R.mediaElement)try{R.Eh=R.mediaElement.playVideo()}catch(a){GK(R,"err."+a)}if(R.Eh){var h=R.Eh;h.then(void 0,function(a){R.logger.debug(function(){return"playMediaElement failed: "+a}); if(!g.V(R.playerState,4)&&!g.V(R.playerState,256)&&R.Eh===h)if(a&&a.name==="AbortError"&&a.message&&a.message.includes("load"))R.logger.debug(function(){return"ignore play media element failure: "+a.message}); else{var J="promise";a&&a.name&&(J+=";m."+a.name);GK(R,J);R.JL=!0;R.videoData.w$=!0}})}}}; GK=function(R,F){g.V(R.playerState,128)||(R.aT(Lv(R.playerState,1028,9)),R.dA("dompaused",{r:F}),R.publish("onAutoplayBlocked"))}; at=function(R,F){F=F===void 0?!1:F;if(!R.mediaElement||!R.videoData.K)return!1;var h=F;h=h===void 0?!1:h;var a=null;var J;if((J=R.videoData.K)==null?0:J.B){a=R8g(R,h);var M;(M=R.loader)==null||M.resume()}else gD(R),R.videoData.Fo&&(a=R.videoData.Fo.Sp());J=R.mediaElement.xl();h=!1;J&&J.equals(a)||(wPT(R,a),h=!0);g.V(R.playerState,2)||(a=R.hp,F=F===void 0?!1:F,a.N||!(a.K>0)||a.mediaElement&&a.mediaElement.getCurrentTime()>0||(F={RT:"seektimeline_resumeTime",zE:F},a.videoData.KI||(F.seekSource=15), a.seekTo(a.K,F)));a:{F=h;if(AL(R.videoData)){if(!R.videoData.rL())break a}else if(!g.SZ(R.videoData))break a;if(R.mediaElement)if((a=R.videoData.N)&&R.mediaElement.An()){J=R.mediaElement.G_();if(R.z0)if(J!==R.z0.element)Bu(R);else if(F&&a.flavor==="fairplay"&&!P6())Bu(R);else break a;if(R.X("html5_report_error_for_unsupported_tvos_widevine")&&P6()&&a.flavor==="widevine")F=R.X("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",R.Aj("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", F);else{R.z0=new pHL(J,R.videoData,R.uu);R.z0.subscribe("licenseerror",R.bG,R);R.z0.subscribe("qualitychange",R.KCn,R);R.z0.subscribe("heartbeatparams",R.WM,R);R.z0.subscribe("keystatuseschange",R.Ga,R);R.z0.subscribe("ctmp",R.dA,R);F=g.N(R.JS.keys);for(a=F.next();!a.done;a=F.next())a=R.JS.get(a.value),R.z0.Or(a);R.X("html5_eme_loader_sync")||R.JS.removeAll()}}else F=R.X("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",R.Aj("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",F)}return h}; wPT=function(R,F){R.rW.tick("vta");f4("vta",void 0,"video_to_ad");R.getCurrentTime()>0&&I0B(R.hp,R.getCurrentTime());R.mediaElement.activate(F);R.Yo&&cv(4);!R.videoData.KI&&R.playerState.isOrWillBePlaying()&&R.Cb.start();if(DOa(R)){var h;if(F=(h=R.mediaElement)==null?void 0:h.audioTracks())F.onchange=function(){R.publish("internalaudioformatchange",R.videoData,!0)}}}; Bu=function(R){R.z0&&(R.z0.dispose(),R.z0=null)}; EBg=function(R){var F=F===void 0?!1:F;R.logger.debug("reattachVideoSource");R.mediaElement&&(R.Yo?(Bu(R),R.Mz(),R8g(R,F)):(R.videoData.Fo&&R.videoData.Fo.Oq(),R.mediaElement.stopVideo()),R.playVideo())}; Bo_=function(R,F){R.uu.X("html5_log_rebuffer_reason")&&(F={r:F,lact:$G()},R.mediaElement&&(F.bh=pv(R.mediaElement)),R.dA("bufreason",F))}; rkn=function(R,F){if(R.uu.Po()&&R.mediaElement){var h=R.mediaElement.nO();h.omt=(R.mediaElement.getCurrentTime()+R.wW()).toFixed(3);h.ps=R.playerState.state.toString(16);h.rt=(g.R$(R.Ja.provider)*1E3).toFixed();h.e=F;R.il[R.vL++%5]=h}try{if(F==="timeupdate"||F==="progress")return}catch(a){}R.logger.debug(function(){return"video element event "+F})}; Y7a=function(R){if(R.uu.Po()){R.il.sort(function(a,J){return+a.rt-+J.rt}); for(var F=g.N(R.il),h=F.next();!h.done;h=F.next())h=h.value,R.dA("vpe",Object.assign({t:h.rt},h));R.il=[];R.vL=0}}; sRB=function(R){if(g.nR("cobalt")&&g.nR("nintendo switch")){var F=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;R.dA("nxdock",{d:F})}}; EF=function(R,F){var h;(h=R.loader)==null||lyL(h,F)}; u7_=function(R){GU(R.videoData,"html5_set_debugging_opt_in")&&(R=g.oA(),g.XB(0,183)||(nn(183,!0),R.save()))}; bFn=function(R,F){R.qa.Kr()||(R.dA("sgap",{f:F}),R.qa.clearQueue(!1,F==="pe"))}; lK=function(R){return R.X("html5_disable_video_player_initiated_seeks")&&AL(R.videoData)}; pPn=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);s4(this.api,"isLifaAdPlaying",function(){return F.api.isLifaAdPlaying()}); this.events.T(R,"serverstitchedvideochange",function(){var h;(h=F.api.getVideoData())!=null&&h.We()&&(F.api.isLifaAdPlaying()?(F.playbackRate=F.api.getPlaybackRate(),F.api.setPlaybackRate(1)):F.api.setPlaybackRate(F.playbackRate))}); this.playbackRate=1}; rD=function(R){El.call(this,"En bucle",g.Qi.jF);this.U=R;var F=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:bnL();this.setIcon(F);this.subscribe("select",this.D,this);R.createClientVe(this.element,this,28661);this.T(R,"settingsMenuVisibilityChanged",this.B);this.listen("click",this.logClick);this.T(R,"onLoopChange",this.onLoopChange);Bg(this,R.getLoopVideo());R.v1().SA(this)}; kXi=function(R){MD.call(this,R);var F=this;R.addEventListener("settingsMenuInitialized",function(){F.menuItem||(F.menuItem=new rD(F.api),g.z(F,F.menuItem))}); R.addEventListener("videodatachange",function(h,a){h=F.api.getPresentingPlayerType()===2;var J;(J=F.menuItem)==null||J.CO(!a.isLivePlayback&&!h)})}; QRO=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);s4(this.api,"seekToChapterWithAnimation",function(h){F.seekToChapterWithAnimation(h)}); s4(this.api,"seekToTimeWithAnimation",function(h,a){F.seekToTimeWithAnimation(h,a)}); s4(this.api,"renderChapterSeekingAnimation",function(h,a,J){F.api.renderChapterSeekingAnimation(h,a,J)}); s4(this.api,"setMacroMarkers",function(h){F.setMacroMarkers(R,h)}); s4(this.api,"changeMarkerVisibility",function(h,a,J){F.changeMarkerVisibility(h,a,J)}); s4(this.api,"isSameMarkerTypeVisible",function(h){return F.isSameMarkerTypeVisible(h)})}; $qB=function(R,F,h){var a=R.api.getCurrentTime()*1E30&&J>0&&(h.width+=J,g.zL(F.element,"width",h.width+"px")));R.size=h}}; g.jz=function(R,F){var h=R.B[R.B.length-1];h!==F&&(R.B.push(F),lxn(R,h,F))}; g.ZE=function(R){if(!(R.B.length<=1)){var F=R.B.pop(),h=R.B[0];R.B=[h];lxn(R,F,h,!0)}}; lxn=function(R,F,h,a){Dqg(R);F&&(F.unsubscribe("size-change",R.PU,R),F.unsubscribe("back",R.Qz,R));h.subscribe("size-change",R.PU,R);h.subscribe("back",R.Qz,R);if(R.dW){g.J$(h.element,a?"ytp-panel-animate-back":"ytp-panel-animate-forward");h.Ab(R.element);h.focus();R.element.scrollLeft=0;R.element.scrollTop=0;var J=R.size;t8i(R);g.RP(R.element,J);R.S=new g.DY(function(){V82(R,F,h,a)},20,R); R.S.start()}else h.Ab(R.element),F&&F.detach()}; V82=function(R,F,h,a){R.S.dispose();R.S=null;g.J$(R.element,"ytp-popup-animating");a?(g.J$(F.element,"ytp-panel-animate-forward"),g.vs(h.element,"ytp-panel-animate-back")):(g.J$(F.element,"ytp-panel-animate-back"),g.vs(h.element,"ytp-panel-animate-forward"));g.RP(R.element,R.size);R.Y=new g.DY(function(){g.vs(R.element,"ytp-popup-animating");F.detach();g.gA(F.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);R.Y.dispose();R.Y=null},250,R); R.Y.start()}; Dqg=function(R){R.S&&g.UX(R.S);R.Y&&g.UX(R.Y)}; bf=function(R){g.f3.call(this,R,"ytp-shopping-product-menu");this.Es=new g.yO(this.U);g.z(this,this.Es);this.hide();g.jz(this,this.Es);g.Pn(this.U,this.element,4)}; Csg=function(R,F,h){var a,J=F==null?void 0:(a=F.text)==null?void 0:a.simpleText;J&&(h=Uqf(R,h,J,F==null?void 0:F.icon,F==null?void 0:F.secondaryIcon),F.navigationEndpoint&&h.listen("click",function(){R.U.WG("innertubeCommand",F.navigationEndpoint);R.hide()},R))}; ckn=function(R,F,h){var a,J=F==null?void 0:(a=F.text)==null?void 0:a.simpleText;J&&Uqf(R,h,J,F==null?void 0:F.icon).listen("click",function(){var M;(F==null?void 0:(M=F.icon)==null?void 0:M.iconType)==="HIDE"?R.U.publish("featuredproductdismissed"):F.serviceEndpoint&&R.U.WG("innertubeCommand",F.serviceEndpoint);R.hide()},R)}; Uqf=function(R,F,h,a,J){F=new g.Fa(g.hz({},[],!1,!!J),F,h);J&&F.updateValue("secondaryIcon",Wf2(J));F.setIcon(Wf2(a));g.z(R,F);R.Es.SA(F,!0);return F}; Wf2=function(R){if(!R)return null;switch(R.iconType){case "ACCOUNT_CIRCLE":return{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return QAB();case "HIDE":return{G:"svg",j:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"g",V:[{G:"path",j:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return $s()}}; Sz=function(R){L3.call(this,R,!1,!0);this.isCounterfactual=this.D=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.D({G:"button",sz:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.D({G:"img",J:"ytp-suggested-action-badge-img",j:{src:"{{url}}"}}); this.thumbnailImage.hide();g.z(this,this.thumbnailImage);this.thumbnailIcon=new g.D({G:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.z(this,this.thumbnailIcon);this.banner=new g.D({G:"a",J:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{G:"div",J:"ytp-suggested-action-details",V:[{G:"text",J:"ytp-suggested-action-title",Dn:"{{title}}"},{G:"text",J:"ytp-suggested-action-subtitle",Dn:"{{subtitle}}"},{G:"text",J:"ytp-suggested-action-metadata-text", Dn:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.z(this,this.banner);this.banner.Ab(this.K.element);this.T(this.U,"videodatachange",this.onVideoDataChange);this.T(this.U,g.lz("suggested_action_view_model"),this.Cuz);this.T(this.U,g.Dq("suggested_action_view_model"),this.BWt);this.T(this.overflowButton.element,"click",this.d8);this.T(R,"featuredproductdismissed",this.AN);this.U.createServerVe(this.banner.element,this.banner,!0)}; Rs7=function(R){R.isInitialized&&(R.enabled=R.isVisible,R.aR=R.isVisible,Hu(R),R.QD(),R.thumbnailImage.CO(R.isVisible),R.shouldHideDismissButton||R.dismissButton.CO(R.isVisible),R.shouldShowOverflowButton&&R.overflowButton.CO(R.isVisible))}; OF=function(){Sz.apply(this,arguments)}; FgI=function(R){MD.call(this,R);this.B=new OF(this.api);g.z(this,this.B);g.Pn(this.api,this.B.element,4)}; mE=function(R){MD.call(this,R);var F=this;this.B=!0;var h=new g.xK(R);g.z(this,h);h.T(R,"internalaudioformatchange",function(a,J){hsm(F,a,J)}); h.T(R,"videoplayerreset",function(){ar7(F)}); h.T(R,"videodatachange",function(a,J){F.onVideoDataChange(a,J)})}; hsm=function(R,F,h){if(h){var a="";JML(R,F)&&(a=F,R.api.W().HG=F);if(a&&MJa(R,a)){BEI(R.api,a);var J;jI($x(R.api.W(),(J=R.api.getVideoData())==null?void 0:g.Wr(J)),function(M){vlL(R,a,M)})}}}; ar7=function(R){var F;if((F=po())==null?0:F.size){var h;jI($x(R.api.W(),(h=R.api.getVideoData())==null?void 0:g.Wr(h)),function(a){(a=gli(a))&&MJa(R,a)&&(R.api.W().HG=a)})}}; vlL=function(R,F,h){gli(h)!==F&&(Gx_([{settingItemId:ot(h),settingOptionValue:{stringValue:F}}]),jI(R.kL(),function(a){pOa(a,ot(h),{stringValue:F})}))}; IrI=function(R,F){ZV(jI(jI(R.kL(),function(h){return YYL(h,[ot(F)])}),function(h){if(h){h=g.N(h); for(var a=h.next();!a.done;a=h.next()){var J=a.value;a=J.key;J=J.value;a&&J&&(Gx_([{settingItemId:a,settingOptionValue:J}]),ar7(R))}}}),function(){R.B=!0})}; JML=function(R,F){R=R.api.getAvailableAudioTracks();R=g.N(R);for(var h=R.next();!h.done;h=R.next())if(h=h.value,h.getLanguageInfo().getId()===F)return h;return null}; gli=function(R){R=ot(R);var F=po();R=F?F.get(R):void 0;return R&&R.stringValue?R.stringValue:""}; ot=function(R){var F=(484).toString();R&&(F=(483).toString());return F}; MJa=function(R,F){var h;return F.split(".")[0]!==""&&((h=R.api.getVideoData())==null?void 0:!FM(h))}; Gx_=function(R){var F=po();F||(F=new Map);R=g.N(R);for(var h=R.next();!h.done;h=R.next())h=h.value,F.set(h.settingItemId,h.settingOptionValue);F=JSON.stringify(Object.fromEntries(F));g.fn("yt-player-user-settings",F,2592E3)}; g.Xq=function(R,F,h,a,J,M,v){g.Fa.call(this,g.hz({"aria-haspopup":"true"}),F,R);this.mC=a;this.Z=!1;this.K=null;this.options={};this.D=new g.yO(h,void 0,R,J,M,v);g.z(this,this.D);this.listen("keydown",this.DO);this.listen("click",this.open)}; icL=function(R){if(R.K){var F=R.options[R.K];F.element.getAttribute("aria-checked");F.element.setAttribute("aria-checked","false");R.K=null}}; wa2=function(R,F){g.Xq.call(this,"Temporizador de apagado",g.Qi.SLEEP_TIMER,R,F);this.U=R;this.C={};this.S=this.SW("Off");this.Y=this.B="";R.X("web_settings_menu_icons")&&(F=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(F)); this.L=new g.D({G:"div",sz:["ytp-menuitem-label-wrapper"],V:[{G:"div",Dn:"Fin del video"},{G:"div",sz:["ytp-menuitem-sublabel"],Dn:"{{content}}"}]});g.z(this,this.L);this.listen("click",this.onClick);this.T(R,"videodatachange",this.onVideoDataChange);this.T(R,"presentingplayerstatechange",this.gA);this.T(R,"settingsMenuVisibilityChanged",this.EK);R.createClientVe(this.element,this,218889);this.gA();this.U.WG("onSleepTimerFeatureAvailable")}; Elf=function(R){var F="Off 10 15 20 30 45 60".split(" "),h;((h=R.U.getVideoData())==null?0:h.isLivePlayback)||F.push("End of video");h=R.U.getPlaylist();var a;h&&((a=h.listId)==null?void 0:a.type)!=="RD"&&F.push("End of playlist");R.Dk(g.p1(F,R.SW));R.C=g.Cg(F,R.SW,R);F=R.SW("End of video");R.options[F]&&g.RJ(R.options[F],R.L)}; BOL=function(R,F){var h=R.C[F],a=h==="End of video"||h==="End of playlist";h==="Off"&&(R.B="");R.U.getPlayerState()!==0&&R.U.getPlayerState()!==5||!a?(R.S=F,g.Xq.prototype.dL.call(R,F),R.xZ(F),R.U.WG("onSleepTimerSettingsChanged",h)):R.U.WG("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; ez=function(R){MD.call(this,R);var F=this;R.addEventListener("settingsMenuInitialized",function(){F.menuItem||(F.menuItem=new wa2(F.api,F.api.v1()),g.z(F,F.menuItem))}); R.addEventListener("openSettingsMenuItem",function(h){if(h==="menu_item_sleep_timer"){if(!F.menuItem){var a;(a=F.api.v1())==null||a.Tn()}F.menuItem.open()}}); s4(R,"resetSleepTimerMenuSettings",function(){F.resetSleepTimerMenuSettings()}); s4(R,"setSleepTimerTimeLeft",function(h){F.setSleepTimerTimeLeft(h)}); s4(R,"setVideoTimeLeft",function(h){F.setVideoTimeLeft(h)})}; rMT=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"onSnackbarMessage",function(h){switch(h){case 1:h=F.api.getPlayerStateObject(),h.isBuffering()&&(F.api.X("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.V(h,8)&&g.V(h,16))&&F.api.WG("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.uf=function(R,F,h,a,J){F=F===void 0?!1:F;a=a===void 0?!1:a;J=J===void 0?!1:J;g.h0.call(this);this.C=J;this.Y=!1;this.L=new Hv(this);this.N=this.S=null;this.K=this.D=!1;g.z(this,this.L);this.target=R;this.B=F;this.Z=h||R;this.Y=a;F&&(g.IG&&this.target.setAttribute("draggable","true"),J||(this.target.style.touchAction="none"));n3(this)}; dD=function(R){g.TP(R.L,!R.B)}; n3=function(R){R.N=null;R.S=null;R.T(Pu("over"),R.i6);R.T("touchstart",R.Aq);R.B&&R.T(Pu("down"),R.EoQ)}; Yog=function(R,F){for(var h=0;hJ.start&&h>=5;H+=Z}Y=H.substr(0,4)+" "+H.substr(4,4)+" "+H.substr(8,4)+" "+(H.substr(12,4)+" "+H.substr(16,4))}else Y="";v={video_id_and_cpn:String(F.videoId)+" / "+Y,codecs:"",dims_and_frames:"",bandwidth_kbps:v.toFixed(0)+" Kbps",buffer_health_seconds:w.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:E?"":"display:none",drm:E,debug_info:h,extra_debug_info:"",bandwidth_style:r,network_activity_style:r,network_activity_bytes:I.toFixed(0)+" KB",shader_info:B,shader_info_style:B?"":"display:none",playback_categories:""};I=a.clientWidth+"x"+a.clientHeight+(J>1?"*"+J.toFixed(2):"");w="-";M.totalVideoFrames&&(w=(M.droppedVideoFrames||0)+" dropped of "+M.totalVideoFrames);v.dims_and_frames=I+" / "+w;R=R.getVolume();I=Zem(F);var O;if((O=F.L)==null?0:O.audio.D)O= "VB";else{var n;O=((n=F.L)==null?0:n.audio.B)?"DRC":Math.round(R*I)+"%"}n=Math.round(R)+"% / "+O;O=F.Ym.toFixed(1);isFinite(Number(O))&&(n+=" (content loudness "+O+"dB)");v.volume=n;v.resolution=a.videoWidth+"x"+a.videoHeight;if(a=F.D){if(n=a.video)O=n.fps,O>1&&(v.resolution+="@"+O),(O=M.Gb)&&O.video&&(v.resolution+=" / "+O.video.width+"x"+O.video.height,O.video.fps>1&&(v.resolution+="@"+O.video.fps)),v.codecs=AM7(a),!F.L||a.audio&&a.video?a.vv&&(v.codecs+=" / "+a.vv+"A"):v.codecs+=" / "+AM7(F.L), n.B||n.primaries?(O=n.B||"unknown",O==="smpte2084"?O+=" (PQ)":O==="arib-std-b67"&&(O+=" (HLG)"),v.color=O+" / "+(n.primaries||"unknown"),v.color_style=""):v.color_style="display:none";if(a.debugInfo)for(v.fmt_debug_info="",a=g.N(a.debugInfo),n=a.next();!n.done;n=a.next())n=n.value,v.fmt_debug_info+=n.label+":"+n.text+" ";v.fmt_debug_info_style=v.fmt_debug_info&&v.fmt_debug_info.length>0?"":"display:none"}a=F.isLivePlayback;n=F.Xd;v.live_mode_style=a||n?"":"display:none";v.live_latency_style=a?"": "display:none";if(n)v.live_mode="Post-Live"+(TT(F)?" Manifestless":"");else if(a){n=M.PH;v.live_latency_secs=n.toFixed(2)+"s";a=TT(F)?"Manifestless, ":"";F.oR&&(a+="Windowed, ");O="Uncertain";if(n>=0&&n<120)if(F.latencyClass&&F.latencyClass!=="UNKNOWN")switch(F.latencyClass){case "NORMAL":O="Optimized for Normal Latency";break;case "LOW":O="Optimized for Low Latency";break;case "ULTRALOW":O="Optimized for Ultra Low Latency";break;default:O="Unknown Latency Setting"}else O=F.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";a+=O;(n=M.R9)&&(a+=", seq "+n.sequence);v.live_mode=a}!M.isGapless||pt(F)&&M.Kr||(v.playback_categories+="Gapless ");v.playback_categories_style=v.playback_categories?"":"display:none";v.bandwidth_samples=M.I_;v.network_activity_samples=M.fv;v.live_latency_samples=M.JP;v.buffer_health_samples=M.bL;M=g.MX(F);if(F.cotn||M)v.cotn_and_local_media=(F.cotn?F.cotn:"null")+" / "+M;v.cotn_and_local_media_style=v.cotn_and_local_media?"":"display:none"; GU(F,"web_player_release_debug")?(v.release_name=G[18],v.release_style=""):v.release_style="display:none";v.debug_info&&p.length>0&&v.debug_info.length+p.length<=60?v.debug_info+=" "+p:v.extra_debug_info=p;v.extra_debug_info_style=v.extra_debug_info&&v.extra_debug_info.length>0?"":"display:none";return v}; AM7=function(R){var F=/codecs="([^"]*)"/.exec(R.mimeType);return F&&F[1]?F[1]+" ("+R.itag+")":R.itag}; UF=function(R,F,h,a,J){g.D.call(this,{G:"div",J:"ytp-horizonchart"});this.Y=F;this.sampleCount=h;this.L=a;this.S=J;this.index=0;this.heightPx=-1;this.K=this.D=null;this.B=Math.round(R/h);this.element.style.width=this.B*this.sampleCount+"px";this.element.style.height=this.Y+"em"}; C3=function(R,F){if(R.heightPx===-1){var h=null;try{h=g.B4("CANVAS"),R.D=h.getContext("2d")}catch(I){}if(R.D){var a=R.B*R.sampleCount;R.K=h;R.K.width=a;R.K.style.width=a+"px";R.element.appendChild(R.K)}else for(R.sampleCount=Math.floor(R.sampleCount/4),R.B*=4,h=0;h1?2:1,R.K.height=R.heightPx*h,R.K.style.height= R.heightPx+"px",R.D.scale(1,h)));F=g.N(F);for(a=F.next();!a.done;a=F.next()){h=R;var J=R.index,M=a.value;for(a=0;a+20&&g.pb(F.D.element);a.classList.add("ytp-timely-actions-overlay");F.D.element.appendChild(a)}); g.z(this,this.D);this.X("web_player_overlay_positioned_layout")?this.events.T(R,"basechromeinitialized",function(){F.api.U6(F.D.element,4,!0);F.D.element.setAttribute("data-overlay-order","10")}):g.Pn(this.api,this.D.element,4)}; Xa2=function(R){R.timelyActions&&(R.L=R.timelyActions.reduce(function(F,h){if(h.cueRangeId===void 0)return F;F[h.cueRangeId]=0;return F},{}))}; h5=function(R,F){if(R.timelyActions){R=g.N(R.timelyActions);for(var h=R.next();!h.done;h=R.next())if(h=h.value,h.cueRangeId===F)return h}}; esn=function(R,F){if((R=h5(R,F))&&R.onCueRangeExit)return bw(R.onCueRangeExit)}; F7=function(R){if(R.B!==void 0){var F=(F=h5(R,R.B))&&F.onCueRangeEnter?bw(F.onCueRangeEnter):void 0;var h=h5(R,R.B);a:if(h&&h.additionalTrigger){var a=g.N(h.additionalTrigger);for(var J=a.next();!J.done;J=a.next())if(J=J.value,J.type){var M=void 0,v=void 0;if((M=R.KI[J.type])==null?0:M((v=J.args)!=null?v:{})){a=!0;break a}}a=!1}else a=!0;F&&a&&(R.api.WG("innertubeCommand",F),R.setTimeout(h),R.L[R.B]!==void 0&&R.L[R.B]++,R.C=!0)}}; So2=function(R,F){return R.K===void 0?!1:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(F.seekLengthMilliseconds)===5E3?R.K===72:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(F.seekLengthMilliseconds)===1E4?R.K===74:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(F.seekLengthMilliseconds)===5E3?R.K===71:F.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(F.seekLengthMilliseconds)===1E4?R.K===73:!1}; OcI=function(R){if(R=R.getWatchNextResponse()){var F,h;R=(F=R.playerOverlays)==null?void 0:(h=F.playerOverlayRenderer)==null?void 0:h.timelyActionsOverlayViewModel;F=g.t(R,nlT);if(F!=null&&F.timelyActions)return F==null?void 0:F.timelyActions.map(function(a){return g.t(a,us2)}).filter(function(a){return!!a})}}; doI=function(R){MD.call(this,R);var F=this;pF(this.api,"getPlaybackRate",function(){return F.api.getPlaybackRate()}); pF(this.api,"setPlaybackRate",function(h){typeof h==="number"&&F.api.setPlaybackRate(h)})}; aF=function(R,F,h,a){El.call(this,"VOICE_BOOST",g.Qi.UW);this.B=!1;this.U=R;this.mC=R.v1();this.L=F;this.K=h;this.hasVoiceBoostAudioTrack=a;this.T(R,"videodatachange",this.D);this.setIcon(ys7());this.subscribe("select",this.S,this);this.D()}; J5=function(R){MD.call(this,R);var F=this;this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"settingsMenuInitialized",function(){PCL(F)}); s4(this.api,"getVoiceBoostUserPreference",function(){return F.getVoiceBoostUserPreference()}); s4(this.api,"setVoiceBoostUserPreference",function(a){F.setVoiceBoostUserPreference(a)}); s4(this.api,"hasVoiceBoostAudioTrack",function(){return F.hasVoiceBoostAudioTrack()}); var h;this.B=(h=aXg())!=null?h:0;this.updateEnvironmentData()}; PCL=function(R){R.menuItem||(R.menuItem=new aF(R.api,function(F){R.setVoiceBoostUserPreference(F)},function(){return R.getVoiceBoostUserPreference()},function(){return R.hasVoiceBoostAudioTrack()}),g.z(R,R.menuItem))}; zsT=function(R){R=R.hT();if(!R)return!1;R=g.Ff(R).exp||"";return R.includes("xpv")||R.includes("xpe")}; Kg7=function(R){R=g.N(g.MO(R,!0));for(var F=R.next();!F.done;F=R.next())if(zsT(F.value))return!0;return!1}; tJ2=function(R,F){R=g.N(g.MO(R,!0));for(var h=R.next();!h.done;h=R.next())if(h=h.value,zsT(h)){var a={potc:"1",pot:F};h.url&&(h.url=h3(h.url,a))}}; lrL=function(R){return g.u(function(F){if(F.D==1)return g.Hi(F,2),g.m(F,R,4);if(F.D!=2)return g.yn(F,0);g.f_(F);g.Na(F)})}; gP=function(R){MD.call(this,R);var F=this;this.useLivingRoomPoToken=!1;this.N=new g.EJ;this.B=!1;this.rW=null;this.Z=!1;this.L=null;this.S=!1;var h=R.W().getWebPlayerContextConfig();this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"spsumpreject",function(a,J,M){F.S=J;a&&F.Z&&!F.L&&(F.X("html5_generate_content_po_token")&&M?F.lO(M):F.X("html5_generate_session_po_token")&&DoL(F));F.L||F.api.dA("stp",{s:+F.Z,b:+F.S})}); this.events.T(R,"poTokenVideoBindingChange",function(a){F.lO(a)}); this.useLivingRoomPoToken=!(h==null||!h.useLivingRoomPoToken);R.addEventListener("csiinitialized",function(){F.rW=R.zV();var a=(F.X("html5_generate_session_po_token")||F.X("html5_generate_content_po_token"))&&!F.useLivingRoomPoToken;try{if(F.X("html5_use_shared_owl_instance"))VJa(F);else if(a){F.rW.uT("pot_isc");var J=g.RI(F.api.W().experiments,"html5_webpo_kaios_defer_timeout_ms");J?(F.K=nV(),g.Eg(function(){vb(F)},J)):F.X("html5_webpo_idle_priority_job")?(F.K=nV(),g.D1(g.UK(),function(){vb(F)})): vb(F)}}catch(M){M instanceof Error&&g.qN(M)}}); R.addEventListener("trackListLoaded",this.P_.bind(this));R.Jw(this)}; Uoa=function(R){var F=sk(R.experiments,"html5_web_po_request_key");return F?F:g.Y0(R)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; CCO=function(R){var F=new MR_,h={},a=(h["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",h);return new ky(F,R,function(){return a})}; cMT=function(R){return new Qd(R)}; Gw=function(R,F){R.X("html5_webpo_bge_ctmp")&&R.api.dA(F,{hwpo:!!R.D,hwpor:R.B})}; VJa=function(R){var F,h;g.u(function(a){if(a.D==1)return Gw(R,"swpo_i"),R.K=nV(),IF(R),g.m(a,Ci(),2);if(a.D!=3)return F=a.B,Gw(R,"swpo_co"),g.m(a,mCa(F),3);h=a.B;R.X("html5_web_po_token_disable_caching")||h.kF(150);R.D=h;Gw(R,"swpo_cc");lrL(h.iH()).then(function(){R.B=!0;R.N.resolve();Gw(R,"swpo_re")}); g.Eg(function(){vb(R);Gw(R,"swpo_si")},0); g.Na(a)})}; FHm=function(R){var F=R.api.W(),h=CCO(Uoa(F)),a=h.D4.bind(h);h.D4=function(I){var w;return g.u(function(E){if(E.D==1)return g.m(E,a(I),2);w=E.B;R.api.dA("itr",{});return E.return(w)})}; try{var J=cMT({m8:h,Ld:{maxAttempts:5},sH:{H_:"CLEn",disable:F.experiments.jl("html5_web_po_disable_remote_logging")||WgL.includes(g.I8(F.OJ)||""),iR:lFn(F.experiments),oU:F.experiments.jl("wpo_gel_strz")?function(I){var w=RKm.get(I);w||(w=new rYL(I),w=new g.eV(w),RKm.set(I,w));return w}:void 0, anQ:R.X("wpo_dis_lfdms")?0:1E3},uWA:g.qN});var M=new Xy({VK:J,m8:h,onError:g.qN});lrL(M.iH()).then(function(){R.B=!0;R.N.resolve()}); R.X("html5_web_po_token_disable_caching")||M.kF(150);g.z(R,J);g.z(R,M);R.D=M}catch(I){g.qN(I);var v;(v=J)==null||v.dispose()}}; vb=function(R){var F=R.api.W();R.rW.uT("pot_ist");R.D||FHm(R);R.X("html5_bandaid_attach_content_po_token")||(R.X("html5_generate_session_po_token")&&(IF(R),DoL(R)),F=g.RI(F.experiments,"html5_session_po_token_interval_time_ms")||0,F>0&&(R.Y=g.B6(function(){IF(R)},F)),R.Z=!0)}; IF=function(R){var F,h,a,J;g.u(function(M){if(!R.X("html5_generate_session_po_token")||R.useLivingRoomPoToken)return M.return();F=R.api.W();h=g.Kp("EOM_VISITOR_DATA")||g.Kp("VISITOR_DATA");a=F.x0?F.datasyncId:h;J=sk(F.experiments,"html5_mock_content_binding_for_session_token")||F.livingRoomPoTokenId||a;F.DG=iV(R,J);g.Na(M)})}; iV=function(R,F){if(!R.D){if(R.K)try{return R.K(F)}catch(M){g.qN(M)}return""}try{R.rW.uT(R.B?"pot_cms":"pot_csms");var h={Kv:!0,mS:!0,sS:F};R.X("html5_web_po_token_disable_caching")||(h.QE={z9:F,kM:!0,Iw:!0});var a=R.D.Lx(h);R.rW.uT(R.B?"pot_cmf":"pot_csmf");if(R.B){var J;(J=R.L)==null||J.resolve();R.L=null;R.S&&(R.S=!1,R.api.app.bu().aB(!1))}return a}catch(M){return g.qN(M),""}}; DoL=function(R){R.D&&(R.L=new rh,R.N.promise.then(function(){R.rW.uT("pot_if");IF(R)}))}; g.wP=function(R,F,h){g.Gi(R.element,"ytp-suggestion-set",!!F.videoId);var a=F.playlistId;h=F.f2(h?h:"mqdefault.jpg");var J=null,M=null;F instanceof nZ&&(F.lengthText?(J=F.lengthText||null,M=F.xQ||null):F.lengthSeconds&&(J=g.Q6(F.lengthSeconds),M=g.Q6(F.lengthSeconds,!0)));var v=!!a;a=v&&XV(a).type==="RD";var I=F instanceof nZ?F.isLivePlayback:null,w=F instanceof nZ?F.isUpcoming:null,E=F.author,B=F.shortViewCount,r=F.publishedTimeText,Y=[],p=[];E&&Y.push(E);B&&(Y.push(B),p.push(B));r&&p.push(r);h= {title:F.title,author:E,author_and_views:Y.join(" \u2022 "),aria_label:F.ariaLabel||g.JE("Ver $TITLE",{TITLE:F.title}),duration:J,timestamp:M,url:F.qI(),is_live:I,is_upcoming:w,is_list:v,is_mix:a,background:h?"background-image: url("+h+")":"",views_and_publish_time:p.join(" \u2022 "),autoplayAlternativeHeader:F.xe};F instanceof eQ&&(h.playlist_length=F.playlistLength);R.update(h)}; g.Ew=function(R){var F=R.W(),h=g.kK||g.uo?{style:"will-change: opacity"}:void 0,a=F.L,J=["ytp-modern-videowall-still"];F.D&&J.push("ytp-videowall-show-text");g.D.call(this,{G:"a",sz:J,j:{href:"{{url}}",target:a?F.C:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{G:"div",J:"ytp-modern-videowall-still-image",j:{style:"{{background}}"},V:[{G:"span",J:"ytp-modern-videowall-still-info-duration",Dn:"{{duration}}"}]},{G:"span",J:"ytp-modern-videowall-still-info", j:{"aria-hidden":"true"},V:[{G:"span",J:"ytp-modern-videowall-still-info-bg",V:[{G:"span",J:"ytp-modern-videowall-still-info-content",j:h,V:[{G:"span",J:"ytp-modern-videowall-still-info-title",Dn:"{{title}}"},{G:"span",J:"ytp-modern-videowall-still-info-author",Dn:"{{author_and_views}}"},{G:"span",J:"ytp-modern-videowall-still-info-live",Dn:"En vivo"}]}]}]},{G:"span",sz:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],j:{"aria-hidden":"true"},V:[{G:"span",J:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{G:"span",J:"ytp-modern-videowall-still-listlabel-length",V:[" (",{G:"span",Dn:"{{playlist_length}}"},")"]}]},{G:"span",sz:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],j:{"aria-hidden":"true"},V:[{G:"span",J:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{G:"span",J:"ytp-modern-videowall-still-listlabel-length",Dn:" (50+)"}]}]});this.suggestion=null;this.D=a;this.api=R;this.B=new g.xK(this);g.z(this,this.B);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.B.T(R,"videodatachange",this.onVideoDataChange);R.createServerVe(this.element,this);this.onVideoDataChange()}; g.hKL=function(R,F){if(R.suggestion!==F){R.suggestion=F;var h=R.api.W();g.wP(R,F,"hqdefault.jpg");if(g.Py(h)&&!R.api.X("web_player_log_click_before_generating_ve_conversion_params")){h=F.qI();var a={};g.QV(R.api,"addEmbedsConversionTrackingParams",[a]);h=g.sA(h,a);R.updateValue("url",h)}(F=(F=F.sessionData)&&F.itct)&&R.api.setTrackingParams(R.element,F)}}; Bb=function(R,F){g.D.call(this,{G:"div",sz:["ytp-fullscreen-grid"],V:[{G:"div",J:"ytp-fullscreen-grid-hover-overlay",j:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid"}},{G:"div",sz:["ytp-fullscreen-grid-content","ytp-fullscreen-grid-stills-container"]}]});this.player=R;this.stills=[];this.videoData=null;this.currentState=0;this.L=this.element.querySelector(".ytp-fullscreen-grid-stills-container");this.B= new g.xK(this);g.z(this,this.B);this.D=F;if(R=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.T(R,"click",this.K),bm(this.player,R,this);if(R=this.player.getVideoData(1))this.videoData=R;this.B.T(this.player,"videodatachange",this.onVideoDataChange)}; ps=function(R){MD.call(this,R);var F=this;this.B=this.D=0;this.S=null;this.L=0;var h=new g.xK(R);g.z(this,h);this.C=this.api.X("web_player_imax_theater_mode");this.K=this.api.X("web_player_enable_fullscreen_grid_components");h.T(R,"fullscreentoggled",function(){rP(F)}); h.T(R,"videodatachange",function(){if(F.K){var a=F.api.getVideoData(1);F.videoData!==a&&F.D===2&&Yw(F,1);F.videoData=a}},this); h.T(R,"sizestylechange",function(){F.K&&rP(F)}); s4(this.api,"setFullscreenQuickActions",function(a){F.setFullscreenQuickActions(a)}); s4(this.api,"setPlayerOverlayVideoDetailsRenderer",function(a){F.setPlayerOverlayVideoDetailsRenderer(a)}); this.K&&akL(this,h,R)}; akL=function(R,F,h){F.T(h,"keyboardserviceglobalkeydown",function(a,J){R.K&&a.keyCode===86&&!a.repeat&&R.D!==0&&(J&&(J.s8=!0),JeT(R))}); F.T(R.api.getRootNode(),"wheel",function(a){var J;if(R.K&&(J=R.N)!=null&&J.element&&R.D!==0)if(g.J$(R.api.getRootNode(),"ytp-grid-scrolling"),R.L===0&&(R.L=window.innerHeight),R.D===1)a.preventDefault(),a.stopPropagation(),R.L!==0&&(R.B+=a.deltaY/R.L,R.B=Math.min(Math.max(R.B,0),.85),R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+R.B.toString()),My7(R,Math.abs(R.B)>=.85));else if(R.D===2){J=a.deltaY<0;var M,v=((M=R.N)==null?void 0:M.element.scrollTop)===0;J&&v?(a.preventDefault(), a.stopPropagation(),R.L!==0&&(R.B+=a.deltaY/R.L,R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+R.B.toString()),My7(R,Math.abs(R.B)>=.85))):R.B!==0&&(R.B=0,R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0"))}}); F.T(h,"standardControlsInitialized",function(){if(!R.N){R.N=new Bb(R.api,R.Z.bind(R));g.z(R,R.N);var a=R.api.getRootNode().querySelector(".ytp-chrome-bottom");a&&a.parentNode&&a.parentNode.insertBefore(R.N.element,a.nextSibling)}}); vea(R,R.D)}; My7=function(R,F){R.S&&clearTimeout(R.S);F?gei(R):R.S=window.setTimeout(function(){gei(R)},150)}; gei=function(R){R.S&&(clearTimeout(R.S),R.S=null);R.L=0;R.K&&R.D!==0&&(Math.abs(R.B)>=.15&&JeT(R),R.B=0,R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+R.B.toString()),g.vs(R.api.getRootNode(),"ytp-grid-scrolling"))}; JeT=function(R){R.K&&(R.D===1?Yw(R,2):Yw(R,1))}; rP=function(R){var F=R.api.isFullscreen()||R.C&&R.api.PV();R.Y&&g.ht(R.Y,F);R.playerOverlayVideoDetailsRenderer&&g.ht(R.playerOverlayVideoDetailsRenderer,F);R.K&&(F?R.D!==2&&Yw(R,1):Yw(R,0))}; Yw=function(R,F){R.D=F;var h;(h=R.N)==null||h.wf(F);R.B=0;R.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+R.B.toString());vea(R,F)}; vea=function(R,F){R=R.api.getRootNode();g.Gi(R,"ytp-fullscreen-grid-peaking",F===1);g.Gi(R,"ytp-fullscreen-grid-active",F===2)}; G9m=function(R){MD.call(this,R);var F=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.xK(R);g.z(this,this.events);this.events.T(R,"heartbeatRequest",function(h){if(F.freePreviewUsageDetails.length||F.freePreviewWatchedDuration!==null)h.heartbeatRequestParams||(h.heartbeatRequestParams={}),h.heartbeatRequestParams.unpluggedParams||(h.heartbeatRequestParams.unpluggedParams={}),F.freePreviewUsageDetails.length>0?h.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= F.freePreviewUsageDetails:h.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+F.freePreviewWatchedDuration}}); s4(R,"setFreePreviewWatchedDuration",function(h){F.freePreviewWatchedDuration=h}); s4(R,"setFreePreviewUsageDetails",function(h){F.freePreviewUsageDetails=h})}; kw=function(R){g.d.call(this);this.features=[];var F=this.B,h=new So(R),a=new vg(R),J=new kt(R),M=new gP(R);var v=g.BW(R.W())?void 0:new TH(R);var I=new p3(R),w=new Lgm(R),E=new doI(R),B=new bD(R);var r=g.BW(R.W())?new G9m(R):void 0;var Y=R.X("html5_enable_ssap")?new $o_(R):void 0;var p;var k=(p=R.W().getWebPlayerContextConfig())!=null&&p.cinematicSettingsAvailable?new xQ(R):void 0;p=new ZW(R);var H=R.X("enable_courses_player_overlay_purchase")?new Kpf(R):void 0;var T=g.ig(R.W())?new uPL(R):void 0; var Z=new yi(R);var b=R.W().L?new OO_(R):void 0;var O=g.Py(R.W())?new Su7(R):void 0;var n=R.X("web_player_move_autonav_toggle")&&R.W().xO?new Lpn(R):void 0;var K=g.ig(R.W())?new QRO(R):void 0;var Rg=R.X("web_enable_speedmaster")&&g.ig(R.W())?new t4(R):void 0;var U=R.W().jb?void 0:new bc2(R);var vi=R.X("report_pml_debug_signal")?new Au2(R):void 0;var GI=new bQa(R),gL=new xt(R);var Em=g.b5(R.W())?new PsO(R):void 0;var hf=navigator.mediaSession&&window.MediaMetadata&&R.W().YJ?new Yt(R):void 0;var qa= R.X("html5_enable_drc")&&!R.W().S?new LY(R):void 0;var m2=new GH(R);var Ru=g.ig(R.W())?new FgI(R):void 0;var ng=R.X("html5_enable_d6de4")?new QO(R):void 0;var $7=g.ig(R.W())&&R.X("web_sleep_timer")?new ez(R):void 0;var eB=g.Py(R.W())?new ohI(R):void 0;var ch=new mE(R),Y7=new jsi(R),Kg=new pPn(R);var hX=R.X("enable_sabr_snackbar_message")?new rMT(R):void 0;var f=R.X("web_enable_timely_actions")?new olm(R):void 0;var Xl=new ND(R);var b9=g.ig(R.W())?new ps(R):void 0;var ag=R.X("html5_enable_voice_boost")? new J5(R):void 0;R=R.X("web_player_loop_settings_menu")&&R.W().u1?new kXi(R):void 0;F.call(this,h,a,J,M,v,I,w,E,B,r,Y,k,p,H,T,Z,b,O,n,K,Rg,U,vi,GI,gL,Em,void 0,hf,qa,m2,void 0,Ru,ng,$7,eB,void 0,ch,Y7,Kg,void 0,hX,f,Xl,b9,ag,void 0,R,void 0)}; IkL=function(){this.D=this.B=NaN}; i97=function(R,F){this.uu=R;this.timerName="";this.K=!1;this.D=NaN;this.L=new IkL;this.B=F||null;this.K=!1}; w8g=function(R,F,h){var a=g.V9(F.LI)&&!F.LI.S;if(F.LI.CB&&(KG(F.LI)||F.LI.fI==="shortspage"||sZ(F.LI)||a)&&!R.K){R.K=!0;R.S=F.clientPlaybackNonce;g.Kp("TIMING_ACTION")||zu("TIMING_ACTION",R.uu.csiPageType);R.uu.csiServiceName&&zu("CSI_SERVICE_NAME",R.uu.csiServiceName);if(R.B){a=R.B.zV();for(var J=g.N(Object.keys(a)),M=J.next();!M.done;M=J.next())M=M.value,Hf(M,a[M],R.timerName);a=g.Vz(ldI)(R.B.Dh);g.L4(a,R.timerName);a=R.B;a.B={};a.Dh={}}g.L4({playerInfo:{visibilityState:g.Vz(t1B)()},playerType:"LATENCY_PLAYER_HTML5"}, R.timerName);R.N!==F.clientPlaybackNonce||Number.isNaN(R.D)||(yh("_start",R.timerName)?h=g.Vz(Qh)("_start",R.timerName)+R.D:g.qN(new g.Pv("attempted to log gapless pbs before CSI timeline started",{cpn:F.clientPlaybackNonce})));h&&!yh("pbs",R.timerName)&&Qw(R,h)}}; Qw=function(R,F,h){Hf("pbs",F!=null?F:(0,g.NU)(),h!=null?h:R.timerName)}; $w=function(R){ab2();hQ7();R.timerName=""}; Eef=function(R){if(R.B){var F=R.B;F.B={};F.Dh={}}R.K=!1;R.N=void 0;R.D=NaN}; B6i=function(R,F){g.h0.call(this);this.LI=R;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.B=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.D=0;if(R=F.session_data)this.sessionData=Cp(R,"&");this.index=Math.max(0,Number(F.index)||0);this.loop=!!F.loop;this.startSeconds=Number(F.startSeconds)||0;this.title=F.playlist_title||"";this.description=F.playlist_description||"";this.author= F.author||F.playlist_author||"";F.video_id&&(this.items[this.index]=F);if(R=F.api)typeof R==="string"&&R.length===16?F.list="PL"+R:F.playlist=R;if(R=F.list)switch(F.listType){case "user_uploads":this.listId=new oX("UU","PLAYER_"+R);break;default:var h=F.playlist_length;h&&(this.length=Number(h)||0);this.listId=XV(R);if(R=F.video)this.items=R.slice(0),this.loaded=!0}else if(F.playlist){R=F.playlist.toString().split(",");this.index>0&&(this.items=[]);R=g.N(R);for(h=R.next();!h.done;h=R.next())(h=h.value)&& this.items.push({video_id:h});this.length=this.items.length;if(R=F.video)this.items=R.slice(0),this.loaded=!0}this.setShuffle(!!F.shuffle);if(R=F.suggestedQuality)this.quality=R;this.Z=bg(F,"playlist_");this.K=(F=F.thumbnail_ids)?F.split(","):[]}; re2=function(R){return!!(R.playlist||R.list||R.api)}; Y22=function(R){var F=R.index+1;return F>=R.length?0:F}; s0L=function(R){var F=R.index-1;return F<0?R.length-1:F}; g.A5=function(R,F,h,a){F=F!==void 0?F:R.index;F=R.items&&F in R.items?R.items[R.order[F]]:null;var J=null;F&&(h&&(F.autoplay="1"),a&&(F.autonav="1"),J=new g.Mz(R.LI,F),g.z(R,J),J.xY=!0,J.startSeconds=R.startSeconds||J.clipStart||0,R.listId&&(J.playlistId=R.listId.toString()));return J}; p8m=function(R,F){R.index=g.uu(F,0,R.length-1);R.startSeconds=0}; k9f=function(R,F){if(F.video&&F.video.length){R.title=F.title||"";R.description=F.description;R.views=F.views;R.likes=F.likes;R.dislikes=F.dislikes;R.author=F.author||"";var h=F.loop;h&&(R.loop=h);h=g.A5(R);R.items=[];for(var a=g.N(F.video),J=a.next();!J.done;J=a.next())if(J=J.value)J.video_id=J.encrypted_id,R.items.push(J);R.length=R.items.length;(F=F.index)?R.index=F:R.findIndex(h);R.setShuffle(!1);R.loaded=!0;R.D++;R.B&&R.B()}}; Ae_=function(R,F){var h,a,J,M,v,I,w;return g.u(function(E){if(E.D==1){h=g.zQ();var B=R.W(),r={context:g.ru(R),playbackContext:{contentPlaybackContext:{ancestorOrigins:B.ancestorOrigins}}},Y=B.getWebPlayerContextConfig();if(Y==null?0:Y.encryptedHostFlags)r.playbackContext.contentPlaybackContext.encryptedHostFlags=Y.encryptedHostFlags;if(Y==null?0:Y.hideInfo)r.playerParams={showinfo:!1};B=B.embedConfig;Y=F.docid||F.video_id||F.videoId||F.id;if(!Y){Y=F.raw_embedded_player_response;if(!Y){var p=F.embedded_player_response; p&&(Y=JSON.parse(p))}if(Y){var k,H,T,Z,b,O;Y=((O=g.t((k=Y)==null?void 0:(H=k.embedPreview)==null?void 0:(T=H.thumbnailPreviewRenderer)==null?void 0:(Z=T.playButton)==null?void 0:(b=Z.buttonRenderer)==null?void 0:b.navigationEndpoint,g.EG))==null?void 0:O.videoId)||null}else Y=null}k=(k=Y)?k:void 0;H=R.playlistId?R.playlistId:F.list;T=F.listType;if(H){var n;T==="user_uploads"?n={username:H}:n={playlistId:H};Q02(B,k,F,n);r.playlistRequest=n}else F.playlist?(n={templistVideoIds:F.playlist.toString().split(",")}, Q02(B,k,F,n),r.playlistRequest=n):k&&(n={videoId:k},B&&(n.serializedThirdPartyEmbedConfig=B),r.singleVideoRequest=n);a=r;J=g.Ux($A_);g.Hi(E,2);return g.m(E,g.bN(h,a,J),4)}if(E.D!=2)return M=E.B,v=R.W(),F.raw_embedded_player_response=M,v.Uz=vv(F,g.Py(v)),v.K=v.Uz==="EMBEDDED_PLAYER_MODE_PFL",M&&(I=M,I.trackingParams&&V_(I.trackingParams)),E.return(new g.Mz(v,F));w=g.f_(E);w instanceof Error||(w=Error("b259802748"));g.y7(w);return E.return(R)})}; Q02=function(R,F,h,a){h.index&&(a.playlistIndex=String(Number(h.index)+1));a.videoId=F?F:"";R&&(a.serializedThirdPartyEmbedConfig=R)}; g.NO=function(R,F){xw.get(R);xw.set(R,F)}; g.Hb=function(R){g.h0.call(this);this.loaded=!1;this.player=R}; xAf=function(){this.D=[];this.B=[]}; g.MO=function(R,F){return F?R.B.concat(R.D):R.B}; g.Ls=function(R,F){switch(F.kind){case "asr":N6m(F,R.D);break;default:N6m(F,R.B)}}; N6m=function(R,F){g.QL(F,function(h){return R.equals(h)})||F.push(R)}; g.Tw=function(R){g.d.call(this);this.Xo=R;this.D=new xAf;this.L=null;this.N=[];this.Z=[]}; g.yw=function(R,F,h){g.Tw.call(this,R);this.videoData=F;this.audioTrack=h;this.B=null;this.K=!1;this.N=F.Ds;this.Z=F.zt;this.K=g.UG(F)}; g.H9g=function(R,F){var h;return R.W().X("safari_live_drm_captions_fix")&&((h=R.getVideoData())==null?0:h.rL())?!1:g.BW(R.W())&&!F.isManifestless}; g.qO=function(R,F){return Pz(R.info.mimeType)?F?R.info.itag===F:!0:!1}; g.LHL=function(R,F){if(R.B!=null&&g.H9g(F,R.B)&&R.B.B.rawcc!=null)return!0;if(!R.Mt())return!1;F=!!R.B&&R.B.isManifestless&&Object.values(R.B.B).some(function(h){return g.qO(h,"386")}); R=!!R.B&&!R.B.isManifestless&&g.Eu_(R.B);return F||R}; g.fs=function(R,F,h,a,J,M){g.Tw.call(this,R);this.videoId=h;this.BH=J;this.eventId=M;this.S={};this.B=null;R=a||g.Ff(F).hl||"";R=R.split("_").join("-");this.K=h3(F,{hl:R})}; T6T=function(R,F){g.d.call(this);var h=this;this.U=R;this.L=F;this.Dh={};this.B={};this.D=null;this.K=new Set;this.N=new g.xK(this);this.rf={sOb:function(){return h.L}}; this.S=this.U.X("web_player_defer_modules");this.BJ=new Map;g.z(this,this.N);this.N.T(R,"videodatachange",this.onVideoDataChange)}; yef=function(R,F){R.D=F}; g.jc=function(R){return R.BJ.get("captions")}; O9n=function(R,F){switch(F){case "ad":return q2g(R);case "annotations_module":return R.U.isEmbedsShortsMode()?R=!1:(F=R.U,R=F.W(),F=F.getVideoData(),R=R.K||F.xV||R.controlsType==="3"?!1:R.Sl.isEmpty()&&R.playerStyle!=="annotation-editor"&&R.playerStyle!=="live-dashboard"?!!F.NQ||!!g.lR(F)||!!g.Dy(F):!0),R;case "asmjs":return fkm(R);case "creatorendscreen":return j07(R);case "embed":return g.Py(R.U.W());case "endscreen":return g.Z92(R);case "heartbeat":return R.WI();case "kids":return hJ(R.U.W()); case "remote":return R.U.W().FO;case "miniplayer":return R.U.W().showMiniplayerUiWhenMinimized;case "offline":return R.U.W().EJ;case "captions":return b9L(R);case "unplugged":return g.Uk(R.U.W());case "ux":return R.U.W().T$;case "webgl":return S2I(R);case "ypc":return R.FU();case "ypc_clickwrap":return R=R.U.getVideoData(),R.DG&&!R.IN;case "yto":return!!R.U.getVideoData().aR.includes("yto");default:return g.y7(Error("Module descriptor "+F+" does not match")),!1}}; Z0=function(R,F,h,a,J){var M;h=h===void 0?!1:h;a=a===void 0?!1:a;var v=R.BJ.get(F);if(!v||a)if(J||(J=function(){Z0(R,F,h,a)}),M||(M=function(){R.U.ag(F)}),v=v||mA2(R,F,O9n(R,F),J,M))R.BJ.set(F,v),v.create(),R.U.publish("modulecreated",F),h&&R.U.hj("onApiChange")}; X8L=function(R){var F=F===void 0?!1:F;var h,a,J,M,v;return g.u(function(I){if(I.D==1)return(h=R.BJ.get("asmjs"))&&!F?I.return(h):(a=xw.get("asmjs"))!=null?(J=a,I.G$(2)):g.m(I,new Promise(function(w,E){oe_(R,"asmjs",function(){var B=xw.get("asmjs");B?w(B):E("cannot load module asmjs")},E)}),3); I.D!=2&&(J=I.B);M=J;if(!M)return I.return(Promise.reject("cannot load module asmjs"));v=new M(R.U);R.BJ.set("asmjs",v);v.create();return I.return(v)})}; uQi=function(R){eKO(R)&&R.qy();ne2(R)&&(Z0(R,"captions",!0),Z0(R,"endscreen"),R.o2(),Z0(R,"creatorendscreen",!0))}; ne2=function(R){var F=R.U.getVideoData(),h=R.S&&!F.isInlinePlaybackNoAd;R.U.X("html5_defer_modules_on_ads_only")&&!F.isAd()&&(h=!1);return h}; eKO=function(R){R=R.U.getVideoData();var F;if(F=R.X("web_player_defer_ad")){if(g.x7(R.aR,"ad")||pKL(R)||R.enableServerStitchedDai)R=!1;else{F=R.playerResponse;R=R.startSeconds;var h=F==null?void 0:F.adPlacements;if(F=h){F=Number.MAX_VALUE;h=g.N(h);for(var a=h.next();!a.done;a=h.next())if(a=a.value.adPlacementRenderer){var J=void 0,M=(J=a.config)==null?void 0:J.adPlacementConfig;J=void 0;if(((J=M)==null?void 0:J.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var v=J=void 0;M=Number((J=M)==null?void 0:(v= J.adTimeOffset)==null?void 0:v.offsetStartMilliseconds)||0;v=J=void 0;a=Number(((J=a.renderer)==null?void 0:(v=J.adBreakServiceRenderer)==null?void 0:v.prefetchMilliseconds)||0);a=M-a;a=11;R=R.api.W().Y&&ns;return!(!F&&!R)}; cb=function(R,F){return!R.api.isInline()&&!GG7(R,xO(F))&&g.$r(F)}; gpm=function(R){R.Mx.Pn();if(R.U1&&R.My)R.My=!1;else if(!R.api.W().NQ&&!R.vR()){var F=R.api.getPlayerStateObject();g.V(F,2)&&g.mX(R.api)||R.WQ(F);!R.api.W().EP||F.isCued()||g.V(F,1024)?R.X8():R.Lk.isActive()?(R.UM(),R.Lk.stop()):R.Lk.start()}}; iki=function(R,F){var h;if((h=R.api.getVideoData())==null?0:h.mutedAutoplay){var a,J;if((a=F.target)==null?0:(J=a.className)==null?0:J.includes("ytp-info-panel"))return!1}return g.$r(F)&&R.api.isMutedByMutedAutoplay()?(R.api.unMute(),R.api.getPresentingPlayerType()===2&&R.api.playVideo(),F=R.api.getPlayerStateObject(),!g.V(F,4)||g.V(F,8)||g.V(F,2)||R.X8(),!0):!1}; wFi=function(R,F,h){R.api.isFullscreen()?h<1-F&&R.api.toggleFullscreen():h>1+F&&R.api.toggleFullscreen()}; vpn=function(R){var F=uB()&&Xf()>=67&&!R.api.W().Y;R=R.api.W().disableOrganicUi;return!g.nR("tizen")&&!nG&&!F&&!R}; g.Wb=function(R){g.D.call(this,{G:"div",V:[{G:"div",J:"ytp-bezel-text-wrapper",V:[{G:"div",J:"ytp-bezel-text",Dn:"{{title}}"}]},{G:"div",J:"ytp-bezel",j:{role:"status","aria-label":"{{label}}"},V:[{G:"div",J:"ytp-bezel-icon",Dn:"{{icon}}"}]}]});this.U=R;this.D=new g.DY(this.show,10,this);R=this.U.X("delhi_modern_web_player")?1E3:500;this.B=new g.DY(this.hide,R,this);g.z(this,this.D);g.z(this,this.B);this.hide()}; FA=function(R,F,h){if(F<=0){h=TA();F="silenciado";var a=0}else h=h?{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},a=Math.floor(F),F=a+"volumen";RR(R,h,F,a+"%")}; EpO=function(R,F){F=F?{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:kPL();var h=R.U.getPlaybackRate(),a=g.JE("La velocidad es de $RATE",{RATE:String(h)});RR(R,F,a,h+"x")}; BgL=function(R,F){F=F?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";RR(R,yuf(R.U),F)}; RR=function(R,F,h,a){a=a===void 0?"":a;R.updateValue("label",h===void 0?"":h);R.updateValue("icon",F);g.CD(R.B);R.D.start();R.updateValue("title",a);g.Gi(R.element,"ytp-bezel-text-hide",!a)}; rmO=function(R,F){g.D.call(this,{G:"button",sz:["ytp-button","ytp-cards-button"],j:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Py(R.W()))},V:[{G:"span",J:"ytp-cards-button-icon-default",V:[{G:"div",J:"ytp-cards-button-icon",V:[R.W().X("player_new_info_card_format")?AsB():{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",J:"ytp-cards-button-title",Dn:"Informaci\u00f3n"}]},{G:"span",J:"ytp-cards-button-icon-shopping",V:[{G:"div",J:"ytp-cards-button-icon",V:[{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",J:"ytp-svg-shadow",j:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",J:"ytp-svg-fill",j:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",J:"ytp-svg-shadow-fill",j:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", J:"ytp-cards-button-title",Dn:"Shopping"}]}]});this.U=R;this.D=F;this.B=null;this.fade=new g.CB(this,250,!0,100);g.z(this,this.fade);g.Gi(this.D,"ytp-show-cards-title",g.Py(R.W()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.bd(!0)}; YTB=function(R,F){g.D.call(this,{G:"div",J:"ytp-cards-teaser",V:[{G:"div",J:"ytp-cards-teaser-box"},{G:"div",J:"ytp-cards-teaser-text",V:R.W().X("player_new_info_card_format")?[{G:"button",J:"ytp-cards-teaser-info-icon",j:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},V:[AsB()]},{G:"img",J:"ytp-cards-teaser-channel-avatar",j:{alt:"","aria-hidden":"true"}},{G:"span",J:"ytp-cards-teaser-label",Dn:"{{text}}"},{G:"button",J:"ytp-cards-teaser-close-button",j:{"aria-label":"Cerrar"},V:[g.Ys()]}]: [{G:"span",J:"ytp-cards-teaser-label",Dn:"{{text}}"}]}]});var h=this;this.U=R;this.ET=F;this.fade=new g.CB(this,250,!1,250);this.B=null;this.Y=new g.DY(this.vH$,300,this);this.S=new g.DY(this.SPb,2E3,this);this.L=[];this.D=null;this.Z=new g.DY(function(){h.element.style.margin="0"},250); this.onClickCommand=this.K=null;g.z(this,this.fade);g.z(this,this.Y);g.z(this,this.S);g.z(this,this.Z);R.W().X("player_new_info_card_format")?(g.J$(R.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.mI("ytp-cards-teaser-close-button"),"click",this.Go),this.T(this.mI("ytp-cards-teaser-info-icon"),"click",this.mq),this.T(this.mI("ytp-cards-teaser-label"),"click",this.mq)):this.listen("click",this.mq);this.T(F.element,"mouseover",this.l5);this.T(F.element,"mouseout",this.XF);this.T(R,"cardsteasershow", this.BvI);this.T(R,"cardsteaserhide",this.Nt);this.T(R,"cardstatechange",this.X7);this.T(R,"presentingplayerstatechange",this.X7);this.T(R,"appresize",this.rb);this.T(R,"onShowControls",this.rb);this.T(R,"onHideControls",this.CR);this.listen("mouseenter",this.UK)}; sYB=function(R){g.D.call(this,{G:"button",sz:[hk.BUTTON,hk.TITLE_NOTIFICATIONS],j:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{G:"div",J:hk.TITLE_NOTIFICATIONS_ON,j:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},V:[g.Q2()]},{G:"div",J:hk.TITLE_NOTIFICATIONS_OFF,j:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},V:[{G:"svg",j:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},V:[{G:"path",j:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=R;this.B=!1;R.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")}; pFf=function(R,F){R.B=F;R.element.classList.toggle(hk.NOTIFICATIONS_ENABLED,R.B);var h=R.api.getVideoData();h?(F=F?h.nN:h.eR)?(R=R.api.kL())?ZC(R,F):g.y7(Error("No innertube service available when updating notification preferences.")):g.y7(Error("No update preferences command available.")):g.y7(Error("No video data when updating notification preferences."))}; QYO=function(R,F,h){var a=a===void 0?800:a;var J=J===void 0?600:J;var M=document.location.protocol;R=tuT(M+"//"+R+"/signin?context=popup","feature",F,"next",M+"//"+location.hostname+"/post_login");kGi(R,h,a,J)}; kGi=function(R,F,h,a){h=h===void 0?800:h;a=a===void 0?600:a;if(R=g.YN(window,R,"loginPopup","width="+h+",height="+a+",resizable=yes,scrollbars=yes"))pki(function(){F()}),R.moveTo((screen.width-h)/2,(screen.height-a)/2)}; g.aR=function(R,F,h,a,J,M,v,I,w,E,B,r){R=R.charAt(0)+R.substring(1).toLowerCase();h=h.charAt(0)+h.substring(1).toLowerCase();if(F==="0"||F==="-1")F=null;if(a==="0"||a==="-1")a=null;var Y=B.W(),p=Y.userDisplayName&&g.V9(Y);g.D.call(this,{G:"div",sz:["ytp-button","ytp-sb"],V:[{G:"div",J:"ytp-sb-subscribe",j:p?{title:g.JE("Suscribirse como $USER_NAME",{USER_NAME:Y.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":pZ(Y),"data-tooltip-opaque":String(g.Py(Y)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},V:[{G:"div",J:"ytp-sb-text",V:[{G:"div",J:"ytp-sb-icon"},R]},F?{G:"div",J:"ytp-sb-count",Dn:F}:""]},{G:"div",J:"ytp-sb-unsubscribe",j:p?{title:g.JE("Suscrito como $USER_NAME",{USER_NAME:Y.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":pZ(Y),"data-tooltip-opaque":String(g.Py(Y)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},V:[{G:"div",J:"ytp-sb-text",V:[{G:"div",J:"ytp-sb-icon"},h]}, a?{G:"div",J:"ytp-sb-count",Dn:a}:""]}],j:{"aria-live":"polite"}});var k=this;this.channelId=v;this.U=B;this.K=r;var H=this.mI("ytp-sb-subscribe"),T=this.mI("ytp-sb-unsubscribe");M&&g.J$(this.element,"ytp-sb-classic");if(J){I?this.B():this.D();var Z=function(){if(Y.KI){var O=k.channelId;if(w||E){var n={c:O};var K;g.Wl.isInitialized()&&(K=dZT(n));n=K||"";if(K=B.getVideoData())if(K=K.subscribeCommand){var Rg=B.kL();Rg?(ZC(Rg,K,{botguardResponse:n,feature:w}),B.WG("SUBSCRIBE",O)):g.y7(Error("No innertube service available when updating subscriptions."))}else g.y7(Error("No subscribe command in videoData.")); else g.y7(Error("No video data available when updating subscription."))}T.focus();T.removeAttribute("aria-hidden");H.setAttribute("aria-hidden","true")}else QYO(g.M5(k.U.W()),"sb_button",k.L)},b=function(){var O=k.channelId; if(w||E){var n=B.getVideoData();ZC(B.kL(),n.unsubscribeCommand,{feature:w});B.WG("UNSUBSCRIBE",O)}H.focus();H.removeAttribute("aria-hidden");T.setAttribute("aria-hidden","true")}; this.T(H,"click",Z);this.T(T,"click",b);this.T(H,"keypress",function(O){O.keyCode===13&&Z(O)}); this.T(T,"keypress",function(O){O.keyCode===13&&b(O)}); this.T(B,"SUBSCRIBE",this.B);this.T(B,"UNSUBSCRIBE",this.D);this.K&&p&&(iOT(B),bm(B,H,this),bm(B,T,this))}else g.J$(H,"ytp-sb-disabled"),g.J$(T,"ytp-sb-disabled")}; xjn=function(R){g.D.call(this,{G:"div",J:"ytp-title-channel",V:[{G:"div",J:"ytp-title-beacon"},{G:"a",J:"ytp-title-channel-logo",j:{href:"{{channelLink}}",target:R.W().C,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{G:"div",J:"ytp-title-expanded-overlay",j:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{G:"div",J:"ytp-title-expanded-heading",V:[{G:"div",J:"ytp-title-expanded-title",V:[{G:"a",Dn:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:R.W().C,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",J:"ytp-title-expanded-subtitle",Dn:"{{expandedSubtitle}}",j:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var F=this;this.api=R;this.channel=this.mI("ytp-title-channel");this.D=this.mI("ytp-title-channel-logo");this.channelName=this.mI("ytp-title-expanded-title");this.S=this.mI("ytp-title-expanded-overlay");this.K=this.B=this.subscribeButton=null;this.L=!1;R.createClientVe(this.D,this,36925);R.createClientVe(this.channelName,this, 37220);g.Py(this.api.W())&&$ji(this);this.T(R,"videodatachange",this.gA);this.T(R,"videoplayerreset",this.gA);this.T(this.channelName,"click",function(h){F.api.logClick(F.channelName);g.YN(window,Am_(F));h.preventDefault()}); this.T(this.D,"click",this.TAn);this.gA()}; Ngm=function(R){if(!R.api.W().gW){var F=R.api.getVideoData(),h=new g.aR("Suscribirse",null,"Suscrito/a",null,!0,!1,F.Vc,F.subscribed,"channel_avatar",null,R.api,!0);R.api.createServerVe(h.element,R);var a;R.api.setTrackingParams(h.element,((a=F.subscribeButtonRenderer)==null?void 0:a.trackingParams)||null);R.T(h.element,"click",function(){R.api.logClick(h.element)}); R.subscribeButton=h;g.z(R,R.subscribeButton);R.subscribeButton.Ab(R.S);R.subscribeButton.hide();var J=new sYB(R.api);R.B=J;g.z(R,J);J.Ab(R.S);J.hide();R.T(R.api,"SUBSCRIBE",function(){F.C$&&(J.show(),R.api.logVisibility(J.element,!0))}); R.T(R.api,"UNSUBSCRIBE",function(){F.C$&&(J.hide(),R.api.logVisibility(J.element,!1),pFf(J,!1))})}}; $ji=function(R){var F=R.api.W();Ngm(R);R.updateValue("flyoutUnfocusable","true");R.updateValue("channelTitleFocusable","-1");R.updateValue("shouldHideExpandedTitleForA11y","true");R.updateValue("shouldHideExpandedSubtitleForA11y","true");F.D||F.PG||(R.T(R.channel,"mouseenter",R.Bx),R.T(R.channel,"mouseleave",R.r6),R.T(R.channel,"focusin",R.Bx),R.T(R.channel,"focusout",function(h){R.channel.contains(h.relatedTarget)||R.r6()})); R.K=new g.DY(function(){R.isExpanded()&&(R.api.logVisibility(R.channelName,!1),R.subscribeButton&&(R.subscribeButton.hide(),R.api.logVisibility(R.subscribeButton.element,!1)),R.B&&(R.B.hide(),R.api.logVisibility(R.B.element,!1)),R.channel.classList.remove("ytp-title-expanded"),R.channel.classList.add("ytp-title-show-collapsed"))},500); g.z(R,R.K);R.T(R.channel,Hkg,function(){LlL(R)}); R.T(R.api,"onHideControls",R.dV);R.T(R.api,"appresize",R.dV);R.T(R.api,"fullscreentoggled",R.dV)}; LlL=function(R){R.channel.classList.remove("ytp-title-show-collapsed");R.channel.classList.remove("ytp-title-show-expanded")}; Tgf=function(R){var F=R.api.getPlayerSize();return g.Py(R.api.W())&&F.width>=524}; Am_=function(R){var F=R.api.W(),h=R.api.getVideoData(),a=g.kx(F)+h.uY;g.wu(h)&&(a="https://music.youtube.com"+h.uY);if(!g.Py(F))return a;F={};g.QV(R.api,"addEmbedsConversionTrackingParams",[F]);return g.sA(a,F)}; Jk=function(R){var F=g.hz({"aria-haspopup":"true"});g.Fa.call(this,F,R);this.listen("keydown",this.B)}; Mq=function(R,F){R.element.setAttribute("aria-haspopup",String(F))}; yma=function(R,F){g.D.call(this,{G:"div",J:"ytp-user-info-panel",j:{"aria-label":"Informaci\u00f3n del usuario"},V:R.W().KI&&!R.X("embeds_web_always_enable_signed_out_state")?[{G:"div",J:"ytp-user-info-panel-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-user-info-panel-content",V:[{G:"div",J:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable}}",role:"text"},Dn:"{{watchingAsUsername}}"},{G:"div",J:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Dn:"{{watchingAsEmail}}"}]}]: [{G:"div",J:"ytp-user-info-panel-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-user-info-panel-content",V:[{G:"div",V:[{G:"text",j:{tabIndex:"{{userInfoFocusable}}"},Dn:"Saliste de la cuenta"}]},{G:"div",J:"ytp-user-info-panel-login",V:[{G:"a",j:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Dn:R.W().gW?"":"Acceder a YouTube"}]}]}]});this.Xo=R;this.B=F;R.W().KI||R.W().gW||this.T(this.mI("ytp-user-info-panel-login"),"click",this.r8);this.closeButton=new g.D({G:"button",sz:["ytp-collapse","ytp-button"],j:{title:"Cerrar"}, V:[g.LB()]});this.closeButton.Ab(this.element);g.z(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.AM);this.gA()}; jYT=function(R,F,h){g.yO.call(this,R);this.mC=F;this.l9=h;this.getVideoUrl=new Jk(6);this.b8=new Jk(5);this.X3=new Jk(4);this.nO=new Jk(3);this.SP=new g.Fa(g.hz({href:"{{href}}",target:this.U.W().C},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.Fa(g.hz(),1,"Estad\u00edsticas");this.zz=new g.gY({G:"div",sz:["ytp-copytext","ytp-no-contextmenu"],j:{draggable:"false",tabindex:"1"},Dn:"{{text}}"});this.iA=new TK(this.U,this.zz);this.cT=this.FT=null;g.Py(this.U.W())&& (this.closeButton=new g.D({G:"button",sz:["ytp-collapse","ytp-button"],j:{title:"Cerrar"},V:[g.LB()]}),g.z(this,this.closeButton),this.closeButton.Ab(this.element),this.closeButton.listen("click",this.di,this));g.Py(this.U.W())&&(this.FX=new g.Fa(g.hz(),8,"Cuenta"),g.z(this,this.FX),this.SA(this.FX,!0),this.FX.listen("click",this.VAI,this),R.createClientVe(this.FX.element,this.FX,137682));this.U.W().u1&&(this.XX=new El("En bucle",7),g.z(this,this.XX),this.SA(this.XX,!0),this.XX.listen("click",this.ffl, this),R.createClientVe(this.XX.element,this.XX,28661));g.z(this,this.getVideoUrl);this.SA(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.DtR,this);R.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.z(this,this.b8);this.SA(this.b8,!0);this.b8.listen("click",this.EHo,this);R.createClientVe(this.b8.element,this.b8,28660);g.z(this,this.X3);this.SA(this.X3,!0);this.X3.listen("click",this.dtn,this);R.createClientVe(this.X3.element,this.X3,28658);g.z(this,this.nO);this.SA(this.nO, !0);this.nO.listen("click",this.afI,this);g.z(this,this.SP);this.SA(this.SP,!0);this.SP.listen("click",this.qiu,this);g.z(this,this.showVideoInfo);this.SA(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.xab,this);g.z(this,this.zz);this.zz.listen("click",this.ybz,this);g.z(this,this.iA);F=document.queryCommandSupported&&document.queryCommandSupported("copy");DaL("Chromium")>=43&&(F=!0);DaL("Firefox")<=40&&(F=!1);F&&(this.FT=new g.D({G:"textarea",J:"ytp-html5-clipboard",j:{readonly:"", tabindex:"-1"}}),g.z(this,this.FT),this.FT.Ab(this.element));var a;(a=this.FX)==null||a.setIcon(TKm());var J;(J=this.XX)==null||J.setIcon(bnL());this.nO.setIcon({G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.SP.setIcon(QAB());this.showVideoInfo.setIcon($mT());this.T(R,"onLoopChange",this.onLoopChange);this.T(R,"videodatachange",this.onVideoDataChange);qT2(this);fNL(this,this.U.getVideoData())}; vP=function(R,F){var h=!1;if(R.FT){var a=R.FT.element;a.value=F;a.select();try{h=document.execCommand("copy")}catch(J){}}h?R.mC.Nt():(R.zz.jA(F,"text"),g.jz(R.mC,R.iA),kQ(R.zz.element),R.FT&&(R.FT=null,qT2(R)));return h}; fNL=function(R,F){var h=R.U.W(),a=R.U.getPresentingPlayerType()===2,J=!a||F.isListed;J=!h.aR&&!!F.videoId&&J;h.playerStyle!=="play"?h="https://support.google.com/youtube/?p=report_playback":(h={contact_type:"playbackissue",html5:1,ei:F.eventId,v:F.videoId,p:"movies_playback"},F.D&&(h.fmt=F.D.itag),F.clientPlaybackNonce&&(h.cpn=F.clientPlaybackNonce),F.partnerId&&(h.partnerid=F.partnerId),h=g.sA("//support.google.com/googleplay/",h));R.X3.CO(J&&F.allowEmbed);R.getVideoUrl.CO(J);R.b8.CO(J&&!F.isLivePlayback); R.SP.jA(h,"href");var M;(M=R.XX)==null||M.CO(!F.isLivePlayback&&!a);var v;(v=R.FX)==null||v.CO(!a)}; qT2=function(R){var F=!!R.FT;g.RJ(R.nO,F?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");Mq(R.nO,!F);g.RJ(R.X3,F?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");Mq(R.X3,!F);g.RJ(R.getVideoUrl,F?"Copiar URL del video":"Obtener la URL del video");Mq(R.getVideoUrl,!F);g.RJ(R.b8,F?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");Mq(R.b8,!F);R.X3.setIcon(F?sAT():null);R.getVideoUrl.setIcon(F? pB():null);R.b8.setIcon(F?pB():null)}; ZkI=function(R){return g.Py(R.U.W())?R.FX:R.XX}; STL=function(R,F){g.f3.call(this,R);this.l9=F;this.L=new g.xK(this);this.oR=new g.DY(this.pcA,1E3,this);this.aR=this.K=null;g.z(this,this.L);g.z(this,this.oR);F=this.U.W();R.createClientVe(this.element,this,28656);g.J$(this.element,"ytp-contextmenu");this.U.W().experiments.jl("delhi_modern_web_player")&&g.ig(F)&&g.J$(this.element,"ytp-delhi-modern-contextmenu");bkf(this);this.hide()}; bkf=function(R){g.TP(R.L);var F=R.U.W();F.playerStyle==="gvn"||F.D||F.PG||(F=R.U.xo(),R.L.T(F,"contextmenu",R.InR),R.L.T(F,"touchstart",R.onTouchStart,null,!0),R.L.T(F,"touchmove",R.DX,null,!0),R.L.T(F,"touchend",R.DX,null,!0))}; OkB=function(R){R.U.isFullscreen()?g.Pn(R.U,R.element,10):R.Ab(CF(R).body)}; go=function(R,F,h){h=h===void 0?240:h;g.D.call(this,{G:"button",sz:["ytp-button","ytp-copylink-button"],j:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Py(R.W()))},V:[{G:"div",J:"ytp-copylink-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-copylink-title",Dn:"Copiar v\u00ednculo",j:{"aria-hidden":"true"}}]});this.api=R;this.B=F;this.D=h;this.visible=!1;this.tooltip=this.B.ZQ();F=R.W();this.tooltip.element.setAttribute("aria-live","polite");g.Gi(this.element,"ytp-show-copylink-title",g.Py(F));R.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.T(R,"videodatachange",this.gA);this.T(R,"videoplayerreset",this.gA);this.T(R,"appresize",this.gA);this.gA();this.addOnDisposeCallback(g.Z4(this.tooltip,this.element))}; mj_=function(R){var F=R.api.W(),h=R.api.getVideoData(),a=R.api.xo().getPlayerSize().width;F=F.K;return!!h.videoId&&a>=R.D&&h.NP&&!g.im(h)&&!R.api.isEmbedsShortsMode()&&!F}; opB=function(R){R.updateValue("icon",Ej());if(R.api.W().D)R.tooltip.jP(R.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{R.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");R.tooltip.P7();R.tooltip.jP(R.element);var F=R.listen("mouseleave",function(){R.Ap(F);R.gA();R.tooltip.De()})}}; XF_=function(R,F){return g.u(function(h){if(h.D==1)return g.Hi(h,2),g.m(h,navigator.clipboard.writeText(F),4);if(h.D!=2)return h.return(!0);g.f_(h);var a=h.return,J=!1,M=g.B4("TEXTAREA");M.value=F;M.setAttribute("readonly","");var v=R.api.getRootNode();v.appendChild(M);if(PR){var I=window.getSelection();I.removeAllRanges();var w=document.createRange();w.selectNodeContents(M);I.addRange(w);M.setSelectionRange(0,F.length)}else M.select();try{J=document.execCommand("copy")}catch(E){}v.removeChild(M); return a.call(h,J)})}; eB_=function(R){g.D.call(this,{G:"div",J:"ytp-doubletap-ui-legacy",V:[{G:"div",J:"ytp-doubletap-fast-forward-ve"},{G:"div",J:"ytp-doubletap-rewind-ve"},{G:"div",J:"ytp-doubletap-static-circle",V:[{G:"div",J:"ytp-doubletap-ripple"}]},{G:"div",J:"ytp-doubletap-overlay-a11y"},{G:"div",J:"ytp-doubletap-seek-info-container",V:[{G:"div",J:"ytp-doubletap-arrows-container",V:[{G:"span",J:"ytp-doubletap-base-arrow"},{G:"span",J:"ytp-doubletap-base-arrow"},{G:"span",J:"ytp-doubletap-base-arrow"}]},{G:"div", J:"ytp-doubletap-tooltip",V:[{G:"div",J:"ytp-seek-icon-text-container",V:[{G:"div",J:"ytp-seek-icon",Dn:"{{seekIcon}}"},{G:"div",J:"ytp-chapter-seek-text-legacy",Dn:"{{seekText}}"}]},{G:"div",J:"ytp-doubletap-tooltip-label",Dn:"{{seekTime}}"}]}]}]});this.U=R;this.L=new g.DY(this.show,10,this);this.D=new g.DY(this.hide,700,this);this.Y=this.K=0;this.oR=this.S=!1;this.B=this.mI("ytp-doubletap-static-circle");g.z(this,this.L);g.z(this,this.D);this.hide();this.Z=this.mI("ytp-doubletap-fast-forward-ve"); this.C=this.mI("ytp-doubletap-rewind-ve");this.U.createClientVe(this.Z,this,28240);this.U.createClientVe(this.C,this,28239);this.U.logVisibility(this.Z,!0);this.U.logVisibility(this.C,!0);this.S=R.X("web_show_cumulative_seek_time");this.oR=R.X("web_center_static_circles")}; npL=function(R,F){F=g.JE("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:F.toString()});R.updateValue("seekTime",F)}; u0_=function(R){L3.call(this,R,!1,!0);this.Uz=[];this.gW=[];this.element.setAttribute("data-overlay-order","9");this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.fI=new g.D({G:"div",J:"ytp-featured-product-open-in-new"});g.z(this,this.fI);this.countdownTimer=new g.D({G:"text",J:"ytp-featured-product-countdown",Dn:"{{content}}"});this.countdownTimer.hide();g.z(this,this.countdownTimer);this.D=new g.D({G:"div",J:"ytp-featured-product-trending",V:[{G:"div",J:"ytp-featured-product-trending-icon"}, {G:"text",J:"ytp-featured-product-trending-text",Dn:"{{trendingOffer}}"}]});this.D.hide();g.z(this,this.D);this.overflowButton=new g.D({G:"button",sz:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.z(this,this.overflowButton);this.Y=new g.D({G:"text",J:"ytp-featured-product-exclusive-countdown",Dn:"{{content}}",j:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Y.hide();g.z(this,this.Y);this.S=new g.D({G:"div",J:"ytp-featured-product-exclusive-container", j:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{G:"div",J:"ytp-featured-product-exclusive-badge-container",V:[{G:"div",J:"ytp-featured-product-exclusive-badge",V:[{G:"text",J:"ytp-featured-product-exclusive-badge-text",Dn:"{{exclusive}}",j:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Y]});this.S.hide();g.z(this,this.S);this.banner=new g.D({G:"a",J:"ytp-featured-product-container",V:[{G:"div",J:"ytp-featured-product-thumbnail",V:[{G:"img",j:{src:"{{thumbnail}}"}},this.fI]},{G:"div", J:"ytp-featured-product-details",V:[{G:"text",J:"ytp-featured-product-title",Dn:"{{title}}"},this.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",J:"ytp-featured-product-price-container",j:{"aria-label":"{{priceA11yText}}"},V:[{G:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",Dn:"{{price}}",j:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-promotion-text",Dn:"{{promotionText}}",j:{"aria-hidden":"true"}}]}:{G:"div",j:{"aria-label":"{{priceA11yText}}"}, V:[{G:"text",J:"ytp-featured-product-price",Dn:"{{price}}",j:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-sales-original-price",Dn:"{{salesOriginalPrice}}",j:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-price-drop-reference-price",Dn:"{{priceDropReferencePrice}}",j:{"aria-hidden":"true"}}]},this.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",J:"ytp-featured-product-when-promotion-text-enabled",V:[{G:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Dn:"{{affiliateDisclaimer}}"},this.D,{G:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",Dn:"{{vendor}}"}]}:{G:"div",V:[{G:"text",J:"ytp-featured-product-affiliate-disclaimer",Dn:"{{affiliateDisclaimer}}"},this.U.X("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.D,{G:"text",J:"ytp-featured-product-vendor",Dn:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.z(this,this.banner);this.banner.Ab(this.K.element);this.T(this.U,g.lz("featured_product"), this.t9o);this.T(this.U,g.Dq("featured_product"),this.U9);this.T(this.U,"videodatachange",this.onVideoDataChange);this.T(this.overflowButton.element,"click",this.SF);this.T(R,"featuredproductdismissed",this.AN)}; djL=function(R){var F,h;R=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:h.itemData;var a,J,M;return(R==null||!R.affiliateDisclaimer)&&(R==null?0:(a=R.exclusivesData)==null?0:a.exclusiveOfferLabelText)&&(R==null?0:(J=R.exclusivesData)==null?0:J.expirationTimestampMs)&&(R==null?0:(M=R.exclusivesData)==null?0:M.exclusiveOfferCountdownText)?!0:!1}; zB_=function(R){var F,h,a,J,M=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:(a=h.itemData)==null?void 0:(J=a.exclusivesData)==null?void 0:J.expirationTimestampMs;F=(Number(M)-Date.now())/1E3;if(F>0){if(F<604800){var v,I,w,E;h=(v=R.B)==null?void 0:(I=v.bannerData)==null?void 0:(w=I.itemData)==null?void 0:(E=w.exclusivesData)==null?void 0:E.exclusiveOfferCountdownText;if(h!==void 0)for(v=Date.now(),I=g.N(h),w=I.next();!w.done;w=I.next())if(w=w.value,w!==void 0&&w.text!==void 0&&(E=Number(w.textDisplayStartTimestampMs), !isNaN(E)&&v>=E)){w.insertCountdown?(F=w.text.replace(/\$0/,String(eI({seconds:F}))),R.Y.jA(F)):R.Y.jA(w.text);R.Y.show();break}}var B,r,Y,p;R.S.update({exclusive:(B=R.B)==null?void 0:(r=B.bannerData)==null?void 0:(Y=r.itemData)==null?void 0:(p=Y.exclusivesData)==null?void 0:p.exclusiveOfferLabelText});R.S.show();GX(R);var k;(k=R.It)==null||k.start()}else PT7(R)}; PT7=function(R){var F;(F=R.It)==null||F.stop();R.Y.hide();R.S.hide();IR(R)}; Klf=function(R){var F,h,a=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:h.itemData;return R.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(a==null||!a.priceReplacementText)&&(a==null?0:a.promotionText)?a==null?void 0:a.promotionText.content:null}; t02=function(R){var F,h,a=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:h.itemData,J,M;if(!(a!=null&&a.priceReplacementText||R.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(a==null?0:(J=a.dealsData)==null?0:(M=J.sales)==null?0:M.originalPrice)){var v,I;return a==null?void 0:(v=a.dealsData)==null?void 0:(I=v.sales)==null?void 0:I.originalPrice}return null}; lN7=function(R){var F,h,a=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:h.itemData,J,M,v,I;if(!((a==null?0:a.priceReplacementText)||R.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(a==null?0:(J=a.dealsData)==null?0:(M=J.sales)==null?0:M.originalPrice))&&(a==null?0:(v=a.dealsData)==null?0:(I=v.priceDrop)==null?0:I.referencePrice)){var w,E;return a==null?void 0:(w=a.dealsData)==null?void 0:(E=w.priceDrop)==null?void 0:E.referencePrice}return null}; DjL=function(R){var F,h,a=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:h.itemData;if(a==null?0:a.priceReplacementText)return a==null?void 0:a.priceReplacementText;if((a==null?0:a.promotionText)&&R.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J;return(a==null?void 0:a.price)+" "+(a==null?void 0:(J=a.promotionText)==null?void 0:J.content)}var M,v;if(a==null?0:(M=a.dealsData)==null?0:(v=M.sales)==null?0:v.originalPrice){var I,w;return a==null?void 0:(I=a.dealsData)== null?void 0:(w=I.sales)==null?void 0:w.salesPriceAccessibilityLabel}var E,B;if(a==null?0:(E=a.dealsData)==null?0:(B=E.priceDrop)==null?0:B.referencePrice){var r,Y;return(a==null?void 0:a.price)+" "+(a==null?void 0:(r=a.dealsData)==null?void 0:(Y=r.priceDrop)==null?void 0:Y.referencePrice)}return a==null?void 0:a.price}; V0B=function(R){if(R.U.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var F,h,a;return R.D.dW?null:(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:(a=h.itemData)==null?void 0:a.vendorName}var J,M,v,I,w,E;return R.D.dW||R.S.dW||((J=R.B)==null?0:(M=J.bannerData)==null?0:(v=M.itemData)==null?0:v.affiliateDisclaimer)?null:(I=R.B)==null?void 0:(w=I.bannerData)==null?void 0:(E=w.itemData)==null?void 0:E.vendorName}; CTm=function(R,F){is(R);if(F){var h=g.YF.getState().entities;h=Ua(h,"featuredProductsEntity",F);if(h!=null&&h.productsData){F=[];h=g.N(h.productsData);for(var a=h.next();!a.done;a=h.next()){a=a.value;var J=void 0;if((J=a)!=null&&J.identifier&&a.featuredSegments){R.Uz.push(a);var M=void 0;J=g.N((M=a)==null?void 0:M.featuredSegments);for(M=J.next();!M.done;M=J.next()){var v=M.value;M=Ujm(v.startTimeSec);M!==void 0&&(v=Ujm(v.endTimeSec),F.push(new g.KI(M*1E3,v===void 0?0x7ffffffffffff:v*1E3,{id:a.identifier, namespace:"featured_product"})))}}}R.U.eI(F)}}}; IR=function(R){if(R.trendingOfferEntityKey){var F=g.YF.getState().entities;if(F=Ua(F,"trendingOfferEntity",R.trendingOfferEntityKey)){var h,a,J;F.encodedSkuId!==((h=R.B)==null?void 0:(a=h.bannerData)==null?void 0:(J=a.itemData)==null?void 0:J.encodedOfferSkuId)?GX(R):(R.D.update({trendingOffer:F.shortLabel+" \u2022 "+F.countLabel}),R.D.show(),R.banner.update({vendor:V0B(R)}))}else GX(R)}else GX(R)}; GX=function(R){R.D.hide();R.banner.update({vendor:V0B(R)})}; is=function(R){R.Uz=[];R.U9();R.U.NH("featured_product")}; cmI=function(R){var F,h,a,J,M=(F=R.B)==null?void 0:(h=F.bannerData)==null?void 0:(a=h.itemData)==null?void 0:(J=a.hiddenProductOptions)==null?void 0:J.dropTimestampMs;F=(Number(M)-Date.now())/1E3;R.countdownTimer.jA(eI({seconds:F}));if(F>0){var v;(v=R.Sw)==null||v.start()}}; Wl_=function(R){var F;(F=R.Sw)==null||F.stop();R.countdownTimer.hide()}; Ujm=function(R){if(R!==void 0&&R.trim()!==""&&(R=Math.trunc(Number(R.trim())),!(isNaN(R)||R<0)))return R}; Jrm=function(R,F,h){g.D.call(this,{G:"div",sz:["ytp-info-panel-action-item"],V:[{G:"div",J:"ytp-info-panel-action-item-disclaimer",Dn:"{{disclaimer}}"},{G:"a",sz:["ytp-info-panel-action-item-button","ytp-button"],j:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{G:"div",J:"ytp-info-panel-action-item-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-info-panel-action-item-label",Dn:"{{label}}"}]}]});this.U=R;this.B=h;this.disclaimer=this.mI("ytp-info-panel-action-item-disclaimer");this.button= this.mI("ytp-info-panel-action-item-button");this.Fd=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);R="";h=g.t(F==null?void 0:F.onTap,j2);var a=g.t(h,g.bQ);this.Fd=!1;a?(R=a.url||"",R.startsWith("//")&&(R="https:"+R),this.Fd=!0,g.iu(this.button,g.Gq(R))):(a=g.t(h,R9_))&&!this.B?((R=a.phoneNumbers)&&R.length>0?(R="sms:"+R[0],a.messageText&&(R+="?&body="+encodeURI(a.messageText))):R="",this.Fd=!0,g.iu(this.button,g.Gq(R,[Fsi]))):(h=g.t(h,h9L))&&!this.B&&(R=h.phoneNumber? "tel:"+h.phoneNumber:"",this.Fd=!0,g.iu(this.button,g.Gq(R,[aSO])));var J;if(h=(J=F.disclaimerText)==null?void 0:J.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var M;this.update({label:(M=F.bodyText)==null?void 0:M.content,icon:$s(),disclaimer:h})}else{this.disclaimer.style.display="none";var v;this.update({label:(v=F.bodyText)==null?void 0:v.content,icon:$s()})}this.U.setTrackingParams(this.element,F.trackingParams||null);this.Fd&&(this.D={externalLinkData:{url:R}})}; M5a=function(R,F){var h=a7();g.U4.call(this,R,{G:"div",J:"ytp-info-panel-detail-skrim",V:[{G:"div",J:"ytp-info-panel-detail",j:{role:"dialog",id:h},V:[{G:"div",J:"ytp-info-panel-detail-header",V:[{G:"div",J:"ytp-info-panel-detail-title",Dn:"{{title}}"},{G:"button",sz:["ytp-info-panel-detail-close","ytp-button"],j:{"aria-label":"Cerrar"},V:[g.Ys()]}]},{G:"div",J:"ytp-info-panel-detail-body",Dn:"{{body}}"},{G:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.B=F;this.items=this.mI("ytp-info-panel-detail-items"); this.K=new g.xK(this);this.itemData=[];this.L=h;this.T(this.mI("ytp-info-panel-detail-close"),"click",this.Nt);this.T(this.mI("ytp-info-panel-detail-skrim"),"click",this.Nt);this.T(this.mI("ytp-info-panel-detail"),"click",function(a){a.stopPropagation()}); g.z(this,this.K);this.U.createServerVe(this.element,this,!0);this.T(R,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",R.getVideoData());this.hide()}; vc2=function(R,F){R=g.N(R.itemData);for(var h=R.next();!h.done;h=R.next())h=h.value,h.U.logVisibility(h.element,F)}; ISL=function(R,F){g.D.call(this,{G:"div",J:"ytp-info-panel-preview",j:{"aria-live":"assertive","aria-atomic":"true","aria-owns":F.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Py(R.W()))},V:[{G:"div",J:"ytp-info-panel-preview-text",Dn:"{{text}}"},{G:"div",J:"ytp-info-panel-preview-chevron",Dn:"{{chevron}}"}]});var h=this;this.U=R;this.Wc=this.B=this.videoId=null;this.K=this.showControls=this.D=!1;this.T(this.element,"click",function(){R.logClick(h.element);R.vR();cn(F)}); this.fade=new g.CB(this,250,!1,100);g.z(this,this.fade);this.U.createServerVe(this.element,this,!0);this.T(R,"videodatachange",this.onVideoDataChange);this.T(R,"presentingplayerstatechange",this.RX);this.T(this.U,"paidcontentoverlayvisibilitychange",this.le);this.T(this.U,"infopaneldetailvisibilitychange",this.le);var a=R.getVideoData()||{};gc_(a)&&Gcg(this,a);this.T(R,"onShowControls",this.cF);this.T(R,"onHideControls",this.vF)}; Gcg=function(R,F){if(!F.DG||!R.U.MC()){var h=F.TX||1E4,a=gc_(F);R.B?F.videoId&&F.videoId!==R.videoId&&(g.CD(R.B),R.videoId=F.videoId,a?(iaL(R,h,F),R.Tn()):(R.Nt(),R.B.dispose(),R.B=null)):a&&(F.videoId&&(R.videoId=F.videoId),iaL(R,h,F),R.Tn())}}; gc_=function(R){var F,h,a,J;return!!((F=R.Xk)==null?0:(h=F.title)==null?0:h.content)||!!((a=R.Xk)==null?0:(J=a.bodyText)==null?0:J.content)}; iaL=function(R,F,h){R.B&&R.B.dispose();R.B=new g.DY(R.WjG,F,R);g.z(R,R.B);var a;F=((a=h.Xk)==null?void 0:a.trackingParams)||null;R.U.setTrackingParams(R.element,F);var J;var M,v;if(h==null?0:(M=h.Xk)==null?0:(v=M.title)==null?0:v.content){var I;a=(J=h.Xk)==null?void 0:(I=J.title)==null?void 0:I.content;var w,E;if((w=h.Xk)==null?0:(E=w.bodyText)==null?0:E.content)a+=" \u2022 ";J=a}else J="";var B,r;h=((B=h.Xk)==null?void 0:(r=B.bodyText)==null?void 0:r.content)||"";R.update({text:J+h,chevron:g.rY()})}; w2L=function(R,F){R.B&&(g.V(F,8)?(R.D=!0,R.Tn(),R.B.start()):(g.V(F,2)||g.V(F,64))&&R.videoId&&(R.videoId=null))}; wo=function(R){var F=null;try{F=R.toLocaleString("es-419",{style:"percent"})}catch(h){F=R.toLocaleString(void 0,{style:"percent"})}return F}; E7=function(R,F){var h=0;R=g.N(R);for(var a=R.next();!(a.done||a.value.startTime>F);a=R.next())h++;return h===0?h:h-1}; EcO=function(R,F){for(var h=0,a=g.N(R),J=a.next();!J.done;J=a.next()){J=J.value;if(F=J.timeRangeStartMillis&&F0?F[0]:null;var h=g.gs("ytp-chrome-bottom"),a=g.gs("ytp-ad-module");R.L=!(h==null||!h.contains(F));R.Z=!(a==null||!a.contains(F));R.C=!(F==null||!F.hasAttribute("data-tooltip-target-fixed"));return F}; fST=function(R,F,h){if(!R.S){if(F){R.tooltipRenderer=F;F=R.tooltipRenderer.text;var a=!1,J;(F==null?0:(J=F.runs)==null?0:J.length)&&F.runs[0].text&&(R.update({title:F.runs[0].text.toString()}),a=!0);g.ht(R.title,a);F=R.tooltipRenderer.detailsText;J=!1;var M;if((F==null?0:(M=F.runs)==null?0:M.length)&&F.runs[0].text){a=F.runs[0].text.toString();M=a.indexOf("$TARGET_ICON");if(M>-1)if(R.tooltipRenderer.targetId){F=[];a=a.split("$TARGET_ICON");var v=new g.J0({G:"span",J:"ytp-promotooltip-details-icon", V:[yri[R.tooltipRenderer.targetId]]});g.z(R,v);for(var I=[],w=g.N(a),E=w.next();!E.done;E=w.next())E=new g.J0({G:"span",J:"ytp-promotooltip-details-component",Dn:E.value}),g.z(R,E),I.push(E);a.length===2?(F.push(I[0].element),F.push(v.element),F.push(I[1].element)):a.length===1&&(M===0?(F.push(v.element),F.push(I[0].element)):(F.push(I[0].element),F.push(v.element)));M=F.length?F:null}else M=null;else M=a;if(M){if(typeof M!=="string")for(g.pb(R.details),J=g.N(M),M=J.next();!M.done;M=J.next())R.details.appendChild(M.value); else R.update({details:M});J=!0}}g.ht(R.details,J);J=R.tooltipRenderer.acceptButton;M=!1;var B,r,Y;((B=g.t(J,g.Wq))==null?0:(r=B.text)==null?0:(Y=r.runs)==null?0:Y.length)&&g.t(J,g.Wq).text.runs[0].text&&(R.update({acceptButtonText:g.t(J,g.Wq).text.runs[0].text.toString()}),M=!0);g.ht(R.acceptButton,M);B=R.tooltipRenderer.dismissButton;r=!1;var p,k,H;((p=g.t(B,g.Wq))==null?0:(k=p.text)==null?0:(H=k.runs)==null?0:H.length)&&g.t(B,g.Wq).text.runs[0].text&&(R.update({dismissButtonText:g.t(B,g.Wq).text.runs[0].text.toString()}), r=!0);g.ht(R.dismissButton,r)}h&&(R.K=h);R.B=T8i(R);R.Y=!1;R.U.W().X("web_player_hide_nitrate_promo_tooltip")||R.CO(!0);qsB(R);R.dW&&!R.oR&&(R.oR=!0,R.rf.w1(0));R.D&&R.U.logVisibility(R.element,R.dW)}}; Qf=function(R){R.CO(!1);R.D&&R.U.logVisibility(R.element,R.dW)}; jW2=function(R){var F,h,a,J=((F=g.t(R.acceptButton,g.Wq))==null?void 0:(h=F.text)==null?void 0:(a=h.runs)==null?void 0:a.length)&&!!g.t(R.acceptButton,g.Wq).text.runs[0].text,M,v,I;F=((M=g.t(R.dismissButton,g.Wq))==null?void 0:(v=M.text)==null?void 0:(I=v.runs)==null?void 0:I.length)&&!!g.t(R.dismissButton,g.Wq).text.runs[0].text;return J||F}; qsB=function(R){var F;if(!(F=!R.B)){F=R.B;var h=window.getComputedStyle(F);F=h.display==="none"||h.visibility==="hidden"||F.getAttribute("aria-hidden")==="true"}if(F||R.U.isMinimized())R.CO(!1);else if(F=g.FJ(R.B),F.width&&F.height){R.U.PK(R.element,R.B);var a=R.U.xo().getPlayerSize().height;h=g.FJ(R.mI("ytp-promotooltip-container")).height;R.L?R.element.style.top=a-h-F.height-12+"px":R.C||(a=R.U.c9().height-h-F.height-12,R.element.style.top=a+"px");a=R.mI("ytp-promotooltip-pointer");var J=g.W4(R.B, R.U.getRootNode()),M=Number(R.element.style.left.replace(/[^\d\.]/g,""));R=R.U.isFullscreen()?18:12;a.style.left=J.x-M+F.width/2-R+"px";a.style.top=h+"px"}else R.CO(!1)}; $B=function(R){g.D.call(this,{G:"button",sz:["ytp-replay-button","ytp-button"],j:{title:"Volver a reproducir"},V:[g.NF()]});this.U=R;this.T(R,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.wf(R.getPlayerStateObject());bm(this.U,this.element,this)}; Ak=function(R,F){F=F===void 0?240:F;g.D.call(this,{G:"button",sz:["ytp-button","ytp-search-button"],j:{title:"Buscar","data-tooltip-opaque":String(g.Py(R.W()))},V:[{G:"div",J:"ytp-search-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-search-title",Dn:"Buscar"}]});this.api=R;this.D=F;this.visible=!1;this.updateValue("icon",{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{G:"path",J:"ytp-svg-fill",j:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); R.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.B();this.T(R,"appresize",this.B);this.T(R,"videodatachange",this.B);bm(R,this.element,this)}; xB=function(R){g.D.call(this,{G:"div",J:"ytp-seek-overlay",V:[{G:"div",sz:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{G:"div",sz:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{G:"svg",j:{viewBox:"0 0 22 32",width:"22",height:"32"},V:[{G:"path",j:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{G:"div",J:"ytp-seek-overlay-duration",Dn:"{{durationBack}}"}]},{G:"div",sz:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], V:[{G:"div",J:"ytp-seek-overlay-duration",Dn:"{{durationForward}}"},{G:"div",sz:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{G:"svg",j:{viewBox:"0 0 22 32",width:"22",height:"32"},V:[{G:"path",j:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{G:"div",J:"ytp-seek-overlay-message",V:[{G:"div",J:"ytp-seek-overlay-message-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-seek-overlay-message-text",Dn:"{{text}}"}]}]});var F=this;this.U=R;this.Y=0;this.B="hidden"; this.oR=0;this.Z=this.mI("ytp-seek-overlay-animation-back");this.C=this.mI("ytp-seek-overlay-animation-forward");this.aR=this.mI("ytp-seek-overlay-message");this.S=new g.DY(function(){ZaL(F)},g.RI(this.U.W().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.z(this,this.S);this.U.createClientVe(this.C,this,28240);this.U.createClientVe(this.Z,this,28239);this.U.logVisibility(this.C,!0);this.U.logVisibility(this.Z,!0);this.hide()}; ba2=function(R,F){R.D=R.K.animate([{offset:0,opacity:F,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});R.D.addEventListener("finish",function(){R.D=void 0;R.S.start();R.B="lingering"})}; Ssi=function(R,F,h){h=h===void 0?!1:h;var a=[];a.push({offset:0,transform:"translateX("+(R.L===-1?30:-30)+"px)",opacity:h?"0":"1"});h&&a.push({offset:.5,opacity:"1"});a.push({offset:1,transform:"translateX(0)"});h=F.animate(a,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});F.querySelector("path").animate([{offset:0,d:R.L===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:R.L===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return h}; Oa_=function(R){if((0,g.NU)()-R.oR>=(g.RI(R.U.W().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var F=R.K.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);F.classList.add("ytp-seek-overlay-arrow-additional");F.classList.remove("ytp-seek-overlay-arrow-persistent");R.K.appendChild(F);Ssi(R,F,!0).addEventListener("finish",function(){F.remove()})}}; ZaL=function(R,F,h){h=h===void 0?!0:h;R.D=R.K.animate([{offset:0,opacity:F===void 0?1:F},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});h&&(R.D.addEventListener("finish",function(){R.D=void 0;myO(R);R.hide()}),R.B="fading-out")}; ocB=function(R){var F=Number(getComputedStyle(R.K).opacity),h;(h=R.D)==null||h.cancel();R.D=void 0;return F}; myO=function(R){R.Y=0;R.B="hidden";R.L=void 0;R.K=void 0;R.oR=0;R.S.stop();R.D=void 0}; X2L=function(R,F,h){R.updateValue("text",F);if(h){a:{switch(h){case "PREMIUM_STANDALONE":F=f12();break a;case "PREMIUM_STANDALONE_CAIRO":F=jA2();break a}F=void 0}R.updateValue("icon",F)}F=g.N(R.aR.getAnimations());for(h=F.next();!h.done;h=F.next())h.value.cancel();R.aR.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){R.updateValue("text","");R.updateValue("icon","")})}; Nq=function(R,F,h,a){a=a===void 0?240:a;g.D.call(this,{G:"button",sz:["ytp-button","ytp-share-button"],j:{title:"Compartir","aria-haspopup":"true","aria-owns":h.element.id,"data-tooltip-opaque":String(g.Py(R.W()))},V:[{G:"div",J:"ytp-share-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-share-title",Dn:"Compartir"}]});this.api=R;this.B=F;this.D=h;this.K=a;this.visible=!1;this.tooltip=this.B.ZQ();R.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(R,"videodatachange",this.gA);this.T(R, "videoplayerreset",this.gA);this.T(R,"appresize",this.gA);this.T(R,"presentingplayerstatechange",this.gA);this.gA();this.addOnDisposeCallback(g.Z4(this.tooltip,this.element))}; e9_=function(R){var F=R.api.W(),h=R.api.getVideoData(),a=g.Py(F)&&g.et(R.api)&&g.V(R.api.getPlayerStateObject(),128);F=F.K||F.disableSharing&&R.api.getPresentingPlayerType()!==2||!h.showShareButton||h.NP||a||g.im(h)||!1;a=R.api.xo().getPlayerSize().width;return!!h.videoId&&a>=R.K&&!F}; ncn=function(R,F){F.name!=="InvalidStateError"&&F.name!=="AbortError"&&(F.name==="NotAllowedError"?(R.B.vR(),cn(R.D,R.element,!1)):g.y7(F))}; dya=function(R,F){var h=a7(),a=R.W();h={G:"div",J:"ytp-share-panel",j:{id:a7(),role:"dialog","aria-labelledby":h},V:[{G:"div",J:"ytp-share-panel-inner-content",V:[{G:"div",J:"ytp-share-panel-title",j:{id:h},Dn:"Compartir"},{G:"a",sz:["ytp-share-panel-link","ytp-no-contextmenu"],j:{href:"{{link}}",target:a.C,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},Dn:"{{linkText}}"},{G:"label",J:"ytp-share-panel-include-playlist",V:[{G:"input",J:"ytp-share-panel-include-playlist-checkbox", j:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{G:"div",J:"ytp-share-panel-loading-spinner",V:[pY()]},{G:"div",J:"ytp-share-panel-service-buttons",Dn:"{{buttons}}"},{G:"div",J:"ytp-share-panel-error",Dn:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{G:"button",sz:["ytp-share-panel-close","ytp-button"],j:{title:"Cerrar"},V:[g.Ys()]}]};g.U4.call(this,R,h,250);var J=this;this.moreButton=null;this.api=R;this.tooltip=F.ZQ();this.K=[];this.S= this.mI("ytp-share-panel-inner-content");this.closeButton=this.mI("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nt);this.addOnDisposeCallback(g.Z4(this.tooltip,this.closeButton));this.L=this.mI("ytp-share-panel-include-playlist-checkbox");this.T(this.L,"click",this.gA);this.B=this.mI("ytp-share-panel-link");this.addOnDisposeCallback(g.Z4(this.tooltip,this.B));this.api.createClientVe(this.B,this,164503);this.T(this.B,"click",function(M){M.preventDefault();J.api.logClick(J.B);var v= J.api.getVideoUrl(!0,!0,!1,!1);v=uZI(J,v);g.YQ(v,J.api,M)&&J.api.WG("SHARE_CLICKED")}); this.listen("click",this.hM);this.T(R,"videoplayerreset",this.hide);this.T(R,"fullscreentoggled",this.onFullscreenToggled);this.T(R,"onLoopRangeChange",this.yC);this.hide()}; KsI=function(R,F){PSL(R);for(var h=F.links||F.shareTargets,a=0,J={},M=0;M0&&!Rg&&!n?(O.length===2&&(O=["noreferrer"]),g.YN(p,H,Y,O[0]),p=RqL()):(T=b.join(","),oa()&&p.navigator&&p.navigator.standalone&&Y&&Y!="_self"?(T=g.B4("A"),g.iu(T,H),T.target=Y,Z&&(T.rel="noreferrer"),((k=k.attributionsrc)||k==="")&&T.setAttribute("attributionsrc",k),k=document.createEvent("MouseEvent"), k.initMouseEvent("click",!0,!0,p,1),T.dispatchEvent(k),p=RqL()):Z?(p=g.YN(p,"",Y,T),k=g.J7(H),p&&(p.opener=null,k===""&&(k="javascript:''"),k='',k=BZ(k),(H=p.document)&&H.write&&(H.write(rU(k)),H.close()))):((p=g.YN(p,H,Y,T))&&k.noopener&&(p.opener=null),p&&k.noreferrer&&(p.opener=null)));p&&(p.opener||(p.opener=window),p.focus());r.preventDefault()}}}(J)); J.J5.addOnDisposeCallback(g.Z4(R.tooltip,J.J5.element));I==="Facebook"?R.api.createClientVe(J.J5.element,J.J5,164504):I==="Twitter"&&R.api.createClientVe(J.J5.element,J.J5,164505);R.T(J.J5.element,"click",function(B){return function(){R.api.logClick(B.J5.element)}}(J)); R.api.logVisibility(J.J5.element,!0);R.K.push(J.J5);a++}}var w=F.more||F.moreLink,E=new g.D({G:"a",sz:["ytp-share-panel-service-button","ytp-button"],V:[{G:"span",J:"ytp-share-panel-service-button-more",V:[{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{G:"rect",j:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",j:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],j:{href:w,target:"_blank",title:"M\u00e1s"}});E.listen("click",function(B){var r=w;R.api.logClick(R.moreButton.element);r=uZI(R,r);g.YQ(r,R.api,B)&&R.api.WG("SHARE_CLICKED")}); E.addOnDisposeCallback(g.Z4(R.tooltip,E.element));R.api.createClientVe(E.element,E,164506);R.T(E.element,"click",function(){R.api.logClick(E.element)}); R.api.logVisibility(E.element,!0);R.K.push(E);R.moreButton=E;R.updateValue("buttons",R.K)}; uZI=function(R,F){var h={};g.Py(R.api.W())&&(g.QV(R.api,"addEmbedsConversionTrackingParams",[h]),F=g.sA(F,h));return F}; PSL=function(R){for(var F=g.N(R.K),h=F.next();!h.done;h=F.next())h=h.value,h.detach(),g.Fm(h);R.K=[]}; HP=function(R){return R===void 0||R.startSec===void 0||R.endSec===void 0?!1:!0}; t5a=function(R,F){R.startSec+=F;R.endSec+=F}; Dyf=function(R){L3.call(this,R);this.D=this.B=this.isContentForward=this.Y=!1;this.element.setAttribute("data-overlay-order","8");lSf(this);this.T(this.U,"changeProductsInVideoVisibility",this.Emu);this.T(this.U,"videodatachange",this.onVideoDataChange)}; V5i=function(R){R.S&&R.Oz.element.removeChild(R.S.element);R.S=void 0}; CSn=function(R,F){return F.map(function(h){var a,J;if((h=(a=g.t(h,UyI))==null?void 0:(J=a.thumbnail)==null?void 0:J.thumbnails)&&h.length!==0)return h[0].url}).filter(function(h){return h!==void 0}).map(function(h){h=new g.D({G:"img", J:"ytp-suggested-action-product-thumbnail",j:{alt:"",src:h}});g.z(R,h);return h})}; cri=function(R,F){R.isContentForward=F;g.Gi(R.badge.element,"ytp-suggested-action-badge-content-forward",F)}; LQ=function(R){var F=R.isContentForward&&!R.C6();g.Gi(R.badge.element,"ytp-suggested-action-badge-preview-collapsed",F&&R.B);g.Gi(R.badge.element,"ytp-suggested-action-badge-preview-expanded",F&&R.D)}; TX=function(R,F,h){return new g.KI(R*1E3,F*1E3,{priority:9,namespace:h})}; Ws2=function(R){R.U.NH("shopping_overlay_visible");R.U.NH("shopping_overlay_preview_collapsed");R.U.NH("shopping_overlay_preview_expanded");R.U.NH("shopping_overlay_expanded")}; lSf=function(R){R.T(R.U,g.lz("shopping_overlay_visible"),function(){R.u0(!0)}); R.T(R.U,g.Dq("shopping_overlay_visible"),function(){R.u0(!1)}); R.T(R.U,g.lz("shopping_overlay_expanded"),function(){R.aR=!0;Hu(R)}); R.T(R.U,g.Dq("shopping_overlay_expanded"),function(){R.aR=!1;Hu(R)}); R.T(R.U,g.lz("shopping_overlay_preview_collapsed"),function(){R.B=!0;LQ(R)}); R.T(R.U,g.Dq("shopping_overlay_preview_collapsed"),function(){R.B=!1;LQ(R)}); R.T(R.U,g.lz("shopping_overlay_preview_expanded"),function(){R.D=!0;LQ(R)}); R.T(R.U,g.Dq("shopping_overlay_preview_expanded"),function(){R.D=!1;LQ(R)})}; hXm=function(R){g.D.call(this,{G:"div",J:"ytp-shorts-title-channel",V:[{G:"a",J:"ytp-shorts-title-channel-logo",j:{href:"{{channelLink}}",target:R.W().C,"aria-label":"{{channelLogoLabel}}"}},{G:"div",J:"ytp-shorts-title-expanded-heading",V:[{G:"div",J:"ytp-shorts-title-expanded-title",V:[{G:"a",Dn:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:R.W().C,tabIndex:"0"}}]}]}]});var F=this;this.api=R;this.B=this.mI("ytp-shorts-title-channel-logo");this.channelName=this.mI("ytp-shorts-title-expanded-title"); this.subscribeButton=null;R.createClientVe(this.B,this,36925);this.T(this.B,"click",function(h){F.api.logClick(F.B);g.YN(window,RXL(F));h.preventDefault()}); R.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(h){F.api.logClick(F.channelName);g.YN(window,RXL(F));h.preventDefault()}); F8B(this);this.T(R,"videodatachange",this.gA);this.T(R,"videoplayerreset",this.gA);this.gA()}; F8B=function(R){if(!R.api.W().gW){var F=R.api.getVideoData(),h=new g.aR("Suscribirse",null,"Suscrito/a",null,!0,!1,F.Vc,F.subscribed,"channel_avatar",null,R.api,!0);R.api.createServerVe(h.element,R);var a;R.api.setTrackingParams(h.element,((a=F.subscribeButtonRenderer)==null?void 0:a.trackingParams)||null);R.T(h.element,"click",function(){R.api.logClick(h.element)}); R.subscribeButton=h;g.z(R,R.subscribeButton);R.subscribeButton.Ab(R.element)}}; RXL=function(R){var F=R.api.W(),h=R.api.getVideoData();h=g.kx(F)+h.uY;if(!g.Py(F))return h;F={};g.QV(R.api,"addEmbedsConversionTrackingParams",[F]);return g.sA(h,F)}; yf=function(R){g.U4.call(this,R,{G:"button",sz:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{G:"div",J:"ytp-skip-intro-button-text",Dn:"Omitir introducci\u00f3n"}]},100);var F=this;this.K=!1;this.B=new g.DY(function(){F.hide()},5E3); this.lq=this.YZ=NaN;g.z(this,this.B);this.Y=function(){F.show()}; this.S=function(){F.hide()}; this.L=function(){var h=F.U.getCurrentTime();h>F.YZ/1E3&&h0?{G:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{G:"path",sz:["ytp-circle-arrow","ytp-svg-fill"],j:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {G:"text",sz:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"7.05",y:"15.05"}}]}:{G:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{G:"path",sz:["ytp-circle-arrow","ytp-svg-fill"],j:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {G:"text",sz:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"6.5",y:"15"}}]}]});var h=this;this.U=R;this.B=F;this.D=new g.DY(function(){h.K?(h.K=!1,h.D.start()):h.element.classList.remove("ytp-jump-spin","backwards")},250); this.K=!1;(F=F>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var a=g.JE(F?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.B).toString()});this.update({title:a,"data-title-no-tooltip":a,"aria-keyshortcuts":F?"\u2192":"\u2190"});this.L=this.element.querySelector(".ytp-jump-button-text");this.L.textContent=Math.abs(this.B).toString();this.listen("click",this.onClick,this);bm(R,this.element,this)}; iSf=function(R,F){F?R.element.classList.add("ytp-jump-button-enabled"):R.element.classList.remove("ytp-jump-button-enabled");R.U.logVisibility(R.element,F);R.U.P7()}; O7=function(R,F){fQ.call(this,R,F,"timedMarkerCueRange","Ver momentos clave");this.T(R,g.Dq("timedMarkerCueRange"),this.Na);this.T(R,"updatemarkervisibility",this.updateVideoData)}; wUO=function(R){var F,h=(F=R.U.getVideoData())==null?void 0:F.T$;if(h)for(R=R.L.IR,h=g.N(h),F=h.next();!F.done;F=h.next())if(F=R[F.value]){var a=void 0,J=void 0,M=void 0;if(((a=F.onTap)==null?void 0:(J=a.innertubeCommand)==null?void 0:(M=J.changeEngagementPanelVisibilityAction)==null?void 0:M.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return F}}; mf=function(R){var F=R.X("web_enable_pip_on_miniplayer");g.D.call(this,{G:"button",sz:["ytp-miniplayer-button","ytp-button"],j:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:["{{icon}}"]});this.U=R;this.visible=!1;this.listen("click",this.onClick);this.T(R,"fullscreentoggled",this.gA);this.updateValue("title",g.St(R,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura", icon:this.U.X("delhi_modern_web_player_icons")?{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:F?{G:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{G:"g",j:{transform:"translate(96, -96) scale(0.8)"},V:[{G:"path",df:!0,j:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:qKm()});bm(R,this.element,this);R.createClientVe(this.element,this,62946);this.gA()}; oR=function(R,F,h,a,J,M){M=M===void 0?!1:M;var v={G:"div",sz:["ytp-input-slider-section"],V:[{G:"input",J:"ytp-input-slider",j:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};J&&v.V.unshift(J);M&&v.sz.push("ytp-vertical-slider");g.D.call(this,v);this.L=R;this.S=F;this.Z=h;this.initialValue=a;this.header=J;this.D=this.mI("ytp-input-slider");this.B=a?a:R;this.init();this.T(this.D,"input",this.K);this.T(this.D,"keydown", this.Y)}; XA=function(R,F){R.B=F;R.updateValue("slidervalue",R.B);R.D.valueAsNumber=R.B;Ek_(R,F)}; Ek_=function(R,F){R.D.style.setProperty("--yt-slider-shape-gradient-percent",(F-R.L)/(R.S-R.L)*100+"%")}; e8=function(R){var F=R.isMuted()?0:R.getVolume();oR.call(this,0,100,1,F,void 0,!0);this.U=R;this.oR=mO(this.KI,10,this);this.C=!1;this.T(R,"onVolumeChange",this.onVolumeChange);this.T(this.element,"wheel",this.aR)}; BnL=function(R,F){g.D.call(this,{G:"div",j:{tabindex:"0",title:"Volumen","data-tooltip-offset-y":"-120"},sz:["ytp-volume-popover"]});var h=this;this.isVisible=!1;this.tooltip=F.ZQ();this.D=new e8(R);g.z(this,this.D);this.D.Ab(this.element);this.B=new g.DY(function(){nQ(h,!1)},300); this.listen("mouseenter",function(){h.B.stop()}); this.listen("mouseleave",function(){h.B.start()}); this.listen("focus",function(){h.B.stop()}); this.T(this.D.D,"focus",function(){h.B.stop()}); this.listen("focusout",function(){h.B.start();h.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.Z4(F.ZQ(),this.element));g.z(this,this.B)}; nQ=function(R,F){R.element.classList.toggle("ytp-volume-popover-hovering",F);R.isVisible=F}; us=function(R,F,h){h=h===void 0?!1:h;var a=R.W().Oz?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};a=R.X("delhi_modern_web_player")?{G:"div",J:"ytp-mute-button",V:[{G:"button",j:a,sz:["ytp-volume-icon","ytp-button"],Dn:"{{icon}}"}]}:{G:"button",sz:["ytp-mute-button","ytp-button"],j:a,V:[{G:"div",J:"ytp-volume-icon",Dn:"{{icon}}"}]}; g.D.call(this,a);this.U=R;this.Sl=h;this.D=null;this.Y=this.KI=this.C=this.Z=NaN;this.fI=this.oR=null;this.S=[];this.L=[];this.visible=!1;this.K=this.B=this.aR=null;R.X("delhi_modern_web_player")&&this.update({"data-priority":4});h=this.U.W();this.updateValue("icon",TA());this.tooltip=F.ZQ();this.updateValue("dataTooltipOffsetY",0);this.K=g.gs("ytp-volume-icon",this.element);a=this.U.X("delhi_modern_web_player_icons")?{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",sz:["ytp-svg-fill", "ytp-svg-volume-animation-speaker"],j:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{G:"path",J:"ytp-svg-volume-animation-small-ripple",j:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{G:"path",J:"ytp-svg-volume-animation-big-ripple",j:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"defs",V:[{G:"clipPath",j:{id:"ytp-svg-volume-animation-mask"},V:[{G:"path",j:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",j:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",J:"ytp-svg-volume-animation-mover",j:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",j:{id:"ytp-svg-volume-animation-slash-mask"},V:[{G:"path",J:"ytp-svg-volume-animation-mover", j:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",df:!0,sz:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],j:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",df:!0,sz:["ytp-svg-fill","ytp-svg-volume-animation-hider"],j:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.D=new g.J0(a);g.z(this,this.D);this.oR=this.D.mI("ytp-svg-volume-animation-speaker");this.fI=this.oR.getAttribute("d");this.S=g.MS("ytp-svg-volume-animation-mover",this.D.element);this.U.X("delhi_modern_web_player_icons");this.L=g.MS("ytp-svg-volume-animation-hider",this.D.element);this.U.X("delhi_modern_web_player_icons");this.Oz=new Wu;g.z(this,this.Oz);this.Uz=new Wu;g.z(this,this.Uz);this.T(R,"appresize",this.gS);this.T(R,"onVolumeChange",this.onVolumeChange);R.X("delhi_modern_web_player")? this.listen("click",this.fQo):this.listen("click",this.oo);h.Oz?(R.X("delhi_modern_web_player")&&(this.B=new BnL(R,F),this.B.Ab(this.element),g.z(this,this.B),this.T(this.K,"mouseover",this.PD),this.T(this.K,"focus",this.PD),this.T(this.K,"mouseout",this.ea),this.T(this.K,"blur",this.ea)),h=R.X("delhi_modern_web_player")?this.K:this.element,this.addOnDisposeCallback(g.Z4(F.ZQ(),h))):rvi(this);this.message=null;R.createClientVe(this.element,this,28662);this.gS(R.xo().getPlayerSize());this.setVolume(R.getVolume(), R.isMuted())}; Ypm=function(R,F){if(R.U.W().Oz){var h=g.St(R.U,"Silenciar","m"),a=g.St(R.U,"Activar sonido","m");R.updateValue("title",F?a:h);R.update({"data-title-no-tooltip":F?"Activar sonido":"Silenciar"});R.tooltip.P7()}}; kZn=function(R,F){R.Z=F;var h=R.fI;R.U.X("delhi_modern_web_player_icons")?R.D.mI("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(F+") translate(-22,-12)")):F&&(h+=frg(swa,pUn,F));R.oR.setAttribute("d",h)}; Qwa=function(R,F){var h;F===1?h=R.U.X("delhi_modern_web_player_icons")?{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:TA():h=R.D;R.KI=F;if(R.U.X("delhi_modern_web_player_icons"))R.D.mI("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-F+") translate(-18,-12)")),R.D.mI("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(R.Z-F+") translate(-22, -12)"));else{for(var a=20*F,J=0;J=3&&R.U.getPresentingPlayerType()!==2}; L8L=function(R){var F=XM(R.U.LO());return F?R.B?F.NC():F.xJ():!1}; xtO=function(R){var F={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},h=R.playlist!=null&&R.playlist.NC();h=g.et(R.U)&&(!R.B||h);var a=R.B&&g.zU(R.U),J=L8L(R),M=R.B&&R.U.getPresentingPlayerType()===5,v=g.St(R.U,"Siguiente","SHIFT+n"),I=g.St(R.U,"Anterior","SHIFT+p");if(M)F.title="Iniciar video";else if(R.K)F.title="Volver a reproducir";else if(h){var w=null;R.playlist&&(w=g.A5(R.playlist,R.B?Y22(R.playlist):s0L(R.playlist)));if(w){if(w.videoId){var E= R.playlist.listId;F.url=R.U.W().getVideoUrl(w.videoId,E?E.toString():void 0)}F.text=w.title;F.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.Q6(w.lengthSeconds):null;F.preview=w.f2("mqdefault.jpg")}R.B?(F.title=v,F["data-title-no-tooltip"]="Siguiente",F["aria-keyshortcuts"]="SHIFT+n"):(F.title=I,F["data-title-no-tooltip"]="Anterior",F["aria-keyshortcuts"]="SHIFT+p")}else if(a){if(I=(w=R.videoData)==null?void 0:g.Br(w))F.url=I.qI(),F.text=I.title,F.duration=I.lengthText?I.lengthText:I.lengthSeconds? g.Q6(I.lengthSeconds):null,F.preview=I.f2("mqdefault.jpg");F.title=v;F["data-title-no-tooltip"]="Siguiente";F["aria-keyshortcuts"]="SHIFT+n"}F.disabled=!a&&!h&&!J&&!M;R.update(F);R.Y=!!F.url;a||h||R.K||J||M?R.D||(R.D=g.Z4(R.tooltip,R.element),R.S=R.listen("click",R.onClick,R)):R.D&&(R.D(),R.D=null,R.Ap(R.S),R.S=null);R.tooltip.P7();g.Gi(R.element,"ytp-playlist-ui",R.B&&(h||R.U.X("web_hide_next_button")))}; Avn=function(R,F){return R?F?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:ks():F?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:Zna()}; yv2=function(R,F){g.D.call(this,{G:"div",J:"ytp-fine-scrubbing",V:[{G:"div",J:"ytp-fine-scrubbing-draggable",V:[{G:"div",J:"ytp-fine-scrubbing-thumbnails",j:{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}}"}}]},{G:"div",j:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{G:"div", J:"ytp-fine-scrubbing-seek-time",j:{"aria-hidden":"true"},Dn:"{{seekTime}}"},{G:"div",J:"ytp-fine-scrubbing-play",V:[R.X("delhi_modern_web_player_icons")?xs():A0()],j:{title:"Reproducir desde este momento",role:"button"}},{G:"div",J:"ytp-fine-scrubbing-dismiss",V:[g.Ys()],j:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var h=this;this.api=R;this.S=this.mI("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.mI("ytp-fine-scrubbing-dismiss");this.KI=this.mI("ytp-fine-scrubbing-draggable"); this.playButton=this.mI("ytp-fine-scrubbing-play");this.thumbnails=[];this.D=[];this.Sl=this.B=0;this.Oz=void 0;this.oR=NaN;this.NQ=this.C=this.K=this.Z=0;this.L=[];this.interval=this.frameCount=0;this.Y=160;this.scale=1;this.PG=0;this.isEnabled=this.fI=!1;Tna(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Z4(F,this.dismissButton));this.addOnDisposeCallback(g.Z4(F,this.playButton));this.Uz=new g.uf(this.KI,!0);this.Uz.subscribe("dragstart",this.Rb,this);this.Uz.subscribe("dragmove",this.vp, this);this.Uz.subscribe("dragend",this.lw,this);this.T(R,"SEEK_COMPLETE",this.g8);R.X("web_fix_fine_scrubbing_false_play")&&this.T(R,"rootnodemousedown",function(a){h.aR=a}); this.S.addEventListener("keydown",function(){}); g.z(this,this.Uz);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Tna=function(R,F){var h=g.Q6(F),a=g.JE("Saltar a: $PROGRESS",{PROGRESS:g.Q6(F,!0)});R.update({ariamin:0,ariamax:Math.floor(R.api.getDuration()),arianow:Math.floor(F),arianowtext:a,seekTime:h})}; qpg=function(R){R.oR=NaN;R.C=0;R.Z=R.K}; ZSI=function(R){var F=R.api.B_();if(F){var h=90*R.scale,a=CZ(F,160*R.scale);if(F=F.levels[a]){R.Y=F.width;if(!R.L.length){a=[];for(var J=cc(F,F.kP()),M=F.columns*F.rows,v=F.frameCount,I=0;I<=J;I++)for(var w=vR.L.length;)a= void 0,(a=R.thumbnails.pop())==null||a.dispose();for(;R.thumbnails.lengthh.length;)a=void 0,(a=R.D.pop())==null||a.dispose(); for(;R.D.length-h?-F/h*R.interval*.5:-(F+h/2)/h*R.interval}; bS2=function(R){return-((R.S.offsetWidth||(R.frameCount-1)*R.Y*R.scale)-R.B/2)}; fZI=function(){g.D.call(this,{G:"div",J:"ytp-fine-scrubbing-thumbnail"})}; jwn=function(){g.D.call(this,{G:"div",J:"ytp-fine-scrubbing-chapter-title",V:[{G:"div",J:"ytp-fine-scrubbing-chapter-title-content",Dn:"{{chapterTitle}}"}]})}; OSm=function(R){g.D.call(this,{G:"div",J:"ytp-heat-map-chapter",V:[{G:"svg",J:"ytp-heat-map-svg",j:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{G:"defs",V:[{G:"clipPath",j:{id:"{{id}}"},V:[{G:"path",J:"ytp-heat-map-path",j:{d:"",fill:"white"}}]},{G:"linearGradient",j:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{G:"stop",j:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{G:"stop",j:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{G:"rect",J:"ytp-heat-map-graph",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",J:"ytp-heat-map-hover",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",J:"ytp-heat-map-play",j:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{G:"path",J:"ytp-modern-heat-map",j:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=R;this.Z=this.mI("ytp-heat-map-svg");this.S=this.mI("ytp-heat-map-path");this.L=this.mI("ytp-heat-map-graph");this.Y=this.mI("ytp-heat-map-play");this.B=this.mI("ytp-heat-map-hover");this.K=this.mI("ytp-modern-heat-map");this.Fd=!1;this.D=60;R=""+g.g7(this);this.update({id:R});R="url(#"+R+")";this.L.setAttribute("clip-path",R);this.Y.setAttribute("clip-path",R);this.B.setAttribute("clip-path", R)}; mt7=function(R,F){F>0&&(R.D=F,R.Z.style.height=R.D+"px")}; tk=function(){g.D.call(this,{G:"div",J:"ytp-chapter-hover-container",V:[{G:"div",J:"ytp-progress-bar-padding"},{G:"div",J:"ytp-progress-list",V:[{G:"div",sz:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",J:"ytp-progress-linear-live-buffer"},{G:"div",J:"ytp-load-progress"},{G:"div",J:"ytp-hover-progress"},{G:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.mI("ytp-progress-list");this.S=this.mI("ytp-progress-linear-live-buffer"); this.L=this.mI("ytp-ad-progress-list");this.Y=this.mI("ytp-load-progress");this.Z=this.mI("ytp-play-progress");this.K=this.mI("ytp-hover-progress");this.B=this.mI("ytp-chapter-hover-container")}; ls=function(R,F){g.zL(R.B,"width",F)}; okL=function(R,F){g.zL(R.B,"margin-right",F+"px")}; XU2=function(){this.D=this.position=this.K=this.B=this.L=this.width=NaN}; eXi=function(){g.D.call(this,{G:"div",J:"ytp-timed-marker"});this.B=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Vf=function(R,F){g.gY.call(this,{G:"div",J:"ytp-progress-bar-container",j:{"aria-disabled":"true"},V:[{G:"div",sz:["ytp-heat-map-container"],V:[{G:"div",J:"ytp-heat-map-edu"}]},{G:"div",sz:["ytp-progress-bar"],j:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{G:"div",J:"ytp-chapters-container"},{G:"div",J:"ytp-timed-markers-container"}, {G:"div",J:"ytp-clip-start-exclude"},{G:"div",J:"ytp-clip-end-exclude"},{G:"div",J:"ytp-scrubber-container",V:[{G:"div",sz:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{G:"div",J:"ytp-scrubber-pull-indicator"},{G:"img",sz:["ytp-decorated-scrubber-button"]}]}]}]},{G:"div",sz:["ytp-fine-scrubbing-container"],V:[{G:"div",J:"ytp-fine-scrubbing-edu"}]},{G:"div",J:"ytp-bound-time-left",Dn:"{{boundTimeLeft}}"},{G:"div",J:"ytp-bound-time-right",Dn:"{{boundTimeRight}}"},{G:"div",J:"ytp-clip-start", j:{title:"{{clipstarttitle}}"},Dn:"{{clipstarticon}}"},{G:"div",J:"ytp-clip-end",j:{title:"{{clipendtitle}}"},Dn:"{{clipendicon}}"}]});this.api=R;this.Nx=!1;this.PJ=this.qg=this.T$=this.S=this.EJ=0;this.Ig=null;this.lq=!1;this.PG={};this.FW={};this.clipEnd=Infinity;this.gW=this.mI("ytp-clip-end");this.Ym=new g.uf(this.gW,!0);this.gf=this.mI("ytp-clip-end-exclude");this.i9=this.mI("ytp-clip-start-exclude");this.clipStart=0;this.It=this.mI("ytp-clip-start");this.AT=new g.uf(this.It,!0);this.oR=this.EP= 0;this.progressBar=this.mI("ytp-progress-bar");this.Sw={};this.IR={};this.HG=this.mI("ytp-chapters-container");this.n2=this.mI("ytp-timed-markers-container");this.B=[];this.Y=[];this.w$={};this.XJ=null;this.fI=-1;this.iY=this.Oz=0;this.S9=this.Z=null;this.g$=this.mI("ytp-scrubber-button");this.KI=this.mI("ytp-decorated-scrubber-button");this.UJ=this.mI("ytp-scrubber-container");this.uY=new g.zq;this.Ma=0;this.lT=new XU2;this.K=new qv(0,0);this.sP=null;this.C=this.DG=!1;this.YZ=null;this.aR=this.mI("ytp-heat-map-container"); this.d$=this.mI("ytp-heat-map-edu");this.L=[];this.heatMarkersDecorations=[];this.nI=this.mI("ytp-fine-scrubbing-container");this.xO=this.mI("ytp-fine-scrubbing-edu");this.D=void 0;this.Sl=this.Xk=this.NQ=!1;this.tooltip=F.ZQ();this.addOnDisposeCallback(g.Z4(this.tooltip,this.gW));g.z(this,this.Ym);this.Ym.subscribe("hoverstart",this.qk,this);this.Ym.subscribe("hoverend",this.Mk,this);this.T(this.gW,"click",this.qR);this.addOnDisposeCallback(g.Z4(this.tooltip,this.It));g.z(this,this.AT);this.AT.subscribe("hoverstart", this.qk,this);this.AT.subscribe("hoverend",this.Mk,this);this.T(this.It,"click",this.qR);nkL(this);this.T(R,"resize",this.ew);this.T(R,"presentingplayerstatechange",this.Ra);this.T(R,"videodatachange",this.O0);this.T(R,"videoplayerreset",this.v3);this.T(R,"cuerangesadded",this.WA$);this.T(R,"cuerangesremoved",this.pJ$);this.T(R,"onLoopRangeChange",this.YC);this.T(R,"innertubeCommand",this.onClickCommand);this.T(R,"onRetroModeChanged",this.Xet);this.T(R,g.lz("timedMarkerCueRange"),this.dHt);this.T(R, "updatemarkervisibility",this.P6);this.T(R,"serverstitchedvideochange",this.HKb);this.updateVideoData(R.getVideoData(),!0);this.YC(R.getLoopRange());Dx(this)&&!this.D&&(this.D=new yv2(this.api,this.tooltip),R=g.c4(this.element).x||0,this.D.ew(R,this.S),this.D.Ab(this.nI),g.z(this,this.D),this.T(this.D.dismissButton,"click",this.Lb),this.T(this.D.playButton,"click",this.Ej),this.T(this.D.element,"dblclick",this.Ej));this.api.createClientVe(this.aR,this,139609,!0);this.api.createClientVe(this.d$,this, 140127,!0);this.api.createClientVe(this.xO,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; nkL=function(R){if(R.B.length===0){var F=new tk;R.B.push(F);g.z(R,F);F.Ab(R.HG,0)}for(;R.B.length>1;)R.B.pop().dispose();ls(R.B[0],"100%");R.B[0].startTime=0;R.B[0].title=""}; uKf=function(R){var F=F===void 0?NaN:F;var h=new OSm(R.api);R.L.push(h);g.z(R,h);h.Ab(R.aR);F>=0&&(h.element.style.width=F+"px")}; dtT=function(R){for(;R.Y.length;)R.Y.pop().dispose()}; zXi=function(R){var F,h,a,J,M;return(M=g.t((J=g.t((F=R.getWatchNextResponse())==null?void 0:(h=F.playerOverlays)==null?void 0:(a=h.playerOverlayRenderer)==null?void 0:a.decoratedPlayerBarRenderer,ug))==null?void 0:J.playerBar,Pkg))==null?void 0:M.chapters}; K8m=function(R){for(var F=R.B,h=[],a=0;a=v&&H<=B&&M.push(Y)}w>0&&(R.aR.style.height=w+"px");v=R.L[a];B=M;Y=J;k=w;H=a===0;H=H===void 0?!1:H;mt7(v,k);r=B;p=v.D;H=H===void 0?!1:H;var T=1E3/r.length,Z=[];Z.push({x:0,y:100});for(var b=0;b0&&(h=M[M.length-1])}g.U7(R);I=[];F=g.N(F.heatMarkersDecorations||[]);for(J=F.next();!J.done;J=F.next())if(J=g.t(J.value,cvi))w=J.label,a=h=E=void 0,I.push({visibleTimeRangeStartMillis:(E=J.visibleTimeRangeStartMillis)!=null?E:-1,visibleTimeRangeEndMillis:(h=J.visibleTimeRangeEndMillis)!=null?h:-1,decorationTimeMillis:(a=J.decorationTimeMillis)!=null?a:NaN,label:w?g.iQ(w):""});R.heatMarkersDecorations=I}}; Dtg=function(R,F){R.Y.push(F);g.z(R,F);F.Ab(R.n2,R.n2.children.length)}; VH7=function(R,F){F=g.N(F);for(var h=F.next();!h.done;h=F.next()){h=h.value;var a=CQ(R,h.timeRangeStartMillis/(R.K.B*1E3),cP(R)),J=R.api.X("delhi_modern_web_player")?.667:.6;g.zL(h.element,"transform","translateX("+a+"px) scaleX("+J+")")}}; tHi=function(R,F){var h=0,a=!1;F=g.N(F);for(var J=F.next();!J.done;J=F.next()){J=J.value;if(g.t(J,Rzm)){J=g.t(J,Rzm);var M={startTime:NaN,title:null,onActiveCommand:void 0},v=J.title;M.title=v?g.iQ(v):"";v=J.timeRangeStartMillis;v!=null&&(M.startTime=v);M.onActiveCommand=J.onActiveCommand;J=M;h===0&&J.startTime!==0&&(R.B[h].startTime=0,R.B[h].title="",R.B[h].onActiveCommand=J.onActiveCommand,h++,a=!0);R.B.length<=h&&(M=new tk,R.B.push(M),g.z(R,M),M.Ab(R.HG,R.HG.children.length));R.B[h].startTime= J.startTime;R.B[h].title=J.title?J.title:"";R.B[h].onActiveCommand=J.onActiveCommand;R.B[h].index=a?h-1:h}h++}for(;h=0;a--)if(R.B[a].width>0){okL(R.B[a],0);var J=Math.floor(R.B[a].width);R.B[a].width=J;ls(R.B[a],J+"px");break}R.B[h].width=0;ls(R.B[h],"0")}else h===R.B.length-1?(a=Math.floor(R.B[h].width+F),R.B[h].width=a,ls(R.B[h],a+"px")):(F=R.B[h].width+F,a=Math.round(F),F-=a,R.B[h].width=a,ls(R.B[h],a+"px"));h=0;if(R.L.length===R.B.length)for(F=0;F< R.L.length;F++)a=R.B[F].width,R.L[F].element.style.width=a+"px",R.L[F].element.style.left=h+"px",h+=a+RC(R);R.api.X("delhi_modern_web_player")&&(R.B.length===1?R.B[0].D.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(R.B[0].D.classList.remove("ytp-progress-bar-end"),R.B[0].D.classList.add("ytp-progress-bar-start"),R.B[R.B.length-1].D.classList.add("ytp-progress-bar-end")))}; FN7=function(R,F){var h=0,a=!1,J=R.B.length,M=R.K.B*1E3;M===0&&(M=R.api.getProgressState().seekableEnd*1E3);if(M>0&&R.S>0){for(var v=R.S-RC(R)*R.Oz,I=R.iY===0?3:v*R.iY,w=g.N(R.B),E=w.next();!E.done;E=w.next())E.value.width=0;for(;h1);E=(M===0?0:w/M*v)+R.B[h].width;if(E>I)R.B[h].width=E;else{R.B[h].width=0;var B=R,r=h,Y=B.B[r-1];Y!==void 0&&Y.width>0? Y.width+=E:rR.iY&&(R.iY=w/M),a=!0)}h++}}return a}; WP=function(R){if(R.S){var F=R.api.getProgressState(),h=R.api.getVideoData();if(!(h&&h.enableServerStitchedDai&&h.Rf)||isFinite(F.current)){var a;if(((a=R.api.getVideoData())==null?0:Ic(a))&&F.airingStart&&F.airingEnd)var J=Fs(R,F.airingStart,F.airingEnd);else if(R.api.getPresentingPlayerType()===2){var M,v,I;J=(h=(J=R.api.getVideoData())==null?void 0:(M=J.getPlayerResponse())==null?void 0:(v=M.playerConfig)==null?void 0:(I=v.webPlayerConfig)==null?void 0:I.skippableAdProgressBarDuration)?Fs(R,F.seekableStart, h/1E3):Fs(R,F.seekableStart,F.seekableEnd)}else J=Fs(R,F.seekableStart,F.seekableEnd);M=fP(J,F.loaded,0);F=fP(J,F.current,0);v=R.K.D!==J.D||R.K.B!==J.B;R.K=J;hM(R,F,M);v&&hzn(R);aOT(R)}}}; Fs=function(R,F,h){return Jwa(R)?new qv(Math.max(F,R.sP.startTimeMs/1E3),Math.min(h,R.sP.endTimeMs/1E3)):new qv(F,h)}; v5a=function(R,F){var h,a,J;F=g.t((h=F.getWatchNextResponse())==null?void 0:(a=h.playerOverlays)==null?void 0:(J=a.playerOverlayRenderer)==null?void 0:J.decoratedPlayerBarRenderer,ug);if(F==null?0:F.progressColor)for(h=0;h1){h=aC(R,F.K,!0);for(var a=0,J=0;J0&&(a+=R.B[J].width,a+=RC(R));h=(R.B[h].startTime+(F.K-a)/R.B[h].width*((h===R.B.length-1?R.K.B*1E3:R.B[h+1].startTime)-R.B[h].startTime))/1E3||0}return h}; Mo=function(R,F,h,a,J){F=F<0?0:Math.floor(Math.min(F,R.api.getDuration())*1E3);h=h<0?0:Math.floor(Math.min(h,R.api.getDuration())*1E3);R=R.progressBar.visualElement;a={seekData:{startMediaTimeMs:F,endMediaTimeMs:h,seekSource:a}};(F=g.Q7())&&g.Vz(tI)(void 0,F,R,J,a,void 0)}; G8i=function(R,F,h){if(h>=R.B.length)return!1;var a=R.S-RC(R)*R.Oz;return Math.abs(F-R.B[h].startTime/1E3)/R.K.B*a<4}; hzn=function(R){R.g$.style.removeProperty("height");for(var F=g.N(Object.keys(R.PG)),h=F.next();!h.done;h=F.next())IOm(R,h.value);va(R);hM(R,R.oR,R.EP)}; cP=function(R){var F=R.uY.x;F=g.uu(F,0,R.S);R.lT.update(F,R.S);return R.lT}; Gx=function(R){return(R.C?135:90)-gO(R)}; gO=function(R){var F=48,h=R.api.W();R.api.X("delhi_modern_web_player")?F=R.C&&R.api.getPlayerSize().width>528?96:72:R.C?F=54:g.Py(h)&&!h.D&&(F=40);return F}; hM=function(R,F,h){R.oR=F;R.EP=h;var a=cP(R),J=R.K.B,M=wRO(R.K,R.oR),v=g.JE("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Q6(M,!0),DURATION:g.Q6(J,!0)}),I=E7(R.B,M*1E3);I=R.B[I].title;R.update({ariamin:Math.floor(R.K.D),ariamax:Math.floor(J),arianow:Math.floor(M),arianowtext:I?I+" "+v:v});J=R.clipStart;M=R.clipEnd;R.sP&&R.api.getPresentingPlayerType()!==2&&(J=R.sP.startTimeMs/1E3,M=R.sP.endTimeMs/1E3);J=fP(R.K,J,0);I=fP(R.K,M,1);v=R.api.getVideoData();M=g.uu(F,J,I);h=(v==null?0:g.MX(v))?1:g.uu(h, J,I);F=CQ(R,F,a);g.zL(R.UJ,"transform","translateX("+F+"px)");R.api.X("delhi_modern_web_player")&&R.api.X("delhi_modern_web_player_cutout")&&iX2(R,F);IC(R,a,J,M,"PLAY_PROGRESS");(v==null?0:Ic(v))?(F=R.api.getProgressState().seekableEnd)&&IC(R,a,M,fP(R.K,F),"LIVE_BUFFER"):IC(R,a,J,h,"LOAD_PROGRESS");if(R.api.X("web_player_heat_map_played_bar")){var w;(w=R.L[0])!=null&&w.Y.setAttribute("width",(M*100).toFixed(2)+"%")}}; iX2=function(R,F){R.api.getPresentingPlayerType()!==1?R.HG.style.removeProperty("clip-path"):(F||(F=CQ(R,R.oR,cP(R))),R.HG.style.clipPath='path("'+(R.lq?wNL(R,8,F,R.C?50:36,0,6):wNL(R,4,F,R.C?34:24,2,3))+'")')}; wNL=function(R,F,h,a,J,M){var v=h-a/2;h+=a/2;F+=J;return"M 0 "+J+" L 0 "+(F+" L ")+(v+" "+F+" C ")+(v+M+" "+F+" "+(v+M)+" "+J+" "+v+" "+J+" L 0 ")+(J+" M ")+(h+" "+J+" L ")+(R.S+" "+J+" L ")+(R.S+" "+F+" L ")+(h+" "+F+" C ")+(h-M+" "+F+" "+(h-M)+" "+J+" "+h+" "+J)}; IC=function(R,F,h,a,J){var M=R.B.length,v=F.B-R.Oz*RC(R),I=h*v;h=aC(R,I);var w=a*v;v=aC(R,w);J==="HOVER_PROGRESS"&&(v=aC(R,F.B*a,!0),w=F.B*a-E5B(R,F.B*a)*RC(R));a=Math.max(I-BlT(R,h),0);for(I=h;I=R.B.length)return R.S;for(var h=0,a=0;a0||R.gf.clientWidth>0?(M=F.clientWidth/h,R=-1*R.i9.clientWidth/h):(M/=h,R=-1*R.B[J].element.offsetLeft/h),g.zL(F,"background-size",M+"px"),g.zL(F,"background-position-x",R+"px"))}; iC=function(R,F,h,a,J){J||R.api.W().D?F.style.width=h+"px":g.zL(F,"transform","scalex("+(a?h/a:0)+")")}; aC=function(R,F,h){var a=0;(h===void 0?0:h)&&(F-=E5B(R,F)*RC(R));h=g.N(R.B);for(var J=h.next();!J.done;J=h.next()){J=J.value;if(F>J.width)F-=J.width;else break;a++}return a===R.B.length?a-1:a}; CQ=function(R,F,h){var a=F*R.K.B*1E3;for(var J=-1,M=g.N(R.B),v=M.next();!v.done;v=M.next())v=v.value,a>v.startTime&&v.width>0&&J++;a=J<0?0:J;J=h.B-RC(R)*R.Oz;return F*J+RC(R)*a+h.L}; E5B=function(R,F){for(var h=R.B.length,a=0,J=g.N(R.B),M=J.next();!M.done;M=J.next())if(M=M.value,M.width!==0)if(F>M.width)F-=M.width,F-=RC(R),a++;else break;return a===h?h-1:a}; g.s4_=function(R,F,h,a){var J=R.S!==h,M=R.C!==a;R.EJ=F;R.S=h;R.C=a;Dx(R)&&(F=R.D)!=null&&(F.scale=a?1.5:1);hzn(R);R.B.length===1&&(R.B[0].width=h||0);J&&g.U7(R);R.D&&M&&Dx(R)&&(R.D.isEnabled&&(h=R.C?135:90,a=h-gO(R),R.nI.style.height=h+"px",g.zL(R.aR,"transform","translateY("+-a+"px)"),g.zL(R.progressBar,"transform","translateY("+-a+"px)")),ZSI(R.D))}; va=function(R){var F=!!R.sP&&R.api.getPresentingPlayerType()!==2,h=R.clipStart,a=R.clipEnd,J=!0,M=!0;F&&R.sP?(h=R.sP.startTimeMs/1E3,a=R.sP.endTimeMs/1E3):(J=h>R.K.D,M=R.K.B>0&&aR.oR);g.Gi(R.g$,"ytp-scrubber-button-hover",h===a&&R.B.length>1);if(R.api.X("web_player_heat_map_played_bar")){var M;(M=R.L[0])!=null&&M.B.setAttribute("width",(F.D*100).toFixed(2)+"%")}}}; IOm=function(R,F){var h=R.PG[F];F=R.FW[F];var a=cP(R),J=fP(R.K,h.start/1E3,0),M=Nri(h,R.C)/a.width;var v=fP(R.K,h.end/1E3,1);M!==Number.POSITIVE_INFINITY&&(J=g.uu(J,0,v-M));v=Math.min(v,J+M);h.color&&(F.style.background=h.color);h=J;F.style.left=Math.max(h*a.B+a.L,0)+"px";iC(R,F,g.uu((v-h)*a.B+a.L,0,a.width),a.width,!0)}; pN_=function(R,F){var h=F.getId();R.PG[h]===F&&(g.QH(R.FW[h]),delete R.PG[h],delete R.FW[h])}; Dx=function(R){var F=g.ig(R.api.W())&&(R.api.X("web_shorts_pip")||R.api.X("web_watch_pip")),h;return!((h=R.api.getVideoData())==null?0:h.isLivePlayback)&&!R.api.isMinimized()&&!R.api.isInline()&&(!R.api.jC()||!F)}; wO=function(R){R.D&&(R.D.disable(),R.T$=0,R.aR.style.removeProperty("transform"),R.progressBar.style.removeProperty("transform"),R.nI.style.removeProperty("height"),R.element.parentElement&&R.element.parentElement.style.removeProperty("height"))}; k8a=function(R,F){var h=F/Gx(R)*gO(R);g.zL(R.progressBar,"transform","translateY("+-F+"px)");g.zL(R.aR,"transform","translateY("+-F+"px)");g.zL(R.nI,"transform","translateY("+h+"px)");R.nI.style.height=F+h+"px";R.element.parentElement&&(R.element.parentElement.style.height=gO(R)-h+"px")}; Q4L=function(R,F){F?R.Z||(R.element.removeAttribute("aria-disabled"),R.Z=new g.uf(R.progressBar,!0),R.api.X("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&R.Z.subscribe("hoverstart",R.iVo,R),R.Z.subscribe("hovermove",R.mal,R),R.Z.subscribe("hoverend",R.KzR,R),R.Z.subscribe("dragstart",R.pel,R),R.Z.subscribe("dragmove",R.f1I,R),R.Z.subscribe("dragend",R.LzQ,R),R.api&&R.api.X("delhi_modern_web_player")&&R.api.X("delhi_modern_web_player_cutout")&&(R.S9=new g.uf(R.progressBar, !0),R.S9.subscribe("hoverstart",function(){R.lq=!0;iX2(R)},R),R.S9.subscribe("hoverend",function(){R.lq=!1; iX2(R)},R)),R.YZ=R.listen("keydown",R.Yt)):R.Z&&(R.element.setAttribute("aria-disabled","true"),R.Ap(R.YZ),R.Z.cancel(),R.Z.dispose(),R.Z=null)}; RC=function(R){return R.api.X("delhi_modern_web_player")?4:R.C?3:2}; Jwa=function(R){var F;return!((F=R.sP)==null||!F.postId)&&R.api.getPresentingPlayerType()!==2}; Eo=function(R,F){g.D.call(this,{G:"button",sz:["ytp-remote-button","ytp-button"],j:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},Dn:"{{icon}}"});this.U=R;this.mC=F;this.B=null;this.T(R,"onMdxReceiversChange",this.gA);this.T(R,"presentingplayerstatechange",this.gA);this.T(R,"appresize",this.gA);R.createClientVe(this.element,this,139118);this.gA();this.listen("click",this.D,this);bm(R,this.element,this)}; Ba=function(R,F){g.D.call(this,{G:"button",sz:["ytp-button","ytp-settings-button"],j:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":a7(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},V:[R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.Hx()]});this.U=R;this.mC=F;this.D=!0;this.listen("click",this.K);this.T(R,"onPlaybackQualityChange",this.updateBadge);this.T(R,"videodatachange",this.updateBadge);this.T(R,"webglsettingschanged",this.updateBadge);this.T(R,"appresize",this.B);bm(R,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.B(R.xo().getPlayerSize())}; $ff=function(R,F){R.D=!!F;R.B(R.U.xo().getPlayerSize())}; rO=function(R,F){El.call(this,"Anotaciones",g.Qi.D7);this.U=R;this.mC=F;this.B=!1;R.X("web_settings_menu_icons")&&(F=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(F));this.T(R,"videodatachange",this.gA);this.T(R,"onApiChange",this.gA);this.subscribe("select",this.onSelect,this);this.gA()}; Yl=function(R,F){g.Xq.call(this,"Pista de audio",g.Qi.AUDIO,R,F);this.U=R;this.tracks={};g.J$(this.element,"ytp-audio-menu-item");this.countLabel=new g.D({G:"div",V:[{G:"span",Dn:"Pista de audio"},{G:"span",J:"ytp-menuitem-label-count",Dn:"{{content}}"}]});R.X("web_settings_menu_icons")&&(F=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:ys7(),this.setIcon(F));g.z(this,this.countLabel);g.RJ(this,this.countLabel);this.T(R,"videodatachange",this.gA);this.T(R,"onPlaybackAudioChange",this.gA);this.gA()}; so=function(R,F){El.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Qi.fL);this.U=R;this.mC=F;this.B=!1;this.K=[];this.T(R,"presentingplayerstatechange",this.D);this.subscribe("select",this.onSelect,this);R.createClientVe(this.element,this,113682);this.D()}; AwB=function(R,F){g.Fa.call(this,g.hz({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.U=R;this.mC=F;this.T(this.element,"click",this.onClick);this.mC.SA(this)}; xf2=function(R,F){var h;g.ig(R.W())&&(h={G:"div",J:"ytp-panel-footer-content",V:[{G:"span",Dn:"Ajusta la calidad de descarga en la "},{G:"a",J:"ytp-panel-footer-content-link",Dn:"Configuraci\u00f3n",j:{href:"/account_downloads"}}]});g.Xq.call(this,"Calidad",g.Qi.o$,R,F,void 0,void 0,h);this.U=R;this.KI={};this.C={};this.L={};this.Uz=new Set;this.B=this.S=!1;this.Y="unknown";this.oR="";this.aR=new g.un;g.z(this,this.aR);this.S=this.U.X("web_player_use_new_api_for_quality_pullback");this.B=this.U.X("web_player_enable_premium_hbr_playback_cap"); R.X("web_settings_menu_icons")&&(F=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(F));g.J$(this.D.element,"ytp-quality-menu");this.T(R,"videodatachange",this.cW);this.T(R,"videoplayerreset",this.cW);this.T(R,"onPlaybackQualityChange",this.wS);this.cW();R.createClientVe(this.element,this,137721)}; HXL=function(R,F,h){var a=R.KI[F],J=g.L7[F];return Nli(R,a?a.qualityLabel:J?J+"p":"Autom\u00e1tica",F,h)}; LNg=function(R,F,h,a,J){var M=(F=R.B?R.L[F]:R.C[F])&&F.quality,v=F&&F.qualityLabel;v=v?v:"Autom\u00e1tica";a&&(v="("+v);R=Nli(R,v,M||"",J);a&&R.V.push(")");(a=(a=F&&F.paygatedQualityDetails)&&a.paygatedIndicatorText)&&h&&R.V.push({G:"div",J:"ytp-premium-label",Dn:a});return R}; Nli=function(R,F,h,a){F={G:"span",sz:a,V:[F]};var J;a="ytp-swatch-color";if(R.S||R.B)a="ytp-swatch-color-white";h==="highres"?J="8K":h==="hd2880"?J="5K":h==="hd2160"?J="4K":h.indexOf("hd")===0&&h!=="hd720"&&(J="HD");J&&(F.V.push(" "),F.V.push({G:"sup",J:a,Dn:J}));return F}; pc=function(R){oR.call(this,R.getAvailablePlaybackRates()[0],R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1],.05,R.getPlaybackRate(),{G:"div",J:"ytp-speedslider-indicator-container",V:[{G:"div",J:"ytp-speedslider-badge"},{G:"p",J:"ytp-speedslider-text"}]});this.U=R;this.oR=mO(this.KI,50,this);g.J$(this.D,"ytp-speedslider");this.C=this.mI("ytp-speedslider-text");this.aR=this.mI("ytp-speedslider-badge");Tlf(this);this.T(this.D,"change",this.Uz)}; Tlf=function(R){R.C.textContent=R.B.toFixed(2)+"x";var F=R.B>2&&R.U.X("enable_web_premium_varispeed");R.aR.classList.toggle("ytp-speedslider-premium-badge",F);R.aR.setAttribute("aria-label",F?"Premium":"")}; kl=function(R,F,h,a,J,M,v){g.D.call(this,{G:"div",J:"ytp-slider-section",j:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{G:"div",J:"ytp-slider",V:[{G:"div",J:"ytp-slider-handle"}]}]});this.Z=R;this.C=F;this.D=h;this.K=a;this.oR=J;this.fI=M;this.range=this.K-this.D;this.Oz=this.mI("ytp-slider-section");this.L=this.mI("ytp-slider");this.aR=this.mI("ytp-slider-handle");this.Y=new g.uf(this.L, !0);this.B=v?v:h;g.z(this,this.Y);this.Y.subscribe("dragmove",this.JM,this);this.T(this.element,"keydown",this.To);this.T(this.element,"wheel",this.w8);this.init()}; Qc=function(R){kl.call(this,.05,.05,R.getAvailablePlaybackRates()[0],R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1],150,20,R.getPlaybackRate());this.U=R;this.S=g.B4("P");this.Uz=mO(this.KI,50,this);g.J$(this.L,"ytp-speedslider");g.J$(this.S,"ytp-speedslider-text");R=this.S;var F=this.L;F.parentNode&&F.parentNode.insertBefore(R,F.nextSibling);yw2(this);this.T(this.U,"onPlaybackRateChange",this.updateValues)}; yw2=function(R){R.S.textContent=qdg(R,R.B)+"x"}; qdg=function(R,F){R=Number(g.uu(F,R.D,R.K).toFixed(2));F=Math.floor((R+.001)*100%5+2E-15);var h=R;F!==0&&(h=R-F*.01);return Number(h.toFixed(2))}; fOL=function(R){g.gY.call(this,{G:"div",J:"ytp-speedslider-component"});R.X("web_settings_use_input_slider")?this.B=new pc(R):this.B=new Qc(R);g.z(this,this.B);this.element.appendChild(this.B.element)}; j4i=function(R){var F=new fOL(R);TK.call(this,R,F,"Personalizada");g.z(this,F)}; ZXi=function(R,F){var h=new j4i(R);g.Xq.call(this,"Velocidad de reproducci\u00f3n",g.Qi.DR,R,F,$l(R)?void 0:"Personalizada",$l(R)?void 0:function(){g.jz(F,h)}); var a=this;this.L=!1;g.z(this,h);this.Y=new pc(R);g.z(this,this.Y);if(R.X("web_settings_menu_icons")){var J=R.X("delhi_modern_web_player_icons")?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{G:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(J)}this.U=R;this.L=!1;this.oR=null;$l(R)?(this.B=g.JE("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.S=this.U.getPlaybackRate()):this.S=this.B=null;this.C=this.U.getAvailablePlaybackRates();this.T(R,"presentingplayerstatechange",this.gA);var M;((M=this.U.getVideoData())==null?0:M.We())&&this.T(R,"serverstitchedvideochange",this.gA);this.T(this.Y.D,"change",function(){a.L=!0;a.gA()}); this.gA()}; bX_=function(R,F){var h=AM(F);R.B&&(R.L||F===R.S)?(R.xZ(R.B),R.jA(F.toString())):R.xZ(h)}; OXL=function(R){R.Dk(R.C.map(AM));R.B=null;R.S=null;var F=R.U.getPlaybackRate();$l(R.U)&&SdL(R,F);!R.C.includes(F)||R.L?R.xZ(R.B):R.xZ(AM(F))}; SdL=function(R,F){R.S=F;R.B=g.JE("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:F.toString()});F=R.C.map(AM);F.unshift(R.B);R.Dk(F)}; AM=function(R){return R.toString()}; $l=function(R){return R.X("web_settings_menu_surface_custom_playback")}; mf2=function(R){return R.X("web_settings_menu_surface_custom_playback")&&R.X("web_settings_use_input_slider")}; XNf=function(R,F,h,a){var J=new g.yO(F,void 0,"Anulaci\u00f3n de video");g.Xq.call(this,a.text||"",R,F,h,"Anulaci\u00f3n de video",function(){g.jz(h,J)}); var M=this;g.J$(this.element,"ytp-subtitles-options-menu-item");this.setting=a.option.toString();R=a.options;this.settings=g.Cg(R,this.JW,this);this.S=J;g.z(this,this.S);F=new g.Fa({G:"div",J:"ytp-menuitemtitle",Dn:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.z(this,F);this.S.SA(F,!0);this.L=new g.Fa({G:"div",J:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},V:[{G:"div",J:"ytp-menuitem-label",Dn:"S\u00ed"}]},-1);g.z(this,this.L);this.S.SA(this.L, !0);this.T(this.L.element,"click",function(){o5m(M,!0)}); this.B=new g.Fa({G:"div",J:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},V:[{G:"div",J:"ytp-menuitem-label",Dn:"No"}]},-2);g.z(this,this.B);this.S.SA(this.B,!0);this.T(this.B.element,"click",function(){o5m(M,!1)}); this.Dk(g.p1(R,this.JW))}; o5m=function(R,F){R.publish("settingChange",R.setting+"Override",!F);R.mC.Qz()}; xl=function(R,F){g.yO.call(this,R,void 0,"Opciones");var h=this;this.K9={};for(var a=0;a=0);if(!(F<0||F===R.L)){R.L=F;F=243*R.scale;var h=141*R.scale,a=Z5g(R.D,R.L,F);MHi(R.bg,a,F,h,!0);R.aR.start()}}; BNI=function(R){var F=R.B;R.type===3&&R.KI.stop();R.api.removeEventListener("appresize",R.oR);R.Z||F.setAttribute("title",R.K);R.K="";R.B=null;R.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});R.wrapper.style.width=""}; Y92=function(R){g.D.call(this,{G:"button",sz:["ytp-watch-later-button","ytp-button"],j:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Py(R.W()))},V:[{G:"div",J:"ytp-watch-later-icon",Dn:"{{icon}}"},{G:"div",J:"ytp-watch-later-title",Dn:"Ver m\u00e1s tarde"}]});this.U=R;this.icon=null;this.visible=this.isRequestPending=this.B=!1;iOT(R);R.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(R,"videoplayerreset",this.onReset);this.T(R, "appresize",this.OA);this.T(R,"videodatachange",this.OA);this.T(R,"presentingplayerstatechange",this.OA);this.OA();R=this.U.W();var F=g.jA("yt-player-watch-later-pending");R.L&&F?(RJg(),r8_(this)):this.gA(2);g.Gi(this.element,"ytp-show-watch-later-title",g.Py(R));bm(this.U,this.element,this)}; s5B=function(R){var F=R.U.getPlayerSize(),h=R.U.W(),a=R.U.getVideoData(),J=g.Py(h)&&g.et(R.U)&&g.V(R.U.getPlayerStateObject(),128),M=h.K;return h.Ig&&F.width>=240&&!a.isAd()&&a.Ig&&!J&&!g.im(a)&&!R.U.isEmbedsShortsMode()&&!M}; poa=function(R,F){QYO(g.M5(R.U.W()),"wl_button",function(){RJg({videoId:F});window.location.reload()})}; r8_=function(R){if(!R.isRequestPending){R.isRequestPending=!0;R.gA(3);var F=R.U.getVideoData();F=R.B?F.removeFromWatchLaterCommand:F.addToWatchLaterCommand;var h=R.U.kL(),a=R.B?function(){R.B=!1;R.isRequestPending=!1;R.gA(2);R.U.W().Z&&R.U.WG("WATCH_LATER_VIDEO_REMOVED")}:function(){R.B=!0; R.isRequestPending=!1;R.gA(1);R.U.W().D&&R.U.jP(R.element);R.U.W().Z&&R.U.WG("WATCH_LATER_VIDEO_ADDED")}; ZC(h,F).then(a,function(){R.isRequestPending=!1;R.gA(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");R.U.W().Z&&R.U.WG("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; kh2=function(R,F){if(F!==R.icon){switch(F){case 3:var h=pY();break;case 1:h=Ej();break;case 2:h={G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:h={G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path", df:!0,j:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}R.updateValue("icon",h);R.icon=F}}; Q5L=function(){g.Uw.apply(this,arguments);this.gz=(this.Jt=g.Py(this.api.W()))&&(this.api.W().D||CR()||VS());this.Ln=48;this.fn=69;this.sQ=this.q2=null;this.f9=[];this.fk=this.c_=this.G4=this.Ks=this.l9=null;this.fd=[];this.contextMenu=this.Tq=this.overflowButton=this.A0=this.ET=this.searchButton=this.copyLinkButton=this.shareButton=this.So=this.B7=this.title=this.channelAvatar=this.l6=this.tooltip=null;this.xD=!1;this.BQ=this.Hg=this.tf=this.bI=null;this.Sft=this.fC=this.Ny=!1}; $2f=function(R){var F=R.api.W(),h=g.V(R.api.getPlayerStateObject(),128);return F.L&&h&&!R.api.isFullscreen()}; A8B=function(R){if(R.e5()&&!R.api.isEmbedsShortsMode()&&R.A0){var F=R.api.X("web_player_hide_overflow_button_if_empty_menu");!R.So||F&&!s5B(R.So)||ArI(R.A0,R.So);!R.shareButton||F&&!e9_(R.shareButton)||ArI(R.A0,R.shareButton);!R.copyLinkButton||F&&!mj_(R.copyLinkButton)||ArI(R.A0,R.copyLinkButton)}else{F=R.api.W().getWebPlayerContextConfig();if(R.A0){for(var h=R.A0,a=g.N(h.actionButtons),J=a.next();!J.done;J=a.next())J.value.detach();h.actionButtons=[]}R.searchButton&&!g.$T(R.B7.element,R.searchButton.element)&& R.searchButton.Ab(R.B7.element);!R.So||(F==null?0:F.hideTopWatchNextButton)||g.$T(R.B7.element,R.So.element)||R.So.Ab(R.B7.element);!R.shareButton||(F==null?0:F.hideTopShareButton)||g.$T(R.B7.element,R.shareButton.element)||R.shareButton.Ab(R.B7.element);R.copyLinkButton&&!g.$T(R.B7.element,R.copyLinkButton.element)&&R.copyLinkButton.Ab(R.B7.element)}}; x2m=function(R,F,h){F=h?F.lastElementChild:F.firstElementChild;for(var a=null;F;){if(lX(F,"display")!=="none"&&F.getAttribute("aria-hidden")!=="true"){var J=void 0;F.tabIndex>=0?J=F:J=x2m(R,F,h);J&&(a?h?J.tabIndex>a.tabIndex&&(a=J):J.tabIndexa/1E3+1)return{msg:"in-the-past"};if(M.isLivePlayback&&!isFinite(a))return{msg:"live-infinite"};(a=F.He())&&a.isView()&&(a=a.mediaElement);if(a&&a.vg().length>12&&g.SZ(J))return{msg:"played-ranges"};if(!J.K)return null;if(!v)return{msg:"no-pvd-formats"};if(!J.K.B||!v.B)return{msg:"non-dash"};a=v.videoInfos[0];var I=J.K.videoInfos[0];R.oR&&pt(M)&&(a=F.tX(), I=h.tX());if(!a||!I)return{msg:"no-video-info"};if(R.S&&(OS(a)||OS(I)))return{msg:"av1"};F=R.L&&M.XO()&&M8();if(I.containerType!==a.containerType)if(F)M.dA("sgap",{ierr:"container"});else return{msg:"container"};if(R.N&&!F&&(I.Qt!==a.Qt||I.Qt===""||a.Qt===""))return{msg:"codec"};if(R.Y&&I.video&&a.video&&Math.abs(I.video.width/I.video.height-a.video.width/a.video.height)>.01)return{msg:"ratio"};if(g.SZ(M)&&g.SZ(J))return{msg:"content-protection"};v=v.B[0];J=J.K.B[0];h=v.audio;var w=J.audio;if(h.sampleRate!== w.sampleRate&&!g.kK)if(F)M.dA("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:v.itag,cr:h.sampleRate,ni:J.itag,nr:w.sampleRate};return(h.numChannels||2)!==(w.numChannels||2)?{msg:"channel-count"}:R.Z&&M.XO()&&a.video.fps!==I.video.fps?{msg:"fps"}:null}; TNg=function(R,F,h){var a=R.getVideoData(),J=F.getVideoData();if(!a.W().supportsGaplessShorts())return{nq:"env"};if(h.C?a.nK&&!a.isAd()||J.nK&&!J.isAd():h.D?a.nK&&!a.isAd()||J.nK:h.K?J.nK&&!J.isAd()||a.nK:a.nK||J.nK)return{nq:"autoplay"};if(a.endSeconds>0)return{nq:"endcr"};if(!a.Y)return{nq:"client"};if(!R.Kr())return{nq:"no-empty"};R=LCm(h,R,F,Infinity);return R!=null?{nq:R.msg}:null}; eJ=function(R){g.d.call(this);this.app=R;this.N=this.L=this.D=this.B=null;this.K=1;this.events=new g.xK(this);this.events.T(this.app.Xo,g.Dq("gaplessshortslooprange"),this.Z);g.z(this,this.events)}; y8m=function(){this.B=this.Y=this.K=this.D=this.C=this.S=this.oR=this.Z=this.N=this.L=!1}; q9T=function(R){var F=new y8m;F.L=R.X("h5_gapless_support_types_diff");F.Z=R.X("h5_gapless_error_on_fps_diff");F.oR=R.X("html5_gapless_use_format_info_fix");F.S=R.X("html5_gapless_disable_on_av1")&&!R.X("html5_gapless_enable_on_av1");F.N=R.X("html5_gapless_check_codec_diff_strictly");F.C=R.X("html5_gapless_on_ad_autoplay");F.Y=R.X("html5_gapless_disable_diff_aspect_radio");F.D=R.X("html5_gapless_ad_autoplay_on_ad_to_video_only");F.B=R.X("html5_pseudogapless_shorts_seek_to_next_start");F.K=R.X("html5_gapless_ad_autoplay_on_video_to_ad_only"); return F}; g.nc=function(R,F,h,a){a=a===void 0?!1:a;Yu.call(this);this.mediaElement=R;this.start=F;this.end=h;this.B=a}; feI=function(R,F,h,a,J,M){M=M===void 0?0:M;g.d.call(this);var v=this;this.policy=R;this.B=F;this.D=h;this.qa=J;this.N=M;this.L=this.K=null;this.currentVideoDuration=this.S=-1;this.Y=!1;this.bj=new rh;this.W4=a-F.wW()*1E3;this.bj.then(void 0,function(){}); this.timeout=new g.DY(function(){v.CK("timeout")},1E4); g.z(this,this.timeout);this.Z=isFinite(a)||this.qa.W().experiments.jl("html5_pseudogapless_shorts")&&pt(F.getVideoData());this.status={status:0,error:null}}; Zy2=function(R){var F,h,a,J,M,v,I,w,E;return g.u(function(B){if(B.D==1){if(R.RR())return B.return(Promise.reject(Error(R.status.error||"disposed")));R.timeout.start();return g.m(B,R.bj,2)}F=R.B.He();if(F.isEnded())return R.CK("ended_in_finishTransition"),B.return(Promise.reject(Error(R.status.error||"")));if(!R.L||!G7(R.L))return R.CK("next_mse_closed"),B.return(Promise.reject(Error(R.status.error||"")));if(R.D.s0()!==R.L)return R.CK("next_mse_mismatch"),B.return(Promise.reject(Error(R.status.error|| "")));h=uC(R);a=h.On;J=h.Ar;M=h.GA;R.B.sJ(!1,!0);v=j5a(F,a,M,!R.D.getVideoData().isAd());R.D.setMediaElement(v);(I=R.B.qj())&&R.D.tN(I.Zj,I.y4);R.Z&&(R.D.seekTo(R.D.getCurrentTime()+.001,{hC:!0,rI:3,RT:"gapless_pseudo"}),v.play(),fR());w=F.nO();w.cpn=R.B.getVideoData().clientPlaybackNonce;w.st=""+a;w.et=""+M;R.D.dA("gapless",w);R.B.dA("gaplessTo",{cpn:R.D.getVideoData().clientPlaybackNonce});E=R.B.getPlayerType()===R.D.getPlayerType();R.B.pU(J,!0,!1,E,R.D.getVideoData().clientPlaybackNonce);R.D.pU(R.D.getCurrentTime(), !0,!0,E,R.B.getVideoData().clientPlaybackNonce);R.D.Hv();g.T3(function(){!R.D.getVideoData().KI&&R.D.getPlayerState().isOrWillBePlaying()&&R.D.vy()}); dO(R,6);R.dispose();return B.return(Promise.resolve())})}; m2a=function(R){if(R.D.getVideoData().K){var F=R.qa.W().X("html5_gapless_suspend_next_loader")&&R.N===1;R.D.E5(R.L,F,byi(R));dO(R,3);S9I(R);var h=Oyi(R);F=h.yS;h=h.sx;F.subscribe("updateend",R.Xs,R);h.subscribe("updateend",R.Xs,R);R.Xs(F);R.Xs(h)}}; S9I=function(R){R.B.unsubscribe("internalvideodatachange",R.GK,R);R.D.unsubscribe("internalvideodatachange",R.GK,R);R.qa.W().X("html5_gapless_use_format_info_fix")&&(R.B.unsubscribe("internalvideoformatchange",R.GK,R),R.D.unsubscribe("internalvideoformatchange",R.GK,R));R.B.unsubscribe("mediasourceattached",R.GK,R);R.D.unsubscribe("statechange",R.b5,R)}; j5a=function(R,F,h,a){R=R.isView()?R.mediaElement:R;return new g.nc(R,F,h,a)}; dO=function(R,F){F<=R.status.status||(R.status={status:F,error:null},F===5&&R.bj.resolve())}; byi=function(R){return R.qa.W().X("html5_gapless_no_clear_buffer_timeline")&&R.N===1&&AL(R.B.getVideoData())}; uC=function(R){var F=R.B.He();F=F.isView()?F.start:0;var h=R.B.getVideoData().isLivePlayback?Infinity:R.B.R3(!0);h=Math.min(R.W4/1E3,h)+F;var a=R.Z?100:0;R=h-R.D.x6()+a;return{rg:F,On:R,Ar:h,GA:Infinity}}; Oyi=function(R){return{yS:R.K.B.CV,sx:R.K.D.CV}}; Pa=function(R){g.d.call(this);var F=this;this.app=R;this.S=this.D=this.B=null;this.Z=!1;this.K=this.L=null;this.N=q9T(this.app.W());this.Y=function(){g.T3(function(){ogL(F)})}}; XoI=function(R,F,h,a,J){a=a===void 0?0:a;J=J===void 0?0:J;R.Kr()||zx(R);R.L=new rh;R.B=F;var M=h,v=J===0;v=v===void 0?!0:v;var I=R.app.bu(),w=I.getVideoData().isLivePlayback?Infinity:I.R3(!0)*1E3;M>w&&(M=w-200,R.Z=!0);v&&I.getCurrentTime()>=M/1E3?R.Y():(R.D=I,v&&(v=M,M=R.D,R.app.Xo.addEventListener(g.lz("vqueued"),R.Y),v=isFinite(v)||v/1E3>M.getDuration()?v:0x8000000000000,R.S=new g.KI(v,0x8000000000000,{namespace:"vqueued"}),M.addCueRange(R.S)));v=a/=1E3;M=F.getVideoData().B;a&&M&&R.D&&(I=a,w=0, F.getVideoData().isLivePlayback&&(v=Math.min(h/1E3,R.D.R3(!0)),w=Math.max(0,v-R.D.getCurrentTime()),I=Math.min(a,F.R3()+w)),v=bvn(M,I)||a,v!==a&&R.B.dA("qvaln",{st:a,at:v,rm:w,ct:I}));F=v;a=R.B;a.getVideoData().n2=!0;a.getVideoData().Y=!0;a.ke(!0);M={};R.D&&(M=R.D.rY(),v=R.D.getVideoData().clientPlaybackNonce,M={crt:(M*1E3).toFixed(),cpn:v});a.dA("queued",M);F!==0&&a.seekTo(F+.01,{hC:!0,rI:3,RT:"videoqueuer_queued"});R.K=new feI(R.N,R.app.bu(),R.B,h,R.app,J);h=R.K;h.status.status!==Infinity&&(dO(h, 1),h.B.subscribe("internalvideodatachange",h.GK,h),h.D.subscribe("internalvideodatachange",h.GK,h),h.qa.W().X("html5_gapless_use_format_info_fix")&&(h.B.subscribe("internalvideoformatchange",h.GK,h),h.D.subscribe("internalvideoformatchange",h.GK,h)),h.B.subscribe("mediasourceattached",h.GK,h),h.D.subscribe("statechange",h.b5,h),h.B.subscribe("newelementrequired",h.JU,h),h.GK());return R.L}; ogL=function(R){var F,h,a,J,M,v,I;g.u(function(w){switch(w.D){case 1:if(R.RR()||!R.L||!R.B)return w.return();R.Z&&R.app.bu().JN(!0,!1);F=null;if(!R.K){w.G$(2);break}g.Hi(w,3);return g.m(w,Zy2(R.K),5);case 5:g.yn(w,2);break;case 3:F=h=g.f_(w);case 2:if(!R.B)return w.return();eyn.FI("vqsp",function(){R.app.OZ(R.B)}); if(!R.B)return w.return();a=R.B.He();R.app.W().X("html5_gapless_seek_on_negative_time")&&a&&a.getCurrentTime()<-.01&&R.B.seekTo(0);eyn.FI("vqpv",function(){R.app.playVideo()}); F&&(R.B?(J=F?F.message:"forced",(M=R.D)==null||M.dA("gapfulfbk",{r:J}),R.B.Ac(J)):(v=R.D)==null||v.dA("gapsp",{}));I=R.L;zx(R);I&&I.resolve();return w.return(Promise.resolve())}})}; zx=function(R,F){F=F===void 0?!1:F;if(R.D){if(R.S){var h=R.D;R.app.Xo.removeEventListener(g.lz("vqueued"),R.Y);h.removeCueRange(R.S)}R.D=null;R.S=null}R.K&&(R.K.status.status!==6&&(h=R.K,h.status.status!==Infinity&&h.N!==1&&h.CK("Canceled")),R.K=null);R.L=null;R.B&&!F&&R.B!==R.app.pO()&&R.B!==R.app.bu()&&R.B.dispose();R.B&&F&&R.B.Mz();R.B=null;R.Z=!1}; ngi=function(R){var F;return((F=R.K)==null?void 0:F.currentVideoDuration)||-1}; u9B=function(R,F,h){if(R.Kr())return"qie";if(R.B==null||R.B.RR()||R.B.getVideoData()==null)return"qpd";if(F.videoId!==R.B.T2())return"vinm";if(ngi(R)<=0)return"ivd";if(h!==1)return"upt";if((h=R.K)==null)R=void 0;else if(h.getStatus().status!==5)R="niss";else if(LCm(h.policy,h.B,h.D,h.W4)!=null)R="pge";else{F=Oyi(h);R=F.yS;var a=F.sx;F=g.RI(h.qa.W().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var J=h.S+F;h.qa.W().experiments.jl("html5_pseudogapless_shorts")&&(J=uC(h).On+F);h=US(a.Ca(), J);R=US(R.Ca(),J);R=!(F>0)||h&&R?null:"neb"}return R!=null?R:null}; d2i=function(){g.h0.call(this);var R=this;this.fullscreen=0;this.L=this.K=this.pictureInPicture=this.B=this.D=this.inline=!1;this.N=function(){R.u0()}; TB7(this.N);this.S=this.getVisibilityState(this.Hf(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.jC(),this.xS(),this.o0(),this.PV())}; fwn=function(R){return!(R.isMinimized()||R.isInline()||R.isBackground()||R.jC()||R.xS()||R.o0()||R.PV())}; g.Kc=function(R){g.d.call(this);this.uu=R;this.videoData=this.playerState=null}; Dr=function(R,F){g.d.call(this);var h=this;this.data=[];this.K=R||NaN;this.D=F||null;this.B=new g.DY(function(){tM(h);lC(h)}); g.z(this,this.B)}; EhO=function(R){tM(R);return R.data.map(function(F){return F.value})}; tM=function(R){var F=(0,g.NU)();R.data.forEach(function(h){h.expire0));(a=g.RI(F, "html5_cobalt_audio_write_ahead_ms"))&&sO("Media.AudioWriteDurationLocal",a);(a=h("html5_cobalt_enable_decode_to_texture"))&&sO("Media.PlayerConfiguration.DecodeToTexturePreferred",a?1:0);R.Po()&&NQf();Error.stackTraceLimit=50;var J=g.RI(F,"html5_idle_rate_limit_ms");J&&Object.defineProperty(window,"requestIdleCallback",{value:function(M){return window.setTimeout(M,J)}}); RSg(R.N);$GT(h("html5_use_ump_request_slicer"));Dbn(h("html5_record_now"));h("html5_disable_streaming_xhr")&&(Y9=!1);h("html5_byterate_constraints")&&(HG=!0);h("html5_use_non_active_broadcast_for_post_live")&&(wH=!0);h("html5_enable_encrypted_av1")&&(Sf=!0);Uen(g.RI(R.experiments,"html5_sticky_duration_mos"))}; Vsg=function(R,F){return R.slice(F.length).replace(/_[a-z]/g,function(h){return h.toUpperCase().replace("_","")}).replace("Dot",".")}; U2a=function(R){var F={},h=Object.keys(R.experiments.flags);h=g.N(h);for(var a=h.next();!a.done;a=h.next())if(a=a.value,a.startsWith("cobalt_h5vcc"))if(a.startsWith("cobalt_h5vcc_string")){var J=Vsg(a,"cobalt_h5vcc_string");a=sk(R.experiments,a);J&&a&&(F[J]=sO(J,a))}else a.startsWith("cobalt_h5vcc")&&(J=Vsg(a,"cobalt_h5vcc"),a=g.RI(R.experiments,a),J&&a&&(F[J]=sO(J,a)));return F}; CPm=function(R,F,h,a){a=a===void 0?0:a;g.VV.call(this,h.Qv());this.Z1=R;this.videoData=F;this.duration=a;this.endTime=this.startTime=0}; c82=function(R){this.end=this.start=R}; g.Wa=function(){this.B=new Map;this.K=new Map;this.D=new Map}; WCT=function(){this.D=[];this.B=new Map;this.L=new Map;this.K=new Map}; g.R0=function(R,F,h,a){g.d.call(this);var J=this;this.api=R;this.uu=F;this.playback=h;this.app=a;this.Uz=new g.Wa;this.K=new Map;this.N=[];this.B=new WCT;this.PG=new Map;this.NQ=null;this.YH=NaN;this.EP=this.Sw=null;this.iY=new g.DY(function(){Rcf(J,J.YH,J.Sw||void 0)}); this.events=new g.xK(this);this.nI=15E3;this.aR=new g.DY(function(){J.KI=!0;J.playback.RE(J.nI);FbI(J);if(J.playback.getVideoData().We()){var M;J.z$({togab:(M=J.oR)==null?void 0:M.identifier})}J.wj(!1)},this.nI); this.KI=!1;this.Y=new Map;this.T$=[];this.oR=null;this.uY=new Set;this.fI=[];this.gW=[];this.Xf=[];this.Ho=[];this.D=void 0;this.cE=0;this.Sl=!0;this.S=!1;this.Oz=[];this.Fo=new Set;this.gf=new Set;this.Ma=new Set;this.va=0;this.IR=new Set;this.FW=0;this.mY=this.It=!1;this.vc=this.L="";this.Z=null;this.logger=new g.s3("dai");this.rf={AOb:function(){return J.K}, gTR:function(){return J.N}, vTG:function(){return J.B.B}, Npt:function(){return J.L}, uSI:function(M){J.onCueRangeEnter(J.K.get(M))}, pER:function(M){J.onCueRangeExit(J.K.get(M))}, WVA:function(M,v){J.K.set(M,v)}, HGI:function(M){J.vc=M}, U0:function(){return J.U0()}, SXz:function(M){return J.B.K.get(M)}, OpQ:function(){return J.Z}, siA:function(){return J.B.D}}; this.playback.getPlayerType();this.playback.xG(this);this.HG=this.uu.Po();g.z(this,this.iY);g.z(this,this.events);g.z(this,this.aR);this.events.T(this.api,g.lz("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.Dq("serverstitchedcuerange"),this.onCueRangeExit);ca(this.app.NI(),this.playback,!1)}; vDT=function(R,F,h,a,J,M,v,I,w){if(R.uu.X("html5_ignore_ads_after_noadresponse")&&w&&R.uY.has(w))FQ(R,{reason:"addafternoad",cueid:w});else{w=hcI(R,M,M+J);R.KI&&R.z$({adaftto:1});h||R.z$({missadcon:1,enter:M,len:J,aid:I});R.C&&!R.C.R5&&(R.C.R5=I);R.mY&&R.z$({adfbk:1,enter:M,len:J,aid:I});var E=R.playback;v=v===void 0?M+J:v;M===v&&!J&&R.uu.X("html5_allow_zero_duration_ads_on_timeline")&&R.z$({attl0d:1});M>v&&FQ(R,{reason:"enterTime_greater_than_return",Zf:M,DQ:v});var B=E.Vd()*1E3;ME&&FQ(R,{reason:"parent_return_greater_than_content_duration",DQ:v,REb:E});E=null;B=g.Ph(R.B.D,{DQ:M},function(r,Y){return r.DQ-Y.DQ}); B>=0&&(E=R.B.D[B],E.DQ>M&&acg(R,F.video_id||"",M,v,E));if(w&&E)for(B=0;B.5&&R.z$({ttdtb:1,delta:v,cpn:J.cpn,enter:F.adCpn,exit:h.adCpn,seek:a,skip:M});R.api.X("html5_ssdai_enable_media_end_cue_range")&&(!a&&!M&&h.isAd&&h.adCpn?R.api.gQ(h.adCpn):(a||M)&&R.z$({mecr:0,seek:a,skip:M}));if(F.isAd&&h.isAd){J=!!M;if(F.adCpn&&h.adCpn){var I=R.B.B.get(F.adCpn);var w=R.B.B.get(h.adCpn)}J?R.z$({igtransskip:1,enter:F.adCpn,exit:h.adCpn,seek:a,skip:M}):MA(R,w,I,h.hG,F.hG,a,J)}else if(!F.isAd&&h.isAd){R.vc= J.cpn;R.ZK(J.cpn,J.Zf/1E3);R.api.publish("serverstitchedvideochange");I=a0(R,"a2c");R.z$(I);R.va=0;if(I=h.kO)R.cE=I.end,GOI(R,I.id,I.end);var E;h.adCpn&&(E=R.B.B.get(h.adCpn));E&&R.playback.gB(E,J,h.hG,F.hG,a,!!M)}else if(F.isAd&&!h.isAd){var B;F.adCpn&&(B=R.B.B.get(F.adCpn));B&&(R.cE=0,R.vc=B.cpn,R.ZK(B.cpn,B.Zf/1E3),Je(R,B),E=a0(R,"c2a",B),R.z$(E),R.va=1,R.playback.gB(J,B,h.hG,F.hG,a,!!M))}}; g6=function(R,F,h){h=h===void 0?0:h;var a=g.Ph(R.B.D,{Zf:(F+h)*1E3},function(I,w){return I.Zf-w.Zf}); a=a<0?(a+2)*-1:a;if(a>=0)for(var J=F*1E3,M=a;M<=a+1&&M=v.Zf-h*1E3&&J<=v.DQ+h*1E3)return{pX:v,UR:F}}return{pX:void 0,UR:F}}; iN7=function(R,F){var h="";(F=Icf(R,F))&&(h=F.getId());return h?R.B.B.get(h):void 0}; Icf=function(R,F){if(R.vc){var h=R.K.get(R.vc);if(h&&h.start-200<=F&&h.end+200>=F)return h}R=g.N(R.K.values());for(h=R.next();!h.done;h=R.next())if(h=h.value,h.start<=F&&h.end>=F)return h}; Rcf=function(R,F,h){var a=R.EP||R.app.bu().getPlayerState();G9(R,!0);R.playback.seekTo(F,h);R=R.app.bu();F=R.getPlayerState();a.isOrWillBePlaying()&&!F.isOrWillBePlaying()?R.playVideo():a.isPaused()&&!F.isPaused()&&R.pauseVideo()}; G9=function(R,F){R.YH=NaN;R.Sw=null;R.iY.stop();R.NQ&&F&&R.NQ.iQ();R.EP=null;R.NQ=null}; EDn=function(R){var F=F===void 0?-1:F;var h=h===void 0?Infinity:h;for(var a=[],J=g.N(R.B.D),M=J.next();!M.done;M=J.next())M=M.value,(M.Zfh)&&a.push(M);R.B.D=a;a=g.N(R.K.values());for(J=a.next();!J.done;J=a.next())J=J.value,J.start>=F&&J.end<=h&&(R.playback.removeCueRange(J),R.K.delete(J.getId()),R.z$({rmAdCR:1}));a=g6(R,F/1E3);F=a.pX;a=a.UR;if(F&&(a=a*1E3-F.Zf,w0I(R,F,a,F.Zf+a),a=R.K.get(F.cpn))){J=g.N(R.N);for(M=J.next();!M.done;M=J.next())M=M.value,M.start===a.end?M.start=F.Zf+F.durationMs: M.end===a.start&&(M.end=F.Zf);a.start=F.Zf;a.end=F.Zf+F.durationMs}if(F=g6(R,h/1E3).pX){var v;a="playback_timelinePlaybackId_"+F.Jp+"_video_id_"+((v=F.videoData)==null?void 0:v.videoId)+"_durationMs_"+F.durationMs+"_enterTimeMs_"+F.Zf+"_parentReturnTimeMs_"+F.DQ;R.X4("Invalid_clearEndTimeMs_"+h+"_that_falls_during_"+a+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; BxB=function(R){R.Uz.clearAll();R.K.clear();R.N=[];R.B.clear();R.Y.clear();R.T$=[];R.oR=null;R.uY.clear();R.fI=[];R.gW=[];R.Xf=[];R.Ho=[];R.Oz=[];R.Fo.clear();R.gf.clear();R.Ma.clear();R.IR.clear();R.KI=!1;R.D=void 0;R.cE=0;R.Sl=!0;R.S=!1;R.va=0;R.FW=0;R.It=!1;R.mY=!1;R.L="";PPT(R.app.NI());ca(R.app.NI(),R.playback,!1);R.PG.clear();R.aR.isActive()&&he(R)}; w0I=function(R,F,h,a){F.durationMs=h;F.DQ=a;(a=R.PG.get(F.cpn))?a.Td(h/1E3):R.z$({nop_d:F.cpn})}; Yha=function(R,F,h,a,J,M){if(!R.mY)if(g.rKL(R,h))R.z$({gdu:"undec",seg:h,itag:J});else if(F=I0(R,F,h,a,M),!(R.playback.getVideoData().We()&&(F==null?0:F.Cz)))return F}; I0=function(R,F,h,a,J){var M=R.Y.get(h);if(!M){if(M=sng(R,F))return M;F=R.qO(h-1,a!=null?a:2);if(J)return R.z$({misscue:J,sq:h,type:a,prevsstate:F==null?void 0:F.YP,prevrecord:R.Y.has(h-1)}),R.Y.get(h-1);if((F==null?void 0:F.YP)===2)return R.z$({adnf:1,sq:h,type:a,prevrecord:R.Y.has(h-1)}),R.Y.get(h-1)}return M}; sng=function(R,F){F+=R.MI();if(R.playback.getVideoData().We())a:{var h=1;h=h===void 0?0:h;var a=F*1E3;R=g.N(R.B.D);for(var J=R.next();!J.done;J=R.next()){J=J.value;var M=J.K7?J.K7*1E3:J.Zf;if(a>=J.Zf-h*1E3&&a<=M+J.durationMs+h*1E3){a={pX:J,UR:F};break a}}a={pX:void 0,UR:F}}else a=g6(R,F),((h=a)==null?0:h.pX)||(a=g6(R,F,1));var v;return(v=a)==null?void 0:v.pX}; p0I=function(R,F){F=F===void 0?"":F;var h=Ac(F)||void 0;if(!F||!h){var a;R.z$({adcfg:(a=F)==null?void 0:a.length,dcfg:h==null?void 0:h.length})}return h}; kOa=function(R){if(R.Oz.length)for(var F=g.N(R.Oz),h=F.next();!h.done;h=F.next())R.onCueRangeExit(h.value);F=g.N(R.K.values());for(h=F.next();!h.done;h=F.next())R.playback.removeCueRange(h.value);F=g.N(R.N);for(h=F.next();!h.done;h=F.next())R.playback.removeCueRange(h.value);R.K.clear();R.N=[];R.Uz.clearAll();R.D||(R.Sl=!0)}; MA=function(R,F,h,a,J,M,v){if(F&&h){R.vc=h.cpn;R.ZK(h.cpn,h.Zf/1E3);Je(R,h);var I=a0(R,"a2a",h);R.z$(I);R.va++;R.playback.gB(F,h,a||0,J||0,!!M,!!v)}else R.z$({misspbkonadtrans:1,enter:(h==null?void 0:h.cpn)||"",exit:(F==null?void 0:F.cpn)||"",seek:M,skip:v})}; $Bf=function(R,F,h,a){if(a)for(a=0;ah){var M=J.end;J.end=F;Qni(R,h,M)}else if(J.start>=F&&J.starth)J.start=h;else if(J.end>F&&J.end<=h&&J.start=F&&J.end<=h){R.playback.removeCueRange(J);if(R.Oz.includes(J))R.onCueRangeExit(J);R.N.splice(a,1);continue}a++}else Qni(R,F,h)}; Qni=function(R,F,h){F=gD7(F,h);h=!0;g.VL(R.N,F,function(v,I){return v.start-I.start}); for(var a=0;a0){var J=R.N[a],M=R.N[a-1];if(Math.round(M.end/1E3)>=Math.round(J.start/1E3)){M.end=J.end;J!==F?R.playback.removeCueRange(J):h=!1;R.N.splice(a,1);continue}}a++}if(h)for(R.playback.addCueRange(F),F=R.playback.RO("serverstitchedcuerange",36E5),F=g.N(F),h=F.next();!h.done;h=F.next())R.K.delete(h.value.getId())}; i0=function(R,F,h){if(h===void 0||!h){h=g.N(R.T$);for(var a=h.next();!a.done;a=h.next()){a=a.value;if(F>=a.start&&F<=a.end)return;if(F===a.end+1){a.end+=1;return}}R.T$.push(new c82(F))}}; g.rKL=function(R,F){R=g.N(R.T$);for(var h=R.next();!h.done;h=R.next())if(h=h.value,F>=h.start&&F<=h.end)return!0;return!1}; w6=function(R,F,h){var a;if(a=R.playback.getVideoData().We()||R.uu.X("html5_ssdai_extent_last_unfinished_ad_cue_range"))a=(a=R.B.B.get(F))&&a.GN?(R=R.B.K.get(a==null?void 0:a.GN))&&R.slice(-1)[0].cpn===F:!1;return a&&h===2?1E3:0}; acg=function(R,F,h,a,J){var M;F={reason:"overlapping_playbacks",USo:F,Zf:h,DQ:a,Dzn:J.Jp,ETt:((M=J.videoData)==null?void 0:M.videoId)||"",oTt:J.durationMs,a2o:J.Zf,dzb:J.DQ};FQ(R,F)}; FQ=function(R,F,h){R.playback.Oh(F,h)}; AKL=function(R,F){var h=[];R=R.B.K.get(F);if(!R)return[];R=g.N(R);for(F=R.next();!F.done;F=R.next())F=F.value,F.cpn&&h.push(F.cpn);return h}; xBi=function(R,F,h){var a=0;R=R.B.K.get(h);if(!R)return-1;R=g.N(R);for(h=R.next();!h.done;h=R.next()){if(h.value.cpn===F)return a;a++}return-1}; Nx7=function(R,F){var h=0;R=R.B.K.get(F);if(!R)return 0;R=g.N(R);for(F=R.next();!F.done;F=R.next())F=F.value,F.durationMs!==0&&F.DQ!==F.Zf&&h++;return h}; HNi=function(R,F,h){var a=!1;if(h&&(h=R.B.K.get(h))){h=g.N(h);for(var J=h.next();!J.done;J=h.next())J=J.value,J.durationMs!==0&&J.DQ!==J.Zf&&(J=J.cpn,F===J&&(a=!0),a&&!R.gf.has(J)&&(R.z$({decoratedAd:J}),R.gf.add(J)))}}; FbI=function(R){R.HG&&R.z$({adf:"0_"+((new Date).getTime()/1E3-R.FW)+"_isTimeout_"+R.KI})}; hcI=function(R,F,h){if(R.fI.length)for(var a=g.N(R.fI),J=a.next(),M={};!J.done;M={CQ:void 0},J=a.next()){M.CQ=J.value;J=M.CQ.startSecs*1E3;var v=M.CQ.Rz*1E3+J;if(F>J&&FJ&&h0?R:0}else R.U0().videoData.FW=R.playback.getCurrentTime()}; bNB=function(R,F,h,a){g.d.call(this);var J=this;this.api=R;this.uu=F;this.B=h;this.app=a;this.N=new Map;this.D=[];this.K=this.Y=null;this.oR=NaN;this.S=this.L=this.C=null;this.Z=new g.DY(function(){ZNB(J,J.oR,J.C||void 0)}); this.aR=[];this.KI=new g.DY(function(){var M=J.aR.pop();if(M){var v=M.Jp,I=M.playerVars;M=M.playerType;I&&(I.prefer_gapless=!0,J.api.preloadVideoByPlayerVars(I,M,NaN,"",v),J.aR.length&&g.VI(J.KI,4500))}}); this.events=new g.xK(this);this.rf={XE$:function(){return J.D}}; this.B.getPlayerType();g.z(this,this.Z);g.z(this,this.KI);g.z(this,this.events);this.events.T(this.api,g.lz("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.eC)}; oDI=function(R,F,h,a,J,M){var v=F.cpn,I=F.docid||F.video_id||F.videoId||F.id,w=R.B;M=M===void 0?J+a:M;if(J>M)return B8(R,"enterAfterReturn enterTimeMs="+J+" is greater than parentReturnTimeMs="+M.toFixed(3),v,I),"";var E=w.Vd()*1E3;if(JE)return w="returnAfterDuration parentReturnTimeMs="+M.toFixed(3)+" is greater than parentDurationMs="+E+". And timestampOffset in seconds is "+ w.wW(),B8(R,w,v,I),"";E=null;for(var B=g.N(R.D),r=B.next();!r.done;r=B.next()){r=r.value;if(J>=r.Zf&&Jr.Zf)return B8(R,"overlappingReturn",v,I),"";if(M===r.Zf)return B8(R,"outOfOrder",v,I),"";J===r.DQ&&(E=r)}v="cs_childplayback_"+ShB++;I={kO:r6(a,!0),W4:Infinity,target:null};var Y={Jp:v,playerVars:F,playerType:h,durationMs:a,Zf:J,DQ:M,Um:I};R.D=R.D.concat(Y).sort(function(H,T){return H.Zf-T.Zf}); E?ONB(R,E,{kO:r6(E.durationMs,!0),W4:E.Um.W4,target:Y}):(F={kO:r6(J,!1),W4:J,target:Y},R.N.set(F.kO,F),w.addCueRange(F.kO));F=!0;if(R.B===R.app.bu()&&(w=w.getCurrentTime()*1E3,w>=Y.Zf&&wF)break;if(M>F)return{pX:a,UR:F-J};h=M-a.DQ/1E3}return{pX:null,UR:F-h}}; ZNB=function(R,F,h){h=h===void 0?{}:h;var a=R.S||R.app.bu().getPlayerState();p9(R,!0);F=isFinite(F)?F:R.B.cV();var J=ubf(R,F);F=J.UR;var M=(J=J.pX)&&!Ye(R,J)||!J&&R.B!==R.app.bu(),v=F*1E3;v=R.K&&R.K.start<=v&&v<=R.K.end;!M&&v||s2(R);J?mBI(R,J,F,h,a):dBi(R,F,h,a)}; dBi=function(R,F,h,a){var J=R.B;J!==R.app.bu()&&R.app.y7();J.seekTo(F,Object.assign({},{RT:"application_timelinemanager"},h));P$g(R,a)}; mBI=function(R,F,h,a,J){var M=Ye(R,F);if(!M){F.playerVars.prefer_gapless=!0;R.uu.X("html5_enable_ssap_entity_id")&&(F.playerVars.cached_load=!0);var v=new g.Mz(R.uu,F.playerVars);v.Jp=F.Jp;R.api.dB(v,F.playerType)}v=R.app.bu();M||v.addCueRange(F.Um.kO);v.seekTo(h,Object.assign({},{RT:"application_timelinemanager"},a));P$g(R,J)}; P$g=function(R,F){R=R.app.bu();var h=R.getPlayerState();F.isOrWillBePlaying()&&!h.isOrWillBePlaying()?R.playVideo():F.isPaused()&&!h.isPaused()&&R.pauseVideo()}; p9=function(R,F){R.oR=NaN;R.C=null;R.Z.stop();R.L&&F&&R.L.iQ();R.S=null;R.L=null}; Ye=function(R,F){R=R.app.bu();return!!R&&R.getVideoData().Jp===F.Jp}; zcO=function(R){var F=R.D.find(function(J){return Ye(R,J)}); if(F){var h=R.app.bu();s2(R);var a=new g.$u(8);F=nDn(R,F)/1E3;dBi(R,F,{},a);h.dA("forceParentTransition",{childPlayback:1});R.B.dA("forceParentTransition",{parentPlayback:1})}}; tKO=function(R,F,h){F=F===void 0?-1:F;h=h===void 0?Infinity:h;for(var a=F,J=h,M=g.N(R.N),v=M.next();!v.done;v=M.next()){var I=g.N(v.value);v=I.next().value;I=I.next().value;I.W4>=a&&I.target&&I.target.DQ<=J&&(R.B.removeCueRange(v),R.N.delete(v))}a=F;J=h;M=[];v=g.N(R.D);for(I=v.next();!I.done;I=v.next())if(I=I.value,I.Zf>=a&&I.DQ<=J){var w=R;w.Y===I&&s2(w);Ye(w,I)&&w.app.y7()}else M.push(I);R.D=M;a=ubf(R,F/1E3);F=a.pX;a=a.UR;F&&(a*=1E3,Kbm(R,F,a,F.DQ===F.Zf+F.durationMs?F.Zf+a:F.DQ));(F=ubf(R,h/1E3).pX)&& B8(R,"Invalid clearEndTimeMs="+h+" that falls during playback={timelinePlaybackId="+(F.Jp+" video_id="+F.playerVars.video_id+" durationMs="+F.durationMs+" enterTimeMs="+F.Zf+" parentReturnTimeMs="+F.DQ+"}.Child playbacks can only have duration updated not their start."))}; Kbm=function(R,F,h,a){F.durationMs=h;F.DQ=a;a={kO:r6(h,!0),W4:h,target:null};ONB(R,F,a);Ye(R,F)&&R.app.bu().getCurrentTime()*1E3>h&&(F=nDn(R,F)/1E3,h=R.app.bu().getPlayerState(),dBi(R,F,{},h))}; B8=function(R,F,h,a){R.B.dA("timelineerror",{e:F,cpn:h?h:void 0,videoId:a?a:void 0})}; DBa=function(R){R&&R!=="web"&&lcL.includes(R)}; ke=function(){g.d.call(this);this.B=new Dr(5,null);g.z(this,this.B);this.D=new Dr(15,null);g.z(this,this.D)}; zML=function(R,F){return F?!!R.B.get(F):!1}; VKL=function(R,F){R.dataset.version=F}; cKO=function(R){g.D.call(this,{G:"div",sz:["html5-video-player"],j:{tabindex:R.W().disableOrganicUi?"":"-1",id:R.webPlayerContextConfig.rootElementId},V:[{G:"div",J:g.kn.VIDEO_CONTAINER,j:{"data-layer":"0"}}]});var F=this;this.app=R;this.C5=this.mI(g.kn.VIDEO_CONTAINER);this.I0=new g.uX(0,0,0,0);this.Be=null;this.Gf=new g.uX(0,0,0,0);this.zw=this.A_=this.U$=NaN;this.OD=this.mU=this.TO=this.eY=!1;this.RC=NaN;this.WN=!1;this.aY=null;this.Zx=function(){F.element.focus({preventScroll:!0})}; this.V8=function(){F.app.Xo.publish("playerUnderlayVisibilityChange","visible");F.Be.classList.remove(g.kn.VIDEO_CONTAINER_TRANSITIONING);F.Be.removeEventListener($Q,F.V8);F.Be.removeEventListener("transitioncancel",F.V8)}; this.Eq=this.d0=!1;var h=this.element.addEventListener,a=this.element.removeEventListener;this.addEventListener=function(M,v,I){h.apply(F.element,[M,v,I])}; this.removeEventListener=function(M,v,I){a.apply(F.element,[M,v,I])}; var J=R.W();J.transparentBackground&&this.Hn("ytp-transparent");J.controlsType==="0"&&this.Hn("ytp-hide-controls");g.J$(this.element,"ytp-exp-bottom-control-flexbox");g.J$(this.element,"ytp-modern-caption");J.X("enable_new_paid_product_placement")&&!g.Bc(J)&&g.J$(this.element,"ytp-exp-ppp-update");J.X("html5_enable_ssap")&&g.J$(this.element,"ytp-ssap");g.J$(this.element,"ytp-livebadge-color");if(J.X("delhi_modern_web_player"))switch(g.J$(this.element,"ytp-delhi-modern"),J.X("delhi_modern_web_player_icons")&& g.J$(this.element,"ytp-delhi-modern-icons"),sk(J.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.J$(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.J$(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.J$(this.element,"ytp-delhi-modern-with-exclusion")}VKL(this.element,UBI(R));this.SZ=!1;this.Tk=new g.t7(NaN,NaN);C$m(this);this.T(R.Xo,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; C$m=function(R){function F(){R.Be&&Qs(R);$e(R)!==R.WN&&R.resize()} function h(v,I){R.O0(v,I)} function a(v){v.getVideoData()&&R.updateVideoData(v.getVideoData())} function J(){R.Gf=new g.uX(0,0,0,0);R.I0=new g.uX(0,0,0,0)} var M=R.app.Xo;M.addEventListener("initializingmode",J);M.addEventListener("videoplayerreset",a);M.addEventListener("videodatachange",h);M.addEventListener("presentingplayerstatechange",F);R.addOnDisposeCallback(function(){M.removeEventListener("initializingmode",J);M.removeEventListener("videoplayerreset",a);M.removeEventListener("videodatachange",h);M.removeEventListener("presentingplayerstatechange",F)})}; Rrf=function(R){var F=R.app.bu();if(F=F?F.getVideoData():null){if(g.Pr(F)||g.zT(F)||g.Kt(F))return 16/9;if(sG(F)&&F.K.B)return R=F.K.videoInfos[0].video,WbO(R.width,R.height)}return(R=R.Be)?WbO(R.videoWidth,R.videoHeight):16/9}; FVB=function(R,F,h,a){var J=h,M=WbO(F.width,F.height);R.eY?J=hM?{width:F.width,height:F.width/J,aspectRatio:J}:JJ?R.width=R.height*h:hw;if($e(R)){var E=Rrf(R);var B=isNaN(E)||g.zC||hn&&g.YV||w;PR&&!g.nh(601)?E=J.aspectRatio:B=B||M.controlsType==="3";B?w?(B=M.X("place_shrunken_video_on_left_of_player")?16:R.getPlayerSize().width-F.width-16,E=Math.max((R.getPlayerSize().height-F.height)/2,0),B=new g.uX(B,E,F.width, F.height),R.Be.style.setProperty("border-radius","12px")):B=new g.uX(0,0,F.width,F.height):(h=J.aspectRatio/E,B=new g.uX((F.width-J.width/h)/2,(F.height-J.height)/2,J.width/h,J.height),h===1&&g.YV&&(E=B.width-F.height*E,E>0&&(B.width+=E,B.height+=E)));g.Gi(R.element,"ytp-fit-cover-video",Math.max(B.width-J.width,B.height-J.height)<1);if(I||R.SZ)R.Be.style.display="";R.WN=!0}else{B=-F.height;PR?B*=window.devicePixelRatio:g.rG&&(B-=window.screen.height);B=new g.uX(0,B,F.width,F.height);if(I||R.SZ)R.Be.style.display= "none";R.WN=!1}ds(R.Gf,B)||(R.Gf=B,g.Uk(M)?(R.Be.style.setProperty("width",B.width+"px","important"),R.Be.style.setProperty("height",B.height+"px","important")):g.RP(R.Be,B.getSize()),a=new g.zq(B.left,B.top),g.U$(R.Be,Math.round(a.x),Math.round(a.y)),a=!0);F=new g.uX((F.width-J.width)/2,(F.height-J.height)/2,J.width,J.height);ds(R.I0,F)||(R.I0=F,a=!0);g.zL(R.Be,"transform",h===1?"":"scaleX("+h+")");v&&w!==R.mU&&(w&&(R.Be.addEventListener($Q,R.V8),R.Be.addEventListener("transitioncancel",R.V8),R.Be.classList.add(g.kn.VIDEO_CONTAINER_TRANSITIONING)), R.mU=w,R.app.Xo.publish("playerUnderlayVisibilityChange",R.mU?"transitioning":"hidden"));return a}; J6L=function(R){R.d0=!R.d0;R.Eq=!0;R.element.classList.toggle("ytp-retro-player",R.d0);R.resize();R.Eq=!1;R.app.Xo.WG("onRetroModeChanged",R.d0)}; MF7=function(){this.csn=g.Q7();this.clientPlaybackNonce=null;this.elements=new Set;this.K=new Set;this.B=new Set;this.D=new Set}; vZO=function(R){if(R.csn!==g.Q7())if(R.csn==="UNDEFINED_CSN")R.csn=g.Q7();else{var F=g.Q7(),h=g.kf();if(F&&h){R.csn=F;for(var a=g.N(R.elements),J=a.next();!J.done;J=a.next())(J=J.value.visualElement)&&J.isClientVe()&&F&&h&&(g.pR("combine_ve_grafts")?DV(tu(),J,h):g.Vz(g.uw)(void 0,F,h,J))}if(F)for(R=g.N(R.B),h=R.next();!h.done;h=R.next())(h=h.value.visualElement)&&h.isClientVe()&&g.UD(F,h)}}; g.Ae=function(R,F,h,a){g.d.call(this);var J=this;this.logger=new g.s3("App");this.cS=this.SK=!1;this.Ad={};this.uO=[];this.iF=!1;this.h9=null;this.intentionalPlayback=!1;this.Il=!0;this.jn=!1;this.ji=this.q1=this.QF=null;this.y6=!0;this.mediaElement=this.sP=null;this.cM=NaN;this.ju=!1;this.b9=this.wy=this.Hc=this.screenLayer=this.playlist=null;this.MM=[];this.Dx=0;this.rf={NI:function(){return J.Ui}, ctG:function(){return J.Hc}, vJR:function(){}}; this.logger.debug("constructor begin");if(!h)throw Error("b/179532961");this.Xn=(F==null?void 0:F.args)||{};this.webPlayerContextConfig=h;vYn();F=this.Xn;this.uu=new aX(F,h,h.canaryState,a,this);g.z(this,this.uu);D2i(this.uu);h=U2a(this.uu);this.uu.Po()&&this.W2("h5vcc",h);this.uu.experiments.jl("jspb_serialize_with_worker")&&uoi();this.uu.experiments.jl("gzip_gel_with_worker")&&bWi();this.uu.D&&!gZL&&(window.addEventListener(eD?"touchstart":"click",HyB,{capture:!0,passive:!0}),gZL=!0);this.X("html5_onesie")&& (this.hx=new rB(this.uu),g.z(this,this.hx));this.Ox=RA(KG(this.uu)&&!0,F.enablesizebutton);this.yF=RA(!1,F.player_wide);this.visibility=new d2i;g.z(this,this.visibility);this.X("web_log_theater_mode_visibility")&&this.Gt(RA(!1,F.player_wide));this.SK=RA(!1,F.external_list);this.events=new g.xK(this);g.z(this,this.events);this.X("start_client_gcf")&&(HO(q_(),{WS:Jq,TQ:h7L()}),this.iy=q_().resolve(Jq),MML(this.iy));this.Hau=new $C;g.z(this,this.Hau);this.Y8=new MF7;h=new AC;this.Xo=new g.O4(this,h); g.z(this,this.Xo);this.template=new cKO(this);g.z(this,this.template);this.appState=1;this.wl=Gka(this);g.z(this,h);h={};this.Wp=(h.internalvideodatachange=this.k$$,h.playbackready=this.NAo,h.playbackstarted=this.Mlo,h.statechange=this.qzo,h);this.fH=new kw(this.Xo);this.JT=IsL(this);h=this.uu.S;!1!==h&&this.W2("badps",{hbp:h,hostname:window.location.hostname,ps:this.uu.playerStyle});this.rW=new i97(this.uu,this.JT);this.Xo.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||fkm(this.JT))&& iCL(this);h=10;g.Y0(this.uu)&&(h=3);wG(this.uu)&&(h=g.RI(this.uu.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ui=new g.Uo(this.Xo,h);h=w7L(this);this.Ui.yW(h);EZn(this);h={};this.qd=(h.airplayactivechange=this.PYl,h.airplayavailabilitychange=this.gHI,h.beginseeking=this.Jab,h.sabrCaptionsDataLoaded=this.Qt$,h.endseeking=this.twb,h.internalAbandon=this.Ifl,h.internalaudioformatchange=this.YPb,h.internalvideodatachange=this.omb,h.internalvideoformatchange=this.daI,h.liveviewshift=this.ZOn, h.playbackstalledatstart=this.Bfo,h.progresssync=this.xtb,h.onAbnormalityDetected=this.lfo,h.onSnackbarMessage=this.ufb,h.onLoadProgress=this.yat,h.SEEK_COMPLETE=this.nHu,h.SEEK_TO=this.zmA,h.onVideoProgress=this.DaA,h.onLoadedMetadata=this.FCQ,h.onAutoplayBlocked=this.woA,h.onPlaybackPauseAtStart=this.jtQ,h.playbackready=this.HOA,h.statechange=this.j2,h.newelementrequired=this.Wr,h.heartbeatparams=this.bOR,h.videoelementevent=this.a1l,h.drmoutputrestricted=this.TWo,h.signatureexpired=this.CYb,h.nonfatalerror= this.WCn,h.reloadplayer=this.emI,h);this.p9=new g.xK(this);g.z(this,this.p9);this.iV=new ke;g.z(this,this.iV);this.aq=this.X_=-1;this.gD=new g.DY(this.template.resize,16,this.template);g.z(this,this.gD);this.Z1=new bNB(this.Xo,this.uu,this.pO(),this);this.pB=new Pa(this);g.z(this,this.pB);this.gr=new eJ(this);g.z(this,this.gr);DBa(this.uu.B.c);this.events.T(this.Xo,g.lz("appapi"),this.cbG);this.events.T(this.Xo,g.Dq("appapi"),this.Rbu);this.events.T(this.Xo,g.lz("appprogressboundary"),this.Gnz);this.events.T(this.Xo, g.Dq("applooprange"),this.td);this.events.T(this.Xo,"presentingplayerstatechange",this.eC);this.events.T(this.Xo,"resize",this.knA);this.template.Ab(aG(document,R));this.events.T(this.Xo,"offlineslatestatechange",this.NWo);this.events.T(this.Xo,"sabrCaptionsTrackChanged",this.bVQ);this.events.T(this.Xo,"sabrCaptionsBufferedRangesUpdated",this.tAR);this.JT.U.W().EJ&&Z0(this.JT,"offline");this.uu.T$&&g.NO("ux",g.oC);R=g.RI(this.uu.experiments,"html5_defer_fetch_att_ms");this.hL=new g.DY(this.C9u,R, this);g.z(this,this.hL);this.Bc().Fd()&&(g.bH()&&this.Bc().aR.push("remote"),B2n(this));this.rW.tick("fs");r6m(this);this.uu.T$&&Z0(this.JT,"ux",!0);g.Py(this.JT.U.W())&&Z0(this.JT,"embed");this.X("web_player_sentinel_is_uniplayer")||g.qN(new g.Pv("Player experiment flags missing","web_player_sentinel_is_uniplayer"));R=this.X("web_player_sentinel_yt_experiments_sync");h=g.pR("web_player_sentinel_yt_experiments_sync");R!==h&&g.qN(new g.Pv("b/195699950",{yt:R,player:h}));this.NE=YCm(this);if(R=g.RI(this.uu.experiments, "html5_block_pip_safari_delay"))this.Uj=new g.DY(this.jY,R,this),g.z(this,this.Uj);jn=this.uu.FW;this.Xo.publish("applicationInitialized");this.logger.debug("constructor end")}; YCm=function(R){function F(h){h.stack&&h.stack.indexOf("player")!==-1&&R.bu().wJ(h)} fx.subscribe("handleError",F);lO.push(F);return function(){fx.unsubscribe("handleError",F);var h=lO.indexOf(F);h!==-1&&lO.splice(h,1)}}; w7L=function(R){var F=new g.Mz(R.uu,R.Xn);R.Xo.publish("initialvideodatacreated",F);return xe(R,1,F,!1)}; EZn=function(R){var F=R.pO();F.setPlaybackRate(R.uu.L?1:sEi(R,Number(g.jA("yt-player-playback-rate"))||1));F.Fc(R.Wp,R);F.U5()}; IsL=function(R){var F="",h=UBI(R);h.indexOf("//")===0&&(h=R.uu.protocol+":"+h);var a=h.lastIndexOf("/base.js");a!==-1&&(F=h.substring(0,a+1));if(h=Error().stack)if(h=h.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))h=h[1],h.includes(F)||g.qN(Error("Player module URL mismatch: "+(h+" vs "+F+".")));F=new T6T(R.Xo,F);h={};yef(F,(h.destroyed=function(){R.onApiChange()},h)); return F}; Gka=function(R){if(R.uu.storeUserVolume){R=g.jA("yt-player-volume")||{};var F=R.volume;R={volume:isNaN(F)?100:g.uu(Math.floor(F),0,100),muted:!!R.muted}}else R={volume:100,muted:R.uu.mute};return R}; NA=function(R){R.mediaElement=R.uu.deviceIsAudioOnly?new g.VO(g.B4("AUDIO")):Xs.pop()||new g.VO(g.B4("VIDEO"));g.z(R,R.mediaElement);R.bu().setMediaElement(R.mediaElement);try{R.uu.Ma?(R.wy&&R.events.Ap(R.wy),R.wy=R.events.T(R.mediaElement,"volumechange",R.stu)):(R.mediaElement.pN(R.wl.muted),R.mediaElement.setVolume(R.wl.volume/100))}catch(J){R.CK("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(J&&typeof J==="object"&&"message"in J&&typeof J.message==="string"&&J.message.replace(/[;:,]/g, "_")));return}g.TP(R.p9);p7L(R);var F=R.template,h=R.mediaElement.G_();F.Be=h;F.OD=!1;F.Be.parentNode||kT(F.C5,F.Be,0);F.Gf=new g.uX(0,0,0,0);asi(F);Qs(F);h=F.Be;g.J$(h,"video-stream");g.J$(h,g.kn.MAIN_VIDEO);var a=F.app.W();a.W1&&h.setAttribute("data-no-fullscreen","true");a.X("html5_local_playsinline")?"playsInline"in sS()&&(h.playsInline=!0):a.CX&&(h.setAttribute("webkit-playsinline",""),h.setAttribute("playsinline",""));a.CP&&F.Be&&F.T(h,"click",h.play,h);try{R.mediaElement.activate()}catch(J){R.CK("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(J&&typeof J==="object"&&"message"in J&&typeof J.message==="string"&&J.message.replace(/[;:,]/g,"_")))}}; QEm=function(R){if(!kkm(R)){var F=R.pO().He();F&&(F=F.Y$(),F instanceof Promise&&F.catch(function(){})); H8(R,q8(R.getPlayerStateObject()))}}; p7L=function(R){var F=R.mediaElement;$K()?R.p9.T(F,"webkitpresentationmodechanged",R.ZVb):window.document.pictureInPictureEnabled&&(R.p9.T(F,"enterpictureinpicture",function(){R.Tc(!0)}),R.p9.T(F,"leavepictureinpicture",function(){R.Tc(!1)})); lB&&(R.p9.T(F,"webkitbeginfullscreen",function(){R.Zk(3)}),R.p9.T(F,"webkitendfullscreen",function(){R.Zk(0)}))}; $PL=function(R,F){var h=F.getPlayerType(),a=R.Ui.K[h]||null;F!==R.pO()&&F!==a&&(a==null||a.dispose(),R.Ui.K[h]=F)}; A6n=function(R,F){F=F===void 0?!0:F;R.logger.debug("start clear presenting player");var h;if(h=R.b9){h=R.b9;var a=R.mediaElement;h=!!a&&a===h.mediaElement}h&&(R.sJ(),NA(R));h=R.bu();h.sJ(!F);h.n9(R.qd,R);h.getPlayerType()!==1&&h.dispose();F=R.Ui;F.D=F.B;Cc(F);R.logger.debug("finish clear presenting player")}; g.xPL=function(R,F,h,a){var J=R.rW;F===2&&(J=new i97(R.uu));return new g.J4(R.uu,F,J,R.template,function(M,v,I){R.Xo.publish(M,v,I)},function(){return R.Xo.getVisibilityState()},R.visibility,R,h,a)}; xe=function(R,F,h,a,J){R=g.xPL(R,F,h,J);R=new g.VV(R);a&&R.U5();return R}; L9=function(R,F){return R.Qs(F)?R.pO():F}; T9=function(R,F){var h=R.bu();return F===R.pO()&&R.Qs(F)&&R.Qs(h)?h:F}; LVi=function(R){R.logger.debug("start application playback");if(R.pO().getPlayerState().isError())R.logger.debug("start application playback done, player in error state");else{var F=ys(R);R.Bc().isLoaded();F&&R.PE(6);N22(R);eKO(R.JT)||HCL(R)}}; HCL=function(R){if(!ys(R)){var F=Sc(R.JT);F&&!F.created&&q2g(R.JT)&&(R.logger.debug("reload ad module"),F.create())}}; N22=function(R){R.logger.debug("start presenter playback");var F=R.getVideoData(),h=R.JT;eKO(h)||h.qy();!Gy_&&h.U.X("html5_allow_asmjs")&&KH2(h);Z0(h,"embed");Z0(h,"kids");Z0(h,"remote");Z0(h,"miniplayer");Z0(h,"offline");Z0(h,"unplugged");Z0(h,"ypc",!1,!0);Z0(h,"ypc_clickwrap",!1,!0);Z0(h,"yto",!1,!0);Z0(h,"webgl",!1,!0);ne2(h)||(Z0(h,"captions",!0),Z0(h,"endscreen"),h.o2(),Z0(h,"creatorendscreen",!0));h.Kw();R.Xo.publish("videoready",F)}; qA=function(R){R=R.Bc();R.Fd();return cr(R)}; r6m=function(R){R.logger.debug("start prepare initial playback");R.tD();var F=R.Xn;NA(R);R.events.T(window,"resize",R.h3t);var h=R.Bc();R.Xo.hj("onVolumeChange",R.wl);if(F&&re2(F)){var a=gG(R.uu);a&&!R.SK&&(F.fetch=0);var J=g.Py(R.uu);J&&!R.SK&&(F.fetch=0);f9(R,F);g.Py(R.uu)&&R.rW.tick("ep_pr_s");if(!a||R.SK)if(J&&!R.SK)T2L(R);else if(!h.Fd())R.playlist.onReady(function(){jy(R)})}R.OZ(R.pO(),!1,!0); g.V(R.pO().getPlayerState(),128)||(F=y0i(!R.uu.deviceIsAudioOnly),F==="fmt.noneavailable"?R.CK("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):F==="html5.missingapi"?R.CK(F,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):h&&h.Fd()&&qA(R)&&(R.uu.XJ||R.uu.lT)?Zk(R):h.WU?R.Xo.mutedAutoplay({durationMode:h.mutedAutoplayDurationMode}):g.jA("yt-player-playback-on-reload")?(g.MU("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!R.uu.KI}),g.fn("yt-player-playback-on-reload",!1), Zk(R)):sZ(R.uu)||y6i(R),g.ig(R.uu)||rp(R.uu)==="MWEB"?(g.D1(g.UK(),function(){b0(R)}),g.D1(g.UK(),function(){TMg()})):(b0(R),TMg()),R.logger.debug("finish prepare initial playback"))}; b0=function(R){if(!R.X("use_rta_for_player"))if(R.X("fetch_att_independently"))g.VI(R.hL);else{var F=R.getVideoData().botguardData;F&&g.hd(F,R.uu,R.getVideoData().fp||"")}}; y6i=function(R){R.logger.debug("start initialize to CUED mode");R.Xo.publish("initializingmode");R.PE(2);R.X("embeds_web_enable_defer_loading_remote_js")&&g.Bc(R.uu)?g.D1(g.UK(),function(){Z0(R.JT,"remote")}):Z0(R.JT,"remote"); Z0(R.JT,"miniplayer");R.logger.debug("initialized to CUED mode")}; Zk=function(R){R.logger.debug("start initialize application playback");var F=R.pO();if(g.V(F.getPlayerState(),128))return!1;F=F.getVideoData();qA(R)&&R.uu.lT&&(Xs.length&&R.cS?(Sy(R,{muted:!1,volume:R.wl.volume},!1),O2(R,!1)):Xs.length||R.wl.muted||(Sy(R,{muted:!0,volume:R.wl.volume},!1),O2(R,!0)));qA(R)&&g.Py(R.uu)&&F.mutedAutoplay&&(Sy(R,{muted:!0,volume:R.wl.volume},!1),O2(R,!0));F.El&&Sy(R,{muted:!0,volume:R.wl.volume},!1);qCL(R,1,F,!1);var h=R.pO();R.Xo.publish("initializingmode");R.OZ(h);R.PE(3); var a;if(!(a=!R.uu.aS)){if(a=R.b9){a=R.b9;var J=R.mediaElement;a=!!J&&J===a.mediaElement}a=a&&R.iF}a&&(R.sJ(),NA(R),h.setMediaElement(R.mediaElement));h.vU();if(g.V(h.getPlayerState(),128))return!1;F.CB||H8(R,3);return R.iF=!0}; ys=function(R){R=XM(R.JT);return!!R&&R.loaded}; fsm=function(R,F){if(!R.sP)return!1;var h=R.sP.startTimeMs*.001-1,a=R.sP.endTimeMs*.001;R.sP.type==="repeatChapter"&&a--;return Math.abs(F-h)<=1E-6||Math.abs(F-a)<=1E-6||F>=h&&F<=a}; jE_=function(R){var F=R.bu();pt(F.getVideoData())&&!F.YQ()&&(F=mH(R)*1E3-R.getVideoData().uX,R.X("html5_gapless_new_slr")?(R=R.gr,o0(R.app,"gaplessshortslooprange"),F=new g.KI(0,F,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(R=R.app.bu())&&R.addCueRange(F)):R.setLoopRange({startTimeMs:0,endTimeMs:F,type:"shortsLoop"}))}; ZCm=function(R){var F=R.pO();if(!(g.V(F.getPlayerState(),64)&&R.Bc().isLivePlayback&&R.sP.startTimeMs<5E3)){if(R.sP.type==="repeatChapter"){var h,a=(h=hdT(R.LO()))==null?void 0:h.vV(),J;h=(J=R.getVideoData())==null?void 0:J.XJ;a instanceof g.Uw&&h&&(J=h[E7(h,R.sP.startTimeMs)],a.renderChapterSeekingAnimation(0,J.title));isNaN(Number(R.sP.loopCount))?R.sP.loopCount=0:R.sP.loopCount++;R.sP.loopCount===1&&R.Xo.WG("innertubeCommand",R.getVideoData().jH)}a={RT:"application_loopRangeStart"};if(R.sP.type=== "clips"||R.sP.type==="shortsLoop")a.seekSource=58;F.seekTo(R.sP.startTimeMs*.001,a)}}; sEi=function(R,F){var h=R.Xo.getAvailablePlaybackRates();F=Number(F.toFixed(2));R=h[0];h=h[h.length-1];F<=R?F=R:F>=h?F=h:(R=Math.floor(F*100+.001)%5,F=R===0?F:Math.floor((F-R*.01)*100+.001)/100);return F}; mH=function(R,F){F=R.YO({playerType:F});if(!F)return R.Ui.B.R3();F=L9(R,F);return XQ(R,F.R3(),F)}; XQ=function(R,F,h){if(R.Qs(h)&&(h=h.getVideoData(),!ey(R))){R=R.Z1;for(var a=g.N(R.D),J=a.next();!J.done;J=a.next())if(J=J.value,h.Jp===J.Jp){F+=J.Zf/1E3;break}a=F;R=g.N(R.D);for(J=R.next();!J.done;J=R.next()){J=J.value;if(h.Jp===J.Jp)break;var M=J.Zf/1E3;if(M1&&(J=!1);if(!R.ju||J!==F){h=h.lock(J?"portrait":"landscape");if(h!=null)h["catch"](function(){}); R.ju=!0}}else R.ju&&(R.ju=!1,h.unlock())}; K9=function(R,F,h){R.Xo.publish(F,h);var a=g.Y0(R.uu)||g.Uk(R.uu)||g.b5(R.uu);if(h&&a){switch(F){case "cuerangemarkersupdated":var J="onCueRangeMarkersUpdated";break;case "cuerangesadded":J="onCueRangesAdded";break;case "cuerangesremoved":J="onCueRangesRemoved"}J&&R.Xo.WG(J,h.map(function(M){return{getId:function(){return this.id}, end:M.end,id:M.getId(),namespace:M.namespace==="ad"?"ad":"",start:M.start,style:M.style,visible:M.visible}}))}}; te=function(R,F,h,a,J,M){h=h===void 0?!0:h;var v=R.YO({playerType:J});if(!v||(v.getPlayerType()!==2||R.Qs(v))&&!g.uR(v.getVideoData())){var I=R.Ui.GT;I?I.seekTo(F,{kq:!h,Nc:a,RT:"application",seekSource:M}):(v&&v===R.pO()&&R.sP&&!fsm(R,F)&&R.setLoopRange(null),R.seekTo(F,h,a,J,M))}}; DPT=function(R,F,h,a){h&&(R.sJ(),NA(R));h=R.bu();h.NR(F);var J=R.getVideoData(),M={};M.video_id=J.videoId;M.adformat=J.adFormat;J.isLivePlayback||(M.start=h.getCurrentTime(),M.resume="1");J.isLivePlayback&&TT(J)&&g.BW(R.uu)&&(M.live_utc_start=h.oz(),M.resume="1");J.fI&&(M.vvt=J.fI);J.S&&(M.vss_credentials_token=J.S,M.vss_credentials_token_type=J.H4);J.oauthToken&&(M.oauth_token=J.oauthToken);M.autoplay=1;M.reload_count=J.YH+1;M.reload_reason=F;J.A7&&(M.unplugged_partner_opt_out=J.A7);J.W1&&(M.ypc_is_premiere_trailer= J.W1);J.playerParams&&(M.player_params=J.playerParams);R.loadVideoByPlayerVars(M,void 0,!0,void 0,void 0,a);F==="signature"&&R.Hc&&HCL(R)}; VF2=function(R,F){R.Bc().autonavState=F;g.fn("yt-player-autonavstate",F);R.Xo.publish("autonavchange",F)}; UPi=function(R){var F=R.getVideoData().Vw,h=R.uu.uY,a=R.isInline()&&!R.getVideoData().JZ,J=R.mediaElement;F||h||a?J.Zz():(J.j8(),Sy(R,R.wl))}; n9=function(R){var F=Sc(R.LO());F&&F.created&&(R.logger.debug("reset ad module"),F.destroy())}; ey=function(R){return R.getVideoData().enableServerStitchedDai&&!!R.Hc}; CrI=function(R,F){F.bounds=R.getBoundingClientRect();for(var h=g.N(["display","opacity","visibility","zIndex"]),a=h.next();!a.done;a=h.next())a=a.value,F[a]=lX(R,a);F.hidden=!!R.hidden}; UBI=function(R){var F=R.webPlayerContextConfig.trustedJsUrl;return F?Ai(F).toString():R.webPlayerContextConfig.jsUrl}; c6i=function(R,F){var h=R.YO({playerType:1});if(h){if(h.getVideoData().clientPlaybackNonce===F)return h;if((R=R.pB.B)&&R.getVideoData().clientPlaybackNonce===F)return R}return null}; iCL=function(R){function F(a){return jI(tyL(R.JT),function(J){return J.uK(a)})} R.rW.tick("wasm_s");R.uu.AT=I9L(R.webPlayerContextConfig.wasmModuleUrl,fkm(R.JT)?F:void 0,R.W2.bind(R));var h;(h=R.uu.AT)==null||jI(h,function(a){R.uu.IR=a;R.rW.tick(a.B?"wasm_fa":"wasm_fw")},function(){R.uu.AT=void 0; R.rW.tick("wasm_ferr")})}; WVL=function(R){return R.name==="TypeError"&&R.stack.includes("/s/player/")&&Xf()<=105}; RgB=function(R){return R.isTimeout?"NO_BID":"ERR_BID"}; FJm=function(){var R=null;ZVf().then(function(F){return R=F},function(F){return R=RgB(F)}); return R}; hg2=function(){var R=XN(1E3,"NO_BID");return g.SV(D1_([ZVf(),R]).eK(RgB),function(){R.cancel()})}; l0=function(R){return R.xO?g.XB(g.oA(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Dk=function(R){this.player=R;this.K=this.B=1}; M42=function(R,F,h,a,J,M){F.client||(F.client={});R.player.W().X("h5_remove_url_for_get_ad_break")||(F.client.originalUrl=h);var v=J3(h),I=g.I8(h)?!1:!0;(v||I)&&typeof Intl!=="undefined"&&(F.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);I=g.I8(h)?!1:!0;if(v||I||a!==""){var w={};h=ck(Iz(a)).split("&");var E=new Map;h.forEach(function(B){B=B.split("=");B.length>1&&E.set(B[0].toString(),decodeURIComponent(B[1].toString()))}); E.has("bid")&&(w.bid=E.get("bid"));w.params=[];agL.forEach(function(B){E.has(B)&&(B={key:B,value:E.get(B)},w.params.push(B))}); JWa(R,w);F.adSignalsInfo=w}F.client.unpluggedAppInfo||(F.client.unpluggedAppInfo={});F.client.unpluggedAppInfo.enableFilterMode=!1;h=J.B.cosver;h!=null&&h!=="cosver"&&(F.client.osVersion=h);h=J.B.cplatform;h!=null&&h!=="cplatform"&&h!==""&&(F.client.platform=h);h=J.B.cmodel;h!=null&&h!=="cmodel"&&(F.client.deviceModel=h);h=J.B.cplayer;h!=null&&h!=="cplayer"&&(F.client.playerType=h);h=J.B.cbrand;h!=null&&h!=="cbrand"&&(F.client.deviceMake=h);F.user||(F.user={});F.user.lockedSafetyMode=!1;(J.X("embeds_web_enable_iframe_api_send_full_embed_url")|| J.X("embeds_enable_autoplay_and_visibility_signals"))&&g.V9(J)&&v_T(F,M,R.player.getPlayerState(1))}; G5i=function(R,F){var h=!1;if(F==="")return h;F.split(",").forEach(function(a){var J={},M={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},v="ACTIVE";a[0]==="!"&&(a=a.substring(1),v="INACTIVE");a=a.split("-");a.length<3||(a[0]in vvf&&(M.clientName=vvf[a[0]]),a[1]in gvm&&(M.platform=gvm[a[1]]),M.applicationState=v,M.clientVersion=a.length>2?a[2]:"",J.remoteClient=M,R.remoteContexts?R.remoteContexts.push(J):R.remoteContexts=[J],h=!0)}); return h}; i0I=function(R){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in IgT))return!1;R=R.split(RegExp("[:&]"));var F=IgT.FLAG_AUTO_CAPTIONS_DEFAULT_ON,h="f"+(1+Math.floor(F/31)).toString();F=1<=2?v[1]:"";var I=Evg.test(F),w=BcT.exec(F);w=w!=null&&w.length>=2?w[1]:"";var E=rW2.exec(F);E=E!=null&&E.length>=2&&!Number.isNaN(Number(E[1]))?Number(E[1]):1;var B=YBa.exec(F);B=B!=null&&B.length>=2?B[1]:"0";var r=RX(R.player.W().OJ),Y=R.player.getVideoData(1),p=g.l5(Y.Sl,!0),k="BISCOTTI_ID"in h?h.BISCOTTI_ID:"";M42(R,p,F,k.toString(),R.player.W(), Y);Y={splay:!1,lactMilliseconds:h.LACT.toString(),playerHeightPixels:Math.trunc(h.P_H),playerWidthPixels:Math.trunc(h.P_W),vis:Math.trunc(h.VIS),signatureTimestamp:20264,autonavState:l0(R.player.W())};a&&(a={},G5i(a,h.YT_REMOTE)&&(Y.mdxContext=a));if(a=svL.includes(r)?void 0:g.Sn("PREF")){for(var H=a.split(RegExp("[:&]")),T=0,Z=H.length;T1&&b[1].toUpperCase()==="TRUE"){p.user.lockedSafetyMode=!0;break}}Y.autoCaptionsDefaultOn= i0I(a)}F=pA_.exec(F);(F=F!=null&&F.length>=2?F[1]:"")&&w&&(p.user.credentialTransferTokens=[{token:F,scope:"VIDEO"}]);F={contentPlaybackContext:Y};v={adBlock:Math.trunc(h.AD_BLOCK),params:v,breakIndex:E,breakPositionMs:B,clientPlaybackNonce:h.CPN,topLevelDomain:r,isProxyAdTagRequest:I,context:p,adSignalsInfoString:ck(Iz(k.toString())),overridePlaybackContext:F};J!==void 0&&(v.cueProcessedMs=Math.round(J).toString());w&&(v.videoId=w);h.LIVE_TARGETING_CONTEXT&&(v.liveTargetingParams=h.LIVE_TARGETING_CONTEXT); h.AD_BREAK_LENGTH&&(v.breakLengthMs=Math.trunc(h.AD_BREAK_LENGTH*1E3).toString());M&&(v.driftFromHeadMs=M.toString());v.currentMediaTimeMs=Math.round(R.player.getCurrentTime(1)*1E3);(R=R.player.getGetAdBreakContext())&&(v.getAdBreakContext=R);return v}; Qvf=function(){Dk.apply(this,arguments)}; $c7=function(R,F,h,a,J){var M=h.ol;var v=h.kO;var I=R.player.W().yD,w=0;h.cueProcessedMs&&v&&!M&&(h=v.end-v.start,h>0&&(w=Math.floor(h/1E3)));var E={AD_BLOCK:J,AD_BREAK_LENGTH:M?M.Rz:w,AUTONAV_STATE:l0(R.player.W()),CA_TYPE:"image",CPN:R.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:R.player.AI()*1E3,LACT:$G(),LIVE_INDEX:M?R.K++:1,LIVE_TARGETING_CONTEXT:M&&M.context?M.context:"",MIDROLL_POS:v?Math.round(v.start/1E3):0,MIDROLL_POS_MS:v?Math.round(v.start):0,VIS:R.player.getVisibilityState(), P_H:R.player.xo().dl().height,P_W:R.player.xo().dl().width,YT_REMOTE:I?I.join(","):""},B=G6(gb);Object.keys(B).forEach(function(r){B[r]!=null&&(E[r.toUpperCase()]=B[r].toString())}); a!==""&&(E.BISCOTTI_ID=a);a={};v6(F)&&(a.sts="20264",(R=R.player.W().forcedExperiments)&&(a.forced_experiments=R));return az(g.fD(F,E),a)}; AWi=function(R,F){var h=R.player.W(),a,J=(a=R.player.getVideoData(1))==null?void 0:a.oauthToken;return g.Qj(h,J).then(function(M){if(M&&Ml()){var v=lm();D4(v,M)}return g.bN(R.player.kL(v),F,"/youtubei/v1/player/ad_break").then(function(I){return I})})}; xcI=function(R){this.cG=R}; NcO=function(R){this.U=R}; H0f=function(R){this.cG=R}; Tcf=function(R){g.d.call(this);this.B=R;this.Pz=LJO(this)}; LJO=function(R){var F=new y_L(R.B.yd);g.z(R,F);R=[new xcI(R.B.cG),new NcO(R.B.U),new H0f(R.B.cG),new kH(R.B.hI,R.B.C7),new $H,new Nu(R.B.Bf,R.B.LS,R.B.cG),new QP,new p6];R=g.N(R);for(var h=R.next();!h.done;h=R.next())qY2(F,h.value);R=g.N(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(h=R.next();!h.done;h=R.next())Ab(F,h.value,function(){}); return F}; Vs=function(R){var F=R.qQ,h=R.pI;R=R.DN;var a=new tTm,J={yz:new LUL(F.get(),h),pI:h};return{lY:new Au(h,R,F,J),context:J,bT:a}}; U2=function(R,F,h,a,J){g.d.call(this);this.D=F;this.rA=h;this.qQ=a;this.Iz=J;this.listeners=[];var M=new Hv(this);g.z(this,M);M.T(R,"internalAbandon",this.poQ);this.addOnDisposeCallback(function(){g.TP(M)})}; C9=function(R){this.U=R;this.adVideoId=this.B=this.videoId=this.adCpn=this.contentCpn=null;this.N=!0;this.D=this.K=!1;this.adFormat=null;this.L="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; yWO=function(R){R.contentCpn=null;R.adCpn=null;R.videoId=null;R.adVideoId=null;R.adFormat=null;R.L="AD_PLACEMENT_KIND_UNKNOWN";R.actionType="unknown_type";R.K=!1;R.D=!1}; qBf=function(R,F){R=g.N(F);for(F=R.next();!F.done;F=R.next())if((F=F.value.renderer)&&(F.instreamVideoAdRenderer||F.linearAdSequenceRenderer||F.sandwichedLinearAdRenderer||F.instreamSurveyAdRenderer)){Hf("ad_i");g.L4({isMonetized:!0});break}}; fgi=function(R){var F;(F=R.U.getVideoData(1))!=null&&F.KI&&(R.D=!1,F={},R.B&&R.videoId&&(F.cttAuthInfo={token:R.B,videoId:R.videoId}),TQ("video_to_ad",F))}; Gb=function(R){R.D=!1;var F={};R.B&&R.videoId&&(F.cttAuthInfo={token:R.B,videoId:R.videoId});TQ("ad_to_video",F);jvO(R)}; jvO=function(R){if(R.K)if(R.L==="AD_PLACEMENT_KIND_START"&&R.actionType==="video_to_ad")A9("video_to_ad");else{var F={adBreakType:eS(R.L),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:R.videoStreamType};R.actionType==="ad_to_video"?(R.contentCpn&&(F.targetCpn=R.contentCpn),R.videoId&&(F.targetVideoId=R.videoId)):(R.adCpn&&(F.targetCpn=R.adCpn),R.adVideoId&&(F.targetVideoId=R.adVideoId));R.adFormat&&(F.adType=R.adFormat);R.contentCpn&& (F.clientPlaybackNonce=R.contentCpn);R.videoId&&(F.videoId=R.videoId);R.adCpn&&(F.adClientPlaybackNonce=R.adCpn);R.adVideoId&&(F.adVideoId=R.adVideoId);g.L4(F,R.actionType);R.U.W().experiments.jl("html5_ads_csi_qoes")&&(F=R.U.rY(R.actionType==="ad_to_video"?1:2),F=(0,g.NU)()-1E3*F,qH("qoes",F,R.actionType))}}; c8=function(R){g.d.call(this);this.U=R;this.B=new Map;this.D=new Hv(this);g.z(this,this.D);this.D.T(this.U,g.lz("ad"),this.onCueRangeEnter,this);this.D.T(this.U,g.Dq("ad"),this.onCueRangeExit,this)}; Z0m=function(R,F,h,a,J,M){g.KI.call(this,F,h,{id:R,namespace:"ad",priority:J,visible:a,associatedClipId:M})}; W8=function(R){this.U=R}; b07=function(R,F){R.U.cueVideoByPlayerVars(F,2)}; RY=function(R){this.U=R}; F0=function(R){this.U=R;g.RI(this.U.W().experiments,"tv_pacf_logging_sample_rate")}; SBL=function(R){return oI(R,"html5_ssap_play_cached_preroll")}; iW=function(R,F){F=F===void 0?!1:F;return R.U.W().X("html5_ssap_force_ads_ctmp")?!0:(F||R.U.W().Po())&&R.U.W().X("html5_ssap_pacf_qoe_ctmp")}; hm=function(R){var F;return(F=R.U.getVideoData(1)==null?void 0:!1)!=null?F:!1}; oI=function(R,F){return R.U.W().X(F)}; O0f=function(R){return R.U.W().X("substitute_ad_cpn_macro_in_ssdai")}; eO=function(R){var F,h,a;return((F=R.U.getVideoData(1).getPlayerResponse())==null?void 0:(h=F.playerConfig)==null?void 0:(a=h.daiConfig)==null?void 0:a.enableServerStitchedDai)||!1}; oHi=function(R){return R.U.W().X("html5_enable_vod_slar_with_notify_pacf")}; mcL=function(R){return R.U.W().X("html5_recognize_predict_start_cue_point")}; pe=function(R){return R.U.W().experiments.jl("enable_desktop_player_underlay")}; ov_=function(R){return R.U.W().experiments.jl("html5_load_empty_player_in_media_break_sub_lra")}; Cv=function(R){return R.U.W().experiments.jl("html5_load_ads_instead_of_cue")}; c1=function(R){return R.U.W().experiments.jl("html5_preload_ads")}; XAO=function(R){return R.U.W().experiments.jl("should_ignore_cuepoints_during_lifa_preroll")}; rE=function(R){return R.U.W().experiments.jl("enable_ads_control_flow_deterministic_id_generation")}; egT=function(R){return R.U.W().experiments.jl("enable_desktop_discovery_video_abandon_pings")||g.Gy(R.U.W())}; nvL=function(R){return R.U.W().experiments.jl("enable_progres_commands_lr_feeds")}; ne=function(R){return R.U.W().experiments.jl("html5_cuepoint_identifier_logging")}; zbL=function(R){R=R.U.getVideoData(1);return!!R&&R.X("html5_preload_first_vod_video_ad")&&!R.isDaiEnabled()&&!R.isLivePlayback}; uEm=function(R){return R.U.W().experiments.jl("html5_ssdai_enable_media_end_cue_range")}; dc_=function(R){switch(R){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}}; Pqi=function(){g.h0.call(this);var R=this;this.B={};this.addOnDisposeCallback(function(){for(var F=g.N(Object.keys(R.B)),h=F.next();!h.done;h=F.next())delete R.B[h.value]})}; aY=function(){if(zgL===null){zgL=new Pqi;$z(tN).D="b";var R=$z(tN),F=ep(R)=="h"||ep(R)=="b",h=!(hS(),!1);F&&h&&(R.N=!0,R.S=new BX_)}return zgL}; KJ7=function(R,F,h){R.B[F]=h}; t4O=function(R){switch(R){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}}; Jm=function(R,F,h){this.rA=R;this.U=F;this.pI=h;this.D=new Set;this.B=new Map;aY().subscribe("adactiveviewmeasurable",this.rO,this);aY().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ax,this);aY().subscribe("adviewableimpression",this.S3,this);aY().subscribe("adaudioaudible",this.GJ,this);aY().subscribe("adaudiomeasurable",this.Ur,this)}; vF=function(R,F,h){var a=h.j4,J=h.NL,M=h.listener,v=h.Sh;h=h.Ha===void 0?!1:h.Ha;if(R.B.has(F))gf("Unexpected registration of layout in LidarApi");else{if(v){if(R.D.has(v))return;R.D.add(v)}R.B.set(F,M);LM(hS().Gn,"fmd",1);Nj_($z(tN),a);var I=h?F:void 0;KJ7(aY(),F,{X0:function(){if(!J)return{};var w=R.U.getPresentingPlayerType(!0),E;return(E=R.U.getVideoData(w))!=null&&E.isAd()?{currentTime:R.rA.get().getCurrentTimeSec(w,!1,I),duration:J,isPlaying:Mj(R.rA.get(),w).isPlaying(),isVpaid:!1,isYouTube:!0, volume:R.rA.get().isMuted()?0:R.rA.get().getVolume()/100}:{}}})}}; gg=function(R,F){R.B.has(F)?(R.B.delete(F),delete aY().B[F]):gf("Unexpected unregistration of layout in LidarApi")}; lgI=function(R,F){if(R.U.isLifaAdPlaying()){var h=R.U.c9(!0,!0);R.u2(F,h.width*.5*1.1,h.height*.25*1.1,h.width*.5*.9,h.height*.5*.9)}}; Ucf=function(R,F,h){var a={};DcT(R,a,F,h);V4a(a);a.LACT=GG(function(){return $G().toString()}); a.VIS=GG(function(){return R.getVisibilityState().toString()}); a.SDKV="h.3.0";a.VOL=GG(function(){return R.isMuted()?"0":Math.round(R.getVolume()).toString()}); a.VED="";return a}; Cqi=function(R,F){var h={};if(F||!R||!R.kind)return h;if(R.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||R.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!R.adTimeOffset||!R.adTimeOffset.offsetStartMilliseconds)return g.y7(Error("malformed AdPlacementConfig")),h;h.MIDROLL_POS=GG(Z2(Math.round(SW(R.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else h.MIDROLL_POS=GG(Z2("0"));return h}; GG=function(R){return{toString:function(){return R()}}}; cWn=function(R,F,h){function a(I,w){(w=h[w])&&(M[I]=w)} function J(I,w){(w=h[w])&&(M[I]=v(w))} if(!h||g.BV(h))return R;var M=Object.assign({},R),v=F?encodeURIComponent:function(I){return I}; J("DV_VIEWABILITY","doubleVerifyViewability");J("IAS_VIEWABILITY","integralAdsViewability");J("MOAT_INIT","moatInit");J("MOAT_VIEWABILITY","moatViewability");a("GOOGLE_VIEWABILITY","googleViewability");a("VIEWABILITY","viewability");return M}; DcT=function(R,F,h,a){F.CPN=GG(function(){var J;(J=R.getVideoData(1))?J=J.clientPlaybackNonce:(g.qN(Error("Video data is null.")),J=null);return J}); F.AD_MT=GG(function(){if(a!=null)var J=a;else{var M=h;R.W().X("html5_ssap_use_cpn_to_get_time")||(M=void 0);if(R.W().X("enable_h5_shorts_ad_fill_ad_mt_macro")||R.W().X("enable_desktop_discovery_pings_ad_mt_macro")||g.Gy(R.W())){var v=R.getPresentingPlayerType(!0),I;J=((I=R.getVideoData(v))==null?0:I.isAd())?WJ2(R,v,M):0}else J=WJ2(R,2,M)}return RRL(J)}); F.MT=GG(function(){return RRL(R.getCurrentTime(1,!1))}); F.P_H=GG(function(){return R.xo().dl().height.toString()}); F.P_W=GG(function(){return R.xo().dl().width.toString()}); F.PV_H=GG(function(){return R.xo().getVideoContentRect().height.toString()}); F.PV_W=GG(function(){return R.xo().getVideoContentRect().width.toString()})}; RRL=function(R){return Math.round(Math.max(0,R*1E3)).toString()}; V4a=function(R){R.CONN=GG(Z2("0"));R.WT=GG(function(){return Date.now().toString()})}; WJ2=function(R,F,h){return h!==void 0?R.getCurrentTime(F,!1,h):R.getCurrentTime(F,!1)}; F0O=function(){}; hRn=function(R,F,h,a,J){var M,v,I,w,E,B,r,Y,p,k,H,T,Z;g.u(function(b){switch(b.D){case 1:M=!!F.scrubReferrer;v=g.fD(F.baseUrl,cWn(h,M,a));I={};if(!F.headers){b.G$(2);break}w=R.L();if(!w.B){E=w.getValue();b.G$(3);break}return g.m(b,w.B,4);case 4:E=b.B;case 3:B=E;r=g.N(F.headers);for(Y=r.next();!Y.done;Y=r.next())switch(p=Y.value,p.headerType){case "VISITOR_ID":g.Kp("VISITOR_DATA")&&(I["X-Goog-Visitor-Id"]=g.Kp("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Kp("EOM_VISITOR_DATA")&&(I["X-Goog-EOM-Visitor-Id"]= g.Kp("EOM_VISITOR_DATA"));break;case "USER_AUTH":B&&(I.Authorization="Bearer "+B);break;case "PLUS_PAGE_ID":(k=R.N())&&(I["X-Goog-PageId"]=k);break;case "AUTH_USER":H=R.B();!B&&H&&(I["X-Goog-AuthUser"]=H);break;case "DATASYNC_ID":if(T=void 0,(T=R.K())==null?0:T.jl("enable_datasync_id_header_in_web_vss_pings"))Z=R.D(),J3(v)&&g.Kp("LOGGED_IN")&&Z&&(I["X-YouTube-DataSync-Id"]=Z)}"X-Goog-EOM-Visitor-Id"in I&&"X-Goog-Visitor-Id"in I&&delete I["X-Goog-Visitor-Id"];case 2:g.Sl(v,void 0,M,Object.keys(I).length!== 0?I:void 0,"",!0,J),g.Na(b)}})}; aGT=function(R,F,h,a,J){this.L=R;this.N=F;this.B=h;this.D=a;this.K=J}; JZL=function(R,F){this.B=R;this.pI=F}; IY=function(R,F,h,a,J,M,v){var I=I===void 0?new aGT(function(){var w=R.W(),E=R.getVideoData(1);return g.Qj(w,E?g.Wr(E):"")},function(){return R.W().pageId},function(){return R.W().KI},function(){var w; return(w=R.W().datasyncId)!=null?w:""},function(){return R.W().experiments}):I; this.U=R;this.D=F;this.KO=h;this.qQ=a;this.lY=J;this.pI=M;this.bT=v;this.L=I;this.ox=null;this.B=new Map;this.K=new JZL(I,this.pI)}; v2g=function(R,F,h,a,J){var M=Dp(R.D.get(),h);M?(h=se(R,MgO(M),M,void 0,void 0,a),F.hasOwnProperty("baseUrl")?R.L.send(F,h):R.K.send(F,h,{},J)):gf("Trying to ping from an unknown layout",void 0,void 0,{layoutId:h})}; OxI=function(R,F,h,a,J,M){a=a===void 0?[]:a;var v=Dp(R.D.get(),F);if(v){var I=R.KO.get().FJ(F,h),w=se(R,MgO(v),v,J,M);a.forEach(function(E,B){E.baseUrl&&(R.K.send(E.baseUrl,w,I,E.attributionSrcMode),E.serializedAdPingMetadata&&R.lY.HR("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,v,new B52(E,B),void 0,void 0,v.adLayoutLoggingData))})}else gf("Trying to track from an unknown layout.",void 0,void 0,{layoutId:F, trackingType:h})}; Ii=function(R,F){R.U.sendVideoStatsEngageEvent(F,void 0,2)}; s5=function(R,F){g.MU("adsClientStateChange",F)}; g2n=function(R,F){R.B.has(F.RA())?gf("Trying to register an existing AdErrorInfoSupplier."):R.B.set(F.RA(),F)}; G_L=function(R,F){R.B.delete(F.RA())||gf("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; QJ=function(R,F,h){typeof h==="string"?R.U.getVideoData(1).V4(F,h):R.U.getVideoData(1).dA(F,h)}; MgO=function(R){var F=lt(R.clientMetadata,"metadata_type_ad_placement_config");R=lt(R.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:F,zR:R}}; se=function(R,F,h,a,J,M){var v=h?IGm(R):{},I=h?iHf(R,h.layoutId):{},w=wtI(R),E,B=J!=null?J:(E=Oc(R.qQ.get(),2))==null?void 0:E.clientPlaybackNonce;J=void 0;if(h){var r;if((r=R.bT.B.get(h.layoutId))==null?0:r.Ha)J=h.layoutId}r={};R=Object.assign({},Ucf(R.U,J,a),Cqi(F.adPlacementConfig,(h==null?void 0:h.renderingContent)!==void 0),I,v,w,(r.FINAL=GG(function(){return"1"}),r.AD_CPN=GG(function(){return B||""}),r)); (h==null?void 0:h.renderingContent)!==void 0||(R.SLOT_POS=GG(function(){return(F.zR||0).toString()})); h={};M=Object.assign({},R,M);R=g.N(Object.values(E2B));for(a=R.next();!a.done;a=R.next())a=a.value,v=M[a],v!=null&&v.toString()!=null&&(h[a]=v.toString());return h}; IGm=function(R){var F={},h,a=(h=R.ox)==null?void 0:h.d4/1E3;a!=null&&(F.SURVEY_ELAPSED_MS=GG(function(){return Math.round(a*1E3).toString()})); F.SURVEY_LOCAL_TIME_EPOCH_S=GG(function(){return Math.round(Date.now()/1E3).toString()}); return F}; iHf=function(R,F){R=R.B.get(F);if(!R)return{};R=R.AA();if(!R)return{};F={};return F.YT_ERROR_CODE=R.wr.toString(),F.ERRORCODE=R.Rx.toString(),F.ERROR_MSG=R.errorMessage,F}; wtI=function(R){var F={},h=R.U.getVideoData(1);F.ASR=GG(function(){var a;return(a=h==null?void 0:h.CP)!=null?a:null}); F.EI=GG(function(){var a;return(a=h==null?void 0:h.eventId)!=null?a:null}); return F}; iT=function(R,F,h){g.d.call(this);this.U=R;this.Ii=F;this.pI=h;this.listeners=[];this.BM=null;this.T9=new Map;F=new g.xK(this);g.z(this,F);F.T(R,"videodatachange",this.mHn);F.T(R,"serverstitchedvideochange",this.Wz$);this.al=Oc(this)}; Oc=function(R,F){var h=R.U.getVideoData(F);return h?R.tZ(h,F||R.U.getPresentingPlayerType(!0)):null}; Bmn=function(R,F,h){var a=R.tZ(F,h);R.al=a;R.listeners.forEach(function(J){J.y8(a)})}; rZi=function(R){switch(R){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}}; wg=function(R,F,h){g.d.call(this);this.U=R;this.qQ=F;this.pI=h;this.listeners=[];this.Af=[];this.B=function(){gf("Called 'doUnlockPreroll' before it's initialized.")}; F=new Hv(this);h=new g.xK(this);g.z(this,h);g.z(this,F);F.T(R,"progresssync",this.Apt);F.T(R,"presentingplayerstatechange",this.Vwb);F.T(R,"fullscreentoggled",this.onFullscreenToggled);F.T(R,"onVolumeChange",this.onVolumeChange);F.T(R,"minimized",this.v7);F.T(R,"overlayvisibilitychange",this.Je);F.T(R,"shortsadswipe",this.I3);F.T(R,"resize",this.ew);h.T(R,g.lz("appad"),this.Y7)}; ET=function(R){hm(R.pI.get())||R.B()}; Yza=function(R,F){R.Af=R.Af.filter(function(h){return h!==F})}; BF=function(R,F,h){return R.getCurrentTimeSec(F,h)}; rg=function(R,F){var h;F=(h=R.qQ.get().T9.get(F))!=null?h:null;if(F===null)return gf("Expected ad video start time on playback timeline"),0;R=R.U.getCurrentTime(2,!0);return R0){var M=F.end.toString();J.forEach(function(v){(v=v.config&&v.config.adPlacementConfig)&&v.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&v.adTimeOffset&&v.adTimeOffset.offsetEndMilliseconds==="-1"&&v.adTimeOffset.offsetEndMilliseconds!==M&&(v.adTimeOffset.offsetEndMilliseconds=M)}); a.map(function(v){return g.t(v,hQ)}).forEach(function(v){var I; (v=v==null?void 0:(I=v.slotEntryTrigger)==null?void 0:I.mediaTimeRangeTrigger)&&v.offsetEndMilliseconds==="-1"&&(v.offsetEndMilliseconds=M)})}return{b2:J, adSlots:a,O5:!1,ssdaiAdsConfig:R.ssdaiAdsConfig}}; Qr=function(R){g.d.call(this);this.U=R;this.listeners=[];this.B=new Hv(this);g.z(this,this.B);this.B.T(this.U,"aduxclicked",this.onAdUxClicked);this.B.T(this.U,"aduxmouseover",this.kB);this.B.T(this.U,"aduxmouseout",this.q7);this.B.T(this.U,"muteadaccepted",this.rbQ)}; $VO=function(R,F,h){F=g.p1(F,function(a){return new PHn(a,h,a.id)}); R.U.WG("onAdUxUpdate",F)}; $p=function(R,F){R=g.N(R.listeners);for(var h=R.next();!h.done;h=R.next())F(h.value)}; Am=function(R,F){this.D=R;this.K=F===void 0?!1:F;this.B={}}; AZi=function(R,F){var h=R.startSecs+R.Rz;h=h<=0?null:h;if(h===null)return null;switch(R.event){case "start":case "continue":case "stop":break;case "predictStart":if(F)break;return null;default:return null}F=Math.max(R.startSecs,0);return{sB:new A$(F,h),DI:new MG(F,h-F,R.context,R.identifier,R.event,R.B)}}; xVf=function(){this.B=[]}; ZPn=function(R,F,h){var a=g.Ph(R.B,F);if(a>=0)return F;F=-a-1;return F>=R.B.length||R.B[F]>h?null:R.B[F]}; xp=function(R,F,h){g.d.call(this);this.U=R;this.pI=F;this.cG=h;this.listeners=[];this.L=!1;this.qX=[];this.B=null;this.N=new Am(this,mcL(F.get()));this.K=new xVf;this.D=null}; Nm_=function(R,F){R.qX.push(F);for(var h=!1,a=g.N(R.listeners),J=a.next();!J.done;J=a.next())h=J.value.ao(F)||h;R.L=h;ne(R.pI.get())&&QJ(R.cG.get(),"onci","cpi."+F.identifier+";cpe."+F.event+";cps."+F.startSecs+";cbi."+h)}; L0f=function(R,F){s5(R.cG.get(),{cuepointTrigger:{event:HHI(F.event),cuepointId:F.identifier,totalCueDurationMs:F.Rz*1E3,playheadTimeMs:F.B,cueStartTimeMs:F.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:R.U.getVideoData(1).clientPlaybackNonce}})}; HHI=function(R){switch(R){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 wU(R,"Unexpected cuepoint event")}}; Nj=function(R){this.U=R}; HF=function(R){this.U=R}; TmL=function(R){switch(R){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:wU(R,"unknown transitionReason")}}; Lk=function(){g.d.apply(this,arguments)}; yZi=function(R){this.U=R}; qzi=function(R,F,h,a,J){g.d.call(this);var M=this,v=fI(function(){return new Bl(M.pI)}); g.z(this,v);var I=fI(function(){return new Yh(v,M.pI)}); g.z(this,I);var w=fI(function(){return new tQ}); g.z(this,w);var E=fI(function(){return new zV(R)}); g.z(this,E);var B=fI(function(){return new pO(v,I,M.pI)}); g.z(this,B);var r=fI(function(){return new xh}); g.z(this,r);this.oT=fI(function(){return new Qr(F)}); g.z(this,this.oT);this.OP=fI(function(){return new Zq(J)}); g.z(this,this.OP);this.fV=fI(function(){return new C9(F)}); g.z(this,this.fV);this.pV=fI(function(){return new c8(F)}); g.z(this,this.pV);this.i$=fI(function(){return new W8(F)}); g.z(this,this.i$);this.yd=fI(function(){return new RY(F)}); g.z(this,this.yd);this.pI=fI(function(){return new F0(F)}); g.z(this,this.pI);var Y=fI(function(){return new kp(a)}); g.z(this,Y);var p=fI(function(){return new Ft(M.pI)}); g.z(this,p);this.l0=fI(function(){return new Nj(F)}); g.z(this,this.l0);this.n7=fI(function(){return new OH}); g.z(this,this.n7);this.qQ=fI(function(){return new iT(F,r,M.pI)}); g.z(this,this.qQ);var k=Vs({qQ:this.qQ,pI:this.pI,DN:p}),H=k.context,T=k.bT;this.lY=k.lY;this.Iz=fI(function(){return new xp(F,M.pI,M.cG)}); g.z(this,this.Iz);this.Ei=fI(function(){return new HF(F)}); g.z(this,this.Ei);this.rA=fI(function(){return new wg(F,M.qQ,M.pI)}); g.z(this,this.rA);this.cf=fI(function(){return new Lk}); g.z(this,this.cf);k=fI(function(){return new O0(v,B,I,M.pI,p,"SLOT_TYPE_ABOVE_FEED",M.rA,M.L$,M.ys)}); g.z(this,k);this.WJ=fI(function(){return new me(M.pI)}); this.KO=fI(function(){return new Jm(M.rA,F,M.pI)}); g.z(this,this.KO);this.cG=fI(function(){return new IY(F,w,M.KO,M.qQ,M.lY,M.pI,T)}); g.z(this,this.cG);this.JV=new d3(uJ,TG,function(b,O,n,K){return s0(I.get(),b,O,n,K)},E,B,I,p,this.pI,this.qQ); g.z(this,this.JV);this.La=new PK(E,k,h,this.pI,R,this.qQ,this.rA,this.fV);g.z(this,this.La);var Z=new U2(F,this.La,this.rA,this.qQ,this.Iz);this.qx=fI(function(){return Z}); this.vK=Z;this.L$=new XT(E,B,this.qx,this.Iz,this.rA,this.pI,this.cG,this.Ei);g.z(this,this.L$);this.t4=new Ke(E,B,this.pV,this.qx,H);g.z(this,this.t4);this.sf=new FT(this.pI,E,B,k,this.qQ,this.t4,h,this.i$);g.z(this,this.sf);this.dE=fI(function(){return new Ri(Y,I,p,M.pI,M.cG,M.rA,M.Ei)}); g.z(this,this.dE);this.L_=fI(function(){return new Fe}); g.z(this,this.L_);this.Dq=new WK(R,this.oT,this.pI);g.z(this,this.Dq);this.Wo=new Rs(R);g.z(this,this.Wo);this.zv=new FP(R);g.z(this,this.zv);this.gL=new as(R,this.qx,H);g.z(this,this.gL);this.j9=new Ju(R,this.pV,this.rA,this.qQ,H);g.z(this,this.j9);this.zp=new Mb(R,this.qQ);g.z(this,this.zp);this.ys=new Ga(R,this.Iz,this.rA,this.cG,this.qx);g.z(this,this.ys);this.Us=new vl(R);g.z(this,this.Us);this.MH=new Eu(R);g.z(this,this.MH);this.Y0=new gE(R);g.z(this,this.Y0);this.EN=new wE(R);g.z(this,this.EN); this.MH=new Eu(R);g.z(this,this.MH);this.iq=fI(function(){return new Vo}); g.z(this,this.iq);this.TL=fI(function(){return new U0(M.rA)}); g.z(this,this.TL);this.AL=fI(function(){return new FUn(M.oT,M.cG,R,w,M.KO)}); g.z(this,this.AL);this.au=fI(function(){return new ee(M.sf,E,v)}); g.z(this,this.au);this.Uw=fI(function(){return new dW(M.pI,M.cG,M.Us,M.KO)}); g.z(this,this.Uw);this.wE=fI(function(){return new Tb(R,M.MH,M.Us,M.qQ,M.Ei,M.rA,M.cf,M.cG,r,M.Iz,M.KO,M.WJ,M.i$,M.pV,M.fV,M.yd,M.OP,M.l0,M.pI,w,H,T)}); g.z(this,this.wE);this.g9=fI(function(){return new Yji(M.rA,M.cG,M.OP,M.pI,M.KO,M.qQ)}); g.z(this,this.g9);this.WA=fI(function(){return new hbn(M.oT,M.rA,M.cG,w,M.KO,M.zv,M.EN,M.OP,M.pI,h)}); g.z(this,this.WA);this.ME=fI(function(){return new hWI(M.oT,M.cG,w)}); g.z(this,this.ME);this.gb=new pk(R,this.n7,v);g.z(this,this.gb);this.qF={Yr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L$],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.JV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.La],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.t4]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dE],["SLOT_TYPE_ABOVE_FEED",this.L_],["SLOT_TYPE_FORECASTING",this.L_], ["SLOT_TYPE_IN_PLAYER",this.L_],["SLOT_TYPE_PLAYER_BYTES",this.L_],["SLOT_TYPE_PLAYER_UNDERLAY",this.L_],["SLOT_TYPE_PLAYBACK_TRACKING",this.L_],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.L_]]),jE:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Dq],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Dq],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Wo],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Wo],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Wo],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Wo],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Wo],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Wo],["TRIGGER_TYPE_CLOSE_REQUESTED",this.zv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gL],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.j9],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.j9],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.j9],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j9],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.j9],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.j9],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.j9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Us],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.gL],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.EN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ys],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.ys],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ys],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ys],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ys]]),yb:new Map([["SLOT_TYPE_ABOVE_FEED",this.iq], ["SLOT_TYPE_AD_BREAK_REQUEST",this.iq],["SLOT_TYPE_FORECASTING",this.iq],["SLOT_TYPE_IN_PLAYER",this.iq],["SLOT_TYPE_PLAYER_BYTES",this.TL],["SLOT_TYPE_PLAYER_UNDERLAY",this.iq],["SLOT_TYPE_PLAYBACK_TRACKING",this.iq],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.iq]]),BO:new Map([["SLOT_TYPE_ABOVE_FEED",this.AL],["SLOT_TYPE_AD_BREAK_REQUEST",this.au],["SLOT_TYPE_FORECASTING",this.Uw],["SLOT_TYPE_PLAYER_BYTES",this.wE],["SLOT_TYPE_PLAYBACK_TRACKING",this.g9],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.g9],["SLOT_TYPE_IN_PLAYER",this.WA],["SLOT_TYPE_PLAYER_UNDERLAY",this.ME]])};this.listeners=[w.get()];this.KF={sf:this.sf,LS:this.pI.get(),tb:this.OP.get(),tS:this.rA.get(),La:this.La,kQ:v.get(),Vo:this.n7.get(),C7:this.Dq,hI:w.get(),Bf:this.qQ.get()}}; fG2=function(R,F,h,a,J){g.d.call(this);var M=this,v=fI(function(){return new Bl(M.pI)}); g.z(this,v);var I=fI(function(){return new Yh(v,M.pI)}); g.z(this,I);var w=fI(function(){return new tQ}); g.z(this,w);var E=fI(function(){return new zV(R)}); g.z(this,E);var B=fI(function(){return new pO(v,I,M.pI)}); g.z(this,B);var r=fI(function(){return new xh}); g.z(this,r);this.oT=fI(function(){return new Qr(F)}); g.z(this,this.oT);this.OP=fI(function(){return new Zq(J)}); g.z(this,this.OP);this.fV=fI(function(){return new C9(F)}); g.z(this,this.fV);this.pV=fI(function(){return new c8(F)}); g.z(this,this.pV);this.i$=fI(function(){return new W8(F)}); g.z(this,this.i$);this.yd=fI(function(){return new RY(F)}); g.z(this,this.yd);this.pI=fI(function(){return new F0(F)}); g.z(this,this.pI);var Y=fI(function(){return new kp(a)}); g.z(this,Y);var p=fI(function(){return new Ft(M.pI)}); g.z(this,p);var k=fI(function(){return new O0(v,B,I,M.pI,p,null,null,M.L$,M.ys)}); g.z(this,k);this.l0=fI(function(){return new Nj(F)}); g.z(this,this.l0);this.n7=fI(function(){return new OH}); g.z(this,this.n7);this.qQ=fI(function(){return new iT(F,r,M.pI)}); g.z(this,this.qQ);var H=Vs({qQ:this.qQ,pI:this.pI,DN:p}),T=H.context,Z=H.bT;this.lY=H.lY;this.Iz=fI(function(){return new xp(F,M.pI,M.cG)}); this.rA=fI(function(){return new wg(F,M.qQ,M.pI)}); g.z(this,this.rA);this.cf=fI(function(){return new Lk}); g.z(this,this.cf);this.KO=fI(function(){return new Jm(M.rA,F,M.pI)}); g.z(this,this.KO);this.cG=fI(function(){return new IY(F,w,M.KO,M.qQ,M.lY,M.pI,Z)}); g.z(this,this.cG);this.WJ=fI(function(){return new me(M.pI)}); g.z(this,this.WJ);this.JV=new d3(uJ,TG,function(O,n,K,Rg){return s0(I.get(),O,n,K,Rg)},E,B,I,p,this.pI,this.qQ); g.z(this,this.JV);this.La=new PK(E,k,h,this.pI,R,this.qQ,this.rA,this.fV);g.z(this,this.La);var b=new U2(F,this.La,this.rA,this.qQ,this.Iz);this.qx=fI(function(){return b}); this.vK=b;this.L$=new XT(E,B,this.qx,this.Iz,this.rA,this.pI,this.cG);g.z(this,this.L$);this.t4=new Ke(E,B,this.pV,this.qx,T);g.z(this,this.t4);this.sf=new FT(this.pI,E,B,k,this.qQ,this.t4,h,this.i$);g.z(this,this.sf);this.dE=fI(function(){return new Ri(Y,I,p,M.pI,M.cG,M.rA)}); g.z(this,this.dE);this.L_=fI(function(){return new Fe}); g.z(this,this.L_);this.Dq=new WK(R,this.oT,this.pI);g.z(this,this.Dq);this.Wo=new Rs(R);g.z(this,this.Wo);this.zv=new FP(R);g.z(this,this.zv);this.gL=new as(R,this.qx,T);g.z(this,this.gL);this.j9=new Ju(R,this.pV,this.rA,this.qQ,T);g.z(this,this.j9);this.Us=new vl(R);g.z(this,this.Us);this.Y0=new gE(R);g.z(this,this.Y0);this.EN=new wE(R);g.z(this,this.EN);this.Ei=fI(function(){return new HF(F)}); g.z(this,this.Ei);this.MH=new Eu(R);g.z(this,this.MH);this.ys=new Ga(R,this.Iz,this.rA,this.cG,this.qx);g.z(this,this.ys);this.iq=fI(function(){return new Vo}); g.z(this,this.iq);this.TL=fI(function(){return new U0(M.rA)}); g.z(this,this.TL);this.au=fI(function(){return new ee(M.sf,E,v)}); g.z(this,this.au);this.Uw=fI(function(){return new dW(M.pI,M.cG,M.Us,M.KO)}); g.z(this,this.Uw);this.WA=fI(function(){return new aCn(M.oT,M.rA,M.cG,w,M.KO,M.zv,M.EN,M.OP,M.pI,h)}); g.z(this,this.WA);this.wE=fI(function(){return new yJ(R,M.MH,M.Us,M.cG,M.KO,M.WJ,M.i$,M.qQ,M.rA,M.cf,M.pV,M.fV,M.yd,M.OP,M.l0,M.pI,M.Ei,T,Z)}); g.z(this,this.wE);this.gb=new pk(R,this.n7,v);g.z(this,this.gb);this.qF={Yr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L$],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.JV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.La],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.t4]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dE],["SLOT_TYPE_FORECASTING",this.L_],["SLOT_TYPE_IN_PLAYER",this.L_], ["SLOT_TYPE_PLAYER_BYTES",this.L_]]),jE:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Dq],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Wo],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Wo],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Wo], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Wo],["TRIGGER_TYPE_CLOSE_REQUESTED",this.zv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gL],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j9],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.j9],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.j9],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Us],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gL],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.EN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ys],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.ys],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ys],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ys],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ys]]),yb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iq],["SLOT_TYPE_FORECASTING",this.iq],["SLOT_TYPE_IN_PLAYER",this.iq],["SLOT_TYPE_PLAYER_BYTES",this.TL]]), BO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.au],["SLOT_TYPE_FORECASTING",this.Uw],["SLOT_TYPE_IN_PLAYER",this.WA],["SLOT_TYPE_PLAYER_BYTES",this.wE]])};this.listeners=[w.get()];this.KF={sf:this.sf,LS:this.pI.get(),tb:this.OP.get(),tS:this.rA.get(),La:this.La,kQ:v.get(),Vo:this.n7.get(),C7:this.Dq,hI:w.get(),Bf:this.qQ.get()}}; jbL=function(R,F,h,a,J){g.d.call(this);var M=this,v=fI(function(){return new Bl(M.pI)}); g.z(this,v);var I=fI(function(){return new Yh(v,M.pI)}); g.z(this,I);var w=fI(function(){return new tQ}); g.z(this,w);var E=fI(function(){return new zV(R)}); g.z(this,E);var B=fI(function(){return new pO(v,I,M.pI)}); g.z(this,B);var r=fI(function(){return new xh}); g.z(this,r);this.oT=fI(function(){return new Qr(F)}); g.z(this,this.oT);this.OP=fI(function(){return new Zq(J)}); g.z(this,this.OP);this.fV=fI(function(){return new C9(F)}); g.z(this,this.fV);this.pV=fI(function(){return new c8(F)}); g.z(this,this.pV);this.i$=fI(function(){return new W8(F)}); g.z(this,this.i$);this.yd=fI(function(){return new RY(F)}); g.z(this,this.yd);this.pI=fI(function(){return new F0(F)}); g.z(this,this.pI);var Y=fI(function(){return new kp(a)}); g.z(this,Y);var p=fI(function(){return new Ft(M.pI)}); g.z(this,p);var k=fI(function(){return new O0(v,B,I,M.pI,p,null,null,null,null)}); g.z(this,k);this.l0=fI(function(){return new Nj(F)}); g.z(this,this.l0);this.qQ=fI(function(){return new iT(F,r,M.pI)}); g.z(this,this.qQ);var H=Vs({qQ:this.qQ,pI:this.pI,DN:p}),T=H.context,Z=H.bT;this.lY=H.lY;this.rA=fI(function(){return new wg(F,M.qQ,M.pI)}); g.z(this,this.rA);this.cf=fI(function(){return new Lk}); g.z(this,this.cf);this.KO=fI(function(){return new Jm(M.rA,F,M.pI)}); g.z(this,this.KO);this.cG=fI(function(){return new IY(F,w,M.KO,M.qQ,M.lY,M.pI,Z)}); g.z(this,this.cG);this.WJ=fI(function(){return new me(M.pI)}); g.z(this,this.WJ);this.JV=new d3(uJ,TG,function(O,n,K,Rg){return s0(I.get(),O,n,K,Rg)},E,B,I,p,this.pI,this.qQ); g.z(this,this.JV);this.La=new PK(E,k,h,this.pI,R,this.qQ,this.rA,this.fV);g.z(this,this.La);var b=new U2(F,this.La,this.rA,this.qQ);this.qx=fI(function(){return b}); this.vK=b;this.t4=new Ke(E,B,this.pV,this.qx,T);g.z(this,this.t4);this.sf=new FT(this.pI,E,B,k,this.qQ,this.t4,h,this.i$);g.z(this,this.sf);this.dE=fI(function(){return new Ri(Y,I,p,M.pI,M.cG,M.rA)}); g.z(this,this.dE);this.L_=fI(function(){return new Fe}); g.z(this,this.L_);this.Dq=new WK(R,this.oT,this.pI);g.z(this,this.Dq);this.Wo=new Rs(R);g.z(this,this.Wo);this.gL=new as(R,this.qx,T);g.z(this,this.gL);this.j9=new Ju(R,this.pV,this.rA,this.qQ,T);g.z(this,this.j9);this.Us=new vl(R);g.z(this,this.Us);this.Y0=new gE(R);g.z(this,this.Y0);this.Ei=fI(function(){return new HF(F)}); g.z(this,this.Ei);this.MH=new Eu(R);g.z(this,this.MH);this.iq=fI(function(){return new Vo}); g.z(this,this.iq);this.TL=fI(function(){return new U0(M.rA)}); g.z(this,this.TL);this.au=fI(function(){return new ee(M.sf,E,v)}); g.z(this,this.au);this.Uw=fI(function(){return new dW(M.pI,M.cG,M.Us,M.KO)}); g.z(this,this.Uw);this.A$=fI(function(){return new r0L(M.oT,M.rA,M.cG,w,h,M.pI)}); g.z(this,this.A$);this.wE=fI(function(){return new yJ(R,M.MH,M.Us,M.cG,M.KO,M.WJ,M.i$,M.qQ,M.rA,M.cf,M.pV,M.fV,M.yd,M.OP,M.l0,M.pI,M.Ei,T,Z)}); g.z(this,this.wE);this.qF={Yr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.JV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.La],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.t4]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dE],["SLOT_TYPE_FORECASTING",this.L_],["SLOT_TYPE_IN_PLAYER",this.L_],["SLOT_TYPE_PLAYER_BYTES",this.L_]]),jE:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Dq],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Wo],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Wo],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Wo],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Wo],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gL],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j9],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.j9],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Us],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gL],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MH]]),yb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iq],["SLOT_TYPE_ABOVE_FEED",this.iq],["SLOT_TYPE_FORECASTING",this.iq],["SLOT_TYPE_IN_PLAYER",this.iq],["SLOT_TYPE_PLAYER_BYTES",this.TL]]),BO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.au],["SLOT_TYPE_FORECASTING",this.Uw],["SLOT_TYPE_IN_PLAYER", this.A$],["SLOT_TYPE_PLAYER_BYTES",this.wE]])};this.listeners=[w.get()];this.KF={sf:this.sf,LS:this.pI.get(),tb:this.OP.get(),tS:this.rA.get(),La:this.La,kQ:v.get(),Vo:null,C7:this.Dq,hI:w.get(),Bf:this.qQ.get()}}; ZHI=function(R,F,h,a,J){g.d.call(this);var M=this,v=fI(function(){return new Bl(M.pI)}); g.z(this,v);var I=fI(function(){return new Yh(v,M.pI)}); g.z(this,I);var w=fI(function(){return new tQ}); g.z(this,w);var E=fI(function(){return new zV(R)}); g.z(this,E);var B=fI(function(){return new pO(v,I,M.pI)}); g.z(this,B);var r=fI(function(){return new xh}); g.z(this,r);this.p7=fI(function(){return new yZi(F)}); g.z(this,this.p7);this.oT=fI(function(){return new Qr(F)}); g.z(this,this.oT);this.OP=fI(function(){return new Zq(J)}); g.z(this,this.OP);this.fV=fI(function(){return new C9(F)}); g.z(this,this.fV);this.pV=fI(function(){return new c8(F)}); g.z(this,this.pV);this.i$=fI(function(){return new W8(F)}); g.z(this,this.i$);this.yd=fI(function(){return new RY(F)}); g.z(this,this.yd);this.pI=fI(function(){return new F0(F)}); g.z(this,this.pI);var Y=fI(function(){return new kp(a)}); g.z(this,Y);var p=fI(function(){return new Ft(M.pI)}); g.z(this,p);var k=fI(function(){return new O0(v,B,I,M.pI,p,null,null,null,null)}); g.z(this,k);this.l0=fI(function(){return new Nj(F)}); g.z(this,this.l0);this.qQ=fI(function(){return new iT(F,r,M.pI)}); g.z(this,this.qQ);var H=Vs({qQ:this.qQ,pI:this.pI,DN:p}),T=H.context,Z=H.bT;this.lY=H.lY;this.rA=fI(function(){return new wg(F,M.qQ,M.pI)}); g.z(this,this.rA);this.cf=fI(function(){return new Lk}); g.z(this,this.cf);this.KO=fI(function(){return new Jm(M.rA,F,M.pI)}); g.z(this,this.KO);this.cG=fI(function(){return new IY(F,w,M.KO,M.qQ,M.lY,M.pI,Z)}); g.z(this,this.cG);this.WJ=fI(function(){return new me(M.pI)}); g.z(this,this.WJ);this.JV=new d3(PUf,TG,function(O,n,K,Rg){return EPg(I.get(),O,n,K,Rg)},E,B,I,p,this.pI,this.qQ); g.z(this,this.JV);this.La=new PK(E,k,h,this.pI,R,this.qQ,this.rA,this.fV);g.z(this,this.La);var b=new U2(F,this.La,this.rA,this.qQ);this.qx=fI(function(){return b}); this.vK=b;this.t4=new Ke(E,B,this.pV,this.qx,T);g.z(this,this.t4);this.sf=new FT(this.pI,E,B,k,this.qQ,this.t4,h,this.i$);g.z(this,this.sf);this.dE=fI(function(){return new Ri(Y,I,p,M.pI,M.cG,M.rA)}); g.z(this,this.dE);this.L_=fI(function(){return new Fe}); g.z(this,this.L_);this.Dq=new WK(R,this.oT,this.pI);g.z(this,this.Dq);this.Wo=new Rs(R);g.z(this,this.Wo);this.gL=new as(R,this.qx,T);g.z(this,this.gL);this.j9=new Ju(R,this.pV,this.rA,this.qQ,T);g.z(this,this.j9);this.Us=new vl(R);g.z(this,this.Us);this.Y0=new gE(R);g.z(this,this.Y0);this.Ei=fI(function(){return new HF(F)}); g.z(this,this.Ei);this.MH=new Eu(R);g.z(this,this.MH);this.iq=fI(function(){return new Vo}); g.z(this,this.iq);this.TL=fI(function(){return new U0(M.rA)}); g.z(this,this.TL);this.au=fI(function(){return new ee(M.sf,E,v)}); g.z(this,this.au);this.Uw=fI(function(){return new dW(M.pI,M.cG,M.Us,M.KO)}); g.z(this,this.Uw);this.wE=fI(function(){return new yJ(R,M.MH,M.Us,M.cG,M.KO,M.WJ,M.i$,M.qQ,M.rA,M.cf,M.pV,M.fV,M.yd,M.OP,M.l0,M.pI,M.Ei,T,Z)}); g.z(this,this.wE);this.H6=fI(function(){return new MG2(M.oT,M.rA,M.cG,w,M.p7,h,M.qQ)}); g.z(this,this.H6);this.qF={Yr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.JV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.La],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.t4]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dE],["SLOT_TYPE_FORECASTING",this.L_],["SLOT_TYPE_IN_PLAYER",this.L_],["SLOT_TYPE_PLAYER_BYTES",this.L_]]),jE:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Dq],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Wo],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Wo],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Wo],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Wo],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gL],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.j9],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.j9],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Us],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gL],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MH]]),yb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iq],["SLOT_TYPE_FORECASTING",this.iq],["SLOT_TYPE_IN_PLAYER",this.iq],["SLOT_TYPE_PLAYER_BYTES",this.TL]]),BO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.au],["SLOT_TYPE_FORECASTING",this.Uw],["SLOT_TYPE_IN_PLAYER",this.H6],["SLOT_TYPE_PLAYER_BYTES", this.wE]])};this.listeners=[w.get()];this.KF={sf:this.sf,LS:this.pI.get(),tb:this.OP.get(),tS:this.rA.get(),La:this.La,kQ:v.get(),Vo:null,C7:this.Dq,hI:w.get(),Bf:this.qQ.get()}}; bHf=function(R,F,h,a,J){g.d.call(this);var M=this,v=fI(function(){return new Bl(M.pI)}); g.z(this,v);var I=fI(function(){return new Yh(v,M.pI)}); g.z(this,I);var w=fI(function(){return new tQ}); g.z(this,w);var E=fI(function(){return new zV(R)}); g.z(this,E);var B=fI(function(){return new pO(v,I,M.pI)}); g.z(this,B);var r=fI(function(){return new xh}); g.z(this,r);this.p7=fI(function(){return new yZi(F)}); g.z(this,this.p7);this.oT=fI(function(){return new Qr(F)}); g.z(this,this.oT);this.OP=fI(function(){return new Zq(J)}); g.z(this,this.OP);this.fV=fI(function(){return new C9(F)}); g.z(this,this.fV);this.pV=fI(function(){return new c8(F)}); g.z(this,this.pV);this.i$=fI(function(){return new W8(F)}); g.z(this,this.i$);this.yd=fI(function(){return new RY(F)}); g.z(this,this.yd);this.pI=fI(function(){return new F0(F)}); g.z(this,this.pI);var Y=fI(function(){return new kp(a)}); g.z(this,Y);var p=fI(function(){return new Ft(M.pI)}); g.z(this,p);this.l0=fI(function(){return new Nj(F)}); g.z(this,this.l0);this.qQ=fI(function(){return new iT(F,r,M.pI)}); g.z(this,this.qQ);var k=Vs({qQ:this.qQ,pI:this.pI,DN:p}),H=k.context,T=k.bT;this.lY=k.lY;this.Iz=fI(function(){return new xp(F,M.pI,M.cG)}); g.z(this,this.Iz);this.Ei=fI(function(){return new HF(F)}); g.z(this,this.Ei);this.rA=fI(function(){return new wg(F,M.qQ,M.pI)}); g.z(this,this.rA);this.cf=fI(function(){return new Lk}); g.z(this,this.cf);k=fI(function(){return new O0(v,B,I,M.pI,p,null,M.rA,M.L$,M.ys,3)}); g.z(this,k);this.WJ=fI(function(){return new me(M.pI)}); this.KO=fI(function(){return new Jm(M.rA,F,M.pI)}); g.z(this,this.KO);this.cG=fI(function(){return new IY(F,w,M.KO,M.qQ,M.lY,M.pI,T)}); g.z(this,this.cG);this.La=new PK(E,k,h,this.pI,R,this.qQ,this.rA,this.fV);g.z(this,this.La);var Z=new U2(F,this.La,this.rA,this.qQ,this.Iz);this.qx=fI(function(){return Z}); this.vK=Z;this.JV=new d3(zmL,TG,function(b,O,n,K){return EPg(I.get(),b,O,n,K)},E,B,I,p,this.pI,this.qQ); g.z(this,this.JV);this.L$=new XT(E,B,this.qx,this.Iz,this.rA,this.pI,this.cG,this.Ei);g.z(this,this.L$);this.t4=new Ke(E,B,this.pV,this.qx,H);g.z(this,this.t4);this.sf=new FT(this.pI,E,B,k,this.qQ,this.t4,h,this.i$);g.z(this,this.sf);this.dE=fI(function(){return new Ri(Y,I,p,M.pI,M.cG,M.rA,M.Ei)}); g.z(this,this.dE);this.L_=fI(function(){return new Fe}); g.z(this,this.L_);this.Dq=new WK(R,this.oT,this.pI);g.z(this,this.Dq);this.Wo=new Rs(R);g.z(this,this.Wo);this.gL=new as(R,this.qx,H);g.z(this,this.gL);this.j9=new Ju(R,this.pV,this.rA,this.qQ,H);g.z(this,this.j9);this.zp=new Mb(R,this.qQ);g.z(this,this.zp);this.ys=new Ga(R,this.Iz,this.rA,this.cG,this.qx);g.z(this,this.ys);this.Us=new vl(R);g.z(this,this.Us);this.Y0=new gE(R);g.z(this,this.Y0);this.MH=new Eu(R);g.z(this,this.MH);this.iq=fI(function(){return new Vo}); g.z(this,this.iq);this.TL=fI(function(){return new U0(M.rA)}); g.z(this,this.TL);this.au=fI(function(){return new ee(M.sf,E,v)}); g.z(this,this.au);this.Uw=fI(function(){return new dW(M.pI,M.cG,M.Us,M.KO)}); g.z(this,this.Uw);this.wE=fI(function(){return new Tb(R,M.MH,M.Us,M.qQ,M.Ei,M.rA,M.cf,M.cG,r,M.Iz,M.KO,M.WJ,M.i$,M.pV,M.fV,M.yd,M.OP,M.l0,M.pI,w,H,T)}); g.z(this,this.wE);this.WA=fI(function(){return new vJg(M.oT,M.rA,M.cG,w,M.p7,h,M.pI,M.qQ)}); g.z(this,this.WA);this.qF={Yr:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sf],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L$],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.JV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.La],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.t4]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dE],["SLOT_TYPE_FORECASTING",this.L_],["SLOT_TYPE_IN_PLAYER",this.L_],["SLOT_TYPE_PLAYER_BYTES",this.L_]]),jE:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Dq],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Wo],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Wo],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Wo],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Wo],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Wo],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gL],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.j9],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.j9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zp],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Us],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gL],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ys],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.ys],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ys],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ys],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ys]]),yb:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.iq],["SLOT_TYPE_FORECASTING",this.iq],["SLOT_TYPE_IN_PLAYER",this.iq],["SLOT_TYPE_PLAYER_BYTES",this.TL]]),BO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.au],["SLOT_TYPE_FORECASTING",this.Uw],["SLOT_TYPE_PLAYER_BYTES",this.wE],["SLOT_TYPE_IN_PLAYER",this.WA]])};this.listeners=[w.get()]; this.KF={sf:this.sf,LS:this.pI.get(),tb:this.OP.get(),tS:this.rA.get(),La:this.La,kQ:v.get(),Vo:null,C7:this.Dq,hI:w.get(),Bf:this.qQ.get()}}; OHm=function(R,F,h,a){function J(){return M.D} g.d.call(this);var M=this;R.W().experiments.jl("html5_dispose_of_manager_before_dependency")?(this.B=SzO(J,R,F,h,a),this.D=(new j7(this.B)).K(),g.z(this,this.D),g.z(this,this.B)):(this.B=SzO(J,R,F,h,a),g.z(this,this.B),this.D=(new j7(this.B)).K(),g.z(this,this.D))}; yr=function(R){return R.B.KF}; SzO=function(R,F,h,a,J){try{var M=F.W();if(g.ig(M))var v=new qzi(R,F,h,a,J);else if(g.Bc(M))v=new fG2(R,F,h,a,J);else if(hJ(M))v=new jbL(R,F,h,a,J);else if(g.b5(M))v=new ZHI(R,F,h,a,J);else if(g.Uk(M))v=new bHf(R,F,h,a,J);else throw new TypeError("Unknown web interface");return v}catch(I){return v=F.W(),gf("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:v.B.cplatform,interface:v.B.c,IsA:v.B.cver,bpb:v.B.ctheme,tVb:v.B.cplayer,XnR:v.playerStyle}),new k_f(R,F,h,a,J)}}; mV2=function(R){nB.call(this,R)}; o2n=function(R,F,h,a,J){D6.call(this,R,{G:"div",J:"ytp-ad-timed-pie-countdown-container",V:[{G:"svg",J:"ytp-ad-timed-pie-countdown",j:{viewBox:"0 0 20 20"},V:[{G:"circle",J:"ytp-ad-timed-pie-countdown-background",j:{r:"10",cx:"10",cy:"10"}},{G:"circle",J:"ytp-ad-timed-pie-countdown-inner",j:{r:"5",cx:"10",cy:"10"}},{G:"circle",J:"ytp-ad-timed-pie-countdown-outer",j:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",F,h,a,J);this.L=this.mI("ytp-ad-timed-pie-countdown-container");this.K=this.mI("ytp-ad-timed-pie-countdown-inner"); this.S=this.mI("ytp-ad-timed-pie-countdown-outer");this.D=Math.ceil(2*Math.PI*5);this.hide()}; XtB=function(R,F,h,a,J,M){GA.call(this,R,{G:"div",J:"ytp-ad-action-interstitial",j:{tabindex:"0"},V:[{G:"div",J:"ytp-ad-action-interstitial-background-container"},{G:"div",J:"ytp-ad-action-interstitial-slot",V:[{G:"div",J:"ytp-ad-action-interstitial-instream-info"},{G:"div",J:"ytp-ad-action-interstitial-card",V:[{G:"div",J:"ytp-ad-action-interstitial-image-container"},{G:"div",J:"ytp-ad-action-interstitial-headline-container"},{G:"div",J:"ytp-ad-action-interstitial-description-container"},{G:"div", J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",F,h,a);this.VS=J;this.zf=M;this.navigationEndpoint=this.B=this.skipButton=this.D=this.actionButton=null;this.NQ=this.mI("ytp-ad-action-interstitial-instream-info");this.Sl=this.mI("ytp-ad-action-interstitial-image-container");this.C=new mU(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-action-interstitial-image");g.z(this,this.C);this.C.Ab(this.Sl);this.fI=this.mI("ytp-ad-action-interstitial-headline-container"); this.S=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-action-interstitial-headline");g.z(this,this.S);this.S.Ab(this.fI);this.aR=this.mI("ytp-ad-action-interstitial-description-container");this.K=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-action-interstitial-description");g.z(this,this.K);this.K.Ab(this.aR);this.HG=this.mI("ytp-ad-action-interstitial-background-container");this.PG=new mU(this.api,this.layoutId,this.interactionLoggingClientData, this.tb,"ytp-ad-action-interstitial-background",!0);g.z(this,this.PG);this.PG.Ab(this.HG);this.T$=this.mI("ytp-ad-action-interstitial-action-button-container");this.slot=this.mI("ytp-ad-action-interstitial-slot");this.Jj=this.mI("ytp-ad-action-interstitial-card");this.L=new Hv;g.z(this,this.L);this.hide()}; eRi=function(R){var F=g.gs("html5-video-player");F&&g.Gi(F,"ytp-ad-display-override",R)}; PFi=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-overlay-slot",V:[{G:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",F,h,a);this.C=[];this.HG=this.fI=this.L=this.T$=this.NQ=null;this.PG=!1;this.S=null;this.aR=0;R=this.mI("ytp-ad-overlay-container");this.Sl=new hF(R,45E3,6E3,.3,.4);g.z(this,this.Sl);this.K=n2m(this);g.z(this,this.K);this.K.Ab(R);this.D=uY7(this);g.z(this,this.D);this.D.Ab(R);this.B=dV2(this);g.z(this,this.B);this.B.Ab(R);this.hide()}; n2m=function(R){var F=new g.gY({G:"div",J:"ytp-ad-text-overlay",V:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",V:[{G:"button",J:"ytp-ad-overlay-close-button",V:[y2(zRL)]}]},{G:"div",J:"ytp-ad-overlay-title",Dn:"{{title}}"},{G:"div",J:"ytp-ad-overlay-desc",Dn:"{{description}}"},{G:"div",sz:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Dn:"{{displayUrl}}"}]});R.T(F.mI("ytp-ad-overlay-title"),"click",function(h){qj(R,F.element,h)}); R.T(F.mI("ytp-ad-overlay-link"),"click",function(h){qj(R,F.element,h)}); R.T(F.mI("ytp-ad-overlay-close-container"),"click",R.bZ);F.hide();return F}; uY7=function(R){var F=new g.gY({G:"div",sz:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",V:[{G:"button",J:"ytp-ad-overlay-close-button",V:[y2(zRL)]}]},{G:"div",J:"ytp-ad-overlay-text-image",V:[{G:"img",j:{src:"{{imageUrl}}"}}]},{G:"div",J:"ytp-ad-overlay-title",Dn:"{{title}}"},{G:"div",J:"ytp-ad-overlay-desc",Dn:"{{description}}"},{G:"div",sz:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Dn:"{{displayUrl}}"}]});R.T(F.mI("ytp-ad-overlay-title"),"click",function(h){qj(R,F.element,h)}); R.T(F.mI("ytp-ad-overlay-link"),"click",function(h){qj(R,F.element,h)}); R.T(F.mI("ytp-ad-overlay-close-container"),"click",R.bZ);R.T(F.mI("ytp-ad-overlay-text-image"),"click",R.oOu);F.hide();return F}; dV2=function(R){var F=new g.gY({G:"div",J:"ytp-ad-image-overlay",V:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",V:[{G:"button",J:"ytp-ad-overlay-close-button",V:[y2(zRL)]}]},{G:"div",J:"ytp-ad-overlay-image",V:[{G:"img",j:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});R.T(F.mI("ytp-ad-overlay-image"),"click",function(h){qj(R,F.element,h)}); R.T(F.mI("ytp-ad-overlay-close-container"),"click",R.bZ);F.hide();return F}; K0L=function(R,F){if(F){var h=g.t(F,C5)||null;h==null?g.y7(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(F=g.gs("video-ads ytp-ad-module")||null,F==null?g.y7(Error("Could not locate the root ads container element to attach the ad info dialog.")):(R.fI=new g.gY({G:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.z(R,R.fI),R.fI.Ab(F),F=new KB(R.api,R.layoutId,R.interactionLoggingClientData,R.tb,R.fI.element,!1),g.z(R,F),F.init(R7("ad-info-hover-text-button"),h,R.macros), R.S?(F.Ab(R.S,0),F.subscribe("f",R.UQQ,R),F.subscribe("e",R.B2,R),R.T(R.S,"click",R.AbI),R.T(g.gs("ytp-ad-button",F.element),"click",function(){var a;if(g.t((a=g.t(h.button,g.Wq))==null?void 0:a.serviceEndpoint,Wii))R.PG=R.api.getPlayerState(1)===2,R.api.pauseVideo();else R.api.onAdUxClicked("ad-info-hover-text-button",R.layoutId)}),R.HG=F):g.y7(Error("Ad info button container within overlay ad was not present."))))}else g.qN(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; lGm=function(R,F){if(tgi(R,fk)||R.api.isMinimized())return!1;var h=I7(F.title),a=I7(F.description);if(g.jP(h)||g.jP(a))return!1;R.createServerVe(R.K.element,F.trackingParams||null);R.K.updateValue("title",I7(F.title));R.K.updateValue("description",I7(F.description));R.K.updateValue("displayUrl",I7(F.displayUrl));F.navigationEndpoint&&g.m4(R.C,F.navigationEndpoint);R.K.show();R.Sl.start();R.logVisibility(R.K.element,!0);R.T(R.K.element,"mouseover",function(){R.aR++}); return!0}; DVa=function(R,F){if(tgi(R,fk)||R.api.isMinimized())return!1;var h=I7(F.title),a=I7(F.description);if(g.jP(h)||g.jP(a))return!1;R.createServerVe(R.D.element,F.trackingParams||null);R.D.updateValue("title",I7(F.title));R.D.updateValue("description",I7(F.description));R.D.updateValue("displayUrl",I7(F.displayUrl));R.D.updateValue("imageUrl",inm(F.image));F.navigationEndpoint&&g.m4(R.C,F.navigationEndpoint);R.T$=F.imageNavigationEndpoint||null;R.D.show();R.Sl.start();R.logVisibility(R.D.element,!0); R.T(R.D.element,"mouseover",function(){R.aR++}); return!0}; Vga=function(R,F){if(R.api.isMinimized())return!1;var h=wvi(F.image),a=h;h.width0?(F=new jj(R.api,R.B), F.Ab(R.playerOverlay),g.z(R,F)):(R=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(F)),g.y7(R))}}else g.y7(Error("addCommonComponents() needs to be called before starting countdown."))}; vL4=function(R){function F(h){return{toString:function(){return h()}}} R.macros.SURVEY_LOCAL_TIME_EPOCH_S=F(function(){var h=new Date;return(Math.round(h.valueOf()/1E3)+-1*h.getTimezoneOffset()*60).toString()}); R.macros.SURVEY_ELAPSED_MS=F(function(){return(Date.now()-R.K).toString()})}; gLh=function(R,F,h,a,J){S0.call(this,R,F,h,a,"survey-question-multi-select");this.aR=J;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}; GIu=function(R,F,h){R.noneOfTheAbove=new F2h(R.api,R.layoutId,R.interactionLoggingClientData,R.tb);R.noneOfTheAbove.Ab(R.answers);R.noneOfTheAbove.init(R7("survey-none-of-the-above"),F,h)}; i_e=function(R){R.D.forEach(function(F){F.B.toggleButton(!1)}); ITg(R,!0)}; ITg=function(R,F){var h=R.L;R=wi7(R);F=F===void 0?!1:F;h.B&&(R?h.B.hide():h.B.show(),F&&h.B instanceof BM&&!h.B.L&&GCL(h.B,!1));h.D&&(R?h.D.show():h.D.hide())}; wi7=function(R){return R.D.some(function(F){return F.B.isToggled()})||R.noneOfTheAbove.button.isToggled()}; OT=function(R,F,h,a,J){S0.call(this,R,F,h,a,"survey-question-single-select",function(v){M.api.W().X("supports_multi_step_on_desktop")&&J([v])}); var M=this;this.hide()}; ml=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-survey",V:[{G:"div",J:"ytp-ad-survey-questions"}]},"survey",F,h,a);this.questions=[];this.D=[];this.conditioningRules=[];this.B=0;this.S=this.mI("ytp-ad-survey-questions");this.api.W().X("fix_survey_color_contrast_on_destop")&&this.mI("ytp-ad-survey").classList.add("color-contrast-fix");this.api.W().X("web_enable_speedmaster")&&this.mI("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; rf9=function(R,F){var h=R.D[F],a;(a=R.K)==null||a.dispose();g.t(h,Vu)?ELk(R,g.t(h,Vu),R.macros):g.t(h,DA)&&BLh(R,g.t(h,DA),R.macros);R.B=F}; ELk=function(R,F,h){var a=new OT(R.api,R.layoutId,R.interactionLoggingClientData,R.tb,R.L.bind(R));a.Ab(R.S);a.init(R7("survey-question-single-select"),F,h);R.api.W().X("supports_multi_step_on_desktop")?R.K=a:R.questions.push(a);g.z(R,a)}; BLh=function(R,F,h){var a=new gLh(R.api,R.layoutId,R.interactionLoggingClientData,R.tb,R.L.bind(R));a.Ab(R.S);a.init(R7("survey-question-multi-select"),F,h);R.api.W().X("supports_multi_step_on_desktop")?R.K=a:R.questions.push(a);g.z(R,a)}; oY=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-survey-interstitial",V:[{G:"div",J:"ytp-ad-survey-interstitial-contents",V:[{G:"div",J:"ytp-ad-survey-interstitial-logo",V:[{G:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",F,h,a);this.B=this.actionButton=null;this.interstitial=this.mI("ytp-ad-survey-interstitial");this.D=this.mI("ytp-ad-survey-interstitial-contents");this.text=this.mI("ytp-ad-survey-interstitial-text"); this.logoImage=this.mI("ytp-ad-survey-interstitial-logo-image");this.transition=new g.CB(this,500,!1,300);g.z(this,this.transition)}; Ymu=function(R,F){F=F&&Oj(F)||"";if(g.jP(F))g.qN(Error("Found ThumbnailDetails without valid image URL"));else{var h=R.style;R=R.style.cssText;var a=document.implementation.createHTMLDocument("").createElement("DIV");a.style.cssText=R;R=nA7(a.style);h.cssText=[R,'background-image:url("'+F+'");'].join("")}}; sgv=function(R){var F=g.gs("html5-video-player");F&&g.Gi(F,"ytp-ad-display-override",R)}; X0=function(R,F,h,a,J,M){M=M===void 0?0:M;D6.call(this,R,{G:"div",J:"ytp-preview-ad",V:[{G:"div",J:"ytp-preview-ad__text"}]},"preview-ad",F,h,a,J);var v=this;this.aR=M;this.D=0;this.L=-1;this.K=this.mI("ytp-preview-ad__text");switch(this.aR){case 1:this.K.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.CB(this,400,!1,100,function(){v.hide()}); g.z(this,this.transition);this.hide()}; e0=function(R,F,h,a){GA.call(this,R,{G:"img",J:"ytp-ad-avatar"},"ad-avatar",F,h,a);this.hide()}; pih=function(R){switch(R.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}}; nk=function(R,F,h,a,J,M){J=J===void 0?!1:J;M=M===void 0?!1:M;GA.call(this,R,{G:"button",J:"ytp-ad-button-vm"},"ad-button",F,h,a);this.buttonText=this.buttonIcon=null;this.hide();this.B=J;this.D=M}; kIg=function(R,F,h,a,J){D6.call(this,R,{G:"div",sz:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{G:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{G:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",F,h,a,J);this.startMilliseconds=0;this.adAvatar=new e0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.adAvatar);kT(this.element,this.adAvatar.element,0);this.headline=new HM(this.api,this.layoutId, this.interactionLoggingClientData,this.tb);g.z(this,this.headline);this.headline.Ab(this.mI("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.description);this.description.Ab(this.mI("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new nk(this.api, this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.adButton);this.adButton.Ab(this.element);this.hide()}; uT=function(R,F,h,a){GA.call(this,R,{G:"button",J:"ytp-skip-ad-button",V:[{G:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",F,h,a);var J=this;this.D=!1;this.L=this.mI("ytp-skip-ad-button__text");this.transition=new g.CB(this,500,!1,100,function(){J.hide()}); g.z(this,this.transition);this.B=new hF(this.element,15E3,5E3,.5,.5,!0);g.z(this,this.B);this.hide()}; Qg4=function(R,F,h,a,J){D6.call(this,R,{G:"div",J:"ytp-skip-ad"},"skip-ad",F,h,a,J);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.K=new uT(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.K);this.K.Ab(this.element);this.hide()}; dg=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",F,h,a);this.hide()}; PF=function(R,F,h,a,J){GA.call(this,R,{G:"div",J:"ytp-ad-player-overlay-layout",V:[{G:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{G:"div",J:"ytp-ad-player-overlay-layout__ad-info-container"},{G:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{G:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",F,h,a);this.D=J;this.fI=this.mI("ytp-ad-player-overlay-layout__player-card-container");this.B=this.mI("ytp-ad-player-overlay-layout__ad-info-container"); this.C=this.mI("ytp-ad-player-overlay-layout__skip-or-preview-container");this.aR=this.mI("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; $a7=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-grid-card-text",V:[{G:"div",J:"ytp-ad-grid-card-text__metadata",V:[{G:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{G:"div",J:"ytp-ad-grid-card-text__metadata__description",V:[{G:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{G:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{G:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",F,h,a);this.headline=new HM(this.api,this.layoutId,this.interactionLoggingClientData, this.tb);g.z(this,this.headline);this.headline.Ab(this.mI("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new nk(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0);g.z(this,this.moreInfoButton);this.moreInfoButton.Ab(this.mI("ytp-ad-grid-card-text__button"))}; zG=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",F,h,a);this.B=[]}; Kk=function(R,F,h,a,J,M,v){D6.call(this,R,M,v,F,h,a,J);this.playerProgressOffsetMs=0;this.D=!1}; Af4=function(R){var F=g.gs("html5-video-player");F&&g.Gi(F,"ytp-ad-display-override",R)}; xaG=function(R,F,h,a,J){Kk.call(this,R,F,h,a,J,{G:"div",J:"ytp-display-underlay-text-grid-cards",V:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container",V:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new zG(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.adGridCardCollection);this.adGridCardCollection.Ab(this.mI("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new nk(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.adButton);this.adButton.Ab(this.mI("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.K=this.mI("ytp-display-underlay-text-grid-cards__content_container");this.L=this.mI("ytp-display-underlay-text-grid-cards__content_container__header")}; tm=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-ad-details-line"},"ad-details-line",F,h,a);this.B=[];this.hide()}; lT=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-image-background",V:[{G:"img",J:"ytp-image-background-image"}]},"image-background",F,h,a);this.hide()}; NLg=function(R,F,h,a,J){D6.call(this,R,{G:"svg",J:"ytp-timed-pie-countdown",j:{viewBox:"0 0 20 20"},V:[{G:"circle",J:"ytp-timed-pie-countdown__background",j:{r:"10",cx:"10",cy:"10"}},{G:"circle",J:"ytp-timed-pie-countdown__inner",j:{r:"5",cx:"10",cy:"10"}},{G:"circle",J:"ytp-timed-pie-countdown__outer",j:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",F,h,a,J);this.K=this.mI("ytp-timed-pie-countdown__inner");this.D=Math.ceil(2*Math.PI*5);this.hide()}; DN=function(R,F,h,a){GA.call(this,R,{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout",j:{tabindex:"0"},V:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",F,h,a);this.D=null;this.L=this.mI("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.K=new Hv;g.z(this,this.K);this.hide()}; H_6=function(R){var F=g.gs("html5-video-player");F&&g.Gi(F,"ytp-ad-display-override",R)}; L2U=function(R){if(!R.adAvatar||!g.t(R.adAvatar,Vr))return g.y7(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!R.headline)return g.y7(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!R.adBadge||!g.t(R.adBadge,UT))return g.y7(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!R.adButton||!g.t(R.adButton,Ck))return g.y7(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!R.adInfoRenderer|| !g.t(R.adInfoRenderer,C5))return g.y7(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;R=R.durationMilliseconds||0;return typeof R!=="number"||R<=0?(g.y7(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+R)),!1):!0}; cF=function(R,F){F=F===void 0?2:F;g.h0.call(this);this.api=R;this.B=null;this.nV=new Hv(this);g.z(this,this.nV);this.D=IdL;this.nV.T(this.api,"presentingplayerstatechange",this.gs);this.B=this.nV.T(this.api,"progresssync",this.Na);this.r0=F;this.r0===1&&this.Na()}; WF=function(R,F,h){nB.call(this,R);this.api=R;this.tb=F;this.components={};R=new g.D({G:"div",sz:["video-ads","ytp-ad-module"]});g.z(this,R);nG&&g.J$(R.element,"ytp-ads-tiny-mode");this.L=new EY(R.element);g.z(this,this.L);g.Pn(this.api,R.element,4);pe(h)&&(h=new g.D({G:"div",sz:["ytp-ad-underlay"]}),g.z(this,h),this.D=new EY(h.element),g.z(this,this.D),g.Pn(this.api,h.element,0));g.z(this,XvO())}; TLv=function(R,F){R=g.rd(R.components,F.id,null);R==null&&g.qN(Error("Component not found for element id: "+F.id));return R||null}; yfg=function(R){g.Hb.call(this,R);var F=this;this.D=null;this.created=!1;this.K=R.W().X("h5_use_refactored_get_ad_break")?new Qvf(this.player):new Dk(this.player);this.L=function(){if(F.D!=null)return F.D;var a=new Tcf({C7:yr(F.B).C7,Bf:yr(F.B).Bf,U:F.player,LS:yr(F.B).LS,cG:F.B.B.cG,hI:yr(F.B).hI,yd:F.B.B.yd});F.D=a.Pz;return F.D}; this.B=new OHm(this.player,this,this.K,this.L);g.z(this,this.B);var h=R.W();!ra(h)||g.Uk(h)||hJ(h)||(g.z(this,new WF(R,yr(this.B).tb,yr(this.B).LS)),g.z(this,new mV2(R)))}; qmL=function(R){R.created!==R.loaded&&gf("Created and loaded are out of sync")}; Z_u=function(R){g.Hb.prototype.load.call(R);var F=yr(R.B).LS;try{R.player.getRootNode().classList.add("ad-created")}catch(w){gf(w instanceof Error?w:String(w))}var h=R.player.getVideoData(1),a=h&&h.videoId||"",J=h&&h.getPlayerResponse()||{},M=(J&&J.adPlacements||[]).map(function(w){return w.adPlacementRenderer}),v=((J==null?void 0:J.adSlots)||[]).map(function(w){return g.t(w,hQ)}); J=J.playerConfig&&J.playerConfig.daiConfig&&J.playerConfig.daiConfig.enableDai||!1;h&&h.Mt();M=fTg(M,v,F,yr(R.B).kQ);v=h&&h.clientPlaybackNonce||"";h=h&&h.hX||!1;if(iW(F,!0)&&h){var I;F={};(I=R.player.getVideoData())==null||I.dA("p_cpb",(F.cc=v,F))}I=1E3*R.player.getDuration(1);jgk(R);R.B.B.vK.w4(v,I,h,M.B8,M.O2,M.B8,J,a)}; jgk=function(R){var F,h;if(h=(F=R.player.getVideoData(1))==null||!F.hX)F=R.player.W(),h=ra(F)&&!g.BW(F)&&F.playerStyle==="desktop-polymer";h&&(R=R.player.getInternalApi(),R.addEventListener("updateKevlarOrC3Companion",kC7),R.addEventListener("updateEngagementPanelAction",QfT),R.addEventListener("changeEngagementPanelVisibility",$UO),window.addEventListener("yt-navigate-start",xUn))}; RW=function(R,F){F===R.Wn&&(R.Wn=void 0)}; b_u=function(R){var F=yr(R.B).La,h=F.L().yv("SLOT_TYPE_PLAYER_BYTES",1);F=Oc(F.qQ.get(),1).clientPlaybackNonce;var a=!1;h=g.N(h);for(var J=h.next();!J.done;J=h.next()){J=J.value;var M=J.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J.slotEntryTrigger instanceof dv?J.slotEntryTrigger.Qb:void 0;M&&M===F&&(a&&gf("More than 1 preroll playerBytes slot detected",J),a=!0)}a||ET(yr(R.B).tS)}; SmU=function(R){if(hm(yr(R.B).LS))return!0;var F="";R=g.N(yr(R.B).hI.o3.keys());for(var h=R.next();!h.done;h=R.next()){h=h.value;if(h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.Jb==="core")return!0;F+=h.slotType+" "}Math.random()<.01&&gf("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:F});return!1}; O_7=function(R){R=g.N(yr(R.B).hI.o3.values());for(var F=R.next();!F.done;F=R.next())if(F.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; upL=function(R,F,h,a,J,M){h=h===void 0?[]:h;a=a===void 0?"":a;J=J===void 0?"":J;var v=yr(R.B).LS,I=R.player.getVideoData(1);I&&I.getPlayerResponse();I&&I.Mt();h=fTg(F,h,v,yr(R.B).kQ);tG_(yr(R.B).sf,a,h.B8,h.O2,F,J,M)}; fTg=function(R,F,h,a){F={B8:[],O2:F};R=g.N(R);for(var J=R.next();!J.done;J=R.next())if((J=J.value)&&J.renderer!=null){var M=J.renderer;if(!h.U.W().X("html5_enable_vod_lasr_with_notify_pacf")){var v=void 0,I=void 0,w=void 0,E=void 0,B=a;g.t((E=M.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,SO)?(v=g.t((w=M.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,SO),v=GpI(v,B),g.S2(M.sandwichedLinearAdRenderer.adVideoStart,SO,v)):g.t((I=M.linearAdSequenceRenderer)==null?void 0:I.adStart,SO)&& (w=g.t((v=M.linearAdSequenceRenderer)==null?void 0:v.adStart,SO),v=GpI(w,B),g.S2(M.linearAdSequenceRenderer.adStart,SO,v))}F.B8.push(J)}return F}; g.FZ=function(R){if(typeof DOMParser!="undefined")return Tq(new DOMParser,OJL(R),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.hr=function(R){g.d.call(this);this.callback=R;this.B=new QM(0,0,.4,0,.2,1,1,1);this.delay=new g.lG(this.next,window,this);g.z(this,this.delay)}; g.ma6=function(R){var F=R.W();return F.gf&&!F.K&&g.Py(F)?R.isEmbedsShortsMode()?(R=R.c9(),Math.min(R.width,R.height)>=315):!R.e5():!1}; g.aW=function(R){g.D.call(this,{G:"div",J:"ytp-more-videos-view",j:{tabIndex:"-1"}});var F=this;this.api=R;this.D=!0;this.K=new g.xK(this);this.B=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.L=this.scrollPosition=0;this.title=new g.D({G:"h2",J:"ytp-related-title",Dn:"{{title}}"});this.previous=new g.D({G:"button",sz:["ytp-button","ytp-previous"],j:{"aria-label":"Mostrar videos sugeridos anteriores"},V:[g.Bx()]});this.Y=new g.hr(function(h){F.suggestions.element.scrollLeft= -h}); this.next=new g.D({G:"button",sz:["ytp-button","ytp-next"],j:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},V:[g.rY()]});g.z(this,this.K);this.S=R.W().L;g.z(this,this.title);this.title.Ab(this.element);this.suggestions=new g.D({G:"div",J:"ytp-suggestions"});g.z(this,this.suggestions);this.suggestions.Ab(this.element);g.z(this,this.previous);this.previous.Ab(this.element);this.previous.listen("click",this.ws,this);g.z(this,this.Y);oLu(this);g.z(this,this.next);this.next.Ab(this.element);this.next.listen("click", this.Yg,this);this.K.T(this.api,"appresize",this.ew);this.K.T(this.api,"fullscreentoggled",this.cK);this.K.T(this.api,"videodatachange",this.onVideoDataChange);this.ew(this.api.xo().getPlayerSize());this.onVideoDataChange()}; oLu=function(R){for(var F={tQ:0};F.tQ<16;F={tQ:F.tQ},++F.tQ){var h=new g.D({G:"a",J:"ytp-suggestion-link",j:{href:"{{link}}",target:R.api.W().C,"aria-label":"{{aria_label}}"},V:[{G:"div",J:"ytp-suggestion-image"},{G:"div",J:"ytp-suggestion-overlay",j:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{G:"div",J:"ytp-suggestion-title",Dn:"{{title}}"},{G:"div",J:"ytp-suggestion-author",Dn:"{{author_and_views}}"},{G:"div",j:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", Dn:"{{duration}}"}]}]});g.z(R,h);var a=h.mI("ytp-suggestion-link");g.zL(a,"transitionDelay",F.tQ/20+"s");R.K.T(a,"click",function(J){return function(M){var v=J.tQ;if(R.D){var I=R.suggestionData[v],w=I.sessionData;R.S&&R.api.X("web_player_log_click_before_generating_ve_conversion_params")?(R.api.logClick(R.B[v].element),v=I.qI(),I={},g.nF(R.api,I),v=g.sA(v,I),g.YQ(v,R.api,M)):g.r0(M,R.api,R.S,w||void 0)&&R.api.VQ(I.videoId,w,I.playlistId)}else M.preventDefault(),document.activeElement.blur()}}(F)); h.Ab(R.suggestions.element);R.B.push(h);R.api.createServerVe(h.element,h)}}; XiG=function(R){if(R.api.W().X("web_player_log_click_before_generating_ve_conversion_params"))for(var F=Math.floor(-R.scrollPosition/(R.L+8)),h=Math.min(F+R.columns,R.suggestionData.length)-1;F<=h;F++)R.api.logVisibility(R.B[F].element,!0)}; g.Jr=function(R){var F=R.api.AG()?32:16;F=R.Z/2+F;R.next.element.style.bottom=F+"px";R.previous.element.style.bottom=F+"px";F=R.scrollPosition;var h=R.containerWidth-R.suggestionData.length*(R.L+8);g.Gi(R.element,"ytp-scroll-min",F>=0);g.Gi(R.element,"ytp-scroll-max",F<=h)}; nLG=function(R){for(var F=R.suggestionData.length,h=0;h>>0)+"_",J=0;return F}); rL("Symbol.iterator",function(R){if(R)return R;R=Symbol("Symbol.iterator");for(var F="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h0&&h>0;)if(a[--h]!=F[--J])return!1;return J<=0}}); rL("Array.prototype.find",function(R){return R?R:function(F,h){return ELi(this,F,h).XK}}); rL("Array.prototype.entries",function(R){return R?R:function(){return tf(this,function(F,h){return[F,h]})}}); rL("Array.prototype.keys",function(R){return R?R:function(){return tf(this,function(F){return F})}}); rL("String.prototype.startsWith",function(R){return R?R:function(F,h){var a=zI(this,F,"startsWith");F+="";var J=a.length,M=F.length;h=Math.max(0,Math.min(h|0,a.length));for(var v=0;v=M}}); rL("Number.isFinite",function(R){return R?R:function(F){return typeof F!=="number"?!1:!isNaN(F)&&F!==Infinity&&F!==-Infinity}}); rL("String.prototype.repeat",function(R){return R?R:function(F){var h=zI(this,null,"repeat");if(F<0||F>1342177279)throw new RangeError("Invalid count value");F|=0;for(var a="";F;)if(F&1&&(a+=h),F>>>=1)h+=h;return a}}); rL("Object.entries",function(R){return R?R:function(F){var h=[],a;for(a in F)p_(F,a)&&h.push([a,F[a]]);return h}}); rL("Array.from",function(R){return R?R:function(F,h,a){h=h!=null?h:function(I){return I}; var J=[],M=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(typeof M=="function"){F=M.call(F);for(var v=0;!(M=F.next()).done;)J.push(h.call(a,M.value,v++))}else for(M=F.length,v=0;v>>0;if(F===0)return 32;var h=0;(F&4294901760)===0&&(F<<=16,h+=16);(F&4278190080)===0&&(F<<=8,h+=8);(F&4026531840)===0&&(F<<=4,h+=4);(F&3221225472)===0&&(F<<=2,h+=2);(F&2147483648)===0&&h++;return h}}); rL("Number.isNaN",function(R){return R?R:function(F){return typeof F==="number"&&isNaN(F)}}); rL("Array.prototype.values",function(R){return R?R:function(){return tf(this,function(F,h){return h})}}); rL("Array.prototype.fill",function(R){return R?R:function(F,h,a){var J=this.length||0;h<0&&(h=Math.max(0,J+h));if(a==null||a>J)a=J;a=Number(a);a<0&&(a=Math.max(0,J+a));for(h=Number(h||0);h0&&h?h.repeat(Math.ceil(F/h.length)).substring(0,F):"")+a}}); rL("Array.prototype.findIndex",function(R){return R?R:function(F,h){return ELi(this,F,h).JQ}}); rL("Promise.prototype.finally",function(R){return R?R:function(F){return this.then(function(h){return Promise.resolve(F()).then(function(){return h})},function(h){return Promise.resolve(F()).then(function(){throw h; })})}}); rL("Math.imul",function(R){return R?R:function(F,h){F=Number(F);h=Number(h);var a=F&65535,J=h&65535;return a*J+((F>>>16&65535)*J+a*(h>>>16&65535)<<16>>>0)|0}}); rL("Math.sign",function(R){return R?R:function(F){F=Number(F);return F===0||isNaN(F)?F:F>0?1:-1}}); rL("WeakSet",function(R){function F(h){this.B=new WeakMap;if(h){h=g.N(h);for(var a;!(a=h.next()).done;)this.add(a.value)}} if(function(){if(!R||!Object.seal)return!1;try{var h=Object.seal({}),a=Object.seal({}),J=new R([h]);if(!J.has(h)||J.has(a))return!1;J.delete(h);J.add(a);return!J.has(h)&&J.has(a)}catch(M){return!1}}())return R; F.prototype.add=function(h){this.B.set(h,!0);return this}; F.prototype.has=function(h){return this.B.has(h)}; F.prototype.delete=function(h){return this.B.delete(h)}; return F}); rL("AggregateError",function(R){function F(h,a){a=Error(a);"stack"in a&&(this.stack=a.stack);this.errors=h;this.message=a.message} if(R)return R;g.A(F,Error);F.prototype.name="AggregateError";return F}); rL("Array.prototype.copyWithin",function(R){function F(h){h=Number(h);return h===Infinity||h===-Infinity?h:h|0} return R?R:function(h,a,J){var M=this.length;h=F(h);a=F(a);J=J===void 0?M:F(J);h=h<0?Math.max(M+h,0):Math.min(h,M);a=a<0?Math.max(M+a,0):Math.min(a,M);J=J<0?Math.max(M+J,0):Math.min(J,M);if(ha;)--J in this?this[--h]=this[J]:delete this[--h];return this}}); rL("Int8Array.prototype.copyWithin",DT);rL("Uint8Array.prototype.copyWithin",DT);rL("Uint8ClampedArray.prototype.copyWithin",DT);rL("Int16Array.prototype.copyWithin",DT);rL("Uint16Array.prototype.copyWithin",DT);rL("Int32Array.prototype.copyWithin",DT);rL("Uint32Array.prototype.copyWithin",DT);rL("Float32Array.prototype.copyWithin",DT);rL("Float64Array.prototype.copyWithin",DT);rL("Array.prototype.at",function(R){return R?R:Vn}); rL("Int8Array.prototype.at",Um);rL("Uint8Array.prototype.at",Um);rL("Uint8ClampedArray.prototype.at",Um);rL("Int16Array.prototype.at",Um);rL("Uint16Array.prototype.at",Um);rL("Int32Array.prototype.at",Um);rL("Uint32Array.prototype.at",Um);rL("Float32Array.prototype.at",Um);rL("Float64Array.prototype.at",Um);rL("String.prototype.at",function(R){return R?R:Vn}); rL("Array.prototype.findLastIndex",function(R){return R?R:function(F,h){return BLi(this,F,h).JQ}}); rL("Int8Array.prototype.findLastIndex",C_);rL("Uint8Array.prototype.findLastIndex",C_);rL("Uint8ClampedArray.prototype.findLastIndex",C_);rL("Int16Array.prototype.findLastIndex",C_);rL("Uint16Array.prototype.findLastIndex",C_);rL("Int32Array.prototype.findLastIndex",C_);rL("Uint32Array.prototype.findLastIndex",C_);rL("Float32Array.prototype.findLastIndex",C_);rL("Float64Array.prototype.findLastIndex",C_);rL("Number.parseInt",function(R){return R||parseInt});var th,vh,Ymg;th=th||{};g.Wi=this||self;vh="closure_uid_"+(Math.random()*1E9>>>0);Ymg=0;g.Bh(r7,Error);r7.prototype.name="CustomError";var Svi;var xaf,QU,dy;xaf=Array.prototype.indexOf?function(R,F){return Array.prototype.indexOf.call(R,F,void 0)}:function(R,F){if(typeof R==="string")return typeof F!=="string"||F.length!=1?-1:R.indexOf(F,0); for(var h=0;h=0;h--)if(h in R&&R[h]===F)return h;return-1}; g.Uv=Array.prototype.forEach?function(R,F,h){Array.prototype.forEach.call(R,F,h)}:function(R,F,h){for(var a=R.length,J=typeof R==="string"?R.split(""):R,M=0;M=.3:this.Pc>=.5};var qJ={ZrI:0,kNt:1},jGi={NONE:0,Ugo:1,wVG:2};var oLg="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Q5.prototype.getValue=function(){return this.D}; g.A($m,Q5);$m.prototype.K=function(R){this.D===null&&g.wd(this.L,R)&&(this.D=R)}; g.A(AX,Q5);AX.prototype.K=function(R){this.D===null&&typeof R==="number"&&(this.D=R)}; g.A(xm,Q5);xm.prototype.K=function(R){this.D===null&&typeof R==="string"&&(this.D=R)};NJ.prototype.disable=function(){this.D=!1}; NJ.prototype.enable=function(){this.D=!0}; NJ.prototype.isEnabled=function(){return this.D}; NJ.prototype.reset=function(){this.B={};this.D=!0;this.K={}};var zg=document,ju=window;var Da7=au(1,!0),nM=au(610401301,!1);au(899588437,!1);var VBL=au(772657768,!1),Uak=au(513659523,!1),C7U=au(568333945,!1),z9i=au(1331761403,!1);au(651175828,!1);au(722764542,!1);au(748402145,!1);au(748402146,!1);au(555019702,!1);au(333098724,!1);au(2147483644,!1);au(2147483645,!1);au(2147483646,Da7);au(2147483647,!0);var u_=!!g.hG("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var SP=String.prototype.trim?function(R){return R.trim()}:function(R){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(R)[1]},g77=/&/g,GeL=//g,ig_=/"/g,whB=/'/g,E7g=/\x00/g,v7B=/[\x00&<>"']/;var dd,cfu=g.Wi.navigator;dd=cfu?cfu.userAgentData||null:null;var VBn=globalThis.trustedTypes,cV;Ra.prototype.toString=function(){return this.B+""};aa.prototype.toString=function(){return this.B}; var cfg=new aa("about:invalid#zClosurez");var aSO=vZ("tel"),Fsi=vZ("sms"),C7O=[vZ("data"),vZ("http"),vZ("https"),vZ("mailto"),vZ("ftp"),new Mk(function(R){return/^[^:]*([/?#]|$)/.test(R)})],W2m=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;EW.prototype.toString=function(){return this.B+""};ph.prototype.toString=function(){return this.B+""};xN.prototype.toString=function(){return this.B};var HZ={};g.W2v=String.prototype.repeat?function(R,F){return R.repeat(F)}:function(R,F){return Array(F+1).join(R)};eW[" "]=function(){};var Kb,hn,tF7,RUG,F4e,hU4,eD,nG,atg;g.uo=l_();g.EN=P7m();g.zC=zD("Edge");g.rG=g.zC||g.EN;Kb=zD("Gecko")&&!(b_(g.ol(),"WebKit")&&!zD("Edge"))&&!(zD("Trident")||zD("MSIE"))&&!zD("Edge");g.IG=b_(g.ol(),"WebKit")&&!zD("Edge");hn=Xw();tF7=ke7();g.Ug=ph_();RUG=m3();F4e=zD("iPad");hU4=zD("iPod");eD=oa();nG=b_(g.ol(),"KaiOS"); a:{var JG9="",M66=function(){var R=g.ol();if(Kb)return/rv:([^\);]+)(\)|;)/.exec(R);if(g.zC)return/Edge\/([\d\.]+)/.exec(R);if(g.EN)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(R);if(g.IG)return/WebKit\/(\S+)/.exec(R);if(g.uo)return/(?:Version)[ \/]?(\S+)/.exec(R)}(); M66&&(JG9=M66?M66[1]:"");if(g.EN){var My,v76=g.Wi.document;My=v76?v76.documentMode:void 0;if(My!=null&&My>parseFloat(JG9)){atg=String(My);break a}}atg=JG9}var x4n=atg,$4a={};var lB,DD;g.Go=D7();lB=m3()||zD("iPod");DD=zD("iPad");g.dp=K2B();g.kK=V5();g.YV=UR()&&!oa();var Or7=!g.EN&&!UR();g.Q=g.zq.prototype;g.Q.clone=function(){return new g.zq(this.x,this.y)}; g.Q.equals=function(R){return R instanceof g.zq&&Kh(this,R)}; g.Q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.Q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.Q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.Q.scale=function(R,F){this.x*=R;this.y*=typeof F==="number"?F:R;return this};g.Q=g.t7.prototype;g.Q.clone=function(){return new g.t7(this.width,this.height)}; g.Q.aspectRatio=function(){return this.width/this.height}; g.Q.isEmpty=function(){return!D$(this)}; g.Q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.Q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.Q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.Q.scale=function(R,F){this.width*=R;this.height*=typeof F==="number"?F:R;return this};UW.prototype.toString=function(){return this.B}; var VT={};new UW(VT,"");var L4i=/^[a-z][a-z\d-]*$/i,T7I="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),qvg="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),ju2=["action","formaction","href"];var OgL={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.Q=cZ.prototype;g.Q.G_=function(R){return aG(this.B,R)}; g.Q.getElementsByTagName=function(R,F){return(F||this.B).getElementsByTagName(String(R))}; g.Q.mI=function(R){return g.gs(R,this.B)}; g.Q.setProperties=GL;g.Q.createElement=function(R){return ws(this.B,R)}; g.Q.appendChild=g.s$;g.Q.append=function(R,F){eUB(WZ(R),R,arguments,1)}; g.Q.canHaveChildren=function(R){if(R.nodeType!=1)return!1;switch(R.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.Q.removeNode=g.QH;g.Q.getChildren=function(R){return R.children!=void 0?R.children:Array.prototype.filter.call(R.childNodes,function(F){return F.nodeType==1})}; g.Q.contains=g.$T;yH.prototype.now=function(){return 0}; yH.prototype.D=function(){return 0}; yH.prototype.K=function(){return 0}; yH.prototype.B=function(){return 0};g.A(fb,yH);fb.prototype.now=function(){return qS()&&ju.performance.now?ju.performance.now():yH.prototype.now.call(this)}; fb.prototype.D=function(){return qS()&&ju.performance.memory?ju.performance.memory.totalJSHeapSize||0:yH.prototype.D.call(this)}; fb.prototype.K=function(){return qS()&&ju.performance.memory?ju.performance.memory.usedJSHeapSize||0:yH.prototype.K.call(this)}; fb.prototype.B=function(){return qS()&&ju.performance.memory?ju.performance.memory.jsHeapSizeLimit||0:yH.prototype.B.call(this)};var bTm=function(){if(!g.Wi.addEventListener||!Object.defineProperty)return!1;var R=!1,F=Object.defineProperty({},"passive",{get:function(){R=!0}}); try{var h=function(){}; g.Wi.addEventListener("test",h,F);g.Wi.removeEventListener("test",h,F)}catch(a){}return R}();var Hkg=P9B("AnimationEnd"),$Q=P9B("TransitionEnd");g.Q=oG.prototype;g.Q.getHeight=function(){return this.bottom-this.top}; g.Q.clone=function(){return new oG(this.top,this.right,this.bottom,this.left)}; g.Q.contains=function(R){return this&&R?R instanceof oG?R.left>=this.left&&R.right<=this.right&&R.top>=this.top&&R.bottom<=this.bottom:R.x>=this.left&&R.x<=this.right&&R.y>=this.top&&R.y<=this.bottom:!1}; g.Q.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.Q.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.Q.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.Q.scale=function(R,F){F=typeof F==="number"?F:R;this.left*=R;this.right*=R;this.top*=F;this.bottom*=F;return this};g.Q=g.uX.prototype;g.Q.clone=function(){return new g.uX(this.left,this.top,this.width,this.height)}; g.Q.contains=function(R){return R instanceof g.zq?R.x>=this.left&&R.x<=this.left+this.width&&R.y>=this.top&&R.y<=this.top+this.height:this.left<=R.left&&this.left+this.width>=R.left+R.width&&this.top<=R.top&&this.top+this.height>=R.top+R.height}; g.Q.getSize=function(){return new g.t7(this.width,this.height)}; g.Q.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.Q.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.Q.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.Q.scale=function(R,F){F=typeof F==="number"?F:R;this.left*=R;this.width*=R;this.top*=F;this.height*=F;return this};var K4f={};var C97=Su(function(){var R=!1;try{var F=Object.defineProperty({},"passive",{get:function(){R=!0}}); g.Wi.addEventListener("test",null,F)}catch(h){}return R});cGO.prototype.isVisible=function(){return Mx(zg)===1};var l7L=v_(function(R){return typeof R==="number"}),tPB=v_(function(R){return typeof R==="string"}),DJm=v_(function(R){return typeof R==="boolean"}),LO=v_(function(R){return R!=null&&typeof R==="object"&&typeof R.then==="function"}),xZn=v_(function(R){return typeof R==="function"}),g79=v_(function(R){return!!R&&(typeof R==="object"||typeof R==="function")});var Ra2={Mqb:"allow-forms",qTI:"allow-modals",kVo:"allow-orientation-lock",htb:"allow-pointer-lock",X7I:"allow-popups",lqI:"allow-popups-to-escape-sandbox",PTu:"allow-presentation",gZA:"allow-same-origin",YTl:"allow-scripts",w7A:"allow-top-navigation",JGu:"allow-top-navigation-by-user-activation"},JX2=Su(function(){return FBB()});var GDI=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");B_.prototype.hT=function(R,F,h){R=R+"//"+F+h;var a=Em7(this)-h.length;if(a<0)return"";this.B.sort(function(E,B){return E-B}); h=null;F="";for(var J=0;J=w.length){a-=w.length;R+=w;F=this.K;break}h=h==null?M:h}}a="";h!=null&&(a=""+F+"trn="+h);return R+a};At.prototype.setInterval=function(R,F){return ju.setInterval(R,F)}; At.prototype.clearInterval=function(R){ju.clearInterval(R)}; At.prototype.setTimeout=function(R,F){return ju.setTimeout(R,F)}; At.prototype.clearTimeout=function(R){ju.clearTimeout(R)};var Id=void 0,Ww,l$B=typeof TextDecoder!=="undefined",Nd2,xJI=typeof String.prototype.isWellFormed==="function",AX7=typeof TextEncoder!=="undefined";var qRL={},f1=null,f77=Kb||g.IG||typeof g.Wi.btoa=="function";var nmi=typeof Uint8Array!=="undefined",OMn=!g.EN&&typeof btoa==="function",mJI=/[-_.]/g,bML={"-":"+",_:"/",".":"="},Zh={};jY.prototype.isEmpty=function(){return this.B==null}; jY.prototype.sizeBytes=function(){var R=SY(this);return R?R.length:0}; var eaB;var ulg=void 0;var eY=typeof Symbol==="function"&&typeof Symbol()==="symbol",Ge7=XJ("jas",void 0,!0),YM=XJ(void 0,"1oa"),jX=XJ(void 0,Symbol()),It4=XJ(void 0,"0ub"),saf=XJ(void 0,"0ubs"),p4f=XJ(void 0,"0ubsb"),L37=XJ(void 0,"0actk"),yK=XJ("m_m","pnu",!0),Qa7=XJ(void 0,"vps"),igg=XJ();Math.max.apply(Math,g.S(Object.values({JVz:1,w1I:2,YwQ:4,h8b:8,vcI:16,v_n:32,tCo:64,VKA:128,Pin:256,xnt:512,Y6o:1024,xIG:2048,cIt:4096})));var P_f={Bt:{value:0,configurable:!0,writable:!0,enumerable:!1}},dJB=Object.defineProperties,n1=eY?Ge7:"Bt",FF,wh6=[];dC(wh6,7);FF=Object.freeze(wh6);var qI={},zf={},SWi=Object.freeze({}),l1={};var VU=typeof g.Wi.BigInt==="function"&&typeof g.Wi.BigInt(0)==="bigint";var o1=v_(function(R){return VU?R>=E7u&&R<=B7e:R[0]==="-"?VPB(R,rG7):VPB(R,Yvg)}),rG7=Number.MIN_SAFE_INTEGER.toString(),E7u=VU?BigInt(Number.MIN_SAFE_INTEGER):void 0,Yvg=Number.MAX_SAFE_INTEGER.toString(),B7e=VU?BigInt(Number.MAX_SAFE_INTEGER):void 0;var dk_=typeof Uint8Array.prototype.slice==="function",W_=0,R1=0,kLg;var sn=typeof BigInt==="function"?BigInt.asIntN:void 0,ihg=typeof BigInt==="function"?BigInt.asUintN:void 0,xi=Number.isSafeInteger,ix=Number.isFinite,NI=Math.trunc,RA2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var $kI={};var suu={snR:!0};var On;var A77,xk_;var oNa=UQ(0),jb={};nK.prototype.init=function(R,F,h,a){var J=a===void 0?{}:a;a=J.Xe===void 0?!1:J.Xe;J=J.Ai===void 0?!1:J.Ai;this.Xe=a;this.Ai=J;R&&(R=eb(R,this.Ai),this.D=R.buffer,this.N=R.B,this.L=F||0,this.K=h!==void 0?this.L+h:this.D.length,this.B=this.L)}; nK.prototype.free=function(){this.clear();Da.length<100&&Da.push(this)}; nK.prototype.clear=function(){this.D=null;this.N=!1;this.B=this.K=this.L=0;this.Xe=!1}; nK.prototype.reset=function(){this.B=this.L}; var Da=[];Vx.prototype.free=function(){this.B.clear();this.D=this.L=-1;U1.length<100&&U1.push(this)}; Vx.prototype.reset=function(){this.B.reset();this.K=this.B.B;this.D=this.L=-1}; var U1=[];var VW7,Cum;BJ.prototype.length=function(){return this.B.length}; BJ.prototype.end=function(){var R=this.B;this.B=[];return R};var xd=$d(),phg=$d(),ke9=$d(),QuL=$d(),$44=$d(),AGk=$d(),x4L=$d(),N74=$d(),Hgh=$d(),L4h=$d();Ap.prototype.toJSON=function(){return ux(this)}; Ap.prototype.zq=function(R){return JSON.stringify(ux(this,R))}; Ap.prototype.clone=function(){var R=this.Bo,F=R[n1]|0;return Kr(this,R,F)?tx(this,R,!0):new this.constructor(zr(R,F,!1))}; Ap.prototype[yK]=qI;Ap.prototype.toString=function(){return this.Bo.toString()};var gTg=HJ(function(R,F,h,a,J){if(R.D!==2)return!1;cw(R,s1(F,a,h),J);return!0},vTi),GL_=HJ(function(R,F,h,a,J){if(R.D!==2)return!1; cw(R,s1(F,a,h),J);return!0},vTi),XL=Symbol(),jL=Symbol(),SL=Symbol(),rRf=Symbol(),w4L=Symbol(),LE,TY;var T7e=KE(function(R,F,h){if(R.D!==1)return!1;lc(F,h,ty(R.B));return!0},Vt,N74),yGu=KE(function(R,F,h){if(R.D!==1)return!1; R=ty(R.B);lc(F,h,R===0?void 0:R);return!0},Vt,N74),qvu=KE(function(R,F,h,a){if(R.D!==1)return!1; Bw(F,h,a,ty(R.B));return!0},Vt,N74),fth=KE(function(R,F,h){if(R.D!==0)return!1; lc(F,h,dX(R.B));return!0},U8,AGk),ju4=KE(function(R,F,h){if(R.D!==0)return!1; R=dX(R.B);lc(F,h,R===0?void 0:R);return!0},U8,AGk),ZgU=KE(function(R,F,h,a){if(R.D!==0)return!1; Bw(F,h,a,dX(R.B));return!0},U8,AGk),bg4=KE(function(R,F,h){if(R.D!==0)return!1; lc(F,h,Pw(R.B));return!0},CE,QuL),Svh=KE(function(R,F,h){if(R.D!==0)return!1; R=Pw(R.B);lc(F,h,R===0?void 0:R);return!0},CE,QuL),Og7=KE(function(R,F,h,a){if(R.D!==0)return!1; Bw(F,h,a,Pw(R.B));return!0},CE,QuL),m4h=KE(function(R,F,h){if(R.D!==1)return!1; lc(F,h,KK(R.B));return!0},function(R,F,h){a2L(R,h,wZg(F))},x4L),o7k=tp(function(R,F,h){if(R.D!==1&&R.D!==2)return!1; F=GF(F,F[n1]|0,h);if(R.D==2)for(h=Pw(R.B)>>>0,h=R.B.B+h;R.B.B>>0);return!0},function(R,F,h){F=rR(F); F!=null&&F!=null&&(kd(R,h,0),Yd(R.B,F))},$44),zUk=KE(function(R,F,h){if(R.D!==0)return!1; lc(F,h,Pw(R.B));return!0},function(R,F,h){F=BX(F); F!=null&&(F=parseInt(F,10),kd(R,h,0),W3i(R.B,F))},L4h);NsI.prototype.register=function(){eW(this)};g.A(R8,Ap);R8.prototype.K=Hb2([0,yGu,ju4,-2,Svh]);var Zbi={e8z:1,GI:2,fkz:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};S$i.prototype.bS=function(R){if(typeof R==="string"&&R.length!=0){var F=this.Gn;if(F.D){R=R.split("&");for(var h=R.length-1;h>=0;h--){var a=R[h].split("="),J=decodeURIComponent(a[0]);a.length>1?(a=decodeURIComponent(a[1]),a=/^[0-9]+$/g.exec(a)?parseInt(a,10):a):a=1;(J=F.B[J])&&J.K(a)}}}};var w8=null;var vC=g.Wi.performance,K4G=!!(vC&&vC.mark&&vC.measure&&vC.clearMarks),JS=Su(function(){var R;if(R=K4G){var F=F===void 0?window:F;if(w8===null){w8="";try{R="";try{R=F.top.location.hash}catch(a){R=F.location.hash}if(R){var h=R.match(/\bdeid=([\d,]+)/);w8=h?h[1]:""}}catch(a){}}F=w8;R=!!F.indexOf&&F.indexOf("1337")>=0}return R}); M1.prototype.disable=function(){this.B=!1;this.events!==this.D.google_js_reporting_queue&&(JS()&&g.Uv(this.events,nTm),this.events.length=0)}; M1.prototype.start=function(R,F){if(!this.B)return null;var h=X4i()||oTn();R=new ew_(R,F,h);F="goog_"+R.label+"_"+R.uniqueId+"_start";vC&&JS()&&vC.mark(F);return R}; M1.prototype.end=function(R){if(this.B&&typeof R.value==="number"){var F=X4i()||oTn();R.duration=F-R.value;F="goog_"+R.label+"_"+R.uniqueId+"_end";vC&&JS()&&vC.mark(F);!this.B||this.events.length>2048||this.events.push(R)}};var uWL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Qg=/#|$/,l2n=/[?&]($|#)/;VuI.prototype.pC=function(R,F,h,a,J){J=J||this.YI;try{var M=new B_;M.B.push(1);M.D[1]=rC("context",R);F.error&&F.meta&&F.id||(F=new Tg(yg(F)));if(F.msg){var v=F.msg.substring(0,512);M.B.push(2);M.D[2]=rC("msg",v)}var I=F.meta||{};if(this.Ib)try{this.Ib(I)}catch(p){}if(a)try{a(I)}catch(p){}a=[I];M.B.push(3);M.D[3]=a;var w=iM7();if(w.D){var E=w.D.url||"";M.B.push(4);M.D[4]=rC("top",E)}var B={url:w.B.url||""};if(w.B.url){var r=g.Gg(w.B.url);var Y=gy(r[1],null,r[3],r[4])}else Y="";E=[B,{url:Y}];M.B.push(5); M.D[5]=E;ObT(this.B,J,M,h)}catch(p){try{ObT(this.B,J,{context:"ecmserr",rctx:R,msg:yg(p),url:w&&w.B.url},h)}catch(k){}}return this.nf}; g.A(Tg,mSa);var HC,LT,N1=new M1;HC=new function(){var R="https:";ju&&ju.location&&ju.location.protocol==="http:"&&(R="http:");this.D=R;this.B=.01}; LT=new VuI;ju&&ju.document&&(ju.document.readyState=="complete"?CXi():N1.B&&Jt(ju,"load",function(){CXi()}));var R67=Date.now(),OA=-1,bb=-1,IaL,mG=-1,Sv=!1;o8.prototype.equals=function(R,F){return!!R&&(!(F===void 0?0:F)||this.volume==R.volume)&&this.K==R.K&&eu(this.B,R.B)&&!0};X1.prototype.G_=function(){return this.Y}; X1.prototype.equals=function(R,F){return this.L.equals(R.L,F===void 0?!1:F)&&this.Y==R.Y&&eu(this.K,R.K)&&eu(this.S,R.S)&&this.B==R.B&&this.N==R.N&&this.D==R.D&&this.Z==R.Z};var t6u={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Kl={pR:"start",Mm:"firstquartile",xt:"midpoint",iE:"thirdquartile",COMPLETE:"complete",ERROR:"error",VI:"metric",PAUSE:"pause",a$:"resume",dM:"skip",fR:"viewable_impression",QI:"mute",mD:"unmute",qm:"fullscreen",Nm:"exitfullscreen",Am:"bufferstart",UY:"bufferfinish",hm:"fully_viewable_audible_half_duration_impression",HF:"measurable_impression",oD:"abandon",OY:"engagedview",XP:"impression",vz:"creativeview",WF:"loaded", CbI:"progress",CLOSE:"close",J0R:"collapse",w9t:"overlay_resize",JI$:"overlay_unmeasurable_impression",TYb:"overlay_unviewable_impression",bSI:"overlay_viewable_immediate_impression",tyo:"overlay_viewable_end_of_session_impression",cz:"custom_metric_viewable",pL:"audio_audible",LL:"audio_measurable",KL:"audio_impression"},$Cf="start firstquartile midpoint thirdquartile resume loaded".split(" "),Apn=["start","firstquartile","midpoint","thirdquartile"],ww2=["abandon"],wT={UNKNOWN:-1,pR:0,Mm:1,xt:2, iE:3,COMPLETE:4,VI:5,PAUSE:6,a$:7,dM:8,fR:9,QI:10,mD:11,qm:12,Nm:13,hm:14,HF:15,oD:16,OY:17,XP:18,vz:19,WF:20,cz:21,Am:22,UY:23,KL:27,LL:28,pL:29};var h67={AGo:"addEventListener",T4o:"getMaxSize",tKb:"getScreenSize",bBu:"getState",ItQ:"getVersion",iXI:"removeEventListener",TEo:"isViewable"};Ih2.prototype.update=function(R){R&&R.document&&(this.Y=ev(!1,R,this.isMobileDevice),this.B=ev(!0,R,this.isMobileDevice),w_O(this,R),i1f(this,R))};tS.prototype.cancel=function(){xz().clearTimeout(this.B);this.B=null}; tS.prototype.schedule=function(){var R=this,F=xz(),h=hS().B.B;this.B=F.setTimeout(F1(h,fT(143,function(){R.D++;R.K.sample()})),FuO())};g.Q=lb.prototype;g.Q.UA=function(){return!1}; g.Q.initialize=function(){return this.isInitialized=!0}; g.Q.sC=function(){return this.B.fI}; g.Q.Uy=function(){return this.B.oR}; g.Q.fail=function(R,F){if(!this.oR||(F===void 0?0:F))this.oR=!0,this.fI=R,this.Z=0,this.B!=this||Vg(this)}; g.Q.getName=function(){return this.B.NQ}; g.Q.Om=function(){return this.B.o4()}; g.Q.o4=function(){return{}}; g.Q.k8=function(){return this.B.Z}; g.Q.BD=function(){var R=PC();R.B=ev(!0,this.K,R.isMobileDevice)}; g.Q.oV=function(){i1f(PC(),this.K)}; g.Q.R4=function(){return this.L.B}; g.Q.sample=function(){}; g.Q.isActive=function(){return this.B.S}; g.Q.XL=function(R){var F=this.B;this.B=R.k8()>=this.Z?R:this;F!==this.B?(this.S=this.B.S,Vg(this)):this.S!==this.B.S&&(this.S=this.B.S,Vg(this))}; g.Q.TE=function(R){if(R.D===this.B){var F=!this.L.equals(R,this.C);this.L=R;F&&rtB(this)}}; g.Q.hO=function(){return this.C}; g.Q.dispose=function(){this.Uz=!0}; g.Q.RR=function(){return this.Uz};g.Q=UA.prototype;g.Q.observe=function(){return!0}; g.Q.unobserve=function(){}; g.Q.u2=function(R){this.N=R}; g.Q.dispose=function(){if(!this.RR()){var R=this.D;g.Hh(R.N,this);R.C&&this.hO()&&BCT(R);this.unobserve();this.KI=!0}}; g.Q.RR=function(){return this.KI}; g.Q.Om=function(){return this.D.Om()}; g.Q.k8=function(){return this.D.k8()}; g.Q.sC=function(){return this.D.sC()}; g.Q.Uy=function(){return this.D.Uy()}; g.Q.XL=function(){}; g.Q.TE=function(){this.nG()}; g.Q.hO=function(){return this.Uz};g.Q=CT.prototype;g.Q.k8=function(){return this.B.k8()}; g.Q.sC=function(){return this.B.sC()}; g.Q.Uy=function(){return this.B.Uy()}; g.Q.create=function(R,F,h){var a=null;this.B&&(a=this.j1(R,F,h),Dn(this.B,a));return a}; g.Q.aV=function(){return this.AJ()}; g.Q.AJ=function(){return!1}; g.Q.init=function(R){return this.B.initialize()?(Dn(this.B,this),this.L=R,!0):!1}; g.Q.XL=function(R){R.k8()==0&&this.L(R.sC(),this)}; g.Q.TE=function(){}; g.Q.hO=function(){return!1}; g.Q.dispose=function(){this.N=!0}; g.Q.RR=function(){return this.N}; g.Q.Om=function(){return{}};cC.prototype.add=function(R,F,h){++this.K;R=new sPL(R,F,h);this.B.push(new sPL(R.D,R.B,R.K+this.K/4096));this.D=!0;return this};Q1m.prototype.toString=function(){var R="//pagead2.googlesyndication.com//pagead/gen_204",F=RT(this.B);F.length>0&&(R+="?"+F);return R};g.d.prototype.XS=!1;g.d.prototype.RR=function(){return this.XS}; g.d.prototype.dispose=function(){this.XS||(this.XS=!0,this.Ez())}; g.d.prototype[Symbol.dispose]=function(){this.dispose()}; g.d.prototype.addOnDisposeCallback=function(R,F){this.XS?F!==void 0?R.call(F):R():(this.N3||(this.N3=[]),F&&(R=R.bind(F)),this.N3.push(R))}; g.d.prototype.Ez=function(){if(this.N3)for(;this.N3.length;)this.N3.shift()()};aT.prototype.update=function(R,F,h){R&&(this.B+=F,this.D+=F,this.L+=F,this.K=Math.max(this.K,this.L));if(h===void 0?!R:h)this.L=0};var Hrn=[1,.75,.5,.3,0];JT.prototype.update=function(R,F,h,a,J,M){M=M===void 0?!0:M;F=J?Math.min(R,F):F;for(J=0;J0&&F>=v;v=!(R>0&&R>=v)||h;this.B[J].update(M&&I,a,!M||v)}};ih.prototype.update=function(R,F,h,a){this.Y=this.Y!=-1?Math.min(this.Y,F.Pc):F.Pc;this.aR=Math.max(this.aR,F.Pc);this.KI=this.KI!=-1?Math.min(this.KI,F.F4):F.F4;this.fI=Math.max(this.fI,F.F4);this.nI.update(F.F4,h.F4,F.B,R,a);this.Sl+=R;F.Pc===0&&(this.NQ+=R);this.D.update(F.Pc,h.Pc,F.B,R,a);h=a||h.wX!=F.wX?h.isVisible()&&F.isVisible():h.isVisible();F=!F.isVisible()||F.B;this.IR.update(h,R,F)}; ih.prototype.WR=function(){return this.IR.K>=this.HG};if(zg&&zg.URL){var lte=zg.URL,D4G;if(D4G=!!lte){var V67;a:{if(lte){var U49=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Es=U49.exec(decodeURIComponent(lte));if(Es){V67=Es[1]&&Es[1].length>1?Es[1].substring(1):"true";break a}}catch(R){}}V67=""}D4G=V67.length>0}LT.nf=!D4G};var C99=new oG(0,0,0,0);var brO=new oG(0,0,0,0);g.A(Yj,g.d);g.Q=Yj.prototype; g.Q.Ez=function(){if(this.K$.B){if(this.un.vM){var R=this.K$.B;typeof R.removeEventListener==="function"&&R.removeEventListener("mouseover",this.un.vM,aP());this.un.vM=null}this.un.Sc&&(R=this.K$.B,typeof R.removeEventListener==="function"&&R.removeEventListener("mouseout",this.un.Sc,aP()),this.un.Sc=null)}this.eP&&this.eP.dispose();this.wv&&this.wv.dispose();delete this.En;delete this.KC;delete this.kK;delete this.K$.Da;delete this.K$.B;delete this.un;delete this.eP;delete this.wv;delete this.Gn; g.d.prototype.Ez.call(this)}; g.Q.Mj=function(){return this.wv?this.wv.B:this.position}; g.Q.bS=function(R){hS().bS(R)}; g.Q.hO=function(){return!1}; g.Q.QG=function(){return new ih}; g.Q.O6=function(){return this.En}; g.Q.E4=function(R){return oi7(this,R,1E4)}; g.Q.gA=function(R,F,h,a,J,M,v){this.jN||(this.k$&&(R=this.n8(R,h,J,v),a=a&&this.m3.Pc>=(this.wX()?.3:.5),this.lU(M,R,a),this.EX=F,R.Pc>0&&-1===this.nh&&(this.nh=F),this.aI==-1&&this.WR()&&(this.aI=F),this.dH==-2&&(this.dH=Bj(this.Mj())?R.Pc:-1),this.m3=R),this.KC(this))}; g.Q.lU=function(R,F,h){this.O6().update(R,F,this.m3,h)}; g.Q.JA=function(){return new Wh}; g.Q.n8=function(R,F,h,a){h=this.JA();h.B=F;F=xz().D;F=Mx(zg)===0?-1:F.isVisible()?0:1;h.D=F;h.Pc=this.vC(R);h.wX=this.wX();h.F4=a;return h}; g.Q.vC=function(R){return this.opacity===0&&TD(this.Gn,"opac")===1?0:R}; g.Q.wX=function(){return!1}; g.Q.uZ=function(){return this.Lq||this.Ud}; g.Q.i6=function(){Zn()}; g.Q.vS=function(){Zn()}; g.Q.jo=function(){return 0}; g.Q.WR=function(){return this.En.WR()}; g.Q.Mo=function(){var R=this.k$;R=(this.hasCompleted||this.RR())&&!R;var F=hS().D!==2||this.ho$;return this.jN||F&&R?2:this.WR()?4:3}; g.Q.Yw=function(){return 0};g.AT.prototype.next=function(){return g.B2}; g.B2={done:!0,value:void 0};g.AT.prototype.CS=function(){return this};g.A(Px2,Wh);var r8=K9L([void 0,1,2,3,4,8,16]),Yc=K9L([void 0,4,8,16]),cGU={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ll("p0",Yc),p1:Ll("p1",Yc),p2:Ll("p2",Yc),p3:Ll("p3",Yc),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Hj("mtos1",[0,2,4],!1,Yc),mtos2:Hj("mtos2",[0,2,4],!1,Yc),mtos3:Hj("mtos3",[0,2,4],!1,Yc),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ll("a0",Yc),a1:Ll("a1",Yc),a2:Ll("a2",Yc),a3:Ll("a3",Yc),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:Ll("c0",Yc),c1:Ll("c1",Yc),c2:Ll("c2",Yc),c3:Ll("c3",Yc),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ll("qmtos",r8),qnc:Ll("qnc",r8),qmv:Ll("qmv",r8),qnv:Ll("qnv",r8), 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:Ll("ss0",Yc),ss1:Ll("ss1",Yc),ss2:Ll("ss2",Yc),ss3:Ll("ss3",Yc),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"},W46=Object.assign({},cGU,{avid:Z2("audio"),avas:"avas",vs:"vs"}),Ra4={atos:"atos",avt:Hj("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(R,F){return function(h){return h[R]===void 0&&F!==void 0?F:h[R]}}("ss",0), t:"t"};fl.prototype.getValue=function(){return this.D}; fl.prototype.update=function(R,F){R>=32||(this.B&1<=.5;ub(F.volume)&&(this.L=this.L!=-1?Math.min(this.L,F.volume):F.volume,this.S=Math.max(this.S,F.volume));M&&(this.Uz+=R,this.C+=J?R:0);this.B.update(F.Pc,h.Pc,F.B,R,a,J);this.K.update(!0,R);this.N.update(J,R);this.oR.update(h.fullscreen,R);this.uY.update(J&&!M,R);R=Math.floor(F.mediaTime/1E3);this.Oz.update(R,F.isVisible());this.T$.update(R,F.Pc>=1);this.Fo.update(R, Nh(F))}};CxO.prototype.D=function(R){this.K||(this.B(R)?(R=GYT(this.C,this.L,R),this.N|=R,R=R==0):R=!1,this.K=R)};g.A(bh,CxO);bh.prototype.B=function(){return!0}; bh.prototype.S=function(){return!1}; bh.prototype.getId=function(){var R=this,F=ER(Kl,function(h){return h==R.L}); return wT[F].toString()}; bh.prototype.toString=function(){var R="";this.S()&&(R+="c");this.K&&(R+="s");this.N>0&&(R+=":"+this.N);return this.getId()+R};g.A(OI,bh);OI.prototype.D=function(R,F){F=F===void 0?null:F;F!=null&&this.Y.push(F);bh.prototype.D.call(this,R)};g.A(mt,cxO);mt.prototype.D=function(){return null}; mt.prototype.K=function(){return[]};g.A(oT,UA);g.Q=oT.prototype;g.Q.BC=function(){if(this.element){var R=this.element,F=this.D.B.K;try{try{var h=vz7(R.getBoundingClientRect())}catch(E){h=new oG(0,0,0,0)}var a=h.right-h.left,J=h.bottom-h.top,M=D4f(R,F),v=M.x,I=M.y;var w=new oG(Math.round(I),Math.round(v+a),Math.round(I+J),Math.round(v))}catch(E){w=C99.clone()}this.K=w;this.B=YQn(this,this.K)}}; g.Q.F$=function(){this.S=this.D.L.B}; g.Q.UE=function(R){var F=TD(this.Gn,"od")==1;return Zr2(R,this.S,this.element,F)}; g.Q.Wd=function(){this.timestamp=Zn()}; g.Q.nG=function(){this.Wd();this.BC();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var R=this.element;var F=new g.t7(R.videoWidth,R.videoHeight);R=this.B;var h=XW(R),a=R.getHeight(),J=F.width;F=F.height;J<=0||F<=0||h<=0||a<=0||(J/=F,F=h/a,R=R.clone(),J>F?(h/=J,a=(a-h)/2,a>0&&(a=R.top+a,R.top=Math.round(a),R.bottom=Math.round(a+h))):(a*=J,h=Math.round((h-a)/2),h>0&&(h=R.left+h,R.left=Math.round(h),R.right=Math.round(h+a))));this.B=R}this.F$(); R=this.B;h=this.S;R=R.left<=h.right&&h.left<=R.right&&R.top<=h.bottom&&h.top<=R.bottom?new oG(Math.max(R.top,h.top),Math.min(R.right,h.right),Math.min(R.bottom,h.bottom),Math.max(R.left,h.left)):new oG(0,0,0,0);h=R.top>=R.bottom||R.left>=R.right?new oG(0,0,0,0):R;R=this.D.L;F=J=a=0;if((this.B.bottom-this.B.top)*(this.B.right-this.B.left)>0)if(this.UE(h))h=new oG(0,0,0,0);else{a=PC().L;F=new oG(0,a.height,a.width,0);var M;a=r4(h,(M=this.N)!=null?M:this.B);J=r4(h,PC().B);F=r4(h,F)}M=h.top>=h.bottom|| h.left>=h.right?new oG(0,0,0,0):nb(h,-this.B.left,-this.B.top);KT()||(J=a=0);this.C=new X1(R,this.element,this.B,M,a,J,this.timestamp,F)}; g.Q.getName=function(){return this.D.getName()};var FB6=new oG(0,0,0,0);g.A(Xm,oT);g.Q=Xm.prototype;g.Q.observe=function(){this.L();return!0}; g.Q.TE=function(){oT.prototype.nG.call(this)}; g.Q.Wd=function(){}; g.Q.BC=function(){}; g.Q.nG=function(){this.L();oT.prototype.nG.call(this)}; g.Q.XL=function(R){R=R.isActive();R!==this.Z&&(R?this.L():(PC().B=new oG(0,0,0,0),this.B=new oG(0,0,0,0),this.S=new oG(0,0,0,0),this.timestamp=-1));this.Z=R};var pa={},GFg=(pa.firstquartile=0,pa.midpoint=1,pa.thirdquartile=2,pa.complete=3,pa);g.A(nl,Yj);g.Q=nl.prototype;g.Q.hO=function(){return!0}; g.Q.Vr=function(){return this.l1==2}; g.Q.E4=function(R){return oi7(this,R,Math.max(1E4,this.K/3))}; g.Q.gA=function(R,F,h,a,J,M,v){var I=this,w=this.Y(this)||{};g.km(w,J);this.K=w.duration||this.K;this.C=w.isVpaid||this.C;this.NQ=w.isYouTube||this.NQ;xz();this.nI=!1;J=RV2(this,F);W9i(this)===1&&(M=J);Yj.prototype.gA.call(this,R,F,h,a,w,M,v);this.VZ&&this.VZ.K&&g.Uv(this.S,function(E){E.D(I)})}; g.Q.lU=function(R,F,h){Yj.prototype.lU.call(this,R,F,h);Pj(this).update(R,F,this.m3,h);this.HG=Nh(this.m3)&&Nh(F);this.fI==-1&&this.T$&&(this.fI=this.O6().K.B);this.ZG.K=0;R=this.WR();F.isVisible()&&qh(this.ZG,"vs");R&&qh(this.ZG,"vw");ub(F.volume)&&qh(this.ZG,"am");Nh(F)?qh(this.ZG,"a"):qh(this.ZG,"mut");this.yx&&qh(this.ZG,"f");F.D!=-1&&(qh(this.ZG,"bm"),F.D==1&&(qh(this.ZG,"b"),Nh(F)&&qh(this.ZG,"umutb")));Nh(F)&&F.isVisible()&&qh(this.ZG,"avs");this.HG&&R&&qh(this.ZG,"avw");F.Pc>0&&qh(this.ZG, "pv");zR(this,this.O6().K.B,!0)&&qh(this.ZG,"gdr");GR(this.O6().D,1)>=2E3&&qh(this.ZG,"pmx");this.nI&&qh(this.ZG,"tvoff")}; g.Q.QG=function(){return new jC}; g.Q.O6=function(){return this.En}; g.Q.JA=function(){return new Px2}; g.Q.n8=function(R,F,h,a){R=Yj.prototype.n8.call(this,R,F,h,a===void 0?-1:a);R.fullscreen=this.yx;R.paused=this.Vr();R.volume=h.volume;ub(R.volume)||(this.EP++,F=this.m3,ub(F.volume)&&(R.volume=F.volume));h=h.currentTime;R.mediaTime=h!==void 0&&h>=0?h:-1;return R}; g.Q.vC=function(R){return PC(),this.yx?1:Yj.prototype.vC.call(this,R)}; g.Q.jo=function(){return 1}; g.Q.getDuration=function(){return this.K}; g.Q.Mo=function(){return this.jN?2:hVg(this)?5:this.WR()?4:3}; g.Q.Yw=function(){return this.uY?this.O6().N.K>=2E3?4:3:2}; g.Q.u2=function(R){this.wv&&this.wv.u2(R)};var hav=g.w7();QHi.prototype.reset=function(){this.B=[];this.D=[]}; var UI=$z(QHi);g.A(Wj,CT);g.Q=Wj.prototype;g.Q.getName=function(){return(this.D?this.D:this.B).getName()}; g.Q.Om=function(){return(this.D?this.D:this.B).Om()}; g.Q.k8=function(){return(this.D?this.D:this.B).k8()}; g.Q.init=function(R){var F=!1;(0,g.Uv)(this.K,function(h){h.initialize()&&(F=!0)}); F&&(this.L=R,Dn(this.B,this));return F}; g.Q.dispose=function(){(0,g.Uv)(this.K,function(R){R.dispose()}); CT.prototype.dispose.call(this)}; g.Q.aV=function(){return dy(this.K,function(R){return R.UA()})}; g.Q.AJ=function(){return dy(this.K,function(R){return R.UA()})}; g.Q.j1=function(R,F,h){return new oT(R,this.B,F,h)}; g.Q.TE=function(R){this.D=R.D};var q1B={threshold:[0,.3,.5,.75,1]};g.A(Rh,oT);g.Q=Rh.prototype;g.Q.observe=function(){var R=this;this.aR||(this.aR=Zn());if(WOO(298,function(){return faf(R)}))return!0; this.D.fail("msf");return!1}; g.Q.unobserve=function(){if(this.L&&this.element)try{this.L.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.Y&&(this.Y.disconnect(),this.Y=null)}catch(R){}}; g.Q.nG=function(){var R=Fz(this);R.length>0&&hN(this,R);oT.prototype.nG.call(this)}; g.Q.BC=function(){}; g.Q.UE=function(){return!1}; g.Q.F$=function(){}; g.Q.Om=function(){var R={};return Object.assign(this.D.Om(),(R.niot_obs=this.aR,R.niot_cbk=this.oR,R))}; g.Q.getName=function(){return"nio"};g.A(ah,CT);ah.prototype.getName=function(){return"nio"}; ah.prototype.AJ=function(){return!PC().D&&this.B.B.K.IntersectionObserver!=null}; ah.prototype.j1=function(R,F,h){return new Rh(R,this.B,F,h)};g.A(JN,lb);JN.prototype.R4=function(){return PC().B}; JN.prototype.UA=function(){var R=ZKi();this.Z!==R&&(this.B!=this&&R>this.B.Z&&(this.B=this,Vg(this)),this.Z=R);return R==2};Mp.prototype.sample=function(){GB(this,Cl(),!1)}; Mp.prototype.L=function(){var R=KT(),F=Zn();R?(Sv||(OA=F,g.Uv(UI.B,function(h){var a=h.O6();a.PG=Zu(a,F,h.l1!=1)})),Sv=!0):(this.Y=oMi(this,F),Sv=!1,IaL=F,g.Uv(UI.B,function(h){h.k$&&(h.O6().Z=F)})); GB(this,Cl(),!R)}; var vB=$z(Mp);var eVB=null,ZM="",jp=!1;var dw_=uFL().P0,iE=uFL().g0;var KyL={heR:"visible",d2o:"audible",nYR:"time",zZt:"timetype"},tbi={visible:function(R){return/^(100|[0-9]{1,2})$/.test(R)}, audible:function(R){return R=="0"||R=="1"}, timetype:function(R){return R=="mtos"||R=="tos"}, time:function(R){return/^(100|[0-9]{1,2})%$/.test(R)||/^([0-9])+ms$/.test(R)}}; zVa.prototype.setTime=function(R,F,h){F=="ms"?(this.K=R,this.L=-1):(this.K=-1,this.L=R);this.N=h===void 0?"tos":h;return this};g.A(rT,bh);rT.prototype.getId=function(){return this.Y}; rT.prototype.S=function(){return!0}; rT.prototype.B=function(R){var F=R.O6(),h=R.getDuration();return dy(this.Z,function(a){if(a.B!=void 0)var J=DwB(a,F);else b:{switch(a.N){case "mtos":J=a.D?F.N.K:F.K.B;break b;case "tos":J=a.D?F.N.B:F.K.B;break b}J=0}J==0?a=!1:(a=a.K!=-1?a.K:h!==void 0&&h>0?a.L*h:-1,a=a!=-1&&J>=a);return a})};g.A(YX,lfL);YX.prototype.B=function(R){var F=new tXB;F.B=yl(R,cGU);F.D=yl(R,Ra4);return F};g.A(s_,bh);s_.prototype.B=function(R){return hVg(R)};g.A(pi,cxO);g.A(kX,bh);kX.prototype.B=function(R){return R.O6().WR()};g.A(Q3,OI);Q3.prototype.B=function(R){var F=g.x7(this.Y,TD(hS().Gn,"ovms"));return!R.jN&&(R.l1!=0||F)};g.A($X,pi);$X.prototype.D=function(){return new Q3(this.B)}; $X.prototype.K=function(){return[new kX("viewable_impression",this.B),new s_(this.B)]};g.A(AN,Xm);AN.prototype.L=function(){var R=g.hG("ima.admob.getViewability"),F=TD(this.Gn,"queryid");typeof R==="function"&&F&&R(F)}; AN.prototype.getName=function(){return"gsv"};g.A(xX,CT);xX.prototype.getName=function(){return"gsv"}; xX.prototype.AJ=function(){var R=PC();hS();return R.D&&!1}; xX.prototype.j1=function(R,F,h){return new AN(this.B,F,h)};g.A(Np,Xm);Np.prototype.L=function(){var R=this,F=g.hG("ima.bridge.getNativeViewability"),h=TD(this.Gn,"queryid");typeof F==="function"&&h&&F(h,function(a){g.BV(a)&&R.Y++;var J=a.opt_nativeViewVisibleBounds||{},M=a.opt_nativeViewHidden;R.B=gzO(a.opt_nativeViewBounds||{});var v=R.D.L;v.B=M?FB6.clone():gzO(J);R.timestamp=a.opt_nativeTime||-1;PC().B=v.B;a=a.opt_nativeVolume;a!==void 0&&(v.volume=a)})}; Np.prototype.getName=function(){return"nis"};g.A(HB,CT);HB.prototype.getName=function(){return"nis"}; HB.prototype.AJ=function(){var R=PC();hS();return R.D&&!1}; HB.prototype.j1=function(R,F,h){return new Np(this.B,F,h)};g.A(Li,lb);g.Q=Li.prototype;g.Q.UA=function(){return this.D.zK!=null}; g.Q.o4=function(){var R={};this.Oz&&(R.mraid=this.Oz);this.KI&&(R.mlc=1);R.mtop=this.D.z0Q;this.Y&&(R.mse=this.Y);this.Sl&&(R.msc=1);R.mcp=this.D.compatibility;return R}; g.Q.wB=function(R){var F=g.u7.apply(1,arguments);try{return this.D.zK[R].apply(this.D.zK,F)}catch(h){jv(538,h,.01,function(a){a.method=R})}}; g.Q.initialize=function(){var R=this;if(this.isInitialized)return!this.Uy();this.isInitialized=!0;if(this.D.compatibility===2)return this.Y="ng",this.fail("w"),!1;if(this.D.compatibility===1)return this.Y="mm",this.fail("w"),!1;PC().Z=!0;this.K.document.readyState&&this.K.document.readyState=="complete"?cyi(this):EI(this.K,"load",function(){xz().setTimeout(fT(292,function(){return cyi(R)}),100)},292); return!0}; g.Q.BD=function(){var R=PC(),F=azg(this,"getMaxSize");R.B=new oG(0,F.width,F.height,0)}; g.Q.oV=function(){PC().L=azg(this,"getScreenSize")}; g.Q.dispose=function(){Rti(this);lb.prototype.dispose.call(this)};var q$L=new function(R,F){this.key=R;this.defaultValue=F===void 0?!1:F;this.valueType="boolean"}("45378663");g.Q=y3.prototype;g.Q.Km=function(R){Ql(R,!1);NXi(R)}; g.Q.im=function(){}; g.Q.fU=function(R,F,h,a){var J=this;R=new nl(ju,R,h?F:-1,7,this.Xy(),this.mQ());R.zT=a;Xif(R.Gn);LM(R.Gn,"queryid",R.zT);R.bS("");ni_(R,function(){return J.gG.apply(J,g.S(g.u7.apply(0,arguments)))},function(){return J.P3.apply(J,g.S(g.u7.apply(0,arguments)))}); (a=$z(cj).B)&&mII(R,a);this.K&&(R.u2(this.K),this.K=null);R.K$.Da&&$z(bKi);return R}; g.Q.XL=function(R){switch(R.k8()){case 0:if(R=$z(cj).B)R=R.B,g.Hh(R.N,this),R.C&&this.hO()&&BCT(R);fi();break;case 2:gT()}}; g.Q.TE=function(){}; g.Q.hO=function(){return!1}; g.Q.P3=function(R,F){R.jN=!0;switch(R.jo()){case 1:IzI(R,F);break;case 2:this.xa(R)}}; g.Q.Fh=function(R){var F=R.Y(R);F&&(F=F.volume,R.uY=ub(F)&&F>0);MbB(R,0);return tT(R,"start",KT())}; g.Q.X1=function(R,F,h){GB(vB,[R],!KT());return this.H0(R,F,h)}; g.Q.H0=function(R,F,h){return tT(R,h,KT())}; g.Q.Jz=function(R){return uE(R,"firstquartile",1)}; g.Q.Ia=function(R){R.T$=!0;return uE(R,"midpoint",2)}; g.Q.W3=function(R){return uE(R,"thirdquartile",3)}; g.Q.gP=function(R){var F=uE(R,"complete",4);uh(R);return F}; g.Q.Yy=function(R){R.l1=3;return tT(R,"error",KT())}; g.Q.xd=function(R,F,h){F=KT();if(R.Vr()&&!F){var a=R.O6(),J=Zn();a.Z=J}GB(vB,[R],!F);R.Vr()&&(R.l1=1);return tT(R,h,F)}; g.Q.y0=function(R,F){F=this.X1(R,F||{},"skip");uh(R);return F}; g.Q.Ts=function(R,F){Ql(R,!0);return this.X1(R,F||{},"fullscreen")}; g.Q.wP=function(R,F){Ql(R,!1);return this.X1(R,F||{},"exitfullscreen")}; g.Q.hH=function(R,F,h){F=R.O6();var a=Zn();F.PG=Zu(F,a,R.l1!=1);GB(vB,[R],!KT());R.l1==1&&(R.l1=2);return tT(R,h,KT())}; g.Q.ZC=function(R){GB(vB,[R],!KT());return R.D()}; g.Q.KW=function(R){GB(vB,[R],!KT());this.bB(R);uh(R);return R.D()}; g.Q.gG=function(){}; g.Q.xa=function(){}; g.Q.bB=function(){}; g.Q.dS=function(){}; g.Q.PC=function(){}; g.Q.mQ=function(){this.B||(this.B=this.PC());return this.B==null?new mt:new $X(this.B)}; g.Q.Xy=function(){return new YX};g.A(dT,bh);dT.prototype.B=function(R){return R.Yw()==4};g.A(PB,OI);PB.prototype.B=function(R){R=R.Yw();return R==3||R==4};g.A(zB,pi);zB.prototype.D=function(){return new PB(this.B)}; zB.prototype.K=function(){return[new dT(this.B)]};g.A(Ki,lfL);Ki.prototype.B=function(R){R&&(R.e===28&&(R=Object.assign({},R,{avas:3})),R.vs===4||R.vs===5)&&(R=Object.assign({},R,{vs:3}));var F=new tXB;F.B=yl(R,W46);F.D=yl(R,Ra4);return F};BjB.prototype.D=function(){return g.hG(this.B)};g.A(tN,y3);g.Q=tN.prototype;g.Q.im=function(R,F){var h=this,a=$z(cj);if(a.B!=null)switch(a.B.getName()){case "nis":var J=pJI(this,R,F);break;case "gsv":J=sdf(this,R,F);break;case "exc":J=kYn(this,R)}J||(F.opt_overlayAdElement?J=void 0:F.opt_adElement&&(J=wJ7(this,R,F.opt_adElement,F.opt_osdId)));J&&J.jo()==1&&(J.Y==g.bX&&(J.Y=function(M){return h.dS(M)}),Y8L(this,J,F)); return J}; g.Q.dS=function(R){R.D=0;R.Uz=0;if(R.L=="h"||R.L=="n"){hS();R.Fo&&(hS(),ep(this)!="h"&&ep(this));var F=g.hG("ima.common.getVideoMetadata");if(typeof F==="function")try{var h=F(R.zT)}catch(J){R.D|=4}else R.D|=2}else if(R.L=="b")if(F=g.hG("ytads.bulleit.getVideoMetadata"),typeof F==="function")try{h=F(R.zT)}catch(J){R.D|=4}else R.D|=2;else if(R.L=="ml")if(F=g.hG("ima.common.getVideoMetadata"),typeof F==="function")try{h=F(R.zT)}catch(J){R.D|=4}else R.D|=2;else R.D|=1;R.D||(h===void 0?R.D|=8:h===null? R.D|=16:g.BV(h)?R.D|=32:h.errorCode!=null&&(R.Uz=h.errorCode,R.D|=64));h==null&&(h={});F=h;R.Z=0;for(var a in t6u)F[a]==null&&(R.Z|=t6u[a]);Edf(F,"currentTime");Edf(F,"duration");ub(h.volume)&&ub()&&(h.volume*=NaN);return h}; g.Q.PC=function(){hS();ep(this)!="h"&&ep(this);var R=Qd2(this);return R!=null?new BjB(R):null}; g.Q.xa=function(R){!R.B&&R.jN&&ni(this,R,"overlay_unmeasurable_impression")&&(R.B=!0)}; g.Q.bB=function(R){R.Rw&&(R.WR()?ni(this,R,"overlay_viewable_end_of_session_impression"):ni(this,R,"overlay_unviewable_impression"),R.Rw=!1)}; g.Q.gG=function(){}; g.Q.fU=function(R,F,h,a){if(f2n()){var J=TD(hS().Gn,"mm"),M={};(J=(M[a8.EY]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",M[a8.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",M)[J])&&Nj_(this,J);this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&jv(1044,Error())}R=y3.prototype.fU.call(this,R,F,h,a);this.N&&(F=this.S,R.N==null&&(R.N=new uj7),F.B[R.zT]=R.N,R.N.N=hav);return R}; g.Q.Km=function(R){R&&R.jo()==1&&this.N&&delete this.S.B[R.zT];return y3.prototype.Km.call(this,R)}; g.Q.mQ=function(){this.B||(this.B=this.PC());return this.B==null?new mt:this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new zB(this.B):new $X(this.B)}; g.Q.Xy=function(){return this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Ki:new YX}; g.Q.u2=function(R,F,h,a,J){F=new oG(h,F+a,h+J,F);(R=Vl(UI,R))?R.u2(F):this.K=F}; var a7g=q1(193,LIg,void 0,iEg);g.Fk("Goog_AdSense_Lidar_sendVastEvent",a7g);var JX4=fT(194,function(R,F){F=F===void 0?{}:F;R=xC7($z(tN),R,F);return HEn(R)}); g.Fk("Goog_AdSense_Lidar_getViewability",JX4);var MPv=q1(195,function(){return kDa()}); g.Fk("Goog_AdSense_Lidar_getUrlSignalsArray",MPv);var vmG=fT(196,function(){return JSON.stringify(kDa())}); g.Fk("Goog_AdSense_Lidar_getUrlSignalsList",vmG);var q8g=sm(["//ep2.adtrafficquality.google/sodar/",""]),fzg=sm(["//tpc.googlesyndication.com/sodar/",""]);g.A(V3,Error);g.A(cB,g.d);cB.prototype.iH=function(){return this.wpc.f()}; cB.prototype.kF=function(R){this.wpc.c(R)}; cB.prototype.m7=function(R){return this.wpc.m(S8a(R))}; cB.prototype.Lx=function(R){return this.wpc.mws(S8a(R))}; g.A(U_,g.d);U_.prototype.snapshot=function(R){return this.VK.s(Object.assign({},R.sS&&{c:R.sS},R.QS&&{s:R.QS},R.Cf!==void 0&&{p:R.Cf}))}; U_.prototype.oE=function(R){this.VK.e(R)}; U_.prototype.n6=function(){return this.VK.l()};var ndO;g.A(Rx,g.d);Rx.prototype.share=function(){if(this.RR())throw Error("E:AD");this.L++;return this}; Rx.prototype.dispose=function(){--this.L||g.d.prototype.dispose.call(this)}; ndO=Symbol.dispose;uLL.prototype.bb=function(R,F){this.B.bb("/client_streamz/bg/frs",R,F)}; dCg.prototype.bb=function(R,F,h,a,J,M){this.B.bb("/client_streamz/bg/wrl",R,F,h,a,J,M)}; PcL.prototype.tj=function(R,F){this.B.nS("/client_streamz/bg/ec",R,F)}; zt7.prototype.bb=function(R,F,h){this.B.bb("/client_streamz/bg/el",R,F,h)}; KIT.prototype.tj=function(R,F){this.B.nS("/client_streamz/bg/cec",R,F)}; tL7.prototype.tj=function(R,F){this.B.nS("/client_streamz/bg/po/csc",R,F)}; lzI.prototype.tj=function(R,F){this.B.nS("/client_streamz/bg/po/ctav",R,F)}; DCi.prototype.tj=function(R,F){this.B.nS("/client_streamz/bg/po/cwsc",R,F)};g.A(VLO,Ap);g.A(ax,Ap);var iL=[1,2,3];var gm7=[0,iL,ukk,Og7,eU6];var GDe=[0,g8,[0,T7e,fth]];g.A(JV,Ap);var Ix=[1,2,3];var I77=[0,Ix,ZgU,qvu,IW,GDe];g.A(MT,Ap);var iM9=[0,g8,gm7,I77];var wVh=[0,v2];g.A(vp,Ap);var Em9=[0,v2,-1,Xh4];var Bdg=[0,v2,-1,bg4,Xh4];g.A(gF,Ap);var BST=[1,2,3];var rXu=[0,BST,IW,Em9,IW,Bdg,IW,wVh];g.A(Gd,Ap);Gd.prototype.Ot=function(){var R=Jy(this,3,Lr,3,!0);tt(R);return R[void 0]};Gd.prototype.K=Hb2([0,v2,rXu,n74,g8,iM9,m4h,o7k]);g.A(Cci,Ap);g.Q=wF.prototype;g.Q.isEnabled=function(){if(!g.Wi.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{D8:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.Q.set=function(R,F,h){var a=!1;if(typeof h==="object"){var J=h.N$z;a=h.secure||!1;var M=h.domain||void 0;var v=h.path||void 0;var I=h.D8}if(/[;=\s]/.test(R))throw Error('Invalid cookie name "'+R+'"');if(/[;\r\n]/.test(F))throw Error('Invalid cookie value "'+F+'"');I===void 0&&(I=-1);h=M?";domain="+M:"";v=v?";path="+v:"";a=a?";secure":"";I=I<0?"":I==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+I*1E3)).toUTCString();this.B.cookie=R+"="+F+h+v+I+a+(J!=null?";samesite="+ J:"")}; g.Q.get=function(R,F){for(var h=R+"=",a=(this.B.cookie||"").split(";"),J=0,M;J=0;F--)this.remove(R[F])}; var ZD=new wF(typeof document=="undefined"?null:document);Bp.prototype.compress=function(R){var F,h,a,J;return g.u(function(M){switch(M.D){case 1:return F=new CompressionStream("gzip"),h=(new Response(F.readable)).arrayBuffer(),a=F.writable.getWriter(),g.m(M,a.write((new TextEncoder).encode(R)),2);case 2:return g.m(M,a.close(),3);case 3:return J=Uint8Array,g.m(M,h,4);case 4:return M.return(new J(M.B))}})}; Bp.prototype.isSupported=function(R){return R<1024?!1:typeof CompressionStream!=="undefined"};g.A(rF,Ap);YA.prototype.setInterval=function(R){this.intervalMs=R;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; YA.prototype.start=function(){var R=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){R.tick()},this.intervalMs),this.D=this.B())}; YA.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; YA.prototype.tick=function(){var R=this;if(this.enabled){var F=Math.max(this.B()-this.D,0);F0?h:void 0));h=WX(h,4,En(J>0?J:void 0));h=WX(h,5,En(M>0?M:void 0));J=h.Bo;M=J[n1]|0;h=K1(h,M)?h:Kr(h,J,M)?tx(h,J):new h.constructor(zr(J,M,!0));Qx(v,Qb,10,h)}v=this.B.clone();h=Date.now().toString();v=WX(v,4,Ax(h));R=Hw(v,yb,3,R.slice());a&&(v=new pu,a=WX(v,13,En(a)),v=new kA, a=Qx(v,pu,2,a),v=new Td,a=Qx(v,kA,1,a),a=my(a,2,9),Qx(R,Td,18,a));F&&b3(R,14,F);return R};g.bL.prototype.D=0;g.bL.prototype.reset=function(){this.B=this.K=this.L;this.D=0}; g.bL.prototype.getValue=function(){return this.K};g.A(cJ,Ap);var YRv=WJ(cJ);g.A(xSB,Ap);var kc;kc=new NsI;g.A(ox,g.d);g.Q=ox.prototype;g.Q.Ez=function(){mz(this);this.D.stop();this.Oz.stop();g.d.prototype.Ez.call(this)}; g.Q.dispatch=function(R){if(R instanceof yb)this.log(R);else try{var F=new yb,h=R.zq();var a=Sb(F,8,h);this.log(a)}catch(J){eR(this,4,1)}}; g.Q.log=function(R){eR(this,2,1);if(this.Sl){R=R.clone();var F=this.IR++;R=b3(R,21,F);this.componentId&&Sb(R,26,this.componentId);F=R;var h=Cr(F,1);var a=a===void 0?!1:a;var J=typeof h;a=h==null?h:J==="bigint"?String(sn(64,h)):wR(h)?J==="string"?Yi(h):a?QK(h):$i(h):void 0;a==null&&(a=Date.now(),a=Number.isFinite(a)?a.toString():"0",WX(F,1,Ax(a)));a=Cr(F,15);a!=null&&(typeof a==="bigint"?o1(a)?a=Number(a):(a=sn(64,a),a=o1(a)?Number(a):String(a)):a=wR(a)?typeof a==="number"?$i(a):Yi(a):void 0);a!=null|| b3(F,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(a=this.experimentIds.clone(),Qx(F,rF,16,a));eR(this,1,1);F=this.B.length-1E3+1;F>0&&(this.B.splice(0,F),this.L+=F,eR(this,3,F));this.B.push(R);this.RF||this.D.enabled||this.D.start()}}; g.Q.flush=function(R,F){var h=this;if(this.B.length===0)R&&R();else if(this.fI&&this.oR)this.K.D=3,AS7(this);else{var a=Date.now();if(this.PG>a&&this.Uz0&&(h.Uz=Date.now(),h.PG=h.Uz+Y);Y=Ev(jX);var H;eY&&Y&&((H=p.Bo[Y])==null?void 0:H[175237375])!=null&&oP(It4,3);a:{var T=T===void 0?!1:T;if(Ev(igg)&&Ev(jX)&&void 0===igg){H=p.Bo;Y=H[jX];if(!Y)break a;if(Y=Y.Lf)try{Y(H,175237375,suu);break a}catch(Z){H_(Z)}}T&&(T=p.Bo, (H=Ev(jX))&&H in T&&(T=T[H])&&delete T[175237375])}T=kc.B?kc.D(p,kc.B,175237375,kc.K):kc.D(p,175237375,null,kc.K);if(T=T===null?void 0:T)T=TF(T,1,-1),T!==-1&&(h.N=new g.bL(T<1?1:T,3E5,.1),h.D.setInterval(h.N.getValue()))}}R&&R();h.S=0},B=function(Y,p){var k=kM(M,yb,3); var H=Number(XZ7(M,14));g.SR(h.N);h.D.setInterval(h.N.getValue());Y===401&&v&&(h.NQ=v);H&&(h.L+=H);p===void 0&&(p=h.isRetryable(Y));p&&(h.B=k.concat(h.B),h.RF||h.D.enabled||h.D.start());eR(h,7,1);F&&F("net-send-failed",Y);++h.S},r=function(){h.network&&h.network.send(w,E,B)}; I?I.then(function(Y){eR(h,5,J);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=Y;w.ZR=2;r()},function(){eR(h,6,J); r()}):r()}}}}; g.Q.isRetryable=function(R){return 500<=R&&R<600||R===401||R===0};nu.prototype.send=function(R,F,h){var a=this,J,M,v,I,w,E,B,r,Y,p;return g.u(function(k){switch(k.D){case 1:return M=(J=a.rM?new AbortController:void 0)?setTimeout(function(){J.abort()},R.timeoutMillis):void 0,g.Hi(k,2,3),v=Object.assign({},{method:R.requestType, headers:Object.assign({},R.requestHeaders)},R.body&&{body:R.body},R.withCredentials&&{credentials:"include"},{signal:R.timeoutMillis&&J?J.signal:null}),g.m(k,fetch(R.url,v),5);case 5:I=k.B;if(I.status!==200){(w=h)==null||w(I.status);k.G$(3);break}if((E=F)==null){k.G$(7);break}return g.m(k,I.text(),8);case 8:E(k.B);case 7:case 3:g.SB(k);clearTimeout(M);g.Om(k,0);break;case 2:B=g.f_(k);switch((r=B)==null?void 0:r.name){case "AbortError":(Y=h)==null||Y(408);break;default:(p=h)==null||p(400)}k.G$(3)}})}; nu.prototype.ED=function(){return 4};g.A(uL,g.d);uL.prototype.c5=function(){this.N=!0;return this}; uL.prototype.build=function(){this.network||(this.network=new nu);var R=new ox({logSource:this.logSource,m5:this.m5?this.m5:GgO,sessionIndex:this.sessionIndex,xxt:this.ix,yZ:this.L,RF:!1,c5:this.N,tL:this.tL,network:this.network});g.z(this,R);if(this.D){var F=this.D,h=ZR(R.K);Sb(h,7,F)}R.Y=new Bp;this.componentId&&(R.componentId=this.componentId);this.gO&&(R.gO=this.gO);this.pageId&&(R.pageId=this.pageId);this.B&&((h=this.B)?(R.experimentIds||(R.experimentIds=new rF),F=R.experimentIds,h=h.zq(),Sb(F, 4,h)):R.experimentIds&&WX(R.experimentIds,4));this.K&&(R.fI=R.oR);s8L(R.K);this.network.TM&&this.network.TM(this.logSource);this.network.jnA&&this.network.jnA(R);return R};g.A(dF,g.d);dF.prototype.flush=function(R){R=R||[];if(R.length){for(var F=new Cci,h=[],a=0;a-1?(F=R[v],h||(F.Wq=!1)):(F=new fnn(F,this.src,M,!!a,J),F.Wq=h,R.push(F));return F}; g.Q.remove=function(R,F,h,a){R=R.toString();if(!(R in this.listeners))return!1;var J=this.listeners[R];F=cp(J,F,h,a);return F>-1?(Vb(J[F]),g.N4(J,F),J.length==0&&(delete this.listeners[R],this.B--),!0):!1}; g.Q.removeAll=function(R){R=R&&R.toString();var F=0,h;for(h in this.listeners)if(!R||h==R){for(var a=this.listeners[h],J=0;J-1?R[J]:null}; g.Q.hasListener=function(R,F){var h=R!==void 0,a=h?R.toString():"",J=F!==void 0;return g.JX(this.listeners,function(M){for(var v=0;v>>0);g.Bh(g.EL,g.d);g.EL.prototype[ySi]=!0;g.Q=g.EL.prototype;g.Q.addEventListener=function(R,F,h,a){g.R2(this,R,F,h,a)}; g.Q.removeEventListener=function(R,F,h,a){oR_(this,R,F,h,a)}; g.Q.dispatchEvent=function(R){var F=this.NG;if(F){var h=[];for(var a=1;F;F=F.NG)h.push(F),++a}F=this.vj;a=R.type||R;if(typeof R==="string")R=new g.tV(R,F);else if(R instanceof g.tV)R.target=R.target||F;else{var J=R;R=new g.tV(a,F);g.km(R,J)}J=!0;var M;if(h)for(M=h.length-1;!R.D&&M>=0;M--){var v=R.currentTarget=h[M];J=BL(v,a,!0,R)&&J}R.D||(v=R.currentTarget=F,J=BL(v,a,!0,R)&&J,R.D||(J=BL(v,a,!1,R)&&J));if(h)for(M=0;!R.D&&M0){this.D--;var R=this.B;this.B=R.next;R.next=null}else R=this.K();return R};var sL;ka.prototype.add=function(R,F){var h=PbB.get();h.set(R,F);this.D?this.D.next=h:this.B=h;this.D=h}; ka.prototype.remove=function(){var R=null;this.B&&(R=this.B,this.B=this.B.next,this.B||(this.D=null),R.next=null);return R}; var PbB=new rq(function(){return new Q0},function(R){return R.reset()}); Q0.prototype.set=function(R,F){this.B=R;this.scope=F;this.next=null}; Q0.prototype.reset=function(){this.next=this.scope=this.B=null};var $a,Ah=!1,u1L=new ka;zjT.prototype.reset=function(){this.context=this.D=this.K=this.B=null;this.L=!1}; var KG_=new rq(function(){return new zjT},function(R){R.reset()}); g.qW.prototype.then=function(R,F,h){return R4a(this,Ya(typeof R==="function"?R:null),Ya(typeof F==="function"?F:null),h)}; g.qW.prototype.$goog_Thenable=!0;g.Q=g.qW.prototype;g.Q.finally=function(R){var F=this;R=Ya(R);return new Promise(function(h,a){Vv_(F,function(J){R();h(J)},function(J){R(); a(J)})})}; g.Q.eK=function(R,F){return R4a(this,null,Ya(R),F)}; g.Q.catch=g.qW.prototype.eK;g.Q.cancel=function(R){if(this.B==0){var F=new OL(R);g.T3(function(){U1a(this,F)},this)}}; g.Q.wfo=function(R){this.B=0;y0(this,2,R)}; g.Q.J4A=function(R){this.B=0;y0(this,3,R)}; g.Q.pH=function(){for(var R;R=Cb_(this);)cSL(this,R,this.B,this.Y);this.S=!1}; var JT7=H_;g.Bh(OL,r7);OL.prototype.name="cancel";g.Bh(g.m7,g.EL);g.Q=g.m7.prototype;g.Q.enabled=!1;g.Q.tp=null;g.Q.setInterval=function(R){this.W_=R;this.tp&&this.enabled?(this.stop(),this.start()):this.tp&&this.stop()}; g.Q.c4l=function(){if(this.enabled){var R=g.w7()-this.kE;R>0&&R0&&(this.getStatus(),this.S=setTimeout(this.jf.bind(this), this.oR)),this.getStatus(),this.C=!0,this.B.send(R),this.C=!1}catch(v){this.getStatus(),QTi(this,v)}}; g.Q.jf=function(){typeof th!="undefined"&&this.B&&(this.L="Timed out after "+this.oR+"ms, aborting",this.D=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.Q.abort=function(R){this.B&&this.K&&(this.getStatus(),this.K=!1,this.N=!0,this.B.abort(),this.N=!1,this.D=R||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),KJ(this))}; g.Q.Ez=function(){this.B&&(this.K&&(this.K=!1,this.N=!0,this.B.abort(),this.N=!1),KJ(this,!0));g.z3.dk.Ez.call(this)}; g.Q.x3=function(){this.RR()||(this.KI||this.C||this.N?$hi(this):this.Sio())}; g.Q.Sio=function(){$hi(this)}; g.Q.isActive=function(){return!!this.B}; g.Q.isComplete=function(){return g.le(this)==4}; g.Q.getStatus=function(){try{return g.le(this)>2?this.B.status:-1}catch(R){return-1}}; g.Q.getResponseHeader=function(R){if(this.B&&this.isComplete())return R=this.B.getResponseHeader(R),R===null?void 0:R}; g.Q.getLastError=function(){return typeof this.L==="string"?this.L:String(this.L)};cL.prototype.send=function(R,F,h){F=F===void 0?function(){}:F; h=h===void 0?function(){}:h; pji(R.url,function(a){a=a.target;DH(a)?F(g.V0(a)):h(a.getStatus())},R.requestType,R.body,R.requestHeaders,R.timeoutMillis,R.withCredentials)}; cL.prototype.ED=function(){return 1};Rj.prototype.done=function(){this.logger.BK(this.event,WL()-this.startTime)}; g.A(Fy,Rx);g.A(aj,Fy);g.Q=aj.prototype;g.Q.uh=function(){}; g.Q.KP=function(){}; g.Q.BK=function(){}; g.Q.X4=function(){}; g.Q.UZ=function(){}; g.Q.By=function(R,F,h,a){return a}; g.Q.C1=function(){}; g.Q.eU=function(){}; g.Q.zl=function(){}; g.Q.RP=function(){}; g.A(J1,Fy);g.Q=J1.prototype;g.Q.update=function(R){this.logger.dispose();this.logger=R}; g.Q.KP=function(R){this.logger.KP(R)}; g.Q.BK=function(R,F){this.logger.BK(R,F)}; g.Q.X4=function(R){this.logger.X4(R)}; g.Q.UZ=function(){this.logger.UZ()}; g.Q.By=function(R,F,h,a){return this.logger.By(R,F,h,a)}; g.Q.C1=function(R){this.logger.C1(R)}; g.Q.eU=function(R){this.logger.eU(R)}; g.Q.zl=function(R){this.logger.zl(R)}; g.Q.RP=function(R){this.logger.RP(R)}; g.Q.uh=function(R){this.logger.uh(R)}; g.A(MK,g.d);g.A(vY,Fy);g.Q=vY.prototype;g.Q.uh=function(R){this.metrics.uto.bb(R,this.H_)}; g.Q.KP=function(R){this.metrics.eventCount.tj(R,this.H_)}; g.Q.BK=function(R,F){this.metrics.Eu.bb(F,R,this.H_)}; g.Q.X4=function(R){this.metrics.errorCount.tj(R,this.H_)}; g.Q.By=function(R,F,h,a){function J(I){if(!M.RR()){var w=WL()-v;M.metrics.dFt.bb(w,R,h,I,F,M.H_)}} var M=this,v=WL();a.then(function(){return void J(0)},function(I){return void J(I instanceof nJ?I.code:-1)}); return a}; g.Q.C1=function(R){this.metrics.EZt.tj(R,this.H_)}; g.Q.eU=function(R){this.metrics.F2.tj(R,this.H_)}; g.Q.zl=function(R){this.metrics.DFu.tj(R,this.H_)}; g.A(gz,vY);gz.prototype.RP=function(R){var F=this;R=R.slice();g.l9(R);g.Dt(R,this.D)||(this.B.dispose(),this.K&&this.service.dispose(),this.service=this.options.oU("49",this.options.w7.concat(R)),this.B=new MK(function(){return void F.service.VB()},this.options.QX),this.metrics=N4i(this.service),this.D=R)}; gz.prototype.UZ=function(){Ltm(this.B)};g.A(Gn,Ap);g.A(Ij,Ap);g.A(ij,Ap);var e4m=WJ(ij),yTL=function(R){return v_(function(F){return F instanceof R&&!K1(F)})}(ij); ij.messageId="bfkj";g.A(WB,Ap);g.A(wz,Ap);var qIm=WJ(wz);g.A(BY,g.d);BY.prototype.snapshot=function(R){if(this.RR())throw Error("Already disposed");this.logger.KP("n");var F=this.logger.share();return this.K.then(function(h){var a=h.wM;return new Promise(function(J){var M=new Rj(F,"n");a(function(v){M.done();F.uh(v.length);F.UZ();F.dispose();J(v)},[R.sS, R.QS,R.jD,R.Cf])})})}; BY.prototype.BZ=function(R){var F=this;if(this.RR())throw Error("Already disposed");this.logger.KP("n");var h=h1(this.logger,function(){return F.L([R.sS,R.QS,R.jD,R.Cf])},"n"); this.logger.uh(h.length);this.logger.UZ();return h}; BY.prototype.oE=function(R){this.K.then(function(F){var h;(h=F.Nvn)==null||h(R)})}; BY.prototype.n6=function(){return this.logger.share()};g.A(sJ,Ap);g.A(pV,Ap);ky.prototype.D4=function(R){return Phn(this,R,new aj,0)};g.A(Qd,g.d);Qd.prototype.snapshot=function(R){var F=this;return g.u(function(h){switch(h.D){case 1:if(F.RR())throw Error("Already disposed");if(F.D||F.Y){h.G$(2);break}return g.m(h,F.N.promise,2);case 2:if(!F.D){h.G$(4);break}return g.m(h,F.D.snapshot(R),5);case 5:return h.return(h.B);case 4:throw F.Y;}})}; Qd.prototype.oE=function(R){var F,h;(F=this.D)==null||(h=F.oE)==null||h.call(F,R)}; Qd.prototype.handleError=function(R){if(!this.RR()){this.Y=R;this.N.resolve();var F,h;(h=(F=this.options).uWA)==null||h.call(F,R)}}; Qd.prototype.n6=function(){return this.logger.share()}; var tCi={uko:432E5,QR:3E5,oI:10,mG:1E4,Gy:3E4,g3:3E4,xib:6E4,ac:1E3,BB:6E4,dU:6E5,Dr:.25,uR:2,maxAttempts:10};var kD4,Fha=(kD4=Math.imul)!=null?kD4:function(R,F){return R*F|0},HY=[196, 200,224,18];LV.prototype.zq=function(){return String(this.B)+","+this.D.join()}; LV.prototype.TV=function(R,F){var h=void 0;if(this.D[this.B]!==R){var a=this.D.indexOf(R);a!==-1?(this.D.splice(a,1),a0;)F[h++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(R%62),R=Math.floor(R/62);return F.join("")}};var rN7;g.A(yd,g.d);yd.prototype.Lx=function(R,F){var h=this.m7(R);F==null||F(h);return h1(this.logger,function(){return g.Tf(h,2)},this.D)}; rN7=Symbol.dispose;g.A(jk,yd);jk.prototype.m7=function(R,F){var h=this;this.logger.KP(this.B);++this.N>=this.S&&this.K.resolve();var a=R();R=h1(this.logger,function(){return h.L(a)},"C"); if(R===void 0)throw new V3(17,"YNJ:Undefined");if(!(R instanceof Uint8Array))throw new V3(18,"ODM:Invalid");F==null||F(R);return R}; g.A(Z_,yd);Z_.prototype.m7=function(){return this.L}; g.A(bj,yd);bj.prototype.m7=function(){var R=this;return h1(this.logger,function(){return qx(R.L)},"d")}; bj.prototype.Lx=function(){return this.L}; g.A(Sk,yd);Sk.prototype.m7=function(){if(this.L)return this.L;this.L=Y_L(this,function(R){return"_"+BT_(R)}); return Y_L(this,function(R){return R})}; g.A(mW,yd);mW.prototype.m7=function(){var R=Math.floor(Date.now()/1E3),F=[Math.random()*255,Math.random()*255],h=F.concat([this.L&255,this.clientState],[R>>24&255,R>>16&255,R>>8&255,R&255]);R=new Uint8Array(2+h.length);R[0]=34;R[1]=h.length;R.set(h,2);h=R.subarray(2);for(var a=F=F.length;a150))try{this.cache=new GBI(R,this.logger)}catch(F){this.reportError(new V3(22,"GBJ:init",F))}}; g.Q.reportError=function(R){this.logger.X4(R.code);this.onError(R);return R}; var kBi=function(R){return v_(function(F){if(!g79(F))return!1;for(var h=g.N(Object.entries(R)),a=h.next();!a.done;a=h.next()){var J=g.N(a.value);a=J.next().value;J=J.next().value;if(!(a in F)){if(J.Wwn===!0)continue;return!1}if(!J(F[a]))return!1}return!0})}({VK:function(R){return v_(function(F){return F instanceof R})}(Qd)},"");var chf=(new Date).getTime();g.A(uj,Ap);var Qlv=WJ(uj);yNB.prototype.getMetadata=function(){return this.metadata};dz.prototype.getMetadata=function(){return this.metadata}; dz.prototype.getStatus=function(){return this.status};PY.prototype.Y=function(R,F){F=F===void 0?{}:F;return new yNB(R,this,F)}; PY.prototype.getName=function(){return this.name};var $JG=new PY("/google.internal.waa.v1.Waa/Create",sJ,uj,function(R){return R.zq()},Qlv);g.A(zn,Ap);var um_=new PY("/google.internal.waa.v1.Waa/GenerateIT",pV,zn,function(R){return R.zq()},WJ(zn));var aR2=new Set(["SAPISIDHASH","APISIDHASH"]);g.A(KV,Ap);KV.prototype.getValue=function(){var R=Cr(this,2);if(Array.isArray(R)||R instanceof Ap)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return vw(this,2)};g.A(t1,Ap);t1.prototype.getMessage=function(){return qw(this,2)}; var S_i=WJ(t1);lj.prototype.Cp=function(R,F){R=="data"?this.K.push(F):R=="metadata"?this.N.push(F):R=="status"?this.S.push(F):R=="end"?this.L.push(F):R=="error"&&this.D.push(F);return this}; lj.prototype.removeListener=function(R,F){R=="data"?cY(this.K,F):R=="metadata"?cY(this.N,F):R=="status"?cY(this.S,F):R=="end"?cY(this.L,F):R=="error"&&cY(this.D,F);return this}; lj.prototype.cancel=function(){this.B.abort()}; lj.prototype.cancel=lj.prototype.cancel;lj.prototype.removeListener=lj.prototype.removeListener;lj.prototype.on=lj.prototype.Cp;g.A(fMT,Error);g.Bh(g.WY,YIT);g.WY.prototype.B=function(){var R=new R3(this.L,this.K);this.D&&R.setCredentialsMode(this.D);return R}; g.WY.prototype.setCredentialsMode=function(R){this.D=R}; g.Bh(R3,g.EL);g.Q=R3.prototype;g.Q.open=function(R,F){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.oR=R;this.C=F;this.readyState=1;FO(this)}; g.Q.send=function(R){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.B=!0;var F={headers:this.Z,method:this.oR,credentials:this.N,cache:void 0};R&&(F.body=R);(this.aR||g.Wi).fetch(new Request(this.C,F)).then(this.Xh.bind(this),this.rz.bind(this))}; g.Q.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.K&&this.K.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.B&&this.readyState!=4&&(this.B=!1,hj(this));this.readyState=0}; g.Q.Xh=function(R){if(this.B&&(this.L=R,this.D||(this.status=this.L.status,this.statusText=this.L.statusText,this.D=R.headers,this.readyState=2,FO(this)),this.B&&(this.readyState=3,FO(this),this.B)))if(this.responseType==="arraybuffer")R.arrayBuffer().then(this.M6.bind(this),this.rz.bind(this));else if(typeof g.Wi.ReadableStream!=="undefined"&&"body"in R){this.K=R.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.Y=new TextDecoder;Oi7(this)}else R.text().then(this.q6.bind(this),this.rz.bind(this))}; g.Q.UO=function(R){if(this.B){if(this.S&&R.value)this.response.push(R.value);else if(!this.S){var F=R.value?R.value:new Uint8Array(0);if(F=this.Y.decode(F,{stream:!R.done}))this.response=this.responseText+=F}R.done?hj(this):FO(this);this.readyState==3&&Oi7(this)}}; g.Q.q6=function(R){this.B&&(this.response=this.responseText=R,hj(this))}; g.Q.M6=function(R){this.B&&(this.response=R,hj(this))}; g.Q.rz=function(){this.B&&hj(this)}; g.Q.setRequestHeader=function(R,F){this.Z.append(R,F)}; g.Q.getResponseHeader=function(R){return this.D?this.D.get(R.toLowerCase())||"":""}; g.Q.getAllResponseHeaders=function(){if(!this.D)return"";for(var R=[],F=this.D.entries(),h=F.next();!h.done;)h=h.value,R.push(h[0]+": "+h[1]),h=F.next();return R.join("\r\n")}; g.Q.setCredentialsMode=function(R){this.N=R}; Object.defineProperty(R3.prototype,"withCredentials",{get:function(){return this.N==="include"}, set:function(R){this.setCredentialsMode(R?"include":"same-origin")}});g.Jj.prototype.toString=function(){var R=[],F=this.N;F&&R.push(wI(F,AX9,!0),":");var h=this.B;if(h||F=="file")R.push("//"),(F=this.Z)&&R.push(wI(F,AX9,!0),"@"),R.push(g.yT(h).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h=this.K,h!=null&&R.push(":",String(h));if(h=this.D)this.B&&h.charAt(0)!="/"&&R.push("/"),R.push(wI(h,h.charAt(0)=="/"?xJe:Nd4,!0));(h=this.L.toString())&&R.push("?",h);(h=this.S)&&R.push("#",wI(h,HMg));return R.join("")}; g.Jj.prototype.resolve=function(R){var F=this.clone(),h=!!R.N;h?g.Mn(F,R.N):h=!!R.Z;h?F.Z=R.Z:h=!!R.B;h?g.v9(F,R.B):h=R.K!=null;var a=R.D;if(h)g.gI(F,R.K);else if(h=!!R.D){if(a.charAt(0)!="/")if(this.B&&!this.D)a="/"+a;else{var J=F.D.lastIndexOf("/");J!=-1&&(a=F.D.slice(0,J+1)+a)}J=a;if(J==".."||J==".")a="";else if(g.Z7(J,"./")||g.Z7(J,"/.")){a=fM(J,"/");J=J.split("/");for(var M=[],v=0;v1||M.length==1&&M[0]!="")&&M.pop(), a&&v==J.length&&M.push("")):(M.push(I),a=!0)}a=M.join("/")}else a=J}h?F.D=a:h=R.L.toString()!=="";h?G$(F,R.L.clone()):h=!!R.S;h&&(F.S=R.S);return F}; g.Jj.prototype.clone=function(){return new g.Jj(this)}; var AX9=/[#\/\?@]/g,Nd4=/[#\?:]/g,xJe=/[#\?]/g,eEa=/[#\?@]/g,HMg=/#/g;g.Q=iG.prototype;g.Q.add=function(R,F){rI(this);this.K=null;R=YY(this,R);var h=this.B.get(R);h||this.B.set(R,h=[]);h.push(F);this.D=this.D+1;return this}; g.Q.remove=function(R){rI(this);R=YY(this,R);return this.B.has(R)?(this.K=null,this.D=this.D-this.B.get(R).length,this.B.delete(R)):!1}; g.Q.clear=function(){this.B=this.K=null;this.D=0}; g.Q.isEmpty=function(){rI(this);return this.D==0}; g.Q.forEach=function(R,F){rI(this);this.B.forEach(function(h,a){h.forEach(function(J){R.call(F,J,a,this)},this)},this)}; g.Q.yj=function(){rI(this);for(var R=Array.from(this.B.values()),F=Array.from(this.B.keys()),h=[],a=0;a0?String(R[0]):F}; g.Q.toString=function(){if(this.K)return this.K;if(!this.B)return"";for(var R=[],F=Array.from(this.B.keys()),h=0;h>>3;M.K!=1&&M.K!=2&&M.K!=15&&QI(M,v,I,"unexpected tag");M.B=1;M.D=0;M.L=0} function h(w){M.L++;M.L==5&&w&240&&QI(M,v,I,"message length too long");M.D|=(w&127)<<(M.L-1)*7;w&128||(M.B=2,M.Z=0,typeof Uint8Array!=="undefined"?M.N=new Uint8Array(M.D):M.N=Array(M.D),M.D==0&&J())} function a(w){M.N[M.Z++]=w;M.Z==M.D&&J()} function J(){if(M.K<15){var w={};w[M.K]=M.N;M.Y.push(w)}M.B=0} for(var M=this,v=R instanceof Array?R:new Uint8Array(R),I=0;I0?R:null};$Y.prototype.isInputValid=function(){return this.B===null}; $Y.prototype.pK=function(){return this.B}; $Y.prototype.cq=function(){return!1}; $Y.prototype.parse=function(R){this.B!==null&&lMB(this,R,"stream already broken");var F=null;try{var h=this.K;h.K||tpI(h,R,"stream already broken");h.B+=R;var a=Math.floor(h.B.length/4);if(a==0)var J=null;else{try{var M=ZMn(h.B.slice(0,a*4))}catch(v){tpI(h,h.B,v.message)}h.D+=a*4;h.B=h.B.slice(a*4);J=M}F=J===null?null:this.L.parse(J)}catch(v){lMB(this,R,v.message)}this.D+=R.length;return F};var TdL={INIT:0,Zv:1,Mf:2,lL:3,IL:4,bO:5,STRING:6,O7:7,ZE:8,Bd:9,o_:10,a_:11,C4:12,uM:13,Bb:14,oG:15,jx:16,HD:17,Va:18,CD:19,Nf:20};g.Q=xY.prototype;g.Q.isInputValid=function(){return this.N!=3}; g.Q.pK=function(){return this.C}; g.Q.done=function(){return this.N===2}; g.Q.cq=function(){return!1}; g.Q.parse=function(R){function F(){for(;Y0;)if(k=R[Y++], M.Z===4?M.Z=0:M.Z++,!k)break a;if(k==='"'&&!M.Y){M.B=a();break}if(k==="\\"&&!M.Y&&(M.Y=!0,k=R[Y++],!k))break;if(M.Y)if(M.Y=!1,k==="u"&&(M.Z=1),k=R[Y++])continue;else break;I.lastIndex=Y;k=I.exec(R);if(!k){Y=R.length+1;break}Y=k.index+1;k=R[k.index];if(!k)break}M.K+=Y-H;continue;case w.Bd:if(!k)continue;k==="r"?M.B=w.o_:Nn(M,R,Y);continue;case w.o_:if(!k)continue;k==="u"?M.B=w.a_:Nn(M,R,Y);continue;case w.a_:if(!k)continue;k==="e"?M.B=a():Nn(M,R,Y);continue;case w.C4:if(!k)continue;k==="a"?M.B=w.uM: Nn(M,R,Y);continue;case w.uM:if(!k)continue;k==="l"?M.B=w.Bb:Nn(M,R,Y);continue;case w.Bb:if(!k)continue;k==="s"?M.B=w.oG:Nn(M,R,Y);continue;case w.oG:if(!k)continue;k==="e"?M.B=a():Nn(M,R,Y);continue;case w.jx:if(!k)continue;k==="u"?M.B=w.HD:Nn(M,R,Y);continue;case w.HD:if(!k)continue;k==="l"?M.B=w.Va:Nn(M,R,Y);continue;case w.Va:if(!k)continue;k==="l"?M.B=a():Nn(M,R,Y);continue;case w.CD:k==="."?M.B=w.Nf:Nn(M,R,Y);continue;case w.Nf:if("0123456789.eE+-".indexOf(k)!==-1)continue;else Y--,M.K--,M.B= a();continue;default:Nn(M,R,Y)}}} function a(){var k=v.pop();return k!=null?k:w.Zv} function J(k){M.D>1||(k||(k=r===-1?M.L+R.substring(B,Y):R.substring(r,Y)),M.oR?M.S.push(k):M.S.push(JSON.parse(k)),r=Y)} for(var M=this,v=M.aR,I=M.KI,w=TdL,E=R.length,B=0,r=-1,Y=0;Y0?(p=M.S,M.S=[],p):null}return null};H9.prototype.isInputValid=function(){return this.N===null}; H9.prototype.pK=function(){return this.N}; H9.prototype.cq=function(){return!1}; H9.prototype.parse=function(R){function F(w){M.D=6;M.N="The stream is broken @"+M.B+"/"+v+". Error: "+w+". With input:\n";throw Error(M.N);} function h(){M.K=new xY({N0I:!0,h2:!0})} function a(w){if(w)for(var E=0;E1)&&F("extra status: "+w);M.S=!0;var E={};E[2]=w[0];M.L.push(E)}} for(var M=this,v=0;v0?(R=M.L,M.L=[],R):null};LD.prototype.nT=function(){return this.B}; LD.prototype.getStatus=function(){return this.N}; LD.prototype.oR=function(R){R=R.target;try{if(R==this.B)a:{var F=g.le(this.B),h=this.B.D,a=this.B.getStatus(),J=g.V0(this.B);R=[];if(g.UL(this.B)instanceof Array){var M=g.UL(this.B);M.length>0&&M[0]instanceof Uint8Array&&(this.C=!0,R=M)}if(!(F<3||F==3&&!J&&R.length==0))if(a=a==200||a==206,F==4&&(h==8?T$(this,7):h==7?T$(this,8):a||T$(this,3)),this.D||(this.D=DpI(this.B),this.D==null&&T$(this,5)),this.N>2)yI(this);else{if(R.length>this.K){var v=R.length;h=[];try{if(this.D.cq())for(var I=0;Ithis.K){I=J.slice(this.K);this.K=J.length;try{var E=this.D.parse(I);E!=null&&this.L&&this.L(E)}catch(B){T$(this,5);yI(this);break a}}F==4?(J.length!= 0||this.C?T$(this,2):T$(this,4),yI(this)):T$(this,1)}}}catch(B){T$(this,6),yI(this)}};g.Q=Vpg.prototype;g.Q.Cp=function(R,F){var h=this.D[R];h||(h=[],this.D[R]=h);h.push(F);return this}; g.Q.addListener=function(R,F){this.Cp(R,F);return this}; g.Q.removeListener=function(R,F){var h=this.D[R];h&&g.Hh(h,F);(R=this.B[R])&&g.Hh(R,F);return this}; g.Q.once=function(R,F){var h=this.B[R];h||(h=[],this.B[R]=h);h.push(F);return this}; g.Q.WIb=function(R){var F=this.D.data;F&&Upi(R,F);(F=this.B.data)&&Upi(R,F);this.B.data=[]}; g.Q.C$z=function(){switch(this.K.getStatus()){case 1:qn(this,"readable");break;case 5:case 6:case 4:case 7:case 3:qn(this,"error");break;case 8:qn(this,"close");break;case 2:qn(this,"end")}};CEO.prototype.serverStreaming=function(R,F,h,a){var J=this,M=R.substring(0,R.length-a.name.length);return JVm(function(v){var I=v.aW,w=v.getMetadata(),E=Rei(J,!1);w=FzL(J,w,E,M+I.getName());var B=heg(E,I.D,!0);v=I.B(v.Fz);E.send(w,"POST",v);return B},this.yR).call(this,a.Y(F,h))};MR_.prototype.create=function(R,F,h){var a=this.B,J=this.D+"/$rpc/google.internal.waa.v1.Waa/Create";F=F||{};h=h===void 0?{}:h;return dhi(a,J,R,F,$JG,h)};var vAn="://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(" "),gAa=/\bocr\b/;var IRT=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(R){throw R;}},{FZn:!0, jZt:!0,HYu:!1,VoI:Uak,xPo:C7U,enb:!1,Mob:!1,WZb:!0,nJb:VBL,yXb:!1,f2t:!1,QOu:!1});var ZY=null,Sr=!1,AVI=1,kdB=Symbol("SIGNAL"),Qa={version:0,xh$:0,At:!1,rl:void 0,Cx:void 0,OX:void 0,Rv:0,hV:void 0,Qm:void 0,dg:!1,DD:!1,kind:"unknown",Xz:function(){return!1}, lB:function(){}, E3:function(){}, T0l:function(){}};var $c=Symbol("UNSET"),Ar=Symbol("COMPUTING"),xc=Symbol("ERRORED");Object.assign({},Qa,{value:$c,At:!0,error:null,g7:jr,kind:"computed",Xz:function(R){return R.value===$c||R.value===Ar}, lB:function(R){if(R.value===Ar)throw Error("");var F=R.value;R.value=Ar;var h=EAg(R),a=!1;try{var J=R.EB();bG(null);a=F!==$c&&F!==xc&&J!==xc&&R.g7(F,J)}catch(M){J=xc,R.error=M}finally{BF_(R,h)}a?R.value=F:(R.value=J,R.version++)}});var pp2=Object.assign({},Qa,{g7:jr,value:void 0,kind:"signal"});Object.assign({},Qa,{value:$c,At:!0,error:null,g7:jr,kind:"linkedSignal",Xz:function(R){return R.value===$c||R.value===Ar}, lB:function(R){if(R.value===Ar)throw Error("");var F=R.value;R.value=Ar;var h=EAg(R);try{var a=R.source();var J=R.EB(a,F===$c||F===xc?void 0:{source:R.oXo,value:F});R.oXo=a}catch(M){J=xc,R.error=M}finally{BF_(R,h)}F!==$c&&J!==xc&&R.g7(F,J)?R.value=F:(R.value=J,R.version++)}});Object.assign({},Qa,{DD:!0,dg:!1,E3:function(R){R.schedule!==null&&R.schedule(R.JFG)}, P7z:!1,lHo:function(){}});g.A(XO,g.EL);XO.prototype.dispose=function(){window.removeEventListener("offline",this.K);window.removeEventListener("online",this.K);this.eX.Ew(this.N);delete XO.instance}; XO.prototype.sT=function(){return this.B}; XO.prototype.Of=function(){var R=this;this.N=this.eX.J0(function(){var F;return g.u(function(h){if(h.D==1)return R.B?((F=window.navigator)==null?0:F.onLine)?h.G$(3):g.m(h,o3(R),3):g.m(h,o3(R),3);R.Of();g.Na(h)})},3E4)};nD.prototype.set=function(R,F){F=F===void 0?!0:F;0<=R&&R<52&&Number.isInteger(R)&&this.data[R]!==F&&(this.data[R]=F,this.B=-1)}; nD.prototype.get=function(R){return!!this.data[R]};var z$;g.Bh(g.lG,g.d);g.Q=g.lG.prototype;g.Q.start=function(){this.stop();this.L=!1;var R=Lza(this),F=TFL(this);R&&!F&&this.D.mozRequestAnimationFrame?(this.B=g.R2(this.D,"MozBeforePaint",this.K),this.D.mozRequestAnimationFrame(null),this.L=!0):this.B=R&&F?R.call(this.D,this.K):this.D.setTimeout(zUi(this.K),20)}; g.Q.stop=function(){if(this.isActive()){var R=Lza(this),F=TFL(this);R&&!F&&this.D.mozRequestAnimationFrame?G3(this.B):R&&F?F.call(this.D,this.B):this.D.clearTimeout(this.B)}this.B=null}; g.Q.isActive=function(){return this.B!=null}; g.Q.HX=function(){this.L&&this.B&&G3(this.B);this.B=null;this.S.call(this.N,g.w7())}; g.Q.Ez=function(){this.stop();g.lG.dk.Ez.call(this)};g.Bh(g.DY,g.d);g.Q=g.DY.prototype;g.Q.ra=0;g.Q.Ez=function(){g.DY.dk.Ez.call(this);this.stop();delete this.B;delete this.D}; g.Q.start=function(R){this.stop();this.ra=g.o2(this.K,R!==void 0?R:this.W_)}; g.Q.stop=function(){this.isActive()&&g.Wi.clearTimeout(this.ra);this.ra=0}; g.Q.isActive=function(){return this.ra!=0}; g.Q.Eo=function(){this.ra=0;this.B&&this.B.call(this.D)};g.A(g.c9,g.d);g.Q=g.c9.prototype;g.Q.HT=function(R){this.K=arguments;this.tp||this.D?this.B=!0:W9(this)}; g.Q.stop=function(){this.tp&&(g.Wi.clearTimeout(this.tp),this.tp=null,this.B=!1,this.K=null)}; g.Q.pause=function(){this.D++}; g.Q.resume=function(){this.D--;this.D||!this.B||this.tp||(this.B=!1,W9(this))}; g.Q.Ez=function(){g.d.prototype.Ez.call(this);this.stop()};g.Rp.prototype[Symbol.iterator]=function(){return this}; g.Rp.prototype.next=function(){var R=this.B.next();return{value:R.done?void 0:this.D.call(void 0,R.value),done:R.done}};g.Bh(g.Ip,g.EL);g.Q=g.Ip.prototype;g.Q.isPlaying=function(){return this.B==1}; g.Q.isPaused=function(){return this.B==-1}; g.Q.Pv=function(){this.RS("begin")}; g.Q.Bn=function(){this.RS("end")}; g.Q.onFinish=function(){this.RS("finish")}; g.Q.onStop=function(){this.RS("stop")}; g.Q.RS=function(R){this.dispatchEvent(R)};var yXU=Su(function(){var R=g.B4("DIV"),F=g.IG?"-webkit":Kb?"-moz":null,h="transition:opacity 1s linear;";F&&(h+=F+"-transition:opacity 1s linear;");F=fti({style:h});if(R.nodeType===1&&/^(script|style)$/i.test(R.tagName))throw Error("");R.innerHTML=rU(F);return g.tR(R.firstChild,"transition")!=""});g.Bh(iy,g.Ip);g.Q=iy.prototype;g.Q.play=function(){if(this.isPlaying())return!1;this.Pv();this.RS("play");this.startTime=g.w7();this.B=1;if(yXU())return g.zL(this.D,this.S),this.K=g.o2(this.gOR,void 0,this),!0;this.E7(!1);return!1}; g.Q.gOR=function(){g.FJ(this.D);fRL(this.D,this.Y);g.zL(this.D,this.L);this.K=g.o2((0,g.Ge)(this.E7,this,!1),this.N*1E3)}; g.Q.stop=function(){this.isPlaying()&&this.E7(!0)}; g.Q.E7=function(R){g.zL(this.D,"transition","");g.Wi.clearTimeout(this.K);g.zL(this.D,this.L);this.endTime=g.w7();this.B=0;if(R)this.onStop();else this.onFinish();this.Bn()}; g.Q.Ez=function(){this.stop();iy.dk.Ez.call(this)}; g.Q.pause=function(){};var Zu_={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};wA("Element","attributes")||wA("Node","attributes");wA("Element","innerHTML")||wA("HTMLElement","innerHTML");wA("Node","nodeName");wA("Node","nodeType");wA("Node","parentNode");wA("Node","childNodes");wA("HTMLElement","style")||wA("Element","style");wA("HTMLStyleElement","sheet");var Xpi=StO("getPropertyValue"),eeg=StO("setProperty");wA("Element","namespaceURI")||wA("Node","namespaceURI");var oA_={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var PLL,eO7,dT7,uRL,ze7;PLL=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]");eO7=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.qR7=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.Bs=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]");dT7=/^http:\/\/.*/;g.f79=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");uRL=/\s+/;ze7=/[\d\u06f0-\u06f9]/;YU.prototype.CS=function(){return new sN(this.D())}; YU.prototype[Symbol.iterator]=function(){return new pW(this.D())}; YU.prototype.B=function(){return new pW(this.D())}; g.A(sN,g.AT);sN.prototype.next=function(){return this.D.next()}; sN.prototype[Symbol.iterator]=function(){return new pW(this.D)}; sN.prototype.B=function(){return new pW(this.D)}; g.A(pW,YU);pW.prototype.next=function(){return this.K.next()};QM.prototype.clone=function(){return new QM(this.B,this.Y,this.K,this.N,this.L,this.S,this.D,this.Z)}; QM.prototype.equals=function(R){return this.B==R.B&&this.Y==R.Y&&this.K==R.K&&this.N==R.N&&this.L==R.L&&this.S==R.S&&this.D==R.D&&this.Z==R.Z};A$.prototype.clone=function(){return new A$(this.start,this.end)};(function(){if(tF7){var R=/Windows NT ([0-9.]+)/;return(R=R.exec(g.ol()))?R[1]:"0"}return hn?(R=/1[0|1][_.][0-9_.]+/,(R=R.exec(g.ol()))?R[0].replace(/_/g,"."):"10"):g.Ug?(R=/Android\s+([^\);]+)(\)|;)/,(R=R.exec(g.ol()))?R[1]:""):RUG||F4e||hU4?(R=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(R=R.exec(g.ol()))?R[1].replace(/_/g,"."):""):""})();var tRI=function(){if(g.Go)return xU(/Firefox\/([0-9.]+)/);if(g.EN||g.zC||g.uo)return x4n;if(g.kK){if(oa()||Xw()){var R=xU(/CriOS\/([0-9.]+)/);if(R)return R}return xU(/Chrome\/([0-9.]+)/)}if(g.YV&&!oa())return xU(/Version\/([0-9.]+)/);if(lB||DD){if(R=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ol()))return R[1]+"."+R[2]}else if(g.dp)return(R=xU(/Android\s+([0-9.]+)/))?R:xU(/Version\/([0-9.]+)/);return""}();g.Bh(g.Hs,g.d);g.Q=g.Hs.prototype;g.Q.subscribe=function(R,F,h){var a=this.D[R];a||(a=this.D[R]=[]);var J=this.S;this.B[J]=R;this.B[J+1]=F;this.B[J+2]=h;this.S=J+3;a.push(J);return J}; g.Q.unsubscribe=function(R,F,h){if(R=this.D[R]){var a=this.B;if(R=R.find(function(J){return a[J+1]==F&&a[J+2]==h}))return this.W7(R)}return!1}; g.Q.W7=function(R){var F=this.B[R];if(F){var h=this.D[F];this.L!=0?(this.K.push(R),this.B[R+1]=function(){}):(h&&g.Hh(h,R),delete this.B[R],delete this.B[R+1],delete this.B[R+2])}return!!F}; g.Q.publish=function(R,F){var h=this.D[R];if(h){var a=Array(arguments.length-1),J=arguments.length,M;for(M=1;M0&&this.L==0)for(;h=this.K.pop();)this.W7(h)}}return M!=0}return!1}; g.Q.clear=function(R){if(R){var F=this.D[R];F&&(F.forEach(this.W7,this),delete this.D[R])}else this.B.length=0,this.D={}}; g.Q.Ez=function(){g.Hs.dk.Ez.call(this);this.clear();this.K.length=0};g.LW.prototype.set=function(R,F){F===void 0?this.B.remove(R):this.B.set(R,g.ue(F))}; g.LW.prototype.get=function(R){try{var F=this.B.get(R)}catch(h){return}if(F!==null)try{return JSON.parse(F)}catch(h){throw"Storage: Invalid value was encountered";}}; g.LW.prototype.remove=function(R){this.B.remove(R)};g.Bh(Ti,g.LW);Ti.prototype.set=function(R,F){Ti.dk.set.call(this,R,VRn(F))}; Ti.prototype.D=function(R){R=Ti.dk.get.call(this,R);if(R===void 0||R instanceof Object)return R;throw"Storage: Invalid value was encountered";}; Ti.prototype.get=function(R){if(R=this.D(R)){if(R=R.data,R===void 0)throw"Storage: Invalid value was encountered";}else R=void 0;return R};g.Bh(yM,Ti);yM.prototype.set=function(R,F,h){if(F=VRn(F)){if(h){if(h=h.length)return g.B2;var J=h.key(F++);if(R)return g.xj(J);J=h.getItem(J);if(typeof J!=="string")throw"Storage mechanism: Invalid value was encountered";return g.xj(J)}; return a}; g.Q.clear=function(){Zl(this);this.B.clear()}; g.Q.key=function(R){Zl(this);return this.B.key(R)};g.Bh(by,jM);g.Bh(cVL,jM);g.Bh(SM,fW);SM.prototype.set=function(R,F){this.D.set(this.B+R,F)}; SM.prototype.get=function(R){return this.D.get(this.B+R)}; SM.prototype.remove=function(R){this.D.remove(this.B+R)}; SM.prototype.CS=function(R){var F=this.D[Symbol.iterator](),h=this,a=new g.AT;a.next=function(){var J=F.next();if(J.done)return J;for(J=J.value;J.slice(0,h.B.length)!=h.B;){J=F.next();if(J.done)return J;J=J.value}return g.xj(R?J.slice(h.B.length):h.D.get(J))}; return a};mn.prototype.getValue=function(){return this.D}; mn.prototype.clone=function(){return new mn(this.B,this.D)};g.Q=op.prototype;g.Q.TV=function(R,F){var h=this.B;h.push(new mn(R,F));R=h.length-1;F=this.B;for(h=F[R];R>0;){var a=R-1>>1;if(F[a].B>h.B)F[R]=F[a],R=a;else break}F[R]=h}; g.Q.remove=function(){var R=this.B,F=R.length,h=R[0];if(!(F<=0)){if(F==1)R.length=0;else{R[0]=R.pop();R=0;F=this.B;for(var a=F.length,J=F[R];R>1;){var M=R*2+1,v=R*2+2;M=vJ.B)break;F[R]=F[M];R=M}F[R]=J}return h.getValue()}}; g.Q.UU=function(){for(var R=this.B,F=[],h=R.length,a=0;a>>16&65535|0;for(var M;h!==0;){M=h>2E3?2E3:h;h-=M;do J=J+F[a++]|0,R=R+J|0;while(--M);J%=65521;R%=65521}return J|R<<16|0};for(var EV={},Ny,OML=[],H2=0;H2<256;H2++){Ny=H2;for(var mJe=0;mJe<8;mJe++)Ny=Ny&1?3988292384^Ny>>>1:Ny>>>1;OML[H2]=Ny}EV=function(R,F,h,a){h=a+h;for(R^=-1;a>>8^OML[(R^F[a])&255];return R^-1};var hi={};hi={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 VM=[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],cs=[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],Nqg=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ea_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],vk=Array(576);uy(vk);var g1=Array(60);uy(g1);var CW=Array(512);uy(CW);var Dl=Array(256);uy(Dl);var UN=Array(29);uy(UN);var Ws=Array(30);uy(Ws);var $WT,Ahn,xWa,Q2f=!1;var pp;pp=[new sV(0,0,0,0,function(R,F){var h=65535;for(h>R.h5-5&&(h=R.h5-5);;){if(R.VY<=1){Bk(R);if(R.VY===0&&F===0)return 1;if(R.VY===0)break}R.Aa+=R.VY;R.VY=0;var a=R.KS+h;if(R.Aa===0||R.Aa>=a)if(R.VY=R.Aa-a,R.Aa=a,Gu(R,!1),R.tT.QK===0)return 1;if(R.Aa-R.KS>=R.KB-262&&(Gu(R,!1),R.tT.QK===0))return 1}R.TV=0;if(F===4)return Gu(R,!0),R.tT.QK===0?3:4;R.Aa>R.KS&&Gu(R,!1);return 1}), new sV(4,4,8,4,r1),new sV(4,5,16,8,r1),new sV(4,6,32,32,r1),new sV(4,4,16,16,Y6),new sV(8,16,32,32,Y6),new sV(8,16,128,128,Y6),new sV(8,32,128,256,Y6),new sV(32,128,258,1024,Y6),new sV(32,258,258,4096,Y6)];var k3L={};k3L=function(){this.input=null;this.pQ=this.r4=this.Lo=0;this.output=null;this.Sm=this.QK=this.R0=0;this.msg="";this.state=null;this.TC=2;this.SI=0};var HJi=Object.prototype.toString; k6.prototype.push=function(R,F){var h=this.tT,a=this.options.chunkSize;if(this.ended)return!1;var J=F===~~F?F:F===!0?4:0;typeof R==="string"?h.input=F7a(R):HJi.call(R)==="[object ArrayBuffer]"?h.input=new Uint8Array(R):h.input=R;h.Lo=0;h.r4=h.input.length;do{h.QK===0&&(h.output=new nW.sN(a),h.R0=0,h.QK=a);R=pLn(h,J);if(R!==1&&R!==0)return this.Bn(R),this.ended=!0,!1;if(h.QK===0||h.r4===0&&(J===4||J===2))if(this.options.to==="string"){var M=nW.x4(h.output,h.R0);F=M;M=M.length;if(M<65537&&(F.subarray&& SRg||!F.subarray))F=String.fromCharCode.apply(null,nW.x4(F,M));else{for(var v="",I=0;I0||h.QK===0)&&R!==1);if(J===4)return(h=this.tT)&&h.state?(a=h.state.status,a!==42&&a!==69&&a!==73&&a!==91&&a!==103&&a!==113&&a!==666?R=aM(h,-2):(h.state=null,R=a===113?aM(h,-3):0)):R=-2,this.Bn(R),this.ended=!0,R===0;J===2&&(this.Bn(0),h.QK=0);return!0}; k6.prototype.Bn=function(R){R===0&&(this.result=this.options.to==="string"?this.chunks.join(""):nW.ZD(this.chunks));this.chunks=[];this.err=R;this.msg=this.tT.msg};var $6="@@redux/INIT"+Qz(),j2i="@@redux/REPLACE"+Qz();var ZJa=typeof Symbol==="function"&&Symbol.observable||"@@observable";var omU=[0,d4k,-3,iS];g.A(mWn,Ap);var APL=function(){var R=[0,zUk,P96,v2,d4k,v2,-1,iS,d4k,iS,-1,zUk,iS,P96,g8,omU,v2,-1,iS];return function(F,h){var a={Ai:!0};h&&Object.assign(a,h);F=K3B(F,void 0,void 0,a);try{var J=new mWn,M=J.Bo;bc(R)(M,F);var v=J}finally{F.free()}return v}}();var oa_=-452103235;var Wii=new g.Ng("adInfoDialogEndpoint");var je7=new g.Ng("adPingingEndpoint");var c0I=new g.Ng("crossDeviceProgressCommand");var p5=new g.Ng("actionCompanionAdRenderer");var Ue=new g.Ng("adActionInterstitialRenderer");var XVt=new g.Ng("adDurationRemainingRenderer");var C5=new g.Ng("adHoverTextButtonRenderer");var CHi=new g.Ng("adInfoDialogRenderer");var SO=new g.Ng("adMessageRenderer");var cq=new g.Ng("adPreviewRenderer");var Qu=new g.Ng("adsEngagementPanelRenderer");var LZI=new g.Ng("dismissablePanelTextPortraitImageRenderer");var N5g=new g.Ng("adsEngagementPanelSectionListViewModel");var ea6=new g.Ng("flyoutCtaRenderer");var kS=new g.Ng("imageCompanionAdRenderer");var DX=new g.Ng("instreamAdPlayerOverlayRenderer");var Jfe=new g.Ng("instreamSurveyAdBackgroundImageRenderer");var Ur=new g.Ng("instreamSurveyAdPlayerOverlayRenderer");var Xn=new g.Ng("instreamSurveyAdRenderer"),Vu=new g.Ng("instreamSurveyAdSingleSelectQuestionRenderer"),DA=new g.Ng("instreamSurveyAdMultiSelectQuestionRenderer"),La=new g.Ng("instreamSurveyAdAnswerRenderer"),nmk=new g.Ng("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var m1=new g.Ng("instreamVideoAdRenderer");var ulu=new g.Ng("textOverlayAdContentRenderer"),dJ6=new g.Ng("enhancedTextOverlayAdContentRenderer"),P_G=new g.Ng("imageOverlayAdContentRenderer");var V1=new g.Ng("playerOverlayLayoutRenderer");var CA=new g.Ng("videoInterstitialButtonedCenteredLayoutRenderer");var jSi=new g.Ng("aboveFeedAdLayoutRenderer");var Z47=new g.Ng("belowPlayerAdLayoutRenderer");var fCm=new g.Ng("inPlayerAdLayoutRenderer");var u2=new g.Ng("playerBytesAdLayoutRenderer");var l2=new g.Ng("playerBytesSequenceItemAdLayoutRenderer");var tO=new g.Ng("playerUnderlayAdLayoutRenderer");var oq=new g.Ng("adIntroRenderer");var Sw=new g.Ng("playerBytesSequentialLayoutRenderer");var iU_=new g.Ng("slidingTextPlayerOverlayRenderer");var ew=new g.Ng("surveyTextInterstitialRenderer");var dk=new g.Ng("videoAdTrackingRenderer");var $H_=new g.Ng("videoInterstitialCenteredLayoutViewModel");var zaG=new g.Ng("simpleAdBadgeRenderer");var Ni=new g.Ng("skipAdRenderer"),KBU=new g.Ng("skipButtonRenderer");var hQ=new g.Ng("adSlotRenderer");var zN=new g.Ng("squeezebackPlayerSidePanelRenderer");var tP6=new g.Ng("timedPieCountdownRenderer");var Vr=new g.Ng("adAvatarViewModel");var UT=new g.Ng("adBadgeViewModel");var Ck=new g.Ng("adButtonViewModel");var l77=new g.Ng("adDetailsLineViewModel");var DJv=new g.Ng("adDisclosureBannerViewModel");var VP6=new g.Ng("adPodIndexViewModel");var UJ4=new g.Ng("imageBackgroundViewModel");var C_t=new g.Ng("adGridCardCollectionViewModel");var cXu=new g.Ng("adGridCardTextViewModel");var WBL=new g.Ng("adPreviewViewModel");var RA4=new g.Ng("playerAdAvatarLockupCardButtonedViewModel");var F3e=new g.Ng("skipAdButtonViewModel");var hA4=new g.Ng("skipAdViewModel");var a$4=new g.Ng("timedPieCountdownViewModel");var J74=new g.Ng("visitAdvertiserLinkViewModel");var $S=new g.Ng("bannerImageLayoutViewModel");var AO=new g.Ng("topBannerImageTextIconButtonedLayoutViewModel");var f5=new g.Ng("adsEngagementPanelLayoutViewModel");var K5=new g.Ng("displayUnderlayTextGridCardsLayoutViewModel");g.eZ=new g.Ng("browseEndpoint");var MWv=new g.Ng("confirmDialogEndpoint");var mog=new g.Ng("commandContext");var Bbi=new g.Ng("rawColdConfigGroup");var E$O=new g.Ng("rawHotConfigGroup");g.Ex=new g.Ng("commandExecutorCommand");g.A(eqT,Ap);var Ao_={cuu:0,waI:1,H7t:32,zOz:61,DPn:67,B0t:103,uAI:86,jSG:42,VXo:60,TnQ:62,nct:73,eOA:76,oJl:88,aHl:90,EJb:99,Flu:98,dPu:100,QSu:102,p0$:41,iYG:69,KZz:70,mPo:71,R8R:2,OSz:27,ANDROID:3,b2b:54,Iqt:14,QjG:91,Z2z:55,yGR:24,Fab:20,Waz:18,H2A:21,Vqb:104,ztu:30,Bln:29,oLR:28,XaI:101,a5A:34,nZo:36,jju:38,IOS:5,rVz:15,kLR:92,suR:40,v0n:25,cVA:17,RKz:19,O$Q:64,NEA:66,Mbl:26,X1Q:22,lYo:33,P1u:68,g0o:35,qwI:53,hKA:37,Swo:39,Ecb:7,pab:57,i7R:43,m3z:59,Klb:93,uxR:74,Llo:75,fKQ:85,GKI:65,AuI:80,ruQ:8,d3t:10, SSo:58,sSz:63,U3I:72,CTz:23,Geo:11,UPG:13,gLG:12,D3n:16,WlI:56,C8$:31,sHo:77,ZBt:84,x3$:87,Fg$:89,yeb:94,dCR:95};g.A(Hk,Ap);Hk.prototype.X9=function(){return qw(this,3)}; Hk.prototype.Ty=function(){return qw(this,5)}; Hk.prototype.cn=function(R){return Sb(this,5,R)};g.A(Lp,Ap);g.A(nan,Ap);g.A(Tu,Ap);g.Q=Tu.prototype;g.Q.getDeviceId=function(){return qw(this,6)}; g.Q.AQ=function(R){var F=Jy(this,9,BX,3,!0);tt(F,R);return F[R]}; g.Q.getPlayerType=function(){return fK(this,36)}; g.Q.setHomeGroupInfo=function(R){return Qx(this,nan,81,R)}; g.Q.clearLocationPlayabilityToken=function(){return WX(this,89)};g.A(yz,Ap);yz.prototype.getValue=function(){return qw(this,rX(this,iRi,2))}; var iRi=[2,3,4,5,6];g.A(qg,Ap);qg.prototype.setTrackingParams=function(R){return WX(this,1,zaf(R,!1))};g.A(fp,Ap);g.A(jm,Ap);jm.prototype.AQ=function(R){var F=Jy(this,5,rR,3,!0);tt(F,R);return F[R]};g.A(ZP,Ap);ZP.prototype.getToken=function(){return Za(this,2)}; ZP.prototype.setToken=function(R){return Sb(this,2,R)};g.A(bO,Ap);bO.prototype.setSafetyMode=function(R){return my(this,5,R)};g.A(Sm,Ap);Sm.prototype.Jv=function(R){return Qx(this,Tu,1,R)};var RL=new g.Ng("thumbnailLandscapePortraitRenderer");g.vNg=new g.Ng("changeEngagementPanelVisibilityAction");var yYT=new g.Ng("continuationCommand");g.gN7=new g.Ng("openPopupAction");g.Tc=new g.Ng("webCommandMetadata");var cOm=new g.Ng("metadataBadgeRenderer");var TSm=new g.Ng("signalServiceEndpoint");var j2=new g.Ng("innertubeCommand");var imL=new g.Ng("loggingDirectives");var HV7={UIG:"EMBEDDED_PLAYER_MODE_UNKNOWN",Lgz:"EMBEDDED_PLAYER_MODE_DEFAULT",GNo:"EMBEDDED_PLAYER_MODE_PFP",ftG:"EMBEDDED_PLAYER_MODE_PFL"};var HeB=new g.Ng("channelThumbnailEndpoint");var N3g=new g.Ng("embeddedPlayerErrorMessageRenderer");var QLf=new g.Ng("embeddedPlayerOverlayVideoDetailsRenderer"),LLL=new g.Ng("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),T3i=new g.Ng("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var VwO=new g.Ng("embedsInfoPanelRenderer");var GqU=new g.Ng("feedbackEndpoint");var I$v=new g.Ng("callToActionButtonViewModel");var ihu=new g.Ng("interactionLoggingCommandMetadata");var QpB={yub:"WEB_DISPLAY_MODE_UNKNOWN",tXl:"WEB_DISPLAY_MODE_BROWSER",IKo:"WEB_DISPLAY_MODE_MINIMAL_UI",Z7l:"WEB_DISPLAY_MODE_STANDALONE",b7Q:"WEB_DISPLAY_MODE_FULLSCREEN"};g.A(OV,Ap);OV.prototype.getPlayerType=function(){return fK(this,7)}; OV.prototype.T2=function(){return qw(this,19)}; OV.prototype.setVideoId=function(R){return Sb(this,19,R)};g.A(mw,Ap);g.A(oM,Ap);g.A(Xo,Ap); var wZu=[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];var EN9=new g.Ng("loggingContext");g.A(em,Ap);g.A(d1,Ap);d1.prototype.T2=function(){return Za(this,rX(this,JI,1))}; d1.prototype.setVideoId=function(R){return E1(this,1,JI,HX(R))}; d1.prototype.getPlaylistId=function(){return Za(this,rX(this,JI,2))}; var JI=[1,2];g.A(uNI,Ap);var r9=new g.Ng("changeKeyedMarkersVisibilityCommand");var BU7=new g.Ng("changeMarkersVisibilityCommand");var R3I=new g.Ng("loadMarkersCommand");var r7k=new g.Ng("suggestedActionDataViewModel");var us2=new g.Ng("timelyActionViewModel");var nlT=new g.Ng("timelyActionsOverlayViewModel");var UyI=new g.Ng("productListItemRenderer");var YWu=new g.Ng("shoppingOverlayRenderer");var $7a=new g.Ng("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var saG=new g.Ng("adFeedbackEndpoint");var pZv=new g.Ng("menuEndpoint");var h9L=new g.Ng("phoneDialerEndpoint");var R9_=new g.Ng("sendSmsEndpoint");var kVi=new g.Ng("copyTextEndpoint");var kqU=new g.Ng("shareEndpoint"),Qa9=new g.Ng("shareEntityEndpoint"),$ke=new g.Ng("shareEntityServiceEndpoint"),A79=new g.Ng("webPlayerShareEntityServiceEndpoint");g.bQ=new g.Ng("urlEndpoint");g.EG=new g.Ng("watchEndpoint");var xkg=new g.Ng("watchPlaylistEndpoint");g.NU6=new g.Ng("offlineOrchestrationActionCommand");var q7I=new g.Ng("compositeVideoOverlayRenderer");var Hhv=new g.Ng("miniplayerRenderer");var sLI=new g.Ng("paidContentOverlayRenderer");var L39=new g.Ng("playerMutedAutoplayOverlayRenderer"),TU6=new g.Ng("playerMutedAutoplayEndScreenRenderer");var i5i=new g.Ng("unserializedPlayerResponse"),y7G=new g.Ng("unserializedPlayerResponse");var qW6=new g.Ng("playlistEditEndpoint");var ya;g.Wq=new g.Ng("buttonRenderer");ya=new g.Ng("toggleButtonRenderer");var xHO=new g.Ng("counterfactualRenderer");var f$7=new g.Ng("resolveUrlCommandMetadata");var jat=new g.Ng("modifyChannelNotificationPreferenceEndpoint");var fji=new g.Ng("pingingEndpoint");var Zhg=new g.Ng("unsubscribeEndpoint");g.nt=new g.Ng("subscribeButtonRenderer");var bht=new g.Ng("subscribeEndpoint");var Pa7=new g.Ng("buttonViewModel");var H4_=new g.Ng("qrCodeRenderer");var NvT={eKb:"LIVING_ROOM_APP_MODE_UNSPECIFIED",H$o:"LIVING_ROOM_APP_MODE_MAIN",juI:"LIVING_ROOM_APP_MODE_KIDS",Vbo:"LIVING_ROOM_APP_MODE_MUSIC",xgG:"LIVING_ROOM_APP_MODE_UNPLUGGED",WtA:"LIVING_ROOM_APP_MODE_GAMING"};var twO=new g.Ng("autoplaySwitchButtonRenderer");var ug,Pkg,pq_,Rzm;ug=new g.Ng("decoratedPlayerBarRenderer");Pkg=new g.Ng("chapteredPlayerBarRenderer");pq_=new g.Ng("multiMarkersPlayerBarRenderer");Rzm=new g.Ng("chapterRenderer");g.lZf=new g.Ng("markerRenderer");var MqO=new g.Ng("decoratedPlayheadRenderer");var U0i=new g.Ng("desktopOverlayConfigRenderer");var T5n=new g.Ng("engagementPanelSectionListRenderer");var D0L=new g.Ng("gatedActionsOverlayViewModel");var Ck7=new g.Ng("heatMarkerRenderer");var UtO=new g.Ng("heatmapRenderer");var W1f=new g.Ng("watchToWatchTransitionRenderer");var AQf=new g.Ng("playlistPanelRenderer");var SWk=new g.Ng("productUpsellSuggestedActionViewModel");var Oh7=new g.Ng("suggestedActionTimeRangeTrigger"),mkk=new g.Ng("suggestedActionsRenderer"),oN4=new g.Ng("suggestedActionRenderer");var cvi=new g.Ng("timedMarkerDecorationRenderer");var XQ7=new g.Ng("cipher");var wq7=new g.Ng("playerVars");var XZ9=new g.Ng("playerVars");var qy=g.Wi.window,eAh,nN7,Pk=(qy==null?void 0:(eAh=qy.yt)==null?void 0:eAh.config_)||(qy==null?void 0:(nN7=qy.ytcfg)==null?void 0:nN7.data_)||{};g.Fk("yt.config_",Pk);var lO=[];var CeB=/^[\w.]*$/,lHi={q:!0,search_query:!0},tVO=String(Cp);var gb=new function(){var R=window.document;this.B=window;this.D=R}; g.Fk("yt.ads_.signals_.getAdSignalsString",function(R){return ck(Iz(R))});g.w7();var W7B="XMLHttpRequest"in g.Wi?function(){return new XMLHttpRequest}:null;var uwU="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.S(uwU);var a_n={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"},r1L="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.S(uwU)),iVL=!1,gyT=A3;g.A(H6,r7);yS.prototype.then=function(R,F,h){return this.B?this.B.then(R,F,h):this.K===1&&R?(R=R.call(h,this.D))&&typeof R.then==="function"?R:fR(R):this.K===2&&F?(R=F.call(h,this.D))&&typeof R.then==="function"?R:ql(R):this}; yS.prototype.getValue=function(){return this.D}; yS.prototype.$goog_Thenable=!0;var jn=!1;var PR=lB||DD;var xKT=/^([0-9\.]+):([0-9\.]+)$/;g.A(IA,r7);IA.prototype.name="BiscottiError";g.A(GP,r7);GP.prototype.name="BiscottiMissingError";var TzL={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},iH=null;var hUa=sm(["data-"]),mKO={};var dkg=0,wK=g.IG?"webkit":Kb?"moz":g.EN?"ms":g.uo?"o":"",Puu=g.hG("ytDomDomGetNextId")||function(){return++dkg}; g.Fk("ytDomDomGetNextId",Puu);var nym={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};pn.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; pn.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; pn.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var kO=g.Wi.ytEventsEventsListeners||{};g.Fk("ytEventsEventsListeners",kO);var PjB=g.Wi.ytEventsEventsCounter||{count:0};g.Fk("ytEventsEventsCounter",PjB);var l_i=Su(function(){var R=!1;try{var F=Object.defineProperty({},"passive",{get:function(){R=!0}}); window.addEventListener("test",null,F)}catch(h){}return R}),zvL=Su(function(){var R=!1; try{var F=Object.defineProperty({},"capture",{get:function(){R=!0}}); window.addEventListener("test",null,F)}catch(h){}return R});var fa;fa=window;g.NU=fa.ytcsi&&fa.ytcsi.now?fa.ytcsi.now:fa.performance&&fa.performance.timing&&fa.performance.now&&fa.performance.timing.navigationStart?function(){return fa.performance.timing.navigationStart+fa.performance.now()}:function(){return(new Date).getTime()};g.Bh(Nm,g.d);Nm.prototype.C=function(R){R.B===void 0&&uya(R);var F=R.B;R.D===void 0&&uya(R);this.B=new g.zq(F,R.D)}; Nm.prototype.Mj=function(){return this.B||new g.zq}; Nm.prototype.oR=function(){if(this.B){var R=(0,g.NU)();if(this.L!=0){var F=this.S,h=this.B,a=F.x-h.x;F=F.y-h.y;a=Math.sqrt(a*a+F*F)/(R-this.L);this.D[this.K]=Math.abs((a-this.N)/this.N)>.5?1:0;for(h=F=0;h<4;h++)F+=this.D[h]||0;F>=3&&this.Y();this.N=a}this.L=R;this.S=this.B;this.K=(this.K+1)%4}}; Nm.prototype.Ez=function(){g.Y$(this.Z);g.$O(this.aR)};g.A(Hv,g.d);Hv.prototype.T=function(R,F,h,a,J){h=g.Vz((0,g.Ge)(h,a||this.iY));h={target:R,name:F,callback:h};var M;J&&l_i()&&(M={passive:!0});R.addEventListener(F,h.callback,M);this.Y.push(h);return h}; Hv.prototype.Ap=function(R){for(var F=0;F=K.L7)||T.B.version>=Rg||T.B.objectStoreNames.contains(n)||b.push(n)}w=b;if(w.length===0){H.G$(5);break}E=Object.keys(h.options.zF); B=I.objectStoreNames();if(h.Nh.options.version+1)throw Y.close(),h.K=!1,SXm(h,p);return H.return(Y);case 8:throw F(), r instanceof Error&&!g.pR("ytidb_async_stack_killswitch")&&(r.stack=r.stack+"\n"+v.substring(v.indexOf("\n")+1)),sU(r,h.name,"",(k=h.options.version)!=null?k:-1);}})} function F(){h.B===a&&(h.B=void 0)} var h=this;if(!this.K)throw SXm(this);if(this.B)return this.B;var a,J={blocking:function(M){M.close()}, closed:F,sgz:F,upgrade:this.options.upgrade};return this.B=a=R()};var uI=new e1("YtIdbMeta",{zF:{databases:{L7:1}},upgrade:function(R,F){F(1)&&g.Lm(R,"databases",{keyPath:"actualName"})}});var tY,Km=new function(){}(new function(){});new g.EJ;g.A(Ve,e1);Ve.prototype.D=function(R,F,h){h=h===void 0?{}:h;return(this.options.shared?PG7:dn2)(R,F,Object.assign({},h))}; Ve.prototype.delete=function(R){R=R===void 0?{}:R;return(this.options.shared?lYi:zGi)(this.name,R)};var c77={},Vr2=g.UU("ytGcfConfig",{zF:(c77.coldConfigStore={L7:1},c77.hotConfigStore={L7:1},c77),shared:!1,upgrade:function(R,F){F(1)&&(g.Zd(g.Lm(R,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Zd(g.Lm(R,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.A(cR,g.d);cR.prototype.Ez=function(){for(var R=g.N(this.D),F=R.next();!F.done;F=R.next()){var h=this.B;F=h.indexOf(F.value);F>=0&&h.splice(F,1)}this.D.length=0;g.d.prototype.Ez.call(this)};Jq.prototype.cn=function(R){this.hotHashData=R;g.Fk("yt.gcf.config.hotHashData",this.hotHashData||null)};var W3h=typeof TextEncoder!=="undefined"?new TextEncoder:null,Xsa=W3h?function(R){return W3h.encode(R)}:function(R){R=g.L1(R); for(var F=new Uint8Array(R.length),h=0;h=F?!1:!0}; g.Q.wD=function(){var R=this;if(!qd(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.tG.py("QUEUED",this.HJ).then(function(F){F&&!R.ll(F,R.Yd)?R.eX.J0(function(){return g.u(function(h){if(h.D==1)return F.id===void 0?h.G$(2):g.m(h,R.tG.D9(F.id,R.HJ),2);R.wD();g.Na(h)})}):R.Sq.sT()&&R.MX()})};var Zb;var sz2={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var FOg={},hiL=g.UU("ServiceWorkerLogsDatabase",{zF:(FOg.SWHealthLog={L7:1},FOg),shared:!0,upgrade:function(R,F){F(1)&&g.Zd(g.Lm(R,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var OP={},Gui=0;var mq;X8.prototype.requestComplete=function(R,F){F&&(this.D=!0);R=this.removeParams(R);this.B.get(R)||this.B.set(R,F)}; X8.prototype.isEndpointCFR=function(R){R=this.removeParams(R);return(R=this.B.get(R))?!1:R===!1&&this.D?!0:null}; X8.prototype.removeParams=function(R){return R.split("?")[0]}; X8.prototype.removeParams=X8.prototype.removeParams;X8.prototype.isEndpointCFR=X8.prototype.isEndpointCFR;X8.prototype.requestComplete=X8.prototype.requestComplete;X8.getInstance=el;g.A(nd,g.EL);g.Q=nd.prototype;g.Q.sT=function(){return this.B.sT()}; g.Q.Ko=function(R){this.B.B=R}; g.Q.EO=function(){var R=window.navigator.onLine;return R===void 0?!0:R}; g.Q.ye=function(){this.D=!0}; g.Q.listen=function(R,F){return this.B.listen(R,F)}; g.Q.Zc=function(R){R=o3(this.B,R);R.then(function(F){g.pR("use_cfr_monitor")&&el().requestComplete("generate_204",F)}); return R}; nd.prototype.sendNetworkCheckRequest=nd.prototype.Zc;nd.prototype.listen=nd.prototype.listen;nd.prototype.enableErrorFlushing=nd.prototype.ye;nd.prototype.getWindowStatus=nd.prototype.EO;nd.prototype.networkStatusHint=nd.prototype.Ko;nd.prototype.isNetworkAvailable=nd.prototype.sT;nd.getInstance=wk_;g.A(g.un,g.EL);g.un.prototype.sT=function(){var R=g.hG("yt.networkStatusManager.instance.isNetworkAvailable");return R?R.bind(this.D)():!0}; g.un.prototype.Ko=function(R){var F=g.hG("yt.networkStatusManager.instance.networkStatusHint").bind(this.D);F&&F(R)}; g.un.prototype.Zc=function(R){var F=this,h;return g.u(function(a){h=g.hG("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(F.D);return g.pR("skip_network_check_if_cfr")&&el().isEndpointCFR("generate_204")?a.return(new Promise(function(J){var M;F.Ko(((M=window.navigator)==null?void 0:M.onLine)||!0);J(F.sT())})):h?a.return(h(R)):a.return(!0)})};var dM;g.A(Pm,fd);Pm.prototype.writeThenSend=function(R,F){F||(F={});F=Kd(R,F);g.Kn()||(this.B=!1);fd.prototype.writeThenSend.call(this,R,F)}; Pm.prototype.sendThenWrite=function(R,F,h){F||(F={});F=Kd(R,F);g.Kn()||(this.B=!1);fd.prototype.sendThenWrite.call(this,R,F,h)}; Pm.prototype.sendAndWrite=function(R,F){F||(F={});F=Kd(R,F);g.Kn()||(this.B=!1);fd.prototype.sendAndWrite.call(this,R,F)}; Pm.prototype.awaitInitialization=function(){return this.K.promise};var sML=g.Wi.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Fk("ytNetworklessLoggingInitializationOptions",sML);g.tq.prototype.isReady=function(){!this.config_&&EU2()&&(this.config_=g.vm());return!!this.config_};var hwv,Vm,Cd;hwv=g.Wi.ytPubsubPubsubInstance||new g.Hs;Vm=g.Wi.ytPubsubPubsubSubscribedKeys||{};Cd=g.Wi.ytPubsubPubsubTopicToKeys||{};g.UP=g.Wi.ytPubsubPubsubIsSynchronous||{};g.Hs.prototype.subscribe=g.Hs.prototype.subscribe;g.Hs.prototype.unsubscribeByKey=g.Hs.prototype.W7;g.Hs.prototype.publish=g.Hs.prototype.publish;g.Hs.prototype.clear=g.Hs.prototype.clear;g.Fk("ytPubsubPubsubInstance",hwv);g.Fk("ytPubsubPubsubTopicToKeys",Cd);g.Fk("ytPubsubPubsubIsSynchronous",g.UP); g.Fk("ytPubsubPubsubSubscribedKeys",Vm);var xgi={};g.A(w_,g.d);w_.prototype.append=function(R){if(!this.D)throw Error("This does not support the append operation");R=R.G_();this.G_().appendChild(R)}; g.A(EY,w_);EY.prototype.G_=function(){return this.B};g.A(BO,g.d);BO.prototype.onTouchStart=function(R){this.Y=!0;this.D=R.touches.length;this.B.isActive()&&(this.B.stop(),this.N=!0);R=R.touches;this.S=Lwi(this,R)||R.length!=1;var F=R.item(0);this.S||!F?this.C=this.Z=Infinity:(this.Z=F.clientX,this.C=F.clientY);for(F=this.K.length=0;F=0)}if(F||R&&Math.pow(R.clientX-this.Z,2)+Math.pow(R.clientY-this.C,2)>25)this.L=!0}; BO.prototype.onTouchEnd=function(R){var F=R.changedTouches;F&&this.Y&&this.D==1&&!this.L&&!this.N&&!this.S&&Lwi(this,F)&&(this.oR=R,this.B.start());this.D=R.touches.length;this.D===0&&(this.L=this.Y=!1,this.K.length=0);this.N=!1};var r_=Date.now().toString();var QD={};var Lw=Symbol("injectionDeps");A_.prototype.toString=function(){return"InjectionToken("+this.name+")"}; qVi.prototype.resolve=function(R){return R instanceof xG?Ts(this,R.key,[],!0):Ts(this,R,[])};var yD;var fw=window;var S_=g.pR("web_enable_lifecycle_monitoring")&&j_()!==0,mgi=g.pR("web_enable_lifecycle_monitoring");bpO.prototype.cancel=function(){for(var R=g.N(this.B),F=R.next();!F.done;F=R.next())F=F.value,F.jobId===void 0||F.Uh||this.scheduler.Ew(F.jobId),F.Uh=!0;this.D.resolve()};g.Q=OY.prototype;g.Q.install=function(R){this.plugins.push(R);return this}; g.Q.uninstall=function(){var R=this;g.u7.apply(0,arguments).forEach(function(F){F=R.plugins.indexOf(F);F>-1&&R.plugins.splice(F,1)})}; g.Q.transition=function(R,F){var h=this;S_&&jMi(this.state);var a=this.transitions.find(function(M){return Array.isArray(M.from)?M.from.find(function(v){return v===h.state&&M.to===R}):M.from===h.state&&M.to===R}); if(a){this.D&&(SVT(this.D),this.D=void 0);o6m(this,R,F);this.state=R;S_&&Zj(this.state);a=a.action.bind(this);var J=this.plugins.filter(function(M){return M[R]}).map(function(M){return M[R]}); a(Opa(this,J),F)}else throw Error("no transition specified from "+this.state+" to "+R);}; g.Q.cju=function(R){var F=g.u7.apply(1,arguments);g.UK();for(var h=g.N(R),a=h.next(),J={};!a.done;J={x5:void 0},a=h.next())J.x5=a.value,Mra(function(M){return function(){oe(M.x5.name);e_(function(){return M.x5.callback.apply(M.x5,g.S(F))}); X5(M.x5.name)}}(J))}; g.Q.v6I=function(R){var F=g.u7.apply(1,arguments),h,a,J,M;return g.u(function(v){v.D==1&&(g.UK(),h=g.N(R),a=h.next(),J={});if(v.D!=3){if(a.done)return v.G$(0);J.oh=a.value;J.g2=void 0;M=function(I){return function(){oe(I.oh.name);var w=e_(function(){return I.oh.callback.apply(I.oh,g.S(F))}); LO(w)?I.g2=g.pR("web_lifecycle_error_handling_killswitch")?w.then(function(){X5(I.oh.name)}):w.then(function(){X5(I.oh.name)},function(E){Zp_(E); X5(I.oh.name)}):X5(I.oh.name)}}(J); Mra(M);return J.g2?g.m(v,J.g2,3):v.G$(3)}J={oh:void 0,g2:void 0};a=h.next();return v.G$(2)})}; g.Q.fh=function(R){var F=g.u7.apply(1,arguments),h=this,a=R.map(function(J){return{jz:function(){oe(J.name);e_(function(){return J.callback.apply(J,g.S(F))}); X5(J.name)}, priority:mT(h,J)}}); a.length&&(this.D=new bpO(a))}; g.i7.Object.defineProperties(OY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ui;g.A(nw,OY);nw.prototype.N=function(R,F){var h=this;this.B=g.D1(0,function(){h.currentState==="application_navigating"&&h.transition("none")},5E3); R(F==null?void 0:F.event)}; nw.prototype.S=function(R,F){this.B&&(g.er.Ew(this.B),this.B=null);R(F==null?void 0:F.event)};var ED=[];g.Fk("yt.logging.transport.getScrapedGelPayloads",function(){return ED});d_.prototype.storePayload=function(R,F){R=PO(R);this.store[R]?this.store[R].push(F):(this.D={},this.store[R]=[F]);this.B++;g.pR("more_accurate_gel_parser")&&(F=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(F));return R}; d_.prototype.smartExtractMatchingEntries=function(R){if(!R.keys.length)return[];for(var F=Kw(this,R.keys.splice(0,1)[0]),h=[],a=0;a=0){a=!1;break a}}a=!0}a&&(F=bw(F))&&this.hv(F)}}; g.Q.PL=function(R){return R}; g.Q.onTouchStart=function(R){this.KI.onTouchStart(R)}; g.Q.onTouchMove=function(R){this.KI.onTouchMove(R)}; g.Q.onTouchEnd=function(R){if(this.KI)this.KI.onTouchEnd(R)}; g.Q.hv=function(R){this.layoutId?this.tb.executeCommand(R,this.layoutId):(R=new g.Pv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.y7(R))}; g.Q.createServerVe=function(R,F){this.api.createServerVe(R,this);this.api.setTrackingParams(R,F)}; g.Q.logVisibility=function(R,F){this.api.hasVe(R)&&this.api.logVisibility(R,F,this.interactionLoggingClientData)}; g.Q.Ez=function(){this.clear(null);this.Ap(this.nI);for(var R=g.N(this.Uz),F=R.next();!F.done;F=R.next())this.Ap(F.value);g.gY.prototype.Ez.call(this)};g.A(qF,GA); qF.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);this.B=F;if(F.text==null&&F.icon==null)g.qN(Error("ButtonRenderer did not have text or an icon set."));else{switch(F.style||null){case "STYLE_UNKNOWN":R="ytp-ad-button-link";break;default:R=null}R!=null&&g.J$(this.element,R);F.text!=null&&(R=g.iQ(F.text),g.jP(R)||(this.element.setAttribute("aria-label",R),this.K=new g.gY({G:"span",J:"ytp-ad-button-text",Dn:R}),g.z(this,this.K),this.K.Ab(this.element)));F.accessibilityData&&F.accessibilityData.accessibilityData&& F.accessibilityData.accessibilityData.label&&!g.jP(F.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",F.accessibilityData.accessibilityData.label);F.icon!=null&&(F=y2(F.icon,this.L),F!=null&&(this.D=new g.gY({G:"span",J:"ytp-ad-button-icon",V:[F]}),g.z(this,this.D)),this.S?kT(this.element,this.D.element,0):this.D.Ab(this.element))}}; qF.prototype.clear=function(){this.hide()}; qF.prototype.onClick=function(R){GA.prototype.onClick.call(this,R);R=g.N(oO7(this));for(var F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.tb.executeCommand(F,this.layoutId):g.y7(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.A(fB,g.d);fB.prototype.Ez=function(){this.D&&g.$O(this.D);this.B.clear();ji=null;g.d.prototype.Ez.call(this)}; fB.prototype.register=function(R,F){F&&this.B.set(R,F)}; var ji=null;g.A(Si,GA); Si.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);R=F.hoverText||null;F=F.button&&g.t(F.button,g.Wq)||null;F==null?g.y7(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,void 0,void 0,void 0,void 0,this.K),g.z(this,this.button),this.button.init(R7("button"),F,this.macros),R&&this.button.element.setAttribute("aria-label",g.iQ(R)),this.button.Ab(this.element),this.C&&!g.ap(this.button.element, "ytp-ad-clickable")&&g.J$(this.button.element,"ytp-ad-clickable"),this.K&&g.J$(this.button.element,"ytp-ad-hover-text-button--clean-player"),R&&(this.D=new g.gY({G:"div",J:"ytp-ad-hover-text-container"}),this.S&&(F=new g.gY({G:"div",J:"ytp-ad-hover-text-callout"}),F.Ab(this.D.element),g.z(this,F)),g.z(this,this.D),this.D.Ab(this.element),F=Z6(R),kT(this.D.element,F,0)),this.show())}; Si.prototype.hide=function(){this.button&&this.button.hide();this.D&&this.D.hide();GA.prototype.hide.call(this)}; Si.prototype.show=function(){this.button&&this.button.show();GA.prototype.show.call(this)};g.A(mU,GA); mU.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);h=(R=F.thumbnail)&&Oj(R)||"";g.jP(h)?Math.random()<.01&&g.qN(Error("Found AdImage without valid image URL")):(this.B?g.zL(this.element,"backgroundImage","url("+h+")"):GL(this.element,{src:h}),GL(this.element,{alt:R&&R.accessibility&&R.accessibility.label||""}),F&&F.adRendererCommands&&F.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; mU.prototype.clear=function(){this.hide()};g.A(o7,GA);g.Q=o7.prototype;g.Q.hide=function(){GA.prototype.hide.call(this);this.K&&this.K.focus()}; g.Q.show=function(){this.K=document.activeElement;GA.prototype.show.call(this);this.L.focus()}; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);this.D=F;F.dialogMessages||F.title!=null?F.confirmLabel==null?g.y7(Error("ConfirmDialogRenderer.confirmLabel was not set.")):F.cancelLabel==null?g.y7(Error("ConfirmDialogRenderer.cancelLabel was not set.")):uBf(this,F):g.y7(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.Q.clear=function(){g.TP(this.B);this.hide()}; g.Q.Xg=function(){this.hide()}; g.Q.p8=function(){var R=this.D.cancelEndpoint;R&&(this.layoutId?this.tb.executeCommand(R,this.layoutId):g.y7(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.Q.PM=function(){var R=this.D.confirmNavigationEndpoint||this.D.confirmEndpoint;R&&(this.layoutId?this.tb.executeCommand(R,this.layoutId):g.y7(Error("Missing layoutId for confirm dialog.")));this.hide()};g.A(Xu,GA);g.Q=Xu.prototype; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);this.K=F;if(F.defaultText==null&&F.defaultIcon==null)g.y7(Error("ToggleButtonRenderer must have either text or icon set."));else if(F.defaultIcon==null&&F.toggledIcon!=null)g.y7(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(F.style){switch(F.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":R="ytp-ad-toggle-button-default-style";break;default:R=null}R!=null&&g.J$(this.L,R)}R={};F.defaultText? (h=g.iQ(F.defaultText),g.jP(h)||(R.buttonText=h,this.api.W().experiments.jl("a11y_h5_associate_survey_question")||this.B.setAttribute("aria-label",h),this.api.W().experiments.jl("fix_h5_toggle_button_a11y")&&this.D.setAttribute("aria-label",h))):g.ht(this.fI,!1);F.defaultTooltip&&(R.tooltipText=F.defaultTooltip,this.B.hasAttribute("aria-label")||this.D.setAttribute("aria-label",F.defaultTooltip));F.defaultIcon?(h=y2(F.defaultIcon),this.updateValue("untoggledIconTemplateSpec",h),F.toggledIcon?(this.aR= !0,h=y2(F.toggledIcon),this.updateValue("toggledIconTemplateSpec",h)):(g.ht(this.C,!0),g.ht(this.S,!1)),g.ht(this.B,!1)):g.ht(this.D,!1);g.BV(R)||this.update(R);F.isToggled&&(g.J$(this.L,"ytp-ad-toggle-button-toggled"),this.toggleButton(F.isToggled));ei(this);this.T(this.element,"change",this.i5);this.show()}}; g.Q.onClick=function(R){this.Uz.length>0&&(this.toggleButton(!this.isToggled()),this.i5());GA.prototype.onClick.call(this,R)}; g.Q.i5=function(){g.Gi(this.L,"ytp-ad-toggle-button-toggled",this.isToggled());for(var R=g.N(dmi(this,this.isToggled())),F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.tb.executeCommand(F,this.layoutId):g.y7(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);ei(this)}; g.Q.clear=function(){this.hide()}; g.Q.toggleButton=function(R){g.Gi(this.L,"ytp-ad-toggle-button-toggled",R);this.B.checked=R;ei(this)}; g.Q.isToggled=function(){return this.B.checked};g.A(nB,Hv);nB.prototype.N=function(R){if(Array.isArray(R)){R=g.N(R);for(var F=R.next();!F.done;F=R.next())F=F.value,F instanceof PHn&&this.K(F)}};g.A(uQ,GA);g.Q=uQ.prototype;g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);F.reasons?F.confirmLabel==null?g.y7(Error("AdFeedbackRenderer.confirmLabel was not set.")):(F.cancelLabel==null&&g.qN(Error("AdFeedbackRenderer.cancelLabel was not set.")),F.title==null&&g.qN(Error("AdFeedbackRenderer.title was not set.")),l1L(this,F)):g.y7(Error("AdFeedbackRenderer.reasons were not set."))}; g.Q.clear=function(){As(this.S);As(this.C);this.L.length=0;this.hide()}; g.Q.hide=function(){this.B&&this.B.hide();this.D&&this.D.hide();GA.prototype.hide.call(this);this.K&&this.K.focus()}; g.Q.show=function(){this.B&&this.B.show();this.D&&this.D.show();this.K=document.activeElement;GA.prototype.show.call(this);this.S.focus()}; g.Q.hU=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.Q.KNI=function(){this.hide()}; dY.prototype.G_=function(){return this.B.element}; dY.prototype.getCommand=function(){return this.D}; dY.prototype.isChecked=function(){return this.K.checked};g.A(Px,o7);Px.prototype.Xg=function(R){o7.prototype.Xg.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Px.prototype.p8=function(R){o7.prototype.p8.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Px.prototype.PM=function(R){o7.prototype.PM.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.A(zA,GA);g.Q=zA.prototype; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);this.S=F;if(F.dialogMessage==null&&F.title==null)g.y7(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{F.confirmLabel==null&&g.qN(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(R=F.closeOverlayRenderer&&g.t(F.closeOverlayRenderer,g.Wq)||null)this.B=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.z(this,this.B),this.B.init(R7("button"),R,this.macros),this.B.Ab(this.element);F.title&&(R=g.iQ(F.title),this.updateValue("title",R));if(F.adReasons)for(R=F.adReasons,h=0;h=this.Sl?(this.aR.hide(),this.PG=!0,this.publish("i")):this.K&&this.K.isTemplated()&&(R=Math.max(0,Math.ceil((this.Sl-R)/1E3)),R!=this.T$&&(lQ(this.K,{TIME_REMAINING:String(R)}),this.T$=R)))}};g.A(RK,D6);g.Q=RK.prototype; g.Q.init=function(R,F,h){D6.prototype.init.call(this,R,F,h);if(F.image&&F.image.thumbnail)if(F.headline)if(F.description)if((R=F.actionButton&&g.t(F.actionButton,g.Wq))&&R.navigationEndpoint){var a=this.api.getVideoData(2);if(a!=null)if(F.image&&F.image.thumbnail){var J=F.image.thumbnail.thumbnails;J!=null&&J.length>0&&g.jP(g.Z$(J[0].url))&&(J[0].url=a.profilePicture)}else g.qN(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.K.init(R7("ad-image"),F.image,h);this.S.init(R7("ad-text"), F.headline,h);this.L.init(R7("ad-text"),F.description,h);this.D.init(R7("button"),R,h);h=tj(this.D.element);KD(this.D.element,h+" This link opens in new tab");this.aR=R.navigationEndpoint;this.api.zH()||this.show();this.api.W().X("enable_larger_flyout_cta_on_desktop")&&(this.mI("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.mI("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.mI("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.mI("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.mI("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.mI("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.D.element.classList.add("ytp-flyout-cta-action-button-large"),this.D.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.mI("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Lt.bind(this));this.fI=F.startMs||0;V2(this)}else g.y7(Error("FlyoutCtaRenderer has no valid action button."));else g.y7(Error("FlyoutCtaRenderer has no description AdText."));else g.y7(Error("FlyoutCtaRenderer has no headline AdText."));else g.qN(Error("FlyoutCtaRenderer has no image."))}; g.Q.onClick=function(R){D6.prototype.onClick.call(this,R);this.api.pauseVideo();!g.$T(this.D.element,R.target)&&this.aR&&(this.layoutId?this.tb.executeCommand(this.aR,this.layoutId):g.y7(Error("Missing layoutId for flyout cta.")))}; g.Q.tI=function(){if(this.B){var R=this.B.getProgressState();(R&&R.current||this.Sl)&&1E3*R.current>=this.fI&&(Uj(this),g.vs(this.element,"ytp-flyout-cta-inactive"),this.D.element.removeAttribute("tabIndex"))}}; g.Q.P4=function(){this.clear()}; g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Lt.bind(this))}; g.Q.show=function(){this.D&&this.D.show();D6.prototype.show.call(this)}; g.Q.hide=function(){this.D&&this.D.hide();D6.prototype.hide.call(this)}; g.Q.Lt=function(R){R=="hidden"?this.show():this.hide()};g.A(FC,GA);g.Q=FC.prototype; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);this.B=F;if(this.B.rectangle)for(R=this.B.likeButton&&g.t(this.B.likeButton,ya),F=this.B.dislikeButton&&g.t(this.B.dislikeButton,ya),this.K.init(R7("toggle-button"),R,h),this.D.init(R7("toggle-button"),F,h),this.T(this.element,"change",this.Gm),this.L.show(100),this.show(),h=g.N(this.B&&this.B.impressionCommands||[]),R=h.next();!R.done;R=h.next())R=R.value,this.layoutId?this.tb.executeCommand(R,this.layoutId):g.y7(Error("Missing layoutId for instream user sentiment."))}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){this.K.hide();this.D.hide();GA.prototype.hide.call(this)}; g.Q.show=function(){this.K.show();this.D.show();GA.prototype.show.call(this)}; g.Q.Gm=function(){qtI(this.element,"ytp-ad-instream-user-sentiment-selected");this.B.postMessageAction&&this.api.WG("onYtShowToast",this.B.postMessageAction);this.L.hide()}; g.Q.onClick=function(R){this.Uz.length>0&&this.Gm();GA.prototype.onClick.call(this,R)};g.A(hF,g.d);g.Q=hF.prototype;g.Q.Ez=function(){this.reset();g.d.prototype.Ez.call(this)}; g.Q.reset=function(){g.TP(this.L);this.S=!1;this.B&&this.B.stop();this.N.stop();this.K&&(this.K=!1,this.Y.play())}; g.Q.start=function(){this.reset();this.L.T(this.D,"mouseover",this.rS,this);this.L.T(this.D,"mouseout",this.Uo,this);this.oR&&(this.L.T(this.D,"focusin",this.rS,this),this.L.T(this.D,"focusout",this.Uo,this));this.B?this.B.start():(this.S=this.K=!0,g.zL(this.D,{opacity:this.C}))}; g.Q.rS=function(){this.K&&(this.K=!1,this.Y.play());this.N.stop();this.B&&this.B.stop()}; g.Q.Uo=function(){this.S?this.N.start():this.B&&this.B.start()}; g.Q.Pd=function(){this.K||(this.K=!0,this.Z.play(),this.S=!0)};var M1I=[new aK("b.f_",!1,0),new aK("j.s_",!1,2),new aK("r.s_",!1,4),new aK("e.h_",!1,6),new aK("i.s_",!0,8),new aK("s.t_",!1,10),new aK("p.h_",!1,12),new aK("s.i_",!1,14),new aK("f.i_",!1,16),new aK("a.b_",!1,18),new aK("a.o_",!1),new aK("g.o_",!1,22),new aK("p.i_",!1,24),new aK("p.m_",!1),new aK("n.k_",!0,20),new aK("i.f_",!1),new aK("a.s_",!0),new aK("m.c_",!1),new aK("n.h_",!1,26),new aK("o.p_",!1),new aK("m.p_",!0,28),new aK("o.a_",!1),new aK("d.p_",!1),new aK("e.i_",!1)].reduce(function(R,F){R[F.D]= F;return R},{});g.A(wf,D6);g.Q=wf.prototype; g.Q.init=function(R,F,h){D6.prototype.init.call(this,R,F,h);this.aR=F;(this.fI=gVi(this))&&g.qN(Error("hasAdControlInClickCommands_ is true."));if(!F||g.BV(F))g.y7(Error("SkipButtonRenderer was not specified or empty."));else if(!F.message||g.BV(F.message))g.y7(Error("SkipButtonRenderer.message was not specified or empty."));else if(R=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},F=y2(R),F==null?g.y7(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+R.iconType+".")): (this.api.W().X("disable_touch_events_on_skip_button")&&(F.j=Object.assign({},F.j,{"aria-hidden":"true",Gal:"false"})),this.K=new g.gY({G:"button",sz:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{G:"span",J:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[F]}]}),g.z(this,this.K),this.K.Ab(this.L.element),this.D=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-skip-button-text"),this.S&&this.D.element.classList.add("ytp-ad-skip-button-text-centered"), this.D.init(R7("ad-text"),this.aR.message,h),g.z(this,this.D),kT(this.K.element,this.D.element,0)),!this.api.W().X("disable_touch_events_on_skip_button")){var a=a===void 0?null:a;h=this.api.W();!(this.Uz.length>0)&&h.D&&(nG?0:"ontouchstart"in document.documentElement&&(W4B()||IP()))&&(this.Ap(this.nI),a&&this.Ap(a),this.Uz=[this.T(this.element,"touchstart",this.onTouchStart,this),this.T(this.element,"touchmove",this.onTouchMove,this),this.T(this.element,"touchend",this.onTouchEnd,this)])}}; g.Q.clear=function(){this.Sl.reset();this.hide()}; g.Q.hide=function(){this.L.hide();this.D&&this.D.hide();Uj(this);D6.prototype.hide.call(this)}; g.Q.onClick=function(R){if(this.K!=null){if(R){var F=R||window.event;F.returnValue=!1;F.preventDefault&&F.preventDefault()}var h;if(adT(R,{contentCpn:((h=this.api.getVideoData(1))==null?void 0:h.clientPlaybackNonce)||""})===0)this.api.WG("onAbnormalityDetected");else if(D6.prototype.onClick.call(this,R),this.publish("j"),this.api.WG("onAdSkip"),this.PG||!this.fI)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.Q.PL=function(R){if(!this.PG)return this.fI&&gf("SkipButton click commands not pruned while ALC exist"),R;var F,h=(F=g.t(R,g.Ex))==null?void 0:F.commands;if(!h)return R;R=[];for(F=0;F=this.S&&GCL(this,!0)};g.A(rf,qF);rf.prototype.init=function(R,F,h){qF.prototype.init.call(this,R,F,h);R=!1;F.text!=null&&(R=g.iQ(F.text),R=!g.jP(R));R?F.navigationEndpoint==null?g.qN(Error("No visit advertiser clickthrough provided in renderer,")):F.style!=="STYLE_UNKNOWN"?g.qN(Error("Button style was not a link-style type in renderer,")):this.show():g.qN(Error("No visit advertiser text was present in the renderer."))};g.A(Yr,GA); Yr.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);R=F.text;g.jP(I7(R))?g.qN(Error("SimpleAdBadgeRenderer has invalid or empty text")):(R&&R.text&&(F=R.text,this.K&&!this.D&&(F=this.api.W(),F=R.text+" "+(F&&F.D?"\u2022":"\u00b7")),F={text:F,isTemplated:R.isTemplated},R.style&&(F.style=R.style),R.targetId&&(F.targetId=R.targetId),R=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),R.init(R7("simple-ad-badge"),F,h),R.Ab(this.element),g.z(this,R)),this.show())}; Yr.prototype.clear=function(){this.hide()};g.A(sx,Fu);g.A(pP,g.h0);g.Q=pP.prototype;g.Q.Jo=function(){return this.durationMs}; g.Q.stop=function(){this.B&&this.nV.Ap(this.B)}; g.Q.Na=function(R){this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:R.current};this.publish("h")}; g.Q.getProgressState=function(){return this.D}; g.Q.Vl=function(R){g.i5(R,2)&&this.publish("g")};g.A(kr,g.h0);g.Q=kr.prototype;g.Q.Jo=function(){return this.durationMs}; g.Q.start=function(){this.B||(this.B=!0,this.timer.start())}; g.Q.stop=function(){this.B&&(this.B=!1,this.timer.stop())}; g.Q.Na=function(){this.d4+=100;var R=!1;this.d4>this.durationMs&&(this.d4=this.durationMs,this.timer.stop(),R=!0);this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.d4/1E3};this.publish("h");R&&this.publish("g")}; g.Q.getProgressState=function(){return this.D};g.A(AF,D6);g.Q=AF.prototype;g.Q.init=function(R,F,h){D6.prototype.init.call(this,R,F,h);var a;if(F==null?0:(a=F.templatedCountdown)==null?0:a.templatedAdText){R=F.templatedCountdown.templatedAdText;if(!R.isTemplated){g.qN(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.D=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);this.D.init(R7("ad-text"),R,{});this.D.Ab(this.element);g.z(this,this.D)}this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){Uj(this);D6.prototype.hide.call(this)}; g.Q.P4=function(){this.hide()}; g.Q.tI=function(){if(this.B!=null){var R=this.B.getProgressState();if(R!=null&&R.current!=null&&this.D){var F=this.B instanceof pP?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:R.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.B instanceof kr?R.seekableEnd:this.api.getDuration(2,!1);R=R.current;var h,a,J=((h=this.api.getVideoData())==null?0:(a=h.We)==null?0:a.call(h))?Math.max(F-R,0):F-R;lQ(this.D,{FORMATTED_AD_DURATION_REMAINING:String(g.Q6(J)), TIME_REMAINING:String(Math.ceil(J))})}}}; g.Q.show=function(){V2(this);D6.prototype.show.call(this)};g.A(xr,t0);xr.prototype.onClick=function(R){t0.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType)};g.A(HM,GA);HM.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(R=F.content){g.AR(this.element,R);var h,a;F=((h=F.interaction)==null?void 0:(a=h.accessibility)==null?void 0:a.label)||R;this.element.setAttribute("aria-label",F)}else g.y7(Error("AdSimpleAttributedString does not have text content"))}; HM.prototype.clear=function(){this.hide()}; HM.prototype.onClick=function(R){GA.prototype.onClick.call(this,R)};g.A(LP,GA); LP.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});(R=F.label)&&R.content&&!g.jP(R.content)?(this.adBadgeText.init(R7("ad-simple-attributed-string"),new Nv(R)),(F=F.adPodIndex)&&F.content&&!g.jP(F.content)&&(this.B=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),this.B.Ab(this.element),g.z(this,this.B),this.B.element.classList.add("ytp-ad-badge__pod-index"),this.B.init(R7("ad-simple-attributed-string"),new Nv(F))),this.element.classList.add(this.D?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.y7(Error("No label is returned in AdBadgeViewModel."))}; LP.prototype.show=function(){this.adBadgeText.show();var R;(R=this.B)==null||R.show();GA.prototype.show.call(this)}; LP.prototype.hide=function(){this.adBadgeText.hide();var R;(R=this.B)==null||R.hide();GA.prototype.hide.call(this)};g.A(T2,GA);T2.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});(R=F.adPodIndex)&&R.content&&!g.jP(R.content)&&(this.B=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),this.B.Ab(this.element),g.z(this,this.B),this.B.init(R7("ad-simple-attributed-string"),new Nv(R)),F.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()}; T2.prototype.show=function(){var R;(R=this.B)==null||R.show();GA.prototype.show.call(this)}; T2.prototype.hide=function(){var R;(R=this.B)==null||R.hide();GA.prototype.hide.call(this)};g.A(y6,GA); y6.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(F!=null&&F.text){var h;if(((h=F.text)==null?0:h.content)&&!g.jP(F.text.content)){this.B=new g.gY({G:"div",J:"ytp-ad-disclosure-banner__text",Dn:F.text.content});g.z(this,this.B);this.B.Ab(this.element);var a,J;R=((a=F.interaction)==null?void 0:(J=a.accessibility)==null?void 0:J.label)||F.text.content;this.element.setAttribute("aria-label",R);var M;if((M=F.interaction)==null?0:M.onTap)this.D=new g.gY({G:"div",J:"ytp-ad-disclosure-banner__chevron",V:[g.rY()]}), g.z(this,this.D),this.D.Ab(this.element);this.show()}}else g.y7(Error("No banner text found in AdDisclosureBanner."))}; y6.prototype.clear=function(){this.hide()};g.A(jj,g.gY);jj.prototype.Na=function(){var R=this.D.getProgressState(),F=R.seekableEnd;this.api.getPresentingPlayerType()===2&&(F=this.K?this.K/1E3:R.seekableEnd);this.progressBar.style.width=fP(new qv(R.seekableStart,F),R.current,0)*100+"%"}; jj.prototype.onStateChange=function(){g.Uk(this.api.W())||(this.api.getPresentingPlayerType()===2?this.B===-1&&(this.show(),this.B=this.D.subscribe("h",this.Na,this),this.Na()):this.B!==-1&&(this.hide(),this.D.W7(this.B),this.B=-1))};g.A(ZJ,GA); ZJ.prototype.init=function(R,F,h,a){GA.prototype.init.call(this,R,F,h);if(F.skipOrPreviewRenderer){if(R=g.t(F.skipOrPreviewRenderer,Ni))h=new BM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D,this.C),h.Ab(this.NQ),h.init(R7("skip-button"),R,this.macros),g.z(this,h);if(R=g.t(F.skipOrPreviewRenderer,Ni))var J=R.skipOffsetMilliseconds}F.brandInteractionRenderer&&(R=F.brandInteractionRenderer.brandInteractionRenderer,h=new FC(this.api,this.layoutId,this.interactionLoggingClientData,this.tb), h.Ab(this.fI),h.init(R7("instream-user-sentiment"),R,this.macros),g.z(this,h));if(R=g.t(F,ea6))if(R=g.t(R,ea6))h=new RK(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D,!!F.showWithoutLinkedMediaLayout),g.z(this,h),h.Ab(this.S),h.init(R7("flyout-cta"),R,this.macros);a=a&&a.videoAdDurationSeconds;F.adBadgeRenderer&&(h=F.adBadgeRenderer,R=g.t(h,UT),R!=null?(h=new LP(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!1),g.z(this,h),h.Ab(this.B),h.init(R7("ad-badge"), R,this.macros),this.K=h.element):(R=h.simpleAdBadgeRenderer,R==null&&(R={text:{text:"Anuncio",isTemplated:!1}}),h=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0),g.z(this,h),h.Ab(this.B),h.init(R7("simple-ad-badge"),R,this.macros)));F.adPodIndex&&(R=g.t(F.adPodIndex,VP6),R!=null&&(h=new T2(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,h),h.Ab(this.B),h.init(R7("ad-pod-index"),R)));F.adDurationRemaining&&!F.showWithoutLinkedMediaLayout&&(R=F.adDurationRemaining.adDurationRemainingRenderer, R==null&&(R={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),a=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D,a,!1),g.z(this,a),a.Ab(this.B),a.init(R7("ad-duration-remaining"),R,this.macros));F.adInfoRenderer&&(a=g.t(F.adInfoRenderer,C5))&&(R=new KB(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.element,void 0,!1),g.z(this,R),this.K!==null?this.B.insertBefore(R.element,this.K.nextSibling):R.Ab(this.B), R.init(R7("ad-info-hover-text-button"),a,this.macros));F.visitAdvertiserRenderer&&(R=g.t(F.visitAdvertiserRenderer,g.Wq))&&(h=EVI(this)&&this.L?this.L:this.B)&&(a=new rf(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,a),a.Ab(h),a.init(R7("visit-advertiser"),R,this.macros),uG(a.element),R=tj(a.element),KD(a.element,R+" This link opens in new tab"));!(a=this.api.W())||g.DU(a)||g.Py(a)||a.controlsType!="3"&&!a.disableOrganicUi||(J=new jj(this.api,this.D,J,!1),J.Ab(this.Sl), g.z(this,J));F.adDisclosureBannerRenderer&&(F=g.t(F.adDisclosureBannerRenderer,DJv))&&(J=new y6(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),J.Ab(this.aR),J.init(R7("ad-disclosure-banner"),F),g.z(this,J));this.api.W().X("enable_updated_html5_player_focus_style")&&g.J$(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; ZJ.prototype.clear=function(){this.hide()};g.Ox.prototype.flush=function(R,F){R=R===void 0?[]:R;F=F===void 0?!1:F;if(g.pR("enable_client_streamz_web")){R=g.N(R);for(var h=R.next();!h.done;h=R.next())h=RjB(h.value),this.B&&Qx(h,gF,2,this.B),h={serializedIncrementBatch:g.Tf(h.K())},g.MU("streamzIncremented",h,{sendIsolatedPayload:F})}}; g.A(rYL,g.Ox);var RKm=new Map;m5.prototype.set=function(R,F,h){h=h!==void 0?Date.now()+h:void 0;this.B.set(R,F,h)}; m5.prototype.get=function(R){return this.B.get(R)}; m5.prototype.remove=function(R){this.B.remove(R)};var sfL=null;var u5=null,df=null,PM=null,AY7=null;g.Fk("yt.www.ads.eventcache.getLastCompanionData",function(){return u5}); g.Fk("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Fk("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return df}); g.Fk("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return PM}); g.Fk("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return AY7});var NSO=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);z2.prototype.handleResponse=function(R,F){if(!F)throw Error("request needs to be passed into ConsistencyService");var h,a;F=((h=F.uj.context)==null?void 0:(a=h.request)==null?void 0:a.consistencyTokenJars)||[];var J;(R=(J=R.responseContext)==null?void 0:J.consistencyTokenJar)&&this.replace(F,R)}; z2.prototype.replace=function(R,F){R=g.N(R);for(var h=R.next();!h.done;h=R.next())delete this.B[h.value.encryptedTokenJarContents];LFa(this,F)};var gTu=window.location.hostname.split(".").slice(-2).join("."),ms;tF.getInstance=function(){ms=g.hG("yt.clientLocationService.instance");ms||(ms=new tF,g.Fk("yt.clientLocationService.instance",ms));return ms}; g.Q=tF.prototype; g.Q.setLocationOnInnerTubeContext=function(R){R.client||(R.client={});if(this.B)R.client.locationInfo||(R.client.locationInfo={}),R.client.locationInfo.latitudeE7=Math.floor(this.B.coords.latitude*1E7),R.client.locationInfo.longitudeE7=Math.floor(this.B.coords.longitude*1E7),R.client.locationInfo.horizontalAccuracyMeters=Math.round(this.B.coords.accuracy),R.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.K||this.locationPlayabilityToken)R.client.locationPlayabilityToken=this.K|| this.locationPlayabilityToken}; g.Q.handleResponse=function(R){var F;R=(F=R.responseContext)==null?void 0:F.locationPlayabilityToken;R!==void 0&&(this.locationPlayabilityToken=R,this.B=void 0,g.Kp("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=KP(this))&&this.localStorage.set("yt-location-playability-token",R,15552E3):g.bB("YT_CL",JSON.stringify({loctok:R}),15552E3,gTu,!0))}; g.Q.clearLocationPlayabilityToken=function(R){R==="TVHTML5"?(this.localStorage=KP(this))&&this.localStorage.remove("yt-location-playability-token"):g.Og("YT_CL");this.K=void 0;this.D!==-1&&(clearTimeout(this.D),this.D=-1)}; g.Q.getCurrentPositionFromGeolocation=function(){var R=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var F=!1,h=1E4;g.Kp("INNERTUBE_CLIENT_NAME")==="MWEB"&&(F=!0,h=15E3);return new Promise(function(a,J){navigator.geolocation.getCurrentPosition(function(M){R.B=M;a(M)},function(M){J(M)},{enableHighAccuracy:F, maximumAge:0,timeout:h})})}; g.Q.createUnpluggedLocationInfo=function(R){var F={};R=R.coords;if(R==null?0:R.latitude)F.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)F.longitudeE7=Math.floor(R.longitude*1E7);if(R==null?0:R.accuracy)F.locationRadiusMeters=Math.round(R.accuracy);return F}; g.Q.createLocationInfo=function(R){var F={};R=R.coords;if(R==null?0:R.latitude)F.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)F.longitudeE7=Math.floor(R.longitude*1E7);return F};g.Q=jfm.prototype;g.Q.contains=function(R){return Object.prototype.hasOwnProperty.call(this.B,R)}; g.Q.get=function(R){if(this.contains(R))return this.B[R]}; g.Q.set=function(R,F){this.B[R]=F}; g.Q.yj=function(){return Object.keys(this.B)}; g.Q.remove=function(R){delete this.B[R]};DJ.prototype.getModuleId=function(R){return R.serviceId.getModuleId()}; DJ.prototype.get=function(R){a:{var F=this.mappings.get(R.toString());switch(F.type){case "mapping":R=F.value;break a;case "factory":F=F.value();this.mappings.set(R.toString(),{type:"mapping",value:F});R=F;break a;default:R=wU(F)}}return R}; DJ.prototype.registerService=function(R,F){this.mappings.set(R.toString(),{type:"mapping",value:F});return R}; new DJ;var oW={},Zmi=(oW.WEB_UNPLUGGED="^unplugged/",oW.WEB_UNPLUGGED_ONBOARDING="^unplugged/",oW.WEB_UNPLUGGED_OPS="^unplugged/",oW.WEB_UNPLUGGED_PUBLIC="^unplugged/",oW.WEB_CREATOR="^creator/",oW.WEB_KIDS="^kids/",oW.WEB_EXPERIMENTS="^experiments/",oW.WEB_MUSIC="^music/",oW.WEB_REMIX="^music/",oW.WEB_MUSIC_EMBEDDED_PLAYER="^music/",oW.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",oW);CP.prototype.N=function(R,F,h){F=F===void 0?{}:F;h=h===void 0?ID:h;var a={context:g.l5(R.clickTrackingParams,!1,this.L)};var J=this.D(R);if(J){this.B(a,J,F);var M;F=g.Ux(this.K());(J=(M=g.t(R.commandMetadata,g.Tc))==null?void 0:M.apiUrl)&&(F=J);M=pYi(mK(F));R=Object.assign({},{command:R},void 0);a={input:M,Yz:oz(M),uj:a,config:R};a.config.Z3?a.config.Z3.identity=h:a.config.Z3={identity:h};return a}h=new g.Pv("Error: Failed to create Request from Command.",R);g.y7(h)}; g.i7.Object.defineProperties(CP.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.A(cM,CP);g.A(WM,cM);WM.prototype.N=function(){return{input:"/getDatasyncIdsEndpoint",Yz:oz("/getDatasyncIdsEndpoint","GET"),uj:{}}}; WM.prototype.K=function(){return[]}; WM.prototype.D=function(){}; WM.prototype.B=function(){};var GLg={},wmL=(GLg.GET_DATASYNC_IDS=V6(WM),GLg);var XZ={},I2h=(XZ["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",XZ["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",XZ["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",XZ["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",XZ["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",XZ["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",XZ["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", XZ["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",XZ["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",XZ["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",XZ["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",XZ["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",XZ["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",XZ["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",XZ["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", XZ["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",XZ["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",XZ["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",XZ["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",XZ["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",XZ["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",XZ["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", XZ["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",XZ.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",XZ["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",XZ["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",XZ["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",XZ["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",XZ["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",XZ["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", XZ["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",XZ["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",XZ["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",XZ["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",XZ["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",XZ["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",XZ["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",XZ["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",XZ["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",XZ["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",XZ.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",XZ["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",XZ["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",XZ["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",XZ["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",XZ["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",XZ["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",XZ["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",XZ["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",XZ["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",XZ["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",XZ["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",XZ["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",XZ["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",XZ["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",XZ["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",XZ["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",XZ["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",XZ["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",XZ["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",XZ["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",XZ["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", XZ["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",XZ["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",XZ["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",XZ["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",XZ["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",XZ["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",XZ["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",XZ["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",XZ["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", XZ["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",XZ["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",XZ["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",XZ["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",XZ["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",XZ["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",XZ["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",XZ["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", XZ),e5={},e5g=(e5.auto_search="LATENCY_ACTION_AUTO_SEARCH",e5.ad_to_ad="LATENCY_ACTION_AD_TO_AD",e5.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",e5.app_startup="LATENCY_ACTION_APP_STARTUP",e5.browse="LATENCY_ACTION_BROWSE",e5.cast_splash="LATENCY_ACTION_CAST_SPLASH",e5.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",e5.channels="LATENCY_ACTION_CHANNELS",e5.chips="LATENCY_ACTION_CHIPS",e5.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",e5.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", e5.editor="LATENCY_ACTION_EDITOR",e5.embed="LATENCY_ACTION_EMBED",e5.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",e5.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",e5.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",e5.explore="LATENCY_ACTION_EXPLORE",e5.favorites="LATENCY_ACTION_FAVORITES",e5.home="LATENCY_ACTION_HOME",e5.inboarding="LATENCY_ACTION_INBOARDING",e5.landing="LATENCY_ACTION_LANDING",e5.library="LATENCY_ACTION_LIBRARY",e5.live= "LATENCY_ACTION_LIVE",e5.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",e5.management="LATENCY_ACTION_MANAGEMENT",e5.mini_app="LATENCY_ACTION_MINI_APP_PLAY",e5.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",e5.onboarding="LATENCY_ACTION_ONBOARDING",e5.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",e5.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",e5.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",e5.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", e5.prebuffer="LATENCY_ACTION_PREBUFFER",e5.prefetch="LATENCY_ACTION_PREFETCH",e5.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",e5.profile_switcher="LATENCY_ACTION_LOGIN",e5.projects="LATENCY_ACTION_PROJECTS",e5.reel_watch="LATENCY_ACTION_REEL_WATCH",e5.results="LATENCY_ACTION_RESULTS",e5.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",e5.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",e5.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",e5.review="LATENCY_ACTION_REVIEW",e5.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",e5.search_ui="LATENCY_ACTION_SEARCH_UI",e5.search_suggest="LATENCY_ACTION_SUGGEST",e5.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",e5.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",e5.seek="LATENCY_ACTION_PLAYER_SEEK",e5.settings="LATENCY_ACTION_SETTINGS",e5.store="LATENCY_ACTION_STORE",e5.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",e5.tenx="LATENCY_ACTION_TENX",e5.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",e5.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", e5.watch="LATENCY_ACTION_WATCH",e5.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",e5["watch,watch7"]="LATENCY_ACTION_WATCH",e5["watch,watch7_html5"]="LATENCY_ACTION_WATCH",e5["watch,watch7ad"]="LATENCY_ACTION_WATCH",e5["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",e5.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",e5.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",e5.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",e5.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",e5.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",e5.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",e5.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",e5.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",e5);Object.assign(e5g,I2h);g.A(GQ,wM);var WF2=new EP("aft-recorded",GQ);var ib6=g.Wi.ytLoggingGelSequenceIdObj_||{};g.Fk("ytLoggingGelSequenceIdObj_",ib6);var w5=g.Wi.ytLoggingLatencyUsageStats_||{};g.Fk("ytLoggingLatencyUsageStats_",w5);IS.prototype.tick=function(R,F,h,a){Ey(this,"tick_"+R+"_"+F)||g.MU("latencyActionTicked",{tickName:R,clientActionNonce:F},{timestamp:h,cttAuthInfo:a})}; IS.prototype.info=function(R,F,h){var a=Object.keys(R).join("");Ey(this,"info_"+a+"_"+F)||(R=Object.assign({},R),R.clientActionNonce=F,g.MU("latencyActionInfo",R,{cttAuthInfo:h}))}; IS.prototype.jspbInfo=function(R,F,h){for(var a="",J=0;J=J.length?(F.append(J),R-=J.length):R?(F.append(new Uint8Array(J.buffer,J.byteOffset,R)),h.append(new Uint8Array(J.buffer,J.byteOffset+R,J.length-R)),R=0):h.append(J);return{SU:F,W9:h}}; hl.prototype.isFocused=function(R){return R>=this.K&&R=64&&(this.S.set(R.subarray(0,64-this.D),this.D),F=64-this.D,this.D=0,FT_(this,this.S,0));for(;F+64<=h;F+=64)FT_(this,R,F);F=this.start&&(R=2&&h.ssdaiAdsConfig&&gf("Unexpected ad placement renderers length",R.slot,null,{length:a.length});var J;((J=h.adSlots)==null?0:J.some(function(M){var v,I;return((v=g.t(M,hQ))==null?void 0:(I=v.adSlotMetadata)==null?void 0:I.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||a.some(function(M){var v,I,w,E; return!!((v=M.renderer)==null?0:(I=v.linearAdSequenceRenderer)==null?0:(w=I.linearAds)==null?0:w.length)||!((E=M.renderer)==null||!E.instreamVideoAdRenderer)})||HxL(R)})}; Vk.prototype.aC=function(){IiI(this.B)};UH.prototype.Jf=function(){var R=this;G0n(this.D,function(){var F=lt(R.slot.clientMetadata,"metadata_type_ad_break_request_data");return F.cueProcessedMs?R.B.get().fetch({wI:F.getAdBreakUrl,w6:new g.KI(F.fG,F.LG),cueProcessedMs:F.cueProcessedMs}):R.B.get().fetch({wI:F.getAdBreakUrl,w6:new g.KI(F.fG,F.LG)})})}; UH.prototype.aC=function(){IiI(this.D)};CI.prototype.Jf=function(){var R=this.slot.clientMetadata,F,h=(F=this.slot.fulfilledLayout)!=null?F:lt(R,"metadata_type_fulfilled_layout");d_O(this.callback,this.slot,h)}; CI.prototype.aC=function(){vW(this.callback,this.slot,new C("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")};WW.prototype.build=function(R,F){return F.fulfilledLayout||cW(F,{u9:["metadata_type_fulfilled_layout"]})?new CI(R,F):this.K(R,F)};g.A(Ri,WW); Ri.prototype.K=function(R,F){if(cW(F,{u9:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Vk(R,F,this.B,this.D,this.DN,this.pI,this.cG,this.rA,this.Ei);if(cW(F,{u9:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new UH(R,F,this.B,this.D,this.DN,this.pI);throw new C("Unsupported slot with type: "+F.slotType+" and client metadata: "+Dv(F.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.A(Fe,WW);Fe.prototype.K=function(R,F){throw new C("Unsupported slot with type: "+F.slotType+" and client metadata: "+Dv(F.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.Q=L$L.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(R){if(R.layoutId!==this.layout.layoutId)this.callback.C_(this.slot,R,new Kf("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 F=lt(R.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.xH(this.slot,R),PNB(this.K, this.slot,F)):gf("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,R)}}; g.Q.Qd=function(R,F){R.layoutId!==this.layout.layoutId?this.callback.C_(this.slot,R,new Kf("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.mz(this.slot,R,F),yIL(this),qD2(this))};g.A(vQ,g.h0);g.Q=vQ.prototype;g.Q.T_=function(){return this.D.slot}; g.Q.wA=function(){return this.D.layout}; g.Q.init=function(){this.K.get().addListener(this)}; g.Q.release=function(){this.K.get().removeListener(this);this.dispose()}; g.Q.aJ=function(){}; g.Q.BN=function(){}; g.Q.u3=function(){}; g.Q.Gl=function(){}; g.Q.startRendering=function(R){var F=this;M9(this.D,R,function(){return void F.B$()})}; g.Q.B$=function(){this.K.get().B$(this.B)}; g.Q.Qd=function(R,F){var h=this;M9(this.D,R,function(){var a=h.K.get();$VO(a,h.B,3);h.B=[];h.callback.mz(h.slot,R,F)})}; g.Q.Ez=function(){this.K.RR()||this.K.get().removeListener(this);g.h0.prototype.Ez.call(this)}; g.i7.Object.defineProperties(vQ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.D.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.D.layout}}});rW.prototype.FJ=function(R,F){F=F===void 0?!1:F;var h=(this.K.get(R)||[]).concat();if(F=F&&bx2(R)){var a=this.K.get(F);a&&h.push.apply(h,g.S(a))}pA(this,R,h);this.B.add(R);F&&this.B.add(F)}; rW.prototype.bY=function(R,F){F=F===void 0?!1:F;if(!this.B.has(R)){var h=F&&bx2(R);h&&(F=!this.B.has(h));this.FJ(R,F)}};g.A(mNL,Fu);g.A(x_,vQ);g.Q=x_.prototype;g.Q.KK=function(R,F){iZ("ads-engagement-panel-layout",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),g.t(this.wA().renderingContent,f5),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(F,h,a,J,M){return new mNL(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};g.A(X5i,Fu);g.A(N9,vQ);g.Q=N9.prototype;g.Q.KK=function(R,F){iZ("banner-image",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),g.t(this.wA().renderingContent,$S),this.callback,"metadata_type_banner_image_layout_view_model",function(F,h,a,J,M){return new X5i(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};g.A(HQ,Fu);g.A(LA,vQ);g.Q=LA.prototype;g.Q.KK=function(R,F){iZ("action-companion",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),g.t(this.wA().renderingContent,p5),this.callback,"metadata_type_action_companion_ad_renderer",function(F,h,a,J,M){return new HQ(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){F.layoutId===this.layout.layoutId?this.Zn.bY("impression"):this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};g.A(uXI,Fu);g.A(TM,vQ);g.Q=TM.prototype;g.Q.KK=function(R,F){iZ("image-companion",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),g.t(this.wA().renderingContent,kS),this.callback,"metadata_type_image_companion_ad_renderer",function(F,h,a,J,M){return new uXI(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){F.layoutId===this.layout.layoutId?this.Zn.bY("impression"):this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};g.A(Pw7,Fu);g.A(y1,vQ);g.Q=y1.prototype;g.Q.KK=function(R,F){iZ("shopping-companion",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(F,h,a,J,M){return new Pw7(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){F.layoutId===this.layout.layoutId?this.Zn.bY("impression"):this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};g.A(fA,vQ);g.Q=fA.prototype;g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(F,h,a,J,M){return new HQ(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(){}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)}; g.Q.KK=function(){};g.Q=V27.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){this.rA.get().addListener(this);this.rA.get().Af.push(this);var R=lt(this.layout.clientMetadata,"metadata_type_video_length_seconds"),F=lt(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");wW(this.layout.Df)&&vF(this.KO.get(),this.layout.layoutId,{j4:F,NL:R,listener:this})}; g.Q.release=function(){this.rA.get().removeListener(this);Yza(this.rA.get(),this);wW(this.layout.Df)&&gg(this.KO.get(),this.layout.layoutId)}; g.Q.startRendering=function(R){this.callback.xH(this.slot,R)}; g.Q.Qd=function(R,F){egT(this.pI.get())&&!this.B&&(this.Zn.bY("abandon"),this.B=!0);this.callback.mz(this.slot,R,F)}; g.Q.Y7=function(R){switch(R.id){case "part2viewed":this.Zn.bY("start");this.Zn.bY("impression");break;case "videoplaytime25":this.Zn.bY("first_quartile");break;case "videoplaytime50":this.Zn.bY("midpoint");break;case "videoplaytime75":this.Zn.bY("third_quartile");break;case "videoplaytime100":egT(this.pI.get())?this.B||(this.Zn.bY("complete"),this.B=!0):this.Zn.bY("complete");AE(this.Zn)&&Q1(this.Zn,Infinity,!0);nvL(this.pI.get())&&q9(this.D,Infinity,!0);break;case "engagedview":AE(this.Zn)||this.Zn.bY("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:gf("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.Q.onVolumeChange=function(){}; g.Q.Vz=function(){}; g.Q.v7=function(){}; g.Q.Je=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.gk=function(){}; g.Q.h0=function(){}; g.Q.gH=function(R){nvL(this.pI.get())&&q9(this.D,R*1E3,!1);AE(this.Zn)&&Q1(this.Zn,R*1E3,!1)}; g.Q.I3=function(){}; g.Q.rO=function(){this.Zn.bY("active_view_measurable")}; g.Q.S3=function(){this.Zn.bY("active_view_viewable")}; g.Q.Ax=function(){this.Zn.bY("active_view_fully_viewable_audible_half_duration")}; g.Q.Ur=function(){this.Zn.bY("audio_measurable")}; g.Q.GJ=function(){this.Zn.bY("audio_audible")};g.A(je,vQ);g.Q=je.prototype;g.Q.init=function(){vQ.prototype.init.call(this);var R=lt(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),F={adsClientData:this.layout.kH};this.B.push(new sx(R,this.layout.layoutId,lt(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),F,!0))}; g.Q.fP=function(){this.L||this.rA.get().resumeVideo(1)}; g.Q.startRendering=function(R){vQ.prototype.startRendering.call(this,R);Yp(this.rA.get(),"ad-showing");this.callback.xH(this.slot,R);this.N.Wn=this}; g.Q.Qd=function(R,F){vQ.prototype.Qd.call(this,R,F);sT(this.rA.get(),"ad-showing");RW(this.N,this)}; g.Q.KK=function(R){switch(R){case "ad-info-icon-button":(this.L=this.rA.get().Vr(1))||this.rA.get().pauseVideo();break;case "visit-advertiser":this.rA.get().pauseVideo()}}; g.Q.Ez=function(){vQ.prototype.Ez.call(this)};g.A(ZX,Fu);g.A(bZ,vQ);g.Q=bZ.prototype;g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(F,h,a,J,M){return new ZX(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(){}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)}; g.Q.KK=function(){};g.A(Se,Fu);g.A(Oe,vQ);Oe.prototype.init=function(){vQ.prototype.init.call(this);this.B.push(new Se(g.t(this.layout.renderingContent,K5),this.layout.layoutId,{adsClientData:this.layout.kH}))}; Oe.prototype.KK=function(){lJ(this.L.get(),this.N)&&Ii(this.cG.get(),3)}; Oe.prototype.startRendering=function(R){vQ.prototype.startRendering.call(this,R);this.callback.xH(this.slot,R)}; Oe.prototype.Ez=function(){vQ.prototype.Ez.call(this)};g.A(mQ,Fu);g.A(oi,vQ);oi.prototype.init=function(){vQ.prototype.init.call(this);var R=g.t(this.layout.renderingContent,Ue)||lt(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),F=gW(this.Zn);this.B.push(new mQ(R,F,this.layout.layoutId,{adsClientData:this.layout.kH},!0,!0))}; oi.prototype.startRendering=function(R){vQ.prototype.startRendering.call(this,R);this.callback.xH(this.slot,R)}; oi.prototype.KK=function(R,F){if(F===this.layout.layoutId)switch(R){case "skip-button":var h;(R=(h=lt(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&R.Z8(this.T_(),this.layout)}}; oi.prototype.Ez=function(){vQ.prototype.Ez.call(this)};ee.prototype.build=function(R,F,h,a){if(Xe(a,{u9:["metadata_type_ad_break_response_data"],jI:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new L$L(R,h,a,this.D,this.K,this.B);throw new Kf("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Dv(a.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.A(cIn,Fu);g.A(nA,vQ);g.Q=nA.prototype;g.Q.KK=function(R,F){iZ("ads-engagement-panel",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),g.t(this.wA().renderingContent,Qu),this.callback,"metadata_type_ads_engagement_panel_renderer",function(F,h,a,J,M){return new cIn(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){F.layoutId===this.layout.layoutId?this.Zn.bY("impression"):this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};g.A(uZ,vQ);g.Q=uZ.prototype;g.Q.KK=function(R,F){iZ("top-banner-image-text-icon-buttoned",R,this.S.get().o3,this.cG.get(),this.L,this.N,this.T_(),this.wA(),F)}; g.Q.startRendering=function(R){GM(this.Zn,this.T_(),this.wA(),g.t(this.wA().renderingContent,AO),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(F,h,a,J,M){return new ZX(F,h,a,J,M)},this.B); vQ.prototype.startRendering.call(this,R)}; g.Q.xH=function(R,F){this.N===F.layoutId&&(this.L===null?this.L=this.cG.get().ma():gf("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Ez=function(){JB(this.u$(),this);vQ.prototype.Ez.call(this)};FUn.prototype.build=function(R,F,h,a){if(Xe(a,W$n())||g.t(a.renderingContent,Qu)!==void 0)return new nA(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,nf7())||g.t(a.renderingContent,p5)!==void 0)return new LA(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,dNi())||g.t(a.renderingContent,kS)!==void 0)return new TM(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,zTn()))return new y1(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,DNT()))return new fA(R,h,a,this.oT,this.cG,this.u$, this.KO,this.B);if(Xe(a,eTi())||g.t(a.renderingContent,$S)!==void 0)return new N9(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,RWL())||g.t(a.renderingContent,AO)!==void 0)return new uZ(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,UNi()))return new bZ(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);if(Xe(a,of2())||g.t(a.renderingContent,f5)!==void 0)return new x_(R,h,a,this.oT,this.cG,this.u$,this.KO,this.B);throw new Kf("Unsupported layout with type: "+a.layoutType+" and client metadata: "+ Dv(a.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};hWI.prototype.build=function(R,F,h,a){if(Xe(a,{u9:["metadata_type_linked_player_bytes_layout_id"],jI:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Oe(R,h,a,this.oT,this.cG,this.B);throw new Kf("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Dv(a.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.Q=a6m.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(R){R.layoutId!==this.layout.layoutId?this.callback.C_(this.slot,R,new Kf("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.xH(this.slot,R),this.Zn.bY("impression"),IU(this.Xx,R,"normal"))}; g.Q.Qd=function(R,F){R.layoutId!==this.layout.layoutId?this.callback.C_(this.slot,R,new Kf("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.mz(this.slot,R,F)};g.Q=Mia.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){}; g.Q.release=function(){}; g.Q.startRendering=function(R){R.layoutId!==this.layout.layoutId?this.callback.C_(this.slot,R,new Kf("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.xH(this.slot,R),this.Zn.bY("impression"),IU(this.Xx,R,"normal"))}; g.Q.Qd=function(R,F){R.layoutId!==this.layout.layoutId?this.callback.C_(this.slot,R,new Kf("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.mz(this.slot,R,F)};dW.prototype.build=function(R,F,h,a){if(!this.pI.get().U.W().X("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Xe(a,J0g()))return new a6m(R,h,a,this.cG,this.Xx)}else if(Xe(a,{u9:[],jI:["LAYOUT_TYPE_FORECASTING"]}))return new Mia(R,h,a,this.cG,this.Xx);throw new Kf("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Dv(a.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.A(GA2,Fu);g.A(PQ,vQ);g.Q=PQ.prototype;g.Q.init=function(){vQ.prototype.init.call(this);var R=g.t(this.layout.renderingContent,V1)||lt(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),F={adsClientData:this.layout.kH};this.B.push(new GA2(R,lt(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,F))}; g.Q.fP=function(){this.L||this.rA.get().resumeVideo(2)}; g.Q.startRendering=function(R){vQ.prototype.startRendering.call(this,R);this.callback.xH(this.slot,R);this.N.Wn=this}; g.Q.Qd=function(R,F){vQ.prototype.Qd.call(this,R,F);RW(this.N,this)}; g.Q.KK=function(R,F){if(!oI(this.pI.get(),"stop_handling_click_for_non_rendering_overlay_layout")||F===this.layout.layoutId){if(lJ(this.S.get(),this.Y))switch(R){case "visit-advertiser-link":Ii(this.cG.get(),3)}switch(R){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.rA.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.rA.get().Vr(2))||this.rA.get().pauseVideo();break; case "visit-advertiser-link":this.rA.get().pauseVideo();I6i(this).hd();break;case "skip-button":if(R=I6i(this),this.layout.renderingContent&&!dZ(this.layout.clientMetadata,"metadata_type_dai")||!R||!R.wz){var h;(R=(h=lt(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&R.Z8(this.T_(),this.layout)}else gf("Requesting to skip by LegacyPlayerBytes when components enabled"),R.M_(this.T_(),this.layout)}}}; g.Q.Ez=function(){vQ.prototype.Ez.call(this)};g.A(zM,vQ);g.Q=zM.prototype;g.Q.init=function(){vQ.prototype.init.call(this);var R=g.t(this.layout.renderingContent,DX)||lt(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),F={adsClientData:this.layout.kH},h;(h=!!this.layout.renderingContent)||(h=KA(this),h=!(h&&h.wz));this.B.push(new sx(R,this.layout.layoutId,lt(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),F,h))}; g.Q.fP=function(){this.L||this.rA.get().resumeVideo(2)}; g.Q.startRendering=function(R){vQ.prototype.startRendering.call(this,R);this.callback.xH(this.slot,R);this.N.Wn=this}; g.Q.Qd=function(R,F){vQ.prototype.Qd.call(this,R,F);RW(this.N,this)}; g.Q.KK=function(R,F){if(!this.pI||!oI(this.pI.get(),"stop_handling_click_for_non_rendering_overlay_layout")||F===this.layout.layoutId){if(lJ(this.S.get(),this.Y))switch(R){case "visit-advertiser":Ii(this.cG.get(),3)}switch(R){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.rA.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.rA.get().Vr(2))||this.rA.get().pauseVideo();break; case "visit-advertiser":this.rA.get().pauseVideo();KA(this).hd();break;case "skip-button":if(R=KA(this),this.layout.renderingContent&&!dZ(this.layout.clientMetadata,"metadata_type_dai")||!R||!R.wz){var h;(R=(h=lt(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&R.Z8(this.T_(),this.layout)}else gf("Requesting to skip by LegacyPlayerBytes"),R.M_(this.T_(),this.layout)}}}; g.Q.Ez=function(){vQ.prototype.Ez.call(this)};g.A(wxi,Fu);g.A(tE,vQ);g.Q=tE.prototype;g.Q.startRendering=function(R){var F=this;M9(this.D,R,function(){F.B.push(new wxi(lt(F.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),R.layoutId,R.kH));F.B$();F.callback.xH(F.slot,R);g.V(Mj(F.rA.get(),1),512)&&F.callback.C_(F.T_(),F.wA(),new Kf("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.Q.h0=function(){}; g.Q.gk=function(R){if(R.state.isError()){var F;this.callback.C_(this.T_(),this.wA(),new Kf("A player error happened during adNotify",{playerErrorCode:(F=R.state.wL)==null?void 0:F.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.Q.onFullscreenToggled=function(){}; g.Q.v7=function(){}; g.Q.Je=function(){}; g.Q.Vz=function(){}; g.Q.onVolumeChange=function(){}; g.Q.Y7=function(){}; g.Q.I3=function(){}; g.Q.KK=function(){};g.A(BYa,Fu);g.A(lZ,vQ);lZ.prototype.init=function(){vQ.prototype.init.call(this);var R=g.t(this.layout.renderingContent,CA),F=gW(this.Zn);this.B.push(new BYa(R,F,this.layout.layoutId,{adsClientData:this.layout.kH}))}; lZ.prototype.startRendering=function(R){vQ.prototype.startRendering.call(this,R);this.callback.xH(this.slot,R)}; lZ.prototype.KK=function(R,F){if(F===this.layout.layoutId)switch(R){case "skip-button":var h;(R=(h=lt(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&R.Z8(this.T_(),this.layout)}}; lZ.prototype.Ez=function(){vQ.prototype.Ez.call(this)};r0L.prototype.build=function(R,F,h,a){if(R=cQ(R,h,a,this.oT,this.rA,this.cG,this.D,this.B,this.pI))return R;throw new Kf("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Dv(a.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.Q=FI.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){this.rA.get().addListener(this);this.rA.get().Af.push(this);if(this.layout.renderingContent){var R=this.qQ.get();R=Oc(R,1).s_/1E3}else R=lt(this.layout.clientMetadata,"metadata_type_video_length_seconds");var F=g.t(this.layout.renderingContent,dk),h=F?Ee(F.pings):lt(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");F=F?Zxn(F.pings):lt(this.layout.clientMetadata,"metadata_type_active_view_identifier");wW(this.layout.Df)&&vF(this.KO.get(),this.layout.layoutId, {j4:h,NL:R,listener:this,Sh:F})}; g.Q.release=function(){this.rA.get().removeListener(this);Yza(this.rA.get(),this);wW(this.layout.Df)&&gg(this.KO.get(),this.layout.layoutId)}; g.Q.startRendering=function(R){this.callback.xH(this.slot,R)}; g.Q.Qd=function(R,F){hH(this,"abandon");this.callback.mz(this.slot,R,F)}; g.Q.Y7=function(R){switch(R.id){case "part2viewed":this.Zn.bY("start");this.Zn.bY("impression");break;case "videoplaytime25":this.Zn.bY("first_quartile");break;case "videoplaytime50":this.Zn.bY("midpoint");break;case "videoplaytime75":this.Zn.bY("third_quartile");break;case "videoplaytime100":hH(this,"complete");AE(this.Zn)&&Q1(this.Zn,Infinity,!0);break;case "engagedview":AE(this.Zn)||this.Zn.bY("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:gf("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.Q.onVolumeChange=function(){}; g.Q.Vz=function(){}; g.Q.v7=function(){}; g.Q.Je=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.gk=function(R){this.B||(g.i5(R,4)&&!g.i5(R,2)?k_(this.Zn,"pause"):IK(R,4)<0&&!(IK(R,2)<0)&&k_(this.Zn,"resume"))}; g.Q.h0=function(){}; g.Q.gH=function(R){AE(this.Zn)&&Q1(this.Zn,R*1E3,!1)}; g.Q.I3=function(){hH(this,"swipe")}; g.Q.rO=function(){this.Zn.bY("active_view_measurable")}; g.Q.S3=function(){this.Zn.bY("active_view_viewable")}; g.Q.Ax=function(){this.Zn.bY("active_view_fully_viewable_audible_half_duration")}; g.Q.Ur=function(){this.Zn.bY("audio_measurable")}; g.Q.GJ=function(){this.Zn.bY("audio_audible")};Yji.prototype.build=function(R,F,h,a){if(h.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.t(a.renderingContent,dk)!==void 0)return new FI(R,h,a,this.rA,this.cG,this.pI,this.KO,this.qQ);F=["metadata_type_ad_placement_config"];for(var J=g.N(Y_()),M=J.next();!M.done;M=J.next())F.push(M.value);if(Xe(a,{u9:F,jI:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return h.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new FI(R,h,a,this.rA,this.cG,this.pI,this.KO,this.qQ):new V27(R,h,a,this.rA,this.cG, this.OP,this.pI,this.KO);throw new Kf("Unsupported layout with type: "+a.layoutType+" and client metadata: "+Dv(a.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var vz={contentCpn:"",m4:new Map};LUL.prototype.z$=function(R,F){var h={};F=Object.assign({},F,(h.cc=this.Bf.G5(),h));this.Bf.U.dA(R,F)};var q$7,zc; q$7={TLz:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",D2G:"AUTHENTICATION_MALFORMED",ELo:"AUTHENTICATION_MISSING",K3l:"BAD_REQUEST",spl:"CAST_SESSION_DEVICE_MISMATCHED",SJG:"CAST_SESSION_VIDEO_MISMATCHED",vLI:"CAST_TOKEN_EXPIRED",c0$:"CAST_TOKEN_FAILED",RVI:"CAST_TOKEN_MALFORMED",Oru:"CGI_PARAMS_MALFORMED",Nlo:"CGI_PARAMS_MISSING",Qpl:"DEVICE_FALLBACK",v7l:"GENERIC_WITH_LINK_AND_CPN",ce$:"ERROR_HDCP",Reo:"LICENSE",N4o:"VIDEO_UNAVAILABLE",lt$:"FORMAT_UNAVAILABLE",Jen:"GEO_FAILURE", Ci$:"HTML5_AUDIO_RENDERER_ERROR",u4$:"GENERIC_WITHOUT_LINK",BE$:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",o0b:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",aYu:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",dgz:"HTML5_SPS_UMP_STATUS_REJECTED",AV$:"INVALID_DRM_MESSAGE",BTI:"PURCHASE_NOT_FOUND",oYb:"PURCHASE_REFUNDED",KYu:"RENTAL_EXPIRED",r5u:"RETRYABLE_ERROR",MEz:"SERVER_ERROR",J5$:"SIGNATURE_EXPIRED",FYR:"STOPPED_BY_ANOTHER_PLAYBACK",WYo:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",jQ$:"STREAMING_NOT_ALLOWED", HXo:"STREAM_LICENSE_NOT_FOUND",u3u:"TOO_MANY_REQUESTS",Bno:"TOO_MANY_REQUESTS_WITH_LINK",ocl:"TOO_MANY_STREAMS_PER_ENTITLEMENT",aKl:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",qSz:"VIDEO_FORBIDDEN",kKu:"VIDEO_NOT_FOUND",U2Q:"BROWSER_OR_EXTENSION_ERROR"};zc={}; g.Ks=(zc.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.",zc.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",zc.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", zc.LICENSE="Se produjo un error de licencia con este video.",zc.VIDEO_UNAVAILABLE="Video no disponible",zc.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",zc.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",zc.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",zc.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",zc.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",zc.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",zc.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",zc.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", zc.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",zc.PURCHASE_NOT_FOUND="Este es un video pagado.",zc.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",zc.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",zc.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",zc.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", zc.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",zc.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",zc.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",zc.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",zc.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",zc.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",zc.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",zc.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",zc.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", zc.TOO_MANY_REQUESTS="Accede para mirar el video.",zc.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",zc.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",zc.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",zc.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", zc.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",zc.VIDEO_NOT_FOUND="No se puede encontrar este video.",zc.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",zc);var f2L;var jGh=g.ol(),Zbk=jGh.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Zbk||Zbk.length<2)f2L=void 0;else{var bbh=jGh.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);f2L=bbh&&bbh.length===6?Number(bbh[5].replace("_",".")):0}var Cs=f2L,ns=Cs>=0;g.A(g.xK,Hv);g.xK.prototype.T=function(R,F,h,a,J){return Hv.prototype.T.call(this,R,F,h,a,J)};var Ka={},o_=(Ka.FAIRPLAY="fairplay",Ka.PLAYREADY="playready",Ka.WIDEVINE="widevine",Ka.CLEARKEY=null,Ka.FLASHACCESS=null,Ka.UNKNOWN=null,Ka.WIDEVINE_CLASSIC=null,Ka);NQ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var tr={},uM=(tr.WIDTH={name:"width",video:!0,valid:640,SE:99999},tr.HEIGHT={name:"height",video:!0,valid:360,SE:99999},tr.FRAMERATE={name:"framerate",video:!0,valid:30,SE:9999},tr.BITRATE={name:"bitrate",video:!0,valid:3E5,SE:2E9},tr.EOTF={name:"eotf",video:!0,valid:"bt709",SE:"catavision"},tr.CHANNELS={name:"channels",video:!1,valid:2,SE:99},tr.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",SE:"invalidformat"},tr.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", SE:"nope"},tr.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",SE:"av99.0.05M.08"},tr.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",SE:"invalid"},tr.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",SE:"false"},tr);var S$k=["h","H"],Obt=["9","("],mS4=["9h","(h"],oTL=["8","*"],X4h=["a","A"],ewg=["o","O"],nTv=["m","M"],uW7=["mac3","MAC3"],dSg=["meac3","MEAC3"],lS={},X1a=(lS.h=S$k,lS.H=S$k,lS["9"]=Obt,lS["("]=Obt,lS["9h"]=mS4,lS["(h"]=mS4,lS["8"]=oTL,lS["*"]=oTL,lS.a=X4h,lS.A=X4h,lS.o=ewg,lS.O=ewg,lS.m=nTv,lS.M=nTv,lS.mac3=uW7,lS.MAC3=uW7,lS.meac3=dSg,lS.MEAC3=dSg,lS),PXv=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),NWi=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var W={},f7=(W["0"]="f",W["160"]="h",W["133"]="h",W["134"]="h",W["135"]="h",W["136"]="h",W["137"]="h",W["264"]="h",W["266"]="h",W["138"]="h",W["298"]="h",W["299"]="h",W["304"]="h",W["305"]="h",W["214"]="h",W["216"]="h",W["374"]="h",W["375"]="h",W["140"]="a",W["141"]="a",W["327"]="sa",W["258"]="m",W["380"]="mac3",W["328"]="meac3",W["161"]="H",W["142"]="H",W["143"]="H",W["144"]="H",W["222"]="H",W["223"]="H",W["145"]="H",W["224"]="H",W["225"]="H",W["146"]="H",W["226"]="H",W["227"]="H",W["147"]="H",W["384"]= "H",W["376"]="H",W["385"]="H",W["377"]="H",W["149"]="A",W["261"]="M",W["381"]="MAC3",W["329"]="MEAC3",W["598"]="9",W["278"]="9",W["242"]="9",W["243"]="9",W["244"]="9",W["775"]="9",W["776"]="9",W["777"]="9",W["778"]="9",W["779"]="9",W["780"]="9",W["781"]="9",W["782"]="9",W["783"]="9",W["247"]="9",W["248"]="9",W["353"]="9",W["355"]="9",W["356"]="9",W["271"]="9",W["577"]="9",W["313"]="9",W["579"]="9",W["272"]="9",W["302"]="9",W["303"]="9",W["407"]="9",W["408"]="9",W["308"]="9",W["315"]="9",W["330"]= "9h",W["331"]="9h",W["332"]="9h",W["333"]="9h",W["334"]="9h",W["335"]="9h",W["336"]="9h",W["337"]="9h",W["338"]="so",W["600"]="o",W["250"]="o",W["251"]="o",W["774"]="o",W["194"]="*",W["195"]="*",W["220"]="*",W["221"]="*",W["196"]="*",W["197"]="*",W["279"]="(",W["280"]="(",W["317"]="(",W["318"]="(",W["273"]="(",W["274"]="(",W["357"]="(",W["358"]="(",W["275"]="(",W["359"]="(",W["360"]="(",W["276"]="(",W["583"]="(",W["584"]="(",W["314"]="(",W["585"]="(",W["561"]="(",W["277"]="(",W["361"]="(h",W["362"]= "(h",W["363"]="(h",W["364"]="(h",W["365"]="(h",W["366"]="(h",W["591"]="(h",W["592"]="(h",W["367"]="(h",W["586"]="(h",W["587"]="(h",W["368"]="(h",W["588"]="(h",W["562"]="(h",W["409"]="(",W["410"]="(",W["411"]="(",W["412"]="(",W["557"]="(",W["558"]="(",W["394"]="1",W["395"]="1",W["396"]="1",W["397"]="1",W["398"]="1",W["399"]="1",W["720"]="1",W["721"]="1",W["400"]="1",W["401"]="1",W["571"]="1",W["402"]="1",W["694"]="1h",W["695"]="1h",W["696"]="1h",W["697"]="1h",W["698"]="1h",W["699"]="1h",W["700"]="1h", W["701"]="1h",W["702"]="1h",W["703"]="1h",W["386"]="3",W["387"]="w",W["406"]="6",W["787"]="1",W["788"]="1",W["548"]="1e",W["549"]="1e",W["550"]="1e",W["551"]="1e",W["809"]="1e",W["810"]="1e",W["552"]="1e",W["811"]="1e",W["812"]="1e",W["553"]="1e",W["813"]="1e",W["814"]="1e",W["554"]="1e",W["815"]="1e",W["816"]="1e",W["555"]="1e",W["817"]="1e",W["818"]="1e",W["572"]="1e",W["556"]="1e",W["645"]="(",W["646"]="(",W["647"]="(",W["648"]="(",W["649"]="(",W["650"]="(",W["651"]="(",W["652"]="(",W["653"]="(", W["654"]="(",W["655"]="(",W["656"]="(",W["657"]="(",W["658"]="(",W["659"]="(",W["660"]="(",W["661"]="(",W["662"]="(",W["663"]="(",W["664"]="(",W["665"]="(",W["666"]="(",W["667"]="(",W["668"]="(",W["669"]="(",W["670"]="(",W["671"]="(",W["672"]="(",W["673"]="(",W["674"]="(h",W["675"]="(h",W["676"]="(h",W["677"]="(h",W["678"]="(h",W["679"]="(h",W["680"]="(h",W["681"]="(h",W["682"]="(h",W["683"]="(h",W["684"]="(h",W["685"]="(h",W["686"]="(h",W["687"]="(h",W["688"]="A",W["689"]="A",W["690"]="A",W["691"]= "MEAC3",W["773"]="i",W["806"]="I",W["805"]="I",W["829"]="9",W["830"]="9",W["831"]="9",W["832"]="9",W["833"]="9",W["834"]="9",W["835"]="9",W["836"]="9",W["892"]="9",W["893"]="9",W["837"]="9",W["838"]="9",W["839"]="9",W["840"]="9",W["841"]="(",W["842"]="(",W["843"]="(",W["844"]="(",W["845"]="(",W["846"]="(",W["847"]="(",W["848"]="(",W["894"]="(",W["895"]="(",W["849"]="(",W["850"]="(",W["851"]="(",W["852"]="(",W["865"]="9",W["866"]="9",W["867"]="9",W["868"]="9",W["869"]="9",W["870"]="9",W["871"]="9", W["872"]="9",W["896"]="9",W["897"]="9",W["873"]="9",W["874"]="9",W["875"]="9",W["876"]="9",W["877"]="(",W["878"]="(",W["879"]="(",W["880"]="(",W["881"]="(",W["882"]="(",W["883"]="(",W["884"]="(",W["898"]="(",W["899"]="(",W["885"]="(",W["886"]="(",W["887"]="(",W["888"]="(",W);var DS={},k7L=(DS.STEREO_LAYOUT_UNKNOWN=0,DS.STEREO_LAYOUT_LEFT_RIGHT=1,DS.STEREO_LAYOUT_TOP_BOTTOM=2,DS);var Va,TE;Va={};g.L7=(Va.auto=0,Va.tiny=144,Va.light=144,Va.small=240,Va.medium=360,Va.large=480,Va.hd720=720,Va.hd1080=1080,Va.hd1440=1440,Va.hd2160=2160,Va.hd2880=2880,Va.highres=4320,Va);TE={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var yp="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Tm.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};jf.prototype.K_=function(){return this.containerType===2}; jf.prototype.isEncrypted=function(){return!!this.qH}; jf.prototype.rk=function(){return!!this.audio}; jf.prototype.In=function(){return!!this.video}; var Sf=!1;g.A(ha,g.h0);g.Q=ha.prototype;g.Q.appendBuffer=function(R,F,h){if(this.CV.ZV()!==this.appendWindowStart+this.start||this.CV.gq()!==this.appendWindowEnd+this.start||this.CV.wW()!==this.timestampOffset+this.start)this.CV.supports(1),this.CV.qM(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.CV.Ea(this.timestampOffset+this.start);this.CV.appendBuffer(R,F,h)}; g.Q.abort=function(){this.CV.abort()}; g.Q.remove=function(R,F){this.CV.remove(R+this.start,F+this.start)}; g.Q.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.Q.clear=function(){this.CV.clear()}; g.Q.qM=function(R,F){this.appendWindowStart=R;this.appendWindowEnd=F}; g.Q.Vv=function(){return this.timestampOffset+this.start}; g.Q.ZV=function(){return this.appendWindowStart}; g.Q.gq=function(){return this.appendWindowEnd}; g.Q.Ea=function(R){this.timestampOffset=R}; g.Q.wW=function(){return this.timestampOffset}; g.Q.Ca=function(R){R=this.CV.Ca(R===void 0?!1:R);return Fx(R,this.start,this.end)}; g.Q.k_=function(){return this.CV.k_()}; g.Q.mO=function(){return this.CV.mO()}; g.Q.v4=function(){return this.CV.v4()}; g.Q.l3=function(){return this.CV.l3()}; g.Q.Ww=function(){this.CV.Ww()}; g.Q.ym=function(R){return this.CV.ym(R)}; g.Q.fb=function(){return this.CV.fb()}; g.Q.F_=function(){return this.CV.F_()}; g.Q.qc=function(R,F,h){this.CV.qc(R,F,h)}; g.Q.hg=function(R,F,h){this.CV.hg(R,F,h)}; g.Q.O9=function(R,F){return this.CV.O9(R,F)}; g.Q.supports=function(R){return this.CV.supports(R)}; g.Q.Hk=function(){return this.CV.Hk()}; g.Q.isView=function(){return!0}; g.Q.Hq=function(){return this.CV.Hq()?this.isActive:!1}; g.Q.isLocked=function(){return this.hs&&!this.isActive}; g.Q.nO=function(R){R=this.CV.nO(R);R.vw=this.start+"-"+this.end;return R}; g.Q.Wk=function(){return this.CV.Wk()}; g.Q.eg=function(){return this.CV.eg()}; g.Q.Iq=function(){return this.CV.Iq()}; g.Q.Ez=function(){this.CV.n9(this.TP);g.h0.prototype.Ez.call(this)};var An=!1;g.A(Ja,g.h0);g.Q=Ja.prototype;g.Q.appendBuffer=function(R,F,h){this.EQ=!1;h&&(this.ZS=h);if(R.length){var a;((a=this.XW)==null?0:a.appendBuffer)?this.XW.appendBuffer(R):this.XW?this.XW.append(R):this.MF&&this.MF.webkitSourceAppend(this.id,R)}F&&(F.isEncrypted()&&(this.ez=this.ZS),F.type===3&&(this.n_=F),this.Is.push(F.KV()),this.Is.length>4&&this.Is.shift());this.CF&&(this.CF.length>=2||R.length>1048576?delete this.CF:this.CF.push(R))}; g.Q.abort=function(){try{this.XW?this.XW.abort():this.MF&&this.MF.webkitSourceAbort(this.id)}catch(F){if(le2){var R=new g.Pv("Error while abort the source buffer: "+F.name+", "+F.message);g.y7(R)}}this.ZS=this.n_=null}; g.Q.remove=function(R,F,h){this.EQ=!1;var a;if((a=this.XW)==null?0:a.remove)h&&h({b:DK(this.Ca()),s:R,e:F}),this.XW.remove(R,F)}; g.Q.removeAll=function(){this.remove(this.ZV(),this.gq())}; g.Q.clear=function(){this.v4()||(this.abort(),this.removeAll(),this.ez=this.ZS=this.n_=null,this.appendWindowStart=this.timestampOffset=0,this.C8=lW([],[]),this.EQ=!1,this.CF=ay?[]:void 0,this.z6=!0)}; g.Q.ZV=function(){if(An&&this.In)return this.appendWindowStart;var R;return((R=this.XW)==null?void 0:R.appendWindowStart)||0}; g.Q.gq=function(){var R;return((R=this.XW)==null?void 0:R.appendWindowEnd)||0}; g.Q.qM=function(R,F){this.XW&&(An&&this.In?(this.appendWindowStart=R,this.XW.appendWindowEnd=F):R>this.ZV()?(this.XW.appendWindowEnd=F,this.XW.appendWindowStart=R):(this.XW.appendWindowStart=R,this.XW.appendWindowEnd=F))}; g.Q.Vv=function(){return this.timestampOffset}; g.Q.Ea=function(R){An?this.timestampOffset=R:this.supports(1)&&(this.XW.timestampOffset=R)}; g.Q.wW=function(){return An?this.timestampOffset:this.supports(1)?this.XW.timestampOffset:0}; g.Q.Ca=function(R){if(R===void 0?0:R)return this.EQ||this.k_()||(this.C8=this.Ca(!1),this.EQ=!0),this.C8;try{return this.XW?this.XW.buffered:this.MF?this.MF.webkitSourceBuffered(this.id):lW([0],[Infinity])}catch(F){return lW([],[])}}; g.Q.k_=function(){var R;return((R=this.XW)==null?void 0:R.updating)||!1}; g.Q.v4=function(){return this.z6}; g.Q.l3=function(){return!this.z6&&this.k_()}; g.Q.Ww=function(){this.z6=!1}; g.Q.ym=function(R){var F=R==null?void 0:R.Qt;R=R==null?void 0:R.containerType;return!F&&!R||F===this.Qt&&R===this.containerType}; g.Q.fb=function(){return this.ZS}; g.Q.F_=function(){return this.ez}; g.Q.O9=function(R,F){return this.containerType!==R||this.Qt!==F}; g.Q.qc=function(R,F,h){if(this.containerType!==R||h&&this.O9(R,h))this.supports(4),M8()&&this.XW.changeType(F),h&&(this.Qt=h);this.containerType=R}; g.Q.hg=function(R,F,h){this.containerType&&this.O9(R,F)&&M8()&&this.XW.changeType(h);this.containerType=R;this.Qt=F}; g.Q.Hk=function(){return this.n_}; g.Q.isView=function(){return!1}; g.Q.supports=function(R){switch(R){case 1:var F;return((F=this.XW)==null?void 0:F.timestampOffset)!==void 0;case 0:var h;return!((h=this.XW)==null||!h.appendBuffer);case 2:var a;return!((a=this.XW)==null||!a.remove);case 3:var J,M;return!!(((J=this.XW)==null?0:J.addEventListener)&&((M=this.XW)==null?0:M.removeEventListener));case 4:return!(!this.XW||!this.XW.changeType);default:return!1}}; g.Q.Hq=function(){return!this.k_()}; g.Q.isLocked=function(){return!1}; g.Q.nO=function(R){R.to=this.wW();R.up=this.k_();var F,h=((F=this.XW)==null?void 0:F.appendWindowStart)||0,a;F=((a=this.XW)==null?void 0:a.appendWindowEnd)||Infinity;R.aw=h.toFixed(3)+"-"+F.toFixed(3);return R}; g.Q.mO=function(){var R;return((R=this.XW)==null?void 0:R.writeHead)||0}; g.Q.Wk=function(){for(var R={},F=0;F=7&&TYf(this,function(){g.Eg(function(){zWT(R,R.getCurrentTime(),0)},500)}); return F}; g.Q.seekTo=function(R){this.aH()>0&&(ns&&Cs<4&&(R=Math.max(.1,R)),this.setCurrentTime(R))}; g.Q.Iu=function(){if(!this.D&&this.Yo)if(this.Yo.N)try{var R;iA(this,{l:"mer",sr:(R=this.BG)==null?void 0:R.BV(),rs:Ec(this.Yo)});this.Yo.clear();this.D=this.Yo;this.Yo=void 0}catch(F){R=new g.Pv("Error while clearing Media Source in MediaElement: "+F.name+", "+F.message),g.y7(R),this.stopVideo()}else this.stopVideo()}; g.Q.stopVideo=function(){var R=this;if(!this.D){var F;(F=this.Yo)==null||uuI(F);if(zyT){if(!this.K){var h=new rh;h.then(void 0,function(){}); this.K=h;KCT&&this.pause();g.Eg(function(){R.K===h&&(ku(R),h.resolve())},200)}}else ku(this)}}; g.Q.Sb=function(){var R=this.Ft();return Wz(R)&&this.getDuration()?C7(R,this.getCurrentTime()):0}; g.Q.AC=function(){var R=this.getDuration();return R===Infinity?1:R?this.Sb()/R:0}; g.Q.nO=function(){try{var R=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:DK(this.vg(),",",3),vbu:DK(this.Ft()),vbs:DK(this.MO()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.aH(),vns:""+this.ev(),vec:""+this.JG(),vemsg:this.pK(),vvol:""+this.getVolume(),vdom:""+ +this.PN(),vsrc:""+ +!!this.ut(),vw:""+R.width,vh:""+R.height}}catch(F){return{}}}; g.Q.hasError=function(){return this.JG()>0}; g.Q.addEventListener=function(R,F){this.L.listen(R,F,!1,this);this.xF(R)}; g.Q.removeEventListener=function(R,F){this.L.Ap(R,F,!1,this)}; g.Q.dispatchEvent=function(R){if(this.K&&R.type==="pause")return!1;if(tsO){var F,h=((F=R.B)==null?void 0:F.timeStamp)||Infinity;F=h>performance.now()?h-Date.now()+performance.now():h;h=this.D||this.Yo;if((h==null?0:h.v4())||F<=((h==null?void 0:h.S)||0)){var a;iA(this,{l:"mede",sr:(a=this.BG)==null?void 0:a.BV(),et:R.type});return!1}if(this.qD)return iA(this,{l:"medes",et:R.type}),h&&R.type==="seeking"&&(h.S=performance.now(),this.qD=!1),!1}return this.L.dispatchEvent(R)}; g.Q.j8=function(){this.S=!1}; g.Q.Zz=function(){this.S=!0;this.pN(!0)}; g.Q.zj=function(){this.S&&!this.xw()&&this.pN(!0)}; g.Q.equals=function(R){return!!R&&R.G_()===this.G_()}; g.Q.Ez=function(){this.Y&&this.removeEventListener("volumechange",this.zj);zyT&&ku(this);g.d.prototype.Ez.call(this)}; var zyT=!1,KCT=!1,tsO=!1,l6g=!1;g.Q=g.$u.prototype;g.Q.isPaused=function(){return g.V(this,4)}; g.Q.isPlaying=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)}; g.Q.isOrWillBePlaying=function(){return g.V(this,8)&&!g.V(this,2)&&!g.V(this,1024)}; g.Q.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)}; g.Q.isBuffering=function(){return g.V(this,1)&&!g.V(this,2)}; g.Q.isError=function(){return g.V(this,128)}; g.Q.isSuspended=function(){return g.V(this,512)}; g.Q.HA=function(){return g.V(this,64)&&g.V(this,4)}; g.Q.toString=function(){return"PSt."+this.state.toString(16)}; var Us={},Ca=(Us.BUFFERING="buffering-mode",Us.CUED="cued-mode",Us.ENDED="ended-mode",Us.PAUSED="paused-mode",Us.PLAYING="playing-mode",Us.SEEKING="seeking-mode",Us.UNSTARTED="unstarted-mode",Us);g.A(jS,g.d);g.Q=jS.prototype;g.Q.l8=function(){return this.K}; g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){var R=lt(this.layout.clientMetadata,"metadata_type_video_length_seconds"),F=lt(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");wW(this.layout.Df)&&vF(this.KO.get(),this.layout.layoutId,{j4:F,NL:R,listener:this,Ha:this.r$()});g2n(this.cG.get(),this);R=this.bT;F=this.layout.layoutId;var h={Ha:this.r$()};R.B.set(F,h);this.kf()}; g.Q.Wu=function(){}; g.Q.release=function(){wW(this.layout.Df)&&gg(this.KO.get(),this.layout.layoutId);G_L(this.cG.get(),this);this.bT.B.delete(this.layout.layoutId);this.ZZ()}; g.Q.iz=function(){}; g.Q.sZ=function(){}; g.Q.startRendering=function(R){Ik(ZF(this));if(bA(this,R)){var F=this.B;iW(F.params.yz.pI.get(),!0)&&HBm(F,"p_sr",{});SS(this);this.Bw(R);this.r$()||this.T6(!1)}}; g.Q.xH=function(R,F){if(F.layoutId===this.layout.layoutId){this.QY="rendering";this.D=this.rA.get().isMuted()||this.rA.get().getVolume()===0;this.bY("impression");this.bY("start");if(this.rA.get().isMuted()){nv(this,"mute");var h;R=((h=fv(this))==null?void 0:h.muteCommands)||[];bz(this.OP.get(),R,this.layout.layoutId)}if(this.rA.get().isFullscreen()){this.FJ("fullscreen");var a;h=((a=fv(this))==null?void 0:a.fullscreenCommands)||[];bz(this.OP.get(),h,this.layout.layoutId)}this.r$()||(a=this.fV.get(), a.K&&!a.D&&(a.N=!1,a.D=!0,a.actionType!=="ad_to_video"&&(f4("pbs",void 0,a.actionType),g.pR("finalize_all_timelines")&&Jqi(a.actionType))));this.gT(1);this.V5(F);var J;F=((J=fv(this))==null?void 0:J.impressionCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.kN=function(R,F,h){this.Y={wr:3,Rx:R==="load_timeout"?402:400,errorMessage:F.message};this.bY("error");var a;R=((a=fv(this))==null?void 0:a.errorCommands)||[];bz(this.OP.get(),R,this.layout.layoutId);this.r$()||this.LY.C_(this.slot,this.layout,F,h)}; g.Q.GS=function(){if(this.QY==="rendering"){nv(this,"pause");var R,F=((R=fv(this))==null?void 0:R.pauseCommands)||[];bz(this.OP.get(),F,this.layout.layoutId);this.gT(2)}}; g.Q.Up=function(){if(this.QY==="rendering"){nv(this,"resume");var R,F=((R=fv(this))==null?void 0:R.resumeCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.iL=function(R,F){F=F===void 0?!1:F;if(this.QY==="rendering"){var h={currentTimeSec:R,flush:F};we(this.B,"p_ip",h);Q1(this.Zn,R*1E3,F);this.D||Q1(this.Zn,R*1E3,F===void 0?!1:F);var a=this.vu();if(a){a/=1E3;if(R>=a*.25||F)this.bY("first_quartile"),we(this.B,"p_fq",h);if(R>=a*.5||F)this.bY("midpoint"),we(this.B,"p_sq",h);if(R>=a*.75||F)this.bY("third_quartile"),we(this.B,"p_tq",h);this.pI.get().U.W().experiments.jl("enable_progress_command_flush_on_kabuki")?q9(this.L,R*1E3,F):q9(this.L,R*1E3,WUi(this)? F:!1)}}}; g.Q.G5=function(){var R;return((R=Oc(this.qQ.get(),1))==null?void 0:R.clientPlaybackNonce)||""}; g.Q.LQ=function(R,F){R.layoutId!==this.layout.layoutId?this.LY.C_(this.slot,R,new Kf("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"):F()}; g.Q.mz=function(R,F,h){if(F.layoutId===this.layout.layoutId)switch(this.QY="not_rendering",this.layoutExitReason=void 0,this.r$()||(R=h!=="normal"||this.position+1===this.S)&&this.T6(R),this.Li(h),this.gT(0),h){case "abandoned":if($_(this.Zn,"impression")){var a,J=((a=fv(this))==null?void 0:a.abandonCommands)||[];bz(this.OP.get(),J,this.layout.layoutId)}break;case "normal":a=((J=fv(this))==null?void 0:J.completeCommands)||[];bz(this.OP.get(),a,this.layout.layoutId);break;case "skipped":var M;a=((M= fv(this))==null?void 0:M.skipCommands)||[];bz(this.OP.get(),a,this.layout.layoutId)}}; g.Q.RA=function(){return this.layout.layoutId}; g.Q.AA=function(){return this.Y}; g.Q.rO=function(){if(this.QY==="rendering"){this.Zn.bY("active_view_measurable");var R,F=((R=fv(this))==null?void 0:R.activeViewMeasurableCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.Ax=function(){if(this.QY==="rendering"){this.Zn.bY("active_view_fully_viewable_audible_half_duration");var R,F=((R=fv(this))==null?void 0:R.activeViewFullyViewableAudibleHalfDurationCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.S3=function(){if(this.QY==="rendering"){this.Zn.bY("active_view_viewable");var R,F=((R=fv(this))==null?void 0:R.activeViewViewableCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.GJ=function(){if(this.QY==="rendering"){this.Zn.bY("audio_audible");var R,F=((R=fv(this))==null?void 0:R.activeViewAudioAudibleCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.Ur=function(){if(this.QY==="rendering"){this.Zn.bY("audio_measurable");var R,F=((R=fv(this))==null?void 0:R.activeViewAudioMeasurableCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}}; g.Q.T6=function(R){this.fV.get().T6(lt(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,R,this.position,this.S,!1)}; g.Q.onFullscreenToggled=function(R){if(this.QY==="rendering")if(R){this.FJ("fullscreen");var F,h=((F=fv(this))==null?void 0:F.fullscreenCommands)||[];bz(this.OP.get(),h,this.layout.layoutId)}else this.FJ("end_fullscreen"),F=((h=fv(this))==null?void 0:h.endFullscreenCommands)||[],bz(this.OP.get(),F,this.layout.layoutId)}; g.Q.onVolumeChange=function(){if(this.QY==="rendering")if(this.rA.get().isMuted()){nv(this,"mute");var R,F=((R=fv(this))==null?void 0:R.muteCommands)||[];bz(this.OP.get(),F,this.layout.layoutId)}else nv(this,"unmute"),R=((F=fv(this))==null?void 0:F.unmuteCommands)||[],bz(this.OP.get(),R,this.layout.layoutId)}; g.Q.v7=function(){}; g.Q.Je=function(){}; g.Q.Vz=function(){}; g.Q.Y7=function(){}; g.Q.I3=function(){}; g.Q.FJ=function(R){this.Zn.FJ(R,!this.D)}; g.Q.bY=function(R){this.Zn.bY(R,!this.D)}; g.Q.r$=function(){var R=lt(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return R===void 0?(gf("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.pI.get().r$(R)};g.A(Kv,jS);g.Q=Kv.prototype;g.Q.kf=function(){}; g.Q.ZZ=function(){var R=this.cG.get();R.ox===this&&(R.ox=null);this.timer.stop()}; g.Q.iz=function(){this.timer.stop();jS.prototype.GS.call(this)}; g.Q.sZ=function(){lA(this);jS.prototype.Up.call(this)}; g.Q.vu=function(){return lt(this.wA().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.Q.Qd=function(R,F){var h=this;this.LQ(R,function(){h.QY!=="rendering_stop_requested"&&(h.QY="rendering_stop_requested",h.layoutExitReason=F,mj(h,F),h.timer.stop())})}; g.Q.Na=function(){var R=Date.now(),F=R-this.uo;this.uo=R;this.d4+=F;this.d4>=this.vu()?this.h1():(this.iL(this.d4/1E3),ta(this,this.d4))}; g.Q.Li=function(){}; g.Q.h0=function(){}; g.A(DF,Kv);g.Q=DF.prototype;g.Q.gk=function(R){if(this.QY!=="not_rendering"){R=oy(this,R);var F=this.rA.get().getPresentingPlayerType()===2;this.QY==="rendering_start_requested"?F&&WQ(R)&&this.Bk():F?g.i5(R,2)?gf("Receive player ended event during MediaBreak",this.T_(),this.wA()):Xx(this,R):this.hQ()}}; g.Q.Bw=function(){CQg(this);ptL(this.rA.get());this.cG.get().ox=this;yh("pbp")||yh("pbs")||f4("pbp");yh("pbp","watch")||yh("pbs","watch")||f4("pbp",void 0,"watch");this.Bk()}; g.Q.V5=function(R){this.fV.get();var F=lt(R.clientMetadata,"metadata_type_ad_placement_config").kind,h=this.position===0;R=lt(R.clientMetadata,"metadata_type_linked_in_player_layout_type");R={adBreakType:eS(F),adType:iP2(R)};var a=void 0;h?F!=="AD_PLACEMENT_KIND_START"&&(a="video_to_ad"):a="ad_to_ad";Hf("ad_mbs",void 0,a);g.L4(R,a);lA(this)}; g.Q.hQ=function(){this.Gk()}; g.Q.h1=function(){F5f(this);this.Gk()}; g.A(VY,Kv);g.Q=VY.prototype;g.Q.gk=function(R){this.QY!=="not_rendering"&&(R=oy(this,R),Xx(this,R))}; g.Q.Bw=function(){gf("Not used in SSAP")}; g.Q.V5=function(){lA(this)}; g.Q.hQ=function(){gf("Not used in SSAP")}; g.Q.h1=function(){F5f(this);this.LY.nF(this.T_(),this.wA(),"normal")}; g.A(Uc,VY);Uc.prototype.Qd=function(R,F){var h=this;this.LQ(R,function(){JH(h.K,F)&&(h.QY="rendering_stop_requested",h.layoutExitReason=F,mj(h,F),h.timer.stop())})}; Uc.prototype.startRendering=function(R){Ik(ZF(this));bA(this,R)&&(SS(this),this.cG.get().ox=this)};g.A(W1,jS);g.Q=W1.prototype;g.Q.hQ=function(){this.Gk()}; g.Q.gk=function(R){if(this.QY!=="not_rendering"){R=oy(this,R);var F=this.rA.get().getPresentingPlayerType()===2;this.QY==="rendering_start_requested"?F&&WQ(R)&&this.Bk():!F||g.i5(R,2)?this.Gk():Xx(this,R)}}; g.Q.kf=function(){lt(this.wA().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=lt(this.wA().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.Q.ZZ=function(){lt(this.wA().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.iT){var R=this.context.yz,F=this.iT,h=this.wA().layoutId;if(iW(R.pI.get(),!0)){var a={};R.z$("mccru",(a.cid=F,a.p_ac=h,a))}this.pV.get().removeCueRange(this.iT)}this.iT=void 0;var J;(J=this.iG)==null||J.dispose();this.rh&&this.rh.dispose()}; g.Q.Bw=function(R){var F=Cv(this.pI.get()),h=c1(this.pI.get());if(F&&h&&!this.r$()){h=lt(R.clientMetadata,"metadata_type_preload_player_vars");var a=this.pI.get();a=g.RI(a.U.W().experiments,"html5_preload_wait_time_secs");h&&this.rh&&this.rh.start(a*1E3)}JFi(this,R);CQg(this);F?(h=this.i$.get(),R=lt(R.clientMetadata,"metadata_type_player_vars"),h.U.loadVideoByPlayerVars(R,!1,2)):b07(this.i$.get(),lt(R.clientMetadata,"metadata_type_player_vars"));var J;(J=this.iG)==null||J.start();F||this.i$.get().U.playVideo(2)}; g.Q.V5=function(){var R;(R=this.iG)==null||R.stop();this.a8();(this.adCpn=UFi(this))||gf("Media layout confirmed started, but ad CPN not set.");this.yd.get().qs("onAdStart",this.adCpn);this.R_=Date.now()}; g.Q.vu=function(){var R;return(R=Oc(this.qQ.get(),2))==null?void 0:R.s_}; g.Q.hd=function(){this.Zn.FJ("clickthrough")}; g.Q.Qd=function(R,F){var h=this;this.LQ(R,function(){if(h.QY!=="rendering_stop_requested"){h.QY="rendering_stop_requested";h.layoutExitReason=F;mj(h,F);var a;(a=h.iG)==null||a.stop();h.rh&&h.rh.stop();Mji(h)}})}; g.Q.onCueRangeEnter=function(R){if(R!==this.iT)gf("Received CueRangeEnter signal for unknown layout.",this.T_(),this.wA(),{cueRangeId:R});else{var F=this.context.yz,h=this.wA().layoutId;if(iW(F.pI.get(),!0)){var a={};F.z$("mccre",(a.cid=R,a.p_ac=h,a))}this.pV.get().removeCueRange(this.iT);this.iT=void 0;oI(this.context.pI.get(),"html5_ssap_flush_at_stop_rendering")&&this.r$()||(R=lt(this.wA().clientMetadata,"metadata_type_video_length_seconds"),this.iL(R,!0),this.bY("complete"))}}; g.Q.Li=function(R){R!=="abandoned"&&this.yd.get().qs("onAdComplete");this.yd.get().qs("onAdEnd",this.adCpn)}; g.Q.a8=function(){this.iT="adcompletioncuerange:"+this.wA().layoutId;this.pV.get().addCueRange(this.iT,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var R=this.context.yz,F=this.iT,h=this.wA().layoutId;if(iW(R.pI.get(),!0)){var a={};R.z$("mccr",(a.cid=F,a.p_ac=h,a))}}; g.Q.onCueRangeExit=function(){}; g.Q.h0=function(R){this.QY==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&R>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.rA.get().g5(!0),this.iL(R))}; g.Q.iL=function(R,F){jS.prototype.iL.call(this,R,F===void 0?!1:F);F=Date.now()-this.R_;var h=R*1E3,a={contentCpn:this.G5(),adCpn:UFi(this)};if(R-this.Rm>=5){var J=F=2||(this.IT.Qd(this.layout,F),R=oI(this.params.context.pI.get(),"html5_ssap_pass_transition_reason")&&F==="abandoned",this.Pm()&&!R&&(oI(this.params.context.pI.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(F)||gf("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:F})),this.Ei.get().finishSegmentByCpn(this.layout.layoutId, Oc(this.qQ.get(),1).clientPlaybackNonce,dh(F,this.params.context.pI))),this.rA.get().removeListener(this),this.bV()&&MQ(this.IT.l8())&&this.hF.mz(this.slot,this.layout,this.IT.l8().B))}; g.Q.kR=function(R,F,h){xF7({cpn:R,Bf:this.qQ.get(),F6:!0});this.wA().layoutId!==R||oI(this.params.context.pI.get(),"html5_ssap_pass_transition_reason")&&h===5||(this.IT.l8().currentState<2&&(R=P1(h,this.params.context.pI),R==="error"?this.hF.C_(this.slot,this.layout,new Kf("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:h},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):IU(this.Us, this.layout,R)),oI(this.params.context.pI.get(),"html5_ssap_exit_without_waiting_for_transition")||this.hF.mz(this.slot,this.layout,this.IT.l8().B))};g.A(Jo,g.d);g.Q=Jo.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.y8=function(){}; g.Q.Vs=function(){return this.yH[this.Q$]}; g.Q.fS=function(){return this.Q$}; g.Q.iz=function(R,F){var h=this.Vs();F.layoutId!==vT(h,R,F)?gf("pauseLayout for a PlayerBytes layout that is not currently active",R,F):h.iz()}; g.Q.sZ=function(R,F){var h=this.Vs();F.layoutId!==vT(h,R,F)?gf("resumeLayout for a PlayerBytes layout that is not currently active",R,F):h.sZ()}; g.Q.M_=function(R,F){var h=this.Vs();YxL(this,R,F);sKf(h,R,F)&&this.q9(h.T_(),h.wA(),"skipped")}; g.Q.Z8=function(R,F){var h=this.Vs();pM7(this);k2m(h,R,F)&&(R=QK7(this,h,R,F),R!==void 0&&(this.r$()?gf("Should not happen. Should delete"):AFi(this,h.T_(),h.wA(),R)))}; g.Q.o9=function(R,F){var h=Object.assign({},Mi(this),{layoutId:F.layoutId}),a=h.layoutId,J=h.F6;if(h.Ha){var M={};Gm(h.Bf,"wrse",(M.ec=a,M.is=J,M.ctp=ge(a),M))}sH(this.mZ,R,F)}; g.Q.xH=function(R,F){var h;(h=this.Vs())==null||h.xH(R,F)}; g.Q.mz=function(R,F,h){F.layoutId===this.wA().layoutId&&(this.Xq=!1,JB(this.u$(),this));var a;(a=this.Vs())==null||a.mz(R,F,h)}; g.Q.h0=function(R){var F;(F=this.Vs())==null||F.h0(R)}; g.Q.UD=function(R,F,h){this.fS()===-1&&(this.callback.xH(this.slot,this.layout),this.Q$++);var a=this.Vs();a?(a.kN(R,F,h),this.r$()&&this.callback.C_(this.slot,this.layout,F,h)):gf("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.fS()),layoutId:this.wA().layoutId})}; g.Q.onFullscreenToggled=function(R){var F;(F=this.Vs())==null||F.onFullscreenToggled(R)}; g.Q.v7=function(R){var F;(F=this.Vs())==null||F.v7(R)}; g.Q.Vz=function(R){var F;(F=this.Vs())==null||F.Vz(R)}; g.Q.onVolumeChange=function(){var R;(R=this.Vs())==null||R.onVolumeChange()}; g.Q.cC=function(R,F,h){pI(this.mZ,R,F,h)}; g.Q.dI=function(R){R.startRendering(R.wA())}; g.Q.init=function(){var R=lt(this.wA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=this);if(this.yH.length<1)throw new C("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.yH.length)});if(R=lt(this.wA().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))R.current=this;R=g.N(this.yH);for(var F=R.next();!F.done;F=R.next())F=F.value,F.init(),PiT(this.mZ,this.slot,F.wA()),zIa(this.mZ,this.slot,F.wA()); if(this.r$())for(this.qQ.get().addListener(this),s7L(rF_(this),this.qQ.get()),R=rF_(this),R=g.N(R),F=R.next();!F.done;F=R.next())this.Z$(F.value)}; g.Q.Z$=function(R){var F=lt(R.clientMetadata,"metadata_type_player_vars");F?(R.layoutType!=="LAYOUT_TYPE_MEDIA"&&gf("Non-video ad contains playerVars",this.slot,R),this.i$.get().addPlayerResponseForAssociation({playerVars:F})):(R=wM2(R),this.i$.get().addPlayerResponseForAssociation({G3:R}))}; g.Q.release=function(){var R=lt(this.wA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=null);if(R=lt(this.wA().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))R.current=null;R=g.N(this.yH);for(var F=R.next();!F.done;F=R.next())F=F.value,KTa(this.mZ,this.slot,F.wA()),F.release();this.r$()&&(this.qQ.get().removeListener(this),pxa())}; g.Q.LQ=function(R){return R.layoutId!==this.wA().layoutId?(this.callback.C_(this.T_(),R,new Kf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.wA().layoutId+("and LayoutType: "+this.wA().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.Q.Mu=function(){this.rA.get().addListener(this);aI(this.u$(),this)}; g.Q.gk=function(R){if(R.state.isError()){var F,h;this.UD((F=R.state.wL)==null?void 0:F.errorCode,new Kf("There was a player error during this media layout.",{playerErrorCode:(h=R.state.wL)==null?void 0:h.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(F=this.Vs())&&F.gk(R)}; g.Q.r$=function(){var R=lt(this.T_().clientMetadata,"metadata_type_eligible_for_ssap");return R===void 0?(gf("Expected SSAP eligibility in PlayerBytes slots",this.T_(),this.wA()),!1):this.pI.get().r$(R)}; g.Q.Je=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Y7=function(){}; g.Q.I3=function(){}; g.A(id,Jo);g.Q=id.prototype;g.Q.dF=function(R,F,h){this.q9(R,F,h)}; g.Q.a9=function(R,F){this.q9(R,F,"error")}; g.Q.q9=function(R,F,h){var a=this;$vT(this,R,F,h,function(){gv(a,a.fS()+1)})}; g.Q.startRendering=function(R){this.LQ(R)&&(this.Mu(),fgi(this.fV.get()),ov_(this.pI.get())||ptL(this.rA.get()),this.fS()===-1&&gv(this,this.fS()+1))}; g.Q.Qd=function(R,F){var h=this;this.Xq=!0;this.fS()===this.yH.length?this.callback.mz(this.slot,this.layout,F):(R=this.Vs(),R.Qd(R.wA(),F),this.Cy=function(){h.callback.mz(h.slot,h.layout,F)}); this.rA.get().U.y7();b07(this.i$.get(),{});R=Mj(this.rA.get(),1);R.isPaused()&&!g.V(R,2)&&this.rA.get().playVideo();this.rA.get().removeListener(this);this.Xq&&xvB(this)}; g.Q.kR=function(){}; g.Q.qJ=function(){}; g.Q.nF=function(){}; g.A(wv,Jo);g.Q=wv.prototype;g.Q.dF=function(R,F,h){R=Object.assign({},Mi(this),{layoutId:F.layoutId,layoutExitReason:h});F=R.layoutId;h=R.layoutExitReason;var a={};Gm(R.Bf,"prse",(a.xc=F,a.ler=h,a.ctp=ge(F),a))}; g.Q.a9=function(){gf("onSubLayoutError in SSAP")}; g.Q.q9=function(){gf("exitSubLayoutAndPlayNext in SSAP")}; g.Q.Vs=function(){return this.cJ}; g.Q.fS=function(){var R=this;return this.yH.findIndex(function(F){var h;return F.wA().layoutId===((h=R.cJ)==null?void 0:h.wA().layoutId)})}; g.Q.dI=function(R){vM(this.cJ===void 0,"replacing another adapter");this.cJ=R;R.startRendering(R.wA())}; g.Q.cC=function(R,F,h){pI(this.mZ,R,F,h);var a;vM(F.layoutId===((a=this.cJ)==null?void 0:a.wA().layoutId),"currentAdapter does not match exiting layout",{slot:R?"slot: "+R.slotType:"",subLayout:Mv(F)})&&(this.cJ=void 0)}; g.Q.release=function(){Jo.prototype.release.call(this);vM(this.cJ===void 0,"currentAdapter is still active during release");this.cJ=void 0}; g.Q.Pm=function(){return this.rA.get().getPresentingPlayerType()===2}; g.Q.Qd=function(R,F){function h(){E5(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(F)||gf("Composite stopRendering: Unexpected layout exit reason",this.slot,R,{layoutExitReason:F}))} function a(){this.cJ&&BT(this,this.cJ,F);if(this.Pm()&&(!E5(this)||F!=="abandoned")){h.call(this);var M;var v=((M=this.qQ.get().U.getVideoData())==null?void 0:M.clientPlaybackNonce)||"";M=Oc(this.qQ.get(),1).clientPlaybackNonce;this.Ei.get().finishSegmentByCpn(v,M,dh(F,this.pI))}Nff(this,F)} function J(){if(this.cJ){var M=this.cJ;M.l8().currentState<2&&M.Qd(M.wA(),F);M=E5(this)&&F==="abandoned";this.Pm()&&!M&&(h.call(this),this.Ei.get().finishSegmentByCpn(this.cJ.wA().layoutId,Oc(this.qQ.get(),1).clientPlaybackNonce,dh(F,this.pI)))}} vM(R.layoutId===this.wA().layoutId,"StopRendering for wrong layout")&&JH(this.oy.D,F)&&(this.bV()?a.call(this):J.call(this))}; g.Q.mz=function(R,F,h){Jo.prototype.mz.call(this,R,F,h);F.layoutId===this.wA().layoutId&&this.rA.get().removeListener(this)}; g.Q.G5=function(){return Oc(this.qQ.get(),1).clientPlaybackNonce}; g.Q.kR=function(R,F,h){xF7(Object.assign({},Mi(this),{cpn:R}));if(!E5(this)||h!==5)if(this.bV()){if(this.cJ&&this.cJ.wA().layoutId!==F){var a=this.cJ.wA().layoutId;a!==R&&gf("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:a,exitingCpn:R,enteringCpn:F});R=P1(h,this.pI);BT(this,this.cJ,R)}else this.cJ&&gf("onClipExited: active layout is entering again");F===this.G5()&&L52(this,h)}else{if(this.cJ&&this.cJ.wA().layoutId===R)HPI(this,this.cJ,h);else{var J;gf("Exiting cpn does not match active cpn", this.slot,(a=this.cJ)==null?void 0:a.wA(),{exitingCpn:R,transitionReason:h,activeCpn:(J=this.cJ)==null?void 0:J.wA().layoutId})}F===this.G5()&&(this.cJ!==void 0&&(gf("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Mv(this.cJ.wA())}),HPI(this,this.cJ,h)),L52(this,h),Nff(this,this.oy.D.B))}}; g.Q.bV=function(){return oI(this.pI.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.Q.startRendering=function(R){this.LQ(R)&&(R=this.oy,vM(R.B===1,"tickStartRendering: state is not initial"),R.B=2,this.Mu())}; g.Q.qJ=function(R){A0n(Object.assign({},Mi(this),{cpn:R}));var F=this.yH.find(function(h){return h.wA().layoutId===R}); F?(this.oy.B!==2&&(gP7(this.MH,this.slot.slotId),vM(this.oy.B===2,"Expect started"),this.callback.xH(this.slot,this.layout)),this.dI(F),sH(this.mZ,this.slot,F.wA())):Tfg(this,R)}; g.Q.M_=function(R,F){YxL(this,R,F);var h=this.Vs();h?sKf(h,R,F)&&yFi(this,"skipped"):qxi(this,"onSkipRequested")}; g.Q.Z8=function(R,F){var h;a:{if(h=this.Vs()){if(pM7(this),k2m(h,R,F)&&(R=QK7(this,h,R,F),R!==void 0)){h={sW:h,A4u:this.yH[R]};break a}}else qxi(this,"SkipWithAdPodSkip");h=void 0}if(R=h)h=R.sW,F=R.A4u,R=h.wA().layoutId,this.bV()?BT(this,h,"skipped"):h.Qd(h.wA(),"skipped"),h=F.wA().layoutId,this.Ei.get().finishSegmentByCpn(R,h,dh("skipped",this.pI))}; g.Q.o9=function(){gf("Not used in html5_ssap_fix_layout_exit")}; g.Q.gk=function(R){var F;(F=this.Vs())==null||F.gk(R)}; g.Q.UD=function(){gf("Not used in html5_ssap_fix_layout_exit")}; g.Q.nF=function(R,F,h){var a;if(((a=this.Vs())==null?void 0:a.wA().layoutId)!==F.layoutId)return void gf("requestToExitSubLayout: wrong layout");yFi(this,h)};g.A(rv,g.d);g.Q=rv.prototype;g.Q.T_=function(){return this.IT.T_()}; g.Q.wA=function(){return this.IT.wA()}; g.Q.init=function(){var R=lt(this.wA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=this);this.kf()}; g.Q.kf=function(){this.IT.init()}; g.Q.release=function(){var R=lt(this.wA().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=null);this.ZZ()}; g.Q.ZZ=function(){this.IT.release()}; g.Q.iz=function(){this.IT.iz()}; g.Q.sZ=function(){this.IT.sZ()}; g.Q.M_=function(R,F){gf("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.T_(),this.wA(),{requestingSlot:R,requestingLayout:F})}; g.Q.startRendering=function(R){R.layoutId!==this.wA().layoutId?this.callback.C_(this.T_(),R,new Kf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.wA().layoutId+("and LayoutType: "+this.wA().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.rA.get().addListener(this),aI(this.u$(),this),fgi(this.fV.get()),ov_(this.pI.get())||ptL(this.rA.get()),this.IT.startRendering(R))}; g.Q.Qd=function(R,F){this.Xq=!0;this.IT.Qd(R,F);this.rA.get().U.y7();b07(this.i$.get(),{});R=Mj(this.rA.get(),1);R.isPaused()&&!g.V(R,2)&&this.rA.get().playVideo();this.rA.get().removeListener(this);this.Xq&&this.IT.hQ()}; g.Q.xH=function(R,F){this.IT.xH(R,F)}; g.Q.mz=function(R,F,h){F.layoutId===this.wA().layoutId&&(this.Xq=!1,JB(this.u$(),this));this.IT.mz(R,F,h);F.layoutId===this.wA().layoutId&&Gb(this.fV.get())}; g.Q.h0=function(R){this.IT.h0(R)}; g.Q.gk=function(R){if(R.state.isError()){var F,h;this.UD((F=R.state.wL)==null?void 0:F.errorCode,new Kf("There was a player error during this media layout.",{playerErrorCode:(h=R.state.wL)==null?void 0:h.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.IT.gk(R)}; g.Q.UD=function(R,F,h){this.IT.kN(R,F,h)}; g.Q.onFullscreenToggled=function(R){this.IT.onFullscreenToggled(R)}; g.Q.v7=function(R){this.IT.v7(R)}; g.Q.Vz=function(R){this.IT.Vz(R)}; g.Q.onVolumeChange=function(){this.IT.onVolumeChange()}; g.Q.Je=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.Y7=function(){}; g.Q.I3=function(){};g.Q=Y1.prototype;g.Q.T_=function(){return this.slot}; g.Q.wA=function(){return this.layout}; g.Q.init=function(){this.Iz.get().addListener(this);this.rA.get().addListener(this);var R=lt(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var F=lt(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.L){var h=this.Iz.get().qX.slice(-1)[0];h!==void 0&&(R=h.startSecs*1E3,F=(h.startSecs+h.Rz)*1E3)}this.Wu(R,F);var a;h=(a=this.qQ.get().al)==null?void 0:a.clientPlaybackNonce;a=this.layout.kH.adClientDataEntry;s5(this.cG.get(),{daiStateTrigger:{filledAdsDurationMs:F-R,contentCpn:h, adClientData:a}});var J=this.Iz.get();J=ZPn(J.K,R,F);J!==null&&(s5(this.cG.get(),{daiStateTrigger:{filledAdsDurationMs:J-R,contentCpn:h,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:a}}),this.Ei.get().Fs(J,F))}; g.Q.release=function(){this.ZZ();this.Iz.get().removeListener(this);this.rA.get().removeListener(this)}; g.Q.startRendering=function(){this.Bw();this.callback.xH(this.slot,this.layout)}; g.Q.Qd=function(R,F){this.bW(F);this.driftRecoveryMs!==null&&(pq(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bP2(this)-lt(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.rA.get().U.AI()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.mz(this.slot,this.layout,F)}; g.Q.ao=function(){return!1}; g.Q.YB=function(R){var F=lt(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),h=lt(this.layout.clientMetadata,"metadata_type_layout_exit_ms");R*=1E3;if(F<=R&&R0&&k0(this.B(),F)}; g.Q.NF=function(R){this.N.delete(R.slotId);for(var F=[],h=g.N(this.Rt.values()),a=h.next();!a.done;a=h.next()){a=a.value;var J=a.trigger;J instanceof Er&&J.triggeringSlotId===R.slotId&&F.push(a)}F.length>0&&k0(this.B(),F)}; g.Q.c7=function(R){for(var F=[],h=g.N(this.Rt.values()),a=h.next();!a.done;a=h.next()){a=a.value;var J=a.trigger;J instanceof hO&&J.slotType===R.slotType&&J.B!==R.slotId&&F.push(a)}F.length>0&&k0(this.B(),F)}; g.Q.Ni=function(R){this.K.add(R.slotId);for(var F=[],h=g.N(this.Rt.values()),a=h.next();!a.done;a=h.next())a=a.value,a.trigger instanceof gk&&R.slotId===a.trigger.triggeringSlotId&&F.push(a);F.length>0&&k0(this.B(),F)}; g.Q.Mi=function(R){this.K.delete(R.slotId);this.L.add(R.slotId);for(var F=[],h=g.N(this.Rt.values()),a=h.next();!a.done;a=h.next())if(a=a.value,a.trigger instanceof GN)R.slotId===a.trigger.triggeringSlotId&&F.push(a);else if(a.trigger instanceof Kq){var J=a.trigger;R.slotId===J.slotId&&this.D.has(J.triggeringLayoutId)&&F.push(a)}F.length>0&&k0(this.B(),F)}; g.Q.Rj=function(R){for(var F=[],h=g.N(this.Rt.values()),a=h.next();!a.done;a=h.next())a=a.value,a.trigger instanceof Iq&&R.slotId===a.trigger.triggeringSlotId&&F.push(a);F.length>0&&k0(this.B(),F)}; g.Q.OT=function(R){for(var F=[],h=g.N(this.Rt.values()),a=h.next();!a.done;a=h.next())a=a.value,a.trigger instanceof i2&&R.slotId===a.trigger.triggeringSlotId&&F.push(a);F.length>0&&k0(this.B(),F)}; g.Q.QV=function(R,F){this.S.add(F.layoutId)}; g.Q.LK=function(R,F){this.S.delete(F.layoutId)}; g.Q.xH=function(R,F){this.D.add(F.layoutId);for(var h=[],a=g.N(this.Rt.values()),J=a.next();!J.done;J=a.next())if(J=J.value,J.trigger instanceof to)F.layoutId===J.trigger.triggeringLayoutId&&h.push(J);else if(J.trigger instanceof Fn){var M=J.trigger;R.slotType===M.slotType&&F.layoutType===M.layoutType&&F.layoutId!==M.B&&h.push(J)}else J.trigger instanceof Kq&&(M=J.trigger,F.layoutId===M.triggeringLayoutId&&this.L.has(M.slotId)&&h.push(J));h.length>0&&k0(this.B(),h)}; g.Q.mz=function(R,F,h){this.D.delete(F.layoutId);R=[];for(var a=g.N(this.Rt.values()),J=a.next();!J.done;J=a.next())if(J=J.value,J.trigger instanceof D5&&F.layoutId===J.trigger.triggeringLayoutId&&R.push(J),J.trigger instanceof ld){var M=J.trigger;F.layoutId===M.triggeringLayoutId&&M.B.includes(h)&&R.push(J)}R.length>0&&k0(this.B(),R)}; g.Q.Pf=function(){}; g.Q.w4=function(){this.L.clear()}; g.Q.Mn=function(){};g.A(FP,g.d);FP.prototype.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(F instanceof PT))throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in CloseRequestedTriggerAdapter");this.Rt.set(F.triggerId,new YS(R,F,h,a))}; FP.prototype.H1=function(R){this.Rt.delete(R.triggerId)};g.A(as,g.d);as.prototype.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(F instanceof dv||F instanceof JO))throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Rt.set(F.triggerId,new YS(R,F,h,a))}; as.prototype.H1=function(R){this.Rt.delete(R.triggerId)}; as.prototype.w4=function(R){for(var F=[],h=F.push,a=h.apply,J=[],M=g.N(this.Rt.values()),v=M.next();!v.done;v=M.next())v=v.value,v.trigger instanceof dv&&v.trigger.Qb===R&&J.push(v);a.call(h,F,g.S(J));h=F.push;a=h.apply;J=[];M=g.N(this.Rt.values());for(v=M.next();!v.done;v=M.next())v=v.value,v.trigger instanceof JO&&v.trigger.B!==R&&J.push(v);a.call(h,F,g.S(J));F.length&&k0(this.B(),F)}; as.prototype.Mn=function(R){for(var F=[],h=F.push,a=h.apply,J=[],M=g.N(this.Rt.values()),v=M.next();!v.done;v=M.next()){v=v.value;var I=v.trigger;I instanceof JO&&I.B===R&&J.push(v)}a.call(h,F,g.S(J));F.length&&k0(this.B(),F)};g.A(Ju,g.d);g.Q=Ju.prototype;g.Q.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");var J="adtriggercuerange:"+F.triggerId;if(F instanceof WT)CUL(this,R,F,h,a,J,F.B.start,F.B.end,F.Qb,F.visible);else if(F instanceof zb)CUL(this,R,F,h,a,J,0x7ffffffffffff,0x8000000000000,F.Qb,F.visible);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in CueRangeTriggerAdapter");}; g.Q.H1=function(R){var F=this.Rt.get(R.triggerId);F&&this.pV.get().removeCueRange(F.cueRangeId);this.Rt.delete(R.triggerId)}; g.Q.onCueRangeEnter=function(R){var F=cbi(this,R);if(F&&(F=this.Rt.get(F)))if(g.V(Mj(this.rA.get()),32))this.B.add(F.cueRangeId);else{var h=F==null?void 0:F.aF.trigger;if(h instanceof WT||h instanceof zb){if(iW(this.context.pI.get())){var a=F.aF.slot,J=F.aF.layout,M={};this.context.yz.z$("cre",(M.ca=F.aF.category,M.tt=h.triggerType,M.st=a.slotType,M.lt=J==null?void 0:J.layoutType,M.cid=R,M))}k0(this.D(),[F.aF])}}}; g.Q.onCueRangeExit=function(R){(R=cbi(this,R))&&(R=this.Rt.get(R))&&this.B.delete(R.cueRangeId)}; g.Q.gk=function(R){if(IK(R,16)<0){R=g.N(this.B);for(var F=R.next();!F.done;F=R.next())this.onCueRangeEnter(F.value,!0);this.B.clear()}}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.xH=function(){}; g.Q.mz=function(){}; g.Q.Pf=function(){}; g.Q.h0=function(){}; g.Q.onFullscreenToggled=function(){}; g.Q.v7=function(){}; g.Q.Je=function(){}; g.Q.Vz=function(){}; g.Q.onVolumeChange=function(){}; g.Q.Y7=function(){}; g.Q.I3=function(){};g.A(Mb,g.d);g.Q=Mb.prototype; g.Q.b1=function(R,F,h,a){if(this.D.has(F.triggerId)||this.K.has(F.triggerId))throw new C("Tried to re-register the trigger.");R=new YS(R,F,h,a);if(R.trigger instanceof cT)this.D.set(R.trigger.triggerId,R);else if(R.trigger instanceof VJ)this.K.set(R.trigger.triggerId,R);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+R.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.D.has(R.trigger.triggerId)&&R.slot.slotId===this.B&&k0(this.L(),[R])}; g.Q.H1=function(R){this.D.delete(R.triggerId);this.K.delete(R.triggerId)}; g.Q.y8=function(R){R=R.slotId;if(this.B!==R){var F=[];this.B!=null&&F.push.apply(F,g.S(WcL(this.K,this.B)));R!=null&&F.push.apply(F,g.S(WcL(this.D,R)));this.B=R;F.length&&k0(this.L(),F)}}; g.Q.kR=function(){}; g.Q.qJ=function(){};g.A(vl,g.d);g.Q=vl.prototype;g.Q.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(F instanceof aq))throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Rt.set(F.triggerId,new YS(R,F,h,a))}; g.Q.H1=function(R){this.Rt.delete(R.triggerId)}; g.Q.xH=function(){}; g.Q.mz=function(){}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){};g.A(gE,g.d);g.Q=gE.prototype;g.Q.Pf=function(R,F){for(var h=[],a=g.N(this.Rt.values()),J=a.next();!J.done;J=a.next()){J=J.value;var M=J.trigger;M.opportunityType===R&&(M.associatedSlotId&&M.associatedSlotId!==F||h.push(J))}h.length&&k0(this.B(),h)}; g.Q.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(F instanceof gfi))throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in OpportunityEventTriggerAdapter");this.Rt.set(F.triggerId,new YS(R,F,h,a))}; g.Q.H1=function(R){this.Rt.delete(R.triggerId)}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.xH=function(){}; g.Q.mz=function(){};g.A(Ga,g.d);g.Q=Ga.prototype;g.Q.b1=function(R,F,h,a){R=new YS(R,F,h,a);if(F instanceof U5||F instanceof Rq||F instanceof Cq||F instanceof M0||F instanceof gJT){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");this.Rt.set(F.triggerId,R)}else throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in PrefetchTriggerAdapter");}; g.Q.H1=function(R){this.Rt.delete(R.triggerId)}; g.Q.wk=function(R){var F=R.slotFulfillmentTriggers.find(function(h){return h instanceof U5}); F&&(Is(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",F.breakDurationMs,new Set([R.slotId]),!0),QJ(this.cG.get(),"ads_css","sid."+R.slotId+";bd."+F.breakDurationMs))}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.xH=function(){}; g.Q.mz=function(){}; g.Q.Pf=function(){}; g.Q.ao=function(R){var F=this;if(!this.B)return gf("Unexpected cue break before fetch instructions are available"),!1;this.D&&this.D.stop();this.N&&g.VI(this.N);var h=avi(this,R);if(!h){var a=FxT(this),J=this.Y!==void 0&&Date.now()<=this.Y+1E4;QJ(this.cG.get(),"ads_ncfs","cid."+R.identifier+";cd."+R.Rz.toFixed(3)+";ccs."+J+";cfa."+this.L+";bdc."+a.length+";"+a.slice(0,6).map(function(M){return";bd."+M}).join("")); return!1}(new g.DY(function(){var M=h.trigger,v=h.slot;Is(F,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",M.breakDurationMs,new Set,!0);Is(F,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",M.breakDurationMs,new Set,!1);for(var I=0,w=g.N(F.Rt.values()),E=w.next();!E.done;E=w.next()){E=E.value;var B=E.trigger;E.slot.slotId===v.slotId&&(F.Rt.delete(B.triggerId),I++)}QJ(F.cG.get(),"ads_csf","sid."+v.slotId+";bd."+M.breakDurationMs+";dt."+I)},10)).start(); return!0}; g.Q.YB=function(){}; g.Q.w4=function(R){var F=this;this.L=!1;this.Y=Date.now();if(this.B&&this.B.contentCpn!==R)gf("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.B.contentCpn}),ia(this);else{this.K=new g.DY(function(){if(F.L)delete F.K;else{var a=F.rA.get().getGetAdBreakContext(),J;if(Number(a==null?void 0:(J=a.livePlaybackPosition)==null?void 0:J.utcTimeMillis)>0)delete F.K,hoI(F);else{var M;(M=F.K)==null||M.start()}}},200); var h;(h=this.K)==null||h.start()}}; g.Q.Mn=function(R){this.B&&this.B.contentCpn!==R&&gf("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.B.contentCpn},!0);ia(this)}; g.Q.t_=function(R){var F=this;if(this.B)gf("Unexpected multiple fetch instructions for the current content");else{this.B=R;R=M37(R);this.D=new g.DY(function(){hoI(F)},R?R:6E5); this.D.start();this.N=new g.DY(function(){F.B&&(F.D&&(F.D.stop(),F.D.start()),Ro2(F,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},JAm(this.B)); R=this.rA.get().getCurrentTimeSec(1,!1);for(var h=g.N(this.Iz.get().qX),a=h.next();!a.done;a=h.next())a=a.value,QJ(this.cG.get(),"nocache","ct."+Date.now()+";cmt."+R+";d."+a.Rz.toFixed(3)+";tw."+(a.startSecs-R)+";cid."+a.identifier+";")}}; g.Q.Ez=function(){g.d.prototype.Ez.call(this);ia(this)};g.A(wE,g.d);g.Q=wE.prototype;g.Q.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(F instanceof rk))throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Rt.set(F.triggerId,new YS(R,F,h,a));R=this.B.has(F.triggeringLayoutId)?this.B.get(F.triggeringLayoutId):new Set;R.add(F);this.B.set(F.triggeringLayoutId,R)}; g.Q.H1=function(R){this.Rt.delete(R.triggerId);if(!(R instanceof rk))throw new C("Incorrect TriggerType: Tried to unregister trigger of type "+R.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var F=this.D.get(R.triggerId);F&&(F.dispose(),this.D.delete(R.triggerId));if(F=this.B.get(R.triggeringLayoutId))F.delete(R),F.size===0&&this.B.delete(R.triggeringLayoutId)}; g.Q.wk=function(){}; g.Q.NF=function(){}; g.Q.c7=function(){}; g.Q.Ni=function(){}; g.Q.Mi=function(){}; g.Q.Rj=function(){}; g.Q.OT=function(){}; g.Q.QV=function(){}; g.Q.LK=function(){}; g.Q.Pf=function(){}; g.Q.xH=function(R,F){var h=this;if(this.B.has(F.layoutId)){R=this.B.get(F.layoutId);R=g.N(R);var a=R.next();for(F={};!a.done;F={rr:void 0},a=R.next())F.rr=a.value,a=new g.DY(function(J){return function(){var M=h.Rt.get(J.rr.triggerId);k0(h.K(),[M])}}(F),F.rr.durationMs),a.start(),this.D.set(F.rr.triggerId,a)}}; g.Q.mz=function(){};g.A(Eu,g.d);Eu.prototype.b1=function(R,F,h,a){if(this.Rt.has(F.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(F instanceof nq))throw new C("Incorrect TriggerType: Tried to register trigger of type "+F.triggerType+" in VideoTransitionTriggerAdapter.");this.Rt.set(F.triggerId,new YS(R,F,h,a))}; Eu.prototype.H1=function(R){this.Rt.delete(R.triggerId)};pO.prototype.xs=function(R){return R.kind==="AD_PLACEMENT_KIND_START"};g.A($h,g.d);g.Q=$h.prototype;g.Q.logEvent=function(R){this.HR(R)}; g.Q.ou=function(R,F,h){this.HR(R,void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,void 0,h)}; g.Q.VH=function(R,F,h,a){this.HR(R,void 0,void 0,void 0,F,h?h:void 0,void 0,void 0,F.adSlotLoggingData,h?h.adLayoutLoggingData:void 0,void 0,a)}; g.Q.L8=function(R,F,h,a){oI(this.pI.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"trigger:",h,"slot:",F,"layout:",a);c3(this.B.get())&&this.HR(R,void 0,void 0,void 0,F,a?a:void 0,void 0,h,F.adSlotLoggingData,a?a.adLayoutLoggingData:void 0)}; g.Q.Qu=function(R,F,h,a,J){this.HR(R,F,h,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)}; g.Q.z5=function(R,F,h,a){this.HR("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,h,a,void 0,void 0,h.adSlotLoggingData,a?a.adLayoutLoggingData:void 0,{errorType:R,errorMessage:F})}; g.Q.HR=function(R,F,h,a,J,M,v,I,w,E,B,r){var Y=this;r=r===void 0?0:r;oI(this.pI.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"slot:",J,"layout:",M,"ping:",v,"Opportunity:",{opportunityType:F,associatedSlotId:h,Lrn:a,Ujz:I,adSlotLoggingData:w,adLayoutLoggingData:E});try{var p=function(){if(!Y.pI.get().U.W().X("html5_disable_client_tmp_logs")&&R!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){R||gf("Empty PACF event type",J,M);var k=c3(Y.B.get()),H={eventType:R,eventOrder:++Y.eventCount},T={}; J&&(T.slotData=Cf(k,J));M&&(T.layoutData=XOI(k,M));v&&(T.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:v.B.serializedAdPingMetadata,pingIndex:v.index});I&&(T.triggerData=Ub(I.trigger,I.category));F&&(T.opportunityData=eI_(k,F,h,a));k={organicPlaybackContext:{contentCpn:Oc(Y.qQ.get(),1).clientPlaybackNonce}};k.organicPlaybackContext.isLivePlayback=Oc(Y.qQ.get(),1).Mt;var Z;k.organicPlaybackContext.isMdxPlayback=(Z=Oc(Y.qQ.get(),1))==null?void 0:Z.isMdxPlayback; var b;if((b=Oc(Y.qQ.get(),1))==null?0:b.daiEnabled)k.organicPlaybackContext.isDaiContent=!0;var O;if(Z=(O=Oc(Y.qQ.get(),2))==null?void 0:O.clientPlaybackNonce)k.adVideoPlaybackContext={adVideoCpn:Z};k&&(T.externalContext=k);H.adClientData=T;w&&(H.serializedSlotAdServingData=w.serializedSlotAdServingDataEntry);E&&(H.serializedAdServingData=E.serializedAdServingDataEntry);B&&(H.errorInfo=B);g.MU("adsClientStateChange",{adsClientEvent:H})}}; r&&r>0?g.D1(g.UK(),function(){return p()},r):p()}catch(k){oI(this.pI.get(),"html5_log_pacf_logging_errors")&&g.D1(g.UK(),function(){gf(k instanceof Error?k:String(k),J,M,{pacf_message:"exception during pacf logging"})})}};var KOh=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.A(Au,$h);g.Q=Au.prototype; g.Q.ou=function(R,F,h){$h.prototype.ou.call(this,R,F,h);iW(this.pI.get())&&(h={},this.context.yz.z$("pacf",(h.et=R,h.st=F.slotType,h.si=F.slotId,h)))}; g.Q.VH=function(R,F,h,a){var J=KOh.has(R);$h.prototype.VH.call(this,R,F,h,a);iW(this.pI.get(),J)&&(a={},this.context.yz.z$("pacf",(a.et=R,a.st=F.slotType,a.si=F.slotId,a.lt=h==null?void 0:h.layoutType,a.li=h==null?void 0:h.layoutId,a.p_ac=h==null?void 0:h.layoutId,a)))}; g.Q.Qu=function(R,F,h,a,J){$h.prototype.Qu.call(this,R,F,h,a,J);iW(this.pI.get())&&(h={},this.context.yz.z$("pacf",(h.et=R,h.ot=F,h.ss=a==null?void 0:a.length,h)))}; g.Q.L8=function(R,F,h,a){$h.prototype.L8.call(this,R,F,h,a);if(iW(this.pI.get())){var J={};this.context.yz.z$("pacf",(J.et=R,J.tt=h.trigger.triggerType,J.tc=h.category,J.st=F.slotType,J.si=F.slotId,J.lt=a==null?void 0:a.layoutType,J.li=a==null?void 0:a.layoutId,J.p_ac=a==null?void 0:a.layoutId,J))}}; g.Q.z5=function(R,F,h,a){$h.prototype.z5.call(this,R,F,h,a);if(iW(this.pI.get(),!0)){var J={};this.context.yz.z$("perror",(J.ert=R,J.erm=F,J.st=h.slotType,J.si=h.slotId,J.lt=a==null?void 0:a.layoutType,J.li=a==null?void 0:a.layoutId,J.p_ac=a==null?void 0:a.layoutId,J))}}; g.Q.HR=function(R,F,h,a,J,M,v,I,w,E,B){var r=this.pI.get();g.Y0(r.U.W())?(r=this.pI.get(),r=g.RI(r.U.W().experiments,"H5_async_logging_delay_ms")):r=void 0;$h.prototype.HR.call(this,R,F,h,a,J,M,v,I,w,E,B,r)};xh.prototype.clear=function(){this.B.clear()};Nb.prototype.state=function(){return this.B==="fulfilled"?{state:"fulfilled",value:this.result}:this.B==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Nb.prototype.L=function(R){LO(R)||Hl(R)?jI(Ta(R),this.L.bind(this),this.reject.bind(this)):(this.B="fulfilled",this.result=R,fO(this))}; Nb.prototype.reject=function(R){this.B="rejected";this.error=R;fO(this)}; var Hl=v_(function(R){return g79(R)?R instanceof Nb:!1});Object.freeze({RFb:function(R){var F=os(R);return jI(mp(F,function(h){return F[h].B==="rejected"}),function(h){return Number.isNaN(h)?F.map(function(a){return a.state().value}):F[h]})}, Osb:function(R){var F=os(R);return jI(mp(F),function(){return F.map(function(h){return h.state()})})}, NjI:function(R){var F=os(R);return jI(mp(F,function(h){return F[h].B==="fulfilled"}),function(h){return Number.isNaN(h)?y_(new AggregateError(F.map(function(a){return a.state().reason}))):F[h].state().value})}, MNQ:function(R){var F=os(R);return jI(mp(F,function(){return!0}),function(h){return F[h]})}});var XP=window.rXR||"es-419";dE.prototype.Jv=function(R){this.client=R}; dE.prototype.B=function(){this.clear();this.csn=g.Q7()}; dE.prototype.clear=function(){this.K.clear();this.D.clear();this.L.clear();this.csn=null};za.prototype.Jv=function(R){g.Vz(Pl().Jv).bind(Pl())(R)}; za.prototype.clear=function(){g.Vz(Pl().clear).bind(Pl())()};g.Q=KO.prototype;g.Q.Jv=function(R){this.client=R}; g.Q.Lw=function(R,F){var h=this;F=F===void 0?{}:F;g.Vz(function(){var a,J,M,v=((a=g.t(R==null?void 0:R.commandMetadata,g.Tc))==null?void 0:a.rootVe)||((J=g.t(R==null?void 0:R.commandMetadata,ihu))==null?void 0:(M=J.screenVisualElement)==null?void 0:M.uiType);if(v){a=g.t(R==null?void 0:R.commandMetadata,f$7);if(a==null?0:a.parentTrackingParams){var I=g.sD(a.parentTrackingParams);if(a.parentCsn)var w=a.parentCsn}else F.clickedVisualElement?I=F.clickedVisualElement:R.clickTrackingParams&&(I=g.sD(R.clickTrackingParams)); a:{a=g.t(R,g.EG);J=g.t(R,xkg);if(a){if(J=Hf7(a,"VIDEO")){a={token:J,videoId:a.videoId};break a}}else if(J&&(a=Hf7(J,"PLAYLIST"))){a={token:a,playlistId:J.playlistId};break a}a=void 0}F=Object.assign({},{cttAuthInfo:a,parentCsn:w},F);if(g.pR("expectation_logging")){var E;F.loggingExpectations=((E=g.t(R==null?void 0:R.commandMetadata,ihu))==null?void 0:E.loggingExpectations)||void 0}la(h,v,I,F)}else g.qN(new g.Pv("Error: Trying to create a new screen without a rootVeType",R))})()}; g.Q.clickCommand=function(R,F,h){R=R.clickTrackingParams;h=h===void 0?0:h;R?(h=g.Q7(h===void 0?0:h))?(lw(this.client,h,g.sD(R),F),F=!0):F=!1:F=!1;return F}; g.Q.stateChanged=function(R,F,h){this.visualElementStateChanged(g.sD(R),F,h===void 0?0:h)}; g.Q.visualElementStateChanged=function(R,F,h){h=h===void 0?0:h;h===0&&this.D.has(h)?this.Z.push([R,F]):jOf(this,R,F,h)};CO.prototype.fetch=function(R,F,h){var a=this,J=SbT(R,F,h);return new Promise(function(M,v){function I(){if(h==null?0:h.cR)try{var E=a.handleResponse(R,J.status,J.response,h);M(E)}catch(B){v(B)}else M(a.handleResponse(R,J.status,J.response,h))} J.onerror=I;J.onload=I;var w;J.send((w=F.body)!=null?w:null)})}; CO.prototype.handleResponse=function(R,F,h,a){h=h.replace(")]}'","");try{var J=JSON.parse(h)}catch(M){g.qN(new g.Pv("JSON parsing failed after XHR fetch",R,F,h));if((a==null?0:a.cR)&&h)throw new g.uN(1,"JSON parsing failed after XHR fetch");J={}}F!==200&&(g.qN(new g.Pv("XHR API fetch failed",R,F,h)),J=Object.assign({},J,{errorMetadata:{status:F}}));return J};cl.getInstance=function(){var R=g.hG("ytglobal.storage_");R||(R=new cl,g.Fk("ytglobal.storage_",R));return R}; cl.prototype.estimate=function(){var R,F,h;return g.u(function(a){R=navigator;return((F=R.storage)==null?0:F.estimate)?a.return(R.storage.estimate()):((h=R.webkitTemporaryStorage)==null?0:h.queryUsageAndQuota)?a.return(Of_()):a.return()})}; g.Fk("ytglobal.storageClass_",cl);af.prototype.X4=function(R){this.handleError(R)}; af.prototype.logEvent=function(R,F){switch(R){case "IDB_DATA_CORRUPTED":g.pR("idb_data_corrupted_killswitch")||this.B("idbDataCorrupted",F);break;case "IDB_UNEXPECTEDLY_CLOSED":this.B("idbUnexpectedlyClosed",F);break;case "IS_SUPPORTED_COMPLETED":g.pR("idb_is_supported_completed_killswitch")||this.B("idbIsSupportedCompleted",F);break;case "QUOTA_EXCEEDED":oPn(this,F);break;case "TRANSACTION_ENDED":this.K&&Math.random()<=.1&&this.B("idbTransactionEnded",F);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":R= Object.assign({},F,{hasWindowUnloaded:this.D}),this.B("idbTransactionAborted",R)}};var c2={},AOO=g.UU("yt-player-local-media",{zF:(c2.index={L7:2},c2.media={L7:2},c2.captions={L7:5},c2),shared:!1,upgrade:function(R,F){F(2)&&(g.Lm(R,"index"),g.Lm(R,"media"));F(5)&&g.Lm(R,"captions");F(6)&&(TC(R,"metadata"),TC(R,"playerdata"))}, version:5});var tut={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},W2;a:{var Rw=g.ol();Rw=Rw.toLowerCase();if(g.Z7(Rw,"android")){var l2L=Rw.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(l2L){var DS4=parseFloat(l2L[1]);if(DS4<100){W2=DS4;break a}}var Vue=Rw.match("("+Object.keys(tut).join("|")+")");W2=Vue?tut[Vue[0]]:0}else W2=void 0}var lo=W2,tc=lo>=0;var YO7=window;var X32=Su(function(){var R,F;return(F=(R=window).matchMedia)==null?void 0:F.call(R,"(prefers-reduced-motion: reduce)").matches});var R9;g.Wl=new si;R9=0;var Y9=KxB()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.zC?!0:!1;var a9={rJ:function(R,F){R[G[40]](0,F)}, zr:function(R){R[G[7]]()}, Qo:function(R,F){var h=R[0];R[0]=R[F%R[G[4]]];R[F%R[G[4]]]=h}};var kb_={O2I:"adunit",eVl:"detailpage",iBI:"editpage",mI$:"embedded",Z$b:"leanback",QHo:"previewpage",z8o:"profilepage",LR:"unplugged",Vyl:"playlistoverview",y5I:"sponsorshipsoffer",Pau:"shortspage",j3A:"handlesclaiming",E0o:"immersivelivepage",jpb:"creatormusic",p1Q:"immersivelivepreviewpage",rGo:"admintoolyurt",leI:"shortsaudiopivot",brb:"consumption"};var V72=2592E3;var FK,USk,Zr;FK={};g.kn=(FK.STOP_EVENT_PROPAGATION="html5-stop-propagation",FK.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",FK.IV_DRAWER_OPEN="ytp-iv-drawer-open",FK.MAIN_VIDEO="html5-main-video",FK.VIDEO_CONTAINER="html5-video-container",FK.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",FK.HOUSE_BRAND="house-brand",FK);USk={};Zr=(USk.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",USk.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",USk);var JEI={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var GM_={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},IXT={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"},LYL={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var unB={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Ad.prototype.getLanguageInfo=function(){return this.jw}; g.Ad.prototype.getXtags=function(){if(!this.xtags){var R=this.id.split(";");R.length>1&&(this.xtags=R[1])}return this.xtags}; g.Ad.prototype.toString=function(){return this.jw.name}; g.Ad.prototype.getLanguageInfo=g.Ad.prototype.getLanguageInfo;xn.prototype.equals=function(R){return this.D===R.D&&this.B===R.B&&this.K===R.K&&this.reason===R.reason&&(!HG||this.CI===R.CI)}; xn.prototype.isLocked=function(){return this.K&&!!this.D&&this.D===this.B}; xn.prototype.compose=function(R){if(R.K&&Lo(R))return JL;if(R.K||Lo(this))return R;if(this.K||Lo(R))return this;var F=this.D&&R.D?Math.max(this.D,R.D):this.D||R.D,h=this.B&&R.B?Math.min(this.B,R.B):this.B||R.B;F=Math.min(F,h);var a=0;HG&&(a=this.CI!==0&&R.CI!==0?Math.min(this.CI,R.CI):this.CI===0?R.CI:this.CI);return HG&&F===this.D&&h===this.B&&a===this.CI||!HG&&F===this.D&&h===this.B?this:HG?new xn(F,h,!1,h===this.B&&a===this.CI?this.reason:R.reason,a):new xn(F,h,!1,h===this.B?this.reason:R.reason)}; xn.prototype.L=function(R){return!R.video||HG&&this.CI!==0&&this.CI=0}; g.Q.Nj=function(){var R=this.segments[this.segments.length-1];return R?R.endTime:NaN}; g.Q.Vd=function(){return this.segments[0].startTime}; g.Q.OC=function(){return this.segments.length}; g.Q.Gd=function(){return 0}; g.Q.L2=function(R){return(R=this.pz(R))?R.vG:-1}; g.Q.Bm=function(R){return(R=this.q3(R))?R.sourceURL:""}; g.Q.getStartTime=function(R){return(R=this.q3(R))?R.startTime:0}; g.Q.hA=function(R){return this.getStartTime(R)+this.getDuration(R)}; g.Q.DL=Jf(1);g.Q.isLoaded=function(){return this.segments.length>0}; g.Q.q3=function(R){if(this.B&&this.B.vG===R)return this.B;R=g.Ph(this.segments,new VZ(R,0,0,0,""),function(F,h){return F.vG-h.vG}); return this.B=R>=0?this.segments[R]:null}; g.Q.pz=function(R){if(this.B&&this.B.startTime<=R&&R=0?this.segments[R]:this.segments[Math.max(0,-R-2)]}; g.Q.append=function(R){if(R.length)if(R=g.Zt(R),this.segments.length){var F=this.segments.length?g.pg(this.segments).endTime:0,h=R[0].vG-this.Ff();h>1&&NL_(this.segments);for(h=h>0?0:-h+1;hR.vG&&this.index.Pa()<=R.vG+1}; g.Q.update=function(R,F,h){this.index.append(R);eJi(this.index,h);R=this.index;R.D=F;R.K="update"}; g.Q.sG=function(){return this.BS()?!0:K$.prototype.sG.call(this)}; g.Q.F8=function(R,F){var h=this.index.Bm(R),a=this.index.getStartTime(R),J=this.index.getDuration(R),M;F?J=M=0:M=this.info.CI>0?this.info.CI*J:1E3;return new a_([new Uf(3,this,void 0,"liveCreateRequestInfoForSegment",R,a,J,0,M,!F)],h)}; g.Q.w_=function(){return this.BS()?0:this.initRange.length}; g.Q.lS=function(){return!1};il.prototype.update=function(R){var F=void 0;this.D&&(F=this.D);var h=new il,a=Array.from(R.getElementsByTagName("S"));if(a.length){var J=+Gl(R,"timescale")||1,M=(+a[0].getAttribute("t")||0)/J,v=+Gl(R,"startNumber")||0;h.L=M;var I=F?F.startSecs+F.Rz:0,w=Date.parse(b7a(Gl(R,"yt:segmentIngestTime")))/1E3;h.N=R.parentElement.tagName==="SegmentTemplate";h.N&&(h.Y=Gl(R,"media"));R=F?v-F.vG:1;h.S=R>0?0:-R+1;R=g.N(a);for(a=R.next();!a.done;a=R.next()){a=a.value;for(var E=+a.getAttribute("d")/J,B=(+a.getAttribute("yt:sid")|| 0)/J,r=+a.getAttribute("r")||0,Y=0;Y<=r;Y++)if(F&&v<=F.vG)v++;else{var p=new jki(v,I,E,w+B,M);h.B.push(p);var k=a;var H=J,T=p.startSecs;p=k.getAttribute("yt:cuepointTimeOffset");var Z=k.getAttribute("yt:cuepointDuration");if(p&&Z){p=Number(p);T=-p/H+T;H=Number(Z)/H;Z=k.getAttribute("yt:cuepointContext")||null;var b=k.getAttribute("yt:cuepointIdentifier")||"";k=k.getAttribute("yt:cuepointEvent")||"";k=new MG(T,H,Z,b,cRe[k]||"unknown",p)}else k=null;k&&h.K.push(k);v++;I+=E;M+=E;w+=E+B}}h.B.length&& (h.D=g.pg(h.B))}this.S=h.S;this.D=h.D||this.D;g.m4(this.B,h.B);g.m4(this.K,h.K);this.N=h.N;this.Y=h.Y;this.L===-1&&(this.L=h.getStreamTimeOffset())}; il.prototype.getStreamTimeOffset=function(){return this.L===-1?0:this.L};g.A(E3,g.Uq);g.Q=E3.prototype;g.Q.KA=function(){return this.OG}; g.Q.yr=function(R,F){R=BI(this,R);return R>=0&&(F||!this.segments[R].pending)}; g.Q.Pa=function(){return this.f7?this.segments.length?this.pz(this.Vd()).vG:-1:g.Uq.prototype.Pa.call(this)}; g.Q.Vd=function(){if(this.Xd)return 0;if(!this.f7)return g.Uq.prototype.Vd.call(this);if(!this.segments.length)return 0;var R=Math.max(g.pg(this.segments).endTime-this.rp,0);return this.G2>0&&this.pz(R).vG0)return this.sU/1E3;if(!this.segments.length)return g.Uq.prototype.Nj.call(this);var R=this.Ff();if(!this.f7||R<=this.segments[this.segments.length-1].vG)R=this.segments[this.segments.length-1];else{var F=this.segments[this.segments.length-1];R=new VZ(R,Math.max(0,F.startTime-(F.vG-R)*this.OG),this.OG,0,"sq/"+R,void 0,void 0,!0)}return this.Xd?Math.min(this.rp,R.endTime):R.endTime}; g.Q.OC=function(){return this.f7?this.segments.length?this.Ff()-this.Pa()+1:0:g.Uq.prototype.OC.call(this)}; g.Q.Ff=function(){var R=Math.min(this.Lr,Math.max(g.Uq.prototype.Ff.call(this),this.nY)),F=this.rp*1E3;F=this.sU>0&&this.sU0&&this.nY>0&&!F&&(F=this.pz(this.rp))&&(R=Math.min(F.vG-1,R));return R}; g.Q.Gp=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.Q.zU=function(R){var F=BI(this,R.vG);if(F>=0)this.segments[F]=R;else if(this.segments.splice(-(F+1),0,R),this.UH&&R.vG%(300/this.OG)===0){var h=this.segments[0].vG,a=Math.floor(this.UH/this.OG);R=R.vG-a;F=-(F+1)-a;F>0&&R>h&&(this.segments=this.segments.slice(F))}}; g.Q.Zh=function(){return this.nY}; g.Q.wx=function(R){return wH?!this.D&&R>=0&&this.Ff()<=R:g.Uq.prototype.wx.call(this,R)}; g.Q.pz=function(R){if(!this.f7)return g.Uq.prototype.pz.call(this,R);if(!this.segments.length)return null;var F=this.segments[this.segments.length-1];if(R=F.endTime)F=F.vG+Math.floor((R-F.endTime)/this.OG+1);else{F=ze(this.segments,function(a){return R=a.endTime?1:0}); if(F>=0)return this.segments[F];var h=-(F+1);F=this.segments[h-1];h=this.segments[h];F=Math.floor((R-F.endTime)/((h.startTime-F.endTime)/(h.vG-F.vG-1))+1)+F.vG}return this.q3(F)}; g.Q.q3=function(R){if(!this.f7)return g.Uq.prototype.q3.call(this,R);if(!this.segments.length)return null;var F=BI(this,R);if(F>=0)return this.segments[F];var h=-(F+1);F=this.OG;if(h===0)var a=Math.max(0,this.segments[0].startTime-(this.segments[0].vG-R)*F);else h===this.segments.length?(a=this.segments[this.segments.length-1],a=a.endTime+(R-a.vG-1)*F):(a=this.segments[h-1],F=this.segments[h],F=(F.startTime-a.endTime)/(F.vG-a.vG-1),a=a.endTime+(R-a.vG-1)*F);return new VZ(R,a,F,0,"sq/"+R,void 0,void 0, !0)}; var wH=!1;g.A(rH,gH);g.Q=rH.prototype;g.Q.eW=function(){return!0}; g.Q.sG=function(){return!0}; g.Q.yE=function(R){return this.Tp()&&R.K&&!R.N||!R.B.index.wx(R.vG)}; g.Q.rX=function(){}; g.Q.lx=function(R,F){return typeof R!=="number"||isFinite(R)?gH.prototype.lx.call(this,R,F===void 0?!1:F):new a_([new Uf(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.VD,void 0,this.VD*this.info.CI)],"")}; g.Q.F8=function(R,F){var h=h===void 0?!1:h;if(this.index.yr(R))return gH.prototype.F8.call(this,R,F);var a=this.index.getStartTime(R),J=Math.round(this.VD*this.info.CI),M=this.VD;F&&(M=J=0);return new a_([new Uf(h?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",R,a,M,void 0,J,!F)],R>=0?"sq/"+R:"")};g.A(Yb,K$);g.Q=Yb.prototype;g.Q.RQ=function(){return!1}; g.Q.Tp=function(){return!1}; g.Q.eW=function(){return!1}; g.Q.rX=function(){return new a_([new Uf(1,this,void 0,"otfInit")],this.N)}; g.Q.qW=function(){return null}; g.Q.sA=function(R){this.yE(R);return uIi(this,R_(R),!1)}; g.Q.lx=function(R,F){F=F===void 0?!1:F;R=this.index.L2(R);F&&(R=Math.min(this.index.Ff(),R+1));return uIi(this,R,!0)}; g.Q.oJ=function(R){R.info.type===1&&(this.B||(this.B=GJ(R.D)),R.B&&R.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&dQi(this,R.B))}; g.Q.yE=function(R){return R.K===0?!0:this.index.Ff()>R.vG&&this.index.Pa()<=R.vG+1}; g.Q.w_=function(){return 0}; g.Q.lS=function(){return!1};g.s3.prototype.info=function(){}; g.s3.prototype.debug=function(){}; g.s3.prototype.B=function(R){pL.apply(null,[5,this.tag,R].concat(g.S(g.u7.apply(1,arguments))))}; var KaL=new Map,DQO=new Map,tfa=new function(){var R=this;this.B=new Map;this.rf={M6l:function(){return R.B}}};g.Q=g.LL.prototype;g.Q.yr=function(R){return R<=this.Ff()}; g.Q.Gd=function(R){return this.offsets[R]}; g.Q.getStartTime=function(R){return this.startTicks[R]/this.B}; g.Q.hA=function(R){return this.getStartTime(R)+this.getDuration(R)}; g.Q.DL=Jf(0);g.Q.oz=function(){return NaN}; g.Q.getDuration=function(R){R=this.eJ(R);return R>=0?R/this.B:-1}; g.Q.eJ=function(R){return R+1=0}; g.Q.Nj=function(){return this.D?this.startTicks[this.count]/this.B:NaN}; g.Q.Vd=function(){return 0}; g.Q.OC=function(){return this.count}; g.Q.Bm=function(){return""}; g.Q.L2=function(R){R=g.Ph(this.startTicks.subarray(0,this.count),R*this.B);return R>=0?R:Math.max(0,-R-2)}; g.Q.isLoaded=function(){return this.Ff()>=0}; g.Q.dG=function(R,F){if(R>=this.Ff())return 0;var h=0;for(F=this.getStartTime(R)+F;Rthis.getStartTime(R);R++)h=Math.max(h,aFI(this,R)/this.getDuration(R));return h}; g.Q.resize=function(R){R+=2;var F=this.offsets;this.offsets=new Float64Array(R+1);var h=this.startTicks;this.startTicks=new Float64Array(R+1);for(R=0;R0&&R&&(h=h.range.end+1,R=Math.min(R,this.info.contentLength-h),R>0&&a.push(new Uf(4,this,DQ(h,R),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F)));return new a_(a)}; g.Q.oJ=function(R){if(R.info.type===1){if(this.B)return;this.B=GJ(R.D)}else if(R.info.type===2){if(this.N||this.index.Ff()>=0)return;if(g.XI(this.info)){var F=this.index,h=g.QF(R);R=R.info.range.start;var a=g.Io(h,0,1936286840);h=cEL(a);F.B=h.timescale;var J=h.Th;F.offsets[0]=h.rU+R+a.size;F.startTicks[0]=J;F.D=!0;R=h.iU.length;for(a=0;a0&&R===M[0].uJ)for(R=0;R=F+h)break}J.length||(R=new g.Pv("b189619593",""+R,""+F,""+h),g.y7(R));return new a_(J)}; g.Q.Sx=function(R){for(var F=this.zD(R.info),h=R.info.range.start+R.info.D,a=[],J=0;J=this.index.Gd(h+1);)h++;return this.Ey(h,F,R.K).Vt}; g.Q.yE=function(R){R.k7();return this.sG()?!0:R.range.end+1this.info.contentLength&&(F=new tD(F.start,this.info.contentLength-1)),new a_([new Uf(4,R.B,F,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R.clipId)]);R.type===4&&(R=this.zD(R),R=R[R.length-1]);var h=0,a=R.range.start+R.D+R.K;R.type===3&&(R.k7(),h=R.vG,a===R.range.end+1&&(h+=1));return this.Ey(h,a,F)}; g.Q.sA=function(){return null}; g.Q.lx=function(R,F){F=F===void 0?!1:F;R=this.index.L2(R);F&&(R=Math.min(this.index.Ff(),R+1));return this.Ey(R,this.index.Gd(R),0,void 0)}; g.Q.RQ=function(){return!0}; g.Q.Tp=function(){return!0}; g.Q.eW=function(){return!1}; g.Q.w_=function(){return this.indexRange.length+this.initRange.length}; g.Q.lS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var aw={},QyB=(aw.COLOR_PRIMARIES_BT709="bt709",aw.COLOR_PRIMARIES_BT2020="bt2020",aw.COLOR_PRIMARIES_UNKNOWN=null,aw.COLOR_PRIMARIES_UNSPECIFIED=null,aw),Jv={},MSO=(Jv.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Jv.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Jv.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Jv.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Jv.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Jv.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Jv);g.q3.prototype.getName=function(){return this.name}; g.q3.prototype.getId=function(){return this.id}; g.q3.prototype.getIsDefault=function(){return this.isDefault}; g.q3.prototype.toString=function(){return this.name}; g.q3.prototype.getName=g.q3.prototype.getName;g.q3.prototype.getId=g.q3.prototype.getId;g.q3.prototype.getIsDefault=g.q3.prototype.getIsDefault;var IFm=/action_display_post/;var ivT,bl,Sa;g.A(O3,g.h0);g.Q=O3.prototype;g.Q.isLoading=function(){return this.state===1}; g.Q.qC=function(){return this.state===3}; g.Q.vOo=function(R){var F=R.getElementsByTagName("Representation");if(R.getElementsByTagName("SegmentList").length>0||R.getElementsByTagName("SegmentTemplate").length>0){this.Mt=this.D=!0;this.timeline||(this.timeline=new O7T);eDI(this.timeline,R);this.publish("refresh");for(R=0;R=0?B=l8(Y):r=r+"?range="+Y}w.call(I,new VZ(E.vG,E.startSecs,E.Rz,E.B,r,B,E.D))}a=J}h.update(a,this.isLive,this.PG)}nKa(this.timeline);return!0}this.duration=Z7B(Gl(R,"mediaPresentationDuration")); a:{for(R=0;R0))return this.Ka()-R}}R=this.B;for(var F in R){var h=R[F].index;if(h.isLoaded()&&!Pz(R[F].info.mimeType))return h.Vd()}return 0}; g.Q.getStreamTimeOffset=function(){return this.Y}; g.Q.oz=function(R){for(var F in this.B){var h=this.B[F].index;if(h.isLoaded()){var a=h.L2(R),J=h.oz(a);if(J)return J+R-h.getStartTime(a)}}return NaN}; var VF=null,WOU,U3=!((WOU=navigator.mediaCapabilities)==null||!WOU.decodingInfo),LjB={commentary:1,alternate:2,dub:3,main:4};var BS=new Set,CL=new Map;R6.prototype.clone=function(R){return new R6(this.flavor,R,this.D,this.experiments)}; R6.prototype.nO=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; R6.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 R69={},io=(R69.playready=["com.youtube.playready","com.microsoft.playready"],R69.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],R69),Mt={},Rlf=(Mt.widevine="DRM_SYSTEM_WIDEVINE",Mt.fairplay="DRM_SYSTEM_FAIRPLAY",Mt.playready="DRM_SYSTEM_PLAYREADY",Mt),vU={},FuU=(vU.widevine=1,vU.fairplay=2,vU.playready=3,vU);var By;g.A(wp,g.d); wp.prototype.initialize=function(R,F){for(var h=this,a=g.N(Object.keys(R)),J=a.next();!J.done;J=a.next()){J=g.N(R[J.value]);for(var M=J.next();!M.done;M=J.next())if(M=M.value,M.qH)for(var v=g.N(Object.keys(M.qH)),I=v.next();!I.done;I=v.next()){var w=I.value;I=w;w=io[w];!w&&this.X("html5_enable_vp9_fairplay")&&I==="fairplay"&&(w=["com.youtube.fairplay.sbdl"]);if(w){w=g.N(w);for(var E=w.next();!E.done;E=w.next())E=E.value,this.K[E]=this.K[E]||new R6(I,E,M.qH[I],this.LI.experiments),this.B[I]=this.B[I]|| {},this.B[I][M.mimeType]=!0}}}P6()&&(this.K["com.youtube.fairplay"]=new R6("fairplay","com.youtube.fairplay","",this.LI.experiments),this.X("html5_enable_vp9_fairplay")||(this.B.fairplay=this.B.fairplay||{},this.B.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.B.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.D=eZ_(F,this.useCobaltWidevine,this.X("html5_enable_safari_fairplay")&&!0,this.X("html5_enable_vp9_fairplay")).filter(function(B){return!!h.K[B]})}; wp.prototype.X=function(R){return this.LI.experiments.jl(R)};var h69={"":"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"};Kja.prototype.X=function(R){return this.experiments.jl(R)};var $i7={RED:"red",LZ$:"white"};tSL.prototype.jl=function(R){R=this.flags[R];JSON.stringify(R);return R==="true"};var VSi=Promise.resolve(),Wji=window.queueMicrotask?window.queueMicrotask.bind(window):U8i;pG.prototype.canPlayType=function(R,F){R=R.canPlayType?R.canPlayType(F):!1;PR?R=R||ah7[F]:lo===2.2?R=R||JtL[F]:uB()&&(R=R||MYU[F]);return!!R}; pG.prototype.isTypeSupported=function(R){return this.C?window.cast.receiver.platform.canDisplayType(R):Qp(R)}; var JtL={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},MYU={"application/x-mpegURL":"maybe"},ah7={"application/x-mpegURL":"maybe"};g.A($9,g.h0);$9.prototype.add=function(R,F){if(!this.items[R]&&(F.xk||F.Eb||F.Ki)){var h=this.items,a=F;Object.isFrozen&&!Object.isFrozen(F)&&(a=Object.create(F),Object.freeze(a));h[R]=a;this.publish("vast_info_card_add",R)}}; $9.prototype.remove=function(R){var F=this.get(R);delete this.items[R];return F}; $9.prototype.get=function(R){return this.items[R]||null}; $9.prototype.isEmpty=function(){return g.BV(this.items)};var x9;NM.prototype.add=function(R){if(this.pos+20>this.data.length){var F=new Uint8Array(this.data.length*2);F.set(this.data);this.data=F}for(;R>31;)this.data[this.pos++]=x9[(R&31)+32],R>>=5;this.data[this.pos++]=x9[R|0]}; NM.prototype.zq=function(){return g.BD(this.data.subarray(0,this.pos))}; NM.prototype.reset=function(){this.pos=0};LG.prototype.TT=function(R,F){var h=Math.pow(this.alpha,R);this.B=F*(1-h)+h*this.B;this.D+=R}; LG.prototype.Wf=function(){return this.B/(1-Math.pow(this.alpha,this.D))};To.prototype.TT=function(R,F){for(var h=0;h<10;h++){var a=this.B[h],J=a+(h===0?R:0),M=1*Math.pow(2,h);if(J<=M)break;a=Math.min(1,(J-M*.5)/a);for(J=0;J<16;J++)M=this.values[h*16+J]*a,this.values[(h+1)*16+J]+=M,this.B[h+1]+=M,this.values[h*16+J]-=M,this.B[h]-=M}a=h=0;J=8192;F>8192&&(h=Math.ceil(Math.log(F/8192)/Math.log(2)),a=8192*Math.pow(2,h-1),J=a*2);h+2>16?this.values[15]+=R:(F=(F-a)/(J-a),this.values[h]+=R*(1-F),this.values[h+1]+=R*F);this.B[0]+=R}; To.prototype.Wf=function(){var R=R===void 0?this.D:R;var F=F===void 0?.02:F;var h=h===void 0?.98:h;for(var a=this.K,J=0;J<16;J++)a[J]=this.values[J];J=this.B[0];for(var M=1;M<11;M++){var v=this.B[M];if(v===0)break;for(var I=Math.min(1,(R-J)/v),w=0;w<16;w++)a[w]+=this.values[M*16+w]*I;J+=v*I;if(I<1)break}for(M=R=v=0;M<16;M++){I=v+a[M]/J;R+=Math.max(0,Math.min(I,h)-Math.max(v,F))*(M>0?8192*Math.pow(2,M-1):0);if(I>h)break;v=I}return R/(h-F)};y9.prototype.TT=function(R,F){R=Math.min(this.B,Math.max(1,Math.round(R*this.resolution)));R+this.D>=this.B&&(this.K=!0);for(;R--;)this.values[this.D]=F,this.D=(this.D+1)%this.B;this.At=!0}; y9.prototype.percentile=function(R){var F=this;if(!this.K&&this.D===0)return 0;this.At&&(g.l9(this.N,function(h,a){return F.values[h]-F.values[a]}),this.At=!1); return this.values[this.N[Math.round(R*((this.K?this.B:this.D)-1))]]||0}; y9.prototype.Wf=function(){return this.S?(this.percentile(this.L-this.S)+this.percentile(this.L)+this.percentile(this.L+this.S))/3:this.percentile(this.L)};g.A(qM,g.d);qM.prototype.IR=function(){var R;(R=this.NQ)==null||R.start();if(o6(this)&&this.policy.Z){var F;(F=this.qa)==null||F.Gc()}};wT7.prototype.X=function(R){return this.experiments.jl(R)};g.A(Bv_,g.d);var QUi="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(" "),LDi={xFu:"caoe",eto:"capsv",f5u:"cbrand",GTI:"cbr",A0t:"cbrver",qJo:"cchip",YJ$:"ccappver",w_b:"ccrv",XVn:"cfrmver",Ktu:"c",GLI:"cver",fYo:"ctheme",Ltz:"cplayer",LLo:"cmodel",nD:"cnetwork",Y0l:"cos",OS_VERSION:"cosver",yIA:"cplatform",fe$:"crqyear"};g.A(aX,g.d);g.Q=aX.prototype;g.Q.X=function(R){return this.experiments.jl(R)}; g.Q.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.Q.getVideoUrl=function(R,F,h,a,J,M,v){F={list:F};h&&(J?F.time_continue=h:F.t=h);h=v?"music.youtube.com":g.M5(this);J=h==="www.youtube.com";!M&&a&&J?M="https://youtu.be/"+R:g.Uk(this)?(M="https://"+h+"/fire",F.v=R):(M&&J?(M=this.protocol+"://"+h+"/shorts/"+R,a&&(F.feature="share")):(M=this.protocol+"://"+h+"/watch",F.v=R),PR&&(R=dWO())&&(F.ebc=R));return g.sA(M,F)}; g.Q.getVideoEmbedCode=function(R,F,h,a){F="https://"+g.M5(this)+"/embed/"+F;a&&(F=g.sA(F,{list:a}));a=h.width;h=h.height;F=jW(F);R=jW(R!=null?R:"YouTube video player");return'')}; g.Q.supportsGaplessAudio=function(){return g.kK&&!PR&&Xf()>=74||g.Go&&g.nh(68)?!0:!1}; g.Q.supportsGaplessShorts=function(){return!this.X("html5_enable_short_gapless")||this.PG||g.YV?!1:!0}; g.Q.getPlayerType=function(){return this.B.cplayer}; g.Q.Po=function(){return this.g$}; var f57=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Hqi=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],yo_=[19];var gn={},bqB=(gn["140"]={numChannels:2},gn["141"]={numChannels:2},gn["251"]={audioSampleRate:48E3,numChannels:2},gn["774"]={audioSampleRate:48E3,numChannels:2},gn["380"]={numChannels:6},gn["328"]={numChannels:6},gn["773"]={},gn),GZ={},jUB=(GZ["1"]='video/mp4; codecs="av01.0.08M.08"',GZ["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',GZ["1e"]='video/mp4; codecs="av01.0.08M.08"',GZ["9"]='video/webm; codecs="vp9"',GZ["("]='video/webm; codecs="vp9"',GZ["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', GZ.h='video/mp4; codecs="avc1.64001e"',GZ.H='video/mp4; codecs="avc1.64001e"',GZ.o='audio/webm; codecs="opus"',GZ.a='audio/mp4; codecs="mp4a.40.2"',GZ.ah='audio/mp4; codecs="mp4a.40.2"',GZ.mac3='audio/mp4; codecs="ac-3"; channels=6',GZ.meac3='audio/mp4; codecs="ec-3"; channels=6',GZ.i='audio/mp4; codecs="iamf.001.001.Opus"',GZ),Iw={},Zq2=(Iw["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Iw["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Iw["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, Iw["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Iw["701"]={width:3840,height:2160,bitrate:2E7,fps:60},Iw["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Iw["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Iw["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Iw["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Iw["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, Iw["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},Iw["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Iw["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Iw["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Iw["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Iw["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Iw["308"]={width:2560, height:1440,bitrate:1E7,fps:60},Iw["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Iw["302"]={width:1280,height:720,bitrate:25E5,fps:60},Iw["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Iw["298"]={width:1280,height:720,bitrate:35E5,fps:60},Iw["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Iw["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Iw["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Iw["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Iw["398"]={width:1280,height:720,bitrate:1E6, fps:60},Iw["397"]={width:854,height:480,bitrate:4E5,fps:30},Iw["396"]={width:640,height:360,bitrate:25E4,fps:30},Iw["787"]={width:1080,height:608,bitrate:2E5,fps:30},Iw["788"]={width:1080,height:608,bitrate:4E5,fps:30},Iw["572"]={width:7680,height:4320,bitrate:3E7,fps:60},Iw["555"]={width:3840,height:2160,bitrate:15E6,fps:60},Iw["554"]={width:2560,height:1440,bitrate:75E5,fps:60},Iw["553"]={width:1920,height:1080,bitrate:2E6,fps:60},Iw["552"]={width:1280,height:720,bitrate:1E6,fps:60},Iw["551"]={width:854, height:480,bitrate:4E5,fps:30},Iw["550"]={width:640,height:360,bitrate:25E4,fps:30},Iw["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Iw["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Iw["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Iw["247"]={width:1280,height:720,bitrate:15E5,fps:30},Iw["244"]={width:854,height:480,bitrate:52E4,fps:30},Iw["243"]={width:640,height:360,bitrate:28E4,fps:30},Iw["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Iw["136"]={width:1280,height:720,bitrate:3E6, fps:30},Iw["135"]={width:854,height:480,bitrate:1E6,fps:30},Iw["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Iw["376"]={width:1280,height:720,bitrate:5706960,fps:60},Iw["384"]={width:1280,height:720,bitrate:3660979,fps:60},Iw["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Iw["224"]={width:1280,height:720,bitrate:453E4,fps:30},Iw["145"]={width:1280,height:720,bitrate:2682052,fps:30},Iw);g.Q=xx.prototype;g.Q.getInfo=function(){return this.B}; g.Q.Sp=function(){return null}; g.Q.nw=function(){var R=this.Sp();return R?(R=g.Ff(R.UP),Number(R.expire)):NaN}; g.Q.Oq=function(){}; g.Q.getHeight=function(){return this.B.video.height};o1n.prototype.build=function(){n1i(this);var R=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],F={};a:if(this.B)var h=this.B;else{h="";for(var a=g.N(this.K),J=a.next();!J.done;J=a.next())if(J=J.value,J.jw){if(J.jw.getIsDefault()){h=J.jw.getId();break a}h||(h=J.jw.getId())}}a=g.N(this.K);for(J=a.next();!J.done;J=a.next())if(J=J.value,this.S||!J.jw||J.jw.getId()===h)F[J.itag]||(F[J.itag]=[]),F[J.itag].push(J);h=g.N(this.D);for(a=h.next();!a.done;a=h.next())if(a=a.value,J=F[a.B]){J=g.N(J);for(var M=J.next();!M.done;M= J.next()){var v=R,I=v.push;M=M.value;var w="#EXT-X-MEDIA:TYPE=AUDIO,",E="YES",B="audio";if(M.jw){B=M.jw;var r=B.getId().split(".")[0];r&&(w+='LANGUAGE="'+r+'",');(this.B?this.B===B.getId():B.getIsDefault())||(E="NO");B=B.getName()}r="";a!==null&&(r=a.itag.toString());r=Hc(this,M.url,r);w=w+('NAME="'+B+'",DEFAULT='+(E+',AUTOSELECT=YES,GROUP-ID="'))+(eSn(M,a)+'",URI="'+(r+'"'));I.call(v,w)}}h=g.N(this.N);for(a=h.next();!a.done;a=h.next())a=a.value,J=vz9,a=(v=a.jw)?'#EXT-X-MEDIA:URI="'+Hc(this,a.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+J+'",LANGUAGE="'+v.getId()+'",NAME="'+v.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,a&&R.push(a);h=this.N.length>0?vz9:void 0;a=g.N(this.D);for(J=a.next();!J.done;J=a.next())J=J.value,I=F[J.B],v=void 0,((v=I)==null?void 0:v.length)>0&&(v=J,I=I[0],I="#EXT-X-STREAM-INF:BANDWIDTH="+(v.bitrate+I.bitrate)+',CODECS="'+(v.codecs+","+I.codecs+'",RESOLUTION=')+(v.width+"x"+v.height+',AUDIO="')+(eSn(I,v)+'",')+(h?'SUBTITLES="'+h+'",':"")+"CLOSED-CAPTIONS=NONE",v.fps>1&&(I+= ",FRAME-RATE="+v.fps),v.Yq&&(I+=",VIDEO-RANGE="+v.Yq),R.push(I),R.push(Hc(this,J.url,"")));return R.join("\n")}; var vz9="text";g.A(LZ,xx);LZ.prototype.nw=function(){return this.expiration}; LZ.prototype.Sp=function(){if(!this.UP||this.UP.RR()){var R=this.D.build();R="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(R);this.UP=new v1(R)}return this.UP};g.A(Ty,xx);Ty.prototype.Sp=function(){return new v1(this.D.hT())}; Ty.prototype.Oq=function(){this.D=lM(this.D)};g.A(yj,xx);yj.prototype.Sp=function(){return new v1(this.D)};var ik={},Uim=(ik.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",ik.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",ik.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",ik.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",ik);g.Q=g.q5.prototype;g.Q.getId=function(){return this.id}; g.Q.getName=function(){return this.name}; g.Q.isServable=function(){return this.B}; g.Q.hT=function(){return this.url}; g.Q.getXtags=function(){return this.xtags}; g.Q.toString=function(){return this.languageCode+": "+g.fZ(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.Q.equals=function(R){return R?this.toString()===R.toString():!1}; g.Q.Fd=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var hnB={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},aAm={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},JOm=/^(\d*)_((\d*)_?(\d*))$/;var vS_={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},gSm={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var wn={},gzU=(wn.ALWAYS=1,wn.BY_REQUEST=3,wn.UNKNOWN=void 0,wn),Ep={},Gf6=(Ep.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Ep.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Ep.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Ep.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Ep);var o3I; o3I=function(R){for(var F=Object.keys(R),h={},a=0;aa-F?-1:R}; g.Q.kP=function(){return this.D.Ff()}; g.Q.f8=function(){return this.D.Pa()}; g.Q.vD=function(R){this.D=R};g.A(aV,F$);aV.prototype.D=function(R,F){return F$.prototype.D.call(this,"$N|"+R,F)}; aV.prototype.N=function(R,F,h){return new hL(R,F,h,this.isLive)};var K1B=[],IV=new Set;g.A(g.Mz,g.h0);g.Q=g.Mz.prototype; g.Q.setData=function(R){R=R||{};var F=R.errordetail;F!=null&&(this.errorDetail=F);var h=R.errorcode;h!=null?this.errorCode=h:R.status==="fail"&&(this.errorCode="auth");var a=R.reason;a!=null&&(this.errorReason=a);var J=R.subreason;J!=null&&(this.OS=J);this.X("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=R.cpn||(this.LI.Po()?"r"+g.sY(15):g.sY(16)));this.nI=RA(this.LI.nI,R.livemonitor);XqL(this,R);var M=R.raw_player_response;if(M)this.HW=M;else{var v=R.player_response; v&&(M=JSON.parse(v))}if(this.X("html5_enable_ssap_entity_id")){var I=R.cached_load;I&&(this.hX=RA(this.hX,I));if(!this.clientPlaybackNonce){var w=R.cpn;w?(this.V4("ssei","shdc"),this.clientPlaybackNonce=w):this.clientPlaybackNonce=this.LI.Po()?"r"+g.sY(15):g.sY(16)}}M&&(this.playerResponse=M);if(this.playerResponse){var E=this.playerResponse.annotations;if(E)for(var B=g.N(E),r=B.next();!r.done;r=B.next()){var Y=r.value.playerAnnotationsUrlsRenderer;if(Y){Y.adsOnly&&(this.u7=!0);var p=Y.loadPolicy; p&&(this.annotationsLoadPolicy=gzU[p]);var k=Y.invideoUrl;k&&(this.NQ=PW(k));break}}var H=this.playerResponse.attestation;H&&IAi(this,H);var T=this.playerResponse.cotn;T&&(this.cotn=T);var Z=this.playerResponse.heartbeatParams;if(Z){this.IM=!0;var b=Z.heartbeatToken;b&&(this.drmSessionId=Z.drmSessionId||"",this.heartbeatToken=b,this.yX=Number(Z.intervalMilliseconds),this.VX=Number(Z.maxRetries),this.KZ=!!Z.softFailOnError,this.rD=!!Z.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=Z.heartbeatServerData; var O;this.u1=!((O=Z.heartbeatAttestationConfig)==null||!O.requiresAttestation)}var n=this.playerResponse.messages;n&&Bkm(this,n);var K=this.playerResponse.overlay;if(K){var Rg=K.playerControlsOverlayRenderer;if(Rg)if(YrL(this,Rg.controlBgHtml),Rg.mutedAutoplay){var U=g.t(Rg.mutedAutoplay,L39);if(U&&U.endScreen){var vi=g.t(U.endScreen,TU6);vi&&vi.text&&(this.zS=g.iQ(vi.text))}}else this.mutedAutoplay=!1}var GI=this.playerResponse.playabilityStatus;if(GI){var gL=GI.backgroundability;gL&&gL.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var Em,hf;if((Em=GI.offlineability)==null?0:(hf=Em.offlineabilityRenderer)==null?0:hf.offlineable)this.offlineable=!0;var qa=GI.contextParams;qa&&(this.contextParams=qa);var m2=GI.pictureInPicture;m2&&m2.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);GI.playableInEmbed&&(this.allowEmbed=!0);var Ru=GI.ypcClickwrap;if(Ru){var ng=Ru.playerLegacyDesktopYpcClickwrapRenderer,$7=Ru.ypcRentalActivationRenderer;if(ng)this.Qj=ng.durationMessage||"",this.DG=!0;else if($7){var eB= $7.durationMessage;this.Qj=eB?g.iQ(eB):"";this.DG=!0}}var ch=GI.errorScreen;if(ch){if(ch.playerLegacyDesktopYpcTrailerRenderer){var Y7=ch.playerLegacyDesktopYpcTrailerRenderer;this.yh=Y7.trailerVideoId||"";var Kg=ch.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var hX=Kg&&Kg.ypcTrailerRenderer}else if(ch.playerLegacyDesktopYpcOfferRenderer)Y7=ch.playerLegacyDesktopYpcOfferRenderer;else if(ch.ypcTrailerRenderer){hX=ch.ypcTrailerRenderer;var f=hX.fullVideoMessage;this.d5=f?g.iQ(f):"";var Xl,b9;this.yh= ((Xl=g.t(hX,y7G))==null?void 0:(b9=Xl.videoDetails)==null?void 0:b9.videoId)||""}Y7&&(this.D2=Y7.itemTitle||"",Y7.itemUrl&&(this.dc=Y7.itemUrl),Y7.itemBuyUrl&&(this.wO=Y7.itemBuyUrl),this.Jx=Y7.itemThumbnail||"",this.Gz=Y7.offerHeadline||"",this.pP=Y7.offerDescription||"",this.E0=Y7.offerId||"",this.KQ=Y7.offerButtonText||"",this.Ml=Y7.offerButtonFormattedText||null,this.Nz=Y7.overlayDurationMsec||NaN,this.d5=Y7.fullVideoMessage||"",this.FO=!0);if(hX){var ag=g.t(hX,y7G);if(ag)this.pS={raw_player_response:ag}; else{var fg=g.t(hX,XZ9);this.pS=fg?Wk(fg):null}this.FO=!0}}}var L=this.playerResponse.playbackTracking;if(L){var Fi=R,KM=OZ(L.googleRemarketingUrl);KM&&(this.googleRemarketingUrl=KM);var gU=OZ(L.youtubeRemarketingUrl);gU&&(this.youtubeRemarketingUrl=gU);var u9={},K_=OZ(L.ptrackingUrl);if(K_){var ci=mM(K_),CM=ci.oid;CM&&(this.HZ=CM);var eP=ci.pltype;eP&&(this.V3=eP);var y=ci.ptchn;y&&(this.Bz=y);var x=ci.ptk;x&&(this.l2=encodeURIComponent(x));var q=ci.m;q&&(this.Oc=q)}var X=OZ(L.qoeUrl);if(X){for(var P= g.Ff(X),Bi=g.N(Object.keys(P)),l=Bi.next();!l.done;l=Bi.next()){var c=l.value,e=P[c];P[c]=Array.isArray(e)?e.join(","):e}this.L3=P;var b7=P.cat;b7&&(this.X("html5_enable_qoe_cat_list")?this.aS=this.aS.concat(b7.split(",")):this.qg=b7);var Pi=P.live;Pi&&(this.jp=Pi);var Ig=P.drm_product;Ig&&(this.drmProduct=Ig)}var i9=OZ(L.videostatsPlaybackUrl);if(i9){var jB=mM(i9),xL=jB.adformat;if(xL){Fi.adformat=xL;var RG=this.W(),Lg=Mwi(xL,this.j0,RG.L,RG.Z);Lg&&(this.adFormat=Lg)}var Xk=jB.aqi;Xk&&(Fi.ad_query_id= Xk);var TI=jB.autoplay;TI&&(this.nK=TI=="1",this.lj=TI=="1");var NS=jB.autonav;NS&&(this.isAutonav=NS=="1");var ZT=jB.delay;ZT&&(this.EP=SW(ZT));var S6=jB.ei;S6&&(this.eventId=S6);if(jB.adcontext||xL)this.nK=!0;var Te=jB.feature;Te&&(this.dn=Te);var GD=jB.list;GD&&(this.playlistId=GD);var yL=jB.of;yL&&(this.tK=yL);var Rd=jB.osid;Rd&&(this.osid=Rd);var MJ=jB.referrer;MJ&&(this.referrer=MJ);var tG=jB.sdetail;tG&&(this.Jn=tG);var Ov=jB.ssrt;Ov&&(this.Oa=Ov=="1");var qk=jB.subscribed;qk&&(this.subscribed= qk=="1");var C1=jB.uga;C1&&(this.userGenderAge=C1);var pr=jB.upt;pr&&(this.Kb=pr);var eX=jB.vm;eX&&(this.videoMetadata=eX);u9.playback=jB}var FL=OZ(L.videostatsWatchtimeUrl);if(FL){var hp=mM(FL),gC=hp.ald;gC&&(this.e6=gC);u9.watchtime=hp}var H4=OZ(L.atrUrl);if(H4){var mI=mM(H4);u9.atr=mI}var c_=OZ(L.engageUrl);if(c_){var od=mM(c_);u9.engage=od}this.u8=u9;if(L.promotedPlaybackTracking){var FW=L.promotedPlaybackTracking;FW.startUrls&&(this.gZ=FW.startUrls);FW.firstQuartileUrls&&(this.d1=FW.firstQuartileUrls); FW.secondQuartileUrls&&(this.UI=FW.secondQuartileUrls);FW.thirdQuartileUrls&&(this.l_=FW.thirdQuartileUrls);FW.completeUrls&&(this.Ov=FW.completeUrls);FW.engagedViewUrls&&(FW.engagedViewUrls.length>1&&g.qN(new g.Pv("There are more than one engaged_view_urls.")),this.wZ=FW.engagedViewUrls[0])}}var ki=this.playerResponse.playerCueRanges;ki&&ki.length>0&&(this.cueRanges=ki);var nr=this.playerResponse.playerCueRangeSet;nr&&g.iR(this,nr);a:{var $M=this.playerResponse.adPlacements;if($M)for(var ad=g.N($M), Ay=ad.next();!Ay.done;Ay=ad.next()){var Jp=void 0,MC=void 0,vJ=(Jp=Ay.value.adPlacementRenderer)==null?void 0:(MC=Jp.renderer)==null?void 0:MC.videoAdTrackingRenderer;if(vJ){var gj=vJ;break a}}gj=null}var xM=gj;L&&L.promotedPlaybackTracking&&xM&&g.qN(new g.Pv("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Gf;if(!(Gf=xM))a:{for(var GY=g.N(this.playerResponse.adSlots||[]),sI=GY.next();!sI.done;sI=GY.next()){var pl=g.t(sI.value,hQ);if(pl===void 0||!b4_(pl))break; var bE=void 0,eL=(bE=pl.fulfillmentContent)==null?void 0:bE.fulfilledLayout,nE=g.t(eL,l2);if(nE&&Pq(nE)){Gf=!0;break a}}Gf=!1}Gf&&(this.RM=!0);var uc=this.playerResponse.playerAds;if(uc)for(var Jh=R,Sp=g.N(uc),$R=Sp.next();!$R.done;$R=Sp.next()){var O_=$R.value;if(O_){var MW=O_.playerLegacyDesktopWatchAdsRenderer;if(MW){var dj=MW.playerAdParams;if(dj){dj.autoplay=="1"&&(this.lj=this.nK=!0);this.CP=dj.encodedAdSafetyReason||null;dj.showContentThumbnail!==void 0&&(this.n$=!!dj.showContentThumbnail); Jh.enabled_engage_types=dj.enabledEngageTypes;break}}}}var Lb=this.playerResponse.playerConfig;if(Lb){var Nw=Lb.manifestlessWindowedLiveConfig;if(Nw){var np=Number(Nw.minDvrSequence),vL=Number(Nw.maxDvrSequence),kj=Number(Nw.minDvrMediaTimeMs),gq=Number(Nw.maxDvrMediaTimeMs),mh=Number(Nw.startWalltimeMs);np&&(this.G2=np);kj&&(this.Uz=kj/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&AL(this)&&(this.ES=kj/1E3));vL&&(this.Lr=vL);gq&&(this.Sw=gq/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&& AL(this)&&(this.B1=gq/1E3));mh&&(this.gW=mh/1E3);(np||kj)&&(vL||gq)&&(this.allowLiveDvr=this.isLivePlayback=this.oR=!0,this.Xd=!1)}var oh=Lb.daiConfig;if(oh){if(oh.enableDai){this.Qs=!0;var gM=oh.enableServerStitchedDai;gM&&(this.enableServerStitchedDai=gM);var tH=oh.enablePreroll;tH&&(this.Rf=tH)}var gu;if(oh.daiType==="DAI_TYPE_SS_DISABLED"||((gu=oh.debugInfo)==null?0:gu.isDisabledUnpluggedChannel))this.bN=!0;oh.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Jd=!0)}var I2=Lb.audioConfig;if(I2){var uO= I2.loudnessDb;uO!=null&&(this.Ym=uO);var dXO=I2.trackAbsoluteLoudnessLkfs;dXO!=null&&(this.Lm=dXO);var PmB=I2.loudnessTargetLkfs;PmB!=null&&(this.loudnessTargetLkfs=PmB);I2.audioMuted&&(this.Vw=!0);I2.muteOnStart&&(this.El=!0);var xS=I2.loudnessNormalizationConfig;if(xS){xS.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);xS.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var zkB=xS.minimumLoudnessTargetLkfs;zkB!=null&&(this.minimumLoudnessTargetLkfs=zkB); var KXi=xS.maxStatefulTimeThresholdSec;KXi!=null&&(this.maxStatefulTimeThresholdSec=KXi)}I2.playAudioOnly&&(this.Y6=!0)}var kfm=Lb.playbackEndConfig;if(kfm){var ttm=kfm.endSeconds,l4n=kfm.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(ttm&&(this.endSeconds=ttm),l4n&&(this.limitedPlaybackDurationInSeconds=l4n))}var kq=Lb.fairPlayConfig;if(kq){var DXL=kq.certificate;DXL&&(this.PG=Ac(DXL));var Vta=Number(kq.keyRotationPeriodMs);Vta>0&&(this.Mv=Vta);var UXi=Number(kq.keyPrefetchMarginMs);UXi>0&& (this.Nv=UXi)}var Oa=Lb.playbackStartConfig;if(Oa){this.Ba=Number(Oa.startSeconds);var Cma=Oa.liveUtcStartSeconds,cC2=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;Cma&&!cC2&&(this.liveUtcStartSeconds=Number(Cma));var QP2=Oa.startPosition;if(QP2){var WXi=QP2.utcTimeMillis;WXi&&!cC2&&(this.liveUtcStartSeconds=Number(WXi)*.001);var Rfg=QP2.streamTimeMillis;Rfg&&(this.AT=Number(Rfg)*.001)}this.progressBarStartPosition=Oa.progressBarStartPosition;this.progressBarEndPosition=Oa.progressBarEndPosition}else{var $xi= Lb.skippableSegmentsConfig;if($xi){var FrO=$xi.introSkipDurationMs;FrO&&(this.nX=Number(FrO)/1E3);var hfg=$xi.outroSkipDurationMs;hfg&&(this.JK=Number(hfg)/1E3)}}var AtO=Lb.skippableIntroConfig;if(AtO){var aWL=Number(AtO.startMs),Jzg=Number(AtO.endMs);isNaN(aWL)||isNaN(Jzg)||(this.YZ=aWL,this.lq=Jzg)}var MoO=Lb.streamSelectionConfig;MoO&&(this.Xf=Number(MoO.maxBitrate));var vQg=Lb.vrConfig;vQg&&(this.Qx=vQg.partialSpherical=="1");var N0=Lb.webDrmConfig;if(N0){N0.skipWidevine&&(this.E2=!0);var gQm= N0.widevineServiceCert;gQm&&(this.B9=Ac(gQm));N0.useCobaltWidevine&&(this.useCobaltWidevine=!0);N0.startWithNoQualityConstraint&&(this.eb=!0)}var dI=Lb.mediaCommonConfig;if(dI){var Q4=dI.dynamicReadaheadConfig;if(Q4){this.maxReadAheadMediaTimeMs=Q4.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Q4.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Q4.readAheadGrowthRateMs||NaN;var GH_,IWT=dI==null?void 0:(GH_=dI.mediaUstreamerRequestConfig)==null?void 0:GH_.videoPlaybackUstreamerConfig; IWT&&(this.Rp=Ac(IWT));var xxn=dI==null?void 0:dI.sabrContextUpdates;if(xxn&&xxn.length>0)for(var iYi=g.N(xxn),NC_=iYi.next();!NC_.done;NC_=iYi.next()){var M_=NC_.value;if(M_.type&&M_.value){var Xke={type:M_.type,scope:M_.scope,value:Ac(M_.value)||void 0,sendByDefault:M_.sendByDefault};this.sabrContextUpdates.set(M_.type,Xke)}}}var wgO=dI.serverPlaybackStartConfig;wgO&&(this.serverPlaybackStartConfig=wgO);dI.useServerDrivenAbr&&(this.yD=!0);var EQO=dI.requestPipeliningConfig;EQO&&(this.requestPipeliningConfig= EQO)}var B0n=Lb.inlinePlaybackConfig;B0n&&(this.JZ=!!B0n.showAudioControls);var $q=Lb.embeddedPlayerConfig;if($q){this.embeddedPlayerConfig=$q;var H1g=$q.embeddedPlayerMode;if(H1g){var rzm=this.W();rzm.Uz=H1g;rzm.K=H1g==="EMBEDDED_PLAYER_MODE_PFL"}var Ylm=$q.permissions;Ylm&&(this.allowImaMonetization=!!Ylm.allowImaMonetization)}var Ag=Lb.webPlayerConfig;Ag&&(Ag.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Ag.gatewayExperimentGroup),Ag.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var P9= this.playerResponse.streamingData;if(P9){var LuT=P9.formats;if(LuT){for(var Hq=[],sJi=g.N(LuT),TCL=sJi.next();!TCL.done;TCL=sJi.next()){var yti=TCL.value;Hq.push(yti.itag+"/"+yti.width+"x"+yti.height)}this.YW=Hq.join(",");Hq=[];for(var pgg=g.N(LuT),qQn=pgg.next();!qQn.done;qQn=pgg.next()){var L5=qQn.value,TN={itag:L5.itag,type:L5.mimeType,quality:L5.quality},kHL=L5.url;kHL&&(TN.url=kHL);var xq=Do(L5),eig=xq.iI,n6k=xq.x9,uoh=xq.s;xq.bk&&(TN.url=eig,TN.sp=n6k,TN.s=uoh);Hq.push(g.YR(TN))}this.g$=Hq.join(",")}var fhi= P9.hlsFormats;if(fhi&&!this.X("safari_live_drm_captions_fix")){var QJm=Lb||null,NL={};if(QJm){var jPg=QJm.audioPairingConfig;if(jPg&&jPg.pairs)for(var $DT=g.N(jPg.pairs),Z1n=$DT.next();!Z1n.done;Z1n=$DT.next()){var Az2=Z1n.value,b1I=Az2.videoItag;NL[b1I]||(NL[b1I]=[]);NL[b1I].push(Az2.audioItag)}}for(var xDi={},N02=g.N(fhi),SQO=N02.next();!SQO.done;SQO=N02.next()){var HY7=SQO.value;xDi[HY7.itag]=HY7.bitrate}for(var LrT=[],T0B=g.N(fhi),O1f=T0B.next();!O1f.done;O1f=T0B.next()){var Dz=O1f.value,xa={itag:Dz.itag, type:Dz.mimeType,url:Dz.url,bitrate:Dz.bitrate,width:Dz.width,height:Dz.height,fps:Dz.fps},HH=Dz.audioTrack;if(HH){var yzI=HH.displayName;yzI&&(xa.name=yzI,xa.audio_track_id=HH.id,HH.audioIsDefault&&(xa.is_default="1"))}if(Dz.drmFamilies){for(var qli=[],fWO=g.N(Dz.drmFamilies),mxn=fWO.next();!mxn.done;mxn=fWO.next())qli.push(o_[mxn.value]);xa.drm_families=qli.join(",")}var Lj=NL[Dz.itag];if(Lj&&Lj.length){xa.audio_itag=Lj.join(",");var jJi=xDi[Lj[0]];jJi&&(xa.bitrate+=jJi)}var ZYg=vuO(Dz);ZYg&&(xa.eotf= ZYg);Dz.audioChannels&&(xa.audio_channels=Dz.audioChannels);LrT.push(g.YR(xa))}this.hlsFormats=LrT.join(",")}var ozO=P9.licenseInfos;if(ozO&&ozO.length>0){for(var bYL={},SlO=g.N(ozO),X_2=SlO.next();!X_2.done;X_2=SlO.next()){var OYn=X_2.value,mDi=OYn.drmFamily,oQL=OYn.url;mDi&&oQL&&(bYL[o_[mDi]]=oQL)}this.qH=bYL}var Xgi=P9.drmParams;Xgi&&(this.drmParams=Xgi);var eff=P9.dashManifestUrl;eff&&(this.Ho=g.sA(eff,{cpn:this.clientPlaybackNonce}));var nQm=P9.hlsManifestUrl;nQm&&(this.hlsvp=nQm);var uaB=P9.probeUrl; uaB&&(this.probeUrl=PW(g.sA(uaB,{cpn:this.clientPlaybackNonce})));var dDI=P9.serverAbrStreamingUrl;dDI&&(this.UJ=new g.dV(dDI,!0))}var PDa=this.playerResponse.trackingParams;PDa&&(this.Sl=PDa);var A7=this.playerResponse.videoDetails;if(A7){var NW=R,e6a=A7.videoId;e6a&&(this.videoId=e6a,NW.video_id||(NW.video_id=e6a));var nzI=A7.title;nzI&&(this.title=nzI,NW.title||(NW.title=nzI));var uJL=A7.lengthSeconds;uJL&&(this.lengthSeconds=Number(uJL),NW.length_seconds||(NW.length_seconds=uJL));var zff=A7.keywords; zff&&(this.keywords=P2_(zff));var dxa=A7.channelId;dxa&&(this.Vc=dxa,NW.ucid||(NW.ucid=dxa));var KrI=A7.viewCount;KrI&&(this.rawViewCount=Number(KrI));var P17=A7.author;P17&&(this.author=P17,NW.author||(NW.author=P17));var toi=A7.shortDescription;toi&&(this.shortDescription=toi);var lW_=A7.isCrawlable;lW_&&(this.isListed=lW_);var DDi=A7.musicVideoType;DDi&&(this.musicVideoType=DDi);var z6m=A7.isLive;z6m!=null&&(this.isLivePlayback=z6m);if(z6m||A7.isUpcoming)this.isPremiere=!A7.isLiveContent;var Vo2= A7.thumbnail;Vo2&&(this.Z=SQ(Vo2));var UDL=A7.isExternallyHostedPodcast;UDL&&(this.isExternallyHostedPodcast=UDL);var Kun=A7.viewerLivestreamJoinPosition;if(Kun==null?0:Kun.utcTimeMillis)this.DZ=SW(Kun.utcTimeMillis);var CDL=Lb||null,tYf=R;A7.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);A7.isUpcoming&&(this.isUpcoming=!0);if(A7.isPostLiveDvr){this.Xd=!0;var cz7=A7.latencyClass;cz7&&(this.latencyClass=Gf6[cz7]||"UNKNOWN");A7.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var lhL= !1;this.nI?(this.allowLiveDvr=k9()?!0:DD&&Cs<5?!1:!0,this.isLivePlayback=!0):A7.isLive?(tYf.livestream="1",this.allowLiveDvr=A7.isLiveDvrEnabled?k9()?!0:DD&&Cs<5?!1:!0:!1,this.partnerId=27,lhL=!0):A7.isUpcoming&&(lhL=!0);if(A7.isLive||this.nI){A7.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var Wri=A7.latencyClass;Wri&&(this.latencyClass=Gf6[Wri]||"UNKNOWN");var R2m=A7.liveChunkReadahead;R2m&&(this.liveChunkReadahead=R2m);var mR=CDL&&CDL.livePlayerConfig;if(mR){mR.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);mR.hasSubfragmentedWebm&&(this.AK=!0);mR.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Fkn=mR.liveExperimentalContentId;Fkn&&(this.liveExperimentalContentId=Number(Fkn));var h22=mR.isLiveHeadPlayable;this.X("html5_live_head_playable")&&h22!=null&&(this.isLiveHeadPlayable=h22)}}lhL&&(this.isLivePlayback=!0,tYf.adformat&&tYf.adformat.split("_")[1]!=="8"||this.aR.push("heartbeat"))}var a8L=A7.isPrivate;a8L!==void 0&&(this.isPrivate=RA(this.isPrivate, a8L))}if(GI){var JUO=A7||null,Mhg=!1,oN=GI.errorScreen;Mhg=oN&&(oN.playerLegacyDesktopYpcOfferRenderer||oN.playerLegacyDesktopYpcTrailerRenderer||oN.ypcTrailerRenderer)?!0:JUO&&JUO.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(GI.status);if(!Mhg){this.errorCode=Cdn(GI.errorCode)||"auth";var Tt=oN&&oN.playerErrorMessageRenderer;if(Tt){this.playerErrorMessageRenderer=Tt;var v47=Tt.reason;v47&&(this.errorReason=g.iQ(v47));var Dx2=Tt.subreason;Dx2&&(this.OS=g.iQ(Dx2),this.qv=Dx2)}else this.errorReason= GI.reason||null;var VY7=GI.status;if(VY7==="LOGIN_REQUIRED")this.errorDetail="1";else if(VY7==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(VY7==="AGE_CHECK_REQUIRED"){var g4n=GI.errorScreen,GvB=g4n&&g4n.playerKavRenderer;this.errorDetail=GvB&&GvB.kavUrl?"4":"3"}else this.errorDetail=GI.isBlockedInRestrictedMode?"5":"0"}}var I8n=this.playerResponse.interstitialPods;I8n&&ESn(this,I8n);this.NQ&&this.eventId&&(this.NQ=az(this.NQ,{ei:this.eventId}));var Uxn=this.playerResponse.captions;if(Uxn&& Uxn.playerCaptionsTracklistRenderer)a:{var HL=Uxn.playerCaptionsTracklistRenderer;this.captionTracks=[];if(HL.captionTracks)for(var i2i=g.N(HL.captionTracks),C1i=i2i.next();!C1i.done;C1i=i2i.next()){var LJ=C1i.value,wdT=nSL(LJ.baseUrl);if(!wdT)break a;var cti={is_translateable:!!LJ.isTranslatable,languageCode:LJ.languageCode,languageName:LJ.name&&g.iQ(LJ.name),url:wdT,vss_id:LJ.vssId,kind:LJ.kind};cti.name=LJ.trackName;cti.displayName=LJ.name&&g.iQ(LJ.name);this.captionTracks.push(new g.q5(cti))}this.Q9= HL.audioTracks||[];this.G6=HL.defaultAudioTrackIndex||0;this.Ds=[];if(HL.translationLanguages)for(var E4I=g.N(HL.translationLanguages),Wui=E4I.next();!Wui.done;Wui=E4I.next()){var X_=Wui.value,vO={};vO.languageCode=X_.languageCode;vO.languageName=g.iQ(X_.languageName);if(X_.translationSourceTrackIndices){vO.translationSourceTrackIndices=[];for(var BJ_=g.N(X_.translationSourceTrackIndices),R0a=BJ_.next();!R0a.done;R0a=BJ_.next())vO.translationSourceTrackIndices.push(R0a.value)}if(X_.excludeAudioTrackIndices){vO.excludeAudioTrackIndices= [];for(var rU7=g.N(X_.excludeAudioTrackIndices),F9B=rU7.next();!F9B.done;F9B=rU7.next())vO.excludeAudioTrackIndices.push(F9B.value)}this.Ds.push(vO)}this.zt=[];if(HL.defaultTranslationSourceTrackIndices)for(var YM7=g.N(HL.defaultTranslationSourceTrackIndices),h0i=YM7.next();!h0i.done;h0i=YM7.next())this.zt.push(h0i.value);this.aO=!!HL.contribute&&!!HL.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Ba=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&rOi(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var sm7;this.compositeLiveIngestionOffsetToken=(sm7=this.playerResponse.playbackTracking)==null?void 0:sm7.compositeLiveIngestionOffsetToken;var pdm;this.compositeLiveStatusToken=(pdm=this.playerResponse.playbackTracking)==null?void 0: pdm.compositeLiveStatusToken;this.X("html5_fill_default_mosaic_audio_track_id")&&FM(this)&&(this.LI.HG=beL(this))}g9(this,R);R.queue_info&&(this.queueInfo=R.queue_info);var kvO=R.hlsdvr;kvO!=null&&(this.allowLiveDvr=Number(kvO)===1?k9()?!0:DD&&Cs<5?!1:!0:!1);this.adQueryId=R.ad_query_id||null;this.CP||(this.CP=R.encoded_ad_safety_reason||null);this.Vw=RA(this.Vw,R.infringe||R.muted);this.XB=R.authkey;this.AY=R.authuser;this.mutedAutoplay=RA(this.mutedAutoplay,R&&R.playmuted);this.mutedAutoplayDurationMode= hs(this.mutedAutoplayDurationMode,R&&R.muted_autoplay_duration_mode);this.WU=RA(this.WU,R&&R.mutedautoplay);var y4=R.length_seconds;y4&&(this.lengthSeconds=typeof y4==="string"?SW(y4):y4);if(this.isAd()||this.xY||!g.gK(g.cy(this.LI)))this.endSeconds=hs(this.endSeconds,this.JK||R.end||R.endSeconds);else{var dgv=g.cy(this.LI),qL=this.lengthSeconds;switch(dgv){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":qL>30?this.limitedPlaybackDurationInSeconds=30:qL<30&&qL>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=qL*.2}}this.Sl=aA(this.Sl,R.itct);this.y$=RA(this.y$,R.is_live_destination);this.isLivePlayback=RA(this.isLivePlayback,R.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Mt();R.isUpcoming&&(this.isUpcoming=RA(this.isUpcoming,R.isUpcoming));this.Xd=RA(this.Xd,R.post_live_playback);this.oR&&(this.Xd=!1);this.isMdxPlayback=RA(this.isMdxPlayback,R.mdx);var fj=R.mdx_control_mode; fj&&(this.mdxControlMode=typeof fj==="number"?fj:SW(fj));this.isInlinePlaybackNoAd=RA(this.isInlinePlaybackNoAd,R.is_inline_playback_no_ad);this.YH=hs(this.YH,R.reload_count);this.reloadReason=aA(this.reloadReason,R.reload_reason);this.n$=RA(this.n$,R.show_content_thumbnail);this.cycToken=R.cyc||null;var QmO=bg(R);Object.keys(QmO).length>0&&(this.Z=QmO);this.fI=aA(this.fI,R.vvt);this.mdxEnvironment=aA(this.mdxEnvironment,R.mdx_environment);R.source_container_playlist_id&&(this.sourceContainerPlaylistId= R.source_container_playlist_id);R.serialized_mdx_metadata&&(this.serializedMdxMetadata=R.serialized_mdx_metadata);this.Ah=R.osig;this.eventId||(this.eventId=R.eventid);this.osid||(this.osid=R.osid);this.playlistId=aA(this.playlistId,R.list);R.index&&(this.playlistIndex=this.playlistIndex===void 0?hs(0,R.index):hs(this.playlistIndex,R.index));this.IV=R.pyv_view_beacon_url;this.WD=R.pyv_quartile25_beacon_url;this.xC=R.pyv_quartile50_beacon_url;this.Qa=R.pyv_quartile75_beacon_url;this.FF=R.pyv_quartile100_beacon_url; var $rO=R.session_data;!this.nt&&$rO&&(this.nt=Cp($rO,"&").feature);this.isFling=hs(this.isFling?1:0,R.is_fling)===1;this.vnd=hs(this.vnd,R.vnd);this.forceAdsUrl=aA(this.forceAdsUrl,R.force_ads_url);this.Cr=aA(this.Cr,R.ctrl);this.ZY=aA(this.ZY,R.ytr);this.fg=R.ytrcc;this.zm=R.ytrexp;this.PT=R.ytrext;this.PJ=aA(this.PJ,R.adformat);this.j0=aA(this.j0,R.attrib);this.slotPosition=hs(this.slotPosition,R.slot_pos);this.breakType=R.break_type;this.Oa=RA(this.Oa,R.ssrt);this.videoId=Mm(R)||this.videoId; this.S=aA(this.S,R.vss_credentials_token);this.H4=aA(this.H4,R.vss_credentials_token_type);this.Y6=RA(this.Y6,R.audio_only);this.IR=RA(this.IR,R.aac_high);this.UN=RA(this.UN,R.prefer_low_quality_audio);this.CN=RA(this.CN,R.uncap_inline_quality);this.X("html5_enable_qoe_cat_list")?R.qoe_cat&&(this.aS=this.aS.concat(R.qoe_cat.split(","))):this.qg=aA(this.qg,R.qoe_cat);this.cY=RA(this.cY,R.download_media);var AUL=R.prefer_gapless;this.Y=AUL!=null?RA(this.Y,AUL):this.Y?this.Y:this.LI.preferGapless&&this.LI.supportsGaplessShorts(); Ivi(this.playerResponse)&&this.aR.push("ad");var xr_=R.adaptive_fmts;xr_&&(this.adaptiveFormats=xr_,this.dA("adpfmts",{},!0));var NJf=R.allow_embed;NJf&&(this.allowEmbed=Number(NJf)===1);var H2L=R.backgroundable;H2L&&(this.backgroundable=Number(H2L)===1);var Lkg=R.autonav;Lkg&&(this.isAutonav=Number(Lkg)===1);var TJI=R.autoplay;TJI&&(this.nK=this.lj=Number(TJI)===1);var yUI=R.iv_load_policy;yUI&&(this.annotationsLoadPolicy=FB(this.annotationsLoadPolicy,yUI,Wy));var qMO=R.cc_lang_pref;qMO&&(this.captionsLanguagePreference= aA(qMO,this.captionsLanguagePreference));var f8g=R.cc_load_policy;f8g&&(this.JE=FB(this.JE,f8g,Wy));var jmi;this.deviceCaptionsOn=(jmi=R.device_captions_on)!=null?jmi:void 0;var Z2m;this.AZ=(Z2m=R.device_captions_lang_pref)!=null?Z2m:"";var b2f;this.aN=(b2f=R.viewer_selected_caption_langs)!=null?b2f:[];if(!this.X("html5_enable_ssap_entity_id")){var SM2=R.cached_load;SM2&&(this.hX=RA(this.hX,SM2))}if(R.dash==="0"||R.dash===0||R.dash===!1)this.Nl=!0;var O2_=R.dashmpd;O2_&&(this.Ho=g.sA(O2_,{cpn:this.clientPlaybackNonce})); var mrn=R.delay;mrn&&(this.EP=SW(mrn));var af_=this.JK||R.end;if(this.It?af_!=null:af_!=void 0)this.clipEnd=hs(this.clipEnd,af_);var o42=R.fmt_list;o42&&(this.YW=o42);R.heartbeat_preroll&&this.aR.push("heartbeat");this.Tt=-Math.floor(Math.random()*10);this.tE=-Math.floor(Math.random()*40);var XdL=R.is_listed;XdL&&(this.isListed=RA(this.isListed,XdL));var e27=R.is_private;e27&&(this.isPrivate=RA(this.isPrivate,e27));var n4_=R.is_dni;n4_&&(this.bq=RA(this.bq,n4_));var uS_=R.dni_color;uS_&&(this.JX= aA(this.JX,uS_));var drO=R.pipable;drO&&(this.pipable=RA(this.pipable,drO));this.pj=(this.d2=this.pipable&&this.LI.aO)&&!this.LI.showMiniplayerButton;var PvO=R.paid_content_overlay_duration_ms;PvO&&(this.paidContentOverlayDurationMs=SW(PvO));var z2O=R.paid_content_overlay_text;z2O&&(this.paidContentOverlayText=z2O);var Kkf=R.url_encoded_fmt_stream_map;Kkf&&(this.g$=Kkf);var thO=R.hls_formats;thO&&(this.hlsFormats=thO);var l8_=R.hlsvp;l8_&&(this.hlsvp=l8_);var jN=R.live_start_walltime;jN&&(this.t2= typeof jN==="number"?jN:SW(jN));var Zw=R.live_manifest_duration;Zw&&(this.kp=typeof Zw==="number"?Zw:SW(Zw));var Dri=R.player_params;Dri&&(this.playerParams=Dri);var VhB=R.partnerid;VhB&&(this.partnerId=hs(this.partnerId,VhB));var Urm=R.probe_url;Urm&&(this.probeUrl=PW(g.sA(Urm,{cpn:this.clientPlaybackNonce})));var JxI=R.pyv_billable_url;JxI&&YDi(JxI)&&(this.wZ=JxI);var MX2=R.pyv_conv_url;MX2&&YDi(MX2)&&(this.ya=MX2);zn_(this,R);this.startSeconds>0?this.X("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.Ba||this.nX||R.start||R.startSeconds)&&this.dA("lss",{css:this.startSeconds,pcss:this.Ba,iss:this.nX,ps:R.start||void 0,pss:R.startSeconds||void 0}):this.iY=this.startSeconds=hs(this.startSeconds,this.Ba||this.nX||R.start||R.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Cv7=R.live_utc_start;if(Cv7!=null)this.liveUtcStartSeconds=Number(Cv7);else{var viL=this.startSeconds;viL&&isFinite(viL)&&viL>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var cUI=R.utc_start_millis;cUI&&(this.liveUtcStartSeconds=Number(cUI)*.001)}var Wk_=R.stream_time_start_millis;Wk_&&(this.AT=Number(Wk_)*.001);var gi_=this.nX||R.start;(this.It?gi_==null||Number(R.resume)===1:gi_==void 0||R.resume=="1")||this.isLivePlayback||(this.clipStart=hs(this.clipStart,gi_));var RHf=R.url_encoded_third_party_media;RHf&&(this.ub=Rz(RHf));var GrT=R.ypc_offer_button_formatted_text;if(GrT){var F6i=JSON.parse(GrT);this.Ml=F6i!=null?F6i:null;this.Lj=GrT}var hH2= R.ypc_offer_button_text;hH2&&(this.KQ=hH2);var aB2=R.ypc_offer_description;aB2&&(this.pP=aB2);var Jn2=R.ypc_offer_headline;Jn2&&(this.Gz=Jn2);var MUa=R.ypc_full_video_message;MUa&&(this.d5=MUa);var vII=R.ypc_offer_id;vII&&(this.E0=vII);var gIL=R.ypc_buy_url;gIL&&(this.wO=gIL);var Gzi=R.ypc_item_thumbnail;Gzi&&(this.Jx=Gzi);var IBa=R.ypc_item_title;IBa&&(this.D2=IBa);var i8B=R.ypc_item_url;i8B&&(this.dc=i8B);var wEO=R.ypc_vid;wEO&&(this.yh=wEO);R.ypc_overlay_timeout&&(this.Nz=Number(R.ypc_overlay_timeout)); var EIm=R.ypc_trailer_player_vars;EIm&&(this.pS=Wk(EIm));var Bta=R.ypc_original_itct;Bta&&(this.SsG=Bta);this.Vc=aA(this.Vc,R.ucid);this.jB=R.storyboard_spec||null;this.hn=R.live_storyboard_spec||null;this.VL=R.iv_endscreen_url||null;this.FO=RA(this.FO,R.ypc_module);this.DG=RA(this.DG,R.ypc_clickwrap_module);this.FO&&this.aR.push("ypc");this.DG&&this.aR.push("ypc_clickwrap");this.n4={video_id:R.video_id,eventid:R.eventid,cbrand:R.cbrand,cbr:R.cbr,cbrver:R.cbrver,c:R.c,cver:R.cver,ctheme:R.ctheme, cplayer:R.cplayer,cmodel:R.cmodel,cnetwork:R.cnetwork,cos:R.cos,cosver:R.cosver,cplatform:R.cplatform,user_age:R.user_age,user_display_image:R.user_display_image,user_display_name:R.user_display_name,user_gender:R.user_gender,csi_page_type:R.csi_page_type,csi_service_name:R.csi_service_name,enablecsi:R.enablecsi,enabled_engage_types:R.enabled_engage_types};enf(this,R);var rnm=R.cotn;rnm&&(this.cotn=rnm);if(ap7(this))Hr(this)&&(this.isLivePlayback&&this.Ho&&(this.lT=!0),this.PG&&(this.zd=!0));else if(JQT(this))this.lT= !0;else{var YEn,srL,pEg=((YEn=this.playerResponse)==null?void 0:(srL=YEn.streamingData)==null?void 0:srL.adaptiveFormats)||[];if(pEg.length>0)var yu=h3n(this,pEg);else{var kzf=this.adaptiveFormats;if(kzf&&!Hr(this)){this.LI.N.K&&(U3=!0);var e9=Zy(kzf),IfB=this.qH,Qri=this.lengthSeconds,POg=this.isLivePlayback,q0=this.Xd,nU=this.LI,ziu=$87(e9);if(POg||q0){var $Yn=nU==null?void 0:nU.experiments,SC=new O3("",$Yn,!0);SC.Mt=!0;SC.isManifestless=!0;SC.D=!q0;SC.isLive=!q0;SC.Xd=q0;for(var Ann=g.N(e9),irB= Ann.next();!irB.done;irB=Ann.next()){var up=irB.value,xYI=ea(up,IfB),g_=nL(up.url,up.sp,up.s),NtO=g_.get("id");NtO&&NtO.includes("%7E")&&(SC.C=!0);var H8L=void 0,Kwv=(H8L=$Yn)==null?void 0:H8L.jl("html5_max_known_end_time_rebase"),tmU=Number(up.target_duration_sec)||5,lPu=Number(up.max_dvr_duration_sec)||14400,L6O=Number(g_.get("mindsq")||g_.get("min_sq")||"0"),Ttf=Number(g_.get("maxdsq")||g_.get("max_sq")||"0")||Infinity;SC.G2=SC.G2||L6O;SC.Lr=SC.Lr||Ttf;var Dgu=!Pz(xYI.mimeType);g_&&ZL(SC,new rH(g_, xYI,{VD:tmU,f7:Dgu,rp:lPu,G2:L6O,Lr:Ttf,UH:300,Xd:q0,vT:Kwv}))}var ynL=SC}else{if(ziu==="FORMAT_STREAM_TYPE_OTF"){var b4=Qri;b4=b4===void 0?0:b4;var dw=new O3("",nU==null?void 0:nU.experiments,!1);dw.duration=b4||0;for(var qE7=g.N(e9),wXO=qE7.next();!wXO.done;wXO=qE7.next()){var PD=wXO.value,Eii=ea(PD,IfB,dw.duration),BRa=nL(PD.url,PD.sp,PD.s);if(BRa)if(Eii.streamType==="FORMAT_STREAM_TYPE_OTF")ZL(dw,new Yb(BRa,Eii,"sq/0"));else{var Vmg=l8(PD.init),Ug7=l8(PD.index);ZL(dw,new yF(BRa,Eii,Vmg,Ug7))}}dw.isOtf= !0;var fBB=dw}else{var SN=Qri;SN=SN===void 0?0:SN;var O6=new O3("",nU==null?void 0:nU.experiments,!1);O6.duration=SN||0;for(var jrL=g.N(e9),rxL=jrL.next();!rxL.done;rxL=jrL.next()){var zJ=rxL.value,COL=ea(zJ,IfB,O6.duration),ci6=l8(zJ.init),Wwt=l8(zJ.index),Z8T=nL(zJ.url,zJ.sp,zJ.s);Z8T&&ZL(O6,new yF(Z8T,COL,ci6,Wwt))}fBB=O6}ynL=fBB}var b8I=ynL;if(e9.length>0){var SEm=e9[0];if(this.W().playerStyle==="hangouts-meet"&&SEm.url){var R$u=g.Ff(SEm.url);this.YJ=this.YJ||Number(R$u.expire)}}var FKu=this.isLivePlayback&& !this.Xd&&!this.oR&&!this.isPremiere;this.X("html5_live_head_playable")&&(!Lt(this)&&FKu&&this.dA("missingLiveHeadPlayable",{}),this.LI.oR==="yt"&&(b8I.NQ=!0));yu=b8I}else yu=null;this.dA("pafmts",{isManifestFilled:!!yu})}if(yu){qz(this,yu);var O8O=!0}else O8O=!1;O8O?this.enableServerStitchedDai=this.enableServerStitchedDai&&TT(this):this.Ho&&(this.LI.oR==="yt"&&this.Mt()&&this.X("drm_manifestless_unplugged")&&this.X("html5_deprecate_manifestful_fallback")?this.dA("deprecateMflFallback",{}):this.lT= !0)}var YnO=R.adpings;YnO&&(this.Qh=YnO?Wk(YnO):null);var mYm=R.feature;mYm&&(this.dn=mYm);var oI7=R.referrer;oI7&&(this.referrer=oI7);this.clientScreenNonce=aA(this.clientScreenNonce,R.csn);this.k9=hs(this.k9,R.root_ve_type);this.Fa=hs(this.Fa,R.kids_age_up_mode);this.It||R.kids_app_info==void 0||(this.kidsAppInfo=R.kids_app_info);this.It&&R.kids_app_info!=null&&(this.kidsAppInfo=R.kids_app_info);this.BW=RA(this.BW,R.upg_content_filter_mode);this.unpluggedFilterModeType=hs(this.unpluggedFilterModeType, R.unplugged_filter_mode_type);var XEI=R.unplugged_location_info;XEI&&(this.xO=XEI);var eHi=R.unplugged_partner_opt_out;eHi&&(this.A7=aA("",eHi));this.Xa=RA(this.Xa,R.disable_watch_next);this.tJ=aA(this.tJ,R.internal_ip_override);this.IN=!!R.is_yto_interstitial;(this.interstitials.length||this.IN)&&this.aR.push("yto");var nIB=R.Nn;nIB&&(this.Nn=nIB);this.C=aA(this.C,R.csi_timer);R.watchUrl&&(this.watchUrl=R.watchUrl);var Gs=R.watch_endpoint;this.X("html5_attach_watch_endpoint_ustreamer_config")&&Gs&& Rnf(this,Gs);if(Gs==null?0:Gs.ustreamerConfig)this.xT=Ac(Gs.ustreamerConfig);var ucg,dYO,P62=Gs==null?void 0:(ucg=Gs.loggingContext)==null?void 0:(dYO=ucg.qoeLoggingContext)==null?void 0:dYO.serializedContextData;P62&&(this.k0t=P62);g.Py(this.LI)&&this.LI.E0&&(this.embedsRct=aA(this.embedsRct,R.rct),this.embedsRctn=aA(this.embedsRctn,R.rctn));this.CB=this.CB||!!R.pause_at_start;R.default_active_source_video_id&&(this.defaultActiveSourceVideoId=R.default_active_source_video_id)}; g.Q.W=function(){return this.LI}; g.Q.X=function(R){return this.LI.X(R)}; g.Q.xX=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.Q.hasSupportedAudio51Tracks=function(){var R;return!((R=this.S9)==null||!R.HG)}; g.Q.getUserAudio51Preference=function(){var R=1;wG(this.LI)&&this.X("html5_ytv_surround_toggle_default_off")?R=0:g.Gy(this.LI)&&this.isLivePlayback&&this.rL()&&(R=0);var F;return(F=g.jA("yt-player-audio51"))!=null?F:R}; g.Q.Pr=function(){this.RR()||(this.B.D||this.B.unsubscribe("refresh",this.Pr,this),this.Qg(-1))}; g.Q.Qg=function(R){if(!this.isLivePlayback||!this.N||this.N.flavor!=="fairplay"){var F=x8n(this.B,this.WW);if(F.length>0){for(var h=g.N(F),a=h.next();!a.done;a=h.next())a=a.value,a.startSecs=Math.max(a.startSecs,this.Vd()),this.X("html5_cuepoint_identifier_logging")&&a.event==="start"&&this.dA("cuepoint",{pubCue:a.identifier,segNum:R});this.publish("cuepointupdated",F,R);this.WW+=F.length;if(TT(this)&&this.LI.Po())for(F=g.N(F),h=F.next();!h.done;h=F.next())h=h.value,this.dA("cuepoint",{segNum:R,event:h.event, startSecs:h.startSecs,id:h.identifier.slice(-16)}),h.event==="start"&&(h=h.startSecs,this.F1.start=this.FW,this.F1.end=h+3)}}}; g.Q.qb=function(){this.RR()||(this.loading=!1,this.publish("dataloaded"))}; g.Q.rL=function(){return this.oO!==void 0?this.oO:this.oO=!!this.qH||!!this.B&&Oq(this.B)}; g.Q.tZ=function(R){var F=this;if(this.RR())return ql();this.gf=this.Fo=this.K=null;GU(this,"html5_high_res_logging_always")&&(this.LI.g$=!0);return GVa(this,R).then(void 0,function(){return iea(F,R)}).then(void 0,function(){return wKn(F)}).then(void 0,function(){return B37(F)})}; g.Q.jM=function(R){this.K=R;Ipg(this,this.K.getAvailableAudioTracks());if(this.K){R=g.N(this.K.videoInfos);for(var F=R.next();!F.done;F=R.next()){F=F.value;var h=F.containerType;h!==0&&(this.Ec[h]=F.id)}}R=this.getAvailableAudioTracks();R=R.concat(this.x0);for(F=0;F0?this.K.getAvailableAudioTracks():this.Qw||[]:[]}; g.Q.getAudioTrack=function(){var R=this;if(this.L&&!ef(this.L)){var F=g.QL(this.getAvailableAudioTracks(),function(J){return J.id===R.L.id}),h; if(!F&&((h=this.L.jw)==null?0:h.id)){var a=this.L.jw.id;F=g.QL(this.getAvailableAudioTracks(),function(J){return J.jw.id===a}); this.dA("nat",{id:this.L.id,track:!!F})}return F||this.x0}if(this.Qw){if(!this.RZ)for(F=g.N(this.Qw),h=F.next();!h.done;h=F.next())if(h=h.value,h.jw.getIsDefault()){this.RZ=h;break}return this.RZ||this.x0}return this.x0}; g.Q.getPlayerResponse=function(){return this.playerResponse}; g.Q.getWatchNextResponse=function(){return this.Oz}; g.Q.getHeartbeatResponse=function(){return this.JJ}; g.Q.qI=function(){return this.watchUrl?this.watchUrl:this.LI.getVideoUrl(this.videoId)}; g.Q.Yi=function(){return!!this.B&&(Bhi(this.B)||raB(this.B)||YcT(this.B))}; g.Q.getEmbeddedPlayerResponse=function(){return this.q2}; g.Q.XO=function(){return(this.eventLabel||this.LI.fI)==="shortspage"}; g.Q.isAd=function(){return!!this.adFormat}; g.Q.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.Q.We=function(){var R,F,h;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((R=this.playerResponse)==null?0:(F=R.playerConfig)==null?0:(h=F.daiConfig)==null?0:h.ssaEnabledPlayback)}; g.Q.WI=function(){return this.IM}; g.Q.FU=function(){return this.FO||this.W1}; g.Q.lf=function(){return GU(this,"html5_samsung_vp9_live")}; g.Q.dA=function(R,F,h){this.publish("ctmp",R,F,h)}; g.Q.V4=function(R,F,h){this.publish("ctmpstr",R,F,h)}; g.Q.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.Q.getGetAdBreakContext=function(R,F){R=R===void 0?NaN:R;F=F===void 0?NaN:F;var h={isSabr:AL(this)},a,J=(a=this.getHeartbeatResponse())==null?void 0:a.adBreakHeartbeatParams;J&&(h.adBreakHeartbeatParams=J);if(this.X("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.B&&!isNaN(R)&&!isNaN(F)){F=R-F;for(var M in this.B.B)if(a=this.B.B[M],a.info.In()||a.info.rk())if(a=a.index,a.isLoaded()){M=a.L2(F);a=a.oz(M)+F-a.getStartTime(M);this.dA("gabc",{t:R.toFixed(3),mt:F.toFixed(3),sg:M,igt:a.toFixed(3)}); h.livePlaybackPosition={utcTimeMillis:""+(a*1E3).toFixed(0)};break}}return h}; g.Q.isEmbedsShortsMode=function(R,F){if(!g.Py(this.LI)||(this.LI.Uz||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||F)return!1;var h,a;return!!(((h=this.embeddedPlayerConfig)==null?0:(a=h.embeddedPlayerFlags)==null?0:a.isShortsExperienceEligible)&&R.width<=R.height)}; g.Q.Ez=function(){g.h0.prototype.Ez.call(this);this.Qh=null;delete this.Hj;delete this.accountLinkingConfig;delete this.B;this.K=this.JJ=this.playerResponse=this.Oz=null;this.g$=this.adaptiveFormats="";delete this.botguardData;this.T$=this.suggestions=this.BR=null;this.sabrContextUpdates.clear()};var z3_={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},KLi={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},d77={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},e3L={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"},uTf={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},n8L={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"},PJO={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.A(YC,g.d);g.Q=YC.prototype;g.Q.handleExternalCall=function(R,F,h){var a=this.state.Y[R],J=this.state.Z[R],M=a;if(J)if(h&&nI(h,yRt))M=J;else if(!a)throw Error('API call from an untrusted origin: "'+h+'"');this.logApiCall(R,h);if(M){h=!1;a=g.N(F);for(J=a.next();!J.done;J=a.next())if(String(J.value).includes("javascript:")){h=!0;break}h&&g.qN(Error('Dangerous call to "'+R+'" with ['+F+"]."));return M.apply(this,F)}throw Error('Unknown API method: "'+R+'".');}; g.Q.logApiCall=function(R,F,h){var a=this.app.W();a.Oa&&!this.state.C.has(R)&&(this.state.C.add(R),g.MU("webPlayerApiCalled",{callerUrl:a.loaderUrl,methodName:R,origin:F||void 0,playerStyle:a.playerStyle||void 0,embeddedPlayerMode:a.Uz,errorCode:h}))}; g.Q.publish=function(R){var F=g.u7.apply(1,arguments);this.state.K.publish.apply(this.state.K,[R].concat(g.S(F)));if(R==="videodatachange"||R==="resize"||R==="cardstatechange")this.state.D.publish.apply(this.state.D,[R].concat(g.S(F))),this.state.L.publish.apply(this.state.L,[R].concat(g.S(F)))}; g.Q.WG=function(R){var F=g.u7.apply(1,arguments);this.state.K.publish.apply(this.state.K,[R].concat(g.S(F)));this.state.D.publish.apply(this.state.D,[R].concat(g.S(F)))}; g.Q.xm=function(R){var F=g.u7.apply(1,arguments);this.state.K.publish.apply(this.state.K,[R].concat(g.S(F)));this.state.D.publish.apply(this.state.D,[R].concat(g.S(F)));this.state.L.publish.apply(this.state.L,[R].concat(g.S(F)))}; g.Q.hj=function(R){var F=g.u7.apply(1,arguments);this.state.K.publish.apply(this.state.K,[R].concat(g.S(F)));this.state.D.publish.apply(this.state.D,[R].concat(g.S(F)));this.state.L.publish.apply(this.state.L,[R].concat(g.S(F)));this.state.N.publish.apply(this.state.N,[R].concat(g.S(F)))}; g.Q.X=function(R){return this.app.W().X(R)}; g.Q.Ez=function(){if(this.state.element){var R=this.state.element,F;for(F in this.state.B)this.state.B.hasOwnProperty(F)&&(R[F]=null);this.state.element=null}g.d.prototype.Ez.call(this)};g.A($C,g.Hs);$C.prototype.publish=function(R){var F=g.u7.apply(1,arguments);if(this.N.has(R))return this.N.get(R).push(F),!0;var h=!1;try{for(F=[F],this.N.set(R,F);F.length;)h=g.Hs.prototype.publish.call.apply(g.Hs.prototype.publish,[this,R].concat(g.S(F.shift())))}finally{this.N.delete(R)}return h};g.A(AC,g.d);AC.prototype.Ez=function(){this.N.dispose();this.L.dispose();this.D.dispose();this.K.dispose();this.C=this.B=this.Z=this.Y=this.S=void 0};var cQi=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.A(NX,YC);g.Q=NX.prototype;g.Q.getApiInterface=function(){return Array.from(this.state.S)}; g.Q.lE=function(R,F){this.state.N.subscribe(R,F)}; g.Q.Diu=function(R,F){this.state.N.unsubscribe(R,F)}; g.Q.getPlayerState=function(R){return bCa(this.app,R)}; g.Q.jj=function(){return bCa(this.app)}; g.Q.XJb=function(R,F,h){TU(this)&&(P8(this.app,!0,1),te(this.app,R,F,h,1))}; g.Q.getCurrentTime=function(R,F,h){var a=this.getPlayerState(R);if(this.app.getAppState()===2&&a===5){var J;return((J=this.app.getVideoData())==null?void 0:J.startSeconds)||0}return this.X("web_player_max_seekable_on_ended")&&a===0?mH(this.app,R):R?this.app.getCurrentTime(R,F,h):this.app.getCurrentTime(R)}; g.Q.PB=function(){return this.app.getCurrentTime(1)}; g.Q.bR=function(){var R=this.app.oz(1);return isNaN(R)?this.getCurrentTime(1):R}; g.Q.wU=function(){return this.app.getDuration(1)}; g.Q.eM=function(R,F){R=g.uu(Math.floor(R),0,100);isFinite(R)&&Sy(this.app,{volume:R,muted:this.isMuted()},F)}; g.Q.V9b=function(R){this.eM(R,!1)}; g.Q.SG=function(R){Sy(this.app,{muted:!0,volume:this.getVolume()},R)}; g.Q.iII=function(){this.SG(!1)}; g.Q.v$=function(R){LF(this.app)&&!this.X("embeds_enable_emc3ds_muted_autoplay")||Sy(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},R)}; g.Q.YGo=function(){LF(this.app)&&this.X("embeds_enable_emc3ds_muted_autoplay")||this.v$(!1)}; g.Q.getPlayerMode=function(){var R={};this.app.getVideoData().bq&&(R.pfp={enableIma:g.im(this.app.getVideoData())&&this.app.Bc().allowImaMonetization,autoplay:cr(this.app.Bc()),mutedAutoplay:this.app.Bc().mutedAutoplay});return R}; g.Q.P2=function(){var R=this.app.getPresentingPlayerType();if(R===2&&!this.app.Qs()){var F=Sc(this.app.LO());if(!(SmU(F)||g.Py(this.app.W())&&g.V(this.app.bu().getPlayerState(),1024))||O_7(F))return}(F=this.app.NI().GT)?F.playVideo():this.app.playVideo(R)}; g.Q.P9l=function(){P8(this.app,!0,1);this.P2()}; g.Q.pauseVideo=function(R){var F=this.app.getPresentingPlayerType();if(F!==2||this.app.Qs()||SmU(Sc(this.app.LO()))){var h=this.app.NI().GT;h?h.pauseVideo():this.app.pauseVideo(F,R)}}; g.Q.iKl=function(){var R=this.app,F=!1;R.uu.It&&(R.Xo.publish("pageTransition"),F=!0);R.stopVideo(F)}; g.Q.clearVideo=function(){}; g.Q.getAvailablePlaybackRates=function(){var R=this.app.W();return R.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(R.L?R.ancestorOrigins[0]:window.location.origin)||R.NP?a27:R.supportsVarispeedExtendedFeatures?JRt:R.X("web_remix_allow_up_to_3x_playback_rate")&&g.b5(R)?Muu:Os:[1]}; g.Q.getPlaybackQuality=function(R){return(R=this.app.Rn(R))?R.getPlaybackQuality():"unknown"}; g.Q.Z_R=function(){}; g.Q.getAvailableQualityLevels=function(R){return(R=this.app.Rn(R))?(R=g.p1(R.kc(),function(F){return F.quality}),R.length&&(R[0]==="auto"&&R.shift(),R=R.concat(["auto"])),R):[]}; g.Q.kA=function(){return this.getAvailableQualityLevels(1)}; g.Q.Qi=function(){return this.No()}; g.Q.nH=function(){return 1}; g.Q.getVideoLoadedFraction=function(R){return this.app.getVideoLoadedFraction(R)}; g.Q.No=function(){return this.getVideoLoadedFraction()}; g.Q.B3=function(){return 0}; g.Q.getSize=function(){var R=this.app.xo().getPlayerSize();return{width:R.width,height:R.height}}; g.Q.setSize=function(){this.app.xo().resize()}; g.Q.loadVideoById=function(R,F,h,a){if(!R)return!1;R=xC(R,F,h);return this.app.loadVideoByPlayerVars(R,a)}; g.Q.Yu=function(R,F,h){R=this.loadVideoById(R,F,h,1);P8(this.app,R,1)}; g.Q.cueVideoById=function(R,F,h,a){R=xC(R,F,h);this.app.cueVideoByPlayerVars(R,a)}; g.Q.vl=function(R,F,h){this.cueVideoById(R,F,h,1)}; g.Q.loadVideoByUrl=function(R,F,h,a){R=CJf(R,F,h);return this.app.loadVideoByPlayerVars(R,a)}; g.Q.T7=function(R,F,h){R=this.loadVideoByUrl(R,F,h,1);P8(this.app,R,1)}; g.Q.cueVideoByUrl=function(R,F,h,a){R=CJf(R,F,h);this.app.cueVideoByPlayerVars(R,a)}; g.Q.N0=function(R,F,h){this.cueVideoByUrl(R,F,h,1)}; g.Q.dP=function(){var R=this.app.W();if(R.aR)return"";var F=this.app.Bc(),h=void 0;F.isLivePlayback||(h=Math.floor(this.app.getCurrentTime(1)));return R.getVideoUrl(F.videoId,this.getPlaylistId()||void 0,h)}; g.Q.YA=function(){return this.app.getDebugText()}; g.Q.getVideoEmbedCode=function(){var R=this.app.W();if(R.aR)return"";var F=this.app.Bc();return R.getVideoEmbedCode(F.isPrivate?"":F.title,this.app.Bc().videoId,this.app.xo().getPlayerSize(),this.getPlaylistId()||void 0)}; g.Q.hY=function(R,F,h){return u4I(this.app,R,F,h)}; g.Q.removeCueRange=function(R){return this.app.GM(R)}; g.Q.loadPlaylist=function(R,F,h,a){this.app.loadPlaylist(R,F,h,a)}; g.Q.Pt=function(R,F,h,a){this.loadPlaylist(R,F,h,a);P8(this.app,!0,1)}; g.Q.cuePlaylist=function(R,F,h,a){this.app.cuePlaylist(R,F,h,a)}; g.Q.nextVideo=function(R,F){this.app.nextVideo(R,F)}; g.Q.KIn=function(){this.nextVideo();P8(this.app,!0,1)}; g.Q.previousVideo=function(R){this.app.previousVideo(R)}; g.Q.FNu=function(){this.previousVideo();P8(this.app,!0,1)}; g.Q.playVideoAt=function(R){this.app.playVideoAt(R)}; g.Q.lQo=function(R){this.playVideoAt(R);P8(this.app,!0,1)}; g.Q.setShuffle=function(R){var F=this.app.getPlaylist();F&&F.setShuffle(R)}; g.Q.setLoop=function(R){var F=this.app.getPlaylist();F&&(F.loop=R)}; g.Q.Vi=function(){var R=this.app.getPlaylist();if(!R)return null;for(var F=[],h=0;h=400)if(R=this.Bc(),this.U.W().X("client_respect_autoplay_switch_button_renderer"))R=!!R.autoplaySwitchButtonRenderer;else{var F,h,a,J;R=!!((F=R.getWatchNextResponse())==null?0:(h=F.contents)==null?0:(a=h.twoColumnWatchNextResults)==null?0:(J=a.autoplay)==null?0:J.autoplay)!==!1}if(R)this.B||(this.B=!0,this.CO(this.B),this.U.W().X("web_player_autonav_toggle_always_listen")||xbn(this), F=this.Bc(),this.cD(F.autonavState),this.U.logVisibility(this.element,this.B));else if(this.B=!1,this.CO(this.B),!this.U.W().X("web_player_autonav_toggle_always_listen"))for(this.U.W().X("web_player_autonav_toggle_always_listen"),F=g.N(this.D),h=F.next();!h.done;h=F.next())this.Ap(h.value)}; g.Q.cD=function(R){HOL(this)?this.isChecked=R!==1:((R=R!==1)||(g.oA(),R=g.pR("web_autonav_allow_off_by_default")&&!g.XB(0,141)&&g.Kp("AUTONAV_OFF_BY_DEFAULT")?!1:!g.XB(0,140)),this.isChecked=R);NEL(this)}; g.Q.onClick=function(){this.isChecked=!this.isChecked;this.U.XH(this.isChecked?2:1);NEL(this);if(HOL(this)){var R=this.Bc().autoplaySwitchButtonRenderer;this.isChecked&&(R==null?0:R.onEnabledCommand)?this.U.WG("innertubeCommand",R.onEnabledCommand):!this.isChecked&&(R==null?0:R.onDisabledCommand)&&this.U.WG("innertubeCommand",R.onDisabledCommand)}this.U.logClick(this.element)}; g.Q.getValue=function(){return this.isChecked}; g.Q.Bc=function(){return this.U.getVideoData(1)};g.A(Lpn,MD);g.A(El,g.Fa);El.prototype.onClick=function(){this.enabled&&(Bg(this,!this.checked),this.publish("select",this.checked))}; El.prototype.getValue=function(){return this.checked}; El.prototype.setEnabled=function(R){(this.enabled=R)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var sl=["en-CA","en","es-MX","fr-CA"];g.A(Az,El);Az.prototype.gA=function(R){R?this.B||(this.mC.SA(this),this.B=!0):this.B&&(this.mC.J4(this),this.B=!1);this.B&&Bg(this,eoT())}; Az.prototype.L=function(){g.vs(this.element,"ytp-menuitem-highlight-transition-enabled")}; Az.prototype.K=function(R){var F=eoT();R!==F&&(F=g.oA(),nn(190,R),nn(192,!0),F.save(),this.U.WG("cinematicSettingsToggleChange",R))}; Az.prototype.Ez=function(){this.B&&this.mC.J4(this);El.prototype.Ez.call(this)};g.A(xQ,MD);xQ.prototype.updateCinematicSettings=function(R){this.B=R;var F;(F=this.menuItem)==null||F.gA(R);this.api.publish("onCinematicSettingsVisibilityChange",R)};g.A(jsi,MD);g.A(ND,MD);ND.prototype.setCreatorEndscreenVisibility=function(R){var F;(F=X7(this.api.LO()))==null||F.CO(R)}; ND.prototype.B=function(R){function F(a){a==="creatorendscreen"&&(a=X7(h.api.LO()))&&a.b_R(h.hideButton)} var h=this;this.hideButton=R;this.events.T(this.api,"modulecreated",F);F("creatorendscreen")};g.A(Hg,El);Hg.prototype.L=function(R){this.K(R?1:0)}; Hg.prototype.D=function(){var R=this.hasDrcAudioTrack(),F=this.B()===1&&R;Bg(this,F);this.setEnabled(R)}; Hg.prototype.Ez=function(){this.mC.J4(this);El.prototype.Ez.call(this)};g.A(LY,MD);LY.prototype.getDrcUserPreference=function(){return this.B}; LY.prototype.setDrcUserPreference=function(R){g.fn("yt-player-drc-pref",R,31536E3);R!==this.B&&(this.B=R,this.updateEnvironmentData(),this.D()&&this.api.FS())}; LY.prototype.updateEnvironmentData=function(){this.api.W().w$=this.B===1}; LY.prototype.D=function(){var R,F,h=(R=this.api.getVideoData())==null?void 0:(F=R.K)==null?void 0:F.B;if(!h)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.X("mta_drc_mutual_exclusion_removal")){var a,J,M=(a=this.api.Kz())==null?void 0:(J=a.jw)==null?void 0:J.id;return dy(h,function(v){var I;return v.audio.B&&((I=v.jw)==null?void 0:I.id)===M})}return dy(h,function(v){var I; return((I=v.audio)==null?void 0:I.B)===!0})};g.A(TH,MD);TH.prototype.onVideoDataChange=function(){var R=this,F=this.api.getVideoData();this.api.NH("embargo",1);var h=F==null?void 0:F.gN.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(h==null?0:h.length)?bOg(this,h.filter(function(a){return ZOT(R,a)})):(F==null?0:F.cueRanges)&&bOg(this,F.cueRanges.filter(function(a){return ZOT(R,a)}))}; TH.prototype.D=function(R){return R.embargo!==void 0}; TH.prototype.Ez=function(){MD.prototype.Ez.call(this);this.B={}};g.A(yi,MD); yi.prototype.addEmbedsConversionTrackingParams=function(R){var F=this.api.W(),h=F.widgetReferrer,a=F.Ho,J=this.B,M="",v=F.getWebPlayerContextConfig();v&&(M=v.embedsIframeOriginParam||"");h.length>0&&(R.embeds_widget_referrer=h);a.length>0&&(R.embeds_referring_euri=a);F.L&&M.length>0&&(R.embeds_referring_origin=M);v&&v.embedsFeature&&(R.feature=v.embedsFeature);J.length>0&&(F.X("embeds_web_enable_lite_experiment_control_arm_logging")?J.unshift(28572):g.gK(g.cy(F))&&J.unshift(159628),F=J.join(","),F= g.db()?F:g.yU(F,4),R.source_ve_path=F);this.B.length=0};g.A(Su7,MD);g.A(OO_,MD);g.A(qD,g.d);qD.prototype.Ez=function(){g.d.prototype.Ez.call(this);this.B=null;this.D&&this.D.disconnect()};g.A(ohI,MD);g.A(fY,g.D);fY.prototype.show=function(){g.D.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; fY.prototype.stopTimer=function(){this.B&&(this.B.dispose(),this.B=null)}; fY.prototype.onVideoDataChange=function(R){var F,h,a=(F=this.api.getVideoData())==null?void 0:(h=F.getPlayerResponse())==null?void 0:h.playabilityStatus;a&&(F=Xlm(a),g.V(this.api.getPlayerStateObject(),128)||R==="dataloaderror"||!F?(this.D=0,this.stopTimer(),this.hide()):(R=(F.remainingTimeSecs||0)*1E3,R>0&&(this.show(),this.updateValue("label",nO(F.label)),nhB(this,R))))}; fY.prototype.Ez=function(){this.stopTimer();g.D.prototype.Ez.call(this)};g.A(uPL,MD);g.A(jo,g.D);jo.prototype.onClick=function(){this.Xo.logClick(this.element);this.Xo.WG("onFullerscreenEduClicked")}; jo.prototype.gA=function(){this.Xo.isFullscreen()?this.B?this.fade.hide():this.fade.show():this.hide();this.Xo.logVisibility(this.element,this.Xo.isFullscreen()&&!this.B)};g.A(ZW,MD);ZW.prototype.updateFullerscreenEduButtonSubtleModeState=function(R){var F;(F=this.B)!=null&&(g.Gi(F.element,"ytp-fullerscreen-edu-button-subtle",R),R&&!F.D&&(F.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),bm(F.Xo,F.element,F),F.D=!0))}; ZW.prototype.updateFullerscreenEduButtonVisibility=function(R){var F;(F=this.B)!=null&&(F.B=R,F.gA())};g.A(db2,g.D);g.A(Kpf,MD);g.A(bD,MD);bD.prototype.getSphericalProperties=function(){var R=g.um(this.api.LO());return R?R.getSphericalProperties():{}}; bD.prototype.setSphericalProperties=function(R){if(R){var F=g.um(this.api.LO());F&&F.setSphericalProperties(R,!0)}};g.A(So,MD);g.Q=So.prototype;g.Q.createClientVe=function(R,F,h,a){this.api.createClientVe(R,F,h,a===void 0?!1:a)}; g.Q.createServerVe=function(R,F,h){this.api.createServerVe(R,F,h===void 0?!1:h)}; g.Q.setTrackingParams=function(R,F){this.api.setTrackingParams(R,F)}; g.Q.logClick=function(R,F){this.api.logClick(R,F)}; g.Q.logVisibility=function(R,F,h){this.api.logVisibility(R,F,h)}; g.Q.hasVe=function(R){return this.api.hasVe(R)}; g.Q.destroyVe=function(R){this.api.destroyVe(R)};var lVm=!1;mr.prototype.setPlaybackRate=function(R){this.playbackRate=Math.max(1,R)}; mr.prototype.getPlaybackRate=function(){return this.playbackRate};uD.prototype.Cg=function(R){var F=g.n7(R.info.B.info,this.MQ.Mt),h=R.info.vG+this.L,a=R.info.startTime*1E3;if(this.policy.Fo)try{a=this.policy.Fo?g.AP(R)*1E3:R.info.startTime*1E3}catch(v){Math.random()>.99&&this.logger&&(a=GJ(R.D).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:R.info.KV(),encodedDataView:g.Tf(a,4)})),a=R.info.startTime*1E3}var J=R.info.clipId,M=this.policy.Fo?g.cHn(R)*1E3:R.info.duration*1E3;this.policy.Fo&&(a<0||M<0)&&(this.logger&&(this.logger({missingSegInfo:R.info.KV(), startTimeMs:a,durationMs:M}),this.policy.QQ||(a<0&&(a=R.info.startTime*1E3),M<0&&(M=R.info.duration*1E3))),this.policy.QQ&&(a<0&&(a=R.info.startTime*1E3),M<0&&(M=R.info.duration*1E3)));return{formatId:F,vG:h,startTimeMs:a,clipId:J,J2:M}}; uD.prototype.Ea=function(R){this.timestampOffset=R};d0.prototype.seek=function(R,F){R!==this.B&&(this.seekCount=0);this.B=R;var h=this.videoTrack.D,a=this.audioTrack.D,J=this.audioTrack.XW,M=wGT(this,this.videoTrack,R,this.videoTrack.XW,F);F=wGT(this,this.audioTrack,this.policy.AT?R:M,J,F);R=Math.max(R,M,F);this.N=!0;this.MQ.isManifestless&&(vnO(this,this.videoTrack,h),vnO(this,this.audioTrack,a));return R}; d0.prototype.isSeeking=function(){return this.N}; d0.prototype.bC=function(R){this.K=R}; var ioO=2/24;var rdL=0;g.Q=Wg.prototype;g.Q.Ns=function(){this.C=this.now();Gbf(this.LV,this.C);this.fO.Ns()}; g.Q.EZ=function(R,F){var h=this.policy.D?(0,g.NU)():0;Rm(this,R,F);R-this.S<10&&this.D>0||this.rZ(R,F);this.fO.EZ(R,F);this.policy.D&&(R=(0,g.NU)()-h,this.Sw+=R,this.nI=Math.max(R,this.nI))}; g.Q.rZ=function(R,F){var h=(R-this.S)/1E3,a=F-this.K;this.w0||(SD(this.LV,h,a),this.PO(h,a));this.S=R;this.K=F}; g.Q.B0=function(){this.Uz&&Yqn(this);this.fO.B0()}; g.Q.dQ=function(R){this.Uz||(this.Uz=this.N-this.gW+R,this.FW=this.N,this.Ho=this.Y)}; g.Q.hN=function(R,F){R=R===void 0?this.Y:R;F=F===void 0?this.N:F;this.D>0||(this.Z=R,this.D=F,this.oR=this.isActive=!0)}; g.Q.VG=function(){return this.OG||2}; g.Q.J$=function(){}; g.Q.Lp=function(){var R,F={rn:this.requestNumber,rt:(this.Y-this.B).toFixed(),lb:this.N,stall:(1E3*this.L).toFixed(),ht:(this.C-this.B).toFixed(),elt:(this.Z-this.B).toFixed(),elb:this.D,d:(R=this.fI)==null?void 0:R.zq()};this.url&&tI_(F,this.url);this.policy.D&&(F.mph=this.nI.toFixed(),F.tph=this.Sw.toFixed());F.ulb=this.Oz;F.ult=this.aR;return F}; g.Q.now=function(){return(0,g.NU)()}; g.Q.deactivate=function(){this.isActive&&(this.isActive=!1)};g.A(hU,Wg);g.Q=hU.prototype;g.Q.Lp=function(){var R=Wg.prototype.Lp.call(this);R.pb=this.EC;R.pt=(1E3*this.uY).toFixed();R.se=this.It;return R}; g.Q.Te=function(){var R=this.fO;this.Fo||(this.Fo=R.Te?R.Te():1);return this.Fo}; g.Q.Zg=function(){return this.P9?this.Te()!==1:!1}; g.Q.N7=function(R,F,h){if(!this.YH){this.YH=!0;if(!this.w0){Rm(this,R,F);this.rZ(R,F);var a=this.Te();this.It=h;if(!this.w0)if(a===2){a=R-this.Z0)||am(this,a,F),this.D>0&&ZU(this.LV,F,this.L));R=(R-this.B)/ 1E3||.01;this.policy.Z&&!(this.D>0)||jD(this.LV,R,this.K,pGT(this),this.Au)}this.deactivate()}}; g.Q.vO=function(R,F,h){h&&(this.Fo=2);R<0&&this.OG&&(R=this.OG);F?this.IR+=R:this.PG+=R}; g.Q.VG=function(){return this.PG||this.IR||Wg.prototype.VG.call(this)}; g.Q.rZ=function(R,F){var h=(R-this.S)/1E3,a=F-this.K,J=this.Te();this.isActive?J===1&&((a>0||this.policy.N)&&(h>.2||a<1024)?(this.L+=h,a>0&&h>.2&&am(this,this.gY?h:.05,a),this.EP=!0):a>0&&(am(this,h,a),this.EP=!0)):F&&F>=this.policy.B&&this.hN(R,F);Wg.prototype.rZ.call(this,R,F)}; g.Q.h6=function(R){if(!this.w0){Rm(this,R,this.N);var F=(R-this.B)/1E3;this.Te()!==2&&this.D>0&&(this.L+=(R-this.S)/1E3,ZU(this.LV,this.K,this.L));jD(this.LV,F,this.K,pGT(this),this.Au,!0);R=(R-this.S)/1E3;SD(this.LV,R,0);this.PO(R,0)}}; g.Q.hN=function(R,F){R=R===void 0?this.Y:R;F=F===void 0?this.N:F;if(!(this.D>0)&&(Wg.prototype.hN.call(this,R,F),this.Te()===1)){F=(this.C-this.B)/1E3;var h=(R-this.C)/1E3;this.P9&&JU(this,this.now());this.iY||this.w0||(this.OG&&(h=Math.max(0,h-this.OG)),R=this.LV,R.Z.TT(1,F),R.fI.TT(1,h))}}; g.Q.U4=function(){this.P9&&JU(this,this.now());return this.NQ}; g.Q.tC=function(){var R;if(R=this.K>this.Ro)R=(R=this.K)?R>=this.policy.B:!1;return R}; g.Q.Cm=function(){return this.T$}; g.Q.QP=function(R){R=R===void 0?this.now():R;if(this.P9){JU(this,R);if(this.Fo?this.Zg():this.KI!==this.Sl){var F=this.Sl;if(R0?h+R:h+Math.max(R,F)}; g.Q.Tg=function(){return this.now()-this.Z}; g.Q.tA=function(){return(this.K-this.D)*1E3/this.Tg()||0}; g.Q.rG=function(){return this.Z};Mr.prototype.feed=function(R){aN(this.B,R);this.Of()}; Mr.prototype.Of=function(){if(this.L){if(!this.B.totalLength)return;var R=this.B.split(this.K-this.D),F=R.SU;R=R.W9;if(!this.fO.dQ(this.L,F,this.D,this.K))return;this.D+=F.totalLength;this.B=R;this.D===this.K&&(this.L=this.K=this.D=void 0)}for(;;){var h=0;R=g.N(AdB(this.B,h));F=R.next().value;h=R.next().value;h=g.N(AdB(this.B,h));R=h.next().value;h=h.next().value;if(F<0||R<0)break;if(!(h+R<=this.B.totalLength)){if(!(this.fO.dQ&&h+1<=this.B.totalLength))break;h=this.B.split(h).W9;this.fO.dQ(F,h,0, R)&&(this.L=F,this.D=h.totalLength,this.K=R,this.B=new hl([]));break}R=this.B.split(h).W9.split(R);h=R.W9;this.fO.gh(F,R.SU);this.B=h}}; Mr.prototype.dispose=function(){this.B=new hl};g.Q=vd.prototype;g.Q.Rq=function(){return 0}; g.Q.Zh=function(){return null}; g.Q.Bi=function(){return null}; g.Q.eN=function(){return this.state>=1}; g.Q.isComplete=function(){return this.state>=3}; g.Q.qC=function(){return this.state===5}; g.Q.onStateChange=function(){}; g.Q.wf=function(R){var F=this.state;this.state=R;this.onStateChange(F);this.callback&&this.callback(this,F)}; g.Q.OH=function(R){R&&this.state=this.xhr.HEADERS_RECEIVED}; g.Q.getResponseHeader=function(R){try{return this.xhr.getResponseHeader(R)}catch(F){return""}}; g.Q.WP=function(){return+this.getResponseHeader("content-length")}; g.Q.fX=function(){return this.D}; g.Q.TJ=function(){return this.status>=200&&this.status<300&&!!this.D}; g.Q.wp=function(){return this.B.totalLength>0}; g.Q.Co=function(){var R=this.B;this.B=new hl;return R}; g.Q.Dc=function(){return this.B}; g.Q.abort=function(){this.RR=!0;this.xhr.abort()}; g.Q.jT=function(){return!0}; g.Q.v8=function(){return this.K}; g.Q.pK=function(){return""};g.Q=LmO.prototype;g.Q.getResponseHeader=function(R){return R==="content-type"?this.B.get("type"):""}; g.Q.abort=function(){}; g.Q.bx=function(){return!0}; g.Q.WP=function(){return this.range.length}; g.Q.fX=function(){return this.loaded}; g.Q.TJ=function(){return!!this.loaded}; g.Q.wp=function(){return!!this.D.totalLength}; g.Q.Co=function(){var R=this.D;this.D=new hl;return R}; g.Q.Dc=function(){return this.D}; g.Q.jT=function(){return!0}; g.Q.v8=function(){return!!this.error}; g.Q.pK=function(){return this.error};g.Q=ydI.prototype;g.Q.start=function(R){var F={credentials:"include",cache:"no-store"};Object.assign(F,this.Y);this.L&&(F.signal=this.L.signal);R=new Request(R,F);fetch(R).then(this.C,this.onError).then(void 0,JY)}; g.Q.onDone=function(){this.RR()||this.fO.B0()}; g.Q.getResponseHeader=function(R){return this.responseHeaders?this.responseHeaders.get(R):null}; g.Q.bx=function(){return!!this.responseHeaders}; g.Q.fX=function(){return this.D}; g.Q.WP=function(){return+this.getResponseHeader("content-length")}; g.Q.TJ=function(){return this.status>=200&&this.status<300&&!!this.D}; g.Q.wp=function(){return!!this.B.totalLength}; g.Q.Co=function(){var R=this.B;this.B=new hl;return R}; g.Q.Dc=function(){return this.B}; g.Q.RR=function(){return this.N}; g.Q.abort=function(){this.K&&this.K.cancel().catch(function(){}); this.L&&this.L.abort();this.N=!0}; g.Q.jT=function(){return!0}; g.Q.v8=function(){return this.S}; g.Q.pK=function(){return this.errorMessage};g.Q=qqi.prototype;g.Q.onDone=function(){if(!this.RR){this.status=this.xhr.status;try{this.response=this.xhr.response,this.D=this.response.byteLength}catch(R){}this.B=!0;this.fO.B0()}}; g.Q.hS=function(){this.xhr.readyState===2&&this.fO.Ns()}; g.Q.YX=function(R){this.RR||(this.status=this.xhr.status,this.B||(this.D=R.loaded),this.fO.EZ((0,g.NU)(),R.loaded))}; g.Q.bx=function(){return this.xhr.readyState>=2}; g.Q.getResponseHeader=function(R){try{return this.xhr.getResponseHeader(R)}catch(F){return g.qN(Error("Could not read XHR header "+R)),""}}; g.Q.WP=function(){return+this.getResponseHeader("content-length")}; g.Q.fX=function(){return this.D}; g.Q.TJ=function(){return this.status>=200&&this.status<300&&this.B&&!!this.D}; g.Q.wp=function(){return this.B&&!!this.response&&!!this.response.byteLength}; g.Q.Co=function(){var R=this.response;this.response=void 0;return new hl([new Uint8Array(R)])}; g.Q.Dc=function(){return new hl([new Uint8Array(this.response)])}; g.Q.abort=function(){this.RR=!0;this.xhr.abort()}; g.Q.jT=function(){return!1}; g.Q.v8=function(){return!1}; g.Q.pK=function(){return""};g.A(Im,g.d);Im.prototype.yc=function(){if(!this.Fk.length)return[];var R=this.Fk;this.Fk=[];this.K=g.pg(R).info;return R}; Im.prototype.Vf=function(){return this.Fk}; Im.prototype.Ez=function(){g.d.prototype.Ez.call(this);this.B=null;this.Fk.length=0;this.Vt.length=0;this.K=null};g.A(wJ,g.d);g.Q=wJ.prototype; g.Q.Ljl=function(){if(!this.RR()){var R=(0,g.NU)(),F=!1;if(this.policy.C$){R=R-(this.timing.D>0?this.timing.Z:this.timing.B)-this.timing.VG()*1E3;var h=oo(EM(this),!1);R>=2E3*h?F=!0:R>=this.policy.tF*h&&(this.B=this.policy.zN)}else if(this.timing.D>0){if(this.N){this.policy.FW&&(this.B=0);return}var a=this.timing.Cm();this.timing.QP();var J=this.timing.Cm();J-a>=this.policy.Ig*.8?(this.B++,this.logger.debug(function(){return"Mispredicted by "+(J-a).toFixed(0)}),F=this.B>=5):this.B=0}else{var M=R- this.timing.U4(); this.policy.zN&&M>0&&(this.B+=1);F=oo(EM(this),!1)*this.policy.y9;(F=M>F*1E3)&&this.logger.debug(function(){return"Elbow late by "+M.toFixed(3)})}this.B>0&&this.fO.Dg(); F?this.eT():this.D.start()}}; g.Q.eT=function(){this.L=!0;this.fO.Pw();this.lastError="net.timeout";rJ(this)}; g.Q.canRetry=function(R){var F=EM(this);R=R?this.policy.KQ:this.policy.FO;return F.timedOut0&&(F=IN(F.B,0),R.ubyte=F,h===1&&F===0&&(R.b248180278=!0))}this.Xt&&(R.rc=this.policy.xY?this.Xt:this.Xt.toString());this.policy.Ma&&this.B6&&(R.tr=this.B6);R.itag=this.info.Vt[0].B.info.itag;R.ml=""+ +this.info.Vt[0].B.sG();R.sq=""+this.info.Vt[0].vG;this.G0&&(R.ifi=""+ +td(this.info.UP.D));this.Xt!==410&&this.Xt!==500&&this.Xt!==503||(R.fmt_unav="true");var a;(h=this.errorMessage||((a=this.xhr)==null?void 0: a.pK()))&&(R.msg=h);this.nU&&(R.smb="1");this.info.isDecorated()&&(R.sdai="1");return R}; g.Q.xI=function(){return kEf(this.timing)}; g.Q.pK=function(){return this.xhr.pK()||""}; g.Q.tC=function(){return this.isComplete()||this.timing.tC()}; g.Q.EZ=function(){!this.RR()&&this.xhr&&(this.Xt=this.xhr.status,this.policy.Ds&&this.fK&&this.A5(!1),this.Xc()?this.OH(2):!this.Wi&&this.tC()&&(this.OH(),this.Wi=!0))}; g.Q.Ns=function(){if(!this.RR()&&this.xhr){if(!this.VA&&this.xhr.bx()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var R=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.VA=((0,g.NU)()-R)/1E3}this.xhr.bx()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.RM&&!FQI()&&g.fn("yt-player-headers-readable",!0,2592E3);R=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var F=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),h;(h=this.L9)==null||h.stop();this.nY=R||this.nY; this.sU=F||this.sU}}; g.Q.B0=function(){var R=this.xhr;if(!this.RR()&&R){this.Xt=R.status;R=this.m0(R);if(this.policy.Ma){var F;(F=this.L9)==null||F.stop()}R===5?rJ(this.Oi):this.wf(R);this.Oi.D.stop()}}; g.Q.m0=function(R){var F=this;IQT(this);if(Y4(this.Oi,this.xhr.status,this.GE?this.timing.oR||this.SL:this.xhr.TJ(),!1,this.Zb))return 5;var h="";sM(this.Oi,this.xhr)&&(h=Oog(this.Oi,this.xhr));if(h)return mA(EM(this.Oi)),this.info.Ru(this.G0,h),3;h=R.fX();if(this.H9){this.A5(!0);IQT(this);if(Y4(this.Oi,this.xhr.status,this.timing.oR||this.SL,!1,this.Zb))return 5;if(!this.RI){if(this.SL)return mA(EM(this.Oi)),3;this.Oi.lastError="net.closed";return 5}}else{if(Y4(this.Oi,this.xhr.status,this.xhr.TJ(), !1,this.Zb))return 5;var a=this.info.K;if(a&&a!==h||R.v8())return this.Oi.lastError="net.closed",5;this.A5(!0)}a=xR2(this)?R.getResponseHeader("X-Bandwidth-Est"):0;if(R=xR2(this)?R.getResponseHeader("X-Bandwidth-Est3"):0)this.ph=!0,this.policy.El&&(a=R);boi(this.Oi,h,a?Number(a):0,this.info.Vt[0].type===5);this.logger.debug(function(){var J=F.timing;return"Succeeded, rtpd="+(J.uY*1E3+J.B-Date.now()).toFixed(0)}); return 4}; g.Q.canRetry=function(){this.RR();var R=this.info.isDecorated();return this.Oi.canRetry(R)}; g.Q.onStateChange=function(){this.isComplete()&&(this.policy.Ye?this.Pw():this.timing.deactivate())}; g.Q.eT=function(){this.Oi.eT()}; g.Q.Dg=function(){this.callback&&this.callback(this,this.state)}; g.Q.Mh=function(){return this.Oi.Mh()}; g.Q.dispose=function(){vd.prototype.dispose.call(this);this.Oi.dispose();var R;(R=this.L9)==null||R.dispose();this.policy.Ye||this.Pw()}; g.Q.Pw=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.Q.yc=function(){if(!this.Vf().length)return[];this.LW=!0;return this.fK.yc()}; g.Q.Xc=function(){if(this.state<1)return!1;if(this.fK&&this.fK.Fk.length)return!0;var R;return((R=this.xhr)==null?0:R.wp())?!0:!1}; g.Q.Vf=function(){this.A5(!1);return this.fK?this.fK.Vf():[]}; g.Q.A5=function(R){try{if(R||this.xhr.bx()&&this.xhr.wp()&&!sM(this.Oi,this.xhr)&&!this.wh)this.fK||(this.fK=new Im(this.policy,this.info.Vt)),this.xhr.wp()&&(this.H9?this.H9.feed(this.xhr.Co()):iv(this.fK,this.xhr.Co(),R&&!this.xhr.wp()))}catch(F){this.H9?vEi(this,F):g.qN(F)}}; g.Q.gh=function(R,F){switch(R){case 21:R=F.split(1).W9;gEm(this,R);break;case 22:this.RI=!0;iv(this.fK,new hl([]),!0);break;case 43:if(R=Ns(new pU(F),1))this.info.Ru(this.G0,R),this.SL=!0;break;case 45:F=wV(new pU(F));R=F.rV;F=F.Sn;R&&F&&(this.yp=R/F);break;case 44:this.BU=Pz2(new pU(F));var h,a,J;!this.timing.oR&&((h=this.BU)==null?void 0:h.action)===4&&((a=this.BU)==null?0:(J=a.Ce)==null?0:J.GE)&&(this.GE=this.BU.Ce.GE);break;case 53:this.policy.Ma&&(R=n07(new pU(F)).LP)&&(this.L9||(this.LP=R,this.L9= new g.DY(this.n0,R,this)),this.L9.start());break;case 60:this.pF=iM(new pU(F));break;case 58:if(R=pWO(new pU(F)))this.tO=R,R.tO===3&&(this.Zb=!0)}}; g.Q.dQ=function(R,F,h,a){h||this.timing.dQ(a);if(R!==21)return!1;if(R=this.policy.Ds)if(R*=this.info.Vt[0].B.info.CI,F.totalLength+h!==a&&F.totalLength0)return!1;if(!this.xhr.bx())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.H9)var R=!this.info.K;else this.xhr.WP()?R=!1:(R=this.xhr.getResponseHeader("content-type"),R=R==="audio/mp4"||R==="video/mp4"||R==="video/webm");if(!R)return!1;if(isNaN(this.info.GV)){R=this.xhr.getResponseHeader("x-head-seqnum");var F=this.timing.policy.Y?1:0;if(!R)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(R)>this.info.Vt[0].vG+F)return!1}return!0}; g.Q.F0=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.Q.Zh=function(){this.xhr&&(this.nY=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.nY}; g.Q.Bi=function(){this.xhr&&(this.sU=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.sU}; g.Q.JG=function(){return this.Oi.JG()}; g.Q.n0=function(){if(!this.RR()&&this.xhr){this.B6="heartbeat";var R=this.Oi;R.B+=2;this.Dg()}};g.A(Hd,Wg);g.Q=Hd.prototype;g.Q.rZ=function(R,F){var h=(R-this.S)/1E3,a=F-this.K;this.D>0?a>0&&(this.KI&&(h>.2||a<1024?(this.L+=h,h>.2&&i$2(this,.05,a)):i$2(this,h,a)),this.Sl&&(this.NQ+=a,this.PG+=h)):F>this.policy.B&&this.hN(R,F);Wg.prototype.rZ.call(this,R,F)}; g.Q.N7=function(R,F){Rm(this,R,F);this.rZ(R,F);this.KI&&(F=this.K*this.snapshot.stall+this.K/this.snapshot.byterate,this.D>0&&ZU(this.LV,this.NQ,this.L),R=(R-this.B)/1E3||.01,this.policy.Z&&!(this.D>0)||jD(this.LV,R,this.K,F,!1))}; g.Q.h6=function(R){Rm(this,R,this.N);var F=(R-this.S)/1E3;SD(this.LV,F,0);this.PO(F,0);!this.KI&&this.D>0||(F=this.K*this.snapshot.stall+this.K/this.snapshot.byterate,this.D>0&&(this.L+=(R-this.S)/1E3,ZU(this.LV,this.NQ,this.L)),jD(this.LV,((R-this.B)/1E3||.01)*this.policy.oR,this.K,F,!1,!0))}; g.Q.yf=function(R){R=R.Qy||2147483647;(R&2)!==2&&(this.Sl=!1);(R&1)===1&&(this.KI=!0)}; g.Q.Xv=function(R){R=R.Qy||2147483647;(R&2)===2&&(this.Sl=!1);(R&1)===1&&(this.KI=!1)}; g.Q.rG=function(){return this.Z}; g.Q.Tg=function(){var R=this.Sl?this.now()-this.S:0;return Math.max(this.PG*1E3+R,1)}; g.Q.tA=function(){return this.NQ*1E3/this.Tg()}; g.Q.hN=function(R,F){R=R===void 0?this.Y:R;F=F===void 0?this.N:F;this.D>0||(Wg.prototype.hN.call(this,R,F),F=this.LV,R=(R-this.C)/1E3,F.Z.TT(1,(this.C-this.B)/1E3),F.fI.TT(1,R))}; g.Q.J$=function(R){this.IR=R}; g.Q.Lp=function(){var R=Wg.prototype.Lp.call(this);R.rbw=this.tA();R.rbe=+this.Sl;R.gbe=+this.KI;R.ackt=(this.IR-this.B).toFixed();return R}; g.Q.QP=function(){}; g.Q.Cm=function(){return NaN}; g.Q.U4=function(){return this.B+this.snapshot.delay*1E3};L2.prototype.gh=function(R,F){switch(R){case 20:R=new pU(F);R={ze:$o(R,1),videoId:Ns(R,2),itag:$o(R,3),lmt:$o(R,4),xtags:Ns(R,5),oL:$o(R,6),jX:Al(R,8),DH:$o(R,9),IHb:$o(R,10),startMs:$o(R,11),durationMs:$o(R,12),vn:$o(R,14),timeRange:HD(R,15,Wxi),jK:$o(R,16),X5:$o(R,17),clipId:Ns(R,1E3)};this.zW(R);break;case 21:this.Q5(F,!1);break;case 22:this.UX(F);break;case 31:R=yQ(F,ZIi);this.sR(R);break;case 52:R=yQ(F,utL);this.XD(R);break;default:this.TW(R,F)}}; L2.prototype.zW=function(){}; L2.prototype.TW=function(){};g.A(Tv,L2);g.Q=Tv.prototype; g.Q.TW=function(R,F){switch(R){case 35:this.AO(F);break;case 44:this.J8(F);break;case 43:this.Kc(F);break;case 53:this.Du(F);break;case 55:R=new pU(F);HD(R,1,Keg);HD(R,2,DeI);break;case 56:this.YR();break;case 57:this.N_(F);break;case 42:this.y5(F);break;case 45:this.r5(F);break;case 59:this.wm(F);break;case 51:this.IY(F);break;case 49:this.yf(F);break;case 50:this.Xv(F);break;case 47:this.T1(F);break;case 58:this.Rh(F);break;case 61:this.fO.zn.J$((0,g.NU)());break;case 66:this.D0(F);break;case 46:this.Py(F); break;case 67:this.onSnackbarMessage(F)}}; g.Q.IY=function(R){R=new pU(R);R={yFG:TJ(R,1,GE),ZGG:TJ(R,2,GE)};this.fO.IY(R)}; g.Q.wm=function(R){var F=new pU(R);R=LU(F,1);var h=LU(F,2);F=LU(F,3);this.fO.wm(R,h,F)}; g.Q.r5=function(R){R=wV(new pU(R));this.fO.r5(R)}; g.Q.T1=function(R){R=yQ(R,OIn);this.fO.T1(R)}; g.Q.y5=function(R){R=new pU(R);R={videoId:Ns(R,1),formatId:HD(R,2,GE),endTimeMs:$o(R,3),Cco:$o(R,4),mimeType:Ns(R,5),EE:HD(R,6,LeB),indexRange:HD(R,7,LeB),fT:HD(R,8,Ta7)};this.fO.y5(R)}; g.Q.N_=function(R){R=DeI(new pU(R));this.fO.N_(R)}; g.Q.YR=function(){this.fO.YR()}; g.Q.AO=function(R){R=bIB(new pU(R));this.fO.AO(R)}; g.Q.Du=function(R){R=n07(new pU(R));this.fO.Du(R)}; g.Q.J8=function(R){R=Pz2(new pU(R));this.fO.J8(R)}; g.Q.Kc=function(R){R={redirectUrl:Ns(new pU(R),1)};this.fO.Kc(R)}; g.Q.Q5=function(R){var F=IN(R,0);if(R.totalLength!==1){R=R.split(1).W9;var h=this.D[F]||null;h&&Sh(this.fO.z2,F,h,R)}}; g.Q.UX=function(R){R=IN(R,0);var F=this.D[R]||null;F&&this.fO.UX(R,F)}; g.Q.XD=function(R){this.fO.XD(R)}; g.Q.zW=function(R){var F=R.ze,h=R.jX,a=R.oL,J=R.X5,M=R.jK,v=R.DH,I=R.startMs,w=R.durationMs,E=R.timeRange,B=R.vn,r=R.clipId,Y=z4(R);R=PXv.has(f7[""+R.itag]);this.D[F]=Y;this.fO.vO(Y,R,{ze:F,jX:!!h,oL:a!=null?a:-1,DH:v!=null?v:-1,startMs:I!=null?I:-1,durationMs:w!=null?w:-1,vn:B,X5:J,jK:M,clipId:r,timeRange:E})}; g.Q.yf=function(R){R={Qy:$o(new pU(R),1)};this.fO.yf(R)}; g.Q.Xv=function(R){R={Qy:$o(new pU(R),1)};this.fO.Xv(R)}; g.Q.sR=function(R){this.fO.sR(R)}; g.Q.Rh=function(R){R=pWO(new pU(R));this.fO.Rh(R)}; g.Q.D0=function(R){R={k5:HD(new pU(R),1,XWn)};this.fO.D0(R)}; g.Q.onSnackbarMessage=function(R){R=$o(new pU(R),1);this.fO.onSnackbarMessage(R)}; g.Q.Py=function(R){R=new pU(R);R={reloadPlaybackParams:HD(R,1,sIO),bD:Al(R,2)};this.fO.Py(R)};g.A(yv,g.d);g.Q=yv.prototype;g.Q.cA=function(){return Array.from(this.Pe.keys())}; g.Q.MS=function(R){R=this.Pe.get(R);var F=R.Fk;R.ZT+=F.totalLength;R.Fk=new hl;return F}; g.Q.VV=function(R){return this.Pe.get(R).VV}; g.Q.Pg=function(R){return this.Pe.get(R).Pg}; g.Q.vO=function(R,F,h,a){this.Pe.get(R)||Yff(this,R,F);F=this.Pe.get(R);if(this.MQ){R=p$B(this,R,h);if(a)for(var J=g.N(R),M=J.next();!M.done;M=J.next()){M=M.value;var v=a;M.aR=v;M.startTime+=v;M.L+=v;M.S+=v}soI(this,h.ze,F,R)}else h.jX?F.D6=h.vn:F.Kx.push(h),F.cI.push(h)}; g.Q.W0=function(R){var F;return((F=this.Pe.get(R))==null?void 0:F.Vt)||[]}; g.Q.OH=function(){for(var R=g.N(this.Pe.values()),F=R.next();!F.done;F=R.next())F=F.value,F.Io&&(F.YX&&F.YX(),F.Io=!1)}; g.Q.UX=function(R,F){this.logger.debug(function(){return"[onMediaEnd] formatId: "+F}); var h=this.Pe.get(F);qr?h&&!h.VV&&(h.g4.get(R)?h.g4.get(R).JC=!0:h.g4.set(R,{data:new hl,ZA:0,JC:!0}),h.Pg=!0):h&&!h.Pg&&(h.Pg=!0)}; g.Q.yc=function(R){if(qr){var F=this.Pe.get(R);if(F)for(var h=g.N(F.g4),a=h.next();!a.done;a=h.next()){var J=g.N(a.value);a=J.next().value;J=J.next().value;var M=F.HQ.get(a);if(C$(M[0])){if(!J.JC)continue;var v=J.data,I=0,w=[];M=g.N(M);for(var E=M.next();!E.done;E=M.next()){E=E.value;var B=E.K,r=Jl(v,I,B);I+=B;w.push(new kb(E,r))}F.Er.push.apply(F.Er,g.S(w))}else if(J.data.totalLength>0||!M[0].range&&J.JC)v=void 0,I=M[0],w=J.ZA,M=J.data,I.range||(v=J.JC),v=new kb(La7(I,I.D+w,M.totalLength,v),M),J.ZA+= v.info.K,F.Er.push(v);F.g4.get(a).data=new hl;J.JC&&F.g4.delete(a)}R=this.Pe.get(R);if(!R)return[];F=R.Er;R.Er=[];h=g.N(F);for(a=h.next();!a.done;a=h.next())R.ZT+=a.value.info.K;return F||[]}h=(F=this.Pe.get(R))==null?void 0:F.fK;if(!h)return[];this.A5(R,h);return h.yc()}; g.Q.Xc=function(R){if(qr)return bv(this,R);var F,h,a;return!!((h=(F=this.Pe.get(R))==null?void 0:F.fK)==null?0:(a=h.Vf())==null?0:a.length)||bv(this,R)}; g.Q.A5=function(R,F){for(;bv(this,R);){var h=this.MS(R);var a=R;a=this.Pe.get(a).VV&&!Z8(this,a);iv(F,h,a&&rDi(this,R))}}; g.Q.Ez=function(){g.d.prototype.Ez.call(this);for(var R=g.N(this.Pe.keys()),F=R.next();!F.done;F=R.next())f2(this,F.value);var h;if((h=this.uq)==null?0:h.B1)for(R=g.N(this.Pe.values()),F=R.next();!F.done;F=R.next())F=F.value,F.g4.clear(),F.HQ.clear(),F.Er.length=0,F.Vt.length=0,F.cI.length=0,F.Kx.length=0;this.Pe.clear()}; var qr=!1;g.A(OM,g.d);g.Q=OM.prototype;g.Q.EZ=function(){!this.RR()&&this.xhr&&(this.A5(!1),U6(this.fO,this))}; g.Q.Ns=function(){}; g.Q.B0=function(){if(!this.RR()&&this.xhr){var R=this.m0();R===5?rJ(this.Oi):this.wf(R);this.Oi.D.stop();var F;(F=this.vQ)==null||F.stop()}}; g.Q.m0=function(){var R="";sM(this.Oi,this.xhr)&&(R=Oog(this.Oi,this.xhr));if(R)return this.info.UP.Ru(this.G0,R),3;this.A5(!0);if(Y4(this.Oi,this.xhr.status,this.xhr.TJ(),this.info.b7(),this.Zb))return 5;if(this.uW)return 3;boi(this.Oi,this.xhr.fX(),0,this.b7());this.policy.Ho&&sVi(this.fO);return 4}; g.Q.A5=function(R){var F=this.xhr;if((R||!sM(this.Oi,this.xhr))&&F.wp()){R=F.Co();var h=R.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+h}); this.H9.feed(R)}}; g.Q.gh=function(R,F){this.xhr.jT()&&R===21&&xGn(this);this.Bs.gh(R,F)}; g.Q.dQ=function(R,F,h,a){h||(this.zn.dQ(a),this.policy.Wg&&R===21&&xGn(this));if(R!==21)return!1;this.zn.oR=!0;R=F.totalLength;h||(this.JD=IN(F,0),F=F.split(1).W9);var J=this.policy.eR,M=this.Bs.D[this.JD],v=this.MQ.K.get(M);if(J&&v&&(J*=v.info.CI,R+h!==a&&R0){this.policy.C$&&this.Oi.D.stop();R=this.zn.Tg();F=this.zn.tA();var h=N$m(this,R);if(!(F>h.fZ||h.s$>0&&this.info.qe()>h.s$)){this.Cc=(0,g.NU)();var a;(a=this.vQ)==null||a.stop();this.policy.Ho&&(a=this.fO,R={VM:Math.round(F*R/1E3),DT:R},a.policy.Ho&&(a.fI=R,a.kT++));this.eT()}}}}; g.Q.eT=function(){this.Oi.eT()}; g.Q.J8=function(R){this.fO.J8(R,this.Sy())}; g.Q.Kc=function(R){this.uW=!0;this.info.UP.Ru(this.G0,R.redirectUrl)}; g.Q.yf=function(R){this.zn instanceof Hd&&this.zn.yf(R)}; g.Q.Xv=function(R){this.zn instanceof Hd&&this.zn.Xv(R)}; g.Q.y5=function(R){var F=R.formatId,h=z4({itag:F.itag,lmt:F.lmt,xtags:F.xtags}),a,J,M=new tD(((a=R.EE)==null?void 0:a.first)||0,((J=R.EE)==null?void 0:J.cH)||0),v,I;a=new tD(((v=R.indexRange)==null?void 0:v.first)||0,((I=R.indexRange)==null?void 0:I.cH)||0);this.MQ.K.get(h)||(h=R.fT||{},h.mimeType=R.mimeType,h.itag=F.itag,h.lastModified=""+(F.lmt||0),h.xtags=F.xtags,R=this.MQ,F=nL(""),h=Xv(h,null),ZL(R,new yF(F,h,M,a)))}; g.Q.r5=function(R){this.fO.r5(R,this.Sy())}; g.Q.onSnackbarMessage=function(R){if(this.policy.y$)this.fO.onSnackbarMessage(R)}; g.Q.sR=function(R){this.Tf=R;this.wC=(0,g.NU)();this.fO.sR(R)}; g.Q.wm=function(R,F,h){this.fO.wm(R,F,h)}; g.Q.N_=function(R){R.scope===2&&(this.Aw=R);this.fO.N_(R)}; g.Q.YR=function(){this.qU=!0;this.fO.YR()}; g.Q.IY=function(R){this.policy.pP&&this.fO.IY(R)}; g.Q.T1=function(R){this.fO.T1(R,this.Sy())}; g.Q.Rh=function(R){R.tO===3&&(this.Zb=!0);this.fO.Rh(R)}; g.Q.D0=function(R){this.fO.D0(R)}; g.Q.Py=function(R){this.fO.Py(R)}; g.Q.canRetry=function(){this.RR();return this.Oi.canRetry(!1)}; g.Q.dispose=function(){if(!this.RR()){g.d.prototype.dispose.call(this);this.Oi.dispose();var R;(R=this.vQ)==null||R.dispose();this.wf(-1);this.Pw()}}; g.Q.wf=function(R){this.state=R;U6(this.fO,this)}; g.Q.b7=function(){return this.info.b7()}; g.Q.oC=function(){return this.qU}; g.Q.Z4=function(){return this.Aw}; g.Q.vO=function(R,F,h){h.clipId&&(this.clipId=h.clipId);this.policy.D&&!F&&(this.IH=h.DH);this.z2.vO(R,F,h,0);if(this.policy.n$&&this.Tf&&this.zn instanceof hU){var a=this.Tf.sy;this.zn.vO(h.durationMs/1E3,F,a>0&&h.DH+1>=a)}this.z2.Pe.get(R).xW=!0}; g.Q.UX=function(R,F){this.z2.UX(R,F)}; g.Q.XD=function(R){this.requestIdentifier=R}; g.Q.yc=function(R){return this.z2.yc(R)}; g.Q.W0=function(R){return this.z2.W0(R)}; g.Q.Xc=function(R){return this.z2.Xc(R)}; g.Q.cA=function(){return this.z2.cA()}; g.Q.Te=function(){return 1}; g.Q.Sy=function(){return this.zn.requestNumber}; g.Q.bH=function(){return this.requestIdentifier}; g.Q.hT=function(){return this.G0.hT()}; g.Q.vr=function(){this.Pw()}; g.Q.Pw=function(){this.zn.deactivate();var R;(R=this.xhr)==null||R.abort()}; g.Q.isComplete=function(){return this.state>=3}; g.Q.Sr=function(){return this.state===3}; g.Q.qC=function(){return this.state===5}; g.Q.vH=function(){return this.state===4}; g.Q.Vk=function(){return this.isComplete()}; g.Q.eN=function(){return this.state>=1}; g.Q.Mh=function(){return this.policy.FW?this.Oi.Mh():0}; g.Q.Dg=function(){this.policy.FW&&U6(this.fO,this)}; g.Q.s4=function(){return dM_(this.info)}; g.Q.JG=function(){return this.Oi.JG()}; g.Q.IZ=function(){var R=mRL(this.Oi);Object.assign(R,zFf(this.info));R.req="sabr";R.rn=this.Sy();var F;if((F=this.xhr)==null?0:F.status)R.rc=this.policy.xY?this.xhr.status:this.xhr.status.toString();var h;(F=(h=this.xhr)==null?void 0:h.pK())&&(R.msg=F);this.Cc&&(h=N$m(this,this.Cc-this.zn.rG()),R.letm=h.Rr,R.mrbps=h.fZ,R.mram=h.s$);return R};H$i.prototype.tick=function(R,F){this.ticks[R]=F?window.performance.timing.navigationStart+F:(0,g.NU)()};g.A(om,g.h0);g.Q=om.prototype; g.Q.ZB=function(R,F,h,a){if(this.policy.Qj&&this.policy.D){var J=R.vJ||null;J?(nEm(this,R.vG,dJ(this,R.startTime,R.vG),{vJ:J,vG:R.vG,Iy:!!F,In:h},this.K),a&&this.K&&this.K.cO(R.vG,R.startTime,this.D,(F==null?void 0:F.B)||[],(F==null?void 0:F.D)||[],(F==null?void 0:F.L)||[],h,(F==null?void 0:F.YP)||0,(F==null?void 0:F.K)||void 0)):this.D===1&&eh(this,5,"noad")}else{var M=!1;this.policy.D&&(M=h?this.Uz===R.vG:this.KI===R.vG);if(this.K&&a&&!M){a=[];M=[];var v=[],I=void 0,w=0;F&&(a=F.B,M=F.D,v=F.L,I= F.K,w=F.YP,this.dA("sdai",{sq:R.vG,ssvicpns:a.join("."),ssvid:M.join(".")}));this.policy.D&&(h?this.Uz=R.vG:this.KI=R.vG);this.K.cO(R.vG,R.startTime,this.D,a,M,v,h,w,I)}this.policy.D?h&&(this.D===1&&eh(this,5,"noad"),R.vG!==((J=this.B)==null?void 0:J.vG)&&(oEf(this,R,F,h),isNaN(R.startTime)||X$L(this,R.vG,dJ(this,R.startTime,R.vG),!!F,this.K))):h&&oEf(this,R,F)}}; g.Q.CC=function(R,F,h){var a=this.videoTrack.B.index.Ff()<=F;this.B={vJ:R,vG:F,Iy:h};a&&XS(this,R,F)}; g.Q.Rl=function(){this.K&&this.K.Rl()}; g.Q.dA=function(R,F,h){(R!=="sdai"||this.policy.Nz||(h===void 0?0:h))&&this.loader.dA(R,F)}; g.Q.IQ=function(R,F){var h=this.videoTrack.B.index.L2(R);if(h>=0){var a;var J=((a=F.Z1.qO(h,2))==null?void 0:a.Db)||"";if(this.policy.D||J)return F.JO(R,h),n2(this.loader,R,R,h),this.dA("sdai",{cmskpad:1,t:R.toFixed(3),sq:h}),!0}this.dA("sdai",{cmskpad:0,t:R.toFixed(3),sq:h});return!1};g.Q=zCm.prototype;g.Q.NS=function(R,F,h){R=R||this.B;if(this.D.has(R)){if(R=this.D.get(R))R.Pp=F,R.hZ.push(h)}else F={Pp:F,hZ:[],startTimeSecs:0,Rz:0},F.hZ.push(h),this.D.set(R,F)}; g.Q.Wx=function(R,F){R!==void 0&&this.sI(R);if(this.B&&(R=this.D.get(this.B),R!=null&&R.Pp)){var h={Tv:R.hZ,yy:Ac(R.Pp||"")||void 0,cuepointId:this.B};R.uU&&(h.E1=R.uU);F&&(h.bU=SW(F.split(";")[0]),h.I6=F.split(";")[1]||"");return h}}; g.Q.JO=function(R,F){this.sI(R);var h=this.D.get(this.B);h?(this.dA("ssskipad",{cid:this.B,sn:F,mt:R.toFixed(3)}),h.uU=F):this.dA("ssskipadfail",{cid:this.B,sn:F,mt:R.toFixed(3)})}; g.Q.Mr=function(){for(var R=g.N(this.D.values()),F=R.next();!F.done;F=R.next())F.value.uU=NaN}; g.Q.sI=function(R,F){F&&(this.K=F);if(this.B&&(F=this.D.get(this.B))&&F.startTimeSecs<=R&&R<=F.startTimeSecs+F.Rz)return;this.B="";F=g.N(this.D.entries());for(var h=F.next();!h.done;h=F.next()){var a=g.N(h.value);h=a.next().value;a=a.next().value;var J=void 0,M=void 0,v=void 0;if(((J=a)==null?void 0:J.startTimeSecs)<=R&&R<=((M=a)==null?void 0:M.startTimeSecs)+((v=a)==null?void 0:v.Rz)){this.B=h;break}}};g.A(tU,g.d);tU.prototype.Ua=function(R,F,h){h=h===void 0?{}:h;this.policy.Ae=WI(R,h,this.L,F===void 0?!1:F)};C2.prototype.t6=function(R){var F=this;if(this.policy.TX){var h=new Set(R);h.size===this.fI.size&&[].concat(g.S(h)).every(function(a){return F.fI.has(a)})||(this.loader.dA("lwnmow",{itagDenylist:[].concat(g.S(R)).join(",")}),this.loader.j3(!!h.size),this.C=-1,this.fI=h,cd(this,this.B),this.NQ=!0)}}; C2.prototype.Ua=function(R,F,h){h=h===void 0?{}:h;var a=this.policy.Ae;this.N.Ua(R,F===void 0?!1:F,h);if(a!==this.policy.Ae){cd(this,this.B);Wd(this);var J,M;a>this.policy.Ae&&((J=this.K)==null?0:OS(J.info))&&((M=this.nextVideo)==null||!OS(M.info))&&(this.oR=!0)}};ar.prototype.Ea=function(R){this.timestampOffset=R;this.flush()}; ar.prototype.flush=function(){if(this.B.pos>0){var R={a:this.track.rk(),u:this.B.zq(),pd:Math.round(this.L),ad:Math.round(this.K)},F=this.D;if(F){var h=F.B.info;R.itag=h.itag;h.B&&(R.xtags=h.B);R.sq=F.vG;R.st=F.startTime;R.sd=F.duration;this.track.policy.gN&&(R.si=F.KV());F.N&&(R.esl=F.D+F.K);F.k7()&&(R.eos=1)}isNaN(this.timestampOffset)||(R.to=this.timestampOffset);var a;if(F=(a=this.track.XW)==null?void 0:a.nO({})){for(var J in F)this.S[J]!==F[J]&&(R["sb_"+J]=F[J]);this.S=F}this.track.dA("sbu", R);this.B.reset();this.buffered=[];this.N=this.K=this.L=0;this.timestampOffset=this.D=void 0}};MY.prototype.dispose=function(){this.aR=!0}; MY.prototype.RR=function(){return this.aR}; g.A(wt,Error);rt.prototype.skip=function(R){this.offset+=R}; rt.prototype.Gd=function(){return this.offset};g.Q=q3i.prototype;g.Q.GP=function(){return this.D}; g.Q.S6=function(){return this.D.length?this.D[this.D.length-1]:null}; g.Q.M2=function(){this.D=[];QA(this);p8(this)}; g.Q.MS=function(R){this.PG=this.D.shift().info;R.info.equals(this.PG)}; g.Q.W0=function(){return g.p1(this.D,function(R){return R.info})}; g.Q.rk=function(){return!!this.N.info.audio}; g.Q.isDrm=function(){return!!this.N.info.qH}; g.Q.getDuration=function(){return this.N.index.Nj()};g.A(Pg,vd);g.Q=Pg.prototype;g.Q.onStateChange=function(){this.RR()&&(jh(this.z2,this.formatId),this.B.dispose())}; g.Q.IZ=function(){var R=B$7(this.z2,this.formatId),F;var h=((F=this.z2.Pe.get(this.formatId))==null?void 0:F.bytesReceived)||0;var a;F=((a=this.z2.Pe.get(this.formatId))==null?void 0:a.ZT)||0;return{expected:R,received:h,bytesShifted:F,sliceLength:Z8(this.z2,this.formatId),isAnyMediaEndReceived:this.z2.Pg(this.formatId)}}; g.Q.xI=function(){return 0}; g.Q.tC=function(){return!0}; g.Q.yc=function(){return this.z2.yc(this.formatId)}; g.Q.Vf=function(){return[]}; g.Q.Xc=function(){return this.z2.Xc(this.formatId)}; g.Q.JG=function(){return this.lastError}; g.Q.Mh=function(){return 0};g.A(NY,g.d);g.Q=NY.prototype;g.Q.rk=function(){return!!this.B.info.audio}; g.Q.S6=function(){return this.L.S6()}; g.Q.MS=function(R){this.L.MS(R);var F;(F=this.Z)!=null&&(F.N.add(R.info.vG),F.B=Rxn(F,F.D1,F.kY,R,F.B),F.K=R,F.S=(0,g.NU)());this.CI=Math.max(this.CI,R.info.B.info.CI||0)}; g.Q.getDuration=function(){return this.B.index.Nj()}; g.Q.M2=function(){KY(this);this.L.M2()}; g.Q.Yh=function(){return this.L}; g.Q.isRequestPending=function(R){return this.K.length?R===this.K[this.K.length-1].info.Vt[0].vG:!1}; g.Q.Ea=function(R){var F;(F=this.Z)==null||F.Ea(R);var h;(h=this.C)==null||h.Ea(R)}; g.Q.dA=function(R,F){this.loader.dA(R,F)}; g.Q.rY=function(){return this.loader.rY()}; g.Q.dispose=function(){var R;(R=this.C)==null||R.flush();g.d.prototype.dispose.call(this)};g.A(tn,g.d);tn.prototype.K=function(){this.D++>15||(this.B=!this.B,new py_(this.loader,this.policy,this.LV,this.UP,this.B),this.delay.start())}; g.Q=py_.prototype;g.Q.Ns=function(){}; g.Q.EZ=function(){}; g.Q.B0=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.fX()===this.size)this.loader.dA("rqs",this.getInfo());else{var R="net.connect";this.xhr.status>200?R="net.badstatus":this.xhr.bx()&&(R="net.closed");this.onError(R)}}; g.Q.onError=function(R){var F=this;this.loader.handleError(R,this.getInfo());Ol("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(h){F.loader.dA("pathprobe",h)},function(h){F.loader.handleError(h.errorCode,h.details)})}; g.Q.getInfo=function(){var R=this.timing.Lp();R.shost=zE(this.location.t0);R.pb=this.size;return R};g.A(l6,g.d); l6.prototype.Y=function(R,F){if(R.Y){this.MQ.isLive?(R=this.MQ.G2&&this.MQ.L?R.B.F8(this.MQ.G2,!1):R.B.lx(Infinity),R.GV=this.GV):R=R.B.F8(0,!1);if(this.oR){var h=this.oR;R.GV===0&&(R.N=h.Z)}else R.N=this.C;return R}h=R.D;if(!h.B.sG())return h.B.RQ()?(R=Xa(this.N,R.B.info.CI,F.B.info.CI,0),R=h.B.qW(h,R)):R=h.B.sA(h),R;var a=h.S-this.loader.getCurrentTime(),J=!h.range||h.K===0&&h.D===0?0:h.range.length-(h.D+h.K),M=h.B;this.b3(R,a)&&J===0&&(this.MQ.isManifestless?M=R.B:(M=h.startTime+TuT,h.K&&(M+=h.duration), DW(R,M),h=R.D,M=h.B));M.RQ()?(J=this.K,F=Xa(this.N,M.info.CI,F.B.info.CI,a,J.L.length>0&&J.Z===0&&this.loader.Zs),a=eU(R),R=h.B.qW(h,F),(F=R.K)&&R.Vt.length>1&&(a||R.UP.K||R.Vt[0].B!==h.B?R=h.B.qW(h,R.Vt[0].K):(a=R.Vt[R.Vt.length-1],M=a.K/F,!a.N&&M<.4&&(R=h.B.qW(h,F-a.K))))):(h.vG<0&&(F=Fv(h),F.pr=""+R.K.length,this.loader.isSeeking()&&(F.sk="1"),F.snss=h.Y,this.loader.dA("nosq",F)),R=M.sA(h));if(this.policy.Uz)for(h=g.N(R.Vt),F=h.next();!F.done;F=h.next())F.value.type=6;return R}; l6.prototype.b3=function(R,F){if(!eU(R)||!R.B.sG())return!1;var h=this.K.NQ||hFn(R)||F<=this.policy.Zi||this.K.oR;this.logger.debug(function(){return"ready to adapt: "+h+", upgrade pending: "+hFn(R)+", health: "+F}); return h}; l6.prototype.Ez=function(){g.d.prototype.Ez.call(this)}; var TuT=2/24;g.A(hg,g.d);hg.prototype.Tr=function(R,F,h){var a;var J=((a=this.D)==null?void 0:a.reason)==="m"?"m":this.D&&ZGi(this,this.D)?this.D.reason:"a";this.loader.Tr(new K2(R,J,h));RQ(this.loader,F,R,!0)}; hg.prototype.D_=function(R,F){for(var h=g.N(this.Uz),a=h.next();!a.done;a=h.next())if(a.value.id===R)return this.N=this.MQ.B[R],AU(this.uq)&&(this.oR=!0),R=new K2(this.N,F?"t":"m"),F&&(this.Y=!0),R;this.K=[];return null}; hg.prototype.Ua=function(R,F,h){h=h===void 0?{}:h;this.B.Ua(R,F===void 0?!1:F,h)};Jg.prototype.setData=function(R,F,h){var a=this;h=h===void 0?{}:h;if(F==null?0:F.Sw)this.bl=ADg(this,F,h),R.xp=this.UP.xp();if(this.b7())return!0;this.data=R;this.B=n9m(R,function(J,M){var v;(v=a.fO)==null||v.z$(J,M)},F==null?void 0:F.K); if(!this.B)return!1;this.D=g.tl(this.B,ABI);return!0}; Jg.prototype.b7=function(){return this.requestType===1}; Jg.prototype.qe=function(){var R;return((R=this.fO)==null?void 0:R.qe())||0}; Jg.prototype.isDecorated=function(){var R;return!((R=this.data)==null||!R.wT)};tDO.prototype.bb=function(R,F){F=F===void 0?1:F;this.z8+=F;this.D+=R;R/=F;for(var h=0;h0)a+="."+ML[J].toFixed(0)+"_"+h.B[J].toFixed(0);else break;h=a}h&&(R[F]=h)}this.B=new lUL;return R}; g.Q.toString=function(){return""};g.Q=Woi.prototype;g.Q.isActive=function(){return!1}; g.Q.q5=function(){}; g.Q.gt=function(){}; g.Q.pT=function(){}; g.Q.FI=function(R,F){F()}; g.Q.Fr=function(){return{}}; g.Q.toString=function(){return""};var Ih4=new Woi,i1G=!!+ti("html5_enable_profiler"),w_U=!!+ti("html5_onesie_enable_profiler"),Av=i1G||w_U?new VDO:Ih4,eyn=i1G?Av:Ih4,Gt=w_U?Av:Ih4;vH.prototype.encrypt=function(R){this.B.exports.AES128CTRCipher_encrypt(this.cipher,R.byteOffset,R.byteLength);return R}; vH.prototype.RR=function(){return this.cipher===0}; vH.prototype.dispose=function(){this.B.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};MQm.prototype.emscripten_notify_memory_growth=function(){};g.Q=gB.prototype;g.Q.malloc=function(R){return this.exports.malloc(R)}; g.Q.free=function(R){this.exports.free(R)}; g.Q.realloc=function(R,F){return this.exports.realloc(R,F)}; g.Q.Bg=function(R){if(R.buffer!==this.exports.memory.buffer){var F=this.malloc(R.byteLength);F=new Uint8Array(this.exports.memory.buffer,F,R.byteLength);F.set(R);return F}}; g.Q.Uv=function(R){if(R.buffer===this.exports.memory.buffer){var F=R.slice();this.free(R.byteOffset);return F}}; var RL_=new function(){this.K=this.L="WebAssembly"in window},Gy_="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); Gt.q5(gB,{Bg:function(R){return{profile:"copyj2w",z8:R===void 0?0:Math.ceil(R.byteLength/16)}}, Uv:function(R){return{profile:"copyw2j",z8:R===void 0?0:Math.ceil(R.byteLength/16)}}});IQ.prototype.encrypt=function(R,F){return Ta(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:F},this.key,R).catch(function(h){return Promise.reject(h.name+": "+h.message)}).then(function(h){return new Uint8Array(h)}))}; IQ.prototype.RR=function(){return this.B}; IQ.prototype.dispose=function(){this.B=!0}; i4.prototype.encrypt=function(R,F){return Ta(this.D(R,F))}; i4.prototype.D=function(R,F){Mu(this.K,F);return this.K.encrypt(R)}; i4.prototype.RR=function(){return this.B}; i4.prototype.dispose=function(){this.B=!0}; wB.prototype.encrypt=function(R,F){return Ta(this.D(R,F))}; wB.prototype.D=function(R,F){F=this.K.Bg(F);var h=this.B;h.B.exports.AES128CTRCipher_setCounter(h.cipher,F.byteOffset);this.K.free(F.byteOffset);F=this.K.Bg(R);this.B.encrypt(F!=null?F:R);return F?this.K.Uv(F):R}; wB.prototype.RR=function(){return this.B.RR()}; wB.prototype.dispose=function(){this.B.dispose()}; Gt.q5(IQ,{encrypt:iZ7("oan2")});Gt.q5(i4,{encrypt:iZ7("oap")});Gt.q5(wB,{encrypt:iZ7("oalw")});E6.prototype.encrypt=function(R,F){var h=this,a=y_("");R.length<=this.XZ&&this.B&&!this.N&&(a=ZV(a,function(){return h.B?h.B.encrypt(R,F):y_("wasm unavailable")})); R.length<=this.Tu&&(this.B&&this.N&&(a=ZV(a,function(){return h.B?h.B.encrypt(R,F):y_("wasm unavailable")})),a=ZV(a,function(){return BGO(h,R,F)})); return ZV(ZV(a,function(){return rJI(h,R,F)}),function(){return BGO(h,R,F)})}; E6.prototype.D=function(R,F){if(this.B)return this.B.D(R,F);this.K||(this.K=new i4(this.key));return this.K.D(R,F)}; E6.prototype.RR=function(){return this.S}; E6.prototype.dispose=function(){this.S=!0;var R;(R=this.L)==null||jI(R,g.Fm);g.Fm(this.B);g.Fm(this.K)};BH.prototype.encrypt=function(R){(0,g.NU)();return(new g.iU(this.B.B)).encrypt(R,this.iv)}; BH.prototype.decrypt=function(R,F){(0,g.NU)();return(new g.iU(this.B.B)).decrypt(R,F)}; BH.prototype.RR=function(){return this.K}; BH.prototype.dispose=function(){this.K=!0;g.Fm(this.D)};g.A(rB,g.d);rB.prototype.K=function(R,F){if(F){F=F instanceof g.dV?F:Yq(this,F);var h;((h=this.B.get(R))==null?void 0:zE(h.location))!==zE(F)&&this.B.set(R,new NGm(F,R))}else this.B.delete(R)}; rB.prototype.load=function(){var R=this,F,h,a,J,M,v,I,w,E,B;return g.u(function(r){switch(r.D){case 1:F=R.B.get(0);g.Hi(r,2);var Y;if(Y=F&&!R.D)Y=zE(F.location),Y=R.D===Bd(Y);if(Y){r.G$(4);break}return g.m(r,AJf(R,R.D?2:0),5);case 5:if(h=r.B)R.K(0,h),td(h)&&R.K(1,lM(h));case 4:g.yn(r,3);break;case 2:a=g.f_(r);g.qN(a);if(!R.D){r.G$(3);break}R.D=!1;return g.m(r,R.load(),7);case 7:return r.return();case 3:if(!R.uu.experiments.jl("html5_onesie_probe_ec_hosts")){r.G$(0);break}g.Hi(r,9);J=R;M=J.K;v=3;return g.m(r, AJf(R,1),11);case 11:return M.call(J,v,r.B),I=R,w=I.K,E=4,g.m(r,AJf(R,2),12);case 12:w.call(I,E,r.B);g.yn(r,0);break;case 9:B=g.f_(r),g.qN(B),g.Na(r)}})}; rB.prototype.Y=function(){var R=this,F,h;return g.u(function(a){g.VI(R.Z);F=g.RI(R.uu.experiments,"html5_onesie_prewarm_max_lact_ms");if($G()>=F)return a.return();(h=R.B.get(0))&&$5L(R,h);g.Na(a)})}; var kyB={n_t:0,OXo:1,Dnb:2,NTI:3,x2z:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};HZi.prototype.decrypt=function(R){var F=this,h,a,J,M,v,I;return g.u(function(w){switch(w.D){case 1:if(F.B.length&&!F.B[0].isEncrypted)return w.return();F.D=!0;F.qn.Uf("omd_s");h=new Uint8Array(16);GS()?a=new g.IZ(R):J=new g.iU(R);case 2:if(!F.B.length||!F.B[0].isEncrypted){w.G$(4);break}M=F.B.shift();if(!a){v=J.decrypt(gw(M.buffer),h);w.G$(5);break}return g.m(w,a.decrypt(gw(M.buffer),h),6);case 6:v=w.B;case 5:I=v;for(var E=0;E=4)){var F=PH(this),h=this.xhr;F.rc=h.status;R&&(F.ab=!0);if(h.pK()){var a="onesie.net";F.msg=h.pK()}else h.status>=400?a="onesie.net.badstatus":h.TJ()?this.FQ||(a="onesie.response.noplayerresponse"):a=h.status===204?"onesie.net.nocontent":"onesie.net.connect";a?this.fail(new g.Bz(a,F)):(this.Uf("or_fs"),this.zn.N7((0,g.NU)(),h.fX(),0),this.wf(4),this.rT&&this.dA("rqs",F));this.rT&&this.dA("ombre", "ok."+ +!a);this.Nr=!1;dB(this);eLi(this.qn);if(!this.S1){this.Wy.stop();var J;(J=this.eG)==null||J.stop()}var M;if(R=(M=this.wu)==null?void 0:x5L(M))for(M=0;M1E3){var R;(R=this.zn)==null||R.h6((0,g.NU)());R=PH(this);if(this.uu.Po()&&this.xhr instanceof gJ){var F=this.xhr;R.xrs=F.xhr.readyState;R.xpb=F.B.totalLength;R.xdc=F.L}this.fail(new g.Bz("net.timeout",R))}}else(0,g.NU)()-this.zn.B>1E4&&((F=this.zn)==null||F.h6((0,g.NU)()),this.pW());this.isComplete()||this.ip.start()}}; g.Q.pW=function(){this.logger.info("Onesie request timed out");this.Nr=!1;if(!dB(this)){var R=PH(this);R.timeout="1";this.fail(new g.Bz("onesie.request",R))}}; g.Q.fail=function(R){var F=this;R=YK(R);this.Vx?this.BG.Ef(R):(this.bj.reject(R),this.Vx=!0);eLi(this.qn);this.S1||this.Wy.stop();this.Uf("or_fe");var h,a;(h=this.wu)==null||(a=x5L(h))==null||a.forEach(function(J){F.dA("pathprobe",J)}); this.wf(5);this.dispose()}; g.Q.isComplete=function(){return this.state>=3}; g.Q.vH=function(){return this.state===4}; g.Q.Vk=function(R){var F,h;return this.isComplete()||!!((F=this.mA)==null?0:(h=F.get(R))==null?0:h.B)}; g.Q.Sr=function(){return!1}; g.Q.qC=function(){return this.state===5}; g.Q.notifySubscribers=function(R){for(var F=0;F102400&&!this.f0&&(this.Uf("or100k"),this.f0=!0);if(R.wp()){var F=R.Co(),h=F.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+h}); this.rT&&this.dA("ombrss","len."+h);this.H9.feed(F)}if(this.mA)for(var a=g.N(this.mA.keys()),J=a.next();!J.done;J=a.next()){var M=J.value;R=void 0;(R=this.mA.get(M))==null||R.OH();this.notifySubscribers(M)}}catch(v){this.fail(v)}}; g.Q.Sy=function(){return this.zn.requestNumber}; g.Q.bH=function(R){return this.yq.get(R)};g.A(h_7,g.d);g.Q=h_7.prototype;g.Q.rQ=function(R,F){this.aR=void 0;sVi(this);YGL(this,R,F)}; g.Q.TY=function(R){if(this.B.length===0)return!1;var F=this.B[0];return F instanceof zt?R===this.loader.getCurrentTime()*1E3:!(F instanceof OM&&Poi(F.info))&&Math.abs(F.s4()-R)<50}; g.Q.AO=function(R){this.D=R;this.aR=(0,g.NU)()+(R.backoffTimeMs||0)}; g.Q.J8=function(R,F){if(R.action===void 0){var h=this.BG.S0();h!==void 0&&this.loader.ER(h)}else if(R.action!==0||!this.PG)if(R.action===0&&this.policy.lN&&(R.action=2),R.DP==="sabr.malformed_config"&&this.policy.zL>0&&this.IR++0&&(R.action=2),h={},h.reason=R.DP,h.action=R.action,h.rn=F,R.action){case 1:this.policy.D&&this.Z&&this.Z.oA(void 0, void 0,h);break;case 0:this.PG=!0;this.videoData.We()&&this.policy.D&&this.Z&&this.Z.oA(void 0,void 0,h,!1);this.loader.yT(h);break;case 2:coi(R.DP)!=="sabr.config"&&delete h.reason;this.loader.handleError(coi(R.DP),h,1);break;case 3:this.policy.Sw&&((R=this.MQ.Z)!=null&&(R.Z=!0),this.loader.handleError("sabr.hostfallback",h))}}; g.Q.N_=function(R){R&&(this.loader.dA("sabrctxt",{onsbrctxt:R.type,scp:R.scope,dflt:R.sendByDefault}),R.type&&R.sendByDefault&&this.videoData.HG.add(R.type),R.scope!==2&&(R.type&&this.videoData.sabrContextUpdates.set(R.type,R),this.BG.N_(R)))}; g.Q.YR=function(){}; g.Q.r5=function(R,F){if(R.rV!==void 0&&R.Sn){var h=R.rV/R.Sn;this.audioTrack.Y=!1;this.videoTrack.Y=!1;if(this.policy.aR||this.policy.YZ||this.policy.dn)this.loader.yV.D=!1;var a=this.loader.US(h,1);this.policy.uY&&this.policy.D&&this.loader.sI(a,F);this.BG.getCurrentTime()!==h&&(F={RT:"sabr_seek",zE:!0,zB:!0},R.seekSource&&(F.seekSource=R.seekSource),CY(this.loader,h+.1,F))}}; g.Q.onSnackbarMessage=function(R){this.BG.publish("onSnackbarMessage",R)}; g.Q.sR=function(R){R.sy&&R.Pu&&ll(this.MQ,R.sy,R.Pu);this.policy.Rf&&(R.DJ&&R.Ek&&(this.MQ.ES=R.DJ/R.Ek),R.V6&&R.xE&&(this.MQ.B1=R.V6/R.xE));d9(this.videoData)&&!this.videoData.oR&&R.Pu&&this.loader.US(R.Pu,1E3);R.xf!=null&&this.BG.IB(R.xf);this.policy.d5&&R.WZ&&(R=((0,g.NU)()-R.WZ)/1E3,this.loader.Lg.TT(1,R))}; g.Q.Rh=function(R){this.loader.Rh(R)}; g.Q.uv=function(R){return this.videoData.HG.has(R)}; g.Q.wm=function(R,F,h){this.policy.K&&this.loader.dA("sabrctxtplc",{start:R?R.join("_"):"",stop:F?F.join("_"):"",discard:h?h.join("_"):""});if(R){R=g.N(R);for(var a=R.next();!a.done;a=R.next())this.videoData.HG.add(a.value)}if(F)for(F=g.N(F),R=F.next();!R.done;R=F.next())R=R.value,this.videoData.HG.has(R)&&this.videoData.HG.delete(R);if(h)for(h=g.N(h),F=h.next();!F.done;F=h.next())if(F=F.value,this.videoData.sabrContextUpdates.has(F)&&(this.videoData.sabrContextUpdates.delete(F),F===3&&(this.videoData.y9= "")),this.policy.C&&this.B.length)for(R=g.N(this.B),a=R.next();!a.done;a=R.next())if(a=a.value,!(a instanceof zt)){var J=void 0;((J=a.Aw)==null?void 0:J.type)===F&&(a.Aw=void 0)}}; g.Q.IY=function(){}; g.Q.Gi=function(R){this.Y=R}; g.Q.hw=function(R){this.S=R}; g.Q.T1=function(R,F){K8(this.policy,R,4,F)}; g.Q.D0=function(R){if(R==null?0:R.k5)if(R=R.k5.jJ){R=g.N(R);for(var F=R.next();!F.done;F=R.next())if(F=F.value,F.formatId){var h=this.MQ.K.get(z4(F.formatId));h&&h.info&&(h.info.debugInfo=F.debugInfo)}}}; g.Q.Py=function(R){this.BG.publish("reloadplayer",R)}; g.Q.T2=function(){return this.BG.T2()||""}; g.Q.qe=function(){var R=SU(this.audioTrack,!0)*1E3,F=SU(this.videoTrack,!0)*1E3;return Math.min(R,F)}; g.Q.z$=function(R,F){this.loader.dA(R,F)}; g.Q.XQ=function(R){Rki(this.loader,hPn(this.T$,R))}; g.Q.Ez=function(){g.d.prototype.Ez.call(this);this.D=void 0;YGL(this,!0,"i");this.B=[]};LST.prototype.t8=function(){this.isSeeking=!0;this.B===1&&N9g(this.L);this.B===0&&this.A4.NH("transitiondetector");this.S=!1};SGT.prototype.Of=function(R,F){if(this.L)return e_m(this,F);if(F=cg(R)){var h=F.B;h&&h.K&&h.B&&(R=R.K.length?R.K[0]:null)&&R.state>=2&&!R.qC()&&R.info.GV===0&&(this.L=R,this.Y=h,this.D=F.info,this.S=this.startTimeSecs=Date.now()/1E3,this.N=this.D.startTime)}return NaN}; SGT.prototype.clear=function(){this.D=this.Y=this.L=null;this.B=this.N=this.S=this.startTimeSecs=NaN;this.K=!1};g.A(g.WH,g.d);g.Q=g.WH.prototype;g.Q.initialize=function(R,F,h){this.logger.debug(function(){return"Initialized, t="+R}); R=R||0;this.policy.B||(F=JPO(this.B),a4n(this.BG,new K2(F.video,F.reason)),this.BG.RB(new K2(F.audio,F.reason)));this.policy.B&&UE(this);this.MQ.isManifestless&&ycL(this.N);this.Y&&mzI(this.Y,this.videoTrack.B);F=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var a=!this.MQ.isManifestless;this.policy.qv&&(a=a||this.MQ.Xd);this.policy.fI||(this.currentTime=a?R:F);this.policy.aR&&this.seek(this.getCurrentTime(),{}).eK(function(){}); if(this.policy.B){var J;((J=this.C)==null?0:FSL(J,this.T2()||""))&&z__(this)&&PRI(this,this.videoTrack)&&PRI(this,this.audioTrack)&&(prB(this.D,this.C),this.policy.N&&dzf(this))}else this.KI&&(KST(this,this.videoTrack),KST(this,this.audioTrack),EEi(this.KI),delete this.KI);h?(lyL(this,!1),g.VI(this.LF)):(h=this.getCurrentTime()===0,C8(this.N,this.videoTrack,this.videoTrack.B,h),C8(this.N,this.audioTrack,this.audioTrack.B,h),this.policy.B&&MZT(this.D,!0),this.policy.aR||this.seek(this.getCurrentTime(), {}).eK(function(){}),this.timing.tick("gv")); (this.MQ.G2||this.MQ.Lr||this.MQ.Uz||this.MQ.Sw||this.MQ.gW)&&this.BG.m9(this.MQ)}; g.Q.resume=function(){if(this.isSuspended||this.Zs){this.logger.debug("Resumed.");this.fm=this.Zs=this.isSuspended=!1;try{this.Of()}catch(R){g.y7(R)}}}; g.Q.YQ=function(){return!this.policy.i9}; g.Q.Bu=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;this.logger.debug("detaching media source");CRf(this);this.BG.BV()&&(this.S=NaN);R?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Oz&&this.dA("loader",{setsmb:1}),this.policy.Uz=!0,this.M2()):(lyL(this,!1),F||this.M2())}; g.Q.setAudioTrack=function(R,F,h){h=h===void 0?!1:h;if(!this.RR()){var a=!isNaN(F);h&&a&&(this.audioTrack.aR=Date.now(),this.policy.S9&&(this.nI=!0));if(this.policy.B){var J=this.L.D_(R.id,a);this.logger.debug(function(){return"Logging new audio format: "+J.B.info.id}); this.BG.RB(J)}else{var M=FPi(this.B,R.id,a);this.logger.debug(function(){return"Logging new audio format: "+M.audio.info.id}); this.BG.RB(new K2(M.audio,M.reason))}a?(this.policy.qg&&(this.Sw=Date.now()),h=this.audioTrack.B.index.L2(F),this.dA("setAudio",{id:R.id,cmt:F,sq:h}),h>=0&&(R=this.policy.Fa?h+1:h,this.policy.B&&this.rQ(!0,"mosaic"),OE(this.audioTrack,R,NaN,NaN),!this.policy.d$&&this.MQ.isLive&&tP(this.MQ,R,!1))):this.BG.aZ()}}; g.Q.setPlaybackRate=function(R){R!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(R)}; g.Q.LN=function(R){var F=this.D.Y;this.D.Gi(R);this.dA("scfidc",{curr:z4(F),"new":z4(R)});R&&z4(R)!==z4(F)&&(this.rQ(!0,"caption change"),this.Of())}; g.Q.m1=function(R){this.D.hw(R)}; g.Q.Tr=function(R){var F=R.B.info.rk();this.logger.debug(function(){return"New "+(F?"audio":"video")+" format from SABR: "+K7(R.B.info)}); F?this.BG.RB(R):a4n(this.BG,R)}; g.Q.XQ=function(R){c$(R.Vt[R.Vt.length-1])&&Rki(this,hPn(this.B,R.Vt[0].B))}; g.Q.TK=function(){return this.BG.TK()}; g.Q.zg=function(){return this.BG.zg()}; g.Q.Rh=function(R){this.BG.W().Po()&&this.dA("sps",{status:R.tO||""});if(R.tO===1)this.BG.videoData.Zi=0;else if(R.tO===2||R.tO===3){var F=!1;if(R.tO===3){F=this.BG.PA();var h;this.gf=(h=R.o6z)!=null?h:Infinity;this.BG.videoData.Zi=F+1;(F=TpI(this))&&this.aB(!0)}this.BG.Lc(!0,F)}}; g.Q.NO=function(){return this.BG.NO()}; g.Q.C2=function(){return this.BG.C2()}; g.Q.r9=function(R){this.BG.r9(R)}; g.Q.JTu=function(){var R,F=(R=this.BG.He())==null?void 0:R.getCurrentTime();F?this.BG.dA("rms",{cta:F}):g.VI(this.Ma)}; g.Q.Of=function(){WSg(this);if(this.Yo&&G7(this.Yo)&&!this.Yo.k_()&&(!this.policy.fI||isFinite(this.getCurrentTime()))){var R=L8(this.videoTrack);R=this.policy.Ov&&R&&R.k7();this.MQ.isManifestless&&this.MQ.L&&dH(this.MQ)?(this.S=dH(this.MQ),this.Yo.Td(this.S)):DL(this.MQ)&&!R?isNaN(this.S)?(this.S=this.getCurrentTime()+3600,this.Yo.Td(this.S)):this.S<=this.getCurrentTime()+1800&&(this.S=Math.max(this.S+1800,this.getCurrentTime()+3600),this.Yo.Td(this.S)):this.Yo.isView||(R=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==R)&&R>0&&(this.Yo.Td(R),this.S=R))}if(!this.RR())if(ul(this.MQ)&&this.MQ.qC()){var F=this.MQ;this.handleError("manifest.net.retryexhausted",F.T$?{rc:F.Xt}:{rc:F.Xt.toString()},1)}else if(this.policy.B)a:{try{EFI(this.D);this.MQ.isManifestless&&this.policy.N&&Vi(this.yV);var h;((h=this.Yo)==null?0:wh(h))&&this.bv();MZT(this.D)}catch(v){g.qN(v);F=v;if(F.message.includes("changeType")){this.dA("ctype",{exp:F.name,msg:F.message,s:F.stack});break a}this.handleError("fmt.unplayable", {exp:F.name,msg:F.message,s:F.stack},1)}ACB(this);g.VI(this.T$)}else if(!this.MQ.D||!MDn(this.videoTrack)&&!MDn(this.audioTrack)||(this.videoTrack.N||this.audioTrack.N)&&this.policy.EP?h=!1:(this.M2(),this.BG.seekTo(Infinity,{RT:"checkLoaderTracksSync",US:!0}),h=!0),!h){WSg(this);this.MQ.isManifestless&&(v9L(this.videoTrack),v9L(this.audioTrack),Vi(this.yV),(h=cg(this.videoTrack))&&h.B&&(h=h.B.K&&!this.policy.f$,this.dA(h===this.policy.Y.E6?"strm":"strmbug",{strm:h,sfmp4:this.policy.Y.E6,dfs:this.policy.f$}, !0)));if(this.Yo)this.bv();else if(this.policy.L){var a;h=!1;if(this.policy.uN){var J;R=g.N([this.videoTrack,this.audioTrack]);for(J=R.next();!J.done;J=R.next()){var M=J.value;for(J=cg(M);J&&M.S6()!==L8(M);J=cg(M))M.MS(J);h=h||!!J}}else(F=cg(this.videoTrack))&&this.videoTrack.MS(F),(a=cg(this.audioTrack))&&this.audioTrack.MS(a);jU(this.videoTrack)&&jU(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(F||a||h)&&V4(this)}tZO(this);C8(this.N,this.videoTrack,this.videoTrack.B, !1);C8(this.N,this.audioTrack,this.audioTrack.B,!1);this.policy.PW||hkL(this,this.videoTrack,this.audioTrack);$MI(this.N,this.videoTrack,this.audioTrack);$MI(this.N,this.audioTrack,this.videoTrack);ACB(this);this.Y&&(F=this.Y,F.L?(a=F.S+F.policy.JE,F.K||(a=Math.min(a,F.startTimeSecs+F.policy.B9)),F=Math.max(0,a*1E3-Date.now())):F=NaN,isNaN(F)||g.VI(this.Ym,F));g.VI(this.T$)}}; g.Q.yT=function(R){this.BG.yT(R)}; g.Q.bv=function(){var R=this;if(this.Yo){var F=this.Yo.B,h=this.Yo.D;f4L(this,this.audioTrack);f4L(this,this.videoTrack);var a=MtT(this);if(a){if(this.policy.HE){if(!F.fb()){var J=cg(this.audioTrack);if(J){if(!cH(this,this.audioTrack,F,J.info))return;GUT(this,this.audioTrack,F,J)}}if(!h.fb()&&(J=cg(this.videoTrack))){if(!cH(this,this.videoTrack,h,J.info))return;GUT(this,this.videoTrack,h,J)}}this.aR||(this.aR=(0,g.NU)(),this.logger.debug(function(){return"Appends pause start "+R.aR+" reason "+a}), this.policy.K&&this.dA("apdps",{r:a}))}else if(this.aR&&(JCi(this,this.aR),this.aR=0),vC2(this),J=!1,Bun(this,this.videoTrack,h)&&(J=!0,yD_(this.timing),Z$f(this.timing)),this.Yo&&!this.Yo.VV()&&(Bun(this,this.audioTrack,F)&&(J=!0,qf2(this.timing),b$g(this.timing)),!this.RR()&&this.Yo))!this.policy.i9&&jU(this.videoTrack)&&jU(this.audioTrack)&&G7(this.Yo)&&!this.Yo.k_()&&(h=!1,h=L8(this.audioTrack).B,h=h===this.MQ.B[h.info.id])&&(this.logger.debug("Setting EOS"),eWm(this.Yo),I5L(this.schedule)),J&& !this.Yo.isAsync()&&V4(this)}}; g.Q.zx=function(R){var F,h=R===((F=this.Yo)==null?void 0:F.B)?this.audioTrack:this.videoTrack,a;if((a=cg(h))==null?0:a.isLocked){if(this.BG.W().Po()){var J;this.dA("eosl",{ounlock:(J=cg(h))==null?void 0:J.info.KV()})}var M;QcI(this,R===((M=this.Yo)==null?void 0:M.B))}var v;if(this.policy.S9&&R===((v=this.Yo)==null?void 0:v.B)&&this.uY){F=this.uY-this.getCurrentTime();var I;this.BG.dA("asl",{l:F,xtag:(I=L8(this.audioTrack))==null?void 0:I.B.info.B});this.nI=!1;this.uY=0}R.v4()&&R.Ca().length===0&& (R.Ww(),this.Yo&&!this.Yo.v4()&&(this.BG.W().Po()&&this.BG.dA("rms",{ld:"seek"}),this.Yo.S=performance.now(),this.BG.KT(),this.BG.W().Po()&&g.VI(this.Ma)));var w;(w=h.C)!=null&&Jn(w,0);this.policy.It?WE(this):this.Of()}; g.Q.OIt=function(R){if(this.Yo){var F=L8(R===this.Yo.B?this.audioTrack:this.videoTrack);if(R=R.Iq())for(var h=0;h 5&&R.oR.shift();F=F.vG;var I;if((I=this.BG.getVideoData())==null?0:I.enableServerStitchedDai)I=wyi(this.audioTrack,F),h=wyi(this.videoTrack,F),I!==0&&h!==0&&I!==h&&this.handleError("ssdai.avsync",{sq:F,a:I,v:h},0)}}; g.Q.CC=function(R,F,h,a){R.info.video&&this.K.CC(F,h,a)}; g.Q.t6=function(R){this.B.t6(R)}; g.Q.mT=Jf(12);g.Q.xU=function(){if(g.V(this.BG.getPlayerState(),8)){var R,F,h=(F=(R=this.BG.He())==null?void 0:R.getCurrentTime())!=null?F:this.BG.getCurrentTime(),a;(a=this.EP)==null||yLT(a,h)}var J;(J=this.YH)==null||g.VI(J)}; g.Q.Y5=function(){return this.videoTrack.Y||this.audioTrack.Y}; g.Q.seek=function(R,F){if(this.RR())return ZH();if(this.Y5())return ZH("seeking to head");if(this.policy.aR&&!isFinite(R))return GEL(this.yV),g.jV(Infinity);WSg(this);UE(this);this.policy.B||tZO(this,R);this.Yo&&this.Yo.B&&this.Yo.D&&!this.BG.getVideoData().DA&&(this.Yo.B.isLocked()||this.Yo.D.isLocked())&&this.BG.aZ({reattachOnLockedBuffer:1,vsb:""+this.Yo.D.isLocked(),asb:""+this.Yo.B.isLocked()});var h=this.getCurrentTime(),a=this.yV.seek(R,F);this.policy.fI||(this.currentTime=a);Pd(this.K,R,h, this.policy.DZ&&!F.zE);V4(this);return g.jV(a)}; g.Q.TY=function(R){return this.policy.B&&this.D.TY(R)}; g.Q.uv=function(R){return this.D.uv(R)}; g.Q.rQ=function(R,F){this.D.rQ(R,F)}; g.Q.getCurrentTime=function(){if(this.policy.fI){var R=this.wW()||0;return this.BG.getCurrentTime(!0)-R}return this.currentTime}; g.Q.Ne=function(){return this.audioTrack.B.info}; g.Q.tX=function(){return this.videoTrack.B.info}; g.Q.fz=function(){return this.audioTrack.B.info.Qt}; g.Q.GH=function(){return this.videoTrack.B.info.Qt}; g.Q.Ez=function(){try{this.Bu(),KY(this.audioTrack),KY(this.videoTrack),n8(this.audioTrack),n8(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.d.prototype.Ez.call(this)}catch(R){g.y7(R)}}; g.Q.handleError=function(R,F,h){h=h===void 0?0:h;var a=re(h);R==="fmt.unplayable"&&this.MQ.isLive&&(this.policy.HE=!1,KL(this.MQ));F=new g.Bz(R,F,h);g.g7(this);ES(F.details);this.BG.handleError(F);R!=="html5.invalidstate"&&F.errorCode!=="fmt.unplayable"&&R!=="fmt.unparseable"&&a&&this.dispose()}; g.Q.nO=function(){var R=L8(this.audioTrack),F=L8(this.videoTrack);R={lct:this.getCurrentTime().toFixed(3),lsk:this.yV.isSeeking(),lmf:this.B.B.isLocked(),lbw:Ok(this.schedule).toFixed(3),lhd:bo(this.schedule).toFixed(3),lst:((this.schedule.Y.Wf()||0)*1E9).toFixed(3),laa:R?R.KV():"",lva:F?F.KV():"",lar:this.audioTrack.D?this.audioTrack.D.KV():"",lvr:this.videoTrack.D?this.videoTrack.D.KV():"",laq:""+ZB(this.audioTrack),lvq:""+ZB(this.videoTrack)};this.Yo&&!this.Yo.VV()&&this.Yo.B&&this.Yo.D&&(R.lab= DK(this.Yo.B.Ca()),R.lvb=DK(this.Yo.D.Ca()));this.aR&&(R.lapt=((0,g.NU)()-this.aR).toFixed(0),R.lapr=MtT(this));this.Sl&&(R.lapmabht=((0,g.NU)()-this.Sl).toFixed(0),R.lapmabh=lD(this,this.audioTrack).toFixed(0));this.PG&&(R.lapmvbht=((0,g.NU)()-this.PG).toFixed(0),R.lapmvbh=lD(this,this.videoTrack).toFixed(0));this.NQ&&(R.lapsdai=((0,g.NU)()-this.NQ).toFixed(0));return R}; g.Q.M2=function(){try{this.policy.B&&this.D.rQ(!1,"pending"),this.audioTrack.M2(),this.videoTrack.M2()}catch(R){g.y7(R)}this.policy.L=""}; g.Q.SS=function(){return oJ(this.Z)}; g.Q.dA=function(R,F,h){this.BG.dA(R,F,h===void 0?!1:h)}; g.Q.T2=function(){return this.BG.T2()}; g.Q.US=function(R,F){R/=F;isNaN(this.timestampOffset)&&jcf(this,R-Math.min(R,this.policy.HU));return(R-this.timestampOffset)*F}; g.Q.wW=function(){return this.timestampOffset}; g.Q.isSeeking=function(){return this.yV.isSeeking()}; g.Q.Rl=function(){this.K.Rl()}; g.Q.Ua=function(R,F,h){F=F===void 0?!1:F;h=h===void 0?{}:h;this.policy.B?this.L.Ua(R,F,h):this.B.Ua(R,F,h)}; g.Q.IQ=function(R,F){if(this.oR&&this.K.IQ(R,this.oR)){if(this.policy.uY&&this.policy.D){var h=this.videoTrack.B.index.L2(R),a;(a=this.fI)==null||a.JO(R,h)}jcf(this,this.timestampOffset-F);V4(this);this.policy.D&&(KL(this.MQ),n8(this.audioTrack),n8(this.videoTrack),this.M2());return!0}F=this.videoTrack.B.index.L2(R);this.handleError("ad.skipfailed",{dec:!!this.oR,t:R.toFixed(3),sq:F});return!1}; g.Q.getManifest=function(){return this.MQ}; g.Q.isOffline=function(){return!!this.BG.getVideoData().cotn}; g.Q.LU=function(R,F){this.BG.LU(R,F)}; g.Q.AF=function(R){if(this.policy.B)this.D.rQ(!0,"utc"),this.Of();else{var F=this.BG.getVideoData().Rp;if(F){var h=this.N;h.kZ=R;h.Rp=F;FD(this)}}}; g.Q.ER=function(R){this.videoTrack.Y=!1;this.audioTrack.Y=!1;this.yV.D=!1;this.BG.ER(R)}; g.Q.bC=function(R){this.yV.bC(R-this.wW())}; g.Q.Kg=function(){this.BG.Kg()}; g.Q.aB=function(R){R!==this.policy.XJ&&((this.policy.XJ=R)||this.Of())}; g.Q.xr=function(R,F){var h=this.audioTrack.XW,a=this.videoTrack.XW;h&&a&&(h.remove(R,F),a.remove(R,F))}; g.Q.aZ=function(R){this.BG.aZ(R)}; g.Q.j3=function(R){this.BG.j3(R)}; g.Q.NS=function(R,F,h){var a;(a=this.fI)==null||a.NS(R,F,h)}; g.Q.sI=function(R,F){var h;(h=this.fI)==null||h.sI(R,F)}; g.Q.Wx=function(R){var F;return(F=this.fI)==null?void 0:F.Wx(void 0,R)}; g.Q.PA=function(){return this.BG.PA()}; g.Q.PS=function(){KL(this.MQ);this.M2()};g.Q=g.Fd.prototype;g.Q.UC=function(R,F,h,a,J,M){return this.Z1.UC(R,F,h,a,J,M)}; g.Q.K1=function(R,F,h,a,J,M){return this.Z1.K1(R,F,h,a,J,M)}; g.Q.jS=function(R){return this.Z1.jS(R)}; g.Q.f1=function(R){this.Z1.f1(R)}; g.Q.oA=function(R,F,h,a){return this.Z1.oA(R,F,h,a)}; g.Q.Rl=function(){this.Z1.Rl()}; g.Q.JO=function(R,F){this.Z1.JO(R,F)}; g.Q.Mr=function(){this.Z1.Mr()}; g.Q.jg=Jf(56);g.Q.Ru=function(R,F,h){this.Z1.Ru(R,F,h)}; g.Q.zc=Jf(59);g.Q.cO=function(R,F,h,a,J,M,v,I,w){this.Z1.cO(R,F,h,a,J,M,v,I,w)}; g.Q.Z9=function(R){this.Z1.Z9(R)}; g.Q.rB=function(R){return this.Z1.rB(R)}; g.Q.WC=function(R){return this.Z1.WC(R)};g.A(h2,g.h0);g.A(a$,h2);a$.prototype.S=function(R,F){if(R&&F){var h=Number(AS(R,"cpi"))*1+1;isNaN(h)||h<=0||hthis.K&&(this.K=h,g.BV(this.B)||(this.B={},this.L.stop(),this.D.stop())),this.B[F]=R,g.VI(this.D))}}; a$.prototype.N=function(){for(var R=g.N(Object.keys(this.B)),F=R.next();!F.done;F=R.next()){var h=F.value;F=this.publish;for(var a=this.K,J=g.Gg(this.B[h]),M=[],v=g.N(J[6].split("&")),I=v.next();!I.done;I=v.next())I=I.value,I.indexOf("cpi=")===0?M.push("cpi="+a.toString()):I.indexOf("ek=")===0?M.push("ek="+g.yT(h)):M.push(I);J[6]="?"+M.join("&");h="skd://"+J.slice(2).join("");J=h.length*2;a=new Uint8Array(J+4);a[0]=J%256;a[1]=(J-a[0])/256;for(J=0;J0)for(var h=g.N(this.B),a=h.next();!a.done;a=h.next())if(F===a.value.info.cryptoPeriodIndex){F=!0;break a}F=!1}if(!F){F=(0,g.NU)();a:{h=R.cryptoPeriodIndex;if(!isNaN(h)){a=g.N(this.K.values());for(var J=a.next();!J.done;J=a.next())if(Math.abs(J.value.cryptoPeriodIndex-h)<=1){h=!0;break a}}h=!1}h?(h=R.B,h=Math.max(0,Math.random()*((isNaN(h)?120:h)-30))*1E3):h=0;this.publish("log_qoe",{wvagt:"delay."+h,cpi:R.cryptoPeriodIndex,reqlen:this.B.length}); h<=0?OFg(this,R):(this.B.push({time:F+h,info:R}),g.VI(this.D,h))}}; J2.prototype.Ez=function(){this.B=[];h2.prototype.Ez.call(this)};var xk={},nCm=(xk.DRM_TRACK_TYPE_AUDIO="AUDIO",xk.DRM_TRACK_TYPE_SD="SD",xk.DRM_TRACK_TYPE_HD="HD",xk.DRM_TRACK_TYPE_UHD1="UHD1",xk);g.A(Xng,g.d);g.A(zHf,g.h0);g.Q=zHf.prototype;g.Q.Ga=function(R){var F=this;if(!(this.RR()||R.size<=0)){var h={};R.forEach(function(a,J){var M=a6(F.D)?J:a;J=new Uint8Array(a6(F.D)?a:J);a6(F.D)&&vq_(J);a=g.Tf(J,4);vq_(J);J=g.Tf(J,4);F.B[a]?F.B[a].status=M:F.B[J]?F.B[J].status=M:F.B[a]={type:"",status:M};Jgm(F,F.B[a].type,h)}); hlf(this,",");M$(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.Q.error=function(R,F,h,a){this.RR()||(this.publish("licenseerror",R,F,h,a),R==="drm.provision"&&(R=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:R.toFixed(3)})));re(F)&&this.dispose()}; g.Q.shouldRetry=function(R,F){return!R&&this.requestNumber===F.requestNumber}; g.Q.Ez=function(){this.B={};g.h0.prototype.Ez.call(this)}; g.Q.nO=function(){var R={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.KI,cryptoPeriodIndex:this.cryptoPeriodIndex};this.K&&(R.keyStatuses=this.B);return R}; g.Q.getInfo=function(){var R=this.L.join();if(vS(this)){var F=new Set,h;for(h in this.B)this.B[h].status!=="usable"&&F.add(this.B[h].type);R+="/UKS."+Array.from(F)}return R+="/"+this.cryptoPeriodIndex}; g.Q.hT=function(){return this.url};g.A(G1,g.d);g.Q=G1.prototype;g.Q.CE=function(R){if(this.N){var F=R.messageType||"license-request";this.N(new Uint8Array(R.message),F)}}; g.Q.Ga=function(){this.Y&&this.Y(this.B.keyStatuses)}; g.Q.onClosed=function(){this.RR()||g.nR("xboxone")&&this.K&&this.K("closedShouldNotRetry")}; g.Q.Fp=function(R){this.N&&this.N(R.message,"license-request")}; g.Q.yN=function(R){if(this.K){if(this.D){var F=this.D.error.code;R=this.D.error.systemCode}else F=R.errorCode,R=R.systemCode;this.K("t.prefixedKeyError;c."+F+";sc."+R,F,R)}}; g.Q.ZJ=function(){this.S&&this.S()}; g.Q.update=function(R){var F=this;if(this.B)return this.B.update(R).then(null,ua(function(h){Gta(F,"t.update",h)})); this.D?this.D.update(R):this.element.addKey?this.element.addKey(this.Z.keySystem,R,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,R,this.initData,this.sessionId);return fR()}; g.Q.Ez=function(){this.B&&(this.C?this.B.close().catch(g.qN):this.B.close());this.element=null;g.d.prototype.Ez.call(this)};g.A(I$,g.d);g.Q=I$.prototype;g.Q.setServerCertificate=function(){return this.D.setServerCertificate?this.B.flavor==="widevine"&&this.B.B9?this.D.setServerCertificate(this.B.B9):vy(this.B)&&this.B.PG?this.D.setServerCertificate(this.B.PG):null:null}; g.Q.createSession=function(R,F){var h=R.initData;if(this.B.keySystemAccess){F&&F("createsession");var a=this.D.createSession();MM(this.B)?h=wHg(h,this.B.PG):vy(this.B)&&(h=S4g(h)||new Uint8Array(0));F&&F("genreq");R=a.generateRequest(R.contentType,h);var J=new G1(null,null,null,a,null,this.Y);R.then(function(){F&&F("genreqsuccess")},ua(function(v){Gta(J,"t.generateRequest",v)})); return J}if(hc(this.B))return BB_(this,h);if(Jc(this.B))return Eqi(this,h);if((a=this.element)==null?0:a.generateKeyRequest)this.element.generateKeyRequest(this.B.keySystem,h);else{var M;(M=this.element)==null||M.webkitGenerateKeyRequest(this.B.keySystem,h)}return this.L=new G1(this.element,this.B,h,null,null,this.Y)}; g.Q.oX=function(R){var F=rgB(this,R);F&&F.Fp(R)}; g.Q.BF=function(R){var F=rgB(this,R);F&&F.yN(R)}; g.Q.uw=function(R){var F=rgB(this,R);F&&F.ZJ(R)}; g.Q.getMetrics=function(){if(this.D&&this.D.getMetrics)try{var R=this.D.getMetrics()}catch(F){}return R}; g.Q.Ez=function(){this.K=this.D=null;var R;(R=this.L)==null||R.dispose();R=g.N(Object.values(this.S));for(var F=R.next();!F.done;F=R.next())F.value.dispose();this.S={};g.d.prototype.Ez.call(this);delete this.element};g.Q=iK.prototype;g.Q.get=function(R){R=this.findIndex(R);return R!==-1?this.values[R]:null}; g.Q.remove=function(R){R=this.findIndex(R);R!==-1&&(this.keys.splice(R,1),this.values.splice(R,1))}; g.Q.removeAll=function(){this.keys=[];this.values=[]}; g.Q.set=function(R,F){var h=this.findIndex(R);h!==-1?this.values[h]=F:(this.keys.push(R),this.values.push(F))}; g.Q.findIndex=function(R){return g.AG(this.keys,function(F){return g.Dt(R,F)})};g.A(pHL,g.h0);g.Q=pHL.prototype;g.Q.zbA=function(R){this.fB({onecpt:1});R.initData&&$Lg(this,new Uint8Array(R.initData),R.initDataType)}; g.Q.Rmt=function(R){this.fB({onndky:1});$Lg(this,R.initData,R.contentType)}; g.Q.Or=function(R){this.fB({onneedkeyinfo:1});this.uu.X("html5_eme_loader_sync")&&(this.Y.get(R.initData)||this.Y.set(R.initData,R));QQf(this,R)}; g.Q.NU=function(R){this.K.push(R);wQ(this)}; g.Q.createSession=function(R){var F=xL_(this)?NHg(R):g.Tf(R.initData);this.D.get(F);this.Uz=!0;R=new zHf(this.videoData,this.uu,R,this.drmSessionId);this.D.set(F,R);R.subscribe("ctmp",this.Nk,this);R.subscribe("keystatuseschange",this.Ga,this);R.subscribe("licenseerror",this.bG,this);R.subscribe("newlicense",this.TA,this);R.subscribe("newsession",this.tU,this);R.subscribe("sessionready",this.uB,this);R.subscribe("fairplay_next_need_key_info",this.gC,this);this.uu.X("html5_enable_vp9_fairplay")&&R.subscribe("qualitychange", this.Y2,this);R.subscribe("sabrlicenseconstraint",this.I1b,this);DYL(R,this.L)}; g.Q.TA=function(R){this.RR()||(this.fB({onnelcswhb:1}),R&&!this.heartbeatParams&&(this.heartbeatParams=R,this.publish("heartbeatparams",R)))}; g.Q.tU=function(){this.RR()||(this.fB({newlcssn:1}),this.K.shift(),this.Uz=!1,wQ(this))}; g.Q.uB=function(){if(hc(this.B)&&(this.fB({onsnrdy:1}),this.Sl--,this.Sl===0)){var R=this.oR,F,h;(F=R.element)==null||(h=F.msSetMediaKeys)==null||h.call(F,R.K)}}; g.Q.Ga=function(R){if(!this.RR()){!this.Oz&&this.videoData.X("html5_log_drm_metrics_on_key_statuses")&&(NBi(this),this.Oz=!0);this.fB({onksch:1});var F=this.Y2;if(!vS(R)&&g.zC&&R.D.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var h="large";else{h=[];var a=!0;if(vS(R))for(var J=g.N(Object.keys(R.B)),M=J.next();!M.done;M=J.next())M=M.value,R.B[M].status==="usable"&&h.push(R.B[M].type),R.B[M].status!=="unknown"&&(a=!1);if(!vS(R)||a)h=R.L;h=Fv7(h)}F.call(this,h);if(!vS(R))for(F= {},h=g.N(R.L),a=h.next();!a.done;a=h.next())Jgm(R,a.value,F);this.videoData.authorizedFormats=R.authorizedFormats;this.publish("keystatuseschange",R)}}; g.Q.Nk=function(R,F){this.RR()||this.publish("ctmp",R,F)}; g.Q.gC=function(R,F){this.RR()||this.publish("fairplay_next_need_key_info",R,F)}; g.Q.bG=function(R,F,h,a){this.RR()||(this.videoData.X("html5_log_drm_metrics_on_error")&&NBi(this),this.publish("licenseerror",R,F,h,a))}; g.Q.Ug=function(){return this.Z}; g.Q.Y2=function(R){var F=g.NR("auto",R,!1,"l");if(this.videoData.eb){if(this.Z.equals(F))return}else if(wQL(this.Z,R))return;this.Z=F;this.publish("qualitychange");this.fB({updtlq:R})}; g.Q.I1b=function(R){this.videoData.sabrLicenseConstraint=R}; g.Q.Ez=function(){this.B.keySystemAccess&&this.element&&(this.KI?this.element.setMediaKeys(null).catch(g.qN):this.element.setMediaKeys(null));this.element=null;this.K=[];for(var R=g.N(this.D.values()),F=R.next();!F.done;F=R.next())F=F.value,F.unsubscribe("ctmp",this.Nk,this),F.unsubscribe("keystatuseschange",this.Ga,this),F.unsubscribe("licenseerror",this.bG,this),F.unsubscribe("newlicense",this.TA,this),F.unsubscribe("newsession",this.tU,this),F.unsubscribe("sessionready",this.uB,this),F.unsubscribe("fairplay_next_need_key_info", this.gC,this),this.uu.X("html5_enable_vp9_fairplay")&&F.unsubscribe("qualitychange",this.Y2,this),F.dispose();this.D.clear();this.S.removeAll();this.Y.removeAll();this.heartbeatParams=null;g.h0.prototype.Ez.call(this)}; g.Q.nO=function(){for(var R={systemInfo:this.B.nO(),sessions:[]},F=g.N(this.D.values()),h=F.next();!h.done;h=F.next())R.sessions.push(h.value.nO());return R}; g.Q.getInfo=function(){return this.D.size<=0?"no session":""+this.D.values().next().value.getInfo()+(this.N?"/KR":"")}; g.Q.fB=function(R,F){F=F===void 0?!1:F;this.RR()||(ES(R),(this.uu.Po()||F)&&this.publish("ctmp","drmlog",R))};g.A(q67,g.d);g.Q=q67.prototype;g.Q.Sv=function(){return!!this.Wh}; g.Q.Fq=function(){return this.D}; g.Q.handleError=function(R){var F=this;Ojf(this,R);if((R.errorCode!=="html5.invalidstate"&&R.errorCode!=="fmt.unplayable"&&R.errorCode!=="fmt.unparseable"||!S6B(this,R.errorCode,R.details))&&!eln(this,R)){if(this.LI.oR!=="yt"&&oqT(this,R)&&this.videoData.YJ&&(0,g.NU)()/1E3>this.videoData.YJ&&this.LI.oR==="hm"){var h=Object.assign({e:R.errorCode},R.details);h.stalesigexp="1";h.expire=this.videoData.YJ;h.init=this.videoData.Q3/1E3;h.now=(0,g.NU)()/1E3;h.systelapsed=((0,g.NU)()-this.videoData.Q3)/1E3; R=new g.Bz(R.errorCode,h,2);this.BG.Aj(R.errorCode,2,"SIGNATURE_EXPIRED",ES(R.details))}if(re(R.severity)){var a;h=(a=this.BG.loader)==null?void 0:a.B.B;if(this.LI.X("html5_use_network_error_code_enums"))if(mLL(R)&&h&&h.isLocked())var J="FORMAT_UNAVAILABLE";else if(this.LI.S||R.errorCode!=="auth"||R.details.rc!==429)R.errorCode==="ump.spsrejectfailure"&&(J="HTML5_SPS_UMP_STATUS_REJECTED");else{J="TOO_MANY_REQUESTS";var M="6"}else mLL(R)&&h&&h.isLocked()?J="FORMAT_UNAVAILABLE":this.LI.S||R.errorCode!== "auth"||R.details.rc!=="429"?R.errorCode==="ump.spsrejectfailure"&&(J="HTML5_SPS_UMP_STATUS_REJECTED"):(J="TOO_MANY_REQUESTS",M="6");this.BG.Aj(R.errorCode,R.severity,J,ES(R.details),M)}else this.BG.publish("nonfatalerror",R),a=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ef(R.errorCode,R.details),a&&R.errorCode==="manifest.net.connect"&&(R="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.NU)(),Ol(R,"manifest",function(v){F.S=!0;F.dA("pathprobe",v)}, function(v){F.Ef(v.errorCode,v.details)}))}}; g.Q.dA=function(R,F){this.BG.Ja.dA(R,F)}; g.Q.Ef=function(R,F){F=ES(F);this.BG.Ja.Ef(R,F)};EO.prototype.r_=function(R){var F=zlL(this);if(!R)return{rF:JL,v5:JL,M4:JL,F7:JL,P5:JL,kV:JL,Ti:F};var h=JL;if(Lo(F)||this.X("html5_perf_cap_override_sticky"))h=hhI(this,R);return{rF:h,v5:ULL(this,R),M4:DLI(this,R),F7:a3m(this,R.videoData),P5:J2m(this,R.videoData,R),kV:tNn(this,R),Ti:F}}; EO.prototype.wq=function(R){var F;g.DU(this.uu)&&(F=window.screen&&window.screen.width?new g.t7(window.screen.width,window.screen.height):null);F||(F=this.uu.dn?this.uu.dn.clone():this.s5.dl());(lB||hn||R)&&F.scale(g.IX());return F}; EO.prototype.X=function(R){return this.uu.X(R)};g.A(rQ,g.d);rQ.prototype.onError=function(R){if(R!=="player.fatalexception"||this.provider.X("html5_exception_to_health"))R==="sabr.fallback"&&(this.encounteredSabrFallback=!0),R.match(EzG)?this.networkErrorCount++:this.nonNetworkErrorCount++}; rQ.prototype.send=function(){if(!(this.K||this.B<0)){gW_(this);var R=g.R$(this.provider)-this.B,F="PLAYER_PLAYBACK_STATE_UNKNOWN",h=this.playerState.wL;this.playerState.isError()?F=h&&h.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?F="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?F="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?F="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState, 4)?F="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?F="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?F="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(F="PLAYER_PLAYBACK_STATE_PLAYING");h=h69[mS(this.provider.videoData)];a:switch(this.provider.uu.playerCanaryState){case "canary":var a="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":a="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:a="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var J=G12(this.provider), M=this.D<0?R:this.D-this.B;R=this.provider.uu.Y6+36E5<(0,g.NU)();F={started:this.D>=0,stateAtSend:F,joinLatencySecs:M,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:a,playerCanaryStage:J,isAd:this.provider.videoData.isAd(),liveMode:h,hasDrm:!!g.SZ(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:AL(this.provider.videoData)};R||g.MU("html5PlayerHealthEvent",F);this.K=!0;this.dispose()}}; rQ.prototype.Ez=function(){this.K||this.send();window.removeEventListener("error",this.Mb);window.removeEventListener("unhandledrejection",this.Mb);g.d.prototype.Ez.call(this)}; var EzG=/\bnet\b/;g.A(iz2,g.d);iz2.prototype.Ez=function(){EWi(this);g.d.prototype.Ez.call(this)};var BQm=/[?&]cpn=/;g.A(YW,g.d);YW.prototype.flush=function(){var R={};this.D&&(R.pe=this.D);this.B.length>0&&(R.pt=this.B.join("."));this.B=[];return R}; YW.prototype.stop=function(){var R=this,F,h,a;return g.u(function(J){if(J.D==1)return g.Hi(J,2),g.m(J,(F=R.L)==null?void 0:F.stop(),4);if(J.D!=2)return(h=J.B)&&R.logTrace(h),g.yn(J,0);a=g.f_(J);R.D=$$L(a.message);g.Na(J)})}; YW.prototype.logTrace=function(R){this.encoder.reset();this.encoder.add(1);this.encoder.add(R.resources.length);for(var F=g.N(R.resources),h=F.next();!h.done;h=F.next()){h=h.value.replace("https://www.youtube.com/s/","");this.encoder.add(h.length);for(var a=0;a=0?R:g.R$(this.provider),this.KI?BCt.has(this.Wc)&&(this.B.size||(this.Wc==="PL"?R>=this.D+30:R<=this.oR+30||R>=this.D+1200&&R<=this.oR+86400))&&(g.kW(this,R,"vps",[this.Wc]),this.D=R):["PL","B","S"].indexOf(this.Wc)>-1&&(this.B.size||R>=this.D+30)&&(g.kW(this,R,"vps",[this.Wc]),this.D=R),this.B.size)){this.sequenceNumber===7E3&&g.qN(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){A2(this,R);var F=this.provider.BG.sj(); F=g.N(F);for(var h=F.next();!h.done;h=F.next())h=h.value,this.dA(h.key,h.value);F=R;h=this.provider.BG.fA();var a=h.droppedVideoFrames||0,J=h.totalVideoFrames||0,M=a-this.Zj,v=J&&!this.y4;a>h.totalVideoFrames||M>5E3?SOL(this,"html5.badframedropcount","df."+a+";tf."+h.totalVideoFrames):(M>0||v)&&g.kW(this,F,"df",[M]);this.Zj=a;this.y4=J;this.Z>0&&(g.kW(this,R,"glf",[this.Z]),this.Z=0);Av.isActive()&&(R=Av.Fr(),Object.keys(R).length>0&&this.dA("profile",R));this.Sw&&xW(this,"lwnmow");this.provider.uu.Po()&& this.provider.X("html5_record_now")&&this.dA("now",{wt:(0,g.NU)()});R={};this.provider.videoData.D&&(R.fmt=this.provider.videoData.D.itag,(F=this.provider.videoData.L)&&F.itag!==R.fmt&&(R.afmt=F.itag));R.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(R.adcpn=this.adCpn);this.wc&&(R.addocid=this.wc);this.contentCpn&&(R.ccpn=this.contentCpn);this.Uz&&(R.cdocid=this.Uz);this.provider.videoData.cotn&&(R.cotn=this.provider.videoData.cotn);R.el=VC(this.provider.videoData);R.content_v=Ct(this.provider.videoData); R.ns=this.provider.uu.oR;R.fexp=D8L(this.provider.uu.experiments).toString();R.cl=(775466715).toString();(F=this.provider.videoData.adFormat||this.adFormat)&&(R.adformat=F);(F=mS(this.provider.videoData))&&(R.live=F);this.provider.videoData.rL()&&(R.drm=1,this.provider.videoData.N&&(R.drm_system=FuU[this.provider.videoData.N.flavor]||0),this.provider.videoData.drmProduct&&(R.drm_product=this.provider.videoData.drmProduct));Ml()&&this.provider.videoData.S&&(R.ctt=this.provider.videoData.S,R.cttype= this.provider.videoData.H4,this.provider.videoData.mdxEnvironment&&(R.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(R.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.QW&&(R.dai_fallback="1")):this.provider.videoData.Jp?R.dai="cs":this.provider.videoData.bN&&(R.dai="disabled");R.seq=this.sequenceNumber++;if(this.provider.videoData.L3){if(F=this.provider.videoData.L3,R&&F)for(F.ns==="3pp"&&(R.ns="3pp"),this.i9.has(F.ns)&& xW(this,"hbps"),F.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=F.shbpslc),this.provider.uu.experiments.jl("html5_use_server_qoe_el_value")&&this.HG.delete("el"),h=g.N(Object.keys(F)),a=h.next();!a.done;a=h.next())a=a.value,this.HG.has(a)||(R[a]=F[a])}else R.event="streamingstats",R.docid=this.provider.videoData.videoId,R.ei=this.provider.videoData.eventId;this.isEmbargoed&&(R.embargoed="1");Object.assign(R,this.provider.uu.B);if(F=R.seq)F={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+F,serializedWatchEndpointLoggingContext:this.provider.videoData.k0t},this.serializedHouseBrandPlayerServiceLoggingContext&&(F.serializedHouseBrandPlayerServiceLoggingContext=qx(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(F.playerResponseCpn=this.provider.videoData.playerResponseCpn),pz.length&&(F.decoderInfo=pz),this.remoteControlMode&&(F.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(F.remoteConnectedDevices= this.remoteConnectedDevices),F=g.tl(F,HI2),F=g.Tf(F,4),this.B.set("qclc",[F]);R=g.sA("//"+this.provider.uu.DK+"/api/stats/qoe",R);h=F="";a=g.N(this.B.entries());for(J=a.next();!J.done;J=a.next())M=g.N(J.value),J=M.next().value,M=M.next().value,v=void 0,(v=M)!=null&&v.join&&(J="&"+J+"="+M.join(","),J.length>100?h+=J:F+=J);f3m(this,R+F,h.replace(/ /g,"%20"))}this.B.clear()}}; g.Q.j3=function(R){this.Sw=R}; g.Q.Lh=function(){if(this.provider.videoData.N){var R=this.provider.videoData.N;xW(this,"eme-"+(R.keySystemAccess?"final":hc(R)?"ms":MM(R)?"ytfp":Jc(R)?"safarifp":"nonfinal"))}}; g.Q.Y_=Jf(53);g.Q.tV=function(R){this.isEmbargoed=R}; g.Q.Ij=Jf(30);g.Q.Zq=Jf(36);g.Q.onPlaybackRateChange=function(R){var F=g.R$(this.provider);R&&R!==this.Xf&&(g.kW(this,F,"rate",[R]),this.Xf=R);this.KI||this.reportStats(F)}; g.Q.xL=Jf(24);g.Q.getPlayerState=function(R){if(g.V(R,128))return"ER";if(g.V(R,2048))return"B";if(g.V(R,512))return"SU";if(g.V(R,16)||g.V(R,32))return"S";if(R.isOrWillBePlaying()&&g.V(R,64))return"B";var F=rt6[q8(R)];g.Y0(this.provider.uu)&&F==="B"&&this.provider.BG.getVisibilityState()===3&&(F="SU");F==="B"&&g.V(R,4)&&(F="PB");return F}; g.Q.Ez=function(){g.d.prototype.Ez.call(this);g.Y$(this.aR);g.Y$(this.gW)}; g.Q.KU=function(R){this.isOffline=R;g.kW(this,g.R$(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.Q.dA=function(R,F,h){var a=this.Ym.indexOf(R)!==-1;a||this.Ym.push(R);if(!h||!a){var J=typeof F!=="string"?ES(F):F;J=m$2(J);if(!h&&!/^t[.]/.test(J)){var M=g.R$(this.provider)*1E3;J="t."+M.toFixed()+";"+J}$W(this,"ctmp",R+":"+J);this.logger.debug(function(){return"ctmp "+R+" "+J}); j$7(this);return M}}; g.Q.lV=function(R,F,h){this.N={R0Q:Number(this.dA("glrem",{nst:R.toFixed(),rem:F.toFixed(),ca:+h})),AU:R,aNG:F,isAd:h}}; g.Q.G8=function(R,F,h){g.kW(this,g.R$(this.provider),"ad_playback",[R,F,h])}; g.Q.Xw=function(R,F){var h=g.R$(this.provider)*1E3;$W(this,"daism","t."+h.toFixed(0)+";smw."+(R*1E3).toFixed(0)+";smo."+(F*1E3).toFixed(0))}; g.Q.resume=function(){var R=this;isNaN(this.aR)?Zza(this):this.aR=g.B6(function(){R.reportStats()},1E4)}; var Nt={},rt6=(Nt[5]="N",Nt[-1]="N",Nt[3]="B",Nt[0]="EN",Nt[2]="PA",Nt[1]="PL",Nt[-1E3]="ER",Nt[1E3]="N",Nt),BCt=new Set(["PL","B","S"]),pz=[];eha.prototype.update=function(){if(this.Y){var R=this.x6()||0,F=g.R$(this.provider);R>=this.provider.BG.getDuration()-.1&&(this.previouslyEnded=!0);if(R!==this.B||d$2(this,R,F)){var h;if(!(h=RF-this.EX+2||d$2(this,R,F))){h=this.provider.BG.getVolume();var a=h!==this.C,J=this.provider.BG.isMuted()?1:0;J!==this.Z?(this.Z=J,h=!0):(!a||this.L>=0||(this.C=h,this.L=F),h=F-this.L,this.L>=0&&h>2?(this.L=-1,h=!0):h=!1)}h&&(Lz(this),this.K=R);this.EX=F;this.B=R}}}; eha.prototype.x6=function(){var R=this.provider.BG.x6();return this.provider.uu.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&$F(this.provider.videoData)?R+this.provider.BG.wW():R};PKL.prototype.send=function(R){var F=this;if(!this.T$){var h=KY7(this),a=g.sA(this.uri,h);this.uu.X("vss_through_gel_double")&&txn(a);this.Uz&&!this.uu.X("html5_simplify_pings")?CKB(this,a):zhf(this,R).then(function(J){F.Uz&&(J=J||{},J.method="POST",J.postParams={atr:F.attestationResponse});pS2(a,J,{token:F.aR,Ag:F.iY,mdxEnvironment:F.mdxEnvironment},F.uu,R,F.fI,F.isFinal&&F.Y6||F.Oz||F.K&&F.w$)}); this.T$=!0}}; PKL.prototype.D=function(R){R===void 0&&(R=NaN);return Number(R.toFixed(3)).toString()}; var HU={},VxI=(HU.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,HU.LIVING_ROOM_APP_MODE_MAIN=1,HU.LIVING_ROOM_APP_MODE_KIDS=2,HU.LIVING_ROOM_APP_MODE_MUSIC=3,HU.LIVING_ROOM_APP_MODE_UNPLUGGED=4,HU.LIVING_ROOM_APP_MODE_GAMING=5,HU),LS={},D$L=(LS.EMBEDDED_PLAYER_MODE_UNKNOWN=0,LS.EMBEDDED_PLAYER_MODE_DEFAULT=1,LS.EMBEDDED_PLAYER_MODE_PFP=2,LS.EMBEDDED_PLAYER_MODE_PFL=3,LS);g.A(yE,g.d);yE.prototype.YX=function(){this.B.update();vtg(this)&&(RpB(this),FEi(this))}; yE.prototype.Ez=function(){g.d.prototype.Ez.call(this);jx(this);nWL(this.B)}; yE.prototype.nO=function(){return KY7(q$(this,"playback"))}; yE.prototype.ma=function(R){var F=q$(this,"engage");F.KI=R;return l3L(F,Etn(this.provider))};wu7.prototype.isEmpty=function(){return this.endTime===this.startTime};bK.prototype.X=function(R){return this.uu.X(R)}; bK.prototype.getCurrentTime=function(){return this.BG.getCurrentTime()}; bK.prototype.x6=function(){return this.BG.x6()}; var BDn={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.A(g.Sx,g.d);g.Q=g.Sx.prototype;g.Q.YX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.QH){var R;(R=this.K.get(this.QH))==null||R.YX()}else this.B&&this.B.YX()}; g.Q.tV=function(R){this.qoe&&this.qoe.tV(R)}; g.Q.Ij=Jf(29);g.Q.Zq=Jf(35);g.Q.Xw=function(R,F){this.qoe&&this.qoe.Xw(R,F)}; g.Q.dX=function(){if(this.provider.videoData.enableServerStitchedDai&&this.QH){var R;(R=this.K.get(this.QH))!=null&&Lz(R.B)}else this.B&&Lz(this.B.B)}; g.Q.Ef=function(R,F){this.qoe&&SOL(this.qoe,R,F);if(this.D)this.D.onError(R)}; g.Q.onPlaybackRateChange=function(R){if(this.qoe)this.qoe.onPlaybackRateChange(R);this.B&&Lz(this.B.B)}; g.Q.Y_=Jf(52);g.Q.dA=function(R,F,h){this.qoe&&this.qoe.dA(R,F,h)}; g.Q.lV=function(R,F,h){this.qoe&&this.qoe.lV(R,F,h)}; g.Q.IB=function(R){var F;(F=this.qoe)==null||F.IB(R)}; g.Q.m9=function(R){var F;(F=this.qoe)==null||F.m9(R)}; g.Q.j3=function(R){this.qoe&&this.qoe.j3(R)}; g.Q.G8=function(R,F,h){this.qoe&&this.qoe.G8(R,F,h)}; g.Q.xL=Jf(23);g.Q.Qn=function(){if(this.qoe)return this.qoe.Qn()}; g.Q.nO=function(){if(this.provider.videoData.enableServerStitchedDai&&this.QH){var R,F;return(F=(R=this.K.get(this.QH))==null?void 0:R.nO())!=null?F:{}}return this.B?this.B.nO():{}}; g.Q.qj=function(){var R;return(R=this.qoe)==null?void 0:R.qj()}; g.Q.tN=function(R,F){var h;(h=this.qoe)==null||h.tN(R,F)}; g.Q.ma=function(R){return this.B?this.B.ma(R):function(){}}; g.Q.getVideoData=function(){return this.provider.videoData}; g.Q.resume=function(){this.qoe&&this.qoe.resume()};g.A(g.OO,g.d);g.Q=g.OO.prototype;g.Q.eI=function(R,F){this.sync();F&&this.B.array.length>=2E3&&this.RO("captions",1E4);F=this.B;if(R.length>1&&R.length>F.array.length)F.array=F.array.concat(R),F.array.sort(F.B);else{R=g.N(R);for(var h=R.next();!h.done;h=R.next())h=h.value,!F.array.length||F.B(h,F.array[F.array.length-1])>0?F.array.push(h):g.VL(F.array,h,F.B)}this.K=NaN;this.sync()}; g.Q.yw=function(R){R.length>1E4&&g.qN(new g.Pv("Over 10k cueRanges removal occurs with a sample: ",R[0]));if(!this.RR()){var F=new Set(R);this.D=this.D.filter(function(h){return!F.has(h)}); fE2(this.B,F);this.sync()}}; g.Q.GM=function(R,F){if(!this.RR()){var h=this.C2().find(function(a){return a.id===F&&a.namespace===R}); h&&this.yw([h])}}; g.Q.RO=function(R,F){var h=(isNaN(this.K)?O3O(this):this.K)-F;F=this.C2().filter(function(a){return a.namespace===R&&a.endthis.B,M=g.V(h,8)&&g.V(h,16),v=this.BG.RH().isBackground()||h.isSuspended();Kz(this,this.Fo,M&&!v,J,"qoe.slowseek",function(){},"timeout"); var I=isFinite(this.B);I=M&&I&&ti2(F,this.B);var w=!a||Math.abs(a-this.B)>10,E=this.uu.X("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),B=a===0&&this.D&&[11,10].includes(this.D);Kz(this,this.T$,I&&w&&!v&&(!E||!B),J,"qoe.slowseek",function(){F.seekTo(R.B)},"set_cmt"); w=I&&US(F.Ft(),this.B);var r=this.BG.loader;I=!r||r.YQ();var Y=function(){F.seekTo(R.B+.001)}; Kz(this,this.Oz,w&&I&&!v,J,"qoe.slowseek",Y,"jiggle_cmt");I=function(){return R.BG.K2()}; Kz(this,this.NQ,w&&!v,J,"qoe.slowseek",I,"new_elem");B=yY(h);w=h.isBuffering();var p=F.Ft(),k=Vp(p,a),H=k>=0&&p.end(k)>a+5,T=B&&w&&H;E=this.BG.getVideoData();Kz(this,this.Sl,a<.002&&this.B<.002&&M&&g.Y0(this.uu)&&g.UG(E)&&!v,J,"qoe.slowseek",I,"slow_seek_shorts");Kz(this,this.C,E.XO()&&M&&!v&&!E.KI,J,"qoe.slowseek",I,"slow_seek_gapless_shorts");Kz(this,this.oR,T&&!v,B&&!w,"qoe.longrebuffer",Y,"jiggle_cmt");Kz(this,this.aR,T&&!v,B&&!w,"qoe.longrebuffer",I,"new_elem_nnr");if(r){var Z=r.getCurrentTime(); M=F.vg();M=OBO(M,Z);M=!r.isSeeking()&&a===M;Kz(this,this.iY,B&&w&&M&&!v,B&&!w&&!M,"qoe.longrebuffer",function(){F.seekTo(Z)},"seek_to_loader")}M={}; Y=Vp(p,Math.max(a-3.5,0));T=Y>=0&&a>p.end(Y)-1.1;var b=Y>=0&&Y+1=0&&T&&b<11;M.close2edge=T;M.gapsize=b;M.buflen=p.length;this.D&&(M.seekSour=this.D);Kz(this,this.KI,B&&w&&!v,B&&!w,"qoe.longrebuffer",function(){},"timeout",M); M=h.isSuspended();M=this.BG.Wa()&&!M;Kz(this,this.Y,M,!M,"qoe.start15s",function(){R.BG.ag("ad")},"ads_preroll_timeout"); M=this.uu.experiments.jl("html5_use_playback_rate_in_skip_slow_ad")?this.BG.getPlaybackRate()*1E3:1E3;k=a-this.L5;Kz(this,this.IR,g.UG(E)&&r,B&&!w,"qoe.longrebuffer",function(){R.BG.aZ()},"reset_media_source"); Kz(this,this.PG,g.UG(E)&&r,B&&!w,"qoe.longrebuffer",I,"reset_media_element");this.L===0&&(this.S=a);r=w&&this.B===0&&a>1&&a===this.S;Kz(this,this.fI,g.UG(E)&&r,B&&!w,"qoe.slowseek",function(){F.seekTo(0)},"reseek_after_time_jump"); v=h.isOrWillBePlaying()&&!v;H=this.BG.R3()-a<6&&!H&&this.BG.TF();Kz(this,this.Z,E.XO()&&v&&w&&H,B&&!w,"qoe.longrebuffer",function(){R.BG.K2(!1,!0)},"handoff_end_long_buffer_reload"); v=this.D===104||this.BG.YV;h=pt(E)&&E.isAd()&&!E.KI&&v&&(w||g.V(h,8)&&g.V(h,16));Kz(this,this.HG,h,J,"qoe.start15s",I,"gapless_ad_slow_start");this.L=a;this.N.start()}}; z1.prototype.Ef=function(R,F,h){F=this.nO(F);F.wn=h;F.wdup=this.K[R]?"1":"0";this.BG.Ef(new g.Bz(R,F));this.K[R]=!0}; z1.prototype.nO=function(R){R=Object.assign(this.BG.nO(!0),R.nO());this.B&&(R.stt=this.B.toFixed(3));this.BG.getVideoData().isLivePlayback&&(R.ct=this.BG.getCurrentTime().toFixed(3),R.to=this.BG.wW().toFixed(3));delete R.uga;delete R.euri;delete R.referrer;delete R.fexp;delete R.vm;return R}; PS.prototype.reset=function(){this.B=this.D=this.K=this.startTimestamp=0;this.L=!1}; PS.prototype.test=function(R){if(!this.N||this.D)return!1;if(!R)return this.reset(),!1;R=(0,g.NU)();if(!this.startTimestamp)this.startTimestamp=R,this.K=0;else if(this.K>=this.N)return this.D=R,!0;this.K+=1;return!1}; PS.prototype.nO=function(){var R={},F=(0,g.NU)();this.startTimestamp&&(R.wsd=(F-this.startTimestamp).toFixed());this.D&&(R.wtd=(F-this.D).toFixed());this.B&&(R.wssd=(F-this.B).toFixed());return R};g.A(RMI,g.d);g.Q=RMI.prototype;g.Q.setMediaElement=function(R){(this.mediaElement=R)?(this.mediaElement&&(this.N||this.K||!this.mediaElement.o1()||this.seekTo(.01,{RT:"seektimeline_setupMediaElement"})),t2(this)):D3(this)}; g.Q.getCurrentTime=function(R){R=R===void 0?!1:R;if(lK(this.BG)){if(this.X("html5_use_centralized_player_time")&&!R&&!isNaN(this.S))return this.S;if(!isNaN(this.D))return this.D}else{if(this.X("html5_use_centralized_player_time")&&!R&&!isNaN(this.S)&&isFinite(this.S))return this.S;if(!isNaN(this.D)&&isFinite(this.D))return this.D}return this.mediaElement&&Ywa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.K||0}; g.Q.S0=function(){return this.HG}; g.Q.x6=function(){return this.getCurrentTime()-this.wW()}; g.Q.cV=function(){return this.B?this.B.cV():Infinity}; g.Q.isAtLiveHead=function(R){if(!this.B)return!1;R===void 0&&(R=this.getCurrentTime());return nz(this.B,R)}; g.Q.ai=function(){return!!this.B&&this.B.ai()}; g.Q.seekTo=function(R,F){var h=F===void 0?{}:F;F=h.kq===void 0?!1:h.kq;var a=h.Nc===void 0?0:h.Nc;var J=h.hC===void 0?!1:h.hC;var M=h.rI===void 0?0:h.rI;var v=h.RT===void 0?"":h.RT;var I=h.seekSource===void 0?void 0:h.seekSource;var w=h.US===void 0?!1:h.US;var E=h.zE===void 0?!1:h.zE;h=h.zB===void 0?!1:h.zB;w&&(R+=this.wW());AL(this.videoData)&&I===29&&(this.HG=void 0);w=R=this.Ka())||!g.uR(this.videoData),H||(T={st:T,mst:this.Ka()},this.B&&this.X("html5_high_res_seek_logging")&&(T.ht=this.B.cV(),T.adft=lEI(this.B)),this.BG.dA("seeknotallowed",T)),T=H));if(!T)return this.L&&(this.L=null,EwI(this)),g.jV(this.getCurrentTime());T=.005;E&&this.X("html5_sabr_seek_no_shift_tolerance")&&(T=0);if(Math.abs(R-this.D)<=T&&this.fI)return this.N;v&&(T=R,(this.uu.Po()||this.X("html5_log_seek_reasons"))&& this.BG.dA("seekreason",{reason:v,tgt:T}));I&&(this.oR.D=I);this.fI&&D3(this);this.N||(this.N=new rh);R&&!isFinite(R)&&J5I(this,!1);(v=h||w)||(v=R,v=!(this.videoData.isLivePlayback&&this.videoData.K&&!this.videoData.K.B&&!(this.mediaElement&&this.mediaElement.aH()>0&&sc(this.mediaElement)>0)||TT(this.videoData)&&this.Vd()===this.Ka(!1)?0:isFinite(v)||!TT(this.videoData)));v||(R=UO(this,R,J));R&&!isFinite(R)&&J5I(this,!1);this.X("html5_use_centralized_player_time")?this.S=R:this.D=this.K=R;this.IR= M;this.Y=0;this.B&&(J=this.B,M=R,D67(J,M,!1),Vz2(J,M));J=this.BG;M=R;v={kq:F,seekSource:I};J.hp.K=M;h=J.oF;h.mediaTime=M;h.B=!0;v.kq&&J.cU(v);v=M>J.videoData.endSeconds&&M>J.videoData.limitedPlaybackDurationInSeconds;J.SV&&v&&isFinite(M)&&tcf(J);MF.start&&tcf(this.BG);return this.N}; g.Q.Ka=function(R){if(!this.videoData.isLivePlayback)return this.BG.videoData.Ka();var F;return Ic(this.videoData)&&((F=this.mediaElement)==null?0:F.isPaused())&&this.videoData.B?(R=this.getCurrentTime(),Oea(this.oz(R)*1E3)+R):this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&AL(this.videoData)&&this.videoData.B?R?this.videoData.B.aR||0:this.videoData.B.B1||0:TT(this.videoData)&&this.videoData.oR&&this.videoData.B?this.videoData.B.Ka()+this.timestampOffset:this.videoData.K&&this.videoData.K.B? !R&&this.B?this.B.cV():this.BG.videoData.Ka()+this.timestampOffset:this.mediaElement?P6()?Oea(this.mediaElement.e1().getTime()):sc(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.Q.Vd=function(){if(this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&AL(this.videoData)){var R;return((R=this.videoData.B)==null?void 0:R.ES)||0}R=this.videoData?this.videoData.Vd()+this.timestampOffset:this.timestampOffset;if(Ic(this.videoData)&&this.videoData.B){var F,h=Number((F=this.videoData.progressBarStartPosition)==null?void 0:F.utcTimeMillis)/1E3;F=this.getCurrentTime();F=this.oz(F)-F;if(!isNaN(h)&&!isNaN(F))return Math.max(R,h-F)}return R}; g.Q.KT=function(){this.N||this.seekTo(this.K,{RT:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.Q.Y5=function(){return this.fI&&!isFinite(this.D)}; g.Q.Ez=function(){Mcg(this,null);this.oR.dispose();g.d.prototype.Ez.call(this)}; g.Q.nO=function(){var R={};this.loader&&Object.assign(R,this.loader.nO());this.mediaElement&&Object.assign(R,this.mediaElement.nO());return R}; g.Q.UL=function(R){this.timestampOffset=R}; g.Q.getStreamTimeOffset=function(){return TT(this.videoData)?0:this.videoData.B?this.videoData.B.getStreamTimeOffset():0}; g.Q.wW=function(){return this.timestampOffset}; g.Q.oz=function(R){return this.videoData&&this.videoData.B?this.videoData.B.oz(R-this.timestampOffset):NaN}; g.Q.AC=function(){if(!this.mediaElement)return 0;if(d9(this.videoData)){var R=this.mediaElement,F=R.Ft();R=(Wz(F)&&R.getDuration()?F.end(F.length-1):0)+this.timestampOffset-this.Vd();F=this.Ka()-this.Vd();return Math.max(0,Math.min(1,R/F))}return this.mediaElement.AC()}; g.Q.RB=function(R){this.Z&&(this.Z.B=R)}; g.Q.AF=function(R,F){this.BG.dA("requestUtcSeek",{time:R});AL(this.videoData)&&(this.HG=R);var h;(h=this.loader)==null||h.AF(R);F&&(this.Uz=F)}; g.Q.ER=function(R){AL(this.videoData)&&(this.HG=void 0);if(this.Uz)this.BG.dA("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Uz}),this.BG.seekTo(this.Uz,{RT:"utcSeekingFallback_streamTime"}),this.Uz=0;else{var F=this.getCurrentTime();isNaN(F)||(R=this.oz(F)-R,F-=R,this.BG.dA("utcSeekingFallback",{source:"estimate",timeSeconds:F}),this.BG.seekTo(F,{RT:"utcSeekingFallback_estimate"}))}}; g.Q.Kg=function(){this.Uz=0}; g.Q.X=function(R){return this.uu&&this.uu.X(R)};g.A(Cz,g.d);Cz.prototype.start=function(){this.D.start()}; Cz.prototype.stop=function(){this.D.stop()}; Cz.prototype.clear=function(){for(var R=g.N(this.B.values()),F=R.next();!F.done;F=R.next())F.value.clear()}; Cz.prototype.sample=function(){for(var R=g.N(this.K),F=R.next();!F.done;F=R.next()){var h=g.N(F.value);F=h.next().value;h=h.next().value;this.B.has(F)||this.B.set(F,new A57(YQL.has(F)));this.B.get(F).update(h())}this.D.start()}; var YQL=new Set(["networkactivity"]);A57.prototype.update=function(R){this.D?(this.buffer.add(R-this.B||0),this.B=R):this.buffer.add(R)}; A57.prototype.clear=function(){this.buffer.clear();this.B=0};Rt.prototype.eN=function(){return this.started}; Rt.prototype.start=function(){this.started=!0}; Rt.prototype.reset=function(){this.finished=this.started=!1};var TPB=!1;g.A(g.J4,g.h0);g.Q=g.J4.prototype;g.Q.Ez=function(){this.logger.debug("dispose");g.Y$(this.p6);ygm(this.u0);this.visibility.unsubscribe("visibilitystatechange",this.u0);kK7(this.Ja);g.Fm(this.Ja);gD(this);g.er.Ew(this.Yn);this.sJ();this.ZN=null;g.Fm(this.videoData);g.Fm(this.mL);g.Fm(this.Hp);g.Fm(this.Vy);g.hT(this.fnt);this.SV=null;g.h0.prototype.Ez.call(this)}; g.Q.G8=function(R,F,h,a,J){if(this.uu.X("html5_log_ad_playback_docid")){var M=this.Ja;if(M.qoe){M=M.qoe;var v=this.uu.oR||"yt";g.kW(M,g.R$(M.provider),"ad_playback",[R,F,h,J,v])}}else this.Ja.G8(R,F,h);this.X("html5_log_media_perf_info")&&this.dA("adloudness",{ld:a.toFixed(3),cpn:R})}; g.Q.fz=function(){var R;return(R=this.loader)==null?void 0:R.fz()}; g.Q.GH=function(){var R;return(R=this.loader)==null?void 0:R.GH()}; g.Q.tX=function(){var R;return(R=this.loader)==null?void 0:R.tX()}; g.Q.Ne=function(){var R;return(R=this.loader)==null?void 0:R.Ne()}; g.Q.rL=function(){return this.videoData.rL()}; g.Q.BV=function(){return this.X("html5_not_reset_media_source")&&!this.rL()&&!this.videoData.isLivePlayback&&g.UG(this.videoData)&&!this.uu.supportsGaplessShorts()}; g.Q.U5=function(){this.videoData.Y&&(this.videoData.T8=this.videoData.T8||this.qa.bu().fz(),this.videoData.tF=this.videoData.tF||this.qa.bu().GH());if(x7_(this.videoData)||!vn(this.videoData)){var R=this.videoData.errorDetail;this.Aj(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),R,R,this.videoData.OS||void 0)}this.X("html5_generate_content_po_token")&&this.lO();this.X("html5_enable_d6de4")&&this.As()}; g.Q.getVideoData=function(){return this.videoData}; g.Q.W=function(){return this.uu}; g.Q.r_=function(){return this.Zt.r_(this.ZN)}; g.Q.RH=function(){return this.visibility}; g.Q.Ys=function(){return this.mediaElement&&this.mediaElement.An()?this.mediaElement.G_():null}; g.Q.He=function(){return this.mediaElement}; g.Q.n5=function(){if(this.X("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.W().S&&this.W().houseBrandUserStatus&&this.dA("hbut",{status:this.W().houseBrandUserStatus},!0);if(this.videoData.Fd())return!0;this.Aj("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.Q.ke=function(R){(R=R===void 0?!1:R)||r4L(this.Ja);this.V1=R;!this.n5()||this.KG.eN()?g.Y0(this.uu)&&this.videoData.isLivePlayback&&this.KG.eN()&&!this.KG.finished&&!this.V1&&this.Kn():(this.KG.start(),R=this.Ja,g.R$(R.provider),R.qoe&&Zza(R.qoe),this.Kn())}; g.Q.Kn=function(){if(this.videoData.isLoaded()){var R=this.mL;g.RI(R.LI.experiments,"html5_player_min_build_cl")>0&&g.RI(R.LI.experiments,"html5_player_min_build_cl")>775466715&&XHm(R,"oldplayer");dOn(this)}else this.videoData.lT||this.videoData.zd?this.V1&&g.Y0(this.uu)&&this.videoData.isLivePlayback||(this.videoData.lT?v8i(this.videoData):(R=this.Ja,R.qoe&&(R=R.qoe,xW(R,"protected"),R.provider.videoData.N?R.Lh():R.provider.videoData.subscribe("dataloaded",R.Lh,R)),FLB(this.videoData))):!this.videoData.loading&& this.Wj&&eML(this)}; g.Q.xG=function(R){this.Z1=R;this.loader&&(Nug(this.loader,new g.Fd(R)),this.dA("sdai",{sdsstm:1}))}; g.Q.NS=function(R,F,h){var a;(a=this.loader)==null||a.NS(R,F,h)}; g.Q.Yc=Jf(8);g.Q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.Q.isBackground=function(){return this.visibility.isBackground()}; g.Q.FS=function(){var R=this;this.logger.debug("Updating for format change");M6(this).then(function(){return at(R)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.Q.vU=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.ke();this.n5()&&!g.V(this.playerState,128)&&(this.mV.eN()||(this.mV.start(),this.videoData.CB?this.aT(N8(this.playerState,4)):this.aT(N8(N8(this.playerState,8),1))),nwL(this))}; g.Q.gx=function(){return this.KG.finished}; g.Q.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.IE(!0),kK7(this.Ja),g.Fm(this.Ja),g.er.Ew(this.Yn))}; g.Q.JN=function(R,F){R=R===void 0?!0:R;(F===void 0||F)&&this.mediaElement&&this.mediaElement.pause();this.aT(R?new g.$u(14):new g.$u)}; g.Q.wQ=function(){this.Ja.dX()}; g.Q.Aj=function(R,F,h,a,J,M){this.logger.debug(function(){return"set player error: ec="+R+", detail="+J}); var v,I;g.wd(q$7,h)?v=h:h?I=h:v="GENERIC_WITHOUT_LINK";a=(a||"")+(";a6s."+DC());if(R==="auth"||R==="drm.auth"||R==="heartbeat.stop")h&&(a+=";r."+h.replaceAll(" ","_")),M&&(a+="sr."+M.replaceAll(" ","_"));F={errorCode:R,errorDetail:J,errorMessage:I||g.Ks[v]||"",zC:v,OS:M||"",SM:a,N9:F,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=R;vu(this,"dataloaderror");this.aT(xu(this.playerState,128,F));g.er.Ew(this.Yn);gD(this);this.Iu()}; g.Q.ag=function(R){this.vE=this.vE.filter(function(F){return R!==F}); this.logger.debug(function(){return"set preroll ready for "+R}); this.mV.eN()&&nwL(this)}; g.Q.MC=function(){var R;(R=!!this.vE.length)||(R=this.A4.B.array[0],R=!!R&&R.start<=-0x8000000000000);return R}; g.Q.ai=function(){return this.hp.ai()}; g.Q.isPlaying=function(){return this.playerState.isPlaying()}; g.Q.HA=function(){return this.playerState.HA()&&this.videoData.CB}; g.Q.getPlayerState=function(){return this.playerState}; g.Q.LN=function(R){var F;(F=this.loader)==null||F.LN(R)}; g.Q.m1=function(R){var F;(F=this.loader)==null||F.m1(R)}; g.Q.getPlayerType=function(){return this.playerType}; g.Q.getPreferredQuality=function(){if(this.ZN){var R=this.ZN;R=R.videoData.NN.compose(R.videoData.f3);R=yZ(R)}else R="auto";return R}; g.Q.FA=Jf(16);g.Q.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.Q.setMediaElement=function(R){this.logger.debug("set media element");if(this.mediaElement&&R.G_()===this.mediaElement.G_()&&(R.isView()||this.mediaElement.isView())){if(R.isView()||!this.mediaElement.isView())this.e_(),this.mediaElement=R,this.mediaElement.BG=this,Jkg(this),this.hp.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.sJ();if(!this.playerState.isError()){var F=H1(this.playerState,512);g.V(F,8)&&!g.V(F,2)&&(F=N8(F,1));R.isView()&&(F=H1(F,64));this.aT(F)}this.mediaElement= R;this.mediaElement.BG=this;!g.Y0(this.uu)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Jkg(this);this.hp.setMediaElement(this.mediaElement);this.X("html5_prewarm_media_source")&&!this.mL.Sv()&&dFn(this.mediaElement)}}; g.Q.sJ=function(R,F,h){R=R===void 0?!1:R;F=F===void 0?!1:F;h=h===void 0?!1:h;this.logger.debug("remove media element");if(this.mediaElement){var a=this.getCurrentTime();a>0&&(this.hp.K=a);this.hp.setMediaElement(null);!R&&this.BV()?W_g(this):this.Mz(h);this.loader&&(V4(this.loader),EF(this,F));this.Cb.stop();if(this.mediaElement&&(!this.mV.eN()&&!this.Wa()||this.playerState.isError()||g.V(this.playerState,2)||this.aT(N8(this.playerState,512)),this.mediaElement)){this.e_();if(R||!this.mediaElement.isView())this.rW.Vb("mesv_s"), this.mediaElement.stopVideo(),Bu(this);this.mediaElement=this.mediaElement.BG=null}}}; g.Q.playVideo=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;var h=this,a,J,M,v,I,w,E;return g.u(function(B){if(B.D==1){h.logger.debug("start play video");var r=window.google_image_requests;r&&r.length>10&&(window.google_image_requests=r.slice(-10));if(g.V(h.playerState,128))return B.return();if(h.mL.Fq())return h.publish("signatureexpired"),B.return();h.mediaElement&&r4L(h.Ja);h.vU();(g.V(h.playerState,64)||R)&&h.aT(N8(h.playerState,8));return h.mV.finished&&h.mediaElement?h.ZN||!h.Hy?B.G$(2): g.m(B,h.Hy,3):B.return()}if(B.D!=2&&g.V(h.playerState,128))return B.return();if(!h.videoData.K)return h.videoData.isLivePlayback&&!g.Q9(h.uu.N,!0)?(a="html5.unsupportedlive",J=2):(a=h.videoData.rL()?"fmt.unplayable":"fmt.noneavailable",J=1),g.qN(Error("selectableFormats")),M=h.X("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",h.Aj(a,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",M),B.return();if(h.Hf()&&h.videoData.K.B)return h.logger.debug("rebuild playbackData for airplay"), B.return(M6(h));if(lK(h))r=h.hp,Lt(r.videoData)&&!r.isAtLiveHead(r.getCurrentTime())&&r.ai()&&r.BG.seekTo(Infinity,{RT:"seektimeline_peggedToLive",seekSource:34});else if(Lt(h.videoData)&&(v=h.getCurrentTime()v;if(!I||!v){M&&I&&(a=Math.max(a,M));var w;M=Kv7(F,(w=J.B)==null?void 0:w.videoInfos);w=F.BG.getPlaybackRate();w>1&&M&&(w=ca_(F.uu.N,J.B.videoInfos,w),R.B!==0&&w< R.B&&F.BG.setPlaybackRate(1));var E,B;R=((E=J.videoData.D)==null?void 0:(B=E.video)==null?void 0:B.qualityOrdinal)||0;g.fn("yt-player-quality",{quality:a,previousQuality:R},31104E3);F.uu.schedule.policy.L=Eq()>=480;if(F.X("html5_exponential_memory_for_sticky")){E=F.uu.lq;B=1;var r=r===void 0?!1:r;roL(E,"sticky-lifetime");E.values["sticky-lifetime"]&&E.X6["sticky-lifetime"]||(E.values["sticky-lifetime"]=0,E.X6["sticky-lifetime"]=0);r&&XU(E,"sticky-lifetime")>.0625&&(B=E.X6["sticky-lifetime"]*2);E.values["sticky-lifetime"]+= 1*Math.pow(2,E.B/B);E.X6["sticky-lifetime"]=B;E.L.start()}if(F.X("html5_perf_cap_override_sticky")){r=F.K;E=F.X("html5_perserve_av1_perf_cap");E=E===void 0?!1:E;if(E===void 0?0:E){B=rV();R=g.N(Object.keys(B));for(F=R.next();!F.done;F=R.next())F=F.value,F.indexOf("1")!==0&&delete B[F];g.fn("yt-player-performance-cap",B,2592E3)}else g.Z1("yt-player-performance-cap");WeT(E);if(E){E=g.N(CL.keys());for(B=E.next();!B.done;B=E.next())B=B.value,B.startsWith("1")||CL.delete(B);E=g.N(BS.values());for(B=E.next();!B.done;B= E.next())B=B.value,B.startsWith("1")||BS.delete(B);E=g.N(r.keys());for(B=E.next();!B.done;B=E.next())B=B.value,B.startsWith("1")||r.delete(B)}else CL.clear(),BS.clear(),r.clear()}}}this.loader&&(r=this.loader,h=h||"",r.policy.B?Vv(r.L.B,h):Vv(r.B.N,h));this.WE()}; g.Q.getUserPlaybackQualityPreference=function(){return this.videoData.K&&!this.videoData.K.B?yZ(this.videoData.NN):TE[Eq()]}; g.Q.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.Q.setUserAudio51Preference=function(R,F){this.getUserAudio51Preference()!==R&&(this.dA("toggle51",{pref:R}),g.fn("yt-player-audio51",R,F?31536E3:2592E3),this.FS())}; g.Q.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.Q.setProximaLatencyPreference=function(R){var F=this.getProximaLatencyPreference();this.dA("proxima",{pref:R});g.fn("yt-player-proxima-pref",R,31536E3);F!==R&&(R=this.hp,R.nI=!0,R.BG.seekTo(Infinity,{RT:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.Q.getProximaLatencyPreference=function(){var R;return(R=BG())!=null?R:0}; g.Q.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.Q.lO=function(){this.videoData.videoId?this.qa.lO(this.videoData):this.dA("povid",{})}; g.Q.As=function(){this.videoData.videoId?this.qa.As(this.videoData):this.dA("piavid",{})}; g.Q.WE=function(){if(!this.RR()&&!g.V(this.playerState,128)&&this.videoData.K){if(this.videoData.K.B)h4(this);else{var R=wD(this),F=this.videoData;a:{var h=this.videoData.gf;if(R.B){for(var a=g.N(h),J=a.next();!J.done;J=a.next()){J=J.value;var M=J.getInfo(),v=g.L7[M.video.quality];if((!R.K||M.video.quality!=="auto")&&v<=R.B){h=J;break a}}h=h[h.length-1]}else h=h[0]}F.Fo=h;l0i(this,R.reason,gBL(this,this.videoData.Fo))}if(this.X("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.hp.C= !1,this.playVideo()}}; g.Q.mK=function(R,F){if(this.RR()||g.V(this.playerState,128))return!1;var h,a=!((h=this.videoData.K)==null||!h.B);h=a&&F?this.getCurrentTime()-this.wW():NaN;if(this.uu.experiments.jl("html5_record_audio_format_intent")){var J=this.Ja;if(J.qoe){J=J.qoe;var M=[R.jw.id,isNaN(h)?"m":"t"];g.kW(J,g.R$(J.provider),"afi",M)}}if(a)return F&&(a=gwB(this.hp),this.dA("aswh",{id:R.id,xtags:R.xtags,bh:a.toFixed(3)})),this.loader.setAudioTrack(R,h,F),!0;if(VcT(this)){a:{F=this.mediaElement.audioTracks();for(a=0;a< F.length;++a)if(h=F[a],h.label===R.jw.getName()){if(h.enabled){F=!1;break a}F=h.enabled=!0;break a}F=void 0}F&&this.dA("hlsaudio",{id:R.id})}else{a:if(F=this.videoData,F.L&&!ef(F.L)||R===F.RZ||!F.gf||F.gf.length<=0)F=!1;else{a=g.N(F.gf);for(h=a.next();!h.done;h=a.next()){h=h.value;if(!(h instanceof LZ)){F=!1;break a}J=R.jw.getId();h.D&&(XTL(h.D,J),h.UP=null)}F.RZ=R;F=!0}F&&at(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.dA("hlsaudio",{id:R.id}))}return!0}; g.Q.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.Q.getAudioTrack=function(){if(VcT(this)){var R=CVi(this);if(R)return R}return this.videoData.getAudioTrack()}; g.Q.Kz=function(){return this.videoData.L}; g.Q.Gc=function(){if(this.videoData.X("html5_trigger_loader_when_idle_network")&&!this.videoData.Mt()&&AL(this.videoData)){var R;(R=this.loader)!=null&&R.Of()}}; g.Q.q$=function(){if(pt(this.videoData)&&this.videoData.X("html5_gapless_append_early")){var R;(R=this.loader)!=null&&R.Of()}}; g.Q.onPlayerRequestSent=function(R){this.qa.onPlayerRequestSent(R)}; g.Q.Bu=function(R){R=R===void 0?!1:R;if(this.loader){var F=this.loader,h=F.Bu;var a=this.videoData;a=a.X("html5_ssdai_use_post_for_media")&&a.enableServerStitchedDai?!1:TT(a)&&a.Qs&&!a.isAd();h.call(F,a,R)}}; g.Q.Mz=function(R){R=R===void 0?!1:R;this.Yo&&(this.logger.debug("remove media source"),uuI(this.Yo),this.Bu(R),this.Yo.dispose(),this.Yo=null)}; g.Q.s0=function(){return this.Yo}; g.Q.E5=function(R,F,h,a){function J(v){try{axn(M,v,F,h)}catch(I){g.qN(I),v={msi:"1",ename:I&&typeof I==="object"&&"name"in I?String(I.name):void 0},M.X("html5_log_fmt_unplaybable_trigger")&&(v.trg="setmediasrc"),M.handleError(new g.Bz("fmt.unplayable",v,1))}} var M=this;F=F===void 0?!1:F;h=h===void 0?!1:h;Ffg(this,a===void 0?!1:a);this.Yo=R;this.BV()&&Ec(this.Yo)==="open"?J(this.Yo):osf(this.Yo,J)}; g.Q.Or=function(R){this.logger.debug("onNeedKeyInfo");this.JS.set(R.initData,R);this.z0&&(this.z0.Or(R),this.X("html5_eme_loader_sync")||this.JS.remove(R.initData))}; g.Q.r9=function(R){this.videoData.Wg=g.NR("auto",R,!1,"u");h4(this)}; g.Q.RB=function(R){var F=R.reason,h=R.B.info,a=R.token,J=R.videoId,M=this.Ja,v=this.videoData;if(h!==v.L){var I=!v.L;v.L=h;F!=="m"&&F!=="t"&&(F=I?"i":"a");var w=F==="m"||F==="t";this.uu.experiments.jl("html5_refactor_sabr_audio_format_selection_logging")?this.w2=new uD7(v,h,F,"",a,J):(F=new uD7(v,h,F,"",a),M.qoe&&(M=M.qoe,h=g.R$(M.provider),HFi(M,h,F)));this.publish("internalaudioformatchange",v,!I&&w)}this.hp.RB(R.B.index)}; g.Q.Iv=function(R){this.publish("localmediachange",R)}; g.Q.Ua=function(R){R=R===void 0?{}:R;var F;(F=this.loader)==null||F.Ua(this.uu,QC(this.videoData),R)}; g.Q.Fq=function(){return this.mL.Fq()}; g.Q.NR=function(R){this.Ef(new g.Bz("staleconfig",{reason:R}))}; g.Q.handleError=function(R){this.mL.handleError(R)}; g.Q.Sv=function(){return this.mL.Sv()}; g.Q.ER=function(R){this.hp.ER(R)}; g.Q.K2=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;var h=this,a,J,M;return g.u(function(v){if(v.D==1){h.loader&&h.loader.Rl();h.loader&&h.loader.RR()&&gD(h);if(h.X("html5_enable_vp9_fairplay")&&h.rL()&&(a=h.videoData.B)!=null)for(var I in a.B)a.B.hasOwnProperty(I)&&(a.B[I].B=null,a.B[I].K=!1);h.aT(N8(h.playerState,2048));h.publish("newelementrequired");return R?g.m(v,M6(h),2):v.G$(2)}h.videoData.Mt()&&((J=h.loader)==null?0:J.Uz)&&!lK(h)&&((M=h.isAtLiveHead())&&Lt(h.videoData)?h.seekTo(Infinity, {RT:"videoPlayer_getNewElement"}):h.videoData.Xd&&h.loader&&(I=h.loader,I.MQ.Mt&&(I.MQ.Xd||I.MQ.L||I.MQ.isPremiere?(I.seek(0,{RT:"loader_resetSqless"}),I.videoTrack.Y=!0,I.audioTrack.Y=!0,I.videoTrack.N=!0,I.audioTrack.N=!0):DL(I.MQ)&&FD(I))));F&&h.seekTo(0,{seekSource:105});g.V(h.playerState,8)&&h.playVideo();g.Na(v)})}; g.Q.cg=function(R){this.dA("hgte",{ne:+R});this.videoData.Y=!1;R&&this.K2();this.loader&&Uz7(this.loader)}; g.Q.Ac=function(R){this.dA("newelem",{r:R});this.K2()}; g.Q.pauseVideo=function(R){R=R===void 0?!1:R;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!R)if(g.V(this.playerState,8))this.aT(Lv(this.playerState,4,8));else if(this.HA())at(this);else return;g.V(this.playerState,128)||(R?this.aT(N8(this.playerState,256)):this.aT(Lv(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.uR(this.videoData)&&this.loader&&EF(this,!1)}; g.Q.stopVideo=function(){this.pauseVideo();this.loader&&(EF(this,!1),this.loader.M2())}; g.Q.Iu=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;if(this.BV()&&F){var h;(h=this.mediaElement)==null||h.Iu()}else{var a;(a=this.mediaElement)==null||a.stopVideo()}Bu(this);gD(this);g.V(this.playerState,128)||(R?this.aT(H1(H1(N8(this.playerState,4),8),16)):this.aT(xu(this.playerState)));this.videoData.videoId&&this.uu.Sl.remove(this.videoData.videoId)}; g.Q.seekTo=function(R,F){F=F===void 0?{}:F;this.logger.debug(function(){return"SeekTo "+R+", "+JSON.stringify(F)}); g.V(this.playerState,2)&&at(this);F.dSI&&this.aT(N8(this.playerState,2048));F.seekSource!==58&&F.seekSource!==60||!this.X("html5_update_vss_during_gapless_seeking")||st7(this.Ja,F.seekSource);this.hp.seekTo(R,F);this.A4.sync()}; g.Q.cU=function(R){this.rW.L.D=(0,g.NU)();g.V(this.playerState,32)||(this.aT(N8(this.playerState,32,R==null?void 0:R.seekSource)),g.V(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Na()}; g.Q.iQ=function(R){R=R==null?void 0:R.seekSource;g.V(this.playerState,32)?(this.aT(Lv(this.playerState,16,32,R)),this.publish("endseeking")):g.V(this.playerState,2)||this.aT(N8(this.playerState,16,R));R=this.rW.L;var F=this.videoData,h=this.playerState.isPaused();if(F.clientPlaybackNonce&&!isNaN(R.B)){if(Math.random()<.01){h=h?"pbp":"pbs";var a={startTime:R.B};F.S&&(a.cttAuthInfo={token:F.S,videoId:F.videoId});TQ("seek",a);g.L4({clientPlaybackNonce:F.clientPlaybackNonce},"seek");isNaN(R.D)||Hf("pl_ss", R.D,"seek");Hf(h,(0,g.NU)(),"seek")}R.reset()}}; g.Q.t8=function(R){this.iQ(R)}; g.Q.mB=function(){this.publish("SEEK_COMPLETE")}; g.Q.N_=function(R){var F=this.qa,h=this.videoData.clientPlaybackNonce,a=this.playerType;if(R.scope===4){var J=R.type;if(J){var M=F.pO(),v=M.getVideoData().clientPlaybackNonce;a===1&&(v=h);if(a=c6i(F,v)){if(h=a.getVideoData())R.writePolicy===2&&h.sabrContextUpdates.has(J)||(R.sendByDefault&&h.HG.add(J),h.sabrContextUpdates.set(J,R)),F.X("html5_enable_t1_enf_on_sabr")&&(R=J===5,J=Ivi(h.playerResponse),R?(R=J?1:0,JF(R,"m.p_",{}),zu("MBSTAT",R)):R=1,R===0&&F.Xo.WG("onAbnormalityDetected"))}else M.dA("scuset", {ncpf:"1",ccpn:v,crcpn:h})}else g.qN(Error("b/380308491: contextUpdateType is undefined"))}}; g.Q.Oj=function(){if(this.playerType===2)return this.qa.Oj("")}; g.Q.getCurrentTime=function(R){return this.hp.getCurrentTime(R===void 0?!1:R)}; g.Q.S0=function(){return this.hp.S0()}; g.Q.x6=function(){return this.hp.x6()}; g.Q.Me=function(){return this.x6()}; g.Q.cV=function(){return this.hp.cV()}; g.Q.getPlaylistSequenceForTime=function(R){return this.videoData.getPlaylistSequenceForTime(R-this.wW())}; g.Q.Sb=function(){var R=NaN;this.mediaElement&&(R=this.mediaElement.Sb());return R>=0?R:this.getCurrentTime()}; g.Q.oz=function(){var R;return((R=this.videoData.B)==null?0:R.oz)?this.videoData.B.oz(this.getCurrentTime()-this.wW()):this.mediaElement&&(R=this.mediaElement.e1())&&(R=R.getTime(),!isNaN(R))?R/1E3+this.getCurrentTime():NaN}; g.Q.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.wW():this.Ka()?this.Ka():0}; g.Q.pA=function(){var R=new x6m;if(this.loader){var F=this.uu.schedule,h=this.uu.Po();h=h===void 0?!1:h;R.lz=F.KI;R.xz=F.PG;R.bandwidthEstimate=mo(F);if(h){h=(F.Z.Wf()*1E3).toFixed();var a=(F.fI.Wf()*1E3).toFixed(),J=bo(F).toFixed(2),M=((F.Y.Wf()||0)*1E9).toFixed(2),v=F.K.Wf().toFixed(0),I=F.Oz.Wf().toFixed(0),w=F.C.percentile(.5).toFixed(2),E=F.C.percentile(.92).toFixed(2),B=F.C.percentile(.96).toFixed(2),r=F.C.percentile(.98).toFixed(2);F.B?F.B.reset():F.B=new NM;F.B.add(F.Uz);F.B.add(F.interruptions.length); for(var Y=0,p=F.interruptions.length-1;p>=0;p--){var k=F.interruptions[p];F.B.add(k-Y);Y=k}Y=0;for(p=F.L.length-1;p>=0;p--){k=F.L[p];var H=k.stamp/36E5;F.B.add(H-Y);Y=H;F.B.add(k.net/1E3);F.B.add(k.max)}F=F.B.zq();R.B={ttr:h,ttm:a,d:J,st:M,bw:v,abw:I,v50:w,v92:E,v96:B,v98:r,"int":F}}xXg(this.loader,R)}else this.mediaElement&&(R.HY=pv(this.mediaElement));R.lz=this.lz;R.xz=this.xz;R.K=this.isAtLiveHead()&&this.isPlaying()?own(this):NaN;return R}; g.Q.LU=function(R,F){this.xz+=R;this.lz+=F}; g.Q.AC=function(){return this.mediaElement?g.uR(this.videoData)?1:d9(this.videoData)?this.isAtLiveHead()||this.ai()?1:this.hp.AC():this.mediaElement.AC():0}; g.Q.kS=function(){var R=this.Dl,F=WS(R,"bandwidth"),h=WS(R,"bufferhealth"),a=WS(R,"livelatency"),J=WS(R,"networkactivity"),M=cS(R,"bandwidth"),v=cS(R,"bufferhealth"),I=cS(R,"livelatency");R=cS(R,"networkactivity");var w=this.fA(),E=w.droppedVideoFrames;w=w.totalVideoFrames;var B=this.getCurrentTime();if(this.z0){var r="IT/"+(this.z0.B.getInfo()+"/"+yZ(this.Ug()));r+="/"+this.z0.getInfo()}else r="";var Y=this.isGapless(),p=this.Kr(),k=this.Qn(),H=g.It(this),T=this.getPlayerState(),Z=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var b=0;var O="";if(this.Z1){if(this.Z1.mY){O="D,";break a}b=this.Z1.va;O=this.Z1.vc.substring(0,4)}b>0?(b="AD"+b+", ",O&&(b+=O+", "),O=b):O=""}return{I_:M,bL:v,currentTime:B,MZ:r,droppedVideoFrames:E,isGapless:Y,Kr:p,dh:k,hP:F,XN:h,PH:a,gw:J,JP:I,fv:R,Gb:H,playerState:T,R9:Z,uD:O,totalVideoFrames:w}}; g.Q.nO=function(R){var F={};if(R===void 0?0:R){Object.assign(F,this.Ja.nO());this.mediaElement&&(Object.assign(F,this.mediaElement.nO()),R=this.fA(),F.dvf=R.droppedVideoFrames,F.tvf=R.totalVideoFrames);this.loader&&Object.assign(F,this.loader.nO());this.z0&&(F.drm=JSON.stringify(this.z0.nO()));F.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(F.debug_error=JSON.stringify(this.playerState.wL));this.MC()&&(F.prerolls=this.vE.join(","));this.videoData.Xf&&(F.ismb=this.videoData.Xf); this.videoData.latencyClass!=="UNKNOWN"&&(F.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(F.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)F.is_mosaic=1;this.videoData.cotn&&(F.is_offline=1,F.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(F.playerResponseCpn=this.videoData.playerResponseCpn);this.qa.isOrchestrationLeader()&&(F.leader=1);this.videoData.isLivePlayback&& (this.videoData.B&&zl(this.videoData.B)&&(F.segduration=zl(this.videoData.B)),R=this.hp,F.lat=R.Z?uq_(R.Z.L):0,F.liveutcstart=this.videoData.liveUtcStartSeconds);F.relative_loudness=this.videoData.Ym.toFixed(3);if(R=g.It(this))F.optimal_format=R.video.qualityLabel;F.user_qual=Eq();F.release_version=G[18]}F.debug_videoId=this.videoData.videoId;return F}; g.Q.addCueRange=function(R){this.VE([R])}; g.Q.removeCueRange=function(R){this.A4.yw([R])}; g.Q.h8=function(){this.A4.sync()}; g.Q.RO=function(R,F){return this.A4.RO(R,F)}; g.Q.VE=function(R,F){this.A4.eI(R,F)}; g.Q.WK=function(R){this.A4.yw(R)}; g.Q.C2=function(){return this.A4.C2()||[]}; g.Q.yG=function(){return this.hK}; g.Q.Hf=function(){return this.visibility.Hf()}; g.Q.pY=function(){this.mediaElement&&this.mediaElement.pY()}; g.Q.LNR=function(){vu(this)}; g.Q.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.Q.e_=function(){g.TP(this.OI)}; g.Q.Uao=function(){this.Na();this.publish("onLoadProgress",this.AC())}; g.Q.iB=function(R){var F=R.target.ut();if(this.mediaElement&&this.mediaElement.ut()&&this.mediaElement.ut()===F){rkn(this,R.type);switch(R.type){case "error":var h=QY(this.mediaElement)||"",a=this.mediaElement.pK();if(h==="capability.changed"){this.X("html5_restart_on_capability_change")?(this.dA("capchg",{msg:a}),this.K2(!0)):M6(this);return}if(this.mediaElement.hasError()&&(a={msg:a},this.X("html5_log_fmt_unplaybable_trigger")&&(a.trg="elementevt"),S6B(this.mL,h,a)))return;if(this.isBackground()&& this.mediaElement.JG()===4){this.Iu();GK(this,"unplayable");return}break;case "durationchange":h=this.mediaElement.getDuration();isFinite(h)&&(!this.Yo||h>0)&&h!==1&&this.Td(h);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());jta(this.A4);this.Ja.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":sRB(this);this.publish("onLoadedMetadata");vBL(this);h=this.oz();this.videoData.DZ&&(this.videoData.DZ=h);break;case "loadstart":vBL(this); break;case "progress":case "suspend":this.VN.HT();break;case "playing":this.rW.Vb("plev");this.vI&&!lK(this)&&(this.vI=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{RT:"videoplayer_onPlaying"})));break;case "timeupdate":h=this.mediaElement&&!this.mediaElement.getCurrentTime();a=this.mediaElement&&this.mediaElement.aH()===0;if(h&&(!this.M$||a))return;this.M$=this.M$||!!this.mediaElement.getCurrentTime();M8m(this);this.Na();if(!this.mediaElement||this.mediaElement.ut()!== F)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.vg().length>0&&this.mediaElement.Ft().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.X("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.aH()>2||!this.mediaElement.isSeeking()&&US(this.mediaElement.Ft(),this.mediaElement.getCurrentTime()))&&(h=this.mediaElement.nO(),h.bh=pv(this.mediaElement).toFixed(3), this.dA("uwe",h));break;case "resize":sRB(this);this.videoData.D&&this.videoData.D.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.JL&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&this.getCurrentTime()===0&&g.YV){GK(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.ut()===F){kwm(this.hp,R);this.publish("videoelementevent",R);F=this.playerState;var J=this.oF,M=this.mediaElement;h=this.uu.experiments; a=this.videoData.clientPlaybackNonce;if(!g.V(F,128)){var v=F.state;M=M?M:R.target;var I=M.getCurrentTime();if(!g.V(F,64)||R.type!=="ended"&&R.type!=="pause"){var w=M.getDuration();w=M.isEnded()||I>1&&Math.abs(I-w)<1.1;var E=R.type==="pause"&&M.isEnded();I=R.type==="ended"||R.type==="waiting"||R.type==="timeupdate"&&!g.V(F,4)&&!mY(J,I);if(E||w&&I)M.ev()>0&&M.ut()&&(v=14);else switch(R.type){case "error":QY(M)&&(v|=128);break;case "pause":g.V(F,256)?(v^=256)||(v=64):g.V(F,32)||g.V(F,2)||g.V(F,4)||(v= 4,g.V(F,1)&&g.V(F,8)&&(v|=1));break;case "playing":I=v;v=(v|8)&-1093;I&4?(v|=1,Aa(J,M,!0)):mY(J,M.getCurrentTime())&&(v&=-2);g.V(F,1)&&Aa(J,M)&&(v|=1);break;case "seeking":v|=16;g.V(F,8)&&(v|=1);v&=-3;break;case "seeked":v&=-17;Aa(J,M,!0);break;case "waiting":g.V(F,2)||(v|=1);Aa(J,M);break;case "timeupdate":I=g.V(F,16),w=g.V(F,4),(g.V(F,8)||I)&&!w&&mY(J,M.getCurrentTime())&&(v=8),Aa(J,M)&&(v|=1)}}J=v;v=null;J&128&&(v=R.target,M=QY(v),I=1,M?(M==="capability.changed"&&(I=2),w="GENERIC_WITHOUT_LINK", E=v.nO(),E.mediaElem="1",h.jl("html5_log_fmt_unplaybable_trigger")&&(E.trg="melem"),/AUDIO_RENDERER/.test(v.pK())&&(w="HTML5_AUDIO_RENDERER_ERROR"),v={errorCode:M,errorMessage:g.Ks[w]||"",zC:w,SM:ES(E),N9:I,cpn:F.wL?F.wL.cpn:""}):v=null,v&&(v.cpn=a));F=xu(F,J,v)}!g.V(this.playerState,1)&&g.V(F,1)&&Bo_(this,"evt"+R.type);this.aT(F)}}}; g.Q.sRl=function(R){R=R.B.availability==="available";R!==this.hK&&(this.hK=R,this.publish("airplayavailabilitychange"))}; g.Q.Szb=function(){var R=(0,g.NU)(),F=this.mediaElement.Hf();this.dA("airplay",{ia:F});!F&&!isNaN(this.Wm)&&R-this.Wm<2E3||(this.Wm=R,F!==this.Hf()&&(R=this.visibility,R.B!==F&&(R.B=F,R.u0()),this.dA("airplay",{rbld:F}),this.FS()),this.publish("airplayactivechange"))}; g.Q.wj=function(R){if(this.loader){var F=this.loader,h=F.K,a=F.getCurrentTime(),J=Date.now()-h.C;h.C=NaN;h.dA("sdai",{adfetchdone:R,d:J});R&&!isNaN(h.Y)&&h.D!==3&&n2(h.loader,a,h.Y,h.S);h.policy.D?h.N=NaN:h.L=NaN;eh(h,4,h.D===3?"adfps":"adf");V4(F)}}; g.Q.vy=function(){g.Y$(this.p6);this.Cb.stop();this.videoData.KI=!0;this.uu.RZ=!0;this.uu.Sw=0;var R=this.mL;if(R.videoData.D){var F=R.LI.N,h=R.videoData.D.Qt;F.L.has(h)&&(F.L.delete(h),F.D=!0)}R.B.stop();this.pg();g.V(this.playerState,8)&&this.aT(H1(this.playerState,65));this.V1=!1;R=this.Ja;R.B&&hp2(R.B);R.D&&(R=R.D,F=g.R$(R.provider),R.B<0&&(R.B=F,R.delay.start()),R.D=F,R.L=F);g.VI(this.Hp);this.publish("playbackstarted");(R=g.hG("yt.scheduler.instance.clearPriorityThreshold"))?R():cv(0)}; g.Q.pg=function(){var R=this.qa.Bc(),F={},h={};!yh("pbs",this.rW.timerName)&&Bf.measure&&Bf.getEntriesByName&&(Bf.getEntriesByName("mark_nr")[0]?Mli("mark_nr"):Mli());R.videoId&&(F.videoId=R.videoId);R.clientPlaybackNonce&&!this.X("web_player_early_cpn")&&(F.clientPlaybackNonce=R.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(h.isPausedOnLoad=!0);h.itag=R.D?Number(R.D.itag):-1;R.n2&&(h.preloadType=String(this.Hi?2:1));F.liveStreamMode=h69[mS(R)];F.playerInfo=h;this.rW.infoGel(F); if(this.loader){R=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(R.K&&(F=window.performance.getEntriesByName(R.K),F.length&&(F=F[0],R.tick("vri",F.fetchStart),R.tick("vdns",F.domainLookupEnd),R.tick("vreq",F.requestStart),R.tick("vrc",F.responseEnd))),R.D&&(F=window.performance.getEntriesByName(R.D),F.length&&(F=F[0],R.tick("ari",F.fetchStart),R.tick("adns",F.domainLookupEnd),R.tick("areq",F.requestStart),R.tick("arc",F.responseEnd))));R=R.ticks;for(var a in R)R.hasOwnProperty(a)&& this.rW.tick(a,R[a])}}; g.Q.Na=function(R){var F=this;R=R===void 0?!1:R;if(this.mediaElement&&this.videoData){GwB(this.hp,this.isPlaying());var h=this.getCurrentTime();!this.loader||g.V(this.playerState,4)&&g.uR(this.videoData)||g.V(this.playerState,32)&&AL(this.videoData)||yCi(this.loader,h);h>5&&(this.hp.K=h);var a=g.Cn();a?g.er.Ew(this.Yn):g.rb(this.Yn);var J=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!J||Ic(this.videoData))&&!g.V(this.playerState,128)){var M=function(){if(F.mediaElement&&!g.V(F.playerState, 128)){F.uu.Po()&&rkn(F,"pfx");var v=F.getCurrentTime();F.X("html5_buffer_underrun_transition_fix")&&(v-=F.wW());var I=pv(F.mediaElement),w=g.V(F.playerState,8),E=mY(F.oF,v),B=DF7(F.oF,v,(0,g.NU)(),I);w&&E?F.aT(H1(F.playerState,1)):w&&B?(w=F.getDuration(),E=Lt(F.videoData),w&&Math.abs(w-v)<1.1?(F.dA("setended",{ct:v,bh:I,dur:w,live:E}),F.mediaElement.Ju()?(F.logger.debug("seek to 0 because of looping"),F.seekTo(0,{RT:"videoplayer_loop",seekSource:37})):F.JN()):(F.playerState.isBuffering()||Bo_(F,"progress_fix"), F.aT(N8(F.playerState,1)))):(w&&!E&&!B&&v>0&&(w=(Date.now()-F.Wh)/1E3,E=F.getDuration(),v>E-1&&F.dA("misspg",{t:v.toFixed(2),d:E.toFixed(2),r:w.toFixed(2),bh:I.toFixed(2)})),F.playerState.isPaused()&&F.playerState.isBuffering()&&pv(F.mediaElement)>5&&F.aT(H1(F.playerState,1)));F.Na()}}; this.mediaElement.vg().length===0?this.Yn=a?g.er.J0(M,100):g.Eg(M,100):this.Yn=a?g.er.J0(M,500):g.Eg(M,500)}this.videoData.FW=h;!R&&this.isPlaying()&&GXB(this);FYg(this.Zt,this.ZN,this.He(),this.isBackground())&&h4(this);this.publish("progresssync",R);J&&Ic(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.Q.m$=function(){this.Aj("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.Q.Qn=function(){return this.Ja.Qn()}; g.Q.SS=function(){return this.loader?this.loader.SS():mo(this.uu.schedule,!0)}; g.Q.aT=function(R){if(!g.T7(this.playerState,R)){this.logger.debug(function(){return"Setting state "+R.toString()}); var F=new g.G2(R,this.playerState);this.playerState=R;Y7a(this);var h=!this.K6.length;this.K6.push(F);var a=this.mediaElement&&this.mediaElement.isSeeking();g.i5(F,1)&&this.loader&&DzT(this.loader);a=F.oldState.state===8&&!a;g.i5(F,1)&&a&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.loader&&(VZf(this.loader),this.mediaElement&&pv(this.mediaElement)>=5&&WvL(this.Zt,this.ZN)&&h4(this));(a=g.RI(this.uu.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(R,1)&&(g.V(R,8)||g.V(R, 16))?this.XC.start(a):this.XC.stop();(IK(F,8)<0||g.i5(F,1024))&&this.Cb.stop();!g.i5(F,8)||this.videoData.KI||g.V(F.state,1024)||this.Cb.start();g.V(F.state,8)&&IK(F,16)<0&&!g.V(F.state,32)&&!g.V(F.state,2)&&this.playVideo();g.V(F.state,2)&&d9(this.videoData)&&(this.Td(this.getCurrentTime()),this.Na(!0));g.i5(F,2)&&(this.IE(!0),this.uu.Po()&&this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&AL(this.videoData)&&this.videoData.B&&(a={minst:""+this.videoData.B.ES,cminst:""+(this.videoData.B.Vd()+ this.wW()),maxst:""+this.videoData.B.B1,hts:""+this.videoData.B.aR,cmaxst:""+(this.videoData.B.Ka()+this.wW())},this.dA("sabrSeekableBoundaries",a)));g.i5(F,128)&&this.Iu();this.videoData.B&&this.videoData.isLivePlayback&&!this.gK&&(IK(F,8)<0?jyI(this.videoData.B):g.i5(F,8)&&this.videoData.B.resume());vwO(this.hp,F);pun(this.Ja,F);if(h&&!this.RR())try{for(var J=g.N(this.K6),M=J.next();!M.done;M=J.next()){var v=M.value;Z3f(this.A4,v);this.publish("statechange",v)}}finally{this.K6.length=0}}}; g.Q.iS=function(){this.rW.tick("qoes")}; g.Q.KT=function(){this.hp.KT()}; g.Q.bG=function(R,F,h,a){a:{var J=this.mL;a=a===void 0?"LICENSE":a;h=h.substring(0,256);var M=re(F);R==="drm.keyerror"&&this.z0&&this.z0.D.keys.length>1&&J.L<96&&(R="drm.sessionlimitexhausted",M=!1);var v=J.LI.experiments.jl("html5_retry_on_drm_unavailable"),I=J.LI.experiments.jl("html5_retry_on_drm_key_error"),w=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(v&&R==="drm.unavailable"||I&&R==="drm.keyerror"&&!h.match(w))J.Ef("qoe.restart",{retryOnDrmError:1,e:R,detail:h}),J.BG.K2(!0);else{if(M)if(J.videoData.D&& J.videoData.D.video.isHdr())nqO(J,R);else{if(J.BG.Aj(R,F,a,h),jQI(J,{detail:h}))break a}else J.Ef(R,{detail:h});R==="drm.sessionlimitexhausted"&&(J.dA("retrydrm",{sessionLimitExhausted:1}),J.L++,EBg(J.BG))}}}; g.Q.KCn=function(){var R=this,F=g.RI(this.uu.experiments,"html5_license_constraint_delay"),h=c6();F&&h?(F=new g.DY(function(){R.WE();vu(R)},F),g.z(this,F),F.start()):(this.WE(),vu(this))}; g.Q.WM=function(R){this.publish("heartbeatparams",R)}; g.Q.Ga=function(R){this.dA("keystatuses",aw2(R));var F="auto",h=!1;this.videoData.D&&(F=this.videoData.D.video.quality,h=this.videoData.D.video.isHdr());a:{switch(F){case "highres":case "hd2880":F="UHD2";break;case "hd2160":case "hd1440":F="UHD1";break;case "hd1080":case "hd720":F="HD";break;case "large":case "medium":case "small":case "light":case "tiny":F="SD";break;default:F="";break a}h&&(F+="HDR")}F=vS(R)?gQ(R,F):R.L.includes(F);if(this.X("html5_enable_vp9_fairplay")){if(h)if(R.Y){var a;if((a= this.z0)==null?0:vy(a.B))if((h=this.z0)==null)h=0;else{for(var J=a=void 0,M=g.N(h.D.values()),v=M.next();!v.done;v=M.next())v=v.value,a||(a=MNa(v,"SD")),J||(J=MNa(v,"AUDIO"));h.fB({sd:a,audio:J});h=a==="output-restricted"||J==="output-restricted"}else h=!F;if(h){this.dA("drm",{dshdr:1});nqO(this.mL);return}}else{this.videoData.ql||(this.videoData.ql=!0,this.dA("drm",{dphdr:1}),this.K2(!0));return}var I;if((I=this.z0)==null?0:vy(I.B))return}else if(I=R.Y&&F,h&&!I){nqO(this.mL);return}F||gQ(R,"AUDIO")&& gQ(R,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),R=aw2(R),this.Kf?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.X("html5_report_fatal_drm_restricted_error_killswitch")||this.Aj("drm.keyerror",2,void 0,"info."+R)):(this.Kf=!0,this.Ef(new g.Bz("qoe.restart",Object.assign({},{retrydrm:1},R))),h4(this),EBg(this)))}; g.Q.mtu=function(){if(!this.videoData.KI&&this.mediaElement&&!this.isBackground()){var R="0";this.mediaElement.aH()>0&&pv(this.mediaElement)>=5&&this.videoData.K&&this.videoData.K.B&&(this.aT(N8(this.playerState,1)),Bo_(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),R="1");Y7a(this);var F=this.videoData.K;R={restartmsg:R,mfmt:!sG(this.videoData),mdrm:!(!(F&&F.videoInfos&&F.videoInfos.length&&F.videoInfos[0].qH)||this.z0),mfmtinfo:!this.videoData.D,prerolls:this.MC()?this.vE.join(","): "0"};if(this.z0){F=this.z0;if(F.D.size<=0){var h="ns;";F.C||(h+="nr;");F=h+="ql."+F.K.length}else F=aw2(F.D.values().next().value),F=ES(F);R.drmp=F}var a;Object.assign(R,((a=this.loader)==null?void 0:a.nO())||{});var J;Object.assign(R,((J=this.mediaElement)==null?void 0:J.nO())||{});this.Ja.Ef("qoe.start15s",ES(R));this.publish("loadsofttimeout")}}; g.Q.Td=function(R){this.videoData.lengthSeconds!==R&&(this.videoData.lengthSeconds=R,vu(this))}; g.Q.IE=function(R,F){var h=this;R=R===void 0?!1:R;if(!this.Yk)if(yh("att_s","player_att")||f4("att_s",void 0,"player_att"),this.X("use_rta_for_player"))(function(){var J,M,v,I;return g.u(function(w){switch(w.D){case 1:if(!(J=R)){w.G$(2);break}return g.m(w,g.SPO(),3);case 3:J=!w.B;case 2:if(J)return w.return();g.Hi(w,4);M=$6i(h.Ja);if(!M)throw Error();v={};return g.m(w,g.bdn((v.cpn=h.videoData.clientPlaybackNonce,v.encryptedVideoId=h.videoData.videoId||"",v),3E4),6);case 6:I=w.B;if(h.Yk)throw Error(); if(!I.challenge)throw g.qN(Error("Not sending attestation ping; no attestation challenge string")),Error();h.Yk=!0;var E=[I.challenge];I.error?E.push("r1c="+I.error):I.webResponse&&E.push("r1a="+I.webResponse);var B;((B=I.adblockReporting)==null?void 0:B.reportingStatus)!==void 0&&E.push("r6a="+I.adblockReporting.reportingStatus);var r;((r=I.adblockReporting)==null?void 0:r.broadSpectrumDetectionResult)!==void 0&&E.push("r6b="+I.adblockReporting.broadSpectrumDetectionResult);M(E.join("&"));f4("att_f", void 0,"player_att");g.yn(w,0);break;case 4:g.f_(w),f4("att_e",void 0,"player_att"),g.Na(w)}})})().then(function(){F==null||F()}); else{var a=new g.Pt2(this.videoData);if("c1a"in a.EU&&!g.Wl.isInitialized()){f4("att_wb",void 0,"player_att");this.jk===2&&Math.random()<.01&&g.qN(Error("Botguard not available after 2 attempts"));if(R)return;if(this.jk<5){g.VI(this.Vy);this.jk++;return}}(a=g.zoB(a))?(f4("att_f",void 0,"player_att"),QtI(this.Ja,a),this.Yk=!0):f4("att_e",void 0,"player_att")}}; g.Q.R3=function(R){R=R===void 0?!1:R;return Lt(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.ai()||g.uR(this.videoData))?this.getCurrentTime():this.Ka(R)}; g.Q.Nh=function(){return this.Vd()}; g.Q.Ka=function(R){return this.hp.Ka(R===void 0?!1:R)}; g.Q.Vd=function(){return this.hp.Vd()}; g.Q.wW=function(){return this.hp?this.hp.wW():0}; g.Q.getStreamTimeOffset=function(){return this.hp?this.hp.getStreamTimeOffset():0}; g.Q.MI=function(){var R=0;this.uu.X("web_player_ss_media_time_offset")&&(R=this.getStreamTimeOffset()===0?this.wW():this.getStreamTimeOffset());return R}; g.Q.setPlaybackRate=function(R){var F;this.playbackRate!==R&&Kv7(this.Zt,(F=this.videoData.K)==null?void 0:F.videoInfos)&&(this.playbackRate=R,h4(this));this.playbackRate=R;this.mediaElement&&this.mediaElement.setPlaybackRate(R)}; g.Q.getPlaybackRate=function(){return this.playbackRate}; g.Q.getPlaybackQuality=function(){var R="unknown";if(this.videoData.D&&(R=this.videoData.D.video.quality,R==="auto"&&this.mediaElement)){var F=this.Ys();F&&F.videoHeight>0&&(R=Hz(F.videoWidth,F.videoHeight))}return R}; g.Q.isHdr=function(){return!!(this.videoData.D&&this.videoData.D.video&&this.videoData.D.video.isHdr())}; g.Q.sendVideoStatsEngageEvent=function(R,F){var h=this.Ja;h.B?(h=q$(h.B,"engage"),h.KI=R,h.send(F)):F&&F()}; g.Q.ma=function(R){return this.Ja.ma(R)}; g.Q.isAtLiveHead=function(R,F){F=F===void 0?!1:F;return Lt(this.videoData)&&(this.t1||F)?this.hp.isAtLiveHead(R):!1}; g.Q.AI=function(){var R=this.Ka(),F=this.getCurrentTime(),h;(h=!Lt(this.videoData))||(h=this.hp,h=!(h.B&&h.B.K));return h||this.ai()||isNaN(R)||isNaN(F)?0:Math.max(0,R-F)}; g.Q.Np=function(R){(this.t1=R)||this.Cb.stop();this.videoData.B&&(R?this.videoData.B.resume():jyI(this.videoData.B));if(this.loader){var F=this.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&this.Wa()&&this.videoData.isLivePlayback;R&&!F?this.loader.resume():EF(this,!0)}g.V(this.playerState,2)||R?g.V(this.playerState,512)&&R&&this.aT(H1(this.playerState,512)):this.aT(N8(this.playerState,512));F=this.Ja;F.qoe&&(F=F.qoe,g.kW(F,g.R$(F.provider),"stream",[R?"A":"I"]))}; g.Q.wJ=function(R){this.Ja.Ef("player.exception",ES({n:R.name,m:R.message}))}; g.Q.xL=Jf(22);g.Q.Y_=Jf(51);g.Q.tV=function(R){this.Ja.tV(R)}; g.Q.IB=function(R){this.Ja.IB(R)}; g.Q.j3=function(R){this.Ja.j3(R)}; g.Q.Ij=Jf(28);g.Q.Zq=Jf(34);g.Q.m9=function(R){this.Ja.m9(R)}; g.Q.uG=function(){this.dA("hidden",{},!0)}; g.Q.fA=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.Q.YQ=function(){return this.loader?this.loader.YQ():!0}; g.Q.setLoop=function(R){this.loop=R;this.mediaElement&&!g.Y0(this.uu)&&this.mediaElement.setLoop(R)}; g.Q.Ju=function(){return this.mediaElement&&!g.Y0(this.uu)?this.mediaElement.Ju():this.loop}; g.Q.UL=function(R){this.dA("timestamp",{o:R.toString()});this.hp.UL(R)}; g.Q.Uf=function(R){this.rW.tick(R)}; g.Q.uT=function(R){return this.rW.uT(R)}; g.Q.Vb=function(R){this.rW.Vb(R)}; g.Q.dA=function(R,F,h){this.Ja.dA(R,F,h===void 0?!1:h)}; g.Q.V4=function(R,F,h){this.Ja.dA(R,F,h===void 0?!1:h)}; g.Q.Ef=function(R){this.Ja.Ef(R.errorCode,ES(R.details));R=R.errorCode;if(this.videoData.isLivePlayback&&(R==="qoe.longrebuffer"||R==="qoe.slowseek")||R==="qoe.restart"){R=this.loader?D3T(this.loader.videoTrack):{};var F,h;this.dA("lasoe",Object.assign(this.loader?D3T(this.loader.audioTrack):{},(F=this.Yo)==null?void 0:(h=F.B)==null?void 0:h.Wk()));var a,J;this.dA("lvsoe",Object.assign(R,(a=this.Yo)==null?void 0:(J=a.D)==null?void 0:J.Wk()))}}; g.Q.lV=function(R,F,h){this.Ja.lV(R,F,h)}; g.Q.gB=function(R,F,h,a,J,M,v,I){var w;if((w=this.videoData.B)!=null&&w.isLive){var E=F.playerType===2?F:R,B=R.videoData.videoId,r=F.videoData.videoId;if(B&&r){w=this.Ja;if(w.qoe){var Y=w.qoe,p=R.cpn,k=F.cpn,H=E.videoData.PJ,T=Y.provider.videoData.clientPlaybackNonce,Z=Y.provider.videoData.videoId,b=k!==T&&r!==Z;T=p!==T&&B!==Z;Y.reportStats();Y.adCpn&&Y.adCpn!==p||(Y.adCpn=T?p:"",Y.wc=T?B:"",Y.adFormat=T?H:void 0,XSi(Y,M?4:J?2:0,k,r,a),Y.reportStats(),Y.adCpn=b?k:"",Y.wc=b?r:"",Y.adFormat=b?H:void 0, XSi(Y,M?5:J?3:1,p,B,h),Y.reportStats())}h=R.cpn;if(w.K.has(h)){if(J=w.K.get(h),Z3(J,!0).send(),jx(J),h!==w.provider.videoData.clientPlaybackNonce){GK_(J);var O;(O=w.B)==null||aEm(O);w.K.delete(h)}}else w.QH=w.provider.videoData.clientPlaybackNonce,w.QH&&w.B&&(w.K.set(w.QH,w.B),Z3(w.B).send(),jx(w.B));O=F.cpn;E=E.videoData;a-=this.MI();if(w.K.has(O)){a=w.K.get(O);var n=a.K&&isNaN(a.N)?fz(a):NaN;a=gtn(a,!1);isNaN(n)||(a.Y=n);a.send()}else a=A47(w,w.provider,E,a),w.K.set(O,a),IEO(a,new g.G2(N8(new g.$u, 8),new g.$u)),hp2(a),(n=w.B)==null||jx(n);w.QH=O;if(this.X("html5_unify_csi_server_stitched_transition_logging")){if(w=this.rW,n=F.cpn,a=this.videoData.clientPlaybackNonce,F=F.videoData,R=(R.cpn===a?"video":"ad")+"_to_"+(n===a?"video":"ad"),R!=="video_to_ad"){a=R==="ad_to_video"?void 0:F;E=a==null?void 0:a.G3;O={};if(F==null?0:F.S)O.cttAuthInfo={token:F.S,videoId:F.videoId};v&&(O.startTime=v);TQ(R,O);var K,Rg,U;v={targetVideoId:(K=F==null?void 0:F.videoId)!=null?K:"empty_video",targetCpn:n,adVideoId:(Rg= a==null?void 0:a.videoId)!=null?Rg:"empty_video",adClientPlaybackNonce:(U=E==null?void 0:E.cpn)!=null?U:a==null?void 0:a.clientPlaybackNonce};E&&(v.adBreakType=E.adBreakType,v.adType=E.adType);g.L4(v,R);Qw(w,I,R)}}else K=this.rW,U=this.videoData.clientPlaybackNonce,Rg=F.videoData,U=(R.cpn===U?"video":"ad")+"_to_"+(F.cpn===U?"video":"ad"),R={},Rg.S&&(R.cttAuthInfo={token:Rg.S,videoId:Rg.videoId}),v&&(R.startTime=v),TQ(U,R),g.L4({targetVideoId:Rg.videoId,targetCpn:F.cpn,isSsdai:!0},U),K.uu.X("html5_enable_ssdai_transition_with_only_enter_cuerange")? v||Qw(K,I,U):Qw(K,I,U)}}else this.logger.B(360717806,"SSTEvent for nonSS")}; g.Q.sj=function(){var R=this.qa,F=R.MM;R.MM=[];return F}; g.Q.yT=function(R){this.videoData.L1=!0;this.Ef(new g.Bz("sabr.fallback",R));this.K2(!0)}; g.Q.Gg=function(R,F){this.videoData.QW=!0;if(F===void 0||F)this.Ef(new g.Bz("qoe.restart",R)),this.K2(!0);this.videoData.We()&&this.X("html5_reload_caption_on_ssdai_fallback")&&this.qa.Fi()}; g.Q.RE=function(R){this.dA("sdai",{aftimeout:R});this.Ef(new g.Bz("ad.fetchtimeout",{timeout:R}))}; g.Q.Oh=function(R,F){this.dA("timelineerror",R);R=new g.Bz("dai.timelineerror",R);F?this.Aj("dai.timelineerror",1,"RETRYABLE_ERROR",ES(R.details)):this.Ef(R)}; g.Q.rY=function(){return g.R$(this.Ja.provider)}; g.Q.getPlayerSize=function(){return this.s5.getPlayerSize()}; g.Q.dl=function(){return this.s5.dl()}; g.Q.zV=function(){return this.rW}; g.Q.qh=function(){return this.qa.qh()}; g.Q.getVolume=function(){return this.qa.getVolume()}; g.Q.BE=function(){return this.qa.BE()}; g.Q.isMuted=function(){return this.qa.isMuted()}; g.Q.Lz=function(){return this.qa.Lz()}; g.Q.W8=function(){this.gK=!0}; g.Q.X=function(R){return this.uu.X(R)}; g.Q.pU=function(R,F,h,a,J){this.dA("xvt",{m:R,g:F?1:0,tt:h?1:0,np:a?1:0,c:J})}; g.Q.YG=function(){var R;(R=this.loader)==null||R.resume()}; g.Q.Wa=function(){return g.x7(this.vE,"ad")}; g.Q.IQ=function(){var R=this.getCurrentTime(),F=R-this.wW();var h=this.mediaElement?cz(this.mediaElement.Ft()):0;h=Math.floor(Math.max(h-F,0))+100;var a;return((a=this.loader)==null?0:a.IQ(F,h))?(this.dA("sdai",{skipad:1,ct:F.toFixed(3),adj:h.toFixed(3)}),AL(this.videoData)&&this.loader.seek(F+h,{seekSource:89,RT:"videoplayer_skipServerStitchedAd"}),$Oi(this.hp,R),!0):!1}; g.Q.Po=function(){return this.uu.Po()}; g.Q.TK=function(){if(this.X("html5_generate_content_po_token"))return this.videoData.Ul||"";this.qa.PZ();return this.uu.DG||""}; g.Q.zg=function(){if(this.videoData.videoId)return this.videoData.uN}; g.Q.T2=function(){return this.videoData.videoId}; g.Q.NO=function(){return this.qa.hx}; g.Q.nz=function(){return this.V1}; g.Q.TF=function(){return this.qa.TF()}; g.Q.AF=function(R,F,h){this.X("html5_report_seek_source_for_utc_seeks")&&this.aT(N8(this.playerState,16,h));this.hp.AF(R,F)}; g.Q.Kg=function(){this.hp.Kg()}; g.Q.Lc=function(R,F){var h=this.X("html5_generate_content_po_token")?this.videoData:void 0;this.qa.Lc(R,F,h)}; g.Q.xr=function(R,F){var h;(h=this.loader)==null||h.xr(R,F)}; g.Q.yA=function(){var R=this.s0();return!!R&&R.yA()}; g.Q.tN=function(R,F){this.Ja.tN(R,F)}; g.Q.qj=function(){return this.Ja.qj()}; g.Q.PA=function(){return this.videoData.Zi}; g.Q.Kr=function(){return this.qa.Kr()}; g.Q.t9=function(){return this.qa.t9(this)}; g.Q.Hv=function(){this.YV=!0}; g.Q.aB=function(R){var F;(F=this.loader)==null||F.aB(R)}; g.Q.PS=function(){var R;(R=this.loader)==null||R.PS()};g.A(pPn,MD);g.A(rD,El);rD.prototype.B=function(R){R&&Bg(this,this.U.getLoopVideo());this.U.logVisibility(this.element,R)}; rD.prototype.logClick=function(){this.U.logClick(this.element)}; rD.prototype.onLoopChange=function(R){Bg(this,R)}; rD.prototype.D=function(R){this.U.setLoopVideo(R)};g.A(kXi,MD);g.A(QRO,MD);g.Q=QRO.prototype;g.Q.seekToChapterWithAnimation=function(R){var F=this;if(g.Hn(this.api)&&!(R<0)){var h=this.api.getVideoData(),a=h.XJ;if(a&&R=0)return;F=~F;g.e6(this.items,F,0,R);kT(this.menuItems.element,R.element,F)}R.subscribe("size-change",this.uS,this);this.menuItems.publish("size-change")}; g.Q.J4=function(R){R.unsubscribe("size-change",this.uS,this);this.RR()||(g.Hh(this.items,R),this.menuItems.element.removeChild(R.element),this.menuItems.publish("size-change"))}; g.Q.uS=function(){this.menuItems.publish("size-change")}; g.Q.focus=function(){for(var R=0,F=0;F1&&g.ZE(this)}; g.Q.PU=function(){Dqg(this);this.dW&&(t8i(this),g.RP(this.element,this.size))}; g.Q.Qz=function(){var R=this.B.pop();lxn(this,R,this.B[this.B.length-1],!0)}; g.Q.aX=function(R){if(!R.defaultPrevented)switch(R.keyCode){case 27:this.Nt();R.preventDefault();break;case 37:this.B.length>1&&this.Qz();R.preventDefault();break;case 39:R.preventDefault()}}; g.Q.focus=function(){this.B.length&&this.B[this.B.length-1].focus()}; g.Q.Ez=function(){g.U4.prototype.Ez.call(this);this.S&&this.S.dispose();this.Y&&this.Y.dispose()};g.A(bf,g.f3);bf.prototype.open=function(R,F){this.initialize(R.items)&&this.Tn(F,!!F)}; bf.prototype.initialize=function(R){g.q6(this.Es);if(R===void 0||R.length===0)return!1;var F=R.length;R=g.N(R);for(var h=R.next();!h.done;h=R.next())this.SA(h.value,F--);return!0}; bf.prototype.SA=function(R,F){R.menuNavigationItemRenderer?Csg(this,R.menuNavigationItemRenderer,F):R.menuServiceItemRenderer&&ckn(this,R.menuServiceItemRenderer,F)};g.A(Sz,L3);g.Q=Sz.prototype;g.Q.NJ=function(R){R.target!==this.dismissButton.element&&R.target!==this.overflowButton.element&&(this.dO(),this.onClickCommand&&this.U.WG("innertubeCommand",this.onClickCommand))}; g.Q.AN=function(){this.enabled=!1;this.C.hide()}; g.Q.Za=function(){return!!this.B&&this.enabled}; g.Q.onVideoDataChange=function(R,F){this.iW(F);if(this.B){this.m6();a:if(!this.isCounterfactual){var h,a,J;this.banner.update({title:(h=this.B)==null?void 0:h.title,subtitle:(a=this.B)==null?void 0:a.subtitle,metadata:(J=this.B)==null?void 0:J.metadataText});var M;this.onClickCommand=g.t((M=this.B)==null?void 0:M.onTap,j2);var v;if(R=g.t((v=this.B)==null?void 0:v.onOverflow,j2))this.Y=g.t(R,pZv);var I;if((I=this.B)==null?0:I.thumbnailImage){var w,E;v=((w=this.B)==null?void 0:(E=w.thumbnailImage)== null?void 0:E.sources)||[];if(v.length===0)break a;this.thumbnailImage.update({url:v[0].url})}else{var B;if((B=this.B)==null?0:B.thumbnailIconName){var r;this.thumbnailIcon.update({icon:(r=this.B)==null?void 0:r.thumbnailIconName})}}var Y;this.shouldShowOverflowButton=!((Y=this.B)==null||!Y.shouldShowOverflowButton);var p;this.shouldHideDismissButton=!((p=this.B)==null||!p.shouldHideDismissButton)}var k;this.banner.element.setAttribute("aria-label",((k=this.B)==null?void 0:k.a11yLabel)||"");var H; this.IR=(H=this.B)==null?void 0:H.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Rs7(this)}}; g.Q.Cuz=function(){this.isVisible=!0;Rs7(this)}; g.Q.BWt=function(){this.isVisible=!1;Rs7(this)}; g.Q.DB=function(){L3.prototype.DB.call(this);this.D&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.Q.dO=function(){L3.prototype.dO.call(this,!1);this.D&&this.U.logClick(this.banner.element)}; g.Q.d8=function(R){this.S||(this.S=new bf(this.U),g.z(this,this.S));var F,h;if((F=this.Y)==null?0:(h=F.menu)==null?0:h.menuRenderer)this.S.open(this.Y.menu.menuRenderer,R.target),R.preventDefault()}; g.Q.iW=function(){}; g.Q.m6=function(){}; g.Q.Ez=function(){this.U.NH("suggested_action_view_model");L3.prototype.Ez.call(this)};g.A(OF,Sz); OF.prototype.iW=function(R){var F,h,a;this.productUpsellSuggestedActionViewModel=g.t((F=R.getWatchNextResponse())==null?void 0:(h=F.playerOverlays)==null?void 0:(a=h.playerOverlayRenderer)==null?void 0:a.suggestedActionViewModel,SWk);var J;if((J=this.productUpsellSuggestedActionViewModel)==null?0:J.content){var M;this.B=g.t((M=this.productUpsellSuggestedActionViewModel)==null?void 0:M.content,r7k)}var v,I;if(this.D=!!((v=this.productUpsellSuggestedActionViewModel)==null?0:(I=v.loggingDirectives)==null? 0:I.trackingParams)){var w,E;this.U.setTrackingParams(this.banner.element,((w=this.productUpsellSuggestedActionViewModel)==null?void 0:(E=w.loggingDirectives)==null?void 0:E.trackingParams)||null)}var B;this.isCounterfactual=!((B=this.productUpsellSuggestedActionViewModel)==null||!B.isCounterfactualServing)}; OF.prototype.m6=function(){var R=[],F,h=g.N(((F=this.productUpsellSuggestedActionViewModel)==null?void 0:F.ranges)||[]);for(F=h.next();!F.done;F=h.next()){var a=F.value;a&&(F=Number(a.startTimeMilliseconds),a=Number(a.endTimeMilliseconds),isNaN(F)||isNaN(a)||R.push(new g.KI(F,a,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.eI(R)};g.A(FgI,MD);g.A(mE,MD);mE.prototype.onVideoDataChange=function(R,F){var h=this;if(!FM(F)&&(R==="newdata"&&ar7(this),this.B&&R==="dataloaded")){this.B=!1;var a;ZV(jI($x(this.api.W(),(a=this.api.getVideoData())==null?void 0:g.Wr(a)),function(J){IrI(h,J)}),function(){h.B=!0})}}; mE.prototype.kL=function(){var R=this;if(g.Y0(this.api.W())){var F,h=g.Qj(this.api.W(),(F=this.api.getVideoData())==null?void 0:g.Wr(F));return jI(Ta(h),function(a){var J=lm();D4(J,a);return R.api.kL(J)})}return Ta(this.api.kL())};g.A(g.Xq,g.Fa);g.Q=g.Xq.prototype;g.Q.open=function(){g.jz(this.mC,this.D)}; g.Q.xZ=function(R){icL(this);var F=this.options[R];F&&(F.element.setAttribute("aria-checked","true"),this.jA(this.dY(R)),this.K=R)}; g.Q.Dk=function(R){g.q6(this.D);for(var F={},h=!1,a=0;a=0?this.B.playbackRate:1}catch(R){return 1}}; g.Q.setPlaybackRate=function(R){this.getPlaybackRate()!==R&&(this.B.playbackRate=R);return R}; g.Q.Ju=function(){return this.B.loop}; g.Q.setLoop=function(R){this.B.loop=R}; g.Q.canPlayType=function(R,F){return this.B.canPlayType(R,F)}; g.Q.isPaused=function(){return this.B.paused}; g.Q.isSeeking=function(){return this.B.seeking}; g.Q.isEnded=function(){return this.B.ended}; g.Q.xw=function(){return this.B.muted}; g.Q.pN=function(R){AH();this.B.muted=R}; g.Q.vg=function(){return this.B.played||lW([],[])}; g.Q.Ft=function(){try{var R=this.B.buffered}catch(F){}return R||lW([],[])}; g.Q.MO=function(){return this.B.seekable||lW([],[])}; g.Q.e1=function(){var R=this.B;return R.getStartDate?R.getStartDate():null}; g.Q.getCurrentTime=function(){return this.B.currentTime}; g.Q.setCurrentTime=function(R){this.B.currentTime=R}; g.Q.getDuration=function(){return this.B.duration}; g.Q.load=function(){var R=this.B.playbackRate;try{this.B.load()}catch(F){}this.B.playbackRate=R}; g.Q.pause=function(){this.B.pause()}; g.Q.play=function(){var R=this.B.play();if(!R||!R.then)return null;R.then(void 0,function(){}); return R}; g.Q.aH=function(){return this.B.readyState}; g.Q.ev=function(){return this.B.networkState}; g.Q.JG=function(){return this.B.error?this.B.error.code:null}; g.Q.pK=function(){return this.B.error?this.B.error.message:""}; g.Q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.B instanceof window.HTMLVideoElement&&this.B.getVideoPlaybackQuality)return this.B.getVideoPlaybackQuality();if(this.B){var R=this.B,F=R.webkitDroppedFrameCount;if(R=R.webkitDecodedFrameCount)return{droppedVideoFrames:F||0,totalVideoFrames:R}}return{}}; g.Q.Hf=function(){return!!this.B.webkitCurrentPlaybackTargetIsWireless}; g.Q.pY=function(){return!!this.B.webkitShowPlaybackTargetPicker()}; g.Q.togglePictureInPicture=function(){var R=this.B,F=window.document;window.document.pictureInPictureEnabled?this.B!==F.pictureInPictureElement?R.requestPictureInPicture():F.exitPictureInPicture():$K()&&R.webkitSetPresentationMode(R.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.Q.Mj=function(){var R=this.B;return new g.zq(R.offsetLeft,R.offsetTop)}; g.Q.getSize=function(){return g.FJ(this.B)}; g.Q.setSize=function(R){g.RP(this.B,R)}; g.Q.getVolume=function(){return this.B.volume}; g.Q.setVolume=function(R){AH();this.B.volume=R}; g.Q.xF=function(R){this.N[R]||(this.B.addEventListener(R,this.listener),this.N[R]=this.listener)}; g.Q.setAttribute=function(R,F){this.B.setAttribute(R,F)}; g.Q.removeAttribute=function(R){this.B.removeAttribute(R)}; g.Q.hasAttribute=function(R){return this.B.hasAttribute(R)}; g.Q.zX=Jf(61);g.Q.u_=Jf(63);g.Q.BT=Jf(65);g.Q.jd=Jf(67);g.Q.Y$=function(){return sK(this.B)}; g.Q.Hn=function(R){g.J$(this.B,R)}; g.Q.i4=function(R){return g.tR(this.B,R)}; g.Q.PN=function(){return g.$T(document.body,this.B)}; g.Q.audioTracks=function(){var R=this.B;if("audioTracks"in R)return R.audioTracks}; g.Q.Ez=function(){for(var R=g.N(Object.keys(this.N)),F=R.next();!F.done;F=R.next())F=F.value,this.B.removeEventListener(F,this.N[F]);Yu.prototype.Ez.call(this)}; g.Q.lC=function(R){this.B.disableRemotePlayback=R};g.A(UF,g.D);g.A(cu,g.D);cu.prototype.show=function(){g.D.prototype.show.call(this);this.gA();this.Xo.X("html5_enable_moving_s4n_window")&&g.Y0(this.Xo.W())&&this.Z()}; cu.prototype.hide=function(){g.D.prototype.hide.call(this);this.delay.stop();this.L.stop()}; cu.prototype.gA=function(){var R=(0,g.NU)(),F=xo2(this.Xo);C3(this.B,F.bandwidth_samples);C3(this.Y,F.network_activity_samples);C3(this.K,F.live_latency_samples);C3(this.D,F.buffer_health_samples);var h={};F=g.N(Object.entries(F));for(var a=F.next();!a.done;a=F.next()){var J=g.N(a.value);a=J.next().value;J=J.next().value;this.C[a]!==J&&(h[a]=" "+String(J));this.C[a]=J}this.update(h);R=(0,g.NU)()-R>25?5E3:500;this.delay.start(R)}; cu.prototype.Z=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.L.start(2E4)};g.A(Lgm,MD);g.A(Wu,g.d);Wu.prototype.B=function(){var R=(0,g.NU)()-this.startTime;R=Rthis.L[R])&&(this.B=R,F7(this))}; g.Q.onCueRangeExit=function(R){var F=esn(this,R);F&&this.B===R&&this.api.WG("innertubeCommand",F);this.clearTimeout();this.B=void 0}; g.Q.onTimeout=function(R){this.B!==void 0&&(R==null?void 0:R.cueRangeId)===this.B&&(this.C=!1,(R=esn(this,this.B))&&this.api.WG("innertubeCommand",R))}; g.Q.t8=function(R){this.K=R}; g.Q.mB=function(){F7(this);this.K=void 0}; g.Q.setTimeout=function(R){var F=this,h=Number(R==null?void 0:R.maxVisibleDurationMilliseconds);h&&(this.clearTimeout(),this.oR=setTimeout(function(){F.onTimeout(R)},h))}; g.Q.clearTimeout=function(){this.oR&&clearTimeout(this.oR);this.oR=void 0;this.C=!1}; g.Q.Ez=function(){this.timelyActions=this.K=this.B=this.videoId=void 0;this.L={};this.yw();this.clearTimeout();MD.prototype.Ez.call(this)};g.A(doI,MD);g.A(aF,El);aF.prototype.S=function(R){this.L(R?2:1)}; aF.prototype.D=function(){var R=this.U.getPresentingPlayerType();R===2||R===3?(this.B=!1,this.mC.J4(this)):this.B||(R=this.hasVoiceBoostAudioTrack(),this.setEnabled(R),R=this.K()===2&&R,Bg(this,R),this.mC.SA(this),this.B=!0)}; aF.prototype.Ez=function(){this.mC.J4(this);El.prototype.Ez.call(this)};g.A(J5,MD);J5.prototype.getVoiceBoostUserPreference=function(){return this.B}; J5.prototype.setVoiceBoostUserPreference=function(R){this.api.dA("vb_set",{pref:R});g.fn("yt-player-voice-boost",R);R!==this.B&&(this.B=R,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.FS())}; J5.prototype.hasVoiceBoostAudioTrack=function(){var R,F,h=(R=this.api.getVideoData())==null?void 0:(F=R.K)==null?void 0:F.B;return h?dy(h,function(a){var J;return((J=a.audio)==null?void 0:J.D)===!0}):!1}; J5.prototype.updateEnvironmentData=function(){this.api.W().ES=this.B};var WgL=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.A(gP,MD);gP.prototype.Ez=function(){this.Y&&(g.Y$(this.Y),this.Y=void 0);MD.prototype.Ez.call(this)}; gP.prototype.PZ=function(){(this.D?!this.B:this.K)&&IF(this)}; gP.prototype.P_=function(R,F,h){var a=this;if(Kg7(R)){var J=h||"";if(this.B)F=iV(this,J),tJ2(R,F);else{var M=new g.EJ;F.push(M.promise);this.N.promise.then(function(){var v=iV(a,J);tJ2(R,v);M.resolve()})}}}; gP.prototype.lO=function(R){var F=this;if(this.D||this.K)R.Ul=iV(this,R.videoId),this.B||(this.L=new rh,this.N.promise.then(function(){F.rW.uT("pot_if");R.Ul=iV(F,R.videoId)}))};g.A(g.Ew,g.D);g.Ew.prototype.select=function(){this.api.VQ(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Dd||void 0)&&this.api.logClick(this.element)}; g.Ew.prototype.onClick=function(R){if(g.Py(this.api.W())&&this.api.X("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var F=this.suggestion.qI(),h={};g.nF(this.api,h);F=g.sA(F,h);g.YQ(F,this.api,R)}else g.r0(R,this.api,this.D,this.suggestion.sessionData||void 0)&&this.select()}; g.Ew.prototype.onKeyPress=function(R){switch(R.keyCode){case 13:case 32:R.defaultPrevented||(this.select(),R.preventDefault())}}; g.Ew.prototype.onVideoDataChange=function(){var R=this.api.getVideoData(),F=this.api.W();this.D=R.bq?!1:F.L};g.A(Bb,g.D);Bb.prototype.Ez=function(){this.hide();g.TP(this.B);g.hT(this.stills);this.stills.length=0;g.D.prototype.Ez.call(this)}; Bb.prototype.K=function(R){this.D&&this.D(R)}; Bb.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var R,F,h,a,J;var M=(((R=this.videoData)==null?0:(F=R.suggestions)==null?0:F.length)?(h=this.videoData)==null?void 0:h.suggestions:((a=this.videoData)==null?0:g.Br(a))?[(J=this.videoData)==null?void 0:g.Br(J)]:[]).slice(0,12);R=this.L;g.pb(R);if(M.length)for(this.stills.length>M.length&&g.hT(this.stills.splice(M.length)),this.stills.length=M.length,F=0;F=0;R--)this.features[R].dispose();this.features.length=0;g.d.prototype.Ez.call(this)};IkL.prototype.reset=function(){this.B=this.D=NaN};g.Q=i97.prototype;g.Q.reset=function(){A9(this.timerName)}; g.Q.tick=function(R,F){Hf(R,F,this.timerName)}; g.Q.uT=function(R){return qH(R,void 0,this.timerName)}; g.Q.Vb=function(R){g.z7(R,void 0,this.timerName)}; g.Q.infoGel=function(R){g.L4(R,this.timerName)};g.A(B6i,g.h0);g.Q=B6i.prototype;g.Q.NC=function(R){return this.loop||!!R||this.index+1=0}; g.Q.setShuffle=function(R){this.shuffle=R;R=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var F=0;F0)||ec(this,1,!0)}; g.Q.kC=function(){this.S=!0;this.B.Ap(this.N);this.N=this.B.T(document,"mouseup",this.mf)}; g.Q.mf=function(){this.S=!1;ec(this,8,!1);this.B.Ap(this.N);this.N=this.B.T(this.target,"mousedown",this.kC)}; g.Q.hW=function(R){if(R=(R=R.changedTouches)&&R[0])this.Uz=R.identifier,this.B.Ap(this.Z),this.Z=this.B.T(this.target,"touchend",this.LD,void 0,!0),ec(this,1024,!0)}; g.Q.LD=function(R){if(R=R.changedTouches)for(var F=0;F1280||J>720)if(F=a.f2("maxresdefault.jpg"))break;if(M>640||J>480)if(F=a.f2("maxresdefault.jpg"))break;if(M>320||J>180)if(F=a.f2("sddefault.jpg")||a.f2("hqdefault.jpg")||a.f2("mqdefault.jpg"))break;if(F=a.f2("default.jpg"))break}g.Bc(R)&&(R=new Image,R.addEventListener("load", function(){id_()}),R.src=F?F:"",this.api.zV().tick("ftr")); this.L.style.backgroundImage=F?"url("+F+")":""};g.A(g.Pb,g.D);g.Pb.prototype.resize=function(){}; g.Pb.prototype.D=function(R){var F=this;this.K=!1;WH2(this);var h=R.zC,a=this.api.W();h!=="GENERIC_WITHOUT_LINK"||a.S?h==="TOO_MANY_REQUESTS"?(a=this.api.getVideoData(),this.jA(t5(this,"TOO_MANY_REQUESTS_WITH_LINK",a.qI(),void 0,void 0,void 0,!1))):h!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||a.S?this.api.W().X("html5_enable_bandaid_error_screen")&&h==="HTML5_SPS_UMP_STATUS_REJECTED"&&!a.S?(a=a.hostLanguage,R="//support.google.com/youtube?p=videoError",a&&(R=g.sA(R,{hl:a})),this.jA(t5(this,"HTML5_SPS_UMP_STATUS_REJECTED", R))):this.api.W().X("enable_adb_handling_in_sabr")&&h==="BROWSER_OR_EXTENSION_ERROR"&&!a.S?(a=a.hostLanguage,R="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",a&&(R=g.sA(R,{hl:a})),this.jA(t5(this,"BROWSER_OR_EXTENSION_ERROR",R))):this.jA(g.zw(R.errorMessage)):this.jA(t5(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(R=a.hostLanguage,h="//support.google.com/youtube/?p=player_error1",R&&(h=g.sA(h, {hl:R})),this.jA(t5(this,"GENERIC_WITH_LINK_AND_CPN",h,!0)),a.It&&!a.L&&ceI(this,function(M){if(g.r0(M,F.api,!gG(F.api.W()))){M={as3:!1,html5:!0,player:!0,cpn:F.api.getVideoData().clientPlaybackNonce};var v=F.api;v.xm("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:M});v.isFullscreen()&&v.toggleFullscreen()}})); if(this.K){var J=this.mI("ytp-error-link");J&&(this.api.createClientVe(J,this,216104),this.api.logVisibility(J,!0),ceI(this,function(){F.api.logClick(J)}))}}; var C07=/([^<>]+)<\/a>/;g.A(RBI,g.D);RBI.prototype.U6=function(R,F,h){h=h===void 0?!1:h;switch(F){case 1:lV(this,R,this.K,h);break;case 2:lV(this,R,this.L,h);break;case 3:lV(this,R,this.B,h);break;case 4:lV(this,R,this.D,h)}};g.A(Fl7,g.D);g.Q=Fl7.prototype;g.Q.onClick=function(R){this.innertubeCommand?(this.U.WG("innertubeCommand",this.innertubeCommand),R.preventDefault()):g.r0(R,this.U,!0);this.U.logClick(this.element)}; g.Q.onVideoDataChange=function(R,F){aNi(this,F);this.Wc&&Jm7(this,this.Wc)}; g.Q.fD=function(R){var F=this.U.getVideoData();this.videoId!==F.videoId&&aNi(this,F);this.B&&Jm7(this,R.state);this.Wc=R.state}; g.Q.Tn=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.Q.Nt=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.A(D0,g.D);D0.prototype.hide=function(){this.B.stop();this.message.style.display="none";g.D.prototype.hide.call(this)}; D0.prototype.onStateChange=function(R){this.wf(R.state)}; D0.prototype.wf=function(R){if(g.V(R,128)||this.api.nz())var F=!1;else{var h;F=this.api.X("web_watch_enable_multiview_manager")&&((h=this.api.getVideoData())==null?0:FM(h))?!1:g.V(R,16)||g.V(R,1)?!0:!1}F?this.B.start():this.hide()}; D0.prototype.D=function(){this.message.style.display="block"};g.A(Vw,g.U4);Vw.prototype.onMutedAutoplayChange=function(R){this.K&&(R?(M0T(this),this.Tn()):(this.B&&this.logClick(),this.Nt()))}; Vw.prototype.eC=function(R){this.api.isMutedByMutedAutoplay()&&g.i5(R,2)&&this.Nt()}; Vw.prototype.onClick=function(){this.api.unMute();this.logClick()}; Vw.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.A(g.Uw,g.xK);g.Q=g.Uw.prototype;g.Q.init=function(){var R=this.api,F=R.getPlayerStateObject();this.hc=R.getPlayerSize();this.aT(F);this.j6();this.ew();this.api.publish("basechromeinitialized",this);this.Hx()&&this.api.publish("standardControlsInitialized")}; g.Q.onVideoDataChange=function(R,F){var h=this.Fb!==F.videoId;if(h||R==="newdata")R=this.api,R.isFullscreen()||(this.hc=R.getPlayerSize());h&&(this.Fb=F.videoId,h=this.Mx,h.fI=3E3,ec(h,512,!0),this.j6());this.api.X("web_render_jump_buttons")&&F.showSeekingControls&&(this.N4=572)}; g.Q.Xo$=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.Q.AE=function(){var R=this.api.DY()&&this.api.kJ(),F=this.api.Jc();return this.Ny||R||this.GY||F}; g.Q.C9=function(){var R=!this.AE();g.Gi(this.api.getRootNode(),"ytp-menu-shown",!R)}; g.Q.Vp=function(R){try{if(!g.$T(this.api.getRootNode(),R))return!1}catch(F){return!1}for(;R&&!uki(R);)R=R===this.api.getRootNode()?null:R.parentElement||null;return!!R}; g.Q.Nb=function(R){var F=this.api.getRootNode();g.Gi(F,"ytp-autohide",R);g.Gi(F,"ytp-autohide-active",!0);this.ge.start(R?250:100);R&&(this.U1=!1,g.vs(F,"ytp-touch-mode"));this.My=!R;this.api.FH(!R);this.api.X("delhi_modern_web_player")&&this.api.publish("autohideupdate",R)}; g.Q.h_=function(){var R=this.api.getRootNode();g.Gi(R,"ytp-autohide-active",!1)}; g.Q.TfR=function(){this.vZ=!0}; g.Q.Jpl=function(R){if(this.api.W().X("player_doubletap_to_seek")||this.api.W().Y)this.vZ=!1,this.cZ&&this.Ap(this.cZ),this.RY===0&&cb(this,R)?(this.UM(),this.Ue.start(),this.cZ=this.T(this.api.xo(),"touchmove",this.TfR,void 0,!0)):this.Ue.stop();IN2(this)&&cb(this,R)&&!this.api.W().Y&&gpm(this);var F=this.Mc.Ow();if(!g.Py(this.api.W())&&eD&&iki(this,R))F&&R.preventDefault();else if(this.U1=!0,g.J$(this.api.getRootNode(),"ytp-touch-mode"),this.Mx.Pn(),this.api.W().X("player_doubletap_to_seek")||this.api.W().Y)if(F= this.api.getPlayerStateObject(),!(!this.api.xX()||g.V(F,2)&&g.mX(this.api)||g.V(F,64))){F=Date.now()-this.M1;this.RY+=1;if(F<=350){this.NZ=!0;F=this.api.getPlayerSize().width/3;var h=this.api.getRootNode().getBoundingClientRect(),a=R.targetTouches[0].clientX-h.left;h=R.targetTouches[0].clientY-h.top;var J=(this.RY-1)*10;a>0&&aF*2&&a=650,a=R.width<528;this.Mx.resize();g.Gi(F,"ytp-fullscreen",this.api.isFullscreen());g.Gi(F,"ytp-large-width-mode",h);this.api.X("delhi_modern_web_player")?g.Gi(F,"ytp-xsmall-width-mode",a):g.Gi(F,"ytp-small-mode",this.e5());g.Gi(F,"ytp-tiny-mode",this.Tl());g.Gi(F,"ytp-big-mode",this.AG());this.kX&&this.kX.resize(R)}; g.Q.eC=function(R){this.aT(R.state);this.j6()}; g.Q.iO=Jf(3);g.Q.Px=function(){var R=!!this.Fb&&!this.api.Os()&&!this.OL,F=this.api.getPresentingPlayerType()===2,h=this.api.W();return F?(F=Sc(this.api.LO()),R&&(F&&F.player?R=(R=F.player.getVideoData(2))?R.isListed&&!g.BW(F.player.W()):!1:(gf("showInfoBarDuringAd: this is null"),R=!1)),R):R&&(h.Ba||this.api.isFullscreen()||h.jb)}; g.Q.j6=function(){var R=this.Px();this.F3!==R&&(this.F3=R,g.Gi(this.api.getRootNode(),"ytp-hide-info-bar",!R))}; g.Q.aT=function(R){var F=R.isCued()||this.api.MC()&&this.api.getPresentingPlayerType()!==3;F!==this.isCued&&(this.isCued=F,this.R6&&this.Ap(this.R6),this.R6=this.T(this.api.xo(),"touchstart",this.Jpl,void 0,F));var h=this.Mx,a=R.isPlaying()&&!g.V(R,32)||this.api.Ph();ec(h,128,!a);h=this.Mx;a=this.api.getPresentingPlayerType()===3;ec(h,256,a);h=this.api.getRootNode();g.V(R,2)?a=[Ca.ENDED]:(a=[],g.V(R,8)?a.push(Ca.PLAYING):g.V(R,4)&&a.push(Ca.PAUSED),g.V(R,1)&&!g.V(R,32)&&a.push(Ca.BUFFERING),g.V(R, 32)&&a.push(Ca.SEEKING),g.V(R,64)&&a.push(Ca.UNSTARTED));g.Dt(this.hq,a)||(g.gA(h,this.hq),this.hq=a,g.ME(h,a));a=this.api.W();var J=g.V(R,2);a:{var M=this.api.W();var v=M.controlsType;switch(v){case "2":case "0":M=!1;break a}M=v==="3"&&!g.V(R,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:O_7(Sc(this.api.LO())))||this.api.Jc()||g.Py(M)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Gi(h,"ytp-hide-controls",!M);g.Gi(h,"ytp-native-controls",a.controlsType==="3"&&!F&&!J&&!this.GY);g.V(R, 128)&&!g.Py(a)?(this.kX||(this.kX=new g.Pb(this.api),g.z(this,this.kX),g.Pn(this.api,this.kX.element,4)),this.kX.D(R.wL),this.kX.show()):this.kX&&(this.kX.dispose(),this.kX=null)}; g.Q.vR=function(){return this.api.DY()&&this.api.kJ()?(this.api.Di(!1,!1),!0):this.api.Os()?(g.oc(this.api,!0),!0):!1}; g.Q.onMutedAutoplayChange=function(R){this.GY=R;this.C9()}; g.Q.AG=function(){return!1}; g.Q.e5=function(){return!this.AG()&&(this.api.getPlayerSize().width=0&&F.left>=0&&F.bottom>F.top&&F.right>F.left?F:null;F=this.size;R=R.clone();F=F.clone();a&&(v=F,J=5,(J&65)==65&&(R.x=a.right)&&(J&=-2),(J&132)==132&&(R.y=a.bottom)&&(J&=-5),R.xa.right&&(v.width=Math.min(a.right-R.x,M+v.width-a.left),v.width=Math.max(v.width,0))),R.x+v.width>a.right&&J&1&&(R.x=Math.max(a.right-v.width,a.left)),R.ya.bottom&&(v.height=Math.min(a.bottom-R.y,M+v.height-a.top),v.height=Math.max(v.height,0))),R.y+v.height>a.bottom&&J&4&&(R.y=Math.max(a.bottom-v.height,a.top)));a=new g.uX(0,0,0,0);a.left=R.x;a.top=R.y;a.width= F.width;a.height=F.height;g.U$(this.element,new g.zq(a.left,a.top));g.TP(this.L);this.L.T(CF(this),"contextmenu",this.xQz);this.L.T(this.U,"fullscreentoggled",this.onFullscreenToggled);this.L.T(this.U,"pageTransition",this.sK)}; g.Q.xQz=function(R){if(!R.defaultPrevented){var F=xO(R);g.$T(this.element,F)||this.Nt();this.U.W().disableNativeContextMenu&&R.preventDefault()}}; g.Q.onFullscreenToggled=function(){this.Nt();OkB(this)}; g.Q.sK=function(){this.Nt()};g.A(go,g.D);go.prototype.onClick=function(){var R=this,F,h,a,J;return g.u(function(M){if(M.D==1)return F=R.api.W(),h=R.api.getVideoData(),a=R.api.getPlaylistId(),J=F.getVideoUrl(h.videoId,a,void 0,!0),g.m(M,XF_(R,J),2);M.B&&opB(R);R.api.logClick(R.element);g.Na(M)})}; go.prototype.gA=function(){this.updateValue("icon",{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.visible=mj_(this);g.Gi(this.element,"ytp-copylink-button-visible", this.visible);this.CO(this.visible);this.tooltip.P7();this.api.logVisibility(this.element,this.visible&&this.N)}; go.prototype.yY=function(R){g.D.prototype.yY.call(this,R);this.api.logVisibility(this.element,this.visible&&R)}; go.prototype.Ez=function(){g.D.prototype.Ez.call(this);g.vs(this.element,"ytp-copylink-button-visible")};g.A(eB_,g.D);g.Q=eB_.prototype;g.Q.show=function(){g.D.prototype.show.call(this);g.VI(this.D)}; g.Q.hide=function(){this.L.stop();this.K=0;this.mI("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.vs(this.element,"ytp-chapter-seek");g.vs(this.element,"ytp-time-seeking");g.D.prototype.hide.call(this)}; g.Q.Q4=function(R,F,h,a){this.K=R===this.Y?this.K+a:a;this.Y=R;var J=R===-1?this.C:this.Z;J&&this.U.logClick(J);this.S?this.D.stop():g.CD(this.D);this.L.start();this.element.setAttribute("data-side",R===-1?"back":"forward");var M=3*this.U.xo().getPlayerSize().height;J=this.U.xo().getPlayerSize();J=J.width/3-3*J.height;this.B.style.width=M+"px";this.B.style.height=M+"px";R===1?(this.B.style.left="",this.B.style.right=J+"px"):R===-1&&(this.B.style.right="",this.B.style.left=J+"px");var v=M*2.5;M=v/ 2;var I=this.mI("ytp-doubletap-ripple");I.style.width=v+"px";I.style.height=v+"px";R===1?(R=this.U.xo().getPlayerSize().width-F+Math.abs(J),I.style.left="",I.style.right=R-M+"px"):R===-1&&(R=Math.abs(J)+F,I.style.right="",I.style.left=R-M+"px");I.style.top="calc((33% + "+Math.round(h)+"px) - "+M+"px)";if(h=this.mI("ytp-doubletap-ripple"))h.classList.remove("ytp-doubletap-ripple"),h.classList.add("ytp-doubletap-ripple");npL(this,this.S?this.K:a)}; g.Q.qz=function(R,F,h){if(h=h===void 0?null:h){var a=R===-1?this.C.visualElement:this.Z.visualElement;h={seekData:h};var J=g.Q7();J&&g.Vz(tI)(void 0,J,a,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",h,void 0)}this.K=R===this.Y?this.K+F:F;this.Y=R;a=this.U.xo().getPlayerSize();this.S?this.D.stop():g.CD(this.D);this.L.start();this.element.setAttribute("data-side",R===-1?"back":"forward");g.J$(this.element,"ytp-time-seeking");this.B.style.width="110px";this.B.style.height="110px";h=a.width*.1-15;R=== 1?this.oR?(this.B.style.right=h+"px",this.B.style.left=""):(this.B.style.right="",this.B.style.left=a.width*.8-30+"px"):R===-1&&(this.oR?(this.B.style.right="",this.B.style.left=h+"px"):(this.B.style.right="",this.B.style.left=a.width*.1-15+"px"));this.B.style.top=a.height*.5+15+"px";npL(this,this.S?this.K:F)}; g.Q.s9=function(R,F,h){h=h===void 0?null:h;g.CD(this.D);this.L.start();switch(R){case -1:R="back";break;case 1:R="forward";break;default:R=""}this.element.setAttribute("data-side",R);this.B.style.width="0";this.B.style.height="0";g.J$(this.element,"ytp-chapter-seek");this.updateValue("seekText",F);this.updateValue("seekTime","");F=this.mI("ytp-seek-icon");if(h){a:if(h){switch(h){case "PREMIUM_STANDALONE":h=f12();break a;case "PREMIUM_STANDALONE_CAIRO":h=jA2();break a}h=void 0}else h=null;this.updateValue("seekIcon", h);F.style.display="inline-block"}else F.style.display="none"};g.A(u0_,L3);g.Q=u0_.prototype;g.Q.SF=function(R){this.Sl||(this.Sl=new bf(this.U),g.z(this,this.Sl));var F,h;if((F=this.EP)==null?0:(h=F.menu)==null?0:h.menuRenderer)this.Sl.open(this.EP.menu.menuRenderer,R.target),R.preventDefault()}; g.Q.Za=function(){return!!this.B}; g.Q.C6=function(){return!!this.B}; g.Q.NJ=function(R){R.target===this.overflowButton.element?R.preventDefault():(this.Ho&&this.U.WG("innertubeCommand",this.Ho),this.dO(!1))}; g.Q.AN=function(){this.dO(!0);var R,F;((R=this.B)==null?0:(F=R.bannerData)==null?0:F.dismissedStatusKey)&&this.gW.push(this.B.bannerData.dismissedStatusKey);this.U9()}; g.Q.RV=function(){this.U9();is(this)}; g.Q.t9o=function(R){var F=this,h;if(R.id!==((h=this.B)==null?void 0:h.identifier)){this.U9();h=g.N(this.Uz);for(var a=h.next();!a.done;a=h.next()){var J=a.value,M=void 0,v=void 0;if((a=(M=J)==null?void 0:(v=M.bannerData)==null?void 0:v.itemData)&&J.identifier===R.id){v=M=void 0;var I=((M=J)==null?void 0:(v=M.bannerData)==null?void 0:v.dismissedStatusKey)||"";if(this.gW.includes(I))return;this.B=J;this.banner.element.setAttribute("aria-label",a.accessibilityLabel||"");a.trackingParams&&(this.L=!0, this.U.setTrackingParams(this.badge.element,a.trackingParams));this.show();this.C.show();Hu(this);this.fI.CO(!a.stayInApp);Wl_(this);PT7(this);IR(this);this.Ho=g.t(a.onTapCommand,j2);if(J=g.t(a.menuOnTap,j2))this.EP=g.t(J,pZv);J=void 0;this.banner.update({thumbnail:(J=(a.thumbnailSources||[])[0])==null?void 0:J.url,title:a.productTitle,price:a.priceReplacementText?a.priceReplacementText:a.price,salesOriginalPrice:t02(this),priceDropReferencePrice:lN7(this),promotionText:Klf(this),priceA11yText:DjL(this), affiliateDisclaimer:a.affiliateDisclaimer,vendor:V0B(this)});I=v=M=J=void 0;((J=a)==null?0:(M=J.hiddenProductOptions)==null?0:M.showDropCountdown)&&((v=a)==null?0:(I=v.hiddenProductOptions)==null?0:I.dropTimestampMs)&&(this.Sw=new g.DY(function(){cmI(F)},1E3),this.fI.hide(),this.countdownTimer.show(),cmI(this)); this.U.X("web_player_enable_featured_product_banner_exclusives_on_desktop")&&djL(this)&&(this.It=new g.DY(function(){zB_(F)},1E3),zB_(this))}}this.U.getRootNode()&&g.J$(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.Q.U9=function(){this.B&&(this.B=void 0,this.QD(),this.U.getRootNode()&&g.vs(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.Q.onVideoDataChange=function(R,F){var h=this;R==="dataloaded"&&is(this);var a,J,M;R=g.t((a=F.getWatchNextResponse())==null?void 0:(J=a.playerOverlays)==null?void 0:(M=J.playerOverlayRenderer)==null?void 0:M.productsInVideoOverlayRenderer,YWu);this.overflowButton.show();this.dismissButton.hide();var v=R==null?void 0:R.featuredProductsEntityKey;this.trendingOfferEntityKey=R==null?void 0:R.trendingOfferEntityKey;this.Uz.length||(CTm(this,v),IR(this));var I;(I=this.Xf)==null||I.call(this);this.Xf=g.YF.subscribe(function(){CTm(h, v);IR(h)})}; g.Q.Ez=function(){is(this);Wl_(this);PT7(this);L3.prototype.Ez.call(this)};g.A(Jrm,g.D);Jrm.prototype.onClick=function(){this.U.logClick(this.element,this.D)};g.A(M5a,g.U4);g.Q=M5a.prototype;g.Q.show=function(){g.U4.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);vc2(this,!0)}; g.Q.hide=function(){g.U4.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);vc2(this,!1)}; g.Q.getId=function(){return this.L}; g.Q.ZH=function(){return this.itemData.length}; g.Q.onVideoDataChange=function(R,F){if(F){var h,a,J,M;this.update({title:((h=F.zN)==null?void 0:(a=h.title)==null?void 0:a.content)||"",body:((J=F.zN)==null?void 0:(M=J.bodyText)==null?void 0:M.content)||""});var v;R=((v=F.zN)==null?void 0:v.trackingParams)||null;this.U.setTrackingParams(this.element,R);v=g.N(this.itemData);for(R=v.next();!R.done;R=v.next())R.value.dispose();this.itemData=[];var I;if((I=F.zN)==null?0:I.ctaButtons)for(F=g.N(F.zN.ctaButtons),I=F.next();!I.done;I=F.next())if(I=g.t(I.value, I$v))I=new Jrm(this.U,I,this.B),I.Fd&&(this.itemData.push(I),I.Ab(this.items))}}; g.Q.Ez=function(){this.hide();g.U4.prototype.Ez.call(this)};g.A(ISL,g.D);g.Q=ISL.prototype;g.Q.onVideoDataChange=function(R,F){Gcg(this,F);this.Wc&&w2L(this,this.Wc)}; g.Q.RX=function(R){var F=this.U.getVideoData();this.videoId!==F.videoId&&Gcg(this,F);w2L(this,R.state);this.Wc=R.state}; g.Q.le=function(R){(this.K=R)?this.hide():this.B&&this.show()}; g.Q.cF=function(){this.D||this.Tn();this.showControls=!0}; g.Q.vF=function(){this.D||this.Nt();this.showControls=!1}; g.Q.Tn=function(){var R,F=(R=this.U)==null?void 0:R.getPlayerSize();R=F.width<380;var h;F=F.height<(((h=this.U)==null?0:h.isEmbedsShortsMode())?400:280);var a,J;(((a=this.U)==null?0:a.getPlayerStateObject().isCued())||((J=this.U)==null?0:g.V(J.getPlayerStateObject(),1024)))&&R&&F||!this.B||this.K||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.Q.Nt=function(){this.B&&!this.K&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.Q.WjG=function(){this.D=!1;this.showControls||this.Nt()};var QP4={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(QP4).reduce(function(R,F){R[QP4[F]]=F;return R},{}); var $xk={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys($xk).reduce(function(R,F){R[$xk[F]]=F;return R},{}); var AtU={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(AtU).reduce(function(R,F){R[AtU[F]]=F;return R},{});var xxL,NCg;xxL=[{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"}];NCg=[{option:0,text:wo(0)},{option:.25,text:wo(.25)},{option:.5,text:wo(.5)},{option:.75,text:wo(.75)},{option:1,text:wo(1)}]; g.YB=[{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:xxL},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:wo(.5)},{option:-1,text:wo(.75)},{option:0,text:wo(1)},{option:1, text:wo(1.5)},{option:2,text:wo(2)},{option:3,text:wo(3)},{option:4,text:wo(4)}]},{option:"background",text:"Color de fondo",options:xxL},{option:"backgroundOpacity",text:"Opacidad de fondo",options:NCg},{option:"windowColor",text:"Color de la ventana",options:xxL},{option:"windowOpacity",text:"Opacidad de la ventana",options:NCg},{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:wo(.25)},{option:.5,text:wo(.5)},{option:.75,text:wo(.75)},{option:1,text:wo(1)}]}];var H1u=[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.A(p2n,g.xK);g.Q=p2n.prototype; g.Q.Yv=function(R){R.repeat||(this.K.Si=!1);var F=!1,h=R.keyCode,a=xO(R),J=!R.altKey&&!R.ctrlKey&&!R.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||H1u.includes(h)),M=!1,v=!1,I=this.api.W();R.defaultPrevented?(J=!1,v=!0):I.S9&&!this.api.isMutedByEmbedsMutedAutoplay()&&(J=!1);if(h===9)F=!0;else{if(a)switch(h){case 32:case 13:if(a.tagName==="BUTTON"||a.tagName==="A"||a.tagName==="INPUT")F=!0,J=!1;else if(J){var w=a.getAttribute("role");!w||w!=="option"&&w!=="button"&&w.indexOf("menuitem")!==0|| (F=!0,a.click(),M=!0)}break;case 37:case 39:case 36:case 35:F=a.getAttribute("role")==="slider";break;case 38:case 40:w=a.getAttribute("role"),a=h===38?a.previousSibling:a.nextSibling,w==="slider"?F=!0:J&&(w==="option"?(a&&a.getAttribute("role")==="option"&&a.focus(),M=F=!0):w&&w.indexOf("menuitem")===0&&(a&&a.hasAttribute("role")&&a.getAttribute("role").indexOf("menuitem")===0&&a.focus(),M=F=!0))}if(J&&!M)switch(h){case 38:M=Math.min(this.api.getVolume()+5,100);FA(this.l9,M,!1);this.api.setVolume(M); v=M=!0;break;case 40:M=Math.max(this.api.getVolume()-5,0);FA(this.l9,M,!0);this.api.setVolume(M);v=M=!0;break;case 36:this.api.xX()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),v=M=!0);break;case 35:this.api.xX()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),v=M=!0)}}F&&BP(this,!0);(F||v)&&this.Mx.Pn();(M||J&&this.handleGlobalKeyDown(h,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code,R.repeat))&&R.preventDefault();I.Z&&(R={keyCode:R.keyCode, altKey:R.altKey,ctrlKey:R.ctrlKey,metaKey:R.metaKey,shiftKey:R.shiftKey,handled:R.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.hj("onKeyPress",R))}; g.Q.wG=function(R){var F=R.keyCode;(!this.api.X("web_player_spacebar_control_bugfix")||this.api.X("web_player_spacebar_control_bugfix")&&!this.K.ZL)&&this.handleGlobalKeyUp(F,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code)&&R.preventDefault()}; g.Q.handleGlobalKeyUp=function(R,F,h,a,J,M,v){this.api.publish("keyboardserviceglobalkeyup",{keyCode:R,shiftKey:F,ctrlKey:h,altKey:a,metaKey:J,key:M,code:v});F=!1;if(this.K.Si)return F;(M=g.um(this.api.LO()))&&(M=M.qS)&&M.dW&&(M.Pi(R),F=!0);switch(R){case 9:BP(this,!0);F=!0;break;case 32:if(this.api.X("web_speedmaster_spacebar_control")&&(!this.api.X("web_player_spacebar_control_bugfix")&&!this.K.ZL||this.api.X("web_player_spacebar_control_bugfix"))&&!this.api.W().S9){var I,w;R=(I=this.progressBar)== null?void 0:(w=I.D)==null?void 0:w.isEnabled;F=this.X8(R)}break;case 39:(hn?a:h)&&!J&&this.api.xX()&&this.api.X("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),I=(I=this.api.getVideoData())?I.XJ:[],w=B8a(I,this.api.getCurrentTime()*1E3),w!==-1&&this.B!=null&&(this.B.s9(1,I[w].title),this.api.seekTo(I[w].startTime/1E3,void 0,void 0,void 0,52),F=!0))}return F}; g.Q.handleGlobalKeyDown=function(R,F,h,a,J,M,v,I){I||(this.K.Si=!1);var w=!1,E=this.api.W();if(E.S9&&!this.api.isMutedByEmbedsMutedAutoplay())return w;var B=g.um(this.api.LO());if(B&&(B=B.qS)&&B.dW)switch(R){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:w=B.lk(R)}E.S||w||(w=M||String.fromCharCode(R).toLowerCase(),this.D+=w,"awesome".indexOf(this.D)===0||this.api.X("web_player_rtr_ctrls")&&"bday".indexOf(this.D)===0?(w=!0,4===this.D.length&&this.D==="bday"&&this.api.X("web_player_rtr_ctrls")&& (J6L(this.N),this.Mx.Pn()),7===this.D.length&&this.D==="awesome"&&qtI(this.api.getRootNode(),"ytp-color-party")):(this.D=w,w="awesome".indexOf(this.D)===0||"bday".indexOf(this.D)===0));if(!w&&(!this.api.isMutedByEmbedsMutedAutoplay()||H1u.includes(R))){var r=this.api.getVideoData(),Y,p;B=(Y=this.progressBar)==null?void 0:(p=Y.D)==null?void 0:p.isEnabled;Y=r?r.XJ:[];p=hn?a:h;switch(R){case 80:F&&!E.NQ&&(RR(this.l9,Zna(),"Anterior"),this.api.previousVideo(),w=!0);break;case 78:F&&!E.NQ&&(RR(this.l9, ks(),"Siguiente"),this.api.nextVideo(),w=!0);break;case 74:this.api.xX()&&(this.api.startSeekCsiAction(),this.B?this.api.X("enable_key_press_seek_logging")?(w=ro(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.B.qz(-1,10,w)):this.B.qz(-1,10):RR(this.l9,{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),w=!0);break;case 76:this.api.xX()&&(this.api.startSeekCsiAction(),this.B?this.api.X("enable_key_press_seek_logging")?(w=ro(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.B.qz(1,10,w)):this.B.qz(1,10):RR(this.l9,{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),w=!0);break;case 37:this.api.xX()&&(this.api.startSeekCsiAction(),p?(p=rri(Y,this.api.getCurrentTime()*1E3),p!==-1&&this.B!=null&&(this.B.s9(-1,Y[p].title),this.api.seekTo(Y[p].startTime/1E3,void 0,void 0,void 0,53),w=!0)):(this.B?this.api.X("enable_key_press_seek_logging")?(w=ro(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.B.qz(-1,5,w)):this.B.qz(-1,5):RR(this.l9,{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),w=!0));break;case 39:this.api.xX()&&(this.api.startSeekCsiAction(),p?this.api.X("web_enable_keyboard_shortcut_for_timely_actions")||(p=B8a(Y,this.api.getCurrentTime()*1E3),p!==-1&&this.B!=null&&(this.B.s9(1,Y[p].title),this.api.seekTo(Y[p].startTime/1E3,void 0,void 0,void 0,52),w=!0)):(this.B!=null?this.api.X("enable_key_press_seek_logging")?(w=ro(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.B.qz(1,5,w)):this.B.qz(1, 5):RR(this.l9,{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),w=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),FA(this.l9,this.api.getVolume(),!1)):(this.api.mute(),FA(this.l9,0,!0));w=!0;break;case 32:w=this.api.X("web_speedmaster_spacebar_control")?!this.api.W().NQ:this.X8(B);break;case 75:w=this.X8(B);break;case 190:F?E.enableSpeedOptions&&QWO(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w+.25,!0),EpO(this.l9,!1),w=!0):this.api.xX()&&(this.step(1),w=!0);break;case 188:F? E.enableSpeedOptions&&QWO(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w-.25,!0),EpO(this.l9,!0),w=!0):this.api.xX()&&(this.step(-1),w=!0);break;case 70:TEL(this.api)&&(this.api.toggleFullscreen().catch(function(){}),w=!0); break;case 27:B?(this.progressBar.Lb(),w=!0):this.S()&&(w=!0)}if(E.controlsType!=="3")switch(R){case 67:g.jc(this.api.LO())&&(E=this.api.getOption("captions","track"),this.api.toggleSubtitles(),BgL(this.l9,!E||E&&!E.displayName),w=!0);break;case 79:s7(this,"textOpacity");break;case 87:s7(this,"windowOpacity");break;case 187:case 61:s7(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:s7(this,"fontSizeIncrement",!0,!0)}var k;F||h||a||(R>=48&&R<=57?k=R-48:R>=96&&R<=105&&(k=R-96));k!=null&&this.api.xX()&& (this.api.startSeekCsiAction(),E=this.api.getProgressState(),this.api.seekTo(k/10*(E.seekableEnd-E.seekableStart)+E.seekableStart,void 0,void 0,void 0,81),w=!0);w&&this.Mx.Pn()}this.K.s8=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:R,shiftKey:F,ctrlKey:h,altKey:a,metaKey:J,key:M,code:v,repeat:I},this.K);this.K.s8&&(w=!0);return w}; g.Q.step=function(R){this.api.xX();if(this.api.getPlayerStateObject().isPaused()){var F=this.api.getVideoData().D;F&&(F=F.video)&&this.api.seekBy(R/(F.fps||30),void 0,void 0,R>0?77:78)}}; g.Q.X8=function(R){if(!this.api.W().NQ){var F;var h,a=(F=this.api.getVideoData())==null?void 0:(h=F.getPlayerResponse())==null?void 0:h.playabilityStatus;if(a){var J;F=((J=g.t(a.miniplayer,Hhv))==null?void 0:J.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else F=!1;F&&this.api.WG("onExpandMiniplayer");R?this.progressBar.Ej():(R=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.l9.WQ(R),R?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.Q.Ez=function(){g.CD(this.L);g.xK.prototype.Ez.call(this)};g.A(pQ,g.D);pQ.prototype.gA=function(){var R=this.U.W(),F=R.K||this.U.X("web_player_hide_overflow_button_if_empty_menu")&&this.A0.isEmpty();R=g.Py(R)&&g.et(this.U)&&g.V(this.U.getPlayerStateObject(),128);var h=this.U.getPlayerSize();this.visible=this.U.e5()&&!R&&h.width>=240&&!g.im(this.U.getVideoData())&&!F&&!this.U.isEmbedsShortsMode();g.Gi(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.P7();this.U.logVisibility(this.element,this.visible&&this.N)}; pQ.prototype.yY=function(R){g.D.prototype.yY.call(this,R);this.U.logVisibility(this.element,this.visible&&R)}; pQ.prototype.Ez=function(){g.D.prototype.Ez.call(this);g.vs(this.element,"ytp-overflow-button-visible")};g.A($y2,g.U4);g.Q=$y2.prototype;g.Q.NA=function(R){R=xO(R);g.$T(this.element,R)&&(g.$T(this.B,R)||g.$T(this.closeButton,R)||cn(this))}; g.Q.Nt=function(){g.U4.prototype.Nt.call(this);this.U.De(this.element)}; g.Q.show=function(){this.dW&&this.U.publish("OVERFLOW_PANEL_OPENED");g.U4.prototype.show.call(this);this.element.setAttribute("aria-modal","true");xyg(this,!0)}; g.Q.hide=function(){g.U4.prototype.hide.call(this);this.element.removeAttribute("aria-modal");xyg(this,!1)}; g.Q.onFullscreenToggled=function(R){!R&&this.Ow()&&cn(this)}; g.Q.isEmpty=function(){return this.actionButtons.length===0}; g.Q.focus=function(){for(var R=g.N(this.actionButtons),F=R.next();!F.done;F=R.next())if(F=F.value,F.dW){F.focus();break}};g.A(N8i,g.D);N8i.prototype.onClick=function(R){g.r0(R,this.api)&&this.api.playVideoAt(this.index)};g.A(Ha7,g.U4);g.Q=Ha7.prototype;g.Q.show=function(){g.U4.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.s7);this.B.T(this.api,"onPlaylistUpdate",this.s7);this.s7()}; g.Q.hide=function(){g.U4.prototype.hide.call(this);g.TP(this.B);this.updatePlaylist(null)}; g.Q.s7=function(){this.updatePlaylist(this.api.getPlaylist());this.api.W().K&&(this.mI("ytp-playlist-menu-title-name").removeAttribute("href"),this.K&&(this.Ap(this.K),this.K=null))}; g.Q.P8=function(){var R=this.playlist,F=R.author,h=F?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",a={CURRENT_POSITION:String(R.index+1),PLAYLIST_LENGTH:String(R.length)};F&&(a.AUTHOR=F);this.update({title:R.title,subtitle:g.JE(h,a),playlisturl:this.api.getVideoUrl(!0)});F=R.D;if(F===this.L)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[R.index];else{h=g.N(this.playlistData);for(a=h.next();!a.done;a=h.next())a.value.dispose(); h=R.length;this.playlistData=[];for(a=0;a=this.D&&!R.K&&!F.isAd()&&!this.api.isEmbedsShortsMode()}else R=!1;this.visible=R;this.CO(this.visible);g.Gi(this.element,"ytp-search-button-visible",this.visible);g.Gi(this.element,"ytp-show-search-title",!this.api.e5());this.api.logVisibility(this.element,this.visible&&this.N)}; Ak.prototype.yY=function(R){g.D.prototype.yY.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};g.A(xB,g.D); xB.prototype.trigger=function(R,F,h,a){this.show();if(this.L&&R!==this.L){var J=1;this.D&&(J=ocB(this));ZaL(this,J,!1);myO(this)}this.L=R;this.K=this.L===-1?this.Z:this.C;R="";F?(this.Y+=F,R=g.Q6(this.Y)):this.Y=0;this.updateValue(this.L===-1?"durationBack":"durationForward",R);if(this.B==="hidden"||this.B==="fading-out")F=0,this.B==="fading-out"&&(F=ocB(this),Oa_(this)),ba2(this,F),this.B!=="fading-out"&&Ssi(this,this.K.querySelector(".ytp-seek-overlay-arrow-persistent")),this.B="fading-in";else if(this.B=== "fading-in"||this.B==="lingering")F=this.K.querySelector(".ytp-seek-overlay-duration"),R=g.RI(this.U.W().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,F.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+R+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),Oa_(this),this.B==="lingering"&&(this.S.stop(),this.S.start());this.oR=(0,g.NU)();h&&X2L(this,h,a)}; xB.prototype.Q4=function(R,F,h,a){this.trigger(R,a)}; xB.prototype.qz=function(R,F,h){this.trigger(R,F);h&&(R=R===-1?this.C.visualElement:this.Z.visualElement,h={seekData:h},(F=g.Q7())&&g.Vz(tI)(void 0,F,R,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",h,void 0))}; xB.prototype.s9=function(R,F,h){this.trigger(R,void 0,F,h)};g.A(Nq,g.D);Nq.prototype.onClick=function(){var R=this,F=this.api.W(),h=this.api.getVideoData(this.api.getPresentingPlayerType()),a=this.api.getPlaylistId();F=this.api.X("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):F.getVideoUrl(h.videoId,a,void 0,!0);if(navigator.share)try{var J=navigator.share({title:h.title,url:F});J instanceof Promise&&J.catch(function(M){ncn(R,M)})}catch(M){M instanceof Error&&ncn(this,M)}else this.B.vR(),cn(this.D,this.element,!1); this.api.logClick(this.element)}; Nq.prototype.gA=function(){var R=this.api.W(),F=this.api.isEmbedsShortsMode();g.Gi(this.element,"ytp-show-share-title",g.Py(R)&&!F);this.B.AG()&&F?(R=(this.api.xo().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.zL(this.element,"right",R+"px")):F&&g.zL(this.element,"right","0px");this.updateValue("icon",{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=e9_(this);g.Gi(this.element,"ytp-share-button-visible",this.visible);this.CO(this.visible);this.tooltip.P7();this.api.logVisibility(this.element,e9_(this)&&this.N)}; Nq.prototype.yY=function(R){g.D.prototype.yY.call(this,R);this.api.logVisibility(this.element,this.visible&&R)}; Nq.prototype.Ez=function(){g.D.prototype.Ez.call(this);g.vs(this.element,"ytp-share-button-visible")};g.A(dya,g.U4);g.Q=dya.prototype;g.Q.hM=function(R){R=xO(R);g.$T(this.S,R)||g.$T(this.closeButton,R)||cn(this)}; g.Q.Nt=function(){g.U4.prototype.Nt.call(this);this.tooltip.De(this.element);this.api.logVisibility(this.B,!1);for(var R=g.N(this.K),F=R.next();!F.done;F=R.next())F=F.value,this.api.hasVe(F.element)&&this.api.logVisibility(F.element,!1)}; g.Q.show=function(){var R=this.dW;g.U4.prototype.show.call(this);this.gA();R||this.api.WG("onSharePanelOpened")}; g.Q.yC=function(){this.dW&&this.gA()}; g.Q.gA=function(){var R=this;g.J$(this.element,"ytp-share-panel-loading");g.vs(this.element,"ytp-share-panel-fail");var F=this.api.getVideoData(),h=this.api.getPlaylistId()&&this.L.checked;F.getSharePanelCommand&&ZC(this.api.kL(),F.getSharePanelCommand,{includeListId:h}).then(function(a){R.RR()||(g.vs(R.element,"ytp-share-panel-loading"),KsI(R,a))}); F=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",F);this.updateValue("linkText",F);this.updateValue("shareLinkWithUrl",g.JE("Compartir v\u00ednculo $URL",{URL:F}));kQ(this.B);this.api.logVisibility(this.B,!0)}; g.Q.onFullscreenToggled=function(R){!R&&this.Ow()&&cn(this)}; g.Q.focus=function(){this.B.focus()}; g.Q.Ez=function(){g.U4.prototype.Ez.call(this);PSL(this)};g.A(Dyf,L3);g.Q=Dyf.prototype;g.Q.Ez=function(){Ws2(this);L3.prototype.Ez.call(this)}; g.Q.NJ=function(R){R.target!==this.dismissButton.element&&(this.dO(!1),this.U.WG("innertubeCommand",this.onClickCommand))}; g.Q.AN=function(){this.Fo=!0;this.dO(!0);this.QD()}; g.Q.Emu=function(R){this.Y=R;this.QD()}; g.Q.onVideoDataChange=function(R,F){if(R=!!F.videoId&&this.videoId!==F.videoId)this.videoId=F.videoId,this.Fo=!1,this.KI=!0,this.Z=this.aR=!1,Ws2(this),cri(this,!1),this.D=this.B=!1,LQ(this),V5i(this);if(R||!F.videoId)this.oR=this.L=!1;var h,a;if(F==null?0:(h=F.getPlayerResponse())==null?0:(a=h.videoDetails)==null?0:a.isLiveContent)this.u0(!1);else{var J,M,v;F=g.t((J=F.getWatchNextResponse())==null?void 0:(M=J.playerOverlays)==null?void 0:(v=M.playerOverlayRenderer)==null?void 0:v.productsInVideoOverlayRenderer, YWu);this.Y=this.enabled=!1;if(F){if(J=F==null?void 0:F.featuredProductsEntityKey){M=g.YF.getState().entities;var I;if((I=Ua(M,"featuredProductsEntity",J))==null?0:I.productsData){this.u0(!1);return}}this.enabled=!0;if(!this.L){var w;I=(w=F.badgeInteractionLogging)==null?void 0:w.trackingParams;(this.L=!!I)&&this.U.setTrackingParams(this.badge.element,I||null)}if(!this.oR){var E;if(this.oR=!((E=F.dismissButton)==null||!E.trackingParams)){var B;this.U.setTrackingParams(this.dismissButton.element,((B= F.dismissButton)==null?void 0:B.trackingParams)||null)}}F.isContentForward&&(w=F.productsData,cri(this,!0),V5i(this),w=CSn(this,w),E=[],w.length>0&&E.push(w[0]),w.length>1&&(B=new g.D({G:"div",J:"ytp-suggested-action-more-products-icon"}),g.z(this,B),E.push(B),E.push.apply(E,g.S(w.slice(1)))),this.S=new g.D({G:"div",V:E,J:"ytp-suggested-action-content-forward-container"}),g.z(this,this.S),this.Oz.element.append(this.S.element));this.text=g.iQ(F.text);var r;if(w=(r=F.dismissButton)==null?void 0:r.a11yLabel)this.IR= g.iQ(w);this.onClickCommand=F.onClickCommand;this.timing=F.timing;this.eI()}z8L(this);Hu(this);this.QD()}}; g.Q.Za=function(){return!this.Y&&this.enabled&&!this.Fo&&!this.U.e5()&&!this.iY&&(this.Z||this.KI)}; g.Q.YN=function(R){L3.prototype.YN.call(this,R);if(this.B||this.D)this.timing&&HP(this.timing.preview)&&(this.B=!1,LQ(this),this.D=!1,LQ(this),this.U.NH("shopping_overlay_preview_collapsed"),this.U.NH("shopping_overlay_preview_expanded"),R=TX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),HP(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.NH("shopping_overlay_expanded"),R.end=this.timing.expanded.endSec*1E3),this.U.eI([R])), this.aR=!0,Hu(this);LQ(this)}; g.Q.u0=function(R){(this.Z=R)?(N6(this),Hu(this,!1)):(Ws2(this),this.NQ.start());this.QD()}; g.Q.eI=function(R){var F=this.timing;R=(R===void 0?0:R)+this.U.getCurrentTime();var h=[],a=F.visible,J=F.preview;F=F.expanded;HP(a)&&(t5a(a,R),h.push(TX(a.startSec,a.endSec,"shopping_overlay_visible")));HP(J)&&(t5a(J,R),a=J.startSec+1,h.push(TX(J.startSec,a,"shopping_overlay_preview_collapsed")),h.push(TX(a,J.endSec,"shopping_overlay_preview_expanded")));HP(F)&&(t5a(F,R),h.push(TX(F.startSec,F.endSec,"shopping_overlay_expanded")));this.U.eI(h)}; g.Q.QD=function(){L3.prototype.QD.call(this);this.U.getRootNode()&&g.Gi(this.U.getRootNode(),"ytp-shopping-pill-shown",this.Za())};g.A(hXm,g.D); hXm.prototype.gA=function(){var R=this.api.W();this.CO(g.Py(R)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.dW);var F=this.api.getVideoData(),h=!1;this.api.getPresentingPlayerType()===2?h=!!F.videoId&&!!F.isListed&&!!F.author&&!!F.uY&&!!F.profilePicture:g.Py(R)&&(h=!!F.videoId&&!!F.uY&&!!F.profilePicture&&!g.im(F)&&!R.K&&!(R.Y&&this.api.getPlayerSize().width<200));var a=F.profilePicture;R=g.Py(R)?F.expandedTitle:F.author;a=a===void 0? "":a;R=R===void 0?"":R;h?(this.D!==a&&(this.B.style.backgroundImage="url("+a+")",this.D=a),this.updateValue("channelLogoLabel",g.JE("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:R})),g.J$(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.vs(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,h&&this.N);this.api.logVisibility(this.channelName,h&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=F.Vc);this.updateValue("expandedTitle",F.expandedTitle)};g.A(yf,g.U4);yf.prototype.show=function(){g.U4.prototype.show.call(this);this.B.start()}; yf.prototype.hide=function(){g.U4.prototype.hide.call(this);this.B.stop()}; yf.prototype.O0=function(R,F){R==="dataloaded"&&((this.YZ=F.YZ,this.lq=F.lq,isNaN(this.YZ)||isNaN(this.lq))?this.K&&(this.U.NH("intro"),this.U.removeEventListener(g.lz("intro"),this.Y),this.U.removeEventListener(g.Dq("intro"),this.S),this.U.removeEventListener("onShowControls",this.L),this.hide(),this.K=!1):(this.U.addEventListener(g.lz("intro"),this.Y),this.U.addEventListener(g.Dq("intro"),this.S),this.U.addEventListener("onShowControls",this.L),R=new g.KI(this.YZ,this.lq,{priority:9,namespace:"intro"}), this.U.eI([R]),this.K=!0))};g.A(qq,g.D);qq.prototype.onClick=function(){this.U.pY()}; qq.prototype.gA=function(){var R=!0;g.Py(this.U.W())&&(R=R&&this.U.xo().getPlayerSize().width>=480);this.CO(R);R=this.updateValue;var F=this.U.X("delhi_modern_web_player_icons"),h=F?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,j:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};F=F?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};R.call(this,"icon",this.U.Hf()?h:F)};g.A(Jvi,g.D);Jvi.prototype.Ez=function(){this.B=null;g.D.prototype.Ez.call(this)};g.A(fQ,g.D);fQ.prototype.onClick=function(){this.U.WG("innertubeCommand",this.D)}; fQ.prototype.C=function(){if(this.U.X("delhi_modern_web_player")){var R=this.U.getPlayerSize();R.width&&(this.element.style.maxWidth=R.width*.25+"px")}}; fQ.prototype.aR=function(R){R!==this.Y&&(this.update({title:R,ariaLabel:R}),this.Y=R);R?this.show():this.hide()}; fQ.prototype.oR=function(){this.B.disabled=this.D==null;g.Gi(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Na()};g.A(j8,fQ);j8.prototype.onClickCommand=function(R){g.t(R,r9)&&this.Na()}; j8.prototype.updateVideoData=function(R,F){var h,a,J;R=g.t((h=F.getWatchNextResponse())==null?void 0:(a=h.playerOverlays)==null?void 0:(J=a.playerOverlayRenderer)==null?void 0:J.decoratedPlayerBarRenderer,ug);h=g.t(R==null?void 0:R.playerBarActionButton,g.Wq);if(this.U.X("web_player_updated_entrypoint")){this.Z=nO(h==null?void 0:h.text);var M;a=(M=h==null?void 0:h.tooltip)!=null?M:"Ver cap\u00edtulo";this.S.setAttribute("title",a)}this.D=h==null?void 0:h.command;fQ.prototype.oR.call(this)}; j8.prototype.Na=function(){var R=this.Z,F=this.L.B,h,a=((h=this.U.getLoopRange())==null?void 0:h.type)==="clips";if(F.length>1&&!a){R=this.U.getProgressState().current*1E3;h=E7(F,R);R=F[h].title||"Cap\u00edtulos";if(h!==this.currentIndex||this.K)this.U.WG("innertubeCommand",F[h].onActiveCommand),this.currentIndex=h;this.K=!1}else this.K=!0;fQ.prototype.aR.call(this,R)};g.A(Zx,g.gY);Zx.prototype.D=function(){var R;(R=this.element.parentElement)==null||R.classList.contains("ytp-right-controls-left");(this.B=!this.B)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Zx.prototype.isExpanded=function(){return this.B};g.A(bs,g.D);bs.prototype.K=function(R){g.V(R.state,32)?vkm(this,this.api.B_()):this.dW&&(g.V(R.state,16)||g.V(R.state,1))||this.fade.hide()}; bs.prototype.YX=function(){var R=this.api.getPlayerStateObject();(g.V(R,32)||g.V(R,16))&&gkO(this)}; bs.prototype.L=function(){this.frameIndex=NaN;gkO(this)}; bs.prototype.hide=function(){this.B&&vkm(this,null);g.D.prototype.hide.call(this)};g.A(GZ7,g.D);g.Q=GZ7.prototype;g.Q.onClick=function(){var R=this;if(this.U.W().EP||this.U.W().Y){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(F){R.Gu(F)})}catch(F){this.Gu(F)}}else cn(this.message,this.element,!0)}; g.Q.Gu=function(R){String(R).includes("fullscreen error")?g.qN(R):g.y7(R);this.Fg()}; g.Q.Fg=function(){this.disable();this.message.Tn(this.element,!0)}; g.Q.cK=function(){YO()===this.U.getRootNode()?this.K.start():(this.K.stop(),this.message&&this.message.hide())}; g.Q.eh=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var R=window.screen.width*.9,F=window.screen.height*.9,h=Math.max(window.outerWidth,window.innerWidth),a=Math.max(window.outerHeight,window.innerHeight);if(h>a!==R>F){var J=h;h=a;a=J}R>h&&F>a&&this.Fg()}}; g.Q.disable=function(){var R=this;if(!this.message){var F=(EK(["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.U4(this.U,{G:"div",sz:["ytp-popup","ytp-generic-popup"], j:{role:"alert",tabindex:"0"},V:[F[0],{G:"a",j:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.W().C},Dn:F[2]},F[4]]},100,!0);this.message.hide();g.z(this,this.message);this.message.subscribe("show",function(h){R.D.XR(R.message,h)}); g.Pn(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.B)();this.B=null}}; g.Q.gA=function(){var R=TEL(this.U),F=this.U.W().Y&&this.U.getPlayerSize().width<250;this.CO(R&&!F);var h;((h=this.U.W())==null?0:h.X("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.dW&&this.N):this.U.logVisibility(this.element,this.dW)}; g.Q.Zk=function(R){if(R){var F=g.St(this.U,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(h){g.qN(h)})}else F=g.St(this.U,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); R=IZI(this,R);F=this.message?null:F;this.update({title:F,icon:R});this.D.ZQ().P7()}; g.Q.Ez=function(){this.message||((0,this.B)(),this.B=null);g.D.prototype.Ez.call(this)}; g.Q.yY=function(R){g.D.prototype.yY.call(this,R);var F;((F=this.U.W())==null?0:F.X("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.dW&&R)};g.A(S8,g.D);S8.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.B,!0);var R=this.B>0?1:-1,F=Math.abs(this.B),h=this.U.vV().Ks;h&&h.qz(R,F);this.D.isActive()?this.K=!0:(R=["ytp-jump-spin"],this.B<0&&R.push("backwards"),this.element.classList.add.apply(this.element.classList,g.S(R)),g.VI(this.D))};g.A(O7,fQ);O7.prototype.onClickCommand=function(R){g.t(R,BU7)&&this.Na()}; O7.prototype.updateVideoData=function(){var R,F;this.D=(R=wUO(this))==null?void 0:(F=R.onTap)==null?void 0:F.innertubeCommand;fQ.prototype.oR.call(this)}; O7.prototype.Na=function(){var R="",F=this.L.Y,h,a=(h=wUO(this))==null?void 0:h.headerTitle;h=a?g.iQ(a):"";var J;a=((J=this.U.getLoopRange())==null?void 0:J.type)==="clips";F.length>1&&!a&&(R=this.U.getProgressState().current*1E3,J=EcO(F,R),R=J!=null?F[J].title:h,J!=null&&J!==this.currentIndex&&(this.U.WG("innertubeCommand",F[J].onActiveCommand),this.currentIndex=J));fQ.prototype.aR.call(this,R)};g.A(mf,g.D);mf.prototype.onClick=function(){this.U.WG("onCollapseMiniplayer");this.U.logClick(this.element)}; mf.prototype.gA=function(){this.visible=!this.U.isFullscreen();this.CO(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)}; mf.prototype.yY=function(R){g.D.prototype.yY.call(this,R);this.U.logVisibility(this.element,this.visible&&R)};g.A(oR,g.D);oR.prototype.init=function(){this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.S);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.B);Ek_(this,this.B)}; oR.prototype.K=function(){XA(this,Number(this.D.value));this.D.focus()}; oR.prototype.Y=function(R){if(!R.defaultPrevented){switch(R.code){case "ArrowDown":R=-this.Z;break;case "ArrowUp":R=this.Z;break;default:return}XA(this,Math.min(this.S,Math.max(Number((this.B+R).toFixed(2)),this.L)))}};g.A(e8,oR);e8.prototype.onVolumeChange=function(R){if(this.C)this.C=!1;else{var F=R.volume;F===0||R.muted?XA(this,0):XA(this,F)}}; e8.prototype.K=function(){oR.prototype.K.call(this);this.oR(this.B)}; e8.prototype.aR=function(R){var F=-R.deltaY;F=R.deltaMode===WheelEvent.DOM_DELTA_LINE||R.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.uu(this.B+F,0,100):g.uu(this.B+g.uu(F/10,-10,10),0,100);F===0?XA(this,0):XA(this,F);this.oR(F);R.preventDefault();R.stopPropagation()}; e8.prototype.KI=function(R,F){this.C=!0;R===0||F?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(R))};g.A(BnL,g.D);g.A(us,g.D);g.Q=us.prototype;g.Q.PD=function(){if(!this.U.Mg()){this.updateValue("dataTooltipOffsetY",-120);var R;(R=this.B)!=null&&nQ(R,!0);var F;(F=this.B)!=null&&F.B.stop()}}; g.Q.ea=function(){var R;(R=this.B)!=null&&R.B.start()}; g.Q.gS=function(R){this.visible=R.width>=300||this.Sl;this.CO(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)}; g.Q.oo=function(){this.U.W().Oz?this.U.isMuted()?this.U.unMute():this.U.mute():cn(this.message,this.element,!0);this.U.logClick(this.element)}; g.Q.fQo=function(R){if(this.U.W().Oz&&this.B)if(R.target===this.K){var F;if(!this.U.Mg()||((F=this.B)==null?0:F.isVisible))this.oo();else{var h;(h=this.B)!=null&&nQ(h,!0)}}else{var a;(a=this.B)!=null&&nQ(a,!0)}else this.oo()}; g.Q.onVolumeChange=function(R){this.setVolume(R.volume,R.muted)}; g.Q.setVolume=function(R,F){var h=this,a=F?0:R/100;R=a===0?1:R>50?1:0;if(this.C!==R){var J=this.Z;isNaN(J)?kZn(this,R):qoL(this.Oz,function(v){kZn(h,J+(h.C-J)*v)},250); this.C=R}a=a===0?1:0;if(this.Y!==a){var M=this.KI;isNaN(M)?Qwa(this,a):qoL(this.Uz,function(v){Qwa(h,M+(h.Y-M)*v)},250); this.Y=a}Ypm(this,F)}; g.Q.yY=function(R){g.D.prototype.yY.call(this,R);this.U.logVisibility(this.element,this.visible&&R)}; var swa=["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"],pUn=["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.A(g.PP,g.D);g.Q=g.PP.prototype;g.Q.onStateChange=function(R){this.wf(R.state);var F;((F=this.U.W())==null?0:F.X("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.dW&&this.N)}; g.Q.wf=function(R){var F=g.uR(this.U.getVideoData()),h=!1;R.isOrWillBePlaying()?R=F?4:2:g.V(R,2)?(R=3,h=F):R=1;this.element.disabled=h;if(this.B!==R){F=null;switch(R){case 2:F=g.St(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:F="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:F=g.St(this.U,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:F="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}R=== 3?this.update({title:F,icon:$tO(this,R)}):(this.update({title:F}),(F=$tO(this,R))&&this.B&&this.B!==3?jCi(this.transition,this.element,F):this.updateValue("icon",F));this.tooltip.P7();this.B=R}}; g.Q.onVideoDataChange=function(){g.Gi(this.element,"ytp-play-button-playlist",g.et(this.U))}; g.Q.X8=function(R){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var F={},h;if((h=this.U.getVideoData())==null?0:h.S)F.cttAuthInfo={token:this.U.getVideoData().S,videoId:this.U.getVideoData().videoId};TQ("direct_playback",F);this.U.zV().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(R==null?void 0:R.type)==="click"&&this.element.blur()}; g.Q.yY=function(R){g.D.prototype.yY.call(this,R);var F;((F=this.U.W())==null?0:F.X("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.dW&&R)};g.A(g.zX,g.D);g.Q=g.zX.prototype;g.Q.onVideoDataChange=function(){Nnf(this);this.L&&(this.Ap(this.L),this.L=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.L=this.T(this.U,"progresssync",this.XM);this.K=HSg(this);xtO(this);this.Sk(this.U.xo().getPlayerSize())}; g.Q.Sk=function(R){R=R===void 0?this.U.xo().getPlayerSize():R;var F,h=((F=this.U.getLoopRange())==null?void 0:F.type)==="clips";R=(g.et(this.U)||this.B&&g.zU(this.U)&&!this.U.X("web_hide_next_button")||L8L(this))&&!h&&(this.B||R.width>=400);this.CO(R);this.U.logVisibility(this.element,R)}; g.Q.onClick=function(R){this.U.logClick(this.element);var F=!0;this.Y?F=g.r0(R,this.U):R.preventDefault();F&&(this.B&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.B?($w(this.U.zV()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.K?this.U.seekTo(0):($w(this.U.zV()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.Q.XM=function(){var R=HSg(this);R!==this.K&&(this.K=R,xtO(this))}; g.Q.Ez=function(){this.D&&(this.D(),this.D=null);Nnf(this);g.D.prototype.Ez.call(this)};g.A(yv2,g.D);g.Q=yv2.prototype;g.Q.PF=function(R){this.Rb(R.pageX);this.vp(R.pageX+R.deltaX);qpg(this)}; g.Q.Rb=function(R){this.oR=R-this.Sl}; g.Q.vp=function(R){R-=this.Sl;!isNaN(this.oR)&&this.thumbnails.length>0&&(this.C=R-this.oR,this.thumbnails.length>0&&this.C!==0&&(this.K=this.Z+this.C,R=Spn(this,this.K),this.K<=this.B/2&&this.K>=bS2(this)?(this.api.seekTo(R,!1,void 0,void 0,25),g.zL(this.KI,"transform","translateX("+(this.K-this.B/2)+"px)"),Tna(this,R)):this.K=this.Z))}; g.Q.lw=function(){this.aR&&(this.aR.Zd=!0);var R=(0,g.NU)()-this.PG<300;if(Math.abs(this.C)<5&&!R){this.PG=(0,g.NU)();R=this.oR+this.C;var F=this.B/2-R;this.Rb(R);this.vp(R+F);qpg(this);this.api.logClick(this.S)}qpg(this)}; g.Q.g8=function(){KQ(this,this.api.getCurrentTime())}; g.Q.play=function(R){this.api.seekTo(Spn(this,this.K),void 0,void 0,void 0,26);this.api.playVideo();R&&this.api.logClick(this.playButton)}; g.Q.onExit=function(R){this.api.seekTo(this.NQ,void 0,void 0,void 0,63);this.api.playVideo();R&&this.api.logClick(this.dismissButton)}; g.Q.ew=function(R,F){this.Sl=R;this.B=F;KQ(this,this.api.getCurrentTime())}; g.Q.enable=function(){this.isEnabled||(this.isEnabled=!0,this.NQ=this.api.getCurrentTime(),Tna(this,this.NQ),g.Gi(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Oz=this.T(this.element,"wheel",this.PF),this.logVisibility(this.isEnabled))}; g.Q.disable=function(){this.isEnabled=!1;this.hide();g.Gi(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Oz&&this.Ap(this.Oz);this.logVisibility(this.isEnabled)}; g.Q.reset=function(){this.disable();this.L=[];this.fI=!1}; g.Q.logVisibility=function(R){this.api.logVisibility(this.element,R);this.api.logVisibility(this.S,R);this.api.logVisibility(this.dismissButton,R);this.api.logVisibility(this.playButton,R)}; g.Q.Ez=function(){for(;this.D.length;){var R=void 0;(R=this.D.pop())==null||R.dispose()}g.D.prototype.Ez.call(this)}; g.A(fZI,g.D);g.A(jwn,g.D);g.A(OSm,g.D);g.A(tk,g.D);tk.prototype.G_=function(R){return R==="PLAY_PROGRESS"?this.Z:R==="LOAD_PROGRESS"?this.Y:R==="LIVE_BUFFER"?this.S:this.K};XU2.prototype.update=function(R,F,h,a){h=h===void 0?0:h;this.width=F;this.L=h;this.B=F-h-(a===void 0?0:a);this.position=g.uu(R,h,h+this.B);this.K=this.position-h;this.D=this.K/this.B};g.A(eXi,g.D);g.A(g.Vf,g.gY);g.Q=g.Vf.prototype; g.Q.P6=function(){var R=!1,F=this.api.getVideoData();if(!F)return R;this.api.NH("timedMarkerCueRange");dtT(this);for(var h=g.N(F.T$),a=h.next();!a.done;a=h.next()){a=a.value;var J=void 0,M=(J=this.IR[a])==null?void 0:J.markerType;J=void 0;var v=(J=this.IR[a])==null?void 0:J.markers;if(!v)break;if(M==="MARKER_TYPE_TIMESTAMPS"){R=g.N(v);for(M=R.next();!M.done;M=R.next()){J=M.value;M=new eXi;v=void 0;M.title=((v=J.title)==null?void 0:v.simpleText)||"";M.timeRangeStartMillis=Number(J.startMillis);M.B= Number(J.durationMillis);var I=v=void 0;M.onActiveCommand=(I=(v=J.onActive)==null?void 0:v.innertubeCommand)!=null?I:void 0;Dtg(this,M)}VH7(this,this.Y);R=this.Y;M=this.w$;J=[];v=null;for(I=0;Iw&&(v.end=w);w=YsO(w,w+B);J.push(w);v=w;M[w.id]=R[I].onActiveCommand}}this.api.eI(J);this.XJ=this.IR[a];R=!0}else if(M==="MARKER_TYPE_HEATMAP"){a=this.IR[a];B=E=J=w=I=v=void 0;if(a&& a.markers){M=(J=(B=a.markersMetadata)==null?void 0:(E=B.heatmapMetadata)==null?void 0:E.minHeightDp)!=null?J:0;J=(v=(w=a.markersMetadata)==null?void 0:(I=w.heatmapMetadata)==null?void 0:I.maxHeightDp)!=null?v:60;v=this.B.length;I=null;for(w=0;w=B&&k<=r&&E.push(p)}J>0&&(this.aR.style.height= J+"px");B=this.L[w];r=E;p=M;var H=J,T=w===0;T=T===void 0?!1:T;mt7(B,H);Y=r;k=B.D;T=T===void 0?!1:T;var Z=1E3/Y.length,b=[];b.push({x:0,y:100});for(var O=0;O0&&(I=E[E.length-1])}g.U7(this)}J=void 0;M=[];if(a=(J=a.markersDecoration)==null?void 0:J.timedMarkerDecorations)for(a=g.N(a),J=a.next();!J.done;J=a.next())J=J.value,w=I=v=void 0,M.push({visibleTimeRangeStartMillis:(v=J.visibleTimeRangeStartMillis)!=null?v:-1,visibleTimeRangeEndMillis:(I=J.visibleTimeRangeEndMillis)!=null?I:-1,decorationTimeMillis:(w=J.decorationTimeMillis)!= null?w:NaN,label:J.label?g.iQ(J.label):""});a=M;this.heatMarkersDecorations=a}}F.a5=this.Y;g.Gi(this.element,"ytp-timed-markers-enabled",R);return R}; g.Q.ew=function(){g.U7(this);WP(this);VH7(this,this.Y);if(this.D){var R=g.c4(this.element).x||0;this.D.ew(R,this.S)}}; g.Q.Xet=function(){var R=this.api.getVideoData();R&&v5a(this,R)}; g.Q.onClickCommand=function(R){if(R=g.t(R,r9)){var F=R.key;R.isVisible&&F&&W8L(this,F)}}; g.Q.dHt=function(R){this.api.WG("innertubeCommand",this.w$[R.id])}; g.Q.Na=function(){WP(this);var R=this.api.getCurrentTime();(Rthis.clipEnd)&&this.qR()}; g.Q.Yt=function(R){if(!R.defaultPrevented){var F=!1;switch(R.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);F=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);F=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);F=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);F=!0;break;case 38:this.api.X("enable_key_press_seek_logging")&&Mo(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);F=!0;break;case 40:this.api.X("enable_key_press_seek_logging")&&Mo(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),F=!0}F&&R.preventDefault()}}; g.Q.O0=function(R,F){this.updateVideoData(F,R==="newdata")}; g.Q.v3=function(){this.O0("newdata",this.api.getVideoData())}; g.Q.updateVideoData=function(R,F){F=F===void 0?!1:F;var h=!!R&&R.Fd();h&&(Ic(R)||Jwa(this)?this.DG=!1:this.DG=R.allowLiveDvr,g.Gi(this.api.getRootNode(),"ytp-enable-live-buffer",!(R==null||!Ic(R))),v5a(this,R));Q4L(this,this.api.xX());if(F){if(h){F=R.clipEnd;this.clipStart=R.clipStart;this.clipEnd=F;va(this);for(hM(this,this.oR,this.EP);this.L.length>0;)this.L.pop().dispose();this.heatMarkersDecorations=[];this.Sw={};var a;(a=this.D)==null||a.reset();wO(this);g.Gi(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Dx(this))}else this.qR();this.D5()}if(R){var J;a=((J=this.sP)==null?void 0:J.type)==="clips";if(J=!R.isLivePlayback){J=this.api.getVideoData();F=g.dG(J);h=zXi(J);var M;J=F!=null||h!=null&&h.length>0||((M=J.Xl)==null?void 0:M.length)>0}if(J&&!a){M=this.api.getVideoData();a=g.dG(M);J=!1;if(a==null?0:a.markersMap){J=this.api.getVideoData();var v;J.SB=((v=a.visibleOnLoad)==null?void 0:v.key)||J.SB;v=g.N(a.markersMap);for(a=v.next();!a.done;a=v.next())a=a.value,a.key&&a.value&&(this.Sw[a.key]=a.value, a.value.onChapterRepeat&&(J.jH=a.value.onChapterRepeat));J.SB!=null&&W8L(this,J.SB);J=!0}var I;if(((I=M.Xl)==null?void 0:I.length)>0){I=g.YF.getState().entities;v=g.N(M.Xl);for(a=v.next();!a.done;a=v.next()){a=a.value;h=void 0;F=(h=Ua(I,"macroMarkersListEntity",a))==null?void 0:h.markersList;var w=h=void 0;if(((h=F)==null?void 0:h.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=F)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.IR[a]=F}J=this.P6()||J}!J&&(I=zXi(M))&&(tHi(this,I),M.XJ=this.B,K8m(this)); g5i(this,null);R.QL&&this.L.length===0&&(R=R.QL,I=R.key,R.isVisible&&I&&W8L(this,I))}else nkL(this),dtT(this)}WP(this)}; g.Q.Ra=function(R){this.Z&&!g.V(R.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var F;((F=this.D)==null?0:F.isEnabled)&&g.V(R.state,8)&&this.api.pauseVideo();R=this.api.getPresentingPlayerType()===2||!this.api.xX()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Gi(this.g$,"ytp-hide-scrubber-button",R)}; g.Q.YC=function(R){var F=!!this.sP!==!!R,h=this.sP;this.sP=R;g5i(this,h);(R==null?void 0:R.type)!=="clips"&&R||(R?(this.updateValue("clipstarticon",NK7()),this.updateValue("clipendicon",NK7()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",YKn()),this.updateValue("clipendicon",rsm()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),F&&(this.updateVideoData(this.api.getVideoData(), !0),g.U7(this)),va(this));hM(this,this.oR,this.EP)}; g.Q.iVo=function(){this.api.publish("progressBarHoverStart")}; g.Q.mal=function(R,F,h){var a=g.c4(this.element),J=cP(this).B,M=h?h.getAttribute("data-tooltip"):void 0,v=h?h.getAttribute("data-position"):void 0,I=h?h.getAttribute("data-offset-y"):void 0;I=I?Number(I):0;v&&(R=fP(this.K,Number(h.getAttribute("data-position")),0)*J+g.c4(this.progressBar).x);this.uY.x=R-a.x;this.uY.y=F-a.y;R=cP(this);h=JM(this,R);F=0;var w;if((w=this.api.getVideoData())==null?0:Ic(w))(w=this.api.getProgressState().seekableEnd)&&h>w&&(h=w,R.position=fP(this.K,w)*cP(this).B),F=this.K.D; Jwa(this)&&(F=this.K.D);w=M||g.Q6(this.DG?h-this.K.B:h-F);F=R.position+this.EJ;h-=this.api.wW();var E;if((E=this.D)==null||!E.isEnabled)if(this.api.B_()){if(this.B.length>1){E=aC(this,this.uY.x,!0);if(!this.sP)for(a=0;a1)for(a=0;a0)for(E=this.uY.x,a=g.N(this.Y),J=a.next();!J.done;J=a.next())J=J.value,v=CQ(this,J.timeRangeStartMillis/ (this.K.B*1E3),cP(this)),g.Gi(J.element,"ytp-timed-marker-hover",v<=E&&v+6>=E);a=this.tooltip.scale;E=this.api.X("delhi_modern_web_player")?67:45;I=(isNaN(I)?0:I)-E*a;this.api.X("web_key_moments_markers")?this.XJ?(E=EcO(this.Y,h*1E3),E=E!=null?this.Y[E].title:""):(E=E7(this.B,h*1E3),E=this.B[E].title):(E=E7(this.B,h*1E3),E=this.B[E].title);E||(I+=16*a);this.tooltip.scale===.6&&(g.ig(this.api.W())?(I=this.api.xo().getPlayerSize().height-225,a=this.api.X("delhi_modern_web_player")?70:110,I=E?I+a:I+ a+16):I=E?110:126);a=E7(this.B,h*1E3);this.fI=G8i(this,h,a)?a:G8i(this,h,a+1)?a+1:-1;g.Gi(this.api.getRootNode(),"ytp-progress-bar-snap",this.fI!==-1&&this.B.length>1);a=!1;J=g.N(this.heatMarkersDecorations);for(v=J.next();!v.done;v=J.next()){v=v.value;var B=h*1E3;B>=v.visibleTimeRangeStartMillis&&B<=v.visibleTimeRangeEndMillis&&(E=v.label,w=g.Q6(v.decorationTimeMillis/1E3),a=!0)}this.Xk!==a&&(this.Xk=a,this.api.logVisibility(this.d$,this.Xk));g.Gi(this.api.getRootNode(),"ytp-progress-bar-decoration", a);a=160*this.tooltip.scale*2;J=E.length*(this.C?8.55:5.7);J=J<=a?J:a;v=J<160*this.tooltip.scale;a=3;!v&&J/2>R.position&&(a=1);!v&&J/2>this.S-R.position&&(a=2);this.api.W().Y&&(I-=10);this.L.length&&this.L[0].Fd&&(I-=14*(this.C?2:1),this.NQ||(this.NQ=!0,this.api.logVisibility(this.aR,this.NQ)));var r;if(Dx(this)&&(((r=this.D)==null?0:r.isEnabled)||this.T$>0)){var Y;I-=((Y=this.D)==null?0:Y.isEnabled)?Gx(this):this.T$}r=void 0;Dx(this)&&!this.api.X("web_player_hide_fine_scrubbing_edu")&&(r="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.Sl||(this.Sl=!0,this.api.logVisibility(this.xO,this.Sl)));this.tooltip.oP(F,h,w,!!M,I,E,a,r)}else this.tooltip.oP(F,h,w,!!M,I);g.J$(this.api.getRootNode(),"ytp-progress-bar-hover");aOT(this)}; g.Q.KzR=function(){this.D5();g.vs(this.api.getRootNode(),"ytp-progress-bar-hover");this.NQ&&(this.NQ=!1,this.api.logVisibility(this.aR,this.NQ));this.Sl&&(this.Sl=!1,this.api.logVisibility(this.xO,this.Sl));this.api.X("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.Q.pel=function(R,F){var h=g.c4(this.element);this.Ma=R-h.x;Dx(this)&&this.D&&(this.D.fI?KQ(this.D,this.api.getCurrentTime()):ZSI(this.D),this.D.show(),g.Gi(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.D.isEnabled));this.Ig&&(this.Ig.dispose(),this.Ig=null);this.qg=F;this.PJ=this.api.getCurrentTime();this.B.length>1&&this.fI!==-1?this.api.seekTo(this.B[this.fI].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(JM(this,cP(this)),!1,void 0,void 0,7);g.J$(this.element,"ytp-drag");(this.Nx= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.Q.LzQ=function(){if(Dx(this)&&this.D){var R=Gx(this);this.T$>=R*.5?(this.D.enable(),KQ(this.D,this.api.getCurrentTime()),k8a(this,R)):wO(this)}if(g.V(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var F;if((F=this.D)==null?0:F.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.B.length>1&&this.fI!==-1)this.api.X("html5_enable_progress_bar_slide_seek_logging")&&Mo(this,this.PJ,this.B[this.fI].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.B[this.fI].startTime/1E3,void 0,void 0,void 0,7);else{R=JM(this,cP(this));this.api.X("html5_enable_progress_bar_slide_seek_logging")&&Mo(this,this.PJ,R,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(R,void 0,void 0,void 0,7);F=g.N(this.heatMarkersDecorations);for(var h=F.next();!h.done;h=F.next())h=h.value,R*1E3>=h.visibleTimeRangeStartMillis&&R*1E3<=h.visibleTimeRangeEndMillis&& this.api.logClick(this.d$)}g.vs(this.element,"ytp-drag");this.Uz&&(this.KI.src=this.Uz);this.Nx&&!g.V(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.Q.f1I=function(R,F){var h=this,a=cP(this),J=JM(this,a);this.api.xo().d0||(a.position>this.Ma+2?this.Ho&&(this.KI.src=this.Ho):a.position1);this.CO(R&&this.U.xo().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.dW);var F=1;R&&this.isActive()&&(F=2);if(this.B!==F){this.B=F;R=this.U.X("delhi_modern_web_player_icons");switch(F){case 1:this.updateValue("icon",R?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{G:"path",df:!0,j:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", R?{G:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{G:"path",j:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.EOi())}g.Gi(this.element,"ytp-remote-button-active",this.isActive())}}; Eo.prototype.D=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var R=this.mC,F=this.element;if(R.Ow())R.Nt();else{R.initialize();a:{var h=g.N(R.Es.items);for(var a=h.next();!a.done;a=h.next())if(a=a.value,a.priority===1){h=a;break a}h=null}h&&(h.open(),R.Tn(F));R.Tn(F)}}this.U.logClick(this.element)};g.A(Ba,g.D);Ba.prototype.B=function(R){var F=this.U.W(),h=400;this.U.X("web_player_small_hbp_settings_menu")&&F.S?h=300:F.Y&&(h=200);R=this.D&&R.width>=h;this.CO(R);this.U.X("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,R&&this.N):this.U.logVisibility(this.element,R)}; Ba.prototype.K=function(){if(this.mC.dW)this.mC.Nt();else{var R=g.jc(this.U.LO());R&&!R.loaded&&(R.eq("tracklist",{includeAsr:!0}).length||R.load());this.U.logClick(this.element);this.mC.Tn(this.element)}}; Ba.prototype.updateBadge=function(){var R=this.U.isHdr(),F=this.U.getPresentingPlayerType(),h=F!==2&&F!==3,a=g.du(this.U),J=h&&!!g.um(this.U.LO());F=J&&a.displayMode===1;a=J&&a.displayMode===2;h=(J=F||a)||!h?null:this.U.getPlaybackQuality();g.Gi(this.element,"ytp-hdr-quality-badge",R);g.Gi(this.element,"ytp-hd-quality-badge",!R&&(h==="hd1080"||h==="hd1440"));g.Gi(this.element,"ytp-4k-quality-badge",!R&&h==="hd2160");g.Gi(this.element,"ytp-5k-quality-badge",!R&&h==="hd2880");g.Gi(this.element,"ytp-8k-quality-badge", !R&&h==="highres");g.Gi(this.element,"ytp-3d-badge-grey",!R&&J&&F);g.Gi(this.element,"ytp-3d-badge",!R&&J&&a)};g.A(rO,El);rO.prototype.isLoaded=function(){var R=g.oF(this.U.LO());return R!==void 0&&R.loaded}; rO.prototype.gA=function(){g.oF(this.U.LO())!==void 0&&this.U.getPresentingPlayerType()!==3?this.B||(this.mC.SA(this),this.B=!0):this.B&&(this.mC.J4(this),this.B=!1);Bg(this,this.isLoaded())}; rO.prototype.onSelect=function(R){this.isLoaded();R?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",R)}; rO.prototype.Ez=function(){this.B&&this.mC.J4(this);El.prototype.Ez.call(this)};g.A(Yl,g.Xq);Yl.prototype.gA=function(){var R=this.U.getAvailableAudioTracks();R.length>1?(this.Dk(g.p1(R,this.B)),this.tracks=g.Cg(R,this.B,this),this.countLabel.jA(R.length?" ("+R.length+")":""),this.publish("size-change"),this.xZ(this.B(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Yl.prototype.dL=function(R){g.Xq.prototype.dL.call(this,R);this.U.setAudioTrack(this.tracks[R]);this.mC.Qz()}; Yl.prototype.B=function(R){return R.toString()};g.A(so,El); so.prototype.D=function(){var R=this.U.getPresentingPlayerType();if(R!==2&&R!==3&&g.zU(this.U))this.B||(this.mC.SA(this),this.B=!0,this.K.push(this.T(this.U,"videodatachange",this.D)),this.K.push(this.T(this.U,"videoplayerreset",this.D)),this.K.push(this.T(this.U,"onPlaylistUpdate",this.D)),this.K.push(this.T(this.U,"autonavchange",this.L)),R=this.U.getVideoData(),this.L(R.autonavState),this.U.logVisibility(this.element,this.B));else if(this.B){this.mC.J4(this);this.B=!1;R=g.N(this.K);for(var F=R.next();!F.done;F= R.next())this.Ap(F.value)}}; so.prototype.L=function(R){Bg(this,R!==1)}; so.prototype.onSelect=function(R){this.U.XH(R?2:1);this.B&&(this.U.logVisibility(this.element,this.B),this.U.logClick(this.element))}; so.prototype.Ez=function(){this.B&&this.mC.J4(this);El.prototype.Ez.call(this)};g.A(AwB,g.Fa);AwB.prototype.onClick=function(R){R.preventDefault();var F,h;(F=g.Hn(this.U))==null||(h=F.v1())==null||h.Nt();var a,J;(a=g.Hn(this.U))==null||(J=a.V2())==null||J.Tn(R.target)};g.A(xf2,g.Xq);g.Q=xf2.prototype; g.Q.cW=function(){var R=this.U.getPresentingPlayerType();if(R!==2&&R!==3){this.KI=this.U.kc();var F=this.U.getAvailableQualityLevels();if(this.B){this.L={};R=g.QV(this.U,"getAvailableQualityData",[]);R=g.N(R);for(var h=R.next();!h.done;h=R.next())h=h.value,this.L[h.qualityLabel]=h;R=Object.keys(this.L);F[F.length-1]==="auto"&&R.push("auto");this.Uz=new Set(F)}else if(this.S){h=g.QV(this.U,"getAvailableQualityData",[]);R=[];h=g.N(h);for(var a=h.next();!a.done;a=h.next())a=a.value,this.C[a.quality]= a,a.quality&&R.push(a.quality);F[F.length-1]==="auto"&&R.push("auto")}else R=F;g.wlO(this.U)&&this.U.Og()&&R.unshift("missing-qualities");F=this.U.app.bu();h=F.getVideoData();if(!h.D||!h.D.video||h.D.video.qualityOrdinal<1080||h.N$)F=!1;else{a=/^qsa/.test(h.clientPlaybackNonce);var J="r";h.D.id.indexOf(";")>=0&&(a=/^[a-p]/.test(h.clientPlaybackNonce),J="x");a?(F.dA("iqss",{trigger:J},!0),F=!0):F=!1}F&&R.unshift("inline-survey");this.Dk(R);F=this.U.getVideoData().cotn?!0:!1;h=this.aR.sT();h=!g.ig(this.U.W())|| !(F===void 0?0:F)||!(h===void 0||h);F=this.D;h=h===void 0?!1:h;F.Zp&&g.Gi(F.mI("ytp-panel-footer"),"ytp-panel-hide-footer",h===void 0?!1:h);if(R.length){this.wS();this.enable(!0);return}}this.enable(!1)}; g.Q.wS=function(){if(this.B){var R=this.U.getPreferredQuality();this.Uz.has(R)&&(this.Y=this.U.getPlaybackQuality(),this.oR=this.U.getPlaybackQualityLabel(),R==="auto"?(this.xZ(R),this.jA(this.dY(R))):this.xZ(this.oR))}else R=this.U.getPreferredQuality(),this.options[R]&&(this.Y=this.U.getPlaybackQuality(),this.xZ(R),R==="auto"&&this.jA(this.dY(R)))}; g.Q.dL=function(R){if(R!=="missing-qualities"){g.Xq.prototype.dL.call(this,R);var F=this.B?this.L[R]:this.C[R];var h=F==null?void 0:F.quality,a=F==null?void 0:F.formatId,J=F==null?void 0:F.paygatedQualityDetails;F=J==null?void 0:J.endpoint;if(J){var M;J=(M=this.options[R])==null?void 0:M.element;this.U.logClick(J)}if(this.B){var v,I;if((v=g.t(F,g.gN7))==null?0:(I=v.popup)==null?0:I.notificationActionRenderer)this.U.WG("innertubeCommand",F);else if(F){this.U.WG("innertubeCommand",F);return}a?this.U.setPlaybackQuality(h, a):this.U.setPlaybackQuality(h)}else{if(this.S){var w,E;if((w=g.t(F,g.gN7))==null?0:(E=w.popup)==null?0:E.notificationActionRenderer)this.U.WG("innertubeCommand",F);else if(F){this.U.WG("innertubeCommand",F);return}}this.U.setPlaybackQuality(R)}this.mC.Nt();this.cW()}}; g.Q.open=function(){for(var R=g.N(Object.values(this.options)),F=R.next();!F.done;F=R.next()){F=F.value;var h=void 0;this.U.hasVe((h=F)==null?void 0:h.element)&&(h=void 0,this.U.logVisibility((h=F)==null?void 0:h.element,!0))}g.Xq.prototype.open.call(this);this.U.logClick(this.element)}; g.Q.IU=function(R,F,h){var a=this;if(R==="missing-qualities")return new g.Fa({G:"a",sz:["ytp-menuitem"],j:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.W().C,tabindex:"0",role:"menuitemradio"},V:[{G:"div",sz:["ytp-menuitem-label"],Dn:"{{label}}"}]},F,this.dY(R));if(R!=="inline-survey"){var J,M=(J=this.B?this.L[R]:this.C[R])==null?void 0:J.paygatedQualityDetails;J=M==null?void 0:M.veType;M=M==null?void 0:M.trackingParams;F=g.Xq.prototype.IU.call(this,R,F,h);M?(this.U.createServerVe(F.element, this,!0),this.U.setTrackingParams(F.element,M)):J&&this.U.createClientVe(F.element,this,J,!0);return F}R=[{G:"span",Dn:"\u00bfSe ve bien?"}];h=g.N([!0,!1]);M=h.next();for(J={};!M.done;J={Sz:void 0},M=h.next())J.Sz=M.value,M=new g.D({G:"span",J:"ytp-menuitem-inline-survey-response",V:[J.Sz?xmL():pva()],j:{tabindex:"0",role:"button"}}),M.listen("click",function(v){return function(){var I=a.U.app.bu();I.dA("iqsr",{tu:v.Sz});I.getVideoData().N$=!0;a.mC.Nt();a.cW()}}(J)),R.push(M); return new g.Fa({G:"div",J:"ytp-menuitem",j:{"aria-disabled":"true"},V:[{G:"div",sz:["ytp-menuitem-label"],V:R}]},F)}; g.Q.dY=function(R,F){F=F===void 0?!1:F;if(R==="missing-qualities")return{G:"div",Dn:"\u00bfFaltan opciones?"};if(R==="inline-survey")return"";var h=this.S||this.B?[LNg(this,R,F,!1)]:[HXL(this,R)];var a=this.U.getPreferredQuality();F||a!=="auto"||R!=="auto"||(h.push(" "),this.B?h.push(LNg(this,this.oR,F,!0,["ytp-menu-label-secondary"])):this.S?h.push(LNg(this,this.Y,F,!0,["ytp-menu-label-secondary"])):h.push(HXL(this,this.Y,["ytp-menu-label-secondary"])));return{G:"div",V:h}};g.A(pc,oR);pc.prototype.K=function(){oR.prototype.K.call(this);this.C&&Tlf(this)}; pc.prototype.Uz=function(){this.oR()}; pc.prototype.KI=function(){this.U.setPlaybackRate(this.B,!0)}; pc.prototype.Y=function(R){oR.prototype.Y.call(this,R);this.oR();Tlf(this);R.preventDefault()};g.A(kl,g.D);g.Q=kl.prototype;g.Q.init=function(){this.zJ(this.B);this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K)}; g.Q.To=function(R){if(!R.defaultPrevented){switch(R.keyCode){case 37:case 40:var F=-this.Z;break;case 39:case 38:F=this.Z;break;default:return}this.zJ(this.B+F);R.preventDefault()}}; g.Q.w8=function(R){var F=this.B;F+=(R.deltaX||-R.deltaY)<0?-this.C:this.C;this.zJ(F);R.preventDefault()}; g.Q.JM=function(R){R=(R-g.c4(this.L).x)/this.oR*this.range+this.D;this.zJ(R)}; g.Q.zJ=function(R,F){F=F===void 0?"":F;R=g.uu(R,this.D,this.K);F===""&&(F=R.toString());this.updateValue("valuenow",R);this.updateValue("valuetext",F);this.aR.style.left=(R-this.D)/this.range*(this.oR-this.fI)+"px";this.B=R}; g.Q.focus=function(){this.Oz.focus()};g.A(Qc,kl);Qc.prototype.KI=function(){this.U.setPlaybackRate(this.B,!0)}; Qc.prototype.zJ=function(R){kl.prototype.zJ.call(this,R,qdg(this,R).toString());this.S&&(yw2(this),this.Uz())}; Qc.prototype.updateValues=function(){var R=this.U.getPlaybackRate();qdg(this,this.B)!==R&&(this.zJ(R),yw2(this))};g.A(fOL,g.gY);fOL.prototype.focus=function(){this.B.focus()};g.A(j4i,TK);g.A(ZXi,g.Xq);g.Q=ZXi.prototype;g.Q.dY=function(R){return R==="1"?"Normal":R.toLocaleString()}; g.Q.gA=function(){var R,F=(R=this.U.getVideoData())==null?void 0:R.We();R=this.U.getPresentingPlayerType(F);this.enable(R!==2&&R!==3);OXL(this)}; g.Q.Dk=function(R){g.Xq.prototype.Dk.call(this,R);this.Y&&this.Y.D.focus()}; g.Q.h7=function(R){g.Xq.prototype.h7.call(this,R);R?(this.oR=this.T(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),OXL(this),bX_(this,this.U.getPlaybackRate())):(this.Ap(this.oR),this.oR=null)}; g.Q.onPlaybackRateChange=function(R){var F=this.U.getPlaybackRate();!this.L&&this.C.includes(F)||SdL(this,F);bX_(this,R)}; g.Q.IU=function(R,F,h){return R===this.B&&mf2(this.U)?g.Xq.prototype.IU.call(this,R,F,h,{G:"div",J:"ytp-speed-slider-menu-footer",V:[this.Y]}):g.Xq.prototype.IU.call(this,R,F,h)}; g.Q.dL=function(R){g.Xq.prototype.dL.call(this,R);R===this.B?this.U.setPlaybackRate(this.S,!0):this.U.setPlaybackRate(Number(R),!0);mf2(this.U)&&R===this.B||this.mC.Qz()}; g.Q.G9=function(R){var F=R===this.B;this.L=!1;F&&$l(this.U)&&!mf2(this.U)?(R=new j4i(this.U),g.jz(this.mC,R)):g.Xq.prototype.G9.call(this,R)};g.A(XNf,g.Xq);g.Q=XNf.prototype;g.Q.xZ=function(R){g.Xq.prototype.xZ.call(this,R)}; g.Q.JW=function(R){return R.option.toString()}; g.Q.getOption=function(R){return this.settings[R]}; g.Q.dY=function(R){return this.getOption(R).text||""}; g.Q.dL=function(R){g.Xq.prototype.dL.call(this,R);this.publish("settingChange",this.setting,this.settings[R].option)};g.A(xl,g.yO);xl.prototype.v_=function(R){for(var F=g.N(Object.keys(R)),h=F.next();!h.done;h=F.next()){var a=h.value;if(h=this.K9[a]){var J=R[a].toString();a=!!R[a+"Override"];h.options[J]&&(h.xZ(J),h.L.element.setAttribute("aria-checked",String(!a)),h.B.element.setAttribute("aria-checked",String(a)))}}}; xl.prototype.gE=function(R,F){this.publish("settingChange",R,F)};g.A(No,g.Xq);No.prototype.B=function(R){return R.languageCode}; No.prototype.dY=function(R){return this.languages[R].languageName||""}; No.prototype.dL=function(R){this.publish("select",R);this.U.logClick(this.element);g.ZE(this.mC)};g.A(urn,g.Xq);g.Q=urn.prototype;g.Q.RN=function(R){return g.BV(R)?"__off__":R.displayName}; g.Q.dY=function(R){return R==="__off__"?"Desactivados":R==="__translate__"?"Traducci\u00f3n autom\u00e1tica":R==="__contribute__"?"Agregar subt\u00edtulos":R==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(R==="__off__"?{}:this.tracks[R]).displayName}; g.Q.dL=function(R){if(R==="__translate__")this.B.open();else if(R==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var F=g.FH(this.U.W(),this.U.getVideoData());g.nP(F)}else if(R==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var h=dfL(this);Ha(this,h);g.Xq.prototype.dL.call(this,this.RN(h));var a,J;h=(F=this.U.getVideoData().getPlayerResponse())==null?void 0:(a=F.captions)==null?void 0:(J=a.playerCaptionsTracklistRenderer)== null?void 0:J.openTranscriptCommand;this.U.WG("innertubeCommand",h);this.mC.Qz();this.L&&this.U.logClick(this.L)}else{if(R==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();F=dfL(this);Ha(this,F);g.Xq.prototype.dL.call(this,this.RN(F));var M,v;F=(h=this.U.getVideoData().getPlayerResponse())==null?void 0:(M=h.captions)==null?void 0:(v=M.playerCaptionsTracklistRenderer)==null?void 0:v.openTranscriptCommand;this.U.WG("innertubeCommand",F)}else this.U.logClick(this.element), Ha(this,R==="__off__"?{}:this.tracks[R]),g.Xq.prototype.dL.call(this,R);this.mC.Qz()}}; g.Q.gA=function(){var R=this.U.getOptions();R=R&&R.indexOf("captions")!==-1;var F=this.U.getVideoData(),h=F&&F.aO,a,J=!((a=this.U.getVideoData())==null||!g.MX(a));a={};if(R||h){var M;if(R){var v=this.U.getOption("captions","track");a=this.U.getOption("captions","tracklist",{includeAsr:!0});var I=J?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.Cg(a,this.RN,this);J=g.p1(a,this.RN);var w,E;dfL(this)&&((M=F.getPlayerResponse())==null?0:(w=M.captions)==null?0:(E=w.playerCaptionsTracklistRenderer)== null?0:E.openTranscriptCommand)&&J.push("__correction__");if(I.length&&!g.BV(v)){if((M=v.translationLanguage)&&M.languageName){var B=M.languageName;M=I.findIndex(function(r){return r.languageName===B}); jgi(I,M)}ezm(this.B,I);J.push("__translate__")}M=this.RN(v)}else this.tracks={},J=[],M="__off__";J.unshift("__off__");this.tracks.__off__={};h&&J.unshift("__contribute__");this.tracks[M]||(this.tracks[M]=v,J.push(M));this.Dk(J);this.xZ(M);v&&v.translationLanguage?this.B.xZ(this.B.B(v.translationLanguage)):icL(this.B);R&&this.S.v_(this.U.getSubtitlesUserSettings());this.countLabel.jA(a&&a.length?" ("+a.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.Q.tM=function(R){var F=this.U.getOption("captions","track");F=g.sR(F);F.translationLanguage=this.B.languages[R];Ha(this,F)}; g.Q.gE=function(R,F){if(R==="reset")this.U.resetSubtitlesUserSettings();else{var h={};h[R]=F;this.U.updateSubtitlesUserSettings(h)}n5n(this,!0);this.Y.start();this.S.v_(this.U.getSubtitlesUserSettings())}; g.Q.HVu=function(R){R||g.CD(this.Y)}; g.Q.Ez=function(){g.CD(this.Y);g.Xq.prototype.Ez.call(this)}; g.Q.open=function(){g.Xq.prototype.open.call(this);this.options.__correction__&&!this.L&&(this.L=this.options.__correction__.element,this.U.createClientVe(this.L,this,167341),this.U.logVisibility(this.L,!0))};g.A(PYB,g.f3);g.Q=PYB.prototype; g.Q.initialize=function(){if(!this.isInitialized){var R=this.U.W();this.isInitialized=!0;try{this.yP=new xf2(this.U,this)}catch(h){g.qN(Error("QualityMenuItem creation failed"))}g.z(this,this.yP);var F=new urn(this.U,this);g.z(this,F);R.K||(F=new rO(this.U,this),g.z(this,F));R.enableSpeedOptions&&(F=new ZXi(this.U,this),g.z(this,F));(g.Py(R)||R.S)&&(R.D||R.PG)&&(F=new AwB(this.U,this),g.z(this,F));R.xO&&!R.X("web_player_move_autonav_toggle")&&(R=new so(this.U,this),g.z(this,R));R=new Yl(this.U,this); g.z(this,R);this.U.publish("settingsMenuInitialized");$ff(this.settingsButton,this.Es.ZH())}}; g.Q.SA=function(R){this.initialize();this.Es.SA(R);$ff(this.settingsButton,this.Es.ZH())}; g.Q.J4=function(R){this.dW&&this.Es.ZH()<=1&&this.hide();this.Es.J4(R);$ff(this.settingsButton,this.Es.ZH())}; g.Q.Tn=function(R){this.initialize();this.Es.ZH()>0&&g.f3.prototype.Tn.call(this,R)}; g.Q.Nt=function(){this.ul?this.ul=!1:g.f3.prototype.Nt.call(this)}; g.Q.show=function(){g.f3.prototype.show.call(this);g.J$(this.U.getRootNode(),"ytp-settings-shown")}; g.Q.hide=function(){g.f3.prototype.hide.call(this);g.vs(this.U.getRootNode(),"ytp-settings-shown")}; g.Q.u0=function(R){this.U.logVisibility(this.element,R);this.U.publish("settingsMenuVisibilityChanged",R)};g.A(tq_,g.D);g.Q=tq_.prototype;g.Q.onClick=function(){if(Lc(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var R=!1,F=g.XB(g.oA(),65);g.ig(this.U.W())&&F!=null&&(R=!F);R&&this.U.W().X("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.Q.EOo=function(R){var F,h;(F=g.Hn(this.U))==null||(h=F.v1())==null||h.Tn(R)}; g.Q.isEnabled=function(){var R=this.U.getOption("captions","track");return!(!R||!R.displayName)}; g.Q.gA=function(){var R=Lc(this),F=300;this.U.W().Y&&(F=480);this.U.X("delhi_modern_web_player_icons")&&this.updateValue("icon",KN_(this));if(this.U.W().S){this.updateValue("title",g.St(this.U,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var h=R}else{if(R)(h=this.mI("ytp-subtitles-button-icon"))==null||h.setAttribute("fill-opacity","1"),this.updateValue("title",g.St(this.U,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.U.X("delhi_modern_web_player_icons")){var a; (a=this.mI("ytp-subtitles-button-icon"))==null||a.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var J;(J=this.mI("ytp-subtitles-button-icon"))==null||J.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}h=!0}this.tooltip.P7();h=h&&this.U.xo().getPlayerSize().width>=F;this.CO(h);this.U.X("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element, h&&this.N):this.U.logVisibility(this.element,h);R?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.Q.yY=function(R){g.D.prototype.yY.call(this,R);this.U.W().X("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.dW&&R)};g.A(g.Tx,g.D);g.Q=g.Tx.prototype;g.Q.canShowCountdown=function(){return!qo(this)&&!yc(this)}; g.Q.Na=function(){var R=this.api.xo().getPlayerSize().width,F=this.C;this.api.W().Y&&(F=400);F=R>=F&&(!yc(this)||!g.V(this.api.getPlayerStateObject(),64));this.CO(F);g.Gi(this.element,"ytp-time-display-allow-autohide",F&&R<400);R=this.api.getProgressState();if(F){var h=this.api.getPresentingPlayerType();F=this.api.getCurrentTime(h,!1);this.D&&(F-=R.airingStart);qo(this)&&(F-=this.sP.startTimeMs/1E3);this.canShowCountdown()&&this.K&&(F-=this.api.getDuration(h,!1));var a=g.Q6(F);this.L!==a&&(this.updateValue("currenttime", a),this.L=a);h=qo(this)?(this.sP.endTimeMs-this.sP.startTimeMs)/1E3:this.api.getDuration(h,!1);a=g.Q6(h);this.S!==a&&(this.updateValue("duration",a),this.S=a,F&&(F=g.JE("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Q6(F,!0),DURATION:g.Q6(h,!0)}),this.updateValue("timeDisplayAriaLabel",F)))}lOO(this,R.isAtLiveHead);Df2(this,this.api.getLoopRange())}; g.Q.onLoopRangeChange=function(R){var F=this.sP!==R;this.sP=R;F&&(this.Na(),VqO(this))}; g.Q.G0t=function(){this.api.setLoopRange(null)}; g.Q.FIn=function(){this.K=!this.K;this.Na()}; g.Q.onVideoDataChange=function(R,F,h){this.updateVideoData((this.api.W().X("enable_topsoil_wta_for_halftime")||this.api.W().X("enable_topsoil_wta_for_halftime_live_infra"))&&h===2?this.api.getVideoData(1):F);this.Na();VqO(this)}; g.Q.updateVideoData=function(R){this.l4=R.isLivePlayback&&!R.nI;this.D=Ic(R);this.isPremiere=R.isPremiere;g.Gi(this.element,"ytp-live",yc(this));this.api.X("delhi_modern_web_player")&&this.mI("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.Q.onClick=function(R){R.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.Q.Ez=function(){this.B&&this.B();g.D.prototype.Ez.call(this)};g.A(CYf,g.D);g.Q=CYf.prototype;g.Q.cK=function(){var R=this.api.AG();this.K!==R&&(this.K=R,Ufi(this,this.api.getVolume(),this.api.isMuted()))}; g.Q.Tm=function(R){this.CO(R.width>=350)}; g.Q.yI=function(R){if(!R.defaultPrevented){var F=R.keyCode,h=null;F===37?h=this.volume-5:F===39?h=this.volume+5:F===36?h=0:F===35&&(h=100);h!==null&&(h=g.uu(h,0,100),h===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(h)),R.preventDefault())}}; g.Q.IX=function(R){var F=R.deltaX||-R.deltaY;R.deltaMode?this.api.setVolume(this.volume+(F<0?-10:10)):this.api.setVolume(this.volume+g.uu(F/10,-10,10));R.preventDefault()}; g.Q.QTo=function(){fc(this,this.B,!0,this.D,this.api.Mg());this.C=this.volume;this.api.isMuted()&&this.api.unMute()}; g.Q.ZO=function(R){var F=this.K?78:52,h=this.K?18:12;R-=g.c4(this.Z).x;this.api.setVolume(g.uu((R-h/2)/(F-h),0,1)*100)}; g.Q.e3A=function(){fc(this,this.B,!1,this.D,this.api.Mg());this.volume===0&&(this.api.mute(),this.api.setVolume(this.C))}; g.Q.onVolumeChange=function(R){Ufi(this,R.volume,R.muted)}; g.Q.nj=function(){fc(this,this.B,this.isDragging,this.D,this.api.Mg())}; g.Q.Ez=function(){g.D.prototype.Ez.call(this);g.vs(this.Y,"ytp-volume-slider-active")};g.A(jJ,g.D); jJ.prototype.onVideoDataChange=function(){var R=this.api.W();this.ew();this.visible=!!this.api.getVideoData().videoId&&!g.im(this.api.getVideoData(1));this.CO(this.visible);this.api.logVisibility(this.element,this.visible&&this.N);if(this.visible){var F=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",F)}R.K&&(this.B&&(this.Ap(this.B),this.B=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.J$(this.element,"no-link")); F=this.api.W();R=this.api.getVideoData();var h="";F.K||(F=g.M5(F),F.indexOf("www.")===0&&(F=F.substring(4)),h=g.wu(R)?"Mirar en YouTube Music":F==="youtube.com"?"Mirar en YouTube":g.JE("Mirar en $WEBSITE",{WEBSITE:F}));this.updateValue("title",h)}; jJ.prototype.onClick=function(R){this.api.X("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var F=this.api.W(),h=this.api.getVideoUrl(!g.$r(R),!1,!0,!0);if(g.Py(F)){var a={};g.Py(F)&&g.QV(this.api,"addEmbedsConversionTrackingParams",[a]);h=g.sA(h,a)}g.YQ(h,this.api,R);this.api.X("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; jJ.prototype.ew=function(){var R={G:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{G:"path",df:!0,J:"ytp-svg-fill",j:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, F=28666,h=this.api.getVideoData();this.api.isEmbedsShortsMode()?R={G:"svg",j:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{G:"path",j:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.wu(h)&&(R={G:"svg",j:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{G:"path",j:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{G:"path",j:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{G:"path",j:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{G:"path",j:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{G:"path",j:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{G:"path",j:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{G:"path",j:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{G:"path",j:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{G:"path",j:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{G:"path",j:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{G:"path",j:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{G:"path",j:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},F=216163);g.wu(h)?g.J$(this.element,"ytp-youtube-music-button"):g.vs(this.element,"ytp-youtube-music-button");R.j=Object.assign({},R.j,{"aria-hidden":"true"});this.updateValue("logoSvg",R);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,F,!0)}; jJ.prototype.yY=function(R){g.D.prototype.yY.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};g.A(Ryf,g.xK);g.Q=Ryf.prototype;g.Q.YX=function(){if(this.U.X("web_player_max_seekable_on_ended")||!g.V(this.U.getPlayerStateObject(),2))this.progressBar.Na(),this.Oz.Na()}; g.Q.Nb=function(){this.gI();this.Mx.D?this.YX():this.progressBar.D5()}; g.Q.FM=function(){this.YX();this.C.start()}; g.Q.gI=function(){var R;if(R=!this.U.W().D){R=this.progressBar;var F=2*g.IX()*R.S,h=R.K;R=(h.B-h.D)*1E3/R.api.getPlaybackRate()/F<300}R=R&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;F=!R;this.Mx.D||(R=F=!1);F?this.KI||(this.KI=this.T(this.U,"progresssync",this.YX)):this.KI&&(this.Ap(this.KI),this.KI=null);R?this.C.isActive()||this.C.start():this.C.stop()}; g.Q.ew=function(){var R=this.U.AG(),F=this.U.xo().getPlayerSize(),h=this.U.xo().d0,a=hyf(this),J=aei(this),M=Math.max(F.width-a*2,100);if(this.EP!==F.width||this.uY!==R||this.U.X("web_player_rtr_ctrls")&&this.ji!==h)this.EP=F.width,this.uY=R,this.ji=h,this.D.element.style.width=J+"px",this.D.element.style.left=a+"px",g.s4_(this.progressBar,a,J,R),this.U.ZQ().tW=J;h=this.L;M=Math.min(570*(R?1.5:1),M);R=Math.min(413*(R?1.5:1),Math.round((F.height-J8n(this))*.82));h.maxWidth=M;h.maxHeight=R;h.PU();this.gI(); this.U.W().X("html5_player_dynamic_bottom_gradient")&&aZ7(this.nI,F.height)}; g.Q.onVideoDataChange=function(){var R=this.U.getVideoData();this.IR.style.background=R.bq?R.JX:"";this.aR&&iSf(this.aR,R.showSeekingControls);this.oR&&iSf(this.oR,R.showSeekingControls)}; g.Q.G_=function(){return this.D.element};g.A(Msg,L3);g.Q=Msg.prototype;g.Q.NJ=function(R){R.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.WG("innertubeCommand",this.onClickCommand),this.AN())}; g.Q.AN=function(){this.enabled=!1;this.C.hide()}; g.Q.onVideoDataChange=function(R,F){R==="dataloaded"&&vgm(this);R=[];var h,a,J,M;if(F=(M=g.t((h=F.getWatchNextResponse())==null?void 0:(a=h.playerOverlays)==null?void 0:(J=a.playerOverlayRenderer)==null?void 0:J.suggestedActionsRenderer,mkk))==null?void 0:M.suggestedActions)for(h=g.N(F),a=h.next();!a.done;a=h.next())(a=g.t(a.value,oN4))&&g.t(a.trigger,Oh7)&&R.push(a);if(R.length!==0){h=[];R=g.N(R);for(a=R.next();!a.done;a=R.next())if(a=a.value,J=g.t(a.trigger,Oh7))M=(M=a.title)?g.iQ(M):"View Chapters", F=J.timeRangeStartMillis,J=J.timeRangeEndMillis,F!=null&&J!=null&&a.tapCommand&&(h.push(new g.KI(F,J,{priority:9,namespace:"suggested_action_button_visible",id:M})),this.suggestedActions[M]=a.tapCommand);this.U.eI(h)}}; g.Q.Za=function(){return this.enabled}; g.Q.u0=function(){this.enabled?this.NQ.start():N6(this);this.QD()}; g.Q.Ez=function(){vgm(this);L3.prototype.Ez.call(this)};var fS={},SJ=(fS.CHANNEL_NAME="ytp-title-channel-name",fS.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",fS.LINK="ytp-title-link",fS.SESSIONLINK="yt-uix-sessionlink",fS.SUBTEXT="ytp-title-subtext",fS.TEXT="ytp-title-text",fS.TITLE="ytp-title",fS);g.A(Oo,g.D);Oo.prototype.onClick=function(R){this.api.logClick(this.element);var F=this.api.W(),h=this.api.getVideoUrl(!g.$r(R),!1,!0);g.Py(F)&&(F={},g.QV(this.api,"addEmbedsConversionTrackingParams",[F]),h=g.sA(h,F));g.YQ(h,this.api,R)}; Oo.prototype.gA=function(){var R=this.api.getVideoData(),F=this.api.W();this.updateValue("title",R.title);var h={G:"a",J:SJ.CHANNEL_NAME,j:{href:"{{channelLink}}",target:"_blank"},Dn:"{{channelName}}"};this.api.W().K&&(h={G:"span",J:SJ.CHANNEL_NAME,Dn:"{{channelName}}",j:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",h);ggT(this);this.api.getPresentingPlayerType()===2&&(h=this.api.getVideoData(),h.videoId&&h.isListed&&h.author&&h.uY&&h.profilePicture?(this.updateValue("channelLink", h.uY),this.updateValue("channelName",h.author),this.updateValue("channelTitleFocusable","0")):ggT(this));h=F.externalFullscreen||!this.api.isFullscreen()&&F.jb;g.Gi(this.link,SJ.FULLERSCREEN_LINK,h);F.aR||!R.videoId||h||g.im(R)||F.K?this.B&&(this.updateValue("url",null),this.Ap(this.B),this.B=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.B||(this.B=this.T(this.link,"click",this.onClick)));F.K&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Py(F)?R.expandedTitle: R.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.A(g.mg,g.D);g.Q=g.mg.prototype;g.Q.setEnabled=function(R){if(this.type!=null)if(R)switch(this.type){case 3:case 2:iya(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.Y=R}; g.Q.oP=function(R,F,h,a,J,M,v,I){if(!this.Uz||this.env.Y){this.type===3&&this.D5();this.type!==1&&(g.h$(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.Y&&this.fade.show(),this.D&&this.D.dispose(),(this.D=this.api.B_())&&this.D.subscribe("l",this.Y3,this));if(I){var w=g.FJ(this.bg).height||141;this.fI.style.bottom=w+2+"px"}else this.fI.style.display="none";this.env.X("delhi_modern_web_player")?(this.update({pillTimeStamp:h,pillTitle:M!=null?M:"",eduText:I!=null?I:""}),g.J$(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:h,title:M!=null?M:"",eduText:I!=null?I:""}),g.Gi(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!M));this.api.isInline()&&g.J$(this.bottomText,"ytp-modern-tooltip-text");g.Gi(this.element,"ytp-text-detail",!!a);h=-1;this.D&&(h=CZ(this.D,243*this.scale),this.env.X("web_l3_storyboard")&&this.D.levels.length===4&&(h=this.D.levels.length-1),h=m0O(this.D,h,F));EgI(this,h);if(v)switch(F=g.FJ(this.element).width,v){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=F+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=F/2+"px",this.title.style.textAlign="center"}woL(this,!!a,R,J)}}; g.Q.A9=function(){this.type===1&&this.D5()}; g.Q.jP=function(R,F){if(this.type)if(this.type===3)this.D5();else return;Gha(this,R,3,F)}; g.Q.P7=function(){this.B&&!this.Z&&this.B.hasAttribute("title")&&(this.K=this.B.getAttribute("title")||"",this.B.removeAttribute("title"),this.Y&&iya(this))}; g.Q.Y3=function(R,F){R<=this.L&&this.L<=F&&(R=this.L,this.L=NaN,EgI(this,R))}; g.Q.lK=function(){Sr2(this.D,this.L,243*this.scale)}; g.Q.D5=function(){switch(this.type){case 2:var R=this.B;R.removeEventListener("mouseout",this.C);R.addEventListener("mouseover",this.S);R.removeEventListener("blur",this.C);R.addEventListener("focus",this.S);BNI(this);break;case 3:BNI(this);break;case 1:this.D&&(this.D.unsubscribe("l",this.Y3,this),this.D=null),this.api.removeEventListener("videoready",this.oR),this.aR.stop()}this.type=null;this.Y&&this.fade.hide()}; g.Q.De=function(){if(this.B)for(var R=0;R=0;F--)if(this.f9[F]===R){this.f9.splice(F,1);break}ec(this.Mx,64,this.f9.length>0)}; g.Q.AE=function(){this.api.DY()&&this.api.kJ();return!!this.sQ||$2f(this)||g.Uw.prototype.AE.call(this)}; g.Q.C9=function(){var R=!this.AE(),F=R&&this.api.DY()&&!g.V(this.api.getPlayerStateObject(),2)&&!g.im(this.api.getVideoData())&&!this.api.W().K&&!this.api.isEmbedsShortsMode(),h=this.Jt&&g.et(this.api)&&g.V(this.api.getPlayerStateObject(),128);R||h?(this.fk.show(),this.G4.show()):(this.fk.hide(),this.G4.hide(),this.api.De(this.c_.element));F?this.ET.Tn():this.ET.Nt();this.Tq&&FCa(this.Tq,this.Sft||!R);this.api.X("web_player_hide_overflow_button_if_empty_menu")&&A8B(this);g.Uw.prototype.C9.call(this)}; g.Q.PK=function(R,F,h,a,J){R.style.left="";R.style.top="";R.style.bottom="";var M=g.FJ(R),v=a||this.Tq&&g.$T(this.Tq.G_(),F),I=a=null;h!=null&&v||(a=g.FJ(F),I=g.W4(F,this.api.getRootNode()),h==null&&(h=I.x+a.width/2));h-=M.width/2;v?(F=this.Tq,a=hyf(F),I=aei(F),v=this.api.xo().getPlayerSize().height,h=g.uu(h,a,a+I-M.width),M=v-J8n(F)-M.height):g.$T(this.c_.element,F)?(F=this.api.xo().getPlayerSize().width,h=g.uu(h,12,F-M.width-12),M=this.AG()?this.fn:this.Ln,this.api.W().playerStyle==="gvn"&&(M+= 20),this.Jt&&(M-=this.AG()?26:18)):(F=this.api.xo().getPlayerSize(),h=g.uu(h,12,F.width-M.width-12),M=I.y>(F.height-a.height)/2?I.y-M.height-12:I.y+a.height+12);R.style.top=M+(J||0)+"px";R.style.left=h+"px"}; g.Q.Nb=function(R){R&&(this.api.De(this.c_.element),this.Tq&&this.api.De(this.Tq.G_()));this.gz&&(g.Gi(this.contextMenu.element,"ytp-autohide",R),g.Gi(this.contextMenu.element,"ytp-autohide-active",!0));g.Uw.prototype.Nb.call(this,R)}; g.Q.h_=function(){g.Uw.prototype.h_.call(this);this.gz&&(g.Gi(this.contextMenu.element,"ytp-autohide-active",!1),this.gz&&(this.contextMenu.hide(),this.A0&&this.A0.hide()))}; g.Q.c9=function(R,F){var h=this.api.xo().getPlayerSize();h=new g.uX(0,0,h.width,h.height);if(R||this.Mx.D&&!this.AE()){if(this.api.W().Ba||F)R=this.AG()?this.fn:this.Ln,h.top+=R,h.height-=R;this.Tq&&(h.height-=J8n(this.Tq))}return h}; g.Q.cK=function(R){var F=this.api.getRootNode();R?F.parentElement?(F.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.W().externalFullscreen||(F.parentElement.insertBefore(this.bI.element,F),F.parentElement.insertBefore(this.tf.element,F.nextSibling))):g.y7(Error("Player not in DOM.")):(F.setAttribute("aria-label","Reproductor de video de YouTube"),this.bI.detach(),this.tf.detach());this.ew();this.j6()}; g.Q.AG=function(){var R=this.api.W();return this.api.isFullscreen()&&!R.Y||!1}; g.Q.showControls=function(R){this.Ny=!R;this.C9()}; g.Q.ew=function(){var R=this.AG();this.tooltip.scale=R?1.5:1;this.contextMenu&&g.Gi(this.contextMenu.element,"ytp-big-mode",R);this.C9();this.api.X("web_player_hide_overflow_button_if_empty_menu")||A8B(this);this.j6();var F=this.api.isEmbedsShortsMode();F&&R?(R=(this.api.xo().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.zL(this.c_.element,"padding-left",R+"px"),g.zL(this.c_.element,"padding-right",R+"px")):F&&(g.zL(this.c_.element,"padding-left",""),g.zL(this.c_.element,"padding-right", ""));g.Uw.prototype.ew.call(this)}; g.Q.Px=function(){if($2f(this)&&!g.et(this.api))return!1;var R=this.api.getVideoData();return!g.Py(this.api.W())||this.api.getPresentingPlayerType()===2||!this.q2||((R=this.q2||R.q2)?(R=R.embedPreview)?(R=R.thumbnailPreviewRenderer,R=R.videoDetails&&g.t(R.videoDetails,QLf)||null):R=null:R=null,R&&R.collapsedRenderer&&R.expandedRenderer)?g.Uw.prototype.Px.call(this):!1}; g.Q.j6=function(){g.Uw.prototype.j6.call(this);this.api.logVisibility(this.title.element,!!this.F3);this.l6&&this.l6.yY(!!this.F3);this.channelAvatar.yY(!!this.F3);this.overflowButton&&this.overflowButton.yY(this.e5()&&!!this.F3);this.shareButton&&this.shareButton.yY(!this.e5()&&!!this.F3);this.So&&this.So.yY(!this.e5()&&!!this.F3);this.searchButton&&this.searchButton.yY(!this.e5()&&!!this.F3);this.copyLinkButton&&this.copyLinkButton.yY(!this.e5()&&!!this.F3);if(!this.F3){this.api.De(this.c_.element); for(var R=0;R5&&F.dA("glrs",{cmt:h});F.seekTo(0,{seekSource:58});F.dA("glrre",{cmt:h})}}; eJ.prototype.Ez=function(){this.B=null;g.d.prototype.Ez.call(this)};g.A(g.nc,Yu);g.Q=g.nc.prototype;g.Q.isView=function(){return!0}; g.Q.o1=function(){var R=this.mediaElement.getCurrentTime();if(R1;US(R.Ca(),a-.01)&&!J&&(dO(this,4),h.isActive=!1,h.hs=h.hs||h.isActive,(this.N===1?this.B:this.D).dA("sbh",{}),F.isActive=!0,F.hs=F.hs||F.isActive,this.N!==0&&(this.B.getVideoData().DA=!0));R=this.L.D;if(this.L.B.isActive&&R.isActive&&(dO(this,5),this.N!==0)){R=this.D.tX();h=this.B.tX(); this.B.dA("sbs",{citag:h==null?void 0:h.itag,nitag:R==null?void 0:R.itag});this.D.dA("gitags",{pitag:h==null?void 0:h.itag,citag:R==null?void 0:R.itag});var M;(M=this.D)==null||M.q$()}}}; g.Q.JU=function(){this.TF()&&this.CK("player-reload-after-handoff")}; g.Q.CK=function(R,F){F=F===void 0?{}:F;if(!this.RR()&&this.status.status!==6){var h=this.status.status>=4&&R!=="player-reload-after-handoff";this.status={status:Infinity,error:R};if(this.B&&this.D){var a=this.D.getVideoData().clientPlaybackNonce;this.B.Ef(new g.Bz("dai.transitionfailure",Object.assign(F,{cpn:a,transitionTimeMs:this.W4,msg:R})));this.B.cg(h)}this.bj.reject(R);this.dispose()}}; g.Q.TF=function(){return this.status.status>=4&&this.status.status<6}; g.Q.Ez=function(){S9I(this);this.B.unsubscribe("newelementrequired",this.JU,this);if(this.K){var R=this.K.D;this.K.B.CV.unsubscribe("updateend",this.Xs,this);R.CV.unsubscribe("updateend",this.Xs,this)}g.d.prototype.Ez.call(this)}; g.Q.b5=function(R){g.i5(R,128)&&this.CK("player-error-event")};g.A(Pa,g.d);Pa.prototype.clearQueue=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;this.L&&this.L.reject("Queue cleared");this.app.W().X("html5_gapless_fallback_on_qoe_restart_v2")||F&&this.D&&this.D.cg(!1);zx(this,R)}; Pa.prototype.Kr=function(){return!this.B}; Pa.prototype.TF=function(){var R;return((R=this.K)==null?void 0:R.TF())||!1}; Pa.prototype.Ez=function(){zx(this);g.d.prototype.Ez.call(this)};g.A(d2i,g.h0);g.Q=d2i.prototype;g.Q.getVisibilityState=function(R,F,h,a,J,M,v,I){return R?4:Hjf()?3:F?2:h?1:a?5:J?7:M?8:v?9:I?10:0}; g.Q.Zk=function(R){this.fullscreen!==R&&(this.fullscreen=R,this.u0())}; g.Q.setMinimized=function(R){this.D!==R&&(this.D=R,this.u0())}; g.Q.setInline=function(R){this.inline!==R&&(this.inline=R,this.u0())}; g.Q.Tc=function(R){this.pictureInPicture!==R&&(this.pictureInPicture=R,this.u0())}; g.Q.setSqueezeback=function(R){this.K!==R&&(this.K=R,this.u0())}; g.Q.Gt=function(R){this.L!==R&&(this.L=R,this.u0())}; g.Q.Hf=function(){return this.B}; g.Q.BE=function(){return this.fullscreen!==0}; g.Q.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.Q.x$=function(){return this.fullscreen}; g.Q.isMinimized=function(){return this.D}; g.Q.isInline=function(){return this.inline}; g.Q.isBackground=function(){return Hjf()}; g.Q.jC=function(){return this.pictureInPicture}; g.Q.xS=function(){return!1}; g.Q.o0=function(){return this.K}; g.Q.PV=function(){return this.L}; g.Q.u0=function(){this.publish("visibilitychange");var R=this.getVisibilityState(this.Hf(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.jC(),this.xS(),this.o0(),this.PV());R!==this.S&&this.publish("visibilitystatechange");this.S=R}; g.Q.Ez=function(){ygm(this.N);g.h0.prototype.Ez.call(this)};g.A(g.Kc,g.d);g.Q=g.Kc.prototype;g.Q.Ez=function(){this.videoData=this.playerState=null;g.d.prototype.Ez.call(this)}; g.Q.addCueRange=function(){}; g.Q.VE=function(){}; g.Q.pg=function(){}; g.Q.yA=function(){return!1}; g.Q.n5=function(){return!1}; g.Q.pw=function(){return!1}; g.Q.dX=function(){}; g.Q.Gg=function(){}; g.Q.RO=function(){return[]}; g.Q.iQ=function(){}; g.Q.getAudioTrack=function(){return this.getVideoData().x0}; g.Q.Kz=function(){return null}; g.Q.getAvailableAudioTracks=function(){return[]}; g.Q.kc=function(){return[]}; g.Q.Ry=function(){return[]}; g.Q.rE=function(){return""}; g.Q.C2=function(){return[]}; g.Q.fz=function(){}; g.Q.x6=function(){return 0}; g.Q.getCurrentTime=function(){return 0}; g.Q.GH=function(){}; g.Q.tX=function(){}; g.Q.nO=function(){return{}}; g.Q.getDuration=function(){return 0}; g.Q.cV=function(){return 0}; g.Q.oz=function(){return 0}; g.Q.yG=function(){return!1}; g.Q.AI=function(){return 0}; g.Q.Sb=function(){return 0}; g.Q.Yc=Jf(7);g.Q.rY=function(){return 0}; g.Q.Ju=function(){return!1}; g.Q.R3=function(){return 0}; g.Q.He=function(){return null}; g.Q.s0=function(){return null}; g.Q.Vd=function(){return 0}; g.Q.Nh=function(){return 0}; g.Q.K2=function(){return g.u(function(R){g.Na(R)})}; g.Q.FA=Jf(15);g.Q.getPlaybackQuality=function(){return"auto"}; g.Q.getPlaybackRate=function(){return 1}; g.Q.getPlayerState=function(){this.playerState||(this.playerState=new g.$u);return this.playerState}; g.Q.getPlayerType=function(){return 0}; g.Q.getPlaylistSequenceForTime=function(){return null}; g.Q.ma=function(){return function(){}}; g.Q.TK=function(){return""}; g.Q.getPreferredQuality=function(){return"unknown"}; g.Q.qj=function(){}; g.Q.getProximaLatencyPreference=function(){return 0}; g.Q.aM=function(){return JL}; g.Q.B_=function(){return null}; g.Q.getStoryboardFormat=function(){return null}; g.Q.getStreamTimeOffset=function(){return 0}; g.Q.MI=function(){return 0}; g.Q.wW=function(){return 0}; g.Q.kS=function(){return{I_:[],bL:[],currentTime:0,MZ:"",droppedVideoFrames:0,isGapless:!1,Kr:!0,dh:0,hP:0,XN:0,PH:0,gw:0,JP:[],fv:[],Gb:null,playerState:this.getPlayerState(),R9:null,uD:"",totalVideoFrames:0}}; g.Q.getUserAudio51Preference=function(){return 0}; g.Q.getUserPlaybackQualityPreference=function(){return""}; g.Q.getVideoData=function(){this.videoData||(this.videoData=new g.Mz(this.uu),g.z(this,this.videoData));return this.videoData}; g.Q.Qv=function(){return null}; g.Q.Ys=function(){return null}; g.Q.T2=function(){}; g.Q.getVideoLoadedFraction=function(){return 0}; g.Q.wj=function(){}; g.Q.handleError=function(){}; g.Q.cg=function(){}; g.Q.Ac=function(){}; g.Q.Vj=Jf(40);g.Q.MC=function(){return!1}; g.Q.hasSupportedAudio51Tracks=function(){return!1}; g.Q.Wa=function(){return!1}; g.Q.Hf=function(){return!1}; g.Q.isAtLiveHead=function(){return!1}; g.Q.YQ=function(){return!0}; g.Q.isGapless=function(){return!1}; g.Q.isHdr=function(){return!1}; g.Q.HA=function(){return!1}; g.Q.gx=function(){return!1}; g.Q.nz=function(){return!1}; g.Q.isProximaLatencyEligible=function(){return!1}; g.Q.Kr=function(){return!0}; g.Q.uv=function(){return!1}; g.Q.Fq=function(){return!1}; g.Q.uG=function(){}; g.Q.aB=function(){}; g.Q.q$=function(){}; g.Q.Gc=function(){}; g.Q.vy=function(){}; g.Q.h8=function(){}; g.Q.wJ=function(){}; g.Q.Y_=Jf(50);g.Q.xL=Jf(21);g.Q.PS=function(){}; g.Q.Hv=function(){}; g.Q.pauseVideo=function(){}; g.Q.playVideo=function(){return g.u(function(R){return R.return()})}; g.Q.G8=function(){}; g.Q.Ij=Jf(27);g.Q.Zq=Jf(33);g.Q.pU=function(){}; g.Q.dA=function(){}; g.Q.tV=function(){}; g.Q.Xw=function(){}; g.Q.lV=function(){}; g.Q.Ef=function(){}; g.Q.RE=function(){}; g.Q.Oh=function(){}; g.Q.gB=function(){}; g.Q.Tb=function(){}; g.Q.NR=function(){}; g.Q.Iu=function(){}; g.Q.xr=function(){}; g.Q.removeCueRange=function(){}; g.Q.WK=function(){}; g.Q.NH=function(){return[]}; g.Q.Mz=function(){}; g.Q.sJ=function(){}; g.Q.e_=function(){}; g.Q.jQ=function(){}; g.Q.YG=function(){}; g.Q.AF=function(){}; g.Q.seekTo=function(){}; g.Q.sendAbandonmentPing=function(){}; g.Q.sendVideoStatsEngageEvent=function(){}; g.Q.JN=function(){}; g.Q.setLoop=function(){}; g.Q.W8=function(){}; g.Q.setMediaElement=function(){}; g.Q.E5=function(){}; g.Q.setPlaybackRate=function(){}; g.Q.Aj=function(){}; g.Q.tN=function(){}; g.Q.ag=function(){}; g.Q.setProximaLatencyPreference=function(){}; g.Q.m1=function(){}; g.Q.LN=function(){}; g.Q.NS=function(){}; g.Q.U5=function(){}; g.Q.xG=function(){}; g.Q.setUserAudio51Preference=function(){}; g.Q.I7=function(){}; g.Q.BV=function(){return!1}; g.Q.pY=function(){}; g.Q.IQ=function(){return!1}; g.Q.ke=function(){}; g.Q.vU=function(){}; g.Q.cU=function(){}; g.Q.stopVideo=function(){}; g.Q.subscribe=function(){return NaN}; g.Q.Fc=function(){}; g.Q.togglePictureInPicture=function(){}; g.Q.gQ=function(){return 0}; g.Q.unsubscribe=function(){return!1}; g.Q.n9=function(){}; g.Q.mK=function(){return!1}; g.Q.WE=function(){}; g.Q.Np=function(){}; g.Q.FS=function(){};g.A(Dr,g.d);g.Q=Dr.prototype;g.Q.get=function(R){tM(this);var F=this.data.find(function(h){return h.key===R}); return F?F.value:null}; g.Q.set=function(R,F,h){this.remove(R,!0);tM(this);R={key:R,value:F,expire:Infinity};h&&isFinite(h)&&(h*=1E3,R.expire=(0,g.NU)()+h);for(this.data.push(R);this.data.length>this.K;)(h=this.data.shift())&&Vc(this,h,!0);lC(this)}; g.Q.remove=function(R,F){F=F===void 0?!1:F;var h=this.data.find(function(a){return a.key===R}); h&&(Vc(this,h,F),g.q4(this.data,function(a){return a.key===R}),lC(this))}; g.Q.removeAll=function(R){if(R=R===void 0?!1:R)for(var F=g.N(this.data),h=F.next();!h.done;h=F.next())Vc(this,h.value,R);this.data=[];lC(this)}; g.Q.Ez=function(){var R=this;g.d.prototype.Ez.call(this);this.data.forEach(function(F){Vc(R,F,!0)}); this.data=[]};g.A(g.Uo,g.d);g.Q=g.Uo.prototype;g.Q.Ez=function(){for(var R=g.N(Object.values(this.K)),F=R.next();!F.done;F=R.next())F.value.dispose();PPT(this);this.B.dispose();g.d.prototype.Ez.call(this)}; g.Q.Rn=function(R){return R?R===1?this.Z:this.D.getVideoData().enableServerStitchedDai&&R===2?this.D.getVideoData().Rf?this.K[2]||this.D:this.D:this.K[R]||null:this.D}; g.Q.YO=function(R){var F=R.cpn;R=R.playerType;if(F)a:{R=g.N(Object.values(this.K));for(var h=R.next();!h.done;h=R.next())if(h=h.value,h.rE()===F){F=h;break a}F=this.S[F]||null}else F=R?this.Rn(R):this.D;return F}; g.Q.pO=function(){return this.Z}; g.Q.yW=function(R){this.Z=R}; g.Q.bu=function(){return this.D}; g.Q.OZ=function(R){this.D=R;Cc(this)}; g.Q.tv=Jf(46);g.Q.Av=Jf(48);g.A(CPm,g.VV);g.Q=CPm.prototype;g.Q.Mq=function(){}; g.Q.rE=function(){return this.videoData.clientPlaybackNonce}; g.Q.getVideoData=function(){if(g.VV.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state"))var R=this.videoData;else{var F=this.Z1;var h=g.VV.prototype.getCurrentTime.call(this);if(F.mY)F=void 0;else{var a=void 0;F.vc&&(a=F.B.B.get(F.vc));if(!a){a=iN7(F,h*1E3);var J,M=(J=a)==null?void 0:J.cpn;F.vc?M&&F.vc!==M&&F.z$({cpcnm:M+"_"+F.vc,cmt:h.toFixed(3)}):F.z$({cpcna:M,cmt:h.toFixed(3)})}F=(R=a)==null?void 0:R.videoData}R=F||g.VV.prototype.getVideoData.call(this)}return R}; g.Q.getCurrentTime=function(R){var F=g.VV.prototype.getCurrentTime.call(this);g.VV.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state")?this.endTime===0?R||(F-=this.startTime):R&&(F=this.endTime-this.startTime):(R?R=this.Z1.cE/1E3||F:(R=F,R=(F=Icf(this.Z1,R*1E3))?R-F.start/1E3:R),F=R);return F}; g.Q.getDuration=function(){if(g.VV.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state"))var R=this.duration;else{R=this.Z1;var F=g.VV.prototype.getCurrentTime.call(this);R=(R=iN7(R,F*1E3))?R.durationMs/1E3:0}return R}; g.Q.Td=function(R){this.duration=R};g.Wa.prototype.qO=function(R,F){if(F===1)return this.B.get(R);if(F===2)return this.K.get(R);if(F===3)return this.D.get(R)}; g.Wa.prototype.zc=Jf(58);g.Wa.prototype.cO=function(R,F,h,a){h={Db:a,YP:h};F?this.K.set(R,h):this.B.set(R,h)}; g.Wa.prototype.clearAll=function(){this.B.clear();this.K.clear();this.D.clear()}; WCT.prototype.clear=function(){this.D=[];this.B.clear();this.L.clear();this.K.clear()}; g.A(g.R0,g.d);g.Q=g.R0.prototype;g.Q.VP=function(R){var F=R.K7?R.K7*1E3:R.Zf,h=this.K.get(R.cpn);h&&this.playback.removeCueRange(h);this.K.delete(R.cpn);this.B.B.delete(R.cpn);h=this.B.D.indexOf(R);h>=0&&this.B.D.splice(h,1);h=[];for(var a=g.N(this.N),J=a.next();!J.done;J=a.next())J=J.value,J.end<=F?this.playback.removeCueRange(J):h.push(J);this.N=h;Qni(this,0,F+R.durationMs)}; g.Q.onCueRangeEnter=function(R){this.Oz.push(R);var F=R.getId();this.z$({oncueEnter:1,cpn:F,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.x6()||0).toFixed(3)});var h=F==="";this.IR.add(R.D);var a=this.B.B.get(F);if(h){var J;if(this.playback.getVideoData().We()&&((J=this.D)==null?0:J.OW)&&this.L){this.va=0;this.D=void 0;this.Z&&(this.events.Ap(this.Z),this.Z=null);this.L="";this.Sl=!0;return}}else if(this.z$({enterAdCueRange:1}),this.playback.getVideoData().We()&& (a==null?0:a.Cz))return;if(this.Sl&&!this.D)this.Sl=!1,!h&&a&&(h=this.playback.getCurrentTime(),v8(this,{kO:R,isAd:!0,oi:!0,hG:h,adCpn:F},{isAd:!1,oi:!1,hG:h}),this.vc=a.cpn,this.ZK(a.cpn,h),Je(this,a),R=a0(this,"midab",a),this.z$(R),this.va=1),this.S=!1;else if(this.D){if(this.D.oi)this.z$({a_pair_of_same_transition_occurs_enter:1,acpn:this.D.adCpn,transitionTime:this.D.hG,cpn:F,currentTime:this.playback.getCurrentTime()}),a=this.playback.getCurrentTime(),R={kO:R,isAd:!h,oi:!0,hG:a,adCpn:F},F={kO:this.D.kO, isAd:this.D.isAd,oi:!1,hG:a,adCpn:this.D.adCpn},this.D.kO&&this.IR.delete(this.D.kO.D),v8(this,R,F);else{if(this.D.kO===R){this.z$({same_cue_range_pair_enter:1,acpn:this.D.adCpn,transitionTime:this.D.hG,cpn:F,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:R.start,cueRangeEndTime:R.end});this.D=void 0;return}if(this.D.adCpn===F){F&&this.z$({dchtsc:F});this.D=void 0;return}R={kO:R,isAd:!h,oi:!0,hG:this.playback.getCurrentTime(),adCpn:F};v8(this,R,this.D)}this.D=void 0;this.S=!1}else this.D= {kO:R,isAd:!h,oi:!0,hG:this.playback.getCurrentTime(),adCpn:F}}; g.Q.ZK=function(R,F){if(R===this.playback.rE())ca(this.app.NI(),this.playback,!1);else{var h=this.PG.get(R);h?(h.endTime=0,h.startTime=F,ca(this.app.NI(),h,!0)):this.z$({nop_s:R})}}; g.Q.onCueRangeExit=function(R){var F=R.getId();this.z$({oncueExit:1,cpn:F,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.x6()||0).toFixed(3)});var h=F==="",a=this.B.B.get(F);if(this.playback.getVideoData().We()&&!h&&a){if(a.Cz)return;a.Cz=!0;this.Y.clear();if(this.uu.X("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.yA()){var J=a.Zf;this.playback.xr(J/1E3,(J+a.durationMs)/1E3)}else this.playback.dA("lifa",{remove:0})}if(this.IR.has(R.D))if(this.IR.delete(R.D), this.Oz=this.Oz.filter(function(M){return M!==R}),this.Sl&&(this.S=this.Sl=!1,this.z$({cref:1})),this.D){if(this.D.oi){if(this.D.kO===R){this.z$({same_cue_range_pair_exit:1, acpn:this.D.adCpn,transitionTime:this.D.hG,cpn:F,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:R.start,cueRangeEndTime:R.end});this.D=void 0;return}if(this.D.adCpn===F){F&&this.z$({dchtsc:F});this.D=void 0;return}F={kO:R,isAd:!h,oi:!1,hG:this.playback.getCurrentTime(),adCpn:F};v8(this,this.D,F)}else if(this.z$({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.D.adCpn,transitionTime:this.D.hG,upcomingCpn:F,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.D.adCpn===F)return;this.D=void 0;this.S=!1}else this.D={kO:R,isAd:!h,oi:!1,hG:this.playback.getCurrentTime(),adCpn:F};else this.z$({ignore_single_exit:1})}; g.Q.U0=function(){return{cpn:this.playback.rE(),durationMs:0,Zf:0,playerType:1,DQ:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.Q.Hu=function(){if(this.mY)return!1;var R=void 0;this.vc&&(R=this.B.B.get(this.vc));return this.playback.getVideoData().We()?!!R&&!R.Cz:!!R}; g.Q.seekTo=function(R,F,h,a){R=R===void 0?0:R;F=F===void 0?{}:F;h=h===void 0?!1:h;a=a===void 0?null:a;if(this.playback.getVideoData().We()&&R<=this.cE/1E3)this.playback.pauseVideo(),this.cE=0,this.S=!0,this.playback.K2(),this.playback.seekTo(R),this.playback.playVideo();else if(this.S=!0,h)Rcf(this,R,F);else{h=this.app.bu();var J=h===this.NQ?this.EP:null;G9(this,!1);this.YH=R;this.Sw=F;a!=null&&this.iY.start(a);h&&(this.EP=J||h.getPlayerState(),h.cU(F),this.NQ=h)}}; g.Q.Ez=function(){G9(this,!1);EDn(this);BxB(this);g.d.prototype.Ez.call(this)}; g.Q.Z9=function(R){this.It=R;this.z$({swebm:R})}; g.Q.Ru=function(R,F,h){if(h&&F){var a=this.Y.get(R);if(a){a.locations||(a.locations=new Map);var J=Number(F.split(";")[0]);h=new g.dV(h);this.z$({hdlredir:1,itag:F,seg:R,hostport:zE(h)});a.locations.set(J,h)}}}; g.Q.K1=function(R,F,h,a,J,M){var v=a===3,I=Yha(this,R,F,a,h,M);if(!I){i0(this,F,v);var w=g.rKL(this,F)?"undec":"ncp";this.z$({gvprp:w,mt:R,seg:F,tt:a,itag:h,ce:M});return null}v||this.Y.set(F,I);M=I.GN;var E;a=((E=this.qO(F-1,a,J))==null?void 0:E.Db)||"";a===""&&this.z$({eds:1});E=p0I(this,I.ssdaiAdsConfig);J=this.playback.getVideoData();var B;v=((B=J.D)==null?void 0:B.containerType)||0;B=J.Ec[v];I=I.Ta&&F>=I.Ta?I.Ta:void 0;B={Tv:M?AKL(this,M):[],yy:E,Db:a,E1:I,bU:SW(B.split(";")[0]),I6:B.split(";")[1]|| ""};I={wT:B};this.HG&&(R={gvprpro:"v",sq:F,mt:R.toFixed(3),itag:h,acpns:((w=B.Tv)==null?void 0:w.join("_"))||"none",abid:M},this.z$(R));return I}; g.Q.jS=function(R){a:{if(!this.mY){var F=sng(this,R);if(!(this.playback.getVideoData().We()&&(F==null?0:F.Cz)))break a}F=void 0}var h=F;if(!h)return this.z$({gvprp:"ncp",mt:R}),null;F=h.GN;var a=p0I(this,h.ssdaiAdsConfig);h=h.Ta&&h.Do&&R>=h.Do?h.Ta:void 0;var J=this.playback.getVideoData(),M,v=((M=J.D)==null?void 0:M.containerType)||0;M=J.Ec[v];M={Tv:F?AKL(this,F):[],yy:a,E1:h,bU:SW(M.split(";")[0]),I6:M.split(";")[1]||""};var I;R={gvprpro:"v",mt:R.toFixed(3),acpns:((I=M.Tv)==null?void 0:I.join("_"))|| "none",abid:F};this.z$(R);return M}; g.Q.UC=function(R,F,h,a,J,M){var v=Number(h.split(";")[0]),I=a===3;R=Yha(this,R,F,a,h,M);this.z$({gdu:1,seg:F,itag:v,pb:""+!!R});if(!R)return i0(this,F,I),null;R.locations||(R.locations=new Map);if(!R.locations.has(v)){var w,E;M=(w=R.videoData.getPlayerResponse())==null?void 0:(E=w.streamingData)==null?void 0:E.adaptiveFormats;if(!M)return this.z$({gdu:"noadpfmts",seg:F,itag:v}),i0(this,F,I),null;w=M.find(function(Y){return Y.itag===v}); if(!w||!w.url){var B=R.videoData.videoId;R=[];var r=g.N(M);for(a=r.next();!a.done;a=r.next())R.push(a.value.itag);this.z$({gdu:"nofmt",seg:F,vid:B,itag:v,fullitag:h,itags:R.join(",")});i0(this,F,I);return null}R.locations.set(v,new g.dV(w.url,!0))}M=R.locations.get(v);if(!M)return this.z$({gdu:"nourl",seg:F,itag:v}),i0(this,F,I),null;M=new S$(M);this.It&&(M.get("dvc")?this.z$({dvc:M.get("dvc")||""}):M.set("dvc","webm"));(a=(r=this.qO(F-1,a,J))==null?void 0:r.Db)&&M.set("daistate",a);R.Ta&&F>=R.Ta&& M.set("skipsq",""+R.Ta);(r=this.playback.getVideoData().clientPlaybackNonce)&&M.set("cpn",r);r=[];R.GN&&(r=AKL(this,R.GN),r.length>0&&M.set("acpns",r.join(",")));I||this.Y.set(F,R);I=null;I=M.get("aids");a=M.hT();(a==null?void 0:a.length)>2048&&this.z$({urltoolong:1,sq:F,itag:v,len:a.length});this.HG&&(a&&(M=R.cpn,J=R.GN,HNi(this,M,J),J&&!this.Ma.has(J)&&(M=xBi(this,M,J),w=Nx7(this,J),this.z$({iofa:M}),this.z$({noawnzd:w-M}),this.z$({acpns:r.join("."),aids:(B=I)==null?void 0:B.replace(/,/g,".")}), this.Ma.add(J))),this.z$({gdu:"v",seg:F,itag:h,ast:R.Zf.toFixed(3),alen:R.durationMs.toFixed(3),acpn:R.cpn,avid:R.videoData.videoId}));return a}; g.Q.JO=function(R,F,h){h=h===void 0?!1:h;var a=I0(this,R,F);if(a){var J=void 0,M=a.GN;if(M){this.z$({skipadonsq:F,sts:h,abid:M,acpn:a.cpn,avid:a.videoData.videoId});h=this.B.K.get(M);if(!h)return;h=g.N(h);for(M=h.next();!M.done;M=h.next())M=M.value,M.Ta=F,M.Do=R,M.Zf>a.Zf&&(J=M)}this.L=a.cpn;kOa(this);R=this.playback.getCurrentTime();MA(this,a,J,R,R,!1,!0)}}; g.Q.Mr=function(){for(var R=g.N(this.B.D),F=R.next();!F.done;F=R.next())F=F.value,F.Ta=NaN,F.Do=NaN;kOa(this);this.z$({rsac:"resetSkipAd",sac:this.L});this.L=""}; g.Q.qO=function(R,F,h){return this.Uz.qO(R,F,h)}; g.Q.zc=Jf(57); g.Q.cO=function(R,F,h,a,J,M,v,I,w){a.length>0&&this.z$({onssinfo:1,sq:R,start:F.toFixed(3),cpns:a.join(","),ds:J.join(","),isVideo:v?1:0});w&&this.Uz.cO(R,v,I,w);if(v){if(a.length&&J.length)for(this.L&&this.L===a[0]&&this.z$({skipfail:1,sq:R,acpn:this.L}),R=F+this.MI(),v=0;v0&&(this.va=0,this.vc="",this.api.publish("serverstitchedvideochange"));this.playback.Gg(h,a);return!0}; g.Q.Rl=function(){this.z$({rstdaist:1});this.Uz.clearAll()}; g.Q.ST=function(R){var F;if(R!==((F=this.oR)==null?void 0:F.identifier))this.z$({ignorenoad:R});else{this.uY.add(R);this.z$({noadrcv:R});var h;((h=this.oR)==null?void 0:h.identifier)===R&&he(this)}}; g.Q.rB=function(R){if(this.mY)return this.z$({dai_disabled:R.event}),!1;if(this.playback.getVideoData().We()&&(this.uu.X("html5_lifa_no_gab_on_predict_start")&&R.event==="predictStart"||R.event==="continue"||R.event==="stop"))return!1;var F=Sc(this.api.LO());if(F=F?F.rB(R):!1)this.C={ri:R.identifier,Ol:R.startSecs};else if(this.C&&this.C.ri===R.identifier&&R.startSecs>this.C.Ol+1){this.z$({cueStChg:R.identifier,oldSt:this.C.Ol.toFixed(3),newSt:R.startSecs.toFixed(3),abid:this.C.R5});if(this.C.R5){var h= R.startSecs-this.C.Ol,a=this.B.K.get(this.C.R5);if(a){a=g.N(a);for(var J=a.next();!J.done;J=a.next())J=J.value,J.Zf>=0&&(J.Zf+=h*1E3,this.uu.X("html5_ssdai_update_timeline_on_start_time_change")&&(J.DQ+=h*1E3),this.z$({newApEt:J.Zf,newApPrt:J.DQ,acpn:J.cpn}))}}this.C.Ol=R.startSecs}return F}; g.Q.WC=function(R){return this.mY?!1:!!sng(this,R)}; g.Q.aP=function(R){var F=this;if(this.uu.X("html5_lifa_ignore_multiple_skips")&&this.Z)return this.z$({ufs_ad:this.L,ufs_cur:this.vc,ufs_cont:this.U0().cpn}),!1;this.playback.pauseVideo();var h=this.playback.getCurrentTime(),a=this.uu.X("html5_lifa_reset_segment_index_on_skip"),J=a?h+this.playback.MI():h,M=this.B.B.get(this.vc),v=this.K.get(this.vc);if(M){this.L=this.vc;this.S=!1;M.Cz=!0;h=this.playback.getCurrentTime();this.D={kO:v,isAd:!0,oi:!1,hG:h,adCpn:this.vc,OW:M,mjI:R};this.playback.gB(M, this.U0(),h,this.playback.getCurrentTime(),!1,!0,R,(0,g.NU)());a&&this.playback.PS();if(v==null?0:v.start)this.cE=h*1E3-v.start,GOI(this,v.id,h);this.Y.clear();this.playback.K2();R=this.U0();this.vc=R.cpn;this.ZK(R.cpn,h);this.api.publish("serverstitchedvideochange");this.playback.seekTo(J,{seekSource:89,RT:"lifa_skip"});this.playback.playVideo();this.Z||(this.Z=this.events.T(this.api,"progresssync",function(){F.VP(M)})); return!0}this.z$({skipFail:h},!0);return!1}; g.Q.z$=function(R,F){((F===void 0?0:F)||this.HG||this.playback.getVideoData().We())&&this.playback.dA("sdai",R)}; var JKn=0;g.A(Lbm,g.R0);g.Q=Lbm.prototype;g.Q.onCueRangeEnter=function(R){var F=R.getId();this.playback.dA("sdai",{oncueEnter:1,cpn:F,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.x6()||0).toFixed(3)});var h=this.B.B.get(F);this.playback.dA("sdai",{enterAdCueRange:1});var a=this.vc||this.U0().cpn,J;a=(J=this.B.B.get(a))!=null?J:this.U0();h&&(J=this.playback.getCurrentTime(),h={uH:a,e8:h,QT:J},qh2(this,F,R.start/1E3,J),yKg(this,h))}; g.Q.onCueRangeExit=function(R){for(var F=this.playback.getCurrentTime()*1E3,h=R.getId(),a=g.N(this.K.values()),J=a.next();!J.done;J=a.next())if(J=J.value,J.getId()!==h&&F>=J.start&&F<=J.end)return;if(h=this.B.B.get(h))F=this.playback.getCurrentTime(),h={uH:h,e8:this.U0(),QT:F},qh2(this,this.playback.rE(),R.end/1E3,F),yKg(this,h)}; g.Q.seekTo=function(R,F,h,a){R=R===void 0?0:R;F=F===void 0?{}:F;h=h===void 0?!1:h;a=a===void 0?null:a;E2(this,this.vc);this.playback.getVideoData().We()&&R<=this.Ym?(this.playback.pauseVideo(),this.Ym=this.cE=0,fc_(this,R)):g.R0.prototype.seekTo.call(this,R,F,h,a)}; g.Q.JO=function(R,F,h){h=h===void 0?!1:h;var a=I0(this,R,F);if(a){var J=void 0,M=a.GN;if(M){this.playback.dA("sdai",{skipadonsq:F,sts:h,abid:M,acpn:a.cpn,avid:a.videoData.videoId});h=this.B.K.get(M);if(!h)return;h=g.N(h);for(M=h.next();!M.done;M=h.next())M=M.value,M.Ta=F,M.Do=R,M.Zf>a.Zf&&(J=M)}E2(this,this.vc);this.L=a.cpn;kOa(this);R=this.playback.getCurrentTime();MA(this,a,J,R,R,!1,!0);this.L="";this.S=!1}}; g.Q.cO=function(R,F,h,a,J,M,v,I,w){a.length>0&&this.playback.dA("sdai",{onssinfo:1,sq:R,start:F.toFixed(3),cpns:a.join(","),ds:J.join(","),isVideo:v?1:0});w&&this.Uz.cO(R,v,I,w);if(v){if(a.length&&J.length)for(this.L&&this.L===a[0]&&this.playback.dA("sdai",{skipfail:1,sq:R,acpn:this.L}),R=F+this.MI(),h=0;h=0&&this.B.D.splice(R,1)};g.A(bNB,g.d);g.Q=bNB.prototype;g.Q.onCueRangeEnter=function(R){if(this.B===this.app.bu()){var F=this.N.get(R);F?ecn(this,F.target,F.W4,R):this.Ef("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:R.toString()})}else if(F=this.D.find(function(J){return J.Um.kO===R})){var h=F.Um,a=h.target; h=h.W4;a?ecn(this,a,h,R):X0_(this,F.DQ,h,R)}}; g.Q.onQueuedVideoLoaded=function(){var R=this.Y;s2(this);if(R){if(!Ye(this,R)){var F=this.app.bu();this.Ef("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:F==null?void 0:F.getVideoData().clientPlaybackNonce,ccpn:""+R.playerVars.cpn})}this.app.bu().addCueRange(R.Um.kO)}}; g.Q.seekTo=function(R,F,h,a){R=R===void 0?0:R;F=F===void 0?{}:F;a=a===void 0?null:a;if(h===void 0?0:h)ZNB(this,R,F);else{h=this.app.bu()||null;var J=h===this.L?this.S:null;p9(this,!1);this.oR=R;this.C=F;a!=null&&this.Z.start(a);h&&(this.S=J||h.getPlayerState(),h.cU(),this.L=h)}}; g.Q.eC=function(R){g.i5(R,128)&&zcO(this)}; g.Q.isManifestless=function(){return TT(this.B.getVideoData())}; g.Q.Ez=function(){p9(this,!1);tKO(this);g.d.prototype.Ez.call(this)}; g.Q.Ef=function(R,F){this.B.Ef(new g.Bz(R,F))}; var ShB=0;var lcL="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.A(ke,g.d);ke.prototype.bJ=function(R){if(R)return this.D.get(R)}; ke.prototype.Ez=function(){this.B.removeAll();this.D.removeAll();g.d.prototype.Ez.call(this)};g.Lut=Su(function(){var R=window.AudioContext||window.webkitAudioContext;try{return new R}catch(F){return F.name}});g.A(cKO,g.D);g.Q=cKO.prototype;g.Q.Hn=function(){g.ME(this.element,g.u7.apply(0,arguments))}; g.Q.sJ=function(){this.Be&&(this.Be.removeEventListener("focus",this.Zx),g.QH(this.Be),this.Be=null)}; g.Q.tD=function(){this.RR();var R=this.app.W();R.aS||this.Hn("tag-pool-enabled");R.S&&this.Hn(g.kn.HOUSE_BRAND);R.playerStyle==="gvn"&&(this.Hn("ytp-gvn"),this.element.style.backgroundColor="transparent");R.It&&(this.RC=g.cm("yt-dom-content-change",this.resize,this));R.X("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.T(window.screen.orientation,"change",this.resize,this):this.T(window,"orientationchange",this.resize,this):this.T(window,"orientationchange",this.resize, this);this.T(window,"resize",this.resize,this)}; g.Q.FH=function(R){g.DU(this.app.W());this.OD=!R;Qs(this)}; g.Q.resize=function(){if(this.Be){var R=this.dl();if(!R.isEmpty()){var F=!g.lu(R,this.I0.getSize()),h=asi(this);F&&(this.I0.width=R.width,this.I0.height=R.height);R=this.app.W();(h||F||this.Eq||R.It)&&this.app.Xo.publish("resize",this.getPlayerSize())}}}; g.Q.O0=function(R,F){this.updateVideoData(F)}; g.Q.updateVideoData=function(R){if(this.Be){var F=this.app.W();PR&&(this.Be.setAttribute("x-webkit-airplay","allow"),R.title?this.Be.setAttribute("title",R.title):this.Be.removeAttribute("title"));this.Be.setAttribute("controlslist","nodownload");F.Ds&&R.videoId&&(this.Be.poster=R.f2("default.jpg"))}F=g.oV(R,"yt:bgcolor");this.C5.style.backgroundColor=F?F:"";this.U$=Js(g.oV(R,"yt:stretch"));this.A_=Js(g.oV(R,"yt:crop"),!0);g.Gi(this.element,"ytp-dni",R.bq);this.resize()}; g.Q.setGlobalCrop=function(R){this.zw=Js(R,!0);this.resize()}; g.Q.setCenterCrop=function(R){this.eY=R;this.resize()}; g.Q.Zk=function(){}; g.Q.getPlayerSize=function(){var R=this.app.W(),F=this.app.Xo.isFullscreen(),h=R.externalFullscreen&&g.Py(R);if(F&&uB()&&!h)return new g.t7(window.outerWidth,window.outerHeight);h=!isNaN(this.Tk.width)&&!isNaN(this.Tk.height);var a=this.app.W().X("kevlar_player_enable_squeezeback_fullscreen_sizing");if(F&&!h&&a)return new g.t7(this.element.clientWidth,this.element.clientHeight);if(F||R.pP){if(window.matchMedia){R="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.aY&&this.aY.media=== R||(this.aY=window.matchMedia(R));var J=this.aY&&this.aY.matches}if(J)return new g.t7(window.innerWidth,window.innerHeight)}else if(h)return this.Tk.clone();return new g.t7(this.element.clientWidth,this.element.clientHeight)}; g.Q.dl=function(){var R=this.app.W().X("enable_desktop_player_underlay"),F=this.getPlayerSize(),h=g.RI(this.app.W().experiments,"player_underlay_min_player_width");return R&&this.TO&&F.width>h?(R=g.RI(this.app.W().experiments,"player_underlay_video_width_fraction"),new g.t7(Math.min(F.height*this.getVideoAspectRatio(),F.width*R),Math.min(F.height,F.width*R/this.getVideoAspectRatio()))):F}; g.Q.getVideoAspectRatio=function(){return isNaN(this.U$)?Rrf(this):this.U$}; g.Q.getVideoContentRect=function(R){var F=this.dl();R=FVB(this,F,this.getVideoAspectRatio(),R);return new g.uX((F.width-R.width)/2,(F.height-R.height)/2,R.width,R.height)}; g.Q.g5=function(R){this.TO=R;this.resize()}; g.Q.zH=function(){return this.mU}; g.Q.onMutedAutoplayChange=function(){Qs(this)}; g.Q.setInternalSize=function(R){g.lu(this.Tk,R)||(this.Tk=R,this.resize())}; g.Q.Ez=function(){this.RC&&g.Wm(this.RC);this.sJ();g.D.prototype.Ez.call(this)};g.Q=MF7.prototype;g.Q.click=function(R,F){this.elements.has(R);this.B.has(R);var h=g.Q7();h&&R.visualElement&&g.W5(h,R.visualElement,F)}; g.Q.createClientVe=function(R,F,h,a){var J=this;a=a===void 0?!1:a;this.elements.has(R);this.elements.add(R);h=QzT(h);R.visualElement=h;var M=g.Q7(),v=g.kf();M&&v&&(g.pR("combine_ve_grafts")?DV(tu(),h,v):g.Vz(g.uw)(void 0,M,v,h));F.addOnDisposeCallback(function(){J.elements.has(R)&&J.destroyVe(R)}); a&&this.D.add(R)}; g.Q.createServerVe=function(R,F,h){var a=this;h=h===void 0?!1:h;this.elements.has(R);this.elements.add(R);F.addOnDisposeCallback(function(){a.destroyVe(R)}); h&&this.D.add(R)}; g.Q.destroyVe=function(R){this.elements.has(R);this.elements.delete(R);this.K.delete(R);this.B.delete(R);this.D.delete(R)}; g.Q.Lw=function(R,F){this.clientPlaybackNonce!==F&&(this.clientPlaybackNonce=F,la(tu(),R),vZO(this))}; g.Q.setTrackingParams=function(R,F){this.elements.has(R);F&&(R.visualElement=g.sD(F))}; g.Q.CO=function(R,F,h){this.elements.has(R);F?this.B.add(R):this.B.delete(R);var a=g.Q7(),J=R.visualElement;this.D.has(R)?a&&J&&(F?g.Cx(a,[J]):g.c5(a,[J])):F&&!this.K.has(R)&&(a&&J&&g.UD(a,J,void 0,h),this.K.add(R))}; g.Q.hasVe=function(R){return this.elements.has(R)};g.A(g.Ae,g.d);g.Ae.create=function(R,F,h,a){try{var J=typeof R==="string"?R:"player"+g.g7(R),M=jH[J];if(M){try{M.dispose()}catch(I){g.y7(I)}jH[J]=null}var v=new g.Ae(R,F,h,a);v.addOnDisposeCallback(function(){jH[J]=null;v.NE&&v.NE()}); return jH[J]=v}catch(I){throw g.y7(I),(I&&I instanceof Error?I:Error(String(I))).stack;}}; g.Q=g.Ae.prototype;g.Q.RH=function(){return this.visibility}; g.Q.yW=function(R){var F=this.pO();if(R!==F){R.getVideoData().autonavState=F.getVideoData().autonavState;F.n9(this.Wp,this);var h=F.getPlaybackRate();F.dispose();this.Ui.yW(R);R.setPlaybackRate(h);R.Fc(this.Wp,this);B2n(this)}}; g.Q.kL=function(){this.h9||(this.h9=g.zQ(lm(),bf7()));return this.h9}; g.Q.sJ=function(R){if(this.mediaElement){this.wy&&(this.events.Ap(this.wy),this.wy=null);g.TP(this.p9);this.bu().sJ(!0,!1,R);this.template.sJ();try{this.X("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.kG()}catch(F){g.qN(F)}this.mediaElement=null}}; g.Q.OZ=function(R,F,h){h=h===void 0?!1:h;if(R!==this.bu()){this.logger.debug(function(){return"start set presenting player, type "+R.getPlayerType()+", vid "+R.getVideoData().videoId}); var a=null;h||(h=this.bu(),a=h.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),bV(this.JT,3),K9(this,"cuerangesremoved",h.C2()),this.pB&&!R.isGapless()&&h.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),h=R.BV()&&h.BV(),this.rW.Vb("iv_s"),A6n(this,h));R.getPlayerType()===1&&this.yW(R);$PL(this,R);this.Ui.OZ(R);this.mediaElement&&R.setMediaElement(this.mediaElement);R.Fc(this.qd,this);R.Fq()?DPT(this,"setPresenting",!1):(this.O0("newdata",R,R.getVideoData()), a&&!g.T7(a,R.getPlayerState())&&this.j2(new g.G2(R.getPlayerState(),a)),F=F&&R.getPlayerType()===1,R.gx()&&!F&&this.O0("dataloaded",R,R.getVideoData()),(F=(F=R.getVideoData().D)&&F.video)&&this.Xo.hj("onPlaybackQualityChange",F.quality),K9(this,"cuerangesadded",R.C2()),F=R.getPlayerState(),g.V(F,2)?QEm(this):g.V(F,8)?R.playVideo():R.HA()&&R.pauseVideo(),F=this.pO(),R.getPlayerType()===2&&(R.getVideoData().Bq=F.getVideoData().clientPlaybackNonce),R.getPlayerType()!==2||this.Qs()||(a=R.getVideoData(), F.G8(a.clientPlaybackNonce,a.PJ||"",a.breakType||0,a.Ym,a.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.Q.y7=function(){if(this.pO()!==this.bu()){var R=this.bu();this.logger.debug(function(){return"release presenting player, type "+R.getPlayerType()+", vid "+R.getVideoData().videoId}); this.OZ(this.pO())}}; g.Q.NI=function(){return this.Ui}; g.Q.YO=function(R){return this.Ui.YO(R)}; g.Q.Rn=function(R){return this.Ui.Rn(R)}; g.Q.pO=function(){return this.Ui.pO()}; g.Q.bu=function(){return this.Ui.bu()}; g.Q.r7=Jf(44);g.Q.NAo=function(){ys(this)||(this.logger.debug("application playback ready"),this.PE(5))}; g.Q.HOA=function(){if(!ys(this)){this.logger.debug("playback ready");zri(this);var R=this.bu(),F=R.getPlayerState();R.HA()?this.pauseVideo():F.isOrWillBePlaying()&&this.playVideo()}}; g.Q.canPlayType=function(R){return p7(R)}; g.Q.W=function(){return this.uu}; g.Q.getVideoData=function(){return this.bu().getVideoData()}; g.Q.mT=Jf(11);g.Q.Bc=function(){return this.pO().getVideoData()}; g.Q.getVideoLoadedFraction=function(R){return(R=this.YO({playerType:R}))?R.getVideoLoadedFraction():this.Ui.B.getVideoLoadedFraction()}; g.Q.xo=function(){return this.template}; g.Q.LO=function(){return this.JT}; g.Q.zV=function(){return this.rW}; g.Q.KN=function(R){var F=this.YO({playerType:1});F&&F.JN(R)}; g.Q.qh=function(){var R=this.JT.qh();this.Xo.publish("videoStatsPingCreated",R);return R}; g.Q.getVolume=function(){return Math.round(this.Xo.getVolume())}; g.Q.isMuted=function(){return this.Xo.isMuted()}; g.Q.Lz=function(){if(this.pO()===this.bu()&&this.sP)return this.sP.postId}; g.Q.C9u=function(){var R=this;this.X("use_rta_for_player")||(g.Y0(this.uu)?g.Qj(this.uu,g.Wr(this.getVideoData())).then(function(F){D4(lm(),F);U72(R.getVideoData(),R.uu,R.kL())}):U72(this.getVideoData(),this.uu,this.kL()))}; g.Q.lO=function(R){this.Xo.publish("poTokenVideoBindingChange",R)}; g.Q.As=function(R){this.Xo.publish("d6de4videobindingchange",R)}; g.Q.PZ=function(){this.O_&&this.O_.PZ()}; g.Q.Jw=function(R){this.O_=R}; g.Q.a7=function(R){if(R===1){this.rW.tick("vr");var F=this.bu();F.pg();w8g(this.rW,F.getVideoData(),Prf(this));uQi(this.JT)}F=this.uu;if(sZ(F)&&F.Z||g.Uk(F)){var h;(((h=this.bu().getVideoData())==null?0:h.enableServerStitchedDai)||!this.Qs())&&this.Xo.hj("onAdStateChange",R)}}; g.Q.setLoopVideo=function(R){var F=this.bu();F===this.pO()&&F.Ju()!==R&&(F.setLoop(R),this.Xo.WG("onLoopChange",R))}; g.Q.getLoopVideo=function(){return this.bu().Ju()}; g.Q.setLoopRange=function(R){var F=!1;!!this.sP!==!!R?F=!0:this.sP&&R&&(F=this.sP.startTimeMs!==R.startTimeMs||this.sP.endTimeMs!==R.endTimeMs||this.sP.postId!==R.postId||this.sP.type!==R.type);if(F){F=this.bu();pt(F.getVideoData())&&F.dA("slr",{et:(R==null?void 0:R.endTimeMs)||-1});F=this.pO();F.NH("applooprange");if(R){var h=new g.KI(R.startTimeMs,R.endTimeMs,{id:"looprange",namespace:"applooprange"});F.addCueRange(h)}else{this.Bc().clipConfig=void 0;var a;((h=this.sP)==null?void 0:h.type)!=="repeatChapter"|| isNaN(Number((a=this.sP)==null?void 0:a.loopCount))||(h={loopCount:String(this.sP.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.MU("repeatChapterLoopEvent",h))}this.sP=R;this.Xo.WG("onLoopRangeChange",R||void 0);this.pO()===this.bu()&&(this.td(),F.dX())}}; g.Q.getLoopRange=function(){return this.sP}; g.Q.td=function(){var R="",F=this.pO();this.sP?F!==this.bu()?R="pnea":fsm(this,F.getCurrentTime())&&(this.sP.loopCount=0,R="ilr"):R="nlr";var h=this.bu();if(pt(h.getVideoData()))if(this.X("html5_gapless_log_loop_range_info")){var a,J;h.dA("slrre",{rej:R,ct:F.getCurrentTime(),lst:(a=this.sP)==null?void 0:a.startTimeMs,let:(J=this.sP)==null?void 0:J.endTimeMs})}else h.dA("slrre",{});R||ZCm(this)}; g.Q.setPlaybackRate=function(R,F){if(!isNaN(R)){R=sEi(this,R);var h=this.pO();h.getPlaybackRate()!==R&&(h.setPlaybackRate(R),F&&!this.uu.L&&g.fn("yt-player-playback-rate",R),this.Xo.hj("onPlaybackRateChange",R))}}; g.Q.getCurrentTime=function(R,F){F=F===void 0?!0:F;var h=this.Ui.GT;if(h)return h.getCurrentTime();var a=R===2&&this.getVideoData().enableServerStitchedDai;h=null;a?h=this.bu():h=this.YO({playerType:R});return h?a&&this.Hc?(R=this.Ui.Y)?R.getCurrentTime(F):h.getCurrentTime():F?(F=T9(this,h),XQ(this,F.getCurrentTime(),F)):h.getCurrentTime():this.Ui.B.getCurrentTime()}; g.Q.Sb=function(){var R=this.YO({playerType:void 0});if(!R)return this.Ui.B.Sb();R=T9(this,R);return XQ(this,R.Sb(),R)}; g.Q.getDuration=function(R,F){F=F===void 0?!0:F;var h=this.Ui.GT;if(h)return h.getDuration();h=this.getVideoData();var a=R===2&&h.enableServerStitchedDai,J=null;a?J=this.bu():J=this.YO({playerType:R});if(!J)return this.Ui.B.getDuration();if(h.hasProgressBarBoundaries()&&!a){var M,v=Number((M=h.progressBarStartPosition)==null?void 0:M.utcTimeMillis),I;M=Number((I=h.progressBarEndPosition)==null?void 0:I.utcTimeMillis);if(!isNaN(v)&&!isNaN(M))return(M-v)/1E3}if(pt(h)&&!h.isLivePlayback)return mH(this, R);if(F)return R=L9(this,J),XQ(this,R.getDuration(),R);if(a&&this.Hc){if(this.X("html5_huli_ssdai_use_playback_state"))return R=this.Ui,R=R.L===R.Y?R.L:null,(R==null?void 0:R.getDuration())||0;var w;return((w=this.Ui.Y)==null?void 0:w.getDuration())||0}return J.getDuration()}; g.Q.oz=function(R){var F=this.YO({playerType:R});return F?this.Qs(F)?(F=L9(this,F),F.oz()-F.getCurrentTime()+this.getCurrentTime(R)):F.oz():this.Ui.B.oz()}; g.Q.finishSegmentByCpn=function(){return[]}; g.Q.tD=function(){this.template.tD();var R=this.Xo;R.state.element=this.template.element;var F=R.state.element,h;for(h in R.state.B)R.state.B.hasOwnProperty(h)&&(F[h]=R.state.B[h]);(R=XYi(this.template.element))&&this.events.T(this.template,R,this.onFullscreenChange)}; g.Q.getDebugText=function(R){var F=this.pO().nO(R),h=this.bu();if(h!==this.pO()){h=h.nO(R);for(var a=g.N(Object.keys(h)),J=a.next();!J.done;J=a.next())J=J.value,F["ad"+J]=h[J];if(R){h=F;a={};if(J=aG(document,"movie_player"))a.bounds=J.getBoundingClientRect(),a["class"]=J.className;J={};var M=g.gs("video-ads");M?(CrI(M,J),J.html=M.outerHTML):J.missing=1;M={};var v=g.gs("videoAdUiSkipContainer"),I=g.gs("ytp-ad-skip-button-container"),w=g.gs("ytp-skip-ad-button"),E=v||I||w;E?(CrI(E,M),M.ima=v?1:0,M.bulleit= I?1:0,M.component=w?1:0):M.missing=1;a=JSON.stringify({player:a,videoAds:J,skipButton:M});h.ad_skipBtnDbgInfo=a}}R&&this.mediaElement&&(F["0sz"]=""+(+D$(this.mediaElement.getSize())===0),F.op=this.mediaElement.i4("opacity"),h=this.mediaElement.Mj().y+this.mediaElement.getSize().height,F.yof=""+(+h<=0),F.dis=this.mediaElement.i4("display"));R&&((R=(0,g.N$)())&&(F.gpu=R),(R=this.uu.playerStyle)&&(F.ps=R),this.uu.PG&&(F.webview=1));F.debug_playbackQuality=this.Xo.getPlaybackQuality(1);F.debug_date=(new Date).toString(); F.origin=window.origin;F.timestamp=Date.now();delete F.uga;delete F.q;return JSON.stringify(F,null,2)}; g.Q.getFeedbackProductData=function(){var R={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", "),player_release:G[18]},F=this.getPlayerStateObject().wL;F&&(R.player_error_code=F.errorCode,R.player_error_details=JSON.stringify(F.errorDetail));return R}; g.Q.getPresentingPlayerType=function(R){if(this.appState===1)return 1;if(ys(this))return 3;var F;return R&&((F=this.Hc)==null?0:F.Hu(this.getCurrentTime()))?2:this.bu().getPlayerType()}; g.Q.Jc=function(){return!1}; g.Q.getPlayerStateObject=function(R){var F=this.Ui.GT;return F?F.getPlayerState():this.YO({playerType:R}).getPlayerState()}; g.Q.getAppState=function(){return this.appState}; g.Q.a1l=function(R){switch(R.type){case "loadedmetadata":this.gD.start();R=g.N(this.uO);for(var F=R.next();!F.done;F=R.next())F=F.value,dP7(this,F.id,F.uJA,F.C0u,void 0,!1);this.uO=[];break;case "loadstart":this.rW.Vb("gv");break;case "progress":case "timeupdate":cz(R.target.Ft())>=2&&this.rW.Vb("l2s");break;case "playing":g.rG&&this.gD.start();if(g.Y0(this.uu))R=!1;else{F=g.um(this.LO());R=this.mediaElement.i4("display")==="none"||D$(this.mediaElement.getSize())===0;var h=$e(this.template),a=this.bu().getVideoData(), J=g.b5(this.uu);a=kF(a);F=!h||F||J||a||this.uu.uY;R=R&&!F}R&&(R=this.bu(),R.uG(),this.getVideoData().YH||(this.getVideoData().YH=1,this.Wr(),R.playVideo()))}}; g.Q.yat=function(R){this.Xo.xm("onLoadProgress",R)}; g.Q.Bfo=function(){this.Xo.publish("playbackstalledatstart")}; g.Q.Qt$=function(R,F){this.Xo.publish("sabrCaptionsDataLoaded",R,F)}; g.Q.bVQ=function(R){this.bu().LN(R)}; g.Q.tAR=function(R){this.bu().m1(R)}; g.Q.DaA=function(R){R=T9(this,this.bu());R=XQ(this,R.getCurrentTime(),R);this.Xo.hj("onVideoProgress",R);this.uu.nX&&X72(this,this.visibility.jC())&&this.pauseVideo()}; g.Q.woA=function(){this.Xo.hj("onAutoplayBlocked");var R=this.bu().getVideoData();R&&(R.K3=!0);this.X("embeds_enable_autoplay_and_visibility_signals")&&g.Py(this.uu)&&(R={autoplayBrowserPolicy:QZ(),autoplayIntended:$n(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.MU("embedsAutoplayStatusChanged",R))}; g.Q.xtb=function(){this.Xo.publish("progresssync")}; g.Q.jtQ=function(){this.Xo.xm("onPlaybackPauseAtStart")}; g.Q.qzo=function(R){if(this.getPresentingPlayerType()===1){g.i5(R,1)&&!g.V(R.state,64)&&this.Bc().isLivePlayback&&this.pO().isAtLiveHead()&&this.Xo.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.i5(R,2)){if(this.sP&&this.sP.endTimeMs>=(this.getDuration()-1)*1E3){ZCm(this);return}QEm(this)}if(g.V(R.state,128)){var F=R.state;this.cancelPlayback(5);F=F.wL;JSON.stringify({errorData:F,debugInfo:this.getDebugText(!0)});this.Xo.hj("onError",GaB(F.errorCode));this.Xo.xm("onDetailedError",{errorCode:F.errorCode, errorDetail:F.errorDetail,message:F.errorMessage,messageKey:F.zC,cpn:F.cpn});(0,g.NU)()-this.uu.Y6>6048E5&&this.Xo.xm("onReloadRequired")}F={};if(R.state.isPlaying()&&!R.state.isBuffering()&&!yh("pbresume","ad_to_video")&&yh("_start","ad_to_video")){var h=this.getVideoData();F.clientPlaybackNonce=h.clientPlaybackNonce;h.videoId&&(F.videoId=h.videoId);g.L4(F,"ad_to_video");Hf("pbresume",void 0,"ad_to_video");uQi(this.JT)}this.Xo.publish("applicationplayerstatechange",R)}}; g.Q.j2=function(R){this.Ui.GT||this.Xo.publish("presentingplayerstatechange",R)}; g.Q.eC=function(R){H8(this,q8(R.state));g.V(R.state,1024)&&this.Xo.isMutedByMutedAutoplay()&&(Sy(this,{muted:!1,volume:this.wl.volume},!1),O2(this,!1))}; g.Q.onPlayerRequestSent=function(R){this.Xo.WG("onPlayerRequestSent",R)}; g.Q.k$$=function(R,F){R==="newdata"&&B2n(this);this.Xo.publish("applicationvideodatachange",R,F)}; g.Q.YPb=function(R,F){this.X("html5_afmt_change_update_volume")&&zri(this);this.Xo.xm("onPlaybackAudioChange",this.Xo.getAudioTrack().jw.name);this.Xo.publish("internalaudioformatchange",this.Xo.getAudioTrack().jw.id,F)}; g.Q.daI=function(R){var F=this.bu().getVideoData();R===F&&this.Xo.hj("onPlaybackQualityChange",R.D.video.quality)}; g.Q.n3=function(){var R=this.Ui.K[2]||null;R&&(R=R.getVideoData(),this.bu().dA("ssdai",{cleanaply:1,acpn:R==null?void 0:R.clientPlaybackNonce,avid:R.videoId,isDai:this.Bc().enableServerStitchedDai?1:0}),delete this.Ui.K[2])}; g.Q.omb=function(R,F){this.O0(R,this.bu(),F)}; g.Q.O0=function(R,F,h){this.logger.debug(function(){return"on video data change "+R+", player type "+F.getPlayerType()+", vid "+h.videoId}); this.uu.Po()&&F.dA("vdc",{type:R,vid:h.videoId||"",cpn:h.clientPlaybackNonce||""});F===this.pO()&&(this.uu.UJ=h.oauthToken);F===this.pO()&&(this.getVideoData().enableServerStitchedDai&&!this.Hc?(this.pO().dA("sdai",{initSstm:1}),this.Hc=this.X("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Lbm(this.Xo,this.uu,this.pO(),this):new g.R0(this.Xo,this.uu,this.pO(),this)):!this.getVideoData().enableServerStitchedDai&&this.Hc&&(this.Hc.dispose(),this.Hc=null));if(R==="newdata")this.logger.debug("new video data, destroy modules"), bV(this.JT,2),this.Xo.publish("videoplayerreset",F);else{if(!this.mediaElement)return;R==="dataloaded"&&(this.pO()===this.bu()?(FV(h.LI,h.n4),LVi(this)):N22(this));F.getPlayerType()===1&&(this.uu.Oz&&UPi(this),this.getVideoData().isLivePlayback&&!this.uu.BR&&this.CK("html5.unsupportedlive",2,"DEVICE_FALLBACK"),h.isLoaded()&&((pKL(h)||this.getVideoData().Qh)&&this.Xo.publish("legacyadtrackingpingchange",this.getVideoData()),h.hasProgressBarBoundaries()&&SCB(this)));this.Xo.publish("videodatachange", R,h,F.getPlayerType())}this.Xo.hj("onVideoDataChange",{type:R,playertype:F.getPlayerType()});this.td();var a=h.k9;a?this.Y8.Lw(a,h.clientPlaybackNonce):vZO(this.Y8)}; g.Q.Ub=function(){f9(this,null);this.Xo.xm("onPlaylistUpdate")}; g.Q.Gnz=function(R){delete this.Ad[R.getId()];this.pO().removeCueRange(R);a:{R=this.getVideoData();var F,h,a,J,M,v,I,w,E,B,r=((F=R.Oz)==null?void 0:(h=F.contents)==null?void 0:(a=h.singleColumnWatchNextResults)==null?void 0:(J=a.autoplay)==null?void 0:(M=J.autoplay)==null?void 0:M.sets)||((v=R.Oz)==null?void 0:(I=v.contents)==null?void 0:(w=I.twoColumnWatchNextResults)==null?void 0:(E=w.autoplay)==null?void 0:(B=E.autoplay)==null?void 0:B.sets);if(r)for(F=g.N(r),h=F.next();!h.done;h=F.next())if(h= h.value,J=a=void 0,h=h.autoplayVideo||((a=h.autoplayVideoRenderer)==null?void 0:(J=a.autoplayEndpointRenderer)==null?void 0:J.endpoint),a=g.t(h,g.EG),M=J=void 0,h!=null&&((J=a)==null?void 0:J.videoId)===R.videoId&&((M=a)==null?0:M.continuePlayback)){R=h;break a}R=null}(F=g.t(R,g.EG))&&this.Xo.WG("onPlayVideo",{sessionData:{autonav:"1",itct:R==null?void 0:R.clickTrackingParams},videoId:F.videoId,watchEndpoint:F})}; g.Q.PE=function(R){var F=this;R!==this.appState&&(this.logger.debug(function(){return"app state change "+F.appState+" -> "+R}),R===2&&this.getPresentingPlayerType()===1&&(H8(this,-1),H8(this,5)),this.appState=R,this.Xo.publish("appstatechange",R))}; g.Q.CK=function(R,F,h,a,J){this.pO().Aj(R,F,h,a,J)}; g.Q.w5=Jf(13);g.Q.isAtLiveHead=function(R,F){F=F===void 0?!1:F;var h=this.YO({playerType:R});if(!h)return this.Ui.B.isAtLiveHead();R=L9(this,h);h=T9(this,h);return R!==h?R.isAtLiveHead(XQ(this,h.getCurrentTime(),h),!0):R.isAtLiveHead(void 0,F)}; g.Q.AI=function(){var R=this.YO({playerType:void 0});return R?L9(this,R).AI():this.Ui.B.AI()}; g.Q.seekTo=function(R,F,h,a,J){F=F!==!1;if(a=this.YO({playerType:a}))this.appState===2&&Zk(this),this.Qs(a)?ey(this)?this.Hc.seekTo(R,{seekSource:J},F,h):this.Z1.seekTo(R,{seekSource:J},F,h):a.seekTo(R,{kq:!F,Nc:h,RT:"application",seekSource:J})}; g.Q.seekBy=function(R,F,h,a){this.seekTo(this.getCurrentTime()+R,F,h,a)}; g.Q.nHu=function(){this.Xo.hj("SEEK_COMPLETE")}; g.Q.lfo=function(){this.Xo.WG("onAbnormalityDetected")}; g.Q.ufb=function(R){this.Xo.WG("onSnackbarMessage",R)}; g.Q.zmA=function(R){var F=this.bu(),h=F.getVideoData();if(this.appState===1||this.appState===2)h.startSeconds=R;this.appState===2?g.V(F.getPlayerState(),512)||Zk(this):this.Xo.hj("SEEK_TO",R)}; g.Q.PYl=function(){this.Xo.publish("airplayactivechange");this.uu.X("html5_external_airplay_events")&&this.Xo.xm("onAirPlayActiveChange",this.Xo.Hf())}; g.Q.gHI=function(){this.Xo.publish("airplayavailabilitychange");this.uu.X("html5_external_airplay_events")&&this.Xo.xm("onAirPlayAvailabilityChange",this.Xo.hK())}; g.Q.showAirplayPicker=function(){this.bu().pY()}; g.Q.Jab=function(){this.Xo.publish("beginseeking")}; g.Q.twb=function(){this.Xo.publish("endseeking")}; g.Q.getStoryboardFormat=function(R){return(R=this.YO({playerType:R}))?L9(this,R).getStoryboardFormat():this.Ui.B.getStoryboardFormat()}; g.Q.B_=function(R){return(R=this.YO({playerType:R}))?L9(this,R).getVideoData().B_():this.Ui.B.B_()}; g.Q.Qs=function(R){R=(R||this.bu()).getVideoData();if(ey(this))R=R===this.Hc.playback.getVideoData();else a:{var F=this.Z1;if(R===F.B.getVideoData()&&F.D.length)R=!0;else{F=g.N(F.D);for(var h=F.next();!h.done;h=F.next())if(R.Jp===h.value.Jp){R=!0;break a}R=!1}}return R}; g.Q.nJ=function(R,F,h,a,J,M,v,I){this.logger.debug(function(){return"Adding video to timeline id="+R.video_id+"\n lengthMs="+a+" enterTimeMs="+J}); var w="",E=ey(this);this.bu().dA("appattl",{sstm:this.Hc?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:E});E?(h=vDT(this.Hc,R,F,h,a,J,M,v,I),w=(h==null?void 0:h.Jp)||"",this.X("html5_ssdai_new_decoration_logic")&&this.pO().NS(I||"",F,(h==null?void 0:h.clientPlaybackNonce)||"")):w=oDI(this.Z1,R,h,a,J,M);this.logger.debug(function(){return"Video added to timeline id="+R.video_id+" timelinePlaybackId="+w}); return w}; g.Q.Oy=function(R,F,h,a,J,M,v,I){if(ey(this)){var w=vDT(this.Hc,R,F,h,a,J,M,v,I);this.logger.debug(function(){return"Remaining video added to timeline id="+R.video_id+" timelinePlaybackId="+w})}return""}; g.Q.ST=function(R){this.X("html5_ssdai_new_decoration_logic")&&this.pO().NS(R,"","");var F;(F=this.Hc)==null||F.ST(R)}; g.Q.Fs=function(R,F){R=R===void 0?-1:R;F=F===void 0?Infinity:F;ey(this)||tKO(this.Z1,R,F)}; g.Q.rN=function(R,F,h){if(ey(this)){var a=this.Hc,J=a.B.L.get(R);J?(h===void 0&&(h=J.DQ),w0I(a,J,F,h)):a.X4("Invalid_timelinePlaybackId_"+R+"_specified")}else{a=this.Z1;J=null;for(var M=g.N(a.D),v=M.next();!v.done;v=M.next())if(v=v.value,v.Jp===R){J=v;break}J?(h===void 0&&(h=J.DQ),Kbm(a,J,F,h)):B8(a,"InvalidTimelinePlaybackId timelinePlaybackId="+R)}}; g.Q.enqueueVideoByPlayerVars=function(R,F,h,a){h=h===void 0?Infinity:h;a=a===void 0?"":a;this.Qs();R=new g.Mz(this.uu,R);a&&(R.Jp=a);OCO(this,R,F,h)}; g.Q.queueNextVideo=function(R,F,h,a,J){h=h===void 0?NaN:h;R=this.preloadVideoByPlayerVars(R,F===void 0?1:F,h,a===void 0?"":a,J===void 0?"":J);F=this.bu();R&&(this.X("html5_check_queue_on_data_loaded")?this.W().supportsGaplessShorts()&&F.getVideoData().Y&&(h=this.gr,a=this.pB.N,h.L!==R&&(h.D=F,h.L=R,h.K=1,h.B=R.getVideoData(),h.N=a,h.B.isLoaded()?h.S():h.B.subscribe("dataloaded",h.S,h))):(h=TNg(F,R,this.pB.N),h!=null?(F.dA("sgap",h),F.getVideoData().Y&&F.cg(!1)):(R=R.getVideoData(),F=this.gr,F.B!== R&&(F.B=R,F.K=1,R.isLoaded()?F.Y():F.B.subscribe("dataloaded",F.Y,F)))))}; g.Q.R2=function(R,F,h,a){var J=this;h=h===void 0?0:h;a=a===void 0?0:a;L9(this,this.bu()).W8();XoI(this.pB,R,F,h,a).then(function(){J.Xo.xm("onQueuedVideoLoaded")},function(){})}; g.Q.Kr=function(){return this.pB.Kr()}; g.Q.t9=function(R){var F=this.pB.B;return F?F.pw(R):!1}; g.Q.clearQueue=function(R,F){R=R===void 0?!1:R;F=F===void 0?!1:F;this.logger.debug("Clearing queue");this.pB.clearQueue(R,F)}; g.Q.loadVideoByPlayerVars=function(R,F,h,a,J,M){F=F===void 0?1:F;var v=this.pO();if(F===2&&this.Bc().enableServerStitchedDai&&v&&!v.Wa())return v.dA("lvonss",{vid:(R==null?void 0:R.videoId)||"",ptype:F}),!1;var I=!1;v=new g.Mz(this.uu,R);v.DK=M;g.Bc(this.uu)&&!v.nK&&$w(this.rW);var w;M=this.rW;var E=(w=v.C)!=null?w:"";M.timerName=E;this.rW.uT("pl_i");this.X("web_player_early_cpn")&&v.clientPlaybackNonce&&this.rW.infoGel({clientPlaybackNonce:v.clientPlaybackNonce});tOi(v).supportsVp9Encoding===!1&& this.bu().dA("noVp9enc",{});if(this.W().supportsGaplessShorts()){w=u9B(this.pB,v,F);if(w==null){H8(this,-1);var B;!this.X("html5_shorts_gapless_reset_ad_module")||((B=this.pB.B)==null?0:B.getVideoData().isAd())||n9(this);R=this.pB;R.app.W().X("html5_gapless_new_slr")?o0(R.app,"gaplessshortslooprange"):R.app.setLoopRange(null);R.app.W().X("html5_gapless_remove_videoplaytime100_cuerange")&&R.app.GM("videoplaytime100");R.app.getVideoData().hJ=!0;var r;(r=R.B)==null||r.YG();var Y;(Y=R.B)==null||Y.Tb(); h={RT:"gapless_to_next_video",seekSource:60,zB:R.N.B};a=g.RI(R.app.W().experiments,"html5_gapless_seek_offset");J=ngi(R);if(R.N.B){var p;v=((p=R.K)==null?void 0:uC(p))||{};p=v.rg;v=v.On;v!=null&&p!=null&&(J=v-p)}var k;(k=R.app.bu())==null||k.seekTo(J+a,h);if(!R.app.getPlayerStateObject(F).isPlaying()){var H;(H=R.app.bu())==null||H.playVideo(!0)}var T;(T=R.app.bu())==null||T.e_();R.Y();return!0}k=this.X("html5_shorts_gapless_preload_fallback");H=this.pB.B;k&&H&&!H.RR()&&(T=H.getVideoData(),T=this.uu.X("html5_autonav_autoplay_in_preload_key")? u0(this,F,T):d6(this,F,T.videoId,T.Jp),this.Ui.N.set(T,H,3600));this.pB.clearQueue(k);this.bu().dA("sgap",{f:w})}if(J){for(;v.Nn.length&&v.Nn[0].isExpired();)v.Nn.shift();k=v.Nn.length-1;I=k>0&&J.D(v.Nn[k])&&J.D(v.Nn[k-1]);v.Nn.push(J)}h||(R&&re2(R)?(gG(this.uu)&&!this.SK&&(R.fetch=0),f9(this,R)):this.playlist&&f9(this,null),R&&(this.SK=RA(!1,R.external_list)));this.Xo.publish("loadvideo");k=this.dB(v,F,a);I&&this.CK("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+v.Nn.join()).replace(/[;:,]/g, "_"));return k}; g.Q.preloadVideoByPlayerVars=function(R,F,h,a,J){F=F===void 0?1:F;h=h===void 0?NaN:h;a=a===void 0?"":a;J=J===void 0?"":J;var M="";if(this.uu.X("html5_autonav_autoplay_in_preload_key"))M=oZi(this,F,R,J);else{var v=Mm(R);M=d6(this,F,v,J)}if(v=this.Ui.N.get(M)||null)return this.logger.debug(function(){return"already preloaded "+M}),this.X("html5_return_playback_if_already_preloaded")?v:null; R=new g.Mz(this.uu,R);J&&(R.Jp=J);return mPL(this,R,F,h,a)}; g.Q.setMinimized=function(R){this.visibility.setMinimized(R);(R=zKI(this.JT))&&(this.isMinimized()?R.load():R.unload());this.Xo.publish("minimized")}; g.Q.setInline=function(R){this.visibility.setInline(R)}; g.Q.setInlinePreview=function(R){this.visibility.setInline(R)}; g.Q.Tc=function(R){erT(this,R)||this.visibility.Tc(R)}; g.Q.setSqueezeback=function(R){this.visibility.setSqueezeback(R)}; g.Q.jY=function(){var R,F=(R=this.mediaElement)==null?void 0:R.G_();F&&(this.uu.tF&&ZV(qb(function(){return document.exitFullscreen()}),function(){}),ZV(qb(function(){return sK(F)}),function(){}))}; g.Q.ZVb=function(){this.mediaElement.G_();this.mediaElement.G_().webkitPresentationMode==="picture-in-picture"?this.Tc(!0):this.Tc(!1)}; g.Q.togglePictureInPicture=function(){this.bu().togglePictureInPicture()}; g.Q.dB=function(R,F,h){F=F===void 0?1:F;this.logger.debug(function(){return"start load video, id "+R.videoId+", type "+F}); yh("_start",this.rW.timerName)||g.Vz(p4)(void 0,this.rW.timerName);var a=!1,J=qCL(this,F,R,!1);J?(a=!0,R.dispose()):(J=xe(this,F,R,!0,h),(this.X("html5_onesie")||this.X("html5_load_before_stop"))&&J.n5()&&J.ke(),this.gD.stop(),F===1&&F!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,F),this.OZ(J));J===this.pO()&&(this.uu.UJ=R.oauthToken);if(!J.n5())return!1;if(J===this.pO())return this.PE(1),h=Zk(this),a&&this.X("html5_player_preload_ad_fix")&&J.getPlayerType()===1&& J.gx()&&this.O0("dataloaded",J,J.getVideoData()),h;J.vU();return!0}; g.Q.cueVideoByPlayerVars=function(R,F){var h=this;F=F===void 0?1:F;var a=this.pO();if(this.Bc().enableServerStitchedDai&&a&&!a.Wa()&&R&&Object.keys(R).length>0)a.dA("qvonss",{vid:(R==null?void 0:R.videoId)||"",ptype:F});else if(R&&re2(R))if(this.Il=!0,f9(this,R),(R=g.A5(this.playlist))&&R.Fd())z9(this,R,F);else this.playlist.onReady(function(){jy(h)}); else{F||(F=this.getPresentingPlayerType());F===1&&this.Ub();a=new g.Mz(this.uu,R);var J=g.Py(this.uu)&&!this.uu.aR&&F===1&&!a.isAd()&&!a.PJ;this.Xo.publish("cuevideo");J?(this.bu().getVideoData().loading=!0,Ae_(a,R?R:{}).then(function(M){z9(h,M,F)}),a.dispose()):z9(this,a,F)}}; g.Q.VQ=function(R,F,h,a,J,M,v){if(!R&&!h)throw Error("Playback source is invalid");if(KG(this.uu)||g.BW(this.uu))return F=F||{},F.lact=$G(),F.vis=this.Xo.getVisibilityState(),this.Xo.WG("onPlayVideo",{videoId:R,watchEndpoint:M,sessionData:F,listId:h}),!1;Eef(this.rW);this.rW.reset();R={video_id:R};a&&(R.autoplay="1");a&&(R.autonav="1");M&&(R.player_params=M.playerParams);v&&(R.oauth_token=v);h?(R.list=h,this.loadPlaylist(R)):this.loadVideoByPlayerVars(R,1);return!0}; g.Q.cuePlaylist=function(R,F,h,a){this.Il=!0;nZi(this,R,F,h,a)}; g.Q.loadPlaylist=function(R,F,h,a){this.Il=!1;nZi(this,R,F,h,a)}; g.Q.FR=function(){return this.Xo.isMutedByMutedAutoplay()?!1:this.Ui.GT?!0:!(!this.playlist||!this.playlist.NC())}; g.Q.vA=Jf(5); g.Q.nextVideo=function(R,F){var h=g.Br(this.pO().getVideoData());g.zU(this.Xo)&&h?this.VQ(h.videoId,F?h.PP:h.sessionData,h.playlistId,F,void 0,h.YM||void 0):this.SK?this.Xo.xm("onPlaylistNext"):this.getPresentingPlayerType()===3?XM(this.JT).nextVideo():!this.playlist||gG(this.uu)&&!this.Xo.isFullscreen()||(this.playlist.NC(R)&&p8m(this.playlist,Y22(this.playlist)),this.playlist.loaded?(R=F&&this.uu.X("html5_player_autonav_logging"),F&&this.Xo.publish("playlistautonextvideo"),this.dB(g.A5(this.playlist,void 0, F,R),1)):this.Il=!1)}; g.Q.previousVideo=function(R){this.SK?this.Xo.xm("onPlaylistPrevious"):this.getPresentingPlayerType()===3?XM(this.JT).f6():!this.playlist||gG(this.uu)&&!this.Xo.isFullscreen()||(this.playlist.xJ(R)&&p8m(this.playlist,s0L(this.playlist)),this.playlist.loaded?this.dB(g.A5(this.playlist),1):this.Il=!1)}; g.Q.playVideoAt=function(R){this.SK?this.Xo.xm("onPlaylistIndex",R):this.playlist&&(this.playlist.loaded?this.dB(g.A5(this.playlist,R),1):this.Il=!1,p8m(this.playlist,R))}; g.Q.getPlaylist=function(){return this.playlist}; g.Q.u4=Jf(19);g.Q.GM=function(R){this.uO=g.TR(this.uO,function(M){return M.id!==R}); for(var F=this.pO(),h=F.C2(),a=0;a0&&(w=Math.floor(E/1E3))}w=F?F.Rz:w;var B={AD_BLOCK:this.B++,AD_BREAK_LENGTH:w,AUTONAV_STATE:l0(this.player.W()),CA_TYPE:"image",CPN:I.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.AI()*1E3,LACT:$G(),LIVE_INDEX:F?this.K++:1,LIVE_TARGETING_CONTEXT:F&&F.context?F.context:"",MIDROLL_POS:M? Math.round(M.start/1E3):0,MIDROLL_POS_MS:M?Math.round(M.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.xo().dl().height,P_W:this.player.xo().dl().width,YT_REMOTE:J?J.join(","):""},r=G6(gb);Object.keys(r).forEach(function(p){r[p]!=null&&(B[p.toUpperCase()]=r[p].toString())}); h!==""&&(B.BISCOTTI_ID=h);h={};v6(R)&&(h.sts="20264",(F=this.player.W().forcedExperiments)&&(h.forced_experiments=F));var Y=az(g.fD(R,B),h);return Y.split("?").length!==2?ZH(Error("Invalid AdBreakInfo URL")):g.Qj(this.player.W(),I==null?void 0:I.oauthToken).then(function(p){if(p&&Ml()){var k=lm();D4(k,p)}p=a.player.kL(k);k=k5i(a,Y,B,I.isMdxPlayback,v);return g.bN(p,k,"/youtubei/v1/player/ad_break").then(function(H){return H})})}; Dk.prototype.reset=function(){this.K=this.B=1};g.A(Qvf,Dk); Qvf.prototype.D=function(R,F,h){F=F===void 0?{}:F;var a=F.ol;var J=F.kO;var M=F.cueProcessedMs;h=h===void 0?"":h;F=this.B;this.B++;var v=this.player.W().X("h5_disable_macro_substitution_in_get_ad_break")?R:$c7(this,R,{ol:a,kO:J,cueProcessedMs:M},h,F);if(v.split("?").length!==2)return Math.random()<.1&&g.qN(Error("Invalid AdBreakInfo URL")),ZH(Error("Invalid AdBreakInfo URL"));var I=this.player.getVideoData(1).isMdxPlayback,w=h;h=wAa.exec(v);h=h!=null&&h.length>=2?h[1]:"";R=Evg.test(v);var E=BcT.exec(v); E=E!=null&&E.length>=2?E[1]:"";var B=rW2.exec(v);B=B!=null&&B.length>=2&&!Number.isNaN(Number(B[1]))?Number(B[1]):1;var r=YBa.exec(v);r=r!=null&&r.length>=2?r[1]:"0";var Y=RX(this.player.W().OJ),p=g.l5(this.player.getVideoData(1).Sl,!0);M42(this,p,v,w===""?"":w,this.player.W(),this.player.getVideoData(1));w={splay:!1,lactMilliseconds:String($G()),playerHeightPixels:Math.trunc(this.player.xo().dl().height),playerWidthPixels:Math.trunc(this.player.xo().dl().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20264,autonavState:l0(this.player.W())};if(I){I={};var k=this.player.W().yD;G5i(I,k?k.join(","):"")&&(w.mdxContext=I)}if(I=svL.includes(Y)?void 0:g.Sn("PREF")){k=I.split(RegExp("[:&]"));for(var H=0,T=k.length;H1&&Z[1].toUpperCase()==="TRUE"){p.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn=i0I(I)}v=pA_.exec(v);(v=v!=null&&v.length>=2?v[1]:"")&&E&&(p.user.credentialTransferTokens= [{token:v,scope:"VIDEO"}]);v={contentPlaybackContext:w};w=this.player.getVideoData(1).getGetAdBreakContext();I=this.player.getVideoData(1).clientPlaybackNonce;k=M!==void 0?Math.round(M).toString():void 0;H=(a==null?0:a.context)?a.context:void 0;T=0;M&&J&&!a&&(J=J.end-J.start,J>0&&(T=Math.floor(J/1E3)));a=(a=Math.trunc((a?a.Rz:T)*1E3))?String(a):void 0;J=this.player.AI()*1E3;J=Number.isNaN(J)?0:Math.trunc(J);F={adBlock:F,params:h,breakIndex:B,breakPositionMs:r,clientPlaybackNonce:I,topLevelDomain:Y, isProxyAdTagRequest:R,context:p,overridePlaybackContext:v,cueProcessedMs:k,videoId:E?E:void 0,liveTargetingParams:H,breakLengthMs:a,driftFromHeadMs:J?String(J):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:w?w:void 0};return AWi(this,F)};var ytk={mno:"replaceUrlMacros",lko:"onAboutThisAdPopupClosed",q6u:"executeCommand"};xcI.prototype.Ot=function(){return"adPingingEndpoint"}; xcI.prototype.Jl=function(R,F,h){v2g(this.cG.get(),R,F,h)};NcO.prototype.Ot=function(){return"changeEngagementPanelVisibilityAction"}; NcO.prototype.Jl=function(R){this.U.WG("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:R})};H0f.prototype.Ot=function(){return"loggingUrls"}; H0f.prototype.Jl=function(R,F,h){R=g.N(R);for(var a=R.next();!a.done;a=R.next())a=a.value,v2g(this.cG.get(),a.baseUrl,F,h,a.attributionSrcMode)};g.A(Tcf,g.d);g.A(U2,g.d);g.Q=U2.prototype;g.Q.addListener=function(R){this.listeners.push(R)}; g.Q.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})}; g.Q.w4=function(R,F,h,a,J,M,v,I){if(R==="")gf("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(R!==this.B||h){this.B=R;this.rA.get().w4(R,F,h,a,J,M,v,I);this.qQ.get().w4(R,F,h,a,J,M,v,I);var w;(w=this.Iz)==null||w.get().w4(R,F,h,a,J,M,v,I);this.D.w4(R,F,h,a,J,M,v,I);w=g.N(this.listeners);for(var E=w.next();!E.done;E=w.next())E.value.w4(R,F,h,a,J,M,v,I)}else gf("Duplicate content video loaded signal")}; g.Q.poQ=function(){this.B&&this.Mn(this.B)}; g.Q.Mn=function(R){this.B=void 0;for(var F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.Mn(R)};C9.prototype.T6=function(R,F,h,a,J){yWO(this);this.N=!F&&h===0;var M=this.U.getVideoData(1),v=this.U.getVideoData(2);M&&(this.contentCpn=M.clientPlaybackNonce,this.videoId=M.videoId,this.B=M.S);v&&(this.adCpn=v.clientPlaybackNonce,this.adVideoId=v.videoId,this.adFormat=v.adFormat);this.L=R;a<=0?(yWO(this),this.N=!F&&h===0):(this.actionType=this.N?F?"unknown_type":"video_to_ad":F?"ad_to_video":"ad_to_ad",this.videoStreamType=J?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.K=!0,yh("_start",this.actionType)&&jvO(this)))}; C9.prototype.reset=function(){return new C9(this.U)};g.A(c8,g.d);c8.prototype.addCueRange=function(R,F,h,a,J,M,v,I){M=M===void 0?3:M;v=v===void 0?1:v;this.B.has(R)?gf("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:R}):(R=new Z0m(R,F,h,a,M,I),this.B.set(R.id,{kO:R,listener:J,r0:v}),this.U.eI([R],v))}; c8.prototype.removeCueRange=function(R){var F=this.B.get(R);F?(this.U.yw([F.kO],F.r0),this.B.delete(F.kO.id)):gf("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:R})}; c8.prototype.onCueRangeEnter=function(R){if(this.B.has(R.id))this.B.get(R.id).listener.onCueRangeEnter(R.id)}; c8.prototype.onCueRangeExit=function(R){if(this.B.has(R.id))this.B.get(R.id).listener.onCueRangeExit(R.id)}; g.A(Z0m,g.KI);W8.prototype.addPlayerResponseForAssociation=function(R){this.U.addPlayerResponseForAssociation(R)};RY.prototype.a7=function(R){this.U.a7(R)}; RY.prototype.qs=function(R){var F=g.u7.apply(1,arguments);R==="onAdStart"||R==="onAdEnd"?this.U.hj.apply(this.U,[R].concat(g.S(F))):this.U.WG.apply(this.U,[R].concat(g.S(F)))};F0.prototype.r$=function(R){return R&&hm(this)};var zgL=null;g.A(Pqi,g.h0);Pqi.prototype.X0=function(R){return this.B.hasOwnProperty(R)?this.B[R].X0():{}}; g.Fk("ytads.bulleit.getVideoMetadata",function(R){return aY().X0(R)}); g.Fk("ytads.bulleit.triggerExternalActivityEvent",function(R,F,h){var a=aY();h=dc_(h);h!==null&&a.publish(h,{queryId:R,viewabilityString:F})});g.Q=Jm.prototype;g.Q.FJ=function(R,F){if(!this.B.has(R))return{};if(F==="seek"){F=!1;F=F===void 0?!1:F;var h=$z(tN).im(R,{});h?uh(h):F&&(R=$z(tN).fU(null,Zn(),!1,R),R.l1=3,Lyf([R]));return{}}F=t4O(F);if(F===null)return{};var a=this.U.Ys();if(!a)return{};var J=this.U.getPresentingPlayerType(!0);if((h=this.U.getVideoData(J))==null||!h.isAd())return{};h={opt_adElement:a,opt_fullscreen:this.rA.get().isFullscreen()};return LIg(F,R,h)}; g.Q.u2=function(R,F,h,a,J){this.B.has(R)&&(a<=0||J<=0||$z(tN).u2(R,F,h,a,J))}; g.Q.rO=function(R){var F;(F=this.B.get(R.queryId))==null||F.rO()}; g.Q.Ax=function(R){var F;(F=this.B.get(R.queryId))==null||F.Ax()}; g.Q.S3=function(R){var F;(F=this.B.get(R.queryId))==null||F.S3()}; g.Q.GJ=function(R){var F;(F=this.B.get(R.queryId))==null||F.GJ()}; g.Q.Ur=function(R){var F;(F=this.B.get(R.queryId))==null||F.Ur()};F0O.prototype.send=function(R,F,h,a){try{hRn(this,R,F,h,a===void 0?!1:a)}catch(J){}};g.A(aGT,F0O);JZL.prototype.send=function(R,F,h,a){var J=!1;try{if(a==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||a==="ATTRIBUTION_SRC_MODE_XHR_OPTION")J=!0,R=IPL(R);a=J;var M=g.Gg(R);if(M[1]==="https")var v=R;else M[1]="https",v=gy("https",M[2],M[3],M[4],M[5],M[6],M[7]);var I=Gdi(v);M=[];var w=UWi(v)&&this.pI.get().U.W().experiments.jl("add_auth_headers_to_remarketing_google_dot_com_ping");if(v6(v)||w)M.push({headerType:"USER_AUTH"}),M.push({headerType:"PLUS_PAGE_ID"}),M.push({headerType:"VISITOR_ID"}),M.push({headerType:"EOM_VISITOR_ID"}), M.push({headerType:"AUTH_USER"}),M.push({headerType:"DATASYNC_ID"});this.B.send({baseUrl:v,scrubReferrer:I,headers:M},F,h,a)}catch(E){}};IY.prototype.ma=function(){return this.U.ma(1)};g.A(iT,g.d);g.Q=iT.prototype;g.Q.G5=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.Q.addListener=function(R){this.listeners.push(R)}; g.Q.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})}; g.Q.w4=function(){this.T9.clear();this.BM=null;this.Ii.get().clear()}; g.Q.Mn=function(){}; g.Q.mHn=function(R,F,h,a,J){F.videoId==="nPpU29QrbiU"&&this.U.dA("ads_ssm_vdc_s",{pt:h,dvt:R});eO(this.pI.get())&&R!=="dataloaded"||Bmn(this,F,h);if(hm(this.pI.get())&&R==="newdata"&&J!==void 0){R=this.G5();var M=F.clientPlaybackNonce,v={};Gm(this,"rte",(v.ec=M,v.xc=a==null?void 0:a.clientPlaybackNonce,v.tr=J,v.pt=h,v.ia=M!==R,v.ctp=ge(M),v));F=F.clientPlaybackNonce;a=a==null?void 0:a.clientPlaybackNonce;J=rZi(J);if(J!==1)if(a!==void 0)for(h=g.N(this.listeners),R=h.next();!R.done;R=h.next())R.value.kR(a, F,J);else gf("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:F,transitionReason:String(J)});J=g.N(this.listeners);for(a=J.next();!a.done;a=J.next())a.value.qJ(F)}}; g.Q.Wz$=function(R,F){R!==void 0&&(this.BM=R,F===void 0?gf("Expected ad video start time on SS video changed"):this.T9.set(R,F));var h=this.U.getPresentingPlayerType(!0),a=this.U.getVideoData(h),J;R===void 0?J=null:J=this.Ii.get().B.get(R)||null;this.U.getVideoData(1).dA("ads_ssvc",{pt:h,cpn:a==null?void 0:a.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:F,pid:R,slid:J==null?void 0:J.layoutId});a?Bmn(this,a,h):gf("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:R})}; g.Q.tZ=function(R,F){var h=R.author,a=R.clientPlaybackNonce,J=R.isListed,M=R.Jp,v=R.title,I=R.Cr,w=R.ZY,E=R.isMdxPlayback,B=R.H4,r=R.mdxEnvironment,Y=R.isAutonav,p=R.lj,k=R.nK,H=R.hX,T=R.videoId||"",Z=R.profilePicture||"",b=R.Vc||"",O=R.XO()||!1,n=R.We()||!1;R=R.fg||void 0;M=this.Ii.get().B.get(M)||{layoutId:null,slotId:null};var K=this.U.getVideoData(1),Rg=K.Mt();K=K.getPlayerResponse();F=1E3*this.U.getDuration(F);var U=1E3*this.U.getDuration(1),vi,GI,gL=(K==null?void 0:(vi=K.playerConfig)==null? void 0:(GI=vi.daiConfig)==null?void 0:GI.enableDai)||!1,Em,hf;vi=(K==null?void 0:(Em=K.playerConfig)==null?void 0:(hf=Em.daiConfig)==null?void 0:hf.enablePreroll)||!1;return Object.assign({},M,{videoId:T,author:h,clientPlaybackNonce:a,s_:F,Z5:U,daiEnabled:gL,s3:vi,isListed:J,Mt:Rg,profilePicture:Z,title:v,Vc:b,Cr:I,ZY:w,fg:R,isMdxPlayback:E,H4:B,mdxEnvironment:r,isAutonav:Y,lj:p,nK:k,hX:H,XO:O,We:n})}; g.Q.Ez=function(){this.listeners.length=0;this.al=null;g.d.prototype.Ez.call(this)};g.A(wg,g.d);g.Q=wg.prototype;g.Q.w4=function(){var R=this;hm(this.pI.get())||(this.B=O$(function(){R.U.RR()||R.U.ag("ad",1)}))}; g.Q.Mn=function(){}; g.Q.addListener=function(R){this.listeners.push(R)}; g.Q.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})}; g.Q.gH=function(){}; g.Q.playVideo=function(){this.U.playVideo()}; g.Q.pauseVideo=function(){this.U.pauseVideo()}; g.Q.resumeVideo=function(R){this.Vr(R)&&this.U.playVideo()}; g.Q.Vr=function(R){return this.U.getPlayerState(R)===2}; g.Q.getCurrentTimeSec=function(R,F,h){var a=this.qQ.get().BM;if(R===2&&!F&&a!==null)return rg(this,a);oI(this.pI.get(),"html5_ssap_use_cpn_to_get_time")||(h=void 0);return h!==void 0?this.U.getCurrentTime(R,F,h):this.U.getCurrentTime(R,F)}; g.Q.getVolume=function(){return this.U.getVolume()}; g.Q.isMuted=function(){return this.U.isMuted()}; g.Q.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.Q.getPlayerState=function(R){return this.U.getPlayerState(R)}; g.Q.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.Q.isFullscreen=function(){return this.U.isFullscreen()}; g.Q.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.Q.g5=function(R){this.U.g5(R)}; g.Q.Apt=function(){var R=this.U.getPresentingPlayerType(!0),F=this.getCurrentTimeSec(R,!1);if(R===2){R=g.N(this.listeners);for(var h=R.next();!h.done;h=R.next())h.value.h0(F)}else if(R===1)for(R=g.N(this.Af),h=R.next();!h.done;h=R.next())h.value.gH(F)}; g.Q.Vwb=function(R){for(var F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.gk(R,this.getPresentingPlayerType())}; g.Q.onFullscreenToggled=function(R){for(var F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.onFullscreenToggled(R)}; g.Q.onVolumeChange=function(){for(var R=g.N(this.listeners),F=R.next();!F.done;F=R.next())F.value.onVolumeChange()}; g.Q.v7=function(){for(var R=this.U.isMinimized(),F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.v7(R)}; g.Q.Je=function(R){for(var F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.Je(R)}; g.Q.ew=function(){for(var R=this.U.xo().dl(),F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.Vz(R)}; g.Q.Y7=function(R){for(var F=g.N(this.listeners),h=F.next();!h.done;h=F.next())h.value.Y7(R)}; g.Q.I3=function(){for(var R=g.N(this.listeners),F=R.next();!F.done;F=R.next())F.value.I3()};g.A(k_f,g.d);g.A(pk,g.d);pk.prototype.Ez=function(){this.n7.RR()||this.n7.get().removeListener(this);g.d.prototype.Ez.call(this)};kp.prototype.fetch=function(R){var F=R.w6;return this.B.fetch(R.wI,{ol:R.ol===void 0?void 0:R.ol,kO:F,cueProcessedMs:R.cueProcessedMs===void 0?0:R.cueProcessedMs}).then(function(h){return Qbm(h,F)})};g.A(Qr,g.d);g.Q=Qr.prototype;g.Q.addListener=function(R){this.listeners.push(R)}; g.Q.removeListener=function(R){this.listeners=this.listeners.filter(function(F){return F!==R})}; g.Q.B$=function(R){$VO(this,R,1)}; g.Q.onAdUxClicked=function(R,F){$p(this,function(h){h.KK(R,F)})}; g.Q.kB=function(R){$p(this,function(F){F.BN(R)})}; g.Q.q7=function(R){$p(this,function(F){F.u3(R)})}; g.Q.rbQ=function(R){$p(this,function(F){F.Gl(R)})};Am.prototype.reduce=function(R){switch(R.event){case "unknown":return}var F=R.identifier;var h=this.B[F];h?F=h:(h={Sg:null,lF:-Infinity},F=this.B[F]=h);h=R.startSecs+R.B/1E3;if(!(h=this.B.startSecs&&h.startSecs<=this.B.startSecs+this.B.Rz)){var a=void 0;if(ne(this.pI.get())&&h.identifier!==((a=this.B)==null?void 0:a.identifier)){var J=a=void 0,M=void 0,v=void 0;QJ(this.cG.get(),"ocud","ccpi."+h.identifier+";ccpe."+h.event+";ccps."+h.startSecs+";\n ccpd."+h.Rz+";pcpi."+((a=this.B)==null?void 0:a.identifier)+ ";pcpe."+((J=this.B)==null?void 0:J.event)+";\n pcps."+((M=this.B)==null?void 0:M.startSecs)+";pcpd."+((v=this.B)==null?void 0:v.Rz)+";")}a=void 0;h.identifier!==((a=this.B)==null?void 0:a.identifier)&&gf("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.B=h,Nm_(this,h)}}; g.Q.Ez=function(){this.D!=null&&(this.D.unsubscribe("cuepointupdated",this.wH,this),this.D=null);this.listeners.length=0;this.qX.length=0;g.d.prototype.Ez.call(this)};g.Q=HF.prototype;g.Q.nJ=function(R,F,h,a,J,M,v){return this.U.nJ(R,F,h,a,J,M,v)}; g.Q.Fs=function(R,F){this.U.Fs(R,F)}; g.Q.rN=function(R,F,h){this.U.rN(R,F,h)}; g.Q.ST=function(R){this.U.ST(R)}; g.Q.Oy=function(R,F,h,a,J,M,v){return this.U.Oy(R,F,h,a,J,M,v)}; g.Q.IQ=function(R){return this.U.IQ(R)}; g.Q.finishSegmentByCpn=function(R,F,h){h=TmL(h);this.U.finishSegmentByCpn(R,F,h)};g.A(Lk,g.d);g.A(qzi,g.d);g.A(fG2,g.d);g.A(jbL,g.d);g.A(ZHI,g.d);g.A(bHf,g.d);g.A(OHm,g.d);OHm.prototype.K=function(){return this.D};g.A(mV2,nB); mV2.prototype.K=function(R){var F=R.content;if(F.componentType==="shopping-companion")switch(R.actionType){case 1:case 2:R=this.B.getVideoData(1);this.B.WG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,shoppingCompanionCarouselRenderer:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.B,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:this.B.WG("updateKevlarOrC3Companion",{})}else if(F.componentType==="action-companion")switch(R.actionType){case 1:case 2:R=this.B.getVideoData(1); this.B.WG("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,actionCompanionAdRenderer:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.B,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F.renderer&&(F=this.B.getVideoData(1),this.B.WG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId})),this.B.WG("updateKevlarOrC3Companion",{})}else if(F.componentType==="image-companion")switch(R.actionType){case 1:case 2:R=this.B.getVideoData(1);this.B.WG("updateKevlarOrC3Companion", {contentVideoId:R&&R.videoId,imageCompanionAdRenderer:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.B,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F=this.B.getVideoData(1),this.B.WG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId}),this.B.WG("updateKevlarOrC3Companion",{})}else if(F.componentType==="top-banner-image-text-icon-buttoned")switch(R.actionType){case 1:case 2:R=this.B.getVideoData(1);this.B.WG("updateKevlarOrC3Companion", {contentVideoId:R&&R.videoId,topBannerImageTextIconButtonedLayoutViewModel:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.B,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F.renderer&&(F=this.B.getVideoData(1),this.B.WG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId})),this.B.WG("updateKevlarOrC3Companion",{})}else if(F.componentType==="banner-image")switch(R.actionType){case 1:case 2:R=this.B.getVideoData(1);this.B.WG("updateKevlarOrC3Companion", {contentVideoId:R&&R.videoId,bannerImageLayoutViewModel:F.renderer,layoutId:F.layoutId,macros:F.macros,onLayoutVisibleCallback:F.B,interactionLoggingClientData:F.interactionLoggingClientData});break;case 3:F=this.B.getVideoData(1),this.B.WG("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId}),this.B.WG("updateKevlarOrC3Companion",{})}else if(F.componentType==="ads-engagement-panel")switch(F=F.renderer,R.actionType){case 1:case 2:this.B.WG("updateEngagementPanelAction",F.addAction);this.B.WG("changeEngagementPanelVisibility", F.expandAction);break;case 3:this.B.WG("changeEngagementPanelVisibility",F.hideAction),this.B.WG("updateEngagementPanelAction",F.removeAction)}else if(F.componentType==="ads-engagement-panel-layout"){var h=F.renderer;switch(R.actionType){case 1:case 2:this.B.WG("updateEngagementPanelAction",{action:bw(h.addAction),layoutId:F.layoutId,onLayoutVisibleCallback:F.B,interactionLoggingClientData:F.interactionLoggingClientData});this.B.WG("changeEngagementPanelVisibility",bw(h.expandAction));break;case 3:this.B.WG("changeEngagementPanelVisibility", bw(h.hideAction)),this.B.WG("updateEngagementPanelAction",{action:bw(h.removeAction)})}}};g.A(o2n,D6);g.Q=o2n.prototype;g.Q.init=function(R,F,h){D6.prototype.init.call(this,R,F,h);g.zL(this.K,"stroke-dasharray","0 "+this.D);this.K.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.L.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){Uj(this);D6.prototype.hide.call(this)}; g.Q.show=function(){V2(this);D6.prototype.show.call(this)}; g.Q.P4=function(){this.hide()}; g.Q.tI=function(){if(this.B){var R=this.B.getProgressState();R!=null&&R.current!=null&&g.zL(this.K,"stroke-dasharray",R.current/R.seekableEnd*this.D+" "+this.D)}};g.A(XtB,GA);g.Q=XtB.prototype; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);if(F.image&&F.image.thumbnail)if(F.headline)if(F.description)if(F.backgroundImage&&F.backgroundImage.thumbnail)if(F.actionButton&&g.t(F.actionButton,g.Wq))if(R=F.durationMilliseconds||0,typeof R!=="number"||R<=0)g.y7(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+R));else if(F.navigationEndpoint){var a=this.api.getVideoData(2);if(a!=null){var J=F.image.thumbnail.thumbnails;J!=null&& J.length>0&&g.jP(g.Z$(J[0].url))&&(J[0].url=a.profilePicture,g.jP(g.Z$(a.profilePicture))&&PWT("VideoPlayer",239976093,"Expected non-empty profile picture."));J=F.backgroundImage.thumbnail.thumbnails;J!=null&&J.length>0&&g.jP(g.Z$(J[0].url))&&(J[0].url=a.f2());J=F.headline;J!=null&&g.jP(g.Z$(J.text))&&(J.text=a.author)}this.C.init(R7("ad-image"),F.image,h);this.S.init(R7("ad-text"),F.headline,h);this.K.init(R7("ad-text"),F.description,h);this.PG.init(R7("ad-image"),F.backgroundImage,h);a=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.K.element.classList.add("ytp-ad-action-interstitial-description-light");a.push("ytp-ad-action-interstitial-action-button-dark");this.api.W().D&&(a.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),a.push("ytp-ad-action-interstitial-action-button-dark"));this.api.W().X("enable_unified_action_endcap_on_web")&& !this.api.W().D&&(a.push("ytp-ad-action-interstitial-action-button-unified"),this.T$.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.HG.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Jj.classList.add("ytp-ad-action-interstitial-card-unified"),this.aR.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.fI.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Sl.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.NQ.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,a);g.z(this,this.actionButton);this.actionButton.Ab(this.T$); this.actionButton.init(R7("button"),g.t(F.actionButton,g.Wq),h);uG(this.actionButton.element);a=tj(this.actionButton.element);KD(this.actionButton.element,a+" This link opens in new tab");this.navigationEndpoint=F.navigationEndpoint;this.L.T(this.Sl,"click",this.Cn,this);this.L.T(this.aR,"click",this.Cn,this);!this.api.W().X("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.W().D||this.L.T(this.fI,"click",this.Cn,this);this.B=this.VS?new pP(this.api,R):new kr(R);g.z(this,this.B);if(F.skipButton){(R= g.t(F.skipButton,KBU))&&this.B&&(this.skipButton=new wf(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.B,this.zf),g.z(this,this.skipButton),this.skipButton.Ab(this.element),this.skipButton.init(R7("skip-button"),R,h));if(h=F.adBadgeRenderer)if(h=g.t(h,zaG))R=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0,!0),R.Ab(this.NQ),R.init(R7("simple-ad-badge"),h,this.macros),g.z(this,R);if(h=F.adInfoRenderer)if(h=g.t(h,C5))R=new KB(this.api,this.layoutId,this.interactionLoggingClientData, this.tb,this.element,void 0,!0),R.Ab(this.NQ),R.init(R7("ad-info-hover-text-button"),h,this.macros),g.z(this,R)}else F.nonskippableOverlayRenderer&&(R=g.t(F.nonskippableOverlayRenderer,cq))&&this.B&&(this.D=new Wx(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.B,!1),g.z(this,this.D),this.D.Ab(this.element),this.D.init(R7("ad-preview"),R,h));F.countdownRenderer&&(F=F.countdownRenderer,g.t(F,tP6)&&this.B&&(h=new o2n(this.api,this.layoutId,this.interactionLoggingClientData,this.tb, this.B),g.z(this,h),h.Ab(this.element),h.init(R7("timed-pie-countdown"),g.t(F,tP6),this.macros)));this.show();this.element.focus()}else g.y7(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.y7(Error("AdActionInterstitialRenderer has no button."));else g.y7(Error("AdActionInterstitialRenderer has no background AdImage."));else g.y7(Error("AdActionInterstitialRenderer has no description AdText."));else g.y7(Error("AdActionInterstitialRenderer has no headline AdText."));else g.y7(Error("AdActionInterstitialRenderer has no image."))}; g.Q.clear=function(){g.TP(this.L);this.hide()}; g.Q.show=function(){eRi(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.D&&this.D.show();GA.prototype.show.call(this)}; g.Q.hide=function(){eRi(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.D&&this.D.hide();GA.prototype.hide.call(this)}; g.Q.Cn=function(){this.navigationEndpoint&&(this.layoutId?this.tb.executeCommand(this.navigationEndpoint,this.layoutId):g.y7(Error("Missing layoutId for ad action interstitial.")))};var zRL={iconType:"CLOSE"},fk=new g.t7(320,63);g.A(PFi,GA);g.Q=PFi.prototype; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);this.L=F;this.C=g.Zt(this.L.onClickCommands||[]);this.NQ=this.L.onErrorCommand||null;if(R=this.L.contentSupportedRenderer)R=this.L.contentSupportedRenderer,F=this.L.adInfoRenderer||null,g.t(R,ulu)?(this.S=g.gs("ytp-ad-overlay-ad-info-button-container",this.K.element),K0L(this,F),R=lGm(this,g.t(R,ulu))):g.t(R,dJ6)?(this.S=g.gs("ytp-ad-overlay-ad-info-button-container",this.D.element),K0L(this,F),R=DVa(this,g.t(R,dJ6))):g.t(R,P_G)?(this.S= g.gs("ytp-ad-overlay-ad-info-button-container",this.B.element),K0L(this,F),R=Vga(this,g.t(R,P_G))):(g.y7(Error("InvideoOverlayAdRenderer content could not be initialized.")),R=!1);R&&(this.show(),UVg(this,!0))}; g.Q.clear=function(){UVg(this,!1);this.Sl.reset();this.aR=0;this.K.hide();this.logVisibility(this.K.element,!1);this.D.hide();this.logVisibility(this.D.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.hide();this.dispose()}; g.Q.oOu=function(){this.T$&&(this.layoutId?this.tb.executeCommand(this.T$,this.layoutId):g.y7(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.Q.bZ=function(){a:{if(this.L&&this.L.closeButton&&this.L.closeButton.buttonRenderer){var R=this.L.closeButton.buttonRenderer;if(R.serviceEndpoint){R=[R.serviceEndpoint];break a}}R=[]}R=g.N(R);for(var F=R.next();!F.done;F=R.next())F=F.value,this.layoutId?this.tb.executeCommand(F,this.layoutId):g.y7(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.Q.UQQ=function(){this.PG||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.Q.B2=function(){this.PG||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.B2("invideo-overlay")}; g.Q.AbI=function(R){R.target===this.S&&g.gs("ytp-ad-button",this.HG.element).click()};g.A(CFi,D6);g.Q=CFi.prototype;g.Q.init=function(R,F,h){D6.prototype.init.call(this,R,F,h);R=F.durationMs;this.K=R==null||R===0?0:R+this.B.getProgressState().current*1E3;if(F.text)var a=F.text.templatedAdText;else F.staticMessage&&(a=F.staticMessage);this.messageText.init(R7("ad-text"),a,h);this.messageText.Ab(this.D.element);this.L.show(100);this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){cZ2(this,!1);D6.prototype.hide.call(this);this.D.hide();this.messageText.hide();Uj(this)}; g.Q.show=function(){cZ2(this,!0);D6.prototype.show.call(this);V2(this);this.D.show();this.messageText.show()}; g.Q.P4=function(){this.hide()}; g.Q.tI=function(){if(this.B!=null){var R=this.B.getProgressState();R!=null&&R.current!=null&&(R=1E3*R.current,!this.aR&&R>=this.K?(this.L.hide(),this.aR=!0):this.messageText&&this.messageText.isTemplated()&&(R=Math.max(0,Math.ceil((this.K-R)/1E3)),R!==this.S&&(lQ(this.messageText,{TIME_REMAINING:String(R)}),this.S=R)))}};g.A(W0T,GA);g.Q=W0T.prototype; g.Q.init=function(R,F,h){GA.prototype.init.call(this,R,F,{});F.image&&F.image.thumbnail?F.headline?F.description?F.actionButton&&g.t(F.actionButton,g.Wq)?(this.K.init(R7("ad-image"),F.image,h),this.D.init(R7("ad-text"),F.headline,h),this.L.init(R7("ad-text"),F.description,h),this.actionButton=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-underlay-action-button"]),F.backgroundColor&&g.zL(this.element,"background-color",g.Sj(F.backgroundColor)),g.z(this,this.actionButton), this.actionButton.Ab(this.S),this.actionButton.init(R7("button"),g.t(F.actionButton,g.Wq),h),R=g.RI(this.api.W().experiments,"player_underlay_video_width_fraction"),this.api.W().X("place_shrunken_video_on_left_of_player")?(F=this.B,g.vs(F,"ytp-ad-underlay-left-container"),g.J$(F,"ytp-ad-underlay-right-container"),g.zL(this.B,"margin-left",Math.round((R+.02)*100)+"%")):(F=this.B,g.vs(F,"ytp-ad-underlay-right-container"),g.J$(F,"ytp-ad-underlay-left-container")),g.zL(this.B,"width",Math.round((1-R- .04)*100)+"%"),this.api.zH()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.KM.bind(this)),this.api.addEventListener("resize",this.iM.bind(this))):g.y7(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.y7(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.y7(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.y7(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.Q.show=function(){ROt(!0);this.actionButton&&this.actionButton.show();GA.prototype.show.call(this)}; g.Q.hide=function(){ROt(!1);this.actionButton&&this.actionButton.hide();GA.prototype.hide.call(this)}; g.Q.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.KM.bind(this));this.api.removeEventListener("resize",this.iM.bind(this));this.hide()}; g.Q.onClick=function(R){GA.prototype.onClick.call(this,R);this.actionButton&&g.$T(this.actionButton.element,R.target)&&this.api.pauseVideo()}; g.Q.KM=function(R){R==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):R==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):R==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))}; g.Q.iM=function(R){R.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):R.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.zL(this.D.element,"font-size",R.width/40+"px")};g.A(j0,GA); j0.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);F.toggledLoggingParams&&(this.toggledLoggingParams=F.toggledLoggingParams);F.answer&&g.t(F.answer,g.Wq)?(R=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),R.Ab(this.answer),R.init(R7("ytp-ad-survey-answer-button"),g.t(F.answer,g.Wq),h),R.show()):F.answer&&g.t(F.answer,ya)&&(this.B=new Xu(this.api,this.layoutId,this.interactionLoggingClientData,this.tb, ["ytp-ad-survey-answer-toggle-button"]),this.B.Ab(this.answer),g.z(this,this.B),this.B.init(R7("survey-answer-button"),g.t(F.answer,ya),h));this.show()}; j0.prototype.hv=function(R){this.layoutId?S7(this.tb,R,this.layoutId,this.macros):(R=new g.Pv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.y7(R))}; j0.prototype.onClick=function(R){GA.prototype.onClick.call(this,R);if(this.api.W().X("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; j0.prototype.clear=function(){this.hide()};g.A(F2h,GA);F2h.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);F.answer&&g.t(F.answer,ya)&&(this.button=new Xu(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ab(this.B),this.button.init(R7("survey-none-of-the-above-button"),g.t(F.answer,ya),h));this.show()};g.A(ZN,qF);ZN.prototype.init=function(R,F,h){qF.prototype.init.call(this,R,F,h);R=!1;F.text&&(F=g.iQ(F.text),R=!g.jP(F));R||g.qN(Error("No submit text was present in the renderer."))}; ZN.prototype.onClick=function(R){this.publish("l");qF.prototype.onClick.call(this,R)};g.A(bT,GA); bT.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);if(R=F.skipOrPreviewRenderer)g.t(R,Ni)?(R=g.t(R,Ni),h=new BM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.L,!0),h.Ab(this.skipOrPreview),h.init(R7("skip-button"),R,this.macros),g.z(this,h),this.B=h):g.t(R,cq)&&(R=g.t(R,cq),h=new Wx(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.L,!1),h.Ab(this.skipOrPreview),h.init(R7("ad-preview"),R,this.macros),h.aR.show(100),h.show(),g.z(this,h), this.B=h);this.B==null&&(R=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(F)),g.y7(R));F.submitButton&&(R=F.submitButton,g.t(R,g.Wq)&&(R=g.t(R,g.Wq),h=new ZN(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),h.Ab(this.submitButton),h.init(R7("survey-submit"),R,this.macros),g.z(this,h),this.D=h));if(R=F.adBadgeRenderer)R=g.t(R,zaG),h=new Yr(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0,!0,!0),h.Ab(this.K),h.init(R7("simple-ad-badge"), R,this.macros),this.adBadge=h.element,g.z(this,h);if(R=F.adDurationRemaining)R=g.t(R,XVt),h=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.L,void 0,!0),h.Ab(this.K),h.init(R7("ad-duration-remaining"),R,this.macros),g.z(this,h);(F=F.adInfoRenderer)&&g.t(F,C5)&&(R=new KB(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.element,void 0,!0),g.z(this,R),this.adBadge!==void 0?this.K.insertBefore(R.element,this.adBadge.nextSibling):R.Ab(this.K),R.init(R7("ad-info-hover-text-button"), g.t(F,C5),this.macros));this.show()}; bT.prototype.clear=function(){this.hide()};g.A(S0,GA);S0.prototype.init=function(R,F,h){GA.prototype.init.call(this,R,F,h);vL4(this)}; S0.prototype.show=function(){this.K=Date.now();GA.prototype.show.call(this)}; S0.prototype.t$=function(){};g.A(gLh,S0);g.Q=gLh.prototype;g.Q.init=function(R,F,h){var a=this;S0.prototype.init.call(this,R,F,h);F.questionText&&hOg(this,F.questionText);F.answers&&F.answers.forEach(function(J,M){g.t(J,La)&&aT7(a,g.t(J,La),h,M)}); this.S=new Set(this.D.map(function(J){return J.B.B})); (R=F.noneOfTheAbove)&&(R=g.t(R,nmk))&&GIu(this,R,h);F.surveyAdQuestionCommon&&MBv(this,F.surveyAdQuestionCommon);F.submitEndpoints&&(this.submitEndpoints=F.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; g.Q.t$=function(){ITg(this,!1);this.L.D.subscribe("l",this.udG,this)}; g.Q.onChange=function(R){R.target===this.noneOfTheAbove.button.B?i_e(this):this.S.has(R.target)&&(this.noneOfTheAbove.button.toggleButton(!1),ITg(this,!0))}; g.Q.udG=function(){var R=[],F=this.D.reduce(function(J,M,v){var I=M.toggledLoggingParams;M.B&&M.B.isToggled()&&I&&(J.push(I),R.push(v));return J},[]).join("&"),h=this.submitEndpoints.map(function(J){if(!J.loggingUrls)return J; J=g.pM(J);J.loggingUrls=J.loggingUrls.map(function(M){M.baseUrl&&(M.baseUrl=pT(M.baseUrl,F));return M}); return J}); if(h){h=g.N(h);for(var a=h.next();!a.done;a=h.next())a=a.value,this.layoutId?S7(this.tb,a,this.layoutId,this.macros):g.y7(Error("Missing layoutId for multi_select_question."))}this.api.W().X("supports_multi_step_on_desktop")&&this.aR(R)}; g.Q.clear=function(){this.api.W().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.A(OT,S0);OT.prototype.init=function(R,F,h){var a=this;S0.prototype.init.call(this,R,F,h);F.questionText&&hOg(this,F.questionText);F.answers&&F.answers.forEach(function(J,M){g.t(J,La)&&aT7(a,g.t(J,La),h,M)}); F.surveyAdQuestionCommon?MBv(this,F.surveyAdQuestionCommon):JY(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(F)));this.show()}; OT.prototype.clear=function(){this.api.W().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.A(ml,GA);ml.prototype.init=function(R,F,h){var a=this;GA.prototype.init.call(this,R,F,h);if(this.api.W().X("supports_multi_step_on_desktop")){var J;this.conditioningRules=(J=F.conditioningRules)!=null?J:[];var M;this.D=(M=F.questions)!=null?M:[];var v;((v=F.questions)==null?0:v.length)&&rf9(this,0)}else(F.questions||[]).forEach(function(I){g.t(I,Vu)?ELk(a,g.t(I,Vu),h):g.t(I,DA)&&BLh(a,g.t(I,DA),h)}); this.show()}; ml.prototype.clear=function(){this.api.W().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; ml.prototype.L=function(R){var F=this;if(this.api.W().X("supports_multi_step_on_desktop")){var h;if((h=this.conditioningRules)==null?0:h.length){var a;if(R.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(J){return J.questionIndex===F.B})==null)g.y7(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(J){if(J.questionIndex===F.B)switch(J.condition){case "CONDITION_ALL_OF":var M;if((M=J.answerIndices)==null?0:M.every(function(I){return R.includes(I)}))a=J.nextQuestionIndex; break;case "CONDITION_ANY_OF":var v;if((v=J.answerIndices)==null?0:v.some(function(I){return R.includes(I)}))a=J.nextQuestionIndex; break;default:g.y7(Error("Expected specified condition in survey conditioning rules."))}}),a!=null)rf9(this,a); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.y7(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.A(oY,GA); oY.prototype.init=function(R,F,h){var a=this;GA.prototype.init.call(this,R,F,h);R=F.timeoutSeconds||0;if(typeof R!=="number"||R<0)g.y7(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+R));else if(F.timeoutCommands)if(F.text)if(F.ctaButton&&g.t(F.ctaButton,g.Wq))if(F.brandImage)if(F.backgroundImage&&g.t(F.backgroundImage,RL)&&g.t(F.backgroundImage,RL).landscape){this.layoutId||g.y7(Error("Missing layoutId for survey interstitial."));Ymu(this.interstitial,g.t(F.backgroundImage, RL).landscape);Ymu(this.logoImage,F.brandImage);g.AR(this.text,g.iQ(F.text));var J=["ytp-ad-survey-interstitial-action-button"];J.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,J);g.z(this,this.actionButton);this.actionButton.Ab(this.D);this.actionButton.init(R7("button"),g.t(F.ctaButton,g.Wq),h);this.actionButton.show();this.B=new pP(this.api,R*1E3);this.B.subscribe("g",function(){a.transition.hide()}); g.z(this,this.B);this.T(this.element,"click",function(M){var v=M.target===a.interstitial;M=a.actionButton.element.contains(M.target);if(v||M)if(a.transition.hide(),v)a.api.onAdUxClicked(a.componentType,a.layoutId)}); this.transition.show(100)}else g.y7(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.y7(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.y7(Error("SurveyTextInterstitialRenderer has no button."));else g.y7(Error("SurveyTextInterstitialRenderer has no text."));else g.y7(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; oY.prototype.clear=function(){this.hide()}; oY.prototype.show=function(){sgv(!0);GA.prototype.show.call(this)}; oY.prototype.hide=function(){sgv(!1);GA.prototype.hide.call(this)};g.A(X0,D6);g.Q=X0.prototype; g.Q.init=function(R,F){D6.prototype.init.call(this,R,F,{});if(F.durationMilliseconds){if(F.durationMilliseconds<0){g.y7(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+F.durationMilliseconds));return}this.D=F.durationMilliseconds}else this.D=this.B.Jo();var h;if((h=F.previewText)==null||!h.text||g.jP(F.previewText.text))g.y7(Error("No text is returned for AdPreview."));else{this.S=F.previewText;F.previewText.isTemplated||g.AR(this.K,F.previewText.text);var a; if(((a=this.api.getVideoData(1))==null?0:a.n$)&&F.previewImage){var J,M;(R=((M=Be(((J=F.previewImage)==null?void 0:J.sources)||[],52,!1))==null?void 0:M.url)||"")&&R.length?(this.previewImage=new g.gY({G:"img",J:"ytp-preview-ad__image",j:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",R),g.z(this,this.previewImage),this.previewImage.Ab(this.element)):g.y7(Error("Failed to get imageUrl in AdPreview."))}else this.K.classList.add("ytp-preview-ad__text--padding--wide")}}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){Uj(this);D6.prototype.hide.call(this)}; g.Q.show=function(){V2(this);D6.prototype.show.call(this)}; g.Q.P4=function(){this.hide()}; g.Q.tI=function(){if(this.B){var R=this.B.getProgressState();if(R!=null&&R.current)if(R=1E3*R.current,R>=this.D)this.transition.hide();else{var F;if((F=this.S)==null?0:F.isTemplated)if(F=Math.max(0,Math.ceil((this.D-R)/1E3)),F!==this.L){var h,a;(R=(h=this.S)==null?void 0:(a=h.text)==null?void 0:a.replace("{TIME_REMAINING}",String(F)))&&g.AR(this.K,R);this.L=F}}}};g.A(e0,GA); e0.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});var h,a;if((R=((a=Be(((h=F.image)==null?void 0:h.sources)||[],pih(F),!0))==null?void 0:a.url)||"")&&R.length){h=this.mI("ytp-ad-avatar");h.src=R;var J,M;if(a=(J=F.interaction)==null?void 0:(M=J.accessibility)==null?void 0:M.label)h.alt=a;switch(F.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(F.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.y7(Error("Failed to get imageUrl in AdAvatar."))}; e0.prototype.clear=function(){this.hide()}; e0.prototype.onClick=function(R){GA.prototype.onClick.call(this,R)};g.A(nk,GA); nk.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});var h;R=(h=F.label)==null?void 0:h.content;if((h=R!=null&&!g.jP(R))||F.iconImage){h&&(this.buttonText=new g.gY({G:"span",J:"ytp-ad-button-vm__text",Dn:R}),g.z(this,this.buttonText),this.buttonText.Ab(this.element));var a,J,M=((a=F.interaction)==null?0:(J=a.accessibility)==null?0:J.label)||h?R:"";M&&KD(this.element,M+" This link opens in new tab");uG(this.element);if(F.iconImage){a=void 0;if(F.iconImage){a:{J=F.iconImage;if(J.sources)for(J= g.N(J.sources),R=J.next();!R.done;R=J.next())if(R=R.value,M=void 0,(M=R.clientResource)==null?0:M.imageName){J=R;break a}J=void 0}if(J){var v;a={iconType:(v=J.clientResource)==null?void 0:v.imageName}}}v=y2(a,!1,this.D);v!=null&&(this.buttonIcon=new g.gY({G:"span",J:"ytp-ad-button-vm__icon",V:[v]}),g.z(this,this.buttonIcon),F.iconLeading?(kT(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):h?(this.buttonIcon.Ab(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.Ab(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(F.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.X("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.B?"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(F.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.qN(Error("AdButton does not have label or an icon."))}; nk.prototype.clear=function(){this.hide()}; nk.prototype.onClick=function(R){GA.prototype.onClick.call(this,R)};g.A(kIg,D6);g.Q=kIg.prototype; g.Q.init=function(R,F){D6.prototype.init.call(this,R,F,{});this.api.W().X("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.mI("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),kT(this.mI("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(R=g.t(F.avatar,Vr)){var h=F.headline;if(h){var a=F.description;if(a){var J=g.t(F.button,Ck);J?(this.adAvatar.init(R7("ad-avatar"),R),this.headline.init(R7("ad-simple-attributed-string"),new Nv(h)),this.description.init(R7("ad-simple-attributed-string"),new Nv(a)),h.content&&h.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(R7("ad-button"),J),this.startMilliseconds=F.startMs||0,this.api.zH()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.mR.bind(this)),V2(this)):g.y7(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.y7(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.y7(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.y7(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.Q.tI=function(){if(this.B){var R=this.B.getProgressState();R&&R.current&&1E3*R.current>=this.startMilliseconds&&(Uj(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.Q.P4=function(){this.clear()}; g.Q.onClick=function(R){this.api.pauseVideo();D6.prototype.onClick.call(this,R)}; g.Q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.mR.bind(this))}; g.Q.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();D6.prototype.show.call(this)}; g.Q.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();D6.prototype.hide.call(this)}; g.Q.mR=function(R){R==="hidden"?this.show():this.hide()};g.A(uT,GA);g.Q=uT.prototype; g.Q.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(!F.label||g.jP(F.label))g.y7(Error("No label is returned for SkipAdButton."));else if(g.AR(this.L,F.label),R=y2({iconType:"SKIP_NEXT_NEW"}),R==null)g.y7(Error("Unable to retrieve icon for SkipAdButton"));else if(this.K=new g.gY({G:"span",J:"ytp-skip-ad-button__icon",V:[R]}),g.z(this,this.K),this.K.Ab(this.element),this.api.W().experiments.jl("enable_skip_to_next_messaging")&&(F=g.Z$(F.targetId)))this.D=!0,this.element.setAttribute("data-tooltip-target-id",F), this.element.setAttribute("data-tooltip-target-fixed","")}; g.Q.onClick=function(R){R&&R.preventDefault();var F,h;adT(R,{contentCpn:(h=(F=this.api.getVideoData(1))==null?void 0:F.clientPlaybackNonce)!=null?h:""})===0?this.api.WG("onAbnormalityDetected"):(GA.prototype.onClick.call(this,R),this.api.WG("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.Q.clear=function(){this.B.reset();this.hide()}; g.Q.hide=function(){GA.prototype.hide.call(this)}; g.Q.show=function(){this.B.start();GA.prototype.show.call(this);this.D&&this.api.W().experiments.jl("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.A(Qg4,D6);g.Q=Qg4.prototype; g.Q.init=function(R,F){D6.prototype.init.call(this,R,F,{});R=g.t(F.preskipState,WBL);var h;if((h=this.api.getVideoData())==null?0:h.isDaiEnabled()){if(!R){g.y7(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.D=new X0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.B);g.z(this,this.D);this.D.Ab(this.element);var a;(a=this.D)==null||a.init(R7("preview-ad"),R);(h=this.D)!=null&&(h.transition.show(100),h.show())}(h=g.t(F.skippableState,F3e))?(F.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=F.skipOffsetMilliseconds:(g.qN(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.K.init(R7("skip-button"),h),this.show()):g.y7(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.Q.show=function(){V2(this);D6.prototype.show.call(this)}; g.Q.hide=function(){!this.isSkippable&&this.D?this.D.hide():this.K&&this.K.hide();Uj(this);D6.prototype.hide.call(this)}; g.Q.clear=function(){var R;(R=this.D)==null||R.clear();this.K&&this.K.clear();Uj(this);D6.prototype.hide.call(this)}; g.Q.P4=function(){this.hide()}; g.Q.tI=function(){if(1E3*this.B.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var R;(R=this.D)!=null&&R.transition.hide();(R=this.K)!=null&&(R.transition.show(),R.show())}};g.A(dg,GA); dg.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(F.label){var h;((h=F.label)==null?0:h.content)&&!g.jP(F.label.content)&&(this.linkText=new g.gY({G:"span",J:"ytp-visit-advertiser-link__text",Dn:F.label.content}),g.z(this,this.linkText),this.linkText.Ab(this.element));var a,J;if((a=F.interaction)==null?0:(J=a.accessibility)==null?0:J.label)KD(this.element,F.interaction.accessibility.label+" This link opens in new tab");else{var M;((M=F.label)==null?0:M.content)&&!g.jP(F.label.content)&&KD(this.element, F.label.content+" This link opens in new tab")}uG(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.y7(Error("No label found in VisitAdvertiserLink."))}; dg.prototype.onClick=function(R){GA.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType,this.layoutId)}; dg.prototype.clear=function(){this.hide()};g.A(PF,GA); PF.prototype.init=function(R,F,h,a){GA.prototype.init.call(this,R,F,{});if(F.skipOrPreview){h=F.skipOrPreview;R=g.t(h,hA4);h=g.t(h,WBL);if(R)this.JO=new Qg4(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D),g.z(this,this.JO),this.JO.Ab(this.C),this.JO.init(R7("skip-ad"),R);else{var J;h&&((J=this.api.getVideoData())==null?0:J.isDaiEnabled())&&(this.L=new X0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D,1),g.z(this,this.L),this.L.Ab(this.C),this.L.init(R7("ad-preview"), h),J=this.L,J.transition.show(100),J.show())}if(J=g.t(F.skipOrPreview,hA4))var M=J.skipOffsetMilliseconds}F.playerAdCard&&(J=g.t(F.playerAdCard,RA4))&&(this.playerAdCard=new kIg(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D),g.z(this,this.playerAdCard),this.playerAdCard.Ab(this.fI),this.playerAdCard.init(R7("ad-avatar-lockup-card"),J));F.adBadgeRenderer&&((J=g.t(F.adBadgeRenderer,UT))?(this.K=new LP(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0),g.z(this, this.K),this.K.Ab(this.B),this.K.init(R7("ad-badge"),J)):g.y7(Error("AdBadgeViewModel is not found in player overlay layout.")));F.adPodIndex&&(J=g.t(F.adPodIndex,VP6))&&(this.adPodIndex=new T2(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.adPodIndex),this.adPodIndex.Ab(this.B),this.adPodIndex.init(R7("ad-pod-index"),J));F.adInfoRenderer&&((J=g.t(F.adInfoRenderer,C5))?(this.adInfoButton=new KB(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.element, void 0,!0),g.z(this,this.adInfoButton),this.K!==void 0?this.B.insertBefore(this.adInfoButton.element,this.K.element.nextSibling):this.adInfoButton.Ab(this.B),this.adInfoButton.init(R7("ad-info-hover-text-button"),J,this.macros)):g.qN(Error("AdInfoRenderer is not found in player overlay layout.")));var v;J=(v=this.api.getVideoData())==null?void 0:v.isDaiEnabled();F.adDurationRemaining&&J&&(v=g.t(F.adDurationRemaining,XVt))&&(this.adDurationRemaining=new AF(this.api,this.layoutId,this.interactionLoggingClientData, this.tb,this.D,a.videoAdDurationSeconds,!0),g.z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.B.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.Ab(this.B),this.adDurationRemaining.init(R7("ad-duration-remaining"),v,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));F.visitAdvertiserLink&&(a=g.t(F.visitAdvertiserLink,J74))&&(this.visitAdvertiserLink=new dg(this.api,this.layoutId, this.interactionLoggingClientData,this.tb),g.z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ab(this.B),this.visitAdvertiserLink.init(R7("visit-advertiser-link"),a));F.adDisclosureBanner&&(F=g.t(F.adDisclosureBanner,DJv))&&(this.adDisclosureBanner=new y6(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.adDisclosureBanner),this.adDisclosureBanner.Ab(this.aR),this.adDisclosureBanner.init(R7("ad-disclosure-banner"),F));this.S=new jj(this.api,this.D,M,!0);g.z(this, this.S);g.Pn(this.api,this.S.element,4);this.show()}; PF.prototype.clear=function(){this.hide()};g.A($a7,GA);g.Q=$a7.prototype; g.Q.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(F!=null&&F.title)if(R=F.title)if(this.headline.init(R7("ad-simple-attributed-string"),new Nv(R)),R=g.t(F.moreInfoButton,Ck)){if(this.moreInfoButton.init(R7("ad-button"),R),F.descriptions)F.descriptions.length>0&&(R=F.descriptions[0])&&(this.B=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.B),this.B.Ab(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.B.init(R7("ad-simple-attributed-string"), new Nv(R))),F.descriptions.length>1&&(F=F.descriptions[1])&&(this.D=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.D),this.D.Ab(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.D.init(R7("ad-simple-attributed-string"),new Nv(F)))}else g.y7(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.y7(Error("No headline found in AdGridCardText."));else g.y7(Error("No headline found in AdGridCardText."))}; g.Q.onClick=function(R){GA.prototype.onClick.call(this,R);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Q.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var R;(R=this.B)==null||R.clear();var F;(F=this.D)==null||F.clear()}; g.Q.hide=function(){this.headline.hide();this.moreInfoButton.hide();var R;(R=this.B)==null||R.hide();var F;(F=this.D)==null||F.hide();GA.prototype.hide.call(this)}; g.Q.show=function(){GA.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var R;(R=this.B)==null||R.show();var F;(F=this.D)==null||F.show()};g.A(zG,GA);zG.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(F!=null&&F.gridCards)if(F.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.y7(Error("Only single column style is currently supported in AdGridCardCollection."));else for(R=g.N(F.gridCards),F=R.next();!F.done;F=R.next()){if(F=g.t(F.value,cXu)){var h=new $a7(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,h);h.Ab(this.element);h.init(R7("ad-grid-card-text"),F);this.B.push(h)}}else g.y7(Error("No grid cards found in AdGridCardCollection."))}; zG.prototype.show=function(){for(var R=g.N(this.B),F=R.next();!F.done;F=R.next())F.value.show();GA.prototype.show.call(this)}; zG.prototype.clear=function(){this.hide();for(var R=g.N(this.B),F=R.next();!F.done;F=R.next())F.value.clear()}; zG.prototype.hide=function(){for(var R=g.N(this.B),F=R.next();!F.done;F=R.next())F.value.hide();GA.prototype.hide.call(this)};g.A(Kk,D6);g.Q=Kk.prototype;g.Q.init=function(R,F,h,a,J){J=J===void 0?0:J;D6.prototype.init.call(this,R,F,h,a);this.playerProgressOffsetMs=J;V2(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.J1.bind(this));this.api.addEventListener("resize",this.LM.bind(this));this.api.zH()?(this.D=!0,this.api.g5(!0),this.show()):this.hide()}; g.Q.tI=function(){if(this.B){var R=this.B.getProgressState();R&&R.current&&!this.D&&1E3*R.current>=this.playerProgressOffsetMs&&(this.D=!0,this.api.g5(!0),this.show())}}; g.Q.P4=function(){this.D&&this.api.g5(!1);this.hide()}; g.Q.clear=function(){this.api.g5(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.J1.bind(this));this.api.removeEventListener("resize",this.LM.bind(this));Uj(this);this.hide()}; g.Q.hide=function(){Af4(!1);D6.prototype.hide.call(this)}; g.Q.show=function(){Af4(!0);D6.prototype.show.call(this)};g.A(xaG,Kk);g.Q=xaG.prototype; g.Q.init=function(R,F,h,a){if(F!=null&&F.adGridCardCollection)if(F!=null&&F.adButton){var J=Number(F.playerProgressOffsetMs||"0");isNaN(J)?Kk.prototype.init.call(this,R,F,h,a):Kk.prototype.init.call(this,R,F,h,a,J);R=F.headline;h=g.t(F.adAvatar,Vr);R&&h?(this.headline=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.headline),this.headline.Ab(this.mI("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(R7("ad-simple-attributed-string"),new Nv(R)), this.adAvatar=new e0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.adAvatar),this.adAvatar.Ab(this.mI("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(R7("ad-avatar"),h)):this.L.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");R=g.t(F.adGridCardCollection,C_t);this.adGridCardCollection.init(R7("ad-grid-card-collection"),R);F=g.t(F.adButton,Ck);this.adButton.init(R7("ad-button"),F); this.hide()}else g.y7(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.y7(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.Q.onClick=function(R){(this.adButton&&g.$T(this.adButton.element,R.target)||this.adAvatar&&g.$T(this.adAvatar.element,R.target))&&this.api.pauseVideo();Kk.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.Q.LM=function(){}; g.Q.clear=function(){this.hide();var R;(R=this.headline)==null||R.clear();var F;(F=this.adAvatar)==null||F.clear();this.adGridCardCollection.clear();this.adButton.clear();Kk.prototype.clear.call(this)}; g.Q.show=function(){var R;(R=this.headline)==null||R.show();var F;(F=this.adAvatar)==null||F.show();this.adGridCardCollection.show();this.adButton.show();Kk.prototype.show.call(this)}; g.Q.hide=function(){var R;(R=this.headline)==null||R.hide();var F;(F=this.adAvatar)==null||F.hide();this.adGridCardCollection.hide();this.adButton.hide();Kk.prototype.hide.call(this)}; g.Q.J1=function(R){R==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):R==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):R==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))};g.A(tm,GA); tm.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(F.attributes===void 0)g.y7(Error("No attributes found in AdDetailsLineViewModel."));else if(F.style===void 0)g.y7(Error("No style found in AdDetailsLineViewModel."));else{R=g.N(F.attributes);for(var h=R.next();!h.done;h=R.next())if(h=h.value,h.text!==void 0){h=h.text;var a=F.style,J=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,J);J.Ab(this.element);a:switch(a){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":a="ytp-ad-details-line__text--style-responsive"; break a;default:a="ytp-ad-details-line__text--style-standard"}J.element.classList.add(a);J.init(R7("ad-simple-attributed-string"),new Nv(h));this.B.push(J)}this.show()}}; tm.prototype.show=function(){this.B.forEach(function(R){R.show()}); GA.prototype.show.call(this)}; tm.prototype.clear=function(){this.hide()}; tm.prototype.hide=function(){this.B.forEach(function(R){R.hide()}); GA.prototype.hide.call(this)};g.A(lT,GA);lT.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});var h,a;(R=((a=Be(((h=F.image)==null?void 0:h.sources)||[]))==null?void 0:a.url)||"")&&R.length?(h=this.mI("ytp-image-background-image"),g.zL(h,"backgroundImage","url("+R+")"),F.blurLevel!==void 0&&g.zL(h,"filter","blur("+F.blurLevel+"px)"),F.gradient!==void 0&&(F=new g.D({G:"div",sz:["ytp-image-background--gradient-vertical"]}),g.z(this,F),F.Ab(this.element)),this.show()):g.y7(Error("Failed to get imageUrl in ImageBackground."))}; lT.prototype.clear=function(){this.hide()};g.A(NLg,D6);g.Q=NLg.prototype;g.Q.init=function(R,F){D6.prototype.init.call(this,R,F,{});g.zL(this.K,"stroke-dasharray","0 "+this.D);this.show()}; g.Q.clear=function(){this.hide()}; g.Q.hide=function(){Uj(this);D6.prototype.hide.call(this)}; g.Q.show=function(){V2(this);D6.prototype.show.call(this)}; g.Q.P4=function(){this.hide()}; g.Q.tI=function(){if(this.B){var R=this.B.getProgressState();R!=null&&R.current!=null&&g.zL(this.K,"stroke-dasharray",R.current/R.seekableEnd*this.D+" "+this.D)}};g.A(DN,GA); DN.prototype.init=function(R,F){GA.prototype.init.call(this,R,F,{});if(L2U(F)){this.adAvatar=new e0(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.adAvatar);this.adAvatar.Ab(this.mI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(R7("ad-avatar"),g.t(F.adAvatar,Vr));this.headline=new HM(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.z(this,this.headline);this.headline.Ab(this.mI("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(R7("ad-simple-attributed-string"),new Nv(F.headline));if(R=g.t(F.adDetailsLine,l77))this.detailsLine=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.detailsLine),this.detailsLine.Ab(this.mI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(R7("ad-details-line"),R);this.adButton=new nk(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0);g.z(this,this.adButton); this.adButton.Ab(this.mI("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(R7("ad-button"),g.t(F.adButton,Ck));this.adBadge=new LP(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0);g.z(this,this.adBadge);this.adBadge.Ab(this.L);this.adBadge.init(R7("ad-badge"),g.t(F.adBadge,UT));this.adInfoButton=new KB(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.element,void 0,!0);g.z(this,this.adInfoButton);this.adInfoButton.Ab(this.L); this.adInfoButton.init(R7("ad-info-hover-text-button"),g.t(F.adInfoRenderer,C5),this.macros);if(R=g.t(F.skipAdButton,F3e))this.skipAdButton=new uT(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.skipAdButton),this.skipAdButton.Ab(this.element),this.skipAdButton.init(R7("skip-button"),R);this.D=new kr(F.durationMilliseconds);g.z(this,this.D);if(R=g.t(F.countdownViewModel,a$4))this.B=new NLg(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.D),g.z(this, this.B),this.B.Ab(this.mI("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.B.init(R7("timed-pie-countdown"),R);if(F=g.t(F.imageBackground,UJ4))this.imageBackground=new lT(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.z(this,this.imageBackground),this.imageBackground.Ab(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(R7("image-background"), F);this.show();this.element.focus()}}; DN.prototype.clear=function(){g.TP(this.K);this.hide()}; DN.prototype.show=function(){H_6(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();GA.prototype.show.call(this)}; DN.prototype.hide=function(){H_6(!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.B&&this.B.hide();this.imageBackground&&this.imageBackground.hide();GA.prototype.hide.call(this)};g.A(cF,g.h0);g.Q=cF.prototype;g.Q.Jo=function(){return 1E3*this.api.getDuration(this.r0,!1)}; g.Q.stop=function(){this.B&&this.nV.Ap(this.B)}; g.Q.Na=function(){var R=this.api.getProgressState(this.r0);this.D={seekableStart:R.seekableStart,seekableEnd:R.seekableEnd,current:this.api.getCurrentTime(this.r0,!1)};this.publish("h")}; g.Q.getProgressState=function(){return this.D}; g.Q.gs=function(R){g.i5(R,2)&&this.publish("g")};var qQL="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.A(WF,nB); WF.prototype.K=function(R){var F=R.id,h=R.content,a=h.componentType;if(!qQL.includes(a))switch(R.actionType){case 1:R=this.api;var J=this.tb,M=h.layoutId,v=h.interactionLoggingClientData,I=h instanceof mQ?h.VS:!1,w=h instanceof mQ||h instanceof sx?h.zf:!1;v=v===void 0?{}:v;I=I===void 0?!1:I;w=w===void 0?!1:w;switch(a){case "invideo-overlay":R=new PFi(R,M,v,J);break;case "player-overlay":R=new ZJ(R,M,v,J,new cF(R),w);break;case "player-overlay-layout":R=new PF(R,M,v,J,new cF(R));break;case "survey":R= new ml(R,M,v,J);break;case "ad-action-interstitial":R=new XtB(R,M,v,J,I,w);break;case "video-interstitial-buttoned-centered":R=new DN(R,M,v,J);break;case "survey-interstitial":R=new oY(R,M,v,J);break;case "ad-message":R=new CFi(R,M,v,J,new cF(R,1));break;case "player-underlay":R=new W0T(R,M,v,J);break;case "display-underlay-text-grid-cards":R=new xaG(R,M,v,J,new cF(R));break;default:R=null}if(!R){g.qN(Error("No UI component returned from ComponentFactory for type: "+a));break}g.i_(this.components, F)?g.qN(Error("Ad UI component already registered: "+F)):this.components[F]=R;R.bind(h);h instanceof Se?this.D?this.D.append(R.GB):g.qN(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(R.GB);break;case 2:F=TLv(this,R);if(F==null)break;F.bind(h);break;case 3:h=TLv(this,R),h!=null&&(g.Fm(h),g.i_(this.components,F)?(h=this.components,F in h&&delete h[F]):g.qN(Error("Ad UI component does not exist: "+F)))}}; WF.prototype.Ez=function(){g.hT(Object.values(this.components));this.components={};nB.prototype.Ez.call(this)};g.A(yfg,g.Hb);g.Q=yfg.prototype;g.Q.create=function(){try{qmL(this),this.load(),this.created=!0,qmL(this)}catch(R){gf(R instanceof Error?R:String(R))}}; g.Q.load=function(){try{Z_u(this)}finally{hm(yr(this.B).LS)&&this.player.ag("ad",1)}}; g.Q.destroy=function(){var R=this.player.getVideoData(1);this.B.B.vK.Mn(R&&R.clientPlaybackNonce||"");this.unload();this.created=!1}; g.Q.unload=function(){g.Hb.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(F){gf(F instanceof Error?F:String(F))}if(this.D!=null){var R=this.D;this.D=null;R.dispose()}this.K.reset()}; g.Q.t5=function(){return!1}; g.Q.getAdState=function(){return-1}; g.Q.getOptions=function(){return Object.values(ytk)}; g.Q.eq=function(R,F){F=F===void 0?{}:F;switch(R){case "replaceUrlMacros":return R=F,R.url?(F=Ucf(this.player),Object.assign(F,R.Rnb),R=g.fD(R.url,F)):R=null,R;case "onAboutThisAdPopupClosed":this.fP(F);break;case "executeCommand":R=F;R.command&&R.layoutId&&this.executeCommand(R);break;default:return null}}; g.Q.rB=function(R){var F;return!((F=this.B.B.Iz)==null||!F.get().rB(R))}; g.Q.fP=function(R){R.isMuted&<I(yr(this.B).hI,yr(this.B).C7,R.layoutId);this.Wn&&this.Wn.fP()}; g.Q.executeCommand=function(R){yr(this.B).tb.executeCommand(R.command,R.layoutId)};g.Fk("yt.player.Application.create",g.Ae.create);g.Fk("yt.player.Application.createAlternate",g.Ae.create);o$B(NN(),TC7);var fhh=g.hG("ytcsi.tick");fhh&&fhh("pe");g.NO("ad",yfg);g.A(g.hr,g.d);g.hr.prototype.start=function(R,F,h){this.config={from:R,to:F,duration:h,startTime:(0,g.NU)()};this.next()}; g.hr.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.hr.prototype.next=function(){if(this.config){var R=this.config,F=R.from,h=R.to,a=R.duration;R=R.startTime;var J=(0,g.NU)()-R;R=this.B;a=Kzg(R,J/a);if(a==0)R=R.Y;else if(a==1)R=R.Z;else{J=PZ(R.Y,R.N,a);var M=PZ(R.N,R.S,a);R=PZ(R.S,R.Z,a);J=PZ(J,M,a);M=PZ(M,R,a);R=PZ(J,M,a)}R=g.uu(R,0,1);this.callback(F+(h-F)*R);R<1&&this.delay.start()}};g.A(g.aW,g.D);g.Q=g.aW.prototype;g.Q.hasSuggestions=function(){return this.suggestionData.length>0}; g.Q.Yg=function(){this.D&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.Q.show=function(){g.D.prototype.show.call(this);XiG(this)}; g.Q.ws=function(){this.D&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.Q.cK=function(){this.ew(this.api.xo().getPlayerSize())}; g.Q.ew=function(R){var F=this.api.isEmbedsShortsMode()?.5625:16/9,h=this.api.AG();R=R.width-(h?112:58);h=Math.ceil(R/(h?320:192));var a=(R-h*8)/h;F=Math.floor(a/F);for(var J=g.N(this.B),M=J.next();!M.done;M=J.next())M=M.value.mI("ytp-suggestion-image"),M.style.width=a+"px",M.style.height=F+"px";this.suggestions.element.style.height=F+"px";this.L=a;this.Z=F;this.containerWidth=R;this.columns=h;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Jr(this)}; g.Q.onVideoDataChange=function(){var R=this.api.W(),F=this.api.getVideoData();this.S=F.bq?!1:R.L;this.suggestionData=F.suggestions?g.TR(F.suggestions,function(h){return h&&!h.playlistId}):[]; nLG(this);F.bq?this.title.update({title:g.JE("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:F.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.Q.scrollTo=function(R){R=g.uu(R,this.containerWidth-this.suggestionData.length*(this.L+8),0);this.Y.start(this.scrollPosition,R,1E3);this.scrollPosition=R;g.Jr(this);XiG(this)};})(_yt_player);