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). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var N="unshift{prototype{1{file{/{split{url{path{cmo=td{n{set{forEach{http://local{slice{Y{call{?{length{indexOf{/api/manifest{scheme{={{splice{sp{---{G{1969-12-31T13:30:02.000-10:30{join{startsWith{youtube.player.web_20251109_22_RC00{U{clone{,{push{/videoplayback{S{a1.googlevideo.com{local{get{1969-12-31T17:00:55.000-07:00{cmo=pf{/file/index.m3u8{mn{playerfallback{rr{Hg{1970-01-01T04:00:50.000+04:00{toString{pop{assign{Untrusted URL{QF{debugger{/initplayback{1970-01-01T02:31:39.000+02:15{W3{www.youtube.com{AbBvlsPnL88sZ8BzuD-_w8_{1970-01-01T01:15:45.000+01:15{%3D{match{\\.a1\\.googlevideo\\.com${redirector.googlevideo.com{:{fromCharCode{undefined{cmo={1969-12-31T22:45:01.000-01:15{fvip{rR{rr?[1-9].*\\.c\\.youtube\\.com${://{reverse{LO{\\.googlevideo\\.com${1970-01-01T03:30:08.000+03:30{signatureCipher{&{//{K4{fallback_count{['/;{D{replace{pow{cmo{s{index.m3u8{AX{https://local{r".split("{"), td,D52,Ko,ai,Vs,Tp,Em,M5,hd,Fn,no,rR,EWs,Om,po,ydp,m5s,nWW,bon,kW,e9o,u1,j2,M_,hh,R9o,I_m,aa,FC,gWo,Vh,vW_,Zt,d5m,U8,rdR,cZ,fG,io9,nG,bW,C1s,Ooi,psR,O8,Ad2,Ymi,YB,l_s,Jdp,Jh,WHH,Gpp,Nu,z9n,Kf,kp5,un2,Lf,ji2,D_m,XZ1,Mb2,Zd,ff,Qa1,hrW,EK,bb,HGo,ib,oM,Cf,OK,Ay,YR,q8i,lb,Jy,xR,wZi,Ln5,zC,sad,jf,Xo,NL,qL,wA,TD,Kno,ato,Lr,Kr,so,Fns,Vbn,$_9,BKi,U_1,Fo,Vm,$Z,BH,Zc,fr,SX,EBi,ym,mv,nr,b7,eX,I6,gA,yhd,vH,dA,i7,m_d,nBi,bGi,o6,Oo,pr,YZ,l7,xZ,WH,iGs,oBR,CWd,OG1,GD,pZm,zD,kZ,u7,Ahs,jX,Y8W,JhR,QZ,HD,qt,TK,LR,Gyo, Wnm,Dun,uCH,FT,$f,fR,htd,tf5,Hf1,EY,PD,NS9,yZ,Iu,au,rP,qKm,ou,iv,KR,wiW,OY,An,pR,TSm,lv,LWW,xf,WD,GK,zK,kf,uv,jq,Xt,MC,NC,qC,KW2,L7,ad_,Vfd,FWs,$un,wH,BS_,$z,Bq,ZF,Uun,UO,cys,fdp,f7,SKi,mui,SE,Pb2,ERH,EO,bf1,y_,Pq,etW,mh,Rtn,n7,gRp,IdW,vRm,Ix,ifi,du1,oRo,gH,vq,Cbo,Ofo,pis,dH,rH,Ays,xu5,ie,WWR,GCW,DLp,p7,jMn,zt1,MXH,Hrs,Yz,Jw,zN,xz,tX2,kz,ue,jE,Mv,Q9,hj,tj,s6W,Nv,Kv1,w$,sH,VXW,$l,Z4,cK,fg,EH,UH,$Li,Ss,y9,BK,PK,mf,BA2,ng,es,ULW,Re,Ie,g$,SoH,OH,EZs,Cg,oe,vK,c42,fco,y4W,mLW,nZn,br9,Yl,l_,Jj,e3R,GG,kl, u_,js,R3p,gZR,X$,vZ9,hx,Q2,C79,Hl,tx,Or1,A41,lcR,wT,Nx,J4R,TF,LQ,s1,qx,aG,KQ,V2,F$,cl,xLo,$Q,ZK,fQ,WvR,mS,GDp,nQ,bY,gT,vl,dT,eF,IG,RG,iY,z3o,oG,CQ,O1,uos,pQ,j61,Ax,U1,YQ,Jx,XD5,xQ,Wl,zF,kQ,uY,jF,DX,Xm,sU,K1,Fm,aq,V0,$X,Bh,ZX,UU,ch,Mq9,hyd,SZ,HRR,tqo,NPW,y0,Ph,bg,wD5,TP2,L7d,Rq,K75,Iq,F75,gQ,vh,dQ,Vq9,rQ,$t9,ig,BPH,ZR1,oq,Ut9,C1,OU,p1,cnW,YX,lg,SYm,Wh,Pv9,fjn,GX,kX,ug,bRm,mt1,DO,Mg,eys,Ijd,gfs,QK,hT,HR,tT,Ng,qg,wi,rnm,iRs,ofH,OR2,Ans,YYR,ljn,LJ,sS,JnH,KJ,xt9,W72,uTd,Fa,juH,DCn,XqW,MEm,Qx9,$c,hU5,ZO, tE1,fJ,Sj,qO5,ES,yK,PR,wq1,TH_,bF,ej,I5,gi,sxR,KhW,aFp,CJ,o5,iF,Fh5,VEW,$Cd,OS,pJ,AT,Z72,WR,GE,cws,fF5,SOW,zE,kc,Ezd,ywH,uF,Pe9,mC5,nzp,b75,Mo,DL,Q$,hL,HW,eU2,RUd,IFm,tL,No,gz9,qo,vz1,dCi,rwi,Tk,i7i,Lp,sX,oz9,Ce2,O7_,pqo,Aw2,YO1,F0,V$,$G,ZL,xC1,UX,cW,Whs,Jw5,BW,GNn,fp,Si,EX,PW,y$,zUn,kNs,utW,mr,Dvd,np,Msi,Qe5,hM5,Hgs,ts9,N$m,qH_,wKs,Rm,Im,gy,Lf1,T$p,se_,Kf9,dy,a4s,ry,Ffi,Vsi,iG,om,Cp,$v_,OX,pp,B$1,AL,YG,lG,JL,xG,WW,Gk,zk,Zg9,UvW,cj1,f4W,kG,SH5,yjs,Eld,ji,DT,mvs,P_d,eMR,gln,I4H,X8,vlR,dv5,rjs,olm, igo,C__,Mb,OgW,pKR,h2,Aj9,YH5,l4s,JjW,HS,xv2,t2,WfH,Nb,qb,zMW,wg,kGn,Te,LP,uBd,je1,s$,ac,Xlm,F8,DxH,MF1,QGs,hTH,tF1,VH,NTo,ZT,U$,wl9,TTR,KS_,aK2,cS,fP,Sn,nP,b0,en,Rc,Ic,gg,vS,dg,rg,i0,BTo,$xn,ZQo,cx9,Uxs,S19,VFH,fK5,FSW,oc,CP,yxn,PY2,mxs,Yq,l0,J2,O$,bQ5,xq,EQ9,RTn,IKW,eTn,WS,Ge,ze,kq,gQm,nQm,vQi,u0,dx5,rxW,iQW,oQW,CYd,Ax2,Y12,lKR,Jxp,jn,Di,xxs,WSi,kFm,u$R,Xg,QE,Dh1,h7,MN,MZ_,XhH,Qq9,h89,H1i,t7,NN,tZ9,NQd,qU1,wh2,TQ9,Lyd,sq2,KyR,aXi,Fyn,w4,TV,Lm,Km,a3,Fg,VZd,Z1s,Uhs,cK9,SUi,fXW,EXn,BL,Zi,yKi,Pg1,mhm, Us,cL,fm,Sw,Es,PL,mp,nXi,b$,e8m,R3,R8i,IX_,I3,g4,vL,r4,d4,gX2,dhs,i$,TE,pDs,A7,rKR,i1d,Yd,oXn,pm,O1d,Cgo,Os,l$,J7,pho,AKR,YUs,lXR,xd,JKs,WL,BQm,$hn,GV,zV,jw,Du,GX2,X2,Mm,hi,z8W,kXs,HP,Mjs,TW,jqs,XRH,qm,Nm,a7,F2,Q5R,BP,hA5,Zu,Uy,HJs,NiH,wR9,PP,ns,KJ1,aO_,FJm,bt,ZJ5,Ey,LJ9,cTW,BiR,Vjo,$gi,fOW,UgW,R7,vP,Ec9,yTW,PFn,mgn,ncs,r3,bJs,Cs,eAs,gco,vcH,Oy,rTs,oc2,iJi,CFs,Ai,Ji,zW,ut,jI,Dw,Xv,M6,ATs,YSp,lO9,Qx,hp,k1,Hg,tp,N6,HL,q6,JT1,TO,GEW,LY,sh,kEd,zAW,ua2,j55,DoW,KY,XWs,Mi5,Qm9,a_,Fv,Hpd,qXH,wWs,Vx,aLH,sm1, Fr9,Vip,$oo,$p,Byd,Tym,Bg,Zw,Zpo,Krp,Uh,Uo5,cg,fL9,SXm,EGi,yL_,PG1,SR,moi,nGH,bp9,edH,gGR,Rdp,Eh,yx,Pg,m_,nY,br,eR,R_,vG2,gh,I_,dop,dh,oGm,vg,CGp,Op5,JLm,pW9,ALi,YX9,lLn,rh,xoH,ir,Wrn,o_,CY,Oh,pY,Ap,Yp,jmn,Gk5,Wg,u0o,zO,jR,kkm,xp,lr,zd2,Jp,Xe,XSn,QC,M3,Mnn,Qcp,hiR,tl,N3,wY,Ngm,q3,LC,q$W,sx,HPp,Ld1,scs,KdW,Fe,VC,$m,aTW,B5,Z1,Ux,c5,Fds,fC,S9,Ex,Vn5,GO,$bs,yC,BgR,Ny_,UbH,c22,fTo,S$n,y2p,ZPs,P0o,P5,mT,mb9,nq9,ITo,vqo,dbH,e9,Rn,r21,iPH,OPW,A2R,In,v5,Y$i,lTs,J2m,Wdd,GeW,xbs,rY,jcd,u8p,ih,CC,XLH,on,Mwn, pC,Q3_,Al,lh,Jl,h2H,HmH,j9,tw9,X3,N4n,qs2,T2,wL2,Lps,L6,s3o,Kpd,B42,ai9,F3,VP,$6,ZP,U5,Sss,cC,f6,Su,y7d,PC,P$i,mNR,mZ,bmn,bH,eu,R9,I9,e21,gV,dV,rV,iH,o9,C6,R2m,Iip,gdo,p6,AN,Y6,lH,JN,x6,vdp,dNn,r7n,imR,ods,C$m,WC,OmW,Xr,pLs,A71,Ys9,Mf,hB,HG,tB,w1,Fr,V1,J75,Zr,UD,cG,xNo,Wp1,fB,GV5,z29,ED,hJo,Hsn,tIo,y1,N3i,qys,L$W,m2,K$s,s7R,au2,F$1,eL,R1,VIs,I1,g1,vG,d1,r1,iq,o1,CB,OD,pB,AB,Yx,lq,JB,$m_,B31,GZ,kx,ZsR,Xc,Mq,Qj,dR,hW,tW,Nq,SyR,qq,wc,Tr,yio,E1s,Um1,Ka,sZ,bso,ay,S6,UZ,EZ,yj,RJi,mo,dmn,g1_,v1H,iss,AiR, o1s,Osd,pPs,eJn,bE,na,lu_,Ry,Iy,vX,Jis,OZ,xmW,pa,AW,YH,JW,WX,Gr,W$s,zr,kH,zJp,Dx,MB,Qd,hr,HJ,tr,NB,qB,ww,Tj,u2s,Lw,aH,Kw,D61,hpH,MRo,Q__,HY1,tRp,qhH,wg9,Nh_,L_5,$g,BJ,cJ,s_W,K_W,U0,fw,F_2,VRs,U6i,ZYi,PJ,mI,nw,b2,eJ,fws,Sh2,i2,oH,Ep9,ypp,Prd,Ar,Yg,l2,m6m,npW,eps,Iw1,WJ,gpm,kg,Gj,Db,Xq,Qu,NX,qX,wv,Th,sl,Ki,Fq,op2,Crp,$9,OYs,pgi,Zb,Aps,Yh5,Ul,cc,lws,Jp2,W_i,S0,Pc,zpd,kO5,El,uv9,j_2,X5n,D3_,e0,GOp,Qnn,hOo,rv,vc,HCW,t9n,iD,oh,NYW,qxn,pi,w5H,TYd,LTp,sni,Gh,KT5,a12,FTo,V9d,$31,BY5,ZCm,U3o,k9,cls,j0,Sx5, Em1,yld,Phs,m3m,Dg,ts,bC5,I1d,N$,gmW,d3s,nmn,rlW,iCR,om9,eOR,RO_,Xj,M$,HO,vmd,hs,Q3,Ch_,OC9,p5m,Als,YxR,l1W,zOm,Jli,LW,s6,af,jnR,Mui,XCH,KW,$r,Q9p,U6,hbs,tu_,y3,H6o,FZ_,NV_,KZm,bQ,Vup,Z6s,e8,nW,$Eo,BV2,UEm,If,fP9,S5W,E6d,yN2,PHs,mEm,n6n,cNp,ebR,Rb1,IPW,v6H,g62,rN1,rf,i6n,iQ,of,CW,o6m,CHn,As,Yr,pCp,O61,lQ,ANi,lPi,xEm,JN1,WZ9,k2m,G2_,Me,H1,ho,u31,Qc,to,Ne,qe,wX,j9i,Le,MLp,XG2,aI,Ke,Vc,$e,B1,Q1m,Zm,c1,hwm,SP,tL1,yc,P1,N1p,qDH,wG_,T1s,mF,bU,L29,eP,RI,II,K22,gX,v1,ar1,rX,Ce,oI,iU,OB,pe,$fd,SDH,yBs,fri, cB5,Exd,lU,W1,bB1,Pqn,mfH,nx5,VL9,oxn,hF,iBH,pG_,rBR,Ye,H3,uU,M8,Cqn,z$,ZBs,B1W,Ufs,xe,dfW,wd,W2m,Lj,Kj,zw9,kZs,aO,urs,j1d,Dqi,M62,Qy2,$0,Ha1,B3,t6i,Nc9,wX9,Tcd,LoH,UT,syR,aS9,c3,Fo1,fj,SM,ya,cWs,PEo,eM,nH1,Rj2,IO,gHo,vHp,dqo,Y0,rWH,iaR,pj,DE1,Cj,AF,OT,gd,k0,jM,uC,XU,QN,CE9,hU,tU,N1,Oao,pXR,TB,YZ_,lSd,JW5,xqd,aU,Won,Gr_,zj_,FU,krs,uci,jyp,VN,DB5,XJd,$n,MJ5,QHn,Zq,h7W,Hwp,tJH,UC,cr,fO,Nws,q0p,wJ1,Tw5,LIi,sHn,KI_,Pr,mA,nO,axs,bI,FI_,RU,$Bd,VJ5,gq,vr,dq,rq,Bwi,iI,oU,Zwp,UBp,CO,OC,Egp,crn,S0m,fxn,pO, AU,Yn,yrn,P2o,mBp,lI,bwi,IxW,R72,JU,xn,Wr,GB,zB,uI,j7,DJ,XO,MZ,Q8,gg_,vgm,dBn,hq,Hb,NZ,wm,ogW,iwH,Ld,C2_,sc,Kd,aW,FO,V8,Uc,cb,fd,SU,Ec,y8,Pb,mM,Arp,nd,bd,eU,Y02,Jrm,vb,xBn,dm,rm,z72,kj9,uPR,DXW,M0_,Aq,Qhm,ld,Yu,t0H,Nv_,qln,xu,Wb,Tv1,zq,ku,ud,jU,shs,DB,Xb,Md,Kt1,QO,Ltm,hv,Hz,Ftn,abH,tv,Nd,qd,wl,LX,$X_,Bvo,KX,aQ,VO,$U,Zi1,Fb,fbm,Sl9,E9p,ygm,PD5,mXp,n9m,ZB,Bz,cgn,RKm,Ug,g9d,v9W,yO,dX9,fX,SQ,rg2,Pz,o9s,Oi1,mj,nX,pcR,bm,Ylm,eQ,IQ,WtR,lbH,xXi,Jgm,gl,vz,dl,rl,im,oQ,CX,pX,khH,D$R,lm,XOp,jGs,Jv,xU,M8m,HWo, GJ,jQ,zJ,um,q61,kU,wOs,Nfd,t8n,Tfi,Df,LlW,sfW,V8H,X1,Qi,BfW,hG,HT,tG,NG,ZWH,U$2,qG,wF,Tg,csR,fgs,sq,Vi,$$,BT,Zf,Uq,cT,S62,f4,Se,Eq,yi,PT,m6,n4,Erd,ys1,bl,ee,RL,IL,gF,vT,PQR,m$H,dF,C4,ezm,Rzm,Oq,p4,WT,gri,k$,ul,vrH,XM,d$H,iWH,rsm,orR,CQi,OWo,pO5,As2,Y6W,Jss,lgp,x$s,zzd,uj1,Gzn,jfm,Dep,MPm,QJ,hV,hop,QIH,Hn,tV,N2,tP2,q2,w0,Tb,qBd,w1H,LH,NXn,sd,sI9,KH,ak,FM,VJ,$i,Bn,ZU,Ud,cn,fH,ST,Ed,yJ,Pn,mE,nH,b8,eT,Rk,Ik,g0,vn,d0,r0,i8,ok,CH,Od,pH,AV,Yi,l8,JV,xi,Wn,Gb,zb,ki,u8,jT,D0,X5,MJ,Ql,hH,H0,tH,NJ,qJ,wE,Td,L0, s2,K0,aw,F5,Vl,$T,B0,Z0,U2,c0,f0,S5,E2,yl,P0,ms,n0,bx,e5,Iw,gE,amR,v0,G,dE,Rw,rE,ix,ow,VP2,O2,BXo,C0,Zem,AH,Ues,JH,p0,xT,W0,Gd,ux,fm1,SBW,Eed,yoo,PUd,me2,hf,qn,eo_,RoH,Im5,gen,cos,ve5,kT,de1,roR,Lx,Vn,sF,De,ie5,j5,wI,Kx,$2,CUW,Mn,Qn,FH,ad,Oe5,B9,Ze,UF,c9,p15,fx,SV,EF,yn,P9,Aoo,YB5,Jo_,xeR,bB,eV,G$s,fo,jIs,X3H,QO1,M2H,Id,Hjd,tMn,od,NdH,Cx,OF,px,Af,Y2,lB,qTH,Tds,LLW,w35,sO9,KLs,GH,zH,uB,D$,X9,MF,a7o,QW,FL2,h8,H7,k2,qF,wz,Ta,L9,VM1,NF,Bdo,sz,Zjn,U8s,K9,cFs,aX,F9,f71,STR,VW,E0n,yFs,$J,PCW,m8o,n01,B7, Z$,Uz,bjR,eP5,c7,f9,Sg,RPd,Ez,yW,P7,mK,I7W,n9,bZ,g0n,eg,v0_,RX,d8d,rFo,iji,o0d,CC9,Ojd,IX,p39,AFs,YT2,gz,l7R,v7,JFs,dz,x8s,rz,WLR,Gms,iZ,A8,zP2,YJ,lZ,J8,xJ,kms,uNp,Ga,kJ,uZ,jOd,jg,DH,M0,D1o,Qe,hC,Xri,tC,hmH,t7H,Nqi,HOR,we,LE,TU,qCR,wrH,LAs,Tqs,N0,sUH,KA5,aqW,FAm,q0,ZO_,U15,cUp,BqR,$1i,V7H,fqm,sn,M7o,SC2,QUs,EnW,yUp,nn_,PIi,KE,m12,bOi,Iqs,emH,Rms,vn9,gns,d1W,rU1,Fu,CIs,iO_,OOo,onR,pr2,AUW,YCm,lqo,JU9,x12,WAp,GBp,zmR,kBn,uU5,jU2,Ve,Xbn,ZH,$P,Sv,En,MU5,ye,QW9,mq,Rs,hvR,Hd1,ge,tUn,de,re,iw,cE,os,CE,Nmo, On,pE,AC,qc2,YP,lw,JC,xP,WE,GU,kP,uw,jv,DI,Xw,wbH,TmR,LMm,ht,Ml,HQ,tt,sWp,Nl,ql,wj,KMm,aJm,T8,sf,KZ,aE,Fw,Vb,BQ,ZI,cQ,Uf,VUH,$Z9,Bms,ZdR,UZi,cq1,SN,Sco,yb,Euo,PQ,bc,yq_,Pds,mZp,nu_,eN,RE,gj,IE,dj,bds,evo,vQ,Rvs,IJ2,oE,gui,CZ,dZ_,pZ,At,ido,rqs,ouW,Cds,Od_,lc,Jt,xK,pb9,Aq_,Yc_,lJW,Jqs,xZs,WMs,Gq9,zvW,kq9,G8,z8,uOW,jWH,kK,uc,DdH,jN,Dz,MV,Xzn,QR,hX,HF,MQm,tX,QQd,NV,hC1,qV,HXW,tQd,wM,Nln,qgm,wzR,TR,Ly,si,Ky,Tld,Lj2,a$,Fz,VR,sQ9,$D,BF,Zz,Ui,cF,Kj5,aBH,fy,Sk,Fjs,Ei,yR,PF,me,lm2,VQs,$dW,ny,Bl_,ZXn,Udi,bA, ek,R$,I$,gM,vF,dM,rM,iA,o$,Cy,cvn,fB2,xD,WF,EUH,GR,MU,kD,Hx,bXo,ddH,eC2,rvn,iXH,Cm5,OXW,oUs,pzn,Avs,Ygs,Zh,xdn,zCm,GJ5,ubd,jQp,DGH,fn,SW,Me2,QLd,NF2,EE,qqs,hI1,yg,Px,m1,nn,TFR,K6n,L69,Vem,Sq9,ff2,$G_,E$9,eW,Z41,BFo,mGs,eIo,b4o,v$n,RI9,Rz,Iz,Cl_,dD,O4i,Gg9,W6o,xGs,lfW,JG1,AGn,u1R,kgp,Yqs,Qkp,MT1,hWp,OE,N0H,HHp,tTm,pTn,rD,oz,D2s,jLs,Xni,wnW,ij,zI5,qdi,LER,KEn,FEs,$2d,U25,cVR,SdR,Eis,P8m,yVo,RWR,nio,m25,IUm,d2n,rVm,iHd,oi1,Wx,UE,pn1,C8p,kw,DC,MQ,lUR,JVm,Ydm,QS,x2m,hS,HN,Jf,tS,Jvs,NQ,qQ,w6,WE5,T0,Gbd, zW_,kbo,L_,sb,K_,a2,FR,VS,$s,BN,ZC,uMs,jkn,Ub,DJm,cN,ic,f_,Sp,Qw5,M55,Eb,hld,H0d,t55,yS,X0o,PN,NER,mx,fZ,q2i,w0p,kJ5,TEW,n_,x2,nx,pn,Lsn,sw5,ep,o$2,gD,Ksp,GS,zS,Yw,AD,bj,B0s,fUp,lj,dGo,gio,a0m,yGi,UGi,R2,AVp,cx,V5n,Fsn,wT1,ZHp,$Jd,viR,rGW,i42,n$9,VTi,aU9,F6n,sLp,tes,H4o,XTW,T02,cG9,bHd,If2,g$H,JD,eWm,skm,Z0m,BEp,I2,g6,HBm,vN,TH,XH,neH,zd,UJ5,d6,r6,i3,cHs,Ob,p_,AS,l3,JS,f09,Ys,xs,WN,S2p,G0,PxH,yHR,ETs,ks,nTm,b01,u3,jp,DQ,XL,MS,Qf,h9,Ht,gTi,NS,vTs,t9,dJ2,rHd,Rld,I02,O0d,qS,w8,p0p,AHH,TY,Y2H,Ll,JHR, l0n,WsH,zlR,u5o,jws,kd2,MVn,hfi,HxR,Vf,$4,tV9,NIs,Bt,ZQ,qF5,w9s,TIn,LVn,ct,sdd,KVs,S$,E7,FV2,VVn,$np,Unn,Pt,b5,RB,cfi,IB,g8,yfo,mnn,PBH,bxH,o2s,Rfi,pl,d8,n2m,E22,SF_,fep,O7,r8,Cl,l5,p91,x4,Wt,GY,zY,k4,u5,j$,AfH,YF2,Dv,XV,Qq,Jfp,xns,Ms,WVR,kHR,uH9,he,jd1,Ns,DF1,qs,TQ,X7H,wr,Lq,Mg9,Kq,hcp,H9i,FV,Vq,cY,NzR,BY,fq,Ea,qzn,PY,Ua,Sz,w7R,mQ,TzR,nq,LK2,$V,Zv,tgn,yq,bs,sXm,KKo,ez,a$5,RJ,IJ,gr,vY,FKi,rr,dr,is,oJ,Vg5,$FW,Cq,Oa,pq,Ae,YV,ls,Bzd,Je,xV,Z9H,UFn,WY,GQ,zQ,f$R,c8H,kV,Sz9,EJ9,y8m,us,PZn,mFR,nJd,b9W,ecs, jz,Do,Xi,MH,Rcd,I$m,gJ_,hI,vJi,H2,tI,dFs,r8o,NH,i91,oJ2,A82,Yz5,CZn,O9s,p7W,wx,Tw,LF,sM,l$2,J8s,WKm,xF1,kad,Fi,jXi,XEp,D0R,UM,Zo,QsH,h11,HEs,c2,tvd,S4,EM,NeW,wE9,Tep,P2,e4,aH2,rf1,i5,Vvo,$0p,BeH,ZE_,U0s,vt,mD,gx,v2,EPi,yCn,Pw1,dx,e1i,m09,nP2,IHd,gP1,rx,R1s,vPs,ik,oK,CF,d0p,rCH,OM,pF,iEi,AI,oPs,YC,RK,W2,OER,ixR,efd,Gw,zw,uk,j4,DE,XI,MI,kC,Hk,AC2,NI,lHn,qI,x0i,JCn,Yn9,Wq1,LT,uup,GU_,kUd,z1o,sW,KT,jss,Dl2,MN5,aA,Oxp,FI,h4s,tNs,A9,Njo,qfH,oB,Iem,v2i,dnH,QEm,$v,Bk,UW,wQR,Tji,Lws,sEs,Kwm,aIs,Fw2,VNs,$ls, Bj2,cts,Uli,fIo,Sfs,EKi,ck,ytn,EW,PcR,ml5,nK5,y5,bZm,R45,e4m,lS,A0,J0,Wk,Gc,Tc,zc,IIp,Ccn,tf,Yv,jO,Yfd,Jts,IA,hR,RA,HU,qi,Ww_,G8n,pT,ws,jEo,TL,LD,DV5,XFo,Mk9,Q$W,sr,hkW,Hy2,KD,tk_,Le2,TMi,NM2,wFs,qi1,aT,s$W,FD,Kei,azi,Vkm,$V9,BMs,ZyH,EDs,Ur,cU,mVH,fD,S1,bys,eko,Izp,vD_,dVH,oDp,CAp,Oys,pFd,lzp,JXH,We_,GRi,zk2,kRH,j$1,MWm,hHH,PU,mN,nD,bN,HnR,NDH,qE1,oT,$U9,szH,K12,Zn5,CD,UUp,fhs,cDm,SEm,pD,lN,Ewp,Or,JR,WU,yDo,Pj2,bnW,IhH,DZ,vw9,uN,nwR,lhR,Mp,Np,T3,JD2,xUs,W1d,ap,KA,By,ZZ,GSm,kSs,uQn,UN,$L,jzs,XNd,Mpi, hRs,So,Q2d,H_2,tpp,yM,qbi,Py,wNW,ky,VM,rDs,mUm,Ono,Ip,FY,DQ9,ON,qp,Au,YL,cSW,Sb_,fCm,wJ,LA,Ess,Ju,xL,P3_,Wy,G3,mQH,Er,kL,fA,zHd,jo,aCs,DA,RHd,uz1,Rks,XX,b_i,eRs,QV,RRR,pNo,O_R,YbW,lC2,ND,wb,TT,qD,sI,KS,JSR,a8,Wxn,FX,zRW,BB,G0s,ZA,UI,DS5,QBR,hQ1,EI,Hli,N8s,iR,CS,OI,q7p,Ya,wtp,lR,Jb,zT,ka,uR,jd,D9,T8n,XW,MW,aQH,QQ,h1,FmH,V$s,HA,t1,$Si,B85,Zld,T6,L5,K5,USn,FW,S7s,E4p,c99,y9o,P51,mS5,Up,BA,VQ,n4o,Z9,cA,bls,f5,eQs,S_,RQ2,IQ_,g4s,yQ,PA,v41,dSo,n5,ild,r9H,bP,e_,RS,C5R,Ol9,IS,ptW,A9H,gB,lQn,Y75,vA,J9p,dB, WmH,xS2,GY_,rB,iP,zQH,uLW,jBd,oS,C5,Op,Dss,Mzd,p5,QJm,J1,hFs,Yj,xj,WA,G6,Nrn,wYs,Hqn,qa2,Trm,tzo,LQW,sJn,z6,KQW,FQp,Brn,UsH,ZqH,hY,QY,qR,wN,LL,Sa9,sG,KL,aP,Ps9,VY,mss,yed,$M,eF2,B8,Z8,RF9,UG,Ivn,L1p,VW1,gVn,dss,vVW,reH,c8,fL,SC,EG,iqo,Oq1,m3,nL,by,pYs,yY,Aeo,Ya2,lvm,xsn,eC,M4H,qM9,dN,w2W,uP,LDs,sKd,KD_,ao2,iy,FDp,oP,CL,V45,OG,$Ho,YM,Bx2,ZFo,ly,JY,UH9,cIs,fod,SMH,xM,AY,EC1,W8,Pki,mH_,nCm,bFs,G4,eSs,RSi,Iop,z4,vCH,kM,rI_,dHs,iF2,OFi,Ma,gCd,uy,Q7,p2s,AI9,YM1,los,h_,H4,t_,Na,qa,JIp,wk,xH9,TM,s9,uis,DI_, Xkp,MO5,V7,QA2,kwm,hsm,Kz,HTs,N_n,Lz,aY,Gw2,zSW,F6,qW2,wko,jK_,WDi,ZW,T_i,U9,La1,sA_,c4,fz,SD,KaW,E9,VOR,aEm,Fa9,y7,$I9,P4,mc,nz,bX,B_i,ZT2,UIs,eD,fEH,SWn,RY,Evi,IY,gk,y0n,PSW,mIp,nvW,bTm,ess,dI1,IE9,VzH,v4,iT1,gvm,vvd,Rs1,iX,A0s,rk,dk,r0W,lEp,pkn,OTp,CSs,ovo,Cz,J0i,kj,O9,pz,A_,xIs,Y7,Wam,lX,Gci,tY,zs_,J_,D8,MR,avs,zM,uX,uIn,jD,XA,k7,GM,Mk,x7,kcn,W4,Qo,jAH,X6,Ck1,j_,h3,DG,Di1,XUH,M1p,Hd,QTn,h$H,HDn,t12,Nsp,tOs,v8,Nk,qk,t3,wU9,nVR,bq2,w9,Tx,Tso,LNi,sTp,LK,akR,KK,FN1,$i1,ab,ZG,Bso,$_,Ev,Uim,ZD9,SrH, fkm,cRp,yo,EyW,Pd,yR_,mi_,PN2,mg,yIR,nym,nK,bJ,bDi,eY,R$i,IkW,gy_,vy9,Rb,e$1,Ib,Csi,g9,iDH,vd,rRd,d9,oyn,oVW,P8,CN1,r9,ob,YrR,AR9,J3,Wd,x_,WN2,Gx,zx,GLo,z$H,kLi,uD1,jTH,Dpp,Xy2,uJ,Mo9,Qp2,hYs,DY,iJ,tos,NJd,k_,wyn,HAo,jY,TJp,X7,K8m,sp2,Mz,Q6,F82,Hp,L8W,tk,hk,aZ1,w5,qz,cu1,Ups,fZp,ZAn,SN1,ELn,VoH,$p1,yud,PfW,Ti,bAi,eY5,nLd,mps,LM,gLs,s_,vLH,RYm,IZp,dps,KM,ru5,iAm,OAs,Cf_,oLi,aD,pyo,AuH,F7,YNs,lZd,xpm,V6,$5,W8R,G3i,zYd,Bp,k3R,ZY,uY1,jpd,DDs,XBm,Mds,Q81,h5s,HSi,Nbp,qIm,SH,E_,mY,LUR,Pp,s8R,KUi,nM,aAm, Vdo,FUs,Bbn,ZSp,fAo,ID,cbs,bn,g5,RD,$D_,d5,ybm,Eao,r5,PRp,mDn,oD,CM,jC,nas,bSH,e5i,O_,Ak,Nz,SY,R5s,vaW,IAn,ln,YWi,vp,Y5,gaW,H8,Xf,iSd,CRd,oao,OSm,AbH,YI_,SIs,fK,lAo,Bd,rb5,Jb1,Jk,xDs,Vo,WUs,GTH,V12,BJo,Uv,x5,Wp,Gi,z5W,zi,kTp,uXp,j8W,DWp,XA9,M_m,h_1,H51,wA5,t_n,qpi,TB1,un,a9R,sSm,Kbm,BBo,Z5i,UWn,jH,c1i,k5,f9d,$W_,Lbm,Dp,Sps,NBn,Ejs,XJ,PP_,y1n,nj_,b5o,e_m,mWs,MO,gj_,I9W,r1R,dW9,vjm,i5n,ojm,QX,CPm,h5,pAo,A1_,O5o,l95,xW5,Wb9,jSs,z_o,k6m,uWR,DRs,X8W,MCp,hXm,QPH,HLm,tCn,Hu,NNm,qG2,TNi,w8i,L31,sPW,a8W,F3p, BNp,VCW,ZLR,URs,cY5,K32,f8i,$Rd,NO,SG_,EM9,yY_,Pyi,wt,bLH,nMm,eXs,RXR,I8s,dRs,gM1,oMn,Tl,vMH,Cys,OLo,Lv,p8m,Kv,at,sj,FJ,AY1,VX,JYp,l8o,W3s,G4H,zXn,k4W,uf9,xRH,jPi,$8,DaR,YGW,Tb5,qO,MDs,QY9,hxm,Hzd,tD9,NkH,q9_,Tkm,Zp,Lco,w4R,sY2,Kcn,aWR,Fcp,Bkm,$aR,VD9,Zz5,cu,FMm,Uan,c_s,fv,fW9,S9p,Ej,PXm,ma2,Pu,n7H,bzo,yX,y_R,mC,SA,E7i,eA,nv,ex1,Rt,bp,v72,izH,CXn,p4d,IW_,o7n,A_R,g71,Y9H,lWo,J_W,dt,It,GMo,zxH,xad,vu,u6H,jY_,r_s,dao,kM9,Dks,Ozd,WcR,Rxs,rt,ip,ot,XdW,Cv,qvi,HKd,wd_,tYd,Qbm,T9m,MY9,Kg1,Lgm,Oj,aG_,ham, VY1,B9p,UkR,c3n,fGH,y3R,J5,PJ9,Svs,lp,bKs,ea2,up,qNs,pv,RaH,IGm,v__,g_n,r3s,n_s,A5,Gl,o_n,CJd,OKo,pdm,pM,Wu,A3s,lGm,Yvo,xko,J3d,ZKs,Gxo,WgW,zl,x8,zad,D6,kxn,uAo,jbW,Dz_,Xpn,jA,E_2,MHs,dDp,gt,QDH,XE,h61,HMo,tHn,N5i,q_W,M7,QB,LYW,sDd,KY1,wp_,T5s,hP,$zW,FYi,VH1,B5H,ZMs,Ho,Uz1,cks,fYn,tP,S_s,ykR,Pn_,mzp,N7,E52,q7,wn,n5s,bMR,e65,R61,IYd,g5n,v55,sL,Tt,LU,dzd,KU,rks,iM1,o5m,Cn5,ppH,OMs,Z6,Y_R,lYn,Ak9,Jki,UL,xzR,co,WYn,fU,Gi9,kim,Qtp,u7o,DO5,Xus,jDW,z6m,MA9,hGm,Hv_,tAi,Nt9,EL,qjn,mi,yB,wu1,nU,bO,LCm,st1, Rj,Ij,KC_,eK,FC5,ap1,gn,$Os,VAH,dn,rn,iO,UOd,Bt5,Zvn,oj,c5s,y5o,Sj2,fpd,E8p,CU,mOo,RG2,Ipi,OL,g82,n8W,v8s,pU,bvs,iv_,AP,Yt,o81,Cp9,Ovs,pus,A51,JP,lpW,WC_,Glo,zGs,Wo,J5p,uJR,xt,Gt,zt,Yjs,xOd,D75,Xop,Qjs,MKs,HUd,hLs,tK9,woR,Xx,jK,Qp,D5,qLm,Nnd,Mc,Tn5,hQ,Li2,sjH,Kis,HI,tQ,a6m,Fis,VKR,$75,BnW,ZUR,U7H,SLs,cPp,Ets,yPs,bU2,eLn,rPn,BI,COs,APW,Z5,po5,OUn,vti,d71,RLo,I6s,iUo,Ue,cI,JP9,ed,k0s,x7o,SS,yp,Wis,Gt5,$k,oto,uEm,jj1,Dc_,m9,PI,vI,MS9,QFm,hn2,dZ,HbH,NZd,tSW,qe5,rZ,iz,wI_,sF9,K9R,Cb,L91,a5R,F92,TZs,AQ, VSn,$c1,pb,BZn,Zbn,Ucd,cQn,Se_,f51,PzH,mcR,Eko,bbs,end,yQ_,JQ,xk,Rnd,rQ2,WI,I5W,gk9,dco,vkm,ib2,Czs,okW,Ob_,Gn,pIW,AQd,Yed,l52,JQ_,xcp,W9s,zno,Gnm,knR,uxi,jF9,DP_,Xmo,QZn,kk,zn,uz,hD_,HNs,Mr5,sZ1,L5H,K52,an5,$PR,VrH,F5d,BUR,ZN2,jS,Dn,UPs,cER,fns,SQ9,yEW,PKW,MP,mPW,XG,hE,Eo5,Hm,noR,bN2,eDp,RDs,Ini,tE,gon,vos,iN1,NP,oo1,rEH,qP,wU,Tf,ON2,pmn,AE5,CK2,lno,YQs,JEp,LN,xPW,W5_,zDs,jZs,Gf2,kfm,sQ,DjW,MBm,Qlm,H$n,tBR,KN,aZ,N7H,X_H,T7p,w_9,qJW,FG,VU,slW,LXR,$o,Bm,Zn,KXs,UQ,aM2,FXW,VBs,$js,cm,B7p,fN,Z$d,Sr,Ujm, EQ,yU,c$o,Pm,fM_,m5,nN,EEs,mjo,nEm,SJs,b$i,IMW,gEm,vEn,RVH,eV2,r$1,djR,i$H,O$5,RZ,A$5,p_R,oEd,C62,YJp,lM2,IZ,gU,J$2,xjs,WXn,GP9,zV5,kPR,jlo,D9m,qus,Q4R,h0s,Xv9,TCR,CN,pN,FB2,Va1,lK,$9s,JE,BC_,LB2,oZ,AE,U9H,cao,Wm,Su1,yas,EN1,Gf,Yo,iK,f3m,xo,s4o,Zkp,m91,vm,zf,nNW,bkd,OQ,KB9,ko,uK,e0i,jr,R05,DM,I3R,gNR,d9o,ra2,vNo,XF,iks,Mj,Q4,oN5,CM1,Ok2,pv5,Yun,l3W,x9s,Jad,WBs,H_,h$,AaW,GIi,z05,kIo,t$,j4s,uZp,Nj,qj,DYR,Mt_,Qvd,w7,Xw2,hum,HV1,Nui,TP,ttm,qkR,wwH,Tu_,sJ,K$,Kus,aV9,Lu_,svW,Fu9,al,FF,$Ys,Vt5,Bus,UYn,ZVd, cA2,$E,Sko,fV9,EAi,ZM,yA_,mYm,Pa1,c_,nA1,bV5,euW,IVm,gA5,vAs,Ruo,dY9,rAp,iVW,oAo,Ca2,OV1,pwi,AAH,YkH,lVm,xYp,Wus,G_R,y4,zu1,k_d,usH,DTW,hgH,Mmi,Hco,jv9,n$,XMd,mX,Qrn,eB,N2H,tm9,Il,Rl,T2R,L0d,srW,K0R,G6W,Vmo,F09,v_,r7,d7,al1,i6,ol,OJ,B2s,p$,y6s,vOW,dT1,A$,iK2,r6m,Ff,fvd,EVp,YE,l6,A1,icR,oO1,lP,T4,FA,Cip,Ocp,A6s,pM1,Yw5,llR,J6R,xTR,G72,zgW,k7R,uy5,W0_,H2R,th9,hei,NLo,wfW,LRW,sNs,KRi,zP,TLm,qtp,jrW,kE,Vh2,$r9,FR5,a2W,Urm,Z2m,DW,ccs,St9,ycW,u6,PLR,Mhi,W_,f2s,mrs,nSR,b2d,Drs,XfH,oCW,cd,GP,eei,D3,I2s,gSm, vSo,jB,Ren,ESs,rcW,O2o,M9,pfi,Acs,oSn,ha,YtR,l2s,dr9,Jcp,CL5,xro,Hv,QD,WR1,ze1,Gv2,XZ,uSo,ta,mkn,jNs,MxH,XaH,hNo,H3i,QC5,q9,N9,Nap,qP5,waH,Ta1,wC,LO2,sCn,KOs,cmp,$KW,Ba5,FOo,aRH,Kk,mK9,ym5,Lk,VD,$N,eNo,RNp,Z3,UK1,Sa,gYs,fk,Bv,dKp,rm9,i3s,EY_,Pv,nk,CTm,Z3d,IR_,mAH,vu9,LV,nb1,eZo,btH,sk,KV,RZn,av,Iym,gb2,vbd,dAn,rZn,it1,Cod,Vr,ob1,Ot5,p69,AZs,YA_,WPi,lyW,JZR,xAd,zZs,uKd,jRs,DMR,ku1,$A,Xes,M31,Qo9,hhp,H8R,ZV,t3i,Uk,cw,fV,Nps,q4R,Tpp,L4s,sop,K4d,F4p,aa1,V3s,St,Ek,Z8_,$Mp,Bpo,yr,UMm,cz1,Pw,mu,fad,nV,S4i, ba,EIm,et,Rv,yzp,Iv,gu,P92,mMd,vw,du,nI2,ru,b8p,eh5,Ok,pV,Rh9,IaW,gIW,rzm,dMo,AA,i82,oI1,C91,lBR,vIp,pe2,AzH,laH,Sm9,P11,YW,oi; td=function(D,X,M,Q,h,H,t,q,w){if(D-6<33&&((D^10)&15)>=14){M5(41,X);var T=decodeURIComponent(X[N[39]](N[43])||N[22])[N[5]](N[33]);var L=X[N[7]]===N[35]&&T[N[17]]>1&&!!T[1]}(D|48)==D&&(L=X(t,q,w));(D&114)==D&&(L=X[N[26]]?X[N[26]][N[29]](N[38]):X[N[20]]===N[38]);(D-8&9)==1&&(X[1]>-7&&(0,X[68])(X[51],X[81]),X[65]<0&&(0,X[8])(((0,X[75])(X[24],X[3]),X[81])(X[72],X[8]),X[75],X[59],X[8])<=(0,X[71])((0,X[new M(N[47])/1E3])(X[87],X[51]),X[35],X[72],X[62]),(X[46]<0||((((0,X[38])(X[74],(0,X[80])(X[16],X[56]), (0,X[34])(X[56]),(0,X[7])(X[84],X[1]),X[61],X[62]),X[28])(X[3],X[62])>>(0,X[47])((0,X[17])((0,X[28])(X[75],X[11]),X[13],X[1019-new M(N[55])/1E3],X[56]),X[17],(0,X[13])(X[78],X[1]),X[7],X[64],X[1]))*(0,X[46])((0,X[2])(),X[62],X[57]),0))&&(((0,X[47])((0,X[17])((0,X[28])(X[0],X[31]),X[45],X[1],X[83]),X[68],((0,X[45])(X[11],X[77]),X[46])((0,X[new M(N[27])/1E3])(),X[11],X[87]),X[45],(0,X[68])((0,X[7])(X[48],X[62]),X[new M(N[59])/1E3],(0,X[80])(X[31]),X[62],X[10]),X[56],X[81]),X[7])(X[19],X[56]),(0,X[46])((0,X[12])(), X[56],X[57])),L=[]);(D^99)&27||M[N[17]]==0||(T=hd(40,X,M),X=T[0]);return L}; D52=function(D,X){var M;((D^29)&7)==1&&X[N[73]]();D+5&7||(M=X!==null);return M}; Ko=function(D,X,M,Q,h,H,t,q){var w;D<<2&14||(w=X(H,t,q));if((D&93)==D){M5(14,X);var T=X[N[20]]+(X[N[20]]?N[72]:N[79])+X[N[14]]+X[N[7]];if(Tp(10,X)){var L=[];g.sm(X[N[36]],function(a,F){a!==null&&L[N[34]](F+N[21]+a)}); T+=N[16]+L[N[28]](N[78])}w=T}if((D-3^12)=D){T=64;for(var K=[];++T-K[N[17]]-32;){switch(T){case 91:T=44;continue;case 123:T=65;break;case 65:T-=18;continue;case 58:T=96;continue;case 46:T=95}K[N[34]](String[N[65]](T))}w=K}return w}; ai=function(D,X,M,Q,h,H){if(!(D+9>>4)){var t=X[N[18]](N[4],12),q=X[N[18]](N[4],t+1);t>0&&q>0?(M[N[7]]=X[N[13]](0,q),X=X[N[13]](q+1)):(M[N[7]]=X,X=N[22]);var w=[X]}(D|40)==D&&(w=M(Q,h,H));(D|16)==D&&(M=(M%X[N[17]]+X[N[17]])%X[N[17]],X[N[23]](M,1));D<<2&15||M[N[17]]==0||(X=(X%M[N[17]]+M[N[17]])%M[N[17]],M[N[23]](0,1,M[N[23]](X,1,M[0])[0]));return w}; Vs=function(D,X,M,Q,h,H,t,q,w){if((D&75)==D){var T=X[N[5]](N[4]),L=0;T[0]||L++;for(var K={};L>2=D){T=64;for(L=[];++T-L[N[17]]-32;)switch(T){case 58:T=96;continue;case 91:T=44;break;case 65:T=47;continue;case 46:T=153;case 123:T-=58;default:L[N[34]](String[N[65]](T))}a=L}(D|9)>>3>=2&&(D|4)>>5<5&&(a=M(Q,h,H,t,q,w));return a}; Tp=function(D,X,M,Q,h,H,t,q,w,T){if(D+9>>3==2){M5(8,X);var L=g.$W(X[N[36]],Xs5)}(D<<1&11)>=3&&(D^22)<18&&(L=X(H,t,q));if((D+2&7)==2)for(var K=X[N[17]];K;)X[N[34]](X[N[23]](--K,1)[0]);D>>1>=29&&D+1>>5<3&&(L=Q(h,H,t,q,w,T));return L}; Em=function(D,X,M){if(!(D<<1&7))for(M=(M%X[N[17]]+X[N[17]])%X[N[17]];M--;)X[N[0]](X[N[49]]());if(!(D-2>>4))if(M=M===void 0?!1:M,M5(12,X),X[N[7]]!==N[35]){var Q=X[N[32]]();Q[N[10]](N[44],N[2]);var h=Q}else{var H=X[N[52]]();Q=new g.Bs(H);var t=X[N[39]](N[69]),q=decodeURIComponent(X[N[39]](N[43])||N[22])[N[5]](N[33]);if(t&&q&&q[N[17]]>1&&q[1]){H=Q[N[36]];var w=H[N[84]](/^[^.]*/,N[22]);g.Um(Q,(H[N[18]](N[45])===0?N[45]:N[91])+t+N[25]+q[1]+w);Q=new g.cs(Q[N[48]]());Q[N[10]](N[81],N[2]);h=Q}else M?(Q=X[N[32]](), Q[N[10]](N[81],N[2]),h=Q):(t=Q[N[36]][N[61]](N[62]),Q[N[36]][N[61]](N[75])?(g.Um(Q,N[63]),H=Q[N[48]]()):Q[N[36]][N[61]](N[71])?(g.Um(Q,N[57]),H=Q[N[48]]()):(Q=M2H(H),fo(Q)&&(H=Q)),Q=new g.cs(H),Q[N[10]](N[41],N[2]),t&&Q[N[10]](N[8],N[37]),h=Q)}return h}; M5=function(D,X){if(((D^41)&8)<6&&(D|5)>=2&&X[N[26]])var M=M5(5,X);if(!(D-5&5)){if(!(fo(X[N[26]])||X[N[26]][N[29]](N[38])||X[N[26]][N[29]](N[90])||X[N[26]][N[29]](N[12])))throw new g.ys(N[51],X[N[26]]);M=g.Ps(X[N[26]]);X[N[20]]=M[N[83]];X[N[14]]=M[N[36]]+(M[N[14]]!=null?N[64]+M[N[14]]:N[22]);var Q=M[N[26]];Q[N[29]](N[35])?(X[N[7]]=N[35],Q=Q[N[13]](14)):Q[N[29]](N[54])?(X[N[7]]=N[54],Q=Q[N[13]](13)):Q[N[29]](N[19])?(Q=ai(1,Q,X),Q=Q[0]):(X[N[7]]=Q,Q=N[22]);var h=X[N[36]];X[N[36]]=Vs(1,Q);Object[N[50]](X[N[36]], hd(64,M[N[31]][N[48]]()));Object[N[50]](X[N[36]],h);X[N[36]][N[3]]===N[88]&&(delete X[N[36]][N[3]],X[N[7]]+=N[42]);X[N[26]]=N[22];X[N[6]]=N[22];X[N[31]]&&(M=Fn(17,X));var H=[]}if((D|1)>>3>=2&&(D^18)<19)a:if(M=X[N[5]](N[22]),Q=[N[5],920534332,-968601757,1095204767,1805680029,-968601757,-1036702006,-982505572,QiW,-677191404,h9W,HoH,t2n,NR_,N[5],-724634488,988164622,899243687,qms,1805680029,-377056802,1366724157,-1434808523,wsd,null,2020683876,M,814956582,-259649319,-1000473839,-793052187,-769788657, 1797272842,null,2096376328,1393737691,1468545584,TRo,2103226699,1366724157,N[82],-1468971393,526447932,-259649319,758487671,LHR,190795014,1584247193,810645876,911377701,siR,M,-733602358,1092598959,-543657703,-1147505653,N[53],M,-1125288565,1494197719,KHH,1330941441,-235842836,-733602358,a_s,-569699927,FHm,function(t,q,w){var T=t[N[17]];q[N[11]](function(L,K,a){this[N[34]](a[K]=t[(t[N[18]](L)-t[N[18]](this[K])+K+T--)%t[N[17]]])},w[N[5]](N[22]))}, V21,1681970757,-1173511235,-1749509912,1584247193,-1557997131,751638939,$5R,444647167,-1464976783,BR5,-1784611377,-1392455421,1446340041,null,722193866,-645461160,function(t,q){t=(t%q[N[17]]+q[N[17]])%q[N[17]];q[N[23]](-t)[N[73]]()[N[11]](function(w){q[N[0]](w)})}, 1821956969,Zon],Q[24]=Q,Q[33]=Q,Q[82]=Q,typeof U5s===N[66])H=X;else{try{try{h=td(9,Q,Date)}catch(t){(0,Q[53])(Q[56]),((0,Q[46])((0,Q[2])(),Q[11],Q[57]),Q[7])(Q[44],Q[62])}try{h=no(1,Q,Date)}catch(t){(0,Q[16])(Q[48],(0,Q[19])((0,Q[47])(Q[65],Q[44]),Q[9],Q[82],Q[13]),(0,Q[48])((0,Q[14])(),Q[13],Q[60]),(0,Q[48])((0,Q[28])(),Q[13],Q[60]),(0,Q[4])(),Q[65],Q[0])}}catch(t){H=N[58]+X;break a}H=M[N[28]](N[22])}return H}; hd=function(D,X,M){if(!(D+6>>4)){var Q=X[N[5]](N[22]);vs[N[70]](Q,3);vs[N[46]](Q,29);vs[N[70]](Q,1);vs[N[46]](Q,77);vs[N[74]](Q,45);var h=Q[N[28]](N[22])}(D&26)==D&&X[N[23]](X[N[17]],0,M);if(!((D^76)>>4)){Q=X[N[5]](N[78]);for(var H={},t=0;t0?Fn(51,Q,h[N[13]](0,H),h[N[13]](H+1)):h&&(Q[h]=N[22]);var t=[]}(D|48)==D&&(M===N[86]&&((h=Q[N[18]](N[21]))>=0?(M=N[67]+Q[N[13]](0,h),Q=Q[N[13]](h+1)):(h=Q[N[18]](N[60]))>=0&&(M=N[67]+Q[N[13]](0,h),Q=Q[N[13]](h+3))),X[M]=Q);if((D&53)==D){M5(11,X);if(h=X[N[36]][N[9]]||null)h=cd1[0](h),X[N[10]](N[9],h);t=[]}D-1>>4||(H=g.Z(X,f_1)||X[N[77]],h={AX:!1,W3:N[22],K4:N[22],s:N[22]},H?(H=dR(H),h[N[89]]=!0,h[N[56]]=H[N[6]],h[N[80]]=H[N[24]],h[N[87]]= H[N[87]],t=h):t=h);if((D^73)>>4<1&&(D<<1&13)>=7){h=64;for(H=[];++h-H[N[17]]-32;){switch(h){case 58:h-=14;case 91:case 92:case 93:continue;case 123:h=47;case 94:case 95:case 96:continue;case 46:h=95}H[N[34]](String[N[65]](h))}t=H}return t}; no=function(D,X,M,Q,h,H,t){var q;(D^57)<10&&(D>>2&7)>=2&&(q=M(h,H,t));(D+9^27)=D&&(this[N[26]]=X,this[N[31]]=M===void 0?!1:M,this[N[14]]=this[N[7]]=this[N[20]]=N[22],this[N[36]]={},this[N[6]]=N[22]);(D|4)>>4||(X[86]>3&&(X[30]==8||((0,X[17])(((0,X[7])(X[27],X[62]),X[80])(X[9]),X[52],X[86],X[78]),0))&&(0,X[19])((0,X[42])(X[76],X[27]),X[42],(0,X[42])(X[76],X[44]),X[25],X[20]),X[28]<4&&(X[8]===-6?((0,X[70])((0,X[70])((0,X[59])(X[82],X[88]),X[42],X[31],X[47]),X[59],X[79],X[31]),(0,X[24])(X[7], (0,X[42])(X[25],X[22]),(0,X[49])(X[25],X[69]),(0,X[7])(X[56]),(0,X[49])(X[88],X[57]),X[86]),X[42])(X[31],X[18]):((((0,X[40])((0,X[59])(X[51],X[88]),X[44],(0,X[44])((0,X[new M(N[76])/1E3])(X[50]),X[33],X[2],X[88]),X[33],X[3],X[88]),X[82])((0,X[16])(X[88],X[28]),X[48],(0,X[15])((0,X[35])(),X[88],X[36]),X[74],X[88]),X[23])(X[88],X[9]),X[33])(X[57],X[30])),X[12]!=-2&&(0,X[-1696- -216*Math[N[85]](8,new M(N[68])/1E3)])((0,X[72])(X[38],X[68]),X[62],(0,X[88])(X[23]),X[66],X[7],X[78]),X[47]>-2&&(X[83]<-7? ((((0,X[41])(X[78],X[58]),X[31])((0,X[13])(X[39],X[76]),X[3],X[75],X[new M(N[40])/1E3]),(0,X[57])(X[49]),X[58])((0,X[69])(X[37],X[42]),X[15],X[36],X[13]),X[56])(X[13]):(0,X[19])((0,X[17])((((0,X[15])(X[54],X[13]),X[9])(X[58],X[1]),X[83])(X[65]),(0,X[48])((0,X[28])(),X[59],X[60]),X[19],(0,X[47])(X[59],X[89]),X[83],X[33]),X[56],X[59])),X[68]>-5&&(X[41]===-5&&(((0,X[48])((0,X[4])(),X[65],X[60]),X[56])(X[1]),1)||(0,X[19])((0,X[40])(X[13],X[26]),X[15],X[57],X[65])),q=[]);return q}; rR=function(D){return function(){return Sm9[D].apply(this,arguments)}}; g.i1=function(D,X){return Sm9[D]=X}; EWs=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var X=0;X=this.length))return this[D]}; io9=function(D,X,M){D instanceof String&&(D=String(D));for(var Q=D.length-1;Q>=0;Q--){var h=D[Q];if(X.call(M,h,Q,D))return{c9:Q,Sz:h}}return{c9:-1,Sz:void 0}}; g.PZ=function(D,X,M){D=D.split(".");M=M||g.E8;for(var Q;D.length&&(Q=D.shift());)D.length||X===void 0?M[Q]&&M[Q]!==Object.prototype[Q]?M=M[Q]:M=M[Q]={}:M[Q]=X}; nG=function(D,X){var M=g.mn("CLOSURE_FLAGS");D=M&&M[D];return D!=null?D:X}; g.mn=function(D,X){D=D.split(".");X=X||g.E8;for(var M=0;M2){var Q=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(h,Q);return D.apply(X,h)}}return function(){return D.apply(X,arguments)}}; g.iW=function(D,X,M){g.iW=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?C1s:Ooi;return g.iW.apply(null,arguments)}; g.oa=function(D,X){var M=Array.prototype.slice.call(arguments,1);return function(){var Q=M.slice();Q.push.apply(Q,arguments);return D.apply(this,Q)}}; g.CG=function(){return Date.now()}; psR=function(D){g.PZ("yt.abuse.playerAttLoaderRun",D)}; O8=function(D){return D}; g.Ah=function(D,X){function M(){} M.prototype=X.prototype;D.vP=X.prototype;D.prototype=new M;D.prototype.constructor=D;D.tS=function(Q,h,H){for(var t=Array(arguments.length-2),q=2;q=0;--M)M in Q&&X.call(void 0,Q[M],M,D)}; g.xB=function(D,X,M){X=Jh(D,X,M);return X<0?null:typeof D==="string"?D.charAt(X):D[X]}; Jh=function(D,X,M){for(var Q=D.length,h=typeof D==="string"?D.split(""):D,H=0;H=0;Q--)if(Q in h&&X.call(M,h[Q],Q,D))return Q;return-1}; g.jb=function(D,X){return x5R(D,X)>=0}; WHH=function(D){if(!Array.isArray(D))for(var X=D.length-1;X>=0;X--)delete D[X];D.length=0}; g.X_=function(D,X){X=x5R(D,X);var M;(M=X>=0)&&g.Dd(D,X);return M}; g.Dd=function(D,X){return Array.prototype.splice.call(D,X,1).length==1}; g.QF=function(D,X){X=Jh(D,X);X>=0&&g.Dd(D,X)}; Gpp=function(D,X){var M=0;Jdp(D,function(Q,h){X.call(void 0,Q,h,D)&&g.Dd(D,h)&&M++})}; g.hy=function(D){return Array.prototype.concat.apply([],arguments)}; g.Hi=function(D){var X=D.length;if(X>0){for(var M=Array(X),Q=0;Q>>1),w=void 0;M?w=X.call(void 0,D[q],q,D):w=X(Q,D[q]);w>0?h=q+1:(H=q,t=!w)}return t?h:-h-1}; g.aM=function(D,X){D.sort(X||Lf)}; un2=function(D,X){var M=Lf;g.aM(D,function(Q,h){return M(X(Q),X(h))})}; g.F_=function(D,X,M){if(!g.Ia(D)||!g.Ia(X)||D.length!=X.length)return!1;var Q=D.length;M=M||ji2;for(var h=0;hX?1:D0&&(X[h]=Q)},D); return X}; wZi=function(D){D=xR(D);var X=[];g.sm(D,function(M,Q){Q in Object.prototype||typeof M!="undefined"&&X.push([Q,":",M].join(""))}); return X}; Ln5=function(D){YR(D,"od",TKm);YR(D,"opac",GC).S=!0;YR(D,"sbeos",GC).S=!0;YR(D,"prf",GC).S=!0;YR(D,"mwt",GC).S=!0;YR(D,"iogeo",GC)}; zC=function(D,X){return D.lastIndexOf(X,0)==0}; sad=function(D,X){var M=D.length-X.length;return M>=0&&D.indexOf(X,M)==M}; g.kR=function(D){return/^[\s\xa0]*$/.test(D)}; g.ub=function(D,X){return D.indexOf(X)!=-1}; jf=function(D,X){return g.ub(D.toLowerCase(),X.toLowerCase())}; g.ML=function(D,X){var M=0;D=Dc(String(D)).split(".");X=Dc(String(X)).split(".");for(var Q=Math.max(D.length,X.length),h=0;M==0&&hX?1:0}; g.Qm=function(){var D=g.E8.navigator;return D&&(D=D.userAgent)?D:""}; NL=function(D){if(!h4&&!HH||!t4)return!1;for(var X=0;X0:!1}; TD=function(){return wA()?!1:qL("Opera")}; Kno=function(){return wA()?!1:qL("Trident")||qL("MSIE")}; ato=function(){return wA()?NL("Microsoft Edge"):qL("Edg/")}; Lr=function(){return qL("Firefox")||qL("FxiOS")}; Kr=function(){return qL("Safari")&&!(so()||(wA()?0:qL("Coast"))||TD()||(wA()?0:qL("Edge"))||ato()||(wA()?NL("Opera"):qL("OPR"))||Lr()||qL("Silk")||qL("Android"))}; so=function(){return wA()?NL("Chromium"):(qL("Chrome")||qL("CriOS"))&&!(wA()?0:qL("Edge"))||qL("Silk")}; Fns=function(){return qL("Android")&&!(so()||Lr()||TD()||qL("Silk"))}; Vbn=function(D){var X={};D.forEach(function(M){X[M[0]]=M[1]}); return function(M){return X[M.find(function(Q){return Q in X})]||""}}; $_9=function(D){var X=g.Qm();if(D==="Internet Explorer"){if(Kno())if((D=/rv: *([\d\.]*)/.exec(X))&&D[1])X=D[1];else{D="";var M=/MSIE +([\d\.]+)/.exec(X);if(M&&M[1])if(X=/Trident\/(\d.\d)/.exec(X),M[1]=="7.0")if(X&&X[1])switch(X[1]){case "4.0":D="8.0";break;case "5.0":D="9.0";break;case "6.0":D="10.0";break;case "7.0":D="11.0"}else D="7.0";else D=M[1];X=D}else X="";return X}var Q=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");M=[];for(var h;h=Q.exec(X);)M.push([h[1],h[2],h[3]||void 0]); X=Vbn(M);switch(D){case "Opera":if(TD())return X(["Version","Opera"]);if(wA()?NL("Opera"):qL("OPR"))return X(["OPR"]);break;case "Microsoft Edge":if(wA()?0:qL("Edge"))return X(["Edge"]);if(ato())return X(["Edg"]);break;case "Chromium":if(so())return X(["Chrome","CriOS","HeadlessChrome"])}return D==="Firefox"&&Lr()||D==="Safari"&&Kr()||D==="Android Browser"&&Fns()||D==="Silk"&&qL("Silk")?(X=M[2])&&X[1]||"":""}; BKi=function(D){if(wA()&&D!=="Silk"){var X=t4.brands.find(function(M){return M.brand===D}); if(!X||!X.version)return NaN;X=X.version.split(".")}else{X=$_9(D);if(X==="")return NaN;X=X.split(".")}return X.length===0?NaN:Number(X[0])}; U_1=function(){var D=null;if(!ZGs)return D;try{var X=function(M){return M}; D=ZGs.createPolicy("goog#html",{createHTML:X,createScript:X,createScriptURL:X})}catch(M){}return D}; Fo=function(){a6===void 0&&(a6=U_1());return a6}; Vm=function(D){this.S=D}; $Z=function(D){var X=Fo();D=X?X.createScriptURL(D):D;return new Vm(D)}; BH=function(D){if(D instanceof Vm)return D.S;throw Error("");}; Zc=function(D){this.S=D}; g.cH=function(D){if(D instanceof Zc)return D.S;throw Error("");}; fr=function(D){this.X8=D}; SX=function(D){return new fr(function(X){return X.substr(0,D.length+1).toLowerCase()===D+":"})}; g.Eo=function(D,X){X=X===void 0?chd:X;a:if(X=X===void 0?chd:X,!(D instanceof Zc)){for(var M=0;M4);h++)X[Oo(D[h])]||(M+="\nInner error "+Q++ +": ",D[h].stack&&D[h].stack.indexOf(D[h].toString())==0||(M+=typeof D[h]==="string"?D[h]:D[h].message+"\n"),M+=o6(D[h],X));h")!=-1&&(D=D.replace(gBR,">")),D.indexOf('"')!=-1&&(D=D.replace(vBW,""")),D.indexOf("'")!=-1&&(D=D.replace(d_9,"'")),D.indexOf("\x00")!=-1&&(D=D.replace(rh9,"�")));return D}; g.J4=function(D){return D==null?"":String(D)}; xZ=function(D){for(var X=0,M=0;M>>0;return X}; WH=function(D){var X=Number(D);return X==0&&g.kR(D)?NaN:X}; iGs=function(D){return String(D).replace(/\-([a-z])/g,function(X,M){return M.toUpperCase()})}; oBR=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; CWd=function(D){return D.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(X,M,Q){return M+Q.toUpperCase()})}; OG1=function(D){var X=1;D=D.split(":");for(var M=[];X>0&&D.length;)M.push(D.shift()),X--;D.length&&M.push(D.join(":"));return M}; GD=function(){return h4||HH?!!t4&&!!t4.platform:!1}; pZm=function(){return GD()?t4.platform==="Android":qL("Android")}; zD=function(){return qL("iPhone")&&!qL("iPod")&&!qL("iPad")}; kZ=function(){return zD()||qL("iPad")||qL("iPod")}; u7=function(){return GD()?t4.platform==="macOS":qL("Macintosh")}; Ahs=function(){return GD()?t4.platform==="Windows":qL("Windows")}; jX=function(D){jX[" "](D);return D}; Y8W=function(D,X){try{return jX(D[X]),!0}catch(M){}return!1}; JhR=function(D,X){var M=ltp;return Object.prototype.hasOwnProperty.call(M,D)?M[D]:M[D]=X(D)}; g.Dj=function(D){return JhR(D,function(){return g.ML(x_i,D)>=0})}; g.XT=function(D,X,M){return Math.min(Math.max(D,X),M)}; g.Mt=function(D,X){D%=X;return D*X<0?D+X:D}; QZ=function(D,X,M){return D+M*(X-D)}; g.hn=function(D,X){this.x=D!==void 0?D:0;this.y=X!==void 0?X:0}; HD=function(D,X){return D==X?!0:D&&X?D.x==X.x&&D.y==X.y:!1}; g.tn=function(D,X){this.width=D;this.height=X}; g.Nt=function(D,X){return D==X?!0:D&&X?D.width==X.width&&D.height==X.height:!1}; qt=function(D){return D.width*D.height}; TK=function(D,X){this.S=D===wP&&X||""}; LR=function(D){if(D instanceof nr)return D;D=String(D).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return b7(D)}; Gyo=function(D){return Wnm(D)}; Wnm=function(D){var X=LR("");return b7(D.map(function(M){return eX(LR(M))}).join(eX(X).toString()))}; Dun=function(D){var X;if(!zrn.test("div"))throw Error("");if(ky2.indexOf("DIV")!==-1)throw Error("");var M="":(D=Gyo(X.map(function(Q){return Q instanceof nr?Q:LR(String(Q))})),M+=">"+D.toString()+""); return b7(M)}; uCH=function(D){for(var X="",M=Object.keys(D),Q=0;Q2&&NS9(h,t,Q,2);return t}; NS9=function(D,X,M,Q){function h(q){q&&X.appendChild(typeof q==="string"?D.createTextNode(q):q)} for(;Q0)h(H);else{a:{if(H&&typeof H.length=="number"){if(g.gK(H)){var t=typeof H.item=="function"||typeof H.item=="string";break a}if(typeof H==="function"){t=typeof H.item=="function";break a}}t=!1}g.$R(t?g.Hi(H):H,h)}}}; g.m7=function(D){return yZ(document,D)}; yZ=function(D,X){X=String(X);D.contentType==="application/xhtml+xml"&&(X=X.toLowerCase());return D.createElement(X)}; g.nR=function(D){return document.createTextNode(String(D))}; g.bv=function(D,X){D.appendChild(X)}; g.Ru=function(D){for(var X;X=D.firstChild;)D.removeChild(X)}; Iu=function(D,X,M){D.insertBefore(X,D.childNodes[M]||null)}; g.gP=function(D){return D&&D.parentNode?D.parentNode.removeChild(D):null}; g.vD=function(D,X){if(!D||!X)return!1;if(D.contains&&X.nodeType==1)return D==X||D.contains(X);if(typeof D.compareDocumentPosition!="undefined")return D==X||!!(D.compareDocumentPosition(X)&16);for(;X&&D!=X;)X=X.parentNode;return X==D}; au=function(D){return D.nodeType==9?D:D.ownerDocument||D.document}; g.dP=function(D,X){if("textContent"in D)D.textContent=X;else if(D.nodeType==3)D.data=String(X);else if(D.firstChild&&D.firstChild.nodeType==3){for(;D.lastChild!=D.firstChild;)D.removeChild(D.lastChild);D.firstChild.data=String(X)}else g.Ru(D),D.appendChild(au(D).createTextNode(String(X)))}; rP=function(D){return D.tagName=="A"&&D.hasAttribute("href")||D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="BUTTON"?!D.disabled&&(!D.hasAttribute("tabindex")||qKm(D)):D.hasAttribute("tabindex")&&qKm(D)}; qKm=function(D){D=D.tabIndex;return typeof D==="number"&&D>=0&&D<32768}; ou=function(D,X,M){if(!X&&!M)return null;var Q=X?String(X).toUpperCase():null;return iv(D,function(h){return(!Q||h.nodeName==Q)&&(!M||typeof h.className==="string"&&g.jb(h.className.split(/\s+/),M))},!0)}; iv=function(D,X,M){D&&!M&&(D=D.parentNode);for(M=0;D;){if(X(D))return D;D=D.parentNode;M++}return null}; KR=function(D){this.S=D||g.E8.document||document}; wiW=function(){this.S=this.ze=null}; OY=function(){}; An=function(){if(!pR())throw Error();}; pR=function(){return!(!Yf||!Yf.performance)}; TSm=function(D){return g.Sq?"webkit"+D:D.toLowerCase()}; lv=function(D){return function(){return D}}; g.Jn=function(){}; LWW=function(D){var X=X||0;return function(){return D.apply(this,Array.prototype.slice.call(arguments,0,X))}}; xf=function(D){var X=!1,M;return function(){X||(M=D(),X=!0);return M}}; WD=function(D){var X=D;return function(){if(X){var M=X;X=null;M()}}}; GK=function(D,X,M){var Q=0;return function(h){g.E8.clearTimeout(Q);var H=arguments;Q=g.E8.setTimeout(function(){D.apply(M,H)},X)}}; zK=function(D,X,M,Q){this.top=D;this.right=X;this.bottom=M;this.left=Q}; kf=function(D){return D.right-D.left}; uv=function(D,X){return D==X?!0:D&&X?D.top==X.top&&D.right==X.right&&D.bottom==X.bottom&&D.left==X.left:!1}; jq=function(D,X,M){X instanceof g.hn?(D.left+=X.x,D.right+=X.x,D.top+=X.y,D.bottom+=X.y):(D.left+=X,D.right+=X,typeof M==="number"&&(D.top+=M,D.bottom+=M));return D}; g.DF=function(D,X,M,Q){this.left=D;this.top=X;this.width=M;this.height=Q}; Xt=function(D,X){return D==X?!0:D&&X?D.left==X.left&&D.width==X.width&&D.top==X.top&&D.height==X.height:!1}; g.Q_=function(D,X,M){if(typeof X==="string")(X=MC(D,X))&&(D.style[X]=M);else for(var Q in X){M=D;var h=X[Q],H=MC(M,Q);H&&(M.style[H]=h)}}; MC=function(D,X){var M=sMW[X];if(!M){var Q=iGs(X);M=Q;D.style[Q]===void 0&&(Q=(g.Sq?"Webkit":Hq?"Moz":null)+CWd(Q),D.style[Q]!==void 0&&(M=Q));sMW[X]=M}return M}; g.tw=function(D,X){var M=D.style[iGs(X)];return typeof M!=="undefined"?M:D.style[MC(D,X)]||""}; NC=function(D,X){var M=au(D);return M.defaultView&&M.defaultView.getComputedStyle&&(D=M.defaultView.getComputedStyle(D,null))?D[X]||D.getPropertyValue(X)||"":""}; qC=function(D,X){return NC(D,X)||(D.currentStyle?D.currentStyle[X]:null)||D.style&&D.style[X]}; g.TN=function(D,X,M){if(X instanceof g.hn){var Q=X.x;X=X.y}else Q=X,X=M;D.style.left=wH(Q,!1);D.style.top=wH(X,!1)}; KW2=function(D){return new g.hn(D.offsetLeft,D.offsetTop)}; L7=function(D){try{return D.getBoundingClientRect()}catch(X){return{left:0,top:0,right:0,bottom:0}}}; ad_=function(D){var X=au(D),M=qC(D,"position"),Q=M=="fixed"||M=="absolute";for(D=D.parentNode;D&&D!=X;D=D.parentNode)if(D.nodeType==11&&D.host&&(D=D.host),M=qC(D,"position"),Q=Q&&M=="static"&&D!=X.documentElement&&D!=X.body,!Q&&(D.scrollWidth>D.clientWidth||D.scrollHeight>D.clientHeight||M=="fixed"||M=="absolute"||M=="relative"))return D;return null}; g.sO=function(D){var X=au(D),M=new g.hn(0,0);if(D==(X?au(X):document).documentElement)return M;D=L7(D);X=FT(X);X=tf5(X.S);M.x=D.left+X.x;M.y=D.top+X.y;return M}; Vfd=function(D,X){var M=new g.hn(0,0),Q=EY(au(D));if(!Y8W(Q,"parent"))return M;do{var h=Q==X?g.sO(D):FWs(D);M.x+=h.x;M.y+=h.y}while(Q&&Q!=X&&Q!=Q.parent&&(D=Q.frameElement)&&(Q=Q.parent));return M}; g.K7=function(D,X){D=$un(D);X=$un(X);return new g.hn(D.x-X.x,D.y-X.y)}; FWs=function(D){D=L7(D);return new g.hn(D.left,D.top)}; $un=function(D){if(D.nodeType==1)return FWs(D);D=D.changedTouches?D.changedTouches[0]:D;return new g.hn(D.clientX,D.clientY)}; g.ax=function(D,X,M){if(X instanceof g.tn)M=X.height,X=X.width;else if(M==void 0)throw Error("missing height argument");D.style.width=wH(X,!0);D.style.height=wH(M,!0)}; wH=function(D,X){typeof D=="number"&&(D=(X?Math.round(D):D)+"px");return D}; g.Ft=function(D){var X=BS_;if(qC(D,"display")!="none")return X(D);var M=D.style,Q=M.display,h=M.visibility,H=M.position;M.visibility="hidden";M.position="absolute";M.display="inline";D=X(D);M.display=Q;M.position=H;M.visibility=h;return D}; BS_=function(D){var X=D.offsetWidth,M=D.offsetHeight,Q=g.Sq&&!X&&!M;return(X===void 0||Q)&&D.getBoundingClientRect?(D=L7(D),new g.tn(D.right-D.left,D.bottom-D.top)):new g.tn(X,M)}; g.V_=function(D,X){D.style.display=X?"":"none"}; $z=function(D){return D?D.passive&&Zfm()?D:D.capture||!1:!1}; Bq=function(D,X,M,Q){return typeof D.addEventListener==="function"?(D.addEventListener(X,M,$z(Q)),!0):!1}; ZF=function(D){if(D.prerendering)return 3;var X;return(X={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[D.visibilityState||D.webkitVisibilityState||D.mozVisibilityState||""])!=null?X:0}; Uun=function(){}; UO=function(D){try{return!!D&&D.location.href!=null&&Y8W(D,"foo")}catch(X){return!1}}; cys=function(D){for(var X=D;D&&D!=D.parent;)D=D.parent,UO(D)&&(X=D);return X}; fdp=function(){return(h4||HH)&&t4?t4.mobile:!f7()&&(qL("iPod")||qL("iPhone")||qL("Android")||qL("IEMobile"))}; f7=function(){return(h4||HH)&&t4?!t4.mobile&&(qL("iPad")||qL("Android")||qL("Silk")):qL("iPad")||qL("Android")&&!qL("Mobile")||qL("Silk")}; SKi=function(D){var X,M;return(M=(X=/https?:\/\/[^\/]+/.exec(D))==null?void 0:X[0])!=null?M:""}; mui=function(D){D=D||SE();for(var X=new ERH(g.E8.location.href,!1),M=null,Q=D.length-1,h=Q;h>=0;--h){var H=D[h];!M&&yy1.test(H.url)&&(M=H);if(H.url&&!H.S){X=H;break}}h=null;H=D.length&&D[Q].url;X.depth!==0&&H&&(h=D[Q]);return new Pb2(X,h,M)}; SE=function(){var D=g.E8,X=[],M=null;do{var Q=D;if(UO(Q)){var h=Q.location.href;M=Q.document&&Q.document.referrer||null}else h=M,M=null;X.push(new ERH(h||""));try{D=Q.parent}catch(H){D=null}}while(D&&Q!==D);Q=0;for(D=X.length-1;Q<=D;++Q)X[Q].depth=D-Q;Q=g.E8;if(Q.location&&Q.location.ancestorOrigins&&Q.location.ancestorOrigins.length===X.length-1)for(D=1;DX&&(X=M.length);return 3997-X-D.Y.length-1}; n7=function(D,X){this.S=D;this.depth=X}; gRp=function(){function D(q,w){return q==null?w:q} var X=SE(),M=Math.max(X.length-1,0),Q=mui(X);X=Q.S;var h=Q.G,H=Q.Y,t=[];H&&t.push(new n7([H.url,H.S?2:0],D(H.depth,1)));h&&h!=H&&t.push(new n7([h.url,2],0));X.url&&X!=H&&t.push(new n7([X.url,0],D(X.depth,M)));Q=g.be(t,function(q,w){return t.slice(0,t.length-w)}); !X.url||(H||h)&&X!=H||(h=SKi(X.url))&&Q.push([new n7([h,1],D(X.depth,M))]);Q.push([]);return g.be(Q,function(q){return IdW(M,q)})}; IdW=function(D,X){g.eE(X,function(h){return h.depth>=0}); var M=Rx(X,function(h,H){return Math.max(h,H.depth)},-1),Q=D_m(M+2); Q[0]=D;g.$R(X,function(h){return Q[h.depth+1]=h.S}); return Q}; vRm=function(){var D=D===void 0?gRp():D;return D.map(function(X){return mh(X)})}; Ix=function(D){D.ZcC=!0;return D}; ifi=function(){var D=du1("IFRAME"),X={};g.$R(ryi(),function(M){D.sandbox&&D.sandbox.supports&&D.sandbox.supports(M)&&(X[M]=!0)}); return X}; du1=function(D,X){X=X===void 0?document:X;return X.createElement(String(D).toLowerCase())}; oRo=function(D){var X=!1;X=X===void 0?!1:X;Yf.google_image_requests||(Yf.google_image_requests=[]);var M=du1("IMG",Yf.document);X&&(M.attributionSrc="");M.src=D;Yf.google_image_requests.push(M)}; gH=function(D){var X="SC";if(D.SC&&D.hasOwnProperty(X))return D.SC;var M=new D;D.SC=M;D.hasOwnProperty(X);return M}; vq=function(){this.G=new Uun;this.S=pR()?new An:new OY}; Cbo=function(){dH();var D=Yf.document;return!!(D&&D.body&&D.body.getBoundingClientRect&&typeof Yf.setInterval==="function"&&typeof Yf.clearInterval==="function"&&typeof Yf.setTimeout==="function"&&typeof Yf.clearTimeout==="function")}; Ofo=function(){dH();return vRm()}; pis=function(){}; dH=function(){var D=gH(pis);if(!D.S){if(!Yf)throw Error("Context has not been set and window is undefined.");D.S=gH(vq)}return D.S}; rH=function(){throw Error("Invalid UTF8");}; Ays=function(D,X){X=String.fromCharCode.apply(null,X);return D==null?X:D+X}; xu5=function(D){var X=!1;X=X===void 0?!1:X;if(YKs){if(X&&(ldp?!D.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(D)))throw Error("Found an unpaired surrogate");D=(Jy5||(Jy5=new TextEncoder)).encode(D)}else{for(var M=0,Q=new Uint8Array(3*D.length),h=0;h>6|192;else{if(H>=55296&&H<=57343){if(H<=56319&&h=56320&&t<=57343){H=(H-55296)*1024+ t-56320+65536;Q[M++]=H>>18|240;Q[M++]=H>>12&63|128;Q[M++]=H>>6&63|128;Q[M++]=H&63|128;continue}else h--}if(X)throw Error("Found an unpaired surrogate");H=65533}Q[M++]=H>>12|224;Q[M++]=H>>6&63|128}Q[M++]=H&63|128}}D=M===Q.length?Q:Q.subarray(0,M)}return D}; ie=function(D){g.E8.setTimeout(function(){throw D;},0)}; WWR=function(D){return Array.prototype.map.call(D,function(X){X=X.toString(16);return X.length>1?X:"0"+X}).join("")}; GCW=function(D){for(var X=[],M=0;M>6|192:((h&64512)==55296&&Q+1>18|240,X[M++]=h>>12&63|128):X[M++]=h>>12|224,X[M++]=h>>6&63|128),X[M++]=h&63|128)}return X}; g.C7=function(D,X){X===void 0&&(X=0);zt1();X=kC1[X];for(var M=Array(Math.floor(D.length/3)),Q=X[64]||"",h=0,H=0;h>2];t=X[(t&3)<<4|q>>4];q=X[(q&15)<<2|w>>6];w=X[w&63];M[H++]=""+T+t+q+w}T=0;w=Q;switch(D.length-h){case 2:T=D[h+1],w=X[(T&15)<<2]||Q;case 1:D=D[h],M[H]=""+X[D>>2]+X[(D&3)<<4|T>>4]+w+Q}return M.join("")}; g.OO=function(D,X,M){if(u_o&&!X)D=g.E8.btoa(D);else{for(var Q=[],h=0,H=0;H255){var q=Error("go/unicode-to-byte-error");if(M)throw q;Q[h++]=t&255;t>>=8}Q[h++]=t}D=g.C7(Q,X)}return D}; DLp=function(D){var X=[];jMn(D,function(M){X.push(M)}); return X}; p7=function(D){var X=D.length,M=X*3/4;M%3?M=Math.floor(M):g.ub("=.",D[X-1])&&(M=g.ub("=.",D[X-2])?M-2:M-1);var Q=new Uint8Array(M),h=0;jMn(D,function(H){Q[h++]=H}); return h!==M?Q.subarray(0,h):Q}; jMn=function(D,X){function M(w){for(;Q>4);t!=64&&(X(H<<4&240|t>>2),q!=64&&X(t<<6&192|q))}}; zt1=function(){if(!Aw){Aw={};for(var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),X=["+/=","+/","-_=","-_.","-_"],M=0;M<5;M++){var Q=D.concat(X[M].split(""));kC1[M]=Q;for(var h=0;h=X||(Q[D]=M+1,D=Error(),nBi(D,"incident"),ie(D))}}; jE=function(D,X,M){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(M===void 0?0:M)&&Symbol.for&&D?Symbol.for(D):D!=null?Symbol(D):Symbol():X}; Mv=function(D,X){D4||XB in D||TA_(D,Lv9);D[XB]|=X}; Q9=function(D,X){D4||XB in D||TA_(D,Lv9);D[XB]=X}; hj=function(){return typeof BigInt==="function"}; tj=function(D,X){return X===void 0?D.S!==HK&&!!(2&(D.K$[XB]|0)):!!(2&X)&&D.S!==HK}; s6W=function(D,X){if(D!=null)if(typeof D==="string")D=D?new Yz(D,le):Jw();else if(D.constructor!==Yz)if(qoW&&D!=null&&D instanceof Uint8Array)D=D.length?new Yz(new Uint8Array(D),le):Jw();else{if(!X)throw Error();D=void 0}return D}; Nv=function(D,X){if(typeof X!=="number"||X<0||X>=D.length)throw Error();}; Kv1=function(D,X,M){var Q=X&128?0:-1,h=D.length,H;if(H=!!h)H=D[h-1],H=H!=null&&typeof H==="object"&&H.constructor===Object;var t=h+(H?-1:0);for(X=X&128?1:0;XX.length)return!1;if(D.lengthh)return!1;if(Q>>0;FB=X;V9=(D-X)/4294967296>>>0}; Z4=function(D){if(D<0){$l(0-D);var X=g.e(BK(FB,V9));D=X.next().value;X=X.next().value;FB=D>>>0;V9=X>>>0}else $l(D)}; cK=function(D,X){var M=X*4294967296+(D>>>0);return Number.isSafeInteger(M)?M:UH(D,X)}; fg=function(D,X){var M=X&2147483648;M&&(D=~D+1>>>0,X=~X>>>0,D==0&&(X=X+1>>>0));D=cK(D,X);return typeof D==="number"?M?-D:D:M?"-"+D:D}; EH=function(D,X){return hj()?sH(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(X))<>>=0;D>>>=0;if(X<=2097151)var M=""+(4294967296*X+D);else hj()?M=""+(BigInt(X)<>>24|X<<8)&16777215,X=X>>16&65535,D=(D&16777215)+M*6777216+X*6710656,M+=X*8147497,X*=2,D>=1E7&&(M+=D/1E7>>>0,D%=1E7),M>=1E7&&(X+=M/1E7>>>0,M%=1E7),M=X+$Li(M)+$Li(D));return M}; $Li=function(D){D=String(D);return"0000000".slice(D.length)+D}; Ss=function(D,X){X&2147483648?hj()?D=""+(BigInt(X|0)<>>0)):(X=g.e(BK(D,X)),D=X.next().value,X=X.next().value,D="-"+UH(D,X)):D=UH(D,X);return D}; y9=function(D){if(D.length<16)Z4(Number(D));else if(hj())D=BigInt(D),FB=Number(D&BigInt(4294967295))>>>0,V9=Number(D>>BigInt(32)&BigInt(4294967295));else{var X=+(D[0]==="-");V9=FB=0;for(var M=D.length,Q=0+X,h=(M-X)%6+X;h<=M;Q=h,h+=6)Q=Number(D.slice(Q,h)),V9*=1E6,FB=FB*1E6+Q,FB>=4294967296&&(V9+=Math.trunc(FB/4294967296),V9>>>=0,FB>>>=0);X&&(X=g.e(BK(FB,V9)),D=X.next().value,X=X.next().value,FB=D,V9=X)}}; BK=function(D,X){X=~X;D?D=~D+1:X+=1;return[D,X]}; PK=function(D){return Array.prototype.slice.call(D)}; mf=function(D){if(D!=null&&typeof D!=="number")throw Error("Value of float/double field must be a number, found "+typeof D+": "+D);return D}; BA2=function(D){return D.displayName||D.name||"unknown type name"}; ng=function(D){if(D!=null&&typeof D!=="boolean")throw Error("Expected boolean but got "+bW(D)+": "+D);return D}; es=function(D){switch(typeof D){case "bigint":return!0;case "number":return b_(D);case "string":return ZrH.test(D);default:return!1}}; ULW=function(D){if(typeof D!=="number")throw kz("int32");if(!b_(D))throw kz("int32");return D|0}; Re=function(D){return D==null?D:ULW(D)}; Ie=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return b_(D)?D|0:void 0}; g$=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return b_(D)?D>>>0:void 0}; SoH=function(D){var X=0;X=X===void 0?0:X;if(!es(D))throw kz("int64");var M=typeof D;switch(X){case 512:switch(M){case "string":return vK(D);case "bigint":return String(d$(64,D));default:return oe(D)}case 1024:switch(M){case "string":return c42(D);case "bigint":return sH(d$(64,D));default:return fco(D)}case 0:switch(M){case "string":return vK(D);case "bigint":return sH(d$(64,D));default:return Cg(D)}default:return mv(X,"Unknown format requested type for int64")}}; OH=function(D){return D==null?D:SoH(D)}; var t2n=function(D,X){return ai[N[15]](this,8,D,X)}; EZs=function(D){var X=D.length;if(D[0]==="-"?X<20||X===20&&D<="-9223372036854775808":X<19||X===19&&D<="9223372036854775807")return D;y9(D);return Ss(FB,V9)}; Cg=function(D){es(D);D=pg(D);Aj(D)||(Z4(D),D=fg(FB,V9));return D}; oe=function(D){es(D);D=pg(D);Aj(D)?D=String(D):(Z4(D),D=Ss(FB,V9));return D}; vK=function(D){es(D);var X=pg(Number(D));if(Aj(X))return String(X);X=D.indexOf(".");X!==-1&&(D=D.substring(0,X));return EZs(D)}; c42=function(D){var X=pg(Number(D));if(Aj(X))return sH(X);X=D.indexOf(".");X!==-1&&(D=D.substring(0,X));return hj()?sH(d$(64,BigInt(D))):sH(EZs(D))}; fco=function(D){return Aj(D)?sH(Cg(D)):sH(oe(D))}; y4W=function(D){if(D==null)return D;var X=typeof D;if(X==="bigint")return String(d$(64,D));if(es(D)){if(X==="string")return vK(D);if(X==="number")return Cg(D)}}; mLW=function(D){if(D==null)return D;var X=typeof D;if(X==="bigint")return String(P7m(64,D));if(es(D)){if(X==="string")return es(D),X=pg(Number(D)),Aj(X)&&X>=0?D=String(X):(X=D.indexOf("."),X!==-1&&(D=D.substring(0,X)),D[0]==="-"?X=!1:(X=D.length,X=X<20?!0:X===20&&D<="18446744073709551615"),X||(y9(D),D=UH(FB,V9))),D;if(X==="number")return es(D),D=pg(D),D>=0&&Aj(D)||(Z4(D),D=cK(FB,V9)),D}}; nZn=function(D){if(D==null||typeof D=="string"||D instanceof Yz)return D}; br9=function(D){if(typeof D!=="string")throw Error();return D}; Yl=function(D){if(D!=null&&typeof D!=="string")throw Error();return D}; l_=function(D){return D==null||typeof D==="string"?D:void 0}; Jj=function(D,X){if(!(D instanceof X))throw Error("Expected instanceof "+BA2(X)+" but got "+(D&&BA2(D.constructor)));return D}; e3R=function(D,X,M){if(D!=null&&D[xl]===WK)return D;if(Array.isArray(D)){var Q=D[XB]|0;M=Q|M&32|M&2;M!==Q&&Q9(D,M);return new X(D)}}; GG=function(D){return D}; kl=function(D){var X=O8(zG);return X?D[X]:void 0}; u_=function(){}; js=function(D,X){for(var M in D)!isNaN(M)&&X(D,+M,D[M])}; R3p=function(D){var X=new u_;js(D,function(M,Q,h){X[Q]=PK(h)}); X.Eq=D.Eq;return X}; gZR=function(D,X){X<100||ue(Icd,1)}; X$=function(D,X,M,Q){var h=Q!==void 0;Q=!!Q;var H=O8(zG),t;!h&&D4&&H&&(t=D[H])&&js(t,gZR);H=[];var q=D.length;t=4294967295;var w=!1,T=!!(X&64),L=T?X&128?0:-1:void 0;if(!(X&1)){var K=q&&D[q-1];K!=null&&typeof K==="object"&&K.constructor===Object?(q--,t=q):K=void 0;if(T&&!(X&128)&&!h){w=!0;var a;t=((a=DK)!=null?a:GG)(t-L,L,D,K,void 0)+L}}X=void 0;for(a=0;a=t){var V=a-L,c=void 0;((c=X)!=null?c:X={})[V]=F}else H[a]=F}if(K)for(var S in K)q=K[S],q!= null&&(q=M(q,Q))!=null&&(a=+S,F=void 0,T&&!Number.isNaN(a)&&(F=a+L)0?void 0:D===0?oZn||(oZn=[0,void 0]):[-D,void 0];case "string":return[0,D];case "object":return D}}; Hl=function(D,X){return Or1(D,X[0],X[1])}; tx=function(D,X,M){return Or1(D,X,M,2048)}; Or1=function(D,X,M,Q){Q=Q===void 0?0:Q;if(D==null){var h=32;M?(D=[M],h|=128):D=[];X&&(h=h&-16760833|(X&1023)<<14)}else{if(!Array.isArray(D))throw Error("narr");h=D[XB]|0;if(pHR&&1&h)throw Error("rfarr");2048&h&&!(2&h)&&A41();if(h&256)throw Error("farr");if(h&64)return(h|Q)!==h&&Q9(D,h|Q),D;if(M&&(h|=128,M!==D[0]))throw Error("mid");a:{M=D;h|=64;var H=M.length;if(H){var t=H-1,q=M[t];if(q!=null&&typeof q==="object"&&q.constructor===Object){X=h&128?0:-1;t-=X;if(t>=1024)throw Error("pvtlmt");for(var w in q)H= +w,H1024)throw Error("spvt");h=h&-16760833|(w&1023)<<14}}}Q9(D,h|64|Q);return D}; A41=function(){if(pHR)throw Error("carr");ue(Yoi,5)}; lcR=function(D,X){if(typeof D!=="object")return D;if(Array.isArray(D)){var M=D[XB]|0;D.length===0&&M&1?D=void 0:M&2||(!X||4096&M||16&M?D=Nx(D,M,!1,X&&!(M&16)):(Mv(D,34),M&4&&Object.freeze(D)));return D}if(D!=null&&D[xl]===WK)return X=D.K$,M=X[XB]|0,tj(D,M)?D:qx(D,X,M)?wT(D,X):Nx(X,M);if(D instanceof Yz)return D}; wT=function(D,X,M){D=new D.constructor(X);M&&(D.S=HK);D.G=HK;return D}; Nx=function(D,X,M,Q){Q!=null||(Q=!!(34&X));D=X$(D,X,lcR,Q);Q=32;M&&(Q|=2);X=X&16769217|Q;Q9(D,X);return D}; J4R=function(D){var X=D.K$,M=X[XB]|0;return tj(D,M)?qx(D,X,M)?wT(D,X,!0):new D.constructor(Nx(X,M,!1)):D}; TF=function(D){if(D.S!==HK)return!1;var X=D.K$;X=Nx(X,X[XB]|0);Mv(X,2048);D.K$=X;D.S=void 0;D.G=void 0;return!0}; LQ=function(D){if(!TF(D)&&tj(D,D.K$[XB]|0))throw Error();}; s1=function(D,X){X===void 0&&(X=D[XB]|0);X&32&&!(X&4096)&&Q9(D,X|4096)}; qx=function(D,X,M){return M&2?!0:M&32&&!(M&4096)?(Q9(X,M|2),D.S=HK,!0):!1}; aG=function(D,X,M,Q,h){Object.isExtensible(D);X=KQ(D.K$,X,M,h);if(X!==null||Q&&D.G!==HK)return X}; KQ=function(D,X,M,Q){if(X===-1)return null;var h=X+(M?0:-1),H=D.length-1;if(!(H<1+(M?0:-1))){if(h>=H){var t=D[H];if(t!=null&&typeof t==="object"&&t.constructor===Object){M=t[X];var q=!0}else if(h===H)M=t;else return}else M=D[h];if(Q&&M!=null){Q=Q(M);if(Q==null)return Q;if(!Object.is(Q,M))return q?t[X]=Q:D[h]=Q,Q}return M}}; V2=function(D,X,M,Q){LQ(D);var h=D.K$;F$(h,h[XB]|0,X,M,Q);return D}; F$=function(D,X,M,Q,h){var H=M+(h?0:-1),t=D.length-1;if(t>=1+(h?0:-1)&&H>=t){var q=D[t];if(q!=null&&typeof q==="object"&&q.constructor===Object)return q[M]=Q,X}if(H<=t)return D[H]=Q,X;if(Q!==void 0){var w;t=((w=X)!=null?w:X=D[XB]|0)>>14&1023||536870912;M>=t?Q!=null&&(H={},D[t+(h?0:-1)]=(H[M]=Q,H)):D[H]=Q}return X}; cl=function(D,X,M,Q,h){var H=D.K$,t=H[XB]|0;Q=tj(D,t)?1:Q;h=!!h||Q===3;Q===2&&TF(D)&&(H=D.K$,t=H[XB]|0);D=$Q(H,X);var q=D===Bl?7:D[XB]|0,w=ZK(q,t);var T=4&w?!1:!0;if(T){4&w&&(D=PK(D),q=0,w=U1(w,t),t=F$(H,t,X,D));for(var L=0,K=0;L32)for(Q|=(q&127)>>4,h=3;h<32&&q&128;h+=7)q=H[t++],Q|=(q&127)<>>0,Q>>>0);throw Error();}; aq=function(D,X){D.S=X;if(X>D.Y)throw Error();}; V0=function(D){var X=D.G,M=D.S,Q=X[M++],h=Q&127;if(Q&128&&(Q=X[M++],h|=(Q&127)<<7,Q&128&&(Q=X[M++],h|=(Q&127)<<14,Q&128&&(Q=X[M++],h|=(Q&127)<<21,Q&128&&(Q=X[M++],h|=Q<<28,Q&128&&X[M++]&128&&X[M++]&128&&X[M++]&128&&X[M++]&128&&X[M++]&128)))))throw Error();aq(D,M);return h}; $X=function(D){var X=D.G,M=D.S,Q=X[M+0],h=X[M+1],H=X[M+2];X=X[M+3];aq(D,D.S+4);return(Q<<0|h<<8|H<<16|X<<24)>>>0}; Bh=function(D){var X=$X(D);D=$X(D);return cK(X,D)}; ZX=function(D){var X=$X(D);D=$X(D);return sH(hj()?BigInt.asUintN(64,(BigInt(D>>>0)<>>0)):UH(X,D))}; UU=function(D){var X=$X(D),M=$X(D);D=(M>>31)*2+1;var Q=M>>>20&2047;X=4294967296*(M&1048575)+X;return Q==2047?X?NaN:D*Infinity:Q==0?D*4.9E-324*X:D*Math.pow(2,Q-1075)*(X+4503599627370496)}; ch=function(D){for(var X=0,M=D.S,Q=M+10,h=D.G;MD.Y)throw Error();D.S=X;return M}; hyd=function(D,X){if(X==0)return Jw();var M=Mq9(D,X);D.CM&&D.D?M=D.G.subarray(M,M+X):(D=D.G,X=M+X,M=M===X?new Uint8Array(0):Qus?D.slice(M,X):new Uint8Array(D.subarray(M,X)));return M.length==0?Jw():new Yz(M,le)}; SZ=function(D,X,M,Q){if(f1.length){var h=f1.pop();h.init(D,X,M,Q);D=h}else D=new K1(D,X,M,Q);this.S=D;this.U=this.S.S;this.G=this.Y=-1;HRR(this,Q)}; HRR=function(D,X){X=X===void 0?{}:X;D.Es=X.Es===void 0?!1:X.Es}; tqo=function(D,X,M,Q){if(EU.length){var h=EU.pop();HRR(h,Q);h.S.init(D,X,M,Q);return h}return new SZ(D,X,M,Q)}; NPW=function(D){var X=D.S;if(X.S==X.Y)return!1;D.U=D.S.S;var M=V0(D.S)>>>0;X=M>>>3;M&=7;if(!(M>=0&&M<=5))throw Error();if(X<1)throw Error();D.Y=X;D.G=M;return!0}; y0=function(D){switch(D.G){case 0:D.G!=0?y0(D):ch(D.S);break;case 1:D=D.S;aq(D,D.S+8);break;case 2:if(D.G!=2)y0(D);else{var X=V0(D.S)>>>0;D=D.S;aq(D,D.S+X)}break;case 5:D=D.S;aq(D,D.S+4);break;case 3:X=D.Y;do{if(!NPW(D))throw Error();if(D.G==4){if(D.Y!=X)throw Error();break}y0(D)}while(1);break;default:throw Error();}}; Ph=function(D,X,M){var Q=D.S.Y,h=V0(D.S)>>>0;h=D.S.S+h;var H=h-Q;H<=0&&(D.S.Y=h,M(X,D,void 0,void 0,void 0),H=h-D.S.S);if(H)throw Error();D.S.S=h;D.S.Y=Q}; bg=function(D){var X=V0(D.S)>>>0;D=D.S;var M=Mq9(D,X);D=D.G;if(qYH){var Q=D,h;(h=my)||(h=my=new TextDecoder("utf-8",{fatal:!0}));X=M+X;Q=M===0&&X===Q.length?Q:Q.subarray(M,X);try{var H=h.decode(Q)}catch(T){if(n1===void 0){try{h.decode(new Uint8Array([128]))}catch(L){}try{h.decode(new Uint8Array([97])),n1=!0}catch(L){n1=!1}}!n1&&(my=void 0);throw T;}}else{H=M;X=H+X;M=[];for(var t=null,q,w;H=X?rH():(w=D[H++],q<194||(w&192)!==128?(H--,rH()):M.push((q&31)<<6|w&63)): q<240?H>=X-1?rH():(w=D[H++],(w&192)!==128||q===224&&w<160||q===237&&w>=160||((h=D[H++])&192)!==128?(H--,rH()):M.push((q&15)<<12|(w&63)<<6|h&63)):q<=244?H>=X-2?rH():(w=D[H++],(w&192)!==128||(q<<28)+(w-144)>>30!==0||((h=D[H++])&192)!==128||((Q=D[H++])&192)!==128?(H--,rH()):(q=(q&7)<<18|(w&63)<<12|(h&63)<<6|Q&63,q-=65536,M.push((q>>10&1023)+55296,(q&1023)+56320))):rH(),M.length>=8192&&(t=Ays(t,M),M.length=0);H=Ays(t,M)}return H}; wD5=function(D){var X=V0(D.S)>>>0;return hyd(D.S,X)}; TP2=function(D,X,M){var Q=V0(D.S)>>>0;for(Q=D.S.S+Q;D.S.S>>0;this.S=X>>>0}; K75=function(D){if(!D)return sui||(sui=new Rq(0,0));if(!/^\d+$/.test(D))return null;y9(D);return new Rq(FB,V9)}; Iq=function(D,X){this.G=D>>>0;this.S=X>>>0}; F75=function(D){if(!D)return aj9||(aj9=new Iq(0,0));if(!/^-?\d+$/.test(D))return null;y9(D);return new Iq(FB,V9)}; gQ=function(){this.S=[]}; vh=function(D,X,M){for(;M>0||X>127;)D.S.push(X&127|128),X=(X>>>7|M<<25)>>>0,M>>>=7;D.S.push(X)}; dQ=function(D,X){for(;X>127;)D.S.push(X&127|128),X>>>=7;D.S.push(X)}; Vq9=function(D,X){if(X>=0)dQ(D,X);else{for(var M=0;M<9;M++)D.S.push(X&127|128),X>>=7;D.S.push(1)}}; rQ=function(D,X){D.S.push(X>>>0&255);D.S.push(X>>>8&255);D.S.push(X>>>16&255);D.S.push(X>>>24&255)}; $t9=function(){this.Y=[];this.G=0;this.S=new gQ}; ig=function(D,X){X.length!==0&&(D.Y.push(X),D.G+=X.length)}; BPH=function(D,X){oq(D,X,2);X=D.S.end();ig(D,X);X.push(D.G);return X}; ZR1=function(D,X){var M=X.pop();for(M=D.G+D.S.length()-M;M>127;)X.push(M&127|128),M>>>=7,D.G++;X.push(M);D.G++}; var QiW=function(D,X,M,Q,h){return ai[N[15]](this,41,D,X,M,Q,h)}; oq=function(D,X,M){dQ(D.S,X*8+M)}; Ut9=function(D,X,M){if(M!=null){switch(typeof M){case "string":K75(M)}oq(D,X,1);switch(typeof M){case "number":D=D.S;$l(M);rQ(D,FB);rQ(D,V9);break;case "bigint":M=BigInt.asUintN(64,M);M=new Rq(Number(M&BigInt(4294967295)),Number(M>>BigInt(32)));D=D.S;X=M.S;rQ(D,M.G);rQ(D,X);break;default:M=K75(M),D=D.S,X=M.S,rQ(D,M.G),rQ(D,X)}}}; C1=function(D,X,M){oq(D,X,2);dQ(D.S,M.length);ig(D,D.S.end());ig(D,M)}; OU=function(){function D(){throw Error();} Object.setPrototypeOf(D,D.prototype);return D}; p1=function(D,X,M){this.K$=tx(D,X,M)}; cnW=function(D,X){if(X==null||X=="")return new D;X=JSON.parse(X);if(!Array.isArray(X))throw Error("dnarr");Mv(X,32);return new D(X)}; YX=function(D,X,M){this.uN=D;this.HM=X;D=O8(AK);this.S=!!D&&M===D||!1}; lg=function(D,X){var M=M===void 0?AK:M;return new YX(D,X,M)}; SYm=function(D,X,M,Q,h){X=fjn(X,Q);X!=null&&(M=BPH(D,M),h(X,D),ZR1(D,M))}; Wh=function(D,X,M,Q){var h=Q[D];if(h)return h;h={};h.Xr=Q;h.nL=C79(Q[0]);var H=Q[1],t=1;H&&H.constructor===Object&&(h.extensions=H,H=Q[++t],typeof H==="function"&&(h.D6=!0,JK!=null||(JK=H),xX!=null||(xX=Q[t+1]),H=Q[t+=2]));for(var q={};H&&Array.isArray(H)&&H.length&&typeof H[0]==="number"&&H[0]>0;){for(var w=0;w>BigInt(32)));vh(D.S,M.G,M.S);break;default:M=F75(X),vh(D.S,M.G,M.S)}}}; wi=function(D,X,M){X=Ie(X);X!=null&&X!=null&&(oq(D,M,0),Vq9(D.S,X))}; rnm=function(D,X,M){X=X==null||typeof X==="boolean"?X:typeof X==="number"?!!X:void 0;X!=null&&(oq(D,M,0),D.S.S.push(X?1:0))}; iRs=function(D,X,M){X=l_(X);X!=null&&C1(D,M,xu5(X))}; ofH=function(D,X,M,Q,h){X=fjn(X,Q);X!=null&&(M=BPH(D,M),h(X,D),ZR1(D,M))}; OR2=function(D,X,M){if(M!==eZ)throw Error();this.typeName=D;this.S=X;if(M!==eZ)throw Error();Cv1.set(D,this)}; Ans=function(){var D=TE;this.S=pDs;this.isRepeated=0;this.G=oG;this.defaultValue=void 0;this.Y=D.messageId!=null?qv:void 0}; YYR=function(D,X){return function(M,Q){var h={ZX:!0};Q&&Object.assign(h,Q);M=tqo(M,void 0,void 0,h);try{var H=new D,t=H.K$;ug(X)(t,M);var q=H}finally{M.free()}return q}}; ljn=function(D){return function(){var X=new $t9;Ijd(this.K$,X,Wh(Xa,DO,Mg,D));ig(X,X.S.end());for(var M=new Uint8Array(X.G),Q=X.Y,h=Q.length,H=0,t=0;t-1)return X.apply(null,g.xW(M));try{return D.S=D.Y.S.now(),X.apply(null,g.xW(M))}finally{D.U+=D.Y.S.now()-D.S,D.S=-1,D.G+=1}}}; xt9=function(D,X){this.G=D;this.Y=X;this.S=new JnH(D)}; W72=function(){this.S={}}; uTd=function(){this.Y=void 0;this.G=this.X=0;this.D=-1;this.uM=new Ay;YR(this.uM,"mv",GKo).S=!0;YR(this.uM,"omid",GC);YR(this.uM,"epoh",GC).S=!0;YR(this.uM,"epph",GC).S=!0;YR(this.uM,"umt",GC).S=!0;YR(this.uM,"phel",GC).S=!0;YR(this.uM,"phell",GC).S=!0;YR(this.uM,"oseid",zy_).S=!0;var D=this.uM;D.S.sloi||(D.S.sloi=new Cf);D.S.sloi.S=!0;YR(this.uM,"mm",a5);YR(this.uM,"ovms",kK1).S=!0;YR(this.uM,"xdi",GC).S=!0;YR(this.uM,"amp",GC).S=!0;YR(this.uM,"prf",GC).S=!0;YR(this.uM,"gtx",GC).S=!0;YR(this.uM, "mvp_lv",GC).S=!0;YR(this.uM,"ssmol",GC).S=!0;YR(this.uM,"fmd",GC).S=!0;YR(this.uM,"gen204simple",GC);this.S=new xt9(dH(),this.uM);this.U=!1;this.flags=new W72}; Fa=function(){return gH(uTd)}; juH=function(D,X,M,Q){if(Math.random()<(Q||D.S))try{if(M instanceof y_)var h=M;else h=new y_,EO(M,function(t,q){var w=h,T=w.U++;t=Pq(q,t);w.S.push(T);w.G[T]=t}); var H=h.QF(D.G,"pagead2.googlesyndication.com","/pagead/gen_204?id="+X+"&");H&&(dH(),oRo(H))}catch(t){}}; DCn=function(D,X,M){M=M===void 0?{}:M;this.error=D;this.meta=M;this.context=X.context;this.msg=X.message||"";this.id=X.id||"jserror"}; XqW=function(){var D=D===void 0?g.E8:D;return(D=D.performance)&&D.now&&D.timing?Math.floor(D.now()+D.timing.navigationStart):g.CG()}; MEm=function(){var D=D===void 0?g.E8:D;return(D=D.performance)&&D.now?D.now():null}; Qx9=function(D,X,M){this.label=D;this.type=X;this.value=M;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; $c=function(){var D=window;this.events=[];this.G=D||g.E8;var X=null;D&&(D.google_js_reporting_queue=D.google_js_reporting_queue||[],this.events=D.google_js_reporting_queue,X=D.google_measure_js_timing);this.S=VK()||(X!=null?X:Math.random()<1)}; hU5=function(D){D&&BR&&VK()&&(BR.clearMarks("goog_"+D.label+"_"+D.uniqueId+"_start"),BR.clearMarks("goog_"+D.label+"_"+D.uniqueId+"_end"))}; ZO=function(D,X,M,Q,h,H,t){var q="";D&&(q+=D+":");M&&(q+="//",X&&(q+=X+"@"),q+=M,Q&&(q+=":"+Q));h&&(q+=h);H&&(q+="?"+H);t&&(q+="#"+t);return q}; g.US=function(D){return D.match(H7s)}; tE1=function(D){return D?decodeURI(D):D}; g.cR=function(D){return tE1(g.US(D)[3]||null)}; fJ=function(D){return tE1(g.US(D)[5]||null)}; g.NHi=function(D){D=g.US(D);return ZO(D[1],D[2],D[3],D[4])}; Sj=function(D){D=g.US(D);return ZO(null,null,null,null,D[5],D[6],D[7])}; qO5=function(D){var X=D.indexOf("#");return X<0?D:D.slice(0,X)}; ES=function(D,X){if(D){D=D.split("&");for(var M=0;M=0){var H=D[M].substring(0,Q);h=D[M].substring(Q+1)}else H=D[M];X(H,h?YZ(h):"")}}}; yK=function(D,X){if(!X)return D;var M=D.indexOf("#");M<0&&(M=D.length);var Q=D.indexOf("?");if(Q<0||Q>M){Q=M;var h=""}else h=D.substring(Q+1,M);D=[D.slice(0,Q),h,D.slice(M)];M=D[1];D[1]=X?M?M+"&"+X:X:M;return D[0]+(D[1]?"?"+D[1]:"")+D[2]}; PR=function(D,X,M){if(Array.isArray(X))for(var Q=0;Q=0&&XM)h=M;Q+=X.length+1;return YZ(D.slice(Q,h!==-1?h:0))}; gi=function(D,X){for(var M=D.search(R5),Q=0,h,H=[];(h=ej(D,Q,X,M))>=0;)H.push(D.substring(Q,h)),Q=Math.min(D.indexOf("&",h)+1||M,M);H.push(D.slice(Q));return H.join("").replace(Lho,"$1")}; sxR=function(D,X,M){return bF(gi(D,X),X,M)}; KhW=function(){var D=vR;this.S=di;this.Pg="jserror";this.H6=!0;this.Og=null;this.G=this.Mc;this.kR=D===void 0?null:D}; aFp=function(D,X,M){var Q=ri;return KJ(Fa().S.S,function(){try{if(Q.kR&&Q.kR.S){var h=Q.kR.start(D.toString(),3);var H=X();Q.kR.end(h)}else H=X()}catch(q){var t=Q.H6;try{hU5(h),t=Q.G(D,new iF(o5(q)),void 0,M)}catch(w){Q.Mc(217,w)}if(!t)throw q;}return H})()}; CJ=function(D,X,M,Q){return KJ(Fa().S.S,function(){var h=g.BZ.apply(0,arguments);return aFp(D,function(){return X.apply(M,h)},Q)})}; o5=function(D){var X=D.toString();D.name&&X.indexOf(D.name)==-1&&(X+=": "+D.name);D.message&&X.indexOf(D.message)==-1&&(X+=": "+D.message);if(D.stack)a:{D=D.stack;var M=X;try{D.indexOf(M)==-1&&(D=M+"\n"+D);for(var Q;D!=Q;)Q=D,D=D.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");X=D.replace(/\n */g,"\n");break a}catch(h){X=M;break a}X=void 0}return X}; iF=function(D){DCn.call(this,Error(D),{message:D})}; Fh5=function(){Yf&&typeof Yf.google_measure_js_timing!="undefined"&&(Yf.google_measure_js_timing||vR.disable())}; VEW=function(D){ri.Og=function(X){g.$R(D,function(M){M(X)})}}; $Cd=function(D,X){return aFp(D,X)}; OS=function(D,X){return CJ(D,X)}; pJ=function(D,X,M,Q){ri.Mc(D,X,M,Q)}; AT=function(){return Date.now()-BHn}; Z72=function(){var D=Fa().Y,X=Yc>=0?AT()-Yc:-1,M=lF?AT()-JT:-1,Q=xc>=0?AT()-xc:-1;if(D==947190542)return 100;if(D==79463069)return 200;D=[2E3,4E3];var h=[250,500,1E3];pJ(637,Error(),.001);var H=X;M!=-1&&M1500&&Q<4E3?500:t}; WR=function(D,X,M){var Q=new zK(0,0,0,0);this.time=D;this.volume=null;this.Y=X;this.S=Q;this.G=M}; GE=function(D,X,M,Q,h,H,t,q){this.U=D;this.J=X;this.Y=M;this.X=Q;this.S=h;this.D=H;this.G=t;this.K=q}; cws=function(D){var X=D!==D.top,M=D.top===cys(D),Q=-1,h=0;if(X&&M&&D.top.mraid){Q=3;var H=D.top.mraid}else Q=(H=D.mraid)?X?M?2:1:0:-1;H&&(H.IS_GMA_SDK||(h=2),Qa1(UCo,function(t){return typeof H[t]==="function"})||(h=1)); return{Hv:H,compatibility:h,B6F:Q}}; fF5=function(){var D=window.document;return D&&typeof D.elementFromPoint==="function"}; SOW=function(D,X,M){if(D&&X!==null&&X!=X.top){if(!X.top)return new g.tn(-12245933,-12245933);X=X.top}try{return(M===void 0?0:M)?(new g.tn(X.innerWidth,X.innerHeight)).round():htd(X||window).round()}catch(Q){return new g.tn(-12245933,-12245933)}}; zE=function(D,X,M){try{if(D){if(!X.top)return new zK(-12245933,-12245933,-12245933,-12245933);X=X.top}var Q=SOW(D,X,M),h=Q.height,H=Q.width;if(H===-12245933)return new zK(H,H,H,H);var t=FT(X.document);var q=tf5(t.S);var w=q.x,T=q.y;return new zK(T,w+H,T+h,w)}catch(L){return new zK(-12245933,-12245933,-12245933,-12245933)}}; kc=function(D,X){X=Math.pow(10,X);return Math.floor(D*X)/X}; Ezd=function(D){return new zK(D.top,D.right,D.bottom,D.left)}; ywH=function(D){var X=D.top||0,M=D.left||0;return new zK(X,M+(D.width||0),X+(D.height||0),M)}; uF=function(D){return D!=null&&D>=0&&D<=1}; Pe9=function(){var D=g.Qm();return D?jj("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(X){return jf(D,X)})||jf(D,"OMI/")&&!jf(D,"XiaoMi/")?!0:jf(D,"Presto")&&jf(D,"Linux")&&!jf(D,"X11")&&!jf(D,"Android")&&!jf(D,"Mobi"):!1}; mC5=function(){this.Y=!UO(Yf.top);this.isMobileDevice=f7()||fdp();var D=SE();this.domain=D.length>0&&D[D.length-1]!=null&&D[D.length-1].url!=null?g.cR(D[D.length-1].url)||"":"";this.S=new zK(0,0,0,0);this.U=new g.tn(0,0);this.D=new g.tn(0,0);this.J=new zK(0,0,0,0);this.frameOffset=new g.hn(0,0);this.X=0;this.K=!1;this.G=!(!Yf||!cws(Yf).Hv);this.update(Yf)}; nzp=function(D,X){X&&X.screen&&(D.U=new g.tn(X.screen.width,X.screen.height))}; b75=function(D,X){a:{var M=D.S?new g.tn(kf(D.S),D.S.getHeight()):new g.tn(0,0);X=X===void 0?Yf:X;X!==null&&X!=X.top&&(X=X.top);var Q=0,h=0;try{var H=X.document,t=H.body,q=H.documentElement;if(H.compatMode=="CSS1Compat"&&q.scrollHeight)Q=q.scrollHeight!=M.height?q.scrollHeight:q.offsetHeight,h=q.scrollWidth!=M.width?q.scrollWidth:q.offsetWidth;else{var w=q.scrollHeight,T=q.scrollWidth,L=q.offsetHeight,K=q.offsetWidth;q.clientHeight!=L&&(w=t.scrollHeight,T=t.scrollWidth,L=t.offsetHeight,K=t.offsetWidth); w>M.height?w>L?(Q=w,h=T):(Q=L,h=K):w0||D.K)return!0;D=dH().G.isVisible();var X=ZF(X0)===0;return D||X}; DL=function(){return gH(mC5)}; Q$=function(D){this.Y=D;this.G=0;this.S=null}; hL=function(D,X,M){this.Y=D;this.yf=M===void 0?"na":M;this.D=[];this.isInitialized=!1;this.U=new WR(-1,!0,this);this.S=this;this.K=X;this.f$=this.eH=!1;this.L$="uk";this.sR=!1;this.X=!0}; HW=function(D,X){g.jb(D.D,X)||(D.D.push(X),X.P9(D.S),X.Pu(D.U),X.YY()&&(D.eH=!0))}; eU2=function(D){D=D.S;D.Hp();D.uw();var X=DL();X.J=zE(!1,D.Y,X.isMobileDevice);b75(DL(),D.Y);D.U.S=D.s9()}; RUd=function(D){D.eH=D.D.length?jj(D.D,function(X){return X.YY()}):!1}; IFm=function(D){var X=g.Hi(D.D);g.$R(X,function(M){M.Pu(D.U)})}; tL=function(D){var X=g.Hi(D.D);g.$R(X,function(M){M.P9(D.S)}); D.S!=D||IFm(D)}; No=function(D,X,M,Q){this.element=D;this.S=new zK(0,0,0,0);this.Y=null;this.X=new zK(0,0,0,0);this.G=X;this.uM=M;this.sR=Q;this.a5=!1;this.timestamp=-1;this.eH=new GE(X.U,this.element,this.S,new zK(0,0,0,0),0,0,AT(),0);this.D=void 0}; gz9=function(D,X){return D.D?new zK(Math.max(X.top+D.D.top,X.top),Math.min(X.left+D.D.right,X.right),Math.min(X.top+D.D.bottom,X.bottom),Math.max(X.left+D.D.left,X.left)):X.clone()}; qo=function(D){this.D=!1;this.S=D;this.U=function(){}}; vz1=function(D,X,M){this.Y=M===void 0?0:M;this.G=D;this.S=X==null?"":X}; dCi=function(D){switch(Math.trunc(D.Y)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; rwi=function(D,X){return D.YX.Y?!1:D.GX.G?!1:typeof D.Stypeof X.S?!1:D.S0?Q[M]-Q[M-1]:Q[M]})}; fp=function(){this.G=new V$;this.yf=this.uj=0;this.A$=new F0;this.R5=this.J=-1;this.o5=1E3;this.q5=new V$([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.L$=this.a5=-1}; Si=function(D,X){return xC1(D.G,X===void 0?!0:X)}; EX=function(D,X,M,Q){var h=h===void 0?!1:h;M=CJ(Q,M);Bq(D,X,M,{capture:h})}; PW=function(D,X){X=y$(X);return X===0?0:y$(D)/X}; y$=function(D){return Math.max(D.bottom-D.top,0)*Math.max(D.right-D.left,0)}; zUn=function(D,X){if(!D||!X)return!1;for(var M=0;D!==null&&M++<100;){if(D===X)return!0;try{if(D=D.parentElement||D){var Q=au(D),h=Q&&EY(Q),H=h&&h.frameElement;H&&(D=H)}}catch(t){break}}return!1}; kNs=function(D,X,M){if(!D||!X)return!1;X=jq(D.clone(),-X.left,-X.top);D=(X.left+X.right)/2;X=(X.top+X.bottom)/2;UO(window.top)&&window.top&&window.top.document&&(window=window.top);if(!fF5())return!1;D=window.document.elementFromPoint(D,X);if(!D)return!1;X=(X=(X=au(M))&&X.defaultView&&X.defaultView.frameElement)&&zUn(X,D);var Q=D===M;D=!Q&&D&&iv(D,function(h){return h===M}); return!(X||Q||D)}; utW=function(D,X,M,Q){return DL().Y?!1:kf(D)<=0||D.getHeight()<=0?!0:M&&Q?$Cd(208,function(){return kNs(D,X,M)}):!1}; mr=function(D,X,M){g.O.call(this);this.position=jxH.clone();this.BS=this.s3();this.gi=-2;this.timeCreated=Date.now();this.ud=-1;this.mX=X;this.G8=null;this.DR=!1;this.wR=null;this.opacity=-1;this.requestSource=M;this.jnC=!1;this.TA=function(){}; this.Fc=function(){}; this.fk=new wiW;this.fk.ze=D;this.fk.S=D;this.vu=!1;this.iF={AP:null,cf:null};this.vz=!0;this.eQ=null;this.wz=this.tHF=!1;Fa().X++;this.jC=this.d7();this.LI=-1;this.Om=null;this.hasCompleted=this.d5R=!1;this.uM=new Ay;Ln5(this.uM);Dvd(this);this.requestSource==1?lb(this.uM,"od",1):lb(this.uM,"od",0)}; Dvd=function(D){D=D.fk.ze;var X;if(X=D&&D.getAttribute)X=/-[a-z]/.test("googleAvInapp")?!1:XKW&&D.dataset?"googleAvInapp"in D.dataset:D.hasAttribute?D.hasAttribute("data-"+oBR()):!!D.getAttribute("data-"+oBR());X&&(DL().G=!0)}; np=function(D,X){X!=D.wz&&(D.wz=X,D=DL(),X?D.X++:D.X>0&&D.X--)}; Msi=function(D,X){if(D.Om){if(X.getName()===D.Om.getName())return;D.Om.dispose();D.Om=null}X=X.create(D.fk.S,D.uM,D.YY());if(X=X!=null&&X.observe()?X:null)D.Om=X}; Qe5=function(D,X,M){if(!D.G8||D.mX==-1||X.G===-1||D.G8.G===-1)return 0;D=X.G-D.G8.G;return D>M?0:D}; hM5=function(D,X,M){if(D.Om){D.Om.im();var Q=D.Om.eH,h=Q.U,H=h.S;if(Q.X!=null){var t=Q.Y;D.wR=new g.hn(t.left-H.left,t.top-H.top)}H=D.Po()?Math.max(Q.S,Q.D):Q.S;t={};h.volume!==null&&(t.volume=h.volume);h=D.RC(Q);D.G8=Q;D.C$(H,X,M,!1,t,h,Q.K)}}; Hgs=function(D){if(D.DR&&D.eQ){var X=Jy(D.uM,"od")==1,M=DL().S,Q=D.eQ,h=D.Om?D.Om.getName():"ns",H=D.wR,t=new g.tn(kf(M),M.getHeight());M=D.Po();D={Ag5:h,wR:H,C$R:t,Po:M,PD:D.jC.PD,ySF:X};if(X=Q.G){X.im();h=X.eH;H=h.U.S;var q=t=null;h.X!=null&&H&&(t=h.Y,t=new g.hn(t.left-H.left,t.top-H.top),q=new g.tn(H.right-H.left,H.bottom-H.top));h=M?Math.max(h.S,h.D):h.S;M={Ag5:X.getName(),wR:t,C$R:q,Po:M,ySF:!1,PD:h}}else M=null;M&&YO1(Q,D,M)}}; ts9=function(D,X,M){X&&(D.TA=X);M&&(D.Fc=M)}; g.bG=function(){}; g.ei=function(D){return{value:D,done:!1}}; N$m=function(){this.U=this.S=this.Y=this.G=this.D=0}; qH_=function(D){var X={};var M=g.CG()-D.D;X=(X.ptlt=M,X);(M=D.G)&&(X.pnk=M);(M=D.Y)&&(X.pnc=M);(M=D.U)&&(X.pnmm=M);(D=D.S)&&(X.pns=D);return X}; wKs=function(){Zd.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Rm=function(D){return uF(D.volume)&&D.volume>0}; Im=function(D,X,M,Q){M=M===void 0?!0:M;Q=Q===void 0?function(){return!0}:Q; return function(h){var H=h[D];if(Array.isArray(H)&&Q(h))return T$p(H,X,M)}}; gy=function(D,X){return function(M){return X(M)?M[D]:void 0}}; Lf1=function(D){return function(X){for(var M=0;M0?H[h-1]+1:0,Q+1).reduce(function(t,q){return t+q},0)})}; se_=function(){this.G=this.S=""}; Kf9=function(){}; dy=function(D,X){var M={};if(D!==void 0)if(X!=null)for(var Q in X){var h=X[Q];Q in Object.prototype||h!=null&&(M[Q]=typeof h==="function"?h(D):D[h])}else g.rS(M,D);return sX(Lp(new Tk,M))}; a4s=function(){var D={};this.G=(D.vs=[1,0],D.vw=[0,1],D.am=[2,2],D.a=[4,4],D.f=[8,8],D.bm=[16,16],D.b=[32,32],D.avw=[0,64],D.avs=[64,0],D.pv=[256,256],D.gdr=[0,512],D.p=[0,1024],D.r=[0,2048],D.m=[0,4096],D.um=[0,8192],D.ef=[0,16384],D.s=[0,32768],D.pmx=[0,16777216],D.mut=[33554432,33554432],D.umutb=[67108864,67108864],D.tvoff=[134217728,134217728],D);this.S={};for(var X in this.G)this.G[X][1]>0&&(this.S[X]=0);this.Y=0}; ry=function(D,X){var M=D.G[X],Q=M[1];D.Y+=M[0];Q>0&&D.S[X]==0&&(D.S[X]=1)}; Ffi=function(D){var X=g.yF(D.G),M=0,Q;for(Q in D.S)g.jb(X,Q)&&D.S[Q]==1&&(M+=D.G[Q][1],D.S[Q]=2);return M}; Vsi=function(D){var X=0,M;for(M in D.S){var Q=D.S[M];if(Q==1||Q==2)X+=D.G[M][1]}return X}; iG=function(){this.S=this.G=0}; om=function(){fp.call(this);this.Y=new F0;this.OR=this.eH=this.sR=0;this.K=-1;this.zm=new F0;this.D=new F0;this.S=new V$;this.X=this.U=-1;this.f$=new F0;this.o5=2E3;this.M5=new iG;this.p$=new iG;this.t$=new iG}; Cp=function(D,X,M){var Q=D.OR;lF||M||D.K==-1||(Q+=X-D.K);return Q}; $v_=function(){this.Y=!1}; OX=function(D,X){this.Y=!1;this.U=D;this.eH=X;this.D=0}; pp=function(D,X){OX.call(this,D,X);this.J=[]}; B$1=function(){}; AL=function(){}; YG=function(D,X,M,Q){No.call(this,D,X,M,Q)}; lG=function(D,X,M){No.call(this,null,D,X,M);this.K=D.isActive();this.J=0}; JL=function(D){return[D.top,D.left,D.bottom,D.right]}; xG=function(D,X,M,Q,h,H){H=H===void 0?new AL:H;mr.call(this,X,M,Q);this.Fe=h;this.mC=0;this.hS={};this.PB=new a4s;this.Ua={};this.zC="";this.t$=null;this.h5=!1;this.S=[];this.Pk=H.G();this.X=H.Y();this.U=null;this.Y=-1;this.yf=this.eH=void 0;this.R5=this.f$=0;this.L$=-1;this.o5=this.p$=!1;this.sR=this.K=this.G=this.CJ=this.R2=0;new V$;this.M5=this.OR=0;this.A$=-1;this.QZ=0;this.J=g.Jn;this.a5=[this.s3()];this.J5=2;this.zT={};this.zT.pause="p";this.zT.resume="r";this.zT.skip="s";this.zT.mute="m";this.zT.unmute= "um";this.zT.exitfullscreen="ef";this.D=null;this.q5=this.zm=!1;this.Mj=Math.floor(Date.now()/1E3-1704067200);this.uj=0}; WW=function(D){D.hasCompleted=!0;D.QZ!=0&&(D.QZ=3)}; Gk=function(D){return D===void 0?D:Number(D)?kc(D,3):0}; zk=function(D,X){return D.a5[X!=null&&XMath.max(1E4,D.Y/3)?0:X);var M=D.J(D)||{};M=M.currentTime!==void 0?M.currentTime:D.f$;var Q=M-D.f$,h=0;Q>=0?(D.R5+=X,D.M5+=Math.max(X-Q,0),h=Math.min(Q,D.R5)):D.OR+=Math.abs(Q);Q!=0&&(D.R5=0);D.A$==-1&&Q>0&&(D.A$=xc>=0?AT()-xc:-1);D.f$=M;return h}; cj1=function(D,X){jj(D.X,function(M){return M.U==X.U})||D.X.push(X)}; f4W=function(D){var X=ZL(D.Hh().S,1);return kG(D,X)}; kG=function(D,X,M){return X>=15E3?!0:D.p$?(M===void 0?0:M)?!0:D.Y>0?X>=D.Y/2:D.L$>0?X>=D.L$:!1:!1}; SH5=function(D){var X=kc(D.jC.PD,2),M=D.PB.Y,Q=D.jC,h=zk(D),H=Gk(h.U),t=Gk(h.X),q=Gk(Q.volume),w=kc(h.J,2),T=kc(h.R5,2),L=kc(Q.PD,2),K=kc(h.a5,2),a=kc(h.L$,2);Q=kc(Q.NR,2);var F=D.GP().clone().round();D=D.Om&&D.Om.Y?(D.Om?D.Om.Y:null).clone().round():null;h=Si(h,!1);return{Os$:X,MY:M,yy:H,sz:t,v3:q,PS:w,Qy:T,PD:L,Oz:K,gR:a,NR:Q,position:F,zt:D,JK:h}}; yjs=function(D,X){Eld(D.S,X,function(){return{Os$:0,MY:void 0,yy:-1,sz:-1,v3:-1,PS:-1,Qy:-1,PD:-1,Oz:-1,gR:-1,NR:-1,position:void 0,zt:void 0,JK:[]}}); D.S[X]=SH5(D)}; Eld=function(D,X,M){for(var Q=D.length;Q0?1:0;K.atos= $G(T.S);K.ssb=$G(T.q5,!1);K.amtos=xC1(T.S,!1);K.uac=D.R2;K.vpt=T.Y.S;L=="nio"&&(K.nio=1,K.avms="nio");K.gmm="4";K.gdr=kG(D,T.Y.S,!0)?1:0;K.efpf=D.J5;if(L=="gsv"||L=="nis")L=D.Om,L.J>0&&(K.nnut=L.J);K.tcm=Zg9(D);K.nmt=D.OR;K.bt=D.M5;K.pst=D.A$;K.vpaid=D.eH;K.dur=D.Y;K.vmtime=D.f$;K.is=D.PB.Y;D.S.length>=1&&(K.i0=D.S[0].MY,K.a0=[D.S[0].v3],K.c0=[D.S[0].PD],K.ss0=[D.S[0].NR],L=D.S[0].position,H=D.S[0].zt,K.p0=L?JL(L):void 0,L&&H&&!uv(H,L)&&(K.cp0=JL(H)));D.S.length>=2&&(K.i1=D.S[1].MY,K.a1=DT(D.S[1].yy, D.S[1].v3,D.S[1].sz),K.c1=DT(D.S[1].PS,D.S[1].PD,D.S[1].Qy),K.ss1=DT(D.S[1].Oz,D.S[1].NR,D.S[1].gR),L=D.S[1].position,H=D.S[1].zt,K.p1=L?JL(L):void 0,L&&H&&!uv(H,L)&&(K.cp1=JL(H)),K.mtos1=D.S[1].JK);D.S.length>=3&&(K.i2=D.S[2].MY,K.a2=DT(D.S[2].yy,D.S[2].v3,D.S[2].sz),K.c2=DT(D.S[2].PS,D.S[2].PD,D.S[2].Qy),K.ss2=DT(D.S[2].Oz,D.S[2].NR,D.S[2].gR),L=D.S[2].position,H=D.S[2].zt,K.p2=L?JL(L):void 0,L&&H&&!uv(H,L)&&(K.cp2=JL(H)),K.mtos2=D.S[2].JK);D.S.length>=4&&(K.i3=D.S[3].MY,K.a3=DT(D.S[3].yy,D.S[3].v3, D.S[3].sz),K.c3=DT(D.S[3].PS,D.S[3].PD,D.S[3].Qy),K.ss3=DT(D.S[3].Oz,D.S[3].NR,D.S[3].gR),L=D.S[3].position,H=D.S[3].zt,K.p3=L?JL(L):void 0,L&&H&&!uv(H,L)&&(K.cp3=JL(H)),K.mtos3=D.S[3].JK);K.cs=Vsi(D.PB);X&&(K.ic=Ffi(D.PB),K.dvpt=T.Y.G,K.dvs=cW(T.G,.5),K.dfvs=cW(T.G,1),K.davs=cW(T.S,.5),K.dafvs=cW(T.S,1),M&&(T.Y.G=0,Whs(T.G),Whs(T.S)),D.Mk()&&(K.dtos=T.sR,K.dav=T.eH,K.dtoss=D.mC+1,M&&(T.sR=0,T.eH=0,D.mC++)),K.dat=T.D.G,K.dft=T.f$.G,M&&(T.D.G=0,T.f$.G=0));K.ps=[q.D.width,q.D.height];K.bs=[kf(q.S), q.S.getHeight()];K.scs=[q.U.width,q.U.height];K.dom=q.domain;D.CJ&&(K.vds=D.CJ);if(D.X.length>0||D.Pk)X=g.Hi(D.X),D.Pk&&X.push(D.Pk),K.pings=g.be(X,function(a){return a.toString()}); X=g.be(g.vW(D.X,function(a){return a.X()}),function(a){return a.getId()}); z9n(X);K.ces=X;D.G&&(K.vmer=D.G);D.K&&(K.vmmk=D.K);D.sR&&(K.vmiec=D.sR);K.avms=D.Om?D.Om.getName():"ns";D.Om&&g.rS(K,D.Om.DA());Q?(K.c=kc(D.jC.PD,2),K.ss=kc(D.jC.NR,2)):K.tth=AT()-bg5;K.mc=kc(T.R5,2);K.nc=kc(T.J,2);K.mv=Gk(T.X);K.nv=Gk(T.U);K.lte=kc(D.gi,2);Q=zk(D,h);Si(T);K.qmtos=Si(Q);K.qnc=kc(Q.J,2);K.qmv=Gk(Q.X);K.qnv=Gk(Q.U);K.qas=Q.U>0?1:0;K.qi=D.zC;K.avms||(K.avms="geo");K.psm=T.M5.S;K.psv=T.M5.getValue();K.psfv=T.p$.getValue();K.psa=T.t$.getValue();w=wZi(w.uM);w.length&&(K.veid=w);D.D&&g.rS(K, qH_(D.D));K.avas=D.fd();K.vs=D.uS();K.co=eMR(D);K.tm=T.uj;K.tu=T.yf;return K}; P_d=function(D,X){if(g.jb(RMp,X))return!0;var M=D.hS[X];return M!==void 0?(D.hS[X]=!0,!M):!1}; eMR=function(D){var X=D.uj.toString(10).padStart(2,"0");X=""+D.Mj+X;D.uj<99&&D.uj++;return X}; gln=function(){this.S={};var D=EY();X8(this,D,document);var X=I4H();try{if("1"==X){for(var M=D.parent;M!=D.top;M=M.parent)X8(this,M,M.document);X8(this,D.top,D.top.document)}}catch(Q){}}; I4H=function(){var D=document.documentElement;try{if(!UO(EY().top))return"2";var X=[],M=EY(D.ownerDocument);for(D=M;D!=M.top;D=D.parent)if(D.frameElement)X.push(D.frameElement);else break;return X&&X.length!=0?"1":"0"}catch(Q){return"2"}}; X8=function(D,X,M){EX(M,"mousedown",function(){return vlR(D)},301); EX(X,"scroll",function(){return dv5(D)},302); EX(M,"touchmove",function(){return rjs(D)},303); EX(M,"mousemove",function(){return igo(D)},304); EX(M,"keydown",function(){return olm(D)},305)}; vlR=function(D){g.sm(D.S,function(X){X.Y>1E5||++X.Y})}; dv5=function(D){g.sm(D.S,function(X){X.S>1E5||++X.S})}; rjs=function(D){g.sm(D.S,function(X){X.S>1E5||++X.S})}; olm=function(D){g.sm(D.S,function(X){X.G>1E5||++X.G})}; igo=function(D){g.sm(D.S,function(X){X.U>1E5||++X.U})}; C__=function(){this.S=[];this.G=[]}; Mb=function(D,X){return g.xB(D.S,function(M){return M.zC==X})}; OgW=function(D,X){return X?g.xB(D.S,function(M){return M.fk.ze==X}):null}; pKR=function(D,X){return g.xB(D.G,function(M){return M.PX()==2&&M.zC==X})}; h2=function(){var D=QH;return D.S.length==0?D.G:D.G.length==0?D.S:g.hy(D.G,D.S)}; Aj9=function(D,X){D=X.PX()==1?D.S:D.G;var M=Jh(D,function(Q){return Q==X}); return M!=-1?(D.splice(M,1),X.Om&&X.Om.unobserve(),X.dispose(),!0):!1}; YH5=function(D){var X=QH;if(Aj9(X,D)){switch(D.PX()){case 0:var M=function(){return null}; case 2:M=function(){return pKR(X,D.zC)}; break;case 1:M=function(){return Mb(X,D.zC)}}for(var Q=M();Q;Q=M())Aj9(X,Q)}}; l4s=function(D){var X=QH;D=g.vW(D,function(M){return!OgW(X,M.fk.ze)}); X.S.push.apply(X.S,g.xW(D))}; JjW=function(D){var X=[];g.$R(D,function(M){jj(QH.S,function(Q){return Q.fk.ze===M.fk.ze&&Q.zC===M.zC})||(QH.S.push(M),X.push(M))})}; HS=function(){this.S=this.G=null}; xv2=function(D,X){function M(Q,h){X(Q,h)} if(D.G==null)return!1;D.S=g.xB(D.G,function(Q){return Q!=null&&Q.Bp()}); D.S&&(D.S.init(M)?eU2(D.S.S):X(D.S.S.xd(),D.S));return D.S!=null}; t2=function(D){D=WfH(D);qo.call(this,D.length?D[D.length-1]:new hL(Yf,0));this.Y=D;this.G=null}; WfH=function(D){if(!D.length)return[];D=(0,g.vW)(D,function(M){return M!=null&&M.z5()}); for(var X=1;XM.time?X:M},D[0])}; Te=function(D){D=D===void 0?Yf:D;qo.call(this,new hL(D,2))}; LP=function(){var D=uBd();hL.call(this,Yf.top,D,"geo")}; uBd=function(){Fa();var D=DL();return D.Y||D.G?0:2}; je1=function(){}; s$=function(){this.done=!1;this.S={aJ:0,KC:0,t2F:0,xG:0,Xv:-1,WU:0,lK:0,Fr:0,dWI:0};this.D=null;this.X=!1;this.Y=null;this.J=0;this.G=new Q$(this)}; ac=function(){var D=KP;D.X||(D.X=!0,DxH(D,function(){return D.U.apply(D,g.xW(g.BZ.apply(0,arguments)))}),D.U())}; Xlm=function(){gH(je1);var D=gH(HS);D.S!=null&&D.S.S?eU2(D.S.S):DL().update(Yf)}; F8=function(D,X,M){if(!D.done&&(D.G.cancel(),X.length!=0)){D.Y=null;try{Xlm();var Q=AT();Fa().D=Q;if(gH(HS).S!=null)for(var h=0;h=0?AT()-Yc:-1,q=AT();h.S.Xv==-1&&(t=q);var w=DL(),T=Fa(),L=xR(T.uM),K=h2();try{if(K.length>0){var a=w.S;a&&(L.bs=[kf(a),a.getHeight()]);var F=w.D;F&&(L.ps=[F.width,F.height]);Yf.screen&&(L.scs=[Yf.screen.width,Yf.screen.height])}else L.url=encodeURIComponent(Yf.location.href.substring(0,512)),H.referrer&&(L.referrer=encodeURIComponent(H.referrer.substring(0,512))); L.tt=t;L.pt=Yc;L.bin=T.G;Yf.google_osd_load_pub_page_exp!==void 0&&(L.olpp=Yf.google_osd_load_pub_page_exp);L.deb=[1,h.S.aJ,h.S.KC,h.S.xG,h.S.Xv,0,h.G.G,h.S.WU,h.S.lK,h.S.Fr,h.S.dWI,-1].join(";");L.tvt=QGs(h,q);w.G&&(L.inapp=1);if(Yf!==null&&Yf!=Yf.top){K.length>0&&(L.iframe_loc=encodeURIComponent(Yf.location.href.substring(0,512)));var V=w.J;L.is=[kf(V),V.getHeight()]}}catch(c){L.error=1}KP.Y=L}a=g.gS(KP.Y);F=Fa().S;Jy(F.Y,"prf")==1?(V=new sS,h=F.S,H=0,h.S>-1&&(H=h.Y.S.now()-h.S),V=nQ(V,1,mf(h.U+ H),0),h=F.S,V=nQ(V,5,Re(h.S>-1?h.G+1:h.G),0),V=nQ(V,2,OH(F.G.S.Y()),"0"),V=nQ(V,3,OH(F.G.S.G()),"0"),F=nQ(V,4,OH(F.G.S.S()),"0"),V={},F=(V.pf=g.C7(F.Y()),V)):F={};g.rS(a,F);g.rS(X,Q,M,a,D())}])}; tF1=function(){var D=HQm||Yf;if(!D)return"";var X=[];if(!D.location||!D.location.href)return"";X.push("url="+encodeURIComponent(D.location.href.substring(0,512)));D.document&&D.document.referrer&&X.push("referrer="+encodeURIComponent(D.document.referrer.substring(0,512)));return X.join("&")}; VH=function(){var D="youtube.player.web_20251109_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251109_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251109_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251109_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),X;if(((X=D)==null?void 0:X.length)==2)return D[1];D="youtube.player.web_20251109_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var M;return((M=D)==null?void 0:M.length)==3?"20"+D[1]+D[2]:null}; NTo=function(){return"av.default_js".includes("ima_html5_sdk")?{nz:"ima",bv:null}:"av.default_js".includes("ima_native_sdk")?{nz:"nima",bv:null}:"av.default_js".includes("admob-native-video-javascript")?{nz:"an",bv:null}:"youtube.player.web_20251109_22_RC00".includes("cast_js_sdk")?{nz:"cast",bv:VH()}:"youtube.player.web_20251109_22_RC00".includes("youtube.player.web")?{nz:"yw",bv:VH()}:"youtube.player.web_20251109_22_RC00".includes("outstream_web_client")?{nz:"out",bv:VH()}:"youtube.player.web_20251109_22_RC00".includes("drx_rewarded_web")? {nz:"r",bv:VH()}:"youtube.player.web_20251109_22_RC00".includes("gam_native_web_video")?{nz:"n",bv:VH()}:"youtube.player.web_20251109_22_RC00".includes("admob_interstitial_video")?{nz:"int",bv:VH()}:{nz:"j",bv:null}}; ZT=function(D,X){var M={sv:"968"};$q!==null&&(M.v=$q);M.cb=q12;M.nas=QH.S.length;M.msg=D;X!==void 0&&(D=wl9(X))&&(M.e=BS[D]);return M}; U$=function(D){return zC(D,"custom_metric_viewable")}; wl9=function(D){var X=U$(D)?"custom_metric_viewable":D.toLowerCase();return bb(uG,function(M){return M==X})}; TTR=function(){this.S=void 0;this.G=!1;this.Y=0;this.U=-1;this.D="tos"}; KS_=function(D){try{var X=D.split(",");return X.length>g.yF(LS_).length?null:Rx(X,function(M,Q){Q=Q.toLowerCase().split("=");if(Q.length!=2||sGd[Q[0]]===void 0||!sGd[Q[0]](Q[1]))throw Error("Entry ("+Q[0]+", "+Q[1]+") is invalid.");M[Q[0]]=Q[1];return M},{})}catch(M){return null}}; aK2=function(D,X){if(D.S==void 0)return 0;switch(D.D){case "mtos":return D.G?UX(X.S,D.S):UX(X.G,D.S);case "tos":return D.G?ZL(X.S,D.S):ZL(X.G,D.S)}return 0}; cS=function(D,X,M,Q){OX.call(this,X,Q);this.J=D;this.K=M}; fP=function(){}; Sn=function(D){OX.call(this,"fully_viewable_audible_half_duration_impression",D)}; nP=function(D){this.S=D}; b0=function(D,X){OX.call(this,D,X)}; en=function(D){pp.call(this,"measurable_impression",D)}; Rc=function(){nP.apply(this,arguments)}; Ic=function(D,X,M){lG.call(this,D,X,M)}; gg=function(D){D=D===void 0?Yf:D;qo.call(this,new hL(D,2))}; vS=function(D,X,M){lG.call(this,D,X,M)}; dg=function(D){D=D===void 0?Yf:D;qo.call(this,new hL(D,2))}; rg=function(){hL.call(this,Yf,2,"mraid");this.M5=0;this.R5=this.a5=!1;this.J=null;this.G=cws(this.Y);this.U.S=new zK(0,0,0,0);this.uj=!1}; i0=function(D,X,M){D.NH("addEventListener",X,M)}; BTo=function(D){Fa().U=!!D.NH("isViewable");i0(D,"viewableChange",FSW);D.NH("getState")==="loading"?i0(D,"ready",VFH):$xn(D)}; $xn=function(D){typeof D.G.Hv.AFMA_LIDAR==="string"?(D.a5=!0,ZQo(D)):(D.G.compatibility=3,D.J="nc",D.fail("w"))}; ZQo=function(D){D.R5=!1;var X=Jy(Fa().uM,"rmmt")==1,M=!!D.NH("isViewable");(X?!M:1)&&dH().setTimeout(OS(524,function(){D.R5||(Uxs(D),pJ(540,Error()),D.J="mt",D.fail("w"))}),500); cx9(D);i0(D,D.G.Hv.AFMA_LIDAR,fK5)}; cx9=function(D){var X=Jy(Fa().uM,"sneio")==1,M=D.G.Hv.AFMA_LIDAR_EXP_1!==void 0,Q=D.G.Hv.AFMA_LIDAR_EXP_2!==void 0;(X=X&&Q)&&(D.G.Hv.AFMA_LIDAR_EXP_2=!0);M&&(D.G.Hv.AFMA_LIDAR_EXP_1=!X)}; Uxs=function(D){D.NH("removeEventListener",D.G.Hv.AFMA_LIDAR,fK5);D.a5=!1}; S19=function(D,X){if(D.NH("getState")==="loading")return new g.tn(-1,-1);X=D.NH(X);if(!X)return new g.tn(-1,-1);D=parseInt(X.width,10);X=parseInt(X.height,10);return isNaN(D)||isNaN(X)?new g.tn(-1,-1):new g.tn(D,X)}; VFH=function(){try{var D=gH(rg);D.NH("removeEventListener","ready",VFH);$xn(D)}catch(X){pJ(541,X)}}; fK5=function(D,X){try{var M=gH(rg);M.R5=!0;var Q=D?new zK(D.y,D.x+D.width,D.y+D.height,D.x):new zK(0,0,0,0);var h=AT(),H=Mo();var t=new WR(h,H,M);t.S=Q;t.volume=X;M.Pu(t)}catch(q){pJ(542,q)}}; FSW=function(D){var X=Fa(),M=gH(rg);D&&!X.U&&(X.U=!0,M.uj=!0,M.J&&M.fail("w",!0))}; oc=function(){this.isInitialized=!1;this.S=this.G=null;var D={};this.J=(D.start=this.Lz5,D.firstquartile=this.a4f,D.midpoint=this.nyR,D.thirdquartile=this.x5C,D.complete=this.RII,D.error=this.GsH,D.pause=this.Wl,D.resume=this.YU,D.skip=this.b$5,D.viewable_impression=this.X5,D.mute=this.Xt,D.unmute=this.Xt,D.fullscreen=this.hIj,D.exitfullscreen=this.YRR,D.fully_viewable_audible_half_duration_impression=this.X5,D.measurable_impression=this.X5,D.abandon=this.Wl,D.engagedview=this.X5,D.impression=this.X5, D.creativeview=this.X5,D.progress=this.Xt,D.custom_metric_viewable=this.X5,D.bufferstart=this.Wl,D.bufferfinish=this.YU,D.audio_measurable=this.X5,D.audio_audible=this.X5,D);D={};this.K=(D.overlay_resize=this.U52,D.abandon=this.hN,D.close=this.hN,D.collapse=this.hN,D.overlay_unmeasurable_impression=function(X){return ji(X,"overlay_unmeasurable_impression",Mo())},D.overlay_viewable_immediate_impression=function(X){return ji(X,"overlay_viewable_immediate_impression",Mo())},D.overlay_unviewable_impression= function(X){return ji(X,"overlay_unviewable_impression",Mo())},D.overlay_viewable_end_of_session_impression=function(X){return ji(X,"overlay_viewable_end_of_session_impression",Mo())},D); Fa().G=3;EQ9(this);this.Y=null}; CP=function(D,X,M,Q){D=D.L4(null,Q,!0,X);D.U=M;l4s([D]);return D}; yxn=function(D,X,M){Mb2(X);var Q=D.S;g.$R(X,function(h){var H=g.be(h.criteria,function(t){var q=KS_(t);if(q==null)t=null;else if(t=new TTR,q.visible!=null&&(t.S=q.visible/100),q.audible!=null&&(t.G=q.audible==1),q.time!=null){var w=q.timetype=="mtos"?"mtos":"tos",T=sad(q.time,"%")?"%":"ms";q=parseInt(q.time,10);T=="%"&&(q/=100);t.setTime(q,T,w)}return t}); jj(H,function(t){return t==null})||cj1(M,new cS(h.id,h.event,H,Q))})}; PY2=function(){var D=[],X=Fa();D.push(gH(LP));Jy(X.uM,"mvp_lv")&&D.push(gH(rg));X=[new gg,new dg];X.push(new t2(D));X.push(new Te(Yf));return X}; mxs=function(D){if(!D.isInitialized){D.isInitialized=!0;try{var X=AT(),M=Fa(),Q=DL();Yc=X;M.Y=79463069;D.G!=="o"&&(HQm=cys(Yf));if(Cbo()){KP.S.KC=0;KP.S.Xv=AT()-X;var h=PY2(),H=gH(HS);H.G=h;xv2(H,function(){O$()})?KP.done||(MF1(),HW(H.S.S,D),ac()):Q.Y?O$():ac()}else pP=!0}catch(t){throw QH.reset(),t; }}}; Yq=function(D){KP.G.cancel();A2=D;KP.done=!0}; l0=function(D){if(D.G)return D.G;var X=gH(HS).S;if(X)switch(X.getName()){case "nis":D.G="n";break;case "gsv":D.G="m"}D.G||(D.G="h");return D.G}; J2=function(D,X,M){if(D.S==null)return X.CJ|=4,!1;D=nQm(D.S,M,X);X.CJ|=D;return D==0}; O$=function(){var D=[new Te(Yf)],X=gH(HS);X.G=D;xv2(X,function(){Yq("i")})?KP.done||(MF1(),ac()):Yq("i")}; bQ5=function(D,X){if(!D.h5){var M=ji(D,"start",Mo());M=D.Fe.S(M).S;var Q={id:"lidarv"};Q.r=X;Q.sv="968";$q!==null&&(Q.v=$q);ES(M,function(h,H){return Q[h]=h=="mtos"||h=="tos"?H:encodeURIComponent(H)}); X=tF1();ES(X,function(h,H){return Q[h]=encodeURIComponent(H)}); X="//pagead2.googlesyndication.com/pagead/gen_204?"+sX(Lp(new Tk,Q));pqo(X);D.h5=!0}}; xq=function(D,X,M){F8(KP,[D],!Mo());yjs(D,M);M!=4&&Eld(D.a5,M,D.s3);return ji(D,X,Mo())}; EQ9=function(D){hTH(function(){var X=eTn();D.G!=null&&(X.sdk=D.G);var M=gH(HS);M.S!=null&&(X.avms=M.S.getName());return X})}; RTn=function(D,X,M,Q){var h=OgW(QH,M);h!==null&&h.zC!==X&&(D.TD(h),h=null);h||(X=D.L4(M,AT(),!1,X),QH.G.length==0&&(Fa().Y=79463069),JjW([X]),h=X,h.U=l0(D),Q&&(h.t$=Q));return h}; IKW=function(D,X){var M=D[X];M!==void 0&&M>0&&(D[X]=Math.floor(M*1E3))}; eTn=function(){var D=DL(),X={},M={},Q={};return Object.assign({},(X.sv="968",X),$q!==null&&(M.v=$q,M),(Q["if"]=D.Y?"1":"0",Q.nas=String(QH.S.length),Q))}; WS=function(D){OX.call(this,"audio_audible",D)}; Ge=function(D){pp.call(this,"audio_measurable",D)}; ze=function(){nP.apply(this,arguments)}; kq=function(){}; gQm=function(D){this.S=D}; nQm=function(D,X,M){D=D.G();if(typeof D==="function"){var Q={};var h={};Q=Object.assign({},$q!==null&&(Q.v=$q,Q),(h.sv="968",h.cb=q12,h.e=vQi(X),h));h=ji(M,X,Mo());g.rS(Q,h);M.Ua[X]=h;Q=M.PX()==2?O7_(Q).join("&"):M.Fe.S(Q).S;try{return D(M.zC,Q,X),0}catch(H){return 2}}else return 1}; vQi=function(D){var X=U$(D)?"custom_metric_viewable":D;D=bb(uG,function(M){return M==X}); return BS[D]}; u0=function(){oc.call(this);this.X=null;this.D=!1;this.U="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; dx5=function(D,X,M){M=M.opt_configurable_tracking_events;D.S!=null&&Array.isArray(M)&&yxn(D,M,X)}; rxW=function(D,X,M){var Q=Mb(QH,X);Q||(Q=M.opt_nativeTime||-1,Q=CP(D,X,l0(D),Q),M.opt_osdId&&(Q.t$=M.opt_osdId));return Q}; iQW=function(D,X,M){var Q=Mb(QH,X);Q||(Q=CP(D,X,"n",M.opt_nativeTime||-1));return Q}; oQW=function(D,X){var M=Mb(QH,X);M||(M=CP(D,X,"h",-1));return M}; var HoH=function(D,X,M,Q,h,H,t){return Ko[N[15]](this,32,D,X,M,Q,h,H,t)}; CYd=function(D){Fa();switch(l0(D)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; Ax2=function(D,X,M,Q){M=M===void 0?{}:M;var h={};g.rS(h,{opt_adElement:void 0,opt_fullscreen:void 0},M);var H=D.Cd(X,M);M=H?H.Fe:D.M4();if(h.opt_bounds)return M.S(ZT("ol",Q));if(Q!==void 0)if(wl9(Q)!==void 0)if(pP)D=ZT("ue",Q);else if(mxs(D),A2=="i")D=ZT("i",Q),D["if"]=0;else if(X=D.Cd(X,h)){b:{A2=="i"&&(X.vu=!0);H=h.opt_fullscreen;H!==void 0&&np(X,!!H);var t;if(H=!DL().G)(H=jf(g.Qm(),"CrKey")&&!(jf(g.Qm(),"CrKey")&&jf(g.Qm(),"SmartSpeaker"))||jf(g.Qm(),"PlayStation")||jf(g.Qm(),"Roku")||Pe9()||jf(g.Qm(), "Xbox"))||(H=g.Qm(),H=jf(H,"AppleTV")||jf(H,"Apple TV")||jf(H,"CFNetwork")||jf(H,"tvOS")),H||(H=g.Qm(),H=jf(H,"sdk_google_atv_x86")||jf(H,"Android TV")),H=!H;H&&(dH(),H=ZF(X0)===0);if(t=H){switch(X.PX()){case 1:bQ5(X,"pv");break;case 2:D.y4(X)}Yq("pv")}H=Q.toLowerCase();if(t=!t)t=Jy(Fa().uM,"ssmol")&&H==="loaded"?!1:g.jb(OQi,H);if(t&&X.QZ==0){A2!="i"&&(KP.done=!1);t=h!==void 0?h.opt_nativeTime:void 0;xc=t=typeof t==="number"?t:AT();X.DR=!0;var q=Mo();X.QZ=1;X.hS={};X.hS.start=!1;X.hS.firstquartile= !1;X.hS.midpoint=!1;X.hS.thirdquartile=!1;X.hS.complete=!1;X.hS.resume=!1;X.hS.pause=!1;X.hS.skip=!1;X.hS.mute=!1;X.hS.unmute=!1;X.hS.viewable_impression=!1;X.hS.measurable_impression=!1;X.hS.fully_viewable_audible_half_duration_impression=!1;X.hS.fullscreen=!1;X.hS.exitfullscreen=!1;X.mC=0;q||(X.Hh().K=t);F8(KP,[X],!q)}(t=X.zT[H])&&ry(X.PB,t);Jy(Fa().uM,"fmd")||g.jb(pl5,H)&&X.Pk&&X.Pk.G(X,null);switch(X.PX()){case 1:var w=U$(H)?D.J.custom_metric_viewable:D.J[H];break;case 2:w=D.K[H]}if(w&&(Q=w.call(D, X,h,Q),Jy(Fa().uM,"fmd")&&g.jb(pl5,H)&&X.Pk&&X.Pk.G(X,null),Q!==void 0)){h=ZT(void 0,H);g.rS(h,Q);Q=h;break b}Q=void 0}X.QZ==3&&D.TD(X);D=Q}else D=ZT("nf",Q);else D=void 0;else pP?D=ZT("ue"):H?(D=ZT(),g.rS(D,mvs(H,!0,!1,!1))):D=ZT("nf");return typeof D==="string"?M.S():M.S(D)}; Y12=function(D,X){X&&(D.U=X)}; lKR=function(D){var X={};return X.viewability=D.S,X.googleViewability=D.G,X}; Jxp=function(D,X,M){M=M===void 0?{}:M;D=Ax2(gH(u0),X,M,D);return lKR(D)}; jn=function(D){var X=g.BZ.apply(1,arguments).filter(Boolean).join("&");if(!X)return D;var M=D.match(/[?&]adurl=/);return M?D.slice(0,M.index+1)+X+"&"+D.slice(M.index+1):D+(D.indexOf("?")<0?"?":"&")+X}; Di=function(D,X){return X?"&"+D+"="+encodeURIComponent(X):""}; xxs=function(D){var X=D.url;D=D.LKH;this.G=X;this.U=D;this.Y=(new Date).getTime()-17040672E5;this.S={};for(var M=/[?&]([^&=]+)=([^&]*)/g;D=M.exec(X);)this.S[D[1]]=D[2]}; WSi=function(D){D=D.U;if(!D)return"";var X=Di("uap",D.platform)+Di("uapv",D.platformVersion)+Di("uafv",D.uaFullVersion)+Di("uaa",D.architecture)+Di("uam",D.model)+Di("uab",D.bitness);D.fullVersionList&&(X+="&uafvl="+encodeURIComponent(D.fullVersionList.map(function(M){return encodeURIComponent(M.brand)+";"+encodeURIComponent(M.version)}).join("|"))); D.wow64!=null&&(X+="&uaw="+Number(D.wow64));return X.slice(1)}; kFm=function(D,X,M,Q,h){var H=window;var t=t===void 0?!1:t;var q;M?q=(t===void 0?0:t)?"//ep1.adtrafficquality.google/bg/"+l7(M)+".js":"//pagead2.googlesyndication.com/bg/"+l7(M)+".js":q="";t=t===void 0?!1:t;M=H.document;var w={};X&&(w._scs_=X);w._bgu_=q;w._bgp_=Q;w._li_="v_h.3.0.0.0";h&&(w._upb_=h);(X=H.GoogleTyFxhY)&&typeof X.push=="function"||(X=H.GoogleTyFxhY=[]);X.push(w);X=FT(M).createElement("SCRIPT");X.type="text/javascript";X.async=!0;D=(t===void 0?0:t)?g.sY(GFi,l7(D)+".js"):g.sY(zTs,l7(D)+ ".js");g.rA(X,D);(H=(H.GoogleTyFxhYEET||{})[X.src])?H():M.getElementsByTagName("head")[0].appendChild(X)}; u$R=function(){try{var D,X;return!!((D=window)==null?0:(X=D.top)==null?0:X.location.href)&&!1}catch(M){return!0}}; Xg=function(D,X,M){M=M===void 0?Error():M;var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=D;X+=":";M instanceof Error?(this.message=X+M.message,this.stack=M.stack||""):(this.message=X+String(M),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; QE=function(){var D=jGs();D=D===void 0?"bevasrsg":D;return new Promise(function(X){var M=window===window.top?window:u$R()?window:window.top,Q=M[D],h;((h=Q)==null?0:h.bevasrs)?X(new MN(Q.bevasrs)):(Q||(Q={},Q=(Q.nqfbel=[],Q),M[D]=Q),Q.nqfbel.push(function(H){X(new MN(H))}))})}; Dh1=function(D){var X={c:D.UG,e:D.kJ,mc:D.Do,me:D.r_};D.pQ&&(X.co={c:D.pQ.ZZ,a:D.pQ.aB,s:D.pQ.SY});return X}; h7=function(D){g.O.call(this);this.wpc=D}; MN=function(D){g.O.call(this);var X=this;this.oz=D;this.Y="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.G=void 0;this.E8=this.oz.p;this.U=this.Qk.bind(this);this.addOnDisposeCallback(function(){return void XhH(X)})}; MZ_=function(D){var X;return g.r(function(M){if(M.S==1){if(!D.oz.wpc)throw new Xg(30,"NWA");return D.S?M.return(D.S):g.I(M,D.oz.wpc(),2)}X=M.G;D.S=new h7(X);return M.return(D.S)})}; XhH=function(D){D.G!==void 0&&(D.Y.forEach(function(X){var M;(M=D.G)==null||M.removeEventListener(X,D.U)}),D.G=void 0)}; Qq9=function(D){var X=X===void 0?52:X;var M=[];O1(D,HL,6).forEach(function(Q){g.lY(Q,2)<=X&&M.push(g.lY(Q,1))}); return M}; h89=function(D){var X=X===void 0?52:X;var M=[];O1(D,HL,6).forEach(function(Q){g.lY(Q,2)>X&&M.push(g.lY(Q,1))}); return M}; H1i=function(D){D.then(function(){},function(){})}; t7=function(){g.O.apply(this,arguments);this.G=1}; NN=function(D){return{fieldType:2,fieldName:D}}; g.qN=function(D){return{fieldType:3,fieldName:D}}; tZ9=function(D){this.S=D;D.Xp("/client_streamz/bg/frs",g.qN("mk"))}; NQd=function(D){this.S=D;D.Xp("/client_streamz/bg/wrl",g.qN("mn"),NN("ac"),NN("sc"),g.qN("rk"),g.qN("mk"))}; qU1=function(D){this.S=D;D.Xo("/client_streamz/bg/ec",g.qN("en"),g.qN("mk"))}; wh2=function(D){this.S=D;D.Xp("/client_streamz/bg/el",g.qN("en"),g.qN("mk"))}; TQ9=function(D){this.S=D;D.Xo("/client_streamz/bg/cec",NN("ec"),g.qN("mk"))}; Lyd=function(D){this.S=D;D.Xo("/client_streamz/bg/po/csc",NN("cs"),g.qN("mk"))}; sq2=function(D){this.S=D;D.Xo("/client_streamz/bg/po/ctav",g.qN("av"),g.qN("mk"))}; KyR=function(D){this.S=D;D.Xo("/client_streamz/bg/po/cwsc",g.qN("su"),g.qN("mk"))}; aXi=function(D){this.K$=tx(D)}; Fyn=function(D,X){return GDp(D,X,ULW)}; w4=function(D){this.K$=tx(D)}; TV=function(D){this.K$=tx(D)}; Lm=function(D){this.K$=tx(D)}; Km=function(D){this.K$=tx(D)}; a3=function(D){this.K$=tx(D)}; Fg=function(D){this.K$=tx(D)}; VZd=function(D){this.K$=tx(D)}; Z1s=function(D){var X=new Fg;X=uY(X,1,D.G);var M=$hn(D);X=GDp(X,M,br9);M=[];for(var Q=[],h=g.e(D.S.keys()),H=h.next();!H.done;H=h.next())Q.push(H.value.split(","));for(h=0;h>>31)&4294967295;K=h[0];var V=h[1],c=h[2],S=h[3],b=h[4];for(F=0;F<80;F++){if(F<40)if(F<20){var n=S^V&(c^S);var R=1518500249}else n=V^c^S,R=1859775393;else F<60?(n=V&c|S&(V|c),R=2400959708):(n=V^c^S,R=3395469782);n=((K<<5|K>>>27)&4294967295)+n+b+R+a[F]&4294967295;b=S;S=c;c=(V<<30|V>>>2)&4294967295;V=K;K=n}h[0]=h[0]+K&4294967295;h[1]=h[1]+V&4294967295;h[2]= h[2]+c&4294967295;h[3]=h[3]+S&4294967295;h[4]=h[4]+b&4294967295} function M(K,a){if(typeof K==="string"){K=unescape(encodeURIComponent(K));for(var F=[],V=0,c=K.length;V=56;F--)H[F]=a&255,a>>>=8;X(H);for(F=a=0;F<5;F++)for(var V=24;V>=0;V-=8)K[a++]=h[F]>>V&255;return K} for(var h=[],H=[],t=[],q=[128],w=1;w<64;++w)q[w]=0;var T,L;D();return{reset:D,update:M,digest:Q,UM:function(){for(var K=Q(),a="",F=0;F1)));t=t.next)h||(H=t);h&&(M.S==0&&Q==1?FJm(M,X):(H?(Q=H,Q.next==M.U&&(M.U=Q),Q.next=Q.next.next):Vjo(M),$gi(M,h,3,X)))}D.Y=null}else Ey(D,3,X)}; bt=function(D,X){D.G||D.S!=2&&D.S!=3||BiR(D);D.U?D.U.next=X:D.G=X;D.U=X}; ZJ5=function(D,X,M,Q){var h=PP(null,null,null);h.S=new g.yw(function(H,t){h.Y=X?function(q){try{var w=X.call(Q,q);H(w)}catch(T){t(T)}}:H; h.G=M?function(q){try{var w=M.call(Q,q);w===void 0&&q instanceof R7?t(q):H(w)}catch(T){t(T)}}:t}); h.S.Y=D;bt(D,h);return h.S}; Ey=function(D,X,M){D.S==0&&(D===M&&(X=3,M=new TypeError("Promise cannot resolve to itself")),D.S=1,LJ9(M,D.ad4,D.hvC,D)||(D.J=M,D.S=X,D.Y=null,BiR(D),X!=3||M instanceof R7||UgW(D,M)))}; LJ9=function(D,X,M,Q){if(D instanceof g.yw)return aO_(D,X,M,Q),!0;if(D)try{var h=!!D.$goog_Thenable}catch(t){h=!1}else h=!1;if(h)return D.then(X,M,Q),!0;if(g.gK(D))try{var H=D.then;if(typeof H==="function")return cTW(D,H,X,M,Q),!0}catch(t){return M.call(Q,t),!0}return!1}; cTW=function(D,X,M,Q,h){function H(w){q||(q=!0,Q.call(h,w))} function t(w){q||(q=!0,M.call(h,w))} var q=!1;try{X.call(D,t,H)}catch(w){H(w)}}; BiR=function(D){D.X||(D.X=!0,g.SI(D.vG,D))}; Vjo=function(D){var X=null;D.G&&(X=D.G,D.G=X.next,X.next=null);D.G||(D.U=null);return X}; $gi=function(D,X,M,Q){if(M==3&&X.G&&!X.U)for(;D&&D.D;D=D.Y)D.D=!1;if(X.S)X.S.Y=null,fOW(X,M,Q);else try{X.U?X.Y.call(X.context):fOW(X,M,Q)}catch(h){SSn.call(null,h)}Q5R(TiW,X)}; fOW=function(D,X,M){X==2?D.Y.call(D.context,M):D.G&&D.G.call(D.context,M)}; UgW=function(D,X){D.D=!0;g.SI(function(){D.D&&SSn.call(null,X)})}; R7=function(D){YB.call(this,D)}; g.I7=function(D,X){g.Ks.call(this);this.i$=D||1;this.UQ=X||g.E8;this.yR=(0,g.iW)(this.ohs,this);this.PE=g.CG()}; g.g3=function(D,X,M){if(typeof D==="function")M&&(D=(0,g.iW)(D,M));else if(D&&typeof D.handleEvent=="function")D=(0,g.iW)(D.handleEvent,D);else throw Error("Invalid listener argument");return Number(X)>2147483647?-1:g.E8.setTimeout(D,X||0)}; vP=function(D,X){var M=null;return(new g.yw(function(Q,h){M=g.g3(function(){Q(X)},D); M==-1&&h(Error("Failed to schedule timer."))})).iB(function(Q){g.E8.clearTimeout(M); throw Q;})}; g.d3=function(D){g.O.call(this);this.J=D;this.U=0;this.Y=100;this.D=!1;this.G=new Map;this.X=new Set;this.flushInterval=3E4;this.S=new g.I7(this.flushInterval);this.S.listen("tick",this.C3,!1,this);g.p(this,this.S)}; Ec9=function(D){D.S.enabled||D.S.start();D.U++;D.U>=D.Y&&D.C3()}; yTW=function(D,X){return D.X.has(X)?void 0:D.G.get(X)}; PFn=function(D){for(var X=0;X2?D.S.statusText:""}catch(M){X=""}D.U=X+" ["+D.getStatus()+"]";iJi(D)}}finally{Ai(D)}}}; Ai=function(D,X){if(D.S){D.X&&(clearTimeout(D.X),D.X=null);var M=D.S;D.S=null;X||D.dispatchEvent("ready");try{M.onreadystatechange=null}catch(Q){}}}; Ji=function(D){var X=D.getStatus();a:switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var M=!0;break a;default:M=!1}if(!M){if(X=X===0)D=g.US(String(D.K))[1]||null,!D&&g.E8.self&&g.E8.self.location&&(D=g.E8.self.location.protocol.slice(0,-1)),X=!OJW.test(D?D.toLowerCase():"");M=X}return M}; g.lt=function(D){return D.S?D.S.readyState:0}; g.x1=function(D){try{return D.S?D.S.responseText:""}catch(X){return""}}; g.WP=function(D){try{if(!D.S)return null;if("response"in D.S)return D.S.response;switch(D.sR){case "":case "text":return D.S.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in D.S)return D.S.mozResponseArrayBuffer}return null}catch(X){return null}}; g.pRo=function(D){var X={};D=(D.S&&g.lt(D)>=2?D.S.getAllResponseHeaders()||"":"").split("\r\n");for(var M=0;M>1,X),cg(D,D.length>>1)]}; SXm=function(D){var X=g.e(fL9(D,fY));D=X.next().value;X=X.next().value;return D.toString(16)+X.toString(16)}; EGi=function(D,X){var M=fL9(X);D=new Uint32Array(D.buffer);X=D[0];var Q=g.e(M);M=Q.next().value;Q=Q.next().value;for(var h=1;h>>8|t<<24,t+=H|0,t^=q+38293,H=H<<3|H>>>29,H^=t,w=w>>>8|w<<24,w+=q|0,w^=T+38293,q=q<<3|q>>>29,q^=w;H=[H,t];D[h]^=H[0];h+1=M?(globalThis.sessionStorage.removeItem(D),["e"]):["a",new Uint8Array(Q.buffer,X+4)]}; SR=function(D,X,M){M=M===void 0?[]:M;this.maxItems=D;this.S=X===void 0?0:X;this.G=M}; moi=function(D){var X=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!X)return new SR(D);var M=X.split(",");if(M.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new SR(D);X=M.slice(1);X.length===1&&X[0]===""&&(X=[]);M=Number(M[0]);return isNaN(M)||M<0||M>X.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new SR(D)):new SR(D,M,X)}; nGH=function(D,X){this.logger=X;try{var M=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Q){M=!1}M&&(this.index=moi(D))}; bp9=function(D,X,M,Q,h){var H=D.index?Dw(D.logger,function(){return yL_(D.index,SXm(X),M,Q,h)},"W"):"u"; D.logger.La(H)}; edH=function(D,X,M){var Q=g.e(D.index?Dw(D.logger,function(){return PG1(SXm(X),M)},"R"):["u"]),h=Q.next().value; Q=Q.next().value;D.logger.hK(h);return Q}; gGR=function(D){function X(){M-=Q;M-=h;M^=h>>>13;Q-=h;Q-=M;Q^=M<<8;h-=M;h-=Q;h^=Q>>>13;M-=Q;M-=h;M^=h>>>12;Q-=h;Q-=M;Q^=M<<16;h-=M;h-=Q;h^=Q>>>5;M-=Q;M-=h;M^=h>>>3;Q-=h;Q-=M;Q^=M<<10;h-=M;h-=Q;h^=Q>>>15} D=Rdp(D);for(var M=2654435769,Q=2654435769,h=314159265,H=D.length,t=H,q=0;t>=12;t-=12,q+=12)M+=Eh(D,q),Q+=Eh(D,q+4),h+=Eh(D,q+8),X();h+=H;switch(t){case 11:h+=D[q+10]<<24;case 10:h+=D[q+9]<<16;case 9:h+=D[q+8]<<8;case 8:Q+=D[q+7]<<24;case 7:Q+=D[q+6]<<16;case 6:Q+=D[q+5]<<8;case 5:Q+=D[q+4];case 4:M+=D[q+3]<<24;case 3:M+=D[q+2]<<16;case 2:M+=D[q+1]<<8;case 1:M+=D[q+0]}X();return IL5.toString(h)}; Rdp=function(D){for(var X=[],M=0;M>7,D.error.code]);Q.set(M,4);return Q}; gh=function(D,X,M){yx.call(this,D);this.U=X;this.clientState=M;this.S="S";this.G="q"}; I_=function(D){return globalThis.TextEncoder?(new TextEncoder).encode(D):g.ox(D)}; dop=function(D,X,M){return D instanceof Fv?qXH(D,M,X,1):D.Kt(M)}; dh=function(D){g.O.call(this);var X=this;this.Y=new g.wh;this.U=0;this.G=void 0;this.state=2;this.oz=D.oz;this.fn=D.fn;this.b2=Object.assign({},rLm,D.b2||{});this.logger=D.oz.Mh();var M;this.onError=(M=D.onError)!=null?M:function(){}; this.H5=D.H5||!1;if(ipR(D)){var Q=this.oz;this.D=function(){return aLH(Q).catch(function(t){t=X.reportError(new Xg(X.S?20:32,"TRG:Disposed",t));X.G=t;var q;(q=X.S)==null||q.dispose();X.S=void 0;X.Y.reject(t)})}; Fr9(Q,function(){return void vg(X)}); Q.K===2&&vg(this)}else this.D=D.rVR,vg(this);var h=this.logger.share();h.Ih("o");var H=new ut(h,"o");this.Y.promise.then(function(){H.done();h.FJ();h.dispose()},function(){return void h.dispose()}); this.addOnDisposeCallback(function(){X.S?(X.S.dispose(),X.S=void 0):X.G?X.logger.FJ():(X.G=X.reportError(new Xg(32,"TNP:Disposed")),X.logger.FJ(),X.Y.reject(X.G))}); g.p(this,this.logger)}; oGm=function(D,X){if(!(X instanceof Xg))if(X instanceof r3){var M=Error(X.toString());M.stack=X.stack;X=new Xg(11,"EBH:Error",M)}else X=new Xg(12,"BSO:Unknown",X);return D.reportError(X)}; vg=function(D){var X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c;return g.r(function(S){switch(S.S){case 1:X=void 0;D.U++;M=new g.wh;D.oz instanceof Vx&&D.oz.U.push(M.promise);if(!D.H5){S.D4(2);break}Q=new g.wh;setTimeout(function(){return void Q.resolve()}); return g.I(S,Q.promise,2);case 2:return h=D.logger.share(),g.N_(S,4,5),D.state=5,H={},t=[],g.I(S,Bg(D.oz.snapshot({UG:H,Dj:t}),D.b2.ygR,function(){return Promise.reject(new Xg(15,"MDA:Timeout"))}),7); case 7:q=S.G;if(D.H2())throw new Xg(D.S?20:32,"MDA:Disposed");w=t[0];D.state=6;return g.I(S,Bg(dop(D.fn,h,q),D.b2.iZ,function(){return Promise.reject(new Xg(10,"BWB:Timeout"))}),8); case 8:T=S.G;if(D.H2())throw new Xg(D.S?20:32,"BWB:Disposed");D.state=7;X=Dw(h,function(){var n=CGp(D,T,M,w);n.Y.promise.then(function(){return void D.D()}); return n},"i"); case 5:g.s8(S);h.dispose();g.KG(S,6);break;case 4:L=g.LG(S);(K=X)==null||K.dispose();if(!D.G){a=oGm(D,L);M.resolve();var b;if(b=D.oz instanceof Vx&&D.U<2)a:if(L instanceof Xg)b=L.code!==32&&L.code!==20&&L.code!==10;else{if(L instanceof r3)switch(L.code){case 2:case 13:case 14:case 4:break;default:b=!1;break a}b=!0}if(b)return F=(1+Math.random()*.25)*(D.S?6E4:1E3),V=setTimeout(function(){return void D.D()},F),D.addOnDisposeCallback(function(){return void clearTimeout(V)}),S.return(); D.G=a}h.s5(D.S?13:14);D.Y.reject(D.G);return S.return();case 6:D.state=8,D.U=0,(c=D.S)==null||c.dispose(),D.S=X,D.Y.resolve(),g.HZ(S)}})}; CGp=function(D,X,M,Q){var h=Jx(X,2)*1E3;if(h<=0)throw new Xg(31,"TTM:Invalid");if(xQ(X,4))return new eR(D.logger,xQ(X,4),h);if(!Jx(X,3))return new br(D.logger,zN(mS(X,1)),h);if(!Q)throw new Xg(4,"PMD:Undefined");Q=Q(zN(mS(X,1)));if(!(Q instanceof Function))throw new Xg(16,"APF:Failed");D.X=Math.floor((Date.now()+h)/1E3);D=new nY(D.logger,Q,Jx(X,3),h);D.addOnDisposeCallback(function(){return void M.resolve()}); return D}; Op5=function(D,X){X=X instanceof Xg?X:new Xg(5,"TVD:error",X);return D.reportError(X)}; JLm=function(D,X,M){try{if(D.H2())throw new Xg(21,"BNT:disposed");if(!D.S&&D.G)throw D.G;var Q,h;return(h=(Q=pW9(D,X,M))!=null?Q:ALi(D,X,M))!=null?h:YX9(D,X,M)}catch(H){if(!X.r_)throw Op5(D,H);return lLn(D,M,H)}}; pW9=function(D,X,M){var Q;return(Q=D.S)==null?void 0:m_(Q,function(){return rh(D,X)},M,function(h){var H; if(D.S instanceof nY&&((H=X.pQ)==null?0:H.SY))try{var t;(t=D.cache)==null||bp9(t,rh(D,X),h,X.pQ.ZZ,D.X-120)}catch(q){D.reportError(new Xg(24,"ELX:write",q))}})}; ALi=function(D,X,M){var Q;if((Q=X.pQ)!=null&&Q.aB)try{var h,H=(h=D.cache)==null?void 0:edH(h,rh(D,X),X.pQ.ZZ);return H?M?Dw(D.logger,function(){return g.C7(H,2)},"a"):H:void 0}catch(t){D.reportError(new Xg(23,"RXO:read",t))}}; YX9=function(D,X,M){var Q={stack:[],error:void 0,hasError:!1};try{if(!X.Do)throw new Xg(29,"SDF:notready");return m_(Ad2(Q,new gh(D.logger,0,D.state)),function(){return rh(D,X)},M)}catch(h){Q.error=h,Q.hasError=!0}finally{Ymi(Q)}}; lLn=function(D,X,M){var Q={stack:[],error:void 0,hasError:!1};try{var h=Op5(D,M);return m_(Ad2(Q,new R_(D.logger,h)),function(){return[]},X)}catch(H){Q.error=H,Q.hasError=!0}finally{Ymi(Q)}}; rh=function(D,X){return X.kJ?X.kJ:X.UG?Dw(D.logger,function(){return X.kJ=I_(X.UG)},"c"):[]}; xoH=function(){var D=0,X;return function(M){X||(X=new Xv);var Q=new gh(X,D,1),h=m_(Q,function(){return I_(M)},!0); Q.dispose();D++;return h}}; ir=function(D){this.K$=tx(D)}; Wrn=function(D,X,M){this.e8=D;this.hU=X;this.metadata=M}; o_=function(D,X){X=X===void 0?{}:X;this.kwR=D;this.metadata=X;this.status=null}; CY=function(D,X,M,Q,h){this.name=D;this.methodType="unary";this.requestType=X;this.responseType=M;this.S=Q;this.G=h}; Oh=function(D){this.K$=tx(D)}; pY=function(D){this.K$=tx(D)}; Ap=function(D){this.K$=tx(D)}; Yp=function(D,X){this.G=[];this.U=[];this.D=[];this.Y=[];this.S=[];this.X=D.J5s;this.J=X;this.xhr=D.xhr;this.X&&Gk5(this)}; jmn=function(D,X){var M=new zd2;g.ti(D.xhr,"complete",function(){if(Ji(D.xhr)){var Q=g.x1(D.xhr);if(X&&D.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Q=atob(Q)}try{var h=D.J(Q)}catch(q){lr(D,Jp(new r3(13,"Error when deserializing response data; error: "+q+(", response: "+Q)),M));return}Q=mgn(D.xhr.getStatus());xp(D,Wg(D));Q===0?kkm(D,h):lr(D,Jp(new r3(Q,"Xhr succeeded but the status code is not 200"),M))}else{Q=g.x1(D.xhr);h=Wg(D);if(Q){var H= u0o(D,Q);Q=H.code;var t=H.details;H=H.metadata}else Q=2,t="Rpc failed due to xhr error. uri: "+String(D.xhr.K)+", error code: "+(D.xhr.G+", error: ")+D.xhr.getLastError(),H=h;xp(D,h);lr(D,Jp(new r3(Q,t,H),M))}})}; Gk5=function(D){GO(D.X,"data",function(X){if("1"in X){var M=X["1"];try{var Q=D.J(M)}catch(h){lr(D,new r3(13,"Error when deserializing response data; error: "+h+(", response: "+M)))}Q&&kkm(D,Q)}if("2"in X)for(X=u0o(D,X["2"]),M=0;M-1&&D.splice(X,1)}; kkm=function(D,X){for(var M=0;M>4&15).toString(16)+(D&15).toString(16)}; q3=function(D,X){this.G=this.S=null;this.Y=D||null;this.U=!!X}; LC=function(D){D.S||(D.S=new Map,D.G=0,D.Y&&ES(D.Y,function(X,M){D.add(YZ(X),M)}))}; q$W=function(D,X){LC(D);X=sx(D,X);return D.S.has(X)}; g.wS2=function(D,X,M){D.remove(X);M.length>0&&(D.Y=null,D.S.set(sx(D,X),g.Hi(M)),D.G=D.G+M.length)}; sx=function(D,X){X=String(X);D.U&&(X=X.toLowerCase());return X}; HPp=function(D,X){X&&!D.U&&(LC(D),D.Y=null,D.S.forEach(function(M,Q){var h=Q.toLowerCase();Q!=h&&(this.remove(Q),g.wS2(this,h,M))},D)); D.U=X}; g.Tgd=function(D){var X="";g.sm(D,function(M,Q){X+=Q;X+=":";X+=M;X+="\r\n"}); return X}; g.KC=function(D,X,M){if(g.ef(M))return D;M=g.Tgd(M);if(typeof D==="string")return bF(D,g.A4(X),M);g.T1(D,X,M);return D}; g.an=function(D){g.O.call(this);this.G=D;this.S={}}; Ld1=function(D,X,M,Q,h,H){if(Array.isArray(M))for(var t=0;t=0)return!0;try{var X=new g.Bs(D)}catch(M){return g.xB(eio,function(Q){return D.search(Q)>0})!=null}return X.X.match(Ri2)?!0:g.xB(eio,function(M){return D.match(M)!=null})!=null}; g.bh=function(D,X){return D.replace(gqs,function(M,Q){try{var h=g.RM(X,Q);if(h==null||h.toString()==null)return M;h=h.toString();if(h==""||!g.kR(g.J4(h)))return encodeURIComponent(h).replace(/%2C/g,",")}catch(H){}return M})}; vqo=function(D){this.K$=tx(D,500)}; dbH=function(D){this.K$=tx(D,500)}; e9=function(D){this.K$=tx(D)}; Rn=function(D){this.K$=tx(D)}; r21=function(D){return M5[N[15]](this,16,D)}; iPH=function(D){var X=D.K$;return CQ(D,X,X[XB]|0,e9,2,1)}; OPW=function(D){var X;if((X=D[oq_])!=null)D=X;else{if(eZ!==eZ)throw Error();D=D[oq_]=C01(D.S)}return D}; A2R=function(D){var X;return(X=D[pSH])!=null?X:D[pSH]=new Map(iPH(OPW(D)).map(function(M){return[M.getName(),g.lY(M,2)]}))}; In=function(D,X){return Object.is(D,X)}; v5=function(D){var X=gY;gY=D;return X}; Y$i=function(D){if(D.jF!==void 0){var X=dY;dY=!0;try{for(var M=D.jF;M!==void 0;M=M.hV){var Q=M.qs;Q.xk||(D=void 0,Q.xk=!0,Y$i(Q),(D=Q.Kg)==null||D.call(Q,Q))}}finally{dY=X}}}; lTs=function(){var D;return((D=gY)==null?void 0:D.Lt)!==!1}; J2m=function(D){D&&(D.kF=void 0,D.Q4=!0);return v5(D)}; Wdd=function(D){D.Q4=!1;var X=D.kF,M=X!==void 0?X.W4:D.producers;if(M!==void 0){if(rY(D)){do M=xbs(M);while(M!==void 0)}X!==void 0?X.W4=void 0:D.producers=void 0}}; GeW=function(D,X){var M=D.Dh,Q=rY(D);M!==void 0?(X.hV=M.hV,M.hV=X):(X.hV=void 0,D.jF=X);X.C7=M;D.Dh=X;if(!Q)for(D=D.producers;D!==void 0;D=D.W4)GeW(D.Nl,D)}; xbs=function(D){var X=D.Nl,M=D.W4,Q=D.hV,h=D.C7;D.hV=void 0;D.C7=void 0;Q!==void 0?Q.C7=h:X.Dh=h;if(h!==void 0)h.hV=Q;else if(X.jF=Q,!rY(X))for(D=X.producers;D!==void 0;)D=xbs(D);return M}; rY=function(D){return D.xJ||D.jF!==void 0}; jcd=function(D,X){function M(){a:{if(dY)throw Error("");if(gY!==null){var h=gY.kF;if(h===void 0||h.Nl!==Q){var H=void 0,t=gY.Q4;if(t&&(H=h!==void 0?h.W4:gY.producers,H!==void 0&&H.Nl===Q)){gY.kF=H;H.oyF=Q.version;break a}var q=Q.Dh,w;if(!(w=q===void 0||q.qs!==gY)){if(t){b:{w=gY;t=w.kF;if(t!==void 0){w=w.producers;do{if(w===q){t=!0;break b}if(w===t)break;w=w.W4}while(w!==void 0)}t=!1}t=!t}w=t}w&&(t=rY(gY),H={Nl:Q,qs:gY,W4:H,C7:q,oyF:Q.version,hV:void 0},gY.kF=H,h!==void 0?h.W4=H:gY.producers=H,t&& GeW(Q,H))}}}return Q.value} var Q=Object.create(zii);Q.value=D;X!==void 0&&(Q.V3=X);M[ke1]=Q;return[M,function(h){return u8p(Q,h)}, function(h){if(!lTs())throw Error();u8p(Q,h(Q.value))}]}; u8p=function(D,X){if(!lTs())throw Error();D.V3(D.value,X)||(D.value=X,D.version++,DN_++,Y$i(D))}; ih=function(D,X){X=X===void 0?"":X;var M={};D=jcd(D,M.equals);M=M.debugName;var Q;X=M&&X?M+"__"+X:(Q=M!=null?M:X)!=null?Q:"[signal]";D[0][ke1].debugName=X}; CC=function(D){g.Ks.call(this);var X=this;this.D=this.G=0;this.rV=D!=null?D:{cI:function(h,H){return setTimeout(h,H)}, zN:function(h){clearTimeout(h)}}; var M,Q;this.S=(Q=(M=window.navigator)==null?void 0:M.onLine)!=null?Q:!0;this.Y=function(){return g.r(function(h){return g.I(h,on(X),0)})}; window.addEventListener("offline",this.Y);window.addEventListener("online",this.Y);this.D||this.f6()}; XLH=function(){var D=g.Ox;CC.instance||(CC.instance=new CC(D));return CC.instance}; on=function(D,X){return D.U?D.U:D.U=new Promise(function(M){var Q,h,H,t;return g.r(function(q){switch(q.S){case 1:return Q=window.AbortController?new window.AbortController:void 0,H=(h=Q)==null?void 0:h.signal,t=!1,g.N_(q,2,3),Q&&(D.G=D.rV.cI(function(){Q.abort()},X||2E4)),g.I(q,fetch("/generate_204",{method:"HEAD", signal:H}),5);case 5:t=!0;case 3:g.s8(q);D.U=void 0;D.G&&(D.rV.zN(D.G),D.G=0);t!==D.S&&(D.S=t,D.S?D.dispatchEvent("networkstatus-online"):D.dispatchEvent("networkstatus-offline"));M(t);g.KG(q,0);break;case 2:g.LG(q),t=!1,q.D4(3)}})})}; Mwn=function(D){this.K$=tx(D)}; pC=function(){this.data=[];this.S=-1}; Q3_=function(D){D.S===-1&&(D.S=D.data.reduce(function(X,M,Q){return X+(M?Math.pow(2,Q):0)},0)); return D.S}; Al=function(D){D.setAttribute("role","link")}; lh=function(D,X){Array.isArray(X)&&(X=X.join(" "));X===""||X==void 0?(Ym||(X={},Ym=(X.atomic=!1,X.autocomplete="none",X.dropeffect="none",X.haspopup=!1,X.live="off",X.multiline=!1,X.multiselectable=!1,X.orientation="vertical",X.readonly=!1,X.relevant="additions text",X.required=!1,X.sort="none",X.busy=!1,X.disabled=!1,X.hidden=!1,X.invalid="false",X)),X=Ym,"label"in X?D.setAttribute("aria-label",X.label):D.removeAttribute("aria-label")):D.setAttribute("aria-label",X)}; Jl=function(D){D=D.getAttribute("aria-label");return D==null||D==void 0?"":String(D)}; g.xm=function(D,X,M){g.O.call(this);this.S=null;this.U=!1;this.X=D;this.D=M;this.G=X||window;this.Y=(0,g.iW)(this.Pd,this)}; h2H=function(D){D=D.G;return D.requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||null}; HmH=function(D){D=D.G;return D.cancelAnimationFrame||D.cancelRequestAnimationFrame||D.webkitCancelRequestAnimationFrame||D.mozCancelRequestAnimationFrame||D.oCancelRequestAnimationFrame||D.msCancelRequestAnimationFrame||null}; g.W5=function(D,X,M){g.O.call(this);this.S=D;this.i$=X||0;this.G=M;this.Y=(0,g.iW)(this.yW,this)}; g.G1=function(D,X){D.isActive()||D.start(X)}; g.z1=function(D){D.stop();D.yW()}; g.km=function(D){D.isActive()&&g.z1(D)}; g.uh=function(D,X,M){g.O.call(this);this.U=M!=null?D.bind(M):D;this.i$=X;this.Y=null;this.S=!1;this.G=0;this.kR=null}; j9=function(D){D.kR=g.g3(function(){D.kR=null;D.S&&!D.G&&(D.S=!1,j9(D))},D.i$); var X=D.Y;D.Y=null;D.U.apply(null,X)}; g.DP=function(D,X){this.S=D[g.E8.Symbol.iterator]();this.G=X}; tw9=function(D){return typeof D.className=="string"?D.className:D.getAttribute&&D.getAttribute("class")||""}; X3=function(D){return D.classList?D.classList:tw9(D).match(/\S+/g)||[]}; g.ME=function(D,X){typeof D.className=="string"?D.className=X:D.setAttribute&&D.setAttribute("class",X)}; g.QP=function(D,X){return D.classList?D.classList.contains(X):g.jb(X3(D),X)}; g.hN=function(D,X){if(D.classList)D.classList.add(X);else if(!g.QP(D,X)){var M=tw9(D);g.ME(D,M+(M.length>0?" "+X:X))}}; g.HC=function(D,X){if(D.classList)Array.prototype.forEach.call(X,function(h){g.hN(D,h)}); else{var M={};Array.prototype.forEach.call(X3(D),function(h){M[h]=!0}); Array.prototype.forEach.call(X,function(h){M[h]=!0}); X="";for(var Q in M)X+=X.length>0?" "+Q:Q;g.ME(D,X)}}; g.tN=function(D,X){D.classList?D.classList.remove(X):g.QP(D,X)&&g.ME(D,Array.prototype.filter.call(X3(D),function(M){return M!=X}).join(" "))}; g.NE=function(D,X){D.classList?Array.prototype.forEach.call(X,function(M){g.tN(D,M)}):g.ME(D,Array.prototype.filter.call(X3(D),function(M){return!g.jb(X,M)}).join(" "))}; g.qE=function(D,X,M){M?g.hN(D,X):g.tN(D,X)}; N4n=function(D,X){var M=!g.QP(D,X);g.qE(D,X,M)}; g.wV=function(){g.Ks.call(this);this.S=0;this.endTime=this.startTime=null}; qs2=function(D,X){Array.isArray(X)||(X=[X]);X=X.map(function(M){return typeof M==="string"?M:M.property+" "+M.duration+"s "+M.timing+" "+M.delay+"s"}); g.Q_(D,"transition",X.join(","))}; T2=function(D,X,M,Q,h){g.wV.call(this);this.G=D;this.D=X;this.X=M;this.U=Q;this.J=Array.isArray(h)?h:[h]}; wL2=function(D,X,M,Q){return new T2(D,X,{opacity:M},{opacity:Q},{property:"opacity",duration:X,timing:"ease-in",delay:0})}; Lps=function(D){D=Dc(D);if(D=="")return null;var X=String(D.slice(0,4)).toLowerCase();if(("url("1||D&&D.split(")"),null;if(D.indexOf("(")>0){if(/"|'/.test(D))return null;X=/([\-\w]+)\(/g;for(var M;M=X.exec(D);)if(!(M[1].toLowerCase()in T4W))return null}return D}; L6=function(D,X){D=g.E8[D];return D&&D.prototype?(X=Object.getOwnPropertyDescriptor(D.prototype,X))&&X.get||null:null}; s3o=function(D){var X=g.E8.CSSStyleDeclaration;return X&&X.prototype&&X.prototype[D]||null}; Kpd=function(D,X,M,Q){if(D)return D.apply(X,Q);if(g.s5&&document.documentMode<10){if(!X[M].call)throw Error("IE Clobbering detected");}else if(typeof X[M]!="function")throw Error("Clobbering detected");return X[M].apply(X,Q)}; B42=function(D){if(!D)return"";var X=document.createElement("div").style;ai9(D).forEach(function(M){var Q=g.Sq&&M in Fpn?M:M.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");zC(Q,"--")||zC(Q,"var")||(M=Kpd(Vw9,D,D.getPropertyValue?"getPropertyValue":"getAttribute",[M])||"",M=Lps(M),M!=null&&Kpd($Ns,X,X.setProperty?"setProperty":"setAttribute",[Q,M]))}); return X.cssText||""}; ai9=function(D){g.Ia(D)?D=g.Hi(D):(D=g.yF(D),g.X_(D,"cssText"));return D}; g.a9=function(D){var X,M=X=0,Q=!1;D=D.split(Zmn);for(var h=0;h.4?-1:1;return(X==0?null:X)==-1?"rtl":"ltr"}; g.BC=function(D){if(D instanceof F3||D instanceof VP||D instanceof $6)return D;if(typeof D.next=="function")return new F3(function(){return D}); if(typeof D[Symbol.iterator]=="function")return new F3(function(){return D[Symbol.iterator]()}); if(typeof D.yj=="function")return new F3(function(){return D.yj()}); throw Error("Not an iterator or iterable.");}; F3=function(D){this.G=D}; VP=function(D){this.G=D}; $6=function(D){F3.call(this,function(){return D}); this.Y=D}; ZP=function(D,X,M,Q,h,H,t,q){this.S=D;this.J=X;this.Y=M;this.D=Q;this.U=h;this.X=H;this.G=t;this.K=q}; U5=function(D,X){if(X==0)return D.S;if(X==1)return D.G;var M=QZ(D.S,D.Y,X),Q=QZ(D.Y,D.U,X);D=QZ(D.U,D.G,X);M=QZ(M,Q,X);Q=QZ(Q,D,X);return QZ(M,Q,X)}; Sss=function(D,X){var M=(X-D.S)/(D.G-D.S);if(M<=0)return 0;if(M>=1)return 1;for(var Q=0,h=1,H=0,t=0;t<8;t++){H=U5(D,M);var q=(U5(D,M+1E-6)-H)/1E-6;if(Math.abs(H-X)<1E-6)return M;if(Math.abs(q)<1E-6)break;else H1E-6&&t<8;t++)H=0}; g.E5=function(D){g.O.call(this);this.X=1;this.Y=[];this.U=0;this.S=[];this.G={};this.J=!!D}; y7d=function(D,X,M){g.SI(function(){D.apply(X,M)})}; g.yP=function(D){this.S2=D}; PC=function(D){this.S2=D}; P$i=function(D){this.data=D}; mNR=function(D){return D===void 0||D instanceof P$i?D:new P$i(D)}; mZ=function(D){this.S2=D}; g.nd9=function(D){var X=D.creation;D=D.expiration;return!!D&&Dg.CG()}; g.n6=function(D){this.S2=D}; bmn=function(){}; bH=function(){}; eu=function(D){this.S=D;this.G=null}; R9=function(D){if(D.S==null)throw Error("Storage mechanism: Storage unavailable");D.isAvailable()||ie(Error("Storage mechanism: Storage unavailable"))}; I9=function(){var D=null;try{D=g.E8.localStorage||null}catch(X){}eu.call(this,D)}; e21=function(){var D=null;try{D=g.E8.sessionStorage||null}catch(X){}eu.call(this,D)}; gV=function(D,X){this.G=D;this.S=X+"::"}; g.vC=function(D){var X=new I9;return X.isAvailable()?D?new gV(X,D):X:null}; dV=function(D,X){this.S=D;this.G=X}; rV=function(D){this.S=[];if(D)a:{if(D instanceof rV){var X=D.HX();D=D.pV();if(this.S.length<=0){for(var M=this.S,Q=0;Q>>6:(H<65536?q[M++]=224|H>>>12:(q[M++]=240|H>>>18,q[M++]=128|H>>>12&63),q[M++]=128|H>>> 6&63),q[M++]=128|H&63);return q}; p6=function(D){for(var X=D.length;--X>=0;)D[X]=0}; AN=function(D,X,M,Q,h){this.zG=D;this.EM=X;this.wP=M;this.uZ=Q;this.by2=h;this.ZC=D&&D.length}; Y6=function(D,X){this.s2=D;this.LN=0;this.iR=X}; lH=function(D,X){D.UW[D.pending++]=X&255;D.UW[D.pending++]=X>>>8&255}; JN=function(D,X,M){D.Q5>16-M?(D.rY|=X<>16-D.Q5,D.Q5+=M-16):(D.rY|=X<>>=1,M<<=1;while(--X>0);return M>>>1}; dNn=function(D,X,M){var Q=Array(16),h=0,H;for(H=1;H<=15;H++)Q[H]=h=h+M[H-1]<<1;for(M=0;M<=X;M++)h=D[M*2+1],h!==0&&(D[M*2]=vdp(Q[h]++,h))}; r7n=function(D){var X;for(X=0;X<286;X++)D.Rx[X*2]=0;for(X=0;X<30;X++)D.zn[X*2]=0;for(X=0;X<19;X++)D.vI[X*2]=0;D.Rx[512]=1;D.Eu=D.QX=0;D.Vj=D.matches=0}; imR=function(D){D.Q5>8?lH(D,D.rY):D.Q5>0&&(D.UW[D.pending++]=D.rY);D.rY=0;D.Q5=0}; ods=function(D,X,M){imR(D);lH(D,M);lH(D,~M);O5.X4(D.UW,D.window,X,M,D.pending);D.pending+=M}; C$m=function(D,X,M,Q){var h=X*2,H=M*2;return D[h]>>7)];x6(D,t,M);q=ju[t];q!==0&&(h-=Dr[t],JN(D,h,q))}}while(Q>1;t>=1;t--)WC(D,M,t);w=H;do t=D.u0[1],D.u0[1]=D.u0[D.Uu--],WC(D,M,1),Q=D.u0[1],D.u0[--D.CB]=t,D.u0[--D.CB]=Q,M[w*2]=M[t*2]+M[Q*2],D.depth[w]=(D.depth[t]>=D.depth[Q]?D.depth[t]:D.depth[Q])+1,M[t*2+1]=M[Q*2+1]=w,D.u0[1]=w++,WC(D,M,1);while(D.Uu>= 2);D.u0[--D.CB]=D.u0[1];t=X.s2;w=X.LN;Q=X.iR.zG;h=X.iR.ZC;H=X.iR.EM;var T=X.iR.wP,L=X.iR.by2,K,a=0;for(K=0;K<=15;K++)D.lL[K]=0;t[D.u0[D.CB]*2+1]=0;for(X=D.CB+1;X<573;X++){var F=D.u0[X];K=t[t[F*2+1]*2+1]+1;K>L&&(K=L,a++);t[F*2+1]=K;if(!(F>w)){D.lL[K]++;var V=0;F>=T&&(V=H[F-T]);var c=t[F*2];D.Eu+=c*(K+V);h&&(D.QX+=c*(Q[F*2+1]+V))}}if(a!==0){do{for(K=L-1;D.lL[K]===0;)K--;D.lL[K]--;D.lL[K+1]+=2;D.lL[L]--;a-=2}while(a>0);for(K=L;K!==0;K--)for(F=D.lL[K];F!==0;)Q=D.u0[--X],Q>w||(t[Q*2+1]!==K&&(D.Eu+=(K- t[Q*2+1])*t[Q*2],t[Q*2+1]=K),F--)}dNn(M,q,D.lL)}; pLs=function(D,X,M){var Q,h=-1,H=X[1],t=0,q=7,w=4;H===0&&(q=138,w=3);X[(M+1)*2+1]=65535;for(Q=0;Q<=M;Q++){var T=H;H=X[(Q+1)*2+1];++t>>=1)if(X&1&&D.Rx[M*2]!==0)return 0;if(D.Rx[18]!==0||D.Rx[20]!==0||D.Rx[26]!==0)return 1;for(M=32;M<256;M++)if(D.Rx[M*2]!==0)return 1;return 0}; Mf=function(D,X,M){D.UW[D.Gt+D.Vj*2]=X>>>8&255;D.UW[D.Gt+D.Vj*2+1]=X&255;D.UW[D.R_+D.Vj]=M&255;D.Vj++;X===0?D.Rx[M*2]++:(D.matches++,X--,D.Rx[(G2[M]+256+1)*2]++,D.zn[(X<256?uH[X]:uH[256+(X>>>7)])*2]++);return D.Vj===D.VC-1}; hB=function(D,X){D.msg=Q1[X];return X}; HG=function(D){for(var X=D.length;--X>=0;)D[X]=0}; tB=function(D){var X=D.state,M=X.pending;M>D.wp&&(M=D.wp);M!==0&&(O5.X4(D.output,X.UW,X.wr,M,D.uC),D.uC+=M,X.wr+=M,D.ZE+=M,D.wp-=M,X.pending-=M,X.pending===0&&(X.wr=0))}; w1=function(D,X){var M=D.kc>=0?D.kc:-1,Q=D.D1-D.kc,h=0;if(D.level>0){D.JR.As===2&&(D.JR.As=Ys9(D));Xr(D,D.SE);Xr(D,D.BF);pLs(D,D.Rx,D.SE.LN);pLs(D,D.zn,D.BF.LN);Xr(D,D.Tc);for(h=18;h>=3&&D.vI[lis[h]*2+1]===0;h--);D.Eu+=3*(h+1)+5+5+4;var H=D.Eu+3+7>>>3;var t=D.QX+3+7>>>3;t<=H&&(H=t)}else H=t=Q+5;if(Q+4<=H&&M!==-1)JN(D,X?1:0,3),ods(D,M,Q);else if(D.strategy===4||t===H)JN(D,2+(X?1:0),3),OmW(D,Nf,qf);else{JN(D,4+(X?1:0),3);M=D.SE.LN+1;Q=D.BF.LN+1;h+=1;JN(D,M-257,5);JN(D,Q-1,5);JN(D,h-4,4);for(H=0;H>>8&255;D.UW[D.pending++]=X&255}; J75=function(D,X){var M=D.VS,Q=D.D1,h=D.a4,H=D.Tj,t=D.D1>D.nm-262?D.D1-(D.nm-262):0,q=D.window,w=D.YB,T=D.zY,L=D.D1+258,K=q[Q+h-1],a=q[Q+h];D.a4>=D.H$&&(M>>=2);H>D.Wb&&(H=D.Wb);do{var F=X;if(q[F+h]===a&&q[F+h-1]===K&&q[F]===q[Q]&&q[++F]===q[Q+1]){Q+=2;for(F++;q[++Q]===q[++F]&&q[++Q]===q[++F]&&q[++Q]===q[++F]&&q[++Q]===q[++F]&&q[++Q]===q[++F]&&q[++Q]===q[++F]&&q[++Q]===q[++F]&&q[++Q]===q[++F]&&Qh){D.U_=X;h=F;if(F>=H)break;K=q[Q+h-1];a=q[Q+h]}}}while((X=T[X&w])>t&&--M!== 0);return h<=D.Wb?h:D.Wb}; Zr=function(D){var X=D.nm,M;do{var Q=D.Q7-D.Wb-D.D1;if(D.D1>=X+(X-262)){O5.X4(D.window,D.window,X,X,0);D.U_-=X;D.D1-=X;D.kc-=X;var h=M=D.mF;do{var H=D.head[--h];D.head[h]=H>=X?H-X:0}while(--M);h=M=X;do H=D.zY[--h],D.zY[h]=H>=X?H-X:0;while(--M);Q+=X}if(D.JR.Db===0)break;h=D.JR;M=D.window;H=D.D1+D.Wb;var t=h.Db;t>Q&&(t=Q);t===0?M=0:(h.Db-=t,O5.X4(M,h.input,h.FZ,t,H),h.state.wrap===1?h.L6=$x(h.L6,M,t,H):h.state.wrap===2&&(h.L6=BG(h.L6,M,t,H)),h.FZ+=t,h.qb+=t,M=t);D.Wb+=M;if(D.Wb+D.Bx>=3)for(Q=D.D1-D.Bx, D.NK=D.window[Q],D.NK=(D.NK<=3&&(D.NK=(D.NK<=3)if(M=Mf(D,D.D1-D.U_,D.zF-3),D.Wb-=D.zF,D.zF<=D.Bf&&D.Wb>=3){D.zF--;do D.D1++,D.NK=(D.NK<=3&&(D.NK=(D.NK<4096)&&(D.zF=2));if(D.a4>=3&&D.zF<=D.a4){Q=D.D1+D.Wb-3;M=Mf(D,D.D1-1-D.wb,D.a4-3);D.Wb-=D.a4-1;D.a4-=2;do++D.D1<=Q&&(D.NK=(D.NK<=3&&D.D1>0&&(Q=D.D1-1,M=H[Q],M===H[++Q]&&M===H[++Q]&&M===H[++Q])){for(h=D.D1+258;M===H[++Q]&&M===H[++Q]&&M===H[++Q]&&M===H[++Q]&&M===H[++Q]&&M===H[++Q]&&M===H[++Q]&&M===H[++Q]&&QD.Wb&&(D.zF=D.Wb)}D.zF>=3?(M=Mf(D,1,D.zF-3),D.Wb-=D.zF,D.D1+=D.zF,D.zF=0):(M=Mf(D,0,D.window[D.D1]),D.Wb--,D.D1++);if(M&&(w1(D,!1),D.JR.wp===0))return 1}D.Bx=0;return X=== 4?(w1(D,!0),D.JR.wp===0?3:4):D.Vj&&(w1(D,!1),D.JR.wp===0)?1:2}; Wp1=function(D,X){for(var M;;){if(D.Wb===0&&(Zr(D),D.Wb===0)){if(X===0)return 1;break}D.zF=0;M=Mf(D,0,D.window[D.D1]);D.Wb--;D.D1++;if(M&&(w1(D,!1),D.JR.wp===0))return 1}D.Bx=0;return X===4?(w1(D,!0),D.JR.wp===0?3:4):D.Vj&&(w1(D,!1),D.JR.wp===0)?1:2}; fB=function(D,X,M,Q,h){this.mI=D;this.UjR=X;this.CpI=M;this.nl4=Q;this.func=h}; GV5=function(){this.JR=null;this.status=0;this.UW=null;this.wrap=this.pending=this.wr=this.GL=0;this.n6=null;this.aq=0;this.method=8;this.zd=-1;this.YB=this.x6=this.nm=0;this.window=null;this.Q7=0;this.head=this.zY=null;this.Tj=this.H$=this.strategy=this.level=this.Bf=this.VS=this.a4=this.Wb=this.U_=this.D1=this.wD=this.wb=this.zF=this.kc=this.nZ=this.hf=this.Du=this.mF=this.NK=0;this.Rx=new O5.P8(1146);this.zn=new O5.P8(122);this.vI=new O5.P8(78);HG(this.Rx);HG(this.zn);HG(this.vI);this.Tc=this.BF= this.SE=null;this.lL=new O5.P8(16);this.u0=new O5.P8(573);HG(this.u0);this.CB=this.Uu=0;this.depth=new O5.P8(573);HG(this.depth);this.Q5=this.rY=this.Bx=this.matches=this.QX=this.Eu=this.Gt=this.Vj=this.VC=this.R_=0}; z29=function(D,X){if(!D||!D.state||X>5||X<0)return D?hB(D,-2):-2;var M=D.state;if(!D.output||!D.input&&D.Db!==0||M.status===666&&X!==4)return hB(D,D.wp===0?-5:-2);M.JR=D;var Q=M.zd;M.zd=X;if(M.status===42)if(M.wrap===2)D.L6=0,Fr(M,31),Fr(M,139),Fr(M,8),M.n6?(Fr(M,(M.n6.text?1:0)+(M.n6.Cc?2:0)+(M.n6.extra?4:0)+(M.n6.name?8:0)+(M.n6.comment?16:0)),Fr(M,M.n6.time&255),Fr(M,M.n6.time>>8&255),Fr(M,M.n6.time>>16&255),Fr(M,M.n6.time>>24&255),Fr(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),Fr(M,M.n6.os& 255),M.n6.extra&&M.n6.extra.length&&(Fr(M,M.n6.extra.length&255),Fr(M,M.n6.extra.length>>8&255)),M.n6.Cc&&(D.L6=BG(D.L6,M.UW,M.pending,0)),M.aq=0,M.status=69):(Fr(M,0),Fr(M,0),Fr(M,0),Fr(M,0),Fr(M,0),Fr(M,M.level===9?2:M.strategy>=2||M.level<2?4:0),Fr(M,3),M.status=113);else{var h=8+(M.x6-8<<4)<<8;h|=(M.strategy>=2||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6;M.D1!==0&&(h|=32);M.status=113;V1(M,h+(31-h%31));M.D1!==0&&(V1(M,D.L6>>>16),V1(M,D.L6&65535));D.L6=1}if(M.status===69)if(M.n6.extra){for(h= M.pending;M.aq<(M.n6.extra.length&65535)&&(M.pending!==M.GL||(M.n6.Cc&&M.pending>h&&(D.L6=BG(D.L6,M.UW,M.pending-h,h)),tB(D),h=M.pending,M.pending!==M.GL));)Fr(M,M.n6.extra[M.aq]&255),M.aq++;M.n6.Cc&&M.pending>h&&(D.L6=BG(D.L6,M.UW,M.pending-h,h));M.aq===M.n6.extra.length&&(M.aq=0,M.status=73)}else M.status=73;if(M.status===73)if(M.n6.name){h=M.pending;do{if(M.pending===M.GL&&(M.n6.Cc&&M.pending>h&&(D.L6=BG(D.L6,M.UW,M.pending-h,h)),tB(D),h=M.pending,M.pending===M.GL)){var H=1;break}H=M.aqh&&(D.L6=BG(D.L6,M.UW,M.pending-h,h));H===0&&(M.aq=0,M.status=91)}else M.status=91;if(M.status===91)if(M.n6.comment){h=M.pending;do{if(M.pending===M.GL&&(M.n6.Cc&&M.pending>h&&(D.L6=BG(D.L6,M.UW,M.pending-h,h)),tB(D),h=M.pending,M.pending===M.GL)){H=1;break}H=M.aqh&&(D.L6=BG(D.L6,M.UW,M.pending-h,h));H===0&&(M.status=103)}else M.status= 103;M.status===103&&(M.n6.Cc?(M.pending+2>M.GL&&tB(D),M.pending+2<=M.GL&&(Fr(M,D.L6&255),Fr(M,D.L6>>8&255),D.L6=0,M.status=113)):M.status=113);if(M.pending!==0){if(tB(D),D.wp===0)return M.zd=-1,0}else if(D.Db===0&&(X<<1)-(X>4?9:0)<=(Q<<1)-(Q>4?9:0)&&X!==4)return hB(D,-5);if(M.status===666&&D.Db!==0)return hB(D,-5);if(D.Db!==0||M.Wb!==0||X!==0&&M.status!==666){Q=M.strategy===2?Wp1(M,X):M.strategy===3?xNo(M,X):SL[M.level].func(M,X);if(Q===3||Q===4)M.status=666;if(Q===1||Q===3)return D.wp===0&&(M.zd= -1),0;if(Q===2&&(X===1?(JN(M,2,3),x6(M,256,Nf),M.Q5===16?(lH(M,M.rY),M.rY=0,M.Q5=0):M.Q5>=8&&(M.UW[M.pending++]=M.rY&255,M.rY>>=8,M.Q5-=8)):X!==5&&(JN(M,0,3),ods(M,0,0),X===3&&(HG(M.head),M.Wb===0&&(M.D1=0,M.kc=0,M.Bx=0))),tB(D),D.wp===0))return M.zd=-1,0}if(X!==4)return 0;if(M.wrap<=0)return 1;M.wrap===2?(Fr(M,D.L6&255),Fr(M,D.L6>>8&255),Fr(M,D.L6>>16&255),Fr(M,D.L6>>24&255),Fr(M,D.qb&255),Fr(M,D.qb>>8&255),Fr(M,D.qb>>16&255),Fr(M,D.qb>>24&255)):(V1(M,D.L6>>>16),V1(M,D.L6&65535));tB(D);M.wrap>0&& (M.wrap=-M.wrap);return M.pending!==0?0:1}; ED=function(D){if(!(this instanceof ED))return new ED(D);D=this.options=O5.assign({level:-1,method:8,chunkSize:16384,bF:15,s2R:8,strategy:0,to:""},D||{});D.raw&&D.bF>0?D.bF=-D.bF:D.IF&&D.bF>0&&D.bF<16&&(D.bF+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.JR=new kVn;this.JR.wp=0;var X=this.JR;var M=D.level,Q=D.method,h=D.bF,H=D.s2R,t=D.strategy;if(X){var q=1;M===-1&&(M=6);h<0?(q=0,h=-h):h>15&&(q=2,h-=16);if(H<1||H>9||Q!==8||h<8||h>15||M<0||M>9||t<0||t>4)X=hB(X,-2);else{h===8&&(h=9); var w=new GV5;X.state=w;w.JR=X;w.wrap=q;w.n6=null;w.x6=h;w.nm=1<>=7;H<30;H++)for(Dr[H]=t<<7,h=0;h<1<=T.nm&&(X===0&&(HG(T.head),T.D1=0,T.kc=0,T.Bx=0),M=new O5.f0(T.nm),O5.X4(M,H,t-T.nm,T.nm,0),H=M,t=T.nm);M=D.Db;Q=D.FZ;h=D.input;D.Db=t;D.FZ=0;D.input=H;for(Zr(T);T.Wb>=3;){H=T.D1;t=T.Wb-2;do T.NK=(T.NK<1?X[D[0]]=D[1]:D.length===1&&Object.assign(X,D[0])}; g.zZ=function(D,X){return D in WG?WG[D]:X}; kx=function(D){var X=WG.EXPERIMENT_FLAGS;return X?X[D]:void 0}; ZsR=function(D){uq.forEach(function(X){return X(D)})}; g.DS=function(D){return D&&window.yterr?function(){try{return D.apply(this,arguments)}catch(X){g.jL(X)}}:D}; g.jL=function(D){var X=g.mn("yt.logging.errors.log");X?X(D,"ERROR",void 0,void 0,void 0,void 0,void 0):(X=g.zZ("ERRORS",[]),X.push([D,"ERROR",void 0,void 0,void 0,void 0,void 0]),GZ("ERRORS",X));ZsR(D)}; Xc=function(D,X,M,Q,h){var H=g.mn("yt.logging.errors.log");H?H(D,"WARNING",X,M,Q,void 0,h):(H=g.zZ("ERRORS",[]),H.push([D,"WARNING",X,M,Q,void 0,h]),GZ("ERRORS",H))}; Mq=function(D,X){X=D.split(X);for(var M={},Q=0,h=X.length;Q1?D[1]:D[0])):{}}; tW=function(D,X){return SyR(D,X||{},!0)}; Nq=function(D,X){return SyR(D,X||{},!1)}; SyR=function(D,X,M){var Q=D.split("#",2);D=Q[0];Q=Q.length>1?"#"+Q[1]:"";var h=D.split("?",2);D=h[0];h=dR(h[1]||"");for(var H in X)if(M||!g.mW(h,H))h[H]=X[H];return g.nJ(D,h)+Q}; qq=function(D){if(!X)var X=window.location.href;var M=g.US(D)[1]||null,Q=g.cR(D);M&&Q?(D=g.US(D),X=g.US(X),D=D[3]==X[3]&&D[1]==X[1]&&D[4]==X[4]):D=Q?g.cR(X)===Q&&(Number(g.US(X)[4]||null)||null)===(Number(g.US(D)[4]||null)||null):!0;return D}; wc=function(D){D||(D=document.location.href);D=g.US(D)[1]||null;return D!==null&&D==="https"}; Tr=function(D){D=E1s(D);return D===null?!1:D[0]==="com"&&D[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; yio=function(D){D=E1s(D);return D===null?!1:D[1]==="google"?!0:D[2]==="google"?D[0]==="au"&&D[1]==="com"?!0:D[0]==="uk"&&D[1]==="co"?!0:!1:!1}; E1s=function(D){D=g.cR(D);return D!==null?D.split(".").reverse():null}; Um1=function(D){return D&&D.match(PtH)?D:YZ(D)}; Ka=function(D){var X=La;D=D===void 0?$m_():D;var M=Object,Q=M.assign,h=sZ(X);var H=X.S;try{var t=H.screenX;var q=H.screenY}catch(b){}try{var w=H.outerWidth;var T=H.outerHeight}catch(b){}try{var L=H.innerWidth;var K=H.innerHeight}catch(b){}try{var a=H.screenLeft;var F=H.screenTop}catch(b){}try{L=H.innerWidth,K=H.innerHeight}catch(b){}try{var V=H.screen.availWidth;var c=H.screen.availTop}catch(b){}H=[a,F,t,q,V,c,w,T,L,K];t=SOW(!1,X.S.top);q={};var S=S===void 0?g.E8:S;w=new pC;"SVGElement"in S&&"createElementNS"in S.document&&w.set(0);T=ifi();T["allow-top-navigation-by-user-activation"]&&w.set(1);T["allow-popups-to-escape-sandbox"]&&w.set(2);S.crypto&&S.crypto.subtle&&w.set(3);"TextDecoder"in S&&"TextEncoder"in S&&w.set(4);S=Q3_(w);X=(q.bc=S,q.bih=t.height,q.biw=t.width,q.brdim=H.join(),q.vis=ZF(X.G),q.wgl=!!Yf.WebGLRenderingContext,q);M=Q.call(M,h,X);M.ca_type="image";D&&(M.bid=D);return M}; sZ=function(D){var X={};X.dt=mm2;X.flash="0";a:{try{var M=D.S.top.location.href}catch(T){D=2;break a}D=M?M===D.G.location.href?0:1:2}X=(X.frm=D,X);try{X.u_tz=-(new Date).getTimezoneOffset();try{var Q=Yf.history.length}catch(T){Q=0}X.u_his=Q;var h;X.u_h=(h=Yf.screen)==null?void 0:h.height;var H;X.u_w=(H=Yf.screen)==null?void 0:H.width;var t;X.u_ah=(t=Yf.screen)==null?void 0:t.availHeight;var q;X.u_aw=(q=Yf.screen)==null?void 0:q.availWidth;var w;X.u_cd=(w=Yf.screen)==null?void 0:w.colorDepth}catch(T){}return X}; bso=function(){if(!n1s)return null;var D=n1s();return"open"in D?D:null}; g.Fc=function(D){switch(ay(D)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; ay=function(D){return D&&"status"in D?D.status:-1}; g.Vj=function(D,X){typeof D==="function"&&(D=g.DS(D));return window.setTimeout(D,X)}; g.$H=function(D,X){typeof D==="function"&&(D=g.DS(D));return window.setInterval(D,X)}; g.BX=function(D){window.clearTimeout(D)}; g.ZS=function(D){window.clearInterval(D)}; g.cX=function(D){D=UZ(D);return typeof D==="string"&&D==="false"?!1:!!D}; g.fa=function(D,X){D=UZ(D);return D===void 0&&X!==void 0?X:Number(D||0)}; S6=function(){return g.zZ("EXPERIMENTS_TOKEN","")}; UZ=function(D){return g.zZ("EXPERIMENT_FLAGS",{})[D]}; EZ=function(){for(var D=[],X=g.zZ("EXPERIMENTS_FORCED_FLAGS",{}),M=g.e(Object.keys(X)),Q=M.next();!Q.done;Q=M.next())Q=Q.value,D.push({key:Q,value:String(X[Q])});M=g.zZ("EXPERIMENT_FLAGS",{});Q=g.e(Object.keys(M));for(var h=Q.next();!h.done;h=Q.next())h=h.value,h.startsWith("force_")&&X[h]===void 0&&D.push({key:h,value:String(M[h])});return D}; yj=function(D,X,M,Q,h,H,t,q,w){function T(){(L&&"readyState"in L?L.readyState:0)===4&&X&&g.DS(X)(L)} M=M===void 0?"GET":M;Q=Q===void 0?"":Q;q=q===void 0?!1:q;var L=bso();if(!L)return null;"onloadend"in L?L.addEventListener("loadend",T,!1):L.onreadystatechange=T;g.cX("debug_forward_web_query_parameters")&&(D=eJn(D));L.open(M,D,!0);H&&(L.responseType=H);t&&(L.withCredentials=!0);M=M==="POST"&&(window.FormData===void 0||!(Q instanceof FormData));if(h=RJi(D,h))for(var K in h)L.setRequestHeader(K,h[K]),"content-type"===K.toLowerCase()&&(M=!1);M&&L.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); w&&"onprogress"in L&&(L.onprogress=function(){w(L.responseText)}); if(q&&"setAttributionReporting"in XMLHttpRequest.prototype){D={eventSourceEligible:!0,triggerEligible:!1};try{L.setAttributionReporting(D)}catch(a){Xc(a)}}L.send(Q);return L}; RJi=function(D,X){X=X===void 0?{}:X;var M=qq(D),Q=g.zZ("INNERTUBE_CLIENT_NAME"),h=g.cX("web_ajax_ignore_global_headers_if_set"),H;for(H in Iui){var t=g.zZ(Iui[H]),q=H==="X-Goog-AuthUser"||H==="X-Goog-PageId";H!=="X-Goog-Visitor-Id"||t||(t=g.zZ("VISITOR_DATA"));var w;if(!(w=!t)){if(!(w=M||(g.cR(D)?!1:!0))){w=D;var T;if(T=g.cX("add_auth_headers_to_remarketing_google_dot_com_ping")&&H==="Authorization"&&(Q==="TVHTML5"||Q==="TVHTML5_UNPLUGGED"||Q==="TVHTML5_SIMPLY")&&yio(w))w=fJ(w)||"",w=w.split("/"), w="/"+(w.length>1?w[1]:""),T=w==="/pagead";w=T?!0:!1}w=!w}w||h&&X[H]!==void 0||Q==="TVHTML5_UNPLUGGED"&&q||(X[H]=t)}"X-Goog-EOM-Visitor-Id"in X&&"X-Goog-Visitor-Id"in X&&delete X["X-Goog-Visitor-Id"];if(M||!g.cR(D))X["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(M||!g.cR(D)){try{var L=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(K){}L&&(X["X-YouTube-Time-Zone"]=L)}document.location.hostname.endsWith("youtubeeducation.com")||!M&&g.cR(D)||(X["X-YouTube-Ad-Signals"]= Qj(Ka()));return X}; mo=function(D,X){X.method="POST";X.postParams||(X.postParams={});return g.PX(D,X)}; dmn=function(D,X){if(window.fetch&&X.format!=="XML"){var M={method:X.method||"GET",credentials:"same-origin"};X.headers&&(M.headers=X.headers);X.priority&&(M.priority=X.priority);D=g1_(D,X);var Q=v1H(D,X);Q&&(M.body=Q);X.withCredentials&&(M.credentials="include");var h=X.context||g.E8,H=!1,t;fetch(D,M).then(function(q){if(!H){H=!0;t&&g.BX(t);var w=q.ok,T=function(L){L=L||{};w?X.onSuccess&&X.onSuccess.call(h,L,q):X.onError&&X.onError.call(h,L,q);X.onFinish&&X.onFinish.call(h,L,q)}; (X.format||"JSON")==="JSON"&&(w||q.status>=400&&q.status<500)?q.json().then(T,function(){T(null)}):T(null)}}).catch(function(){X.onError&&X.onError.call(h,{},{})}); D=X.timeout||0;X.onFetchTimeout&&D>0&&(t=g.Vj(function(){H||(H=!0,g.BX(t),X.onFetchTimeout.call(X.context||g.E8))},D))}else g.PX(D,X)}; g.PX=function(D,X){var M=X.format||"JSON";D=g1_(D,X);var Q=v1H(D,X),h=!1,H=rip(D,function(w){if(!h){h=!0;q&&g.BX(q);var T=g.Fc(w),L=null,K=400<=w.status&&w.status<500,a=500<=w.status&&w.status<600;if(T||K||a)L=iss(D,M,w,X.convertToSafeHtml);T&&(T=o1s(M,w,L));L=L||{};K=X.context||g.E8;T?X.onSuccess&&X.onSuccess.call(K,w,L):X.onError&&X.onError.call(K,w,L);X.onFinish&&X.onFinish.call(K,w,L)}},X.method,Q,X.headers,X.responseType,X.withCredentials,!1,X.onProgress); Q=X.timeout||0;if(X.onTimeout&&Q>0){var t=X.onTimeout;var q=g.Vj(function(){h||(h=!0,H.abort(),g.BX(q),t.call(X.context||g.E8,H))},Q)}return H}; g1_=function(D,X){X.includeDomain&&(D=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+D);var M=g.zZ("XSRF_FIELD_NAME");if(X=X.urlParams)X[M]&&delete X[M],D=tW(D,X);return D}; v1H=function(D,X){var M=g.zZ("XSRF_FIELD_NAME"),Q=g.zZ("XSRF_TOKEN"),h=X.postBody||"",H=X.postParams,t=g.zZ("XSRF_FIELD_NAME"),q;X.headers&&(q=X.headers["Content-Type"]);X.excludeXsrf||g.cR(D)&&!X.withCredentials&&g.cR(D)!==document.location.hostname||X.method!=="POST"||q&&q!=="application/x-www-form-urlencoded"||X.postParams&&X.postParams[t]||(H||(H={}),H[M]=Q);(g.cX("ajax_parse_query_data_only_when_filled")&&H&&Object.keys(H).length>0||H)&&typeof h==="string"&&(h=dR(h),g.rS(h,H),h=X.postBodyFormat&& X.postBodyFormat==="JSON"?JSON.stringify(h):g.mJ(h));H=h||H&&!g.ef(H);!Cts&&H&&X.method!=="POST"&&(Cts=!0,g.jL(Error("AJAX request with postData should use POST")));return h}; iss=function(D,X,M,Q){var h=null;switch(X){case "JSON":try{var H=M.responseText}catch(t){throw Q=Error("Error reading responseText"),Q.params=D,Xc(Q),t;}D=M.getResponseHeader("Content-Type")||"";H&&D.indexOf("json")>=0&&(H.substring(0,5)===")]}'\n"&&(H=H.substring(5)),h=JSON.parse(H));break;case "XML":if(D=(D=M.responseXML)?Osd(D):null)h={},g.$R(D.getElementsByTagName("*"),function(t){h[t.tagName]=pPs(t)})}Q&&AiR(h); return h}; AiR=function(D){if(g.gK(D))for(var X in D)X==="html_content"||sad(X,"_html")?D[X]=b7(D[X]):AiR(D[X])}; o1s=function(D,X,M){if(X&&X.status===204)return!0;switch(D){case "JSON":return!!M;case "XML":return Number(M&&M.return_code)===0;case "RAW":return!0;default:return!!M}}; Osd=function(D){return D?(D=("responseXML"in D?D.responseXML:D).getElementsByTagName("root"))&&D.length>0?D[0]:null:null}; pPs=function(D){var X="";g.$R(D.childNodes,function(M){X+=M.nodeValue}); return X}; eJn=function(D){var X=window.location.search,M=g.cR(D);g.cX("debug_handle_relative_url_for_query_forward_killswitch")||!M&&qq(D)&&(M=document.location.hostname);var Q=fJ(D);Q=(M=M&&(M.endsWith("youtube.com")||M.endsWith("youtube-nocookie.com")))&&Q&&Q.startsWith("/api/");if(!M||Q)return D;var h=dR(X),H={};g.$R(Yy5,function(t){h[t]&&(H[t]=h[t])}); return Nq(D,H)}; bE=function(D,X){var M=g.gS(X),Q;return(new g.yw(function(h,H){M.onSuccess=function(t){g.Fc(t)?h(new lu_(t)):H(new na("Request failed, status="+ay(t),"net.badstatus",t))}; M.onError=function(t){H(new na("Unknown request error","net.unknown",t))}; M.onTimeout=function(t){H(new na("Request timed out","net.timeout",t))}; Q=g.PX(D,M)})).iB(function(h){if(h instanceof R7){var H; (H=Q)==null||H.abort()}return ns(h)})}; g.e6=function(D,X,M,Q,h,H){function t(w,T,L){return w.iB(function(K){if(T<=0||ay(K.xhr)===403)return ns(new na("Request retried too many times","net.retryexhausted",K.xhr,K));var a=Math.pow(2,M-T+1)*L,F=h>0?Math.min(h,a):a;return q(L).then(function(){H&&H(K,T-1);return t(bE(D,X),T-1,F)})})} function q(w){return new g.yw(function(T){setTimeout(T,w)})} h=h===void 0?-1:h;return t(bE(D,X),M-1,Q)}; na=function(D,X,M){YB.call(this,D+", errorCode="+X);this.errorCode=X;this.xhr=M;this.name="PromiseAjaxError"}; lu_=function(D){this.xhr=D}; Ry=function(D){this.S=D===void 0?null:D;this.Y=0;this.G=null}; Iy=function(D){var X=new Ry;D=D===void 0?null:D;X.Y=2;X.G=D===void 0?null:D;return X}; vX=function(D){var X=new Ry;D=D===void 0?null:D;X.Y=1;X.G=D===void 0?null:D;return X}; g.iE=function(D,X,M,Q,h){dc||rc.set(""+D,X,{RI:M,path:"/",domain:Q===void 0?"youtube.com":Q,secure:h===void 0?!1:h})}; g.oy=function(D,X){if(!dc)return rc.get(""+D,X)}; g.Ca=function(D,X,M){dc||rc.remove(""+D,X===void 0?"/":X,M===void 0?"youtube.com":M)}; Jis=function(){if(g.cX("embeds_web_enable_cookie_detection_fix")){if(!g.E8.navigator.cookieEnabled)return!1}else if(!rc.isEnabled())return!1;if(!rc.isEmpty())return!0;g.cX("embeds_web_enable_cookie_detection_fix")?rc.set("TESTCOOKIESENABLED","1",{RI:60,sameSite:"none",secure:!0}):rc.set("TESTCOOKIESENABLED","1",{RI:60});if(rc.get("TESTCOOKIESENABLED")!=="1")return!1;rc.remove("TESTCOOKIESENABLED");return!0}; g.Z=function(D,X){if(D)return D[X.name]}; OZ=function(D){var X=g.zZ("INNERTUBE_HOST_OVERRIDE");X&&(D=String(X)+String(Sj(D)));return D}; xmW=function(D){var X={};g.cX("json_condensed_response")&&(X.prettyPrint="false");return D=Nq(D,X)}; pa=function(D,X){var M=M===void 0?{}:M;D={method:X===void 0?"POST":X,mode:qq(D)?"same-origin":"cors",credentials:qq(D)?"same-origin":"include"};X={};for(var Q=g.e(Object.keys(M)),h=Q.next();!h.done;h=Q.next())h=h.value,M[h]&&(X[h]=M[h]);Object.keys(X).length>0&&(D.headers=X);return D}; AW=function(){var D=/Chrome\/(\d+)/.exec(g.Qm());return D?parseFloat(D[1]):NaN}; YH=function(){var D=/\sCobalt\/(\S+)\s/.exec(g.Qm());if(!D)return NaN;var X=[];D=g.e(D[1].split("."));for(var M=D.next();!M.done;M=D.next())M=parseInt(M.value,10),M>=0&&X.push(M);return parseFloat(X.join("."))}; JW=function(){return g.lE("android")&&g.lE("chrome")&&!(g.lE("trident/")||g.lE("edge/"))&&!g.lE("cobalt")}; g.xH=function(){return g.lE("cobalt")}; WX=function(){return g.lE("cobalt")&&g.lE("appletv")}; Gr=function(){return g.lE("(ps3; leanback shell)")||g.lE("ps3")&&g.xH()}; W$s=function(){return g.lE("(ps4; leanback shell)")||g.lE("ps4")&&g.xH()}; g.GWp=function(){return g.xH()&&(g.lE("ps4 vr")||g.lE("ps4 pro vr"))}; zr=function(){var D=/WebKit\/([0-9]+)/.exec(g.Qm());return!!(D&&parseInt(D[1],10)>=600)}; kH=function(){var D=/WebKit\/([0-9]+)/.exec(g.Qm());return!!(D&&parseInt(D[1],10)>=602)}; zJp=function(){return g.lE("iemobile")||g.lE("windows phone")&&g.lE("edge")}; Dx=function(){return(uE||j6)&&g.lE("applewebkit")&&!g.lE("version")&&(!g.lE("safari")||g.lE("gsa/"))}; MB=function(){return g.XP&&g.lE("version/")}; Qd=function(){return g.lE("smart-tv")&&g.lE("samsung")}; g.lE=function(D){var X=g.Qm();return X?X.toLowerCase().indexOf(D)>=0:!1}; hr=function(){return yKi()||Dx()||MB()?!0:g.zZ("EOM_VISITOR_DATA")?!1:!0}; HJ=function(D,X){return X===void 0||X===null?D:X==="1"||X===!0||X===1||X==="True"?!0:!1}; tr=function(D,X,M){for(var Q in M)if(M[Q]==X)return M[Q];return D}; NB=function(D,X){return X===void 0||X===null?D:Number(X)}; qB=function(D,X){return X===void 0||X===null?D:X.toString()}; ww=function(D,X){if(X){if(D==="fullwidth")return Infinity;if(D==="fullheight")return 0}return D&&(X=D.match(kW_))&&(D=Number(X[2]),X=Number(X[1]),!isNaN(D)&&!isNaN(X)&&D>0)?X/D:NaN}; Tj=function(D){var X=D.docid||D.video_id||D.videoId||D.id;if(X)return X;X=D.raw_player_response;X||(D=D.player_response)&&(X=JSON.parse(D));return X&&X.videoDetails&&X.videoDetails.videoId||null}; u2s=function(D){return Lw(D,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.s0=function(D){return D==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||D==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Lw=function(D,X){X=(X===void 0?0:X)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(X="EMBEDDED_PLAYER_MODE_PFL");var M=D.raw_embedded_player_response;if(!M&&(D=D.embedded_player_response))try{M=JSON.parse(D)}catch(Q){return X}return M?tr(X,M.embeddedPlayerMode,j7s):X}; aH=function(D){YB.call(this,D.message||D.description||D.name);this.isMissing=D instanceof Kw;this.isTimeout=D instanceof na&&D.errorCode=="net.timeout";this.isCanceled=D instanceof R7}; Kw=function(){YB.call(this,"Biscotti ID is missing from server")}; var V21=function(D,X){return ai[N[15]](this,17,D,X)}; D61=function(){if(g.cX("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!hr())return Error("User has not consented - not fetching biscotti id.");var D=g.zZ("PLAYER_VARS",{});if(g.RM(D,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(u2s(D))return Error("Biscotti id fetching has been disabled for pfl.")}; hpH=function(){var D=D61();if(D!==void 0)return ns(D);FP||(FP=bE("//googleads.g.doubleclick.net/pagead/id",Xgn).then(MRo).iB(function(X){return Q__(2,X)})); return FP}; MRo=function(D){D=D.xhr.responseText;if(!zC(D,")]}'"))throw new Kw;D=JSON.parse(D.substr(4));if((D.type||1)>1)throw new Kw;D=D.id;B31(D);FP=vX(D);HY1(18E5,2);return D}; Q__=function(D,X){X=new aH(X);B31("");FP=Iy(X);D>0&&HY1(12E4,D-1);throw X;}; HY1=function(D,X){g.Vj(function(){bE("//googleads.g.doubleclick.net/pagead/id",Xgn).then(MRo,function(M){return Q__(X,M)}).iB(g.Jn)},D)}; tRp=function(){try{var D=g.mn("yt.ads.biscotti.getId_");return D?D():hpH()}catch(X){return ns(X)}}; qhH=function(D){D&&(D.dataset?D.dataset[Nh_()]="true":m_d(D))}; wg9=function(D){return D?D.dataset?D.dataset[Nh_()]:D.getAttribute("data-loaded"):null}; Nh_=function(){return Thd.loaded||(Thd.loaded="loaded".replace(/\-([a-z])/g,function(D,X){return X.toUpperCase()}))}; L_5=function(){var D=document;if("visibilityState"in D)return D.visibilityState;var X=Vd+"VisibilityState";if(X in D)return D[X]}; $g=function(D,X){var M;jj(D,function(Q){M=X[Q];return!!M}); return M}; BJ=function(D){if(D.requestFullscreen)D=D.requestFullscreen(void 0);else if(D.webkitRequestFullscreen)D=D.webkitRequestFullscreen();else if(D.mozRequestFullScreen)D=D.mozRequestFullScreen();else if(D.msRequestFullscreen)D=D.msRequestFullscreen();else if(D.webkitEnterFullscreen)D=D.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return D instanceof Promise?D:Promise.resolve()}; cJ=function(D){var X;g.Zx()?U0()==D&&(X=document):X=D;return X&&(D=$g(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],X))?(X=D.call(X),X instanceof Promise?X:Promise.resolve()):Promise.resolve()}; s_W=function(D){return g.xB(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(X){return"on"+X.toLowerCase()in D})}; K_W=function(){var D=document;return g.xB(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(X){return"on"+X.toLowerCase()in D})}; g.Zx=function(){return!!$g(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; U0=function(D){D=D===void 0?!1:D;var X=$g(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(D)for(;X&&X.shadowRoot;)X=X.shadowRoot.fullscreenElement;return X?X:null}; fw=function(D){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(D=D||window.event){this.event=D;for(var X in D)X in awH||(this[X]=D[X]);this.scale=D.scale;this.rotation=D.rotation;var M=D.target||D.srcElement;M&&M.nodeType==3&&(M=M.parentNode);this.target=M;var Q=D.relatedTarget; if(Q)try{Q=Q.nodeName?Q:null}catch(h){Q=null}else this.type=="mouseover"?Q=D.fromElement:this.type=="mouseout"&&(Q=D.toElement);this.relatedTarget=Q;this.clientX=D.clientX!=void 0?D.clientX:D.pageX;this.clientY=D.clientY!=void 0?D.clientY:D.pageY;this.keyCode=D.keyCode?D.keyCode:D.which;this.charCode=D.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=D.altKey;this.ctrlKey=D.ctrlKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.S=D.pageX;this.G=D.pageY}}catch(h){}}; F_2=function(D){if(document.body&&document.documentElement){var X=document.body.scrollTop+document.documentElement.scrollTop;D.S=D.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);D.G=D.clientY+X}}; VRs=function(D,X,M,Q){Q=Q===void 0?{}:Q;D.addEventListener&&(X!="mouseenter"||"onmouseenter"in document?X!="mouseleave"||"onmouseenter"in document?X=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(X="MozMousePixelScroll"):X="mouseout":X="mouseover");return bb(SJ,function(h){var H=typeof h[4]==="boolean"&&h[4]==!!Q,t=g.gK(h[4])&&g.gK(Q)&&g.IM(h[4],Q);return!!h.length&&h[0]==D&&h[1]==X&&h[2]==M&&(H||t)})}; g.E0=function(D,X,M,Q){Q=Q===void 0?{}:Q;if(!D||!D.addEventListener&&!D.attachEvent)return"";var h=VRs(D,X,M,Q);if(h)return h;h=++$6n.count+"";var H=!(X!="mouseenter"&&X!="mouseleave"||!D.addEventListener||"onmouseenter"in document);var t=H?function(q){q=new fw(q);if(!iv(q.relatedTarget,function(w){return w==D},!0))return q.currentTarget=D,q.type=X,M.call(D,q)}:function(q){q=new fw(q); q.currentTarget=D;return M.call(D,q)}; t=g.DS(t);D.addEventListener?(X=="mouseenter"&&H?X="mouseover":X=="mouseleave"&&H?X="mouseout":X=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(X="MozMousePixelScroll"),Bhn()||typeof Q==="boolean"?D.addEventListener(X,t,Q):D.addEventListener(X,t,!!Q.capture)):D.attachEvent("on"+X,t);SJ[h]=[D,X,M,t,Q];return h}; U6i=function(D){return ZYi(D,function(X){return g.QP(X,"ytp-ad-has-logging-urls")})}; ZYi=function(D,X){var M=document.body||document;return g.E0(M,"click",function(Q){var h=iv(Q.target,function(H){return H===M||X(H)},!0); h&&h!==M&&!h.disabled&&(Q.currentTarget=h,D.call(h,Q))})}; g.yd=function(D){D&&(typeof D=="string"&&(D=[D]),g.$R(D,function(X){if(X in SJ){var M=SJ[X],Q=M[0],h=M[1],H=M[3];M=M[4];Q.removeEventListener?Bhn()||typeof M==="boolean"?Q.removeEventListener(h,H,M):Q.removeEventListener(h,H,!!M.capture):Q.detachEvent&&Q.detachEvent("on"+h,H);delete SJ[X]}}))}; PJ=function(D){for(var X in SJ)SJ[X][0]==D&&g.yd(X)}; mI=function(D){D=D||window.event;var X;D.composedPath&&typeof D.composedPath==="function"?X=D.composedPath():X=D.path;X&&X.length?D=X[0]:(D=D||window.event,D=D.target||D.srcElement,D.nodeType==3&&(D=D.parentNode));return D}; nw=function(D){this.J=D;this.S=null;this.U=0;this.X=null;this.D=0;this.G=[];for(D=0;D<4;D++)this.G.push(0);this.Y=0;this.R5=g.E0(window,"mousemove",(0,g.iW)(this.eH,this));this.K=g.$H((0,g.iW)(this.f$,this),25)}; b2=function(D){g.O.call(this);this.X=[];this.R2=D||this}; eJ=function(D,X,M,Q){for(var h=0;h0?M:0;M=Q?Date.now()+Q*1E3:0;if((Q=Q?g.IH.pU():g.IH.Z5())&&window.JSON){typeof X!=="string"&&(X=JSON.stringify(X,void 0));try{Q.set(D,X,M)}catch(h){Q.remove(D)}}}; g.vJ=function(D){var X=g.IH.Z5(),M=g.IH.pU();if(!X&&!M||!window.JSON)return null;try{var Q=X.get(D)}catch(h){}if(typeof Q!=="string")try{Q=M.get(D)}catch(h){}if(typeof Q!=="string")return null;try{Q=JSON.parse(Q,void 0)}catch(h){}return Q}; var a_s=function(D,X,M,Q,h,H,t){return Tp[N[15]](this,6,D,X,M,Q,h,H,t)}; fws=function(){var D=g.IH.pU();if(D&&(D=D.yJ("yt-player-quality")))return D.creation}; g.dw=function(D){try{var X=g.IH.Z5(),M=g.IH.pU();X&&X.remove(D);M&&M.remove(D)}catch(Q){}}; g.rw=function(){return g.vJ("yt-remote-session-screen-id")}; Sh2=function(D){var X=this;this.G=void 0;this.S=!1;D.addEventListener("beforeinstallprompt",function(M){M.preventDefault();X.G=M}); D.addEventListener("appinstalled",function(){X.S=!0},{once:!0})}; i2=function(){if(!g.E8.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.E8.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.E8.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.E8.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.E8.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(D){return"WEB_DISPLAY_MODE_UNKNOWN"}}; oH=function(){this.hd=!0}; Ep9=function(){oH.instance||(oH.instance=new oH);return oH.instance}; ypp=function(D){switch(D){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}}; Prd=function(){this.S=g.zZ("ALT_PREF_COOKIE_NAME","PREF");this.G=g.zZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var D=g.oy(this.S);D&&this.parse(D)}; g.O0=function(){Cw||(Cw=new Prd);return Cw}; Ar=function(D,X){var M="f"+(Math.floor(D/31)+1);D=1<10&&tg.shift()))}; qX=function(D,X){hg||(Hc?Hc.logEvent(D,X):(tg.push({type:"EVENT",eventType:D,payload:X}),tg.length>10&&tg.shift()))}; wv=function(D){if(D.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; Th=function(D){return D.substr(0,D.indexOf(":"))||D}; g.Li=function(D,X,M,Q,h){X=X===void 0?{}:X;M=M===void 0?vps[D]:M;Q=Q===void 0?d6R[D]:Q;h=h===void 0?rpo[D]:h;g.ys.call(this,M,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:D},X));this.type=D;this.message=M;this.level=Q;this.S=h;Object.setPrototypeOf(this,g.Li.prototype)}; sl=function(D,X){g.Li.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:X,foundObjectStores:D},vps.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,sl.prototype)}; Ki=function(D,X){var M=Error.call(this);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.index=D;this.objectStore=X;Object.setPrototypeOf(this,Ki.prototype)}; Fq=function(D,X,M,Q){X=Th(X);var h=D instanceof Error?D:Error("Unexpected error: "+D);if(h instanceof g.Li)return h;D={objectStoreNames:M,dbName:X,dbVersion:Q};if(h.name==="QuotaExceededError")return new g.Li("QUOTA_EXCEEDED",D);if(g.ah&&h.name==="UnknownError")return new g.Li("QUOTA_MAYBE_EXCEEDED",D);if(h instanceof Ki)return new g.Li("MISSING_INDEX",Object.assign({},D,{objectStore:h.objectStore,index:h.index}));if(h.name==="InvalidStateError"&&iYs.some(function(H){return h.message.includes(H)}))return new g.Li("EXECUTE_TRANSACTION_ON_CLOSED_DB", D); if(h.name==="AbortError")return new g.Li("UNKNOWN_ABORT",D,h.message);h.args=[Object.assign({},D,{name:"IdbError",Uo:h.name})];h.level="WARNING";return h}; g.Vu=function(D,X,M){var Q=Qu();return new g.Li("IDB_NOT_SUPPORTED",{context:{caller:D,publicName:X,version:M,hasSucceededOnce:Q==null?void 0:Q.hasSucceededOnce}})}; op2=function(D){if(!D)throw Error();throw D;}; Crp=function(D){return D}; $9=function(D){this.S=D}; g.Bc=function(D){function X(h){if(Q.state.status==="PENDING"){Q.state={status:"REJECTED",reason:h};h=g.e(Q.G);for(var H=h.next();!H.done;H=h.next())H=H.value,H()}} function M(h){if(Q.state.status==="PENDING"){Q.state={status:"FULFILLED",value:h};h=g.e(Q.S);for(var H=h.next();!H.done;H=h.next())H=H.value,H()}} var Q=this;this.state={status:"PENDING"};this.S=[];this.G=[];D=D.S;try{D(M,X)}catch(h){X(h)}}; OYs=function(D,X,M,Q,h){try{if(D.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var H=M(D.state.value);H instanceof g.Bc?Zb(D,X,H,Q,h):Q(H)}catch(t){h(t)}}; pgi=function(D,X,M,Q,h){try{if(D.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var H=M(D.state.reason);H instanceof g.Bc?Zb(D,X,H,Q,h):Q(H)}catch(t){h(t)}}; Zb=function(D,X,M,Q,h){X===M?h(new TypeError("Circular promise chain detected.")):M.then(function(H){H instanceof g.Bc?Zb(D,X,H,Q,h):Q(H)},function(H){h(H)})}; Aps=function(D,X,M){function Q(){M(D.error);H()} function h(){X(D.result);H()} function H(){try{D.removeEventListener("success",h),D.removeEventListener("error",Q)}catch(t){}} D.addEventListener("success",h);D.addEventListener("error",Q)}; Yh5=function(D){return new Promise(function(X,M){Aps(D,X,M)})}; Ul=function(D){return new g.Bc(new $9(function(X,M){Aps(D,X,M)}))}; cc=function(D,X){return new g.Bc(new $9(function(M,Q){function h(){var H=D?X(D):null;H?H.then(function(t){D=t;h()},Q):M()} h()}))}; lws=function(D,X){this.request=D;this.cursor=X}; Jp2=function(D){return Ul(D).then(function(X){return X?new lws(D,X):null})}; g.x6m=function(D){D.cursor.continue(void 0);return Jp2(D.request)}; W_i=function(D,X){this.S=D;this.options=X;this.transactionCount=0;this.Y=Math.round((0,g.fi)());this.G=!1}; S0=function(){return g.cX("idb_immediate_commit")}; g.yu=function(D,X,M){D=D.S.createObjectStore(X,M);return new El(D)}; Pc=function(D,X){D.S.objectStoreNames.contains(X)&&D.S.deleteObjectStore(X)}; g.bD=function(D,X,M){return g.mt(D,[X],{mode:"readwrite",d3:!0,commit:S0()},function(Q){return g.ni(Q.objectStore(X),M)})}; g.mt=function(D,X,M,Q){var h,H,t,q,w,T,L,K,a,F,V,c;return g.r(function(S){switch(S.S){case 1:var b={mode:"readonly",d3:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof M==="string"?b.mode=M:Object.assign(b,M);h=b;D.transactionCount++;H=h.d3?3:1;t=0;case 2:if(q){S.D4(4);break}t++;w=Math.round((0,g.fi)());g.N_(S,5);T=D.S.transaction(X,h.mode);b=!!h.commit;var n=new e0(T);b=GOp(n,Q,b);return g.I(S,b,7);case 7:return L=S.G,K=Math.round((0,g.fi)()),zpd(D,w,K,t,void 0,X.join(),h),S.return(L);case 5:a=g.LG(S); F=Math.round((0,g.fi)());V=Fq(a,D.S.name,X.join(),D.S.version);if((c=V instanceof g.Li&&!V.S)||t>=H)zpd(D,w,F,t,V,X.join(),h),q=V;S.D4(2);break;case 4:return S.return(Promise.reject(q))}})}; zpd=function(D,X,M,Q,h,H,t){X=M-X;h?(h instanceof g.Li&&(h.type==="QUOTA_EXCEEDED"||h.type==="QUOTA_MAYBE_EXCEEDED")&&qX("QUOTA_EXCEEDED",{dbName:Th(D.S.name),objectStoreNames:H,transactionCount:D.transactionCount,transactionMode:t.mode}),h instanceof g.Li&&h.type==="UNKNOWN_ABORT"&&(M-=D.Y,M<0&&M>=2147483648&&(M=0),qX("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:H,transactionDuration:X,transactionCount:D.transactionCount,dbDuration:M}),D.G=!0),kO5(D,!1,Q,H,X,t.tag),NX(h)):kO5(D,!0,Q,H,X, t.tag)}; kO5=function(D,X,M,Q,h,H){qX("TRANSACTION_ENDED",{objectStoreNames:Q,connectionHasUnknownAbortedTransaction:D.G,duration:h,isSuccessful:X,tryCount:M,tag:H===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":H})}; El=function(D){this.S=D}; g.Rh=function(D,X,M){D.S.createIndex(X,M,{unique:!1})}; uv9=function(D,X){return g.Ih(D,{query:X},function(M){return M.delete().then(function(){return g.gv(M)})}).then(function(){})}; j_2=function(D,X,M){var Q=[];return g.Ih(D,{query:X},function(h){if(!(M!==void 0&&Q.length>=M))return Q.push(h.getValue()),g.gv(h)}).then(function(){return Q})}; X5n=function(D){return"getAllKeys"in IDBObjectStore.prototype?Ul(D.S.getAllKeys(void 0,void 0)):D3_(D)}; D3_=function(D){var X=[];return g.M9p(D,{query:void 0},function(M){X.push(M.cursor.primaryKey);return g.x6m(M)}).then(function(){return X})}; g.ni=function(D,X,M){return Ul(D.S.put(X,M))}; g.Ih=function(D,X,M){D=D.S.openCursor(X.query,X.direction);return vc(D).then(function(Q){return cc(Q,M)})}; g.M9p=function(D,X,M){var Q=X.query;X=X.direction;D="openKeyCursor"in IDBObjectStore.prototype?D.S.openKeyCursor(Q,X):D.S.openCursor(Q,X);return Jp2(D).then(function(h){return cc(h,M)})}; e0=function(D){var X=this;this.S=D;this.G=new Map;this.aborted=!1;this.done=new Promise(function(M,Q){X.S.addEventListener("complete",function(){M()}); X.S.addEventListener("error",function(h){h.currentTarget===h.target&&Q(X.S.error)}); X.S.addEventListener("abort",function(){var h=X.S.error;if(h)Q(h);else if(!X.aborted){h=g.Li;for(var H=X.S.objectStoreNames,t=[],q=0;q=M))return Q.push(h.getValue()),g.gv(h)}).then(function(){return Q})}; g.dv=function(D,X,M){D=D.S.openCursor(X.query===void 0?null:X.query,X.direction===void 0?"next":X.direction);return vc(D).then(function(Q){return cc(Q,M)})}; rv=function(D,X){this.request=D;this.cursor=X}; vc=function(D){return Ul(D).then(function(X){return X?new rv(D,X):null})}; g.gv=function(D){D.cursor.continue(void 0);return vc(D.request)}; HCW=function(D,X,M){return new Promise(function(Q,h){function H(){a||(a=new W_i(t.result,{closed:K}));return a} var t=X!==void 0?self.indexedDB.open(D,X):self.indexedDB.open(D);var q=M.blocked,w=M.blocking,T=M.wx2,L=M.upgrade,K=M.closed,a;t.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(t.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&F.dataLoss!=="none"&&qX("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:Th(D)});var V=H(),c=new e0(t.transaction); L&&L(V,function(S){return F.oldVersion=S},c); c.done.catch(function(S){h(S)})}catch(S){h(S)}}); t.addEventListener("success",function(){var F=t.result;w&&F.addEventListener("versionchange",function(){w(H())}); F.addEventListener("close",function(){qX("IDB_UNEXPECTEDLY_CLOSED",{dbName:Th(D),dbVersion:F.version});T&&T()}); Q(H())}); t.addEventListener("error",function(){h(t.error)}); q&&t.addEventListener("blocked",function(){q()})})}; t9n=function(D,X,M){M=M===void 0?{}:M;return HCW(D,X,M)}; iD=function(D,X){X=X===void 0?{}:X;var M,Q,h,H;return g.r(function(t){if(t.S==1)return g.N_(t,2),M=self.indexedDB.deleteDatabase(D),Q=X,(h=Q.blocked)&&M.addEventListener("blocked",function(){h()}),g.I(t,Yh5(M),4); if(t.S!=2)return g.Ty(t,0);H=g.LG(t);throw Fq(H,D,"",-1);})}; oh=function(D,X){this.name=D;this.options=X;this.Y=!0;this.D=this.U=0}; NYW=function(D,X){return new g.Li("INCOMPATIBLE_DB_VERSION",{dbName:D.name,oldVersion:D.options.version,newVersion:X})}; g.Ci=function(D,X){if(!X)throw g.Vu("openWithToken",Th(D.name));return D.open()}; qxn=function(D,X){var M;return g.r(function(Q){if(Q.S==1)return g.I(Q,g.Ci(Ol,X),2);M=Q.G;return Q.return(g.mt(M,["databases"],{d3:!0,mode:"readwrite"},function(h){var H=h.objectStore("databases");return H.get(D.actualName).then(function(t){if(t?D.actualName!==t.actualName||D.publicName!==t.publicName||D.userIdentifier!==t.userIdentifier:1)return g.ni(H,D).then(function(){})})}))})}; pi=function(D,X){var M;return g.r(function(Q){if(Q.S==1)return D?g.I(Q,g.Ci(Ol,X),2):Q.return();M=Q.G;return Q.return(M.delete("databases",D))})}; w5H=function(D,X){var M,Q;return g.r(function(h){return h.S==1?(M=[],g.I(h,g.Ci(Ol,X),2)):h.S!=3?(Q=h.G,g.I(h,g.mt(Q,["databases"],{d3:!0,mode:"readonly"},function(H){M.length=0;return g.Ih(H.objectStore("databases"),{},function(t){D(t.getValue())&&M.push(t.getValue());return g.gv(t)})}),3)):h.return(M)})}; TYd=function(D,X){return w5H(function(M){return M.publicName===D&&M.userIdentifier!==void 0},X)}; LTp=function(){var D,X,M,Q;return g.r(function(h){switch(h.S){case 1:D=Qu();if((X=D)==null?0:X.hasSucceededOnce)return h.return(!0);if(lD&&zr()&&!kH()||g.Jg)return h.return(!1);try{if(M=self,!(M.indexedDB&&M.IDBIndex&&M.IDBKeyRange&&M.IDBObjectStore))return h.return(!1)}catch(H){return h.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return h.return(!1);g.N_(h,2);Q={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.I(h,qxn(Q,x9),4);case 4:return g.I(h,pi("yt-idb-test-do-not-use",x9),5);case 5:return h.return(!0);case 2:return g.LG(h),h.return(!1)}})}; sni=function(){if(Wc!==void 0)return Wc;hg=!0;return Wc=LTp().then(function(D){hg=!1;var X;if((X=MX())!=null&&X.S){var M;X={hasSucceededOnce:((M=Qu())==null?void 0:M.hasSucceededOnce)||D};var Q;(Q=MX())==null||Q.set("LAST_RESULT_ENTRY_KEY",X,2592E3,!0)}return D})}; Gh=function(){return g.mn("ytglobal.idbToken_")||void 0}; g.zh=function(){var D=Gh();return D?Promise.resolve(D):sni().then(function(X){(X=X?x9:void 0)&&g.PZ("ytglobal.idbToken_",X);return X})}; KT5=function(D){if(!g.xg())throw D=new g.Li("AUTH_INVALID",{dbName:D}),NX(D),D;var X=g.Jr();return{actualName:D+":"+X,publicName:D,userIdentifier:X}}; a12=function(D,X,M,Q){var h,H,t,q,w,T;return g.r(function(L){switch(L.S){case 1:return H=(h=Error().stack)!=null?h:"",g.I(L,g.zh(),2);case 2:t=L.G;if(!t)throw q=g.Vu("openDbImpl",D,X),g.cX("ytidb_async_stack_killswitch")||(q.stack=q.stack+"\n"+H.substring(H.indexOf("\n")+1)),NX(q),q;wv(D);w=M?{actualName:D,publicName:D,userIdentifier:void 0}:KT5(D);g.N_(L,3);return g.I(L,qxn(w,t),5);case 5:return g.I(L,t9n(w.actualName,X,Q),6);case 6:return L.return(L.G);case 3:return T=g.LG(L),g.N_(L,7),g.I(L,pi(w.actualName, t),9);case 9:g.Ty(L,8);break;case 7:g.LG(L);case 8:throw T;}})}; FTo=function(D,X,M){M=M===void 0?{}:M;return a12(D,X,!1,M)}; V9d=function(D,X,M){M=M===void 0?{}:M;return a12(D,X,!0,M)}; $31=function(D,X){X=X===void 0?{}:X;var M,Q;return g.r(function(h){if(h.S==1)return g.I(h,g.zh(),2);if(h.S!=3){M=h.G;if(!M)return h.return();wv(D);Q=KT5(D);return g.I(h,iD(Q.actualName,X),3)}return g.I(h,pi(Q.actualName,M),0)})}; BY5=function(D,X,M){D=D.map(function(Q){return g.r(function(h){return h.S==1?g.I(h,iD(Q.actualName,X),2):g.I(h,pi(Q.actualName,M),0)})}); return Promise.all(D).then(function(){})}; ZCm=function(D){var X=X===void 0?{}:X;var M,Q;return g.r(function(h){if(h.S==1)return g.I(h,g.zh(),2);if(h.S!=3){M=h.G;if(!M)return h.return();wv(D);return g.I(h,TYd(D,M),3)}Q=h.G;return g.I(h,BY5(Q,X,M),0)})}; U3o=function(D,X){X=X===void 0?{}:X;var M;return g.r(function(Q){if(Q.S==1)return g.I(Q,g.zh(),2);if(Q.S!=3){M=Q.G;if(!M)return Q.return();wv(D);return g.I(Q,iD(D,X),3)}return g.I(Q,pi(D,M),0)})}; k9=function(D,X){oh.call(this,D,X);this.options=X;wv(D)}; cls=function(D,X){var M;return function(){M||(M=new k9(D,X));return M}}; g.uD=function(D,X){return cls(D,X)}; j0=function(D){return g.Ci(f1H(),D)}; Sx5=function(D,X,M,Q){var h,H,t;return g.r(function(q){switch(q.S){case 1:return h={config:D,hashData:X,timestamp:Q!==void 0?Q:(0,g.fi)()},g.I(q,j0(M),2);case 2:return H=q.G,g.I(q,H.clear("hotConfigStore"),3);case 3:return g.I(q,g.bD(H,"hotConfigStore",h),4);case 4:return t=q.G,q.return(t)}})}; Em1=function(D,X,M,Q,h){var H,t,q;return g.r(function(w){switch(w.S){case 1:return H={config:D,hashData:X,configData:M,timestamp:h!==void 0?h:(0,g.fi)()},g.I(w,j0(Q),2);case 2:return t=w.G,g.I(w,t.clear("coldConfigStore"),3);case 3:return g.I(w,g.bD(t,"coldConfigStore",H),4);case 4:return q=w.G,w.return(q)}})}; yld=function(D){var X,M;return g.r(function(Q){return Q.S==1?g.I(Q,j0(D),2):Q.S!=3?(X=Q.G,M=void 0,g.I(Q,g.mt(X,["coldConfigStore"],{mode:"readwrite",d3:!0},function(h){return g.dv(h.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(H){M=H.getValue()})}),3)):Q.return(M)})}; Phs=function(D){var X,M;return g.r(function(Q){return Q.S==1?g.I(Q,j0(D),2):Q.S!=3?(X=Q.G,M=void 0,g.I(Q,g.mt(X,["hotConfigStore"],{mode:"readwrite",d3:!0},function(h){return g.dv(h.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(H){M=H.getValue()})}),3)):Q.return(M)})}; m3m=function(){return g.r(function(D){return g.I(D,ZCm("ytGcfConfig"),0)})}; Dg=function(){g.O.call(this);this.G=[];this.S=[];var D=g.mn("yt.gcf.config.hotUpdateCallbacks");D?(this.G=[].concat(g.xW(D)),this.S=D):(this.S=[],g.PZ("yt.gcf.config.hotUpdateCallbacks",this.S))}; ts=function(){var D=this;this.D=!1;this.Y=this.U=0;this.X=new Dg;this.py={IAF:function(){D.D=!0}, Anf:function(){return D.S}, iH$:function(X){Xj(D,X)}, zJ:function(X){D.zJ(X)}, wH5:function(X){M$(D,X)}, RF:function(){return D.coldHashData}, b3:function(){return D.hotHashData}, VyH:function(){return D.G}, o8j:function(){return Q3()}, iQy:function(){return hs()}, pZR:function(){return g.mn("yt.gcf.config.coldHashData")}, lIs:function(){return g.mn("yt.gcf.config.hotHashData")}, UMR:function(){nmn(D)}, dHf:function(){D.zJ(void 0);HO(D);delete ts.instance}, ZHs:function(X){D.Y=X}, E8s:function(){return D.Y}}}; bC5=function(){if(!ts.instance){var D=new ts;ts.instance=D}return ts.instance}; I1d=function(D){var X;g.r(function(M){if(M.S==1)return g.cX("start_client_gcf")||g.cX("delete_gcf_config_db")?g.cX("start_client_gcf")?g.I(M,g.zh(),3):M.D4(2):M.return();M.S!=2&&((X=M.G)&&g.xg()&&!g.cX("delete_gcf_config_db")?(D.D=!0,nmn(D)):(eOR(D),RO_(D)));return g.cX("delete_gcf_config_db")?g.I(M,m3m(),0):M.D4(0)})}; N$=function(){var D;return(D=hs())!=null?D:g.zZ("RAW_HOT_CONFIG_GROUP")}; gmW=function(D){var X,M,Q,h,H,t;return g.r(function(q){switch(q.S){case 1:if(D.G)return q.return(hs());if(!D.D)return X=g.Vu("getHotConfig IDB not initialized"),Xc(X),q.return(Promise.reject(X));M=Gh();Q=g.zZ("TIME_CREATED_MS");if(!M){h=g.Vu("getHotConfig token error");Xc(h);q.D4(2);break}return g.I(q,Phs(M),3);case 3:if((H=q.G)&&H.timestamp>Q)return Xj(D,H.config),D.zJ(H.hashData),q.return(hs());case 2:RO_(D);if(!(M&&D.G&&D.hotHashData)){q.D4(4);break}return g.I(q,Sx5(D.G,D.hotHashData,M,Q),4);case 4:return D.G? q.return(hs()):(t=new g.ys("Config not available in ytConfig"),Xc(t),q.return(Promise.reject(t)))}})}; d3s=function(D){var X,M,Q,h,H,t;return g.r(function(q){switch(q.S){case 1:if(D.S)return q.return(Q3());if(!D.D)return X=g.Vu("getColdConfig IDB not initialized"),Xc(X),q.return(Promise.reject(X));M=Gh();Q=g.zZ("TIME_CREATED_MS");if(!M){h=g.Vu("getColdConfig");Xc(h);q.D4(2);break}return g.I(q,yld(M),3);case 3:if((H=q.G)&&H.timestamp>Q)return M$(D,H.config),vmd(D,H.configData),HO(D,H.hashData),q.return(Q3());case 2:eOR(D);if(!(M&&D.S&&D.coldHashData&&D.configData)){q.D4(4);break}return g.I(q,Em1(D.S, D.coldHashData,D.configData,M,Q),4);case 4:return D.S?q.return(Q3()):(t=new g.ys("Config not available in ytConfig"),Xc(t),q.return(Promise.reject(t)))}})}; nmn=function(D){if(!D.G||!D.S){if(!Gh()){var X=g.Vu("scheduleGetConfigs");Xc(X)}D.U||(D.U=g.Ox.cI(function(){return g.r(function(M){switch(M.S){case 1:return g.N_(M,2),g.I(M,gmW(D),4);case 4:g.Ty(M,3);break;case 2:g.LG(M);case 3:return g.N_(M,5),g.I(M,d3s(D),7);case 7:g.Ty(M,6);break;case 5:g.LG(M);case 6:D.U&&(D.U=0),g.HZ(M)}})},100))}}; rlW=function(D,X,M){var Q,h,H;return g.r(function(t){switch(t.S){case 1:if(!g.cX("start_client_gcf")){t.D4(0);break}M&&Xj(D,M);D.zJ(X);Q=Gh();if(!Q){t.D4(3);break}if(M){t.D4(4);break}return g.I(t,Phs(Q),5);case 5:h=t.G,M=(H=h)==null?void 0:H.config;case 4:return g.I(t,Sx5(M,X,Q),3);case 3:if(M)for(var q=M,w=g.e(D.X.S),T=w.next();!T.done;T=w.next())T=T.value,T(q);g.HZ(t)}})}; iCR=function(D,X,M){var Q,h,H,t;return g.r(function(q){if(q.S==1){if(!g.cX("start_client_gcf"))return q.D4(0);HO(D,X);return(Q=Gh())?M?q.D4(4):g.I(q,yld(Q),5):q.D4(0)}q.S!=4&&(h=q.G,M=(H=h)==null?void 0:H.config);if(!M)return q.D4(0);t=M.configData;return g.I(q,Em1(M,X,t,Q),0)})}; om9=function(){var D=bC5(),X=(0,g.fi)()-D.Y;if(!(D.Y!==0&&X0&&(X.request={internalExperimentFlags:M});OC9(D,void 0,X);p5m(void 0,X);Als(void 0,X);YxR(D,void 0,X);l1W(void 0,X);g.cX("start_client_gcf")&&Jli(void 0,X);g.zZ("DELEGATED_SESSION_ID")&& !g.cX("pageid_as_header_web")&&(X.user={onBehalfOfUser:g.zZ("DELEGATED_SESSION_ID")});!g.cX("fill_delegate_context_in_gel_killswitch")&&(D=g.zZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(X.user=Object.assign({},X.user,{serializedDelegationContext:D}));D=g.zZ("INNERTUBE_CONTEXT");var Q;if(g.cX("enable_persistent_device_token")&&(D==null?0:(Q=D.client)==null?0:Q.rolloutToken)){var h;X.client.rolloutToken=D==null?void 0:(h=D.client)==null?void 0:h.rolloutToken}Q=Object;h=Q.assign;D=X.client; M={};for(var H=g.e(Object.entries(dR(g.zZ("DEVICE","")))),t=H.next();!t.done;t=H.next()){var q=g.e(t.value);t=q.next().value;q=q.next().value;t==="cbrand"?M.deviceMake=q:t==="cmodel"?M.deviceModel=q:t==="cbr"?M.browserName=q:t==="cbrver"?M.browserVersion=q:t==="cos"?M.osName=q:t==="cosver"?M.osVersion=q:t==="cplatform"&&(M.platform=q)}X.client=h.call(Q,D,M);return X}; OC9=function(D,X,M){D=D.Oe;if(D==="WEB"||D==="MWEB"||D===1||D===2)if(X){M=oG(X,R1,96)||new R1;var Q=i2();Q=Object.keys(x3p).indexOf(Q);Q=Q===-1?null:Q;Q!==null&&DX(M,3,Q);pQ(X,R1,96,M)}else M&&(M.client.mainAppWebInfo=(Q=M.client.mainAppWebInfo)!=null?Q:{},M.client.mainAppWebInfo.webDisplayMode=i2())}; p5m=function(D,X){var M=g.mn("yt.embedded_player.embed_url");M&&(D?(X=oG(D,r1,7)||new r1,uY(X,4,M),pQ(D,r1,7,X)):X&&(X.thirdParty={embedUrl:M}))}; Als=function(D,X){var M;if(g.cX("web_log_memory_total_kbytes")&&((M=g.E8.navigator)==null?0:M.deviceMemory)){var Q;M=(Q=g.E8.navigator)==null?void 0:Q.deviceMemory;D?V2(D,95,OH(M*1E6)):X&&(X.client.memoryTotalKbytes=""+M*1E6)}}; YxR=function(D,X,M){if(D.appInstallData)if(X){var Q;M=(Q=oG(X,eL,62))!=null?Q:new eL;uY(M,6,D.appInstallData);pQ(X,eL,62,M)}else M&&(M.client.configInfo=M.client.configInfo||{},M.client.configInfo.appInstallData=D.appInstallData)}; l1W=function(D,X){var M=eps();M&&(D?DX(D,61,WTn[M]):X&&(X.client.connectionType=M));g.cX("web_log_effective_connection_type")&&(M=Iw1())&&(D?DX(D,94,G1H[M]):X&&(X.client.effectiveConnectionType=M))}; zOm=function(D,X,M){M=M===void 0?{}:M;var Q={};g.zZ("EOM_VISITOR_DATA")?Q={"X-Goog-EOM-Visitor-Id":g.zZ("EOM_VISITOR_DATA")}:Q={"X-Goog-Visitor-Id":M.visitorData||g.zZ("VISITOR_DATA","")};if(X&&X.includes("www.youtube-nocookie.com"))return Q;X=M.Lg||g.zZ("AUTHORIZATION");X||(D?X="Bearer "+g.mn("gapi.auth.getToken")().access_token:(D=Ep9().CU(Tz),g.cX("pageid_as_header_web")||delete D["X-Goog-PageId"],Q=Object.assign({},Q,D)));X&&(Q.Authorization=X);return Q}; Jli=function(D,X){var M=om9();if(M){var Q=M.coldConfigData,h=M.coldHashData;M=M.hotHashData;if(D){var H;X=(H=oG(D,eL,62))!=null?H:new eL;Q=uY(X,1,Q);uY(Q,3,h).zJ(M);pQ(D,eL,62,X)}else X&&(X.client.configInfo=X.client.configInfo||{},Q&&(X.client.configInfo.coldConfigData=Q),h&&(X.client.configInfo.coldHashData=h),M&&(X.client.configInfo.hotHashData=M))}}; LW=function(D,X){this.version=D;this.args=X}; s6=function(D,X){this.topic=D;this.S=X}; af=function(D,X){var M=KW();M&&M.publish.call(M,D.toString(),D,X)}; jnR=function(D){var X=k1d,M=KW();if(!M)return 0;var Q=M.subscribe(X.toString(),function(h,H){var t=g.mn("ytPubsub2Pubsub2SkipSubKey");t&&t==Q||(t=function(){if(Fj[Q])try{if(H&&X instanceof s6&&X!=h)try{var q=X.S,w=H;if(!w.args||!w.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!q.GR){var T=new q;q.GR=T.version}var L=q.GR}catch(K){}if(!L||w.version!=L)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{H=Reflect.construct(q, g.Hi(w.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+X.toString()+": "+K.message,K;}D.call(window,H)}catch(K){g.jL(K)}},uei[X.toString()]?g.jJ()?g.Ox.cI(t):g.Vj(t,0):t())}); Fj[Q]=!0;V3[X.toString()]||(V3[X.toString()]=[]);V3[X.toString()].push(Q);return Q}; Mui=function(){var D=DE1,X=jnR(function(M){D.apply(void 0,arguments);XCH(X)}); return X}; XCH=function(D){var X=KW();X&&(typeof D==="number"&&(D=[D]),g.$R(D,function(M){X.unsubscribeByKey(M);delete Fj[M]}))}; KW=function(){return g.mn("ytPubsub2Pubsub2Instance")}; $r=function(D,X,M){M=M===void 0?{sampleRate:.1}:M;Math.random()q5_||t=s9i&&(ml++,S8=!1);KZm(X);Q.headers||(Q.headers={});Q.headers["Content-Encoding"]="gzip";Q.postBody=D;Q.postParams=void 0;h(M,Q)}; FZ_=function(D){var X=X===void 0?!1:X;var M=M===void 0?!1:M;var Q=(0,g.fi)(),h={startTime:Q,ticks:{},infos:{}},H=X?g.mn("yt.logging.gzipForFetch",!1):!0;if(S8&&H){if(!D.body)return D;try{var t=M?D.body:typeof D.body==="string"?D.body:JSON.stringify(D.body);H=t;if(!M&&typeof t==="string"){var q=NV_(t);if(q!=null&&(q>q5_||q=s9i)if(ml++,g.cX("abandon_compression_after_N_slow_zips_lr")){X=ml/PO;var T=aPd/g.fa("compression_disable_point");PO>0&&PO%g.fa("compression_disable_point")===0&&X>=T&&(S8=!1)}else S8=!1;KZm(h)}}D.headers=Object.assign({},{"Content-Encoding":"gzip"},D.headers||{});D.body=H;return D}catch(L){return Xc(L),D}}else return D}; NV_=function(D){try{return(new Blob(D.split(""))).size}catch(X){return Xc(X),null}}; KZm=function(D){g.cX("gel_compression_csi_killswitch")||!g.cX("log_gel_compression_latency")&&!g.cX("log_gel_compression_latency_lr")||$r("gel_compression",D,{sampleRate:.1})}; bQ=function(D){var X=this;this.iJ=this.S=!1;this.potentialEsfErrorCounter=this.G=0;this.handleError=function(){}; this.XN=function(){}; this.now=Date.now;this.hk=!1;this.py={kej:function(L){X.cP=L}, bvf:function(){X.Ha()}, cU:function(){X.WJ()}, u_:function(L){return g.r(function(K){return g.I(K,X.u_(L),0)})}, Vk:function(L,K){return X.Vk(L,K)}, Sc:function(){X.Sc()}}; var M;this.bd=(M=D.bd)!=null?M:100;var Q;this.L_=(Q=D.L_)!=null?Q:1;var h;this.V8=(h=D.V8)!=null?h:2592E6;var H;this.pR=(H=D.pR)!=null?H:12E4;var t;this.UN=(t=D.UN)!=null?t:5E3;var q;this.cP=(q=D.cP)!=null?q:void 0;this.Jx=!!D.Jx;var w;this.GD=(w=D.GD)!=null?w:.1;var T;this.XI=(T=D.XI)!=null?T:10;D.handleError&&(this.handleError=D.handleError);D.XN&&(this.XN=D.XN);D.hk&&(this.hk=D.hk);D.iJ&&(this.iJ=D.iJ);this.Z4=D.Z4;this.rV=D.rV;this.MW=D.MW;this.hg=D.hg;this.sendFn=D.sendFn;this.Nu=D.Nu;this.I_= D.I_;nW(this)&&(!this.Z4||this.Z4("networkless_logging"))&&Vup(this)}; Vup=function(D){nW(D)&&!D.hk&&(D.S=!0,D.Jx&&Math.random()<=D.GD&&D.MW.vU(D.cP),D.Sc(),D.hg.Yh()&&D.Ha(),D.hg.listen(D.Nu,D.Ha.bind(D)),D.hg.listen(D.I_,D.WJ.bind(D)))}; Z6s=function(D,X){if(!nW(D))throw Error("IndexedDB is not supported: updateRequestHandlers");var M=X.options.onError?X.options.onError:function(){}; X.options.onError=function(h,H){var t,q,w,T;return g.r(function(L){switch(L.S){case 1:t=$Eo(H);(q=BV2(H))&&D.Z4&&D.Z4("web_enable_error_204")&&D.handleError(Error("Request failed due to compression"),X.url,H);if(!(D.Z4&&D.Z4("nwl_consider_error_code")&&t||D.Z4&&!D.Z4("nwl_consider_error_code")&&D.potentialEsfErrorCounter<=D.XI)){L.D4(2);break}if(!D.hg.UZ){L.D4(3);break}return g.I(L,D.hg.UZ(),3);case 3:if(D.hg.Yh()){L.D4(2);break}M(h,H);if(!D.Z4||!D.Z4("nwl_consider_error_code")||((w=X)==null?void 0: w.id)===void 0){L.D4(6);break}return g.I(L,D.MW.Ao(X.id,D.cP,!1),6);case 6:return L.return();case 2:if(D.Z4&&D.Z4("nwl_consider_error_code")&&!t&&D.potentialEsfErrorCounter>D.XI)return L.return();D.potentialEsfErrorCounter++;if(((T=X)==null?void 0:T.id)===void 0){L.D4(8);break}return X.sendCount=400&&D<=599?!1:!0}; BV2=function(D){var X;D=D==null?void 0:(X=D.error)==null?void 0:X.code;return!(D!==400&&D!==415)}; UEm=function(){if(Rf)return Rf();var D={};Rf=g.uD("LogsDatabaseV2",{Af:(D.LogsRequestsStore={kE:2},D),shared:!1,upgrade:function(X,M,Q){M(2)&&g.yu(X,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});M(3);M(5)&&(Q=Q.objectStore("LogsRequestsStore"),Q.S.indexNames.contains("newRequest")&&Q.S.deleteIndex("newRequest"),g.Rh(Q,"newRequestV2",["status","interface","timestamp"]));M(7)&&Pc(X,"sapisid");M(9)&&Pc(X,"SWHealthLog")}, version:9});return Rf()}; If=function(D){return g.Ci(UEm(),D)}; fP9=function(D,X){var M,Q,h,H;return g.r(function(t){if(t.S==1)return M={startTime:(0,g.fi)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.I(t,If(X),2);if(t.S!=3)return Q=t.G,h=Object.assign({},D,{options:JSON.parse(JSON.stringify(D.options)),interface:g.zZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.I(t,g.bD(Q,"LogsRequestsStore",h),3);H=t.G;M.ticks.tc=(0,g.fi)();cNp(M);return t.return(H)})}; S5W=function(D,X){var M,Q,h,H,t,q,w,T,L;return g.r(function(K){if(K.S==1)return M={startTime:(0,g.fi)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.I(K,If(X),2);if(K.S!=3)return Q=K.G,h=g.zZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),H=[D,h,0],t=[D,h,(0,g.fi)()],q=IDBKeyRange.bound(H,t),w="prev",g.cX("use_fifo_for_networkless")&&(w="next"),T=void 0,L=D==="NEW"?"readwrite":"readonly",g.cX("use_readonly_for_get_most_recent_by_status_killswitch")&&(L="readwrite"),g.I(K,g.mt(Q,["LogsRequestsStore"], {mode:L,d3:!0},function(a){return g.dv(a.objectStore("LogsRequestsStore").index("newRequestV2"),{query:q,direction:w},function(F){F.getValue()&&(T=F.getValue(),D==="NEW"&&(T.status="QUEUED",F.update(T)))})}),3); M.ticks.tc=(0,g.fi)();cNp(M);return K.return(T)})}; E6d=function(D,X){var M;return g.r(function(Q){if(Q.S==1)return g.I(Q,If(X),2);M=Q.G;return Q.return(g.mt(M,["LogsRequestsStore"],{mode:"readwrite",d3:!0},function(h){var H=h.objectStore("LogsRequestsStore");return H.get(D).then(function(t){if(t)return t.status="QUEUED",g.ni(H,t).then(function(){return t})})}))})}; yN2=function(D,X,M,Q){M=M===void 0?!0:M;var h;return g.r(function(H){if(H.S==1)return g.I(H,If(X),2);h=H.G;return H.return(g.mt(h,["LogsRequestsStore"],{mode:"readwrite",d3:!0},function(t){var q=t.objectStore("LogsRequestsStore");return q.get(D).then(function(w){return w?(w.status="NEW",M&&(w.sendCount+=1),Q!==void 0&&(w.options.compress=Q),g.ni(q,w).then(function(){return w})):g.Bc.resolve(void 0)})}))})}; PHs=function(D,X){var M;return g.r(function(Q){if(Q.S==1)return g.I(Q,If(X),2);M=Q.G;return Q.return(M.delete("LogsRequestsStore",D))})}; mEm=function(D){var X,M;return g.r(function(Q){if(Q.S==1)return g.I(Q,If(D),2);X=Q.G;M=(0,g.fi)()-2592E6;return g.I(Q,g.mt(X,["LogsRequestsStore"],{mode:"readwrite",d3:!0},function(h){return g.Ih(h.objectStore("LogsRequestsStore"),{},function(H){if(H.getValue().timestamp<=M)return H.delete().then(function(){return g.gv(H)})})}),0)})}; n6n=function(){g.r(function(D){return g.I(D,ZCm("LogsDatabaseV2"),0)})}; cNp=function(D){g.cX("nwl_csi_killswitch")||$r("networkless_performance",D,{sampleRate:1})}; ebR=function(D){return g.Ci(b6s(),D)}; Rb1=function(D){var X,M;g.r(function(Q){if(Q.S==1)return g.I(Q,ebR(D),2);X=Q.G;M=(0,g.fi)()-2592E6;return g.I(Q,g.mt(X,["SWHealthLog"],{mode:"readwrite",d3:!0},function(h){return g.Ih(h.objectStore("SWHealthLog"),{},function(H){if(H.getValue().timestamp<=M)return H.delete().then(function(){return g.gv(H)})})}),0)})}; IPW=function(D){var X;return g.r(function(M){if(M.S==1)return g.I(M,ebR(D),2);X=M.G;return g.I(M,X.clear("SWHealthLog"),0)})}; g.gf=function(D,X,M,Q,h,H,t){h=h===void 0?"":h;H=H===void 0?!1:H;t=t===void 0?!1:t;if(D)if(M&&!g.xH())Xc(new g.ys("Legacy referrer-scrubbed ping detected")),D&&g62(D,void 0,{scrubReferrer:!0});else if(h)yj(D,X,"POST",h,Q);else if(g.zZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Q||t)yj(D,X,"GET","",Q,void 0,H,t);else{b:{try{c:{var q=new xxs({url:D});if(q.S.dsh==="1")var w=null;else{var T=q.S.ae;if(T==="1"){var L=q.S.adurl;if(L)try{w={version:3,bZ:decodeURIComponent(L),BU:jn(q.G,"act=1","ri=1",WSi(q))}; break c}catch(F){}}w=T==="2"?{version:4,bZ:jn(q.G,"dct=1","suid="+q.Y,"ri=1"),BU:jn(q.G,"act=1","ri=1","suid="+q.Y)}:null}}if(w){var K=fJ(D);var a=!(!K||!K.endsWith("/aclk")||I5(D,"ri")!=="1");break b}}catch(F){}a=!1}a?v6H(D)?(X&&X(),M=!0):M=!1:M=!1;M||g62(D,X)}}; v6H=function(D,X){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(D,X===void 0?"":X))return!0}catch(M){}return!1}; g62=function(D,X,M){M=M===void 0?{}:M;var Q=new Image,h=""+dEW++;vO[h]=Q;Q.onload=Q.onerror=function(){X&&vO[h]&&X();delete vO[h]}; M.scrubReferrer&&(Q.referrerPolicy="no-referrer");Q.src=D}; rN1=function(D){var X;return((X=document.featurePolicy)==null?0:X.allowedFeatures().includes("attribution-reporting"))?D+"&nis=6":D+"&nis=5"}; rf=function(){df||(df=new Xq("yt.offline"));return df}; i6n=function(D){if(g.cX("offline_error_handling")){var X=rf().get("errors",!0)||{};X[D.message]={name:D.name,stack:D.stack};D.level&&(X[D.message].level=D.level);rf().set("errors",X,2592E3,!0)}}; iQ=function(){this.S=new Map;this.G=!1}; of=function(){if(!iQ.instance){var D=g.mn("yt.networkRequestMonitor.instance")||new iQ;g.PZ("yt.networkRequestMonitor.instance",D);iQ.instance=D}return iQ.instance}; CW=function(){g.Ks.call(this);var D=this;this.G=!1;this.S=XLH();this.S.listen("networkstatus-online",function(){if(D.G&&g.cX("offline_error_handling")){var X=rf().get("errors",!0);if(X){for(var M in X)if(X[M]){var Q=new g.ys(M,"sent via offline_errors");Q.name=X[M].name;Q.stack=X[M].stack;Q.level=X[M].level;g.jL(Q)}rf().set("errors",{},2592E3,!0)}}})}; o6m=function(){if(!CW.instance){var D=g.mn("yt.networkStatusManager.instance")||new CW;g.PZ("yt.networkStatusManager.instance",D);CW.instance=D}return CW.instance}; g.O6=function(D){D=D===void 0?{}:D;g.Ks.call(this);var X=this;this.S=this.U=0;this.G=o6m();var M=g.mn("yt.networkStatusManager.instance.listen").bind(this.G);M&&(D.rateLimit?(this.rateLimit=D.rateLimit,M("networkstatus-online",function(){CHn(X,"publicytnetworkstatus-online")}),M("networkstatus-offline",function(){CHn(X,"publicytnetworkstatus-offline")})):(M("networkstatus-online",function(){X.dispatchEvent("publicytnetworkstatus-online")}),M("networkstatus-offline",function(){X.dispatchEvent("publicytnetworkstatus-offline")})))}; CHn=function(D,X){D.rateLimit?D.S?(g.Ox.zN(D.U),D.U=g.Ox.cI(function(){D.Y!==X&&(D.dispatchEvent(X),D.Y=X,D.S=(0,g.fi)())},D.rateLimit-((0,g.fi)()-D.S))):(D.dispatchEvent(X),D.Y=X,D.S=(0,g.fi)()):D.dispatchEvent(X)}; As=function(){var D=bQ.call;pW||(pW=new g.O6({jAz:!0,Ke5:!0}));D.call(bQ,this,{MW:{vU:mEm,oe:PHs,G3:S5W,Yw5:E6d,Ao:yN2,set:fP9},hg:pW,handleError:function(X,M,Q){var h,H=Q==null?void 0:(h=Q.error)==null?void 0:h.code;if(H===400||H===415){var t;X=new g.ys(X.message,M,Q==null?void 0:(t=Q.error)==null?void 0:t.code);Xc(X,void 0,void 0,void 0,!0)}else g.jL(X)}, XN:Xc,sendFn:O61,now:g.fi,gS:i6n,rV:g.u2(),Nu:"publicytnetworkstatus-online",I_:"publicytnetworkstatus-offline",Jx:!0,GD:.1,XI:g.fa("potential_esf_error_limit",10),Z4:g.cX,hk:!(g.xg()&&g.cR(document.location.toString())!=="www.youtube-nocookie.com")});this.Y=new g.wh;g.cX("networkless_immediately_drop_all_requests")&&n6n();U3o("LogsDatabaseV2")}; Yr=function(){var D=g.mn("yt.networklessRequestController.instance");D||(D=new As,g.PZ("yt.networklessRequestController.instance",D),g.cX("networkless_logging")&&g.zh().then(function(X){D.cP=X;Vup(D);D.Y.resolve();D.Jx&&Math.random()<=D.GD&&D.cP&&Rb1(D.cP);g.cX("networkless_immediately_drop_sw_health_store")&&pCp(D)})); return D}; pCp=function(D){var X;g.r(function(M){if(!D.cP)throw X=g.Vu("clearSWHealthLogsDb"),X;return M.return(IPW(D.cP).catch(function(Q){D.handleError(Q)}))})}; O61=function(D,X,M,Q){Q=Q===void 0?!1:Q;X=g.cX("web_fp_via_jspb")?Object.assign({},X):X;g.cX("use_cfr_monitor")&&ANi(D,X);if(g.cX("use_request_time_ms_header"))X.headers&&qq(D)&&(X.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.fi)())));else{var h;if((h=X.postParams)==null?0:h.requestTimeMs)X.postParams.requestTimeMs=Math.round((0,g.fi)())}M&&Object.keys(X).length===0?g.gf(D):X.compress?X.postBody?(typeof X.postBody!=="string"&&(X.postBody=JSON.stringify(X.postBody)),y3(D,X.postBody, X,g.PX,Q)):y3(D,JSON.stringify(X.postParams),X,mo,Q):g.PX(D,X)}; lQ=function(D,X){g.cX("use_event_time_ms_header")&&qq(D)&&(X.headers||(X.headers={}),X.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.fi)())));return X}; ANi=function(D,X){var M=X.onError?X.onError:function(){}; X.onError=function(h,H){of().requestComplete(D,!1);M(h,H)}; var Q=X.onSuccess?X.onSuccess:function(){}; X.onSuccess=function(h,H){of().requestComplete(D,!0);Q(h,H)}}; g.Js=function(D){this.config_=null;D?this.config_=D:Ch_()&&(this.config_=g.q$())}; g.xr=function(D,X,M,Q){function h(T){try{if((T===void 0?0:T)&&Q.retry&&!Q.networklessOptions.bypassNetworkless)H.method="POST",Q.networklessOptions.writeThenSend?Yr().writeThenSend(w,H):Yr().sendAndWrite(w,H);else if(Q.compress){var L=!Q.networklessOptions.writeThenSend;if(H.postBody){var K=H.postBody;typeof K!=="string"&&(K=JSON.stringify(H.postBody));y3(w,K,H,g.PX,L)}else y3(w,JSON.stringify(H.postParams),H,mo,L)}else mo(w,H)}catch(a){if(a.name==="InvalidAccessError")Xc(Error("An extension is blocking network request.")); else throw a;}} !g.zZ("VISITOR_DATA")&&X!=="visitor_id"&&Math.random()<.01&&Xc(new g.ys("Missing VISITOR_DATA when sending innertube request.",X,M,Q));if(!D.isReady())throw D=new g.ys("innertube xhrclient not ready",X,M,Q),g.jL(D),D;var H={headers:Q.headers||{},method:"POST",postParams:M,postBody:Q.postBody,postBodyFormat:Q.postBodyFormat||"JSON",onTimeout:function(){Q.onTimeout()}, onFetchTimeout:Q.onTimeout,onSuccess:function(T,L){if(Q.onSuccess)Q.onSuccess(L)}, onFetchSuccess:function(T){if(Q.onSuccess)Q.onSuccess(T)}, onProgress:function(T){if(Q.onProgress)Q.onProgress(T)}, onError:function(T,L){if(Q.onError)Q.onError(L)}, onFetchError:function(T){if(Q.onError)Q.onError(T)}, timeout:Q.timeout,withCredentials:!0,compress:Q.compress};H.headers["Content-Type"]||(H.headers["Content-Type"]="application/json");M="";var t=D.config_.Rk;t&&(M=t);t=D.config_.Gy||!1;var q=zOm(t,M,Q);Object.assign(H.headers,q);H.headers.Authorization&&!M&&t&&(H.headers["x-origin"]=window.location.origin);var w=tW(""+M+("/youtubei/"+D.config_.innertubeApiVersion+"/"+X),{alt:"json"});g.mn("ytNetworklessLoggingInitializationOptions")&&Y5s.isNwlInitialized?sni().then(function(T){h(T)}):h(!1)}; g.uQ=function(D,X,M){var Q=g.WO();if(Q&&X){var h=Q.subscribe(D,function(){function H(){Gz[h]&&X.apply&&typeof X.apply=="function"&&X.apply(M||window,t)} var t=arguments;try{g.zz[D]?H():g.Vj(H,0)}catch(q){g.jL(q)}},M); Gz[h]=!0;kr[D]||(kr[D]=[]);kr[D].push(h);return h}return 0}; lPi=function(D){var X=g.uQ("LOGGED_IN",function(M){D.apply(void 0,arguments);g.j8(X)})}; g.j8=function(D){var X=g.WO();X&&(typeof D==="number"?D=[D]:typeof D==="string"&&(D=[parseInt(D,10)]),g.$R(D,function(M){X.unsubscribeByKey(M);delete Gz[M]}))}; g.Dm=function(D,X){var M=g.WO();return M?M.publish.apply(M,arguments):!1}; xEm=function(D){var X=g.WO();if(X)if(X.clear(D),D)JN1(D);else for(var M in kr)JN1(M)}; g.WO=function(){return g.E8.ytPubsubPubsubInstance}; JN1=function(D){kr[D]&&(D=kr[D],g.$R(D,function(X){Gz[X]&&delete Gz[X]}),D.length=0)}; g.X4=function(D,X,M){WZ9(D,X,M===void 0?null:M)}; WZ9=function(D,X,M){M=M===void 0?null:M;var Q=G2_(typeof D==="string"?D:D.toString()),h=document.getElementById(Q),H=h&&wg9(h),t=h&&!H;H?X&&X():(X&&(H=g.uQ(Q,X),X=""+g.rK(X),zbR[X]=H),t||(h=k2m(D,Q,function(){wg9(h)||(qhH(h),g.Dm(Q),g.Vj(function(){xEm(Q)},0))},M)))}; k2m=function(D,X,M,Q){Q=Q===void 0?null:Q;var h=g.m7("SCRIPT");h.id=X;h.onload=function(){M&&setTimeout(M,0)}; h.onreadystatechange=function(){switch(h.readyState){case "loaded":case "complete":h.onload()}}; Q&&h.setAttribute("nonce",Q);g.rA(h,typeof D==="string"?g.nB(D):D);D=document.getElementsByTagName("head")[0]||document.body;D.insertBefore(h,D.firstChild);return h}; G2_=function(D){var X=document.createElement("a");g.PH(X,D);D=X.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+xZ(D)}; Me=function(D,X){if(D===X)D=!0;else if(Array.isArray(D)&&Array.isArray(X))D=g.F_(D,X,Me);else if(g.gK(D)&&g.gK(X))a:if(g.yF(D).length!=g.yF(X).length)D=!1;else{for(var M in D)if(!Me(D[M],X[M])){D=!1;break a}D=!0}else D=!1;return D}; H1=function(D){var X=g.BZ.apply(1,arguments);if(!Qc(D)||X.some(function(Q){return!Qc(Q)}))throw Error("Only objects may be merged."); X=g.e(X);for(var M=X.next();!M.done;M=X.next())ho(D,M.value)}; ho=function(D,X){for(var M in X)if(Qc(X[M])){if(M in D&&!Qc(D[M]))throw Error("Cannot merge an object into a non-object.");M in D||(D[M]={});ho(D[M],X[M])}else if(to(X[M])){if(M in D&&!to(D[M]))throw Error("Cannot merge an array into a non-array.");M in D||(D[M]=[]);u31(D[M],X[M])}else D[M]=X[M];return D}; u31=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next())M=M.value,Qc(M)?D.push(ho({},M)):to(M)?D.push(u31([],M)):D.push(M);return D}; Qc=function(D){return typeof D==="object"&&!Array.isArray(D)}; to=function(D){return typeof D==="object"&&Array.isArray(D)}; Ne=function(D){g.O.call(this);this.G=D}; qe=function(D){Ne.call(this,!0);this.S=D}; wX=function(D,X){g.O.call(this);var M=this;this.Y=[];this.J=!1;this.G=0;this.D=this.X=this.U=!1;this.f$=null;var Q=(0,g.iW)(D,X);this.S=new g.W5(function(){return Q(M.f$)},300); g.p(this,this.S);this.eH=this.K=Infinity}; j9i=function(D,X){if(!X)return!1;for(var M=0;M-1)throw Error("Deps cycle for: "+X);if(D.G.has(X))return D.G.get(X);if(!D.S.has(X)){if(Q)return;throw Error("No provider for: "+X);}Q=D.S.get(X);M.push(X);if(Q.hm!==void 0)var h=Q.hm;else if(Q.MgI)h=Q[UB]?hwm(D,Q[UB],M):[],h=Q.MgI.apply(Q,g.xW(h));else if(Q.ez){h=Q.ez;var H=h[UB]?hwm(D,h[UB],M):[];h=new (Function.prototype.bind.apply(h,[null].concat(g.xW(H))))}else throw Error("Could not resolve providers for: "+X);M.pop();Q.R7H||D.G.set(X,h); return h}; hwm=function(D,X,M){return X?X.map(function(Q){return Q instanceof B1?c1(D,Q.key,M,!0):c1(D,Q,M)}):[]}; SP=function(){fe||(fe=new Q1m);return fe}; tL1=function(){var D=HBm;return function(){var X=SP();if(!X.resolve(new B1(D))){var M={};Zm(X,(M.QU=D,M.ez=D,M[UB]=void 0,M))}return X.resolve(D)}}; yc=function(){var D,X;return"h5vcc"in EB&&((D=EB.h5vcc.traceEvent)==null?0:D.traceBegin)&&((X=EB.h5vcc.traceEvent)==null?0:X.traceEnd)?1:"performance"in EB&&EB.performance.mark&&EB.performance.measure?2:0}; P1=function(D){var X=yc();switch(X){case 1:EB.h5vcc.traceEvent.traceBegin("YTLR",D);break;case 2:EB.performance.mark(D+"-start");break;case 0:break;default:mv(X,"unknown trace type")}}; N1p=function(D){var X=yc();switch(X){case 1:EB.h5vcc.traceEvent.traceEnd("YTLR",D);break;case 2:X=D+"-start";var M=D+"-end";EB.performance.mark(M);EB.performance.measure(D,X,M);break;case 0:break;default:mv(X,"unknown trace type")}}; qDH=function(D){var X,M;(M=(X=window).onerror)==null||M.call(X,D.message,"",0,0,D)}; wG_=function(D){var X=this;var M=M===void 0?0:M;var Q=Q===void 0?g.u2():Q;this.Y=M;this.scheduler=Q;this.G=new g.wh;this.S=D;for(D={xQ:0};D.xQ=1E3?h():Q>=D?ke||(ke=uU(function(){h();ke=void 0},0)):H-q>=10&&(Pqn(X,M.tier),t.U=H)}; cB5=function(D,X){if(D.endpoint==="log_event"){g.cX("more_accurate_gel_parser")&&pe().storePayload({isJspb:!1},D.payload);Ye(D);var M=lU(D),Q=new Map;Q.set(M,[D.payload]);var h=B1W(D.payload)||"";X&&(G$=new X);return new g.yw(function(H,t){G$&&G$.isReady()?mfH(Q,G$,H,t,{bypassNetworkless:!0},!0,xe(h)):H()})}}; Exd=function(D,X,M){if(X.endpoint==="log_event"){Ye(void 0,X);var Q=lU(X,!0),h=new Map;h.set(Q,[hx(X.payload)]);M&&(G$=new M);return new g.yw(function(H){G$&&G$.isReady()?nx5(h,G$,H,{bypassNetworkless:!0},!0,xe(D)):H()})}}; lU=function(D,X){var M="";if(D.dangerousLogToVisitorSession)M="visitorOnlyApprovedKey";else if(D.cttAuthInfo){if(X===void 0?0:X){X=D.cttAuthInfo.token;M=D.cttAuthInfo;var Q=new JB;M.videoId?Q.setVideoId(M.videoId):M.playlistId&&gT(Q,2,jP,Yl(M.playlistId));D7[X]=Q}else X=D.cttAuthInfo,M={},X.videoId?M.videoId=X.videoId:X.playlistId&&(M.playlistId=X.playlistId),XN[D.cttAuthInfo.token]=M;M=D.cttAuthInfo.token}return M}; W1=function(D,X,M){D=D===void 0?{}:D;X=X===void 0?!1:X;new g.yw(function(Q,h){var H=z$(X,M),t=H.Y;H.Y=!1;M8(H.G);M8(H.S);H.S=0;G$&&G$.isReady()?M===void 0&&g.cX("enable_web_tiered_gel")?bB1(Q,h,D,X,300,t):bB1(Q,h,D,X,M,t):(Pqn(X,M),Q())})}; bB1=function(D,X,M,Q,h,H){var t=G$;M=M===void 0?{}:M;Q=Q===void 0?!1:Q;h=h===void 0?200:h;H=H===void 0?!1:H;var q=new Map,w=new Map,T={isJspb:Q,cttAuthInfo:void 0,tier:h},L={isJspb:Q,cttAuthInfo:void 0};if(Q){X=g.e(Object.keys(Jo));for(h=X.next();!h.done;h=X.next())h=h.value,w=g.cX("enable_web_tiered_gel")?pe().smartExtractMatchingEntries({keys:[T,L],sizeLimit:1E3}):pe().extractMatchingEntries({isJspb:!0,cttAuthInfo:h}),w.length>0&&q.set(h,w),(g.cX("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.cX("web_fp_via_jspb_and_json"))&& delete Jo[h];nx5(q,t,D,M,!1,H)}else{q=g.e(Object.keys(Jo));for(T=q.next();!T.done;T=q.next())T=T.value,L=g.cX("enable_web_tiered_gel")?pe().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:T,tier:h},{isJspb:!1,cttAuthInfo:T}],sizeLimit:1E3}):pe().extractMatchingEntries({isJspb:!1,cttAuthInfo:T}),L.length>0&&w.set(T,L),(g.cX("web_fp_via_jspb_and_json")&&M.writeThenSend||!g.cX("web_fp_via_jspb_and_json"))&&delete Jo[T];mfH(w,t,D,X,M,!1,H)}}; Pqn=function(D,X){function M(){W1({writeThenSend:!0},D,X)} D=D===void 0?!1:D;X=X===void 0?200:X;var Q=z$(D,X),h=Q===ewo||Q===Rw5?5E3:Irp;g.cX("web_gel_timeout_cap")&&!Q.S&&(h=uU(function(){M()},h),Q.S=h); M8(Q.G);h=g.zZ("LOGGING_BATCH_TIMEOUT",g.fa("web_gel_debounce_ms",1E4));g.cX("shorten_initial_gel_batch_timeout")&&Qa&&(h=gxo);h=uU(function(){g.fa("gel_min_batch_size")>0?pe().getSequenceCount({cttAuthInfo:void 0,isJspb:D,tier:X})>=vx1&&M():M()},h); Q.G=h}; mfH=function(D,X,M,Q,h,H,t){h=h===void 0?{}:h;var q=Math.round((0,g.fi)()),w=D.size,T=dfW(t);D=g.e(D);var L=D.next();for(t={};!L.done;t={Nc:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,JO:void 0,KT:void 0},L=D.next()){var K=g.e(L.value);L=K.next().value;K=K.next().value;t.batchRequest=g.dS({context:g.wf(X.config_||g.q$())});if(!g.Ia(K)&&!g.cX("throw_err_when_logevent_malformed_killswitch")){Q();break}t.batchRequest.events=K;(K=XN[L])&&rBR(t.batchRequest,L,K);delete XN[L];t.dangerousLogToVisitorSession= L==="visitorOnlyApprovedKey";iBH(t.batchRequest,q,t.dangerousLogToVisitorSession);oxn(h);t.JO=function(a){g.cX("start_client_gcf")&&g.Ox.cI(function(){return g.r(function(F){return g.I(F,Cqn(a),0)})}); w--;w||M()}; t.Nc=0;t.KT=function(a){return function(){a.Nc++;if(h.bypassNetworkless&&a.Nc===1)try{g.xr(X,T,a.batchRequest,hF({writeThenSend:!0},a.dangerousLogToVisitorSession,a.JO,a.KT,H)),Qa=!1}catch(F){g.jL(F),Q()}w--;w||M()}}(t); try{g.xr(X,T,t.batchRequest,hF(h,t.dangerousLogToVisitorSession,t.JO,t.KT,H)),Qa=!1}catch(a){g.jL(a),Q()}}}; nx5=function(D,X,M,Q,h,H){Q=Q===void 0?{}:Q;var t=Math.round((0,g.fi)()),q={value:D.size},w=new Map([].concat(g.xW(D)));w=g.e(w);for(var T=w.next();!T.done;T=w.next()){var L=g.e(T.value).next().value,K=D.get(L);T=new g.xx;var a=X.config_||g.q$(),F=new CB,V=new I1;uY(V,1,a.JN);uY(V,2,a.Ci);DX(V,16,a.fD);uY(V,17,a.innertubeContextClientVersion);if(a.i4){var c=a.i4,S=new eL;c.coldConfigData&&uY(S,1,c.coldConfigData);c.appInstallData&&uY(S,6,c.appInstallData);c.coldHashData&&uY(S,3,c.coldHashData);c.hotHashData&& S.zJ(c.hotHashData);pQ(V,eL,62,S)}(c=g.E8.devicePixelRatio)&&c!=1&&V2(V,65,mf(c));c=S6();c!==""&&uY(V,54,c);c=EZ();if(c.length>0){S=new d1;for(var b=0;b65535&&(D=1);GZ("BATCH_CLIENT_COUNTER",D);return D}; rBR=function(D,X,M){if(M.videoId)var Q="VIDEO";else if(M.playlistId)Q="PLAYLIST";else return;D.credentialTransferTokenTargetId=M;D.context=D.context||{};D.context.user=D.context.user||{};D.context.user.credentialTransferTokens=[{token:X,scope:Q}]}; Ye=function(D,X){var M=g.mn("yt.logging.transport.enableScrapingForTest"),Q=UZ("il_payload_scraping");Q=(Q!==void 0?String(Q):"")==="enable_il_payload_scraping";if(!M)if(Q)N8=[],g.PZ("yt.logging.transport.enableScrapingForTest",!0),g.PZ("yt.logging.transport.scrapedPayloadsForTesting",N8),g.PZ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.PZ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.PZ("yt.logging.transport.scrapeClientEvent",!0);else return;M=g.mn("yt.logging.transport.scrapedPayloadsForTesting");Q=g.mn("yt.logging.transport.payloadToScrape");X&&(X=X.payload,(X=g.mn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(X)())&&M.push(X));X=g.mn("yt.logging.transport.scrapeClientEvent");if(Q&&Q.length>=1)for(var h=0;h0&&t6i(D,X,H)}else t6i(D,X)}; t6i=function(D,X,M){D=Nc9(D);X=X?g.mJ(X):"";M=M||5;hr()&&g.iE(D,X,M)}; Nc9=function(D){for(var X=g.e(qZo),M=X.next();!M.done;M=X.next())D=gi(D,M.value);return"ST-"+xZ(D).toString(36)}; wX9=function(D){if(D.name==="JavaException")return!0;D=D.stack;return D.includes("chrome://")||D.includes("-extension://")||D.includes("webkit-masked-url://")}; Tcd=function(D){if(!D.stack)return!0;var X=!D.stack.includes("\n");return X&&D.stack.includes("ErrorType: ")||X&&D.stack.includes("Anonymous function (Unknown script")||D.stack.toLowerCase()==="not available"||D.fileName==="user-script"||D.fileName.startsWith("user-script:")?!0:!1}; LoH=function(){this.W8=[];this.XJ=[]}; UT=function(){if(!Z7){var D=Z7=new LoH;D.XJ.length=0;D.W8.length=0;syR(D,Ko2)}return Z7}; syR=function(D,X){X.XJ&&D.XJ.push.apply(D.XJ,X.XJ);X.W8&&D.W8.push.apply(D.W8,X.W8)}; aS9=function(D){function X(){return D.charCodeAt(Q++)} var M=D.length,Q=0;do{var h=c3(X);if(h===Infinity)break;var H=h>>3;switch(h&7){case 0:h=c3(X);if(H===2)return h;break;case 1:if(H===2)return;Q+=8;break;case 2:h=c3(X);if(H===2)return D.substr(Q,h);Q+=h;break;case 5:if(H===2)return;Q+=4;break;default:return}}while(Q500));Q++);Q=h}else if(typeof D==="object")for(h in D){if(D[h]){var H=h;var t=D[h],q=X,w=M;H=typeof t!=="string"||H!=="clickTrackingParams"&&H!=="trackingParams"?0:(t=aS9(atob(t.replace(/-/g,"+").replace(/_/g,"/"))))?fj(H+".ve",t,q,w):0;Q+=H;Q+=fj(h,D[h],X,M);if(Q>500)break}}else M[X]=SM(D),Q+=M[X].length;else M[X]=SM(D),Q+=M[X].length;return Q}; fj=function(D,X,M,Q){M+="."+D;D=SM(X);Q[M]=D;return M.length+D.length}; SM=function(D){try{return(typeof D==="string"?D:String(JSON.stringify(D))).substr(0,500)}catch(X){return"unable to serialize "+typeof D+" ("+X.message+")"}}; ya=function(D){g.ET(D)}; g.P3=function(D){g.ET(D,"WARNING")}; g.ET=function(D,X){var M=M===void 0?{}:M;M.name=g.zZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);M.version=g.zZ("INNERTUBE_CONTEXT_CLIENT_VERSION");X=X===void 0?"ERROR":X;var Q=!1;X=X===void 0?"ERROR":X;Q=Q===void 0?!1:Q;if(D){D.hasOwnProperty("level")&&D.level&&(X=D.level);if(g.cX("console_log_js_exceptions")){var h=[];h.push("Name: "+D.name);h.push("Message: "+D.message);D.hasOwnProperty("params")&&h.push("Error Params: "+JSON.stringify(D.params));D.hasOwnProperty("args")&&h.push("Error args: "+JSON.stringify(D.args)); h.push("File name: "+D.fileName);h.push("Stacktrace: "+D.stack);window.console.log(h.join("\n"),D)}if(!(V6R>=5)){h=[];for(var H=g.e($q2),t=H.next();!t.done;t=H.next()){t=t.value;try{t()&&h.push(t())}catch(c){}}h=[].concat(g.xW(Bc_),g.xW(h));var q=bGi(D);H=q.message||"Unknown Error";t=q.name||"UnknownError";var w=q.stack||D.G||"Not available";if(w.startsWith(t+": "+H)){var T=w.split("\n");T.shift();w=T.join("\n")}T=q.lineNumber||"Not available";q=q.fileName||"Not available";var L=0;if(D.hasOwnProperty("args")&& D.args&&D.args.length)for(var K=0;K=500);K++);else if(D.hasOwnProperty("params")&&D.params){var a=D.params;if(typeof D.params==="object")for(K in a){if(a[K]){var F="params."+K,V=SM(a[K]);M[F]=V;L+=F.length+V.length;if(L>500)break}}else M.params=SM(a)}if(h.length)for(K=0;K=500);K++);navigator.vendor&&!M.hasOwnProperty("vendor")&&(M["device.vendor"]=navigator.vendor);M={message:H,name:t,lineNumber:T, fileName:q,stack:w,params:M,sampleWeight:1};K=Number(D.columnNumber);isNaN(K)||(M.lineNumber=M.lineNumber+":"+K);if(D.level==="IGNORED")D=0;else a:{D=UT();K=g.e(D.XJ);for(h=K.next();!h.done;h=K.next())if(h=h.value,M.message&&M.message.match(h.EG)){D=h.weight;break a}D=g.e(D.W8);for(K=D.next();!K.done;K=D.next())if(K=K.value,K.callback(M)){D=K.weight;break a}D=1}M.sampleWeight=D;D=g.e(ZaR);for(K=D.next();!K.done;K=D.next())if(K=K.value,K.gN[M.name])for(H=g.e(K.gN[M.name]),h=H.next();!h.done;h=H.next())if(t= h.value,h=M.message.match(t.IP)){M.params["params.error.original"]=h[0];H=t.groups;t={};for(T=0;T1E3&&g.P3(new g.ys("IL Attach cache exceeded limit"))}q= Cj(M,X);v3.has(q)?OT(M,X):rd.set(q,!0)}}Q=Q.filter(function(L){L.csn!==X?(L.csn=X,L=!0):L=!1;return L}); M={csn:X,parentVe:M.getAsJson(),childVes:g.be(Q,function(L){return L.getAsJson()})}; X==="UNDEFINED_CSN"?pj("visualElementAttached",H,M):D?wd("visualElementAttached",M,D,H):g.Tm("visualElementAttached",M,H)}; vHp=function(D,X,M,Q,h,H,t){AF(M,X);Q=gd({cttAuthInfo:$0(X)||void 0,automatedLogEventSource:t},X);M={csn:X,ve:M.getAsJson(),eventType:1};h&&(M.clientData=h);X==="UNDEFINED_CSN"?pj("visualElementShown",Q,M):D?wd("visualElementShown",M,D,Q):g.Tm("visualElementShown",M,Q)}; dqo=function(D,X,M,Q){var h=(Q=Q===void 0?!1:Q)?16:8;Q=gd({cttAuthInfo:$0(X)||void 0,endOfSequence:Q,automatedLogEventSource:void 0},X);M={csn:X,ve:M.getAsJson(),eventType:h};X==="UNDEFINED_CSN"?pj("visualElementHidden",Q,M):D?wd("visualElementHidden",M,D,Q):g.Tm("visualElementHidden",M,Q)}; Y0=function(D,X,M,Q,h,H){rWH(D,X,M,void 0,Q,h,H)}; rWH=function(D,X,M,Q,h,H,t){AF(M,X);Q=Q||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";H=gd({cttAuthInfo:$0(X)||void 0,automatedLogEventSource:t},X);M={csn:X,ve:M.getAsJson(),gestureType:Q};h&&(M.clientData=h);X==="UNDEFINED_CSN"?pj("visualElementGestured",H,M):D?wd("visualElementGestured",M,D,H):g.Tm("visualElementGestured",M,H)}; iaR=function(){var D=Le(16);for(var X=[],M=0;M0&&M.push(g.m7("BR"));M.push(g.nR(H))}):M.push(g.nR(Q))}return M}; hU=function(D,X,M,Q){if(M==="child"){g.Ru(X);var h;Q===void 0?h=void 0:h=!Array.isArray(Q)||Q&&typeof Q.L==="string"?[Q]:Q;M=CE9(D,h);M=g.e(M);for(D=M.next();!D.done;D=M.next())X.appendChild(D.value)}else M==="style"?g.Q_(X,"cssText",Q?Q:""):Q===null||Q===void 0?X.removeAttribute(M):(D=Q.toString(),M==="href"&&(D=g.cH(g.Eo(D))),X.setAttribute(M,D))}; g.Y=function(D){g.M1.call(this,D);this.Gm=!0;this.eH=!1;this.listeners=[]}; g.Hr=function(D){g.Y.call(this,D);this.p$=new g.Dq;g.p(this,this.p$)}; tU=function(D,X,M,Q,h,H,t){t=t===void 0?null:t;g.Hr.call(this,X);this.api=D;this.macros={};this.componentType=M;this.X=this.J=null;this.zm=t;this.layoutId=Q;this.interactionLoggingClientData=h;this.I5=H;this.A$=null;this.ZF=new qe(this.element);g.p(this,this.ZF);this.q5=this.N(this.element,"click",this.onClick);this.sR=[];this.a5=new wX(this.onClick,this);g.p(this,this.a5);this.R2=!1;this.M5=this.f$=null}; N1=function(D,X){D=D===void 0?null:D;X=X===void 0?null:X;if(D==null)return g.P3(Error("Got null or undefined adText object")),"";var M=g.J4(D.text);if(!D.isTemplated)return M;if(X==null)return g.P3(Error("Missing required parameters for a templated message")),M;D=g.e(Object.entries(X));for(X=D.next();!X.done;X=D.next()){var Q=g.e(X.value);X=Q.next().value;Q=Q.next().value;M=M.replace("{"+X+"}",Q)}return M}; Oao=function(D){D=D===void 0?null:D;return D!=null&&(D=D.thumbnail,D!=null&&D.thumbnails!=null&&D.thumbnails.length!=0&&D.thumbnails[0].url!=null)?g.J4(D.thumbnails[0].url):""}; pXR=function(D){D=D===void 0?null:D;return D!=null&&(D=D.thumbnail,D!=null&&D.thumbnails!=null&&D.thumbnails.length!=0&&D.thumbnails[0].width!=null&&D.thumbnails[0].height!=null)?new g.tn(D.thumbnails[0].width||0,D.thumbnails[0].height||0):new g.tn(0,0)}; g.q1=function(D){if(D.simpleText)return D.simpleText;if(D.runs){var X=[];D=g.e(D.runs);for(var M=D.next();!M.done;M=D.next())M=M.value,M.text&&X.push(M.text);return X.join("")}return""}; g.wq=function(D){if(D.simpleText)return D=document.createTextNode(D.simpleText),D;var X=[];if(D.runs)for(var M=0;M1){for(var X=[D[0]],M=1;M0&&(this.S=new g.W5(this.Dx,X,this),g.p(this,this.S));this.D=new g.W5(this.Dx,M,this);g.p(this,this.D);this.K=wL2(this.G,h,1,Q);g.p(this,this.K);this.J=wL2(this.G,0,Q,1);g.p(this,this.J);this.U=new b2;g.p(this,this.U)}; Q8=function(D,X){this.G=D;this.S=X}; gg_=function(D){switch(D){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:mv(D,"unknown result type")}}; vgm=function(D,X){var M=1;D.isTrusted===!1&&(M=0);GZ("ISDSTAT",M);hq(M,"i.s_",{triggerContext:"sk",metadata:X});return M}; dBn=function(D,X){var M=[];X?X.isTrusted===!0?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):X.isTrusted===!1?M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):M.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");hq(0,"a.s_",{metadata:D,states:M});GZ("ASDSTAT",0)}; hq=function(D,X,M){X=rrs[X];var Q,h,H={detected:D===0,source:""+X.G+((Q=M.triggerContext)!=null?Q:"")+((h=M.bK)!=null?h:""),detectionStates:M.states,durationMs:M.Uv};M.metadata&&(H.contentCpn=M.metadata.contentCpn,H.adCpn=M.metadata.adCpn);g.Tm("biscottiBasedDetection",H);X.S!==void 0&&(M=Number(g.zZ("CATSTAT",0)),X.S!==void 0?(X=X.S,D=gg_(D),D=M&~(3<0}; wm=function(D,X,M,Q,h,H){Wr.call(this,D,{L:"div",C:"ytp-ad-skip-button-slot"},"skip-button",X,M,Q,h);var t=this;this.R5=null;this.L$=!1;this.OR=H;this.D=this.api.W().experiments.Z4("enable_modern_skip_button_on_web");this.t$=!1;this.U=new g.Hr({L:"span",gC:["ytp-ad-skip-button-container"]});this.D&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");g.p(this,this.U);this.U.rC(this.element);this.G=this.Y=null;this.o5=new g.kn(this.U,500,!1,100,function(){return t.hide()}); g.p(this,this.o5);this.uj=new MZ(this.U.element,15E3,5E3,.5,.5,this.D);g.p(this,this.uj);this.hide()}; ogW=function(D){D=D.R5&&D.R5.adRendererCommands;return(D&&D.clickCommand&&g.Z(D.clickCommand,g.Tq)&&g.Z(D.clickCommand,g.Tq).commands||[]).some(function(X){return X.adLifecycleCommand?iwH(X.adLifecycleCommand):!1})}; iwH=function(D){return D.action==="END_LINEAR_AD"||D.action==="END_LINEAR_AD_PLACEMENT"}; Ld=function(D,X,M,Q,h,H){Wr.call(this,D,{L:"div",C:"ytp-ad-skip-ad-slot"},"skip-ad",X,M,Q,h);this.R5=H;this.U=!1;this.D=0;this.Y=this.G=null;this.hide()}; C2_=function(D,X){D.U||(D.U=!0,D.G&&(X?D.G.R5.hide():D.G.hide()),X?(D=D.Y,D.o5.show(),D.show()):D.Y.show())}; sc=function(D,X,M,Q){nO.call(this,D,X,M,Q,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Kd=function(D,X,M,Q,h,H,t){H=H===void 0?!1:H;t=t===void 0?!1:t;tU.call(this,D,{L:"span",C:"ytp-ad-simple-ad-badge"},"simple-ad-badge",X,M,Q);this.Y=h;this.S=this.h$("ytp-ad-simple-ad-badge");(this.G=H)&&this.S.classList.add("ytp-ad-simple-ad-badge--clean-player");t&&this.S.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; aW=function(D,X,M,Q,h){h=h===void 0?!1:h;jM.call(this,"player-overlay",D,{},X,Q);this.videoAdDurationSeconds=M;this.interactionLoggingClientData=Q;this.Tq=h}; FO=function(D,X){g.Dq.call(this);this.api=D;this.durationMs=X;this.S=null;this.handler=new b2(this);g.p(this,this.handler);this.G=OwR;this.handler.N(this.api,"presentingplayerstatechange",this.Xs);this.S=this.handler.N(this.api,"onAdPlaybackProgress",this.Ja)}; V8=function(D){g.Dq.call(this);this.S=!1;this.GC=0;this.handler=new b2(this);g.p(this,this.handler);this.durationMs=D;this.timer=new g.I7(100);g.p(this,this.timer);this.handler.N(this.timer,"tick",this.Ja);this.G={seekableStart:0,seekableEnd:D/1E3,current:0};this.start()}; g.$u=function(D,X){var M=Math.abs(Math.floor(D)),Q=Math.floor(M/86400),h=Math.floor(M%86400/3600),H=Math.floor(M%3600/60);M=Math.floor(M%60);if(X){X="";Q>0&&(X+=" "+Q+" d\u00edas");if(Q>0||h>0)X+=" "+h+" horas";X+=" "+H+" minutos";X+=" "+M+" segundos";Q=X.trim()}else{X="";Q>0&&(X+=Q+":",h<10&&(X+="0"));if(Q>0||h>0)X+=h+":",H<10&&(X+="0");X+=H+":";M<10&&(X+="0");Q=X+M}return D>=0?Q:"-"+Q}; g.Bb=function(D){return(!("button"in D)||typeof D.button!=="number"||D.button===0)&&!("shiftKey"in D&&D.shiftKey)&&!("altKey"in D&&D.altKey)&&!("metaKey"in D&&D.metaKey)&&!("ctrlKey"in D&&D.ctrlKey)}; Uc=function(D,X,M,Q,h,H,t){Wr.call(this,D,{L:"span",C:t?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",X,M,Q,h);this.videoAdDurationSeconds=H;this.G=null;t&&this.api.W().G&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),lD&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; cb=function(D,X,M,Q){JU.call(this,D,X,M,Q,"ytp-video-ad-top-bar-title","ad-title")}; fd=function(D){this.content=D.content;if(D.commandRuns){D=g.e(D.commandRuns);for(var X=D.next();!X.done;X=D.next())X=X.value,this.loggingDirectives=g.Z(X,pJp),X.onTap&&(this.interaction={onTap:X.onTap})}}; SU=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ad-simple-attributed-string"},"ad-simple-attributed-string",X,M,Q);this.hide()}; Ec=function(D,X,M,Q,h){tU.call(this,D,{L:"span",C:h?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",X,M,Q);this.G=h;this.adBadgeText=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);this.adBadgeText.rC(this.element);g.p(this,this.adBadgeText);h?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),lD&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; y8=function(D,X,M,Q){tU.call(this,D,{L:"span",C:"ytp-ad-pod-index"},"ad-pod-index",X,M,Q);this.api.W().G&&(this.element.classList.add("ytp-ad-pod-index--mweb"),lD&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; Pb=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",X,M,Q);this.hide()}; mM=function(D,X){this.G=D;this.S=X}; Arp=function(D,X){return D.G+X*(D.S-D.G)}; nd=function(D,X,M){return D.S-D.G?g.XT((X-D.G)/(D.S-D.G),0,1):M!=null?M:Infinity}; bd=function(D,X,M,Q){Q=Q===void 0?!1:Q;g.Hr.call(this,{L:"div",C:"ytp-ad-persistent-progress-bar-container",V:[{L:"div",C:"ytp-ad-persistent-progress-bar"}]});this.api=D;this.G=X;this.Y=M;Q&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.p(this,this.G);this.progressBar=this.h$("ytp-ad-persistent-progress-bar");this.S=-1;this.N(D,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; eU=function(D,X,M,Q,h,H){tU.call(this,D,{L:"div",C:"ytp-ad-player-overlay",V:[{L:"div",C:"ytp-ad-player-overlay-flyout-cta"},{L:"div",C:"ytp-ad-player-overlay-instream-info"},{L:"div",C:"ytp-ad-player-overlay-skip-or-preview"},{L:"div",C:"ytp-ad-player-overlay-progress-bar"},{L:"div",C:"ytp-ad-player-overlay-instream-user-sentiment"},{L:"div",C:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",X,M,Q);this.K=H;this.D=this.h$("ytp-ad-player-overlay-flyout-cta");this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.S=this.h$("ytp-ad-player-overlay-instream-info");this.U=null;Y02(this)&&(D=PD("div"),g.hN(D,"ytp-ad-player-overlay-top-bar-gradients"),X=this.S,X.parentNode&&X.parentNode.insertBefore(D,X),(X=this.api.getVideoData(2))&&X.isListed&&X.title&&(M=new cb(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),M.rC(D),M.init(uC("ad-title"),{text:X.title},this.macros),g.p(this,M)),this.U=D);this.Y=null;this.yf=this.h$("ytp-ad-player-overlay-skip-or-preview");this.uj=this.h$("ytp-ad-player-overlay-progress-bar"); this.L$=this.h$("ytp-ad-player-overlay-instream-user-sentiment");this.R5=this.h$("ytp-ad-player-overlay-ad-disclosure-banner");this.G=h;g.p(this,this.G);this.hide()}; Y02=function(D){D=D.api.W();return g.RW(D)&&D.G}; g.IW=function(D){D&=16777215;var X=[(D&16711680)>>16,(D&65280)>>8,D&255];D=X[0];var M=X[1];X=X[2];D=Number(D);M=Number(M);X=Number(X);if(D!=(D&255)||M!=(M&255)||X!=(X&255))throw Error('"('+D+","+M+","+X+'") is not a valid RGB color');M=D<<16|M<<8|X;return D<16?"#"+(16777216|M).toString(16).slice(1):"#"+M.toString(16)}; g.gm=function(){}; Jrm=function(D){var X=new a3;var M=new Km;M=uY(M,1,"botguard");D=uY(M,2,D);this.S=j61(X,Km,1,lxs,D)}; vb=function(D){this.S=new mZ(D)}; xBn=function(){var D=!1;try{D=!!window.sessionStorage.getItem("session_logininfo")}catch(X){D=!0}return(g.zZ("INNERTUBE_CLIENT_NAME")==="WEB"||g.zZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&D}; dm=function(){var D=D===void 0?!0:D;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");GZ("LOGIN_INFO","");D&&window.sessionStorage.setItem("from_switch_account","1");D=!0;D=D===void 0?!1:D;var X,M=WI9;M||(M=document.querySelector("#persist_identity"));if(X=M){var Q=X.src?(new URL(X.src)).origin:"*";if(D){var h;(h=X.contentWindow)==null||h.postMessage({action:"clear"},Q)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var H=window.sessionStorage.getItem("session_logininfo");if(H){var t;(t=X.contentWindow)==null||t.postMessage({loginInfo:H},Q)}}}}catch(q){}}; rm=function(D){D&&(D.startsWith("https://accounts.google.com/AddSession")?dm():D.startsWith("https://accounts.google.com/ServiceLogin")?dm():D.startsWith("https://myaccount.google.com")&&g.Ps(D).G.endsWith("/youtubeoptions")&&dm());if(g.zZ("LOGGED_IN",!0)&&xBn()){var X=g.zZ("VALID_SESSION_TEMPDATA_DOMAINS",[]);var M=g.cR(window.location.href);M&&X.push(M);M=g.cR(D);g.jb(X,M)||!M&&zC(D,"/")?(X=Sj(D),(X=qO5(X))?(X=Nc9(X),X=(X=g.oy(X)||null)?dR(X):{}):X=null):X=null;X==null&&(X={});M=X;var Q=void 0; xBn()?(Q||(Q=g.zZ("LOGIN_INFO")),Q?(M.session_logininfo=Q,M=!0):M=!1):M=!1;M&&B3(D,X)}}; g.Gj_=function(D){var X=X===void 0?{}:X;var M=M===void 0?"":M;var Q=Q===void 0?window:Q;D=g.nJ(D,X);rm(D);M=g.Eo(D+M);Q=Q.location;M=ym(M);M!==void 0&&(Q.href=M)}; g.id=function(D,X,M){X=X===void 0?{}:X;M=M===void 0?!1:M;var Q=g.zZ("EVENT_ID");Q&&(X.ei||(X.ei=Q));X&&B3(D,X);M||(rm(D),g.Gj_(D))}; g.oW=function(D,X,M,Q,h){h=h===void 0?!1:h;M&&B3(D,M);M=g.Eo(D);var H=g.cH(M);D!=H&&Xc(Error("Unsafe window.open URL: "+D));D=H;X=X||xZ(D).toString(36);try{if(h)return h=D,h=rN1(h),rm(h),g.R6(window,h,X,"attributionsrc")}catch(t){g.jL(t)}rm(D);return g.R6(window,M,X,Q)}; z72=function(D){Cd=D}; kj9=function(D){Oc=D}; uPR=function(D){pd=D}; DXW=function(){jHd=pd=Oc=Cd=null}; M0_=function(){var D=D===void 0?window.location.href:D;if(g.cX("kevlar_disable_theme_param"))return null;var X=fJ(D);if(g.cX("enable_dark_theme_only_on_shorts")&&X!=null&&X.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var M=g.HX(D).theme;return Xc9.get(M)||null}catch(Q){}return null}; Aq=function(){this.S={};if(this.G=Jis()){var D=g.oy("CONSISTENCY");D&&Qhm(this,{encryptedTokenJarContents:D})}}; Qhm=function(D,X){if(X.encryptedTokenJarContents&&(D.S[X.encryptedTokenJarContents]=X,typeof X.expirationSeconds==="string")){var M=Number(X.expirationSeconds);setTimeout(function(){delete D.S[X.encryptedTokenJarContents]},M*1E3); D.G&&g.iE("CONSISTENCY",X.encryptedTokenJarContents,M,void 0,!0)}}; ld=function(){this.G=-1;var D=g.zZ("LOCATION_PLAYABILITY_TOKEN");g.zZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Yu(this))&&(D=this.localStorage.get("yt-location-playability-token"));D&&(this.locationPlayabilityToken=D,this.S=void 0)}; Yu=function(D){return D.localStorage===void 0?new Xq("yt-client-location"):D.localStorage}; g.Jq=function(D,X,M){X=X===void 0?!1:X;M=M===void 0?!1:M;var Q=g.zZ("INNERTUBE_CONTEXT");if(!Q)return g.ET(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};Q=g.dS(Q);g.cX("web_no_tracking_params_in_shell_killswitch")||delete Q.clickTracking;Q.client||(Q.client={});var h=Q.client;h.clientName==="MWEB"&&h.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(h.clientFormFactor=g.zZ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints= window.innerHeight;h.screenPixelDensity=Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var H=H===void 0?!1:H;var t=g.O0(),q="USER_INTERFACE_THEME_LIGHT";t.xl(165)?q="USER_INTERFACE_THEME_DARK":t.xl(174)?q="USER_INTERFACE_THEME_LIGHT":!g.cX("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (q="USER_INTERFACE_THEME_DARK");H=H?q:M0_()||q;h.userInterfaceTheme=H;if(!X){if(H=eps())h.connectionType=H;g.cX("web_log_effective_connection_type")&&(H=Iw1())&&(Q.client.effectiveConnectionType=H)}var w;if(g.cX("web_log_memory_total_kbytes")&&((w=g.E8.navigator)==null?0:w.deviceMemory)){var T;w=(T=g.E8.navigator)==null?void 0:T.deviceMemory;Q.client.memoryTotalKbytes=""+w*1E6}g.cX("web_gcf_hashes_innertube")&&(H=om9())&&(T=H.coldConfigData,w=H.coldHashData,H=H.hotHashData,Q.client.configInfo=Q.client.configInfo|| {},T&&(Q.client.configInfo.coldConfigData=T),w&&(Q.client.configInfo.coldHashData=w),H&&(Q.client.configInfo.hotHashData=H));T=g.HX(g.E8.location.href);!g.cX("web_populate_internal_geo_killswitch")&&T.internalcountrycode&&(h.internalGeo=T.internalcountrycode);h.clientName==="MWEB"||h.clientName==="WEB"?(h.mainAppWebInfo||(h.mainAppWebInfo={}),h.mainAppWebInfo.graftUrl=g.E8.location.href,g.cX("kevlar_woffle")&&Sh2.instance&&(T=Sh2.instance,h.mainAppWebInfo.pwaInstallabilityStatus=!T.S&&T.G?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),h.mainAppWebInfo.webDisplayMode=i2(),h.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):h.clientName==="TVHTML5"&&(!g.cX("web_lr_app_quality_killswitch")&&(T=g.zZ("LIVING_ROOM_APP_QUALITY"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{appQuality:T})),T=g.zZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{certificationScope:T}));if(!g.cX("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var L=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(l){}L=void 0}L&&(h.timeZone=L)}(L=S6())?h.experimentsToken=L:delete h.experimentsToken;L=EZ();Aq.instance||(Aq.instance=new Aq);Q.request=Object.assign({},Q.request,{internalExperimentFlags:L,consistencyTokenJars:EK(Aq.instance.S)});!g.cX("web_prequest_context_killswitch")&&(L=g.zZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Q.request.externalPrequestContext=L);h=g.O0();L=h.xl(58);h=h.get("gsml","");Q.user=Object.assign({}, Q.user);L&&(Q.user.enableSafetyMode=L);h&&(Q.user.lockedSafetyMode=!0);g.cX("warm_op_csn_cleanup")?M&&(X=g.Va())&&(Q.clientScreenNonce=X):!X&&(X=g.Va())&&(Q.clientScreenNonce=X);D&&(Q.clickTracking={clickTrackingParams:D});if(D=g.mn("yt.mdx.remote.remoteClient_"))Q.remoteClient=D;ld.getInstance().setLocationOnInnerTubeContext(Q);try{var K=Ka(),a=K.bid;delete K.bid;Q.adSignalsInfo={params:[],bid:a};for(var F=g.e(Object.entries(K)),V=F.next();!V.done;V=F.next()){var c=g.e(V.value),S=c.next().value, b=c.next().value;K=S;a=b;D=void 0;(D=Q.adSignalsInfo.params)==null||D.push({key:K,value:""+a})}var n,R;if(((n=Q.client)==null?void 0:n.clientName)==="TVHTML5"||((R=Q.client)==null?void 0:R.clientName)==="TVHTML5_UNPLUGGED"){var v=g.zZ("INNERTUBE_CONTEXT");v.adSignalsInfo&&(Q.adSignalsInfo.advertisingId=v.adSignalsInfo.advertisingId,Q.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Q.adSignalsInfo.limitAdTracking=v.adSignalsInfo.limitAdTracking)}}catch(l){g.ET(l)}return Q}; t0H=function(D,X){if(!D)return!1;var M,Q=(M=g.Z(D,hKR))==null?void 0:M.signal;if(Q&&X.wq)return!!X.wq[Q];var h;if((M=(h=g.Z(D,Him))==null?void 0:h.request)&&X.rf)return!!X.rf[M];for(var H in D)if(X.hs[H])return!0;return!1}; Nv_=function(D){var X={"Content-Type":"application/json"};g.zZ("EOM_VISITOR_DATA")?X["X-Goog-EOM-Visitor-Id"]=g.zZ("EOM_VISITOR_DATA"):g.zZ("VISITOR_DATA")&&(X["X-Goog-Visitor-Id"]=g.zZ("VISITOR_DATA"));X["X-Youtube-Bootstrap-Logged-In"]=g.zZ("LOGGED_IN",!1);g.zZ("DEBUG_SETTINGS_METADATA")&&(X["X-Debug-Settings-Metadata"]=g.zZ("DEBUG_SETTINGS_METADATA"));D!=="cors"&&((D=g.zZ("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(X["X-Youtube-Client-Name"]=D),(D=g.zZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(X["X-Youtube-Client-Version"]= D),(D=g.zZ("CHROME_CONNECTED_HEADER"))&&(X["X-Youtube-Chrome-Connected"]=D),(D=g.zZ("DOMAIN_ADMIN_STATE"))&&(X["X-Youtube-Domain-Admin-State"]=D));(D=g.zZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(X["X-YouTube-Lava-Device-Context"]=D);return X}; qln=function(){this.S={}}; xu=function(){this.mappings=new qln}; Wb=function(D){return function(){return new D}}; Tv1=function(D){var X=X===void 0?"UNKNOWN_INTERFACE":X;if(D.length===1)return D[0];var M=wci[X];if(M){M=new RegExp(M);for(var Q=g.e(D),h=Q.next();!h.done;h=Q.next())if(h=h.value,M.exec(h))return h}var H=[];Object.entries(wci).forEach(function(t){var q=g.e(t);t=q.next().value;q=q.next().value;X!==t&&H.push(q)}); M=new RegExp(H.join("|"));D.sort(function(t,q){return t.length-q.length}); Q=g.e(D);for(h=Q.next();!h.done;h=Q.next())if(h=h.value,!M.exec(h))return h;return D[0]}; g.Gq=function(D){return"/youtubei/v1/"+Tv1(D)}; zq=function(){}; ku=function(){}; ud=function(){}; jU=function(D){return g.mn("ytcsi."+(D||"")+"data_")||Ltm(D)}; shs=function(){var D=jU();D.info||(D.info={});return D.info}; DB=function(D){D=jU(D);D.metadata||(D.metadata={});return D.metadata}; Xb=function(D){D=jU(D);D.tick||(D.tick={});return D.tick}; Md=function(D){D=jU(D);if(D.gel){var X=D.gel;X.gelInfos||(X.gelInfos={});X.gelTicks||(X.gelTicks={})}else D.gel={gelTicks:{},gelInfos:{}};return D.gel}; Kt1=function(D){D=Md(D);D.gelInfos||(D.gelInfos={});return D.gelInfos}; QO=function(D){var X=jU(D).nonce;X||(X=g.sB(16),jU(D).nonce=X);return X}; Ltm=function(D){var X={tick:{},info:{}};g.PZ("ytcsi."+(D||"")+"data_",X);return X}; hv=function(){var D=g.mn("ytcsi.debug");D||(D=[],g.PZ("ytcsi.debug",D),g.PZ("ytcsi.reference",{}));return D}; Hz=function(D){D=D||"";var X=abH();if(X[D])return X[D];var M=hv(),Q={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};M.push(Q);return X[D]=Q}; Ftn=function(D){D=D||"";var X=abH();X[D]&&delete X[D];var M=hv(),Q={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};M.push(Q);X[D]=Q}; abH=function(){var D=g.mn("ytcsi.reference");if(D)return D;hv();return g.mn("ytcsi.reference")}; tv=function(D){return V02[D]||"LATENCY_ACTION_UNKNOWN"}; Nd=function(D,X){LW.call(this,1,arguments);this.timer=X}; qd=function(){this.S=0}; wl=function(){qd.instance||(qd.instance=new qd);return qd.instance}; LX=function(D,X){TJ[X]=TJ[X]||{count:0};var M=TJ[X];M.count++;M.time=(0,g.fi)();D.S||(D.S=g.zj(0,function(){var Q=(0,g.fi)(),h;for(h in TJ)TJ[h]&&Q-TJ[h].time>6E4&&delete TJ[h];D&&(D.S=0)},5E3)); return M.count>5?(M.count===6&&Math.random()*1E5<1&&(M=new g.ys("CSI data exceeded logging limit with key",X.split("_")),X.indexOf("plev")>=0||g.P3(M)),!0):!1}; var NR_=function(){return Vs[N[15]](this,4)}; $X_=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Bvo=function(){var D;if(g.cX("csi_use_performance_navigation_timing")){var X,M,Q,h=sg==null?void 0:(D=sg.getEntriesByType)==null?void 0:(X=D.call(sg,"navigation"))==null?void 0:(M=X[0])==null?void 0:(Q=M.toJSON)==null?void 0:Q.call(M);h?(h.requestStart=KX(h.requestStart),h.responseEnd=KX(h.responseEnd),h.redirectStart=KX(h.redirectStart),h.redirectEnd=KX(h.redirectEnd),h.domainLookupEnd=KX(h.domainLookupEnd),h.connectStart=KX(h.connectStart),h.connectEnd=KX(h.connectEnd),h.responseStart=KX(h.responseStart), h.secureConnectionStart=KX(h.secureConnectionStart),h.domainLookupStart=KX(h.domainLookupStart),h.isPerformanceNavigationTiming=!0,D=h):D=sg.timing}else D=g.cX("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(sg.timing)):sg.timing;return D}; KX=function(D){return Math.round(aQ()+D)}; aQ=function(){return(g.cX("csi_use_time_origin")||g.cX("csi_use_time_origin_tvhtml5"))&&sg.timeOrigin?Math.floor(sg.timeOrigin):sg.timing.navigationStart}; VO=function(D,X){Fb("_start",D,X)}; $U=function(D,X){if(!g.cX("web_csi_action_sampling_enabled")||!jU(X).actionDisabled){var M=Hz(X||"");H1(M.info,D);D.loadType&&(M=D.loadType,DB(X).loadType=M);H1(Kt1(X),D);M=QO(X);X=jU(X).cttAuthInfo;wl().info(D,M,X)}}; Zi1=function(){var D,X,M,Q;return((Q=SP().resolve(new B1(ts))==null?void 0:(D=N$())==null?void 0:(X=D.loggingHotConfig)==null?void 0:(M=X.csiConfig)==null?void 0:M.debugTicks)!=null?Q:[]).map(function(h){return Object.values(h)[0]})}; Fb=function(D,X,M){if(!g.cX("web_csi_action_sampling_enabled")||!jU(M).actionDisabled){var Q=QO(M),h;if(h=g.cX("web_csi_debug_sample_enabled")&&Q){(SP().resolve(new B1(ts))==null?0:N$())&&!UXs&&(UXs=!0,Fb("gcfl",(0,g.fi)(),M));var H,t,q;h=(SP().resolve(new B1(ts))==null?void 0:(H=N$())==null?void 0:(t=H.loggingHotConfig)==null?void 0:(q=t.csiConfig)==null?void 0:q.debugSampleWeight)||0;if(H=h!==0)b:{H=Zi1();if(H.length>0)for(t=0;tM.duration?Q:M},{duration:0}))&&X.startTime>0&&X.responseEnd>0&&(Fb("wffs",KX(X.startTime)),Fb("wffe",KX(X.responseEnd)))}; mXp=function(D,X,M){sg&&sg.measure&&(D.startsWith("measure_")||(D="measure_"+D),M?sg.measure(D,X,M):X?sg.measure(D,X):sg.measure(D))}; n9m=function(D){var X=Bz("aft",D);if(X)return X;X=g.zZ((D||"")+"TIMING_AFT_KEYS",["ol"]);for(var M=X.length,Q=0;Q0&&$U(X);X={isNavigation:!0,actionType:tv(g.zZ("TIMING_ACTION"))};var M=g.zZ("PREVIOUS_ACTION");M&&(X.previousAction=tv(M));if(M=g.zZ("CLIENT_PROTOCOL"))X.httpProtocol=M;if(M=g.zZ("CLIENT_TRANSPORT"))X.transportProtocol=M;(M=g.Va())&&M!=="UNDEFINED_CSN"&&(X.clientScreenNonce=M);M=Sl9();if(M===1||M===-1)X.isVisible= !0;M=DB().loadType==="cold";var Q=shs();M||(M=Q.yt_lt==="cold");if(M){X.loadType="cold";M=shs();Q=Bvo();var h=aQ(),H=g.zZ("CSI_START_TIMESTAMP_MILLIS",0);H>0&&!g.cX("embeds_web_enable_csi_start_override_killswitch")&&(h=H);h&&(Fb("srt",Q.responseStart),M.prerender!==1&&VO(h));M=RKm();M>0&&Fb("fpt",M);M=Bvo();M.isPerformanceNavigationTiming&&$U({performanceNavigationTiming:!0},void 0);Fb("nreqs",M.requestStart,void 0);Fb("nress",M.responseStart,void 0);Fb("nrese",M.responseEnd,void 0);M.redirectEnd- M.redirectStart>0&&(Fb("nrs",M.redirectStart,void 0),Fb("nre",M.redirectEnd,void 0));M.domainLookupEnd-M.domainLookupStart>0&&(Fb("ndnss",M.domainLookupStart,void 0),Fb("ndnse",M.domainLookupEnd,void 0));M.connectEnd-M.connectStart>0&&(Fb("ntcps",M.connectStart,void 0),Fb("ntcpe",M.connectEnd,void 0));M.secureConnectionStart>=aQ()&&M.connectEnd-M.secureConnectionStart>0&&(Fb("nstcps",M.secureConnectionStart,void 0),Fb("ntcpe",M.connectEnd,void 0));sg&&"getEntriesByType"in sg&&PD5();M=[];if(document.querySelector&& sg&&sg.getEntriesByName)for(var t in cz)cz.hasOwnProperty(t)&&(Q=cz[t],ygm(t,Q)&&M.push(Q));if(M.length>0)for(X.resourceInfo=[],t=g.e(M),M=t.next();!M.done;M=t.next())X.resourceInfo.push({resourceCache:M.value})}$U(X);X=Md();X.preLoggedGelInfos||(X.preLoggedGelInfos=[]);t=X.preLoggedGelInfos;X=Kt1();M=void 0;for(Q=0;Q-1&&(delete Jd["@type"],Lo=Jd);R&&D.G.has(R)&&D.G.delete(R);((zy=X.config)==null?0:zy.ZF$)&&SQ(X.config.ZF$);if(Lo||(Ra=D.Y)==null||!Ra.OZf(X.input,X.dL)){$B.D4(18);break}return g.I($B,D.Y.Kp$(X.input,X.dL),19);case 19:Lo= $B.G;case 18:return IQ(D,Lo,X),((m=X.config)==null?0:m.g5F)&&SQ(X.config.g5F),Q(),$B.return(Lo||void 0)}})}; lbH=function(D,X){a:{D=D.vF;var M,Q=(M=g.Z(X,hKR))==null?void 0:M.signal;if(Q&&D.wq&&(M=D.wq[Q])){var h=M();break a}var H;if((M=(H=g.Z(X,Him))==null?void 0:H.request)&&D.rf&&(H=D.rf[M])){h=H();break a}for(h in X)if(D.hs[h]&&(X=D.hs[h])){h=X();break a}h=void 0}if(h!==void 0)return Promise.resolve(h)}; xXi=function(D,X,M){var Q,h,H,t,q,w,T;return g.r(function(L){if(L.S==1){H=((Q=X)==null?void 0:(h=Q.XM)==null?void 0:h.identity)||Tz;w=(t=X)==null?void 0:(q=t.XM)==null?void 0:q.sessionIndex;var K=g.m$(D.S.CU(H,{sessionIndex:w}));return g.I(L,K,2)}T=L.G;return L.return(Promise.resolve(Object.assign({},Nv_(M),T)))})}; Jgm=function(D,X,M){var Q,h=(X==null?void 0:(Q=X.XM)==null?void 0:Q.identity)||Tz,H;X=X==null?void 0:(H=X.XM)==null?void 0:H.sessionIndex;D=D.S.CU(h,{sessionIndex:X});return Object.assign({},Nv_(M),D)}; gl=function(){}; vz=function(){}; dl=function(D){this.X=D}; rl=function(){}; im=function(){}; oQ=function(){}; CX=function(){}; g.Og=function(D,X){var M=g.BZ.apply(2,arguments);D=D===void 0?0:D;g.ys.call(this,X,M);this.errorType=D;Object.setPrototypeOf(this,this.constructor.prototype)}; pX=function(D){this.S=D}; khH=function(D,X,M){if(D.S){var Q=fJ(gi(X,"key"))||"/UNKNOWN_PATH";D.S.start(Q)}D=M;g.cX("wug_networking_gzip_request")&&(D=FZ_(M));return new window.Request(X,D)}; g.YU=function(D,X){if(!Av){var M=SP();Zm(M,{QU:uqo,ez:pX});var Q={hs:{feedbackEndpoint:Wb(rl),modifyChannelNotificationPreferenceEndpoint:Wb(im),playlistEditEndpoint:Wb(oQ),shareEntityEndpoint:Wb(dl),subscribeEndpoint:Wb(gl),unsubscribeEndpoint:Wb(vz),webPlayerShareEntityServiceEndpoint:Wb(CX)}},h=ld.getInstance(),H={};h&&(H.client_location=h);D===void 0&&(D=Ep9());X===void 0&&(X=M.resolve(uqo));Ylm(Q,X,D,H);Zm(M,{QU:jh9,hm:bm.instance});Av=M.resolve(jh9)}return Av}; D$R=function(D){var X=new N6;if(D.interpreterJavascript){var M=L$W(D.interpreterJavascript);M=vH(M).toString();var Q=new Hg;uY(Q,6,M);pQ(X,Hg,1,Q,qv)}else D.interpreterUrl&&(M=m2(D.interpreterUrl),M=BH(M).toString(),Q=new tp,uY(Q,4,M),pQ(X,tp,2,Q,qv));D.interpreterHash&&jF(X,3,D.interpreterHash,qv);D.program&&jF(X,4,D.program,qv);D.globalName&&jF(X,5,D.globalName,qv);D.clientExperimentsStateBlob&&jF(X,7,D.clientExperimentsStateBlob,qv);return X}; lm=function(D){var X={};D=D.split("&");D=g.e(D);for(var M=D.next();!M.done;M=D.next())M=M.value.split("="),M.length===2&&(X[M[0]]=M[1]);return X}; XOp=function(){var D=D===void 0?window:D;var X,M;return g.r(function(Q){if(Q.S==1)return g.I(Q,QE(),2);X=D;M=X.bgevmc;if(!M)throw Error("BGE Controls not exposed");return Q.return({pause:function(){M.p()}, resume:function(){M.r()}, checkForRefresh:function(){return M.cr()}})})}; jGs=function(){if(g.cX("bg_st_hr"))return"havuokmhhs-0";var D,X=((D=globalThis.performance)==null?void 0:D.timeOrigin)||0;return"havuokmhhs-"+Math.floor(X)}; Jv=function(D){window.bgens=D}; xU=function(D){this.S=D}; M8m=function(){return new Promise(function(D){var X=window;X.ntpevasrs!==void 0?D(new xU(X.ntpevasrs)):(X.ntpqfbel===void 0&&(X.ntpqfbel=[]),X.ntpqfbel.push(function(M){D(new xU(M))}))})}; HWo=function(){if(hr()){var D=g.zZ("PLAYER_VARS",{});if(g.RM(D,"privembed",!1)!="1"&&!u2s(D)){var X=function(){Wz=!0;"google_ad_status"in window?GZ("DCLKSTAT",1):GZ("DCLKSTAT",2)}; try{g.X4(Qf_,X)}catch(M){}hzs.push(g.Ox.cI(function(){if(!(Wz||"google_ad_status"in window)){try{if(Qf_.toString()&&X){var M=""+g.rK(X),Q=zbR[M];Q&&g.j8(Q)}}catch(h){}Wz=!0;GZ("DCLKSTAT",3)}},5E3))}}}; GJ=function(){var D=Number(g.zZ("DCLKSTAT",0));return isNaN(D)?0:D}; jQ=function(D,X,M){var Q=this;this.network=D;this.options=X;this.G=M;this.S=null;if(X.B$j){var h=new g.wh;this.S=h.promise;g.E8.ytAtRC&&Gj(function(){var H,t;return g.r(function(q){if(q.S==1){if(!g.E8.ytAtRC)return q.return();H=zJ(null);return g.I(q,kU(Q,H),2)}t=q.G;g.E8.ytAtRC&&g.E8.ytAtRC(JSON.stringify(t));g.HZ(q)})},2); M8m().then(function(H){var t,q,w,T;return g.r(function(L){if(L.S==1)return H.bindInnertubeChallengeFetcher(function(K){return kU(Q,zJ(K))}),g.I(L,QE(),2); t=L.G;q=H.getLatestChallengeResponse();w=q.challenge;if(!w)throw Error("BGE_MACIL");T={challenge:w,A_:lm(w),oz:t,bgChallenge:new N6};h.resolve(T);H.registerChallengeFetchedCallback(function(K){K=K.challenge;if(!K)throw Error("BGE_MACR");K={challenge:K,A_:lm(K),oz:t,bgChallenge:new N6};Q.S=Promise.resolve(K)}); g.HZ(L)})})}else X.preload&&t8n(this,new Promise(function(H){g.zj(0,function(){H(um(Q))},0)}))}; zJ=function(D){var X={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};D&&(X.interpreterHash=D);return X}; um=function(D,X){X=X===void 0?0:X;var M,Q,h,H,t,q,w,T,L,K,a,F;return g.r(function(V){switch(V.S){case 1:M=zJ(sh().S);if(g.cX("att_fet_ks"))return g.N_(V,7),g.I(V,kU(D,M),9);g.N_(V,4);return g.I(V,Nfd(D,M),6);case 6:t=V.G;h=t.lW$;H=t.W32;Q=t;g.Ty(V,3);break;case 4:return g.LG(V),g.P3(Error("Failed to fetch attestation challenge after "+(X+" attempts; not retrying for 24h."))),Df(D,864E5),V.return({challenge:"",A_:{},oz:void 0,bgChallenge:void 0});case 9:Q=V.G;if(!Q)throw Error("Fetching Attestation challenge returned falsy"); if(!Q.challenge)throw Error("Missing Attestation challenge");h=Q.challenge;H=lm(h);if("c1a"in H&&(!Q.bgChallenge||!Q.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ty(V,3);break;case 7:q=g.LG(V);g.P3(q);X++;if(X>=5)return g.P3(Error("Failed to fetch attestation challenge after "+(X+" attempts; not retrying for 24h."))),Df(D,864E5),V.return({challenge:"",A_:{},oz:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,X-1)+Math.random()*1E3;return V.return(new Promise(function(c){g.zj(0, function(){c(um(D,X))},w)})); case 3:T=Number(H.t)||7200;Df(D,T*1E3);L=void 0;if(!("c1a"in H&&Q.bgChallenge)){V.D4(10);break}K=D$R(Q.bgChallenge);g.N_(V,11);return g.I(V,kEd(sh(),K),13);case 13:g.Ty(V,12);break;case 11:return a=g.LG(V),g.P3(a),V.return({challenge:h,A_:H,oz:L,bgChallenge:K});case 12:return g.N_(V,14),L=new TO({challenge:K,D_:{WI:"aGIf"}}),g.I(V,L.E8,16);case 16:g.Ty(V,10);break;case 14:F=g.LG(V),g.P3(F),L=void 0;case 10:return V.return({challenge:h,A_:H,oz:L,bgChallenge:K})}})}; q61=function(D,X){var M;return g.r(function(Q){if(Q.S==1)return Jv(2),g.N_(Q,2),g.I(Q,kU(D.network,X),4);if(Q.S!=2)return(M=Q.G)?M.challenge&&!M.bgChallenge?Jv(1):Jv(4):Jv(3),Q.return(M);g.LG(Q);Jv(3);return Q.return(void 0)})}; kU=function(D,X){var M;return g.r(function(Q){M=D.G;if(!M||M.Yh())return Q.return(q61(D,X));nX("att_pna",void 0,"attestation_challenge_fetch");return Q.return(new Promise(function(h){M.Kq("publicytnetworkstatus-online",function(){q61(D,X).then(h)})}))})}; wOs=function(D){if(!D)throw Error("Fetching Attestation challenge returned falsy");if(!D.challenge)throw Error("Missing Attestation challenge");var X=D.challenge,M=lm(X);if("c1a"in M&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},D,{lW$:X,W32:M})}; Nfd=function(D,X){var M,Q,h,H,t;return g.r(function(q){switch(q.S){case 1:M=void 0,Q=0,h={};case 2:if(!(Q<5)){q.D4(4);break}if(!(Q>0)){q.D4(5);break}h.Hw=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return g.I(q,new Promise(function(w){return function(T){g.zj(0,function(){T(void 0)},w.Hw)}}(h)),5); case 5:return g.N_(q,7),g.I(q,kU(D,X),9);case 9:return H=q.G,q.return(wOs(H));case 7:M=t=g.LG(q),t instanceof Error&&g.P3(t);case 8:Q++;h={Hw:void 0};q.D4(2);break;case 4:throw M;}})}; t8n=function(D,X){D.S=X}; Tfi=function(D){var X,M,Q;return g.r(function(h){if(h.S==1)return g.I(h,Promise.race([D.S,null]),2);X=h.G;var H=um(D);D.S=H;(M=X)==null||(Q=M.oz)==null||Q.dispose();g.HZ(h)})}; Df=function(D,X){function M(){var h;return g.r(function(H){h=Q-Date.now();return h<1E3?g.I(H,Tfi(D),0):(Gj(M,0,Math.min(h,6E4)),H.D4(0))})} var Q=Date.now()+X;M()}; LlW=function(D,X){return new Promise(function(M){g.zj(0,function(){M(X())},D)})}; sfW=function(){return new Promise(function(D){var X=window;X.attmp!==void 0?D(X.attmp):(X.attmq===void 0&&(X.attmq=[]),X.attmq.push(function(M){D(M)}))})}; g.Kld=function(D,X){var M,Q;return g.r(function(h){if(h.S==1)return g.cX("attmusi")&&g.cX("attmusi_ue")?g.I(h,sfW(),3):h.D4(2);if(h.S!=2)return M=h.G,h.return(M.s("ENGAGEMENT_TYPE_PLAYBACK",D,X));var H=g.mn("yt.aba.att");return(Q=H?H:jQ.instance!==void 0?jQ.instance.Y.bind(jQ.instance):null)?h.return(Q("ENGAGEMENT_TYPE_PLAYBACK",D,X)):h.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.agW=function(){var D,X,M;return g.r(function(Q){if(Q.S==1){if(!g.cX("attmusi")||!g.cX("attmusi_ue"))return Q.D4(2);D=window;return D.attmp===void 0?Q.return(!1):g.I(Q,sfW(),3)}if(Q.S!=2)return X=Q.G,Q.return(X.ir());var h=g.mn("yt.aba.att2");return(M=h?h:jQ.instance!==void 0?jQ.instance.U.bind(jQ.instance):null)?Q.return(M()):Q.return(Promise.resolve(!1))})}; V8H=function(D,X){var M=g.mn("ytDebugData.callbacks");M||(M={},g.PZ("ytDebugData.callbacks",M));if(g.cX("web_dd_iu")||Fl1.includes(D))M[D]=X}; X1=function(){var D=$$W;var X=X===void 0?[]:X;var M=M===void 0?[]:M;X=Hsn.apply(null,[tIo.apply(null,g.xW(X))].concat(g.xW(M)));this.store=qys(D,void 0,X)}; g.MG=function(D,X,M){for(var Q=Object.assign({},D),h=g.e(Object.keys(X)),H=h.next();!H.done;H=h.next()){H=H.value;var t=D[H],q=X[H];if(q===void 0)delete Q[H];else if(t===void 0)Q[H]=q;else if(Array.isArray(q)&&Array.isArray(t))Q[H]=M?[].concat(g.xW(t),g.xW(q)):q;else if(!Array.isArray(q)&&g.gK(q)&&!Array.isArray(t)&&g.gK(t))Q[H]=g.MG(t,q,M);else if(typeof q===typeof t)Q[H]=q;else return X=new g.ys("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:H,QXz:t,updateValue:q}),g.ET(X), D}return Q}; Qi=function(D){var X=this;D=D===void 0?[]:D;this.S=[];this.Y=this.G=0;this.U=void 0;this.totalLength=0;D.forEach(function(M){X.append(M)})}; BfW=function(D,X){return D.S.length===0?!1:(D=D.S[D.S.length-1])&&D.buffer===X.buffer&&D.byteOffset+D.length===X.byteOffset}; hG=function(D,X){X=g.e(X.S);for(var M=X.next();!M.done;M=X.next())D.append(M.value)}; HT=function(D,X,M){return D.split(X).sI.split(M).vQ}; tG=function(D){D.U=void 0;D.G=0;D.Y=0}; NG=function(D,X,M){D.isFocused(X);return X-D.Y+M<=D.S[D.G].length}; ZWH=function(D){if(!D.U){var X=D.S[D.G];D.U=new DataView(X.buffer,X.byteOffset,X.length)}return D.U}; U$2=function(D,X,M){X=X===void 0?0:X;M=M===void 0?-1:M;if(!D.totalLength||!M)return new DataView(new ArrayBuffer(0));M<0&&(M=D.totalLength-X);D.focus(X);if(!NG(D,X,M)){var Q=D.G,h=D.Y;D.focus(X+M-1);h=new Uint8Array(D.Y+D.S[D.G].length-h);for(var H=0,t=Q;t<=D.G;t++)h.set(D.S[t],H),H+=D.S[t].length;D.S.splice(Q,D.G-Q+1,h);tG(D);D.focus(X)}Q=D.S[D.G];return new DataView(Q.buffer,Q.byteOffset+X-D.Y,M)}; qG=function(D,X,M){D=U$2(D,X===void 0?0:X,M===void 0?-1:M);return new Uint8Array(D.buffer,D.byteOffset,D.byteLength)}; wF=function(D,X,M){D=qG(D,X===void 0?0:X,M===void 0?-1:M);X=new Uint8Array(D.length);try{X.set(D)}catch(Q){for(M=0;M>10;H=56320|H&1023}K4[h++]=H}}H=String.fromCharCode.apply(String,K4); h<1024&&(H=H.substring(0,h));M.push(H)}return M.join("")}; Vi=function(D,X){var M;if((M=F1)==null?0:M.encodeInto)return X=F1.encodeInto(D,X),X.read>6|192:((h&64512)===55296&&Q+1>18|240,X[M++]=h>>12&63|128):X[M++]=h>>12|224,X[M++]=h>>6&63|128),X[M++]=h&63|128)}return M}; $$=function(D){if(F1)return F1.encode(D);var X=new Uint8Array(Math.ceil(D.length*1.2)),M=Vi(D,X);X.lengthM&&(X=X.subarray(0,M));return X}; BT=function(D){this.S=D;this.pos=0;this.G=-1}; Zf=function(D){var X=Tg(D.S,D.pos);++D.pos;if(X<128)return X;for(var M=X&127,Q=1;X>=128;)X=Tg(D.S,D.pos),++D.pos,Q*=128,M+=(X&127)*Q;return M}; Uq=function(D,X){var M=D.G;for(D.G=-1;D.pos+1<=D.S.totalLength;){M<0&&(M=Zf(D));var Q=M>>3,h=M&7;if(Q===X)return!0;if(Q>X){D.G=M;break}M=-1;switch(h){case 0:Zf(D);break;case 1:D.pos+=8;break;case 2:Q=Zf(D);D.pos+=Q;break;case 5:D.pos+=4}}return!1}; cT=function(D,X){if(Uq(D,X))return Zf(D)}; S62=function(D,X){if(Uq(D,X))return X=qG(D.S,D.pos,8),D.pos+=8,(new DataView(X.buffer,X.byteOffset,X.byteLength)).getFloat64(0,!0)}; f4=function(D,X){if(Uq(D,X))return!!Zf(D)}; Se=function(D,X){if(Uq(D,X)){X=Zf(D);var M=qG(D.S,D.pos,X);D.pos+=X;return M}}; Eq=function(D,X){if(D=Se(D,X))return g.aL(D)}; yi=function(D,X,M){if(D=Se(D,X))return M(new BT(new Qi([D])))}; PT=function(D,X){for(var M=[];Uq(D,X);)M.push(Zf(D));return M.length?M:void 0}; m6=function(D,X,M){for(var Q=[],h;h=Se(D,X);)Q.push(M(new BT(new Qi([h]))));return Q.length?Q:void 0}; n4=function(D,X){D=D instanceof Uint8Array?new Qi([D]):D;return X(new BT(D))}; Erd=function(D,X){D=new Uint8Array(D);X&&D.set(X);return D}; ys1=function(D){this.pos=0;this.G=[];this.S=Erd(D===void 0?4096:D);this.view=new DataView(this.S.buffer,this.S.byteOffset,this.S.byteLength)}; bl=function(D,X){X=D.pos+X;if(!(D.S.length>=X)){for(var M=D.S.length*2;M268435455){bl(D,4);for(var M=X&1073741823,Q=0;Q<4;Q++)D.view.setUint8(D.pos,M&127|128),M>>=7,D.pos+=1;X=Math.floor(X/268435456)}for(bl(D,4);X>127;)D.view.setUint8(D.pos,X&127|128),X>>=7,D.pos+=1;D.view.setUint8(D.pos,X);D.pos+=1}; RL=function(D,X,M){M!==void 0&&(ee(D,X*8),ee(D,M))}; IL=function(D,X,M){M!==void 0&&RL(D,X,M?1:0)}; gF=function(D,X,M){M!==void 0&&(ee(D,X*8+2),X=M.length,ee(D,X),bl(D,X),D.S.set(M,D.pos),D.pos+=X)}; vT=function(D,X,M){M!==void 0&&(PQR(D,X,Math.ceil(Math.log2(M.length*4+2)/7)),bl(D,M.length*1.2),X=Vi(M,D.S.subarray(D.pos)),D.pos+X>D.S.length&&(bl(D,X),X=Vi(M,D.S.subarray(D.pos))),D.pos+=X,m$H(D))}; PQR=function(D,X,M){M=M===void 0?2:M;ee(D,X*8+2);D.G.push(D.pos);D.G.push(M);D.pos+=M}; m$H=function(D){for(var X=D.G.pop(),M=D.G.pop(),Q=D.pos-M-X;X--;){var h=X?128:0;D.view.setUint8(M++,Q&127|h);Q>>=7}}; dF=function(D,X,M,Q,h){M&&(PQR(D,X,h===void 0?3:h),Q(D,M),m$H(D))}; g.rF=function(D,X){var M=new ys1(4096);X(M,D);return new Uint8Array(M.S.buffer,M.S.byteOffset,M.pos)}; g.il=function(D){var X=new BT(new Qi([p7(decodeURIComponent(D))]));D=Eq(X,2);X=cT(X,4);var M=nri[X];if(typeof M==="undefined")throw D=new g.ys("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:X}),g.ET(D),D;return{CX:X,entityType:M,entityId:D}}; g.oL=function(D,X){var M=M===void 0?0:M;var Q=new ys1;gF(Q,2,$$(D));D=bWs[X];if(typeof D==="undefined")throw M=new g.ys("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:X}),g.ET(M),M;RL(Q,4,D);RL(Q,5,1);X=new Uint8Array(Q.S.buffer,Q.S.byteOffset,Q.pos);return encodeURIComponent(g.C7(X,M))}; C4=function(D,X,M,Q){if(Q===void 0)return Q=Object.assign({},D[X]||{}),M=(delete Q[M],Q),Q={},Object.assign({},D,(Q[X]=M,Q));var h={},H={};return Object.assign({},D,(H[X]=Object.assign({},D[X],(h[M]=Q,h)),H))}; ezm=function(D,X,M,Q,h){var H=D[X];if(H==null||!H[M])return D;Q=g.MG(H[M],Q,h==="REPEATED_FIELDS_MERGE_OPTION_APPEND");h={};H={};return Object.assign({},D,(H[X]=Object.assign({},D[X],(h[M]=Q,h)),H))}; Rzm=function(D,X){D=D===void 0?{}:D;switch(X.type){case "ENTITY_LOADED":return X.payload.reduce(function(Q,h){var H,t=(H=h.options)==null?void 0:H.persistenceOption;if(t&&t!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&t!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Q;if(!h.entityKey)return g.ET(Error("Missing entity key")),Q;if(h.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!h.payload)return h=new g.ys("REPLACE entity mutation is missing a payload",{entityKey:h.entityKey}),g.ET(h),Q;var q=g.Sf(h.payload); return C4(Q,q,h.entityKey,h.payload[q])}if(h.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{h=h.entityKey;try{var w=g.il(h).entityType;q=C4(Q,w,h);break a}catch(K){if(K instanceof Error){h=new g.ys("Failed to deserialize entity key",{entityKey:h,originalMessage:K.message});g.ET(h);q=Q;break a}throw K;}q=void 0}return q}if(h.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!h.payload)return h=new g.ys("UPDATE entity mutation is missing a payload",{entityKey:h.entityKey}),g.ET(h),Q;q=g.Sf(h.payload);var T,L;return ezm(Q, q,h.entityKey,h.payload[q],(T=h.fieldMask)==null?void 0:(L=T.mergeOptions)==null?void 0:L.repeatedFieldsMergeOption)}return Q},D); case "REPLACE_ENTITY":var M=X.payload;return C4(D,M.entityType,M.key,M.OM);case "REPLACE_ENTITIES":return Object.keys(X.payload).reduce(function(Q,h){var H=X.payload[h];return Object.keys(H).reduce(function(t,q){return C4(t,h,q,H[q])},Q)},D); case "UPDATE_ENTITY":return M=X.payload,ezm(D,M.entityType,M.key,M.OM,M.R3s);default:return D}}; Oq=function(D,X,M){return D[X]?D[X][M]||null:null}; p4=function(D){return window.Int32Array?new Int32Array(D):Array(D)}; WT=function(D){g.O.call(this);this.counter=[0,0,0,0];this.G=new Uint8Array(16);this.S=16;if(!Ig_){var X,M=new Uint8Array(256),Q=new Uint8Array(256);var h=1;for(X=0;X<256;X++)M[h]=X,Q[X]=h,h^=h<<1^(h>>7&&283);AG=new Uint8Array(256);Y$=p4(256);ll=p4(256);JG=p4(256);x$=p4(256);for(var H=0;H<256;H++){h=H?Q[255^M[H]]:0;h^=h<<1^h<<2^h<<3^h<<4;h=h&255^h>>>8^99;AG[H]=h;X=h<<1^(h>>7&&283);var t=X^h;Y$[H]=X<<24|h<<16|h<<8|t;ll[H]=t<<24|Y$[H]>>>8;JG[H]=h<<24|ll[H]>>>8;x$[H]=h<<24|JG[H]>>>8}Ig_=!0}h=p4(44);for(M= 0;M<4;M++)h[M]=D[4*M]<<24|D[4*M+1]<<16|D[4*M+2]<<8|D[4*M+3];for(Q=1;M<44;M++)D=h[M-1],M%4||(D=(AG[D>>16&255]^Q)<<24|AG[D>>8&255]<<16|AG[D&255]<<8|AG[D>>>24],Q=Q<<1^(Q>>7&&283)),h[M]=h[M-4]^D;this.key=h}; gri=function(D){for(var X=D.key,M=D.counter[0]^X[0],Q=D.counter[1]^X[1],h=D.counter[2]^X[2],H=D.counter[3]^X[3],t=3;t>=0&&!(D.counter[t]=-~D.counter[t]);t--);for(var q,w,T=4;T<40;)t=Y$[M>>>24]^ll[Q>>16&255]^JG[h>>8&255]^x$[H&255]^X[T++],q=Y$[Q>>>24]^ll[h>>16&255]^JG[H>>8&255]^x$[M&255]^X[T++],w=Y$[h>>>24]^ll[H>>16&255]^JG[M>>8&255]^x$[Q&255]^X[T++],H=Y$[H>>>24]^ll[M>>16&255]^JG[Q>>8&255]^x$[h&255]^X[T++],M=t,Q=q,h=w;D=D.G;t=X[40];D[0]=AG[M>>>24]^t>>>24;D[1]=AG[Q>>16&255]^t>>16&255;D[2]=AG[h>>8&255]^ t>>8&255;D[3]=AG[H&255]^t&255;t=X[41];D[4]=AG[Q>>>24]^t>>>24;D[5]=AG[h>>16&255]^t>>16&255;D[6]=AG[H>>8&255]^t>>8&255;D[7]=AG[M&255]^t&255;t=X[42];D[8]=AG[h>>>24]^t>>>24;D[9]=AG[H>>16&255]^t>>16&255;D[10]=AG[M>>8&255]^t>>8&255;D[11]=AG[Q&255]^t&255;t=X[43];D[12]=AG[H>>>24]^t>>>24;D[13]=AG[M>>16&255]^t>>16&255;D[14]=AG[Q>>8&255]^t>>8&255;D[15]=AG[h&255]^t&255}; k$=function(){if(!Gg&&!g.Jg){if(zg)return zg;var D;zg=(D=window.crypto)==null?void 0:D.subtle;var X,M,Q;if(((X=zg)==null?0:X.importKey)&&((M=zg)==null?0:M.sign)&&((Q=zg)==null?0:Q.encrypt))return zg;zg=void 0}}; g.DU=function(D){var X=k$();X&&(this.S=new ul(D,X));this.G=new g.je(D)}; ul=function(D,X){this.G=D;this.subtleCrypto=X}; vrH=function(D,X,M){var Q,h;return g.r(function(H){switch(H.S){case 1:if(D.S){H.D4(2);break}return g.I(H,D.subtleCrypto.importKey("raw",D.G,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.S=H.G;case 2:return Q={name:"AES-CTR",counter:M,length:128},g.I(H,D.subtleCrypto.encrypt(Q,D.S,X),4);case 4:return h=H.G,H.return(new Uint8Array(h))}})}; g.je=function(D){this.G=D}; XM=function(D){this.D=new Uint8Array(64);this.Y=new Uint8Array(64);this.U=0;this.X=new Uint8Array(64);this.G=0;this.D.set(D);this.Y.set(D);for(D=0;D<64;D++)this.D[D]^=92,this.Y[D]^=54;this.reset()}; d$H=function(D,X,M){for(var Q=D.J,h=D.S[0],H=D.S[1],t=D.S[2],q=D.S[3],w=D.S[4],T=D.S[5],L=D.S[6],K=D.S[7],a,F,V,c=0;c<64;)c<16?(Q[c]=V=X[M]<<24|X[M+1]<<16|X[M+2]<<8|X[M+3],M+=4):(a=Q[c-2],F=Q[c-15],V=Q[c-7]+Q[c-16]+((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),Q[c]=V),a=K+M2[c]+V+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&T^~w&L),F=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&H^h&t^H&t),K=a+F,q+=a,c++,c<16?(Q[c]=V=X[M]<<24|X[M+1]<<16|X[M+2]<<8|X[M+3],M+=4):(a= Q[c-2],F=Q[c-15],V=Q[c-7]+Q[c-16]+((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),Q[c]=V),a=L+M2[c]+V+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&w^~q&T),F=((K>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+(K&h^K&H^h&H),L=a+F,t+=a,c++,c<16?(Q[c]=V=X[M]<<24|X[M+1]<<16|X[M+2]<<8|X[M+3],M+=4):(a=Q[c-2],F=Q[c-15],V=Q[c-7]+Q[c-16]+((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),Q[c]=V),a=T+M2[c]+V+((t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7))+(t&q^ ~t&w),F=((L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10))+(L&K^L&h^K&h),T=a+F,H+=a,c++,c<16?(Q[c]=V=X[M]<<24|X[M+1]<<16|X[M+2]<<8|X[M+3],M+=4):(a=Q[c-2],F=Q[c-15],V=Q[c-7]+Q[c-16]+((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),Q[c]=V),a=w+M2[c]+V+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&t^~H&q),F=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&L^T&K^L&K),V=K,K=q,q=V,V=L,L=t,t=V,V=T,T=H,H=V,w=h+a,h=a+F,c++;D.S[0]=h+D.S[0]|0;D.S[1]=H+D.S[1]|0;D.S[2]=t+D.S[2]|0;D.S[3]= q+D.S[3]|0;D.S[4]=w+D.S[4]|0;D.S[5]=T+D.S[5]|0;D.S[6]=L+D.S[6]|0;D.S[7]=K+D.S[7]|0}; iWH=function(D){var X=new Uint8Array(32),M=64-D.G;D.G>55&&(M+=64);var Q=new Uint8Array(M);Q[0]=128;for(var h=D.U*8,H=1;H<9;H++){var t=h%256;Q[M-H]=t;h=(h-t)/256}D.update(Q);for(M=0;M<8;M++)X[M*4]=D.S[M]>>>24,X[M*4+1]=D.S[M]>>>16&255,X[M*4+2]=D.S[M]>>>8&255,X[M*4+3]=D.S[M]&255;rsm(D);return X}; rsm=function(D){D.S=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];D.J=[];D.J.length=64;D.U=0;D.G=0}; orR=function(D){this.S=D}; CQi=function(D,X,M){D=new XM(D.S);D.update(X);D.update(M);X=iWH(D);D.update(D.D);D.update(X);X=iWH(D);D.reset();return X}; OWo=function(D){this.G=D}; pO5=function(D,X,M,Q){var h,H,t;return g.r(function(q){switch(q.S){case 1:if(D.S){q.D4(2);break}return g.I(q,Q.importKey("raw",D.G,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:D.S=q.G;case 2:return h=new Uint8Array(X.length+M.length),h.set(X),h.set(M,X.length),H={name:"HMAC",hash:"SHA-256"},g.I(q,Q.sign(H,D.S,h),4);case 4:return t=q.G,q.return(new Uint8Array(t))}})}; As2=function(D,X,M){D.Y||(D.Y=new orR(D.G));return CQi(D.Y,X,M)}; Y6W=function(D,X,M){var Q,h;return g.r(function(H){if(H.S==1){Q=k$();if(!Q)return H.return(As2(D,X,M));g.N_(H,3);return g.I(H,pO5(D,X,M,Q),5)}if(H.S!=3)return H.return(H.G);h=g.LG(H);g.P3(h);Gg=!0;return H.return(As2(D,X,M))})}; Jss=function(D){for(var X="",M=0;M=0||ej(D,0,"gad_source",D.search(R5))>=0}; Dep=function(){this.S=new Map}; MPm=function(D,X){var M=SP().resolve(X15);if(jfm(X)){var Q=I5(X,"gclid");X={handleEvent:function(q){D&&!D.closed&&typeof D.postMessage==="function"&&q&&q.origin&&q.source===D&&q.data&&q.data.action==="gcl_setup"&&D.postMessage(Object.assign({},{action:"gcl_transfer"},Q&&{gclid:Q},{gadSource:2}),q.origin)}}; for(var h=g.e(M.S),H=h.next();!H.done;H=h.next()){var t=g.e(H.value);H=t.next().value;t=t.next().value;if(H.closed)try{window.removeEventListener("message",t),M.S.delete(H)}catch(q){g.ET(q)}}D&&M.S.size<15&&(M.S.set(D,X),window.addEventListener("message",X))}}; QJ=function(D,X,M){if(!X)return D.length>=1?D[D.length-1]:null;for(var Q=g.e(D),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.width&&h.height&&(M&&h.width>=X||!M&&h.height>=X))return h;for(X=D.length-1;X>=0;X--)if(M&&D[X].width||!M&&D[X].height)return D[X];return D[0]}; hV=function(){this.state=1;this.oz=null;this.mE=void 0}; hop=function(D,X,M,Q,h,H){var t=t===void 0?"trayride":t;M?(D.cC(2),g.X4(g.nB(M),function(){if(window[t])QIH(D,Q,t,h);else{D.cC(3);var q=G2_(M),w=document.getElementById(q);w&&(xEm(q),w.parentNode.removeChild(w));g.P3(new g.ys("BL:ULB",""+M))}},H)):X?(H=g.m7("SCRIPT"),X instanceof gA?(H.textContent=vH(X),dA(H)):H.textContent=X,H.nonce=I6(document),document.head.appendChild(H),document.head.removeChild(H),window[t]?QIH(D,Q,t,h):(D.cC(4),g.P3(new g.ys("BL:ULBJ")))):g.P3(new g.ys("BL:ULV"))}; QIH=function(D,X,M,Q){D.cC(5);var h=!!D.mE&&He2.includes(g.cR(D.mE)||"");try{var H=new TO({program:X,globalName:M,D_:{disable:!g.cX("att_web_record_metrics")||!g.cX("att_skip_metrics_for_cookieless_domains_ks")&&h,WI:"aGIf"}});H.E8.then(function(){D.cC(6);Q&&Q(X)}); D.U6(H)}catch(t){D.cC(7),t instanceof Error&&g.P3(t)}}; Hn=function(){var D=g.mn("yt.abuse.playerAttLoader");return D&&["bgvma","bgvmb","bgvmc"].every(function(X){return X in D})?D:null}; tV=function(){hV.apply(this,arguments)}; N2=function(D){this.GN=D}; tP2=function(D,X,M){for(var Q=!1,h=g.e(D.S0.entries()),H=h.next();!H.done;H=h.next())H=g.e(H.value).next().value,H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.N5==="core"&&(Q=!0);if(Q){a:if(!M){D=g.e(D.S0.entries());for(M=D.next();!M.done;M=D.next())if(Q=g.e(M.value),M=Q.next().value,Q=Q.next().value,M.slotType==="SLOT_TYPE_IN_PLAYER"&&M.N5==="core"){M=Q.layoutId;break a}M=void 0}M?X.Sj(M):Hb("No triggering layout ID available when attempting to mute.")}}; q2=function(D,X){this.jS=D;this.Bv=X}; w0=function(){}; Tb=function(){}; qBd=function(D){g.O.call(this);var X=this;this.lM=D;this.S=new Map;LH(this,"commandExecutorCommand",function(M,Q,h){NXn(X,M.commands,Q,h)}); LH(this,"clickTrackingParams",function(){})}; w1H=function(D,X){LH(D,X.e9(),function(M,Q,h){X.To(M,Q,h)})}; LH=function(D,X,M){D.H2();D.S.get(X)&&g.ET(Error("Extension name "+X+" already registered"));D.S.set(X,M)}; NXn=function(D,X,M,Q){X=X===void 0?[]:X;D.H2();var h=[],H=[];X=g.e(X);for(var t=X.next();!t.done;t=X.next())t=t.value,g.Z(t,TX9)||g.Z(t,LF5)?h.push(t):H.push(t);h=g.e(h);for(X=h.next();!X.done;X=h.next())sd(D,X.value,M,Q);H=g.e(H);for(h=H.next();!h.done;h=H.next())sd(D,h.value,M,Q)}; sd=function(D,X,M,Q){D.H2();X.loggingUrls&&sI9(D,"loggingUrls",X.loggingUrls,M,Q);X=g.e(Object.entries(X));for(var h=X.next();!h.done;h=X.next()){var H=g.e(h.value);h=H.next().value;H=H.next().value;h==="openPopupAction"?D.lM.get().Te("innertubeCommand",{openPopupAction:H}):h==="confirmDialogEndpoint"?D.lM.get().Te("innertubeCommand",{confirmDialogEndpoint:H}):KFR.hasOwnProperty(h)||sI9(D,h,H,M,Q)}}; sI9=function(D,X,M,Q,h){if((D=D.S.get(X))&&typeof D==="function")try{D(M,Q,h)}catch(H){g.ET(H)}else X=new g.ys("Unhandled field",X),g.P3(X)}; KH=function(D,X,M){this.Ye=D;this.S=X;this.B2=M;Zm(SP(),{QU:X15,ez:Dep})}; ak=function(D){this.value=D}; FM=function(D){this.value=D}; VJ=function(D){this.value=D}; $i=function(D){this.value=D}; Bn=function(D){this.value=D}; ZU=function(D){this.value=D}; Ud=function(D){this.value=D}; cn=function(){ak.apply(this,arguments)}; fH=function(D){this.value=D}; ST=function(D){this.value=D}; Ed=function(D){this.value=D}; yJ=function(D){this.value=D}; Pn=function(D){this.value=D}; mE=function(D){this.value=D}; nH=function(D){this.value=D}; b8=function(D){this.value=D}; eT=function(D){this.value=D}; Rk=function(D){this.value=D}; Ik=function(){ak.apply(this,arguments)}; g0=function(D){this.value=D}; vn=function(D){this.value=D}; d0=function(D){this.value=D}; r0=function(D){this.value=D}; i8=function(D){this.value=D}; ok=function(D){this.value=D}; CH=function(D){this.value=D}; Od=function(D){this.value=D}; pH=function(D){this.value=D}; AV=function(D){this.value=D}; Yi=function(D){this.value=D}; l8=function(D){this.value=D}; JV=function(D){this.value=D}; xi=function(D){this.value=D}; Wn=function(D){this.value=D}; Gb=function(D){this.value=D}; zb=function(D){this.value=D}; ki=function(D){this.value=D}; u8=function(D){this.value=D}; jT=function(D){this.value=D}; D0=function(D){this.value=D}; X5=function(D){this.value=D}; MJ=function(D){this.value=D}; Ql=function(D){this.value=D}; hH=function(D){this.value=D}; H0=function(D){this.value=D}; tH=function(D){this.value=D}; NJ=function(D){this.value=D}; qJ=function(D){this.value=D}; wE=function(D){this.value=D}; Td=function(D){this.value=D}; L0=function(D){this.value=D}; s2=function(D){this.value=D}; K0=function(D){this.value=D}; aw=function(D){this.value=D}; F5=function(D){this.value=D}; Vl=function(D){this.value=D}; $T=function(D){this.value=D}; B0=function(D){this.value=D}; Z0=function(D){this.value=D}; U2=function(){ak.apply(this,arguments)}; c0=function(D){this.value=D}; f0=function(){ak.apply(this,arguments)}; S5=function(){ak.apply(this,arguments)}; E2=function(){ak.apply(this,arguments)}; yl=function(){ak.apply(this,arguments)}; P0=function(){ak.apply(this,arguments)}; ms=function(D){this.value=D}; n0=function(D){this.value=D}; bx=function(D){this.value=D}; e5=function(D){this.value=D}; Iw=function(D,X,M){if(M&&!M.includes(D.layoutType))return!1;X=g.e(X);for(M=X.next();!M.done;M=X.next())if(!Rw(D.clientMetadata,M.value))return!1;return!0}; gE=function(){return""}; amR=function(D,X){switch(D){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 X(D),8}}; v0=function(D,X,M,Q){Q=Q===void 0?!1:Q;YB.call(this,D);this.E5=M;this.yE=Q;this.args=[];X&&this.args.push(X)}; G=function(D,X,M,Q){Q=Q===void 0?!1:Q;YB.call(this,D);this.E5=M;this.yE=Q;this.args=[];X&&this.args.push(X)}; dE=function(D){var X=new Map;D.forEach(function(M){X.set(M.S(),M)}); this.S=X}; Rw=function(D,X){return D.S.has(X)}; rE=function(D,X){D=D.S.get(X);if(D!==void 0)return D.get()}; ix=function(D){return Array.from(D.S.keys())}; ow=function(D,X,M){if(M&&M!==D.slotType)return!1;X=g.e(X);for(M=X.next();!M.done;M=X.next())if(!Rw(D.clientMetadata,M.value))return!1;return!0}; VP2=function(D){var X;return((X=FF5.get(D))==null?void 0:X.Z7)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; O2=function(D,X){var M={type:X.slotType,controlFlowManagerLayer:$e2.get(X.N5)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};X.slotEntryTrigger&&(M.entryTriggerType=X.slotEntryTrigger.triggerType);X.slotPhysicalPosition!==1&&(M.slotPhysicalPosition=X.slotPhysicalPosition);if(D){M.debugData={slotId:X.slotId};if(D=X.slotEntryTrigger)M.debugData.slotEntryTriggerData=C0(D);D=X.slotFulfillmentTriggers;M.debugData.fulfillmentTriggerData=[];D=g.e(D);for(var Q=D.next();!Q.done;Q=D.next())M.debugData.fulfillmentTriggerData.push(C0(Q.value)); X=X.slotExpirationTriggers;M.debugData.expirationTriggerData=[];X=g.e(X);for(D=X.next();!D.done;D=X.next())M.debugData.expirationTriggerData.push(C0(D.value))}return M}; BXo=function(D,X){var M={type:X.layoutType,controlFlowManagerLayer:$e2.get(X.N5)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D&&(M.debugData={layoutId:X.layoutId});return M}; C0=function(D,X){var M={type:D.triggerType};X!=null&&(M.category=X);D.triggeringSlotId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedSlotId=D.triggeringSlotId);D.triggeringLayoutId!=null&&(M.triggerSourceData||(M.triggerSourceData={}),M.triggerSourceData.associatedLayoutId=D.triggeringLayoutId);return M}; Zem=function(D,X,M,Q){X={opportunityType:X};D&&(Q||M)&&(Q=g.be(Q||[],function(h){return O2(D,h)}),X.debugData=Object.assign({},M&&M.length>0?{associatedSlotId:M}:{},Q.length>0?{slots:Q}:{})); return X}; AH=function(D,X){return function(M){return Ues(p0(D),X.slotId,X.slotType,X.slotPhysicalPosition,X.N5,X.slotEntryTrigger,X.slotFulfillmentTriggers,X.slotExpirationTriggers,M.layoutId,M.layoutType,M.N5)}}; Ues=function(D,X,M,Q,h,H,t,q,w,T,L){return{adClientDataEntry:{slotData:O2(D,{slotId:X,slotType:M,slotPhysicalPosition:Q,N5:h,slotEntryTrigger:H,slotFulfillmentTriggers:t,slotExpirationTriggers:q,clientMetadata:new dE([])}),layoutData:BXo(D,{layoutId:w,layoutType:T,N5:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Sh:new Map,clientMetadata:new dE([]),A5:{}})}}}; JH=function(D){this.bj=D;D=Math.random();var X=this.bj.get();X=g.lx(X.B.W().experiments,"html5_debug_data_log_probability");X=Number.isFinite(X)&&X>=0&&X<=1?X:0;this.S=D>31));RL(D,16,X.Z$$);RL(D,17,X.detailedNetworkType);RL(D,18,X.lD);RL(D,19,X.iD);RL(D,21,X.CEI);RL(D,23,X.yr);RL(D,28,X.Sx);RL(D,29,X.iY2);RL(D,34,X.visibility);M=X.playbackRate;if(M!==void 0){var Q=new ArrayBuffer(4);(new Float32Array(Q))[0]=M;M=(new Uint32Array(Q))[0];if(M!==void 0)for(ee(D,285),bl(D,4),Q=0;Q<4;)D.view.setUint8(D.pos,M&255),M>>=8,D.pos+=1,Q+=1}RL(D,36,X.gP); dF(D,38,X.mediaCapabilities,sUH,3);RL(D,39,X.px5);RL(D,40,X.Q_);RL(D,44,X.playerState);IL(D,46,X.DY);RL(D,48,X.hL);RL(D,50,X.dX);RL(D,51,X.WA);RL(D,54,X.Rt);if(X.xX)for(M=0;M>31));vT(D,2,X.message)}; cUp=function(D,X){RL(D,1,X.clientState);dF(D,2,X.h3f,ZO_,1)}; BqR=function(D,X){gF(D,1,X.zkH);dF(D,2,X.j6j,U15,3);dF(D,3,X.coldStartInfo,cUp,3)}; $1i=function(D,X){RL(D,1,X.type);gF(D,2,X.value)}; V7H=function(D,X){vT(D,1,X.hl);vT(D,12,X.deviceMake);vT(D,13,X.deviceModel);RL(D,16,X.clientName);vT(D,17,X.clientVersion);vT(D,18,X.osName);vT(D,19,X.osVersion)}; fqm=function(D,X){vT(D,1,X.name);vT(D,2,X.value)}; sn=function(D,X){vT(D,1,X.url);if(X.BY)for(var M=0;M55?"60":X>49?"50":X>39?"48":"")));this.qualityLabel=D;this.S=w||"";this.primaries=T||""}; $P=function(D,X){var M=Math.max(D,X);D=Math.min(D,X);X=Un[0];for(var Q=0;Q=Math.floor(H*16/9)*1.3||D>=H*1.3)return X;X=h}return"tiny"}; Sv=function(D,X,M){M=M===void 0?{}:M;this.id=D;this.mimeType=X;M.jH>0||(M.jH=16E3);Object.assign(this,M);D=g.e(this.id.split(";"));this.itag=D.next().value;this.S=D.next().value;this.containerType=cE(X);this.ij=fE[this.itag]||""}; En=function(D){return D.ij==="9"||D.ij==="("||D.ij==="9h"||D.ij==="(h"}; MU5=function(D){return D.ij==="H"||D.ij==="h"}; ye=function(D){return D.ij==="9h"||D.ij==="(h"}; QW9=function(D){return!!D.DS&&!!D.DS.fairplay&&(D.ij==="("||D.ij==="(h"||D.ij==="A"||D.ij==="MEAC3")||PE&&!!D.DS&&D.ij==="1e"}; mq=function(D){return D.ij==="1"||D.ij==="1h"||PE&&D.ij==="1e"}; Rs=function(D){return D.ij==="mac3"||D.ij==="meac3"||D.ij==="m"||D.ij==="i"||hvR(D)}; hvR=function(D){return D.ij==="MAC3"||D.ij==="MEAC3"||D.ij==="M"||D.ij==="I"}; g.Is=function(D){return D.containerType===1}; Hd1=function(D){return D.ij==="("||D.ij==="(h"||D.ij==="H"||PE&&D.ij==="1e"}; ge=function(D){return D.mimeType==="application/x-mpegURL"}; g.vE=function(D,X){return{itag:+D.itag,lmt:X?0:D.lastModified,xtags:D.S||""}}; tUn=function(D){var X=navigator.mediaCapabilities;if(X==null||!X.decodingInfo||D.ij==="f")return Promise.resolve();var M={type:D.audio&&D.video?"file":"media-source"};D.video&&(M.video={contentType:D.mimeType,width:D.video.width||640,height:D.video.height||360,bitrate:D.jH*8||1E6,framerate:D.video.fps||30});D.audio&&(M.audio={contentType:D.mimeType,channels:""+(D.audio.numChannels||2),bitrate:D.jH*8||128E3,samplerate:D.audio.sampleRate||44100});return X.decodingInfo(M).then(function(Q){D.G=Q})}; de=function(D){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(D)}; re=function(D){return/(vp9|vp09|vp8|avc1|av01)/.test(D)}; iw=function(D){return D.includes("vtt")||D.includes("text/mp4")}; cE=function(D){return D.indexOf("/mp4")>=0?1:D.indexOf("/webm")>=0?2:D.indexOf("/x-flv")>=0?3:D.indexOf("/vtt")>=0?4:0}; os=function(D,X,M,Q,h,H,t){var q=new tC;X in g.BE||(X="small");X==="light"&&(X="tiny");Q&&h?(h=Number(h),Q=Number(Q)):(h=g.BE[X],Q=Math.round(h*16/9));H=new ZH(Q,h,0,null,void 0,X,H,t);D=unescape(D.replace(/"/g,'"'));return new Sv(M,D,{audio:q,video:H})}; CE=function(D,X){return{start:function(M){return D[M]}, end:function(M){return X[M]}, length:D.length}}; Nmo=function(D,X,M){for(var Q=[],h=[],H=0;H=X)return M}catch(Q){}return-1}; AC=function(D,X){return pE(D,X)>=0}; qc2=function(D,X){if(!D)return NaN;X=pE(D,X);return X>=0?D.start(X):NaN}; YP=function(D,X){if(!D)return NaN;X=pE(D,X);return X>=0?D.end(X):NaN}; lw=function(D){return D&&D.length?D.end(D.length-1):NaN}; JC=function(D){return lw(D)>0}; xP=function(D,X){D=YP(D,X);return D>=0?D-X:0}; WE=function(D,X,M){for(var Q=[],h=[],H=0;HM||(Q.push(Math.max(X,D.start(H))-X),h.push(Math.min(M,D.end(H))-X));return CE(Q,h)}; GU=function(D,X,M,Q){g.Dq.call(this);var h=this;this.jt=D;this.start=X;this.end=M;this.isActive=Q;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.d9={error:function(){!h.H2()&&h.isActive&&h.publish("error",h)}, updateend:function(){!h.H2()&&h.isActive&&h.publish("updateend",h)}}; this.jt.Dq(this.d9);this.X3=this.isActive}; kP=function(D,X,M,Q,h,H){g.Dq.call(this);var t=this;this.I2=D;this.UU=X;this.id=M;this.containerType=Q;this.ij=h;this.VB=H;this.hP=this.Ep=this.N2=null;this.nu=!1;this.appendWindowStart=this.timestampOffset=0;this.ou=CE([],[]);this.pA=!1;this.wu=[];this.qr=zU?[]:void 0;this.handler=function(w){return t.publish(w.type,t)}; var q;if((q=this.I2)==null?0:q.addEventListener)this.I2.addEventListener("updateend",this.handler),this.I2.addEventListener("error",this.handler)}; uw=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; jv=function(D,X){this.Uw=D;this.S=X===void 0?!1:X;this.G=!1}; DI=function(D,X,M){M=M===void 0?!1:M;g.O.call(this);this.mediaElement=D;this.J$=X;this.isView=M;this.U=0;this.D=!1;this.X=!0;this.eH=0;this.callback=null;this.K=!1;this.J$||(this.UU=this.mediaElement.Ly());this.events=new g.HE(this);g.p(this,this.events);this.Y=new jv(this.J$?window.URL.createObjectURL(this.J$):this.UU.webkitMediaSourceURL,!0);D=this.J$||this.UU;eJ(this.events,D,["sourceopen","webkitsourceopen"],this.uzj);eJ(this.events,D,["sourceclose","webkitsourceclose"],this.gC$);this.J={updateend:this.Ok}}; Xw=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; wbH=function(D){return window.MediaSource?new DI(D,new window.MediaSource,!1):window.ManagedMediaSource?new DI(D,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new DI(D,new window.WebKitMediaSource,!1):new DI(D,void 0,!1)}; TmR=function(D,X){Ml(D)?g.SI(function(){X(D)}):D.callback=X}; LMm=function(D,X,M){if(Qb){var Q;D.mediaElement.uA("rms",{l:"mswssb",sr:(Q=D.mediaElement.zs)==null?void 0:Q.LF()},!1);X.Dq(D.J,D);M.Dq(D.J,D)}D.S=X;D.G=M;g.p(D,X);g.p(D,M)}; ht=function(D){return!!D.S||!!D.G}; Ml=function(D){try{return HQ(D)==="open"}catch(X){return!1}}; HQ=function(D){if(D.J$)return D.J$.readyState;switch(D.UU.webkitSourceState){case D.UU.SOURCE_OPEN:return"open";case D.UU.SOURCE_ENDED:return"ended";default:return"closed"}}; tt=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; sWp=function(D,X,M,Q){if(!D.S||!D.G)return null;var h=D.S.isView()?D.S.jt:D.S,H=D.G.isView()?D.G.jt:D.G,t=new DI(D.mediaElement,D.J$,!0);t.Y=D.Y;LMm(t,new GU(h,X,M,Q),new GU(H,X,M,Q));Ml(D)||D.S.CS(D.S.w3());return t}; Nl=function(D){var X;(X=D.S)==null||X.NZ();var M;(M=D.G)==null||M.NZ();D.X=!1}; ql=function(){var D=this;this.TZ=this.J0=l_s;this.promise=new g.yw(function(X,M){D.J0=X;D.TZ=M})}; wj=function(){g.O.call(this);this.Ai=!1;this.Uw=null;this.sR=this.a5=!1;this.eH=new g.Ks;this.f$=this.zs=null;g.p(this,this.eH)}; KMm=function(D,X,M){D.isPaused()||D.getCurrentTime()>X||M>10||(D.play(),g.Vj(function(){KMm(D,D.getCurrentTime(),M+1)},500))}; aJm=function(D,X){D.Uw&&D.Uw.equals(X)||(D.Uw&&D.Uw.dispose(),D.Uw=X)}; T8=function(D){D.Aq()&&(D.zs&&D.zs.UJ("rs_s"),lD&&D.getCurrentTime()>0&&D.seekTo(0),D.o0(),D.load(),aJm(D,null));delete D.J}; g.LZ=function(D,X,M){this.QV=X===void 0?null:X;this.seekSource=M===void 0?null:M;this.state=D||64}; sf=function(D,X,M){M=M===void 0?!1:M;return FMm(D,X.getCurrentTime(),(0,g.fi)(),X.Wv(),M)}; KZ=function(D,X,M,Q){if(!(X===D.state&&M===D.QV&&Q===D.seekSource||X!==void 0&&(X&128&&!M||X&2&&X&16))){var h;if(h=X)h=X||D.state,h=!!(h&16||h&32);D=new g.LZ(X,M,h?Q?Q:D.seekSource:null)}return D}; aE=function(D,X,M){return KZ(D,D.state|X,null,M===void 0?null:M)}; Fw=function(D,X){return KZ(D,D.state&~X,null,null)}; Vb=function(D,X,M,Q){return KZ(D,(D.state|X)&~M,null,Q===void 0?null:Q)}; g.x=function(D,X){return!!(D.state&X)}; g.$K=function(D,X){return X.state===D.state&&X.QV===D.QV}; BQ=function(D){return D.isPlaying()&&!g.x(D,16)&&!g.x(D,32)}; ZI=function(D){return g.x(D,128)?-1:g.x(D,2)?0:g.x(D,2048)?3:g.x(D,64)?-1:g.x(D,1)&&!g.x(D,32)?3:g.x(D,8)?1:g.x(D,4)?2:-1}; cQ=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c){g.O.call(this);var S=this;this.x8=D;this.slot=X;this.layout=M;this.B2=Q;this.Yl=h;this.dC=H;this.Qf=t;this.OH=q;this.Xk=w;this.e3=T;this.position=K;this.U=a;this.bj=F;this.eE=V;this.context=c;this.Rn=!0;this.Y=!1;this.GX="not_rendering";this.S=!1;D=rE(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.wC=new h8(M.Sh,this.B2,D,M.layoutId);var b;D=((b=Uf(this))==null?void 0:b.progressCommands)||[];this.G=new B7(w,D,M.layoutId,function(){return S.rz()})}; Uf=function(D){return rE(D.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; VUH=function(D){Hb("Received layout exit signal when not in layout exit flow.",D.slot,D.layout)}; $Z9=function(D){var X;return((X=W7(D.dC.get(),2))==null?void 0:X.clientPlaybackNonce)||""}; Bms=function(D,X){switch(X){case "normal":D.Z1("complete");break;case "skipped":D.Z1("skip");break;case "abandoned":Ta(D.wC,"impression")&&D.Z1("abandon")}}; ZdR=function(D,X){D.Y||(X=new g.tq(X.state,new g.LZ),D.Y=!0);return X}; UZi=function(D,X){YJ(X)?D.e3(1):g.qZ(X,4)&&!g.qZ(X,2)&&D.Ad();NZ(X,4)<0&&!(NZ(X,2)<0)&&D.td()}; cq1=function(D){D.position===0&&(D.OH.get(),D=rE(D.layout.clientMetadata,"metadata_type_ad_placement_config").kind,D={adBreakType:fZ(D)},SQ("ad_bl"),g.Eg(D))}; SN=function(D,X){qF(D.wC,X,!D.S)}; Sco=function(D){var X;return(((X=Uf(D))==null?void 0:X.progressCommands)||[]).findIndex(function(M){return!!g.Z(M==null?void 0:M.command,fJ2)})!==-1}; g.Ef=function(D,X,M){Pz(D,M)||nX(D,X,M);Pz(D,"video_to_ad")||nX(D,X,"video_to_ad");Pz(D,"ad_to_video")||nX(D,X,"ad_to_video");Pz(D,"ad_to_ad")||nX(D,X,"ad_to_ad")}; yb=function(D){cQ.call(this,D.x8,D.slot,D.EW,D.B2,D.Yl,D.dC,D.Qf,D.OH,D.Xk,D.e3,D.LZ,D.sj,D.kq,D.bj,D.eE,D.context);var X=this;this.Vm=!0;this.xT=this.GC=0;this.xu=WD(function(){X.x8.UH(X.slot,X.layout)}); this.lM=D.lM;this.LZ=D.LZ;this.VQ=WD(function(){X.GX!=="rendering_stop_requested"&&X.LZ(X);X.layoutExitReason?X.x8.IN(X.slot,X.layout,X.layoutExitReason):VUH(X)}); this.timer=new g.I7(200);this.timer.listen("tick",function(){X.Ja()}); g.p(this,this.timer)}; Euo=function(D){D.xT=Date.now();PQ(D,D.GC);D.timer.start()}; PQ=function(D,X){X={current:X/1E3,duration:D.rz()/1E3};D.lM.get().Te("onAdPlaybackProgress",X)}; bc=function(D){cQ.call(this,D.callback,D.slot,D.EW,D.B2,D.Yl,D.dC,D.Qf,D.OH,D.Xk,D.e3,D.LZ,D.sj,D.kq,D.bj,D.eE,D.context);var X=this;this.adCpn="";this.BE=this.ew=0;this.xu=WD(function(){X.x8.UH(X.slot,X.layout)}); this.VQ=WD(function(){X.GX!=="rendering_stop_requested"&&X.LZ(X);X.layoutExitReason?X.x8.IN(X.slot,X.layout,X.layoutExitReason):VUH(X)}); this.Xz=D.Xz;this.mH=D.mH;this.rI=D.rI;this.lM=D.lM;this.BB=D.BB;this.LZ=D.LZ;mV(this.bj.get(),"html5_disable_media_load_timeout")||(this.T8=new g.W5(function(){X.mN("load_timeout",new v0("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); D=mw(this.bj.get());var M=nZ(this.bj.get());D&&M&&(this.xF=new g.W5(function(){var Q=rE(X.layout.clientMetadata,"metadata_type_preload_player_vars");Q&&X.mH.get().B.preloadVideoByPlayerVars(Q,2,300)}))}; yq_=function(D){return new yb(Object.assign({},D,{x8:D.callback,e3:function(){}}))}; Pds=function(D){return new bc(Object.assign({},D,{e3:function(X){D.lM.get().Te("onAdIntroStateChange",X)}}))}; mZp=function(D){return new bc(Object.assign({},D,{e3:function(X){D.lM.get().Fd(X)}}))}; nu_=function(D){for(var X=D.EW,M=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Q=g.e(H7()),h=Q.next();!h.done;h=Q.next())M.push(h.value);if(n9(X,{Y$:M,k$:["LAYOUT_TYPE_MEDIA_BREAK"]}))return yq_(D);X=D.EW;M=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Q=g.e(H7());for(h=Q.next();!h.done;h=Q.next())M.push(h.value);if(n9(X,{Y$:M,k$:["LAYOUT_TYPE_MEDIA"]}))return Rw(D.EW.clientMetadata,"metadata_type_ad_intro")?Pds(D):mZp(D)}; eN=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F){g.O.call(this);this.callback=D;this.dC=X;this.EH=M;this.mH=Q;this.Qf=h;this.b0=H;this.OH=t;this.kO=q;this.slot=w;this.layout=T;this.UC=L;this.MR=K;this.gI=a;this.bj=F;this.Rn=!0;this.Q0=!1;this.rU=[];this.JS=-1;this.AN=!1}; RE=function(D){return D.rU[D.JS]}; gj=function(D,X,M){var Q=RE(D);D.JS===D.rU.length-1&&Hb("Unexpected skip with target requested during the last sublayout");if(M.renderingContent===void 0&&M.layoutId!==IE(Q,X,M)){Hb("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Q.jh(),Q.FF(),{requestingSlot:X,requestingLayout:M});var h=!1}else h=!0;if(h){a:{if((h=rE(Q.FF().clientMetadata,"metadata_type_ad_pod_skip_target"))&&h>0&&h0)){Hb("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",D.slot,D.layout,{indexToPlay:X,layoutId:D.layout.layoutId});break a}D.JS=X;X=RE(D);if(D.JS>0){var M=D.OH.get();M.G=!1;var Q={};M.S&&M.videoId&&(Q.cttAuthInfo={token:M.S,videoId:M.videoId});yO("ad_to_ad",Q)}M=g.Z(X.FF().renderingContent,Oz);if(M==null?0:M.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var h; M=!((h=D.b0.get().Rk2.get(M.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&h)}else M=!1;M?vQ(D,D.JS+1):X.startRendering(X.FF())}}; Rvs=function(D){(D=RE(D))&&D.Ys()}; IJ2=function(D){return new eN(D.lcC,D.dC,D.EH,D.mH,D.Qf,D.b0,D.OH,D.kO,D.slot,D.layout,D.UC,D.MR,D.gI,D.bj)}; oE=function(D,X,M,Q,h,H,t){g.O.call(this);this.callback=D;this.mH=X;this.Qf=M;this.OH=Q;this.Ls=h;this.gI=H;this.bj=t;this.Rn=!0;this.Q0=!1}; gui=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c,S,b,n,R,v,l){function A(){var D_=nu_(Object.assign({},u,{callback:{UH:D.UH.bind(D),IN:D.IN.bind(D),Ah:D.Ah.bind(D)},slot:M,EW:Q,LZ:function(){ic(t,Q)}, sj:0,kq:1,eE:!0}));return D_?new oE(D,L,a,c,D_,h,R):D_} function Hs(){var D_,q5=(D_=Q.A6)!=null?D_:rE(Q.clientMetadata,"metadata_type_sub_layouts");D_=IJ2({lcC:D,dC:K,EH:v,mH:L,Qf:a,b0:F,OH:c,kO:X,slot:M,layout:Q,UC:H,MR:t,gI:h,bj:R});for(var Lo=[],Qs={D$:0};Qs.D$h&&t.sQ(L,h-Q);return L}; Cds=function(D,X,M){var Q=rE(X.clientMetadata,"metadata_type_sodar_extension_data");if(Q)try{Aoo(M,Q)}catch(h){Hb("Unexpected error when loading Sodar",D,X,{error:h})}}; Od_=function(D,X,M,Q,h,H,t){lc(D,X,new g.tq(M,new g.LZ),Q,h,t,!1,H)}; lc=function(D,X,M,Q,h,H,t,q){t=t===void 0?!0:t;YJ(M)&&lZ(h,0,null)&&(!Ta(D,"impression")&&q&&q(),D.Z1("impression"));Ta(D,"impression")&&(g.qZ(M,4)&&!g.qZ(M,2)&&D.d6("pause"),NZ(M,4)<0&&!(NZ(M,2)<0)&&D.d6("resume"),g.qZ(M,16)&&h>=.5&&D.d6("seek"),t&&g.qZ(M,2)&&Jt(D,M.state,X,Q,h,H))}; Jt=function(D,X,M,Q,h,H,t,q,w){Ta(D,"impression")&&(H?(H=h-Q,H=H>=-1&&H<=2):H=Math.abs(Q-h)<=1,xK(D,X,H?Q:h,M,Q,t,q&&H),H&&!w&&D.Z1("complete"))}; xK=function(D,X,M,Q,h,H,t){wz(D,M*1E3,t);h<=0||M<=0||(X==null?0:g.x(X,16))||(X==null?0:g.x(X,32))||(lZ(M,h*.25,Q)&&(H&&!Ta(D,"first_quartile")&&H("first"),D.Z1("first_quartile")),lZ(M,h*.5,Q)&&(H&&!Ta(D,"midpoint")&&H("second"),D.Z1("midpoint")),lZ(M,h*.75,Q)&&(H&&!Ta(D,"third_quartile")&&H("third"),D.Z1("third_quartile")))}; pb9=function(D,X){Ta(D,"impression")&&D.d6(X?"fullscreen":"end_fullscreen")}; Aq_=function(D){Ta(D,"impression")&&D.d6("clickthrough")}; Yc_=function(D){D.d6("active_view_measurable")}; lJW=function(D){Ta(D,"impression")&&!Ta(D,"seek")&&D.d6("active_view_fully_viewable_audible_half_duration")}; Jqs=function(D){Ta(D,"impression")&&!Ta(D,"seek")&&D.d6("active_view_viewable")}; xZs=function(D){Ta(D,"impression")&&!Ta(D,"seek")&&D.d6("audio_audible")}; WMs=function(D){Ta(D,"impression")&&!Ta(D,"seek")&&D.d6("audio_measurable")}; Gq9=function(D,X,M,Q,h,H,t,q,w,T,L,K,a){this.callback=D;this.slot=X;this.layout=M;this.EH=Q;this.wC=h;this.Qf=H;this.uL=t;this.Yl=q;this.Xz=w;this.bj=T;this.B2=L;this.dC=K;this.rI=a;this.Vm=!0;this.CK=this.GX=null;this.adCpn=void 0;this.S=!1}; zvW=function(D,X,M){var Q;YK(D.B2.get(),"ads_qua","cpn."+rE(D.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Q=W7(D.dC.get(),2))==null?void 0:Q.clientPlaybackNonce)+";qt."+X+";clr."+M)}; kq9=function(D,X){var M,Q;YK(D.B2.get(),"ads_imp","cpn."+rE(D.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((M=W7(D.dC.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+X+";skp."+!!g.Z((Q=rE(D.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:Q.skipOrPreviewRenderer,WQ))}; G8=function(D){return{enterMs:rE(D.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:rE(D.clientMetadata,"metadata_type_layout_exit_ms")}}; z8=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F){CZ.call(this,D,X,M,Q,h,t,q,w,T,K);this.uL=H;this.Xz=L;this.Yl=a;this.bj=F;this.CK=this.GX=null}; uOW=function(D,X){var M;YK(D.B2.get(),"ads_imp","acpn."+((M=W7(D.dC.get(),2))==null?void 0:M.clientPlaybackNonce)+";clr."+X)}; jWH=function(D,X,M){var Q;YK(D.B2.get(),"ads_qua","cpn."+rE(D.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Q=W7(D.dC.get(),2))==null?void 0:Q.clientPlaybackNonce)+";qt."+X+";clr."+M)}; kK=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c,S,b,n,R,v){this.gI=D;this.UC=X;this.MR=M;this.dC=Q;this.EH=h;this.Qf=H;this.b0=t;this.B2=q;this.uL=w;this.AR=T;this.Yl=L;this.Xz=K;this.mH=a;this.rI=F;this.OH=V;this.lM=c;this.Xk=S;this.BB=b;this.bj=n;this.S=R;this.context=v}; uc=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c,S,b){this.gI=D;this.UC=X;this.MR=M;this.B2=Q;this.Yl=h;this.Xz=H;this.mH=t;this.dC=q;this.Qf=w;this.b0=T;this.rI=L;this.OH=K;this.lM=a;this.Xk=F;this.BB=V;this.bj=c;this.EH=S;this.context=b}; DdH=function(D,X,M,Q){jM.call(this,"survey-interstitial",D,X,M,Q)}; jN=function(D,X,M,Q,h){zH.call(this,M,D,X,Q);this.B2=h;D=rE(X.clientMetadata,"metadata_type_ad_placement_config");this.wC=new h8(X.Sh,h,D,X.layoutId)}; Dz=function(D){return Math.round(D.width)+"x"+Math.round(D.height)}; MV=function(D,X,M){M=M===void 0?Xz:M;M.widthD.width*D.height*.2)return{gZ:3,By:501,errorMessage:"ad("+Dz(M)+") to container("+Dz(D)+") ratio exceeds limit."};if(M.height>D.height/3-X)return{gZ:3,By:501,errorMessage:"ad("+Dz(M)+") covers container("+Dz(D)+") center."}}; Xzn=function(D,X){var M=rE(D.clientMetadata,"metadata_type_ad_placement_config");return new h8(D.Sh,X,M,D.layoutId)}; QR=function(D){return rE(D.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; hX=function(D,X,M,Q){jM.call(this,"invideo-overlay",D,X,M,Q);this.interactionLoggingClientData=Q}; HF=function(D,X,M,Q,h,H,t,q,w,T,L,K){zH.call(this,H,D,X,h);this.B2=M;this.U=t;this.Qf=q;this.Xk=w;this.bj=T;this.X=L;this.D=K;this.wC=Xzn(X,M)}; MQm=function(){var D=["metadata_type_invideo_overlay_ad_renderer"];H7().forEach(function(X){D.push(X)}); return{Y$:D,k$:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; tX=function(D,X,M,Q,h,H,t,q,w,T,L,K,a){zH.call(this,H,D,X,h);this.B2=M;this.U=t;this.K=q;this.Qf=w;this.Xk=T;this.bj=L;this.X=K;this.D=a;this.wC=Xzn(X,M)}; QQd=function(){for(var D=["metadata_type_invideo_overlay_ad_renderer"],X=g.e(H7()),M=X.next();!M.done;M=X.next())D.push(M.value);return{Y$:D,k$:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; NV=function(D){this.Qf=D;this.S=!1}; hC1=function(D,X,M){jM.call(this,"survey",D,{},X,M)}; qV=function(D,X,M,Q,h,H,t){zH.call(this,M,D,X,Q);this.U=h;this.Qf=H;this.bj=t}; HXW=function(D,X,M,Q,h,H,t,q,w,T){this.nK=D;this.Qf=X;this.B2=M;this.U=Q;this.Yl=h;this.G=H;this.Y=t;this.Xk=q;this.bj=w;this.S=T}; tQd=function(D,X,M,Q,h,H,t,q,w,T){this.nK=D;this.Qf=X;this.B2=M;this.U=Q;this.Yl=h;this.G=H;this.Y=t;this.Xk=q;this.bj=w;this.S=T}; wM=function(D,X,M,Q,h,H,t,q,w,T){v7.call(this,D,X,M,Q,h,H,t,w);this.If=q;this.dC=T}; Nln=function(){var D=JFs();D.Y$.push("metadata_type_ad_info_ad_metadata");return D}; qgm=function(D,X,M,Q,h,H,t){this.nK=D;this.Qf=X;this.B2=M;this.G=Q;this.If=h;this.S=H;this.dC=t}; wzR=function(D,X,M,Q,h,H,t,q){this.nK=D;this.Qf=X;this.B2=M;this.G=Q;this.If=h;this.S=H;this.bj=t;this.dC=q}; TR=function(D,X){this.adPodIndex=D;this.S=X.length;this.adBreakLengthSeconds=X.reduce(function(Q,h){return Q+h},0); var M=0;for(D+=1;D0}; xD=function(D){return!!(D.X2C&&D.slot&&D.layout)}; WF=function(D){var X,M=(X=D.config)==null?void 0:X.adPlacementConfig;D=D.renderer;return!(!M||M.kind==null||!D)}; EUH=function(D){if(!Cy(D.adLayoutMetadata))return!1;D=D.renderingContent;return g.Z(D,Oz)||g.Z(D,p9)||g.Z(D,SgW)||g.Z(D,oX)||g.Z(D,C9)?!0:!1}; GR=function(D){return D.playerVars!==void 0&&D.pings!==void 0&&D.externalVideoId!==void 0}; MU=function(D){if(!Cy(D.adLayoutMetadata))return!1;D=D.renderingContent;var X=g.Z(D,zR);return X?kD(X):(X=g.Z(D,uA))?GR(X):(X=g.Z(D,jk))?X.playerVars!==void 0:(X=g.Z(D,Oz))?X.durationMilliseconds!==void 0:g.Z(D,Dh)||g.Z(D,XQ)?!0:!1}; kD=function(D){D=(D.sequentialLayouts||[]).map(function(X){return g.Z(X,Qg)}); return D.length>0&&D.every(MU)}; Hx=function(D){return Cy(D.adLayoutMetadata)?(D=g.Z(D.renderingContent,hD))&&D.pings?!0:!1:!1}; bXo=function(D){if(!Cy(D.adLayoutMetadata))return!1;if(g.Z(D.renderingContent,yvH)||g.Z(D.renderingContent,tD))return!0;var X=g.Z(D.renderingContent,NU);return g.Z(D.renderingContent,qU)||g.Z(X==null?void 0:X.sidePanel,Pm2)||g.Z(X==null?void 0:X.sidePanel,mdm)||g.Z(X==null?void 0:X.sidePanel,nUm)?!0:!1}; ddH=function(D){var X;(X=!D)||(X=D.adSlotMetadata,X=!((X==null?void 0:X.slotId)!==void 0&&(X==null?void 0:X.slotType)!==void 0));if(X||!(eC2(D)||D.slotEntryTrigger&&D.slotFulfillmentTriggers&&D.slotExpirationTriggers))return!1;var M;D=(M=D.fulfillmentContent)==null?void 0:M.fulfilledLayout;return(M=g.Z(D,Qg))?MU(M):(M=g.Z(D,wD))?bXo(M):(M=g.Z(D,RC2))?EUH(M):(M=g.Z(D,IB5))?cvn(M):(M=g.Z(D,gUR))?Cy(M.adLayoutMetadata)?g.Z(M.renderingContent,Oi)?!0:!1:!1:(M=g.Z(D,TS))?Hx(M):(D=g.Z(D,vU_))?Cy(D.adLayoutMetadata)? g.Z(D.renderingContent,tD)?!0:!1:!1:!1}; eC2=function(D){var X;D=g.Z((X=D.fulfillmentContent)==null?void 0:X.fulfilledLayout,wD);var M;return D&&((M=D.adLayoutMetadata)==null?void 0:M.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&D.layoutExitNormalTriggers===void 0}; rvn=function(D){var X;return(D==null?void 0:(X=D.adSlotMetadata)==null?void 0:X.slotType)==="SLOT_TYPE_IN_PLAYER"}; iXH=function(D){D=g.e(D||[]);for(var X=D.next();!X.done;X=D.next()){var M=g.Z(X.value,Ln);if(M===void 0||!ddH(M))break;X=void 0;M=(X=M.fulfillmentContent)==null?void 0:X.fulfilledLayout;if((X=g.Z(M,TS))&&Hx(X))return!0}return!1}; Cm5=function(D,X){var M;if((M=D.questions)==null||!M.length||!D.playbackCommands||(X===void 0||!X)&&D.questions.length!==1)return!1;D=g.e(D.questions);for(X=D.next();!X.done;X=D.next()){X=X.value;var Q=M=void 0,h=((M=g.Z(X,sE))==null?void 0:M.surveyAdQuestionCommon)||((Q=g.Z(X,Kn))==null?void 0:Q.surveyAdQuestionCommon);if(!oUs(h))return!1}return!0}; OXW=function(D){D=((D==null?void 0:D.playerOverlay)||{}).instreamSurveyAdRenderer;var X;if(D)if(D.playbackCommands&&D.questions&&D.questions.length===1){var M,Q=((X=g.Z(D.questions[0],sE))==null?void 0:X.surveyAdQuestionCommon)||((M=g.Z(D.questions[0],Kn))==null?void 0:M.surveyAdQuestionCommon);X=oUs(Q)}else X=!1;else X=!1;return X}; oUs=function(D){if(!D)return!1;D=g.Z(D.instreamAdPlayerOverlay,az);var X=g.Z(D==null?void 0:D.skipOrPreviewRenderer,WQ),M=g.Z(D==null?void 0:D.adInfoRenderer,FQ);return(g.Z(D==null?void 0:D.skipOrPreviewRenderer,Vg)||X)&&M?!0:!1}; pzn=function(D){return D.linearAds!=null&&Cy(D.adLayoutMetadata)}; Avs=function(D){return D.linearAd!=null&&D.adVideoStart!=null}; Ygs=function(D){if(isNaN(Number(D.timeoutSeconds))||!D.text||!D.ctaButton||!g.Z(D.ctaButton,g.$w)||!D.brandImage)return!1;var X;return D.backgroundImage&&g.Z(D.backgroundImage,Bx)&&((X=g.Z(D.backgroundImage,Bx))==null?0:X.landscape)?!0:!1}; Zh=function(D,X,M,Q,h,H,t,q){g.O.call(this);this.bj=D;this.S=X;this.G=Q;this.dC=h;this.U=H;this.Y=t;this.mH=q}; xdn=function(D,X,M){var Q,h=((Q=M.adSlots)!=null?Q:[]).map(function(q){return g.Z(q,Ln)}); if(M.uq)if(rE(X.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Jf(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},X.slotId); else{if(D.bj.get().B.W().T("h5_check_forecasting_renderer_for_throttled_midroll")){var H=M.TR.filter(function(q){var w;return((w=q.renderer)==null?void 0:w.clientForecastingAdRenderer)!=null}); H.length!==0?lBR(D.Y,H,h,X.slotId,M.ssdaiAdsConfig):Jf(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},X.slotId)}else Jf(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},X.slotId); Jvs(D.U,X)}else{var t;Q={lT:Math.round(((H=rE(X.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:H.lT)||0),iT:(t=rE(X.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:t.iT};H=rE(X.clientMetadata,"metadata_type_cue_point");lBR(D.Y,M.TR,h,X.slotId,M.ssdaiAdsConfig,Q,H)}}; zCm=function(D,X,M,Q,h,H,t,q){var w=W7(D.dC.get(),1);if(Wjs(D.bj.get())){var T=UE(D.G.get(),M,Q,h,w.clientPlaybackNonce,w.g$,w.daiEnabled,w,H,t);GJ5(D,T);Jf(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return T},X)}else Jf(D.S.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return UE(D.G.get(),M,Q,h,w.clientPlaybackNonce,w.g$,w.daiEnabled,w,H,t,q)},X)}; GJ5=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next()){var Q=M.value;if(Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q.fulfilledLayout)if(M=void 0,Q.fulfilledLayout.renderingContent)M=rE(Q.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(Q.fulfilledLayout.A6){Q=g.e(Q.fulfilledLayout.A6);for(var h=Q.next();!h.done&&(h=h.value,!h.renderingContent||!(M=rE(h.clientMetadata,"metadata_type_player_vars")));h=Q.next());}}else M=void 0;if(M){D.mH.get().B.preloadVideoByPlayerVars(M, 2,300);break}}}; ubd=function(D,X,M,Q,h,H,t){X=kJ5(X,H,Number(Q.prefetchMilliseconds)||0,t);D=X instanceof G?X:cx(D,Q,h,X,M);return D instanceof G?D:[D]}; jQp=function(D,X,M,Q,h){var H=x2(D.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Q=[new F5({getAdBreakUrl:Q.getAdBreakUrl,lT:0,iT:0}),new n0(!0)];D=X.pauseDurationMs?X.lactThresholdMs?{slotId:H,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new vF(D.S,H),slotFulfillmentTriggers:[new Lj2(D.S)],slotExpirationTriggers:[new me(D.S,h),new R$(D.S,H)],N5:"core",clientMetadata:new dE(Q),adSlotLoggingData:M}:new G("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new G("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return D instanceof G?D:[D]}; DGH=function(D){var X,M;return((X=D.renderer)==null?void 0:(M=X.adBreakServiceRenderer)==null?void 0:M.getAdBreakUrl)!==void 0}; fn=function(D,X,M){if(D.beforeContentVideoIdStartedTrigger)D=D.beforeContentVideoIdStartedTrigger?new Ly(gE,X,D.id):new G("Not able to create BeforeContentVideoIdStartedTrigger");else{if(D.layoutIdExitedTrigger){var Q;X=(Q=D.layoutIdExitedTrigger)!=null&&Q.triggeringLayoutId?new $D(gE,D.layoutIdExitedTrigger.triggeringLayoutId,D.id):new G("Not able to create LayoutIdExitedTrigger")}else{if(D.layoutExitedForReasonTrigger){var h,H;((h=D.layoutExitedForReasonTrigger)==null?0:h.triggeringLayoutId)&&((H= D.layoutExitedForReasonTrigger)==null?0:H.layoutExitReason)?(X=sQ9(D.layoutExitedForReasonTrigger.layoutExitReason),D=X instanceof G?X:new VR(gE,D.layoutExitedForReasonTrigger.triggeringLayoutId,[X],D.id)):D=new G("Not able to create LayoutIdExitedForReasonTrigger")}else{if(D.onLayoutSelfExitRequestedTrigger){var t;X=(t=D.onLayoutSelfExitRequestedTrigger)!=null&&t.triggeringLayoutId?new PF(gE,D.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,D.id):new G("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(D.onNewPlaybackAfterContentVideoIdTrigger)D= D.onNewPlaybackAfterContentVideoIdTrigger?new me(gE,X,D.id):new G("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(D.skipRequestedTrigger){var q;X=(q=D.skipRequestedTrigger)!=null&&q.triggeringLayoutId?new bA(gE,D.skipRequestedTrigger.triggeringLayoutId,D.id):new G("Not able to create SkipRequestedTrigger")}else if(D.slotIdEnteredTrigger){var w;X=(w=D.slotIdEnteredTrigger)!=null&&w.triggeringSlotId?new ek(gE,D.slotIdEnteredTrigger.triggeringSlotId,D.id):new G("Not able to create SlotIdEnteredTrigger")}else if(D.slotIdExitedTrigger){var T; X=(T=D.slotIdExitedTrigger)!=null&&T.triggeringSlotId?new R$(gE,D.slotIdExitedTrigger.triggeringSlotId,D.id):new G("Not able to create SkipRequestedTrigger")}else if(D.surveySubmittedTrigger){var L;X=(L=D.surveySubmittedTrigger)!=null&&L.triggeringLayoutId?new rM(gE,D.surveySubmittedTrigger.triggeringLayoutId,D.id):new G("Not able to create SurveySubmittedTrigger")}else{if(D.mediaResumedTrigger)D=D.mediaResumedTrigger&&D.id?new Kj5(D.id):new G("Not able to create MediaResumedTrigger");else{if(D.closeRequestedTrigger){var K; X=(K=D.closeRequestedTrigger)!=null&&K.triggeringLayoutId?new si(gE,D.closeRequestedTrigger.triggeringLayoutId,D.id):new G("Not able to create CloseRequestedTrigger")}else if(D.slotIdScheduledTrigger){var a;X=(a=D.slotIdScheduledTrigger)!=null&&a.triggeringSlotId?new vF(gE,D.slotIdScheduledTrigger.triggeringSlotId,D.id):new G("Not able to create SlotIdScheduledTrigger")}else{if(D.mediaTimeRangeTrigger){var F;Q=Number((F=D.mediaTimeRangeTrigger)==null?void 0:F.offsetStartMilliseconds);var V;t=Number((V= D.mediaTimeRangeTrigger)==null?void 0:V.offsetEndMilliseconds);isFinite(Q)&&isFinite(t)?(V=t,V===-1&&(V=M),M=Q>V?new G("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Q,offsetEndMs:V},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",V===M&&Q-500<=V):new cC(Q,V),D=M instanceof G?M:new fy(gE,X,M,!1,D.id)):D=new G("Not able to create MediaTimeRangeTrigger")}else if(D.contentVideoIdEndedTrigger)D=D.contentVideoIdEndedTrigger?new Ky(gE,X,!1,D.id):new G("Not able to create ContentVideoIdEndedTrigger"); else{if(D.layoutIdEnteredTrigger){var c;X=(c=D.layoutIdEnteredTrigger)!=null&&c.triggeringLayoutId?new Fz(gE,D.layoutIdEnteredTrigger.triggeringLayoutId,D.id):new G("Not able to create LayoutIdEnteredTrigger")}else if(D.timeRelativeToLayoutEnterTrigger){var S;X=(S=D.timeRelativeToLayoutEnterTrigger)!=null&&S.triggeringLayoutId?new iA(gE,Number(D.timeRelativeToLayoutEnterTrigger.durationMs),D.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,D.id):new G("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(D.onDifferentLayoutIdEnteredTrigger){var b; X=(b=D.onDifferentLayoutIdEnteredTrigger)!=null&&b.triggeringLayoutId&&D.onDifferentLayoutIdEnteredTrigger.slotType&&D.onDifferentLayoutIdEnteredTrigger.layoutType?new Ei(gE,D.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,D.onDifferentLayoutIdEnteredTrigger.slotType,D.onDifferentLayoutIdEnteredTrigger.layoutType,D.id):new G("Not able to create CloseRequestedTrigger")}else{if(D.liveStreamBreakStartedTrigger)D=D.liveStreamBreakStartedTrigger&&D.id?new cF(gE,D.id):new G("Not able to create LiveStreamBreakStartedTrigger"); else if(D.liveStreamBreakEndedTrigger)D=D.liveStreamBreakEndedTrigger&&D.id?new BF(gE,D.id):new G("Not able to create LiveStreamBreakEndedTrigger");else{if(D.liveStreamBreakScheduledDurationMatchedTrigger){var n;X=(n=D.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&n.breakDurationMs?new Zz(Number(D.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,D.id):new G("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(D.liveStreamBreakScheduledDurationNotMatchedTrigger){var R; X=(R=D.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&R.breakDurationMs?new Ui(Number(D.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,D.id):new G("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(D.newSlotScheduledWithBreakDurationTrigger){var v;X=(v=D.newSlotScheduledWithBreakDurationTrigger)!=null&&v.breakDurationMs?new Sk(Number(D.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,D.id):new G("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else X= D.prefetchCacheExpiredTrigger?new ny(gE,D.id):new G("Not able to convert an AdsControlflowTrigger.");D=X}X=D}D=X}X=D}D=X}X=D}D=X}X=D}D=X}X=D}D=X}return D}; SW=function(D,X){X.S>=2&&(D.slot_pos=X.adPodIndex);D.autoplay="1"}; Me2=function(D,X,M,Q,h,H,t,q){return X===null?new G("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:X,ActionCompanionAdRenderer:Q}):[XTW(D,X,t,H,function(w){var T=w.slotId;w=q(w);var L=Q.adLayoutLoggingData,K=new dE([new FM(Q),new mE(h)]);T=nx(M.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",T);var a={layoutId:T,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N5:"core"};return{layoutId:T,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Sh:new Map, layoutExitNormalTriggers:[new me(M.S,t)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:K,A5:w(a),adLayoutLoggingData:L}})]}; QLd=function(D,X,M,Q,h,H,t,q){return X===null?new G("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:X,TopBannerImageTextIconButtonedLayoutViewModel:Q}):[XTW(D,X,t,H,function(w){var T=w.slotId;w=q(w);var L=Q.adLayoutLoggingData,K=new dE([new VJ(Q),new mE(h)]);T=nx(M.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",T);var a={layoutId:T,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",N5:"core"};return{layoutId:T,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Sh:new Map,layoutExitNormalTriggers:[new me(M.S,t)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:K,A5:w(a),adLayoutLoggingData:L}})]}; NF2=function(D,X,M,Q,h,H){if(!H)for(X=g.e(X),H=X.next();!H.done;H=X.next())H=H.value,EE(D,H.renderer,H.config.adPlacementConfig.kind);D=Array.from(D.values()).filter(function(L){return hI1(L)}); X=[];H=g.e(D);for(var t=H.next(),q={};!t.done;q={Is:void 0},t=H.next()){q.Is=t.value;t=g.e(q.Is.MS);for(var w=t.next(),T={};!w.done;T={Ei:void 0},w=t.next())T.Ei=w.value,w=function(L,K){return function(a){return L.Ei.Bs(a,K.Is.instreamVideoAdRenderer.elementId,L.Ei.BJ)}}(T,q),T.Ei.isContentVideoCompanion?X.push(H4o(M,Q,h,q.Is.instreamVideoAdRenderer.elementId,T.Ei.associatedCompositePlayerBytesLayoutId,T.Ei.adSlotLoggingData,w)):D.length>1?X.push(tes(M,Q,h,q.Is.instreamVideoAdRenderer.elementId,T.Ei.adSlotLoggingData, function(L,K){return function(a){return L.Ei.Bs(a,K.Is.instreamVideoAdRenderer.elementId,L.Ei.BJ,L.Ei.associatedCompositePlayerBytesLayoutId)}}(T,q))):X.push(tes(M,Q,h,q.Is.instreamVideoAdRenderer.elementId,T.Ei.adSlotLoggingData,w))}return X}; EE=function(D,X,M){if(X=qqs(X)){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())if((Q=Q.value)&&Q.externalVideoId){var h=yg(D,Q.externalVideoId);h.instreamVideoAdRenderer||(h.instreamVideoAdRenderer=Q,h.TW=M)}else Hb("InstreamVideoAdRenderer without externalVideoId")}}; qqs=function(D){var X=[],M=D.sandwichedLinearAdRenderer&&D.sandwichedLinearAdRenderer.linearAd&&g.Z(D.sandwichedLinearAdRenderer.linearAd,uA);if(M)return X.push(M),X;if(D.instreamVideoAdRenderer)return X.push(D.instreamVideoAdRenderer),X;if(D.linearAdSequenceRenderer&&D.linearAdSequenceRenderer.linearAds){D=g.e(D.linearAdSequenceRenderer.linearAds);for(M=D.next();!M.done;M=D.next())M=M.value,g.Z(M,uA)&&X.push(g.Z(M,uA));return X}return null}; hI1=function(D){if(D.instreamVideoAdRenderer===void 0)return Hb("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var X=g.e(D.MS),M=X.next();!M.done;M=X.next()){M=M.value;if(M.Bs===void 0)return!1;if(M.BJ===void 0)return Hb("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(D.TW===void 0||M.P_===void 0||D.TW!==M.P_&&M.P_!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(D.instreamVideoAdRenderer.elementId===void 0)return Hb("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:D.TW,"matching APSR kind":M.P_}),!1}return!0}; yg=function(D,X){D.has(X)||D.set(X,{instreamVideoAdRenderer:void 0,TW:void 0,adVideoId:X,MS:[]});return D.get(X)}; Px=function(D,X,M,Q,h,H,t,q,w){h?yg(D,h).MS.push({uJC:X,P_:M,isContentVideoCompanion:Q,BJ:t,associatedCompositePlayerBytesLayoutId:H,adSlotLoggingData:q,Bs:w}):Hb("Companion AdPlacementSupportedRenderer without adVideoId")}; m1=function(D){var X=0;D=g.e(D.questions);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M=g.Z(M,sE)||g.Z(M,Kn)){var Q=void 0;X+=((Q=M.surveyAdQuestionCommon)==null?void 0:Q.durationMilliseconds)||0}return X}; nn=function(D){var X,M,Q,h,H=((M=g.Z((X=D.questions)==null?void 0:X[0],sE))==null?void 0:M.surveyAdQuestionCommon)||((h=g.Z((Q=D.questions)==null?void 0:Q[0],Kn))==null?void 0:h.surveyAdQuestionCommon),t;X=[].concat(g.xW(((t=D.playbackCommands)==null?void 0:t.instreamAdCompleteCommands)||[]),g.xW((H==null?void 0:H.timeoutCommands)||[]));var q,w,T,L,K,a,F,V,c,S,b,n,R,v,l,A,Hs,u,D_,q5;return{impressionCommands:(q=D.playbackCommands)==null?void 0:q.impressionCommands,errorCommands:(w=D.playbackCommands)== null?void 0:w.errorCommands,muteCommands:(T=D.playbackCommands)==null?void 0:T.muteCommands,unmuteCommands:(L=D.playbackCommands)==null?void 0:L.unmuteCommands,pauseCommands:(K=D.playbackCommands)==null?void 0:K.pauseCommands,rewindCommands:(a=D.playbackCommands)==null?void 0:a.rewindCommands,resumeCommands:(F=D.playbackCommands)==null?void 0:F.resumeCommands,skipCommands:(V=D.playbackCommands)==null?void 0:V.skipCommands,progressCommands:(c=D.playbackCommands)==null?void 0:c.progressCommands,cf5:(S= D.playbackCommands)==null?void 0:S.clickthroughCommands,fullscreenCommands:(b=D.playbackCommands)==null?void 0:b.fullscreenCommands,activeViewViewableCommands:(n=D.playbackCommands)==null?void 0:n.activeViewViewableCommands,activeViewMeasurableCommands:(R=D.playbackCommands)==null?void 0:R.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(v=D.playbackCommands)==null?void 0:v.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(l=D.playbackCommands)== null?void 0:(A=l.activeViewTracking)==null?void 0:A.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(Hs=D.playbackCommands)==null?void 0:(u=Hs.activeViewTracking)==null?void 0:u.activeViewAudioMeasurableCommands,endFullscreenCommands:(D_=D.playbackCommands)==null?void 0:D_.endFullscreenCommands,abandonCommands:(q5=D.playbackCommands)==null?void 0:q5.abandonCommands,completeCommands:X}}; TFR=function(D,X,M,Q,h,H,t){return function(q,w){return wT1(D,w.slotId,q,H,function(T,L){var K=w.layoutId;T=t(T);return bj(X,K,L,h,T,"LAYOUT_TYPE_SURVEY",[new Yi(M),Q],M.adLayoutLoggingData)})}}; K6n=function(D,X,M,Q,h,H,t){if(!L69(D))return new G("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:D});var q=D.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[sLp(H,X,M,Q,function(w){var T=w.slotId;w=t(w);T=nx(h.G.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",T);var L={layoutId:T,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",N5:"core"},K=new $D(h.S,Q);return{layoutId:T,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Sh:new Map,layoutExitNormalTriggers:[K], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new l8(q)]),A5:w(L)}})]}; L69=function(D){D=g.Z(D==null?void 0:D.additionalPlayerOverlay,afo);if(!D)return!1;var X=D.slidingMessages;return D.title&&X&&X.length!==0?!0:!1}; Vem=function(D,X,M,Q,h){var H;if((H=D.playerOverlay)==null||!H.instreamSurveyAdRenderer)return function(){return[]}; if(!OXW(D))return function(){return new G("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:D})}; var t=D.playerOverlay.instreamSurveyAdRenderer,q=m1(t);return q<=0?function(){return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:t})}:function(w,T){var L=F6n(w,M,Q,function(K){var a=K.slotId; K=T(K);var F=nn(t);a=nx(h.G.get(),"LAYOUT_TYPE_SURVEY",a);var V={layoutId:a,layoutType:"LAYOUT_TYPE_SURVEY",N5:"core"},c=new $D(h.S,Q),S=new bA(h.S,a),b=new rM(h.S,a),n=new $dW(h.S);return{layoutId:a,layoutType:"LAYOUT_TYPE_SURVEY",Sh:new Map,layoutExitNormalTriggers:[c,n],layoutExitSkipTriggers:[S],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[b],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new AV(t),new mE(X),new B0(q/1E3),new f0(F)]),A5:K(V),adLayoutLoggingData:t.adLayoutLoggingData}}); w=K6n(D,M,L.slotId,Q,h,w,T);return w instanceof G?w:[L].concat(g.xW(w))}}; Sq9=function(D,X,M,Q,h,H,t,q){t=t===void 0?!1:t;var w=[];try{var T=[];if(M.renderer.linearAdSequenceRenderer)var L=function(S){S=$G_(S.slotId,M,X,h(S),Q,H,t);T=S.vhs;return S.Gk}; else if(M.renderer.instreamVideoAdRenderer)L=function(S){var b=S.slotId;S=h(S);var n=t,R=M.config.adPlacementConfig,v=BFo(R),l=v.yT,A=v.C9;v=M.renderer.instreamVideoAdRenderer;var Hs;if(v==null?0:(Hs=v.playerOverlay)==null?0:Hs.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var u=eW(v,n);Hs=Math.min(l+u.videoLengthSeconds*1E3,A);n=new TR(0,[u.videoLengthSeconds]);A=u.videoLengthSeconds;var D_=u.playerVars,q5=u.instreamAdPlayerOverlayRenderer,Lo=u.playerOverlayLayoutRenderer, Qs=u.adVideoId,S2=Z41(M),XC=u.Sh;u=u.EJ;var q_=v==null?void 0:v.adLayoutLoggingData;v=v==null?void 0:v.sodarExtensionData;b=nx(X.G.get(),"LAYOUT_TYPE_MEDIA",b);var th={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",N5:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Sh:XC,layoutExitNormalTriggers:[new BF(X.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new g0(Q),new Ql(A),new hH(D_), new NJ(l),new qJ(Hs),q5&&new vn(q5),Lo&&new d0(Lo),new mE(R),new Ik(Qs),new nH(n),new K0(S2),v&&new tH(v),new u8({current:null}),new Td({}),new yl(u)].filter(UGi)),A5:S(th),adLayoutLoggingData:q_}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var K=cG9(D,Q,M.adSlotLoggingData,L,q);w.push(K);for(var a=g.e(T),F=a.next();!F.done;F=a.next()){var V=F.value,c=V(D,h);if(c instanceof G)return c;w.push.apply(w,g.xW(c))}}catch(S){return new G(S,{errorMessage:S.message,AdPlacementRenderer:M,numberOfSurveyRenderers:ff2(M)})}return w}; ff2=function(D){D=(D.renderer.linearAdSequenceRenderer||{}).linearAds;return D!=null&&D.length?D.filter(function(X){var M,Q;return((M=g.Z(X,uA))==null?void 0:(Q=M.playerOverlay)==null?void 0:Q.instreamSurveyAdRenderer)!=null}).length:0}; $G_=function(D,X,M,Q,h,H,t){var q=X.config.adPlacementConfig,w=BFo(q),T=w.yT,L=w.C9;w=(X.renderer.linearAdSequenceRenderer||{}).linearAds;if(w==null||!w.length)throw new TypeError("Expected linear ads");var K=[],a={RQ:T,sj:0,tCF:K};w=w.map(function(V){return E$9(D,V,a,M,Q,q,h,L,t)}).map(function(V,c){c=new TR(c,K); return V(c)}); var F=w.map(function(V){return V.Y4}); return{Gk:yGi(M,D,T,F,q,Z41(X),Q,L,H),vhs:w.map(function(V){return V.mWf})}}; E$9=function(D,X,M,Q,h,H,t,q,w){var T=eW(g.Z(X,uA),w),L=M.RQ,K=M.sj,a=Math.min(L+T.videoLengthSeconds*1E3,q);M.RQ=a;M.sj++;M.tCF.push(T.videoLengthSeconds);var F,V,c=(F=g.Z(X,uA))==null?void 0:(V=F.playerOverlay)==null?void 0:V.instreamSurveyAdRenderer;if(T.adVideoId==="nPpU29QrbiU"&&c==null)throw new TypeError("Survey slate media has no survey overlay");return function(S){SW(T.playerVars,S);var b,n,R=T.videoLengthSeconds,v=T.playerVars,l=T.Sh,A=T.EJ,Hs=T.instreamAdPlayerOverlayRenderer,u=T.playerOverlayLayoutRenderer, D_=T.adVideoId,q5=(b=g.Z(X,uA))==null?void 0:b.adLayoutLoggingData;b=(n=g.Z(X,uA))==null?void 0:n.sodarExtensionData;n=nx(Q.G.get(),"LAYOUT_TYPE_MEDIA",D);var Lo={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",N5:"adapter"};S={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",Sh:l,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"adapter",clientMetadata:new dE([new g0(t),new Ql(R),new hH(v),new NJ(L),new qJ(a), new wE(K),new u8({current:null}),Hs&&new vn(Hs),u&&new d0(u),new mE(H),new Ik(D_),new nH(S),b&&new tH(b),c&&new E2(c),new Td({}),new yl(A)].filter(UGi)),A5:h(Lo),adLayoutLoggingData:q5};R=Vem(g.Z(X,uA),H,t,S.layoutId,Q);return{Y4:S,mWf:R}}}; eW=function(D,X){if(!D)throw new TypeError("Expected instream video ad renderer");if(!D.playerVars)throw new TypeError("Expected player vars in url encoded string");var M=dR(D.playerVars),Q=Number(M.length_seconds);if(isNaN(Q))throw new TypeError("Expected valid length seconds in player vars");var h=Number(D.trimmedMaxNonSkippableAdDurationMs);Q=isNaN(h)?Q:Math.min(Q,h/1E3);h=D.playerOverlay||{};h=h.instreamAdPlayerOverlayRenderer===void 0?null:h.instreamAdPlayerOverlayRenderer;var H=D.playerOverlay|| {};H=H.playerOverlayLayoutRenderer===void 0?null:H.playerOverlayLayoutRenderer;var t=M.video_id;t||(t=(t=D.externalVideoId)?t:void 0);if(!t)throw new TypeError("Expected valid video id in IVAR");if(X&&Q===0){var q;X=(q=Plp[t])!=null?q:Q}else X=Q;return{playerVars:M,videoLengthSeconds:X,instreamAdPlayerOverlayRenderer:h,playerOverlayLayoutRenderer:H,adVideoId:t,Sh:D.pings?QW(D.pings):new Map,EJ:MF(D.pings)}}; Z41=function(D){D=Number(D.driftRecoveryMs);return isNaN(D)||D<=0?null:D}; BFo=function(D){var X=D.adTimeOffset||{};D=X.offsetEndMilliseconds;X=Number(X.offsetStartMilliseconds);if(isNaN(X))throw new TypeError("Expected valid start offset");D=Number(D);if(isNaN(D))throw new TypeError("Expected valid end offset");return{yT:X,C9:D}}; mGs=function(D){var X,M=(X=rE(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:X.current;if(!M)return null;X=rE(D.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Q=D.layoutId,h=rE(D.clientMetadata,"metadata_type_content_cpn"),H=rE(D.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t=rE(D.clientMetadata,"metadata_type_player_underlay_renderer"),q=rE(D.clientMetadata,"metadata_type_ad_placement_config"),w=rE(D.clientMetadata,"metadata_type_video_length_seconds"); var T=Rw(D.clientMetadata,"metadata_type_layout_enter_ms")&&Rw(D.clientMetadata,"metadata_type_layout_exit_ms")?(rE(D.clientMetadata,"metadata_type_layout_exit_ms")-rE(D.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{B8:Q,contentCpn:h,zZ:M,Tb:X,instreamAdPlayerOverlayRenderer:H,instreamAdPlayerUnderlayRenderer:t,adPlacementConfig:q,videoLengthSeconds:w,MJ:T,inPlayerLayoutId:rE(D.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rE(D.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; eIo=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V){Q=x2(Q,"SLOT_TYPE_PLAYER_BYTES");D=n$9(h,D,t,M,Q,w,T);if(D instanceof G)return D;var c;T=(c=rE(D.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:c.layoutId;if(!T)return new G("Invalid adNotify layout");X=b4o(T,h,H,M,q,X,w,L,K,a,F,V,t);return X instanceof G?X:[D].concat(g.xW(X))}; b4o=function(D,X,M,Q,h,H,t,q,w,T,L,K,a){M=RI9(X,M,Q,H,t,q,w,T,L,K,a);if(M instanceof G)return M;D=If2(X,D,t,h,M);return D instanceof G?D:[].concat(g.xW(D.rj),[D.Lo])}; v$n=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F){X=RI9(D,X,M,h,H,q,w,T,L,K,a,F);if(X instanceof G)return X;D=g$H(D,M,H,t,Q,q.yq,X);return D instanceof G?D:D.rj.concat(D.Lo)}; RI9=function(D,X,M,Q,h,H,t,q,w,T,L,K){var a=Rz(Q);return a instanceof v0?new G(a):T.B.W().experiments.Z4("html5_refactor_in_player_slot_generation")?function(F){var V=new TR(0,[a.eL]);F=dGo(X,a.layoutId,a.Et,M,Iz(a.playerVars,a.Z_,H,w,V),a.eL,h,V,t(F),q.get(a.Et.externalVideoId),K);V=[];if(a.Et.playerOverlay.instreamAdPlayerOverlayRenderer){var c=mGs(F);if(!c)return Hb("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,F),{layout:F,rj:[]};V=[rGW(D, c.contentCpn,c.B8,function(b){return gD(X,b.slotId,"core",c,AH(L,b))},c.inPlayerSlotId)].concat(g.xW(V)); if(c.instreamAdPlayerUnderlayRenderer&&vx(T)){var S=c.instreamAdPlayerUnderlayRenderer;V=[i42(D,c.contentCpn,c.B8,function(b){return o$2(X,b.slotId,S,c.adPlacementConfig,c.B8,AH(L,b))})].concat(g.xW(V))}}return{layout:F, rj:V}}:function(F){var V=new TR(0,[a.eL]); return{layout:dGo(X,a.layoutId,a.Et,M,Iz(a.playerVars,a.Z_,H,w,V),a.eL,h,V,t(F),q.get(a.Et.externalVideoId),K),rj:[]}}}; Rz=function(D){if(!D.playerVars)return new v0("No playerVars available in InstreamVideoAdRenderer.");var X,M;if(D.elementId==null||D.playerVars==null||D.playerOverlay==null||((X=D.playerOverlay)==null?void 0:X.instreamAdPlayerOverlayRenderer)==null&&((M=D.playerOverlay)==null?void 0:M.playerOverlayLayoutRenderer)==null||D.pings==null||D.externalVideoId==null)return new v0("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:D});X=dR(D.playerVars);M=Number(X.length_seconds);isNaN(M)&& (M=0,Hb("Expected valid length seconds in player vars but got NaN"));return{layoutId:D.elementId,Et:D,playerVars:X,Z_:D.playerVars,eL:M}}; Iz=function(D,X,M,Q,h){D.iv_load_policy=Q;X=dR(X);if(X.cta_conversion_urls)try{D.cta_conversion_urls=JSON.parse(X.cta_conversion_urls)}catch(H){Hb(H)}M.e0&&(D.ctrl=M.e0);M.Az&&(D.ytr=M.Az);M.KA&&(D.ytrcc=M.KA);M.isMdxPlayback&&(D.mdx="1");D.vvt&&(D.vss_credentials_token=D.vvt,M.HW&&(D.vss_credentials_token_type=M.HW),M.mdxEnvironment&&(D.mdx_environment=M.mdxEnvironment));SW(D,h);return D}; Cl_=function(D){var X=new Map;D=g.e(D);for(var M=D.next();!M.done;M=D.next())(M=M.value.renderer.remoteSlotsRenderer)&&M.hostElementId&&X.set(M.hostElementId,M);return X}; dD=function(D){return D.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; O4i=function(D){return D!=null}; Gg9=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V){for(var c=[],S=g.e(D),b=S.next();!b.done;b=S.next())if(b=b.value,!eC2(b)&&!rvn(b)){var n=pTn(b,Q,M.g$);if(n instanceof G)return n;var R=void 0,v={slotId:b.adSlotMetadata.slotId,slotType:b.adSlotMetadata.slotType,slotPhysicalPosition:(R=b.adSlotMetadata.slotPhysicalPosition)!=null?R:1,N5:"core",slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers},l=g.Z(b.fulfillmentContent.fulfilledLayout, Qg);if(l){if(!MU(l))return new G("Invalid PlayerBytesAdLayoutRenderer");R=K&&!(dD(b)&&b.slotEntryTrigger.beforeContentVideoIdStartedTrigger);n=n.slotFulfillmentTriggers.some(function(A){return A instanceof Zz}); n=R?AGn(v,b.adSlotMetadata.triggerEvent,l,M,Q,H,D,a,n,F):Yqs(v,b.adSlotMetadata.triggerEvent,l,X,M,Q,h,H,t,q,w,T,D,L,b.adSlotMetadata.triggeringSourceLayoutId);if(n instanceof G)return n;l=[];V?l.push(new MJ({current:V})):l.push(new MJ({current:null}));dD(b)&&l.push(new bx({E$:dD(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));R&&l.push(new Td({}));M.yq&&l.push(new S5({}));b=Object.assign({},v,{clientMetadata:new dE(l),fulfilledLayout:n.layout,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData}); c.push.apply(c,g.xW(n.rj));c.push(b)}else if(R=g.Z(b.fulfillmentContent.fulfilledLayout,wD)){if(!bXo(R))return new G("Invalid PlayerUnderlayAdLayoutRenderer");R=lfW(R,Q,M.g$,H,v,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(R instanceof G)return R;b=Object.assign({},v,{clientMetadata:new dE([]),fulfilledLayout:R,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});c.push(b)}else if(R=g.Z(b.fulfillmentContent.fulfilledLayout,vU_)){if(!Cy(R.adLayoutMetadata)||!g.Z(R.renderingContent, tD))return new G("Invalid InPlayerOrganicOverlayAdLayoutRenderer");R=R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?JG1(R,Q,M.g$,H,v):new G("LayoutType ["+R.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(R instanceof G)return R;b=Object.assign({},v,{clientMetadata:new dE([]),fulfilledLayout:R,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});c.push(b)}else if(R=g.Z(b.fulfillmentContent.fulfilledLayout,IB5)){if(!cvn(R))return new G("Invalid AboveFeedAdLayoutRenderer"); R=xGs(R,Q,M.g$,H,v,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(R instanceof G)return R;b=Object.assign({},v,{clientMetadata:new dE([]),fulfilledLayout:R,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});c.push(b)}else if(R=g.Z(b.fulfillmentContent.fulfilledLayout,gUR)){if(!Cy(R.adLayoutMetadata)||!g.Z(R.renderingContent,Oi))return new G("Invalid BelowPlayerAdLayoutRenderer");R=xGs(R,Q,M.g$,H,v,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId); if(R instanceof G)return R;b=Object.assign({},v,{clientMetadata:new dE([]),fulfilledLayout:R,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});c.push(b)}else if(R=g.Z(b.fulfillmentContent.fulfilledLayout,TS)){if(!Hx(R))return new G("Invalid PlayerBytesSequenceItemAdLayoutRenderer");R=W6o(R,Q,M.g$,H,v,b.adSlotMetadata.triggerEvent);if(R instanceof G)return R;b=Object.assign({},v,{clientMetadata:new dE([]),fulfilledLayout:R,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});c.push(b)}else return new G("Unable to retrieve a client slot ["+ v.slotType+"] from a given AdSlotRenderer")}return c}; W6o=function(D,X,M,Q,h,H){var t={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,N5:"core"};X=rD(D,X,M);return X instanceof G?X:(M=g.Z(D.renderingContent,hD))&&M.pings?Object.assign({},t,{renderingContent:D.renderingContent,Sh:QW(M.pings)},X,{A5:AH(Q,h)(t),clientMetadata:new dE([new mE(ij(H)),new f0({progressCommands:M.progressCommands})]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData}):new G("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; xGs=function(D,X,M,Q,h,H,t){var q={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,N5:"core"};X=rD(D,X,M);if(X instanceof G)return X;M=[];M.push(new mE(ij(H)));H==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&t!==void 0&&M.push(new JV(t));return Object.assign({},q,{renderingContent:D.renderingContent,Sh:new Map([["impression",zI5(D)]])},X,{A5:AH(Q,h)(q),clientMetadata:new dE(M),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})}; lfW=function(D,X,M,Q,h,H,t){if(D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var q=g.Z(D.renderingContent,NU),w=g.Z(D.renderingContent,tD);t=new Map;if(q){t=g.Z(q.sidePanel,mdm);if(!t){D=new G("DismissablePanelTextPortraitImageRenderer is missing");break a}t=new Map([["impression",t.impressionPings||[]],["resume",t.resumePings||[]]])}else if(!w){D=new G("AdsEngagementPanelSectionListViewModel is missing");break a}q={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType, N5:"core"};X=rD(D,X,M);D=X instanceof G?X:Object.assign({},q,{renderingContent:D.renderingContent,Sh:t},X,{A5:AH(Q,h)(q),clientMetadata:new dE([new mE(ij(H))]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})}else D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.Z(D.renderingContent,yvH)?(t={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,N5:"core"},X=rD(D,X,M),D=X instanceof G?X:Object.assign({},t,{renderingContent:D.renderingContent,Sh:new Map}, X,{A5:AH(Q,h)(t),clientMetadata:new dE([new mE(ij(H))]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})):D=new G("CounterfactualRenderer is missing"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?D=new G("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?D=new G("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.Z(D.renderingContent,qU)?(H={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,N5:"core"},X=rD(D,X,M),D=X instanceof G?X:t?Object.assign({},H,{renderingContent:D.renderingContent,Sh:new Map},X,{A5:AH(Q,h)(H),clientMetadata:new dE([new JV(t)]),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData}):new G("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):D=new G("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): D.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.Z(D.renderingContent,tD)?(H={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,N5:"core"},X=rD(D,X,M),D=X instanceof G?X:Object.assign({},H,{renderingContent:D.renderingContent,Sh:new Map([])},X,{A5:AH(Q,h)(H),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new dE([])})):D=new G("AdsEngagementPanelSectionListViewModel is missing"):D=new G("LayoutType ["+D.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");return D}; JG1=function(D,X,M,Q,h){if(!g.Z(D.renderingContent,tD))return new G("AdsEngagementPanelSectionListViewModel is missing");var H={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,N5:"core"};X=rD(D,X,M);return X instanceof G?X:Object.assign({},H,{renderingContent:D.renderingContent,Sh:new Map([])},X,{A5:AH(Q,h)(H),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new dE([])})}; AGn=function(D,X,M,Q,h,H,t,q,w,T){if((T==null?void 0:T.lT)===void 0||(T==null?void 0:T.iT)===void 0)return new G("Cached ad break range from cue point is missing");var L=rD(M,h,Q.g$);if(L instanceof G)return L;L={layoutExitMuteTriggers:[],layoutExitNormalTriggers:L.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.Z(M.renderingContent,uA))return D=kgp(D,X,M,L,h,H,t,Q.g$,T.lT,T.iT),D instanceof G?D:D.C6===void 0?new G("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:D.layout,rj:[D.C6]};var K=g.Z(M.renderingContent,zR);if(K){if(!Cy(M.adLayoutMetadata))return new G("Invalid ad layout metadata");if(!kD(K))return new G("Invalid sequential layout");K=K.sequentialLayouts.map(function(a){return a.playerBytesAdLayoutRenderer}); D=u1R(D,X,M,L,K,h,Q,H,t,q,T.lT,T.iT,w);return D instanceof G?D:{layout:D.nt,rj:D.rj}}return new G("Not able to convert a sequential layout")}; u1R=function(D,X,M,Q,h,H,t,q,w,T,L,K,a){var F=jLs(h,L,K);if(F instanceof G)return F;var V=[],c=[];F=g.e(F);for(var S=F.next();!S.done;S=F.next()){var b=S.value;S=D;var n=h[b.sj],R=b,v=X;b=H;var l=t,A=q,Hs=w,u=oz(n);if(u instanceof G)S=u;else{var D_={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,N5:"adapter"};R=D2s(v,n,R,b);R instanceof G?S=R:(S=Object.assign({},D_,Cn,{Sh:u,renderingContent:n.renderingContent,clientMetadata:new dE(R),A5:AH(A,S)(D_),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}), S=(n=OE(Hs,S,b,l.g$,A,void 0,!0))?n instanceof G?n:{layout:S,C6:n}:new G("Expecting associatedInPlayerSlot"))}if(S instanceof G)return S;V.push(S.layout);c.push(S.C6)}h={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,N5:"core"};X=[new K0(Number(M.driftRecoveryMs)),new NJ(L),new qJ(K),new mE(ij(X)),new ms(T),new Td({})];a&&X.push(new e5({}));return{nt:Object.assign({},h,Q,{A6:V,Sh:new Map,clientMetadata:new dE(X),A5:AH(q,D)(h)}),rj:c}}; kgp=function(D,X,M,Q,h,H,t,q,w,T){if(!MU(M))return new G("Invalid PlayerBytesAdLayoutRenderer");var L=oz(M);if(L instanceof G)return L;var K={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,N5:"core"},a=g.Z(M.renderingContent,uA);if(!a)return new G("Invalid rendering content for DAI media layout");a=eW(a,!1);w={MU:a,sj:0,RQ:w,Yv:Math.min(w+a.videoLengthSeconds*1E3,T),zQ:new TR(0,[a.videoLengthSeconds])};var F;T=(F=Number(M.driftRecoveryMs))!=null?F:void 0;X=D2s(X,M,w, h,T);if(X instanceof G)return X;D=Object.assign({},K,Q,{Sh:L,renderingContent:M.renderingContent,clientMetadata:new dE(X),A5:AH(H,D)(K),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});return(h=OE(t,D,h,q,H,void 0,!0))?h instanceof G?h:{layout:D,C6:h}:new G("Expecting associatedInPlayerSlot")}; Yqs=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V){var c=rD(M,H,h.g$);if(c instanceof G)return c;if(g.Z(M.renderingContent,uA)){w=Xni([M],h,w);if(w instanceof G)return w;if(w.length!==1)return new G("Only expected one media layout.");D=MT1(D,X,M,c,w[0],void 0,"core",Q,H,t,q,T,a,F,h.g$,void 0,V);return D instanceof G?D:{layout:D.layout,rj:D.C6?[D.C6]:[]}}var S=g.Z(M.renderingContent,zR);if(S){if(!Cy(M.adLayoutMetadata))return new G("Invalid ad layout metadata");if(!kD(S))return new G("Invalid sequential layout"); S=S.sequentialLayouts.map(function(b){return b.playerBytesAdLayoutRenderer}); D=Qkp(D,X,M.adLayoutMetadata,c,S,Q,H,h,w,t,q,T,L,K,a,F,V);return D instanceof G?D:{layout:D.nt,rj:D.rj}}return new G("Not able to convert a sequential layout")}; Qkp=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c,S){var b=new Rk({current:null}),n=Xni(h,q,w);if(n instanceof G)return n;w=[];for(var R=[],v=void 0,l=0;l0&&(v.push(c),v.push(new eT(R.adPodSkipTarget)));(H=T.get(R.externalVideoId))&&v.push(new $T(H));H=v}else H=new G("Invalid vod media renderer")}if(H instanceof G)return H;D=Object.assign({},t, Q,{Sh:b,renderingContent:M.renderingContent,clientMetadata:new dE(H),A5:AH(L,D)(t),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});M=g.Z(M.renderingContent,uA);if(!M||!GR(M))return new G("Invalid meida renderer");K=yg(K,M.externalVideoId);K.instreamVideoAdRenderer=M;K.TW="AD_PLACEMENT_KIND_START";return F?(w=OE(a,D,w,V,L,c,!1),w instanceof G?w:tTm(D.layoutId,a)&&w?{layout:Object.assign({},D,{clientMetadata:new dE(H.concat(new ok(w)))})}:{layout:D,C6:w}):{layout:D}}; hWp=function(D,X,M,Q,h){if(!MU(X))return new G("Invalid PlayerBytesAdLayoutRenderer");var H=g.Z(X.renderingContent,Oz);if(!H||H.durationMilliseconds===void 0)return new G("Invalid endcap renderer");var t={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,N5:"adapter"};Q=[new Z0(H.durationMilliseconds),new f0({impressionCommands:void 0,abandonCommands:H.abandonCommands?[{commandExecutorCommand:H.abandonCommands}]:void 0,completeCommands:H.completionCommands}),new mE(Q), new Gb("LAYOUT_TYPE_ENDCAP")];if(h){Q.push(new b8(h.zQ.adPodIndex-1));Q.push(new wE(h.zQ.adPodIndex));var q;Q.push(new eT((q=h.adPodSkipTarget)!=null?q:-1))}return Object.assign({},t,Cn,{renderingContent:X.renderingContent,clientMetadata:new dE(Q),Sh:H.skipPings?new Map([["skip",H.skipPings]]):new Map,A5:AH(M,D)(t),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})}; OE=function(D,X,M,Q,h,H,t){D=D.filter(function(K){return K.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&K.adSlotMetadata.triggeringSourceLayoutId===X.layoutId}); if(D.length!==0){if(D.length!==1)return new G("Invalid InPlayer slot association for the given PlayerBytes layout");var q=D[0],w=pTn(q,M,Q);if(w instanceof G)return w;var T;D={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(T=q.adSlotMetadata.slotPhysicalPosition)!=null?T:1,N5:"core",slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:w.slotExpirationTriggers};T=g.Z(q.fulfillmentContent.fulfilledLayout, RC2);if(!T||!EUH(T))return new G("Invalid InPlayerAdLayoutRenderer");w={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,N5:"core"};M=rD(T,M,Q);if(M instanceof G)return M;Q=[];var L=T.adLayoutMetadata.layoutType;t&&Q.push(new Td({}));if(L==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")Q.push.apply(Q,g.xW(N0H(q.adSlotMetadata.triggerEvent,X))),(H=qdi(M,X.layoutId))&&Q.push(new xi(H));else if(L==="LAYOUT_TYPE_ENDCAP"||L==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){Q.push(new mE(ij(q.adSlotMetadata.triggerEvent))); if(L==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new G("Cannot parse endcap layout since AdUxReadyApi is not provided");H&&Q.push(H)}else return new G("Not able to parse an SDF InPlayer layout");h=Object.assign({},w,M,{renderingContent:T.renderingContent,Sh:new Map,A5:AH(h,D)(w),clientMetadata:new dE(Q),adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},D,{fulfilledLayout:h,clientMetadata:new dE([])})}}; N0H=function(D,X){var M=[];M.push(new mE(ij(D)));M.push(new JV(X.layoutId));(D=rE(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&M.push(new u8(D));(D=rE(X.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&M.push(new Rk(D));(D=rE(X.clientMetadata,"metadata_type_remote_slots_data"))&&M.push(new $T(D));(D=rE(X.clientMetadata,"metadata_type_ad_next_params"))&&M.push(new ZU(D));(D=rE(X.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&M.push(new Ud(D));(D= rE(X.clientMetadata,"metadata_type_ad_pod_info"))&&M.push(new nH(D));(X=rE(X.clientMetadata,"metadata_type_ad_video_id"))&&M.push(new Ik(X));return M}; HHp=function(D,X,M,Q,h,H){function t(T){return pn(X,T)} var q=Q.mR.inPlayerSlotId,w={layoutId:Q.mR.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",N5:"core"};M={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:new Fz(t,D),slotFulfillmentTriggers:[new ek(t,q)],slotExpirationTriggers:[new R$(t,q),new me(t,M)]};D=Object.assign({},w,{layoutExitNormalTriggers:[new $D(t,D)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Sh:new Map,clientMetadata:new dE([new Od(Q.mR), new mE(Q.adPlacementConfig),h]),A5:AH(H,M)(w),adLayoutLoggingData:Q.mR.adLayoutLoggingData});return Object.assign({},M,{clientMetadata:new dE([new aw(D)])})}; tTm=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next())if(M=M.value,M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var Q=g.Z(M.fulfillmentContent.fulfilledLayout,wD);if(Q&&(Q=g.Z(Q.renderingContent,NU))&&Q.associatedPlayerBytesLayoutId===D)return M}}; pTn=function(D,X,M){var Q=fn(D.slotEntryTrigger,X,M);if(Q instanceof G)return Q;for(var h=[],H=g.e(D.slotFulfillmentTriggers),t=H.next();!t.done;t=H.next()){t=fn(t.value,X,M);if(t instanceof G)return t;h.push(t)}H=[];D=g.e(D.slotExpirationTriggers);for(t=D.next();!t.done;t=D.next()){t=fn(t.value,X,M);if(t instanceof G)return t;H.push(t)}return{slotEntryTrigger:Q,slotFulfillmentTriggers:h,slotExpirationTriggers:H}}; rD=function(D,X,M){for(var Q=[],h=g.e(D.layoutExitNormalTriggers||[]),H=h.next();!H.done;H=h.next()){H=fn(H.value,X,M);if(H instanceof G)return H;Q.push(H)}h=[];H=g.e(D.layoutExitSkipTriggers||[]);for(var t=H.next();!t.done;t=H.next()){t=fn(t.value,X,M);if(t instanceof G)return t;h.push(t)}H=[];t=g.e(D.layoutExitMuteTriggers||[]);for(var q=t.next();!q.done;q=t.next()){q=fn(q.value,X,M);if(q instanceof G)return q;H.push(q)}t=[];D=g.e(D.layoutExitUserInputSubmittedTriggers||[]);for(q=D.next();!q.done;q= D.next()){q=fn(q.value,X,M);if(q instanceof G)return q;t.push(q)}return{layoutExitNormalTriggers:Q,layoutExitSkipTriggers:h,layoutExitMuteTriggers:H,layoutExitUserInputSubmittedTriggers:t,layoutExitUserCancelledTriggers:[]}}; oz=function(D){var X=g.Z(D.renderingContent,uA);if(X==null?0:X.pings)return QW(X.pings);D=g.Z(D.renderingContent,Oz);return(D==null?0:D.skipPings)?new Map([["skip",D.skipPings]]):new Map}; D2s=function(D,X,M,Q,h){X=g.Z(X.renderingContent,uA);if(!X)return new G("Invalid rendering content for DAI media layout");D=[new g0(Q),new Ql(M.MU.videoLengthSeconds),new hH(M.MU.playerVars),new NJ(M.RQ),new qJ(M.Yv),new wE(M.sj),new mE(ij(D)),new Ik(M.MU.adVideoId),new nH(M.zQ),X.sodarExtensionData&&new tH(X.sodarExtensionData),new u8({current:null}),new Td({}),new yl(MF(X.pings))].filter(O4i);h!==void 0&&D.push(new K0(h));return D}; jLs=function(D,X,M){D=D.map(function(w){return eW(g.Z(w.renderingContent,uA),!1)}); var Q=D.map(function(w){return w.videoLengthSeconds}),h=Q.map(function(w,T){return new TR(T,Q)}),H=X,t=M,q=[]; D.forEach(function(w,T){t=Math.min(H+w.videoLengthSeconds*1E3,M);SW(w.playerVars,h[T]);q.push({MU:w,RQ:H,Yv:t,sj:T,zQ:h[T]});H=t}); return q}; Xni=function(D,X,M){for(var Q=[],h=g.e(D),H=h.next();!H.done;H=h.next())if(H=g.Z(H.value.renderingContent,uA)){if(!GR(H))return new G("Invalid vod media renderer");Q.push(wnW(H))}h=Q.map(function(K){return K.eL}); H=[];for(var t=0,q=0;q0?q5:-1;else if(S2= g.Z(Qs,Oz)){Qs=U25(D,X,M,S2,H,c,q,Hs,q5);if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);S.push(Qs.EW);b=[].concat(g.xW(Qs.t_),g.xW(b));n=[].concat(g.xW(Qs.eS),g.xW(n));Qs.C6&&(D_=[Qs.C6].concat(g.xW(D_)))}else if(S2=g.Z(Qs,Dh)){if(F===void 0){F=new G("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:S2});break a}Qs=SdR(D,X,M,H,S2,A,q,F,c,mV(L,"supports_multi_step_on_desktop"));if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);S.push(Qs.EW);Qs.C6&&D_.push(Qs.C6); b=[].concat(g.xW(Qs.t_),g.xW(b));n=[].concat(g.xW(Qs.eS),g.xW(n));R=[].concat(g.xW(Qs.w1),g.xW(R));v=[].concat(g.xW(Qs.Ie),g.xW(v));l=[A].concat(g.xW(l))}else if(Qs=g.Z(Qs,XQ)){Qs=Eis(D,X,M,H,Qs,A,q,c);if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);S.push(Qs.EW);Qs.C6&&D_.push(Qs.C6);n=[].concat(g.xW(Qs.eS),g.xW(n))}else{F=new G("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={A6:S,layoutExitSkipTriggers:b,layoutExitUserInputSubmittedTriggers:R,layoutExitUserCancelledTriggers:v,layoutExitMuteTriggers:n, mM:l,rj:D_}}}else a:if(c=IUm(Q),c instanceof G)F=c;else{S=0;b=[];n=[];R=[];v=[];l=[];A=[];Hs=new jT({current:null});u=new Rk({current:null});D_=!1;Lo=[];q5=-1;V=g.e(Q);for(Qs=V.next();!Qs.done;Qs=V.next())if(Qs=Qs.value,g.Z(Qs,jk)){Qs=cVR(X,M,g.Z(Qs,jk),q);if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);b.push(Qs.EW);n=[].concat(g.xW(Qs.t_),g.xW(n));R=[].concat(g.xW(Qs.eS),g.xW(R));Qs.C6&&(Lo=[Qs.C6].concat(g.xW(Lo)))}else if(g.Z(Qs,uA)){q5=Rz(g.Z(Qs,uA));if(q5 instanceof v0){F=new G(q5);break a}Qs=new TR(S, c);Qs=gio(X,q5.layoutId,q5.Et,M,Iz(q5.playerVars,q5.Z_,t,T,Qs),q5.eL,H,Qs,q(a),u,w.get(q5.Et.externalVideoId),void 0,K);S++;b.push(Qs.EW);n=[].concat(g.xW(Qs.t_),g.xW(n));R=[].concat(g.xW(Qs.eS),g.xW(R));D_||(A.push(u),D_=!0);q5=(q5=q5.Et.adPodSkipTarget)&&q5>0?q5:-1}else if(g.Z(Qs,Oz)){Qs=U25(D,X,M,g.Z(Qs,Oz),H,S,q,u,q5);if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);b.push(Qs.EW);n=[].concat(g.xW(Qs.t_),g.xW(n));R=[].concat(g.xW(Qs.eS),g.xW(R));Qs.C6&&(Lo=[Qs.C6].concat(g.xW(Lo)))}else if(g.Z(Qs,Dh)){if(F=== void 0){F=new G("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Z(Qs,Dh)});break a}Qs=SdR(D,X,M,H,g.Z(Qs,Dh),Hs,q,F,S,mV(L,"supports_multi_step_on_desktop"));if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);b.push(Qs.EW);Qs.C6&&Lo.push(Qs.C6);n=[].concat(g.xW(Qs.t_),g.xW(n));R=[].concat(g.xW(Qs.eS),g.xW(R));v=[].concat(g.xW(Qs.w1),g.xW(v));l=[].concat(g.xW(Qs.Ie),g.xW(l));A=[Hs].concat(g.xW(A))}else if(g.Z(Qs,XQ)){Qs=Eis(D,X,M,H,g.Z(Qs,XQ),Hs,q,S); if(Qs instanceof G){F=Qs;break a}Qs=Qs(a);b.push(Qs.EW);Qs.C6&&Lo.push(Qs.C6);R=[].concat(g.xW(Qs.eS),g.xW(R))}else{F=new G("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={A6:b,layoutExitSkipTriggers:n,layoutExitUserInputSubmittedTriggers:v,layoutExitUserCancelledTriggers:l,layoutExitMuteTriggers:R,mM:A,rj:Lo}}F instanceof G?a=F:(l=a.slotId,c=F.A6,S=F.layoutExitSkipTriggers,b=F.layoutExitMuteTriggers,n=F.layoutExitUserInputSubmittedTriggers,R=F.mM,a=q(a),v=h?h.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES", l=h?h.layoutId:nx(X.G.get(),v,l),A={layoutId:l,layoutType:v,N5:"core"},a={layout:{layoutId:l,layoutType:v,Sh:new Map,layoutExitNormalTriggers:[new PF(X.S,l)],layoutExitSkipTriggers:S,layoutExitMuteTriggers:b,layoutExitUserInputSubmittedTriggers:n,layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new D0(c)].concat(g.xW(R))),A5:a(A)},rj:F.rj});return a}}; IUm=function(D){var X=[];D=g.e(D);for(var M=D.next();!M.done;M=D.next())if(M=M.value,g.Z(M,uA)){M=Rz(g.Z(M,uA));if(M instanceof v0)return new G(M);X.push(M.eL)}return X}; d2n=function(D,X,M,Q,h,H,t,q){if(!Cm5(M,q===void 0?!1:q))return new G("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:M});var w=m1(M);if(w<=0)return new G("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:M});var T=new jT({current:null}),L=TFR(D,X,M,T,Q,H,t);return viR(D,Q,H,w,h,function(K,a){var F=K.slotId,V=nn(M);K=t(K);F=nx(X.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);var c={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",N5:"core"}, S=L(F,a),b=rE(S.clientMetadata,"metadata_type_fulfilled_layout");b||Hb("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");V=[new mE(Q),new Z0(w),new f0(V),T];b&&V.push(new Gb(b.layoutType));return{Djy:{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Sh:new Map,layoutExitNormalTriggers:[new PF(X.S,F)],layoutExitSkipTriggers:[new bA(X.S,a.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new rM(X.S,a.layoutId)], layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE(V),A5:K(c)},uFy:S}})}; rVm=function(D){if(!Avs(D))return!1;var X=g.Z(D.adVideoStart,xw);return X?g.Z(D.linearAd,uA)&&xD(X)?!0:(Hb("Invalid Sandwich with notify"),!1):!1}; iHd=function(D){if(D.linearAds==null)return!1;D=g.Z(D.adStart,xw);return D?xD(D)?!0:(Hb("Invalid LASR with notify"),!1):!1}; oi1=function(D){if(!pzn(D))return!1;D=g.Z(D.adStart,xw);return D?xD(D)?!0:(Hb("Invalid LASR with notify"),!1):!1}; Wx=function(D,X,M,Q,h,H,t,q,w,T){this.U=D;this.G=X;this.S=M;this.bj=Q;this.iH=h;this.Y=H;this.Qf=t;this.r6=q;this.yB=w;this.loadPolicy=T===void 0?1:T}; UE=function(D,X,M,Q,h,H,t,q,w,T,L){var K=[];if(X.length===0&&Q.length===0&&M.length===0)return K;X=X.filter(WF);var a=M.filter(ddH),F=Q.filter(WF),V=new Map,c=Cl_(X),S=M.some(function(th){var Jd;return(th==null?void 0:(Jd=th.adSlotMetadata)==null?void 0:Jd.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),b=M.some(function(th){var Jd; return(th==null?void 0:(Jd=th.adSlotMetadata)==null?void 0:Jd.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),n=M.some(function(th){var Jd; return(th==null?void 0:(Jd=th.adSlotMetadata)==null?void 0:Jd.slotType)==="SLOT_TYPE_IN_PLAYER"}),R=M.some(function(th){var Jd,Gp; return(th==null?void 0:(Jd=th.adSlotMetadata)==null?void 0:Jd.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(th==null?void 0:(Gp=th.adSlotMetadata)==null?void 0:Gp.slotType)==="SLOT_TYPE_ABOVE_FEED"}),v=M.some(function(th){var Jd; return(th==null?void 0:(Jd=th.adSlotMetadata)==null?void 0:Jd.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); M=M.some(function(th){var Jd;return(th==null?void 0:(Jd=th.adSlotMetadata)==null?void 0:Jd.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(S||b||n||R||v||M)T=Gg9(a,X,q,h,c,D.iH.get(),D.loadPolicy,V,D.bj.get(),D.U.get(),n,t,w,T,L),T instanceof G?Hb(T,void 0,void 0,{contentCpn:h}):K.push.apply(K,g.xW(T));T=g.e(X);for(M=T.next();!M.done;M=T.next())M=M.value,b=C8p(D,V,M,h,H,t,S,q,c,w,a,D.bj.get().B.W().experiments.Z4("html5_enable_triggering_cuepoint_for_slot")?L:void 0),b instanceof G?Hb(b,void 0,void 0,{renderer:M.renderer,config:M.config.adPlacementConfig,kind:M.config.adPlacementConfig.kind,contentCpn:h,daiEnabled:t}):K.push.apply(K, g.xW(b));OHm(D.bj.get())||(H=pn1(D,F,h,q,c,V),K.push.apply(K,g.xW(H)));if(D.Y===null||t&&!q.hc){var l,A,Hs;D=q.yq&&X.length===1&&((l=X[0].config)==null?void 0:(A=l.adPlacementConfig)==null?void 0:A.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Hs=X[0].renderer)==null?void 0:Hs.adBreakServiceRenderer);if(!K.length&&!D){var u,D_,q5,Lo;Hb("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":X.length,contentCpn:h,"first APR kind":(u=X[0])==null?void 0: (D_=u.config)==null?void 0:(q5=D_.adPlacementConfig)==null?void 0:q5.kind,renderer:(Lo=X[0])==null?void 0:Lo.renderer})}return K}l=Q.filter(WF);K.push.apply(K,g.xW(NF2(V,l,D.G.get(),D.Y,h,S)));if(!K.length){var Qs,S2,XC,q_;Hb("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":X.length,contentCpn:h,daiEnabled:t.toString(),"first APR kind":(Qs=X[0])==null?void 0:(S2=Qs.config)==null?void 0:(XC=S2.adPlacementConfig)==null?void 0:XC.kind,renderer:(q_=X[0])==null? void 0:q_.renderer})}return K}; pn1=function(D,X,M,Q,h,H){function t(a){return AH(D.iH.get(),a)} var q=[];X=g.e(X);for(var w=X.next();!w.done;w=X.next()){w=w.value;var T=w.renderer,L=T.sandwichedLinearAdRenderer,K=T.linearAdSequenceRenderer;L&&rVm(L)?(Hb("Found AdNotify with SandwichedLinearAdRenderer"),K=g.Z(L.adVideoStart,xw),L=g.Z(L.linearAd,uA),EE(H,T,w.config.adPlacementConfig.kind),T=void 0,K=b4o((T=K)==null?void 0:T.layout.layoutId,D.G.get(),D.S.get(),w.config.adPlacementConfig,w.adSlotLoggingData,L,M,Q,t,h,D.loadPolicy,D.bj.get(),D.iH.get()),K instanceof G?Hb(K):q.push.apply(q,g.xW(K))): K&&(!K.adLayoutMetadata&&iHd(K)||K.adLayoutMetadata&&oi1(K))&&(Hb("Found AdNotify with LinearAdSequenceRenderer"),EE(H,T,w.config.adPlacementConfig.kind),T=void 0,L=yVo((T=g.Z(K.adStart,xw))==null?void 0:T.layout.layoutId,D.G.get(),D.S.get(),w.config.adPlacementConfig,w.adSlotLoggingData,K.linearAds,Cy(K.adLayoutMetadata)?K.adLayoutMetadata:void 0,M,Q,t,h,D.loadPolicy,D.bj.get()),L instanceof G?Hb(L):q.push.apply(q,g.xW(L)))}return q}; C8p=function(D,X,M,Q,h,H,t,q,w,T,L,K){function a(n){return AH(D.iH.get(),n)} var F=M.renderer,V=M.config.adPlacementConfig,c=V.kind,S=M.adSlotLoggingData,b=q.hc&&c==="AD_PLACEMENT_KIND_START";b=H&&!b;if(F.adsEngagementPanelRenderer!=null)return Px(X,M.elementId,c,F.adsEngagementPanelRenderer.isContentVideoEngagementPanel,F.adsEngagementPanelRenderer.adVideoId,F.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.adsEngagementPanelRenderer;n=AH(D.iH.get(),n);return GS(A,Hs,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new $i(u),R,v,u.impressionPings,n,F.adsEngagementPanelRenderer.adLayoutLoggingData,l)}),[]; if(F.adsEngagementPanelLayoutViewModel)return Px(X,M.elementId,c,F.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,F.adsEngagementPanelLayoutViewModel.adVideoId,F.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.adsEngagementPanelLayoutViewModel;n=AH(D.iH.get(),n);return zS(A,Hs,"LAYOUT_TYPE_PANEL",new Bn(u),R,v,n,F.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,l)}),[]; if(F.actionCompanionAdRenderer!=null){if(F.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Me2(D.G.get(),D.Y,D.S.get(),F.actionCompanionAdRenderer,V,S,Q,a);Px(X,M.elementId,c,F.actionCompanionAdRenderer.isContentVideoCompanion,F.actionCompanionAdRenderer.adVideoId,F.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.actionCompanionAdRenderer;n=AH(D.iH.get(),n);return GS(A,Hs,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new FM(u),R,v,u.impressionPings,n,F.actionCompanionAdRenderer.adLayoutLoggingData,l)})}else if(F.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(F.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return QLd(D.G.get(),D.Y,D.S.get(),F.topBannerImageTextIconButtonedLayoutViewModel,V,S,Q,a); Px(X,M.elementId,c,F.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,F.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,F.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.topBannerImageTextIconButtonedLayoutViewModel;n=AH(D.iH.get(),n);return zS(A,Hs,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new VJ(u),R,v,n,F.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,l)})}else if(F.imageCompanionAdRenderer)Px(X, M.elementId,c,F.imageCompanionAdRenderer.isContentVideoCompanion,F.imageCompanionAdRenderer.adVideoId,F.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.imageCompanionAdRenderer; n=AH(D.iH.get(),n);return GS(A,Hs,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new fH(u),R,v,u.impressionPings,n,F.imageCompanionAdRenderer.adLayoutLoggingData,l)}); else if(F.bannerImageLayoutViewModel)Px(X,M.elementId,c,F.bannerImageLayoutViewModel.isContentVideoCompanion,F.bannerImageLayoutViewModel.adVideoId,F.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.bannerImageLayoutViewModel;n=AH(D.iH.get(),n);return zS(A,Hs,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ST(u),R,v,n,F.bannerImageLayoutViewModel.adLayoutLoggingData,l)}); else if(F.shoppingCompanionCarouselRenderer)Px(X,M.elementId,c,F.shoppingCompanionCarouselRenderer.isContentVideoCompanion,F.shoppingCompanionCarouselRenderer.adVideoId,F.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,V,S,function(n,R,v,l){var A=D.S.get(),Hs=n.slotId,u=F.shoppingCompanionCarouselRenderer;n=AH(D.iH.get(),n);return GS(A,Hs,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Ed(u),R,v,u.impressionPings,n,F.shoppingCompanionCarouselRenderer.adLayoutLoggingData,l)}); else if(F.adBreakServiceRenderer){if(!DGH(M))return[];if(c==="AD_PLACEMENT_KIND_PAUSE")return jQp(D.G.get(),V,S,M.renderer.adBreakServiceRenderer,Q);if(c!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&c!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return ubd(D.G.get(),V,S,M.renderer.adBreakServiceRenderer,Q,h,H);q.yq||Hb("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:c,adPlacementConfig:V,daiEnabledForContentVideo:String(H),isServedFromLiveInfra:String(q.yq),clientPlaybackNonce:q.clientPlaybackNonce}); if(c==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!D.Qf)return new G("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!D.yB)return new G("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");D.yB.jP({adPlacementRenderer:M,contentCpn:Q,g$:h});h=D.Qf.get().getCurrentTimeSec(1,!1);return AVp(D.G.get(),M.renderer.adBreakServiceRenderer,V,h,Q,S,H)}if(!D.r6)return new G("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); D.r6.jP({adPlacementRenderer:M,contentCpn:Q,g$:h})}else{if(F.clientForecastingAdRenderer)return KEn(D.G.get(),D.S.get(),V,S,F.clientForecastingAdRenderer,Q,h,a);if(F.invideoOverlayAdRenderer)return $2d(D.G.get(),D.S.get(),V,S,F.invideoOverlayAdRenderer,Q,h,a);if(F.instreamAdPlayerOverlayRenderer)return FEs(D.G.get(),D.S.get(),V,S,F.instreamAdPlayerOverlayRenderer,Q,a);if((F.linearAdSequenceRenderer||F.instreamVideoAdRenderer)&&b)return Sq9(D.G.get(),D.S.get(),M,Q,a,T,!D.bj.get().B.W().T("html5_override_ad_video_length_killswitch"), K);if(F.linearAdSequenceRenderer&&!b){if(t)return[];EE(X,F,c);if(F.linearAdSequenceRenderer.adLayoutMetadata){if(!pzn(F.linearAdSequenceRenderer))return new G("Received invalid LinearAdSequenceRenderer.")}else if(F.linearAdSequenceRenderer.linearAds==null)return new G("Received invalid LinearAdSequenceRenderer.");if(g.Z(F.linearAdSequenceRenderer.adStart,xw)){Hb("Found AdNotify in LinearAdSequenceRenderer");M=g.Z(F.linearAdSequenceRenderer.adStart,xw);if(!fB2(M))return new G("Invalid AdMessageRenderer."); H=F.linearAdSequenceRenderer.linearAds;return P8m(D.U.get(),D.G.get(),D.S.get(),D.iH.get(),V,S,M,Cy(F.linearAdSequenceRenderer.adLayoutMetadata)?F.linearAdSequenceRenderer.adLayoutMetadata:void 0,H,Q,h,q,a,w,D.loadPolicy,D.bj.get())}return RWR(D.G.get(),D.S.get(),V,S,F.linearAdSequenceRenderer.linearAds,Cy(F.linearAdSequenceRenderer.adLayoutMetadata)?F.linearAdSequenceRenderer.adLayoutMetadata:void 0,Q,h,q,a,w,D.loadPolicy,D.bj.get(),L)}if(!F.remoteSlotsRenderer||H){if(F.instreamVideoAdRenderer&& !b){if(t)return[];EE(X,F,c);return v$n(D.G.get(),D.S.get(),V,S,F.instreamVideoAdRenderer,Q,h,q,a,w,D.loadPolicy,D.bj.get(),D.iH.get(),L)}if(F.instreamSurveyAdRenderer)return d2n(D.G.get(),D.S.get(),F.instreamSurveyAdRenderer,V,S,Q,a,mV(D.bj.get(),"supports_multi_step_on_desktop"));if(F.sandwichedLinearAdRenderer!=null)return Avs(F.sandwichedLinearAdRenderer)?g.Z(F.sandwichedLinearAdRenderer.adVideoStart,xw)?(Hb("Found AdNotify in SandwichedLinearAdRenderer"),M=g.Z(F.sandwichedLinearAdRenderer.adVideoStart, xw),fB2(M)?(H=g.Z(F.sandwichedLinearAdRenderer.linearAd,uA))?eIo(M,H,V,D.U.get(),D.G.get(),D.S.get(),D.iH.get(),S,Q,h,q,a,w,D.loadPolicy,D.bj.get()):new G("Missing IVAR from Sandwich"):new G("Invalid AdMessageRenderer.")):RWR(D.G.get(),D.S.get(),V,S,[F.sandwichedLinearAdRenderer.adVideoStart,F.sandwichedLinearAdRenderer.linearAd],void 0,Q,h,q,a,w,D.loadPolicy,D.bj.get()):new G("Received invalid SandwichedLinearAdRenderer.");if(F.videoAdTrackingRenderer!=null)return LER(D.G.get(),D.S.get(),F.videoAdTrackingRenderer, V,S,Q,h,q.TI,a)}}return[]}; kw=function(D,X,M,Q,h,H,t,q){g.O.call(this);var w=this;this.G=D;this.Y=X;this.AR=Q;this.Qf=h;this.bj=H;this.B2=t;this.EH=q;this.S=null;M.get().addListener(this);this.addOnDisposeCallback(function(){M.H2()||M.get().removeListener(w)}); Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.H2()||Q.get().removeListener(w)})}; DC=function(D,X,M){var Q=D.Qf.get().getCurrentTimeSec(1,!1);D.bj.get().B.W().t5()&&YK(D.B2.get(),"sdai","onopp.1;evt."+M.event+";start."+M.startSecs.toFixed(3)+";d."+M.rp.toFixed(3));Jf(D.G.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var h=D.Y.get(),H=X.adPlacementRenderer.renderer.adBreakServiceRenderer,t=X.contentCpn,q=X.adPlacementRenderer.adSlotLoggingData;uj(D.bj.get());var w=D.B2;var T=h.bj.get();T=g.lx(T.B.W().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var L=h.bj.get();var K=g.lx(L.B.W().experiments,"min_prefetch_offset_sec_for_livestream_optimization");L=M.startSecs*1E3;L={Pv:new cC(L,L+M.rp*1E3),Sd:!1,cueProcessedMs:Q*1E3};var a=M.startSecs+M.rp;if(Q===0)L.sG=new cC(0,a*1E3);else{K=M.startSecs-K;var F=K-Q;L.sG=F<=0?new cC(K*1E3,a*1E3):new cC(Math.floor(Q+Math.random()*Math.min(F,T))*1E3,a*1E3)}H=cx(h,H,t,L,q,[new X5(M)]);jW(h.bj.get())&&YK(w.get(),"abrsm","cpi."+M.identifier+";cps."+M.startSecs+";cpd."+M.rp+";cts."+Q+";rbf."+L.sG.start);w.get().B.OX(M.startSecs- Q,L.sG.start/1E3-Q);return[H]})}; MQ=function(D){var X,M=(X=rE(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:X.current;if(!M)return null;X=rE(D.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Q=D.layoutId,h=rE(D.clientMetadata,"metadata_type_content_cpn"),H=rE(D.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),t=rE(D.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q=rE(D.clientMetadata,"metadata_type_player_underlay_renderer"),w=rE(D.clientMetadata, "metadata_type_ad_placement_config"),T=rE(D.clientMetadata,"metadata_type_video_length_seconds");var L=Rw(D.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?rE(D.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Rw(D.clientMetadata,"metadata_type_layout_enter_ms")&&Rw(D.clientMetadata,"metadata_type_layout_exit_ms")?(rE(D.clientMetadata,"metadata_type_layout_exit_ms")-rE(D.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{B8:Q,contentCpn:h,zZ:M,Tb:X,instreamAdPlayerOverlayRenderer:H, playerOverlayLayoutRenderer:t,instreamAdPlayerUnderlayRenderer:q,adPlacementConfig:w,videoLengthSeconds:T,MJ:L,inPlayerLayoutId:rE(D.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rE(D.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; lUR=function(D,X){return Ydm(D,X)}; JVm=function(D,X){X=Ydm(D,X);if(!X)return null;var M;X.MJ=(M=rE(D.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:M.adBreakRemainingLengthSeconds;return X}; Ydm=function(D,X){var M,Q=(M=rE(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:M.current;if(!Q)return null;M=AFs(D,X);return{n5:p39(D,X),adPlacementConfig:rE(D.clientMetadata,"metadata_type_ad_placement_config"),L5:M,contentCpn:rE(D.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:rE(D.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:rE(D.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:rE(D.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,MJ:void 0,zZ:Q,B8:D.layoutId,videoLengthSeconds:rE(D.clientMetadata,"metadata_type_video_length_seconds")}}; QS=function(D,X,M,Q,h,H,t,q,w){g.O.call(this);this.U=D;this.X=X;this.D=M;this.Y=Q;this.S=h;this.G=H;this.iH=t;this.bj=q;this.dC=w;this.Rn=!0}; x2m=function(D,X,M){return i42(D.S.get(),X.contentCpn,X.B8,function(Q){return o$2(D.G.get(),Q.slotId,M,X.adPlacementConfig,X.B8,AH(D.iH.get(),Q))})}; hS=function(D,X,M,Q,h,H,t){g.O.call(this);this.G=D;this.S=X;this.Y=M;this.U=Q;this.dC=h;this.Qf=H;this.OH=t}; HN=function(D){g.O.call(this);this.S=D}; Jf=function(D,X,M,Q){D.S().Nw(X,Q);M=M();D=D.S();D.Nj.S("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",X,Q,M);X=g.e(M);for(M=X.next();!M.done;M=X.next())a:{Q=D;M=M.value;TH(Q.Nj,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M);TH(Q.Nj,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",M);try{var h=Q.S;if(g.kR(M.slotId))throw new G("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(De(h,M))throw new G("Duplicate registration for slot.",{slotId:M.slotId,slotEntryTriggerType:M.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!h.bE.U$.has(M.slotType))throw new G("No fulfillment adapter factory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!h.bE.ZG.has(M.slotType))throw new G("No SlotAdapterFactory registered for slot of type: "+M.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");$2(h,"TRIGGER_CATEGORY_SLOT_ENTRY",M.slotEntryTrigger?[M.slotEntryTrigger]:[]);$2(h,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", M.slotFulfillmentTriggers);$2(h,"TRIGGER_CATEGORY_SLOT_EXPIRATION",M.slotExpirationTriggers);var H=Q.S,t=M.slotType+"_"+M.slotPhysicalPosition,q=sF(H,t);if(De(H,M))throw new G("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");q.set(M.slotId,new roR(M));H.S.set(t,q)}catch(u){u instanceof G&&u.E5?(zd(Q.Nj,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",u.E5,M),Hb(u,M,void 0,void 0,u.yE)):(zd(Q.Nj,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", M),Hb(u,M));break a}De(Q.S,M).X=!0;try{var w=Q.S,T=De(w,M),L=M.slotEntryTrigger,K=w.bE.ge.get(L.triggerType);K&&(K.cL("TRIGGER_CATEGORY_SLOT_ENTRY",L,M,null),T.a5.set(L.triggerId,K));for(var a=g.e(M.slotFulfillmentTriggers),F=a.next();!F.done;F=a.next()){var V=F.value,c=w.bE.ge.get(V.triggerType);c&&(c.cL("TRIGGER_CATEGORY_SLOT_FULFILLMENT",V,M,null),T.f$.set(V.triggerId,c))}for(var S=g.e(M.slotExpirationTriggers),b=S.next();!b.done;b=S.next()){var n=b.value,R=w.bE.ge.get(n.triggerType);R&&(R.cL("TRIGGER_CATEGORY_SLOT_EXPIRATION", n,M,null),T.eH.set(n.triggerId,R))}var v=w.bE.U$.get(M.slotType).get().build(w.Y,M);T.J=v;var l=w.bE.ZG.get(M.slotType).get().build(w.D,M);l.init();T.G=l}catch(u){u instanceof G&&u.E5?(zd(Q.Nj,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",u.E5,M),Hb(u,M,void 0,void 0,u.yE)):(zd(Q.Nj,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",M),Hb(u,M));kT(Q,M,!0);break a}TH(Q.Nj,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",M);Q.S.mU(M);for(var A=g.e(Q.G),Hs=A.next();!Hs.done;Hs= A.next())Hs.value.mU(M);hf(Q,M)}}; tS=function(D,X,M,Q,h){g.O.call(this);var H=this;this.G=D;this.Y=X;this.rI=M;this.context=h;this.S=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.H2()||Q.get().removeListener(H)})}; Jvs=function(D,X){var M=0x8000000000000,Q=0,h=0x8000000000000;var H=g.e(X.slotFulfillmentTriggers);for(var t=H.next();!t.done;t=H.next())if(t=t.value,t instanceof fy){var q=t.S.start;M=Math.min(M,q);Q=Math.max(Q,t.S.end);t.visible&&(h=Math.min(h,q))}else Hb("Found unexpected fulfillment trigger for throttled slot.",X,null,{fulfillmentTrigger:t});H=M;h=h<0x8000000000000&&M0&&qn(D.X(),M)}; Eb=function(D,X,M,Q,h){for(var H=[],t=g.e(D.Ow.values()),q=t.next();!q.done;q=t.next()){var w=q=q.value,T=w.trigger;w=w.slot;if(T.triggerType===X){if(T instanceof Zz||T instanceof Ui||T instanceof Sk){if(h&&T.breakDurationMs!==M)continue;if(!h&&T.breakDurationMs===M)continue;if(Q.has(w.slotId))continue}H.push(q)}}H.length>0&&qn(D.X(),H)}; hld=function(D,X){X=(X.rp+1)*1E3;var M=void 0;D=g.e(D.Ow.values());for(var Q=D.next();!Q.done;Q=D.next()){var h=Q.value;Q=h.trigger;h=h.slot;Q instanceof Zz&&Q.breakDurationMs<=X&&(!M||Q.breakDurationMs>M.trigger.breakDurationMs)&&(M={slot:h,trigger:Q})}return M}; H0d=function(D){D=D.adPlacementRenderer.config.adPlacementConfig;if(!D.prefetchModeConfig||!D.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;D=Number(D.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(D)||D<=0?0:Math.floor(Math.random()*D)}; t55=function(D){D=D.adPlacementRenderer.config.adPlacementConfig;if(D.prefetchModeConfig&&D.prefetchModeConfig.cacheFetchRefreshDurationMs&&(D=Number(D.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(D)||D<=0)))return D}; yS=function(D){D.S=null;D.Ow.clear();D.G&&D.G.stop();D.D&&D.D.stop();var X;(X=D.Y)==null||X.stop();delete D.Y}; X0o=function(D){var X=[];D=g.e(D.Ow.values());for(var M=D.next();!M.done;M=D.next())M=M.value.trigger,M instanceof Zz&&X.push(M.breakDurationMs);return X}; PN=function(D){g.O.call(this);this.Y=D;this.Rn=!0;this.Ow=new Map;this.S=new Map;this.G=new Map}; NER=function(D,X){var M=[];if(X=D.S.get(X.layoutId)){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())(Q=D.G.get(Q.value.triggerId))&&M.push(Q)}return M}; mx=function(){g.O.call(this);this.Ow=new Map}; fZ=function(D){switch(D){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"}}; q2i=function(D){switch(D){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; w0p=function(D,X){var M={slotId:x2(X,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],N5:"surface",clientMetadata:new dE([])},Q=Object,h=Q.assign;X=nx(X,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",M.slotId);X={layoutId:X,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Sh:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], N5:"surface",clientMetadata:new dE([]),A5:Ues(!1,M.slotId,M.slotType,M.slotPhysicalPosition,M.N5,M.slotEntryTrigger,M.slotFulfillmentTriggers,M.slotExpirationTriggers,X,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return h.call(Q,{},D,{X2C:!0,slot:M,layout:X})}; kJ5=function(D,X,M,Q){var h=D.kind;Q=Q?!1:!D.hideCueRangeMarker;switch(h){case "AD_PLACEMENT_KIND_START":return Q={Pv:new cC(-0x8000000000000,-0x8000000000000),Sd:Q},M!=null&&(Q.sG=new cC(-0x8000000000000,-0x8000000000000)),Q;case "AD_PLACEMENT_KIND_END":return Q={Pv:new cC(0x7ffffffffffff,0x8000000000000),Sd:Q},M!=null&&(Q.sG=new cC(Math.max(0,X-M),0x8000000000000)),Q;case "AD_PLACEMENT_KIND_MILLISECONDS":h=D.adTimeOffset;h.offsetStartMilliseconds||Hb("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); h.offsetEndMilliseconds||Hb("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");D=Number(h.offsetStartMilliseconds);h=Number(h.offsetEndMilliseconds);h===-1&&(h=X);if(Number.isNaN(D)||Number.isNaN(h)||D>h)return new G("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:D,offsetEndMs:h},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",h===X&&D-500<=h);Q={Pv:new cC(D,h),Sd:Q};if(M!=null){D=Math.max(0,D-M);if(D===h)return Q;Q.sG=new cC(D,h)}return Q; default:return new G("AdPlacementKind not supported in convertToRange.",{kind:h,adPlacementConfig:D})}}; TEW=function(D){if(!D||!D.adPlacements&&!D.adSlots)return!1;for(var X=g.e(D.adPlacements||[]),M=X.next();!M.done;M=X.next())if(M=M.value)if(M=M.adPlacementRenderer,M!=null&&(M.config&&M.config.adPlacementConfig&&M.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;D=g.e(D.adSlots||[]);for(X=D.next();!X.done;X=D.next()){var Q=M=void 0;if(((M=g.Z(X.value,Ln))==null?void 0:(Q=M.adSlotMetadata)==null?void 0:Q.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; n_=function(D){this.bj=D;this.G=new Map;this.S=new Map;this.Y=new Map}; x2=function(D,X){if(b3(D.bj.get())){var M=D.G.get(X)||0;M++;D.G.set(X,M);return X+"_"+M}return g.sB(16)}; nx=function(D,X,M){if(b3(D.bj.get())){var Q=D.S.get(X)||0;Q++;D.S.set(X,Q);return M+"_"+X+"_"+Q}return g.sB(16)}; pn=function(D,X){if(b3(D.bj.get())){var M=D.Y.get(X)||0;M++;D.Y.set(X,M);return X+"_"+M}return g.sB(16)}; Lsn=function(D){var X=[new JV(D.B8),new ki(D.zZ),new mE(D.adPlacementConfig),new Ql(D.videoLengthSeconds),new B0(D.MJ)];D.instreamAdPlayerOverlayRenderer&&X.push(new vn(D.instreamAdPlayerOverlayRenderer));D.playerOverlayLayoutRenderer&&X.push(new d0(D.playerOverlayLayoutRenderer));D.Tb&&X.push(new Rk(D.Tb));return X}; sw5=function(D,X,M,Q,h,H){D=M.inPlayerLayoutId?M.inPlayerLayoutId:nx(H,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);var t,q,w=M.instreamAdPlayerOverlayRenderer?(t=M.instreamAdPlayerOverlayRenderer)==null?void 0:t.adLayoutLoggingData:(q=M.playerOverlayLayoutRenderer)==null?void 0:q.adLayoutLoggingData;t={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",N5:X};return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Sh:new Map,layoutExitNormalTriggers:[new $D(function(T){return pn(H, T)},M.B8)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:X,clientMetadata:Q,A5:h(t),adLayoutLoggingData:w}}; ep=function(D){var X=this;this.G=D;this.S=function(M){return pn(X.G.get(),M)}}; o$2=function(D,X,M,Q,h,H){M=new dE([new r0(M),new mE(Q)]);X=nx(D.G.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",X);Q={layoutId:X,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",N5:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Sh:new Map,layoutExitNormalTriggers:[new $D(function(t){return pn(D.G.get(),t)},h)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:M,A5:H(Q),adLayoutLoggingData:void 0}}; gD=function(D,X,M,Q,h){var H=Lsn(Q);return sw5(X,M,Q,new dE(H),h,D.G.get())}; Ksp=function(D,X,M,Q,h){var H=Lsn(Q);H.push(new yJ(Q.n5));H.push(new Pn(Q.L5));return sw5(X,M,Q,new dE(H),h,D.G.get())}; GS=function(D,X,M,Q,h,H,t,q,w,T){X=nx(D.G.get(),M,X);var L={layoutId:X,layoutType:M,N5:"core"},K=new Map;t&&K.set("impression",t);t=[new Ei(D.S,h,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];T&&t.push(new VR(D.S,T,["normal"]));return{layoutId:X,layoutType:M,Sh:K,layoutExitNormalTriggers:t,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([Q,new mE(H),new JV(h)]),A5:q(L),adLayoutLoggingData:w}}; zS=function(D,X,M,Q,h,H,t,q,w){X=nx(D.G.get(),M,X);var T={layoutId:X,layoutType:M,N5:"core"},L=[new Ei(D.S,h,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];w&&L.push(new VR(D.S,w,["normal"]));return{layoutId:X,layoutType:M,Sh:new Map,layoutExitNormalTriggers:L,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([Q,new mE(H),new JV(h)]),A5:t(T),adLayoutLoggingData:q}}; Yw=function(D,X,M){var Q=[];Q.push(new yR(D.S,M));X&&Q.push(X);return Q}; AD=function(D,X,M,Q,h,H,t){var q={layoutId:X,layoutType:M,N5:"core"};return{layoutId:X,layoutType:M,Sh:new Map,layoutExitNormalTriggers:t,layoutExitSkipTriggers:[new si(D.S,X)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new cn(Q),new mE(h)]),A5:H(q),adLayoutLoggingData:Q.adLayoutLoggingData}}; bj=function(D,X,M,Q,h,H,t,q){var w={layoutId:X,layoutType:H,N5:"core"};return{layoutId:X,layoutType:H,Sh:new Map,layoutExitNormalTriggers:[new $D(D.S,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new mE(Q)].concat(g.xW(t))),A5:h(w),adLayoutLoggingData:q}}; B0s=function(D,X,M,Q,h,H,t,q,w,T,L,K){D=lj(D,X,M,Q,h,H,t,q,L,K);X=D.mM;M=new Wn(D.by);Q=D.layoutExitSkipTriggers;w>0&&(X.push(M),X.push(new eT(w)),Q=[]);X.push(new b8(T));return{EW:{layoutId:D.layoutId,layoutType:D.layoutType,Sh:D.Sh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:D.N5,clientMetadata:new dE(X),A5:D.A5,adLayoutLoggingData:D.adLayoutLoggingData},t_:Q,eS:D.layoutExitMuteTriggers, w1:D.layoutExitUserInputSubmittedTriggers,Ie:D.layoutExitUserCancelledTriggers,C6:D.C6}}; fUp=function(D,X,M,Q,h,H,t,q,w){X=lj(D,X,M,Q,h,new Map,H,function(T){return t(T,q)}); D=new rM(D.S,X.by);M=new Wn(X.by);w=new b8(w);return{EW:{layoutId:X.layoutId,layoutType:X.layoutType,Sh:X.Sh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:X.N5,clientMetadata:new dE([].concat(g.xW(X.mM),[M,w])),A5:X.A5,adLayoutLoggingData:X.adLayoutLoggingData},t_:X.layoutExitSkipTriggers,eS:X.layoutExitMuteTriggers,w1:[].concat(g.xW(X.layoutExitUserInputSubmittedTriggers),[D]),Ie:X.layoutExitUserCancelledTriggers, C6:X.C6}}; lj=function(D,X,M,Q,h,H,t,q,w,T){X=nx(D.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",X);var L={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",N5:"adapter"};q=q(X);var K=rE(q.clientMetadata,"metadata_type_fulfilled_layout");K||Hb("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var a=K?K.layoutId:"";M=[new mE(M),new Z0(Q),new f0(h)];K&&M.push(new Gb(K.layoutType));T&&M.push(new wE(T));return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Sh:H,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new bA(D.S,a)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"adapter",mM:M,A5:t(L),adLayoutLoggingData:w,C6:q,by:a}}; dGo=function(D,X,M,Q,h,H,t,q,w,T,L){D=a0m(D,X,"core",M,Q,h,H,t,q,w,T,void 0,L);return{layoutId:D.layoutId,layoutType:D.layoutType,Sh:D.Sh,layoutExitNormalTriggers:D.layoutExitNormalTriggers,layoutExitSkipTriggers:D.layoutExitSkipTriggers,layoutExitMuteTriggers:D.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:D.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:D.layoutExitUserCancelledTriggers,N5:D.N5,clientMetadata:new dE(D.Zx),A5:D.A5,adLayoutLoggingData:D.adLayoutLoggingData}}; gio=function(D,X,M,Q,h,H,t,q,w,T,L,K,a){X=a0m(D,X,"adapter",M,Q,h,H,t,q,w,L,K,a);Q=X.layoutExitSkipTriggers;h=X.Zx;M.adPodSkipTarget&&M.adPodSkipTarget>0&&(h.push(T),h.push(new eT(M.adPodSkipTarget)),Q=[]);h.push(new b8(q.adPodIndex));M.isCritical&&(Q=[new VR(D.S,X.layoutId,["error"])].concat(g.xW(Q)));return{EW:{layoutId:X.layoutId,layoutType:X.layoutType,Sh:X.Sh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], N5:X.N5,clientMetadata:new dE(h),A5:X.A5,adLayoutLoggingData:X.adLayoutLoggingData},t_:Q,eS:X.layoutExitMuteTriggers,w1:X.layoutExitUserInputSubmittedTriggers,Ie:X.layoutExitUserCancelledTriggers}}; a0m=function(D,X,M,Q,h,H,t,q,w,T,L,K,a){var F={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",N5:M};h=[new mE(h),new nH(w),new Ik(Q.externalVideoId),new g0(q),new f0({impressionCommands:Q.impressionCommands,abandonCommands:Q.onAbandonCommands,completeCommands:Q.completeCommands,progressCommands:Q.adVideoProgressCommands}),new hH(H),new u8({current:null}),new Ql(t)];(H=Q.playerOverlay.instreamAdPlayerOverlayRenderer)&&h.push(new vn(H));(t=Q.playerOverlay.playerOverlayLayoutRenderer)&&h.push(new d0(t)); K&&h.push(new H0(K));(K=Q.playerUnderlay)&&h.push(new r0(K));q=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER");K=(K=H?H.elementId:t==null?void 0:t.layoutId)?K:nx(D.G.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",q);h.push(new Wn(K));h.push(new zb(q));h.push(new wE(w.adPodIndex));Q.adNextParams&&h.push(new ZU(Q.adNextParams));Q.shrunkenPlayerBytesConfig&&h.push(new CH(Q.shrunkenPlayerBytesConfig));Q.clickthroughEndpoint&&h.push(new Ud(Q.clickthroughEndpoint));Q.legacyInfoCardVastExtension&&h.push(new U2(Q.legacyInfoCardVastExtension)); Q.sodarExtensionData&&h.push(new tH(Q.sodarExtensionData));L&&h.push(new $T(L));h.push(new yl(MF(Q.pings)));w=QW(Q.pings);if(a){a:{a=g.e(a);for(L=a.next();!L.done;L=a.next())if(L=L.value,L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(H=g.Z(L.fulfillmentContent.fulfilledLayout,wD))&&(H=g.Z(H.renderingContent,NU))&&H.associatedPlayerBytesLayoutId===X){a=L;break a}a=void 0}a&&h.push(new i8(a))}return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",Sh:w,layoutExitNormalTriggers:[new PF(D.S,X)],layoutExitSkipTriggers:Q.skipOffsetMilliseconds? [new bA(D.S,K)]:[],layoutExitMuteTriggers:[new bA(D.S,K)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:M,Zx:h,A5:T(F),adLayoutLoggingData:Q.adLayoutLoggingData}}; yGi=function(D,X,M,Q,h,H,t,q,w){Q.every(function(L){return Iw(L,[],["LAYOUT_TYPE_MEDIA"])})||Hb("Unexpect subLayout type for DAI composite layout"); X=nx(D.G.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",X);var T={layoutId:X,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N5:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Sh:new Map,layoutExitNormalTriggers:[new BF(D.S)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],N5:"core",clientMetadata:new dE([new NJ(M),new qJ(q),new D0(Q),new mE(h),new K0(H),new Td({}),new ms(w)]),A5:t(T)}}; UGi=function(D){return D!=null}; R2=function(D,X,M){var Q=this;this.G=D;this.Y=X;this.bj=M;this.S=function(h){return pn(Q.G.get(),h)}}; AVp=function(D,X,M,Q,h,H,t){if(!M.prefetchModeConfig)return new G("AdPlacementConfig for Live Prefetch is missing prefetch_config");M=M.prefetchModeConfig;Q*=1E3;var q=[];if(!M.breakLengthMs)return new G("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var w=g.e(M.breakLengthMs),T=w.next();!T.done;T=w.next())if(T=T.value,Number(T)>0){var L=Q+Number(M.startTimeOffsetMs),K=L+Number(M.cacheFetchSmearingDurationMs);T={Pv:new cC(K,K+Number(T)),Sd:!1,sG:new cC(Math.floor(L+Math.random()* Number(M.cacheFetchSmearingDurationMs)),K),cueProcessedMs:Q?Q:L};L=[];L.push(new e5({}));K=[];K.push(new ny(D.S));K.push(new Tld(D.S));t&&L.push(new Td({}));q.push(cx(D,X,h,T,H,L,K))}return q}; cx=function(D,X,M,Q,h,H,t){H=H===void 0?[]:H;var q=x2(D.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");t||(t=[],Q.sG&&Q.sG.start!==Q.Pv.start&&t.push(new fy(D.S,M,new cC(Q.sG.start,Q.Pv.start),!1)),t.push(new fy(D.S,M,new cC(Q.Pv.start,Q.Pv.end),Q.Sd)));Q={getAdBreakUrl:X.getAdBreakUrl,lT:Q.Pv.start,iT:Q.Pv.end,cueProcessedMs:Q.cueProcessedMs};X=new gM(D.S,q);H=[new F5(Q)].concat(g.xW(H));return{slotId:q,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:t, slotExpirationTriggers:[new me(D.S,M),new R$(D.S,q),new I$(D.S,q)],N5:"core",clientMetadata:new dE(H),adSlotLoggingData:h}}; V5n=function(D,X,M){var Q=[];M=g.e(M);for(var h=M.next();!h.done;h=M.next())Q.push(Fsn(D,X,h.value));return Q}; Fsn=function(D,X,M){return M.triggeringSlotId!=null&&M.triggeringSlotId===D?M.clone(X):M}; wT1=function(D,X,M,Q,h){return $Jd(D,X,M,Q,h)}; ZHp=function(D,X,M,Q){var h=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER");return $Jd(D,h,X,M,Q)}; $Jd=function(D,X,M,Q,h){var H=new Fz(D.S,M),t=[new ek(D.S,X)];D=[new R$(D.S,X),new me(D.S,Q)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:t,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(h({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:H,slotFulfillmentTriggers:t,slotExpirationTriggers:D},M))]),adSlotLoggingData:void 0}}; viR=function(D,X,M,Q,h,H){var t=x2(D.G.get(),"SLOT_TYPE_PLAYER_BYTES"),q=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER"),w=nx(D.G.get(),"LAYOUT_TYPE_SURVEY",q);Q=I2(D,X,M,Q);var T=[new ek(D.S,t)];M=[new R$(D.S,t),new me(D.S,M),new si(D.S,w)];if(Q instanceof G)return Q;H=H({slotId:t,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:T,slotExpirationTriggers:M},{slotId:q,layoutId:w});q=H.uFy;return[{slotId:t,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Q,slotFulfillmentTriggers:T,slotExpirationTriggers:M,N5:"core",clientMetadata:new dE([new aw(H.Djy),new bx({E$:D.E$(X)})]),adSlotLoggingData:h},q]}; rGW=function(D,X,M,Q,h){h=h?h:x2(D.G.get(),"SLOT_TYPE_IN_PLAYER");M=new Fz(D.S,M);var H=[new ek(D.S,h)];D=[new me(D.S,X),new R$(D.S,h)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:H,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(Q({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:M,slotFulfillmentTriggers:H,slotExpirationTriggers:D}))])}}; i42=function(D,X,M,Q){var h=x2(D.G.get(),"SLOT_TYPE_PLAYER_UNDERLAY");M=new Fz(D.S,M);var H=[new ek(D.S,h)];D=[new me(D.S,X),new R$(D.S,h)];return{slotId:h,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:H,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(Q({slotId:h,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:M,slotFulfillmentTriggers:H,slotExpirationTriggers:D}))])}}; n$9=function(D,X,M,Q,h,H,t){var q=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER"),w=nx(D.G.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",q);Q=BEp(D,Q,H,t,w);if(Q instanceof G)return Q;t=[new ek(D.S,q)];h=[new me(D.S,H),new ek(D.S,h),new dM(D.S,h)];M=AH(M,{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:t,slotExpirationTriggers:h});D=D.Y.get();H={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",N5:"core"};X={layoutId:w,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Sh:new Map,layoutExitNormalTriggers:[new Bl_(D.S,w,X.durationMs)],layoutExitSkipTriggers:[new Udi(D.S,w,X.durationMs)],layoutExitUserCancelledTriggers:[new ZXn(D.S,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],N5:"core",clientMetadata:new dE([new c0(X)]),A5:M(H)};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:t,slotExpirationTriggers:h,clientMetadata:new dE([new aw(X)])}}; VTi=function(D,X,M,Q,h,H){X=I2(D,X,M,Q);if(X instanceof G)return X;var t=X instanceof fy?new Fjs(D.S,M,X.S):null;Q=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER");var q=[new ek(D.S,Q)];D=[new me(D.S,M),new R$(D.S,Q)];H=H({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:X,slotFulfillmentTriggers:q,slotExpirationTriggers:D},t);return H instanceof v0?new G(H):{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:q,slotExpirationTriggers:D, N5:"core",clientMetadata:new dE([new aw(H)]),adSlotLoggingData:h}}; aU9=function(D,X,M,Q){var h=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER"),H=new Ly(D.S,X),t=[new vF(D.S,h)];D=[new me(D.S,X),new R$(D.S,h)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:t,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(Q({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:H,slotFulfillmentTriggers:t,slotExpirationTriggers:D}))]),adSlotLoggingData:M}}; F6n=function(D,X,M,Q){var h=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER");M=new Fz(D.S,M);var H=[new ek(D.S,h)],t=[new R$(D.S,h),new me(D.S,X)];H={slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:M,slotFulfillmentTriggers:H,slotExpirationTriggers:t};return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:[new ek(D.S,h)],slotExpirationTriggers:[new me(D.S,X),new R$(D.S,h)],N5:"core",clientMetadata:new dE([new aw(Q(H))])}}; sLp=function(D,X,M,Q,h){var H=x2(D.G.get(),"SLOT_TYPE_IN_PLAYER");M=new a$(D.S,Q,M);Q=[new ek(D.S,H)];D=[new me(D.S,X)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:M,slotFulfillmentTriggers:Q,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(h({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:M,slotFulfillmentTriggers:Q,slotExpirationTriggers:D}))])}}; tes=function(D,X,M,Q,h,H){var t=x2(D.G.get(),X);return g6(D,t,X,new Fz(D.S,Q),[new me(D.S,M),new R$(D.S,t),new VR(D.S,Q,["error"])],h,H)}; H4o=function(D,X,M,Q,h,H,t){var q=x2(D.G.get(),X);return g6(D,q,X,new VR(D.S,h,["normal"]),[new me(D.S,M),new R$(D.S,q),new VR(D.S,Q,["error"])],H,t)}; XTW=function(D,X,M,Q,h){var H=x2(D.G.get(),X);return g6(D,H,X,new Ly(D.S,M),[new me(D.S,M),new R$(D.S,H)],Q,h)}; T02=function(D,X,M,Q,h){M=M?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var H=x2(D.G.get(),M);X=new Ly(D.S,X);var t=[new ek(D.S,H)];D=[new R$(D.S,H)];return{slotId:H,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:t,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(h({slotId:H,slotType:M,slotPhysicalPosition:1,N5:"core",slotEntryTrigger:X,slotFulfillmentTriggers:t,slotExpirationTriggers:D}))]),adSlotLoggingData:Q}}; cG9=function(D,X,M,Q,h){var H=x2(D.G.get(),"SLOT_TYPE_PLAYER_BYTES"),t=new cF(D.S),q=[new vF(D.S,H)];D=[new me(D.S,X)];X=[];X.push(new aw(Q({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:t,slotFulfillmentTriggers:q,slotExpirationTriggers:D})));X.push(new Td({}));h&&X.push(new MJ({current:h}));return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:t,slotFulfillmentTriggers:q,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE(X), adSlotLoggingData:M}}; bHd=function(D,X){return OHm(D.bj.get())?new VR(D.S,X,["normal","error","skipped"]):new VR(D.S,X,["normal"])}; If2=function(D,X,M,Q,h){X=bHd(D,X);D=JD(D,X,M);h=h({slotId:D.slotId,slotType:D.slotType,slotPhysicalPosition:D.slotPhysicalPosition,slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:D.slotExpirationTriggers,N5:D.N5});return h instanceof G?h:{Lo:Object.assign({},D,{clientMetadata:new dE([new aw(h.layout)]),adSlotLoggingData:Q}),rj:h.rj}}; g$H=function(D,X,M,Q,h,H,t){M=eWm(D,X,M,Q);if(M instanceof G)return M;t=t({slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,N5:M.N5});if(t instanceof G)return t;D=[new aw(t.layout),new bx({E$:D.E$(X)})];H&&D.push(new S5({}));return{Lo:{slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger, slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,N5:M.N5,clientMetadata:new dE(D),adSlotLoggingData:h},rj:t.rj}}; JD=function(D,X,M){var Q=x2(D.G.get(),"SLOT_TYPE_PLAYER_BYTES"),h=[new ek(D.S,Q)];D=[new R$(D.S,Q),new me(D.S,M)];return{slotId:Q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:h,slotExpirationTriggers:D,N5:"core"}}; eWm=function(D,X,M,Q){X=I2(D,X,M,Q);return X instanceof G?X:JD(D,X,M)}; skm=function(D,X,M,Q,h,H){var t=x2(D.G.get(),"SLOT_TYPE_FORECASTING");X=I2(D,X,M,Q);if(X instanceof G)return X;Q=[new ek(D.S,t)];D=[new R$(D.S,t),new me(D.S,M)];return{slotId:t,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:Q,slotExpirationTriggers:D,N5:"core",clientMetadata:new dE([new aw(H({slotId:t,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,N5:"core",slotEntryTrigger:X,slotFulfillmentTriggers:Q,slotExpirationTriggers:D}))]),adSlotLoggingData:h}}; Z0m=function(D,X,M,Q,h){var H=!X.hideCueRangeMarker;switch(X.kind){case "AD_PLACEMENT_KIND_START":return new Ly(D.S,M);case "AD_PLACEMENT_KIND_MILLISECONDS":return D=kJ5(X,Q),D instanceof G?D:h(D.Pv,H);case "AD_PLACEMENT_KIND_END":return new Ky(D.S,M,H);default:return new G("Cannot construct entry trigger",{kind:X.kind})}}; BEp=function(D,X,M,Q,h){return Z0m(D,X,M,Q,function(H,t){return new aBH(D.S,M,H,t,h)})}; I2=function(D,X,M,Q){return Z0m(D,X,M,Q,function(h,H){return new fy(D.S,M,h,H)})}; g6=function(D,X,M,Q,h,H,t){D=[new vF(D.S,X)];return{slotId:X,slotType:M,slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:D,slotExpirationTriggers:h,N5:"core",clientMetadata:new dE([new aw(t({slotId:X,slotType:M,slotPhysicalPosition:1,N5:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:D,slotExpirationTriggers:h}))]),adSlotLoggingData:H}}; HBm=function(){}; vN=function(D,X){g.O.call(this);this.bj=D;this.G=X;this.eventCount=0;this.Y=tL1()()}; TH=function(D,X,M){D.S(X,void 0,void 0,void 0,M,void 0,void 0,void 0,M.adSlotLoggingData)}; XH=function(D,X,M,Q){D.S(X,void 0,void 0,void 0,M,Q?Q:void 0,void 0,void 0,M.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0);M=SP().resolve(new B1(ts))==null?void 0:N$();X=M==null?void 0:M.adsSeenHotConfig;M=M==null?void 0:M.adsHotConfig;(X==null?0:X.logOnAdsSeen)&&(M==null?0:M.webEnablePremiumAdsSeenLogging)&&UJ5(D,Q?Q:void 0)}; neH=function(D,X,M,Q){mV(D.bj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",M,"slot:",X,"layout:",Q);p0(D.G.get())&&D.S("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,X,Q?Q:void 0,void 0,M,X.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0)}; zd=function(D,X,M,Q,h){D.S("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Q,h,void 0,void 0,Q.adSlotLoggingData,h?h.adLayoutLoggingData:void 0,{errorType:X,errorMessage:M})}; UJ5=function(D,X){if(X){var M=X.adLayoutLoggingData;g.zj(g.u2(),function(){D.Y!=null&&M&&g.Tm("adsSeenClientLogging",{serializedAdServingDataEntry:M.serializedAdServingDataEntry})},0)}}; d6=function(D,X,M){vN.call(this,D,X);this.bj=D;this.dC=M}; r6=function(){this.S=new Map}; i3=function(D){this.S="pending";this.G=[];this.Y=[];try{D(this.U.bind(this),this.reject.bind(this))}catch(X){this.reject(X)}}; cHs=function(){var D,X;return{jf:new i3(function(M,Q){D=M;X=Q}), resolve:D,reject:X}}; Ob=function(D){return o2(D)?D:C_(D)?new i3(function(X,M){D.then(X,M)}):new i3(function(X){X(D)})}; p_=function(D){return new i3(function(X,M){M(D)})}; AS=function(D){try{return Ob(D())}catch(X){return p_(X)}}; l3=function(D,X,M){var Q=cHs(),h=Q.jf,H=Q.resolve,t=Q.reject;D.G.push(function(q){if(X)try{var w=X(q);H(w)}catch(T){t(T)}else H(q)}); D.Y.push(function(q){if(M)try{var w=M(q);H(w)}catch(T){t(T)}else t(q)}); Ys(D);return h}; JS=function(D,X){return l3(D,void 0,X)}; f09=function(D,X){l3(D,function(M){return l3(Ob(X()),function(){return M})},function(M){return l3(Ob(X()),function(){return p_(M)})})}; Ys=function(D){if(D.S==="fulfilled"){var X=D.G;D.G=[];D.Y=[];X=g.e(X);for(var M=X.next();!M.done;M=X.next())M=M.value,M(D.result)}else if(D.S==="rejected")for(X=D.Y,D.G=[],D.Y=[],X=g.e(X),M=X.next();!M.done;M=X.next())M=M.value,M(D.error)}; xs=function(D,X){return S2p(X.call(D))}; WN=function(D){return function M(){return Vh(M,function(Q){if(Q.S==1)return g.wK(Q,2),g.I(Q,{jf:Ob(D)},4);if(Q.S!=2)return Q.return(Q.G);g.s8(Q);return g.KG(Q,0)})}()}; S2p=function(D){return AS(function(){return G0(D,D.next())})}; G0=function(D,X){return X.done?Ob(X.value):JS(l3(X.value.jf,function(M){return G0(D,D.next(M))}),function(M){return G0(D,D.throw(M))})}; PxH=function(D){var X=ETs(D);return l3(yHR(X),function(){return X.map(function(M){return M.state()})})}; yHR=function(D){if(D.length===0)return Ob(NaN);var X=cHs(),M=X.jf,Q=X.resolve,h=D.length;D=g.e(D.entries());var H=D.next();for(X={};!H.done;X={Tl:void 0},H=D.next()){var t=g.e(H.value);H=t.next().value;t=t.next().value;X.Tl=H;f09(t,function(q){return function(){M.S==="pending"&&(mJp(void 0)&&(void 0)(q.Tl)&&M.S==="pending"?Q(q.Tl):(--h,h===0&&Q(NaN)))}}(X))}return M}; ETs=function(D){return D.map(function(X){return Ob(X)})}; ks=function(D){var X=D.hours||0;var M=D.minutes||0,Q=D.seconds||0;X=Q+M*60+X*3600+(D.days||0)*86400+(D.weeks||0)*604800+(D.months||0)*2629800+(D.years||0)*31557600;X<=0?X={hours:0,minutes:0,seconds:0}:(D=X,X=Math.floor(D/3600),D%=3600,M=Math.floor(D/60),Q=Math.floor(D%60),X={hours:X,minutes:M,seconds:Q});var h=X.hours===void 0?0:X.hours;M=X.minutes===void 0?0:X.minutes;D=X.seconds===void 0?0:X.seconds;Q=h>0;X=[];if(Q){h=(new Intl.NumberFormat("en-u-nu-latn")).format(h);var H=["fr"],t="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); h="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(z0)?h.replace(",","\u00a0"):H.includes(z0)?h.replace(",","\u202f"):t.includes(z0)?h.replace(",","."):h;X.push(h)}Q=Q===void 0?!1:Q;M=(["af","be","lt"].includes(z0)||Q)&&M<10?nTm().format(M):(new Intl.NumberFormat("en-u-nu-latn")).format(M);X.push(M);M=nTm().format(D);X.push(M);M=":";"da fi id si sr sr-Latn".split(" ").includes(z0)&&(M=".");return X.join(M)}; nTm=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; b01=function(D,X){var M,Q;D=((M=D.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Q=M.videoAuthorizationToken)==null?void 0:Q.credentialTransferTokens)||[];for(M=0;MX;D=M}else D=!1;return D}; g.aB=function(D,X){return D.mE+"timedtext_video?ref=player&v="+X.videoId}; g.Dn9=function(D){var X=this;this.videoData=D;D={};this.S=(D.c1a=function(){var M=[];if(g.s7.isInitialized()){var Q="";X.videoData&&X.videoData.ph&&(Q=X.videoData.ph+("&r1b="+X.videoData.clientPlaybackNonce));var h={};Q=(h.atr_challenge=Q,h);nX("bg_v",void 0,"player_att");(Q=jws(Q))?(nX("bg_s",void 0,"player_att"),M.push("r1a="+Q)):(nX("bg_e",void 0,"player_att"),M.push("r1c=2"))}else nX("bg_e",void 0,"player_att"),window.trayride||window.botguard?M.push("r1c=1"):M.push("r1c=4");M.push("r1d="+g.s7.getState()); return M.join("&")},D.c6a=function(M){return"r6a="+(Number(M.c)^GJ())},D.c6b=function(M){return"r6b="+(Number(M.c)^Number(g.zZ("CATSTAT",0)))},D); this.videoData&&this.videoData.ph?this.A_=dR(this.videoData.ph):this.A_={}}; g.X92=function(D){if(D.videoData&&D.videoData.ph){for(var X=[D.videoData.ph],M=g.e(Object.keys(D.S)),Q=M.next();!Q.done;Q=M.next())Q=Q.value,D.A_[Q]&&D.S[Q]&&(Q=D.S[Q](D.A_))&&X.push(Q);return X.join("&")}return null}; g.FL=function(D,X){u5o(D,{OF5:g.lx(X.experiments,"bg_vm_reinit_threshold"),cspNonce:X.cspNonce,mE:X.mE||""})}; MVn=function(){var D=XMLHttpRequest.prototype.fetch;return!!D&&D.length===3}; hfi=function(D){QdH=2592E3*(D||1)}; HxR=function(D){g.gw("yt-player-bandwidth",D,2592E3)}; Vf=function(D){D=D===void 0?QdH:D;if(D>0&&!(fws()>(0,g.fi)()-D*1E3))return 0;D=g.vJ("yt-player-quality");if(typeof D==="string"){if(D=g.BE[D],D>0)return D}else if(D instanceof Object)return D.quality;return 0}; $4=function(){var D=g.vJ("yt-player-proxima-pref");return D==null?null:D}; tV9=function(){var D=g.vJ("yt-player-quality");if(D instanceof Object&&D.quality&&D.previousQuality){if(D.quality>D.previousQuality)return 1;if(D.quality0&&X[0]?D.getAutoplayPolicy(X[0]):D.getAutoplayPolicy("mediaelement");if(aen[M])return aen[M]}}catch(Q){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; E7=function(D){return D.bM||D.vB||D.mutedAutoplay}; FV2=function(D,X){return E7(D)?X!==1&&X!==2&&X!==0?"AUTOPLAY_STATUS_UNAVAILABLE":D.sT?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; VVn=function(D,X,M){var Q=X.W();D.thirdParty||(D.thirdParty={});D.thirdParty=Object.assign({},D.thirdParty,{embedUrl:Q.loaderUrl});Q.ancestorOrigins&&(D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{ancestorOrigins:Q.ancestorOrigins}));Q.Cj!=null&&(D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Q.Cj)}));Q.J2&&(D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext, {visibilityFractionSource:Q.J2}));D.thirdParty.embeddedPlayerContext=Object.assign({},D.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:S$(),autoplayIntended:E7(X),autoplayStatus:FV2(X,M)})}; $np=function(D){var X=[];D=g.e(D.split(","));for(var M=D.next();!M.done;M=D.next()){var Q=M.value;Q&&((M=Q.startsWith("!"))&&(Q=Q.substring(1)),Q=Q.split("-"),Q.length<3||X.push({p_:Q[0],platform:Q[1],deviceVersion:Q[2],qD:M}))}return X}; Unn=function(D){return $np(D).map(function(X){return{deviceInterface:BIs[Zxs[X.p_]]||0,deviceVersion:X.deviceVersion||"",isSleeping:X.qD}})}; g.yf=function(D,X){this.id=D;this.Cy=X;this.captionTracks=[];this.Y=this.U=null;this.xtags="";this.X=this.D=!1;this.S=null;this.G="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";D=this.Cy.id.split(".");D.length>1&&(this.D=D[1]==="2",this.X=D[1]==="4")}; Pt=function(D,X,M,Q,h){this.G=D;this.S=X;this.Y=M;this.reason=Q;this.jH=h===void 0?0:h}; g.mm=function(D,X,M,Q){return new Pt(g.BE[D]||0,g.BE[X]||0,M,Q)}; b5=function(D){if(nl&&D.jH)return!1;var X=g.BE.auto;return D.G===X&&D.S===X}; RB=function(D){return e$[D.S||D.G]||"auto"}; cfi=function(D,X){X=g.BE[X];return D.G<=X&&(!D.S||D.S>=X)}; IB=function(D,X,M,Q){this.videoInfos=D;this.S=X;this.audioTracks=[];this.G=Q||[];if(this.S){D=new Set;M==null||M({ainfolen:this.S.length});X=g.e(this.S);for(Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,!Q.Cy||D.has(Q.Cy.id)){var h=void 0,H=void 0,t=void 0;(t=M)==null||t({atkerr:!!Q.Cy,itag:Q.itag,xtag:Q.S,lang:((h=Q.Cy)==null?void 0:h.name)||"",langid:((H=Q.Cy)==null?void 0:H.id)||""})}else h=new g.yf(Q.id,Q.Cy),D.add(Q.Cy.id),this.audioTracks.push(h);M==null||M({atklen:this.audioTracks.length})}}; g8=function(){g.O.apply(this,arguments);this.S=null}; yfo=function(D,X,M,Q,h,H,t){if(D.S)return D.S;var q={},w=new Set,T={};if(vt(Q)){for(var L in Q.S)Q.S.hasOwnProperty(L)&&(D=Q.S[L],T[D.info.ij]=[D.info]);return T}L=fep(X,Q,q);H&&h({aftsrt:d8(L)});for(var K={},a=g.e(Object.keys(L)),F=a.next();!F.done;F=a.next()){F=F.value;for(var V=g.e(L[F]),c=V.next();!c.done;c=V.next()){c=c.value;var S=c.itag,b=void 0,n=F+"_"+(((b=c.video)==null?void 0:b.fps)||0);K.hasOwnProperty(n)?K[n]===!0?T[F].push(c):q[S]=K[n]:(b=r8(X,c,M,Q.isLive,w),b!==!0?(t.add(F),q[S]=b, b==="disablevp9hfr"&&(K[n]="disablevp9hfr")):(T[F]=T[F]||[],T[F].push(c),K[n]=!0))}}H&&h({bfflt:d8(T)});for(var R in T)T.hasOwnProperty(R)&&(Q=R,T[Q]&&T[Q][0].VB()&&(T[Q]=T[Q],T[Q]=SF_(X,T[Q],q),T[Q]=E22(T[Q],q)));H&&Object.keys(q).length>0&&h({rjr:Ga(q)});X=g.e(w.values());for(Q=X.next();!Q.done;Q=X.next())(Q=M.U.get(Q.value))&&--Q.n_;H&&h({aftflt:d8(T)});D.S=g.UK(T,function(v){return!!v.length}); return D.S}; mnn=function(D,X,M,Q,h,H,t,q){q=q===void 0?!1:q;if(X.l0&&t&&t.length>1&&!(X.xw>0||X.K)){for(var w=X.S||!!h,T=w&&X.Ky?H:void 0,L=fep(X,Q),K=[],a=[],F={},V=0;V0&&V&&a&&(L=[t,M],v=a.concat(V).filter(function(l){return l})); if(v.length&&!X.yH){Cl(v,L);if(w){w=[];X=g.e(v);for(Q=X.next();!Q.done;Q=X.next())w.push(Q.value.itag);H({hbdfmt:w.join(".")})}return vX(new IB(v,h,T,D))}v=ixR(X);v=g.xB(v,q);if(!v){if(K[t])return H=K[t],Cl(H),vX(new IB(H,h,T,D));w&&H({novideo:1});return Iy()}X.XS&&(v==="1"||v==="1h")&&K[M]&&(t=O7(K[v]),L=O7(K[M]),L>t?v=M:L===t&&o2s(K[M])&&(v=M));v==="9"&&K.h&&O7(K.h)>O7(K["9"])&&(v="h");X.R2&&Q.isLive&&v==="("&&K.H&&O7(K["("])<1440&&(v="H");w&&H({vfmly:pl(v)});X=K[v];if(!X.length)return w&&H({novfmly:pl(v)}), Iy();Cl(X);return vX(new IB(X,h,T,D))}; bxH=function(D,X){var M=!(!D.m&&!D.M),Q=!(!D.mac3&&!D.MAC3),h=!(!D.meac3&&!D.MEAC3);D=!(!D.i&&!D.I);X.G6=D;return M||Q||h||D}; o2s=function(D){D=g.e(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.itag&&CBH.has(X.itag))return!0;return!1}; Rfi=function(D){D=g.e(D);for(var X=D.next();!X.done;X=D.next())if(X.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; pl=function(D){switch(D){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return D}}; d8=function(D){var X=[],M;for(M in D)if(D.hasOwnProperty(M)){var Q=M;X.push(pl(Q));Q=g.e(D[Q]);for(var h=Q.next();!h.done;h=Q.next())X.push(h.value.itag)}return X.join(".")}; n2m=function(D,X,M,Q,h,H){var t={},q={};g.sm(X,function(w,T){w=w.filter(function(L){var K=L.itag;if(!L.DS)return q[K]="noenc",!1;if(H.J5&&L.ij==="(h"&&H.zm)return q[K]="lichdr",!1;if(!D.D&&L.ij==="1e")return q[K]="noav1enc",!1;if(L.ij==="("||L.ij==="(h"){if(D.Y&&M&&M.flavor==="widevine"){var a=L.mimeType+"; experimental=allowed";(a=!!L.DS[M.flavor]&&!!M.S[a])||(q[K]=L.DS[M.flavor]?"unspt":"noflv");return a}if(!A9(D,Y4.CRYPTOBLOCKFORMAT)&&!D.L$||D.a5)return q[K]=D.a5?"disvp":"vpsub",!1}return M&&L.DS[M.flavor]&& M.S[L.mimeType]?!0:(q[K]=M?L.DS[M.flavor]?"unspt":"noflv":"nosys",!1)}); w.length&&(t[T]=w)}); Q&&Object.entries(q).length&&h({rjr:Ga(q)});return t}; E22=function(D,X){var M=Rx(D,function(Q,h){return h.video.fps>32?Math.min(Q,h.video.width):Q},Infinity); M32||Q.video.widthD.X)return"max"+D.X;if(D.o5&&X.ij==="h"&&X.video&&X.video.qualityOrdinal>1080)return"blkhigh264";if(X.ij==="(h"&&!M.J)return"enchdr";if((Q===void 0?0:Q)&&hvR(X)&&!D.yf)return"blk51live";if((X.ij==="MAC3"||X.ij==="mac3")&&!D.U)return"blkac3";if((X.ij==="MEAC3"||X.ij==="meac3")&&!D.D)return"blkeac3";if(X.ij==="M"||X.ij==="m")return"blkaac51"; if((X.ij==="so"||X.ij==="sa")&&!D.f$)return"blkamb";if(!D.J5&&QW9(X)&&(!M.D||X.ij!=="1e"))return"cbc";if(!M.D&&QW9(X)&&X.ij==="1e")return"cbcav1";if((X.ij==="i"||X.ij==="I")&&!D.qj)return"blkiamf";var H;if(D.Mj&&((H=X.audio)==null?void 0:H.G)===!0)return"blkvbcabr";var t,q;if(D.t$&&(X.ij==="1"||X.ij==="1h"||M.D&&X.ij==="1e")&&((t=X.video)==null?0:t.qualityOrdinal)&&((q=X.video)==null?void 0:q.qualityOrdinal)>D.t$)return"av1cap";Q=M.U.get(X.ij);if(!D.h5&&Q&&Q.n_>0)return h.add(X.ij),"byerr";var w; if((w=X.video)==null?0:w.fps>32){if(!M.sR&&!A9(M,Y4.FRAMERATE))return"capHfr";if(D.p$&&X.video.qualityOrdinal>=4320)return"blk8khfr";if(En(X)&&D.MK&&X.DS&&X.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(D.jH&&X.jH>D.jH)return"ratecap";if(D.a5>0&&X.VB()&&X.video.height>D.a5)return"mvhcap";D=Oxp(M,X);return D!==!0?D:!0}; Cl=function(D,X){X=X===void 0?[]:X;g.aM(D,function(M,Q){var h=Q.jH-M.jH;if(!M.VB()||!Q.VB())return h;var H=Q.video.height*Q.video.width-M.video.height*M.video.width;!H&&X&&X.length>0&&(M=X.indexOf(M.ij)+1,Q=X.indexOf(Q.ij)+1,H=M===0||Q===0?Q||-1:M-Q);H||(H=h);return H})}; l5=function(D,X,M,Q,h,H,t,q,w){this.Ts=D;this.startTime=X;this.duration=M;this.ingestionTime=Q;this.sourceURL=h;this.x$=w;this.endTime=X+M;this.S=t||0;this.range=H||null;this.pending=q||!1;this.x$=w||null}; g.J9=function(){this.segments=[];this.S=null;this.G=!0;this.Y=""}; p91=function(D,X){if(X>D.oN())D.segments=[];else{var M=Jh(D.segments,function(Q){return Q.Ts>=X},D); M>0&&D.segments.splice(0,M)}}; x4=function(D,X,M,Q,h){h=h===void 0?!1:h;this.data=D;this.offset=X;this.size=M;this.type=Q;this.S=(this.G=h)?0:8;this.dataOffset=this.offset+this.S}; Wt=function(D){var X=D.data.getUint8(D.offset+D.S);D.S+=1;return X}; GY=function(D){var X=D.data.getUint16(D.offset+D.S);D.S+=2;return X}; zY=function(D){var X=D.data.getInt32(D.offset+D.S);D.S+=4;return X}; k4=function(D){var X=D.data.getUint32(D.offset+D.S);D.S+=4;return X}; u5=function(D){var X=D.data;var M=D.offset+D.S;X=X.getUint32(M)*4294967296+X.getUint32(M+4);D.S+=8;return X}; j$=function(D,X){X=X===void 0?NaN:X;if(isNaN(X))var M=D.size;else for(M=D.S;M1?Math.ceil(h*X):Math.floor(h*X))}D.skip(1);M=Wt(D)<<16|GY(D);if(M&256){Q=M&1;h=M&4;var H=M&512,t=M&1024,q=M&2048;M=k4(D);Q&&D.skip(4);h&&D.skip(4);Q=(H?4:0)+(t?4:0)+(q?4:0);for(h=0;h1?Math.ceil(t*X):Math.floor(t*X)),D.skip(Q)}}}; Ns=function(D){D=new DataView(D.buffer,D.byteOffset,D.byteLength);return(D=g.HY(D,0,1836476516))?g.te(D):NaN}; DF1=function(D){var X=g.HY(D,0,1937011556);if(!X)return null;X=qs(D,X.dataOffset+8,1635148593)||qs(D,X.dataOffset+8,1635135537);if(!X)return null;var M=qs(D,X.dataOffset+78,1936995172),Q=qs(D,X.dataOffset+78,1937126244);if(!Q)return null;X=null;if(M)switch(M.skip(4),Wt(M)){default:X=0;break;case 1:X=2;break;case 2:X=1;break;case 3:X=255}var h=M=null,H=null;if(Q=qs(D,Q.dataOffset,1886547818)){var t=qs(D,Q.dataOffset,1886546020),q=qs(D,Q.dataOffset,2037673328);if(!q&&(q=qs(D,Q.dataOffset,1836279920), !q))return null;t&&(t.skip(4),M=zY(t)/65536,H=zY(t)/65536,h=zY(t)/65536);D=AfH(q);D=new DataView(D.buffer,D.byteOffset+8,D.byteLength-8);return new uH9(X,M,H,h,D)}return null}; qs=function(D,X,M){for(;wr(D,X);){var Q=TQ(D,X);if(Q.type===M)return Q;X+=Q.size}return null}; g.HY=function(D,X,M){for(;wr(D,X);){var Q=TQ(D,X);if(Q.type===M)return Q;X=Lq(Q.type)?X+8:X+Q.size}return null}; g.sa=function(D){if(D.data.getUint8(D.dataOffset)){var X=D.data;D=D.dataOffset+4;X=X.getUint32(D)*4294967296+X.getUint32(D+4)}else X=D.data.getUint32(D.dataOffset+4);return X}; TQ=function(D,X){var M=D.getUint32(X),Q=D.getUint32(X+4);return new x4(D,X,M,Q)}; g.te=function(D){var X=D.data.getUint8(D.dataOffset)?20:12;return D.data.getUint32(D.dataOffset+X)}; X7H=function(D){D=new x4(D.data,D.offset,D.size,D.type,D.G);var X=Wt(D);D.skip(7);var M=k4(D);if(X===0){X=k4(D);var Q=k4(D)}else X=u5(D),Q=u5(D);D.skip(2);for(var h=GY(D),H=[],t=[],q=0;q122)return!1}return!0}; Lq=function(D){return D===1701082227||D===1836019558||D===1836019574||D===1835297121||D===1835626086||D===1937007212||D===1953653094||D===1953653099||D===1836475768}; Mg9=function(D){D.skip(4);return{FUf:j$(D,0),value:j$(D,0),timescale:k4(D),XHR:k4(D),eventDuration:k4(D),id:k4(D),Y2:j$(D),offset:D.offset}}; g.QXH=function(D){var X=qs(D,0,1701671783);if(!X)return null;var M=Mg9(X),Q=M.FUf;M=he(M.Y2);if(D=qs(D,X.offset+X.size,1701671783))if(D=Mg9(D),D=he(D.Y2),M&&D){X=g.e(Object.keys(D));for(var h=X.next();!h.done;h=X.next())h=h.value,M[h]=D[h]}return M?new Qq(M,Q):null}; Kq=function(D,X){for(var M=qs(D,0,X);M;){var Q=M;Q.type=1936419184;Q.data.setUint32(Q.offset+4,1936419184);M=qs(D,M.offset+M.size,X)}}; g.aJ=function(D,X){for(var M=0,Q=[];wr(D,M);){var h=TQ(D,M);h.type===X&&Q.push(h);M=Lq(h.type)?M+8:M+h.size}return Q}; hcp=function(D,X){var M=g.HY(D,0,1937011556),Q=g.HY(D,0,1953654136);if(!M||!Q||D.getUint32(M.offset+12)>=2)return null;var h=new DataView(X.buffer,X.byteOffset,X.length),H=g.HY(h,0,1937011556);if(!H)return null;X=h.getUint32(H.dataOffset+8);Q=h.getUint32(H.dataOffset+12);if(Q!==1701733217&&Q!==1701733238)return null;Q=new YF2(D.byteLength+X);Dv(Q,D,0,M.offset+12);Q.data.setInt32(Q.offset,2);Q.offset+=4;Dv(Q,D,M.offset+16,M.size-16);Dv(Q,h,h.byteOffset+H.dataOffset+8,X);Dv(Q,D,M.offset+M.size,D.byteLength- (M.offset+M.size));M=g.e([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(h=M.next();!h.done;h=M.next())h=g.HY(D,0,h.value),Q.data.setUint32(h.offset,h.size+X);D=g.HY(Q.data,0,1953654136);Q.data.setUint32(D.offset+16,2);return Q.data}; H9i=function(D){var X=g.HY(D,0,1937011556);if(!X)return null;var M=D.getUint32(X.dataOffset+12);if(M!==1701733217&&M!==1701733238)return null;X=qs(D,X.offset+24+(M===1701733217?28:78),1936289382);if(!X)return null;M=qs(D,X.offset+8,1935894637);if(!M||D.getUint32(M.offset+12)!==1667392371)return null;X=qs(D,X.offset+8,1935894633);if(!X)return null;X=qs(D,X.offset+8,1952804451);if(!X)return null;M=new Uint8Array(16);for(var Q=0;Q<16;Q++)M[Q]=D.getInt8(X.offset+16+Q);return M}; FV=function(D,X){this.S=D;this.pos=0;this.start=X||0}; Vq=function(D){return D.pos>=D.S.byteLength}; cY=function(D,X,M){var Q=new FV(M);if(!$V(Q,D))return!1;Q=BY(Q);if(!Zv(Q,X))return!1;for(D=0;X;)X>>>=8,D++;X=Q.start+Q.pos;var h=Ua(Q,!0);Q=D+(Q.start+Q.pos-X)+h;Q=Q>9?tgn(Q-9,8):tgn(Q-2,1);D=X-D;M.setUint8(D++,236);for(X=0;XM;h++)M=M*256+PY(D),Q*=128;return X?M-Q:M}; Sz=function(D){var X=Ua(D,!0);D.pos+=X}; w7R=function(D){if(!Zv(D,440786851,!0))return null;var X=D.pos;Ua(D,!1);var M=Ua(D,!0)+D.pos-X;D.pos=X+M;if(!Zv(D,408125543,!1))return null;Ua(D,!0);if(!Zv(D,357149030,!0))return null;var Q=D.pos;Ua(D,!1);var h=Ua(D,!0)+D.pos-Q;D.pos=Q+h;if(!Zv(D,374648427,!0))return null;var H=D.pos;Ua(D,!1);var t=Ua(D,!0)+D.pos-H,q=new Uint8Array(M+12+h+t),w=new DataView(q.buffer);q.set(new Uint8Array(D.S.buffer,D.S.byteOffset+X,M));w.setUint32(M,408125543);w.setUint32(M+4,33554431);w.setUint32(M+8,4294967295); q.set(new Uint8Array(D.S.buffer,D.S.byteOffset+Q,h),M+12);q.set(new Uint8Array(D.S.buffer,D.S.byteOffset+H,t),M+12+h);return q}; mQ=function(D){var X=D.pos;D.pos=0;var M=1E6;$V(D,[408125543,357149030,2807729])&&(M=fq(D));D.pos=X;return M}; TzR=function(D,X){var M=D.pos;D.pos=0;if(D.S.getUint8(D.pos)!==160&&!nq(D)||!Zv(D,160))return D.pos=M,NaN;Ua(D,!0);var Q=D.pos;if(!Zv(D,161))return D.pos=M,NaN;Ua(D,!0);PY(D);var h=PY(D)<<8|PY(D);D.pos=Q;if(!Zv(D,155))return D.pos=M,NaN;Q=fq(D);D.pos=M;return(h+Q)*X/1E9}; nq=function(D){if(!LK2(D)||!Zv(D,524531317))return!1;Ua(D,!0);return!0}; LK2=function(D){if(D.LS()){if(!Zv(D,408125543))return!1;Ua(D,!0)}return!0}; $V=function(D,X){for(var M=0;M0){var Q=hd(65,X.substring(M+1));g.sm(Q,function(h,H){this.set(H,h)},D); X=X.substring(0,M)}X=Vs(2,X);g.sm(X,function(h,H){this.set(H,h)},D)}; KKo=function(D){var X=D.tS.QF(),M=[];g.sm(D.S,function(h,H){M.push(H+"="+h)}); if(!M.length)return X;var Q=M.join("&");D=Tp(9,D.tS)?"&":"?";return X+D+Q}; ez=function(D,X){var M=new g.cs(X);(X=M.get("req_id"))&&D.set("req_id",X);g.sm(D.S,function(Q,h){M["set"](h,null)}); return M}; a$5=function(){this.U=this.Y=this.S=this.timedOut=this.started=this.D=this.G=0}; RJ=function(D){D.D=(0,g.fi)();D.started=0;D.timedOut=0;D.S=0}; IJ=function(D,X){var M=D.started+D.S*4;X&&(M+=D.Y);M=Math.max(0,M-3);return Math.pow(1.6,M)}; gr=function(D,X){D[X]||(D[X]=new a$5);return D[X]}; vY=function(D){this.eH=this.J=this.D=this.Y=0;this.K=this.X=!1;this.S=D;this.G=D.clone()}; FKi=function(D,X,M){if(td(2,D.S))return!1;var Q=gr(M,hd(95,D.S));if(Q.timedOut<1&&Q.S<1)return!1;Q=Q.timedOut+Q.S;D=dr(D,X);M=gr(M,hd(82,D));return M.timedOut+M.S+01?X=X.m5f:(M=gr(M,is(D,D.Wh(X,M),X)),X=Math.max(D.D,M.timedOut)+X.e_*(D.Y-D.D)+.25*D.J,X=X>3?1E3*Math.pow(1.6,X-3):0);return X===0?!0:D.eH+X<(0,g.fi)()}; Vg5=function(D,X,M){D.S.set(X,M);D.G.set(X,M);D.U&&D.U.set(X,M)}; $FW=function(D,X,M,Q,h){++D.Y;X&&++D.D;hd(92,M.tS).startsWith("redirector.")&&(D.S=D.G.clone(),delete D.U,Q.zH&&delete h[hd(82,D.S)])}; Cq=function(D){return D?(D.itag||"")+";"+(D.lmt||0)+";"+(D.xtags||""):""}; Oa=function(D,X,M,Q){this.initRange=M;this.indexRange=Q;this.S=null;this.Y=!1;this.X=0;this.U=this.LU=this.G=null;this.info=X;this.Uw=new vY(D)}; pq=function(D,X){return Cq(g.vE(D.info,X))}; Ae=function(D,X){this.start=D;this.end=X;this.length=X-D+1}; YV=function(D){D=D.split("-");var X=Number(D[0]),M=Number(D[1]);if(!isNaN(X)&&!isNaN(M)&&D.length===2&&(D=new Ae(X,M),!isNaN(D.start)&&!isNaN(D.end)&&!isNaN(D.length)&&D.length>0))return D}; ls=function(D,X){return new Ae(D,D+X-1)}; Bzd=function(D){return D.end==null?{start:String(D.start)}:{start:String(D.start),end:String(D.end)}}; Je=function(D){if(!D)return new Ae(0,0);var X=Number(D.start);D=Number(D.end);if(!isNaN(X)&&!isNaN(D)&&(X=new Ae(X,D),X.length>0))return X}; xV=function(D,X,M,Q,h,H,t,q,w,T,L,K){Q=Q===void 0?"":Q;this.type=D;this.n$=X;this.range=M;this.source=Q;this.Zb=L;this.clipId=K===void 0?"":K;this.K=[];this.X="";this.Ts=-1;this.eH=0;this.X=Q;this.Ts=h>=0?h:-1;this.startTime=H||0;this.duration=t||0;this.S=q||0;this.G=w>=0?w:this.range?this.range.length:NaN;this.Y=this.range?this.S+this.G===this.range.length:T===void 0?!!this.G:T;this.range?(this.U=this.startTime+this.duration*this.S/this.range.length,this.J=this.duration*this.G/this.range.length, this.D=this.U+this.J):Z9H(this)}; Z9H=function(D){D.U=D.startTime;D.J=D.duration;D.D=D.U+D.J}; UFn=function(D,X,M){var Q=!(!X||X.n$!==D.n$||X.type!==D.type||X.Ts!==D.Ts);return M?Q&&!!X&&(D.range&&X.range?X.range.end===D.range.end:X.range===D.range)&&X.S+X.G===D.S+D.G:Q}; WY=function(D){return D.type===1||D.type===2}; GQ=function(D){return D.type===3||D.type===6}; zQ=function(D,X){return D.n$===X.n$?D.range&&X.range?D.range.start+D.S+D.G===X.range.start+X.S:D.Ts===X.Ts?D.S+D.G===X.S:D.Ts+1===X.Ts&&X.S===0&&D.Y:!1}; f$R=function(D,X){return D.Ts!==X.Ts&&X.Ts!==D.Ts+1||D.type!==X.type?!1:zQ(D,X)?!0:Math.abs(D.U-X.U)<=1E-6&&D.Ts===X.Ts?!1:c8H(D,X)}; c8H=function(D,X){return zQ(D,X)||Math.abs(D.D-X.U)<=1E-6||D.Ts+1===X.Ts&&X.S===0&&D.Y?!0:!1}; kV=function(D){return D.Ts+(D.Y?1:0)}; Sz9=function(D){D.length===1||g.eE(D,function(M){return!!M.range}); for(var X=1;X=X.range.start+X.S&&D.range.start+D.S+D.G<=X.range.start+X.S+X.G:D.Ts===X.Ts&&D.S>=X.S&&(D.S+D.G<=X.S+X.G||X.Y)}; ecs=function(D,X){return D.n$!==X.n$?!1:D.type===4&&X.type===3&&D.n$.hh()?(D=D.n$.Fi(D),jj(D,function(M){return ecs(M,X)})):D.Ts===X.Ts&&!!X.G&&X.S+X.G>D.S&&X.S+X.G<=D.S+D.G}; jz=function(D,X){var M=X.Ts;D.X="updateWithSegmentInfo";D.Ts=M;if(D.startTime!==X.startTime||D.duration!==X.duration)D.startTime=X.startTime,D.duration=X.duration,Z9H(D)}; Do=function(D,X){var M=this;this.W2=D;this.U=this.S=null;this.D=this.fY=NaN;this.Wh=this.requestId=null;this.py={ris:function(){return M.range}}; this.Uw=D[0].n$.Uw;this.G=X||"";this.W2[0].range&&this.W2[0].G>0&&(EJ9(D)?(this.range=Sz9(D),this.Y=this.range.length):(this.range=this.W2[this.W2.length-1].range,this.Y=y8m(D)))}; Xi=function(D){return!WY(D.W2[D.W2.length-1])}; MH=function(D){return D.W2[D.W2.length-1].type===4}; g.Qy=function(D,X,M){M=D.Wh===null?D.Uw.Wh(X,M,D.W2[0].type):D.Wh;if(D.S){X=M?Em(6,D.S,X.cZ):D.S;var Q=new bs(X);Q.get("alr")||Q.set("alr","yes");D.G&&sXm(Q,D.G)}else/http[s]?:\/\//.test(D.G)?Q=new bs(new g.cs(D.G)):(Q=rr(D.Uw,M,X),D.G&&sXm(Q,D.G));(X=D.range)?Q.set("range",X.toString()):D.W2[0].n$.y0()&&D.W2.length===1&&D.W2[0].S&&Q.set("range",D.W2[0].S+"-");D.requestId&&Q.set("req_id",D.requestId);isNaN(D.fY)||Q.set("headm",D.fY.toString());isNaN(D.D)||Q.set("mffa",D.D+"ms");D.urlParams&&g.sm(D.urlParams, function(h,H){Q.set(H,h)}); return Q}; Rcd=function(D){if(D.range)return D.Y;D=D.W2[0];return Math.round(D.J*D.n$.info.jH)}; I$m=function(D,X){return Math.max(0,D.W2[0].U-X)}; gJ_=function(D,X){D=g.e(D.W2);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.type===3&&X>=M.U&&X<=M.D)return!0;return!1}; hI=function(D,X,M,Q,h,H){H=H===void 0?0:H;Oa.call(this,D,X,Q,void 0);this.D=M;this.oP=H;this.index=h||new g.J9}; vJi=function(D,X,M,Q,h){this.Ts=D;this.startSecs=X;this.rp=M;this.S=Q||NaN;this.G=h||NaN}; H2=function(D,X,M){for(;D;D=D.parentNode)if(D.attributes&&(!M||D.nodeName===M)){var Q=D.getAttribute(X);if(Q)return Q}return""}; tI=function(D,X){for(;D;D=D.parentNode){var M=D.getElementsByTagName(X);if(M.length>0)return M[0]}return null}; dFs=function(D){if(!D)return 0;var X=D.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return X?(Number(X[2])|0)*3600+(Number(X[4])|0)*60+(Number(X[6])|0):Number(D)|0}; r8o=function(D){return D.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?D+"Z":D}; NH=function(){this.S=[];this.G=null;this.X=0;this.Y=[];this.D=!1;this.J="";this.U=-1}; i91=function(D){var X=D.Y;D.Y=[];return X}; oJ2=function(){this.U=[];this.S=null;this.G={};this.Y={}}; A82=function(D,X){var M=[];X=Array.from(X.getElementsByTagName("SegmentTimeline"));X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var h=Q.parentNode.parentNode,H=null;h.nodeName==="Period"?H=CZn(D):h.nodeName==="AdaptationSet"?(h=h.getAttribute("id")||h.getAttribute("mimetype")||"",H=O9s(D,h)):h.nodeName==="Representation"&&(h=h.getAttribute("id")||"",H=p7W(D,h));if(H==null)return;H.update(Q);g.ty(M,i91(H))}g.ty(D.U,M);un2(D.U,function(t){return t.startSecs*1E3+t.S})}; Yz5=function(D){D.S&&(D.S.S=[]);g.sm(D.G,function(X){X.S=[]}); g.sm(D.Y,function(X){X.S=[]})}; CZn=function(D){D.S||(D.S=new NH);return D.S}; O9s=function(D,X){D.G[X]||(D.G[X]=new NH);return D.G[X]}; p7W=function(D,X){D.Y[X]||(D.Y[X]=new NH);return D.Y[X]}; wx=function(D){var X=D===void 0?{}:D;D=X.oP===void 0?0:X.oP;var M=X.Zq===void 0?!1:X.Zq;var Q=X.qQ===void 0?0:X.qQ;var h=X.GF===void 0?0:X.GF;var H=X.zI===void 0?Infinity:X.zI;var t=X.bC===void 0?0:X.bC;var q=X.uH===void 0?!1:X.uH;X=X.gT===void 0?!1:X.gT;g.J9.call(this);this.Fo=this.Cz=-1;this.x5=D;this.qQ=Q;this.Zq=M;this.GF=h;this.zI=H;this.bC=t;((this.uH=q)||isFinite(H)&&this.zI>0)&&M&&qH&&(this.G=!1,this.Y="postLive");this.gT=X}; Tw=function(D,X){return Kf(D.segments,function(M){return X-M.Ts})}; LF=function(D,X,M){M=M===void 0?{}:M;hI.call(this,D,X,"",void 0,void 0,M.oP||0);this.index=new wx(M)}; sM=function(D,X,M){Oa.call(this,D,X);this.D=M;D=this.index=new g.J9;D.G=!1;D.Y="d"}; l$2=function(D,X,M){var Q=D.index.BQ(X),h=D.index.getStartTime(X),H=D.index.getDuration(X);M?H=M=0:M=D.info.jH*H;return new Do([new xV(3,D,void 0,"otfCreateRequestInfoForSegment",X,h,H,0,M)],Q)}; J8s=function(D,X){if(!D.index.isLoaded()){var M=[],Q=X.U;X=X.D.split(",").filter(function(L){return L.length>0}); for(var h=0,H=0,t=0,q=/^(\d+)/,w=/r=(\d+)/,T=0;T0&&(h.S=Math.min(h.S+t,10),h.G=H);h.S>0?(h.S--,h=!0):h=!1;if(h)typeof Q==="function"&&(Q=Q()),console.log("plyr."+X,Q);else{var q;Q=((q=u92.get(X))!=null?q:0)+1;u92.set(X,Q);Q%100===1&&console.warn("plyr","plyr."+X+" is chatty, dropping logs.")}}}; kad=function(){this.S=10;this.G=Date.now()}; Fi=function(D,X){this.info=D;this.G=X;this.S=null;this.U=this.Y=-1;this.timestampOffset=0;this.isLocked=this.X=!1;this.D=this.info.n$.KB()&&!this.info.S}; g.Vy=function(D){return U$2(D.G)}; jXi=function(D,X){X=Math.min(X,D.info.G);var M=D.G.split(X),Q=M.sI;M=new Fi(new xV(D.info.type,D.info.n$,D.info.range,D.info.X,D.info.Ts,D.info.startTime,D.info.duration,D.info.S,X,!1,D.info.Zb,D.info.clipId),M.vQ);M.U=D.U;M.Y=D.Y;X=new Fi(new xV(D.info.type,D.info.n$,D.info.range,D.info.X,D.info.Ts,D.info.startTime,D.info.duration,D.info.S+X,D.info.G-X,D.info.Y,D.info.Zb,D.info.clipId),Q);X.U=D.U;X.Y=D.Y;return[M,X]}; g.$C=function(D,X,M,Q){M=M===void 0?!1:M;Q=Q===void 0?0:Q;if(D.isLocked||X.isLocked||!zQ(D.info,X.info)||D.info.Y)return null;if(Q){if(D.G.totalLength+X.G.totalLength>Q)return null}else if(M&&(M=D.G,Q=X.G,M=!(Q.S.length?BfW(M,Q.S[0]):1)),M)return null;M=new xV(D.info.type,D.info.n$,D.info.range,D.info.X,D.info.Ts,D.info.startTime,D.info.duration,D.info.S,D.info.G,D.info.Y,D.info.Zb,D.info.clipId);Q=X.info;M.G+=Q.G;M.range&&(M.J+=Q.J);M.D=Q.D;M.Y=Q.Y;Q=new Qi;hG(Q,D.G);hG(Q,X.G);M=new Fi(M,Q);M.S!= null&&X.S!=null&&g.aK("dash",414627957,"merged slice emsg overridden; prev: "+M.S.Ln()+" next: "+X.S.Ln());M.S=X.S||D.S;M.Y=D.Y!==-1?D.Y:X.Y;M.U=D.U!==-1?D.U:X.U;return M}; g.B2=function(D){g.Is(D.info.n$.info)||D.info.n$.info.VF();if(D.Y!==-1)return D.Y;if(D.S&&xns(D.S))return D.Y=xns(D.S),D.Y;if(g.Is(D.info.n$.info)){var X=g.Vy(D);for(var M=D.info.n$.S,Q=NaN,h=NaN,H=0;wr(X,H);){var t=TQ(X,H);t.type===1936286840?h=t.data.getUint32(t.dataOffset+8):t.type===1836476516?h=g.te(t):t.type===1952867444&&isNaN(Q)&&(Q=g.sa(t));H=Lq(t.type)?H+8:H+t.size}!h&&M&&(h=Ns(M));X=Q/h}else X=new FV(g.Vy(D)),M=D.D?X:new FV(new DataView(D.info.n$.S.buffer)),Q=mQ(M),M=X.pos,X.pos=0,nq(X)? Zv(X,231)?(Q=fq(X)*Q/1E9,X.pos=M,X=Q):(X.pos=M,X=NaN):(X.pos=M,X=NaN);D.Y=X||D.info.U;return D.Y}; XEp=function(D,X){D.timestampOffset>0&&(X-=D.timestampOffset);var M=g.B2(D)+X;D0R(D,M);D.timestampOffset=X}; D0R=function(D,X){g.Is(D.info.n$.info)||D.info.n$.info.VF();D.Y=X;if(g.Is(D.info.n$.info)){var M=g.Vy(D);D=D.info.n$.S;for(var Q=NaN,h=NaN,H=0;wr(M,H);){var t=TQ(M,H);isNaN(Q)&&(t.type===1936286840?Q=t.data.getUint32(t.dataOffset+8):t.type===1836476516&&(Q=g.te(t)));if(t.type===1952867444){!Q&&D&&(Q=Ns(D));var q=g.sa(t);isNaN(h)&&(h=Math.round(X*Q)-q);var w=t;q+=h;if(w.data.getUint8(w.dataOffset)){var T=w.data;w=w.dataOffset+4;T.setUint32(w,Math.floor(q/4294967296));T.setUint32(w+4,q&4294967295)}else w.data.setUint32(w.dataOffset+ 4,q)}H=Lq(t.type)?H+8:H+t.size}return!0}M=new FV(g.Vy(D));D=D.D?M:new FV(new DataView(D.info.n$.S.buffer));Q=mQ(D);D=M.pos;M.pos=0;if(nq(M)&&Zv(M,231))if(h=Ua(M,!0),X=Math.floor(X*1E9/Q),Math.ceil(Math.log(X)/Math.log(2)/8)>h)X=!1;else{for(Q=h-1;Q>=0;Q--)M.S.setUint8(M.pos+Q,X&255),X>>>=8;M.pos=D;X=!0}else X=!1;return X}; UM=function(D,X){X=X===void 0?!1:X;var M=Zo(D);D=X?0:D.info.J;return M||D}; Zo=function(D){g.Is(D.info.n$.info)||D.info.n$.info.VF();if(D.S&&D.info.type===6)return D.S.oP;if(g.Is(D.info.n$.info)){var X=g.Vy(D);var M=0;X=g.aJ(X,1936286840);X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())Q=X7H(Q.value),M+=Q.dW[0]/Q.timescale;M=M||NaN;if(!(M>=0))a:{M=g.Vy(D);X=D.info.n$.S;for(var h=Q=0,H=0;wr(M,Q);){var t=TQ(M,Q);if(t.type===1836476516)h=g.te(t);else if(t.type===1836019558){!h&&X&&(h=Ns(X));if(!h){M=NaN;break a}var q=qs(t.data,t.dataOffset,1953653094),w=q;q=h;var T=qs(w.data, w.dataOffset,1952868452);w=qs(w.data,w.dataOffset,1953658222);var L=zY(T);zY(T);L&2&&zY(T);T=L&8?zY(T):0;var K=zY(w),a=K&1;L=K&4;var F=K&256,V=K&512,c=K&1024;K&=2048;var S=k4(w);a&&zY(w);L&&zY(w);for(var b=a=0;b2048?"":X.indexOf("https://")===0?X:""}; P2=function(D,X,M){X.match(ssi);return D(X,M).then(function(Q){var h=g.Lqi(Q.xhr);return h?P2(D,h,M):Q.xhr})}; e4=function(D,X,M){D=D===void 0?"":D;X=X===void 0?null:X;M=M===void 0?!1:M;g.Dq.call(this);var Q=this;this.sourceUrl=D;this.isLivePlayback=M;this.OR=this.duration=0;this.isPremiere=this.uH=this.U=this.isLiveHeadPlayable=this.isLive=this.G=!1;this.zI=this.GF=0;this.isOtf=this.yq=!1;this.uj=(0,g.fi)();this.R5=Infinity;this.S={};this.Y=new Map;this.state=this.HB=0;this.J=null;this.isManifestless=!1;this.sR=[];this.D=null;this.L$=0;this.X="";this.M5=NaN;this.gO=this.wL=this.timestampOffset=this.K=0;this.jm= this.Xn=NaN;this.xY=0;this.yf=this.f$=!1;this.A$=[];this.t$={};this.a5=NaN;this.py={HZF:function(q){mD(Q,q)}}; var h;this.p$=(h=X)==null?void 0:h.Z4("html5_use_network_error_code_enums");KqR=!!X&&X.Z4("html5_modern_vp9_mime_type");var H;nF=!((H=X)==null||!H.Z4("html5_enable_flush_during_seek"))&&g.xH();var t;bk=!((t=X)==null||!t.Z4("html5_enable_reset_audio_decoder"))&&g.xH()}; aH2=function(D){return g.$W(D.S,function(X){return!!X.info.video&&X.info.video.qualityOrdinal>=2160})}; rf1=function(D){return g.$W(D.S,function(X){return!!X.info.video&&X.info.video.isHdr()})}; i5=function(D){return g.$W(D.S,function(X){return!!X.info.DS})}; g.Fq9=function(D){return g.$W(D.S,function(X){return iw(X.info.mimeType)})}; Vvo=function(D){return g.$W(D.S,function(X){return X.info.video?X.info.video.projectionType==="EQUIRECTANGULAR":!1})}; $0p=function(D){return g.$W(D.S,function(X){return X.info.video?X.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; BeH=function(D){return g.$W(D.S,function(X){return X.info.video?X.info.video.projectionType==="MESH":!1})}; ZE_=function(D){return g.$W(D.S,function(X){return X.info.video?X.info.video.stereoLayout===1:!1})}; U0s=function(D){return Qa1(D.S,function(X){return X.info.video?X.Kb():!0})}; vt=function(D){return g.$W(D.S,function(X){return td(18,X.Uw.S)})}; mD=function(D,X){D.S[X.info.id]=X;D.Y.set(pq(X,D.yq),X)}; gx=function(D,X,M){M=M===void 0?0:M;var Q=D.mimeType||"",h=D.itag;var H=D.xtags;h=h?h.toString():"";H&&(h+=";"+H);H=h;if(re(Q)){var t=D.width||640;h=D.height||360;var q=D.fps,w=D.qualityLabel,T=D.qualityOrdinal,L=D.colorInfo,K=D.projectionType,a;D.stereoLayout&&(a=cCH[D.stereoLayout]);var F=wE9(D)||void 0;if(L==null?0:L.primaries)var V=fHp[L.primaries]||void 0;t=new ZH(t,h,q,K,a,void 0,w,T&&Sns[T],F,V);Q=RK(Q,t,fE[D.itag||""]);nF&&(Q+="; enableflushduringseek=true");bk&&(Q+="; enableresetaudiodecoder=true")}var c; if(de(Q)){var S=D.audioSampleRate;a=D.audioTrack;S=new tC(S?+S:void 0,D.audioChannels,D.spatialAudioType,D.isDrc,D.loudnessDb,D.trackAbsoluteLoudnessLkfs,D.audioQuality||"AUDIO_QUALITY_UNKNOWN",D.isVb);a&&(V=a.displayName,h=a.id,q=a.audioIsDefault,a=a.isAutoDubbed,V&&(c=new g.yy(V,h||"",!!q,!!a)))}var b;D.captionTrack&&(w=D.captionTrack,a=w.displayName,V=w.vssId,h=w.languageCode,q=w.kind,w=w.id,a&&V&&h&&(b=new NeW(a,V,h,q,D.xtags,w)));a=Number(D.bitrate)/8;V=Number(D.contentLength);h=Number(D.lastModified); w=D.drmFamilies;q=D.type;M=M&&V?V/M:0;D=Number(D.approxDurationMs);if(X&&w){var n={};w=g.e(w);for(T=w.next();!T.done;T=w.next())(T=IK[T.value])&&(n[T]=X[T])}return new Sv(H,Q,{audio:S,video:t,Cy:c,DS:n,jH:a,C0:M,contentLength:V,lastModified:h,captionTrack:b,streamType:q,approxDurationMs:D})}; v2=function(D,X,M){M=M===void 0?0:M;var Q=D.type;var h=D.itag;var H=D.xtags;H&&(h=D.itag+";"+H);if(re(Q)){var t=(D.size||"640x360").split("x");t=new ZH(+t[0],+t[1],+D.fps,D.projection_type,+D.stereo_layout,void 0,D.quality_label,+D.quality_ordinal,D.eotf,D.primaries);Q=RK(Q,t,fE[D.itag]);nF&&(Q+="; enableflushduringseek=true");bk&&(Q+="; enableresetaudiodecoder=true")}var q;if(de(Q)){var w=new tC(+D.audio_sample_rate||void 0,+D.audio_channels||0,D.spatial_audio_type,!!D.drc);D.name&&(q=new g.yy(D.name, D.audio_track_id,D.isDefault==="1",D.isAutoDubbed==="1"))}var T;D.caption_display_name&&D.caption_vss_id&&D.caption_language_code&&(T=new NeW(D.caption_display_name,D.caption_vss_id,D.caption_language_code,D.caption_kind,D.xtags,D.caption_id));H=Number(D.bitrate)/8;var L=Number(D.clen),K=Number(D.lmt);M=M&&L?L/M:0;if(X&&D.drm_families){var a={};for(var F=g.e(D.drm_families.split(",")),V=F.next();!V.done;V=F.next())V=V.value,a[V]=X[V]}return new Sv(h,Q,{audio:w,video:t,Cy:q,DS:a,jH:H,C0:M,contentLength:L, lastModified:K,captionTrack:T,streamType:D.stream_type,approxDurationMs:Number(D.approx_duration_ms)})}; EPi=function(D){return jj(D,function(X){return"FORMAT_STREAM_TYPE_OTF"===X.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; yCn=function(D){return jj(D,function(X){return"FORMAT_STREAM_TYPE_OTF"===X.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Pw1=function(D,X){return D.J?Nu(D.J.U,X):D.sR.length?Nu(D.sR,X):[]}; dx=function(D,X,M){X=X===void 0?"":X;M=M===void 0?"":M;D=new g.cs(D,!0);D.set("alr","yes");M&&(M=hd(1,decodeURIComponent(M)),D[N[10]](X,encodeURIComponent(M)));return D}; e1i=function(D,X){var M=H2(X,"id");M=M.replace(":",";");var Q=H2(X,"mimeType"),h=H2(X,"codecs");Q=h?Q+'; codecs="'+h+'"':Q;h=Number(H2(X,"bandwidth"))/8;var H=Number(tI(X,"BaseURL").getAttribute(D.X+":contentLength")),t=D.duration&&H?H/D.duration:0;if(re(Q)){var q=Number(H2(X,"width"));var w=Number(H2(X,"height")),T=Number(H2(X,"frameRate")),L=m09(H2(X,D.X+":projectionType"));a:switch(H2(X,D.X+":stereoLayout")){case "layout_left_right":var K=1;break a;case "layout_top_bottom":K=2;break a;default:K= 0}q=new ZH(q,w,T,L,K)}if(de(Q)){var a=Number(H2(X,"audioSamplingRate"));var F=Number(H2(X.getElementsByTagName("AudioChannelConfiguration")[0],"value"));w=nP2(H2(X,D.X+":spatialAudioType"));a=new tC(a,F,w);a:{F=H2(X,"lang")||"und";if(w=tI(X,"Role"))if(L=H2(w,"value")||"",g.mW(bE_,L)){w=F+"."+bE_[L];T=L==="main";D=H2(X,D.X+":langName")||F+" - "+L;F=new g.yy(D,w,T);break a}F=void 0}}if(X=tI(X,"ContentProtection"))if(X.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var V={};for(X= X.firstChild;X!=null;X=X.nextSibling)X instanceof Element&&/SystemURL/.test(X.nodeName)&&(D=X.getAttribute("type"),w=X.textContent,D&&w&&(V[D]=w.trim()))}else V=void 0;return new Sv(M,Q,{audio:a,video:q,Cy:F,DS:V,jH:h,C0:t,contentLength:H})}; m09=function(D){switch(D){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"}}; nP2=function(D){switch(D){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"}}; IHd=function(D,X){X=X===void 0?"":X;D.state=1;D.uj=(0,g.fi)();return Tep(X||D.sourceUrl).then(function(M){if(!D.H2()){D.HB=M.status;M=M.responseText;var Q=new DOMParser;M=pr(Q,K$s(M),"text/xml").getElementsByTagName("MPD")[0];D.R5=dFs(H2(M,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(M.attributes){Q=g.e(M.attributes);for(var h=Q.next();!h.done;h=Q.next())if(h=h.value,h.value==="http://youtube.com/yt/2012/10/10"){Q=h.name.split(":")[1];break b}}Q=""}D.X=Q;D.isLive=D.R5=D.R5}; R1s=function(D){var X=D.R5;isFinite(X)&&(rx(D)?D.refresh():(X=Math.max(0,D.uj+X-(0,g.fi)()),D.D||(D.D=new g.W5(D.refresh,X,D),g.p(D,D.D)),D.D.start(X)))}; vPs=function(D){D=D.S;for(var X in D){var M=D[X].index;if(M.isLoaded())return M.oN()+1}return 0}; ik=function(D){return D.wL?D.wL-(D.K||D.timestampOffset):0}; oK=function(D){return D.gO?D.gO-(D.K||D.timestampOffset):0}; CF=function(D){if(!isNaN(D.M5))return D.M5;var X=D.S,M;for(M in X){var Q=X[M].index;if(Q.isLoaded()&&!iw(X[M].info.mimeType)){X=0;for(M=Q.fS();M<=Q.oN();M++)X+=Q.getDuration(M);X/=Q.uV();X=Math.round(X/.5)*.5;Q.uV()>10&&(D.M5=X);return X}if(D.isLive&&(Q=X[M],Q.oP))return Q.oP}return NaN}; d0p=function(D,X){D=HGo(D.S,function(Q){return Q.index.isLoaded()}); if(!D)return NaN;D=D.index;var M=D.lE(X);return D.getStartTime(M)===X?X:M=0&&h.segments.splice(H,1)}}}; iEi=function(D){for(var X in D.S)iw(D.S[X].info.mimeType)||p91(D.S[X].index,Infinity)}; AI=function(D,X,M){for(var Q in D.S){var h=D.S[Q].index,H=X,t=M;h.Zq&&(H&&(h.Cz=Math.max(h.Cz,H)),t&&(h.Fo=Math.max(h.Fo||0,t)))}M&&(D.a5=M/1E3)}; oPs=function(D){D.gO=0;D.wL=0;D.xY=0}; YC=function(D){return D.yf&&D.isManifestless?D.isLiveHeadPlayable:D.isLive}; RK=function(D,X,M){lk===null&&(lk=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(KqR&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return lk||M!=="9"&&M!=="("?lk||M!=="9h"&&M!=="(h"||(D='video/webm; codecs="vp9.2"'):D='video/webm; codecs="vp9"',D;if(!lk&&!JI||D!=='video/webm; codecs="vp9"'&&D!=='video/webm; codecs="vp9.2"')return D; M="00";var Q="08",h="01",H="01",t="01";D==='video/webm; codecs="vp9.2"'&&(M="02",Q="10",X.primaries==="bt2020"&&(t=h="09"),X.S==="smpte2084"&&(H="16"),X.S==="arib-std-b67"&&(H="18"));return'video/webm; codecs="'+["vp09",M,"51",Q,"01",h,H,t,"00"].join(".")+'"'}; W2=function(D,X,M){D=""+D+(X>49?"p60":X>32?"p48":"");X=Bt()[D];if(X!=null&&X>0)return X;X=xC.get(D);if(X!=null&&X>0)return X;M=M==null?void 0:M.get(D);return M!=null&&M>0?M:8192}; OER=function(D){this.UR=D;this.bM=this.yH=this.uj=this.D=this.U=this.sR=this.A$=this.f$=!1;this.J=this.X=0;this.o5=!1;this.R5=!0;this.p$=!1;this.xw=0;this.dh=this.L$=!1;this.XS=!0;this.OR=this.yf=!1;this.G={};this.h5=this.Mj=this.Vq=this.disableAv1=this.zm=this.G6=this.q5=this.R2=this.S=this.K=!1;this.a5=0;this.w6=this.UR.T("html5_disable_aac_preference");this.DJ=Infinity;this.M5=0;this.Ky=this.UR.t5();this.J5=this.UR.experiments.Z4("html5_enable_vp9_fairplay");this.T6=this.UR.T("html5_force_av1_for_testing"); this.p6=this.UR.Q2().S.xl(Cw2);this.t$=g.lx(this.UR.experiments,"html5_av1_ordinal_cap");this.MK=this.UR.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.l0=this.UR.T("html5_account_onesie_format_selection_during_format_filter");this.jH=g.lx(this.UR.experiments,"html5_max_byterate");this.qj=this.UR.T("html5_enable_iamf_audio");this.iM=this.UR.experiments.Z4("html5_allow_capability_merge");this.ZJ=this.UR.T("html5_enable_encrypted_av1")}; ixR=function(D){if(D.A$)return["f"];if(g.lE("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var X=["9h","9","h","8"];D.ZJ&&X.push("1e");X=X.concat(["(h","(","H","*"]);D.L$&&(X.unshift("1"),X.unshift("1h"));D.yH&&X.unshift("h");D.eH&&(X=(pEi[D.eH]||[D.eH]).concat(X));return X}; efd=function(D){var X=["o","a","A"];D.M5===1&&(D.U&&(X=["mac3","MAC3"].concat(X)),D.D&&(X=["meac3","MEAC3"].concat(X)),D.qj&&(X=["i","I"].concat(X)));D.f$&&(X=["so","sa"].concat(X));!D.bM||D.uj||D.Y||D.w6||X.unshift("a");D.Y&&(X=(pEi[D.Y]||[D.Y]).concat(X));return X}; Gw=function(D,X,M,Q){X=X===void 0?{}:X;if(Q===void 0?0:Q)return X.disabled=1,0;if(A9(D.D,Y4.AV1_CODECS)&&A9(D.D,Y4.HEIGHT)&&A9(D.D,Y4.BITRATE))return X.isCapabilityUsable=1,8192;try{var h=LVn();if(h&&!D.T("disable_av1_setting"))return X.localPref=h}catch(q){}Q=1080;h=navigator.hardwareConcurrency;h<=2&&(Q=480);X.coreCount=h;if(h=g.lx(D.experiments,"html5_default_av1_threshold"))Q=X["default"]=h;if(D=D.D.R5)X.mcap=D,Q=Math.max(Q,D);if(M){var H,t;if(D=(H=M.videoInfos.find(function(q){return mq(q)}))== null?void 0:(t=H.G)==null?void 0:t.powerEfficient)Q=8192,X.isEfficient=1; M=M.videoInfos[0].video;H=Math.min(W2("1",M.fps),W2("1",30));X.perfCap=H;Q=Math.min(Q,H);M.isHdr()&&!D&&(X.hdr=1,Q*=.75)}else M=W2("1",30),X.perfCap30=M,Q=Math.min(Q,M),M=W2("1",60),X.perfCap60=M,Q=Math.min(Q,M);return X.av1Threshold=Q}; zw=function(D,X,M,Q){this.flavor=D;this.keySystem=X;this.G=M;this.experiments=Q;this.S={};this.I4=this.keySystemAccess=null;this.Fj=this.qU=-1;this.AD=null;this.Y=!!Q&&Q.Z4("edge_nonprefixed_eme");Q&&Q.Z4("html5_enable_vp9_fairplay")}; uk=function(D){return D.Y?!1:!D.keySystemAccess&&!!kC()&&D.keySystem==="com.microsoft.playready"}; j4=function(D){return D.keySystem==="com.microsoft.playready"}; DE=function(D){return!D.keySystemAccess&&!!kC()&&D.keySystem==="com.apple.fps.1_0"}; XI=function(D){return D.keySystem==="com.youtube.fairplay"}; MI=function(D){return D.keySystem==="com.youtube.fairplay.sbdl"}; g.Q5=function(D){return D.flavor==="fairplay"}; kC=function(){var D=window,X=D.MSMediaKeys;zr()&&!X&&(X=D.WebKitMediaKeys);return X&&X.isTypeSupported?X:null}; Hk=function(D){return navigator.requestMediaKeySystemAccess?g.Xu&&!g.xH()?Su("45"):g.Jg||g.s5?D.Z4("edge_nonprefixed_eme"):g.h0?Su("47"):g.ah&&D.Z4("html5_enable_safari_fairplay")?!1:!0:!1}; AC2=function(D,X,M,Q){var h=WX(),H=(M=h||M&&zr())?["com.youtube.fairplay"]:["com.widevine.alpha"];X&&H.unshift("com.youtube.widevine.l3");h&&Q&&H.unshift("com.youtube.fairplay.sbdl");return M?H:D?[].concat(g.xW(H),g.xW(t0.playready)):[].concat(g.xW(t0.playready),g.xW(H))}; NI=function(D,X,M,Q,h){Q=Q===void 0?!1:Q;g.O.call(this);this.UR=X;this.useCobaltWidevine=Q;this.SH=h;this.G=[];this.Y={};this.S={};this.callback=null;this.D=!1;this.U=[];this.initialize(D,!M)}; lHn=function(D,X){D.callback=X;D.U=[];Hk(D.UR.experiments)?qI(D):Yn9(D)}; qI=function(D){if(!D.H2())if(D.G.length===0)D.callback(D.U);else{var X=D.G[0],M=D.Y[X],Q=JCn(D,M);if(w_&&w_.keySystem===X&&w_.wBj===JSON.stringify(Q))D.SH("remksa",{re:!0}),x0i(D,M,w_.keySystemAccess);else{var h,H;D.SH("remksa",{re:!1,ok:(H=(h=w_)==null?void 0:h.keySystem)!=null?H:""});w_=void 0;navigator.requestMediaKeySystemAccess(X,Q).then(jp(function(t){x0i(D,M,t,Q)}),jp(function(){D.D=!D.D&&D.Y[D.G[0]].flavor==="widevine"; D.D||D.G.shift();qI(D)}))}}}; x0i=function(D,X,M,Q){if(!D.H2()){Q&&(w_={keySystem:X.keySystem,keySystemAccess:M,wBj:JSON.stringify(Q)});X.keySystemAccess=M;if(j4(X)){M=jg();Q=g.e(Object.keys(D.S[X.flavor]));for(var h=Q.next();!h.done;h=Q.next())h=h.value,X.S[h]=!!M.canPlayType(h)}else{M=X.keySystemAccess.getConfiguration();if(M.audioCapabilities)for(Q=g.e(M.audioCapabilities),h=Q.next();!h.done;h=Q.next())X.S[h.value.contentType]=!0;if(M.videoCapabilities)for(M=g.e(M.videoCapabilities),Q=M.next();!Q.done;Q=M.next())X.S[Q.value.contentType]= !0}D.U.push(X);D.useCobaltWidevine||D.T("html5_enable_vp9_fairplay")&&MI(X)?(D.G.shift(),qI(D)):D.callback(D.U)}}; JCn=function(D,X){var M={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(D.T("html5_enable_vp9_fairplay")&&XI(X))return M.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),M.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[M];j4(X)&&(M.initDataTypes=["keyids","cenc"]);for(var Q=g.e(Object.keys(D.S[X.flavor])),h=Q.next();!h.done;h=Q.next()){h=h.value;var H=h.indexOf("audio/")===0,t=H?M.audioCapabilities:M.videoCapabilities;X.flavor!== "widevine"||D.D?t.push({contentType:h}):H?t.push({contentType:h,robustness:"SW_SECURE_CRYPTO"}):(g.Xu&&g.lE("windows nt")&&!D.T("html5_drm_enable_moho")||t.push({contentType:h,robustness:"HW_SECURE_ALL"}),H=h,D.UR.D.Y&&h.includes("vp09")&&(H=h+"; experimental=allowed"),t.push({contentType:H,robustness:"SW_SECURE_DECODE"}),Tc(D.UR)==="MWEB"&&(MB()||JW())&&(D.SH("swcrypto",{}),t.push({contentType:h,robustness:"SW_SECURE_CRYPTO"})))}return[M]}; Yn9=function(D){if(kC()&&(g.ah||uE))D.U.push(new zw("fairplay","com.apple.fps.1_0","",D.UR.experiments));else{var X=Wq1(),M=g.xB(D.G,function(Q){var h=D.Y[Q],H=!1,t=!1,q;for(q in D.S[h.flavor])X(q,Q)&&(h.S[q]=!0,H=H||q.indexOf("audio/")===0,t=t||q.indexOf("video/")===0);return H&&t}); M&&D.U.push(D.Y[M]);D.G=[]}D.callback(D.U)}; Wq1=function(){var D=kC();if(D){var X=D.isTypeSupported;return function(Q,h){return X(h,Q)}}var M=jg(); return M&&(M.addKey||M.webkitAddKey)?function(Q,h){return!!M.canPlayType(Q,h)}:function(){return!1}}; LT=function(D){var X;D=Mq((X=D.serializedClientExperimentFlags)!=null?X:"","&");this.flags=new Map(Object.entries(D).map(function(M){var Q=g.e(M);M=Q.next().value;Q=Q.next().value;return typeof Q==="string"?[M,Q]:[M,Q[0]]}))}; uup=function(D,X){switch(X.Sn){case "bool":return D.Z4(X.Go);case "int":return D=GU_(D,X.Go),sH(D);case "double":return GU_(D,X.Go);case "string":return z1o(D,X.Go);case "int32_list":return kUd(D,X.Go);case "int64_list":return kUd(D,X.Go).map(function(M){return sH(M)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; GU_=function(D,X){D=D.flags.get(""+X);return Number(D)||0}; kUd=function(D,X){if(D=D.flags.get(""+X))if(D=D.replace(/\[ *(.*?) *\]/,"$1"))return D.split(",").map(Number);return[]}; z1o=function(D,X){return(D=D.flags.get(""+X))?D.toString():""}; sW=function(D,X,M){this.S=void 0;this.experimentIds=D?D.split(","):[];this.flags=Mq(X||"","&");D={};X=g.e(this.experimentIds);for(var Q=X.next();!Q.done;Q=X.next())D[Q.value]=!0;this.experiments=D;M=new LT(M);this.Y=new nq9(M);this.G=new mb9(M)}; g.lx=function(D,X,M){M=M===void 0?0:M;D=D.xl(X);JSON.stringify(D);return D===void 0?M:Number(D)}; KT=function(D,X){return(D=D.xl(X))?D.toString():""}; jss=function(D){if(D=D.xl("html5_web_po_experiment_ids"))if(D=D.replace(/\[ *(.*?) *\]/,"$1"))return D.split(",").map(Number);return[]}; Dl2=function(D){if(D.S)return D.S;if(D.experimentIds.length<=1)return D.S=D.experimentIds,D.S;var X=[].concat(g.xW(D.experimentIds)).map(function(Q){return Number(Q)}); X.sort();for(var M=X.length-1;M>0;--M)X[M]-=X[M-1];D.S=X.map(function(Q){return Q.toString()}); D.S.unshift("v1");return D.S}; MN5=function(D){return XQ1.then(D)}; aA=function(D,X,M){this.experiments=D;this.sR=X;this.L$=M===void 0?!1:M;this.eH=!!g.mn("cast.receiver.platform.canDisplayType");this.K={};this.f$=!1;this.U=new Map;this.J=!0;this.G=this.Y=!1;this.S=new Map;this.R5=0;this.a5=this.experiments.Z4("html5_disable_vp9_encrypted");this.D=this.experiments.Z4("html5_enable_encrypted_av1");D=g.mn("cast.receiver.platform.getValue");this.X=!this.eH&&D&&D("max-video-resolution-vpx")||null;QEm(this);this.Y=!!(WX()&&YH()>=21)}; Oxp=function(D,X,M){M=M===void 0?1:M;var Q=X.itag;if(Q==="0")return!0;var h=X.mimeType;if(X.ij==="1e"&&!D.D)return"dav1enc";if(mq(X)&&D.f$)return"dav1";if(X.video&&(X.video.isHdr()||X.video.primaries==="bt2020")&&!(A9(D,Y4.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(Q==="338"&&!(g.Xu?Su(53):g.h0&&Su(64)))return"dopus";var H=M;H=H===void 0?1: H;M={};X.video&&(X.video.width&&(M[Y4.WIDTH.name]=X.video.width),X.video.height&&(M[Y4.HEIGHT.name]=X.video.height),X.video.fps&&(M[Y4.FRAMERATE.name]=X.video.fps*H),X.video.S&&(M[Y4.EOTF.name]=X.video.S),X.jH&&(M[Y4.BITRATE.name]=X.jH*8*H),X.ij==="("&&(M[Y4.CRYPTOBLOCKFORMAT.name]="subsample"),X.video.projectionType==="EQUIRECTANGULAR"||X.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||X.video.projectionType==="MESH")&&(M[Y4.DECODETOTEXTURE.name]="true");var t;((t=X.audio)==null?0:t.numChannels)&& X.ij!=="i"&&X.ij!=="I"&&(M[Y4.CHANNELS.name]=X.audio.numChannels);D.Y&&En(X)&&(M[Y4.EXPERIMENTAL.name]="allowed");t=g.e(Object.keys(Y4));for(H=t.next();!H.done;H=t.next()){H=Y4[H.value];var q;if(q=M[H.name])if(q=!(H===Y4.EOTF&&X.mimeType.indexOf("vp09.02")>0)){q=H;var w=X;q=!(D.experiments.Z4("html5_ignore_h264_framerate_cap")&&q===Y4.FRAMERATE&&MU5(w))}if(q)if(A9(D,H))if(D.X){if(D.X[H.name]1080&&X.DS&&(h+="; hdcp=2.2");return Q==="227"?"hqcenc":Q!=="585"&&Q!=="588"&&Q!=="583"&&Q!=="586"&&Q!=="584"&&Q!=="587"&&Q!=="591"&&Q!=="592"||D.experiments.Z4("html5_enable_new_hvc_enc")?WX()&&YH()>=21&&g.lE("appletv5")&&(Q==="410"||Q==="845")?!0:D.isTypeSupported(h)?!0:"tpus":"newhvc"}; FI=function(){var D=JW()&&!Su(29),X=g.lE("google tv")&&g.lE("chrome")&&!Su(30);return D||X?!1:Xw()}; h4s=function(D,X,M){var Q=480;X=g.e(X);for(var h=X.next();!h.done;h=X.next()){h=h.value;var H=h.video.qualityOrdinal;H<=1080&&H>Q&&Oxp(D,h,M)===!0&&(Q=H)}return Q}; g.V5=function(D,X){X=X===void 0?!1:X;return FI()&&D.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!X&&D.canPlayType(jg(),"application/x-mpegURL")?!0:!1}; tNs=function(D){HZn(function(){for(var X=g.e(Object.keys(Y4)),M=X.next();!M.done;M=X.next())A9(D,Y4[M.value])})}; A9=function(D,X){X.name in D.K||(D.K[X.name]=Njo(D,X));return D.K[X.name]}; Njo=function(D,X){if(D.X)return!!D.X[X.name];if(X===Y4.BITRATE&&D.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!D.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(X===Y4.AV1_CODECS)return D.isTypeSupported("video/mp4; codecs="+X.valid)&&!D.isTypeSupported("video/mp4; codecs="+X.qm);if(X.video){var M='video/webm; codecs="vp9"';D.isTypeSupported(M)||(M='video/mp4; codecs="avc1.4d401e"')}else M='audio/webm; codecs="opus"', D.isTypeSupported(M)||(M='audio/mp4; codecs="mp4a.40.2"');return D.isTypeSupported(M+"; "+X.name+"="+X.valid)&&!D.isTypeSupported(M+"; "+X.name+"="+X.qm)}; qfH=function(D,X){var M=0;D.U.has(X)&&(M=D.U.get(X).ZY);D.U.set(X,{ZY:M+1,n_:Math.pow(2,M+1)});D.G=!0}; oB=function(D){for(var X=[],M=g.e(D.S.keys()),Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=D.S.get(Q);X.push(Q+"_"+h.maxWidth+"_"+h.maxHeight)}return X.join(".")}; Iem=function(D,X){for(var M=new Map,Q=g.e(D.S.keys()),h=Q.next();!h.done;h=Q.next()){h=h.value;var H=h.split("_")[0];X.has(H)||M.set(h,D.S.get(h))}D.S=M}; v2i=function(D,X,M){var Q,h=((Q=M.video)==null?void 0:Q.fps)||0;Q=X+"_"+h;var H=!!M.audio,t={itag:M.itag,ij:X,q2:H};if(H)t.numChannels=M.audio.numChannels;else{var q=M.video;t.maxWidth=q==null?void 0:q.width;t.maxHeight=q==null?void 0:q.height;t.maxFramerate=h;A9(D,Y4.BITRATE)&&(t.maxBitrateBps=M.jH*8);t.Op=q==null?void 0:q.isHdr()}q=D.S.get(Q);q?H||(M=Math.max(q.maxWidth||0,q.maxHeight||0)>Math.max(t.maxWidth||0,t.maxHeight||0)?q:t,X={itag:M.itag,ij:X,q2:H,maxWidth:Math.max(q.maxWidth||0,t.maxWidth|| 0),maxHeight:Math.max(q.maxHeight||0,t.maxHeight||0),maxFramerate:h,Op:M.Op},A9(D,Y4.BITRATE)&&(X.maxBitrateBps=M.maxBitrateBps),D.S.set(Q,X)):D.S.set(Q,t)}; dnH=function(D,X,M){var Q,h=((Q=M.video)==null?void 0:Q.fps)||0;Q=X+"_"+h;var H=!!M.audio,t=D.S.get(Q);a:{var q=D.S.get(Q),w=!!M.audio;if(q){if(w){var T=!1;break a}var L;if(!w&&((T=M.video)==null?0:T.height)&&q.maxHeight&&q.maxHeight>=((L=M.video)==null?void 0:L.height)){T=!1;break a}}T=!0}T&&(T=M.itag,X=t?t:{itag:T,ij:X,q2:H},H?X.numChannels=M.audio.numChannels:(H=M.video,X.maxWidth=H==null?void 0:H.width,X.maxHeight=H==null?void 0:H.height,X.maxFramerate=h,A9(D,Y4.BITRATE)&&(X.maxBitrateBps=M.jH* 8),X.Op=H==null?void 0:H.isHdr()),D.S.set(Q,X))}; QEm=function(D){var X;(X=navigator.mediaCapabilities)!=null&&X.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(M){M.smooth&&M.powerEfficient&&(D.R5=2160)})}; $v=function(){g.Dq.call(this);this.items={}}; Bk=function(D,X){this.S=D;this.cipher=this.S.exports.AES128CTRCipher_create(X.byteOffset)}; UW=function(){this.G=this.tF=0;this.S=Array.from({length:ZE.length}).fill(0)}; wQR=function(){}; Tji=function(){this.startTimeMs=(0,g.fi)();this.S=!1}; Lws=function(){this.S=new wQR}; sEs=function(D,X,M,Q){Q=Q===void 0?1:Q;M>=0&&(X in D.S||(D.S[X]=new UW),D.S[X].nV(M,Q))}; Kwm=function(D,X,M,Q,h){var H=(0,g.fi)(),t=h?h(X):void 0,q;h=(q=t==null?void 0:t.tF)!=null?q:1;if(h!==0){var w;q=(w=t==null?void 0:t.profile)!=null?w:M;sEs(D,q,H-Q,h)}return X}; aIs=function(D,X,M,Q,h){if(X&&typeof X==="object"){var H=function(t){return Kwm(D,t,M,Q,h)}; if(C_(X))return X.then(H);if(o2(X))return l3(X,H)}return Kwm(D,X,M,Q,h)}; Fw2=function(){}; VNs=function(D){var X=window;X.ywc||(X.ywc={});var M=X.ywc[D];if(M)return M;M={};return X.ywc[D]=M}; $ls=function(D){var X=window;X.ywc&&delete X.ywc[D]}; Bj2=function(D){var X=VNs(D);if(X.binP)return X.binP;X.binP=Promise.resolve().then(function(){return fetch(D)}).then(function(M){if(!M.ok)throw Error("HTTP"+M.statusText); return M.arrayBuffer()}); X.binP.then(function(M){X.bin=M},function(){$ls(D)}); return X.binP}; cts=function(D,X){return xs(ZZR,function(){var M=this;return function h(){var H,t,q;return Vh(h,function(w){switch(w.S){case 1:g.wK(w,2);if(!M.S)throw"wasm.ps.ns";H=D;t=Zt;return hh(w,WN(Uli(M,X)),4);case 4:q=t(w.G);if(!q)throw"wasm.ps.um";return hh(w,WN(WebAssembly.instantiate(q,H)),5);case 5:return w.return(w.G);case 2:g.s8(w),g.KG(w,0)}})}()})}; Uli=function(D,X){return xs(D,function(){var M=this;return function h(){var H,t,q,w,T,L,K,a,F;return Vh(h,function(V){switch(V.S){case 1:g.wK(V,2);H=[];t=function(){return"wasm.ps.c: ["+H.map(function(c){return'"'+c+'"'}).join(", ")+"]"}; q=VNs(X);if(q.mod)return V.return(q.mod);if(!q.modP){V.D4(4);break}g.N_(V,5);w=Zt;return hh(V,WN(q.modP),7);case 7:return V.return(w(V.G));case 5:g.LG(V),H.unshift("pcm");case 4:if((T=q.bin)||!q.binP){V.D4(8);break}g.N_(V,9);L=Zt;return hh(V,WN(q.binP),11);case 11:T=L(V.G);g.Ty(V,8);break;case 9:g.LG(V),H.unshift("pfb");case 8:if(T){V.D4(12);break}g.N_(V,13);K=Zt;return hh(V,WN(Bj2(X)),15);case 15:T=K(V.G);g.Ty(V,12);break;case 13:throw g.LG(V),M.S=!1,H.unshift("fb"),t();case 12:return g.N_(V,16), a=Zt,hh(V,WN(WebAssembly.compile(T)),18);case 18:return V.return(a(V.G));case 16:F=g.LG(V),$ls(X),H.unshift("ca: "+F);case 17:throw t();case 2:g.s8(V),g.KG(V,0)}})}()})}; fIo=function(){}; Sfs=function(){var D=this;this.proc_exit=function(){}; this.fd_write=function(X,M,Q){if(!D.exports)return 1;X=new Uint32Array(D.exports.memory.buffer,M,Q*2);M=[];for(var h=0;h0&&vk<=2.3;q=X?X.useNativeControls:D.use_native_controls;this.J=g.eO(this)&&this.G;w=this.G&&!this.J;q=g.d_(this)||!t&&HJ(w,q)?"3":"1";this.disableOrganicUi=!(X==null||!X.disableOrganicUi);w=X?X.controlsType:D.controls;this.controlsType=this.disableOrganicUi||w==="0"||w===0?"0":q;this.PW=this.G;this.color=tr("red",X?X.progressBarColor:D.color,iZ1);this.Kc=this.controlsType==="3";this.J5=!this.U;this.mS=(q=!this.J5&&!IA(this)&&!this.R5&&!this.X&&!RA(this))&& !this.Kc&&this.controlsType==="1";this.XS=g.r_(this)&&q&&this.controlsType==="0"&&!this.mS&&!(X==null?0:X.embedsEnableEmc3ds);this.HZ=this.U0=t;this.Vq=(this.controlsType==="3"||this.G||HJ(!1,D.use_media_volume))&&!this.J;this.v8=uE&&!g.Dj(601)?!1:!0;this.wm=this.U||!1;this.wj=IA(this)?"":(this.loaderUrl||D.post_message_origin||"").substring(0,128);this.widgetReferrer=qB("",X?X.widgetReferrer:D.widget_referrer);var T;X?X.disableCastApi&&(T=!1):T=D.enablecastapi;T=!this.K||HJ(!0,T);t=!0;X&&X.disableMdxCast&& (t=!1);this.l$=this.T("enable_cast_for_web_unplugged")&&g.iS(this)&&t||g.RW(this)&&t||T&&t&&this.controlsType==="1"&&!this.G&&(IA(this)||g.r_(this)||g.oA(this));this.gm=!!window.document.pictureInPictureEnabled||Qe();T=X?!!X.supportsAutoplayOverride:HJ(!1,D.autoplayoverride);this.EU=!(this.G&&!g.eO(this))&&!g.lE("nintendo wiiu")||T;this.kh=(X?!!X.enableMutedAutoplay:HJ(!1,D.mutedautoplay))&&!1;T=(IA(this)||RA(this))&&this.playerStyle==="blazer";this.XV=X?!!X.disableFullscreen:!HJ(!0,D.fs);t=g.s0(g.CT(this))&& g.eO(this);this.q5=!this.XV&&(T||g.Zx())&&!t;this.j2=this.T("html5_picture_in_picture_logging_onresize");var L;this.Rs=(L=g.lx(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?L:.33;this.FR=this.T("html5_picture_in_picture_blocking_onresize");this.KS=this.T("html5_picture_in_picture_blocking_ontimeupdate");this.yw=this.T("html5_picture_in_picture_blocking_document_fullscreen");this.VH=this.T("html5_picture_in_picture_blocking_standard_api");L=JW()&&Su(58)&&!MB();T=lD||typeof MediaSource=== "undefined";this.X1=this.T("uniplayer_block_pip")&&(L||T)||this.FR||this.KS||this.VH;L=g.eO(this)&&!this.vW;var K;X?X.disableRelatedVideos!==void 0&&(K=!X.disableRelatedVideos):K=D.rel;this.bM=L||HJ(!this.X,K);this.rX=HJ(!1,X?X.enableContentOwnerRelatedVideos:D.co_rel);this.eH=MB()&&vk>0&&vk<=4.4?"_top":"_blank";this.WB=g.oA(this);this.TL=HJ(this.playerStyle==="blazer",X?X.enableCsiLogging:D.enablecsi);switch(this.playerStyle){case "blogger":K="bl";break;case "discover-ads":K="dd";break;case "gmail":K= "gm";break;case "gac":K="ga";break;case "ads-preview":K="ap";break;case "ads-fe":K="adfe";break;case "books":K="gb";break;case "docs":case "flix":K="gd";break;case "duo":K="gu";break;case "google-live":K="gl";break;case "google-one":K="go";break;case "play":case "play-ads":K="gp";break;case "chat":K="hc";break;case "hangouts-meet":K="hm";break;case "photos-edu":case "picasaweb":K="pw";break;default:K="yt"}this.f$=K;this.sR=qB("",X?X.authorizedUserIndex:D.authuser);this.Mj=g.eO(this)&&(this.qj||!Jis()|| this.OR);var a;X?X.disableWatchLater!==void 0&&(a=!X.disableWatchLater):a=D.showwatchlater;this.DJ=((K=!this.Mj)||!!this.sR&&K)&&HJ(!this.R5,this.K?a:void 0);this.T6=X?X.isMobileDevice||!!X.disableKeyboardControls:HJ(!1,D.disablekb);this.loop=HJ(!1,D.loop);this.pageId=qB("",X?X.initialDelegatedSessionId:D.pageid);this.xB=HJ(!0,D.canplaylive);this.iL=this.experiments.Z4("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.xp=HJ(!1,D.livemonitor);this.disableSharing=HJ(this.X,X?X.disableSharing: D.ss);(a=X&&this.T("fill_video_container_size_override_from_wpcc")?X.videoContainerOverride:D.video_container_override)?(K=a.split("x"),K.length!==2?a=null:(a=Number(K[0]),K=Number(K[1]),a=isNaN(a)||isNaN(K)||a*K<=0?null:new g.tn(a,K))):a=null;this.It=a;this.mute=X?!!X.startMuted:HJ(!1,D.mute);this.storeUserVolume=!this.mute&&HJ(this.controlsType!=="0",X?X.storeUserVolume:D.store_user_volume);a=X?X.annotationsLoadPolicy:D.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:tr(void 0, a,OW);this.captionsLanguagePreference=X?X.captionsLanguagePreference||"":qB("",D.cc_lang_pref);a=tr(2,X?X.captionsLanguageLoadPolicy:D.cc_load_policy,OW);this.controlsType==="3"&&a===2&&(a=3);this.iA=a;this.ZJ=X?X.hl||"en_US":qB("en_US",D.hl);this.region=X?X.contentRegion||"US":qB("US",D.cr);this.hostLanguage=X?X.hostLanguage||"en":qB("en",D.host_language);this.Jn=!this.qj&&Math.random()=0&&D0&&D.iG&&(Q.sort(),g.P3(new g.ys("Player client parameters changed after startup",Q)));D.userAge=NB(D.userAge,X.user_age);D.Zc=qB(D.Zc,X.user_display_email);D.userDisplayImage=qB(D.userDisplayImage,X.user_display_image);g.Rd(D.userDisplayImage)||(D.userDisplayImage= "");D.userDisplayName=qB(D.userDisplayName,X.user_display_name);D.u$=qB(D.u$,X.user_gender);D.csiPageType=qB(D.csiPageType,X.csi_page_type);D.csiServiceName=qB(D.csiServiceName,X.csi_service_name);D.TL=HJ(D.TL,X.enablecsi);D.pageId=qB(D.pageId,X.pageid);if(M=X.enabled_engage_types)D.enabledEngageTypes=new Set(M.split(","));X.living_room_session_po_token&&(D.ZW=X.living_room_session_po_token.toString())}; J0=function(D,X){return!D.X&&JW()&&Su(55)&&D.controlsType==="3"&&!X}; g.xv=function(D){D=pT(D.mE);return D==="www.youtube-nocookie.com"?"www.youtube.com":D}; Wk=function(D,X,M){return D.protocol+"://i1.ytimg.com/vi/"+X+"/"+(M||"hqdefault.jpg")}; Gc=function(D){return IA(D)&&!g.iS(D)}; g.d_=function(D){return D.T("html5_local_playsinline")?uE&&!g.Dj(602)&&!("playsInline"in jg()):uE&&!D.AL||g.lE("nintendo wiiu")?!0:!1}; Tc=function(D){return D.S.c}; g.Nn=function(D){return/^TVHTML5/.test(Tc(D))}; zc=function(D){return Tc(D)==="TVHTML5"}; IIp=function(D){return Tc(D)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Ccn=function(D){return D.S.cmodel==="CHROMECAST ULTRA/STEAK"||D.S.cmodel==="CHROMECAST/STEAK"}; g.kv=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; tf=function(D){return/web/i.test(Tc(D))}; g.uS=function(D){return Tc(D).toUpperCase()==="WEB"}; Yv=function(D){return Tc(D)==="WEB_KIDS"}; g.iS=function(D){return Tc(D)==="WEB_UNPLUGGED"}; jO=function(D){return Tc(D)==="TVHTML5_UNPLUGGED"}; g.H9=function(D){return g.iS(D)||Tc(D)==="TV_UNPLUGGED_CAST"||jO(D)}; g.RW=function(D){return Tc(D)==="WEB_REMIX"}; g.Dk=function(D){return Tc(D)==="WEB_MUSIC_INTEGRATIONS"}; g.XD=function(D){return Tc(D)==="WEB_EMBEDDED_PLAYER"}; g.Qv=function(D){return(D.deviceIsAudioOnly||!g.Xu||lD||D.controlsType==="3"?!1:g.XP?D.U&&g.Dj(51):!0)||(D.deviceIsAudioOnly||!g.h0||lD||D.controlsType==="3"?!1:g.XP?D.U&&g.Dj(48):g.Dj(38))||(D.deviceIsAudioOnly||!g.nT||lD||D.controlsType==="3"?!1:g.XP?D.U&&g.Dj(37):g.Dj(27))||!D.deviceIsAudioOnly&&g.Mi&&!zJp()&&g.Dj(11)||!D.deviceIsAudioOnly&&g.ah&&g.Dj("604.4")}; Yfd=function(D){if(g.r_(D)&&g_)return!1;if(g.h0){if(!g.Dj(47)||!g.Dj(52)&&g.Dj(51))return!1}else if(g.ah)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Jts=function(D,X){return D.enabledEngageTypes.has(X.toString())||lIp.includes(X)}; IA=function(D){return D.a5==="detailpage"}; g.r_=function(D){return D.a5==="embedded"}; hR=function(D){return D.a5==="leanback"}; RA=function(D){return D.a5==="adunit"||D.playerStyle==="gvn"}; g.oA=function(D){return D.a5==="profilepage"}; g.eO=function(D){return D.U&&g.r_(D)&&!RA(D)&&!D.X}; HU=function(D){if(!D.userDisplayImage)return"";var X=D.userDisplayImage.split("/");if(X.length===5)return D=X[X.length-1].split("="),D[1]="s20-c",X[X.length-1]=D.join("="),X.join("/");if(X.length===8)return X.splice(7,0,"s20-c"),X.join("/");if(X.length===9)return X[7]+="-s20-c",X.join("/");g.P3(new g.ys("Profile image not a FIFE URL.",D.userDisplayImage));return D.userDisplayImage}; g.tR=function(D){var X=g.xv(D);xl9.includes(X)&&(X="www.youtube.com");return D.protocol+"://"+X}; g.Ni=function(D,X){X=X===void 0?"":X;if(D.NT){var M=new ql,Q,h=D.NT();h.signedOut?Q="":h.token?Q=h.token:h.pendingResult.then(function(H){h.signedOut?M.resolve(""):M.resolve(H.token)},function(H){g.P3(new g.ys("b189348328_oauth_callback_failed",{error:H})); M.resolve(X)}); return Q!==void 0?vX(Q):new Ry(M)}return vX(X)}; qi=function(D,X){X=X===void 0?"":X;return D.nj?Ob(!0):JS(l3(Ob(g.Ni(D,X)),function(M){return Ob(!!M)}),function(){return Ob(!1)})}; Ww_=function(D){var X;return!((X=D.webPlayerContextConfig)==null||!X.enableSelfProfilingLogging)}; G8n=function(D,X){D.iM=X;var M,Q;(M=D.Ky)!=null&&(Q=M.S)!=null&&(Q.S=new EW(X,Q.G,Q.Y),g.p(Q,Q.S))}; pT=function(D){var X=g.cR(D);return(D=Number(g.US(D)[4]||null)||null)?X+":"+D:X}; ws=function(D,X){X=X===void 0?!1:X;var M=fE[D],Q=z4m[M],h=k85[D];if(!h||!Q)return null;X=new ZH(X?h.height:h.width,X?h.width:h.height,h.fps);Q=RK(Q,X,M);return new Sv(D,Q,{video:X,jH:h.bitrate/8})}; jEo=function(D){var X=z4m[fE[D]],M=uw9[D];return M&&X?new Sv(D,X,{audio:new tC(M.audioSampleRate,M.numChannels)}):null}; TL=function(D){this.S=D}; LD=function(D,X,M,Q){if(M)return Iy();M={};var h=jg();X=g.e(X);for(var H=X.next();!H.done;H=X.next())if(H=H.value,D.canPlayType(h,H.getInfo().mimeType)||Q){var t=H.S.video.quality;if(!M[t]||M[t].getInfo().VF())M[t]=H}D=[];M.auto&&D.push(M.auto);Q=g.e(Un);for(h=Q.next();!h.done;h=Q.next())(h=M[h.value])&&D.push(h);return D.length?vX(D):Iy()}; DV5=function(D){this.itag=D.itag;this.url=D.url;this.codecs=D.codecs;this.width=D.width;this.height=D.height;this.fps=D.fps;this.bitrate=D.bitrate;var X;this.G=((X=D.audioItag)==null?void 0:X.split(","))||[];this.JD=D.JD;this.DS=D.DS||"";this.Cy=D.Cy;this.audioChannels=D.audioChannels;this.S=""}; XFo=function(D,X,M,Q){X=X===void 0?!1:X;M=M===void 0?!0:M;Q=Q===void 0?{}:Q;var h={};D=g.e(D);for(var H=D.next();!H.done;H=D.next()){H=H.value;if(X&&MediaSource&&MediaSource.isTypeSupported){var t=H.type;H.audio_channels&&(t=t+"; channels="+H.audio_channels);if(!MediaSource.isTypeSupported(t)){Q[H.itag]="tpus";continue}}if(M||!H.drm_families||H.eotf!=="smpte2084"&&H.eotf!=="arib-std-b67"){t=void 0;var q={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},w=H.type.match(/codecs="([^"]*)"/); w=w?w[1]:"";H.audio_track_id&&(t=new g.yy(H.name,H.audio_track_id,!!H.is_default));var T=H.eotf;H=new DV5({itag:H.itag,url:H.url,codecs:w,width:Number(H.width),height:Number(H.height),fps:Number(H.fps),bitrate:Number(H.bitrate),audioItag:H.audio_itag,JD:T?q[T]:void 0,DS:H.drm_families,Cy:t,audioChannels:Number(H.audio_channels)});h[H.itag]=h[H.itag]||[];h[H.itag].push(H)}else Q[H.itag]="enchdr"}return h}; Mk9=function(D,X,M,Q,h){this.Y=D;this.G=X;this.D=M;this.cpn=Q;this.X=h;this.U=0;this.S=""}; Q$W=function(D,X){D.Y.some(function(M){var Q;return((Q=M.Cy)==null?void 0:Q.getId())===X}); D.S=X}; sr=function(D,X,M){D.cpn&&(X=g.nJ(X,{cpn:D.cpn}));M&&(X=g.nJ(X,{paired:M}));return X}; hkW=function(D,X){D=D.itag.toString();X!==null&&(D+=X.itag.toString());return D}; Hy2=function(D){for(var X=[],M=[],Q=g.e(D.G),h=Q.next();!h.done;h=Q.next())h=h.value,h.bitrate<=D.U?X.push(h):M.push(h);X.sort(function(H,t){return t.bitrate-H.bitrate}); M.sort(function(H,t){return H.bitrate-t.bitrate}); D.G=X.concat(M)}; KD=function(D,X,M){this.S=D;this.G=X;this.expiration=M;this.Uw=null}; tk_=function(D,X){if(!(lD||zr()||WX()))return null;D=XFo(X,D.T("html5_filter_fmp4_in_hls"));if(!D)return null;X=[];for(var M={},Q=g.e(Object.keys(D)),h=Q.next();!h.done;h=Q.next()){h=g.e(D[h.value]);for(var H=h.next();!H.done;H=h.next()){var t=H.value;t.Cy&&(H=t.Cy.getId(),M[H]||(t=new g.yf(H,t.Cy),M[H]=t,X.push(t)))}}return X.length>0?X:null}; Le2=function(D,X,M,Q,h,H,t){if(!(lD||zr()||WX()))return Iy();var q={},w=NM2(M),T=XFo(M,D.T("html5_filter_fmp4_in_hls"),D.D.J,q);if(!T)return t({noplst:1}),Iy();qi1(T);M={};var L=(M.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",M),K;M=[];var a=[],F=[],V=null,c="";Q=Q&&Q.match(/hls_timedtext_playlist/)?new DV5({itag:"0",url:Q,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Cy:new g.yy("English","en",!1)}):null;for(var S=g.e(Object.keys(T)),b=S.next();!b.done;b=S.next())if(b=b.value,!D.T("html5_disable_drm_hfr_1080")|| b!=="383"&&b!=="373"){b=g.e(T[b]);for(var n=b.next();!n.done;n=b.next())if(n=n.value,n.width){for(var R=g.e(n.G),v=R.next();!v.done;v=R.next())if(v=v.value,T[v]){n.S=v;break}n.S||(n.S=wFs(T,n));if(R=T[n.S])if(M.push(n),n.DS==="fairplay"&&(K=L),v="",n.JD==="PQ"?v="smpte2084":n.JD==="HLG"&&(v="arib-std-b67"),v&&(c=v),F.push(TMi(R,[n],Q,H,n.itag,n.width,n.height,n.fps,w,void 0,void 0,K,v)),!V||n.width*n.height*n.fps>V.width*V.height*V.fps)V=n}else a.push(n)}else q[b]="disdrmhfr";F.reduce(function(l, A){return A.getInfo().isEncrypted()&&l},!0)&&(K=L); h=Math.max(h,0);L=V||{};T=L.fps===void 0?0:L.fps;V=L.width===void 0?0:L.width;L=L.height===void 0?0:L.height;S=D.T("html5_native_audio_track_switching");F.push(TMi(a,M,Q,H,"93",V,L,T,w,"auto",h,K,c,S));Object.entries(q).length&&t(q);return LD(D.D,F,J0(D,X),!1)}; TMi=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F){for(var V=0,c="",S=g.e(D),b=S.next();!b.done;b=S.next())b=b.value,c||(c=b.itag),b.audioChannels&&b.audioChannels>V&&(V=b.audioChannels,c=b.itag);h=new Sv(h,"application/x-mpegURL",{audio:new tC(0,V),video:new ZH(H,t,q,null,void 0,T,void 0,void 0,a),DS:K,cS:c});D=new Mk9(D,X,M?[M]:[],Q,!!F);D.U=L?L:1369843;return new KD(h,D,w)}; NM2=function(D){D=g.e(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.url&&(X=X.url.split("expire/"),!(X.length<=1)))return+X[1].split("/")[0];return NaN}; wFs=function(D,X){for(var M=g.e(Object.keys(D)),Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=D[Q][0];if(!h.width&&h.DS===X.DS&&!h.audioChannels)return Q}return""}; qi1=function(D){for(var X=new Set,M=g.e(Object.values(D)),Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q.length&&(Q=Q[0],Q.height&&Q.codecs.startsWith("vp09")&&X.add(Q.height));M=[];if(X.size){Q=g.e(Object.keys(D));for(var h=Q.next();!h.done;h=Q.next())if(h=h.value,D[h].length){var H=D[h][0];H.height&&X.has(H.height)&&!H.codecs.startsWith("vp09")&&M.push(h)}}X=g.e(M);for(M=X.next();!M.done;M=X.next())delete D[M.value]}; aT=function(D,X){this.S=D;this.G=X}; s$W=function(D,X,M,Q){var h=[];M=g.e(M);for(var H=M.next();!H.done;H=M.next()){var t=H.value;if(t.url){H=new g.cs(t.url,!0);if(t.s){var q=H,w=t.sp,T=hd(3,decodeURIComponent(t.s));q[N[10]](w,encodeURIComponent(T))}q=g.e(Object.keys(Q));for(w=q.next();!w.done;w=q.next())w=w.value,H.set(w,Q[w]);t=os(t.type,t.quality,t.itag,t.width,t.height);h.push(new aT(t,H))}}return LD(D.D,h,J0(D,X),!1)}; FD=function(D,X){this.S=D;this.G=X}; Kei=function(D,X,M){var Q=[];M=g.e(M);for(var h=M.next();!h.done;h=M.next())if((h=h.value)&&h.url){var H=os(h.type,"medium","0");Q.push(new FD(H,h.url))}return LD(D.D,Q,J0(D,X),!1)}; azi=function(D,X){var M=[],Q=os(X.type,"auto",X.itag);M.push(new FD(Q,X.url));return LD(D.D,M,!1,!0)}; Vkm=function(D){return D&&Fe1[D]?Fe1[D]:null}; $V9=function(D){switch(D){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return D;default:return"sabr.config"}}; BMs=function(D){if(D=D.commonConfig)this.url=D.url,this.urlQueryOverride=D.urlQueryOverride,D.ustreamerConfig&&(this.Z8=y5(D.ustreamerConfig)||void 0)}; ZyH=function(D,X){var M;if(X=X==null?void 0:(M=X.watchEndpointSupportedOnesieConfig)==null?void 0:M.html5PlaybackOnesieConfig)D.n7=new BMs(X)}; g.Vv=function(D){D=D===void 0?{}:D;this.languageCode=D.languageCode||"";this.languageName=D.languageName||null;this.kind=D.kind||"";this.name=D.name===void 0?null:D.name;this.displayName=D.displayName||null;this.id=D.id||null;this.S=D.is_servable||!1;this.isTranslateable=D.is_translateable||!1;this.url=D.url||null;this.vssId=D.vss_id||"";this.isDefault=D.is_default||!1;this.translationLanguage=D.translationLanguage||null;this.xtags=D.xtags||"";this.captionId=D.captionId||""}; g.BU=function(D){var X={languageCode:D.languageCode,languageName:D.languageName,displayName:g.$y(D),kind:D.kind,name:D.name,id:D.id,is_servable:D.S,is_default:D.isDefault,is_translateable:D.isTranslateable,vss_id:D.vssId};D.xtags&&(X.xtags=D.xtags);D.captionId&&(X.captionId=D.captionId);D.translationLanguage&&(X.translationLanguage=D.translationLanguage);return X}; g.Zk=function(D){return D.translationLanguage?D.translationLanguage.languageCode:D.languageCode}; g.UVi=function(D){var X=D.vssId;D.translationLanguage&&X&&(X="t"+X+"."+g.Zk(D));return X}; g.$y=function(D){var X=[];if(D.displayName)X.push(D.displayName);else{var M=D.languageName||"";X.push(M);D.kind==="asr"&&M.indexOf("(")===-1&&X.push(" (Subt\u00edtulos autom\u00e1ticos)");D.name&&X.push(" - "+D.name)}D.translationLanguage&&X.push(" >> "+D.translationLanguage.languageName);return X.join("")}; EDs=function(D,X,M,Q){D||(D=X&&cXi.hasOwnProperty(X)&&fzi.hasOwnProperty(X)?fzi[X]+"_"+cXi[X]:void 0);X=D;if(!X)return null;D=X.match(Sin);if(!D||D.length!==5)return null;if(D=X.match(Sin)){var h=Number(D[3]),H=[7,8,10,5,6];D=!(Number(D[1])===1&&h===8)&&H.indexOf(h)>=0}else D=!1;return M||Q||D?X:null}; Ur=function(D,X){for(var M={},Q=g.e(Object.keys(yX9)),h=Q.next();!h.done;h=Q.next()){h=h.value;var H=X?X+h:h;H=D[H+"_webp"]||D[H];g.Rd(H)&&(M[yX9[h]]=H)}return M}; cU=function(D){var X={};if(!D||!D.thumbnails)return X;D=D.thumbnails.filter(function(q){return!!q.url}); D.sort(function(q,w){return q.width-w.width||q.height-w.height}); for(var M=g.e(Object.keys(PA9)),Q=M.next();!Q.done;Q=M.next()){var h=Number(Q.value);Q=PA9[h];for(var H=g.e(D),t=H.next();!t.done;t=H.next())if(t=t.value,t.width>=h){h=mVH(t.url);g.Rd(h)&&(X[Q]=h);break}}(D=D.pop())&&D.width>=1280&&(D=mVH(D.url),g.Rd(D)&&(X["maxresdefault.jpg"]=D));return X}; mVH=function(D){return D.startsWith("//")?"https:"+D:D}; fD=function(D){return D&&D.baseUrl||""}; S1=function(D){D=g.HX(D);for(var X=g.e(Object.keys(D)),M=X.next();!M.done;M=X.next()){M=M.value;var Q=D[M];D[M]=Array.isArray(Q)?Q[0]:Q}return D}; bys=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next())if(M=M.value.playerAnnotationsUrlsRenderer){M.adsOnly&&(D.At=!0);if(X=M.loadPolicy)D.annotationsLoadPolicy=nDs[X];if(X=M.invideoUrl)D.J_=Id(X);D.jj=!0;break}}; eko=function(D,X){D.botguardData=X.playerAttestationRenderer.botguardData;X=X.playerAttestationRenderer.challenge;X!=null&&(D.ph=X)}; Izp=function(D,X){D.captionTracks=[];if(X.captionTracks)for(var M=g.e(X.captionTracks),Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=Rks(Q.baseUrl);if(!h)return;h={is_translateable:!!Q.isTranslatable,languageCode:Q.languageCode,languageName:Q.name&&g.q1(Q.name),url:h,vss_id:Q.vssId,kind:Q.kind};h.name=Q.trackName;h.displayName=Q.name&&g.q1(Q.name);D.captionTracks.push(new g.Vv(h))}D.Fp=X.audioTracks||[];D.Jl=X.defaultAudioTrackIndex||0;D.fu=[];if(X.translationLanguages)for(M=g.e(X.translationLanguages), Q=M.next();!Q.done;Q=M.next()){h=Q.value;Q={};Q.languageCode=h.languageCode;Q.languageName=g.q1(h.languageName);if(h.translationSourceTrackIndices){Q.translationSourceTrackIndices=[];for(var H=g.e(h.translationSourceTrackIndices),t=H.next();!t.done;t=H.next())Q.translationSourceTrackIndices.push(t.value)}if(h.excludeAudioTrackIndices)for(Q.excludeAudioTrackIndices=[],h=g.e(h.excludeAudioTrackIndices),H=h.next();!H.done;H=h.next())Q.excludeAudioTrackIndices.push(H.value);D.fu.push(Q)}D.qS=[];if(X.defaultTranslationSourceTrackIndices)for(M= g.e(X.defaultTranslationSourceTrackIndices),Q=M.next();!Q.done;Q=M.next())D.qS.push(Q.value);D.zD=!!X.contribute&&!!X.contribute.captionsMetadataRenderer}; vD_=function(D,X,M){var Q=X.errorScreen;if(!(Q&&(Q.playerLegacyDesktopYpcOfferRenderer||Q.playerLegacyDesktopYpcTrailerRenderer||Q.ypcTrailerRenderer)||M&&M.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(X.status))){D.errorCode=Vkm(X.errorCode)||"auth";if(M=Q&&Q.playerErrorMessageRenderer){D.playerErrorMessageRenderer=M;var h=M.reason;h&&(D.errorReason=g.q1(h));if(M=M.subreason)D.qT=g.q1(M),D.Ku=M}else D.errorReason=X.reason||null;M=X.status;if(M==="LOGIN_REQUIRED")D.errorDetail= "1";else if(M==="CONTENT_CHECK_REQUIRED")D.errorDetail="2";else if(M==="AGE_CHECK_REQUIRED")X=(X=X.errorScreen)&&X.playerKavRenderer,D.errorDetail=X&&X.kavUrl?"4":"3";else{var H,t,q;Q=(q=Q==null?void 0:(H=Q.playerErrorMessageRenderer)==null?void 0:(t=H.proceedButton)==null?void 0:t.buttonRenderer)==null?void 0:q.command;if(X.isBlockedInRestrictedMode)D.errorDetail="5";else{var w;((w=g.Z(Q,gD1))==null?void 0:w.signal)==="RELOAD_PAGE"?D.errorDetail="7":D.errorDetail="0"}}}}; dVH=function(D,X){D.v$=!0;var M=X.heartbeatToken;M&&(D.drmSessionId=X.drmSessionId||"",D.heartbeatToken=M,D.Ii=Number(X.intervalMilliseconds),D.oC=Number(X.maxRetries),D.pE=!!X.softFailOnError,D.SK=!!X.useInnertubeHeartbeatsForDrm);D.heartbeatServerData=X.heartbeatServerData;var Q;D.lC=!((Q=X.heartbeatAttestationConfig)==null||!Q.requiresAttestation)}; oDp=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next()){M=M.value;var Q=M.interstitials.map(function(t){var q=g.Z(t,rXi);if(q)return{is_yto_interstitial:!0,raw_player_response:q};if(t=g.Z(t,iy5))return Object.assign({is_yto_interstitial:!0},dR(t))}); Q=g.e(Q);for(var h=Q.next();!h.done;h=Q.next())switch(h=h.value,M.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":D.interstitials=D.interstitials.concat({time:0,playerVars:h,kp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":D.interstitials=D.interstitials.concat({time:0x7ffffffffffff,playerVars:h,kp:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var H=Number(M.podConfig.timeToInsertAtMillis);D.interstitials=D.interstitials.concat({time:H,playerVars:h, kp:H===0?5:7})}}}; CAp=function(D,X){if(X=X.find(function(M){return!(!M||!M.tooltipRenderer)}))D.tooltipRenderer=X.tooltipRenderer}; Oys=function(D,X){X.subscribeCommand&&(D.subscribeCommand=X.subscribeCommand);X.unsubscribeCommand&&(D.unsubscribeCommand=X.unsubscribeCommand);X.addToWatchLaterCommand&&(D.addToWatchLaterCommand=X.addToWatchLaterCommand);X.removeFromWatchLaterCommand&&(D.removeFromWatchLaterCommand=X.removeFromWatchLaterCommand);X.getSharePanelCommand&&(D.getSharePanelCommand=X.getSharePanelCommand)}; pFd=function(D,X){X!=null?(D.rL=X,D.KK=!0):(D.rL="",D.KK=!1)}; lzp=function(D,X){if(X=X.playerControlsOverlayRenderer)pFd(D,X.controlBgHtml),X.mutedAutoplay?(X=g.Z(X.mutedAutoplay,AX1))&&X.endScreen&&(X=g.Z(X.endScreen,Yis))&&X.text&&(D.g_=g.q1(X.text)):D.mutedAutoplay=!1}; JXH=function(D,X){var M=X.backgroundability;M&&M.backgroundabilityRenderer.backgroundable&&(D.backgroundable=!0);var Q,h;if((Q=X.offlineability)==null?0:(h=Q.offlineabilityRenderer)==null?0:h.offlineable)D.offlineable=!0;if(M=X.contextParams)D.contextParams=M;(M=X.pictureInPicture)&&M.pictureInPictureRenderer.playableInPip&&(D.pipable=!0);X.playableInEmbed&&(D.allowEmbed=!0);if(M=X.ypcClickwrap)X=M.playerLegacyDesktopYpcClickwrapRenderer,M=M.ypcRentalActivationRenderer,X?(D.AE=X.durationMessage|| "",D.Ds=!0):M&&(X=M.durationMessage,D.AE=X?g.q1(X):"",D.Ds=!0)}; We_=function(D,X,M){var Q=fD(X.googleRemarketingUrl);Q&&(D.googleRemarketingUrl=Q);if(Q=fD(X.youtubeRemarketingUrl))D.youtubeRemarketingUrl=Q;if(Q=X.heartbeatLoggingToken)D.heartbeatLoggingToken=Q;Q={};var h=fD(X.ptrackingUrl);if(h){h=S1(h);var H=h.oid;H&&(D.Ma=H);if(H=h.pltype)D.T7=H;if(H=h.ptchn)D.Bn=H;if(H=h.ptk)D.rN=encodeURIComponent(H);if(h=h.m)D.NU=h}if(h=fD(X.qoeUrl)){h=g.HX(h);H=g.e(Object.keys(h));for(var t=H.next();!t.done;t=H.next()){t=t.value;var q=h[t];h[t]=Array.isArray(q)?q.join(","): q}D.Ms=h;if(H=h.cat)D.T("html5_enable_qoe_cat_list")?D.KL=D.KL.concat(H.split(",")):D.gq=H;if(H=h.live)D.Qs=H;if(h=h.drm_product)D.drmProduct=h}if(h=fD(X.videostatsPlaybackUrl)){h=S1(h);if(H=h.adformat)if(M.adformat=H,t=D.W(),t=EDs(H,D.UE,t.U,t.K))D.adFormat=t;if(t=h.aqi)M.ad_query_id=t;if(M=h.autoplay)D.vB=M=="1",D.nh=M=="1";if(M=h.autonav)D.isAutonav=M=="1";if(M=h.delay)D.Lz=WH(M);if(M=h.ei)D.eventId=M;if(M=y5(h.adcontext))try{var w=xVd(M);w&&(D.VW=w)}catch(T){g.P3(Error("Malformed adContext"))}if(M|| H)D.vB=!0;if(w=h.feature)D.b6=w;if(w=h.list)D.playlistId=w;if(w=h.of)D.EO=w;if(w=h.osid)D.osid=w;if(w=h.referrer)D.referrer=w;if(w=h.sdetail)D.ly=w;if(w=h.sourceid)D.JVR=w;if(w=h.ssrt)D.i6=w=="1";if(w=h.subscribed)D.subscribed=w=="1";if(w=h.uga)D.userGenderAge=w;if(w=h.upt)D.qh=w;if(w=h.vm)D.videoMetadata=w;Q.playback=h}if(w=fD(X.videostatsWatchtimeUrl)){w=S1(w);if(M=w.ald)D.H_=M;Q.watchtime=w}if(w=fD(X.atrUrl))w=S1(w),Q.atr=w;if(w=fD(X.engageUrl))w=S1(w),Q.engage=w;D.EY=Q;X.promotedPlaybackTracking&& (X=X.promotedPlaybackTracking,X.startUrls&&(D.I$=X.startUrls),X.firstQuartileUrls&&(D.LP=X.firstQuartileUrls),X.secondQuartileUrls&&(D.xi=X.secondQuartileUrls),X.thirdQuartileUrls&&(D.DF=X.thirdQuartileUrls),X.completeUrls&&(D.bQ=X.completeUrls),X.engagedViewUrls&&(X.engagedViewUrls.length>1&&g.P3(new g.ys("There are more than one engaged_view_urls.")),D.wN=X.engagedViewUrls[0]))}; GRi=function(D,X,M){X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=Q.value)if(Q=Q.playerLegacyDesktopWatchAdsRenderer)if(Q=Q.playerAdParams){Q.autoplay=="1"&&(D.vB=!0,D.nh=!0);D.XC=Q.encodedAdSafetyReason||null;Q.showContentThumbnail!==void 0&&(D.LJ=!!Q.showContentThumbnail);M.enabled_engage_types=Q.enabledEngageTypes;break}}; zk2=function(D,X){var M=X.manifestlessWindowedLiveConfig;if(M){var Q=Number(M.minDvrSequence),h=Number(M.maxDvrSequence),H=Number(M.minDvrMediaTimeMs),t=Number(M.maxDvrMediaTimeMs);M=Number(M.startWalltimeMs);Q&&(D.GF=Q);H&&(D.gO=H/1E3,D.T("html5_sabr_parse_live_metadata_playback_boundaries")&&Er(D)&&(D.Xn=H/1E3));h&&(D.zI=h);t&&(D.wL=t/1E3,D.T("html5_sabr_parse_live_metadata_playback_boundaries")&&Er(D)&&(D.jm=t/1E3));M&&(D.xY=M/1E3);(Q||H)&&(h||t)&&(D.yp=!0,D.isLivePlayback=!0,D.allowLiveDvr=!0, D.uH=!1)}if(Q=X.daiConfig){if(Q.enableDai){D.K2=!0;if(h=Q.enableServerStitchedDai)D.enableServerStitchedDai=h;if(h=Q.enablePreroll)D.cF=h}var q;if(Q.daiType==="DAI_TYPE_SS_DISABLED"||((q=Q.debugInfo)==null?0:q.isDisabledUnpluggedChannel))D.WQ=!0;Q.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(D.Un=!0);Q.allowUstreamerRequestAdconfig&&(D.Vd=!0);Q.sendSsdaiMissingAdBreakReasons&&(D.Xx$=!0)}if(q=X.audioConfig){Q=q.loudnessDb;Q!=null&&(D.Ti=Q);Q=q.trackAbsoluteLoudnessLkfs;Q!=null&&(D.Jc=Q);Q=q.loudnessTargetLkfs; Q!=null&&(D.loudnessTargetLkfs=Q);q.audioMuted&&(D.OP=!0);q.muteOnStart&&(D.bD=!0);if(Q=q.loudnessNormalizationConfig)Q.applyStatefulNormalization&&(D.applyStatefulNormalization=!0),Q.preserveStatefulLoudnessTarget&&(D.preserveStatefulLoudnessTarget=!0),h=Q.minimumLoudnessTargetLkfs,h!=null&&(D.minimumLoudnessTargetLkfs=h),Q=Q.maxStatefulTimeThresholdSec,Q!=null&&(D.maxStatefulTimeThresholdSec=Q);q.playAudioOnly&&(D.hF=!0)}if(Q=X.playbackEndConfig)q=Q.endSeconds,Q=Q.limitedPlaybackDurationInSeconds, D.mutedAutoplay&&(q&&(D.endSeconds=q),Q&&(D.limitedPlaybackDurationInSeconds=Q));if(q=X.fairPlayConfig){if(Q=q.certificate)D.I4=y5(Q);Q=Number(q.keyRotationPeriodMs);Q>0&&(D.qU=Q);q=Number(q.keyPrefetchMarginMs);q>0&&(D.Fj=q)}if(q=X.playbackStartConfig){D.ZM=Number(q.startSeconds);h=q.liveUtcStartSeconds;Q=!!D.liveUtcStartSeconds&&D.liveUtcStartSeconds>0;h&&!Q&&(D.liveUtcStartSeconds=Number(h));if(h=q.startPosition)if((H=h.utcTimeMillis)&&!Q&&(D.liveUtcStartSeconds=Number(H)*.001),Q=h.streamTimeMillis)D.nQ= Number(Q)*.001;D.progressBarStartPosition=q.progressBarStartPosition;D.progressBarEndPosition=q.progressBarEndPosition}else if(q=X.skippableSegmentsConfig){if(Q=q.introSkipDurationMs)D.PV=Number(Q)/1E3;if(q=q.outroSkipDurationMs)D.vl=Number(q)/1E3}if(Q=X.skippableIntroConfig)q=Number(Q.startMs),Q=Number(Q.endMs),isNaN(q)||isNaN(Q)||(D.gD=q,D.mp=Q);if(q=X.streamSelectionConfig)D.bT=Number(q.maxBitrate);if(q=X.vrConfig)D.lV=q.partialSpherical=="1";if(q=X.webDrmConfig){q.skipWidevine&&(D.Iw=!0);if(Q= q.widevineServiceCert)D.AD=y5(Q);q.useCobaltWidevine&&(D.useCobaltWidevine=!0);q.startWithNoQualityConstraint&&(D.j1=!0)}if(q=X.mediaCommonConfig){if(Q=q.dynamicReadaheadConfig){D.maxReadAheadMediaTimeMs=Q.maxReadAheadMediaTimeMs||NaN;D.minReadAheadMediaTimeMs=Q.minReadAheadMediaTimeMs||NaN;D.readAheadGrowthRateMs=Q.readAheadGrowthRateMs||NaN;var w;if(Q=q==null?void 0:(w=q.mediaUstreamerRequestConfig)==null?void 0:w.videoPlaybackUstreamerConfig)D.Dd=y5(Q);if((w=q==null?void 0:q.sabrContextUpdates)&& w.length>0)for(w=g.e(w),Q=w.next();!Q.done;Q=w.next())Q=Q.value,Q.type&&Q.value&&(h={type:Q.type,scope:Q.scope,value:y5(Q.value)||void 0,sendByDefault:Q.sendByDefault},D.sabrContextUpdates.set(Q.type,h))}if(w=q.serverPlaybackStartConfig)D.serverPlaybackStartConfig=w;q.useServerDrivenAbr&&(D.jr=!0);if(w=q.requestPipeliningConfig)D.requestPipeliningConfig=w}if(w=X.inlinePlaybackConfig)D.ul=!!w.showAudioControls;if(w=X.embeddedPlayerConfig){D.embeddedPlayerConfig=w;if(q=w.embeddedPlayerMode)Q=D.W(), Q.L$=q,Q.Y=q==="EMBEDDED_PLAYER_MODE_PFL";if(w=w.permissions)D.allowImaMonetization=!!w.allowImaMonetization}if(X=X.webPlayerConfig)X.gatewayExperimentGroup&&(D.gatewayExperimentGroup=X.gatewayExperimentGroup),X.isProximaEligible&&(D.isProximaLatencyEligible=!0)}; kRH=function(D,X,M){var Q=X.formats;if(Q){for(var h=[],H=g.e(Q),t=H.next();!t.done;t=H.next())t=t.value,h.push(t.itag+"/"+t.width+"x"+t.height);D.Rl=h.join(",");h=[];Q=g.e(Q);for(H=Q.next();!H.done;H=Q.next()){t=H.value;H={itag:t.itag,type:t.mimeType,quality:t.quality};var q=t.url;q&&(H.url=q);t=Fn(6,t);q=t.W3;var w=t.K4,T=t.s;t.AX&&(H.url=q,H.sp=w,H.s=T);h.push(g.mJ(H))}D.S1=h.join(",")}if(H=X.hlsFormats){h={};if(M&&(M=M.audioPairingConfig)&&M.pairs)for(M=g.e(M.pairs),Q=M.next();!Q.done;Q=M.next())Q= Q.value,t=Q.videoItag,h[t]||(h[t]=[]),h[t].push(Q.audioItag);M={};Q=g.e(H);for(t=Q.next();!t.done;t=Q.next())t=t.value,M[t.itag]=t.bitrate;Q=[];H=g.e(H);for(t=H.next();!t.done;t=H.next()){t=t.value;q={itag:t.itag,type:t.mimeType,url:t.url,bitrate:t.bitrate,width:t.width,height:t.height,fps:t.fps};if(w=t.audioTrack)if(T=w.displayName)q.name=T,q.audio_track_id=w.id,w.audioIsDefault&&(q.is_default="1");if(t.drmFamilies){w=[];T=g.e(t.drmFamilies);for(var L=T.next();!L.done;L=T.next())w.push(IK[L.value]); q.drm_families=w.join(",")}(w=h[t.itag])&&w.length&&(q.audio_itag=w.join(","),(w=M[w[0]])&&(q.bitrate+=w));(w=wE9(t))&&(q.eotf=w);t.audioChannels&&(q.audio_channels=t.audioChannels);Q.push(g.mJ(q))}D.hlsFormats=Q.join(",")}if((M=X.licenseInfos)&&M.length>0){h={};M=g.e(M);for(Q=M.next();!Q.done;Q=M.next())H=Q.value,Q=H.drmFamily,H=H.url,Q&&H&&(h[IK[Q]]=H);D.DS=h}if(h=X.drmParams)D.drmParams=h;if(h=X.dashManifestUrl)D.FY=g.nJ(h,{cpn:D.clientPlaybackNonce});if(h=X.hlsManifestUrl)D.hlsvp=h;if(h=X.probeUrl)D.probeUrl= Id(g.nJ(h,{cpn:D.clientPlaybackNonce}));if(X=X.serverAbrStreamingUrl)D.t0=new g.cs(X,!0)}; j$1=function(D,X,M){var Q=X.videoId;Q&&(D.videoId=Q,M.video_id||(M.video_id=Q));if(Q=X.title)D.title=Q,M.title||(M.title=Q);if(Q=X.lengthSeconds)D.lengthSeconds=Number(Q),M.length_seconds||(M.length_seconds=Q);if(Q=X.keywords)D.keywords=uz1(Q);if(Q=X.channelId)D.uI=Q,M.ucid||(M.ucid=Q);if(Q=X.viewCount)D.rawViewCount=Number(Q);if(Q=X.author)D.author=Q,M.author||(M.author=Q);if(M=X.shortDescription)D.shortDescription=M;if(M=X.isCrawlable)D.isListed=M;if(M=X.musicVideoType)D.musicVideoType=M;M=X.isLive; M!=null&&(D.isLivePlayback=M);if(M||X.isUpcoming)D.isPremiere=!X.isLiveContent;if(M=X.thumbnail)D.Jg=cU(M);if(M=X.isExternallyHostedPodcast)D.isExternallyHostedPodcast=M;(M=X.stationType)&&M!=="STATION_TYPE_UNKNOWN"&&(D.NC$=!0);X=X.viewerLivestreamJoinPosition;if(X==null?0:X.utcTimeMillis)D.bN=WH(X.utcTimeMillis)}; MWm=function(D,X){if(X.playerLegacyDesktopYpcTrailerRenderer){var M=X.playerLegacyDesktopYpcTrailerRenderer;D.IQ=M.trailerVideoId||"";var Q=(Q=X.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&Q.ypcTrailerRenderer}else if(X.playerLegacyDesktopYpcOfferRenderer)M=X.playerLegacyDesktopYpcOfferRenderer;else if(X.ypcTrailerRenderer){Q=X.ypcTrailerRenderer;X=Q.fullVideoMessage;D.tE=X?g.q1(X):"";var h,H;D.IQ=((h=g.Z(Q,DUd))==null?void 0:(H=h.videoDetails)==null?void 0:H.videoId)||""}M&&(D.NF=M.itemTitle|| "",M.itemUrl&&(D.rZ=M.itemUrl),M.itemBuyUrl&&(D.xo=M.itemBuyUrl),D.Dg=M.itemThumbnail||"",D.Qx=M.offerHeadline||"",D.mq=M.offerDescription||"",D.tD=M.offerId||"",D.sE=M.offerButtonText||"",D.Qe=M.offerButtonFormattedText||null,D.vy=M.overlayDurationMsec||NaN,D.tE=M.fullVideoMessage||"",D.eG=!0);Q&&((M=g.Z(Q,DUd))?D.N6={raw_player_response:M}:(M=g.Z(Q,Xxo),D.N6=M?dR(M):null),D.eG=!0)}; hHH=function(D,X,M,Q){X.isLiveDefaultBroadcast&&(D.isLiveDefaultBroadcast=!0);X.isUpcoming&&(D.isUpcoming=!0);if(X.isPostLiveDvr){D.uH=!0;if(Q=X.latencyClass)D.latencyClass=Qz_[Q]||"UNKNOWN";X.isLowLatencyLiveStream&&(D.isLowLatencyLiveStream=!0)}else{var h=!1;D.xp?(D.allowLiveDvr=FI()?!0:j6&&yv<5?!1:!0,D.isLivePlayback=!0):X.isLive?(Q.livestream="1",D.allowLiveDvr=X.isLiveDvrEnabled?FI()?!0:j6&&yv<5?!1:!0:!1,D.partnerId=27,h=!0):X.isUpcoming&&(h=!0);if(X.isLive||D.xp){X.isLowLatencyLiveStream&&(D.isLowLatencyLiveStream= !0);var H=X.latencyClass;H&&(D.latencyClass=Qz_[H]||"UNKNOWN");if(X=X.liveChunkReadahead)D.liveChunkReadahead=X;if(X=M&&M.livePlayerConfig){X.hasSubfragmentedFmp4&&(D.hasSubfragmentedFmp4=!0);X.hasSubfragmentedWebm&&(D.b_=!0);X.defraggedFromSubfragments&&(D.defraggedFromSubfragments=!0);if(M=X.liveExperimentalContentId)D.liveExperimentalContentId=Number(M);X=X.isLiveHeadPlayable;D.T("html5_live_head_playable")&&X!=null&&(D.isLiveHeadPlayable=X)}}h&&(D.isLivePlayback=!0,Q.adformat&&Q.adformat.split("_")[1]!== "8"||D.AC.push("heartbeat"))}}; PU=function(D,X){this.type=D||"";this.id=X||""}; mN=function(D){return new PU(D.substring(0,2),D.substring(2))}; nD=function(D,X){this.UR=D;this.author="";this.g5=null;this.playlistLength=0;this.S=this.sessionData=null;this.Jg={};this.title="";if(X){this.author=X.author||X.playlist_author||"";this.title=X.playlist_title||"";if(D=X.session_data)this.sessionData=Mq(D,"&");var M;this.S=((M=X.thumbnail_ids)==null?void 0:M.split(",")[0])||null;this.Jg=Ur(X,"playlist_");this.videoId=X.video_id||void 0;if(M=X.list)switch(X.listType){case "user_uploads":this.playlistId=(new PU("UU","PLAYER_"+M)).toString();break;default:if(D= X.playlist_length)this.playlistLength=Number(D)||0;this.playlistId=mN(M).toString();if(X=X.video)this.videoId=(X[0]||null).video_id||void 0}else X.playlist&&(this.playlistLength=X.playlist.toString().split(",").length)}}; bN=function(D,X){this.UR=D;this.ZI=this.author="";this.g5=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.t7=this.lengthText="";this.sessionData=null;this.Jg={};this.title="";if(X){this.ariaLabel=X.aria_label||void 0;this.author=X.author||"";this.ZI=X.ZI||"";if(D=X.endscreen_autoplay_session_data)this.g5=Mq(D,"&");this.K0=X.K0;this.isLivePlayback=X.live_playback==="1";this.isUpcoming=!!X.isUpcoming;if(D=X.length_seconds)this.lengthSeconds=typeof D==="string"?Number(D):D;this.lengthText= X.lengthText||"";this.t7=X.t7||"";this.publishedTimeText=X.publishedTimeText||void 0;if(D=X.session_data)this.sessionData=Mq(D,"&");this.shortViewCount=X.short_view_count_text||void 0;this.Jg=Ur(X);this.title=X.title||"";this.videoId=X.docid||X.video_id||X.videoId||X.id||void 0;this.watchUrl=X.watchUrl||void 0}}; HnR=function(D){var X,M,Q=(X=D.getWatchNextResponse())==null?void 0:(M=X.contents)==null?void 0:M.twoColumnWatchNextResults,h,H,t,q,w;D=(h=D.getWatchNextResponse())==null?void 0:(H=h.playerOverlays)==null?void 0:(t=H.playerOverlayRenderer)==null?void 0:(q=t.endScreen)==null?void 0:(w=q.watchNextEndScreenRenderer)==null?void 0:w.results;if(!D){var T,L;D=Q==null?void 0:(T=Q.endScreen)==null?void 0:(L=T.endScreen)==null?void 0:L.results}return D}; g.RT=function(D){var X,M,Q;D=g.Z((X=D.getWatchNextResponse())==null?void 0:(M=X.playerOverlays)==null?void 0:(Q=M.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,e1);return g.Z(D==null?void 0:D.playerBar,tWm)}; NDH=function(D){this.S=D.playback_progress_0s_url;this.Y=D.playback_progress_2s_url;this.G=D.playback_progress_10s_url}; qE1=function(){if(IT===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(X){}a:{try{var D=!!self.localStorage}catch(X){D=!1}if(D&&(D=g.vC(g.Jr()+"::yt-player"))){IT=new vb(D);break a}IT=void 0}}return IT}; g.gs=function(){var D=qE1();if(!D)return{};try{var X=D.get("yt-player-lv");return JSON.parse(X||"{}")}catch(M){return{}}}; g.wxs=function(D){var X=qE1();X&&(D=JSON.stringify(D),X.set("yt-player-lv",D))}; g.vU=function(D){return g.gs()[D]||0}; g.ds=function(D,X){var M=g.gs();X!==M[D]&&(X!==0?M[D]=X:delete M[D],g.wxs(M))}; g.rs=function(D){return g.r(function(X){return X.return(g.Ci(TD_(),D))})}; oT=function(D,X,M,Q,h,H,t,q){var w,T,L,K,a,F;return g.r(function(V){switch(V.S){case 1:return w=g.vU(D),w===4?V.return(4):g.I(V,g.zh(),2);case 2:T=V.G;if(!T)throw g.Vu("wiac");if(!q||t===void 0){V.D4(3);break}return g.I(V,L1p(q,t),4);case 4:t=V.G;case 3:return L=M.lastModified||"0",g.I(V,g.rs(T),5);case 5:return K=V.G,g.N_(V,6),iN++,g.I(V,g.mt(K,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",d3:!0},function(c){if(H!==void 0&&t!==void 0){var S=""+D+"|"+X.id+"|"+L+"|"+String(H).padStart(10, "0");S=g.ni(c.objectStore("media"),t,S)}else S=g.Bc.resolve(void 0);var b=szH(D,X.VB()),n=szH(D,!X.VB()),R={fmts:K12(Q),format:M||{}};b=g.ni(c.objectStore("index"),R,b);var v=Q.downloadedEndTime===-1;R=v?c.objectStore("index").get(n):g.Bc.resolve(void 0);var l={fmts:"music",format:{}};c=v&&h&&!X.VB()?g.ni(c.objectStore("index"),l,n):g.Bc.resolve(void 0);return g.Bc.all([c,R,S,b]).then(function(A){A=g.e(A);A.next();A=A.next().value;iN--;var Hs=g.vU(D);if(Hs!==4&&v&&h||A!==void 0&&g.ahW(A.fmts))Hs= 1,g.ds(D,Hs);return Hs})}),8); case 8:return V.return(V.G);case 6:a=g.LG(V);iN--;F=g.vU(D);if(F===4)return V.return(F);g.ds(D,4);throw a;}})}; g.F1m=function(D){var X,M;return g.r(function(Q){if(Q.S==1)return g.I(Q,g.zh(),2);if(Q.S!=3){X=Q.G;if(!X)throw g.Vu("ri");return g.I(Q,g.rs(X),3)}M=Q.G;return Q.return(g.mt(M,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(h){var H=IDBKeyRange.bound(D+"|",D+"~");return h.objectStore("index").getAll(H).then(function(t){return t.map(function(q){return q?q.format:{}})})}))})}; $U9=function(D,X,M,Q,h){var H,t,q;return g.r(function(w){if(w.S==1)return g.I(w,g.zh(),2);if(w.S!=3){H=w.G;if(!H)throw g.Vu("rc");return g.I(w,g.rs(H),3)}t=w.G;q=g.mt(t,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(T){var L=""+D+"|"+X+"|"+M+"|"+String(Q).padStart(10,"0");return T.objectStore("media").get(L)}); return h?w.return(q.then(function(T){if(T===void 0)throw Error("No data from indexDb");return VW1(h,T)}).catch(function(T){throw new g.ys("Error while reading chunk: "+T.name+", "+T.message); })):w.return(q)})}; g.ahW=function(D){return D?D==="music"?!0:D.includes("dlt=-1")||!D.includes("dlt="):!1}; szH=function(D,X){return""+D+"|"+(X?"v":"a")}; K12=function(D){var X={};return Qj((X.dlt=D.downloadedEndTime.toString(),X.mket=D.maxKnownEndTime.toString(),X.avbr=D.averageByteRate.toString(),X))}; Zn5=function(D){var X={},M={};D=g.e(D);for(var Q=D.next();!Q.done;Q=D.next()){var h=Q.value,H=h.split("|");h.match(g.BDs)?(Q=Number(H.pop()),isNaN(Q)?M[h]="?":(H=H.join("|"),(h=X[H])?(H=h[h.length-1],Q===H.end+1?H.end=Q:h.push({start:Q,end:Q})):X[H]=[{start:Q,end:Q}])):M[h]="?"}D=g.e(Object.keys(X));for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,M[Q]=X[Q].map(function(t){return t.start+"-"+t.end}).join(","); return M}; CD=function(D){g.Dq.call(this);this.S=null;this.Y=new o9;this.S=null;this.X=new Set;this.crossOrigin=D||""}; UUp=function(D,X,M){for(M=Or(D,M);M>=0;){var Q=D.levels[M];if(Q.isLoaded(pD(Q,X))&&(Q=g.AR(Q,X)))return Q;M--}return g.AR(D.levels[0],X)}; fhs=function(D,X,M){M=Or(D,M);for(var Q,h;M>=0;M--)if(Q=D.levels[M],h=pD(Q,X),!Q.isLoaded(h)){Q=D;var H=M,t=H+"-"+h;Q.X.has(t)||(Q.X.add(t),Q.Y.enqueue(H,{AZ:H,Qh:h}))}cDm(D)}; cDm=function(D){if(!D.S&&!D.Y.isEmpty()){var X=D.Y.remove();D.S=SEm(D,X)}}; SEm=function(D,X){var M=document.createElement("img");D.crossOrigin&&(M.crossOrigin=D.crossOrigin);M.src=D.levels[X.AZ].QF(X.Qh);M.onload=function(){var Q=X.AZ,h=X.Qh;D.S!==null&&(D.S.onload=null,D.S=null);Q=D.levels[Q];Q.loaded.add(h);cDm(D);var H=Q.columns*Q.rows;h*=H;Q=Math.min(h+H-1,Q.hj()-1);h=[h,Q];D.publish("l",h[0],h[1])}; return M}; g.Yy=function(D,X,M,Q){this.level=D;this.U=X;this.loaded=new Set;this.level=D;this.U=X;D=M.split("#");this.width=Math.floor(Number(D[0]));this.height=Math.floor(Number(D[1]));this.frameCount=Math.floor(Number(D[2]));this.columns=Math.floor(Number(D[3]));this.rows=Math.floor(Number(D[4]));this.S=Math.floor(Number(D[5]));this.Y=D[6];this.signature=D[7];this.videoLength=Q}; pD=function(D,X){return Math.floor(X/(D.columns*D.rows))}; g.AR=function(D,X){X>=D.KG()&&D.HR();var M=pD(D,X),Q=D.columns*D.rows,h=X%Q;X=h%D.columns;h=Math.floor(h/D.columns);var H=D.HR()+1-Q*M;if(H1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Ewp=function(D,X,M){return(D=D.levels[X])?D.nM(M):-1}; Or=function(D,X){var M=D.U.get(X);if(M)return M;M=D.levels.length;for(var Q=0;Q=X)return D.U.set(X,Q),Q;D.U.set(X,M-1);return M-1}; JR=function(D,X,M,Q){M=M.split("#");M=[M[1],M[2],0,M[3],M[4],-1,M[0],""].join("#");g.Yy.call(this,D,X,M,0);this.G=null;this.D=Q?2:0}; WU=function(D,X,M,Q){lN.call(this,D,0,void 0,X,!(Q===void 0||!Q));for(D=0;D30?D.limitedPlaybackDurationInSeconds=30:M<30&&M>10&&(D.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":D.limitedPlaybackDurationInSeconds=M*.2}}; uN=function(D,X){var M=X.raw_watch_next_response;if(!M){var Q=X.watch_next_response;Q&&(M=JSON.parse(Q))}if(M){D.a5=M;var h=D.a5.playerCueRangeSet;h&&g.XY(D,h);var H=D.a5.playerOverlays;if(H){var t=H.playerOverlayRenderer;if(t){var q=t.autonavToggle;q&&(D.autoplaySwitchButtonRenderer=g.Z(q,dUR),D.T("web_player_autonav_use_server_provided_state")&&Mp(D)&&(D.autonavState=D.autoplaySwitchButtonRenderer.enabled?2:1));var w=t.videoDetails;if(w){var T=w.embeddedPlayerOverlayVideoDetailsRenderer;var L=w.playerOverlayVideoDetailsRenderer; L&&(L.title&&(X.title=g.q1(L.title)),L.subtitle&&(X.subtitle=g.q1(L.subtitle)))}g.r_(D.UR)&&(D.DJ=!!t.addToMenu);rDs(D,t.shareButton);t.startPosition&&t.endPosition&&(D.progressBarStartPosition=t.startPosition,D.progressBarEndPosition=t.endPosition);var K=t.gatedActionsOverlayRenderer;K&&(D.Yj=g.Z(K,inm));var a,F,V,c=g.Z((a=D.getWatchNextResponse())==null?void 0:(F=a.playerOverlays)==null?void 0:(V=F.playerOverlayRenderer)==null?void 0:V.infoPanel,ows);if(c){D.O$=Number(c==null?void 0:c.durationMs)|| NaN;if(c==null?0:c.infoPanelOverviewViewModel)D.qj=c==null?void 0:c.infoPanelOverviewViewModel;if(c==null?0:c.infoPanelDetailsViewModel)D.I6=c==null?void 0:c.infoPanelDetailsViewModel}D.showSeekingControls=!!t.showSeekingControls}}var S,b,n=(S=D.getWatchNextResponse())==null?void 0:(b=S.contents)==null?void 0:b.twoColumnWatchNextResults;if(n){var R=n.desktopOverlay&&g.Z(n.desktopOverlay,CjW);R&&(R.suppressShareButton&&(D.showShareButton=!1),R.suppressWatchLaterButton&&(D.DJ=!1))}T&&Ono(D,X,T);var v= NB(0,X.autoplay_count),l=D.getWatchNextResponse(),A,Hs=(A=l.contents)==null?void 0:A.twoColumnWatchNextResults,u,D_,q5,Lo=(u=l.playerOverlays)==null?void 0:(D_=u.playerOverlayRenderer)==null?void 0:(q5=D_.autoplay)==null?void 0:q5.playerOverlayAutoplayRenderer,Qs=HnR(D),S2,XC=(S2=l.contents)==null?void 0:S2.singleColumnWatchNextResults;if(XC){var q_;if(((q_=XC.autoplay)==null?0:q_.autoplay)&&!XC.playlist){var th=XC.autoplay.autoplay.sets,Jd={},Gp=new bN(D.W()),zy=null,Ra;if(th){for(var m=g.e(th), $B=m.next();!$B.done;$B=m.next()){var WZ=$B.value.autoplayVideoRenderer;if(WZ&&WZ.compactVideoRenderer){zy=WZ.compactVideoRenderer;break}}if(Ra=th[0].autoplayVideo){var wR=Ra.clickTrackingParams;wR&&(Jd.itct=wR);Jd.autonav="1";Jd.playnext=String(v)}}else Jd.feature="related-auto";var eb=g.Z(Ra,g.QM);if(zy){Gp.videoId=zy.videoId;var E=zy.shortBylineText;E&&(Gp.author=g.q1(E));var Xn=zy.title;Xn&&(Gp.title=g.q1(Xn))}else eb!=null&&eb.videoId&&(Gp.videoId=eb.videoId);Gp.g5=Jd;D.suggestions=[];D.QL=Gp}}if(Qs){for(var ci= [],qu=g.e(Qs),Wi=qu.next();!Wi.done;Wi=qu.next()){var wS=Wi.value,zp=void 0,Dt=null;if(wS.endScreenVideoRenderer){var Pi=wS.endScreenVideoRenderer,P=Pi.title;Dt=new bN(D.W());Dt.videoId=Pi.videoId;Dt.lengthSeconds=Pi.lengthInSeconds||0;var f=Pi.publishedTimeText;f&&(Dt.publishedTimeText=g.q1(f));var y=Pi.shortBylineText;y&&(Dt.author=g.q1(y));var d=Pi.shortViewCountText;d&&(Dt.shortViewCount=g.q1(d));if(P){Dt.title=g.q1(P);var W=P.accessibility;if(W){var N5=W.accessibilityData;N5&&N5.label&&(Dt.ariaLabel= N5.label)}}var z=Pi.navigationEndpoint;if(z){zp=z.clickTrackingParams;var J=g.Z(z,g.QM),C=g.Z(z,g.IU);J?Dt.K0=J:C!=null&&(Dt.watchUrl=C.url)}var Ri=Pi.thumbnailOverlays;if(Ri)for(var Ii=g.e(Ri),Z_=Ii.next();!Z_.done;Z_=Ii.next()){var b1=Z_.value.thumbnailOverlayTimeStatusRenderer;if(b1)if(b1.style==="LIVE"){Dt.isLivePlayback=!0;break}else if(b1.style==="UPCOMING"){Dt.isUpcoming=!0;break}}Dt.Jg=cU(Pi.thumbnail)}else if(wS.endScreenPlaylistRenderer){var Qh=wS.endScreenPlaylistRenderer,mH=Qh.navigationEndpoint; if(!mH)continue;var pf=g.Z(mH,g.QM);if(!pf)continue;var vi=pf.videoId;Dt=new nD(D.W());Dt.playlistId=Qh.playlistId;Dt.playlistLength=Number(Qh.videoCount)||0;Dt.S=vi||null;Dt.videoId=vi;var kB=Qh.title;kB&&(Dt.title=g.q1(kB));var e2=Qh.shortBylineText;e2&&(Dt.author=g.q1(e2));zp=mH.clickTrackingParams;Dt.Jg=cU(Qh.thumbnail)}Dt&&(zp&&(Dt.sessionData={itct:zp}),ci.push(Dt))}D.suggestions=ci}if(Lo){D.OQ=!!Lo.preferImmediateRedirect;D.R2=D.R2||!!Lo.webShowNewAutonavCountdown;D.EC=D.EC||!!Lo.webShowBigThumbnailEndscreen; if(D.R2||D.EC){var CR=Hs||null,gR=new bN(D.W());gR.videoId=Lo.videoId;var Sb=Lo.videoTitle;if(Sb){gR.title=g.q1(Sb);var Co=Sb.accessibility;if(Co){var SF=Co.accessibilityData;SF&&SF.label&&(gR.ariaLabel=SF.label)}}var yh=Lo.byline;yh&&(gR.author=g.q1(yh));var uW=Lo.publishedTimeText;uW&&(gR.publishedTimeText=g.q1(uW));var Mu=Lo.shortViewCountText;Mu&&(gR.shortViewCount=g.q1(Mu));var pG=Lo.thumbnailOverlays;if(pG)for(var dK=g.e(pG),Uo=dK.next();!Uo.done;Uo=dK.next()){var eq=Uo.value.thumbnailOverlayTimeStatusRenderer; if(eq)if(eq.style==="LIVE"){gR.isLivePlayback=!0;break}else if(eq.style==="UPCOMING"){gR.isUpcoming=!0;break}else if(eq.style==="DEFAULT"&&eq.text){gR.lengthText=g.q1(eq.text);var Kg=eq.text.accessibility;if(Kg){var ae=Kg.accessibilityData;ae&&ae.label&&(gR.t7=ae.label||"")}break}}gR.Jg=cU(Lo.background);var Mh=Lo.nextButton;if(Mh){var Q0=Mh.buttonRenderer;if(Q0){var hw=Q0.navigationEndpoint;if(hw){var VZ=g.Z(hw,g.QM);VZ&&(gR.K0=VZ)}}}if(Lo.topBadges){var hK=Lo.topBadges[0];if(hK){var Hh=g.Z(hK,px5); Hh&&Hh.style==="BADGE_STYLE_TYPE_PREMIUM"&&(gR.uhF=!0)}}var tK=Lo.alternativeTitle;tK&&(gR.ZI=g.q1(tK));var Wq={autonav:"1",playnext:String(v)};gR.playlistId&&(Wq.autoplay="1");if(CR){var r$,i_,E1,Nh,y2=(r$=CR.autoplay)==null?void 0:(i_=r$.autoplay)==null?void 0:(E1=i_.sets)==null?void 0:(Nh=E1[0])==null?void 0:Nh.autoplayVideo;if(y2){var qh=y2.clickTrackingParams;qh&&(Wq.itct=qh);var wQ=g.Z(y2,g.QM);wQ&&(gR.sf=wQ)}}else if(Lo){var TX,cq,L1,GN=(TX=Lo.nextButton)==null?void 0:(cq=TX.buttonRenderer)== null?void 0:(L1=cq.navigationEndpoint)==null?void 0:L1.clickTrackingParams;GN&&(Wq.itct=GN)}Wq.itct||(Wq.feature="related-auto");gR.g5=Wq;D.suggestions||(D.suggestions=[]);D.QL=gR}Lo.countDownSecs!=null&&(D.QQ=Lo.countDownSecs*1E3);Lo.countDownSecsForFullscreen!=null&&(D.It=Lo.countDownSecsForFullscreen>=0?Lo.countDownSecsForFullscreen*1E3:-1);D.T("web_autonav_color_transition")&&Lo.watchToWatchTransitionRenderer&&(D.watchToWatchTransitionRenderer=g.Z(Lo.watchToWatchTransitionRenderer,ADi))}var Pl= HnR(D);if(Pl){var kd,E$,TZ,wy=Pl==null?void 0:(kd=Pl[0])==null?void 0:(E$=kd.endScreenVideoRenderer)==null?void 0:(TZ=E$.navigationEndpoint)==null?void 0:TZ.clickTrackingParams,yH=g.hu(D);wy&&yH&&(yH.sessionData={itct:wy})}D.a5.currentVideoThumbnail&&(D.Jg=cU(D.a5.currentVideoThumbnail));var PS,LB,sD,KB,a1,md=(PS=D.a5)==null?void 0:(LB=PS.contents)==null?void 0:(sD=LB.twoColumnWatchNextResults)==null?void 0:(KB=sD.results)==null?void 0:(a1=KB.results)==null?void 0:a1.contents;if(md&&md[0]){var kp= md[0].videoPrimaryInfoRenderer;kp&&kp&&kp.subtitle&&(D.gm=g.q1(kp.subtitle))}if(md&&md[1]){var nE,Ag,bw,ZJ,ur=(nE=md[1].videoSecondaryInfoRenderer)==null?void 0:(Ag=nE.owner)==null?void 0:(bw=Ag.videoOwnerRenderer)==null?void 0:(ZJ=bw.thumbnail)==null?void 0:ZJ.thumbnails;ur&&ur.length&&(D.profilePicture=ur[ur.length-1].url)}var Sd=Tj(X),Y9,i0p=(Y9=D.getWatchNextResponse())==null?void 0:Y9.onResponseReceivedEndpoints;if(i0p)for(var oTs=g.e(i0p),rp=oTs.next();!rp.done;rp=oTs.next()){var i9=rp.value; g.Z(i9,Hy)&&(D.qq=g.Z(i9,Hy));var yV=g.Z(i9,YEs),Cx9=void 0;if((Cx9=yV)==null?0:Cx9.entityKeys)D.Cj=yV.entityKeys||[],yV.visibleOnLoadKeys&&(D.visibleOnLoadKeys=yV.visibleOnLoadKeys)}if(D.T("web_key_moments_markers")){var A4W=g.tu.getState().entities,Yoa=g.oL("visibility_override","markersVisibilityOverrideEntity");var ev=Oq(A4W,"markersVisibilityOverrideEntity",Yoa);D.M5=(ev==null?void 0:ev.videoId)===(D.videoId||Sd)&&(ev==null?0:ev.visibilityOverrideMarkersKey)?ev.visibilityOverrideMarkersKey:D.visibleOnLoadKeys; D.visibleOnLoadKeys=[].concat(g.xW(D.M5))}}}; nwR=function(D,X){if(X=X.raw_reel_item_watch_response)D.reelItemWatchResponse=X}; lhR=function(D){return!!D&&isFinite(D)&&D>1E9}; Mp=function(D){var X;return((X=D.autoplaySwitchButtonRenderer)==null?void 0:X.enabled)!==void 0}; Np=function(D){return!!(D.Y&&D.Y.videoInfos&&D.Y.videoInfos.length)}; g.sN=function(D){var X=D.J;D.T("html5_gapless_unlimit_format_selection")&&qp(D)&&(X=!1);var M=!!D.S&&D.S.yq,Q=D.UR,h=D.NE(),H=wJ(D),t=D.sR,q=X,w=D.isOtf();X=D.dh();var T=D.xp,L=D.getUserAudio51Preference(),K=T3(D),a=LA(D),F=new OER(Q);if(Q.t5()||Q.T("html5_logging_format_selection"))F.S=!0;F.A$=H;F.sR=t&&Q.K;F.M5=L;g.lE("windows nt 5.1")&&!g.h0&&(F.yH=!0);if(H=h)H=g.Qv(Q)?Yfd(Q):!1;H&&(F.f$=!0);q&&(F.yH=!0,F.bM=!0);w&&!Q.T("html5_otf_prefer_vp9")&&(F.yH=!0);Q.playerStyle==="picasaweb"&&(w&&(F.yH= !1),F.R5=!1);T&&(F.yH=!0);A9(Q.D,Y4.CHANNELS)&&(Q.T("html5_enable_ac3")&&(F.U=!0),Q.T("html5_enable_eac3")&&(F.D=!0),Q.T("html5_enable_ac3_gapless")&&(F.uj=!0));Q.T("html5_block_8k_hfr")&&(F.p$=!0);F.X=g.lx(Q.experiments,"html5_max_selectable_quality_ordinal");F.J=g.lx(Q.experiments,"html5_min_selectable_quality_ordinal");ma&&(F.DJ=480);if(M||h)F.R5=!1;F.o5=!1;F.disableAv1=K;M=Gw(Q,F.G,void 0,F.disableAv1);M>0&&M<2160&&(uw()||Q.T("html5_format_hybridization"))&&(F.G.supportsChangeType=+uw(),F.xw= M);M>=2160&&(F.L$=!0);LVn()&&!Q.T("disable_av1_setting")&&(F.G.serveVp9OverAv1IfHigherRes=0,F.XS=!1);F.dh=X;F.OR=g.Jg||Qd()&&!X?!1:!0;F.K=Q.T("html5_format_hybridization");F.R2=Q.T("html5_disable_encrypted_vp9_live_non_2k_4k");F.h5=a;Er(D)&&(F.Vq=!0);WX()&&D.playerResponse&&D.playerResponse.playerConfig&&D.playerResponse.playerConfig.webPlayerConfig&&D.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(F.U=!0,F.D=!0);D.J&&D.isAd()&&(D.NL&&(F.eH=D.NL),D.tC&&(F.Y=D.tC));D.TI()&& (F.a5=g.lx(D.UR.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));F.yf=D.isLivePlayback&&D.aj()&&D.UR.T("html5_drm_live_audio_51");F.zm=D.cZ;F.Mj=!Er(D);return D.p$=F}; T3=function(D){return D.UR.T("html5_disable_av1")?!0:!1}; JD2=function(D){SQ("drm_pb_s",void 0,D.eH);D.I4||D.S&&i5(D.S);var X={};D.S&&(X=yfo(D.yL,g.sN(D),D.UR.D,D.S,function(M){return D.publish("ctmp","fmtflt",M)},!0,new Set)); X=new NI(X,D.UR,D.Iw,D.useCobaltWidevine?WX()?KA(D):!1:!1,function(M,Q){D.SH(M,Q)}); g.p(D,X);D.Zc=!1;D.loading=!0;lHn(X,function(M){SQ("drm_pb_f",void 0,D.eH);for(var Q=g.e(M),h=Q.next();!h.done;h=Q.next())switch(h=h.value,h.flavor){case "fairplay":h.I4=D.I4;h.qU=D.qU;h.Fj=D.Fj;break;case "widevine":h.AD=D.AD}D.w$=M;if(D.w$.length>0&&(D.D=D.w$[0],D.UR.t5())){M={};Q=g.e(Object.entries(D.D.S));for(h=Q.next();!h.done;h=Q.next()){var H=g.e(h.value);h=H.next().value;H=H.next().value;var t="unk";(h=h.match(/(.*)codecs="(.*)"/))&&(t=h[2]);M[t]=H}D.SH("drmProbe",M)}D.PT()})}; xUs=function(D,X){if(X.length===0||ap(D))return null;D.UR.D.Y&&(JI=!0);var M=D.DS;var Q=D.lengthSeconds,h=D.isLivePlayback,H=D.uH,t=D.UR,q=yCn(X);if(h||H){t=t.experiments;Q=new e4("",t,!0);Q.G=!H;Q.yq=!0;Q.isManifestless=!0;Q.isLive=!H;Q.uH=H;h=g.e(X);for(q=h.next();!q.done;q=h.next()){var w=q.value;q=gx(w,M);var T=Fn(2,w);T=dx(T.W3||w.url||"",T.K4,T.s);var L=T.get("id");L&&L.includes("%7E")&&(Q.f$=!0);var K=void 0;L=(K=t)==null?void 0:K.Z4("html5_max_known_end_time_rebase");K=Number(w.targetDurationSec|| 5);w=Number(w.maxDvrDurationSec||14400);var a=Number(T.get("mindsq")||T.get("min_sq")||"0"),F=Number(T.get("maxdsq")||T.get("max_sq")||"0")||Infinity;Q.GF=Q.GF||a;Q.zI=Q.zI||F;var V=!iw(q.mimeType);T&&mD(Q,new LF(T,q,{oP:K,Zq:V,qQ:w,GF:a,zI:F,bC:300,uH:H,gT:L}))}M=Q}else if(q==="FORMAT_STREAM_TYPE_OTF"){Q=Q===void 0?0:Q;H=new e4("",t.experiments,!1);H.duration=Q||0;t=g.e(X);for(Q=t.next();!Q.done;Q=t.next())Q=Q.value,h=gx(Q,M,H.duration),q=Fn(7,Q),(q=dx(q.W3||Q.url||"",q.K4,q.s))&&(h.streamType=== "FORMAT_STREAM_TYPE_OTF"?mD(H,new sM(q,h,"sq/0")):mD(H,new EM(q,h,Je(Q.initRange),Je(Q.indexRange))));H.isOtf=!0;M=H}else{Q=Q===void 0?0:Q;H=new e4("",t.experiments,!1);H.duration=Q||0;t=g.e(X);for(Q=t.next();!Q.done;Q=t.next())T=Q.value,Q=gx(T,M,H.duration),h=Je(T.initRange),q=Je(T.indexRange),L=Fn(3,T),(T=dx(L.W3||T.url||"",L.K4,L.s))&&mD(H,new EM(T,Q,h,q));M=H}X.length>0&&(X=X[0],DZ(D)&&X.url&&(D.G6=D.G6||IhH(X.url)));X=D.isLivePlayback&&!D.uH&&!D.yp&&!D.isPremiere;D.T("html5_live_head_playable")&& (!FY(D)&&X&&D.SH("missingLiveHeadPlayable",{}),D.UR.f$==="yt"&&(M.yf=!0));return M}; W1d=function(D){var X,M,Q=((X=D.playerResponse)==null?void 0:(M=X.streamingData)==null?void 0:M.adaptiveFormats)||[];X=null;if(Q.length>0)X=xUs(D,Q);else if(!D.T("html5_deprecate_adaptive_formats_string")){D.SH("pafmtstr",{s:D.adaptiveFormats.substring(0,50)});if((Q=D.adaptiveFormats)&&!ap(D)){D.UR.D.Y&&(JI=!0);Q=VM(Q);X=D.DS;var h=D.lengthSeconds,H=D.isLivePlayback;M=D.uH;var t=D.UR,q=EPi(Q);if(H||M){t=t==null?void 0:t.experiments;h=new e4("",t,!0);h.yq=!0;h.isManifestless=!0;h.G=!M;h.isLive=!M; h.uH=M;H=g.e(Q);for(q=H.next();!q.done;q=H.next()){var w=q.value;q=v2(w,X);var T=dx(w.url,w.sp,w.s),L=T.get("id");L&&L.includes("%7E")&&(h.f$=!0);var K=void 0;L=(K=t)==null?void 0:K.Z4("html5_max_known_end_time_rebase");K=Number(w.target_duration_sec)||5;w=Number(w.max_dvr_duration_sec)||14400;var a=Number(T.get("mindsq")||T.get("min_sq")||"0"),F=Number(T.get("maxdsq")||T.get("max_sq")||"0")||Infinity;h.GF=h.GF||a;h.zI=h.zI||F;var V=!iw(q.mimeType);T&&mD(h,new LF(T,q,{oP:K,Zq:V,qQ:w,GF:a,zI:F,bC:300, uH:M,gT:L}))}X=h}else if(q==="FORMAT_STREAM_TYPE_OTF"){h=h===void 0?0:h;M=new e4("",t==null?void 0:t.experiments,!1);M.duration=h||0;t=g.e(Q);for(h=t.next();!h.done;h=t.next())if(T=h.value,h=v2(T,X,M.duration),H=dx(T.url,T.sp,T.s))h.streamType==="FORMAT_STREAM_TYPE_OTF"?mD(M,new sM(H,h,"sq/0")):(q=YV(T.init),T=YV(T.index),mD(M,new EM(H,h,q,T)));M.isOtf=!0;X=M}else{h=h===void 0?0:h;M=new e4("",t==null?void 0:t.experiments,!1);M.duration=h||0;t=g.e(Q);for(h=t.next();!h.done;h=t.next())T=h.value,h=v2(T, X,M.duration),H=YV(T.init),q=YV(T.index),(T=dx(T.url,T.sp,T.s))&&mD(M,new EM(T,h,H,q));X=M}Q.length>0&&(Q=Q[0],DZ(D)&&Q.url&&(D.G6=D.G6||IhH(Q.url)));Q=D.isLivePlayback&&!D.uH&&!D.yp&&!D.isPremiere;D.T("html5_live_head_playable")&&(!FY(D)&&Q&&D.SH("missingLiveHeadPlayable",{}),D.UR.f$==="yt"&&(X.yf=!0))}else X=null;D.SH("pafmts",{isManifestFilled:!!X})}if(!X)return!1;$L(D,X);return!0}; ap=function(D){return WX()?!KA(D):zr()?!(!D.I4||!D.T("html5_enable_safari_fairplay")&&FI()):!1}; KA=function(D){return D.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.XY=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next())if(M=M.value,M.cueRangeSetIdentifier){var Q=void 0;D.A2.set(M.cueRangeSetIdentifier,(Q=M.playerCueRanges)!=null?Q:[])}}; By=function(D){return!(!D.S||!D.S.isManifestless)}; ZZ=function(D){return D.t$?D.isLowLatencyLiveStream&&D.S!=null&&CF(D.S)>=5:D.isLowLatencyLiveStream&&D.S!=void 0&&CF(D.S)>=5}; GSm=function(D){return WX()&&KA(D)?!1:ap(D)&&(g.H9(D.UR)?!D.isLivePlayback:D.hlsvp)||!FI()||D.Jn?!0:!1}; kSs=function(D){D.loading=!0;D.ZJ=!1;if(zHd(D))g.F1m(D.videoId).then(function(Q){var h;if((h=D.playerResponse)!=null&&h.streamingData){h=[];Q=g.e(Q);for(var H=Q.next();!H.done;H=Q.next())H=Object.assign({},H.value),H.signatureCipher="",h.push(H);h.length<2&&D.SH("offmlf",{len:h.length});h=xUs(D,h);wJ(D)&&rCH(h,!1);$L(D,h);D.SH("dlr",{})}else D.SH("offsdm",{cotn:D.Rs?D.Rs.cotn:"0",cpn:D.clientPlaybackNonce})}).then(function(){D.PT()}); else{fo(D.FY)||g.P3(new g.ys("DASH MPD Origin invalid: ",D.FY));var X=D.FY,M=g.lx(D.UR.experiments,"dash_manifest_version")||4;X=g.nJ(X,{mpd_version:M});D.isLowLatencyLiveStream&&D.latencyClass!=="NORMAL"||(X=g.nJ(X,{pacing:0}));gP1(X,D.UR.experiments,D.isLivePlayback).then(function(Q){D.H2()||($L(D,Q,!0),SQ("mrc",void 0,D.eH),D.PT())},function(Q){D.H2()||(D.loading=!1,D.publish("dataloaderror",new g.za("manifest.net.retryexhausted",{backend:"manifest", rc:Q.status},1)))}); SQ("mrs",void 0,D.eH)}}; uQn=function(D){var X;return!((X=D.UR.getWebPlayerContextConfig())==null||!X.enableProximaLowLatency)}; UN=function(D){if(!D.isProximaLatencyEligible)return 0;var X=$4();return uQn(D)?2:X===1?1:D.T("html5_enable_proxima")?2:0}; $L=function(D,X,M){M=M===void 0?!1:M;D.uX=void 0;D.S=X;g.p(D,X);X.GF=D.GF;X.zI=D.zI;X.gO=D.gO;X.wL=D.wL;X.xY=D.xY;D.t0&&(X.eH=new vY(D.t0));(D.NE()||g.cy(D))&&D.AC.push("webgl");D.S.isLive||(D.isLivePlayback=!1);var Q=X.sourceUrl.split("/");if(D.t$?Q.indexOf("manifest_duration")!==-1:Q.indexOf("manifest_duration")!=-1)D.X1=Number(Q[Q.indexOf("manifest_duration")+1]);if(X.G||X.isManifestless)X.subscribe("clienttemp",D.SH,D),M?X.subscribe("refresh",D.mW,D):X.subscribe("cuepointsadded",D.IB,D);i5(X)? D.Zc=!0:w_=void 0;D.yp&&(X.U=D.yp,X.isLive=!0,D.isLivePlayback=!0);X.isPremiere=D.isPremiere;X.isLiveHeadPlayable=D.isLiveHeadPlayable}; jzs=function(D,X){var M=X||GSm(D)||D.isExternallyHostedPodcast;if(!D.S||M)return D.SH("skipDash",{dm:!!D.S,air:X,dd:D.Jn,mss:FI(),"3pp":D.isExternallyHostedPodcast}),Iy();wJ(D)&&rCH(D.S,D.isLivePlayback);return vX().then(function(){return mnn(D.yL,g.sN(D),D.UR.D,D.S,D.D,function(Q){return D.publish("ctmp","fmtflt",Q)},D.U0,fA(D)).then(function(Q){D.sZ(Q); D.yL.S=null;/^av/.test(D.clientPlaybackNonce)&&D.p$&&D.SH("av1",D.p$.G)})})}; XNd=function(D,X){if(X&&D.hlsvp)return Iy();if(D.hlsFormats){if(X=VM(D.hlsFormats)){for(var M=[],Q=g.e(X),h=Q.next();!h.done;h=Q.next()){h=h.value;h.url&&(h.url=Pj2(h.url));var H=void 0;((H=D.p$)==null?0:H.S)&&M.push(h.itag)}var t;((t=D.p$)==null?0:t.S)&&M.length>0&&D.SH("hlsfmt",{itags:M.join(".")})}D.QB=tk_(D.UR,X);D.QB&&DQ9(D,D.QB);t=D.clientPlaybackNonce;var q,w,T,L;return Le2(D.UR,D.isAd(),X,(L=(q=D.playerResponse)==null?void 0:(w=q.captions)==null?void 0:(T=w.playerCaptionsRenderer)==null?void 0: T.baseUrl)!=null?L:null,D.bT,t,function(K){return D.publish("ctmp","hlsflt",K)}).then(function(K){for(var a=0,F=[],V=g.e(K),c=V.next();!c.done;c=V.next()){c=c.value; var S=void 0;F.push((S=c.getInfo())==null?void 0:S.itag);var b=S=void 0;((S=c.getInfo())==null?void 0:(b=S.audio)==null?void 0:b.numChannels)>a&&(a=c.getInfo().audio.numChannels)}a>2&&D.SH("hlschl",{mn:a});var n;((n=D.p$)==null?0:n.S)&&D.SH("hlsfmtaf",{itags:F.join(".")});var R;if(D.T("html5_enable_vp9_fairplay")&&((R=D.D)==null?0:MI(R)))for(D.SH("drm",{sbdlfbk:1}),a=g.e(D.w$),F=a.next();!F.done;F=a.next())if(F=F.value,XI(F)){D.D=F;break}So(D,K)})}return Iy()}; Mpi=function(D){if(D.isExternallyHostedPodcast&&D.S1){var X=VM(D.S1);if(!X[0])return Iy();D.fT=X[0];return azi(D.UR,X[0]).then(function(M){So(D,M)})}return D.ZW&&D.vV?Kei(D.UR,D.isAd(),D.ZW).then(function(M){So(D,M)}):Iy()}; hRs=function(D){if(D.isExternallyHostedPodcast)return Iy();var X=VM(D.S1,D.Rl);if(D.hlsvp){var M=yDo(D.hlsvp,D.clientPlaybackNonce,D.bT);X.push(M)}return s$W(D.UR,D.isAd(),X,Q2d(D)).then(function(Q){So(D,Q)})}; So=function(D,X){D.q5=X;D.sZ(new IB(g.be(D.q5,function(M){return M.getInfo()})))}; Q2d=function(D){var X={cpn:D.clientPlaybackNonce,c:D.UR.S.c,cver:D.UR.S.cver};D.rN&&(X.ptk=D.rN,X.oid=D.Ma,X.ptchn=D.Bn,X.pltype=D.T7,D.NU&&(X.m=D.NU));return X}; g.EN=function(D){return ap(D)&&D.I4?(D={},D.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",D):D.G&&D.G.DS||null}; H_2=function(D){var X=yM(D);return X&&X.text?g.q1(X.text):D.paidContentOverlayText}; tpp=function(D){var X=yM(D);return X&&X.durationMs?WH(X.durationMs):D.paidContentOverlayDurationMs}; yM=function(D){var X,M,Q;return D.playerResponse&&D.playerResponse.paidContentOverlay&&D.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Z((X=D.a5)==null?void 0:(M=X.playerOverlays)==null?void 0:(Q=M.playerOverlayRenderer)==null?void 0:Q.playerDisclosure,N6m)||null}; qbi=function(D){if(!D)return null;D=g.e(D);for(var X=D.next();!X.done;X=D.next()){var M=void 0,Q=void 0;if(X=(M=X.value.adPlacementRenderer)==null?void 0:(Q=M.renderer)==null?void 0:Q.videoAdTrackingRenderer)return X}return null}; Py=function(D){var X="";if(D.Qs)return D.Qs;D.isLivePlayback&&(X=D.allowLiveDvr?"dvr":D.isPremiere?"lp":D.yp?"window":"live");D.uH&&(X="post");return X}; g.m8=function(D,X){return typeof D.keywords[X]!=="string"?null:D.keywords[X]}; wNW=function(D){return!!D.wN||!!D.Lv||!!D.I$||!!D.cW||D.P3}; g.nA=function(D){return!!(D.FY||D.S1||D.ZW||D.hlsvp||D.b9())}; ky=function(D){if(D.T("html5_onesie")&&D.errorCode)return!1;var X=g.jb(D.AC,"ypc");D.ypcPreview&&(X=!1);return D.X8()&&!D.loading&&(g.nA(D)||g.jb(D.AC,"heartbeat")||X)}; VM=function(D,X){D=hW(D);var M={};if(X){X=g.e(X.split(","));for(var Q=X.next();!Q.done;Q=X.next())(Q=Q.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(M[Q[1]]={width:Q[2],height:Q[3]})}X=g.e(D);for(Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var h=M[Q.itag];h&&(Q.width=h.width,Q.height=h.height)}return D}; rDs=function(D,X){D.showShareButton=!!X;var M,Q,h=((M=g.Z(X,g.$w))==null?void 0:M.navigationEndpoint)||((Q=g.Z(X,g.$w))==null?void 0:Q.command);h&&(D.l$=!!g.Z(h,T6_))}; mUm=function(D,X){var M=X.raw_embedded_player_response;if(!M){var Q=X.embedded_player_response;Q&&(M=JSON.parse(Q))}M&&(D.HI=M);if(D.HI){D.embeddedPlayerConfig=D.HI.embeddedPlayerConfig||null;if(M=D.HI.videoFlags)M.playableInEmbed&&(D.allowEmbed=!0),M.isPrivate&&(D.isPrivate=!0),M.userDisplayName&&(X.user_display_name=M.userDisplayName),M.userDisplayImage&&(X.user_display_image=M.userDisplayImage);if((M=D.HI.embedPreview)&&M.thumbnailPreviewRenderer){M=M.thumbnailPreviewRenderer;pFd(D,M.controlBgHtml); if(Q=M.defaultThumbnail)D.Jg=cU(Q);D.T("embeds_web_enable_search_button")&&M.searchButton&&(Q=g.Z(M.searchButton,g.$w))&&(D.UB=g.Z(Q.navigationEndpoint,g.bf));(Q=g.Z(M==null?void 0:M.videoDetails,Lx5))&&Ono(D,X,Q);Q=g.Z(M==null?void 0:M.videoDetails,s2m);D.DJ=!!M.addToWatchLaterButton;rDs(D,M.shareButton);if(Q==null?0:Q.musicVideoType)D.musicVideoType=Q.musicVideoType;var h,H,t,q,w;if(Q=g.Z((h=D.getEmbeddedPlayerResponse())==null?void 0:(H=h.embedPreview)==null?void 0:(t=H.thumbnailPreviewRenderer)== null?void 0:(q=t.playButton)==null?void 0:(w=q.buttonRenderer)==null?void 0:w.navigationEndpoint,g.QM))ZyH(D,Q),D.videoId=Q.videoId||D.videoId;M.videoDurationSeconds&&(D.lengthSeconds=WH(M.videoDurationSeconds));M.webPlayerActionsPorting&&Oys(D,M.webPlayerActionsPorting);if(h=g.Z(M==null?void 0:M.playlist,Kx2)){D.WB=!0;H=[];t=Number(h.currentIndex);if(h.contents)for(q=0,w=h.contents.length;q0:D.Vq?!1:D.UR.EU||D.UR.kh||!g.eO(D.UR)?!0:!1:(D.Vq?0:D.bM)&&g.eO(D.UR)?!0:!1;D.T("html5_log_detailpage_autoplay")&&ON(D)==="detailpage"&&D.SH("autoplay_info",{autoplay:D.vB,autonav:D.isAutonav,wasDompaused:D.Vq,result:X});return X}; g.lf=function(D){return D.oauthToken||D.UR.Ey}; Sb_=function(D){if(D.T("html5_stateful_audio_normalization")){var X=1,M=g.lx(D.UR.experiments,"html5_default_ad_gain");M&&D.isAd()&&(X=M);var Q,h;M=(h=(Q=D.U)==null?void 0:Q.audio.U)!=null?h:D.Jc;if(M==null||isNaN(M))D=fCm(D);else{Q=(0,g.fi)();D.u$=1;h=Q-D.UR.uX<=D.maxStatefulTimeThresholdSec*1E3;D.applyStatefulNormalization&&h?D.u$=2:h||(D.UR.QL=Infinity,D.UR.uX=NaN);h=(D.u$===2?g.XT(D.UR.QL,D.minimumLoudnessTargetLkfs,D.loudnessTargetLkfs):D.loudnessTargetLkfs)-M;if(D.u$!==2){var H,t,q,w,T=((H= D.playerResponse)==null?void 0:(t=H.playerConfig)==null?void 0:(q=t.audioConfig)==null?void 0:(w=q.loudnessNormalizationConfig)==null?void 0:w.statelessLoudnessAdjustmentGain)||0;h+=T}h=Math.min(h,0);D.preserveStatefulLoudnessTarget&&(D.UR.QL=M+h,D.UR.uX=Q);D=Math.min(1,Math.pow(10,h/20))||X}}else D=fCm(D);return D}; fCm=function(D){var X=1,M=g.lx(D.UR.experiments,"html5_default_ad_gain");M&&D.isAd()&&(X=M);var Q,h;M=((Q=D.U)==null?void 0:Q.audio.Y)!=null?(h=D.U)==null?void 0:h.audio.Y:D.Ti;isNaN(M)||(D.u$=4);return Math.min(1,Math.pow(10,-M/20))||X}; wJ=function(D){var X=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],M=Tc(D.UR)==="TVHTML5_SIMPLY"&&D.UR.S.ctheme==="MUSIC";!D.hF&&(g.RW(D.UR)||g.Dk(D.UR)||M)&&(X.includes(D.musicVideoType)||D.isExternallyHostedPodcast)&&(D.hF=!0);if(X=g.xH())X=/Starboard\/([0-9]+)/.exec(g.Qm()),X=(X?parseInt(X[1],10):NaN)<10;M=D.UR;M=(Tc(M)==="TVHTML5_CAST"||Tc(M)==="TVHTML5"&&(M.S.cver.startsWith("6.20130725")||M.S.cver.startsWith("6.20130726")))&&D.UR.S.ctheme==="MUSIC";var Q;if(Q=!D.hF)M||(M= D.UR,M=Tc(M)==="TVHTML5"&&M.S.cver.startsWith("7")),Q=M;Q&&!X&&(X=D.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",M=(D.T("cast_prefer_audio_only_for_atv_and_uploads")||D.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&D.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",X||M||D.isExternallyHostedPodcast)&&(D.hF=!0);return D.UR.deviceIsAudioOnly||D.hF&&D.UR.K}; LA=function(D){var X,M,Q;return((X=D.playerResponse)==null?void 0:(M=X.playerConfig)==null?void 0:(Q=M.compositeVideoConfig)==null?void 0:Q.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; Ess=function(D){var X,M,Q,h=(X=D.playerResponse)==null?void 0:(M=X.playerConfig)==null?void 0:(Q=M.compositeVideoConfig)==null?void 0:Q.sourceConfigs,H,t,q;D=(H=D.playerResponse)==null?void 0:(t=H.playerConfig)==null?void 0:(q=t.compositeVideoConfig)==null?void 0:q.defaultActiveSourceVideoId;if(!h||!h.length)return"";D||(D=h[0].videoId||"");h=g.e(h);for(H=h.next();!H.done;H=h.next())if(H=H.value,H.videoId===D&&H.audioTracks)for(H=g.e(H.audioTracks),t=H.next();!t.done;t=H.next())if(t=t.value,t.isDefaultForSource)return t.id|| "";return""}; g.ySn=function(D){return D.yq()&&Er(D)}; Ju=function(D){var X,M,Q;return!!((X=D.playerResponse)==null?0:(M=X.playerConfig)==null?0:(Q=M.mediaCommonConfig)==null?0:Q.splitScreenEligible)}; xL=function(D){var X;return!((X=D.playerResponse)==null||!X.compositePlayabilityStatus)}; P3_=function(D){return isNaN(D)?0:Math.max((Date.now()-D)/1E3-30,0)}; Wy=function(D){return!(!D.PW||!D.UR.K)&&D.b9()}; G3=function(D){return D.cF&&D.enableServerStitchedDai}; mQH=function(D){return D.jr&&!D.t0}; Er=function(D){var X=D.T("html5_enable_sabr_on_drive")&&D.UR.f$==="gd";if(D.yQ)return D.jr&&D.SH("fds",{fds:!0},!0),!1;if(D.UR.f$!=="yt"&&!X)return D.jr&&D.SH("dsvn",{ns:D.UR.f$},!0),!1;if(D.cotn||!D.S||D.S.isOtf&&!D.T("html5_enable_sabr_otf_in_client")||D.Y&&!D.Y.S||D.Un&&!D.T("html5_enable_sabr_csdai"))return!1;if(D.T("html5_use_sabr_requests_for_debugging"))return!0;D.jr&&D.SH("esfw",{usbc:D.jr,hsu:!!D.t0},!0);if(D.jr&&D.t0)return!0;if(D.T("html5_remove_client_sabr_determination"))return!1;var M= !D.S.yq&&!D.aj();X=M&&z3&&D.T("html5_enable_sabr_vod_streaming_xhr");M=M&&!z3&&D.T("html5_enable_sabr_vod_non_streaming_xhr");var Q=kL(D),h=D.T("html5_enable_sabr_drm_vod_streaming_xhr")&&z3&&D.aj()&&!D.S.yq&&(D.drmProduct==="1"?!1:!0);(X=X||M||Q||h)&&!D.t0&&D.SH("sabr",{loc:"m"},!0);return X&&!!D.t0}; kL=function(D){var X;if(!(X=z3&&D.yq()&&D.aj()&&(D.drmProduct==="1"?!1:!0)&&D.T("html5_sabr_live_drm_streaming_xhr"))){X=D.yq()&&!D.aj()&&z3;var M=D.yq()&&D.latencyClass!=="ULTRALOW"&&!D.isLowLatencyLiveStream&&D.T("html5_sabr_live_normal_latency_streaming_xhr"),Q=D.isLowLatencyLiveStream&&D.T("html5_sabr_live_low_latency_streaming_xhr"),h=D.latencyClass==="ULTRALOW"&&D.T("html5_sabr_live_ultra_low_latency_streaming_xhr");X=X&&(M||Q||h)}M=X;X=D.enableServerStitchedDai&&M&&D.T("html5_enable_sabr_ssdai_streaming_xhr"); M=!D.enableServerStitchedDai&&M;Q=D.yq()&&!z3&&D.T("html5_enable_sabr_live_non_streaming_xhr");D=z3&&(D.gp()||Ju(D)&&D.T("html5_enable_sabr_for_lifa_eligible_streams"));return X||M||Q||D}; fA=function(D){var X=D.T("html5_enable_server_format_filter")&&!D.aj(),M=D.T("html5_enable_server_format_filter_for_drm")&&D.aj();return Er(D)&&(X||M)}; zHd=function(D){var X;if(X=!!D.cotn)X=D.videoId,X=!!X&&g.vU(X)===1;return X&&!D.PW}; g.uf=function(D){if(!D.S||!D.G||!D.U)return!1;var X=D.S.S,M=!!X[D.G.id]&&td(2,X[D.G.id].Uw.S);X=!!X[D.U.id]&&td(32,X[D.U.id].Uw.S);return(D.G.itag==="0"||M)&&X}; jo=function(D){return D.J2?["OK","LIVE_STREAM_OFFLINE"].includes(D.J2.status):!0}; aCs=function(D){return(D=D.kh)&&D.showError?D.showError:!1}; DA=function(D,X){return D.T(X)?!0:(D.fflags||"").includes(X+"=true")}; RHd=function(D,X){X.inlineMetricEnabled&&(D.inlineMetricEnabled=!0);X.playback_progress_0s_url&&(D.cW=new NDH(X));if(X=X.video_masthead_ad_quartile_urls)D.Lv=X.quartile_0_url,D.dT=X.quartile_25_url,D.wT=X.quartile_50_url,D.mB=X.quartile_75_url,D.JE=X.quartile_100_url,D.I$=X.quartile_0_urls,D.LP=X.quartile_25_urls,D.xi=X.quartile_50_urls,D.DF=X.quartile_75_urls,D.bQ=X.quartile_100_urls}; uz1=function(D){var X={};D=g.e(D);for(var M=D.next();!M.done;M=D.next()){M=M.value;var Q=M.split("=");Q.length===2?X[Q[0]]=Q[1]:X[M]=!0}return X}; Rks=function(D){if(D){if(QO1(D))return D;D=M2H(D);if(QO1(D,!0))return D}return""}; g.nsp=function(D){return D.captionsLanguagePreference||D.UR.captionsLanguagePreference||g.m8(D,"yt:cc_default_lang")||D.UR.ZJ}; XX=function(D){return!(!D.isLivePlayback||!D.hasProgressBarBoundaries())}; g.hu=function(D){var X;return D.QL||((X=D.suggestions)==null?void 0:X[0])||null}; b_i=function(D,X){return X!=null?HJ(D.J,X):D.J?D.J:D.UR.preferGapless&&D.UR.supportsGaplessShorts()}; g.MD=function(D){var X,M;return!!((X=D.embeddedPlayerConfig)==null?0:(M=X.embeddedPlayerFlags)==null?0:M.enableMusicUx)}; eRs=function(D){return D.J||D.T("web_player_media_session_infinity")&&D.isLivePlayback}; QV=function(D){return D.UR.U&&D.isPrivate}; RRR=function(D){var X,M;return!!((X=D.playerResponse)==null?0:(M=X.playerConfig)==null?0:M.granularVariableSpeedConfig)}; g.tb=function(D){var X=D.W(),M=g.HB(X),Q=X.wj;g.r_(X)&&(Q&&(M.thirdParty=Object.assign({},M.thirdParty,{embedUrl:Q})),VVn(M,D));if(Q=D.f$)M.clickTracking={clickTrackingParams:Q};else if(g.r_(D.W())&&g.zZ("EVENT_ID"))M.clickTracking={clickTrackingParams:g.zZ("EVENT_ID")};else if(X.T("html5_log_missing_itct")){var h;Q=new g.ys("Missing ITCT in InnerTubeContext",{isAd:D.isAd(),mkF:(h=X.getWebPlayerContextConfig())==null?void 0:h.contextId});g.ET(Q)}h=M.client||{};Q="EMBED";var H=ON(D);H==="leanback"? Q="WATCH":X.T("gvi_channel_client_screen")&&H==="profilepage"?Q="CHANNEL":D.xp?Q="LIVE_MONITOR":H==="detailpage"?Q="WATCH_FULL_SCREEN":H==="adunit"?Q="ADUNIT":H==="sponsorshipsoffer"&&(Q="UNKNOWN");h.clientScreen=Q;if(Q=D.kidsAppInfo)h.kidsAppInfo=JSON.parse(Q);(H=D.yw)&&!Q&&(h.kidsAppInfo={contentSettings:{ageUpMode:ICn[H]}});if(Q=D.Y7)h.unpluggedAppInfo={enableFilterMode:!0};(H=D.unpluggedFilterModeType)&&!Q&&(h.unpluggedAppInfo={filterModeType:gsH[H]});if(Q=D.h5)h.unpluggedLocationInfo=Q;M.client= h;h=M.request||{};D.Ky&&(h.isPrefetch=!0);if(Q=D.mdxEnvironment)h.mdxEnvironment=Q;if(Q=D.mdxControlMode)h.mdxControlMode=vss[Q];M.request=h;h=M.user||{};if(Q=D.R5)h.credentialTransferTokens=[{token:Q,scope:"VIDEO"}];if(Q=D.o5)h.delegatePurchases={oauthToken:Q},h.kidsParent={oauthToken:Q};var t;Q=(t=X.getWebPlayerContextConfig())==null?void 0:t.userContentRating;X.Q2().S.xl(dQs)&&Q&&(h.serializedUserContentRating=Q);M.user=h;if(X=D.contextParams)M.activePlayers=[{playerContextParams:X}];if(D=D.clientScreenNonce)M.clientScreenNonce= D;return M}; g.HB=function(D){var X=g.Jq(),M=X.client||{};if(D.forcedExperiments){var Q=D.forcedExperiments.split(","),h=[];Q=g.e(Q);for(var H=Q.next();!H.done;H=Q.next())h.push(Number(H.value));M.experimentIds=h}if(h=D.homeGroupInfo)M.homeGroupInfo=JSON.parse(h);if(h=D.getPlayerType())M.playerType=h;if(h=D.S.ctheme)M.theme=h;if(h=D.livingRoomAppMode)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomAppMode:h});h=D.deviceYear;D.T("html5_propagate_device_year")&&h&&(M.tvAppInfo=Object.assign({},M.tvAppInfo,{deviceYear:h})); if(h=D.livingRoomPoTokenId)M.tvAppInfo=Object.assign({},M.tvAppInfo,{livingRoomPoTokenId:h});X.client=M;h=X.user||{};D.enableSafetyMode&&(h=Object.assign({},h,{enableSafetyMode:!0}));var t;((t=M.tvAppInfo)==null?0:t.usePageidAsHeader)||!D.pageId||(h=Object.assign({},h,{onBehalfOfUser:D.pageId}));X.user=h;return X}; pNo=function(D,X,M){var Q=D.videoId,h=g.tb(D),H=D.W(),t={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Vc()),referer:document.location.toString(),signatureTimestamp:20401},q=g.O0();D.isAutonav&&(t.autonav=!0);q.xl(141)&&(t.autonavState=q.xl(140)?"STATE_OFF":"STATE_ON");t.autoCaptionsDefaultOn=q.xl(66);cSW(D)&&(t.autoplay=!0);H.K&&D.cycToken&&(t.cycToken=D.cycToken);H.enablePrivacyFilter&&(t.enablePrivacyFilter=!0);D.isFling&&(t.fling=!0);var w=D.forceAdsUrl;if(w){q={};var T=[];w=w.split(","); w=g.e(w);for(var L=w.next();!L.done;L=w.next()){L=L.value;var K=L.split("|");K.length!==3||L.includes("=")||(K[0]="breaktype="+K[0],K[1]="offset="+K[1],K[2]="url="+K[2]);L={adtype:"video_ad"};K=g.e(K);for(var a=K.next();!a.done;a=K.next()){var F=g.e(a.value.split("="));a=F.next().value;F=nWW(F);L[a]=F.join("=")}K=L.url;a=L.presetad;F=L.viralresponseurl;var V=Number(L.campaignid);if(L.adtype==="in_display_ad")K&&(q.url=K),a&&(q.presetAd=a),F&&(q.viralAdResponseUrl=F),V&&(q.viralCampaignId=String(V)); else if(L.adtype==="video_ad"){var c={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(L.offset)||0)}};if(L=rSn[L.breaktype])c.breakType=L;K&&(c.url=K);a&&(c.presetAd=a);F&&(c.viralAdResponseUrl=F);V&&(c.viralCampaignId=String(V));T.push(c)}}t.forceAdParameters={videoAds:T,inDisplayAd:q}}D.isInlinePlaybackNoAd&&(t.isInlinePlaybackNoAd=!0);D.isLivingRoomDeeplink&&(t.isLivingRoomDeeplink=!0);q=D.nw;if(q!=null){q={startWalltime:String(q)};if(T=D.X1)q.manifestDuration=String(T||14400);t.liveContext= q}if(D.mutedAutoplay){t.mutedAutoplay=!0;q=H.getWebPlayerContextConfig();var S,b;(q==null?0:(S=q.embedsHostFlags)==null?0:S.allowMutedAutoplayDurationMode)&&(q==null?0:(b=q.embedsHostFlags)==null?0:b.allowMutedAutoplayDurationMode.includes(i_p[D.mutedAutoplayDurationMode]))&&(t.mutedAutoplayDurationMode=i_p[D.mutedAutoplayDurationMode])}if(D.Vq?0:D.bM)t.splay=!0;S=D.vnd;S===5&&(t.vnd=S);S={};if(b=D.isMdxPlayback)S.triggeredByMdx=b;if(b=D.KA)S.skippableAdsSupported=b.split(",").includes("ska");if(T= D.Az){b=D.xB;q=[];T=g.e($np(T));for(w=T.next();!w.done;w=T.next()){w=w.value;L=w.platform;w={applicationState:w.qD?"INACTIVE":"ACTIVE",clientFormFactor:osd[L]||"UNKNOWN_FORM_FACTOR",clientName:Zxs[w.p_]||"UNKNOWN_INTERFACE",clientVersion:w.deviceVersion||"",platform:C3R[L]||"UNKNOWN_PLATFORM"};L={};if(b){K=void 0;try{K=JSON.parse(b)}catch(R){g.P3(R)}K&&(L={params:[{key:"ms",value:K.ms}]},K.advertising_id&&(L.advertisingId=K.advertising_id),K.limit_ad_tracking!==void 0&&K.limit_ad_tracking!==null&& (L.limitAdTracking=K.limit_ad_tracking),w.osName=K.os_name,w.userAgent=K.user_agent,w.windowHeightPoints=K.window_height_points,w.windowWidthPoints=K.window_width_points)}q.push({adSignalsInfo:L,remoteClient:w})}S.remoteContexts=q}b=D.sourceContainerPlaylistId;q=D.serializedMdxMetadata;if(b||q)T={},b&&(T.mdxPlaybackContainerInfo={sourceContainerPlaylistId:b}),q&&(T.serializedMdxMetadata=q),S.mdxPlaybackSourceContext=T;t.mdxContext=S;S=X.width;S>0&&(t.playerWidthPixels=Math.round(S));if(X=X.height)t.playerHeightPixels= Math.round(X);M!==0&&(t.vis=M);if(M=H.widgetReferrer)t.widgetReferrer=M.substring(0,128);g.eO(H)&&t&&(t.ancestorOrigins=H.ancestorOrigins);D.defaultActiveSourceVideoId&&(t.compositeVideoContext={defaultActiveSourceVideoId:D.defaultActiveSourceVideoId});if(H=H.getWebPlayerContextConfig())t.encryptedHostFlags=H.encryptedHostFlags;Q={videoId:Q,context:h,playbackContext:{contentPlaybackContext:t}};if(D.Ey){var n;Q.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(n=D.Ey)==null?void 0:n.reloadPlaybackParams}}D.contentCheckOk&& (Q.contentCheckOk=!0);if(n=D.clientPlaybackNonce)Q.cpn=n;if(n=D.playerParams)Q.params=n;if(n=D.playlistId)Q.playlistId=n;D.racyCheckOk&&(Q.racyCheckOk=!0);n=D.W();h=n.embedConfig;D.iA&&n.T("embeds_enable_per_video_embed_config")?Q.serializedThirdPartyEmbedConfig=D.iA:h&&(Q.serializedThirdPartyEmbedConfig=h);Q.captionParams={};h=g.O0().xl(65);D.deviceCaptionsOn!=null?Q.captionParams.deviceCaptionsOn=D.deviceCaptionsOn:g.uS(n)&&(Q.captionParams.deviceCaptionsOn=h!=null?!h:!1);D.H3&&(Q.captionParams.deviceCaptionsLangPref= D.H3);D.hv.length?Q.captionParams.viewerSelectedCaptionLangs=D.hv:g.uS(n)&&(h=g.U7(),h==null?0:h.length)&&(Q.captionParams.viewerSelectedCaptionLangs=h);h=D.fetchType==="onesie"&&D.T("html5_onesie_attach_po_token");t=D.fetchType!=="onesie"&&D.T("html5_non_onesie_attach_po_token");if(h||t)h=D.W(),h.ZW&&(Q.serviceIntegrityDimensions={},Q.serviceIntegrityDimensions.poToken=h.ZW);n.T("fetch_att_independently")&&(Q.attestationRequest={omitBotguardData:!0});Q.playbackContext||(Q.playbackContext={});Q.playbackContext.devicePlaybackCapabilities= O_R(D);Q.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&D.SH("noVp9",{});return Q}; O_R=function(D){var X=!(D==null?0:D.dh())&&(D==null?void 0:D.yq())&&Qd(),M;if(!(M=D==null)){M=g.sN(D);D=D.W().D;var Q=ws("243");M=!(Q&&r8(M,Q,D,!0)===!0)}return{supportsVp9Encoding:!(M||X),supportXhr:z3}}; YbW=function(D,X){var M,Q,h;return g.r(function(H){if(H.S==1)return M={context:g.HB(D.W()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:D.videoId,cpn:D.clientPlaybackNonce}}]},Q=g.Gq(AS1),g.I(H,g.RQ(X,M,Q),2);h=H.G;return H.return(h)})}; lC2=function(D,X,M){var Q=g.lx(X.experiments,"bg_vm_reinit_threshold");(!Kl||(0,g.fi)()-Kl>Q)&&YbW(D,M).then(function(h){h&&(h=h.botguardData)&&g.FL(h,X)},function(h){D.H2()||(h=uZ(h),D.SH("attf",h.details))})}; ND=function(D,X){g.O.call(this);this.app=D;this.state=X}; wb=function(D,X,M){D.state.S.hasOwnProperty(X)||qD(D,X,M);D.state.J[X]=function(){return M.apply(D,g.BZ.apply(0,arguments))}; D.state.X.add(X)}; TT=function(D,X,M){D.state.S.hasOwnProperty(X)||qD(D,X,M);D.app.W().K&&(D.state.K[X]=function(){return M.apply(D,g.BZ.apply(0,arguments))},D.state.X.add(X))}; qD=function(D,X,M){D.state.S[X]=function(){return M.apply(D,g.BZ.apply(0,arguments))}}; g.LS=function(D,X,M){return D.state.S[X].apply(D.state.S,g.xW(M))}; sI=function(){g.E5.call(this);this.D=new Map}; KS=function(){g.O.apply(this,arguments);this.element=null;this.X=new Set;this.J={};this.K={};this.S={};this.eH=new Set;this.Y=new sI;this.G=new sI;this.U=new sI;this.D=new sI}; JSR=function(D,X,M){typeof D==="string"&&(D={mediaContentUrl:D,startSeconds:X,suggestedQuality:M});a:{if((X=D.mediaContentUrl)&&(X=/\/([ve]|embed)\/([^#?]+)/.exec(X))&&X[2]){X=X[2];break a}X=null}D.videoId=X;return a8(D)}; a8=function(D,X,M){if(typeof D==="string")return{videoId:D,startSeconds:X,suggestedQuality:M};X={};M=g.e(xQm);for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,D[Q]&&(X[Q]=D[Q]);if(D=D.embedConfig||D.embed_config)if(typeof D==="string")X.embed_config=D;else if(g.gK(D))try{var h=JSON.stringify(D);X.embed_config=h}catch(H){console.error("Invalid embedConfig JSON",H)}return X}; Wxn=function(D,X,M,Q){if(g.gK(D)&&!Array.isArray(D)){X="playlist list listType index startSeconds suggestedQuality".split(" ");M={};for(Q=0;Q32&&Q.push("hfr");X.isHdr()&&Q.push("hdr");X.primaries==="bt2020"&&Q.push("wcg");M.video_quality_features=Q}}if(D=D.getPlaylistId())M.list=D;return M}; ZA=function(){FX.apply(this,arguments)}; UI=function(D,X){var M={};if(D.app.W().R5){D=g.e(uRR);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,X.hasOwnProperty(Q)&&(M[Q]=X[Q]);if(X=M.qoe_cat)D="",typeof X==="string"&&X.length>0&&(D=X.split(",").filter(function(h){return j2s.includes(h)}).join(",")),M.qoe_cat=D; DS5(M)}else for(D=g.e(Xt2),Q=D.next();!Q.done;Q=D.next())Q=Q.value,X.hasOwnProperty(Q)&&(M[Q]=X[Q]);return M}; DS5=function(D){var X=D.raw_player_response;if(!X){var M=D.player_response;M&&(X=JSON.parse(M))}delete D.player_response;delete D.raw_player_response;if(X){D.raw_player_response={streamingData:X.streamingData,playerConfig:X.playerConfig};var Q;if((Q=X.playbackTracking)==null?0:Q.qoeUrl)D.raw_player_response=Object.assign({},D.raw_player_response,{playbackTracking:{qoeUrl:X.playbackTracking.qoeUrl}});X.videoDetails&&(X.videoDetails.videoId||X.videoDetails.lengthSeconds)&&(M={},X.videoDetails.videoId&& (M.videoId=X.videoDetails.videoId),X.videoDetails.lengthSeconds&&(M.lengthSeconds=X.videoDetails.lengthSeconds),D.raw_player_response=Object.assign({},D.raw_player_response,{videoDetails:M}))}}; QBR=function(D){var X=X===void 0?5:X;return D?M$s[D]||X:X}; g.cB=function(){ZA.apply(this,arguments)}; hQ1=function(D){qD(D,"getInternalApiInterface",D.getInternalApiInterface);qD(D,"addEventListener",D.rk);qD(D,"removeEventListener",D.dw$);qD(D,"cueVideoByPlayerVars",D.eZ);qD(D,"loadVideoByPlayerVars",D.j55);qD(D,"preloadVideoByPlayerVars",D.bFf);qD(D,"getAdState",D.getAdState);qD(D,"sendAbandonmentPing",D.sendAbandonmentPing);qD(D,"setLoopRange",D.setLoopRange);qD(D,"getLoopRange",D.getLoopRange);qD(D,"setAutonavState",D.setAutonavState);qD(D,"seekTo",D.VAz);qD(D,"seekBy",D.qWH);qD(D,"seekToLiveHead", D.seekToLiveHead);qD(D,"requestSeekToWallTimeSeconds",D.requestSeekToWallTimeSeconds);qD(D,"seekToStreamTime",D.seekToStreamTime);qD(D,"prefetchKeyPlay",D.prefetchKeyPlay);qD(D,"startSeekCsiAction",D.startSeekCsiAction);qD(D,"getStreamTimeOffset",D.getStreamTimeOffset);qD(D,"getVideoData",D.Ol);qD(D,"setInlinePreview",D.setInlinePreview);qD(D,"getAppState",D.getAppState);qD(D,"updateLastActiveTime",D.updateLastActiveTime);qD(D,"setBlackout",D.setBlackout);qD(D,"setUserEngagement",D.setUserEngagement); qD(D,"updateSubtitlesUserSettings",D.updateSubtitlesUserSettings);qD(D,"getPresentingPlayerType",D.bS);qD(D,"canPlayType",D.canPlayType);qD(D,"updatePlaylist",D.updatePlaylist);qD(D,"updateVideoData",D.updateVideoData);qD(D,"updateEnvironmentData",D.updateEnvironmentData);qD(D,"sendVideoStatsEngageEvent",D.fc$);qD(D,"productsInVideoVisibilityUpdated",D.productsInVideoVisibilityUpdated);qD(D,"setSafetyMode",D.setSafetyMode);qD(D,"isAtLiveHead",function(X){return D.isAtLiveHead(void 0,X)}); qD(D,"getVideoAspectRatio",D.getVideoAspectRatio);qD(D,"getPreferredQuality",D.getPreferredQuality);qD(D,"getPlaybackQualityLabel",D.getPlaybackQualityLabel);qD(D,"setPlaybackQualityRange",D.bYC);qD(D,"onAdUxClicked",D.onAdUxClicked);qD(D,"getFeedbackProductData",D.getFeedbackProductData);qD(D,"getStoryboardFrame",D.getStoryboardFrame);qD(D,"getStoryboardFrameIndex",D.getStoryboardFrameIndex);qD(D,"getStoryboardLevel",D.getStoryboardLevel);qD(D,"getNumberOfStoryboardLevels",D.getNumberOfStoryboardLevels); qD(D,"getCaptionWindowContainerId",D.getCaptionWindowContainerId);qD(D,"getAvailableQualityLabels",D.getAvailableQualityLabels);qD(D,"addCueRange",D.addCueRange);qD(D,"addUtcCueRange",D.addUtcCueRange);qD(D,"showAirplayPicker",D.showAirplayPicker);qD(D,"dispatchReduxAction",D.dispatchReduxAction);qD(D,"getPlayerResponse",D.Qt);qD(D,"getWatchNextResponse",D.AT);qD(D,"getHeartbeatResponse",D.Ul);qD(D,"getCurrentTime",D.GE);qD(D,"getDuration",D.Wg);qD(D,"getPlayerState",D.getPlayerState);qD(D,"getPlayerStateObject", D.gF);qD(D,"getVideoLoadedFraction",D.getVideoLoadedFraction);qD(D,"getProgressState",D.getProgressState);qD(D,"getVolume",D.getVolume);qD(D,"setVolume",D.Bo);qD(D,"isMuted",D.isMuted);qD(D,"mute",D.dR);qD(D,"unMute",D.FU);qD(D,"loadModule",D.loadModule);qD(D,"unloadModule",D.unloadModule);qD(D,"getOption",D.aC);qD(D,"getOptions",D.getOptions);qD(D,"setOption",D.setOption);qD(D,"loadVideoById",D.w0);qD(D,"loadVideoByUrl",D.En);qD(D,"playVideo",D.Vc);qD(D,"loadPlaylist",D.loadPlaylist);qD(D,"nextVideo", D.nextVideo);qD(D,"previousVideo",D.previousVideo);qD(D,"playVideoAt",D.playVideoAt);qD(D,"getDebugText",D.getDebugText);qD(D,"getWebPlayerContextConfig",D.getWebPlayerContextConfig);qD(D,"notifyShortsAdSwipeEvent",D.notifyShortsAdSwipeEvent);qD(D,"getVideoContentRect",D.getVideoContentRect);qD(D,"setSqueezeback",D.setSqueezeback);qD(D,"toggleSubtitlesOn",D.toggleSubtitlesOn);qD(D,"isSubtitlesOn",D.isSubtitlesOn);qD(D,"getAudioTrack",D.V9);qD(D,"setAudioTrack",D.RRC);qD(D,"getAvailableAudioTracks", D.eq);qD(D,"reportPlaybackIssue",D.reportPlaybackIssue);qD(D,"setAutonav",D.setAutonav);qD(D,"isNotServable",D.isNotServable);qD(D,"channelSubscribed",D.channelSubscribed);qD(D,"channelUnsubscribed",D.channelUnsubscribed);qD(D,"togglePictureInPicture",D.togglePictureInPicture);qD(D,"supportsGaplessAudio",D.supportsGaplessAudio);qD(D,"supportsGaplessShorts",D.supportsGaplessShorts);qD(D,"enqueueVideoByPlayerVars",function(X){return void D.enqueueVideoByPlayerVars(X)}); qD(D,"clearQueue",D.clearQueue);qD(D,"getMaxPlaybackQuality",D.getMaxPlaybackQuality);qD(D,"getUserPlaybackQualityPreference",D.getUserPlaybackQualityPreference);qD(D,"getSubtitlesUserSettings",D.getSubtitlesUserSettings);qD(D,"resetSubtitlesUserSettings",D.resetSubtitlesUserSettings);qD(D,"setMinimized",D.setMinimized);qD(D,"setOverlayVisibility",D.setOverlayVisibility);qD(D,"confirmYpcRental",D.confirmYpcRental);qD(D,"queueNextVideo",D.queueNextVideo);qD(D,"handleExternalCall",D.handleExternalCall); qD(D,"logApiCall",D.logApiCall);qD(D,"isExternalMethodAvailable",D.isExternalMethodAvailable);qD(D,"setScreenLayer",D.setScreenLayer);qD(D,"getCurrentPlaylistSequence",D.getCurrentPlaylistSequence);qD(D,"getPlaylistSequenceForTime",D.getPlaylistSequenceForTime);qD(D,"shouldSendVisibilityState",D.shouldSendVisibilityState);qD(D,"syncVolume",D.syncVolume);qD(D,"highlightSettingsMenuItem",D.highlightSettingsMenuItem);qD(D,"openSettingsMenuItem",D.openSettingsMenuItem);qD(D,"getEmbeddedPlayerResponse", D.getEmbeddedPlayerResponse);qD(D,"getVisibilityState",D.getVisibilityState);qD(D,"isMutedByMutedAutoplay",D.isMutedByMutedAutoplay);qD(D,"isMutedByEmbedsMutedAutoplay",D.isMutedByEmbedsMutedAutoplay);qD(D,"setGlobalCrop",D.setGlobalCrop);qD(D,"setInternalSize",D.setInternalSize);qD(D,"setFauxFullscreen",D.setFauxFullscreen);qD(D,"setAppFullscreen",D.setAppFullscreen)}; EI=function(D,X,M){D=g.fS(D.tR(),X);return M?(M.addOnDisposeCallback(D),null):D}; g.PB=function(D,X,M){return D.app.W().T6?X:g.W9("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:X,SHORTCUT:M})}; Hli=function(D){D.tR().element.setAttribute("aria-live","polite")}; g.mU=function(D,X){g.cB.call(this,D,X);hQ1(this);TT(this,"addEventListener",this.gk);TT(this,"removeEventListener",this.Ahf);TT(this,"cueVideoByPlayerVars",this.fX);TT(this,"loadVideoByPlayerVars",this.ztj);TT(this,"preloadVideoByPlayerVars",this.LUC);TT(this,"loadVideoById",this.w0);TT(this,"loadVideoByUrl",this.En);TT(this,"playVideo",this.Vc);TT(this,"loadPlaylist",this.loadPlaylist);TT(this,"nextVideo",this.nextVideo);TT(this,"previousVideo",this.previousVideo);TT(this,"playVideoAt",this.playVideoAt); TT(this,"getVideoData",this.Qi);TT(this,"seekBy",this.KU5);TT(this,"seekTo",this.zRy);TT(this,"showControls",this.showControls);TT(this,"hideControls",this.hideControls);TT(this,"cancelPlayback",this.cancelPlayback);TT(this,"getProgressState",this.getProgressState);TT(this,"isInline",this.isInline);TT(this,"setInline",this.setInline);TT(this,"setLoopVideo",this.setLoopVideo);TT(this,"getLoopVideo",this.getLoopVideo);TT(this,"getVideoContentRect",this.getVideoContentRect);TT(this,"getVideoStats",this.dF); TT(this,"getCurrentTime",this.aF);TT(this,"getDuration",this.Wg);TT(this,"getPlayerState",this.Hq);TT(this,"getVideoLoadedFraction",this.CO);TT(this,"mute",this.dR);TT(this,"unMute",this.FU);TT(this,"setVolume",this.Bo);TT(this,"loadModule",this.loadModule);TT(this,"unloadModule",this.unloadModule);TT(this,"getOption",this.aC);TT(this,"getOptions",this.getOptions);TT(this,"setOption",this.setOption);TT(this,"addCueRange",this.addCueRange);TT(this,"getDebugText",this.getDebugText);TT(this,"getStoryboardFormat", this.getStoryboardFormat);TT(this,"toggleFullscreen",this.toggleFullscreen);TT(this,"isFullscreen",this.isFullscreen);TT(this,"getPlayerSize",this.getPlayerSize);TT(this,"toggleSubtitles",this.toggleSubtitles);TT(this,"setCenterCrop",this.setCenterCrop);TT(this,"setFauxFullscreen",this.setFauxFullscreen);TT(this,"setSizeStyle",this.setSizeStyle);TT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);TT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);zRW(this)}; g.nS=function(D){D=D.Qq();var X=D.YC.get("endscreen");return X&&X.xe()?!0:D.Z3()}; g.bR=function(D,X){D.getPresentingPlayerType()===3?D.publish("mdxautoplaycancel"):D.ER("onAutonavCancelled",X)}; g.R8=function(D){var X=ed(D.Qq());return D.app.sA&&!D.isFullscreen()||D.getPresentingPlayerType()===3&&X&&X.hasNext()&&X.hasPrevious()||!!D.getPlaylist()}; g.I8=function(D,X){g.LS(D,"addEmbedsConversionTrackingParams",[X])}; g.vB=function(D){return(D=g.gb(D.Qq()))?D.Tz():{}}; g.t$p=function(D){D=(D=D.getVideoData())&&D.G;return!!D&&!(!D.audio||!D.video)&&D.mimeType!=="application/x-mpegURL"}; g.db=function(D,X,M){D=D.lj().element;var Q=Kf(D.children,function(h){h=Number(h.getAttribute("data-layer"));return M-h||1}); Q<0&&(Q=-(Q+1));Iu(D,X,Q);X.setAttribute("data-layer",String(M))}; g.rb=function(D){var X=D.W();if(!X.G6)return!1;var M=D.getVideoData();if(!M||D.getPresentingPlayerType()===3)return!1;var Q=(!M.isLiveDefaultBroadcast||X.T("allow_poltergust_autoplay"))&&!XX(M);Q=M.isLivePlayback&&(!X.T("allow_live_autoplay")||!Q);var h=M.isLivePlayback&&X.T("allow_live_autoplay_on_mweb");D=D.getPlaylist();D=!!D&&D.hasNext();var H=M.a5&&M.a5.playerOverlays||null;H=!!(H&&H.playerOverlayRenderer&&H.playerOverlayRenderer.autoplay);H=M.KK&&H;return!M.ypcPreview&&(!Q||h)&&!g.jb(M.AC,"ypc")&& !D&&(!g.eO(X)||H)}; N8s=function(D,X){D=D.app.z_().J.zz();D=g.e(D);for(var M=D.next();!M.done;M=D.next()){M=M.value;var Q=M.getAvailableAudioTracks(),h=null;Q=g.e(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.getLanguageInfo().getId()===X){h=H;break}h&&M.Ko(h,!0)}}; iR=function(){oH.apply(this,arguments);this.requestHeaders={}}; CS=function(){o8||(o8=new iR);return o8}; OI=function(D,X){X?D.requestHeaders.Authorization="Bearer "+X:delete D.requestHeaders.Authorization}; q7p=function(D){this.experiments=D;this.S=2048;this.U=0;this.f$=(this.J=this.T("html5_streaming_resilience"))?.5:.25;var X=X===void 0?0:X;this.Y=g.lx(this.experiments,"html5_media_time_weight_prop")||X;this.eH=(this.D=this.experiments.Z4("html5_consider_end_stall"))&&z3;this.G=this.experiments.Z4("html5_measure_max_progress_handling");this.K=this.T("html5_treat_requests_pre_elbow_as_metadata");this.X=this.T("html5_media_time_weight")||!!this.Y;this.T("html5_sabr_live_audio_early_return_fix")&&z3&& (this.S=65536)}; g.pS=function(D){g.O.call(this);var X=this;this.zs=D;this.py={WO:function(){return X.zs}}}; g.Ab=function(D,X,M,Q){Q=Q===void 0?!1:Q;g.Hr.call(this,X);var h=this;this.B=D;this.f$=Q;this.D=new g.HE(this);this.fade=new g.kn(this,M,!0,void 0,void 0,function(){h.IK()}); g.p(this,this.D);g.p(this,this.fade)}; Ya=function(D){var X=D.B.getRootNode();return D.B.T("web_watch_pip")||D.B.T("web_shorts_pip")?au(X):document}; wtp=function(D){D.sourceElement&&(document.activeElement&&g.vD(D.element,document.activeElement)&&D.sourceElement.focus(),D.sourceElement.setAttribute("aria-expanded","false"),D.sourceElement=void 0);g.RH(D.D);D.X=void 0}; lR=function(D,X,M){D.Lk()?D.Pb():D.vC(X,M)}; Jb=function(D,X,M,Q){Q=new g.Y({L:"div",gC:["ytp-linked-account-popup-button"],Gs:Q,Z:{role:"button",tabindex:"0"}});X=new g.Y({L:"div",C:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{L:"div",C:"ytp-linked-account-popup-title",Gs:X},{L:"div",C:"ytp-linked-account-popup-description",Gs:M},{L:"div",C:"ytp-linked-account-popup-buttons",V:[Q]}]});g.Ab.call(this,D,{L:"div",C:"ytp-linked-account-popup-container",V:[X]},100);var h=this;this.dialog=X;g.p(this,this.dialog); Q.listen("click",function(){h.Pb()}); g.p(this,Q);g.db(this.B,this.element,4);this.hide()}; g.WB=function(D,X,M,Q){g.Hr.call(this,D);this.priority=X;M&&g.xa(this,M);Q&&this.setContent(Q)}; g.GT=function(D,X,M,Q){D=D===void 0?{}:D;X=X===void 0?[]:X;M=M===void 0?!1:M;Q=Q===void 0?!1:Q;X.push("ytp-menuitem");var h=D;"role"in h||(h.role="menuitem");M||(h=D,"tabindex"in h||(h.tabindex="0"));D={L:M?"a":"div",gC:X,Z:D,V:[{L:"div",C:"ytp-menuitem-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-menuitem-label",Gs:"{{label}}"},{L:"div",C:"ytp-menuitem-content",Gs:"{{content}}"}]};Q&&D.V.push({L:"div",C:"ytp-menuitem-secondary-icon",Gs:"{{secondaryIcon}}"});return D}; g.xa=function(D,X){D.updateValue("label",X)}; zT=function(D){g.WB.call(this,g.GT({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var X=this;this.B=D;this.G=this.S=!1;this.Vf=D.BI();D.createServerVe(this.element,this,!0);this.N(this.B,"settingsMenuVisibilityChanged",function(M){X.YR(M)}); this.N(this.B,"videodatachange",this.U);this.listen("click",this.onClick);this.U()}; ka=function(D){return D?g.q1(D):""}; uR=function(D){g.O.call(this);this.api=D}; jd=function(D){uR.call(this,D);var X=this;qD(D,"setAccountLinkState",function(M){X.setAccountLinkState(M)}); qD(D,"updateAccountLinkingConfig",function(M){X.updateAccountLinkingConfig(M)}); D.addEventListener("videodatachange",function(M,Q){X.onVideoDataChange(Q)}); D.addEventListener("settingsMenuInitialized",function(){X.menuItem=new zT(X.api);g.p(X,X.menuItem)})}; D9=function(D){uR.call(this,D);var X=this;this.S=null;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"applicationvideodatachange",function(){X.kT()})}; T8n=function(D){this.api=D;this.S={}}; XW=function(D,X,M,Q){X in D.S||(M=new g.v9(M,Q,{id:X,priority:2,namespace:"appad"}),D.api.lH([M],1),D.S[X]=M)}; MW=function(D){uR.call(this,D);var X=this;this.events=new g.HE(this);g.p(this,this.events);this.S=new T8n(this.api);this.events.N(this.api,"legacyadtrackingpingreset",function(){X.S.S={}}); this.events.N(this.api,"legacyadtrackingpingchange",function(M){var Q=X.S;XW(Q,"part2viewed",1,0x8000000000000);XW(Q,"engagedview",Math.max(1,M.Lz*1E3),0x8000000000000);if(!M.isLivePlayback){var h=M.lengthSeconds*1E3;qp(M)&&Q.api.T("html5_shorts_gapless_ads_duration_fix")&&(h=Q.api.getProgressState().seekableEnd*1E3-M.LM);XW(Q,"videoplaytime25",h*.25,h);XW(Q,"videoplaytime50",h*.5,h);XW(Q,"videoplaytime75",h*.75,h);XW(Q,"videoplaytime100",h,0x8000000000000);XW(Q,"conversionview",h,0x8000000000000); XW(Q,"videoplaybackstart",1,h);XW(Q,"videoplayback2s",2E3,h);XW(Q,"videoplayback10s",1E4,h)}}); this.events.N(this.api,g.rI("appad"),this.G);this.events.N(this.api,g.iB("appad"),this.G)}; aQH=function(D,X,M){if(!(M in X))return!1;X=X[M];Array.isArray(X)||(X=[X]);X=g.e(X);for(M=X.next();!M.done;M=X.next()){M=M.value;var Q={CPN:D.api.getVideoData().clientPlaybackNonce};M=g.bh(M,Q);Q=void 0;Q=Q===void 0?!1:Q;(Q=bB(eV(M,Lm9),M,Q,"Active View 3rd Party Integration URL"))||(Q=void 0,Q=Q===void 0?!1:Q,Q=bB(eV(M,sB1),M,Q,"Google/YouTube Brand Lift URL"));Q||(Q=void 0,Q=Q===void 0?!1:Q,Q=bB(eV(M,Km_),M,Q,"Nielsen OCR URL"));g.gf(M,void 0,Q)}return!0}; QQ=function(D,X){FmH(D,X).then(function(M){g.gf(X,void 0,void 0,M)})}; h1=function(D,X){X.forEach(function(M){QQ(D,M)})}; FmH=function(D,X){return g.Nn(D.api.W())&&Tr(X)&&wc(X)?g.Ni(D.api.W(),g.lf(D.api.getVideoData())).then(function(M){var Q;M&&(Q={Authorization:"Bearer "+M});return Q},void 0):vX()}; V$s=function(D){uR.call(this,D);this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"videoready",function(X){if(D.getPresentingPlayerType()===1){var M,Q,h={playerDebugData:{pmlSignal:!!((M=X.getPlayerResponse())==null?0:(Q=M.adPlacements)==null?0:Q.some(function(H){var t;return H==null?void 0:(t=H.adPlacementRenderer)==null?void 0:t.renderer})), contentCpn:X.clientPlaybackNonce}};g.Tm("adsClientStateChange",h)}})}; HA=function(D,X){g.WB.call(this,g.GT({role:"menuitemcheckbox","aria-checked":"false"}),X,D,{L:"div",C:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; t1=function(D,X){D.checked=X;D.element.setAttribute("aria-checked",String(D.checked))}; $Si=function(D){var X=!D.W().XV&&D.getPresentingPlayerType()!==3;return D.isFullscreen()||X}; g.NW=function(D,X,M,Q){var h=D.currentTarget;if((M===void 0||!M)&&g.Bb(D))return D.preventDefault(),!0;X.pauseVideo();D=h.getAttribute("href");g.id(D,Q,!0);return!1}; g.qW=function(D,X,M){if(Gc(X.W())&&X.getPresentingPlayerType()!==2){if(g.Bb(M))return X.isFullscreen()&&!X.W().externalFullscreen&&X.toggleFullscreen(),M.preventDefault(),!0}else{var Q=g.Bb(M);Q&&X.pauseVideo();g.id(D,void 0,!0);Q&&(g.oW(D),M.preventDefault())}return!1}; B85=function(D){D=wB.includes("es-419")?D.T("delhi_modern_web_player_icons")?aU():{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,Z:{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"}}]}:D.T("delhi_modern_web_player_icons")?KI_():{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,Z:{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"}}]};D.C="ytp-subtitles-button-icon"; return D}; Zld=function(D){return wB.includes("es-419")?D?aU():{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:D?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; T6=function(){return{L:"div",C:"ytp-spinner-container",V:[{L:"div",C:"ytp-spinner-rotator",V:[{L:"div",C:"ytp-spinner-left",V:[{L:"div",C:"ytp-spinner-circle"}]},{L:"div",C:"ytp-spinner-right",V:[{L:"div",C:"ytp-spinner-circle"}]}]}]}}; L5=function(D){if(document.createRange){var X=document.createRange();X&&(X.selectNodeContents(D),D=window.getSelection())&&(D.removeAllRanges(),D.addRange(X))}}; K5=function(D,X){var M=D.T("web_fix_annotations")?"Superposiciones anotadas":"Anotaciones";HA.call(this,M,g.sp.T4);this.B=D;this.Vf=X;this.S=!1;D.T("web_settings_menu_icons")&&(X=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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(X));this.N(D,"videodatachange",this.C$);this.N(D,"onApiChange",this.C$);this.subscribe("select",this.onSelect,this);this.C$()}; USn=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);D.addEventListener("settingsMenuInitialized",function(){var M=new K5(X.api,X.api.BI());g.p(X,M)})}; FW=function(D){var X=this;this.S={};this.Y={};this.py={ynC:function(){return X.S}}; this.videoData=D;var M,Q=(M=D.Y)==null?void 0:M.G;Q&&Q.length>0?this.G=Q:(D=D.getAvailableAudioTracks(),this.G=D.length>0?c99(D):[]);D=g.e(aS);for(M=D.next();!M.done;M=D.next())M=M.value,this.S[M]=fQn[M](this.G);this.jA()}; S7s=function(D,X){var M=X.getAudioTrack();return M.id!=="und"?g.vW(D,function(Q){var h;return((h=Q.Cy)==null?void 0:h.name)===M.getLanguageInfo().name}):D}; E4p=function(D,X){return X.getUserAudio51Preference()?g.vW(D,VQ):D}; c99=function(D){return D.map(function(X){return new Sv(X.id,"application/x-mpegURL",{Cy:X.Cy})})}; y9o=function(D){return g.vJ("yt-player-drc-pref")?g.vW(D,BA):D}; P51=function(D){return sdd()===2?g.vW(D,Z9):D}; mS5=function(D){return KVs()===1?g.vW(D,Up):D}; Up=function(D){var X;return((X=D.audio)==null?void 0:X.audioQuality)==="AUDIO_QUALITY_HIGH"&&!Rs(D)}; BA=function(D){var X;return((X=D.audio)==null?void 0:X.S)===!0}; VQ=function(D){return Rs(D)}; n4o=function(D){return D.Cy!==void 0}; Z9=function(D){var X;return((X=D.audio)==null?void 0:X.G)===!0}; cA=function(D,X){if(D.length<2)return!1;var M=X(D[0]);return D.some(function(Q){return X(Q)!==M})}; bls=function(D,X){D=new Set(D.map(X));D.delete(void 0);return D.size>=2}; f5=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);var M=this.api.T("html5_enable_audio_quality_setting_feature");qD(this.api,"getUserAudioQualitySetting",function(){return M?X.getUserAudioQualitySetting():2}); qD(this.api,"setUserAudioQualitySetting",function(Q){M&&X.setUserAudioQualitySetting(Q)}); qD(this.api,"hasHqaAudioTrack",function(){return M?X.hasHqaAudioTrack():!1}); qD(this.api,"getAudioQualitySettingState",function(){return M?X.api.VL(4):1}); this.iL=KVs();this.updateEnvironmentData()}; eQs=function(D){uR.call(this,D);var X=this;qD(this.api,"getAudioTrackState",function(){return X.api.VL(0)})}; S_=function(D){g.Y.call(this,{L:"button",gC:["ytp-button","ytp-autonav-toggle"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{L:"div",C:"ytp-autonav-toggle-button-container",V:[{L:"div",C:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.B=D;this.G=[];this.S=!1;this.isChecked=!0;D.createClientVe(this.element,this, 113681);this.N(D,"presentingplayerstatechange",this.nA);this.listen("click",this.onClick);this.G.push(this.N(this.B,"videodatachange",this.nA));this.G.push(this.N(this.B,"videoplayerreset",this.nA));this.G.push(this.N(this.B,"onPlaylistUpdate",this.nA));this.G.push(this.N(this.B,"autonavchange",this.NG));EI(D,this.element,this);this.nA()}; RQ2=function(D){D.isChecked=D.isChecked;D.h$("ytp-autonav-toggle-button").setAttribute("aria-checked",String(D.isChecked));var X=D.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";D.B.W().T("player_tooltip_data_title_killswitch")?D.update({title:X,label:X}):D.update({"data-tooltip-title":X,label:X});D.B.qw()}; var KHH=function(D){return Tp[N[15]](this,16,D)}; IQ_=function(D){return D.B.W().T("web_player_autonav_use_server_provided_state")&&Mp(D.z6())}; g4s=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"standardControlsInitialized",function(){var M=new S_(D);g.p(X,M);D.PR(M,"RIGHT_CONTROLS_LEFT")})}; yQ=function(D){var X=D.T("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";HA.call(this,X,g.sp.v5);var M=this;this.B=D;this.S=!1;this.G=new g.W5(function(){g.tN(M.element,"ytp-menuitem-highlighted")},0); this.Vf=D.BI();D=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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(D);this.subscribe("select",this.Y,this);this.listen(Ep,this.U);g.p(this,this.G)}; PA=function(D){uR.call(this,D);var X=this;this.S=!1;D.addEventListener("settingsMenuInitialized",function(){v41(X)}); D.addEventListener("highlightSettingsMenu",function(M){v41(X);var Q=X.menuItem;M==="menu_item_cinematic_lighting"&&(g.hN(Q.element,"ytp-menuitem-highlighted"),g.hN(Q.element,"ytp-menuitem-highlight-transition-enabled"),Q.G.start())}); qD(D,"updateCinematicSettings",function(M){X.updateCinematicSettings(M)})}; v41=function(D){D.menuItem||(D.menuItem=new yQ(D.api),g.p(D,D.menuItem),D.menuItem.C$(D.S))}; dSo=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"applicationvideodatachange",function(M,Q){Q=Q.clipConfig;M==="dataloaded"&&Q&&Q.startTimeMs!=null&&Q.endTimeMs!=null&&X.api.setLoopRange({startTimeMs:Math.floor(Number(Q.startTimeMs)),endTimeMs:Math.floor(Number(Q.endTimeMs)),postId:Q.postId,type:"clips"})})}; n5=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);qD(D,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));qD(D,"setCreatorEndscreenHideButton",this.S.bind(this));this.T("web_fix_annotations")&&this.events.N(D,"annotationvisibility",function(M){X.setCreatorEndscreenVisibility(!M);X.hideButton&&g.V_(X.hideButton,M)})}; ild=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"videodatachange",function(){var M=X.api.getRootNode(),Q=X.api.W();g.hN(M,"ytp-delhi-modern");Q.T("delhi_modern_web_player_icons")&&g.hN(M,"ytp-delhi-modern-icons");Q.T("delhi_modern_web_player_horizontal_volume_controls")&&g.hN(M,"ytp-delhi-horizontal-volume-controls");Q.T("delhi_modern_web_player_compact_controls")&&g.hN(M,"ytp-delhi-modern-compact-controls");switch(KT(Q.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.hN(M, "ytp-delhi-modern-with-luminosity");break;case "difference":g.hN(M,"ytp-delhi-modern-with-difference");break;case "exclusion":g.hN(M,"ytp-delhi-modern-with-exclusion")}M=X.api.isHdr()||X.api.T("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";X.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",M);r9H(X)}); this.events.N(D,"resize",function(){r9H(X)})}; r9H=function(D){var X=D.api.T("delhi_modern_web_player_compact_controls"),M=g.lx(D.api.W().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");X=X||M>0&&D.api.getPlayerSize().width<=M;D=D.api.getRootNode();D.classList.toggle("ytp-delhi-modern-compact-controls",X);M=X?"8px":"12px";var Q=X?"56px":"72px",h=X?"56px":"64px",H=X?"48px":"56px",t=X?"12px":"20px",q=X?"72px":"96px";D.style.setProperty("--yt-delhi-pill-height",X?"40px":"48px");D.style.setProperty("--yt-delhi-pill-top-height", M);D.style.setProperty("--yt-delhi-bottom-controls-height",Q);D.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",h);D.style.setProperty("--yt-delhi-big-mode-pill-height",H);D.style.setProperty("--yt-delhi-big-mode-pill-top-height",t);D.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",q)}; bP=function(D,X,M,Q,h){var H=D.T("html5_enable_new_audio_settings_menu");HA.call(this,"Volumen estable",H?o4H.Gb:g.sp.Gb);this.B=D;this.U=X;this.G=M;this.hasDrcAudioTrack=Q;this.getDrcState=h;this.Y=this.enableNewAudioSettingsMenu=this.S=!1;g.hN(this.element,"ytp-drc-menu-item");this.Vf=(this.enableNewAudioSettingsMenu=H)?D.BI().wh:D.BI();D.T("html5_enable_voice_boost")?(this.Y=!0,this.N(D,"onFilterAudioFeatures",this.OC)):D.addEventListener("videodatachange",this.OC.bind(this));D.T("mta_drc_mutual_exclusion_removal")&& this.N(D,"onPlaybackAudioChange",this.OC);D.createClientVe(this.element,this,273317);this.listen("click",this.X);X=this.G()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(D=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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(D));this.subscribe("select",this.D,this);this.enableNewAudioSettingsMenu||this.Y?this.OC():(this.setEnabled(this.hasDrcAudioTrack()),t1(this,X),this.Vf.fK(this))}; e_=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);D.T("html5_show_drc_toggle")&&D.addEventListener("settingsMenuInitialized",function(){X.menuItem||(X.menuItem=new bP(X.api,X.setDrcUserPreference.bind(X),X.getDrcUserPreference.bind(X),X.bk.bind(X),X.getDrcState.bind(X)),g.p(X,X.menuItem))}); qD(this.api,"setDrcUserPreference",function(Q){X.setDrcUserPreference(Q)}); qD(this.api,"getDrcUserPreference",function(){return X.getDrcUserPreference()}); qD(this.api,"hasDrcAudioTrack",function(){return X.bk()}); qD(this.api,"getDrcState",function(){return X.getDrcState()}); var M;this.S=(M=g.vJ("yt-player-drc-pref"))!=null?M:1;this.updateEnvironmentData()}; RS=function(D){uR.call(this,D);var X=this;this.S={};this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"videodatachange",function(){X.onVideoDataChange()}); this.events.N(D,g.rI("embargo"),function(M){X.api.mL(!0);var Q,h=(Q=X.S[M.id])!=null?Q:[];Q=g.e(h);for(h=Q.next();!h.done;h=Q.next()){var H=h.value;X.api.hideControls();X.api.ZS("auth",2,"This video isn't available in your current playback area",Ga({embargoed:1,id:M.id,idx:M.G,start:M.start}));h=void 0;(H=(h=H.embargo)==null?void 0:h.onTrigger)&&X.api.ER("innertubeCommand",H)}})}; C5R=function(D,X){var M;return(M=X.onEnter)==null?void 0:M.some(D.G)}; Ol9=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next()){M=M.value;var Q=void 0,h=Number((Q=M.playbackPosition)==null?void 0:Q.utcTimeMillis)/1E3,H=void 0;Q=h+Number((H=M.duration)==null?void 0:H.seconds);H="embargo_"+h;D.api.addUtcCueRange(H,h,Q,"embargo",!1);M.onEnter&&(D.S[H]=M.onEnter.filter(D.G))}}; IS=function(D){uR.call(this,D);var X=this;this.S=[];this.events=new g.HE(D);g.p(this,this.events);qD(D,"addEmbedsConversionTrackingParams",function(M){X.addEmbedsConversionTrackingParams(M)}); this.events.N(D,"veClickLogged",function(M){X.api.hasVe(M)&&(M=M.visualElement.getAsJspb(),M=g.lY(M,2),X.S.push(M))})}; ptW=function(D){uR.call(this,D);qD(D,"isEmbedsShortsMode",function(){return D.isEmbedsShortsMode()}); qD(D,"getReelItemWatchResponse",function(){var X,M;return(M=(X=D.getVideoData(1))==null?void 0:X.getReelItemWatchResponse())!=null?M:null})}; A9H=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"initialvideodatacreated",function(M){Ht(h9(),16623);X.S=g.Va();var Q=D.W().EU&&!M.Vq;if(YL(M)&&Q){Ht(h9(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(M.getWatchNextResponse()){var h,H=(h=M.getWatchNextResponse())==null?void 0:h.trackingParams;H&&NS(H)}if(M.getPlayerResponse()){var t;(M=(t=M.getPlayerResponse())==null?void 0:t.trackingParams)&&NS(M)}}else Ht(h9(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),M.getEmbeddedPlayerResponse()&&(t=(H=M.getEmbeddedPlayerResponse())==null?void 0:H.trackingParams)&&NS(t)}); this.events.N(D,"loadvideo",function(){Ht(h9(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:X.S})}); this.events.N(D,"cuevideo",function(M){M===1&&Ht(h9(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:X.S})}); this.events.N(D,"largeplaybuttonclicked",function(M){Ht(h9(),27240,M.visualElement)}); this.events.N(D,"playlistnextbuttonclicked",function(M){Ht(h9(),27240,M.visualElement)}); this.events.N(D,"playlistprevbuttonclicked",function(M){Ht(h9(),27240,M.visualElement)}); this.events.N(D,"playlistautonextvideo",function(){Ht(h9(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; gB=function(D,X){g.O.call(this);var M=this;this.S=null;this.Y=X;X=[];for(var Q=0;Q<=100;Q++)X.push(Q/100);X={threshold:X,trackVisibility:!0,delay:1E3};(this.G=window.IntersectionObserver?new IntersectionObserver(function(h){h=h[h.length-1];var H=null;typeof h.isVisible==="undefined"?document.visibilityState==="visible"&&h.isIntersecting&&h.intersectionRatio>0?H=h.intersectionRatio:document.visibilityState==="hidden"?H=0:H=null:H=h.isVisible?h.intersectionRatio:0;H!=null&&(H=Math.max(H,0),H=Math.min(H, 1));M.S=H;typeof M.Y==="function"&&M.Y(M.S)},X):null)&&this.G.observe(D)}; lQn=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"applicationInitialized",function(){Y75(X)})}; Y75=function(D){var X=D.api.getRootNode(),M,Q=D.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((M=X.parentElement)==null?void 0:M.parentElement)||X:X;D.S=new gB(Q,function(h){h!=null&&(D.api.W().Cj=h,D.api.W().J2="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.p(D,D.S);D.events.N(D.api,"videoStatsPingCreated",function(h){var H=D.S;H=H.S==null?null:Math.round(H.S*100)/100;h.inview=H!=null?H:void 0;H=D.api.getPlayerSize();if(H.height>0&&H.width>0){H=[Math.round(H.width),Math.round(H.height)];var t=g.kv();t>1&&H.push(t);H=H.join(":")}else H=void 0;h.size=H})}; vA=function(D){uR.call(this,D);var X=this;qD(this.api,"dismissFeaturedProductOverlay",function(){X.dismissFeaturedProductOverlay()})}; J9p=function(D){var X;return((X=((D==null?void 0:D.messageRenderers)||[]).find(function(M){return!!M.timeCounterRenderer}))==null?void 0:X.timeCounterRenderer)||null}; dB=function(D){g.Y.call(this,{L:"div",gC:["ytp-player-content","ytp-iv-player-content"],V:[{L:"div",C:"ytp-free-preview-countdown-timer",V:[{L:"span",Gs:"{{label}}"},{L:"span",C:"ytp-free-preview-countdown-timer-separator",Gs:"\u2022"},{L:"span",Gs:"{{duration}}"}]}]});this.api=D;this.S=null;this.Y=this.G=0;this.N(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; WmH=function(D,X){D.S||(D.G=X,D.Y=(0,g.fi)(),D.S=new g.xm(function(){xS2(D)},null),xS2(D))}; xS2=function(D){var X=Math,M=X.round,Q=Math.min((0,g.fi)()-D.Y,D.G);X=M.call(X,(D.G-Q)/1E3);D.updateValue("duration",ks({seconds:X}));X<=0&&D.S?D.stopTimer():D.S&&D.S.start()}; GY_=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"basechromeinitialized",function(){X.S=new dB(D);g.p(X,X.S);g.db(D,X.S.element,4);X.S.hide()})}; rB=function(D){g.Y.call(this,{L:"button",gC:["ytp-fullerscreen-edu-button","ytp-button"],V:[{L:"div",gC:["ytp-fullerscreen-edu-text"],Gs:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{L:"div",gC:["ytp-fullerscreen-edu-chevron"],V:[YZ_()]}],Z:{"data-priority":"2"}});this.XF=D;this.fade=new g.kn(this,250,void 0,100);this.G=this.S=!1;D.createClientVe(this.element,this,61214);g.p(this,this.fade);this.N(D,"fullscreentoggled",this.C$);this.N(D,"presentingplayerstatechange",this.C$); this.listen("click",this.onClick);this.C$()}; iP=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);qD(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Q){X.updateFullerscreenEduButtonSubtleModeState(Q)}); qD(this.api,"updateFullerscreenEduButtonVisibility",function(Q){X.updateFullerscreenEduButtonVisibility(Q)}); var M=D.W();D.T("external_fullscreen_with_edu")&&M.externalFullscreen&&Gc(M)&&M.controlsType==="1"&&this.events.N(D,"standardControlsInitialized",function(){X.S=new rB(D);g.p(X,X.S);D.PR(X.S)})}; zQH=function(D){g.Y.call(this,{L:"div",C:"ytp-gated-actions-overlay",V:[{L:"div",C:"ytp-gated-actions-overlay-background",V:[{L:"div",C:"ytp-gated-actions-overlay-background-overlay"}]},{L:"button",gC:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Cerrar"},V:[g.KO()]},{L:"div",C:"ytp-gated-actions-overlay-bar",V:[{L:"div",C:"ytp-gated-actions-overlay-text-container",V:[{L:"div",C:"ytp-gated-actions-overlay-title",Gs:"{{title}}"},{L:"div",C:"ytp-gated-actions-overlay-subtitle", Gs:"{{subtitle}}"}]},{L:"div",C:"ytp-gated-actions-overlay-button-container"}]}]});var X=this;this.api=D;this.background=this.h$("ytp-gated-actions-overlay-background");this.G=this.h$("ytp-gated-actions-overlay-button-container");this.S=[];this.N(this.h$("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){X.api.ER("onCloseMiniplayer")}); this.hide()}; uLW=function(D,X){var M=0;M=0;for(var Q={};M h&&(h=q.width,H="url("+q.url+")")}M.background.style.backgroundImage=H;uLW(M,Q.actionButtons||[]);M.show()}else M.hide()}); g.db(this.api,this.S.element,4)}; oS=function(D){uR.call(this,D);var X=this;TT(this.api,"getSphericalProperties",function(){return X.getSphericalProperties()}); TT(this.api,"setSphericalProperties",function(){X.setSphericalProperties.apply(X,g.xW(g.BZ.apply(0,arguments)))}); wb(this.api,"getSphericalProperties",function(){return X.api.getPresentingPlayerType()===2?{}:X.getSphericalProperties()}); wb(this.api,"setSphericalProperties",function(){var M=g.BZ.apply(0,arguments);X.api.getPresentingPlayerType()!==2&&X.setSphericalProperties.apply(X,g.xW(M))})}; C5=function(D){uR.call(this,D);qD(D,"createClientVe",this.createClientVe.bind(this));qD(D,"createServerVe",this.createServerVe.bind(this));qD(D,"destroyVe",this.destroyVe.bind(this));qD(D,"hasVe",this.hasVe.bind(this));qD(D,"logClick",this.logClick.bind(this));qD(D,"logVisibility",this.logVisibility.bind(this));qD(D,"setTrackingParams",this.setTrackingParams.bind(this))}; Op=function(D,X,M,Q){function h(t){var q=!(t.status!==204&&t.status!==200&&!t.response),w;t={succ:""+ +q,rc:t.status,lb:((w=t.response)==null?void 0:w.byteLength)||0,rt:((0,g.fi)()-H).toFixed(),shost:g.cR(D),trigger:X};Dss(t,D);M&&M(t);Q&&!q&&Q(new g.za("pathprobe.net",t))} var H=(0,g.fi)();g.PX(D,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:h,onTimeout:h})}; Dss=function(D,X){var M;((M=window.performance)==null?0:M.getEntriesByName)&&(X=performance.getEntriesByName(X))&&X.length&&(X=X[0],D.pedns=(X.domainLookupEnd-X.startTime).toFixed(),D.pecon=(X.connectEnd-X.domainLookupEnd).toFixed(),D.perqs=(X.requestStart-X.connectEnd).toFixed(),XYn&&(D.perqsa=X.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Mzd=function(D){XYn=D}; p5=function(D,X){this.Hb=D;this.policy=X;this.playbackRate=1}; QJm=function(D,X){var M=Math.min(2.5,A1(D.Hb));D=Yj(D);return X-M*D}; J1=function(D,X,M,Q,h){h=h===void 0?!1:h;if(D.policy.xB)return Math.ceil(D.policy.xB*X);D.policy.mS&&(Q=Math.abs(Q));Q/=D.playbackRate;var H=1/lP(D.Hb);M=Math.max(.9*(Q-3),A1(D.Hb)+D.Hb.G.S*H)/H*.8/(X+M);M=Math.min(M,Q);D.policy.uX>0&&h&&(M=Math.max(M,D.policy.uX));return hFs(D,M,X)}; hFs=function(D,X,M){return Math.ceil(Math.max(Math.max(D.policy.Cj,D.policy.Lq*M),Math.min(Math.min(D.policy.A$,31*M),Math.ceil(X*M))))||D.policy.Cj}; Yj=function(D){return lP(D.Hb,!D.policy.TL,D.policy.B0)}; xj=function(D){return Yj(D)/D.playbackRate}; WA=function(D,X,M){var Q=D.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],h=D.policy.playbackStartPolicy.startMinReadaheadPolicy||[];D=Infinity;X=g.e(X&&Q.length>0?Q:h);for(Q=X.next();!Q.done;Q=X.next())Q=Q.value,h=Q.minReadaheadMs||0,M<(Q.minBandwidthBytesPerSec||0)||D>h&&(D=h);return D0&&(this.G=M.xr)}; Nrn=function(D,X,M,Q,h){if(!Q.info.Y){if(M.length===0)M.push(Q);else{var H;(D=(H=M.pop())==null?void 0:g.$C(H,Q))?M.push(D):M.push(Q)}return h}var t;(M=(t=M.pop())==null?void 0:g.$C(t,Q))||(M=Q);if(M.info.S)return D.logger&&D.logger({incompleteSegment:M.info.HC()}),h;Q=D.lr(M);h=Q.Ts;Q={clipId:Q.clipId,formatId:Q.formatId,startTimeMs:Q.startTimeMs,durationMs:Q.rP,RP:h,o6:h};h=Hqn(X,Q.startTimeMs);if(H=M=h>=0?X[h]:null){H=Q;var q=h;t=M.startTimeMs+M.durationMs;var w=H.startTimeMs+H.durationMs;if(H.startTimeMs- t>D.G)H=!1;else if(tzo(D,M.formatId,H.formatId))M.durationMs=Math.max(t,w)-M.startTimeMs,M.o6=Math.max(M.o6,H.o6),H=!0;else if(Math.abs(M.startTimeMs-H.startTimeMs)<=D.G)if(M.durationMs>H.durationMs+D.G){var T=M.formatId,L=M.RP;q=M.o6;M.formatId=H.formatId;M.durationMs=H.durationMs;M.RP=H.RP;M.o6=H.o6;H.formatId=T;H.startTimeMs=w;H.durationMs=t-w;H.RP=L;H.o6=q;H=!1}else M.formatId=H.formatId,H=!0;else t>H.startTimeMs&&(t>w&&(X.splice(q+1,0,{formatId:M.formatId,startTimeMs:w,durationMs:t-w,RP:H.o6+ 1,o6:M.o6}),D.logger&&D.logger({splitOldStart:(T=M.startTimeMs)==null?void 0:T.toFixed(3),splitOldEnd:t==null?void 0:t.toFixed(3),splitNewStart:(L=H.startTimeMs)==null?void 0:L.toFixed(3),splitNewEnd:w==null?void 0:w.toFixed(3)})),M.durationMs=H.startTimeMs-M.startTimeMs,M.o6=H.RP-1),H=!1}H?Q=M:(h+=1,X.splice(h,0,Q));T=0;for(L=h+1;L=w+M.G?M=!0:q+M.G=0?D:-D-2}; qa2=function(D,X){if(D.I2){var M=D.I2.K6();if(M.length!==0){if(D.Y&&X){var Q=D.Y,h=Q.info.U;!AC(M,h)&&Q.info.J>0&&(0,g.fi)()-D.X<5E3&&(D.logger&&D.logger({dend:Q.info.HC()}),M=Nmo(M,h,h+.01))}D.policy.FR&&D.logger&&D.logger({cbri:""+D.S});Q=[];for(var H=h=0;h=t){var L=Object.assign({},D.LK[H]),K=D.P2.Y.get(Cq(D.LK[H].formatId)),a=Math.max(w,t);t=K.index.lE(a+D.G/ 1E3);w=K.index.getStartTime(t);var F=t+ +(Math.abs(w-a)>D.G/1E3);a=F+D.U;F=K.index.getStartTime(F)*1E3;H!==D.S||X?(L.RP=a,L.startTimeMs=F):(D.logger&&D.logger({pEvict:"1",og:L.startTimeMs,adj:w*1E3}),L.RP=t+D.U,L.startTimeMs=w*1E3);t=void 0;w=((t=D.Y)==null?void 0:t.info.duration)||11;H===D.S&&qD.G/1E3);t=w+D.U;K=K.index.Tf(w)*1E3;L.o6=t;L.durationMs=K-L.startTimeMs;L.RP<=L.o6&&Q.push(L)}T=0&&D8(D.audioTrack,D.targetTime)>=0&&H?((D.videoTrack.U||D.audioTrack.U)&&D.loader.SH("iterativeSeeking",{status:"done",count:D.seekCount}),D.videoTrack.U=!1,D.audioTrack.U=!1):Q&&g.SI(function(){if(D.S||!D.policy.zm)QY(D);else{var t=X.startTime,q=X.duration;if(!D.policy.D){var w=D.videoTrack.D!==-1&&D.audioTrack.D!==-1,T=!D.videoTrack.R5&&!D.audioTrack.R5;(M?D.videoTrack.U:D.audioTrack.U)&&w&&T&&(D.targetTime>= t&&D.targetTime432E3&&oPs(D.P2);D.G&&(h=D.G,D.G=0);g.SI(function(){D.policy.D||hY(D,h,102)}); D.loader.SH("initManifestlessSync",{st:h,ost:h+D.loader.w3(),a:D.audioTrack.D,v:D.videoTrack.D});D.Y&&(D.Y.resolve(h+.1),D.Y=null);D.policy.D&&hY(D,h,102)}}}; qR=function(){this.data=new Uint8Array(2048);this.pos=0;NR||(NR=$$("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; wN=function(D,X){D.add(X==null||isNaN(X)?0:X+1)}; LL=function(D,X){var M=this;this.mz=D;this.requestNumber=++cep;this.S=this.now();this.K=this.eH=NaN;this.J=this.S;this.Y=this.qj=this.D=0;this.X=this.S;this.o5=this.R5=this.M5=this.Vq=this.DJ=this.sR=this.G=this.U=0;this.f$=this.isActive=!1;this.h5=this.q5=0;this.py={icC:function(){return M.iX}}; this.Hb=X.Hb;this.snapshot=T4(this.Hb);this.policy=this.Hb.G;this.Dy=!!X.Dy;this.cH=X.cH;this.SR=X.SR||0;this.x5=X.x5||0;X.dJ&&(this.L$=new qR);var Q;this.iX=(Q=X.iX)!=null?Q:!1;this.Dy||fvd(this.Hb)}; Sa9=function(D){D.M5=Math.max(D.M5,D.D-D.DJ);D.R5=Math.max(D.R5,D.J-D.Vq);D.sR=0}; sG=function(D,X,M){EVp(D.Hb,X);D.L$&&(D.L$.add(Math.ceil(X)-Math.ceil(D.J)),D.L$.add(Math.max(0,Math.ceil(M/1024)-Math.ceil(D.D/1024))));var Q=X-D.J,h=M-D.D;D.qj=h;D.o5=Math.max(D.o5,h/(Q+.01)*1E3);D.J=X;D.D=M;D.sR&&M>D.sR&&Sa9(D)}; KL=function(D,X){D.url=X;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; aP=function(D,X){LL.call(this,D,X);this.zm=this.Mj=!1;this.uj=this.a5=Infinity;this.yf=NaN;this.R2=!1;this.p$=NaN;this.Ky=this.OR=this.A$=0;this.z$=X.z$||1;this.Iv=X.Iv||this.z$;this.fV=X.fV;this.Ts=X.Ts;this.fY=X.fY;yed(this);this.PK(this.S);this.J5=(this.p$-this.S)/1E3}; Ps9=function(D){var X=D.OR||D.A$;return X?D.snapshot.delay+Math.min(D.x5,(D.K-D.eH)/1E3)+X:D.J5}; VY=function(D,X,M){if(!D.Dy){X=Math.max(X,.01);var Q=D.SR?Math.max(X,M/D.SR):X,h=D.Hb.G.Y;h&&(Q=X,D.SR&&(Q=Math.max(X,M/D.SR*h)));Ff(D.Hb,X,M,Q)}}; mss=function(D){return(D.X-D.S)/1E3}; yed=function(D){D.yf=D.S+D.snapshot.delay*1E3;D.R2=!1}; $M=function(D,X){if(D.fV&&D.Ts!==void 0&&D.fY!==void 0){var M=Math,Q=M.min,h=D.a5;var H=D.fV;var t=D.S;if(nVR(H,D.Ts))H=X;else{var q=0;H.aP&&(q=.2);H=t+(H.x5+q)*1E3}D.a5=Q.call(M,h,H);M=Math;Q=M.min;h=D.uj;H=D.fV;t=D.S;q=bq2(H,D.Ts,D.fY);q!==2&&(X=q?X:t+H.x5*1E3,H.aP&&(X+=H.x5*1E3));D.uj=Q.call(M,h,X);D.a5<=D.S?yed(D):(D.yf=D.a5,D.R2=!0)}}; eF2=function(D,X){if(X+1<=D.totalLength){var M=Tg(D,X);M=M<128?1:M<192?2:M<224?3:M<240?4:5}else M=0;if(M<1||!(X+M<=D.totalLength))return[-1,X];if(M===1)D=Tg(D,X++);else if(M===2)M=Tg(D,X++),D=Tg(D,X++),D=(M&63)+64*D;else if(M===3){M=Tg(D,X++);var Q=Tg(D,X++);D=Tg(D,X++);D=(M&31)+32*(Q+256*D)}else if(M===4){M=Tg(D,X++);Q=Tg(D,X++);var h=Tg(D,X++);D=Tg(D,X++);D=(M&15)+16*(Q+256*(h+256*D))}else M=X+1,D.focus(M),NG(D,M,4)?D=ZWH(D).getUint32(M-D.Y,!0):(Q=Tg(D,M+2)+256*Tg(D,M+3),D=Tg(D,M)+256*(Tg(D,M+1)+ 256*Q)),X+=5;return[D,X]}; B8=function(D){this.mz=D;this.S=new Qi}; Z8=function(D,X){this.info=D;this.callback=X;this.state=1;this.Jr=this.x3=!1;this.eA=null}; RF9=function(D){return g.eE(D.info.W2,function(X){return X.type===3})}; UG=function(D,X,M,Q){var h=this;Q=Q===void 0?{}:Q;this.policy=X;this.mz=M;this.status=0;this.S=new Qi;this.G=0;this.H2=this.U=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Q.method||"GET",D);if(Q.headers)for(D=Q.headers,X=g.e(Object.keys(D)),M=X.next();!M.done;M=X.next())M=M.value,this.xhr.setRequestHeader(M,D[M]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return h.Xi()}; this.xhr.onload=function(){return h.onDone()}; this.xhr.onerror=function(){return h.onError()}; this.xhr.fetch(function(H){h.S.append(H);h.G+=H.length;H=(0,g.fi)();h.mz.w8(H,h.G)},function(){},Q.body||null)}; Ivn=function(D,X){this.G=(new TextEncoder).encode(D);this.S=(new TextEncoder).encode(X)}; L1p=function(D,X){var M;return g.r(function(Q){if(!X)return Q.return(X);M=new g.DU(D.G);return Q.return(M.encrypt(X,D.S))})}; VW1=function(D,X){var M;return g.r(function(Q){if(Q.S==1){if(!X)return Q.return(X);M=new g.DU(D.G);return g.I(Q,M.decrypt(X,D.S),2)}return Q.return(Q.G)})}; gVn=function(D,X){var M=this;this.S=D;this.mz=X;this.loaded=this.status=0;this.error="";D=YV(this.S.get("range")||"");if(!D)throw Error("bad range");this.range=D;this.G=new Qi;this.run().then(function(){M.mz.Tx()},function(Q){M.error=""+Q||"unknown_err"; M.mz.Tx()})}; dss=function(D,X,M,Q){var h=this;Q=Q===void 0?{}:Q;this.policy=X;this.mz=M;this.X=Q;this.status=0;this.response=void 0;this.G=0;this.aborted=this.D=!1;this.errorMessage="";this.K=function(H){if(H)if(h.status=H.status,H.ok&&H.body&&h.status!==204)h.status=h.status||242,h.Y=H.body.getReader(),h.H2()?h.Y.cancel().catch(function(){}):(h.responseHeaders=H.headers,h.mz.HH(),vVW(h)); else h.onDone();else h.onError(Error("null_response"))}; this.J=function(H){var t=(0,g.fi)();h.H2()||(H.done?(h.Y=void 0,h.onDone()):(H=H.value,h.G+=H.length,h.S.append(H),vVW(h),h.mz.w8(t,h.G)))}; this.onError=function(H){h.errorMessage=String(H);h.D=!0;h.onDone()}; this.S=new Qi;this.U=window.AbortController?new AbortController:void 0;this.start(D)}; vVW=function(D){D.Y.read().then(D.J,D.onError).then(void 0,ya)}; reH=function(D,X,M){var Q=this;M=M===void 0?{}:M;this.mz=X;this.G=this.status=0;this.H2=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(M.method||"GET",D);if(M.headers){D=M.headers;X=g.e(Object.keys(D));for(var h=X.next();!h.done;h=X.next())h=h.value,this.xhr.setRequestHeader(h,D[h])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(H){Q.Xi(H)}; D=jp(function(H){Q.onDone(H)}); this.xhr.addEventListener("load",D,!1);this.xhr.addEventListener("error",D,!1);M.body?this.xhr.send(M.body):this.xhr.send();this.xhr.addEventListener("progress",jp(function(H){Q.onProgress(H)}),!1)}; c8=function(D,X,M,Q,h){if(td(16,D.tS))return new gVn(D,M);D=D.QF();return Q?MVn()?new UG(D,X,M,h):new dss(D,X,M,h):new reH(D,M,h)}; fL=function(D,X){g.O.call(this);var M=this;this.policy=D;this.W2=X;this.G=0;this.S=null;this.PP=[];this.Y=null;this.py={Gx:function(){return M.W2}}; this.W2.length===1||g.eE(this.W2,function(Q){return!!Q.range})}; SC=function(D,X,M){D.S&&(hG(D.S,X),X=D.S,D.S=null);for(var Q=0,h=0,H=g.e(D.W2),t=H.next();!t.done;t=H.next())if(t=t.value,t.range&&Q+t.G<=D.G)Q+=t.G;else{if(WY(t)&&!M&&D.G+X.totalLength-h=400?(D.lastError="net.badstatus",!0):(h===void 0?0:h)?(D.lastError="ump.spsrejectfailure",!0):M||Q!==void 0&&Q?!1:(D.lastError=X===204?"net.nocontent":"net.connect",!0)}; by=function(D,X){if(D.policy.Df)return!1;var M=X.getResponseHeader("content-type"),Q=X.d5();D=!Q||Q<=D.policy.hv;return(!X.lR()||!M||M.indexOf("text/plain")!==-1)&&D}; pYs=function(D,X){var M="";X=X.He();X.totalLength<=D.policy.hv&&(D=qG(X),D=sq(D),M=fo(D)?D:"");return M}; yY=function(D){return gr(D.U,hd(86,D.BD.tS))}; Aeo=function(D){var X=D.timing.c8();X.shost=hd(88,D.BD.tS);D.policy.wj&&D.policy.VH&&(X.csrc=1);return X}; Ya2=function(D,X){return(D==null?void 0:D.maxWidth)>(X==null?void 0:X.maxWidth)||(D==null?void 0:D.maxHeight)>(X==null?void 0:X.maxHeight)}; lvm=function(D,X){for(var M=g.e(X.keys()),Q=M.next();!Q.done;Q=M.next())if(Q=X.get(Q.value),Q.length!==0){g.aM(Q,function(q,w){return w.maxFramerate-q.maxFramerate}); for(var h=[Q[0]],H=0,t=1;tD.S||M.push(Q)}return M}; eC=function(D,X,M){var Q=WQ_[D]||[];M.T("html5_shorts_onesie_mismatched_fix")&&(Q=GQp[D]||[]);X.push.apply(X,g.xW(Q));M.T("html5_early_media_for_drm")&&X.push.apply(X,g.xW(zFd[D]||[]))}; M4H=function(D,X){var M=g.sN(D),Q=D.W(),h=Q.D;Q=Q.T("html5_shorts_onesie_mismatched_fix");var H=D.TI();if(Q){if(!h.G){if(H&&RP)return RP;if(IP)return IP}}else if(IP&&!h.G)return IP;var t=[],q=[],w={},T=gN.concat(kQm);Q&&(T=gN.concat(uVR));D.T("html5_early_media_for_drm")&&(T=T.concat(jJs),D.T("allow_vp9_1080p_mq_enc")&&T.push(DHo));var L=[].concat(g.xW(X2R));D.T("html5_iamf_audio_onesie_fmt")&&L.push(["773"]);T=g.e(T);for(var K=T.next();!K.done;K=T.next()){var a=!1;K=g.e(K.value);for(var F=K.next();!F.done;F= K.next()){F=F.value;var V=ws(F,H&&Q);if(V&&V.video&&!(mq(V)&&!M.L$&&V.video.qualityOrdinal>M.xw)){var c=g.lx(D.W().experiments,"html5_drm_byterate_soft_cap");c>0&&Hd1(V)&&V.jH>c||(a?(t.push(F),eC(F,t,D)):(V=r8(M,V,h),V===!0?(a=!0,t.push(F),eC(F,t,D)):w[F]=V))}}}L=g.e(L);for(T=L.next();!T.done;T=L.next())for(T=g.e(T.value),a=T.next();!a.done;a=T.next())if(a=a.value,(K=jEo(a))&&K.audio&&(D.T("html5_onesie_51_audio")||!Rs(K)))if(K=r8(M,K,h),K===!0){q.push(a);eC(a,q,D);break}else w[a]=K;if(!D.T("html5_enable_audio_quality_setting"))for(D= g.e(["141","774"]),L=D.next();!L.done;L=D.next())L=L.value,q.includes(L)&&(g.X_(q,L),w[L]="blkhqa");M.S&&X("orfmts",w);if(Q)return h.G&&(h.G=!1,RP=IP=void 0),H?RP={video:t,audio:q}:IP={video:t,audio:q};IP={video:t,audio:q};h.G=!1;return IP}; g.HFs=function(D,X,M){var Q=M.D,h=[],H=[],t=M.T("html5_shorts_onesie_mismatched_fix");D=D.TI();var q=gN.concat(kQm);t&&(q=gN.concat(uVR));M.T("html5_early_media_for_drm")&&(q=q.concat(jJs),M.T("allow_vp9_1080p_mq_enc")&&q.push(DHo));var w=[].concat(g.xW(X2R));M.T("html5_iamf_audio_onesie_fmt")&&w.push(["773"]);q=g.e(q);for(var T=q.next();!T.done;T=q.next()){T=g.e(T.value);for(var L=T.next();!L.done;L=T.next()){L=L.value;var K=ws(L,D&&t);if(K&&K.video){var a=g.lx(M.experiments,"html5_drm_byterate_soft_cap"); if(!(a>0&&Hd1(K)&&K.jH>a)&&r8(X,K,Q)===!0){h.push({videoCodec:QK1[fE[L]],maxWidth:K.video.width,maxHeight:K.video.height,maxFramerate:K.video.fps});break}}}}t=g.e(w);for(D=t.next();!D.done;D=t.next())for(D=g.e(D.value),w=D.next();!w.done;w=D.next())if(w=w.value,(q=jEo(w))&&q.audio&&(M.T("html5_onesie_51_audio")||!Rs(q))&&r8(X,q,Q)===!0){H.push({audioCodec:hS_[fE[w]],numChannels:q.audio.numChannels});break}return{videoFormatCapabilities:h,audioFormatCapabilities:H}}; qM9=function(D){var X,M={},Q=D.zs,h=D.UR,H=D.Hb,t=Q.getVideoData(),q=Vf(0),w=Q.getVisibilityState();h.T("html5_enable_audio_quality_setting")&&(M.iL=h.iL);q&&(M.Z$$=q,M.lastManualDirection=tV9(),q=fws()||0,q>0&&(q=(h.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.fi)())-q,h.T("html5_use_date_now_for_local_storage")?q>0&&(M.timeSinceLastManualFormatSelectionMs=q):M.timeSinceLastManualFormatSelectionMs=q));q=h.T("html5_use_streamer_bandwidth_for_low_latency_live")&&t.isLowLatencyLiveStream; if(H.f$&&!q){var T;q=h.T("html5_disable_bandwidth_cofactors_for_sabr_live")?!((T=D.j$)==null||!T.TL):!1;M.yr=lP(H,!q)}q=g.BE.medium;var L=Math.floor(q*16/9);(T=t.TI())||(t.S&&t.Y&&t.Y.videoInfos.length!==0?(T=t.Y.videoInfos[0],T=!!T.video&&T.video.width0?{authorizedFormats:D.authorizedFormats}:{authorizedFormats:X};D.sabrLicenseConstraint&&(M.tZ.sabrLicenseConstraint=D.sabrLicenseConstraint);if(h.T("html5_onesie_media_capabilities")||fA(t))M.Q_=3;h.T("html5_onesie_audio_only_playback")&& wJ(t)&&(M.Q_=1);var n;((n=D.j$)==null?0:n.iM)&&D.Cjy&&(M.Q_=M.Q_===void 0?7:M.Q_|4);n=t.p$?t.p$:g.sN(t);h.T("html5_onesie_media_capabilities")&&(M.mediaCapabilities=g.HFs(t,n,h));var R;if((R=D.j$)==null?0:v8(R)){a=h.D;R=[];X=[];F=new Map;V=Array.from(a.S.values());V=g.e(V);for(c=V.next();!c.done;c=V.next())S=c.value,S.q2?X.push({audioCodec:hS_[S.ij],numChannels:S.numChannels,spatialCapabilityBitmask:t49[S.ij]}):(b=QK1[S.ij],c={videoCodec:b,maxWidth:S.maxWidth||0,maxHeight:S.maxHeight||0,maxFramerate:S.maxFramerate|| 0,is10BitSupported:S.Op||!1},S.maxBitrateBps&&(c.maxBitrateBps=S.maxBitrateBps,w=ws(S.itag),T=void 0,((T=w)==null?0:T.video)&&r8(n,w,a)===!0&&(w=w.jH*8,w>c.maxBitrateBps&&(c.maxBitrateBps=w))),S=b+"_"+S.Op,b=F.get(S)||[],b.push(c),F.set(S,b));R=lvm(R,F);a={};h.T("html5_ssff_denylist_opus_low")&&(a={itagDenylist:[249,350]});M.mediaCapabilities={videoFormatCapabilities:R,audioFormatCapabilities:X,hdrModeBitmask:3,perPlaybackAttributes:a}}var v;if((v=D.j$)==null?0:v.S){M.yH=n.yH;var l;M.xw=(l=D.j$)== null?void 0:l.xw}h.kC&&(M.DY=h.kC);M.Sx=D.HF;M.GV=D.GV;M.Yz=D.Yz;M.hL=D.hL;D.Yn&&(M.iY2=(0,g.fi)()-D.Yn);D.dO&&h.T("html5_report_prefetch_requests")&&(M.dO=D.dO);z3||(M.B3j=!0);v=A1(H)*1E3;v>0&&(M.p5=v);var A;((A=D.j$)==null?0:A.wG)&&D.l9&&D.l90?Hs:H.interruptions[0]||0;var u;if((u=D.j$)==null?0:u.Mj)M.mK=D.mK;h.p$&&(M.audioTrackId=h.p$);xL(t)&&!M.audioTrackId&&(h.T("html5_fill_default_mosaic_audio_track_id")||(D=Ess(t),M.audioTrackId=D),t==null||t.SH("misstrkchg",{"default":M.audioTrackId}));if(D=Xri())M.detailedNetworkType=Nx1[D]||Nx1.other;h.T("html5_enable_voice_boost")&&!t.TI()&&(M.JSC=h.kY);return M}; dN=function(D,X,M,Q,h,H,t){var q={};X&&(q.cT=X);if(!D)return q;q.playbackCookie=M==null?void 0:M.playbackCookie;h&&(q.Wt=h);q.Pa=[];q.A0=[];if(t==null?0:t.size)for(X=g.e(t.values()),M=X.next();!M.done;M=X.next())q.A0.push(M.value);if(D.sabrContextUpdates.size>0)for(X=g.e(D.sabrContextUpdates.values()),M=X.next();!M.done;M=X.next())w2W(q,M.value,Q);Er(D)&&H&&w2W(q,H,Q);Q=D.W().S;q.clientInfo={clientName:Txo[Q.c.toUpperCase()]||0};Q.cbrand&&(q.clientInfo.deviceMake=Q.cbrand);Q.cmodel&&(q.clientInfo.deviceModel= Q.cmodel);Q.cver&&(q.clientInfo.clientVersion=Q.cver);Q.cos&&(q.clientInfo.osName=Q.cos);Q.cosver&&(q.clientInfo.osVersion=Q.cosver);Q=D.W();Q.T("html5_sabr_enable_server_xtag_selection")&&Q.ZJ&&(q.clientInfo.hl=Q.ZJ);D.Z8&&(q.Z8=D.Z8);return q}; w2W=function(D,X,M){var Q=X.type||0;(M==null?0:M.has(Q))?D.A0.push(X):D.Pa.push(Q)}; uP=function(D,X,M,Q,h,H){var t=H===void 0?{}:H;var q=t.kz===void 0?[]:t.kz;var w=t.SQ===void 0?!1:t.SQ;var T=t.JF===void 0?0:t.JF;var L=t.poToken===void 0?"":t.poToken;var K=t.h0===void 0?void 0:t.h0;var a=t.f4===void 0?"":t.f4;var F=t.LY===void 0?0:t.LY;var V=t.Dd===void 0?new Uint8Array(0):t.Dd;var c=t.dl===void 0?!1:t.dl;H=t.Zy===void 0?0:t.Zy;t=t.cT===void 0?void 0:t.cT;Z8.call(this,X,h);var S=this;this.policy=D;this.logger=new g.KF("dash/request");this.vR=this.HB=0;this.MC=!1;this.Fo=this.Cz= null;this.w9=!1;this.Dd=this.LY=null;this.Wo=this.EK=!1;this.W_=null;this.Zy=this.ST=0;this.Cn=!1;this.py={cC:function(n){S.cC(n)}, gPj:function(){return S.eA}, Fx4:function(n){S.eA=n}, WxF:function(n){S.HB=n}, lGR:function(n){S.Mx.lastError=n}, Fm:function(){return S.xhr}}; this.timing=new aP(this,M);this.SQ=w;this.LY=F;this.Dd=V;this.BD=g.Qy(this.info,this.policy,Q);this.BD.set("rn",this.Bh().toString());this.BD.set("rbuf",(T*1E3).toFixed().toString());this.SQ&&this.BD.set("smb","1");this.policy.It&&L&&this.BD.set("pot",L);a&&this.BD.set("bbs",a);this.policy.useUmp&&!td(80,this.BD.tS)&&(this.gU=new B8(this),this.BD.set("ump","1"),this.BD.set("srfvp","1"));if(D=this.policy.wV?this.policy.f5&&!isNaN(this.info.fY)&&this.info.fY>this.policy.Ea?!1:!0:!1)X=null,this.policy.yh&& this.policy.SS?X=[1]:c&&(X=[]),X!=null&&(this.policy.q8&&X.push(2),this.BD.set("defsel",X.join(",")));this.Mx=new EG(this,this.policy,this.BD,this.info.Uw,this.timing,this.logger,Q,K);this.kz=q||null;this.Jr=LDs(this);iqo(this.Mx);Q=void 0;if(this.policy.gh2||this.gU||this.policy.yf)Q={method:"POST"},q=(0,g.rN)([120,0]),K={},this.policy.au&&t&&(t=dN(void 0,t),K.fW=t),this.policy.Rr&&this.Dd&&(K.videoPlaybackUstreamerConfig=this.Dd),this.policy.yf&&(t=this.info.U)&&Object.assign(K,t),Object.keys(K).length> 0?Q.body=g.rF(K,g.as):Q.body=q;if(this.LY&&this.Dd){this.BD.set("iwts","1");Q={method:"POST"};t={hL:this.LY*1E3};var b;q=(b=this.info.U)==null?void 0:b.md;b=g.rF({hw:t,md:q||void 0,videoPlaybackUstreamerConfig:this.Dd},g.as);Q.body=b}try{this.xhr=c8(this.BD,this.policy.K,this.timing,D,Q),this.Mx.G.start(),H&&(this.nH=new g.W5(this.zj,H,this),this.nH.start(H+(this.timing.Hb.K.OW()||0)*1E3)),this.policy.MB&&KL(this.timing,this.QF()),g.SI(function(){})}catch(n){sKd(this,n,!0)}}; LDs=function(D){if(!(MH(D.info)&&D.info.iX()&&D.policy.QB&&D.kz)||D.info.Uw.Y>=2||Vf()>0||!TIn())return!1;var X=D.BD.get("aitags");if(!X)return!1;X=YZ(X).split(",");for(var M=[],Q=g.e(D.kz),h=Q.next();!h.done;h=Q.next())h=h.value,g.jb(X,h)&&M.push(h);if(!M.length)return!1;D.BD.set("altitags",g.A4(M.join(",")));return!0}; sKd=function(D,X,M){M=M===void 0?!1:M;g.ET(X);D.Mx.lastError="player.exception";D.errorMessage=X.name+"_"+X.message;M?g.SI(function(){m3(D.Mx)}):m3(D.Mx)}; KD_=function(D,X){D.timing.f$=!0;D.xhr.lR()&&D.timing.XL();if(D.policy.ZJ){var M;(M=D.nH)==null||M.stop()}SC(D.eA,X,!1)}; ao2=function(D){D.ST&&(D.xhr.status=D.ST,D.HB=D.ST)}; iy=function(D,X){LL.call(this,D,X);this.uj=!0;this.a5=!1;this.OR=this.yf=0;this.A$=NaN}; FDp=function(D,X,M){var Q=D.SR?Math.max(X,M/D.SR):X,h=D.Hb.G.Y;h&&(Q=X,D.SR&&(Q=Math.max(X,M/D.SR*h)));Ff(D.Hb,X,M,Q)}; oP=function(D,X){this.mz=X;this.G={};this.logger=new g.KF(D)}; CL=function(D){oP.call(this,"sabr",D);this.mz=D;this.S=[]}; V45=function(D,X,M){switch(X){case 35:D.F5(M);break;case 44:D.Pt(M);break;case 43:D.Pl(M);break;case 53:D.Mu(M);break;case 56:D.TV();break;case 57:D.YO(M);break;case 42:D.S4(M);break;case 45:D.Kz(M);break;case 59:D.ya(M);break;case 51:D.CL(M);break;case 49:D.AI(M);break;case 50:D.Ht(M);break;case 47:D.Xd(M);break;case 58:D.gy(M);break;case 61:D.mz.V2.lO((0,g.fi)());break;case 66:D.I9(M);break;case 46:D.Bt(M);break;case 67:D.onSnackbarMessage(M)}}; OG=function(D){g.O.call(this);this.U=D;this.logger=new g.KF("onesie");this.Nx=new Map;this.G=this.S=!1;this.j$=this.P2=null;this.Y=!1}; $Ho=function(D,X,M){D.Nx.get(X).onProgress=M}; YM=function(D,X){D.Nx.has(X)&&(pL?D.Nx.get(X).Ph.clear():D.Nx.get(X).PP=new Qi,AY(D,X),D.G=!0)}; Bx2=function(D){for(var X=g.e(D.Nx),M=X.next();!M.done;M=X.next()){var Q=g.e(M.value);M=Q.next().value;Q=Q.next().value;Q.Je||YM(D,M)}}; ZFo=function(D,X){X=D.Nx.get(X);if(!X)return 0;D=0;if(X.W2.length>0){X=g.e(X.W2);for(var M=X.next();!M.done;M=X.next()){var Q=void 0;D+=((Q=M.value.range)==null?void 0:Q.length)||0}return D}if(X.hI.length>0)for(M=g.e(X.hI),Q=M.next();!Q.done;Q=M.next())D+=Q.value.j9||0;return D+X.jW}; ly=function(D,X){if(pL){var M=0;D=D.Nx.get(X);if(D==null||!D.Ph)return 0;D=g.e(D.Ph.values());for(X=D.next();!X.done;X=D.next())M+=X.value.data.totalLength;return M}return((M=D.Nx.get(X))==null?void 0:M.PP.totalLength)||0}; JY=function(D,X){D=D.Nx.get(X);if(pL){if(D==null||!D.Je)return!1;X=D.Ph.size>0;return D.Z$.length>0||X}return!(D==null||!D.Je)&&!(D==null||!D.PP.totalLength)}; UH9=function(D,X){var M=D.Nx.get(X),Q=ZFo(D,X),h=!Q&&!!M.bytesReceived;if(pL){var H;if((H=D.P2)==null?0:H.yq){D=g.e(M.Ph.values());for(X=D.next();!X.done;X=D.next())if(!X.value.Tn)return!1;return h}}else if(H=D.u9(X),h&&D.S&&H!==void 0)return H;return(h||M.bytesReceived===Q)&&M.Av+ly(D,X)===M.bytesReceived}; cIs=function(D,X,M,Q){M.W2.push.apply(M.W2,g.xW(Q));if(pL){M.qy.has(X)||M.qy.set(X,[]);var h;(h=M.qy.get(X)).push.apply(h,g.xW(Q))}else if(M.eA)for(D=g.e(Q),X=D.next();!X.done;X=D.next())M.eA.W2.push(X.value);else{M.eA=new fL(D.j$,[].concat(g.xW(M.W2)));var H;((H=D.j$)==null?0:H.cW)&&g.p(D,M.eA)}}; fod=function(D,X,M){var Q,h=(Q=D.P2)==null?void 0:Q.Y.get(X);if(!h)return[];if(M.LS){var H;return((H=h.h7(0,M.clipId))==null?void 0:H.W2)||[]}if(h.KV()){var t=M.startMs,q=M.durationMs;Q=1E3;var w;if(((w=D.j$)==null?0:w.S)&&M.timeRange){var T;t=(T=M.timeRange.startTicks)!=null?T:-1;var L;q=(L=M.timeRange.xm)!=null?L:-1;var K;Q=(K=M.timeRange.timescale)!=null?K:-1}if(M.zg<0||M.fm<0||q<0||t<0||M.j9<0||Q<0)return YM(D,X),[];D=ls(M.zg,M.j9);X=M.IS||0;return[new xV(3,h,D,"makeSliceInfosMediaBytes",M.fm- 1,t/Q,q/Q,X,D.length-X,void 0,M.Zb,M.clipId)]}if(M.fm<0)return YM(D,X),[];var a;return((a=D.P2)==null?0:a.yq)?(X=h.oP,w=X*h.info.jH,T=M.IS,((t=D.j$)==null?0:t.S)&&D.U.vO()!=="ONESIE"&&M.timeRange&&!T&&(q=M.timeRange.startTicks/M.timeRange.timescale),[new xV(3,h,void 0,"makeSliceInfosMediaBytes",M.fm,q,X,T,w,!0,M.Zb,M.clipId)]):[]}; SMH=function(D,X,M){D.P2=X;D.j$=M;X=g.e(D.Nx);for(M=X.next();!M.done;M=X.next()){var Q=g.e(M.value);M=Q.next().value;Q=Q.next().value;for(var h=g.e(Q.qp),H=h.next();!H.done;H=h.next()){H=H.value;var t=fod(D,M,H);cIs(D,H.Jw,Q,t)}}}; xM=function(D,X,M,Q){(D=D.Nx.get(M))&&!D.Jh&&(pL?(D.Ph.has(X)||D.Ph.set(X,{data:new Qi,lJ:0,Tn:!1}),hG(D.Ph.get(X).data,Q)):hG(D.PP,Q),D.bytesReceived+=Q.totalLength,D.nP=!0)}; AY=function(D,X){if((X=D.Nx.get(X))&&!X.Jh){X.Jh=!0;if(X.onProgress)X.onProgress();a:{X=g.e(D.Nx.values());for(var M=X.next();!M.done;M=X.next())if(!M.value.Jh){X=!1;break a}X=!0}X&&D.U.XT()}}; EC1=function(D){pL=D}; W8=function(D,X,M,Q,h,H,t){g.O.call(this);this.policy=D;this.info=X;this.P2=M;this.mz=h;this.logger=new g.KF("sabr");this.gU=new B8(this);this.iQ=new CL(this);this.m3=new OG(this);this.state=1;this.Dv=!1;this.Oq=0;this.clipId="";this.UI=-1;this.jl=0;this.Js=-1;this.IT=this.Bg=this.Cn=this.Gc=!1;this.policy.h3?this.V2=new iy(this,H):this.V2=new aP(this,H);this.BD=this.policy.Mj?X.hB:yIR(X,this.policy,Q);this.BD.set("rn",""+this.Bh());this.BD.set("alr","yes");SMH(this.m3,M,D);this.Mx=new EG(this,this.policy, this.BD,X.Uw,this.V2,this.logger,Q,t,this.policy.enableServerDrivenRequestCancellation);iqo(this.Mx);var q;if((q=this.policy)==null?0:q.cW)g.p(this,this.m3),g.p(this,this.Mx);D=X.G;X={method:"POST",body:D};D&&(this.jl=D.length);try{this.xhr=c8(this.BD,this.policy.K,this.V2,z3,X),this.policy.MB&&KL(this.V2,this.QF()),this.Mx.G.start()}catch(w){g.P3(w)}}; Pki=function(D){D.policy.aI&&D.Rp&&!D.Bg?D.Bg=!0:D.V2.XL()}; mH_=function(D,X){var M=-1,Q=-1,h=-1,H;if((H=D.Xf)==null?0:H.items)for(D=g.e(D.Xf.items),H=D.next();!H.done;H=D.next())H=H.value,X=q,w=D.P2.isManifestless,t){var T;if(((T=D.S)==null?void 0:T.x$.event)==="predictStart"&&D.S.TsD.D&&(D.D=NaN,D.X=NaN);if(D.S&&D.S.Ts===X){if(Q=D.S,!D.policy.X||!D.policy.G)if(h&&Q){var t=Q.x$;H=h.xt(t);t.event==="predictStart"&&(D.f$=X);D.SH("sdai",{onqevt:t.event,sq:X,mt:M,gab:H,cst:t.startSecs,cueid:D.policy.xW&&(H||t.event==="start")?t.identifier:void 0},!0);if(H)if(t.event!=="predictStart")t.event==="start"&&D.f$===X-1&&D.SH("sdai", {gabonstart:X}),iF2(D,X,M,Q,h);else if(D.policy.NT)uy(D,3,"predict");else{X+=Math.max(Math.ceil(-t.S/5E3),1);var q=Math.floor(M-t.S/1E3);D.policy.G?D.Y=q:D.U=X;D.SH("sdai",{onpred:M,estsq:X,estmt:q.toFixed(3)});jC(D.loader,q,q,X);D.K=Date.now();uy(D,3,"predict");oCW(h,Q.x$)}else D.G===1?((q=D.Bb)==null?0:q.Nm?0:DW(q,M))?(jC(D.loader,M,M,X),uy(D,4,"sk2head")):uy(D,5,"nogab"):t.event==="predictStart"?D.policy.G&&D.Y>0?(M=Math.floor(M-t.S/1E3),D.Y!==M&&D.SH("sdai",{updateSt:M,old:D.Y}),D.Y=M):D.U>0&& (M=X+Math.max(Math.ceil(-t.S/5E3),1),D.U!==M&&(D.SH("sdai",{updateSt:M,old:D.U}),D.U=M)):D.policy.NT&&D.G===3&&iF2(D,X,M,Q,h)}else D.SH("sdai",{nulldec:1,sq:X,mt:M.toFixed(3),evt:(Q==null?void 0:(t=Q.x$)==null?void 0:t.event)||"none"})}else D.G===1&&uy(D,5,"noad")}; iF2=function(D,X,M,Q,h){Q.Ln?uy(D,4,"cue"):(D.D=X,D.X=M,D.SH("sdai",{joinad:D.G,sg:D.D,st:D.X.toFixed(3)}),D.K=Date.now(),uy(D,2,D.G===3?"staftpred":"join"),oCW(h,Q.x$))}; OFi=function(D,X,M){if(D.G===1||D.G===2)return!1;if(D.G!==0&&X===D.audioTrack){if(D.policy.G)return Ck1(D.videoTrack,M)||Ck1(D.videoTrack,M+1);D=X6(D.videoTrack);if(M>(D?D.Ts:-1))return!1}return!0}; Ma=function(D,X,M){return(M<0||M===D.D)&&!isNaN(D.X)?D.X:X}; gCd=function(D,X){if(D.S){var M=D.S.x$.rp-(X.startTime+D.J-D.S.x$.startSecs);M<=0||(M=new XV(D.S.x$.startSecs-(isNaN(D.J)?0:D.J),M,D.S.x$.context,D.S.x$.identifier,"stop",D.S.x$.S+X.duration*1E3),D.SH("cuepointdiscontinuity",{segNum:X.Ts}),kM(D,M,X.Ts))}}; uy=function(D,X,M){D.G!==X&&(D.SH("sdai",{setsst:X,old:D.G,r:M}),D.G=X)}; Q7=function(D,X,M,Q){(Q===void 0?0:Q)?uy(D,1,"seek"):X>0&&Math.abs(X-M)>=5&&D.G===4&&uy(D,5,"sk2t")}; p2s=function(D,X,M){var Q=this;this.U=D;this.SH=X;this.J=M;this.D="";this.G=new Set;this.S=new Map;this.X=-1;this.Y=0;this.py={mfz:function(){return Q.G}}}; AI9=function(D,X){for(var M="",Q=[],h=g.e(D.S.entries()),H=h.next();!H.done;H=h.next()){var t=g.e(H.value);H=t.next().value;t=t.next().value;var q=void 0,w=void 0,T=void 0;((q=t)==null?void 0:q.startTimeSecs)<=X&&X<=((w=t)==null?void 0:w.startTimeSecs)+((T=t)==null?void 0:T.rp)&&Q.push(H);w=q=void 0;M+=H+":"+((q=t)==null?void 0:q.startTimeSecs.toFixed(3))+":"+((w=t)==null?void 0:w.rp.toFixed(3))+";"}Q.length===0&&D.SH("clsdai",{no_cid:1,mt:X.toFixed(3),adConfigMap:M.substring(0,1024)});return Q}; YM1=function(D){if(!D)return"unknown";switch(D){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; los=function(D){switch(D){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; h_=function(D,X,M){this.audio=D;this.video=X;this.reason=M}; H4=function(D,X,M){this.S=D;this.reason=X;this.token=M;this.videoId=void 0}; t_=function(D,X,M){g.O.call(this);this.policy=D;this.U=X;this.SH=M;this.Y=new Map;this.D=0;this.X=!1;this.S="";this.G=!1}; Na=function(D,X,M){if(M===void 0?0:M)D.X=!0;++D.D;M=6E4*Math.pow(2,D.D);M=(0,g.fi)()+M;D.Y.set(X.info.id,M)}; qa=function(D){for(var X=g.e(D.Y.entries()),M=X.next();!M.done;M=X.next()){var Q=g.e(M.value);M=Q.next().value;Q=Q.next().value;Q<(0,g.fi)()&&D.Y.delete(M)}return D.Y}; JIp=function(D){return D.X&&qa(D).size>0}; wk=function(D,X){D.S!==X&&(D.S=X,D.G=!0)}; xH9=function(D,X){var M;X&&(M=g.xB(D.U.S,function(h){return h.id===X})); if(!M&&(M=g.xB(D.U.S,function(h){var H;return!((H=h.Cy)==null||!H.isDefault)}),X)){var Q; D.SH("iaf",{id:X,sid:(Q=M)==null?void 0:Q.id})}return M}; TM=function(D){this.S=this.G=0;this.alpha=Math.exp(Math.log(.5)/D)}; s9=function(D,X,M,Q,h,H){var t=this;H=H===void 0?[]:H;this.loader=D;this.a5=X;this.policy=M;this.P2=Q;this.X=h;this.o5=H;this.logger=new g.KF("dash/abr");this.S=GL;this.Y=this.J=null;this.eH=-1;this.uj=!1;this.nextVideo=this.G=null;this.U=[];this.OR=new Set;this.M5={};this.p$=new TM(1);this.K=0;this.A$=this.R5=this.f$=!1;this.sR=0;this.t$=!1;this.L$=new Set;this.yf=!1;this.py={Q6:function(){Lz(t)}}; this.D=new t_(this.policy,h,function(q,w){t.loader.SH(q,w)})}; uis=function(D,X,M){Kz(D,X);X=xH9(D.D,M);M||X||(X=WDi(D));X=X||D.X.S[0];D.G=D.P2.S[X.id];Lz(D);D.J=D.G;Gw2(D);zSW(D);D.Y=D.nextVideo;D.J=D.G;return kwm(D)}; DI_=function(D,X){if(jK_(D,X))return null;if(X.reason==="m"&&X.isLocked())return Kz(D,X),D.K=D.U.length-1,Lz(D),aY(D),D.R5=D.R5||D.Y!==D.nextVideo,D.Y=D.nextVideo,new h_(D.G,D.Y,X.reason);X.reason==="r"&&(D.eH=-1);Kz(D,X);aY(D);if(X.reason==="r"&&D.nextVideo===D.Y)return new h_(D.G,D.nextVideo,X.reason);D.Y&&D.nextVideo&&F6(D,D.Y.info)1.5&&D.loader.SH("overshoot",{sq:X.Ts,br:M,max:Q}))}}; V7=function(D,X,M){Na(D.D,X,M===void 0?!1:M);D.eH=-1;Kz(D,D.S)}; QA2=function(D,X){return new h_(D.J,D.Y,X||D.S.reason)}; kwm=function(D){D.uj?D.uj=!1:D.eH=(0,g.fi)();D.f$=!1;D.yf=!1;return new h_(D.J,D.Y,D.S.reason)}; hsm=function(D,X){var M={};X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())if((Q=Q.value)&&Q.video){var h=Q.video.qualityOrdinal,H=M[h],t=H&&mq(H)&&H.video.qualityOrdinal>D.policy.xw,q=h<=D.policy.xw?mq(Q):En(Q);if(!H||t||q)M[h]=Q}return M}; Kz=function(D,X){D.S=X;var M=D.X.videoInfos;if(!D.S.isLocked()){var Q=(0,g.fi)();M=g.vW(M,function(t){if(t.jH>this.policy.jH)return!1;var q=this.P2.S[t.id];return qa(this.D).get(t.id)>Q||q.Uw.Y>4||q.X>4?!1:this.L$.has(+t.itag)?!1:!0},D); JIp(D.D)&&(M=g.vW(M,function(t){return t.video.width<=854&&t.video.height<=480}))}M.length||(M=D.X.videoInfos); var h=M;D.policy.rX&&(h=HTs(D,h,X));h=g.vW(h,X.U,X);if(D.S.isLocked()&&D.D.S){var H=g.xB(M,function(t){return t.id===D.D.S}); H?h=[H]:wk(D.D,"")}D.policy.rX||(h=HTs(D,h,X));h.length||(h=[M[0]]);h.sort(function(t,q){return F6(D,t)-F6(D,q)}); X={};for(M=1;MX.vJ.video.width?(g.Dd(h,M),M--):F6(D,X.DZ)*D.policy.eH>F6(D,X.vJ)&&(g.Dd(h,M-1),M--);X=h[h.length-1];D.t$=!!D.Y&&!!D.Y.info&&D.Y.info.ij!==X.ij;D.U=h;D.OR.clear();M=!1;for(H=0;H=1080&&(M=!0);tOs(D.policy,X,D.P2.yq)}; HTs=function(D,X,M){var Q=M.reason==="m"||M.reason==="s";D.policy.bx&&$7&&g.ah&&(!Q||M.S<1080)&&(X=X.filter(function(T){return T.video&&(!T.G||T.G.powerEfficient)})); if(X.length>0)if(uw()){var h=hsm(D,X);X=X.filter(function(T){return!!T&&!!T.video&&T.ij===h[T.video.qualityOrdinal].ij})}else{var H,t,q=(H=X[0])==null?void 0:(t=H.video)==null?void 0:t.qualityOrdinal; if(q){M=X.filter(function(T){return!!T&&!!T.video&&T.video.qualityOrdinal===q}); var w=hsm(D,M)[q].ij;X=X.filter(function(T){return!!T&&!!T.video&&T.ij===w})}}return X}; N_n=function(D,X){for(var M=0;M+1Q}; Lz=function(D){if(!D.G||!D.policy.U&&!D.G.info.Cy){var X=D.X.S;D.G&&(X=X.filter(function(Q){return Q.audio.S===D.G.info.audio.S}),X.length||(X=D.X.S)); D.G=D.P2.S[X[0].id];if(X.length>1&&!D.policy.sR){if(!D.policy.iG){var M=g.xB(X,function(Q){return Q.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); M&&(D.G=D.P2.S[M.id])}M=!1;if(M=D.policy.l0?!0:D.S.isLocked()?D.S.S<240:N_n(D,D.G))D.G=D.P2.S[g.lW(X).id]}}}; aY=function(D){if(!D.nextVideo||!D.policy.U)if(D.S.isLocked())D.nextVideo=D.S.S<=360?D.P2.S[D.U[0].id]:D.P2.S[g.lW(D.U).id];else{for(var X=Math.min(D.K,D.U.length-1),M=xj(D.a5),Q=F6(D,D.G.info),h=M/D.policy.a5-Q;X>0&&!(F6(D,D.U[X])<=h);X--);for(M=M/D.policy.eH-Q;X=M);X++);D.nextVideo=D.P2.S[D.U[X].id];D.K=X}}; Gw2=function(D){var X=D.policy.a5,M=xj(D.a5)/X-F6(D,D.G.info);X=g.Gy(D.U,function(Q){return F6(this,Q)H?h=0:Q[t]>D.buffered[t]&&(t===H-1?h=2:t===H-2&&Q[t+1]>D.buffered[t+1]&&(h=3))}D.S.add(X<<3|(M&&4)|h);X=Math.ceil(D.track.pk()*1E3);D.S.add(X-D.D);D.D=X;if(h===1)for(D.S.add(H),t=X=0;t=2&&D.S.add(Q[H- 1]-D.buffered[H-1]);M&&D.S.add(M);D.buffered=Q}; SD=function(D,X,M){var Q=this;this.policy=D;this.S=X;this.sR=M;this.U=this.G=0;this.N2=null;this.f$=new Set;this.eH=[];this.indexRange=this.initRange=null;this.K=new ql;this.R5=this.a5=!1;this.py={Lpf:function(){return Q.Y}, cny:function(){return Q.chunkSize}, Bmf:function(){return Q.J}, HQR:function(){return Q.X}}; (X=KaW(this))?(this.chunkSize=X.csz,this.Y=Math.floor(X.clen/X.csz),this.J=X.ck,this.X=X.civ):(this.chunkSize=D.gh,this.Y=0,this.J=g.sB(16),this.X=g.sB(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.X&&(this.crypto=new Ivn(this.J,this.X))}; KaW=function(D){if(D.policy.WB&&D.policy.Ru)for(var X=g.e(D.policy.WB),M=X.next(),Q={};!M.done;Q={YJ:void 0,yY:void 0},M=X.next())if(M=g.HX(M.value),Q.YJ=+M.clen,Q.yY=+M.csz,Q.YJ>0&&Q.yY>0&&D.policy.U===M.docid&&D.S.info.id===M.fmtid&&D.S.info.lastModified===+M.lmt)return D={},D.clen=Q.YJ,D.csz=Q.yY,D.ck=M.ck,D.civ=M.civ,D}; E9=function(D){return!!D.N2&&D.N2.TC()}; VOR=function(D,X){if(!E9(D)&&!D.H2()){if(!(D.a5||(D.a5=!0,D.Y>0))){var M=y7(D);M=oT(D.policy.U,D.S.info,P4(D),M,D.policy.o5);mc(D,M)}if(X.info.type===1){if(D.N2){nz(D,Error("Woffle: Expect INIT slices to always start us off"));return}D.initRange=ls(0,X.G.totalLength)}else if(X.info.type===2)D.N2&&D.N2.type===1||nz(D,Error("Woffle: Index before init")),D.indexRange=ls(D.initRange.end+1,X.G.totalLength);else if(X.info.type===3){if(!D.N2){nz(D,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(D.N2.type===3&&!zQ(D.N2,X.info)&&(D.eH=[],X.info.Ts!==kV(D.N2)||X.info.S!==0))return;if(X.info.Y){M=g.e(D.eH);for(var Q=M.next();!Q.done;Q=M.next())aEm(D,Q.value);D.eH=[]}else{D.eH.push(X);D.N2=X.info;return}}else{nz(D,Error("Woffle: Unexpected slice type"));return}D.N2=X.info;aEm(D,X);Fa9(D)}}; aEm=function(D,X){var M=0,Q=qG(X.G);if(D.U=Q.length)return;if(M<0)throw Error("Missing data");D.U=D.Y;D.G=0}for(h={};M0){var t=Q.getUint32(M+28);H+=t*16+4}var q=Q.getUint32(M+H-4);try{var w=c0p(X.subarray(M+H,M+H+q));if(w!==null){var T=w;break a}}catch(L){}}M+=h}T=null;break a}catch(L){T=null;break a}T=void 0}if(T!=null)for(X=g$(aG(T,7,void 0,GF)),X==null||D.VF||(D.cryptoPeriodIndex=X),X=g$(aG(T,10,void 0,GF)),X!=null&&X>0&& !D.VF&&(D.S=X),T=cl(T,2,WvR,void 0===kD5?2:4),T=g.e(T),Q=T.next();!Q.done;Q=T.next())X=D.Y,M=X.push,Q=zN(Q.value),Q=g.C7(Q,4),M.call(X,Q)}; SWn=function(D){return isNaN(D.cryptoPeriodIndex)?g.C7(D.initData):""+D.cryptoPeriodIndex}; RY=function(D,X,M){var Q=M===void 0?{}:M;M=Q.videoDuration===void 0?0:Q.videoDuration;var h=Q.i7===void 0?void 0:Q.i7;Q=Q.E3===void 0?!1:Q.E3;this.videoId=D;this.status=X;this.videoDuration=M;this.i7=h;this.E3=Q}; Evi=function(D,X,M,Q,h){this.videoId=D;this.al=X;this.G=M;this.bytesDownloaded=Q;this.S=h}; IY=function(D){this.S=D;this.offset=0}; gk=function(D){if(D.offset>=D.S.totalLength)throw Error();return Tg(D.S,D.offset++)}; y0n=function(D,X){X=X===void 0?!1:X;var M=gk(D);if(M===1){X=-1;for(M=0;M<7;M++){var Q=gk(D);X===-1&&Q!==255&&(X=0);X>-1&&(X=X*256+Q)}return X}Q=128;for(var h=0;h<6&&Q>M;h++)M=M*256+gk(D),Q*=128;return X?M:M-Q}; PSW=function(D){try{var X=y0n(D,!0),M=y0n(D,!1);return{id:X,size:M}}catch(Q){return{id:-1,size:-1}}}; mIp=function(D){for(var X=new IY(D),M=-1,Q=0,h=0;!Q||!h;){var H=PSW(X),t=H.id;H=H.size;if(t<0)return;if(t===176){if(H!==2)return;Q=X.o4()}else if(t===186){if(H!==2)return;h=X.o4()}t===374648427?M=X.o4()+H:t!==408125543&&t!==174&&t!==224&&X.skip(H)}X=wF(D,0,M);M=new DataView(X.buffer);M.setUint16(Q,3840);M.setUint16(h,2160);Q=new Qi([X]);hG(Q,D);return Q}; nvW=function(D,X,M){var Q=this;this.loader=D;this.policy=X;this.n$=M;this.logger=new g.KF("dash");this.G=[];this.S=null;this.R5=-1;this.K=0;this.sR=NaN;this.eH=0;this.Y=NaN;this.J=this.M5=0;this.A$=-1;this.L$=this.U=this.D=this.a5=null;this.t$=this.OR=NaN;this.X=this.f$=this.yf=this.p$=null;this.o5=!1;this.uj=this.timestampOffset=0;this.py={nE:function(){return Q.G}}; if(this.policy.U){var h=this.n$,H=this.policy.U;this.policy.o5&&D.SH("atv",{ap:this.policy.o5});this.X=new SD(this.policy,h,function(t,q,w){D.zs.Gi(new RY(Q.policy.U,2,{i7:new Evi(H,t,h.info,q,w)}))}); this.X.K.promise.then(function(t){Q.X=null;t===1?D.zs.Gi(new RY(Q.policy.U,t)):Q.loader.SH("offlineerr",{status:t.toString()})},function(t){var q=(t.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); t instanceof bX&&!t.S?(Q.loader.SH("offlinenwerr",{em:q}),v4(Q),D.zs.Gi(new RY(Q.policy.U,4))):(Q.loader.SH("dldbwerr",{em:q}),v4(Q),D.zs.Gi(new RY(Q.policy.U,4,{E3:!0})))})}}; bTm=function(D){return D.G.length?D.G[0]:null}; ess=function(D,X){return D.G.some(function(M){return M.info.Ts===X})}; dI1=function(D,X,M,Q){Q=Q===void 0?0:Q;if(D.U){var h=D.U.S+D.U.G;if(M.info.S>0)if(M.info.Ts===D.U.Ts&&M.info.S=0&&D.U.Ts>=0&&!zQ(D.U,M.info))throw new g.ys("improper_continuation",D.U.HC(),M.info.HC());f$R(D.U,M.info)||dk(D,"d")}else if(M.info.S>0)throw new g.ys("continuation_of_null",M.info.HC());D.U=M.info;D.n$=M.info.n$;if(M.info.S===0){if(D.S)if(!D.loader.isOffline()||D.policy.X1)D.loader.SH("slice_not_fully_processed", {buffered:D.S.info.HC(),push:M.info.HC()});else throw new g.ys("slice_not_fully_processed",D.S.info.HC(),M.info.HC());rk(D);D.M5=Q}else{if(D.M5&&Q&&D.M5!==Q)throw D=new g.ys("lmt_mismatch",M.info.Ts,D.M5,Q),D.level="WARNING",D;!M.info.n$.KV()&&D.D&&(Q=M.info,h=D.D.UI,Q.X="updateWithEmsg",Q.Ts=h)}if(D.S){Q=g.$C(D.S,M);if(!Q)throw new g.ys("failed_to_merge",D.S.info.HC(),M.info.HC());D.S=Q}else D.S=M;a:{M=g.Is(D.S.info.n$.info);if(D.S.info.type!==3){if(!D.S.info.Y)break a;D.S.info.type===6?Rs1(D,X, D.S):IE9(D,D.S);D.S=null}for(;D.S;){Q=D.S.G.totalLength;if(D.R5<=0&&D.K===0){var H=D.S.G,t=-1;h=-1;if(M){for(var q=0;q+80))break;if(K!==408125543)if(K===524531317)q=!0,L>=0&&(h=H.o4()+L,w=!0);else{if(q&&(K===160||K===163)&&(t<0&&(t=T),w))break;K===163&&(t=Math.max(0,t),h=H.o4()+L);if(K===160){t<0&&(h=t= H.o4()+L);break}H.skip(L)}}t<0&&(h=-1)}if(t<0)break;D.R5=t;D.K=h-t}if(D.R5>Q)break;D.R5?(Q=gvm(D,D.R5),Q.D&&vvd(D,Q),Rs1(D,X,Q),iX(D,Q),D.R5=0):D.K&&(Q=gvm(D,D.K<0?Infinity:D.K),D.K-=Q.G.totalLength,iX(D,Q))}}D.S&&D.S.info.Y&&(iX(D,D.S),D.S=null)}; IE9=function(D,X){!X.info.n$.KV()&&X.info.S===0&&(g.Is(X.info.n$.info)||X.info.n$.info.VF())&&HEs(X);if(X.info.type===1)try{vvd(D,X),r0W(D,X)}catch(h){g.ET(h);var M=us(X.info);M.hms="1";D.loader.handleError("fmt.unparseable",M||{},1)}M=X.info.n$;M.ej(X);D.X&&VOR(D.X,X);if(M.hh()&&D.policy.S)a:{D=D.loader.P2;X=X.info.clipId;M=g.vE(M.info,D.yq);if(X){var Q=Cq({itag:M.itag,lmt:D.yq?0:M.lmt||0,xtags:M.xtags});if(D.t$[Q])break a;D.t$[Q]=X}D.A$.push(M)}}; VzH=function(D,X,M){if(D.G.length!==0&&(M||D.G.some(function(H){return H.info.U=Cz(t)+q):X=D.getDuration()>=t.getDuration(),X=!X;X&&ovo(M)&&(X=D.a5,oY?(q=QsH(M),t=1/q,q=Cz(D,q),X=Cz(X)+t-q):X=X.getDuration()- D.getDuration(),X=1+X/M.info.duration,jd1(g.Vy(M),X))}else{t=!1;D.D||(HEs(M),M.S&&(D.D=M.S,t=!0,h=M.info,H=M.S.UI,h.X="updateWithEmsg",h.Ts=H,h=M.S,h.TC&&(H=D.n$.index,H.G=!h.TC,H.Y="emsg"),h=M.info.n$.info,H=g.Vy(M),g.Is(h)?Kq(H,1701671783):h.VF()&&cY([408125543],307544935,H)));a:if((h=UM(M,D.policy.Ky))&&h11(M))q=CSs(D,M),D.J+=q,h-=q,D.eH+=h,D.Y=D.policy.J2?D.Y+h:NaN;else{if(D.policy.xN){if(H=w=D.loader.fz(g.B2(M),1),D.Y>=0&&M.info.type!==6){if(D.policy.J2&&isNaN(D.OR)){g.P3(new g.ys("Missing duration while processing previous chunk", M.info.HC()));D.loader.isOffline()&&!D.policy.X1||OTp(D,M,H);dk(D,"m");break a}Q=w-D.Y;var T=Q-D.J,L=M.info.Ts,K=D.L$?D.L$.Ts:-1,a=D.t$,F=D.OR,V=D.policy.GT&&Q>D.policy.GT,c=Math.abs(T)>10,S=Math.abs(D.Y-H)<1E-7;if(Math.abs(T)>1E-4){D.uj+=1;var b=(q=D.D)==null?void 0:WVR(q);q={audio:""+ +D.q2(),sq:L.toFixed(),sliceStart:w,lastSq:K.toFixed(),lastSliceStart:a,lastSliceDuration:F,totalDrift:(Q*1E3).toFixed(),segDrift:(T*1E3).toFixed(),skipRewrite:""+ +(V||c)};if(b==null?0:b.length)q.adCpn=b[0];D.loader.handleError("qoe.avsync", q);D.A$=L}V||c||S||(H=D.Y);q=CSs(D,M,w);h-=q;D.J=Q+q}}else H=isNaN(D.Y)?M.info.startTime:D.Y;OTp(D,M,H)&&(D.eH+=h,D.Y=H+h,D.policy.Re&&D.uj>=D.policy.Re&&(D.uj=0,D.loader.XR({resetForRewrites:"count"})))}D.L$=M.info;D.OR=Zo(M);M.Y>=0&&(D.t$=M.Y);if(t&&D.D){t=pkn(D,!0);jz(M.info,t);D.S&&jz(D.S.info,t);X=g.e(X);for(q=X.next();!q.done;q=X.next())q=q.value,h=void 0,D.policy.D&&q.Ts!==((h=D.D)==null?void 0:h.UI)||jz(q,t);(M.info.Y||D.S&&D.S.info.Y)&&M.info.type!==6||(D.f$=t,D.policy.G?(X=A0s(D.D),D.loader.ek(D.n$, t,X)):(X=D.loader,X.P2.isManifestless&&YWi(X,t,null,!!D.n$.info.video)),D.policy.kC||lEp(D))}}r0W(D,M);D.timestampOffset&&XEp(M,D.timestampOffset)}; iX=function(D,X){if(X.info.Y){D.p$=X.info;if(D.D){var M=D.D,Q=pkn(D,!1);M=A0s(M);D.loader.ek(D.n$,Q,M);D.f$||D.policy.kC||lEp(D);D.f$=null}rk(D)}D.X&&VOR(D.X,X);if(Q=D.jL())if(Q=g.$C(Q,X,D.policy.oQ,D.policy.p6)){D.G.pop();D.G.push(Q);return}D.G.push(X)}; A0s=function(D){if(D.Ln()){var X=D.data["Stitched-Video-Id"]?D.data["Stitched-Video-Id"].split(",").slice(0,-1):[],M=WVR(D),Q=[];if(D.data["Stitched-Video-Duration-Us"])for(var h=g.e(D.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),H=h.next();!H.done;H=h.next())Q.push((Number(H.value)||0)/1E6);h=[];if(D.data["Stitched-Video-Start-Frame-Index"]){H=g.e(D.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var t=H.next();!t.done;t=H.next())h.push(Number(t.value)||0)}h=[]; if(D.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(H=g.e(D.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),t=H.next();!t.done;t=H.next())h.push((Number(t.value)||0)/1E6);D=new UIs(X,M,Q,h,g.GHo(D),g.zfd(D))}else D=null;return D}; rk=function(D){D.S=null;D.R5=-1;D.K=0;D.D=null;D.sR=NaN;D.eH=0;D.f$=null}; dk=function(D,X){X={rst4disc:X,cd:D.J.toFixed(3),sq:D.L$?D.L$.Ts:-1};D.Y=NaN;D.J=0;D.A$=-1;D.L$=null;D.t$=NaN;D.OR=NaN;D.yf=null;D.loader.SH("mdstm",X)}; r0W=function(D,X){if(D.isDrm()){if(X.info.n$.info.VF()){var M=new FV(g.Vy(X));if($V(M,[408125543,374648427,174,28032,25152,20533,18402])){var Q=Ua(M,!0);M=Q!==16?null:yq(M,Q)}else M=null;Q="webm"}else X.info.K=B_i(g.Vy(X)),M=ZT2(X.info.K),Q="cenc";M&&M.length&&(M=new eD(M,Q),D.policy.rK&&g.Is(X.info.n$.info)&&(Q=H9i(g.Vy(X)))&&(M.G=Q),M.VF=X.info.n$.info.VF(),X.S&&X.S.cryptoPeriodIndex&&(M.cryptoPeriodIndex=X.S.cryptoPeriodIndex),X.S&&X.S.G&&(M.S=X.S.G),D.loader.DG(M))}}; lEp=function(D){var X=D.D,M=Jfp(X);M&&(M.startSecs+=D.sR,D.loader.rg(D.n$,M,X.UI,X.Ln()))}; pkn=function(D,X){var M,Q=D.D;if(M=Jfp(Q))M.startSecs+=D.sR;var h=D.sR,H=0;D.n$ instanceof hI&&(H=D.n$.oP);return new l5(Q.UI,h,X?H:D.eH,Q.ingestionTime,"sq/"+Q.UI,void 0,void 0,X,M)}; OTp=function(D,X,M){if(!D0R(X,M))return X=us(X.info),X.smst="1",D.loader.handleError("fmt.unparseable",X||{},1),!1;isNaN(D.sR)&&(D.sR=M);return!0}; CSs=function(D,X,M){var Q=0;if(X.info.n$.info.VF()&&!h11(X))return 0;if(D.a5&&!D.q2()){var h=0;M&&g.Is(X.info.n$.info)?h=M-D.Y:X.info.n$.info.VF()&&(h=D.J);var H=X.info.Ts;M=UM(X,D.policy.Ky);var t=D.a5;var q=t.A$;t=t.J;var w=Math.abs(t-h)>.02;if((H===q||H>q&&H>D.A$)&&w){Q=Math.max(.95,Math.min(1.05,(M-(t-h))/M));if(g.Is(X.info.n$.info))jd1(g.Vy(X),Q);else if(X.info.n$.info.VF()&&(H=h-t,!g.Is(X.info.n$.info)&&(X.info.n$.info.VF(),Q=new FV(g.Vy(X)),q=X.D?Q:new FV(new DataView(X.info.n$.S.buffer)), UM(X,!0)))){var T=H*1E3,L=mQ(q);q=Q.pos;Q.pos=0;if(Q.S.getUint8(Q.pos)===160||nq(Q))if(Zv(Q,160))if(Ua(Q,!0),Zv(Q,155)){if(H=Q.pos,w=Ua(Q,!0),Q.pos=H,T=T*1E9/L,L=fq(Q),T=L+Math.max(-L*.7,Math.min(L,T)),T=Math.sign(T)*Math.floor(Math.abs(T)),!(Math.ceil(Math.log(T)/Math.log(2)/8)>w)){Q.pos=H+1;for(H=w-1;H>=0;H--)Q.S.setUint8(Q.pos+H,T&255),T>>>=8;Q.pos=q}}else Q.pos=q;else Q.pos=q;else Q.pos=q}Q=UM(X,D.policy.Ky);Q=M-Q}Q&&X.info.n$.info.VF()&&D.loader.SH("webmDurationAdjustment",{durationAdjustment:Q, videoDrift:h+Q,audioDrift:t})}return Q}; ovo=function(D){return D.info.n$.KV()&&D.info.Ts===D.info.n$.index.oN()}; Cz=function(D,X){X=(X=X===void 0?0:X)?Math.round(D.timestampOffset*X)/X:D.timestampOffset;D.n$.U&&X&&(X+=D.n$.U.S);return X+D.getDuration()}; J0i=function(D,X){X<0||(D.G.forEach(function(M){XEp(M,X)}),D.timestampOffset=X)}; kj=function(D,X,M,Q,h){Z8.call(this,M,h);var H=this;this.policy=D;this.formatId=X;this.m3=Q;this.lastError=null;this.onProgress=function(){H.H2()||(H.m3.Nx.has(H.formatId)?(H.isComplete()||H.S.start(),JY(H.m3,H.formatId)&&H.HT(2),H.m3.Jh(H.formatId)&&(UH9(H.m3,H.formatId)?H.cC(4):(H.lastError="net.closed",H.cC(5)))):(H.lastError="player.exception",H.cC(5)))}; this.S=new g.W5(function(){H.isComplete()||(H.lastError="net.timeout",H.cC(5))},1E3); this.S.start();$Ho(this.m3,this.formatId,this.onProgress);g.SI(this.onProgress)}; O9=function(D,X,M,Q){g.O.call(this);var h=this;this.loader=D;this.policy=X;this.n$=M;this.timing=Q;this.logger=new g.KF("dash");this.G=[];this.a5=[];this.S=this.I2=null;this.yf=!1;this.M5=this.uj=0;this.D=-1;this.R5=!1;this.sR=-1;this.L$=null;this.f$=NaN;this.eH=[];this.py={Cr:function(){return h.Y}, nPH:function(){return h.G}, XZj:function(){return h.J}}; this.Y=new nvW(D,X,M);this.policy.S&&(this.J=new G6(this.Y,this.loader.getManifest(),this.policy,function(H){h.policy.HZ&&h.SH("buftl",H)})); this.policy.qj&&(this.K=new c4(this));this.jH=M.info.jH;this.X=this.policy.R5?!1:M.iV();this.isManifestless=M.iV();this.U=this.X;g.p(this,this.L$)}; pz=function(D,X,M){M=M===void 0?!1:M;X&&oY&&J0i(D.Y,X.i8());if(!M){var Q;(Q=D.J)==null||sJn(Q)}D.I2=X;(X=D.J)!=null&&(X.I2=D.I2)}; A_=function(D){var X=D.I2&&D.I2.xf();if(D.policy.KS){if((D=D.J)==null)D=void 0;else{var M;D=(M=D.Y)==null?void 0:M.info}return D||null}return X}; xIs=function(D){for(var X={},M=0;M4&&D.a5.shift()}; Wam=function(D,X){if(X.YE()){var M=X.LV();M=g.e(M);for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,D.policy.Y&&X instanceof kj&&D.SH("omblss",{s:Q.info.HC()}),lX(D,X.info.W2,Q,X.kA())}}; lX=function(D,X,M,Q){Q=Q===void 0?0:Q;isNaN(D.f$)||(D.SH("aswm",{sq:X[0].Ts,id:X[0].n$.info.itag,xtag:X[0].n$.info.S,ep:Date.now()-D.f$}),D.f$=NaN);switch(M.info.type){case 1:case 2:Gci(D,M);break;case 4:var h=M.info.n$,H=h.AG(M),t;((t=D.S)==null?0:t.type===4)&&b9W(M.info,D.S)&&(D.S=h.Fi(D.S).pop());M=g.e(H);for(h=M.next();!h.done;h=M.next())lX(D,X,h.value,Q);break;case 3:M.info.n$.info.video?(h=D.timing,h.L$||(h.L$=(0,g.fi)(),g.Ef("fvb_r",h.L$,h.S))):(h=D.timing,h.X||(h.X=(0,g.fi)(),g.Ef("fab_r", h.X,h.S)));dI1(D.Y,X,M,Q);D.policy.S&&zs_(D);break;case 6:dI1(D.Y,X,M,Q),D.S=M.info}}; Gci=function(D,X){if(X.info.type===1)if(X.info.n$.info.video){var M=D.timing;M.uj||(M.uj=(0,g.fi)(),g.Ef("vis_r",M.uj,M.S))}else M=D.timing,M.K||(M.K=(0,g.fi)(),g.Ef("ais_r",M.K,M.S));IE9(D.Y,X);D=D.loader;D.videoTrack.n$.hh()&&D.audioTrack.n$.hh()&&D.policy.S&&!D.P2.yq&&(X=D.audioTrack.getDuration(),M=D.videoTrack.getDuration(),Math.abs(X-M)>1&&D.SH("trBug",{af:""+g.vE(D.audioTrack.n$.info,!1),vf:""+g.vE(D.videoTrack.n$.info,!1),a:""+X,v:""+M}))}; tY=function(D){return bTm(D.Y)}; zs_=function(D){D.G.length?D.S=g.lW(g.lW(D.G).info.W2):D.Y.G.length?D.S=D.Y.jL().info:D.S=A_(D)}; J_=function(D,X){var M={LK:[],Gu:[]},Q;if((D=D.J)==null)D=void 0;else{LQW(D,D.LK,"og");qa2(D,X);LQW(D,D.LK,"trim");var h=Trm(D);X=h.LK;h=h.Rf;for(var H=[],t=0;t0){var a=pE(K,w);a>=0&&(L=(K.end(a)-w+.1)*1E3)}H.push({formatId:g.vE(q.info.n$.info,D.P2.yq), Zb:q.info.Zb,sequenceNumber:q.info.Ts+D.U,Vg:T,cE:q.info.G,X0:L})}D={LK:X,Gu:H}}return(Q=D)!=null?Q:M}; D8=function(D,X,M){M=M===void 0?!1:M;if(D.I2){var Q=D.I2.K6(),h=YP(Q,X),H=NaN,t=A_(D);t&&(H=YP(Q,t.n$.index.getStartTime(t.Ts)));if(h===H&&D.S&&D.S.G&&kcn(x7(D),0))return X}D=W4(D,X,M);return D>=0?D:NaN}; MR=function(D,X,M){D.n$.hh();var Q=W4(D,X);if(Q>=0)return Q;var h;(h=D.J)==null||wYs(h,X,M);Q=Math;h=Q.min;var H=D.Y;if(H.X)if(H=H.X,H.N2&&H.N2.type===3)H=H.N2.startTime;else if(H.Y>0){var t=H.S.index;t=g.sK(t.offsets.subarray(0,t.count),H.Y*H.chunkSize);H=H.S.index.getStartTime(t>=0?t:Math.max(0,-t-2))}else H=0;else H=Infinity;X=h.call(Q,X,H);D.S=D.policy.R5?null:D.n$.uG(X).W2[0];GM(D)&&(D.policy.OQ&&(M==null?void 0:M.seekSource)===60||D.I2&&D.I2.abort(),D.policy.vV&&(M=D.J)!=null&&(M.Y=void 0)); D.M5=0;return D.S?D.S.startTime:X}; avs=function(D){D.X=!0;D.U=!0;D.D=-1;MR(D,Infinity)}; zM=function(D){for(var X=0,M=g.e(D.G),Q=M.next();!Q.done;Q=M.next())X+=Rcd(Q.value.info);return X+=iT1(D.Y)}; uX=function(D,X){X=X===void 0?!1:X;var M=D.loader.getCurrentTime(),Q=D.Y.jL(),h=(Q==null?void 0:Q.info.D)||0;if((Q==null?0:Q.info.n$.iV())&&!Q.info.Y)if(D.policy.yL)h=Q.info.U;else if(D.policy.U0){var H=Q.info;h=H.range?H.D:Math.min(H.startTime+Math.min(H.duration*H.S/H.n$.info.jH,H.duration)+(H.range?H.J:Math.min(H.duration,H.duration*H.G/H.n$.info.jH)),H.startTime+H.duration)}if(!D.I2){if((D.policy.S||D.policy.oa)&&X&&!isNaN(M)){if(Q)return h-M;if(D.policy.oa&&D.n$.info.ij==="f")return Infinity}return 0}if((H= A_(D))&&k7(H))return H.D;var t=D.I2.K6(!0);if(X&&Q)return H=0,D.policy.S&&(H=xP(t,h+.02)),H+h-M;X=xP(t,M);D.policy.LM&&H&&(Q=pE(t,M),t=pE(t,H.U-.02),Q===t&&(M=H.D-M,D.policy.Y&&M>X+.02&&D.SH("abh",{bh:X,bhtls:M}),X=Math.max(X,M)));return X}; uIn=function(D){var X=A_(D);return X?X.D-D.loader.getCurrentTime():0}; jD=function(D,X,M,Q){if(!D.n$.index.h6(X,!0))return!1;try{j_(D);for(var h=D.Y,H=null,t=h.G.length-1;t>=0;t--){var q=h.G[t];q.info.Ts>=X&&(h.G.pop(),h.Y-=UM(q,h.policy.Ky),H=q.info)}H&&(h.U=h.G.length>0?h.G[h.G.length-1].info:h.yf,h.G.length!==0||h.U||dk(h,"r"));h.loader.SH("mdstm",{rollbk:1,itag:H?H.n$.info.itag:"",popped:H?H.Ts:-1,sq:X,lastslc:h.U?h.U.Ts:-1,lastfraget:h.Y.toFixed(3)});if(D.policy.S)return D.S=null,!0;Q>M?MR(D,Q):D.S=D.n$.XE(X-1,!1).W2[0]}catch(w){return X=uZ(w),X.details.reason= "rollbkerr",D.loader.handleError(X.errorCode,X.details,X.severity),!1}return!0}; XA=function(D,X){var M;for(M=0;M0?M||X.Ts>=D.sR:M}; Mk=function(D){var X;return GM(D)||k7((X=D.Y.jL())==null?void 0:X.info)}; x7=function(D){var X=[],M=A_(D);M&&X.push(M);X=g.hy(X,D.Y.Gx());M=g.e(D.G);for(var Q=M.next();!Q.done;Q=M.next()){Q=Q.value;for(var h=g.e(Q.info.W2),H=h.next(),t={};!H.done;t={u6:void 0},H=h.next())t.u6=H.value,Q.x3&&(X=g.vW(X,function(q){return function(w){return!b9W(w,q.u6)}}(t))),(GQ(t.u6)||t.u6.type===4)&&X.push(t.u6)}D.S&&!UFn(D.S,g.lW(X),D.S.n$.KV())&&X.push(D.S); return X}; kcn=function(D,X){if(!D.length)return!1;for(X+=1;X=X){X=H;break a}}X=h}return X<0?NaN:kcn(D,M?X:0)?D[X].startTime:NaN}; Qo=function(D){return!(!D.S||D.S.n$===D.n$)}; jAH=function(D,X,M){return D.policy.S?uX(D,!0)X&&D.D1080&&!D.rG&&(D.OR=36700160,D.q5=5242880,D.A$=Math.max(4194304,D.A$),D.rG=!0);X.video.qualityOrdinal>2160&&!D.sT&&(D.OR=104857600,D.jH=13107200,D.sT=!0);g.lx(D.UR.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?X.isEncrypted()&&g.xH()&&g.lE("samsung")&&(g.lE("kant")||g.lE("muse"))&&(D.jH=g.lx(D.UR.experiments,"html5_samsung_kant_limit_max_bitrate")):X.isEncrypted()&&g.xH()&&g.lE("kant")&&(D.jH=1310720);D.O$!==0&&X.isEncrypted()&& (D.jH=D.O$);D.oA!==0&&X.isEncrypted()&&M&&(D.jH=D.oA);X.jH&&(D.B0=Math.max(D.Cj,Math.min(D.A$,5*X.jH)))}; v8=function(D){return D.S&&D.l$}; Nk=function(D){return D.S&&D.XV&&D.playbackStartPolicy}; qk=function(D,X,M,Q){D.XV&&(D.playbackStartPolicy=X,D.JW=M,D.C1=Q)}; t3=function(D,X,M){M=M===void 0?0:M;return g.lx(D.UR.experiments,X)||M}; wU9=function(D){var X=D===void 0?{}:D;D=X.SS;var M=X.aP;var Q=X.x5;var h=X.oN;X=X.Gn;this.SS=D;this.aP=M;this.x5=Q;this.oN=h;this.Gn=X}; nVR=function(D,X){if(X<0)return!0;var M=D.oN();return X0)return 2;if(X<0)return 1;M=D.oN();return X(0,g.fi)()?0:1}; LK=function(D,X,M,Q,h,H,t,q,w,T,L,K,a,F){F=F===void 0?null:F;g.O.call(this);var V=this;this.loader=D;this.policy=X;this.videoTrack=M;this.audioTrack=Q;this.Y=h;this.S=H;this.timing=t;this.U=q;this.schedule=w;this.P2=T;this.G=L;this.eH=K;this.dl=a;this.Dd=F;this.f$=!1;this.f4="";this.fV=null;this.fY=NaN;this.R5=!1;this.Bb=null;this.LY=this.K=NaN;this.Zy=this.D=0;this.logger=new g.KF("dash");this.py={lk:function(c,S){return V.lk(c,S)}}; this.policy.LA>0&&(this.f4=g.sB(this.policy.LA));this.policy.w$&&(this.J=new w9(this.loader,this.policy,this.schedule),g.p(this,this.J))}; akR=function(D,X,M){var Q=X.S?X.S.n$.Uw:X.n$.Uw;var h=D.Y,H;(H=!D.policy.ib)||(H=hd(86,Q.S)===hd(81,Q.G));H?Q=!1:(h=gr(h,hd(89,Q.G)),H=6E4*Math.pow(h.U,1.6),(0,g.fi)()=h.U?(h.SH("sdai",{haltrq:H+1,est:h.U}),Q=!1):Q=h.G!==2;if(!Q||!oJ(X.S?X.S.n$.Uw:X.n$.Uw,D.policy,D.Y,D.loader.oX)||D.loader.isSuspended&&(!FA(D.schedule)||D.loader.PF))return!1;if(D.policy.U&&iN>=5)return g.G1(D.loader.YF),!1;if(D.P2.isManifestless){if(X.G.length>0&&X.S&&X.S.Ts===-1||X.G.length>=D.policy.SG||!D.policy.M8&&X.G.length>0&&!D.policy.K.aP)return!1;if(X.X)return!D.P2.isLive|| !isNaN(D.fY)}if(M1p(X))return!1;if(!X.S){if(!X.n$.hh())return!1;MR(X,D.loader.getCurrentTime())}if(tY(X)&&(X.jL()!==tY(X)||D.loader.isSuspended))return!1;h=(Q=D.policy.pW)&&!X.G.length&&uX(X,!0)=D.policy.Y7)return!1;Q=X.S;if(!Q)return!0;Q.type===4&&Q.n$.hh()&&(X.S=g.lW(Q.n$.Fi(Q)),Q=X.S);if(!Q.TC()&&!Q.n$.PZ(Q))return!1;H=D.P2.uH||D.P2.U;if(D.P2.isManifestless&& H){H=X.n$.index.oN();var t=M.n$.index.oN();H=Math.min(H,t);if(X.n$.index.IW()>0&&H>0&&Q.Ts>=H)return X.sR=H,M.sR=H,!1}if(Q.n$.info.audio&&Q.type===4||Q.TC())return!1;H=!X.U&&!M.U;if(h=!h)h=Q.D,h=!!(M.S&&!k7(M.S)&&M.S.DFN1(D,X)?(FN1(D,X),!1):(D=X.I2)&&D.isLocked()?!1:!0}; FN1=function(D,X){var M=D.S;M=M.S?M.S.x$:null;if(D.policy.M5&&M)return M.startSecs+M.rp+15;X=Xf(D.loader,X);D.policy.h5>0&&(M=((0,g.fi)()-D.loader.bu)/1E3,X=Math.min(X,D.policy.h5+D.policy.Ey*M));X=D.loader.getCurrentTime()+X;return D.policy.QQ&&(M=V12(D.loader)+D.policy.QQ,M=0||X.Uw.Qm("defrag")==="1"||X.Uw.Qm("otf")==="1"){X=null;break a}h=ls(0,4096)}h=new Do([new xV(5,Q.n$,h,"createProbeRequestInfo"+Q.X,Q.Ts)],X.G);h.Wh=M;h.S=X.S;X=h}X&&ab(D,X)}}; ab=function(D,X){D.loader.B$(X);var M=Rcd(X),Q=D.loader.u4();M={Hb:D.schedule,z$:M,Iv:QJm(D.U,M),iX:WY(X.W2[0]),Dy:td(64,X.Uw.S),dJ:D.policy.Y,cH:function(t,q){D.loader.n4(t,q)}}; if(D.schedule.G.X){var h,H;M.SR=(((h=D.videoTrack.n$)==null?void 0:h.info.jH)||0)+(((H=D.audioTrack.n$)==null?void 0:H.info.jH)||0)}D.fV&&(M.Ts=X.W2[0].Ts,M.fY=X.fY,M.fV=D.fV);Q={JF:I$m(X,D.loader.getCurrentTime()),kz:D.policy.QB&&MH(X)&&X.W2[0].n$.info.video?wko(D.G):void 0,SQ:D.policy.M5,poToken:D.loader.Rq(),h0:D.loader.H9(),f4:D.f4,LY:isNaN(D.LY)?null:D.LY,Dd:D.Dd,dl:D.dl,Zy:D.Zy,cT:Q};return new uP(D.policy,X,M,D.Y,function(t,q){try{a:{var w=t.info.W2[0].n$,T=w.info.video?D.videoTrack:D.audioTrack; if(!(t.state>=2)||t.isComplete()||t.R9()||!(!D.loader.J$||D.loader.isSuspended||uX(T)>3)){var L=LNi(t,D.policy,D.Y);L===1&&(D.R5=!0);$i1(D,t,L);if(t.isComplete()||t.H2()&&q<3){if(D.policy.Y){var K=t.timing.c8();K.rst=t.state;K.strm=t.xhr.lR();K.cncl=t.xhr&&t.Mx.D?1:0;D.loader.SH("rqs",K)}t.MC&&D.loader.SH("sbwe3",{},!0)}if(!D.H2()&&t.state>=2){Iop(D.timing,t,w);var a=D.loader;D.LY&&t.W_&&a&&(D.LY=NaN,D.loader.hH(t.W_),D.loader.FA(),D.loader.SH("cabrUtcSeek",{mediaTimeSeconds:t.W_}));t.Vo&&D.LY&&t.Vo&& !t.Vo.action&&(D.loader.e2(D.LY),D.LY=NaN,D.loader.SH("cabrUtcSeekFallback",{targetUtcTimeSeconds:D.LY}));t.DD&&D.loader.gy(t.DD);D.policy.ZJ&&(D.Zy=t.Zy);if(t.state===3){XA(T,t);MH(t.info)&&$_(D,T,w,!0);if(D.Bb){var F=t.info.Ri();F&&D.Bb.lI(t.info.W2[0].Ts,w.info.id,F)}D.loader.f6()}else if(t.isComplete()&&t.info.W2[0].type===5){if(t.state!==4)t.Kk()&&D.loader.handleError(t.WP(),t.uv());else{var V=(t.info.W2[0].n$.info.video?D.videoTrack:D.audioTrack).G[0]||null;V&&V instanceof uP&&V.R9()&&V.KH()}t.dispose()}else{if(!t.Kk()&& t.Jr&&t.state>=2&&t.state!==3){var c=t.xhr.getResponseHeader("X-Response-Itag");if(c){var S=qW2(D.G,c),b=t.info.Y;if(b){var n=b-S.J9();S.Y=!0;t.info.W2[0].n$.Y=!1;var R=S.h7(n);t.info=R;if(t.eA){var v=t.eA,l=R.W2;(l.length!==v.W2.length||l.length=D.policy.dT&&D.Bb&&t.info.isDecorated()&&S2==="net.badstatus"&&cd(D.Bb,th,q_))){var Jd=(Qs.info.video&&Qs.Uw.Y>1||t.HB===410||t.HB===500||t.HB===503)&&!(qa(D.G.D).size>0)&&!td(34,Qs.Uw.S),Gp=t.uv(),zy=Qs.info.video?D.videoTrack:D.audioTrack;Jd&&(Gp.stun="1");D.loader.handleError(S2,Gp);D.H2()||(Jd&&V7(D.G,Qs),XA(zy,t),D.loader.f6())}}else S=1,D.Bb&&t.info.isDecorated()&& S2==="net.badstatus"&&cd(D.Bb,th,q_)&&(S=0),D.P2.isLive&&t.WP()==="net.badstatus"&&D.D<=D.policy.nj*2?(iEi(D.P2),D.P2.uH||D.P2.isPremiere?H8(D.loader,0,{Aa:"badStatusWorkaround"}):D.P2.U?H8(D.loader,D.P2.gO,{Aa:"badStatusWorkaround",fz:!0}):fK(D.loader)):D.loader.handleError(S2,t.uv(),S);isNaN(D.LY)||(D.loader.e2(D.LY),D.LY=NaN)}D.policy.DJ&&!t.isComplete()?SY(D.loader):D.loader.f6();var Ra=sTp(t,D.policy,D.Y);$i1(D,t,Ra)}}}}}catch(m){S2=D.f$?1:0,D.f$=!0,t=kJ(S2),S2=uZ(m,S2),D.loader.handleError(S2.errorCode, S2.details,S2.severity),t||D.loader.Ia()}},Q)}; ZG=function(D,X){if(D.policy.useUmp&&X.H2())return!1;try{var M=X.info.W2[0].n$,Q=M.info.video?D.videoTrack:D.audioTrack;if(D.P2.isManifestless&&Q){D.D=0;Q.X&&(X.H2(),X.isComplete()||X.YE(),Q.X=!1);X.sB()&&D.loader.qB.AS(1,X.sB());var h=X.IW(),H=X.VT();AI(D.P2,h,H)}if(X.info.iX()&&!Xi(X.info))for(var t=g.e(X.LV()),q=t.next();!q.done;q=t.next())Gci(Q,q.value);for(D.loader.getCurrentTime();Q.G.length&&Q.G[0].state===4;){var w=Q.G.shift();Wam(Q,w);Q.uj=w.il()}Q.G.length&&Wam(Q,Q.G[0]);var T=!!tY(Q);T&& X instanceof kj&&(M.info.q2()?RSi(D.timing):eSs(D.timing));return T}catch(L){X=X.uv();X.origin="hrhs";a:{D=D.loader;M=L;if(M instanceof Error){X.msg||(X.msg=""+M.message);X.name||(X.name=""+M.name);if(M instanceof g.ys&&M.args)for(Q=g.e(Object.entries(M.args)),h=Q.next();!h.done;h=Q.next())H=g.e(h.value),h=H.next().value,H=H.next().value,X["arg"+h]=""+H;g.P3(M);if(M.level==="WARNING"){D.zs.XR(X);break a}}D.handleError("fmt.unplayable",X,1)}return!1}}; Bso=function(D){var X=D.videoTrack.n$.index;D.fV=new wU9({SS:D.policy.SS,aP:D.policy.K.aP,x5:X.eB(),oN:function(){return X.oN()}, Gn:function(){return X.Gn()}})}; $_=function(D,X,M,Q){if(!(M.hh()||M.KB()||M.Y||!oJ(M.Uw,D.policy,D.Y,D.loader.oX)||M.info.ij==="f"||D.policy.S)){if(Q){Q=D.U;var h=M.info;Q=hFs(Q,h.video?Q.policy.wH:Q.policy.Ej,h.jH)}else Q=0;Q=M.h7(Q);D=ab(D,Q);Xi(Q)&&Y7(X,D);M.Y=!0}}; Ev=function(D,X,M,Q,h,H,t,q){g.O.call(this);var w=this;this.loader=D;this.j$=X;this.videoTrack=M;this.audioTrack=Q;this.P2=h;this.f$=H;this.isAudioOnly=t;this.K=q;this.G=GL;this.sR=!1;this.logger=new g.KF("sabr");this.eH=this.J=this.a5=this.R5=!1;this.videoInfos=this.X=this.f$.videoInfos;this.Y=this.L$=this.f$.S;this.S=new t_(X,H,function(T,L){w.loader.SH(T,L)}); this.isAudioOnly&&ZD9(this,this.P2.S["0"])}; Uim=function(D,X){var M=[];X=g.e(X);for(var Q=X.next();!Q.done;Q=X.next())M.push(g.vE(Q.value,D.P2.yq));return M}; ZD9=function(D,X,M){X!==D.U&&(D.U&&(D.sR=!0),D.U=X,D.Ka(X,D.videoTrack,M))}; SrH=function(D,X){v8(D.j$)&&(D.a5=X.reason==="m"||X.reason==="l"?!0:!1);X.reason==="m"?X.isLocked()&&cRp(D,X.S):fkm(D,X)?yo(D,X.G,X.S):D.videoInfos=D.X;D.eH=!0;D.G=X}; fkm=function(D,X){return D.j$.D5H&&X.reason==="l"||D.j$.T5?!1:D.j$.Zz?!0:X.reason==="l"||X.reason==="b"||X.reason==="o"}; cRp=function(D,X){var M=D.S.S;if(M){D.videoInfos=D.X;var Q=g.xB(D.videoInfos,function(h){return h.id===M}); Q&&Q.video.qualityOrdinal===X?D.videoInfos=[Q]:(Q=D.videoInfos.map(function(h){return h.id}),D.loader.SH("sabrpf",{pfid:""+M, vfids:""+Q.join(".")}),yo(D,X,X),wk(D.S,""))}else yo(D,X,X)}; yo=function(D,X,M){D.videoInfos=D.X;D.videoInfos=g.vW(D.videoInfos,function(Q){return Q.video.qualityOrdinal>=X&&Q.video.qualityOrdinal<=M})}; EyW=function(D,X,M){if(D.K){var Q=g.vW(D.Y,function(h){return h.id===D.K}); return Pd(Q,M).includes(X)}Q=g.vW(D.Y,function(h){var H;return!((H=h.Cy)==null||!H.isDefault)}); return Q.length>0?Pd(Q,M).includes(X):Pd(D.Y,M).includes(X)}; Pd=function(D,X){return D.map(function(M){return Cq(g.vE(M,X))})}; yR_=function(D){var X;if((X=D.G)==null?0:X.isLocked())return D.videoInfos;var M=qa(D.S);X=g.vW(D.videoInfos,function(Q){return Q.jH>D.j$.jH?!1:!M.has(Q.id)}); JIp(D.S)&&(X=g.vW(X,function(Q){return Q.video.width<=854&&Q.video.height<=480})); return X}; mi_=function(D,X,M,Q){var h=D.P2,H=D.zs.getVideoData(),t=D.Jp,q=qM9({Hb:D.Hb,UR:H.W(),zs:D.zs,HF:D.HF,j$:D.j$,Yn:D.Yn,l9:D.l9,dX:D.dX,WA:D.WA,Rt:D.Rt,dO:D.dO,oB:D.oB,sabrLicenseConstraint:H.sabrLicenseConstraint,hL:D.hL,mK:D.mK,GV:D.GV,Yz:D.Yz,Cjy:!!t,authorizedFormats:H.authorizedFormats}),w=dN(H,D.cT,D.nextRequestPolicy,D.yz,D.Wt,D.CP,D.qt);M&&X&&(M=w.A0?w.A0.map(function(a){return a.type}):[],X("sabr",{stmctxt:M.join("_"), unsntctxt:w.Pa?w.Pa.join("_"):""}));X=D.C4;M=D.dB;if(M===void 0&&X===void 0){var T;M=PN2(h.yq,(T=D.C5)==null?void 0:T.video);var L;X=PN2(h.yq,(L=D.C5)==null?void 0:L.audio)}if(H.Dd)var K=H.Dd;H={hw:q,Gu:D.Gu,C4:X,dB:M,Jp:t,videoPlaybackUstreamerConfig:K,fW:w};Q&&D.mx?D.mx.length>0&&(H.mx=D.mx):D.md&&(H.md=D.md);H.LK=D.LK;H.Zp=h.A$;return H}; PN2=function(D,X){return X?[g.vE(X.info,D)]:[]}; mg=function(D,X,M){var Q=this;this.requestType=D;this.Uw=X;this.mz=M;this.G=null;this.py={dO:function(){var h;return(h=Q.data)==null?void 0:h.dO}, Wt:function(){var h;return(h=Q.data)==null?void 0:h.Wt}, hL:function(){var h;return(h=Q.data)==null?void 0:h.hL}}}; yIR=function(D,X,M){X=rr(D.Uw,nym(D,X,M),X);D.uT()&&X.set("probe","1");return X}; nym=function(D,X,M){D.Wh===void 0&&(D.Wh=D.Uw.Wh(X,M));return D.Wh}; nK=function(D){var X,M;return((X=D.S)==null?void 0:(M=X.hw)==null?void 0:M.Sx)||0}; bJ=function(D){var X,M;return!!((X=D.S)==null?0:(M=X.hw)==null?0:M.hL)}; bDi=function(D){var X={},M=[],Q=[];if(!D.data)return X;for(var h=0;h0;w--)M.push(q)}M.length!==t?X.error=!0:(H=M.slice(-H),M.length=h,YrR(X,M,H));break;case 1:YrR(X,CK,Ov);break;case 0:Wd(X, X.S&7);M=J3(X,16);h=J3(X,16);(M^h)!==65535&&(X.error=!0);X.output.set(X.data.subarray(X.G,X.G+M),X.Y);X.G+=M;X.Y+=M;break;default:X.error=!0}D.Y>D.output.length&&(D.output=new Uint8Array(D.Y*2),D.Y=0,D.G=0,D.U=!1,D.S=0,D.register=0)}D.output.length!==D.Y&&(D.output=D.output.subarray(0,D.Y));return D.error?new Uint8Array(0):D.output}; YrR=function(D,X,M){X=x_(X);M=x_(M);for(var Q=D.data,h=D.output,H=D.Y,t=D.register,q=D.S,w=D.G;;){if(q<15){if(w>Q.length){D.error=!0;break}t|=(Q[w+1]<<8)+Q[w]<>=7;T<0;)T=X[(t&1)-T],t>>=1;else t>>=T&15;q-=T&15;T>>=4;if(T<256)h[H++]=T;else if(D.register=t,D.S=q,D.G=w,T>256){t=A3[T];t+=J3(D,pK[T]);w=AR9(D,M);q=lJ[w];q+=J3(D,Y_[w]);if(JR_&&tM.length&&(D.error=!0);D.register|=(M[Q+1]<<8)+M[Q]<=0)return Wd(D,M&15),M>>4;for(Wd(D,7);M<0;)M=X[J3(D,1)-M];return M>>4}; J3=function(D,X){for(;D.S=D.data.length)return D.error=!0,0;D.register|=D.data[D.G++]<>=X;D.S-=X;return M}; Wd=function(D,X){D.S-=X;D.register>>=X}; x_=function(D){for(var X=[],M=g.e(D),Q=M.next();!Q.done;Q=M.next())Q=Q.value,X[Q]||(X[Q]=0),X[Q]++;var h=X[0]=0;M=[];var H=0;Q=0;for(var t=1;t7&&(H+=X[t]);for(h=1;h>w&1;q=H<<4|t;if(t<=7)for(w=1<<7-t;w--;)Q[w<>=7;t--;){Q[w]||(Q[w]=-X,X+=2);var T=h&1;h>>=1;w=T-Q[w]}Q[w]=q}}return Q}; WN2=function(D){var X,M,Q,h,H,t,q,w,T;return g.r(function(L){switch(L.S){case 1:if(!xi9)throw Error("DecompressionStream is not supported");X=fT.jd();M=new DecompressionStream("gzip");Q=M.writable.getWriter();Q.write(D);Q.close();h=M.readable.getReader();H=new Qi([]);case 2:return g.I(L,h.read(),5);case 5:t=L.G;q=t.value;if(w=t.done){L.D4(4);break}H.append(q);L.D4(2);break;case 4:return T=qG(H),fT.R3("gznb",X,Math.ceil(T.byteLength/16)),L.return(T)}})}; Gx=function(D){oP.call(this,"onesie",D);this.mz=D;this.S={};this.U=!0;this.Y=null;this.queue=new r9(this);this.D={}}; zx=function(D){var X=D.queue;X.S.length&&X.S[0].isEncrypted&&!X.G&&(X.S.length=0);X=g.e(Object.keys(D.S));for(var M=X.next();!M.done;M=X.next()){M=M.value;var Q=D.S[M];if(!Q.tX){var h=D.queue;h.S.push({videoId:Q.videoId,formatId:M,isEncrypted:!1});h.G||ob(h)}}}; GLo=function(D,X){var M=X.totalLength,Q=!1;switch(D.Y){case 0:D.Hl(X,D.U).then(function(h){var H=D.mz;H.TX("oprr");H.playerResponse=h;H.ys||(H.Bc=!1);k_(H)},function(h){D.mz.fail(h)}); break;case 2:D.TX("ormk");X=qG(X);D.queue.decrypt(X);break;default:Q=!0}D.mz.W1&&D.mz.SH("ombup","id.11;pt."+D.Y+";len."+M+(Q?";ignored.1":""));D.Y=null}; z$H=function(D,X){var M,Q,h,H,t;return g.r(function(q){switch(q.S){case 1:D.mz.TX("oprgz_s");if(!xi9){q.D4(2);break}g.N_(q,3);return g.I(q,WN2(X),5);case 5:return M=q.G,D.mz.TX("oprgz_n"),D.mz.SH("oprsgz",{i:"n"}),q.return(M);case 3:Q=g.LG(q),D.mz.SH("gzerr",{impl:"native",err:""+Q});case 2:if(h=D.mz.W().iM)try{var w=fT.jd(),T=h.lF(X),L=h,K=T!=null?T:X,a=K.byteOffset,F=K.byteLength,V=L.exports.getInflatedSize(a,F);if(V===0)throw Error("wasm_gz: bad input");var c=L.malloc(V),S=L.exports.inflateGzip(a, F,c);if(S)throw L.free(c),Error("wasm_gz: fail"+S);var b=new Uint8Array(L.exports.memory.buffer,c,V);T&&h.free(T.byteOffset);var n=h.LL(b);fT.R3("gzwb",w,Math.ceil(n.byteLength/16));H=n;D.mz.TX("oprgz_w");D.mz.SH("oprsgz",{i:"w"});return q.return(H)}catch(R){D.mz.SH("gzerr",{impl:"wasm",err:""+R})}w=fT.jd();T=g.lkW(new g.OD1(X));fT.R3("gzjb",w,Math.ceil(T.byteLength/16));t=T;D.mz.TX("oprgz_p");D.mz.SH("oprsgz",{i:"j"});return q.return(t)}})}; kLi=function(D){return new Promise(function(X){setTimeout(X,D)})}; uD1=function(D,X){var M=D.W();M=D.Ky&&M.T("html5_onesie_preload_use_content_owner");var Q=D.n7;M=M===void 0?!1:M;var h=KT(X.j.experiments,"debug_bandaid_hostname");if(h)X=g9(X,h);else if(M&&(Q==null?0:Q.url)&&!X.G){var H=hd(90,new g.cs(Q.url));X=g9(X,H)}else X=(H=X.S.get(0))==null?void 0:H.location.clone();if(X&&D.videoId){H=y5(D.videoId);D=[];if(H)for(H=g.e(H),M=H.next();!M.done;M=H.next())D.push(M.value.toString(16).padStart(2,"0"));X.set("id",D.join(""));return X}}; jTH=function(D,X,M){M=M===void 0?0:M;var Q,h;return g.r(function(H){if(H.S==1)return Q=[],Q.push(X.load()),M>0&&Q.push(kLi(M)),g.I(H,Promise.race(Q),2);h=uD1(D,X);return H.return(h)})}; Dpp=function(D,X,M,Q){Q=Q===void 0?!1:Q;D.set("cpn",X.clientPlaybackNonce);D.set("opr","1");var h=X.W();D.set("por","1");k$()||D.set("onem","1");X.startSeconds>0&&D.set("osts",""+X.startSeconds);Q||(h.T("html5_onesie_disable_partial_segments")&&D.set("oses","1"),X=h.T("html5_gapless_onesie_no_media_bytes")&&qp(X)&&X.Ky,M&&!X?(X=M.audio,D.set("pvi",M.video.join(",")),h.T("html5_onesie_disable_audio_bytes")||D.set("pai",X.join(",")),z3||D.set("osh","1")):(D.set("oad","0"),D.set("ovd","0"),D.set("oaad", "0"),D.set("oavd","0")))}; Xy2=function(D,X,M,Q,h){h=h===void 0?!1:h;var H="https://youtubei.googleapis.com/youtubei/"+X.NL.innertubeApiVersion+"/player",t=[{name:"Content-Type",value:"application/json"}];Q&&t.push({name:"Authorization",value:"Bearer "+Q});t.push({name:"User-Agent",value:g.Qm()});g.zZ("EOM_VISITOR_DATA")?t.push({name:"X-Goog-EOM-Visitor-Id",value:g.zZ("EOM_VISITOR_DATA")}):(M=M.visitorData||g.zZ("VISITOR_DATA"))&&t.push({name:"X-Goog-Visitor-Id",value:M});(M=g.zZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&t.push({name:"X-YouTube-Lava-Device-Context", value:M});(X=KT(X.experiments,"debug_sherlog_username"))&&t.push({name:"X-Youtube-Sherlog-Username",value:X});D=$$(JSON.stringify(D));return{url:H,BY:t,postBody:D,uPC:h,EF:h}}; uJ=function(D,X,M,Q,h,H,t,q){var w=D.Zi,T=D.DH;D=D.UX2;var L=w!==void 0&&T!==void 0,K=Q.getVideoData(),a,F=X.S.encryptedClientKey;X=L?X.iv:void 0;L=lP(H,!0);h=h||!!k$()&&L>1572864;return{innertubeRequest:{naf:D,y9:w,DH:T,encryptedClientKey:F,iv:X,SU5:!0,HG:!0,g2:"DecompressionStream"in window||!h,T$s:M.experiments.Z4("html5_use_jsonformatter_to_parse_player_response")},hw:qM9({Hb:H,UR:M,zs:Q,HF:K.startSeconds*1E3}),onesieUstreamerConfig:t,Z8:q,fW:dN(K),reloadPlaybackParams:(a=K.Ey)==null?void 0:a.reloadPlaybackParams}}; Mo9=function(D,X,M,Q,h,H,t){var q=g.rF(D,sn),w;if(!D.EF)if(w=IkW(X,q)){var T=w.kX;w=w.signature}else w=T=X.encrypt(q),(0,g.fi)(),w=CQi(new orR(X.S.Y),w,X.iv);return uJ(T&&w?{Zi:T,DH:w}:{UX2:q},X,M,Q,!!D.EF,h,H,t)}; Qp2=function(D,X,M,Q,h,H,t){var q,w,T;return g.r(function(L){if(L.S==1)return q=g.rF(D,sn),g.I(L,R$i(X,q),2);if(L.S!=3)return w=L.G,g.I(L,gy_(X,w),3);T=L.G;return L.return(uJ({Zi:w,DH:T},X,M,Q,!!D.EF,h,H,t))})}; hYs=function(D,X,M,Q,h,H,t){var q=g.rF(D,sn);if(q=IkW(X,q))return uJ({Zi:q.kX,DH:q.signature},X,M,Q,!!D.EF,h,H,t)}; DY=function(D,X,M){g.O.call(this);var Q=this;this.zs=D;this.playerRequest=X;this.Hb=M;this.logger=new g.KF("onesie");this.XK=[];this.xhr=null;this.state=1;this.Qn=new ql;this.IC=!1;this.playerResponse="";this.gU=new B8(this);this.Se=new Gx(this);this.MH="";this.qo=this.hZ=!1;this.tO="";this.enableCompression=this.ys=this.o3=!1;this.GM=[];this.UI=-1;this.f_=0;this.j=this.zs.W();this.videoData=this.zs.getVideoData();this.W1=this.j.t5();this.gJ=this.j.Ky;this.tI=new eY(this.gJ.S);this.QA=this.j.T("html5_onesie_check_timeout"); this.jb=new g.W5(this.m0,500,this);this.Nq=new g.W5(this.aT,1E4,this);this.hQ=new g.W5(function(){if(!Q.isComplete()){var h=jY(Q);Q.fail(new g.za("net.timeout",h))}},1E3); this.Da=new g.W5(this.LZs,2E3,this);this.J1=this.zs.H9();this.Bc=this.T("html5_onesie_wait_for_media_availability");g.p(this.videoData,this);g.p(this,this.jb);g.p(this,this.Nq);g.p(this,this.Da);D=FI();z3&&D&&(this.jV=new Map);this.E2=new Map;this.B7=new Map;this.z0=new Map;this.YA=new Map}; iJ=function(D,X){var M;return(M=D.jV)==null?void 0:M.get(X)}; tos=function(D,X,M){var Q;return g.r(function(h){if(h.S==1)return D.TX("oprd_s"),HAo(D)?g.I(h,vy9(D.tI,X,M),3):(Q=D.tI.decrypt(X,M),h.D4(2));h.S!=2&&(Q=h.G);D.TX("oprd_c");return h.return(Q)})}; NJd=function(D){return D.T("html5_onesie_host_probing")||D.W1?z3:!1}; k_=function(D){if(!D.playerResponse)return!1;if(D.o3)return!0;var X=D.videoData.T("html5_onesie_audio_only_playback")&&wJ(D.videoData);if(D.jV&&D.Bc){if(!D.jV.has(D.MH))return!1;var M=D.jV.get(D.MH),Q;if(Q=M){Q=!1;for(var h=g.e(M.Nx.keys()),H=h.next();!H.done;H=h.next())if(H=M.Nx.get(H.value))for(var t=g.e(H.hI),q=t.next();!q.done;q=t.next())q.value.j9>0&&(H.q2?Q=!0:X=!0);Q=!(X&&Q)}if(Q)return!1}D.TX("ofr");D.Qn.resolve(D.playerResponse);if(!D.QA){var w;(w=D.hQ)==null||w.start();D.Nq.start()}return D.o3= !0}; wyn=function(D){if(D.jV&&!D.T("html5_onesie_media_capabilities")){D.TX("ogsf_s");var X=M4H(D.zs.getVideoData(),function(Q,h){D.SH(Q,h)}),M=qNs(D.zs); X.video=xsn(M,X.video);D.TX("ogsf_c");if(X.video.length)return X;D.SH("ombspf","l."+M.G+";u."+M.S+";o."+M.Y+";r."+M.reason)}}; HAo=function(D,X){return D.T("html5_onesie_sync_request_encryption")||(X==null?0:X.EF)||g.XD(D.j)&&D.T("html5_embed_onesie_use_sync_encryption")?!1:!!k$()}; jY=function(D){if(!D.V2)return{};var X=D.V2.c8(),M;X.d=(M=D.V2.L$)==null?void 0:M.Ij();X.shost=D.hB;X.ty="o";return X}; TJp=function(D,X){var M,Q;(Q=(D=(M=D.jV)==null?void 0:M.get(X))==null)||(X=D.Y?!1:D.Y=!0,Q=!X);return!Q}; X7=function(D,X,M,Q,h,H,t,q,w,T,L,K){g.O.call(this);var a=this;this.zs=D;this.loader=X;this.policy=M;this.audioTrack=Q;this.videoTrack=h;this.P2=H;this.Hb=t;this.q5=q;this.G=w;this.timing=T;this.f$=L;this.R5=K;this.S=[];this.U={};this.OR=this.o5=!1;this.eH=this.t$=this.Rt=0;this.M5={df:0,GY:0};this.p$={df:0,GY:0};this.Bb=null;this.sR={LK:[],Gu:[]};this.L$={LK:[],Gu:[]};this.X=null;this.D=[];this.A$=!1;this.py={QAH:function(){return a.S}, v82:function(){return a.U}, dk$:function(){a.S.length=0}, jR2:function(){return a.videoData.uj}, FsF:function(){return a.eH}, pHC:function(F){a.eH=F}, qXz:function(F){a.M5.GY=F}, Ju:function(F){a.X=F}, eM:function(F){a.D=F}, Eg:function(){return a.Eg()}}; this.videoData=this.zs.getVideoData();this.J=this.videoData.latencyClass==="LOW"?this.policy.PU:this.videoData.latencyClass==="ULTRALOW"?this.policy.Ab:this.policy.NQ;this.policy.w$&&(this.a5=new w9(this.loader,this.policy,this.Hb),g.p(this,this.a5))}; K8m=function(D,X){if(L8W(D)){X=sp2(D,X);D.S.push(X);var M;(M=D.a5)==null||Tx(M,D.P2.eH);D.J>0&&D.M5.GY++}}; sp2=function(D,X){D.policy.J&&D.loader.SH("sabrcrq",{create:1});var M=new mg(0,D.P2.eH,D);D.G.eH=!1;return aZ1(D,M,X)}; Mz=function(D){var X,M=D.policy.D&&((X=D.loader)==null?void 0:X.du());X=D.loader.getCurrentTime()||0;X=F82(D,X);if(D.policy.AL&&D.loader.isSeeking()){var Q=W4(D.videoTrack,X);D.loader.SH("asmtfnctv",{b:X,a:Q});isNaN(Q)||(X=Q)}Q=D.loader.w3()||0;X+=Q;Q=Ip(D.videoData)||g.Rp(D.videoData);var h=0;M?(Q&&(h=Number.MAX_SAFE_INTEGER),D.videoData.yp&&(h=Math.ceil(D.videoData.gO*1E3))):h=Math.ceil(X*1E3);return Math.min(Number.MAX_SAFE_INTEGER,h)}; Q6=function(D){return D.policy.iM&&!!D.X}; F82=function(D,X){if(D.loader.isSeeking())return X;var M=D.zs.pK();if(!M)return X;M=M.HP();if(M.length===0||AC(M,X))return X;if(!D.videoTrack.QI(X)&&!D.audioTrack.QI(X))return D.loader.SH("sundrn",{b:0,lt:X}),X;for(var Q=X,h=Infinity,H=0;HX)){var t=X-M.end(H);t=20)?(D.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),X):Q}; Hp=function(D,X,M){D=D.loader.w3()||0;return hk(X,(M+D)*1E3)/1E3+M}; L8W=function(D){if(!VoH(D,D.M5)||Mk(D.audioTrack)&&Mk(D.videoTrack))return!1;if(D.policy.G)if(D.policy.X){var X;if((X=D.R5)==null)var M=0;else{M=!1;X=g.e(X.S.entries());for(var Q=X.next();!Q.done;Q=X.next())if(Q=g.e(Q.value),Q.next(),Q=Q.next().value,Q.event!=="predictStart"&&Q.d$===5){var h=void 0,H=void 0;((h=Q)==null?0:h.Lu)&&Date.now()-((H=Q)==null?NaN:H.Lu)>1E4?Q.d$=1:M=!0}}if(M)return!1}else if(M=!1,D.f$.G===2?M=!0:D.f$.G===3&&(Mz(D),D.loader.w3(),h=J_(D.audioTrack,D.loader.isSeeking()).LK, X=J_(D.videoTrack,D.loader.isSeeking()).LK,Q=D.loader.getCurrentTime()||0,h=Hp(D,h,Q),X=Hp(D,X,Q),X=Math.min(h,X),Q=D.f$,X>=Q.Y?(Q.SH("sdai",{haltrq:X,est:Q.Y}),X=!0):X=!1,X&&(M=!0)),M&&D.policy.J&&D.loader.SH("sabrcrq",{waitad:1}),M)return!1;D.policy.EC&&(D.sR=tk(D,D.audioTrack),D.L$=tk(D,D.videoTrack));if(!D.Y)return D.policy.J&&D.loader.SH("sabrcrq",{nopolicy:1}),!0;if(D.zs.s$())return D.policy.J&&D.loader.SH("sabrcrq",{utc:1}),!0;if(D.G.J)return D.policy.J&&D.loader.SH("sabrcrq",{audio:1}),!0; if(D.policy.j2&&D.G.eH)return D.policy.J&&D.loader.SH("sabrcrq",{constraint:1}),!0;if(!D.Y.targetAudioReadaheadMs||!D.Y.targetVideoReadaheadMs)return D.policy.J&&D.loader.SH("sabrcrq",{noreadahead:1}),!0;if(D.policy.D&&D.loader.du())return D.policy.J&&D.loader.SH("sabrcrq",{seekToHead:1}),!0;M=Math.min(Xf(D.loader,D.audioTrack)*1E3,D.Y.targetAudioReadaheadMs);X=Math.min(Xf(D.loader,D.videoTrack)*1E3,D.Y.targetVideoReadaheadMs);var t=Math.min(M,X),q=D.zs.getCurrentTime()*1E3,w=$p1(D,q);Q=w.RK;h=w.aK; H=w.E1;w=w.nG;var T=QX||Q>=0&&h.RP>Q+1)break;M=Math.max(M,h.startTimeMs+h.durationMs);Q=Math.max(Q,h.o6)}return Math.max(0,M-X)}; aZ1=function(D,X,M){var Q={Hb:D.Hb,cH:function(w,T){D.zs.n4(w,T)}, iX:D.policy.Vu,dJ:D.policy.Y};D.Hb.G.X&&(Q.SR=(D.videoTrack.n$.info.jH||0)+(D.audioTrack.n$.info.jH||0));D.policy.A2&&(Q.x5=D.audioTrack.n$.index.eB(),Q.iX=!1);var h=nym(X,D.policy,D.U)?2:1;h!==D.eH&&(D.eH=h,ZAn(D));M=D.Eg(M);if(D.policy.f$&&D.policy.Y&&M.yz){for(var H=h="",t=g.e(M.yz),q=t.next();!q.done;q=t.next())q=q.value,D.videoData.sabrContextUpdates.has(q)||D.policy.f$&&M.CP&&M.CP.type===q?h+="_"+q:H+="_"+q;D.loader.SH("sabrbldrqs",{ctxts:h,misctxts:H})}!X.setData(M,D.policy,D.U)&&D.policy.f$&& D.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);Q=new W8(D.policy,X,D.P2,D.U,D,Q,D.loader.H9());G4(D.timing);D.policy.J&&D.loader.SH("sabrcrq",{rn:Q.Bh(),probe:X.uT()});return Q}; w5=function(D,X){if(X.H2()||D.H2())D.policy.vZ||(D.policy.D?Nz(D.loader):D.loader.f6());else{if(D.policy.Y&&X.isComplete()&&X instanceof W8){var M=D.loader,Q=M.SH,h,H,t=Object.assign(X.V2.c8(),{rst:X.state,strm:X.xhr.lR(),d:(h=X.V2.L$)==null?void 0:h.Ij(),cncl:X.xhr&&X.Mx.D?1:0,rqb:X.jl,cwt:X.Mx.Y,swt:(H=X.Rp)==null?void 0:H.D2});h=Object.assign(bDi(X.info),t);Q.call(M,"rqs",h)}if(X.isComplete()&&X.uT()&&X instanceof W8)D.policy.Vq?X.uh()?(X.dispose(),D.S.length===0?D.loader.f6():(D=D.S[0],D instanceof W8&&D.R9()&&D.KH())):X.Kk()&&D.loader.handleError(X.WP(),X.uv()):(X.dispose(),D.loader.f6());else{if(X.QS())X instanceof W8&&Iop(D.timing,X),ZAn(D),qz(D);else if(X.Kk())if(M=D.zs.s$(),X instanceof W8&&bJ(X.info)&&M&&D.loader.e2(M),X instanceof W8&&nCm(X)){var q;(q=D.loader.nS)==null||U9(q)}else X instanceof DY?D.S.pop():(q=1,X.canRetry()&&Uv(D.loader)&&(Ups(D,X),q=0),D.loader.handleError(X.WP(),X.uv(),q));else{if(D.loader.isSuspended&&!X.isComplete())return;qz(D)}X.H2()||X instanceof DY||(X.isComplete()? q=sTp(X,D.policy,D.U):(q=LNi(X,D.policy,D.U),q===1&&(D.o5=!0)),q!==0&&(M=new mg(1,X.info.Uw),M.Wh=q===2,aZ1(D,M)));D.policy.DJ&&!X.isComplete()?SY(D.loader):D.loader.f6()}}}; qz=function(D){for(;D.S.length&&D.S[0].E9(D.DW());){var X=D.S.shift();cu1(D,X)}D.S.length&&cu1(D,D.S[0])}; cu1=function(D,X){X instanceof W8&&(D.yf=X);var M=new Set(X.Lc(D.DW()));M=g.e(M);for(var Q=M.next();!Q.done;Q=M.next()){var h=Q.value;if(!(Q=!(X instanceof DY))){Q=D.G;var H=Q.P2.yq,t=Pd(Q.videoInfos,H);H=EyW(Q,h,H);var q=t.includes(h);!Q.j$.Idy||H||q||Q.loader.SH("sabrcpf",{fid:""+h,vfids:""+t.join("."),said:Q.K||""});Q=H||t.includes(h)}if(Q&&(Q=X.Gx(h,D.DW()),t=D.policy.iM&&iw(Q[0].n$.info.mimeType),X.YE(h,D.DW())))for(h=X.LV(h,D.DW()),h=g.e(h),H=h.next();!H.done;H=h.next())if(H=H.value,D.policy.Y&& X instanceof DY&&D.loader.SH("omblss",{s:H.info.HC()}),t)q=D.timing,q.f$||(q.f$=(0,g.fi)(),g.Ef("fcb_r",q.f$,q.S)),q=D,q.videoData.yq()&&q.X&&Cq(q.X)===Cq(g.vE(H.info.n$.info,q.P2.yq))&&q.zs.publish("sabrCaptionsDataLoaded",H,q.eM.bind(q));else{q=H.info.n$.info.q2();var w=H.info.n$;if(q){var T=void 0;var L=D.G,K=(T=X.NO(D.DW()))==null?void 0:T.token;L.J&&w!==L.D?T=!0:(L.J=!1,w!==L.D&&(L.D=w,L.Ka(w,L.audioTrack,K)),T=!1);if(T)continue}else T=void 0,ZD9(D.G,w,(T=X.NO(D.DW()))==null?void 0:T.token); T=q?D.audioTrack:D.videoTrack;X instanceof DY&&(T.X=!1,X instanceof DY&&(q?RSi(D.timing):eSs(D.timing)));try{lX(T,Q,H)}catch(a){H=uZ(a),D.loader.handleError(H.errorCode,H.details,H.severity),T.Ia(),D.KZ(!1,"pushSlice"),Nz(D.loader)}}}}; Ups=function(D,X){D.policy.f$?D.S.splice(D.S.indexOf(X)).forEach(function(M){M.dispose()}):(D.S.pop(),X==null||X.dispose())}; fZp=function(D,X,M){for(var Q=[],h=0;h0)for(var X=g.e(D.videoData.sabrContextUpdates.keys()),M=X.next();!M.done;M=X.next()){M=M.value;var Q=void 0;((Q=D.videoData.sabrContextUpdates.get(M))==null?0:Q.sendByDefault)&&D.videoData.uj.add(M)}if(D.policy.f$&&D.S.length)for(X=g.e(D.S),M=X.next();!M.done;M=X.next())(M=M.value.w7())&&M.type&&M.sendByDefault&&D.videoData.uj.add(M.type)}; SN1=function(D){D.policy.bM&&(D.uj=void 0,D.Rt=0)}; ELn=function(D,X){if(X.Kk()||X.H2()){var M=D.loader,Q=M.SH,h=X.state;D=D.DW();var H,t;if((X=(H=X.jV)==null?void 0:H.get(D))==null)X=void 0;else{H=0;D=X.Lc();for(var q=0;q0){var M=Math.floor((0,g.fi)()/1E4);if(M===X.df){if(X.GY>=D.J){X.GY===D.J&&(M={reason:"toomanyrequests"},M.limit=X.GY,D.loader.handleError("player.exception",M),X.GY+=1);X=!1;break a}}else X.df=M,X.GY=0}X=!0}if(!X||D.loader.isSuspended&&D.loader.PF)return!1;if(D.K&&(0,g.fi)()0)||D.policy.f$&&D.S.length===1&&D.S[0].ix()?!0:!1){var Q;X=(Q=D.P2.eH)!=null&&oJ(Q,D.policy,D.U,D.loader.oX)?!0:!1}return X&&!D.A$?!0:!1}; $p1=function(D,X){var M=yud(D),Q=M.E1;M=M.nG;if(D.policy.EC){var h=hk(D.sR.LK,X);D=hk(D.L$.LK,X)}else h=Q,D=M;return{RK:h,aK:D,E1:Q,nG:M}}; yud=function(D){var X=uX(D.audioTrack,!0)*1E3;D=uX(D.videoTrack,!0)*1E3;return{E1:X,nG:D}}; PfW=function(D){this.zs=D;this.S=new Map;this.delay=null}; Ti=function(D,X){if(BQ(D.zs.getPlayerState())&&D.S.size!==0){var M=X!=null?X:Array.from(D.S.values()).sort(function(h,H){return h.mediaTime-H.mediaTime}); X=D.getCurrentTime();var Q=(M[0].mediaTime-X)*1E3/D.zs.getPlaybackRate();if(Q<500)for(X=Q>0?mps(D):X,M=g.e(M),Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,X>=Q.mediaTime)Q.resolve([Q.mediaTime,Q.id]),D.S.delete(Q.id);else break;nLd(D,X)}}; bAi=function(D,X,M){D.S.delete(M);return new Promise(function(Q){D.S.set(M,{id:M,mediaTime:X,resolve:Q});Q=Array.from(D.S.values()).sort(function(h,H){return h.mediaTime-H.mediaTime}); M===Q[0].id&&Ti(D,Q)})}; eY5=function(D){var X;(X=D.delay)==null||X.dispose();D.S.clear()}; nLd=function(D,X){var M;(M=D.delay)==null||M.dispose();D.delay=null;M=Array.from(D.S.values()).sort(function(Q,h){return Q.mediaTime-h.mediaTime}); M.length!==0&&(X=(M[0].mediaTime-X)*1E3/D.zs.getPlaybackRate(),D.delay=new g.W5(function(){Ti(D)},X>500?X-500:X),D.delay.start())}; mps=function(D){var X,M;return(M=(X=D.zs.pK())==null?void 0:X.getCurrentTime())!=null?M:D.zs.getCurrentTime()}; LM=function(D,X,M){var Q=this;this.Y=D;this.cpn=X;this.zs=M;this.S=new Map;this.G=new Map;this.X=NaN;this.J=!1;this.U=this.VN="";this.isSeeking=!1;this.D=new PfW(M);this.KF=M.KF;this.zs.subscribe("statechange",this.K,this);this.zs.subscribe("SEEK_TO",function(){Q.OY()}); this.zs.subscribe("SEEK_COMPLETE",function(){RYm(Q)}); this.VN=this.U=this.cpn}; gLs=function(D,X,M){var Q=!0;Q=Q===void 0?!1:Q;var h=D.S.get(X),H=D.Y.getStartTime(X),t=D.Y.getDuration(X);D.J=!1;var q=H,w;((w=h==null?void 0:h.S)!=null?w:[D.cpn]).forEach(function(T,L){var K,a=(K=h==null?void 0:h.G[L])!=null?K:t;if(M>=q&&Mh?s_(D,H,D.S.get(H)):H===h&&s_(D,H,D.S.get(H),Q-D.Y.getStartTime(H))})}; IZp=function(D,X,M,Q){Q=Q===void 0?!1:Q;X!==D.VN&&(D.VN=X,D.zs.publish("playbackstarted",X,M+D.zs.w3(),Q))}; dps=function(D,X,M,Q){D.U=M;M=X+"."+M;D.G.has(X)?D.G.get(X).push(M):D.G.set(X,[M]);bAi(D.D,Q,M).then(function(h){var H=g.e(h);h=H.next().value;H=H.next().value;var t=g.e(H.split("."));H=t.next().value;t=t.next().value;H=g.e([Number(H),t]);H.next();H=H.next().value;IZp(D,H,h)})}; KM=function(D,X,M,Q,h){this.loader=D;this.policy=X;this.schedule=M;this.vR=Q;this.eH=h;this.f$=NaN;this.G=this.J=this.U=null;this.S=this.D=this.X=this.startTimeSecs=NaN;this.Y=!1;this.K=NaN}; ru5=function(D,X,M,Q,h,H){return X.tC&&X.R2&&M===3?new KM(D,X,Q,h,H):null}; iAm=function(D,X){if(D.policy.i$z){var M=X.info.jH,Q=lP(D.schedule);X=X.index.eB();M=Math.max(1,Q/M);D.K=Math.round(Math.max(((M-1)*X+D.policy.XS)/M,X-D.policy.vW)*1E3)}}; OAs=function(D,X){var M=Date.now()/1E3,Q=M-D.startTimeSecs,h=M-D.X,H=h>=D.policy.mB,t=!1;if(H){var q=0;!isNaN(X)&&X>D.D&&(q=X-D.D,D.D=X);q/h=D.policy.vW&&!D.Y;if(!H&&!M&&oLi(D,X))return NaN;M&&(D.Y=!0);a:{Q=t;M=(0,g.fi)()/1E3-(D.vR.OW()||0)-D.J.S-D.policy.XS;H=D.G.startTime;M=H+M;if(Q){if(isNaN(X)){aD(D,NaN,"n",X);H=NaN;break a}Q=X-D.policy.mJ;Q0&&(t.headers=q);H&&(t.onFinish=H);return Object.keys(t).length>1?t:null}; $5=function(D,X,M,Q,h,H,t,q){wc()&&M.token&&(D=tW(D,{ctt:M.token,cttype:M.IY,mdx_environment:M.mdxEnvironment}));Q.T("net_pings_low_priority")&&(X||(X={}),X.priority="low");H||q&&Q.T("nwl_skip_retry")?(X==null?X={}:xpm(D,Q.T("html5_assert_cpn_with_regex")),t?Yr().sendAndWrite(D,X):Yr().sendThenWrite(D,X,q)):X?(xpm(D,Q.T("html5_assert_cpn_with_regex")),dmn(D,X)):g.gf(D,h)}; W8R=function(D){for(var X=[],M=0;M0&&M>0&&!D.G&&D.Y<1E7)try{D.U=D.D({sampleInterval:X,maxBufferSize:M});var Q;(Q=D.U)==null||Q.addEventListener("samplebufferfull",function(){return g.r(function(h){if(h.S==1)return g.I(h,D.stop(),2);k3R(D);g.HZ(h)})})}catch(h){D.G=zYd(h.message)}}; ZY=function(D,X){var M,Q,h=(M=window.h5vcc)==null?void 0:(Q=M.settings)==null?void 0:Q.set(D,X);return C_(h)?l3(Ob(h),function(){return!0},function(){return!1}):Ob(!!h)}; uY1=function(D){return ZY("SetPreferMinimalPostProcessing",D?1:0)}; jpd=function(D){return ZY("MediaSource.EnableUsingMediaSourceBufferedRange",D?1:0)}; DDs=function(D){return ZY("HTTP3",D?1:0)}; XBm=function(D){return ZY("MediaSource.EnableUsingMediaSourceAttachmentMethods",D?1:0)}; Mds=function(D){return ZY("QUIC",D?1:0)}; Q81=function(D){return ZY("Media.AudioWriteDurationLocal",D)}; h5s=function(D){return ZY("Media.PlayerConfiguration.DecodeToTexturePreferred",D?1:0)}; HSi=function(D){return ZY("Media.DisableExternalAllocator",D?1:0)}; Nbp=function(){var D,X,M,Q=(D=window.h5vcc)==null?void 0:(X=D.settings)==null?void 0:(M=X.getPersistentSettingAsString)==null?void 0:M.call(X,"cpu_usage_tracker_intervals");if(Q!=null){var h;D=(h=JSON.parse(Q))!=null?h:[];h=D.filter(function(T){return T.type==="total"}).map(function(T){return T.seconds}); X=g.e(tds);for(M=X.next();!M.done;M=X.next())M=M.value,h.indexOf(M)===-1&&D.push({type:"total",seconds:M});var H,t;(H=window.h5vcc)==null||(t=H.settings)==null||t.set("cpu_usage_tracker_intervals_enabled",1);var q,w;(q=window.h5vcc)==null||(w=q.settings)==null||w.set("cpu_usage_tracker_intervals",JSON.stringify(D))}}; qIm=function(){var D=window.H5vccPlatformService,X="";if(D&&D.has("dev.cobalt.coat.clientloginfo")&&(D=D.open("dev.cobalt.coat.clientloginfo",function(){}))){var M=D.send(new ArrayBuffer(0)); M&&(X=String.fromCharCode.apply(String,g.xW(new Uint8Array(M))));D.close()}return X}; g.fM=function(D){g.O.call(this);var X=this;this.provider=D;this.logger=new g.KF("qoe");this.S=new Map;this.sequenceNumber=1;this.R5=NaN;this.mj="N";this.K=this.ww=this.I0=this.f$=this.G=0;this.Ky=this.uj=this.X=this.OR="";this.Vq=this.yf=NaN;this.DJ=0;this.XS=-1;this.bM=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.R2=this.isEmbargoed=this.L$=this.isOffline=this.isBuffering=!1;this.iM=[];this.eH=null;this.zm=this.U=this.q5=this.sR=this.J=!1;this.Y=-1;this.t$=!1;this.ZJ=new g.W5(this.Vt,750,this); this.TT=this.adCpn="";this.Va=this.y$=this.y3=this.MZ=this.adFormat=void 0;this.T6=0;this.o5=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.MK=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.h5=!1;this.qj=NaN;this.M5=0;this.Mj=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.J5=!1;this.G6=new Set;this.py={Y_:function(H){X.Y_(H)}, e15:function(){return X.D}, reportStats:function(){X.reportStats()}, Cm5:function(){return X.S.get("cat")||[]}, Qm:function(H){return X.S.get(H)||[]}, Ocs:function(){return X.S}, QRI:function(){return{adCpn:X.adCpn,TT:X.TT,adFormat:X.adFormat}}, sRH:function(){return{MZ:X.MZ,y3:X.y3,y$:X.y$,Va:X.Va}}}; this.a5=this.provider.j.T("html5_qoe_relaxed_reporting");var M=g.lx(this.provider.j.experiments,"html5_qoe_proto_mock_length");M&&!U_.length&&(U_=W8R(M));g.p(this,this.ZJ);try{var Q,h;(h=(Q=navigator).getBattery)==null||h.call(Q).then(function(H){X.eH=H})}catch(H){}g.cp(this,0,"vps",["N"]); D.j.t5()&&(this.M5=(0,g.fi)(),this.qj=g.$H(function(){var H=(0,g.fi)(),t=H-X.M5;t>500&&X.SH("vmlock",{diff:t.toFixed()});X.M5=H},250)); this.provider.videoData.e0&&(this.remoteControlMode=wB1[this.provider.videoData.e0]||0);this.provider.videoData.Az&&(M=Unn(this.provider.videoData.Az),M==null?0:M.length)&&(this.remoteConnectedDevices=M);D.j.t5()&&(this.p$=new F7,g.p(this,this.p$));Ww_(D.j)&&(this.A$=new Bp,g.p(this,this.A$))}; SH=function(D,X,M){var Q=D.S.get(X);Q?Q.push(M):D.S.set(X,[M])}; g.cp=function(D,X,M,Q){SH(D,M,X.toFixed(3)+":"+Q.join(":"))}; E_=function(D,X){var M=D.provider.getCurrentTime();g.cp(D,X,"cmt",[M.toFixed(3)]);var Q=M=D.provider.Gw();if((!D.D||D.provider.j.T("html5_shorts_gapless_no_gllat")&&qp(D.provider.videoData)?0:Q*1E3>D.D.M_+100)&&D.D){var h=D.D;Q=h.isAd;M=M*1E3-h.M_;D.ju=X*1E3-h.WU2-M-h.JhC;h=(0,g.fi)()-M;X=D.ju;M=D.provider.videoData;var H=M.isAd();if(Q||H){H=(Q?"ad":"video")+"_to_"+(H?"ad":"video");var t={};M.X&&(t.cttAuthInfo={token:M.X,videoId:M.videoId});t.startTime=h-X;yO(H,t);g.Eg({targetVideoId:M.videoId,targetCpn:M.clientPlaybackNonce}, H);SQ("pbs",h,H)}else h=D.provider.zs.g6(),h.X!==M.clientPlaybackNonce?(h.D=M.clientPlaybackNonce,h.G=X):M.TI()||g.P3(new g.ys("CSI timing logged before gllat",{cpn:M.clientPlaybackNonce}));D.SH("gllat",{l:D.ju.toFixed(),prev_ad:+Q});delete D.D}}; mY=function(D,X){X=X===void 0?NaN:X;X=X>=0?X:g.y6(D.provider);var M=D.provider.zs.zW(),Q=M.sJ-(D.yf||0);Q>0&&g.cp(D,X,"bwm",[Q,(M.FL-(D.Vq||0)).toFixed(3)]);isNaN(D.yf)&&M.sJ&&D.isOffline&&D.Y_(!1);D.yf=M.sJ;D.Vq=M.FL;isNaN(M.bandwidthEstimate)||g.cp(D,X,"bwe",[M.bandwidthEstimate.toFixed(0)]);D.provider.j.t5()&&Object.keys(M.S).length!==0&&D.SH("bwinfo",M.S);if(D.provider.j.t5()||D.provider.j.T("html5_log_meminfo"))Q=pyo(),Object.values(Q).some(function(H){return H!==void 0})&&D.SH("meminfo",Q); if(D.provider.j.t5()){var h;(Q=(h=D.p$)==null?void 0:YNs(h))&&Object.values(Q).some(function(H){return H!=null})&&D.SH("cpuinfo",Q)}D.A$&&D.SH("jsprof",D.A$.flush()); D.eH&&g.cp(D,X,"bat",[D.eH.level,D.eH.charging?"1":"0"]);h=D.provider.zs.getVisibilityState();D.XS!==h&&(g.cp(D,X,"vis",[h]),D.XS=h);E_(D,X);(h=Tb5(D.provider))&&h!==D.DJ&&(g.cp(D,X,"conn",[h]),D.DJ=h);Pp(D,X,M)}; LUR=function(D){var X=D.provider.zs.zW(),M=g.y6(D.provider);Pp(D,M,X);var Q=X.Y;X=X.U;isNaN(Q)||(D.provider.j.T("html5_unified_live_latency_reporting")&&!isNaN(X)&&X?g.cp(D,M,"e2el",[Q.toFixed(3),X.toFixed(3)]):g.cp(D,M,"e2el",[Q.toFixed(3)]))}; Pp=function(D,X,M){if(!isNaN(M.JF)){var Q=M.JF;M.G96E3&&(new g.W5(D.reportStats,0,D)).start()}}; aAm=function(D){D.provider.videoData.Ky&&bn(D,"prefetch");D.provider.videoData.A$&&D.SH("reload",{r:D.provider.videoData.reloadReason,ct:D.provider.videoData.A$});D.provider.videoData.xp&&bn(D,"monitor");D.provider.videoData.isLivePlayback&&bn(D,"live");z3&&bn(D,"streaming");D.provider.videoData.e0&&D.SH("ctrl",{mode:D.provider.videoData.e0},!0);if(D.provider.videoData.Az){var X=D.provider.videoData.Az.replace(/,/g,"_");D.SH("ytp",{type:X},!0)}D.provider.videoData.pW&&(X=D.provider.videoData.pW.replace(/,/g, "."),D.SH("ytrexp",{ids:X},!0));X=D.provider.videoData;var M=D.provider.j.T("enable_white_noise")||D.provider.j.T("enable_webgl_noop"),Q=g.cy(X)||g.gJ(X)||g.vy(X)||g.dJ(X);(M||Q)&&(M=(0,g.eH)())&&D.S.set("gpu",[M]);Wy(D.provider.videoData)&&g.cp(D,g.y6(D.provider),"dt",["1"]);X.cotn&&!Wy(X)&&D.Y_(!0);D.provider.j.t5()&&(X=(0,g.fi)()-D.provider.j.EC,D.SH("playerage",{secs:Math.pow(1.6,Math.round(Math.log(X/1E3)/Math.log(1.6))).toFixed()}));D.U=!0;D.R5=g.$H(function(){D.reportStats()},1E4)}; Vdo=function(D,X,M){var Q=g.y6(D.provider);FUs(D,Q,X,0,M);mY(D,Q);nM(D)}; FUs=function(D,X,M,Q,h){var H=D.provider.j.S.cbrver;D.provider.j.S.cbr==="Chrome"&&/^96[.]/.test(H)&&M==="net.badstatus"&&/rc\.500/.test(h)&&RD(D,3);D.provider.j.T("html5_use_ump")&&/b248180278/.test(h)&&RD(D,4);H=D.provider.getCurrentTime();Q=Q===1?"fatal":"";M=[M,Q,H.toFixed(3)];Q&&(h+=";a6s."+GJ());h&&M.push($D_(h));g.cp(D,X,"error",M);D.U=!0}; Bbn=function(D,X){var M=g.y6(D.provider);if(!D.provider.j.experiments.Z4("html5_refactor_sabr_video_format_selection_logging")||X.S.id!==D.OR){var Q=[X.S.id,X.G,D.OR,X.reason];g.nC(D.provider.j.Q2())&&!D.sR&&Q.push(ID(D,X));X.token&&Q.push(X.token);g.cp(D,M,"vfs",Q);D.OR=X.S.id;Q=D.provider.zs.getPlayerSize();if(Q.width>0&&Q.height>0){Q=[Math.round(Q.width),Math.round(Q.height)];var h=g.kv();h>1&&Q.push(h);g.cp(D,M,"view",Q)}D.sR||(D.provider.j.t5()&&bn(D,"rqs2"),D.provider.videoData.S&&vt(D.provider.videoData.S)&& D.S.set("preload",["1"]));D.sR=!0;D.U=!0}X.reason==="m"&&++D.T6===100&&RD(D,2);g.cp(D,M,"vps",[D.mj]);D.a5||D.reportStats(M)}; ZSp=function(D){D.Y>=0||(D.provider.j.QB||D.provider.zs.getVisibilityState()!==3?D.Y=g.y6(D.provider):D.t$=!0)}; fAo=function(D,X,M){var Q=D.provider.j,h=Q.Q2(),H=h.S.xl(UDW),t=[];Q.experiments.Z4("html5_refactor_sabr_audio_format_selection_logging")?(X=M.S,Q=[X.audio&&X.video?X.cS?X.cS:"":X.id],X.Cy&&X.Cy.id&&Q.push(X.Cy.id),X=Q.join(";"),X!==D.X&&(Q=[X,D.X,M.reason],H&&t.push.apply(t,g.xW(cbs(M))),g.nC(h)&&M.reason==="i"&&(H?t.push(ID(D,M)):Q.push(ID(D,M))),H&&t.length>0&&Q.push(t.join(";")),M.token&&Q.push(M.token),g.cp(D,g.y6(D.provider),"afs",Q),D.X=X)):M.S.id!==D.X&&(Q=[M.S.id,D.X,M.reason],H&&t.push.apply(t, g.xW(cbs(M))),g.nC(h)&&M.reason==="i"&&(H?t.push(ID(D,M)):Q.push(ID(D,M))),H&&t.length>0&&Q.push(t.join(";")),M.token&&Q.push(M.token),g.cp(D,X,"afs",Q),D.X=M.S.id)}; ID=function(D,X){var M=D.provider;D=M.zs;M=M.videoData;g.uf(M)?X=4:D.Ee()?X=3:(X=X.S.q2()?M.XA:M.OT,X=X!=null?X:0);D="sms."+X;if(X===3||X===4)D+="_1";return D}; cbs=function(D){var X=[];if(D=D.S.audio){var M=D==null?void 0:D.U;M!==void 0&&X.push("fl."+M);D=D==null?void 0:D.Y;D!==void 0&&(D=Math.min(-D,0),X.push("vg."+D),X.push("nm.4"))}return X}; bn=function(D,X){SH(D,"cat",X)}; g5=function(D,X,M,Q,h){var H=g.y6(D.provider);X!==1&&X!==3&&X!==5||g.cp(D,H,"vps",[D.mj]);SH(D,"xvt","t."+H.toFixed(3)+";m."+h.toFixed(3)+";g.2;tt."+X+";np.0;c."+M+";d."+Q)}; RD=function(D,X){D.zm||(SH(D,"fcnz",""+X),D.zm=!0)}; $D_=function(D){/[^a-zA-Z0-9;.!_-]/.test(D)&&(D=D.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return D}; d5=function(D,X,M,Q,h,H,t,q,w,T){q=q===void 0?!1:q;g.O.call(this);var L=this;this.zs=D;this.schedule=X;this.policy=M;this.P2=Q;this.f$=w;this.ZJ=T;this.nS=this.J$=null;this.yf=this.OR=this.uj=this.R5=0;this.Ne=this.PF=this.isSuspended=!1;this.p$="";this.iM={};this.R2=NaN;this.zm=this.oX=0;this.Bb=null;this.h5=this.M5=!1;this.bu=0;this.o5=!1;this.L$=this.q5=0;this.qj=null;this.Bk=!1;this.pk=function(){return L.zs.pk()}; this.timing=new bFs(this.ZJ);this.eH=new p5(this.schedule,this.policy);this.J5=new g.W5(this.f6,0,this);this.Mj=new g.W5(this.f6,this.policy.DJ,this);this.YF=new g.W5(this.f6,1E3,this);this.bM=new g.W5(this.f6,void 0,this);this.t$=new g.W5(function(){L.isSuspended||L.f6()},1E4,this); this.DJ=new g.W5(this.akC,250,this);this.J=this.currentTime=NaN;this.qB=new TM(5);this.sR=this.timestampOffset=NaN;this.logger=new g.KF("dash");this.Vq=Infinity;this.py={dfy:function(){return L.rM}, Nm$:function(){return L.Y}, getAudioTrack:function(){return L.audioTrack}, dPj:function(){return L.videoTrack}, wZ5:function(){return L.a5}, getManifest:function(){return L.P2}, BxH:function(){return L.G}, f6:function(){L.f6()}, mG:function(){L.R5=0;L.mG()}, PRs:function(a){return vp(L,L.videoTrack,L.J$.G,a)}}; D=w&&w.Lc();w&&(SMH(w,this.P2,this.policy),this.sR=Date.now());this.S=new s9(this,this.eH,M,this.P2,h,D);M=uis(this.S,H,t&&t.id);this.audioTrack=new O9(this,this.policy,M.audio,this.timing);this.videoTrack=new O9(this,this.policy,M.video,this.timing);this.videoTrack.Y.a5=this.audioTrack.Cr();this.A$={updateend:this.JY,error:this.El$};g.p(this,this.J5);g.p(this,this.Mj);g.p(this,this.YF);g.p(this,this.bM);g.p(this,this.t$);M=this.policy.HF2&&this.policy.SS?!MU5(this.videoTrack.n$.info):!1;this.Ky= sA_({aP:this.policy.K.aP||M,SS:this.policy.SS&&!M,wV:this.policy.wV});this.K=ru5(this,this.policy,this.Ky,this.schedule,this.qB,function(a,F){return SIs(L,a,F)}); this.Y=new z4(this,this.P2,this.policy,this.videoTrack,this.audioTrack,q);this.policy.ZW&&(this.a5=new p2s(this.policy.X,function(a,F){L.SH(a,F)},this.policy.EQ)); this.rM=new z6(this,this.P2,this.videoTrack,this.audioTrack,this.policy);q=this.policy.Rr?this.zs.getVideoData().Dd:null;this.X=new LK(this,this.policy,this.videoTrack,this.audioTrack,this.iM,this.Y,this.timing,this.eH,this.schedule,this.P2,this.S,this.K,M,q);g.p(this,this.X);this.U=new Ev(this,this.policy,this.videoTrack,this.audioTrack,this.P2,h,wJ(this.zs.getVideoData()),t==null?void 0:t.id);g.p(this,this.U);SrH(this.U,H);this.G=new X7(this.zs,this,this.policy,this.audioTrack,this.videoTrack,this.P2, this.schedule,this.S,this.U,this.timing,this.Y,this.a5);g.p(this,this.G);this.D=this.zs.dI.Ge.fn;this.policy.D||Eao(this);if(this.policy.T6){var K;this.XS=new LM(this.videoTrack.n$.index,(K=this.zs.getVideoData().clientPlaybackNonce)!=null?K:"",this.zs)}}; ybm=function(D){D.policy.X&&D.D&&(D.D.XK.forEach(function(X){D.tf(X,-1)}),D.D.XK=[])}; Eao=function(D){var X,M;if((X=D.D)==null?0:(M=X.Sm)==null?0:M.itagDenylist){var Q;D.Vy((Q=D.D)==null?void 0:Q.Sm.itagDenylist)}var h;if((h=D.D)==null?0:h.playbackStartPolicy){var H,t;qk(D.policy,(H=D.D)==null?void 0:H.playbackStartPolicy,3,(t=D.D)==null?void 0:t.Bh())}if(D.policy.Nf){X=D.DW();var q;(M=X?(q=D.D)==null?void 0:q.B7.get(X):void 0)&&D.G.F5(M,-1)}if(!D.P2.f$){var w;q=(w=D.D)==null?void 0:w.mP;(q==null?0:q.xs)&&(q==null?0:q.Oh)&&D.P2.yq&&AI(D.P2,q.xs,q.Oh)}var T;((T=D.D)==null?0:T.YA)&& (w=D.D.YA.get(D.DW()||""))&&D.P2&&w.formatId&&(D=D.P2.Y.get(Cq(w.formatId)))&&(D.info.debugInfo=w.debugInfo)}; r5=function(D,X){var M=pq(X.n$,D.P2.yq),Q,h=((Q=D.f$)==null?void 0:Q.Gx(M))||[];if(h.length===0)return D.SH("ombmsi",{}),!1;Q=new Do(h);if((!D.policy.R5||isFinite(D.getCurrentTime())||D.zs.s$())&&!gJ_(Q,D.getCurrentTime()))return D.SH("ostmf",{ct:D.getCurrentTime(),a:X.n$.info.q2()}),!1;(D=D.f$)!=null&&(D.Nx.get(M).Je=!0);return!0}; PRp=function(D){if(!D.P2.yq)return!0;var X=D.zs.getVideoData();if(D.zs.bA())return D.SH("ombpa",{}),!1;var M,Q;if(!!((M=D.D)==null?0:(Q=M.mP)==null?0:Q.hky)!==D.P2.uH)return D.SH("ombplmm",{}),!1;M=X.OR||X.liveUtcStartSeconds||X.nQ;if(D.P2.uH&&M)return D.SH("ombplst",{}),!1;if(D.P2.f$)return D.SH("ombab",{}),!1;M=Date.now();return YC(D.P2)&&!isNaN(D.sR)&&M-D.sR>D.policy.L1*1E3?(D.SH("ombttl",{}),!1):D.P2.GF&&D.P2.U||UN(X)!==0&&!D.policy.S||X.T("html5_disable_onesie_media_for_mosaic")&&xL(X)||X.T("html5_disable_onesie_media_for_lifa_eligible")&& Ju(X)?!1:!0}; mDn=function(D,X){var M=X.n$,Q=D.P2.yq;if(PRp(D))if(D.f$&&D.f$.Nx.has(pq(M,Q))){if(Q=pq(M,Q),r5(D,X)){var h=new Do(D.f$.Gx(Q)),H=function(t){try{if(t.Kk())D.handleError(t.WP(),t.uv()),XA(X,t),MH(t.info)&&$_(D.X,X,M,!0),D.f6();else if(ZG(D.X,t)){var q;(q=D.Y)==null||rI_(q,t.info,D.Bb);D.f6()}}catch(w){t=uZ(w),D.handleError(t.errorCode,t.details,t.severity),D.Ia()}}; M.Y=!0;Xi(h)&&(Y7(X,new kj(D.policy,Q,h,D.f$,H)),G4(D.timing))}}else D.SH("ombfmt",{})}; var qms=function(D,X){return td[N[15]](this,3,D,X)}; oD=function(D,X){X=X||D.videoTrack&&D.videoTrack.S&&D.videoTrack.S.startTime||D.getCurrentTime();var M=D.videoTrack,Q=D.S;X=Q.nextVideo&&Q.nextVideo.index.lE(X)||0;Q.sR!==X&&(Q.M5={},Q.sR=X,Kz(Q,Q.S));X=!Q.S.isLocked()&&Q.eH>-1&&(0,g.fi)()-Q.eHD.policy.xK?g.G1(D.Mj):D.f6()}; R5s=function(D){if(M1p(D.videoTrack))return"ssf";if(D.policy.t$&&Hd(D.videoTrack)&&Hd(D.audioTrack))return"updateEnd";if(Mk(D.audioTrack)||Mk(D.videoTrack)&&D.videoTrack.n$.info.ij!=="f")return"";if(D.rM.isSeeking()){var X=D.eH;var M=D.videoTrack;var Q=D.audioTrack;if(X.policy.S){var h=X.policy.iA;Nk(X.policy)&&(h=WA(X,!1,xj(X)));X=h;M=uX(Q,!0)>=X&&uX(M,!0)>=X}else M.G.length||Q.G.length?(h=M.n$.info.jH+Q.n$.info.jH,h=10*(1-xj(X)/h),X=Math.max(h,X.policy.iA),M=uX(Q,!0)>=X&&uX(M,!0)>=X):M=!0;if(!M)return"abr"; M=D.videoTrack;if(M.G.length>0&&M.Y.G.length===1&&bTm(M.Y).info.J360);if(!D.Ne||M)return"";M=D.policy.PW;Nk(D.policy)&&(M=WA(D.eH,D.Ne,xj(D.eH)));M=jAH(D.videoTrack,D.getCurrentTime(),M)||jAH(D.audioTrack,D.getCurrentTime(),M);return Nk(D.policy)?M?"mbnm":"":(D.videoTrack.G.length>0||D.audioTrack.G.length>0|| KK(D.X,D.videoTrack,D.audioTrack)||KK(D.X,D.audioTrack,D.videoTrack))&&M?"nord":""}; vaW=function(D,X,M){if(D.policy.t$&&Hd(X))return!1;if(M.tN())return!0;if(!M.V$())return!1;var Q=tY(X);if(!Q||Q.info.type===6)return!1;var h;if(D.policy.yQ||((h=D.Y)==null?0:OFi(h,X,Q.info.Ts)))D.yf=0;else return D.rM.isSeeking()&&Nz(D),D.yf=D.yf||(0,g.fi)(),!1;if(!vp(D,X,M,Q.info))return!1;if(D.P2.G&&Q.info.S===0){if(M.RV()==null){h=A_(X);var H;if(!(H=!h||h.n$!==Q.info.n$)){b:if(h=h.K,H=Q.info.K,h.length!==H.length)h=!1;else{for(var t=0;tH)return D.policy.S&&(X===D.videoTrack?D.OR=D.OR||(0,g.fi)():D.uj=D.uj||(0,g.fi)()),D.policy.XA&&VzH(X.Y,H,!1),!1;X===D.videoTrack?D.OR=0:D.uj=0;var q;D.policy.MK&&M===((q=D.J$)==null?void 0:q.S)&&D.o5&&(M.Jj()===0?(D.o5=!1,D.policy.MK=!1):D.q5=M.Jj());a:{q=D.policy.qj?(0,g.fi)():0;t=Q.D&&Q.info.n$.S||void 0;H=Q.G;Q.D&&(H=IAn(D,Q,H)||H);var w=qG(H);H=D.policy.qj?(0,g.fi)():0;M=gaW(D,M,w,Q.info,t);(t=X.K)!=null&&(w=Q.info,q=H-q,H=(0,g.fi)()-H,!t.G||f$R(t.G, w)&&t.G.Ts===w.Ts||t.flush(),t.U+=q,t.Y+=H,q=1,!t.G&&w.S&&(q=2),fz(t,q,M),H=Math.ceil(w.S/1024),q===2&&t.S.add(H),t.S.add(Math.ceil((w.S+w.G)/1024)-H),t.G=w);D.L$=0;if(M===0)D.M5&&(D.M5=!1,D.h5=!1),D.zm=0,M=!0;else{if(M===2||M===5)ln(D,"checked",M,Q.info);else{if(M===1){if(!D.M5){D.M5=!0;M=!1;break a}if(!D.h5){D.h5=!0;D.zs.seekTo(D.getCurrentTime(),{Aa:"quotaExceeded",fz:!0});M=!1;break a}Q.info.VB()?(q=D.policy,q.OR=Math.floor(q.OR*.8),q.L$=Math.floor(q.L$*.8)):(q=D.policy,q.q5=Math.floor(q.q5*.8), q.L$=Math.floor(q.L$*.8));D.policy.S?Na(D.U.S,Q.info.n$,!1):V7(D.S,Q.info.n$)}D.zs.XR({reattachOnAppend:M})}M=!1}}if(!M)return!1;D.policy.t$&&Q.info.TC()?(D.zs.W().t5()&&D.SH("eosl",{ls:Q.info.HC()}),Q.isLocked=!0):(X.GJ(Q),MO5(D.S,Q.info));h&&(X=Q.info.n$.LU)&&D.zs.DG(new eD(X.key,X.type));return!0}; IAn=function(D,X,M){var Q;if(Q=D.policy.JE&&D.J$&&!D.J$.K&&!D.zs.Ax())X=X.info.n$.info,Q=X.VF()&&En(X)&&X.video&&X.video.width<3840&&X.video.width>X.video.height;if(Q&&(D.J$.K=!0,M0('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return M=mIp(M),D.policy.Y&&D.SH("sp4k",{s:!!M}),M}; ln=function(D,X,M,Q){var h="fmt.unplayable",H=1;M===5||M===3?(h="fmt.unparseable",D.policy.S?!Q.n$.info.video||qa(D.U.S).size>0||Na(D.U.S,Q.n$,!1):!Q.n$.info.video||qa(D.S.D).size>0||V7(D.S,Q.n$)):M===2&&(D.zm<15?(D.zm++,h="html5.invalidstate",H=0):h="fmt.unplayable");Q=us(Q);var t;Q.mrs=(t=D.J$)==null?void 0:HQ(t);Q.origin=X;Q.reason=M;Q.trg="appenderr";D.handleError(h,Q,H)}; YWi=function(D,X,M,Q,h){var H=D.P2;var t=D.policy.S,q=!1,w=-1,T;for(T in H.S){var L=iw(H.S[T].info.mimeType)||H.S[T].info.VB();if(Q===L)if(L=H.S[T].index,L.h6(X.Ts)){q=L;var K=X,a=q.Kj(K.Ts);a&&a.startTime!==K.startTime?(q.segments=[],q.YW(K),q=!0):q=!1;q?w=X.Ts:!X.pending&&t&&(K=L.getDuration(X.Ts),K!==X.duration&&(H.publish("clienttemp","mfldurUpdate",{itag:H.S[T].info.itag,seg:X.Ts,od:K,nd:X.duration},!1),L.YW(X),q=!0))}else L.YW(X),q=!0}w>=0&&(t={},H.publish("clienttemp","resetMflIndex",(t[Q? "v":"a"]=w,t),!1));H=q;UsH(D.rM,X,Q,H);D.Y.ek(X,M,Q,h);X.Ts===D.P2.GF&&H&&oK(D.P2)&&X.startTime>oK(D.P2)&&(D.P2.gO=X.startTime+(isNaN(D.timestampOffset)?0:D.timestampOffset),D.rM.isSeeking()&&D.rM.targetTime 5)return D.L$=0,D.zs.XR({initSegStuck:1,as:Q.info.HC()}),!0}else D.L$=0,D.qj=Q;D.policy.kN&&(M.abort(),(t=X.K)!=null&&(fz(t,4),t.flush()));h=gaW(D,M,H,w,h);(X=X.K)!=null&&(X.flush(),X.G=w,fz(X,3,h));if(h!==0)return D.policy.Lw&&qp(D.zs.getVideoData())?(D.zs.oT()||ln(D,"sepInit",h,Q.info),dDp(D.zs,"sie")):ln(D,"sepInit",h,Q.info),!0;Q.info.VB()?(w=D.timing,w.M5||(w.M5=(0,g.fi)(),g.Ef("vis_a",w.M5,w.S))):(w=D.timing,w.J||(w.J=(0,g.fi)(),g.Ef("ais_a",w.J,w.S)));(Q=Q.info.n$.LU)&&D.zs.DG(new eD(Q.key, Q.type));return M.VZ()}; gaW=function(D,X,M,Q,h){try{var H,t=X===((H=D.J$)==null?void 0:H.S)?D.audioTrack:D.videoTrack;if(D.policy.t$&&(Q==null?0:Q.TC())){if((Q==null?void 0:Q.eH)>1)return 6;t.L$=new g.W5(function(){var q=tY(t);D.H2()||q==null||!q.isLocked?D.zs.W().t5()&&D.SH("eosl",{delayA:q==null?void 0:q.info.HC()}):rb5(t)?(D.zs.W().t5()&&D.SH("eosl",{dunlock:q==null?void 0:q.info.HC()}),Jk(D,t===D.audioTrack)):(D.SH("nue",{ls:q.info.HC()}),q.info.eH+=1,D.J$&&D.mG())},1E4,D); D.zs.W().t5()&&D.SH("eosl",{delayS:Q.HC()});t.L$.start()}D.policy.IU&&(Q==null?void 0:Q.n$)instanceof hI&&Q.TC()&&D.SH("poseos",{itag:Q.n$.info.itag,seg:Q.Ts,lseg:Q.n$.index.oN(),es:Q.n$.index.Y});X.appendBuffer(M,Q,h)}catch(q){if(q instanceof DOMException){if(q.code===11)return 2;if(q.code===12)return 5;if(q.code===22||q.message.indexOf("Not enough storage")===0)return X=Object.assign({name:"QuotaExceededError",buffered:On(X.K6()).replace(/,/g,"_"),vheap:zM(D.videoTrack),aheap:zM(D.audioTrack),message:g.OO(q.message, 3),track:D.J$?X===D.J$.G?"v":"a":"u"},pyo()),D.handleError("player.exception",X),1;g.ET(q)}return 4}return D.J$.Jh()?3:0}; H8=function(D,X,M){nas(D,M.Aa||"unknown");D.zs.seekTo(X,M)}; Xf=function(D,X){if(D.policy.R5&&D.M5&&!D.Ne)return D.policy.qq;if(D.M5&&!D.Ne)return 3;if(D.isSuspended)return 1;var M;if((M=D.J$)==null?0:M.J$&&M.J$.streaming===!1)return 4;M=(X.n$.info.audio?D.policy.q5:D.policy.OR)/(X.jH*D.policy.kY);if(D.policy.kx>0&&D.J$&&Ml(D.J$)&&(X=X.n$.info.video?D.J$.G:D.J$.S)&&!X.VZ()){X=X.K6();var Q=pE(X,D.getCurrentTime());Q>=0&&(X=D.getCurrentTime()-X.start(Q),M+=Math.max(0,Math.min(X-D.policy.kx,D.policy.V7)))}D.policy.L$>0&&(M=Math.min(M,D.policy.L$));return M}; iSd=function(D,X){return(Xf(D,X)+D.policy.Pi)*X.jH}; CRd=function(D){D.p$&&!D.isSuspended&&FA(D.schedule)&&(oao(D,D.p$),D.p$="")}; oao=function(D,X){Op(X,"cms",function(M){D.policy.Y&&D.SH("pathprobe",M)},function(M){D.zs.handleError(M)})}; OSm=function(D,X){D.Bb=X;D.Y&&(D.Y.Bb=X);X=D.Bb;var M=D.videoTrack.n$.info.VF();X.qj=M;X.Tm({swebm:M});D.X.Bb=D.Bb;D.policy.G&&(D.G.Bb=D.Bb,ybm(D))}; AbH=function(D,X){if(D.J$&&D.J$.G){if(D.policy.xj){var M=h$H(D.audioTrack);if(M&&M.q2()){var Q=D.zs;if(Q.Id&&(Q.Id.S=M,M=Q.mZ,M.qoe)){M=M.qoe;Q=Q.Id;var h=g.y6(M.provider);fAo(M,h,Q)}}}D.policy.UB&&(M=h$H(D.videoTrack))&&M.VB()&&(Q=D.zs,Q.Yo&&(Q.Yo.S=M,M=Q.mZ,M.qoe&&Bbn(M.qoe,Q.Yo)));X-=isNaN(D.timestampOffset)?0:D.timestampOffset;D.getCurrentTime()!==X&&D.resume();D.rM.isSeeking()&&D.J$&&!D.J$.Jh()&&(Q=D.getCurrentTime()<=X&&X=X&&SIs(D,Q.startTime,!1)}); return M&&M.startTimeD.getCurrentTime())return M.start/1E3;return Infinity}; BJo=function(D){if(D.zs.getVideoData().isLivePlayback)return!1;var X=D.zs.pK();if(!X)return!1;X=X.getDuration();if(D.J$&&D.J$.S&&D.J$.G){var M=D.getCurrentTime(),Q=D.J$.S.K6();D=D.J$.G.K6();Q=Q?YP(Q,M):M;M=D?YP(D,M):M;M=Math.min(Q,M);X=isNaN(M)?!1:M>=X-.01}else X=!1;return X}; Uv=function(D){return D.oX0){var Q=M.S.shift();kTp(M,Q.info)}M.S.length>0&&(Q=M.S[0].time-(0,g.fi)(),M.G.start(Math.max(0,Q)))}},0); g.p(this,this.G);X.subscribe("widevine_set_need_key_info",this.U,this)}; kTp=function(D,X){a:{var M=X.cryptoPeriodIndex;if(isNaN(M)&&D.Y.size>0)M=!0;else{for(var Q=g.e(D.Y.values()),h=Q.next();!h.done;h=Q.next())if(h.value.cryptoPeriodIndex===M){M=!0;break a}M=!1}}D.publish("log_qoe",{wvagt:"reqnews",canskip:M});M||D.publish("rotated_need_key_info_ready",X)}; uXp=function(){var D={};var X=D.url;var M=D.interval;D=D.retries;this.url=X;this.interval=M;this.retries=D}; j8W=function(D,X){this.statusCode=D;this.message=X;this.Y=this.heartbeatParams=this.errorMessage=null;this.G=[];this.S={};this.nextFairplayKeyId=null}; DWp=function(D){switch(D){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; XA9=function(D,X,M,Q){M=M===void 0?"":M;Q=Q===void 0?!1:Q;g.O.call(this);this.message=D;this.requestNumber=X;this.timer=M;this.G=Q;this.onError=this.onSuccess=null;this.S=new g.o3(5E3,2E4,.2)}; M_m=function(D,X,M){D.onSuccess=X;D.onError=M}; h_1=function(D,X,M,Q){var h={timeout:3E4,onSuccess:function(H){if(!D.H2()){SQ("drm_net_r",void 0,D.timer);var t=D.G;t=t===void 0?!1:t;var q=H.status==="LICENSE_STATUS_OK"?0:9999,w=null;if(H.license)try{w=p7(H.license)}catch(c){g.ET(c)}if(q!==0||w){w=new j8W(q,w);q!==0&&H.reason&&(w.errorMessage=H.reason);if(H.authorizedFormats){q={};for(var T=[],L={},K=g.e(H.authorizedFormats),a=K.next();!a.done;a=K.next())if(a=a.value,a.trackType&&a.keyId){t&&w.G.push({trackType:DWp(a.trackType),isHdr:!!a.isHdr}); var F=QS1[a.trackType];if(F){F==="HD"&&H.isHd720&&(F="HD720");a.isHdr&&(F+="HDR");q[F]||(T.push(F),q[F]=!0);var V=null;try{V=p7(a.keyId)}catch(c){g.ET(c)}V&&(L[g.C7(V,4)]=F)}}w.Y=T;w.S=L}H.nextFairplayKeyId&&(w.nextFairplayKeyId=H.nextFairplayKeyId);H.sabrLicenseConstraint&&(w.sabrLicenseConstraint=p7(H.sabrLicenseConstraint));H=w}else H=null;if(H)D.onSuccess(H,D.requestNumber);else D.onError(D,"drm.net","t.p;p.i")}}, onError:function(H){if(!D.H2())if(H&&H.error)H=H.error,D.onError(D,"drm.net.badstatus","t.r;p.i;c."+H.code+";s."+H.status,H.code);else D.onError(D,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){D.onError(D,"drm.net","rt.req."+D.requestNumber)}}; Q&&(h.Lg="Bearer "+Q);g.xr(M,"player/get_drm_license",X,h)}; H51=function(D,X,M,Q){g.Dq.call(this);this.videoData=D;this.j=X;this.K=M;this.sessionId=Q;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.R5=this.a5=!1;this.Y=null;this.sR=[];this.U=[];this.authorizedFormats=[];this.eH=[];this.J=!1;this.S={};this.status="";this.X=NaN;this.G=D.D;this.cryptoPeriodIndex=M.cryptoPeriodIndex;D={};Object.assign(D,this.j.S);D.cpn=this.videoData.clientPlaybackNonce;this.videoData.R5&&(D.vvt=this.videoData.R5,this.videoData.mdxEnvironment&&(D.mdx_environment= this.videoData.mdxEnvironment));this.j.sR&&(D.authuser=this.j.sR);this.j.pageId&&(D.pageid=this.j.pageId);isNaN(this.cryptoPeriodIndex)||(D.cpi=this.cryptoPeriodIndex.toString());var h=(h=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Qm()))?h[1]:"";h==="ATV"&&(D.cdt=h);this.D=D;this.D.session_id=Q;this.f$=!0;this.G.flavor==="widevine"&&(this.D.hdr="1");this.G.flavor==="playready"&&(X=Number(KT(X.experiments,"playready_first_play_expiration")),!isNaN(X)&&X>=0&&(this.D.mfpe=""+X),this.f$=!1);X="";g.Q5(this.G)? MI(this.G)?(Q=M.G)&&(X="https://www.youtube.com/api/drm/fps?ek="+WWR(Q)):(X=M.initData.subarray(4),X=new Uint16Array(X.buffer,X.byteOffset,X.byteLength/2),X=String.fromCharCode.apply(null,X).replace("skd://","https://")):X=this.G.G;this.baseUrl=X;this.fairplayKeyId=I5(this.baseUrl,"ek")||"";if(X=I5(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(X);this.sR=M.VF?[g.C7(M.initData,4)]:M.Y;k5(this,{sessioninit:M.cryptoPeriodIndex});this.status="in"}; wA5=function(D,X){k5(D,{createkeysession:1});D.status="gr";SQ("drm_gk_s",void 0,D.videoData.eH);D.url=t_n(D);try{D.Y=X.createSession(D.K,function(M){k5(D,{m:M})})}catch(M){X="t.g"; M instanceof DOMException&&(X+=";c."+M.code);D.publish("licenseerror","drm.unavailable",1,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}D.Y&&(NBn(D.Y,function(M,Q){qpi(D,M,Q)},function(M,Q,h){if(!D.H2()){Q=void 0; var H=1;g.Q5(D.G)&&g.iS(D.j)&&D.j.T("html5_enable_safari_fairplay")&&h===1212433232&&(Q="ERROR_HDCP",H=D.j.T("html5_safari_fairplay_ignore_hdcp")?0:H);D.error("drm.keyerror",H,M,Q)}},function(){D.H2()||(k5(D,{onkyadd:1}),D.R5||(D.publish("sessionready"),D.R5=!0))},function(M){D.pz(M)}),g.p(D,D.Y))}; t_n=function(D){var X=D.baseUrl;X3H(X)||D.error("drm.net",2,"t.x");if(!I5(X,"fexp")){var M=["23898307","23914062","23916106","23883098"].filter(function(h){return D.j.experiments.experiments[h]}); M.length>0&&(D.D.fexp=M.join())}M=g.e(Object.keys(D.D));for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,X=sxR(X,Q,D.D[Q]);return X}; qpi=function(D,X,M){if(!D.H2())if(X){k5(D,{onkmtyp:M});D.status="km";switch(M){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":TB1(D,X);return;default:D.publish("ctmp","message_type",{t:M,l:X.byteLength})}D.a5||(SQ("drm_gk_f",void 0,D.videoData.eH),D.a5=!0,D.publish("newsession",D));if(j4(D.G)&&(X=Lbm(X),!X))return;X=new XA9(X,++D.requestNumber,D.videoData.eH,D.j.T("html5_enable_vp9_fairplay"));M_m(X,function(Q){sSm(D,Q)},function(Q,h,H){if(!D.H2()){var t= 0; Q.S.G>=3&&(t=1,h="drm.net.retryexhausted");k5(D,{onlcsrqerr:h,info:H});D.error(h,t,H);D.shouldRetry(kJ(t),Q)&&Kbm(D,Q)}}); g.p(D,X);a9R(D,X)}else D.error("drm.unavailable",1,"km.empty")}; TB1=function(D,X){k5(D,{sdpvrq:1});D.X=Date.now();if(D.G.flavor!=="widevine")D.error("drm.provision",1,"e.flavor;f."+D.G.flavor+";l."+X.byteLength);else{var M={cpn:D.videoData.clientPlaybackNonce};Object.assign(M,D.j.S);M=g.nJ("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",M);X={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,X)}), responseType:"arraybuffer"};g.e6(M,X,3,500).then(jp(function(Q){Q=Q.xhr;if(!D.H2()){Q=new Uint8Array(Q.response);var h=String.fromCharCode.apply(null,Q);try{var H=JSON.parse(h)}catch(t){}H&&H.signedResponse?(D.publish("ctmp","drminfo",{provisioning:1}),H=(Date.now()-D.X)/1E3,D.X=NaN,D.publish("ctmp","provs",{et:H.toFixed(3)}),D.Y&&D.Y.update(Q)):(H=H&&H.error&&H.error.message,Q="e.parse",H&&(Q+=";m."+H),D.error("drm.provision",1,Q))}}),jp(function(Q){D.H2()||D.error("drm.provision",1,"e."+Q.errorCode+ ";c."+(Q.xhr&&Q.xhr.status))}))}}; un=function(D){var X;if(X=D.f$&&D.Y!=null)D=D.Y,X=!(!D.S||!D.S.keyStatuses);return X}; a9R=function(D,X){D.status="km";SQ("drm_net_s",void 0,D.videoData.eH);var M=new g.Js(D.j.NL),Q={context:g.wf(M.config_||g.q$())};Q.drmSystem=Fbp[D.G.flavor];Q.videoId=D.videoData.videoId;Q.cpn=D.videoData.clientPlaybackNonce;Q.sessionId=D.sessionId;Q.licenseRequest=g.C7(X.message);Q.drmParams=D.videoData.drmParams;isNaN(D.cryptoPeriodIndex)||(Q.isKeyRotated=!0,Q.cryptoPeriodIndex=D.cryptoPeriodIndex);var h,H,t=!!((h=D.videoData.G)==null?0:(H=h.video)==null?0:H.isHdr());Q.drmVideoFeature=t?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";D.j.experiments.Q2().S.xl(V_W)&&(Q.context=g.tb(D.videoData));if(Q.context&&Q.context.client){if(h=D.j.S)Q.context.client.deviceMake=h.cbrand,Q.context.client.deviceModel=h.cmodel,Q.context.client.browserName=h.cbr,Q.context.client.browserVersion=h.cbrver,Q.context.client.osName=h.cos,Q.context.client.osVersion=h.cosver;D.j.experiments.Q2().S.xl(V_W)||(Q.context.user=Q.context.user||{},D.videoData.R5&&(Q.context.user.credentialTransferTokens=[{token:D.videoData.R5,scope:"VIDEO"}]), D.videoData.o5&&(Q.context.user.kidsParent={oauthToken:D.videoData.o5}));Q.context.request=Q.context.request||{};Q.context.request.mdxEnvironment=D.videoData.mdxEnvironment||Q.context.request.mdxEnvironment;g.Q5(D.G)&&(Q.fairplayKeyId=g.C7(GCW(D.fairplayKeyId)));g.Ni(D.j,g.lf(D.videoData)).then(function(q){h_1(X,Q,M,q);D.status="rs"})}else D.error("drm.net",2,"t.r;ic.0")}; sSm=function(D,X){if(!D.H2())if(k5(D,{onlcsrsp:1}),D.status="rr",X.statusCode!==0)D.error("drm.auth",1,"t.f;c."+X.statusCode,X.errorMessage||void 0);else{SQ("drm_kr_s",void 0,D.videoData.eH);if(X.heartbeatParams&&X.heartbeatParams.url&&D.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var M=D.G.G.match(/(.*)youtube.com/g);M&&(X.heartbeatParams.url=M[0]+X.heartbeatParams.url)}X.heartbeatParams&&D.publish("newlicense",X.heartbeatParams);X.Y&&(D.U=X.Y,D.videoData.wm||D.publish("newlicense", new uXp),D.videoData.wm=!0,D.J=jj(D.U,function(Q){return Q.includes("HDR")})); X.G&&(D.eH=X.G);X.S&&(D.j.T("html5_enable_vp9_fairplay")&&MI(D.G)?(M=g.C7(GCW(D.fairplayKeyId),4),D.S[M]={type:X.S[M],status:"unknown"}):D.S=ff(X.S,function(Q){return{type:Q,status:"unknown"}})); XI(D.G)&&(X.message=fgs(g.C7(X.message)));D.Y&&(k5(D,{updtks:1}),D.status="ku",D.Y.update(X.message).then(function(){SQ("drm_kr_f",void 0,D.videoData.eH);un(D)||(k5(D,{ksApiUnsup:1}),D.publish("keystatuseschange",D))},function(Q){Q="msuf.req."+D.requestNumber+";msg."+g.OO(Q.message,3); D.error("drm.keyerror",1,Q)})); g.Q5(D.G)&&D.publish("fairplay_next_need_key_info",D.baseUrl,X.nextFairplayKeyId);D.j.T("html5_enable_vp9_fairplay")&&MI(D.G)&&D.publish("qualitychange",$W_(D.U));X.sabrLicenseConstraint&&D.publish("sabrlicenseconstraint",X.sabrLicenseConstraint)}}; Kbm=function(D,X){var M=X.S.getValue();M=new g.W5(function(){a9R(D,X)},M); g.p(D,M);M.start();g.Cm(X.S);k5(D,{rtyrq:1})}; BBo=function(D,X){for(var M=[],Q=g.e(Object.keys(D.S)),h=Q.next();!h.done;h=Q.next())h=h.value,M.push(h+"_"+D.S[h].type+"_"+D.S[h].status);return M.join(X)}; Z5i=function(D){var X={};X[D.status]=un(D)?BBo(D,"."):D.U.join(".");return X}; UWn=function(D,X,M){var Q={};Q.isHdr=X.includes("HDR");switch(X.replace("HDR","").replace("720","")){case "AUDIO":Q.trackType=1;break;case "SD":Q.trackType=2;break;case "HD":Q.trackType=3;break;case "UHD1":Q.trackType=4;break;case "UHD2":Q.trackType=5;break;default:Q.trackType=0}!Q.trackType||M[X]||un(D)&&!jH(D,X)||(D.authorizedFormats.push(Q),M[X]=!0)}; jH=function(D,X){for(var M in D.S)if(D.S[M].status==="usable"&&D.S[M].type===X)return!0;return!1}; c1i=function(D,X){for(var M in D.S)if(D.S[M].type===X)return D.S[M].status}; k5=function(D,X){var M=M===void 0?!1:M;Ga(X);(M||D.j.t5())&&D.publish("ctmp","drmlog",X)}; f9d=function(D){var X=D[0];D[0]=D[3];D[3]=X;X=D[1];D[1]=D[2];D[2]=X;X=D[4];D[4]=D[5];D[5]=X;X=D[6];D[6]=D[7];D[7]=X}; $W_=function(D){return g.jb(D,"UHD2")||g.jb(D,"UHD2HDR")?"highres":g.jb(D,"UHD1")||g.jb(D,"UHD1HDR")?"hd2160":g.jb(D,"HD")||g.jb(D,"HDHDR")?"hd1080":g.jb(D,"HD720")||g.jb(D,"HD720HDR")?"hd720":"large"}; Lbm=function(D){for(var X="",M=0;M'.charCodeAt(Q);D=D.Y.createSession("video/mp4",X,M);return new Dp(null,null,null,null,D)}; e_m=function(D,X){var M=D.X[X.sessionId];!M&&D.U&&(M=D.U,D.U=null,M.sessionId=X.sessionId,D.X[X.sessionId]=M);return M}; mWs=function(D,X){var M=D.subarray(4);M=new Uint16Array(M.buffer,M.byteOffset,M.byteLength/2);M=String.fromCharCode.apply(null,M).match(/ek=([0-9a-f]+)/)[1];for(var Q="",h=0;h19.2999?(D=M.qU,M=M.Fj, M>=D&&(M=D*.75),X=(D-M)*.5,M=new Gi(X,D,D-X-M,this)):M=null;break a;case "widevine":M=new zi(X,this,D);break a;default:M=null}if(this.D=M)g.p(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.Sw,this),this.D.subscribe("log_qoe",this.Lm,this);Hk(this.j.experiments);this.Lm({cks:this.S.getInfo()})}; I9W=function(D){var X=PP_(D.U,D.mediaElement);X?X.then(jp(function(){vjm(D)}),jp(function(M){if(!D.H2()){g.ET(M); var Q="t.a";M instanceof DOMException&&(Q+=";n."+M.name+";m."+M.message);D.publish("licenseerror","drm.unavailable",1,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(D.Lm({mdkrdy:1}),D.eH=!0); D.f$&&(X=PP_(D.f$,D.mediaElement))}; r1R=function(D,X,M){D.yf=!0;M=new eD(X,M);D.j.T("html5_eme_loader_sync")&&(D.X.get(X)||D.X.set(X,M));dW9(D,M)}; dW9=function(D,X){if(!D.H2()){D.Lm({onInitData:1});if(D.j.T("html5_eme_loader_sync")&&D.videoData.Y&&D.videoData.Y.S){var M=D.J.get(X.initData);X=D.X.get(X.initData);if(!M||!X)return;X=M;M=X.initData;D.X.remove(M);D.J.remove(M)}D.Lm({initd:X.initData.length,ct:X.contentType});if(D.S.flavor==="widevine")if(D.L$&&!D.videoData.isLivePlayback)QX(D);else{if(!(D.j.T("vp9_drm_live")&&D.videoData.isLivePlayback&&X.VF)){D.L$=!0;M=X.cryptoPeriodIndex;var Q=X.S;fEH(X);X.VF||(Q&&X.S!==Q?D.publish("ctmp","cpsmm", {emsg:Q,pssh:X.S}):M&&X.cryptoPeriodIndex!==M&&D.publish("ctmp","cpimm",{emsg:M,pssh:X.cryptoPeriodIndex}));D.publish("widevine_set_need_key_info",X)}}else D.Sw(X)}}; vjm=function(D){if(!D.H2())if(D.j.T("html5_drm_set_server_cert")||MI(D.S)){var X=D.U.setServerCertificate();X?X.then(jp(function(M){D.j.t5()&&D.publish("ctmp","ssc",{success:M})}),jp(function(M){D.publish("ctmp","ssce",{n:M.name, m:M.message})})).then(jp(function(){i5n(D)})):i5n(D)}else i5n(D)}; i5n=function(D){D.H2()||(D.eH=!0,D.Lm({onmdkrdy:1}),QX(D))}; ojm=function(D){return D.S.flavor==="widevine"&&D.videoData.T("html5_drm_cpi_license_key")}; QX=function(D){if(D.yf&&D.eH&&!D.sR){for(;D.Y.length;){var X=D.Y[0],M=ojm(D)?SWn(X):g.C7(X.initData);if(MI(D.S)&&!X.G)D.Y.shift();else{if(D.G.get(M))if(D.S.flavor!=="fairplay"||MI(D.S)){D.Y.shift();continue}else D.G.delete(M);fEH(X);break}}D.Y.length&&D.createSession(D.Y[0])}}; CPm=function(D){var X,M;g.r(function(Q){if(Q.S==1){var h;if(h=g.xH()){var H;h=!((H=D.U.G)==null||!H.getMetrics)}return h?g.I(Q,D.U.getMetrics(),2):Q.return()}X=Q.G;if(!X)return Q.return();TG(X)||(X=g.aL(X));M=/^[A-Za-z0-9_-]+={0,3}$/;M.test(X)||(X=g.OO(X,void 0,!0));D.publish("ctmp","drm",{metrics:X});g.HZ(Q)})}; h5=function(){var D=L_5();return!(!D||D==="visible")}; pAo=function(D){var X=O5o();X&&document.addEventListener(X,D,!1)}; A1_=function(D){var X=O5o();X&&document.removeEventListener(X,D,!1)}; O5o=function(){if(document.visibilityState)var D="visibilitychange";else{if(!document[Vd+"VisibilityState"])return"";D=Vd+"visibilitychange"}return D}; l95=function(D){Ypm=D}; xW5=function(D){J1s=D}; Wb9=function(D){g.O.call(this);var X=this;this.zs=D;this.i_=0;this.X=this.G=this.D=!1;this.U=0;this.UR=this.zs.W();this.videoData=this.zs.getVideoData();this.Y=g.lx(this.UR.experiments,"html5_delayed_retry_count");this.S=new g.W5(function(){X.zs.Hx()},g.lx(this.UR.experiments,"html5_delayed_retry_delay_ms")); g.p(this,this.S)}; jSs=function(D,X,M){var Q=D.videoData.G,h=D.videoData.U,H=D.UR.T("html5_disable_codec_fallback_for_drm")&&D.videoData.aj();qp(D.zs.getVideoData())&&D.UR.T("html5_gapless_fallback_on_qoe_restart")&&dDp(D.zs,"pe");if((X==="progressive.net.retryexhausted"||X==="fmt.unplayable"||X==="fmt.decode")&&!D.zs.V5.D&&Q&&Q.itag==="22")return D.zs.V5.D=!0,D.Rz("qoe.restart",{reason:"fmt.unplayable.22"}),D.zs.Iq(),!0;var t=!1;if(D.videoData.isExternallyHostedPodcast){if(t=D.videoData.fT)M.mimeType=t.type,D.SH("3pp", {url:t.url});M.ns="3pp";D.zs.ZS(X,1,"VIDEO_UNAVAILABLE",Ga((new g.za(X,M,1)).details));return!0}var q=D.i_+3E4<(0,g.fi)()||D.S.isActive();if(D.UR.T("html5_empty_src")&&D.videoData.isAd()&&X==="fmt.unplayable"&&/Empty src/.test(""+M.msg))return M.origin="emptysrc",D.Rz("auth",M),!0;q||G6W(D.zs.qW())||(M.nonfg="paused",q=!0,D.zs.pauseVideo());(X==="fmt.decode"||X==="fmt.unplayable")&&(h==null?0:Rs(h))&&(qfH(D.UR.D,h.ij),M.acfallexp=h.ij,t=q=!0);!q&&D.Y>0&&(D.S.start(),q=!0,M.delayed="1",--D.Y);h=D.zs.loader; q||!((Q==null?0:mq(Q))||(Q==null?0:En(Q)))||H||(qfH(D.UR.D,Q.ij),t=q=!0,M.cfallexp=Q.ij);if(!q)return z_o(D,M);H=!1;D.D?D.i_=(0,g.fi)():H=D.D=!0;q=D.videoData;if(q.L$){q=q.L$.F0();var w=Date.now()/1E3+1800;q=q6048E5&&QPH(D,"signature");return!1}; QPH=function(D,X){try{X={detail:"pr."+X},(zc(D.UR)||Tc(D.UR)==="TVHTML5_FOR_KIDS")&&D.UR.T("html5_reload_by_kabuki_app")?D.zs.ZS("qoe.restart",1,void 0,Ga(X),"7"):(D.Rz("qoe.restart",X),window.location.reload())}catch(M){}}; HLm=function(D,X){var M=D.UR.D;M.J=!1;M.G=!0;D.Rz("qoe.restart",{e:X===void 0?"fmt.noneavailable":X,detail:"hdr"});D.zs.Hx(!0)}; tCn=function(D,X,M,Q,h,H){this.videoData=D;this.S=X;this.reason=M;this.G=Q;this.token=h;this.videoId=H}; Hu=function(D,X,M,Q){this.j=D;this.xx=X;this.zs=M;this.Hb=Q;this.K=this.X=this.S=this.U=this.J=this.G=0;this.D=!1;this.eH=g.lx(this.j.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Y=new Map}; NNm=function(D,X,M){!D.j.T("html5_tv_ignore_capable_constraint")&&g.Nn(D.j)&&(M=M.compose(D.Rg(X)));return M}; qG2=function(D){if(D.zs.qW().isInline())return GL;D=e$[Vf()];return g.mm("auto",D,!1,"s")}; TNi=function(D,X){var M,Q=w8i(D,(M=X.S)==null?void 0:M.videoInfos);M=D.zs.getPlaybackRate();return M>1&&Q?(D=h4s(D.j.D,X.S.videoInfos,M),new Pt(0,D,!0,"o")):new Pt(0,0,!1,"o")}; w8i=function(D,X){return X&&g.Nn(D.j)?X.some(function(M){return M.video.fps>32}):!1}; L31=function(D,X){if(D.T("html5_disable_ustreamer_constraint_for_sabr")&&Er(X.videoData))return GL;var M=D.zs.ai();D.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&M&&M.b5>0&&b5(X.videoData.vW)&&(D=M.b5,X.videoData.vW=new Pt(0,D,!1,"u"));return X.videoData.vW}; sPW=function(D,X){var M;a:if((M=X.S)&&M.videoInfos.length){for(var Q=g.e(M.videoInfos),h=Q.next();!h.done;h=Q.next()){h=h.value;var H=void 0;if((H=h.G)==null?0:H.smooth){M=h.video.qualityOrdinal;break a}}M=M.videoInfos[0].video.qualityOrdinal}else M=0;(g.lE("armv7")||g.lE("aarch64")||g.lE("android"))&&!g.Nn(D.j)&&En(X.S.videoInfos[0])&&(M=Math.min(M,g.BE.large));Q=g.lx(D.j.experiments,"html5_chipset_soft_cap");Q>0&&(M=Math.min(M,Q));if(Q=g.lx(D.j.experiments,"html5_max_vertical_resolution")){h=4320; for(H=0;HQ&&(h=Math.min(h,t.video.qualityOrdinal))}if(h<4320){for(t=H=0;t32){h=!0;break a}}h=!1}h&&(M=Math.min(M,Q));(Q=g.lx(D.j.experiments,"html5_live_quality_cap"))&&X.videoData.isLivePlayback&&(M=Math.min(M,Q));M=K32(D,X,M);D=g.lx(D.j.experiments,"html5_byterate_soft_cap");return new Pt(0,M===4320?0:M,!1,"d",D)}; F3p=function(D){var X,M,Q,h;return g.r(function(H){switch(H.S){case 1:return D.S.S&&typeof((X=navigator.mediaCapabilities)==null?void 0:X.decodingInfo)==="function"?g.I(H,Promise.resolve(),2):H.return(Promise.resolve());case 2:M=g.e(D.S.videoInfos),Q=M.next();case 3:if(Q.done){H.D4(0);break}h=Q.value;return g.I(H,tUn(h),4);case 4:Q=M.next(),H.D4(3)}})}; BNp=function(D,X,M,Q){if(!X||!M||!X.videoData.G)return!1;var h=g.lx(D.j.experiments,"html5_df_downgrade_thresh"),H=D.T("html5_log_media_perf_info");if(!((0,g.fi)()-D.U<5E3?0:H||h>0))return!1;var t=((0,g.fi)()-D.U)/1E3;D.U=(0,g.fi)();M=M.getVideoPlaybackQuality();if(!M)return!1;var q=M.droppedVideoFrames-D.X,w=M.totalVideoFrames-D.K;D.X=M.droppedVideoFrames;D.K=M.totalVideoFrames;var T=M.displayCompositedVideoFrames===0?0:M.displayCompositedVideoFrames||-1;H&&D.j.t5()&&D.zs.SH("ddf",{dr:M.droppedVideoFrames, de:M.totalVideoFrames,comp:T});if(Q)return D.S=0,!1;if((w-q)/t>D.eH||!h||g.Nn(D.j))return!1;D.S=(w>60?q/w:0)>h?D.S+1:0;if(D.S!==3)return!1;VCW(D,X.videoData.G);D.zs.SH("dfd",Object.assign({dr:M.droppedVideoFrames,de:M.totalVideoFrames},$Rd()));return!0}; VCW=function(D,X){var M=X.ij,Q=X.video.fps,h=X.video.qualityOrdinal-1,H=D.Y;X=""+M+(Q>49?"p60":Q>32?"p48":"");M=W2(M,Q,H);h>0&&(M=Math.min(M,h));if(!t5.has(X)&&ZQ().includes(X)){var t=M;M=Bt();+M[X]>0&&(t=Math.min(+M[X],t));M[X]!==t&&(M[X]=t,g.gw("yt-player-performance-cap",M,2592E3))}else if(t5.has(X)||H==null){a:{t=t===void 0?!0:t;Q=ZQ().slice();if(t){if(Q.includes(X))break a;Q.push(X)}else{if(!Q.includes(X))break a;Q.splice(Q.indexOf(X),1)}g.gw("yt-player-performance-cap-active-set",Q,2592E3)}xC.set(X, M)}else t5.add(X),H==null||H.set(X,M);D.zs.vv()}; ZLR=function(D,X){if(!X.S.S)return D.D?new Pt(0,360,!1,"b"):GL;for(var M=!1,Q=!1,h=g.e(X.S.videoInfos),H=h.next();!H.done;H=h.next())mq(H.value)?M=!0:Q=!0;M=M&&Q;Q=0;h=g.lx(D.j.experiments,"html5_performance_cap_floor");h=D.j.G?240:h;X=g.e(X.S.videoInfos);for(H=X.next();!H.done;H=X.next()){var t=H.value;if(!M||!mq(t))if(H=W2(t.ij,t.video.fps,D.Y),t=t.video.qualityOrdinal,Math.max(H,h)>=t){Q=t;break}}return new Pt(0,Q,!1,"b")}; URs=function(D,X){var M=D.zs.qW();return M.isInline()&&!X.GT?new Pt(0,480,!1,"v"):Er(X)?GL:M.isBackground()&&Vc()/1E3>60&&!g.Nn(D.j)?new Pt(0,360,!1,"v"):GL}; cY5=function(D,X,M){if(D.j.experiments.Z4("html5_disable_client_autonav_cap_for_onesie")&&X.fetchType==="onesie"||g.Nn(D.j)&&(Vf(-1)>=1080||X.osid))return GL;var Q=g.lx(D.j.experiments,"html5_autonav_quality_cap"),h=g.lx(D.j.experiments,"html5_autonav_cap_idle_secs");return Q&&X.isAutonav&&Vc()/1E3>h?(M&&(Q=K32(D,M,Q)),new Pt(0,Q,!1,"e")):GL}; K32=function(D,X,M){if(D.T("html5_optimality_defaults_chooses_next_higher")&&M)for(D=X.S.videoInfos,X=1;X=0||(D.provider.zs.getVisibilityState()===3?D.D=!0:(D.S=g.y6(D.provider),D.delay.start()))}; EM9=function(D){if(!(D.G<0)){var X=g.y6(D.provider),M=X-D.U;D.U=X;D.playerState.state===8?D.playTimeSecs+=M:D.playerState.isBuffering()&&!g.x(D.playerState,16)&&(D.rebufferTimeSecs+=M)}}; yY_=function(D){var X;switch((X=D.j.playerCanaryStage)==null?void 0:X.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Pyi=function(D){var X=this;this.provider=D;this.K=!1;this.S=0;this.U=-1;this.mX=NaN;this.Y=0;this.segments=[];this.J=this.X=0;this.previouslyEnded=!1;this.D=0;this.serializedPlaybackPingContextLoggingData=void 0;this.py={MTj:function(){return X.serializedPlaybackPingContextLoggingData}}; this.f$=this.provider.zs.getVolume();this.eH=this.provider.zs.isMuted()?1:0;this.G=qO(this.provider)}; wt=function(D){D.G.startTime=D.Y;D.G.endTime=D.S;var X;if((X=D.serializedPlaybackPingContextLoggingData)==null?0:X.length)D.G.serializedPlaybackPingContextLoggingData=D.serializedPlaybackPingContextLoggingData;X=!1;D.segments.length&&g.lW(D.segments).isEmpty()?(D.segments[D.segments.length-1].previouslyEnded&&(D.G.previouslyEnded=!0),D.segments[D.segments.length-1]=D.G,X=!0):D.segments.length&&D.G.isEmpty()||(D.segments.push(D.G),X=!0);X?D.G.endTime===0&&(D.previouslyEnded=!1):D.G.previouslyEnded&& (D.previouslyEnded=!0);D.X+=D.S-D.Y;D.G=qO(D.provider);D.G.previouslyEnded=D.previouslyEnded;D.provider.j.Q2().S.xl(mRR)&&(D.D+=JSON.stringify(D.G).length);D.previouslyEnded=!1;D.Y=D.S}; bLH=function(D){nMm(D);D.J=g.$H(function(){D.update()},100); D.mX=g.y6(D.provider);D.G=qO(D.provider)}; nMm=function(D){g.ZS(D.J);D.J=NaN}; eXs=function(D,X,M){M-=D.mX;return X===D.S&&M>.5}; RXR=function(D,X,M,Q){this.j=X;this.qj=M;this.segments=[];this.experimentIds=[];this.t$=this.J5=this.isFinal=this.delayThresholdMet=this.h5=this.bM=this.autoplay=this.autonav=!1;this.Ky="yt";this.X=[];this.J=this.eH=null;this.sendVisitorIdHeader=this.p$=!1;this.K=this.pageId="";this.ZJ=!1;this.D=M==="watchtime";this.Y=M==="playback";this.sR=M==="atr";this.I6=M==="engage";this.sendVisitorIdHeader=!1;this.uri=this.sR?"/api/stats/"+M:"//"+X.Ej+"/api/stats/"+M;Q&&(this.J5=Q.fs,Q.rtn&&(this.J=Q.rtn),this.D? (this.playerState=Q.state,Q.rti>0&&(this.eH=Q.rti)):(this.wj=Q.mos,this.WB=Q.volume,Q.at&&(this.adType=Q.at)),Q.autonav&&(this.autonav=Q.autonav),Q.inview!=null&&(this.Vq=Q.inview),Q.size&&(this.DJ=Q.size),Q.playerwidth&&(this.p6=Q.playerwidth),Q.playerheight&&(this.T6=Q.playerheight));this.G6=g.gS(X.S);this.K=KT(X.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.K==="all"||this.K==="once")this.Mj=g.gS(X.h5);this.QB=X.wj;this.experimentIds=Dl2(X.experiments);this.A$=X.ZJ;this.Ky=X.f$;this.region= X.region;this.userAge=X.userAge;this.q5=X.u$;this.l0=Vc();this.sendVisitorIdHeader=X.sendVisitorIdHeader;this.L$=X.T("vss_pings_using_networkless")||X.T("kevlar_woffle");this.EC=X.T("vss_final_ping_send_and_write");this.M5=X.T("vss_use_send_and_write");this.pageId=X.pageId;this.kC=X.T("vss_playback_use_send_and_write");X.livingRoomAppMode&&(this.livingRoomAppMode=X.livingRoomAppMode);g.eO(X)&&(this.yf=X.L$);g.s0(g.CT(X))&&this.X.push(1);this.accessToken=g.lf(D);D.EY[this.qj]?this.U=D.EY[this.qj]: D.EY.playback&&(this.U=D.EY.playback);this.adFormat=D.adFormat;this.adQueryId=D.adQueryId;this.autoplay=cSW(D);this.Y&&(this.bM=D.nh&&ON(D)==="adunit"?!0:!1);this.autonav=D.isAutonav||this.autonav;this.contentVideoId=Au(D);this.clientPlaybackNonce=D.clientPlaybackNonce;this.h5=D.KK;D.X&&(this.R5=D.X,this.R2=D.HW);D.mdxEnvironment&&(this.mdxEnvironment=D.mdxEnvironment);this.S=D.Mj;this.Lz=D.Lz;D.G&&(this.iM=D.G.itag,D.U&&D.U.itag!==this.iM&&(this.zm=D.U.itag));D.S&&vt(D.S)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=ON(D);this.t$=D.Vq?!1:D.bM;this.w6=D.VH;if(X=Py(D))this.ZW=X;this.MK=D.AL;this.partnerId=D.partnerId;this.eventId=D.eventId;this.playlistId=D.rh||D.playlistId;this.ly=D.ly;this.e0=D.e0;this.Az=D.Az;this.i6=D.i6;this.subscribed=D.subscribed;this.videoId=D.videoId;this.videoMetadata=D.videoMetadata;this.visitorData=D.visitorData;this.osid=D.osid;this.EO=D.EO;this.referrer=D.referrer;this.b6=D.oQ||D.b6;this.o5=D.NQ;this.qh=D.qh;this.userGenderAge=D.userGenderAge;this.H_=D.H_;this.embedsRct= D.embedsRct;this.embedsRctn=D.embedsRctn;g.eO(this.j)&&D.mutedAutoplay&&(D.mutedAutoplayDurationMode===2&&D.limitedPlaybackDurationInSeconds===0&&D.endSeconds===0?this.X.push(7):this.X.push(2));D.isEmbedsShortsMode(new g.tn(this.p6,this.T6),!!this.playlistId)&&this.X.push(3);g.MD(D)&&this.X.push(4);this.OR=D.UT;D.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=D.compositeLiveIngestionOffsetToken);D=D.getPlayerResponse();var h,H;this.ZJ=this.j.T("html5_switch_vss_to_post")|| !!(D==null?0:(h=D.playerConfig)==null?0:(H=h.vssClientConfig)==null?0:H.vssUsePostRequest)}; I8s=function(D,X){var M=D.sendVisitorIdHeader?D.visitorData:void 0;return g.Ni(D.j,D.accessToken).then(function(Q){return V6(D.uri,D.j,D.pageId,M,Q,X)})}; dRs=function(D,X){return function(){D.j.T("html5_simplify_pings")?(D.S=D.uj,D.XS=X(),D.l0=0,D.send()):I8s(D).then(function(M){var Q=gM1(D);Q.cmt=Q.len;Q.lact="0";var h=X().toFixed(3);Q.rt=Number(h).toString();Q=g.nJ(D.uri,Q);D.j.T("vss_through_gel_double")&&vMH(Q);D.L$?(M==null&&(M={}),D.M5?Yr().sendAndWrite(Q,M):Yr().sendThenWrite(Q,M)):M?g.PX(Q,M):g.gf(Q)})}}; gM1=function(D){var X={ns:D.Ky,el:D.eventLabel,cpn:D.clientPlaybackNonce,ver:2,cmt:D.G(D.S),fmt:D.iM,fs:D.J5?"1":"0",rt:D.G(D.XS),adformat:D.adFormat,content_v:D.contentVideoId,euri:D.QB,lact:D.l0,live:D.ZW,cl:(830220508).toString(),mos:D.wj,state:D.playerState,volume:D.WB};D.subscribed&&(X.subscribed="1");Object.assign(X,D.G6);D.K==="all"?Object.assign(X,D.Mj):D.K==="once"&&D.Y&&Object.assign(X,D.Mj);D.autoplay&&(X.autoplay="1");D.bM&&(X.sautoplay="1");D.h5&&(X.dni="1");!D.D&&D.yf&&(X.epm=rYR[D.yf]); D.isFinal&&(X["final"]="1");D.t$&&(X.splay="1");D.Lz&&(X.delay=D.Lz);D.A$&&(X.hl=D.A$);D.region&&(X.cr=D.region);D.userGenderAge&&(X.uga=D.userGenderAge);D.userAge!==void 0&&D.q5&&(X.uga=D.q5+D.userAge);D.uj!==void 0&&(X.len=D.G(D.uj));!D.D&&D.experimentIds.length>0&&(X.fexp=D.experimentIds.toString());D.J!==null&&(X.rtn=D.G(D.J));D.b6&&(X.feature=D.b6);D.e0&&(X.ctrl=D.e0);D.Az&&(X.ytr=D.Az);D.zm&&(X.afmt=D.zm);D.offlineDownloadUserChoice&&(X.ODUC=D.offlineDownloadUserChoice);D.f$&&(X.lio=D.G(D.f$)); D.D?(X.idpj=D.w6,X.ldpj=D.MK,D.delayThresholdMet&&(X.dtm="1"),D.eH!=null&&(X.rti=D.G(D.eH)),D.H_&&(X.ald=D.H_),D.compositeLiveIngestionOffsetToken&&(X.clio=D.compositeLiveIngestionOffsetToken)):D.adType!==void 0&&(X.at=D.adType);D.DJ&&(D.Y||D.D)&&(X.size=D.DJ);D.Y&&D.X.length&&(X.pbstyle=D.X.join(","));D.Vq!=null&&(D.Y||D.D)&&(X.inview=D.G(D.Vq));D.D&&(X.volume=Tl(D,g.be(D.segments,function(Q){return Q.volume})),X.st=Tl(D,g.be(D.segments,function(Q){return Q.startTime})),X.et=Tl(D,g.be(D.segments, function(Q){return Q.endTime})),jj(D.segments,function(Q){return Q.playbackRate!==1})&&(X.rate=Tl(D,g.be(D.segments,function(Q){return Q.playbackRate}))),jj(D.segments,function(Q){return Q.S!=="-"})&&(X.als=g.be(D.segments,function(Q){return Q.S}).join(",")),jj(D.segments,function(Q){return Q.previouslyEnded})&&(X.pe=g.be(D.segments,function(Q){return""+ +Q.previouslyEnded}).join(","))); X.muted=Tl(D,g.be(D.segments,function(Q){return Q.muted?1:0})); jj(D.segments,function(Q){return Q.visibilityState!==0})&&(X.vis=Tl(D,g.be(D.segments,function(Q){return Q.visibilityState}))); jj(D.segments,function(Q){return Q.connectionType!==0})&&(X.conn=Tl(D,g.be(D.segments,function(Q){return Q.connectionType}))); jj(D.segments,function(Q){return Q.G!==0})&&(X.blo=Tl(D,g.be(D.segments,function(Q){return Q.G}))); jj(D.segments,function(Q){return!!Q.U})&&(X.blo=g.be(D.segments,function(Q){return Q.U}).join(",")); jj(D.segments,function(Q){return!!Q.compositeLiveStatusToken})&&(X.cbs=g.be(D.segments,function(Q){return Q.compositeLiveStatusToken}).join(",")); jj(D.segments,function(Q){return!!Q.heartbeatLoggingToken})&&(X.hb_data=g.be(D.segments,function(Q){return Q.heartbeatLoggingToken}).join(",")); jj(D.segments,function(Q){return Q.Y!=="-"})&&(X.cc=g.be(D.segments,function(Q){return Q.Y}).join(",")); jj(D.segments,function(Q){return Q.clipId!=="-"})&&(X.clipid=g.be(D.segments,function(Q){return Q.clipId}).join(",")); if(jj(D.segments,function(Q){return!!Q.audioId})){var M="au"; D.Y&&(M="au_d");X[M]=g.be(D.segments,function(Q){return Q.audioId}).join(",")}wc()&&D.R5&&(X.ctt=D.R5,X.cttype=D.R2,X.mdx_environment=D.mdxEnvironment); D.I6&&(X.etype=D.a5!==void 0?D.a5:0);D.o5&&(X.uoo=D.o5);D.livingRoomAppMode&&D.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(X.clram=iL1[D.livingRoomAppMode]||D.livingRoomAppMode);D.U?oMn(D,X):(X.docid=D.videoId,X.referrer=D.referrer,X.ei=D.eventId,X.of=D.EO,X.osid=D.osid,X.vm=D.videoMetadata,D.adQueryId&&(X.aqi=D.adQueryId),D.autonav&&(X.autonav="1"),D.playlistId&&(X.list=D.playlistId),D.i6&&(X.ssrt="1"),D.qh&&(X.upt=D.qh));D.Y&&(D.embedsRct&&(X.rct=D.embedsRct),D.embedsRctn&&(X.rctn= D.embedsRctn),D.compositeLiveIngestionOffsetToken&&(X.clio=D.compositeLiveIngestionOffsetToken));D.OR&&(X.host_cpn=D.OR);return X}; oMn=function(D,X){if(X&&D.U){var M=new Set(["q","feature","mos"]),Q=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),h=new Set(["aqi","autonav","list","ssrt","upt"]);D.U.ns==="3pp"&&(X.ns="3pp");for(var H=g.e(Object.keys(D.U)),t=H.next();!t.done;t=H.next())t=t.value,Q.has(t)||M.has(t)||h.has(t)&&!D.U[t]||(X[t]=D.U[t])}}; Tl=function(D,X){return g.be(X,D.G).join(",")}; vMH=function(D){D.indexOf("watchtime")!==-1&&g.Tm("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:D}})}; Cys=function(D,X){D.attestationResponse&&I8s(D).then(function(M){M=M||{};M.method="POST";M.postParams={atr:D.attestationResponse};D.L$?D.M5?Yr().sendAndWrite(X,M):Yr().sendThenWrite(X,M):g.PX(X,M)})}; OLo=function(D){var X={vssSegmentMetadata:[]};if(jj(D.segments,function(Q){return!!Q.serializedPlaybackPingContextLoggingData})){D=g.e(D.segments); for(var M=D.next();!M.done;M=D.next())X.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:M.value.serializedPlaybackPingContextLoggingData||[""]});return X}}; Lv=function(D){g.O.call(this);var X=this;this.provider=D;this.X="paused";this.D=NaN;this.K=[10,10,10,40];this.eH=this.J=0;this.R5=this.sR=this.a5=this.f$=this.Y=!1;this.G=this.U=NaN;this.logger=new g.KF("vss");this.py={bcz:function(){return X.S}}; this.S=new Pyi(D)}; p8m=function(D){var X=D.provider.videoData.VH,M=D.provider.videoData.AL,Q=[10+X,10,10,40+M-X,40],h,H=(h=D.provider.videoData.getPlayerResponse())==null?void 0:h.playbackTracking,t=H==null?void 0:H.videostatsScheduledFlushWalltimeSeconds;h=H==null?void 0:H.videostatsDefaultFlushIntervalSeconds;if(!(t&&t.length>0&&h))return Q;X=[t[0]+X].concat(g.xW(t.slice(1).map(function(q,w){return q-t[w]})),[h+M-X, h]);return X.some(function(q){return q<0})?(g.aK(D.logger,347111855,"Neg vss scheduled pings "+t+" "+h),Q):X}; Kv=function(D,X){X=X===void 0?NaN:X;var M=g.y6(D.provider);X=isNaN(X)?M:X;X=Math.ceil(X);var Q=D.K[D.J];D.J+11E3;!(H.length>1)&&H[0].isEmpty()||q||(t.J=Kv(D,h));t.send();D.eH++}},(h-M)*1E3); return D.U=h}; at=function(D){g.BX(D.D);D.D=NaN}; sj=function(D){D.S.update();D=D.S;D.segments.length&&D.S===D.Y||wt(D);var X=D.segments;D.segments=[];D.D=0;return X}; FJ=function(D,X){var M=YGW(D.provider);Object.assign(M,{state:D.X});X=new RXR(D.provider.videoData,D.provider.j,X,M);X.S=D.provider.zs.Gw();M=D.provider.videoData.clientPlaybackNonce;X.S=D.provider.zs.HO(M);D.provider.videoData.isLivePlayback||(X.uj=D.provider.zs.getDuration(M));D.provider.videoData.S&&(M=D.provider.videoData.S.hR(X.S))&&(X.f$=M-X.S,LA(D.provider.videoData)&&(X.S+=D.provider.zs.w3(),X.f$-=D.provider.zs.w3()));X.XS=g.y6(D.provider);X.segments=[qO(D.provider)];return X}; AY1=function(D,X){var M=FJ(D,"watchtime");l8o(D)&&(M.delayThresholdMet=!0,D.a5=!0);if(D.G>0){for(var Q=g.e(X),h=Q.next();!h.done;h=Q.next())h=h.value,h.startTime-=D.G,h.endTime-=D.G;M.S-=D.G}else M.S=D.S.S;M.segments=X;return M}; VX=function(D,X){var M=JYp(D,!isNaN(D.U));X&&(D.U=NaN);return M}; JYp=function(D,X){var M=AY1(D,sj(D));!isNaN(D.U)&&X&&(M.eH=D.U);return M}; l8o=function(D){var X;if(X=D.provider.videoData.isLoaded()&&D.provider.videoData.Lz&&D.Y&&!D.a5)X=D.S,X=X.X+X.Gw()-X.Y>=D.provider.videoData.Lz;return!!X}; W3s=function(D){D.provider.videoData.youtubeRemarketingUrl&&!D.sR&&(xRH(D,D.provider.videoData.youtubeRemarketingUrl),D.sR=!0)}; G4H=function(D){D.provider.videoData.googleRemarketingUrl&&!D.R5&&(xRH(D,D.provider.videoData.googleRemarketingUrl),D.R5=!0)}; zXn=function(D){if(!D.H2()&&D.Y){D.X="paused";var X=VX(D);X.isFinal=!0;X.send();D.dispose()}}; k4W=function(D,X){if(!D.H2())if(g.x(X.state,2)||g.x(X.state,512)){if(D.X="paused",g.qZ(X,2)||g.qZ(X,512))g.qZ(X,2)&&(D.S.previouslyEnded=!0),D.Y&&(at(D),VX(D).send(),D.U=NaN)}else if(g.x(X.state,8)){D.X="playing";var M=D.Y&&isNaN(D.D)?Kv(D):NaN;if(!isNaN(M)&&(NZ(X,64)<0||NZ(X,512)<0)){var Q=JYp(D,!1);Q.J=M;Q.send()}g.qZ(X,16)&&X.state.seekSource===58&&(D.S.previouslyEnded=!0)}else D.X="paused"}; uf9=function(D,X,M){if(!D.f$){M||(M=FJ(D,"atr"));M.attestationResponse=X;try{M.send()}catch(Q){if(Q.message!=="Unknown Error")throw Q;}D.f$=!0}}; xRH=function(D,X){var M=D.provider.j;g.Ni(D.provider.j,g.lf(D.provider.videoData)).then(function(Q){var h=D.provider.j.pageId,H=D.provider.j.sendVisitorIdHeader?D.provider.videoData.visitorData:void 0,t=D.provider.j.T("vss_pings_using_networkless")||D.provider.j.T("kevlar_woffle"),q=D.provider.j.T("allow_skip_networkless");Q=V6(X,M,h,H,Q);$5(X,Q,{token:D.provider.videoData.X,IY:D.provider.videoData.HW,mdxEnvironment:D.provider.videoData.mdxEnvironment},M,void 0,t&&!q,!1,!0)})}; jPi=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.G=0;this.muted=!1;this.S=this.clipId="-";this.previouslyEnded=!1}; $8=function(D,X,M){this.videoData=D;this.j=X;this.zs=M;this.S=void 0}; g.y6=function(D){return DaR(D)()}; DaR=function(D){if(!D.S){var X=g.oa(function(Q){var h=(0,g.fi)();Q&&h<=631152E6&&(D.zs.SH("ytnerror",{issue:28799967,value:""+h}),h=(new Date).getTime()+2);return h},D.j.T("html5_validate_yt_now")),M=X(); D.S=function(){return Math.round(X()-M)/1E3}; D.zs.yc()}return D.S}; YGW=function(D){var X=D.zs.Yb()||{};X.fs=D.zs.cX();X.volume=D.zs.getVolume();X.muted=D.zs.isMuted()?1:0;X.mos=X.muted;X.clipid=D.zs.nB();var M;X.playerheight=((M=D.zs.getPlayerSize())==null?void 0:M.height)||0;var Q;X.playerwidth=((Q=D.zs.getPlayerSize())==null?void 0:Q.width)||0;D=D.videoData;M={};D.G&&(M.fmt=D.G.itag,D.U&&(D.t$?D.U.itag!==D.G.itag:D.U.itag!=D.G.itag)&&(M.afmt=D.U.itag));M.ei=D.eventId;M.list=D.playlistId;M.cpn=D.clientPlaybackNonce;D.videoId&&(M.v=D.videoId);D.OP&&(M.infringe=1); (D.Vq?0:D.bM)&&(M.splay=1);(Q=Py(D))&&(M.live=Q);D.nh&&(M.sautoplay=1);D.vB&&(M.autoplay=1);D.ly&&(M.sdetail=D.ly);D.partnerId&&(M.partnerid=D.partnerId);D.osid&&(M.osid=D.osid);D.kY&&(M.cc=g.UVi(D.kY));return Object.assign(X,M)}; Tb5=function(D){var X=Xri();if(X)return X4s[X]||X4s.other;if(g.Nn(D.j)){D=navigator.userAgent;if(/[Ww]ireless[)]/.test(D))return 3;if(/[Ww]ired[)]/.test(D))return 30}return 0}; qO=function(D){var X=new jPi,M;X.Y=((M=YGW(D).cc)==null?void 0:M.toString())||"-";X.playbackRate=D.zs.getPlaybackRate();M=D.zs.getVisibilityState();M!==0&&(X.visibilityState=M);D.j.o5&&(X.G=1);X.U=D.videoData.KS;X.compositeLiveStatusToken=D.videoData.compositeLiveStatusToken;X.heartbeatLoggingToken=D.videoData.heartbeatLoggingToken;M=D.zs.getAudioTrack();M.Cy&&M.Cy.id&&M.Cy.id!=="und"&&(X.audioId=M.Cy.id);X.connectionType=Tb5(D);X.volume=D.zs.getVolume();X.muted=D.zs.isMuted();X.clipId=D.zs.nB()|| "-";X.S=D.videoData.kx||"-";return X}; g.Bu=function(D,X){g.O.call(this);var M=this;this.provider=D;this.Y=new Map;this.mj=new g.LZ;this.py={xPy:function(){return M.qoe}, ciH:function(){return M.S}, Wsz:function(){return M.G}}; this.provider.videoData.X8()&&!this.provider.videoData.ZW&&(this.S=new Lv(this.provider),this.S.G=0,g.p(this,this.S),this.qoe=new g.fM(this.provider,X),g.p(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.VN=this.provider.videoData.clientPlaybackNonce)&&this.Y.set(this.VN,this.S));if(D.j.playerCanaryState==="canary"||D.j.playerCanaryState==="holdback")this.G=new NO(this.provider),g.p(this,this.G)}; MDs=function(D){D.G&&SG_(D.G);D.qoe&&ZSp(D.qoe)}; QY9=function(D){D.G&&D.G.send();if(D.qoe){var X=D.qoe;if(X.U){X.mj==="PL"&&(X.mj="N");var M=g.y6(X.provider);g.cp(X,M,"vps",[X.mj]);X.J||(X.Y>=0&&X.S.set("user_intent",[X.Y.toString()]),X.J=!0);X.provider.j.t5()&&X.SH("finalized",{});X.L$=!0;X.reportStats(M)}}if(D.provider.videoData.enableServerStitchedDai)for(X=g.e(D.Y.values()),M=X.next();!M.done;M=X.next())zXn(M.value);else D.S&&zXn(D.S);D.dispose()}; hxm=function(D,X){D.S&&uf9(D.S,X)}; Hzd=function(D){if(!D.S)return null;var X=FJ(D.S,"atr");return function(M){D.S&&uf9(D.S,M,X)}}; tD9=function(D,X,M,Q){M.adFormat=M.zm;var h=X.zs;X=new Lv(new $8(M,X.j,{getDuration:function(){return M.lengthSeconds}, getCurrentTime:function(){return h.getCurrentTime()}, Gw:function(){return h.Gw()}, HO:function(){return h.HO()}, zW:function(){return h.zW()}, getPlayerSize:function(){return h.getPlayerSize()}, getAudioTrack:function(){return M.getAudioTrack()}, getPlaybackRate:function(){return h.getPlaybackRate()}, SB:function(){return h.SB()}, getVisibilityState:function(){return h.getVisibilityState()}, g6:function(){return h.g6()}, Yb:function(){return h.Yb()}, getVolume:function(){return h.getVolume()}, isMuted:function(){return h.isMuted()}, cX:function(){return h.cX()}, nB:function(){return h.nB()}, getProximaLatencyPreference:function(){return h.getProximaLatencyPreference()}, yc:function(){h.yc()}, SH:function(H,t){h.SH(H,t)}, xA:function(){return h.xA()}, w3:function(){return h.w3()}, Ee:function(){return h.Ee()}})); X.G=Q;g.p(D,X);return X}; NkH=function(){this.JF=0;this.U=this.Y=this.FL=this.sJ=this.G=NaN;this.S={};this.bandwidthEstimate=NaN}; q9_=function(){this.S=g.dI;this.array=[]}; Tkm=function(D,X,M){var Q=[];for(X=w4R(D,X);XM)break}return Q}; Zp=function(D,X){var M=[];D=g.e(D.array);for(var Q=D.next();!Q.done&&!(Q=Q.value,Q.contains(X)&&M.push(Q),Q.start>X);Q=D.next());return M}; Lco=function(D){return D.array.slice(w4R(D,0x7ffffffffffff),D.array.length)}; w4R=function(D,X){D=Kf(D.array,function(M){return X-M.start||1}); return D<0?-(D+1):D}; sY2=function(D,X){var M=NaN;D=g.e(D.array);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,Q.contains(X)&&(isNaN(M)||Q.endX&&(isNaN(M)||Q.startD.mediaTime+D.D&&X1)D.U=!0;if((h===void 0?0:h)||isNaN(D.G))D.G=X;if(D.S)X!==D.mediaTime&&(D.S=!1);else if(X>0&&D.mediaTime===X){h=1500;if(D.j.T("html5_buffer_underrun_transition_fix")){h=g.lx(D.j.experiments,"html5_min_playback_advance_for_steady_state_secs");var H=g.lx(D.j.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");h=h>0&&H>0&&Math.abs(X-D.G)(Q||!D.U?h:400)}D.mediaTime=X;D.Y=M;return!1}; Uan=function(D,X){this.videoData=D;this.S=X}; c_s=function(D,X,M){return X.Zf(M).then(function(){return vX(new Uan(X,X.Y))},function(Q){Q instanceof Error&&g.P3(Q); var h=DH('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),H=M0('audio/mp4; codecs="mp4a.40.2"'),t=h||H,q=X.isLivePlayback&&!g.V5(D.D,!0);Q="fmt.noneavailable";q?Q="html5.unsupportedlive":t||(Q="html5.missingapi");t=q||!t?2:1;h={buildRej:"1",a:X.b9(),d:!!X.FY,drm:X.aj(),f18:X.S1.indexOf("itag=18")>=0,c18:h};X.S&&(X.aj()?(h.f142=!!X.S.S["142"],h.f149=!!X.S.S["149"],h.f279=!!X.S.S["279"]):(h.f133=!!X.S.S["133"],h.f140=!!X.S.S["140"],h.f242=!!X.S.S["242"]),h.cAAC=H,h.cAVC=M0('video/mp4; codecs="avc1.42001E"'), h.cVP9=M0('video/webm; codecs="vp9"'));X.D&&(h.drmsys=X.D.keySystem,H=0,X.D.S&&(H=Object.keys(X.D.S).length),h.drmst=H);return new g.za(Q,h,t)})}; fv=function(D){this.data=window.Float32Array?new Float32Array(D):Array(D);this.G=this.S=D-1}; fW9=function(D){return D.data[D.S]||0}; S9p=function(D){this.D=D;this.Y=this.G=0;this.U=new fv(50)}; Ej=function(D,X,M){g.Dq.call(this);this.videoData=D;this.experiments=X;this.D=M;this.G=[];this.d1=0;this.Y=!0;this.U=!1;this.X=0;M=new E7i;D.latencyClass==="ULTRALOW"&&(M.K=!1);D.xp?M.Y=3:g.Rp(D)&&(M.Y=2);D.latencyClass==="NORMAL"&&(M.D=!0);M.f$=Er(D);if(D.latencyClass==="LOW"||D.latencyClass==="ULTRALOW")M.D=!0;var Q=g.lx(X,"html5_liveness_drift_proxima_override");if(UN(D)!==0&&Q){M.S=Q;var h;((h=D.S)==null?0:aH2(h))&&M.S--}Er(D)&&X.Z4("html5_sabr_parse_live_metadata_playback_boundaries")&&(M.R5= !0);if(g.lE("trident/")||g.lE("edge/"))h=g.lx(X,"html5_platform_minimum_readahead_seconds")||3,M.U=Math.max(M.U,h);g.lx(X,"html5_minimum_readahead_seconds")&&(M.U=g.lx(X,"html5_minimum_readahead_seconds"));g.lx(X,"html5_maximum_readahead_seconds")&&(M.eH=g.lx(X,"html5_maximum_readahead_seconds"));if(X=g.lx(X,"html5_liveness_drift_chunk_override"))M.S=X;ZZ(D)&&(M.S=(M.S+1)/5,D.latencyClass==="LOW"&&(M.S*=2));!Er(D)||D.latencyClass!=="ULTRALOW"&&D.latencyClass!=="LOW"||(M.J=3,M.X=25);this.policy=M; this.J=this.policy.Y!==1;this.S=SA(this,y_R(this,isNaN(D.liveChunkReadahead)?3:D.liveChunkReadahead,D))}; PXm=function(D,X){if(X)return X=D.videoData,X=y_R(D,isNaN(X.liveChunkReadahead)?3:X.liveChunkReadahead,X),SA(D,X);if(D.G.length){if(Math.min.apply(null,D.G)>1)return SA(D,D.S-1);if(D.policy.K)return SA(D,D.S+1)}return D.S}; ma2=function(D,X){if(!D.G.length)return!1;var M=D.S;D.S=PXm(D,X===void 0?!1:X);if(X=M!==D.S)D.G=[],D.d1=0;return X}; Pu=function(D,X){return X>=D.gY()-yX(D)}; n7H=function(D,X,M){X=Pu(D,X);M||X?X&&(D.Y=!0):D.Y=!1;D.J=D.policy.Y===2||D.policy.Y===3&&D.Y}; bzo=function(D,X){X=Pu(D,X);D.U!==X&&D.publish("livestatusshift",X);D.U=X}; yX=function(D){var X=D.policy.S;D.U||(X=Math.max(X-1,0));return X*mC(D)}; y_R=function(D,X,M){M.xp&&X--;ZZ(M)&&(X=1);if(UN(M)!==0&&(D=g.lx(D.experiments,"html5_live_chunk_readahead_proxima_override"))){X=D;var Q;((Q=M.S)==null?0:aH2(Q))&&X++}return X}; mC=function(D){return D.videoData.S?CF(D.videoData.S)||5:5}; SA=function(D,X){X=Math.max(Math.max(1,Math.ceil(D.policy.U/mC(D))),X);return Math.min(Math.min(8,Math.floor(D.policy.eH/mC(D))),X)}; E7i=function(){this.U=0;this.eH=Infinity;this.K=!0;this.G=this.S=2;this.Y=1;this.D=!1;this.X=10;this.R5=!1;this.J=1;this.f$=!1}; eA=function(D){g.O.call(this);this.zs=D;this.S=0;this.G=null;this.X=this.U=0;this.Y={};this.j=this.zs.W();this.D=new g.W5(this.f6,1E3,this);this.t$=nv(this,"html5_seek_timeout_delay_ms");this.a5=nv(this,"html5_long_rebuffer_threshold_ms");this.p$=nv(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.M5=nv(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.yf=nv(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Mj=nv(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.f$=nv(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.R5=new bp(2E4);this.uj=nv(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.A$=nv(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.OR=nv(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.L$=nv(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.K=nv(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.eH=nv(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.o5=nv(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.q5=nv(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.J=nv(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.zm=new bp(g.lx(this.j.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.j.T("html5_report_slow_ads_as_error"));this.R2=new bp(g.lx(this.j.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.j.T("html5_skip_slow_buffering_ad"));this.h5=nv(this,"html5_slow_start_timeout_delay_ms");this.sR=nv(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.p(this,this.D)}; nv=function(D,X,M){M=M===void 0?null:M;var Q=Q===void 0?0:Q;return new bp(g.lx(D.j.experiments,X)||Q,M?D.j.T(M):!1)}; ex1=function(D,X){D.S=X}; Rt=function(D,X,M,Q,h,H,t,q){X?X.test(M)?(D.Rz(h,X,t),X.X||H()):(!X.G||X.U?M=!1:(M=(0,g.fi)(),Q?X.S||(X.S=M):X.S=0,H=!Q&&M-X.G>3E4,M=X.S&&M-X.S>1E3||H?X.U=!0:!1),M&&(q=Object.assign({},D.ip(X),q),q.wn=t,q.we=h,q.wsuc=Q,D.zs.SH("workaroundReport",q),Q&&(X.reset(),D.Y[h]=!1))):D.zs.ZS("auth",2,"BROWSER_OR_EXTENSION_ERROR",Ga({source:"watchdog",name:t}))}; bp=function(D,X){this.X=X===void 0?!1:X;this.S=this.G=this.Y=this.startTimestamp=0;this.U=!1;this.D=Math.ceil(D/1E3)}; v72=function(D){g.O.call(this);var X=this;this.zs=D;this.K=this.S=this.loader=this.mediaElement=this.playbackData=null;this.Y=0;this.D=this.a5=this.U=null;this.L$=!1;this.Mj=0;this.R5=!1;this.timestampOffset=0;this.eH=!0;this.A$=0;this.p$=this.qj=!1;this.J=0;this.q5=!1;this.yf=this.sR=0;this.j=this.zs.W();this.videoData=this.zs.getVideoData();this.policy=new Rxs;this.f$=new eA(this.zs);this.R2=this.OR=this.uj=this.X=this.G=NaN;this.M5=new g.W5(function(){IW_(X,!1)},2E3); this.J5=new g.W5(function(){It(X)}); this.t$=new g.W5(function(){g71(X,{})}); this.h5=NaN;this.zm=new g.W5(function(){var M=X.j.A2;M.S+=1E4/36E5;M.S-M.Y>1/6&&(e4m(M),M.Y=M.S);X.zm.start()},1E4); g.p(this,this.f$);g.p(this,this.M5);g.p(this,this.t$);g.p(this,this.J5);g.p(this,this.zm)}; izH=function(D,X){D.playbackData=X;D.videoData.isLivePlayback&&(D.K=new S9p(function(){a:{if(D.playbackData&&D.playbackData.S.S){if(By(D.videoData)&&D.loader){var Q=D.loader.qB.OW()||0;break a}if(D.videoData.S){Q=D.videoData.S.L$;break a}}Q=0}return Q}),D.S=new Ej(D.videoData,D.j.experiments,function(){return D.qx(!0)})); if(gt(D.zs)){var M;(M=D.videoData.Ey)!=null&&M.Y1||(X=dao(D),X.fG?(Er(D.videoData)&&D.qk(X.fG,X.startSeconds),D.Y=X.startSeconds):X.startSeconds>0&&D.seekTo(X.startSeconds,{Aa:"seektimeline_startPlayback",seekSource:15}));D.eH=!1}else r_s(D)||(D.Y=D.Y||D.videoData.startSeconds||0,D.videoData.isLivePlayback||(X=D.zs.videoData.qx(),D.Y>X&&(D.T("html5_sabr_log_invalid_sabr_current_time")&&D.zs.SH("invalidSabrCmtStart",{rt:D.Y,mst:X}),D.T("html5_sabr_vod_invalid_start_time_fallback")&&(D.Y=0))))}; CXn=function(D,X){(D.loader=X)?o7n(D,!0):vu(D)}; p4d=function(D,X){var M=D.getCurrentTime(),Q=D.isAtLiveHead(M);if(D.K&&Q){var h=D.K;if(h.S&&!(M>=h.G&&M50&&h.G.shift())),h=D.S,n7H(h,M,X===void 0?!0:X),bzo(h,M),X&&IW_(D,!0));Q!==D.qj&&(X=D.getCurrentTime()-D.R2<=500,M=D.Mj>=1E3,X||M||(X=D.zs.mZ,X.qoe&&(X=X.qoe,M=g.y6(X.provider), g.cp(X,M,"lh",[Q?"1":"0"])),D.qj=Q,D.Mj++,D.R2=D.getCurrentTime()))}; IW_=function(D,X){if(D.S){var M=D.S;var Q=D.getCurrentTime(),h=M.gY();var H=M.policy.G;M.U||(H=Math.max(H-1,0));H*=mC(M);Q>=h-H||!M.Aw()?M=QM+1&&X0&&D.mediaElement.X$()>0&&(D.G=dt(D,D.G,!1)),X=D.T("html5_pseudogapless_shorts_seek_to_next_start")&&(X==null?void 0:X.seekSource)===60,!D.mediaElement||!GMo(D,X))D.J5.start(750);else if(!isNaN(D.G)&&isFinite(D.G)&&(X=D.OR-(D.G-D.timestampOffset),!(X===0||Math.abs(X)<.005)))if(X=D.mediaElement.getCurrentTime()-D.G,Math.abs(X)<=D.A$||Math.abs(X)<.005)zxH(D);else{if(D.videoData.An)D.videoData.An= !1;else if(!FY(D.videoData)&&D.G>=D.qx()-.1){D.G=D.qx();D.U.resolve(D.qx());D.j.t5()&&D.zs.SH("setEndedInSeek",{tgt:""+D.G,maxst:""+D.qx()});D.zs.vH();return}try{var M=D.G-D.timestampOffset;D.mediaElement.seekTo(M);D.f$.S=M;D.OR=M;D.Y=D.G;D.R5=!1}catch(Q){}}}; GMo=function(D,X){X=X===void 0?!1:X;if(!D.mediaElement||D.mediaElement.r$()===0||D.mediaElement.hasError())return!1;var M=D.mediaElement.getCurrentTime()>0;return D.videoData.Y&&D.videoData.Y.S||D.videoData.isLivePlayback||!D.videoData.aj()?D.G>=0&&!X&&(X=D.mediaElement.TQ(),X.length||!M)?AC(X,D.G-D.timestampOffset):M:M}; zxH=function(D){D.U&&(D.U.resolve(D.mediaElement.getCurrentTime()),D.f$.G=null)}; xad=function(D,X){D.D&&(D.D.resolve(X),D.zs.Xe(),D.j.t5()||WcR(D))&&(X=D.ip(),X["native"]=""+ +D.R5,X.otgt=""+(D.G+D.timestampOffset),D.zs.SH("seekEnd",X));vu(D)}; vu=function(D){D.G=NaN;D.X=NaN;D.OR=NaN;D.U=null;D.a5=null;D.D=null;D.L$=!1;D.R5=!1;D.A$=0;D.M5.stop();D.t$.stop()}; u6H=function(D,X){var M=D.mediaElement,Q=X.type;switch(Q){case "seeking":var h=M.getCurrentTime()+D.timestampOffset;if(!D.U||D.R5&&h!==D.G){D.U=new ql;D.U.then(function(t){xad(D,t)},function(){vu(D)}); if(D.videoData.isAd()){var H;dBn({adCpn:D.videoData.clientPlaybackNonce,contentCpn:(H=D.videoData.UT)!=null?H:""},X.S)}D.OR=h;ex1(D.f$,M.getCurrentTime());D.seekTo(h,{seekSource:104,Aa:"seektimeline_mediaElementEvent"});D.R5=!0}break;case "seeked":zxH(D);break;case "loadedmetadata":gt(D.zs)||kM9(D);It(D);break;case "progress":It(D);break;case "pause":D.J=D.getCurrentTime()}D.J&&((Q==="play"||Q==="playing"||Q==="timeupdate"||Q==="progress")&&D.getCurrentTime()-D.J>10&&(D.T("html5_sky_skip_pause_jump")? D.zs.SH("skipPauseJump",{evt:Q,cmt:D.getCurrentTime(),lpt:D.J}):D.seekTo(D.J,{Aa:"pauseJump"})),Q!=="pause"&&Q!=="play"&&Q!=="playing"&&Q!=="progress"&&(D.J=0))}; jY_=function(D){return(Ip(D.videoData)||!!D.videoData.liveUtcStartSeconds)&&(!!D.videoData.liveUtcStartSeconds||r_s(D))&&!!D.videoData.S}; r_s=function(D){return!!D.videoData.startSeconds&&isFinite(D.videoData.startSeconds)&&D.videoData.startSeconds>1E9}; dao=function(D){var X=0,M=NaN,Q="";if(!D.eH)return{startSeconds:X,fG:M,source:Q};D.videoData.yp?X=D.videoData.gO:FY(D.videoData)&&(X=Infinity);if(g.Rp(D.videoData))return{startSeconds:X,fG:M,source:Q};D.videoData.startSeconds?(Q="ss",X=D.videoData.startSeconds):D.videoData.nQ&&(Q="stss",X=D.videoData.nQ);D.videoData.liveUtcStartSeconds&&(M=D.videoData.liveUtcStartSeconds);if(isFinite(X)&&(X>D.qx()||XD.qx()||M 0?(Q.onesie="0",D.handleError(new g.za("html5.missingapi",Q)),!1):!0}; wd_=function(D){var X=CS();OI(X,D);return g.YU(X,p0p())}; tYd=function(D,X,M){var Q,h,H,t,q,w,T,L,K,a,F,V,c,S,b,n,R,v,l,A,Hs,u,D_,q5,Lo,Qs;return g.r(function(S2){if(S2.S==1)return X.fetchType="onesie",Q=pNo(X,D.getPlayerSize(),D.getVisibilityState()),h=new DY(D,Q,M),g.I(S2,h.fetch(),2);H=S2.G;t={player_response:H};X.loading=!1;q=D.dI.Ge;if(h.jV){w=g.e(h.jV.entries());for(T=w.next();!T.done;T=w.next())L=T.value,K=g.e(L),a=K.next().value,F=K.next().value,V=a,c=F,q.S.set(V,c,180),V===X.videoId&&(S=c.Lc(),X.U0=S);q.fn=h}b=g.e(h.E2.entries());for(n=b.next();!n.done;n= b.next())R=n.value,v=g.e(R),l=v.next().value,A=v.next().value,Hs=l,u=A,q.G.set(Hs,u,180);g.j1(X,t,!0);if(X.loading||ky(X))return S2.return(Promise.resolve());q.S.removeAll();q.G.removeAll();X.U0=[];D_={};q5="onesie.response";Lo=0;X.errorCode?(q5="auth",D_.ec=X.errorCode,D_.ed=X.errorDetail,D_.es=X.qT||"",Lo=2):(D_.successButUnplayable="1",D_.disposed=""+ +X.H2(),D_.afmts=""+ +/adaptiveFormats/.test(H),D_.cpn=X.clientPlaybackNonce);Qs=new g.za(q5,D_,Lo);return S2.return(Promise.reject(Qs))})}; Qbm=function(D,X){var M,Q,h,H,t,q,w,T,L,K,a;return g.r(function(F){switch(F.S){case 1:M=X.isAd(),Q=!M,h=M?1:3,H=0;case 2:if(!(H0)){F.D4(5);break}return g.I(F,vP(5E3),6);case 6:t=new g.ys("Retrying OnePlatform request",{attempt:H}),g.P3(t);case 5:return g.N_(F,7),g.I(F,T9m(D,X),9);case 9:return F.return();case 7:q=g.LG(F);w=uZ(q);T=w.errorCode;L=D.W();K=L.T("html5_use_network_error_code_enums")?401:"401";Q&&T==="manifest.net.badstatus"&&w.details.rc===K&&(Q=!1,H===h-1&&(h+= 1));if(H===h-1)return a=Lgm(M,w.details),a.details.backend="op",a.details.originec=T,F.return(Promise.reject(a));if(T==="auth"||T==="manifest.net.retryexhausted")return F.return(Promise.reject(w));D.handleError(w);if(kJ(w.severity)){F.D4(4);break}case 3:H++;F.D4(2);break;case 4:return F.return(Promise.reject(Lgm(M,{backend:"op"})))}})}; T9m=function(D,X){function M(D_){D_.readyState===2&&D.TX("ps_c")} var Q,h,H,t,q,w,T,L,K,a,F,V,c,S,b,n,R,v,l,A,Hs,u;return g.r(function(D_){switch(D_.S){case 1:X.fetchType="gp";Q=D.W();h=g.Ni(Q,g.lf(X));if(!h.S){H=h.getValue();D_.D4(2);break}return g.I(D_,h.S,3);case 3:H=D_.G;case 2:return t=H,q=wd_(t),w=pNo(X,D.getPlayerSize(),D.getVisibilityState()),T=g.Gq(sbR),L=g.lf(X),K=(0,g.fi)(),a=!1,F="empty",V=0,D.TX("psns"),c={Xi:M},g.I(D_,g.RQ(q,w,T,void 0,c),4);case 4:S=D_.G;D.TX("psnr");if(X.H2())return D_.return();S?"error"in S&&S.error?(a=!0,F="esf:"+S.error.message, V=S.error.code):S.errorMetadata&&(a=!0,F="its",V=S.errorMetadata.status):a=!0;if(a)return b=0,n=((0,g.fi)()-K).toFixed(),R={},R=Q.T("html5_use_network_error_code_enums")?{backend:"op",rc:V,rt:n,reason:F,has_kpt:X.o5?"1":"0",has_mdx_env:X.mdxEnvironment?"1":"0",has_omit_key_flag:g.zZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Q.pageId?"1":"0",has_token:L?"1":"0",has_vvt:X.R5?"1":"0",is_mdx:X.isMdxPlayback?"1":"0",mdx_ctrl:X.e0||"",token_eq:L===g.lf(X)?"1":"0"}:{backend:"op", rc:""+V,rt:n,reason:F,has_kpt:X.o5?"1":"0",has_mdx_env:X.mdxEnvironment?"1":"0",has_omit_key_flag:g.zZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Q.pageId?"1":"0",has_token:L?"1":"0",has_vvt:X.R5?"1":"0",is_mdx:X.isMdxPlayback?"1":"0",mdx_ctrl:X.e0||"",token_eq:L===g.lf(X)?"1":"0"},v="manifest.net.connect",V===429?(v="auth",b=2):V>200&&(v="manifest.net.badstatus",V===400&&(b=2)),D_.return(Promise.reject(new g.za(v,R,b)));X.loading=!1;g.j1(X,{raw_player_response:S},!0); l=S;g.r_(X.W())&&l&&l.trackingParams&&NS(l.trackingParams);if(X.errorCode)return A={ec:X.errorCode,ed:X.errorDetail,es:X.qT||""},D_.return(Promise.reject(new g.za("auth",A,2)));if(!X.loading&&!ky(X))return Hs=X.isAd()?"auth":"manifest.net.retryexhausted",u=X.isAd()?2:1,D_.return(Promise.reject(new g.za(Hs,{successButUnplayable:"1",hasMedia:g.nA(X)?"1":"0"},u)));g.HZ(D_)}})}; MY9=function(D,X,M){function Q(V){V=uZ(V);if(kJ(V.severity))return Promise.reject(V);D.handleError(V);return!1} function h(){return!0} var H,t,q,w,T,L,K,a,F;return g.r(function(V){switch(V.S){case 1:var c=D.W();D.getPlayerSize();D.getVisibilityState();D.isFullscreen();if(X.partnerId===38&&c.playerStyle==="books")c=X.videoId.indexOf(":"),c=g.nJ("//play.google.com/books/volumes/"+X.videoId.slice(0,c)+"/content/media",{aid:X.videoId.slice(c+1),sig:X.Ug});else if(X.partnerId===30&&c.playerStyle==="docs")c=g.nJ("https://docs.google.com/get_video_info",{docid:X.videoId,authuser:X.Ru,authkey:X.h3,eurl:c.wj});else if(X.partnerId===33&&c.playerStyle=== "google-live")c=g.nJ("//google-liveplayer.appspot.com/get_video_info",{key:X.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+c.f$);H=c;q=(t=X.isAd())?1:3;w=0;case 2:if(!(w0)){V.D4(5);break}return g.I(V,vP(5E3),6);case 6:L={playerretry:w,playerretrysrc:M},t||(L.recover="embedded"),T=Nq(H,L);case 5:return g.I(V,Kg1(X,T).then(h,Q),7);case 7:if(K=V.G)return V.return();w++;V.D4(2);break;case 4:a=t?"auth":"manifest.net.retryexhausted";F=t?2:1;if(!t&&Math.random()< 1E-4)try{g.P3(new g.ys("b/152131571",btoa(H)))}catch(S){}return V.return(Promise.reject(new g.za(a,{backend:"gvi"},F)))}})}; Kg1=function(D,X){function M(S){return Q(S.xhr)} function Q(S){if(!D.H2()){S=S?S.status:-1;var b=0,n=((0,g.fi)()-L).toFixed();n=h.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:S,rt:n}:{backend:"gvi",rc:""+S,rt:n};var R="manifest.net.connect";S===429?(R="auth",b=2):S>200&&(R="manifest.net.badstatus",S===400&&(b=2));return Promise.reject(new g.za(R,n,b))}} var h,H,t,q,w,T,L,K,a,F,V,c;return g.r(function(S){if(S.S==1){D.fetchType="gvi";h=D.W();var b={};D.xB&&(b.ytrext=D.xB);(q=g.ef(b)?void 0:b)?(H={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:q},t=Nq(X,{action_display_post:1})):(H={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},t=X);w={};h.sendVisitorIdHeader&&D.visitorData&&(w["X-Goog-Visitor-Id"]=D.visitorData);(T=KT(h.experiments,"debug_sherlog_username"))&&(w["X-Youtube-Sherlog-Username"]=T);Object.keys(w).length> 0&&(H.headers=w);L=(0,g.fi)();return g.I(S,P2(bE,t,H).then(void 0,M),2)}K=S.G;if(!K||!K.responseText)return S.return(Q(K));D.loading=!1;a=dR(K.responseText);g.j1(D,a,!0);if(D.errorCode)return F={ec:D.errorCode,ed:D.errorDetail,es:D.qT||""},S.return(Promise.reject(new g.za("auth",F,2)));if(!D.loading&&!ky(D))return V=D.isAd()?"auth":"manifest.net.retryexhausted",c=D.isAd()?2:1,S.return(Promise.reject(new g.za(V,{successButUnplayable:"1"},c)));g.HZ(S)})}; Lgm=function(D,X){return new g.za(D?"auth":"manifest.net.retryexhausted",X,D?2:1)}; Oj=function(D,X,M){M=M===void 0?!1:M;var Q,h,H,t;g.r(function(q){if(q.S==1){Q=D.W();if(M&&(!g.XD(Q)||ON(X)!=="embedded")||X.Nf||ON(X)!=="adunit"&&(g.Nn(Q)||Yv(Q)||g.RW(Q)||g.Dk(Q)||g.iS(Q)||Tc(Q)==="WEB_CREATOR"))return q.return();h=g.Ni(Q,g.lf(X));return h.S?g.I(q,h.S,3):(H=h.getValue(),q.D4(2))}q.S!=2&&(H=q.G);t=H;return q.return(aG_(D,X,t))})}; aG_=function(D,X,M){var Q,h,H,t,q;return g.r(function(w){if(w.S==1){g.N_(w,2);Q=wd_(M);var T=X.W(),L=g.O0(),K={context:g.tb(X),videoId:X.videoId,racyCheckOk:X.racyCheckOk,contentCheckOk:X.contentCheckOk,autonavState:"STATE_NONE"};ON(X)==="adunit"&&(K.isAdPlayback=!0);T.embedConfig&&(K.serializedThirdPartyEmbedConfig=T.embedConfig);T.rX&&(K.showContentOwnerOnly=!0);X.xW&&(K.showShortsOnly=!0);L.xl(141)&&(K.autonavState=L.xl(140)?"STATE_OFF":"STATE_ON");if(g.uS(T)){L=L.xl(65);L=L!=null?!L:!1;var a= !!g.vJ("yt-player-sticky-caption");K.captionsRequested=L&&a}var F;if(T=(F=T.getWebPlayerContextConfig())==null?void 0:F.encryptedHostFlags)K.playbackContext={encryptedHostFlags:T};h=K;H=g.Gq(Fgp);D.TX("wn_s");return g.I(w,g.RQ(Q,h,H),4)}if(w.S!=2)return t=w.G,D.TX("wn_r"),!t||"error"in t&&t.error||(q=t,g.r_(X.W())&&q.trackingParams&&NS(q.trackingParams),g.j1(X,{raw_watch_next_response:t},!1)),g.Ty(w,0);g.LG(w);g.HZ(w)})}; ham=function(D,X){var M,Q,h,H;g.r(function(t){if(t.S==1)return M=D.W(),Q=g.Ni(M,g.lf(X)),Q.S?g.I(t,Q.S,3):(h=Q.getValue(),t.D4(2));t.S!=2&&(h=t.G);H=h;return t.return(VY1(X,H))})}; VY1=function(D,X){var M,Q,h,H;return g.r(function(t){if(t.S==1)return g.N_(t,2),M=wd_(X),Q={context:g.tb(D),playerRequest:{videoId:D.videoId},disablePlayerResponse:!0},h=g.Gq($kp),g.I(t,g.RQ(M,Q,h),4);if(t.S!=2)return H=t.G,!H||"error"in H&&H.error||g.j1(D,{raw_reel_item_watch_response:H}),g.Ty(t,0);g.LG(t);g.HZ(t)})}; B9p=function(D,X){D.TX("vir");D.TX("ps_s");nX("vir",void 0,"video_to_ad");X=qvi(D,X);X.then(function(){D.TX("virc");nX("virc",void 0,"video_to_ad");D.TX("ps_r");nX("ps_r",void 0,"video_to_ad")},function(){D.TX("virc"); nX("virc",void 0,"video_to_ad")}); return X}; g.Y8=function(D,X,M,Q,h,H,t,q,w,T,L){T=T===void 0?new g.zL(D):T;L=L===void 0?!0:L;g.Dq.call(this);var K=this;this.j=D;this.playerType=X;this.r3=M;this.xx=Q;this.getVisibilityState=H;this.visibility=t;this.dI=q;this.Hb=w;this.videoData=T;this.dk=L;this.logger=new g.KF("VideoPlayer");this.Em=null;this.dw=new MO;this.Kh=null;this.c$=!0;this.J$=this.loader=null;this.ZU=[];this.o9=new Cv;this.eV=this.vt=null;this.pZ=new Cv;this.Be=null;this.Li=this.wx=!1;this.Ml=NaN;this.XQ=!1;this.playerState=new g.LZ; this.yk=[];this.MF=new g.HE;this.mediaElement=null;this.Ff=this.tK=!1;this.sF=NaN;this.v_=!1;this.dQ=0;this.l4=!1;this.RS=NaN;this.i_=0;this.loop=!1;this.playbackRate=1;this.nT=0;this.QR=!1;this.TK=[];this.a_=this.OS=0;this.wd=this.z4=!1;this.FL=this.sJ=0;this.j8=!1;this.ma=this.Yo=this.Id=this.Bb=null;this.a6=function(){var a=K.mZ;a.provider.j.QB||a.provider.zs.getVisibilityState()===3||(a.provider.j.QB=!0);a.Kv();if(a.G){var F=a.G;F.D&&F.S<0&&F.provider.zs.getVisibilityState()!==3&&SG_(F)}a.qoe&& (a=a.qoe,a.t$&&a.Y<0&&a.provider.j.QB&&ZSp(a),a.U&&mY(a));K.loader&&pv(K);A5(K)}; this.py={pz:function(a){K.pz(a)}, ot$:function(a){K.Em=a}, S$F:function(){return K.mZ}, U5:function(){return K.J$}, Myj:function(){return K.cJ}, TmC:function(){return K.A3}, xHI:function(){}, W:function(){return K.j}, pK:function(){return K.mediaElement}, DH$:function(a){K.xV(a)}, yi$:function(){return K.xx}}; this.ZT=new Wb9(this);this.v4=new g.W5(this.Ja$,15E3,this);this.O6=new rt(new Map([["bufferhealth",function(){return Ozd(K.BC)}], ["bandwidth",function(){return K.D5()}], ["networkactivity",function(){return K.Hb.a5}], ["livelatency",function(){return K.isAtLiveHead()&&K.isPlaying()?ZKs(K):NaN}], ["rawlivelatency",function(){return ZKs(K)}]])); this.BC=new v72(this);this.gQ=new g.W5(this.wF,0,this);this.djC=[this.MF,this.gQ,this.v4,this.O6];this.Zr=new Zz5(this.j);this.V5=new Hu(this.j,this.xx,this,this.Hb);this.KF=new g.Uj(this,function(a,F){a!==g.rI("endcr")||g.x(K.playerState,32)||K.vH();h(a,F,K.playerType)}); g.p(this,this.KF);g.p(this,this.BC);UkR(this,T);this.videoData.subscribe("dataupdated",this.vCz,this);this.videoData.subscribe("dataloaded",this.zr,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.SH,this);this.videoData.subscribe("ctmpstr",this.HK,this);!this.mZ||this.mZ.H2();this.mZ=new g.Bu(new $8(this.videoData,this.j,this));pAo(this.a6);this.visibility.subscribe("visibilitystatechange",this.a6);this.cJ=new g.W5(this.n3,g.lx(this.j.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.A3=new g.W5(this.n3,g.lx(this.j.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.fR=new g.uh(this.mKI,350,this);g.p(this,this.fR)}; UkR=function(D,X){if(D.playerType===2||D.j.oA)X.vV=!0;var M=EDs(X.zm,X.UE,D.j.U,D.j.K);M&&(X.adFormat=M);D.playerType===2&&(X.vB=!0);if(D.isFullscreen()||D.j.U)M=g.vJ("yt-player-autonavstate"),X.autonavState=M||(D.j.U?2:D.videoData.autonavState);X.endSeconds&&X.endSeconds>X.startSeconds&&lp(D,X.endSeconds)}; c3n=function(D){return g.Nn(D.j)&&D.videoData.isLivePlayback&&(!D.j.T("html5_allow_multiview_tile_preload")||!D.videoData.Jf)}; fGH=function(D){var X=D.videoData;B9p(D,D.Hb).then(void 0,function(M){D.videoData!==X||X.H2()||(M=uZ(M),M.errorCode==="auth"&&D.videoData.errorDetail&&D.videoData.errorDetail!=="7"?D.ZS(M.errorCode,2,unescape(D.videoData.errorReason),Ga(M.details),D.videoData.errorDetail,D.videoData.qT||void 0):D.handleError(M))})}; y3R=function(D){if(!g.x(D.playerState,128))if(D.videoData.isLoaded(),D.ZU=g.Hi(D.videoData.AC),g.nA(D.videoData)){D.r3.tick("bpd_s");J5(D).then(function(){D.r3.tick("bpd_c");if(!D.H2()){D.wx&&(D.aN(aE(aE(D.playerState,512),1)),x8(D));var Q=D.videoData;Q.endSeconds&&Q.endSeconds>Q.startSeconds&&lp(D,Q.endSeconds);D.o9.finished=!0;Wu(D,"dataloaded");D.pZ.kP()&&Svs(D);f8i(D.V5,D.eV)}}); D.T("html5_log_media_perf_info")&&D.SH("loudness",{v:D.videoData.Ti.toFixed(3)},!0);var X,M=(X=D.mediaElement)==null?void 0:X.Ly();if(M&&"disablePictureInPicture"in M&&D.j.VH)try{M.disablePictureInPicture=D.j.X1&&!D.videoData.backgroundable}catch(Q){g.P3(Q)}E_2(D);D.ma=new FW(D.videoData)}else Wu(D,"dataloaded")}; J5=function(D){Gl(D);D.eV=null;var X=c_s(D.j,D.videoData,D.CF());D.vt=X;D.vt.then(function(M){PJ9(D,M)},function(M){D.H2()||(M=uZ(M),D.visibility.isBackground()?(zl(D,"vp_none_avail"),D.vt=null,D.o9.reset()):(D.o9.finished=!0,D.ZS(M.errorCode,M.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ga(M.details))))}); return X}; PJ9=function(D,X){if(!D.H2()&&!X.videoData.H2()){D.eV=X;izH(D.BC,D.eV);if(D.videoData.isLivePlayback){var M=mkn(D.dI.Ge,D.videoData.videoId)||D.loader&&!isNaN(D.loader.sR);M=D.T("html5_onesie_live")&&M;gt(D)||D.videoData.OR>0&&!By(D.videoData)||M||D.seekTo(D.qx(),{Aa:"videoplayer_playbackData",seekSource:18})}if(D.videoData.Y.S){if(mQH(D.videoData)){D.ZS("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",Ga({missabrurl:1}));return}D.loader?g.P3(Error("Duplicated Loader")):(M=g.lx(D.j.experiments,"html5_onesie_defer_content_loader_ms"))&& D.bA()&&mkn(D.dI.Ge,D.videoData.Lw)?g.Vj(function(){D.H2()||D.loader||n_s(D)},M):n_s(D)}else!D.videoData.Y.S&&Wy(D.videoData)&&D.Gi(new RY(D.videoData.videoId||"",4)); D.MQ();F3p(X).then(function(){var Q={};D.vv(Q);D.j.t5()&&D.T("html5_log_media_perf_info")&&D.SH("av1Info",Q);pv(D)})}}; Svs=function(D){D.H2();if(!D.pZ.finished&&D.o9.finished&&!g.x(D.playerState,128)&&!D.ZU.length){if(!D.KF.started){var X=D.KF;X.started=!0;X.sync()}if(!D.FO()){if(D.loader){if(g.nC(D.Q2())){X=D.loader;var M=!0;M=M===void 0?!1:M;X=Math.min(uX(X.audioTrack,M),uX(X.videoTrack,M))>0}else X=D.loader.timing,X=!!X.G&&!!X.Y;D.Li=X}D.pZ.finished||(D.pZ.finished=!0);X=D.T("html5_onesie_live")&&D.loader&&!isNaN(D.loader.sR);!D.videoData.isLivePlayback||D.videoData.OR>0&&!By(D.videoData)||X||gt(D)||(D.seekTo(Infinity, {Aa:"videoplayer_readying",seekSource:18}),D.isBackground()&&(D.Ff=!0));X=D.mZ;if(X.qoe){X=X.qoe;var Q=X.provider.videoData;M=X.provider.j;for(var h=g.e(M.gq),H=h.next();!H.done;H=h.next())bn(X,H.value);if(X.provider.T("html5_enable_qoe_cat_list"))for(h=g.e(Q.KL),H=h.next();!H.done;H=h.next())bn(X,H.value);else Q.gq&&bn(X,X.provider.videoData.gq);Q.yq()&&(h=Q.S,By(Q)&&bn(X,"manifestless"),h&&CF(h)&&bn(X,"live-segment-"+CF(h).toFixed(1)));Er(Q)?bn(X,"sabr"):X.BA(UN(Q));if(Ju(Q)||Q.gp())Q.gp()&&bn(X, "ssa"),bn(X,"lifa");LA(Q)&&bn(X,"cdm");X.provider.videoData.Jf&&bn(X,"mvtile");Q.gatewayExperimentGroup&&(h=Q.gatewayExperimentGroup,h==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?h="spkadtrt":h==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(h="spkadctrl"),bn(X,h));M.f$!=="yt"&&X.S.set("len",[Q.lengthSeconds.toFixed(2)]);Q.cotn&&!Wy(Q)&&X.Y_(!0);M.t5()&&(Q=qIm())&&X.SH("cblt",{m:Q});if(M.T("html5_log_screen_diagonal")){M=X.SH;var t;Q=((t=window.H5vccScreen)==null?0:t.GetDiagonal)?window.H5vccScreen.GetDiagonal(): 0;M.call(X,"cbltdiag",{v:Q})}}D.publish("playbackready");Pz("pl_c",D.r3.timerName)||(D.r3.tick("pl_c"),nX("pl_c",void 0,"video_to_ad"));Pz("pbr",D.r3.timerName)||(D.r3.tick("pbr"),nX("pbr",void 0,"video_to_ad"))}}}; lp=function(D,X){D.Kh&&bKs(D);D.Kh=new g.v9(X*1E3,0x7ffffffffffff);D.Kh.namespace="endcr";D.addCueRange(D.Kh)}; var h9W=function(D,X,M,Q,h,H,t,q,w){return Tp[N[15]](this,58,D,X,M,Q,h,H,t,q,w)}; bKs=function(D){D.removeCueRange(D.Kh);D.Kh=null}; ea2=function(D,X,M,Q,h){var H=D.mZ,t=D.videoData;t.G=M;var q=g.k8(D);M=new tCn(t,M,X,q?q.itag:"",Q);D.j.experiments.Z4("html5_refactor_sabr_video_format_selection_logging")?(M.videoId=h,D.Yo=M):H.qoe&&Bbn(H.qoe,M);h=D.V5;h.G=0;h.S=0;D.publish("internalvideoformatchange",t,X==="m")}; g.k8=function(D){var X=up(D);return b5(X)||!D.eV?null:g.xB(D.eV.S.videoInfos,function(M){return X.U(M)})}; up=function(D){if(D.eV){var X=D.V5;var M=D.eV;D=D.YQ();var Q=qG2(X);if(b5(Q)){if(Q=X.Rg(M).compose(sPW(X,M)).compose(a8W(X,M)).compose(URs(X,M.videoData)).compose(cY5(X,M.videoData,M)).compose(ZLR(X,M)).compose(TNi(X,M)),b5(D)||X.T("html5_apply_pbr_cap_for_drm"))Q=Q.compose(L31(X,M))}else X.T("html5_perf_cap_override_sticky")&&(Q=Q.compose(ZLR(X,M))),X.T("html5_ustreamer_cap_override_sticky")&&(Q=Q.compose(L31(X,M)));Q=Q.compose(TNi(X,M));X=M.videoData.mJ.compose(Q).compose(M.videoData.gG).compose(D)}else X= GL;return X}; qNs=function(D){var X=D.V5;D=D.videoData;var M=URs(X,D);X.T("html5_disable_client_autonav_cap_for_onesie")||M.compose(cY5(X,D));return M}; pv=function(D){if(D.videoData.Y&&D.videoData.Y.S){var X=up(D);if(D.loader&&(D=D.loader,!D.H2()))if(D.policy.S){var M=D.U;if(X.isLocked()&&M.S.G||M.G===void 0||!X.equals(M.G)){M=D.U.G;SrH(D.U,X);var Q,h;if(h=X.isLocked()&&X.reason==="m"){h=D.U;var H=(Q=h.U)==null?void 0:Q.info.video.qualityOrdinal;h=h.sR?!0:h.U?X.S!==H?!0:!h.S.G||h.j$.QL&&h.S.S===h.U.info.itag?!1:!0:!1}Q=h;h=D.policy.Zc&&X.reason==="l";M=M.S>X.S&&X.reason==="b";Q||h||M?(D.zs.XR({reattachOnConstraint:Q?"u":h?"drm":"perf",lo:X.G,up:X.S}), D.policy.QL||(D.U.S.G=!1)):(D.policy.QL&&(D.U.S.G=!1),Nz(D))}}else!jK_(D.S,X)&&D.videoTrack&&(h=D.S.S,Ak(D,DI_(D.S,X)),oD(D),M=X.isLocked()&&X.reason==="m"&&D.S.R5,Q=D.policy.Zc&&X.reason==="l"&&Qo(D.videoTrack),X=h.S>X.S&&X.reason==="b",h=D.S.t$&&!uw(),M||Q||X||h?D.zs.XR({reattachOnConstraint:M?"u":Q?"drm":h?"codec":"perf"}):Nz(D))}}; RaH=function(D){var X;return!!(D.T("html5_native_audio_track_switching")&&g.ah&&((X=D.videoData.G)==null?0:ge(X)))}; IGm=function(D){if(!RaH(D))return!1;var X;D=(X=D.mediaElement)==null?void 0:X.audioTracks();return!!(D&&D.length>1)}; v__=function(D){var X=g_n(D);if(X)return D.videoData.getAvailableAudioTracks().find(function(M){return M.Cy.getName()===X})}; g_n=function(D){var X;if(D=(X=D.mediaElement)==null?void 0:X.audioTracks())for(X=0;X0&&(X.WB=M.XV));X.Zc=M.j1;X.xw=Gw(Q,{},M.Y||void 0,T3(M));X.o5=wJ(M)&&(g.RW(Q)||g.Dk(Q));Er(M)&&(X.D=!0,X.U0=Q.T("html5_estimate_live_partial_slice_duration"),g.Nn(Q)&&!g.xH()&&Q.T("html5_force_audio_to_cover_video_keyframe")?X.R2=!1:X.R2=!0,X.wV||M.isLivePlayback||!Q.T("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")|| (X.VH=!0,X.Jn=g.lx(Q.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),Q.T("html5_sabr_report_partial_segment_estimated_duration")&&(X.OT=!0),X.S=!0,X.wT=Q.T("html5_trigger_loader_when_idle_network"),X.Dr=Q.T("html5_sabr_parse_live_metadata_playback_boundaries"),X.Nf=Q.T("html5_consume_onesie_next_request_policy_for_sabr"),X.wG=Q.T("html5_sabr_report_next_ad_break_time"),X.HZ=Q.T("html5_log_high_res_buffer_timeline")&&Q.t5(),X.XA=Q.T("html5_remove_stuck_slices_beyond_max_buffer_limits"), X.KS=Q.T("html5_gapless_sabr_btl_last_slice")&&qp(M),X.vV=Q.T("html5_reset_last_appended_slice_on_seek")&&qp(M),By(M)?(X.P3=!0,X.Vu=Q.T("html5_disable_variability_tracker_for_live"),X.p$=!0,Q.T("html5_simplified_backup_timeout_sabr_live")&&(X.wj=!0,X.I6=X.gm)):X.Vq=Q.T("html5_probe_request_on_sabr_request_progress"),X.H3=Q.T("html5_serve_start_seconds_seek_for_post_live_sabr"),X.w6=Q.T("html5_flush_index_on_updated_timestamp_offset"),X.f$=Er(M),X.yL=Q.T("html5_ignore_partial_segment_from_live_readahead"), Q.T("html5_include_partial_segment_for_jumbo_ll")&&ZZ(M)&&(X.yL=!1),X.IU=Q.T("html5_use_non_active_broadcast_for_post_live"),X.uj=Q.T("html5_use_centralized_player_time"),X.J5=Q.T("html5_log_centralized_player_time"),X.u$=Q.T("html5_consume_onesie_sabr_seek"),X.R5=Q.T("html5_enable_sabr_seek_loader_refactor"),X.qq=g.lx(Q.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),M.enableServerStitchedDai&&(X.G=!0,X.YN=Q.T("html5_reset_server_stitch_state_for_non_sabr_seek"),X.yQ=Q.T("html5_remove_ssdai_append_pause")&& !M.gp(),X.T6=Q.T("html5_ssdai_log_ssevt_in_loader_timers")),X.Rs=Q.t5(),X.gG=M.yq()&&Q.T("html5_prebuffer_instream_media_live")&&Q.T("html5_report_prefetch_requests"),X.uc=!M.yq()&&Q.T("html5_prebuffer_instream_media_vod")&&Q.T("html5_report_prefetch_requests"),X.wm=Q.T("html5_disable_prebuffer_for_limited_memory_devices"));X.iM=g.ySn(M);A9(Q.D,Y4.BITRATE)&&(X.jH=NaN);if(q=g.lx(Q.experiments,"html5_request_size_max_kb"))X.A$=q*1024;Q.D.Y?X.NL="; "+Y4.EXPERIMENTAL.name+"=allowed":Q.T("html5_enable_cobalt_tunnel_mode")&& g.xH()&&(Q=Y4.TUNNELMODE,X.NL="; "+Q.name+"="+Q.valid);M=M.serverPlaybackStartConfig;(M==null?0:M.enable)&&(M==null?0:M.playbackStartPolicy)&&(X.XV=!0,qk(X,M.playbackStartPolicy,2));M=r3s(D);D.dw.removeAll();a:{Q=D.dI.Ge;if(q=D.videoData.videoId)if(h=Q.S.get(q)){Q.S.remove(q);Q=h;break a}Q=void 0}D.loader=new d5(D,D.Hb,X,D.videoData.S,D.videoData.Y,up(D),M,D.videoData.enableServerStitchedDai,Q,D.videoData.eH);X=D.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&D.videoData.isLivePlayback&& D.bA()?!0:D.wx&&c3n(D);D.loader.initialize(D.getCurrentTime(),up(D),X);D.videoData.probeUrl&&(D.loader.p$=D.videoData.probeUrl);if(D.ZU.length||D.wx)D.videoData.cotn||jA(D,!1);CXn(D.BC,D.loader);D.Bb&&(OSm(D.loader,D.Bb),D.SH("sdai",{sdl:1}));g.uf(D.videoData)&&(D=D.loader,D.policy.nj=D.policy.f8)}; A5=function(D,X){X=X===void 0?!0:X;D.j.Vu&&!D.videoData.backgroundable&&D.mediaElement&&!D.CF()&&(D.isBackground()&&D.mediaElement.SF()?(D.SH("bgmobile",{suspend:1}),D.wY(!0,!0)):!D.isBackground()&&X&&x8(D)&&D.SH("bgmobile",{resume:1}))}; Gl=function(D){D.loader&&(D.loader.dispose(),D.loader=null,CXn(D.BC,null));D.LF()?o_n(D):D.fh()}; o_n=function(D){if(D.J$)if(D.WR(),D.J$.X)try{D.j.t5()&&D.SH("rms",{l:"vprms",sr:D.LF(),rs:HQ(D.J$)});D.J$.clear();var X;(X=D.mediaElement)==null||X.rl(D.J$);D.J$=null}catch(M){X=new g.ys("Error while clearing Media Source in VideoPlayer: "+M.name+", "+M.message),X=uZ(X),D.handleError(X),D.fh()}else D.fh()}; CJd=function(D,X){if(D.J$)return D.J$.Y;a:{X=X===void 0?!1:X;X=X===void 0?!1:X;try{g.xH()&&D.videoData.NE()&&D.mediaElement.hx();var M=D.mediaElement.U5(D.gL(),D.u8())}catch(h){if(jSs(D.ZT,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",h);D.ZS("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}D.SU(M,!1,!1,X)}var Q;return((Q=D.U5())==null?void 0:Q.Y)||null}; OKo=function(D,X){X=X===void 0?!1:X;if(D.loader){D.videoData.enableServerStitchedDai&&WUs(D.loader);var M=D.getCurrentTime()-D.w3();D.loader.seek(M,{lG:X}).iB(function(){})}else n_s(D)}; pdm=function(D,X){if(D.J$){D.J$.bX(X);var M;(M=D.loader)!=null&&M.policy.uj&&(M.J=X)}}; pM=function(D,X){ea2(D,X.reason,X.S.info,X.token,X.videoId)}; Wu=function(D,X){D.publish("internalvideodatachange",X===void 0?"dataupdated":X,D.videoData)}; A3s=function(D){for(var X=g.e("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),M=X.next();!M.done;M=X.next())D.MF.N(D.mediaElement,M.value,D.xV,D);D.j.tL&&D.mediaElement.yu()&&(D.MF.N(D.mediaElement,"webkitplaybacktargetavailabilitychanged",D.mj$,D),D.MF.N(D.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",D.vlC,D))}; lGm=function(D){g.ZS(D.Ml);Yvo(D)||(D.Ml=g.$H(function(){return Yvo(D)},100))}; Yvo=function(D){var X=D.mediaElement;X&&D.tK&&!D.videoData.K&&!Pz("vfp",D.r3.timerName)&&X.r$()>=2&&!X.isEnded()&&JC(X.HP())&&D.r3.tick("vfp");return(X=D.mediaElement)&&!D.videoData.K&&X.getDuration()>0&&(X.isPaused()&&X.r$()>=2&&JC(X.HP())&&(Pz("pbp",D.r3.timerName)||D.r3.tick("pbp"),!D.videoData.wj||D.XQ||X.isSeeking()||(D.XQ=!0,D.publish("onPlaybackPauseAtStart"))),X=X.getCurrentTime(),cu(D.Zr,X))?(D.sY(),!0):!1}; xko=function(D){D.mZ.onProgress();if(FY(D.videoData)&&Date.now()>D.nT+6283){if(D.T("html5_unified_live_latency_reporting")){var X=D.mZ;X.qoe&&LUR(X.qoe)}else!D.isAtLiveHead()||D.videoData.S&&rx(D.videoData.S)||(X=D.mZ,X.qoe&&LUR(X.qoe));X=g.H9(D.j);var M=D.T("html5_always_log_rawlat");(X||M)&&D.SH("rawlat",{l:ot(D.O6,"rawlivelatency").toFixed(3)});D.nT=Date.now()}D.videoData.G&&ge(D.videoData.G)&&(X=D.Bu())&&X.videoHeight!==D.a_&&(D.a_=X.videoHeight,ea2(D,"a",J3d(D,D.videoData.L$)))}; J3d=function(D,X){if(X.S.video.quality==="auto"&&ge(X.getInfo())&&D.videoData.q5)for(var M=g.e(D.videoData.q5),Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,Q.getHeight()===D.a_&&Q.S.video.quality!=="auto")return Q.getInfo();return X.getInfo()}; ZKs=function(D){if(!FY(D.videoData))return NaN;var X=0;D.loader&&D.videoData.S&&(X=By(D.videoData)?D.loader.qB.OW()||0:D.videoData.S.L$);return(0,g.fi)()/1E3-D.hR()-X}; Gxo=function(D){D.mediaElement&&D.mediaElement.CF()&&(D.RS=(0,g.fi)());D.j.Lv?g.Vj(function(){WgW(D)},0):WgW(D)}; WgW=function(D){var X;if((X=D.J$)==null||!X.qR()){if(D.mediaElement)try{D.Be=D.mediaElement.playVideo()}catch(Q){zl(D,"err."+Q)}if(D.Be){var M=D.Be;M.then(void 0,function(Q){if(!(g.x(D.playerState,4)||g.x(D.playerState,256)||D.Be!==M||Q&&Q.name==="AbortError"&&Q.message&&Q.message.includes("load"))){var h="promise";Q&&Q.name&&(h+=";m."+Q.name);zl(D,h);D.QR=!0;D.videoData.Vq=!0}})}}}; zl=function(D,X){g.x(D.playerState,128)||(D.aN(Vb(D.playerState,1028,9)),D.SH("dompaused",{r:X}),D.publish("onAutoplayBlocked"))}; x8=function(D,X){X=X===void 0?!1:X;if(!D.mediaElement||!D.videoData.Y)return!1;var M=X;M=M===void 0?!1:M;var Q=null;var h;if((h=D.videoData.Y)==null?0:h.S){Q=CJd(D,M);var H;(H=D.loader)==null||H.resume()}else Gl(D),D.videoData.L$&&(Q=D.videoData.L$.Yr());h=D.mediaElement.SF();M=!1;h&&h.equals(Q)||(zad(D,Q),M=!0);g.x(D.playerState,2)||(Q=D.BC,X=X===void 0?!1:X,Q.D||!(Q.Y>0)||Q.mediaElement&&Q.mediaElement.getCurrentTime()>0||(X={Aa:"seektimeline_resumeTime",lG:X},Q.videoData.K||(X.seekSource=15),Q.seekTo(Q.Y, X)));a:{X=M;if(Er(D.videoData)){if(!D.videoData.aj())break a}else if(!g.EN(D.videoData))break a;if(D.mediaElement)if((Q=D.videoData.D)&&D.mediaElement.yu()){h=D.mediaElement.Ly();if(D.Em)if(h!==D.Em.element)D6(D);else if(X&&Q.flavor==="fairplay"&&!WX())D6(D);else break a;if(D.T("html5_report_error_for_unsupported_tvos_widevine")&&WX()&&Q.flavor==="widevine")D.ZS("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{D.Em=new gj_(h,D.videoData,D.j,D.mediaElement);D.Em.subscribe("licenseerror", D.jE,D);D.Em.subscribe("qualitychange",D.CMj,D);D.Em.subscribe("heartbeatparams",D.Ga,D);D.Em.subscribe("keystatuseschange",D.pz,D);D.Em.subscribe("ctmp",D.SH,D);X=g.e(D.dw.keys);for(Q=X.next();!Q.done;Q=X.next())Q=D.dw.get(Q.value),D.Em.DG(Q);D.T("html5_eme_loader_sync")||D.dw.removeAll()}}else D.ZS("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return M}; zad=function(D,X){D.r3.tick("vta");nX("vta",void 0,"video_to_ad");D.getCurrentTime()>0&&A_R(D.BC,D.getCurrentTime());D.mediaElement.activate(X);D.J$&&Db(4);!D.videoData.K&&D.playerState.isOrWillBePlaying()&&D.v4.start();if(RaH(D)){var M;if(X=(M=D.mediaElement)==null?void 0:M.audioTracks())X.onchange=function(){D.publish("internalaudioformatchange",D.videoData,!0)}}}; D6=function(D){D.Em&&(D.Em.dispose(),D.Em=null)}; kxn=function(D){var X=X===void 0?!1:X;D.mediaElement&&(D.J$?(D6(D),D.fh(),CJd(D,X)):(D.videoData.L$&&D.videoData.L$.V4(),D.mediaElement.stopVideo()),D.playVideo())}; uAo=function(D,X){D.j.T("html5_log_rebuffer_reason")&&(X={r:X,lact:Vc()},D.mediaElement&&(X.bh=D.mediaElement.Wv()),D.SH("bufreason",X))}; jbW=function(D,X){if(D.j.t5()&&D.mediaElement){var M=D.mediaElement.ip();M.omt=(D.mediaElement.getCurrentTime()+D.w3()).toFixed(3);M.ps=D.playerState.state.toString(16);M.rt=(g.y6(D.mZ.provider)*1E3).toFixed();M.e=X;D.TK[D.OS++%5]=M}}; Dz_=function(D){if(D.j.t5()){D.TK.sort(function(Q,h){return+Q.rt-+h.rt}); for(var X=g.e(D.TK),M=X.next();!M.done;M=X.next())M=M.value,D.SH("vpe",Object.assign({t:M.rt},M));D.TK=[];D.OS=0}}; Xpn=function(D){if(g.lE("cobalt")&&g.lE("nintendo switch")){var X=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;D.SH("nxdock",{d:X})}}; jA=function(D,X){var M;(M=D.loader)==null||CM(M,X)}; E_2=function(D){DA(D.videoData,"html5_set_debugging_opt_in")&&(D=g.O0(),D.xl(183)||(Ar(183,!0),D.save()))}; MHs=function(D){return D.T("html5_remove_ios_7_hack_force_play")}; dDp=function(D,X){D.dI.VV()||(D.SH("sgap",{f:X}),D.dI.clearQueue(!1,X==="pe"))}; gt=function(D){return D.T("html5_disable_video_player_initiated_seeks")&&Er(D.videoData)}; QDH=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);qD(this.api,"isLifaAdPlaying",function(){return X.api.isLifaAdPlaying()}); this.events.N(D,"serverstitchedvideochange",function(){var M;(M=X.api.getVideoData())!=null&&M.gp()&&(X.api.isLifaAdPlaying()?(X.playbackRate=X.api.getPlaybackRate(),X.api.setPlaybackRate(1)):X.api.setPlaybackRate(X.playbackRate))}); this.playbackRate=1}; XE=function(D){HA.call(this,"En bucle",g.sp.Dt);this.B=D;var X=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:Tw5();this.setIcon(X);this.subscribe("select",this.G,this);D.createClientVe(this.element,this,28661);this.N(D,"settingsMenuVisibilityChanged",this.S);this.listen("click",this.logClick);this.N(D,"onLoopChange",this.onLoopChange);t1(this,D.getLoopVideo());D.BI().fK(this)}; h61=function(D){uR.call(this,D);var X=this;D.addEventListener("settingsMenuInitialized",function(){X.menuItem||(X.menuItem=new XE(X.api),g.p(X,X.menuItem))}); D.addEventListener("videodatachange",function(M,Q){M=X.api.getPresentingPlayerType()===2;var h;(h=X.menuItem)==null||h.Ew(!Q.isLivePlayback&&!M)})}; HMo=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);qD(this.api,"seekToChapterWithAnimation",function(M){X.seekToChapterWithAnimation(M)}); qD(this.api,"seekToTimeWithAnimation",function(M,Q){X.seekToTimeWithAnimation(M,Q)}); qD(this.api,"renderChapterSeekingAnimation",function(M,Q,h){X.api.renderChapterSeekingAnimation(M,Q,h)}); qD(this.api,"setMacroMarkers",function(M){X.setMacroMarkers(D,M)}); qD(this.api,"changeMarkerVisibility",function(M,Q,h){X.changeMarkerVisibility(M,Q,h)}); qD(this.api,"isSameMarkerTypeVisible",function(M){return X.isSameMarkerTypeVisible(M)})}; tHn=function(D,X,M){var Q=D.api.getCurrentTime()*1E30;)switch(X=tg.shift(),X.type){case "ERROR":Hc.s5(X.payload);break;case "EVENT":Hc.logEvent(X.eventType,X.payload)}}); qD(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));qD(this.api,"updateDownloadState",this.updateDownloadState.bind(this));qD(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));qD(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));qD(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));qD(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));qD(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; ZMs=function(D){uR.call(this,D);var X=this;this.loaded=!1;this.overlay=null;this.events=new g.HE(D);g.p(this,this.events);this.S=new g.HE(D);g.p(this,this.S);this.events.N(D,"modulesCreated",function(){X.xe()&&X.load()}); this.events.N(D,"modulesDestroyed",function(M){var Q=!0;switch(M){case 2:case 3:Q=!1;break;case 4:Q=X.api.getPresentingPlayerType()===1}Q&&X.unload()})}; Ho=function(D){uR.call(this,D);var X=this;qD(D,"getAvailableQualityData",function(){return X.getAvailableQualityData()}); qD(D,"getAvailableQualityDataAndMessaging",function(){return X.getAvailableQualityDataAndMessaging()})}; Uz1=function(D,X,M){var Q=[],h=X?156595:151874;D=g.e(D);for(var H=D.next();!H.done;H=D.next()){var t=H.value;H=t.video;t={formatId:t.id,qualityLabel:H.qualityLabel,quality:H.quality,isPlayable:X};if(H=M.get(H.qualityLabel))t.paygatedQualityDetails={paygatedIndicatorText:H.paygatedIndicatorText,endpoint:H.endpoint,veType:h,trackingParams:H.trackingParams};Q.push(t)}return Q}; cks=function(D){for(var X=0,M=0;M0&&h>0&&(M.width+=h,g.Q_(X.element,"width",M.width+"px")));D.size=M}}; g.$t=function(D,X){var M=D.S[D.S.length-1];M!==X&&(D.S.push(X),Cn5(D,M,X))}; g.Bo=function(D){if(!(D.S.length<=1)){var X=D.S.pop(),M=D.S[0];D.S=[M];Cn5(D,X,M,!0)}}; Cn5=function(D,X,M,Q){OMs(D);X&&(X.unsubscribe("size-change",D.OL,D),X.unsubscribe("back",D.jg,D));M.subscribe("size-change",D.OL,D);M.subscribe("back",D.jg,D);if(D.Gm){g.hN(M.element,Q?"ytp-panel-animate-back":"ytp-panel-animate-forward");M.rC(D.content);M.focus();D.element.scrollLeft=0;D.element.scrollTop=0;var h=D.size;o5m(D);g.ax(D.element,h);D.Y=new g.W5(function(){ppH(D,X,M,Q)},20,D); D.Y.start()}else M.rC(D.content),X&&X.detach()}; ppH=function(D,X,M,Q){D.Y.dispose();D.Y=null;g.hN(D.element,"ytp-popup-animating");Q?(g.hN(X.element,"ytp-panel-animate-forward"),g.tN(M.element,"ytp-panel-animate-back")):(g.hN(X.element,"ytp-panel-animate-back"),g.tN(M.element,"ytp-panel-animate-forward"));g.ax(D.element,D.size);D.U=new g.W5(function(){g.tN(D.element,"ytp-popup-animating");X.detach();g.NE(X.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);D.U.dispose();D.U=null},250,D); D.U.start()}; OMs=function(D){D.Y&&g.z1(D.Y);D.U&&g.z1(D.U)}; Z6=function(D){g.VB.call(this,D,"ytp-shopping-product-menu");this.WD=new g.aj(this.B);g.p(this,this.WD);this.hide();g.$t(this,this.WD);g.db(this.B,this.element,4)}; Y_R=function(D,X,M){var Q,h=X==null?void 0:(Q=X.text)==null?void 0:Q.simpleText;h&&(M=Ak9(D,M,h,X==null?void 0:X.icon,X==null?void 0:X.secondaryIcon),X.navigationEndpoint&&M.listen("click",function(){D.B.ER("innertubeCommand",X.navigationEndpoint);D.hide()},D))}; lYn=function(D,X,M){var Q,h=X==null?void 0:(Q=X.text)==null?void 0:Q.simpleText;h&&Ak9(D,M,h,X==null?void 0:X.icon).listen("click",function(){var H;(X==null?void 0:(H=X.icon)==null?void 0:H.iconType)==="HIDE"?D.B.publish("featuredproductdismissed"):X.serviceEndpoint&&D.B.ER("innertubeCommand",X.serviceEndpoint);D.hide()},D)}; Ak9=function(D,X,M,Q,h){X=new g.WB(g.GT({},[],!1,!!h),X,M);h&&X.updateValue("secondaryIcon",Jki(h));X.setIcon(Jki(Q));g.p(D,X);D.WD.fK(X,!0);return X}; Jki=function(D){if(!D)return null;switch(D.iconType){case "ACCOUNT_CIRCLE":return{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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 FU();case "HIDE":return{L:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"g",V:[{L:"path",Z:{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 Zq()}}; UL=function(D){sL.call(this,D,!1,!0);this.isCounterfactual=this.Y=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.Y({L:"button",gC:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.p(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.Y({L:"img",C:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.p(this,this.thumbnailImage);this.thumbnailIcon=new g.Y({L:"div",C:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.p(this,this.thumbnailIcon);this.banner=new g.Y({L:"a",C:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{L:"div",C:"ytp-suggested-action-details",V:[{L:"text",C:"ytp-suggested-action-title",Gs:"{{title}}"},{L:"text",C:"ytp-suggested-action-subtitle",Gs:"{{subtitle}}"},{L:"text",C:"ytp-suggested-action-metadata-text", Gs:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.p(this,this.banner);this.banner.rC(this.U.element);this.N(this.B,"videodatachange",this.onVideoDataChange);this.N(this.B,g.rI("suggested_action_view_model"),this.sN2);this.N(this.B,g.iB("suggested_action_view_model"),this.gRs);this.N(this.overflowButton.element,"click",this.Ek);this.N(D,"featuredproductdismissed",this.LH);this.B.createServerVe(this.banner.element,this.banner,!0)}; xzR=function(D){D.isInitialized&&(D.enabled=D.isVisible,D.R5=D.isVisible,LU(D),D.lB(),D.thumbnailImage.Ew(D.isVisible),D.shouldHideDismissButton||D.dismissButton.Ew(D.isVisible),D.shouldShowOverflowButton&&D.overflowButton.Ew(D.isVisible))}; co=function(){UL.apply(this,arguments)}; WYn=function(D){uR.call(this,D);this.S=new co(this.api);g.p(this,this.S);g.db(this.api,this.S.element,4)}; fU=function(D){uR.call(this,D);var X=this;this.S=!0;var M=new g.HE(D);g.p(this,M);M.N(D,"internalaudioformatchange",function(Q,h){Gi9(X,Q,h)}); M.N(D,"annotationvisibility",function(Q){X.api.T("web_fix_annotations")&&z6m(X,(294).toString(),{boolValue:Q})}); M.N(D,"videoplayerreset",function(){kim(X)}); M.N(D,"videodatachange",function(Q,h){X.onVideoDataChange(Q,h)})}; Gi9=function(D,X,M){if(M){var Q="";u7o(D,X)&&(Q=X,D.api.W().p$=X);if(Q&&jDW(D,Q)){N8s(D.api,Q);var h;l3(qi(D.api.W(),(h=D.api.getVideoData())==null?void 0:g.lf(h)),function(H){var t=Q;DO5(H)!==t&&z6m(D,Xus(H),{stringValue:t})})}}}; kim=function(D){var X;if((X=ct())==null?0:X.size){var M;l3(qi(D.api.W(),(M=D.api.getVideoData())==null?void 0:g.lf(M)),function(Q){(Q=DO5(Q))&&jDW(D,Q)&&(D.api.W().p$=Q)})}}; Qtp=function(D,X){JS(l3(l3(D.iE(),function(M){return zzd(M,[Xus(X)])}),function(M){if(M){M=g.e(M); for(var Q=M.next();!Q.done;Q=M.next()){var h=Q.value;Q=h.key;h=h.value;Q&&h&&(MA9([{settingItemId:Q,settingOptionValue:h}]),kim(D))}}}),function(){D.S=!0})}; u7o=function(D,X){D=D.api.getAvailableAudioTracks();D=g.e(D);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.getLanguageInfo().getId()===X)return M;return null}; DO5=function(D){D=Xus(D);var X=ct();D=X?X.get(D):void 0;return D&&D.stringValue?D.stringValue:""}; Xus=function(D){var X=(484).toString();D&&(X=(483).toString());return X}; jDW=function(D,X){var M;return X.split(".")[0]!==""&&((M=D.api.getVideoData())==null?void 0:!xL(M))}; z6m=function(D,X,M){MA9([{settingItemId:X,settingOptionValue:M}]);l3(D.iE(),function(Q){uj1(Q,X,M)})}; MA9=function(D){var X=ct();X||(X=new Map);D=g.e(D);for(var M=D.next();!M.done;M=D.next())M=M.value,X.set(M.settingItemId,M.settingOptionValue);X=JSON.stringify(Object.fromEntries(X));g.gw("yt-player-user-settings",X,2592E3)}; g.SK=function(D,X,M,Q,h,H,t){g.WB.call(this,g.GT({"aria-haspopup":"true"}),X,D);this.Vf=Q;this.f$=!1;this.D=null;this.options={};this.wI=new g.aj(M,void 0,D,h,H,t);g.p(this,this.wI);this.listen("keydown",this.Xg);this.listen("click",this.open)}; hGm=function(D){if(D.D){var X=D.options[D.D];X.element.getAttribute("aria-checked");X.element.setAttribute("aria-checked","false");D.D=null}}; Hv_=function(D,X){g.SK.call(this,"Temporizador de apagado",g.sp.SLEEP_TIMER,D,X);this.B=D;this.X={};this.Y=this.Dp("Off");this.U=this.S="";D.T("web_settings_menu_icons")&&(X=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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(X)); this.G=new g.Y({L:"div",gC:["ytp-menuitem-label-wrapper"],V:[{L:"div",Gs:"Fin del video"},{L:"div",gC:["ytp-menuitem-sublabel"],Gs:"{{content}}"}]});g.p(this,this.G);this.listen("click",this.onClick);this.N(D,"videodatachange",this.onVideoDataChange);this.N(D,"presentingplayerstatechange",this.C$);this.N(D,"settingsMenuVisibilityChanged",this.kM);D.createClientVe(this.element,this,218889);this.C$();this.B.ER("onSleepTimerFeatureAvailable")}; tAi=function(D){var X="Off 10 15 20 30 45 60".split(" "),M;((M=D.B.getVideoData())==null?0:M.isLivePlayback)||X.push("End of video");M=D.B.getPlaylist();var Q;M&&((Q=M.listId)==null?void 0:Q.type)!=="RD"&&X.push("End of playlist");D.wO(g.be(X,D.Dp));D.X=g.Bi(X,D.Dp,D);X=D.Dp("End of video");D.options[X]&&g.xa(D.options[X],D.G)}; Nt9=function(D,X){var M=D.X[X],Q=M==="End of video"||M==="End of playlist";M==="Off"&&(D.S="");D.B.getPlayerState()!==0&&D.B.getPlayerState()!==5||!Q?(D.Y=X,g.SK.prototype.pF.call(D,X),D.In(X),D.B.ER("onSleepTimerSettingsChanged",M)):D.B.ER("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; EL=function(D){uR.call(this,D);var X=this;D.addEventListener("settingsMenuInitialized",function(){X.menuItem||(X.menuItem=new Hv_(X.api,X.api.BI()),g.p(X,X.menuItem))}); D.addEventListener("openSettingsMenuItem",function(M){if(M==="menu_item_sleep_timer"){if(!X.menuItem){var Q;(Q=X.api.BI())==null||Q.vC()}X.menuItem.open()}}); qD(D,"resetSleepTimerMenuSettings",function(){X.resetSleepTimerMenuSettings()}); qD(D,"setSleepTimerTimeLeft",function(M){X.setSleepTimerTimeLeft(M)}); qD(D,"setVideoTimeLeft",function(M){X.setVideoTimeLeft(M)})}; qjn=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"onSnackbarMessage",function(M){switch(M){case 1:X.api.getPlayerStateObject().isBuffering()&&X.api.ER("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.Po=function(D,X,M,Q,h){X=X===void 0?!1:X;Q=Q===void 0?!1:Q;h=h===void 0?!1:h;g.Dq.call(this);this.eH=h;this.J=!1;this.U=new b2(this);this.D=this.X=null;this.Y=this.G=!1;g.p(this,this.U);this.target=D;this.S=X;this.K=M||D;this.J=Q;X&&(g.Sq&&this.target.setAttribute("draggable","true"),h||(this.target.style.touchAction="none"));yB(this)}; mi=function(D){g.RH(D.U,!D.S)}; yB=function(D){D.D=null;D.X=null;D.N(nU("over"),D.pn);D.N("touchstart",D.jz);D.S&&D.N(nU("down"),D.T3F)}; wu1=function(D,X){for(var M=0;ML.start&&M>=5;c+=b}h=c.substr(0,4)+" "+c.substr(4,4)+" "+c.substr(8,4)+" "+(c.substr(12,4)+" "+c.substr(16,4))}else h="";t={video_id_and_cpn:String(X.videoId)+" / "+h,codecs:"",dims_and_frames:"",bandwidth_kbps:t.toFixed(0)+" Kbps",buffer_health_seconds:w.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:T?"":"display:none",drm:T,debug_info:M,extra_debug_info:"",bandwidth_style:a,network_activity_style:a,network_activity_bytes:q.toFixed(0)+" KB",shader_info:K,shader_info_style:K?"":"display:none",playback_categories:""};q=Q.clientWidth+"x"+Q.clientHeight+(L>1?"*"+L.toFixed(2):"");w="-";H.totalVideoFrames&&(w=(H.droppedVideoFrames||0)+" dropped of "+H.totalVideoFrames);t.dims_and_frames=q+" / "+w;D=D.getVolume();q=Sb_(X);var R;if((R=X.U)==null?0:R.audio.G)R= "VB";else{var v;R=((v=X.U)==null?0:v.audio.S)?"DRC":Math.round(D*q)+"%"}v=Math.round(D)+"% / "+R;R=X.Ti.toFixed(1);isFinite(Number(R))&&(v+=" (content loudness "+R+"dB)");t.volume=v;t.resolution=Q.videoWidth+"x"+Q.videoHeight;if(Q=X.G){if(v=Q.video)R=v.fps,R>1&&(t.resolution+="@"+R),(R=H.Q8)&&R.video&&(t.resolution+=" / "+R.video.width+"x"+R.video.height,R.video.fps>1&&(t.resolution+="@"+R.video.fps)),t.codecs=VAH(Q),!X.U||Q.audio&&Q.video?Q.cS&&(t.codecs+=" / "+Q.cS+"A"):t.codecs+=" / "+VAH(X.U), v.S||v.primaries?(R=v.S||"unknown",R==="smpte2084"?R+=" (PQ)":R==="arib-std-b67"&&(R+=" (HLG)"),t.color=R+" / "+(v.primaries||"unknown"),t.color_style=""):t.color_style="display:none";if(Q.debugInfo)for(t.fmt_debug_info="",Q=g.e(Q.debugInfo),v=Q.next();!v.done;v=Q.next())v=v.value,t.fmt_debug_info+=v.label+":"+v.text+" ";t.fmt_debug_info_style=t.fmt_debug_info&&t.fmt_debug_info.length>0?"":"display:none"}Q=X.isLivePlayback;v=X.uH;t.live_mode_style=Q||v?"":"display:none";t.live_latency_style=Q?"": "display:none";if(v)t.live_mode="Post-Live"+(By(X)?" Manifestless":"");else if(Q){v=H.JZ;t.live_latency_secs=v.toFixed(2)+"s";Q=By(X)?"Manifestless, ":"";X.yp&&(Q+="Windowed, ");R="Uncertain";if(v>=0&&v<120)if(X.latencyClass&&X.latencyClass!=="UNKNOWN")switch(X.latencyClass){case "NORMAL":R="Optimized for Normal Latency";break;case "LOW":R="Optimized for Low Latency";break;case "ULTRALOW":R="Optimized for Ultra Low Latency";break;default:R="Unknown Latency Setting"}else R=X.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";Q+=R;(v=H.cn)&&(Q+=", seq "+v.sequence);t.live_mode=Q}!H.isGapless||qp(X)&&H.VV||(t.playback_categories+="Gapless ");t.playback_categories_style=t.playback_categories?"":"display:none";t.bandwidth_samples=H.Bw;t.network_activity_samples=H.uo;t.live_latency_samples=H.N3;t.buffer_health_samples=H.d1;H=g.uf(X);if(X.cotn||H)t.cotn_and_local_media=(X.cotn?X.cotn:"null")+" / "+H;t.cotn_and_local_media_style=t.cotn_and_local_media?"":"display:none"; DA(X,"web_player_release_debug")?(t.release_name=N[30],t.release_style=""):t.release_style="display:none";t.debug_info&&F.length>0&&t.debug_info.length+F.length<=60?t.debug_info+=" "+F:t.extra_debug_info=F;t.extra_debug_info_style=t.extra_debug_info&&t.extra_debug_info.length>0?"":"display:none";return t}; VAH=function(D){var X=/codecs="([^"]*)"/.exec(D.mimeType);return X&&X[1]?X[1]+" ("+D.itag+")":D.itag}; dn=function(D,X,M,Q,h){g.Y.call(this,{L:"div",C:"ytp-horizonchart"});this.X=X;this.sampleCount=M;this.U=Q;this.D=h;this.index=0;this.heightPx=-1;this.Y=this.G=null;this.S=Math.round(D/M);this.element.style.width=this.S*this.sampleCount+"px";this.element.style.height=this.X+"em"}; rn=function(D,X){if(D.heightPx===-1){var M=null;try{M=g.m7("CANVAS"),D.G=M.getContext("2d")}catch(q){}if(D.G){var Q=D.S*D.sampleCount;D.Y=M;D.Y.width=Q;D.Y.style.width=Q+"px";D.element.appendChild(D.Y)}else for(D.sampleCount=Math.floor(D.sampleCount/4),D.S*=4,M=0;M1?2:1,D.Y.height=D.heightPx*M,D.Y.style.height= D.heightPx+"px",D.G.scale(1,M)));X=g.e(X);for(Q=X.next();!Q.done;Q=X.next()){M=D;var h=D.index,H=Q.value;for(Q=0;Q+20&&g.Ru(X.G.element);Q.classList.add("ytp-timely-actions-overlay");X.G.element.appendChild(Q)}); g.p(this,this.G);this.T("web_player_overlay_positioned_layout")?this.events.N(D,"basechromeinitialized",function(){X.api.sy(X.G.element,4,!0);X.G.element.setAttribute("data-overlay-order","10")}):g.db(this.api,this.G.element,4)}; Ipi=function(D){D.timelyActions&&(D.U=D.timelyActions.reduce(function(X,M){if(M.cueRangeId===void 0)return X;X[M.cueRangeId]=0;return X},{}))}; OL=function(D,X){if(D.timelyActions){D=g.e(D.timelyActions);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.cueRangeId===X)return M}}; g82=function(D,X){if((D=OL(D,X))&&D.onCueRangeExit)return eM(D.onCueRangeExit)}; n8W=function(D,X){return D.Y===void 0?!1:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(X.seekLengthMilliseconds)===5E3?D.Y===72:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(X.seekLengthMilliseconds)===1E4?D.Y===74:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(X.seekLengthMilliseconds)===5E3?D.Y===71:X.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(X.seekLengthMilliseconds)===1E4?D.Y===73:!1}; v8s=function(D,X){var M=Number(X==null?void 0:X.maxVisibleDurationMilliseconds);M&&(pU(D),D.R5=setTimeout(function(){if(D.S!==void 0&&(X==null?void 0:X.cueRangeId)===D.S){D.eH=!1;var Q=g82(D,D.S);Q&&D.api.ER("innertubeCommand",Q)}},M))}; pU=function(D){D.R5&&clearTimeout(D.R5);D.R5=void 0;D.eH=!1}; bvs=function(D){if(D=D.getWatchNextResponse()){var X,M;D=(X=D.playerOverlays)==null?void 0:(M=X.playerOverlayRenderer)==null?void 0:M.timelyActionsOverlayViewModel;X=g.Z(D,dOs);if(X!=null&&X.timelyActions)return X==null?void 0:X.timelyActions.map(function(Q){return g.Z(Q,r51)}).filter(function(Q){return!!Q})}}; iv_=function(D){uR.call(this,D);var X=this;wb(this.api,"getPlaybackRate",function(){return X.api.getPlaybackRate()}); wb(this.api,"setPlaybackRate",function(M){typeof M==="number"&&X.api.setPlaybackRate(M)})}; AP=function(D,X,M,Q){HA.call(this,"Mejora de voces",g.sp.lw);this.B=D;this.Y=X;this.G=M;this.getVoiceBoostState=Q;this.S=!1;this.Vf=this.B.T("html5_enable_new_audio_settings_menu")?D.BI().wh:D.BI();this.N(D,"onFilterAudioFeatures",this.OC);this.setIcon({L:"svg",Z:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.U,this);this.OC()}; Yt=function(D){uR.call(this,D);var X=this;this.events=new g.HE(D);g.p(this,this.events);var M=this.api.T("html5_enable_voice_boost");M&&this.events.N(D,"settingsMenuInitialized",function(){o81(X)}); qD(this.api,"getVoiceBoostUserPreference",function(){return M?X.getVoiceBoostUserPreference():0}); qD(this.api,"setVoiceBoostUserPreference",function(h){M&&X.setVoiceBoostUserPreference(h)}); qD(this.api,"getVoiceBoostState",function(){return M?X.getVoiceBoostState():1}); var Q;this.S=(Q=sdd())!=null?Q:0;this.updateEnvironmentData()}; o81=function(D){D.menuItem||(D.menuItem=new AP(D.api,function(X){D.setVoiceBoostUserPreference(X)},function(){return D.getVoiceBoostUserPreference()},function(){return D.getVoiceBoostState()}),g.p(D,D.menuItem))}; Cp9=function(D){D=D.QF();if(!D)return!1;D=g.HX(D).exp||"";return D.includes("xpv")||D.includes("xpe")}; Ovs=function(D){D=g.e(g.lO(D,!0));for(var X=D.next();!X.done;X=D.next())if(Cp9(X.value))return!0;return!1}; pus=function(D,X){D=g.e(g.lO(D,!0));for(var M=D.next();!M.done;M=D.next())if(M=M.value,Cp9(M)){var Q={potc:"1",pot:X};M.url&&(M.url=tW(M.url,Q))}}; A51=function(D){return g.r(function(X){if(X.S==1)return g.N_(X,2),g.I(X,D,4);if(X.S!=2)return g.Ty(X,0);g.LG(X);g.HZ(X)})}; JP=function(D){uR.call(this,D);var X=this;this.useLivingRoomPoToken=!1;this.D=new g.wh;this.S=!1;this.r3=null;this.J=!1;this.U=null;this.X=!1;var M=D.W().getWebPlayerContextConfig();this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"spsumpreject",function(h,H,t){X.X=H;h&&X.J&&!X.U&&(X.T("html5_generate_content_po_token")&&t?X.VU(t):X.T("html5_generate_session_po_token")&&Yjs(X));X.U||X.api.SH("stp",{s:+X.J,b:+X.X})}); this.events.N(D,"poTokenVideoBindingChange",function(h){X.VU(h)}); if(this.T("html5_web_po_on_demand_init"))var Q=this.events.N(D,"videodatachange",function(h,H){H.Q$&&!X.J&&(lpW(X),X.events.PC(Q))}); this.useLivingRoomPoToken=!(M==null||!M.useLivingRoomPoToken);D.addEventListener("csiinitialized",function(){X.r3=D.g6();X.T("html5_web_po_on_demand_init")?X.Y=xoH():lpW(X)}); D.addEventListener("trackListLoaded",this.Ra.bind(this));D.Yq(this)}; lpW=function(D){var X=(D.T("html5_generate_session_po_token")||D.T("html5_generate_content_po_token"))&&!D.useLivingRoomPoToken;try{if(D.T("html5_use_shared_owl_instance"))J5p(D);else if(X){D.r3.k5("pot_isc");var M=g.lx(D.api.W().experiments,"html5_webpo_kaios_defer_timeout_ms");M?(xOd(D),g.Vj(function(){xt(D)},M)):D.T("html5_webpo_idle_priority_job")?(xOd(D),g.zj(g.u2(),function(){xt(D)})):xt(D)}}catch(Q){Q instanceof Error&&g.P3(Q)}}; WC_=function(D){var X=KT(D.experiments,"html5_web_po_request_key");return X?X:g.Nn(D)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Glo=function(D){var X=new P0o,M={},Q=(M["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",M);return new Fv(X,D,function(){return Q})}; zGs=function(D){return new Vx(D)}; Wo=function(D,X){D.T("html5_webpo_bge_ctmp")&&D.api.SH(X,{hwpo:!!D.G,hwpor:D.S})}; J5p=function(D){var X,M;g.r(function(Q){if(Q.S==1)return Wo(D,"swpo_i"),xOd(D),Gt(D),g.I(Q,QE(),2);if(Q.S!=3)return X=Q.G,Wo(D,"swpo_co"),g.I(Q,MZ_(X),3);M=Q.G;D.T("html5_web_po_token_disable_caching")||M.Hs(150);D.G=M;Wo(D,"swpo_cc");A51(M.zf()).then(function(){D.S=!0;D.D.resolve();Wo(D,"swpo_re")}); g.Vj(function(){xt(D);Wo(D,"swpo_si")},0); g.HZ(Q)})}; uJR=function(D){var X=D.api.W(),M=WC_(X);M=Glo(M);var Q=M.Kt.bind(M);M.Kt=function(q){var w;return g.r(function(T){if(T.S==1)return g.I(T,Q(q),2);w=T.G;D.api.SH("itr",{});return T.return(w)})}; try{var h=zGs({fn:M,b2:{maxAttempts:5},D_:{WI:"CLEn",disable:X.experiments.Z4("html5_web_po_disable_remote_logging"),I1:jss(X.experiments),gH:function(q){var w=klp.get(q);w||(w=new Jrm(q),w=new g.d3(w),klp.set(q,w));return w}, HyH:D.T("wpo_dis_lfdms")?0:1E3},QN5:g.P3});var H=new dh({oz:h,fn:M,onError:g.P3});A51(H.zf()).then(function(){D.S=!0;D.D.resolve()}); D.T("html5_web_po_token_disable_caching")||H.Hs(150);g.p(D,h);g.p(D,H);D.G=H}catch(q){g.P3(q);var t;(t=h)==null||t.dispose()}}; xt=function(D){var X=D.api.W();D.r3.k5("pot_ist");D.G||uJR(D);D.T("html5_bandaid_attach_content_po_token")||(D.T("html5_generate_session_po_token")&&(Gt(D),Yjs(D)),X=g.lx(X.experiments,"html5_session_po_token_interval_time_ms")||0,X>0&&(D.K=g.$H(function(){Gt(D)},X)),D.J=!0)}; Gt=function(D){var X,M,Q,h;g.r(function(H){if(!D.T("html5_generate_session_po_token")||D.useLivingRoomPoToken)return H.return();X=D.api.W();M=g.zZ("EOM_VISITOR_DATA")||g.zZ("VISITOR_DATA");Q=X.nj?X.datasyncId:M;h=KT(X.experiments,"html5_mock_content_binding_for_session_token")||X.livingRoomPoTokenId||Q;X.ZW=zt(D,h);g.HZ(H)})}; zt=function(D,X){if(!D.G){if(D.Y)try{return D.Y(X)}catch(H){g.P3(H)}return""}try{D.r3.k5(D.S?"pot_cms":"pot_csms");var M={Do:!0,r_:!0,UG:X};D.T("html5_web_po_token_disable_caching")||(M.pQ={ZZ:X,aB:!0,SY:!0});var Q=D.G.UY(M);D.r3.k5(D.S?"pot_cmf":"pot_csmf");if(D.S){var h;(h=D.U)==null||h.resolve();D.U=null;D.X&&(D.X=!1,D.api.app.v2().Ex(!1))}return Q}catch(H){return g.P3(H),""}}; Yjs=function(D){D.G&&(D.U=new ql,D.D.promise.then(function(){D.r3.k5("pot_if");Gt(D)}))}; xOd=function(D){D.Y||(D.Y=xoH())}; g.kt=function(D,X,M){g.qE(D.element,"ytp-suggestion-set",!!X.videoId);var Q=X.playlistId;M=X.gM(M?M:"mqdefault.jpg");var h=null,H=null;X instanceof bN&&(X.lengthText?(h=X.lengthText||null,H=X.t7||null):X.lengthSeconds&&(h=g.$u(X.lengthSeconds),H=g.$u(X.lengthSeconds,!0)));var t=!!Q;Q=t&&mN(Q).type==="RD";var q=X instanceof bN?X.isLivePlayback:null,w=X instanceof bN?X.isUpcoming:null,T=X.author,L=X.shortViewCount,K=X.publishedTimeText,a=[],F=[];T&&a.push(T);L&&(a.push(L),F.push(L));K&&F.push(K);M= {title:X.title,author:T,author_and_views:a.join(" \u2022 "),aria_label:X.ariaLabel||g.W9("Ver $TITLE",{TITLE:X.title}),duration:h,timestamp:H,url:X.ML(),is_live:q,is_upcoming:w,is_list:t,is_mix:Q,background:M?"background-image: url("+M+")":"",views_and_publish_time:F.join(" \u2022 "),autoplayAlternativeHeader:X.ZI};X instanceof nD&&(M.playlist_length=X.playlistLength);D.update(M)}; g.uO=function(D){var X=D.W(),M=g.Xu||g.nT?{style:"will-change: opacity"}:void 0,Q=X.U,h=["ytp-modern-videowall-still"];X.G&&h.push("ytp-videowall-show-text");g.Y.call(this,{L:"a",gC:h,Z:{href:"{{url}}",target:Q?X.eH:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{L:"div",C:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},V:[{L:"span",C:"ytp-modern-videowall-still-info-duration",Gs:"{{duration}}"}]},{L:"span",C:"ytp-modern-videowall-still-info", Z:{"aria-hidden":"true"},V:[{L:"span",C:"ytp-modern-videowall-still-info-bg",V:[{L:"span",C:"ytp-modern-videowall-still-info-content",Z:M,V:[{L:"span",C:"ytp-modern-videowall-still-info-title",Gs:"{{title}}"},{L:"span",C:"ytp-modern-videowall-still-info-author",Gs:"{{author}}"},{L:"span",C:"ytp-modern-videowall-still-view-count-and-date-info",Gs:"{{views_and_publish_time}}"},{L:"span",C:"ytp-modern-videowall-still-info-live",Gs:"En vivo"}]}]}]},{L:"span",gC:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{L:"span",C:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{L:"span",C:"ytp-modern-videowall-still-listlabel-length",V:[" (",{L:"span",Gs:"{{playlist_length}}"},")"]}]},{L:"span",gC:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{L:"span",C:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{L:"span",C:"ytp-modern-videowall-still-listlabel-length",Gs:" (50+)"}]}]}); this.suggestion=null;this.G=Q;this.api=D;this.S=new g.HE(this);g.p(this,this.S);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.S.N(D,"videodatachange",this.onVideoDataChange);D.createServerVe(this.element,this);this.onVideoDataChange()}; g.jt5=function(D,X){if(D.suggestion!==X){D.suggestion=X;var M=D.api.W(),Q="hqdefault.jpg";X.gM("sddefault.jpg")&&(Q="sddefault.jpg");g.kt(D,X,Q);g.eO(M)&&!D.api.T("web_player_log_click_before_generating_ve_conversion_params")&&(M=X.ML(),Q={},g.LS(D.api,"addEmbedsConversionTrackingParams",[Q]),M=g.nJ(M,Q),D.updateValue("url",M));(X=(X=X.sessionData)&&X.itct)&&D.api.setTrackingParams(D.element,X)}}; D75=function(D,X){g.Y.call(this,{L:"div",gC:["ytp-fullscreen-grid"],V:[{L:"div",C:"ytp-fullscreen-grid-hover-overlay",Z:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{L:"div",C:"ytp-fullscreen-grid-buttons-container",V:[{L:"button",gC:["ytp-fullscreen-grid-expand-button","ytp-button"],Z:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button", "data-tooltip-offset-y":"-10"},V:["{{icon}}"]}]},{L:"div",C:"ytp-fullscreen-grid-main-content",V:[{L:"div",C:"ytp-fullscreen-grid-stills-container"}]}]});this.player=D;this.stills=[];this.videoData=null;this.currentState=0;this.J=this.player.T("web_player_use_external_grid_component");(this.R5=this.player.T("web_player_enable_horizontal_endscreen_shelf"))&&g.hN(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf");this.U=this.h$("ytp-fullscreen-grid-main-content");this.X=this.h$("ytp-fullscreen-grid-stills-container"); this.K=this.h$("ytp-fullscreen-grid-buttons-container");this.J&&(this.X.style.display="none");this.D=new g.HE(this);g.p(this,this.D);this.f$=X;if(this.U&&this.X){if(D=this.h$("ytp-fullscreen-grid-hover-overlay"))this.N(D,"click",this.XG),EI(this.player,D,this);if(D=this.h$("ytp-fullscreen-grid-expand-button"))this.N(D,"click",this.XG),EI(this.player,D,this);if(D=this.player.getVideoData(1))this.videoData=D;this.player.createClientVe(this.U,this,223051);this.D.N(this.player,"videodatachange",this.onVideoDataChange)}}; Xop=function(D,X){var M="",Q=g.PB(D.player,"M\u00e1s videos","v");X===2?M="Ocultar videos":X===1&&(M="M\u00e1s videos");D.element.setAttribute("title",Q);D.element.setAttribute("data-title-no-tooltip",M);D.element.setAttribute("aria-label",M);X=D.h$("ytp-fullscreen-grid-expand-button");var h=D.h$("ytp-fullscreen-grid-hover-overlay");h&&(h.setAttribute("title",Q),h.setAttribute("data-title-no-tooltip",M),h.setAttribute("aria-label",M));X&&(X.setAttribute("title",Q),X.setAttribute("data-title-no-tooltip", M),X.setAttribute("aria-label",M));D.player.qw()}; Qjs=function(D){g.Y.call(this,{L:"div",gC:["ytp-more-videos-button","ytp-button"],Z:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},V:[{L:"div",C:"ytp-more-videos-button-thumbnail"},{L:"span",C:"ytp-more-videos-button-title",Gs:"{{title}}"}]});this.B=D;this.G=this.h$("ytp-more-videos-button-thumbnail");this.Y=this.h$("ytp-more-videos-button-title");this.S=new g.HE(this);g.p(this,this.S);this.S.N(this.B,"videodatachange",this.zb);this.zb();this.listen("click",this.onClick);MKs(this, 0);this.hide()}; MKs=function(D,X){switch(X){case 2:X="Ocultar videos";var M="Hide recommendations grid";break;default:X="M\u00e1s videos",M="Show recommendations grid"}D.updateValue("title",X);D.element.ariaLabel=M;D.Y.textContent=X}; HUd=function(D){uR.call(this,D);var X=this;this.X=this.S=this.Y=0;this.K=null;this.J=this.D=0;this.isEnded=!1;this.eH=null;var M=new g.HE(D);g.p(this,M);this.a5=g.lx(this.api.W().experiments,"web_player_default_peeking_px");this.M5=this.api.T("delhi_modern_player_enable_pause_peeking");this.uj=g.lx(this.api.W().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.yf=this.api.T("web_player_imax_theater_mode");this.U=this.api.T("web_player_enable_fullscreen_grid_components");this.L$=this.api.T("web_player_enable_more_videos_button"); this.sR=this.api.T("web_player_use_external_grid_component");g.hN(this.api.getRootNode(),"ytp-grid-scrollable");M.N(D,"fullscreentoggled",function(){jK(X)}); M.N(D,"videodatachange",function(){if(X.U){var Q=X.api.getVideoData(1);X.videoData!==Q&&X.Y===2&&(g.tN(X.api.getRootNode(),"ytp-grid-scrolling"),D5(X,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));X.videoData=Q}},this); M.N(D,"sizestylechange",function(){X.U&&jK(X)}); qD(this.api,"setFullscreenQuickActions",function(Q){X.setFullscreenQuickActions(Q)}); qD(this.api,"setPlayerOverlayVideoDetailsRenderer",function(Q){X.setPlayerOverlayVideoDetailsRenderer(Q)}); this.sR&&qD(this.api,"setFullscreenGrid",function(Q){X.setFullscreenGrid(Q)}); qD(this.api,"setCommentsButton",function(Q){X.setCommentsButton(Q)}); qD(this.api,"setDescriptionButton",function(Q){X.setDescriptionButton(Q)}); this.U&&hLs(this,M,D)}; hLs=function(D,X,M){X.N(M,"keyboardserviceglobalkeydown",function(Q,h){D.U&&Q.keyCode===86&&!Q.repeat&&D.Y!==0&&(h&&(h.E6=!0),D.No("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); X.N(D.api.getRootNode(),"wheel",function(Q){if(!D.eH){var h;if(D.U&&(h=D.G)!=null&&h.element&&!g.x(D.api.getPlayerStateObject(),2)&&D.Y!==0&&Xx(D))if(g.hN(D.api.getRootNode(),"ytp-grid-scrolling"),D.D===0&&(D.D=window.innerHeight),D.Y===1)D.D!==0&&(D.S+=Q.deltaY/D.D,D.S=g.XT(D.S,0,.7),Mc(D),tK9(D,D.J/D.D+D.S>=.7,2));else if(D.Y===2){h=Q.deltaY<0;var H,t,q=((t=(H=D.G)==null?void 0:H.U)==null?void 0:t.scrollTop)===0;H=D.S!==0;h&&q||H&&!h?D.D!==0&&(D.S=Math.max(0,D.S-Q.deltaY/D.D),Mc(D),tK9(D,D.J/D.D+ Math.abs(D.S)>=.7,1)):D.S!==0&&(D.S=0,Mc(D))}}},D,!0); X.N(M,"standardControlsInitialized",function(){if(!D.G){D.G=new D75(D.api,D.pO.bind(D));D.L$&&(D.f$=new Qjs(D.api),g.p(D,D.f$),D.f$.element.setAttribute("data-overlay-order","12"),D.api.sy(D.f$.element,4),D.f$.listen("click",D.No,D));g.p(D,D.G);var Q=D.api.getRootNode().querySelector(".ytp-chrome-bottom");Q&&Q.parentNode&&Q.parentNode.insertBefore(D.G.element,Q.nextSibling);Nnd(D)}}); X.N(M,"presentingplayerstatechange",function(){Qp(D)}); X.N(M,"autonavvisibility",function(){Qp(D)}); D.api.qW().subscribe("visibilitystatechange",function(){Qp(D)}); qLm(D,D.Y)}; tK9=function(D,X,M){D.K&&clearTimeout(D.K);D.S===0&&g.tN(D.api.getRootNode(),"ytp-grid-scrolling");X?woR(D,M):D.S<.1&&(D.K=window.setTimeout(function(){woR(D)},1E3))}; woR=function(D,X){D.K&&(clearTimeout(D.K),D.K=null);D.D=0;D.U&&D.Y!==0&&(X?D5(D,X):Math.abs(D.S)>=.15&&D.No("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),D.S=0,Mc(D),g.tN(D.api.getRootNode(),"ytp-grid-scrolling"))}; Xx=function(D){return D.api.isFullscreen()||D.yf&&D.api.y5()}; jK=function(D){var X=Xx(D);g.qE(D.api.getRootNode(),"ytp-full-bleed-player",X);D.R5&&g.V_(D.R5,X);D.playerOverlayVideoDetailsRenderer&&g.V_(D.playerOverlayVideoDetailsRenderer,X);D.U&&Qp(D)}; Qp=function(D){if(D.U)if(g.tN(D.api.getRootNode(),"ytp-grid-scrolling"),D.api.getPresentingPlayerType()===2||D.api.R6()||D.api.isMinimized())D5(D,0);else{var X=g.x(D.api.getPlayerStateObject(),2);if(X)D5(D,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(D.isEnded&&!X){var M=Xx(D)?1:0;D.isEnded=X;D5(D,M)}else Xx(D)?D.Y!==2&&D5(D,1):D5(D,0);D.isEnded=X}}; D5=function(D,X,M){D.Y=X;var Q;(Q=D.G)==null||Q.cC(X,M);var h;(h=D.f$)==null||h.cC(X);D.S=0;Mc(D);qLm(D,X)}; qLm=function(D,X){var M=D.api.getRootNode();g.qE(M,"ytp-fullscreen-grid-peeking",X===1);g.qE(M,"ytp-fullscreen-grid-active",X===2);X===1&&Nnd(D)}; Nnd=function(D){var X=D.api.getRootNode();if(g.x(D.api.getPlayerStateObject(),256)||g.x(D.api.getPlayerStateObject(),32)||g.x(D.api.getPlayerStateObject(),16))var M=D.J;else if(D.M5&&D.api.getPlayerStateObject().isPaused()){var Q;M=(((Q=D.G)==null?void 0:Q.element.clientWidth)||0)*.5625/3*D.uj||D.a5}else M=D.a5;D.J=M;X.style.setProperty("--ytp-grid-peek-height",D.J+"px");g.qE(X,"ytp-disable-bottom-gradient",D.J<=12&&D.X===0)}; Mc=function(D){D.S===0&&D.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var X=D.S-D.X,M=X;D.S!==0&&(M=g.XT(X,-.01,.01));D.X+=M;D.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+D.X.toString());D.X!==D.S&&Mc(D)})}; Tn5=function(D){uR.call(this,D);var X=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.HE(D);g.p(this,this.events);this.events.N(D,"heartbeatRequest",function(M){if(X.freePreviewUsageDetails.length||X.freePreviewWatchedDuration!==null)M.heartbeatRequestParams||(M.heartbeatRequestParams={}),M.heartbeatRequestParams.unpluggedParams||(M.heartbeatRequestParams.unpluggedParams={}),X.freePreviewUsageDetails.length>0?M.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= X.freePreviewUsageDetails:M.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+X.freePreviewWatchedDuration}}); qD(D,"setFreePreviewWatchedDuration",function(M){X.freePreviewWatchedDuration=M}); qD(D,"setFreePreviewUsageDetails",function(M){X.freePreviewUsageDetails=M})}; hQ=function(D){g.O.call(this);this.features=[];var X=this.S,M=new C5(D),Q=new jd(D),h=new Ho(D),H=new JP(D);var t=g.H9(D.W())?void 0:new RS(D);var q=new hP(D),w=new UOd(D),T=new iv_(D),L=new oS(D);var K=g.H9(D.W())?new Tn5(D):void 0;var a;var F=(a=D.W().getWebPlayerContextConfig())!=null&&a.cinematicSettingsAvailable?new PA(D):void 0;a=new iP(D);var V=D.T("enable_courses_player_overlay_purchase")?new jBd(D):void 0;var c=g.uS(D.W())?new GY_(D):void 0;var S=new IS(D);var b=D.W().U?new A9H(D):void 0; var n=g.eO(D.W())?new ptW(D):void 0;var R=D.T("web_player_move_autonav_toggle")&&D.W().G6?new g4s(D):void 0;var v=g.uS(D.W())?new HMo(D):void 0;var l=D.T("web_enable_speedmaster")&&g.uS(D.W())?new Rj(D):void 0;var A=D.W().tC?void 0:new mOo(D);var Hs=D.T("report_pml_debug_signal")?new V$s(D):void 0;var u=new B5H(D),D_=new wn(D);var q5=g.RW(D.W())?new v55(D):void 0;var Lo=navigator.mediaSession&&window.MediaMetadata&&D.W().An?new M7(D):void 0;var Qs=D.T("html5_enable_drc")&&!D.W().X?new e_(D):void 0; var S2=new MW(D);var XC=g.uS(D.W())?new WYn(D):void 0;var q_=D.T("html5_enable_d6de4")?new tP(D):void 0;var th=g.uS(D.W())&&D.T("web_sleep_timer")?new EL(D):void 0;var Jd=g.eO(D.W())?new lQn(D):void 0;var Gp=new fU(D),zy=new dSo(D),Ra=new QDH(D);var m=D.T("enable_sabr_snackbar_message")?new qjn(D):void 0;var $B=D.T("web_enable_timely_actions")?new RG2(D):void 0;var WZ=new n5(D);var wR,eb;var E=((wR=D.W())==null?0:(eb=wR.getWebPlayerContextConfig())==null?0:eb.enableFullscreenComponentsFeature)?new HUd(D): void 0;wR=new Yt(D);eb=D.T("web_player_loop_settings_menu")&&D.W().yL?new h61(D):void 0;var Xn=g.H9(D.W())?void 0:new D9(D);var ci=new bMR(D),qu=new f5(D),Wi=new ZMs(D),wS=new eQs(D);var zp=g.uS(D.W())&&D.W().T("delhi_modern_web_player")?new ild(D):void 0;var Dt=D.W().Y?void 0:new USn(D);X.call(this,M,Q,h,H,t,q,w,T,L,K,F,a,V,c,S,b,n,R,v,l,A,Hs,u,D_,q5,void 0,Lo,Qs,S2,void 0,XC,q_,th,Jd,void 0,Gp,zy,Ra,void 0,m,$B,WZ,E,wR,void 0,eb,void 0,Xn,ci,qu,Wi,wS,zp,Dt,new FC5(D),new vA(D))}; Li2=function(){this.G=this.S=NaN}; sjH=function(D,X){this.j=D;this.timerName="";this.Y=!1;this.G=NaN;this.U=new Li2;this.S=X||null;this.Y=!1}; Kis=function(D,X,M){var Q=g.r_(X.UR)&&!X.UR.X;if(X.UR.TL&&(IA(X.UR)||X.UR.a5==="shortspage"||hR(X.UR)||Q)&&!D.Y){D.Y=!0;D.X=X.clientPlaybackNonce;g.zZ("TIMING_ACTION")||GZ("TIMING_ACTION",D.j.csiPageType);D.j.csiServiceName&&GZ("CSI_SERVICE_NAME",D.j.csiServiceName);if(D.S){Q=D.S.g6();for(var h=g.e(Object.keys(Q)),H=h.next();!H.done;H=h.next())H=H.value,SQ(H,Q[H],D.timerName);Q=g.DS(E9p)(D.S.Qg);g.Eg(Q,D.timerName);Q=D.S;Q.S={};Q.Qg={}}g.Eg({playerInfo:{visibilityState:g.DS(Sl9)()},playerType:"LATENCY_PLAYER_HTML5"}, D.timerName);D.D!==X.clientPlaybackNonce||Number.isNaN(D.G)||(Pz("_start",D.timerName)?M=g.DS(Bz)("_start",D.timerName)+D.G:g.P3(new g.ys("attempted to log gapless pbs before CSI timeline started",{cpn:X.clientPlaybackNonce})));!M||Pz("pbs",D.timerName)||X.B3||HI(D,M)}}; HI=function(D,X,M){SQ("pbs",X!=null?X:(0,g.fi)(),M!=null?M:D.timerName)}; tQ=function(D){v9W();g9d();D.timerName=""}; a6m=function(D){if(D.S){var X=D.S;X.S={};X.Qg={}}D.Y=!1;D.D=void 0;D.G=NaN}; Fis=function(D,X){g.Dq.call(this);this.UR=D;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.S=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Jg={};this.G=0;if(D=X.session_data)this.sessionData=Mq(D,"&");this.index=Math.max(0,Number(X.index)||0);this.loop=!!X.loop;this.startSeconds=Number(X.startSeconds)||0;this.title=X.playlist_title||"";this.description=X.playlist_description||"";this.author= X.author||X.playlist_author||"";X.video_id&&(this.items[this.index]=X);if(D=X.api)typeof D==="string"&&D.length===16?X.list="PL"+D:X.playlist=D;if(D=X.list)switch(X.listType){case "user_uploads":this.listId=new PU("UU","PLAYER_"+D);break;default:var M=X.playlist_length;M&&(this.length=Number(M)||0);this.listId=mN(D);if(D=X.video)this.items=D.slice(0),this.loaded=!0}else if(X.playlist){D=X.playlist.toString().split(",");this.index>0&&(this.items=[]);D=g.e(D);for(M=D.next();!M.done;M=D.next())(M=M.value)&& this.items.push({video_id:M});this.length=this.items.length;if(D=X.video)this.items=D.slice(0),this.loaded=!0}this.setShuffle(!!X.shuffle);if(D=X.suggestedQuality)this.quality=D;this.Jg=Ur(X,"playlist_");this.Y=(X=X.thumbnail_ids)?X.split(","):[]}; VKR=function(D){return!!(D.playlist||D.list||D.api)}; $75=function(D){var X=D.index+1;return X>=D.length?0:X}; BnW=function(D){var X=D.index-1;return X<0?D.length-1:X}; g.Nc=function(D,X,M,Q){X=X!==void 0?X:D.index;X=D.items&&X in D.items?D.items[D.order[X]]:null;var h=null;X&&(M&&(X.autoplay="1"),Q&&(X.autonav="1"),h=new g.zL(D.UR,X),g.p(D,h),h.WB=!0,h.startSeconds=D.startSeconds||h.clipStart||0,D.listId&&(h.playlistId=D.listId.toString()));return h}; ZUR=function(D,X){D.index=g.XT(X,0,D.length-1);D.startSeconds=0}; U7H=function(D,X){if(X.video&&X.video.length){D.title=X.title||"";D.description=X.description;D.views=X.views;D.likes=X.likes;D.dislikes=X.dislikes;D.author=X.author||"";var M=X.loop;M&&(D.loop=M);M=g.Nc(D);D.items=[];for(var Q=g.e(X.video),h=Q.next();!h.done;h=Q.next())if(h=h.value)h.video_id=h.encrypted_id,D.items.push(h);D.length=D.items.length;(X=X.index)?D.index=X:D.findIndex(M);D.setShuffle(!1);D.loaded=!0;D.G++;D.S&&D.S()}}; SLs=function(D,X){var M,Q,h,H,t,q,w;return g.r(function(T){if(T.S==1){M=g.YU();var L=D.W(),K={context:g.tb(D),playbackContext:{contentPlaybackContext:{ancestorOrigins:L.ancestorOrigins}}},a=L.getWebPlayerContextConfig();if(a==null?0:a.encryptedHostFlags)K.playbackContext.contentPlaybackContext.encryptedHostFlags=a.encryptedHostFlags;if(a==null?0:a.hideInfo)K.playerParams={showinfo:!1};a=L.embedConfig;var F=D.iA;var V=X.docid||X.video_id||X.videoId||X.id;if(!V){V=X.raw_embedded_player_response;if(!V){var c= X.embedded_player_response;c&&(V=JSON.parse(c))}if(V){var S,b,n,R,v,l;V=((l=g.Z((S=V)==null?void 0:(b=S.embedPreview)==null?void 0:(n=b.thumbnailPreviewRenderer)==null?void 0:(R=n.playButton)==null?void 0:(v=R.buttonRenderer)==null?void 0:v.navigationEndpoint,g.QM))==null?void 0:l.videoId)||null}else V=null}S=(S=V)?S:void 0;b=D.playlistId?D.playlistId:X.list;n=X.listType;if(b){var A;n==="user_uploads"?A={username:b}:A={playlistId:b};cPp(a,F,S,X,A,L.experiments);K.playlistRequest=A}else X.playlist? (A={templistVideoIds:X.playlist.toString().split(",")},cPp(a,F,S,X,A,L.experiments),K.playlistRequest=A):S&&(A={videoId:S},F&&L.T("embeds_enable_per_video_embed_config")?A.serializedThirdPartyEmbedConfig=F:a&&(A.serializedThirdPartyEmbedConfig=a),K.singleVideoRequest=A);Q=K;h=g.Gq(f6n);g.N_(T,2);return g.I(T,g.RQ(M,Q,h),4)}if(T.S!=2)return H=T.G,t=D.W(),X.raw_embedded_player_response=H,t.L$=Lw(X,g.eO(t)),t.Y=t.L$==="EMBEDDED_PLAYER_MODE_PFL",H&&(q=H,q.trackingParams&&NS(q.trackingParams)),T.return(new g.zL(t, X));w=g.LG(T);w instanceof Error||(w=Error("b259802748"));g.ET(w);return T.return(D)})}; cPp=function(D,X,M,Q,h,H){Q.index&&(h.playlistIndex=String(Number(Q.index)+1));h.videoId=M?M:"";X&&H.Z4("embeds_enable_per_video_embed_config")?h.serializedThirdPartyEmbedConfig=X:D&&(h.serializedThirdPartyEmbedConfig=D)}; g.wZ=function(D,X){qc.get(D);qc.set(D,X)}; g.Tn=function(D){g.Dq.call(this);this.loaded=!1;this.player=D}; Ets=function(){this.G=[];this.S=[]}; g.lO=function(D,X){return X?D.S.concat(D.G):D.S}; g.Lb=function(D,X){switch(X.kind){case "asr":yPs(X,D.G);break;default:yPs(X,D.S)}}; yPs=function(D,X){g.xB(X,function(M){return D.equals(M)})||X.push(D)}; g.se=function(D){g.O.call(this);this.XF=D;this.S=new Ets;this.Y=null;this.D=[];this.K=[]}; g.POo=function(D,X){var M;return X.W().T("html5_use_hls_native_captions")&&g.ah&&D.yq()&&!((M=D.G)==null||!ge(M))}; g.Kb=function(D,X,M){g.se.call(this,D);this.videoData=X;this.audioTrack=M;this.G=null;this.U=!1;this.D=X.fu;this.K=X.qS;this.U=g.pA(X)}; g.m7i=function(D,X){var M;return D.W().T("safari_live_drm_captions_fix")&&((M=D.getVideoData())==null?0:M.aj())?!1:g.H9(D.W())&&!X.isManifestless}; g.aF=function(D,X){return iw(D.info.mimeType)?X?D.info.itag===X:!0:!1}; g.ntW=function(D,X){if(D.S!=null&&g.m7i(X,D.S)&&D.S.S.rawcc!=null)return!0;if(!D.yq())return!1;X=!!D.S&&D.S.isManifestless&&Object.values(D.S.S).some(function(M){return g.aF(M,"386")}); D=!!D.S&&!D.S.isManifestless&&g.Fq9(D.S);return X||D}; g.Fx=function(D,X,M,Q,h,H){g.se.call(this,D);this.videoId=M;this.KE=h;this.eventId=H;this.X={};this.G=null;D=Q||g.HX(X).hl||"";D=D.split("_").join("-");this.U=tW(X,{hl:D})}; bU2=function(D,X,M){M=M===void 0?"":M;g.O.call(this);var Q=this;this.B=D;this.D=X;this.Y=M;this.Qg={};this.S={};this.G=null;this.U=new Set;this.X=new g.HE(this);this.py={Hc$:function(){return Q.D}, OQ5:function(){return Q.Y}}; this.J=this.B.T("web_player_defer_modules");this.YC=new Map;g.p(this,this.X);this.X.N(D,"videodatachange",this.onVideoDataChange)}; eLn=function(D,X){D.G=X}; g.Vp=function(D){return D.YC.get("captions")}; rPn=function(D,X){switch(X){case "ad":return RLo(D);case "annotations_module":return D.B.isEmbedsShortsMode()?D=!1:(X=D.B,D=X.W(),X=X.getVideoData(),D=D.Y||X.A4||D.controlsType==="3"?!1:D.uj.isEmpty()&&D.playerStyle!=="annotation-editor"&&D.playerStyle!=="live-dashboard"?!!X.J_||!!g.op(X)||!!g.CA(X):!0),D;case "asmjs":return $k(D);case "creatorendscreen":return I6s(D);case "embed":return g.eO(D.B.W());case "endscreen":return g.gts(D);case "heartbeat":return D.DE();case "kids":return Yv(D.B.W());case "remote":return D.B.W().l$; case "miniplayer":return D.B.W().showMiniplayerUiWhenMinimized;case "offline":return D.B.W().w$;case "captions":return vti(D);case "unplugged":return g.iS(D.B.W());case "ux":return D.B.W().t$;case "webgl":return d71(D);case "ypc":return D.Z3();default:return g.ET(Error("Module descriptor "+X+" does not match")),!1}}; BI=function(D,X,M,Q,h){var H;M=M===void 0?!1:M;Q=Q===void 0?!1:Q;var t=D.YC.get(X);if(!t||Q)if(h||(h=function(){BI(D,X,M,Q)}),H||(H=function(){Z5(D,X)}),t=t||iUo(D,X,rPn(D,X),h,H))D.YC.set(X,t),t.create(),D.B.publish("modulecreated",X),M&&D.B.sC("onApiChange")}; COs=function(D){var X=X===void 0?!1:X;var M,Q,h,H,t;return g.r(function(q){if(q.S==1)return(M=D.YC.get("asmjs"))&&!X?q.return(M):(Q=qc.get("asmjs"))!=null?(h=Q,q.D4(2)):g.I(q,new Promise(function(w,T){oto(D,"asmjs",function(){var L=qc.get("asmjs");L?w(L):T("cannot load module asmjs")},T)}),3); q.S!=2&&(h=q.G);H=h;if(!H)return q.return(Promise.reject("cannot load module asmjs"));t=new H(D.B);D.YC.set("asmjs",t);t.create();return q.return(t)})}; APW=function(D){OUn(D)&&D.uY();po5(D)&&(BI(D,"captions",!0),BI(D,"endscreen"),D.rJ(),BI(D,"creatorendscreen",!0))}; Z5=function(D,X){X=g.e(YLs[X]);for(var M=X.next();!M.done;M=X.next())D.B.Uy(M.value)}; po5=function(D){var X=D.B.getVideoData(),M=D.J&&!X.isInlinePlaybackNoAd;D.B.T("html5_defer_modules_on_ads_only")&&!X.isAd()&&(M=!1);return M}; OUn=function(D){D=D.B.getVideoData();var X;if(X=D.T("web_player_defer_ad")){if(g.jb(D.AC,"ad")||wNW(D)||D.enableServerStitchedDai)D=!1;else{X=D.playerResponse;D=D.startSeconds;var M=X==null?void 0:X.adPlacements;if(X=M){X=Number.MAX_VALUE;M=g.e(M);for(var Q=M.next();!Q.done;Q=M.next())if(Q=Q.value.adPlacementRenderer){var h=void 0,H=(h=Q.config)==null?void 0:h.adPlacementConfig;h=void 0;if(((h=H)==null?void 0:h.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var t=h=void 0;H=Number((h=H)==null?void 0:(t= h.adTimeOffset)==null?void 0:t.offsetStartMilliseconds)||0;t=h=void 0;Q=Number(((h=Q.renderer)==null?void 0:(t=h.adBreakServiceRenderer)==null?void 0:t.prefetchMilliseconds)||0);Q=H-Q;Q=11;D=D.api.W().J&&nb;return!(!X&&!D)}; Cb=function(D,X){return!D.api.isInline()&&!sF9(D,mI(X))&&g.Bb(X)}; L91=function(D){D.C2.H8();if(D.kZ&&D.gf)D.gf=!1;else if(!D.api.W().yf&&!D.Vn()){var X=D.api.getPlayerStateObject();g.x(X,2)&&g.nS(D.api)||D.l6(X);!D.api.W().q5||X.isCued()||g.x(X,1024)?D.DI():D.Ip.isActive()?(D.gs(),D.Ip.stop()):D.Ip.start()}}; a5R=function(D,X){var M;if((M=D.api.getVideoData())==null?0:M.mutedAutoplay){var Q,h;if((Q=X.target)==null?0:(h=Q.className)==null?0:h.includes("ytp-info-panel"))return!1}return g.Bb(X)&&D.api.isMutedByMutedAutoplay()?(D.api.unMute(),D.api.getPresentingPlayerType()===2&&D.api.playVideo(),X=D.api.getPlayerStateObject(),!g.x(X,4)||g.x(X,8)||g.x(X,2)||D.DI(),!0):!1}; F92=function(D,X,M){D.api.isFullscreen()?M<1-X&&D.api.toggleFullscreen():M>1+X&&D.api.toggleFullscreen()}; TZs=function(D){var X=JW()&&AW()>=67&&!D.api.W().J;D=D.api.W().disableOrganicUi;return!g.lE("tizen")&&!ma&&!X&&!D}; g.Oe=function(D){g.Y.call(this,{L:"div",V:[{L:"div",C:"ytp-bezel-text-wrapper",V:[{L:"div",C:"ytp-bezel-text",Gs:"{{title}}"}]},{L:"div",C:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},V:[{L:"div",C:"ytp-bezel-icon",Gs:"{{icon}}"}]}]});this.B=D;this.G=new g.W5(this.show,10,this);D=this.B.T("delhi_modern_web_player")?1E3:500;this.S=new g.W5(this.hide,D,this);g.p(this,this.G);g.p(this,this.S);this.hide()}; AQ=function(D,X,M){if(X<=0){M=Pr();X="silenciado";var Q=0}else M=M?{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,Z:{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"}}]}:{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,Z:{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"}}]},Q=Math.floor(X),X=Q+"volumen";pb(D,M,X,Q+"%")}; VSn=function(D,X){X=X?{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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"}}]}:zj_();var M=D.B.getPlaybackRate(),Q=g.W9("La velocidad es de $RATE",{RATE:String(M)});pb(D,X,Q,M+"x")}; $c1=function(D,X){X=X?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";pb(D,B85(D.B),X)}; pb=function(D,X,M,Q){Q=Q===void 0?"":Q;D.updateValue("label",M===void 0?"":M);D.updateValue("icon",X);g.km(D.S);D.G.start();D.updateValue("title",Q);g.qE(D.element,"ytp-bezel-text-hide",!Q)}; BZn=function(D,X){g.Y.call(this,{L:"button",gC:["ytp-button","ytp-cards-button"],Z:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.eO(D.W()))},V:[{L:"span",C:"ytp-cards-button-icon-default",V:[{L:"div",C:"ytp-cards-button-icon",V:[D.W().T("player_new_info_card_format")?uci():{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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"}}]}]}, {L:"div",C:"ytp-cards-button-title",Gs:"Informaci\u00f3n"}]},{L:"span",C:"ytp-cards-button-icon-shopping",V:[{L:"div",C:"ytp-cards-button-icon",V:[{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",C:"ytp-svg-shadow",Z:{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"}},{L:"path",C:"ytp-svg-fill",Z:{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"}},{L:"path",C:"ytp-svg-shadow-fill",Z:{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"}}]}]},{L:"div", C:"ytp-cards-button-title",Gs:"Shopping"}]}]});this.B=D;this.G=X;this.S=null;this.fade=new g.kn(this,250,!0,100);g.p(this,this.fade);g.qE(this.G,"ytp-show-cards-title",g.eO(D.W()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Ir(!0)}; Zbn=function(D,X){g.Y.call(this,{L:"div",C:"ytp-cards-teaser",V:[{L:"div",C:"ytp-cards-teaser-box"},{L:"div",C:"ytp-cards-teaser-text",V:D.W().T("player_new_info_card_format")?[{L:"button",C:"ytp-cards-teaser-info-icon",Z:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},V:[uci()]},{L:"img",C:"ytp-cards-teaser-channel-avatar",Z:{alt:"","aria-hidden":"true"}},{L:"span",C:"ytp-cards-teaser-label",Gs:"{{text}}"},{L:"button",C:"ytp-cards-teaser-close-button",Z:{"aria-label":"Cerrar"},V:[g.KO()]}]: [{L:"span",C:"ytp-cards-teaser-label",Gs:"{{text}}"}]}]});var M=this;this.B=D;this.XP=X;this.fade=new g.kn(this,250,!1,250);this.S=null;this.X=new g.W5(this.ERz,300,this);this.D=new g.W5(this.wC$,2E3,this);this.U=[];this.Y=null;this.J=new g.W5(function(){M.element.style.margin="0"},250); this.onClickCommand=this.G=null;g.p(this,this.fade);g.p(this,this.X);g.p(this,this.D);g.p(this,this.J);D.W().T("player_new_info_card_format")?(g.hN(D.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.h$("ytp-cards-teaser-close-button"),"click",this.qz),this.N(this.h$("ytp-cards-teaser-info-icon"),"click",this.tH),this.N(this.h$("ytp-cards-teaser-label"),"click",this.tH)):this.listen("click",this.tH);this.N(X.element,"mouseover",this.oH);this.N(X.element,"mouseout",this.ZV);this.N(D,"cardsteasershow", this.Pi4);this.N(D,"cardsteaserhide",this.Pb);this.N(D,"cardstatechange",this.KI);this.N(D,"presentingplayerstatechange",this.KI);this.N(D,"appresize",this.eb);this.N(D,"onShowControls",this.eb);this.N(D,"onHideControls",this.wk);this.listen("mouseenter",this.Ke)}; Ucd=function(D){g.Y.call(this,{L:"button",gC:[Yk.BUTTON,Yk.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{L:"div",C:Yk.TITLE_NOTIFICATIONS_ON,Z:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},V:[g.Br()]},{L:"div",C:Yk.TITLE_NOTIFICATIONS_OFF,Z:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},V:[{L:"svg",Z:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},V:[{L:"path",Z:{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=D;this.S=!1;D.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")}; cQn=function(D,X){D.S=X;D.element.classList.toggle(Yk.NOTIFICATIONS_ENABLED,D.S);var M=D.api.getVideoData();M?(X=X?M.Re:M.SG)?(D=D.api.iE())?eQ(D,X):g.ET(Error("No innertube service available when updating notification preferences.")):g.ET(Error("No update preferences command available.")):g.ET(Error("No video data when updating notification preferences."))}; Se_=function(D,X,M){var Q=Q===void 0?800:Q;var h=h===void 0?600:h;var H=document.location.protocol;D=TH_(H+"//"+D+"/signin?context=popup","feature",X,"next",H+"//"+location.hostname+"/post_login");f51(D,M,Q,h)}; f51=function(D,X,M,Q){M=M===void 0?800:M;Q=Q===void 0?600:Q;if(D=g.R6(window,D,"loginPopup","width="+M+",height="+Q+",resizable=yes,scrollbars=yes"))lPi(function(){X()}),D.moveTo((screen.width-M)/2,(screen.height-Q)/2)}; g.lz=function(D,X,M,Q,h,H,t,q,w,T,L,K){D=D.charAt(0)+D.substring(1).toLowerCase();M=M.charAt(0)+M.substring(1).toLowerCase();if(X==="0"||X==="-1")X=null;if(Q==="0"||Q==="-1")Q=null;var a=L.W(),F=a.userDisplayName&&g.r_(a);g.Y.call(this,{L:"div",gC:["ytp-button","ytp-sb"],V:[{L:"div",C:"ytp-sb-subscribe",Z:F?{title:L.W().T("player_tooltip_data_title_killswitch")?g.W9("Suscribirse como $USER_NAME",{USER_NAME:a.userDisplayName}):"","data-tooltip-title":g.W9("Suscribirse como $USER_NAME",{USER_NAME:a.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":HU(a),"data-tooltip-opaque":String(g.eO(a)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},V:[{L:"div",C:"ytp-sb-text",V:[{L:"div",C:"ytp-sb-icon"},D]},X?{L:"div",C:"ytp-sb-count",Gs:X}:""]},{L:"div",C:"ytp-sb-unsubscribe",Z:F?{title:L.T("player_tooltip_data_title_killswitch")?g.W9("Suscripci\u00f3n a nombre de $USER_NAME",{USER_NAME:a.userDisplayName}):"","data-tooltip-title":g.W9("Suscripci\u00f3n a nombre de $USER_NAME", {USER_NAME:a.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":HU(a),"data-tooltip-opaque":String(g.eO(a)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},V:[{L:"div",C:"ytp-sb-text",V:[{L:"div",C:"ytp-sb-icon"},M]},Q?{L:"div",C:"ytp-sb-count",Gs:Q}:""]}],Z:{"aria-live":"polite"}});var V=this;this.channelId=t;this.B=L;this.Y=K;var c=this.h$("ytp-sb-subscribe"),S=this.h$("ytp-sb-unsubscribe");H&&g.hN(this.element,"ytp-sb-classic"); if(h){q?this.S():this.G();var b=function(){if(a.sR){var R=V.channelId;if(w||T){var v={c:R};var l;g.s7.isInitialized()&&(l=jws(v));v=l||"";if(l=L.getVideoData())if(l=l.subscribeCommand){var A=L.iE();A?(eQ(A,l,{botguardResponse:v,feature:w}),L.ER("SUBSCRIBE",R)):g.ET(Error("No innertube service available when updating subscriptions."))}else g.ET(Error("No subscribe command in videoData."));else g.ET(Error("No video data available when updating subscription."))}S.focus();S.removeAttribute("aria-hidden"); c.setAttribute("aria-hidden","true")}else Se_(g.xv(V.B.W()),"sb_button",V.U)},n=function(){var R=V.channelId; if(w||T){var v=L.getVideoData();eQ(L.iE(),v.unsubscribeCommand,{feature:w});L.ER("UNSUBSCRIBE",R)}c.focus();c.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}; this.N(c,"click",b);this.N(S,"click",n);this.N(c,"keypress",function(R){R.keyCode===13&&b(R)}); this.N(S,"keypress",function(R){R.keyCode===13&&n(R)}); this.N(L,"SUBSCRIBE",this.S);this.N(L,"UNSUBSCRIBE",this.G);this.Y&&F&&(Hli(L),EI(L,c,this),EI(L,S,this))}else g.hN(c,"ytp-sb-disabled"),g.hN(S,"ytp-sb-disabled")}; PzH=function(D){g.Y.call(this,{L:"div",C:"ytp-title-channel",V:[{L:"div",C:"ytp-title-beacon"},{L:"a",C:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:D.W().eH,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{L:"div",C:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{L:"div",C:"ytp-title-expanded-heading",V:[{L:"div",C:"ytp-title-expanded-title",V:[{L:"a",Gs:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:D.W().eH,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{L:"div",C:"ytp-title-expanded-subtitle",Gs:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var X=this;this.api=D;this.channel=this.h$("ytp-title-channel");this.G=this.h$("ytp-title-channel-logo");this.channelName=this.h$("ytp-title-expanded-title");this.D=this.h$("ytp-title-expanded-overlay");this.Y=this.S=this.subscribeButton=null;this.U=!1;D.createClientVe(this.G,this,36925);D.createClientVe(this.channelName,this, 37220);g.eO(this.api.W())&&Eko(this);this.N(D,"videodatachange",this.C$);this.N(D,"videoplayerreset",this.C$);this.N(this.channelName,"click",function(M){X.api.logClick(X.channelName);g.R6(window,yQ_(X));M.preventDefault()}); this.N(this.G,"click",this.zrF);this.C$()}; mcR=function(D){if(!D.api.W().Mj){var X=D.api.getVideoData(),M=new g.lz("Suscribirse",null,"Suscrito/a",null,!0,!1,X.uI,X.subscribed,"channel_avatar",null,D.api,!0);D.api.createServerVe(M.element,D);var Q;D.api.setTrackingParams(M.element,((Q=X.subscribeButtonRenderer)==null?void 0:Q.trackingParams)||null);D.N(M.element,"click",function(){D.api.logClick(M.element)}); D.subscribeButton=M;g.p(D,D.subscribeButton);D.subscribeButton.rC(D.D);D.subscribeButton.hide();var h=new Ucd(D.api);D.S=h;g.p(D,h);h.rC(D.D);h.hide();D.N(D.api,"SUBSCRIBE",function(){X.kC&&(h.show(),D.api.logVisibility(h.element,!0))}); D.N(D.api,"UNSUBSCRIBE",function(){X.kC&&(h.hide(),D.api.logVisibility(h.element,!1),cQn(h,!1))})}}; Eko=function(D){var X=D.api.W();mcR(D);D.updateValue("flyoutUnfocusable","true");D.updateValue("channelTitleFocusable","-1");D.updateValue("shouldHideExpandedTitleForA11y","true");D.updateValue("shouldHideExpandedSubtitleForA11y","true");X.G||X.OR||(D.N(D.channel,"mouseenter",D.Ws),D.N(D.channel,"mouseleave",D.ac),D.N(D.channel,"focusin",D.Ws),D.N(D.channel,"focusout",function(M){D.channel.contains(M.relatedTarget)||D.ac()})); D.Y=new g.W5(function(){D.isExpanded()&&(D.api.logVisibility(D.channelName,!1),D.subscribeButton&&(D.subscribeButton.hide(),D.api.logVisibility(D.subscribeButton.element,!1)),D.S&&(D.S.hide(),D.api.logVisibility(D.S.element,!1)),D.channel.classList.remove("ytp-title-expanded"),D.channel.classList.add("ytp-title-show-collapsed"))},500); g.p(D,D.Y);D.N(D.channel,nkR,function(){bbs(D)}); D.N(D.api,"onHideControls",D.cK);D.N(D.api,"appresize",D.cK);D.N(D.api,"fullscreentoggled",D.cK)}; bbs=function(D){D.channel.classList.remove("ytp-title-show-collapsed");D.channel.classList.remove("ytp-title-show-expanded")}; end=function(D){var X=D.api.getPlayerSize();return g.eO(D.api.W())&&X.width>=524}; yQ_=function(D){var X=D.api.W(),M=D.api.getVideoData(),Q=g.tR(X)+M.yf;g.MD(M)&&(Q="https://music.youtube.com"+M.yf);if(!g.eO(X))return Q;X={};g.LS(D.api,"addEmbedsConversionTrackingParams",[X]);return g.nJ(Q,X)}; JQ=function(D){var X=g.GT({"aria-haspopup":"true"});g.WB.call(this,X,D);this.listen("keydown",this.Xg)}; xk=function(D,X){D.element.setAttribute("aria-haspopup",String(X))}; Rnd=function(D,X){g.Y.call(this,{L:"div",C:"ytp-user-info-panel",Z:{"aria-label":"Informaci\u00f3n del usuario"},V:D.W().sR?[{L:"div",C:"ytp-user-info-panel-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-user-info-panel-content",V:[{L:"div",C:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},Gs:"{{watchingAsUsername}}"},{L:"div",C:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Gs:"{{watchingAsEmail}}"}]}]:[{L:"div",C:"ytp-user-info-panel-icon",Gs:"{{icon}}"}, {L:"div",C:"ytp-user-info-panel-content",V:[{L:"div",V:[{L:"text",Z:{tabIndex:"{{userInfoFocusable}}"},Gs:"Saliste de la cuenta"}]},{L:"div",C:"ytp-user-info-panel-login",V:[{L:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Gs:D.W().Mj?"":"Acceder a YouTube"}]}]}]});this.XF=D;this.sourceElement=X;D.W().sR||D.W().Mj||this.N(this.h$("ytp-user-info-panel-login"),"click",this.zv);this.closeButton=new g.Y({L:"button",gC:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"},V:[g.yN()]});this.closeButton.rC(this.element); g.p(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.VG);this.C$()}; rQ2=function(D,X,M){g.aj.call(this,D);var Q=this;this.Vf=X;this.yF=M;this.getVideoUrl=new JQ(6);this.Yp=new JQ(5);this.eN=new JQ(4);this.ip=new JQ(3);this.Qd=new g.WB(g.GT({href:"{{href}}",target:this.B.W().eH},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.WB(g.GT(),1,"Estad\u00edsticas");this.k7=new g.Hr({L:"div",gC:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},Gs:"{{text}}"});this.jw=new KU(this.B,this.k7);this.u2=this.Ji=null;g.eO(this.B.W())&& (this.closeButton=new g.Y({L:"button",gC:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"},V:[g.yN()]}),g.p(this,this.closeButton),this.closeButton.rC(this.element),this.closeButton.listen("click",this.Ev,this));g.eO(this.B.W())&&(this.D9=new g.WB(g.GT(),10,"Cuenta"),g.p(this,this.D9),this.fK(this.D9,!0),this.D9.listen("click",this.D22,this),D.createClientVe(this.D9.element,this.D9,137682));this.B.W().yL&&(this.eR=new HA("En bucle",9),g.p(this,this.eR),this.fK(this.eR,!0),this.eR.listen("click",this.ca$, this),D.createClientVe(this.eR.element,this.eR,28661));this.B.T("web_player_miniplayer_in_context_menu")&&(this.CZ=new g.WB(g.GT(),8,"Reproductor en miniatura"),g.p(this,this.CZ),this.fK(this.CZ,!0),this.CZ.listen("click",this.IJH,this),D.createClientVe(this.CZ.element,this.CZ,62946));this.B.T("web_watch_pip_context_menu_button")&&this.B.W().showMiniplayerButton&&(this.Ar=new g.WB(g.GT(),7,"Pantalla en pantalla"),g.p(this,this.Ar),this.fK(this.Ar,!0),this.Ar.listen("click",this.qH4,this),D.createClientVe(this.Ar.element, this.Ar,194442));g.p(this,this.getVideoUrl);this.fK(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.yaf,this);D.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.p(this,this.Yp);this.fK(this.Yp,!0);this.Yp.listen("click",this.PMf,this);D.createClientVe(this.Yp.element,this.Yp,28660);g.p(this,this.eN);this.fK(this.eN,!0);this.eN.listen("click",this.TIF,this);D.createClientVe(this.eN.element,this.eN,28658);g.p(this,this.ip);this.fK(this.ip,!0);this.ip.listen("click",this.Mt4, this);g.p(this,this.Qd);this.fK(this.Qd,!0);this.Qd.listen("click",this.Wj2,this);g.p(this,this.showVideoInfo);this.fK(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.rq2,this);g.p(this,this.k7);this.k7.listen("click",this.GXH,this);g.p(this,this.jw);I5W()&&(this.Ji=new g.Y({L:"textarea",C:"ytp-html5-clipboard",Z:{readonly:"",tabindex:"-1"}}),g.p(this,this.Ji),this.Ji.rC(this.element));var h;(h=this.D9)==null||h.setIcon(tJH());var H;(H=this.eR)==null||H.setIcon(Tw5());var t;(t=this.CZ)== null||t.setIcon(this.B.T("delhi_modern_web_player_icons")?XJd():UC());var q;(q=this.Ar)==null||q.setIcon(UC());this.ip.setIcon({L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{"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.Qd.setIcon(FU());this.showVideoInfo.setIcon(krs());this.N(D,"onLoopChange",this.onLoopChange);this.N(D,"videodatachange",this.onVideoDataChange);this.N(D,"fullscreentoggled",function(){gk9(Q)}); this.N(D,"minimized",function(){gk9(Q)}); vkm(this);dco(this,this.B.getVideoData())}; WI=function(D,X){var M=!1;if(D.Ji){var Q=D.Ji.element;Q.value=X;Q.select();try{M=document.execCommand("copy")}catch(h){}}M?D.Vf.Pb():(D.k7.setContent(X,"text"),g.$t(D.Vf,D.jw),L5(D.k7.element),D.Ji&&(D.Ji=null,vkm(D)));return M}; I5W=function(){var D=document.queryCommandSupported&&document.queryCommandSupported("copy");BKi("Chromium")>=43&&(D=!0);BKi("Firefox")<=40&&(D=!1);return D}; gk9=function(D){var X;(X=D.CZ)==null||X.Ew(!D.B.isFullscreen()&&!D.B.isMinimized()&&D.B.getPresentingPlayerType()!==2&&D.B.W().showMiniplayerButton)}; dco=function(D,X){var M=D.B.W(),Q=D.B.getPresentingPlayerType()===2,h=!Q||X.isListed;h=!M.R5&&!!X.videoId&&h;M.playerStyle!=="play"?M="https://support.google.com/youtube/?p=report_playback":(M={contact_type:"playbackissue",html5:1,ei:X.eventId,v:X.videoId,p:"movies_playback"},X.G&&(M.fmt=X.G.itag),X.clientPlaybackNonce&&(M.cpn=X.clientPlaybackNonce),X.partnerId&&(M.partnerid=X.partnerId),M=g.nJ("//support.google.com/googleplay/",M));D.eN.Ew(h&&X.allowEmbed);D.getVideoUrl.Ew(h);D.Yp.Ew(h&&!X.isLivePlayback); D.Qd.setContent(M,"href");var H;(H=D.eR)==null||H.Ew(!X.isLivePlayback&&!Q);gk9(D);var t;(t=D.D9)==null||t.Ew(!Q)}; vkm=function(D){var X=!!D.Ji;g.xa(D.ip,X?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");xk(D.ip,!X);g.xa(D.eN,X?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");xk(D.eN,!X);g.xa(D.getVideoUrl,X?"Copiar URL del video":"Obtener la URL del video");xk(D.getVideoUrl,!X);g.xa(D.Yp,X?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");xk(D.Yp,!X);D.eN.setIcon(X?Won():null);D.getVideoUrl.setIcon(X? VN():null);D.Yp.setIcon(X?VN():null)}; ib2=function(D){return g.eO(D.B.W())?D.D9:D.eR}; Czs=function(D,X){g.VB.call(this,D);this.yF=X;this.G=new g.HE(this);this.J=new g.W5(this.cqj,1E3,this);this.K=this.wI=null;g.p(this,this.G);g.p(this,this.J);X=this.B.W();D.createClientVe(this.element,this,28656);g.hN(this.element,"ytp-contextmenu");this.B.W().experiments.Z4("delhi_modern_web_player")&&g.uS(X)&&g.hN(this.element,"ytp-delhi-modern-contextmenu");okW(this);this.hide()}; okW=function(D){g.RH(D.G);var X=D.B.W();X.playerStyle==="gvn"||X.G||X.OR||(X=D.B.lj(),D.G.N(X,"contextmenu",D.SH5),D.G.N(X,"touchstart",D.onTouchStart,null,!0),D.G.N(X,"touchmove",D.bO,null,!0),D.G.N(X,"touchend",D.bO,null,!0))}; Ob_=function(D){D.B.isFullscreen()?g.db(D.B,D.element,10):D.rC(Ya(D).body)}; Gn=function(D,X,M){M=M===void 0?240:M;g.Y.call(this,{L:"button",gC:["ytp-button","ytp-copylink-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.eO(D.W()))},V:[{L:"div",C:"ytp-copylink-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-copylink-title",Gs:"Copiar v\u00ednculo",Z:{"aria-hidden":"true"}}]});this.api=D;this.S=X;this.G=M;this.visible=!1;this.tooltip=this.S.tR();X=D.W();this.tooltip.element.setAttribute("aria-live", "polite");g.qE(this.element,"ytp-show-copylink-title",g.eO(X));D.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.N(D,"videodatachange",this.C$);this.N(D,"videoplayerreset",this.C$);this.N(D,"appresize",this.C$);this.C$();this.addOnDisposeCallback(g.fS(this.tooltip,this.element))}; pIW=function(D){var X=D.api.W(),M=D.api.getVideoData(),Q=D.api.lj().getPlayerSize().width;X=X.Y;return!!M.videoId&&Q>=D.G&&M.l$&&!M.KK&&!D.api.isEmbedsShortsMode()&&!X}; AQd=function(D){D.updateValue("icon",TB());if(D.api.W().G)D.tooltip.Wc(D.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{D.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");D.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");D.tooltip.qw();D.tooltip.Wc(D.element);var X=D.listen("mouseleave",function(){D.PC(X);D.C$();D.tooltip.dU()})}}; Yed=function(D,X){return g.r(function(M){if(M.S==1)return g.N_(M,2),g.I(M,navigator.clipboard.writeText(X),4);if(M.S!=2)return M.return(!0);g.LG(M);var Q=M.return,h=!1,H=g.m7("TEXTAREA");H.value=X;H.setAttribute("readonly","");var t=D.api.getRootNode();t.appendChild(H);if(lD){var q=window.getSelection();q.removeAllRanges();var w=document.createRange();w.selectNodeContents(H);q.addRange(w);H.setSelectionRange(0,X.length)}else H.select();try{h=document.execCommand("copy")}catch(T){}t.removeChild(H); return Q.call(M,h)})}; l52=function(D){g.Y.call(this,{L:"div",C:"ytp-doubletap-ui-legacy",V:[{L:"div",C:"ytp-doubletap-fast-forward-ve"},{L:"div",C:"ytp-doubletap-rewind-ve"},{L:"div",C:"ytp-doubletap-static-circle",V:[{L:"div",C:"ytp-doubletap-ripple"}]},{L:"div",C:"ytp-doubletap-overlay-a11y"},{L:"div",C:"ytp-doubletap-seek-info-container",V:[{L:"div",C:"ytp-doubletap-arrows-container",V:[{L:"span",C:"ytp-doubletap-base-arrow"},{L:"span",C:"ytp-doubletap-base-arrow"},{L:"span",C:"ytp-doubletap-base-arrow"}]},{L:"div", C:"ytp-doubletap-tooltip",V:[{L:"div",C:"ytp-seek-icon-text-container",V:[{L:"div",C:"ytp-seek-icon",Gs:"{{seekIcon}}"},{L:"div",C:"ytp-chapter-seek-text-legacy",Gs:"{{seekText}}"}]},{L:"div",C:"ytp-doubletap-tooltip-label",Gs:"{{seekTime}}"}]}]}]});this.B=D;this.U=new g.W5(this.show,10,this);this.G=new g.W5(this.hide,700,this);this.X=this.Y=0;this.f$=this.D=!1;this.S=this.h$("ytp-doubletap-static-circle");g.p(this,this.U);g.p(this,this.G);this.hide();this.J=this.h$("ytp-doubletap-fast-forward-ve"); this.K=this.h$("ytp-doubletap-rewind-ve");this.B.createClientVe(this.J,this,28240);this.B.createClientVe(this.K,this,28239);this.B.logVisibility(this.J,!0);this.B.logVisibility(this.K,!0);this.D=D.T("web_show_cumulative_seek_time");this.f$=D.T("web_center_static_circles")}; JQ_=function(D,X){X=g.W9("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:X.toString()});D.updateValue("seekTime",X)}; xcp=function(D){sL.call(this,D,!1,!0);this.sR=[];this.p$=[];this.element.setAttribute("data-overlay-order","9");this.B.T("web_enable_shopping_timely_shelf_client")&&!this.B.T("web_force_featured_product_banner_with_timely_shelf")&&this.badge.element.classList.add("ytp-timely-shelf-present");this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.L$=new g.Y({L:"div",C:"ytp-featured-product-open-in-new"});g.p(this,this.L$);this.countdownTimer=new g.Y({L:"text",C:"ytp-featured-product-countdown", Gs:"{{content}}"});this.countdownTimer.hide();g.p(this,this.countdownTimer);this.Y=new g.Y({L:"div",C:"ytp-featured-product-trending",V:[{L:"div",C:"ytp-featured-product-trending-icon"},{L:"text",C:"ytp-featured-product-trending-text",Gs:"{{trendingOffer}}"}]});this.Y.hide();g.p(this,this.Y);this.overflowButton=new g.Y({L:"button",gC:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.p(this,this.overflowButton);this.X=new g.Y({L:"text",C:"ytp-featured-product-exclusive-countdown", Gs:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.X.hide();g.p(this,this.X);this.D=new g.Y({L:"div",C:"ytp-featured-product-exclusive-container",Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{L:"div",C:"ytp-featured-product-exclusive-badge-container",V:[{L:"div",C:"ytp-featured-product-exclusive-badge",V:[{L:"text",C:"ytp-featured-product-exclusive-badge-text",Gs:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.X]});this.D.hide();g.p(this, this.D);this.banner=new g.Y({L:"a",C:"ytp-featured-product-container",V:[{L:"div",C:"ytp-featured-product-thumbnail",V:[{L:"img",Z:{src:"{{thumbnail}}"}},this.L$]},{L:"div",C:"ytp-featured-product-details",V:[{L:"text",C:"ytp-featured-product-title",Gs:"{{title}}"},this.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",C:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},V:[{L:"text",C:"ytp-featured-product-price-when-promotion-text-enabled", Gs:"{{price}}",Z:{"aria-hidden":"true"}},{L:"text",C:"ytp-featured-product-promotion-text",Gs:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{L:"div",Z:{"aria-label":"{{priceA11yText}}"},V:[{L:"text",C:"ytp-featured-product-price",Gs:"{{price}}",Z:{"aria-hidden":"true"}},{L:"text",C:"ytp-featured-product-sales-original-price",Gs:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{L:"text",C:"ytp-featured-product-price-drop-reference-price",Gs:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]}, this.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{L:"div",C:"ytp-featured-product-when-promotion-text-enabled",V:[{L:"text",C:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Gs:"{{affiliateDisclaimer}}"},this.Y,{L:"text",C:"ytp-featured-product-vendor-when-promotion-text-enabled",Gs:"{{vendor}}"}]}:{L:"div",V:[{L:"text",C:"ytp-featured-product-affiliate-disclaimer",Gs:"{{affiliateDisclaimer}}"},this.B.T("web_player_enable_featured_product_banner_exclusives_on_desktop")? this.D:null,this.Y,{L:"text",C:"ytp-featured-product-vendor",Gs:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.p(this,this.banner);this.banner.rC(this.U.element);this.N(this.B,g.rI("featured_product"),this.ac5);this.N(this.B,g.iB("featured_product"),this.x_);this.N(this.B,"videodatachange",this.onVideoDataChange);this.N(this.overflowButton.element,"click",this.f1);this.N(D,"featuredproductdismissed",this.LH)}; W9s=function(D){var X,M;D=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:M.itemData;var Q,h,H;return(D==null||!D.affiliateDisclaimer)&&(D==null?0:(Q=D.exclusivesData)==null?0:Q.exclusiveOfferLabelText)&&(D==null?0:(h=D.exclusivesData)==null?0:h.expirationTimestampMs)&&(D==null?0:(H=D.exclusivesData)==null?0:H.exclusiveOfferCountdownText)?!0:!1}; zno=function(D){var X,M,Q,h,H=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:(Q=M.itemData)==null?void 0:(h=Q.exclusivesData)==null?void 0:h.expirationTimestampMs;X=(Number(H)-Date.now())/1E3;if(X>0){if(X<604800){var t,q,w,T;M=(t=D.S)==null?void 0:(q=t.bannerData)==null?void 0:(w=q.itemData)==null?void 0:(T=w.exclusivesData)==null?void 0:T.exclusiveOfferCountdownText;if(M!==void 0)for(t=Date.now(),q=g.e(M),w=q.next();!w.done;w=q.next())if(w=w.value,w!==void 0&&w.text!==void 0&&(T=Number(w.textDisplayStartTimestampMs), !isNaN(T)&&t>=T)){w.insertCountdown?(X=w.text.replace(/\$0/,String(ks({seconds:X}))),D.X.setContent(X)):D.X.setContent(w.text);D.X.show();break}}var L,K,a,F;D.D.update({exclusive:(L=D.S)==null?void 0:(K=L.bannerData)==null?void 0:(a=K.itemData)==null?void 0:(F=a.exclusivesData)==null?void 0:F.exclusiveOfferLabelText});D.D.show();zn(D);var V;(V=D.Ky)==null||V.start()}else Gnm(D)}; Gnm=function(D){var X;(X=D.Ky)==null||X.stop();D.X.hide();D.D.hide();kk(D)}; knR=function(D){var X,M,Q=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:M.itemData;return D.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(Q==null||!Q.priceReplacementText)&&(Q==null?0:Q.promotionText)?Q==null?void 0:Q.promotionText.content:null}; uxi=function(D){var X,M,Q=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:M.itemData,h,H;if(!(Q!=null&&Q.priceReplacementText||D.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(Q==null?0:(h=Q.dealsData)==null?0:(H=h.sales)==null?0:H.originalPrice)){var t,q;return Q==null?void 0:(t=Q.dealsData)==null?void 0:(q=t.sales)==null?void 0:q.originalPrice}return null}; jF9=function(D){var X,M,Q=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:M.itemData,h,H,t,q;if(!((Q==null?0:Q.priceReplacementText)||D.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(Q==null?0:(h=Q.dealsData)==null?0:(H=h.sales)==null?0:H.originalPrice))&&(Q==null?0:(t=Q.dealsData)==null?0:(q=t.priceDrop)==null?0:q.referencePrice)){var w,T;return Q==null?void 0:(w=Q.dealsData)==null?void 0:(T=w.priceDrop)==null?void 0:T.referencePrice}return null}; DP_=function(D){var X,M,Q=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:M.itemData;if(Q==null?0:Q.priceReplacementText)return Q==null?void 0:Q.priceReplacementText;if((Q==null?0:Q.promotionText)&&D.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var h;return(Q==null?void 0:Q.price)+" "+(Q==null?void 0:(h=Q.promotionText)==null?void 0:h.content)}var H,t;if(Q==null?0:(H=Q.dealsData)==null?0:(t=H.sales)==null?0:t.originalPrice){var q,w;return Q==null?void 0:(q=Q.dealsData)== null?void 0:(w=q.sales)==null?void 0:w.salesPriceAccessibilityLabel}var T,L;if(Q==null?0:(T=Q.dealsData)==null?0:(L=T.priceDrop)==null?0:L.referencePrice){var K,a;return(Q==null?void 0:Q.price)+" "+(Q==null?void 0:(K=Q.dealsData)==null?void 0:(a=K.priceDrop)==null?void 0:a.referencePrice)}return Q==null?void 0:Q.price}; Xmo=function(D){if(D.B.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var X,M,Q;return D.Y.Gm?null:(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:(Q=M.itemData)==null?void 0:Q.vendorName}var h,H,t,q,w,T;return D.Y.Gm||D.D.Gm||((h=D.S)==null?0:(H=h.bannerData)==null?0:(t=H.itemData)==null?0:t.affiliateDisclaimer)?null:(q=D.S)==null?void 0:(w=q.bannerData)==null?void 0:(T=w.itemData)==null?void 0:T.vendorName}; QZn=function(D,X){uz(D);if(X){var M=g.tu.getState().entities;M=Oq(M,"featuredProductsEntity",X);if(M!=null&&M.productsData){X=[];M=g.e(M.productsData);for(var Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=void 0;if((h=Q)!=null&&h.identifier&&Q.featuredSegments){D.sR.push(Q);var H=void 0;h=g.e((H=Q)==null?void 0:H.featuredSegments);for(H=h.next();!H.done;H=h.next()){var t=H.value;H=Mr5(t.startTimeSec);H!==void 0&&(t=Mr5(t.endTimeSec),X.push(new g.v9(H*1E3,t===void 0?0x7ffffffffffff:t*1E3,{id:Q.identifier, namespace:"featured_product"})))}}}D.B.lH(X)}}}; kk=function(D){if(D.trendingOfferEntityKey){var X=g.tu.getState().entities;if(X=Oq(X,"trendingOfferEntity",D.trendingOfferEntityKey)){var M,Q,h;X.encodedSkuId!==((M=D.S)==null?void 0:(Q=M.bannerData)==null?void 0:(h=Q.itemData)==null?void 0:h.encodedOfferSkuId)?zn(D):(D.Y.update({trendingOffer:X.shortLabel+" \u2022 "+X.countLabel}),D.Y.show(),D.banner.update({vendor:Xmo(D)}))}else zn(D)}else zn(D)}; zn=function(D){D.Y.hide();D.banner.update({vendor:Xmo(D)})}; uz=function(D){D.sR=[];D.x_();D.B.HD("featured_product")}; hD_=function(D){var X,M,Q,h,H=(X=D.S)==null?void 0:(M=X.bannerData)==null?void 0:(Q=M.itemData)==null?void 0:(h=Q.hiddenProductOptions)==null?void 0:h.dropTimestampMs;X=(Number(H)-Date.now())/1E3;D.countdownTimer.setContent(ks({seconds:X}));if(X>0){var t;(t=D.J5)==null||t.start()}}; HNs=function(D){var X;(X=D.J5)==null||X.stop();D.countdownTimer.hide()}; Mr5=function(D){if(D!==void 0&&D.trim()!==""&&(D=Math.trunc(Number(D.trim())),!(isNaN(D)||D<0)))return D}; sZ1=function(D,X,M){g.Y.call(this,{L:"div",gC:["ytp-info-panel-action-item"],V:[{L:"div",C:"ytp-info-panel-action-item-disclaimer",Gs:"{{disclaimer}}"},{L:"a",gC:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{L:"div",C:"ytp-info-panel-action-item-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-info-panel-action-item-label",Gs:"{{label}}"}]}]});this.B=D;this.G=M;this.disclaimer=this.h$("ytp-info-panel-action-item-disclaimer");this.button= this.h$("ytp-info-panel-action-item-button");this.X8=!1;this.B.createServerVe(this.element,this,!0);this.listen("click",this.onClick);D="";M=g.Z(X==null?void 0:X.onTap,nj);var Q=g.Z(M,g.IU);this.X8=!1;Q?(D=Q.url||"",D.startsWith("//")&&(D="https:"+D),this.X8=!0,g.PH(this.button,g.Eo(D))):(Q=g.Z(M,tri))&&!this.G?((D=Q.phoneNumbers)&&D.length>0?(D="sms:"+D[0],Q.messageText&&(D+="?&body="+encodeURI(Q.messageText))):D="",this.X8=!0,g.PH(this.button,g.Eo(D,[NU2]))):(M=g.Z(M,qQs))&&!this.G&&(D=M.phoneNumber? "tel:"+M.phoneNumber:"",this.X8=!0,g.PH(this.button,g.Eo(D,[wmR])));this.B.T("embeds_enable_info_panel_dismissal")&&!D&&(M=g.Z(X==null?void 0:X.onTap,nj),Q=g.Z(M,TU2))&&(this.X8=!0,this.S=M,this.feedbackToken=Q.feedbackToken);var h;if(M=(h=X.disclaimerText)==null?void 0:h.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var H,t;this.update({label:(H=X.bodyText)==null?void 0:H.content,icon:this.B.T("embeds_enable_info_panel_dismissal")?L5H((t=X.icon)== null?void 0:t.iconType):Zq(),disclaimer:M})}else{this.disclaimer.style.display="none";var q,w;this.update({label:(q=X.bodyText)==null?void 0:q.content,icon:this.B.T("embeds_enable_info_panel_dismissal")?L5H((w=X.icon)==null?void 0:w.iconType):Zq()})}this.B.setTrackingParams(this.element,X.trackingParams||null);this.X8&&(this.Y={externalLinkData:{url:D}})}; L5H=function(D){switch(D){case "OPEN_IN_NEW":return Zq();case "NOT_INTERESTED":return{L:"svg",Z:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return FU();default:return Zq()}}; K52=function(D,X){var M=XU();g.Ab.call(this,D,{L:"div",C:"ytp-info-panel-detail-skrim",V:[{L:"div",C:"ytp-info-panel-detail",Z:{role:"dialog",id:M},V:[{L:"div",C:"ytp-info-panel-detail-header",V:[{L:"div",C:"ytp-info-panel-detail-title",Gs:"{{title}}"},{L:"button",gC:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"Cerrar"},V:[g.KO()]}]},{L:"div",C:"ytp-info-panel-detail-body",Gs:"{{body}}"},{L:"div",C:"ytp-info-panel-detail-items"}]}]},250);var Q=this;this.S=X;this.items=this.h$("ytp-info-panel-detail-items"); this.G=new g.HE(this);this.itemData=[];this.Y=M;this.N(this.h$("ytp-info-panel-detail-close"),"click",this.Pb);this.N(this.h$("ytp-info-panel-detail-skrim"),"click",this.Pb);this.N(this.h$("ytp-info-panel-detail"),"click",function(h){h.stopPropagation()}); this.N(this.B,"infopaneldetaildismissed",function(){D.T("embeds_enable_info_panel_dismissal")&&Q.Pb()}); g.p(this,this.G);this.B.createServerVe(this.element,this,!0);this.N(D,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",D.getVideoData());this.hide()}; an5=function(D,X){D=g.e(D.itemData);for(var M=D.next();!M.done;M=D.next())M=M.value,M.B.logVisibility(M.element,X)}; $PR=function(D,X){g.Y.call(this,{L:"button",C:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":X.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.eO(D.W()))},V:[{L:"div",C:"ytp-info-panel-preview-text",Gs:"{{text}}"},{L:"div",C:"ytp-info-panel-preview-chevron",Gs:"{{chevron}}"}]});var M=this;this.B=D;this.mj=this.S=this.videoId=null;this.isDismissed=this.Y=this.showControls=this.G=!1;this.N(this.element,"click",function(){D.logClick(M.element);D.Vn(); lR(X)}); this.fade=new g.kn(this,250,!1,100);g.p(this,this.fade);this.B.createServerVe(this.element,this,!0);this.N(D,"videodatachange",this.onVideoDataChange);this.N(D,"presentingplayerstatechange",this.Gv);this.N(this.B,"paidcontentoverlayvisibilitychange",this.N_);this.N(this.B,"infopaneldetailvisibilitychange",this.N_);var Q=D.getVideoData()||{};F5d(Q)&&VrH(this,Q);this.N(D,"onShowControls",this.Rm);this.N(D,"onHideControls",this.S7);this.N(this.B,"infopaneldetaildismissed",function(){D.T("embeds_enable_info_panel_dismissal")&& (M.isDismissed=!0,M.hide())})}; VrH=function(D,X){if(!X.Ds||!D.B.FO()){var M=X.O$||1E4,Q=F5d(X);D.S?X.videoId&&X.videoId!==D.videoId&&(g.km(D.S),D.videoId=X.videoId,Q?(BUR(D,M,X),D.vC()):(D.Pb(),D.S.dispose(),D.S=null)):Q&&(X.videoId&&(D.videoId=X.videoId),BUR(D,M,X),D.vC())}}; F5d=function(D){var X,M,Q,h;return!!((X=D.qj)==null?0:(M=X.title)==null?0:M.content)||!!((Q=D.qj)==null?0:(h=Q.bodyText)==null?0:h.content)}; BUR=function(D,X,M){D.S&&D.S.dispose();D.S=new g.W5(D.xW5,X,D);g.p(D,D.S);var Q;X=((Q=M.qj)==null?void 0:Q.trackingParams)||null;D.B.setTrackingParams(D.element,X);var h;var H,t;if(M==null?0:(H=M.qj)==null?0:(t=H.title)==null?0:t.content){var q;Q=(h=M.qj)==null?void 0:(q=h.title)==null?void 0:q.content;var w,T;if((w=M.qj)==null?0:(T=w.bodyText)==null?0:T.content)Q+=" \u2022 ";h=Q}else h="";var L,K;M=((L=M.qj)==null?void 0:(K=L.bodyText)==null?void 0:K.content)||"";D.update({text:h+M,chevron:g.sC()})}; ZN2=function(D,X){D.S&&(g.x(X,8)?(D.G=!0,D.vC(),D.S.start()):(g.x(X,2)||g.x(X,64))&&D.videoId&&(D.videoId=null))}; jS=function(D){var X=null;try{X=D.toLocaleString("es-419",{style:"percent"})}catch(M){X=D.toLocaleString(void 0,{style:"percent"})}return X}; Dn=function(D,X){var M=0;D=g.e(D);for(var Q=D.next();!(Q.done||Q.value.startTime>X);Q=D.next())M++;return M===0?M:M-1}; UPs=function(D,X){for(var M=0,Q=g.e(D),h=Q.next();!h.done;h=Q.next()){h=h.value;if(X=h.timeRangeStartMillis&&X2147483647?"0":String(D)}; MP=function(D,X,M){var Q=D.api.getCurrentTime(),h=PKW(D,Q);D=PKW(D,Q+X);return{startMediaTimeMs:h,endMediaTimeMs:D,seekSource:M}}; mPW=function(D){var X,M=(X=D.api.getVideoData())==null?void 0:X.gp();return D.api.getPresentingPlayerType(M)!==2}; XG=function(D,X){D.Y.SP=X;g.qE(D.api.getRootNode(),"ytp-probably-keyboard-focus",X);g.qE(D.contextMenu.element,"ytp-probably-keyboard-focus",X)}; hE=function(D,X,M,Q){var h=g.Vp(D.api.Qq());if(h&&h.loaded){var H=D.api.getSubtitlesUserSettings();h=void 0;for(var t=0;t0?X[0]:null;var M=g.cD("ytp-chrome-bottom"),Q=g.cD("ytp-ad-module");D.Y=!(M==null||!M.contains(X));D.X=!(Q==null||!Q.contains(X));D.J=!(X==null||!X.hasAttribute("data-tooltip-target-fixed"));return X}; iN1=function(D,X,M){if(!D.U){if(X){D.tooltipRenderer=X;X=D.tooltipRenderer.text;var Q=!1,h;(X==null?0:(h=X.runs)==null?0:h.length)&&X.runs[0].text&&(D.update({title:X.runs[0].text.toString()}),Q=!0);g.V_(D.title,Q);X=D.tooltipRenderer.detailsText;h=!1;var H;if((X==null?0:(H=X.runs)==null?0:H.length)&&X.runs[0].text){Q=X.runs[0].text.toString();H=Q.indexOf("$TARGET_ICON");if(H>-1)if(D.tooltipRenderer.targetId){X=[];Q=Q.split("$TARGET_ICON");var t=new g.M1({L:"span",C:"ytp-promotooltip-details-icon", V:[dP1[D.tooltipRenderer.targetId]]});g.p(D,t);for(var q=[],w=g.e(Q),T=w.next();!T.done;T=w.next())T=new g.M1({L:"span",C:"ytp-promotooltip-details-component",Gs:T.value}),g.p(D,T),q.push(T);Q.length===2?(X.push(q[0].element),X.push(t.element),X.push(q[1].element)):Q.length===1&&(H===0?(X.push(t.element),X.push(q[0].element)):(X.push(q[0].element),X.push(t.element)));H=X.length?X:null}else H=null;else H=Q;if(H){if(typeof H!=="string")for(g.Ru(D.details),h=g.e(H),H=h.next();!H.done;H=h.next())D.details.appendChild(H.value); else D.update({details:H});h=!0}}g.V_(D.details,h);h=D.tooltipRenderer.acceptButton;H=!1;var L,K,a;((L=g.Z(h,g.$w))==null?0:(K=L.text)==null?0:(a=K.runs)==null?0:a.length)&&g.Z(h,g.$w).text.runs[0].text&&(D.update({acceptButtonText:g.Z(h,g.$w).text.runs[0].text.toString()}),H=!0);g.V_(D.acceptButton,H);L=D.tooltipRenderer.dismissButton;K=!1;var F,V,c;((F=g.Z(L,g.$w))==null?0:(V=F.text)==null?0:(c=V.runs)==null?0:c.length)&&g.Z(L,g.$w).text.runs[0].text&&(D.update({dismissButtonText:g.Z(L,g.$w).text.runs[0].text.toString()}), K=!0);g.V_(D.dismissButton,K)}M&&(D.sourceElement=M);D.S=vos(D);D.D=!1;D.B.W().T("web_player_hide_nitrate_promo_tooltip")||D.Ew(!0);rEH(D);D.Gm&&!D.K&&(D.K=!0,D.py.Ap(0));D.G&&D.B.logVisibility(D.element,D.Gm)}}; NP=function(D){D.Ew(!1);D.G&&D.B.logVisibility(D.element,D.Gm)}; oo1=function(D){var X,M,Q,h=((X=g.Z(D.acceptButton,g.$w))==null?void 0:(M=X.text)==null?void 0:(Q=M.runs)==null?void 0:Q.length)&&!!g.Z(D.acceptButton,g.$w).text.runs[0].text,H,t,q;X=((H=g.Z(D.dismissButton,g.$w))==null?void 0:(t=H.text)==null?void 0:(q=t.runs)==null?void 0:q.length)&&!!g.Z(D.dismissButton,g.$w).text.runs[0].text;return h||X}; rEH=function(D){var X;if(!(X=!D.S)){X=D.S;var M=window.getComputedStyle(X);X=M.display==="none"||M.visibility==="hidden"||X.getAttribute("aria-hidden")==="true"}if(X||D.B.isMinimized())D.Ew(!1);else if(X=g.Ft(D.S),X.width&&X.height){D.B.D7(D.element,D.S);var Q=D.B.lj().getPlayerSize().height;M=g.Ft(D.h$("ytp-promotooltip-container")).height;D.Y?D.element.style.top=Q-M-X.height-12+"px":D.J||(Q=D.B.WL().height-M-X.height-12,D.element.style.top=Q+"px");Q=D.h$("ytp-promotooltip-pointer");var h=g.K7(D.S, D.B.getRootNode()),H=Number(D.element.style.left.replace(/[^\d\.]/g,""));D=D.B.isFullscreen()?18:12;Q.style.left=h.x-H+X.width/2-D+"px";Q.style.top=M+"px"}else D.Ew(!1)}; qP=function(D){g.Y.call(this,{L:"button",gC:["ytp-replay-button","ytp-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},V:[g.S7()]});this.B=D;this.N(D,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.cC(D.getPlayerStateObject());EI(this.B,this.element,this)}; wU=function(D,X){X=X===void 0?240:X;g.Y.call(this,{L:"button",gC:["ytp-button","ytp-search-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.eO(D.W()))},V:[{L:"div",C:"ytp-search-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-search-title",Gs:"Buscar"}]});this.api=D;this.G=X;this.visible=!1;this.updateValue("icon",{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{L:"path",C:"ytp-svg-fill",Z:{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"}}]}); D.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.S();this.N(D,"appresize",this.S);this.N(D,"videodatachange",this.S);EI(D,this.element,this)}; Tf=function(D){g.Y.call(this,{L:"div",C:"ytp-seek-overlay",V:[{L:"div",gC:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{L:"div",gC:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{L:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{L:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{L:"div",C:"ytp-seek-overlay-duration",Gs:"{{durationBack}}"}]},{L:"div",gC:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],V:[{L:"div",C:"ytp-seek-overlay-duration",Gs:"{{durationForward}}"},{L:"div",gC:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{L:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{L:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{L:"div",C:"ytp-seek-overlay-message",V:[{L:"div",C:"ytp-seek-overlay-message-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-seek-overlay-message-text", Gs:"{{text}}"}]}]});var X=this;this.B=D;this.D=0;this.S="hidden";this.J=this.h$("ytp-seek-overlay-animation-back");this.K=this.h$("ytp-seek-overlay-animation-forward");this.f$=this.h$("ytp-seek-overlay-message");this.X=new g.W5(function(){CK2(X)},g.lx(this.B.W().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.p(this,this.X);this.B.createClientVe(this.K,this,28240);this.B.createClientVe(this.J,this,28239);this.B.logVisibility(this.K,!0);this.B.logVisibility(this.J,!0);this.hide()}; ON2=function(D,X){D.Y=D.U.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:X},{offset:1,opacity:1}],{duration:200,fill:"forwards"});D.Y.addEventListener("finish",function(){D.Y=void 0;D.X.start();D.S="lingering"})}; pmn=function(D,X,M,Q){M=M===void 0?!1:M;Q=Q===void 0?!1:Q;var h=[];h.push({offset:0,transform:"translateX("+(D.G===-1?20:-20)+"px)",opacity:M?"0":"1"});M&&h.push({offset:.5,opacity:"1"});h.push({offset:1,transform:"translateX(0)",opacity:"1"});M=X.animate(h,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});X=X.querySelector("path");h=[];var H={offset:0,d:D.G===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};Q&&(H.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");h.push(H); Q&&h.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});D={offset:1,d:D.G===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};Q&&(D.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");h.push(D);X.animate(h,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return M}; AE5=function(D){var X=D.U.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);X.classList.add("ytp-seek-overlay-arrow-additional");X.classList.remove("ytp-seek-overlay-arrow-persistent");D.U.appendChild(X);pmn(D,X,!0,!0).addEventListener("finish",function(){X.remove()})}; CK2=function(D,X,M){M=M===void 0?!0:M;D.Y=D.U.animate([{offset:0,opacity:X===void 0?1:X},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});M&&(D.Y.addEventListener("finish",function(){D.Y=void 0;YQs(D);D.hide()}),D.S="fading-out")}; lno=function(D){var X=Number(getComputedStyle(D.U).opacity),M;(M=D.Y)==null||M.cancel();D.Y=void 0;return X}; YQs=function(D){D.D=0;D.S="hidden";D.G=void 0;D.U=void 0;D.X.stop();D.Y=void 0}; JEp=function(D,X,M){D.updateValue("text",X);if(M){a:{switch(M){case "PREMIUM_STANDALONE":X=Nws();break a;case "PREMIUM_STANDALONE_CAIRO":X=q0p();break a}X=void 0}D.updateValue("icon",X)}X=g.e(D.f$.getAnimations());for(M=X.next();!M.done;M=X.next())M.value.cancel();D.f$.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){D.updateValue("text","");D.updateValue("icon","")})}; LN=function(D,X,M,Q){Q=Q===void 0?240:Q;g.Y.call(this,{L:"button",gC:["ytp-button","ytp-share-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":M.element.id,"data-tooltip-opaque":String(g.eO(D.W()))},V:[{L:"div",C:"ytp-share-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-share-title",Gs:"Compartir"}]});this.api=D;this.S=X;this.G=M;this.Y=Q;this.visible=!1;this.tooltip=this.S.tR();D.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.N(D,"videodatachange",this.C$);this.N(D,"videoplayerreset",this.C$);this.N(D,"appresize",this.C$);this.N(D,"presentingplayerstatechange",this.C$);this.C$();this.addOnDisposeCallback(g.fS(this.tooltip,this.element))}; xPW=function(D){var X=D.api.W(),M=D.api.getVideoData(),Q=g.eO(X)&&g.R8(D.api)&&g.x(D.api.getPlayerStateObject(),128);X=X.Y||X.disableSharing&&D.api.getPresentingPlayerType()!==2||!M.showShareButton||M.l$||Q||M.KK||!1;Q=D.api.lj().getPlayerSize().width;return!!M.videoId&&Q>=D.Y&&!X}; W5_=function(D,X){X.name!=="InvalidStateError"&&X.name!=="AbortError"&&(X.name==="NotAllowedError"?(D.S.Vn(),lR(D.G,D.element,!1)):g.ET(X))}; zDs=function(D,X){var M=XU(),Q=D.W();M={L:"div",C:"ytp-share-panel",Z:{id:XU(),role:"dialog","aria-labelledby":M},V:[{L:"div",C:"ytp-share-panel-inner-content",V:[{L:"div",C:"ytp-share-panel-title",Z:{id:M},Gs:"Compartir"},{L:"a",gC:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:Q.eH,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},Gs:"{{linkText}}"},{L:"label",C:"ytp-share-panel-include-playlist",V:[{L:"input",C:"ytp-share-panel-include-playlist-checkbox", Z:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{L:"div",C:"ytp-share-panel-loading-spinner",V:[T6()]},{L:"div",C:"ytp-share-panel-service-buttons",Gs:"{{buttons}}"},{L:"div",C:"ytp-share-panel-error",Gs:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{L:"button",gC:["ytp-share-panel-close","ytp-button"],Z:{title:"Cerrar"},V:[g.KO()]}]};g.Ab.call(this,D,M,250);var h=this;this.moreButton=null;this.api=D;this.tooltip=X.tR();this.G=[];this.U= this.h$("ytp-share-panel-inner-content");this.closeButton=this.h$("ytp-share-panel-close");this.N(this.closeButton,"click",this.Pb);this.addOnDisposeCallback(g.fS(this.tooltip,this.closeButton));this.Y=this.h$("ytp-share-panel-include-playlist-checkbox");this.N(this.Y,"click",this.C$);this.S=this.h$("ytp-share-panel-link");this.addOnDisposeCallback(g.fS(this.tooltip,this.S));this.api.createClientVe(this.S,this,164503);this.N(this.S,"click",function(H){H.preventDefault();h.api.logClick(h.S);var t= h.api.getVideoUrl(!0,!0,!1,!1);t=Gf2(h,t);g.qW(t,h.api,H)&&h.api.ER("SHARE_CLICKED")}); this.listen("click",this.bb);this.N(D,"videoplayerreset",this.hide);this.N(D,"fullscreentoggled",this.onFullscreenToggled);this.N(D,"onLoopRangeChange",this.Gmf);this.hide()}; jZs=function(D,X){kfm(D);for(var M=X.links||X.shareTargets,Q=0,h={},H=0;H0&&!A&&!v?(R.length===2&&(R=["noreferrer"]),g.R6(F,c,a,R[0]),F=Iip()):(S=n.join(","),kZ()&&F.navigator&&F.navigator.standalone&&a&&a!="_self"?(S=g.m7("A"),g.PH(S,c),S.target=a,b&&(S.rel="noreferrer"),((V=V.attributionsrc)||V==="")&&S.setAttribute("attributionsrc",V),V=document.createEvent("MouseEvent"), V.initMouseEvent("click",!0,!0,F,1),S.dispatchEvent(V),F=Iip()):b?(F=g.R6(F,"",a,S),V=g.cH(c),F&&(F.opener=null,V===""&&(V="javascript:''"),V='',V=b7(V),(c=F.document)&&c.write&&(c.write(eX(V)),c.close()))):((F=g.R6(F,c,a,S))&&V.noopener&&(F.opener=null),F&&V.noreferrer&&(F.opener=null)));F&&(F.opener||(F.opener=window),F.focus());K.preventDefault()}}}(h)); h.Ui.addOnDisposeCallback(g.fS(D.tooltip,h.Ui.element));q==="Facebook"?D.api.createClientVe(h.Ui.element,h.Ui,164504):q==="Twitter"&&D.api.createClientVe(h.Ui.element,h.Ui,164505);D.N(h.Ui.element,"click",function(L){return function(){D.api.logClick(L.Ui.element)}}(h)); D.api.logVisibility(h.Ui.element,!0);D.G.push(h.Ui);Q++}}var w=X.more||X.moreLink,T=new g.Y({L:"a",gC:["ytp-share-panel-service-button","ytp-button"],V:[{L:"span",C:"ytp-share-panel-service-button-more",V:[{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{L:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{L:"path",Z:{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"}}]}]}],Z:{href:w,target:"_blank",title:"M\u00e1s"}});T.listen("click",function(L){var K=w;D.api.logClick(D.moreButton.element);K=Gf2(D,K);g.qW(K,D.api,L)&&D.api.ER("SHARE_CLICKED")}); T.addOnDisposeCallback(g.fS(D.tooltip,T.element));D.api.createClientVe(T.element,T,164506);D.N(T.element,"click",function(){D.api.logClick(T.element)}); D.api.logVisibility(T.element,!0);D.G.push(T);D.moreButton=T;D.updateValue("buttons",D.G)}; Gf2=function(D,X){var M={};g.eO(D.api.W())&&(g.LS(D.api,"addEmbedsConversionTrackingParams",[M]),X=g.nJ(X,M));return X}; kfm=function(D){for(var X=g.e(D.G),M=X.next();!M.done;M=X.next())M=M.value,M.detach(),g.Kp(M);D.G=[]}; sQ=function(D){return D===void 0||D.startSec===void 0||D.endSec===void 0?!1:!0}; DjW=function(D,X){D.startSec+=X;D.endSec+=X}; MBm=function(D){sL.call(this,D);this.Y=this.S=this.isContentForward=this.X=!1;this.element.setAttribute("data-overlay-order","8");X_H(this);this.N(this.B,"changeProductsInVideoVisibility",this.O6j);this.N(this.B,"videodatachange",this.onVideoDataChange)}; Qlm=function(D){D.D&&D.M5.element.removeChild(D.D.element);D.D=void 0}; H$n=function(D,X){return X.map(function(M){var Q,h;if((M=(Q=g.Z(M,hVi))==null?void 0:(h=Q.thumbnail)==null?void 0:h.thumbnails)&&M.length!==0)return M[0].url}).filter(function(M){return M!==void 0}).map(function(M){M=new g.Y({L:"img", C:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:M}});g.p(D,M);return M})}; tBR=function(D,X){D.isContentForward=X;g.qE(D.badge.element,"ytp-suggested-action-badge-content-forward",X)}; KN=function(D){var X=D.isContentForward&&!D.yK();g.qE(D.badge.element,"ytp-suggested-action-badge-preview-collapsed",X&&D.S);g.qE(D.badge.element,"ytp-suggested-action-badge-preview-expanded",X&&D.Y)}; aZ=function(D,X,M){return new g.v9(D*1E3,X*1E3,{priority:9,namespace:M})}; N7H=function(D){D.B.HD("shopping_overlay_visible");D.B.HD("shopping_overlay_preview_collapsed");D.B.HD("shopping_overlay_preview_expanded");D.B.HD("shopping_overlay_expanded")}; X_H=function(D){D.N(D.B,g.rI("shopping_overlay_visible"),function(){D.a6(!0)}); D.N(D.B,g.iB("shopping_overlay_visible"),function(){D.a6(!1)}); D.N(D.B,g.rI("shopping_overlay_expanded"),function(){D.R5=!0;LU(D)}); D.N(D.B,g.iB("shopping_overlay_expanded"),function(){D.R5=!1;LU(D)}); D.N(D.B,g.rI("shopping_overlay_preview_collapsed"),function(){D.S=!0;KN(D)}); D.N(D.B,g.iB("shopping_overlay_preview_collapsed"),function(){D.S=!1;KN(D)}); D.N(D.B,g.rI("shopping_overlay_preview_expanded"),function(){D.Y=!0;KN(D)}); D.N(D.B,g.iB("shopping_overlay_preview_expanded"),function(){D.Y=!1;KN(D)})}; T7p=function(D){g.Y.call(this,{L:"div",C:"ytp-shorts-title-channel",V:[{L:"a",C:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:D.W().eH,"aria-label":"{{channelLogoLabel}}"}},{L:"div",C:"ytp-shorts-title-expanded-heading",V:[{L:"div",C:"ytp-shorts-title-expanded-title",V:[{L:"a",Gs:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:D.W().eH,tabIndex:"0"}}]}]}]});var X=this;this.api=D;this.S=this.h$("ytp-shorts-title-channel-logo");this.channelName=this.h$("ytp-shorts-title-expanded-title"); this.subscribeButton=null;D.createClientVe(this.S,this,36925);this.N(this.S,"click",function(M){X.api.logClick(X.S);g.R6(window,qJW(X));M.preventDefault()}); D.createClientVe(this.channelName,this,37220);this.N(this.channelName,"click",function(M){X.api.logClick(X.channelName);g.R6(window,qJW(X));M.preventDefault()}); w_9(this);this.N(D,"videodatachange",this.C$);this.N(D,"videoplayerreset",this.C$);this.C$()}; w_9=function(D){if(!D.api.W().Mj){var X=D.api.getVideoData(),M=new g.lz("Suscribirse",null,"Suscrito/a",null,!0,!1,X.uI,X.subscribed,"channel_avatar",null,D.api,!0);D.api.createServerVe(M.element,D);var Q;D.api.setTrackingParams(M.element,((Q=X.subscribeButtonRenderer)==null?void 0:Q.trackingParams)||null);D.N(M.element,"click",function(){D.api.logClick(M.element)}); D.subscribeButton=M;g.p(D,D.subscribeButton);D.subscribeButton.rC(D.element)}}; qJW=function(D){var X=D.api.W(),M=D.api.getVideoData();M=g.tR(X)+M.yf;if(!g.eO(X))return M;X={};g.LS(D.api,"addEmbedsConversionTrackingParams",[X]);return g.nJ(M,X)}; FG=function(D){g.Ab.call(this,D,{L:"button",gC:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{L:"div",C:"ytp-skip-intro-button-text",Gs:"Omitir introducci\u00f3n"}]},100);var X=this;this.G=!1;this.S=new g.W5(function(){X.hide()},5E3); this.mp=this.gD=NaN;g.p(this,this.S);this.J=function(){X.show()}; this.U=function(){X.hide()}; this.Y=function(){var M=X.B.getCurrentTime();M>X.gD/1E3&&M0?{L:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{L:"path",gC:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}}, {L:"text",gC:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{L:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{L:"path",gC:["ytp-circle-arrow","ytp-svg-fill"],Z:{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"}}, {L:"text",gC:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});var M=this;this.B=D;this.S=X;this.G=new g.W5(function(){M.Y?(M.Y=!1,M.G.start()):M.element.classList.remove("ytp-jump-spin","backwards")},250); this.Y=!1;(X=X>0)?this.B.createClientVe(this.element,this,36843):this.B.createClientVe(this.element,this,36844);var Q=g.W9(X?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.S).toString()});this.B.T("player_tooltip_data_title_killswitch")?this.update({title:Q,"data-title-no-tooltip":Q,"aria-keyshortcuts":X?"\u2192":"\u2190"}):this.update({"tooltip-title":Q,"data-title-no-tooltip":Q,"aria-keyshortcuts":X?"\u2192":"\u2190"});this.U=this.element.querySelector(".ytp-jump-button-text"); this.U.textContent=Math.abs(this.S).toString();this.listen("click",this.onClick,this);EI(D,this.element,this)}; B7p=function(D,X){X?D.element.classList.add("ytp-jump-button-enabled"):D.element.classList.remove("ytp-jump-button-enabled");D.B.logVisibility(D.element,X);D.B.qw()}; fN=function(D,X){$o.call(this,D,X,"timedMarkerCueRange","Ver momentos clave");this.N(D,g.iB("timedMarkerCueRange"),this.Ja);this.N(D,"updatemarkervisibility",this.updateVideoData)}; Z$d=function(D){var X,M=(X=D.B.getVideoData())==null?void 0:X.M5;if(M)for(D=D.U.t$,M=g.e(M),X=M.next();!X.done;X=M.next())if(X=D[X.value]){var Q=void 0,h=void 0,H=void 0;if(((Q=X.onTap)==null?void 0:(h=Q.innertubeCommand)==null?void 0:(H=h.changeEngagementPanelVisibilityAction)==null?void 0:H.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return X}}; Sr=function(D){g.Y.call(this,{L:"button",gC:["ytp-miniplayer-button","ytp-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:["{{icon}}"]});this.B=D;this.visible=!1;this.listen("click",this.onClick);this.N(D,"fullscreentoggled",this.C$);this.B.T("player_tooltip_data_title_killswitch")? this.update({title:g.PB(D,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:Ujm(this)}):this.update({"tooltip-title":g.PB(D,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:Ujm(this)});EI(D,this.element,this);D.createClientVe(this.element,this,62946);this.C$()}; Ujm=function(D){return D.B.T("delhi_modern_web_player_icons")?XJd():UC()}; EQ=function(D,X,M,Q,h,H){H=H===void 0?!1:H;var t={L:"div",gC:["ytp-input-slider-section"],V:[{L:"input",C:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};h&&t.V.unshift(h);H&&t.gC.push("ytp-vertical-slider");g.Y.call(this,t);this.Y=D;this.D=X;this.J=M;this.initialValue=Q;this.header=h;this.G=this.h$("ytp-input-slider"); this.S=Q?Q:D;this.init();this.N(this.G,"input",this.U);this.N(this.G,"keydown",this.X)}; yU=function(D,X){D.S=X;D.update({slidervalue:D.S,ariaValueNow:D.S});D.G.valueAsNumber=D.S;c$o(D,X)}; c$o=function(D,X){D.G.style.setProperty("--yt-slider-shape-gradient-percent",(X-D.Y)/(D.D-D.Y)*100+"%")}; Pm=function(D){var X=D.isMuted()?0:D.getVolume();EQ.call(this,0,100,1,X,void 0,!0);this.B=D;this.f$=GK(this.a5,10,this);this.K=!1;this.N(D,"onVolumeChange",this.onVolumeChange);this.N(this.element,"wheel",this.R5)}; fM_=function(D,X){g.Y.call(this,{L:"div",Z:{tabindex:"0",title:D.T("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},gC:["ytp-volume-popover"]});var M=this;this.isVisible=!1;this.tooltip=X.tR();this.G=new Pm(D);g.p(this,this.G);this.G.rC(this.element);this.S=new g.W5(function(){m5(M,!1)},300); this.listen("mouseenter",function(){M.S.stop()}); this.listen("mouseleave",function(){M.S.start()}); this.listen("focus",function(){M.S.stop()}); this.N(this.G.G,"focus",function(){M.S.stop()}); this.listen("focusout",function(){M.S.start();M.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.fS(X.tR(),this.element));g.p(this,this.S)}; m5=function(D,X){D.element.classList.toggle("ytp-volume-popover-hovering",X);D.isVisible=X;(D=D.element.closest(".ytp-chrome-bottom"))&&D.classList.toggle("ytp-volume-popover-showing",X)}; nN=function(D,X,M){M=M===void 0?!1:M;var Q=D.W().M5?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:D.T("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};Q=D.T("delhi_modern_web_player")?{L:"div",C:"ytp-mute-button",V:[{L:"button",Z:Q,gC:["ytp-volume-icon", "ytp-button"],Gs:"{{icon}}"}]}:{L:"button",gC:["ytp-mute-button","ytp-button"],Z:Q,V:[{L:"div",C:"ytp-volume-icon",Gs:"{{icon}}"}]};g.Y.call(this,Q);this.B=D;this.uj=M;this.G=null;this.X=this.a5=this.K=this.J=NaN;this.L$=this.f$=null;this.D=[];this.U=[];this.visible=!1;this.Y=this.S=this.R5=null;D.T("delhi_modern_web_player")&&this.update({"data-priority":4});M=this.B.W();this.updateValue("icon",Pr());this.tooltip=X.tR();this.updateValue("dataTooltipOffsetY",0);this.Y=g.cD("ytp-volume-icon",this.element); Q=this.B.T("delhi_modern_web_player_icons")?{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",gC:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{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"}},{L:"path",C:"ytp-svg-volume-animation-small-ripple",Z:{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"}},{L:"path",C:"ytp-svg-volume-animation-big-ripple",Z:{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"}}]}:{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"defs",V:[{L:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},V:[{L:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{L:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{L:"path",C:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{L:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},V:[{L:"path",C:"ytp-svg-volume-animation-mover", Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{L:"path",xR:!0,gC:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"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"}},{L:"path",xR:!0,gC:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"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.G=new g.M1(Q);g.p(this,this.G);this.f$=this.G.h$("ytp-svg-volume-animation-speaker");this.L$=this.f$.getAttribute("d");this.D=g.Zj("ytp-svg-volume-animation-mover",this.G.element);this.B.T("delhi_modern_web_player_icons");this.U=g.Zj("ytp-svg-volume-animation-hider",this.G.element);this.B.T("delhi_modern_web_player_icons");this.M5=new oj;g.p(this,this.M5);this.sR=new oj;g.p(this,this.sR);this.N(D,"appresize",this.Hj);this.N(D,"onVolumeChange",this.onVolumeChange);D.T("delhi_modern_web_player")? this.listen("click",this.IW4):this.listen("click",this.gg);M.M5?(D.T("delhi_modern_web_player")&&!D.T("delhi_modern_web_player_horizontal_volume_controls")&&(this.S=new fM_(D,X),this.S.rC(this.element),g.p(this,this.S),this.N(this.Y,"mouseover",this.u5),this.N(this.Y,"focus",this.u5),this.N(this.Y,"mouseout",this.iS),this.N(this.Y,"blur",this.iS)),M=D.T("delhi_modern_web_player")?this.Y:this.element,this.addOnDisposeCallback(g.fS(X.tR(),M))):SJs(this);this.message=null;D.createClientVe(this.element, this,28662);this.Hj(D.lj().getPlayerSize());this.setVolume(D.getVolume(),D.isMuted())}; EEs=function(D,X){if(D.B.W().M5){var M=g.PB(D.B,"Silenciar","m"),Q=g.PB(D.B,"Activar sonido","m");M=X?Q:M;D.B.W().T("player_tooltip_data_title_killswitch")?D.updateValue("title",M):D.update({"tooltip-title":M,"aria-label":M});D.update({"data-title-no-tooltip":X?"Activar sonido":"Silenciar"});D.tooltip.qw()}}; mjo=function(D,X){D.J=X;var M=D.L$;D.B.T("delhi_modern_web_player_icons")?D.G.h$("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(X+") translate(-22,-12)")):X&&(M+=E8p(y$s,P6H,X));D.f$.setAttribute("d",M)}; nEm=function(D,X){var M;X===1?M=D.B.T("delhi_modern_web_player_icons")?{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:Pr():M=D.G;D.a5=X;if(D.B.T("delhi_modern_web_player_icons"))D.G.h$("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-X+") translate(-18,-12)")),D.G.h$("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(D.J-X+") translate(-22, -12)"));else{for(var Q=20*X,h=0;h=3&&D.B.getPresentingPlayerType()!==2}; vEn=function(D){var X=ed(D.B.Qq());return X?D.S?X.hasNext():X.hasPrevious():!1}; RVH=function(D){var X={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},M=D.playlist!=null&&D.playlist.hasNext();M=g.R8(D.B)&&(!D.S||M);var Q=D.S&&g.rb(D.B),h=vEn(D),H=D.S&&D.B.getPresentingPlayerType()===5,t=g.PB(D.B,"Siguiente","SHIFT+n"),q=g.PB(D.B,"Anterior","SHIFT+p");if(H)X.title="Iniciar video",X["tooltip-title"]="Iniciar video";else if(D.Y)X.title="Volver a reproducir",X["tooltip-title"]="Volver a reproducir"; else if(M){var w=null;D.playlist&&(w=g.Nc(D.playlist,D.S?$75(D.playlist):BnW(D.playlist)));if(w){if(w.videoId){var T=D.playlist.listId;X.url=D.B.W().getVideoUrl(w.videoId,T?T.toString():void 0)}X.text=w.title;X.duration=w.lengthText?w.lengthText:w.lengthSeconds?g.$u(w.lengthSeconds):null;X.preview=w.gM("mqdefault.jpg")}D.S?(X.title=t,X["tooltip-title"]=t,X["data-title-no-tooltip"]="Siguiente",X["aria-keyshortcuts"]="SHIFT+n"):(X.title=q,X["tooltip-title"]=q,X["data-title-no-tooltip"]="Anterior",X["aria-keyshortcuts"]= "SHIFT+p")}else if(Q){if(q=(w=D.videoData)==null?void 0:g.hu(w))X.url=q.ML(),X.text=q.title,X.duration=q.lengthText?q.lengthText:q.lengthSeconds?g.$u(q.lengthSeconds):null,X.preview=q.gM("mqdefault.jpg");X.title=t;X["tooltip-title"]=t;X["data-title-no-tooltip"]="Siguiente";X["aria-keyshortcuts"]="SHIFT+n"}X.disabled=!Q&&!M&&!h&&!H;D.update(X);D.X=!!X.url;Q||M||D.Y||h||H?D.G||(D.G=g.fS(D.tooltip,D.element),D.D=D.listen("click",D.onClick,D)):D.G&&(D.G(),D.G=null,D.PC(D.D),D.D=null);D.tooltip.qw();g.qE(D.element, "ytp-playlist-ui",D.S&&(M||D.B.T("web_hide_next_button")))}; eV2=function(D,X){return D?X?MJ5():$n():X?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:wJ1()}; r$1=function(D,X){g.Y.call(this,{L:"div",C:"ytp-fine-scrubbing",V:[{L:"div",C:"ytp-fine-scrubbing-draggable",V:[{L:"div",C:"ytp-fine-scrubbing-thumbnails",Z:{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}}"}}]},{L:"div",Z:{"aria-hidden":"true"},C:"ytp-fine-scrubbing-cursor"},{L:"div", C:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"},Gs:"{{seekTime}}"},{L:"div",C:"ytp-fine-scrubbing-play",V:[D.T("delhi_modern_web_player_icons")?fO():cr()],Z:{title:"Reproducir desde este momento",role:"button"}},{L:"div",C:"ytp-fine-scrubbing-dismiss",V:[g.KO()],Z:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var M=this;this.api=D;this.D=this.h$("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.h$("ytp-fine-scrubbing-dismiss");this.a5=this.h$("ytp-fine-scrubbing-draggable"); this.playButton=this.h$("ytp-fine-scrubbing-play");this.thumbnails=[];this.G=[];this.uj=this.S=0;this.M5=void 0;this.f$=NaN;this.yf=this.K=this.Y=this.J=0;this.U=[];this.interval=this.frameCount=0;this.X=160;this.scale=1;this.OR=0;this.isEnabled=this.L$=!1;djR(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.fS(X,this.dismissButton));this.addOnDisposeCallback(g.fS(X,this.playButton));this.sR=new g.Po(this.a5,!0);this.sR.subscribe("dragstart",this.T1,this);this.sR.subscribe("dragmove",this.MV, this);this.sR.subscribe("dragend",this.GO,this);this.N(D,"SEEK_COMPLETE",this.a8);D.T("web_fix_fine_scrubbing_false_play")&&this.N(D,"rootnodemousedown",function(Q){M.R5=Q}); this.D.addEventListener("keydown",function(){}); g.p(this,this.sR);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.D,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; djR=function(D,X){var M=g.$u(X),Q=g.W9("Saltar a: $PROGRESS",{PROGRESS:g.$u(X,!0)});D.update({ariamin:0,ariamax:Math.floor(D.api.getDuration()),arianow:Math.floor(X),arianowtext:Q,seekTime:M})}; i$H=function(D){D.f$=NaN;D.K=0;D.J=D.Y}; O$5=function(D){var X=D.api.Wx();if(X){var M=90*D.scale,Q=Or(X,160*D.scale);if(X=X.levels[Q]){D.X=X.width;if(!D.U.length){Q=[];for(var h=pD(X,X.HR()),H=X.columns*X.rows,t=X.frameCount,q=0;q<=h;q++)for(var w=tD.U.length;)Q= void 0,(Q=D.thumbnails.pop())==null||Q.dispose();for(;D.thumbnails.lengthM.length;)Q=void 0,(Q=D.G.pop())==null||Q.dispose(); for(;D.G.length-M?-X/M*D.interval*.5:-(X+M/2)/M*D.interval}; p_R=function(D){return-((D.D.offsetWidth||(D.frameCount-1)*D.X*D.scale)-D.S/2)}; oEd=function(){g.Y.call(this,{L:"div",C:"ytp-fine-scrubbing-thumbnail"})}; C62=function(){g.Y.call(this,{L:"div",C:"ytp-fine-scrubbing-chapter-title",V:[{L:"div",C:"ytp-fine-scrubbing-chapter-title-content",Gs:"{{chapterTitle}}"}]})}; YJp=function(D){g.Y.call(this,{L:"div",C:"ytp-heat-map-chapter",V:[{L:"svg",C:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{L:"defs",V:[{L:"clipPath",Z:{id:"{{id}}"},V:[{L:"path",C:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{L:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{L:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{L:"stop",Z:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{L:"rect",C:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",C:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{L:"rect",C:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{L:"path",C:"ytp-modern-heat-map",Z:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=D;this.J=this.h$("ytp-heat-map-svg");this.D=this.h$("ytp-heat-map-path");this.U=this.h$("ytp-heat-map-graph");this.X=this.h$("ytp-heat-map-play");this.S=this.h$("ytp-heat-map-hover");this.Y=this.h$("ytp-modern-heat-map");this.X8=!1;this.G=60;D=""+g.rK(this);this.update({id:D});D="url(#"+D+")";this.U.setAttribute("clip-path",D);this.X.setAttribute("clip-path",D);this.S.setAttribute("clip-path",D)}; lM2=function(D,X){X>0&&(D.G=X,D.J.style.height=D.G+"px")}; IZ=function(){g.Y.call(this,{L:"div",C:"ytp-chapter-hover-container",V:[{L:"div",C:"ytp-progress-bar-padding"},{L:"div",C:"ytp-progress-list",V:[{L:"div",gC:["ytp-play-progress","ytp-swatch-background-color"]},{L:"div",C:"ytp-progress-linear-live-buffer"},{L:"div",C:"ytp-load-progress"},{L:"div",C:"ytp-hover-progress"},{L:"div",C:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.G=this.h$("ytp-progress-list");this.D=this.h$("ytp-progress-linear-live-buffer"); this.U=this.h$("ytp-ad-progress-list");this.X=this.h$("ytp-load-progress");this.J=this.h$("ytp-play-progress");this.Y=this.h$("ytp-hover-progress");this.S=this.h$("ytp-chapter-hover-container")}; gU=function(D,X){g.Q_(D.S,"width",X)}; J$2=function(D,X){g.Q_(D.S,"margin-right",X+"px")}; xjs=function(){this.G=this.position=this.Y=this.S=this.U=this.width=NaN}; WXn=function(){g.Y.call(this,{L:"div",C:"ytp-timed-marker"});this.S=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.dU=function(D,X){g.Hr.call(this,{L:"div",C:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},V:[{L:"div",gC:["ytp-heat-map-container"],V:[{L:"div",C:"ytp-heat-map-edu"}]},{L:"div",gC:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{L:"div",C:"ytp-chapters-container"},{L:"div",C:"ytp-timed-markers-container"}, {L:"div",C:"ytp-clip-start-exclude"},{L:"div",C:"ytp-clip-end-exclude"},{L:"div",C:"ytp-scrubber-container",V:[{L:"div",gC:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{L:"div",C:"ytp-scrubber-pull-indicator"},{L:"img",gC:["ytp-decorated-scrubber-button"]}]}]}]},{L:"div",gC:["ytp-fine-scrubbing-container"],V:[{L:"div",C:"ytp-fine-scrubbing-edu"}]},{L:"div",C:"ytp-bound-time-left",Gs:"{{boundTimeLeft}}"},{L:"div",C:"ytp-bound-time-right",Gs:"{{boundTimeRight}}"},{L:"div",C:"ytp-clip-start", Z:{title:"{{clipstarttitle}}"},Gs:"{{clipstarticon}}"},{L:"div",C:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},Gs:"{{clipendicon}}"}]});this.api=D;this.u$=!1;this.kC=this.tC=this.o5=this.a5=this.X=this.XV=0;this.ZW=null;this.EC=!1;this.A$={};this.Vq={};this.clipEnd=Infinity;this.Ky=this.h$("ytp-clip-end");this.G6=new g.Po(this.Ky,!0);this.iM=this.h$("ytp-clip-end-exclude");this.MK=this.h$("ytp-clip-start-exclude");this.clipStart=0;this.DJ=this.h$("ytp-clip-start");this.T6=new g.Po(this.DJ,!0);this.f$= this.h5=0;this.progressBar=this.h$("ytp-progress-bar");this.J5={};this.t$={};this.q5=this.h$("ytp-chapters-container");this.l$=this.h$("ytp-timed-markers-container");this.S=[];this.J=[];this.kh={};this.w$=null;this.M5=-1;this.Mj=this.uj=0;this.I6=this.K=null;this.WB=this.h$("ytp-scrubber-button");this.sR=this.h$("ytp-decorated-scrubber-button");this.NL=this.h$("ytp-scrubber-container");this.R2=new g.hn;this.ZJ=0;this.Ey=new xjs;this.Y=new mM(0,0);this.g3=null;this.D=this.Zc=!1;this.oa=null;this.R5= this.h$("ytp-heat-map-container");this.QB=this.h$("ytp-heat-map-edu");this.U=[];this.heatMarkersDecorations=[];this.zm=this.h$("ytp-fine-scrubbing-container");this.p6=this.h$("ytp-fine-scrubbing-edu");this.G=void 0;this.yf=this.wj=this.OR=!1;this.tooltip=X.tR();this.addOnDisposeCallback(g.fS(this.tooltip,this.Ky));g.p(this,this.G6);this.G6.subscribe("hoverstart",this.c7,this);this.G6.subscribe("hoverend",this.d_,this);this.N(this.Ky,"click",this.FI);this.addOnDisposeCallback(g.fS(this.tooltip,this.DJ)); g.p(this,this.T6);this.T6.subscribe("hoverstart",this.c7,this);this.T6.subscribe("hoverend",this.d_,this);this.N(this.DJ,"click",this.FI);GP9(this);this.N(D,"resize",this.Fk);this.N(D,"presentingplayerstatechange",this.RT);this.N(D,"videodatachange",this.bf);this.N(D,"videoplayerreset",this.KO);this.N(D,"cuerangesadded",this.sa$);this.N(D,"cuerangesremoved",this.tA5);this.N(D,"onLoopRangeChange",this.Bj);this.N(D,"innertubeCommand",this.onClickCommand);this.N(D,"onRetroModeChanged",this.Kj5);this.N(D, g.rI("timedMarkerCueRange"),this.Cis);this.N(D,"updatemarkervisibility",this.jY);this.N(D,"serverstitchedvideochange",this.Qaj);this.updateVideoData(D.getVideoData(),!0);this.Bj(D.getLoopRange());vm(this)&&!this.G&&(this.G=new r$1(this.api,this.tooltip),D=g.sO(this.element).x||0,this.G.Fk(D,this.X),this.G.rC(this.zm),g.p(this,this.G),this.N(this.G.dismissButton,"click",this.SO),this.N(this.G.playButton,"click",this.VY),this.N(this.G.element,"dblclick",this.VY));this.api.createClientVe(this.R5,this, 139609,!0);this.api.createClientVe(this.QB,this,140127,!0);this.api.createClientVe(this.p6,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; GP9=function(D){if(D.S.length===0){var X=new IZ;D.S.push(X);g.p(D,X);X.rC(D.q5,0)}for(;D.S.length>1;)D.S.pop().dispose();gU(D.S[0],"100%");D.S[0].startTime=0;D.S[0].title=""}; zV5=function(D){var X=X===void 0?NaN:X;var M=new YJp(D.api);D.U.push(M);g.p(D,M);M.rC(D.R5);X>=0&&(M.element.style.width=X+"px")}; kPR=function(D){for(;D.J.length;)D.J.pop().dispose()}; jlo=function(D){var X,M,Q,h,H;return(H=g.Z((h=g.Z((X=D.getWatchNextResponse())==null?void 0:(M=X.playerOverlays)==null?void 0:(Q=M.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,e1))==null?void 0:h.playerBar,uFW))==null?void 0:H.chapters}; D9m=function(D){for(var X=D.S,M=[],Q=0;Q=t&&c<=L&&H.push(a)}w>0&&(D.R5.style.height=w+"px");t=D.U[Q];L=H;a=h;V=w;c=Q===0;c=c===void 0?!1:c;lM2(t,V);K=L;F=t.G;c=c===void 0?!1:c;var S=1E3/K.length,b=[];b.push({x:0,y:100});for(var n=0;n0&&(M=H[H.length-1])}g.rU(D);q=[];X=g.e(X.heatMarkersDecorations||[]);for(h=X.next();!h.done;h=X.next())if(h=g.Z(h.value,NCo))w=h.label,Q=M=T=void 0,q.push({visibleTimeRangeStartMillis:(T=h.visibleTimeRangeStartMillis)!=null?T:-1,visibleTimeRangeEndMillis:(M=h.visibleTimeRangeEndMillis)!=null?M:-1,decorationTimeMillis:(Q=h.decorationTimeMillis)!=null?Q:NaN,label:w?g.q1(w):""});D.heatMarkersDecorations=q}}; Q4R=function(D,X){D.J.push(X);g.p(D,X);X.rC(D.l$,D.l$.children.length)}; h0s=function(D,X){X=g.e(X);for(var M=X.next();!M.done;M=X.next()){M=M.value;var Q=iK(D,M.timeRangeStartMillis/(D.Y.S*1E3),oZ(D)),h=D.api.T("delhi_modern_web_player")?.667:.6;g.Q_(M.element,"transform","translateX("+Q+"px) scaleX("+h+")")}}; Xv9=function(D,X){var M=0,Q=!1;X=g.e(X);for(var h=X.next();!h.done;h=X.next()){h=h.value;if(g.Z(h,wvn)){h=g.Z(h,wvn);var H={startTime:NaN,title:null,onActiveCommand:void 0},t=h.title;H.title=t?g.q1(t):"";t=h.timeRangeStartMillis;t!=null&&(H.startTime=t);H.onActiveCommand=h.onActiveCommand;h=H;M===0&&h.startTime!==0&&(D.S[M].startTime=0,D.S[M].title="",D.S[M].onActiveCommand=h.onActiveCommand,M++,Q=!0);D.S.length<=M&&(H=new IZ,D.S.push(H),g.p(D,H),H.rC(D.q5,D.q5.children.length));D.S[M].startTime= h.startTime;D.S[M].title=h.title?h.title:"";D.S[M].onActiveCommand=h.onActiveCommand;D.S[M].index=Q?M-1:M}M++}for(;M=0;Q--)if(D.S[Q].width>0){J$2(D.S[Q],0);var h=Math.floor(D.S[Q].width);D.S[Q].width=h;gU(D.S[Q],h+"px");break}D.S[M].width=0;gU(D.S[M],"0")}else M===D.S.length-1?(Q=Math.floor(D.S[M].width+X),D.S[M].width=Q,gU(D.S[M],Q+"px")):(X=D.S[M].width+X,Q=Math.round(X),X-=Q,D.S[M].width=Q,gU(D.S[M],Q+"px"));M=0;if(D.U.length===D.S.length)for(X=0;X< D.U.length;X++)Q=D.S[X].width,D.U[X].element.style.width=Q+"px",D.U[X].element.style.left=M+"px",M+=Q+OQ(D);D.api.T("delhi_modern_web_player")&&(D.S.length===1?D.S[0].G.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(D.S[0].G.classList.remove("ytp-progress-bar-end"),D.S[0].G.classList.add("ytp-progress-bar-start"),D.S[D.S.length-1].G.classList.add("ytp-progress-bar-end")))}; TCR=function(D,X){var M=0,Q=!1,h=D.S.length,H=D.Y.S*1E3;H===0&&(H=D.api.getProgressState().seekableEnd*1E3);if(H>0&&D.X>0){for(var t=D.X-OQ(D)*D.uj,q=D.Mj===0?3:t*D.Mj,w=g.e(D.S),T=w.next();!T.done;T=w.next())T.value.width=0;for(;M1);T=(H===0?0:w/H*t)+D.S[M].width;if(T>q)D.S[M].width=T;else{D.S[M].width=0;var L=D,K=M,a=L.S[K-1];a!==void 0&&a.width>0? a.width+=T:KD.Mj&&(D.Mj=w/H),Q=!0)}M++}}return Q}; CN=function(D){if(D.X){var X=D.api.getProgressState(),M=D.api.getVideoData();if(!(M&&M.enableServerStitchedDai&&M.cF)||isFinite(X.current)){var Q;if(((Q=D.api.getVideoData())==null?0:XX(Q))&&X.airingStart&&X.airingEnd)var h=pN(D,X.airingStart,X.airingEnd);else if(D.api.getPresentingPlayerType()===2){var H,t,q;h=(M=(h=D.api.getVideoData())==null?void 0:(H=h.getPlayerResponse())==null?void 0:(t=H.playerConfig)==null?void 0:(q=t.webPlayerConfig)==null?void 0:q.skippableAdProgressBarDuration)?pN(D,X.seekableStart, M/1E3):pN(D,X.seekableStart,X.seekableEnd)}else h=pN(D,X.seekableStart,X.seekableEnd);H=nd(h,X.loaded,0);X=nd(h,X.current,0);t=D.Y.G!==h.G||D.Y.S!==h.S;D.Y=h;AE(D,X,H);t&&LB2(D);s4o(D);X=48;h=D.api.W();H=g.lx(D.api.W().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");H=D.api.T("delhi_modern_web_player_compact_controls")||H>0&&D.api.getPlayerSize().width<=H;D.api.T("delhi_modern_web_player")?X=D.api.getPlayerSize().width<=528?H?56:64:D.D?H?72:96:H?56:72:D.D?X=54:g.eO(h)&& !h.G&&(X=40);D.a5=X}}}; pN=function(D,X,M){return KB9(D)?new mM(Math.max(X,D.g3.startTimeMs/1E3),Math.min(M,D.g3.endTimeMs/1E3)):new mM(X,M)}; FB2=function(D,X){var M,Q,h;X=g.Z((M=X.getWatchNextResponse())==null?void 0:(Q=M.playerOverlays)==null?void 0:(h=Q.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,e1);if(X==null?0:X.progressColor)for(M=0;M1){M=Yo(D,X.Y,!0);for(var Q=0,h=0;h0&&(Q+=D.S[h].width,Q+=OQ(D));M=(D.S[M].startTime+(X.Y-Q)/D.S[M].width*((M===D.S.length-1?D.Y.S*1E3:D.S[M+1].startTime)-D.S[M].startTime))/1E3||0}return M}; $9s=function(D,X){if(X<0)return"0";D=Math.floor(Math.min(X,D.api.getDuration())*1E3);return D>2147483647?"0":String(D)}; JE=function(D,X,M,Q,h){X=$9s(D,X);M=$9s(D,M);D=D.progressBar.visualElement;Q={seekData:{startMediaTimeMs:X,endMediaTimeMs:M,seekSource:Q}};(X=g.Va())&&k0(X,D,h,Q)}; BC_=function(D,X,M){if(M>=D.S.length)return!1;var Q=D.X-OQ(D)*D.uj;return Math.abs(X-D.S[M].startTime/1E3)/D.Y.S*Q<4}; LB2=function(D){D.WB.style.removeProperty("height");for(var X=g.e(Object.keys(D.A$)),M=X.next();!M.done;M=X.next())Zkp(D,M.value);xo(D);AE(D,D.f$,D.h5)}; oZ=function(D){var X=D.R2.x;X=g.XT(X,0,D.X);D.Ey.update(X,D.X);return D.Ey}; AE=function(D,X,M){D.f$=X;D.h5=M;var Q=oZ(D),h=D.Y.S,H=Arp(D.Y,D.f$),t=g.W9("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.$u(H,!0),DURATION:g.$u(h,!0)}),q=Dn(D.S,H*1E3);q=D.S[q].title;D.update({ariamin:Math.floor(D.Y.G),ariamax:Math.floor(h),arianow:Math.floor(H),arianowtext:q?q+" "+t:t});h=D.clipStart;H=D.clipEnd;D.g3&&D.api.getPresentingPlayerType()!==2&&(h=D.g3.startTimeMs/1E3,H=D.g3.endTimeMs/1E3);h=nd(D.Y,h,0);q=nd(D.Y,H,1);t=D.api.getVideoData();H=g.XT(X,h,q);M=(t==null?0:g.uf(t))?1:g.XT(M, h,q);X=iK(D,X,Q);g.Q_(D.NL,"transform","translateX("+X+"px)");D.api.T("delhi_modern_web_player")&&D.api.T("delhi_modern_web_player_cutout")&&U9H(D,X);Wm(D,Q,h,H,"PLAY_PROGRESS");(t==null?0:XX(t))?(X=D.api.getProgressState().seekableEnd)&&Wm(D,Q,H,nd(D.Y,X),"LIVE_BUFFER"):Wm(D,Q,h,M,"LOAD_PROGRESS");if(D.api.T("web_player_heat_map_played_bar")){var w;(w=D.U[0])!=null&&w.X.setAttribute("width",(H*100).toFixed(2)+"%")}}; U9H=function(D,X){D.api.getPresentingPlayerType()!==1?D.q5.style.removeProperty("clip-path"):(X||(X=iK(D,D.f$,oZ(D))),D.q5.style.clipPath='path("'+(D.EC?cao(D,8,X,D.D?50:36,0,6):cao(D,4,X,D.D?34:24,2,3))+'")')}; cao=function(D,X,M,Q,h,H){var t=M-Q/2;M+=Q/2;X+=h;return"M 0 "+h+" L 0 "+(X+" L ")+(t+" "+X+" C ")+(t+H+" "+X+" "+(t+H)+" "+h+" "+t+" "+h+" L 0 ")+(h+" M ")+(M+" "+h+" L ")+(D.X+" "+h+" L ")+(D.X+" "+X+" L ")+(M+" "+X+" C ")+(M-H+" "+X+" "+(M-H)+" "+h+" "+M+" "+h)}; Wm=function(D,X,M,Q,h){var H=D.S.length,t=X.S-D.uj*OQ(D),q=M*t;M=Yo(D,q);var w=Q*t;t=Yo(D,w);h==="HOVER_PROGRESS"&&(t=Yo(D,X.S*Q,!0),w=X.S*Q-f3m(D,X.S*Q)*OQ(D));Q=Math.max(q-Su1(D,M),0);for(q=M;q=D.S.length)return D.X;for(var M=0,Q=0;Q0||D.iM.clientWidth>0?(H=X.clientWidth/M,D=-1*D.MK.clientWidth/M):(H/=M,D=-1*D.S[h].element.offsetLeft/M),g.Q_(X,"background-size",H+"px"),g.Q_(X,"background-position-x",D+"px"))}; Gf=function(D,X,M,Q,h){h||D.api.W().G?X.style.width=M+"px":g.Q_(X,"transform","scalex("+(Q?M/Q:0)+")")}; Yo=function(D,X,M){var Q=0;(M===void 0?0:M)&&(X-=f3m(D,X)*OQ(D));M=g.e(D.S);for(var h=M.next();!h.done;h=M.next()){h=h.value;if(X>h.width)X-=h.width;else break;Q++}return Q===D.S.length?Q-1:Q}; iK=function(D,X,M){var Q=X*D.Y.S*1E3;for(var h=-1,H=g.e(D.S),t=H.next();!t.done;t=H.next())t=t.value,Q>t.startTime&&t.width>0&&h++;Q=h<0?0:h;h=M.S-OQ(D)*D.uj;return X*h+OQ(D)*Q+M.U}; f3m=function(D,X){for(var M=D.S.length,Q=0,h=g.e(D.S),H=h.next();!H.done;H=h.next())if(H=H.value,H.width!==0)if(X>H.width)X-=H.width,X-=OQ(D),Q++;else break;return Q===M?M-1:Q}; g.PMs=function(D,X,M,Q){var h=D.X!==M,H=D.D!==Q;D.XV=X;D.X=M;D.D=Q;vm(D)&&(X=D.G)!=null&&(X.scale=Q?1.5:1);LB2(D);D.S.length===1&&(D.S[0].width=M||0);h&&g.rU(D);D.G&&H&&vm(D)&&(D.G.isEnabled&&(M=D.D?135:90,Q=M-D.a5,D.zm.style.height=M+"px",g.Q_(D.R5,"transform","translateY("+-Q+"px)"),g.Q_(D.progressBar,"transform","translateY("+-Q+"px)")),O$5(D.G))}; xo=function(D){var X=!!D.g3&&D.api.getPresentingPlayerType()!==2,M=D.clipStart,Q=D.clipEnd,h=!0,H=!0;X&&D.g3?(M=D.g3.startTimeMs/1E3,Q=D.g3.endTimeMs/1E3):(h=M>D.Y.G,H=D.Y.S>0&&QD.f$);g.qE(D.WB,"ytp-scrubber-button-hover",M===Q&&D.S.length>1);if(D.api.T("web_player_heat_map_played_bar")){var H;(H=D.U[0])!=null&&H.S.setAttribute("width",(X.G*100).toFixed(2)+"%")}}}; Zkp=function(D,X){var M=D.A$[X];X=D.Vq[X];var Q=oZ(D),h=nd(D.Y,M.start/1E3,0),H=tMn(M,D.D)/Q.width;var t=nd(D.Y,M.end/1E3,1);H!==Number.POSITIVE_INFINITY&&(h=g.XT(h,0,t-H));t=Math.min(t,h+H);M.color&&(X.style.background=M.color);M=h;X.style.left=Math.max(M*Q.S+Q.U,0)+"px";Gf(D,X,g.XT((t-M)*Q.S+Q.U,0,Q.width),Q.width,!0)}; m91=function(D,X){var M=X.getId();D.A$[M]===X&&(g.gP(D.Vq[M]),delete D.A$[M],delete D.Vq[M])}; vm=function(D){var X=g.uS(D.api.W())&&(D.api.T("web_shorts_pip")||D.api.T("web_watch_pip")),M;return!((M=D.api.getVideoData())==null?0:M.isLivePlayback)&&!D.api.isMinimized()&&!D.api.isInline()&&(!D.api.MX()||!X)}; zf=function(D){D.G&&(D.G.disable(),D.o5=0,D.R5.style.removeProperty("transform"),D.progressBar.style.removeProperty("transform"),D.zm.style.removeProperty("height"),D.element.parentElement&&D.element.parentElement.style.removeProperty("height"))}; nNW=function(D,X){var M=X/((D.D?135:90)-D.a5)*D.a5;g.Q_(D.progressBar,"transform","translateY("+-X+"px)");g.Q_(D.R5,"transform","translateY("+-X+"px)");g.Q_(D.zm,"transform","translateY("+M+"px)");D.zm.style.height=X+M+"px";D.element.parentElement&&(D.element.parentElement.style.height=D.a5-M+"px")}; bkd=function(D,X){X?D.K||(D.element.removeAttribute("aria-disabled"),D.K=new g.Po(D.progressBar,!0),D.api.T("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&D.K.subscribe("hoverstart",D.JR4,D),D.K.subscribe("hovermove",D.cRs,D),D.K.subscribe("hoverend",D.dKs,D),D.K.subscribe("dragstart",D.CHF,D),D.K.subscribe("dragmove",D.t$s,D),D.K.subscribe("dragend",D.ARI,D),D.api&&D.api.T("delhi_modern_web_player")&&D.api.T("delhi_modern_web_player_cutout")&&(D.I6=new g.Po(D.progressBar, !0),D.I6.subscribe("hoverstart",function(){D.EC=!0;U9H(D)},D),D.I6.subscribe("hoverend",function(){D.EC=!1; U9H(D)},D)),D.oa=D.listen("keydown",D.Xg)):D.K&&(D.element.setAttribute("aria-disabled","true"),D.PC(D.oa),D.K.cancel(),D.K.dispose(),D.K=null)}; OQ=function(D){return D.api.T("delhi_modern_web_player")?4:D.D?3:2}; KB9=function(D){var X;return!((X=D.g3)==null||!X.postId)&&D.api.getPresentingPlayerType()!==2}; ko=function(D,X){g.Y.call(this,{L:"button",gC:["ytp-remote-button","ytp-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},Gs:"{{icon}}"});this.B=D;this.Vf=X;this.S=null;this.N(D,"onMdxReceiversChange",this.C$);this.N(D,"presentingplayerstatechange",this.C$);this.N(D,"appresize",this.C$);D.createClientVe(this.element,this,139118);this.C$();this.listen("click",this.G, this);EI(D,this.element,this)}; uK=function(D,X){g.Y.call(this,{L:"button",gC:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":XU(),title:D.T("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},V:[D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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.EC()]});this.B=D;this.Vf=X;this.G=!0;this.listen("click",this.Y);this.N(D,"onPlaybackQualityChange",this.updateBadge);this.N(D,"videodatachange",this.updateBadge);this.N(D,"webglsettingschanged",this.updateBadge);this.N(D,"appresize",this.S);EI(D,this.element,this);this.B.createClientVe(this.element,this,28663);this.updateBadge();this.S(D.lj().getPlayerSize())}; e0i=function(D,X){D.G=!!X;D.S(D.B.lj().getPlayerSize())}; jr=function(D,X,M){if(D.T("web_add_footer_template_to_audio_track")){var Q="Edita tus $BEGIN_LINKidiomas preferidos$END_LINK en la configuraci\u00f3n".split(/\$(BEGIN|END)_LINK/);Q={L:"div",C:"ytp-panel-footer-content",V:[Q[0],{L:"a",C:"ytp-panel-footer-content-link",Z:{href:"/account_playback"},Gs:Q[2]},Q[4]]}}g.SK.call(this,"Pista de audio",g.sp.AUDIO,D,X,void 0,void 0,Q);this.B=D;this.S=M;this.tracks={};g.hN(this.element,"ytp-audio-menu-item");this.countLabel=new g.Y({L:"div",V:[{L:"span",Gs:"Pista de audio"}, {L:"span",C:"ytp-menuitem-label-count",Gs:"{{content}}"}]});D.T("web_settings_menu_icons")&&!this.B.T("html5_enable_new_audio_settings_menu")&&(X=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(X));g.p(this,this.countLabel);g.xa(this,this.countLabel);D.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.N(D,"videodatachange",this.C$);this.N(D,"onPlaybackAudioChange",this.C$);this.C$()}; R05=function(D,X){g.WB.call(this,g.GT({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.sp.Cl);this.B=D;this.Vf=X;g.hN(this.element,"ytp-audio-settings-menu-item");this.wI=new g.aj(D,void 0,"Audio");this.countLabel=new g.Y({L:"div",V:[{L:"span",Gs:"Audio"},{L:"span",C:"ytp-menuitem-label-count",Gs:"{{content}}"}]});D.T("web_settings_menu_icons")&&this.setIcon({L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.Mt=new jr(D,this.Vf,this);g.p(this,this.Mt);this.N(D,"settingsMenuInitialized",this.OC.bind(this));this.N(D,"videodatachange",this.OC.bind(this));g.p(this,this.countLabel);g.xa(this,this.countLabel);this.Vf.fK(this);this.N(D,"onPlaybackAudioChange",this.jA);this.listen("keydown",this.Xg);this.listen("click",this.open)}; DM=function(D,X){HA.call(this,"Reproducci\u00f3n autom\u00e1tica",g.sp.JJ);this.B=D;this.Vf=X;this.S=!1;this.G=[];this.N(D,"presentingplayerstatechange",this.OC);this.subscribe("select",this.onSelect,this);D.createClientVe(this.element,this,113682);this.OC()}; I3R=function(D,X){g.WB.call(this,g.GT({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.B=D;this.Vf=X;this.N(this.element,"click",this.onClick);this.Vf.fK(this)}; gNR=function(D,X){var M;g.uS(D.W())&&(M={L:"div",C:"ytp-panel-footer-content",V:[{L:"span",Gs:"Ajusta la calidad de descarga en la "},{L:"a",C:"ytp-panel-footer-content-link",Gs:"Configuraci\u00f3n",Z:{href:"/account_downloads"}}]});g.SK.call(this,"Calidad",g.sp.dK,D,X,void 0,void 0,M);this.B=D;this.R5={};this.X={};this.G={};this.a5=new Set;this.S=this.Y=!1;this.U="unknown";this.J="";this.K=new g.O6;g.p(this,this.K);this.Y=this.B.T("web_player_use_new_api_for_quality_pullback");this.S=this.B.T("web_player_enable_premium_hbr_playback_cap"); D.T("web_settings_menu_icons")&&(X=D.T("delhi_modern_web_player_icons")?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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(X));g.hN(this.wI.element,"ytp-quality-menu");this.N(D,"videodatachange",this.OC);this.N(D,"videoplayerreset",this.OC);this.N(D,"onPlaybackQualityChange",this.Mv);this.OC();D.createClientVe(this.element,this,137721)}; d9o=function(D,X,M){var Q=D.R5[X],h=g.BE[X];return vNo(D,Q?Q.qualityLabel:h?h+"p":"Autom\u00e1tica",X,M)}; ra2=function(D,X,M,Q,h){var H=(X=D.S?D.G[X]:D.X[X])&&X.quality,t=X&&X.qualityLabel;t=t?t:"Autom\u00e1tica";Q&&(t="("+t);D=vNo(D,t,H||"",h);Q&&D.V.push(")");(Q=(Q=X&&X.paygatedQualityDetails)&&Q.paygatedIndicatorText)&&M&&D.V.push({L:"div",C:"ytp-premium-label",Gs:Q});return D}; vNo=function(D,X,M,Q){X={L:"span",gC:Q,V:[X]};var h;Q="ytp-swatch-color";if(D.Y||D.S)Q="ytp-swatch-color-white";M==="highres"?h="8K":M==="hd2880"?h="5K":M==="hd2160"?h="4K":M.indexOf("hd")===0&&M!=="hd720"&&(h="HD");h&&(X.V.push(" "),X.V.push({L:"sup",C:Q,Gs:h}));return X}; XF=function(D){EQ.call(this,D.getAvailablePlaybackRates()[0],D.getAvailablePlaybackRates()[D.getAvailablePlaybackRates().length-1],.05,D.getPlaybackRate(),{L:"div",C:"ytp-speedslider-indicator-container",V:[{L:"div",C:"ytp-speedslider-badge"},{L:"p",C:"ytp-speedslider-text"}]});this.B=D;this.f$=GK(this.a5,50,this);g.hN(this.G,"ytp-speedslider");this.K=this.h$("ytp-speedslider-text");this.R5=this.h$("ytp-speedslider-badge");iks(this);this.N(this.G,"change",this.sR)}; iks=function(D){D.K.textContent=D.S.toFixed(2)+"x";var X=D.S>2&&D.B.T("enable_web_premium_varispeed");D.R5.classList.toggle("ytp-speedslider-premium-badge",X);D.R5.setAttribute("aria-label",X?"Premium":"")}; Mj=function(D,X,M,Q,h,H,t){g.Y.call(this,{L:"div",C:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{L:"div",C:"ytp-slider",V:[{L:"div",C:"ytp-slider-handle"}]}]});this.J=D;this.K=X;this.G=M;this.Y=Q;this.f$=h;this.L$=H;this.range=this.Y-this.G;this.M5=this.h$("ytp-slider-section");this.U=this.h$("ytp-slider");this.R5=this.h$("ytp-slider-handle");this.X=new g.Po(this.U, !0);this.S=t?t:M;g.p(this,this.X);this.X.subscribe("dragmove",this.n8,this);this.N(this.element,"keydown",this.U4);this.N(this.element,"wheel",this.hA);this.init()}; Q4=function(D){Mj.call(this,.05,.05,D.getAvailablePlaybackRates()[0],D.getAvailablePlaybackRates()[D.getAvailablePlaybackRates().length-1],150,20,D.getPlaybackRate());this.B=D;this.D=g.m7("P");this.sR=GK(this.a5,50,this);g.hN(this.U,"ytp-speedslider");g.hN(this.D,"ytp-speedslider-text");D=this.D;var X=this.U;X.parentNode&&X.parentNode.insertBefore(D,X.nextSibling);oN5(this);this.N(this.B,"onPlaybackRateChange",this.updateValues)}; oN5=function(D){D.D.textContent=CM1(D,D.S)+"x"}; CM1=function(D,X){D=Number(g.XT(X,D.G,D.Y).toFixed(2));X=Math.floor((D+.001)*100%5+2E-15);var M=D;X!==0&&(M=D-X*.01);return Number(M.toFixed(2))}; Ok2=function(D){g.Hr.call(this,{L:"div",C:"ytp-speedslider-component"});D.T("web_settings_use_input_slider")?this.S=new XF(D):this.S=new Q4(D);g.p(this,this.S);this.element.appendChild(this.S.element)}; pv5=function(D){var X=new Ok2(D);KU.call(this,D,X,"Personalizada");g.p(this,X)}; Yun=function(D,X){var M=new pv5(D);g.SK.call(this,"Velocidad de reproducci\u00f3n",g.sp.pC,D,X,h$(D)?void 0:"Personalizada",h$(D)?void 0:function(){g.$t(X,M)}); var Q=this;this.K=new g.Y({L:"div",C:"ytp-menuitem-premium-badge",Z:{"aria-label":"Premium"}});this.X=!1;this.py={CGs:function(){return Q.U}}; g.p(this,M);this.Y=new XF(D);g.p(this,this.Y);if(D.T("web_settings_menu_icons")){var h=D.T("delhi_modern_web_player_icons")?QHn():{L:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(h)}this.B=D;this.X=!1;this.R5=null;h$(D)?(this.S=g.W9("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.B.getPlaybackRate().toString()}),this.J=this.B.getPlaybackRate()):this.J=this.S=null;g.p(this,this.K);var H,t,q,w;this.a5=(H=this.B.getVideoData())==null?void 0:(t=H.getWatchNextResponse())==null?void 0:(q=t.playerOverlays)==null?void 0:(w=q.playerOverlayRenderer)==null?void 0:w.showPlaybackRateUpsellPanelCommand;AaW(D,this.a5)?(this.G=H_(4),this.B.createClientVe(this.K.element, this,273508)):this.G=null;this.B.T("enable_web_premium_varispeed_upsell")&&this.B.createClientVe(this.element,this,278479);this.U=this.B.getAvailablePlaybackRates();this.N(D,"presentingplayerstatechange",this.C$);var T;((T=this.B.getVideoData())==null?0:T.gp())&&this.N(D,"serverstitchedvideochange",this.C$);this.N(D,"videodatachange",this.onVideoDataChange);this.N(this.Y.G,"change",function(){Q.X=!0;Q.C$()}); this.C$()}; l3W=function(D,X){var M=H_(X);D.S&&(D.X||X===D.J)?(D.In(D.S),D.setContent(X.toString())):D.In(M)}; x9s=function(D){var X=D.U.map(H_);D.G&&X.push(D.G);D.wO(X);D.S=null;D.J=null;X=D.B.getPlaybackRate();h$(D.B)&&Jad(D,X);!D.U.includes(X)||D.X?D.In(D.S):D.In(H_(X))}; Jad=function(D,X){D.J=X;D.S=g.W9("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:X.toString()});X=D.U.map(H_);X.unshift(D.S);D.G&&X.push(D.G);D.wO(X)}; WBs=function(D,X,M,Q){M=new g.WB({L:"div",gC:["ytp-menuitem"],Z:{tabindex:"0",role:"menuitemradio","aria-checked":Q?"true":"false"},V:[{L:"div",gC:["ytp-menuitem-label"],V:[{L:"div",gC:["ytp-menuitem-container-with-badge"],V:[{L:"div",Gs:"{{label}}"},D.K]}]}]},M,D.FV(X));M.listen("click",function(){D.U1(X)}); return M}; H_=function(D){return D.toString()}; h$=function(D){return D.T("web_settings_menu_surface_custom_playback")}; AaW=function(D,X){return!!X&&D.getAvailablePlaybackRates()[D.getAvailablePlaybackRates().length-1]<=2}; GIi=function(D){return D.T("web_settings_menu_surface_custom_playback")&&D.T("web_settings_use_input_slider")}; z05=function(D){g.aj.call(this,D,void 0,"Velocidad de reproducci\u00f3n")}; kIo=function(D){var X=new g.Hr({L:"div"});KU.call(this,D,X,"Velocidad de reproducci\u00f3n");g.p(this,X)}; t$=function(D,X){g.SK.call(this,"Velocidad de reproducci\u00f3n",g.sp.pC,D,X);this.B=D;D.T("web_settings_menu_icons")&&this.setIcon(QHn());this.S(D.getPlaybackRate());this.N(D,"onPlaybackRateChange",this.S)}; j4s=function(D,X,M,Q){var h=new g.aj(X,void 0,"Anulaci\u00f3n de video");g.SK.call(this,Q.text||"",D,X,M,"Anulaci\u00f3n de video",function(){g.$t(M,h)}); var H=this;g.hN(this.element,"ytp-subtitles-options-menu-item");this.setting=Q.option.toString();D=Q.options;this.settings=g.Bi(D,this.Th,this);this.Y=h;g.p(this,this.Y);X=new g.WB({L:"div",C:"ytp-menuitemtitle",Gs:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.p(this,X);this.Y.fK(X,!0);this.G=new g.WB({L:"div",C:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{L:"div",C:"ytp-menuitem-label",Gs:"S\u00ed"}]},-1);g.p(this,this.G);this.Y.fK(this.G, !0);this.N(this.G.element,"click",function(){uZp(H,!0)}); this.S=new g.WB({L:"div",C:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{L:"div",C:"ytp-menuitem-label",Gs:"No"}]},-2);g.p(this,this.S);this.Y.fK(this.S,!0);this.N(this.S.element,"click",function(){uZp(H,!1)}); this.wO(g.be(D,this.Th))}; uZp=function(D,X){D.publish("settingChange",D.setting+"Override",!X);D.Vf.jg()}; Nj=function(D,X){g.aj.call(this,D,void 0,"Opciones");var M=this;this.Yt={};for(var Q=0;Q=350)}; svW=function(D,X,M){var Q=Math.floor(X),h=Q+"% volumen"+(M?" silenciado":"");M=M?0:X/100;D.updateValue("valuenow",Q);D.updateValue("valuetext",h);Q=D.Y?78:52;h=!D.api.T("delhi_modern_web_player")&&D.Y?18:12;D.R5.style.left=(Q-h)*M+"px";D.volume=X}; Fu9=function(D,X){g.qE(D.element,"ytp-volume-control-hover",X);al(D,X,D.isDragging,D.G,D.api.DT())}; al=function(D,X,M,Q,h){var H=D.S||D.isDragging||D.G||D.DT;D.S=X;D.isDragging=M;D.G=Q;D.DT=h;X=D.S||D.isDragging||D.G||D.DT;H!==X&&(X?D.D=D.N(D.element,"wheel",D.L8):(D.PC(D.D),D.D=null),g.qE(D.X,"ytp-volume-slider-active",X))}; FF=function(D,X){var M=D.W(),Q=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];M.Y&&Q.push("no-link");var h={title:D.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:M.eH,"data-priority":"6","data-sessionlink":"feature=player-button"};M.Y||(h.href="{{url}}");g.Y.call(this,{L:"a",gC:Q,Z:h,Gs:"{{logoSvg}}"});this.S=null;this.api=D;this.visible=!1;M.Y||(this.S=this.listen("click",this.onClick));this.N(D,"videodatachange",this.onVideoDataChange); this.N(D,"videoplayerreset",this.onVideoDataChange);this.N(D,"onLoopRangeChange",this.onVideoDataChange);this.N(D,"appresize",this.Fk);this.onVideoDataChange();M.Y||this.addOnDisposeCallback(g.fS(X.tR(),this.element));this.Fk()}; $Ys=function(D,X,M){g.HE.call(this);var Q=this;this.B=D;this.a5=X;this.C2=M;this.o5=NaN;this.R5=this.OR=this.playButton=this.U=this.D=this.yf=this.M5=this.f$=this.eH=this.muteButton=this.J=this.A$=this.l_=this.p$=null;this.Y=new hum(this.B);this.progressBar=new g.dU(this.B,this.a5);this.LQ=new g.L$(this.B,this.a5);this.t$=new VBs(this.B,this.a5);this.K=new g.xm(this.rA,null,this);M=D.W();this.C2.subscribe("autohideupdate",this.Mr,this);var h=!D.getPlayerStateObject().isCued(),H;(this.zm=!D.T("delhi_modern_web_player")&& D.W().T("html5_player_dynamic_bottom_gradient"))?this.A$=H=new slW(D):H=new g.Y({L:"div",C:"ytp-gradient-bottom"});g.p(this,H);g.db(D,H.element,9);this.L$=new g.kn(H,250,h,100);g.p(this,this.L$);this.S=new g.Y({L:"div",C:"ytp-chrome-bottom",V:[{L:"div",C:"ytp-chrome-controls"}]});g.p(this,this.S);g.db(D,this.S.element,9);this.sR=new g.kn(this.S,250,h,100);g.p(this,this.sR);this.uj=this.S.element.children[0];g.p(this,this.Y);g.db(D,this.Y.element,6);this.Y.subscribe("show",function(T){Q.B.Ir(!T);D.RY(Q.Y, T)}); g.p(this,this.progressBar);this.progressBar.rC(this.S.element,0);h=new UQ(D,X);g.p(this,h);g.db(D,h.element,4);h=new g.M1({L:"div",C:"ytp-left-controls"});g.p(this,h);h.rC(this.uj);D.T("delhi_modern_web_player")||(H=new g.er(D,X,!1),g.p(this,H),H.rC(h.element));D.T("web_render_jump_buttons")&&(this.eH=new cm(D,-10),g.p(this,this.eH),this.eH.rC(h.element));M.yf||(this.playButton=new g.bK(D,X),g.p(this,this.playButton),this.playButton.rC(h.element));D.T("web_render_jump_buttons")&&(this.f$=new cm(D, 10),g.p(this,this.f$),this.f$.rC(h.element));D.T("delhi_modern_web_player_remove_nav_buttons")||(D.T("delhi_modern_web_player")&&(H=new g.er(D,X,!1),g.p(this,H),H.rC(h.element)),H=new g.er(D,X,!0),g.p(this,H),H.rC(h.element));if(!D.T("delhi_modern_web_player")||D.T("delhi_modern_web_player_horizontal_volume_controls"))if(H=new g.Y({L:"span",C:"ytp-volume-area"}),g.p(this,H),H.rC(h.element),!M.Vq&&(this.muteButton=new nN(D,X),g.p(this,this.muteButton),this.muteButton.rC(H.element),M.M5&&!M.J)){var t= new Kus(D,this.S.element);this.OR=t;g.p(this,t);t.rC(H.element);H=new g.Po(H.element);g.p(this,H);H.subscribe("hoverstart",function(){var T;(T=Q.OR)==null||Fu9(T,!0)}); H=new g.Po(h.element);g.p(this,H);H.subscribe("hoverend",function(){var T;(T=Q.OR)==null||Fu9(T,!1)})}D.T("delhi_modern_web_player_lhs_volume_controls")&&!D.T("delhi_modern_web_player_horizontal_volume_controls")&&(h.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new nN(D,X),g.p(this,this.muteButton),this.muteButton.rC(h.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.p(this,this.LQ);this.LQ.rC(h.element);this.M5=new Bm(D,this.progressBar);g.p(this,this.M5);this.M5.rC(h.element);M.T("web_key_moments_markers")&&(this.yf=new fN(D,this.progressBar),g.p(this,this.yf),this.yf.rC(h.element));D.T("delhi_modern_web_player")?this.G=new g.M1({L:"div",C:"ytp-right-controls",V:[{L:"div",C:V4.RIGHT_CONTROLS_LEFT},{L:"div",C:V4.RIGHT_CONTROLS_RIGHT}]}):this.G=new g.M1({L:"div",C:"ytp-right-controls"});g.p(this,this.G);this.G.rC(this.uj);D.T("delhi_modern_web_player")&&(this.J= new Zn(D),g.p(this,this.J),this.J.rC(this.G.h$(V4.RIGHT_CONTROLS_LEFT)),D.T("delhi_modern_web_player_lhs_volume_controls")||D.T("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new nN(D,X),g.p(this,this.muteButton),this.muteButton.rC(this.G.h$(V4.RIGHT_CONTROLS_LEFT))));this.q5=new Nui(D,X);g.p(this,this.q5);$E(this,this.q5,"RIGHT_CONTROLS_LEFT");this.settingsButton=new uK(D,this.Y);g.p(this,this.settingsButton);HV1(this.Y,this.settingsButton);$E(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); h=D.getVideoData();if(M.mS||h.KK&&M.controlsType==="1")this.D=new FF(D,X),g.p(this,this.D),this.D.rC(this.G.element);M.showMiniplayerButton&&!D.T("web_player_miniplayer_in_context_menu")&&(this.U=new Sr(D),g.p(this,this.U),$E(this,this.U,"RIGHT_CONTROLS_RIGHT"));M.l$&&(X=new ko(D,this.Y),g.p(this,X),$E(this,X,"RIGHT_CONTROLS_RIGHT"));M.tL&&(X=new VU(D),g.p(this,X),$E(this,X,"RIGHT_CONTROLS_RIGHT"));g.p(this,this.t$);$E(this,this.t$,"RIGHT_CONTROLS_RIGHT");g.p(this,this.K);this.N(D,"appresize",this.Fk); this.N(D,"fullscreentoggled",this.Fk);var q;(q=this.J)==null||q.subscribe("small-mode-expand-right-bottom-controls",function(){Vt5(Q)}); var w;(w=this.J)==null||w.subscribe("small-mode-collapse-right-bottom-controls",function(){Vt5(Q)}); this.N(D,"presentingplayerstatechange",this.Gh);this.N(D,"videodatachange",this.onVideoDataChange);this.Fk()}; Vt5=function(D){D.S.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",D.J.isExpanded())}; Bus=function(D,X){D.B.getPlayerStateObject().isCued()||X?X&&(D.sR.hide(),D.L$.hide(),D.muteButton&&D.muteButton.YR(!1),D.D&&D.D.YR(!1),D.U&&D.U.YR(!1),D.B.dU(D.Ly())):X||(D.sR.show(),D.L$.show(),D.muteButton&&D.muteButton.YR(!0),D.D&&D.D.YR(!0),D.U&&D.U.YR(!0),D.Mr())}; UYn=function(D){var X=D.B.lj().getPlayerSize().width;return Math.max(X-ZVd(D)*2,100)}; ZVd=function(D){if(D.B.T("web_player_rtr_ctrls")&&D.B.lj().Ot)return 0;var X=D.B.G_(),M=D.B.getVideoData().KK,Q=0;D.B.G_()&&D.B.isEmbedsShortsMode()&&(Q=(D.B.lj().getPlayerSize().width-D.B.getVideoContentRect().width)/2);return 12*(M?0:X?2:1)+Q}; cA2=function(D){var X=D.B.G_()?72:50,M=D.B.W();g.uS(M)&&(M.T("delhi_modern_web_player")?(X=g.lx(M.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),X=D.B.T("delhi_modern_web_player_compact_controls")||X>0&&D.B.getPlayerSize().width<=X,X=D.B.G_()?112:X?70:78,D.B.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(D=getComputedStyle(D.B.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",X+=Number(D.replace("px","")))):X=62,g.r_(M)&&(X=54));return X}; $E=function(D,X,M){D.B.T("delhi_modern_web_player")?X.rC(D.G.h$(V4[M])):X.rC(D.G.element)}; Sko=function(D){sL.call(this,D,!1);var X=this;this.suggestedActions={};this.S=null;this.Y=!1;this.B.T("web_player_misc_bugfix_a")&&(this.S=Kj(282639));this.element.setAttribute("data-overlay-order","7");this.N(this.B,"videodatachange",this.onVideoDataChange);this.N(this.B,g.rI("suggested_action_button_visible"),function(M){fV9(X,M.id);X.enabled=!0;X.a6()}); this.N(this.B,g.iB("suggested_action_button_visible"),function(M){X.enabled=!1;X.a6();X.B.removeCueRange(M.id)}); this.N(D,"presentingplayerstatechange",this.onStateChange)}; fV9=function(D,X){D.text=X;dzd(D);var M;D.onClickCommand=(M=D.suggestedActions[X])==null?void 0:M.tapCommand}; EAi=function(D){D.suggestedActions={};D.B.HD("suggested_action_button_visible");D.Y=!1}; ZM=function(D){g.Y.call(this,{L:"div",C:B_.TITLE,V:[{L:"div",gC:[B_.TEXT,D.T("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],V:[{L:"a",gC:[B_.LINK,B_.SESSIONLINK],Z:{target:D.W().eH,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Gs:"{{title}}"},{L:"div",C:B_.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=D;this.S=null;this.link=this.h$(B_.LINK);D.createClientVe(this.element,this,23851);this.N(D,"videodatachange",this.C$); this.N(D,"videoplayerreset",this.C$);this.C$()}; yA_=function(D){D.updateValue("channelLink","");D.updateValue("channelName","");g.r_(D.api.W())||D.api.T("enable_channel_title_always_focusable")?D.updateValue("channelTitleFocusable","0"):D.updateValue("channelTitleFocusable","-1")}; g.UJ=function(D,X){g.Y.call(this,{L:"div",V:[{L:"div",C:"ytp-tooltip-text-wrapper",Z:{"aria-hidden":"{{ariaHidden}}"},V:[{L:"div",C:"ytp-tooltip-edu",V:[{L:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",Z:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{L:"span",Gs:"{{eduText}}"}]},{L:"div",C:"ytp-tooltip-image"},{L:"div",C:"ytp-tooltip-title",V:[{L:"span",Gs:"{{title}}"},{L:"div",C:"ytp-tooltip-keyboard-shortcut", Gs:"{{keyBoardShortcutTitle}}"}]},{L:"div",C:"ytp-tooltip-bottom-text",V:[{L:"span",C:"ytp-tooltip-text",Gs:"{{text}}"},{L:"div",C:"ytp-tooltip-keyboard-shortcut",Gs:"{{keyBoardShortcut}}"}]},{L:"div",C:"ytp-tooltip-progress-bar-pill",V:[{L:"div",C:"ytp-tooltip-progress-bar-pill-time-stamp",Gs:"{{pillTimeStamp}}"},{L:"div",C:"ytp-tooltip-progress-bar-pill-title",Gs:"{{pillTitle}}"}]}]},{L:"div",C:"ytp-tooltip-bg",V:[{L:"div",C:"ytp-tooltip-duration",Gs:"{{duration}}"}]}]});var M=this;this.api=D;this.M5= X;this.K=function(Q){(Q=Q.relatedTarget)&&g.vD(M.S,Q)||M.KY()}; this.D=function(Q){M.type===3&&M.KY();(Q=Q.currentTarget)&&Q.nodeType===1&&!M.type&&(Q.removeEventListener("mouseover",M.D),Q.addEventListener("mouseout",M.K),Q.removeEventListener("focus",M.D),Q.addEventListener("blur",M.K),Pa1(M,Q,2))}; this.f$=function(){M.KY()}; this.type=this.S=null;this.J=!1;this.G=null;this.Y="";this.X=!0;this.scale=1;this.env=this.api.W();this.sR=this.env.G;this.wrapper=this.h$("ytp-tooltip-text-wrapper");this.bg=this.h$("ytp-tooltip-bg");this.L$=this.h$("ytp-tooltip-edu");this.image=this.h$("ytp-tooltip-image");this.text=this.h$("ytp-tooltip-text");this.bottomText=this.h$("ytp-tooltip-bottom-text");this.title=this.h$("ytp-tooltip-title");this.fade=new g.kn(this,100);this.U=NaN;this.ye=this.api.lj().getPlayerSize().width;this.R5=new g.W5(this.FzC, 250,this);this.a5=new g.W5(this.KY,5E3,this);g.p(this,this.fade);g.p(this,this.R5);g.p(this,this.a5);Pk&&(D=this.h$("ytp-tooltip-text"),D.setAttribute("role","text"),D.setAttribute("aria-live","polite"))}; mYm=function(D,X){D.env.T("delhi_modern_web_player")&&D.scale!==.6&&(D.scale=X?.8:1)}; g.fS=function(D,X){if(D.sR)return function(){}; X.addEventListener("mouseover",D.D);X.addEventListener("focus",D.D);var M=D.env.T("player_tooltip_data_title_killswitch")?X.getAttribute("title"):X.getAttribute("data-tooltip-title");M&&!X.hasAttribute("aria-label")&&X.setAttribute("aria-label",M);return function(){D.S===X&&D.KY();X.removeEventListener("mouseover",D.D);X.removeEventListener("focus",D.D)}}; Pa1=function(D,X,M,Q){if(X&&!X.hasAttribute)D=new g.ys("showElementTooltip called with non-element.",X.toString()),g.ET(D);else{isNaN(D.U)||(D.U=NaN,D.bg.style.background="");g.tN(D.element,"ytp-tooltip-progress-bar-style");D.S=X;D.J=!!Q;Q?D.Y=Q:(D.env.T("player_tooltip_data_title_killswitch")?D.Y=X.getAttribute("title"):D.Y=X.getAttribute("data-tooltip-title"),D.env.T("player_tooltip_data_title_killswitch")?X.removeAttribute("title"):X.removeAttribute("data-tooltip-title"));g.ME(D.element,"ytp-tooltip"); var h=X.getAttribute("data-tooltip-image");h&&(D.image.style.backgroundImage="url("+h+")");Q?D.update({ariaHidden:"false"}):D.update({ariaHidden:"true"});g.qE(D.element,"ytp-tooltip-image-enabled",!!h);X=X.getAttribute("data-tooltip-opaque");g.qE(D.element,"ytp-tooltip-opaque",!!X);D.type=M;D.api.addEventListener("appresize",D.f$);D.X&&(c_(D),D.fade.show(0))}}; c_=function(D){if(D.S){var X=D.S.getAttribute("data-tooltip-text");if(D.Y&&D.S.getAttribute("aria-label")!==D.Y)var M=D.Y;var Q=D.S.getAttribute("aria-keyshortcuts"),h=D.S.getAttribute("data-title-no-tooltip");Q&&h&&(M=g.W9("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:h,SHORTCUT_KEY:Q}));M&&D.S.setAttribute("aria-label",M);if(X&&!D.J){mYm(D,!0);var H=D.S;D.updateValue("text",X);M=H.getAttribute("data-duration");D.update({title:D.Y,duration:M});H=H.getAttribute("data-preview"); D.env.T("delhi_modern_web_player")?(D.updateValue("title",h),D.updateValue("keyBoardShortcutTitle",Q.toUpperCase())):mYm(D,!1);Q=243*D.scale;h=141*D.scale;D.bg.style.width=Q+"px";D.bg.style.height=h+"px";D.bg.style.backgroundImage=H?"url("+H+")":"";D.bg.style.backgroundSize=Q+"px "+h+"px";D.wrapper.style.width=Q+"px";g.HC(D.element,["ytp-text-detail","ytp-preview"]);g.qE(D.element,"ytp-has-duration",!!M)}else h&&Q&&D.env.T("delhi_modern_web_player")?(D.updateValue("text",h),D.updateValue("keyBoardShortcut", Q.toUpperCase())):D.updateValue("text",D.Y),g.NE(D.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);M=D.S;M.hasAttribute("data-tooltip-offset-y")?(M=Number(M.getAttribute("data-tooltip-offset-y")),M=isNaN(M)?0:M):M=0;nA1(D,!!X,void 0,M)}}; nA1=function(D,X,M,Q){var h=Math.min(D.ye,300*D.scale);D.element.style.maxWidth=X?"":h+"px";D.M5.D7(D.element,D.S,M,D.type===1,Q);D.element.style.top?g.hN(D.element,"ytp-bottom"):D.element.style.bottom&&g.hN(D.element,"ytp-top");D.type===3&&D.a5.start()}; bV5=function(D,X){g.qE(D.element,"ytp-preview",X>=0);if(!(X<0||X===D.U)){D.U=X;X=243*D.scale;var M=141*D.scale,Q=UUp(D.G,D.U,X);KXs(D.bg,Q,X,M,!0);D.R5.start()}}; euW=function(D){var X=D.S;D.type===3&&D.a5.stop();D.api.removeEventListener("appresize",D.f$);D.J||(D.env.T("player_tooltip_data_title_killswitch")?X.setAttribute("title",D.Y):X.setAttribute("data-tooltip-title",D.Y));D.Y="";D.S=null;D.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});D.wrapper.style.width=""}; IVm=function(D){g.Y.call(this,{L:"button",gC:["ytp-watch-later-button","ytp-button"],Z:{title:D.T("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.eO(D.W()))},V:[{L:"div",C:"ytp-watch-later-icon",Gs:"{{icon}}"},{L:"div",C:"ytp-watch-later-title",Gs:"Ver m\u00e1s tarde"}]});this.B=D;this.icon=null;this.visible=this.isRequestPending=this.S=!1;Hli(D);D.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.N(D,"videoplayerreset",this.onReset);this.N(D,"appresize",this.oU);this.N(D,"videodatachange",this.oU);this.N(D,"presentingplayerstatechange",this.oU);this.oU();D=this.B.W();var X=g.vJ("yt-player-watch-later-pending");D.U&&X?(w9s(),Ruo(this)):this.C$(2);g.qE(this.element,"ytp-show-watch-later-title",g.eO(D));EI(this.B,this.element,this)}; gA5=function(D){var X=D.B.getPlayerSize(),M=D.B.W(),Q=D.B.getVideoData(),h=g.eO(M)&&g.R8(D.B)&&g.x(D.B.getPlayerStateObject(),128),H=M.Y;return M.DJ&&X.width>=240&&!Q.isAd()&&Q.DJ&&!h&&!Q.KK&&!D.B.isEmbedsShortsMode()&&!H}; vAs=function(D,X){Se_(g.xv(D.B.W()),"wl_button",function(){w9s({videoId:X});window.location.reload()})}; Ruo=function(D){if(!D.isRequestPending){D.isRequestPending=!0;D.C$(3);var X=D.B.getVideoData();X=D.S?X.removeFromWatchLaterCommand:X.addToWatchLaterCommand;var M=D.B.iE(),Q=D.S?function(){D.S=!1;D.isRequestPending=!1;D.C$(2);D.B.W().K&&D.B.ER("WATCH_LATER_VIDEO_REMOVED")}:function(){D.S=!0; D.isRequestPending=!1;D.C$(1);D.B.W().G&&D.B.Wc(D.element);D.B.W().K&&D.B.ER("WATCH_LATER_VIDEO_ADDED")}; eQ(M,X).then(Q,function(){D.isRequestPending=!1;D.C$(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");D.B.W().K&&D.B.ER("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; dY9=function(D,X){if(X!==D.icon){switch(X){case 3:var M=T6();break;case 1:M=TB();break;case 2:M={L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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:M={L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path", xR:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}D.updateValue("icon",M);D.icon=X}}; rAp=function(){g.oF.apply(this,arguments);this.F$=(this.r8=g.eO(this.api.W()))&&(this.api.W().G||MB()||Dx());this.ev=48;this.Sv=69;this.SX=this.HI=null;this.UX=[];this.wl=this.xa=this.EZ=this.zo=this.yF=null;this.LW=[];this.contextMenu=this.Mw=this.overflowButton=this.GI=this.XP=this.searchButton=this.copyLinkButton=this.shareButton=this.pS=this.Dk=this.title=this.channelAvatar=this.xO=this.tooltip=null;this.NS=!1;this.l7=this.dD=this.P0=this.X7=null;this.pPf=this.Pf=this.QY=!1}; iVW=function(D){var X=D.api.W(),M=g.x(D.api.getPlayerStateObject(),128);return X.U&&M&&!D.api.isFullscreen()}; oAo=function(D){if(D.cB()&&!D.api.isEmbedsShortsMode()&&D.GI){var X=D.api.T("web_player_hide_overflow_button_if_empty_menu");!D.pS||X&&!gA5(D.pS)||bN2(D.GI,D.pS);!D.shareButton||X&&!xPW(D.shareButton)||bN2(D.GI,D.shareButton);!D.copyLinkButton||X&&!pIW(D.copyLinkButton)||bN2(D.GI,D.copyLinkButton)}else{X=D.api.W().getWebPlayerContextConfig();if(D.GI){for(var M=D.GI,Q=g.e(M.actionButtons),h=Q.next();!h.done;h=Q.next())h.value.detach();M.actionButtons=[]}D.searchButton&&!g.vD(D.Dk.element,D.searchButton.element)&& D.searchButton.rC(D.Dk.element);!D.pS||(X==null?0:X.hideTopWatchNextButton)||g.vD(D.Dk.element,D.pS.element)||D.pS.rC(D.Dk.element);!D.shareButton||(X==null?0:X.hideTopShareButton)||g.vD(D.Dk.element,D.shareButton.element)||D.shareButton.rC(D.Dk.element);D.copyLinkButton&&!g.vD(D.Dk.element,D.copyLinkButton.element)&&D.copyLinkButton.rC(D.Dk.element)}}; Ca2=function(D,X,M){X=M?X.lastElementChild:X.firstElementChild;for(var Q=null;X;){if(NC(X,"display")!=="none"&&X.getAttribute("aria-hidden")!=="true"){var h=void 0;X.tabIndex>=0?h=X:h=Ca2(D,X,M);h&&(Q?M?h.tabIndex>Q.tabIndex&&(Q=h):h.tabIndexX||M>10||(D.play(),g.Vj(function(){pwi(D,D.getCurrentTime(),M+1)},500))}; AAH=function(D,X){D.D&&D.D.equals(X)||(D.D&&D.D.dispose(),D.D=X)}; YkH=function(D){D.Aq()&&(D.zs&&D.zs.UJ("rs_s"),lD&&D.getCurrentTime()>0&&D.seekTo(0),D.o0(),D.load(),AAH(D,null));delete D.X}; lVm=function(D,X){return D.view?WE(X,D.view.start,D.view.end):X}; xYp=function(D){D=D===void 0?!1:D;JAm||(window.addEventListener(Pk?"touchstart":"click",function(){var X=D;X=X===void 0?!1:X;for(var M=EJ.length;M<4;M++){var Q=g.m7("VIDEO");Q.load();EJ.push(X?new g.SB(Q):new g.vo(Q))}},{capture:!0, passive:!0}),JAm=!0)}; Wus=function(D,X,M,Q,h){h=h===void 0?!1:h;var H=M.getVideoData(),t=X.getVideoData();if(M.getPlayerState().isError())return{msg:"player-error"};var q=t.Y;if(X.Gw()>Q/1E3+1)return{msg:"in-the-past"};if(t.isLivePlayback&&!isFinite(Q))return{msg:"live-infinite"};Q=X.pK();var w=null;Q&&(w=h?Q.S.played||CE([],[]):Q.isView()?Q.mediaElement.Me():Q.Me());if(w&&w.length>12&&g.EN(H))return{msg:"played-ranges"};if(!H.Y)return null;if(!q)return{msg:"no-pvd-formats"};if(!H.Y.S||!q.S)return{msg:"non-dash"};h=q.videoInfos[0]; Q=H.Y.videoInfos[0];D.f$&&qp(t)&&(h=X.gL(),Q=M.gL());if(!h||!Q)return{msg:"no-video-info"};if(D.X&&(mq(h)||mq(Q)))return{msg:"av1"};X=D.U&&t.TI()&&uw();if(Q.containerType!==h.containerType)if(X)t.SH("sgap",{ierr:"container"});else return{msg:"container"};if(D.D&&!X&&(Q.ij!==h.ij||Q.ij===""||h.ij===""))return{msg:"codec"};if(D.J&&Q.video&&h.video&&Math.abs(Q.video.width/Q.video.height-h.video.width/h.video.height)>.01)return{msg:"ratio"};if(g.EN(t)&&g.EN(H))return{msg:"content-protection"};q=q.S[0]; H=H.Y.S[0];M=q.audio;w=H.audio;if(M.sampleRate!==w.sampleRate&&!g.Xu)if(X)t.SH("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:q.itag,cr:M.sampleRate,ni:H.itag,nr:w.sampleRate};return(M.numChannels||2)!==(w.numChannels||2)?{msg:"channel-count"}:D.K&&t.TI()&&h.video.fps!==Q.video.fps?{msg:"fps"}:null}; G_R=function(D,X,M,Q){Q=Q===void 0?!1:Q;var h=D.getVideoData(),H=X.getVideoData();if(!h.W().supportsGaplessShorts())return{nq:"env"};if((!M.eH||h.vB&&!h.isAd()||H.vB&&!H.isAd())&&(!M.G||h.vB&&!h.isAd()||H.vB)&&(!M.Y||H.vB&&!H.isAd()||h.vB)&&(h.vB||H.vB))return{nq:"autoplay"};if(h.endSeconds>0)return{nq:"endcr"};if(!h.J)return{nq:"client"};if(!D.VV())return{nq:"no-empty"};D=Wus(M,D,X,Infinity,Q);return D!=null?{nq:D.msg}:null}; y4=function(D){g.O.call(this);this.app=D;this.D=this.U=this.G=this.S=null;this.Y=1;this.events=new g.HE(this);this.events.N(this.app.XF,g.iB("gaplessshortslooprange"),this.K);g.p(this,this.events)}; zu1=function(){this.S=this.J=this.Y=this.G=this.eH=this.X=this.f$=this.K=this.D=this.U=!1}; k_d=function(D){var X=new zu1;X.U=D.T("h5_gapless_support_types_diff");X.K=!1;X.f$=D.T("html5_gapless_use_format_info_fix");X.X=D.T("html5_gapless_disable_on_av1")&&!D.T("html5_gapless_enable_on_av1");X.D=D.T("html5_gapless_check_codec_diff_strictly");X.eH=D.T("html5_gapless_on_ad_autoplay");X.J=D.T("html5_gapless_disable_diff_aspect_radio");X.G=D.T("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!D.T("html5_disable_loop_range_for_shorts_ads");X.S=D.T("html5_pseudogapless_shorts_seek_to_next_start"); X.Y=D.T("html5_gapless_ad_autoplay_on_video_to_ad_only");return X}; g.P_=function(D,X,M,Q){Q=Q===void 0?!1:Q;wj.call(this);this.mediaElement=D;this.start=X;this.end=M;this.Jt=Q}; usH=function(D,X,M,Q,h,H){H=H===void 0?0:H;g.O.call(this);var t=this;this.policy=D;this.S=X;this.G=M;this.dI=h;this.D=H;this.U=this.Y=null;this.currentVideoDuration=this.X=-1;this.J=!1;this.Qn=new ql;this.Ni=Q-X.w3()*1E3;this.Qn.then(void 0,function(){}); this.timeout=new g.W5(function(){t.wM("timeout")},1E4); g.p(this,this.timeout);this.K=isFinite(Q)||this.dI.W().experiments.Z4("html5_pseudogapless_shorts")&&qp(X.getVideoData());this.status={status:0,error:null}}; DTW=function(D){var X,M,Q,h,H,t,q,w,T;return g.r(function(L){if(L.S==1){if(D.H2())return L.return(Promise.reject(Error(D.status.error||"disposed")));D.timeout.start();return g.I(L,D.Qn,2)}X=D.S.pK();if(X.isEnded())return D.wM("ended_in_finishTransition"),L.return(Promise.reject(Error(D.status.error||"")));if(!D.U||!Ml(D.U))return D.wM("next_mse_closed"),L.return(Promise.reject(Error(D.status.error||"")));if(D.G.U5()!==D.U)return D.wM("next_mse_mismatch"),L.return(Promise.reject(Error(D.status.error|| "")));M=mX(D);Q=M.AK;h=M.GS;H=M.H7;D.S.Ya(!1,!0);t=jv9(D,X,Q,H,!D.G.getVideoData().isAd());D.G.setMediaElement(t);(q=D.S.Ql())&&D.G.wy(q.I0,q.ww);D.K&&(D.policy.S||D.G.seekTo(D.G.getCurrentTime()+.001,{sx:!0,wW:3,Aa:"gapless_pseudo"}),t.play());w=X.ip();w.cpn=D.S.getVideoData().clientPlaybackNonce;w.st=""+Q;w.et=""+H;D.G.SH("gapless",w);D.S.SH("gaplessTo",{cpn:D.G.getVideoData().clientPlaybackNonce});T=D.S.getPlayerType()===D.G.getPlayerType();D.S.GU(h,!0,!1,T,D.G.getVideoData().clientPlaybackNonce); D.G.GU(D.G.getCurrentTime(),!0,!0,T,D.S.getVideoData().clientPlaybackNonce);D.G.GK();g.SI(function(){!D.G.getVideoData().K&&D.G.getPlayerState().isOrWillBePlaying()&&D.G.sY()}); n$(D,6);D.dispose();return L.return(Promise.resolve())})}; hgH=function(D){if(D.G.getVideoData().Y){var X=D.dI.W().T("html5_gapless_suspend_next_loader")&&D.D===1;D.G.SU(D.U,X,XMd(D));n$(D,3);Mmi(D);var M=Qrn(D);X=M.Lp;M=M.Au;X.subscribe("updateend",D.UP,D);M.subscribe("updateend",D.UP,D);D.UP(X);D.UP(M)}}; Mmi=function(D){D.S.unsubscribe("internalvideodatachange",D.pj,D);D.G.unsubscribe("internalvideodatachange",D.pj,D);D.dI.W().T("html5_gapless_use_format_info_fix")&&(D.S.unsubscribe("internalvideoformatchange",D.pj,D),D.G.unsubscribe("internalvideoformatchange",D.pj,D));D.S.unsubscribe("mediasourceattached",D.pj,D);D.G.unsubscribe("statechange",D.Pj,D)}; Hco=function(D){var X=D.dI.W().experiments.Q2().S.xl(b6);return Wus(D.policy,D.S,D.G,D.Ni,X)}; jv9=function(D,X,M,Q,h){if(D.dI.W().experiments.Q2().S.xl(b6))return X.view={start:M,end:Q,Jt:h===void 0?!1:h},X;D=X.isView()?X.mediaElement:X;return new g.P_(D,M,Q,h)}; n$=function(D,X){X<=D.status.status||(D.status={status:X,error:null},X===5&&D.Qn.resolve())}; XMd=function(D){return D.dI.W().T("html5_gapless_no_clear_buffer_timeline")&&D.D===1&&Er(D.S.getVideoData())}; mX=function(D){var X=D.S.pK();X=X.isView()?X.start:0;var M=D.S.getVideoData().isLivePlayback?Infinity:D.S.uB(!0);M=Math.min(D.Ni/1E3,M)+X;var Q=D.K?100:0;D=M-D.G.Gw()+Q;return{YG:X,AK:D,GS:M,H7:Infinity}}; Qrn=function(D){return{Lp:D.Y.S.jt,Au:D.Y.G.jt}}; eB=function(D){g.O.call(this);var X=this;this.app=D;this.J=this.G=this.S=null;this.f$=!1;this.eH=this.X=this.Y=this.U=null;this.D=k_d(this.app.W());this.K=function(){g.SI(function(){tm9(X)})}}; N2H=function(D,X,M,Q,h){Q=Q===void 0?0:Q;h=h===void 0?0:h;D.VV()||(Rl(D),Il(D));D.U=new ql;D.S=X;var H=M,t=h===0;t=t===void 0?!0:t;var q=D.app.v2(),w=q.getVideoData().isLivePlayback?Infinity:q.uB(!0)*1E3;H>w&&(H=w-200,D.f$=!0);t&&q.getCurrentTime()>=H/1E3?D.K():(D.G=q,t&&(t=H,H=D.G,D.app.XF.addEventListener(g.rI("vqueued"),D.K),t=isFinite(t)||t/1E3>H.getDuration()?t:0x8000000000000,D.J=new g.v9(t,0x8000000000000,{namespace:"vqueued"}),H.addCueRange(D.J)));t=Q/=1E3;H=X.getVideoData().S;Q&&H&&D.G&& (q=Q,w=0,X.getVideoData().isLivePlayback&&(t=Math.min(M/1E3,D.G.uB(!0)),w=Math.max(0,t-D.G.getCurrentTime()),q=Math.min(Q,X.uB()+w)),t=d0p(H,q)||Q,t!==Q&&D.S.SH("qvaln",{st:Q,at:t,rm:w,ct:q}));X=t;Q=D.S;Q.getVideoData().Ky=!0;Q.getVideoData().J=!0;Q.hn(!0);H={};D.G&&(H=D.G.pk(),t=D.G.getVideoData().clientPlaybackNonce,H={crt:(H*1E3).toFixed(),cpn:t});Q.SH("queued",H);X!==0&&Q.seekTo(X+.01,{sx:!0,wW:3,Aa:"videoqueuer_queued"});D.Y=new usH(D.D,D.app.v2(),D.S,M,D.app,h);M=D.Y;M.status.status!==Infinity&& (n$(M,1),M.S.subscribe("internalvideodatachange",M.pj,M),M.G.subscribe("internalvideodatachange",M.pj,M),M.dI.W().T("html5_gapless_use_format_info_fix")&&(M.S.subscribe("internalvideoformatchange",M.pj,M),M.G.subscribe("internalvideoformatchange",M.pj,M)),M.S.subscribe("mediasourceattached",M.pj,M),M.G.subscribe("statechange",M.Pj,M),M.S.subscribe("newelementrequired",M.Ec,M),M.pj());return D.U}; tm9=function(D){var X,M,Q,h,H,t,q;g.r(function(w){switch(w.S){case 1:if(D.H2()||!D.U||!D.S)return w.return();D.f$&&D.app.v2().vH(!0,!1);X=null;if(!D.Y){w.D4(2);break}g.N_(w,3);return g.I(w,DTW(D.Y),5);case 5:g.Ty(w,2);break;case 3:X=M=g.LG(w);case 2:if(!D.S)return w.return();qwo.uQ("vqsp",function(){D.app.Sy(D.S)}); if(!D.S)return w.return();Q=D.S.pK();D.app.W().T("html5_gapless_seek_on_negative_time")&&Q&&Q.getCurrentTime()<-.01&&D.S.seekTo(0);qwo.uQ("vqpv",function(){D.app.playVideo()}); X&&(D.S?(h=X?X.message:"forced",(H=D.G)==null||H.SH("gapfulfbk",{r:h}),D.S.Aj(h)):(t=D.G)==null||t.SH("gapsp",{}));q=D.U;Il(D);q&&q.resolve();return w.return(Promise.resolve())}})}; Il=function(D,X){X=X===void 0?!1:X;if(D.G){if(D.J){var M=D.G;D.app.XF.removeEventListener(g.rI("vqueued"),D.K);M.removeCueRange(D.J)}D.G=null;D.J=null}D.Y&&(D.Y.status.status!==6&&(M=D.Y,M.status.status!==Infinity&&M.D!==1&&M.wM("Canceled")),D.Y=null);D.U=null;D.S&&!X&&D.S!==D.app.eh()&&D.S!==D.app.v2()&&D.S.dispose();D.S&&X&&D.S.fh();D.S=null;D.f$=!1}; Rl=function(D){D.eH&&D.X&&D.eH.removeEventListener("timeupdate",D.X);D.X=null;D.eH=null}; T2R=function(D,X){if(D.app.W().Q2().S.xl(wMH)){Rl(D);var M,Q=(M=D.app.v2())==null?void 0:M.pK();Q&&D.S&&(D.S.getVideoData().B3=!0,D.X=function(){var h=Q.getCurrentTime();h>=X+.2&&(h=Date.now()-(h-X)*1E3,D.app.g6().tick("pbs",h),Rl(D))},D.eH=Q,Q.addEventListener("timeupdate",D.X))}}; L0d=function(D){var X;return((X=D.Y)==null?void 0:X.currentVideoDuration)||-1}; srW=function(D,X,M){if(D.VV())return"qie";if(D.S==null||D.S.H2()||D.S.getVideoData()==null)return"qpd";if(X.videoId!==D.S.DW())return"vinm";if(L0d(D)<=0)return"ivd";if(M!==1)return"upt";if((M=D.Y)==null)D=void 0;else if(M.getStatus().status!==5)D="niss";else if(Hco(M)!=null)D="pge";else{X=Qrn(M);D=X.Lp;var Q=X.Au;X=g.lx(M.dI.W().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var h=M.X+X;M.dI.W().experiments.Z4("html5_pseudogapless_shorts")&&(h=mX(M).AK+X);M=AC(Q.K6(),h);D=AC(D.K6(),h); D=!(X>0)||M&&D?null:"neb"}return D!=null?D:null}; K0R=function(){g.Dq.call(this);var D=this;this.fullscreen=0;this.U=this.Y=this.pictureInPicture=this.S=this.G=this.inline=!1;this.D=function(){D.a6()}; pAo(this.D);this.X=this.getVisibilityState(this.CF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.MX(),this.pB(),this.VJ(),this.y5())}; G6W=function(D){return!(D.isMinimized()||D.isInline()||D.isBackground()||D.MX()||D.pB()||D.VJ()||D.y5())}; g.g7=function(D){g.O.call(this);this.j=D;this.videoData=this.playerState=null}; Vmo=function(D,X,M){return(M===void 0?0:M)?new al1(D,X):new F09(D,X)}; F09=function(D,X){g.O.call(this);var M=this;this.data=[];this.Y=D||NaN;this.G=X||null;this.S=new g.W5(function(){v_(M);d7(M)}); g.p(this,this.S)}; v_=function(D){var X=(0,g.fi)();D.data.forEach(function(M){M.expireQ)break;var H=M.S.remove(),t=M.map.get(H);t&&t.fB===h&&i6(M,H,!0)}ol(M)}); this.map=new Map;this.S=new o9;Number.isNaN(D);g.p(this,this.Y)}; i6=function(D,X,M){var Q=D.map.get(X);if(!Q)return!1;D.map.delete(X);M&&D.G&&D.G(Q.value);if(D.S.S.length>D.map.size*2)for(D.S.clear(),X=g.e(D.map.entries()),M=X.next();!M.done;M=X.next())Q=g.e(M.value),M=Q.next().value,Q=Q.next().value,isFinite(Q.fB)&&D.S.enqueue(Q.fB,M);return!0}; ol=function(D){D.Y.stop();for(var X;!D.S.isEmpty();){var M=iH(D.S);var Q=D.S.S;Q=Q.length!=0?Q[0].getValue():void 0;if(M===void 0||Q===void 0)break;if((Q=D.map.get(Q))&&Q.fB===M){X=M;break}else D.S.remove()}X!==void 0&&(M=(0,g.fi)(),D.Y.start(Math.max(X-M,100)))}; g.C$=function(D,X){g.O.call(this);var M=this;this.api=D;this.U={};this.eg=null;this.D={};this.G=null;this.K=new Map;this.X=null;X=Vmo(X,function(Q){Q!==M.Y5({playerType:Q.getPlayerType()})&&Q.dispose()},D.W().Q2().S.xl($Tp)); g.p(this,X);this.Y=this.eH=this.S=new g.g7(D.W());this.J=X}; OJ=function(D){var X=[{cpn:D.Y.Rj()}];D.G&&X.push({cpn:D.G.Rj()});D.api.publish("playbackChange",{M2z:X})}; B2s=function(D){for(var X=g.e(Object.values(D.D)),M=X.next();!M.done;M=X.next())M.value.dispose();D.D={};D.G=null;D.X=null;D.K.clear();OJ(D)}; p$=function(D,X,M){var Q=Q===void 0?"":Q;D.D[X.Rj()]=X;D.G=X;M&&(D.X=X);D.K.set(Q,X);OJ(D)}; y6s=function(D){var X=D.experiments,M=X.Z4.bind(X);ZcR=M("html5_use_async_stopVideo");UTm=M("html5_pause_for_async_stopVideo");c6s=M("html5_not_reset_media_source");M("html5_listen_for_audio_output_changed")&&(fls=!0);Qb=M("html5_not_reset_media_source");Swn=M("html5_not_reset_media_source");zU=M("html5_retain_source_buffer_appends_for_debugging");LCm(M("web_watch_pip")||M("web_shorts_pip"));l95(M("log_foreground_not_focused_as_background"));xW5(M("web_player_pip_logging_fix"));M("html5_mediastream_applies_timestamp_offset")&& (oY=!0);if(!X.Q2().S.xl(EOn)){var Q=g.lx(X,"html5_cobalt_override_quic");Q&&ZY("QUIC",+(Q>0))}D.t5()&&Nbp();Error.stackTraceLimit=50;var h=g.lx(X,"html5_idle_rate_limit_ms");h&&Object.defineProperty(window,"requestIdleCallback",{value:function(H){return window.setTimeout(H,h)}}); tNs(D.D);EC1(M("html5_use_ump_request_slicer"));Mzd(M("html5_record_now"));M("html5_disable_streaming_xhr")&&(z3=!1);M("html5_byterate_constraints")&&(nl=!0);M("html5_use_non_active_broadcast_for_post_live")&&(qH=!0);M("html5_enable_encrypted_av1")&&(PE=!0);hfi(g.lx(D.experiments,"html5_sticky_duration_mos"))}; vOW=function(D){function X(H,t,q){Q.push(l3(t(q),function(w){M[H]=w}))} var M={};D=D.experiments.F7();var Q=[],h=D.S.xl(Pi_);Mx(h)&&Number(h)>0&&X("SetPreferMinimalPostProcessing",uY1,Number(h)===1);(h=D.S.xl(mTi))&&X("MediaSource.EnableUsingMediaSourceBufferedRange",jpd,h===1);(h=D.S.xl(nO9))&&X("HTTP3",DDs,h===1);(h=D.S.xl(bcH))&&X("MediaSource.EnableUsingMediaSourceAttachmentMethods",XBm,h===1);(h=D.S.xl(eg_))&&X("QUIC",Mds,h===1);(h=D.S.xl(Rg2))&&X("Media.PlayerConfiguration.DecodeToTexturePreferred",h5s,h===1);(h=D.S.xl(Ils))&&X("Media.AudioWriteDurationLocal",Q81, Number(h));(D=D.S.xl(gOi))&&X("Media.DisableExternalAllocator",HSi,Number(D)===1);return l3(PxH(Q),function(){return M})}; dT1=function(D){this.G=D===void 0?15:D;this.values=new Float64Array(176);this.S=new Float64Array(11);this.Y=new Float64Array(16)}; A$=function(D,X,M,Q){M=M===void 0?.5:M;Q=Q===void 0?0:Q;this.resolution=X;this.G=0;this.Y=!1;this.xk=!0;this.S=Math.round(D*this.resolution);this.values=Array(this.S);for(D=0;D0)X=D.byterate,this.f$=!0;else{var Q; M=(((Q=navigator.connection)==null?void 0:Q.downlink)||0)*64*1024;M>0&&(X=M,this.f$=!0)}this.Y.AS(this.policy.X,X);D.delay>0&&this.K.AS(1,Math.min(D.delay,2));D.stall>0&&this.J.AS(1,D.stall);D.init>0&&(this.uj=Math.min(D.init,this.uj));D.interruptions&&(this.U=this.U.concat(D.interruptions),this.U.length>16&&this.U.pop());this.R5=(0,g.fi)();this.policy.J>0&&(this.yf=new g.W5(this.A$,this.policy.J,this),g.p(this,this.yf),this.yf.start())}; Ff=function(D,X,M,Q){D.Y.AS(Q===void 0?X:Q,M/X);D.X=(0,g.fi)()}; fvd=function(D){D.D||(D.D=(0,g.fi)());D.policy.eH&&(D.X=(0,g.fi)())}; EVp=function(D,X){if(D.D){var M=X-D.D;if(M<6E4){if(M>1E3){var Q=D.interruptions;Q.push(Math.ceil(M));Q.sort(function(h,H){return H-h}); Q.length>16&&Q.pop()}D.sR+=M}}D.D=X}; YE=function(D,X,M,Q,h,H){H=H===void 0?!1:H;D.M5.AS(X,M/X);D.X=(0,g.fi)();h||D.eH.AS(1,X-Q);H||(D.D=0);D.R5>-1&&(0,g.fi)()-D.R5>3E4&&(HxR(T4(D)),D.R5=(0,g.fi)(),D.f$=!0)}; l6=function(D,X,M){X=Math.max(X,D.G.S);D.J.AS(1,M/X)}; A1=function(D){D=D.K.OW()+D.L$.OW()||0;D=isNaN(D)?.5:D;return D=Math.min(D,5)}; icR=function(D,X,M){isNaN(M)||(D.a5+=M);isNaN(X)||(D.OR+=X)}; oO1=function(D){D=D.Y.OW();return D>0?D:1}; lP=function(D,X,M){X=X===void 0?!1:X;M=M===void 0?1048576:M;var Q=oO1(D);Q=1/((D.J.OW()||0)*D.policy.f$+1/Q);var h=D.M5.OW();h=h>0?h:1;var H=Math.max(Q,h);D.policy.D>0&&h=4E3}; Cip=function(D){this.experiments=D;this.S=17;this.Y=13E4;this.X=.5;this.U=this.G=!1;this.R5=this.T("html5_use_histogram_for_bandwidth");this.D=g.lx(this.experiments,"html5_auxiliary_estimate_weight");this.f$=g.lx(this.experiments,"html5_stall_factor")||1;this.J=g.lx(this.experiments,"html5_check_for_idle_network_interval_ms");this.K=this.experiments.Z4("html5_trigger_loader_when_idle_network");this.eH=this.experiments.Z4("html5_sabr_fetch_on_idle_network_preloaded_players")}; Ocp=function(D,X,M){var Q=new Cip(M);D&&(Q.G=!0,Q.X=.1);M.Z4("html5_media_time_weight")&&(Q.G=!1);X&&(Q.Y=X/8);Q.U=Vf()>=480;return Q}; A6s=function(D,X,M,Q){Q=Q===void 0?0:Q;g.pS.call(this,M.WO());var h=this;this.Bb=D;this.videoData=X;this.duration=Q;this.S=this.startTimeSecs=0;this.G=this.Y=!0;this.U=new pM1(function(H,t){return void h.SH(H,t)})}; pM1=function(D){this.SH=D;this.S={}}; Yw5=function(D,X,M){D.S[X]||(D.SH("huli-sdai-err",M),D.S[X]=!0)}; llR=function(D){this.end=this.start=D}; g.J$=function(){this.S=new Map;this.Y=new Map;this.G=new Map}; J6R=function(D){var X=this;this.j=D;this.G=[];this.Y=new Map;this.U=new Map;this.S=new Map;this.py={oK:function(){return X.Y}, uER:function(){return X.U}, Zm:function(){return X.G}}; this.D=this.j.T("html5_huli_ssdai_deprecate_playback_timeline_id")}; xTR=function(D,X,M){D=D.G;var Q=g.sK(D,{sH:X},function(t,q){return t.sH-q.sH}); Q=Q<0?(Q+2)*-1:Q;if(Q>=0)for(var h=Q;h<=Q+1&&h=H.sH-M&&X<=H.e$+M)return H}}; G72=function(D,X){g.VF(D.G,X,function(M,Q){return M.sH===Q.sH?M.durationMs-Q.durationMs:M.sH-Q.sH}); D.Y.set(X.cpn,X);X.CK&&!D.D&&D.U.set(X.CK,X);X.qL&&W0_(D,X.qL,X)}; zgW=function(D,X){for(var M=[],Q=g.e(D.G),h=Q.next();!h.done;h=Q.next())h=h.value,X(h)||M.push(h);if(D.j.T("html5_sstm_fixes"))for(Q=g.e(D.G),h=Q.next();!h.done;h=Q.next())h=h.value,X(h)&&(D.Y.delete(h.cpn),h.CK&&D.U.delete(h.CK));D.G=M}; k7R=function(D,X){X=g.sK(D.G,{e$:X},function(M,Q){return M.e$-Q.e$}); return X>=0?D.G[X]:null}; uy5=function(D,X){var M=D.G.indexOf(X);M>=0&&D.G.splice(M,1);D.Y.delete(X.cpn);X.CK&&D.U.delete(X.CK)}; W0_=function(D,X,M){var Q=D.S.get(X);Q?(Q.push(M),g.aM(Q,function(h,H){return h.sH-H.sH})):D.S.set(X,[M])}; g.xE=function(D,X,M,Q){g.O.call(this);var h=this;this.api=D;this.j=X;this.playback=M;this.app=Q;this.f$=new g.J$;this.G=new Map;this.J5=new Map;this.a5=new Map;this.L$=null;this.h5=NaN;this.q5=this.R2=null;this.zm=new g.W5(function(){jrW(h,h.h5,h.R2||void 0)}); this.events=new g.HE(this);this.p$=15E3;this.X=new g.W5(function(){h.J=!0;h.playback.o$(h.p$);Drs(h);if(h.playback.getVideoData().gp()){var H;h.Tm({togab:(H=h.D)==null?void 0:H.identifier})}h.MP(!1)},this.p$); this.J=!1;this.WW=new Map;this.A$=[];this.D=null;this.iM=new Set;this.K=[];this.uj=[];this.bM=[];this.DJ=[];this.yf=new Set;this.BH=0;this.eH=!1;this.Vq=new Set;this.ZJ=new Set;this.XS=new Set;this.o5=new Set;this.Ky=this.FM=0;this.Nm=this.qj=!1;this.dj=this.Y="";this.R5=null;this.logger=new g.KF("dai");this.T6="";this.OR=!0;this.M5=new Map;this.Mj=new Map;this.py={rnR:function(){return h.G}, oK:function(){return h.S.py.oK()}, Xuf:function(){return h.Y}, fI$:function(H){h.onCueRangeEnter(h.G.get(H))}, hpz:function(H){h.onCueRangeExit(h.G.get(H))}, IGR:function(H,t){h.G.set(H,t)}, Etf:function(H){h.dj=H}, zx:function(){return h.zx()}, g8H:function(H){return h.S.S.get(H)}, PGj:function(){return h.R5}, Zm:function(){return h.S.py.Zm()}, qe:function(H,t){h.qe(H,t)}, tyy:function(){return h.J5}, mO:function(H){h.mO(H)}}; this.playback.getPlayerType();this.S=new J6R(this.j);this.playback.uP(this);this.t$=this.j.t5();g.p(this,this.zm);g.p(this,this.events);g.p(this,this.X);this.p6=this.j.T("html5_use_new_ssdai_transition_detector");this.QB=this.j.Q2().S.xl(mRR);this.MK=this.playback.getVideoData().Vd;this.p6?this.playback.subscribe("playbackstarted",this.qe,this):(this.events.N(this.api,g.rI("serverstitchedcuerange"),this.onCueRangeEnter),this.events.N(this.api,g.iB("serverstitchedcuerange"),this.onCueRangeExit));this.G6= this.j.T("html5_ssdai_report_stitch_error_after_skip_ad");p$(this.app.z_(),this.playback,!1)}; H2R=function(D,X,M,Q,h,H,t,q,w){var T=XfH(D,H,H+h);D.J&&D.Tm({adaftto:1});M||D.Tm({missadcon:1,enter:H,len:h,aid:q});D.U&&!D.U.B_&&(D.U.B_=q);D.Nm&&D.Tm({adfbk:1,enter:H,len:h,aid:q});var L=D.playback;H>t&&W_(D,{reason:"enterTime_greater_than_return",sH:H,e$:t});var K=L.WC()*1E3;HL&&W_(D,{reason:"parent_return_greater_than_content_duration",e$:t,gtf:L});(L=k7R(D.S,H))&&L.e$>H&&Mhi(D,X.video_id|| "",H,t,L);if(T&&L)for(K=0;K=X)return M}D=g.e(D.G.values());for(M=D.next();!M.done;M=D.next())if(M=M.value,M.start<=X&&M.end>=X)return M}; jrW=function(D,X,M){var Q=D.q5||D.app.v2().getPlayerState();kE(D,!0);D.playback.seekTo(X,M);D=D.app.v2();X=D.getPlayerState();Q.isOrWillBePlaying()&&!X.isOrWillBePlaying()?D.playVideo():Q.isPaused()&&!X.isPaused()&&D.pauseVideo()}; kE=function(D,X){D.h5=NaN;D.R2=null;D.zm.stop();D.L$&&X&&D.L$.G$();D.q5=null;D.L$=null}; Vh2=function(D){var X=X===void 0?-1:X;var M=M===void 0?Infinity:M;a2W(D,X,M);for(var Q=g.e(D.G.values()),h=Q.next();!h.done;h=Q.next())h=h.value,h.start>=X&&h.end<=M&&(D.playback.removeCueRange(h),D.G.delete(h.getId()),D.Tm({rmAdCR:1}));Q=zP(D,X/1E3);X=Q.Yk;Q=Q.BT;X&&(Q=Q*1E3-X.sH,FR5(D,X,Q,X.sH+Q),Q=D.G.get(X.cpn))&&(Q.start=X.sH,Q.end=X.sH+X.durationMs);if(X=zP(D,M/1E3).Yk){var H;Q="playback_timelinePlaybackId_"+X.CK+"_video_id_"+((H=X.videoData)==null?void 0:H.videoId)+"_durationMs_"+X.durationMs+ "_enterTimeMs_"+X.sH+"_parentReturnTimeMs_"+X.e$;D.s5("Invalid_clearEndTimeMs_"+M+"_that_falls_during_"+Q+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; $r9=function(D){D.f$.clearAll();D.G.clear();D.S.clear();D.WW.clear();D.A$=[];D.D=null;D.iM.clear();D.yf.clear();D.K=[];D.uj=[];D.bM=[];D.DJ=[];D.Vq.clear();D.ZJ.clear();D.XS.clear();D.o5.clear();D.J=!1;D.BH=0;D.eH=!1;D.OR=!1;D.FM=0;D.Ky=0;D.qj=!1;D.Nm=!1;D.Y="";B2s(D.app.z_());p$(D.app.z_(),D.playback,!1);D.a5.clear();D.X.isActive()&&GP(D)}; FR5=function(D,X,M,Q){X.durationMs=M;X.e$=Q;(Q=D.a5.get(X.cpn))?Q.bX(M/1E3):D.Tm({nop_d:X.cpn})}; a2W=function(D,X,M){zgW(D.S,function(Q){return Q.sH>=X&&Q.e$<=M})}; Urm=function(D,X,M,Q,h,H){if(!D.Nm)if(g.BLs(D,M))D.Tm({gdu:"undec",seg:M,itag:h});else if(X=Z2m(D,X,M,Q,H),!(D.playback.getVideoData().gp()&&(X==null?0:X.g0)))return X}; Z2m=function(D,X,M,Q,h){var H=D.WW.get(M);if(!H){if(H=DW(D,X))return H;X=D.B9(M-1,Q!=null?Q:2);if(h)return D.Tm({misscue:h,sq:M,type:Q,prevsstate:X==null?void 0:X.dG,prevrecord:D.WW.has(M-1)}),D.WW.get(M-1);if((X==null?void 0:X.dG)===2)return D.Tm({adnf:1,sq:M,type:Q,prevrecord:D.WW.has(M-1)}),D.WW.get(M-1)}return H}; DW=function(D,X){X+=D.yb();var M;if(D.playback.getVideoData().gp()){a:{var Q=X*1E3;D=g.e(D.S.G);for(M=D.next();!M.done;M=D.next()){M=M.value;var h=M.ZD?M.ZD*1E3:M.sH;if(Q>=M.sH-1E3&&Q<=h+M.durationMs+1E3){Q=M;break a}}Q=void 0}M={Yk:Q,BT:X}}else M=zP(D,X),((Q=M)==null?0:Q.Yk)||(M=zP(D,X,1));var H;return(H=M)==null?void 0:H.Yk}; g.KNo=function(D,X,M,Q,h,H,t){var q=h===3,w=Urm(D,X,M,h,Q,t);if(!w){u6(D,M,q);var T=g.BLs(D,M)?"undec":"ncp";D.Tm({gvprp:T,mt:X,seg:M,tt:h,itag:Q,ce:t});return null}q||D.WW.set(M,w);t=w.qL;var L;h=((L=D.B9(M-1,h,H))==null?void 0:L.VE)||"";h===""&&D.Tm({eds:1});L=ccs(D,w.ssdaiAdsConfig);H=D.playback.getVideoData();var K;q=((K=H.G)==null?void 0:K.containerType)||0;K=H.TL[q];w=w.J6&&M>=w.J6?w.J6:void 0;K={jN:t?f2s(D,t):[],adsConfig:L,VE:h,Dl:w,nf:WH(K.split(";")[0]),Ub:K.split(";")[1]||""};w={md:K}; D.t$&&(X={gvprpro:"v",sq:M,mt:X.toFixed(3),itag:Q,acpns:((T=K.jN)==null?void 0:T.join("_"))||"none",abid:t},D.Tm(X));return w}; ccs=function(D,X){X=X===void 0?"":X;var M=y5(X)||void 0;if(!X||!M){var Q;D.Tm({adcfg:(Q=X)==null?void 0:Q.length,dcfg:M==null?void 0:M.length})}return M}; St9=function(D){for(var X=g.e(D.G.values()),M=X.next();!M.done;M=X.next())D.playback.removeCueRange(M.value);D.G.clear();D.f$.clearAll()}; ycW=function(D,X,M,Q,h,H,t){if(X&&M){D.dj=M.cpn;D.yl(M.cpn,M.startTimeSecs||h);NLo(D,M);var q=th9(D,"a2a",M);D.Tm(q);D.FM++;q=ESs(D);D.playback.U8(X,M,Q||0,h||0,!!H,!!t,void 0,q)}else D.Tm({misspbkonadtrans:1,enter:(M==null?void 0:M.cpn)||"",exit:(X==null?void 0:X.cpn)||"",seek:H,skip:t})}; u6=function(D,X,M){if(M===void 0||!M){M=g.e(D.A$);for(var Q=M.next();!Q.done;Q=M.next()){Q=Q.value;if(X>=Q.start&&X<=Q.end)return;if(X===Q.end+1){Q.end+=1;return}}D.A$.push(new llR(X))}}; g.BLs=function(D,X){D=g.e(D.A$);for(var M=D.next();!M.done;M=D.next())if(M=M.value,X>=M.start&&X<=M.end)return!0;return!1}; PLR=function(D,X,M){var Q;if(Q=D.playback.getVideoData().gp())Q=(Q=D.S.Y5({cpn:X}))&&Q.qL?(D=D.S.S.get(Q==null?void 0:Q.qL))&&D.slice(-1)[0].cpn===X:!1;return Q&&M===2?1E3:0}; Mhi=function(D,X,M,Q,h){var H;X={reason:"overlapping_playbacks",Lx5:X,sH:M,e$:Q,YJs:h.CK,aI2:((H=h.videoData)==null?void 0:H.videoId)||"",SJ2:h.durationMs,RpH:h.sH,GJ5:h.e$};W_(D,X)}; W_=function(D,X,M){D.playback.p7(X,M)}; f2s=function(D,X){var M=[];D=D.S.S.get(X);if(!D)return[];D=g.e(D);for(X=D.next();!X.done;X=D.next())X=X.value,X.cpn&&M.push(X.cpn);return M}; mrs=function(D,X,M){var Q=0;D=D.S.S.get(M);if(!D)return-1;D=g.e(D);for(M=D.next();!M.done;M=D.next()){if(M.value.cpn===X)return Q;Q++}return-1}; nSR=function(D,X){var M=0;D=D.S.S.get(X);if(!D)return 0;D=g.e(D);for(X=D.next();!X.done;X=D.next())X=X.value,X.durationMs!==0&&X.e$!==X.sH&&M++;return M}; b2d=function(D,X,M){var Q=!1;if(M=D.S.S.get(M)){M=g.e(M);for(var h=M.next();!h.done;h=M.next())h=h.value,h.durationMs!==0&&h.e$!==h.sH&&(h=h.cpn,X===h&&(Q=!0),Q&&!D.ZJ.has(h)&&(D.Tm({decoratedAd:h}),D.ZJ.add(h)))}}; Drs=function(D){D.t$&&D.Tm({adf:"0_"+((new Date).getTime()/1E3-D.Ky)+"_isTimeout_"+D.J})}; XfH=function(D,X,M){if(D.K.length)for(var Q=g.e(D.K),h=Q.next(),H={};!h.done;H={Zn:void 0},h=Q.next()){H.Zn=h.value;h=H.Zn.startSecs*1E3;var t=H.Zn.rp*1E3+h;if(X>h&&Xh&&M0&&(D.FM=0,D.dj="",D.j.T("html5_huli_ssdai_use_playback_state")&&D.yl(D.playback.Rj(),0),D.api.publish("serverstitchedvideochange"));D.playback.Xj(Q,h);return!0}; GP=function(D){D.J=!1;D.X.isActive()&&Drs(D);D.X.stop();D.MP(!1)}; eei=function(D,X){var M="";X?X.event==="unknown"?M="unknown":D.yf.has(X.identifier)?D.U&&D.U.Ps===X.identifier?D.U.Ps===X.identifier?M=D.j.T("html5_ssdai_under_decoration_shortad")&&jj(D.uj,function(Q){return Q.identifier===X.identifier})?"shortad":"pending":jj(D.uj,function(Q){return Q.identifier===X.identifier})||(M="noAdsAdded"):M="wrongAdBreakInfo":M="unscheduled":M="noCuepoint"; return M}; D3=function(D,X){D.Y||D.eH||jB(D,D.dj);var M=X.iW,Q=X.Er;if(Q.cpn===D.dj)D.Tm({igtranssame:1,enter:Q.cpn,exit:M.cpn});else{var h=D.eH,H=!!D.Y;D.Y="";var t=X.Zh,q=M.playerType===2?M.sH/1E3+M.videoData.Mj:D.zx().videoData.Mj;D.api.T("html5_ssdai_enable_media_end_cue_range")&&(H||h||M.playerType!==2?(h||H)&&D.Tm({mecr:0,seek:h,skip:H}):D.api.qH(M.cpn));if(M.playerType===2&&Q.playerType===2)H?D.Tm({igtransskip:1,enter:Q.cpn,exit:M.cpn,seek:h,skip:D.Y}):ycW(D,M,Q,q,t,h,H);else{D.dj=Q.cpn;D.yl(Q.cpn,Q.startTimeSecs|| t);X=X.MCs;if(M.playerType===1&&Q.playerType===2){D.BH=0;NLo(D,Q);var w=th9(D,"c2a",Q);D.Tm(w);D.FM++}else if(M.playerType===2&&Q.playerType===1){D.api.publish("serverstitchedvideochange");w=th9(D,"a2c");D.Tm(w);D.FM=0;D.BH=q;w=M.cpn;var T=D.BH;if(w!==D.playback.Rj()){var L=D.a5.get(w);L?L.S=T:D.Tm({nop_e:w})}D.mO(M.qL)}w=ESs(D);D.playback.U8(M,Q,q,t,h,H,X,w)}Ren(D)}}; I2s=function(D,X,M,Q){D.j.T("html5_ssdai_log_ssevt_in_loader_timers")&&(Q=D.eH?0:Math.round((Q-M)*1E3),D.playback.SH("ssevt",{tag:"sstme",ad:X!==D.playback.Rj(),cpn:X,st:(M-D.playback.yb()).toFixed(3),late:Q}))}; gSm=function(D,X,M){D.playback.Hx();D.playback.seekTo(X,M);D.playback.playVideo()}; vSo=function(D,X,M,Q){X={iW:X,Er:M,Zh:D.playback.getCurrentTime(),MCs:Q};D3(D,X)}; jB=function(D,X){var M=X||D.dj,Q=D.S.Y5({cpn:M});if(Q){X=Q.videoData;var h,H;M=Q.ZD||((H=(h=D.G.get(M))==null?void 0:h.start)!=null?H:0)/1E3;D=D.playback.getCurrentTime()-M;X.Mj=D>0?D:0}else D.zx().videoData.Mj=D.playback.getCurrentTime()}; Ren=function(D){D.o5.add(D.Y);D.Y="";D.eH=!1}; ESs=function(D){if(D.QB){var X=Array.from(D.app.z_().K.values()),M=[],Q=[],h=[],H=[],t=[];X=g.e(X);for(var q=X.next();!q.done;q=X.next()){q=D.S.Y5({cpn:q.value.Rj()});var w=void 0;((w=q)==null?0:w.serializedPlaybackPingContextLoggingData)&&M.push(q.serializedPlaybackPingContextLoggingData);w=void 0;if((w=q)==null?0:w.serializedQoeContextData)Q.push(q.serializedQoeContextData),h.push(q.cpn),H.push(q.videoData.videoId||""),t.push(q.videoData.zm)}return{dXI:{serializedPlaybackPingContextLoggingData:M}, MAI:{jN:h,jo:H,adFormats:t,serializedQoeContextData:Q}}}}; rcW=function(D,X,M,Q){g.O.call(this);var h=this;this.api=D;this.j=X;this.S=M;this.app=Q;this.D=new Map;this.G=[];this.Y=this.J=null;this.f$=NaN;this.X=this.U=this.eH=null;this.K=new g.W5(function(){dr9(h,h.f$,h.eH||void 0)}); this.R5=[];this.a5=new g.W5(function(){var H=h.R5.pop();if(H){var t=H.CK,q=H.playerVars;H=H.playerType;q&&(q.prefer_gapless=!0,h.api.preloadVideoByPlayerVars(q,H,NaN,"",t),h.R5.length&&g.G1(h.a5,4500))}}); this.events=new g.HE(this);this.py={Jnz:function(){return h.G}}; this.S.getPlayerType();g.p(this,this.K);g.p(this,this.a5);g.p(this,this.events);this.events.N(this.api,g.rI("childplayback"),this.onCueRangeEnter);this.events.N(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.N(this.api,"presentingplayerstatechange",this.Ks)}; O2o=function(D,X,M,Q,h,H){var t=X.cpn,q=X.docid||X.video_id||X.videoId||X.id,w=D.S;H=H===void 0?h+Q:H;if(h>H)return XZ(D,"enterAfterReturn enterTimeMs="+h+" is greater than parentReturnTimeMs="+H.toFixed(3),t,q),"";var T=w.WC()*1E3;if(hT)return w="returnAfterDuration parentReturnTimeMs="+H.toFixed(3)+" is greater than parentDurationMs="+T+". And timestampOffset in seconds is "+ w.w3(),XZ(D,w,t,q),"";T=null;for(var L=g.e(D.G),K=L.next();!K.done;K=L.next()){K=K.value;if(h>=K.sH&&hK.sH)return XZ(D,"overlappingReturn",t,q),"";if(H===K.sH)return XZ(D,"outOfOrder",t,q),"";h===K.e$&&(T=K)}t="cs_childplayback_"+i2n++;q={sU:M9(Q,!0),Ni:Infinity,target:null};var a={CK:t,playerVars:X,playerType:M,durationMs:Q,sH:h,e$:H,RA:q};D.G=D.G.concat(a).sort(function(c,S){return c.sH-S.sH}); T?oSn(D,T,{sU:M9(T.durationMs,!0),Ni:T.RA.Ni,target:a}):(X={sU:M9(h,!1),Ni:h,target:a},D.D.set(X.sU,X),w.addCueRange(X.sU));X=!0;if(D.S===D.app.v2()&&(w=w.getCurrentTime()*1E3,w>=a.sH&&wX)break;if(H>X)return{Yk:Q,BT:X-h};M=H-Q.e$/1E3}return{Yk:null,BT:X-M}}; dr9=function(D,X,M){M=M===void 0?{}:M;var Q=D.X||D.app.v2().getPlayerState();Hv(D,!0);X=isFinite(X)?X:D.S.gY();var h=l2s(D,X);X=h.BT;var H=(h=h.Yk)&&!QD(D,h)||!h&&D.S!==D.app.v2(),t=X*1E3;t=D.Y&&D.Y.start<=t&&t<=D.Y.end;!H&&t||ha(D);h?CL5(D,h,X,M,Q):Jcp(D,X,M,Q,"_execute")}; Jcp=function(D,X,M,Q,h){var H=D.S;H!==D.app.v2()&&D.app.PA();D.j.T("html5_sabr_csdai_seek_log")||(h="");var t;H.seekTo(X,Object.assign({},{Aa:"application_timelinemanager"+((t=h)!=null?t:"")},M));xro(D,Q)}; CL5=function(D,X,M,Q,h){var H=QD(D,X);if(!H){X.playerVars.prefer_gapless=!0;var t=new g.zL(D.j,X.playerVars);t.CK=X.CK;D.api.jT(t,X.playerType)}t=D.app.v2();H||t.addCueRange(X.RA.sU);t.seekTo(M,Object.assign({},{Aa:"application_timelinemanager"},Q));xro(D,h)}; xro=function(D,X){D=D.app.v2();var M=D.getPlayerState();X.isOrWillBePlaying()&&!M.isOrWillBePlaying()?D.playVideo():X.isPaused()&&!M.isPaused()&&D.pauseVideo()}; Hv=function(D,X){D.f$=NaN;D.eH=null;D.K.stop();D.U&&X&&D.U.G$();D.X=null;D.U=null}; QD=function(D,X){D=D.app.v2();return!!D&&D.getVideoData().CK===X.CK}; WR1=function(D){var X=D.G.find(function(h){return QD(D,h)}); if(X){var M=D.app.v2();ha(D);var Q=new g.LZ(8);X=YtR(D,X)/1E3;Jcp(D,X,{},Q,"_force");M.SH("forceParentTransition",{childPlayback:1});D.S.SH("forceParentTransition",{parentPlayback:1})}}; ze1=function(D,X,M){X=X===void 0?-1:X;M=M===void 0?Infinity:M;for(var Q=X,h=M,H=g.e(D.D),t=H.next();!t.done;t=H.next()){var q=g.e(t.value);t=q.next().value;q=q.next().value;q.Ni>=Q&&q.target&&q.target.e$<=h&&(D.S.removeCueRange(t),D.D.delete(t))}Q=X;h=M;H=[];t=g.e(D.G);for(q=t.next();!q.done;q=t.next())if(q=q.value,q.sH>=Q&&q.e$<=h){var w=D;w.J===q&&ha(w);QD(w,q)&&w.app.PA()}else H.push(q);D.G=H;Q=l2s(D,X/1E3);X=Q.Yk;Q=Q.BT;X&&(Q*=1E3,Gv2(D,X,Q,X.e$===X.sH+X.durationMs?X.sH+Q:X.e$));(X=l2s(D,M/1E3).Yk)&& XZ(D,"Invalid clearEndTimeMs="+M+" that falls during playback={timelinePlaybackId="+(X.CK+" video_id="+X.playerVars.video_id+" durationMs="+X.durationMs+" enterTimeMs="+X.sH+" parentReturnTimeMs="+X.e$+"}.Child playbacks can only have duration updated not their start."))}; Gv2=function(D,X,M,Q){X.durationMs=M;X.e$=Q;Q={sU:M9(M,!0),Ni:M,target:null};oSn(D,X,Q);QD(D,X)&&D.app.v2().getCurrentTime()*1E3>M&&(X=YtR(D,X)/1E3,M=D.app.v2().getPlayerState(),Jcp(D,X,{},M,"_update"))}; XZ=function(D,X,M,Q){D.S.SH("timelineerror",{e:X,cpn:M?M:void 0,videoId:Q?Q:void 0})}; uSo=function(D){D&&D!=="web"&&kv9.includes(D)}; ta=function(D){D=D===void 0?!1:D;g.O.call(this);this.S=Vmo(5,null,D);g.p(this,this.S);this.G=Vmo(15,null,D);g.p(this,this.G)}; mkn=function(D,X){return X?!!D.S.get(X):!1}; jNs=function(D,X){D.dataset.version=X}; MxH=function(D){g.Y.call(this,{L:"div",gC:["html5-video-player"],Z:{tabindex:D.W().disableOrganicUi?"":"-1",id:D.webPlayerContextConfig.rootElementId},V:[{L:"div",C:g.fl.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});var X=this;this.app=D;this.Zs=this.h$(g.fl.VIDEO_CONTAINER);this.vT=new g.DF(0,0,0,0);this.RN=null;this.dN=new g.DF(0,0,0,0);this.qO=this.CT=this.OV=NaN;this.wv=this.Pe=this.R7=this.Ns=!1;this.Di=NaN;this.Vz=!1;this.Ss=null;this.YX=new g.W5(function(){X.app.W().T("web_enable_smart_zoom")&& X.app.XF.getInternalApi().isAutocropEnabled()||X.resize()},100); this.fb=function(){X.element.focus({preventScroll:!0})}; this.YH=function(){X.app.XF.publish("playerUnderlayVisibilityChange","visible");X.RN.classList.remove(g.fl.VIDEO_CONTAINER_TRANSITIONING);X.RN.removeEventListener(Ep,X.YH);X.RN.removeEventListener("transitioncancel",X.YH)}; this.vK=this.Ot=!1;var M=this.element.addEventListener,Q=this.element.removeEventListener;this.addEventListener=function(H,t,q){M.apply(X.element,[H,t,q])}; this.removeEventListener=function(H,t,q){Q.apply(X.element,[H,t,q])}; var h=D.W();h.transparentBackground&&this.ot("ytp-transparent");h.controlsType==="0"&&this.ot("ytp-hide-controls");g.hN(this.element,"ytp-exp-bottom-control-flexbox");g.hN(this.element,"ytp-modern-caption");h.T("enable_new_paid_product_placement")&&!g.XD(h)&&g.hN(this.element,"ytp-exp-ppp-update");g.hN(this.element,"ytp-livebadge-color");jNs(this.element,DKs(D));this.NC=!1;this.y_=new g.tn(NaN,NaN);XaH(this);this.N(D.XF,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.p(this,this.YX)}; XaH=function(D){function X(t){D.RN&&N9(D);q9(D)!==D.Vz&&D.resize();D.app.W().T("web_enable_smart_zoom")&&D.Ct&&(t.state.isPaused()?D.Ct.pause():g.qZ(t,8)&&D.Ct.playState==="paused"&&D.Ct.play())} function M(t,q){D.bf(t,q)} function Q(t){t.getVideoData()&&D.updateVideoData(t.getVideoData())} function h(){D.dN=new g.DF(0,0,0,0);D.vT=new g.DF(0,0,0,0)} var H=D.app.XF;H.addEventListener("initializingmode",h);H.addEventListener("videoplayerreset",Q);H.addEventListener("videodatachange",M);H.addEventListener("presentingplayerstatechange",X);D.addOnDisposeCallback(function(){H.removeEventListener("initializingmode",h);H.removeEventListener("videoplayerreset",Q);H.removeEventListener("videodatachange",M);H.removeEventListener("presentingplayerstatechange",X)})}; hNo=function(D){var X=D.app.v2();if(X=X?X.getVideoData():null){if(g.gJ(X)||g.vy(X)||g.dJ(X))return 16/9;if(Np(X)&&X.Y.S)return D=X.Y.videoInfos[0].video,QC5(D.width,D.height)}return(D=D.RN)?QC5(D.videoWidth,D.videoHeight):16/9}; H3i=function(D,X,M,Q){var h=M,H=QC5(X.width,X.height);D.Ns?h=MH?{width:X.width,height:X.width/h,aspectRatio:h}:hh?D.width=D.height*M:Mw;if(q9(D)){var T=hNo(D);var L=isNaN(T)||g.Jg||$7&&g.ah||w;lD&&!g.Dj(601)?T=h.aspectRatio:L=L||H.controlsType==="3";L?w?(L=H.T("place_shrunken_video_on_left_of_player")?16:D.getPlayerSize().width-X.width-16,T=Math.max((D.getPlayerSize().height-X.height)/2,0),L=new g.DF(L,T,X.width, X.height),D.RN.style.setProperty("border-radius","12px")):L=new g.DF(0,0,X.width,X.height):(M=h.aspectRatio/T,L=new g.DF((X.width-h.width/M)/2,(X.height-h.height)/2,h.width/M,h.height),M===1&&g.ah&&(T=L.width-X.height*T,T>0&&(L.width+=T,L.height+=T)));g.qE(D.element,"ytp-fit-cover-video",Math.max(L.width-h.width,L.height-h.height)<1);if(q||D.NC)D.RN.style.display="";D.Vz=!0}else{L=-X.height;lD?L*=window.devicePixelRatio:g.Mi&&(L-=window.screen.height);L=new g.DF(0,L,X.width,X.height);if(q||D.NC)D.RN.style.display= "none";D.Vz=!1}Xt(D.dN,L)||(D.dN=L,g.iS(H)?(D.RN.style.setProperty("width",L.width+"px","important"),D.RN.style.setProperty("height",L.height+"px","important")):g.ax(D.RN,L.getSize()),Q=new g.hn(L.left,L.top),g.TN(D.RN,Math.round(Q.x),Math.round(Q.y)),Q=!0);X=new g.DF((X.width-h.width)/2,(X.height-h.height)/2,h.width,h.height);Xt(D.vT,X)||(D.vT=X,Q=!0);g.Q_(D.RN,"transform",M===1?"":"scaleX("+M+")");t&&w!==D.Pe&&(w&&(D.RN.addEventListener(Ep,D.YH),D.RN.addEventListener("transitioncancel",D.YH),D.RN.classList.add(g.fl.VIDEO_CONTAINER_TRANSITIONING)), D.Pe=w,D.app.XF.publish("playerUnderlayVisibilityChange",D.Pe?"transitioning":"hidden"));return Q}; qP5=function(D){D.Ot=!D.Ot;D.vK=!0;D.element.classList.toggle("ytp-retro-player",D.Ot);D.resize();D.vK=!1;D.app.XF.ER("onRetroModeChanged",D.Ot)}; waH=function(){this.csn=g.Va();this.clientPlaybackNonce=null;this.elements=new Set;this.Y=new Set;this.S=new Set;this.G=new Set}; Ta1=function(D){if(D.csn!==g.Va())if(D.csn==="UNDEFINED_CSN")D.csn=g.Va();else{var X=g.Va(),M=g.FN();if(X&&M){D.csn=X;for(var Q=g.e(D.elements),h=Q.next();!h.done;h=Q.next())(h=h.value.visualElement)&&h.isClientVe()&&X&&M&&(g.cX("combine_ve_grafts")?t9(h9(),h,M):g.DS(g.oO)(void 0,X,M,h))}if(X)for(D=g.e(D.S),M=D.next();!M.done;M=D.next())(M=M.value.visualElement)&&M.isClientVe()&&g.x0(X,M)}}; wC=function(D,X){g.O.call(this);this.Y=D;this.SH=X;this.G=0}; LO2=function(D){var X,M,Q,h;return g.r(function(H){if(H.S==1){if(D.UA)return H.return();D.UA=new Worker(BH(D.Y),void 0);g.N_(H,2);M=Promise.withResolvers();X=setTimeout(function(){M.reject("timeout")},1E3); D.UA.onerror=function(){M.reject("error")}; D.UA.onmessage=function(){M.resolve();clearTimeout(X)}; return g.I(H,M.promise,4)}if(H.S!=2)return D.UA.onmessage=null,D.UA.onerror=null,D.UA.addEventListener("message",function(t){return void D.onMessage(t)}),D.SH("workerCtor",{}),g.Ty(H,0); Q=g.LG(H);clearTimeout(X);(h=D.UA)==null||h.terminate();D.UA.onmessage=null;D.UA.onerror=null;D.UA=void 0;D.SH("workerErr",{e:""+Q});g.HZ(H)})}; sCn=function(D,X,M){g.r(function(Q){if(Q.S==1)return g.I(Q,LO2(D),2);if(!D.UA)return Q.return();D.S=setInterval(function(){D.sendMessage(M)},X); g.HZ(Q)})}; KOs=function(D){var X;(X=D.UA)==null||X.terminate();D.UA=void 0;D.SH("workerDtor",{})}; g.TI=function(D,X,M,Q){g.O.call(this);var h=this;this.logger=new g.KF("App");this.gw=this.sA=!1;this.mA={};this.KN=[];this.eK=!1;this.cY=null;this.intentionalPlayback=!1;this.Ox=!0;this.rW=!1;this.l_=this.yS=this.UV=null;this.Z6=!0;this.mediaElement=this.g3=null;this.tP=NaN;this.m8=!1;this.cD=this.dH=this.Iz=this.screenLayer=this.playlist=null;this.jx=[];this.Hf=0;this.py={z_:function(){return h.St}, Mo:function(){return h.Iz}}; if(!M)throw Error("b/179532961");this.oi=(X==null?void 0:X.args)||{};this.webPlayerContextConfig=M;X=this.oi;this.j=new lS(X,M,M.canaryState,Q);g.p(this,this.j);y6s(this.j);Q=vOW(this.j);this.j.t5()&&l3(Q,function(t){h.BK("h5vcc",t)}); this.j.experiments.Z4("jspb_serialize_with_worker")&&$fd();this.j.experiments.Z4("gzip_gel_with_worker")&&tu_();this.j.G&&(Q=this.j.experiments.Q2().S.xl(b6),xYp(Q));this.T("html5_onesie")&&(this.h0=new Ib(this.j),g.p(this,this.h0));this.Hb=new r6m(Ocp(g.Nn(this.j),this.j.bT,this.j.experiments),new q7p(this.j.experiments),function(){return void h.bR()}); g.p(this,this.Hb);this.EN=HJ(IA(this.j)&&!0,X.enablesizebutton);this.qE=HJ(!1,X.player_wide);this.visibility=new K0R;g.p(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.nJ(HJ(!1,X.player_wide));this.sA=HJ(!1,X.external_list);this.events=new g.HE(this);g.p(this,this.events);this.T("start_client_gcf")&&(Zm(SP(),{QU:ts,hm:bC5()}),this.oJ=SP().resolve(ts),I1d(this.oJ));this.Qj2=new sI;g.p(this,this.Qj2);this.xb=new waH;X=new KS;this.XF=new g.mU(this,X);g.p(this,this.XF);this.template= new MxH(this);g.p(this,this.template);this.appState=1;this.Cs=aRH(this);g.p(this,X);X={};this.J3=(X.internalvideodatachange=this.kT,X.playbackready=this.kmf,X.playbackstarted=this.Zyz,X.statechange=this.olR,X);this.o1=new hQ(this.XF);this.vD=FOo(this);X=this.j.X;!1!==X&&this.BK("badps",{hbp:X,hostname:window.location.hostname,ps:this.j.playerStyle});this.r3=new sjH(this.j,this.vD);this.XF.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||$k(this.vD))&&Vxp(this);X=10;g.Nn(this.j)&& (X=3);jO(this.j)&&(X=g.lx(this.j.experiments,"tvhtml5_unplugged_preload_cache_size"));this.St=new g.C$(this.XF,X);X=$KW(this);this.St.bP(X);Ba5(this);X={};this.mV=(X.airplayactivechange=this.jNf,X.airplayavailabilitychange=this.zMy,X.beginseeking=this.SmI,X.sabrCaptionsDataLoaded=this.Qz4,X.endseeking=this.G6y,X.internalAbandon=this.aSI,X.internalaudioformatchange=this.eMC,X.internalvideodatachange=this.Tps,X.internalvideoformatchange=this.PHf,X.liveviewshift=this.hM5,X.playbackstalledatstart=this.M$2, X.progresssync=this.rR$,X.onAbnormalityDetected=this.Vt5,X.onSnackbarMessage=this.Bp$,X.onLoadProgress=this.n$I,X.SEEK_COMPLETE=this.g$z,X.SEEK_TO=this.u8s,X.onVideoProgress=this.XD5,X.onLoadedMetadata=this.UKj,X.onAutoplayBlocked=this.fS4,X.onPlaybackPauseAtStart=this.LjH,X.playbackready=this.xK4,X.statechange=this.j5,X.newelementrequired=this.Vh,X.heartbeatparams=this.Ym5,X.videoelementevent=this.yR4,X.drmoutputrestricted=this.RMs,X.signatureexpired=this.H6$,X.nonfatalerror=this.b62,X.reloadplayer= this.szz,X);this.RX=new g.HE(this);g.p(this,this.RX);this.Ge=new ta(this.j.Q2().S.xl($Tp));g.p(this,this.Ge);this.FK=this.WF=-1;this.zq=new g.W5(this.template.resize,16,this.template);g.p(this,this.zq);this.Bb=new rcW(this.XF,this.j,this.eh(),this);this.hC=new eB(this);g.p(this,this.hC);this.aM=new y4(this);g.p(this,this.aM);uSo(this.j.S.c);this.events.N(this.XF,g.rI("appapi"),this.I1$);this.events.N(this.XF,g.iB("appapi"),this.wbz);this.events.N(this.XF,g.rI("appprogressboundary"),this.Npf);this.events.N(this.XF, g.iB("applooprange"),this.YZ);this.events.N(this.XF,"presentingplayerstatechange",this.Ks);this.events.N(this.XF,"resize",this.Fjf);this.template.rC($f(document,D));this.events.N(this.XF,"offlineslatestatechange",this.pCs);this.events.N(this.XF,"sabrCaptionsTrackChanged",this.YCR);this.events.N(this.XF,"sabrCaptionsBufferedRangesUpdated",this.GF5);this.vD.B.W().w$&&BI(this.vD,"offline");this.j.t$&&g.wZ("ux",g.f$);D=g.lx(this.j.experiments,"html5_defer_fetch_att_ms");this.Uf=new g.W5(this.P0$,D,this); g.p(this,this.Uf);this.z6().X8()&&(g.rw()&&this.z6().AC.push("mdx"),Z3d(this));this.r3.tick("fs");UK1(this);this.j.t$&&BI(this.vD,"ux",!0);g.eO(this.vD.B.W())&&BI(this.vD,"embed");this.T("web_player_sentinel_is_uniplayer")||g.P3(new g.ys("Player experiment flags missing","web_player_sentinel_is_uniplayer"));D=this.T("web_player_sentinel_yt_experiments_sync");X=g.cX("web_player_sentinel_yt_experiments_sync");D!==X&&g.P3(new g.ys("b/195699950",{yt:D,player:X}));this.oo=cmp(this);if(D=g.lx(this.j.experiments, "html5_block_pip_safari_delay"))this.h9=new g.W5(this.Cg,D,this),g.p(this,this.h9);var H;M=m2((H=M==null?void 0:M.trustedEchoWorkerUrl)!=null?H:null);H=this.j.Q2().S.xl(fRW);D=this.j.Q2().S.xl(SP9);M&&H>0&&D>0&&(this.QT=new wC(M,function(t,q){h.eh().SH(t,q)}),g.p(this,this.QT),sCn(this.QT,H,D)); dc=this.j.qj;this.XF.publish("applicationInitialized")}; cmp=function(D){function X(M){M.stack&&M.stack.indexOf("player")!==-1&&D.v2().F9(M)} mL.subscribe("handleError",X);uq.push(X);return function(){mL.unsubscribe("handleError",X);var M=uq.indexOf(X);M!==-1&&uq.splice(M,1)}}; $KW=function(D){var X=new g.zL(D.j,D.oi);D.XF.publish("initialvideodatacreated",X);return Lk(D,1,X,!1)}; Ba5=function(D){var X=D.eh();X.setPlaybackRate(D.j.U?1:EY_(D,Number(g.vJ("yt-player-playback-rate"))||1));X.Dq(D.J3,D);X.UL()}; FOo=function(D){var X="",M="",Q=DKs(D),h=I5(Q,"cb");h&&/^[\w-]+$/.test(h)&&(M=h);Q.indexOf("//")===0&&(Q=D.j.protocol+":"+Q);h=Q.lastIndexOf("/base.js");h!==-1&&(X=Q.substring(0,h+1));if(Q=Error().stack)if(Q=Q.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Q=Q[1],Q.includes(X)||g.P3(Error("Player module URL mismatch: "+(Q+" vs "+X+".")));X=new bU2(D.XF,X,M);M={};eLn(X,(M.destroyed=function(){D.onApiChange()},M)); return X}; aRH=function(D){if(D.j.storeUserVolume){D=g.vJ("yt-player-volume")||{};var X=D.volume;D={volume:isNaN(X)?100:g.XT(Math.floor(X),0,100),muted:!!D.muted}}else D={volume:100,muted:D.j.mute};return D}; Kk=function(D){var X=D.j.experiments.Q2().S.xl(b6);var M=D.j.deviceIsAudioOnly;X=X===void 0?!1:X;M=M?X?new g.SB(g.m7("AUDIO")):new g.vo(g.m7("AUDIO")):EJ.pop()||(X?new g.SB(g.m7("VIDEO")):new g.vo(g.m7("VIDEO")));D.mediaElement=M;g.p(D,D.mediaElement);D.v2().setMediaElement(D.mediaElement);try{D.j.Vq?(D.dH&&D.events.PC(D.dH),D.dH=D.events.N(D.mediaElement,"volumechange",D.vRR)):(D.mediaElement.fQ(D.Cs.muted),D.mediaElement.setVolume(D.Cs.volume/100))}catch(h){D.wM("html5.missingapi",2,"UNSUPPORTED_DEVICE", "setvolume.1;emsg."+(h&&typeof h==="object"&&"message"in h&&typeof h.message==="string"&&h.message.replace(/[;:,]/g,"_")));return}g.RH(D.RX);ym5(D);M=D.template;X=D.mediaElement.Ly();M.RN=X;M.wv=!1;M.RN.parentNode||Iu(M.Zs,M.RN,0);M.dN=new g.DF(0,0,0,0);Nap(M);N9(M);X=M.RN;g.hN(X,"video-stream");g.hN(X,g.fl.MAIN_VIDEO);var Q=M.app.W();Q.XV&&X.setAttribute("data-no-fullscreen","true");Q.T("html5_local_playsinline")?"playsInline"in jg()&&(X.playsInline=!0):Q.AL&&(X.setAttribute("webkit-playsinline", ""),X.setAttribute("playsinline",""));Q.U0&&M.RN&&M.N(X,"click",X.play,X);try{D.mediaElement.activate()}catch(h){D.wM("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(h&&typeof h==="object"&&"message"in h&&typeof h.message==="string"&&h.message.replace(/[;:,]/g,"_")))}}; mK9=function(D){if(!PT1(D)){var X=D.eh().pK();X&&(X=X.jG(),X instanceof Promise&&X.catch(function(){})); a4(D,ZI(D.getPlayerStateObject()))}}; ym5=function(D){var X=D.mediaElement;Qe()?D.RX.N(X,"webkitpresentationmodechanged",D.hV5):window.document.pictureInPictureEnabled&&(D.RX.N(X,"enterpictureinpicture",function(){D.IX(!0)}),D.RX.N(X,"leavepictureinpicture",function(){D.IX(!1)})); uE&&(D.RX.N(X,"webkitbeginfullscreen",function(){D.bI(3)}),D.RX.N(X,"webkitendfullscreen",function(){D.bI(0)}))}; g.FZ=function(D,X){return D.j.experiments.Q2().S.xl(nYi)?D.St.Y5(X)||D.St.S:D.Y5(X)}; g.b39=function(D,X,M,Q){var h=D.r3;X===2&&(h=new sjH(D.j));return new g.Y8(D.j,X,h,D.template,function(H,t,q){D.XF.publish(H,t,q)},function(){return D.XF.getVisibilityState()},D.visibility,D,D.Hb,M,Q)}; Lk=function(D,X,M,Q,h){D=g.b39(D,X,M,h);D=new g.pS(D);Q&&D.UL();return D}; VD=function(D,X){return D.K2(X)?D.eh():X}; $N=function(D,X){var M=D.v2();return X===D.eh()&&D.K2(X)&&D.K2(M)?M:X}; eNo=function(D){if(!Bv(D)){var X=cI(D.vD);X&&!X.created&&RLo(D.vD)&&X.create()}}; RNp=function(D){var X=D.getVideoData(),M=D.vD;OUn(M)||M.uY();!SO&&$k(M)&&Wis(M);BI(M,"embed");BI(M,"kids");BI(M,"remote");BI(M,"miniplayer");BI(M,"offline");BI(M,"unplugged");BI(M,"ypc",!1,!0);BI(M,"webgl",!1,!0);po5(M)||(BI(M,"captions",!0),BI(M,"endscreen"),M.rJ(),BI(M,"creatorendscreen",!0));M.zS();M.B.publish("modulesCreated");D.XF.publish("videoready",X)}; Z3=function(D){D=D.z6();D.X8();return YL(D)}; UK1=function(D){D.N4();var X=D.oi;Kk(D);D.events.N(window,"resize",D.qmf);var M=D.z6();D.XF.sC("onVolumeChange",D.Cs);if(X&&VKR(X)){var Q=Gc(D.j);Q&&!D.sA&&(X.fetch=0);var h=g.eO(D.j);h&&!D.sA&&(X.fetch=0);Uu(D,X);g.eO(D.j)&&D.r3.tick("ep_pr_s");if(!Q||D.sA)if(h&&!D.sA)IR_(D);else if(!M.X8())D.playlist.onReady(function(){cv(D)})}D.Sy(D.eh(),!1,!0); g.x(D.eh().getPlayerState(),128)||(X=D1o(!D.j.deviceIsAudioOnly),X==="fmt.noneavailable"?D.wM("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):X==="html5.missingapi"?D.wM(X,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):M&&M.X8()&&Z3(D)&&(D.j.EU||D.j.kh)?fk(D):M.rX?D.XF.mutedAutoplay({durationMode:M.mutedAutoplayDurationMode}):g.vJ("yt-player-playback-on-reload")?(g.Tm("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!D.j.sR}),g.gw("yt-player-playback-on-reload",!1),fk(D)): hR(D.j)||gYs(D),g.uS(D.j)||Tc(D.j)==="MWEB"?(g.zj(g.u2(),function(){Sa(D)}),g.zj(g.u2(),function(){HWo()})):(Sa(D),HWo()))}; Sa=function(D){if(!D.T("use_rta_for_player"))if(D.T("fetch_att_independently"))g.G1(D.Uf);else{var X=D.getVideoData().botguardData;X&&g.FL(X,D.j,D.getVideoData().ph||"")}}; gYs=function(D){D.XF.publish("initializingmode");D.Uj(2);BI(D.vD,"remote");BI(D.vD,"miniplayer")}; fk=function(D){var X=D.eh();if(g.x(X.getPlayerState(),128))return!1;X=X.getVideoData();Z3(D)&&D.j.kh&&(EJ.length&&D.gw?(Eu(D,{muted:!1,volume:D.Cs.volume},!1),yD(D,!1)):EJ.length||D.Cs.muted||(Eu(D,{muted:!0,volume:D.Cs.volume},!1),yD(D,!0)));Z3(D)&&g.eO(D.j)&&X.mutedAutoplay&&(Eu(D,{muted:!0,volume:D.Cs.volume},!1),yD(D,!0));X.bD&&Eu(D,{muted:!0,volume:D.Cs.volume},!1);vYs(D,1,X,!1);var M=D.eh();D.XF.publish("initializingmode");D.Sy(M);D.Uj(3);var Q;if(!(Q=!D.j.v8)){if(Q=D.cD){Q=D.cD;var h=D.mediaElement; Q=!!h&&h===Q.mediaElement}Q=Q&&D.eK}Q&&(D.Ya(),Kk(D),M.setMediaElement(D.mediaElement));M.rH();if(g.x(M.getPlayerState(),128))return!1;X.wj||a4(D,3);return D.eK=!0}; Bv=function(D){D=ed(D.vD);return!!D&&D.loaded}; dKp=function(D,X){if(!D.g3)return!1;var M=D.g3.startTimeMs*.001-1,Q=D.g3.endTimeMs*.001;D.g3.type==="repeatChapter"&&Q--;return Math.abs(X-M)<=1E-6||Math.abs(X-Q)<=1E-6||X>=M&&X<=Q}; rm9=function(D){var X=D.v2();if(D.T("html5_disable_loop_range_for_shorts_ads")&&X.getVideoData().isAd()?0:qp(X.getVideoData())&&!X.B4())X=Pv(D)*1E3-D.getVideoData().LM,D.T("html5_gapless_new_slr")?(D=D.aM,mB(D.app,"gaplessshortslooprange"),X=new g.v9(0,X,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(D=D.app.v2())&&D.addCueRange(X)):D.setLoopRange({startTimeMs:0,endTimeMs:X,type:"shortsLoop"})}; i3s=function(D){var X=D.eh();if(!(g.x(X.getPlayerState(),64)&&D.z6().isLivePlayback&&D.g3.startTimeMs<5E3)){if(D.g3.type==="repeatChapter"){var M,Q=(M=k0s(D.Qq()))==null?void 0:M.Qp(),h;M=(h=D.getVideoData())==null?void 0:h.XS;Q instanceof g.oF&&M&&(h=M[Dn(M,D.g3.startTimeMs)],Q.renderChapterSeekingAnimation(0,h.title));isNaN(Number(D.g3.loopCount))?D.g3.loopCount=0:D.g3.loopCount++;D.g3.loopCount===1&&D.XF.ER("innertubeCommand",D.getVideoData().xj)}Q={Aa:"application_loopRangeStart"};if(D.g3.type=== "clips"||D.g3.type==="shortsLoop")Q.seekSource=58;X.seekTo(D.g3.startTimeMs*.001,Q)}}; EY_=function(D,X){var M=D.XF.getAvailablePlaybackRates();X=Number(X.toFixed(2));D=M[0];M=M[M.length-1];X<=D?X=D:X>=M?X=M:(D=Math.floor(X*100+.001)%5,X=D===0?X:Math.floor((X-D*.01)*100+.001)/100);return X}; Pv=function(D,X){X=g.FZ(D,{playerType:X});if(!X)return D.St.S.uB();X=VD(D,X);return nk(D,X.uB(),X)}; nk=function(D,X,M){if(D.K2(M)&&(M=M.getVideoData(),!bM(D))){D=D.Bb;for(var Q=g.e(D.G),h=Q.next();!h.done;h=Q.next())if(h=h.value,M.CK===h.CK){X+=h.sH/1E3;break}Q=X;D=g.e(D.G);for(h=D.next();!h.done;h=D.next()){h=h.value;if(M.CK===h.CK)break;var H=h.sH/1E3;if(H1&&(h=!1);D.m8&&h===X||(Q=Q.lock(h?"portrait":"landscape"),Q!=null&&Q.catch(function(){}),D.m8=!0)}else D.m8&&(D.m8=!1,Q.unlock())},vv=function(D,X,M){D.XF.publish(X,M); var Q=g.Nn(D.j)||g.iS(D.j)||g.RW(D.j);if(M&&Q){switch(X){case "cuerangemarkersupdated":var h="onCueRangeMarkersUpdated";break;case "cuerangesadded":h="onCueRangesAdded";break;case "cuerangesremoved":h="onCueRangesRemoved"}h&&D.XF.ER(h,M.map(function(H){return{getId:function(){return this.id}, end:H.end,id:H.getId(),namespace:H.namespace==="ad"?"ad":"",start:H.start,style:H.style,visible:H.visible,markerPositionMs:H.markerPositionMs}}))}},dC=function(D,X,M,Q,h,H){M=M===void 0?!0:M; var t=g.FZ(D,{playerType:h});if(!t||(t.getPlayerType()!==2||D.K2(t))&&!g.Rp(t.getVideoData())){var q=D.St.eg;q?q.seekTo(X,{yX:!M,qg:Q,Aa:"application",seekSource:H}):(t&&t===D.eh()&&D.g3&&!dKp(D,X)&&D.setLoopRange(null),D.seekTo(X,M,Q,h,H,"_request"))}},jCn=function(D,X,M,Q){M&&(D.Ya(),Kk(D)); M=D.v2();M.iy(X);var h=D.getVideoData(),H={};H.video_id=h.videoId;H.adformat=h.adFormat;h.isLivePlayback||(H.start=M.getCurrentTime(),H.resume="1");h.isLivePlayback&&By(h)&&g.H9(D.j)&&(H.live_utc_start=M.hR(),H.resume="1");h.R5&&(H.vvt=h.R5);h.X&&(H.vss_credentials_token=h.X,H.vss_credentials_token_type=h.HW);h.oauthToken&&(H.oauth_token=h.oauthToken);H.autoplay=1;H.reload_count=h.A$+1;H.reload_reason=X;h.NQ&&(H.unplugged_partner_opt_out=h.NQ);h.MK&&(H.ypc_is_premiere_trailer=h.MK);h.playerParams&& (H.player_params=h.playerParams);h.f$&&(H.itct=h.f$);D.loadVideoByPlayerVars(H,void 0,!0,void 0,void 0,Q);X==="signature"&&D.Iz&&eNo(D)},Dw2=function(D,X){D.z6().autonavState=X; g.gw("yt-player-autonavstate",X);D.XF.publish("autonavchange",X)},XV_=function(D){var X=D.getVideoData().OP,M=D.j.o5,Q=D.isInline()&&!D.getVideoData().ul,h=D.mediaElement; X||M||Q?h.yg():(h.Cu(),Eu(D,D.Cs))},ea=function(D){(D=cI(D.Qq()))&&D.created&&D.destroy()},bM=function(D){return D.getVideoData().enableServerStitchedDai&&!!D.Iz},MGH=function(D,X){X.bounds=D.getBoundingClientRect(); for(var M=g.e(["display","opacity","visibility","zIndex"]),Q=M.next();!Q.done;Q=M.next())Q=Q.value,X[Q]=NC(D,Q);X.hidden=!!D.hidden},DKs=function(D){var X=D.webPlayerContextConfig.trustedJsUrl; return X?m2(X).toString():D.webPlayerContextConfig.jsUrl},QVn=function(D,X){var M=D.Y5({playerType:1}); if(M){if(M.getVideoData().clientPlaybackNonce===X)return M;if((D=D.hC.S)&&D.getVideoData().clientPlaybackNonce===X)return D}return null},Vxp=function(D){xs(D,function(){var X=this; return function Q(){var h,H,t,q;return Vh(Q,function(w){switch(w.S){case 1:return g.wK(w,2),X.r3.tick("wasm_s"),h=$k(X.vD)?function(T){return l3(Gt5(X.vD),function(L){return L.MH2(T)})}:void 0,g.N_(w,4),H=ytn(X.webPlayerContextConfig.wasmModuleUrl,h,X.BK.bind(X)),t=Zt,hh(w,WN(H),6); case 6:q=t(w.G);X.r3.tick(q.S?"wasm_fa":"wasm_fw");G8n(X.j,q);g.Ty(w,2);break;case 4:g.LG(w),X.r3.tick("wasm_ferr");case 2:g.s8(w),g.KG(w,0)}})}()})},hqn=function(D){return D.name==="TypeError"&&D.stack.includes("/s/player/")&&AW()<=105},Hhm=function(D){return D.isTimeout?"NO_BID":"ERR_BID"},tGo=function(){var D=null; tRp().then(function(X){return D=X},function(X){return D=Hhm(X)}); return D},NGm=function(){var D=vP(1E3,"NO_BID"); return g.eI(KJ1([tRp(),D]).iB(Hhm),function(){D.cancel()})},rC=function(D){return D.G6?g.O0().xl(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"},iM=function(D){this.player=D; this.Y=this.S=1},TGn=function(D,X,M,Q,h,H){X.client||(X.client={}); D.player.W().T("h5_remove_url_for_get_ad_break")||(X.client.originalUrl=M);var t=qq(M),q=g.cR(M)?!1:!0;(t||q)&&typeof Intl!=="undefined"&&(X.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);q=g.cR(M)?!1:!0;if(t||q||Q!==""){var w={};M=Qj(Ka(Q)).split("&");var T=new Map;M.forEach(function(L){L=L.split("=");L.length>1&&T.set(L[0].toString(),decodeURIComponent(L[1].toString()))}); T.has("bid")&&(w.bid=T.get("bid"));w.params=[];qRR.forEach(function(L){T.has(L)&&(L={key:L,value:T.get(L)},w.params.push(L))}); wVs(D,w);X.adSignalsInfo=w}X.client.unpluggedAppInfo||(X.client.unpluggedAppInfo={});X.client.unpluggedAppInfo.enableFilterMode=!1;M=h.S.cosver;M!=null&&M!=="cosver"&&(X.client.osVersion=M);M=h.S.cplatform;M!=null&&M!=="cplatform"&&M!==""&&(X.client.platform=M);M=h.S.cmodel;M!=null&&M!=="cmodel"&&(X.client.deviceModel=M);M=h.S.cplayer;M!=null&&M!=="cplayer"&&(X.client.playerType=M);M=h.S.cbrand;M!=null&&M!=="cbrand"&&(X.client.deviceMake=M);X.user||(X.user={});X.user.lockedSafetyMode=!1;g.r_(h)&& VVn(X,H,D.player.getPlayerState(1));if(D=h.livingRoomPoTokenId)X.client.tvAppInfo=Object.assign({},X.client.tvAppInfo,{livingRoomPoTokenId:D})},KGo=function(D,X){var M=!1; if(X==="")return M;X.split(",").forEach(function(Q){var h={},H={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},t="ACTIVE";Q[0]==="!"&&(Q=Q.substring(1),t="INACTIVE");Q=Q.split("-");Q.length<3||(Q[0]in LG_&&(H.clientName=LG_[Q[0]]),Q[1]in sVs&&(H.platform=sVs[Q[1]]),H.applicationState=t,H.clientVersion=Q.length>2?Q[2]:"",h.remoteClient=H,D.remoteContexts?D.remoteContexts.push(h):D.remoteContexts=[h],M=!0)}); return M},FG1=function(D){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in aD2))return!1; D=D.split(RegExp("[:&]"));var X=aD2.FLAG_AUTO_CAPTIONS_DEFAULT_ON,M="f"+(1+Math.floor(X/31)).toString();X=1<=2?t[1]:"";var q=$ws.test(X),w=BG9.exec(X);w=w!=null&&w.length>=2?w[1]:"";var T=Zho.exec(X);T=T!=null&&T.length>=2&&!Number.isNaN(Number(T[1]))?Number(T[1]):1;var L=Uwp.exec(X);L=L!=null&&L.length>=2?L[1]:"0";var K=pT(D.player.W().mE),a=D.player.getVideoData(1),F=g.Jq(a.f$,!0),V="BISCOTTI_ID"in M?M.BISCOTTI_ID:"";TGn(D,F,X,V.toString(),D.player.W(),a);a={splay:!1,lactMilliseconds:M.LACT.toString(),playerHeightPixels:Math.trunc(M.P_H),playerWidthPixels:Math.trunc(M.P_W),vis:Math.trunc(M.VIS), signatureTimestamp:20401,autonavState:rC(D.player.W())};Q&&(Q={},KGo(Q,M.YT_REMOTE)&&(a.mdxContext=Q));if(Q=cJs.includes(K)?void 0:g.oy("PREF")){for(var c=Q.split(RegExp("[:&]")),S=0,b=c.length;S1&&n[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}a.autoCaptionsDefaultOn=FG1(Q)}X=fDm.exec(X);(X=X!=null&&X.length>=2?X[1]:"")&&w&&(F.user.credentialTransferTokens=[{token:X,scope:"VIDEO"}]); X={contentPlaybackContext:a};t={adBlock:Math.trunc(M.AD_BLOCK),params:t,breakIndex:T,breakPositionMs:L,clientPlaybackNonce:M.CPN,topLevelDomain:K,isProxyAdTagRequest:q,context:F,adSignalsInfoString:Qj(Ka(V.toString())),overridePlaybackContext:X};h!==void 0&&(t.cueProcessedMs=Math.round(h).toString());w&&(t.videoId=w);M.LIVE_TARGETING_CONTEXT&&(t.liveTargetingParams=M.LIVE_TARGETING_CONTEXT);M.AD_BREAK_LENGTH&&(t.breakLengthMs=Math.trunc(M.AD_BREAK_LENGTH*1E3).toString());H&&(t.driftFromHeadMs=H.toString()); t.currentMediaTimeMs=Math.round(D.player.getCurrentTime(1)*1E3);(D=D.player.getGetAdBreakContext())&&(t.getAdBreakContext=D);return t},Eh9=function(){iM.apply(this,arguments)},yJH=function(D,X,M,Q,h){var H=M.Wm; var t=M.sU;var q=D.player.W().oa,w=0;M.cueProcessedMs&&t&&!H&&(M=t.end-t.start,M>0&&(w=Math.floor(M/1E3)));var T={AD_BLOCK:h,AD_BREAK_LENGTH:H?H.rp:w,AUTONAV_STATE:rC(D.player.W()),CA_TYPE:"image",CPN:D.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:D.player.ox()*1E3,LACT:Vc(),LIVE_INDEX:H?D.Y++:1,LIVE_TARGETING_CONTEXT:H&&H.context?H.context:"",MIDROLL_POS:t?Math.round(t.start/1E3):0,MIDROLL_POS_MS:t?Math.round(t.start):0,VIS:D.player.getVisibilityState(),P_H:D.player.lj().Fh().height, P_W:D.player.lj().Fh().width,YT_REMOTE:q?q.join(","):""},L=sZ(La);Object.keys(L).forEach(function(K){L[K]!=null&&(T[K.toUpperCase()]=L[K].toString())}); Q!==""&&(T.BISCOTTI_ID=Q);Q={};Tr(X)&&(Q.sts="20401",(D=D.player.W().forcedExperiments)&&(Q.forced_experiments=D));return Nq(g.bh(X,T),Q)},PVm=function(D,X){var M=D.player.W(),Q,h=(Q=D.player.getVideoData(1))==null?void 0:Q.oauthToken; return g.Ni(M,h).then(function(H){if(H&&wc()){var t=CS();OI(t,H)}return g.RQ(D.player.iE(t),X,"/youtubei/v1/player/ad_break").then(function(q){return q})})},mwR=function(D){this.B2=D},nh2=function(D){this.B=D},bh_=function(D){this.B2=D},RqW=function(D){g.O.call(this); this.S=D;this.s4=eq_(this)},eq_=function(D){var X=new qBd(D.S.lM); g.p(D,X);D=[new mwR(D.S.B2),new nh2(D.S.B),new bh_(D.S.B2),new q2(D.S.jS,D.S.Bv),new Tb,new KH(D.S.Ye,D.S.GN,D.S.B2),new w0,new N2(D.S.GN)];D=g.e(D);for(var M=D.next();!M.done;M=D.next())w1H(X,M.value);D=g.e(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(M=D.next();!M.done;M=D.next())LH(X,M.value,function(){}); return X},IDn=function(D,X){this.Ye=D; this.bj=X},o4=function(D){var X=D.dC,M=D.bj; D=D.iH;var Q={wk$:new IDn(X.get(),M),bj:M};return{Nj:new d6(M,D,X),context:Q}},Ck=function(D,X,M,Q,h){g.O.call(this); this.G=X;this.Qf=M;this.dC=Q;this.AR=h;this.listeners=[];var H=new b2(this);g.p(this,H);H.N(D,"internalAbandon",this.XCz);this.addOnDisposeCallback(function(){g.RH(H)})},Ou=function(D){this.B=D; this.adVideoId=this.S=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.G=this.Y=!1;this.adFormat=null;this.U="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"},ghs=function(D){D.contentCpn=null; D.adCpn=null;D.videoId=null;D.adVideoId=null;D.adFormat=null;D.U="AD_PLACEMENT_KIND_UNKNOWN";D.actionType="unknown_type";D.Y=!1;D.G=!1},vhp=function(D,X){D=g.e(X); for(X=D.next();!X.done;X=D.next())if((X=X.value.renderer)&&(X.instreamVideoAdRenderer||X.linearAdSequenceRenderer||X.sandwichedLinearAdRenderer||X.instreamSurveyAdRenderer)){SQ("ad_i");g.Eg({isMonetized:!0});break}},dwo=function(D){var X; (X=D.B.getVideoData(1))!=null&&X.K&&(D.G=!1,X={},D.S&&D.videoId&&(X.cttAuthInfo={token:D.S,videoId:D.videoId}),yO("video_to_ad",X))},rj=function(D){D.G=!1; var X={};D.S&&D.videoId&&(X.cttAuthInfo={token:D.S,videoId:D.videoId});yO("ad_to_video",X);rJp(D)},rJp=function(D){if(D.Y)if(D.U==="AD_PLACEMENT_KIND_START"&&D.actionType==="video_to_ad")Ug("video_to_ad"); else{var X={adBreakType:fZ(D.U),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:D.videoStreamType};D.actionType==="ad_to_video"?(D.contentCpn&&(X.targetCpn=D.contentCpn),D.videoId&&(X.targetVideoId=D.videoId)):(D.adCpn&&(X.targetCpn=D.adCpn),D.adVideoId&&(X.targetVideoId=D.adVideoId));D.adFormat&&(X.adType=D.adFormat);D.contentCpn&&(X.clientPlaybackNonce=D.contentCpn);D.videoId&&(X.videoId=D.videoId);D.adCpn&&(X.adClientPlaybackNonce= D.adCpn);D.adVideoId&&(X.adVideoId=D.adVideoId);g.Eg(X,D.actionType);D.B.W().experiments.Z4("html5_ads_csi_qoes")&&(X=D.B.pk(D.actionType==="ad_to_video"?1:2),X=(0,g.fi)()-1E3*X,mj("qoes",X,D.actionType))}},pk=function(D){g.O.call(this); this.B=D;this.S=new Map;this.G=new b2(this);g.p(this,this.G);this.G.N(this.B,g.rI("ad"),this.onCueRangeEnter,this);this.G.N(this.B,g.iB("ad"),this.onCueRangeExit,this)},ihi=function(D,X,M,Q,h,H,t){g.v9.call(this,X,M,{id:D, namespace:"ad",priority:h,visible:Q,associatedClipId:H,markerPositionMs:t})},Aa=function(D){this.B=D},ohp=function(D,X){D.B.cueVideoByPlayerVars(X,2)},YN=function(D){this.B=D},lM=function(D){this.B=D},mV=function(D,X){return D.B.W().T(X)},CVs=function(D){return D.B.W().T("substitute_ad_cpn_macro_in_ssdai")},uj=function(D){var X,M,Q; return((X=D.B.getVideoData(1).getPlayerResponse())==null?void 0:(M=X.playerConfig)==null?void 0:(Q=M.daiConfig)==null?void 0:Q.enableServerStitchedDai)||!1},OHm=function(D){return D.B.W().T("html5_enable_vod_slar_with_notify_pacf")},OhR=function(D){return D.B.W().T("html5_recognize_predict_start_cue_point")},vx=function(D){return D.B.W().experiments.Z4("enable_desktop_player_underlay")},pV9=function(D){return D.B.W().experiments.Z4("html5_load_empty_player_in_media_break_sub_lra")},mw=function(D){return D.B.W().experiments.Z4("html5_load_ads_instead_of_cue")}, nZ=function(D){return D.B.W().experiments.Z4("html5_preload_ads")},AJd=function(D){return D.B.W().experiments.Z4("should_ignore_cuepoints_during_lifa_preroll")},b3=function(D){return D.B.W().experiments.Z4("enable_ads_control_flow_deterministic_id_generation")},YRm=function(D){return D.B.W().experiments.Z4("enable_desktop_discovery_video_abandon_pings")||zc(D.B.W())},lD1=function(D){return D.B.W().experiments.Z4("enable_progres_commands_lr_feeds")},JJ_=function(D){return D.B.W().experiments.Z4("enable_progress_commands_lr_shorts")}, jW=function(D){return D.B.W().experiments.Z4("html5_cuepoint_identifier_logging")},Wjs=function(D){D=D.B.getVideoData(1); return!!D&&D.T("html5_preload_first_vod_video_ad")&&!D.isDaiEnabled()&&!D.isLivePlayback},xwW=function(D){return D.B.W().experiments.Z4("html5_ssdai_enable_media_end_cue_range")},WGd=function(D){switch(D){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}},Gs2=function(){g.Dq.call(this); var D=this;this.S={};this.addOnDisposeCallback(function(){for(var X=g.e(Object.keys(D.S)),M=X.next();!M.done;M=X.next())delete D.S[M.value]})},Ja=function(){if(zqm===null){zqm=new Gs2; gH(u0).G="b";var D=gH(u0),X=l0(D)=="h"||l0(D)=="b",M=!(Fa(),!1);X&&M&&(D.D=!0,D.X=new gln)}return zqm},ks5=function(D,X,M){D.S[X]=M},uli=function(D){switch(D){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}},xN=function(D,X,M){this.Qf=D; this.B=X;this.bj=M;this.G=new Set;this.S=new Map;Ja().subscribe("adactiveviewmeasurable",this.jO,this);Ja().subscribe("adfullyviewableaudiblehalfdurationimpression",this.V0,this);Ja().subscribe("adviewableimpression",this.zi,this);Ja().subscribe("adaudioaudible",this.q9,this);Ja().subscribe("adaudiomeasurable",this.Kn,this)},GI=function(D,X,M){var Q=M.EJ,h=M.TM,H=M.listener; M=M.GH;if(D.S.has(X))Hb("Unexpected registration of layout in LidarApi");else{if(M){if(D.G.has(M))return;D.G.add(M)}D.S.set(X,H);lb(Fa().uM,"fmd",1);Y12(gH(u0),Q);ks5(Ja(),X,{yP:function(){if(!h)return{};var t=D.B.getPresentingPlayerType(!0),q;return(q=D.B.getVideoData(t))!=null&&q.isAd()?{currentTime:D.Qf.get().getCurrentTimeSec(t,!1,void 0),duration:h,isPlaying:Wv(D.Qf.get(),t).isPlaying(),isVpaid:!1,isYouTube:!0,volume:D.Qf.get().isMuted()?0:D.Qf.get().getVolume()/100}:{}}})}},zI=function(D,X){D.S.has(X)? (D.S.delete(X),delete Ja().S[X]):Hb("Unexpected unregistration of layout in LidarApi")},jV_=function(D,X){if(D.B.isLifaAdPlaying()){var M=D.B.WL(!0,!0); D.fv(X,M.width*.5*1.1,M.height*.25*1.1,M.width*.5*.9,M.height*.5*.9)}},Mci=function(D,X){var M={}; DA_(D,M,X);X69(M);M.LACT=kN(function(){return Vc().toString()}); M.VIS=kN(function(){return D.getVisibilityState().toString()}); M.SDKV="h.3.0";M.VOL=kN(function(){return D.isMuted()?"0":Math.round(D.getVolume()).toString()}); M.VED="";return M},QR9=function(D,X){var M={}; if(X||!D||!D.kind)return M;if(D.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||D.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!D.adTimeOffset||!D.adTimeOffset.offsetStartMilliseconds)return g.ET(Error("malformed AdPlacementConfig")),M;M.MIDROLL_POS=kN(lv(Math.round(WH(D.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else M.MIDROLL_POS=kN(lv("0"));return M},kN=function(D){return{toString:function(){return D()}}},hZR=function(D,X,M){function Q(q,w){(w=M[w])&&(H[q]=w)} function h(q,w){(w=M[w])&&(H[q]=t(w))} if(!M||g.ef(M))return D;var H=Object.assign({},D),t=X?encodeURIComponent:function(q){return q}; h("DV_VIEWABILITY","doubleVerifyViewability");h("IAS_VIEWABILITY","integralAdsViewability");h("MOAT_INIT","moatInit");h("MOAT_VIEWABILITY","moatViewability");Q("GOOGLE_VIEWABILITY","googleViewability");Q("VIEWABILITY","viewability");return H},DA_=function(D,X,M){X.CPN=kN(function(){var Q; (Q=D.getVideoData(1))?Q=Q.clientPlaybackNonce:(g.P3(Error("Video data is null.")),Q=null);return Q}); X.AD_MT=kN(function(){if(M!=null)var Q=M;else if(D.W().T("enable_h5_shorts_ad_fill_ad_mt_macro")||D.W().T("enable_desktop_discovery_pings_ad_mt_macro")||zc(D.W())){var h=D.getPresentingPlayerType(!0),H;Q=((H=D.getVideoData(h))==null?0:H.isAd())?D.getCurrentTime(h,!1):0}else Q=D.getCurrentTime(2,!1);return Ht2(Q)}); X.MT=kN(function(){return Ht2(D.getCurrentTime(1,!1))}); X.P_H=kN(function(){return D.lj().Fh().height.toString()}); X.P_W=kN(function(){return D.lj().Fh().width.toString()}); X.PV_H=kN(function(){return D.lj().getVideoContentRect().height.toString()}); X.PV_W=kN(function(){return D.lj().getVideoContentRect().width.toString()})},Ht2=function(D){return Math.round(Math.max(0,D*1E3)).toString()},X69=function(D){D.CONN=kN(lv("0")); D.WT=kN(function(){return Date.now().toString()})},tcd=function(){},NWn=function(D,X,M,Q,h){var H,t,q,w,T,L,K,a,F,V,c,S,b; g.r(function(n){switch(n.S){case 1:H=!!X.scrubReferrer;t=g.bh(X.baseUrl,hZR(M,H,Q));q={};if(!X.headers){n.D4(2);break}w=D.U();if(!w.S){T=w.getValue();n.D4(3);break}return g.I(n,w.S,4);case 4:T=n.G;case 3:L=T;K=g.e(X.headers);for(a=K.next();!a.done;a=K.next())switch(F=a.value,F.headerType){case "VISITOR_ID":g.zZ("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.zZ("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.zZ("EOM_VISITOR_DATA")&&(q["X-Goog-EOM-Visitor-Id"]=g.zZ("EOM_VISITOR_DATA"));break;case "USER_AUTH":L&& (q.Authorization="Bearer "+L);break;case "PLUS_PAGE_ID":(V=D.D())&&(q["X-Goog-PageId"]=V);break;case "AUTH_USER":c=D.S();!L&&c&&(q["X-Goog-AuthUser"]=c);break;case "DATASYNC_ID":if(S=void 0,(S=D.Y())==null?0:S.Z4("enable_datasync_id_header_in_web_vss_pings"))b=D.G(),qq(t)&&g.zZ("LOGGED_IN")&&b&&(q["X-YouTube-DataSync-Id"]=b)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];case 2:g.gf(t,void 0,H,Object.keys(q).length!==0?q:void 0,"",!0,h),g.HZ(n)}})},qAo=function(D, X,M,Q,h){this.U=D; this.D=X;this.S=M;this.G=Q;this.Y=h},w6o=function(D,X){this.S=D; this.bj=X},uM=function(D,X,M,Q,h,H){var t=t===void 0?new qAo(function(){var q=D.W(),w=D.getVideoData(1); return g.Ni(q,w?g.lf(w):"")},function(){return D.W().pageId},function(){return D.W().sR},function(){var q; return(q=D.W().datasyncId)!=null?q:""},function(){return D.W().experiments}):t; this.B=D;this.G=X;this.Yl=M;this.dC=Q;this.Nj=h;this.bj=H;this.U=t;this.AB=null;this.S=new Map;this.Y=new w6o(t,this.bj)},LPs=function(D,X,M,Q,h){var H=w6(D.G.get(),M); H?(M=t8(D,TWW(H),H,void 0,void 0,Q),X.hasOwnProperty("baseUrl")?D.U.send(X,M):D.Y.send(X,M,{},h)):Hb("Trying to ping from an unknown layout",void 0,void 0,{layoutId:M})},$81=function(D,X,M,Q,h,H){Q=Q===void 0?[]:Q; var t=w6(D.G.get(),X);if(t){var q=D.Yl.get().d6(X,M),w=t8(D,TWW(t),t,h,H);Q.forEach(function(T,L){T.baseUrl&&(D.Y.send(T.baseUrl,w,q,T.attributionSrcMode),T.serializedAdPingMetadata&&D.Nj.S("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,t,new VQs(T,L),void 0,void 0,t.adLayoutLoggingData))})}else Hb("Trying to track from an unknown layout.",void 0,void 0,{layoutId:X, trackingType:M})},jV=function(D,X){D.B.sendVideoStatsEngageEvent(X,void 0,2)},Of=function(D,X){g.Tm("adsClientStateChange",X)},sR2=function(D,X){D.S.has(X.ZR())?Hb("Trying to register an existing AdErrorInfoSupplier."):D.S.set(X.ZR(),X)},KPm=function(D,X){D.S.delete(X.ZR())||Hb("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")},YK=function(D,X,M){typeof M==="string"?D.B.getVideoData(1).HK(X,M):D.B.getVideoData(1).SH(X,M)},TWW=function(D){var X=rE(D.clientMetadata,"metadata_type_ad_placement_config"); D=rE(D.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:X,e5:D}},t8=function(D,X,M,Q,h,H){var t=M?ays(D):{},q=M?FPs(D,M.layoutId):{},w=Vc_(D),T,L=h!=null?h:(T=W7(D.dC.get(),2))==null?void 0:T.clientPlaybackNonce; h={};D=Object.assign({},Mci(D.B,Q),QR9(X.adPlacementConfig,(M==null?void 0:M.renderingContent)!==void 0),q,t,w,(h.FINAL=kN(function(){return"1"}),h.AD_CPN=kN(function(){return L||""}),h)); (M==null?void 0:M.renderingContent)!==void 0||(D.SLOT_POS=kN(function(){return(X.e5||0).toString()})); M={};H=Object.assign({},D,H);D=g.e(Object.values($Ao));for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,t=H[Q],t!=null&&t.toString()!=null&&(M[Q]=t.toString());return M},ays=function(D){var X={},M,Q=(M=D.AB)==null?void 0:M.GC/1E3; Q!=null&&(X.SURVEY_ELAPSED_MS=kN(function(){return Math.round(Q*1E3).toString()})); X.SURVEY_LOCAL_TIME_EPOCH_S=kN(function(){return Math.round(Date.now()/1E3).toString()}); return X},FPs=function(D,X){D=D.S.get(X); if(!D)return{};D=D.b8();if(!D)return{};X={};return X.YT_ERROR_CODE=D.gZ.toString(),X.ERRORCODE=D.By.toString(),X.ERROR_MSG=D.errorMessage,X},Vc_=function(D){var X={},M=D.B.getVideoData(1); X.ASR=kN(function(){var Q;return(Q=M==null?void 0:M.XC)!=null?Q:null}); X.EI=kN(function(){var Q;return(Q=M==null?void 0:M.eventId)!=null?Q:null}); return X},DV=function(D,X,M){g.O.call(this); this.B=D;this.uL=X;this.bj=M;this.listeners=[];this.Dw=null;this.yM=new Map;X=new g.HE(this);g.p(this,X);X.N(D,"videodatachange",this.m25);X.N(D,"serverstitchedvideochange",this.b2$);this.qM=W7(this)},W7=function(D,X){var M=D.B.getVideoData(X); return M?D.Zf(M,X||D.B.getPresentingPlayerType(!0)):null},BWs=function(D,X,M){var Q=D.Zf(X,M); D.qM=Q;D.listeners.forEach(function(h){h.Bl(Q)})},Xs=function(D,X){g.O.call(this); this.B=D;this.dC=X;this.listeners=[];this.eX=[];this.nU=function(){Hb("Called 'doUnlockPreroll' before it's initialized.")}; X=new b2(this);var M=new g.HE(this);g.p(this,M);g.p(this,X);X.N(D,"progresssync",this.v$F);X.N(D,"presentingplayerstatechange",this.DKf);X.N(D,"fullscreentoggled",this.onFullscreenToggled);X.N(D,"onVolumeChange",this.onVolumeChange);X.N(D,"minimized",this.Sg);X.N(D,"overlayvisibilitychange",this.TN);X.N(D,"shortsadswipe",this.PL);X.N(D,"resize",this.Fk);M.N(D,g.rI("appad"),this.BL)},Zts=function(D,X){D.eX=D.eX.filter(function(M){return M!==X})},MY=function(D,X,M){return D.getCurrentTimeSec(X,M)}, Qr=function(D,X){var M; X=(M=D.dC.get().yM.get(X))!=null?M:null;if(X===null)return Hb("Expected ad video start time on playback timeline"),0;D=D.B.getCurrentTime(2,!0);return D0){var H=X.end.toString();h.forEach(function(t){(t=t.config&&t.config.adPlacementConfig)&&t.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&t.adTimeOffset&&t.adTimeOffset.offsetEndMilliseconds==="-1"&&t.adTimeOffset.offsetEndMilliseconds!==H&&(t.adTimeOffset.offsetEndMilliseconds=H)}); Q.map(function(t){return g.Z(t,Ln)}).forEach(function(t){var q; (t=t==null?void 0:(q=t.slotEntryTrigger)==null?void 0:q.mediaTimeRangeTrigger)&&t.offsetEndMilliseconds==="-1"&&(t.offsetEndMilliseconds=H)})}return{TR:h, adSlots:Q,uq:!1,ssdaiAdsConfig:D.ssdaiAdsConfig}},qY=function(D){g.O.call(this); this.B=D;this.listeners=[];this.S=new b2(this);g.p(this,this.S);this.S.N(this.B,"aduxclicked",this.onAdUxClicked);this.S.N(this.B,"aduxmouseover",this.EV);this.S.N(this.B,"aduxmouseout",this.wi);this.S.N(this.B,"muteadaccepted",this.N35)},yZn=function(D,X,M){X=g.be(X,function(Q){return new UBp(Q,M,Q.id)}); D.B.ER("onAdUxUpdate",X)},wu=function(D,X){D=g.e(D.listeners); for(var M=D.next();!M.done;M=D.next())X(M.value)},T_=function(D,X){this.G=D; this.Y=X===void 0?!1:X;this.S={}},Pon=function(D,X){var M=D.startSecs+D.rp; M=M<=0?null:M;if(M===null)return null;switch(D.event){case "start":case "continue":case "stop":break;case "predictStart":if(X)break;return null;default:return null}X=Math.max(D.startSecs,0);return{Vr:new cC(X,M),PjH:new XV(X,M-X,D.context,D.identifier,D.event,D.S)}}; var Xs5=function(D){return D52[N[15]](this,3,D)}; mAH=function(){this.S=[]}; vu9=function(D,X,M){var Q=g.sK(D.S,X);if(Q>=0)return X;X=-Q-1;return X>=D.S.length||D.S[X]>M?null:D.S[X]}; LV=function(D,X,M){g.O.call(this);this.B=D;this.bj=X;this.B2=M;this.listeners=[];this.U=!1;this.Tg=[];this.S=null;this.D=new T_(this,OhR(X.get()));this.Y=new mAH;this.G=null}; nb1=function(D,X){D.Tg.push(X);for(var M=!1,Q=g.e(D.listeners),h=Q.next();!h.done;h=Q.next())M=h.value.ut(X)||M;D.U=M;jW(D.bj.get())&&YK(D.B2.get(),"onci","cpi."+X.identifier+";cpe."+X.event+";cps."+X.startSecs+";cbi."+M)}; eZo=function(D,X){Of(D.B2.get(),{cuepointTrigger:{event:btH(X.event),cuepointId:X.identifier,totalCueDurationMs:X.rp*1E3,playheadTimeMs:X.S,cueStartTimeMs:X.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:D.B.getVideoData(1).clientPlaybackNonce}})}; btH=function(D){switch(D){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 mv(D,"Unexpected cuepoint event")}}; sk=function(D){this.B=D}; KV=function(D){this.B=D}; RZn=function(D){switch(D){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:mv(D,"unknown transitionReason")}}; av=function(){g.O.apply(this,arguments);this.Rk2=new Map}; Iym=function(D){this.B=D}; gb2=function(D,X,M,Q,h){g.O.call(this);var H=this,t=UF(function(){return new n_(H.bj)}); g.p(this,t);var q=UF(function(){return new ep(t)}); g.p(this,q);var w=UF(function(){return new NQ}); g.p(this,w);var T=UF(function(){return new HN(D)}); g.p(this,T);var L=UF(function(){return new R2(t,q,H.bj)}); g.p(this,L);var K=UF(function(){return new r6}); g.p(this,K);this.nK=UF(function(){return new qY(X)}); g.p(this,this.nK);this.Xk=UF(function(){return new fx(h)}); g.p(this,this.Xk);this.OH=UF(function(){return new Ou(X)}); g.p(this,this.OH);this.rI=UF(function(){return new pk(X)}); g.p(this,this.rI);this.mH=UF(function(){return new Aa(X)}); g.p(this,this.mH);this.lM=UF(function(){return new YN(X)}); g.p(this,this.lM);this.bj=UF(function(){return new lM(X)}); g.p(this,this.bj);var a=UF(function(){return new NY(Q)}); g.p(this,a);var F=UF(function(){return new JH(H.bj)}); g.p(this,F);this.BB=UF(function(){return new sk(X)}); g.p(this,this.BB);this.gV=UF(function(){return new yn}); g.p(this,this.gV);this.dC=UF(function(){return new DV(X,K,H.bj)}); g.p(this,this.dC);var V=o4({dC:this.dC,bj:this.bj,iH:F}),c=V.context;this.Nj=V.Nj;this.AR=UF(function(){return new LV(X,H.bj,H.B2)}); g.p(this,this.AR);this.EH=UF(function(){return new KV(X)}); g.p(this,this.EH);this.Qf=UF(function(){return new Xs(X,H.dC)}); g.p(this,this.Qf);this.b0=UF(function(){return new av}); g.p(this,this.b0);V=UF(function(){return new Wx(t,L,q,H.bj,F,"SLOT_TYPE_ABOVE_FEED",H.Qf,H.r6,H.yB)}); g.p(this,V);this.Xz=UF(function(){return new P9(H.bj)}); this.Yl=UF(function(){return new xN(H.Qf,X,H.bj)}); g.p(this,this.Yl);this.B2=UF(function(){return new uM(X,w,H.Yl,H.dC,H.Nj,H.bj)}); g.p(this,this.B2);this.Ck=new QS(MQ,Fs,function(b,n,R,v){return gD(q.get(),b,n,R,v)},T,L,q,F,this.bj,this.dC); g.p(this,this.Ck);this.Um=new hS(T,V,M,D,this.dC,this.Qf,this.OH);g.p(this,this.Um);var S=new Ck(X,this.Um,this.Qf,this.dC,this.AR);this.sW=UF(function(){return S}); this.er=S;this.r6=new kw(T,L,this.sW,this.AR,this.Qf,this.bj,this.B2,this.EH);g.p(this,this.r6);this.Tw=new tS(T,L,this.rI,this.sW,c);g.p(this,this.Tw);this.bH=new Zh(this.bj,T,L,V,this.dC,this.Tw,M,this.mH);g.p(this,this.bH);this.Vp=UF(function(){return new Y2(a,q,F,H.bj,H.B2,H.Qf,H.EH)}); g.p(this,this.Vp);this.f2=UF(function(){return new lB}); g.p(this,this.f2);this.FP=new a2(D,this.nK,this.bj);g.p(this,this.FP);this.o2=new FR(D);g.p(this,this.o2);this.kB=new VS(D);g.p(this,this.kB);this.Dc=new BN(D,this.sW,c);g.p(this,this.Dc);this.Jq=new ZC(D,this.rI,this.Qf,this.dC);g.p(this,this.Jq);this.m9=new Ub(D,this.dC);g.p(this,this.m9);this.yB=new Sp(D,this.AR,this.Qf,this.B2,this.sW,this.r6);g.p(this,this.yB);this.zw=new cN(D);g.p(this,this.zw);this.UC=new mx(D);g.p(this,this.UC);this.XO=new f_(D);g.p(this,this.XO);this.Fq=new PN(D);g.p(this, this.Fq);this.UC=new mx(D);g.p(this,this.UC);this.qK=UF(function(){return new T0}); g.p(this,this.qK);this.Jz=UF(function(){return new L_(H.Qf)}); g.p(this,this.Jz);this.qG=UF(function(){return new rFo(H.nK,H.B2,D,w,H.Yl)}); g.p(this,this.qG);this.Km=UF(function(){return new bZ(H.bH,T,t)}); g.p(this,this.Km);this.Yc=UF(function(){return new IX(H.bj,H.B2,H.zw,H.Yl)}); g.p(this,this.Yc);this.O5=UF(function(){return new kK(D,H.UC,H.zw,H.dC,H.EH,H.Qf,H.b0,H.B2,K,H.AR,H.Yl,H.Xz,H.mH,H.rI,H.OH,H.lM,H.Xk,H.BB,H.bj,w,c)}); g.p(this,this.O5);this.j4=UF(function(){return new uNp(H.Qf,H.B2,H.Xk,H.bj,H.Yl,H.dC)}); g.p(this,this.j4);this.NP=UF(function(){return new HXW(H.nK,H.Qf,H.B2,w,H.Yl,H.kB,H.Fq,H.Xk,H.bj,M)}); g.p(this,this.NP);this.pI=UF(function(){return new iji(H.nK,H.B2,w)}); g.p(this,this.pI);this.HJ=new tA(D,this.gV,t);g.p(this,this.HJ);this.bE={CN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.r6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ck],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Um],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Tw]]),U$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vp],["SLOT_TYPE_ABOVE_FEED",this.f2],["SLOT_TYPE_FORECASTING",this.f2], ["SLOT_TYPE_IN_PLAYER",this.f2],["SLOT_TYPE_PLAYER_BYTES",this.f2],["SLOT_TYPE_PLAYER_UNDERLAY",this.f2],["SLOT_TYPE_PLAYBACK_TRACKING",this.f2],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.f2]]),ge:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.FP],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.FP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.o2],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.o2],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.o2],["TRIGGER_TYPE_SLOT_ID_EXITED",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.o2],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.o2],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.o2],["TRIGGER_TYPE_CLOSE_REQUESTED",this.kB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Dc],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Jq],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Jq],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Jq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Jq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Jq],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Jq],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Jq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.m9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.m9],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Dc],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.XO],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Fq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.yB],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yB],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yB],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yB]]),ZG:new Map([["SLOT_TYPE_ABOVE_FEED",this.qK], ["SLOT_TYPE_AD_BREAK_REQUEST",this.qK],["SLOT_TYPE_FORECASTING",this.qK],["SLOT_TYPE_IN_PLAYER",this.qK],["SLOT_TYPE_PLAYER_BYTES",this.Jz],["SLOT_TYPE_PLAYER_UNDERLAY",this.qK],["SLOT_TYPE_PLAYBACK_TRACKING",this.qK],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.qK]]),qP:new Map([["SLOT_TYPE_ABOVE_FEED",this.qG],["SLOT_TYPE_AD_BREAK_REQUEST",this.Km],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_PLAYER_BYTES",this.O5],["SLOT_TYPE_PLAYBACK_TRACKING",this.j4],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.j4],["SLOT_TYPE_IN_PLAYER",this.NP],["SLOT_TYPE_PLAYER_UNDERLAY",this.pI]])};this.listeners=[w.get()];this.R0={bH:this.bH,GN:this.bj.get(),I5:this.Xk.get(),Nr:this.Qf.get(),Um:this.Um,rD:t.get(),Fx:this.gV.get(),Bv:this.FP,jS:w.get(),Ye:this.dC.get()}}; vbd=function(D,X,M,Q,h){g.O.call(this);var H=this,t=UF(function(){return new n_(H.bj)}); g.p(this,t);var q=UF(function(){return new ep(t)}); g.p(this,q);var w=UF(function(){return new NQ}); g.p(this,w);var T=UF(function(){return new HN(D)}); g.p(this,T);var L=UF(function(){return new R2(t,q,H.bj)}); g.p(this,L);var K=UF(function(){return new r6}); g.p(this,K);this.nK=UF(function(){return new qY(X)}); g.p(this,this.nK);this.Xk=UF(function(){return new fx(h)}); g.p(this,this.Xk);this.OH=UF(function(){return new Ou(X)}); g.p(this,this.OH);this.rI=UF(function(){return new pk(X)}); g.p(this,this.rI);this.mH=UF(function(){return new Aa(X)}); g.p(this,this.mH);this.lM=UF(function(){return new YN(X)}); g.p(this,this.lM);this.bj=UF(function(){return new lM(X)}); g.p(this,this.bj);var a=UF(function(){return new NY(Q)}); g.p(this,a);var F=UF(function(){return new JH(H.bj)}); g.p(this,F);var V=UF(function(){return new Wx(t,L,q,H.bj,F,null,null,H.r6,H.yB)}); g.p(this,V);this.BB=UF(function(){return new sk(X)}); g.p(this,this.BB);this.gV=UF(function(){return new yn}); g.p(this,this.gV);this.dC=UF(function(){return new DV(X,K,H.bj)}); g.p(this,this.dC);var c=o4({dC:this.dC,bj:this.bj,iH:F}),S=c.context;this.Nj=c.Nj;this.AR=UF(function(){return new LV(X,H.bj,H.B2)}); this.Qf=UF(function(){return new Xs(X,H.dC)}); g.p(this,this.Qf);this.b0=UF(function(){return new av}); g.p(this,this.b0);this.Yl=UF(function(){return new xN(H.Qf,X,H.bj)}); g.p(this,this.Yl);this.B2=UF(function(){return new uM(X,w,H.Yl,H.dC,H.Nj,H.bj)}); g.p(this,this.B2);this.Xz=UF(function(){return new P9(H.bj)}); g.p(this,this.Xz);this.Ck=new QS(MQ,Fs,function(n,R,v,l){return gD(q.get(),n,R,v,l)},T,L,q,F,this.bj,this.dC); g.p(this,this.Ck);this.Um=new hS(T,V,M,D,this.dC,this.Qf,this.OH);g.p(this,this.Um);var b=new Ck(X,this.Um,this.Qf,this.dC,this.AR);this.sW=UF(function(){return b}); this.er=b;this.r6=new kw(T,L,this.sW,this.AR,this.Qf,this.bj,this.B2);g.p(this,this.r6);this.Tw=new tS(T,L,this.rI,this.sW,S);g.p(this,this.Tw);this.bH=new Zh(this.bj,T,L,V,this.dC,this.Tw,M,this.mH);g.p(this,this.bH);this.Vp=UF(function(){return new Y2(a,q,F,H.bj,H.B2,H.Qf)}); g.p(this,this.Vp);this.f2=UF(function(){return new lB}); g.p(this,this.f2);this.FP=new a2(D,this.nK,this.bj);g.p(this,this.FP);this.o2=new FR(D);g.p(this,this.o2);this.kB=new VS(D);g.p(this,this.kB);this.Dc=new BN(D,this.sW,S);g.p(this,this.Dc);this.Jq=new ZC(D,this.rI,this.Qf,this.dC);g.p(this,this.Jq);this.zw=new cN(D);g.p(this,this.zw);this.XO=new f_(D);g.p(this,this.XO);this.Fq=new PN(D);g.p(this,this.Fq);this.EH=UF(function(){return new KV(X)}); g.p(this,this.EH);this.UC=new mx(D);g.p(this,this.UC);this.yB=new Sp(D,this.AR,this.Qf,this.B2,this.sW,this.r6);g.p(this,this.yB);this.qK=UF(function(){return new T0}); g.p(this,this.qK);this.Jz=UF(function(){return new L_(H.Qf)}); g.p(this,this.Jz);this.Km=UF(function(){return new bZ(H.bH,T,t)}); g.p(this,this.Km);this.Yc=UF(function(){return new IX(H.bj,H.B2,H.zw,H.Yl)}); g.p(this,this.Yc);this.NP=UF(function(){return new tQd(H.nK,H.Qf,H.B2,w,H.Yl,H.kB,H.Fq,H.Xk,H.bj,M)}); g.p(this,this.NP);this.O5=UF(function(){return new uc(D,H.UC,H.zw,H.B2,H.Yl,H.Xz,H.mH,H.dC,H.Qf,H.b0,H.rI,H.OH,H.lM,H.Xk,H.BB,H.bj,H.EH,S)}); g.p(this,this.O5);this.HJ=new tA(D,this.gV,t);g.p(this,this.HJ);this.bE={CN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.r6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ck],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Um],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Tw]]),U$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vp],["SLOT_TYPE_FORECASTING",this.f2],["SLOT_TYPE_IN_PLAYER",this.f2], ["SLOT_TYPE_PLAYER_BYTES",this.f2]]),ge:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.FP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.o2],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.o2],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_EXITED",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.o2], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.o2],["TRIGGER_TYPE_CLOSE_REQUESTED",this.kB],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Dc],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Jq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Jq],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Jq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Dc],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.XO],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Fq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.yB],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yB],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yB],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yB]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qK],["SLOT_TYPE_FORECASTING",this.qK],["SLOT_TYPE_IN_PLAYER",this.qK],["SLOT_TYPE_PLAYER_BYTES",this.Jz]]), qP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Km],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER",this.NP],["SLOT_TYPE_PLAYER_BYTES",this.O5]])};this.listeners=[w.get()];this.R0={bH:this.bH,GN:this.bj.get(),I5:this.Xk.get(),Nr:this.Qf.get(),Um:this.Um,rD:t.get(),Fx:this.gV.get(),Bv:this.FP,jS:w.get(),Ye:this.dC.get()}}; dAn=function(D,X,M,Q,h){g.O.call(this);var H=this,t=UF(function(){return new n_(H.bj)}); g.p(this,t);var q=UF(function(){return new ep(t)}); g.p(this,q);var w=UF(function(){return new NQ}); g.p(this,w);var T=UF(function(){return new HN(D)}); g.p(this,T);var L=UF(function(){return new R2(t,q,H.bj)}); g.p(this,L);var K=UF(function(){return new r6}); g.p(this,K);this.nK=UF(function(){return new qY(X)}); g.p(this,this.nK);this.Xk=UF(function(){return new fx(h)}); g.p(this,this.Xk);this.OH=UF(function(){return new Ou(X)}); g.p(this,this.OH);this.rI=UF(function(){return new pk(X)}); g.p(this,this.rI);this.mH=UF(function(){return new Aa(X)}); g.p(this,this.mH);this.lM=UF(function(){return new YN(X)}); g.p(this,this.lM);this.bj=UF(function(){return new lM(X)}); g.p(this,this.bj);var a=UF(function(){return new NY(Q)}); g.p(this,a);var F=UF(function(){return new JH(H.bj)}); g.p(this,F);var V=UF(function(){return new Wx(t,L,q,H.bj,F,null,null,null,null)}); g.p(this,V);this.BB=UF(function(){return new sk(X)}); g.p(this,this.BB);this.dC=UF(function(){return new DV(X,K,H.bj)}); g.p(this,this.dC);var c=o4({dC:this.dC,bj:this.bj,iH:F}),S=c.context;this.Nj=c.Nj;this.Qf=UF(function(){return new Xs(X,H.dC)}); g.p(this,this.Qf);this.b0=UF(function(){return new av}); g.p(this,this.b0);this.Yl=UF(function(){return new xN(H.Qf,X,H.bj)}); g.p(this,this.Yl);this.B2=UF(function(){return new uM(X,w,H.Yl,H.dC,H.Nj,H.bj)}); g.p(this,this.B2);this.Xz=UF(function(){return new P9(H.bj)}); g.p(this,this.Xz);this.Ck=new QS(MQ,Fs,function(n,R,v,l){return gD(q.get(),n,R,v,l)},T,L,q,F,this.bj,this.dC); g.p(this,this.Ck);this.Um=new hS(T,V,M,D,this.dC,this.Qf,this.OH);g.p(this,this.Um);var b=new Ck(X,this.Um,this.Qf,this.dC);this.sW=UF(function(){return b}); this.er=b;this.Tw=new tS(T,L,this.rI,this.sW,S);g.p(this,this.Tw);this.bH=new Zh(this.bj,T,L,V,this.dC,this.Tw,M,this.mH);g.p(this,this.bH);this.Vp=UF(function(){return new Y2(a,q,F,H.bj,H.B2,H.Qf)}); g.p(this,this.Vp);this.f2=UF(function(){return new lB}); g.p(this,this.f2);this.FP=new a2(D,this.nK,this.bj);g.p(this,this.FP);this.o2=new FR(D);g.p(this,this.o2);this.Dc=new BN(D,this.sW,S);g.p(this,this.Dc);this.Jq=new ZC(D,this.rI,this.Qf,this.dC);g.p(this,this.Jq);this.zw=new cN(D);g.p(this,this.zw);this.XO=new f_(D);g.p(this,this.XO);this.EH=UF(function(){return new KV(X)}); g.p(this,this.EH);this.UC=new mx(D);g.p(this,this.UC);this.qK=UF(function(){return new T0}); g.p(this,this.qK);this.Jz=UF(function(){return new L_(H.Qf)}); g.p(this,this.Jz);this.Km=UF(function(){return new bZ(H.bH,T,t)}); g.p(this,this.Km);this.Yc=UF(function(){return new IX(H.bj,H.B2,H.zw,H.Yl)}); g.p(this,this.Yc);this.uO=UF(function(){return new zP2(H.nK,H.Qf,H.B2,w,M,H.bj)}); g.p(this,this.uO);this.O5=UF(function(){return new uc(D,H.UC,H.zw,H.B2,H.Yl,H.Xz,H.mH,H.dC,H.Qf,H.b0,H.rI,H.OH,H.lM,H.Xk,H.BB,H.bj,H.EH,S)}); g.p(this,this.O5);this.bE={CN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bH],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ck],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Um],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Tw]]),U$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vp],["SLOT_TYPE_FORECASTING",this.f2],["SLOT_TYPE_IN_PLAYER",this.f2],["SLOT_TYPE_PLAYER_BYTES",this.f2]]),ge:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.FP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.o2],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.o2],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.o2],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_EXITED",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.o2],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Dc],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Jq],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Jq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Dc],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.XO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UC]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qK],["SLOT_TYPE_ABOVE_FEED",this.qK],["SLOT_TYPE_FORECASTING",this.qK],["SLOT_TYPE_IN_PLAYER",this.qK],["SLOT_TYPE_PLAYER_BYTES",this.Jz]]),qP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Km],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER", this.uO],["SLOT_TYPE_PLAYER_BYTES",this.O5]])};this.listeners=[w.get()];this.R0={bH:this.bH,GN:this.bj.get(),I5:this.Xk.get(),Nr:this.Qf.get(),Um:this.Um,rD:t.get(),Fx:null,Bv:this.FP,jS:w.get(),Ye:this.dC.get()}}; rZn=function(D,X,M,Q,h){g.O.call(this);var H=this,t=UF(function(){return new n_(H.bj)}); g.p(this,t);var q=UF(function(){return new ep(t)}); g.p(this,q);var w=UF(function(){return new NQ}); g.p(this,w);var T=UF(function(){return new HN(D)}); g.p(this,T);var L=UF(function(){return new R2(t,q,H.bj)}); g.p(this,L);var K=UF(function(){return new r6}); g.p(this,K);this.If=UF(function(){return new Iym(X)}); g.p(this,this.If);this.nK=UF(function(){return new qY(X)}); g.p(this,this.nK);this.Xk=UF(function(){return new fx(h)}); g.p(this,this.Xk);this.OH=UF(function(){return new Ou(X)}); g.p(this,this.OH);this.rI=UF(function(){return new pk(X)}); g.p(this,this.rI);this.mH=UF(function(){return new Aa(X)}); g.p(this,this.mH);this.lM=UF(function(){return new YN(X)}); g.p(this,this.lM);this.bj=UF(function(){return new lM(X)}); g.p(this,this.bj);var a=UF(function(){return new NY(Q)}); g.p(this,a);var F=UF(function(){return new JH(H.bj)}); g.p(this,F);var V=UF(function(){return new Wx(t,L,q,H.bj,F,null,null,null,null)}); g.p(this,V);this.BB=UF(function(){return new sk(X)}); g.p(this,this.BB);this.dC=UF(function(){return new DV(X,K,H.bj)}); g.p(this,this.dC);var c=o4({dC:this.dC,bj:this.bj,iH:F}),S=c.context;this.Nj=c.Nj;this.Qf=UF(function(){return new Xs(X,H.dC)}); g.p(this,this.Qf);this.b0=UF(function(){return new av}); g.p(this,this.b0);this.Yl=UF(function(){return new xN(H.Qf,X,H.bj)}); g.p(this,this.Yl);this.B2=UF(function(){return new uM(X,w,H.Yl,H.dC,H.Nj,H.bj)}); g.p(this,this.B2);this.Xz=UF(function(){return new P9(H.bj)}); g.p(this,this.Xz);this.Ck=new QS(lUR,Fs,function(n,R,v,l){return Ksp(q.get(),n,R,v,l)},T,L,q,F,this.bj,this.dC); g.p(this,this.Ck);this.Um=new hS(T,V,M,D,this.dC,this.Qf,this.OH);g.p(this,this.Um);var b=new Ck(X,this.Um,this.Qf,this.dC);this.sW=UF(function(){return b}); this.er=b;this.Tw=new tS(T,L,this.rI,this.sW,S);g.p(this,this.Tw);this.bH=new Zh(this.bj,T,L,V,this.dC,this.Tw,M,this.mH);g.p(this,this.bH);this.Vp=UF(function(){return new Y2(a,q,F,H.bj,H.B2,H.Qf)}); g.p(this,this.Vp);this.f2=UF(function(){return new lB}); g.p(this,this.f2);this.FP=new a2(D,this.nK,this.bj);g.p(this,this.FP);this.o2=new FR(D);g.p(this,this.o2);this.Dc=new BN(D,this.sW,S);g.p(this,this.Dc);this.Jq=new ZC(D,this.rI,this.Qf,this.dC);g.p(this,this.Jq);this.zw=new cN(D);g.p(this,this.zw);this.XO=new f_(D);g.p(this,this.XO);this.EH=UF(function(){return new KV(X)}); g.p(this,this.EH);this.UC=new mx(D);g.p(this,this.UC);this.qK=UF(function(){return new T0}); g.p(this,this.qK);this.Jz=UF(function(){return new L_(H.Qf)}); g.p(this,this.Jz);this.Km=UF(function(){return new bZ(H.bH,T,t)}); g.p(this,this.Km);this.Yc=UF(function(){return new IX(H.bj,H.B2,H.zw,H.Yl)}); g.p(this,this.Yc);this.O5=UF(function(){return new uc(D,H.UC,H.zw,H.B2,H.Yl,H.Xz,H.mH,H.dC,H.Qf,H.b0,H.rI,H.OH,H.lM,H.Xk,H.BB,H.bj,H.EH,S)}); g.p(this,this.O5);this.rS=UF(function(){return new qgm(H.nK,H.Qf,H.B2,w,H.If,M,H.dC)}); g.p(this,this.rS);this.bE={CN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bH],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ck],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Um],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Tw]]),U$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vp],["SLOT_TYPE_FORECASTING",this.f2],["SLOT_TYPE_IN_PLAYER",this.f2],["SLOT_TYPE_PLAYER_BYTES",this.f2]]),ge:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.FP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.o2],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.o2],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.o2],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_EXITED",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.o2],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Dc],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Jq],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Jq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Dc],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.XO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UC]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qK],["SLOT_TYPE_FORECASTING",this.qK],["SLOT_TYPE_IN_PLAYER",this.qK],["SLOT_TYPE_PLAYER_BYTES",this.Jz]]),qP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Km],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_IN_PLAYER",this.rS],["SLOT_TYPE_PLAYER_BYTES", this.O5]])};this.listeners=[w.get()];this.R0={bH:this.bH,GN:this.bj.get(),I5:this.Xk.get(),Nr:this.Qf.get(),Um:this.Um,rD:t.get(),Fx:null,Bv:this.FP,jS:w.get(),Ye:this.dC.get()}}; it1=function(D,X,M,Q,h){g.O.call(this);var H=this,t=UF(function(){return new n_(H.bj)}); g.p(this,t);var q=UF(function(){return new ep(t)}); g.p(this,q);var w=UF(function(){return new NQ}); g.p(this,w);var T=UF(function(){return new HN(D)}); g.p(this,T);var L=UF(function(){return new R2(t,q,H.bj)}); g.p(this,L);var K=UF(function(){return new r6}); g.p(this,K);this.If=UF(function(){return new Iym(X)}); g.p(this,this.If);this.nK=UF(function(){return new qY(X)}); g.p(this,this.nK);this.Xk=UF(function(){return new fx(h)}); g.p(this,this.Xk);this.OH=UF(function(){return new Ou(X)}); g.p(this,this.OH);this.rI=UF(function(){return new pk(X)}); g.p(this,this.rI);this.mH=UF(function(){return new Aa(X)}); g.p(this,this.mH);this.lM=UF(function(){return new YN(X)}); g.p(this,this.lM);this.bj=UF(function(){return new lM(X)}); g.p(this,this.bj);var a=UF(function(){return new NY(Q)}); g.p(this,a);var F=UF(function(){return new JH(H.bj)}); g.p(this,F);this.BB=UF(function(){return new sk(X)}); g.p(this,this.BB);this.dC=UF(function(){return new DV(X,K,H.bj)}); g.p(this,this.dC);var V=o4({dC:this.dC,bj:this.bj,iH:F}),c=V.context;this.Nj=V.Nj;this.AR=UF(function(){return new LV(X,H.bj,H.B2)}); g.p(this,this.AR);this.EH=UF(function(){return new KV(X)}); g.p(this,this.EH);this.Qf=UF(function(){return new Xs(X,H.dC)}); g.p(this,this.Qf);this.b0=UF(function(){return new av}); g.p(this,this.b0);V=UF(function(){return new Wx(t,L,q,H.bj,F,null,H.Qf,H.r6,H.yB,3)}); g.p(this,V);this.Xz=UF(function(){return new P9(H.bj)}); this.Yl=UF(function(){return new xN(H.Qf,X,H.bj)}); g.p(this,this.Yl);this.B2=UF(function(){return new uM(X,w,H.Yl,H.dC,H.Nj,H.bj)}); g.p(this,this.B2);this.Um=new hS(T,V,M,D,this.dC,this.Qf,this.OH);g.p(this,this.Um);var S=new Ck(X,this.Um,this.Qf,this.dC,this.AR);this.sW=UF(function(){return S}); this.er=S;this.Ck=new QS(JVm,Fs,function(b,n,R,v){return Ksp(q.get(),b,n,R,v)},T,L,q,F,this.bj,this.dC); g.p(this,this.Ck);this.r6=new kw(T,L,this.sW,this.AR,this.Qf,this.bj,this.B2,this.EH);g.p(this,this.r6);this.Tw=new tS(T,L,this.rI,this.sW,c);g.p(this,this.Tw);this.bH=new Zh(this.bj,T,L,V,this.dC,this.Tw,M,this.mH);g.p(this,this.bH);this.Vp=UF(function(){return new Y2(a,q,F,H.bj,H.B2,H.Qf,H.EH)}); g.p(this,this.Vp);this.f2=UF(function(){return new lB}); g.p(this,this.f2);this.FP=new a2(D,this.nK,this.bj);g.p(this,this.FP);this.o2=new FR(D);g.p(this,this.o2);this.Dc=new BN(D,this.sW,c);g.p(this,this.Dc);this.Jq=new ZC(D,this.rI,this.Qf,this.dC);g.p(this,this.Jq);this.m9=new Ub(D,this.dC);g.p(this,this.m9);this.yB=new Sp(D,this.AR,this.Qf,this.B2,this.sW,this.r6);g.p(this,this.yB);this.zw=new cN(D);g.p(this,this.zw);this.XO=new f_(D);g.p(this,this.XO);this.UC=new mx(D);g.p(this,this.UC);this.qK=UF(function(){return new T0}); g.p(this,this.qK);this.Jz=UF(function(){return new L_(H.Qf)}); g.p(this,this.Jz);this.Km=UF(function(){return new bZ(H.bH,T,t)}); g.p(this,this.Km);this.Yc=UF(function(){return new IX(H.bj,H.B2,H.zw,H.Yl)}); g.p(this,this.Yc);this.O5=UF(function(){return new kK(D,H.UC,H.zw,H.dC,H.EH,H.Qf,H.b0,H.B2,K,H.AR,H.Yl,H.Xz,H.mH,H.rI,H.OH,H.lM,H.Xk,H.BB,H.bj,w,c)}); g.p(this,this.O5);this.NP=UF(function(){return new wzR(H.nK,H.Qf,H.B2,w,H.If,M,H.bj,H.dC)}); g.p(this,this.NP);this.bE={CN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.bH],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.r6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ck],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Um],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Tw]]),U$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vp],["SLOT_TYPE_FORECASTING",this.f2],["SLOT_TYPE_IN_PLAYER",this.f2],["SLOT_TYPE_PLAYER_BYTES",this.f2]]),ge:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.FP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.o2],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.o2],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.o2],["TRIGGER_TYPE_SLOT_ID_EXITED",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.o2],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.o2],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Dc],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Jq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Jq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.m9],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.m9],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.zw],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Dc],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.XO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.UC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.yB],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.yB],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.yB],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.yB],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.yB]]),ZG:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qK],["SLOT_TYPE_FORECASTING",this.qK],["SLOT_TYPE_IN_PLAYER",this.qK],["SLOT_TYPE_PLAYER_BYTES",this.Jz]]),qP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Km],["SLOT_TYPE_FORECASTING",this.Yc],["SLOT_TYPE_PLAYER_BYTES",this.O5],["SLOT_TYPE_IN_PLAYER",this.NP]])};this.listeners=[w.get()]; this.R0={bH:this.bH,GN:this.bj.get(),I5:this.Xk.get(),Nr:this.Qf.get(),Um:this.Um,rD:t.get(),Fx:null,Bv:this.FP,jS:w.get(),Ye:this.dC.get()}}; Cod=function(D,X,M,Q){function h(){return H.G} g.O.call(this);var H=this;D.W().experiments.Z4("html5_dispose_of_manager_before_dependency")?(this.S=ob1(h,D,X,M,Q),this.G=(new c9(this.S)).Y(),g.p(this,this.G),g.p(this,this.S)):(this.S=ob1(h,D,X,M,Q),g.p(this,this.S),this.G=(new c9(this.S)).Y(),g.p(this,this.G))}; Vr=function(D){return D.S.R0}; ob1=function(D,X,M,Q,h){try{var H=X.W();if(g.uS(H))var t=new gb2(D,X,M,Q,h);else if(g.XD(H))t=new vbd(D,X,M,Q,h);else if(Yv(H))t=new dAn(D,X,M,Q,h);else if(g.RW(H))t=new rZn(D,X,M,Q,h);else if(g.iS(H))t=new it1(D,X,M,Q,h);else throw new TypeError("Unknown web interface");return t}catch(q){return t=X.W(),Hb("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:t.S.cplatform,interface:t.S.c,koC:t.S.cver,EP5:t.S.ctheme,wuj:t.S.cplayer,TyR:t.playerStyle}),new SA_(D,X,M,Q,h)}}; Ot5=function(D){CO.call(this,D)}; p69=function(D,X,M,Q,h){Wr.call(this,D,{L:"div",C:"ytp-ad-timed-pie-countdown-container",V:[{L:"svg",C:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{L:"circle",C:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{L:"circle",C:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{L:"circle",C:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",X,M,Q,h);this.U=this.h$("ytp-ad-timed-pie-countdown-container");this.Y=this.h$("ytp-ad-timed-pie-countdown-inner"); this.D=this.h$("ytp-ad-timed-pie-countdown-outer");this.G=Math.ceil(2*Math.PI*5);this.hide()}; AZs=function(D,X,M,Q,h,H){tU.call(this,D,{L:"div",C:"ytp-ad-action-interstitial",Z:{tabindex:"0"},V:[{L:"div",C:"ytp-ad-action-interstitial-background-container"},{L:"div",C:"ytp-ad-action-interstitial-slot",V:[{L:"div",C:"ytp-ad-action-interstitial-instream-info"},{L:"div",C:"ytp-ad-action-interstitial-card",V:[{L:"div",C:"ytp-ad-action-interstitial-image-container"},{L:"div",C:"ytp-ad-action-interstitial-headline-container"},{L:"div",C:"ytp-ad-action-interstitial-description-container"},{L:"div", C:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",X,M,Q);this.QO=h;this.Tq=H;this.navigationEndpoint=this.S=this.skipButton=this.G=this.actionButton=null;this.yf=this.h$("ytp-ad-action-interstitial-instream-info");this.uj=this.h$("ytp-ad-action-interstitial-image-container");this.K=new dq(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,"ytp-ad-action-interstitial-image");g.p(this,this.K);this.K.rC(this.uj);this.L$=this.h$("ytp-ad-action-interstitial-headline-container"); this.D=new JU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,"ytp-ad-action-interstitial-headline");g.p(this,this.D);this.D.rC(this.L$);this.R5=this.h$("ytp-ad-action-interstitial-description-container");this.Y=new JU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,"ytp-ad-action-interstitial-description");g.p(this,this.Y);this.Y.rC(this.R5);this.o5=this.h$("ytp-ad-action-interstitial-background-container");this.OR=new dq(this.api,this.layoutId,this.interactionLoggingClientData, this.I5,"ytp-ad-action-interstitial-background",!0);g.p(this,this.OR);this.OR.rC(this.o5);this.t$=this.h$("ytp-ad-action-interstitial-action-button-container");this.slot=this.h$("ytp-ad-action-interstitial-slot");this.gj=this.h$("ytp-ad-action-interstitial-card");this.U=new b2;g.p(this,this.U);this.hide()}; YA_=function(D){var X=g.cD("html5-video-player");X&&g.qE(X,"ytp-ad-display-override",D)}; WPi=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-overlay-slot",V:[{L:"div",C:"ytp-ad-overlay-container"}]},"invideo-overlay",X,M,Q);this.K=[];this.o5=this.L$=this.U=this.t$=this.yf=null;this.OR=!1;this.D=null;this.R5=0;D=this.h$("ytp-ad-overlay-container");this.uj=new MZ(D,45E3,6E3,.3,.4);g.p(this,this.uj);this.Y=lyW(this);g.p(this,this.Y);this.Y.rC(D);this.G=JZR(this);g.p(this,this.G);this.G.rC(D);this.S=xAd(this);g.p(this,this.S);this.S.rC(D);this.hide()}; lyW=function(D){var X=new g.Hr({L:"div",C:"ytp-ad-text-overlay",V:[{L:"div",C:"ytp-ad-overlay-ad-info-button-container"},{L:"div",C:"ytp-ad-overlay-close-container",V:[{L:"button",C:"ytp-ad-overlay-close-button",V:[mA(Gus)]}]},{L:"div",C:"ytp-ad-overlay-title",Gs:"{{title}}"},{L:"div",C:"ytp-ad-overlay-desc",Gs:"{{description}}"},{L:"div",gC:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Gs:"{{displayUrl}}"}]});D.N(X.h$("ytp-ad-overlay-title"),"click",function(M){$A(D,X.element,M)}); D.N(X.h$("ytp-ad-overlay-link"),"click",function(M){$A(D,X.element,M)}); D.N(X.h$("ytp-ad-overlay-close-container"),"click",D.PM);X.hide();return X}; JZR=function(D){var X=new g.Hr({L:"div",gC:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{L:"div",C:"ytp-ad-overlay-ad-info-button-container"},{L:"div",C:"ytp-ad-overlay-close-container",V:[{L:"button",C:"ytp-ad-overlay-close-button",V:[mA(Gus)]}]},{L:"div",C:"ytp-ad-overlay-text-image",V:[{L:"img",Z:{src:"{{imageUrl}}"}}]},{L:"div",C:"ytp-ad-overlay-title",Gs:"{{title}}"},{L:"div",C:"ytp-ad-overlay-desc",Gs:"{{description}}"},{L:"div",gC:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Gs:"{{displayUrl}}"}]});D.N(X.h$("ytp-ad-overlay-title"),"click",function(M){$A(D,X.element,M)}); D.N(X.h$("ytp-ad-overlay-link"),"click",function(M){$A(D,X.element,M)}); D.N(X.h$("ytp-ad-overlay-close-container"),"click",D.PM);D.N(X.h$("ytp-ad-overlay-text-image"),"click",D.XP$);X.hide();return X}; xAd=function(D){var X=new g.Hr({L:"div",C:"ytp-ad-image-overlay",V:[{L:"div",C:"ytp-ad-overlay-ad-info-button-container"},{L:"div",C:"ytp-ad-overlay-close-container",V:[{L:"button",C:"ytp-ad-overlay-close-button",V:[mA(Gus)]}]},{L:"div",C:"ytp-ad-overlay-image",V:[{L:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});D.N(X.h$("ytp-ad-overlay-image"),"click",function(M){$A(D,X.element,M)}); D.N(X.h$("ytp-ad-overlay-close-container"),"click",D.PM);X.hide();return X}; zZs=function(D,X){if(X){var M=g.Z(X,FQ)||null;M==null?g.ET(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(X=g.cD("video-ads ytp-ad-module")||null,X==null?g.ET(Error("Could not locate the root ads container element to attach the ad info dialog.")):(D.L$=new g.Hr({L:"div",C:"ytp-ad-overlay-ad-info-dialog-container"}),g.p(D,D.L$),D.L$.rC(X),X=new lI(D.api,D.layoutId,D.interactionLoggingClientData,D.I5,D.L$.element,!1),g.p(D,X),X.init(uC("ad-info-hover-text-button"),M,D.macros), D.D?(X.rC(D.D,0),X.subscribe("f",D.A5j,D),X.subscribe("e",D.Qc,D),D.N(D.D,"click",D.thI),D.N(g.cD("ytp-ad-button",X.element),"click",function(){var Q;if(g.Z((Q=g.Z(M.button,g.$w))==null?void 0:Q.serviceEndpoint,e7p))D.OR=D.api.getPlayerState(1)===2,D.api.pauseVideo();else D.api.onAdUxClicked("ad-info-hover-text-button",D.layoutId)}),D.o5=X):g.ET(Error("Ad info button container within overlay ad was not present."))))}else g.P3(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; uKd=function(D,X){if(ku1(D,Bw)||D.api.isMinimized())return!1;var M=N1(X.title),Q=N1(X.description);if(g.kR(M)||g.kR(Q))return!1;D.createServerVe(D.Y.element,X.trackingParams||null);D.Y.updateValue("title",N1(X.title));D.Y.updateValue("description",N1(X.description));D.Y.updateValue("displayUrl",N1(X.displayUrl));X.navigationEndpoint&&g.ty(D.K,X.navigationEndpoint);D.Y.show();D.uj.start();D.logVisibility(D.Y.element,!0);D.N(D.Y.element,"mouseover",function(){D.R5++}); return!0}; jRs=function(D,X){if(ku1(D,Bw)||D.api.isMinimized())return!1;var M=N1(X.title),Q=N1(X.description);if(g.kR(M)||g.kR(Q))return!1;D.createServerVe(D.G.element,X.trackingParams||null);D.G.updateValue("title",N1(X.title));D.G.updateValue("description",N1(X.description));D.G.updateValue("displayUrl",N1(X.displayUrl));D.G.updateValue("imageUrl",Oao(X.image));X.navigationEndpoint&&g.ty(D.K,X.navigationEndpoint);D.t$=X.imageNavigationEndpoint||null;D.G.show();D.uj.start();D.logVisibility(D.G.element,!0); D.N(D.G.element,"mouseover",function(){D.R5++}); return!0}; DMR=function(D,X){if(D.api.isMinimized())return!1;var M=pXR(X.image),Q=M;M.width0?(X=new bd(D.api,D.S), X.rC(D.playerOverlay),g.p(D,X)):(D=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(X)),g.ET(D))}}else g.ET(Error("addCommonComponents() needs to be called before starting countdown."))}; L4s=function(D){function X(M){return{toString:function(){return M()}}} D.macros.SURVEY_LOCAL_TIME_EPOCH_S=X(function(){var M=new Date;return(Math.round(M.valueOf()/1E3)+-1*M.getTimezoneOffset()*60).toString()}); D.macros.SURVEY_ELAPSED_MS=X(function(){return(Date.now()-D.Y).toString()})}; sop=function(D,X,M,Q,h){fV.call(this,D,X,M,Q,"survey-question-multi-select");this.R5=h;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()}; K4d=function(D,X,M){D.noneOfTheAbove=new t3i(D.api,D.layoutId,D.interactionLoggingClientData,D.I5);D.noneOfTheAbove.rC(D.answers);D.noneOfTheAbove.init(uC("survey-none-of-the-above"),X,M)}; F4p=function(D){D.G.forEach(function(X){X.S.toggleButton(!1)}); aa1(D,!0)}; aa1=function(D,X){var M=D.U;D=V3s(D);X=X===void 0?!1:X;M.S&&(D?M.S.hide():M.S.show(),X&&M.S instanceof Ld&&!M.S.U&&C2_(M.S,!1));M.G&&(D?M.G.show():M.G.hide())}; V3s=function(D){return D.G.some(function(X){return X.S.isToggled()})||D.noneOfTheAbove.button.isToggled()}; St=function(D,X,M,Q,h){fV.call(this,D,X,M,Q,"survey-question-single-select",function(t){H.api.W().T("supports_multi_step_on_desktop")&&h([t])}); var H=this;this.hide()}; Ek=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-survey",V:[{L:"div",C:"ytp-ad-survey-questions"}]},"survey",X,M,Q);this.questions=[];this.G=[];this.conditioningRules=[];this.S=0;this.D=this.h$("ytp-ad-survey-questions");this.api.W().T("fix_survey_color_contrast_on_destop")&&this.h$("ytp-ad-survey").classList.add("color-contrast-fix");this.api.W().T("web_enable_speedmaster")&&this.h$("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Z8_=function(D,X){var M=D.G[X],Q;(Q=D.Y)==null||Q.dispose();g.Z(M,Kn)?$Mp(D,g.Z(M,Kn),D.macros):g.Z(M,sE)&&Bpo(D,g.Z(M,sE),D.macros);D.S=X}; $Mp=function(D,X,M){var Q=new St(D.api,D.layoutId,D.interactionLoggingClientData,D.I5,D.U.bind(D));Q.rC(D.D);Q.init(uC("survey-question-single-select"),X,M);D.api.W().T("supports_multi_step_on_desktop")?D.Y=Q:D.questions.push(Q);g.p(D,Q)}; Bpo=function(D,X,M){var Q=new sop(D.api,D.layoutId,D.interactionLoggingClientData,D.I5,D.U.bind(D));Q.rC(D.D);Q.init(uC("survey-question-multi-select"),X,M);D.api.W().T("supports_multi_step_on_desktop")?D.Y=Q:D.questions.push(Q);g.p(D,Q)}; yr=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-survey-interstitial",V:[{L:"div",C:"ytp-ad-survey-interstitial-contents",V:[{L:"div",C:"ytp-ad-survey-interstitial-logo",V:[{L:"div",C:"ytp-ad-survey-interstitial-logo-image"}]},{L:"div",C:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",X,M,Q);this.S=this.actionButton=null;this.interstitial=this.h$("ytp-ad-survey-interstitial");this.G=this.h$("ytp-ad-survey-interstitial-contents");this.text=this.h$("ytp-ad-survey-interstitial-text"); this.logoImage=this.h$("ytp-ad-survey-interstitial-logo-image");this.transition=new g.kn(this,500,!1,300);g.p(this,this.transition)}; UMm=function(D,X){X=X&&vr(X)||"";if(g.kR(X))g.P3(Error("Found ThumbnailDetails without valid image URL"));else{var M=D.style;D=D.style.cssText;var Q=document.implementation.createHTMLDocument("").createElement("DIV");Q.style.cssText=D;D=B42(Q.style);M.cssText=[D,'background-image:url("'+X+'");'].join("")}}; cz1=function(D){var X=g.cD("html5-video-player");X&&g.qE(X,"ytp-ad-display-override",D)}; Pw=function(D,X,M,Q,h,H){H=H===void 0?0:H;Wr.call(this,D,{L:"div",C:"ytp-preview-ad",V:[{L:"div",C:"ytp-preview-ad__text"}]},"preview-ad",X,M,Q,h);var t=this;this.R5=H;this.G=0;this.U=-1;this.Y=this.h$("ytp-preview-ad__text");switch(this.R5){case 1:this.Y.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.kn(this,400,!1,100,function(){t.hide()}); g.p(this,this.transition);this.hide()}; mu=function(D,X,M,Q){tU.call(this,D,{L:"img",C:"ytp-ad-avatar"},"ad-avatar",X,M,Q);this.hide()}; fad=function(D){switch(D.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}}; nV=function(D,X,M,Q,h,H){h=h===void 0?!1:h;H=H===void 0?!1:H;tU.call(this,D,{L:"button",C:"ytp-ad-button-vm"},"ad-button",X,M,Q);this.buttonText=this.buttonIcon=null;this.hide();this.S=h;this.G=H}; S4i=function(D,X,M,Q,h){Wr.call(this,D,{L:"div",gC:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{L:"div",C:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{L:"div",C:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",X,M,Q,h);this.startMilliseconds=0;this.adAvatar=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.adAvatar);Iu(this.element,this.adAvatar.element,0);this.headline=new SU(this.api,this.layoutId, this.interactionLoggingClientData,this.I5);g.p(this,this.headline);this.headline.rC(this.h$("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.description);this.description.rC(this.h$("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new nV(this.api, this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.adButton);this.adButton.rC(this.element);this.hide()}; ba=function(D,X,M,Q){tU.call(this,D,{L:"button",C:"ytp-skip-ad-button",V:[{L:"div",C:"ytp-skip-ad-button__text"}]},"skip-button",X,M,Q);var h=this;this.G=!1;this.U=this.h$("ytp-skip-ad-button__text");this.transition=new g.kn(this,500,!1,100,function(){h.hide()}); g.p(this,this.transition);this.S=new MZ(this.element,15E3,5E3,.5,.5,!0);g.p(this,this.S);this.hide()}; EIm=function(D,X,M,Q,h){Wr.call(this,D,{L:"div",C:"ytp-skip-ad"},"skip-ad",X,M,Q,h);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Y=new ba(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.Y);this.Y.rC(this.element);this.hide()}; et=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-visit-advertiser-link"},"visit-advertiser-link",X,M,Q);this.hide()}; Rv=function(D,X,M,Q,h){tU.call(this,D,{L:"div",C:"ytp-ad-player-overlay-layout",V:[{L:"div",C:"ytp-ad-player-overlay-layout__player-card-container"},{L:"div",C:"ytp-ad-player-overlay-layout__ad-info-container"},{L:"div",C:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{L:"div",C:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",X,M,Q);this.G=h;this.L$=this.h$("ytp-ad-player-overlay-layout__player-card-container");this.S=this.h$("ytp-ad-player-overlay-layout__ad-info-container"); this.K=this.h$("ytp-ad-player-overlay-layout__skip-or-preview-container");this.R5=this.h$("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; yzp=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-grid-card-text",V:[{L:"div",C:"ytp-ad-grid-card-text__metadata",V:[{L:"div",C:"ytp-ad-grid-card-text__metadata__headline"},{L:"div",C:"ytp-ad-grid-card-text__metadata__description",V:[{L:"div",C:"ytp-ad-grid-card-text__metadata__description__line"},{L:"div",C:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{L:"div",C:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",X,M,Q);this.headline=new SU(this.api,this.layoutId,this.interactionLoggingClientData, this.I5);g.p(this,this.headline);this.headline.rC(this.h$("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new nV(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0);g.p(this,this.moreInfoButton);this.moreInfoButton.rC(this.h$("ytp-ad-grid-card-text__button"))}; Iv=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",X,M,Q);this.S=[]}; gu=function(D,X,M,Q,h,H,t){Wr.call(this,D,H,t,X,M,Q,h);this.playerProgressOffsetMs=0;this.G=!1}; P92=function(D){var X=g.cD("html5-video-player");X&&g.qE(X,"ytp-ad-display-override",D)}; mMd=function(D,X,M,Q,h){gu.call(this,D,X,M,Q,h,{L:"div",C:"ytp-display-underlay-text-grid-cards",V:[{L:"div",C:"ytp-display-underlay-text-grid-cards__content_container",V:[{L:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{L:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{L:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{L:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {L:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Iv(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.adGridCardCollection);this.adGridCardCollection.rC(this.h$("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new nV(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.adButton);this.adButton.rC(this.h$("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Y=this.h$("ytp-display-underlay-text-grid-cards__content_container");this.U=this.h$("ytp-display-underlay-text-grid-cards__content_container__header")}; vw=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-ad-details-line"},"ad-details-line",X,M,Q);this.S=[];this.hide()}; du=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-image-background",V:[{L:"img",C:"ytp-image-background-image"}]},"image-background",X,M,Q);this.hide()}; nI2=function(D,X,M,Q,h){Wr.call(this,D,{L:"svg",C:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{L:"circle",C:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{L:"circle",C:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{L:"circle",C:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",X,M,Q,h);this.Y=this.h$("ytp-timed-pie-countdown__inner");this.G=Math.ceil(2*Math.PI*5);this.hide()}; ru=function(D,X,M,Q){tU.call(this,D,{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},V:[{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{L:"div",C:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",X,M,Q);this.G=null;this.U=this.h$("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Y=new b2;g.p(this,this.Y);this.hide()}; b8p=function(D){var X=g.cD("html5-video-player");X&&g.qE(X,"ytp-ad-display-override",D)}; eh5=function(D){if(!D.adAvatar||!g.Z(D.adAvatar,ia))return g.ET(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!D.headline)return g.ET(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!D.adBadge||!g.Z(D.adBadge,ov))return g.ET(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!D.adButton||!g.Z(D.adButton,CV))return g.ET(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!D.adInfoRenderer|| !g.Z(D.adInfoRenderer,FQ))return g.ET(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;D=D.durationMilliseconds||0;return typeof D!=="number"||D<=0?(g.ET(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+D)),!1):!0}; Ok=function(D,X){X=X===void 0?2:X;g.Dq.call(this);this.api=D;this.S=null;this.handler=new b2(this);g.p(this,this.handler);this.G=OwR;this.handler.N(this.api,"presentingplayerstatechange",this.QD);this.S=this.handler.N(this.api,"progresssync",this.Ja);this.kp=X;this.kp===1&&this.Ja()}; pV=function(D,X,M){CO.call(this,D);this.api=D;this.I5=X;this.components={};D=new g.Y({L:"div",gC:["video-ads","ytp-ad-module"]});g.p(this,D);ma&&g.hN(D.element,"ytp-ads-tiny-mode");this.U=new qe(D.element);g.p(this,this.U);g.db(this.api,D.element,4);vx(M)&&(M=new g.Y({L:"div",gC:["ytp-ad-underlay"]}),g.p(this,M),this.G=new qe(M.element),g.p(this,this.G),g.db(this.api,M.element,0));g.p(this,FI_())}; Rh9=function(D,X){D=g.RM(D.components,X.id,null);D==null&&g.P3(Error("Component not found for element id: "+X.id));return D||null}; IaW=function(D){g.Tn.call(this,D);var X=this;this.G=null;this.created=!1;this.Y=D.W().T("h5_use_refactored_get_ad_break")?new Eh9(this.player):new iM(this.player);this.U=function(){if(X.G!=null)return X.G;var Q=new RqW({Bv:Vr(X.S).Bv,Ye:Vr(X.S).Ye,B:X.player,GN:Vr(X.S).GN,B2:X.S.S.B2,jS:Vr(X.S).jS,lM:X.S.S.lM});X.G=Q.s4;return X.G}; this.S=new Cod(this.player,this,this.Y,this.U);g.p(this,this.S);var M=D.W();!tf(M)||g.iS(M)||Yv(M)||(g.p(this,new pV(D,Vr(this.S).I5,Vr(this.S).GN)),g.p(this,new Ot5(D)))}; gIW=function(D){D.created!==D.loaded&&Hb("Created and loaded are out of sync")}; rzm=function(D){g.Tn.prototype.load.call(D);var X=Vr(D.S).GN;try{D.player.getRootNode().classList.add("ad-created")}catch(q){Hb(q instanceof Error?q:String(q))}var M=D.player.getVideoData(1),Q=M&&M.videoId||"",h=M&&M.getPlayerResponse()||{},H=(h&&h.adPlacements||[]).map(function(q){return q.adPlacementRenderer}),t=((h==null?void 0:h.adSlots)||[]).map(function(q){return g.Z(q,Ln)}); h=h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;M&&M.yq();X=vIp(H,t,X,Vr(D.S).rD);H=M&&M.clientPlaybackNonce||"";M=M&&M.AF||!1;t=1E3*D.player.getDuration(1);dMo(D);D.S.S.er.Cm(H,t,M,X.DP,X.fg,X.DP,h,Q)}; dMo=function(D){var X,M;if(M=(X=D.player.getVideoData(1))==null||!X.AF)X=D.player.W(),M=tf(X)&&!g.H9(X)&&X.playerStyle==="desktop-polymer";M&&(D=D.player.getInternalApi(),D.addEventListener("updateKevlarOrC3Companion",z72),D.addEventListener("updateEngagementPanelAction",kj9),D.addEventListener("changeEngagementPanelVisibility",uPR),window.addEventListener("yt-navigate-start",DXW))}; AA=function(D,X){X===D.IR&&(D.IR=void 0)}; i82=function(D){var X=Vr(D.S).Um,M=X.U().EB("SLOT_TYPE_PLAYER_BYTES",1);X=W7(X.dC.get(),1).clientPlaybackNonce;var Q=!1;M=g.e(M);for(var h=M.next();!h.done;h=M.next()){h=h.value;var H=h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.slotEntryTrigger instanceof Ly?h.slotEntryTrigger.Vw:void 0;H&&H===X&&(Q&&Hb("More than 1 preroll playerBytes slot detected",h),Q=!0)}Q||Vr(D.S).Nr.nU()}; oI1=function(D){var X="";D=g.e(Vr(D.S).jS.S0.keys());for(var M=D.next();!M.done;M=D.next()){M=M.value;if(M.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M.N5==="core")return!0;X+=M.slotType+" "}Math.random()<.01&&Hb("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:X});return!1}; C91=function(D){D=g.e(Vr(D.S).jS.S0.values());for(var X=D.next();!X.done;X=D.next())if(X.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; lBR=function(D,X,M,Q,h,H,t){M=M===void 0?[]:M;Q=Q===void 0?"":Q;h=h===void 0?"":h;var q=Vr(D.S).GN,w=D.player.getVideoData(1);w&&w.getPlayerResponse();w&&w.yq();M=vIp(X,M,q,Vr(D.S).rD);zCm(Vr(D.S).bH,Q,M.DP,M.fg,X,h,H,t)}; vIp=function(D,X,M,Q){X={DP:[],fg:X};D=g.e(D);for(var h=D.next();!h.done;h=D.next())if((h=h.value)&&h.renderer!=null){var H=h.renderer;if(!M.B.W().T("html5_enable_vod_lasr_with_notify_pacf")){var t=void 0,q=void 0,w=void 0,T=void 0,L=Q;g.Z((T=H.sandwichedLinearAdRenderer)==null?void 0:T.adVideoStart,xw)?(t=g.Z((w=H.sandwichedLinearAdRenderer)==null?void 0:w.adVideoStart,xw),t=w0p(t,L),g.RO(H.sandwichedLinearAdRenderer.adVideoStart,xw,t)):g.Z((q=H.linearAdSequenceRenderer)==null?void 0:q.adStart,xw)&& (w=g.Z((t=H.linearAdSequenceRenderer)==null?void 0:t.adStart,xw),t=w0p(w,L),g.RO(H.linearAdSequenceRenderer.adStart,xw,t))}X.DP.push(h)}return X}; g.YA=function(D){if(typeof DOMParser!="undefined")return pr(new DOMParser,K$s(D),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.la=function(D){g.O.call(this);this.callback=D;this.S=new ZP(0,0,.4,0,.2,1,1,1);this.delay=new g.xm(this.next,window,this);g.p(this,this.delay)}; g.O89=function(D){var X=D.W();return X.bM&&!X.Y&&g.eO(X)?D.isEmbedsShortsMode()?(D=D.WL(),Math.min(D.width,D.height)>=315):!D.cB():!1}; g.JA=function(D){g.Y.call(this,{L:"div",C:"ytp-more-videos-view",Z:{tabIndex:"-1"}});var X=this;this.api=D;this.G=!0;this.Y=new g.HE(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.U=this.scrollPosition=0;this.title=new g.Y({L:"h2",C:"ytp-related-title",Gs:"{{title}}"});this.previous=new g.Y({L:"button",gC:["ytp-button","ytp-previous"],Z:{"aria-label":"Mostrar videos sugeridos anteriores"},V:[g.LO()]});this.X=new g.la(function(M){X.suggestions.element.scrollLeft= -M}); this.next=new g.Y({L:"button",gC:["ytp-button","ytp-next"],Z:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},V:[g.sC()]});g.p(this,this.Y);this.D=D.W().U;g.p(this,this.title);this.title.rC(this.element);this.suggestions=new g.Y({L:"div",C:"ytp-suggestions"});g.p(this,this.suggestions);this.suggestions.rC(this.element);g.p(this,this.previous);this.previous.rC(this.element);this.previous.listen("click",this.uU,this);g.p(this,this.X);pe2(this);g.p(this,this.next);this.next.rC(this.element);this.next.listen("click", this.gA,this);this.Y.N(this.api,"appresize",this.Fk);this.Y.N(this.api,"fullscreentoggled",this.Sr);this.Y.N(this.api,"videodatachange",this.onVideoDataChange);this.Fk(this.api.lj().getPlayerSize());this.onVideoDataChange()}; pe2=function(D){for(var X={NN:0};X.NN<16;X={NN:X.NN},++X.NN){var M=new g.Y({L:"a",C:"ytp-suggestion-link",Z:{href:"{{link}}",target:D.api.W().eH,"aria-label":"{{aria_label}}"},V:[{L:"div",C:"ytp-suggestion-image"},{L:"div",C:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{L:"div",C:"ytp-suggestion-title",Gs:"{{title}}"},{L:"div",C:"ytp-suggestion-author",Gs:"{{author_and_views}}"},{L:"div",Z:{"data-is-live":"{{is_live}}"},C:"ytp-suggestion-duration", Gs:"{{duration}}"}]}]});g.p(D,M);var Q=M.h$("ytp-suggestion-link");g.Q_(Q,"transitionDelay",X.NN/20+"s");D.Y.N(Q,"click",function(h){return function(H){var t=h.NN;if(D.G){var q=D.suggestionData[t],w=q.sessionData;D.D&&D.api.T("web_player_log_click_before_generating_ve_conversion_params")?(D.api.logClick(D.S[t].element),t=q.ML(),q={},g.I8(D.api,q),t=g.nJ(t,q),g.qW(t,D.api,H)):g.NW(H,D.api,D.D,w||void 0)&&D.api.BW(q.videoId,w,q.playlistId)}else H.preventDefault(),document.activeElement.blur()}}(X)); M.rC(D.suggestions.element);D.S.push(M);D.api.createServerVe(M.element,M)}}; AzH=function(D){if(D.api.W().T("web_player_log_click_before_generating_ve_conversion_params"))for(var X=Math.floor(-D.scrollPosition/(D.U+8)),M=Math.min(X+D.columns,D.suggestionData.length)-1;X<=M;X++)D.api.logVisibility(D.S[X].element,!0)}; g.xA=function(D){var X=D.api.G_()?32:16;X=D.J/2+X;D.next.element.style.bottom=X+"px";D.previous.element.style.bottom=X+"px";X=D.scrollPosition;var M=D.containerWidth-D.suggestionData.length*(D.U+8);g.qE(D.element,"ytp-scroll-min",X>=0);g.qE(D.element,"ytp-scroll-max",X<=M)}; laH=function(D){for(var X=D.suggestionData.length,M=0;M>>0)+"_",h=0;return X}); po("Symbol.iterator",function(D){if(D)return D;D=Symbol("Symbol.iterator");YW(Array.prototype,D,{configurable:!0,writable:!0,value:function(){return d5m(m5s(this))}}); return D}); po("Promise",function(D){function X(t){this.S=0;this.Y=void 0;this.G=[];this.J=!1;var q=this.U();try{t(q.resolve,q.reject)}catch(w){q.reject(w)}} function M(){this.S=null} function Q(t){return t instanceof X?t:new X(function(q){q(t)})} if(D)return D;M.prototype.G=function(t){if(this.S==null){this.S=[];var q=this;this.Y(function(){q.D()})}this.S.push(t)}; var h=g.Ad.setTimeout;M.prototype.Y=function(t){h(t,0)}; M.prototype.D=function(){for(;this.S&&this.S.length;){var t=this.S;this.S=[];for(var q=0;q0&&M>0;)if(Q[--M]!=X[--h])return!1;return h<=0}}); po("Array.prototype.find",function(D){return D?D:function(X,M){return rdR(this,X,M).Sz}}); po("Array.prototype.entries",function(D){return D?D:function(){return cZ(this,function(X,M){return[X,M]})}}); po("Array.prototype.keys",function(D){return D?D:function(){return cZ(this,function(X){return X})}}); po("String.prototype.startsWith",function(D){return D?D:function(X,M){var Q=U8(this,X,"startsWith");X+="";var h=Q.length,H=X.length;M=Math.max(0,Math.min(M|0,Q.length));for(var t=0;t=H}}); po("Number.isFinite",function(D){return D?D:function(X){return typeof X!=="number"?!1:!isNaN(X)&&X!==Infinity&&X!==-Infinity}}); po("String.prototype.repeat",function(D){return D?D:function(X){var M=U8(this,null,"repeat");if(X<0||X>1342177279)throw new RangeError("Invalid count value");X|=0;for(var Q="";X;)if(X&1&&(Q+=M),X>>>=1)M+=M;return Q}}); po("Object.entries",function(D){return D?D:function(X){var M=[],Q;for(Q in X)kW(X,Q)&&M.push([Q,X[Q]]);return M}}); po("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); po("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); po("Array.from",function(D){return D?D:function(X,M,Q){M=M!=null?M:function(q){return q}; var h=[],H=typeof Symbol!="undefined"&&Symbol.iterator&&X[Symbol.iterator];if(typeof H=="function"){X=H.call(X);for(var t=0;!(H=X.next()).done;)h.push(M.call(Q,H.value,t++))}else for(H=X.length,t=0;t>>0;if(X===0)return 32;var M=0;(X&4294901760)===0&&(X<<=16,M+=16);(X&4278190080)===0&&(X<<=8,M+=8);(X&4026531840)===0&&(X<<=4,M+=4);(X&3221225472)===0&&(X<<=2,M+=2);(X&2147483648)===0&&M++;return M}}); po("Number.isNaN",function(D){return D?D:function(X){return typeof X==="number"&&isNaN(X)}}); po("Array.prototype.values",function(D){return D?D:function(){return cZ(this,function(X,M){return M})}}); po("Array.prototype.fill",function(D){return D?D:function(X,M,Q){var h=this.length||0;M<0&&(M=Math.max(0,h+M));if(Q==null||Q>h)Q=h;Q=Number(Q);Q<0&&(Q=Math.max(0,h+Q));for(M=Number(M||0);M0&&M?M.repeat(Math.ceil(X/M.length)).substring(0,X):"")+Q}}); po("Array.prototype.findIndex",function(D){return D?D:function(X,M){return rdR(this,X,M).c9}}); po("Promise.prototype.finally",function(D){return D?D:function(X){return this.then(function(M){return Promise.resolve(X()).then(function(){return M})},function(M){return Promise.resolve(X()).then(function(){throw M; })})}}); po("Math.imul",function(D){return D?D:function(X,M){X=Number(X);M=Number(M);var Q=X&65535,h=M&65535;return Q*h+((X>>>16&65535)*h+Q*(M>>>16&65535)<<16>>>0)|0}}); po("Math.sign",function(D){return D?D:function(X){X=Number(X);return X===0||isNaN(X)?X:X>0?1:-1}}); po("WeakSet",function(D){function X(M){this.S=new WeakMap;if(M){M=g.e(M);for(var Q;!(Q=M.next()).done;)this.add(Q.value)}} if(function(){if(!D||!Object.seal)return!1;try{var M=Object.seal({}),Q=Object.seal({}),h=new D([M]);if(!h.has(M)||h.has(Q))return!1;h.delete(M);h.add(Q);return!h.has(M)&&h.has(Q)}catch(H){return!1}}())return D; X.prototype.add=function(M){this.S.set(M,!0);return this}; X.prototype.has=function(M){return this.S.has(M)}; X.prototype.delete=function(M){return this.S.delete(M)}; return X}); po("Array.prototype.copyWithin",function(D){function X(M){M=Number(M);return M===Infinity||M===-Infinity?M:M|0} return D?D:function(M,Q,h){var H=this.length;M=X(M);Q=X(Q);h=h===void 0?H:X(h);M=M<0?Math.max(H+M,0):Math.min(M,H);Q=Q<0?Math.max(H+Q,0):Math.min(Q,H);h=h<0?Math.max(H+h,0):Math.min(h,H);if(MQ;)--h in this?this[--M]=this[h]:delete this[--M];return this}}); Om("copyWithin",function(D){return D?D:Array.prototype.copyWithin}); po("Array.prototype.at",function(D){return D?D:fG}); Om("at",function(D){return D?D:fG}); po("String.prototype.at",function(D){return D?D:fG}); po("Promise.withResolvers",function(D){return D?D:function(){var X,M;return{promise:new Promise(function(Q,h){X=Q;M=h}), resolve:X,reject:M}}}); po("Array.prototype.findLastIndex",function(D){return D?D:function(X,M){return io9(this,X,M).c9}}); Om("findLastIndex",function(D){return D?D:function(X,M){return io9(this,X,M).c9}}); po("Number.parseInt",function(D){return D||parseInt});var Y1,vZ,oWW;Y1=Y1||{};g.E8=this||self;vZ="closure_uid_"+(Math.random()*1E9>>>0);oWW=0;g.Ah(YB,Error);YB.prototype.name="CustomError";var Mf5;var x5R,Rx,jj;x5R=Array.prototype.indexOf?function(D,X){return Array.prototype.indexOf.call(D,X,void 0)}:function(D,X){if(typeof D==="string")return typeof X!=="string"||X.length!=1?-1:D.indexOf(X,0); for(var M=0;M=0;M--)if(M in D&&D[M]===X)return M;return-1}; g.$R=Array.prototype.forEach?function(D,X,M){Array.prototype.forEach.call(D,X,M)}:function(D,X,M){for(var Q=D.length,h=typeof D==="string"?D.split(""):D,H=0;H=.3:this.PD>=.5};var GC={Hk5:0,a9C:1},GKo={NONE:0,Wgy:1,Dm5:2};var NK1="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ib.prototype.getValue=function(){return this.G}; g.U(oM,ib);oM.prototype.Y=function(D){this.G===null&&g.nf(this.U,D)&&(this.G=D)}; g.U(Cf,ib);Cf.prototype.Y=function(D){this.G===null&&typeof D==="number"&&(this.G=D)}; g.U(OK,ib);OK.prototype.Y=function(D){this.G===null&&typeof D==="string"&&(this.G=D)};Ay.prototype.disable=function(){this.G=!1}; Ay.prototype.enable=function(){this.G=!0}; Ay.prototype.isEnabled=function(){return this.G}; Ay.prototype.reset=function(){this.S={};this.G=!0;this.Y={}};var X0=document,Yf=window;var jod=nG(1,!0),h4=nG(610401301,!1);nG(899588437,!1);var D4d=nG(772657768,!1),Xj1=nG(513659523,!1),My1=nG(568333945,!0),uGp=nG(1331761403,!1);nG(651175828,!1);nG(722764542,!1);nG(748402145,!1);nG(748402146,!1);var pHR=nG(748402147,!0),Ww=nG(824648567,!1);nG(824656860,!1);nG(333098724,!1);nG(2147483644,!1);nG(2147483645,!1);nG(2147483646,jod);nG(2147483647,!0);var HH=!!g.mn("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Dc=String.prototype.trim?function(D){return D.trim()}:function(D){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(D)[1]},Rrd=/&/g,It5=//g,vBW=/"/g,d_9=/'/g,rh9=/\x00/g,er_=/[\x00&<>"']/;var t4,Q0H=g.E8.navigator;t4=Q0H?Q0H.userAgentData||null:null;var ZGs=globalThis.trustedTypes,a6;Vm.prototype.toString=function(){return this.S+""};Zc.prototype.toString=function(){return this.S}; var fts=new Zc("about:invalid#zClosurez");var wmR=SX("tel"),NU2=SX("sms"),chd=[SX("data"),SX("http"),SX("https"),SX("mailto"),SX("ftp"),new fr(function(D){return/^[^:]*([/?#]|$)/.test(D)})],S85=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;nr.prototype.toString=function(){return this.S+""};gA.prototype.toString=function(){return this.S+""};i7.prototype.toString=function(){return this.S};var Cr={};g.hBH=String.prototype.repeat?function(D,X){return D.repeat(X)}:function(D,X){return Array(X+1).join(D)};jX[" "]=function(){};var Hq,$7,koR,HIH,tyW,NOW,Pk,ma,qVs;g.nT=TD();g.s5=Kno();g.Jg=qL("Edge");g.Mi=g.Jg||g.s5;Hq=qL("Gecko")&&!(jf(g.Qm(),"WebKit")&&!qL("Edge"))&&!(qL("Trident")||qL("MSIE"))&&!qL("Edge");g.Sq=jf(g.Qm(),"WebKit")&&!qL("Edge");$7=u7();koR=Ahs();g.XP=pZm();HIH=zD();tyW=qL("iPad");NOW=qL("iPod");Pk=kZ();ma=jf(g.Qm(),"KaiOS"); a:{var wj9="",TOm=function(){var D=g.Qm();if(Hq)return/rv:([^\);]+)(\)|;)/.exec(D);if(g.Jg)return/Edge\/([\d\.]+)/.exec(D);if(g.s5)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(D);if(g.Sq)return/WebKit\/(\S+)/.exec(D);if(g.nT)return/(?:Version)[ \/]?(\S+)/.exec(D)}(); TOm&&(wj9=TOm?TOm[1]:"");if(g.s5){var G_,Lki=g.E8.document;G_=Lki?Lki.documentMode:void 0;if(G_!=null&&G_>parseFloat(wj9)){qVs=String(G_);break a}}qVs=wj9}var x_i=qVs,ltp={};var uE,j6;g.h0=Lr();uE=zD()||qL("iPod");j6=qL("iPad");g.bS=Fns();g.Xu=so();g.ah=Kr()&&!kZ();var XKW=!g.s5&&!Kr();g.B=g.hn.prototype;g.B.clone=function(){return new g.hn(this.x,this.y)}; g.B.equals=function(D){return D instanceof g.hn&&HD(this,D)}; g.B.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.B.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.B.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.B.scale=function(D,X){this.x*=D;this.y*=typeof X==="number"?X:D;return this};g.B=g.tn.prototype;g.B.clone=function(){return new g.tn(this.width,this.height)}; g.B.aspectRatio=function(){return this.width/this.height}; g.B.isEmpty=function(){return!qt(this)}; g.B.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.B.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.B.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.B.scale=function(D,X){this.width*=D;this.height*=typeof X==="number"?X:D;return this};TK.prototype.toString=function(){return this.S}; var wP={};new TK(wP,"");var zrn=/^[a-z][a-z\d-]*$/i,ky2="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),ja_="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Xid=["action","formaction","href"];var QM2={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.B=KR.prototype;g.B.Ly=function(D){return $f(this.S,D)}; g.B.getElementsByTagName=function(D,X){return(X||this.S).getElementsByTagName(String(D))}; g.B.h$=function(D){return g.cD(D,this.S)}; g.B.setProperties=fR;g.B.createElement=function(D){return yZ(this.S,D)}; g.B.appendChild=g.bv;g.B.append=function(D,X){NS9(au(D),D,arguments,1)}; g.B.canHaveChildren=function(D){if(D.nodeType!=1)return!1;switch(D.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.B.removeNode=g.gP;g.B.getChildren=function(D){return D.children!=void 0?D.children:Array.prototype.filter.call(D.childNodes,function(X){return X.nodeType==1})}; g.B.contains=g.vD;g.B.isFocusable=rP;OY.prototype.now=function(){return 0}; OY.prototype.G=function(){return 0}; OY.prototype.Y=function(){return 0}; OY.prototype.S=function(){return 0};g.U(An,OY);An.prototype.now=function(){return pR()&&Yf.performance.now?Yf.performance.now():OY.prototype.now.call(this)}; An.prototype.G=function(){return pR()&&Yf.performance.memory?Yf.performance.memory.totalJSHeapSize||0:OY.prototype.G.call(this)}; An.prototype.Y=function(){return pR()&&Yf.performance.memory?Yf.performance.memory.usedJSHeapSize||0:OY.prototype.Y.call(this)}; An.prototype.S=function(){return pR()&&Yf.performance.memory?Yf.performance.memory.jsHeapSizeLimit||0:OY.prototype.S.call(this)};var umo=function(){if(!g.E8.addEventListener||!Object.defineProperty)return!1;var D=!1,X=Object.defineProperty({},"passive",{get:function(){D=!0}}); try{var M=function(){}; g.E8.addEventListener("test",M,X);g.E8.removeEventListener("test",M,X)}catch(Q){}return D}();var nkR=TSm("AnimationEnd"),Ep=TSm("TransitionEnd");g.B=zK.prototype;g.B.getHeight=function(){return this.bottom-this.top}; g.B.clone=function(){return new zK(this.top,this.right,this.bottom,this.left)}; g.B.contains=function(D){return this&&D?D instanceof zK?D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom:D.x>=this.left&&D.x<=this.right&&D.y>=this.top&&D.y<=this.bottom:!1}; g.B.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.B.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.B.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.B.scale=function(D,X){X=typeof X==="number"?X:D;this.left*=D;this.right*=D;this.top*=X;this.bottom*=X;return this};g.B=g.DF.prototype;g.B.clone=function(){return new g.DF(this.left,this.top,this.width,this.height)}; g.B.contains=function(D){return D instanceof g.hn?D.x>=this.left&&D.x<=this.left+this.width&&D.y>=this.top&&D.y<=this.top+this.height:this.left<=D.left&&this.left+this.width>=D.left+D.width&&this.top<=D.top&&this.top+this.height>=D.top+D.height}; g.B.getSize=function(){return new g.tn(this.width,this.height)}; g.B.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.B.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.B.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.B.scale=function(D,X){X=typeof X==="number"?X:D;this.left*=D;this.width*=D;this.top*=X;this.height*=X;return this};var sMW={};var Zfm=xf(function(){var D=!1;try{var X=Object.defineProperty({},"passive",{get:function(){D=!0}}); g.E8.addEventListener("test",null,X)}catch(M){}return D});Uun.prototype.isVisible=function(){return ZF(X0)===1};var yy1=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");y_.prototype.QF=function(D,X,M){D=D+"//"+X+M;var Q=Rtn(this)-M.length;if(Q<0)return"";this.S.sort(function(T,L){return T-L}); M=null;X="";for(var h=0;h=w.length){Q-=w.length;D+=w;X=this.Y;break}M=M==null?H:M}}Q="";M!=null&&(Q=""+X+"trn="+M);return D+Q};var aci=Ix(function(D){return typeof D==="number"}),TG=Ix(function(D){return typeof D==="string"}),Fv1=Ix(function(D){return typeof D==="boolean"}),C_=Ix(function(D){return D!=null&&typeof D==="object"&&typeof D.then==="function"}),mJp=Ix(function(D){return typeof D==="function"}),s0R=Ix(function(D){return!!D&&(typeof D==="object"||typeof D==="function")});var nRo={fbR:"allow-forms",SA4:"allow-modals",RDf:"allow-orientation-lock",GCy:"allow-pointer-lock",YA4:"allow-popups",abz:"allow-popups-to-escape-sandbox",hD4:"allow-presentation",nwC:"allow-same-origin",ULy:"allow-scripts",bmF:"allow-top-navigation",LLy:"allow-top-navigation-by-user-activation"},ryi=xf(function(){return bf1()});vq.prototype.setInterval=function(D,X){return Yf.setInterval(D,X)}; vq.prototype.clearInterval=function(D){Yf.clearInterval(D)}; vq.prototype.setTimeout=function(D,X){return Yf.setTimeout(D,X)}; vq.prototype.clearTimeout=function(D){Yf.clearTimeout(D)};var n1=void 0,my,qYH=typeof TextDecoder!=="undefined",Jy5,ldp=typeof String.prototype.isWellFormed==="function",YKs=typeof TextEncoder!=="undefined";var kC1={},Aw=null,u_o=Hq||g.Sq||typeof g.E8.btoa=="function";var qoW=typeof Uint8Array!=="undefined",Q6H=!g.s5&&typeof btoa==="function",h3s=/[-_.]/g,XHm={"-":"+",_:"/",".":"="},le={};Yz.prototype.isEmpty=function(){return this.S==null}; Yz.prototype.sizeBytes=function(){var D=xz(this);return D?D.length:0}; var NAW;var wHi=void 0;var D4=typeof Symbol==="function"&&typeof Symbol()==="symbol",Kkd=jE("jas",void 0,!0),rT=jE(void 0,"1oa"),zG=jE(void 0,Symbol()),aNs=jE(void 0,"0ub"),Icd=jE(void 0,"0ubs"),vfo=jE(void 0,"0ubsb"),Yoi=jE(void 0,"0actk"),xl=jE("m_m","Gey",!0),dLd=jE(void 0,"vps"),Fks=jE();Math.max.apply(Math,g.xW(Object.values({r2j:1,DTy:2,xTC:4,UiR:8,HhR:16,eLF:32,QxI:64,X15:128,bV5:256,FXy:512,xmy:1024,OVj:2048,f85:4096,gER:8192})));var Lv9={TCC:{value:0,configurable:!0,writable:!0,enumerable:!1}},TA_=Object.defineProperties,XB=D4?Kkd:"TCC",Bl,Vy2=[];Q9(Vy2,7);Bl=Object.freeze(Vy2);var WK={},HK={},kD5=Object.freeze({}),eZ={},qv={};var Lg=typeof g.E8.BigInt==="function"&&typeof g.E8.BigInt(0)==="bigint";var Mx=Ix(function(D){return Lg?D>=$45&&D<=BOR:D[0]==="-"?VXW(D,ZIs):VXW(D,U41)}),ZIs=Number.MIN_SAFE_INTEGER.toString(),$45=Lg?BigInt(Number.MIN_SAFE_INTEGER):void 0,U41=Number.MAX_SAFE_INTEGER.toString(),BOR=Lg?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Qus=typeof Uint8Array.prototype.slice==="function",FB=0,V9=0,dt_;var d$=typeof BigInt==="function"?BigInt.asIntN:void 0,P7m=typeof BigInt==="function"?BigInt.asUintN:void 0,Aj=Number.isSafeInteger,b_=Number.isFinite,pg=Math.trunc,ZrH=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var r4W={};var cOm={o5R:!0};var DK;var ir2,oZn;var Dti=sH(0),GF={};K1.prototype.init=function(D,X,M,Q){var h=Q===void 0?{}:Q;Q=h.CM===void 0?!1:h.CM;h=h.ZX===void 0?!1:h.ZX;this.CM=Q;this.ZX=h;D&&(D=sU(D,this.ZX),this.G=D.buffer,this.D=D.S,this.U=X||0,this.Y=M!==void 0?this.U+M:this.G.length,this.S=this.U)}; K1.prototype.free=function(){this.clear();f1.length<100&&f1.push(this)}; K1.prototype.clear=function(){this.G=null;this.D=!1;this.S=this.Y=this.U=0;this.CM=!1}; K1.prototype.reset=function(){this.S=this.U}; var f1=[];SZ.prototype.free=function(){this.S.clear();this.G=this.Y=-1;EU.length<100&&EU.push(this)}; SZ.prototype.reset=function(){this.S.reset();this.U=this.S.S;this.G=this.Y=-1}; var EU=[];var sui,aj9;gQ.prototype.length=function(){return this.S.length}; gQ.prototype.end=function(){var D=this.S;this.S=[];return D};var AK=OU(),fNW=OU(),SV_=OU(),EFp=OU(),yOs=OU(),P49=OU(),m4s=OU(),nFH=OU(),bI2=OU(),eBo=OU(),RBp=OU();p1.prototype.toJSON=function(){return hx(this)}; p1.prototype.Ij=function(D){return JSON.stringify(hx(this,D))}; p1.prototype.clone=function(){var D=this.K$,X=D[XB]|0;return qx(this,D,X)?wT(this,D,!0):new this.constructor(Nx(D,X,!1))}; p1.prototype[xl]=WK;p1.prototype.toString=function(){return this.K$.toString()};var Efm=lg(function(D,X,M,Q,h){if(D.G!==2)return!1;Ph(D,iY(X,Q,M),h);return!0},SYm),ynR=lg(function(D,X,M,Q,h){if(D.G!==2)return!1; Ph(D,iY(X,Q,M),h);return!0},SYm),Xa=Symbol(),zX=Symbol(),jZ=Symbol(),Ryd=Symbol(),nf1=Symbol(),JK,xX;var INH=sH(0),gF_=hT(function(D,X,M){if(D.G!==1)return!1;tT(X,M,UU(D.S));return!0},Ng,bI2),vF9=hT(function(D,X,M){if(D.G!==1)return!1; D=UU(D.S);tT(X,M,D===0?void 0:D);return!0},Ng,bI2),d4n=hT(function(D,X,M,Q){if(D.G!==1)return!1; vl(X,M,Q,UU(D.S));return!0},Ng,bI2),rOn=hT(function(D,X,M){if(Ww)return D.G!==0?D=!1:(tT(X,M,Fm(D.S,EH)),D=!0),D; if(D.G!==0)return!1;tT(X,M,Fm(D.S,fg));return!0},qg,m4s),iIo=hT(function(D,X,M){if(Ww)return D.G!==0?X=!1:(D=Fm(D.S,EH),tT(X,M,D===INH?void 0:D),X=!0),X; if(D.G!==0)return!1;D=Fm(D.S,fg);tT(X,M,D===0?void 0:D);return!0},qg,m4s),oFs=hT(function(D,X,M,Q){if(Ww)return D.G!==0?D=!1:(vl(X,M,Q,Fm(D.S,EH)),D=!0),D; if(D.G!==0)return!1;vl(X,M,Q,Fm(D.S,fg));return!0},qg,m4s),C4m=hT(function(D,X,M){if(D.G!==0)return!1; tT(X,M,V0(D.S));return!0},wi,EFp),OIs=hT(function(D,X,M){if(D.G!==0)return!1; D=V0(D.S);tT(X,M,D===0?void 0:D);return!0},wi,EFp),pjs=hT(function(D,X,M,Q){if(D.G!==0)return!1; vl(X,M,Q,V0(D.S));return!0},wi,EFp),AO9=hT(function(D,X,M){if(Ww)return D.G!==1?D=!1:(tT(X,M,ZX(D.S)),D=!0),D; if(D.G!==1)return!1;tT(X,M,Bh(D.S));return!0},function(D,X,M){Ut9(D,M,mLW(X))},nFH),YVH=HR(function(D,X,M){if(Ww)return D.G!==1&&D.G!==2?D=!1:(X=bY(X,X[XB]|0,M),D.G==2?TP2(D,ZX,X):X.push(ZX(D.S)),D=!0),D; if(D.G!==1&&D.G!==2)return!1;X=bY(X,X[XB]|0,M);D.G==2?TP2(D,Bh,X):X.push(Bh(D.S));return!0},function(D,X,M){X=QK(mLW,X,!1); if(X!=null)for(var Q=0;Q>>0);return!0},function(D,X,M){X=g$(X); X!=null&&X!=null&&(oq(D,M,0),dQ(D.S,X))},yOs),Xy=hT(function(D,X,M){if(D.G!==0)return!1; tT(X,M,V0(D.S));return!0},function(D,X,M){X=Ie(X); X!=null&&(X=parseInt(X,10),oq(D,M,0),Vq9(D.S,X))},RBp);var Cv1=new Map;g.U(OR2,L7d);Ans.prototype.register=function(){jX(this)};g.U(sS,p1);sS.prototype.Y=ljn([0,vF9,iIo,-2,OIs]);W72.prototype.xl=function(D){var X=this.S[D.key];if(D.valueType==="proto"){try{var M=JSON.parse(X);if(Array.isArray(M))return M}catch(Q){}return D.defaultValue}return typeof X===typeof D.defaultValue?X:D.defaultValue};var zy_={diH:1,Vv:2,WJz:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};uTd.prototype.Yi=function(D){if(typeof D==="string"&&D.length!=0){var X=this.uM;if(X.G){D=D.split("&");for(var M=D.length-1;M>=0;M--){var Q=D[M].split("="),h=decodeURIComponent(Q[0]);Q.length>1?(Q=decodeURIComponent(Q[1]),Q=/^[0-9]+$/g.exec(Q)?parseInt(Q,10):Q):Q=1;(h=X.S[h])&&h.Y(Q)}}}};var MT=null;var BR=g.E8.performance,uds=!!(BR&&BR.mark&&BR.measure&&BR.clearMarks),VK=xf(function(){var D;if(D=uds){var X=X===void 0?window:X;if(MT===null){MT="";try{D="";try{D=X.top.location.hash}catch(Q){D=X.location.hash}if(D){var M=D.match(/\bdeid=([\d,]+)/);MT=M?M[1]:""}}catch(Q){}}X=MT;D=!!X.indexOf&&X.indexOf("1337")>=0}return D}); $c.prototype.disable=function(){this.S=!1;this.events!==this.G.google_js_reporting_queue&&(VK()&&g.$R(this.events,hU5),this.events.length=0)}; $c.prototype.start=function(D,X){if(!this.S)return null;var M=MEm()||XqW();D=new Qx9(D,X,M);X="goog_"+D.label+"_"+D.uniqueId+"_start";BR&&VK()&&BR.mark(X);return D}; $c.prototype.end=function(D){if(this.S&&typeof D.value==="number"){var X=MEm()||XqW();D.duration=X-D.value;X="goog_"+D.label+"_"+D.uniqueId+"_end";BR&&VK()&&BR.mark(X);!this.S||this.events.length>2048||this.events.push(D)}};var H7s=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),R5=/#|$/,Lho=/[?&]($|#)/;KhW.prototype.Mc=function(D,X,M,Q,h){h=h||this.Pg;try{var H=new y_;H.S.push(1);H.G[1]=Pq("context",D);X.error&&X.meta&&X.id||(X=new iF(o5(X)));if(X.msg){var t=X.msg.substring(0,512);H.S.push(2);H.G[2]=Pq("msg",t)}var q=X.meta||{};if(this.Og)try{this.Og(q)}catch(F){}if(Q)try{Q(q)}catch(F){}Q=[q];H.S.push(3);H.G[3]=Q;var w=mui();if(w.G){var T=w.G.url||"";H.S.push(4);H.G[4]=Pq("top",T)}var L={url:w.S.url||""};if(w.S.url){var K=g.US(w.S.url);var a=ZO(K[1],null,K[3],K[4])}else a="";T=[L,{url:a}];H.S.push(5); H.G[5]=T;juH(this.S,h,H,M)}catch(F){try{juH(this.S,h,{context:"ecmserr",rctx:D,msg:o5(F),url:w&&w.S.url},M)}catch(V){}}return this.H6}; g.U(iF,DCn);var di,ri,vR=new $c;di=new function(){var D="https:";Yf&&Yf.location&&Yf.location.protocol==="http:"&&(D="http:");this.G=D;this.S=.01}; ri=new KhW;Yf&&Yf.document&&(Yf.document.readyState=="complete"?Fh5():vR.S&&Bq(Yf,"load",function(){Fh5()}));var BHn=Date.now(),JT=-1,Yc=-1,bg5,xc=-1,lF=!1;WR.prototype.equals=function(D,X){return!!D&&(!(X===void 0?0:X)||this.volume==D.volume)&&this.Y==D.Y&&uv(this.S,D.S)&&!0};GE.prototype.Ly=function(){return this.J}; GE.prototype.equals=function(D,X){return this.U.equals(D.U,X===void 0?!1:X)&&this.J==D.J&&uv(this.Y,D.Y)&&uv(this.X,D.X)&&this.S==D.S&&this.D==D.D&&this.G==D.G&&this.K==D.K};var j01={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},uG={wK:"start",F2:"firstquartile",ub:"midpoint",kK:"thirdquartile",COMPLETE:"complete",ERROR:"error",gK:"metric",PAUSE:"pause",N8:"resume",Im:"skip",K1:"viewable_impression",Bi:"mute",Wi:"unmute",q7:"fullscreen",lz:"exitfullscreen",tJ:"bufferstart",AJ:"bufferfinish",Kl:"fully_viewable_audible_half_duration_impression",Qv:"measurable_impression",B5:"abandon",iz:"engagedview",e6:"impression",IZ:"creativeview",LOADED:"loaded", NV4:"progress",CLOSE:"close",DR2:"collapse",sqH:"overlay_resize",QqI:"overlay_unmeasurable_impression",gpR:"overlay_unviewable_impression",HS5:"overlay_viewable_immediate_impression",uRC:"overlay_viewable_end_of_session_impression",wS:"custom_metric_viewable",P5:"audio_audible",Oa:"audio_measurable",X2:"audio_impression"},OQi="start firstquartile midpoint thirdquartile resume loaded".split(" "),pl5=["start","firstquartile","midpoint","thirdquartile"],RMp=["abandon"],BS={UNKNOWN:-1,wK:0,F2:1,ub:2, kK:3,COMPLETE:4,gK:5,PAUSE:6,N8:7,Im:8,K1:9,Bi:10,Wi:11,q7:12,lz:13,Kl:14,Qv:15,B5:16,iz:17,e6:18,IZ:19,LOADED:20,wS:21,tJ:22,AJ:23,X2:27,Oa:28,P5:29};var UCo={lds:"addEventListener",s4$:"getMaxSize",Q4C:"getScreenSize",geF:"getState",uo2:"getVersion",nkC:"removeEventListener",sfy:"isViewable"};mC5.prototype.update=function(D){D&&D.document&&(this.J=zE(!1,D,this.isMobileDevice),this.S=zE(!0,D,this.isMobileDevice),b75(this,D),nzp(this,D))};Q$.prototype.cancel=function(){dH().clearTimeout(this.S);this.S=null}; Q$.prototype.schedule=function(){var D=this,X=dH(),M=Fa().S.S;this.S=X.setTimeout(KJ(M,OS(143,function(){D.G++;D.Y.sample()})),Z72())};g.B=hL.prototype;g.B.z5=function(){return!1}; g.B.initialize=function(){return this.isInitialized=!0}; g.B.xd=function(){return this.S.L$}; g.B.Up=function(){return this.S.f$}; g.B.fail=function(D,X){if(!this.f$||(X===void 0?0:X))this.f$=!0,this.L$=D,this.K=0,this.S!=this||tL(this)}; g.B.getName=function(){return this.S.yf}; g.B.DA=function(){return this.S.jD()}; g.B.jD=function(){return{}}; g.B.a9=function(){return this.S.K}; g.B.uw=function(){var D=DL();D.S=zE(!0,this.Y,D.isMobileDevice)}; g.B.Hp=function(){nzp(DL(),this.Y)}; g.B.s9=function(){return this.U.S}; g.B.sample=function(){}; g.B.isActive=function(){return this.S.X}; g.B.P9=function(D){var X=this.S;this.S=D.a9()>=this.K?D:this;X!==this.S?(this.X=this.S.X,tL(this)):this.X!==this.S.X&&(this.X=this.S.X,tL(this))}; g.B.Pu=function(D){if(D.G===this.S){var X=!this.U.equals(D,this.eH);this.U=D;X&&IFm(this)}}; g.B.YY=function(){return this.eH}; g.B.dispose=function(){this.sR=!0}; g.B.H2=function(){return this.sR};g.B=No.prototype;g.B.observe=function(){return!0}; g.B.unobserve=function(){}; g.B.fv=function(D){this.D=D}; g.B.dispose=function(){if(!this.H2()){var D=this.G;g.X_(D.D,this);D.eH&&this.YY()&&RUd(D);this.unobserve();this.a5=!0}}; g.B.H2=function(){return this.a5}; g.B.DA=function(){return this.G.DA()}; g.B.a9=function(){return this.G.a9()}; g.B.xd=function(){return this.G.xd()}; g.B.Up=function(){return this.G.Up()}; g.B.P9=function(){}; g.B.Pu=function(){this.im()}; g.B.YY=function(){return this.sR};g.B=qo.prototype;g.B.a9=function(){return this.S.a9()}; g.B.xd=function(){return this.S.xd()}; g.B.Up=function(){return this.S.Up()}; g.B.create=function(D,X,M){var Q=null;this.S&&(Q=this.Si(D,X,M),HW(this.S,Q));return Q}; g.B.Bp=function(){return this.eF()}; g.B.eF=function(){return!1}; g.B.init=function(D){return this.S.initialize()?(HW(this.S,this),this.U=D,!0):!1}; g.B.P9=function(D){D.a9()==0&&this.U(D.xd(),this)}; g.B.Pu=function(){}; g.B.YY=function(){return!1}; g.B.dispose=function(){this.D=!0}; g.B.H2=function(){return this.D}; g.B.DA=function(){return{}};Tk.prototype.add=function(D,X,M){++this.Y;D=new vz1(D,X,M);this.S.push(new vz1(D.G,D.S,D.Y+this.Y/4096));this.G=!0;return this};Ce2.prototype.toString=function(){var D="//pagead2.googlesyndication.com//pagead/gen_204",X=sX(this.S);X.length>0&&(D+="?"+X);return D};g.O.prototype.w6=!1;g.O.prototype.H2=function(){return this.w6}; g.O.prototype.dispose=function(){this.w6||(this.w6=!0,this.Yy())}; g.O.prototype[Symbol.dispose]=function(){this.dispose()}; g.O.prototype.addOnDisposeCallback=function(D,X){this.w6?X!==void 0?D.call(X):D():(this.l0||(this.l0=[]),X&&(D=D.bind(X)),this.l0.push(D))}; g.O.prototype.Yy=function(){if(this.l0)for(;this.l0.length;)this.l0.shift()()};var Dyd=[0,rOn,lN1,-1];F0.prototype.update=function(D,X,M){D&&(this.S+=X,this.G+=X,this.U+=X,this.Y=Math.max(this.Y,this.U));if(M===void 0?!D:M)this.U=0};var lFs=[1,.75,.5,.3,0];V$.prototype.update=function(D,X,M,Q,h,H){H=H===void 0?!0:H;X=h?Math.min(D,X):X;for(h=0;h0&&X>=t;t=!(D>0&&D>=t)||M;this.S[h].update(H&&q,Q,!H||t)}};fp.prototype.update=function(D,X,M,Q){this.J=this.J!=-1?Math.min(this.J,X.PD):X.PD;this.R5=Math.max(this.R5,X.PD);this.a5=this.a5!=-1?Math.min(this.a5,X.NR):X.NR;this.L$=Math.max(this.L$,X.NR);this.q5.update(X.NR,M.NR,X.S,D,Q);this.uj+=D;X.PD===0&&(this.yf+=D);this.G.update(X.PD,M.PD,X.S,D,Q);M=Q||M.M9!=X.M9?M.isVisible()&&X.isVisible():M.isVisible();X=!X.isVisible()||X.S;this.A$.update(M,D,X)}; fp.prototype.Mk=function(){return this.A$.Y>=this.o5};if(X0&&X0.URL){var X$W=X0.URL,Mln;a:{if(X$W){var Qg5=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var QI=Qg5.exec(decodeURIComponent(X$W));if(QI){Mln=QI[1]&&QI[1].length>1?QI[1].substring(1):"true";break a}}catch(D){}}Mln=""}ri.H6=!(Mln.length>0)};var hEH=new zK(0,0,0,0);var jxH=new zK(0,0,0,0);g.U(mr,g.O);g.B=mr.prototype; g.B.Yy=function(){if(this.fk.S){if(this.iF.AP){var D=this.fk.S;typeof D.removeEventListener==="function"&&D.removeEventListener("mouseover",this.iF.AP,$z());this.iF.AP=null}this.iF.cf&&(D=this.fk.S,typeof D.removeEventListener==="function"&&D.removeEventListener("mouseout",this.iF.cf,$z()),this.iF.cf=null)}this.eQ&&this.eQ.dispose();this.Om&&this.Om.dispose();delete this.BS;delete this.TA;delete this.Fc;delete this.fk.ze;delete this.fk.S;delete this.iF;delete this.eQ;delete this.Om;delete this.uM; g.O.prototype.Yy.call(this)}; g.B.GP=function(){return this.Om?this.Om.S:this.position}; g.B.Yi=function(D){Fa().Yi(D)}; g.B.YY=function(){return!1}; g.B.s3=function(){return new fp}; g.B.Hh=function(){return this.BS}; g.B.RC=function(D){return Qe5(this,D,1E4)}; g.B.C$=function(D,X,M,Q,h,H,t){this.vu||(this.DR&&(D=this.wQ(D,M,h,t),Q=Q&&this.jC.PD>=(this.M9()?.3:.5),this.SI(H,D,Q),this.mX=X,D.PD>0&&-1===this.LI&&(this.LI=X),this.ud==-1&&this.Mk()&&(this.ud=X),this.gi==-2&&(this.gi=y$(this.GP())?D.PD:-1),this.jC=D),this.TA(this))}; g.B.SI=function(D,X,M){this.Hh().update(D,X,this.jC,M)}; g.B.d7=function(){return new Zd}; g.B.wQ=function(D,X,M,Q){M=this.d7();M.S=X;X=dH().G;X=ZF(X0)===0?-1:X.isVisible()?0:1;M.G=X;M.PD=this.Us(D);M.M9=this.M9();M.NR=Q;return M}; g.B.Us=function(D){return this.opacity===0&&Jy(this.uM,"opac")===1?0:D}; g.B.M9=function(){return!1}; g.B.Po=function(){return this.d5R||this.tHF}; g.B.pn=function(){AT()}; g.B.Qo=function(){AT()}; g.B.vO=function(){return this.requestSource}; g.B.PX=function(){return 0}; g.B.Mk=function(){return this.BS.Mk()}; g.B.uS=function(){var D=this.DR;D=(this.hasCompleted||this.H2())&&!D;var X=Fa().G!==2||this.jnC;return this.vu||X&&D?2:this.Mk()?4:3}; g.B.fd=function(){return 0};g.bG.prototype.next=function(){return g.h6}; g.h6={done:!0,value:void 0};g.bG.prototype.yj=function(){return this};g.U(wKs,Zd);var HM=Lf1([void 0,1,2,3,4,8,16]),t6=Lf1([void 0,4,8,16]),Hup={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:gy("p0",t6),p1:gy("p1",t6),p2:gy("p2",t6),p3:gy("p3",t6),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Im("mtos1",[0,2,4],!1,t6),mtos2:Im("mtos2",[0,2,4],!1,t6),mtos3:Im("mtos3",[0,2,4],!1,t6),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:gy("a0",t6),a1:gy("a1",t6),a2:gy("a2",t6),a3:gy("a3",t6),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:gy("c0",t6),c1:gy("c1",t6),c2:gy("c2",t6),c3:gy("c3",t6),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:gy("qmtos",HM),qnc:gy("qnc",HM),qmv:gy("qmv",HM),qnv:gy("qnv",HM), 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:gy("ss0",t6),ss1:gy("ss1",t6),ss2:gy("ss2",t6),ss3:gy("ss3",t6),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"},tl_=Object.assign({},Hup,{avid:lv("audio"),avas:"avas",vs:"vs"}),Noi={atos:"atos",avt:Im("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(D,X){return function(M){return M[D]===void 0&&X!==void 0?X:M[D]}}("ss",0), t:"t"};iG.prototype.getValue=function(){return this.G}; iG.prototype.update=function(D,X){D>=32||(this.S&1<=.5;uF(X.volume)&&(this.U=this.U!=-1?Math.min(this.U,X.volume):X.volume,this.X=Math.max(this.X,X.volume));H&&(this.sR+=D,this.eH+=h?D:0);this.S.update(X.PD,M.PD,X.S,D,Q,h);this.Y.update(!0,D);this.D.update(h,D);this.f$.update(M.fullscreen,D);this.zm.update(h&&!H,D);D=Math.floor(X.mediaTime/1E3);this.M5.update(D,X.isVisible());this.p$.update(D,X.PD>=1);this.t$.update(D, Rm(X))}};$v_.prototype.G=function(D){this.Y||(this.S(D)?(D=nQm(this.eH,this.U,D),this.D|=D,D=D==0):D=!1,this.Y=D)};g.U(OX,$v_);OX.prototype.S=function(){return!0}; OX.prototype.X=function(){return!1}; OX.prototype.getId=function(){var D=this,X=bb(uG,function(M){return M==D.U}); return BS[X].toString()}; OX.prototype.toString=function(){var D="";this.X()&&(D+="c");this.Y&&(D+="s");this.D>0&&(D+=":"+this.D);return this.getId()+D};g.U(pp,OX);pp.prototype.G=function(D,X){X=X===void 0?null:X;X!=null&&this.J.push(X);OX.prototype.G.call(this,D)};g.U(AL,B$1);AL.prototype.G=function(){return null}; AL.prototype.Y=function(){return[]};g.U(YG,No);g.B=YG.prototype;g.B.pw=function(){if(this.element){var D=this.element,X=this.G.S.Y;try{try{var M=Ezd(D.getBoundingClientRect())}catch(T){M=new zK(0,0,0,0)}var Q=M.right-M.left,h=M.bottom-M.top,H=Vfd(D,X),t=H.x,q=H.y;var w=new zK(Math.round(q),Math.round(t+Q),Math.round(q+h),Math.round(t))}catch(T){w=hEH.clone()}this.Y=w;this.S=gz9(this,this.Y)}}; g.B.XD=function(){this.X=this.G.U.S}; g.B.LD=function(D){var X=Jy(this.uM,"od")==1;return utW(D,this.X,this.element,X)}; g.B.Of=function(){this.timestamp=AT()}; g.B.im=function(){this.Of();this.pw();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var D=this.element;var X=new g.tn(D.videoWidth,D.videoHeight);D=this.S;var M=kf(D),Q=D.getHeight(),h=X.width;X=X.height;h<=0||X<=0||M<=0||Q<=0||(h/=X,X=M/Q,D=D.clone(),h>X?(M/=h,Q=(Q-M)/2,Q>0&&(Q=D.top+Q,D.top=Math.round(Q),D.bottom=Math.round(Q+M))):(Q*=h,M=Math.round((M-Q)/2),M>0&&(M=D.left+M,D.left=Math.round(M),D.right=Math.round(M+Q))));this.S=D}this.XD(); D=this.S;M=this.X;D=D.left<=M.right&&M.left<=D.right&&D.top<=M.bottom&&M.top<=D.bottom?new zK(Math.max(D.top,M.top),Math.min(D.right,M.right),Math.min(D.bottom,M.bottom),Math.max(D.left,M.left)):new zK(0,0,0,0);M=D.top>=D.bottom||D.left>=D.right?new zK(0,0,0,0):D;D=this.G.U;X=h=Q=0;if((this.S.bottom-this.S.top)*(this.S.right-this.S.left)>0)if(this.LD(M))M=new zK(0,0,0,0);else{Q=DL().U;X=new zK(0,Q.height,Q.width,0);var H;Q=PW(M,(H=this.D)!=null?H:this.S);h=PW(M,DL().S);X=PW(M,X)}H=M.top>=M.bottom|| M.left>=M.right?new zK(0,0,0,0):jq(M,-this.S.left,-this.S.top);Mo()||(h=Q=0);this.eH=new GE(D,this.element,this.S,H,Q,h,this.timestamp,X)}; g.B.getName=function(){return this.G.getName()};var q3s=new zK(0,0,0,0);g.U(lG,YG);g.B=lG.prototype;g.B.observe=function(){this.U();return!0}; g.B.Pu=function(){YG.prototype.im.call(this)}; g.B.Of=function(){}; g.B.pw=function(){}; g.B.im=function(){this.U();YG.prototype.im.call(this)}; g.B.P9=function(D){D=D.isActive();D!==this.K&&(D?this.U():(DL().S=new zK(0,0,0,0),this.S=new zK(0,0,0,0),this.X=new zK(0,0,0,0),this.timestamp=-1));this.K=D};var NT={},nl_=(NT.firstquartile=0,NT.midpoint=1,NT.thirdquartile=2,NT.complete=3,NT);g.U(xG,mr);g.B=xG.prototype;g.B.YY=function(){return!0}; g.B.D8=function(){return this.QZ==2}; g.B.RC=function(D){return Qe5(this,D,Math.max(1E4,this.Y/3))}; g.B.C$=function(D,X,M,Q,h,H,t){var q=this,w=this.J(this)||{};g.rS(w,h);this.Y=w.duration||this.Y;this.eH=w.isVpaid||this.eH;this.yf=w.isYouTube||this.yf;dH();this.q5=!1;h=UvW(this,X);Zg9(this)===1&&(H=h);mr.prototype.C$.call(this,D,X,M,Q,w,H,t);this.Pk&&this.Pk.Y&&g.$R(this.X,function(T){T.G(q)})}; g.B.SI=function(D,X,M){mr.prototype.SI.call(this,D,X,M);zk(this).update(D,X,this.jC,M);this.o5=Rm(this.jC)&&Rm(X);this.L$==-1&&this.p$&&(this.L$=this.Hh().Y.S);this.PB.Y=0;D=this.Mk();X.isVisible()&&ry(this.PB,"vs");D&&ry(this.PB,"vw");uF(X.volume)&&ry(this.PB,"am");Rm(X)?ry(this.PB,"a"):ry(this.PB,"mut");this.wz&&ry(this.PB,"f");X.G!=-1&&(ry(this.PB,"bm"),X.G==1&&(ry(this.PB,"b"),Rm(X)&&ry(this.PB,"umutb")));Rm(X)&&X.isVisible()&&ry(this.PB,"avs");this.o5&&D&&ry(this.PB,"avw");X.PD>0&&ry(this.PB, "pv");kG(this,this.Hh().Y.S,!0)&&ry(this.PB,"gdr");UX(this.Hh().G,1)>=2E3&&ry(this.PB,"pmx");this.q5&&ry(this.PB,"tvoff")}; g.B.s3=function(){return new om}; g.B.Hh=function(){return this.BS}; g.B.d7=function(){return new wKs}; g.B.wQ=function(D,X,M,Q){D=mr.prototype.wQ.call(this,D,X,M,Q===void 0?-1:Q);D.fullscreen=this.wz;D.paused=this.D8();D.volume=M.volume;uF(D.volume)||(this.R2++,X=this.jC,uF(X.volume)&&(D.volume=X.volume));M=M.currentTime;D.mediaTime=M!==void 0&&M>=0?M:-1;return D}; g.B.Us=function(D){return DL(),this.wz?1:mr.prototype.Us.call(this,D)}; g.B.PX=function(){return 1}; g.B.getDuration=function(){return this.Y}; g.B.uS=function(){return this.vu?2:f4W(this)?5:this.Mk()?4:3}; g.B.fd=function(){return this.zm?this.Hh().D.Y>=2E3?4:3:2}; g.B.fv=function(D){this.Om&&this.Om.fv(D)};var w$p=g.CG();C__.prototype.reset=function(){this.S=[];this.G=[]}; var QH=gH(C__);g.U(t2,qo);g.B=t2.prototype;g.B.getName=function(){return(this.G?this.G:this.S).getName()}; g.B.DA=function(){return(this.G?this.G:this.S).DA()}; g.B.a9=function(){return(this.G?this.G:this.S).a9()}; g.B.init=function(D){var X=!1;(0,g.$R)(this.Y,function(M){M.initialize()&&(X=!0)}); X&&(this.U=D,HW(this.S,this));return X}; g.B.dispose=function(){(0,g.$R)(this.Y,function(D){D.dispose()}); qo.prototype.dispose.call(this)}; g.B.Bp=function(){return jj(this.Y,function(D){return D.z5()})}; g.B.eF=function(){return jj(this.Y,function(D){return D.z5()})}; g.B.Si=function(D,X,M){return new YG(D,this.S,X,M)}; g.B.Pu=function(D){this.G=D.G};var GG1={threshold:[0,.3,.5,.75,1]};g.U(Nb,YG);g.B=Nb.prototype;g.B.observe=function(){var D=this;this.R5||(this.R5=AT());if($Cd(298,function(){return zMW(D)}))return!0; this.G.fail("msf");return!1}; g.B.unobserve=function(){if(this.U&&this.element)try{this.U.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.J&&(this.J.disconnect(),this.J=null)}catch(D){}}; g.B.im=function(){var D=qb(this);D.length>0&&wg(this,D);YG.prototype.im.call(this)}; g.B.pw=function(){}; g.B.LD=function(){return!1}; g.B.XD=function(){}; g.B.DA=function(){var D={};return Object.assign(this.G.DA(),(D.niot_obs=this.R5,D.niot_cbk=this.f$,D))}; g.B.getName=function(){return"nio"};g.U(Te,qo);Te.prototype.getName=function(){return"nio"}; Te.prototype.eF=function(){return!DL().G&&this.S.S.Y.IntersectionObserver!=null}; Te.prototype.Si=function(D,X,M){return new Nb(D,this.S,X,M)};g.U(LP,hL);LP.prototype.s9=function(){return DL().S}; LP.prototype.z5=function(){var D=uBd();this.K!==D&&(this.S!=this&&D>this.S.K&&(this.S=this,tL(this)),this.K=D);return D==2};s$.prototype.sample=function(){F8(this,h2(),!1)}; s$.prototype.U=function(){var D=Mo(),X=AT();D?(lF||(JT=X,g.$R(QH.S,function(M){var Q=M.Hh();Q.OR=Cp(Q,X,M.QZ!=1)})),lF=!0):(this.J=QGs(this,X),lF=!1,bg5=X,g.$R(QH.S,function(M){M.DR&&(M.Hh().K=X)})); F8(this,h2(),!D)}; var KP=gH(s$);var HQm=null,A2="",pP=!1;var q12=NTo().nz,$q=NTo().bv;var LS_={hZC:"visible",NYy:"audible",VLI:"time",jhI:"timetype"},sGd={visible:function(D){return/^(100|[0-9]{1,2})$/.test(D)}, audible:function(D){return D=="0"||D=="1"}, timetype:function(D){return D=="mtos"||D=="tos"}, time:function(D){return/^(100|[0-9]{1,2})%$/.test(D)||/^([0-9])+ms$/.test(D)}}; TTR.prototype.setTime=function(D,X,M){X=="ms"?(this.Y=D,this.U=-1):(this.Y=-1,this.U=D);this.D=M===void 0?"tos":M;return this};g.U(cS,OX);cS.prototype.getId=function(){return this.J}; cS.prototype.X=function(){return!0}; cS.prototype.S=function(D){var X=D.Hh(),M=D.getDuration();return jj(this.K,function(Q){if(Q.S!=void 0)var h=aK2(Q,X);else b:{switch(Q.D){case "mtos":h=Q.G?X.D.Y:X.Y.S;break b;case "tos":h=Q.G?X.D.S:X.Y.S;break b}h=0}h==0?Q=!1:(Q=Q.Y!=-1?Q.Y:M!==void 0&&M>0?Q.U*M:-1,Q=Q!=-1&&h>=Q);return Q})};g.U(fP,Kf9);fP.prototype.S=function(D){var X=new se_;X.S=dy(D,Hup);X.G=dy(D,Noi);return X};g.U(Sn,OX);Sn.prototype.S=function(D){return f4W(D)};g.U(nP,B$1);g.U(b0,OX);b0.prototype.S=function(D){return D.Hh().Mk()};g.U(en,pp);en.prototype.S=function(D){var X=g.jb(this.J,Jy(Fa().uM,"ovms"));return!D.vu&&(D.QZ!=0||X)};g.U(Rc,nP);Rc.prototype.G=function(){return new en(this.S)}; Rc.prototype.Y=function(){return[new b0("viewable_impression",this.S),new Sn(this.S)]};g.U(Ic,lG);Ic.prototype.U=function(){var D=g.mn("ima.admob.getViewability"),X=Jy(this.uM,"queryid");typeof D==="function"&&X&&D(X)}; Ic.prototype.getName=function(){return"gsv"};g.U(gg,qo);gg.prototype.getName=function(){return"gsv"}; gg.prototype.eF=function(){var D=DL();Fa();return D.G&&!1}; gg.prototype.Si=function(D,X,M){return new Ic(this.S,X,M)};g.U(vS,lG);vS.prototype.U=function(){var D=this,X=g.mn("ima.bridge.getNativeViewability"),M=Jy(this.uM,"queryid");typeof X==="function"&&M&&X(M,function(Q){g.ef(Q)&&D.J++;var h=Q.opt_nativeViewVisibleBounds||{},H=Q.opt_nativeViewHidden;D.S=ywH(Q.opt_nativeViewBounds||{});var t=D.G.U;t.S=H?q3s.clone():ywH(h);D.timestamp=Q.opt_nativeTime||-1;DL().S=t.S;Q=Q.opt_nativeVolume;Q!==void 0&&(t.volume=Q)})}; vS.prototype.getName=function(){return"nis"};g.U(dg,qo);dg.prototype.getName=function(){return"nis"}; dg.prototype.eF=function(){var D=DL();Fa();return D.G&&!1}; dg.prototype.Si=function(D,X,M){return new vS(this.S,X,M)};g.U(rg,hL);g.B=rg.prototype;g.B.z5=function(){return this.G.Hv!=null}; g.B.jD=function(){var D={};this.M5&&(D.mraid=this.M5);this.a5&&(D.mlc=1);D.mtop=this.G.B6F;this.J&&(D.mse=this.J);this.uj&&(D.msc=1);D.mcp=this.G.compatibility;return D}; g.B.NH=function(D){var X=g.BZ.apply(1,arguments);try{return this.G.Hv[D].apply(this.G.Hv,X)}catch(M){pJ(538,M,.01,function(Q){Q.method=D})}}; g.B.initialize=function(){var D=this;if(this.isInitialized)return!this.Up();this.isInitialized=!0;if(this.G.compatibility===2)return this.J="ng",this.fail("w"),!1;if(this.G.compatibility===1)return this.J="mm",this.fail("w"),!1;DL().K=!0;this.Y.document.readyState&&this.Y.document.readyState=="complete"?BTo(this):EX(this.Y,"load",function(){dH().setTimeout(OS(292,function(){return BTo(D)}),100)},292); return!0}; g.B.uw=function(){var D=DL(),X=S19(this,"getMaxSize");D.S=new zK(0,X.width,X.height,0)}; g.B.Hp=function(){DL().U=S19(this,"getScreenSize")}; g.B.dispose=function(){Uxs(this);hL.prototype.dispose.call(this)};var Tod=new function(D,X){this.key=D;this.defaultValue=X===void 0?!1:X;this.valueType="boolean"}("45378663");g.B=oc.prototype;g.B.TD=function(D){np(D,!1);YH5(D)}; g.B.Cd=function(){}; g.B.L4=function(D,X,M,Q){var h=this;D=new xG(Yf,D,M?X:-1,7,this.M4(),this.eD());D.zC=Q;q8i(D.uM);lb(D.uM,"queryid",D.zC);D.Yi("");ts9(D,function(){return h.P$.apply(h,g.xW(g.BZ.apply(0,arguments)))},function(){return h.SR$.apply(h,g.xW(g.BZ.apply(0,arguments)))}); (Q=gH(HS).S)&&Msi(D,Q);this.Y&&(D.fv(this.Y),this.Y=null);D.fk.ze&&gH(je1);return D}; g.B.P9=function(D){switch(D.a9()){case 0:if(D=gH(HS).S)D=D.S,g.X_(D.D,this),D.eH&&this.YY()&&RUd(D);O$();break;case 2:ac()}}; g.B.Pu=function(){}; g.B.YY=function(){return!1}; g.B.SR$=function(D,X){D.vu=!0;switch(D.PX()){case 1:bQ5(D,X);break;case 2:this.y4(D)}}; g.B.Lz5=function(D){var X=D.J(D);X&&(X=X.volume,D.zm=uF(X)&&X>0);yjs(D,0);return ji(D,"start",Mo())}; g.B.Xt=function(D,X,M){F8(KP,[D],!Mo());return this.X5(D,X,M)}; g.B.X5=function(D,X,M){return ji(D,M,Mo())}; g.B.a4f=function(D){return xq(D,"firstquartile",1)}; g.B.nyR=function(D){D.p$=!0;return xq(D,"midpoint",2)}; g.B.x5C=function(D){return xq(D,"thirdquartile",3)}; g.B.RII=function(D){var X=xq(D,"complete",4);WW(D);return X}; g.B.GsH=function(D){D.QZ=3;return ji(D,"error",Mo())}; g.B.YU=function(D,X,M){X=Mo();if(D.D8()&&!X){var Q=D.Hh(),h=AT();Q.K=h}F8(KP,[D],!X);D.D8()&&(D.QZ=1);return ji(D,M,X)}; g.B.b$5=function(D,X){X=this.Xt(D,X||{},"skip");WW(D);return X}; g.B.hIj=function(D,X){np(D,!0);return this.Xt(D,X||{},"fullscreen")}; g.B.YRR=function(D,X){np(D,!1);return this.Xt(D,X||{},"exitfullscreen")}; g.B.Wl=function(D,X,M){X=D.Hh();var Q=AT();X.OR=Cp(X,Q,D.QZ!=1);F8(KP,[D],!Mo());D.QZ==1&&(D.QZ=2);return ji(D,M,Mo())}; g.B.U52=function(D){F8(KP,[D],!Mo());return D.G()}; g.B.hN=function(D){F8(KP,[D],!Mo());this.KR(D);WW(D);return D.G()}; g.B.P$=function(){}; g.B.y4=function(){}; g.B.KR=function(){}; g.B.MG=function(){}; g.B.Tr=function(){}; g.B.eD=function(){this.S||(this.S=this.Tr());return this.S==null?new AL:new Rc(this.S)}; g.B.M4=function(){return new fP};g.U(WS,OX);WS.prototype.S=function(D){return D.fd()==4};g.U(Ge,pp);Ge.prototype.S=function(D){D=D.fd();return D==3||D==4};g.U(ze,nP);ze.prototype.G=function(){return new Ge(this.S)}; ze.prototype.Y=function(){return[new WS(this.S)]};g.U(kq,Kf9);kq.prototype.S=function(D){D&&(D.e===28&&(D=Object.assign({},D,{avas:3})),D.vs===4||D.vs===5)&&(D=Object.assign({},D,{vs:3}));var X=new se_;X.S=dy(D,tl_);X.G=dy(D,Noi);return X};gQm.prototype.G=function(){return g.mn(this.S)};g.U(u0,oc);g.B=u0.prototype;g.B.Cd=function(D,X){var M=this,Q=gH(HS);if(Q.S!=null)switch(Q.S.getName()){case "nis":var h=iQW(this,D,X);break;case "gsv":h=rxW(this,D,X);break;case "exc":h=oQW(this,D)}h||(X.opt_overlayAdElement?h=void 0:X.opt_adElement&&(h=RTn(this,D,X.opt_adElement,X.opt_osdId)));h&&h.PX()==1&&(h.J==g.Jn&&(h.J=function(H){return M.MG(H)}),dx5(this,h,X)); return h}; g.B.MG=function(D){D.G=0;D.sR=0;if(D.U=="h"||D.U=="n"){Fa();D.t$&&(Fa(),l0(this)!="h"&&l0(this));var X=g.mn("ima.common.getVideoMetadata");if(typeof X==="function")try{var M=X(D.zC)}catch(h){D.G|=4}else D.G|=2}else if(D.U=="b")if(X=g.mn("ytads.bulleit.getVideoMetadata"),typeof X==="function")try{M=X(D.zC)}catch(h){D.G|=4}else D.G|=2;else if(D.U=="ml")if(X=g.mn("ima.common.getVideoMetadata"),typeof X==="function")try{M=X(D.zC)}catch(h){D.G|=4}else D.G|=2;else D.G|=1;D.G||(M===void 0?D.G|=8:M===null? D.G|=16:g.ef(M)?D.G|=32:M.errorCode!=null&&(D.sR=M.errorCode,D.G|=64));M==null&&(M={});X=M;D.K=0;for(var Q in j01)X[Q]==null&&(D.K|=j01[Q]);IKW(X,"currentTime");IKW(X,"duration");uF(M.volume)&&uF()&&(M.volume*=NaN);return M}; g.B.Tr=function(){Fa();l0(this)!="h"&&l0(this);var D=CYd(this);return D!=null?new gQm(D):null}; g.B.y4=function(D){!D.S&&D.vu&&J2(this,D,"overlay_unmeasurable_impression")&&(D.S=!0)}; g.B.KR=function(D){D.vz&&(D.Mk()?J2(this,D,"overlay_viewable_end_of_session_impression"):J2(this,D,"overlay_unviewable_impression"),D.vz=!1)}; g.B.P$=function(){}; g.B.L4=function(D,X,M,Q){if(Fa().flags.xl(Tod)){var h=Jy(Fa().uM,"mm"),H={};(h=(H[a5.y7]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",H[a5.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",H)[h])&&Y12(this,h);this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&pJ(1044,Error())}D=oc.prototype.L4.call(this,D,X,M,Q);this.D&&(X=this.X,D.D==null&&(D.D=new N$m),X.S[D.zC]=D.D,D.D.D=w$p);return D}; g.B.TD=function(D){D&&D.PX()==1&&this.D&&delete this.X.S[D.zC];return oc.prototype.TD.call(this,D)}; g.B.eD=function(){this.S||(this.S=this.Tr());return this.S==null?new AL:this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new ze(this.S):new Rc(this.S)}; g.B.M4=function(){return this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new kq:new fP}; g.B.fv=function(D,X,M,Q,h){X=new zK(M,X+Q,M+h,X);(D=Mb(QH,D))?D.fv(X):this.Y=X}; var Lz5=CJ(193,Jxp,void 0,eTn);g.PZ("Goog_AdSense_Lidar_sendVastEvent",Lz5);var sgm=OS(194,function(D,X){X=X===void 0?{}:X;D=Ax2(gH(u0),D,X);return lKR(D)}); g.PZ("Goog_AdSense_Lidar_getViewability",sgm);var Kzi=CJ(195,function(){return Ofo()}); g.PZ("Goog_AdSense_Lidar_getUrlSignalsArray",Kzi);var ass=OS(196,function(){return JSON.stringify(Ofo())}); g.PZ("Goog_AdSense_Lidar_getUrlSignalsList",ass);var GFi=g.Ws(["//ep2.adtrafficquality.google/sodar/",""]),zTs=g.Ws(["//tpc.googlesyndication.com/sodar/",""]);g.U(Xg,Error);g.U(h7,g.O);h7.prototype.zf=function(){return this.wpc.f()}; h7.prototype.Hs=function(D){this.wpc.c(D)}; h7.prototype.aX=function(D){return this.wpc.m(Dh1(D))}; h7.prototype.UY=function(D){return this.wpc.mws(Dh1(D))}; g.U(MN,g.O);MN.prototype.snapshot=function(D){return this.oz.s(Object.assign({},D.UG&&{c:D.UG},D.ue&&{s:D.ue},D.Mg!==void 0&&{p:D.Mg}))}; MN.prototype.Qk=function(D){this.oz.e(D)}; MN.prototype.Mh=function(){return this.oz.l()};g.U(t7,g.O);t7.prototype.share=function(){if(this.H2())throw Error("E:AD");this.G++;return this}; t7.prototype.dispose=function(){--this.G||g.O.prototype.dispose.call(this)};tZ9.prototype.nV=function(D,X){this.S.nV("/client_streamz/bg/frs",D,X)}; NQd.prototype.nV=function(D,X,M,Q,h,H){this.S.nV("/client_streamz/bg/wrl",D,X,M,Q,h,H)}; qU1.prototype.BP=function(D,X){this.S.Tu("/client_streamz/bg/ec",D,X)}; wh2.prototype.nV=function(D,X,M){this.S.nV("/client_streamz/bg/el",D,X,M)}; TQ9.prototype.BP=function(D,X){this.S.Tu("/client_streamz/bg/cec",D,X)}; Lyd.prototype.BP=function(D,X){this.S.Tu("/client_streamz/bg/po/csc",D,X)}; sq2.prototype.BP=function(D,X){this.S.Tu("/client_streamz/bg/po/ctav",D,X)}; KyR.prototype.BP=function(D,X){this.S.Tu("/client_streamz/bg/po/cwsc",D,X)};g.U(aXi,p1);g.U(w4,p1);var $d=[1,2,3];var FzR=[0,$d,G9m,pjs,x4s];var Vl2=[0,kA,[0,gF_,rOn]];g.U(TV,p1);var VE=[1,2,3];var $yH=[0,VE,oFs,d4n,jt,Vl2];g.U(Lm,p1);var Boo=[0,kA,FzR,$yH];var Zuo=[0,z_];g.U(Km,p1);var Uyp=[0,z_,-1,JOm];var cM_=[0,z_,-1,C4m,JOm];g.U(a3,p1);var lxs=[1,2,3];var fsm=[0,lxs,jt,Uyp,jt,cM_,jt,Zuo];g.U(Fg,p1);Fg.prototype.e9=function(){var D=cl(this,3,l_,3,!0);Nv(D);return D[void 0]};Fg.prototype.Y=ljn([0,z_,fsm,Wko,kA,Boo,AO9,YVH]);g.U(VZd,p1);g.B=BL.prototype;g.B.isEnabled=function(){if(!g.E8.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{RI:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.B.set=function(D,X,M){var Q=!1;if(typeof M==="object"){var h=M.sameSite;Q=M.secure||!1;var H=M.domain||void 0;var t=M.path||void 0;var q=M.RI}if(/[;=\s]/.test(D))throw Error('Invalid cookie name "'+D+'"');if(/[;\r\n]/.test(X))throw Error('Invalid cookie value "'+X+'"');q===void 0&&(q=-1);M=H?";domain="+H:"";t=t?";path="+t:"";Q=Q?";secure":"";q=q<0?"":q==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+q*1E3)).toUTCString();this.S.cookie=D+"="+X+M+t+q+Q+(h!=null? ";samesite="+h:"")}; g.B.get=function(D,X){for(var M=D+"=",Q=(this.S.cookie||"").split(";"),h=0,H;h=0;X--)this.remove(D[X])}; var rc=new BL(typeof document=="undefined"?null:document);Us.prototype.compress=function(D){var X,M,Q,h;return g.r(function(H){switch(H.S){case 1:return X=new CompressionStream("gzip"),M=(new Response(X.readable)).arrayBuffer(),Q=X.writable.getWriter(),g.I(H,Q.write((new TextEncoder).encode(D)),2);case 2:return g.I(H,Q.close(),3);case 3:return h=Uint8Array,g.I(H,M,4);case 4:return H.return(new h(H.G))}})}; Us.prototype.isSupported=function(D){return D<1024?!1:typeof CompressionStream!=="undefined"};g.U(cL,p1);fm.prototype.setInterval=function(D){this.intervalMs=D;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; fm.prototype.start=function(){var D=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){D.tick()},this.intervalMs),this.G=this.S())}; fm.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; fm.prototype.tick=function(){var D=this;if(this.enabled){var X=Math.max(this.S()-this.G,0);X0?M:void 0));M=V2(M,4,Re(h>0?h:void 0));M=V2(M,5,Re(H>0?H:void 0));h=M.K$;H=h[XB]|0;M=tj(M,H)?M:qx(M,h,H)?wT(M,h):new M.constructor(Nx(h,H,!0));pQ(t,g.yE,10,M)}t=this.S.clone();M=Date.now().toString();t=V2(t,4,OH(M));D=Ax(t,g4,3,D.slice());Q&&(t=new Sw,Q=V2(t,13,Re(Q)),t= new Es,Q=pQ(t,Sw,2,Q),t=new I3,Q=pQ(t,Es,1,Q),Q=DX(Q,2,9),pQ(D,I3,18,Q));X&&kQ(D,14,X);return D};g.o3.prototype.G=0;g.o3.prototype.reset=function(){this.S=this.Y=this.U;this.G=0}; g.o3.prototype.getValue=function(){return this.Y};g.U(TE,p1);var S3_=LJ(TE);g.U(pDs,p1);var qT;qT=new Ans;g.U(A7,g.O);g.B=A7.prototype;g.B.Yy=function(){pm(this);this.G.stop();this.M5.stop();g.O.prototype.Yy.call(this)}; g.B.dispatch=function(D){if(D instanceof g4)this.log(D);else try{var X=new g4,M=D.Ij();var Q=uY(X,8,M);this.log(Q)}catch(h){Yd(this,4,1)}}; g.B.log=function(D){Yd(this,2,1);if(this.uj){D=D.clone();var X=this.A$++;D=kQ(D,21,X);this.componentId&&uY(D,26,this.componentId);X=D;var M=aG(X,1);var Q=Q===void 0?!1:Q;var h=typeof M;Q=M==null?M:h==="bigint"?String(d$(64,M)):es(M)?h==="string"?vK(M):Q?oe(M):Cg(M):void 0;Q==null&&(Q=Date.now(),Q=Number.isFinite(Q)?Q.toString():"0",V2(X,1,OH(Q)));Q=aG(X,15);Q!=null&&(typeof Q==="bigint"?Mx(Q)?Q=Number(Q):(Q=d$(64,Q),Q=Mx(Q)?Number(Q):String(Q)):Q=es(Q)?typeof Q==="number"?Cg(Q):vK(Q):void 0);Q!=null|| kQ(X,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Q=this.experimentIds.clone(),pQ(X,cL,16,Q));Yd(this,1,1);X=this.S.length-1E3+1;X>0&&(this.S.splice(0,X),this.U+=X,Yd(this,3,X));this.S.push(D);this.aW||this.G.enabled||this.G.start()}}; g.B.flush=function(D,X){var M=this;if(this.S.length===0)D&&D();else if(this.L$&&this.f$)this.Y.G=3,O1d(this);else{var Q=Date.now();if(this.OR>Q&&this.sR0&&(M.sR=Date.now(),M.OR=M.sR+a);a=O8(zG);var c;D4&&a&&((c=F.K$[a])==null?void 0:c[175237375])!=null&&ue(aNs,3);a:{var S=S===void 0?!1:S;if(O8(Fks)&&O8(zG)&&void 0===Fks){c=F.K$;a=c[zG];if(!a)break a;if(a=a.Eq)try{a(c,175237375,cOm);break a}catch(b){ie(b)}}S&&(S=F.K$, (c=O8(zG))&&c in S&&(S=S[c])&&delete S[175237375])}S=qT.S?qT.G(F,qT.S,175237375,qT.Y):qT.G(F,175237375,null,qT.Y);if(S=S===null?void 0:S)S=g.lY(S,1,-1),S!==-1&&(M.D=new g.o3(S<1?1:S,3E5,.1),M.G.setInterval(M.D.getValue()))}}D&&D();M.X=0},L=function(a,F){var V=O1(H,g4,3); var c=Number(XD5(H,14));g.Cm(M.D);M.G.setInterval(M.D.getValue());a===401&&t&&(M.yf=t);c&&(M.U+=c);F===void 0&&(F=M.isRetryable(a));F&&(M.S=V.concat(M.S),M.aW||M.G.enabled||M.G.start());Yd(M,7,1);X&&X("net-send-failed",a);++M.X},K=function(){M.network&&M.network.send(w,T,L)}; q?q.then(function(a){Yd(M,5,h);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=a;w.Ov=2;K()},function(){Yd(M,6,h); K()}):K()}}}}; g.B.isRetryable=function(D){return 500<=D&&D<600||D===401||D===0};l$.prototype.send=function(D,X,M){var Q=this,h,H,t,q,w,T,L,K,a,F;return g.r(function(V){switch(V.S){case 1:return H=(h=Q.RJ?new AbortController:void 0)?setTimeout(function(){h.abort()},D.timeoutMillis):void 0,g.N_(V,2,3),t=Object.assign({},{method:D.requestType, headers:Object.assign({},D.requestHeaders)},D.body&&{body:D.body},D.withCredentials&&{credentials:"include"},{signal:D.timeoutMillis&&h?h.signal:null}),g.I(V,fetch(D.url,t),5);case 5:q=V.G;if(q.status!==200){(w=M)==null||w(q.status);V.D4(3);break}if((T=X)==null){V.D4(7);break}return g.I(V,q.text(),8);case 8:T(V.G);case 7:case 3:g.s8(V);clearTimeout(H);g.KG(V,0);break;case 2:L=g.LG(V);switch((K=L)==null?void 0:K.name){case "AbortError":(a=M)==null||a(408);break;default:(F=M)==null||F(400)}V.D4(3)}})}; l$.prototype.O3=function(){return 4};g.U(J7,g.O);J7.prototype.wf=function(){this.U=!0;return this}; J7.prototype.build=function(){this.network||(this.network=new l$);var D=new A7({logSource:this.logSource,h1:this.h1?this.h1:mhm,sessionIndex:this.sessionIndex,HsF:this.jy,Hk:this.Y,aW:!1,wf:this.U,uD:this.uD,network:this.network});g.p(this,D);if(this.buildLabel){var X=this.buildLabel,M=i$(D.Y);uY(M,7,X)}D.J=new Us;this.componentId&&(D.componentId=this.componentId);this.rq&&(D.rq=this.rq);this.pageId&&(D.pageId=this.pageId);this.S&&((M=this.S)?(D.experimentIds||(D.experimentIds=new cL),X=D.experimentIds, M=M.Ij(),uY(X,4,M)):D.experimentIds&&V2(D.experimentIds,4));this.G&&(D.L$=D.f$);dhs(D.Y);this.network.m5&&this.network.m5(this.logSource);this.network.DWs&&this.network.DWs(D);return D};g.U(xd,g.O);xd.prototype.flush=function(D){D=D||[];if(D.length){for(var X=new VZd,M=[],Q=0;Q-1?(X=D[t],M||(X.q$=!1)):(X=new GX2(X,this.src,H,!!Q,h),X.q$=M,D.push(X));return X}; g.B.remove=function(D,X,M,Q){D=D.toString();if(!(D in this.listeners))return!1;var h=this.listeners[D];X=hi(h,X,M,Q);return X>-1?(X2(h[X]),g.Dd(h,X),h.length==0&&(delete this.listeners[D],this.S--),!0):!1}; g.B.removeAll=function(D){D=D&&D.toString();var X=0,M;for(M in this.listeners)if(!D||M==D){for(var Q=this.listeners[M],h=0;h-1?D[h]:null}; g.B.hasListener=function(D,X){var M=D!==void 0,Q=M?D.toString():"",h=X!==void 0;return g.$W(this.listeners,function(H){for(var t=0;t>>0);g.Ah(g.Ks,g.O);g.Ks.prototype[xhp]=!0;g.B=g.Ks.prototype;g.B.addEventListener=function(D,X,M,Q){g.ti(this,D,X,M,Q)}; g.B.removeEventListener=function(D,X,M,Q){Mjs(this,D,X,M,Q)}; g.B.dispatchEvent=function(D){var X=this.k9;if(X){var M=[];for(var Q=1;X;X=X.k9)M.push(X),++Q}X=this.YD;Q=D.type||D;if(typeof D==="string")D=new g.u$(D,X);else if(D instanceof g.u$)D.target=D.target||X;else{var h=D;D=new g.u$(Q,X);g.rS(D,h)}h=!0;var H;if(M)for(H=M.length-1;!D.G&&H>=0;H--){var t=D.currentTarget=M[H];h=a7(t,Q,!0,D)&&h}D.G||(t=D.currentTarget=X,h=a7(t,Q,!0,D)&&h,D.G||(h=a7(t,Q,!1,D)&&h));if(M)for(H=0;!D.G&&H0){this.G--;var D=this.S;this.S=D.next;D.next=null}else D=this.Y();return D};var $1;Zu.prototype.add=function(D,X){var M=qSm.get();M.set(D,X);this.G?this.G.next=M:this.S=M;this.G=M}; Zu.prototype.remove=function(){var D=null;this.S&&(D=this.S,this.S=this.S.next,this.S||(this.G=null),D.next=null);return D}; var qSm=new F2(function(){return new Uy},function(D){return D.reset()}); Uy.prototype.set=function(D,X){this.S=D;this.scope=X;this.next=null}; Uy.prototype.reset=function(){this.next=this.scope=this.S=null};var cP,fs=!1,tj2=new Zu;wR9.prototype.reset=function(){this.context=this.G=this.Y=this.S=null;this.U=!1}; var TiW=new F2(function(){return new wR9},function(D){D.reset()}); g.yw.prototype.then=function(D,X,M){return ZJ5(this,Vw(typeof D==="function"?D:null),Vw(typeof X==="function"?X:null),M)}; g.yw.prototype.$goog_Thenable=!0;g.B=g.yw.prototype;g.B.finally=function(D){var X=this;D=Vw(D);return new g.yw(function(M,Q){aO_(X,function(h){D();M(h)},function(h){D(); Q(h)})})}; g.B.iB=function(D,X){return ZJ5(this,null,Vw(D),X)}; g.B.catch=g.yw.prototype.iB;g.B.cancel=function(D){if(this.S==0){var X=new R7(D);g.SI(function(){FJm(this,X)},this)}}; g.B.ad4=function(D){this.S=0;Ey(this,2,D)}; g.B.hvC=function(D){this.S=0;Ey(this,3,D)}; g.B.vG=function(){for(var D;D=Vjo(this);)$gi(this,D,this.S,this.J);this.X=!1}; var SSn=ie;g.Ah(R7,YB);R7.prototype.name="cancel";g.Ah(g.I7,g.Ks);g.B=g.I7.prototype;g.B.enabled=!1;g.B.kR=null;g.B.setInterval=function(D){this.i$=D;this.kR&&this.enabled?(this.stop(),this.start()):this.kR&&this.stop()}; g.B.ohs=function(){if(this.enabled){var D=g.CG()-this.PE;D>0&&D0&&(this.getStatus(),this.X=setTimeout(this.yG.bind(this), this.f$)),this.getStatus(),this.eH=!0,this.S.send(D),this.eH=!1}catch(t){this.getStatus(),oc2(this,t)}}; g.B.yG=function(){typeof Y1!="undefined"&&this.S&&(this.U="Timed out after "+this.f$+"ms, aborting",this.G=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.B.abort=function(D){this.S&&this.Y&&(this.getStatus(),this.Y=!1,this.D=!0,this.S.abort(),this.D=!1,this.G=D||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ai(this))}; g.B.Yy=function(){this.S&&(this.Y&&(this.Y=!1,this.D=!0,this.S.abort(),this.D=!1),Ai(this,!0));g.ps.vP.Yy.call(this)}; g.B.Sl=function(){this.H2()||(this.a5||this.eH||this.D?CFs(this):this.E$I())}; g.B.E$I=function(){CFs(this)}; g.B.isActive=function(){return!!this.S}; g.B.isComplete=function(){return g.lt(this)==4}; g.B.getStatus=function(){try{return g.lt(this)>2?this.S.status:-1}catch(D){return-1}}; g.B.getResponseHeader=function(D){if(this.S&&this.isComplete())return D=this.S.getResponseHeader(D),D===null?void 0:D}; g.B.getLastError=function(){return typeof this.U==="string"?this.U:String(this.U)};zW.prototype.send=function(D,X,M){X=X===void 0?function(){}:X; M=M===void 0?function(){}:M; rTs(D.url,function(Q){Q=Q.target;Ji(Q)?X(g.x1(Q)):M(Q.getStatus())},D.requestType,D.body,D.requestHeaders,D.timeoutMillis,D.withCredentials)}; zW.prototype.O3=function(){return 1};ut.prototype.done=function(){this.logger.IV(this.event,k1()-this.startTime)}; g.U(jI,t7);g.U(Xv,jI);g.B=Xv.prototype;g.B.jB=function(){}; g.B.Ih=function(){}; g.B.IV=function(){}; g.B.s5=function(){}; g.B.FJ=function(){}; g.B.zV=function(D,X,M,Q){return Q}; g.B.xn=function(){}; g.B.hK=function(){}; g.B.La=function(){}; g.U(M6,jI);g.B=M6.prototype;g.B.update=function(D){this.logger.dispose();this.logger=D}; g.B.Ih=function(D){this.logger.Ih(D)}; g.B.IV=function(D,X){this.logger.IV(D,X)}; g.B.s5=function(D){this.logger.s5(D)}; g.B.FJ=function(){this.logger.FJ()}; g.B.zV=function(D,X,M,Q){return this.logger.zV(D,X,M,Q)}; g.B.xn=function(D){this.logger.xn(D)}; g.B.hK=function(D){this.logger.hK(D)}; g.B.La=function(D){this.logger.La(D)}; g.B.jB=function(D){this.logger.jB(D)}; g.U(YSp,g.O);g.U(Qx,jI);g.B=Qx.prototype;g.B.jB=function(D){this.metrics.T64.nV(D,this.WI)}; g.B.Ih=function(D){this.metrics.eventCount.BP(D,this.WI)}; g.B.IV=function(D,X){this.metrics.NI.nV(X,D,this.WI)}; g.B.s5=function(D){this.metrics.errorCount.BP(D,this.WI)}; g.B.zV=function(D,X,M,Q){function h(q){if(!H.H2()){var w=k1()-t;H.metrics.cSy.nV(w,D,M,q,X,H.WI)}} var H=this,t=k1();Q.then(function(){return void h(0)},function(q){return void h(q instanceof r3?q.code:-1)}); return Q}; g.B.xn=function(D){this.metrics.tgF.BP(D,this.WI)}; g.B.hK=function(D){this.metrics.Jb.BP(D,this.WI)}; g.B.La=function(D){this.metrics.ASj.BP(D,this.WI)}; g.U(hp,Qx);hp.prototype.FJ=function(){lO9(this.S)};g.U(Hg,p1);g.U(tp,p1);g.U(N6,p1);var hd_=LJ(N6),xgs=function(D){return Ix(function(X){return X instanceof D&&!tj(X)})}(N6); N6.messageId="bfkj";g.U(HL,p1);g.U(q6,p1);var WJH=LJ(q6);g.U(TO,g.O);TO.prototype.snapshot=function(D){if(this.H2())throw Error("Already disposed");this.logger.Ih("n");var X=this.logger.share();return this.Y.then(function(M){var Q=M.HU;return new Promise(function(h){var H=new ut(X,"n");Q(function(t){H.done();X.jB(t.length);X.FJ();X.dispose();h(t)},[D.UG, D.ue,D.Dj,D.Mg])})})}; TO.prototype.ow=function(D){var X=this;if(this.H2())throw Error("Already disposed");this.logger.Ih("n");var M=Dw(this.logger,function(){return X.U([D.UG,D.ue,D.Dj,D.Mg])},"n"); this.logger.jB(M.length);this.logger.FJ();return M}; TO.prototype.Qk=function(D){this.Y.then(function(X){var M;(M=X.qCC)==null||M(D)})}; TO.prototype.Mh=function(){return this.logger.share()};g.U(KY,p1);g.U(a_,p1);Fv.prototype.Kt=function(D){return qXH(this,D,new Xv,0)};g.U(Vx,g.O);g.B=Vx.prototype;g.B.snapshot=function(D){var X=this;return g.r(function(M){switch(M.S){case 1:if(X.H2())throw Error("Already disposed");if(X.G||X.J){M.D4(2);break}return g.I(M,X.D.promise,2);case 2:if(!X.G){M.D4(4);break}return g.I(M,X.G.snapshot(D),5);case 5:return M.return(M.G);case 4:throw X.J;}})}; g.B.pause=function(){this.H2()||this.isPaused||(this.isPaused=!0,this.S&&this.S.pause())}; g.B.resume=function(){!this.H2()&&this.isPaused&&(this.isPaused=!1,this.S&&this.S.resume())}; g.B.checkForRefresh=function(){var D=this;return g.r(function(X){if(D.H2())throw Error("Already disposed");var M;if(M=D.S)M=D.S,M.isExpired()?(Uh(M),M.J0(0),M=!0):M=!1,M=!M;return M?X.D4(0):g.I(X,D.Y.promise,0)})}; g.B.Qk=function(D){var X,M;(X=this.G)==null||(M=X.Qk)==null||M.call(X,D)}; g.B.handleError=function(D){if(!this.H2()){this.J=D;this.D.resolve();var X,M;(M=(X=this.options).QN5)==null||M.call(X,D)}}; g.B.Mh=function(){return this.logger.share()}; var Lr_={XBR:432E5,m7:3E5,gt:10,iK:1E4,pX:3E4,Kz5:3E4,QnF:6E4,cG:1E3,dP:6E4,AM:6E5,tM:.25,JM:2,maxAttempts:10};Zw.prototype.pause=function(){this.isPaused||(this.isPaused=!0,Uh(this))}; Zw.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; Zw.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var Pui,cL5=(Pui=Math.imul)!=null?Pui:function(D,X){return D*X|0},fY=[196, 200,224,18];SR.prototype.Ij=function(){return String(this.S)+","+this.G.join()}; SR.prototype.Bx=function(D,X){var M=void 0;if(this.G[this.S]!==D){var Q=this.G.indexOf(D);Q!==-1?(this.G.splice(Q,1),Q0;)X[M++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(D%62),D=Math.floor(D/62);return X.join("")}};g.U(yx,g.O);yx.prototype.UY=function(D,X){var M=this.aX(D);X==null||X(M);return Dw(this.logger,function(){return g.C7(M,2)},this.G)}; g.U(nY,yx);nY.prototype.aX=function(D,X){var M=this;this.logger.Ih(this.S);++this.D>=this.X&&this.Y.resolve();var Q=D();D=Dw(this.logger,function(){return M.U(Q)},"C"); if(D===void 0)throw new Xg(17,"YNJ:Undefined");if(!(D instanceof Uint8Array))throw new Xg(18,"ODM:Invalid");X==null||X(D);return D}; g.U(br,yx);br.prototype.aX=function(){return this.U}; g.U(eR,yx);eR.prototype.aX=function(){var D=this;return Dw(this.logger,function(){return p7(D.U)},"d")}; eR.prototype.UY=function(){return this.U}; g.U(R_,yx);R_.prototype.aX=function(){if(this.U)return this.U;this.U=vG2(this,function(D){return"_"+gGR(D)}); return vG2(this,function(D){return D})}; g.U(gh,yx);gh.prototype.aX=function(){var D=Math.floor(Date.now()/1E3),X=[Math.random()*255,Math.random()*255],M=X.concat([this.U&255,this.clientState],[D>>24&255,D>>16&255,D>>8&255,D&255]);D=new Uint8Array(2+M.length);D[0]=34;D[1]=M.length;D.set(M,2);M=D.subarray(2);for(var Q=X=X.length;Q150))try{this.cache=new nGH(D,this.logger)}catch(X){this.reportError(new Xg(22,"GBJ:init",X))}}; g.B.reportError=function(D){this.logger.s5(D.code);this.onError(D);return D}; var ipR=function(D){return Ix(function(X){if(!s0R(X))return!1;for(var M=g.e(Object.entries(D)),Q=M.next();!Q.done;Q=M.next()){var h=g.e(Q.value);Q=h.next().value;h=h.next().value;if(!(Q in X)){if(h.puf===!0)continue;return!1}if(!h(X[Q]))return!1}return!0})}({oz:function(D){return Ix(function(X){return X instanceof D})}(Vx)},"");var mm2=(new Date).getTime();g.U(ir,p1);var my9=LJ(ir);Wrn.prototype.getMetadata=function(){return this.metadata};o_.prototype.getMetadata=function(){return this.metadata}; o_.prototype.getStatus=function(){return this.status};CY.prototype.X=function(D,X){X=X===void 0?{}:X;return new Wrn(D,this,X)}; CY.prototype.getName=function(){return this.name};var n3W=new CY("/google.internal.waa.v1.Waa/Create",KY,ir,function(D){return D.Ij()},my9);g.U(Oh,p1);var tiH=new CY("/google.internal.waa.v1.Waa/GenerateIT",a_,Oh,function(D){return D.Ij()},LJ(Oh));var Eqn=new Set(["SAPISIDHASH","APISIDHASH"]);g.U(pY,p1);pY.prototype.getValue=function(){var D=aG(this,2);if(Array.isArray(D)||D instanceof p1)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return mS(this,2)};g.U(Ap,p1);Ap.prototype.getMessage=function(){return xQ(this,2)}; var Dbs=LJ(Ap);Yp.prototype.removeListener=function(D,X){D==="data"?jR(this.G,X):D==="metadata"?jR(this.U,X):D==="status"?jR(this.D,X):D==="end"?jR(this.Y,X):D==="error"&&jR(this.S,X);return this}; Yp.prototype.cancel=function(){this.xhr.abort()}; g.U(zd2,Error);g.Ah(g.D1,vcH);g.D1.prototype.S=function(){var D=new Xe(this.U,this.Y);this.G&&D.setCredentialsMode(this.G);return D}; g.D1.prototype.setCredentialsMode=function(D){this.G=D}; g.Ah(Xe,g.Ks);g.B=Xe.prototype;g.B.open=function(D,X){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.R5=D;this.f$=X;this.readyState=1;M3(this)}; g.B.send=function(D){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.K.signal.aborted)throw this.abort(),Error("Request was aborted.");this.S=!0;var X={headers:this.eH,method:this.R5,credentials:this.D,cache:void 0,signal:this.K.signal};D&&(X.body=D);(this.a5||g.E8).fetch(new Request(this.f$,X)).then(this.eI$.bind(this),this.tj.bind(this))}; g.B.abort=function(){this.response=this.responseText="";this.eH=new Headers;this.status=0;this.K.abort("Request was aborted.");this.Y&&this.Y.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.S&&this.readyState!=4&&(this.S=!1,QC(this));this.readyState=0}; g.B.eI$=function(D){if(this.S&&(this.U=D,this.G||(this.status=this.U.status,this.statusText=this.U.statusText,this.G=D.headers,this.readyState=2,M3(this)),this.S&&(this.readyState=3,M3(this),this.S)))if(this.responseType==="arraybuffer")D.arrayBuffer().then(this.jq.bind(this),this.tj.bind(this));else if(typeof g.E8.ReadableStream!=="undefined"&&"body"in D){this.Y=D.body.getReader();if(this.X){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.J=new TextDecoder;XSn(this)}else D.text().then(this.zI5.bind(this),this.tj.bind(this))}; g.B.oF=function(D){if(this.S){if(this.X&&D.value)this.response.push(D.value);else if(!this.X){var X=D.value?D.value:new Uint8Array(0);if(X=this.J.decode(X,{stream:!D.done}))this.response=this.responseText+=X}D.done?QC(this):M3(this);this.readyState==3&&XSn(this)}}; g.B.zI5=function(D){this.S&&(this.response=this.responseText=D,QC(this))}; g.B.jq=function(D){this.S&&(this.response=D,QC(this))}; g.B.tj=function(){this.S&&QC(this)}; g.B.setRequestHeader=function(D,X){this.eH.append(D,X)}; g.B.getResponseHeader=function(D){return this.G?this.G.get(D.toLowerCase())||"":""}; g.B.getAllResponseHeaders=function(){if(!this.G)return"";for(var D=[],X=this.G.entries(),M=X.next();!M.done;)M=M.value,D.push(M[0]+": "+M[1]),M=X.next();return D.join("\r\n")}; g.B.setCredentialsMode=function(D){this.D=D}; Object.defineProperty(Xe.prototype,"withCredentials",{get:function(){return this.D==="include"}, set:function(D){this.setCredentialsMode(D?"include":"same-origin")}});g.Bs.prototype.toString=function(){var D=[],X=this.D;X&&D.push(wY(X,bus,!0),":");var M=this.S;if(M||X=="file")D.push("//"),(X=this.K)&&D.push(wY(X,bus,!0),"@"),D.push(g.A4(M).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M=this.Y,M!=null&&D.push(":",String(M));if(M=this.G)this.S&&M.charAt(0)!="/"&&D.push("/"),D.push(wY(M,M.charAt(0)=="/"?eE5:REd,!0));(M=this.U.toString())&&D.push("?",M);(M=this.X)&&D.push("#",wY(M,IsR));return D.join("")}; g.Bs.prototype.resolve=function(D){var X=this.clone(),M=!!D.D;M?g.hl(X,D.D):M=!!D.K;M?X.K=D.K:M=!!D.S;M?g.Um(X,D.S):M=D.Y!=null;var Q=D.G;if(M)g.H5(X,D.Y);else if(M=!!D.G){if(Q.charAt(0)!="/")if(this.S&&!this.G)Q="/"+Q;else{var h=X.G.lastIndexOf("/");h!=-1&&(Q=X.G.slice(0,h+1)+Q)}h=Q;if(h==".."||h==".")Q="";else if(g.ub(h,"./")||g.ub(h,"/.")){Q=zC(h,"/");h=h.split("/");for(var H=[],t=0;t1||H.length==1&&H[0]!="")&&H.pop(), Q&&t==h.length&&H.push("")):(H.push(q),Q=!0)}Q=H.join("/")}else Q=h}M?X.G=Q:M=D.U.toString()!=="";M?tl(X,D.U.clone()):M=!!D.X;M&&(X.X=D.X);return X}; g.Bs.prototype.clone=function(){return new g.Bs(this)}; var bus=/[#\/\?@]/g,REd=/[#\?:]/g,eE5=/[#\?]/g,tnR=/[#\?@]/g,IsR=/#/g;g.B=q3.prototype;g.B.add=function(D,X){LC(this);this.Y=null;D=sx(this,D);var M=this.S.get(D);M||this.S.set(D,M=[]);M.push(X);this.G=this.G+1;return this}; g.B.remove=function(D){LC(this);D=sx(this,D);return this.S.has(D)?(this.Y=null,this.G=this.G-this.S.get(D).length,this.S.delete(D)):!1}; g.B.clear=function(){this.S=this.Y=null;this.G=0}; g.B.isEmpty=function(){LC(this);return this.G==0}; g.B.forEach=function(D,X){LC(this);this.S.forEach(function(M,Q){M.forEach(function(h){D.call(X,h,Q,this)},this)},this)}; g.B.HX=function(){LC(this);for(var D=Array.from(this.S.values()),X=Array.from(this.S.keys()),M=[],Q=0;Q0?String(D[0]):X}; g.B.toString=function(){if(this.Y)return this.Y;if(!this.S)return"";for(var D=[],X=Array.from(this.S.keys()),M=0;M>>3;H.Y!=1&&H.Y!=2&&H.Y!=15&&VC(H,t,q,"unexpected tag");H.S=1;H.G=0;H.U=0} function M(w){H.U++;H.U==5&&w&240&&VC(H,t,q,"message length too long");H.G|=(w&127)<<(H.U-1)*7;w&128||(H.S=2,H.K=0,typeof Uint8Array!=="undefined"?H.D=new Uint8Array(H.G):H.D=Array(H.G),H.G==0&&h())} function Q(w){H.D[H.K++]=w;H.K==H.G&&h()} function h(){if(H.Y<15){var w={};w[H.Y]=H.D;H.J.push(w)}H.S=0} for(var H=this,t=D instanceof Array?D:new Uint8Array(D),q=0;q0?D:null};$m.prototype.isInputValid=function(){return this.S===null}; $m.prototype.L2=function(){return this.S}; $m.prototype.uJ=function(){return!1}; $m.prototype.parse=function(D){this.S!==null&&aTW(this,D,"stream already broken");var X=null;try{var M=this.Y;M.Y||KdW(M,D,"stream already broken");M.S+=D;var Q=Math.floor(M.S.length/4);if(Q==0)var h=null;else{try{var H=DLp(M.S.slice(0,Q*4))}catch(t){KdW(M,M.S,t.message)}M.G+=Q*4;M.S=M.S.slice(Q*4);h=H}X=h===null?null:this.U.parse(h)}catch(t){aTW(this,D,t.message)}this.G+=D.length;return X};g.B=Z1.prototype;g.B.isInputValid=function(){return this.D!=3}; g.B.L2=function(){return this.eH}; g.B.done=function(){return this.D===2}; g.B.uJ=function(){return!1}; g.B.parse=function(D){function X(){for(;K0;)if(F=D[K++],H.K===4?H.K=0:H.K++,!F)break a;if(F==='"'&&!H.J){H.S=Q();break}if(F==="\\"&&!H.J&&(H.J=!0,F=D[K++], !F))break;if(H.J)if(H.J=!1,F==="u"&&(H.K=1),F=D[K++])continue;else break;q.lastIndex=K;F=q.exec(D);if(!F){K=D.length+1;break}K=F.index+1;F=D[F.index];if(!F)break}H.Y+=K-V;continue;case 9:if(!F)continue;F==="r"?H.S=10:Ux(H,D,K);continue;case 10:if(!F)continue;F==="u"?H.S=11:Ux(H,D,K);continue;case 11:if(!F)continue;F==="e"?H.S=Q():Ux(H,D,K);continue;case 12:if(!F)continue;F==="a"?H.S=13:Ux(H,D,K);continue;case 13:if(!F)continue;F==="l"?H.S=14:Ux(H,D,K);continue;case 14:if(!F)continue;F==="s"?H.S=15: Ux(H,D,K);continue;case 15:if(!F)continue;F==="e"?H.S=Q():Ux(H,D,K);continue;case 16:if(!F)continue;F==="u"?H.S=17:Ux(H,D,K);continue;case 17:if(!F)continue;F==="l"?H.S=18:Ux(H,D,K);continue;case 18:if(!F)continue;F==="l"?H.S=Q():Ux(H,D,K);continue;case 19:F==="."?H.S=20:Ux(H,D,K);continue;case 20:if("0123456789.eE+-".indexOf(F)!==-1)continue;else K--,H.Y--,H.S=Q();continue;default:Ux(H,D,K)}}} function Q(){var F=t.pop();return F!=null?F:1} function h(F){H.G>1||(F||(F=L===-1?H.U+D.substring(T,K):D.substring(L,K)),H.f$?H.X.push(F):H.X.push(JSON.parse(F)),L=K)} for(var H=this,t=H.R5,q=H.a5,w=D.length,T=0,L=-1,K=0;K0?(a=H.X,H.X=[],a):null}return null};c5.prototype.isInputValid=function(){return this.D===null}; c5.prototype.L2=function(){return this.D}; c5.prototype.uJ=function(){return!1}; c5.prototype.parse=function(D){function X(w){H.G=6;H.D="The stream is broken @"+H.S+"/"+t+". Error: "+w+". With input:\n";throw Error(H.D);} function M(){H.Y=new Z1({T8F:!0,hM:!0})} function Q(w){if(w)for(var T=0;T1)&&X("extra status: "+w);H.X=!0;var T={};T[2]=w[0];H.U.push(T)}} for(var H=this,t=0;t0?(D=H.U,H.U=[],D):null};fC.prototype.Fm=function(){return this.S}; fC.prototype.getStatus=function(){return this.D}; fC.prototype.f$=function(D){D=D.target;try{if(D==this.S)a:{var X=g.lt(this.S),M=this.S.G,Q=this.S.getStatus(),h=g.x1(this.S);D=[];if(g.WP(this.S)instanceof Array){var H=g.WP(this.S);H.length>0&&H[0]instanceof Uint8Array&&(this.eH=!0,D=H)}if(!(X<3||X==3&&!h&&D.length==0))if(Q=Q==200||Q==206,X==4&&(M==8?S9(this,7):M==7?S9(this,8):Q||S9(this,3)),this.G||(this.G=Fds(this.S),this.G==null&&S9(this,5)),this.D>2)Ex(this);else{if(D.length>this.Y){var t=D.length;M=[];try{if(this.G.uJ())for(var q=0;qthis.Y){q=h.slice(this.Y);this.Y=h.length;try{var T=this.G.parse(q);T!=null&&this.U&&this.U(T)}catch(L){S9(this,5);Ex(this);break a}}X==4?(h.length!= 0||this.eH?S9(this,2):S9(this,4),Ex(this)):S9(this,1)}}}catch(L){S9(this,6),Ex(this)}};g.B=Vn5.prototype;g.B.addListener=function(D,X){GO(this,D,X);return this}; g.B.removeListener=function(D,X){var M=this.G[D];M&&g.X_(M,X);(D=this.S[D])&&g.X_(D,X);return this}; g.B.once=function(D,X){var M=this.S[D];M||(M=[],this.S[D]=M);M.push(X);return this}; g.B.aJR=function(D){var X=this.G.data;X&&$bs(D,X);(X=this.S.data)&&$bs(D,X);this.S.data=[]}; g.B.H2C=function(){switch(this.Y.getStatus()){case 1:yC(this,"readable");break;case 5:case 6:case 4:case 7:case 3:yC(this,"error");break;case 8:yC(this,"close");break;case 2:yC(this,"end")}};BgR.prototype.serverStreaming=function(D,X,M,Q){var h=this,H=D.substring(0,D.length-Q.name.length);return y2p(function(t){var q=t.hU,w=t.getMetadata(),T=c22(h,!1);w=fTo(h,w,T,H+q.getName());var L=S$n(T,q.G,!0);t=q.S(t.e8);T.send(w,"POST",t);return L},this.GG).call(this,Q.X(X,M))};P0o.prototype.create=function(D,X,M){var Q=this.S,h=this.G+"/$rpc/google.internal.waa.v1.Waa/Create";X=X||{};M=M===void 0?{}:M;return Ny_(Q,h,D,X,n3W,M)};var v3d,dy5,rM_,fRW,SP9,mRR,dko,bPH,wMH,dQs,Cw2,V_W,UDW,iup,gw2,o3p,EOn,Cum,oY9,$Tp,b6,zLs,nYi;v3d=new P5(45739196);dy5=new P5(45739198);rM_=new P5(45739197);fRW=new mT(45737488,0);SP9=new mT(45737489,0);mRR=new P5(45733514);dko=new P5(45732791);bPH=new P5(45728572);wMH=new P5(45737482);dQs=new P5(45732704);Cw2=new P5(45731083);V_W=new P5(45728553);UDW=new P5(45735874);iup=new P5(45734191);gw2=new P5(45735523);o3p=new mT(45735428,4E3);EOn=new P5(45725537);Cum=new P5(45727949);oY9=new P5(45728181); $Tp=new P5(45733155);b6=new P5(45732481);zLs=new P5(45732775);g.OuR=new P5(45734776);nYi=new P5(45729215);var Ils=new mT(45725542,0),gOi=new mT(45739023,0),Rg2=new mT(45725543,0),nO9=new mT(45725539,0),eg_=new mT(45725541,0),bcH=new mT(45725540,0),mTi=new mT(45725538,0),Pi_=new function(D,X,M,Q){this.bY=D;this.Go=X;this.defaultValue=Q;this.Sn="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",sH("0"));var eio="://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(" "),Ri2=/\bocr\b/;var gqs=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.U(vqo,p1);g.U(dbH,p1);g.U(e9,p1);e9.prototype.getName=function(){return xQ(this,1)}; e9.prototype.getOptions=function(){return oG(this,dbH,3)}; e9.prototype.clearOptions=function(){return V2(this,3)};g.U(Rn,p1);g.B=Rn.prototype;g.B.getName=function(){return xQ(this,1)}; g.B.getOptions=function(){return oG(this,vqo,3)}; g.B.clearOptions=function(){return V2(this,3)}; g.B.qW=function(){return Wl(this,6)}; g.B.Ew=function(D){DX(this,6,D)};var C01=function(D){return function(X){X=JSON.parse(X);if(!Array.isArray(X))throw Error("Expected jspb data to be an array, got "+bW(X)+": "+X);Mv(X,34);return new D(X)}}(Rn);var oq_=Symbol();var pSH=Symbol();Object.assign({},{attributes:{},handleError:function(D){throw D;}},{ZZC:!0, pkF:!0,iZj:Xj1,lUC:Xj1,We4:My1,Fej:!1,quf:!1,yf$:!1,obj:!0,V9$:D4d,kPC:!1,LsF:!1,q$y:!1});var gY=null,dY=!1,DN_=1,ke1=Symbol("SIGNAL"),w2={version:0,Wpj:0,xk:!1,producers:void 0,kF:void 0,jF:void 0,Dh:void 0,Q4:!1,Lt:!1,xJ:!1,kind:"unknown",ES:function(){return!1}, kV:function(){}, Kg:function(){}, N82:function(){}};var T7=Symbol("UNSET"),Lc=Symbol("COMPUTING"),Kc=Symbol("ERRORED");Object.assign({},w2,{value:T7,xk:!0,error:null,V3:In,kind:"computed",ES:function(D){return D.value===T7||D.value===Lc}, kV:function(D){if(D.value===Lc)throw Error("");var X=D.value;D.value=Lc;var M=J2m(D),Q=!1;try{var h=D.ZO();v5(null);Q=X!==T7&&X!==Kc&&h!==Kc&&D.V3(X,h)}catch(H){h=Kc,D.error=H}finally{v5(M),D&&Wdd(D)}Q?D.value=X:(D.value=h,D.version++)}});Object.assign({},w2,{xJ:!0,Lt:!0,xk:!0,kind:"effect"});var zii=Object.assign({},w2,{V3:In,value:void 0,kind:"signal"});Object.assign({},w2,{value:T7,xk:!0,error:null,V3:In,kind:"linkedSignal",ES:function(D){return D.value===T7||D.value===Lc}, kV:function(D){if(D.value===Lc)throw Error("");var X=D.value;D.value=Lc;var M=J2m(D);try{var Q=D.source();var h=D.ZO(Q,X===T7||X===Kc?void 0:{source:D.PE$,value:X});D.PE$=Q}catch(H){h=Kc,D.error=H}finally{v5(M),D&&Wdd(D)}X!==T7&&h!==Kc&&D.V3(X,h)?D.value=X:(D.value=h,D.version++)}});Object.assign({},w2,{xJ:!0,Lt:!1,Kg:function(D){D.schedule!==null&&D.schedule(D.CR$)}, Jfs:function(){}});g.U(CC,g.Ks);CC.prototype.dispose=function(){window.removeEventListener("offline",this.Y);window.removeEventListener("online",this.Y);this.rV.zN(this.D);delete CC.instance}; CC.prototype.Yh=function(){return this.S}; CC.prototype.f6=function(){var D=this;this.D=this.rV.cI(function(){var X;return g.r(function(M){if(M.S==1)return D.S?((X=window.navigator)==null?0:X.onLine)?M.D4(3):g.I(M,on(D),3):g.I(M,on(D),3);D.f6();g.HZ(M)})},3E4)};g.U(Mwn,p1);var xVd=YYR(Mwn,[0,Xy,Dyd,C4m,Xy,-2,C4m,rOn]);pC.prototype.set=function(D,X){X=X===void 0?!0:X;0<=D&&D<52&&Number.isInteger(D)&&this.data[D]!==X&&(this.data[D]=X,this.S=-1)}; pC.prototype.get=function(D){return!!this.data[D]};var Ym;g.Ah(g.xm,g.O);g.B=g.xm.prototype;g.B.start=function(){this.stop();this.U=!1;var D=h2H(this),X=HmH(this);D&&!X&&this.G.mozRequestAnimationFrame?(this.S=g.ti(this.G,"MozBeforePaint",this.Y),this.G.mozRequestAnimationFrame(null),this.U=!0):this.S=D&&X?D.call(this.G,this.Y):this.G.setTimeout(LWW(this.Y),20)}; g.B.stop=function(){if(this.isActive()){var D=h2H(this),X=HmH(this);D&&!X&&this.G.mozRequestAnimationFrame?TW(this.S):D&&X?X.call(this.G,this.S):this.G.clearTimeout(this.S)}this.S=null}; g.B.isActive=function(){return this.S!=null}; g.B.Pd=function(){this.U&&this.S&&TW(this.S);this.S=null;this.X.call(this.D,g.CG())}; g.B.Yy=function(){this.stop();g.xm.vP.Yy.call(this)};g.Ah(g.W5,g.O);g.B=g.W5.prototype;g.B.fA=0;g.B.Yy=function(){g.W5.vP.Yy.call(this);this.stop();delete this.S;delete this.G}; g.B.start=function(D){this.stop();this.fA=g.g3(this.Y,D!==void 0?D:this.i$)}; g.B.stop=function(){this.isActive()&&g.E8.clearTimeout(this.fA);this.fA=0}; g.B.isActive=function(){return this.fA!=0}; g.B.yW=function(){this.fA=0;this.S&&this.S.call(this.G)};g.U(g.uh,g.O);g.B=g.uh.prototype;g.B.Rd=function(D){this.Y=arguments;this.kR||this.G?this.S=!0:j9(this)}; g.B.stop=function(){this.kR&&(g.E8.clearTimeout(this.kR),this.kR=null,this.S=!1,this.Y=null)}; g.B.pause=function(){this.G++}; g.B.resume=function(){this.G--;this.G||!this.S||this.kR||(this.S=!1,j9(this))}; g.B.Yy=function(){g.O.prototype.Yy.call(this);this.stop()};g.DP.prototype[Symbol.iterator]=function(){return this}; g.DP.prototype.next=function(){var D=this.S.next();return{value:D.done?void 0:this.G.call(void 0,D.value),done:D.done}};g.Ah(g.wV,g.Ks);g.B=g.wV.prototype;g.B.isPlaying=function(){return this.S==1}; g.B.isPaused=function(){return this.S==-1}; g.B.Ez=function(){this.F1("begin")}; g.B.Nk=function(){this.F1("end")}; g.B.onFinish=function(){this.F1("finish")}; g.B.onStop=function(){this.F1("stop")}; g.B.F1=function(D){this.dispatchEvent(D)};var p$2=xf(function(){var D=g.m7("DIV"),X=g.Sq?"-webkit":Hq?"-moz":null,M="transition:opacity 1s linear;";X&&(M+=X+"-transition:opacity 1s linear;");X=Dun({style:M});if(D.nodeType===1&&/^(script|style)$/i.test(D.tagName))throw Error("");D.innerHTML=eX(X);return g.tw(D.firstChild,"transition")!=""});g.Ah(T2,g.wV);g.B=T2.prototype;g.B.play=function(){if(this.isPlaying())return!1;this.Ez();this.F1("play");this.startTime=g.CG();this.S=1;if(p$2())return g.Q_(this.G,this.X),this.Y=g.g3(this.SWF,void 0,this),!0;this.WM(!1);return!1}; g.B.SWF=function(){g.Ft(this.G);qs2(this.G,this.J);g.Q_(this.G,this.U);this.Y=g.g3((0,g.iW)(this.WM,this,!1),this.D*1E3)}; g.B.stop=function(){this.isPlaying()&&this.WM(!0)}; g.B.WM=function(D){g.Q_(this.G,"transition","");g.E8.clearTimeout(this.Y);g.Q_(this.G,this.U);this.endTime=g.CG();this.S=0;if(D)this.onStop();else this.onFinish();this.Nk()}; g.B.Yy=function(){this.stop();T2.vP.Yy.call(this)}; g.B.pause=function(){};var T4W={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};L6("Element","attributes")||L6("Node","attributes");L6("Element","innerHTML")||L6("HTMLElement","innerHTML");L6("Node","nodeName");L6("Node","nodeType");L6("Node","parentNode");L6("Node","childNodes");L6("HTMLElement","style")||L6("Element","style");L6("HTMLStyleElement","sheet");var Vw9=s3o("getPropertyValue"),$Ns=s3o("setProperty");L6("Element","namespaceURI")||L6("Node","namespaceURI");var Fpn={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var c7R,Y4i,UNn,Zmn,fi1;c7R=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]");Y4i=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.AM1=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.K6=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]");UNn=/^http:\/\/.*/;g.Y3i=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Zmn=/\s+/;fi1=/[\d\u06f0-\u06f9]/;F3.prototype.yj=function(){return new VP(this.G())}; F3.prototype[Symbol.iterator]=function(){return new $6(this.G())}; F3.prototype.S=function(){return new $6(this.G())}; g.U(VP,g.bG);VP.prototype.next=function(){return this.G.next()}; VP.prototype[Symbol.iterator]=function(){return new $6(this.G)}; VP.prototype.S=function(){return new $6(this.G)}; g.U($6,F3);$6.prototype.next=function(){return this.Y.next()};ZP.prototype.clone=function(){return new ZP(this.S,this.J,this.Y,this.D,this.U,this.X,this.G,this.K)}; ZP.prototype.equals=function(D){return this.S==D.S&&this.J==D.J&&this.Y==D.Y&&this.D==D.D&&this.U==D.U&&this.X==D.X&&this.G==D.G&&this.K==D.K};cC.prototype.clone=function(){return new cC(this.start,this.end)};(function(){if(koR){var D=/Windows NT ([0-9.]+)/;return(D=D.exec(g.Qm()))?D[1]:"0"}return $7?(D=/1[0|1][_.][0-9_.]+/,(D=D.exec(g.Qm()))?D[0].replace(/_/g,"."):"10"):g.XP?(D=/Android\s+([^\);]+)(\)|;)/,(D=D.exec(g.Qm()))?D[1]:""):HIH||tyW||NOW?(D=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(D=D.exec(g.Qm()))?D[1].replace(/_/g,"."):""):""})();var Edd=function(){if(g.h0)return f6(/Firefox\/([0-9.]+)/);if(g.s5||g.Jg||g.nT)return x_i;if(g.Xu){if(kZ()||u7()){var D=f6(/CriOS\/([0-9.]+)/);if(D)return D}return f6(/Chrome\/([0-9.]+)/)}if(g.ah&&!kZ())return f6(/Version\/([0-9.]+)/);if(uE||j6){if(D=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Qm()))return D[1]+"."+D[2]}else if(g.bS)return(D=f6(/Android\s+([0-9.]+)/))?D:f6(/Version\/([0-9.]+)/);return""}();g.Ah(g.E5,g.O);g.B=g.E5.prototype;g.B.subscribe=function(D,X,M){var Q=this.G[D];Q||(Q=this.G[D]=[]);var h=this.X;this.S[h]=D;this.S[h+1]=X;this.S[h+2]=M;this.X=h+3;Q.push(h);return h}; g.B.unsubscribe=function(D,X,M){if(D=this.G[D]){var Q=this.S;if(D=D.find(function(h){return Q[h+1]==X&&Q[h+2]==M}))return this.Ag(D)}return!1}; g.B.Ag=function(D){var X=this.S[D];if(X){var M=this.G[X];this.U!=0?(this.Y.push(D),this.S[D+1]=function(){}):(M&&g.X_(M,D),delete this.S[D],delete this.S[D+1],delete this.S[D+2])}return!!X}; g.B.publish=function(D,X){var M=this.G[D];if(M){var Q=Array(arguments.length-1),h=arguments.length,H;for(H=1;H0&&this.U==0)for(;M=this.Y.pop();)this.Ag(M)}}return H!=0}return!1}; g.B.clear=function(D){if(D){var X=this.G[D];X&&(X.forEach(this.Ag,this),delete this.G[D])}else this.S.length=0,this.G={}}; g.B.Yy=function(){g.E5.vP.Yy.call(this);this.clear();this.Y.length=0};g.yP.prototype.set=function(D,X){X===void 0?this.S2.remove(D):this.S2.set(D,g.o7(X))}; g.yP.prototype.get=function(D){try{var X=this.S2.get(D)}catch(M){return}if(X!==null)try{return JSON.parse(X)}catch(M){throw"Storage: Invalid value was encountered";}}; g.yP.prototype.remove=function(D){this.S2.remove(D)};g.Ah(PC,g.yP);PC.prototype.set=function(D,X){PC.vP.set.call(this,D,mNR(X))}; PC.prototype.yJ=function(D){D=PC.vP.get.call(this,D);if(D===void 0||D instanceof Object)return D;throw"Storage: Invalid value was encountered";}; PC.prototype.get=function(D){if(D=this.yJ(D)){if(D=D.data,D===void 0)throw"Storage: Invalid value was encountered";}else D=void 0;return D};g.Ah(mZ,PC);mZ.prototype.set=function(D,X,M){if(X=mNR(X)){if(M){if(M=M.length)return g.h6;var h=M.key(X++);if(D)return g.ei(h);h=M.getItem(h);if(typeof h!=="string")throw"Storage mechanism: Invalid value was encountered";return g.ei(h)}; return Q}; g.B.clear=function(){R9(this);this.S.clear()}; g.B.key=function(D){R9(this);return this.S.key(D)};g.Ah(I9,eu);g.Ah(e21,eu);g.Ah(gV,bH);gV.prototype.set=function(D,X){this.G.set(this.S+D,X)}; gV.prototype.get=function(D){return this.G.get(this.S+D)}; gV.prototype.remove=function(D){this.G.remove(this.S+D)}; gV.prototype.yj=function(D){var X=this.G[Symbol.iterator](),M=this,Q=new g.bG;Q.next=function(){var h=X.next();if(h.done)return h;for(h=h.value;h.slice(0,M.S.length)!=M.S;){h=X.next();if(h.done)return h;h=h.value}return g.ei(D?h.slice(M.S.length):M.G.get(h))}; return Q};dV.prototype.getValue=function(){return this.G}; dV.prototype.clone=function(){return new dV(this.S,this.G)};g.B=rV.prototype;g.B.Bx=function(D,X){var M=this.S;M.push(new dV(D,X));D=M.length-1;X=this.S;for(M=X[D];D>0;){var Q=D-1>>1;if(X[Q].S>M.S)X[D]=X[Q],D=Q;else break}X[D]=M}; g.B.remove=function(){var D=this.S,X=D.length,M=D[0];if(!(X<=0)){if(X==1)D.length=0;else{D[0]=D.pop();D=0;X=this.S;for(var Q=X.length,h=X[D];D>1;){var H=D*2+1,t=D*2+2;H=th.S)break;X[D]=X[H];D=H}X[D]=h}return M.getValue()}}; g.B.pV=function(){for(var D=this.S,X=[],M=D.length,Q=0;Q>>16&65535|0;for(var H;M!==0;){H=M>2E3?2E3:M;M-=H;do h=h+X[Q++]|0,D=D+h|0;while(--H);h%=65521;D%=65521}return h|D<<16|0};for(var BG={},ar,GAH=[],Fy=0;Fy<256;Fy++){ar=Fy;for(var zEp=0;zEp<8;zEp++)ar=ar&1?3988292384^ar>>>1:ar>>>1;GAH[Fy]=ar}BG=function(D,X,M,Q){M=Q+M;for(D^=-1;Q>>8^GAH[(D^X[Q])&255];return D^-1};var Q1={};Q1={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 z2=[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],ju=[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],MI1=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],lis=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Nf=Array(576);p6(Nf);var qf=Array(60);p6(qf);var uH=Array(512);p6(uH);var G2=Array(256);p6(G2);var k6=Array(29);p6(k6);var Dr=Array(30);p6(Dr);var j3R,Dmi,XPd,ug9=!1;var SL;SL=[new fB(0,0,0,0,function(D,X){var M=65535;for(M>D.GL-5&&(M=D.GL-5);;){if(D.Wb<=1){Zr(D);if(D.Wb===0&&X===0)return 1;if(D.Wb===0)break}D.D1+=D.Wb;D.Wb=0;var Q=D.kc+M;if(D.D1===0||D.D1>=Q)if(D.Wb=D.D1-Q,D.D1=Q,w1(D,!1),D.JR.wp===0)return 1;if(D.D1-D.kc>=D.nm-262&&(w1(D,!1),D.JR.wp===0))return 1}D.Bx=0;if(X===4)return w1(D,!0),D.JR.wp===0?3:4;D.D1>D.kc&&w1(D,!1);return 1}), new fB(4,4,8,4,UD),new fB(4,5,16,8,UD),new fB(4,6,32,32,UD),new fB(4,4,16,16,cG),new fB(8,16,32,32,cG),new fB(8,16,128,128,cG),new fB(8,32,128,256,cG),new fB(32,128,258,1024,cG),new fB(32,258,258,4096,cG)];var kVn={};kVn=function(){this.input=null;this.qb=this.Db=this.FZ=0;this.output=null;this.ZE=this.wp=this.uC=0;this.msg="";this.state=null;this.As=2;this.L6=0};var Q7W=Object.prototype.toString; ED.prototype.push=function(D,X){var M=this.JR,Q=this.options.chunkSize;if(this.ended)return!1;var h=X===~~X?X:X===!0?4:0;typeof D==="string"?M.input=gdo(D):Q7W.call(D)==="[object ArrayBuffer]"?M.input=new Uint8Array(D):M.input=D;M.FZ=0;M.Db=M.input.length;do{M.wp===0&&(M.output=new O5.f0(Q),M.uC=0,M.wp=Q);D=z29(M,h);if(D!==1&&D!==0)return this.Nk(D),this.ended=!0,!1;if(M.wp===0||M.Db===0&&(h===4||h===2))if(this.options.to==="string"){var H=O5.gW(M.output,M.uC);X=H;H=H.length;if(H<65537&&(X.subarray&& Wzp||!X.subarray))X=String.fromCharCode.apply(null,O5.gW(X,H));else{for(var t="",q=0;q0||M.wp===0)&&D!==1);if(h===4)return(M=this.JR)&&M.state?(Q=M.state.status,Q!==42&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==113&&Q!==666?D=hB(M,-2):(M.state=null,D=Q===113?hB(M,-3):0)):D=-2,this.Nk(D),this.ended=!0,D===0;h===2&&(this.Nk(0),M.wp=0);return!0}; ED.prototype.Nk=function(D){D===0&&(this.result=this.options.to==="string"?this.chunks.join(""):O5.Ac(this.chunks));this.chunks=[];this.err=D;this.msg=this.JR.msg};var PG="@@redux/INIT"+y1(),wP_="@@redux/REPLACE"+y1();var T3n=typeof Symbol==="function"&&Symbol.observable||"@@observable";var kAR=[0,zBo,-3,Dl];g.U(au2,p1);var c0p=YYR(au2,[0,Xy,k9d,z_,zBo,z_,-1,Dl,zBo,Dl,-1,Xy,Dl,k9d,kA,kAR,z_,-1,Dl]);var U5s=2108003975;var ukn=function(D,X){return function(){var M=new OR2(D,X,eZ);return function(){return M}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var e7p=new g.bq("adInfoDialogEndpoint");var LF5=new g.bq("adPingingEndpoint");var fJ2=new g.bq("crossDeviceProgressCommand");var Oi=new g.bq("actionCompanionAdRenderer");var Oz=new g.bq("adActionInterstitialRenderer");var jgn=new g.bq("adDurationRemainingRenderer");var FQ=new g.bq("adHoverTextButtonRenderer");var ngn=new g.bq("adInfoDialogRenderer");var xw=new g.bq("adMessageRenderer");var Vg=new g.bq("adPreviewRenderer");var AX=new g.bq("adsEngagementPanelRenderer");var mdm=new g.bq("dismissablePanelTextPortraitImageRenderer");var tD=new g.bq("adsEngagementPanelSectionListViewModel");var D5b=new g.bq("flyoutCtaRenderer");var py=new g.bq("imageCompanionAdRenderer");var oX=new g.bq("instreamAdPlayerOverlayRenderer");var we2=new g.bq("instreamSurveyAdBackgroundImageRenderer");var az=new g.bq("instreamSurveyAdPlayerOverlayRenderer");var Dh=new g.bq("instreamSurveyAdRenderer"),Kn=new g.bq("instreamSurveyAdSingleSelectQuestionRenderer"),sE=new g.bq("instreamSurveyAdMultiSelectQuestionRenderer"),VI=new g.bq("instreamSurveyAdAnswerRenderer"),Xs_=new g.bq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var uA=new g.bq("instreamVideoAdRenderer");var M2n=new g.bq("textOverlayAdContentRenderer"),QiB=new g.bq("enhancedTextOverlayAdContentRenderer"),h9B=new g.bq("imageOverlayAdContentRenderer");var C9=new g.bq("playerOverlayLayoutRenderer");var p9=new g.bq("videoInterstitialButtonedCenteredLayoutRenderer");var IB5=new g.bq("aboveFeedAdLayoutRenderer");var gUR=new g.bq("belowPlayerAdLayoutRenderer");var RC2=new g.bq("inPlayerAdLayoutRenderer");var vU_=new g.bq("inPlayerOrganicOverlayAdLayoutRenderer");var Qg=new g.bq("playerBytesAdLayoutRenderer");var TS=new g.bq("playerBytesSequenceItemAdLayoutRenderer");var wD=new g.bq("playerUnderlayAdLayoutRenderer");var jk=new g.bq("adIntroRenderer");var zR=new g.bq("playerBytesSequentialLayoutRenderer");var afo=new g.bq("slidingTextPlayerOverlayRenderer");var XQ=new g.bq("surveyTextInterstitialRenderer");var hD=new g.bq("videoAdTrackingRenderer");var SgW=new g.bq("videoInterstitialCenteredLayoutViewModel");var Hon=new g.bq("simpleAdBadgeRenderer");var WQ=new g.bq("skipAdRenderer"),t2C=new g.bq("skipButtonRenderer");var Ln=new g.bq("adSlotRenderer");var NU=new g.bq("squeezebackPlayerSidePanelRenderer");var NRt=new g.bq("timedPieCountdownRenderer");var ia=new g.bq("adAvatarViewModel");var ov=new g.bq("adBadgeViewModel");var CV=new g.bq("adButtonViewModel");var qmh=new g.bq("adDetailsLineViewModel");var wsh=new g.bq("adDisclosureBannerViewModel");var TRG=new g.bq("adPodIndexViewModel");var LHK=new g.bq("imageBackgroundViewModel");var siK=new g.bq("adGridCardCollectionViewModel");var KHn=new g.bq("adGridCardTextViewModel");var a_h=new g.bq("adPreviewViewModel");var FH8=new g.bq("playerAdAvatarLockupCardButtonedViewModel");var V2W=new g.bq("skipAdButtonViewModel");var $5K=new g.bq("skipAdViewModel");var BR_=new g.bq("timedPieCountdownViewModel");var ZoC=new g.bq("visitAdvertiserLinkViewModel");var YD=new g.bq("bannerImageLayoutViewModel");var lA=new g.bq("topBannerImageTextIconButtonedLayoutViewModel");var JX=new g.bq("adsEngagementPanelLayoutViewModel");var qU=new g.bq("displayUnderlayTextGridCardsLayoutViewModel");g.bf=new g.bq("browseEndpoint");var U5Z=new g.bq("confirmDialogEndpoint");var eG1=new g.bq("commandContext");var YDs=new g.bq("rawColdConfigGroup");var ABp=new g.bq("rawHotConfigGroup");g.Tq=new g.bq("commandExecutorCommand");g.U(F$1,p1);var oK5={Bo$:0,No5:1,lDj:32,jt5:61,YuF:67,fUs:103,eWR:86,ih5:42,WS5:60,vYf:62,V3f:73,qjF:76,Suj:88,RWC:90,aUI:99,oYI:98,GPI:100,KS4:102,hWs:41,nbj:69,UkC:70,bZR:71,StI:2,RL$:27,ANDROID:3,rCz:54,sPy:14,Xhz:91,QPz:55,gwH:24,uVC:20,Hmz:18,M04:21,TY$:104,CBz:30,cCz:29,ACH:28,JLR:101,t0z:34,Omy:36,BY5:38,IOS:5,qIR:15,Yif:92,Kgj:40,j42:25,z5y:17,e55:19,fqR:64,SiF:66,R5f:26,h5f:22,nER:33,UTR:68,bjC:35,GL$:53,aqy:37,VRf:39,aDH:7,hnH:57,nY5:43,bh4:59,UQ5:93,dL$:74,LS4:75,xQR:85,DQI:65,stj:80,Qts:8,GY4:10, uYj:58,gY2:63,rLR:72,JCF:23,Dk2:11,rfj:13,bk$:12,Yj2:16,p8R:56,zW4:31,jfR:77,HVj:84,FSy:87,MR$:89,BUC:94,wWf:95};g.U(eL,p1);eL.prototype.RF=function(){return xQ(this,3)}; eL.prototype.b3=function(){return xQ(this,5)}; eL.prototype.zJ=function(D){return uY(this,5,D)};g.U(R1,p1);g.U(VIs,p1);g.U(I1,p1);g.B=I1.prototype;g.B.getDeviceId=function(){return xQ(this,6)}; g.B.LB=function(D){var X=cl(this,9,Ie,3,!0);Nv(X,D);return X[D]}; g.B.getPlayerType=function(){return Wl(this,36)}; g.B.setHomeGroupInfo=function(D){return pQ(this,VIs,81,D)}; g.B.clearLocationPlayabilityToken=function(){return V2(this,89)};g.U(g1,p1);g1.prototype.getValue=function(){return xQ(this,dT(this,OB9,2))}; var OB9=[2,3,4,5,6];g.U(vG,p1);vG.prototype.setTrackingParams=function(D){return V2(this,1,s6W(D,!1))};g.U(d1,p1);g.U(r1,p1);r1.prototype.LB=function(D){var X=cl(this,5,g$,3,!0);Nv(X,D);return X[D]};g.U(iq,p1);iq.prototype.getToken=function(){return zF(this,2)}; iq.prototype.setToken=function(D){return uY(this,2,D)};g.U(o1,p1);o1.prototype.setSafetyMode=function(D){return DX(this,5,D)};g.U(CB,p1);CB.prototype.tp=function(D){return pQ(this,I1,1,D)};var Bx=new g.bq("thumbnailLandscapePortraitRenderer");g.cdW=new g.bq("changeEngagementPanelVisibilityAction");var Him=new g.bq("continuationCommand");g.f_W=new g.bq("openPopupAction");var gD1=new g.bq("signalAction");g.$O=new g.bq("webCommandMetadata");var px5=new g.bq("metadataBadgeRenderer");var hKR=new g.bq("signalServiceEndpoint");var nj=new g.bq("innertubeCommand");var pJp=new g.bq("loggingDirectives");var j7s={Fd2:"EMBEDDED_PLAYER_MODE_UNKNOWN",ik2:"EMBEDDED_PLAYER_MODE_DEFAULT",Wd$:"EMBEDDED_PLAYER_MODE_PFP",lTf:"EMBEDDED_PLAYER_MODE_PFL"};var Vpi=new g.bq("channelThumbnailEndpoint");var Fx_=new g.bq("embeddedPlayerErrorMessageRenderer");var Lx5=new g.bq("embeddedPlayerOverlayVideoDetailsRenderer"),$Q1=new g.bq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),B6n=new g.bq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var ows=new g.bq("embedsInfoPanelRenderer");var TU2=new g.bq("feedbackEndpoint");var Smr=new g.bq("callToActionButtonViewModel");var EWZ=new g.bq("interactionLoggingCommandMetadata");var x3p={Zh$:"WEB_DISPLAY_MODE_UNKNOWN",IDF:"WEB_DISPLAY_MODE_BROWSER",EY4:"WEB_DISPLAY_MODE_MINIMAL_UI",kYf:"WEB_DISPLAY_MODE_STANDALONE",w85:"WEB_DISPLAY_MODE_FULLSCREEN"};g.U(OD,p1);OD.prototype.getPlayerType=function(){return Wl(this,7)}; OD.prototype.DW=function(){return xQ(this,19)}; OD.prototype.setVideoId=function(D){return uY(this,19,D)};g.U(pB,p1);g.U(AB,p1);g.U(Yx,p1); var ydy=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var P1W=new g.bq("loggingContext");g.U(lq,p1);g.U(JB,p1);JB.prototype.DW=function(){return zF(this,dT(this,jP,1))}; JB.prototype.setVideoId=function(D){return gT(this,1,jP,Yl(D))}; JB.prototype.getPlaylistId=function(){return zF(this,dT(this,jP,2))}; var jP=[1,2];g.U(g.xx,p1);g.xx.prototype.jX=rR(0);var m5h=new g.bq("dismissPlayerOverlayCommand");var Hy=new g.bq("changeKeyedMarkersVisibilityCommand");var nWB=new g.bq("changeMarkersVisibilityCommand");var YEs=new g.bq("loadMarkersCommand");var boC=new g.bq("suggestedActionDataViewModel");var r51=new g.bq("timelyActionViewModel");var dOs=new g.bq("timelyActionsOverlayViewModel");var hVi=new g.bq("productListItemRenderer");var e9G=new g.bq("shoppingOverlayRenderer");var s2m=new g.bq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var R9G=new g.bq("adFeedbackEndpoint");var I_8=new g.bq("menuEndpoint");var qQs=new g.bq("phoneDialerEndpoint");var tri=new g.bq("sendSmsEndpoint");var T6_=new g.bq("copyTextEndpoint");var gWG=new g.bq("shareEndpoint"),vWt=new g.bq("shareEntityEndpoint"),d58=new g.bq("shareEntityServiceEndpoint"),rdK=new g.bq("webPlayerShareEntityServiceEndpoint");g.IU=new g.bq("urlEndpoint");g.QM=new g.bq("watchEndpoint");var ior=new g.bq("watchPlaylistEndpoint");g.oWB=new g.bq("offlineOrchestrationActionCommand");var aY1=new g.bq("compositeVideoOverlayRenderer");var C1Z=new g.bq("miniplayerRenderer");var N6m=new g.bq("paidContentOverlayRenderer");var AX1=new g.bq("playerMutedAutoplayOverlayRenderer"),Yis=new g.bq("playerMutedAutoplayEndScreenRenderer");var rXi=new g.bq("unserializedPlayerResponse"),DUd=new g.bq("unserializedPlayerResponse");var Ooa=new g.bq("playlistEditEndpoint");var BM;g.$w=new g.bq("buttonRenderer");BM=new g.bq("toggleButtonRenderer");var yvH=new g.bq("counterfactualRenderer");var psK=new g.bq("resolveUrlCommandMetadata");var Adb=new g.bq("modifyChannelNotificationPreferenceEndpoint");var TX9=new g.bq("pingingEndpoint");var Yma=new g.bq("unsubscribeEndpoint");g.eo=new g.bq("subscribeButtonRenderer");var l_Z=new g.bq("subscribeEndpoint");var kYs=new g.bq("buttonViewModel");var Pm2=new g.bq("qrCodeRenderer");var OZs={J2R:"LIVING_ROOM_APP_MODE_UNSPECIFIED",XWf:"LIVING_ROOM_APP_MODE_MAIN",PXR:"LIVING_ROOM_APP_MODE_KIDS",Oj$:"LIVING_ROOM_APP_MODE_MUSIC",CXF:"LIVING_ROOM_APP_MODE_UNPLUGGED",y2s:"LIVING_ROOM_APP_MODE_GAMING"};var dUR=new g.bq("autoplaySwitchButtonRenderer");var e1,uFW,tWm,wvn;e1=new g.bq("decoratedPlayerBarRenderer");uFW=new g.bq("chapteredPlayerBarRenderer");tWm=new g.bq("multiMarkersPlayerBarRenderer");wvn=new g.bq("chapterRenderer");g.Mam=new g.bq("markerRenderer");var a3m=new g.bq("decoratedPlayheadRenderer");var CjW=new g.bq("desktopOverlayConfigRenderer");var nUm=new g.bq("engagementPanelSectionListRenderer");var inm=new g.bq("gatedActionsOverlayViewModel");var tai=new g.bq("heatMarkerRenderer");var Hki=new g.bq("heatmapRenderer");var ADi=new g.bq("watchToWatchTransitionRenderer");var Kx2=new g.bq("playlistPanelRenderer");var Jdy=new g.bq("productUpsellSuggestedActionViewModel");var x5K=new g.bq("suggestedActionTimeRangeTrigger"),WHn=new g.bq("suggestedActionsRenderer"),Gpy=new g.bq("suggestedActionRenderer");var NCo=new g.bq("timedMarkerDecorationRenderer");var f_1=new g.bq("cipher");var iy5=new g.bq("playerVars");var Xxo=new g.bq("playerVars");var Zl=g.E8.window,z9C,kp_,WG=(Zl==null?void 0:(z9C=Zl.yt)==null?void 0:z9C.config_)||(Zl==null?void 0:(kp_=Zl.ytcfg)==null?void 0:kp_.data_)||{};g.PZ("yt.config_",WG);var uq=[];var PtH=/^[\w.]*$/,fuW={q:!0,search_query:!0},ci2=String(Mq);var La=new function(){var D=window.document;this.S=window;this.G=D}; g.PZ("yt.ads_.signals_.getAdSignalsString",function(D){return Qj(Ka(D))});g.CG();var n1s="XMLHttpRequest"in g.E8?function(){return new XMLHttpRequest}:null;var unb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.xW(unb);var Iui={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"},Yy5="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.xW(unb)),Cts=!1,rip=yj;g.U(na,YB);Ry.prototype.then=function(D,X,M){return this.S?this.S.then(D,X,M):this.Y===1&&D?(D=D.call(M,this.G))&&typeof D.then==="function"?D:vX(D):this.Y===2&&X?(D=X.call(M,this.G))&&typeof D.then==="function"?D:Iy(D):this}; Ry.prototype.getValue=function(){return this.G}; Ry.prototype.$goog_Thenable=!0;var dc=!1;var lD=uE||j6;var kW_=/^([0-9\.]+):([0-9\.]+)$/;g.U(aH,YB);aH.prototype.name="BiscottiError";g.U(Kw,YB);Kw.prototype.name="BiscottiMissingError";var Xgn={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},FP=null;var PW_=g.Ws(["data-"]),Thd={};var jib=0,Vd=g.Sq?"webkit":Hq?"moz":g.s5?"ms":g.nT?"o":"",D_8=g.mn("ytDomDomGetNextId")||function(){return++jib}; g.PZ("ytDomDomGetNextId",D_8);var awH={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};fw.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; fw.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; fw.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var SJ=g.E8.ytEventsEventsListeners||{};g.PZ("ytEventsEventsListeners",SJ);var $6n=g.E8.ytEventsEventsCounter||{count:0};g.PZ("ytEventsEventsCounter",$6n);var cpo=xf(function(){var D=!1;try{var X=Object.defineProperty({},"passive",{get:function(){D=!0}}); window.addEventListener("test",null,X)}catch(M){}return D}),Bhn=xf(function(){var D=!1; try{var X=Object.defineProperty({},"capture",{get:function(){D=!0}}); window.addEventListener("test",null,X)}catch(M){}return D});var Uw;Uw=window;g.fi=Uw.ytcsi&&Uw.ytcsi.now?Uw.ytcsi.now:Uw.performance&&Uw.performance.timing&&Uw.performance.now&&Uw.performance.timing.navigationStart?function(){return Uw.performance.timing.navigationStart+Uw.performance.now()}:function(){return(new Date).getTime()};g.Ah(nw,g.O);nw.prototype.eH=function(D){D.S===void 0&&F_2(D);var X=D.S;D.G===void 0&&F_2(D);this.S=new g.hn(X,D.G)}; nw.prototype.GP=function(){return this.S||new g.hn}; nw.prototype.f$=function(){if(this.S){var D=(0,g.fi)();if(this.U!=0){var X=this.X,M=this.S,Q=X.x-M.x;X=X.y-M.y;Q=Math.sqrt(Q*Q+X*X)/(D-this.U);this.G[this.Y]=Math.abs((Q-this.D)/this.D)>.5?1:0;for(M=X=0;M<4;M++)X+=this.G[M]||0;X>=3&&this.J();this.D=Q}this.U=D;this.X=this.S;this.Y=(this.Y+1)%4}}; nw.prototype.Yy=function(){g.ZS(this.K);g.yd(this.R5)};g.U(b2,g.O);b2.prototype.N=function(D,X,M,Q,h){M=g.DS((0,g.iW)(M,Q||this.R2));M={target:D,name:X,callback:M};var H;h&&cpo()&&(H={passive:!0});D.addEventListener(X,M.callback,H);this.X.push(M);return M}; b2.prototype.PC=function(D){for(var X=0;X=l.kE)||S.S.version>=A||S.S.objectStoreNames.contains(v)||n.push(v)}w=n;if(w.length===0){c.D4(5);break}T=Object.keys(M.options.Af); L=q.objectStoreNames();if(M.DM.options.version+1)throw a.close(),M.Y=!1,NYW(M,F);return c.return(a);case 8:throw X(), K instanceof Error&&!g.cX("ytidb_async_stack_killswitch")&&(K.stack=K.stack+"\n"+t.substring(t.indexOf("\n")+1)),Fq(K,M.name,"",(V=M.options.version)!=null?V:-1);}})} function X(){M.S===Q&&(M.S=void 0)} var M=this;if(!this.Y)throw NYW(this);if(this.S)return this.S;var Q,h={blocking:function(H){H.close()}, closed:X,wx2:X,upgrade:this.options.upgrade};return this.S=Q=D()};var Ol=new oh("YtIdbMeta",{Af:{databases:{kE:1}},upgrade:function(D,X){X(1)&&g.yu(D,"databases",{keyPath:"actualName"})}});var Wc,x9=new function(){}(new function(){});new g.wh;g.U(k9,oh);k9.prototype.G=function(D,X,M){M=M===void 0?{}:M;return(this.options.shared?V9d:FTo)(D,X,Object.assign({},M))}; k9.prototype.delete=function(D){D=D===void 0?{}:D;return(this.options.shared?U3o:$31)(this.name,D)};var wZa={},f1H=g.uD("ytGcfConfig",{Af:(wZa.coldConfigStore={kE:1},wZa.hotConfigStore={kE:1},wZa),shared:!1,upgrade:function(D,X){X(1)&&(g.Rh(g.yu(D,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Rh(g.yu(D,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.U(Dg,g.O);Dg.prototype.Yy=function(){for(var D=g.e(this.G),X=D.next();!X.done;X=D.next()){var M=this.S;X=M.indexOf(X.value);X>=0&&M.splice(X,1)}this.G.length=0;g.O.prototype.Yy.call(this)};ts.prototype.zJ=function(D){this.hotHashData=D;g.PZ("yt.gcf.config.hotHashData",this.hotHashData||null)};var TK8=typeof TextEncoder!=="undefined"?new TextEncoder:null,LZp=TK8?function(D){return TK8.encode(D)}:function(D){D=g.ox(D); for(var X=new Uint8Array(D.length),M=0;M=X?!1:!0}; g.B.Sc=function(){var D=this;if(!nW(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.MW.G3("QUEUED",this.cP).then(function(X){X&&!D.Vk(X,D.pR)?D.rV.cI(function(){return g.r(function(M){if(M.S==1)return X.id===void 0?M.D4(2):g.I(M,D.MW.Ao(X.id,D.cP),2);D.Sc();g.HZ(M)})}):D.hg.Yh()&&D.Ha()})};var Rf;var xfH={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534};var sah={},b6s=g.uD("ServiceWorkerLogsDatabase",{Af:(sah.SWHealthLog={kE:1},sah),shared:!0,upgrade:function(D,X){X(1)&&g.Rh(g.yu(D,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var vO={},dEW=0;var df;iQ.prototype.requestComplete=function(D,X){X&&(this.G=!0);D=this.removeParams(D);this.S.get(D)||this.S.set(D,X)}; iQ.prototype.isEndpointCFR=function(D){D=this.removeParams(D);return(D=this.S.get(D))?!1:D===!1&&this.G?!0:null}; iQ.prototype.removeParams=function(D){return D.split("?")[0]}; iQ.prototype.removeParams=iQ.prototype.removeParams;iQ.prototype.isEndpointCFR=iQ.prototype.isEndpointCFR;iQ.prototype.requestComplete=iQ.prototype.requestComplete;iQ.getInstance=of;g.U(CW,g.Ks);g.B=CW.prototype;g.B.Yh=function(){return this.S.Yh()}; g.B.i9=function(D){this.S.S=D}; g.B.tT=function(){var D=window.navigator.onLine;return D===void 0?!0:D}; g.B.BG=function(){this.G=!0}; g.B.listen=function(D,X){return this.S.listen(D,X)}; g.B.UZ=function(D){D=on(this.S,D);D.then(function(X){g.cX("use_cfr_monitor")&&of().requestComplete("generate_204",X)}); return D}; CW.prototype.sendNetworkCheckRequest=CW.prototype.UZ;CW.prototype.listen=CW.prototype.listen;CW.prototype.enableErrorFlushing=CW.prototype.BG;CW.prototype.getWindowStatus=CW.prototype.tT;CW.prototype.networkStatusHint=CW.prototype.i9;CW.prototype.isNetworkAvailable=CW.prototype.Yh;CW.getInstance=o6m;g.U(g.O6,g.Ks);g.O6.prototype.Yh=function(){var D=g.mn("yt.networkStatusManager.instance.isNetworkAvailable");return D?D.bind(this.G)():!0}; g.O6.prototype.i9=function(D){var X=g.mn("yt.networkStatusManager.instance.networkStatusHint").bind(this.G);X&&X(D)}; g.O6.prototype.UZ=function(D){var X=this,M;return g.r(function(Q){M=g.mn("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(X.G);return g.cX("skip_network_check_if_cfr")&&of().isEndpointCFR("generate_204")?Q.return(new Promise(function(h){var H;X.i9(((H=window.navigator)==null?void 0:H.onLine)||!0);h(X.Yh())})):M?Q.return(M(D)):Q.return(!0)})};var pW;g.U(As,bQ);As.prototype.writeThenSend=function(D,X){X||(X={});X=lQ(D,X);g.xg()||(this.S=!1);bQ.prototype.writeThenSend.call(this,D,X)}; As.prototype.sendThenWrite=function(D,X,M){X||(X={});X=lQ(D,X);g.xg()||(this.S=!1);bQ.prototype.sendThenWrite.call(this,D,X,M)}; As.prototype.sendAndWrite=function(D,X){X||(X={});X=lQ(D,X);g.xg()||(this.S=!1);bQ.prototype.sendAndWrite.call(this,D,X)}; As.prototype.awaitInitialization=function(){return this.Y.promise};var Y5s=g.E8.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.PZ("ytNetworklessLoggingInitializationOptions",Y5s);g.Js.prototype.isReady=function(){!this.config_&&Ch_()&&(this.config_=g.q$());return!!this.config_};var KnG,Gz,kr;KnG=g.E8.ytPubsubPubsubInstance||new g.E5;Gz=g.E8.ytPubsubPubsubSubscribedKeys||{};kr=g.E8.ytPubsubPubsubTopicToKeys||{};g.zz=g.E8.ytPubsubPubsubIsSynchronous||{};g.E5.prototype.subscribe=g.E5.prototype.subscribe;g.E5.prototype.unsubscribeByKey=g.E5.prototype.Ag;g.E5.prototype.publish=g.E5.prototype.publish;g.E5.prototype.clear=g.E5.prototype.clear;g.PZ("ytPubsubPubsubInstance",KnG);g.PZ("ytPubsubPubsubTopicToKeys",kr);g.PZ("ytPubsubPubsubIsSynchronous",g.zz); g.PZ("ytPubsubPubsubSubscribedKeys",Gz);var zbR={};g.U(Ne,g.O);Ne.prototype.append=function(D){if(!this.G)throw Error("This does not support the append operation");D=D.Ly();this.Ly().appendChild(D)}; g.U(qe,Ne);qe.prototype.Ly=function(){return this.S};g.U(wX,g.O);wX.prototype.onTouchStart=function(D){this.J=!0;this.G=D.touches.length;this.S.isActive()&&(this.S.stop(),this.D=!0);D=D.touches;this.X=j9i(this,D)||D.length!=1;var X=D.item(0);this.X||!X?this.eH=this.K=Infinity:(this.K=X.clientX,this.eH=X.clientY);for(X=this.Y.length=0;X=0)}if(X||D&&Math.pow(D.clientX-this.K,2)+Math.pow(D.clientY-this.eH,2)>25)this.U=!0}; wX.prototype.onTouchEnd=function(D){var X=D.changedTouches;X&&this.J&&this.G==1&&!this.U&&!this.D&&!this.X&&j9i(this,X)&&(this.f$=D,this.S.start());this.G=D.touches.length;this.G===0&&(this.U=this.J=!1,this.Y.length=0);this.D=!1};var T$=Date.now().toString();var F4={};var UB=Symbol("injectionDeps");$e.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Q1m.prototype.resolve=function(D){return D instanceof B1?c1(this,D.key,[],!0):c1(this,D,[])};var fe;var EB=window;var ne=g.cX("web_enable_lifecycle_monitoring")&&yc()!==0,s1R=g.cX("web_enable_lifecycle_monitoring");wG_.prototype.cancel=function(){for(var D=g.e(this.S),X=D.next();!X.done;X=D.next())X=X.value,X.jobId===void 0||X.tQ||this.scheduler.zN(X.jobId),X.tQ=!0;this.G.resolve()};g.B=bU.prototype;g.B.install=function(D){this.plugins.push(D);return this}; g.B.uninstall=function(){var D=this;g.BZ.apply(0,arguments).forEach(function(X){X=D.plugins.indexOf(X);X>-1&&D.plugins.splice(X,1)})}; g.B.transition=function(D,X){var M=this;ne&&N1p(this.state);var Q=this.transitions.find(function(H){return Array.isArray(H.from)?H.from.find(function(t){return t===M.state&&H.to===D}):H.from===M.state&&H.to===D}); if(Q){this.G&&(T1s(this.G),this.G=void 0);K22(this,D,X);this.state=D;ne&&P1(this.state);Q=Q.action.bind(this);var h=this.plugins.filter(function(H){return H[D]}).map(function(H){return H[D]}); Q(L29(this,h),X)}else throw Error("no transition specified from "+this.state+" to "+D);}; g.B.lky=function(D){var X=g.BZ.apply(1,arguments);g.u2();for(var M=g.e(D),Q=M.next(),h={};!Q.done;h={qY:void 0},Q=M.next())h.qY=Q.value,gpm(function(H){return function(){RI(H.qY.name);gX(function(){return H.qY.callback.apply(H.qY,g.xW(X))}); II(H.qY.name)}}(h))}; g.B.iFH=function(D){var X=g.BZ.apply(1,arguments),M,Q,h,H;return g.r(function(t){t.S==1&&(g.u2(),M=g.e(D),Q=M.next(),h={});if(t.S!=3){if(Q.done)return t.D4(0);h.Vl=Q.value;h.N$=void 0;H=function(q){return function(){RI(q.Vl.name);var w=gX(function(){return q.Vl.callback.apply(q.Vl,g.xW(X))}); C_(w)?q.N$=g.cX("web_lifecycle_error_handling_killswitch")?w.then(function(){II(q.Vl.name)}):w.then(function(){II(q.Vl.name)},function(T){qDH(T); II(q.Vl.name)}):II(q.Vl.name)}}(h); gpm(H);return h.N$?g.I(t,h.N$,3):t.D4(3)}h={Vl:void 0,N$:void 0};Q=M.next();return t.D4(2)})}; g.B.C_=function(D){var X=g.BZ.apply(1,arguments),M=this,Q=D.map(function(h){return{eP:function(){RI(h.name);gX(function(){return h.callback.apply(h,g.xW(X))}); II(h.name)}, priority:eP(M,h)}}); Q.length&&(this.G=new wG_(Q))}; g.Ad.Object.defineProperties(bU.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var dX;g.U(v1,bU);v1.prototype.D=function(D,X){var M=this;this.S=g.zj(0,function(){M.currentState==="application_navigating"&&M.transition("none")},5E3); D(X==null?void 0:X.event)}; v1.prototype.X=function(D,X){this.S&&(g.Ox.zN(this.S),this.S=null);D(X==null?void 0:X.event)};var N8=[];g.PZ("yt.logging.transport.getScrapedGelPayloads",function(){return N8});rX.prototype.storePayload=function(D,X){D=iU(D);this.store[D]?this.store[D].push(X):(this.G={},this.store[D]=[X]);this.S++;g.cX("more_accurate_gel_parser")&&(X=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(X));return D}; rX.prototype.smartExtractMatchingEntries=function(D){if(!D.keys.length)return[];for(var X=Ce(this,D.keys.splice(0,1)[0]),M=[],Q=0;Q=0){Q=!1;break a}}Q=!0}Q&&(X=eM(X))&&this.Pc(X)}}; g.B.Za=function(D){return D}; g.B.onTouchStart=function(D){this.a5.onTouchStart(D)}; g.B.onTouchMove=function(D){this.a5.onTouchMove(D)}; g.B.onTouchEnd=function(D){if(this.a5)this.a5.onTouchEnd(D)}; g.B.Pc=function(D){this.layoutId?this.I5.executeCommand(D,this.layoutId):(D=new g.ys("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ET(D))}; g.B.createServerVe=function(D,X){this.api.createServerVe(D,this);this.api.setTrackingParams(D,X)}; g.B.logVisibility=function(D,X){this.api.hasVe(D)&&this.api.logVisibility(D,X,this.interactionLoggingClientData)}; g.B.Yy=function(){this.clear(null);this.PC(this.q5);for(var D=g.e(this.sR),X=D.next();!X.done;X=D.next())this.PC(X.value);g.Hr.prototype.Yy.call(this)};g.U(nO,tU); nO.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);this.S=X;if(X.text==null&&X.icon==null)g.P3(Error("ButtonRenderer did not have text or an icon set."));else{switch(X.style||null){case "STYLE_UNKNOWN":D="ytp-ad-button-link";break;default:D=null}D!=null&&g.hN(this.element,D);X.text!=null&&(D=g.q1(X.text),g.kR(D)||(this.element.setAttribute("aria-label",D),this.Y=new g.Hr({L:"span",C:"ytp-ad-button-text",Gs:D}),g.p(this,this.Y),this.Y.rC(this.element)));X.accessibilityData&&X.accessibilityData.accessibilityData&& X.accessibilityData.accessibilityData.label&&!g.kR(X.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",X.accessibilityData.accessibilityData.label);X.icon!=null&&(X=mA(X.icon,this.U),X!=null&&(this.G=new g.Hr({L:"span",C:"ytp-ad-button-icon",V:[X]}),g.p(this,this.G)),this.D?Iu(this.element,this.G.element,0):this.G.rC(this.element))}}; nO.prototype.clear=function(){this.hide()}; nO.prototype.onClick=function(D){tU.prototype.onClick.call(this,D);D=g.e(axs(this));for(var X=D.next();!X.done;X=D.next())X=X.value,this.layoutId?this.I5.executeCommand(X,this.layoutId):g.ET(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.U(bI,g.O);bI.prototype.Yy=function(){this.G&&g.yd(this.G);this.S.clear();e7=null;g.O.prototype.Yy.call(this)}; bI.prototype.register=function(D,X){X&&this.S.set(D,X)}; var e7=null;g.U(gq,tU); gq.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);D=X.hoverText||null;X=X.button&&g.Z(X.button,g.$w)||null;X==null?g.ET(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,void 0,void 0,void 0,void 0,this.Y),g.p(this,this.button),this.button.init(uC("button"),X,this.macros),D&&this.button.element.setAttribute("aria-label",g.q1(D)),this.button.rC(this.element),this.K&&!g.QP(this.button.element, "ytp-ad-clickable")&&g.hN(this.button.element,"ytp-ad-clickable"),this.Y&&g.hN(this.button.element,"ytp-ad-hover-text-button--clean-player"),D&&(this.G=new g.Hr({L:"div",C:"ytp-ad-hover-text-container"}),this.D&&(X=new g.Hr({L:"div",C:"ytp-ad-hover-text-callout"}),X.rC(this.G.element),g.p(this,X)),g.p(this,this.G),this.G.rC(this.element),X=RU(D),Iu(this.G.element,X,0)),this.show())}; gq.prototype.hide=function(){this.button&&this.button.hide();this.G&&this.G.hide();tU.prototype.hide.call(this)}; gq.prototype.show=function(){this.button&&this.button.show();tU.prototype.show.call(this)};g.U(dq,tU); dq.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);M=(D=X.thumbnail)&&vr(D)||"";g.kR(M)?Math.random()<.01&&g.P3(Error("Found AdImage without valid image URL")):(this.S?g.Q_(this.element,"backgroundImage","url("+M+")"):fR(this.element,{src:M}),fR(this.element,{alt:D&&D.accessibility&&D.accessibility.label||""}),X&&X.adRendererCommands&&X.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; dq.prototype.clear=function(){this.hide()};g.U(rq,tU);g.B=rq.prototype;g.B.hide=function(){tU.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.B.show=function(){this.Y=document.activeElement;tU.prototype.show.call(this);this.U.focus()}; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);this.G=X;X.dialogMessages||X.title!=null?X.confirmLabel==null?g.ET(Error("ConfirmDialogRenderer.confirmLabel was not set.")):X.cancelLabel==null?g.ET(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Bwi(this,X):g.ET(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.B.clear=function(){g.RH(this.S);this.hide()}; g.B.o_=function(){this.hide()}; g.B.FB=function(){var D=this.G.cancelEndpoint;D&&(this.layoutId?this.I5.executeCommand(D,this.layoutId):g.ET(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.B.pT=function(){var D=this.G.confirmNavigationEndpoint||this.G.confirmEndpoint;D&&(this.layoutId?this.I5.executeCommand(D,this.layoutId):g.ET(Error("Missing layoutId for confirm dialog.")));this.hide()};g.U(iI,tU);g.B=iI.prototype; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);this.Y=X;if(X.defaultText==null&&X.defaultIcon==null)g.ET(Error("ToggleButtonRenderer must have either text or icon set."));else if(X.defaultIcon==null&&X.toggledIcon!=null)g.ET(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(X.style){switch(X.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":D="ytp-ad-toggle-button-default-style";break;default:D=null}D!=null&&g.hN(this.U,D)}D={};X.defaultText? (M=g.q1(X.defaultText),g.kR(M)||(D.buttonText=M,this.api.W().experiments.Z4("a11y_h5_associate_survey_question")||this.S.setAttribute("aria-label",M),this.api.W().experiments.Z4("fix_h5_toggle_button_a11y")&&this.G.setAttribute("aria-label",M))):g.V_(this.L$,!1);X.defaultTooltip&&(D.tooltipText=X.defaultTooltip,this.S.hasAttribute("aria-label")||this.G.setAttribute("aria-label",X.defaultTooltip));X.defaultIcon?(M=mA(X.defaultIcon),this.updateValue("untoggledIconTemplateSpec",M),X.toggledIcon?(this.R5= !0,M=mA(X.toggledIcon),this.updateValue("toggledIconTemplateSpec",M)):(g.V_(this.K,!0),g.V_(this.D,!1)),g.V_(this.S,!1)):g.V_(this.G,!1);g.ef(D)||this.update(D);X.isToggled&&(g.hN(this.U,"ytp-ad-toggle-button-toggled"),this.toggleButton(X.isToggled));oU(this);this.N(this.element,"change",this.Pp);this.show()}}; g.B.onClick=function(D){this.sR.length>0&&(this.toggleButton(!this.isToggled()),this.Pp());tU.prototype.onClick.call(this,D)}; g.B.Pp=function(){g.qE(this.U,"ytp-ad-toggle-button-toggled",this.isToggled());for(var D=g.e(Zwp(this,this.isToggled())),X=D.next();!X.done;X=D.next())X=X.value,this.layoutId?this.I5.executeCommand(X,this.layoutId):g.ET(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);oU(this)}; g.B.clear=function(){this.hide()}; g.B.toggleButton=function(D){g.qE(this.U,"ytp-ad-toggle-button-toggled",D);this.S.checked=D;oU(this)}; g.B.isToggled=function(){return this.S.checked};g.U(CO,b2);CO.prototype.D=function(D){if(Array.isArray(D)){D=g.e(D);for(var X=D.next();!X.done;X=D.next())X=X.value,X instanceof UBp&&this.Y(X)}};g.U(OC,tU);g.B=OC.prototype;g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);X.reasons?X.confirmLabel==null?g.ET(Error("AdFeedbackRenderer.confirmLabel was not set.")):(X.cancelLabel==null&&g.P3(Error("AdFeedbackRenderer.cancelLabel was not set.")),X.title==null&&g.P3(Error("AdFeedbackRenderer.title was not set.")),Egp(this,X)):g.ET(Error("AdFeedbackRenderer.reasons were not set."))}; g.B.clear=function(){PJ(this.D);PJ(this.K);this.U.length=0;this.hide()}; g.B.hide=function(){this.S&&this.S.hide();this.G&&this.G.hide();tU.prototype.hide.call(this);this.Y&&this.Y.focus()}; g.B.show=function(){this.S&&this.S.show();this.G&&this.G.show();this.Y=document.activeElement;tU.prototype.show.call(this);this.D.focus()}; g.B.AU=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.B.Nj$=function(){this.hide()}; pO.prototype.Ly=function(){return this.S.element}; pO.prototype.getCommand=function(){return this.G}; pO.prototype.isChecked=function(){return this.Y.checked};g.U(AU,rq);AU.prototype.o_=function(D){rq.prototype.o_.call(this,D);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; AU.prototype.FB=function(D){rq.prototype.FB.call(this,D);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; AU.prototype.pT=function(D){rq.prototype.pT.call(this,D);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.U(Yn,tU);g.B=Yn.prototype; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);this.D=X;if(X.dialogMessage==null&&X.title==null)g.ET(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{X.confirmLabel==null&&g.P3(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(D=X.closeOverlayRenderer&&g.Z(X.closeOverlayRenderer,g.$w)||null)this.S=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.p(this,this.S),this.S.init(uC("button"),D,this.macros),this.S.rC(this.element);X.title&&(D=g.q1(X.title),this.updateValue("title",D));if(X.adReasons)for(D=X.adReasons,M=0;M=this.uj?(this.R5.hide(),this.OR=!0,this.publish("i")):this.Y&&this.Y.isTemplated()&&(D=Math.max(0,Math.ceil((this.uj-D)/1E3)),D!=this.t$&&(xn(this.Y,{TIME_REMAINING:String(D)}),this.t$=D)))}};g.U(DJ,Wr);g.B=DJ.prototype; g.B.init=function(D,X,M){Wr.prototype.init.call(this,D,X,M);if(X.image&&X.image.thumbnail)if(X.headline)if(X.description)if((D=X.actionButton&&g.Z(X.actionButton,g.$w))&&D.navigationEndpoint){var Q=this.api.getVideoData(2);if(Q!=null)if(X.image&&X.image.thumbnail){var h=X.image.thumbnail.thumbnails;h!=null&&h.length>0&&g.kR(g.J4(h[0].url))&&(h[0].url=Q.profilePicture)}else g.P3(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Y.init(uC("ad-image"),X.image,M);this.D.init(uC("ad-text"), X.headline,M);this.U.init(uC("ad-text"),X.description,M);this.G.init(uC("button"),D,M);M=Jl(this.G.element);lh(this.G.element,M+" This link opens in new tab");this.R5=D.navigationEndpoint;this.api.FN()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.O7.bind(this));this.L$=X.startMs||0;GB(this)}else g.ET(Error("FlyoutCtaRenderer has no valid action button."));else g.ET(Error("FlyoutCtaRenderer has no description AdText."));else g.ET(Error("FlyoutCtaRenderer has no headline AdText.")); else g.P3(Error("FlyoutCtaRenderer has no image."))}; g.B.onClick=function(D){Wr.prototype.onClick.call(this,D);this.api.pauseVideo();!g.vD(this.G.element,D.target)&&this.R5&&(this.layoutId?this.I5.executeCommand(this.R5,this.layoutId):g.ET(Error("Missing layoutId for flyout cta.")))}; g.B.h_=function(){if(this.S){var D=this.S.getProgressState();(D&&D.current||this.uj)&&1E3*D.current>=this.L$&&(zB(this),g.tN(this.element,"ytp-flyout-cta-inactive"),this.G.element.removeAttribute("tabIndex"))}}; g.B.h2=function(){this.clear()}; g.B.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.O7.bind(this))}; g.B.show=function(){this.G&&this.G.show();Wr.prototype.show.call(this)}; g.B.hide=function(){this.G&&this.G.hide();Wr.prototype.hide.call(this)}; g.B.O7=function(D){D=="hidden"?this.show():this.hide()};g.U(XO,tU);g.B=XO.prototype; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);this.S=X;if(this.S.rectangle)for(D=this.S.likeButton&&g.Z(this.S.likeButton,BM),X=this.S.dislikeButton&&g.Z(this.S.dislikeButton,BM),this.Y.init(uC("toggle-button"),D,M),this.G.init(uC("toggle-button"),X,M),this.N(this.element,"change",this.CC),this.U.show(100),this.show(),M=g.e(this.S&&this.S.impressionCommands||[]),D=M.next();!D.done;D=M.next())D=D.value,this.layoutId?this.I5.executeCommand(D,this.layoutId):g.ET(Error("Missing layoutId for instream user sentiment."))}; g.B.clear=function(){this.hide()}; g.B.hide=function(){this.Y.hide();this.G.hide();tU.prototype.hide.call(this)}; g.B.show=function(){this.Y.show();this.G.show();tU.prototype.show.call(this)}; g.B.CC=function(){N4n(this.element,"ytp-ad-instream-user-sentiment-selected");this.S.postMessageAction&&this.api.ER("onYtShowToast",this.S.postMessageAction);this.U.hide()}; g.B.onClick=function(D){this.sR.length>0&&this.CC();tU.prototype.onClick.call(this,D)};g.U(MZ,g.O);g.B=MZ.prototype;g.B.Yy=function(){this.reset();g.O.prototype.Yy.call(this)}; g.B.reset=function(){g.RH(this.U);this.X=!1;this.S&&this.S.stop();this.D.stop();this.Y&&(this.Y=!1,this.J.play())}; g.B.start=function(){this.reset();this.U.N(this.G,"mouseover",this.d4,this);this.U.N(this.G,"mouseout",this.JG,this);this.f$&&(this.U.N(this.G,"focusin",this.d4,this),this.U.N(this.G,"focusout",this.JG,this));this.S?this.S.start():(this.X=this.Y=!0,g.Q_(this.G,{opacity:this.eH}))}; g.B.d4=function(){this.Y&&(this.Y=!1,this.J.play());this.D.stop();this.S&&this.S.stop()}; g.B.JG=function(){this.X?this.D.start():this.S&&this.S.start()}; g.B.Dx=function(){this.Y||(this.Y=!0,this.K.play(),this.X=!0)};var rrs=[new Q8("b.f_",0),new Q8("j.s_",2),new Q8("r.s_",4),new Q8("e.h_",6),new Q8("i.s_",8),new Q8("s.t_",10),new Q8("p.h_",12),new Q8("s.i_",14),new Q8("f.i_",16),new Q8("a.b_",18),new Q8("a.o_"),new Q8("g.o_",22),new Q8("p.i_",24),new Q8("p.m_"),new Q8("n.k_",20),new Q8("i.f_"),new Q8("a.s_"),new Q8("m.c_"),new Q8("n.h_",26),new Q8("o.p_"),new Q8("m.p_",28),new Q8("o.a_"),new Q8("d.p_"),new Q8("e.i_")].reduce(function(D,X){D[X.G]=X;return D},{});g.U(wm,Wr);g.B=wm.prototype; g.B.init=function(D,X,M){Wr.prototype.init.call(this,D,X,M);this.R5=X;(this.L$=ogW(this))&&g.P3(Error("hasAdControlInClickCommands_ is true."));if(!X||g.ef(X))g.ET(Error("SkipButtonRenderer was not specified or empty."));else if(!X.message||g.ef(X.message))g.ET(Error("SkipButtonRenderer.message was not specified or empty."));else if(D=this.D?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},X=this.api.W().T("delhi_modern_web_player_icons"),X=mA(D,!1,!1,X),X==null?g.ET(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+D.iconType+ ".")):(this.api.W().T("disable_touch_events_on_skip_button")&&(X.Z=Object.assign({},X.Z,{"aria-hidden":"true",xfz:"false"})),this.Y=new g.Hr({L:"button",gC:[this.D?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{L:"span",C:this.D?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[X]}]}),g.p(this,this.Y),this.Y.rC(this.U.element),this.G=new JU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,"ytp-ad-skip-button-text"),this.D&&this.G.element.classList.add("ytp-ad-skip-button-text-centered"), this.G.init(uC("ad-text"),this.R5.message,M),g.p(this,this.G),Iu(this.Y.element,this.G.element,0)),!this.api.W().T("disable_touch_events_on_skip_button")){var Q=Q===void 0?null:Q;M=this.api.W();!(this.sR.length>0)&&M.G&&(ma?0:"ontouchstart"in document.documentElement&&(fdp()||f7()))&&(this.PC(this.q5),Q&&this.PC(Q),this.sR=[this.N(this.element,"touchstart",this.onTouchStart,this),this.N(this.element,"touchmove",this.onTouchMove,this),this.N(this.element,"touchend",this.onTouchEnd,this)])}}; g.B.clear=function(){this.uj.reset();this.hide()}; g.B.hide=function(){this.U.hide();this.G&&this.G.hide();zB(this);Wr.prototype.hide.call(this)}; g.B.onClick=function(D){if(this.Y!=null){if(D){var X=D||window.event;X.returnValue=!1;X.preventDefault&&X.preventDefault()}var M;if(vgm(D,{contentCpn:((M=this.api.getVideoData(1))==null?void 0:M.clientPlaybackNonce)||""})===0)this.api.ER("onAbnormalityDetected");else if(Wr.prototype.onClick.call(this,D),this.publish("j"),this.api.ER("onAdSkip"),this.OR||!this.L$)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.B.Za=function(D){if(!this.OR)return this.L$&&Hb("SkipButton click commands not pruned while ALC exist"),D;var X,M=(X=g.Z(D,g.Tq))==null?void 0:X.commands;if(!M)return D;D=[];for(X=0;X=this.D&&C2_(this,!0)};g.U(sc,nO);sc.prototype.init=function(D,X,M){nO.prototype.init.call(this,D,X,M);D=!1;X.text!=null&&(D=g.q1(X.text),D=!g.kR(D));D?X.navigationEndpoint==null?g.P3(Error("No visit advertiser clickthrough provided in renderer,")):X.style!=="STYLE_UNKNOWN"?g.P3(Error("Button style was not a link-style type in renderer,")):this.show():g.P3(Error("No visit advertiser text was present in the renderer."))};g.U(Kd,tU); Kd.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);D=X.text;g.kR(N1(D))?g.P3(Error("SimpleAdBadgeRenderer has invalid or empty text")):(D&&D.text&&(X=D.text,this.Y&&!this.G&&(X=this.api.W(),X=D.text+" "+(X&&X.G?"\u2022":"\u00b7")),X={text:X,isTemplated:D.isTemplated},D.style&&(X.style=D.style),D.targetId&&(X.targetId=D.targetId),D=new JU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),D.init(uC("simple-ad-badge"),X,M),D.rC(this.element),g.p(this,D)),this.show())}; Kd.prototype.clear=function(){this.hide()};g.U(aW,jM);g.U(FO,g.Dq);g.B=FO.prototype;g.B.Gz=function(){return this.durationMs}; g.B.stop=function(){this.S&&this.handler.PC(this.S)}; g.B.Ja=function(D){this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:D.current};this.publish("h")}; g.B.getProgressState=function(){return this.G}; g.B.Xs=function(D){g.qZ(D,2)&&this.publish("g")};g.U(V8,g.Dq);g.B=V8.prototype;g.B.Gz=function(){return this.durationMs}; g.B.start=function(){this.S||(this.S=!0,this.timer.start())}; g.B.stop=function(){this.S&&(this.S=!1,this.timer.stop())}; g.B.Ja=function(){this.GC+=100;var D=!1;this.GC>this.durationMs&&(this.GC=this.durationMs,this.timer.stop(),D=!0);this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.GC/1E3};this.publish("h");D&&this.publish("g")}; g.B.getProgressState=function(){return this.G};g.U(Uc,Wr);g.B=Uc.prototype;g.B.init=function(D,X,M){Wr.prototype.init.call(this,D,X,M);var Q;if(X==null?0:(Q=X.templatedCountdown)==null?0:Q.templatedAdText){D=X.templatedCountdown.templatedAdText;if(!D.isTemplated){g.P3(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.G=new JU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);this.G.init(uC("ad-text"),D,{});this.G.rC(this.element);g.p(this,this.G)}this.show()}; g.B.clear=function(){this.hide()}; g.B.hide=function(){zB(this);Wr.prototype.hide.call(this)}; g.B.h2=function(){this.hide()}; g.B.h_=function(){if(this.S!=null){var D=this.S.getProgressState();if(D!=null&&D.current!=null&&this.G){var X=this.S instanceof FO?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:D.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.S instanceof V8?D.seekableEnd:this.api.getDuration(2,!1);D=D.current;var M,Q,h=((M=this.api.getVideoData())==null?0:(Q=M.gp)==null?0:Q.call(M))?Math.max(X-D,0):X-D;xn(this.G,{FORMATTED_AD_DURATION_REMAINING:String(g.$u(h)), TIME_REMAINING:String(Math.ceil(h))})}}}; g.B.show=function(){GB(this);Wr.prototype.show.call(this)};g.U(cb,JU);cb.prototype.onClick=function(D){JU.prototype.onClick.call(this,D);this.api.onAdUxClicked(this.componentType)};g.U(SU,tU);SU.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(D=X.content){g.dP(this.element,D);var M,Q;X=((M=X.interaction)==null?void 0:(Q=M.accessibility)==null?void 0:Q.label)||D;this.element.setAttribute("aria-label",X)}else g.ET(Error("AdSimpleAttributedString does not have text content"))}; SU.prototype.clear=function(){this.hide()}; SU.prototype.onClick=function(D){tU.prototype.onClick.call(this,D)};g.U(Ec,tU); Ec.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});(D=X.label)&&D.content&&!g.kR(D.content)?(this.adBadgeText.init(uC("ad-simple-attributed-string"),new fd(D)),(X=X.adPodIndex)&&X.content&&!g.kR(X.content)&&(this.S=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),this.S.rC(this.element),g.p(this,this.S),this.S.element.classList.add("ytp-ad-badge__pod-index"),this.S.init(uC("ad-simple-attributed-string"),new fd(X))),this.element.classList.add(this.G?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.ET(Error("No label is returned in AdBadgeViewModel."))}; Ec.prototype.show=function(){this.adBadgeText.show();var D;(D=this.S)==null||D.show();tU.prototype.show.call(this)}; Ec.prototype.hide=function(){this.adBadgeText.hide();var D;(D=this.S)==null||D.hide();tU.prototype.hide.call(this)};g.U(y8,tU);y8.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});(D=X.adPodIndex)&&D.content&&!g.kR(D.content)&&(this.S=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),this.S.rC(this.element),g.p(this,this.S),this.S.init(uC("ad-simple-attributed-string"),new fd(D)),X.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()}; y8.prototype.show=function(){var D;(D=this.S)==null||D.show();tU.prototype.show.call(this)}; y8.prototype.hide=function(){var D;(D=this.S)==null||D.hide();tU.prototype.hide.call(this)};g.U(Pb,tU); Pb.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(X!=null&&X.text){var M;if(((M=X.text)==null?0:M.content)&&!g.kR(X.text.content)){this.S=new g.Hr({L:"div",C:"ytp-ad-disclosure-banner__text",Gs:X.text.content});g.p(this,this.S);this.S.rC(this.element);if(this.api.W().T("enable_ad_disclosure_banner_a11y_fix")){var Q,h,H=(Q=X.interaction)==null?void 0:(h=Q.accessibility)==null?void 0:h.label;H||(H=X.text.content+" This link opens in new tab");lh(this.element,H)}else{var t;Q=((H= X.interaction)==null?void 0:(t=H.accessibility)==null?void 0:t.label)||X.text.content;this.element.setAttribute("aria-label",Q)}var q;if((q=X.interaction)==null?0:q.onTap)this.G=new g.Hr({L:"div",C:"ytp-ad-disclosure-banner__chevron",V:[g.sC()]}),g.p(this,this.G),this.G.rC(this.element),this.api.W().T("enable_ad_disclosure_banner_a11y_fix")&&(Al(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.Xg));this.show()}}else g.ET(Error("No banner text found in AdDisclosureBanner."))}; Pb.prototype.Xg=function(D){if(D.key==="Enter"||D.key===" ")D.preventDefault(),this.element.click()}; Pb.prototype.clear=function(){this.hide()};g.U(bd,g.Hr);bd.prototype.Ja=function(){var D=this.G.getProgressState(),X=D.seekableEnd;this.api.getPresentingPlayerType()===2&&(X=this.Y?this.Y/1E3:D.seekableEnd);this.progressBar.style.width=nd(new mM(D.seekableStart,X),D.current,0)*100+"%"}; bd.prototype.onStateChange=function(){g.iS(this.api.W())||(this.api.getPresentingPlayerType()===2?this.S===-1&&(this.show(),this.S=this.G.subscribe("h",this.Ja,this),this.Ja()):this.S!==-1&&(this.hide(),this.G.Ag(this.S),this.S=-1))};g.U(eU,tU); eU.prototype.init=function(D,X,M,Q){tU.prototype.init.call(this,D,X,M);if(X.skipOrPreviewRenderer){if(D=g.Z(X.skipOrPreviewRenderer,WQ))M=new Ld(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G,this.K),M.rC(this.yf),M.init(uC("skip-button"),D,this.macros),g.p(this,M);if(D=g.Z(X.skipOrPreviewRenderer,WQ))var h=D.skipOffsetMilliseconds}X.brandInteractionRenderer&&(D=X.brandInteractionRenderer.brandInteractionRenderer,M=new XO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5), M.rC(this.L$),M.init(uC("instream-user-sentiment"),D,this.macros),g.p(this,M));if(D=g.Z(X,D5b))if(D=g.Z(D,D5b))M=new DJ(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G,!!X.showWithoutLinkedMediaLayout),g.p(this,M),M.rC(this.D),M.init(uC("flyout-cta"),D,this.macros);Q=Q&&Q.videoAdDurationSeconds;X.adBadgeRenderer&&(M=X.adBadgeRenderer,D=g.Z(M,ov),D!=null?(M=new Ec(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!1),g.p(this,M),M.rC(this.S),M.init(uC("ad-badge"), D,this.macros),this.Y=M.element):(D=M.simpleAdBadgeRenderer,D==null&&(D={text:{text:"Anuncio",isTemplated:!1}}),M=new Kd(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0),g.p(this,M),M.rC(this.S),M.init(uC("simple-ad-badge"),D,this.macros)));X.adPodIndex&&(D=g.Z(X.adPodIndex,TRG),D!=null&&(M=new y8(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,M),M.rC(this.S),M.init(uC("ad-pod-index"),D)));X.adDurationRemaining&&!X.showWithoutLinkedMediaLayout&&(D=X.adDurationRemaining.adDurationRemainingRenderer, D==null&&(D={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),Q=new Uc(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G,Q,!1),g.p(this,Q),Q.rC(this.S),Q.init(uC("ad-duration-remaining"),D,this.macros));X.adInfoRenderer&&(Q=g.Z(X.adInfoRenderer,FQ))&&(D=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.element,void 0,!1),g.p(this,D),this.Y!==null?this.S.insertBefore(D.element,this.Y.nextSibling):D.rC(this.S), D.init(uC("ad-info-hover-text-button"),Q,this.macros));X.visitAdvertiserRenderer&&(D=g.Z(X.visitAdvertiserRenderer,g.$w))&&(M=Y02(this)&&this.U?this.U:this.S)&&(Q=new sc(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,Q),Q.rC(M),Q.init(uC("visit-advertiser"),D,this.macros),Al(Q.element),D=Jl(Q.element),lh(Q.element,D+" This link opens in new tab"));!(Q=this.api.W())||g.d_(Q)||g.eO(Q)||Q.controlsType!="3"&&!Q.disableOrganicUi||(h=new bd(this.api,this.G,h,!1),h.rC(this.uj), g.p(this,h));X.adDisclosureBannerRenderer&&(X=g.Z(X.adDisclosureBannerRenderer,wsh))&&(h=new Pb(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),h.rC(this.R5),h.init(uC("ad-disclosure-banner"),X),g.p(this,h));this.api.W().T("enable_updated_html5_player_focus_style")&&g.hN(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; eU.prototype.clear=function(){this.hide()};g.gm.prototype.flush=function(D,X){D=D===void 0?[]:D;X=X===void 0?!1:X;if(g.cX("enable_client_streamz_web")){D=g.e(D);for(var M=D.next();!M.done;M=D.next())M=Z1s(M.value),this.S&&pQ(M,a3,2,this.S),M={serializedIncrementBatch:g.C7(M.Y())},g.Tm("streamzIncremented",M,{sendIsolatedPayload:X})}}; g.U(Jrm,g.gm);var klp=new Map;vb.prototype.set=function(D,X,M){M=M!==void 0?Date.now()+M:void 0;this.S.set(D,X,M)}; vb.prototype.get=function(D){return this.S.get(D)}; vb.prototype.remove=function(D){this.S.remove(D)};var WI9=null;var Cd=null,Oc=null,pd=null,jHd=null;g.PZ("yt.www.ads.eventcache.getLastCompanionData",function(){return Cd}); g.PZ("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.PZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Oc}); g.PZ("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return pd}); g.PZ("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return jHd});var Xc9=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Aq.prototype.handleResponse=function(D,X){if(!X)throw Error("request needs to be passed into ConsistencyService");var M,Q;X=((M=X.dL.context)==null?void 0:(Q=M.request)==null?void 0:Q.consistencyTokenJars)||[];var h;(D=(h=D.responseContext)==null?void 0:h.consistencyTokenJar)&&this.replace(X,D)}; Aq.prototype.replace=function(D,X){D=g.e(D);for(var M=D.next();!M.done;M=D.next())delete this.S[M.value.encryptedTokenJarContents];Qhm(this,X)};var ZGZ=window.location.hostname.split(".").slice(-2).join("."),PM;ld.getInstance=function(){PM=g.mn("yt.clientLocationService.instance");PM||(PM=new ld,g.PZ("yt.clientLocationService.instance",PM));return PM}; g.B=ld.prototype; g.B.setLocationOnInnerTubeContext=function(D){D.client||(D.client={});if(this.S)D.client.locationInfo||(D.client.locationInfo={}),D.client.locationInfo.latitudeE7=Math.floor(this.S.coords.latitude*1E7),D.client.locationInfo.longitudeE7=Math.floor(this.S.coords.longitude*1E7),D.client.locationInfo.horizontalAccuracyMeters=Math.round(this.S.coords.accuracy),D.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Y||this.locationPlayabilityToken)D.client.locationPlayabilityToken=this.Y|| this.locationPlayabilityToken}; g.B.handleResponse=function(D){var X;D=(X=D.responseContext)==null?void 0:X.locationPlayabilityToken;D!==void 0&&(this.locationPlayabilityToken=D,this.S=void 0,g.zZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Yu(this))&&this.localStorage.set("yt-location-playability-token",D,15552E3):g.iE("YT_CL",JSON.stringify({loctok:D}),15552E3,ZGZ,!0))}; g.B.clearLocationPlayabilityToken=function(D){D==="TVHTML5"?(this.localStorage=Yu(this))&&this.localStorage.remove("yt-location-playability-token"):g.Ca("YT_CL");this.Y=void 0;this.G!==-1&&(clearTimeout(this.G),this.G=-1)}; g.B.getCurrentPositionFromGeolocation=function(){var D=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var X=!1,M=1E4;g.zZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(X=!0,M=15E3);return new Promise(function(Q,h){navigator.geolocation.getCurrentPosition(function(H){D.S=H;Q(H)},function(H){h(H)},{enableHighAccuracy:X, maximumAge:0,timeout:M})})}; g.B.createUnpluggedLocationInfo=function(D){var X={};D=D.coords;if(D==null?0:D.latitude)X.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)X.longitudeE7=Math.floor(D.longitude*1E7);if(D==null?0:D.accuracy)X.locationRadiusMeters=Math.round(D.accuracy);return X}; g.B.createLocationInfo=function(D){var X={};D=D.coords;if(D==null?0:D.latitude)X.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)X.longitudeE7=Math.floor(D.longitude*1E7);return X};g.B=qln.prototype;g.B.contains=function(D){return Object.prototype.hasOwnProperty.call(this.S,D)}; g.B.get=function(D){if(this.contains(D))return this.S[D]}; g.B.set=function(D,X){this.S[D]=X}; g.B.HX=function(){return Object.keys(this.S)}; g.B.remove=function(D){delete this.S[D]};xu.prototype.getModuleId=function(D){return D.serviceId.getModuleId()}; xu.prototype.get=function(D){a:{var X=this.mappings.get(D.toString());switch(X.type){case "mapping":D=X.value;break a;case "factory":X=X.value();this.mappings.set(D.toString(),{type:"mapping",value:X});D=X;break a;default:D=mv(X)}}return D}; xu.prototype.registerService=function(D,X){this.mappings.set(D.toString(),{type:"mapping",value:X});return D}; new xu;var m0={},wci=(m0.WEB_UNPLUGGED="^unplugged/",m0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",m0.WEB_UNPLUGGED_OPS="^unplugged/",m0.WEB_UNPLUGGED_PUBLIC="^unplugged/",m0.WEB_CREATOR="^creator/",m0.WEB_KIDS="^kids/",m0.WEB_EXPERIMENTS="^experiments/",m0.WEB_MUSIC="^music/",m0.WEB_REMIX="^music/",m0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",m0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",m0);zq.prototype.D=function(D,X,M){X=X===void 0?{}:X;M=M===void 0?Tz:M;var Q={context:g.Jq(D.clickTrackingParams,!1,this.U)};var h=this.G(D);if(h){this.S(Q,h,X);var H;X=g.Gq(this.Y());(h=(H=g.Z(D.commandMetadata,g.$O))==null?void 0:H.apiUrl)&&(X=h);H=xmW(OZ(X));D=Object.assign({},{command:D},void 0);Q={input:H,tV:pa(H),dL:Q,config:D};Q.config.XM?Q.config.XM.identity=M:Q.config.XM={identity:M};return Q}M=new g.ys("Error: Failed to create Request from Command.",D);g.ET(M)}; g.Ad.Object.defineProperties(zq.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.U(ku,zq);g.U(ud,ku);ud.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",tV:pa("/getDatasyncIdsEndpoint","GET"),dL:{}}}; ud.prototype.Y=function(){return[]}; ud.prototype.G=function(){}; ud.prototype.S=function(){};var U_W={},Agi=(U_W.GET_DATASYNC_IDS=Wb(ud),U_W);var nc={},chh=(nc["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",nc["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",nc["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",nc["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",nc["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",nc["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",nc["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", nc["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",nc["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",nc["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",nc["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",nc["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",nc["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",nc["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",nc["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", nc["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",nc["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",nc["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",nc["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",nc["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",nc["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",nc["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", nc["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",nc.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",nc["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",nc["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",nc["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",nc["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",nc["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",nc["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", nc["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",nc["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",nc["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",nc["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",nc["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",nc["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",nc["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",nc["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",nc["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",nc["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",nc.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",nc["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",nc["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",nc["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",nc["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",nc["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",nc["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",nc["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",nc["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",nc["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",nc["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",nc["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",nc["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",nc["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",nc["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",nc["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",nc["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",nc["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",nc["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",nc["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",nc["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",nc["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", nc["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",nc["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",nc["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",nc["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",nc["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",nc["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",nc["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",nc["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",nc["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", nc["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",nc["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",nc["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",nc["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",nc["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",nc["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",nc["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",nc["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", nc),bi={},V02=(bi.auto_search="LATENCY_ACTION_AUTO_SEARCH",bi.ad_to_ad="LATENCY_ACTION_AD_TO_AD",bi.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",bi.app_startup="LATENCY_ACTION_APP_STARTUP",bi.browse="LATENCY_ACTION_BROWSE",bi.cast_splash="LATENCY_ACTION_CAST_SPLASH",bi.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",bi.channels="LATENCY_ACTION_CHANNELS",bi.chips="LATENCY_ACTION_CHIPS",bi.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",bi.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", bi.editor="LATENCY_ACTION_EDITOR",bi.embed="LATENCY_ACTION_EMBED",bi.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",bi.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",bi.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",bi.explore="LATENCY_ACTION_EXPLORE",bi.favorites="LATENCY_ACTION_FAVORITES",bi.home="LATENCY_ACTION_HOME",bi.inboarding="LATENCY_ACTION_INBOARDING",bi.landing="LATENCY_ACTION_LANDING",bi.learning="LATENCY_ACTION_LEARNING", bi.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",bi.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",bi.library="LATENCY_ACTION_LIBRARY",bi.live="LATENCY_ACTION_LIVE",bi.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",bi.management="LATENCY_ACTION_MANAGEMENT",bi.mini_app="LATENCY_ACTION_MINI_APP_PLAY",bi.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",bi.onboarding="LATENCY_ACTION_ONBOARDING",bi.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", bi.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",bi.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",bi.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",bi.prebuffer="LATENCY_ACTION_PREBUFFER",bi.prefetch="LATENCY_ACTION_PREFETCH",bi.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",bi.profile_switcher="LATENCY_ACTION_LOGIN",bi.projects="LATENCY_ACTION_PROJECTS",bi.reel_watch="LATENCY_ACTION_REEL_WATCH",bi.results="LATENCY_ACTION_RESULTS",bi.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", bi.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",bi.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",bi.review="LATENCY_ACTION_REVIEW",bi.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",bi.search_ui="LATENCY_ACTION_SEARCH_UI",bi.search_suggest="LATENCY_ACTION_SUGGEST",bi.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",bi.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",bi.seek="LATENCY_ACTION_PLAYER_SEEK",bi.settings="LATENCY_ACTION_SETTINGS",bi.store="LATENCY_ACTION_STORE", bi.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",bi.tenx="LATENCY_ACTION_TENX",bi.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",bi.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",bi.watch="LATENCY_ACTION_WATCH",bi.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",bi["watch,watch7"]="LATENCY_ACTION_WATCH",bi["watch,watch7_html5"]="LATENCY_ACTION_WATCH",bi["watch,watch7ad"]="LATENCY_ACTION_WATCH",bi["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",bi.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", bi.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",bi.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",bi.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",bi.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",bi.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",bi.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",bi.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",bi);Object.assign(V02,chh);g.U(Nd,LW);var eK9=new s6("aft-recorded",Nd);var ftZ=g.E8.ytLoggingGelSequenceIdObj_||{};g.PZ("ytLoggingGelSequenceIdObj_",ftZ);var TJ=g.E8.ytLoggingLatencyUsageStats_||{};g.PZ("ytLoggingLatencyUsageStats_",TJ);qd.prototype.tick=function(D,X,M,Q){LX(this,"tick_"+D+"_"+X)||g.Tm("latencyActionTicked",{tickName:D,clientActionNonce:X},{timestamp:M,cttAuthInfo:Q})}; qd.prototype.info=function(D,X,M){var Q=Object.keys(D).join("");LX(this,"info_"+Q+"_"+X)||(D=Object.assign({},D),D.clientActionNonce=X,g.Tm("latencyActionInfo",D,{cttAuthInfo:M}))}; qd.prototype.jspbInfo=function(D,X,M){for(var Q="",h=0;h=h.length?(X.append(h),D-=h.length):D?(X.append(new Uint8Array(h.buffer,h.byteOffset,D)),M.append(new Uint8Array(h.buffer,h.byteOffset+D,h.length-D)),D=0):M.append(h);return{vQ:X,sI:M}}; Qi.prototype.isFocused=function(D){return D>=this.Y&&D=64&&(this.X.set(D.subarray(0,64-this.G),this.G),X=64-this.G,this.G=0,d$H(this,this.X,0));for(;X+64<=M;X+=64)d$H(this,D,X);X=this.start&&(D=2&&M.ssdaiAdsConfig&&Hb("Unexpected ad placement renderers length",D.slot,null,{length:Q.length});var h;((h=M.adSlots)==null?0:h.some(function(H){var t,q;return((t=g.Z(H,Ln))==null?void 0:(q=t.adSlotMetadata)==null?void 0:q.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||Q.some(function(H){var t,q,w,T; return!!((t=H.renderer)==null?0:(q=t.linearAdSequenceRenderer)==null?0:(w=q.linearAds)==null?0:w.length)||!((T=H.renderer)==null||!T.instreamVideoAdRenderer)})||NdH(D)})}; od.prototype.lx=function(){xeR(this.S)};Cx.prototype.Mn=function(){var D=this;Jo_(this.G,function(){var X=rE(D.slot.clientMetadata,"metadata_type_ad_break_request_data");return X.cueProcessedMs?D.S.get().fetch({aE:X.getAdBreakUrl,Os:new g.v9(X.lT,X.iT),cueProcessedMs:X.cueProcessedMs}):D.S.get().fetch({aE:X.getAdBreakUrl,Os:new g.v9(X.lT,X.iT)})})}; Cx.prototype.lx=function(){xeR(this.G)};OF.prototype.Mn=function(){var D=this.slot.clientMetadata,X,M=(X=this.slot.fulfilledLayout)!=null?X:rE(D,"metadata_type_fulfilled_layout");fm1(this.callback,this.slot,M)}; OF.prototype.lx=function(){ux(this.callback,this.slot,new G("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")};Af.prototype.build=function(D,X){return X.fulfilledLayout||px(X,{Y$:["metadata_type_fulfilled_layout"]})?new OF(D,X):this.Y(D,X)};g.U(Y2,Af); Y2.prototype.Y=function(D,X){if(px(X,{Y$:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new od(D,X,this.S,this.G,this.iH,this.bj,this.B2,this.Qf,this.EH);if(px(X,{Y$:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Cx(D,X,this.S,this.G,this.iH,this.bj);throw new G("Unsupported slot with type: "+X.slotType+" and client metadata: "+ix(X.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.U(lB,Af);lB.prototype.Y=function(D,X){throw new G("Unsupported slot with type: "+X.slotType+" and client metadata: "+ix(X.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.B=qTH.prototype;g.B.jh=function(){return this.slot}; g.B.FF=function(){return this.layout}; g.B.init=function(){}; g.B.release=function(){}; g.B.startRendering=function(D){if(D.layoutId!==this.layout.layoutId)this.callback.Ah(this.slot,D,new v0("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 X=rE(D.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.UH(this.slot,D),xdn(this.Y, this.slot,X)):Hb("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,D)}}; g.B.n2=function(D,X){D.layoutId!==this.layout.layoutId?this.callback.Ah(this.slot,D,new v0("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.IN(this.slot,D,X),Tds(this),LLW(this))};g.U(zH,g.Dq);g.B=zH.prototype;g.B.jh=function(){return this.G.slot}; g.B.FF=function(){return this.G.layout}; g.B.init=function(){this.Y.get().addListener(this)}; g.B.release=function(){this.Y.get().removeListener(this);this.dispose()}; g.B.Sj=function(){}; g.B.jn=function(){}; g.B.VP=function(){}; g.B.cQ=function(){}; g.B.startRendering=function(D){var X=this;GH(this.G,D,function(){return void X.XU()})}; g.B.XU=function(){this.Y.get().XU(this.S)}; g.B.n2=function(D,X){var M=this;GH(this.G,D,function(){var Q=M.Y.get();yZn(Q,M.S,3);M.S=[];M.callback.IN(M.slot,D,X)})}; g.B.Yy=function(){this.Y.H2()||this.Y.get().removeListener(this);g.Dq.prototype.Yy.call(this)}; g.Ad.Object.defineProperties(zH.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.G.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.G.layout}}});h8.prototype.d6=function(D,X){X=X===void 0?!1:X;var M=(this.Y.get(D)||[]).concat();if(X=X&&FL2(D)){var Q=this.Y.get(X);Q&&M.push.apply(M,g.xW(Q))}NF(this,D,M);this.S.add(D);X&&this.S.add(X)}; h8.prototype.Z1=function(D,X){X=X===void 0?!1:X;if(!this.S.has(D)){var M=X&&FL2(D);M&&(X=!this.S.has(M));this.d6(D,X)}};g.U(Bdo,jM);g.U(sz,zH);g.B=sz.prototype;g.B.Fz=function(D,X){D$("ads-engagement-panel-layout",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),g.Z(this.FF().renderingContent,JX),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(X,M,Q,h,H){return new Bdo(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};g.U(U8s,jM);g.U(K9,zH);g.B=K9.prototype;g.B.Fz=function(D,X){D$("banner-image",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),g.Z(this.FF().renderingContent,YD),this.callback,"metadata_type_banner_image_layout_view_model",function(X,M,Q,h,H){return new U8s(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};g.U(aX,jM);g.U(F9,zH);g.B=F9.prototype;g.B.Fz=function(D,X){D$("action-companion",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),g.Z(this.FF().renderingContent,Oi),this.callback,"metadata_type_action_companion_ad_renderer",function(X,M,Q,h,H){return new aX(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){X.layoutId===this.layout.layoutId?this.wC.Z1("impression"):this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};g.U(STR,jM);g.U(VW,zH);g.B=VW.prototype;g.B.Fz=function(D,X){D$("image-companion",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),g.Z(this.FF().renderingContent,py),this.callback,"metadata_type_image_companion_ad_renderer",function(X,M,Q,h,H){return new STR(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){X.layoutId===this.layout.layoutId?this.wC.Z1("impression"):this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};g.U(yFs,jM);g.U($J,zH);g.B=$J.prototype;g.B.Fz=function(D,X){D$("shopping-companion",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(X,M,Q,h,H){return new yFs(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){X.layoutId===this.layout.layoutId?this.wC.Z1("impression"):this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};g.U(Uz,zH);g.B=Uz.prototype;g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(X,M,Q,h,H){return new aX(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(){}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)}; g.B.Fz=function(){};g.B=eP5.prototype;g.B.jh=function(){return this.slot}; g.B.FF=function(){return this.layout}; g.B.init=function(){this.Qf.get().addListener(this);this.Qf.get().eX.push(this);var D=rE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),X=rE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X9(this.layout.Sh)&&GI(this.Yl.get(),this.layout.layoutId,{EJ:X,TM:D,listener:this})}; g.B.release=function(){this.Qf.get().removeListener(this);Zts(this.Qf.get(),this);X9(this.layout.Sh)&&zI(this.Yl.get(),this.layout.layoutId)}; g.B.startRendering=function(D){this.callback.UH(this.slot,D)}; g.B.n2=function(D,X){YRm(this.bj.get())&&!this.S&&(this.wC.Z1("abandon"),this.S=!0);this.callback.IN(this.slot,D,X)}; g.B.BL=function(D){switch(D.id){case "part2viewed":this.wC.Z1("start");this.wC.Z1("impression");break;case "videoplaytime25":this.wC.Z1("first_quartile");break;case "videoplaytime50":this.wC.Z1("midpoint");break;case "videoplaytime75":this.wC.Z1("third_quartile");break;case "videoplaytime100":YRm(this.bj.get())?this.S||(this.wC.Z1("complete"),this.S=!0):this.wC.Z1("complete");L9(this.wC)&&wz(this.wC,Infinity,!0);lD1(this.bj.get())&&Z$(this.G,Infinity,!0);break;case "engagedview":L9(this.wC)||this.wC.Z1("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Hb("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.B.onVolumeChange=function(){}; g.B.HL=function(){}; g.B.Sg=function(){}; g.B.TN=function(){}; g.B.onFullscreenToggled=function(){}; g.B.qX=function(){}; g.B.OA=function(){}; g.B.Wf=function(D){lD1(this.bj.get())&&Z$(this.G,D*1E3,!1);L9(this.wC)&&wz(this.wC,D*1E3,!1)}; g.B.PL=function(){}; g.B.jO=function(){this.wC.Z1("active_view_measurable")}; g.B.zi=function(){this.wC.Z1("active_view_viewable")}; g.B.V0=function(){this.wC.Z1("active_view_fully_viewable_audible_half_duration")}; g.B.Kn=function(){this.wC.Z1("audio_measurable")}; g.B.q9=function(){this.wC.Z1("audio_audible")};g.U(c7,zH);g.B=c7.prototype;g.B.init=function(){zH.prototype.init.call(this);var D=rE(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X={adsClientData:this.layout.A5};this.S.push(new aW(D,this.layout.layoutId,rE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),X,!0))}; g.B.oh=function(){this.U||this.Qf.get().resumeVideo(1)}; g.B.startRendering=function(D){zH.prototype.startRendering.call(this,D);hA(this.Qf.get(),"ad-showing");this.callback.UH(this.slot,D);this.D.IR=this}; g.B.n2=function(D,X){zH.prototype.n2.call(this,D,X);Hw(this.Qf.get(),"ad-showing");AA(this.D,this)}; g.B.Fz=function(D){switch(D){case "ad-info-icon-button":(this.U=this.Qf.get().D8(1))||this.Qf.get().pauseVideo();break;case "visit-advertiser":this.Qf.get().pauseVideo()}}; g.B.Yy=function(){zH.prototype.Yy.call(this)};g.U(f9,jM);g.U(Sg,zH);g.B=Sg.prototype;g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(X,M,Q,h,H){return new f9(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(){}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)}; g.B.Fz=function(){};g.U(Ez,jM);g.U(yW,zH);yW.prototype.init=function(){zH.prototype.init.call(this);this.S.push(new Ez(g.Z(this.layout.renderingContent,qU),this.layout.layoutId,{adsClientData:this.layout.A5}))}; yW.prototype.Fz=function(){qQ(this.U.get(),this.D)&&jV(this.B2.get(),3)}; yW.prototype.startRendering=function(D){zH.prototype.startRendering.call(this,D);this.callback.UH(this.slot,D)}; yW.prototype.Yy=function(){zH.prototype.Yy.call(this)};g.U(P7,jM);g.U(mK,zH);mK.prototype.init=function(){zH.prototype.init.call(this);var D=g.Z(this.layout.renderingContent,Oz)||rE(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),X=k2(this.wC);this.S.push(new P7(D,X,this.layout.layoutId,{adsClientData:this.layout.A5},!0,!0))}; mK.prototype.startRendering=function(D){zH.prototype.startRendering.call(this,D);this.callback.UH(this.slot,D)}; mK.prototype.Fz=function(D,X){if(X===this.layout.layoutId)switch(D){case "skip-button":var M;(D=(M=rE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&gj(D,this.jh(),this.layout)}}; mK.prototype.Yy=function(){zH.prototype.Yy.call(this)};bZ.prototype.build=function(D,X,M,Q){if(n9(Q,{Y$:["metadata_type_ad_break_response_data"],k$:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qTH(D,M,Q,this.G,this.Y,this.S);throw new v0("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ix(Q.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.U(g0n,jM);g.U(eg,zH);g.B=eg.prototype;g.B.Fz=function(D,X){D$("ads-engagement-panel",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),g.Z(this.FF().renderingContent,AX),this.callback,"metadata_type_ads_engagement_panel_renderer",function(X,M,Q,h,H){return new g0n(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){X.layoutId===this.layout.layoutId?this.wC.Z1("impression"):this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};g.U(RX,zH);g.B=RX.prototype;g.B.Fz=function(D,X){D$("top-banner-image-text-icon-buttoned",D,this.X.get().S0,this.B2.get(),this.U,this.D,this.jh(),this.FF(),X)}; g.B.startRendering=function(D){uB(this.wC,this.jh(),this.FF(),g.Z(this.FF().renderingContent,lA),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(X,M,Q,h,H){return new f9(X,M,Q,h,H)},this.S); zH.prototype.startRendering.call(this,D)}; g.B.UH=function(D,X){this.D===X.layoutId&&(this.U===null?this.U=this.B2.get().eC():Hb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.Yy=function(){Gd(this.gI(),this);zH.prototype.Yy.call(this)};rFo.prototype.build=function(D,X,M,Q){if(n9(Q,v0_())||g.Z(Q.renderingContent,AX)!==void 0)return new eg(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,f71())||g.Z(Q.renderingContent,Oi)!==void 0)return new F9(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,E0n())||g.Z(Q.renderingContent,py)!==void 0)return new VW(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,PCW()))return new $J(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,bjR()))return new Uz(D,M,Q,this.nK,this.B2,this.gI, this.Yl,this.S);if(n9(Q,cFs())||g.Z(Q.renderingContent,YD)!==void 0)return new K9(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,d8d())||g.Z(Q.renderingContent,lA)!==void 0)return new RX(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,RPd()))return new Sg(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);if(n9(Q,Zjn())||g.Z(Q.renderingContent,JX)!==void 0)return new sz(D,M,Q,this.nK,this.B2,this.gI,this.Yl,this.S);throw new v0("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ ix(Q.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};iji.prototype.build=function(D,X,M,Q){if(n9(Q,{Y$:["metadata_type_linked_player_bytes_layout_id"],k$:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new yW(D,M,Q,this.nK,this.B2,this.S);throw new v0("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ix(Q.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.B=o0d.prototype;g.B.jh=function(){return this.slot}; g.B.FF=function(){return this.layout}; g.B.init=function(){}; g.B.release=function(){}; g.B.startRendering=function(D){D.layoutId!==this.layout.layoutId?this.callback.Ah(this.slot,D,new v0("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.UH(this.slot,D),this.wC.Z1("impression"),ic(this.MR,D))}; g.B.n2=function(D,X){D.layoutId!==this.layout.layoutId?this.callback.Ah(this.slot,D,new v0("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.IN(this.slot,D,X)};g.B=Ojd.prototype;g.B.jh=function(){return this.slot}; g.B.FF=function(){return this.layout}; g.B.init=function(){}; g.B.release=function(){}; g.B.startRendering=function(D){D.layoutId!==this.layout.layoutId?this.callback.Ah(this.slot,D,new v0("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.UH(this.slot,D),this.wC.Z1("impression"),ic(this.MR,D))}; g.B.n2=function(D,X){D.layoutId!==this.layout.layoutId?this.callback.Ah(this.slot,D,new v0("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.IN(this.slot,D,X)};IX.prototype.build=function(D,X,M,Q){if(!this.bj.get().B.W().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(n9(Q,CC9()))return new o0d(D,M,Q,this.B2,this.MR)}else if(n9(Q,{Y$:[],k$:["LAYOUT_TYPE_FORECASTING"]}))return new Ojd(D,M,Q,this.B2,this.MR);throw new v0("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ix(Q.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.U(YT2,jM);g.U(gz,zH);g.B=gz.prototype;g.B.init=function(){zH.prototype.init.call(this);var D=g.Z(this.layout.renderingContent,C9)||rE(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),X={adsClientData:this.layout.A5};this.S.push(new YT2(D,rE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,X))}; g.B.oh=function(){this.U||this.Qf.get().resumeVideo(2)}; g.B.startRendering=function(D){zH.prototype.startRendering.call(this,D);this.callback.UH(this.slot,D);this.D.IR=this}; g.B.n2=function(D,X){zH.prototype.n2.call(this,D,X);AA(this.D,this)}; g.B.Fz=function(D,X){if(!mV(this.bj.get(),"stop_handling_click_for_non_rendering_overlay_layout")||X===this.layout.layoutId){if(qQ(this.X.get(),this.J))switch(D){case "visit-advertiser-link":jV(this.B2.get(),3)}switch(D){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Qf.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Qf.get().D8(2))||this.Qf.get().pauseVideo();break; case "visit-advertiser-link":this.Qf.get().pauseVideo();l7R(this).ql();break;case "skip-button":if(D=l7R(this),this.layout.renderingContent&&!Rw(this.layout.clientMetadata,"metadata_type_dai")||!D||!D.Vm){var M;(D=(M=rE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&gj(D,this.jh(),this.layout)}else Hb("Requesting to skip by LegacyPlayerBytes when components enabled"),D.JI(this.jh(),this.layout)}}}; g.B.Yy=function(){zH.prototype.Yy.call(this)};g.U(v7,zH);g.B=v7.prototype;g.B.init=function(){zH.prototype.init.call(this);var D=g.Z(this.layout.renderingContent,oX)||rE(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),X={adsClientData:this.layout.A5},M;(M=!!this.layout.renderingContent)||(M=dz(this),M=!(M&&M.Vm));this.S.push(new aW(D,this.layout.layoutId,rE(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),X,M))}; g.B.oh=function(){this.U||this.Qf.get().resumeVideo(2)}; g.B.startRendering=function(D){zH.prototype.startRendering.call(this,D);this.callback.UH(this.slot,D);this.D.IR=this}; g.B.n2=function(D,X){zH.prototype.n2.call(this,D,X);AA(this.D,this)}; g.B.Fz=function(D,X){if(!this.bj||!mV(this.bj.get(),"stop_handling_click_for_non_rendering_overlay_layout")||X===this.layout.layoutId){if(qQ(this.X.get(),this.J))switch(D){case "visit-advertiser":jV(this.B2.get(),3)}switch(D){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Qf.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Qf.get().D8(2))||this.Qf.get().pauseVideo();break; case "visit-advertiser":this.Qf.get().pauseVideo();dz(this).ql();break;case "skip-button":if(D=dz(this),this.layout.renderingContent&&!Rw(this.layout.clientMetadata,"metadata_type_dai")||!D||!D.Vm){var M;(D=(M=rE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&gj(D,this.jh(),this.layout)}else Hb("Requesting to skip by LegacyPlayerBytes"),D.JI(this.jh(),this.layout)}}}; g.B.Yy=function(){zH.prototype.Yy.call(this)};g.U(x8s,jM);g.U(rz,zH);g.B=rz.prototype;g.B.startRendering=function(D){var X=this;GH(this.G,D,function(){X.S.push(new x8s(rE(X.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),D.layoutId,D.A5));X.XU();X.callback.UH(X.slot,D);g.x(Wv(X.Qf.get(),1),512)&&X.callback.Ah(X.jh(),X.FF(),new v0("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.B.OA=function(){}; g.B.qX=function(D){if(D.state.isError()){var X;this.callback.Ah(this.jh(),this.FF(),new v0("A player error happened during adNotify",{playerErrorCode:(X=D.state.QV)==null?void 0:X.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.B.onFullscreenToggled=function(){}; g.B.Sg=function(){}; g.B.TN=function(){}; g.B.HL=function(){}; g.B.onVolumeChange=function(){}; g.B.BL=function(){}; g.B.PL=function(){}; g.B.Fz=function(){};g.U(Gms,jM);g.U(iZ,zH);iZ.prototype.init=function(){zH.prototype.init.call(this);var D=g.Z(this.layout.renderingContent,p9),X=k2(this.wC);this.S.push(new Gms(D,X,this.layout.layoutId,{adsClientData:this.layout.A5}))}; iZ.prototype.startRendering=function(D){zH.prototype.startRendering.call(this,D);this.callback.UH(this.slot,D)}; iZ.prototype.Fz=function(D,X){if(X===this.layout.layoutId)switch(D){case "skip-button":var M;(D=(M=rE(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:M.current)&&gj(D,this.jh(),this.layout)}}; iZ.prototype.Yy=function(){zH.prototype.Yy.call(this)};zP2.prototype.build=function(D,X,M,Q){if(D=A8(D,M,Q,this.nK,this.Qf,this.B2,this.G,this.S,this.bj))return D;throw new v0("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ix(Q.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.B=J8.prototype;g.B.jh=function(){return this.slot}; g.B.FF=function(){return this.layout}; g.B.init=function(){this.Qf.get().addListener(this);this.Qf.get().eX.push(this);var D=kms(this),X=g.Z(this.layout.renderingContent,hD),M=X?MF(X.pings):rE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X=X?a7o(X.pings):rE(this.layout.clientMetadata,"metadata_type_active_view_identifier");X9(this.layout.Sh)&&GI(this.Yl.get(),this.layout.layoutId,{EJ:M,TM:D,listener:this,GH:X})}; g.B.release=function(){this.Qf.get().removeListener(this);Zts(this.Qf.get(),this);X9(this.layout.Sh)&&zI(this.Yl.get(),this.layout.layoutId)}; g.B.startRendering=function(D){this.callback.UH(this.slot,D)}; g.B.n2=function(D,X){xJ(this,"abandon");this.callback.IN(this.slot,D,X)}; g.B.BL=function(D){switch(D.id){case "part2viewed":this.wC.Z1("start");this.wC.Z1("impression");break;case "videoplaytime25":this.wC.Z1("first_quartile");break;case "videoplaytime50":this.wC.Z1("midpoint");break;case "videoplaytime75":this.wC.Z1("third_quartile");break;case "videoplaytime100":xJ(this,"complete");L9(this.wC)&&wz(this.wC,Infinity,!0);JJ_(this.bj.get())&&Z$(this.G,Infinity,!0);break;case "engagedview":L9(this.wC)||this.wC.Z1("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Hb("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.B.onVolumeChange=function(){}; g.B.HL=function(){}; g.B.Sg=function(){}; g.B.TN=function(){}; g.B.onFullscreenToggled=function(){}; g.B.qX=function(D){this.S||(g.qZ(D,4)&&!g.qZ(D,2)?qF(this.wC,"pause"):NZ(D,4)<0&&!(NZ(D,2)<0)&&qF(this.wC,"resume"))}; g.B.OA=function(){}; g.B.Wf=function(D){JJ_(this.bj.get())&&Z$(this.G,D*1E3,!1);L9(this.wC)&&wz(this.wC,D*1E3,!1)}; g.B.PL=function(){xJ(this,"swipe")}; g.B.jO=function(){this.wC.Z1("active_view_measurable")}; g.B.zi=function(){this.wC.Z1("active_view_viewable")}; g.B.V0=function(){this.wC.Z1("active_view_fully_viewable_audible_half_duration")}; g.B.Kn=function(){this.wC.Z1("audio_measurable")}; g.B.q9=function(){this.wC.Z1("audio_audible")};uNp.prototype.build=function(D,X,M,Q){if(M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.Z(Q.renderingContent,hD)!==void 0)return new J8(D,M,Q,this.Qf,this.B2,this.Xk,this.bj,this.Yl,this.dC);X=["metadata_type_ad_placement_config"];for(var h=g.e(H7()),H=h.next();!H.done;H=h.next())X.push(H.value);if(n9(Q,{Y$:X,k$:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return M.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new J8(D,M,Q,this.Qf,this.B2,this.Xk,this.bj,this.Yl,this.dC):new eP5(D,M,Q, this.Qf,this.B2,this.Xk,this.bj,this.Yl);throw new v0("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ix(Q.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var oBK,vM; oBK={xL$:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",vwI:"AUTHENTICATION_MALFORMED",Ib$:"AUTHENTICATION_MISSING",ZmF:"BAD_REQUEST",KL2:"CAST_SESSION_DEVICE_MISMATCHED",V0H:"CAST_SESSION_VIDEO_MISMATCHED",jP5:"CAST_TOKEN_EXPIRED",z4R:"CAST_TOKEN_FAILED",e4R:"CAST_TOKEN_MALFORMED",fT$:"CGI_PARAMS_MALFORMED",S5y:"CGI_PARAMS_MISSING",Jz5:"DEVICE_FALLBACK",zZf:"GENERIC_WITH_LINK_AND_CPN",eZ$:"ERROR_HDCP",f9$:"LICENSE",RZF:"VIDEO_UNAVAILABLE",Umj:"FORMAT_UNAVAILABLE",r_f:"GEO_FAILURE", A_C:"HTML5_AUDIO_RENDERER_ERROR",tRs:"GENERIC_WITHOUT_LINK",NUH:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mmH:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",ve5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",I9y:"HTML5_SPS_UMP_STATUS_REJECTED",Fgs:"INVALID_DRM_MESSAGE",I8f:"PURCHASE_NOT_FOUND",wvF:"PURCHASE_REFUNDED",Uef:"RENTAL_EXPIRED",QhR:"RETRYABLE_ERROR",PvI:"SERVER_ERROR",meH:"SIGNATURE_EXPIRED",oky:"STOPPED_BY_ANOTHER_PLAYBACK",pXC:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",izz:"STREAMING_NOT_ALLOWED", lyy:"STREAM_LICENSE_NOT_FOUND",en$:"TOO_MANY_REQUESTS",fDR:"TOO_MANY_REQUESTS_WITH_LINK",SjH:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Rn$:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",X8y:"VIDEO_FORBIDDEN",OhC:"VIDEO_NOT_FOUND",WLC:"BROWSER_OR_EXTENSION_ERROR"};vM={}; g.gZ=(vM.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.",vM.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",vM.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", vM.LICENSE="Se produjo un error de licencia con este video.",vM.VIDEO_UNAVAILABLE="Video no disponible",vM.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",vM.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",vM.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",vM.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",vM.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",vM.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",vM.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",vM.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", vM.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",vM.PURCHASE_NOT_FOUND="Este es un video pagado.",vM.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",vM.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",vM.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",vM.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", vM.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",vM.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",vM.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",vM.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",vM.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",vM.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",vM.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",vM.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",vM.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", vM.TOO_MANY_REQUESTS="Accede para mirar el video.",vM.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",vM.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",vM.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",vM.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", vM.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",vM.VIDEO_NOT_FOUND="No se puede encontrar este video.",vM.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",vM);var CWh;var OGW=g.Qm(),pZ8=OGW.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!pZ8||pZ8.length<2)CWh=void 0;else{var Ahh=OGW.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);CWh=Ahh&&Ahh.length===6?Number(Ahh[5].replace("_",".")):0}var yv=CWh,nb=yv>=0;g.U(g.HE,b2);g.HE.prototype.N=function(D,X,M,Q,h){return b2.prototype.N.call(this,D,X,M,Q,h)};var d2={},IK=(d2.FAIRPLAY="fairplay",d2.PLAYREADY="playready",d2.WIDEVINE="widevine",d2.CLEARKEY=null,d2.FLASHACCESS=null,d2.UNKNOWN=null,d2.WIDEVINE_CLASSIC=null,d2);tC.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var r2={},Y4=(r2.WIDTH={name:"width",video:!0,valid:640,qm:99999},r2.HEIGHT={name:"height",video:!0,valid:360,qm:99999},r2.FRAMERATE={name:"framerate",video:!0,valid:30,qm:9999},r2.BITRATE={name:"bitrate",video:!0,valid:3E5,qm:2E9},r2.EOTF={name:"eotf",video:!0,valid:"bt709",qm:"catavision"},r2.CHANNELS={name:"channels",video:!1,valid:2,qm:99},r2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",qm:"invalidformat"},r2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", qm:"nope"},r2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",qm:"av99.0.05M.08"},r2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",qm:"invalid"},r2.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",qm:"false"},r2);var Y8B=["h","H"],lty=["9","("],JhK=["9h","(h"],x_a=["8","*"],Wn8=["a","A"],GyG=["o","O"],zrC=["m","M"],kyb=["mac3","MAC3"],uCn=["meac3","MEAC3"],ii={},pEi=(ii.h=Y8B,ii.H=Y8B,ii["9"]=lty,ii["("]=lty,ii["9h"]=JhK,ii["(h"]=JhK,ii["8"]=x_a,ii["*"]=x_a,ii.a=Wn8,ii.A=Wn8,ii.o=GyG,ii.O=GyG,ii.m=zrC,ii.M=zrC,ii.mac3=kyb,ii.MAC3=kyb,ii.meac3=uCn,ii.MEAC3=uCn,ii),jat=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),g2s=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var k={},fE=(k["0"]="f",k["160"]="h",k["133"]="h",k["134"]="h",k["135"]="h",k["136"]="h",k["137"]="h",k["264"]="h",k["266"]="h",k["138"]="h",k["298"]="h",k["299"]="h",k["304"]="h",k["305"]="h",k["214"]="h",k["216"]="h",k["374"]="h",k["375"]="h",k["140"]="a",k["141"]="a",k["327"]="sa",k["258"]="m",k["380"]="mac3",k["328"]="meac3",k["161"]="H",k["142"]="H",k["143"]="H",k["144"]="H",k["222"]="H",k["223"]="H",k["145"]="H",k["224"]="H",k["225"]="H",k["146"]="H",k["226"]="H",k["227"]="H",k["147"]="H",k["384"]= "H",k["376"]="H",k["385"]="H",k["377"]="H",k["149"]="A",k["261"]="M",k["381"]="MAC3",k["329"]="MEAC3",k["598"]="9",k["278"]="9",k["242"]="9",k["243"]="9",k["244"]="9",k["775"]="9",k["776"]="9",k["777"]="9",k["778"]="9",k["779"]="9",k["780"]="9",k["781"]="9",k["782"]="9",k["783"]="9",k["247"]="9",k["248"]="9",k["353"]="9",k["355"]="9",k["356"]="9",k["271"]="9",k["577"]="9",k["313"]="9",k["579"]="9",k["272"]="9",k["302"]="9",k["303"]="9",k["407"]="9",k["408"]="9",k["308"]="9",k["315"]="9",k["330"]= "9h",k["331"]="9h",k["332"]="9h",k["333"]="9h",k["334"]="9h",k["335"]="9h",k["336"]="9h",k["337"]="9h",k["338"]="so",k["600"]="o",k["250"]="o",k["251"]="o",k["774"]="o",k["194"]="*",k["195"]="*",k["220"]="*",k["221"]="*",k["196"]="*",k["197"]="*",k["279"]="(",k["280"]="(",k["317"]="(",k["318"]="(",k["273"]="(",k["274"]="(",k["357"]="(",k["358"]="(",k["275"]="(",k["359"]="(",k["360"]="(",k["276"]="(",k["583"]="(",k["584"]="(",k["314"]="(",k["585"]="(",k["561"]="(",k["277"]="(",k["361"]="(h",k["362"]= "(h",k["363"]="(h",k["364"]="(h",k["365"]="(h",k["366"]="(h",k["591"]="(h",k["592"]="(h",k["367"]="(h",k["586"]="(h",k["587"]="(h",k["368"]="(h",k["588"]="(h",k["562"]="(h",k["409"]="(",k["410"]="(",k["411"]="(",k["412"]="(",k["557"]="(",k["558"]="(",k["394"]="1",k["395"]="1",k["396"]="1",k["397"]="1",k["398"]="1",k["399"]="1",k["720"]="1",k["721"]="1",k["400"]="1",k["401"]="1",k["571"]="1",k["402"]="1",k["694"]="1h",k["695"]="1h",k["696"]="1h",k["697"]="1h",k["698"]="1h",k["699"]="1h",k["700"]="1h", k["701"]="1h",k["702"]="1h",k["703"]="1h",k["386"]="3",k["387"]="w",k["406"]="6",k["787"]="1",k["788"]="1",k["548"]="1e",k["549"]="1e",k["550"]="1e",k["551"]="1e",k["809"]="1e",k["810"]="1e",k["552"]="1e",k["811"]="1e",k["812"]="1e",k["553"]="1e",k["813"]="1e",k["814"]="1e",k["554"]="1e",k["815"]="1e",k["816"]="1e",k["555"]="1e",k["817"]="1e",k["818"]="1e",k["572"]="1e",k["556"]="1e",k["645"]="(",k["646"]="(",k["647"]="(",k["648"]="(",k["649"]="(",k["650"]="(",k["651"]="(",k["652"]="(",k["653"]="(", k["654"]="(",k["655"]="(",k["656"]="(",k["657"]="(",k["658"]="(",k["659"]="(",k["660"]="(",k["661"]="(",k["662"]="(",k["663"]="(",k["664"]="(",k["665"]="(",k["666"]="(",k["667"]="(",k["668"]="(",k["669"]="(",k["670"]="(",k["671"]="(",k["672"]="(",k["673"]="(",k["674"]="(h",k["675"]="(h",k["676"]="(h",k["677"]="(h",k["678"]="(h",k["679"]="(h",k["680"]="(h",k["681"]="(h",k["682"]="(h",k["683"]="(h",k["684"]="(h",k["685"]="(h",k["686"]="(h",k["687"]="(h",k["688"]="A",k["689"]="A",k["690"]="A",k["691"]= "MEAC3",k["773"]="i",k["806"]="I",k["805"]="I",k["829"]="9",k["830"]="9",k["831"]="9",k["832"]="9",k["833"]="9",k["834"]="9",k["835"]="9",k["836"]="9",k["892"]="9",k["893"]="9",k["837"]="9",k["838"]="9",k["839"]="9",k["840"]="9",k["841"]="(",k["842"]="(",k["843"]="(",k["844"]="(",k["845"]="(",k["846"]="(",k["847"]="(",k["848"]="(",k["894"]="(",k["895"]="(",k["849"]="(",k["850"]="(",k["851"]="(",k["852"]="(",k["865"]="9",k["866"]="9",k["867"]="9",k["868"]="9",k["869"]="9",k["870"]="9",k["871"]="9", k["872"]="9",k["896"]="9",k["897"]="9",k["873"]="9",k["874"]="9",k["875"]="9",k["876"]="9",k["877"]="(",k["878"]="(",k["879"]="(",k["880"]="(",k["881"]="(",k["882"]="(",k["883"]="(",k["884"]="(",k["898"]="(",k["899"]="(",k["885"]="(",k["886"]="(",k["887"]="(",k["888"]="(",k["900"]="2",k["901"]="2",k["902"]="2",k["903"]="2",k["904"]="2",k["905"]="2",k["906"]="2",k["907"]="2",k["908"]="2",k);var or={},cCH=(or.STEREO_LAYOUT_UNKNOWN=0,or.STEREO_LAYOUT_LEFT_RIGHT=1,or.STEREO_LAYOUT_TOP_BOTTOM=2,or);var DZi={RKR:0,iS$:124,pv5:144,F4s:220,W4H:240,K4$:340,qts:360,VN2:480,zKs:588,jq2:608,eKI:720,fyH:740,kxF:1080,ZSs:1100,opH:1440,l8$:2160,SG4:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var Cc,e$,Ow,Sns;Cc={};g.BE=(Cc.auto=0,Cc.tiny=144,Cc.light=144,Cc.small=240,Cc.medium=360,Cc.large=480,Cc.hd720=720,Cc.hd1080=1080,Cc.hd1440=1440,Cc.hd2160=2160,Cc.hd2880=2880,Cc.highres=4320,Cc);e$={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Ow={}; Sns=(Ow.QUALITY_ORDINAL_UNKNOWN=0,Ow.QUALITY_ORDINAL_144P_SAVER=124,Ow.QUALITY_ORDINAL_144P=144,Ow.QUALITY_ORDINAL_240P_SAVER=220,Ow.QUALITY_ORDINAL_240P=240,Ow.QUALITY_ORDINAL_360P_SAVER=340,Ow.QUALITY_ORDINAL_360P=360,Ow.QUALITY_ORDINAL_480P=480,Ow.QUALITY_ORDINAL_608P_SAVER=588,Ow.QUALITY_ORDINAL_608P=608,Ow.QUALITY_ORDINAL_720P=720,Ow.QUALITY_ORDINAL_720P_ENHANCED=740,Ow.QUALITY_ORDINAL_1080P=1080,Ow.QUALITY_ORDINAL_1080P_ENHANCED=1100,Ow.QUALITY_ORDINAL_1440P=1440,Ow.QUALITY_ORDINAL_2160P=2160, Ow.QUALITY_ORDINAL_HIGHRES=9999,Ow);var Un="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ZH.prototype.isHdr=function(){return this.S==="smpte2084"||this.S==="arib-std-b67"};Sv.prototype.VF=function(){return this.containerType===2}; Sv.prototype.isEncrypted=function(){return!!this.DS}; Sv.prototype.q2=function(){return!!this.audio}; Sv.prototype.VB=function(){return!!this.video}; var PE=!1;g.U(GU,g.Dq);g.B=GU.prototype;g.B.appendBuffer=function(D,X,M){if(this.jt.OD()!==this.appendWindowStart+this.start||this.jt.eJ()!==this.appendWindowEnd+this.start||this.jt.w3()!==this.timestampOffset+this.start)this.jt.supports(1),this.jt.z2(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.jt.CS(this.timestampOffset+this.start);this.jt.appendBuffer(D,X,M)}; g.B.abort=function(){this.jt.abort()}; g.B.remove=function(D,X){this.jt.remove(D+this.start,X+this.start)}; g.B.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.B.clear=function(){this.jt.clear()}; g.B.z2=function(D,X){this.appendWindowStart=D;this.appendWindowEnd=X}; g.B.i8=function(){return this.timestampOffset+this.start}; g.B.OD=function(){return this.appendWindowStart}; g.B.eJ=function(){return this.appendWindowEnd}; g.B.CS=function(D){this.timestampOffset=D}; g.B.w3=function(){return this.timestampOffset}; g.B.K6=function(D){D=this.jt.K6(D===void 0?!1:D);return WE(D,this.start,this.end)}; g.B.VZ=function(){return this.jt.VZ()}; g.B.Jj=function(){return this.jt.Jj()}; g.B.qR=function(){return this.jt.qR()}; g.B.tN=function(){return this.jt.tN()}; g.B.NZ=function(){this.jt.NZ()}; g.B.ZA=function(D){return this.jt.ZA(D)}; g.B.RV=function(){return this.jt.RV()}; g.B.b4=function(){return this.jt.b4()}; g.B.VO=function(D,X,M){this.jt.VO(D,X,M)}; g.B.jM=function(D,X,M){this.jt.jM(D,X,M)}; g.B.Hc=function(D,X){return this.jt.Hc(D,X)}; g.B.supports=function(D){return this.jt.supports(D)}; g.B.xf=function(){return this.jt.xf()}; g.B.isView=function(){return!0}; g.B.V$=function(){return this.jt.V$()?this.isActive:!1}; g.B.isLocked=function(){return this.X3&&!this.isActive}; g.B.ip=function(D){D=this.jt.ip(D);D.vw=this.start+"-"+this.end;return D}; g.B.Ld=function(){return this.jt.Ld()}; g.B.w5=function(){return this.jt.w5()}; g.B.Il=function(){return this.jt.Il()}; g.B.Yy=function(){this.jt.zR(this.d9);g.Dq.prototype.Yy.call(this)};var oY=!1;g.U(kP,g.Dq);g.B=kP.prototype;g.B.appendBuffer=function(D,X,M){this.pA=!1;M&&(this.Ep=M);if(D.length){var Q;((Q=this.I2)==null?0:Q.appendBuffer)?this.I2.appendBuffer(D):this.I2?this.I2.append(D):this.UU&&this.UU.webkitSourceAppend(this.id,D)}X&&(X.isEncrypted()&&(this.hP=this.Ep),X.type===3&&(this.N2=X),this.wu.push(X.HC()),this.wu.length>4&&this.wu.shift());this.qr&&(this.qr.length>=2||D.length>1048576?delete this.qr:this.qr.push(D))}; g.B.abort=function(){try{this.I2?this.I2.abort():this.UU&&this.UU.webkitSourceAbort(this.id)}catch(X){if(Swn){var D=new g.ys("Error while abort the source buffer: "+X.name+", "+X.message);g.ET(D)}}this.Ep=this.N2=null}; g.B.remove=function(D,X,M){this.pA=!1;var Q;if((Q=this.I2)==null?0:Q.remove)M&&M({b:On(this.K6()),s:D,e:X}),this.I2.remove(D,X)}; g.B.removeAll=function(){this.remove(this.OD(),this.eJ())}; g.B.clear=function(){this.qR()||(this.abort(),this.removeAll(),this.hP=this.Ep=this.N2=null,this.appendWindowStart=this.timestampOffset=0,this.ou=CE([],[]),this.pA=!1,this.qr=zU?[]:void 0,this.nu=!0)}; g.B.OD=function(){if(oY&&this.VB)return this.appendWindowStart;var D;return((D=this.I2)==null?void 0:D.appendWindowStart)||0}; g.B.eJ=function(){var D;return((D=this.I2)==null?void 0:D.appendWindowEnd)||0}; g.B.z2=function(D,X){this.I2&&(oY&&this.VB?(this.appendWindowStart=D,this.I2.appendWindowEnd=X):D>this.OD()?(this.I2.appendWindowEnd=X,this.I2.appendWindowStart=D):(this.I2.appendWindowStart=D,this.I2.appendWindowEnd=X))}; g.B.i8=function(){return this.timestampOffset}; g.B.CS=function(D){oY?this.timestampOffset=D:this.supports(1)&&(this.I2.timestampOffset=D)}; g.B.w3=function(){return oY?this.timestampOffset:this.supports(1)?this.I2.timestampOffset:0}; g.B.K6=function(D){if(D===void 0?0:D)return this.pA||this.VZ()||(this.ou=this.K6(!1),this.pA=!0),this.ou;try{return this.I2?this.I2.buffered:this.UU?this.UU.webkitSourceBuffered(this.id):CE([0],[Infinity])}catch(X){return CE([],[])}}; g.B.VZ=function(){var D;return((D=this.I2)==null?void 0:D.updating)||!1}; g.B.qR=function(){return this.nu}; g.B.tN=function(){return!this.nu&&this.VZ()}; g.B.NZ=function(){this.nu=!1}; g.B.ZA=function(D){var X=D==null?void 0:D.ij;D=D==null?void 0:D.containerType;return!X&&!D||X===this.ij&&D===this.containerType}; g.B.RV=function(){return this.Ep}; g.B.b4=function(){return this.hP}; g.B.Hc=function(D,X){return this.containerType!==D||this.ij!==X}; g.B.VO=function(D,X,M){if(this.containerType!==D||M&&this.Hc(D,M))this.supports(4),uw()&&this.I2.changeType(X),M&&(this.ij=M);this.containerType=D}; g.B.jM=function(D,X,M){this.containerType&&this.Hc(D,X)&&uw()&&this.I2.changeType(M);this.containerType=D;this.ij=X}; g.B.xf=function(){return this.N2}; g.B.isView=function(){return!1}; g.B.supports=function(D){switch(D){case 1:var X;return((X=this.I2)==null?void 0:X.timestampOffset)!==void 0;case 0:var M;return!((M=this.I2)==null||!M.appendBuffer);case 2:var Q;return!((Q=this.I2)==null||!Q.remove);case 3:var h,H;return!!(((h=this.I2)==null?0:h.addEventListener)&&((H=this.I2)==null?0:H.removeEventListener));case 4:return!(!this.I2||!this.I2.changeType);default:return!1}}; g.B.V$=function(){return!this.VZ()}; g.B.isLocked=function(){return!1}; g.B.ip=function(D){D.to=this.w3();D.up=this.VZ();var X,M=((X=this.I2)==null?void 0:X.appendWindowStart)||0,Q;X=((Q=this.I2)==null?void 0:Q.appendWindowEnd)||Infinity;D.aw=M.toFixed(3)+"-"+X.toFixed(3);return D}; g.B.Jj=function(){var D;return((D=this.I2)==null?void 0:D.writeHead)||0}; g.B.Ld=function(){for(var D={},X=0;X=7&&(!X||((Q=this.zs)==null?0:Q.T("mweb_ios_allow_playback_workaround_when_ready")))&&jOd(this,function(){g.Vj(function(){KMm(D,D.getCurrentTime(),0)},500)})}return X}; g.B.uA=function(D,X,M){var Q;((Q=this.zs)==null?0:Q.t5())&&this.zs.SH(D,X,M===void 0?!1:M)}; g.B.Ho=function(D){this.zs=D}; g.B.Wv=function(){return xP(this.HP(),this.getCurrentTime())}; g.B.seekTo=function(D){this.r$()>0&&(nb&&yv<4&&(D=Math.max(.1,D)),this.setCurrentTime(D))}; g.B.r0=function(D){if(this.r$()===0||this.hasError())return!1;var X=this.getCurrentTime()>0;if(D>=0){var M=this.TQ();if(M.length||!X)return AC(M,D)}return X}; g.B.wY=function(){if(!this.Y&&this.J$)if(this.J$.X)try{var D;this.uA("rms",{l:"mer",sr:(D=this.zs)==null?void 0:D.LF(),rs:HQ(this.J$)});this.J$.clear();this.rl(this.J$);this.J$=void 0}catch(X){D=new g.ys("Error while clearing Media Source in MediaElement: "+X.name+", "+X.message),g.ET(D),this.stopVideo()}else this.stopVideo()}; g.B.stopVideo=function(){var D=this;if(!this.Y){var X;(X=this.J$)==null||Nl(X);if(ZcR){if(!this.J){var M=new ql;M.then(void 0,function(){}); this.J=M;UTm&&this.pause();g.Vj(function(){D.J===M&&(T8(D),M.resolve())},200)}}else T8(this)}}; g.B.Zd=function(){var D=this.HP();return JC(D)&&this.getDuration()?YP(D,this.getCurrentTime()):0}; g.B.SW=function(){var D=this.HP();return JC(D)&&this.getDuration()?D.end(D.length-1):0}; g.B.xP=function(){var D=this.getDuration();return D===Infinity?1:D?this.Zd()/D:0}; g.B.ip=function(){try{var D=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:On(this.Me(),",",3),vbu:On(this.HP()),vbs:On(this.TQ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.r$(),vns:""+this.gz(),vec:""+this.WP(),vemsg:this.L2(),vvol:""+this.getVolume(),vdom:""+ +this.Xx(),vsrc:""+ +!!this.Aq(),vw:""+D.width,vh:""+D.height}}catch(X){return{}}}; g.B.kS=function(){return this.WP()===4}; g.B.hasError=function(){return this.WP()>0}; g.B.HQ=function(){switch(this.WP()){case 2:return"progressive.net.retryexhausted";case 3:var D=this.L2();return(D==null?0:D.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||fls&&(D==null?0:D.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.B.addEventListener=function(D,X){this.eH.listen(D,X,!1,this);this.H0(D)}; g.B.removeEventListener=function(D,X){this.eH.PC(D,X,!1,this)}; g.B.dispatchEvent=function(D){if(this.J&&D.type==="pause")return!1;if(c6s){var X,M=((X=D.S)==null?void 0:X.timeStamp)||Infinity;X=M>performance.now()?M-Date.now()+performance.now():M;M=this.Y||this.J$;if((M==null?0:M.qR())||X<=((M==null?void 0:M.U)||0)){var Q;this.uA("rms",{l:"mede",sr:(Q=this.zs)==null?void 0:Q.LF(),et:D.type});return!1}if(this.Ai)return this.uA("rms",{l:"medes",et:D.type}),M&&D.type==="seeking"&&(M.U=performance.now(),this.Ai=!1),!1}return this.eH.dispatchEvent(D)}; g.B.Cu=function(){this.a5=!1}; g.B.yg=function(){this.a5=!0;this.fQ(!0)}; g.B.Ef=function(){this.a5&&!this.QJ()&&this.fQ(!0)}; g.B.equals=function(D){return!!D&&D.Ly()===this.Ly()}; g.B.Yy=function(){this.sR&&this.removeEventListener("volumechange",this.Ef);ZcR&&T8(this);g.O.prototype.Yy.call(this)}; var ZcR=!1,UTm=!1,c6s=!1,fls=!1;g.B=g.LZ.prototype;g.B.isPaused=function(){return g.x(this,4)}; g.B.isPlaying=function(){return g.x(this,8)&&!g.x(this,512)&&!g.x(this,64)&&!g.x(this,2)}; g.B.isOrWillBePlaying=function(){return g.x(this,8)&&!g.x(this,2)&&!g.x(this,1024)}; g.B.isCued=function(){return g.x(this,64)&&!g.x(this,8)&&!g.x(this,4)}; g.B.isBuffering=function(){return g.x(this,1)&&!g.x(this,2)}; g.B.isError=function(){return g.x(this,128)}; g.B.isSuspended=function(){return g.x(this,512)}; g.B.IA=function(){return g.x(this,64)&&g.x(this,4)}; g.B.toString=function(){return"PSt."+this.state.toString(16)}; var pc={},A6=(pc.BUFFERING="buffering-mode",pc.CUED="cued-mode",pc.ENDED="ended-mode",pc.PAUSED="paused-mode",pc.PLAYING="playing-mode",pc.SEEKING="seeking-mode",pc.UNSTARTED="unstarted-mode",pc);g.U(cQ,g.O);g.B=cQ.prototype;g.B.jh=function(){return this.slot}; g.B.FF=function(){return this.layout}; g.B.init=function(){var D=rE(this.layout.clientMetadata,"metadata_type_video_length_seconds"),X=rE(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X9(this.layout.Sh)&&GI(this.Yl.get(),this.layout.layoutId,{EJ:X,TM:D,listener:this});sR2(this.B2.get(),this);this.kf()}; g.B.kd=function(){}; g.B.release=function(){X9(this.layout.Sh)&&zI(this.Yl.get(),this.layout.layoutId);KPm(this.B2.get(),this);this.yU()}; g.B.UF=function(){}; g.B.cA=function(){}; g.B.startRendering=function(D){if(D.layoutId!==this.layout.layoutId){this.x8.Ah(this.slot,D,new v0("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");var X=!1}else X=!0;X&&(this.GX="rendering_start_requested",this.e3(-1),this.zM(D),this.kW(!1))}; g.B.UH=function(D,X){if(X.layoutId===this.layout.layoutId){this.GX="rendering";this.S=this.Qf.get().isMuted()||this.Qf.get().getVolume()===0;this.Z1("impression");this.Z1("start");if(this.Qf.get().isMuted()){SN(this,"mute");var M;D=((M=Uf(this))==null?void 0:M.muteCommands)||[];SV(this.Xk.get(),D,this.layout.layoutId)}if(this.Qf.get().isFullscreen()){this.d6("fullscreen");var Q;M=((Q=Uf(this))==null?void 0:Q.fullscreenCommands)||[];SV(this.Xk.get(),M,this.layout.layoutId)}Q=this.OH.get();Q.Y&&!Q.G&& (Q.D=!1,Q.G=!0,Q.actionType!=="ad_to_video"&&(nX("pbs",void 0,Q.actionType),g.cX("finalize_all_timelines")&&dX9(Q.actionType)));this.e3(1);this.w_(X);var h;X=((h=Uf(this))==null?void 0:h.impressionCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.mN=function(D,X,M){this.D={gZ:3,By:D==="load_timeout"?402:400,errorMessage:X.message};this.Z1("error");var Q;D=((Q=Uf(this))==null?void 0:Q.errorCommands)||[];SV(this.Xk.get(),D,this.layout.layoutId);this.x8.Ah(this.slot,this.layout,X,M)}; g.B.Ad=function(){if(this.GX==="rendering"){SN(this,"pause");var D,X=((D=Uf(this))==null?void 0:D.pauseCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId);this.e3(2)}}; g.B.td=function(){if(this.GX==="rendering"){SN(this,"resume");var D,X=((D=Uf(this))==null?void 0:D.resumeCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.M6=function(D,X){X=X===void 0?!1:X;if(this.GX==="rendering"){wz(this.wC,D*1E3,X);this.S||wz(this.wC,D*1E3,X===void 0?!1:X);var M=this.rz();M&&(M/=1E3,(D>=M*.25||X)&&this.Z1("first_quartile"),(D>=M*.5||X)&&this.Z1("midpoint"),(D>=M*.75||X)&&this.Z1("third_quartile"),this.bj.get().B.W().experiments.Z4("enable_progress_command_flush_on_kabuki")?Z$(this.G,D*1E3,X):Z$(this.G,D*1E3,Sco(this)?X:!1))}}; g.B.QP=function(){var D;return((D=W7(this.dC.get(),1))==null?void 0:D.clientPlaybackNonce)||""}; g.B.RM=function(D,X){D.layoutId!==this.layout.layoutId?this.x8.Ah(this.slot,D,new v0("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"):X()}; g.B.IN=function(D,X,M){if(X.layoutId===this.layout.layoutId)switch(this.GX="not_rendering",this.layoutExitReason=void 0,(D=M!=="normal"||this.position+1===this.U)&&this.kW(D),this.Jd(M),this.e3(0),M){case "abandoned":if(Ta(this.wC,"impression")){var Q,h=((Q=Uf(this))==null?void 0:Q.abandonCommands)||[];SV(this.Xk.get(),h,this.layout.layoutId)}break;case "normal":Q=((h=Uf(this))==null?void 0:h.completeCommands)||[];SV(this.Xk.get(),Q,this.layout.layoutId);break;case "skipped":var H;Q=((H=Uf(this))== null?void 0:H.skipCommands)||[];SV(this.Xk.get(),Q,this.layout.layoutId)}}; g.B.ZR=function(){return this.layout.layoutId}; g.B.b8=function(){return this.D}; g.B.jO=function(){if(this.GX==="rendering"){this.wC.Z1("active_view_measurable");var D,X=((D=Uf(this))==null?void 0:D.activeViewMeasurableCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.V0=function(){if(this.GX==="rendering"){this.wC.Z1("active_view_fully_viewable_audible_half_duration");var D,X=((D=Uf(this))==null?void 0:D.activeViewFullyViewableAudibleHalfDurationCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.zi=function(){if(this.GX==="rendering"){this.wC.Z1("active_view_viewable");var D,X=((D=Uf(this))==null?void 0:D.activeViewViewableCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.q9=function(){if(this.GX==="rendering"){this.wC.Z1("audio_audible");var D,X=((D=Uf(this))==null?void 0:D.activeViewAudioAudibleCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.Kn=function(){if(this.GX==="rendering"){this.wC.Z1("audio_measurable");var D,X=((D=Uf(this))==null?void 0:D.activeViewAudioMeasurableCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}}; g.B.kW=function(D){this.OH.get().kW(rE(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,D,this.position,this.U,!1)}; g.B.onFullscreenToggled=function(D){if(this.GX==="rendering")if(D){this.d6("fullscreen");var X,M=((X=Uf(this))==null?void 0:X.fullscreenCommands)||[];SV(this.Xk.get(),M,this.layout.layoutId)}else this.d6("end_fullscreen"),X=((M=Uf(this))==null?void 0:M.endFullscreenCommands)||[],SV(this.Xk.get(),X,this.layout.layoutId)}; g.B.onVolumeChange=function(){if(this.GX==="rendering")if(this.Qf.get().isMuted()){SN(this,"mute");var D,X=((D=Uf(this))==null?void 0:D.muteCommands)||[];SV(this.Xk.get(),X,this.layout.layoutId)}else SN(this,"unmute"),D=((X=Uf(this))==null?void 0:X.unmuteCommands)||[],SV(this.Xk.get(),D,this.layout.layoutId)}; g.B.Sg=function(){}; g.B.TN=function(){}; g.B.HL=function(){}; g.B.BL=function(){}; g.B.PL=function(){}; g.B.d6=function(D){this.wC.d6(D,!this.S)}; g.B.Z1=function(D){this.wC.Z1(D,!this.S)};g.U(yb,cQ);g.B=yb.prototype;g.B.kf=function(){}; g.B.yU=function(){var D=this.B2.get();D.AB===this&&(D.AB=null);this.timer.stop()}; g.B.UF=function(){this.timer.stop();cQ.prototype.Ad.call(this)}; g.B.cA=function(){Euo(this);cQ.prototype.td.call(this)}; g.B.rz=function(){return rE(this.FF().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.B.n2=function(D,X){var M=this;this.RM(D,function(){M.GX!=="rendering_stop_requested"&&(M.GX="rendering_stop_requested",M.layoutExitReason=X,Bms(M,X),M.timer.stop())})}; g.B.Ja=function(){var D=Date.now(),X=D-this.xT;this.xT=D;this.GC+=X;this.GC>=this.rz()?(this.GC=this.rz(),this.M6(this.GC/1E3,!0),PQ(this,this.GC),this.VQ()):(this.M6(this.GC/1E3),PQ(this,this.GC))}; g.B.qX=function(D){if(this.GX!=="not_rendering"){D=ZdR(this,D);var X=this.Qf.get().getPresentingPlayerType()===2;this.GX==="rendering_start_requested"?X&&YJ(D)&&this.xu():X?g.qZ(D,2)?Hb("Receive player ended event during MediaBreak",this.jh(),this.FF()):UZi(this,D):this.Ys()}}; g.B.zM=function(){cq1(this);cZH(this.Qf.get());this.B2.get().AB=this;Pz("pbp")||Pz("pbs")||nX("pbp");Pz("pbp","watch")||Pz("pbs","watch")||nX("pbp",void 0,"watch");this.xu()}; g.B.w_=function(D){this.OH.get();var X=rE(D.clientMetadata,"metadata_type_ad_placement_config").kind,M=this.position===0;D=rE(D.clientMetadata,"metadata_type_linked_in_player_layout_type");D={adBreakType:fZ(X),adType:q2i(D)};var Q=void 0;M?X!=="AD_PLACEMENT_KIND_START"&&(Q="video_to_ad"):Q="ad_to_ad";SQ("ad_mbs",void 0,Q);g.Eg(D,Q);Euo(this)}; g.B.Ys=function(){this.VQ()}; g.B.Jd=function(){}; g.B.OA=function(){};g.U(bc,cQ);g.B=bc.prototype;g.B.Ys=function(){this.VQ()}; g.B.qX=function(D){this.RT(D)}; g.B.kf=function(){rE(this.FF().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=rE(this.FF().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.B.yU=function(){rE(this.FF().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.pY&&this.rI.get().removeCueRange(this.pY);this.pY=void 0;var D;(D=this.T8)==null||D.dispose();this.xF&&this.xF.dispose()}; g.B.zM=function(D){var X=mw(this.bj.get()),M=nZ(this.bj.get());if(X&&M){M=rE(D.clientMetadata,"metadata_type_preload_player_vars");var Q=this.bj.get();Q=g.lx(Q.B.W().experiments,"html5_preload_wait_time_secs");M&&this.xF&&this.xF.start(Q*1E3)}M=rE(D.clientMetadata,"metadata_type_ad_video_id");Q=rE(D.clientMetadata,"metadata_type_legacy_info_card_vast_extension");M&&Q&&this.BB.get().B.W().uj.add(M,{Sf:Q});(M=rE(D.clientMetadata,"metadata_type_sodar_extension_data"))&&Aoo(this.Xz.get(),M);fy2(this.Qf.get(), !1);cq1(this);X?(M=this.mH.get(),D=rE(D.clientMetadata,"metadata_type_player_vars"),M.B.loadVideoByPlayerVars(D,!1,2)):ohp(this.mH.get(),rE(D.clientMetadata,"metadata_type_player_vars"));var h;(h=this.T8)==null||h.start();X||this.mH.get().B.playVideo(2)}; g.B.w_=function(){var D;(D=this.T8)==null||D.stop();this.sV();(this.adCpn=$Z9(this))||Hb("Media layout confirmed started, but ad CPN not set.");this.lM.get().Te("onAdStart",this.adCpn);this.ew=Date.now()}; g.B.rz=function(){var D;return(D=W7(this.dC.get(),2))==null?void 0:D.Pn}; g.B.ql=function(){this.wC.d6("clickthrough")}; g.B.n2=function(D,X){var M=this;this.RM(D,function(){if(M.GX!=="rendering_stop_requested"){M.GX="rendering_stop_requested";M.layoutExitReason=X;Bms(M,X);var Q;(Q=M.T8)==null||Q.stop();M.xF&&M.xF.stop();fy2(M.Qf.get(),!0);var h;((h=M.shrunkenPlayerBytesConfig)==null?0:h.shouldRequestShrunkenPlayerBytes)&&M.Qf.get().bL(!1)}})}; g.B.onCueRangeEnter=function(D){D!==this.pY?Hb("Received CueRangeEnter signal for unknown layout.",this.jh(),this.FF(),{cueRangeId:D}):(this.rI.get().removeCueRange(this.pY),this.pY=void 0,D=rE(this.FF().clientMetadata,"metadata_type_video_length_seconds"),this.M6(D,!0),this.Z1("complete"))}; g.B.Jd=function(D){D!=="abandoned"&&this.lM.get().Te("onAdComplete");this.lM.get().Te("onAdEnd",this.adCpn)}; g.B.sV=function(){this.pY="adcompletioncuerange:"+this.FF().layoutId;this.rI.get().addCueRange(this.pY,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.B.onCueRangeExit=function(){}; g.B.OA=function(D){this.GX==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&D>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Qf.get().bL(!0),this.M6(D))}; g.B.M6=function(D,X){cQ.prototype.M6.call(this,D,X===void 0?!1:X);X=Date.now()-this.ew;var M=D*1E3,Q={contentCpn:this.QP(),adCpn:$Z9(this)};if(D-this.BE>=5){var h=X0&&qn(this.S(),X)}; g.B.Xh=function(D){this.D.delete(D.slotId);for(var X=[],M=g.e(this.Ow.values()),Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=Q.trigger;h instanceof dM&&h.triggeringSlotId===D.slotId&&X.push(Q)}X.length>0&&qn(this.S(),X)}; g.B.T_=function(D){for(var X=[],M=g.e(this.Ow.values()),Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=Q.trigger;h instanceof yR&&h.slotType===D.slotType&&h.S!==D.slotId&&X.push(Q)}X.length>0&&qn(this.S(),X)}; g.B.M2=function(D){this.Y.add(D.slotId);for(var X=[],M=g.e(this.Ow.values()),Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q.trigger instanceof ek&&D.slotId===Q.trigger.triggeringSlotId&&X.push(Q);X.length>0&&qn(this.S(),X)}; g.B.TF=function(D){this.Y.delete(D.slotId);this.U.add(D.slotId);for(var X=[],M=g.e(this.Ow.values()),Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,Q.trigger instanceof R$)D.slotId===Q.trigger.triggeringSlotId&&X.push(Q);else if(Q.trigger instanceof a$){var h=Q.trigger;D.slotId===h.slotId&&this.G.has(h.triggeringLayoutId)&&X.push(Q)}X.length>0&&qn(this.S(),X)}; g.B.yV=function(D){for(var X=[],M=g.e(this.Ow.values()),Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q.trigger instanceof I$&&D.slotId===Q.trigger.triggeringSlotId&&X.push(Q);X.length>0&&qn(this.S(),X)}; g.B.Px=function(D){for(var X=[],M=g.e(this.Ow.values()),Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q.trigger instanceof gM&&D.slotId===Q.trigger.triggeringSlotId&&X.push(Q);X.length>0&&qn(this.S(),X)}; g.B.nY=function(D,X){this.X.add(X.layoutId)}; g.B.nF=function(D,X){this.X.delete(X.layoutId)}; g.B.UH=function(D,X){this.G.add(X.layoutId);for(var M=[],Q=g.e(this.Ow.values()),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.trigger instanceof Fz)X.layoutId===h.trigger.triggeringLayoutId&&M.push(h);else if(h.trigger instanceof Ei){var H=h.trigger;D.slotType===H.slotType&&X.layoutType===H.layoutType&&X.layoutId!==H.S&&M.push(h)}else h.trigger instanceof a$&&(H=h.trigger,X.layoutId===H.triggeringLayoutId&&this.U.has(H.slotId)&&M.push(h));M.length>0&&qn(this.S(),M)}; g.B.IN=function(D,X,M){this.G.delete(X.layoutId);D=[];for(var Q=g.e(this.Ow.values()),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.trigger instanceof $D&&X.layoutId===h.trigger.triggeringLayoutId&&D.push(h),h.trigger instanceof VR){var H=h.trigger;X.layoutId===H.triggeringLayoutId&&H.S.includes(M)&&D.push(h)}D.length>0&&qn(this.S(),D)}; g.B.Nw=function(){}; g.B.Cm=function(){this.U.clear()}; g.B.zL=function(){};g.U(VS,g.O);VS.prototype.cL=function(D,X,M,Q){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(X instanceof si))throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in CloseRequestedTriggerAdapter");this.Ow.set(X.triggerId,new o$(D,X,M,Q))}; VS.prototype.vL=function(D){this.Ow.delete(D.triggerId)};g.U(BN,g.O);BN.prototype.cL=function(D,X,M,Q){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(X instanceof Ly||X instanceof me))throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ow.set(X.triggerId,new o$(D,X,M,Q))}; BN.prototype.vL=function(D){this.Ow.delete(D.triggerId)}; BN.prototype.Cm=function(D){for(var X=[],M=X.push,Q=M.apply,h=[],H=g.e(this.Ow.values()),t=H.next();!t.done;t=H.next())t=t.value,t.trigger instanceof Ly&&t.trigger.Vw===D&&h.push(t);Q.call(M,X,g.xW(h));M=X.push;Q=M.apply;h=[];H=g.e(this.Ow.values());for(t=H.next();!t.done;t=H.next())t=t.value,t.trigger instanceof me&&t.trigger.S!==D&&h.push(t);Q.call(M,X,g.xW(h));X.length&&qn(this.S(),X)}; BN.prototype.zL=function(D){for(var X=[],M=X.push,Q=M.apply,h=[],H=g.e(this.Ow.values()),t=H.next();!t.done;t=H.next()){t=t.value;var q=t.trigger;q instanceof me&&q.S===D&&h.push(t)}Q.call(M,X,g.xW(h));X.length&&qn(this.S(),X)};g.U(ZC,g.O);g.B=ZC.prototype;g.B.cL=function(D,X,M,Q){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");var h="adtriggercuerange:"+X.triggerId;if(X instanceof fy)uMs(this,D,X,M,Q,h,X.S.start,X.S.end,X.Vw,X.visible);else if(X instanceof Ky)uMs(this,D,X,M,Q,h,0x7ffffffffffff,0x8000000000000,X.Vw,X.visible);else throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in CueRangeTriggerAdapter");}; g.B.vL=function(D){var X=this.Ow.get(D.triggerId);X&&this.rI.get().removeCueRange(X.cueRangeId);this.Ow.delete(D.triggerId)}; g.B.onCueRangeEnter=function(D){if(D=jkn(this,D))if(D=this.Ow.get(D))if(g.x(Wv(this.Qf.get()),32))this.S.add(D.cueRangeId);else{var X=D==null?void 0:D.Pw.trigger;(X instanceof fy||X instanceof Ky)&&qn(this.G(),[D.Pw])}}; g.B.onCueRangeExit=function(D){(D=jkn(this,D))&&(D=this.Ow.get(D))&&this.S.delete(D.cueRangeId)}; g.B.qX=function(D){if(NZ(D,16)<0){D=g.e(this.S);for(var X=D.next();!X.done;X=D.next())this.onCueRangeEnter(X.value,!0);this.S.clear()}}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.UH=function(){}; g.B.IN=function(){}; g.B.Nw=function(){}; g.B.OA=function(){}; g.B.onFullscreenToggled=function(){}; g.B.Sg=function(){}; g.B.TN=function(){}; g.B.HL=function(){}; g.B.onVolumeChange=function(){}; g.B.BL=function(){}; g.B.PL=function(){};g.U(Ub,g.O); Ub.prototype.cL=function(D,X,M,Q){if(this.G.has(X.triggerId)||this.Y.has(X.triggerId))throw new G("Tried to re-register the trigger.");D=new o$(D,X,M,Q);if(D.trigger instanceof cF)this.G.set(D.trigger.triggerId,D);else if(D.trigger instanceof BF)this.Y.set(D.trigger.triggerId,D);else throw new G("Incorrect TriggerType: Tried to register trigger of type "+D.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.G.has(D.trigger.triggerId)&&D.slot.slotId===this.S&&qn(this.U(),[D])}; Ub.prototype.vL=function(D){this.G.delete(D.triggerId);this.Y.delete(D.triggerId)}; Ub.prototype.Bl=function(D){D=D.slotId;if(this.S!==D){var X=[];this.S!=null&&X.push.apply(X,g.xW(DJm(this.Y,this.S)));D!=null&&X.push.apply(X,g.xW(DJm(this.G,D)));this.S=D;X.length&&qn(this.U(),X)}};g.U(cN,g.O);g.B=cN.prototype;g.B.cL=function(D,X,M,Q){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(X instanceof PF))throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ow.set(X.triggerId,new o$(D,X,M,Q))}; g.B.vL=function(D){this.Ow.delete(D.triggerId)}; g.B.UH=function(){}; g.B.IN=function(){}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){};g.U(f_,g.O);g.B=f_.prototype;g.B.Nw=function(D,X){for(var M=[],Q=g.e(this.Ow.values()),h=Q.next();!h.done;h=Q.next()){h=h.value;var H=h.trigger;H.opportunityType===D&&(H.associatedSlotId&&H.associatedSlotId!==X||M.push(h))}M.length&&qn(this.S(),M)}; g.B.cL=function(D,X,M,Q){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(X instanceof lm2))throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in OpportunityEventTriggerAdapter");this.Ow.set(X.triggerId,new o$(D,X,M,Q))}; g.B.vL=function(D){this.Ow.delete(D.triggerId)}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.UH=function(){}; g.B.IN=function(){};g.U(Sp,g.O);g.B=Sp.prototype;g.B.cL=function(D,X,M,Q){D=new o$(D,X,M,Q);if(X instanceof Zz||X instanceof Sk||X instanceof Ui||X instanceof ny||X instanceof Tld){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");this.Ow.set(X.triggerId,D)}else throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in PrefetchTriggerAdapter");}; g.B.vL=function(D){this.Ow.delete(D.triggerId)}; g.B.mU=function(D){var X=D.slotFulfillmentTriggers.find(function(M){return M instanceof Zz}); X&&(Eb(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",X.breakDurationMs,new Set([D.slotId]),!0),YK(this.B2.get(),"ads_css","sid."+D.slotId+";bd."+X.breakDurationMs))}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.UH=function(){}; g.B.IN=function(){}; g.B.Nw=function(){}; g.B.ut=function(D){var X=this;if(!this.S)return YK(this.B2.get(),"ads_nfi","a.pta;cid."+D.identifier),!1;this.G&&this.G.stop();this.D&&g.G1(this.D);var M=hld(this,D);if(!M){var Q=X0o(this),h=this.J!==void 0&&Date.now()<=this.J+1E4;YK(this.B2.get(),"ads_ncfs","cid."+D.identifier+";cd."+D.rp.toFixed(3)+";ccs."+h+";cfa."+this.U+";bdc."+Q.length+";"+Q.slice(0,6).map(function(H){return";bd."+H}).join("")); return h?(DC(this.r6,this.S,D),!0):!1}(Q=rE(M.slot.clientMetadata,"metadata_type_triggering_cue_point"))?Q.current=D:Hb("Expected triggering cue point ref to be available",M.slot);(new g.W5(function(){var H=M.trigger,t=M.slot;Eb(X,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",H.breakDurationMs,new Set,!0);Eb(X,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",H.breakDurationMs,new Set,!1);for(var q=0,w=g.e(X.Ow.values()),T=w.next();!T.done;T=w.next()){T=T.value;var L=T.trigger; T.slot.slotId===t.slotId&&(X.Ow.delete(L.triggerId),q++)}YK(X.B2.get(),"ads_csf","sid."+t.slotId+";bd."+H.breakDurationMs+";dt."+q)},10)).start(); return!0}; g.B.FX=function(){}; g.B.Cm=function(D){var X=this;this.U=!1;this.J=Date.now();if(this.S&&this.S.contentCpn!==D)Hb("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:D,fetchInstructionsCpn:this.S.contentCpn}),yS(this);else{this.Y=new g.W5(function(){if(X.U)delete X.Y;else{var Q=X.Qf.get().getGetAdBreakContext(),h;if(Number(Q==null?void 0:(h=Q.livePlaybackPosition)==null?void 0:h.utcTimeMillis)>0)delete X.Y,Qw5(X);else{var H;(H=X.Y)==null||H.start()}}},200); var M;(M=this.Y)==null||M.start()}}; g.B.zL=function(D){this.S&&this.S.contentCpn!==D&&Hb("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:D,fetchInstructionsCpn:this.S.contentCpn},!0);yS(this)}; g.B.jP=function(D){var X=this;if(this.S)Hb("Unexpected multiple fetch instructions for the current content");else{this.S=D;D=t55(D);this.G=new g.W5(function(){Qw5(X)},D?D:6E5); this.G.start();this.D=new g.W5(function(){X.S&&(X.G&&(X.G.stop(),X.G.start()),M55(X,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},H0d(this.S)); D=this.Qf.get().getCurrentTimeSec(1,!1);for(var M=g.e(this.AR.get().Tg),Q=M.next();!Q.done;Q=M.next())Q=Q.value,YK(this.B2.get(),"nocache","ct."+Date.now()+";cmt."+D+";d."+Q.rp.toFixed(3)+";tw."+(Q.startSecs-D)+";cid."+Q.identifier+";")}}; g.B.Yy=function(){g.O.prototype.Yy.call(this);yS(this)};g.U(PN,g.O);g.B=PN.prototype;g.B.cL=function(D,X,M,Q){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");if(!(X instanceof iA))throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ow.set(X.triggerId,new o$(D,X,M,Q));D=this.S.has(X.triggeringLayoutId)?this.S.get(X.triggeringLayoutId):new Set;D.add(X);this.S.set(X.triggeringLayoutId,D)}; g.B.vL=function(D){this.Ow.delete(D.triggerId);if(!(D instanceof iA))throw new G("Incorrect TriggerType: Tried to unregister trigger of type "+D.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var X=this.G.get(D.triggerId);X&&(X.dispose(),this.G.delete(D.triggerId));if(X=this.S.get(D.triggeringLayoutId))X.delete(D),X.size===0&&this.S.delete(D.triggeringLayoutId)}; g.B.mU=function(){}; g.B.Xh=function(){}; g.B.T_=function(){}; g.B.M2=function(){}; g.B.TF=function(){}; g.B.yV=function(){}; g.B.Px=function(){}; g.B.nY=function(){}; g.B.nF=function(){}; g.B.Nw=function(){}; g.B.UH=function(D,X){var M=this;if(this.S.has(X.layoutId)){D=this.S.get(X.layoutId);D=g.e(D);var Q=D.next();for(X={};!Q.done;X={iP:void 0},Q=D.next())X.iP=Q.value,Q=new g.W5(function(h){return function(){var H=M.Ow.get(h.iP.triggerId);qn(M.Y(),[H])}}(X),X.iP.durationMs),Q.start(),this.G.set(X.iP.triggerId,Q)}}; g.B.IN=function(){};g.U(mx,g.O);mx.prototype.cL=function(D,X){if(this.Ow.has(X.triggerId))throw new G("Tried to register duplicate trigger for slot.");throw new G("Incorrect TriggerType: Tried to register trigger of type "+X.triggerType+" in VideoTransitionTriggerAdapter.");}; mx.prototype.vL=function(D){this.Ow.delete(D.triggerId)};R2.prototype.E$=function(D){return D.kind==="AD_PLACEMENT_KIND_START"};g.U(vN,g.O);vN.prototype.logEvent=function(D){this.S(D)}; vN.prototype.S=function(D,X,M,Q,h,H,t,q,w,T,L,K){var a=this;K=K===void 0?0:K;mV(this.bj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+D,"slot:",h,"layout:",H,"ping:",t,"Opportunity:",{opportunityType:X,associatedSlotId:M,GR5:Q,nB5:q,adSlotLoggingData:w,adLayoutLoggingData:T});try{var F=function(){if(!a.bj.get().B.W().T("html5_disable_client_tmp_logs")&&D!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){D||Hb("Empty PACF event type",h,H);var V=p0(a.G.get()),c={eventType:D,eventOrder:++a.eventCount}, S={};h&&(S.slotData=O2(V,h));H&&(S.layoutData=BXo(V,H));t&&(S.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:t.S.serializedAdPingMetadata,pingIndex:t.index});q&&(S.triggerData=C0(q.trigger,q.category));X&&(S.opportunityData=Zem(V,X,M,Q));V={organicPlaybackContext:{contentCpn:W7(a.dC.get(),1).clientPlaybackNonce}};V.organicPlaybackContext.isLivePlayback=W7(a.dC.get(),1).yq;var b;V.organicPlaybackContext.isMdxPlayback=(b=W7(a.dC.get(),1))==null?void 0: b.isMdxPlayback;var n;if((n=W7(a.dC.get(),1))==null?0:n.daiEnabled)V.organicPlaybackContext.isDaiContent=!0;var R;if(b=(R=W7(a.dC.get(),2))==null?void 0:R.clientPlaybackNonce)V.adVideoPlaybackContext={adVideoCpn:b};V&&(S.externalContext=V);c.adClientData=S;w&&(c.serializedSlotAdServingData=w.serializedSlotAdServingDataEntry);T&&(c.serializedAdServingData=T.serializedAdServingDataEntry);L&&(c.errorInfo=L);g.Tm("adsClientStateChange",{adsClientEvent:c})}}; K&&K>0?g.zj(g.u2(),function(){return F()},K):F()}catch(V){mV(this.bj.get(),"html5_log_pacf_logging_errors")&&g.zj(g.u2(),function(){Hb(V instanceof Error?V:String(V),h,H,{pacf_message:"exception during pacf logging"})})}};g.U(d6,vN);d6.prototype.S=function(D,X,M,Q,h,H,t,q,w,T,L){var K=this.bj.get();g.Nn(K.B.W())?(K=this.bj.get(),K=g.lx(K.B.W().experiments,"H5_async_logging_delay_ms")):K=void 0;vN.prototype.S.call(this,D,X,M,Q,h,H,t,q,w,T,L,K)};r6.prototype.clear=function(){this.S.clear()};i3.prototype.state=function(){return this.S==="fulfilled"?{state:"fulfilled",value:this.result}:this.S==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; i3.prototype.U=function(D){C_(D)||o2(D)?l3(Ob(D),this.U.bind(this),this.reject.bind(this)):(this.S="fulfilled",this.result=D,Ys(this))}; i3.prototype.reject=function(D){this.S="rejected";this.error=D;Ys(this)}; var o2=Ix(function(D){return s0R(D)?D instanceof i3:!1});var z0=window.Q9s||"es-419";DQ.prototype.tp=function(D){this.client=D}; DQ.prototype.S=function(){this.clear();this.csn=g.Va()}; DQ.prototype.clear=function(){this.Y.clear();this.G.clear();this.U.clear();this.csn=null};MS.prototype.tp=function(D){g.DS(XL().tp).bind(XL())(D)}; MS.prototype.clear=function(){g.DS(XL().clear).bind(XL())()};g.B=Qf.prototype;g.B.tp=function(D){this.client=D}; g.B.f9=function(D,X){var M=this;X=X===void 0?{}:X;g.DS(function(){var Q,h,H,t=((Q=g.Z(D==null?void 0:D.commandMetadata,g.$O))==null?void 0:Q.rootVe)||((h=g.Z(D==null?void 0:D.commandMetadata,EWZ))==null?void 0:(H=h.screenVisualElement)==null?void 0:H.uiType);if(t){Q=g.Z(D==null?void 0:D.commandMetadata,psK);if(Q==null?0:Q.parentTrackingParams){var q=g.sT(Q.parentTrackingParams);if(Q.parentCsn)var w=Q.parentCsn}else X.clickedVisualElement?q=X.clickedVisualElement:D.clickTrackingParams&&(q=g.sT(D.clickTrackingParams)); a:{Q=g.Z(D,g.QM);h=g.Z(D,ior);if(Q){if(h=b01(Q,"VIDEO")){Q={token:h,videoId:Q.videoId};break a}}else if(h&&(Q=b01(h,"PLAYLIST"))){Q={token:Q,playlistId:h.playlistId};break a}Q=void 0}X=Object.assign({},{cttAuthInfo:Q,parentCsn:w},X);if(g.cX("expectation_logging")){var T;X.loggingExpectations=((T=g.Z(D==null?void 0:D.commandMetadata,EWZ))==null?void 0:T.loggingExpectations)||void 0}Ht(M,t,q,X)}else g.P3(new g.ys("Error: Trying to create a new screen without a rootVeType",D))})()}; g.B.clickCommand=function(D,X,M){D=D.clickTrackingParams;M=M===void 0?0:M;D?(M=g.Va(M===void 0?0:M))?(Y0(this.client,M,g.sT(D),X),X=!0):X=!1:X=!1;return X}; g.B.stateChanged=function(D,X,M){this.visualElementStateChanged(g.sT(D),X,M===void 0?0:M)}; g.B.visualElementStateChanged=function(D,X,M){M=M===void 0?0:M;M===0&&this.G.has(M)?this.K.push([D,X]):rHd(this,D,X,M)};w8.prototype.fetch=function(D,X,M){var Q=this,h=AHH(D,X,M);return new Promise(function(H,t){function q(){if(M==null?0:M.j3)try{var T=Q.handleResponse(D,h.status,h.response,M);H(T)}catch(L){t(L)}else H(Q.handleResponse(D,h.status,h.response,M))} h.onerror=q;h.onload=q;var w;h.send((w=X.body)!=null?w:null)})}; w8.prototype.handleResponse=function(D,X,M,Q){M=M.replace(")]}'","");try{var h=JSON.parse(M)}catch(H){g.P3(new g.ys("JSON parsing failed after XHR fetch",D,X,M));if((Q==null?0:Q.j3)&&M)throw new g.Og(1,"JSON parsing failed after XHR fetch");h={}}X!==200&&(g.P3(new g.ys("XHR API fetch failed",D,X,M)),h=Object.assign({},h,{errorMetadata:{status:X}}));return h};TY.getInstance=function(){var D=g.mn("ytglobal.storage_");D||(D=new TY,g.PZ("ytglobal.storage_",D));return D}; TY.prototype.estimate=function(){var D,X,M;return g.r(function(Q){D=navigator;return((X=D.storage)==null?0:X.estimate)?Q.return(D.storage.estimate()):((M=D.webkitTemporaryStorage)==null?0:M.queryUsageAndQuota)?Q.return(Y2H()):Q.return()})}; g.PZ("ytglobal.storageClass_",TY);Ll.prototype.s5=function(D){this.handleError(D)}; Ll.prototype.logEvent=function(D,X){switch(D){case "IDB_DATA_CORRUPTED":g.cX("idb_data_corrupted_killswitch")||this.S("idbDataCorrupted",X);break;case "IDB_UNEXPECTEDLY_CLOSED":this.S("idbUnexpectedlyClosed",X);break;case "IS_SUPPORTED_COMPLETED":g.cX("idb_is_supported_completed_killswitch")||this.S("idbIsSupportedCompleted",X);break;case "QUOTA_EXCEEDED":JHR(this,X);break;case "TRANSACTION_ENDED":this.Y&&Math.random()<=.1&&this.S("idbTransactionEnded",X);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":D= Object.assign({},X,{hasWindowUnloaded:this.G}),this.S("idbTransactionAborted",D)}};var YO={},TD_=g.uD("yt-player-local-media",{Af:(YO.index={kE:2},YO.media={kE:2},YO.captions={kE:5},YO),shared:!1,upgrade:function(D,X){X(2)&&(g.yu(D,"index"),g.yu(D,"media"));X(5)&&g.yu(D,"captions");X(6)&&(Pc(D,"metadata"),Pc(D,"playerdata"))}, version:5});var Xih={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},li;a:{var J6=g.Qm();J6=J6.toLowerCase();if(g.ub(J6,"android")){var Mf_=J6.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Mf_){var QMb=parseFloat(Mf_[1]);if(QMb<100){li=QMb;break a}}var hth=J6.match("("+Object.keys(Xih).join("|")+")");li=hth?Xih[hth[0]]:0}else li=void 0}var vk=li,g_=vk>=0;var xJp={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0, defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND", !0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var Gds=xf(function(){var D,X;return(X=(D=window).matchMedia)==null?void 0:X.call(D,"(prefers-reduced-motion: reduce)").matches});var Kl;g.s7=new tV;Kl=0;var z3=MVn()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Jg?!0:!1;var vs={LO:function(D,X){var M=D[0];D[0]=D[X%D[N[17]]];D[X%D[N[17]]]=M}, rR:function(D,X){D[N[23]](0,X)}, Hg:function(D){D[N[73]]()}};var dls={zD2:"adunit",Cf4:"detailpage",Zks:"editpage",pLf:"embedded",Bez:"leanback",c62:"previewpage",tNf:"profilepage",FW:"unplugged",CAs:"playlistoverview",Zz5:"sponsorshipsoffer",cw2:"shortspage",y_C:"handlesclaiming",Ee$:"immersivelivepage",yzs:"creatormusic",kuj:"immersivelivepreviewpage",WE5:"admintoolyurt",dej:"shortsaudiopivot",gc$:"consumption",Ews:"background_audio_playback"};var QdH=2592E3;var xO,HfW,V4;xO={};g.fl=(xO.STOP_EVENT_PROPAGATION="html5-stop-propagation",xO.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",xO.IV_DRAWER_OPEN="ytp-iv-drawer-open",xO.MAIN_VIDEO="html5-main-video",xO.VIDEO_CONTAINER="html5-video-container",xO.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",xO.HOUSE_BRAND="house-brand",xO);HfW={};V4=(HfW.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",HfW.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",HfW);var aen={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var BIs={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},Zxs={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"},wB1={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var eHn={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.cs[N[1]][N[10]]=function(D,X){this[N[36]][D]!==X&&(this[N[36]][D]=X,this[N[6]]=N[22])}; g.cs[N[1]][N[39]]=function(D){M5(40,this);return this[N[36]][D]||null}; g.cs[N[1]][N[52]]=function(){this[N[6]]||(this[N[6]]=Ko(5,this));return this[N[6]]}; g.cs[N[1]][N[32]]=function(){var D=new g.cs(this[N[26]],this[N[31]]);D[N[20]]=this[N[20]];D[N[7]]=this[N[7]];D[N[14]]=this[N[14]];D[N[36]]=g.gS(this[N[36]]);D[N[6]]=this[N[6]];return D}; var cd1=[r21];g.yf.prototype.getLanguageInfo=function(){return this.Cy}; g.yf.prototype.getXtags=function(){if(!this.xtags){var D=this.id.split(";");D.length>1&&(this.xtags=D[1])}return this.xtags}; g.yf.prototype.toString=function(){return this.Cy.name}; g.yf.prototype.isAutoDubbed=function(){return this.Cy.getIsAutoDubbed()}; g.yf.prototype.getLanguageInfo=g.yf.prototype.getLanguageInfo;g.yf.prototype.isAutoDubbed=g.yf.prototype.isAutoDubbed;Pt.prototype.equals=function(D){return this.G===D.G&&this.S===D.S&&this.Y===D.Y&&this.reason===D.reason&&(!nl||this.jH===D.jH)}; Pt.prototype.isLocked=function(){return this.Y&&!!this.G&&this.G===this.S}; Pt.prototype.compose=function(D){if(D.Y&&b5(D))return GL;if(D.Y||b5(this))return D;if(this.Y||b5(D))return this;var X=this.G&&D.G?Math.max(this.G,D.G):this.G||D.G,M=this.S&&D.S?Math.min(this.S,D.S):this.S||D.S;X=Math.min(X,M);var Q=0;nl&&(Q=this.jH!==0&&D.jH!==0?Math.min(this.jH,D.jH):this.jH===0?D.jH:this.jH);return nl&&X===this.G&&M===this.S&&Q===this.jH||!nl&&X===this.G&&M===this.S?this:nl?new Pt(X,M,!1,M===this.S&&Q===this.jH?this.reason:D.reason,Q):new Pt(X,M,!1,M===this.S?this.reason:D.reason)}; Pt.prototype.U=function(D){return!D.video||nl&&this.jH!==0&&this.jH=0}; g.B.fZ=function(){var D=this.segments[this.segments.length-1];return D?D.endTime:NaN}; g.B.WC=function(){return this.segments[0].startTime}; g.B.uV=function(){return this.segments.length}; g.B.o4=function(){return 0}; g.B.lE=function(D){return(D=this.Su(D))?D.Ts:-1}; g.B.BQ=function(D){return(D=this.Kj(D))?D.sourceURL:""}; g.B.getStartTime=function(D){return(D=this.Kj(D))?D.startTime:0}; g.B.Tf=function(D){return this.getStartTime(D)+this.getDuration(D)}; g.B.PQ=rR(3);g.B.isLoaded=function(){return this.segments.length>0}; g.B.Kj=function(D){if(this.S&&this.S.Ts===D)return this.S;D=g.sK(this.segments,new l5(D,0,0,0,""),function(X,M){return X.Ts-M.Ts}); return this.S=D>=0?this.segments[D]:null}; g.B.Su=function(D){if(this.S&&this.S.startTime<=D&&D=0?this.segments[D]:this.segments[Math.max(0,-D-2)]}; g.B.append=function(D){if(D.length)if(D=g.Hi(D),this.segments.length){var X=this.segments.length?g.lW(this.segments).endTime:0,M=D[0].Ts-this.oN();M>1&&WHH(this.segments);for(M=M>0?0:-M+1;MD.Ts&&this.index.fS()<=D.Ts+1}; g.B.update=function(D,X,M){this.index.append(D);p91(this.index,M);D=this.index;D.G=X;D.Y="update"}; g.B.hh=function(){return this.KB()?!0:Oa.prototype.hh.call(this)}; g.B.XE=function(D,X){var M=this.index.BQ(D),Q=this.index.getStartTime(D),h=this.index.getDuration(D),H;X?h=H=0:H=this.info.jH>0?this.info.jH*h:1E3;return new Do([new xV(3,this,void 0,"liveCreateRequestInfoForSegment",D,Q,h,0,H,!X)],M)}; g.B.J9=function(){return this.KB()?0:this.initRange.length}; g.B.Kb=function(){return!1};NH.prototype.update=function(D){var X=void 0;this.G&&(X=this.G);var M=new NH,Q=Array.from(D.getElementsByTagName("S"));if(Q.length){var h=+H2(D,"timescale")||1,H=(+Q[0].getAttribute("t")||0)/h,t=+H2(D,"startNumber")||0;M.U=H;var q=X?X.startSecs+X.rp:0,w=Date.parse(r8o(H2(D,"yt:segmentIngestTime")))/1E3;M.D=D.parentElement.tagName==="SegmentTemplate";M.D&&(M.J=H2(D,"media"));D=X?t-X.Ts:1;M.X=D>0?0:-D+1;D=g.e(Q);for(Q=D.next();!Q.done;Q=D.next()){Q=Q.value;for(var T=+Q.getAttribute("d")/h,L=(+Q.getAttribute("yt:sid")|| 0)/h,K=+Q.getAttribute("r")||0,a=0;a<=K;a++)if(X&&t<=X.Ts)t++;else{var F=new vJi(t,q,T,w+L,H);M.S.push(F);var V=Q;var c=h,S=F.startSecs;F=V.getAttribute("yt:cuepointTimeOffset");var b=V.getAttribute("yt:cuepointDuration");if(F&&b){F=Number(F);S=-F/c+S;c=Number(b)/c;b=V.getAttribute("yt:cuepointContext")||null;var n=V.getAttribute("yt:cuepointIdentifier")||"";V=V.getAttribute("yt:cuepointEvent")||"";V=new XV(S,c,b,n,NSr[V]||"unknown",F)}else V=null;V&&M.Y.push(V);t++;q+=T;H+=T;w+=T+L}}M.S.length&& (M.G=g.lW(M.S))}this.X=M.X;this.G=M.G||this.G;g.ty(this.S,M.S);g.ty(this.Y,M.Y);this.D=M.D;this.J=M.J;this.U===-1&&(this.U=M.getStreamTimeOffset())}; NH.prototype.getStreamTimeOffset=function(){return this.U===-1?0:this.U};g.U(wx,g.J9);g.B=wx.prototype;g.B.eB=function(){return this.x5}; g.B.h6=function(D,X){D=Tw(this,D);return D>=0&&(X||!this.segments[D].pending)}; g.B.fS=function(){return this.Zq?this.segments.length?this.Su(this.WC()).Ts:-1:g.J9.prototype.fS.call(this)}; g.B.WC=function(){if(this.uH)return 0;if(!this.Zq)return g.J9.prototype.WC.call(this);if(!this.segments.length)return 0;var D=Math.max(g.lW(this.segments).endTime-this.qQ,0);return this.GF>0&&this.Su(D).Ts0)return this.Fo/1E3;if(!this.segments.length)return g.J9.prototype.fZ.call(this);var D=this.oN();if(!this.Zq||D<=this.segments[this.segments.length-1].Ts)D=this.segments[this.segments.length-1];else{var X=this.segments[this.segments.length-1];D=new l5(D,Math.max(0,X.startTime-(X.Ts-D)*this.x5),this.x5,0,"sq/"+D,void 0,void 0,!0)}return this.uH?Math.min(this.qQ,D.endTime):D.endTime}; g.B.uV=function(){return this.Zq?this.segments.length?this.oN()-this.fS()+1:0:g.J9.prototype.uV.call(this)}; g.B.oN=function(){var D=Math.min(this.zI,Math.max(g.J9.prototype.oN.call(this),this.Cz)),X=this.qQ*1E3;X=this.Fo>0&&this.Fo0&&this.Cz>0&&!X&&(X=this.Su(this.qQ))&&(D=Math.min(X.Ts-1,D));return D}; g.B.Gn=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.B.YW=function(D){var X=Tw(this,D.Ts);if(X>=0)this.segments[X]=D;else if(this.segments.splice(-(X+1),0,D),this.bC&&D.Ts%(300/this.x5)===0){var M=this.segments[0].Ts,Q=Math.floor(this.bC/this.x5);D=D.Ts-Q;X=-(X+1)-Q;X>0&&D>M&&(this.segments=this.segments.slice(X))}}; g.B.IW=function(){return this.Cz}; g.B.cV=function(D){return qH?!this.G&&D>=0&&this.oN()<=D:g.J9.prototype.cV.call(this,D)}; g.B.Su=function(D){if(!this.Zq)return g.J9.prototype.Su.call(this,D);if(!this.segments.length)return null;var X=this.segments[this.segments.length-1];if(D=X.endTime)X=X.Ts+Math.floor((D-X.endTime)/this.x5+1);else{X=Kf(this.segments,function(Q){return D=Q.endTime?1:0}); if(X>=0)return this.segments[X];var M=-(X+1);X=this.segments[M-1];M=this.segments[M];X=Math.floor((D-X.endTime)/((M.startTime-X.endTime)/(M.Ts-X.Ts-1))+1)+X.Ts}return this.Kj(X)}; g.B.Kj=function(D){if(!this.Zq)return g.J9.prototype.Kj.call(this,D);if(!this.segments.length)return null;var X=Tw(this,D);if(X>=0)return this.segments[X];var M=-(X+1);X=this.x5;if(M===0)var Q=Math.max(0,this.segments[0].startTime-(this.segments[0].Ts-D)*X);else M===this.segments.length?(Q=this.segments[this.segments.length-1],Q=Q.endTime+(D-Q.Ts-1)*X):(Q=this.segments[M-1],X=this.segments[M],X=(X.startTime-Q.endTime)/(X.Ts-Q.Ts-1),Q=Q.endTime+(D-Q.Ts-1)*X);return new l5(D,Q,X,0,"sq/"+D,void 0,void 0, !0)}; var qH=!1;g.U(LF,hI);g.B=LF.prototype;g.B.iV=function(){return!0}; g.B.hh=function(){return!0}; g.B.PZ=function(D){return this.y0()&&D.G&&!D.Y||!D.n$.index.cV(D.Ts)}; g.B.h7=function(){}; g.B.uG=function(D,X){return typeof D!=="number"||isFinite(D)?hI.prototype.uG.call(this,D,X===void 0?!1:X):new Do([new xV(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.oP,void 0,this.oP*this.info.jH)],"")}; g.B.XE=function(D,X){var M=M===void 0?!1:M;if(this.index.h6(D))return hI.prototype.XE.call(this,D,X);var Q=this.index.getStartTime(D),h=Math.round(this.oP*this.info.jH),H=this.oP;X&&(H=h=0);return new Do([new xV(M?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",D,Q,H,void 0,h,!X)],D>=0?"sq/"+D:"")};g.U(sM,Oa);g.B=sM.prototype;g.B.KV=function(){return!1}; g.B.y0=function(){return!1}; g.B.iV=function(){return!1}; g.B.h7=function(){return new Do([new xV(1,this,void 0,"otfInit")],this.D)}; g.B.us=function(){return null}; g.B.G5=function(D){this.PZ(D);return l$2(this,kV(D),!1)}; g.B.uG=function(D,X){X=X===void 0?!1:X;D=this.index.lE(D);X&&(D=Math.min(this.index.oN(),D+1));return l$2(this,D,!0)}; g.B.ej=function(D){D.info.type===1&&(this.S||(this.S=wF(D.G)),D.S&&D.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&J8s(this,D.S))}; g.B.PZ=function(D){return D.G===0?!0:this.index.oN()>D.Ts&&this.index.fS()<=D.Ts+1}; g.B.J9=function(){return 0}; g.B.Kb=function(){return!1};var Ga2=new Map,u92=new Map,zc9=new function(){var D=this;this.S=new Map;this.py={PmH:function(){return D.S}}};g.B=g.fF.prototype;g.B.h6=function(D){return D<=this.oN()}; g.B.o4=function(D){return this.offsets[D]}; g.B.getStartTime=function(D){return this.startTicks[D]/this.S}; g.B.Tf=function(D){return this.getStartTime(D)+this.getDuration(D)}; g.B.PQ=rR(2);g.B.hR=function(){return NaN}; g.B.getDuration=function(D){D=this.ll(D);return D>=0?D/this.S:-1}; g.B.ll=function(D){return D+1=0}; g.B.fZ=function(){return this.G?this.startTicks[this.count]/this.S:NaN}; g.B.WC=function(){return 0}; g.B.uV=function(){return this.count}; g.B.BQ=function(){return""}; g.B.lE=function(D){D=g.sK(this.startTicks.subarray(0,this.count),D*this.S);return D>=0?D:Math.max(0,-D-2)}; g.B.isLoaded=function(){return this.oN()>=0}; g.B.eW=function(D,X){if(D>=this.oN())return 0;var M=0;for(X=this.getStartTime(D)+X;Dthis.getStartTime(D);D++)M=Math.max(M,tvd(this,D)/this.getDuration(D));return M}; g.B.resize=function(D){D+=2;var X=this.offsets;this.offsets=new Float64Array(D+1);var M=this.startTicks;this.startTicks=new Float64Array(D+1);for(D=0;D0&&D&&(M=M.range.end+1,D=Math.min(D,this.info.contentLength-M),D>0&&Q.push(new xV(4,this,ls(M,D),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)));return new Do(Q)}; g.B.ej=function(D){if(D.info.type===1){if(this.S)return;this.S=wF(D.G)}else if(D.info.type===2){if(this.D||this.index.oN()>=0)return;if(g.Is(this.info)){var X=this.index,M=g.Vy(D);D=D.info.range.start;var Q=g.HY(M,0,1936286840);M=X7H(Q);X.S=M.timescale;var h=M.sM;X.offsets[0]=M.lZ+D+Q.size;X.startTicks[0]=h;X.G=!0;D=M.dW.length;for(Q=0;Q0&&D===H[0].bW)for(D=0;D=X+M)break}h.length||(D=new g.ys("b189619593",""+D,""+X,""+M),g.ET(D));return new Do(h)}; g.B.AG=function(D){for(var X=this.Fi(D.info),M=D.info.range.start+D.info.S,Q=[],h=0;h=this.index.o4(M+1);)M++;return this.V_(M,X,D.G).W2}; g.B.PZ=function(D){D.TC();return this.hh()?!0:D.range.end+1this.info.contentLength&&(X=new Ae(X.start,this.info.contentLength-1)),new Do([new xV(4,D.n$,X,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,D.clipId)]);D.type===4&&(D=this.Fi(D),D=D[D.length-1]);var M=0,Q=D.range.start+D.S+D.G;D.type===3&&(D.TC(),M=D.Ts,Q===D.range.end+1&&(M+=1));return this.V_(M,Q,X)}; g.B.G5=function(){return null}; g.B.uG=function(D,X){X=X===void 0?!1:X;D=this.index.lE(D);X&&(D=Math.min(this.index.oN(),D+1));return this.V_(D,this.index.o4(D),0,void 0)}; g.B.KV=function(){return!0}; g.B.y0=function(){return!0}; g.B.iV=function(){return!1}; g.B.J9=function(){return this.indexRange.length+this.initRange.length}; g.B.Kb=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var G7={},fHp=(G7.COLOR_PRIMARIES_BT709="bt709",G7.COLOR_PRIMARIES_BT2020="bt2020",G7.COLOR_PRIMARIES_UNKNOWN=null,G7.COLOR_PRIMARIES_UNSPECIFIED=null,G7),z7={},qnd=(z7.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",z7.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",z7.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",z7.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",z7.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,z7.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,z7);g.B=g.yy.prototype;g.B.getName=function(){return this.name}; g.B.getId=function(){return this.id}; g.B.getIsDefault=function(){return this.isDefault}; g.B.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.B.toString=function(){return this.name}; g.yy.prototype.getName=g.yy.prototype.getName;g.yy.prototype.getId=g.yy.prototype.getId;g.yy.prototype.getIsDefault=g.yy.prototype.getIsDefault;g.yy.prototype.getIsAutoDubbed=g.yy.prototype.getIsAutoDubbed;var ssi=/action_display_post/;var KqR,nF,bk;g.U(e4,g.Dq);g.B=e4.prototype;g.B.isLoading=function(){return this.state===1}; g.B.Kk=function(){return this.state===3}; g.B.i2F=function(D){var X=D.getElementsByTagName("Representation");if(D.getElementsByTagName("SegmentList").length>0||D.getElementsByTagName("SegmentTemplate").length>0){this.yq=this.G=!0;this.J||(this.J=new oJ2);A82(this.J,D);this.publish("refresh");for(D=0;D=0?L=YV(a):K=K+"?range="+a}w.call(q,new l5(T.Ts,T.startSecs,T.rp,T.S,K,L,T.G))}Q=h}M.update(Q,this.isLive,this.OR)}Yz5(this.J);return!0}this.duration=dFs(H2(D,"mediaPresentationDuration"));a:{for(D= 0;D0))return this.qx()-D}}D=this.S;for(var X in D){var M=D[X].index;if(M.isLoaded()&&!iw(D[X].info.mimeType))return M.WC()}return 0}; g.B.getStreamTimeOffset=function(){return this.K}; g.B.hR=function(D){for(var X in this.S){var M=this.S[X].index;if(M.isLoaded()){var Q=M.lE(D),h=M.hR(Q);if(h)return h+D-M.getStartTime(Q)}}return NaN}; var lk=null,qK8,JI=!((qK8=navigator.mediaCapabilities)==null||!qK8.decodingInfo),bE_={commentary:1,alternate:2,dub:3,main:4};var t5=new Set,xC=new Map;zw.prototype.clone=function(D){return new zw(this.flavor,D,this.G,this.experiments)}; zw.prototype.ip=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; zw.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 wiB={},t0=(wiB.playready=["com.youtube.playready","com.microsoft.playready"],wiB.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],wiB),kO={},Fbp=(kO.widevine="DRM_SYSTEM_WIDEVINE",kO.fairplay="DRM_SYSTEM_FAIRPLAY",kO.playready="DRM_SYSTEM_PLAYREADY",kO),ui={},TS8=(ui.widevine=1,ui.fairplay=2,ui.playready=3,ui);var w_;g.U(NI,g.O); NI.prototype.initialize=function(D,X){for(var M=this,Q=g.e(Object.keys(D)),h=Q.next();!h.done;h=Q.next()){h=g.e(D[h.value]);for(var H=h.next();!H.done;H=h.next())if(H=H.value,H.DS)for(var t=g.e(Object.keys(H.DS)),q=t.next();!q.done;q=t.next()){var w=q.value;q=w;w=t0[w];!w&&this.T("html5_enable_vp9_fairplay")&&q==="fairplay"&&(w=["com.youtube.fairplay.sbdl"]);if(w){w=g.e(w);for(var T=w.next();!T.done;T=w.next())T=T.value,this.Y[T]=this.Y[T]||new zw(q,T,H.DS[q],this.UR.experiments),this.S[q]=this.S[q]|| {},this.S[q][H.mimeType]=!0}}}WX()&&(this.Y["com.youtube.fairplay"]=new zw("fairplay","com.youtube.fairplay","",this.UR.experiments),this.T("html5_enable_vp9_fairplay")||(this.S.fairplay=this.S.fairplay||{},this.S.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.S.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.G=AC2(X,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay")&&!0,this.T("html5_enable_vp9_fairplay")).filter(function(L){return!!M.Y[L]})}; NI.prototype.T=function(D){return this.UR.experiments.Z4(D)};var LWB={"":"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"};var iZ1={RED:"red",LeH:"white"};LT.prototype.xl=function(D){if(D.bY!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return uup(this,D)}; LT.prototype.Z4=function(D){return this.flags.get(""+D)==="true"};sW.prototype.Q2=function(){return this.Y}; sW.prototype.F7=function(){return this.G}; sW.prototype.Z4=function(D){D=this.xl(D);JSON.stringify(D);return D==="true"}; sW.prototype.xl=function(D){return this.flags[D]};var XQ1=Promise.resolve(),HZn=window.queueMicrotask?window.queueMicrotask.bind(window):MN5;aA.prototype.canPlayType=function(D,X){D=D.canPlayType?D.canPlayType(X):!1;lD?D=D||sMB[X]:vk===2.2?D=D||KWb[X]:JW()&&(D=D||adt[X]);return!!D}; aA.prototype.isTypeSupported=function(D){return this.eH?window.cast.receiver.platform.canDisplayType(D):M0(D)}; var KWb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},adt={"application/x-mpegURL":"maybe"},sMB={"application/x-mpegURL":"maybe"};g.U($v,g.Dq);$v.prototype.add=function(D,X){if(!this.items[D]&&(X.Sf||X.Ry||X.Xc)){var M=this.items,Q=X;Object.isFrozen&&!Object.isFrozen(X)&&(Q=Object.create(X),Object.freeze(Q));M[D]=Q;this.publish("vast_info_card_add",D)}}; $v.prototype.remove=function(D){var X=this.get(D);delete this.items[D];return X}; $v.prototype.get=function(D){return this.items[D]||null}; $v.prototype.isEmpty=function(){return g.ef(this.items)};Bk.prototype.encrypt=function(D){this.S.exports.AES128CTRCipher_encrypt(this.cipher,D.byteOffset,D.byteLength);return D}; Bk.prototype.H2=function(){return this.cipher===0}; Bk.prototype.dispose=function(){this.S.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};UW.prototype.nV=function(D,X){X=X===void 0?1:X;this.tF+=X;this.G+=D;D/=X;for(var M=0;M0)Q+="."+ZE[h].toFixed(0)+"_"+M.S[h].toFixed(0);else break;M=Q}M&&(D[X]=M)}this.S=new wQR;return D}; g.B.toString=function(){return""};g.B=Fw2.prototype;g.B.isActive=function(){return!1}; g.B.Yg=function(){}; g.B.jd=function(){}; g.B.R3=function(){}; g.B.uQ=function(D,X){X()}; g.B.N1=function(){return{}}; g.B.toString=function(){return""};var FWZ=new Fw2,Vfh=!!+kx("html5_enable_profiler"),$uC=!!+kx("html5_onesie_enable_profiler"),jm=Vfh||$uC?new Lws:FWZ,qwo=Vfh?jm:FWZ,fT=$uC?jm:FWZ;fIo.prototype.emscripten_notify_memory_growth=function(){};g.B=ck.prototype;g.B.malloc=function(D){return this.exports.malloc(D)}; g.B.free=function(D){this.exports.free(D)}; g.B.realloc=function(D,X){return this.exports.realloc(D,X)}; g.B.lF=function(D){if(D.buffer!==this.exports.memory.buffer){var X=this.malloc(D.byteLength);X=new Uint8Array(this.exports.memory.buffer,X,D.byteLength);X.set(D);return X}}; g.B.LL=function(D){if(D.buffer===this.exports.memory.buffer){var X=D.slice();this.free(D.byteOffset);return X}}; var ZZR=new function(){this.S="WebAssembly"in window},SO="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); fT.Yg(ck,{lF:function(D){return{profile:"copyj2w",tF:D===void 0?0:Math.ceil(D.byteLength/16)}}, LL:function(D){return{profile:"copyw2j",tF:D===void 0?0:Math.ceil(D.byteLength/16)}}});EW.prototype.encrypt=function(D,X){try{return this.S.LL(PcR(this,D,X))}catch(M){g.P3(Error("ocwce: wasm encrypt failed: "+M))}}; EW.prototype.H2=function(){return this.Y}; EW.prototype.dispose=function(){this.H2()||(g.Kp(this.G),this.S.free(this.U.byteOffset),this.Y=!0)};g.U(ml5,g.O);g.U(bZm,g.O);g.U(R45,g.O);var rt2="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),At9={yCF:"caoe",PBz:"capsv",imC:"cbrand",lbz:"cbr",FLH:"cbrver",GNF:"cchip",Ldj:"ccappver",xRz:"ccrv",nez:"cfrmver",oe$:"c",l95:"cver",iVy:"ctheme",p15:"cplayer",lq$:"cmodel",Tv:"cnetwork",r6R:"cos",OS_VERSION:"cosver",TVF:"cplatform",xeC:"crqyear"};g.U(lS,g.O);g.B=lS.prototype;g.B.T=function(D){return this.experiments.Z4(D)}; g.B.Q2=function(){return this.experiments.Q2()}; g.B.F7=function(){return this.experiments.F7()}; g.B.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.B.getVideoUrl=function(D,X,M,Q,h,H,t){X={list:X};M&&(h?X.time_continue=M:X.t=M);M=t?"music.youtube.com":g.xv(this);h=M==="www.youtube.com";!H&&Q&&h?H="https://youtu.be/"+D:g.iS(this)?(H="https://"+M+"/fire",X.v=D):(H&&h?(H=this.protocol+"://"+M+"/shorts/"+D,Q&&(X.feature="share")):(H=this.protocol+"://"+M+"/watch",X.v=D),lD&&(D=$m_())&&(X.ebc=D));return g.nJ(H,X)}; g.B.getVideoEmbedCode=function(D,X,M,Q){X="https://"+g.xv(this)+"/embed/"+X;Q&&(X=g.nJ(X,{list:Q}));Q=M.width;M=M.height;X=l7(X);D=l7(D!=null?D:"YouTube video player");return'')}; g.B.supportsGaplessAudio=function(){return g.Xu&&!lD&&AW()>=74||g.h0&&g.Dj(68)?!0:!1}; g.B.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.OR||g.ah?!1:!0}; g.B.getPlayerType=function(){return this.S.cplayer}; g.B.t5=function(){return this.I6}; var xl9=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],pQs=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],lIp=[19];var D2={},uw9=(D2["140"]={numChannels:2},D2["141"]={numChannels:2},D2["251"]={audioSampleRate:48E3,numChannels:2},D2["774"]={audioSampleRate:48E3,numChannels:2},D2["380"]={numChannels:6},D2["328"]={numChannels:6},D2["773"]={},D2),XS={},z4m=(XS["1"]='video/mp4; codecs="av01.0.08M.08"',XS["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',XS["1e"]='video/mp4; codecs="av01.0.08M.08"',XS["9"]='video/webm; codecs="vp9"',XS["("]='video/webm; codecs="vp9"',XS["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', XS.h='video/mp4; codecs="avc1.64001e"',XS.H='video/mp4; codecs="avc1.64001e"',XS.o='audio/webm; codecs="opus"',XS.a='audio/mp4; codecs="mp4a.40.2"',XS.ah='audio/mp4; codecs="mp4a.40.2"',XS.mac3='audio/mp4; codecs="ac-3"; channels=6',XS.meac3='audio/mp4; codecs="ec-3"; channels=6',XS.i='audio/mp4; codecs="iamf.001.001.Opus"',XS),Mr={},k85=(Mr["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Mr["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Mr["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, Mr["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Mr["701"]={width:3840,height:2160,bitrate:2E7,fps:60},Mr["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Mr["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Mr["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Mr["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Mr["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, Mr["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},Mr["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Mr["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Mr["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Mr["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Mr["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Mr["308"]={width:2560, height:1440,bitrate:1E7,fps:60},Mr["303"]={width:1920,height:1080,bitrate:5E6,fps:60},Mr["302"]={width:1280,height:720,bitrate:25E5,fps:60},Mr["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Mr["298"]={width:1280,height:720,bitrate:35E5,fps:60},Mr["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Mr["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Mr["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Mr["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Mr["398"]={width:1280,height:720,bitrate:1E6, fps:60},Mr["397"]={width:854,height:480,bitrate:4E5,fps:30},Mr["396"]={width:640,height:360,bitrate:25E4,fps:30},Mr["787"]={width:1080,height:608,bitrate:2E5,fps:30},Mr["788"]={width:1080,height:608,bitrate:4E5,fps:30},Mr["572"]={width:7680,height:4320,bitrate:3E7,fps:60},Mr["555"]={width:3840,height:2160,bitrate:15E6,fps:60},Mr["554"]={width:2560,height:1440,bitrate:75E5,fps:60},Mr["553"]={width:1920,height:1080,bitrate:2E6,fps:60},Mr["552"]={width:1280,height:720,bitrate:1E6,fps:60},Mr["551"]={width:854, height:480,bitrate:4E5,fps:30},Mr["550"]={width:640,height:360,bitrate:25E4,fps:30},Mr["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Mr["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Mr["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Mr["247"]={width:1280,height:720,bitrate:15E5,fps:30},Mr["244"]={width:854,height:480,bitrate:52E4,fps:30},Mr["243"]={width:640,height:360,bitrate:28E4,fps:30},Mr["137"]={width:1920,height:1080,bitrate:4E6,fps:30},Mr["136"]={width:1280,height:720,bitrate:3E6, fps:30},Mr["135"]={width:854,height:480,bitrate:1E6,fps:30},Mr["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Mr["376"]={width:1280,height:720,bitrate:5706960,fps:60},Mr["384"]={width:1280,height:720,bitrate:3660979,fps:60},Mr["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Mr["224"]={width:1280,height:720,bitrate:453E4,fps:30},Mr["145"]={width:1280,height:720,bitrate:2682052,fps:30},Mr);g.B=TL.prototype;g.B.getInfo=function(){return this.S}; g.B.Yr=function(){return null}; g.B.F0=function(){var D=this.Yr();return D?(D=g.HX(D.Uw),Number(D.expire)):NaN}; g.B.V4=function(){}; g.B.getHeight=function(){return this.S.video.height};Mk9.prototype.build=function(){Hy2(this);var D=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],X={};a:if(this.S)var M=this.S;else{M="";for(var Q=g.e(this.Y),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.Cy){if(h.Cy.getIsDefault()){M=h.Cy.getId();break a}M||(M=h.Cy.getId())}}Q=g.e(this.Y);for(h=Q.next();!h.done;h=Q.next())if(h=h.value,this.X||!h.Cy||h.Cy.getId()===M)X[h.itag]||(X[h.itag]=[]),X[h.itag].push(h);M=g.e(this.G);for(Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,h=X[Q.S]){h=g.e(h);for(var H=h.next();!H.done;H= h.next()){var t=D,q=t.push;H=H.value;var w="#EXT-X-MEDIA:TYPE=AUDIO,",T="YES",L="audio";if(H.Cy){L=H.Cy;var K=L.getId().split(".")[0];K&&(w+='LANGUAGE="'+K+'",');(this.S?this.S===L.getId():L.getIsDefault())||(T="NO");L=L.getName()}K="";Q!==null&&(K=Q.itag.toString());K=sr(this,H.url,K);w=w+('NAME="'+L+'",DEFAULT='+(T+',AUTOSELECT=YES,GROUP-ID="'))+(hkW(H,Q)+'",URI="'+(K+'"'));q.call(t,w)}}M=g.e(this.D);for(Q=M.next();!Q.done;Q=M.next())Q=Q.value,h=BSt,Q=(t=Q.Cy)?'#EXT-X-MEDIA:URI="'+sr(this,Q.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+h+'",LANGUAGE="'+t.getId()+'",NAME="'+t.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Q&&D.push(Q);M=this.D.length>0?BSt:void 0;Q=g.e(this.G);for(h=Q.next();!h.done;h=Q.next())h=h.value,q=X[h.S],t=void 0,((t=q)==null?void 0:t.length)>0&&(t=h,q=q[0],q="#EXT-X-STREAM-INF:BANDWIDTH="+(t.bitrate+q.bitrate)+',CODECS="'+(t.codecs+","+q.codecs+'",RESOLUTION=')+(t.width+"x"+t.height+',AUDIO="')+(hkW(q,t)+'",')+(M?'SUBTITLES="'+M+'",':"")+"CLOSED-CAPTIONS=NONE",t.fps>1&&(q+= ",FRAME-RATE="+t.fps),t.JD&&(q+=",VIDEO-RANGE="+t.JD),D.push(q),D.push(sr(this,h.url,"")));return D.join("\n")}; var BSt="text";g.U(KD,TL);KD.prototype.F0=function(){return this.expiration}; KD.prototype.Yr=function(){if(!this.Uw||this.Uw.H2()){var D=this.G.build();D="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(D);this.Uw=new jv(D)}return this.Uw};g.U(aT,TL);aT.prototype.Yr=function(){return new jv(this.G.QF())}; aT.prototype.V4=function(){this.G=Em(2,this.G)};g.U(FD,TL);FD.prototype.Yr=function(){return new jv(this.G)};var Qz={},Fe1=(Qz.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Qz.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Qz.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Qz.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Qz);g.B=g.Vv.prototype;g.B.getId=function(){return this.id}; g.B.getName=function(){return this.name}; g.B.isServable=function(){return this.S}; g.B.QF=function(){return this.url}; g.B.getXtags=function(){return this.xtags}; g.B.toString=function(){return this.languageCode+": "+g.$y(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.B.equals=function(D){return D?this.toString()===D.toString():!1}; g.B.X8=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var cXi={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},fzi={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Sin=/^(\d*)_((\d*)_?(\d*))$/;var yX9={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},PA9={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var hc={},nDs=(hc.ALWAYS=1,hc.BY_REQUEST=3,hc.UNKNOWN=void 0,hc),Hf={},Qz_=(Hf.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Hf.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Hf.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Hf.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Hf);var $$W; $$W=function(D){for(var X=Object.keys(D),M={},Q=0;QQ-X?-1:D}; g.B.HR=function(){return this.G.oN()}; g.B.KG=function(){return this.G.fS()}; g.B.tG=function(D){this.G=D};g.U(WU,lN);WU.prototype.G=function(D,X){return lN.prototype.G.call(this,"$N|"+D,X)}; WU.prototype.D=function(D,X,M){return new JR(D,X,M,this.isLive)};g.U(g.zL,g.Dq);g.B=g.zL.prototype; g.B.setData=function(D){var X=this;D=D||{};var M=D.errordetail;M!=null&&(this.errorDetail=M);var Q=D.errorcode;Q!=null?this.errorCode=Q:D.status==="fail"&&(this.errorCode="auth");var h=D.reason;h!=null&&(this.errorReason=h);var H=D.subreason;H!=null&&(this.qT=H);this.clientPlaybackNonce||(this.clientPlaybackNonce=D.cpn||(this.UR.t5()?"r"+g.sB(15):g.sB(16)));this.xp=HJ(this.UR.xp,D.livemonitor);mUm(this,D);var t=D.raw_player_response;if(t)this.Rs=t;else{var q=D.player_response;q&&(t=JSON.parse(q))}t&& (this.playerResponse=t);if(this.playerResponse){var w=this.playerResponse.annotations;w&&bys(this,w);var T=this.playerResponse.attestation;T&&eko(this,T);var L=this.playerResponse.cotn;L&&(this.cotn=L);var K=this.playerResponse.heartbeatParams;K&&dVH(this,K);var a=this.playerResponse.messages;a&&CAp(this,a);var F=this.playerResponse.overlay;F&&lzp(this,F);var V=this.playerResponse.playabilityStatus;if(V){JXH(this,V);var c=V.errorScreen;c&&MWm(this,c)}var S=this.playerResponse.playbackTracking;S&& We_(this,S,D);var b=this.playerResponse.playerCueRanges;b&&b.length>0&&(this.cueRanges=b);var n=this.playerResponse.playerCueRangeSet;n&&g.XY(this,n);var R=qbi(this.playerResponse.adPlacements);S&&S.promotedPlaybackTracking&&R&&g.P3(new g.ys("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(R||iXH(this.playerResponse.adSlots))this.P3=!0;var v=this.playerResponse.playerAds;v&&GRi(this,v,D);var l=this.playerResponse.playerConfig;l&&zk2(this,l);var A=this.playerResponse.streamingData; A&&kRH(this,A,l||null);var Hs=this.playerResponse.trackingParams;Hs&&(this.f$=Hs);var u=this.playerResponse.videoDetails;if(u){j$1(this,u,D);hHH(this,u,l||null,D);var D_=u.isPrivate;D_!==void 0&&(this.isPrivate=HJ(this.isPrivate,D_))}V&&vD_(this,V,u||null);var q5=this.playerResponse.interstitialPods;q5&&oDp(this,q5);this.J_&&this.eventId&&(this.J_=Nq(this.J_,{ei:this.eventId}));var Lo=this.playerResponse.captions;Lo&&Lo.playerCaptionsTracklistRenderer&&Izp(this,Lo.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.ZM=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Oys(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Qs;this.compositeLiveIngestionOffsetToken=(Qs=this.playerResponse.playbackTracking)==null?void 0:Qs.compositeLiveIngestionOffsetToken; var S2;this.compositeLiveStatusToken=(S2=this.playerResponse.playbackTracking)==null?void 0:S2.compositeLiveStatusToken;this.T("html5_fill_default_mosaic_audio_track_id")&&xL(this)&&(this.UR.p$=Ess(this));var XC,q_,th=(XC=this.playerResponse.playerConfig)==null?void 0:(q_=XC.granularVariableSpeedConfig)==null?void 0:q_.minimumPlaybackRate,Jd,Gp,zy=(Jd=this.playerResponse.playerConfig)==null?void 0:(Gp=Jd.granularVariableSpeedConfig)==null?void 0:Gp.maximumPlaybackRate;th&&zy&&(this.YN=th/100,this.Rr= zy/100);this.T("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(kd){var E$;((E$=g.Z(kd,gD1))==null?void 0:E$.signal)==="INIT_ATT_SERVICE"&&(X.Q$=!0)})}uN(this,D); nwR(this,D);D.queue_info&&(this.queueInfo=D.queue_info);var Ra=D.hlsdvr;Ra!=null&&(this.allowLiveDvr=Number(Ra)===1?FI()?!0:j6&&yv<5?!1:!0:!1);this.adQueryId=D.ad_query_id||null;this.XC||(this.XC=D.encoded_ad_safety_reason||null);this.OP=HJ(this.OP,D.infringe||D.muted);this.h3=D.authkey;this.Ru=D.authuser;this.mutedAutoplay=HJ(this.mutedAutoplay,D&&D.playmuted);this.mutedAutoplayDurationMode=NB(this.mutedAutoplayDurationMode,D&&D.muted_autoplay_duration_mode);this.rX=HJ(this.rX,D&&D.mutedautoplay); var m=D.length_seconds;m&&(this.lengthSeconds=typeof m==="string"?WH(m):m);this.isAd()||this.WB||!g.s0(g.CT(this.UR))?this.endSeconds=NB(this.endSeconds,this.vl||D.end||D.endSeconds):vw9(this,g.CT(this.UR),this.lengthSeconds);this.f$=qB(this.f$,D.itct);this.Kc=HJ(this.Kc,D.is_live_destination);this.isLivePlayback=HJ(this.isLivePlayback,D.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.yq();D.isUpcoming&&(this.isUpcoming=HJ(this.isUpcoming,D.isUpcoming));this.uH=HJ(this.uH, D.post_live_playback);this.yp&&(this.uH=!1);this.isMdxPlayback=HJ(this.isMdxPlayback,D.mdx);var $B=D.mdx_control_mode;$B&&(this.mdxControlMode=typeof $B==="number"?$B:WH($B));this.isInlinePlaybackNoAd=HJ(this.isInlinePlaybackNoAd,D.is_inline_playback_no_ad);this.A$=NB(this.A$,D.reload_count);this.reloadReason=qB(this.reloadReason,D.reload_reason);this.LJ=HJ(this.LJ,D.show_content_thumbnail);this.cycToken=D.cyc||null;var WZ=Ur(D);Object.keys(WZ).length>0&&(this.Jg=WZ);this.R5=qB(this.R5,D.vvt);this.mdxEnvironment= qB(this.mdxEnvironment,D.mdx_environment);D.source_container_playlist_id&&(this.sourceContainerPlaylistId=D.source_container_playlist_id);D.serialized_mdx_metadata&&(this.serializedMdxMetadata=D.serialized_mdx_metadata);this.Ug=D.osig;this.eventId||(this.eventId=D.eventid);this.osid||(this.osid=D.osid);this.playlistId=qB(this.playlistId,D.list);D.index&&(this.playlistIndex=this.playlistIndex===void 0?NB(0,D.index):NB(this.playlistIndex,D.index));this.va=D.pyv_view_beacon_url;this.EQ=D.pyv_quartile25_beacon_url; this.kN=D.pyv_quartile50_beacon_url;this.Zz=D.pyv_quartile75_beacon_url;this.wH=D.pyv_quartile100_beacon_url;var wR=D.session_data;!this.oQ&&wR&&(this.oQ=Mq(wR,"&").feature);this.isFling=NB(this.isFling?1:0,D.is_fling)===1;this.vnd=NB(this.vnd,D.vnd);this.forceAdsUrl=qB(this.forceAdsUrl,D.force_ads_url);this.e0=qB(this.e0,D.ctrl);this.Az=qB(this.Az,D.ytr);this.KA=D.ytrcc;this.pW=D.ytrexp;this.xB=D.ytrext;this.zm=qB(this.zm,D.adformat);this.UE=qB(this.UE,D.attrib);this.slotPosition=NB(this.slotPosition, D.slot_pos);this.breakType=D.break_type;this.i6=HJ(this.i6,D.ssrt);this.videoId=Tj(D)||this.videoId;this.X=qB(this.X,D.vss_credentials_token);this.HW=qB(this.HW,D.vss_credentials_token_type);this.hF=HJ(this.hF,D.audio_only);this.sR=HJ(this.sR,D.aac_high);this.tL=HJ(this.tL,D.prefer_low_quality_audio);this.GT=HJ(this.GT,D.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?D.qoe_cat&&(this.KL=this.KL.concat(D.qoe_cat.split(","))):this.gq=qB(this.gq,D.qoe_cat);this.PW=HJ(this.PW,D.download_media); this.J=b_i(this,D.prefer_gapless);TEW(this.playerResponse)&&this.AC.push("ad");var eb=D.adaptive_fmts;eb&&(this.adaptiveFormats=eb,this.SH("adpfmts",{},!0));var E=D.allow_embed;E&&(this.allowEmbed=Number(E)===1);var Xn=D.backgroundable;Xn&&(this.backgroundable=Number(Xn)===1);var ci=D.autonav;ci&&(this.isAutonav=Number(ci)===1);var qu=D.autoplay;qu&&(this.vB=this.nh=Number(qu)===1);var Wi=D.iv_load_policy;Wi&&(this.annotationsLoadPolicy=tr(this.annotationsLoadPolicy,Wi,OW));var wS=D.cc_lang_pref; wS&&(this.captionsLanguagePreference=qB(wS,this.captionsLanguagePreference));var zp=D.cc_load_policy;zp&&(this.FR=tr(this.FR,zp,OW));var Dt;this.deviceCaptionsOn=(Dt=D.device_captions_on)!=null?Dt:void 0;var Pi;this.H3=(Pi=D.device_captions_lang_pref)!=null?Pi:"";var P;this.hv=(P=D.viewer_selected_caption_langs)!=null?P:[];var f=D.cached_load;f&&(this.AF=HJ(this.AF,f));if(D.dash==="0"||D.dash===0||D.dash===!1)this.Jn=!0;var y=D.dashmpd;y&&(this.FY=g.nJ(y,{cpn:this.clientPlaybackNonce}));var d=D.delay; d&&(this.Lz=WH(d));var W=this.vl||D.end;if(this.t$?W!=null:W!=void 0)this.clipEnd=NB(this.clipEnd,W);var N5=D.fmt_list;N5&&(this.Rl=N5);D.heartbeat_preroll&&this.AC.push("heartbeat");Zf8&&(this.VH=-Math.floor(Math.random()*10),this.AL=-Math.floor(Math.random()*40));var z=D.is_listed;z&&(this.isListed=HJ(this.isListed,z));var J=D.is_private;J&&(this.isPrivate=HJ(this.isPrivate,J));var C=D.is_dni;C&&(this.KK=HJ(this.KK,C));var Ri=D.dni_color;Ri&&(this.rL=qB(this.rL,Ri));var Ii=D.pipable;Ii&&(this.pipable= HJ(this.pipable,Ii));this.Df=(this.Dr=this.pipable&&this.UR.gm)&&!this.UR.showMiniplayerButton;var Z_=D.paid_content_overlay_duration_ms;Z_&&(this.paidContentOverlayDurationMs=WH(Z_));var b1=D.paid_content_overlay_text;b1&&(this.paidContentOverlayText=b1);var Qh=D.url_encoded_fmt_stream_map;Qh&&(this.S1=Qh);var mH=D.hls_formats;mH&&(this.hlsFormats=mH);var pf=D.hlsvp;pf&&(this.hlsvp=pf);var vi=D.live_start_walltime;vi&&(this.nw=typeof vi==="number"?vi:WH(vi));var kB=D.live_manifest_duration;kB&&(this.X1= typeof kB==="number"?kB:WH(kB));var e2=D.player_params;e2&&(this.playerParams=e2);var CR=D.partnerid;CR&&(this.partnerId=NB(this.partnerId,CR));var gR=D.probe_url;gR&&(this.probeUrl=Id(g.nJ(gR,{cpn:this.clientPlaybackNonce})));var Sb=D.pyv_billable_url;Sb&&jIs(Sb)&&(this.wN=Sb);var Co=D.pyv_conv_url;Co&&jIs(Co)&&(this.IU=Co);RHd(this,D);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.ZM||this.PV||D.start||D.startSeconds)&&this.SH("lss",{css:this.startSeconds, pcss:this.ZM,iss:this.PV,ps:D.start||void 0,pss:D.startSeconds||void 0}):this.OR=this.startSeconds=NB(this.startSeconds,this.ZM||this.PV||D.start||D.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var SF=D.live_utc_start;SF!=null?this.liveUtcStartSeconds=Number(SF):lhR(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var yh=D.utc_start_millis;yh&&(this.liveUtcStartSeconds=Number(yh)*.001)}var uW= D.stream_time_start_millis;uW&&(this.nQ=Number(uW)*.001);var Mu=this.PV||D.start;(this.t$?Mu==null||Number(D.resume)===1:Mu==void 0||D.resume=="1")||this.isLivePlayback||(this.clipStart=NB(this.clipStart,Mu));var pG=D.url_encoded_third_party_media;pG&&(this.ZW=hW(pG));var dK=D.ypc_offer_button_formatted_text;if(dK){var Uo=JSON.parse(dK);this.Qe=Uo!=null?Uo:null;this.gh=dK}var eq=D.ypc_offer_button_text;eq&&(this.sE=eq);var Kg=D.ypc_offer_description;Kg&&(this.mq=Kg);var ae=D.ypc_offer_headline;ae&& (this.Qx=ae);var Mh=D.ypc_full_video_message;Mh&&(this.tE=Mh);var Q0=D.ypc_offer_id;Q0&&(this.tD=Q0);var hw=D.ypc_buy_url;hw&&(this.xo=hw);var VZ=D.ypc_item_thumbnail;VZ&&(this.Dg=VZ);var hK=D.ypc_item_title;hK&&(this.NF=hK);var Hh=D.ypc_item_url;Hh&&(this.rZ=Hh);var tK=D.ypc_vid;tK&&(this.IQ=tK);D.ypc_overlay_timeout&&(this.vy=Number(D.ypc_overlay_timeout));var Wq=D.ypc_trailer_player_vars;Wq&&(this.N6=dR(Wq));var r$=D.ypc_original_itct;r$&&(this.ri=r$);this.uI=qB(this.uI,D.ucid);this.NT=D.storyboard_spec|| null;this.Oi=D.live_storyboard_spec||null;this.aI=D.iv_endscreen_url||null;this.jj=HJ(this.jj,D.iv3_module);this.eG=HJ(this.eG,D.ypc_module);this.Ds=HJ(this.Ds,D.ypc_clickwrap_module);this.eG&&this.AC.push("ypc");this.Ds&&this.AC.push("ypcRentalActivation");this.xN={video_id:D.video_id,eventid:D.eventid,cbrand:D.cbrand,cbr:D.cbr,cbrver:D.cbrver,c:D.c,cver:D.cver,ctheme:D.ctheme,cplayer:D.cplayer,cmodel:D.cmodel,cnetwork:D.cnetwork,cos:D.cos,cosver:D.cosver,cplatform:D.cplatform,user_age:D.user_age, user_display_image:D.user_display_image,user_display_name:D.user_display_name,user_gender:D.user_gender,csi_page_type:D.csi_page_type,csi_service_name:D.csi_service_name,enablecsi:D.enablecsi,enabled_engage_types:D.enabled_engage_types};bnW(this,D);var i_=D.cotn;i_&&(this.cotn=i_);GSm(this)?ap(this)&&(this.isLivePlayback&&this.FY&&(this.ZJ=!0),this.I4&&(this.Zc=!0)):zHd(this)?this.ZJ=!0:W1d(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&By(this):this.FY&&(this.UR.f$==="yt"&&this.yq()&& this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")?this.SH("deprecateMflFallback",{}):this.ZJ=!0);var E1=D.adpings;E1&&(this.nj=E1?dR(E1):null);var Nh=D.feature;Nh&&(this.b6=Nh);var y2=D.referrer;y2&&(this.referrer=y2);this.clientScreenNonce=qB(this.clientScreenNonce,D.csn);this.yd=NB(this.yd,D.root_ve_type);this.yw=NB(this.yw,D.kids_age_up_mode);this.t$||D.kids_app_info==void 0||(this.kidsAppInfo=D.kids_app_info);this.t$&&D.kids_app_info!=null&&(this.kidsAppInfo= D.kids_app_info);this.Y7=HJ(this.Y7,D.upg_content_filter_mode);this.unpluggedFilterModeType=NB(this.unpluggedFilterModeType,D.unplugged_filter_mode_type);var qh=D.unplugged_location_info;qh&&(this.h5=qh);var wQ=D.unplugged_partner_opt_out;wQ&&(this.NQ=qB("",wQ));this.Nf=HJ(this.Nf,D.disable_watch_next);this.oA=qB(this.oA,D.internal_ip_override);this.B0=!!D.is_yto_interstitial;this.interstitials.length&&this.AC.push("playableSequences");var TX=D.jR;TX&&(this.jR=TX);this.eH=qB(this.eH,D.csi_timer); D.watchUrl&&(this.watchUrl=D.watchUrl);var cq=D.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&&cq&&ZyH(this,cq);if(cq==null?0:cq.ustreamerConfig)this.Z8=y5(cq.ustreamerConfig);var L1,GN,Pl=cq==null?void 0:(L1=cq.loggingContext)==null?void 0:(GN=L1.qoeLoggingContext)==null?void 0:GN.serializedContextData;Pl&&(this.zA=Pl);g.eO(this.UR)&&this.UR.cW&&(this.embedsRct=qB(this.embedsRct,D.rct),this.embedsRctn=qB(this.embedsRctn,D.rctn));D.embed_config&&(this.iA=D.embed_config);this.wj= this.wj||!!D.pause_at_start;D.default_active_source_video_id&&(this.defaultActiveSourceVideoId=D.default_active_source_video_id);this.Jf=this.Jf||!!D.Jf}; g.B.W=function(){return this.UR}; g.B.T=function(D){return this.UR.T(D)}; g.B.dM=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.B.hasSupportedAudio51Tracks=function(){var D;return!((D=this.p$)==null||!D.q5)}; g.B.getUserAudio51Preference=function(){var D=1;jO(this.UR)&&this.T("html5_ytv_surround_toggle_default_off")?D=0:zc(this.UR)&&this.isLivePlayback&&this.aj()&&(D=0);var X;return(X=g.vJ("yt-player-audio51"))!=null?X:D}; g.B.mW=function(){this.H2()||(this.S.G||this.S.unsubscribe("refresh",this.mW,this),this.IB(-1))}; g.B.IB=function(D){if(!this.isLivePlayback||!this.D||this.D.flavor!=="fairplay"){var X=Pw1(this.S,this.j2);if(X.length>0){for(var M=g.e(X),Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q.startSecs=Math.max(Q.startSecs,this.WC()),this.T("html5_cuepoint_identifier_logging")&&Q.event==="start"&&this.SH("cuepoint",{pubCue:Q.identifier,segNum:D});this.publish("cuepointupdated",X,D);this.j2+=X.length;if(By(this)&&this.UR.t5())for(X=g.e(X),M=X.next();!M.done;M=X.next())M=M.value,this.SH("cuepoint",{segNum:D,event:M.event, startSecs:M.startSecs,id:M.identifier.slice(-16)}),M.event==="start"&&(M=M.startSecs,this.mS.start=this.Mj,this.mS.end=M+3)}}}; g.B.PT=function(){this.H2()||(this.loading=!1,this.publish("dataloaded"))}; g.B.aj=function(){return this.uX!==void 0?this.uX:this.uX=!!this.DS||!!this.S&&i5(this.S)}; g.B.Zf=function(D){var X=this;if(this.H2())return Iy();this.q5=this.L$=this.Y=null;DA(this,"html5_high_res_logging_always")&&(this.UR.I6=!0);return jzs(this,D).then(void 0,function(){return XNd(X,D)}).then(void 0,function(){return Mpi(X)}).then(void 0,function(){return hRs(X)})}; g.B.sZ=function(D){this.Y=D;DQ9(this,this.Y.getAvailableAudioTracks());if(this.Y){D=g.e(this.Y.videoInfos);for(var X=D.next();!X.done;X=D.next()){X=X.value;var M=X.containerType;M!==0&&(this.TL[M]=X.id)}}D=this.getAvailableAudioTracks();D=D.concat(this.p6);for(X=0;X0?this.Y.getAvailableAudioTracks():this.QB||[]:[]}; g.B.getAudioTrack=function(){var D=this;if(this.U&&!ge(this.U)){var X=g.xB(this.getAvailableAudioTracks(),function(h){return h.id===D.U.id}),M; if(!X&&((M=this.U.Cy)==null?0:M.id)){var Q=this.U.Cy.id;X=g.xB(this.getAvailableAudioTracks(),function(h){return h.Cy.id===Q}); this.SH("nat",{id:this.U.id,track:!!X})}return X||this.p6}if(this.QB){if(!this.oa)for(X=g.e(this.QB),M=X.next();!M.done;M=X.next())if(M=M.value,M.Cy.getIsDefault()){this.oa=M;break}return this.oa||this.p6}return this.p6}; g.B.getPlayerResponse=function(){return this.playerResponse}; g.B.getWatchNextResponse=function(){return this.a5}; g.B.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.B.getHeartbeatResponse=function(){return this.Vu}; g.B.ML=function(){return this.watchUrl?this.watchUrl:this.UR.getVideoUrl(this.videoId)}; g.B.NE=function(){return!!this.S&&(Vvo(this.S)||$0p(this.S)||BeH(this.S))}; g.B.getEmbeddedPlayerResponse=function(){return this.HI}; g.B.TI=function(){return(this.eventLabel||this.UR.a5)==="shortspage"}; g.B.isAd=function(){return this.Lq||!!this.adFormat}; g.B.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.B.gp=function(){var D,X,M;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((D=this.playerResponse)==null?0:(X=D.playerConfig)==null?0:(M=X.daiConfig)==null?0:M.ssaEnabledPlayback)}; g.B.DE=function(){return this.v$}; g.B.Z3=function(){return this.eG||this.MK}; g.B.dh=function(){return DA(this,"html5_samsung_vp9_live")}; g.B.SH=function(D,X,M){this.publish("ctmp",D,X,M)}; g.B.HK=function(D,X,M){this.publish("ctmpstr",D,X,M)}; g.B.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.B.getGetAdBreakContext=function(D,X){D=D===void 0?NaN:D;X=X===void 0?NaN:X;var M={isSabr:Er(this)},Q,h=(Q=this.getHeartbeatResponse())==null?void 0:Q.adBreakHeartbeatParams;h&&(M.adBreakHeartbeatParams=h);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.S&&!isNaN(D)&&!isNaN(X)){X=D-X;for(var H in this.S.S)if(Q=this.S.S[H],Q.info.VB()||Q.info.q2())if(Q=Q.index,Q.isLoaded()){H=Q.lE(X);Q=Q.hR(H)+X-Q.getStartTime(H);this.SH("gabc",{t:D.toFixed(3),mt:X.toFixed(3),sg:H,igt:Q.toFixed(3)}); M.livePlaybackPosition={utcTimeMillis:""+(Q*1E3).toFixed(0)};break}}return M}; g.B.isEmbedsShortsMode=function(D,X){if(!g.eO(this.UR)||(this.UR.L$||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||X)return!1;if(this.T("embeds_enable_shorts")){var M,Q;return!!((M=this.embeddedPlayerConfig)==null?0:(Q=M.embeddedPlayerFlags)==null?0:Q.isShortsExperienceEligible)}var h,H;return!!(((h=this.embeddedPlayerConfig)==null?0:(H=h.embeddedPlayerFlags)==null?0:H.isShortsExperienceEligible)&&D.width<=D.height)}; g.B.xZ=function(D,X){X?this.XA||(this.XA=D):this.OT||(this.OT=D)}; g.B.Yy=function(){g.Dq.prototype.Yy.call(this);this.nj=null;delete this.au;delete this.accountLinkingConfig;delete this.S;this.Y=this.Vu=this.playerResponse=this.a5=null;this.S1=this.adaptiveFormats="";delete this.botguardData;this.M5=this.suggestions=this.QL=null;this.sabrContextUpdates.clear()}; var Zf8=!0;var osd={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},C3R={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},rSn={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ICn={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"},vss={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},gsH={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"},i_p={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.U(ND,g.O);g.B=ND.prototype;g.B.handleExternalCall=function(D,X,M){var Q=this.state.J[D],h=this.state.K[D],H=Q;if(h)if(M&&eV(M,iGh))H=h;else if(!Q)throw Error('API call from an untrusted origin: "'+M+'"');this.logApiCall(D,M);if(H){M=!1;Q=g.e(X);for(h=Q.next();!h.done;h=Q.next())if(String(h.value).includes("javascript:")){M=!0;break}M&&g.P3(Error('Dangerous call to "'+D+'" with ['+X+"]."));return H.apply(this,X)}throw Error('Unknown API method: "'+D+'".');}; g.B.logApiCall=function(D,X,M){var Q=this.app.W();Q.Jn&&!this.state.eH.has(D)&&(this.state.eH.add(D),g.Tm("webPlayerApiCalled",{callerUrl:Q.loaderUrl,methodName:D,origin:X||void 0,playerStyle:Q.playerStyle||void 0,embeddedPlayerMode:Q.L$,errorCode:M}))}; g.B.publish=function(D){var X=g.BZ.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[D].concat(g.xW(X)));if(D==="videodatachange"||D==="resize"||D==="cardstatechange")this.state.G.publish.apply(this.state.G,[D].concat(g.xW(X))),this.state.U.publish.apply(this.state.U,[D].concat(g.xW(X)))}; g.B.ER=function(D){var X=g.BZ.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[D].concat(g.xW(X)));this.state.G.publish.apply(this.state.G,[D].concat(g.xW(X)))}; g.B.S$=function(D){var X=g.BZ.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[D].concat(g.xW(X)));this.state.G.publish.apply(this.state.G,[D].concat(g.xW(X)));this.state.U.publish.apply(this.state.U,[D].concat(g.xW(X)))}; g.B.sC=function(D){var X=g.BZ.apply(1,arguments);this.state.Y.publish.apply(this.state.Y,[D].concat(g.xW(X)));this.state.G.publish.apply(this.state.G,[D].concat(g.xW(X)));this.state.U.publish.apply(this.state.U,[D].concat(g.xW(X)));this.state.D.publish.apply(this.state.D,[D].concat(g.xW(X)))}; g.B.T=function(D){return this.app.W().T(D)}; g.B.Yy=function(){if(this.state.element){var D=this.state.element,X;for(X in this.state.S)this.state.S.hasOwnProperty(X)&&(D[X]=null);this.state.element=null}g.O.prototype.Yy.call(this)};g.U(sI,g.E5);sI.prototype.publish=function(D){var X=g.BZ.apply(1,arguments);if(this.D.has(D))return this.D.get(D).push(X),!0;var M=!1;try{for(X=[X],this.D.set(D,X);X.length;)M=g.E5.prototype.publish.call.apply(g.E5.prototype.publish,[this,D].concat(g.xW(X.shift())))}finally{this.D.delete(D)}return M};g.U(KS,g.O);KS.prototype.Yy=function(){this.D.dispose();this.U.dispose();this.G.dispose();this.Y.dispose();this.eH=this.S=this.K=this.J=this.X=void 0};var xQm=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.U(FX,ND);g.B=FX.prototype;g.B.getApiInterface=function(){return Array.from(this.state.X)}; g.B.Qr=function(D,X){this.state.D.subscribe(D,X)}; g.B.ch$=function(D,X){this.state.D.unsubscribe(D,X)}; g.B.getPlayerState=function(D){return CTm(this.app,D)}; g.B.u3=function(){return CTm(this.app)}; g.B.jjj=function(D,X,M){BB(this)&&(I4(this.app,!0,1),dC(this.app,D,X,M,1))}; g.B.getCurrentTime=function(D,X,M){var Q=this.getPlayerState(D);if(this.app.getAppState()===2&&Q===5){var h;return((h=this.app.getVideoData())==null?void 0:h.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&Q===0?Pv(this.app,D):D?this.app.getCurrentTime(D,X,M):this.app.getCurrentTime(D)}; g.B.YI=function(){return this.app.getCurrentTime(1)}; g.B.xI=function(){var D=this.app.hR(1);return isNaN(D)?this.getCurrentTime(1):D}; g.B.nO=function(){return this.app.getDuration(1)}; g.B.Bo=function(D,X){D=g.XT(Math.floor(D),0,100);isFinite(D)&&Eu(this.app,{volume:D,muted:this.isMuted()},X)}; g.B.sn5=function(D){this.Bo(D,!1)}; g.B.dR=function(D){Eu(this.app,{muted:!0,volume:this.getVolume()},D)}; g.B.Pp4=function(){this.dR(!1)}; g.B.FU=function(D){Eu(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},D)}; g.B.Yy5=function(){$a(this.app)||this.FU(!1)}; g.B.getPlayerMode=function(){var D={};this.app.getVideoData().KK&&(D.pfp={enableIma:this.app.z6().allowImaMonetization,autoplay:YL(this.app.z6()),mutedAutoplay:this.app.z6().mutedAutoplay});return D}; g.B.Vc=function(){var D=this.app.getPresentingPlayerType();if(D===2&&!this.app.K2()){var X=cI(this.app.Qq());if(!(oI1(X)||g.eO(this.app.W())&&g.x(this.app.v2().getPlayerState(),1024))||C91(X))return}(X=this.app.z_().eg)?X.playVideo():this.app.playVideo(D)}; g.B.fkR=function(){I4(this.app,!0,1);this.Vc()}; g.B.pauseVideo=function(D){var X=this.app.getPresentingPlayerType();if(X!==2||this.app.K2()||oI1(cI(this.app.Qq()))){var M=this.app.z_().eg;M?M.pauseVideo():this.app.pauseVideo(X,D)}}; g.B.cgF=function(){var D=this.app,X=!1;D.j.J5&&(D.XF.publish("pageTransition"),X=!0);D.stopVideo(X)}; g.B.clearVideo=function(){}; g.B.getAvailablePlaybackRates=function(){var D=this.app.W();if(D.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(D.U?D.ancestorOrigins[0]:window.location.origin)||D.cZ)return atG;var X=this.app.getVideoData();if(RRR(X)){var M=X.YN,Q=X.Rr;return $_r.filter(function(h){return h>=M&&h<=Q})}return D.supportsVarispeedExtendedFeatures?FnZ:D.T("web_remix_allow_up_to_3x_playback_rate")&&g.RW(D)?VbC:yI}return[1]}; g.B.getPlaybackQuality=function(D){return(D=this.app.xC(D))?D.getPlaybackQuality():"unknown"}; g.B.UWF=function(){}; g.B.getAvailableQualityLevels=function(D){return(D=this.app.xC(D))?(D=g.be(D.je(),function(X){return X.quality}),D.length&&(D[0]==="auto"&&D.shift(),D=D.concat(["auto"])),D):[]}; g.B.fO=function(){return this.getAvailableQualityLevels(1)}; g.B.Pq=function(){return this.g9()}; g.B.Xl=function(){return 1}; g.B.getVideoLoadedFraction=function(D){return this.app.getVideoLoadedFraction(D)}; g.B.g9=function(){return this.getVideoLoadedFraction()}; g.B.JT=function(){return 0}; g.B.getSize=function(){var D=this.app.lj().getPlayerSize();return{width:D.width,height:D.height}}; g.B.setSize=function(){this.app.lj().resize()}; g.B.loadVideoById=function(D,X,M,Q){if(!D)return!1;D=a8(D,X,M);return this.app.loadVideoByPlayerVars(D,Q)}; g.B.VHj=function(D,X,M){D=this.loadVideoById(D,X,M,1);I4(this.app,D,1)}; g.B.cueVideoById=function(D,X,M,Q){D=a8(D,X,M);this.app.cueVideoByPlayerVars(D,Q)}; g.B.zk=function(D,X,M){this.cueVideoById(D,X,M,1)}; g.B.loadVideoByUrl=function(D,X,M,Q){D=JSR(D,X,M);return this.app.loadVideoByPlayerVars(D,Q)}; g.B.ety=function(D,X,M){D=this.loadVideoByUrl(D,X,M,1);I4(this.app,D,1)}; g.B.cueVideoByUrl=function(D,X,M,Q){D=JSR(D,X,M);this.app.cueVideoByPlayerVars(D,Q)}; g.B.SZ=function(D,X,M){this.cueVideoByUrl(D,X,M,1)}; g.B.cq=function(){var D=this.app.W();if(D.R5)return"";var X=this.app.z6(),M=void 0;X.isLivePlayback||(M=Math.floor(this.app.getCurrentTime(1)));return D.getVideoUrl(X.videoId,this.getPlaylistId()||void 0,M)}; g.B.hT=function(){return this.app.getDebugText()}; g.B.getVideoEmbedCode=function(){var D=this.app.W();if(D.R5)return"";var X=this.app.z6();return D.getVideoEmbedCode(X.isPrivate?"":X.title,this.app.z6().videoId,this.app.lj().getPlayerSize(),this.getPlaylistId()||void 0)}; g.B.DO=function(D,X,M){return Jm1(this.app,D,X,M)}; g.B.removeCueRange=function(D){return this.app.qa(D)}; g.B.loadPlaylist=function(D,X,M,Q){this.app.loadPlaylist(D,X,M,Q)}; g.B.qRC=function(D,X,M,Q){this.loadPlaylist(D,X,M,Q);I4(this.app,!0,1)}; g.B.cuePlaylist=function(D,X,M,Q){this.app.cuePlaylist(D,X,M,Q)}; g.B.nextVideo=function(D,X){this.app.nextVideo(D,X)}; g.B.XbF=function(){this.nextVideo();I4(this.app,!0,1)}; g.B.previousVideo=function(D){this.app.previousVideo(D)}; g.B.DwH=function(){this.previousVideo();I4(this.app,!0,1)}; g.B.playVideoAt=function(D){this.app.playVideoAt(D)}; g.B.ek$=function(D){this.playVideoAt(D);I4(this.app,!0,1)}; g.B.setShuffle=function(D){var X=this.app.getPlaylist();X&&X.setShuffle(D)}; g.B.setLoop=function(D){var X=this.app.getPlaylist();X&&(X.loop=D)}; g.B.Bq=function(){var D=this.app.getPlaylist();if(!D)return null;for(var X=[],M=0;M=400)if(D=this.z6(),this.B.W().T("client_respect_autoplay_switch_button_renderer"))D=!!D.autoplaySwitchButtonRenderer;else{var X,M,Q,h;D=!!((X=D.getWatchNextResponse())==null?0:(M=X.contents)==null?0:(Q=M.twoColumnWatchNextResults)==null?0:(h=Q.autoplay)==null?0:h.autoplay)!==!1}D?this.S||(this.S=!0,this.Ew(this.S),X=this.z6(),this.NG(X.autonavState),this.B.logVisibility(this.element,this.S)): (this.S=!1,this.Ew(this.S))}; g.B.NG=function(D){IQ_(this)?this.isChecked=D!==1:((D=D!==1)||(D=g.O0(),D=g.cX("web_autonav_allow_off_by_default")&&!D.xl(141)&&g.zZ("AUTONAV_OFF_BY_DEFAULT")?!1:!D.xl(140)),this.isChecked=D);RQ2(this)}; g.B.onClick=function(){this.isChecked=!this.isChecked;this.B.K7(this.isChecked?2:1);RQ2(this);if(IQ_(this)){var D=this.z6().autoplaySwitchButtonRenderer;this.isChecked&&(D==null?0:D.onEnabledCommand)?this.B.ER("innertubeCommand",D.onEnabledCommand):!this.isChecked&&(D==null?0:D.onDisabledCommand)&&this.B.ER("innertubeCommand",D.onDisabledCommand)}this.B.logClick(this.element)}; g.B.getValue=function(){return this.isChecked}; g.B.z6=function(){return this.B.getVideoData(1)};g.U(g4s,uR);g.U(yQ,HA);yQ.prototype.C$=function(D){D?this.S||(this.Vf.fK(this),this.S=!0):this.S&&(this.Vf.hq(this),this.S=!1);this.S&&t1(this,zlR())}; yQ.prototype.U=function(){g.tN(this.element,"ytp-menuitem-highlight-transition-enabled")}; yQ.prototype.Y=function(D){var X=zlR();D!==X&&(X=g.O0(),Ar(190,D),Ar(192,!0),X.save(),this.B.ER("cinematicSettingsToggleChange",D))}; yQ.prototype.Yy=function(){this.S&&this.Vf.hq(this);HA.prototype.Yy.call(this)};g.U(PA,uR);PA.prototype.updateCinematicSettings=function(D){this.S=D;var X;(X=this.menuItem)==null||X.C$(D);this.api.publish("onCinematicSettingsVisibilityChange",D)};g.U(dSo,uR);g.U(n5,uR);n5.prototype.setCreatorEndscreenVisibility=function(D){var X;(X=yp(this.api.Qq()))==null||X.Ew(D)}; n5.prototype.S=function(D){function X(Q){Q==="creatorendscreen"&&(Q=yp(M.api.Qq()))&&Q.hRf(M.hideButton)} var M=this;this.hideButton=D;this.events.N(this.api,"modulecreated",X);X("creatorendscreen")};g.U(ild,uR);g.U(bP,HA);bP.prototype.D=function(D){this.U(D?1:0)}; bP.prototype.OC=function(){if(this.enableNewAudioSettingsMenu||this.Y){var D=this.B.getPresentingPlayerType();D===2||D===3?this.S&&(this.S=!1,this.Vf.hq(this)):(D=this.getDrcState(),D!==1?(D===0?(t1(this,this.G()===1),this.setEnabled(!0)):(t1(this,!1),this.setEnabled(!1)),this.S||(this.Vf.fK(this),this.S=!0)):this.S&&(this.Vf.hq(this),this.S=!1))}else{D=this.hasDrcAudioTrack();var X=this.G()===1&&D;t1(this,X);this.setEnabled(D)}}; bP.prototype.Yy=function(){this.Vf.hq(this);HA.prototype.Yy.call(this)}; bP.prototype.X=function(){this.B.logClick(this.element)};g.U(e_,uR);g.B=e_.prototype;g.B.getDrcUserPreference=function(){return this.S}; g.B.setDrcUserPreference=function(D){this.api.SH("drc_set",{pref:D});g.gw("yt-player-drc-pref",D,31536E3);D!==this.S&&(this.S=D,this.updateEnvironmentData(),this.bk()&&this.api.Iq(),this.api.jA())}; g.B.updateEnvironmentData=function(){this.api.W().kC=this.S===1}; g.B.bk=function(){var D,X,M=(D=this.api.getVideoData())==null?void 0:(X=D.Y)==null?void 0:X.S;if(!M)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var Q,h,H=(Q=this.api.Yd())==null?void 0:(h=Q.Cy)==null?void 0:h.id;return jj(M,function(t){var q;return t.audio.S&&((q=t.Cy)==null?void 0:q.id)===H})}return jj(M,function(t){var q; return((q=t.audio)==null?void 0:q.S)===!0})}; g.B.getDrcState=function(){return this.api.VL(3)};g.U(RS,uR);RS.prototype.onVideoDataChange=function(){var D=this,X=this.api.getVideoData();this.api.HD("embargo",1);var M=X==null?void 0:X.A2.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(M==null?0:M.length)?Ol9(this,M.filter(function(Q){return C5R(D,Q)})):(X==null?0:X.cueRanges)&&Ol9(this,X.cueRanges.filter(function(Q){return C5R(D,Q)}))}; RS.prototype.G=function(D){return D.embargo!==void 0}; RS.prototype.Yy=function(){uR.prototype.Yy.call(this);this.S={}};g.U(IS,uR); IS.prototype.addEmbedsConversionTrackingParams=function(D){var X=this.api.W(),M=X.widgetReferrer,Q=X.wj,h=this.S,H="",t=X.getWebPlayerContextConfig();t&&(H=t.embedsIframeOriginParam||"");M.length>0&&(D.embeds_widget_referrer=M);Q.length>0&&(D.embeds_referring_euri=Q);X.U&&H.length>0&&(D.embeds_referring_origin=H);t&&t.embedsFeature&&(D.feature=t.embedsFeature);h.length>0&&(X.T("embeds_web_enable_lite_experiment_control_arm_logging")?h.unshift(28572):g.s0(g.CT(X))&&h.unshift(159628),X=h.join(","),X= g.xH()?X:g.OO(X,4),D.source_ve_path=X);this.S.length=0};g.U(ptW,uR);g.U(A9H,uR);g.U(gB,g.O);gB.prototype.Yy=function(){g.O.prototype.Yy.call(this);this.S=null;this.G&&this.G.disconnect()};g.U(lQn,uR);g.U(vA,uR);vA.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.U(dB,g.Y);dB.prototype.show=function(){g.Y.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; dB.prototype.stopTimer=function(){this.S&&(this.S.dispose(),this.S=null)}; dB.prototype.onVideoDataChange=function(D){var X,M,Q=(X=this.api.getVideoData())==null?void 0:(M=X.getPlayerResponse())==null?void 0:M.playabilityStatus;Q&&(X=J9p(Q),g.x(this.api.getPlayerStateObject(),128)||D==="dataloaderror"||!X?(this.G=0,this.stopTimer(),this.hide()):(D=(X.remainingTimeSecs||0)*1E3,D>0&&(this.show(),this.updateValue("label",u3(X.label)),WmH(this,D))))}; dB.prototype.Yy=function(){this.stopTimer();g.Y.prototype.Yy.call(this)};g.U(GY_,uR);g.U(rB,g.Y);rB.prototype.onClick=function(){this.XF.logClick(this.element);this.XF.ER("onFullerscreenEduClicked")}; rB.prototype.C$=function(){this.XF.isFullscreen()?this.S?this.fade.hide():this.fade.show():this.hide();this.XF.logVisibility(this.element,this.XF.isFullscreen()&&!this.S)};g.U(iP,uR);iP.prototype.updateFullerscreenEduButtonSubtleModeState=function(D){var X;(X=this.S)!=null&&(g.qE(X.element,"ytp-fullerscreen-edu-button-subtle",D),D&&!X.G&&(X.XF.T("player_tooltip_data_title_killswitch")?X.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):X.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),EI(X.XF,X.element,X),X.G=!0))}; iP.prototype.updateFullerscreenEduButtonVisibility=function(D){var X;(X=this.S)!=null&&(X.S=D,X.C$())};g.U(zQH,g.Y);g.U(jBd,uR);g.U(oS,uR);oS.prototype.getSphericalProperties=function(){var D=g.gb(this.api.Qq());return D?D.getSphericalProperties():{}}; oS.prototype.setSphericalProperties=function(D){if(D){var X=g.gb(this.api.Qq());X&&X.setSphericalProperties(D,!0)}};g.U(C5,uR);g.B=C5.prototype;g.B.createClientVe=function(D,X,M,Q){this.api.createClientVe(D,X,M,Q===void 0?!1:Q)}; g.B.createServerVe=function(D,X,M){this.api.createServerVe(D,X,M===void 0?!1:M)}; g.B.setTrackingParams=function(D,X){this.api.setTrackingParams(D,X)}; g.B.logClick=function(D,X){this.api.logClick(D,X)}; g.B.logVisibility=function(D,X,M){this.api.logVisibility(D,X,M)}; g.B.hasVe=function(D){return this.api.hasVe(D)}; g.B.destroyVe=function(D){this.api.destroyVe(D)};var XYn=!1;p5.prototype.setPlaybackRate=function(D){this.playbackRate=Math.max(1,D)}; p5.prototype.getPlaybackRate=function(){return this.playbackRate};G6.prototype.lr=function(D){var X=g.vE(D.info.n$.info,this.P2.yq),M=D.info.Ts+this.U,Q=D.info.startTime*1E3;if(this.policy.p$)try{Q=this.policy.p$?g.B2(D)*1E3:D.info.startTime*1E3}catch(t){Math.random()>.99&&this.logger&&(Q=wF(D.G).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:D.info.HC(),encodedDataView:g.C7(Q,4)})),Q=D.info.startTime*1E3}var h=D.info.clipId,H=this.policy.p$?g.MvH(D)*1E3:D.info.duration*1E3;this.policy.p$&&(Q<0||H<0)&&(this.logger&&(this.logger({missingSegInfo:D.info.HC(), startTimeMs:Q,durationMs:H}),this.policy.v8||(Q<0&&(Q=D.info.startTime*1E3),H<0&&(H=D.info.duration*1E3))),this.policy.v8&&(Q<0&&(Q=D.info.startTime*1E3),H<0&&(H=D.info.duration*1E3)));return{formatId:X,Ts:M,startTimeMs:Q,clipId:h,rP:H}}; G6.prototype.CS=function(D){this.timestampOffset=D};z6.prototype.seek=function(D,X){D!==this.targetTime&&(this.seekCount=0);this.targetTime=D;var M=this.videoTrack.S,Q=this.audioTrack.S,h=this.audioTrack.I2,H=Brn(this,this.videoTrack,D,this.videoTrack.I2,X);X=Brn(this,this.audioTrack,this.policy.R2?D:H,h,X);D=Math.max(D,H,X);this.U=!0;this.P2.isManifestless&&(KQW(this,this.videoTrack,M),KQW(this,this.audioTrack,Q));return D}; z6.prototype.isSeeking=function(){return this.U}; z6.prototype.hH=function(D){this.G=D}; var $si=2/24;var cep=0;var NR;qR.prototype.add=function(D){if(this.pos+20>this.data.length){var X=new Uint8Array(this.data.length*2);X.set(this.data);this.data=X}for(;D>31;)this.data[this.pos++]=NR[(D&31)+32],D>>=5;this.data[this.pos++]=NR[D|0]}; qR.prototype.Ij=function(){return g.aL(this.data.subarray(0,this.pos))}; qR.prototype.reset=function(){this.pos=0};g.B=LL.prototype;g.B.HH=function(){this.eH=this.now();EVp(this.Hb,this.eH);this.mz.HH()}; g.B.w8=function(D,X){var M=this.policy.G?(0,g.fi)():0;sG(this,D,X);D-this.X<10&&this.G>0||this.MM(D,X);this.mz.w8(D,X);this.policy.G&&(D=(0,g.fi)()-M,this.h5+=D,this.q5=Math.max(D,this.q5))}; g.B.MM=function(D,X){var M=(D-this.X)/1E3,Q=X-this.Y;this.Dy||(icR(this.Hb,M,Q),this.cH(M,Q));this.X=D;this.Y=X}; g.B.Tx=function(){this.sR&&Sa9(this);this.mz.Tx()}; g.B.vk=function(D){this.sR||(this.sR=this.D-this.qj+D,this.DJ=this.D,this.Vq=this.J)}; g.B.XL=function(D,X){D=D===void 0?this.J:D;X=X===void 0?this.D:X;this.G>0||(this.K=D,this.G=X,this.f$=this.isActive=!0)}; g.B.DL=function(){return this.x5||2}; g.B.lO=function(){}; g.B.c8=function(){var D,X={rn:this.requestNumber,rt:(this.J-this.S).toFixed(),lb:this.D,stall:(1E3*this.U).toFixed(),ht:(this.eH-this.S).toFixed(),elt:(this.K-this.S).toFixed(),elb:this.G,d:(D=this.L$)==null?void 0:D.Ij()};this.url&&Dss(X,this.url);this.policy.G&&(X.mph=this.q5.toFixed(),X.tph=this.h5.toFixed());X.ulb=this.M5;X.ult=this.R5;return X}; g.B.now=function(){return(0,g.fi)()}; g.B.deactivate=function(){this.isActive&&(this.isActive=!1)};g.U(aP,LL);g.B=aP.prototype;g.B.c8=function(){var D=LL.prototype.c8.call(this);D.pb=this.z$;D.pt=(1E3*this.J5).toFixed();D.se=this.Ky;return D}; g.B.Qb=function(){var D=this.mz;this.t$||(this.t$=D.Qb?D.Qb():1);return this.t$}; g.B.Fv=function(){return this.fV?this.Qb()!==1:!1}; g.B.mw=function(D,X,M){if(!this.Mj){this.Mj=!0;if(!this.Dy){sG(this,D,X);this.MM(D,X);var Q=this.Qb();this.Ky=M;if(!this.Dy)if(Q===2){Q=D-this.K0)||VY(this,Q,X),this.G>0&&l6(this.Hb,X,this.U));D=(D-this.S)/ 1E3||.01;this.policy.K&&!(this.G>0)||YE(this.Hb,D,this.Y,Ps9(this),this.iX)}this.deactivate()}}; g.B.Qw=function(D,X,M){M&&(this.t$=2);D<0&&this.x5&&(D=this.x5);X?this.A$+=D:this.OR+=D}; g.B.DL=function(){return this.OR||this.A$||LL.prototype.DL.call(this)}; g.B.MM=function(D,X){var M=(D-this.X)/1E3,Q=X-this.Y,h=this.Qb();this.isActive?h===1&&((Q>0||this.policy.D)&&(M>.2||Q<1024)?(this.U+=M,Q>0&&M>.2&&VY(this,this.SR?M:.05,Q),this.zm=!0):Q>0&&(VY(this,M,Q),this.zm=!0)):X&&X>=this.policy.S&&this.XL(D,X);LL.prototype.MM.call(this,D,X)}; g.B.vS=function(D){if(!this.Dy){sG(this,D,this.D);var X=(D-this.S)/1E3;this.Qb()!==2&&this.G>0&&(this.U+=(D-this.X)/1E3,l6(this.Hb,this.Y,this.U));YE(this.Hb,X,this.Y,Ps9(this),this.iX,!0);D=(D-this.X)/1E3;icR(this.Hb,D,0);this.cH(D,0)}}; g.B.XL=function(D,X){D=D===void 0?this.J:D;X=X===void 0?this.D:X;if(!(this.G>0)&&(LL.prototype.XL.call(this,D,X),this.Qb()===1)){X=(this.eH-this.S)/1E3;var M=(D-this.eH)/1E3;this.fV&&$M(this,this.now());this.R2||this.Dy||(this.x5&&(M=Math.max(0,M-this.x5)),D=this.Hb,D.K.AS(1,X),D.L$.AS(1,M))}}; g.B.U9=function(){this.fV&&$M(this,this.now());return this.yf}; g.B.P4=function(){var D;if(D=this.Y>this.Iv)D=(D=this.Y)?D>=this.policy.S:!1;return D}; g.B.A9=function(){return this.p$}; g.B.PK=function(D){D=D===void 0?this.now():D;if(this.fV){$M(this,D);if(this.t$?this.Fv():this.a5!==this.uj){var X=this.uj;if(D0?M+D:M+Math.max(D,X)}; g.B.Yf=function(){return this.now()-this.K}; g.B.t9=function(){return(this.Y-this.G)*1E3/this.Yf()||0}; g.B.xS=function(){return this.K};B8.prototype.feed=function(D){hG(this.S,D);this.f6()}; B8.prototype.f6=function(){if(this.U){if(!this.S.totalLength)return;var D=this.S.split(this.Y-this.G),X=D.vQ;D=D.sI;if(!this.mz.vk(this.U,X,this.G,this.Y))return;this.G+=X.totalLength;this.S=D;this.G===this.Y&&(this.U=this.Y=this.G=void 0)}for(;;){var M=0;D=g.e(eF2(this.S,M));X=D.next().value;M=D.next().value;M=g.e(eF2(this.S,M));D=M.next().value;M=M.next().value;if(X<0||D<0)break;if(!(M+D<=this.S.totalLength)){if(!(this.mz.vk&&M+1<=this.S.totalLength))break;M=this.S.split(M).sI;this.mz.vk(X,M,0, D)&&(this.U=X,this.G=M.totalLength,this.Y=D,this.S=new Qi([]));break}D=this.S.split(M).sI.split(D);M=D.sI;this.mz.O_(X,D.vQ);this.S=M}}; B8.prototype.dispose=function(){this.S=new Qi};g.B=Z8.prototype;g.B.sB=function(){return 0}; g.B.IW=function(){return null}; g.B.VT=function(){return null}; g.B.kP=function(){return this.state>=1}; g.B.isComplete=function(){return this.state>=3}; g.B.Kk=function(){return this.state===5}; g.B.onStateChange=function(){}; g.B.cC=function(D){var X=this.state;this.state=D;this.onStateChange(X);this.callback&&this.callback(this,X)}; g.B.HT=function(D){D&&this.state=this.xhr.HEADERS_RECEIVED}; g.B.getResponseHeader=function(D){try{return this.xhr.getResponseHeader(D)}catch(X){return""}}; g.B.d5=function(){return+this.getResponseHeader("content-length")}; g.B.Z9=function(){return this.G}; g.B.un=function(){return this.status>=200&&this.status<300&&!!this.G}; g.B.DU=function(){return this.S.totalLength>0}; g.B.IL=function(){var D=this.S;this.S=new Qi;return D}; g.B.He=function(){return this.S}; g.B.abort=function(){this.H2=!0;this.xhr.abort()}; g.B.lR=function(){return!0}; g.B.kH=function(){return this.Y}; g.B.L2=function(){return""};g.B=gVn.prototype; g.B.run=function(){var D=this,X,M,Q,h,H,t,q,w,T,L,K,a,F,V,c;return g.r(function(S){if(S.S==1){D.status=200;X=D.S.get("docid");M=YZ(D.S.get("fmtid")||"");Q=D.S.get("lmt")||"0";h=+(D.S.get("csz")||0);if(!X||!M||!h)throw Error("Invalid local URL");D.S.get("ck")&&D.S.get("civ")&&(H=new Ivn(D.S.get("ck"),D.S.get("civ")));t=D.range;q=Math.floor(t.start/h);w=Math.floor(t.end/h);T=q}if(S.S!=5)return T<=w?g.I(S,$U9(X,M,Q,T,H),5):S.D4(0);L=S.G;if(L===void 0)throw Error("invariant: data is undefined");K=T*h; a=(T+1)*h;F=Math.max(0,t.start-K);V=Math.min(t.end+1,a)-(F+K);c=new Uint8Array(L.buffer,F,V);D.G.append(c);D.loaded+=V;D.loaded=200&&this.status<300&&!!this.G}; g.B.DU=function(){return!!this.S.totalLength}; g.B.IL=function(){var D=this.S;this.S=new Qi;return D}; g.B.He=function(){return this.S}; g.B.H2=function(){return this.aborted}; g.B.abort=function(){this.Y&&this.Y.cancel().catch(function(){}); this.U&&this.U.abort();this.aborted=!0}; g.B.lR=function(){return!0}; g.B.kH=function(){return this.D}; g.B.L2=function(){return this.errorMessage};g.B=reH.prototype;g.B.onDone=function(){if(!this.H2){this.status=this.xhr.status;try{this.response=this.xhr.response,this.G=this.response.byteLength}catch(D){}this.S=!0;this.mz.Tx()}}; g.B.Xi=function(){this.xhr.readyState===2&&this.mz.HH()}; g.B.onProgress=function(D){this.H2||(this.status=this.xhr.status,this.S||(this.G=D.loaded),this.mz.w8((0,g.fi)(),D.loaded))}; g.B.Xu=function(){return this.xhr.readyState>=2}; g.B.getResponseHeader=function(D){try{return this.xhr.getResponseHeader(D)}catch(X){return g.P3(Error("Could not read XHR header "+D)),""}}; g.B.d5=function(){return+this.getResponseHeader("content-length")}; g.B.Z9=function(){return this.G}; g.B.un=function(){return this.status>=200&&this.status<300&&this.S&&!!this.G}; g.B.DU=function(){return this.S&&!!this.response&&!!this.response.byteLength}; g.B.IL=function(){var D=this.response;this.response=void 0;return new Qi([new Uint8Array(D)])}; g.B.He=function(){return new Qi([new Uint8Array(this.response)])}; g.B.abort=function(){this.H2=!0;this.xhr.abort()}; g.B.lR=function(){return!1}; g.B.kH=function(){return!1}; g.B.L2=function(){return""};g.U(fL,g.O);fL.prototype.LV=function(){if(!this.PP.length)return[];var D=this.PP;this.PP=[];this.Y=g.lW(D).info;return D}; fL.prototype.II=function(){return this.PP}; fL.prototype.Yy=function(){g.O.prototype.Yy.call(this);this.S=null;this.PP.length=0;this.W2.length=0;this.Y=null};g.U(EG,g.O);g.B=EG.prototype; g.B.v55=function(){if(!this.H2()){var D=(0,g.fi)(),X=!1;if(this.policy.wj){var M=this.timing.G>0?this.timing.K:this.timing.S;this.policy.GI5&&this.Y&&(M=this.Y);D=D-M-(this.policy.VH?this.policy.Jn:this.timing.DL()*1E3);M=IJ(yY(this),!1);D>=2E3*M?X=!0:D>=this.policy.gm*M&&(this.S=this.policy.Oi)}else if(this.timing.G>0){if(this.X){this.policy.Vq&&(this.S=0);return}D=this.timing.A9();this.timing.PK();this.timing.A9()-D>=this.policy.I6*.8?(this.S++,X=this.S>=5):this.S=0}else X=D-this.timing.U9(),this.policy.Oi&& X>0&&(this.S+=1),D=IJ(yY(this),!1)*this.policy.N7,X=X>D*1E3;this.S>0&&this.mz.Gl();X?this.KH():this.G.start()}}; g.B.KH=function(){this.D=!0;this.mz.BR();this.lastError="net.timeout";m3(this)}; g.B.canRetry=function(D){var X=yY(this);D=D?this.policy.dT:this.policy.nj;return X.timedOut0&&(X=Tg(X.S,0),D.ubyte=X,M===1&&X===0&&(D.b248180278=!0))}this.HB&&(D.rc=this.policy.tL?this.HB:this.HB.toString());this.policy.ZJ&&this.Q1&&(D.tr=this.Q1);D.itag=this.info.W2[0].n$.info.itag;D.ml=""+ +this.info.W2[0].n$.hh();D.sq=""+this.info.W2[0].Ts;this.BD&&(D.ifi=""+ +td(4,this.info.Uw.G));this.HB!==410&&this.HB!==500&&this.HB!==503||(D.fmt_unav="true");var Q;(M=this.errorMessage||((Q=this.xhr)==null? void 0:Q.L2()))&&(D.msg=M);this.SQ&&(D.smb="1");this.info.isDecorated()&&(D.sdai="1");return D}; g.B.il=function(){return mss(this.timing)}; g.B.L2=function(){return this.xhr.L2()||""}; g.B.P4=function(){return this.isComplete()||this.timing.P4()}; g.B.w8=function(){!this.H2()&&this.xhr&&(this.HB=this.xhr.status,this.policy.n0&&this.eA&&this.iI(!1),this.YE()?this.HT(2):!this.w9&&this.P4()&&(this.HT(),this.w9=!0))}; g.B.HH=function(){if(!this.H2()&&this.xhr){if(!this.vR&&this.xhr.Xu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var D=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.vR=((0,g.fi)()-D)/1E3}this.xhr.Xu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.w2y&&!TIn()&&g.gw("yt-player-headers-readable",!0,2592E3);D=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var X=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),M;(M=this.nH)==null||M.stop();this.Cz=D||this.Cz; this.Fo=X||this.Fo}}; g.B.Tx=function(){var D=this.xhr;if(!this.H2()&&D){this.HB=D.status;D=this.Ue(D);if(this.policy.ZJ){var X;(X=this.nH)==null||X.stop()}D===5?m3(this.Mx):this.cC(D);this.Mx.G.stop()}}; g.B.Ue=function(D){ao2(this);if(nL(this.Mx,this.xhr.status,this.ST?this.timing.f$||this.Wo:this.xhr.un(),!1,this.Cn))return 5;var X="";by(this.Mx,this.xhr)&&(X=pYs(this.Mx,this.xhr));if(X)return RJ(yY(this.Mx)),this.info.lI(this.BD,X),3;X=D.Z9();if(this.gU){this.iI(!0);ao2(this);if(nL(this.Mx,this.xhr.status,this.timing.f$||this.Wo,!1,this.Cn))return 5;if(!this.EK){if(this.Wo)return RJ(yY(this.Mx)),3;this.Mx.lastError="net.closed";return 5}}else{if(nL(this.Mx,this.xhr.status,this.xhr.un(),!1,this.Cn))return 5; var M=this.info.Y;if(M&&M!==X||D.kH())return this.Mx.lastError="net.closed",5;this.iI(!0)}M=RF9(this)?D.getResponseHeader("X-Bandwidth-Est"):0;if(D=RF9(this)?D.getResponseHeader("X-Bandwidth-Est3"):0)this.MC=!0,this.policy.mu&&(M=D);Oq1(this.Mx,X,M?Number(M):0,this.info.W2[0].type===5);return 4}; g.B.canRetry=function(){this.H2();var D=this.info.isDecorated();return this.Mx.canRetry(D)}; g.B.onStateChange=function(){this.isComplete()&&(this.policy.Lv?this.BR():this.timing.deactivate())}; g.B.KH=function(){this.Mx.KH()}; g.B.Gl=function(){this.callback&&this.callback(this,this.state)}; g.B.R9=function(){return this.Mx.R9()}; g.B.dispose=function(){Z8.prototype.dispose.call(this);this.Mx.dispose();var D;(D=this.nH)==null||D.dispose();this.policy.Lv||this.BR()}; g.B.BR=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.B.LV=function(){if(!this.II().length)return[];this.x3=!0;return this.eA.LV()}; g.B.YE=function(){if(this.state<1)return!1;if(this.eA&&this.eA.PP.length)return!0;var D;return((D=this.xhr)==null?0:D.DU())?!0:!1}; g.B.II=function(){this.iI(!1);return this.eA?this.eA.II():[]}; g.B.iI=function(D){try{if(D||this.xhr.Xu()&&this.xhr.DU()&&!by(this.Mx,this.xhr)&&!this.Jr)this.eA||(this.eA=new fL(this.policy,this.info.W2)),this.xhr.DU()&&(this.gU?this.gU.feed(this.xhr.IL()):SC(this.eA,this.xhr.IL(),D&&!this.xhr.DU()))}catch(X){this.gU?sKd(this,X):g.P3(X)}}; g.B.O_=function(D,X){switch(D){case 21:D=X.split(1).sI;KD_(this,D);break;case 22:this.EK=!0;SC(this.eA,new Qi([]),!0);break;case 43:if(D=Eq(new BT(X),1))this.info.lI(this.BD,D),this.Wo=!0;break;case 45:X=Ve(new BT(X));D=X.Gq;X=X.WK;D&&X&&(this.W_=D/X);break;case 44:this.Vo=jU2(new BT(X));var M,Q,h;!this.timing.f$&&((M=this.Vo)==null?void 0:M.action)===4&&((Q=this.Vo)==null?0:(h=Q.xU)==null?0:h.ST)&&(this.ST=this.Vo.xU.ST);break;case 53:this.policy.ZJ&&(D=zmR(new BT(X)).Zy)&&(this.nH||(this.Zy=D,this.nH= new g.W5(this.zj,D,this)),this.nH.start());break;case 60:this.Sm=Fu(new BT(X));break;case 58:if(D=yUp(new BT(X)))this.DD=D,D.DD===3&&(this.Cn=!0)}}; g.B.vk=function(D,X,M,Q){M||this.timing.vk(Q);if(D!==21)return!1;if(D=this.policy.n0)if(D*=this.info.W2[0].n$.info.jH,X.totalLength+M!==Q&&X.totalLength0)return!1;if(!this.xhr.Xu())return!0;if(this.gU)var D=!this.info.Y;else this.xhr.d5()?D=!1:(D=this.xhr.getResponseHeader("content-type"),D=D==="audio/mp4"||D==="video/mp4"||D==="video/webm");if(!D)return!1;if(isNaN(this.info.fY)){D=this.xhr.getResponseHeader("x-head-seqnum");var X=this.timing.policy.J?1:0;if(D&&Number(D)>this.info.W2[0].Ts+X)return!1}return!0}; g.B.kA=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.B.IW=function(){this.xhr&&(this.Cz=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Cz}; g.B.VT=function(){this.xhr&&(this.Fo=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Fo}; g.B.WP=function(){return this.Mx.WP()}; g.B.zj=function(){if(!this.H2()&&this.xhr){this.Q1="heartbeat";var D=this.Mx;D.S+=2;this.Gl()}};g.U(iy,LL);g.B=iy.prototype;g.B.MM=function(D,X){var M=(D-this.X)/1E3,Q=X-this.Y;this.G>0?Q>0&&(this.a5&&(M>.2||Q<1024?(this.U+=M,M>.2&&FDp(this,.05,Q)):FDp(this,M,Q)),this.uj&&(this.yf+=Q,this.OR+=M)):X>this.policy.S&&this.XL(D,X);LL.prototype.MM.call(this,D,X)}; g.B.mw=function(D,X){sG(this,D,X);this.MM(D,X);this.a5&&(X=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.G>0&&l6(this.Hb,this.yf,this.U),D=(D-this.S)/1E3||.01,this.policy.K&&!(this.G>0)||YE(this.Hb,D,this.Y,X,!1))}; g.B.vS=function(D){sG(this,D,this.D);var X=(D-this.X)/1E3;icR(this.Hb,X,0);this.cH(X,0);!this.a5&&this.G>0||(X=this.Y*this.snapshot.stall+this.Y/this.snapshot.byterate,this.G>0&&(this.U+=(D-this.X)/1E3,l6(this.Hb,this.yf,this.U)),YE(this.Hb,(D-this.S)/1E3||.01,this.Y,X,!1,!0))}; g.B.AI=function(D){D=D.Iu||2147483647;(D&2)!==2&&(this.uj=!1);(D&1)===1&&(this.a5=!0)}; g.B.Ht=function(D){D=D.Iu||2147483647;(D&2)===2&&(this.uj=!1);(D&1)===1&&(this.a5=!1)}; g.B.xS=function(){return this.K}; g.B.Yf=function(){var D=this.uj?this.now()-this.X:0;return Math.max(this.OR*1E3+D,1)}; g.B.t9=function(){return this.yf*1E3/this.Yf()}; g.B.XL=function(D,X){D=D===void 0?this.J:D;X=X===void 0?this.D:X;this.G>0||(LL.prototype.XL.call(this,D,X),X=this.Hb,D=(D-this.eH)/1E3,X.K.AS(1,(this.eH-this.S)/1E3),X.L$.AS(1,D))}; g.B.lO=function(D){this.A$=D}; g.B.c8=function(){var D=LL.prototype.c8.call(this);D.rbw=this.t9();D.rbe=+this.uj;D.gbe=+this.a5;D.ackt=(this.A$-this.S).toFixed();return D}; g.B.PK=function(){}; g.B.A9=function(){return NaN}; g.B.U9=function(){return this.S+this.snapshot.delay*1E3};oP.prototype.O_=function(D,X){switch(D){case 20:D=new BT(X);D={Jw:cT(D,1),videoId:Eq(D,2),itag:cT(D,3),lmt:cT(D,4),xtags:Eq(D,5),zg:cT(D,6),LS:f4(D,8),fm:cT(D,9),IUR:cT(D,10),startMs:cT(D,11),durationMs:cT(D,12),j9:cT(D,14),timeRange:yi(D,15,qCR),Zb:cT(D,16),IS:cT(D,17),Q9:cT(D,20),clipId:Eq(D,1E3)};this.DQ(D);break;case 21:this.Lb(X,!1);break;case 22:this.WX(X);break;case 31:D=n4(X,pr2);this.mz.zK(D);break;case 52:D=n4(X,kBn);this.mz.YV(D);break;case 69:D={uW:m6(new BT(X),1,vn9)};this.mz.tf(D);break; default:this.Vs(D,X)}}; oP.prototype.DQ=function(){}; oP.prototype.Vs=function(){};var cyZ=new Set([53,49,50]);g.U(CL,oP);g.B=CL.prototype;g.B.Vs=function(D,X){nCm(this.mz)&&!cyZ.has(D)?this.S.push({id:D,data:X}):V45(this,D,X)}; g.B.CL=function(D){D=new BT(D);D={mH4:m6(D,1,LE),Ny4:m6(D,2,LE)};this.mz.CL(D)}; g.B.ya=function(D){var X=new BT(D);D=PT(X,1);var M=PT(X,2);X=PT(X,3);this.mz.ya(D,M,X)}; g.B.Kz=function(D){D=Ve(new BT(D));this.mz.Kz(D)}; g.B.Xd=function(D){D=n4(D,lqo);this.mz.Xd(D)}; g.B.S4=function(D){D=new BT(D);D={videoId:Eq(D,1),formatId:yi(D,2,LE),endTimeMs:cT(D,3),zp$:cT(D,4),mimeType:Eq(D,5),zy:yi(D,6,d1W),indexRange:yi(D,7,d1W),al:yi(D,8,rU1)};this.mz.S4(D)}; g.B.YO=function(D){D=new BT(D);D={type:cT(D,1),scope:cT(D,2),value:Se(D,3),sendByDefault:f4(D,4),writePolicy:cT(D,5)};this.mz.YO(D)}; g.B.TV=function(){this.mz.TV()}; g.B.F5=function(D){D=AUW(new BT(D));this.mz.F5(D)}; g.B.Mu=function(D){D=zmR(new BT(D));this.mz.Mu(D)}; g.B.Pt=function(D){D=jU2(new BT(D));this.mz.Pt(D)}; g.B.Pl=function(D){D={redirectUrl:Eq(new BT(D),1)};this.mz.Pl(D)}; g.B.Lb=function(D){var X=Tg(D,0);if(D.totalLength!==1){D=D.split(1).sI;var M=this.G[X]||null;M&&xM(this.mz.m3,X,M,D)}}; g.B.WX=function(D){D=Tg(D,0);var X=this.G[D]||null;X&&this.mz.WX(D,X)}; g.B.DQ=function(D){var X=D.Jw,M=D.LS,Q=D.zg,h=D.IS,H=D.Zb,t=D.fm,q=D.startMs,w=D.durationMs,T=D.timeRange,L=D.j9,K=D.Q9,a=D.clipId,F=Cq(D);D=jat.has(fE[""+D.itag]);this.G[X]=F;var V=-1;K&&(T==null?0:T.timescale)&&(V=K/T.timescale);this.mz.Qw(F,D,V,{Jw:X,LS:!!M,zg:Q!=null?Q:-1,fm:t!=null?t:-1,startMs:q!=null?q:-1,durationMs:w!=null?w:-1,j9:L,IS:h,Zb:H,clipId:a,timeRange:T})}; g.B.AI=function(D){D={Iu:cT(new BT(D),1)};this.mz.AI(D)}; g.B.Ht=function(D){D={Iu:cT(new BT(D),1)};this.mz.Ht(D)}; g.B.gy=function(D){D=yUp(new BT(D));this.mz.gy(D)}; g.B.I9=function(D){D={yC:yi(new BT(D),1,WAp)};this.mz.I9(D)}; g.B.onSnackbarMessage=function(D){D=cT(new BT(D),1);this.mz.onSnackbarMessage(D)}; g.B.Bt=function(D){D=new BT(D);D={reloadPlaybackParams:yi(D,1,EnW),Y1:f4(D,2)};this.mz.Bt(D)}; g.B.a7=function(){for(var D=g.e(this.S),X=D.next();!X.done;X=D.next())X=X.value,V45(this,X.id,X.data);this.S=[]};g.U(OG,g.O);g.B=OG.prototype;g.B.Lc=function(){return Array.from(this.Nx.keys())}; g.B.GJ=function(D){D=this.Nx.get(D);var X=D.PP;D.Av+=X.totalLength;D.PP=new Qi;return X}; g.B.Jh=function(D){return this.Nx.get(D).Jh}; g.B.u9=function(D){return this.Nx.get(D).u9}; g.B.Qw=function(D,X,M){this.Nx.get(D)||this.Nx.set(D,{PP:new Qi,Av:0,bytesReceived:0,jW:0,nP:!1,Jh:!1,u9:!1,q2:X,qp:[],W2:[],hI:[],Je:!1,Ph:new Map,qy:new Map,Z$:[]});X=this.Nx.get(D);this.P2?(D=fod(this,D,M),cIs(this,M.Jw,X,D)):(M.LS?X.jW=M.j9:X.hI.push(M),X.qp.push(M))}; g.B.Gx=function(D){var X;return((X=this.Nx.get(D))==null?void 0:X.W2)||[]}; g.B.HT=function(){for(var D=g.e(this.Nx.values()),X=D.next();!X.done;X=D.next())if(X=X.value,X.nP){if(X.onProgress)X.onProgress();X.nP=!1}}; g.B.WX=function(D,X){X=this.Nx.get(X);pL?X&&!X.Jh&&(X.Ph.get(D)?X.Ph.get(D).Tn=!0:X.Ph.set(D,{data:new Qi,lJ:0,Tn:!0}),X.u9=!0):X&&!X.u9&&(X.u9=!0)}; g.B.LV=function(D){if(pL){var X=this.Nx.get(D);if(X)for(var M=g.e(X.Ph),Q=M.next();!Q.done;Q=M.next()){var h=g.e(Q.value);Q=h.next().value;h=h.next().value;var H=X.qy.get(Q);if(WY(H[0])){if(!h.Tn)continue;var t=h.data,q=0,w=[];H=g.e(H);for(var T=H.next();!T.done;T=H.next()){T=T.value;var L=T.G,K=HT(t,q,L);q+=L;w.push(new Fi(T,K))}X.Z$.push.apply(X.Z$,g.xW(w))}else if(h.data.totalLength>0||!H[0].range&&h.Tn)t=void 0,q=H[0],w=h.lJ,H=h.data,q.range||(t=h.Tn),t=new Fi(nJd(q,q.S+w,H.totalLength,t),H), h.lJ+=t.info.G,X.Z$.push(t);X.Ph.get(Q).data=new Qi;h.Tn&&X.Ph.delete(Q)}D=this.Nx.get(D);if(!D)return[];X=D.Z$;D.Z$=[];M=g.e(X);for(Q=M.next();!Q.done;Q=M.next())D.Av+=Q.value.info.G;return X||[]}M=(X=this.Nx.get(D))==null?void 0:X.eA;if(!M)return[];this.iI(D,M);return M.LV()}; g.B.YE=function(D){if(pL)return JY(this,D);var X,M,Q;return!!((M=(X=this.Nx.get(D))==null?void 0:X.eA)==null?0:(Q=M.II())==null?0:Q.length)||JY(this,D)}; g.B.iI=function(D,X){for(;JY(this,D);){var M=this.GJ(D);var Q=D;Q=this.Nx.get(Q).Jh&&!ly(this,Q);SC(X,M,Q&&UH9(this,D))}}; g.B.Yy=function(){g.O.prototype.Yy.call(this);for(var D=g.e(this.Nx.keys()),X=D.next();!X.done;X=D.next())AY(this,X.value);var M;if((M=this.j$)==null?0:M.cW)for(D=g.e(this.Nx.values()),X=D.next();!X.done;X=D.next())X=X.value,X.Ph.clear(),X.qy.clear(),X.Z$.length=0,X.W2.length=0,X.qp.length=0,X.hI.length=0;this.Nx.clear()}; var pL=!1;var fdy=new Set([2]);g.U(W8,g.O);g.B=W8.prototype;g.B.w8=function(){!this.H2()&&this.xhr&&(this.iI(!1),w5(this.mz,this))}; g.B.HH=function(){}; g.B.Tx=function(){if(!this.H2()&&this.xhr){var D=this.Ue();D===5?m3(this.Mx):this.cC(D);this.Mx.G.stop();var X;(X=this.gB)==null||X.stop()}}; g.B.Ue=function(){var D="";by(this.Mx,this.xhr)&&(D=pYs(this.Mx,this.xhr));if(D)return this.info.Uw.lI(this.BD,D),3;this.iI(!0);if(nL(this.Mx,this.xhr.status,this.xhr.un(),this.info.uT(),this.Cn))return 5;if(this.Dv)return 3;Oq1(this.Mx,this.xhr.Z9(),0,this.uT());this.policy.bM&&SN1(this.mz);return 4}; g.B.iI=function(D){var X=this.xhr;!D&&by(this.Mx,this.xhr)||!X.DU()||(D=X.IL(),this.gU.feed(D))}; g.B.O_=function(D,X){this.xhr.lR()&&D===21&&Pki(this);this.iQ.O_(D,X)}; g.B.vk=function(D,X,M,Q){M||(this.V2.vk(Q),this.policy.aI&&D===21&&Pki(this));if(D!==21)return!1;this.V2.f$=!0;D=X.totalLength;M||(this.Js=Tg(X,0),X=X.split(1).sI);var h=this.policy.W5,H=this.iQ.G[this.Js],t=this.P2.Y.get(H);if(h&&t&&(h*=t.info.jH,D+M!==Q&&D0){this.policy.wj&&this.Mx.G.stop();D=this.V2.Yf();X=this.V2.t9();var M=mH_(this,D);if(!(X>M.X9||M.di>0&&this.info.BO()>M.di)){this.Oq=(0,g.fi)();var Q;(Q=this.gB)==null||Q.stop();this.policy.bM&&(Q=this.mz,D={dX:Math.round(X*D/1E3),WA:D},Q.policy.bM&&(Q.uj=D,Q.Rt++));this.KH()}}}}; g.B.KH=function(){this.Mx.KH()}; g.B.Pt=function(D){this.mz.Pt(D,this.Bh())}; g.B.Pl=function(D){this.Dv=!0;this.info.Uw.lI(this.BD,D.redirectUrl)}; g.B.AI=function(D){this.V2 instanceof iy&&this.V2.AI(D)}; g.B.Ht=function(D){this.V2 instanceof iy&&this.V2.Ht(D)}; g.B.S4=function(D){var X=D.formatId,M=Cq({itag:X.itag,lmt:X.lmt,xtags:X.xtags}),Q,h,H=new Ae(((Q=D.zy)==null?void 0:Q.first)||0,((h=D.zy)==null?void 0:h.HE)||0),t,q;Q=new Ae(((t=D.indexRange)==null?void 0:t.first)||0,((q=D.indexRange)==null?void 0:q.HE)||0);this.P2.Y.get(M)||(M=D.al||{},M.mimeType=D.mimeType,M.itag=X.itag,M.lastModified=""+(X.lmt||0),M.xtags=X.xtags,D=this.P2,X=dx(""),M=gx(M,null),mD(D,new EM(X,M,H,Q)))}; g.B.Kz=function(D){this.mz.Kz(D,this.Bh())}; g.B.onSnackbarMessage=function(D){if(this.policy.nw)this.mz.onSnackbarMessage(D)}; g.B.tf=function(D){this.policy.X&&this.mz.tf(D,this.Bh())}; g.B.zK=function(D){this.Rp=D;this.Mx.Y=(0,g.fi)();this.mz.zK(D)}; g.B.ya=function(D,X,M){this.mz.ya(D,X,M)}; g.B.YO=function(D){D.scope===2&&(this.pP=D);this.mz.YO(D)}; g.B.TV=function(){this.Gc=!0;this.mz.TV()}; g.B.CL=function(D){this.policy.l$&&this.mz.CL(D)}; g.B.Xd=function(D){this.mz.Xd(D,this.Bh())}; g.B.gy=function(D){D.DD===3&&(this.Cn=!0);this.mz.gy(D)}; g.B.I9=function(D){this.mz.I9(D)}; g.B.Bt=function(D){this.mz.Bt(D)}; g.B.canRetry=function(){this.H2();return this.Mx.canRetry(!1)}; g.B.dispose=function(){if(!this.H2()){g.O.prototype.dispose.call(this);this.Mx.dispose();var D;(D=this.gB)==null||D.dispose();this.cC(-1);this.BR()}}; g.B.cC=function(D){this.state=D;w5(this.mz,this)}; g.B.uT=function(){return this.info.uT()}; g.B.ix=function(){return this.Gc}; g.B.w7=function(){return this.pP}; g.B.Qw=function(D,X,M,Q){M>=0&&this.mz.NB(M);Q.clipId&&(this.clipId=Q.clipId);this.policy.G&&!X&&(this.UI=Q.fm);if(this.info.isDecorated()){var h=this.info,H,t;M=((H=h.data)==null?0:(t=H.md)==null?0:t.Dl)?h.data.md.Dl:-1;M>=0&&M>Q.fm&&this.mz.loader.SH("sdai",{skpsqmismatch:"1",stsq:M,rcvsq:Q.fm,a:X})}this.m3.Qw(D,X,Q);this.policy.A2&&this.Rp&&this.V2 instanceof aP&&(H=this.Rp.xs,this.V2.Qw(Q.durationMs/1E3,X,H>0&&Q.fm+1>=H));this.m3.Nx.get(D).Je=!0;this.policy.oa&&this.mz.xZ(2,X)}; g.B.WX=function(D,X){this.m3.WX(D,X)}; g.B.YV=function(D){this.requestIdentifier=D}; g.B.LV=function(D){return this.m3.LV(D)}; g.B.Gx=function(D){return this.m3.Gx(D)}; g.B.YE=function(D){return this.m3.YE(D)}; g.B.Lc=function(){return this.m3.Lc()}; g.B.Qb=function(){return 1}; g.B.Bh=function(){return this.V2.requestNumber}; g.B.NO=function(){return this.requestIdentifier}; g.B.QF=function(){return this.BD.QF()}; g.B.XT=function(){this.BR()}; g.B.BR=function(){this.V2.deactivate();var D;(D=this.xhr)==null||D.abort()}; g.B.isComplete=function(){return this.state>=3}; g.B.QS=function(){return this.state===3}; g.B.Kk=function(){return this.state===5}; g.B.uh=function(){return this.state===4}; g.B.E9=function(){return this.isComplete()}; g.B.kP=function(){return this.state>=1}; g.B.R9=function(){return this.policy.Vq?this.Mx.R9():0}; g.B.Gl=function(){this.policy.Vq&&w5(this.mz,this)}; g.B.DC=function(){return nK(this.info)}; g.B.a7=function(){this.ws()&&!this.IT&&(this.IT=!0,this.iQ.a7())}; g.B.ws=function(){var D,X;var M=(D=this.info.S)==null?void 0:(X=D.hw)==null?void 0:X.dO;return!!M&&fdy.has(M)}; g.B.vO=function(){return"SABR"}; g.B.WP=function(){return this.Mx.WP()}; g.B.uv=function(){var D=Aeo(this.Mx);Object.assign(D,bDi(this.info));D.req="sabr";D.rn=this.Bh();var X;if((X=this.xhr)==null?0:X.status)D.rc=this.policy.tL?this.xhr.status:this.xhr.status.toString();var M;(X=(M=this.xhr)==null?void 0:M.L2())&&(D.msg=X);this.Oq&&(M=mH_(this,this.Oq-this.V2.xS()),D.letm=M.Eyy,D.mrbps=M.X9,D.mram=M.di);return D};bFs.prototype.tick=function(D,X){this.ticks[D]=X?window.performance.timing.navigationStart+X:(0,g.fi)()};g.U(z4,g.Dq);g.B=z4.prototype; g.B.ek=function(D,X,M,Q){var h=!1;this.policy.G&&(h=M?this.a5===D.Ts:this.R5===D.Ts);if(this.Bb&&Q&&!h){Q=[];h=[];var H=[],t=void 0,q=0;X&&(Q=X.S,h=X.G,H=X.U,t=X.Y,q=X.dG,this.SH("sdai",{sq:D.Ts,ssvicpns:Q.join("."),ssvid:h.join(".")}));this.policy.G&&(M?this.a5=D.Ts:this.R5=D.Ts);this.Bb.OO(D.Ts,D.startTime,Q,h,H,M,q,t)}if(this.policy.G){if(M){this.G===1&&uy(this,5,"noad");var w;D.Ts!==((w=this.S)==null?void 0:w.Ts)&&(vCH(this,D,X,M),isNaN(D.startTime)||dHs(this,D.Ts,Ma(this,D.startTime,D.Ts),!!X, this.Bb))}}else M&&vCH(this,D,X)}; g.B.rg=function(D,X,M){var Q=this.videoTrack.n$.index.oN()<=X;this.S={x$:D,Ts:X,Ln:M};Q&&kM(this,D,X)}; g.B.h4=function(){this.Bb&&this.Bb.h4()}; g.B.SH=function(D,X,M){(D!=="sdai"||this.policy.Rs||(M===void 0?0:M))&&this.loader.SH(D,X)}; g.B.xE=function(D,X){var M=this.videoTrack.n$.index.lE(D);if(M>=0){var Q;var h=((Q=X.B9(M,2))==null?void 0:Q.VE)||"";if(this.policy.G||h)return X.kt(D,M),jC(this.loader,D,D,M),this.SH("sdai",{cmskpad:1,t:D.toFixed(3),sq:M}),!0}this.SH("sdai",{cmskpad:0,t:D.toFixed(3),sq:M});return!1};g.B=p2s.prototype;g.B.RR=function(D,X,M){var Q=D||this.D;this.SH("clsdai",{setadcfg:D||"misscid",cid:Q,acpn:M,acfglen:(X==null?void 0:X.length)||0});this.S.has(Q)||(this.SH("clsdai",{setadcfg:"noentry",cid:Q}),this.S.set(Q,{event:"unknown",startTimeSecs:0,rp:0,O1:[],Lu:Date.now(),WV:-1,d$:6}));(D=this.S.get(Q))?X?(D.d$=6,D.O1.push(M),D.TB=X):D.d$=2:this.SH("clsdai",{setadcfg:"notfound",cid:Q})}; g.B.AV=function(D){var X=D||this.D;this.SH("clsdai",{rmvadcfg:D||"misscid",lastcid:this.D});(D=this.S.get(X))?(D.TB="",D.d$=4):this.SH("clsdai",{rmadcfg:"notfound",cid:X})}; g.B.tf=function(D,X,M,Q){this.X=X;var h;if(!((((h=D.uW)==null?void 0:h.length)||0)<=0))if(Q)this.Y=Q,this.SH("clsdai",{oncldisabled:Q,rn:X});else if(D=D.uW[0],D.x$){var H;Q=-(((H=D.x$)==null?void 0:H.J8)||0);D.timeRange&&(Q+=(D.timeRange.startTicks||0)/(D.timeRange.timescale||1));var t,q,w,T,L;H=new XV(Q,((t=D.x$)==null?void 0:t.FtF)||0,((q=D.x$)==null?void 0:q.R1)||"",((w=D.x$)==null?void 0:w.identifier)||"",YM1((T=D.x$)==null?void 0:T.event),(((L=D.x$)==null?void 0:L.J8)||0)*1E3);t=D.fm||0;this.S.has(H.identifier)? (q=this.S.get(H.identifier),t>q.WV&&(q.startTimeSecs=H.startSecs,q.rp=H.rp,q.event==="predictStart"&&q.d$===5&&H.event!=="predictStart"&&(q.Lu=Date.now()),q.event=H.event)):(q={event:H.event,startTimeSecs:H.startSecs,rp:H.rp,O1:[],WV:t,d$:0},this.S.set(H.identifier,q),this.U&&this.SH("clsdai",{newcid:1,cid:H.identifier,evt:H.event,sn:t,rn:X,st:los(q.d$)}));q.d$===0&&((M==null?0:M.xt(H))?q.d$=5:(q.d$=M?2:3,q.TB=""),q.Lu=Date.now(),q.WV=t,this.U&&this.SH("clsdai",{onqpnt:1,cid:H.identifier,evt:H.event, sn:t,rn:X,st:los(q.d$)}));t>q.WV&&(M==null||M.xt(H),q.WV=t);this.D=H.identifier;this.U&&this.G.add(H.identifier)}}; g.B.kt=function(D,X,M){var Q=D;this.U&&(Q+=M);var h,H="";Q=AI9(this,Q);Q.length>0&&(H=Q[0])&&(h=this.S.get(H));if(!h||h.Fn){var t;this.SH("clsdai",{skipadfail:1,cid:H,sn:X,mt:D.toFixed(3),of:M.toFixed(3),skipsq:((t=h)==null?void 0:t.Fn)||-1});return!1}this.SH("clsdai",{skipadsuc:1,cid:H,sn:X,mt:D.toFixed(3),of:M.toFixed(3)});h.Fn=X;this.G.clear();this.G.add(H);return!0}; g.B.Np=function(){this.SH("clsdai",{rstskipad:1});for(var D=g.e(this.S.values()),X=D.next();!X.done;X=D.next())X.value.Fn=NaN};g.U(t_,g.O);t_.prototype.vv=function(D,X,M){M=M===void 0?{}:M;this.policy.xw=Gw(D,M,this.U,X===void 0?!1:X)};TM.prototype.AS=function(D,X){var M=Math.pow(this.alpha,D);this.S=X*(1-M)+M*this.S;this.G+=D}; TM.prototype.OW=function(){return this.S/(1-Math.pow(this.alpha,this.G))};s9.prototype.Vy=function(D){var X=this;if(this.policy.Yj){var M=new Set(D);M.size===this.L$.size&&[].concat(g.xW(M)).every(function(Q){return X.L$.has(Q)})||(this.loader.SH("lwnmow",{itagDenylist:[].concat(g.xW(D)).join(",")}),this.loader.OF(!!M.size),this.eH=-1,this.L$=M,Kz(this,this.S),this.yf=!0)}}; s9.prototype.vv=function(D,X,M){M=M===void 0?{}:M;var Q=this.policy.xw;this.D.vv(D,X===void 0?!1:X,M);if(Q!==this.policy.xw){Kz(this,this.S);aY(this);var h,H;Q>this.policy.xw&&((h=this.Y)==null?0:mq(h.info))&&((H=this.nextVideo)==null||!mq(H.info))&&(this.f$=!0)}};var B4={Ba:-1,Kd:!1,dO:0};g.U(ZW,g.O);ZW.prototype.Yy=function(){this.G=B4;U9(this);g.O.prototype.Yy.call(this)};c4.prototype.CS=function(D){this.timestampOffset=D;this.flush()}; c4.prototype.flush=function(){if(this.S.pos>0){var D={a:this.track.q2(),u:this.S.Ij(),pd:Math.round(this.U),ad:Math.round(this.Y)},X=this.G;if(X){var M=X.n$.info;D.itag=M.itag;M.S&&(D.xtags=M.S);D.sq=X.Ts;D.st=X.startTime;D.sd=X.duration;this.track.policy.wI4&&(D.si=X.HC());X.Y&&(D.esl=X.S+X.G);X.TC()&&(D.eos=1)}isNaN(this.timestampOffset)||(D.to=this.timestampOffset);var Q;if(X=(Q=this.track.I2)==null?void 0:Q.ip({})){for(var h in X)this.X[h]!==X[h]&&(D["sb_"+h]=X[h]);this.X=X}this.track.SH("sbu", D);this.S.reset();this.buffered=[];this.D=this.Y=this.U=0;this.timestampOffset=this.G=void 0}};SD.prototype.dispose=function(){this.R5=!0}; SD.prototype.H2=function(){return this.R5}; g.U(bX,Error);IY.prototype.skip=function(D){this.offset+=D}; IY.prototype.o4=function(){return this.offset};g.B=nvW.prototype;g.B.nE=function(){return this.G}; g.B.jL=function(){return this.G.length?this.G[this.G.length-1]:null}; g.B.Ia=function(){this.G=[];rk(this);v4(this)}; g.B.GJ=function(D){this.yf=this.G.shift().info;D.info.equals(this.yf)}; g.B.Gx=function(){return g.be(this.G,function(D){return D.info})}; g.B.q2=function(){return!!this.n$.info.audio}; g.B.isDrm=function(){return!!this.n$.info.DS}; g.B.getDuration=function(){return this.n$.index.fZ()};g.U(kj,Z8);g.B=kj.prototype;g.B.onStateChange=function(){this.H2()&&(YM(this.m3,this.formatId),this.S.dispose())}; g.B.uv=function(){var D=ZFo(this.m3,this.formatId),X;var M=((X=this.m3.Nx.get(this.formatId))==null?void 0:X.bytesReceived)||0;var Q;X=((Q=this.m3.Nx.get(this.formatId))==null?void 0:Q.Av)||0;return{expected:D,received:M,bytesShifted:X,sliceLength:ly(this.m3,this.formatId),isAnyMediaEndReceived:this.m3.u9(this.formatId)}}; g.B.il=function(){return 0}; g.B.P4=function(){return!0}; g.B.LV=function(){return this.m3.LV(this.formatId)}; g.B.II=function(){return[]}; g.B.YE=function(){return this.m3.YE(this.formatId)}; g.B.WP=function(){return this.lastError}; g.B.R9=function(){return 0};g.U(O9,g.O);g.B=O9.prototype;g.B.q2=function(){return!!this.n$.info.audio}; g.B.jL=function(){return this.Y.jL()}; g.B.GJ=function(D){this.Y.GJ(D);var X;(X=this.J)!=null&&(X.D.add(D.info.Ts),X.S=Nrn(X,X.LK,X.Rf,D,X.S),X.Y=D,X.X=(0,g.fi)());this.jH=Math.max(this.jH,D.info.n$.info.jH||0)}; g.B.getDuration=function(){return this.n$.index.fZ()}; g.B.Ia=function(){j_(this);this.Y.Ia()}; g.B.Cr=function(){return this.Y}; g.B.QI=function(D){return this.I2?AC(this.I2.K6(),D):!0}; g.B.isRequestPending=function(D){return this.G.length?D===this.G[this.G.length-1].info.W2[0].Ts:!1}; g.B.CS=function(D){var X;(X=this.J)==null||X.CS(D);var M;(M=this.K)==null||M.CS(D)}; g.B.SH=function(D,X){this.loader.SH(D,X)}; g.B.pk=function(){return this.loader.pk()}; g.B.dispose=function(){var D;(D=this.K)==null||D.flush();g.O.prototype.dispose.call(this)};g.U(w9,g.O);w9.prototype.Y=function(){this.G++>15||(this.S=!this.S,new Tso(this.loader,this.policy,this.Hb,this.Uw,this.S),this.delay.start())}; g.B=Tso.prototype;g.B.HH=function(){}; g.B.w8=function(){}; g.B.Tx=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Z9()===this.size)this.loader.SH("rqs",this.getInfo());else{var D="net.connect";this.xhr.status>200?D="net.badstatus":this.xhr.Xu()&&(D="net.closed");this.onError(D)}}; g.B.onError=function(D){var X=this;this.loader.handleError(D,this.getInfo());Op("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(M){X.loader.SH("pathprobe",M)},function(M){X.loader.handleError(M.errorCode,M.details)})}; g.B.getInfo=function(){var D=this.timing.c8();D.shost=hd(85,this.location.tS);D.pb=this.size;return D};g.U(LK,g.O); LK.prototype.X=function(D,X){if(D.X){this.P2.isLive?(D=this.P2.GF&&this.P2.U?D.n$.XE(this.P2.GF,!1):D.n$.uG(Infinity),D.fY=this.fY):D=D.n$.XE(0,!1);if(this.eH){var M=this.eH;D.fY===0&&(D.D=M.K)}else D.D=this.K;return D}M=D.S;if(!M.n$.hh())return M.n$.KV()?(D=J1(this.U,D.n$.info.jH,X.n$.info.jH,0),D=M.n$.us(M,D)):D=M.n$.G5(M),D;var Q=M.D-this.loader.getCurrentTime(),h=!M.range||M.G===0&&M.S===0?0:M.range.length-(M.S+M.G),H=M.n$;this.lk(D,Q)&&h===0&&(this.P2.isManifestless?H=D.n$:(H=M.startTime+pB1, M.G&&(H+=M.duration),MR(D,H),M=D.S,H=M.n$));H.KV()?(h=this.G,X=J1(this.U,H.info.jH,X.n$.info.jH,Q,h.U.length>0&&h.K===0&&this.loader.Ne),Q=Qo(D),D=M.n$.us(M,X),(X=D.Y)&&D.W2.length>1&&(Q||D.Uw.Y||D.W2[0].n$!==M.n$?D=M.n$.us(M,D.W2[0].G):(Q=D.W2[D.W2.length-1],H=Q.G/X,!Q.Y&&H<.4&&(D=M.n$.us(M,X-Q.G))))):(M.Ts<0&&(X=us(M),X.pr=""+D.G.length,this.loader.isSeeking()&&(X.sk="1"),X.snss=M.X,this.loader.SH("nosq",X)),D=H.G5(M));if(this.policy.M5)for(M=g.e(D.W2),X=M.next();!X.done;X=M.next())X.value.type= 6;return D}; LK.prototype.lk=function(D,X){if(!Qo(D)||!D.n$.hh())return!1;var M;(M=this.G.yf)||(M=Qo(D)&&D.n$.hh()&&D.S.n$.info.jH=X)return Q.return();(M=D.S.get(0))&&iDH(D,M);g.HZ(Q)})}; var di2={A6f:0,TLR:1,YGy:2,ywz:3,OkH:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};r9.prototype.decrypt=function(D){var X=this,M,Q,h,H,t,q;return g.r(function(w){switch(w.S){case 1:if(X.S.length&&!X.S[0].isEncrypted)return w.return();X.G=!0;X.Se.TX("omd_s");M=new Uint8Array(16);k$()?Q=new g.DU(D):h=new g.je(D);case 2:if(!X.S.length||!X.S[0].isEncrypted){w.D4(4);break}H=X.S.shift();if(!Q){t=h.decrypt(qG(H.buffer),M);w.D4(5);break}return g.I(w,Q.decrypt(qG(H.buffer),M),6);case 6:t=w.G;case 5:q=t;for(var T=0;T=4)){var X=jY(this),M=this.xhr;X.rc=M.status;D&&(X.ab=!0);if(M.L2()){var Q="onesie.net";X.msg=M.L2()}else M.status>=400?Q="onesie.net.badstatus":M.un()?this.IC||(Q="onesie.response.noplayerresponse"):Q=M.status===204?"onesie.net.nocontent":"onesie.net.connect";Q?this.fail(new g.za(Q,X)):(this.TX("or_fs"),this.V2.mw((0,g.fi)(),M.Z9(),0),this.cC(4),this.W1&&this.SH("rqs",X));this.W1&&this.SH("ombre","ok."+ +!Q);this.Bc=!1;k_(this); zx(this.Se);if(!this.QA){this.Nq.stop();var h;(h=this.hQ)==null||h.stop()}var H;if(D=(H=this.J1)==null?void 0:oyn(H))for(H=0;H1E3){var D;(D=this.V2)==null||D.vS((0,g.fi)());D=jY(this);if(this.j.t5()&&this.xhr instanceof UG){var X=this.xhr;D.xrs=X.xhr.readyState;D.xpb=X.S.totalLength;D.xdc=X.U}this.fail(new g.za("net.timeout",D))}}else(0,g.fi)()-this.V2.S>1E4&&((X=this.V2)==null||X.vS((0,g.fi)()),this.aT());this.isComplete()||this.jb.start()}}; g.B.aT=function(){this.Bc=!1;if(!k_(this)){var D=jY(this);D.timeout="1";this.fail(new g.za("onesie.request",D))}}; g.B.fail=function(D){var X=this;D=uZ(D);this.o3?this.zs.Rz(D):(this.Qn.reject(D),this.o3=!0);zx(this.Se);this.QA||this.Nq.stop();this.TX("or_fe");var M,Q;(M=this.J1)==null||(Q=oyn(M))==null||Q.forEach(function(h){X.SH("pathprobe",h)}); this.cC(5);this.dispose()}; g.B.isComplete=function(){return this.state>=3}; g.B.uh=function(){return this.state===4}; g.B.E9=function(D){var X,M;return this.isComplete()||!!((X=this.jV)==null?0:(M=X.get(D))==null?0:M.S)}; g.B.QS=function(){return!1}; g.B.Kk=function(){return this.state===5}; g.B.notifySubscribers=function(D){for(var X=0;X102400&&!this.hZ&&(this.TX("or100k"),this.hZ=!0);if(D.DU()){var X=D.IL(),M=X.totalLength;this.W1&&this.SH("ombrss","len."+M);this.gU.feed(X)}if(this.jV)for(var Q=g.e(this.jV.keys()),h=Q.next();!h.done;h=Q.next()){var H=h.value;D=void 0;(D=this.jV.get(H))==null||D.HT();this.notifySubscribers(H)}}catch(t){this.fail(t)}}; g.B.Bh=function(){return this.V2.requestNumber}; g.B.NO=function(D){return this.z0.get(D)}; g.B.ws=function(){return!1}; g.B.vO=function(){return"ONESIE"};g.U(X7,g.O);g.B=X7.prototype; g.B.Eg=function(D){var X=x5(this.loader)&&D&&D.Ba!==void 0&&!D.Kd?D.Ba*1E3+(this.loader.w3()||0):Mz(this);if(this.policy.EC){var M=this.sR;var Q=this.L$}else M=tk(this,this.audioTrack),Q=tk(this,this.videoTrack);var h=[].concat(g.xW(M.LK),g.xW(Q.LK));Q6(this)&&h.push.apply(h,g.xW(this.D));var H=[].concat(g.xW(M.Gu),g.xW(Q.Gu)),t=this.loader.u4();if(this.policy.yw&&!this.videoData.isLivePlayback){var q=this.videoData.lengthSeconds*1E3;X>=q&&this.loader.SH("invalidSabrCmt",{cmt:X,vd:q})}var w,T;q=this.Hb; var L=this.zs,K=this.P2,a=this.Y,F=this.videoData.uj,V=this.policy,c=this.loader.bu,S=V12(this.loader)*1E3,b=(w=this.uj)==null?void 0:w.dX;w=(T=this.uj)==null?void 0:T.WA;var n;T=Number((n=this.G.U)==null?void 0:n.info.itag)||0;var R;n=Number((R=this.G.D)==null?void 0:R.info.itag)||0;R=this.Rt;var v=this.zs.g7();var l=(D==null?0:D.dO)?D.dO:this.loader.isSuspended?4:void 0;X={Hb:q,zs:L,P2:K,LK:h,Gu:H,HF:X,nextRequestPolicy:a,yz:F,j$:V,Yn:c,l9:S,dX:b,WA:w,Rt:R,p2f:T,ks5:n,cT:t,qt:v,dO:l};h=this.loader.Rq(); H=y5(h);h&&(X.Wt=H);if(D=x5(this.loader)&&(D==null?0:D.Kd)?D.Ba:this.zs.s$())X.hL=D*1E3;var A;D=this.G;h=D.R5;if(((A=D.j$)==null?0:v8(A))&&!h)for(A=g.e(D.Y),H=A.next();!H.done;H=A.next())if(H.value.Cy){h=!0;break}A=v8(D.j$)&&!h?[]:Uim(D,D.Y);X.C4=A;A=this.G;v8(A.j$)&&!A.a5?A=[]:(D=yR_(A),D.length===0&&(D=A.X),A=Uim(A,D));X.dB=A;X.Jp=Q6(this)?[this.X]:void 0;this.policy.j7&&(X.GV=iSd(this.loader,this.audioTrack),X.Yz=iSd(this.loader,this.videoTrack));if(this.policy.G){A=this.loader.getCurrentTime(); M=Hp(this,M.LK,A);Q=Hp(this,Q.LK,A);Q=Math.min(M,Q);Q6(this)&&(M=Hp(this,this.D,A),this.zs.t5()&&M0)for(u.SH("clsdai",{updcids:1,mt:Q.toFixed(3),cid:M.join(","),rn:A}),u.G.clear(),Q=g.e(M),M=Q.next();!M.done;M=Q.next())u.G.add(M.value);else u.J&&(u.SH("clsdai",{updcids:0,mt:Q.toFixed(3),rn:A}),u.G.clear());Q=g.e(u.G);for(A=Q.next();!A.done;A=Q.next()){M=u;if(A=A.value){M=M.S.get(A);A={cuepointId:A};if(M==null?0:M.TB)A.adsConfig=y5(M.TB)||void 0;if(M==null?0:M.O1)A.jN=M.O1;if(M==null?0:M.Fn)A.Dl=M.Fn;Hs&&(A.nf=WH(Hs.split(";")[0]),A.Ub=Hs.split(";")[1]||"");A.d$=(M==null?void 0: M.d$)||0;M=A}else M=void 0;M&&D_.push(M)}u=D_}X.mx=u;(u=this.R5)!=null&&(u.G.clear(),u.Y=0)}else{if((Hs=this.Bb)==null)u=void 0;else{b:{if(!(Hs.Nm||(M=DW(Hs,Q),Hs.playback.getVideoData().gp()&&(M==null?0:M.g0))))break b;M=void 0}(D=M)?(M=D.qL,A=ccs(Hs,D.ssdaiAdsConfig),D=D.J6&&D.yO&&Q>=D.yO?D.J6:void 0,h=Hs.playback.getVideoData(),H=((D_=h.G)==null?void 0:D_.containerType)||0,D_=h.TL[H],A={jN:M?f2s(Hs,M):[],adsConfig:A,Dl:D},!Hs.j.T("html5_ssdai_sabr_empty_itag_xtag")&&D_&&(A.nf=WH(D_.split(";")[0]), A.Ub=D_.split(";")[1]||""),D_={gvprpro:"v",mt:Q.toFixed(3),acpns:((u=A.jN)==null?void 0:u.join("_"))||"none",abid:M},Hs.Tm(D_),u=A):(Hs.Tm({gvprp:"ncp",mt:Q}),u=null)}u&&(X.md=u)}}this.policy.f$&&this.S.length>0&&this.S[0].ix()&&(X.CP=this.S[0].w7());return X}; g.B.KZ=function(D,X){this.K=void 0;SN1(this);fZp(this,D,X)}; g.B.Zu=function(D){if(this.S.length===0)return!1;var X=this.S[0];return X instanceof DY?D===this.loader.getCurrentTime()*1E3:!(X instanceof W8&&bJ(X.info))&&Math.abs(X.DC()-D)<50}; g.B.F5=function(D,X){this.Y=D;this.policy.G&&!D.playbackCookie&&this.loader.SH("sbrnocookie",{rn:X!=null?X:-1});this.K=(0,g.fi)()+(D.backoffTimeMs||0)}; g.B.Pt=function(D,X){if(D.action===void 0){var M=this.zs.s$();M!==void 0&&this.loader.e2(M)}else if(D.action!==0||!this.OR)if(D.action===0&&this.policy.s1&&(D.action=2),D.zU==="sabr.malformed_config"&&this.t$++<3)this.loader.handleError("sabr.malformed_config",{action:D.action,rn:X,retry:this.t$},0);else switch(D.zU==="sabr.malformed_config"&&(D.action=2),M={},M.reason=D.zU,M.action=D.action,M.rn=X,D.action){case 1:this.policy.G&&this.Bb&&cd(this.Bb,void 0,void 0,M);break;case 0:this.OR=!0;this.videoData.gp()&& this.policy.G&&this.Bb&&cd(this.Bb,void 0,void 0,M,!1);this.loader.Ic(M);break;case 2:$V9(D.zU)!=="sabr.config"&&delete M.reason;this.loader.handleError($V9(D.zU),M,1);break;case 3:this.policy.Mj&&((D=this.P2.eH)!=null&&(D.K=!0),this.loader.handleError("sabr.hostfallback",M))}}; g.B.YO=function(D){D&&(this.loader.SH("sabrctxt",{onsbrctxt:D.type,scp:D.scope,dflt:D.sendByDefault}),D.type&&D.sendByDefault&&this.videoData.uj.add(D.type),D.scope!==2&&(D.type&&this.videoData.sabrContextUpdates.set(D.type,D),this.zs.YO(D)))}; g.B.TV=function(){}; g.B.Kz=function(D,X){if(this.loader.Bk)this.loader.SH("sdai",{ignSabrSeek:1,smt:D==null?void 0:D.Gq,rn:X});else if(D.Gq!==void 0&&D.WK){X=D.Gq/D.WK;this.audioTrack.X=!1;this.videoTrack.X=!1;if(this.policy.R5||this.policy.u$||this.policy.vZ)this.loader.rM.S=!1;if(this.zs.getCurrentTime()!==X){var M={Aa:"sabr_seek",lG:!0,B6:!0};D.seekSource&&(M.seekSource=D.seekSource);H8(this.loader,X+.1,M)}}}; g.B.onSnackbarMessage=function(D){this.zs.publish("onSnackbarMessage",D)}; g.B.tf=function(D,X){this.policy.X&&this.loader.tf(D,X)}; g.B.zK=function(D){D.xs&&D.Oh&&AI(this.P2,D.xs,D.Oh);this.policy.Dr&&(D.Uc&&D.Lx&&(this.P2.Xn=D.Uc/D.Lx),D.q3&&D.KD&&(this.P2.jm=D.q3/D.KD));Ip(this.videoData)&&!this.videoData.yp&&D.Oh&&this.loader.fz(D.Oh,1E3);D.aS!=null&&this.zs.BA(D.aS);D.D2&&(D=((0,g.fi)()-D.D2)/1E3,this.loader.qB.AS(1,D))}; g.B.gy=function(D){this.loader.gy(D)}; g.B.qN=function(D){return this.videoData.uj.has(D)}; g.B.ya=function(D,X,M){this.policy.Y&&this.loader.SH("sabrctxtplc",{start:D?D.join("_"):"",stop:X?X.join("_"):"",discard:M?M.join("_"):""});if(D){D=g.e(D);for(var Q=D.next();!Q.done;Q=D.next())this.videoData.uj.add(Q.value)}if(X)for(X=g.e(X),D=X.next();!D.done;D=X.next())D=D.value,this.videoData.uj.has(D)&&this.videoData.uj.delete(D);if(M)for(M=g.e(M),X=M.next();!X.done;X=M.next())if(X=X.value,this.videoData.sabrContextUpdates.has(X)&&this.videoData.sabrContextUpdates.delete(X),this.policy.f$&&this.S.length)for(D= g.e(this.S),Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,!(Q instanceof DY)){var h=void 0;((h=Q.pP)==null?void 0:h.type)===X&&(Q.pP=void 0)}}; g.B.CL=function(){}; g.B.Ju=function(D){this.X=D}; g.B.eM=function(D){this.D=D}; g.B.Xd=function(D,X){qk(this.policy,D,4,X)}; g.B.I9=function(D){if(D==null?0:D.yC)if(D=D.yC.w2){D=g.e(D);for(var X=D.next();!X.done;X=D.next())if(X=X.value,X.formatId){var M=this.P2.Y.get(Cq(X.formatId));M&&M.info&&(M.info.debugInfo=X.debugInfo)}}}; g.B.Bt=function(D){this.A$=!0;this.zs.publish("reloadplayer",D)}; g.B.DW=function(){return this.zs.DW()||""}; g.B.BO=function(){var D=yud(this);return Math.min(D.E1,D.nG)}; g.B.Tm=function(D,X){this.loader.SH(D,X)}; g.B.B$=function(D){Ak(this.loader,Xkp(this.q5,D))}; g.B.xZ=function(D,X){this.videoData.xZ(D,X)}; g.B.NB=function(D){this.zs.NB(D)}; g.B.Yy=function(){g.O.prototype.Yy.call(this);this.Y=void 0;fZp(this,!0,"i");this.S=[]};PfW.prototype.getCurrentTime=function(){return this.zs.getCurrentTime()-this.zs.w3()}; LM.prototype.K=function(D){BQ(D.state)&&Ti(this.D)}; LM.prototype.clear=function(){eY5(this.D);this.G.clear();this.S.clear();this.X=NaN;this.J=!1}; LM.prototype.OY=function(){this.isSeeking=!0;eY5(this.D);this.J=!1;this.X=NaN;this.U=this.VN};KM.prototype.f6=function(D,X){if(this.U)return OAs(this,X);if(X=tY(D)){var M=X.S;M&&M.Y&&M.S&&(D=D.G.length?D.G[0]:null)&&D.state>=2&&!D.Kk()&&D.info.fY===0&&(this.U=D,this.J=M,this.G=X.info,this.X=this.startTimeSecs=Date.now()/1E3,this.D=this.G.startTime)}return NaN}; KM.prototype.clear=function(){this.G=this.J=this.U=null;this.S=this.D=this.X=this.startTimeSecs=NaN;this.Y=!1};g.U(F7,g.O);F7.prototype.Yy=function(){lZd(this);g.O.prototype.Yy.call(this)};var Ju1=/[?&]cpn=/;g.U(Bp,g.O);Bp.prototype.flush=function(){var D={};this.G&&(D.pe=this.G);this.S.length>0&&(D.pt=this.S.join("."));this.S=[];return D}; Bp.prototype.stop=function(){var D=this,X,M,Q;return g.r(function(h){if(h.S==1)return g.N_(h,2),g.I(h,(X=D.U)==null?void 0:X.stop(),4);if(h.S!=2)return(M=h.G)&&D.logTrace(M),g.Ty(h,0);Q=g.LG(h);D.G=zYd(Q.message);g.HZ(h)})}; Bp.prototype.logTrace=function(D){this.encoder.reset();this.encoder.add(1);this.encoder.add(D.resources.length);for(var X=g.e(D.resources),M=X.next();!M.done;M=X.next()){M=M.value.replace("https://www.youtube.com/s/","");this.encoder.add(M.length);for(var Q=0;Q=0?D:g.y6(this.provider),this.a5?SKa.has(this.mj)&&(this.S.size||(this.mj==="PL"?D>=this.G+30:D<=this.f$+30||D>=this.G+1200&&D<=this.f$+86400))&&(g.cp(this,D,"vps",[this.mj]),this.G=D):["PL","B","S"].indexOf(this.mj)>-1&&(this.S.size||D>=this.G+30)&&(g.cp(this,D,"vps",[this.mj]),this.G=D),this.S.size)){this.sequenceNumber===7E3&&g.P3(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){mY(this,D);var X=this.provider.zs.xA(); X=g.e(X);for(var M=X.next();!M.done;M=X.next())M=M.value,this.SH(M.key,M.value);X=D;M=this.provider.zs.SB();var Q=M.droppedVideoFrames||0,h=M.totalVideoFrames||0,H=Q-this.I0,t=h&&!this.ww;Q>M.totalVideoFrames||H>5E3?Vdo(this,"html5.badframedropcount","df."+Q+";tf."+M.totalVideoFrames):(H>0||t)&&g.cp(this,X,"df",[H]);this.I0=Q;this.ww=h;this.K>0&&(g.cp(this,D,"glf",[this.K]),this.K=0);jm.isActive()&&(D=jm.N1(),Object.keys(D).length>0&&this.SH("profile",D));this.Mj&&bn(this,"lwnmow");this.provider.j.t5()&& this.provider.T("html5_record_now")&&this.SH("now",{wt:(0,g.fi)()});D={};this.provider.videoData.G&&(D.fmt=this.provider.videoData.G.itag,(X=this.provider.videoData.U)&&X.itag!==D.fmt&&(D.afmt=X.itag));D.cpn=this.provider.videoData.clientPlaybackNonce;this.MZ?(D.adcpn=this.MZ.join(","),M=this.provider.videoData,X=M.gp(),M=M.latencyClass,(this.provider.j.Q2().S.xl(rM_)&&X&&M==="NORMAL"||this.provider.j.Q2().S.xl(dy5)&&X&&M==="LOW"||this.provider.j.Q2().S.xl(v3d)&&this.provider.videoData.isDaiEnabled()&& LA(this.provider.videoData))&&(D.adc=1)):this.adCpn&&(D.adcpn=this.adCpn);this.y3?D.addocid=this.y3.join(","):this.TT.length&&(D.addocid=this.TT);this.provider.videoData.cotn&&(D.cotn=this.provider.videoData.cotn);D.el=ON(this.provider.videoData);D.content_v=Au(this.provider.videoData);D.ns=this.provider.j.f$;D.fexp=Dl2(this.provider.j.experiments).toString();D.cl=(830220508).toString();var q;(X=this.provider.videoData.adFormat||((q=this.y$)==null?void 0:q.join(","))||this.adFormat)&&(D.adformat= X);(q=Py(this.provider.videoData))&&(D.live=q);this.provider.videoData.aj()&&(D.drm=1,this.provider.videoData.D&&(D.drm_system=TS8[this.provider.videoData.D.flavor]||0),this.provider.videoData.drmProduct&&(D.drm_product=this.provider.videoData.drmProduct));wc()&&this.provider.videoData.X&&(D.ctt=this.provider.videoData.X,D.cttype=this.provider.videoData.HW,this.provider.videoData.mdxEnvironment&&(D.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(D.dai= this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.iG&&(D.dai_fallback="1"),LA(this.provider.videoData)&&(D.dai="mv")):this.provider.videoData.CK?D.dai="cs":this.provider.videoData.WQ&&(D.dai="disabled");this.Va&&(D.qcd=this.Va.join(","));D.seq=this.sequenceNumber++;if(this.provider.videoData.Ms){if(q=this.provider.videoData.Ms,D&&q)for(q.ns==="3pp"&&(D.ns="3pp"),this.MK.has(q.ns)&&bn(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=q.shbpslc), this.provider.j.experiments.Z4("html5_use_server_qoe_el_value")&&this.o5.delete("el"),X=g.e(Object.keys(q)),M=X.next();!M.done;M=X.next())M=M.value,this.o5.has(M)||(D[M]=q[M])}else D.event="streamingstats",D.docid=this.provider.videoData.videoId,D.ei=this.provider.videoData.eventId;this.isEmbargoed&&(D.embargoed="1");Object.assign(D,this.provider.j.S);(q=D.seq)&&!this.provider.j.experiments.Q2().S.xl(iup)&&(X=s8R(this,+q),X=g.rF(X,Iqs),X=g.C7(X,4),this.S.set("qclc",[X]));D=g.nJ("//"+this.provider.j.Ej+ "/api/stats/qoe",D);M=X="";Q=g.e(this.S.entries());for(h=Q.next();!h.done;h=Q.next())H=g.e(h.value),h=H.next().value,H=H.next().value,t=void 0,(t=H)!=null&&t.join&&(h="&"+h+"="+H.join(","),h.length>100?M+=h:X+=h);this.provider.j.experiments.Q2().S.xl(iup)&&(q=s8R(this,+(q||0)),q.qoePingUrl=D+X+M,g.Tm("qoeClientLoggingContext",q),X+="&dl=1");KUi(this,D+X,M.replace(/ /g,"%20"))}this.S.clear()}}; g.B.OF=function(D){this.Mj=D}; g.B.XH=function(){if(this.provider.videoData.D){var D=this.provider.videoData.D;bn(this,"eme-"+(D.keySystemAccess?"final":uk(D)?"ms":XI(D)?"ytfp":DE(D)?"safarifp":"nonfinal"))}}; g.B.R4=rR(49);g.B.mL=function(D){this.isEmbargoed=D}; g.B.OU=rR(26);g.B.CY=rR(32);g.B.onPlaybackRateChange=function(D){var X=g.y6(this.provider);D&&D!==this.bM&&(g.cp(this,X,"rate",[D]),this.bM=D);this.a5||this.reportStats(X)}; g.B.Fg=rR(20);g.B.getPlayerState=function(D){if(g.x(D,128))return"ER";if(g.x(D,2048))return"B";if(g.x(D,512))return"SU";if(g.x(D,16)||g.x(D,32))return"S";if(D.isOrWillBePlaying()&&g.x(D,64))return"B";var X=ERn[ZI(D)];g.Nn(this.provider.j)&&X==="B"&&this.provider.zs.getVisibilityState()===3&&(X="SU");X==="B"&&g.x(D,4)&&(X="PB");return X}; g.B.Mb=function(D,X){var M=g.y6(this.provider);g.cp(this,M,"vfi",[D==="A"?"":""+(X!=null?X:0),D])}; g.B.Yy=function(){g.O.prototype.Yy.call(this);g.ZS(this.R5);g.ZS(this.qj)}; g.B.Y_=function(D){this.isOffline=D;g.cp(this,g.y6(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.B.SH=function(D,X,M){var Q=this.iM.indexOf(D)!==-1;Q||this.iM.push(D);if(!M||!Q){X=typeof X!=="string"?Ga(X):X;X=$D_(X);if(!M&&!/^t[.]/.test(X)){var h=g.y6(this.provider)*1E3;X="t."+h.toFixed()+";"+X}SH(this,"ctmp",D+":"+X);nM(this);return h}}; g.B.CH=function(D,X,M){this.D={WU2:Number(this.SH("glrem",{nst:D.toFixed(),rem:X.toFixed(),ca:+M})),M_:D,JhC:X,isAd:M}}; g.B.Wk=function(D,X,M){g.cp(this,g.y6(this.provider),"ad_playback",[D,X,M])}; g.B.OX=function(D,X){var M=g.y6(this.provider)*1E3;SH(this,"daism","t."+M.toFixed(0)+";smw."+(D*1E3).toFixed(0)+";smo."+(X*1E3).toFixed(0))}; g.B.resume=function(){var D=this;isNaN(this.R5)?aAm(this):this.R5=g.$H(function(){D.reportStats()},1E4)}; var $S={},ERn=($S[5]="N",$S[-1]="N",$S[3]="B",$S[0]="EN",$S[2]="PA",$S[1]="PL",$S[-1E3]="ER",$S[1E3]="N",$S),SKa=new Set(["PL","B","S"]),U_=[];g.U(d5,g.O);g.B=d5.prototype;g.B.initialize=function(D,X,M){D=D||0;this.policy.S||(X=QA2(this.S),pM(this.zs,new H4(X.video,X.reason)),this.zs.RL(new H4(X.audio,X.reason)));this.policy.S&&Vo(this);this.P2.isManifestless&&Bso(this.X);this.K&&iAm(this.K,this.videoTrack.n$);X=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Q=!this.P2.isManifestless;this.policy.H3&&(Q=Q||this.P2.uH);if(!this.policy.uj||this.policy.J5)this.currentTime=Q?D:X;this.policy.R5&&this.seek(this.getCurrentTime(),{}).iB(function(){}); if(this.policy.S){var h;((h=this.D)==null?0:TJp(h,this.DW()||""))&&PRp(this)&&r5(this,this.videoTrack)&&r5(this,this.audioTrack)&&(ELn(this.G,this.D),this.policy.D&&Eao(this))}else this.f$&&(mDn(this,this.videoTrack),mDn(this,this.audioTrack),Bx2(this.f$),delete this.f$);M?(CM(this,!1),g.G1(this.YF)):(D=this.getCurrentTime()===0,$_(this.X,this.videoTrack,this.videoTrack.n$,D),$_(this.X,this.audioTrack,this.audioTrack.n$,D),this.policy.S&&K8m(this.G,{dO:1}),this.policy.R5||this.seek(this.getCurrentTime(), {}).iB(function(){}),this.timing.tick("gv")); (this.P2.GF||this.P2.zI||this.P2.gO||this.P2.wL||this.P2.xY)&&this.zs.hp(this.P2)}; g.B.resume=function(){if(this.isSuspended||this.Ne){this.PF=this.Ne=this.isSuspended=!1;try{this.f6()}catch(D){g.ET(D)}}}; g.B.B4=function(){return!this.policy.G6}; g.B.WR=function(D,X){D=D===void 0?!1:D;X=X===void 0?!1:X;e5i(this);this.zs.LF()&&(this.J=NaN);D?(this.policy.yf&&this.SH("loader",{setsmb:1}),this.policy.M5=!0,this.Ia()):(CM(this,!1),X||this.Ia())}; g.B.setAudioTrack=function(D,X,M){M=M===void 0?!1:M;if(!this.H2()){var Q=!isNaN(X);M&&Q&&(this.audioTrack.f$=Date.now(),this.policy.MK&&(this.o5=!0));M=this.zs.LF()&&!this.zs.getVideoData().K;if(this.policy.S){var h=this.U.Q6(D.id,Q);this.zs.RL(h)}else h=this.S,h.G=h.P2.S[D.id],h.J=h.G,h=new h_(h.J,h.Y,Q?"t":"m"),this.zs.RL(new H4(h.audio,h.reason));Q?(this.R2=Date.now(),Q=this.audioTrack.n$.index.lE(X),this.SH("setAudio",{id:D.id,cmt:X,sq:Q}),Q>=0&&(D=this.policy.Ug?Q+1:Q,this.policy.S&&this.KZ(!0, "mosaic"),jD(this.audioTrack,D,NaN,NaN),!this.policy.w6&&this.P2.isLive&&pF(this.P2,D,!1))):M||this.zs.XR()}}; g.B.setPlaybackRate=function(D){D!==this.eH.getPlaybackRate()&&this.eH.setPlaybackRate(D)}; g.B.aU=function(D){var X=this.G.X;this.G.Ju(D);this.SH("scfidc",{curr:Cq(X),"new":Cq(D)});D&&Cq(D)!==Cq(X)&&(this.KZ(!0,"caption change"),this.f6())}; g.B.Yx=function(D){this.G.eM(D)}; g.B.Ka=function(D){D.S.info.q2()?this.zs.RL(D):pM(this.zs,D)}; g.B.B$=function(D){GQ(D.W2[D.W2.length-1])&&Ak(this,Xkp(this.S,D.W2[0].n$))}; g.B.Rq=function(){return this.zs.Rq()}; g.B.u4=function(){return this.zs.u4()}; g.B.gy=function(D){this.zs.W().t5()&&this.SH("sps",{status:D.DD||""});if(D.DD===1)this.oX=0;else if(D.DD===2||D.DD===3){var X=!1;if(D.DD===3){var M;this.Vq=(M=D.C0j)!=null?M:Infinity;this.oX+=1;(X=Uv(this))&&this.Ex(!0)}this.zs.Cb(!0,X)}}; g.B.H9=function(){return this.zs.H9()}; g.B.uE=function(){return this.zs.uE()}; g.B.AO=function(D){this.zs.AO(D)}; g.B.akC=function(){var D,X=(D=this.zs.pK())==null?void 0:D.getCurrentTime();X?this.zs.SH("rms",{cta:X}):g.G1(this.DJ)}; g.B.f6=function(){O_(this);if(this.J$&&Ml(this.J$)&&!this.J$.VZ()&&(!this.policy.uj||isFinite(this.getCurrentTime()))){var D=A_(this.videoTrack);D=this.policy.ri&&D&&D.TC();this.P2.isManifestless&&this.P2.U&&ik(this.P2)?(this.J=ik(this.P2),this.J$.bX(this.J)):YC(this.P2)&&!D?isNaN(this.J)?(this.J=this.getCurrentTime()+3600,this.J$.bX(this.J)):this.J<=this.getCurrentTime()+1800&&(this.J=Math.max(this.J+1800,this.getCurrentTime()+3600),this.J$.bX(this.J)):this.J$.isView||(D=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==D)&&D>0&&(this.J$.bX(D),this.J=D))}if(!this.H2())if(rx(this.P2)&&this.P2.Kk()){var X=this.P2;this.handleError("manifest.net.retryexhausted",X.p$?{rc:X.HB}:{rc:X.HB.toString()},1)}else if(this.policy.S)a:{try{if(x5(this)&&this.nS){var M=this.G,Q=this.nS,h=Q.S;if(h){var H=M.zs.s$(),t=!0;H||(H=M.loader.getCurrentTime(),t=!1);X=H;var q=t?M.zs.SN(X):X;if(M.loader.QI(q))var w=!1;else{var T={t:X.toFixed(3),isUtc:t};c:{var L=M.zs.DW();if(L){for(var K= g.e([M.audioTrack,M.videoTrack]),a=K.next();!a.done;a=K.next()){var F=pq(a.value.n$,M.P2.yq);H=void 0;var V=((H=h)==null?void 0:H.Gx(F,L))||[];if(V.length===0||!gJ_(new Do(V),q)){var c=!1;break c}}c=!0}else c=!1}if(c)M.loader.SH("prebuffer",Object.assign(T,{inrange:1})),w=!0;else{if(bJ(h.info)){var S;if(S=t){var b,n;S=(((b=h.info.S)==null?void 0:(n=b.hw)==null?void 0:n.hL)||0)===X*1E3}var R=S}else R=!t&&nK(h.info)===X*1E3;R?(M.loader.SH("prebuffer",Object.assign(T,{match:1})),w=!0):w=!1}}if(w){M.zs.TX("ismp_c"); M.S.push(h);var v;(v=M.a5)==null||Tx(v,h.info.Uw);h.a7();U9(Q,!1)}}}qz(this.G);this.P2.isManifestless&&this.policy.D&&QY(this.rM);var l;((l=this.J$)==null?0:ht(l))&&this.mG();K8m(this.G);if(x5(this)&&this.nS){var A=this.G,Hs=this.nS,u=Hs.G.Ba;if(u!==void 0&&u>=0){A.zs.TX("ismp_a");var D_=Hs.G;var q5=D_.Ba;if(q5===void 0)var Lo=!1;else{var Qs=D_.Kd?A.zs.SN(q5):q5,S2;if(S2=!A.loader.QI(Qs)&&VoH(A,A.p$)){var XC=A.zs.getCurrentTime()*1E3,q_=$p1(A,XC),th=q_.aK;S2=q_.RK>=7E3&&th>=7E3}Lo=S2}if(Lo){var Jd= sp2(A,D_);A.policy.NQ>0&&A.p$.GY++;Jd&&(Hs.S!==Jd&&(La1(Hs),Hs.S=Jd,Hs.G=B4),A.zs.TX("ismp_rc"))}}}}catch(Gp){g.P3(Gp);X=Gp;if(X.message.includes("changeType")){this.SH("ctype",{exp:X.name,msg:X.message,s:X.stack});break a}this.handleError("fmt.unplayable",{exp:X.name,msg:X.message,s:X.stack,trg:"sabrslicerqt"},1)}CRd(this);g.G1(this.t$)}else if(!this.P2.G||!Di1(this.videoTrack)&&!Di1(this.audioTrack)||(this.videoTrack.U||this.audioTrack.U)&&this.policy.zm?M=!1:(this.Ia(),this.zs.seekTo(Infinity, {Aa:"checkLoaderTracksSync",fz:!0}),M=!0),!M){O_(this);this.P2.isManifestless&&(XUH(this.videoTrack),XUH(this.audioTrack),QY(this.rM),(M=tY(this.videoTrack))&&M.S&&(M=M.S.Y&&!this.policy.SS,this.SH(M===this.policy.K.aP?"strm":"strmbug",{strm:M,sfmp4:this.policy.K.aP,dfs:this.policy.SS},!0)));if(this.J$)this.mG();else if(this.policy.U){M=!1;if(this.policy.bJ)for(Q=g.e([this.videoTrack,this.audioTrack]),h=Q.next();!h.done;h=Q.next()){w=h.value;for(h=tY(w);h&&w.jL()!==A_(w);h=tY(w))w.GJ(h);M=M||!!h}else(X= tY(this.videoTrack))&&this.videoTrack.GJ(X),(t=tY(this.audioTrack))&&this.audioTrack.GJ(t);GM(this.videoTrack)&&GM(this.audioTrack)||(X||t||M)&&Nz(this)}oD(this);$_(this.X,this.videoTrack,this.videoTrack.n$,!1);$_(this.X,this.audioTrack,this.audioTrack.n$,!1);if(!this.policy.Q$&&(X=this.videoTrack,Q=this.audioTrack,(!this.J$||Ml(this.J$)&&!this.policy.An)&&!this.rM.isSeeking()&&(this.policy.S||Qo(X)&&X.n$.hh()&&this.S.f$)))a:{if(t=this.getCurrentTime(),M=this.eH,Q=J1(M,X.n$.info.jH,Q.n$.info.jH,0), h=A1(M.Hb)+Q/lP(M.Hb),t+=Math.max(h,h+M.policy.zO-Q/X.n$.info.jH),X.G.length){if(X.G[0].info.W2[0].startTime<=t)break a;j_(X)}M=X.Y;for(Q=M.G.length-1;Q>=0;Q--)M.G[Q].info.startTime>t&&M.G.pop();zs_(X);X.S&&t5&&T.eH.shift();X=X.Ts;var L;if((L=this.zs.getVideoData())==null?0:L.enableServerStitchedDai)L=HDn(this.audioTrack,X),M=HDn(this.videoTrack,X),L!==0&&M!==0&&L!==M&&this.handleError("ssdai.avsync",{sq:X,a:L,v:M}, 0)}}; g.B.rg=function(D,X,M,Q){D.info.video&&this.Y.rg(X,M,Q)}; g.B.Vy=function(D){this.S.Vy(D)}; g.B.Mo=function(){return this.Bb}; g.B.du=function(){return this.videoTrack.X||this.audioTrack.X}; g.B.seek=function(D,X){if(this.H2())return ns();if(this.du())return ns("seeking to head");if(this.policy.R5&&!isFinite(D))return FQp(this.rM),g.m$(Infinity);O_(this);GTH(this,D,!1,X.seekSource);Vo(this);this.policy.S||oD(this,D);this.J$&&this.J$.S&&this.J$.G&&!this.zs.getVideoData().rG&&(this.J$.S.isLocked()||this.J$.G.isLocked())&&this.zs.XR({reattachOnLockedBuffer:1,vsb:""+this.J$.G.isLocked(),asb:""+this.J$.S.isLocked()});var M=this.getCurrentTime(),Q=this.rM.seek(D,X);if(!this.policy.uj||this.policy.J5)this.currentTime= Q;Q7(this.Y,D,M,this.policy.YN&&!X.lG);Nz(this);return g.m$(Q)}; g.B.Zu=function(D){return this.policy.S&&this.G.Zu(D)}; g.B.qN=function(D){return this.G.qN(D)}; g.B.KZ=function(D,X){this.G.KZ(D,X)}; g.B.getCurrentTime=function(){if(this.policy.uj){var D=this.w3()||0;return this.zs.getCurrentTime(!0)-D}return this.currentTime}; g.B.u8=function(){return this.audioTrack.n$.info}; g.B.gL=function(){return this.videoTrack.n$.info}; g.B.Uh=function(){return this.audioTrack.n$.info.ij}; g.B.bV=function(){return this.videoTrack.n$.info.ij}; g.B.Yy=function(){try{this.WR(),j_(this.audioTrack),j_(this.videoTrack),h3(this.audioTrack),h3(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.O.prototype.Yy.call(this)}catch(D){g.ET(D)}}; g.B.handleError=function(D,X,M){M=M===void 0?0:M;var Q=kJ(M);D==="fmt.unplayable"&&this.P2.isLive&&(this.policy.wV=!1,OM(this.P2));X=new g.za(D,X,M);g.rK(this);Ga(X.details);this.zs.handleError(X);D!=="html5.invalidstate"&&X.errorCode!=="fmt.unplayable"&&D!=="fmt.unparseable"&&Q&&this.dispose()}; g.B.ip=function(){var D=A_(this.audioTrack),X=A_(this.videoTrack);D={lct:this.getCurrentTime().toFixed(3),lsk:this.rM.isSeeking(),lmf:this.S.S.isLocked(),lbw:oO1(this.schedule).toFixed(3),lhd:A1(this.schedule).toFixed(3),lst:((this.schedule.J.OW()||0)*1E9).toFixed(3),laa:D?D.HC():"",lva:X?X.HC():"",lar:this.audioTrack.S?this.audioTrack.S.HC():"",lvr:this.videoTrack.S?this.videoTrack.S.HC():"",laq:""+zM(this.audioTrack),lvq:""+zM(this.videoTrack)};this.J$&&!this.J$.Jh()&&this.J$.S&&this.J$.G&&(D.lab= On(this.J$.S.K6()),D.lvb=On(this.J$.G.K6()));this.R5&&(D.lapt=((0,g.fi)()-this.R5).toFixed(0),D.lapr=R5s(this));this.uj&&(D.lapmabht=((0,g.fi)()-this.uj).toFixed(0),D.lapmabh=Xf(this,this.audioTrack).toFixed(0));this.OR&&(D.lapmvbht=((0,g.fi)()-this.OR).toFixed(0),D.lapmvbh=Xf(this,this.videoTrack).toFixed(0));this.yf&&(D.lapsdai=((0,g.fi)()-this.yf).toFixed(0));return D}; g.B.Ia=function(){try{this.policy.S&&this.G.KZ(!1,"pending"),this.audioTrack.Ia(),this.videoTrack.Ia()}catch(D){g.ET(D)}this.policy.U=""}; g.B.QI=function(D){return this.videoTrack&&this.audioTrack?this.videoTrack.QI(D)&&this.audioTrack.QI(D):!0}; g.B.D5=function(){return Yj(this.eH)}; g.B.SH=function(D,X,M){this.zs.SH(D,X,M===void 0?!1:M)}; g.B.DW=function(){return this.zs.DW()}; g.B.fz=function(D,X){D/=X;isNaN(this.timestampOffset)&&xDs(this,D-Math.min(D,this.policy.oZ));return(D-this.timestampOffset)*X}; g.B.w3=function(){return this.timestampOffset}; g.B.isSeeking=function(){return this.rM.isSeeking()}; g.B.h4=function(){this.Y.h4()}; g.B.vv=function(D,X,M){X=X===void 0?!1:X;M=M===void 0?{}:M;this.policy.S?this.U.vv(D,X,M):this.S.vv(D,X,M)}; g.B.xE=function(D,X){if(this.policy.G&&(this.Bk||this.isSeeking()))return this.SH("sdai",{ignoreSkip:"1",isSkip:this.Bk,isSeek:this.isSeeking(),t:D.toFixed(3)}),!1;var M=this.policy.G&&(this.policy.X||this.policy.ZW),Q=this.videoTrack.n$.index.lE(D),h=!1;if(M){var H;if(h=!((H=this.a5)==null||!H.kt(D,Q,this.timestampOffset)))if(jC(this,D,D,Q),this.Bb){var t;(t=this.Bb)==null||t.kt(D,Q)}}else this.Bb&&(h=!!this.Y.xE(D,this.Bb));if(!h)return this.handleError("ad.skipfailed",{dec:!!this.Bb,t:D.toFixed(3), sq:Q}),!1;this.policy.G&&(this.SH("sdai",{skipAdStd:"1"}),this.Bk=!0);if(this.policy.T6){var q;(q=this.XS)==null||q.clear()}xDs(this,this.timestampOffset-X);Nz(this);this.policy.G&&(OM(this.P2),h3(this.audioTrack),h3(this.videoTrack),this.Ia());return!0}; g.B.getManifest=function(){return this.P2}; g.B.isOffline=function(){return!!this.zs.getVideoData().cotn}; g.B.n4=function(D,X){this.zs.n4(D,X)}; g.B.qk=function(D,X){if(this.policy.S)GTH(this,D,!0,X),this.G.KZ(!0,"utc"),this.f6();else if(X=this.zs.getVideoData().Dd){var M=this.X;M.LY=D;M.Dd=X;fK(this)}}; g.B.e2=function(D){this.videoTrack.X=!1;this.audioTrack.X=!1;this.rM.S=!1;this.zs.e2(D)}; g.B.hH=function(D){this.rM.hH(D-this.w3())}; g.B.FA=function(){this.zs.FA()}; g.B.Ex=function(D){D!==this.policy.EU&&((this.policy.EU=D)||this.f6())}; g.B.XR=function(D){this.zs.XR(D)}; g.B.OF=function(D){this.zs.OF(D)}; g.B.RR=function(D,X,M){var Q;(Q=this.a5)==null||Q.RR(D,X,M);this.policy.X&&(this.G.K=void 0,this.f6())}; g.B.AV=function(D){var X;(X=this.a5)==null||X.AV(D)}; g.B.tf=function(D,X){if(this.policy.X){var M,Q=(M=D.uW)==null?void 0:M[0];M=this.zs.getVideoData();M=M.WQ?1:M.iG?2:0;var h,H,t;this.SH("clidai",{onqlst:1,len:((h=D.uW)==null?void 0:h.length)||0,rn:X,evt:YM1(Q==null?void 0:(H=Q.x$)==null?void 0:H.event),cid:(Q==null?void 0:(t=Q.x$)==null?void 0:t.identifier)||"null",sq:(Q==null?void 0:Q.fm)||-1,trk:(Q==null?void 0:Q.trackType)||"null",dis:M});var q;(q=this.a5)==null||q.tf(D,X,this.Bb||void 0,M)}}; g.B.prefetchKeyPlay=function(D,X){var M=this;if(x5(this)){var Q=WsH().legacyApplicationQuality==="limited-memory";this.policy.wm&&Q||(this.nS||(this.nS=new ZW(function(h){M.zs.TX(h)}),g.p(this,this.nS)),T_i(this.nS,{Ba:D, Kd:X,dO:2}),this.f6())}};g.U(Wp,g.Dq);g.U(Gi,Wp);Gi.prototype.X=function(D,X){if(D&&X){var M=Number(I5(D,"cpi"))*1+1;isNaN(M)||M<=0||Mthis.Y&&(this.Y=M,g.ef(this.S)||(this.S={},this.U.stop(),this.G.stop())),this.S[X]=D,g.G1(this.G))}}; Gi.prototype.D=function(){for(var D=g.e(Object.keys(this.S)),X=D.next();!X.done;X=D.next()){var M=X.value;X=this.publish;for(var Q=this.Y,h=g.US(this.S[M]),H=[],t=g.e(h[6].split("&")),q=t.next();!q.done;q=t.next())q=q.value,q.indexOf("cpi=")===0?H.push("cpi="+Q.toString()):q.indexOf("ek=")===0?H.push("ek="+g.A4(M)):H.push(q);h[6]="?"+H.join("&");M="skd://"+h.slice(2).join("");h=M.length*2;Q=new Uint8Array(h+4);Q[0]=h%256;Q[1]=(h-Q[0])/256;for(h=0;h0)for(var M=g.e(this.S),Q=M.next();!Q.done;Q=M.next())if(X===Q.value.info.cryptoPeriodIndex){X=!0;break a}X=!1}if(!X){X=(0,g.fi)();a:{M=D.cryptoPeriodIndex;if(!isNaN(M)){Q=g.e(this.Y.values());for(var h=Q.next();!h.done;h=Q.next())if(Math.abs(h.value.cryptoPeriodIndex-M)<=1){M=!0;break a}}M=!1}M?(M=D.S,M=Math.max(0,Math.random()*((isNaN(M)?120:M)-30))*1E3):M=0;this.publish("log_qoe",{wvagt:"delay."+M,cpi:D.cryptoPeriodIndex,reqlen:this.S.length}); M<=0?kTp(this,D):(this.S.push({time:X+M,info:D}),g.G1(this.G,M))}}; zi.prototype.Yy=function(){this.S=[];Wp.prototype.Yy.call(this)};var Bf={},QS1=(Bf.DRM_TRACK_TYPE_AUDIO="AUDIO",Bf.DRM_TRACK_TYPE_SD="SD",Bf.DRM_TRACK_TYPE_HD="HD",Bf.DRM_TRACK_TYPE_UHD1="UHD1",Bf);g.U(XA9,g.O);g.U(H51,g.Dq);g.B=H51.prototype;g.B.pz=function(D){var X=this;if(!(this.H2()||D.size<=0)){var M={};D.forEach(function(Q,h){var H=j4(X.G)?h:Q;h=new Uint8Array(j4(X.G)?Q:h);j4(X.G)&&f9d(h);Q=g.C7(h,4);f9d(h);h=g.C7(h,4);X.S[Q]?X.S[Q].status=H:X.S[h]?X.S[h].status=H:X.S[Q]={type:"",status:H};UWn(X,X.S[Q].type,M)}); BBo(this,",");k5(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.B.error=function(D,X,M,Q){this.H2()||(this.publish("licenseerror",D,X,M,Q),D==="drm.provision"&&(D=(Date.now()-this.X)/1E3,this.X=NaN,this.publish("ctmp","provf",{et:D.toFixed(3)})));kJ(X)&&this.dispose()}; g.B.shouldRetry=function(D,X){return!D&&this.requestNumber===X.requestNumber}; g.B.Yy=function(){this.S={};g.Dq.prototype.Yy.call(this)}; g.B.ip=function(){var D={ctype:this.K.contentType||"",length:this.K.initData.length,requestedKeyIds:this.sR,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Y&&(D.keyStatuses=this.S);return D}; g.B.getInfo=function(){var D=this.U.join();if(un(this)){var X=new Set,M;for(M in this.S)this.S[M].status!=="usable"&&X.add(this.S[M].type);D+="/UKS."+Array.from(X)}return D+="/"+this.cryptoPeriodIndex}; g.B.QF=function(){return this.url};g.U(Dp,g.O);g.B=Dp.prototype;g.B.AY=function(D){if(this.D){var X=D.messageType||"license-request";this.D(new Uint8Array(D.message),X)}}; g.B.pz=function(){this.J&&this.J(this.S.keyStatuses)}; g.B.onClosed=function(){this.H2()||g.lE("xboxone")&&this.Y&&this.Y("closedShouldNotRetry")}; g.B.Kx=function(D){this.D&&this.D(D.message,"license-request")}; g.B.q_=function(D){if(this.Y){if(this.G){var X=this.G.error.code;D=this.G.error.systemCode}else X=D.errorCode,D=D.systemCode;this.Y("t.prefixedKeyError;c."+X+";sc."+D,X,D)}}; g.B.FT=function(){this.X&&this.X()}; g.B.update=function(D){var X=this;if(this.S)return this.S.update(D).then(null,jp(function(M){Ejs(X,"t.update",M)})); this.G?this.G.update(D):this.element.addKey?this.element.addKey(this.K.keySystem,D,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.K.keySystem,D,this.initData,this.sessionId);return vX()}; g.B.Yy=function(){this.S&&(this.eH?this.S.close().catch(g.P3):this.S.close());this.element=null;g.O.prototype.Yy.call(this)};g.U(XJ,g.O);g.B=XJ.prototype;g.B.setServerCertificate=function(){return this.G.setServerCertificate?this.S.flavor==="widevine"&&this.S.AD?this.G.setServerCertificate(this.S.AD):MI(this.S)&&this.S.I4?this.G.setServerCertificate(this.S.I4):null:null}; g.B.createSession=function(D,X){var M=D.initData;if(this.S.keySystemAccess){X&&X("createsession");var Q=this.G.createSession();XI(this.S)?M=mWs(M,this.S.I4):MI(this.S)&&(M=z5W(M)||new Uint8Array(0));X&&X("genreq");D=Q.generateRequest(D.contentType,M);var h=new Dp(null,null,null,Q,null,this.J);D.then(function(){X&&X("genreqsuccess")},jp(function(t){Ejs(h,"t.generateRequest",t)})); return h}if(uk(this.S))return b5o(this,M);if(DE(this.S))return nj_(this,M);if((Q=this.element)==null?0:Q.generateKeyRequest)this.element.generateKeyRequest(this.S.keySystem,M);else{var H;(H=this.element)==null||H.webkitGenerateKeyRequest(this.S.keySystem,M)}return this.U=new Dp(this.element,this.S,M,null,null,this.J)}; g.B.ID=function(D){var X=e_m(this,D);X&&X.Kx(D)}; g.B.Nz=function(D){var X=e_m(this,D);X&&X.q_(D)}; g.B.tY=function(D){var X=e_m(this,D);X&&X.FT(D)}; g.B.getMetrics=function(){var D=null;if(this.G&&this.G.getMetrics)try{D=this.G.getMetrics()}catch(X){}return D}; g.B.Yy=function(){this.Y=this.G=null;var D;(D=this.U)==null||D.dispose();D=g.e(Object.values(this.X));for(var X=D.next();!X.done;X=D.next())X.value.dispose();this.X={};g.O.prototype.Yy.call(this);delete this.element};g.B=MO.prototype;g.B.get=function(D){D=this.findIndex(D);return D!==-1?this.values[D]:null}; g.B.remove=function(D){D=this.findIndex(D);D!==-1&&(this.keys.splice(D,1),this.values.splice(D,1))}; g.B.removeAll=function(){this.keys=[];this.values=[]}; g.B.set=function(D,X){var M=this.findIndex(D);M!==-1?this.values[M]=X:(this.keys.push(D),this.values.push(X))}; g.B.findIndex=function(D){return g.Gy(this.keys,function(X){return g.F_(D,X)})};g.U(gj_,g.Dq);g.B=gj_.prototype;g.B.raH=function(D){this.Lm({onecpt:1});D.initData&&r1R(this,new Uint8Array(D.initData),D.initDataType)}; g.B.ZK2=function(D){this.Lm({onndky:1});r1R(this,D.initData,D.contentType)}; g.B.DG=function(D){this.Lm({onneedkeyinfo:1});this.j.T("html5_eme_loader_sync")&&(this.J.get(D.initData)||this.J.set(D.initData,D));dW9(this,D)}; g.B.Sw=function(D){this.Y.push(D);QX(this)}; g.B.createSession=function(D){var X=ojm(this)?SWn(D):g.C7(D.initData);this.G.get(X);this.sR=!0;D=new H51(this.videoData,this.j,D,this.drmSessionId);this.G.set(X,D);D.subscribe("ctmp",this.JU,this);D.subscribe("keystatuseschange",this.pz,this);D.subscribe("licenseerror",this.jE,this);D.subscribe("newlicense",this.Zo,this);D.subscribe("newsession",this.oG,this);D.subscribe("sessionready",this.nR,this);D.subscribe("fairplay_next_need_key_info",this.v7,this);this.j.T("html5_enable_vp9_fairplay")&&D.subscribe("qualitychange", this.Y6,this);D.subscribe("sabrlicenseconstraint",this.aWC,this);wA5(D,this.U)}; g.B.Zo=function(D){this.H2()||(this.Lm({onnelcswhb:1}),D&&!this.heartbeatParams&&(this.heartbeatParams=D,this.publish("heartbeatparams",D)))}; g.B.oG=function(){this.H2()||(this.Lm({newlcssn:1}),this.Y.shift(),this.sR=!1,QX(this))}; g.B.nR=function(){if(uk(this.S)&&(this.Lm({onsnrdy:1}),this.uj--,this.uj===0)){var D=this.f$,X,M;(X=D.element)==null||(M=X.msSetMediaKeys)==null||M.call(X,D.Y)}}; g.B.pz=function(D){if(!this.H2()){this.M5||(this.M5=!0,this.j.t5()&&CPm(this));this.Lm({onksch:1});var X=this.Y6;if(!un(D)&&g.Jg&&D.G.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var M="large";else{M=[];var Q=!0;if(un(D))for(var h=g.e(Object.keys(D.S)),H=h.next();!H.done;H=h.next())H=H.value,D.S[H].status==="usable"&&M.push(D.S[H].type),D.S[H].status!=="unknown"&&(Q=!1);if(!un(D)||Q)M=D.U;M=$W_(M)}X.call(this,M);if(D.j.T("html5_enable_vp9_fairplay")&&MI(D.G))X=D.eH; else{if(!un(D))for(X={},M=g.e(D.U),Q=M.next();!Q.done;Q=M.next())UWn(D,Q.value,X);X=D.authorizedFormats}this.videoData.authorizedFormats=X;this.publish("keystatuseschange",D)}}; g.B.JU=function(D,X){this.H2()||this.publish("ctmp",D,X)}; g.B.v7=function(D,X){this.H2()||this.publish("fairplay_next_need_key_info",D,X)}; g.B.jE=function(D,X,M,Q){this.H2()||(this.videoData.T("html5_log_drm_metrics_on_error")&&CPm(this),this.publish("licenseerror",D,X,M,Q))}; g.B.YQ=function(){return this.K}; g.B.Y6=function(D){var X=g.mm("auto",D,!1,"l");if(this.videoData.j1){if(this.K.equals(X))return}else if(cfi(this.K,D))return;this.K=X;this.publish("qualitychange");this.Lm({updtlq:D})}; g.B.aWC=function(D){this.videoData.sabrLicenseConstraint=D}; g.B.Yy=function(){var D,X;this.S.keySystemAccess&&this.element&&!((D=this.mediaElement)==null?0:(X=D.zs)==null?0:X.LF())&&(this.a5?this.element.setMediaKeys(null).catch(g.P3):this.element.setMediaKeys(null));this.element=null;this.Y=[];D=g.e(this.G.values());for(X=D.next();!X.done;X=D.next())X=X.value,X.unsubscribe("ctmp",this.JU,this),X.unsubscribe("keystatuseschange",this.pz,this),X.unsubscribe("licenseerror",this.jE,this),X.unsubscribe("newlicense",this.Zo,this),X.unsubscribe("newsession",this.oG, this),X.unsubscribe("sessionready",this.nR,this),X.unsubscribe("fairplay_next_need_key_info",this.v7,this),this.j.T("html5_enable_vp9_fairplay")&&X.unsubscribe("qualitychange",this.Y6,this),X.dispose();this.G.clear();this.X.removeAll();this.J.removeAll();this.heartbeatParams=null;g.Dq.prototype.Yy.call(this)}; g.B.ip=function(){for(var D={systemInfo:this.S.ip(),sessions:[]},X=g.e(this.G.values()),M=X.next();!M.done;M=X.next())D.sessions.push(M.value.ip());return D}; g.B.getInfo=function(){return this.G.size<=0?"no session":""+this.G.values().next().value.getInfo()+(this.D?"/KR":"")}; g.B.Lm=function(D,X){X=X===void 0?!1:X;this.H2()||(Ga(D),(this.j.t5()||X)&&this.publish("ctmp","drmlog",D))};var Ypm=!1,J1s=!1;g.U(Wb9,g.O);g.B=Wb9.prototype;g.B.Ax=function(){return!!this.i_}; g.B.J7=function(){return this.G}; g.B.handleError=function(D){var X=this;DRs(this,D);var M;if(M=!((D.errorCode==="html5.invalidstate"||D.errorCode==="fmt.unplayable"||D.errorCode==="fmt.unparseable")&&jSs(this,D.errorCode,D.details)))if(M=!hXm(this,D))this.videoData.errorDetail==="7"&&g.Nn(this.UR)?(QPH(this,"innertube_player_reload_required"),M=!0):M=!1,M=!M;if(M)if(this.UR.f$!=="yt"&&MCp(this,D)&&this.videoData.G6&&(0,g.fi)()/1E3>this.videoData.G6&&DZ(this.videoData)&&(M=Object.assign({e:D.errorCode},D.details),M.stalesigexp="1", M.expire=Math.round(this.videoData.G6*1E3),M.init=Math.round(this.videoData.bx),M.now=Math.round((0,g.fi)()),D=new g.za(D.errorCode,M,2),this.zs.ZS(D.errorCode,2,"SIGNATURE_EXPIRED",Ga(D.details))),kJ(D.severity)){var Q;M=(Q=this.zs.loader)==null?void 0:Q.S.S;if(this.UR.T("html5_use_network_error_code_enums"))if(X8W(D)&&M&&M.isLocked())var h="FORMAT_UNAVAILABLE";else if(this.UR.X||D.errorCode!=="auth"||D.details.rc!==429)D.errorCode==="ump.spsrejectfailure"&&(h="HTML5_SPS_UMP_STATUS_REJECTED");else{h= "TOO_MANY_REQUESTS";var H="6"}else X8W(D)&&M&&M.isLocked()?h="FORMAT_UNAVAILABLE":this.UR.X||D.errorCode!=="auth"||D.details.rc!=="429"?D.errorCode==="ump.spsrejectfailure"&&(h="HTML5_SPS_UMP_STATUS_REJECTED"):(h="TOO_MANY_REQUESTS",H="6");this.zs.ZS(D.errorCode,D.severity,h,Ga(D.details),H)}else this.zs.publish("nonfatalerror",D),Q=/^pp/.test(this.videoData.clientPlaybackNonce),this.Rz(D.errorCode,D.details),Q&&D.errorCode==="manifest.net.connect"&&(D="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.fi)(),Op(D,"manifest",function(t){X.X=!0;X.SH("pathprobe",t)},function(t){X.Rz(t.errorCode,t.details)}))}; g.B.SH=function(D,X){this.zs.mZ.SH(D,X)}; g.B.Rz=function(D,X){X=Ga(X);this.zs.mZ.Rz(D,X)};Hu.prototype.Lr=function(D){var X=qG2(this);if(!D)return{y8:GL,U2:GL,Zv:GL,bz:GL,M1:GL,Wz:GL,eY:X};var M=GL;if(b5(X)||this.T("html5_perf_cap_override_sticky"))M=ZLR(this,D);return{y8:M,U2:a8W(this,D),Zv:sPW(this,D),bz:URs(this,D.videoData),M1:cY5(this,D.videoData,D),Wz:TNi(this,D),eY:X}}; Hu.prototype.Rg=function(D){if(g.Nn(this.j)&&A9(this.j.D,Y4.HEIGHT))var X=D.S.videoInfos[0].video.qualityOrdinal;else{var M=this.SJ(!!D.S.S);wJ(D.videoData)||Wy(D.videoData);D=D.S.videoInfos;if(D.length){var Q=.85,h=D[0].video;h.projectionType!=="MESH"&&h.projectionType!=="EQUIRECTANGULAR"&&h.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||g_||(Q=.45);h=g.lx(this.j.experiments,"html5_viewport_undersend_maximum");for(var H=0;H=0,stateAtSend:X,joinLatencySecs:H,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Q,playerCanaryStage:h,isAd:this.provider.videoData.isAd(),liveMode:M,hasDrm:!!g.EN(this.provider.videoData),isGapless:this.provider.videoData.J,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Er(this.provider.videoData)};D||g.Tm("html5PlayerHealthEvent",X);this.Y=!0;this.dispose()}}; NO.prototype.Yy=function(){this.Y||this.send();window.removeEventListener("error",this.Td);window.removeEventListener("unhandledrejection",this.Td);g.O.prototype.Yy.call(this)}; var yyW=/\bnet\b/;Pyi.prototype.update=function(){if(this.K){var D=this.Gw()||0,X=g.y6(this.provider);D>=this.provider.zs.getDuration()-.1&&(this.previouslyEnded=!0);if(D!==this.S||eXs(this,D,X)){var M;if(!(M=DX-this.mX+2||eXs(this,D,X))){M=this.provider.zs.getVolume();var Q=M!==this.f$,h=this.provider.zs.isMuted()?1:0;h!==this.eH?(this.eH=h,M=!0):(!Q||this.U>=0||(this.f$=M,this.U=X),M=X-this.U,this.U>=0&&M>2?(this.U=-1,M=!0):M=!1)}M&&(wt(this),this.Y=D);this.mX=X;this.S=D}}}; Pyi.prototype.Gw=function(){var D=this.provider.zs.Gw();return LA(this.provider.videoData)?D+this.provider.zs.w3():D};RXR.prototype.send=function(D){var X=this;if(!this.p$){var M=gM1(this),Q=g.nJ(this.uri,M);this.j.T("vss_through_gel_double")&&vMH(Q);this.sR&&!this.j.T("html5_simplify_pings")?Cys(this,Q):I8s(this,D).then(function(h){if(X.ZJ){h=h||{};h.method="POST";var H=OLo(X);H&&(h.postBody=H)}X.sR&&(h=h||{},h.method="POST",h.postParams={atr:X.attestationResponse});$5(Q,h,{token:X.R5,IY:X.R2,mdxEnvironment:X.mdxEnvironment},X.j,D,X.L$,X.isFinal&&X.EC||X.M5||X.Y&&X.kC)}); this.p$=!0}}; RXR.prototype.G=function(D){D===void 0&&(D=NaN);return Number(D.toFixed(3)).toString()}; var Z2={},iL1=(Z2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Z2.LIVING_ROOM_APP_MODE_MAIN=1,Z2.LIVING_ROOM_APP_MODE_KIDS=2,Z2.LIVING_ROOM_APP_MODE_MUSIC=3,Z2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Z2.LIVING_ROOM_APP_MODE_GAMING=5,Z2),Ut={},rYR=(Ut.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Ut.EMBEDDED_PLAYER_MODE_DEFAULT=1,Ut.EMBEDDED_PLAYER_MODE_PFP=2,Ut.EMBEDDED_PLAYER_MODE_PFL=3,Ut);g.U(Lv,g.O);g.B=Lv.prototype; g.B.qe=function(){if(!this.Y){this.provider.videoData.yd===16623&&g.P3(Error("Playback for EmbedPage"));var D=FJ(this,"playback");this.K=p8m(this);bLH(this.S);D.J=Kv(this);this.G>0&&(D.S-=this.G);D.send();if(this.provider.videoData.rN){D=this.provider.j;var X=this.provider.videoData,M={html5:"1",video_id:X.videoId,cpn:X.clientPlaybackNonce,ei:X.eventId,ptk:X.rN,oid:X.Ma,ptchn:X.Bn,pltype:X.T7,content_v:Au(X)};X.NU&&Object.assign(M,{m:X.NU});D=g.nJ(D.mE+"ptracking",M);xRH(this,D)}this.provider.videoData.Lz|| (W3s(this),G4H(this));this.Y=!0;D=this.S;D.S=D.Gw();D.mX=g.y6(D.provider);!(D.Y===0&&D.S<5)&&D.S-D.Y>2&&(D.Y=D.S);D.K=!0}}; g.B.onProgress=function(){this.S.update();l8o(this)&&(W3s(this),G4H(this))}; g.B.Yy=function(){g.O.prototype.Yy.call(this);at(this);nMm(this.S)}; g.B.ip=function(){return gM1(FJ(this,"playback"))}; g.B.eC=function(D){var X=FJ(this,"engage");X.a5=D;return dRs(X,DaR(this.provider))};jPi.prototype.isEmpty=function(){return this.endTime===this.startTime};$8.prototype.T=function(D){return this.j.T(D)}; $8.prototype.getCurrentTime=function(){return this.zs.getCurrentTime()}; $8.prototype.Gw=function(){return this.zs.Gw()}; var X4s={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.U(g.Bu,g.O);g.B=g.Bu.prototype;g.B.qe=function(){this.S&&this.S.qe();this.G&&this.G.qe()}; g.B.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.VN){var D;(D=this.Y.get(this.VN))==null||D.onProgress()}else if(this.S)this.S.onProgress()}; g.B.mL=function(D){this.qoe&&this.qoe.mL(D)}; g.B.OU=rR(25);g.B.CY=rR(31);g.B.OX=function(D,X){this.qoe&&this.qoe.OX(D,X)}; g.B.Kv=function(){if(this.provider.videoData.enableServerStitchedDai&&this.VN){var D;(D=this.Y.get(this.VN))!=null&&wt(D.S)}else this.S&&wt(this.S.S)}; g.B.Rz=function(D,X){this.qoe&&Vdo(this.qoe,D,X);if(this.G)this.G.onError(D)}; g.B.Mb=function(D,X){switch(D){case "M":var M;(M=this.qoe)==null||M.Mb(D,X);break;case "A":var Q;(Q=this.qoe)==null||Q.Mb(D)}}; g.B.onPlaybackRateChange=function(D){if(this.qoe)this.qoe.onPlaybackRateChange(D);this.S&&wt(this.S.S)}; g.B.R4=rR(48);g.B.SH=function(D,X,M){this.qoe&&this.qoe.SH(D,X,M)}; g.B.CH=function(D,X,M){this.qoe&&this.qoe.CH(D,X,M)}; g.B.BA=function(D){var X;(X=this.qoe)==null||X.BA(D)}; g.B.hp=function(D){var X;(X=this.qoe)==null||X.hp(D)}; g.B.JV=function(D,X,M,Q){var h;(h=this.qoe)==null||h.JV(D,X,M,Q)}; g.B.OF=function(D){this.qoe&&this.qoe.OF(D)}; g.B.Wk=function(D,X,M){this.qoe&&this.qoe.Wk(D,X,M)}; g.B.Fg=rR(19);g.B.ED=function(){if(this.qoe)return this.qoe.ED()}; g.B.ip=function(){if(this.provider.videoData.enableServerStitchedDai&&this.VN){var D,X;return(X=(D=this.Y.get(this.VN))==null?void 0:D.ip())!=null?X:{}}return this.S?this.S.ip():{}}; g.B.Ql=function(){var D;return(D=this.qoe)==null?void 0:D.Ql()}; g.B.wy=function(D,X){var M;(M=this.qoe)==null||M.wy(D,X)}; g.B.eC=function(D){return this.S?this.S.eC(D):function(){}}; g.B.getVideoData=function(){return this.provider.videoData}; g.B.resume=function(){this.qoe&&this.qoe.resume()};g.U(g.Uj,g.O);g.B=g.Uj.prototype;g.B.lH=function(D,X){this.sync();X&&this.S.array.length>=2E3&&this.eO("captions",1E4);X=this.S;if(D.length>1&&D.length>X.array.length)X.array=X.array.concat(D),X.array.sort(X.S);else{D=g.e(D);for(var M=D.next();!M.done;M=D.next())M=M.value,!X.array.length||X.S(M,X.array[X.array.length-1])>0?X.array.push(M):g.VF(X.array,M,X.S)}this.Y=NaN;this.sync()}; g.B.EA=function(D){D.length>1E4&&g.P3(new g.ys("Over 10k cueRanges removal occurs with a sample: ",D[0]));if(!this.H2()){var X=new Set(D);this.G=this.G.filter(function(M){return!X.has(M)}); Kcn(this.S,X);this.sync()}}; g.B.qa=function(D){if(!this.H2()){var X=this.uE().find(function(M){return M.id===void 0&&M.namespace===D}); X&&this.EA([X])}}; g.B.eO=function(D,X){var M=(isNaN(this.Y)?VD9(this):this.Y)-X;X=this.uE().filter(function(Q){return Q.namespace===D&&Q.endthis.S,H=g.x(M,8)&&g.x(M,16),t=this.zs.qW().isBackground()||M.isSuspended();Rt(this,this.t$,H&&!t,h,"qoe.slowseek",function(){},"timeout"); var q=isFinite(this.S);q=H&&q&&X.r0(this.S);var w=!Q||Math.abs(Q-this.S)>10,T=this.j.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),L=Q===0&&this.G&&[11,10].includes(this.G);Rt(this,this.p$,q&&w&&!t&&(!T||!L),h,"qoe.slowseek",function(){X.seekTo(D.S)},"set_cmt"); w=q&&AC(X.HP(),this.S);var K=this.zs.loader;q=!K||K.B4();var a=function(){X.seekTo(D.S+.001)}; Rt(this,this.M5,w&&q&&!t,h,"qoe.slowseek",a,"jiggle_cmt");q=function(){return D.zs.Hx()}; Rt(this,this.yf,w&&!t,h,"qoe.slowseek",q,"new_elem");var F=BQ(M);L=M.isBuffering();var V=X.HP(),c=pE(V,Q),S=c>=0&&V.end(c)>Q+5;w=F&&L&&S;T=this.zs.getVideoData();Rt(this,this.uj,Q<.002&&this.S<.002&&H&&g.Nn(this.j)&&g.pA(T)&&!t,h,"qoe.slowseek",q,"slow_seek_shorts");Rt(this,this.eH,T.TI()&&H&&!t&&!T.K,h,"qoe.slowseek",q,"slow_seek_gapless_shorts");Rt(this,this.f$,w&&!t,F&&!L,"qoe.longrebuffer",a,"jiggle_cmt");Rt(this,this.R5,w&&!t,F&&!L,"qoe.longrebuffer",q,"new_elem_nnr");if(K){var b=K.getCurrentTime(); H=X.Me();H=qc2(H,b);H=!K.isSeeking()&&Q===H;Rt(this,this.Mj,F&&L&&H&&!t,F&&!L&&!H,"qoe.longrebuffer",function(){X.seekTo(b)},"seek_to_loader")}H={}; a=pE(V,Math.max(Q-3.5,0));var n=a>=0&&Q>V.end(a)-1.1,R=a>=0&&a+1=0&&n&&R<11;H.close2edge=n;H.gapsize=R;H.buflen=V.length;this.G&&(H.seekSour=this.G);Rt(this,this.a5,F&&L&&!t,F&&!L,"qoe.longrebuffer",function(){},"timeout",H); H=M.isSuspended();H=this.zs.bA()&&!H;Rt(this,this.J,H,!H,"qoe.start15s",function(){D.zs.Uy("ad")},"ads_preroll_timeout"); H=this.j.experiments.Z4("html5_use_playback_rate_in_skip_slow_ad")?this.zs.getPlaybackRate()*1E3:1E3;c=Q-this.U5;Rt(this,this.A$,K,F&&!L,"qoe.longrebuffer",function(){D.zs.XR()},"reset_media_source"); Rt(this,this.OR,K,F&&!L,"qoe.longrebuffer",q,"reset_media_element");this.U===0&&(this.X=Q);K=L&&this.S===0&&Q>1&&Q===this.X;Rt(this,this.L$,g.pA(T)&&K,F&&!L,"qoe.slowseek",function(){X.seekTo(0)},"reseek_after_time_jump"); t=M.isOrWillBePlaying()&&!t;S=this.zs.uB()-Q<6&&!S&&this.zs.g8();Rt(this,this.K,T.TI()&&t&&L&&S,F&&!L,"qoe.longrebuffer",function(){D.zs.Hx(!1,!0)},"handoff_end_long_buffer_reload"); t=this.G===104||this.zs.j8;M=qp(T)&&T.isAd()&&!T.K&&t&&(L||g.x(M,8)&&g.x(M,16));Rt(this,this.o5,M,h,"qoe.start15s",q,"gapless_ad_slow_start");M=qp(T)&&!T.K&&t&&w;Rt(this,this.q5,M,h,"qoe.longrebuffer",q,"gapless_slow_start");this.U=Q;this.D.start()}}; eA.prototype.Rz=function(D,X,M){X=this.ip(X);X.wn=M;X.wdup=this.Y[D]?"1":"0";this.zs.Rz(new g.za(D,X));this.Y[D]=!0}; eA.prototype.ip=function(D){D=Object.assign(this.zs.ip(!0),D.ip());this.S&&(D.stt=this.S.toFixed(3));this.zs.getVideoData().isLivePlayback&&(D.ct=this.zs.getCurrentTime().toFixed(3),D.to=this.zs.w3().toFixed(3));delete D.uga;delete D.euri;delete D.referrer;delete D.fexp;delete D.vm;return D}; bp.prototype.reset=function(){this.S=this.G=this.Y=this.startTimestamp=0;this.U=!1}; bp.prototype.test=function(D){if(!this.D||this.G)return!1;if(!D)return this.reset(),!1;D=(0,g.fi)();if(!this.startTimestamp)this.startTimestamp=D,this.Y=0;else if(this.Y>=this.D)return this.G=D,!0;this.Y+=1;return!1}; bp.prototype.ip=function(){var D={},X=(0,g.fi)();this.startTimestamp&&(D.wsd=(X-this.startTimestamp).toFixed());this.G&&(D.wtd=(X-this.G).toFixed());this.S&&(D.wssd=(X-this.S).toFixed());return D};g.U(v72,g.O);g.B=v72.prototype;g.B.setMediaElement=function(D){(this.mediaElement=D)?(this.mediaElement&&(this.D||this.Y||!this.mediaElement.My()||this.seekTo(.01,{Aa:"seektimeline_setupMediaElement"})),It(this)):vu(this)}; g.B.getCurrentTime=function(D){D=D===void 0?!1:D;if(gt(this.zs)){if(this.T("html5_use_centralized_player_time")&&!D&&!isNaN(this.X))return this.X;if(!isNaN(this.G))return this.G}else{if(this.T("html5_use_centralized_player_time")&&!D&&!isNaN(this.X)&&isFinite(this.X))return this.X;if(!isNaN(this.G)&&isFinite(this.G))return this.G}return this.mediaElement&&GMo(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Y||0}; g.B.s$=function(){return this.o5}; g.B.Gw=function(){return this.getCurrentTime()-this.w3()}; g.B.gY=function(){return this.S?this.S.gY():Infinity}; g.B.isAtLiveHead=function(D){if(!this.S)return!1;D===void 0&&(D=this.getCurrentTime());return Pu(this.S,D)}; g.B.Aw=function(){return!!this.S&&this.S.Aw()}; g.B.seekTo=function(D,X){var M=X===void 0?{}:X;X=M.yX===void 0?!1:M.yX;var Q=M.qg===void 0?0:M.qg;var h=M.sx===void 0?!1:M.sx;var H=M.wW===void 0?0:M.wW;var t=M.Aa===void 0?"":M.Aa;var q=M.seekSource===void 0?void 0:M.seekSource;var w=M.fz===void 0?!1:M.fz;var T=M.lG===void 0?!1:M.lG;M=M.B6===void 0?!1:M.B6;w&&(D+=this.w3());Er(this.videoData)&&q===29&&(this.o5=void 0);w=D=this.qx())||!g.Rp(this.videoData),c||(S={st:S,mst:this.qx()},this.S&&this.T("html5_high_res_seek_logging")&&(S.ht=this.S.gY(),S.adft=yX(this.S)),this.zs.SH("seeknotallowed",S)),S=c));if(!S)return this.U&&(this.U=null,J_W(this)),g.m$(this.getCurrentTime());S=.005;T&&this.T("html5_sabr_seek_no_shift_tolerance")&&(S=0);if(Math.abs(D-this.G)<=S&&this.L$)return this.D;t&&(S=D,this.j.t5()||this.T("html5_log_seek_reasons"))&& (t={reason:t,tgt:S},this.T("html5_sabr_csdai_seek_log")&&(t.source=q),this.zs.SH("seekreason",t));q&&(this.f$.G=q);this.L$&&vu(this);this.D||(this.D=new ql);D&&!isFinite(D)&&o7n(this,!1);(t=M||w)||(t=D,t=!(this.videoData.isLivePlayback&&this.videoData.Y&&!this.videoData.Y.S&&!(this.mediaElement&&this.mediaElement.r$()>0&&this.mediaElement.X$()>0)||By(this.videoData)&&this.WC()===this.qx(!1)?0:isFinite(t)||!By(this.videoData)));t||(D=dt(this,D,h));D&&!isFinite(D)&&o7n(this,!1);this.T("html5_use_centralized_player_time")? this.X=D:this.G=this.Y=D;this.A$=H;this.J=0;this.S&&(h=this.S,H=D,n7H(h,H,!1),bzo(h,H));h=this.zs;H=D;t={yX:X,seekSource:q};h.BC.Y=H;M=h.Zr;M.mediaTime=H;M.S=!0;t.yX&&h.sL(t);t=H>h.videoData.endSeconds&&H>h.videoData.limitedPlaybackDurationInSeconds;h.Kh&&t&&isFinite(H)&&bKs(h);H0&&DX.start&& bKs(this.zs);return this.D}; g.B.qx=function(D){if(!this.videoData.isLivePlayback)return this.zs.videoData.qx();var X;return XX(this.videoData)&&((X=this.mediaElement)==null?0:X.isPaused())&&this.videoData.S?(D=this.getCurrentTime(),P3_(this.hR(D)*1E3)+D):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&Er(this.videoData)&&this.videoData.S?D?this.videoData.S.a5||0:this.videoData.S.jm||0:By(this.videoData)&&this.videoData.yp&&this.videoData.S?this.videoData.S.qx()+this.timestampOffset:this.videoData.Y&&this.videoData.Y.S? !D&&this.S?this.S.gY():this.zs.videoData.qx()+this.timestampOffset:this.mediaElement?WX()?P3_(this.mediaElement.Rb().getTime()):this.mediaElement.X$()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.B.WC=function(){if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&Er(this.videoData)){var D;return((D=this.videoData.S)==null?void 0:D.Xn)||0}D=this.videoData?this.videoData.WC()+this.timestampOffset:this.timestampOffset;if(XX(this.videoData)&&this.videoData.S){var X,M=Number((X=this.videoData.progressBarStartPosition)==null?void 0:X.utcTimeMillis)/1E3;if(!isNaN(M)&&(X=this.SN(M),!isNaN(X)))return Math.max(D,X)}return D}; g.B.Gf=function(){this.D||this.seekTo(this.Y,{Aa:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.B.du=function(){return this.L$&&!isFinite(this.G)}; g.B.Yy=function(){CXn(this,null);this.f$.dispose();g.O.prototype.Yy.call(this)}; g.B.ip=function(){var D={};this.loader&&Object.assign(D,this.loader.ip());this.mediaElement&&Object.assign(D,this.mediaElement.ip());return D}; g.B.dg=function(D){this.timestampOffset=D}; g.B.getStreamTimeOffset=function(){return By(this.videoData)?0:this.videoData.S?this.videoData.S.getStreamTimeOffset():0}; g.B.w3=function(){return this.timestampOffset}; g.B.hR=function(D){return this.videoData&&this.videoData.S?this.videoData.S.hR(D-this.timestampOffset):NaN}; g.B.xP=function(){if(!this.mediaElement)return 0;if(Ip(this.videoData)){var D=this.mediaElement.SW()+this.timestampOffset-this.WC(),X=this.qx()-this.WC();return Math.max(0,Math.min(1,D/X))}return this.mediaElement.xP()}; g.B.RL=function(D){this.K&&(this.K.S=D)}; g.B.qk=function(D,X,M){this.zs.SH("requestUtcSeek",{time:D});Er(this.videoData)&&(this.o5=D);var Q;(Q=this.loader)==null||Q.qk(D,M);X&&(this.sR=X)}; g.B.e2=function(D){Er(this.videoData)&&(this.o5=void 0);this.sR?(this.zs.SH("utcSeekingFallback",{source:"streamTime",timeSeconds:this.sR}),this.zs.seekTo(this.sR,{Aa:"utcSeekingFallback_streamTime"}),this.sR=0):(D=this.SN(D),isNaN(D)||(this.zs.SH("utcSeekingFallback",{source:"estimate",timeSeconds:D}),this.zs.seekTo(D,{Aa:"utcSeekingFallback_estimate"})))}; g.B.FA=function(){this.sR=0}; g.B.NB=function(D){this.yf=D}; g.B.SN=function(D){var X=this.getCurrentTime();if(isNaN(X))return NaN;var M=this.hR(X);return isNaN(M)?NaN:D-(M-X)}; g.B.T=function(D){return this.j&&this.j.T(D)};g.U(rt,g.O);rt.prototype.start=function(){this.G.start()}; rt.prototype.stop=function(){this.G.stop()}; rt.prototype.clear=function(){for(var D=g.e(this.S.values()),X=D.next();!X.done;X=D.next())X.value.clear()}; rt.prototype.sample=function(){for(var D=g.e(this.Y),X=D.next();!X.done;X=D.next()){var M=g.e(X.value);X=M.next().value;M=M.next().value;this.S.has(X)||this.S.set(X,new XdW(Pbb.has(X)));this.S.get(X).update(M())}this.G.start()}; var Pbb=new Set(["networkactivity"]);XdW.prototype.update=function(D){this.G?(this.buffer.add(D-this.S||0),this.S=D):this.buffer.add(D)}; XdW.prototype.clear=function(){this.buffer.clear();this.S=0};Cv.prototype.kP=function(){return this.started}; Cv.prototype.start=function(){this.started=!0}; Cv.prototype.reset=function(){this.finished=this.started=!1};var N9i=!1;g.U(g.Y8,g.Dq);g.B=g.Y8.prototype;g.B.Yy=function(){g.ZS(this.Ml);A1_(this.a6);this.visibility.unsubscribe("visibilitystatechange",this.a6);QY9(this.mZ);g.Kp(this.mZ);Gl(this);g.Ox.zN(this.sF);this.Ya();this.eV=null;g.Kp(this.videoData);g.Kp(this.ZT);g.Kp(this.cJ);g.Kp(this.A3);g.am(this.djC);this.Kh=null;g.Dq.prototype.Yy.call(this)}; g.B.Wk=function(D,X,M,Q,h){if(this.j.T("html5_log_ad_playback_docid")){var H=this.mZ;if(H.qoe){H=H.qoe;var t=this.j.f$||"yt";g.cp(H,g.y6(H.provider),"ad_playback",[D,X,M,h,t])}}else this.mZ.Wk(D,X,M);this.T("html5_log_media_perf_info")&&this.SH("adloudness",{ld:Q.toFixed(3),cpn:D})}; g.B.Uh=function(){var D;return(D=this.loader)==null?void 0:D.Uh()}; g.B.bV=function(){var D;return(D=this.loader)==null?void 0:D.bV()}; g.B.gL=function(){var D;return(D=this.loader)==null?void 0:D.gL()}; g.B.u8=function(){var D;return(D=this.loader)==null?void 0:D.u8()}; g.B.aj=function(){return this.videoData.aj()}; g.B.LF=function(){return this.T("html5_not_reset_media_source")&&this.videoData.isLivePlayback}; g.B.UL=function(){this.videoData.J&&(this.videoData.tC=this.videoData.tC||this.dI.v2().Uh(),this.videoData.NL=this.videoData.NL||this.dI.v2().bV());if(aCs(this.videoData)||!jo(this.videoData)){var D=this.videoData.errorDetail;this.ZS(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),D,D,this.videoData.qT||void 0)}this.T("html5_generate_content_po_token")&&this.VU();this.T("html5_enable_d6de4")&&this.rT()}; g.B.getVideoData=function(){return this.videoData}; g.B.W=function(){return this.j}; g.B.Lr=function(){return this.V5.Lr(this.eV)}; g.B.qW=function(){return this.visibility}; g.B.Bu=function(){return this.mediaElement&&this.mediaElement.yu()?this.mediaElement.Ly():null}; g.B.pK=function(){return this.mediaElement}; g.B.E0=function(){if(this.videoData.errorCode)return!1;this.W().X&&this.W().houseBrandUserStatus&&this.SH("hbut",{status:this.W().houseBrandUserStatus},!0);if(this.videoData.X8())return!0;this.ZS("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.B.hn=function(D){(D=D===void 0?!1:D)||MDs(this.mZ);this.wx=D;!this.E0()||this.o9.kP()?c3n(this)&&this.o9.kP()&&!this.o9.finished&&!this.wx&&this.zr():(this.o9.start(),D=this.mZ,g.y6(D.provider),D.qoe&&aAm(D.qoe),this.zr())}; g.B.zr=function(){if(this.videoData.isLoaded()){var D=this.ZT;g.lx(D.UR.experiments,"html5_player_min_build_cl")>0&&g.lx(D.UR.experiments,"html5_player_min_build_cl")>830220508&&QPH(D,"oldplayer");y3R(this)}else this.videoData.ZJ||this.videoData.Zc?this.wx&&c3n(this)||(this.videoData.ZJ?kSs(this.videoData):(D=this.mZ,D.qoe&&(D=D.qoe,bn(D,"protected"),D.provider.videoData.D?D.XH():D.provider.videoData.subscribe("dataloaded",D.XH,D)),JD2(this.videoData))):!this.videoData.loading&&this.dk&&fGH(this)}; g.B.uP=function(D){this.Bb=D;this.loader&&(OSm(this.loader,D),this.SH("sdai",{sdsstm:1}))}; g.B.RR=function(D,X,M){var Q;(Q=this.loader)==null||Q.RR(D,X,M)}; g.B.AV=function(D){var X;(X=this.loader)==null||X.AV(D)}; g.B.aV=function(){var D;return((D=this.loader)==null?void 0:D.Mo())||null}; g.B.isFullscreen=function(){return this.visibility.isFullscreen()}; g.B.isBackground=function(){return this.visibility.isBackground()}; g.B.Iq=function(){var D=this;J5(this).then(function(){return x8(D)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.B.rH=function(){this.mediaElement&&this.mediaElement.activate();this.hn();this.E0()&&!g.x(this.playerState,128)&&(this.pZ.kP()||(this.pZ.start(),this.videoData.wj?this.aN(aE(this.playerState,4)):this.aN(aE(aE(this.playerState,8),1))),Svs(this))}; g.B.XZ=function(){return this.o9.finished}; g.B.sendAbandonmentPing=function(){g.x(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.n3(!0),QY9(this.mZ),g.Kp(this.mZ),g.Ox.zN(this.sF))}; g.B.vH=function(D,X,M){D=D===void 0?!0:D;(X===void 0||X)&&this.mediaElement&&this.mediaElement.pause();D&&M&&this.loader&&By(this.videoData)&&this.loader.JV(M);this.aN(D?new g.LZ(14):new g.LZ)}; g.B.Qu=function(){this.mZ.Kv()}; g.B.ZS=function(D,X,M,Q,h,H){var t,q;g.nf(oBK,M)?t=M:M?q=M:t="GENERIC_WITHOUT_LINK";Q=(Q||"")+(";a6s."+GJ());if(D==="auth"||D==="drm.auth"||D==="heartbeat.stop")M&&(Q+=";r."+M.replaceAll(" ","_")),H&&(Q+="sr."+H.replaceAll(" ","_"));X={errorCode:D,errorDetail:h,errorMessage:q||g.gZ[t]||"",iY:t,qT:H||"",Eo:Q,oy:X,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=D;Wu(this,"dataloaderror");this.aN(KZ(this.playerState,128,X));g.Ox.zN(this.sF);Gl(this);this.wY()}; g.B.Uy=function(D){this.ZU=this.ZU.filter(function(X){return D!==X}); this.pZ.kP()&&Svs(this)}; g.B.FO=function(){var D;(D=!!this.ZU.length)||(D=this.KF.S.array[0],D=!!D&&D.start<=-0x8000000000000);return D}; g.B.Aw=function(){return this.BC.Aw()}; g.B.isPlaying=function(){return this.playerState.isPlaying()}; g.B.IA=function(){return this.playerState.IA()&&this.videoData.wj}; g.B.getPlayerState=function(){return this.playerState}; g.B.aU=function(D){var X;(X=this.loader)==null||X.aU(D)}; g.B.Yx=function(D){var X;(X=this.loader)==null||X.Yx(D)}; g.B.getPlayerType=function(){return this.playerType}; g.B.getPreferredQuality=function(){if(this.eV){var D=this.eV;D=D.videoData.mJ.compose(D.videoData.gG);D=RB(D)}else D="auto";return D}; g.B.BX=rR(12);g.B.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.B.setMediaElement=function(D){if(this.mediaElement&&D.Ly()===this.mediaElement.Ly()&&(D.isView()||this.mediaElement.isView())){if(D.isView()||!this.mediaElement.isView())this.pN(),this.mediaElement=D,this.mediaElement.Ho(this),A3s(this),this.BC.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ya();if(!this.playerState.isError()){var X=Fw(this.playerState,512);g.x(X,8)&&!g.x(X,2)&&(X=aE(X,1));D.isView()&&(X=Fw(X,64));this.aN(X)}this.mediaElement=D;this.mediaElement.Ho(this);!g.Nn(this.j)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);A3s(this);this.BC.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.ZT.Ax()&&this.mediaElement.AQ()}}; g.B.Ya=function(D,X,M){D=D===void 0?!1:D;X=X===void 0?!1:X;M=M===void 0?!1:M;if(this.mediaElement){var Q=this.getCurrentTime();Q>0&&(this.BC.Y=Q);this.BC.setMediaElement(null);!D&&this.LF()?o_n(this):this.fh(M);this.loader&&(Nz(this.loader),jA(this,X));this.v4.stop();if(this.mediaElement&&(!this.pZ.kP()&&!this.bA()||this.playerState.isError()||g.x(this.playerState,2)||this.aN(aE(this.playerState,512)),this.mediaElement)){this.pN();if(D||!this.mediaElement.isView())this.r3.UJ("mesv_s"),this.mediaElement.stopVideo(), D6(this);this.mediaElement.Ho(null);this.mediaElement=null}}}; g.B.playVideo=function(D,X){D=D===void 0?!1:D;X=X===void 0?!1:X;var M=this,Q,h,H,t,q,w;return g.r(function(T){if(T.S==1){var L=window.google_image_requests;L&&L.length>10&&(window.google_image_requests=L.slice(-10));if(g.x(M.playerState,128))return T.return();if(M.ZT.J7())return M.publish("signatureexpired"),T.return();M.mediaElement&&MDs(M.mZ);M.rH();(g.x(M.playerState,64)||D)&&M.aN(aE(M.playerState,8));return M.pZ.finished&&M.mediaElement?M.eV||!M.vt?T.D4(2):g.I(T,M.vt,3):T.return()}if(T.S!=2&& g.x(M.playerState,128))return T.return();if(!M.videoData.Y)return M.videoData.isLivePlayback&&!g.V5(M.j.D,!0)?(Q="html5.unsupportedlive",h=2):(Q=M.videoData.aj()?"fmt.unplayable":"fmt.noneavailable",h=1),g.P3(Error("selectableFormats")),M.ZS(Q,h,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),T.return();if(M.CF()&&M.videoData.Y.S)return T.return(J5(M));if(gt(M))L=M.BC,FY(L.videoData)&&!L.isAtLiveHead(L.getCurrentTime())&&L.Aw()&&L.zs.seekTo(Infinity,{Aa:"seektimeline_peggedToLive", seekSource:34});else if(FY(M.videoData)&&(H=M.getCurrentTime()t;if(!q||!t){h&&q&&(H=Math.max(H,h));var w;h=w8i(X,(w=Q.S)==null?void 0:w.videoInfos);w=X.zs.getPlaybackRate();w>1&&h&&(w=h4s(X.j.D,Q.S.videoInfos,w),D.S!==0&&w=480;if(X.T("html5_perf_cap_override_sticky")){T=X.Y;X=X.T("html5_perserve_av1_perf_cap");X=X===void 0?!1:X;if(X===void 0?0:X){L=Bt();D=g.e(Object.keys(L));for(H=D.next();!H.done;H=D.next())H=H.value,H.indexOf("1")!==0&&delete L[H];g.gw("yt-player-performance-cap",L,2592E3)}else g.dw("yt-player-performance-cap");qF5(X);if(X){X=g.e(xC.keys());for(L=X.next();!L.done;L=X.next())L=L.value,L.startsWith("1")|| xC.delete(L);X=g.e(t5.values());for(L=X.next();!L.done;L=X.next())L=L.value,L.startsWith("1")||t5.delete(L);X=g.e(T.keys());for(L=X.next();!L.done;L=X.next())L=L.value,L.startsWith("1")||T.delete(L)}else xC.clear(),t5.clear(),T.clear()}}}}this.loader&&(X=this.loader,M=M||"",X.policy.S?wk(X.U.S,M):wk(X.S.D,M));this.MQ()}; g.B.getUserPlaybackQualityPreference=function(){return this.videoData.Y&&!this.videoData.Y.S?RB(this.videoData.mJ):e$[Vf()]}; g.B.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.B.setUserAudio51Preference=function(D,X){this.getUserAudio51Preference()!==D&&(this.SH("toggle51",{pref:D}),g.gw("yt-player-audio51",D,X?31536E3:2592E3),this.Iq())}; g.B.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.B.setProximaLatencyPreference=function(D){var X=this.getProximaLatencyPreference();this.SH("proxima",{pref:D});g.gw("yt-player-proxima-pref",D,31536E3);X!==D&&(D=this.BC,D.q5=!0,D.zs.seekTo(Infinity,{Aa:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.B.getProximaLatencyPreference=function(){var D;return(D=$4())!=null?D:0}; g.B.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.B.VU=function(){this.videoData.videoId?this.dI.VU(this.videoData):this.SH("povid",{})}; g.B.rT=function(){this.videoData.videoId?this.dI.rT(this.videoData):this.SH("piavid",{})}; g.B.MQ=function(){if(!this.H2()&&!g.x(this.playerState,128)&&this.videoData.Y){if(this.videoData.Y.S)pv(this);else{var D=up(this),X=this.videoData;a:{var M=this.videoData.q5;if(D.S){for(var Q=g.e(M),h=Q.next();!h.done;h=Q.next()){h=h.value;var H=h.getInfo(),t=g.BE[H.video.quality];if((!D.Y||H.video.quality!=="auto")&&t<=D.S){M=h;break a}}M=M[M.length-1]}else M=M[0]}X.L$=M;ea2(this,D.reason,J3d(this,this.videoData.L$))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.BC.eH= !1,this.playVideo()}}; g.B.Ko=function(D,X){if(this.H2()||g.x(this.playerState,128))return!1;var M,Q=!((M=this.videoData.Y)==null||!M.S);M=Q&&X?this.getCurrentTime()-this.w3():NaN;if(D.Cy&&D.Cy.id){var h=this.mZ;if(h.qoe){h=h.qoe;var H=[D.Cy.id,isNaN(M)?"m":"t"];g.cp(h,g.y6(h.provider),"afi",H)}}if(Q)return X&&(Q=Ozd(this.BC),this.SH("aswh",{id:D.id,xtags:D.xtags,bh:Q.toFixed(3)})),this.loader.setAudioTrack(D,M,X),!0;if(IGm(this)){a:{X=this.mediaElement.audioTracks();for(Q=0;QH.J$.getDuration()&&pdm(H,t)):pdm(H,T);var L=H.loader,K=H.J$;q=q===void 0?!1:q;w=w===void 0?!1:w;L.policy.M5&&(L.policy.yf&&L.SH("loader",{setsmb:0}),L.Ia(),L.policy.M5=!1);e5i(L,w);if(!ht(K)){var a=tY(L.videoTrack),F=tY(L.audioTrack),V=(a?a.info.n$:L.videoTrack.n$).info,c=(F?F.info.n$:L.audioTrack.n$).info,S=L.policy.NL, b=V.mimeType+(S===void 0?"":S),n=c.mimeType,R=V.ij,v=c.ij,l;K.f$=(l=K.J$)==null?void 0:l.addSourceBuffer(n);var A;K.R5=b.split(";")[0]==="fakesb"?void 0:(A=K.J$)==null?void 0:A.addSourceBuffer(b);K.UU&&(K.UU.webkitSourceAddId("0",n),K.UU.webkitSourceAddId("1",b));var Hs=new kP(K.f$,K.UU,"0",cE(n),v,!1),u=new kP(K.R5,K.UU,"1",cE(b),R,!0);LMm(K,Hs,u)}a=q;F=w;a=a===void 0?!1:a;F=F===void 0?!1:F;pz(L.videoTrack,K.G||null,F);pz(L.audioTrack,K.S||null,F);L.J$=K;L.J$.D=!0;a||L.resume();K.S.Dq(L.A$,L);K.G.Dq(L.A$, L);try{L.f6()}catch(D_){g.ET(D_)}H.publish("mediasourceattached")}}catch(D_){g.P3(D_),H.handleError(new g.za("fmt.unplayable",{msi:"1",ename:D_&&typeof D_==="object"&&"name"in D_?String(D_.name):void 0,trg:"setmediasrc"},1))}} var H=this;X=X===void 0?!1:X;M=M===void 0?!1:M;OKo(this,Q===void 0?!1:Q);this.J$=D;this.LF()&&HQ(this.J$)==="open"?h(this.J$):TmR(this.J$,h)}; g.B.DG=function(D){this.dw.set(D.initData,D);this.Em&&(this.Em.DG(D),this.T("html5_eme_loader_sync")||this.dw.remove(D.initData))}; g.B.AO=function(D){this.videoData.vW=g.mm("auto",D,!1,"u");pv(this)}; g.B.RL=function(D){var X=D.reason,M=D.S.info,Q=D.token,h=D.videoId,H=this.mZ,t=this.videoData;if(M!==t.U){var q=!t.U;t.U=M;X!=="m"&&X!=="t"&&(X=q?"i":"a");var w=X==="m"||X==="t";this.j.experiments.Z4("html5_refactor_sabr_audio_format_selection_logging")?this.Id=new tCn(t,M,X,"",Q,h):(X=new tCn(t,M,X,"",Q),H.qoe&&(H=H.qoe,M=g.y6(H.provider),fAo(H,M,X)));this.publish("internalaudioformatchange",t,!q&&w)}this.jA();this.BC.RL(D.S.index)}; g.B.Gi=function(D){this.publish("localmediachange",D)}; g.B.vv=function(D){D=D===void 0?{}:D;var X;(X=this.loader)==null||X.vv(this.j,T3(this.videoData),D)}; g.B.J7=function(){return this.ZT.J7()}; g.B.iy=function(D){this.Rz(new g.za("staleconfig",{reason:D}))}; g.B.handleError=function(D){this.ZT.handleError(D)}; g.B.Ax=function(){return this.ZT.Ax()}; g.B.e2=function(D){this.BC.e2(D)}; g.B.Hx=function(D,X){D=D===void 0?!1:D;X=X===void 0?!1:X;var M=this,Q,h,H;return g.r(function(t){if(t.S==1){M.loader&&M.loader.h4();M.loader&&M.loader.H2()&&Gl(M);if(M.T("html5_enable_vp9_fairplay")&&M.aj()&&(Q=M.videoData.S)!=null)for(var q in Q.S)Q.S.hasOwnProperty(q)&&(Q.S[q].S=null,Q.S[q].Y=!1);M.aN(aE(M.playerState,2048));M.publish("newelementrequired");return D?g.I(t,J5(M),2):t.D4(2)}M.videoData.yq()&&((h=M.loader)==null?0:h.sR)&&!gt(M)&&((H=M.isAtLiveHead())&&FY(M.videoData)?M.seekTo(Infinity, {Aa:"videoPlayer_getNewElement"}):M.videoData.uH&&M.loader&&(q=M.loader,q.P2.yq&&(q.P2.uH||q.P2.U||q.P2.isPremiere?(q.seek(0,{Aa:"loader_resetSqless"}),q.videoTrack.X=!0,q.audioTrack.X=!0,q.videoTrack.U=!0,q.audioTrack.U=!0):YC(q.P2)&&fK(q))));X&&M.seekTo(0,{seekSource:105});g.x(M.playerState,8)&&M.playVideo();g.HZ(t)})}; g.B.Ux=function(D){this.SH("hgte",{ne:+D});this.videoData.J=!1;D&&this.Hx();this.loader&&bSH(this.loader)}; g.B.Aj=function(D){this.SH("newelem",{r:D});this.Hx()}; g.B.pauseVideo=function(D){D=D===void 0?!1:D;if((g.x(this.playerState,64)||g.x(this.playerState,2))&&!D)if(g.x(this.playerState,8))this.aN(Vb(this.playerState,4,8));else if(this.IA())x8(this);else return;g.x(this.playerState,128)||(D?this.aN(aE(this.playerState,256)):this.aN(Vb(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.Rp(this.videoData)&&this.loader&&jA(this,!1)}; g.B.stopVideo=function(){this.pauseVideo();this.loader&&(jA(this,!1),this.loader.Ia())}; g.B.wY=function(D,X){D=D===void 0?!1:D;X=X===void 0?!1:X;if(this.LF()&&X){var M;(M=this.mediaElement)==null||M.wY()}else{var Q;(Q=this.mediaElement)==null||Q.stopVideo()}D6(this);Gl(this);g.x(this.playerState,128)||(D?this.aN(Fw(Fw(aE(this.playerState,4),8),16)):this.aN(KZ(this.playerState)));this.videoData.videoId&&this.j.uj.remove(this.videoData.videoId)}; g.B.seekTo=function(D,X){X=X===void 0?{}:X;g.x(this.playerState,2)&&x8(this);X.SXR&&this.aN(aE(this.playerState,2048));if((X.seekSource===58||X.seekSource===60)&&this.T("html5_update_vss_during_gapless_seeking")){var M=this.mZ;M.S&&(M=M.S,X.seekSource===58?M.S.update():M.Y&&(at(M),VX(M).send(),M.U=NaN))}this.BC.seekTo(D,X);this.KF.sync()}; g.B.sL=function(D){this.r3.U.G=(0,g.fi)();g.x(this.playerState,32)||(this.aN(aE(this.playerState,32,D==null?void 0:D.seekSource)),g.x(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Ja()}; g.B.G$=function(D){D=D==null?void 0:D.seekSource;g.x(this.playerState,32)?(this.aN(Vb(this.playerState,16,32,D)),this.publish("endseeking")):g.x(this.playerState,2)||this.aN(aE(this.playerState,16,D));D=this.r3.U;var X=this.videoData,M=this.playerState.isPaused();if(X.clientPlaybackNonce&&!isNaN(D.S)){if(Math.random()<.01){M=M?"pbp":"pbs";var Q={startTime:D.S};X.X&&(Q.cttAuthInfo={token:X.X,videoId:X.videoId});yO("seek",Q);g.Eg({clientPlaybackNonce:X.clientPlaybackNonce},"seek");isNaN(D.G)||SQ("pl_ss", D.G,"seek");SQ(M,(0,g.fi)(),"seek")}D.reset()}}; g.B.OY=function(D){this.G$(D)}; g.B.Xe=function(){this.publish("SEEK_COMPLETE")}; g.B.YO=function(D){var X=this.dI,M=this.videoData.clientPlaybackNonce,Q=this.playerType;if(D.scope===4){var h=D.type;if(h){var H=X.eh(),t=H.getVideoData().clientPlaybackNonce;Q===1&&(t=M);if(Q=QVn(X,t)){if(M=Q.getVideoData())D.writePolicy===2&&M.sabrContextUpdates.has(h)||(D.sendByDefault&&M.uj.add(h),M.sabrContextUpdates.set(h,D)),X.T("html5_enable_t1_enf_on_sabr")&&(D=h===5,h=TEW(M.playerResponse),D?(D=h?1:0,hq(D,"m.p_",{}),GZ("MBSTAT",D)):D=1,D===0&&X.XF.ER("onAbnormalityDetected"))}else H.SH("scuset", {ncpf:"1",ccpn:t,crcpn:M})}else g.P3(Error("b/380308491: contextUpdateType is undefined"))}}; g.B.g7=function(){if(this.playerType===2)return this.dI.g7("")}; g.B.getCurrentTime=function(D){return this.BC.getCurrentTime(D===void 0?!1:D)}; g.B.s$=function(){return this.BC.s$()}; g.B.Gw=function(){return this.BC.Gw()}; g.B.HO=function(){return this.Gw()}; g.B.gY=function(){return this.BC.gY()}; g.B.getPlaylistSequenceForTime=function(D){return this.videoData.getPlaylistSequenceForTime(D-this.w3())}; g.B.Zd=function(){var D=NaN;this.mediaElement&&(D=this.mediaElement.Zd());return D>=0?D:this.getCurrentTime()}; g.B.hR=function(){var D;return((D=this.videoData.S)==null?0:D.hR)?this.videoData.S.hR(this.getCurrentTime()-this.w3()):this.mediaElement&&(D=this.mediaElement.Rb())&&(D=D.getTime(),!isNaN(D))?D/1E3+this.getCurrentTime():NaN}; g.B.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.w3():this.qx()?this.qx():0}; g.B.zW=function(){var D=new NkH;if(this.loader){var X=this.Hb,M=this.j.t5();M=M===void 0?!1:M;D.sJ=X.a5;D.FL=X.OR;D.bandwidthEstimate=lP(X);if(M){M=(X.K.OW()*1E3).toFixed();var Q=(X.L$.OW()*1E3).toFixed(),h=A1(X).toFixed(2),H=((X.J.OW()||0)*1E9).toFixed(2),t=X.Y.OW().toFixed(0),q=X.M5.OW().toFixed(0),w=X.eH.percentile(.5).toFixed(2),T=X.eH.percentile(.92).toFixed(2),L=X.eH.percentile(.96).toFixed(2),K=X.eH.percentile(.98).toFixed(2);X.S?X.S.reset():X.S=new qR;X.S.add(X.sR);X.S.add(X.interruptions.length); for(var a=0,F=X.interruptions.length-1;F>=0;F--){var V=X.interruptions[F];X.S.add(V-a);a=V}a=0;for(F=X.U.length-1;F>=0;F--){V=X.U[F];var c=V.stamp/36E5;X.S.add(c-a);a=c;X.S.add(V.net/1E3);X.S.add(V.max)}X=X.S.Ij();D.S={ttr:M,ttm:Q,d:h,st:H,bw:t,abw:q,v50:w,v92:T,v96:L,v98:K,"int":X}}X=this.loader;X.J$&&X.J$.D&&!X.J$.Jh()&&(D.JF=uX(X.videoTrack),D.G=uX(X.audioTrack),X.policy.Y&&(M=zM(X.videoTrack),Q=zM(X.audioTrack),h=On(X.J$.G.K6(),"_",5),H=On(X.J$.S.K6(),"_",5),Object.assign(D.S,{lvq:M,laq:Q,lvb:h, lab:H})));D.bandwidthEstimate=Yj(X.eH);var S;(S=X.audioTrack.K)==null||S.flush();var b;(b=X.videoTrack.K)==null||b.flush()}else this.mediaElement&&(D.JF=this.mediaElement.Wv());D.sJ=this.sJ;D.FL=this.FL;D.Y=this.isAtLiveHead()&&this.isPlaying()?ZKs(this):NaN;S=this.BC;S=S.S?yX(S.S):0;D.U=S;return D}; g.B.n4=function(D,X){this.FL+=D;this.sJ+=X}; g.B.xP=function(){return this.mediaElement?g.Rp(this.videoData)?1:Ip(this.videoData)?this.isAtLiveHead()||this.Aw()?1:this.BC.xP():this.mediaElement.xP():0}; g.B.MN=function(){var D=this.O6,X=ot(D,"bandwidth"),M=ot(D,"bufferhealth"),Q=ot(D,"livelatency"),h=ot(D,"networkactivity"),H=ip(D,"bandwidth"),t=ip(D,"bufferhealth"),q=ip(D,"livelatency");D=ip(D,"networkactivity");var w=this.SB(),T=w.droppedVideoFrames;w=w.totalVideoFrames;var L=this.getCurrentTime();if(this.Em){var K="IT/"+(this.Em.S.getInfo()+"/"+RB(this.YQ()));K+="/"+this.Em.getInfo()}else K="";var a=this.isGapless(),F=this.VV(),V=this.ED(),c=g.k8(this),S=this.getPlayerState(),b=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var n=0;var R="";if(this.Bb){if(this.Bb.Nm){R="D,";break a}n=this.Bb.FM;R=this.Bb.dj.substring(0,4)}n>0?(n="AD"+n+", ",R&&(n+=R+", "),R=n):R=""}return{Bw:H,d1:t,currentTime:L,LU:K,droppedVideoFrames:T,isGapless:a,VV:F,ju:V,Xy:X,On:M,JZ:Q,d0:h,N3:q,uo:D,Q8:c,playerState:S,cn:b,sK:R,totalVideoFrames:w}}; g.B.ip=function(D){var X={};if(D===void 0?0:D){Object.assign(X,this.mZ.ip());this.mediaElement&&(Object.assign(X,this.mediaElement.ip()),D=this.SB(),X.dvf=D.droppedVideoFrames,X.tvf=D.totalVideoFrames);this.loader&&Object.assign(X,this.loader.ip());this.Em&&(X.drm=JSON.stringify(this.Em.ip()));X.state=this.playerState.state.toString(16);g.x(this.playerState,128)&&(X.debug_error=JSON.stringify(this.playerState.QV));this.FO()&&(X.prerolls=this.ZU.join(","));this.videoData.bT&&(X.ismb=this.videoData.bT); this.videoData.latencyClass!=="UNKNOWN"&&(X.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(X.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)X.is_mosaic=1;this.videoData.cotn&&(X.is_offline=1,X.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(X.playerResponseCpn=this.videoData.playerResponseCpn);this.dI.isOrchestrationLeader()&&(X.leader=1);this.videoData.isLivePlayback&& (this.videoData.S&&CF(this.videoData.S)&&(X.segduration=CF(this.videoData.S)),D=this.BC,X.lat=D.K?fW9(D.K.U):0,X.liveutcstart=this.videoData.liveUtcStartSeconds);X.relative_loudness=this.videoData.Ti.toFixed(3);if(D=g.k8(this))X.optimal_format=D.video.qualityLabel;X.user_qual=Vf();X.release_version=N[30]}X.debug_videoId=this.videoData.videoId;return X}; g.B.addCueRange=function(D){this.k8([D])}; g.B.removeCueRange=function(D){this.KF.EA([D])}; g.B.WS=function(){var D=this.KF;if(D.zs.W().T("html5_sort_cueranges_on_update")&&!(D.uE().length<=0||D.H2())){var X=D.S;X.array.sort(X.S)}D.sync()}; g.B.eO=function(D,X){return this.KF.eO(D,X)}; g.B.k8=function(D,X){this.KF.lH(D,X)}; g.B.Xq=function(D){this.KF.EA(D)}; g.B.uE=function(){return this.KF.uE()||[]}; g.B.U3=function(){return this.l4}; g.B.CF=function(){return this.visibility.CF()}; g.B.Lj=function(){this.mediaElement&&this.mediaElement.Lj()}; g.B.vCz=function(){Wu(this)}; g.B.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.B.pN=function(){g.RH(this.MF)}; g.B.mKI=function(){this.Ja();this.publish("onLoadProgress",this.xP())}; g.B.xV=function(D){var X=D.target.Aq();if(this.mediaElement&&this.mediaElement.Aq()&&this.mediaElement.Aq()===X){jbW(this,D.type);switch(D.type){case "error":var M=this.mediaElement.HQ()||"",Q=this.mediaElement.L2();if(M==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.SH("capchg",{msg:Q}),this.Hx(!0)):J5(this);return}if(this.mediaElement.hasError()&&jSs(this.ZT,M,{msg:Q,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.kS()){this.wY();zl(this,"unplayable"); return}break;case "durationchange":M=this.mediaElement.getDuration();isFinite(M)&&(!this.J$||M>0)&&M!==1&&this.bX(M);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());M=this.KF;M.started=!0;M.sync();this.mZ.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.Q2().S.xl(Cum)&&A5(this,!1);Xpn(this);this.publish("onLoadedMetadata");lGm(this);M=this.hR();this.videoData.bN&&(this.videoData.bN=M);break;case "loadstart":lGm(this); break;case "progress":case "suspend":this.fR.Rd();break;case "seeked":(M=this.loader)!=null&&M.policy.G&&M.Bk&&(M.SH("sdai",{skipAdSked:"1"}),M.Bk=!1);break;case "playing":this.Q2().S.xl(Cum)&&A5(this,!1);this.r3.UJ("plev");this.Ff&&!gt(this)&&(this.Ff=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Aa:"videoplayer_onPlaying"}));break;case "timeupdate":this.Q2().S.xl(Cum)&&A5(this,!1);M=this.mediaElement&&!this.mediaElement.getCurrentTime();Q=this.mediaElement&&this.mediaElement.r$()===0;if(M&&(!this.tK|| Q))return;this.tK=this.tK||!!this.mediaElement.getCurrentTime();Yvo(this);this.Ja();if(!this.mediaElement||this.mediaElement.Aq()!==X)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.Me().length>0&&this.mediaElement.HP().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.r$()>2||!this.mediaElement.isSeeking()&& AC(this.mediaElement.HP(),this.mediaElement.getCurrentTime()))&&(M=this.mediaElement.ip(),M.bh=this.mediaElement.Wv().toFixed(3),this.SH("uwe",M));break;case "resize":Xpn(this);this.videoData.G&&this.videoData.G.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.QR&&g.x(this.playerState,8)&&!g.x(this.playerState,1024)&&this.getCurrentTime()===0&&g.ah){zl(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Aq()=== X){u6H(this.BC,D);this.publish("videoelementevent",D);X=this.playerState;Q=this.Zr;var h=this.mediaElement;M=this.videoData.clientPlaybackNonce;if(!g.x(X,128)){var H=X.state;h=h?h:D.target;var t=h.getCurrentTime();if(!g.x(X,64)||D.type!=="ended"&&D.type!=="pause"){var q=h.getDuration();q=h.isEnded()||t>1&&Math.abs(t-q)<1.1;var w=D.type==="pause"&&h.isEnded();t=D.type==="ended"||D.type==="waiting"||D.type==="timeupdate"&&!g.x(X,4)&&!cu(Q,t);if(w||q&&t)h.gz()>0&&h.Aq()&&(H=14);else switch(D.type){case "error":h.HQ()&& (H|=128);break;case "pause":g.x(X,256)?(H^=256)||(H=64):g.x(X,32)||g.x(X,2)||g.x(X,4)||(H=4,g.x(X,1)&&g.x(X,8)&&(H|=1));break;case "playing":t=H;H=(H|8)&-1093;t&4?(H|=1,sf(Q,h,!0)):cu(Q,h.getCurrentTime())&&(H&=-2);g.x(X,1)&&sf(Q,h)&&(H|=1);break;case "seeking":H|=16;g.x(X,8)&&(H|=1);H&=-3;break;case "seeked":H&=-17;sf(Q,h,!0);break;case "waiting":g.x(X,2)||(H|=1);sf(Q,h);break;case "timeupdate":t=g.x(X,16),q=g.x(X,4),(g.x(X,8)||t)&&!q&&cu(Q,h.getCurrentTime())&&(H=8),sf(Q,h)&&(H|=1)}}Q=H;H=null; Q&128&&(H=D.target,h=H.HQ(),t=1,h?(h==="capability.changed"&&(t=2),q="GENERIC_WITHOUT_LINK",w=H.ip(),w.mediaElem="1",w.trg="melem",/AUDIO_RENDERER/.test(H.L2())&&(q="HTML5_AUDIO_RENDERER_ERROR"),H={errorCode:h,errorMessage:g.gZ[q]||"",iY:q,Eo:Ga(w),oy:t,cpn:X.QV?X.QV.cpn:""}):H=null,H&&(H.cpn=M));X=KZ(X,Q,H)}!g.x(this.playerState,1)&&g.x(X,1)&&uAo(this,"evt"+D.type);this.aN(X)}}}; g.B.mj$=function(D){D=D.S.availability==="available";D!==this.l4&&(this.l4=D,this.publish("airplayavailabilitychange"))}; g.B.vlC=function(){var D=(0,g.fi)(),X=this.mediaElement.CF();this.SH("airplay",{ia:X});!X&&!isNaN(this.RS)&&D-this.RS<2E3||(this.RS=D,X!==this.CF()&&(D=this.visibility,D.S!==X&&(D.S=X,D.a6()),this.SH("airplay",{rbld:X}),this.Iq()),this.publish("airplayactivechange"))}; g.B.MP=function(D){if(this.loader){var X=this.loader,M=X.Y,Q=X.getCurrentTime(),h=Date.now()-M.K;M.K=NaN;M.SH("sdai",{adfetchdone:D,d:h});D&&!isNaN(M.X)&&M.G!==3&&jC(M.loader,Q,M.X,M.D);M.policy.G?M.Y=NaN:M.U=NaN;uy(M,4,M.G===3?"adfps":"adf");Nz(X)}}; g.B.sY=function(){g.ZS(this.Ml);this.v4.stop();this.videoData.K=!0;this.j.CQ=!0;this.j.R2=0;var D=this.ZT;if(D.videoData.G){var X=D.UR.D,M=D.videoData.G.ij;X.U.has(M)&&(X.U.delete(M),X.G=!0)}D.S.stop();this.lc();g.x(this.playerState,8)&&this.aN(Fw(this.playerState,65));this.wx=!1;this.mZ.qe();g.G1(this.cJ);this.publish("playbackstarted");(D=g.mn("yt.scheduler.instance.clearPriorityThreshold"))?D():Db(0)}; g.B.lc=function(){var D=this.dI.z6(),X={},M={};!Pz("pbs",this.r3.timerName)&&sg.measure&&sg.getEntriesByName&&(sg.getEntriesByName("mark_nr")[0]?rg2("mark_nr"):rg2());D.videoId&&(X.videoId=D.videoId);D.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(X.clientPlaybackNonce=D.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(M.isPausedOnLoad=!0);M.itag=D.G?Number(D.G.itag):-1;D.Ky&&(M.preloadType=String(this.Li?2:1));X.liveStreamMode=LWB[Py(D)];X.playerInfo=M;this.r3.infoGel(X); if(this.loader){D=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(D.Y&&(X=window.performance.getEntriesByName(D.Y),X.length&&(X=X[0],D.tick("vri",X.fetchStart),D.tick("vdns",X.domainLookupEnd),D.tick("vreq",X.requestStart),D.tick("vrc",X.responseEnd))),D.G&&(X=window.performance.getEntriesByName(D.G),X.length&&(X=X[0],D.tick("ari",X.fetchStart),D.tick("adns",X.domainLookupEnd),D.tick("areq",X.requestStart),D.tick("arc",X.responseEnd))));D=D.ticks;for(var Q in D)D.hasOwnProperty(Q)&& this.r3.tick(Q,D[Q])}}; g.B.Ja=function(D){var X=this;D=D===void 0?!1:D;if(this.mediaElement&&this.videoData){p4d(this.BC,this.isPlaying());var M=this.getCurrentTime();if(this.loader&&(g.x(this.playerState,4)&&g.Rp(this.videoData)||g.x(this.playerState,32)&&Er(this.videoData)||AbH(this.loader,M),this.T("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-lAo(this.loader))>10)){var Q;this.SH("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(Q=this.loader)==null?void 0:lAo(Q)},!0)}M>5&&(this.BC.Y= M);(Q=g.jJ())?g.Ox.zN(this.sF):g.BX(this.sF);var h=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!h||XX(this.videoData))&&!g.x(this.playerState,128)){var H=function(){if(X.mediaElement&&!g.x(X.playerState,128)){X.j.t5()&&jbW(X,"pfx");var t=X.getCurrentTime();X.T("html5_buffer_underrun_transition_fix")&&(t-=X.w3());var q=X.mediaElement.Wv(),w=g.x(X.playerState,8),T=cu(X.Zr,t),L=FMm(X.Zr,t,(0,g.fi)(),q);w&&T?X.aN(Fw(X.playerState,1)):w&&L?(w=X.getDuration(),T=FY(X.videoData),w&&Math.abs(w- t)<1.1?(X.SH("setended",{ct:t,bh:q,dur:w,live:T}),X.mediaElement.ke()?X.seekTo(0,{Aa:"videoplayer_loop",seekSource:37}):X.vH()):(X.playerState.isBuffering()||uAo(X,"progress_fix"),X.aN(aE(X.playerState,1)))):(w&&!T&&!L&&t>0&&(w=(Date.now()-X.i_)/1E3,T=X.getDuration(),t>T-1&&X.SH("misspg",{t:t.toFixed(2),d:T.toFixed(2),r:w.toFixed(2),bh:q.toFixed(2)})),X.playerState.isPaused()&&X.playerState.isBuffering()&&X.mediaElement.Wv()>5&&X.aN(Fw(X.playerState,1)));X.Ja()}}; this.mediaElement.Me().length===0?this.sF=Q?g.Ox.cI(H,100):g.Vj(H,100):this.sF=Q?g.Ox.cI(H,500):g.Vj(H,500)}this.videoData.Mj=M;!D&&this.isPlaying()&&xko(this);BNp(this.V5,this.eV,this.pK(),this.isBackground())&&pv(this);this.publish("progresssync",D);h&&XX(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.B.wF=function(){this.ZS("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.B.ED=function(){return this.mZ.ED()}; g.B.D5=function(){return this.loader?this.loader.D5():lP(this.Hb,!0)}; g.B.aN=function(D){if(!g.$K(this.playerState,D)){var X=new g.tq(D,this.playerState);this.playerState=D;Dz_(this);var M=!this.yk.length;this.yk.push(X);var Q=this.mediaElement&&this.mediaElement.isSeeking();g.qZ(X,1)&&this.loader&&nas(this.loader);Q=X.oldState.state===8&&!Q;if(g.qZ(X,1)&&Q&&g.x(this.playerState,8)&&!g.x(this.playerState,64)&&this.loader){Q=this.loader;Q.Ne=!0;if(Q.policy.qj&&Q.J$){var h,H,t,q;Q.SH("lr_rb",{c:Q.getCurrentTime(),s:Q.isSeeking(),ab:On(Q.J$.S.K6()),ala:(h=A_(Q.audioTrack))== null?void 0:h.HC(),alr:(H=Q.audioTrack.S)==null?void 0:H.HC(),vb:On(Q.J$.G.K6()),vla:(t=A_(Q.videoTrack))==null?void 0:t.HC(),vlr:(q=Q.videoTrack.S)==null?void 0:q.HC()})}Q.oX!==0&&Q.SH("sps_rebuffer",{c:Q.getCurrentTime()});this.mediaElement&&this.mediaElement.Wv()>=5&&(h=this.V5,H=this.eV,!H.videoData.G||h.T("html5_disable_performance_downgrade")?h=!1:(Date.now()-h.J>6E4&&(h.G=0),h.G++,h.J=Date.now(),h.G!==4?h=!1:(VCW(h,H.videoData.G),h=!0)),h&&pv(this))}(h=g.lx(this.j.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.x(D,1)&&(g.x(D,8)||g.x(D,16))?this.gQ.start(h):this.gQ.stop();(NZ(X,8)<0||g.qZ(X,1024))&&this.v4.stop();!g.qZ(X,8)||this.videoData.K||g.x(X.state,1024)||this.v4.start();g.x(X.state,8)&&NZ(X,16)<0&&!g.x(X.state,32)&&!g.x(X.state,2)&&this.playVideo();g.x(X.state,2)&&Ip(this.videoData)&&(this.bX(this.getCurrentTime()),this.Ja(!0));g.qZ(X,2)&&(this.n3(!0),this.j.t5()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&Er(this.videoData)&&this.videoData.S&&(D={minst:""+ this.videoData.S.Xn,cminst:""+(this.videoData.S.WC()+this.w3()),maxst:""+this.videoData.S.jm,hts:""+this.videoData.S.a5,cmaxst:""+(this.videoData.S.qx()+this.w3())},this.SH("sabrSeekableBoundaries",D)));g.qZ(X,128)&&this.wY();this.videoData.S&&this.videoData.isLivePlayback&&!this.z4&&(NZ(X,8)<0?(D=this.videoData.S,D.D&&D.D.stop()):g.qZ(X,8)&&this.videoData.S.resume());D=this.BC;g.G1(D.f$.D);if(D.mediaElement)if(X.oldState.state===8&&BQ(X.state)&&X.state.isBuffering()){var w=D.mediaElement.getCurrentTime(); h=D.mediaElement.HP();H=D.T("manifestless_post_live_ufph")||D.T("manifestless_post_live")?pE(h,Math.max(w-3.5,0)):pE(h,w-3.5);H>=0&&w>h.end(H)-1.1&&H+10?(lp(D.zs,D.getCurrentTime()+D.videoData.limitedPlaybackDurationInSeconds), D.p$=!0):D.videoData.isLivePlayback&&D.videoData.endSeconds>0&&(lp(D.zs,D.getCurrentTime()+D.videoData.endSeconds),D.p$=!0));w=this.mZ;if(g.qZ(X,1024)||g.qZ(X,512)||g.qZ(X,4))w.G&&(D=w.G,D.G>=0||(D.S=-1,D.delay.stop())),w.qoe&&(D=w.qoe,D.J||(D.Y=-1));if(w.provider.videoData.enableServerStitchedDai&&w.VN){var T;(T=w.Y.get(w.VN))==null||k4W(T,X)}else w.S&&k4W(w.S,X);w.qoe&&(T=w.qoe,D=X.state,h=g.y6(T.provider),H=T.getPlayerState(D),t=D.seekSource||void 0,H!==T.mj&&(T.a5||h=10&&T.playTimeSecs<=180&&(T.S.set("qoealert",["1"]),T.R2=!0)),H!=="B"||T.mj!=="PL"&&T.mj!=="PB"||(T.isBuffering=!0),T.G=h),T.mj==="PL"&&(H==="B"||H==="S")||T.provider.j.t5()?mY(T,h):(T.h5||H!=="PL"||(T.h5=!0,Pp(T,h,T.provider.zs.zW())),E_(T,h)),H==="PL"&&g.G1(T.ZJ),q=[H],H==="S"&&t&&q.push("ss."+t),g.cp(T,h,"vps",q),T.mj=H,T.f$=h,T.G=h,T.U=!0),H=D.QV,g.x(D,128)&&H&&(H.Eo=H.Eo||"",FUs(T,h,H.errorCode, H.oy,H.Eo)),(g.x(D,2)||g.x(D,128))&&T.reportStats(h),D.isPlaying()&&!T.J&&(T.Y>=0&&T.S.set("user_intent",[T.Y.toString()]),T.J=!0),nM(T));w.G&&(T=w.G,EM9(T),T.playerState=X.state,T.G>=0&&g.qZ(X,16)&&T.seekCount++,X.state.isError()&&T.send());if(M&&!this.H2())try{for(var L=g.e(this.yk),K=L.next();!K.done;K=L.next()){var a=K.value,F=this.KF;if(F.started&&(F.sync(),g.x(a.oldState,16))){X=F;var V=sY2(X.S,Math.max(X.Y-2E3,0));!isNaN(V)&&V<0x7ffffffffffff&&X.U.start()}this.publish("statechange",a)}}finally{this.yk.length= 0}}}; g.B.yc=function(){this.r3.tick("qoes")}; g.B.Gf=function(){this.BC.Gf()}; g.B.jE=function(D,X,M,Q){a:{var h=this.ZT;Q=Q===void 0?"LICENSE":Q;M=M.substring(0,256);var H=kJ(X);D==="drm.keyerror"&&this.Em&&this.Em.G.keys.length>1&&h.U<96&&(D="drm.sessionlimitexhausted",H=!1);var t=h.UR.experiments.Z4("html5_retry_on_drm_unavailable"),q=h.UR.experiments.Z4("html5_retry_on_drm_key_error"),w=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(t&&D==="drm.unavailable"||q&&D==="drm.keyerror"&&!M.match(w))h.Rz("qoe.restart",{retryOnDrmError:1,e:D,detail:M}),h.zs.Hx(!0);else{if(H)if(h.videoData.G&& h.videoData.G.video.isHdr())HLm(h,D);else{if(h.zs.ZS(D,X,Q,M),z_o(h,{detail:M}))break a}else h.Rz(D,{detail:M});D==="drm.sessionlimitexhausted"&&(h.SH("retrydrm",{sessionLimitExhausted:1}),h.U++,kxn(h.zs))}}}; g.B.CMj=function(){var D=this,X=g.lx(this.j.experiments,"html5_license_constraint_delay"),M=Qd();X&&M?(X=new g.W5(function(){D.MQ();Wu(D)},X),g.p(this,X),X.start()):(this.MQ(),Wu(this))}; g.B.Ga=function(D){this.publish("heartbeatparams",D)}; g.B.pz=function(D){this.SH("keystatuses",Z5i(D));var X="auto",M=!1;this.videoData.G&&(X=this.videoData.G.video.quality,M=this.videoData.G.video.isHdr());a:{switch(X){case "highres":case "hd2880":X="UHD2";break;case "hd2160":case "hd1440":X="UHD1";break;case "hd1080":case "hd720":X="HD";break;case "large":case "medium":case "small":case "light":case "tiny":X="SD";break;default:X="";break a}M&&(X+="HDR")}X=un(D)?jH(D,X):D.U.includes(X);if(this.T("html5_enable_vp9_fairplay")){if(M)if(D.J){var Q;if((Q= this.Em)==null?0:MI(Q.S))if((M=this.Em)==null)M=0;else{for(var h=Q=void 0,H=g.e(M.G.values()),t=H.next();!t.done;t=H.next())t=t.value,Q||(Q=c1i(t,"SD")),h||(h=c1i(t,"AUDIO"));M.Lm({sd:Q,audio:h});M=Q==="output-restricted"||h==="output-restricted"}else M=!X;if(M){this.SH("drm",{dshdr:1});HLm(this.ZT);return}}else{this.videoData.cZ||(this.videoData.cZ=!0,this.SH("drm",{dphdr:1}),this.Hx(!0));return}var q;if((q=this.Em)==null?0:MI(q.S))return}else if(q=D.J&&X,M&&!q){HLm(this.ZT);return}X||jH(D,"AUDIO")&& jH(D,"SD")||(D=Z5i(D),this.wd?(this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.ZS("drm.keyerror",2,void 0,"info."+D)):(this.wd=!0,this.Rz(new g.za("qoe.restart",Object.assign({},{retrydrm:1},D))),pv(this),kxn(this)))}; g.B.Ja$=function(){if(!this.videoData.K&&this.mediaElement&&!this.isBackground()){var D="0";this.mediaElement.r$()>0&&this.mediaElement.Wv()>=5&&this.videoData.Y&&this.videoData.Y.S&&(this.aN(aE(this.playerState,1)),uAo(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),D="1");Dz_(this);var X=this.videoData.Y;D={restartmsg:D,mfmt:!Np(this.videoData),mdrm:!(!(X&&X.videoInfos&&X.videoInfos.length&&X.videoInfos[0].DS)||this.Em),mfmtinfo:!this.videoData.G,prerolls:this.FO()?this.ZU.join(","): "0"};if(this.Em){X=this.Em;if(X.G.size<=0){var M="ns;";X.eH||(M+="nr;");X=M+="ql."+X.Y.length}else X=Z5i(X.G.values().next().value),X=Ga(X);D.drmp=X}var Q;Object.assign(D,((Q=this.loader)==null?void 0:Q.ip())||{});var h;Object.assign(D,((h=this.mediaElement)==null?void 0:h.ip())||{});this.mZ.Rz("qoe.start15s",Ga(D));this.publish("loadsofttimeout")}}; g.B.bX=function(D){this.videoData.lengthSeconds!==D&&(this.videoData.lengthSeconds=D,Wu(this))}; g.B.n3=function(D,X){var M=this;D=D===void 0?!1:D;if(!this.v_)if(Pz("att_s","player_att")||nX("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var h,H,t,q,w;return g.r(function(T){switch(T.S){case 1:if(!(h=D)){T.D4(2);break}return g.I(T,g.agW(),3);case 3:h=!T.G;case 2:if(h)return T.return();g.N_(T,4);H=Hzd(M.mZ);if(!H)throw Error();t={};return g.I(T,g.Kld((t.cpn=M.videoData.clientPlaybackNonce,t.encryptedVideoId=M.videoData.videoId||"",t),g.lx(M.j.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:q=T.G;if(M.v_)throw Error();if(!q.challenge)throw w=q.error?"; error: "+q.error:"",g.P3(Error("Not sending atr ping; missing challenge string"+w)),Error();M.v_=!0;var L=[q.challenge];if(q.error){var K=ukn();K=A2R(K).get(q.error)||0;L.push("r1c="+K)}else q.webResponse&&L.push("r1a="+q.webResponse);var a;((a=q.adblockReporting)==null?void 0:a.reportingStatus)!==void 0&&L.push("r6a="+q.adblockReporting.reportingStatus);var F;((F=q.adblockReporting)==null?void 0:F.broadSpectrumDetectionResult)!== void 0&&L.push("r6b="+q.adblockReporting.broadSpectrumDetectionResult);H(L.join("&"));nX("att_f",void 0,"player_att");g.Ty(T,0);break;case 4:g.LG(T),nX("att_e",void 0,"player_att"),g.HZ(T)}})})().then(function(){X==null||X()}); else{var Q=new g.Dn9(this.videoData);if("c1a"in Q.A_&&!g.s7.isInitialized()){nX("att_wb",void 0,"player_att");this.dQ===2&&Math.random()<.01&&g.P3(Error("Botguard not available after 2 attempts"));if(D)return;if(this.dQ<5){g.G1(this.A3);this.dQ++;return}}(Q=g.X92(Q))?(nX("att_f",void 0,"player_att"),hxm(this.mZ,Q),this.v_=!0):nX("att_e",void 0,"player_att")}}; g.B.uB=function(D){D=D===void 0?!1:D;return FY(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Aw()||g.Rp(this.videoData))?this.getCurrentTime():this.qx(D)}; g.B.S9=function(){return this.WC()}; g.B.qx=function(D){return this.BC.qx(D===void 0?!1:D)}; g.B.WC=function(){return this.BC.WC()}; g.B.w3=function(){return this.BC?this.BC.w3():0}; g.B.getStreamTimeOffset=function(){return this.BC?this.BC.getStreamTimeOffset():0}; g.B.yb=function(){return this.getStreamTimeOffset()===0?this.w3():this.getStreamTimeOffset()}; g.B.setPlaybackRate=function(D){var X;this.playbackRate!==D&&w8i(this.V5,(X=this.videoData.Y)==null?void 0:X.videoInfos)&&(this.playbackRate=D,pv(this));this.playbackRate=D;this.mediaElement&&this.mediaElement.setPlaybackRate(D)}; g.B.getPlaybackRate=function(){return this.playbackRate}; g.B.getPlaybackQuality=function(){var D="unknown";if(this.videoData.G&&(D=this.videoData.G.video.quality,D==="auto"&&this.mediaElement)){var X=this.Bu();X&&X.videoHeight>0&&(D=$P(X.videoWidth,X.videoHeight))}return D}; g.B.isHdr=function(){return!!(this.videoData.G&&this.videoData.G.video&&this.videoData.G.video.isHdr())}; g.B.sendVideoStatsEngageEvent=function(D,X){var M=this.mZ;M.S?(M=FJ(M.S,"engage"),M.a5=D,M.send(X)):X&&X()}; g.B.eC=function(D){return this.mZ.eC(D)}; g.B.isAtLiveHead=function(D,X){X=X===void 0?!1:X;return FY(this.videoData)&&(this.c$||X)?this.BC.isAtLiveHead(D):!1}; g.B.ox=function(){var D=this.qx(),X=this.getCurrentTime(),M;(M=!FY(this.videoData))||(M=this.BC,M=!(M.S&&M.S.Y));return M||this.Aw()||isNaN(D)||isNaN(X)?0:Math.max(0,D-X)}; g.B.jc=function(D){(this.c$=D)||this.v4.stop();if(this.videoData.S)if(D)this.videoData.S.resume();else{var X=this.videoData.S;X.D&&X.D.stop()}this.loader&&(X=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.bA()&&this.videoData.isLivePlayback,D&&!X?this.loader.resume():jA(this,!0));g.x(this.playerState,2)||D?g.x(this.playerState,512)&&D&&this.aN(Fw(this.playerState,512)):this.aN(aE(this.playerState,512));X=this.mZ;X.qoe&&(X=X.qoe,g.cp(X,g.y6(X.provider),"stream",[D?"A":"I"]))}; g.B.F9=function(D){this.mZ.Rz("player.exception",Ga({n:D.name,m:D.message}))}; g.B.Fg=rR(18);g.B.R4=rR(47);g.B.mL=function(D){this.mZ.mL(D)}; g.B.BA=function(D){this.mZ.BA(D)}; g.B.OF=function(D){this.mZ.OF(D)}; g.B.OU=rR(24);g.B.CY=rR(30);g.B.hp=function(D){this.mZ.hp(D)}; g.B.JV=function(D,X,M,Q){this.mZ.JV(D,X,M,Q)}; g.B.DN=function(){this.SH("hidden",{},!0)}; g.B.SB=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.B.B4=function(){return this.loader?this.loader.B4():!0}; g.B.setLoop=function(D){this.loop=D;this.mediaElement&&!g.Nn(this.j)&&this.mediaElement.setLoop(D)}; g.B.ke=function(){return this.mediaElement&&!g.Nn(this.j)?this.mediaElement.ke():this.loop}; g.B.dg=function(D){this.SH("timestamp",{o:D.toString()});this.BC.dg(D)}; g.B.TX=function(D){this.r3.tick(D)}; g.B.k5=function(D){return this.r3.k5(D)}; g.B.UJ=function(D){this.r3.UJ(D)}; g.B.SH=function(D,X,M){this.mZ.SH(D,X,M===void 0?!1:M)}; g.B.HK=function(D,X,M){this.mZ.SH(D,X,M===void 0?!1:M)}; g.B.Rz=function(D){this.mZ.Rz(D.errorCode,Ga(D.details));D=D.errorCode;if(this.videoData.isLivePlayback&&(D==="qoe.longrebuffer"||D==="qoe.slowseek")||D==="qoe.restart"){D=this.loader?xIs(this.loader.videoTrack):{};var X,M;this.SH("lasoe",Object.assign(this.loader?xIs(this.loader.audioTrack):{},(X=this.J$)==null?void 0:(M=X.S)==null?void 0:M.Ld()));var Q,h;this.SH("lvsoe",Object.assign(D,(Q=this.J$)==null?void 0:(h=Q.G)==null?void 0:h.Ld()))}if(this.T("html5_log_centralized_player_time")){var H;this.SH("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(H=this.loader)==null?void 0:lAo(H)})}}; g.B.CH=function(D,X,M){this.mZ.CH(D,X,M)}; g.B.U8=function(D,X,M,Q,h,H,t,q){var w;if((w=this.videoData.S)!=null&&w.isLive){var T=X.playerType===2?X:D,L=D.videoData.videoId,K=X.videoData.videoId;if(L&&K){w=this.mZ;if(q){if(w.qoe){var a=w.qoe;T=q.MAI;a.reportStats();var F=a.provider.videoData.clientPlaybackNonce;L=a.provider.videoData.videoId||"";var V;K=((V=a.MZ)==null?void 0:V.join("."))||F;var c;V=((c=a.y3)==null?void 0:c.join("."))||L;g5(a,H?4:h?2:0,T.jN.join(".")||F,T.jo.join(".")||L,Q);a.reportStats();a.MZ=T.jN;a.y3=T.jo;a.y$=T.adFormats; a.Va=T.serializedQoeContextData;g5(a,H?5:h?3:1,K,V,M);a.reportStats()}Q=q.dXI.serializedPlaybackPingContextLoggingData;(M=w.S)!=null&&(h=M.S.D,H=M.provider.j.Q2().S.xl(o3p)||4E3,h>H&&sj(M));var S;(S=w.S)!=null&&wt(S.S);(M=w.S)!=null&&(M.S.serializedPlaybackPingContextLoggingData=Q);var b;(b=w.S)!=null&&wt(b.S);var n;(n=w.S)==null||sj(n);(w=w.S)!=null&&(w.J=0)}else{if(w.qoe){b=w.qoe;n=D.cpn;S=X.cpn;q=T.videoData.zm;V=b.provider.videoData.clientPlaybackNonce;var R=b.provider.videoData.videoId;c=S!== V&&K!==R;V=n!==V&&L!==R;b.reportStats();b.adCpn&&b.adCpn!==n||(b.adCpn=V?n:"",b.TT=V?L:"",b.adFormat=V?q:void 0,g5(b,H?4:h?2:0,S,K,Q),b.reportStats(),b.adCpn=c?S:"",b.TT=c?K:"",b.adFormat=c?q:void 0,g5(b,H?5:h?3:1,n,L,M),b.reportStats())}M=D.cpn;w.Y.has(M)?(h=w.Y.get(M),VX(h,!0).send(),at(h),M!==w.provider.videoData.clientPlaybackNonce&&(zXn(h),(F=w.S)==null||sj(F),w.Y.delete(M))):(w.VN=w.provider.videoData.clientPlaybackNonce,w.VN&&w.S&&(w.Y.set(w.VN,w.S),VX(w.S).send(),at(w.S)));M=X.cpn;h=T.videoData; Q-=this.yb();w.Y.has(M)?(h=w.Y.get(M),Q=h.Y&&isNaN(h.D)?Kv(h):NaN,h=JYp(h,!1),isNaN(Q)||(h.J=Q),h.send()):(Q=tD9(w,w.provider,h,Q),w.Y.set(M,Q),k4W(Q,new g.tq(aE(new g.LZ,8),new g.LZ)),Q.qe(),(a=w.S)==null||at(a));w.VN=M}if(this.T("html5_unify_csi_server_stitched_transition_logging")){if(w=this.r3,M=D.cpn,D=X.cpn,h=this.videoData.clientPlaybackNonce,Q=X.videoData,X=(0,g.fi)(),M=(M===h?"video":"ad")+"_to_"+(D===h?"video":"ad"),M!=="video_to_ad"){h=M==="ad_to_video"?void 0:Q;H=h==null?void 0:h.yh;a= {};if(Q==null?0:Q.X)a.cttAuthInfo={token:Q.X,videoId:Q.videoId};t&&(a.startTime=t);yO(M,a);var v,l,A;t={targetVideoId:(v=Q==null?void 0:Q.videoId)!=null?v:"empty_video",targetCpn:D,adVideoId:(l=h==null?void 0:h.videoId)!=null?l:"empty_video",adClientPlaybackNonce:(A=H==null?void 0:H.cpn)!=null?A:h==null?void 0:h.clientPlaybackNonce};H&&(t.adBreakType=H.adBreakType,t.adType=H.adType);g.Eg(t,M);HI(w,X,M)}}else v=this.r3,w=this.videoData.clientPlaybackNonce,l=(0,g.fi)(),A=X.videoData,D=(D.cpn===w?"video": "ad")+"_to_"+(X.cpn===w?"video":"ad"),w={},A.X&&(w.cttAuthInfo={token:A.X,videoId:A.videoId}),t&&(w.startTime=t),yO(D,w),g.Eg({targetVideoId:A.videoId,targetCpn:X.cpn,isSsdai:!0},D),t||HI(v,l,D)}}else g.aK(this.logger,360717806,"SSTEvent for nonSS")}; g.B.xA=function(){var D=this.dI,X=D.jx;D.jx=[];return X}; g.B.Ic=function(D){this.videoData.yQ=!0;this.Rz(new g.za("sabr.fallback",D));this.Hx(!0)}; g.B.Xj=function(D,X){this.videoData.iG=!0;if(X===void 0||X)this.Rz(new g.za("qoe.restart",D)),this.Hx(!0)}; g.B.o$=function(D){this.SH("sdai",{aftimeout:D});this.Rz(new g.za("ad.fetchtimeout",{timeout:D}))}; g.B.p7=function(D,X){this.SH("timelineerror",D);D=new g.za("dai.timelineerror",D);X?this.ZS("dai.timelineerror",1,"RETRYABLE_ERROR",Ga(D.details)):this.Rz(D)}; g.B.pk=function(){return g.y6(this.mZ.provider)}; g.B.getPlayerSize=function(){return this.xx.getPlayerSize()}; g.B.Fh=function(){return this.xx.Fh()}; g.B.g6=function(){return this.r3}; g.B.Yb=function(){return this.dI.Yb()}; g.B.getVolume=function(){return this.dI.getVolume()}; g.B.cX=function(){return this.dI.cX()}; g.B.isMuted=function(){return this.dI.isMuted()}; g.B.nB=function(){return this.dI.nB()}; g.B.DX=function(){this.z4=!0}; g.B.T=function(D){return this.j.T(D)}; g.B.Q2=function(){return this.j.Q2()}; g.B.GU=function(D,X,M,Q,h){this.SH("xvt",{m:D,g:X?1:0,tt:M?1:0,np:Q?1:0,c:h})}; g.B.f3=function(){var D;(D=this.loader)==null||D.resume()}; g.B.bA=function(){return g.jb(this.ZU,"ad")}; g.B.xE=function(){var D=this.getCurrentTime(),X=D-this.w3();var M=this.mediaElement?lw(this.mediaElement.HP()):0;M=Math.floor(Math.max(M-X,0))+100;var Q;return((Q=this.loader)==null?0:Q.xE(X,M))?(this.SH("sdai",{skipad:1,ct:X.toFixed(3),adj:M.toFixed(3)}),Er(this.videoData)&&this.loader.seek(X+M,{seekSource:89,Aa:"videoplayer_skipServerStitchedAd"}),Dks(this.BC,D),!0):!1}; g.B.t5=function(){return this.j.t5()}; g.B.Rq=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.uc||"";this.dI.RE();return this.j.ZW||""}; g.B.u4=function(){if(this.videoData.videoId)return this.videoData.Ej}; g.B.DW=function(){return this.videoData.videoId}; g.B.H9=function(){return this.dI.h0}; g.B.W9=function(){return this.wx}; g.B.g8=function(){return this.dI.g8()}; g.B.qk=function(D,X,M){this.aN(aE(this.playerState,16,M));this.BC.qk(D,X,M)}; g.B.prefetchKeyPlay=function(D,X){var M;(M=this.loader)==null||M.prefetchKeyPlay(D,X)}; g.B.SN=function(D){return this.BC.SN(D)}; g.B.FA=function(){this.BC.FA()}; g.B.Cb=function(D,X){var M=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.dI.Cb(D,X,M)}; g.B.wy=function(D,X){this.mZ.wy(D,X)}; g.B.Ql=function(){return this.mZ.Ql()}; g.B.VV=function(){return this.dI.VV()}; g.B.oT=function(){return this.dI.oT(this)}; g.B.GK=function(){this.j8=!0}; g.B.Ex=function(D){var X;(X=this.loader)==null||X.Ex(D)}; g.B.Ee=function(){return this.videoData.Ky&&this.Li}; g.B.NB=function(D){this.BC.NB(D)};g.U(QDH,uR);g.U(XE,HA);XE.prototype.S=function(D){D&&t1(this,this.B.getLoopVideo());this.B.logVisibility(this.element,D)}; XE.prototype.logClick=function(){this.B.logClick(this.element)}; XE.prototype.onLoopChange=function(D){t1(this,D)}; XE.prototype.G=function(D){this.B.setLoopVideo(D)};g.U(h61,uR);g.U(HMo,uR);g.B=HMo.prototype;g.B.seekToChapterWithAnimation=function(D){var X=this;if(g.VV(this.api)&&!(D<0)){var M=this.api.getVideoData(),Q=M.XS;if(Q&&D=0)return;X=~X;g.TC(this.items,X,0,D);Iu(this.menuItems.element,D.element,X)}D.subscribe("size-change",this.sO,this);this.menuItems.publish("size-change")}; g.B.m1=function(){rks(this)||this.items[0].focus();return!0}; g.B.vg=function(){this.items[this.items.length-1].focus();return!0}; g.B.hq=function(D){D.unsubscribe("size-change",this.sO,this);this.H2()||(g.X_(this.items,D),this.menuItems.element.removeChild(D.element),this.menuItems.publish("size-change"))}; g.B.sO=function(){this.menuItems.publish("size-change")}; g.B.focus=function(){for(var D=0,X=0;X1&&g.Bo(this)}; g.B.OL=function(){OMs(this);this.Gm&&(o5m(this),g.ax(this.element,this.size))}; g.B.jg=function(){var D=this.S.pop();Cn5(this,D,this.S[this.S.length-1],!0)}; g.B.Xg=function(D){if(!D.defaultPrevented)switch(D.keyCode){case 27:this.Pb();D.preventDefault();break;case 37:this.S.length>1&&this.jg();D.preventDefault();break;case 39:D.preventDefault()}}; g.B.focus=function(){this.S.length&&this.S[this.S.length-1].focus()}; g.B.Yy=function(){g.Ab.prototype.Yy.call(this);this.Y&&this.Y.dispose();this.U&&this.U.dispose()};g.U(Z6,g.VB);Z6.prototype.open=function(D,X){this.initialize(D.items)&&this.vC(X,!!X)}; Z6.prototype.initialize=function(D){g.FE(this.WD);if(D===void 0||D.length===0)return!1;var X=D.length;D=g.e(D);for(var M=D.next();!M.done;M=D.next())this.fK(M.value,X--);return!0}; Z6.prototype.fK=function(D,X){D.menuNavigationItemRenderer?Y_R(this,D.menuNavigationItemRenderer,X):D.menuServiceItemRenderer&&lYn(this,D.menuServiceItemRenderer,X)};g.U(UL,sL);g.B=UL.prototype;g.B.gr=function(D){D.target!==this.dismissButton.element&&D.target!==this.overflowButton.element&&(this.fH(),this.onClickCommand&&this.B.ER("innertubeCommand",this.onClickCommand))}; g.B.LH=function(){this.enabled=!1;this.K.hide()}; g.B.EX=function(){return!!this.S&&this.enabled}; g.B.onVideoDataChange=function(D,X){this.T0(X);if(this.S){this.Pz();a:if(!this.isCounterfactual){var M,Q,h;this.banner.update({title:(M=this.S)==null?void 0:M.title,subtitle:(Q=this.S)==null?void 0:Q.subtitle,metadata:(h=this.S)==null?void 0:h.metadataText});var H;this.onClickCommand=g.Z((H=this.S)==null?void 0:H.onTap,nj);var t;if(D=g.Z((t=this.S)==null?void 0:t.onOverflow,nj))this.X=g.Z(D,I_8);var q;if((q=this.S)==null?0:q.thumbnailImage){var w,T;t=((w=this.S)==null?void 0:(T=w.thumbnailImage)== null?void 0:T.sources)||[];if(t.length===0)break a;this.thumbnailImage.update({url:t[0].url})}else{var L;if((L=this.S)==null?0:L.thumbnailIconName){var K;this.thumbnailIcon.update({icon:(K=this.S)==null?void 0:K.thumbnailIconName})}}var a;this.shouldShowOverflowButton=!((a=this.S)==null||!a.shouldShowOverflowButton);var F;this.shouldHideDismissButton=!((F=this.S)==null||!F.shouldHideDismissButton)}var V;this.banner.element.setAttribute("aria-label",((V=this.S)==null?void 0:V.a11yLabel)||"");var c; this.A$=(c=this.S)==null?void 0:c.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;xzR(this)}}; g.B.sN2=function(){this.isVisible=!0;xzR(this)}; g.B.gRs=function(){this.isVisible=!1;xzR(this)}; g.B.HS=function(){sL.prototype.HS.call(this);this.Y&&this.B.logVisibility(this.banner.element,this.isVisible)}; g.B.fH=function(){sL.prototype.fH.call(this,!1);this.Y&&this.B.logClick(this.banner.element)}; g.B.Ek=function(D){this.D||(this.D=new Z6(this.B),g.p(this,this.D));var X,M;if((X=this.X)==null?0:(M=X.menu)==null?0:M.menuRenderer)this.D.open(this.X.menu.menuRenderer,D.target),D.preventDefault()}; g.B.T0=function(){}; g.B.Pz=function(){}; g.B.Yy=function(){this.B.HD("suggested_action_view_model");sL.prototype.Yy.call(this)};g.U(co,UL); co.prototype.T0=function(D){var X,M,Q;this.productUpsellSuggestedActionViewModel=g.Z((X=D.getWatchNextResponse())==null?void 0:(M=X.playerOverlays)==null?void 0:(Q=M.playerOverlayRenderer)==null?void 0:Q.suggestedActionViewModel,Jdy);var h;if((h=this.productUpsellSuggestedActionViewModel)==null?0:h.content){var H;this.S=g.Z((H=this.productUpsellSuggestedActionViewModel)==null?void 0:H.content,boC)}var t,q;if(this.Y=!!((t=this.productUpsellSuggestedActionViewModel)==null?0:(q=t.loggingDirectives)==null? 0:q.trackingParams)){var w,T;this.B.setTrackingParams(this.banner.element,((w=this.productUpsellSuggestedActionViewModel)==null?void 0:(T=w.loggingDirectives)==null?void 0:T.trackingParams)||null)}var L;this.isCounterfactual=!((L=this.productUpsellSuggestedActionViewModel)==null||!L.isCounterfactualServing)}; co.prototype.Pz=function(){var D=[],X,M=g.e(((X=this.productUpsellSuggestedActionViewModel)==null?void 0:X.ranges)||[]);for(X=M.next();!X.done;X=M.next()){var Q=X.value;Q&&(X=Number(Q.startTimeMilliseconds),Q=Number(Q.endTimeMilliseconds),isNaN(X)||isNaN(Q)||D.push(new g.v9(X,Q,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.B.lH(D)};g.U(WYn,uR);g.U(fU,uR);fU.prototype.onVideoDataChange=function(D,X){var M=this;if(!xL(X)&&(D==="newdata"&&kim(this),this.S&&D==="dataloaded")){this.S=!1;var Q;JS(l3(qi(this.api.W(),(Q=this.api.getVideoData())==null?void 0:g.lf(Q)),function(h){Qtp(M,h)}),function(){M.S=!0})}}; fU.prototype.iE=function(){var D=this;if(g.Nn(this.api.W())){var X,M=g.Ni(this.api.W(),(X=this.api.getVideoData())==null?void 0:g.lf(X));return l3(Ob(M),function(Q){var h=CS();OI(h,Q);return D.api.iE(h)})}return Ob(this.api.iE())};g.U(g.SK,g.WB);g.B=g.SK.prototype;g.B.open=function(){g.$t(this.Vf,this.wI)}; g.B.In=function(D){hGm(this);var X=this.options[D];X&&(X.element.setAttribute("aria-checked","true"),this.setContent(this.FV(D)),this.D=D)}; g.B.wO=function(D){g.FE(this.wI);for(var X={},M=!1,Q=0;Q=0?this.S.playbackRate:1}catch(D){return 1}}; g.B.setPlaybackRate=function(D){this.getPlaybackRate()!==D&&(this.S.playbackRate=D);return D}; g.B.ke=function(){return this.S.loop}; g.B.setLoop=function(D){this.S.loop=D}; g.B.canPlayType=function(D,X){return this.S.canPlayType(D,X)}; g.B.isPaused=function(){return this.S.paused}; g.B.isSeeking=function(){return this.S.seeking}; g.B.isEnded=function(){return this.S.ended}; g.B.QJ=function(){return this.S.muted}; g.B.fQ=function(D){hC();this.S.muted=D}; g.B.Me=function(){return this.S.played||CE([],[])}; g.B.HP=function(){try{var D=this.S.buffered}catch(X){}return D||CE([],[])}; g.B.TQ=function(){return this.S.seekable||CE([],[])}; g.B.Rb=function(){var D=this.S;return D.getStartDate?D.getStartDate():null}; g.B.getCurrentTime=function(){return this.S.currentTime}; g.B.setCurrentTime=function(D){this.S.currentTime=D}; g.B.getDuration=function(){return this.S.duration}; g.B.load=function(){var D=this.S.playbackRate;try{this.S.load()}catch(X){}this.S.playbackRate=D}; g.B.pause=function(){this.S.pause()}; g.B.play=function(){var D=this.S.play();if(!D||!D.then)return null;D.then(void 0,function(){}); return D}; g.B.r$=function(){return this.S.readyState}; g.B.gz=function(){return this.S.networkState}; g.B.WP=function(){return this.S.error?this.S.error.code:null}; g.B.L2=function(){return this.S.error?this.S.error.message:""}; g.B.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.S instanceof window.HTMLVideoElement&&this.S.getVideoPlaybackQuality)return this.S.getVideoPlaybackQuality();if(this.S){var D=this.S,X=D.webkitDroppedFrameCount;if(D=D.webkitDecodedFrameCount)return{droppedVideoFrames:X||0,totalVideoFrames:D}}return{}}; g.B.CF=function(){return!!this.S.webkitCurrentPlaybackTargetIsWireless}; g.B.Lj=function(){return!!this.S.webkitShowPlaybackTargetPicker()}; g.B.togglePictureInPicture=function(){var D=this.S,X=window.document;window.document.pictureInPictureEnabled?this.S!==X.pictureInPictureElement?D.requestPictureInPicture():X.exitPictureInPicture():Qe()&&D.webkitSetPresentationMode(D.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.B.GP=function(){return KW2(this.S)}; g.B.getSize=function(){return g.Ft(this.S)}; g.B.setSize=function(D){g.ax(this.S,D)}; g.B.getVolume=function(){return this.S.volume}; g.B.setVolume=function(D){hC();this.S.volume=D}; g.B.H0=function(D){this.G[D]||(this.S.addEventListener(D,this.listener),this.G[D]=this.listener)}; g.B.setAttribute=function(D,X){this.S.setAttribute(D,X)}; g.B.removeAttribute=function(D){this.S.removeAttribute(D)}; g.B.hasAttribute=function(D){return this.S.hasAttribute(D)}; g.B.Pm=rR(53);g.B.oL=rR(56);g.B.po=rR(59);g.B.lm=rR(62);g.B.jG=function(){return cJ(this.S)}; g.B.ot=function(D){g.hN(this.S,D)}; g.B.T$=function(D){return g.tw(this.S,D)}; g.B.Xx=function(){return g.vD(document.body,this.S)}; g.B.audioTracks=function(){var D=this.S;if("audioTracks"in D)return D.audioTracks}; g.B.Yy=function(){for(var D=g.e(Object.keys(this.G)),X=D.next();!X.done;X=D.next())X=X.value,this.S.removeEventListener(X,this.G[X]);wj.prototype.Yy.call(this)}; g.B.Ny=function(D){this.S.disableRemotePlayback=D};g.U(dn,g.Y);g.U(iO,g.Y);iO.prototype.show=function(){g.Y.prototype.show.call(this);this.C$()}; iO.prototype.hide=function(){g.Y.prototype.hide.call(this);this.delay.stop();this.U.stop()}; iO.prototype.C$=function(){var D=(0,g.fi)(),X=$Os(this.XF);rn(this.S,X.bandwidth_samples);rn(this.X,X.network_activity_samples);rn(this.Y,X.live_latency_samples);rn(this.G,X.buffer_health_samples);var M={};X=g.e(Object.entries(X));for(var Q=X.next();!Q.done;Q=X.next()){var h=g.e(Q.value);Q=h.next().value;h=h.next().value;this.J[Q]!==h&&(M[Q]=" "+String(h));this.J[Q]=h}this.update(M);D=(0,g.fi)()-D>25?5E3:500;this.delay.start(D)}; iO.prototype.K=function(){this.D?(this.position+=1,this.position>15&&(this.D=!1)):(--this.position,this.position<=0&&(this.D=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.U.start(2E4)};g.U(UOd,uR);g.U(oj,g.O);oj.prototype.S=function(){var D=(0,g.fi)()-this.startTime;D=Dthis.U[D])&&(this.S=D,this.kQ())}; g.B.onCueRangeExit=function(D){var X=g82(this,D);X&&this.S===D&&this.api.ER("innertubeCommand",X);pU(this);this.S=void 0}; g.B.OY=function(D){this.Y=D}; g.B.Xe=function(){this.kQ();this.Y=void 0}; g.B.kQ=function(){if(this.S!==void 0){var D=(D=OL(this,this.S))&&D.onCueRangeEnter?eM(D.onCueRangeEnter):void 0;var X=OL(this,this.S);a:if(X&&X.additionalTrigger){var M=g.e(X.additionalTrigger);for(var Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,Q.type){var h=void 0,H=void 0;if((h=this.sR[Q.type])==null?0:h((H=Q.args)!=null?H:{})){M=!0;break a}}M=!1}else M=!0;D&&M&&(this.api.ER("innertubeCommand",D),v8s(this,X),this.U[this.S]!==void 0&&this.U[this.S]++,this.eH=!0)}}; g.B.Yy=function(){this.timelyActions=this.Y=this.S=this.videoId=void 0;this.U={};this.EA();pU(this);uR.prototype.Yy.call(this)};g.U(iv_,uR);g.U(AP,HA);AP.prototype.U=function(D){this.Y(D?2:1)}; AP.prototype.OC=function(){var D=this.B.getPresentingPlayerType();D===2||D===3?this.S&&(this.S=!1,this.Vf.hq(this)):(D=this.getVoiceBoostState(),D!==1?(D===0?(t1(this,this.G()===2),this.setEnabled(!0)):(t1(this,!1),this.setEnabled(!1)),this.S||(this.Vf.fK(this),this.S=!0)):this.S&&(this.Vf.hq(this),this.S=!1))}; AP.prototype.Yy=function(){this.Vf.hq(this);HA.prototype.Yy.call(this)};g.U(Yt,uR);Yt.prototype.getVoiceBoostUserPreference=function(){return this.S}; Yt.prototype.setVoiceBoostUserPreference=function(D){this.api.SH("vb_set",{pref:D});g.gw("yt-player-voice-boost",D);D!==this.S&&(this.S=D,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.Iq(),this.api.jA())}; Yt.prototype.getVoiceBoostState=function(){return this.api.VL(1)}; Yt.prototype.updateEnvironmentData=function(){this.api.W().kY=this.S};g.U(JP,uR);JP.prototype.Yy=function(){this.K&&(g.ZS(this.K),this.K=void 0);uR.prototype.Yy.call(this)}; JP.prototype.RE=function(){(this.G?!this.S:this.Y)&&Gt(this)}; JP.prototype.Ra=function(D,X,M){var Q=this;if(Ovs(D)){var h=M||"";if(this.S)X=zt(this,h),pus(D,X);else{var H=new g.wh;X.push(H.promise);this.D.promise.then(function(){var t=zt(Q,h);pus(D,t);H.resolve()})}}}; JP.prototype.VU=function(D){var X=this;if(this.G||this.Y)D.uc=zt(this,D.videoId),this.S||(this.U=new ql,this.D.promise.then(function(){X.r3.k5("pot_if");D.uc=zt(X,D.videoId)}))};g.U(g.uO,g.Y);g.uO.prototype.select=function(){this.api.BW(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.K0||void 0)&&this.api.logClick(this.element)}; g.uO.prototype.onClick=function(D){if(g.eO(this.api.W())&&this.api.T("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var X=this.suggestion.ML(),M={};g.I8(this.api,M);X=g.nJ(X,M);g.qW(X,this.api,D)}else g.NW(D,this.api,this.G,this.suggestion.sessionData||void 0)&&this.select()}; g.uO.prototype.onKeyPress=function(D){switch(D.keyCode){case 13:case 32:D.defaultPrevented||(this.select(),D.preventDefault())}}; g.uO.prototype.onVideoDataChange=function(){var D=this.api.getVideoData(),X=this.api.W();this.G=D.KK?!1:X.U};g.U(D75,g.Y);g.B=D75.prototype;g.B.Yy=function(){this.hide();g.RH(this.D);g.am(this.stills);this.stills.length=0;this.Y&&(this.Y.remove(),this.Y=void 0);this.S&&(this.S.remove(),this.S=void 0);this.G&&(this.G.remove(),this.G=void 0);g.Y.prototype.Yy.call(this)}; g.B.setCommentsButton=function(D){D!==this.S&&(this.S&&this.S.remove(),this.S=D)&&(g.hN(this.S,"ytp-fullscreen-grid-action-button"),this.K.appendChild(this.S))}; g.B.setDescriptionButton=function(D){D!==this.G&&(this.G&&this.G.remove(),this.G=D)&&(g.hN(this.G,"ytp-fullscreen-grid-action-button"),Iu(this.K,this.G,0))}; g.B.XG=function(D){this.f$&&this.f$(D)}; g.B.onVideoDataChange=function(){if(!this.J){this.videoData=this.player.getVideoData(1);var D,X,M,Q,h;var H=(((D=this.videoData)==null?0:(X=D.suggestions)==null?0:X.length)?(M=this.videoData)==null?void 0:M.suggestions:((Q=this.videoData)==null?0:g.hu(Q))?[(h=this.videoData)==null?void 0:g.hu(h)]:[]).slice(0,18);if((D=this.X)&&this.U)if(g.Ru(D),H.length)for(this.stills.length>H.length&&g.am(this.stills.splice(H.length)),this.stills.length=H.length,X=0;X=0;D--)this.features[D].dispose();this.features.length=0;g.O.prototype.Yy.call(this)};Li2.prototype.reset=function(){this.S=this.G=NaN};g.B=sjH.prototype;g.B.reset=function(){Ug(this.timerName)}; g.B.tick=function(D,X){SQ(D,X,this.timerName)}; g.B.k5=function(D){return mj(D,void 0,this.timerName)}; g.B.UJ=function(D){g.Ef(D,void 0,this.timerName)}; g.B.infoGel=function(D){g.Eg(D,this.timerName)};g.U(Fis,g.Dq);g.B=Fis.prototype;g.B.hasNext=function(D){return this.loop||!!D||this.index+1=0}; g.B.setShuffle=function(D){this.shuffle=D;D=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var X=0;X=X.top&&D.right<=X.right&&D.bottom<=X.bottom&&D.left>=X.left))return}PI(this,2,!1)}; g.B.pn=function(D){var X=new g.hn(D.pageX,D.pageY);HD(X,this.U)||(this.U=X,(D=D.target)&&this.ji(D)&&(PI(this,4,!0),this.S.PC(this.Y),this.Y=this.S.N(this.target,"mouseover",this.Qo),this.J=this.S.N(this.target,"mouseout",this.Qo)))}; g.B.Qo=function(D){D=D.relatedTarget;D&&this.ji(D)||(this.U=new g.hn(NaN,NaN),Dc_(this))}; g.B.I4z=function(){PI(this,1,!0)}; g.B.WG=function(D){D=D.target;D instanceof Element&&!(D.tabIndex>0)||PI(this,1,!0)}; g.B.E7=function(){this.X=!0;this.S.PC(this.D);this.D=this.S.N(document,"mouseup",this.l1)}; g.B.l1=function(){this.X=!1;PI(this,8,!1);this.S.PC(this.D);this.D=this.S.N(this.target,"mousedown",this.E7)}; g.B.k0=function(D){if(D=(D=D.changedTouches)&&D[0])this.sR=D.identifier,this.S.PC(this.K),this.K=this.S.N(this.target,"touchend",this.Wd,void 0,!0),PI(this,1024,!0)}; g.B.Wd=function(D){if(D=D.changedTouches)for(var X=0;X1280||h>720)if(X=Q.gM("maxresdefault.jpg"))break;if(H>640||h>480)if(X=Q.gM("maxresdefault.jpg"))break;if(H>320||h>180)if(X=Q.gM("sddefault.jpg")||Q.gM("hqdefault.jpg")||Q.gM("mqdefault.jpg"))break;if(X=Q.gM("default.jpg"))break}g.XD(D)&&(D=new Image,D.addEventListener("load", function(){pcR()}),D.src=X?X:"",this.api.g6().tick("ftr")); this.U.style.backgroundImage=X?"url("+X+")":""};g.U(g.RF,g.Y);g.RF.prototype.resize=function(){}; g.RF.prototype.G=function(D){var X=this;this.Y=!1;QFm(this);var M=D.iY,Q=this.api.W();M!=="GENERIC_WITHOUT_LINK"||Q.X?M==="TOO_MANY_REQUESTS"?(Q=this.api.getVideoData(),this.setContent(vI(this,"TOO_MANY_REQUESTS_WITH_LINK",Q.ML(),void 0,void 0,void 0,!1))):M!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Q.X?this.api.W().T("html5_enable_bandaid_error_screen")&&M==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Q.X?(Q=Q.hostLanguage,D="//support.google.com/youtube?p=videoError",Q&&(D=g.nJ(D,{hl:Q})),this.setContent(vI(this, "HTML5_SPS_UMP_STATUS_REJECTED",D))):this.api.W().T("enable_adb_handling_in_sabr")&&M==="BROWSER_OR_EXTENSION_ERROR"&&!Q.X?(Q=Q.hostLanguage,D="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Q&&(D=g.nJ(D,{hl:Q})),this.setContent(vI(this,"BROWSER_OR_EXTENSION_ERROR",D))):this.setContent(g.IF(D.errorMessage)):this.setContent(vI(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(D=Q.hostLanguage,M= "//support.google.com/youtube/?p=player_error1",D&&(M=g.nJ(M,{hl:D})),this.setContent(vI(this,"GENERIC_WITH_LINK_AND_CPN",M,!0)),Q.J5&&!Q.U&&MS9(this,function(H){if(g.NW(H,X.api,!Gc(X.api.W()))){H={as3:!1,html5:!0,player:!0,cpn:X.api.getVideoData().clientPlaybackNonce};var t=X.api;t.S$("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:H});t.isFullscreen()&&t.toggleFullscreen()}})); if(this.Y){var h=this.h$("ytp-error-link");h&&(this.api.createClientVe(h,this,216104),this.api.logVisibility(h,!0),MS9(this,function(){X.api.logClick(h)}))}}; var XIs=/([^<>]+)<\/a>/;g.U(hn2,g.Y);hn2.prototype.sy=function(D,X,M){M=M===void 0?!1:M;switch(X){case 1:dZ(this,D,this.Y,M);break;case 2:dZ(this,D,this.U,M);break;case 3:dZ(this,D,this.S,M);break;case 4:dZ(this,D,this.G,M)}};g.U(HbH,g.Y);g.B=HbH.prototype;g.B.onClick=function(D){this.innertubeCommand?(this.B.ER("innertubeCommand",this.innertubeCommand),D.preventDefault()):g.NW(D,this.B,!0);this.B.logClick(this.element)}; g.B.onVideoDataChange=function(D,X){NZd(this,X);this.mj&&qe5(this,this.mj)}; g.B.Fs=function(D){var X=this.B.getVideoData();this.videoId!==X.videoId&&NZd(this,X);this.S&&qe5(this,D.state);this.mj=D.state}; g.B.vC=function(){this.fade.show();this.B.publish("paidcontentoverlayvisibilitychange",!0);this.B.logVisibility(this.element,!0)}; g.B.Pb=function(){this.fade.hide();this.B.publish("paidcontentoverlayvisibilitychange",!1);this.B.logVisibility(this.element,!1)};g.U(rZ,g.Y);rZ.prototype.hide=function(){this.S.stop();this.message.style.display="none";g.Y.prototype.hide.call(this)}; rZ.prototype.onStateChange=function(D){this.cC(D.state)}; rZ.prototype.cC=function(D){if(g.x(D,128)||this.api.W9())var X=!1;else{var M;X=this.api.T("web_watch_enable_multiview_manager")&&((M=this.api.getVideoData())==null?0:xL(M))?!1:g.x(D,16)||g.x(D,1)?!0:!1}X?this.S.start():this.hide()}; rZ.prototype.G=function(){this.message.style.display="block"};g.U(iz,g.Ab);iz.prototype.onMutedAutoplayChange=function(D){this.G&&(D?(wI_(this),this.vC()):(this.S&&this.logClick(),this.Pb()))}; iz.prototype.Ks=function(D){this.api.isMutedByMutedAutoplay()&&g.qZ(D,2)&&this.Pb()}; iz.prototype.onClick=function(){this.api.unMute();this.logClick()}; iz.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.U(g.oF,g.HE);g.B=g.oF.prototype;g.B.init=function(){var D=this.api,X=D.getPlayerStateObject();this.ZL=D.getPlayerSize();this.aN(X);this.TY();this.Fk();this.api.publish("basechromeinitialized",this);this.ol()&&this.api.publish("standardControlsInitialized")}; g.B.onVideoDataChange=function(D,X){var M=this.ZH!==X.videoId;if(M||D==="newdata")D=this.api,D.isFullscreen()||(this.ZL=D.getPlayerSize());M&&(this.ZH=X.videoId,M=this.C2,M.L$=3E3,PI(M,512,!0),this.TY());this.api.T("web_render_jump_buttons")&&X.showSeekingControls&&(this.kU=572)}; g.B.KHz=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.B.bq=function(){var D=this.api.j0()&&this.api.SL(),X=this.api.jJ();return this.QY||D||this.Qz||X}; g.B.e1=function(){var D=!this.bq();g.qE(this.api.getRootNode(),"ytp-menu-shown",!D)}; g.B.ji=function(D){try{if(!g.vD(this.api.getRootNode(),D))return!1}catch(X){return!1}for(;D&&!rP(D);)D=D===this.api.getRootNode()?null:D.parentElement||null;return!!D}; g.B.Mr=function(D){var X=this.api.getRootNode();g.qE(X,"ytp-autohide",D);g.qE(X,"ytp-autohide-active",!0);this.rE.start(D?250:100);D&&(this.kZ=!1,g.tN(X,"ytp-touch-mode"));this.gf=!D;this.api.L3(!D);this.api.T("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",D)}; g.B.Zw=function(){var D=this.api.getRootNode();g.qE(D,"ytp-autohide-active",!1)}; g.B.RVz=function(){this.oY=!0}; g.B.SCH=function(D){if(this.api.W().T("player_doubletap_to_seek")||this.api.W().J)this.oY=!1,this.le&&this.PC(this.le),this.Qa===0&&Cb(this,D)?(this.gs(),this.Or.start(),this.le=this.N(this.api.lj(),"touchmove",this.RVz,void 0,!0)):this.Or.stop();K9R(this)&&Cb(this,D)&&!this.api.W().J&&L91(this);var X=this.Kp.Lk();if(!g.eO(this.api.W())&&Pk&&a5R(this,D))X&&D.preventDefault();else if(this.kZ=!0,g.hN(this.api.getRootNode(),"ytp-touch-mode"),this.C2.H8(),this.api.W().T("player_doubletap_to_seek")||this.api.W().J)if(X= this.api.getPlayerStateObject(),!(!this.api.dM()||g.x(X,2)&&g.nS(this.api)||g.x(X,64))){X=Date.now()-this.Ty;this.Qa+=1;if(X<=350){this.UD=!0;X=this.api.getPlayerSize().width/3;var M=this.api.getRootNode().getBoundingClientRect(),Q=D.targetTouches[0].clientX-M.left;M=D.targetTouches[0].clientY-M.top;var h=(this.Qa-1)*10;Q>0&&QX*2&&Q=650,Q=D.width<528;this.C2.resize();if(this.api.T("web_player_use_screen_width_for_big_mode")){var h,H=D.width>=((h=g.lx(this.api.W().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?h:2E3);g.qE(X,"ytp-big-mode",H)}g.qE(X,"ytp-fullscreen",this.api.isFullscreen());g.qE(X,"ytp-large-width-mode",M);this.api.T("delhi_modern_web_player")?g.qE(X,"ytp-xsmall-width-mode",Q):g.qE(X,"ytp-small-mode",this.cB()); g.qE(X,"ytp-tiny-mode",this.z8());g.qE(X,"ytp-big-mode",this.G_());this.QN&&this.QN.resize(D)}; g.B.Ks=function(D){this.aN(D.state);this.TY()}; g.B.RU=rR(5);g.B.Xm=function(){var D=!!this.ZH&&!this.api.R6()&&!this.wg,X=this.api.getPresentingPlayerType()===2,M=this.api.W();if(X)return M=cI(this.api.Qq()),D&&(M&&M.player?D=(D=M.player.getVideoData(2))?D.isListed&&!g.H9(M.player.W()):!1:(Hb("showInfoBarDuringAd: this is null"),D=!1)),D;X=M.T("web_player_imax_theater_mode")&&this.api.y5()&&!this.api.isInline();return D&&(M.NQ||X||this.api.isFullscreen()||M.tC)}; g.B.TY=function(){var D=this.Xm();this.Ut!==D&&(this.Ut=D,g.qE(this.api.getRootNode(),"ytp-hide-info-bar",!D))}; g.B.aN=function(D){var X=D.isCued()||this.api.FO()&&this.api.getPresentingPlayerType()!==3;X!==this.isCued&&(this.isCued=X,this.W6&&this.PC(this.W6),this.W6=this.N(this.api.lj(),"touchstart",this.SCH,void 0,X));var M=this.C2,Q=D.isPlaying()&&!g.x(D,32)||this.api.J4();PI(M,128,!Q);M=this.C2;Q=this.api.getPresentingPlayerType()===3;PI(M,256,Q);M=this.api.getRootNode();g.x(D,2)?Q=[A6.ENDED]:(Q=[],g.x(D,8)?Q.push(A6.PLAYING):g.x(D,4)&&Q.push(A6.PAUSED),g.x(D,1)&&!g.x(D,32)&&Q.push(A6.BUFFERING),g.x(D, 32)&&Q.push(A6.SEEKING),g.x(D,64)&&Q.push(A6.UNSTARTED));g.F_(this.QM,Q)||(g.NE(M,this.QM),this.QM=Q,g.HC(M,Q));Q=this.api.W();var h=g.x(D,2);a:{var H=this.api.W();var t=H.controlsType;switch(t){case "2":case "0":H=!1;break a}H=t==="3"&&!g.x(D,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:C91(cI(this.api.Qq())))||this.api.jJ()||g.eO(H)&&this.api.getPresentingPlayerType()===2?!1:!0}g.qE(M,"ytp-hide-controls",!H);g.qE(M,"ytp-native-controls",Q.controlsType==="3"&&!X&&!h&&!this.Qz);g.x(D, 128)&&!g.eO(Q)?(this.QN||(this.QN=new g.RF(this.api),g.p(this,this.QN),g.db(this.api,this.QN.element,4)),this.QN.G(D.QV),this.QN.show()):this.QN&&(this.QN.dispose(),this.QN=null)}; g.B.Vn=function(){return this.api.j0()&&this.api.SL()?(this.api.fJ(!1,!1),!0):this.api.R6()?(g.bR(this.api,!0),!0):!1}; g.B.onMutedAutoplayChange=function(D){this.Qz=D;this.e1()}; g.B.G_=function(){return!1}; g.B.cB=function(){return!this.G_()&&(this.api.getPlayerSize().width=0&&X.left>=0&&X.bottom>X.top&&X.right>X.left?X:null;X=this.size;D=D.clone();X=X.clone();Q&&(t=X,h=5,(h&65)==65&&(D.x=Q.right)&&(h&=-2),(h&132)==132&&(D.y=Q.bottom)&&(h&=-5),D.xQ.right&&(t.width=Math.min(Q.right-D.x,H+t.width-Q.left),t.width=Math.max(t.width,0))),D.x+t.width>Q.right&&h&1&&(D.x=Math.max(Q.right-t.width,Q.left)),D.yQ.bottom&&(t.height=Math.min(Q.bottom-D.y,H+t.height-Q.top),t.height=Math.max(t.height,0))),D.y+t.height>Q.bottom&&h&4&&(D.y=Math.max(Q.bottom-t.height,Q.top)));Q=new g.DF(0,0,0,0);Q.left=D.x;Q.top=D.y;Q.width= X.width;Q.height=X.height;g.TN(this.element,new g.hn(Q.left,Q.top));g.RH(this.G);this.G.N(Ya(this),"contextmenu",this.bK2);this.G.N(this.B,"fullscreentoggled",this.onFullscreenToggled);this.G.N(this.B,"pageTransition",this.e7)}; g.B.bK2=function(D){if(!D.defaultPrevented){var X=mI(D);g.vD(this.element,X)||this.Pb();this.B.W().disableNativeContextMenu&&D.preventDefault()}}; g.B.onFullscreenToggled=function(){this.Pb();Ob_(this)}; g.B.e7=function(){this.Pb()};g.U(Gn,g.Y);Gn.prototype.onClick=function(){var D=this,X,M,Q,h;return g.r(function(H){if(H.S==1)return X=D.api.W(),M=D.api.getVideoData(),Q=D.api.getPlaylistId(),h=X.getVideoUrl(M.videoId,Q,void 0,!0),g.I(H,Yed(D,h),2);H.G&&AQd(D);D.api.logClick(D.element);g.HZ(H)})}; Gn.prototype.C$=function(){this.updateValue("icon",{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= pIW(this);g.qE(this.element,"ytp-copylink-button-visible",this.visible);this.Ew(this.visible);this.tooltip.qw();this.api.logVisibility(this.element,this.visible&&this.eH)}; Gn.prototype.YR=function(D){g.Y.prototype.YR.call(this,D);this.api.logVisibility(this.element,this.visible&&D)}; Gn.prototype.Yy=function(){g.Y.prototype.Yy.call(this);g.tN(this.element,"ytp-copylink-button-visible")};g.U(l52,g.Y);g.B=l52.prototype;g.B.show=function(){g.Y.prototype.show.call(this);g.G1(this.G)}; g.B.hide=function(){this.U.stop();this.Y=0;this.h$("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.tN(this.element,"ytp-chapter-seek");g.tN(this.element,"ytp-time-seeking");g.Y.prototype.hide.call(this)}; g.B.iC=function(D,X,M,Q){this.Y=D===this.X?this.Y+Q:Q;this.X=D;var h=D===-1?this.K:this.J;h&&this.B.logClick(h);this.D?this.G.stop():g.km(this.G);this.U.start();this.element.setAttribute("data-side",D===-1?"back":"forward");var H=3*this.B.lj().getPlayerSize().height;h=this.B.lj().getPlayerSize();h=h.width/3-3*h.height;this.S.style.width=H+"px";this.S.style.height=H+"px";D===1?(this.S.style.left="",this.S.style.right=h+"px"):D===-1&&(this.S.style.right="",this.S.style.left=h+"px");var t=H*2.5;H=t/ 2;var q=this.h$("ytp-doubletap-ripple");q.style.width=t+"px";q.style.height=t+"px";D===1?(D=this.B.lj().getPlayerSize().width-X+Math.abs(h),q.style.left="",q.style.right=D-H+"px"):D===-1&&(D=Math.abs(h)+X,q.style.right="",q.style.left=D-H+"px");q.style.top="calc((33% + "+Math.round(M)+"px) - "+H+"px)";if(M=this.h$("ytp-doubletap-ripple"))M.classList.remove("ytp-doubletap-ripple"),M.classList.add("ytp-doubletap-ripple");JQ_(this,this.D?this.Y:Q)}; g.B.S3=function(D,X,M){if(M=M===void 0?null:M){var Q=D===-1?this.K.visualElement:this.J.visualElement;M={seekData:M};var h=g.Va();h&&k0(h,Q,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",M)}this.Y=D===this.X?this.Y+X:X;this.X=D;Q=this.B.lj().getPlayerSize();this.D?this.G.stop():g.km(this.G);this.U.start();this.element.setAttribute("data-side",D===-1?"back":"forward");g.hN(this.element,"ytp-time-seeking");this.S.style.width="110px";this.S.style.height="110px";M=Q.width*.1-15;D===1?this.f$?(this.S.style.right= M+"px",this.S.style.left=""):(this.S.style.right="",this.S.style.left=Q.width*.8-30+"px"):D===-1&&(this.f$?(this.S.style.right="",this.S.style.left=M+"px"):(this.S.style.right="",this.S.style.left=Q.width*.1-15+"px"));this.S.style.top=Q.height*.5+15+"px";JQ_(this,this.D?this.Y:X)}; g.B.s8=function(D,X,M){M=M===void 0?null:M;g.km(this.G);this.U.start();switch(D){case -1:D="back";break;case 1:D="forward";break;default:D=""}this.element.setAttribute("data-side",D);this.S.style.width="0";this.S.style.height="0";g.hN(this.element,"ytp-chapter-seek");this.updateValue("seekText",X);this.updateValue("seekTime","");X=this.h$("ytp-seek-icon");if(M){a:if(M){switch(M){case "PREMIUM_STANDALONE":M=Nws();break a;case "PREMIUM_STANDALONE_CAIRO":M=q0p();break a}M=void 0}else M=null;this.updateValue("seekIcon", M);X.style.display="inline-block"}else X.style.display="none"};g.U(xcp,sL);g.B=xcp.prototype;g.B.f1=function(D){this.uj||(this.uj=new Z6(this.B),g.p(this,this.uj));var X,M;if((X=this.h5)==null?0:(M=X.menu)==null?0:M.menuRenderer)this.uj.open(this.h5.menu.menuRenderer,D.target),D.preventDefault()}; g.B.EX=function(){return!!this.S}; g.B.yK=function(){return!!this.S}; g.B.gr=function(D){D.target===this.overflowButton.element?D.preventDefault():(this.Vq&&this.B.ER("innertubeCommand",this.Vq),this.fH(!1))}; g.B.LH=function(){this.fH(!0);var D,X;if((D=this.S)==null?0:(X=D.bannerData)==null?0:X.dismissedStatusKey){if(this.p$.includes(this.S.bannerData.dismissedStatusKey))return;this.p$.push(this.S.bannerData.dismissedStatusKey)}this.x_();this.B.T("web_enable_shopping_timely_shelf_client")&&(D={},g.RO(D,m5h,{overlayId:"player_overlay_timely_shelf"}),this.B.ER("innertubeCommand",D))}; g.B.mQ=function(){this.x_();uz(this)}; g.B.ac5=function(D){var X=this,M;if(D.id!==((M=this.S)==null?void 0:M.identifier)){this.x_();M=g.e(this.sR);for(var Q=M.next();!Q.done;Q=M.next()){var h=Q.value,H=void 0,t=void 0;if((Q=(H=h)==null?void 0:(t=H.bannerData)==null?void 0:t.itemData)&&h.identifier===D.id){t=H=void 0;var q=((H=h)==null?void 0:(t=H.bannerData)==null?void 0:t.dismissedStatusKey)||"";if(this.p$.includes(q))return;this.S=h;this.banner.element.setAttribute("aria-label",Q.accessibilityLabel||"");Q.trackingParams&&(this.G=!0, this.B.setTrackingParams(this.badge.element,Q.trackingParams));this.show();this.K.show();LU(this);this.L$.Ew(!Q.stayInApp);HNs(this);Gnm(this);kk(this);this.Vq=g.Z(Q.onTapCommand,nj);if(h=g.Z(Q.menuOnTap,nj))this.h5=g.Z(h,I_8);h=void 0;this.banner.update({thumbnail:(h=(Q.thumbnailSources||[])[0])==null?void 0:h.url,title:Q.productTitle,price:Q.priceReplacementText?Q.priceReplacementText:Q.price,salesOriginalPrice:uxi(this),priceDropReferencePrice:jF9(this),promotionText:knR(this),priceA11yText:DP_(this), affiliateDisclaimer:Q.affiliateDisclaimer,vendor:Xmo(this)});q=t=H=h=void 0;((h=Q)==null?0:(H=h.hiddenProductOptions)==null?0:H.showDropCountdown)&&((t=Q)==null?0:(q=t.hiddenProductOptions)==null?0:q.dropTimestampMs)&&(this.J5=new g.W5(function(){hD_(X)},1E3),this.L$.hide(),this.countdownTimer.show(),hD_(this)); this.B.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&W9s(this)&&(this.Ky=new g.W5(function(){zno(X)},1E3),zno(this))}}this.B.getRootNode()&&g.hN(this.B.getRootNode(),"ytp-featured-product-shown")}}; g.B.x_=function(){this.S&&(this.S=void 0,this.lB(),this.B.getRootNode()&&g.tN(this.B.getRootNode(),"ytp-featured-product-shown"))}; g.B.onVideoDataChange=function(D,X){var M=this;D==="dataloaded"&&uz(this);var Q,h,H;D=g.Z((Q=X.getWatchNextResponse())==null?void 0:(h=Q.playerOverlays)==null?void 0:(H=h.playerOverlayRenderer)==null?void 0:H.productsInVideoOverlayRenderer,e9G);this.overflowButton.show();this.dismissButton.hide();var t=D==null?void 0:D.featuredProductsEntityKey;this.trendingOfferEntityKey=D==null?void 0:D.trendingOfferEntityKey;this.sR.length||(QZn(this,t),kk(this));var q;(q=this.bM)==null||q.call(this);this.bM=g.tu.subscribe(function(){QZn(M, t);kk(M)})}; g.B.Yy=function(){uz(this);HNs(this);Gnm(this);sL.prototype.Yy.call(this)};g.U(sZ1,g.Y);sZ1.prototype.onClick=function(){this.B.logClick(this.element,this.Y);if(this.B.T("embeds_enable_info_panel_dismissal")&&this.S&&this.feedbackToken){var D=this.B.iE();if(D==null?0:t0H(this.S,D.vF))eQ(D,this.S,{feedbackTokens:[this.feedbackToken]}),this.B.publish("infopaneldetaildismissed")}};g.U(K52,g.Ab);g.B=K52.prototype;g.B.show=function(){g.Ab.prototype.show.call(this);this.B.publish("infopaneldetailvisibilitychange",!0);this.B.logVisibility(this.element,!0);an5(this,!0)}; g.B.hide=function(){g.Ab.prototype.hide.call(this);this.B.publish("infopaneldetailvisibilitychange",!1);this.B.logVisibility(this.element,!1);an5(this,!1)}; g.B.getId=function(){return this.Y}; g.B.wU=function(){return this.itemData.length}; g.B.onVideoDataChange=function(D,X){if(X){var M,Q,h,H;this.update({title:((M=X.I6)==null?void 0:(Q=M.title)==null?void 0:Q.content)||"",body:((h=X.I6)==null?void 0:(H=h.bodyText)==null?void 0:H.content)||""});var t;D=((t=X.I6)==null?void 0:t.trackingParams)||null;this.B.setTrackingParams(this.element,D);t=g.e(this.itemData);for(D=t.next();!D.done;D=t.next())D.value.dispose();this.itemData=[];var q;if((q=X.I6)==null?0:q.ctaButtons)for(X=g.e(X.I6.ctaButtons),q=X.next();!q.done;q=X.next())if(q=g.Z(q.value, Smr))q=new sZ1(this.B,q,this.S),q.X8&&(this.itemData.push(q),q.rC(this.items))}}; g.B.Yy=function(){this.hide();g.Ab.prototype.Yy.call(this)};g.U($PR,g.Y);g.B=$PR.prototype;g.B.onVideoDataChange=function(D,X){VrH(this,X);this.mj&&ZN2(this,this.mj)}; g.B.Gv=function(D){var X=this.B.getVideoData();this.videoId!==X.videoId&&VrH(this,X);ZN2(this,D.state);this.mj=D.state}; g.B.N_=function(D){(this.Y=D)?this.hide():this.S&&!this.isDismissed&&this.show()}; g.B.Rm=function(){this.G||this.vC();this.showControls=!0}; g.B.S7=function(){this.G||this.Pb();this.showControls=!1}; g.B.vC=function(){if(!this.isDismissed){var D,X=(D=this.B)==null?void 0:D.getPlayerSize();D=X.width<380;var M;X=X.height<(((M=this.B)==null?0:M.isEmbedsShortsMode())?400:280);var Q,h;(((Q=this.B)==null?0:Q.getPlayerStateObject().isCued())||((h=this.B)==null?0:g.x(h.getPlayerStateObject(),1024)))&&D&&X||!this.S||this.Y||(this.fade.show(),this.B.publish("infopanelpreviewvisibilitychange",!0),this.B.logVisibility(this.element,!0))}}; g.B.Pb=function(){this.S&&!this.Y&&(this.fade.hide(),this.B.publish("infopanelpreviewvisibilitychange",!1),this.B.logVisibility(this.element,!1))}; g.B.xW5=function(){this.G=!1;this.showControls||this.Pb()};var etB={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(etB).reduce(function(D,X){D[etB[X]]=X;return D},{}); var RtC={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(RtC).reduce(function(D,X){D[RtC[X]]=X;return D},{}); var IdB={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(IdB).reduce(function(D,X){D[IdB[X]]=X;return D},{});var gRy,vR8;gRy=[{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"}];vR8=[{option:0,text:jS(0)},{option:.25,text:jS(.25)},{option:.5,text:jS(.5)},{option:.75,text:jS(.75)},{option:1,text:jS(1)}]; g.QU=[{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:gRy},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:jS(.5)},{option:-1,text:jS(.75)},{option:0,text:jS(1)},{option:1, text:jS(1.5)},{option:2,text:jS(2)},{option:3,text:jS(3)},{option:4,text:jS(4)}]},{option:"background",text:"Color de fondo",options:gRy},{option:"backgroundOpacity",text:"Opacidad de fondo",options:vR8},{option:"windowColor",text:"Color de la ventana",options:gRy},{option:"windowOpacity",text:"Opacidad de la ventana",options:vR8},{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:jS(.25)},{option:.5,text:jS(.5)},{option:.75,text:jS(.75)},{option:1,text:jS(1)}]}];var duW=[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.U(yEW,g.HE);g.B=yEW.prototype; g.B.O9=function(D){D.repeat||(this.Y.QC=!1);var X=!1,M=D.keyCode,Q=mI(D),h=!D.altKey&&!D.ctrlKey&&!D.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||duW.includes(M)),H=!1,t=!1,q=this.api.W();D.defaultPrevented?(h=!1,t=!0):q.T6&&!this.api.isMutedByEmbedsMutedAutoplay()&&(h=!1);if(M===9)X=!0;else{if(Q)switch(M){case 32:case 13:if(Q.tagName==="BUTTON"||Q.tagName==="A"||Q.tagName==="INPUT")X=!0,h=!1;else if(h){var w=Q.getAttribute("role");!w||w!=="option"&&w!=="button"&&w.indexOf("menuitem")!==0|| (X=!0,Q.click(),H=!0)}break;case 37:case 39:case 36:case 35:X=Q.getAttribute("role")==="slider";break;case 38:case 40:w=Q.getAttribute("role"),Q=M===38?Q.previousSibling:Q.nextSibling,w==="slider"?X=!0:h&&(w==="option"?(Q&&Q.getAttribute("role")==="option"&&Q.focus(),H=X=!0):w&&w.indexOf("menuitem")===0&&(Q&&Q.hasAttribute("role")&&Q.getAttribute("role").indexOf("menuitem")===0&&Q.focus(),H=X=!0))}if(h&&!H)switch(M){case 38:H=Math.min(this.api.getVolume()+5,100);AQ(this.yF,H,!1);this.api.setVolume(H); t=H=!0;break;case 40:H=Math.max(this.api.getVolume()-5,0);AQ(this.yF,H,!0);this.api.setVolume(H);t=H=!0;break;case 36:this.api.dM()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),t=H=!0);break;case 35:this.api.dM()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),t=H=!0)}}X&&XG(this,!0);(X||t)&&this.C2.H8();(H||h&&this.handleGlobalKeyDown(M,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat))&&D.preventDefault();q.K&&(D={keyCode:D.keyCode, altKey:D.altKey,ctrlKey:D.ctrlKey,metaKey:D.metaKey,shiftKey:D.shiftKey,handled:D.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.sC("onKeyPress",D))}; g.B.CE=function(D){var X=D.keyCode;!this.Y.SP&&this.handleGlobalKeyUp(X,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)&&D.preventDefault()}; g.B.handleGlobalKeyUp=function(D,X,M,Q,h,H,t){this.api.publish("keyboardserviceglobalkeyup",{keyCode:D,shiftKey:X,ctrlKey:M,altKey:Q,metaKey:h,key:H,code:t});X=!1;if(this.Y.QC)return X;(H=g.gb(this.api.Qq()))&&(H=H.aR)&&H.Gm&&(H.T3(D),X=!0);switch(D){case 9:XG(this,!0);X=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&!this.api.W().T6){var q,w;D=(q=this.progressBar)==null?void 0:(w=q.G)==null?void 0:w.isEnabled;X=this.DI(D)}break;case 39:(this.api.T("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(h||M&&Q))&&($7?Q:M)&&this.api.dM()&&this.api.T("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),q=(q=this.api.getVideoData())?q.XS:[],w=cER(q,this.api.getCurrentTime()*1E3),w!==-1&&this.S!=null&&(this.S.s8(1,q[w].title),this.api.seekTo(q[w].startTime/1E3,void 0,void 0,void 0,52),X=!0))}return X}; g.B.handleGlobalKeyDown=function(D,X,M,Q,h,H,t,q){q||(this.Y.QC=!1);var w=!1,T=this.api.W();if(T.T6&&!this.api.isMutedByEmbedsMutedAutoplay())return w;var L=g.gb(this.api.Qq());if(L&&(L=L.aR)&&L.Gm)switch(D){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:w=L.MD(D)}T.X||w||(w=H||String.fromCharCode(D).toLowerCase(),this.G+=w,"awesome".indexOf(this.G)===0||this.api.T("web_player_rtr_ctrls")&&"bday".indexOf(this.G)===0?(w=!0,4===this.G.length&&this.G==="bday"&&this.api.T("web_player_rtr_ctrls")&& (qP5(this.D),this.C2.H8()),7===this.G.length&&this.G==="awesome"&&N4n(this.api.getRootNode(),"ytp-color-party")):(this.G=w,w="awesome".indexOf(this.G)===0||"bday".indexOf(this.G)===0));if(!w&&(!this.api.isMutedByEmbedsMutedAutoplay()||duW.includes(D))){var K=this.api.getVideoData(),a,F;L=(a=this.progressBar)==null?void 0:(F=a.G)==null?void 0:F.isEnabled;a=K?K.XS:[];F=$7?Q:M;switch(D){case 80:X&&!T.yf&&(pb(this.yF,wJ1(),"Anterior"),this.api.previousVideo(),w=!0);break;case 78:X&&!T.yf&&(pb(this.yF, $n(),"Siguiente"),this.api.nextVideo(),w=!0);break;case 74:this.api.dM()&&(this.api.startSeekCsiAction(),this.S?this.api.T("enable_key_press_seek_logging")?(w=MP(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.S.S3(-1,10,w)):this.S.S3(-1,10):pb(this.yF,{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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.dM()&&(this.api.startSeekCsiAction(),this.S?this.api.T("enable_key_press_seek_logging")?(w=MP(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.S.S3(1,10,w)):this.S.S3(1,10):pb(this.yF,{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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:if(this.api.dM())if(this.api.startSeekCsiAction(),F){if(this.api.T("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(h||M&&Q))F=fns(a,this.api.getCurrentTime()*1E3),F!==-1&&this.S!=null&&(this.S.s8(-1,a[F].title),this.api.seekTo(a[F].startTime/1E3,void 0,void 0,void 0,53),w=!0)}else this.S?this.api.T("enable_key_press_seek_logging")?(w=MP(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.S.S3(-1,5,w)):this.S.S3(-1,5):pb(this.yF,{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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.dM()&&(this.api.startSeekCsiAction(),F?this.api.T("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.T("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(h||M&&Q)||(F=cER(a,this.api.getCurrentTime()*1E3),F!==-1&&this.S!=null&&(this.S.s8(1,a[F].title),this.api.seekTo(a[F].startTime/1E3,void 0,void 0,void 0,52),w=!0)):(this.S!=null?this.api.T("enable_key_press_seek_logging")?(w=MP(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.S.S3(1,5,w)):this.S.S3(1,5):pb(this.yF,{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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(),AQ(this.yF,this.api.getVolume(),!1)):(this.api.mute(),AQ(this.yF,0,!0));w=!0;break;case 32:w=this.api.T("web_speedmaster_spacebar_control")?!this.api.W().yf:this.DI(L);break;case 75:w=this.DI(L);break;case 190:X?T.enableSpeedOptions&&mPW(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w+.25,!0),VSn(this.yF,!1),w=!0):this.api.dM()&&(this.step(1),w=!0);break;case 188:X? T.enableSpeedOptions&&mPW(this)&&(w=this.api.getPlaybackRate(),this.api.setPlaybackRate(w-.25,!0),VSn(this.yF,!0),w=!0):this.api.dM()&&(this.step(-1),w=!0);break;case 70:$Si(this.api)&&(this.api.toggleFullscreen().catch(function(){}),w=!0); break;case 27:L?(this.progressBar.SO(),w=!0):this.J()&&(w=!0)}if(T.controlsType!=="3")switch(D){case 67:g.Vp(this.api.Qq())&&(T=this.api.getOption("captions","track"),this.api.toggleSubtitles(),$c1(this.yF,!T||T&&!T.displayName),w=!0);break;case 79:hE(this,"textOpacity");break;case 87:hE(this,"windowOpacity");break;case 187:case 61:hE(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:hE(this,"fontSizeIncrement",!0,!0)}var V;X||M||Q||(D>=48&&D<=57?V=D-48:D>=96&&D<=105&&(V=D-96));V!=null&&this.api.dM()&& !this.api.T("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),T=this.api.getProgressState(),this.api.seekTo(V/10*(T.seekableEnd-T.seekableStart)+T.seekableStart,void 0,void 0,void 0,81),w=!0);w&&this.C2.H8()}this.Y.E6=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:D,shiftKey:X,ctrlKey:M,altKey:Q,metaKey:h,key:H,code:t,repeat:q},this.Y);this.Y.E6&&(w=!0,this.C2.H8());return w}; g.B.step=function(D){this.api.dM();if(this.api.getPlayerStateObject().isPaused()){var X=this.api.getVideoData().G;X&&(X=X.video)&&this.api.seekBy(D/(X.fps||30),void 0,void 0,D>0?77:78)}}; g.B.DI=function(D){if(!this.api.W().yf){var X;var M,Q=(X=this.api.getVideoData())==null?void 0:(M=X.getPlayerResponse())==null?void 0:M.playabilityStatus;if(Q){var h;X=((h=g.Z(Q.miniplayer,C1Z))==null?void 0:h.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else X=!1;X&&this.api.ER("onExpandMiniplayer");D?this.progressBar.VY():(D=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.yF.l6(D),D?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.B.Yy=function(){g.km(this.U);g.HE.prototype.Yy.call(this)};g.U(Hm,g.Y);Hm.prototype.C$=function(){var D=this.B.W(),X=D.Y||this.B.T("web_player_hide_overflow_button_if_empty_menu")&&this.GI.isEmpty();D=g.eO(D)&&g.R8(this.B)&&g.x(this.B.getPlayerStateObject(),128);var M=this.B.getPlayerSize();this.visible=this.B.cB()&&!D&&M.width>=240&&!this.B.getVideoData().KK&&!X&&!this.B.isEmbedsShortsMode();g.qE(this.element,"ytp-overflow-button-visible",this.visible);this.Ew(this.visible);this.visible&&this.B.qw();this.B.logVisibility(this.element,this.visible&&this.eH)}; Hm.prototype.YR=function(D){g.Y.prototype.YR.call(this,D);this.B.logVisibility(this.element,this.visible&&D)}; Hm.prototype.Yy=function(){g.Y.prototype.Yy.call(this);g.tN(this.element,"ytp-overflow-button-visible")};g.U(noR,g.Ab);g.B=noR.prototype;g.B.YK=function(D){D=mI(D);g.vD(this.element,D)&&(g.vD(this.S,D)||g.vD(this.closeButton,D)||lR(this))}; g.B.Pb=function(){g.Ab.prototype.Pb.call(this);this.B.dU(this.element)}; g.B.show=function(){this.Gm&&this.B.publish("OVERFLOW_PANEL_OPENED");g.Ab.prototype.show.call(this);this.element.setAttribute("aria-modal","true");eDp(this,!0)}; g.B.hide=function(){g.Ab.prototype.hide.call(this);this.element.removeAttribute("aria-modal");eDp(this,!1)}; g.B.onFullscreenToggled=function(D){!D&&this.Lk()&&lR(this)}; g.B.isEmpty=function(){return this.actionButtons.length===0}; g.B.focus=function(){for(var D=g.e(this.actionButtons),X=D.next();!X.done;X=D.next())if(X=X.value,X.Gm){X.focus();break}};g.U(RDs,g.Y);RDs.prototype.onClick=function(D){g.NW(D,this.api)&&this.api.playVideoAt(this.index)};g.U(Ini,g.Ab);g.B=Ini.prototype;g.B.show=function(){g.Ab.prototype.show.call(this);this.S.N(this.api,"videodatachange",this.Sb);this.S.N(this.api,"onPlaylistUpdate",this.Sb);this.Sb()}; g.B.hide=function(){g.Ab.prototype.hide.call(this);g.RH(this.S);this.updatePlaylist(null)}; g.B.Sb=function(){this.updatePlaylist(this.api.getPlaylist());this.api.W().Y&&(this.h$("ytp-playlist-menu-title-name").removeAttribute("href"),this.G&&(this.PC(this.G),this.G=null))}; g.B.jk=function(){var D=this.playlist,X=D.author,M=X?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Q={CURRENT_POSITION:String(D.index+1),PLAYLIST_LENGTH:String(D.length)};X&&(Q.AUTHOR=X);this.update({title:D.title,subtitle:g.W9(M,Q),playlisturl:this.api.getVideoUrl(!0)});X=D.G;if(X===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[D.index];else{M=g.e(this.playlistData);for(Q=M.next();!Q.done;Q=M.next())Q.value.dispose(); M=D.length;this.playlistData=[];for(Q=0;Q=this.G&&!D.Y&&!X.isAd()&&!this.api.isEmbedsShortsMode()}else D=!1;this.visible=D;this.Ew(this.visible);g.qE(this.element,"ytp-search-button-visible",this.visible);g.qE(this.element,"ytp-show-search-title",!this.api.cB());this.api.logVisibility(this.element,this.visible&&this.eH)}; wU.prototype.YR=function(D){g.Y.prototype.YR.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};g.U(Tf,g.Y); Tf.prototype.trigger=function(D,X,M,Q){this.show();if(this.G&&D!==this.G){var h=1;this.Y&&(h=lno(this));CK2(this,h,!1);YQs(this)}this.G=D;this.U=this.G===-1?this.J:this.K;D="";X?(this.G===-1&&this.B.getCurrentTime()<=X?this.D=X:this.D+=X,D=(this.G===-1?"\u2212":"+")+" "+this.D):this.D=0;this.updateValue(this.G===-1?"durationBack":"durationForward",D);if(this.S==="hidden"||this.S==="fading-out")X=0,this.S==="fading-out"&&(X=lno(this),AE5(this)),ON2(this,X),this.S!=="fading-out"&&pmn(this,this.U.querySelector(".ytp-seek-overlay-arrow-persistent")), this.S="fading-in";else if(this.S==="fading-in"||this.S==="lingering")X=this.U.querySelector(".ytp-seek-overlay-duration"),D=g.lx(this.B.W().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,X.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+D+")"},{offset:1,transform:"scale(1)"}],{duration:184}),AE5(this),this.S==="lingering"&&(this.X.stop(),this.X.start());M&&JEp(this, M,Q)}; Tf.prototype.iC=function(D,X,M,Q){this.trigger(D,Q)}; Tf.prototype.S3=function(D,X,M){this.trigger(D,X);M&&(D=D===-1?this.K.visualElement:this.J.visualElement,M={seekData:M},(X=g.Va())&&k0(X,D,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",M))}; Tf.prototype.s8=function(D,X,M){this.trigger(D,void 0,X,M)};g.U(LN,g.Y);LN.prototype.onClick=function(){var D=this,X=this.api.W(),M=this.api.getVideoData(this.api.getPresentingPlayerType()),Q=this.api.getPlaylistId();X=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):X.getVideoUrl(M.videoId,Q,void 0,!0);if(navigator.share)try{var h=navigator.share({title:M.title,url:X});h instanceof Promise&&h.catch(function(H){W5_(D,H)})}catch(H){H instanceof Error&&W5_(this,H)}else this.S.Vn(),lR(this.G,this.element,!1); this.api.logClick(this.element)}; LN.prototype.C$=function(){var D=this.api.W(),X=this.api.isEmbedsShortsMode();g.qE(this.element,"ytp-show-share-title",g.eO(D)&&!X);this.S.G_()&&X?(D=(this.api.lj().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Q_(this.element,"right",D+"px")):X&&g.Q_(this.element,"right","0px");this.updateValue("icon",{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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=xPW(this);g.qE(this.element,"ytp-share-button-visible",this.visible);this.Ew(this.visible);this.tooltip.qw();this.api.logVisibility(this.element,xPW(this)&&this.eH)}; LN.prototype.YR=function(D){g.Y.prototype.YR.call(this,D);this.api.logVisibility(this.element,this.visible&&D)}; LN.prototype.Yy=function(){g.Y.prototype.Yy.call(this);g.tN(this.element,"ytp-share-button-visible")};g.U(zDs,g.Ab);g.B=zDs.prototype;g.B.bb=function(D){D=mI(D);g.vD(this.U,D)||g.vD(this.closeButton,D)||lR(this)}; g.B.Pb=function(){g.Ab.prototype.Pb.call(this);this.tooltip.dU(this.element);this.api.logVisibility(this.S,!1);for(var D=g.e(this.G),X=D.next();!X.done;X=D.next())X=X.value,this.api.hasVe(X.element)&&this.api.logVisibility(X.element,!1)}; g.B.show=function(){var D=this.Gm;g.Ab.prototype.show.call(this);this.C$();D||this.api.ER("onSharePanelOpened")}; g.B.Gmf=function(){this.Gm&&this.C$()}; g.B.C$=function(){var D=this;g.hN(this.element,"ytp-share-panel-loading");g.tN(this.element,"ytp-share-panel-fail");var X=this.api.getVideoData(),M=this.api.getPlaylistId()&&this.Y.checked;X.getSharePanelCommand&&eQ(this.api.iE(),X.getSharePanelCommand,{includeListId:M}).then(function(Q){D.H2()||(g.tN(D.element,"ytp-share-panel-loading"),jZs(D,Q))}); X=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",X);this.updateValue("linkText",X);this.updateValue("shareLinkWithUrl",g.W9("Compartir v\u00ednculo $URL",{URL:X}));L5(this.S);this.api.logVisibility(this.S,!0)}; g.B.onFullscreenToggled=function(D){!D&&this.Lk()&&lR(this)}; g.B.focus=function(){this.S.focus()}; g.B.Yy=function(){g.Ab.prototype.Yy.call(this);kfm(this)};g.U(MBm,sL);g.B=MBm.prototype;g.B.Yy=function(){N7H(this);sL.prototype.Yy.call(this)}; g.B.gr=function(D){D.target!==this.dismissButton.element&&(this.fH(!1),this.B.ER("innertubeCommand",this.onClickCommand))}; g.B.LH=function(){this.t$=!0;this.fH(!0);this.lB()}; g.B.O6j=function(D){this.X=D;this.lB()}; g.B.onVideoDataChange=function(D,X){if(D=!!X.videoId&&this.videoId!==X.videoId)this.videoId=X.videoId,this.t$=!1,this.a5=!0,this.J=this.R5=!1,N7H(this),tBR(this,!1),this.Y=this.S=!1,KN(this),Qlm(this);if(D||!X.videoId)this.f$=this.G=!1;var M,Q;if(X==null?0:(M=X.getPlayerResponse())==null?0:(Q=M.videoDetails)==null?0:Q.isLiveContent)this.a6(!1);else{var h,H,t;X=g.Z((h=X.getWatchNextResponse())==null?void 0:(H=h.playerOverlays)==null?void 0:(t=H.playerOverlayRenderer)==null?void 0:t.productsInVideoOverlayRenderer, e9G);this.X=this.enabled=!1;if(X){if(h=X==null?void 0:X.featuredProductsEntityKey){H=g.tu.getState().entities;var q;if((q=Oq(H,"featuredProductsEntity",h))==null?0:q.productsData){this.a6(!1);return}}if(!X.text||!X.onClickCommand||!X.timing){this.a6(!1);return}this.enabled=!0;if(!this.G){var w;q=(w=X.badgeInteractionLogging)==null?void 0:w.trackingParams;(this.G=!!q)&&this.B.setTrackingParams(this.badge.element,q||null)}if(!this.f$){var T;if(this.f$=!((T=X.dismissButton)==null||!T.trackingParams)){var L; this.B.setTrackingParams(this.dismissButton.element,((L=X.dismissButton)==null?void 0:L.trackingParams)||null)}}X.isContentForward&&(w=X.productsData,tBR(this,!0),Qlm(this),w=H$n(this,w),T=[],w.length>0&&T.push(w[0]),w.length>1&&(L=new g.Y({L:"div",C:"ytp-suggested-action-more-products-icon"}),g.p(this,L),T.push(L),T.push.apply(T,g.xW(w.slice(1)))),this.D=new g.Y({L:"div",V:T,C:"ytp-suggested-action-content-forward-container"}),g.p(this,this.D),this.M5.element.append(this.D.element));this.text=g.q1(X.text); var K;if(w=(K=X.dismissButton)==null?void 0:K.a11yLabel)this.A$=g.q1(w);this.onClickCommand=X.onClickCommand;this.timing=X.timing;this.lH()}dzd(this);LU(this);this.lB()}}; g.B.EX=function(){return!this.X&&this.enabled&&!this.t$&&!this.B.cB()&&!this.Mj&&(this.J||this.a5)}; g.B.oS=function(D){sL.prototype.oS.call(this,D);if(this.S||this.Y)this.timing&&sQ(this.timing.preview)&&(this.S=!1,KN(this),this.Y=!1,KN(this),this.B.HD("shopping_overlay_preview_collapsed"),this.B.HD("shopping_overlay_preview_expanded"),D=aZ(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),sQ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.B.HD("shopping_overlay_expanded"),D.end=this.timing.expanded.endSec*1E3),this.B.lH([D])), this.R5=!0,LU(this);KN(this)}; g.B.a6=function(D){(this.J=D)?(Tt(this),LU(this,!1)):(N7H(this),this.yf.start());this.lB()}; g.B.lH=function(D){var X=this.timing;D=(D===void 0?0:D)+this.B.getCurrentTime();var M=[],Q=X.visible,h=X.preview;X=X.expanded;sQ(Q)&&(DjW(Q,D),M.push(aZ(Q.startSec,Q.endSec,"shopping_overlay_visible")));sQ(h)&&(DjW(h,D),Q=h.startSec+1,M.push(aZ(h.startSec,Q,"shopping_overlay_preview_collapsed")),M.push(aZ(Q,h.endSec,"shopping_overlay_preview_expanded")));sQ(X)&&(DjW(X,D),M.push(aZ(X.startSec,X.endSec,"shopping_overlay_expanded")));this.B.lH(M)}; g.B.lB=function(){sL.prototype.lB.call(this);this.B.getRootNode()&&g.qE(this.B.getRootNode(),"ytp-shopping-pill-shown",this.EX())};g.U(T7p,g.Y); T7p.prototype.C$=function(){var D=this.api.W();this.Ew(g.eO(D)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Gm);var X=this.api.getVideoData(),M=!1;this.api.getPresentingPlayerType()===2?M=!!X.videoId&&!!X.isListed&&!!X.author&&!!X.yf&&!!X.profilePicture:g.eO(D)&&(M=!!X.videoId&&!!X.yf&&!!X.profilePicture&&!X.KK&&!D.Y&&!(D.J&&this.api.getPlayerSize().width<200));var Q=X.profilePicture;D=g.eO(D)?X.expandedTitle:X.author;Q=Q===void 0? "":Q;D=D===void 0?"":D;M?(this.G!==Q&&(this.S.style.backgroundImage="url("+Q+")",this.G=Q),this.updateValue("channelLogoLabel",g.W9("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:D})),g.hN(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.tN(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.S,M&&this.eH);this.api.logVisibility(this.channelName,M&&this.eH);this.subscribeButton&&(this.subscribeButton.channelId=X.uI);this.updateValue("expandedTitle",X.expandedTitle)};g.U(FG,g.Ab);FG.prototype.show=function(){g.Ab.prototype.show.call(this);this.S.start()}; FG.prototype.hide=function(){g.Ab.prototype.hide.call(this);this.S.stop()}; FG.prototype.bf=function(D,X){D==="dataloaded"&&((this.gD=X.gD,this.mp=X.mp,isNaN(this.gD)||isNaN(this.mp))?this.G&&(this.B.HD("intro"),this.B.removeEventListener(g.rI("intro"),this.J),this.B.removeEventListener(g.iB("intro"),this.U),this.B.removeEventListener("onShowControls",this.Y),this.hide(),this.G=!1):(this.B.addEventListener(g.rI("intro"),this.J),this.B.addEventListener(g.iB("intro"),this.U),this.B.addEventListener("onShowControls",this.Y),D=new g.v9(this.gD,this.mp,{priority:9,namespace:"intro"}), this.B.lH([D]),this.G=!0))};g.U(VU,g.Y);VU.prototype.onClick=function(){this.B.Lj()}; VU.prototype.C$=function(){var D=!0;g.eO(this.B.W())&&(D=D&&this.B.lj().getPlayerSize().width>=480);this.Ew(D);D=this.updateValue;var X=this.B.T("delhi_modern_web_player_icons"),M=X?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,Z:{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"}}]};X=X?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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"}}]};D.call(this,"icon",this.B.CF()?M:X)};g.U(slW,g.Y);slW.prototype.Yy=function(){this.S=null;g.Y.prototype.Yy.call(this)};g.U($o,g.Y);$o.prototype.onClick=function(){this.B.ER("innertubeCommand",this.G)}; $o.prototype.K=function(){if(this.B.T("delhi_modern_web_player")){var D=this.B.getPlayerSize();D.width&&(this.element.style.maxWidth=D.width*.25+"px")}}; $o.prototype.R5=function(D){D!==this.X&&(this.update({chapterTitle:D,ariaLabel:D}),this.X=D);D?this.show():this.hide()}; $o.prototype.f$=function(){this.S.disabled=this.G==null;g.qE(this.S,"ytp-chapter-container-disabled",this.S.disabled);this.Ja()};g.U(Bm,$o);Bm.prototype.onClickCommand=function(D){g.Z(D,Hy)&&this.Ja()}; Bm.prototype.updateVideoData=function(D,X){var M,Q,h;D=g.Z((M=X.getWatchNextResponse())==null?void 0:(Q=M.playerOverlays)==null?void 0:(h=Q.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,e1);M=g.Z(D==null?void 0:D.playerBarActionButton,g.$w);if(this.B.T("web_player_updated_entrypoint")){this.J=u3(M==null?void 0:M.text);var H;Q=(H=M==null?void 0:M.tooltip)!=null?H:"Ver cap\u00edtulo";this.D.setAttribute("title",Q)}this.G=M==null?void 0:M.command;$o.prototype.f$.call(this)}; Bm.prototype.Ja=function(){var D=this.J,X=this.U.S,M,Q=((M=this.B.getLoopRange())==null?void 0:M.type)==="clips";if(X.length>1&&!Q){D=this.B.getProgressState().current*1E3;M=Dn(X,D);D=X[M].title||"Cap\u00edtulos";if(M!==this.currentIndex||this.Y)this.B.ER("innertubeCommand",X[M].onActiveCommand),this.currentIndex=M;this.Y=!1}else this.Y=!0;$o.prototype.R5.call(this,D)};g.U(Zn,g.Hr);Zn.prototype.G=function(){var D;(D=this.element.parentElement)==null||D.classList.contains("ytp-right-controls-left");(this.S=!this.S)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Zn.prototype.isExpanded=function(){return this.S};g.U(UQ,g.Y);UQ.prototype.Y=function(D){g.x(D.state,32)?aM2(this,this.api.Wx()):this.Gm&&(g.x(D.state,16)||g.x(D.state,1))||this.fade.hide()}; UQ.prototype.onProgress=function(){var D=this.api.getPlayerStateObject();(g.x(D,32)||g.x(D,16))&&FXW(this)}; UQ.prototype.U=function(){this.frameIndex=NaN;FXW(this)}; UQ.prototype.hide=function(){this.S&&aM2(this,null);g.Y.prototype.hide.call(this)};g.U(VBs,g.Y);g.B=VBs.prototype;g.B.onClick=function(){var D=this;if(this.B.W().q5||this.B.W().J){this.B.logClick(this.element);try{this.B.toggleFullscreen().catch(function(X){D.ag(X)})}catch(X){this.ag(X)}}else lR(this.message,this.element,!0)}; g.B.ag=function(D){String(D).includes("fullscreen error")?g.P3(D):g.ET(D);this.Rv()}; g.B.Rv=function(){this.disable();this.message.vC(this.element,!0)}; g.B.Sr=function(){U0()===this.B.getRootNode()?this.Y.start():(this.Y.stop(),this.message&&this.message.hide())}; g.B.Nt=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var D=window.screen.width*.9,X=window.screen.height*.9,M=Math.max(window.outerWidth,window.innerWidth),Q=Math.max(window.outerHeight,window.innerHeight);if(M>Q!==D>X){var h=M;M=Q;Q=h}D>M&&X>Q&&this.Rv()}}; g.B.disable=function(){var D=this;if(!this.message){var X=($g(["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.Ab(this.B,{L:"div",gC:["ytp-popup","ytp-generic-popup"], Z:{role:"alert",tabindex:"0"},V:[X[0],{L:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",target:this.B.W().eH},Gs:X[2]},X[4]]},100,!0);this.message.hide();g.p(this,this.message);this.message.subscribe("show",function(M){D.G.sD(D.message,M)}); g.db(this.B,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.S)();this.S=null}}; g.B.C$=function(){var D=$Si(this.B),X=this.B.W().J&&this.B.getPlayerSize().width<250;this.Ew(D&&!X);this.B.logVisibility(this.element,this.Gm)}; g.B.bI=function(D){if(D){var X=g.PB(this.B,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.B.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(M){g.P3(M)})}else X=g.PB(this.B,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); D=$js(this,D);X=this.message?null:X;this.B.W().T("player_tooltip_data_title_killswitch")?this.update({title:X,icon:D}):this.update({"tooltip-title":X,"aria-label":X,icon:D});this.G.tR().qw()}; g.B.Yy=function(){this.message||((0,this.S)(),this.S=null);g.Y.prototype.Yy.call(this)}; g.B.YR=function(D){g.Y.prototype.YR.call(this,D)};g.U(cm,g.Y);cm.prototype.onClick=function(){this.B.logClick(this.element);this.B.seekBy(this.S,!0);var D=this.S>0?1:-1,X=Math.abs(this.S),M=this.B.Qp().zo;M&&M.S3(D,X);this.G.isActive()?this.Y=!0:(D=["ytp-jump-spin"],this.S<0&&D.push("backwards"),this.element.classList.add.apply(this.element.classList,g.xW(D)),g.G1(this.G))};g.U(fN,$o);fN.prototype.onClickCommand=function(D){g.Z(D,nWB)&&this.Ja()}; fN.prototype.updateVideoData=function(){var D,X;this.G=(D=Z$d(this))==null?void 0:(X=D.onTap)==null?void 0:X.innertubeCommand;$o.prototype.f$.call(this)}; fN.prototype.Ja=function(){var D="",X=this.U.J,M,Q=(M=Z$d(this))==null?void 0:M.headerTitle;M=Q?g.q1(Q):"";var h;Q=((h=this.B.getLoopRange())==null?void 0:h.type)==="clips";X.length>1&&!Q&&(D=this.B.getProgressState().current*1E3,h=UPs(X,D),D=h!=null?X[h].title:M,h!=null&&h!==this.currentIndex&&(this.B.ER("innertubeCommand",X[h].onActiveCommand),this.currentIndex=h));$o.prototype.R5.call(this,D)};g.U(Sr,g.Y);Sr.prototype.onClick=function(){this.B.ER("onCollapseMiniplayer");this.B.logClick(this.element)}; Sr.prototype.C$=function(){this.visible=!this.B.isFullscreen();this.Ew(this.visible);this.B.logVisibility(this.element,this.visible&&this.eH)}; Sr.prototype.YR=function(D){g.Y.prototype.YR.call(this,D);this.B.logVisibility(this.element,this.visible&&D)};g.U(EQ,g.Y);EQ.prototype.init=function(){this.update({minvalue:this.Y,maxvalue:this.D,stepvalue:this.J,slidervalue:this.S,ariaValueNow:this.S,ariaMinValue:this.Y,ariaMaxValue:this.D});c$o(this,this.S)}; EQ.prototype.U=function(){yU(this,Number(this.G.value));this.G.focus()}; EQ.prototype.X=function(D){if(!D.defaultPrevented){switch(D.code){case "ArrowDown":D=-this.J;break;case "ArrowUp":D=this.J;break;default:return}yU(this,Math.min(this.D,Math.max(Number((this.S+D).toFixed(2)),this.Y)))}};g.U(Pm,EQ);Pm.prototype.onVolumeChange=function(D){if(this.K)this.K=!1;else{var X=D.volume;X===0||D.muted?yU(this,0):yU(this,X)}}; Pm.prototype.U=function(){EQ.prototype.U.call(this);this.f$(this.S)}; Pm.prototype.R5=function(D){var X=-D.deltaY;X=D.deltaMode===WheelEvent.DOM_DELTA_LINE||D.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.XT(this.S+X,0,100):g.XT(this.S+g.XT(X/10,-10,10),0,100);X===0?yU(this,0):yU(this,X);this.f$(X);D.preventDefault();D.stopPropagation()}; Pm.prototype.a5=function(D,X){this.K=!0;D===0||X?this.B.mute():(this.B.isMuted()&&this.B.unMute(),this.B.setVolume(D))};g.U(fM_,g.Y);g.U(nN,g.Y);g.B=nN.prototype;g.B.u5=function(){if(!this.B.DT()){this.updateValue("dataTooltipOffsetY",-120);var D;(D=this.S)!=null&&m5(D,!0);var X;(X=this.S)!=null&&X.S.stop()}}; g.B.iS=function(){var D;(D=this.S)!=null&&D.S.start()}; g.B.Hj=function(D){this.visible=D.width>=300||this.uj;this.Ew(this.visible);this.B.logVisibility(this.element,this.visible&&this.eH)}; g.B.gg=function(){this.B.W().M5?this.B.isMuted()?this.B.unMute():this.B.mute():lR(this.message,this.element,!0);this.B.logClick(this.element)}; g.B.IW4=function(D){if(this.B.W().M5&&this.S)if(D.target===this.Y){var X;if(!this.B.DT()||((X=this.S)==null?0:X.isVisible))this.gg();else{var M;(M=this.S)!=null&&m5(M,!0)}}else{var Q;(Q=this.S)!=null&&m5(Q,!0)}else this.gg()}; g.B.onVolumeChange=function(D){this.setVolume(D.volume,D.muted)}; g.B.setVolume=function(D,X){var M=this,Q=X?0:D/100;D=Q===0?1:D>50?1:0;if(this.K!==D){var h=this.J;isNaN(h)?mjo(this,D):Sj2(this.M5,function(t){mjo(M,h+(M.K-h)*t)},250); this.K=D}Q=Q===0?1:0;if(this.X!==Q){var H=this.a5;isNaN(H)?nEm(this,Q):Sj2(this.sR,function(t){nEm(M,H+(M.X-H)*t)},250); this.X=Q}EEs(this,X)}; g.B.YR=function(D){g.Y.prototype.YR.call(this,D);this.B.logVisibility(this.element,this.visible&&D)}; var y$s=["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"],P6H=["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.U(g.bK,g.Y);g.B=g.bK.prototype;g.B.onStateChange=function(D){this.cC(D.state)}; g.B.cC=function(D){var X=g.Rp(this.B.getVideoData()),M=!1;D.isOrWillBePlaying()?D=X?4:2:g.x(D,2)?(D=3,M=X):D=1;this.element.disabled=M;if(this.S!==D){X=null;switch(D){case 2:X=g.PB(this.B,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:X="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:X=g.PB(this.B,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:X="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}D=== 3?this.B.W().T("player_tooltip_data_title_killswitch")?this.update({title:X,icon:b$i(this,D)}):this.update({"tooltip-title":X,icon:b$i(this,D)}):(this.B.T("player_tooltip_data_title_killswitch")?this.update({title:X}):this.update({"tooltip-title":X}),(X=b$i(this,D))&&this.S&&this.S!==3?y5o(this.transition,this.element,X):this.updateValue("icon",X));this.tooltip.qw();this.S=D}}; g.B.onVideoDataChange=function(){g.qE(this.element,"ytp-play-button-playlist",g.R8(this.B))}; g.B.DI=function(D){this.B.logClick(this.element);if(this.B.getPlayerStateObject().isOrWillBePlaying())this.B.pauseVideo();else{if(this.B.isMinimized()&&this.B.getPlayerStateObject().isCued()){var X={},M;if((M=this.B.getVideoData())==null?0:M.X)X.cttAuthInfo={token:this.B.getVideoData().X,videoId:this.B.getVideoData().videoId};yO("direct_playback",X);this.B.g6().timerName="direct_playback"}this.B.playVideo()}this.B.isMinimized()&&(D==null?void 0:D.type)==="click"&&this.element.blur()}; g.B.YR=function(D){g.Y.prototype.YR.call(this,D)};g.U(g.er,g.Y);g.B=g.er.prototype;g.B.onVideoDataChange=function(){IMW(this);this.U&&(this.PC(this.U),this.U=null);this.videoData=this.B.getVideoData(1);if(this.playlist=this.B.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.U=this.N(this.B,"progresssync",this.S6);this.Y=gEm(this);RVH(this);this.BM(this.B.lj().getPlayerSize())}; g.B.BM=function(D){D=D===void 0?this.B.lj().getPlayerSize():D;var X,M=((X=this.B.getLoopRange())==null?void 0:X.type)==="clips";X=g.R8(this.B)||this.S&&g.rb(this.B)&&!this.B.T("web_hide_next_button")||vEn(this);var Q=!this.S&&D.width<400;D=this.B.T("delhi_modern_web_player_horizontal_volume_controls")&&D.width<640;M=X&&!M&&!Q&&!D;this.Ew(M);this.B.logVisibility(this.element,M)}; g.B.onClick=function(D){this.B.logClick(this.element);var X=!0;this.X?X=g.NW(D,this.B):D.preventDefault();X&&(this.S&&this.B.getPresentingPlayerType()===5?this.B.publish("ytoprerollinternstitialnext"):this.S?(tQ(this.B.g6()),this.B.publish("playlistnextbuttonclicked",this.element),this.B.nextVideo(!0)):this.Y?this.B.seekTo(0):(tQ(this.B.g6()),this.B.publish("playlistprevbuttonclicked",this.element),this.B.previousVideo(!0)))}; g.B.S6=function(){var D=gEm(this);D!==this.Y&&(this.Y=D,RVH(this))}; g.B.Yy=function(){this.G&&(this.G(),this.G=null);IMW(this);g.Y.prototype.Yy.call(this)};g.U(r$1,g.Y);g.B=r$1.prototype;g.B.YL=function(D){this.T1(D.pageX);this.MV(D.pageX+D.deltaX);i$H(this)}; g.B.T1=function(D){this.f$=D-this.uj}; g.B.MV=function(D){D-=this.uj;!isNaN(this.f$)&&this.thumbnails.length>0&&(this.K=D-this.f$,this.thumbnails.length>0&&this.K!==0&&(this.Y=this.J+this.K,D=A$5(this,this.Y),this.Y<=this.S/2&&this.Y>=p_R(this)?(this.api.seekTo(D,!1,void 0,void 0,25),g.Q_(this.a5,"transform","translateX("+(this.Y-this.S/2)+"px)"),djR(this,D)):this.Y=this.J))}; g.B.GO=function(){this.R5&&(this.R5.I3=!0);var D=(0,g.fi)()-this.OR<300;if(Math.abs(this.K)<5&&!D){this.OR=(0,g.fi)();D=this.f$+this.K;var X=this.S/2-D;this.T1(D);this.MV(D+X);i$H(this);this.api.logClick(this.D)}i$H(this)}; g.B.a8=function(){RZ(this,this.api.getCurrentTime())}; g.B.play=function(D){this.api.seekTo(A$5(this,this.Y),void 0,void 0,void 0,26);this.api.playVideo();D&&this.api.logClick(this.playButton)}; g.B.onExit=function(D){this.api.seekTo(this.yf,void 0,void 0,void 0,63);this.api.playVideo();D&&this.api.logClick(this.dismissButton)}; g.B.Fk=function(D,X){this.uj=D;this.S=X;RZ(this,this.api.getCurrentTime())}; g.B.enable=function(){this.isEnabled||(this.isEnabled=!0,this.yf=this.api.getCurrentTime(),djR(this,this.yf),g.qE(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.M5=this.N(this.element,"wheel",this.YL),this.logVisibility(this.isEnabled))}; g.B.disable=function(){this.isEnabled=!1;this.hide();g.qE(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.M5&&this.PC(this.M5);this.logVisibility(this.isEnabled)}; g.B.reset=function(){this.disable();this.U=[];this.L$=!1}; g.B.logVisibility=function(D){this.api.logVisibility(this.element,D);this.api.logVisibility(this.D,D);this.api.logVisibility(this.dismissButton,D);this.api.logVisibility(this.playButton,D)}; g.B.Yy=function(){for(;this.G.length;){var D=void 0;(D=this.G.pop())==null||D.dispose()}g.Y.prototype.Yy.call(this)}; g.U(oEd,g.Y);g.U(C62,g.Y);g.U(YJp,g.Y);g.U(IZ,g.Y);IZ.prototype.Ly=function(D){return D==="PLAY_PROGRESS"?this.J:D==="LOAD_PROGRESS"?this.X:D==="LIVE_BUFFER"?this.D:this.Y};xjs.prototype.update=function(D,X,M,Q){M=M===void 0?0:M;this.width=X;this.U=M;this.S=X-M-(Q===void 0?0:Q);this.position=g.XT(D,M,M+this.S);this.Y=this.position-M;this.G=this.Y/this.S};g.U(WXn,g.Y);g.U(g.dU,g.Hr);g.B=g.dU.prototype; g.B.jY=function(){var D=!1,X=this.api.getVideoData();if(!X)return D;this.api.HD("timedMarkerCueRange");kPR(this);for(var M=g.e(X.M5),Q=M.next();!Q.done;Q=M.next()){Q=Q.value;var h=void 0,H=(h=this.t$[Q])==null?void 0:h.markerType,t=void 0;h=(t=this.t$[Q])==null?void 0:t.markers;if(!h)break;if(H==="MARKER_TYPE_TIMESTAMPS"){D=g.e(h);for(H=D.next();!H.done;H=D.next()){t=H.value;H=new WXn;var q=void 0;H.title=((q=t.title)==null?void 0:q.simpleText)||"";H.timeRangeStartMillis=Number(t.startMillis);H.S= Number(t.durationMillis);var w=q=void 0;H.onActiveCommand=(w=(q=t.onActive)==null?void 0:q.innertubeCommand)!=null?w:void 0;Q4R(this,H)}h0s(this,this.J);D=this.J;H=this.kh;t=[];q=null;for(w=0;wT&&(q.end=T);T=SQ9(T,T+K);t.push(T);q=T;H[T.id]=D[w].onActiveCommand}}this.api.lH(t);a:{D=g.e(h);for(h=D.next();!h.done;h=D.next())if(h.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){D= !1;break a}D=!0}D&&(this.w$=this.t$[Q]);D=!0}else if(H==="MARKER_TYPE_HEATMAP"){Q=this.t$[Q];L=T=H=w=q=t=void 0;if(Q&&Q.markers){h=(H=(L=Q.markersMetadata)==null?void 0:(T=L.heatmapMetadata)==null?void 0:T.minHeightDp)!=null?H:0;H=(t=(w=Q.markersMetadata)==null?void 0:(q=w.heatmapMetadata)==null?void 0:q.maxHeightDp)!=null?t:60;t=this.S.length;q=null;for(w=0;w=L&&V<=K&&T.push(F)}H>0&&(this.R5.style.height=H+"px");L=this.U[w];K=T;F=h;var c=H,S=w===0;S=S===void 0?!1:S;lM2(L,c);a=K;V=L.G;S=S===void 0?!1:S;var b=1E3/a.length,n=[];n.push({x:0,y:100});for(var R=0;R0&&(q=T[T.length-1])}g.rU(this)}H=void 0;h=[];if(Q=(H=Q.markersDecoration)==null?void 0:H.timedMarkerDecorations)for(Q=g.e(Q),H=Q.next();!H.done;H=Q.next())H=H.value,w=q=t=void 0,h.push({visibleTimeRangeStartMillis:(t=H.visibleTimeRangeStartMillis)!= null?t:-1,visibleTimeRangeEndMillis:(q=H.visibleTimeRangeEndMillis)!=null?q:-1,decorationTimeMillis:(w=H.decorationTimeMillis)!=null?w:NaN,label:H.label?g.q1(H.label):""});Q=h;this.heatMarkersDecorations=Q}}X.xr=this.J;g.qE(this.element,"ytp-timed-markers-enabled",D);return D}; g.B.Fk=function(){g.rU(this);CN(this);h0s(this,this.J);if(this.G){var D=g.sO(this.element).x||0;this.G.Fk(D,this.X)}}; g.B.Kj5=function(){var D=this.api.getVideoData();D&&FB2(this,D)}; g.B.onClickCommand=function(D){if(D=g.Z(D,Hy)){var X=D.key;D.isVisible&&X&&qus(this,X)}}; g.B.Cis=function(D){this.api.ER("innertubeCommand",this.kh[D.id])}; g.B.Ja=function(){CN(this);var D=this.api.getCurrentTime();(Dthis.clipEnd)&&this.FI()}; g.B.Xg=function(D){if(!D.defaultPrevented){var X=!1;switch(D.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);X=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);X=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);X=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);X=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&JE(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);X=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&JE(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),X=!0}X&&D.preventDefault()}}; g.B.bf=function(D,X){this.updateVideoData(X,D==="newdata")}; g.B.KO=function(){this.bf("newdata",this.api.getVideoData())}; g.B.updateVideoData=function(D,X){X=X===void 0?!1:X;var M=!!D&&D.X8();M&&(XX(D)||KB9(this)?this.Zc=!1:this.Zc=D.allowLiveDvr,g.qE(this.api.getRootNode(),"ytp-enable-live-buffer",!(D==null||!XX(D))),FB2(this,D));bkd(this,this.api.dM());if(X){if(M){X=D.clipEnd;this.clipStart=D.clipStart;this.clipEnd=X;xo(this);for(AE(this,this.f$,this.h5);this.U.length>0;)this.U.pop().dispose();this.heatMarkersDecorations=[];this.J5={};var Q;(Q=this.G)==null||Q.reset();zf(this);g.qE(this.api.getRootNode(),"ytp-fine-scrubbing-exp", vm(this))}else this.FI();this.KY()}if(D){var h;Q=((h=this.g3)==null?void 0:h.type)==="clips";if(h=!D.isLivePlayback){h=this.api.getVideoData();X=g.RT(h);M=jlo(h);var H;h=X!=null||M!=null&&M.length>0||((H=h.Cj)==null?void 0:H.length)>0}if(h&&!Q){H=this.api.getVideoData();Q=g.RT(H);h=!1;if(Q==null?0:Q.markersMap){h=this.api.getVideoData();var t;h.CQ=((t=Q.visibleOnLoad)==null?void 0:t.key)||h.CQ;t=g.e(Q.markersMap);for(Q=t.next();!Q.done;Q=t.next())Q=Q.value,Q.key&&Q.value&&(this.J5[Q.key]=Q.value, Q.value.onChapterRepeat&&(h.xj=Q.value.onChapterRepeat));h.CQ!=null&&qus(this,h.CQ);h=!0}var q;if(((q=H.Cj)==null?void 0:q.length)>0){q=g.tu.getState().entities;t=g.e(H.Cj);for(Q=t.next();!Q.done;Q=t.next()){Q=Q.value;M=void 0;X=(M=Oq(q,"macroMarkersListEntity",Q))==null?void 0:M.markersList;var w=M=void 0;if(((M=X)==null?void 0:M.markerType)==="MARKER_TYPE_TIMESTAMPS"||((w=X)==null?void 0:w.markerType)==="MARKER_TYPE_HEATMAP")this.t$[Q]=X}h=this.jY()||h}!h&&(q=jlo(H))&&(Xv9(this,q),H.XS=this.S,D9m(this)); Va1(this,null);D.qq&&this.U.length===0&&(D=D.qq,q=D.key,D.isVisible&&q&&qus(this,q))}else GP9(this),kPR(this)}CN(this)}; g.B.RT=function(D){this.K&&!g.x(D.state,32)&&this.api.getPresentingPlayerType()!==3&&this.K.cancel();var X;((X=this.G)==null?0:X.isEnabled)&&g.x(D.state,8)&&this.api.pauseVideo();D=this.api.getPresentingPlayerType()===2||!this.api.dM()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.qE(this.WB,"ytp-hide-scrubber-button",D)}; g.B.Bj=function(D){var X=!!this.g3!==!!D,M=this.g3;this.g3=D;Va1(this,M);(D==null?void 0:D.type)!=="clips"&&D||(D?(this.updateValue("clipstarticon",DB5()),this.updateValue("clipendicon",DB5()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",xqd()),this.updateValue("clipendicon",JW5()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),X&&(this.updateVideoData(this.api.getVideoData(), !0),g.rU(this)),xo(this));AE(this,this.f$,this.h5)}; g.B.JR4=function(){this.api.publish("progressBarHoverStart")}; g.B.cRs=function(D,X,M){var Q=g.sO(this.element),h=oZ(this).S,H=M?M.getAttribute("data-tooltip"):void 0,t=M?M.getAttribute("data-position"):void 0,q=M?M.getAttribute("data-offset-y"):void 0;q=q?Number(q):0;t&&(D=nd(this.Y,Number(M.getAttribute("data-position")),0)*h+g.sO(this.progressBar).x);this.R2.x=D-Q.x;this.R2.y=X-Q.y;D=oZ(this);M=lK(this,D);X=0;var w;if((w=this.api.getVideoData())==null?0:XX(w))(w=this.api.getProgressState().seekableEnd)&&M>w&&(M=w,D.position=nd(this.Y,w)*oZ(this).S),X=this.Y.G; KB9(this)&&(X=this.Y.G);w=H||g.$u(this.Zc?M-this.Y.S:M-X);X=D.position+this.XV;M-=this.api.w3();var T;if((T=this.G)==null||!T.isEnabled)if(this.api.Wx()){if(this.S.length>1){T=Yo(this,this.R2.x,!0);if(!this.g3)for(Q=0;Q1)for(Q=0;Q0)for(T=this.R2.x,Q=g.e(this.J),h=Q.next();!h.done;h=Q.next())h=h.value,t=iK(this,h.timeRangeStartMillis/ (this.Y.S*1E3),oZ(this)),g.qE(h.element,"ytp-timed-marker-hover",t<=T&&t+6>=T);Q=this.tooltip.scale;T=this.api.T("delhi_modern_web_player")?67:45;q=(isNaN(q)?0:q)-T*Q;this.api.T("web_key_moments_markers")?this.w$?(T=UPs(this.J,M*1E3),T=T!=null?this.J[T].title:""):(T=Dn(this.S,M*1E3),T=this.S[T].title):(T=Dn(this.S,M*1E3),T=this.S[T].title);T||(q+=16*Q);this.tooltip.scale===.6&&(g.uS(this.api.W())?(q=this.api.lj().getPlayerSize().height-225,Q=this.api.T("delhi_modern_web_player")?70:110,q=T?q+Q:q+ Q+16):q=T?110:126);Q=Dn(this.S,M*1E3);this.M5=BC_(this,M,Q)?Q:BC_(this,M,Q+1)?Q+1:-1;g.qE(this.api.getRootNode(),"ytp-progress-bar-snap",this.M5!==-1&&this.S.length>1);Q=!1;h=g.e(this.heatMarkersDecorations);for(t=h.next();!t.done;t=h.next()){t=t.value;var L=M*1E3;L>=t.visibleTimeRangeStartMillis&&L<=t.visibleTimeRangeEndMillis&&(T=t.label,w=g.$u(lK(this,D)),Q=!0)}this.wj!==Q&&(this.wj=Q,this.api.logVisibility(this.QB,this.wj));g.qE(this.api.getRootNode(),"ytp-progress-bar-decoration",Q);Q=160*this.tooltip.scale* 2;h=T.length*(this.D?8.55:5.7);h=h<=Q?h:Q;t=h<160*this.tooltip.scale;Q=3;!t&&h/2>D.position&&(Q=1);!t&&h/2>this.X-D.position&&(Q=2);this.api.W().J&&(q-=10);this.U.length&&this.U[0].X8&&(q-=14*(this.D?2:1),this.OR||(this.OR=!0,this.api.logVisibility(this.R5,this.OR)));var K;if(vm(this)&&(((K=this.G)==null?0:K.isEnabled)||this.o5>0)){var a;q-=((a=this.G)==null?0:a.isEnabled)?(this.D?135:90)-this.a5:this.o5}K=void 0;vm(this)&&!this.api.T("web_player_hide_fine_scrubbing_edu")&&(K="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.yf||(this.yf=!0,this.api.logVisibility(this.p6,this.yf)));this.tooltip.OZ(X,M,w,!!H,q,T,Q,K)}else this.tooltip.OZ(X,M,w,!!H,q);g.hN(this.api.getRootNode(),"ytp-progress-bar-hover");s4o(this)}; g.B.dKs=function(){this.KY();g.tN(this.api.getRootNode(),"ytp-progress-bar-hover");this.OR&&(this.OR=!1,this.api.logVisibility(this.R5,this.OR));this.yf&&(this.yf=!1,this.api.logVisibility(this.p6,this.yf));this.api.T("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.B.CHF=function(D,X){var M=g.sO(this.element);this.ZJ=D-M.x;vm(this)&&this.G&&(this.G.L$?RZ(this.G,this.api.getCurrentTime()):O$5(this.G),this.G.show(),g.qE(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.G.isEnabled));this.ZW&&(this.ZW.dispose(),this.ZW=null);this.tC=X;this.kC=this.api.getCurrentTime();this.S.length>1&&this.M5!==-1?this.api.seekTo(this.S[this.M5].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(lK(this,oZ(this)),!1,void 0,void 0,7);g.hN(this.element,"ytp-drag");(this.u$= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.B.ARI=function(){if(vm(this)&&this.G){var D=(this.D?135:90)-this.a5;this.o5>=D*.5?(this.G.enable(),RZ(this.G,this.api.getCurrentTime()),nNW(this,D)):zf(this)}if(g.x(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var X;if((X=this.G)==null?0:X.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.S.length>1&&this.M5!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&JE(this,this.kC,this.S[this.M5].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.S[this.M5].startTime/1E3,void 0,void 0,void 0,7);else{D=lK(this,oZ(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&JE(this,this.kC,D,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(D,void 0,void 0,void 0,7);X=g.e(this.heatMarkersDecorations);for(var M=X.next();!M.done;M=X.next())M=M.value,D*1E3>=M.visibleTimeRangeStartMillis&&D*1E3<=M.visibleTimeRangeEndMillis&& this.api.logClick(this.QB)}g.tN(this.element,"ytp-drag");this.L$&&(this.sR.src=this.L$);this.u$&&!g.x(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.B.t$s=function(D,X){var M=this,Q=oZ(this),h=lK(this,Q);this.api.lj().Ot||(Q.position>this.ZJ+2?this.bM&&(this.sR.src=this.bM):Q.position1);this.Ew(D&&this.B.lj().getPlayerSize().width>=400);this.B.logVisibility(this.element,this.Gm);var X=1;D&&this.isActive()&&(X=2);if(this.S!==X){this.S=X;D=this.B.T("delhi_modern_web_player_icons");switch(X){case 1:this.updateValue("icon",D?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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"}}]}:{L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{L:"path",xR:!0,Z:{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", D?{L:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{L:"path",Z:{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.AWn())}g.qE(this.element,"ytp-remote-button-active",this.isActive())}}; ko.prototype.G=function(){if(this.B.getOption("remote","quickCast"))this.B.setOption("remote","quickCast",!0);else{var D=this.Vf,X=this.element;if(D.Lk())D.Pb();else{D.initialize();a:{var M=g.e(D.WD.items);for(var Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,Q.priority===1){M=Q;break a}M=null}M&&(M.open(),D.vC(X));D.vC(X)}}this.B.logClick(this.element)};g.U(uK,g.Y);uK.prototype.S=function(D){var X=this.B.W(),M=400;X.X?M=300:X.J&&(M=200);D=this.G&&D.width>=M;this.Ew(D);this.B.logVisibility(this.element,D)}; uK.prototype.Y=function(){if(this.Vf.Gm)this.Vf.Pb();else{var D=g.Vp(this.B.Qq());D&&!D.loaded&&(D.on("tracklist",{includeAsr:!0}).length||D.load());this.B.logClick(this.element);this.Vf.vC(this.element)}}; uK.prototype.updateBadge=function(){var D=this.B.isHdr(),X=this.B.getPresentingPlayerType(),M=X!==2&&X!==3,Q=g.vB(this.B),h=M&&!!g.gb(this.B.Qq());X=h&&Q.displayMode===1;Q=h&&Q.displayMode===2;M=(h=X||Q)||!M?null:this.B.getPlaybackQuality();g.qE(this.element,"ytp-hdr-quality-badge",D);g.qE(this.element,"ytp-hd-quality-badge",!D&&(M==="hd1080"||M==="hd1440"));g.qE(this.element,"ytp-4k-quality-badge",!D&&M==="hd2160");g.qE(this.element,"ytp-5k-quality-badge",!D&&M==="hd2880");g.qE(this.element,"ytp-8k-quality-badge", !D&&M==="highres");g.qE(this.element,"ytp-3d-badge-grey",!D&&h&&X);g.qE(this.element,"ytp-3d-badge",!D&&h&&Q)};g.U(jr,g.SK);g.B=jr.prototype;g.B.C$=function(){var D=this.B.getAvailableAudioTracks();if(D.length>1){this.wO(g.be(D,this.yx));this.tracks=g.Bi(D,this.yx,this);this.countLabel.setContent(D.length?" ("+D.length+")":"");this.publish("size-change");D=this.yx(this.B.getAudioTrack());this.In(D);if(this.B.T("html5_enable_new_audio_settings_menu")){var X;(X=this.S)!=null&&X.setContent(D.toString())}this.enable(!0)}else{if(this.B.T("html5_enable_new_audio_settings_menu")){var M;(M=this.S)!=null&&M.setContent("")}this.enable(!1)}}; g.B.pF=function(D){g.SK.prototype.pF.call(this,D);this.B.setAudioTrack(this.tracks[D]);this.Vf.jg()}; g.B.yx=function(D){return D.toString()}; g.B.OJ=function(D){this.B.T("html5_enable_new_audio_settings_menu")?this.S&&(D?this.S.fK(this):this.S.hq(this)):g.SK.prototype.OJ.call(this,D)}; g.B.onClick=function(){this.B.logClick(this.element)};g.U(R05,g.WB);g.B=R05.prototype;g.B.jA=function(){this.B.jA()}; g.B.open=function(){this.wI.wU()>0&&g.$t(this.Vf,this.wI)}; g.B.OC=function(){this.wI.wU()>0&&this.B.getPresentingPlayerType()!==2&&this.B.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.B.Xg=function(D){D.defaultPrevented||(this.open(),D.preventDefault())}; g.B.fK=function(D){this.wI.fK(D)}; g.B.hq=function(D){this.wI.hq(D)};g.U(DM,HA); DM.prototype.OC=function(){var D=this.B.getPresentingPlayerType();if(D!==2&&D!==3&&g.rb(this.B))this.S||(this.Vf.fK(this),this.S=!0,this.G.push(this.N(this.B,"videodatachange",this.OC)),this.G.push(this.N(this.B,"videoplayerreset",this.OC)),this.G.push(this.N(this.B,"onPlaylistUpdate",this.OC)),this.G.push(this.N(this.B,"autonavchange",this.Y)),D=this.B.getVideoData(),this.Y(D.autonavState),this.B.logVisibility(this.element,this.S));else if(this.S){this.Vf.hq(this);this.S=!1;D=g.e(this.G);for(var X= D.next();!X.done;X=D.next())this.PC(X.value)}}; DM.prototype.Y=function(D){t1(this,D!==1)}; DM.prototype.onSelect=function(D){this.B.K7(D?2:1);this.S&&(this.B.logVisibility(this.element,this.S),this.B.logClick(this.element))}; DM.prototype.Yy=function(){this.S&&this.Vf.hq(this);HA.prototype.Yy.call(this)};g.U(I3R,g.WB);I3R.prototype.onClick=function(D){D.preventDefault();var X,M;(X=g.VV(this.B))==null||(M=X.BI())==null||M.Pb();var Q,h;(Q=g.VV(this.B))==null||(h=Q.p9())==null||h.vC(D.target)};g.U(gNR,g.SK);g.B=gNR.prototype; g.B.OC=function(){var D=this.B.getPresentingPlayerType();if(D!==2&&D!==3){this.R5=this.B.je();var X=this.B.getAvailableQualityLevels();if(this.S){this.G={};D=g.LS(this.B,"getAvailableQualityData",[]);D=g.e(D);for(var M=D.next();!M.done;M=D.next())M=M.value,this.G[M.qualityLabel]=M;D=Object.keys(this.G);X[X.length-1]==="auto"&&D.push("auto");this.a5=new Set(X)}else if(this.Y){M=g.LS(this.B,"getAvailableQualityData",[]);D=[];M=g.e(M);for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,this.X[Q.quality]= Q,Q.quality&&D.push(Q.quality);X[X.length-1]==="auto"&&D.push("auto")}else D=X;g.t$p(this.B)&&this.B.b9()&&D.unshift("missing-qualities");X=this.B.app.v2();M=X.getVideoData();if(!M.G||!M.G.video||M.G.video.qualityOrdinal<1080||M.wG)X=!1;else{Q=/^qsa/.test(M.clientPlaybackNonce);var h="r";M.G.id.indexOf(";")>=0&&(Q=/^[a-p]/.test(M.clientPlaybackNonce),h="x");Q?(X.SH("iqss",{trigger:h},!0),X=!0):X=!1}X&&D.unshift("inline-survey");this.wO(D);X=this.B.getVideoData().cotn?!0:!1;M=this.K.Yh();M=!g.uS(this.B.W())|| !(X===void 0?0:X)||!(M===void 0||M);X=this.wI;M=M===void 0?!1:M;X.ND&&g.qE(X.h$("ytp-panel-footer"),"ytp-panel-hide-footer",M===void 0?!1:M);if(D.length){this.Mv();this.enable(!0);return}}this.enable(!1)}; g.B.Mv=function(){if(this.S){var D=this.B.getPreferredQuality();this.a5.has(D)&&(this.U=this.B.getPlaybackQuality(),this.J=this.B.getPlaybackQualityLabel(),D==="auto"?(this.In(D),this.setContent(this.FV(D))):this.In(this.J))}else D=this.B.getPreferredQuality(),this.options[D]&&(this.U=this.B.getPlaybackQuality(),this.In(D),D==="auto"&&this.setContent(this.FV(D)))}; g.B.pF=function(D){if(D!=="missing-qualities"){g.SK.prototype.pF.call(this,D);var X=this.S?this.G[D]:this.X[D];var M=X==null?void 0:X.quality,Q=X==null?void 0:X.formatId,h=X==null?void 0:X.paygatedQualityDetails;X=h==null?void 0:h.endpoint;if(h){var H;h=(H=this.options[D])==null?void 0:H.element;this.B.logClick(h)}if(this.S){var t,q;if((t=g.Z(X,g.f_W))==null?0:(q=t.popup)==null?0:q.notificationActionRenderer)this.B.ER("innertubeCommand",X);else if(X){this.B.ER("innertubeCommand",X);return}Q?this.B.setPlaybackQuality(M, Q):this.B.setPlaybackQuality(M)}else{if(this.Y){var w,T;if((w=g.Z(X,g.f_W))==null?0:(T=w.popup)==null?0:T.notificationActionRenderer)this.B.ER("innertubeCommand",X);else if(X){this.B.ER("innertubeCommand",X);return}}this.B.setPlaybackQuality(D)}this.Vf.Pb();this.OC()}}; g.B.open=function(){for(var D=g.e(Object.values(this.options)),X=D.next();!X.done;X=D.next()){X=X.value;var M=void 0;this.B.hasVe((M=X)==null?void 0:M.element)&&(M=void 0,this.B.logVisibility((M=X)==null?void 0:M.element,!0))}g.SK.prototype.open.call(this);this.B.logClick(this.element)}; g.B.cR=function(D,X,M){var Q=this;if(D==="missing-qualities")return new g.WB({L:"a",gC:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.B.W().eH,tabindex:"0",role:"menuitemradio"},V:[{L:"div",gC:["ytp-menuitem-label"],Gs:"{{label}}"}]},X,this.FV(D));if(D!=="inline-survey"){var h,H=(h=this.S?this.G[D]:this.X[D])==null?void 0:h.paygatedQualityDetails;h=H==null?void 0:H.veType;H=H==null?void 0:H.trackingParams;X=g.SK.prototype.cR.call(this,D,X,M);H?(this.B.createServerVe(X.element, this,!0),this.B.setTrackingParams(X.element,H)):h&&this.B.createClientVe(X.element,this,h,!0);return X}D=[{L:"span",Gs:"\u00bfSe ve bien?"}];M=g.e([!0,!1]);H=M.next();for(h={};!H.done;h={ME:void 0},H=M.next())h.ME=H.value,H=new g.Y({L:"span",C:"ytp-menuitem-inline-survey-response",V:[h.ME?jyp():Gr_()],Z:{tabindex:"0",role:"button"}}),H.listen("click",function(t){return function(){var q=Q.B.app.v2();q.SH("iqsr",{tu:t.ME});q.getVideoData().wG=!0;Q.Vf.Pb();Q.OC()}}(h)),D.push(H); return new g.WB({L:"div",C:"ytp-menuitem",Z:{"aria-disabled":"true"},V:[{L:"div",gC:["ytp-menuitem-label"],V:D}]},X)}; g.B.FV=function(D,X){X=X===void 0?!1:X;if(D==="missing-qualities")return{L:"div",Gs:"\u00bfFaltan opciones?"};if(D==="inline-survey")return"";var M=this.Y||this.S?[ra2(this,D,X,!1)]:[d9o(this,D)];var Q=this.B.getPreferredQuality();X||Q!=="auto"||D!=="auto"||(M.push(" "),this.S?M.push(ra2(this,this.J,X,!0,["ytp-menu-label-secondary"])):this.Y?M.push(ra2(this,this.U,X,!0,["ytp-menu-label-secondary"])):M.push(d9o(this,this.U,["ytp-menu-label-secondary"])));return{L:"div",V:M}};g.U(XF,EQ);XF.prototype.U=function(){EQ.prototype.U.call(this);this.K&&iks(this)}; XF.prototype.sR=function(){this.f$()}; XF.prototype.a5=function(){this.B.setPlaybackRate(this.S,!0)}; XF.prototype.X=function(D){EQ.prototype.X.call(this,D);this.f$();iks(this);D.preventDefault()};g.U(Mj,g.Y);g.B=Mj.prototype;g.B.init=function(){this.m6(this.S);this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.Y)}; g.B.U4=function(D){if(!D.defaultPrevented){switch(D.keyCode){case 37:case 40:var X=-this.J;break;case 39:case 38:X=this.J;break;default:return}this.m6(this.S+X);D.preventDefault()}}; g.B.hA=function(D){var X=this.S;X+=(D.deltaX||-D.deltaY)<0?-this.K:this.K;this.m6(X);D.preventDefault()}; g.B.n8=function(D){D=(D-g.sO(this.U).x)/this.f$*this.range+this.G;this.m6(D)}; g.B.m6=function(D,X){X=X===void 0?"":X;D=g.XT(D,this.G,this.Y);X===""&&(X=D.toString());this.updateValue("valuenow",D);this.updateValue("valuetext",X);this.R5.style.left=(D-this.G)/this.range*(this.f$-this.L$)+"px";this.S=D}; g.B.focus=function(){this.M5.focus()};g.U(Q4,Mj);Q4.prototype.a5=function(){this.B.setPlaybackRate(this.S,!0)}; Q4.prototype.m6=function(D){Mj.prototype.m6.call(this,D,CM1(this,D).toString());this.D&&(oN5(this),this.sR())}; Q4.prototype.updateValues=function(){var D=this.B.getPlaybackRate();CM1(this,this.S)!==D&&(this.m6(D),oN5(this))};g.U(Ok2,g.Hr);Ok2.prototype.focus=function(){this.S.focus()};g.U(pv5,KU);g.U(Yun,g.SK);g.B=Yun.prototype;g.B.onVideoDataChange=function(D,X){D==="dataloaded"&&RRR(X)&&(D=this.B.getAvailablePlaybackRates(),g.F_(this.U,D)||(this.U=D,this.Y.dispose(),this.Y=new XF(this.B)),this.C$())}; g.B.FV=function(D){return D==="1"?"Normal":D.toLocaleString()}; g.B.C$=function(){var D,X=(D=this.B.getVideoData())==null?void 0:D.gp();D=this.B.getPresentingPlayerType(X);this.enable(D!==2&&D!==3);x9s(this)}; g.B.wO=function(D){g.SK.prototype.wO.call(this,D);this.Y&&this.Y.G.focus()}; g.B.OJ=function(D){g.SK.prototype.OJ.call(this,D);D?(this.R5=this.N(this.B,"onPlaybackRateChange",this.onPlaybackRateChange),x9s(this),l3W(this,this.B.getPlaybackRate()),this.B.T("enable_web_premium_varispeed_upsell")&&(this.B.logVisibility(this.element,!0),this.G&&this.B.logVisibility(this.K.element,!0))):(this.PC(this.R5),this.R5=null)}; g.B.onPlaybackRateChange=function(D){var X=this.B.getPlaybackRate();!this.X&&this.U.includes(X)||Jad(this,X);l3W(this,D)}; g.B.cR=function(D,X,M){return D===this.S&&GIi(this.B)?g.SK.prototype.cR.call(this,D,X,M,{L:"div",C:"ytp-speed-slider-menu-footer",V:[this.Y]}):D===this.G&&AaW(this.B,this.a5)?WBs(this,D,X,M):g.SK.prototype.cR.call(this,D,X,M)}; g.B.pF=function(D){g.SK.prototype.pF.call(this,D);D===this.G?(this.B.logClick(this.K.element),this.B.ER("innertubeCommand",this.a5)):D===this.S?this.B.setPlaybackRate(this.J,!0):this.B.setPlaybackRate(Number(D),!0);(!GIi(this.B)||D!==this.S&&D!==this.G)&&this.Vf.jg()}; g.B.U1=function(D){var X=D===this.S;this.X=!1;X&&h$(this.B)&&!GIi(this.B)?(D=new pv5(this.B),g.$t(this.Vf,D)):g.SK.prototype.U1.call(this,D)};g.U(z05,g.aj);g.U(kIo,KU);g.U(t$,g.SK);t$.prototype.S=function(D){this.setContent(D===1?"Normal":D.toString())}; t$.prototype.open=function(){this.B.T("web_enable_varispeed_panel")?g.$t(this.Vf,new kIo(this.B,this.Vf)):g.$t(this.Vf,new z05(this.B))};g.U(j4s,g.SK);g.B=j4s.prototype;g.B.In=function(D){g.SK.prototype.In.call(this,D)}; g.B.Th=function(D){return D.option.toString()}; g.B.getOption=function(D){return this.settings[D]}; g.B.FV=function(D){return this.getOption(D).text||""}; g.B.pF=function(D){g.SK.prototype.pF.call(this,D);this.publish("settingChange",this.setting,this.settings[D].option)};g.U(Nj,g.aj);Nj.prototype.b$=function(D){for(var X=g.e(Object.keys(D)),M=X.next();!M.done;M=X.next()){var Q=M.value;if(M=this.Yt[Q]){var h=D[Q].toString();Q=!!D[Q+"Override"];M.options[h]&&(M.In(h),M.G.element.setAttribute("aria-checked",String(!Q)),M.S.element.setAttribute("aria-checked",String(Q)))}}}; Nj.prototype.yZ=function(D,X){this.publish("settingChange",D,X)};g.U(qj,g.SK);qj.prototype.S=function(D){return D.languageCode}; qj.prototype.FV=function(D){return this.languages[D].languageName||""}; qj.prototype.pF=function(D){this.publish("select",D);this.B.logClick(this.element);g.Bo(this.Vf)};g.U(Mt_,g.SK);g.B=Mt_.prototype;g.B.Zl=function(D){return g.ef(D)?"__off__":D.displayName}; g.B.FV=function(D){return D==="__off__"?"Desactivados":D==="__translate__"?"Traducci\u00f3n autom\u00e1tica":D==="__contribute__"?"Agregar subt\u00edtulos":D==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(D==="__off__"?{}:this.tracks[D]).displayName}; g.B.pF=function(D){if(D==="__translate__")this.S.open();else if(D==="__contribute__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var X=g.aB(this.B.W(),this.B.getVideoData());g.oW(X)}else if(D==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();var M=Qvd(this);w7(this,M);g.SK.prototype.pF.call(this,this.Zl(M));var Q,h;M=(X=this.B.getVideoData().getPlayerResponse())==null?void 0:(Q=X.captions)==null?void 0:(h=Q.playerCaptionsTracklistRenderer)== null?void 0:h.openTranscriptCommand;this.B.ER("innertubeCommand",M);this.Vf.jg();this.G&&this.B.logClick(this.G)}else{if(D==="__correction__"){this.B.pauseVideo();this.B.isFullscreen()&&this.B.toggleFullscreen();X=Qvd(this);w7(this,X);g.SK.prototype.pF.call(this,this.Zl(X));var H,t;X=(M=this.B.getVideoData().getPlayerResponse())==null?void 0:(H=M.captions)==null?void 0:(t=H.playerCaptionsTracklistRenderer)==null?void 0:t.openTranscriptCommand;this.B.ER("innertubeCommand",X)}else this.B.logClick(this.element), w7(this,D==="__off__"?{}:this.tracks[D]),g.SK.prototype.pF.call(this,D);this.Vf.jg()}}; g.B.C$=function(){var D=this.B.getOptions();D=D&&D.indexOf("captions")!==-1;var X=this.B.getVideoData(),M=X&&X.zD,Q,h=!((Q=this.B.getVideoData())==null||!g.uf(Q));Q={};if(D||M){var H;if(D){var t=this.B.getOption("captions","track");Q=this.B.getOption("captions","tracklist",{includeAsr:!0});var q=h?[]:this.B.getOption("captions","translationLanguages");this.tracks=g.Bi(Q,this.Zl,this);h=g.be(Q,this.Zl);var w,T;Qvd(this)&&((H=X.getPlayerResponse())==null?0:(w=H.captions)==null?0:(T=w.playerCaptionsTracklistRenderer)== null?0:T.openTranscriptCommand)&&h.push("__correction__");if(q.length&&!g.ef(t)){if((H=t.translationLanguage)&&H.languageName){var L=H.languageName;H=q.findIndex(function(K){return K.languageName===L}); XZ1(q,H)}DYR(this.S,q);h.push("__translate__")}H=this.Zl(t)}else this.tracks={},h=[],H="__off__";h.unshift("__off__");this.tracks.__off__={};M&&h.unshift("__contribute__");this.tracks[H]||(this.tracks[H]=t,h.push(H));this.wO(h);this.In(H);t&&t.translationLanguage?this.S.In(this.S.S(t.translationLanguage)):hGm(this.S);D&&this.Y.b$(this.B.getSubtitlesUserSettings());this.countLabel.setContent(Q&&Q.length?" ("+Q.length+")":"");this.publish("size-change");this.B.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.B.bU=function(D){var X=this.B.getOption("captions","track");X=g.gS(X);X.translationLanguage=this.S.languages[D];w7(this,X)}; g.B.yZ=function(D,X){if(D==="reset")this.B.resetSubtitlesUserSettings();else{var M={};M[D]=X;this.B.updateSubtitlesUserSettings(M)}Xw2(this,!0);this.U.start();this.Y.b$(this.B.getSubtitlesUserSettings())}; g.B.x2R=function(D){D||g.km(this.U)}; g.B.Yy=function(){g.km(this.U);g.SK.prototype.Yy.call(this)}; g.B.open=function(){g.SK.prototype.open.call(this);this.options.__correction__&&!this.G&&(this.G=this.options.__correction__.element,this.B.createClientVe(this.G,this,167341),this.B.logVisibility(this.G,!0))};g.U(hum,g.VB);g.B=hum.prototype; g.B.initialize=function(){if(!this.isInitialized){var D=this.B.W();this.isInitialized=!0;try{this.rd=new gNR(this.B,this)}catch(M){g.P3(Error("QualityMenuItem creation failed"))}g.p(this,this.rd);var X=new Mt_(this.B,this);g.p(this,X);D.enableSpeedOptions&&(D.T("web_speed_menu_item_refactor")?(X=new t$(this.B,this),g.p(this,X)):(X=new Yun(this.B,this),g.p(this,X)));(g.eO(D)||D.X)&&(D.G||D.OR)&&(X=new I3R(this.B,this),g.p(this,X));D.G6&&!D.T("web_player_move_autonav_toggle")&&(X=new DM(this.B,this), g.p(this,X));D.T("html5_enable_new_audio_settings_menu")?(this.wh=new R05(this.B,this),g.p(this,this.wh)):(D=new jr(this.B,this),g.p(this,D));this.B.publish("settingsMenuInitialized");e0i(this.settingsButton,this.WD.wU())}}; g.B.fK=function(D){this.initialize();this.WD.fK(D);e0i(this.settingsButton,this.WD.wU())}; g.B.hq=function(D){this.H2()||(this.Gm&&this.WD.wU()<=1&&this.hide(),this.WD.hq(D),e0i(this.settingsButton,this.WD.wU()))}; g.B.vC=function(D){this.initialize();this.WD.wU()>0&&g.VB.prototype.vC.call(this,D)}; g.B.Pb=function(){this.xH?this.xH=!1:g.VB.prototype.Pb.call(this)}; g.B.show=function(){g.VB.prototype.show.call(this);g.hN(this.B.getRootNode(),"ytp-settings-shown")}; g.B.hide=function(){g.VB.prototype.hide.call(this);g.tN(this.B.getRootNode(),"ytp-settings-shown")}; g.B.a6=function(D){this.B.logVisibility(this.element,D);this.B.publish("settingsMenuVisibilityChanged",D)}; g.B.jA=function(){this.B.jA()};g.U(Nui,g.Y);g.B=Nui.prototype;g.B.onClick=function(){if(TP(this)&&(this.B.toggleSubtitles(),this.B.logClick(this.element),!this.isEnabled())){var D=!1,X=g.O0().xl(65);g.uS(this.B.W())&&X!=null&&(D=!X);D&&this.B.W().T("web_player_nitrate_promo_tooltip")&&this.B.publish("showpromotooltip",this.element)}}; g.B.d2F=function(D){var X,M;(X=g.VV(this.B))==null||(M=X.BI())==null||M.vC(D)}; g.B.isEnabled=function(){var D=this.B.getOption("captions","track");return!(!D||!D.displayName)}; g.B.C$=function(){var D=TP(this),X=300;this.B.W().J&&(X=480);this.B.T("delhi_modern_web_player_icons")&&this.updateValue("icon",ttm(this));if(this.B.W().X){this.updateValue("title",g.PB(this.B,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.PB(this.B,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var M=D}else{if(D)(M=this.h$("ytp-subtitles-button-icon"))==null||M.setAttribute("fill-opacity","1"),this.B.W().T("player_tooltip_data_title_killswitch")?this.updateValue("title", g.PB(this.B,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.PB(this.B,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.B.T("delhi_modern_web_player_icons")){var Q;(Q=this.h$("ytp-subtitles-button-icon"))==null||Q.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var h;(h=this.h$("ytp-subtitles-button-icon"))==null||h.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}M=this.B.T("player_disable_caption_button_if_captions_not_available")&&this.B.T("delhi_modern_web_player")?D:!0}this.tooltip.qw();M=M&&this.B.lj().getPlayerSize().width>=X;this.Ew(M);this.B.logVisibility(this.element,M);D?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.B.YR=function(D){g.Y.prototype.YR.call(this,D)};g.U(g.L$,g.Y);g.B=g.L$.prototype;g.B.canShowCountdown=function(){return!K$(this)&&!sJ(this)}; g.B.Ja=function(){var D=this.api.lj().getPlayerSize().width,X=this.f$;this.api.W().J&&(X=400);X=D>=X&&(!sJ(this)||!g.x(this.api.getPlayerStateObject(),64));this.Ew(X);g.qE(this.element,"ytp-time-display-allow-autohide",X&&D<400);D=this.api.getProgressState();if(X){var M=this.api.getPresentingPlayerType();X=this.api.getCurrentTime(M,!1);this.G&&(X-=D.airingStart);K$(this)&&(X-=this.g3.startTimeMs/1E3);this.canShowCountdown()&&this.Y&&(X-=this.api.getDuration(M,!1));var Q=g.$u(X);this.U!==Q&&(this.updateValue("currenttime", Q),this.U=Q);M=K$(this)?(this.g3.endTimeMs-this.g3.startTimeMs)/1E3:this.api.getDuration(M,!1);Q=g.$u(M);this.D!==Q&&(this.updateValue("duration",Q),this.D=Q,X&&(X=g.W9("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.$u(X,!0),DURATION:g.$u(M,!0)}),this.updateValue("timeDisplayAriaLabel",X)))}qkR(this,D.isAtLiveHead);wwH(this,this.api.getLoopRange())}; g.B.onLoopRangeChange=function(D){var X=this.g3!==D;this.g3=D;X&&(this.Ja(),Tu_(this))}; g.B.wP4=function(){this.api.setLoopRange(null)}; g.B.YH5=function(){this.Y=!this.Y;this.Ja()}; g.B.onVideoDataChange=function(D,X,M){this.updateVideoData((this.api.W().T("enable_topsoil_wta_for_halftime")||this.api.W().T("enable_topsoil_wta_for_halftime_live_infra"))&&M===2?this.api.getVideoData(1):X);this.Ja();Tu_(this)}; g.B.updateVideoData=function(D){this.Cq=D.isLivePlayback&&!D.xp;this.G=XX(D);this.isPremiere=D.isPremiere;var X,M,Q;this.liveIndicatorText=(D=(X=D.getWatchNextResponse())==null?void 0:(M=X.playerOverlays)==null?void 0:(Q=M.playerOverlayRenderer)==null?void 0:Q.liveIndicatorText)?u3(D):null;g.qE(this.element,"ytp-live",sJ(this));this.api.T("delhi_modern_web_player")&&this.h$("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.B.onClick=function(D){D.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.B.Yy=function(){this.S&&this.S();g.Y.prototype.Yy.call(this)};g.U(Kus,g.Y);g.B=Kus.prototype;g.B.Sr=function(){aV9(this)}; g.B.pbI=function(D){Lu_(this,D);this.K&&aV9(this)}; g.B.De=function(D){if(!D.defaultPrevented){var X=D.keyCode,M=null;X===37?M=this.volume-5:X===39?M=this.volume+5:X===36?M=0:X===35&&(M=100);M!==null&&(M=g.XT(M,0,100),M===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(M)),D.preventDefault())}}; g.B.L8=function(D){var X=D.deltaX||-D.deltaY;D.deltaMode?this.api.setVolume(this.volume+(X<0?-10:10)):this.api.setVolume(this.volume+g.XT(X/10,-10,10));D.preventDefault();var M,Q;((M=this.api.W())==null?0:(Q=M.getWebPlayerContextConfig())==null?0:Q.enableFullscreenComponentsFeature)&&D.stopPropagation()}; g.B.Q6z=function(){al(this,this.S,!0,this.G,this.api.DT());this.f$=this.volume;this.api.isMuted()&&this.api.unMute()}; g.B.xL=function(D){var X=this.Y?78:52,M=this.Y?18:12;D-=g.sO(this.J).x;M=g.XT((D-M/2)/(X-M),0,1);this.K&&(M=g.XT(D/X,0,1));X=M;X=this.api.T("web_player_non_linear_volume_controls")?X<=.25?X/.25*.1:.1+(X-.25)/.75*.9:X;this.api.setVolume(X*100)}; g.B.s6y=function(){al(this,this.S,!1,this.G,this.api.DT());this.volume===0&&(this.api.mute(),this.api.setVolume(this.f$))}; g.B.onVolumeChange=function(D){svW(this,D.volume,D.muted)}; g.B.wE=function(){al(this,this.S,this.isDragging,this.G,this.api.DT())}; g.B.Yy=function(){g.Y.prototype.Yy.call(this);g.tN(this.X,"ytp-volume-slider-active")};g.U(FF,g.Y); FF.prototype.onVideoDataChange=function(){var D=this.api.W();this.Fk();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).KK;this.Ew(this.visible);this.api.logVisibility(this.element,this.visible&&this.eH);if(this.visible){var X=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",X)}D.Y&&(this.S&&(this.PC(this.S),this.S=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.hN(this.element,"no-link")); X=this.api.W();D=this.api.getVideoData();var M="";X.Y||(X=g.xv(X),X.indexOf("www.")===0&&(X=X.substring(4)),M=g.MD(D)?"Mirar en YouTube Music":X==="youtube.com"?"Mirar en YouTube":g.W9("Mirar en $WEBSITE",{WEBSITE:X}));this.api.T("player_tooltip_data_title_killswitch")?this.updateValue("title",M):this.updateValue("tooltip-title",M)}; FF.prototype.onClick=function(D){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var X=this.api.W(),M=this.api.getVideoUrl(!g.Bb(D),!1,!0,!0);if(g.eO(X)){var Q={};g.eO(X)&&g.LS(this.api,"addEmbedsConversionTrackingParams",[Q]);M=g.nJ(M,Q)}g.qW(M,this.api,D);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; FF.prototype.Fk=function(){var D={L:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{L:"path",xR:!0,C:"ytp-svg-fill",Z:{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 "}}]}, X=28666,M=this.api.getVideoData();this.api.isEmbedsShortsMode()?D={L:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{L:"path",Z:{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.MD(M)&&(D={L:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}},{L:"path",Z:{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"}}]},X=216163);g.MD(M)?g.hN(this.element,"ytp-youtube-music-button"):g.tN(this.element,"ytp-youtube-music-button");D.Z=Object.assign({},D.Z,{"aria-hidden":"true"});this.updateValue("logoSvg",D);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,X,!0)}; FF.prototype.YR=function(D){g.Y.prototype.YR.call(this,D);this.api.logVisibility(this.element,this.visible&&D)};g.U($Ys,g.HE);g.B=$Ys.prototype;g.B.onProgress=function(){if(this.B.T("web_player_max_seekable_on_ended")||!g.x(this.B.getPlayerStateObject(),2))m9(this.C2),this.progressBar.Ja(),this.LQ.Ja()}; g.B.Mr=function(){this.Gh();if(m9(this.C2))this.progressBar.KY();else this.onProgress()}; g.B.rA=function(){this.onProgress();this.K.start()}; g.B.Gh=function(){var D;if(D=!this.B.W().G){D=this.progressBar;var X=2*g.kv()*D.X,M=D.Y;D=(M.S-M.G)*1E3/D.api.getPlaybackRate()/X<300}D=D&&this.B.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;X=!D;m9(this.C2)&&(D=X=!1);X?this.R5||(this.R5=this.N(this.B,"progresssync",this.onProgress)):this.R5&&(this.PC(this.R5),this.R5=null);D?this.K.isActive()||this.K.start():this.K.stop()}; g.B.Fk=function(){var D=this.B.G_(),X=this.B.lj().getPlayerSize(),M=this.B.lj().Ot,Q=ZVd(this),h=UYn(this),H=Math.max(X.width-Q*2,100);if(this.o5!==X.width||this.p$!==D||this.B.T("web_player_rtr_ctrls")&&this.l_!==M)this.o5=X.width,this.p$=D,this.l_=M,this.S.element.style.width=h+"px",this.S.element.style.left=Q+"px",g.PMs(this.progressBar,Q,h,D),this.B.tR().ye=h;M=this.Y;H=Math.min(570*(D?1.5:1),H);D=Math.min(413*(D?1.5:1),Math.round((X.height-cA2(this))*.82));M.maxWidth=H;M.maxHeight=D;M.OL();this.Gh(); this.zm&&LXR(this.A$,X.height)}; g.B.onVideoDataChange=function(){var D=this.B.getVideoData();this.uj.style.background=D.KK?D.rL:"";this.f$&&B7p(this.f$,D.showSeekingControls);this.eH&&B7p(this.eH,D.showSeekingControls)}; g.B.Ly=function(){return this.S.element};g.U(Sko,sL);g.B=Sko.prototype;g.B.gr=function(D){D.target===this.dismissButton.element?this.B.T("web_player_misc_bugfix_a")&&this.S&&dJ2(h9(),this.S):(this.onClickCommand&&(this.B.T("web_player_misc_bugfix_a")&&this.fH(!1),this.B.ER("innertubeCommand",this.onClickCommand)),this.LH())}; g.B.LH=function(){this.enabled=!1;this.K.hide()}; g.B.onVideoDataChange=function(D,X){D==="dataloaded"&&EAi(this);D=[];var M,Q,h,H;if(X=(H=g.Z((M=X.getWatchNextResponse())==null?void 0:(Q=M.playerOverlays)==null?void 0:(h=Q.playerOverlayRenderer)==null?void 0:h.suggestedActionsRenderer,WHn))==null?void 0:H.suggestedActions)for(M=g.e(X),Q=M.next();!Q.done;Q=M.next())(Q=g.Z(Q.value,Gpy))&&g.Z(Q.trigger,x5K)&&D.push(Q);if(D.length!==0){M=[];D=g.e(D);for(Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,h=g.Z(Q.trigger,x5K)){H=(H=Q.title)?g.q1(H):"View Chapters"; X=h.timeRangeStartMillis;var t=h.timeRangeEndMillis;h=h.onlyTriggersOnPlayerPause;Q.tapCommand&&(X!=null&&t!=null&&M.push(new g.v9(X,t,{priority:9,namespace:"suggested_action_button_visible",id:H})),X!=null&&t!=null||h)&&(this.suggestedActions[H]=Q)}this.B.lH(M)}}; g.B.EX=function(){return this.enabled}; g.B.a6=function(){if(this.enabled){if(this.yf.start(),!this.Y&&this.S&&this.B.T("web_player_misc_bugfix_a")&&(t9(h9(),this.S),this.Y=!0),this.text&&this.B.T("web_player_misc_bugfix_a")){var D,X=(D=this.suggestedActions[this.text])==null?void 0:D.rendererContext;if(D=g.Z(X,P1W)){var M;if(D=(M=D.loggingDirectives)==null?void 0:M.trackingParams)this.B.setTrackingParams(this.badge.element,D),this.G=!0}}}else Tt(this),this.B.T("web_player_misc_bugfix_a")&&(this.B.setTrackingParams(this.badge.element,null), this.G=!1);this.lB()}; g.B.onStateChange=function(D){for(var X=g.e(Object.keys(this.suggestedActions)),M=X.next();!M.done;M=X.next()){M=M.value;var Q=void 0;if((Q=g.Z(this.suggestedActions[M].trigger,x5K))==null?0:Q.onlyTriggersOnPlayerPause){D.state.isPaused()?(fV9(this,M),this.enabled=!0,this.a6()):D.oldState.isPaused()&&(this.enabled=!1,this.a6());break}}}; g.B.Yy=function(){EAi(this);sL.prototype.Yy.call(this)};var yz={},B_=(yz.CHANNEL_NAME="ytp-title-channel-name",yz.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",yz.LINK="ytp-title-link",yz.SESSIONLINK="yt-uix-sessionlink",yz.SUBTEXT="ytp-title-subtext",yz.TEXT="ytp-title-text",yz.TITLE="ytp-title",yz);g.U(ZM,g.Y);ZM.prototype.onClick=function(D){this.api.logClick(this.element);var X=this.api.W(),M=this.api.getVideoUrl(!g.Bb(D),!1,!0);g.eO(X)&&(X={},g.LS(this.api,"addEmbedsConversionTrackingParams",[X]),M=g.nJ(M,X));g.qW(M,this.api,D)}; ZM.prototype.C$=function(){var D=this.api.getVideoData(),X=this.api.W();this.updateValue("title",D.title);var M={L:"a",C:B_.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},Gs:"{{channelName}}"};this.api.W().Y?M={L:"span",C:B_.CHANNEL_NAME,Gs:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}}:D.gm&&(M={L:"span",C:B_.SUBTEXT,Gs:D.gm});this.updateValue("subtextElement",M);yA_(this);this.api.getPresentingPlayerType()===2&&(M=this.api.getVideoData(),M.videoId&&M.isListed&&M.author&& M.yf&&M.profilePicture?(this.updateValue("channelLink",M.yf),this.updateValue("channelName",M.author),this.updateValue("channelTitleFocusable","0")):yA_(this));M=X.externalFullscreen||!this.api.isFullscreen()&&X.tC;g.qE(this.link,B_.FULLERSCREEN_LINK,M);X.R5||!D.videoId||M||D.KK||X.Y?this.S&&(this.updateValue("url",null),this.PC(this.S),this.S=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.S||(this.S=this.N(this.link,"click",this.onClick)));X.Y&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.eO(X)?D.expandedTitle:D.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.U(g.UJ,g.Y);g.B=g.UJ.prototype;g.B.setEnabled=function(D){if(this.type!=null)if(D)switch(this.type){case 3:case 2:c_(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.X=D}; g.B.OZ=function(D,X,M,Q,h,H,t,q){if(!this.sR||this.env.J){this.type===3&&this.KY();this.type!==1&&(g.ME(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.X&&this.fade.show(),this.G&&this.G.dispose(),(this.G=this.api.Wx())&&this.G.subscribe("l",this.IG,this));if(q){var w=g.Ft(this.bg).height||141;this.L$.style.bottom=w+2+"px"}else this.L$.style.display="none";this.env.T("delhi_modern_web_player")?(this.update({pillTimeStamp:M,pillTitle:H!=null?H:"",eduText:q!=null?q:""}),g.hN(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:M,title:H!=null?H:"",eduText:q!=null?q:""}),g.qE(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!H));this.api.isInline()&&g.hN(this.bottomText,"ytp-modern-tooltip-text");g.qE(this.element,"ytp-text-detail",!!Q);M=-1;this.G&&(M=Or(this.G,243*this.scale),this.env.T("web_l3_storyboard")&&this.G.levels.length===4&&(M=this.G.levels.length-1),M=Ewp(this.G,M,X));bV5(this,M);if(t)switch(X=g.Ft(this.element).width,t){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=X+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=X/2+"px",this.title.style.textAlign="center"}nA1(this,!!Q,D,h)}}; g.B.HY=function(){this.type===1&&this.KY()}; g.B.Wc=function(D,X){if(this.type)if(this.type===3)this.KY();else return;Pa1(this,D,3,X)}; g.B.qw=function(){this.S&&!this.J&&(this.env.T("player_tooltip_data_title_killswitch")?this.S.hasAttribute("title")&&(this.Y=this.S.getAttribute("title")||"",this.S.removeAttribute("title"),this.X&&c_(this)):this.S.hasAttribute("data-tooltip-title")&&(this.Y=this.S.getAttribute("data-tooltip-title")||"",this.S.removeAttribute("data-tooltip-title"),this.X&&c_(this)))}; g.B.IG=function(D,X){D<=this.U&&this.U<=X&&(D=this.U,this.U=NaN,bV5(this,D))}; g.B.FzC=function(){fhs(this.G,this.U,243*this.scale)}; g.B.KY=function(){switch(this.type){case 2:var D=this.S;D.removeEventListener("mouseout",this.K);D.addEventListener("mouseover",this.D);D.removeEventListener("blur",this.K);D.addEventListener("focus",this.D);euW(this);break;case 3:euW(this);break;case 1:this.G&&(this.G.unsubscribe("l",this.IG,this),this.G=null),this.api.removeEventListener("videoready",this.f$),this.R5.stop()}this.type=null;this.X&&this.fade.hide()}; g.B.dU=function(){if(this.S)for(var D=0;D=0;X--)if(this.UX[X]===D){this.UX.splice(X,1);break}PI(this.C2,64,this.UX.length>0)}; g.B.bq=function(){this.api.j0()&&this.api.SL();return!!this.SX||iVW(this)||g.oF.prototype.bq.call(this)}; g.B.e1=function(){var D=!this.bq(),X=D&&this.api.j0()&&!g.x(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().KK&&!this.api.W().Y&&!this.api.isEmbedsShortsMode(),M=this.r8&&g.R8(this.api)&&g.x(this.api.getPlayerStateObject(),128);D||M?(this.wl.show(),this.EZ.show()):(this.wl.hide(),this.EZ.hide(),this.api.dU(this.xa.element));X?this.XP.vC():this.XP.Pb();this.Mw&&Bus(this.Mw,this.pPf||!D);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&oAo(this);g.oF.prototype.e1.call(this)}; g.B.D7=function(D,X,M,Q,h){D.style.left="";D.style.top="";D.style.bottom="";var H=g.Ft(D),t=Q||this.Mw&&g.vD(this.Mw.Ly(),X),q=Q=null;M!=null&&t||(Q=g.Ft(X),q=g.K7(X,this.api.getRootNode()),M==null&&(M=q.x+Q.width/2));M-=H.width/2;t?(X=this.Mw,Q=ZVd(X),q=UYn(X),t=this.api.lj().getPlayerSize().height,M=g.XT(M,Q,Q+q-H.width),H=t-cA2(X)-H.height):g.vD(this.xa.element,X)?(X=this.api.lj().getPlayerSize().width,M=g.XT(M,12,X-H.width-12),H=this.G_()?this.Sv:this.ev,this.api.W().playerStyle==="gvn"&&(H+= 20),this.r8&&(H-=this.G_()?26:18)):(X=this.api.lj().getPlayerSize(),M=g.XT(M,12,X.width-H.width-12),H=q.y>(X.height-Q.height)/2?q.y-H.height-12:q.y+Q.height+12);D.style.top=H+(h||0)+"px";D.style.left=M+"px"}; g.B.Mr=function(D){D&&(this.api.dU(this.xa.element),this.Mw&&this.api.dU(this.Mw.Ly()));this.F$&&(g.qE(this.contextMenu.element,"ytp-autohide",D),g.qE(this.contextMenu.element,"ytp-autohide-active",!0));g.oF.prototype.Mr.call(this,D)}; g.B.Zw=function(){g.oF.prototype.Zw.call(this);this.F$&&(g.qE(this.contextMenu.element,"ytp-autohide-active",!1),this.F$&&(this.contextMenu.hide(),this.GI&&this.GI.hide()))}; g.B.WL=function(D,X){var M=this.api.lj().getPlayerSize();M=new g.DF(0,0,M.width,M.height);if(D||!m9(this.C2)&&!this.bq()){if(this.api.W().NQ||X)D=this.G_()?this.Sv:this.ev,M.top+=D,M.height-=D;this.Mw&&(M.height-=cA2(this.Mw))}return M}; g.B.Sr=function(D){var X=this.api.getRootNode();D?X.parentElement?(X.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.W().externalFullscreen||(X.parentElement.insertBefore(this.X7.element,X),X.parentElement.insertBefore(this.P0.element,X.nextSibling))):g.ET(Error("Player not in DOM.")):(X.setAttribute("aria-label","Reproductor de video de YouTube"),this.X7.detach(),this.P0.detach());this.Fk();this.TY()}; g.B.G_=function(){if(this.api.T("web_player_use_screen_width_for_big_mode")){var D;return this.api.lj().getPlayerSize().width>=((D=g.lx(this.api.W().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?D:2E3)}D=this.api.W();return this.api.isFullscreen()&&!D.J||!1}; g.B.showControls=function(D){this.QY=!D;this.e1()}; g.B.Fk=function(){var D=this.G_();this.tooltip.scale=D?1.5:1;this.contextMenu&&g.qE(this.contextMenu.element,"ytp-big-mode",D);this.e1();this.api.T("web_player_hide_overflow_button_if_empty_menu")||oAo(this);this.TY();var X=this.api.isEmbedsShortsMode();X&&D?(D=(this.api.lj().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Q_(this.xa.element,"padding-left",D+"px"),g.Q_(this.xa.element,"padding-right",D+"px")):X&&(g.Q_(this.xa.element,"padding-left",""),g.Q_(this.xa.element,"padding-right", ""));g.oF.prototype.Fk.call(this)}; g.B.Xm=function(){if(iVW(this)&&!g.R8(this.api))return!1;var D=this.api.getVideoData();return!g.eO(this.api.W())||this.api.getPresentingPlayerType()===2||!this.HI||((D=this.HI||D.HI)?(D=D.embedPreview)?(D=D.thumbnailPreviewRenderer,D=D.videoDetails&&g.Z(D.videoDetails,Lx5)||null):D=null:D=null,D&&D.collapsedRenderer&&D.expandedRenderer)?g.oF.prototype.Xm.call(this):!1}; g.B.TY=function(){g.oF.prototype.TY.call(this);this.api.logVisibility(this.title.element,!!this.Ut);this.xO&&this.xO.YR(!!this.Ut);this.channelAvatar.YR(!!this.Ut);this.overflowButton&&this.overflowButton.YR(this.cB()&&!!this.Ut);this.shareButton&&this.shareButton.YR(!this.cB()&&!!this.Ut);this.pS&&this.pS.YR(!this.cB()&&!!this.Ut);this.searchButton&&this.searchButton.YR(!this.cB()&&!!this.Ut);this.copyLinkButton&&this.copyLinkButton.YR(!this.cB()&&!!this.Ut);if(!this.Ut){this.api.dU(this.xa.element); for(var D=0;D=0?this.S.playbackRate:1}catch(D){return 1}}; g.B.setPlaybackRate=function(D){this.getPlaybackRate()!==D&&(this.S.playbackRate=D);return D}; g.B.ke=function(){return this.S.loop}; g.B.setLoop=function(D){this.S.loop=D}; g.B.canPlayType=function(D,X){return this.S.canPlayType(D,X)}; g.B.isPaused=function(){return this.S.paused}; g.B.isSeeking=function(){return this.S.seeking}; g.B.isEnded=function(){return this.S.ended}; g.B.QJ=function(){return this.S.muted}; g.B.fQ=function(D){hC();this.S.muted=D}; g.B.Me=function(){var D=this.S.played||CE([],[]);return this.view?lVm(this,D):D}; g.B.HP=function(){try{var D=this.S.buffered}catch(X){}D=D||CE([],[]);return this.view?lVm(this,D):D}; g.B.TQ=function(){var D=this.S.seekable||CE([],[]);return this.view?lVm(this,D):D}; g.B.Rb=function(){var D=this.S;return D.getStartDate?D.getStartDate():null}; g.B.getCurrentTime=function(){if(this.view){var D=this.S.currentTime;D=this.view?D-this.view.start:D;return this.view.Jt||!isFinite(this.view.end)?D:Math.min(D,this.view.end-this.view.start)}return this.S.currentTime}; g.B.setCurrentTime=function(D){this.S.currentTime=this.view?this.view?D+this.view.start:D:D}; g.B.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.Jt?this.view.end-this.view.start:this.S.duration-this.view.start:this.S.duration}; g.B.load=function(){var D=this.S.playbackRate;try{this.S.load()}catch(X){}this.S.playbackRate=D}; g.B.pause=function(){this.S.pause()}; g.B.play=function(){if(this.view&&this.My())try{this.S.currentTime=this.view.start}catch(X){}var D=this.S.play();if(!D||!D.then)return null;D.then(void 0,function(){}); return D}; g.B.r$=function(){return this.S.readyState}; g.B.gz=function(){return this.S.networkState}; g.B.WP=function(){return this.S.error?this.S.error.code:null}; g.B.L2=function(){return this.S.error?this.S.error.message:""}; g.B.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.S instanceof window.HTMLVideoElement&&this.S.getVideoPlaybackQuality)return this.S.getVideoPlaybackQuality();if(this.S){var D=this.S,X=D.webkitDroppedFrameCount;if(D=D.webkitDecodedFrameCount)return{droppedVideoFrames:X||0,totalVideoFrames:D}}return{}}; g.B.ip=function(){try{var D=this.getSize(),X={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:On(this.Me(),",",3),vbu:On(this.HP()),vbs:On(this.TQ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.r$(),vns:""+this.gz(),vec:""+this.WP(),vemsg:this.L2(),vvol:""+this.getVolume(),vdom:""+ +this.Xx(),vsrc:""+ +!!this.Aq(),vw:""+D.width,vh:""+D.height};this.view&&(X.view=this.view.start+"-"+this.view.end);return X}catch(M){return{}}}; g.B.CF=function(){return!!this.S.webkitCurrentPlaybackTargetIsWireless}; g.B.Lj=function(){return!!this.S.webkitShowPlaybackTargetPicker()}; g.B.togglePictureInPicture=function(){var D=this.S,X=window.document;window.document.pictureInPictureEnabled?this.S!==X.pictureInPictureElement?D.requestPictureInPicture():X.exitPictureInPicture():Qe()&&D.webkitSetPresentationMode(D.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.B.GP=function(){return KW2(this.S)}; g.B.getSize=function(){return g.Ft(this.S)}; g.B.setSize=function(D){g.ax(this.S,D)}; g.B.getVolume=function(){return this.S.volume}; g.B.setVolume=function(D){hC();this.S.volume=D}; g.B.addEventListener=function(D,X){this.R5.listen(D,X,!1,this);this.H0(D)}; g.B.removeEventListener=function(D,X){this.R5.PC(D,X,!1,this)}; g.B.dispatchEvent=function(D){if(this.X&&D.type==="pause")return!1;if(rya){var X,M=((X=D.S)==null?void 0:X.timeStamp)||Infinity;X=M>performance.now()?M-Date.now()+performance.now():M;M=this.G||this.U;if((M==null?0:M.qR())||X<=((M==null?void 0:M.U)||0)){var Q;this.uA("rms",{l:"mede",sr:(Q=this.zs)==null?void 0:Q.LF(),et:D.type});return!1}if(this.Ai)return this.uA("rms",{l:"medes",et:D.type}),M&&D.type==="seeking"&&(M.U=performance.now(),this.Ai=!1),!1}return this.R5.dispatchEvent(D)}; g.B.H0=function(D){this.K[D]||(this.S.addEventListener(D,this.listener),this.K[D]=this.listener)}; g.B.setAttribute=function(D,X){this.S.setAttribute(D,X)}; g.B.removeAttribute=function(D){this.S.removeAttribute(D)}; g.B.hasAttribute=function(D){return this.S.hasAttribute(D)}; g.B.Pm=rR(52);g.B.oL=rR(55);g.B.po=rR(58);g.B.lm=rR(61);g.B.jG=function(){return cJ(this.S)}; g.B.ot=function(D){g.hN(this.S,D)}; g.B.T$=function(D){return g.tw(this.S,D)}; g.B.Xx=function(){return g.vD(document.body,this.S)}; g.B.audioTracks=function(){var D=this.S;if("audioTracks"in D)return D.audioTracks}; g.B.Cu=function(){this.L$=!1}; g.B.yg=function(){this.L$=!0;this.fQ(!0)}; g.B.Hn=function(){this.L$&&!this.QJ()&&this.fQ(!0)}; g.B.equals=function(D){return!!D&&D.Ly()===this.Ly()}; g.B.Yy=function(){for(var D=g.e(Object.keys(this.K)),X=D.next();!X.done;X=D.next())X=X.value,this.S.removeEventListener(X,this.K[X]);this.M5&&this.removeEventListener("volumechange",this.Hn);ifa&&YkH(this);wj.prototype.Yy.call(this)}; g.B.kS=function(){return this.WP()===4}; g.B.hasError=function(){return this.WP()>0}; g.B.HQ=function(){switch(this.WP()){case 2:return"progressive.net.retryexhausted";case 3:var D=this.L2();return(D==null?0:D.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.B.Ny=function(D){this.S.disableRemotePlayback=D}; g.B.X$=function(){var D=this.TQ();return D.length<1?NaN:D.end(D.length-1)}; g.B.SF=function(){return this.D}; g.B.activate=function(D){var X="";D&&(AAH(this,D),X=D.Uw);if(!this.Aq()||X)X&&this.Aq()!==X&&(this.vA(X),delete this.G,this.X&&(this.X.reject(),delete this.X),!window.MediaSource&&window.ManagedMediaSource&&this.Ny(!(D==null||!D.S))),D&&D.S||this.load(),this.M5||(this.addEventListener("volumechange",this.Hn),this.M5=!0)}; g.B.AQ=function(){var D=this;!this.G&&Xw()&&(this.X?this.X.then(function(){return void D.AQ()}):this.Aq()||(this.G=this.U5()))}; g.B.hx=function(){this.G&&(this.G.dispose(),this.G=void 0)}; g.B.U5=function(D,X){if(this.G)if(rya&&ht(this.G)&&!this.G.ZA(D,X)){var M;this.uA("rms",{l:"megms",sr:(M=this.zs)==null?void 0:M.LF()});this.hx();this.stopVideo()}else return this.U=this.G,this.G=void 0,this.U;D=wbH(this);this.activate(D.Y);this.U=D;this.Ai=!1;return D}; g.B.rl=function(D){this.G=D}; g.B.playVideo=function(){var D=this;this.isEnded()&&this.seekTo(0);!this.Aq()&&this.D&&(g.ET(Error("playVideo without src")),this.vA(this.D.Uw),this.D.S||this.load());var X=this.play(),M;if((M=this.zs)==null||!MHs(M)){var Q;nb&&(yv||0)>=7&&(!X||((Q=this.zs)==null?0:Q.T("mweb_ios_allow_playback_workaround_when_ready")))&&jOd(this,function(){g.Vj(function(){pwi(D,D.getCurrentTime(),0)},500)})}return X}; g.B.uA=function(D,X,M){var Q;((Q=this.zs)==null?0:Q.t5())&&this.zs.SH(D,X,M===void 0?!1:M)}; g.B.Ho=function(D){this.zs=D}; g.B.Wv=function(){return xP(this.HP(),this.getCurrentTime())}; g.B.seekTo=function(D){this.r$()>0&&(nb&&yv<4&&(D=Math.max(.1,D)),this.setCurrentTime(D))}; g.B.r0=function(D){if(this.r$()===0||this.hasError())return!1;var X=this.getCurrentTime()>0;if(D>=0){var M=this.TQ();if(M.length||!X)return AC(M,D)}return X}; g.B.wY=function(){if(!this.G&&this.U)if(this.U.X)try{var D;this.uA("rms",{l:"mer",sr:(D=this.zs)==null?void 0:D.LF(),rs:HQ(this.U)});this.U.clear();this.rl(this.U);this.U=void 0}catch(X){D=new g.ys("Error while clearing Media Source in MediaElement: "+X.name+", "+X.message),g.ET(D),this.stopVideo()}else this.stopVideo()}; g.B.stopVideo=function(){var D=this;if(!this.G){var X;(X=this.U)==null||Nl(X);if(ifa){if(!this.X){var M=new ql;M.then(void 0,function(){}); this.X=M;oRG&&this.pause();g.Vj(function(){D.X===M&&(YkH(D),M.resolve())},200)}}else YkH(this)}}; g.B.Zd=function(){var D=this.HP();return JC(D)&&this.getDuration()?YP(D,this.getCurrentTime()):0}; g.B.SW=function(){var D=this.HP();return JC(D)&&this.getDuration()?D.end(D.length-1):0}; g.B.xP=function(){var D=this.getDuration();return D===Infinity?1:D?this.Zd()/D:0}; var ifa=!1,oRG=!1,rya=!1;var EJ=[],JAm=!1;g.U(y4,g.O);y4.prototype.J=function(){this.S!=null&&this.app.getVideoData()!==this.S&&ky(this.S)&&O39(this.app,this.S,void 0,void 0,this.Y)}; y4.prototype.X=function(){if(this.S!=null&&this.app.getVideoData()!==this.S&&this.G!=null&&this.U!=null&&this.D!=null&&ky(this.S)){var D=this.app.W().experiments.Q2().S.xl(b6);D=G_R(this.G,this.U,this.D,D);D==null?O39(this.app,this.S,void 0,void 0,this.Y):(this.G.SH("sgap",D),this.G.getVideoData().J&&this.G.Ux(!1),this.app.W().T("html5_remove_loop_range_on_gapless_fallback")&&(mB(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; y4.prototype.K=function(D){var X=this.app.v2();if(X){var M=this.app.getCurrentTime();Math.abs(M-D.end/1E3)>5&&X.SH("glrs",{cmt:M});X.seekTo(0,{seekSource:58});X.SH("glrre",{cmt:M})}}; y4.prototype.Yy=function(){this.S=null;g.O.prototype.Yy.call(this)};g.U(g.P_,wj);g.B=g.P_.prototype;g.B.isView=function(){return!0}; g.B.My=function(){var D=this.mediaElement.getCurrentTime();if(D1;AC(D.K6(),Q-.01)&&!h&&(n$(this,4),M.isActive=!1,M.X3=M.X3||M.isActive,(this.D===1?this.S:this.G).SH("sbh",{}),X.isActive=!0,X.X3=X.X3||X.isActive,this.D!==0&&(this.S.getVideoData().rG=!0));D=this.U.G;if(this.U.S.isActive&&D.isActive&&(n$(this,5),this.D!==0)){D=this.G.gL();M=this.S.gL(); this.S.SH("sbs",{citag:M==null?void 0:M.itag,nitag:D==null?void 0:D.itag});this.G.SH("gitags",{pitag:M==null?void 0:M.itag,citag:D==null?void 0:D.itag});var H;(H=this.G)==null||H.NJ()}}}; g.B.Ec=function(){this.g8()&&this.wM("player-reload-after-handoff")}; g.B.wM=function(D,X){X=X===void 0?{}:X;if(!this.H2()&&this.status.status!==6){var M=this.status.status>=4&&D!=="player-reload-after-handoff";this.status={status:Infinity,error:D};if(this.S&&this.G){var Q=this.G.getVideoData().clientPlaybackNonce;this.S.Rz(new g.za("dai.transitionfailure",Object.assign(X,{cpn:Q,transitionTimeMs:this.Ni,msg:D})));this.S.Ux(M)}this.Qn.reject(D);this.dispose()}}; g.B.g8=function(){return this.status.status>=4&&this.status.status<6}; g.B.Yy=function(){Mmi(this);this.S.unsubscribe("newelementrequired",this.Ec,this);if(this.Y){var D=this.Y.G;this.Y.S.jt.unsubscribe("updateend",this.UP,this);D.jt.unsubscribe("updateend",this.UP,this)}g.O.prototype.Yy.call(this)}; g.B.Pj=function(D){g.qZ(D,128)&&this.wM("player-error-event")};g.U(eB,g.O);eB.prototype.clearQueue=function(D,X){D=D===void 0?!1:D;X=X===void 0?!1:X;Rl(this);this.U&&this.U.reject("Queue cleared");this.app.W().T("html5_gapless_fallback_on_qoe_restart_v2")||X&&this.G&&this.G.Ux(!1);Il(this,D)}; eB.prototype.VV=function(){return!this.S}; eB.prototype.g8=function(){var D;return((D=this.Y)==null?void 0:D.g8())||!1}; eB.prototype.Yy=function(){Rl(this);Il(this);g.O.prototype.Yy.call(this)};g.U(K0R,g.Dq);g.B=K0R.prototype;g.B.getVisibilityState=function(D,X,M,Q,h,H,t,q){return D?4:h&&J1s?7:Ypm&&!(h5()||document.hasFocus&&document.hasFocus())||h5()?3:X?2:M?1:Q?5:h&&!J1s?7:H?8:t?9:q?10:0}; g.B.bI=function(D){this.fullscreen!==D&&(this.fullscreen=D,this.a6())}; g.B.setMinimized=function(D){this.G!==D&&(this.G=D,this.a6())}; g.B.setInline=function(D){this.inline!==D&&(this.inline=D,this.a6())}; g.B.IX=function(D){this.pictureInPicture!==D&&(this.pictureInPicture=D,this.a6())}; g.B.setSqueezeback=function(D){this.Y!==D&&(this.Y=D,this.a6())}; g.B.nJ=function(D){this.U!==D&&(this.U=D,this.a6())}; g.B.CF=function(){return this.S}; g.B.cX=function(){return this.fullscreen!==0}; g.B.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.B.v0=function(){return this.fullscreen}; g.B.isMinimized=function(){return this.G}; g.B.isInline=function(){return this.inline}; g.B.isBackground=function(){return h5()}; g.B.MX=function(){return this.pictureInPicture}; g.B.pB=function(){return!1}; g.B.VJ=function(){return this.Y}; g.B.y5=function(){return this.U}; g.B.a6=function(){this.publish("visibilitychange");var D=this.getVisibilityState(this.CF(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.MX(),this.pB(),this.VJ(),this.y5());D!==this.X&&this.publish("visibilitystatechange");this.X=D}; g.B.Yy=function(){A1_(this.D);g.Dq.prototype.Yy.call(this)};g.U(g.g7,g.O);g.B=g.g7.prototype;g.B.Yy=function(){this.videoData=this.playerState=null;g.O.prototype.Yy.call(this)}; g.B.addCueRange=function(){}; g.B.k8=function(){}; g.B.lc=function(){}; g.B.E0=function(){return!1}; g.B.VR=function(){return!1}; g.B.Kv=function(){}; g.B.Xj=function(){}; g.B.eO=function(){return[]}; g.B.jA=function(){}; g.B.G$=function(){}; g.B.VL=function(){return 1}; g.B.getAudioTrack=function(){return this.getVideoData().p6}; g.B.Yd=function(){return null}; g.B.getAvailableAudioTracks=function(){return[]}; g.B.je=function(){return[]}; g.B.zP=function(){return[]}; g.B.Rj=function(){return""}; g.B.uE=function(){return[]}; g.B.Uh=function(){}; g.B.Gw=function(){return 0}; g.B.getCurrentTime=function(){return 0}; g.B.bV=function(){}; g.B.gL=function(){}; g.B.ip=function(){return{}}; g.B.getDuration=function(){return 0}; g.B.gY=function(){return 0}; g.B.hR=function(){return 0}; g.B.U3=function(){return!1}; g.B.ox=function(){return 0}; g.B.Zd=function(){return 0}; g.B.aV=function(){return null}; g.B.pk=function(){return 0}; g.B.ke=function(){return!1}; g.B.uB=function(){return 0}; g.B.pK=function(){return null}; g.B.U5=function(){return null}; g.B.WC=function(){return 0}; g.B.S9=function(){return 0}; g.B.Hx=function(){return g.r(function(D){g.HZ(D)})}; g.B.BX=rR(11);g.B.getPlaybackQuality=function(){return"auto"}; g.B.getPlaybackRate=function(){return 1}; g.B.getPlayerState=function(){this.playerState||(this.playerState=new g.LZ);return this.playerState}; g.B.getPlayerType=function(){return 0}; g.B.getPlaylistSequenceForTime=function(){return null}; g.B.eC=function(){return function(){}}; g.B.Rq=function(){return""}; g.B.getPreferredQuality=function(){return"unknown"}; g.B.Ql=function(){}; g.B.getProximaLatencyPreference=function(){return 0}; g.B.ym=function(){return GL}; g.B.Wx=function(){return null}; g.B.getStoryboardFormat=function(){return null}; g.B.getStreamTimeOffset=function(){return 0}; g.B.yb=function(){return 0}; g.B.w3=function(){return 0}; g.B.MN=function(){return{Bw:[],d1:[],currentTime:0,LU:"",droppedVideoFrames:0,isGapless:!1,VV:!0,ju:0,Xy:0,On:0,JZ:0,d0:0,N3:[],uo:[],Q8:null,playerState:this.getPlayerState(),cn:null,sK:"",totalVideoFrames:0}}; g.B.getUserAudio51Preference=function(){return 0}; g.B.getUserPlaybackQualityPreference=function(){return""}; g.B.getVideoData=function(){this.videoData||(this.videoData=new g.zL(this.j),g.p(this,this.videoData));return this.videoData}; g.B.WO=function(){return null}; g.B.Bu=function(){return null}; g.B.DW=function(){}; g.B.getVideoLoadedFraction=function(){return 0}; g.B.MP=function(){}; g.B.handleError=function(){}; g.B.Ux=function(){}; g.B.Aj=function(){}; g.B.OG=rR(36);g.B.FO=function(){return!1}; g.B.hasSupportedAudio51Tracks=function(){return!1}; g.B.isAd=function(){return!1}; g.B.bA=function(){return!1}; g.B.CF=function(){return!1}; g.B.isAtLiveHead=function(){return!1}; g.B.B4=function(){return!0}; g.B.isGapless=function(){return!1}; g.B.isHdr=function(){return!1}; g.B.IA=function(){return!1}; g.B.XZ=function(){return!1}; g.B.W9=function(){return!1}; g.B.isProximaLatencyEligible=function(){return!1}; g.B.VV=function(){return!0}; g.B.qN=function(){return!1}; g.B.J7=function(){return!1}; g.B.DN=function(){}; g.B.Ex=function(){}; g.B.NJ=function(){}; g.B.bR=function(){}; g.B.sY=function(){}; g.B.WS=function(){}; g.B.F9=function(){}; g.B.R4=rR(46);g.B.Fg=rR(17);g.B.GK=function(){}; g.B.pauseVideo=function(){}; g.B.prefetchKeyPlay=function(){}; g.B.playVideo=function(){return g.r(function(D){return D.return()})}; g.B.Wk=function(){}; g.B.OU=rR(23);g.B.CY=rR(29);g.B.GU=function(){}; g.B.SH=function(){}; g.B.mL=function(){}; g.B.OX=function(){}; g.B.CH=function(){}; g.B.Rz=function(){}; g.B.o$=function(){}; g.B.p7=function(){}; g.B.U8=function(){}; g.B.Wn=function(){}; g.B.iy=function(){}; g.B.wY=function(){}; g.B.removeCueRange=function(){}; g.B.Xq=function(){}; g.B.HD=function(){return[]}; g.B.fh=function(){}; g.B.Ya=function(){}; g.B.pN=function(){}; g.B.AV=function(){}; g.B.S8=function(){}; g.B.f3=function(){}; g.B.qk=function(){}; g.B.seekTo=function(){}; g.B.sendAbandonmentPing=function(){}; g.B.sendVideoStatsEngageEvent=function(){}; g.B.vH=function(){}; g.B.setLoop=function(){}; g.B.DX=function(){}; g.B.setMediaElement=function(){}; g.B.SU=function(){}; g.B.setPlaybackRate=function(){}; g.B.ZS=function(){}; g.B.wy=function(){}; g.B.Uy=function(){}; g.B.setProximaLatencyPreference=function(){}; g.B.Yx=function(){}; g.B.aU=function(){}; g.B.RR=function(){}; g.B.UL=function(){}; g.B.uP=function(){}; g.B.setUserAudio51Preference=function(){}; g.B.wB=function(){}; g.B.LF=function(){return!1}; g.B.Lj=function(){}; g.B.xE=function(){return!1}; g.B.hn=function(){}; g.B.rH=function(){}; g.B.sL=function(){}; g.B.stopVideo=function(){}; g.B.subscribe=function(){return NaN}; g.B.Dq=function(){}; g.B.togglePictureInPicture=function(){}; g.B.qH=function(){return 0}; g.B.rB=function(){}; g.B.unsubscribe=function(){return!1}; g.B.zR=function(){}; g.B.Ko=function(){return!1}; g.B.MQ=function(){}; g.B.jc=function(){}; g.B.Iq=function(){};g.U(F09,g.O);g.B=F09.prototype;g.B.get=function(D){v_(this);var X=this.data.find(function(M){return M.key===D}); return X?X.value:null}; g.B.zz=function(){v_(this);return this.data.map(function(D){return D.value})}; g.B.set=function(D,X,M){this.remove(D,!0);v_(this);D={key:D,value:X,expire:Infinity};M&&isFinite(M)&&(M*=1E3,D.expire=(0,g.fi)()+M);for(this.data.push(D);this.data.length>this.Y;)(M=this.data.shift())&&r7(this,M,!0);d7(this)}; g.B.remove=function(D,X){X=X===void 0?!1:X;var M=this.data.find(function(Q){return Q.key===D}); M&&(r7(this,M,X),g.QF(this.data,function(Q){return Q.key===D}),d7(this))}; g.B.removeAll=function(D){if(D=D===void 0?!1:D)for(var X=g.e(this.data),M=X.next();!M.done;M=X.next())r7(this,M.value,D);this.data=[];d7(this)}; g.B.Yy=function(){var D=this;g.O.prototype.Yy.call(this);this.data.forEach(function(X){r7(D,X,!0)}); this.data=[]}; g.U(al1,g.O);g.B=al1.prototype;g.B.get=function(D){var X=this.map.get(D);return X?X.fB<=(0,g.fi)()?(this.remove(D,!0),null):X.value:null}; g.B.zz=function(){for(var D=[],X=(0,g.fi)(),M=[],Q=g.e(this.map.entries()),h=Q.next();!h.done;h=Q.next()){var H=g.e(h.value);h=H.next().value;H=H.next().value;H.fB<=X?M.push(h):D.push(H.value)}if(M.length>0){X=g.e(M);for(M=X.next();!M.done;M=X.next())i6(this,M.value,!0);ol(this)}return D}; g.B.set=function(D,X,M){this.map.has(D)&&i6(this,D,!0);var Q=(0,g.fi)(),h=Infinity;M!==void 0&&M!==null&&isFinite(M)&&(h=Q+M*1E3);this.map.set(D,{value:X,fB:h});isFinite(h)&&(this.S.enqueue(h,D),iH(this.S)===h&&ol(this));if(!Number.isNaN(this.U))for(D=this.map.keys();this.map.size>this.U;){X=D.next();if(X.done)break;i6(this,X.value,!0)}}; g.B.remove=function(D,X){i6(this,D,X===void 0?!1:X)&&ol(this)}; g.B.removeAll=function(D){if((D===void 0?0:D)&&this.G){D=g.e(this.map.values());for(var X=D.next();!X.done;X=D.next())this.G(X.value.value)}this.map.clear();this.S.clear();this.Y.stop()}; g.B.Yy=function(){g.O.prototype.Yy.call(this);this.removeAll(!0)};g.U(g.C$,g.O);g.B=g.C$.prototype;g.B.Yy=function(){for(var D=g.e(Object.values(this.U)),X=D.next();!X.done;X=D.next())X.value.dispose();B2s(this);this.S.dispose();g.O.prototype.Yy.call(this)}; g.B.xC=function(D){return D?D===1?this.eH:this.Y.getVideoData().enableServerStitchedDai&&D===2?this.Y.getVideoData().cF?this.U[2]||this.Y:this.Y:this.U[D]||null:this.Y}; g.B.Y5=function(D){var X=D.cpn;D=D.playerType;if(X)a:{D=g.e(Object.values(this.U));for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.Rj()===X){X=M;break a}X=this.D[X]||null}else X=D?this.xC(D):this.Y;return X}; g.B.eh=function(){return this.eH}; g.B.bP=function(D){this.eH=D}; g.B.v2=function(){return this.Y}; g.B.Sy=function(D){this.Y=D;OJ(this)}; g.B.vc=rR(42);g.B.D3=rR(44);dT1.prototype.AS=function(D,X){for(var M=0;M<10;M++){var Q=this.S[M],h=Q+(M===0?D:0),H=1*Math.pow(2,M);if(h<=H)break;Q=Math.min(1,(h-H*.5)/Q);for(h=0;h<16;h++)H=this.values[M*16+h]*Q,this.values[(M+1)*16+h]+=H,this.S[M+1]+=H,this.values[M*16+h]-=H,this.S[M]-=H}Q=M=0;h=8192;X>8192&&(M=Math.ceil(Math.log(X/8192)/Math.log(2)),Q=8192*Math.pow(2,M-1),h=Q*2);M+2>16?this.values[15]+=D:(X=(X-Q)/(h-Q),this.values[M]+=D*(1-X),this.values[M+1]+=D*X);this.S[0]+=D}; dT1.prototype.OW=function(){var D=D===void 0?this.G:D;var X=X===void 0?.02:X;var M=M===void 0?.98:M;for(var Q=this.Y,h=0;h<16;h++)Q[h]=this.values[h];h=this.S[0];for(var H=1;H<11;H++){var t=this.S[H];if(t===0)break;for(var q=Math.min(1,(D-h)/t),w=0;w<16;w++)Q[w]+=this.values[H*16+w]*q;h+=t*q;if(q<1)break}for(H=D=t=0;H<16;H++){q=t+Q[H]/h;D+=Math.max(0,Math.min(q,M)-Math.max(t,X))*(H>0?8192*Math.pow(2,H-1):0);if(q>M)break;t=q}return D/(M-X)};A$.prototype.AS=function(D,X){D=Math.min(this.S,Math.max(1,Math.round(D*this.resolution)));D+this.G>=this.S&&(this.Y=!0);for(;D--;)this.values[this.G]=X,this.G=(this.G+1)%this.S;this.xk=!0}; A$.prototype.percentile=function(D){var X=this;if(!this.Y&&this.G===0)return 0;this.xk&&(g.aM(this.D,function(M,Q){return X.values[M]-X.values[Q]}),this.xk=!1); return this.values[this.D[Math.round(D*((this.Y?this.S:this.G)-1))]]||0}; A$.prototype.OW=function(){return this.X?(this.percentile(this.U-this.X)+this.percentile(this.U)+this.percentile(this.U+this.X))/3:this.percentile(this.U)};g.U(r6m,g.O);r6m.prototype.A$=function(){var D;(D=this.yf)==null||D.start();FA(this)&&this.policy.K&&this.t$()};Cip.prototype.T=function(D){return this.experiments.Z4(D)};g.U(A6s,g.pS);g.B=A6s.prototype;g.B.Dm=function(){}; g.B.Rj=function(){return this.videoData.clientPlaybackNonce}; g.B.getVideoData=function(){if(g.pS.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){var D=KRi(this.Bb,g.pS.prototype.getCurrentTime.call(this))||g.pS.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==D.clientPlaybackNonce&&Yw5(this.U,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:D.clientPlaybackNonce});return this.videoData}return KRi(this.Bb,g.pS.prototype.getCurrentTime.call(this))||g.pS.prototype.getVideoData.call(this)}; g.B.getCurrentTime=function(D){var X=g.pS.prototype.getCurrentTime.call(this);if(g.pS.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){this.S===0?D||(X-=this.startTimeSecs,g.pS.prototype.getVideoData.call(this).T("html5_ssdai_log_missed_ad_impressions")&&this.G&&this.Y&&X>1&&this.SH("sdai-admiss",{cpn:this.Rj(),ct:X.toFixed(3),pfs:this.Y}),this.G=!1):D&&(X=this.S);var M=D?this.Bb.BH||g.pS.prototype.getCurrentTime.call(this):wfW(this.Bb,g.pS.prototype.getCurrentTime.call(this)); X!==M&&Yw5(this.U,"time"+(D!=null?D:!1),{time:X,ref:M,ct:D!=null?D:!1})}else X=D?this.Bb.BH||X:wfW(this.Bb,X);return X}; g.B.getDuration=function(){if(g.pS.prototype.getVideoData.call(this).T("html5_huli_ssdai_use_playback_state")){var D=LRW(this.Bb,g.pS.prototype.getCurrentTime.call(this));this.duration!==D&&Yw5(this.U,"duration",{dur:this.duration,ref:D});return this.duration}return LRW(this.Bb,g.pS.prototype.getCurrentTime.call(this))}; g.B.bX=function(D){this.duration=D};g.J$.prototype.B9=function(D,X){if(X===1)return this.S.get(D);if(X===2)return this.Y.get(D);if(X===3)return this.G.get(D)}; g.J$.prototype.Dz=rR(68);g.J$.prototype.OO=function(D,X,M,Q){M={VE:Q,dG:M};X?this.Y.set(D,M):this.S.set(D,M)}; g.J$.prototype.clearAll=function(){this.S.clear();this.Y.clear();this.G.clear()}; J6R.prototype.clear=function(){this.G=[];this.Y.clear();this.U.clear();this.S.clear()}; J6R.prototype.Y5=function(D){var X=D.cpn;D=D.CK;if(X&&(X=this.Y.get(X))||D&&(X=(this.D?this.Y:this.U).get(D)))return X}; g.U(g.xE,g.O);g.B=g.xE.prototype;g.B.onCueRangeEnter=function(D){var X=D.getId();this.Tm({oncueEnter:1,cpn:X,start:D.start,end:D.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Gw()||0).toFixed(3)});var M=this.S.Y5({cpn:X});this.Tm({enterAdCueRange:1});var Q=this.dj||this.zx().cpn,h;Q=(h=this.S.Y5({cpn:Q}))!=null?h:this.zx();M&&(h=this.playback.getCurrentTime(),M.startTimeSecs=D.start/1E3,M={iW:Q,Er:M,Zh:h},I2s(this,X,D.start/1E3,h),D3(this,M));this.OR=!1}; g.B.qe=function(D,X,M){if(D&&X)if((this.app.z_().D[D]||null)===null){var Q;this.Tm({nocpn:D,active:(Q=this.app.z_().G)==null?void 0:Q.Rj()})}else{this.OR=M!=null?M:!1;var h;M=((h=this.app.z_().G)==null?void 0:h.Rj())||this.playback.Rj();var H;h=(H=this.S.Y5({cpn:M}))!=null?H:this.zx();var t;H=(t=this.S.Y5({cpn:D}))!=null?t:this.zx();H.startTimeSecs=X;H.playerType===2&&(H.ZD=H.ZD!=null?Math.min(H.ZD,X):X);t=this.playback.getCurrentTime();I2s(this,M,X,t);D3(this,{iW:h,Er:H,Zh:t});if(this.playback.getVideoData().gp()&& D===this.playback.Rj())if(X=this.Mj.get(M)){var q;D=g.e((q=this.M5.get(X))!=null?q:[]);for(q=D.next();!q.done;q=D.next()){q=q.value;M=t=void 0;H=this.app.z_();M=M===void 0?"":M;if(h=H.D[q])H.G===h&&(H.G=null),H.X===h&&(H.X=null),q===((t=H.K.get(M))==null?void 0:t.Rj())&&H.K.delete(M),delete H.D[q];this.a5.delete(q);this.Mj.delete(q)}this.M5.delete(X)}else this.Tm({no_abid:D})}}; g.B.yl=function(D,X){if(D===this.playback.Rj())p$(this.app.z_(),this.playback,!1);else{var M=this.a5.get(D);M?(D=!this.OR,M.S=0,M.startTimeSecs=X,M.Y=D===void 0?!0:D,M.G=!0,p$(this.app.z_(),M,!0)):this.Tm({nop_s:D})}}; g.B.onCueRangeExit=function(D){for(var X=this.playback.getCurrentTime()*1E3,M=D.getId(),Q=g.e(this.G.values()),h=Q.next();!h.done;h=Q.next())if(h=h.value,h.getId()!==M&&X>=h.start&&X<=h.end)return;if(M=this.S.Y5({cpn:M}))X=this.playback.getCurrentTime(),Q=this.zx(),Q.startTimeSecs=D.end/1E3,M={iW:M,Er:Q,Zh:X},I2s(this,this.playback.Rj(),D.end/1E3,X),D3(this,M)}; g.B.zx=function(){return{cpn:this.playback.Rj(),durationMs:0,sH:0,playerType:1,e$:0,videoData:this.playback.getVideoData(),errorCount:0,qL:""}}; g.B.seekTo=function(D,X,M,Q){D=D===void 0?0:D;X=X===void 0?{}:X;M=M===void 0?!1:M;Q=Q===void 0?null:Q;jB(this,this.dj);if(this.playback.getVideoData().gp()&&D<=this.BH)this.playback.pauseVideo(),this.BH=0,gSm(this,D);else if(this.OR=this.eH=!0,M)jrW(this,D,X);else{M=this.app.v2();var h=M===this.L$?this.q5:null;kE(this,!1);this.h5=D;this.R2=X;Q!=null&&this.zm.start(Q);M&&(this.q5=h||M.getPlayerState(),M.sL(X),this.L$=M)}}; g.B.Yy=function(){kE(this,!1);Vh2(this);$r9(this);g.O.prototype.Yy.call(this)}; g.B.lI=function(D,X,M){if(M&&X){var Q=this.WW.get(D);if(Q){Q.locations||(Q.locations=new Map);var h=Number(X.split(";")[0]);M=new g.cs(M);this.Tm({hdlredir:1,itag:X,seg:D,hostport:hd(84,M)});Q.locations.set(h,M)}}}; g.B.Ri=function(D,X,M,Q,h,H){var t=Number(M.split(";")[0]),q=Q===3;D=Urm(this,D,X,Q,M,H);this.Tm({gdu:1,seg:X,itag:t,pb:""+!!D});if(!D)return u6(this,X,q),null;D.locations||(D.locations=new Map);if(!D.locations.has(t)){var w,T;H=(w=D.videoData.getPlayerResponse())==null?void 0:(T=w.streamingData)==null?void 0:T.adaptiveFormats;if(!H)return this.Tm({gdu:"noadpfmts",seg:X,itag:t}),u6(this,X,q),null;w=H.find(function(a){return a.itag===t}); if(!w||!w.url){var L=D.videoData.videoId;D=[];var K=g.e(H);for(Q=K.next();!Q.done;Q=K.next())D.push(Q.value.itag);this.Tm({gdu:"nofmt",seg:X,vid:L,itag:t,fullitag:M,itags:D.join(",")});u6(this,X,q);return null}D.locations.set(t,new g.cs(w.url,!0))}H=D.locations.get(t);if(!H)return this.Tm({gdu:"nourl",seg:X,itag:t}),u6(this,X,q),null;H=new bs(H);this.qj&&(H.get("dvc")?this.Tm({dvc:H.get("dvc")||""}):H.set("dvc","webm"));(Q=(K=this.B9(X-1,Q,h))==null?void 0:K.VE)&&H.set("daistate",Q);D.J6&&X>=D.J6&& H.set("skipsq",""+D.J6);(K=this.playback.getVideoData().clientPlaybackNonce)&&H.set("cpn",K);K=[];D.qL&&(K=f2s(this,D.qL),K.length>0&&H.set("acpns",K.join(",")));q||this.WW.set(X,D);q=null;q=H.get("aids");Q=H.QF();(Q==null?void 0:Q.length)>2048&&this.Tm({urltoolong:1,sq:X,itag:t,len:Q.length});this.t$&&(Q&&(H=D.cpn,h=D.qL,b2d(this,H,h),h&&!this.XS.has(h)&&(H=mrs(this,H,h),w=nSR(this,h),this.Tm({iofa:H}),this.Tm({noawnzd:w-H}),this.Tm({acpns:K.join("."),aids:(L=q)==null?void 0:L.replace(/,/g,".")}), this.XS.add(h))),this.Tm({gdu:"v",seg:X,itag:M,ast:D.sH.toFixed(3),alen:D.durationMs.toFixed(3),acpn:D.cpn,avid:D.videoData.videoId}));return Q}; g.B.kt=function(D,X,M){M=M===void 0?!1:M;var Q=Z2m(this,D,X);if(Q){this.G6&&(this.sR=Q);var h=void 0,H=Q.qL;if(H){this.Tm({skipadonsq:X,sts:M,abid:H,acpn:Q.cpn,avid:Q.videoData.videoId});M=this.S.S.get(H);if(!M)return;M=g.e(M);for(H=M.next();!H.done;H=M.next())H=H.value,H.J6=X,H.yO=D,H.sH>Q.sH&&(h=H)}jB(this,this.dj);this.Y=Q.cpn;St9(this);this.api.T("html5_ssdai_enable_media_end_cue_range")&&this.playback.rB(this.Y);D=this.playback.getCurrentTime();ycW(this,Q,h,D,D,!1,!0);Ren(this)}}; g.B.Np=function(){for(var D=g.e(this.S.G),X=D.next();!X.done;X=D.next())X=X.value,X.J6=NaN,X.yO=NaN;St9(this);this.Tm({rsac:"resetSkipAd",sac:this.Y});this.o5.delete(this.Y);this.Y="";this.G6&&(this.sR=void 0)}; g.B.B9=function(D,X,M){return this.f$.B9(D,X,M)}; g.B.Dz=rR(67); g.B.OO=function(D,X,M,Q,h,H,t,q){M.length>0&&this.Tm({onssinfo:1,sq:D,start:X.toFixed(3),cpns:M.join(","),ds:Q.join(","),isVideo:H?1:0});if(this.G6&&this.sR&&this.sR.J6&&M.length>0)for(var w=g.e(M),T=w.next();!T.done;T=w.next())if(T=T.value,T===this.sR.cpn){this.T6!==T&&(this.Tm({skiperror:1,sq:D,acpn:this.sR.cpn,skipsq:this.sR.J6||0}),this.T6=T);break}q&&this.f$.OO(D,H,t,q);if(H){if(M.length&&Q.length)for(this.o5.has(M[0])&&this.Tm({skipfail:1,sq:D,acpn:M[0]}),D=X+this.yb(),H=0;Hthis.U.M$+1){this.Tm({cueStChg:D.identifier,oldSt:this.U.M$.toFixed(3),newSt:D.startSecs.toFixed(3),abid:this.U.B_});if(this.U.B_){var M=D.startSecs-this.U.M$,Q=this.S.S.get(this.U.B_);if(Q){Q=g.e(Q);for(var h= Q.next();!h.done;h=Q.next())h=h.value,h.sH>=0&&(h.sH+=M*1E3,this.j.T("html5_ssdai_update_timeline_on_start_time_change")&&(h.e$+=M*1E3),this.Tm({newApEt:h.sH,newApPrt:h.e$,acpn:h.cpn}))}}this.U.M$=D.startSecs}X?this.yf.add(D.identifier):this.yf.has(D.identifier)&&this.yf.delete(D.identifier);return X}; g.B.T2=function(D){var X=this;if(this.j.T("html5_lifa_ignore_multiple_skips")&&this.R5)return this.Tm({ufs_ad:this.Y,ufs_cur:this.dj,ufs_cont:this.zx().cpn}),!1;jB(this,this.dj);this.playback.pauseVideo();var M=this.playback.getCurrentTime(),Q=this.S.Y5({cpn:this.dj});if(!Q)return this.Tm({skipFail:M}),!1;this.Y=this.dj;this.eH=!1;this.api.T("html5_ssdai_enable_media_end_cue_range")&&this.playback.rB(this.Y);this.mO(Q.qL);vSo(this,Q,this.zx(),D);gSm(this,M,{seekSource:89,Aa:"lifa_skip"});this.R5|| (this.R5=this.events.N(this.api,"progresssync",function(){HI(X.api.g6(),(0,g.fi)(),"ad_to_video");X.R5&&(X.events.PC(X.R5),X.R5=null)})); return!0}; g.B.mO=function(D){if(this.playback.getVideoData().gp()){var X=this.S.S.get(D);if(X){X=g.e(X);for(var M=X.next();!M.done;M=X.next()){M=M.value;var Q=this.G.get(M.cpn);this.G.delete(M.cpn);Q&&this.playback.removeCueRange(Q);uy5(this.S,M)}this.WW.clear();X=this.S;var h;M=(h=X.S.get(D))!=null?h:[];h=g.e(M);for(M=h.next();!M.done;M=h.next())uy5(X,M.value);X.S.delete(D);(D=this.J5.get(D))&&this.MK&&this.playback.AV(D)}}}; g.B.Tm=function(D,X){((X===void 0?0:X)||this.t$)&&this.playback.SH("sdai",D)}; var QNi=0;g.U(rcW,g.O);g.B=rcW.prototype;g.B.onCueRangeEnter=function(D){if(this.S===this.app.v2()){var X=this.D.get(D);X?Acs(this,X.target,X.Ni,D):this.Rz("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:D.toString()})}else if(X=this.G.find(function(h){return h.RA.sU===D})){var M=X.RA,Q=M.target; M=M.Ni;Q?Acs(this,Q,M,D):pfi(this,X.e$,M,D)}}; g.B.onQueuedVideoLoaded=function(){var D=this.J;ha(this);if(D){if(!QD(this,D)){var X=this.app.v2();this.Rz("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:X==null?void 0:X.getVideoData().clientPlaybackNonce,ccpn:""+D.playerVars.cpn})}this.app.v2().addCueRange(D.RA.sU)}}; g.B.seekTo=function(D,X,M,Q){D=D===void 0?0:D;X=X===void 0?{}:X;Q=Q===void 0?null:Q;if(M===void 0?0:M)dr9(this,D,X);else{M=this.app.v2()||null;var h=M===this.U?this.X:null;Hv(this,!1);this.f$=D;this.eH=X;Q!=null&&this.K.start(Q);M&&(this.X=h||M.getPlayerState(),M.sL(),this.U=M)}}; g.B.Ks=function(D){g.qZ(D,128)&&WR1(this)}; g.B.isManifestless=function(){return By(this.S.getVideoData())}; g.B.Yy=function(){Hv(this,!1);ze1(this);g.O.prototype.Yy.call(this)}; g.B.Rz=function(D,X){this.S.Rz(new g.za(D,X))}; var i2n=0;var kv9="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.U(ta,g.O);ta.prototype.ai=function(D){if(D)return this.G.get(D)}; ta.prototype.Yy=function(){this.S.removeAll();this.G.removeAll();g.O.prototype.Yy.call(this)};g.CbG=xf(function(){var D=window.AudioContext||window.webkitAudioContext;try{return new D}catch(X){return X.name}});g.U(MxH,g.Y);g.B=MxH.prototype;g.B.ot=function(){g.HC(this.element,g.BZ.apply(0,arguments))}; g.B.Ya=function(){this.RN&&(this.RN.removeEventListener("focus",this.fb),g.gP(this.RN),this.RN=null)}; g.B.N4=function(){this.H2();var D=this.app.W();D.v8||this.ot("tag-pool-enabled");D.X&&this.ot(g.fl.HOUSE_BRAND);D.playerStyle==="gvn"&&(this.ot("ytp-gvn"),this.element.style.backgroundColor="transparent");D.J5&&(this.Di=g.uQ("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)}; g.B.L3=function(D){g.d_(this.app.W());this.wv=!D;N9(this)}; g.B.resize=function(){if(this.RN){var D=this.Fh();if(!D.isEmpty()){this.app.XF.isFullscreen()&&JW()&&this.YX.start();var X=!g.Nt(D,this.vT.getSize()),M=Nap(this);X&&(this.vT.width=D.width,this.vT.height=D.height);D=this.app.W();(M||X||this.vK||D.J5)&&this.app.XF.publish("resize",this.getPlayerSize())}}}; g.B.bf=function(D,X){this.updateVideoData(X)}; g.B.updateVideoData=function(D){if(this.RN){var X=this.app.W();lD&&(this.RN.setAttribute("x-webkit-airplay","allow"),D.title?this.RN.setAttribute("title",D.title):this.RN.removeAttribute("title"));this.RN.setAttribute("controlslist","nodownload");X.HZ&&D.videoId&&(this.RN.poster=D.gM("default.jpg"))}X=g.m8(D,"yt:bgcolor");this.Zs.style.backgroundColor=X?X:"";this.OV=ww(g.m8(D,"yt:stretch"));this.CT=ww(g.m8(D,"yt:crop"),!0);g.qE(this.element,"ytp-dni",D.KK);this.resize()}; g.B.setGlobalCrop=function(D){this.qO=ww(D,!0);this.resize()}; g.B.setCenterCrop=function(D){this.Ns=D;this.resize()}; g.B.bI=function(){}; g.B.getPlayerSize=function(){var D=this.app.W(),X=this.app.XF.isFullscreen(),M=D.externalFullscreen&&g.eO(D);if(X&&JW()&&!M)return new g.tn(window.outerWidth,window.outerHeight);M=!isNaN(this.y_.width)&&!isNaN(this.y_.height);var Q=this.app.W().T("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.W().T("web_watch_enable_fs_squeezeback_panels");if(X&&!M&&Q)return new g.tn(this.element.clientWidth,this.element.clientHeight);if(X||D.wm){if(window.matchMedia){D="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Ss&&this.Ss.media===D||(this.Ss=window.matchMedia(D));var h=this.Ss&&this.Ss.matches}if(h)return new g.tn(window.innerWidth,window.innerHeight)}else if(M)return this.y_.clone();return new g.tn(this.element.clientWidth,this.element.clientHeight)}; g.B.Fh=function(){var D=this.app.W().T("enable_desktop_player_underlay"),X=this.getPlayerSize(),M=g.lx(this.app.W().experiments,"player_underlay_min_player_width");return D&&this.R7&&X.width>M?(D=g.lx(this.app.W().experiments,"player_underlay_video_width_fraction"),new g.tn(Math.min(X.height*this.getVideoAspectRatio(),X.width*D),Math.min(X.height,X.width*D/this.getVideoAspectRatio()))):X}; g.B.getVideoAspectRatio=function(){return isNaN(this.OV)?hNo(this):this.OV}; g.B.getVideoContentRect=function(D){var X=this.Fh();D=H3i(this,X,this.getVideoAspectRatio(),D);return new g.DF((X.width-D.width)/2,(X.height-D.height)/2,D.width,D.height)}; g.B.bL=function(D){this.R7=D;this.resize()}; g.B.FN=function(){return this.Pe}; g.B.onMutedAutoplayChange=function(){N9(this)}; g.B.setInternalSize=function(D){g.Nt(this.y_,D)||(this.y_=D,this.resize())}; g.B.Yy=function(){this.Di&&g.j8(this.Di);this.Ya();g.Y.prototype.Yy.call(this)};g.B=waH.prototype;g.B.click=function(D,X){this.elements.has(D);this.S.has(D);var M=g.Va();M&&D.visualElement&&g.zm(M,D.visualElement,X)}; g.B.createClientVe=function(D,X,M,Q){var h=this;Q=Q===void 0?!1:Q;this.elements.has(D);this.elements.add(D);M=Kj(M);D.visualElement=M;var H=g.Va(),t=g.FN();H&&t&&(g.cX("combine_ve_grafts")?t9(h9(),M,t):g.DS(g.oO)(void 0,H,t,M));X.addOnDisposeCallback(function(){h.elements.has(D)&&h.destroyVe(D)}); Q&&this.G.add(D)}; g.B.createServerVe=function(D,X,M){var Q=this;M=M===void 0?!1:M;this.elements.has(D);this.elements.add(D);X.addOnDisposeCallback(function(){Q.destroyVe(D)}); M&&this.G.add(D)}; g.B.destroyVe=function(D){this.elements.has(D);this.elements.delete(D);this.Y.delete(D);this.S.delete(D);this.G.delete(D)}; g.B.f9=function(D,X){this.clientPlaybackNonce!==X&&(this.clientPlaybackNonce=X,Ht(h9(),D),Ta1(this))}; g.B.setTrackingParams=function(D,X){this.elements.has(D);X&&(D.visualElement=g.sT(X))}; g.B.Ew=function(D,X,M){this.elements.has(D);X?this.S.add(D):this.S.delete(D);var Q=g.Va(),h=D.visualElement;this.G.has(D)?Q&&h&&(X?g.W3(Q,[h]):g.Gm(Q,[h])):X&&!this.Y.has(D)&&(Q&&h&&g.x0(Q,h,void 0,M),this.Y.add(D))}; g.B.hasVe=function(D){return this.elements.has(D)};g.U(wC,g.O);wC.prototype.sendMessage=function(D){var X=D;D=new Uint8Array(X);for(var M=0;X>0;){var Q=new Uint8Array(Math.min(X,65536));crypto.getRandomValues(Q);D.set(Q,M);X-=Q.length;M+=Q.length}X=performance.now();var h;(h=this.UA)==null||h.postMessage({mainEventSent:X,data:D})}; wC.prototype.onMessage=function(D){var X=D.timeStamp,M=performance.now();D=D.data;var Q=D.mainEventSent;this.SH("worker",{t1:(D.workerEventCreated-performance.timeOrigin-Q).toFixed(3),t2:(D.workerEventProcessed-performance.timeOrigin-Q).toFixed(3),t3:(X-Q).toFixed(3),t4:(M-Q).toFixed(3),data:Uint8Array.BYTES_PER_ELEMENT*D.data.length});this.G++;this.G>1E4&&KOs(this)}; wC.prototype.Yy=function(){clearInterval(this.S);this.S=void 0;KOs(this);g.O.prototype.Yy.call(this)};g.U(g.TI,g.O);g.TI.create=function(D,X,M,Q){try{var h=typeof D==="string"?D:"player"+g.rK(D),H=Pf[h];if(H){try{H.dispose()}catch(q){g.ET(q)}Pf[h]=null}var t=new g.TI(D,X,M,Q);t.addOnDisposeCallback(function(){Pf[h]=null;t.oo&&t.oo()}); return Pf[h]=t}catch(q){throw g.ET(q),(q&&q instanceof Error?q:Error(String(q))).stack;}}; g.B=g.TI.prototype;g.B.qW=function(){return this.visibility}; g.B.bP=function(D){var X=this.eh();if(D!==X){D.getVideoData().autonavState=X.getVideoData().autonavState;X.zR(this.J3,this);var M=X.getPlaybackRate();X.dispose();this.St.bP(D);D.setPlaybackRate(M);D.Dq(this.J3,this);Z3d(this)}}; g.B.iE=function(){this.cY||(this.cY=g.YU(CS(),p0p()));return this.cY}; g.B.Ya=function(D){if(this.mediaElement){this.dH&&(this.events.PC(this.dH),this.dH=null);g.RH(this.RX);this.v2().Ya(!0,!1,D);this.template.Ya();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.o0()}catch(X){g.P3(X)}this.mediaElement=null}}; g.B.Sy=function(D,X,M){if(D!==this.v2()){var Q=null;if(M===void 0||!M){M=this.v2();Q=M.getPlayerState();Ue(this.vD,3);vv(this,"cuerangesremoved",M.uE());this.hC&&!D.isGapless()&&M.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();M=D.LF()&&M.LF();this.r3.UJ("iv_s");M=M===void 0?!0:M;var h;if(h=this.cD){h=this.cD;var H=this.mediaElement;h=!!H&&H===h.mediaElement}h&&(this.Ya(),Kk(this));h=this.v2();h.Ya(!M);h.zR(this.mV,this);h.getPlayerType()!==1&&h.dispose();M=this.St;M.Y=M.S;OJ(M)}D.getPlayerType()=== 1&&this.bP(D);M=D.getPlayerType();h=this.St.U[M]||null;D!==this.eh()&&D!==h&&(h==null||h.dispose(),this.St.U[M]=D);this.St.Sy(D);this.mediaElement&&D.setMediaElement(this.mediaElement);D.Dq(this.mV,this);D.J7()?jCn(this,"setPresenting",!1):(this.bf("newdata",D,D.getVideoData()),Q&&!g.$K(Q,D.getPlayerState())&&this.j5(new g.tq(D.getPlayerState(),Q)),X=X&&D.getPlayerType()===1,D.XZ()&&!X&&this.bf("dataloaded",D,D.getVideoData()),(X=(X=D.getVideoData().G)&&X.video)&&this.XF.sC("onPlaybackQualityChange", X.quality),vv(this,"cuerangesadded",D.uE()),X=D.getPlayerState(),g.x(X,2)?mK9(this):g.x(X,8)?D.playVideo():D.IA()&&D.pauseVideo(),X=this.eh(),D.getPlayerType()===2&&(D.getVideoData().UT=X.getVideoData().clientPlaybackNonce),D.getPlayerType()!==2||this.K2()||(D=D.getVideoData(),X.Wk(D.clientPlaybackNonce,D.zm||"",D.breakType||0,D.Ti,D.videoId||"")))}}; g.B.PA=function(){this.eh()!==this.v2()&&this.Sy(this.eh())}; g.B.z_=function(){return this.St}; g.B.Y5=function(D){return this.St.Y5(D)}; g.B.xC=function(D){return this.St.xC(D)}; g.B.eh=function(){return this.St.eh()}; g.B.v2=function(){return this.St.v2()}; g.B.fU=rR(40);g.B.kmf=function(){Bv(this)||this.Uj(5)}; g.B.xK4=function(){if(!Bv(this)){Go9(this);var D=this.v2(),X=D.getPlayerState();D.IA()?this.pauseVideo():X.isOrWillBePlaying()&&this.playVideo()}}; g.B.canPlayType=function(D){return DH(D)}; g.B.W=function(){return this.j}; g.B.getVideoData=function(){return this.v2().getVideoData()}; g.B.Mo=function(){return this.v2().aV()}; g.B.z6=function(){return this.eh().getVideoData()}; g.B.getVideoLoadedFraction=function(D){return(D=g.FZ(this,{playerType:D}))?D.getVideoLoadedFraction():this.St.S.getVideoLoadedFraction()}; g.B.lj=function(){return this.template}; g.B.Qq=function(){return this.vD}; g.B.g6=function(){return this.r3}; g.B.Gg=function(D,X,M){(X=g.FZ(this,{playerType:X===void 0?1:X}))&&X.vH(D,void 0,M)}; g.B.Yb=function(){var D=this.vD.Yb();this.XF.publish("videoStatsPingCreated",D);return D}; g.B.getVolume=function(){return Math.round(this.XF.getVolume())}; g.B.isMuted=function(){return this.XF.isMuted()}; g.B.nB=function(){if(this.eh()===this.v2()&&this.g3)return this.g3.postId}; g.B.P0$=function(){var D=this;this.T("use_rta_for_player")||(g.Nn(this.j)?g.Ni(this.j,g.lf(this.getVideoData())).then(function(X){OI(CS(),X);lC2(D.getVideoData(),D.j,D.iE())}):lC2(this.getVideoData(),this.j,this.iE()))}; g.B.VU=function(D){this.XF.publish("poTokenVideoBindingChange",D)}; g.B.rT=function(D){this.XF.publish("d6de4videobindingchange",D)}; g.B.RE=function(){this.A8&&this.A8.RE()}; g.B.Yq=function(D){this.A8=D}; g.B.Fd=function(D){if(D===1){this.r3.tick("vr");var X=this.v2();X.lc();Kis(this.r3,X.getVideoData(),WO9(this));APW(this.vD)}X=this.j;if(hR(X)&&X.K||g.iS(X)){var M;(((M=this.v2().getVideoData())==null?0:M.enableServerStitchedDai)||!this.K2())&&this.XF.sC("onAdStateChange",D)}}; g.B.setLoopVideo=function(D){var X=this.v2();X===this.eh()&&X.ke()!==D&&(X.setLoop(D),this.XF.ER("onLoopChange",D))}; g.B.getLoopVideo=function(){return this.v2().ke()}; g.B.setLoopRange=function(D){var X=!1;!!this.g3!==!!D?X=!0:this.g3&&D&&(X=this.g3.startTimeMs!==D.startTimeMs||this.g3.endTimeMs!==D.endTimeMs||this.g3.postId!==D.postId||this.g3.type!==D.type);if(X){X=this.v2();qp(X.getVideoData())&&X.SH("slr",{et:(D==null?void 0:D.endTimeMs)||-1});X=this.eh();X.HD("applooprange");if(D){var M=new g.v9(D.startTimeMs,D.endTimeMs,{id:"looprange",namespace:"applooprange"});X.addCueRange(M)}else{this.z6().clipConfig=void 0;var Q;((M=this.g3)==null?void 0:M.type)!=="repeatChapter"|| isNaN(Number((Q=this.g3)==null?void 0:Q.loopCount))||(M={loopCount:String(this.g3.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Tm("repeatChapterLoopEvent",M))}this.g3=D;this.XF.ER("onLoopRangeChange",D||void 0);this.eh()===this.v2()&&(this.YZ(),X.Kv())}}; g.B.getLoopRange=function(){return this.g3}; g.B.YZ=function(){var D="",X=this.eh();this.g3?X!==this.v2()?D="pnea":dKp(this,X.getCurrentTime())&&(this.g3.loopCount=0,D="ilr"):D="nlr";var M=this.v2();if(qp(M.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var Q,h;M.SH("slrre",{rej:D,ct:X.getCurrentTime(),lst:(Q=this.g3)==null?void 0:Q.startTimeMs,let:(h=this.g3)==null?void 0:h.endTimeMs})}else M.SH("slrre",{});D||i3s(this)}; g.B.setPlaybackRate=function(D,X){if(!isNaN(D)){D=EY_(this,D);var M=this.eh();M.getPlaybackRate()!==D&&(M.setPlaybackRate(D),X&&!this.j.U&&g.gw("yt-player-playback-rate",D),this.XF.sC("onPlaybackRateChange",D))}}; g.B.getCurrentTime=function(D,X){X=X===void 0?!0:X;var M=this.St.eg;if(M)return M.getCurrentTime();var Q=D===2&&this.getVideoData().enableServerStitchedDai;M=null;Q?M=this.v2():M=g.FZ(this,{playerType:D});return M?Q&&this.Iz?(D=this.St.X)?D.getCurrentTime(X):M.getCurrentTime():X?(X=$N(this,M),nk(this,X.getCurrentTime(),X)):M.getCurrentTime():this.St.S.getCurrentTime()}; g.B.Zd=function(){var D=g.FZ(this,{playerType:void 0});if(!D)return this.St.S.Zd();D=$N(this,D);return nk(this,D.Zd(),D)}; g.B.getDuration=function(D,X){X=X===void 0?!0:X;var M=this.St.eg;if(M)return M.getDuration();M=this.getVideoData();var Q=D===2&&M.enableServerStitchedDai,h=null;Q?h=this.v2():h=g.FZ(this,{playerType:D});if(!h)return this.St.S.getDuration();if(M.hasProgressBarBoundaries()&&!Q){var H,t=Number((H=M.progressBarStartPosition)==null?void 0:H.utcTimeMillis),q;H=Number((q=M.progressBarEndPosition)==null?void 0:q.utcTimeMillis);if(!isNaN(t)&&!isNaN(H))return(H-t)/1E3}if(qp(M)&&!M.isLivePlayback)return Pv(this, D);if(X)return D=VD(this,h),nk(this,D.getDuration(),D);if(Q&&this.Iz){if(this.T("html5_huli_ssdai_use_playback_state"))return D=this.St,D=D.G===D.X?D.G:null,(D==null?void 0:D.getDuration())||0;var w;return((w=this.St.X)==null?void 0:w.getDuration())||0}return h.getDuration()}; g.B.hR=function(D){var X=g.FZ(this,{playerType:D});return X?this.K2(X)?(X=VD(this,X),X.hR()-X.getCurrentTime()+this.getCurrentTime(D)):X.hR():this.St.S.hR()}; g.B.finishSegmentByCpn=function(){return[]}; g.B.N4=function(){this.template.N4();var D=this.XF;D.state.element=this.template.element;var X=D.state.element,M;for(M in D.state.S)D.state.S.hasOwnProperty(M)&&(X[M]=D.state.S[M]);(D=s_W(this.template.element))&&this.events.N(this.template,D,this.onFullscreenChange)}; g.B.getDebugText=function(D){var X=this.eh().ip(D),M=this.v2();if(M!==this.eh()){M=M.ip(D);for(var Q=g.e(Object.keys(M)),h=Q.next();!h.done;h=Q.next())h=h.value,X["ad"+h]=M[h];if(D){M=X;Q={};if(h=$f(document,"movie_player"))Q.bounds=h.getBoundingClientRect(),Q["class"]=h.className;h={};var H=g.cD("video-ads");H?(MGH(H,h),h.html=H.outerHTML):h.missing=1;H={};var t=g.cD("videoAdUiSkipContainer"),q=g.cD("ytp-ad-skip-button-container"),w=g.cD("ytp-skip-ad-button"),T=t||q||w;T?(MGH(T,H),H.ima=t?1:0,H.bulleit= q?1:0,H.component=w?1:0):H.missing=1;Q=JSON.stringify({player:Q,videoAds:h,skipButton:H});M.ad_skipBtnDbgInfo=Q}}D&&this.mediaElement&&(X["0sz"]=""+(+qt(this.mediaElement.getSize())===0),X.op=this.mediaElement.T$("opacity"),M=this.mediaElement.GP().y+this.mediaElement.getSize().height,X.yof=""+(+M<=0),X.dis=this.mediaElement.T$("display"));D&&((D=(0,g.eH)())&&(X.gpu=D),(D=this.j.playerStyle)&&(X.ps=D),this.j.OR&&(X.webview=1),(D=this.webPlayerContextConfig.jsUrl)&&(X.js=D));X.debug_playbackQuality= this.XF.getPlaybackQuality(1);X.debug_date=(new Date).toString();X.origin=window.origin;X.timestamp=Date.now();delete X.uga;delete X.q;return JSON.stringify(X,null,2)}; g.B.getFeedbackProductData=function(){var D={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", "),player_release:N[30]},X=this.getPlayerStateObject().QV;X&&(D.player_error_code=X.errorCode,D.player_error_details=JSON.stringify(X.errorDetail));return D}; g.B.getPresentingPlayerType=function(D){if(this.appState===1)return 1;if(Bv(this))return 3;var X,M,Q;return(D&&this.j.Q2().S.xl(oY9)?(Q=(X=this.St.G)==null?void 0:X.isAd())!=null&&Q:(M=this.Iz)==null?0:sNs(M,this.getCurrentTime()))?2:this.v2().getPlayerType()}; g.B.jJ=function(){return!1}; g.B.getPlayerStateObject=function(D){var X=this.St.eg;return X?X.getPlayerState():g.FZ(this,{playerType:D}).getPlayerState()}; g.B.getAppState=function(){return this.appState}; g.B.yR4=function(D){switch(D.type){case "loadedmetadata":this.zq.start();D=g.e(this.KN);for(var X=D.next();!X.done;X=D.next())X=X.value,xK_(this,X.id,X.XI2,X.P$5,void 0,!1);this.KN=[];break;case "loadstart":this.r3.UJ("gv");break;case "progress":case "timeupdate":lw(D.target.HP())>=2&&this.r3.UJ("l2s");break;case "playing":g.Mi&&this.zq.start();if(g.Nn(this.j))D=!1;else{X=g.gb(this.Qq());D=this.mediaElement.T$("display")==="none"||qt(this.mediaElement.getSize())===0;var M=q9(this.template),Q=this.v2().getVideoData(), h=g.RW(this.j);Q=wJ(Q);X=!M||X||h||Q||this.j.o5;D=D&&!X}D&&(D=this.v2(),D.DN(),this.getVideoData().A$||(this.getVideoData().A$=1,this.Vh(),D.playVideo()))}}; g.B.n$I=function(D){this.XF.S$("onLoadProgress",D)}; g.B.M$2=function(){this.XF.publish("playbackstalledatstart")}; g.B.Qz4=function(D,X){this.XF.publish("sabrCaptionsDataLoaded",D,X)}; g.B.YCR=function(D){this.v2().aU(D)}; g.B.GF5=function(D){this.v2().Yx(D)}; g.B.XD5=function(D){D=$N(this,this.v2());D=nk(this,D.getCurrentTime(),D);this.XF.sC("onVideoProgress",D);this.j.KS&&pa9(this,this.visibility.MX())&&this.pauseVideo()}; g.B.fS4=function(){this.XF.sC("onAutoplayBlocked");var D=this.v2().getVideoData();D&&(D.sT=!0);g.eO(this.j)&&(D={autoplayBrowserPolicy:S$(),autoplayIntended:E7(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Tm("embedsAutoplayStatusChanged",D))}; g.B.rR$=function(){this.XF.publish("progresssync")}; g.B.LjH=function(){this.XF.S$("onPlaybackPauseAtStart")}; g.B.olR=function(D){if(this.getPresentingPlayerType()===1){g.qZ(D,1)&&!g.x(D.state,64)&&this.z6().isLivePlayback&&this.eh().isAtLiveHead()&&this.XF.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.qZ(D,2)){if(this.g3&&this.g3.endTimeMs>=(this.getDuration()-1)*1E3){i3s(this);return}mK9(this)}if(g.x(D.state,128)){var X=D.state;this.cancelPlayback(5);X=X.QV;JSON.stringify({errorData:X,debugInfo:this.getDebugText(!0)});this.XF.sC("onError",QBR(X.errorCode));this.XF.S$("onDetailedError",{errorCode:X.errorCode, errorDetail:X.errorDetail,message:X.errorMessage,messageKey:X.iY,cpn:X.cpn});(0,g.fi)()-this.j.EC>6048E5&&this.XF.S$("onReloadRequired")}X={};if(D.state.isPlaying()&&!D.state.isBuffering()&&!Pz("pbresume","ad_to_video")&&Pz("_start","ad_to_video")){var M=this.getVideoData();X.clientPlaybackNonce=M.clientPlaybackNonce;M.videoId&&(X.videoId=M.videoId);g.Eg(X,"ad_to_video");SQ("pbresume",void 0,"ad_to_video");APW(this.vD)}this.XF.publish("applicationplayerstatechange",D)}}; g.B.j5=function(D){this.St.eg||this.XF.publish("presentingplayerstatechange",D)}; g.B.Ks=function(D){a4(this,ZI(D.state));g.x(D.state,1024)&&this.XF.isMutedByMutedAutoplay()&&(Eu(this,{muted:!1,volume:this.Cs.volume},!1),yD(this,!1))}; g.B.onPlayerRequestSent=function(D){this.XF.ER("onPlayerRequestSent",D)}; g.B.kT=function(D,X){D==="newdata"&&Z3d(this);this.XF.publish("applicationvideodatachange",D,X)}; g.B.eMC=function(D,X){Go9(this);this.XF.S$("onPlaybackAudioChange",this.XF.getAudioTrack().Cy.name);this.XF.publish("internalaudioformatchange",this.XF.getAudioTrack().Cy.id,X)}; g.B.PHf=function(D){var X=this.v2().getVideoData();D===X&&this.XF.sC("onPlaybackQualityChange",D.G.video.quality)}; g.B.Yu=function(){var D=this.St.U[2]||null;D&&(D=D.getVideoData(),this.v2().SH("ssdai",{cleanaply:1,acpn:D==null?void 0:D.clientPlaybackNonce,avid:D.videoId,isDai:this.z6().enableServerStitchedDai?1:0}),delete this.St.U[2])}; g.B.Tps=function(D,X){this.bf(D,this.v2(),X)}; g.B.bf=function(D,X,M){this.j.t5()&&X.SH("vdc",{type:D,vid:M.videoId||"",cpn:M.clientPlaybackNonce||""});X===this.eh()&&(this.j.Ey=M.oauthToken);X===this.eh()&&(this.getVideoData().enableServerStitchedDai&&!this.Iz?(this.eh().SH("sdai",{initSstm:1}),this.Iz=new g.xE(this.XF,this.j,this.eh(),this)):!this.getVideoData().enableServerStitchedDai&&this.Iz&&(this.Iz.dispose(),this.Iz=null));if(D==="newdata")Ue(this.vD,2),this.XF.publish("videoplayerreset",X);else{if(!this.mediaElement)return;if(D==="dataloaded")if(this.eh()=== this.v2()){if(A0(M.UR,M.xN),!this.eh().getPlayerState().isError()){var Q=Bv(this);this.z6().isLoaded();Q&&this.Uj(6);RNp(this);OUn(this.vD)||eNo(this)}}else RNp(this);if(X.getPlayerType()===1&&(this.j.M5&&XV_(this),this.getVideoData().isLivePlayback&&!this.j.xB&&this.wM("html5.unsupportedlive",2,"DEVICE_FALLBACK"),M.isLoaded()&&((wNW(M)||this.getVideoData().nj)&&this.XF.publish("legacyadtrackingpingchange",this.getVideoData()),M.hasProgressBarBoundaries()))){var h;Q=Number((h=this.getVideoData().progressBarEndPosition)== null?void 0:h.utcTimeMillis)/1E3;!isNaN(Q)&&(h=this.hR())&&(h-=this.getCurrentTime(),Q=(Q-h)*1E3,h=this.mA.progressEndBoundary,(h==null?void 0:h.start)!==Q&&(h&&this.Xq([h]),Q=new g.v9(Q,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.eh().addCueRange(Q),this.mA.progressEndBoundary=Q))}this.XF.publish("videodatachange",D,M,X.getPlayerType())}this.XF.sC("onVideoDataChange",{type:D,playertype:X.getPlayerType()});this.YZ();(D=M.yd)?this.xb.f9(D,M.clientPlaybackNonce): Ta1(this.xb)}; g.B.Gr=function(){Uu(this,null);this.XF.S$("onPlaylistUpdate")}; g.B.Npf=function(D){delete this.mA[D.getId()];this.eh().removeCueRange(D);a:{D=this.getVideoData();var X,M,Q,h,H,t,q,w,T,L,K=((X=D.a5)==null?void 0:(M=X.contents)==null?void 0:(Q=M.singleColumnWatchNextResults)==null?void 0:(h=Q.autoplay)==null?void 0:(H=h.autoplay)==null?void 0:H.sets)||((t=D.a5)==null?void 0:(q=t.contents)==null?void 0:(w=q.twoColumnWatchNextResults)==null?void 0:(T=w.autoplay)==null?void 0:(L=T.autoplay)==null?void 0:L.sets);if(K)for(X=g.e(K),M=X.next();!M.done;M=X.next())if(M= M.value,h=Q=void 0,M=M.autoplayVideo||((Q=M.autoplayVideoRenderer)==null?void 0:(h=Q.autoplayEndpointRenderer)==null?void 0:h.endpoint),Q=g.Z(M,g.QM),H=h=void 0,M!=null&&((h=Q)==null?void 0:h.videoId)===D.videoId&&((H=Q)==null?0:H.continuePlayback)){D=M;break a}D=null}(X=g.Z(D,g.QM))&&this.XF.ER("onPlayVideo",{sessionData:{autonav:"1",itct:D==null?void 0:D.clickTrackingParams},videoId:X.videoId,watchEndpoint:X})}; g.B.Uj=function(D){D!==this.appState&&(D===2&&this.getPresentingPlayerType()===1&&(a4(this,-1),a4(this,5)),this.appState=D,this.XF.publish("appstatechange",D))}; g.B.wM=function(D,X,M,Q,h){this.eh().ZS(D,X,M,Q,h)}; g.B.Lh=rR(9);g.B.isAtLiveHead=function(D,X){X=X===void 0?!1:X;var M=g.FZ(this,{playerType:D});if(!M)return this.St.S.isAtLiveHead();D=VD(this,M);M=$N(this,M);return D!==M?D.isAtLiveHead(nk(this,M.getCurrentTime(),M),!0):D.isAtLiveHead(void 0,X)}; g.B.ox=function(){var D=g.FZ(this,{playerType:void 0});return D?VD(this,D).ox():this.St.S.ox()}; g.B.seekTo=function(D,X,M,Q,h,H){X=X!==!1;if(Q=g.FZ(this,{playerType:Q}))if(this.appState===2&&fk(this),this.K2(Q))bM(this)?this.Iz.seekTo(D,{seekSource:h},X,M):this.Bb.seekTo(D,{seekSource:h},X,M);else{this.T("html5_sabr_csdai_seek_log")||(H="");var t;Q.seekTo(D,{yX:!X,qg:M,Aa:"application"+((t=H)!=null?t:""),seekSource:h})}}; g.B.seekBy=function(D,X,M,Q){this.seekTo(this.getCurrentTime()+D,X,M,Q,void 0,"_by")}; g.B.g$z=function(){this.XF.sC("SEEK_COMPLETE")}; g.B.Vt5=function(){this.XF.ER("onAbnormalityDetected")}; g.B.Bp$=function(D){this.XF.ER("onSnackbarMessage",D)}; g.B.u8s=function(D){var X=this.v2(),M=X.getVideoData();if(this.appState===1||this.appState===2)M.startSeconds=D;this.appState===2?g.x(X.getPlayerState(),512)||fk(this):this.XF.sC("SEEK_TO",D)}; g.B.jNf=function(){this.XF.publish("airplayactivechange")}; g.B.zMy=function(){this.XF.publish("airplayavailabilitychange")}; g.B.showAirplayPicker=function(){this.v2().Lj()}; g.B.SmI=function(){this.XF.publish("beginseeking")}; g.B.G6y=function(){this.XF.publish("endseeking")}; g.B.getStoryboardFormat=function(D){return(D=g.FZ(this,{playerType:D}))?VD(this,D).getStoryboardFormat():this.St.S.getStoryboardFormat()}; g.B.Wx=function(D){return(D=g.FZ(this,{playerType:D}))?VD(this,D).getVideoData().Wx():this.St.S.Wx()}; g.B.K2=function(D){D=(D||this.v2()).getVideoData();if(bM(this))D=D===this.Iz.playback.getVideoData();else a:{var X=this.Bb;if(D===X.S.getVideoData()&&X.G.length)D=!0;else{X=g.e(X.G);for(var M=X.next();!M.done;M=X.next())if(D.CK===M.value.CK){D=!0;break a}D=!1}}return D}; g.B.Ae=function(D,X,M,Q,h,H,t,q){var w=bM(this);this.v2().SH("appattl",{sstm:this.Iz?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:w});w?(M=H2R(this.Iz,D,X,M,Q,h,H,t,q),D=(M==null?void 0:M.CK)||"",(this.T("html5_ssdai_new_decoration_logic")||this.eh().getVideoData().Vd)&&this.eh().RR(q||"",X,(M==null?void 0:M.clientPlaybackNonce)||"")):D=O2o(this.Bb,D,M,Q,h,H);return D}; g.B.BV=function(D,X,M,Q,h,H,t,q){if(bM(this)){var w;(w=this.Iz)==null||H2R(w,D,X,M,Q,h,H,t,q)}}; g.B.sX=function(D){(this.T("html5_ssdai_new_decoration_logic")||this.eh().getVideoData().Vd)&&this.eh().RR(D,"","");var X;(X=this.Iz)==null||X.sX(D)}; g.B.tv=function(D,X){D=D===void 0?-1:D;X=X===void 0?Infinity:X;bM(this)||ze1(this.Bb,D,X)}; g.B.sQ=function(D,X,M){if(bM(this)){var Q=this.Iz,h=Q.S.Y5({CK:D});h?(M===void 0&&(M=h.e$),FR5(Q,h,X,M)):Q.s5("Invalid_timelinePlaybackId_"+D+"_specified")}else{Q=this.Bb;h=null;for(var H=g.e(Q.G),t=H.next();!t.done;t=H.next())if(t=t.value,t.CK===D){h=t;break}h?(M===void 0&&(M=h.e$),Gv2(Q,h,X,M)):XZ(Q,"InvalidTimelinePlaybackId timelinePlaybackId="+D)}}; g.B.enqueueVideoByPlayerVars=function(D,X,M,Q){M=M===void 0?Infinity:M;Q=Q===void 0?"":Q;this.K2();D=new g.zL(this.j,D);Q&&(D.CK=Q);O39(this,D,X,M)}; g.B.queueNextVideo=function(D,X,M,Q,h){M=M===void 0?NaN:M;D=this.preloadVideoByPlayerVars(D,X===void 0?1:X,M,Q===void 0?"":Q,h===void 0?"":h);X=this.v2();D&&(this.T("html5_check_queue_on_data_loaded")?this.W().supportsGaplessShorts()&&X.getVideoData().J&&(M=this.aM,Q=this.hC.D,M.U!==D&&(M.G=X,M.U=D,M.Y=1,M.S=D.getVideoData(),M.D=Q,M.S.isLoaded()?M.X():M.S.subscribe("dataloaded",M.X,M))):(M=this.j.experiments.Q2().S.xl(b6),M=G_R(X,D,this.hC.D,M),M!=null?(X.SH("sgap",M),X.getVideoData().J&&X.Ux(!1)): (D=D.getVideoData(),X=this.aM,X.S!==D&&(X.S=D,X.Y=1,D.isLoaded()?X.J():X.S.subscribe("dataloaded",X.J,X)))))}; g.B.Iy=function(D,X,M,Q){var h=this;M=M===void 0?0:M;Q=Q===void 0?0:Q;VD(this,this.v2()).DX();N2H(this.hC,D,X,M,Q).then(function(){h.XF.S$("onQueuedVideoLoaded")},function(){})}; g.B.VV=function(){return this.hC.VV()}; g.B.oT=function(D){var X=this.hC.S;return X?X.VR(D):!1}; g.B.clearQueue=function(D,X){this.hC.clearQueue(D===void 0?!1:D,X===void 0?!1:X)}; g.B.loadVideoByPlayerVars=function(D,X,M,Q,h,H){X=X===void 0?1:X;var t=this.eh();if(X===2&&this.z6().enableServerStitchedDai&&t&&!t.bA())return t.SH("lvonss",{vid:(D==null?void 0:D.videoId)||"",ptype:X}),!1;var q=!1;t=new g.zL(this.j,D);t.Ey=H;g.XD(this.j)&&!t.vB&&tQ(this.r3);var w;H=this.r3;var T=(w=t.eH)!=null?w:"";H.timerName=T;this.r3.k5("pl_i");this.T("web_player_early_cpn")&&t.clientPlaybackNonce&&this.r3.infoGel({clientPlaybackNonce:t.clientPlaybackNonce});O_R(t).supportsVp9Encoding===!1&& this.v2().SH("noVp9enc",{});if(this.W().supportsGaplessShorts()){w=srW(this.hC,t,X);if(w==null){a4(this,-1);var L;((L=this.hC.S)==null?0:L.getVideoData().isAd())||ea(this);D=this.hC;D.app.W().T("html5_gapless_new_slr")?mB(D.app,"gaplessshortslooprange"):D.app.setLoopRange(null);D.app.getVideoData().An=!0;var K;(K=D.S)==null||K.f3();var a;(a=D.S)==null||a.Wn();M={Aa:"gapless_to_next_video",seekSource:60,B6:D.D.S};Q=L0d(D);if(D.D.S){var F;h=((F=D.Y)==null?void 0:mX(F))||{};F=h.YG;h=h.AK;h!=null&&F!= null&&(Q=h-F+.001)}var V;(V=D.app.v2())==null||V.seekTo(Q,M);if(!D.app.getPlayerStateObject(X).isPlaying()){var c;(c=D.app.v2())==null||c.playVideo(!0)}T2R(D,Q);var S;(S=D.app.v2())==null||S.pN();D.K();return!0}V=this.T("html5_shorts_gapless_preload_fallback");c=this.hC.S;V&&c&&!c.H2()&&(S=c.getVideoData(),this.St.J.set(R4(X,S),c,3600));this.hC.clearQueue(V);this.v2().SH("sgap",{f:w})}if(h){for(;t.jR.length&&t.jR[0].isExpired();)t.jR.shift();V=t.jR.length-1;q=V>0&&h.G(t.jR[V])&&h.G(t.jR[V-1]);t.jR.push(h)}M|| (D&&VKR(D)?(Gc(this.j)&&!this.sA&&(D.fetch=0),Uu(this,D)):this.playlist&&Uu(this,null),D&&(this.sA=HJ(!1,D.external_list)));this.XF.publish("loadvideo");V=this.jT(t,X,Q);q&&this.wM("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+t.jR.join()).replace(/[;:,]/g,"_"));return V}; g.B.preloadVideoByPlayerVars=function(D,X,M,Q,h){X=X===void 0?1:X;M=M===void 0?NaN:M;h=h===void 0?"":h;Q=X;var H=h,t=Tj(D);if(Q=this.St.J.get(Q+"_"+t+"_"+H+"_"+ +(D.autonav==="1"||D.autonav===!0)+ +(D.autoplay==="1"||D.autoplay===!0||D.autoplay===1))||null)return Q;D=new g.zL(this.j,D);h&&(D.CK=h);h=R4(X,D);Q=this.v2();H=R4(Q.getPlayerType(),Q.getVideoData());h===H?(Q.hn(!0),D.dispose(),M=null):(D.Ky=!0,Q=Lk(this,X,D,!0),(X!==1||!jO(this.j)||this.j.T("html5_allow_multiview_tile_preload")&&D.Jf)&& Q.hn(!0),this.St.J.set(h,Q,M||3600),M=Q);return M}; g.B.setMinimized=function(D){this.visibility.setMinimized(D);(D=x7o(this.vD))&&(this.isMinimized()?D.load():D.unload());this.XF.publish("minimized")}; g.B.setInline=function(D){this.visibility.setInline(D)}; g.B.setInlinePreview=function(D){this.visibility.setInline(D)}; g.B.IX=function(D){Amo(this,D)||this.visibility.IX(D)}; g.B.setSqueezeback=function(D){this.visibility.setSqueezeback(D)}; g.B.Cg=function(){var D,X=(D=this.mediaElement)==null?void 0:D.Ly();X&&(this.j.yw&&JS(AS(function(){return document.exitFullscreen()}),function(){}),JS(AS(function(){return cJ(X)}),function(){}))}; g.B.hV5=function(){this.mediaElement.Ly();this.mediaElement.Ly().webkitPresentationMode==="picture-in-picture"?this.IX(!0):this.IX(!1)}; g.B.togglePictureInPicture=function(){this.v2().togglePictureInPicture()}; g.B.jT=function(D,X,M){var Q=this;X=X===void 0?1:X;Pz("_start",this.r3.timerName)||g.DS(VO)(void 0,this.r3.timerName);var h=!1,H=vYs(this,X,D,!1);H?(h=!0,D.dispose()):(H=Lk(this,X,D,!0,M),(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&H.E0()&&H.hn(),this.zq.stop(),X===1&&X!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,X),this.Sy(H));H===this.eh()&&(this.j.Ey=D.oauthToken);if(!H.E0())return!1;if(H===this.eh()){this.Uj(1);if(this.j.T("html5_allow_multiview_tile_preload")&& h&&H.getVideoData().Jf)return H.SH("app_lv",{pdl:H.XZ()}),H.XZ()?YP9(this,H):H.subscribe("internalvideodatachange",function(t){t==="dataloaded"&&YP9(Q,H)},this),!0; D=fk(this);h&&this.T("html5_player_preload_ad_fix")&&H.getPlayerType()===1&&H.XZ()&&this.bf("dataloaded",H,H.getVideoData());return D}H.rH();return!0}; g.B.cueVideoByPlayerVars=function(D,X){var M=this;X=X===void 0?1:X;var Q=this.eh();if(this.z6().enableServerStitchedDai&&Q&&!Q.bA()&&D&&Object.keys(D).length>0)Q.SH("qvonss",{vid:(D==null?void 0:D.videoId)||"",ptype:X});else if(D&&VKR(D))if(this.Ox=!0,Uu(this,D),(D=g.Nc(this.playlist))&&D.X8())gC(this,D,X);else this.playlist.onReady(function(){cv(M)}); else{X||(X=this.getPresentingPlayerType());X===1&&this.Gr();Q=new g.zL(this.j,D);var h=g.eO(this.j)&&!this.j.R5&&X===1&&!Q.isAd()&&!Q.zm;this.XF.publish("cuevideo",X);h?(this.v2().getVideoData().loading=!0,SLs(Q,D?D:{}).then(function(H){gC(M,H,X)}),Q.dispose()):gC(this,Q,X)}}; g.B.BW=function(D,X,M,Q,h,H,t){if(!D&&!M)throw Error("Playback source is invalid");if(IA(this.j)||g.H9(this.j))return X=X||{},X.lact=Vc(),X.vis=this.XF.getVisibilityState(),this.XF.ER("onPlayVideo",{videoId:D,watchEndpoint:H,sessionData:X,listId:M}),!1;a6m(this.r3);this.r3.reset();D={video_id:D};Q&&(D.autoplay="1");Q&&(D.autonav="1");H&&(D.player_params=H.playerParams);t&&(D.oauth_token=t);M?(D.list=M,this.loadPlaylist(D)):this.loadVideoByPlayerVars(D,1);return!0}; g.B.cuePlaylist=function(D,X,M,Q){this.Ox=!0;lRi(this,D,X,M,Q)}; g.B.loadPlaylist=function(D,X,M,Q){this.Ox=!1;lRi(this,D,X,M,Q)}; g.B.Jk=function(){return this.XF.isMutedByMutedAutoplay()?!1:this.St.eg?!0:!(!this.playlist||!this.playlist.hasNext())}; g.B.bG=rR(7); g.B.nextVideo=function(D,X){var M=g.hu(this.eh().getVideoData());g.rb(this.XF)&&M?this.BW(M.videoId,X?M.g5:M.sessionData,M.playlistId,X,void 0,M.sf||void 0):this.sA?this.XF.S$("onPlaylistNext"):this.getPresentingPlayerType()===3?ed(this.vD).nextVideo():!this.playlist||Gc(this.j)&&!this.XF.isFullscreen()||(this.playlist.hasNext(D)&&ZUR(this.playlist,$75(this.playlist)),this.playlist.loaded?(D=X&&this.j.T("html5_player_autonav_logging"),X&&this.XF.publish("playlistautonextvideo"),this.jT(g.Nc(this.playlist,void 0, X,D),1)):this.Ox=!1)}; g.B.previousVideo=function(D){this.sA?this.XF.S$("onPlaylistPrevious"):this.getPresentingPlayerType()===3?ed(this.vD).JQ():!this.playlist||Gc(this.j)&&!this.XF.isFullscreen()||(this.playlist.hasPrevious(D)&&ZUR(this.playlist,BnW(this.playlist)),this.playlist.loaded?this.jT(g.Nc(this.playlist),1):this.Ox=!1)}; g.B.playVideoAt=function(D){this.sA?this.XF.S$("onPlaylistIndex",D):this.playlist&&(this.playlist.loaded?this.jT(g.Nc(this.playlist,D),1):this.Ox=!1,ZUR(this.playlist,D))}; g.B.getPlaylist=function(){return this.playlist}; g.B.W0=rR(15);g.B.qa=function(D){this.KN=g.vW(this.KN,function(H){return H.id!==D}); for(var X=this.eh(),M=X.uE(),Q=0;Q0&&(w=Math.floor(T/1E3))}w=X?X.rp:w;var L={AD_BLOCK:this.S++,AD_BREAK_LENGTH:w,AUTONAV_STATE:rC(this.player.W()),CA_TYPE:"image",CPN:q.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.ox()*1E3,LACT:Vc(),LIVE_INDEX:X?this.Y++:1,LIVE_TARGETING_CONTEXT:X&&X.context?X.context:"",MIDROLL_POS:H? Math.round(H.start/1E3):0,MIDROLL_POS_MS:H?Math.round(H.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.lj().Fh().height,P_W:this.player.lj().Fh().width,YT_REMOTE:h?h.join(","):""},K=sZ(La);Object.keys(K).forEach(function(F){K[F]!=null&&(L[F.toUpperCase()]=K[F].toString())}); M!==""&&(L.BISCOTTI_ID=M);M={};Tr(D)&&(M.sts="20401",(X=this.player.W().forcedExperiments)&&(M.forced_experiments=X));var a=Nq(g.bh(D,L),M);return a.split("?").length!==2?ns(Error("Invalid AdBreakInfo URL")):g.Ni(this.player.W(),q==null?void 0:q.oauthToken).then(function(F){if(F&&wc()){var V=CS();OI(V,F)}F=Q.player.iE(V);V=SRo(Q,a,L,q.isMdxPlayback,t);return g.RQ(F,V,"/youtubei/v1/player/ad_break").then(function(c){return c})})}; iM.prototype.reset=function(){this.Y=this.S=1};g.U(Eh9,iM); Eh9.prototype.G=function(D,X,M){X=X===void 0?{}:X;var Q=X.Wm;var h=X.sU;var H=X.cueProcessedMs;M=M===void 0?"":M;X=this.S;this.S++;var t=this.player.W().T("h5_disable_macro_substitution_in_get_ad_break")?D:yJH(this,D,{Wm:Q,sU:h,cueProcessedMs:H},M,X);if(t.split("?").length!==2)return Math.random()<.1&&g.P3(Error("Invalid AdBreakInfo URL")),ns(Error("Invalid AdBreakInfo URL"));var q=this.player.getVideoData(1).isMdxPlayback,w=M;M=VGn.exec(t);M=M!=null&&M.length>=2?M[1]:"";D=$ws.test(t);var T=BG9.exec(t); T=T!=null&&T.length>=2?T[1]:"";var L=Zho.exec(t);L=L!=null&&L.length>=2&&!Number.isNaN(Number(L[1]))?Number(L[1]):1;var K=Uwp.exec(t);K=K!=null&&K.length>=2?K[1]:"0";var a=pT(this.player.W().mE),F=g.Jq(this.player.getVideoData(1).f$,!0);TGn(this,F,t,w===""?"":w,this.player.W(),this.player.getVideoData(1));w={splay:!1,lactMilliseconds:String(Vc()),playerHeightPixels:Math.trunc(this.player.lj().Fh().height),playerWidthPixels:Math.trunc(this.player.lj().Fh().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20401,autonavState:rC(this.player.W())};if(q){q={};var V=this.player.W().oa;KGo(q,V?V.join(","):"")&&(w.mdxContext=q)}if(q=cJs.includes(a)?void 0:g.oy("PREF")){V=q.split(RegExp("[:&]"));for(var c=0,S=V.length;c1&&b[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn=FG1(q)}t=fDm.exec(t);(t=t!=null&&t.length>=2?t[1]:"")&&T&&(F.user.credentialTransferTokens= [{token:t,scope:"VIDEO"}]);t={contentPlaybackContext:w};w=this.player.getVideoData(1).getGetAdBreakContext();q=this.player.getVideoData(1).clientPlaybackNonce;V=H!==void 0?Math.round(H).toString():void 0;c=(Q==null?0:Q.context)?Q.context:void 0;S=0;H&&h&&!Q&&(h=h.end-h.start,h>0&&(S=Math.floor(h/1E3)));Q=(Q=Math.trunc((Q?Q.rp:S)*1E3))?String(Q):void 0;h=this.player.ox()*1E3;h=Number.isNaN(h)?0:Math.trunc(h);X={adBlock:X,params:M,breakIndex:L,breakPositionMs:K,clientPlaybackNonce:q,topLevelDomain:a, isProxyAdTagRequest:D,context:F,overridePlaybackContext:t,cueProcessedMs:V,videoId:T?T:void 0,liveTargetingParams:c,breakLengthMs:Q,driftFromHeadMs:h?String(h):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:w?w:void 0};return PVm(this,X)};var piZ={bz$:"replaceUrlMacros",L42:"onAboutThisAdPopupClosed",YI4:"executeCommand"};mwR.prototype.e9=function(){return"adPingingEndpoint"}; mwR.prototype.To=function(D,X,M){LPs(this.B2.get(),D,X,M)};nh2.prototype.e9=function(){return"changeEngagementPanelVisibilityAction"}; nh2.prototype.To=function(D){this.B.ER("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:D})};bh_.prototype.e9=function(){return"loggingUrls"}; bh_.prototype.To=function(D,X,M){D=g.e(D);for(var Q=D.next();!Q.done;Q=D.next())Q=Q.value,LPs(this.B2.get(),Q.baseUrl,X,M,Q.attributionSrcMode)};g.U(RqW,g.O);IDn.prototype.Tm=function(D,X){var M={};X=Object.assign({},X,(M.cc=this.Ye.QP(),M));this.Ye.B.SH(D,X)};g.U(Ck,g.O);g.B=Ck.prototype;g.B.addListener=function(D){this.listeners.push(D)}; g.B.removeListener=function(D){this.listeners=this.listeners.filter(function(X){return X!==D})}; g.B.Cm=function(D,X,M,Q,h,H,t,q){if(D==="")Hb("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(D!==this.S||M){this.S=D;this.Qf.get().Cm(D,X,M,Q,h,H,t,q);this.dC.get().Cm(D,X,M,Q,h,H,t,q);var w;(w=this.AR)==null||w.get().Cm(D,X,M,Q,h,H,t,q);this.G.Cm(D,X,M,Q,h,H,t,q);w=g.e(this.listeners);for(var T=w.next();!T.done;T=w.next())T.value.Cm(D,X,M,Q,h,H,t,q)}else Hb("Duplicate content video loaded signal")}; g.B.XCz=function(){this.S&&this.zL(this.S)}; g.B.zL=function(D){this.S=void 0;for(var X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.zL(D)};Ou.prototype.kW=function(D,X,M,Q,h){ghs(this);this.D=!X&&M===0;var H=this.B.getVideoData(1),t=this.B.getVideoData(2);H&&(this.contentCpn=H.clientPlaybackNonce,this.videoId=H.videoId,this.S=H.X);t&&(this.adCpn=t.clientPlaybackNonce,this.adVideoId=t.videoId,this.adFormat=t.adFormat);this.U=D;Q<=0?(ghs(this),this.D=!X&&M===0):(this.actionType=this.D?X?"unknown_type":"video_to_ad":X?"ad_to_video":"ad_to_ad",this.videoStreamType=h?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Y=!0,Pz("_start",this.actionType)&&rJp(this)))}; Ou.prototype.reset=function(){return new Ou(this.B)};g.U(pk,g.O);pk.prototype.addCueRange=function(D,X,M,Q,h,H,t,q,w){H=H===void 0?3:H;t=t===void 0?1:t;this.S.has(D)?Hb("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:D}):(D=new ihi(D,X,M,Q,H,q,w),this.S.set(D.id,{sU:D,listener:h,kp:t}),this.B.lH([D],t))}; pk.prototype.removeCueRange=function(D){var X=this.S.get(D);X?(this.B.EA([X.sU],X.kp),this.S.delete(X.sU.id)):Hb("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:D})}; pk.prototype.onCueRangeEnter=function(D){if(this.S.has(D.id))this.S.get(D.id).listener.onCueRangeEnter(D.id)}; pk.prototype.onCueRangeExit=function(D){if(this.S.has(D.id))this.S.get(D.id).listener.onCueRangeExit(D.id)}; g.U(ihi,g.v9);Aa.prototype.addPlayerResponseForAssociation=function(D){this.B.addPlayerResponseForAssociation(D)};YN.prototype.Fd=function(D){this.B.Fd(D)}; YN.prototype.Te=function(D){var X=g.BZ.apply(1,arguments);D==="onAdStart"||D==="onAdEnd"?this.B.sC.apply(this.B,[D].concat(g.xW(X))):this.B.ER.apply(this.B,[D].concat(g.xW(X)))};var zqm=null;g.U(Gs2,g.Dq);Gs2.prototype.yP=function(D){return this.S.hasOwnProperty(D)?this.S[D].yP():{}}; g.PZ("ytads.bulleit.getVideoMetadata",function(D){return Ja().yP(D)}); g.PZ("ytads.bulleit.triggerExternalActivityEvent",function(D,X,M){var Q=Ja();M=WGd(M);M!==null&&Q.publish(M,{queryId:D,viewabilityString:X})});g.B=xN.prototype;g.B.d6=function(D,X){if(!this.S.has(D))return{};if(X==="seek"){X=!1;X=X===void 0?!1:X;var M=gH(u0).Cd(D,{});M?WW(M):X&&(D=gH(u0).L4(null,AT(),!1,D),D.QZ=3,JjW([D]));return{}}X=uli(X);if(X===null)return{};var Q=this.B.Bu();if(!Q)return{};var h=this.B.getPresentingPlayerType(!0);if((M=this.B.getVideoData(h))==null||!M.isAd())return{};M={opt_adElement:Q,opt_fullscreen:this.Qf.get().isFullscreen()};return Jxp(X,D,M)}; g.B.fv=function(D,X,M,Q,h){this.S.has(D)&&(Q<=0||h<=0||gH(u0).fv(D,X,M,Q,h))}; g.B.jO=function(D){var X;(X=this.S.get(D.queryId))==null||X.jO()}; g.B.V0=function(D){var X;(X=this.S.get(D.queryId))==null||X.V0()}; g.B.zi=function(D){var X;(X=this.S.get(D.queryId))==null||X.zi()}; g.B.q9=function(D){var X;(X=this.S.get(D.queryId))==null||X.q9()}; g.B.Kn=function(D){var X;(X=this.S.get(D.queryId))==null||X.Kn()};tcd.prototype.send=function(D,X,M,Q){try{NWn(this,D,X,M,Q===void 0?!1:Q)}catch(h){}};g.U(qAo,tcd);w6o.prototype.send=function(D,X,M,Q){var h=!1;try{if(Q==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Q==="ATTRIBUTION_SRC_MODE_XHR_OPTION")h=!0,D=rN1(D);Q=h;var H=g.US(D);if(H[1]==="https")var t=D;else H[1]="https",t=ZO("https",H[2],H[3],H[4],H[5],H[6],H[7]);var q=ITo(t);H=[];var w=yio(t)&&this.bj.get().B.W().experiments.Z4("add_auth_headers_to_remarketing_google_dot_com_ping");if(Tr(t)||w)H.push({headerType:"USER_AUTH"}),H.push({headerType:"PLUS_PAGE_ID"}),H.push({headerType:"VISITOR_ID"}),H.push({headerType:"EOM_VISITOR_ID"}), H.push({headerType:"AUTH_USER"}),H.push({headerType:"DATASYNC_ID"});this.S.send({baseUrl:t,scrubReferrer:q,headers:H},X,M,Q)}catch(T){}};uM.prototype.eC=function(){return this.B.eC(1)};g.U(DV,g.O);g.B=DV.prototype;g.B.QP=function(){return this.B.getVideoData(1).clientPlaybackNonce}; g.B.addListener=function(D){this.listeners.push(D)}; g.B.removeListener=function(D){this.listeners=this.listeners.filter(function(X){return X!==D})}; g.B.Cm=function(){this.yM.clear();this.Dw=null;this.uL.get().clear()}; g.B.zL=function(){}; g.B.m25=function(D,X,M){X.videoId==="nPpU29QrbiU"&&this.B.SH("ads_ssm_vdc_s",{pt:M,dvt:D});uj(this.bj.get())&&D!=="dataloaded"||BWs(this,X,M)}; g.B.b2$=function(D,X){D!==void 0&&(this.Dw=D,X===void 0?Hb("Expected ad video start time on SS video changed"):this.yM.set(D,X));var M=this.B.getPresentingPlayerType(!0),Q=this.B.getVideoData(M),h;D===void 0?h=null:h=this.uL.get().S.get(D)||null;this.B.getVideoData(1).SH("ads_ssvc",{pt:M,cpn:Q==null?void 0:Q.clientPlaybackNonce,crtt:this.B.getCurrentTime(1,!1),atlh:this.B.isAtLiveHead(),adstt:X,pid:D,slid:h==null?void 0:h.layoutId});Q?BWs(this,Q,M):Hb("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.B.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:D})}; g.B.Zf=function(D,X){var M=D.author,Q=D.clientPlaybackNonce,h=D.isListed,H=D.CK,t=D.title,q=D.e0,w=D.Az,T=D.isMdxPlayback,L=D.HW,K=D.mdxEnvironment,a=D.isAutonav,F=D.nh,V=D.vB,c=D.AF,S=D.videoId||"",b=D.profilePicture||"",n=D.uI||"",R=D.TI()||!1,v=D.gp()||!1;D=D.KA||void 0;H=this.uL.get().S.get(H)||{layoutId:null,slotId:null};var l=this.B.getVideoData(1),A=l.yq();l=l.getPlayerResponse();X=1E3*this.B.getDuration(X);var Hs=1E3*this.B.getDuration(1),u,D_,q5=(l==null?void 0:(u=l.playerConfig)==null?void 0: (D_=u.daiConfig)==null?void 0:D_.enableDai)||!1,Lo,Qs;u=(l==null?void 0:(Lo=l.playerConfig)==null?void 0:(Qs=Lo.daiConfig)==null?void 0:Qs.enablePreroll)||!1;return Object.assign({},H,{videoId:S,author:M,clientPlaybackNonce:Q,Pn:X,g$:Hs,daiEnabled:q5,hc:u,isListed:h,yq:A,profilePicture:b,title:t,uI:n,e0:q,Az:w,KA:D,isMdxPlayback:T,HW:L,mdxEnvironment:K,isAutonav:a,nh:F,vB:V,AF:c,TI:R,gp:v})}; g.B.Yy=function(){this.listeners.length=0;this.qM=null;g.O.prototype.Yy.call(this)};g.U(Xs,g.O);g.B=Xs.prototype;g.B.Cm=function(){var D=this;this.nU=WD(function(){D.B.H2()||D.B.Uy("ad",1)})}; g.B.zL=function(){}; g.B.addListener=function(D){this.listeners.push(D)}; g.B.removeListener=function(D){this.listeners=this.listeners.filter(function(X){return X!==D})}; g.B.Wf=function(){}; g.B.playVideo=function(){this.B.playVideo()}; g.B.pauseVideo=function(){this.B.pauseVideo()}; g.B.resumeVideo=function(D){this.D8(D)&&this.B.playVideo()}; g.B.D8=function(D){return this.B.getPlayerState(D)===2}; g.B.getCurrentTimeSec=function(D,X){var M=this.dC.get().Dw;return D!==2||X||M===null?this.B.getCurrentTime(D,X):Qr(this,M)}; g.B.getVolume=function(){return this.B.getVolume()}; g.B.isMuted=function(){return this.B.isMuted()}; g.B.getPresentingPlayerType=function(){return this.B.getPresentingPlayerType(!0)}; g.B.getPlayerState=function(D){return this.B.getPlayerState(D)}; g.B.getGetAdBreakContext=function(){return this.B.getGetAdBreakContext()}; g.B.isFullscreen=function(){return this.B.isFullscreen()}; g.B.isAtLiveHead=function(){return this.B.isAtLiveHead()}; g.B.bL=function(D){this.B.bL(D)}; g.B.v$F=function(){var D=this.B.getPresentingPlayerType(!0),X=this.getCurrentTimeSec(D,!1);if(D===2){D=g.e(this.listeners);for(var M=D.next();!M.done;M=D.next())M.value.OA(X)}else if(D===1)for(D=g.e(this.eX),M=D.next();!M.done;M=D.next())M.value.Wf(X)}; g.B.DKf=function(D){for(var X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.qX(D,this.getPresentingPlayerType())}; g.B.onFullscreenToggled=function(D){for(var X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.onFullscreenToggled(D)}; g.B.onVolumeChange=function(){for(var D=g.e(this.listeners),X=D.next();!X.done;X=D.next())X.value.onVolumeChange()}; g.B.Sg=function(){for(var D=this.B.isMinimized(),X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.Sg(D)}; g.B.TN=function(D){for(var X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.TN(D)}; g.B.Fk=function(){for(var D=this.B.lj().Fh(),X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.HL(D)}; g.B.BL=function(D){for(var X=g.e(this.listeners),M=X.next();!M.done;M=X.next())M.value.BL(D)}; g.B.PL=function(){for(var D=g.e(this.listeners),X=D.next();!X.done;X=D.next())X.value.PL()};g.U(SA_,g.O);g.U(tA,g.O);tA.prototype.Yy=function(){this.gV.H2()||this.gV.get().removeListener(this);g.O.prototype.Yy.call(this)};NY.prototype.fetch=function(D){var X=D.Os;return this.S.fetch(D.aE,{Wm:D.Wm===void 0?void 0:D.Wm,sU:X,cueProcessedMs:D.cueProcessedMs===void 0?0:D.cueProcessedMs}).then(function(M){return EbW(M,X)})};g.U(qY,g.O);g.B=qY.prototype;g.B.addListener=function(D){this.listeners.push(D)}; g.B.removeListener=function(D){this.listeners=this.listeners.filter(function(X){return X!==D})}; g.B.XU=function(D){yZn(this,D,1)}; g.B.onAdUxClicked=function(D,X){wu(this,function(M){M.Fz(D,X)})}; g.B.EV=function(D){wu(this,function(X){X.jn(D)})}; g.B.wi=function(D){wu(this,function(X){X.VP(D)})}; g.B.N35=function(D){wu(this,function(X){X.cQ(D)})};T_.prototype.reduce=function(D){switch(D.event){case "unknown":return}var X=D.identifier;var M=this.S[X];M?X=M:(M={RW:null,CD:-Infinity},X=this.S[X]=M);M=D.startSecs+D.S/1E3;if(!(M=this.S.startSecs&&M.startSecs<=this.S.startSecs+this.S.rp)){var Q=void 0;if(jW(this.bj.get())&&M.identifier!==((Q=this.S)==null?void 0:Q.identifier)){var h=Q=void 0,H=void 0,t=void 0;YK(this.B2.get(),"ocud","ccpi."+M.identifier+";ccpe."+M.event+";ccps."+M.startSecs+";\n ccpd."+M.rp+";pcpi."+((Q=this.S)==null?void 0:Q.identifier)+ ";pcpe."+((h=this.S)==null?void 0:h.event)+";\n pcps."+((H=this.S)==null?void 0:H.startSecs)+";pcpd."+((t=this.S)==null?void 0:t.rp)+";")}Q=void 0;M.identifier!==((Q=this.S)==null?void 0:Q.identifier)&&Hb("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.S=M,nb1(this,M)}}; g.B.Yy=function(){this.G!=null&&(this.G.unsubscribe("cuepointupdated",this.qc,this),this.G=null);this.listeners.length=0;this.Tg.length=0;g.O.prototype.Yy.call(this)};g.B=KV.prototype;g.B.Ae=function(D,X,M,Q,h,H,t,q){return this.B.Ae(D,X,M,Q,h,H,t,q)}; g.B.tv=function(D,X){this.B.tv(D,X)}; g.B.sQ=function(D,X,M){this.B.sQ(D,X,M)}; g.B.sX=function(D){this.B.sX(D)}; g.B.BV=function(D,X,M,Q,h,H,t,q){this.B.BV(D,X,M,Q,h,H,t,q)}; g.B.xE=function(D){return this.B.xE(D)}; g.B.finishSegmentByCpn=function(D,X,M){M=RZn(M);this.B.finishSegmentByCpn(D,X,M)};g.U(av,g.O);g.U(gb2,g.O);g.U(vbd,g.O);g.U(dAn,g.O);g.U(rZn,g.O);g.U(it1,g.O);g.U(Cod,g.O);Cod.prototype.Y=function(){return this.G};g.U(Ot5,CO); Ot5.prototype.Y=function(D){var X=D.content;if(X.componentType==="shopping-companion")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.ER("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId,shoppingCompanionCarouselRenderer:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.S,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:this.S.ER("updateKevlarOrC3Companion",{})}else if(X.componentType==="action-companion")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1); this.S.ER("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId,actionCompanionAdRenderer:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.S,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X.renderer&&(X=this.S.getVideoData(1),this.S.ER("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId})),this.S.ER("updateKevlarOrC3Companion",{})}else if(X.componentType==="image-companion")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.ER("updateKevlarOrC3Companion", {contentVideoId:D&&D.videoId,imageCompanionAdRenderer:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.S,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X=this.S.getVideoData(1),this.S.ER("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId}),this.S.ER("updateKevlarOrC3Companion",{})}else if(X.componentType==="top-banner-image-text-icon-buttoned")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.ER("updateKevlarOrC3Companion", {contentVideoId:D&&D.videoId,topBannerImageTextIconButtonedLayoutViewModel:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.S,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X.renderer&&(X=this.S.getVideoData(1),this.S.ER("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId})),this.S.ER("updateKevlarOrC3Companion",{})}else if(X.componentType==="banner-image")switch(D.actionType){case 1:case 2:D=this.S.getVideoData(1);this.S.ER("updateKevlarOrC3Companion", {contentVideoId:D&&D.videoId,bannerImageLayoutViewModel:X.renderer,layoutId:X.layoutId,macros:X.macros,onLayoutVisibleCallback:X.S,interactionLoggingClientData:X.interactionLoggingClientData});break;case 3:X=this.S.getVideoData(1),this.S.ER("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId}),this.S.ER("updateKevlarOrC3Companion",{})}else if(X.componentType==="ads-engagement-panel")switch(X=X.renderer,D.actionType){case 1:case 2:this.S.ER("updateEngagementPanelAction",X.addAction);this.S.ER("changeEngagementPanelVisibility", X.expandAction);break;case 3:this.S.ER("changeEngagementPanelVisibility",X.hideAction),this.S.ER("updateEngagementPanelAction",X.removeAction)}else if(X.componentType==="ads-engagement-panel-layout"){var M=X.renderer;switch(D.actionType){case 1:case 2:this.S.ER("updateEngagementPanelAction",{action:eM(M.addAction),layoutId:X.layoutId,onLayoutVisibleCallback:X.S,interactionLoggingClientData:X.interactionLoggingClientData});this.S.ER("changeEngagementPanelVisibility",eM(M.expandAction));break;case 3:this.S.ER("changeEngagementPanelVisibility", eM(M.hideAction)),this.S.ER("updateEngagementPanelAction",{action:eM(M.removeAction)})}}};g.U(p69,Wr);g.B=p69.prototype;g.B.init=function(D,X,M){Wr.prototype.init.call(this,D,X,M);g.Q_(this.Y,"stroke-dasharray","0 "+this.G);this.Y.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.U.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.B.clear=function(){this.hide()}; g.B.hide=function(){zB(this);Wr.prototype.hide.call(this)}; g.B.show=function(){GB(this);Wr.prototype.show.call(this)}; g.B.h2=function(){this.hide()}; g.B.h_=function(){if(this.S){var D=this.S.getProgressState();D!=null&&D.current!=null&&g.Q_(this.Y,"stroke-dasharray",D.current/D.seekableEnd*this.G+" "+this.G)}};g.U(AZs,tU);g.B=AZs.prototype; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);if(X.image&&X.image.thumbnail)if(X.headline)if(X.description)if(X.backgroundImage&&X.backgroundImage.thumbnail)if(X.actionButton&&g.Z(X.actionButton,g.$w))if(D=X.durationMilliseconds||0,typeof D!=="number"||D<=0)g.ET(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+D));else if(X.navigationEndpoint){var Q=this.api.getVideoData(2);if(Q!=null){var h=X.image.thumbnail.thumbnails;h!=null&& h.length>0&&g.kR(g.J4(h[0].url))&&(h[0].url=Q.profilePicture,g.kR(g.J4(Q.profilePicture))&&WKm("VideoPlayer",239976093,"Expected non-empty profile picture."));h=X.backgroundImage.thumbnail.thumbnails;h!=null&&h.length>0&&g.kR(g.J4(h[0].url))&&(h[0].url=Q.gM());h=X.headline;h!=null&&g.kR(g.J4(h.text))&&(h.text=Q.author)}this.K.init(uC("ad-image"),X.image,M);this.D.init(uC("ad-text"),X.headline,M);this.Y.init(uC("ad-text"),X.description,M);this.OR.init(uC("ad-image"),X.backgroundImage,M);Q=["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.D.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Y.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.W().T("enable_default_mono_cta_migration_web_client")?Q.push("ytp-ad-action-interstitial-action-button-mono-dark"):Q.push("ytp-ad-action-interstitial-action-button-dark");this.api.W().G&&(Q.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.W().T("enable_default_mono_cta_migration_web_client")?Q.push("ytp-ad-action-interstitial-action-button-mono-dark"):Q.push("ytp-ad-action-interstitial-action-button-dark"));this.api.W().T("enable_unified_action_endcap_on_web")&&!this.api.W().G&&(this.api.W().T("enable_default_mono_cta_migration_web_client")?Q.push("ytp-ad-action-interstitial-action-button-unified-mono"):Q.push("ytp-ad-action-interstitial-action-button-unified"),this.t$.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.K.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.o5.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.gj.classList.add("ytp-ad-action-interstitial-card-unified"),this.R5.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.L$.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.uj.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.yf.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,Q);g.p(this,this.actionButton);this.actionButton.rC(this.t$);this.actionButton.init(uC("button"),g.Z(X.actionButton,g.$w),M);Al(this.actionButton.element);Q=Jl(this.actionButton.element);lh(this.actionButton.element, Q+" This link opens in new tab");this.navigationEndpoint=X.navigationEndpoint;this.U.N(this.uj,"click",this.lY,this);this.U.N(this.R5,"click",this.lY,this);this.api.W().G||this.U.N(this.L$,"click",this.lY,this);this.S=this.QO?new FO(this.api,D):new V8(D);g.p(this,this.S);if(X.skipButton){(D=g.Z(X.skipButton,t2C))&&this.S&&(this.skipButton=new wm(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.S,this.Tq),g.p(this,this.skipButton),this.skipButton.rC(this.element),this.skipButton.init(uC("skip-button"), D,M));if(M=X.adBadgeRenderer)if(M=g.Z(M,Hon))D=new Kd(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0,!0),D.rC(this.yf),D.init(uC("simple-ad-badge"),M,this.macros),g.p(this,D);if(M=X.adInfoRenderer)if(M=g.Z(M,FQ))D=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.element,void 0,!0),D.rC(this.yf),D.init(uC("ad-info-hover-text-button"),M,this.macros),g.p(this,D)}else X.nonskippableOverlayRenderer&&(D=g.Z(X.nonskippableOverlayRenderer,Vg))&&this.S&&(this.G= new j7(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.S,!1),g.p(this,this.G),this.G.rC(this.element),this.G.init(uC("ad-preview"),D,M));X.countdownRenderer&&(X=X.countdownRenderer,g.Z(X,NRt)&&this.S&&(M=new p69(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.S),g.p(this,M),M.rC(this.element),M.init(uC("timed-pie-countdown"),g.Z(X,NRt),this.macros)));this.show();this.element.focus()}else g.ET(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.ET(Error("AdActionInterstitialRenderer has no button."));else g.ET(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ET(Error("AdActionInterstitialRenderer has no description AdText."));else g.ET(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ET(Error("AdActionInterstitialRenderer has no image."))}; g.B.clear=function(){g.RH(this.U);this.hide()}; g.B.show=function(){YA_(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.G&&this.G.show();tU.prototype.show.call(this)}; g.B.hide=function(){YA_(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.G&&this.G.hide();tU.prototype.hide.call(this)}; g.B.lY=function(){this.navigationEndpoint&&(this.layoutId?this.I5.executeCommand(this.navigationEndpoint,this.layoutId):g.ET(Error("Missing layoutId for ad action interstitial.")))};var Gus={iconType:"CLOSE"},Bw=new g.tn(320,63);g.U(WPi,tU);g.B=WPi.prototype; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);this.U=X;this.K=g.Hi(this.U.onClickCommands||[]);this.yf=this.U.onErrorCommand||null;if(D=this.U.contentSupportedRenderer)D=this.U.contentSupportedRenderer,X=this.U.adInfoRenderer||null,g.Z(D,M2n)?(this.D=g.cD("ytp-ad-overlay-ad-info-button-container",this.Y.element),zZs(this,X),D=uKd(this,g.Z(D,M2n))):g.Z(D,QiB)?(this.D=g.cD("ytp-ad-overlay-ad-info-button-container",this.G.element),zZs(this,X),D=jRs(this,g.Z(D,QiB))):g.Z(D,h9B)?(this.D= g.cD("ytp-ad-overlay-ad-info-button-container",this.S.element),zZs(this,X),D=DMR(this,g.Z(D,h9B))):(g.ET(Error("InvideoOverlayAdRenderer content could not be initialized.")),D=!1);D&&(this.show(),Xes(this,!0))}; g.B.clear=function(){Xes(this,!1);this.uj.reset();this.R5=0;this.Y.hide();this.logVisibility(this.Y.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.hide();this.dispose()}; g.B.XP$=function(){this.t$&&(this.layoutId?this.I5.executeCommand(this.t$,this.layoutId):g.ET(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.B.PM=function(){a:{if(this.U&&this.U.closeButton&&this.U.closeButton.buttonRenderer){var D=this.U.closeButton.buttonRenderer;if(D.serviceEndpoint){D=[D.serviceEndpoint];break a}}D=[]}D=g.e(D);for(var X=D.next();!X.done;X=D.next())X=X.value,this.layoutId?this.I5.executeCommand(X,this.layoutId):g.ET(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.B.A5j=function(){this.OR||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.B.Qc=function(){this.OR||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Qc("invideo-overlay")}; g.B.thI=function(D){D.target===this.D&&g.cD("ytp-ad-button",this.o5.element).click()};g.U(M31,Wr);g.B=M31.prototype;g.B.init=function(D,X,M){Wr.prototype.init.call(this,D,X,M);D=X.durationMs;this.Y=D==null||D===0?0:D+this.S.getProgressState().current*1E3;if(X.text)var Q=X.text.templatedAdText;else X.staticMessage&&(Q=X.staticMessage);this.messageText.init(uC("ad-text"),Q,M);this.messageText.rC(this.G.element);this.U.show(100);this.show()}; g.B.clear=function(){this.hide()}; g.B.hide=function(){Qo9(this,!1);Wr.prototype.hide.call(this);this.G.hide();this.messageText.hide();zB(this)}; g.B.show=function(){Qo9(this,!0);Wr.prototype.show.call(this);GB(this);this.G.show();this.messageText.show()}; g.B.h2=function(){this.hide()}; g.B.h_=function(){if(this.S!=null){var D=this.S.getProgressState();D!=null&&D.current!=null&&(D=1E3*D.current,!this.R5&&D>=this.Y?(this.U.hide(),this.R5=!0):this.messageText&&this.messageText.isTemplated()&&(D=Math.max(0,Math.ceil((this.Y-D)/1E3)),D!==this.D&&(xn(this.messageText,{TIME_REMAINING:String(D)}),this.D=D)))}};g.U(hhp,tU);g.B=hhp.prototype; g.B.init=function(D,X,M){tU.prototype.init.call(this,D,X,{});X.image&&X.image.thumbnail?X.headline?X.description?X.actionButton&&g.Z(X.actionButton,g.$w)?(this.Y.init(uC("ad-image"),X.image,M),this.G.init(uC("ad-text"),X.headline,M),this.U.init(uC("ad-text"),X.description,M),this.actionButton=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,["ytp-ad-underlay-action-button"]),X.backgroundColor&&g.Q_(this.element,"background-color",g.IW(X.backgroundColor)),g.p(this,this.actionButton), this.actionButton.rC(this.D),this.actionButton.init(uC("button"),g.Z(X.actionButton,g.$w),M),D=g.lx(this.api.W().experiments,"player_underlay_video_width_fraction"),this.api.W().T("place_shrunken_video_on_left_of_player")?(X=this.S,g.tN(X,"ytp-ad-underlay-left-container"),g.hN(X,"ytp-ad-underlay-right-container"),g.Q_(this.S,"margin-left",Math.round((D+.02)*100)+"%")):(X=this.S,g.tN(X,"ytp-ad-underlay-right-container"),g.hN(X,"ytp-ad-underlay-left-container")),g.Q_(this.S,"width",Math.round((1-D- .04)*100)+"%"),this.api.FN()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Ob.bind(this)),this.api.addEventListener("resize",this.X_.bind(this))):g.ET(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ET(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ET(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ET(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.B.show=function(){H8R(!0);this.actionButton&&this.actionButton.show();tU.prototype.show.call(this)}; g.B.hide=function(){H8R(!1);this.actionButton&&this.actionButton.hide();tU.prototype.hide.call(this)}; g.B.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ob.bind(this));this.api.removeEventListener("resize",this.X_.bind(this));this.hide()}; g.B.onClick=function(D){tU.prototype.onClick.call(this,D);this.actionButton&&g.vD(this.actionButton.element,D.target)&&this.api.pauseVideo()}; g.B.Ob=function(D){D==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):D==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):D==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))}; g.B.X_=function(D){D.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):D.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.Q_(this.G.element,"font-size",D.width/40+"px")};g.U(ZV,tU); ZV.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);X.toggledLoggingParams&&(this.toggledLoggingParams=X.toggledLoggingParams);X.answer&&g.Z(X.answer,g.$w)?(D=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),D.rC(this.answer),D.init(uC("ytp-ad-survey-answer-button"),g.Z(X.answer,g.$w),M),D.show()):X.answer&&g.Z(X.answer,BM)&&(this.S=new iI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5, ["ytp-ad-survey-answer-toggle-button"]),this.S.rC(this.answer),g.p(this,this.S),this.S.init(uC("survey-answer-button"),g.Z(X.answer,BM),M));this.show()}; ZV.prototype.Pc=function(D){this.layoutId?EF(this.I5,D,this.layoutId,this.macros):(D=new g.ys("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.ET(D))}; ZV.prototype.onClick=function(D){tU.prototype.onClick.call(this,D);if(this.api.W().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; ZV.prototype.clear=function(){this.hide()};g.U(t3i,tU);t3i.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);X.answer&&g.Z(X.answer,BM)&&(this.button=new iI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.rC(this.S),this.button.init(uC("survey-none-of-the-above-button"),g.Z(X.answer,BM),M));this.show()};g.U(Uk,nO);Uk.prototype.init=function(D,X,M){nO.prototype.init.call(this,D,X,M);D=!1;X.text&&(X=g.q1(X.text),D=!g.kR(X));D||g.P3(Error("No submit text was present in the renderer."))}; Uk.prototype.onClick=function(D){this.publish("l");nO.prototype.onClick.call(this,D)};g.U(cw,tU); cw.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);if(D=X.skipOrPreviewRenderer)g.Z(D,WQ)?(D=g.Z(D,WQ),M=new Ld(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.U,!0),M.rC(this.skipOrPreview),M.init(uC("skip-button"),D,this.macros),g.p(this,M),this.S=M):g.Z(D,Vg)&&(D=g.Z(D,Vg),M=new j7(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.U,!1),M.rC(this.skipOrPreview),M.init(uC("ad-preview"),D,this.macros),M.R5.show(100),M.show(),g.p(this,M), this.S=M);this.S==null&&(D=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(X)),g.ET(D));X.submitButton&&(D=X.submitButton,g.Z(D,g.$w)&&(D=g.Z(D,g.$w),M=new Uk(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),M.rC(this.submitButton),M.init(uC("survey-submit"),D,this.macros),g.p(this,M),this.G=M));if(D=X.adBadgeRenderer)D=g.Z(D,Hon),M=new Kd(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0,!0,!0),M.rC(this.Y),M.init(uC("simple-ad-badge"), D,this.macros),this.adBadge=M.element,g.p(this,M);if(D=X.adDurationRemaining)D=g.Z(D,jgn),M=new Uc(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.U,void 0,!0),M.rC(this.Y),M.init(uC("ad-duration-remaining"),D,this.macros),g.p(this,M);(X=X.adInfoRenderer)&&g.Z(X,FQ)&&(D=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.element,void 0,!0),g.p(this,D),this.adBadge!==void 0?this.Y.insertBefore(D.element,this.adBadge.nextSibling):D.rC(this.Y),D.init(uC("ad-info-hover-text-button"), g.Z(X,FQ),this.macros));this.show()}; cw.prototype.clear=function(){this.hide()};g.U(fV,tU);fV.prototype.init=function(D,X,M){tU.prototype.init.call(this,D,X,M);L4s(this)}; fV.prototype.show=function(){this.Y=Date.now();tU.prototype.show.call(this)}; fV.prototype.FQ=function(){};g.U(sop,fV);g.B=sop.prototype;g.B.init=function(D,X,M){var Q=this;fV.prototype.init.call(this,D,X,M);X.questionText&&Nps(this,X.questionText);X.answers&&X.answers.forEach(function(h,H){g.Z(h,VI)&&q4R(Q,g.Z(h,VI),M,H)}); this.D=new Set(this.G.map(function(h){return h.S.S})); (D=X.noneOfTheAbove)&&(D=g.Z(D,Xs_))&&K4d(this,D,M);X.surveyAdQuestionCommon&&Tpp(this,X.surveyAdQuestionCommon);X.submitEndpoints&&(this.submitEndpoints=X.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.B.FQ=function(){aa1(this,!1);this.U.G.subscribe("l",this.yq4,this)}; g.B.onChange=function(D){D.target===this.noneOfTheAbove.button.S?F4p(this):this.D.has(D.target)&&(this.noneOfTheAbove.button.toggleButton(!1),aa1(this,!0))}; g.B.yq4=function(){var D=[],X=this.G.reduce(function(h,H,t){var q=H.toggledLoggingParams;H.S&&H.S.isToggled()&&q&&(h.push(q),D.push(t));return h},[]).join("&"),M=this.submitEndpoints.map(function(h){if(!h.loggingUrls)return h; h=g.dS(h);h.loggingUrls=h.loggingUrls.map(function(H){H.baseUrl&&(H.baseUrl=bF(H.baseUrl,X));return H}); return h}); if(M){M=g.e(M);for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,this.layoutId?EF(this.I5,Q,this.layoutId,this.macros):g.ET(Error("Missing layoutId for multi_select_question."))}this.api.W().T("supports_multi_step_on_desktop")&&this.R5(D)}; g.B.clear=function(){this.api.W().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.U(St,fV);St.prototype.init=function(D,X,M){var Q=this;fV.prototype.init.call(this,D,X,M);X.questionText&&Nps(this,X.questionText);X.answers&&X.answers.forEach(function(h,H){g.Z(h,VI)&&q4R(Q,g.Z(h,VI),M,H)}); X.surveyAdQuestionCommon?Tpp(this,X.surveyAdQuestionCommon):ya(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(X)));this.show()}; St.prototype.clear=function(){this.api.W().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.U(Ek,tU);Ek.prototype.init=function(D,X,M){var Q=this;tU.prototype.init.call(this,D,X,M);if(this.api.W().T("supports_multi_step_on_desktop")){var h;this.conditioningRules=(h=X.conditioningRules)!=null?h:[];var H;this.G=(H=X.questions)!=null?H:[];var t;((t=X.questions)==null?0:t.length)&&Z8_(this,0)}else(X.questions||[]).forEach(function(q){g.Z(q,Kn)?$Mp(Q,g.Z(q,Kn),M):g.Z(q,sE)&&Bpo(Q,g.Z(q,sE),M)}); this.show()}; Ek.prototype.clear=function(){this.api.W().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; Ek.prototype.U=function(D){var X=this;if(this.api.W().T("supports_multi_step_on_desktop")){var M;if((M=this.conditioningRules)==null?0:M.length){var Q;if(D.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(h){return h.questionIndex===X.S})==null)g.ET(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(h){if(h.questionIndex===X.S)switch(h.condition){case "CONDITION_ALL_OF":var H;if((H=h.answerIndices)==null?0:H.every(function(q){return D.includes(q)}))Q=h.nextQuestionIndex; break;case "CONDITION_ANY_OF":var t;if((t=h.answerIndices)==null?0:t.some(function(q){return D.includes(q)}))Q=h.nextQuestionIndex; break;default:g.ET(Error("Expected specified condition in survey conditioning rules."))}}),Q!=null)Z8_(this,Q); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ET(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.U(yr,tU); yr.prototype.init=function(D,X,M){var Q=this;tU.prototype.init.call(this,D,X,M);D=X.timeoutSeconds||0;if(typeof D!=="number"||D<0)g.ET(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+D));else if(X.timeoutCommands)if(X.text)if(X.ctaButton&&g.Z(X.ctaButton,g.$w))if(X.brandImage)if(X.backgroundImage&&g.Z(X.backgroundImage,Bx)&&g.Z(X.backgroundImage,Bx).landscape){this.layoutId||g.ET(Error("Missing layoutId for survey interstitial."));UMm(this.interstitial,g.Z(X.backgroundImage, Bx).landscape);UMm(this.logoImage,X.brandImage);g.dP(this.text,g.q1(X.text));var h=["ytp-ad-survey-interstitial-action-button"];h.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,h);g.p(this,this.actionButton);this.actionButton.rC(this.G);this.actionButton.init(uC("button"),g.Z(X.ctaButton,g.$w),M);this.actionButton.show();this.S=new FO(this.api,D*1E3);this.S.subscribe("g",function(){Q.transition.hide()}); g.p(this,this.S);this.N(this.element,"click",function(H){var t=H.target===Q.interstitial;H=Q.actionButton.element.contains(H.target);if(t||H)if(Q.transition.hide(),t)Q.api.onAdUxClicked(Q.componentType,Q.layoutId)}); this.transition.show(100)}else g.ET(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ET(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ET(Error("SurveyTextInterstitialRenderer has no button."));else g.ET(Error("SurveyTextInterstitialRenderer has no text."));else g.ET(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; yr.prototype.clear=function(){this.hide()}; yr.prototype.show=function(){cz1(!0);tU.prototype.show.call(this)}; yr.prototype.hide=function(){cz1(!1);tU.prototype.hide.call(this)};g.U(Pw,Wr);g.B=Pw.prototype; g.B.init=function(D,X){Wr.prototype.init.call(this,D,X,{});if(X.durationMilliseconds){if(X.durationMilliseconds<0){g.ET(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+X.durationMilliseconds));return}this.G=X.durationMilliseconds}else this.G=this.S.Gz();var M;if((M=X.previewText)==null||!M.text||g.kR(X.previewText.text))g.ET(Error("No text is returned for AdPreview."));else{this.D=X.previewText;X.previewText.isTemplated||g.dP(this.Y,X.previewText.text);var Q; if(((Q=this.api.getVideoData(1))==null?0:Q.LJ)&&X.previewImage){var h,H;(D=((H=QJ(((h=X.previewImage)==null?void 0:h.sources)||[],52,!1))==null?void 0:H.url)||"")&&D.length?(this.previewImage=new g.Hr({L:"img",C:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",D),g.p(this,this.previewImage),this.previewImage.rC(this.element)):g.ET(Error("Failed to get imageUrl in AdPreview."))}else this.Y.classList.add("ytp-preview-ad__text--padding--wide")}}; g.B.clear=function(){this.hide()}; g.B.hide=function(){zB(this);Wr.prototype.hide.call(this)}; g.B.show=function(){GB(this);Wr.prototype.show.call(this)}; g.B.h2=function(){this.hide()}; g.B.h_=function(){if(this.S){var D=this.S.getProgressState();if(D!=null&&D.current)if(D=1E3*D.current,D>=this.G)this.transition.hide();else{var X;if((X=this.D)==null?0:X.isTemplated)if(X=Math.max(0,Math.ceil((this.G-D)/1E3)),X!==this.U){var M,Q;(D=(M=this.D)==null?void 0:(Q=M.text)==null?void 0:Q.replace("{TIME_REMAINING}",String(X)))&&g.dP(this.Y,D);this.U=X}}}};g.U(mu,tU); mu.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});var M,Q;if((D=((Q=QJ(((M=X.image)==null?void 0:M.sources)||[],fad(X),!0))==null?void 0:Q.url)||"")&&D.length){M=this.h$("ytp-ad-avatar");M.src=D;var h,H;if(Q=(h=X.interaction)==null?void 0:(H=h.accessibility)==null?void 0:H.label)M.alt=Q;switch(X.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(X.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.ET(Error("Failed to get imageUrl in AdAvatar."))}; mu.prototype.clear=function(){this.hide()}; mu.prototype.onClick=function(D){tU.prototype.onClick.call(this,D)};g.U(nV,tU); nV.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});var M;D=(M=X.label)==null?void 0:M.content;if((M=D!=null&&!g.kR(D))||X.iconImage){M&&(this.buttonText=new g.Hr({L:"span",C:"ytp-ad-button-vm__text",Gs:D}),g.p(this,this.buttonText),this.buttonText.rC(this.element));var Q,h,H=((Q=X.interaction)==null?0:(h=Q.accessibility)==null?0:h.label)||M?D:"";H&&lh(this.element,H+" This link opens in new tab");Al(this.element);if(X.iconImage){Q=void 0;if(X.iconImage){a:{h=X.iconImage;if(h.sources)for(h= g.e(h.sources),D=h.next();!D.done;D=h.next())if(D=D.value,H=void 0,(H=D.clientResource)==null?0:H.imageName){h=D;break a}h=void 0}if(h){var t;Q={iconType:(t=h.clientResource)==null?void 0:t.imageName}}}t=mA(Q,!1,this.G);t!=null&&(this.buttonIcon=new g.Hr({L:"span",C:"ytp-ad-button-vm__icon",V:[t]}),g.p(this,this.buttonIcon),X.iconLeading?(Iu(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):M?(this.buttonIcon.rC(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.rC(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(X.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.T("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.S?"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(X.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.P3(Error("AdButton does not have label or an icon."))}; nV.prototype.clear=function(){this.hide()}; nV.prototype.onClick=function(D){tU.prototype.onClick.call(this,D)};g.U(S4i,Wr);g.B=S4i.prototype; g.B.init=function(D,X){Wr.prototype.init.call(this,D,X,{});if(D=g.Z(X.avatar,ia)){var M=X.headline;if(M){var Q=X.description;if(Q){var h=g.Z(X.button,CV);h?(this.adAvatar.init(uC("ad-avatar"),D),this.headline.init(uC("ad-simple-attributed-string"),new fd(M)),this.description.init(uC("ad-simple-attributed-string"),new fd(Q)),M.content&&M.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(uC("ad-button"),h), this.startMilliseconds=X.startMs||0,this.api.FN()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Cf.bind(this)),GB(this)):g.ET(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ET(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ET(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ET(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.B.h_=function(){if(this.S){var D=this.S.getProgressState();D&&D.current&&1E3*D.current>=this.startMilliseconds&&(zB(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.B.h2=function(){this.clear()}; g.B.onClick=function(D){this.api.pauseVideo();Wr.prototype.onClick.call(this,D)}; g.B.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Cf.bind(this))}; g.B.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Wr.prototype.show.call(this)}; g.B.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Wr.prototype.hide.call(this)}; g.B.Cf=function(D){D==="hidden"?this.show():this.hide()};g.U(ba,tU);g.B=ba.prototype; g.B.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(!X.label||g.kR(X.label))g.ET(Error("No label is returned for SkipAdButton."));else if(g.dP(this.U,X.label),D=mA({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.T("delhi_modern_web_player_icons")),D==null)g.ET(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Y=new g.Hr({L:"span",C:"ytp-skip-ad-button__icon",V:[D]}),g.p(this,this.Y),this.Y.rC(this.element),this.api.W().experiments.Z4("enable_skip_to_next_messaging")&&(X=g.J4(X.targetId)))this.G= !0,this.element.setAttribute("data-tooltip-target-id",X),this.element.setAttribute("data-tooltip-target-fixed","")}; g.B.onClick=function(D){D&&D.preventDefault();var X,M;vgm(D,{contentCpn:(M=(X=this.api.getVideoData(1))==null?void 0:X.clientPlaybackNonce)!=null?M:""})===0?this.api.ER("onAbnormalityDetected"):(tU.prototype.onClick.call(this,D),this.api.ER("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.B.clear=function(){this.S.reset();this.hide()}; g.B.hide=function(){tU.prototype.hide.call(this)}; g.B.show=function(){this.S.start();tU.prototype.show.call(this);this.G&&this.api.W().experiments.Z4("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.U(EIm,Wr);g.B=EIm.prototype; g.B.init=function(D,X){Wr.prototype.init.call(this,D,X,{});D=g.Z(X.preskipState,a_h);var M;if((M=this.api.getVideoData())==null?0:M.isDaiEnabled()){if(!D){g.ET(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.G=new Pw(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.S);g.p(this,this.G);this.G.rC(this.element);var Q;(Q=this.G)==null||Q.init(uC("preview-ad"),D);(M=this.G)!=null&&(M.transition.show(100),M.show())}(M=g.Z(X.skippableState,V2W))?(X.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=X.skipOffsetMilliseconds:(g.P3(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Y.init(uC("skip-button"),M),this.show()):g.ET(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.B.show=function(){GB(this);Wr.prototype.show.call(this)}; g.B.hide=function(){!this.isSkippable&&this.G?this.G.hide():this.Y&&this.Y.hide();zB(this);Wr.prototype.hide.call(this)}; g.B.clear=function(){var D;(D=this.G)==null||D.clear();this.Y&&this.Y.clear();zB(this);Wr.prototype.hide.call(this)}; g.B.h2=function(){this.hide()}; g.B.h_=function(){if(1E3*this.S.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var D;(D=this.G)!=null&&D.transition.hide();(D=this.Y)!=null&&(D.transition.show(),D.show())}};g.U(et,tU); et.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(X.label){var M;((M=X.label)==null?0:M.content)&&!g.kR(X.label.content)&&(this.linkText=new g.Hr({L:"span",C:"ytp-visit-advertiser-link__text",Gs:X.label.content}),g.p(this,this.linkText),this.linkText.rC(this.element));var Q,h;if((Q=X.interaction)==null?0:(h=Q.accessibility)==null?0:h.label)lh(this.element,X.interaction.accessibility.label+" This link opens in new tab");else{var H;((H=X.label)==null?0:H.content)&&!g.kR(X.label.content)&&lh(this.element, X.label.content+" This link opens in new tab")}Al(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ET(Error("No label found in VisitAdvertiserLink."))}; et.prototype.onClick=function(D){tU.prototype.onClick.call(this,D);this.api.onAdUxClicked(this.componentType,this.layoutId)}; et.prototype.clear=function(){this.hide()};g.U(Rv,tU); Rv.prototype.init=function(D,X,M,Q){tU.prototype.init.call(this,D,X,{});if(X.skipOrPreview){M=X.skipOrPreview;D=g.Z(M,$5K);M=g.Z(M,a_h);if(D)this.kt=new EIm(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G),g.p(this,this.kt),this.kt.rC(this.K),this.kt.init(uC("skip-ad"),D);else{var h;M&&((h=this.api.getVideoData())==null?0:h.isDaiEnabled())&&(this.U=new Pw(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G,1),g.p(this,this.U),this.U.rC(this.K),this.U.init(uC("ad-preview"), M),h=this.U,h.transition.show(100),h.show())}if(h=g.Z(X.skipOrPreview,$5K))var H=h.skipOffsetMilliseconds}X.playerAdCard&&(h=g.Z(X.playerAdCard,FH8))&&(this.playerAdCard=new S4i(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G),g.p(this,this.playerAdCard),this.playerAdCard.rC(this.L$),this.playerAdCard.init(uC("ad-avatar-lockup-card"),h));X.adBadgeRenderer&&((h=g.Z(X.adBadgeRenderer,ov))?(this.Y=new Ec(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0),g.p(this, this.Y),this.Y.rC(this.S),this.Y.init(uC("ad-badge"),h)):g.ET(Error("AdBadgeViewModel is not found in player overlay layout.")));X.adPodIndex&&(h=g.Z(X.adPodIndex,TRG))&&(this.adPodIndex=new y8(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.adPodIndex),this.adPodIndex.rC(this.S),this.adPodIndex.init(uC("ad-pod-index"),h));X.adInfoRenderer&&((h=g.Z(X.adInfoRenderer,FQ))?(this.adInfoButton=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.element, void 0,!0),g.p(this,this.adInfoButton),this.Y!==void 0?this.S.insertBefore(this.adInfoButton.element,this.Y.element.nextSibling):this.adInfoButton.rC(this.S),this.adInfoButton.init(uC("ad-info-hover-text-button"),h,this.macros)):g.P3(Error("AdInfoRenderer is not found in player overlay layout.")));var t;h=(t=this.api.getVideoData())==null?void 0:t.isDaiEnabled();X.adDurationRemaining&&h&&(t=g.Z(X.adDurationRemaining,jgn))&&(this.adDurationRemaining=new Uc(this.api,this.layoutId,this.interactionLoggingClientData, this.I5,this.G,Q.videoAdDurationSeconds,!0),g.p(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.S.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.rC(this.S),this.adDurationRemaining.init(uC("ad-duration-remaining"),t,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));X.visitAdvertiserLink&&(Q=g.Z(X.visitAdvertiserLink,ZoC))&&(this.visitAdvertiserLink=new et(this.api,this.layoutId, this.interactionLoggingClientData,this.I5),g.p(this,this.visitAdvertiserLink),this.visitAdvertiserLink.rC(this.S),this.visitAdvertiserLink.init(uC("visit-advertiser-link"),Q));X.adDisclosureBanner&&(X=g.Z(X.adDisclosureBanner,wsh))&&(this.adDisclosureBanner=new Pb(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.adDisclosureBanner),this.adDisclosureBanner.rC(this.R5),this.adDisclosureBanner.init(uC("ad-disclosure-banner"),X));this.D=new bd(this.api,this.G,H,!0);g.p(this, this.D);g.db(this.api,this.D.element,4);this.show()}; Rv.prototype.clear=function(){this.hide()};g.U(yzp,tU);g.B=yzp.prototype; g.B.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(X!=null&&X.title)if(D=X.title)if(this.headline.init(uC("ad-simple-attributed-string"),new fd(D)),D=g.Z(X.moreInfoButton,CV)){if(this.moreInfoButton.init(uC("ad-button"),D),X.descriptions)X.descriptions.length>0&&(D=X.descriptions[0])&&(this.S=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.S),this.S.rC(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.S.init(uC("ad-simple-attributed-string"), new fd(D))),X.descriptions.length>1&&(X=X.descriptions[1])&&(this.G=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.G),this.G.rC(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.G.init(uC("ad-simple-attributed-string"),new fd(X)))}else g.ET(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.ET(Error("No headline found in AdGridCardText."));else g.ET(Error("No headline found in AdGridCardText."))}; g.B.onClick=function(D){tU.prototype.onClick.call(this,D);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.B.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var D;(D=this.S)==null||D.clear();var X;(X=this.G)==null||X.clear()}; g.B.hide=function(){this.headline.hide();this.moreInfoButton.hide();var D;(D=this.S)==null||D.hide();var X;(X=this.G)==null||X.hide();tU.prototype.hide.call(this)}; g.B.show=function(){tU.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var D;(D=this.S)==null||D.show();var X;(X=this.G)==null||X.show()};g.U(Iv,tU);Iv.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(X!=null&&X.gridCards)if(X.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.ET(Error("Only single column style is currently supported in AdGridCardCollection."));else for(D=g.e(X.gridCards),X=D.next();!X.done;X=D.next()){if(X=g.Z(X.value,KHn)){var M=new yzp(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,M);M.rC(this.element);M.init(uC("ad-grid-card-text"),X);this.S.push(M)}}else g.ET(Error("No grid cards found in AdGridCardCollection."))}; Iv.prototype.show=function(){for(var D=g.e(this.S),X=D.next();!X.done;X=D.next())X.value.show();tU.prototype.show.call(this)}; Iv.prototype.clear=function(){this.hide();for(var D=g.e(this.S),X=D.next();!X.done;X=D.next())X.value.clear()}; Iv.prototype.hide=function(){for(var D=g.e(this.S),X=D.next();!X.done;X=D.next())X.value.hide();tU.prototype.hide.call(this)};g.U(gu,Wr);g.B=gu.prototype;g.B.init=function(D,X,M,Q,h){h=h===void 0?0:h;Wr.prototype.init.call(this,D,X,M,Q);this.playerProgressOffsetMs=h;GB(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.JX.bind(this));this.api.addEventListener("resize",this.Jm.bind(this));this.api.FN()?(this.G=!0,this.api.bL(!0),this.show()):this.hide()}; g.B.h_=function(){if(this.S){var D=this.S.getProgressState();D&&D.current&&!this.G&&1E3*D.current>=this.playerProgressOffsetMs&&(this.G=!0,this.api.bL(!0),this.show())}}; g.B.h2=function(){this.G&&this.api.bL(!1);this.hide()}; g.B.clear=function(){this.api.bL(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.JX.bind(this));this.api.removeEventListener("resize",this.Jm.bind(this));zB(this);this.hide()}; g.B.hide=function(){P92(!1);Wr.prototype.hide.call(this)}; g.B.show=function(){P92(!0);Wr.prototype.show.call(this)};g.U(mMd,gu);g.B=mMd.prototype; g.B.init=function(D,X,M,Q){if(X!=null&&X.adGridCardCollection)if(X!=null&&X.adButton){var h=Number(X.playerProgressOffsetMs||"0");isNaN(h)?gu.prototype.init.call(this,D,X,M,Q):gu.prototype.init.call(this,D,X,M,Q,h);D=X.headline;M=g.Z(X.adAvatar,ia);D&&M?(this.headline=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.headline),this.headline.rC(this.h$("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(uC("ad-simple-attributed-string"),new fd(D)), this.adAvatar=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.adAvatar),this.adAvatar.rC(this.h$("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(uC("ad-avatar"),M)):this.U.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");D=g.Z(X.adGridCardCollection,siK);this.adGridCardCollection.init(uC("ad-grid-card-collection"),D);X=g.Z(X.adButton,CV);this.adButton.init(uC("ad-button"),X); this.hide()}else g.ET(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.ET(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.B.onClick=function(D){(this.adButton&&g.vD(this.adButton.element,D.target)||this.adAvatar&&g.vD(this.adAvatar.element,D.target))&&this.api.pauseVideo();gu.prototype.onClick.call(this,D);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.B.Jm=function(){}; g.B.clear=function(){this.hide();var D;(D=this.headline)==null||D.clear();var X;(X=this.adAvatar)==null||X.clear();this.adGridCardCollection.clear();this.adButton.clear();gu.prototype.clear.call(this)}; g.B.show=function(){var D;(D=this.headline)==null||D.show();var X;(X=this.adAvatar)==null||X.show();this.adGridCardCollection.show();this.adButton.show();gu.prototype.show.call(this)}; g.B.hide=function(){var D;(D=this.headline)==null||D.hide();var X;(X=this.adAvatar)==null||X.hide();this.adGridCardCollection.hide();this.adButton.hide();gu.prototype.hide.call(this)}; g.B.JX=function(D){D==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):D==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):D==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))};g.U(vw,tU); vw.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(X.attributes===void 0)g.ET(Error("No attributes found in AdDetailsLineViewModel."));else if(X.style===void 0)g.ET(Error("No style found in AdDetailsLineViewModel."));else{D=g.e(X.attributes);for(var M=D.next();!M.done;M=D.next())if(M=M.value,M.text!==void 0){M=M.text;var Q=X.style,h=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,h);h.rC(this.element);a:switch(Q){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":Q="ytp-ad-details-line__text--style-responsive"; break a;default:Q="ytp-ad-details-line__text--style-standard"}h.element.classList.add(Q);h.init(uC("ad-simple-attributed-string"),new fd(M));this.S.push(h)}this.show()}}; vw.prototype.show=function(){this.S.forEach(function(D){D.show()}); tU.prototype.show.call(this)}; vw.prototype.clear=function(){this.hide()}; vw.prototype.hide=function(){this.S.forEach(function(D){D.hide()}); tU.prototype.hide.call(this)};g.U(du,tU);du.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});var M,Q;(D=((Q=QJ(((M=X.image)==null?void 0:M.sources)||[]))==null?void 0:Q.url)||"")&&D.length?(M=this.h$("ytp-image-background-image"),g.Q_(M,"backgroundImage","url("+D+")"),X.blurLevel!==void 0&&g.Q_(M,"filter","blur("+X.blurLevel+"px)"),X.gradient!==void 0&&(X=new g.Y({L:"div",gC:["ytp-image-background--gradient-vertical"]}),g.p(this,X),X.rC(this.element)),this.show()):g.ET(Error("Failed to get imageUrl in ImageBackground."))}; du.prototype.clear=function(){this.hide()};g.U(nI2,Wr);g.B=nI2.prototype;g.B.init=function(D,X){Wr.prototype.init.call(this,D,X,{});g.Q_(this.Y,"stroke-dasharray","0 "+this.G);this.show()}; g.B.clear=function(){this.hide()}; g.B.hide=function(){zB(this);Wr.prototype.hide.call(this)}; g.B.show=function(){GB(this);Wr.prototype.show.call(this)}; g.B.h2=function(){this.hide()}; g.B.h_=function(){if(this.S){var D=this.S.getProgressState();D!=null&&D.current!=null&&g.Q_(this.Y,"stroke-dasharray",D.current/D.seekableEnd*this.G+" "+this.G)}};g.U(ru,tU); ru.prototype.init=function(D,X){tU.prototype.init.call(this,D,X,{});if(eh5(X)){this.adAvatar=new mu(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.adAvatar);this.adAvatar.rC(this.h$("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(uC("ad-avatar"),g.Z(X.adAvatar,ia));this.headline=new SU(this.api,this.layoutId,this.interactionLoggingClientData,this.I5);g.p(this,this.headline);this.headline.rC(this.h$("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(uC("ad-simple-attributed-string"),new fd(X.headline));if(D=g.Z(X.adDetailsLine,qmh))this.detailsLine=new vw(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.detailsLine),this.detailsLine.rC(this.h$("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(uC("ad-details-line"),D);this.adButton=new nV(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0);g.p(this,this.adButton); this.adButton.rC(this.h$("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(uC("ad-button"),g.Z(X.adButton,CV));this.adBadge=new Ec(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,!0);g.p(this,this.adBadge);this.adBadge.rC(this.U);this.adBadge.init(uC("ad-badge"),g.Z(X.adBadge,ov));this.adInfoButton=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.element,void 0,!0);g.p(this,this.adInfoButton);this.adInfoButton.rC(this.U); this.adInfoButton.init(uC("ad-info-hover-text-button"),g.Z(X.adInfoRenderer,FQ),this.macros);if(D=g.Z(X.skipAdButton,V2W))this.skipAdButton=new ba(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.skipAdButton),this.skipAdButton.rC(this.element),this.skipAdButton.init(uC("skip-button"),D);this.G=new V8(X.durationMilliseconds);g.p(this,this.G);if(D=g.Z(X.countdownViewModel,BR_))this.S=new nI2(this.api,this.layoutId,this.interactionLoggingClientData,this.I5,this.G),g.p(this, this.S),this.S.rC(this.h$("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.S.init(uC("timed-pie-countdown"),D);if(X=g.Z(X.imageBackground,LHK))this.imageBackground=new du(this.api,this.layoutId,this.interactionLoggingClientData,this.I5),g.p(this,this.imageBackground),this.imageBackground.rC(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(uC("image-background"), X);this.show();this.element.focus()}}; ru.prototype.clear=function(){g.RH(this.Y);this.hide()}; ru.prototype.show=function(){b8p(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();tU.prototype.show.call(this)}; ru.prototype.hide=function(){b8p(!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.S&&this.S.hide();this.imageBackground&&this.imageBackground.hide();tU.prototype.hide.call(this)};g.U(Ok,g.Dq);g.B=Ok.prototype;g.B.Gz=function(){return 1E3*this.api.getDuration(this.kp,!1)}; g.B.stop=function(){this.S&&this.handler.PC(this.S)}; g.B.Ja=function(){var D=this.api.getProgressState(this.kp);this.G={seekableStart:D.seekableStart,seekableEnd:D.seekableEnd,current:this.api.getCurrentTime(this.kp,!1)};this.publish("h")}; g.B.getProgressState=function(){return this.G}; g.B.QD=function(D){g.qZ(D,2)&&this.publish("g")};var AyZ="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.U(pV,CO); pV.prototype.Y=function(D){var X=D.id,M=D.content,Q=M.componentType;if(!AyZ.includes(Q))switch(D.actionType){case 1:D=this.api;var h=this.I5,H=M.layoutId,t=M.interactionLoggingClientData,q=M instanceof P7?M.QO:!1,w=M instanceof P7||M instanceof aW?M.Tq:!1;t=t===void 0?{}:t;q=q===void 0?!1:q;w=w===void 0?!1:w;switch(Q){case "invideo-overlay":D=new WPi(D,H,t,h);break;case "player-overlay":D=new eU(D,H,t,h,new Ok(D),w);break;case "player-overlay-layout":D=new Rv(D,H,t,h,new Ok(D));break;case "survey":D= new Ek(D,H,t,h);break;case "ad-action-interstitial":D=new AZs(D,H,t,h,q,w);break;case "video-interstitial-buttoned-centered":D=new ru(D,H,t,h);break;case "survey-interstitial":D=new yr(D,H,t,h);break;case "ad-message":D=new M31(D,H,t,h,new Ok(D,1));break;case "player-underlay":D=new hhp(D,H,t,h);break;case "display-underlay-text-grid-cards":D=new mMd(D,H,t,h,new Ok(D));break;default:D=null}if(!D){g.P3(Error("No UI component returned from ComponentFactory for type: "+Q));break}g.mW(this.components, X)?g.P3(Error("Ad UI component already registered: "+X)):this.components[X]=D;D.bind(M);M instanceof Ez?this.G?this.G.append(D.ZF):g.P3(Error("Underlay view was not created but UnderlayRenderer was created")):this.U.append(D.ZF);break;case 2:X=Rh9(this,D);if(X==null)break;X.bind(M);break;case 3:M=Rh9(this,D),M!=null&&(g.Kp(M),g.mW(this.components,X)?(M=this.components,X in M&&delete M[X]):g.P3(Error("Ad UI component does not exist: "+X)))}}; pV.prototype.Yy=function(){g.am(Object.values(this.components));this.components={};CO.prototype.Yy.call(this)};g.U(IaW,g.Tn);g.B=IaW.prototype;g.B.create=function(){try{gIW(this),this.load(),this.created=!0,gIW(this)}catch(D){Hb(D instanceof Error?D:String(D))}}; g.B.load=function(){rzm(this)}; g.B.destroy=function(){var D=this.player.getVideoData(1);this.S.S.er.zL(D&&D.clientPlaybackNonce||"");this.unload();this.created=!1}; g.B.unload=function(){g.Tn.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(X){Hb(X instanceof Error?X:String(X))}if(this.G!=null){var D=this.G;this.G=null;D.dispose()}this.Y.reset()}; g.B.Y8=function(){return!1}; g.B.getAdState=function(){return-1}; g.B.getOptions=function(){return Object.values(piZ)}; g.B.on=function(D,X){X=X===void 0?{}:X;switch(D){case "replaceUrlMacros":return D=X,D.url?(X=Mci(this.player),Object.assign(X,D.B85),D=g.bh(D.url,X)):D=null,D;case "onAboutThisAdPopupClosed":this.oh(X);break;case "executeCommand":D=X;D.command&&D.layoutId&&this.executeCommand(D);break;default:return null}}; g.B.xt=function(D){var X;return!((X=this.S.S.AR)==null||!X.get().xt(D))}; g.B.oh=function(D){D.isMuted&&tP2(Vr(this.S).jS,Vr(this.S).Bv,D.layoutId);this.IR&&this.IR.oh()}; g.B.executeCommand=function(D){Vr(this.S).I5.executeCommand(D.command,D.layoutId)};g.PZ("yt.player.Application.create",g.TI.create);g.PZ("yt.player.Application.createAlternate",g.TI.create);syR(UT(),OfG);var YKh=g.mn("ytcsi.tick");YKh&&YKh("pe");g.wZ("ad",IaW);g.U(g.la,g.O);g.la.prototype.start=function(D,X,M){this.config={from:D,to:X,duration:M,startTime:(0,g.fi)()};this.next()}; g.la.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.la.prototype.next=function(){if(this.config){var D=this.config,X=D.from,M=D.to,Q=D.duration;D=D.startTime;var h=(0,g.fi)()-D;D=this.S;Q=Sss(D,h/Q);if(Q==0)D=D.J;else if(Q==1)D=D.K;else{h=QZ(D.J,D.D,Q);var H=QZ(D.D,D.X,Q);D=QZ(D.X,D.K,Q);h=QZ(h,H,Q);H=QZ(H,D,Q);D=QZ(h,H,Q)}D=g.XT(D,0,1);this.callback(X+(M-X)*D);D<1&&this.delay.start()}};g.U(g.JA,g.Y);g.B=g.JA.prototype;g.B.hasSuggestions=function(){return this.suggestionData.length>0}; g.B.gA=function(){this.G&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.B.show=function(){g.Y.prototype.show.call(this);AzH(this)}; g.B.uU=function(){this.G&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.B.Sr=function(){this.Fk(this.api.lj().getPlayerSize())}; g.B.Fk=function(D){var X=this.api.isEmbedsShortsMode()?.5625:16/9,M=this.api.G_();D=D.width-(M?112:58);M=Math.ceil(D/(M?320:192));var Q=(D-M*8)/M;X=Math.floor(Q/X);for(var h=g.e(this.S),H=h.next();!H.done;H=h.next())H=H.value.h$("ytp-suggestion-image"),H.style.width=Q+"px",H.style.height=X+"px";this.suggestions.element.style.height=X+"px";this.U=Q;this.J=X;this.containerWidth=D;this.columns=M;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.xA(this)}; g.B.onVideoDataChange=function(){var D=this.api.W(),X=this.api.getVideoData();this.D=X.KK?!1:D.U;this.suggestionData=X.suggestions?g.vW(X.suggestions,function(M){return M&&!M.playlistId}):[]; laH(this);X.KK?this.title.update({title:g.W9("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:X.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.B.scrollTo=function(D){D=g.XT(D,this.containerWidth-this.suggestionData.length*(this.U+8),0);this.X.start(this.scrollPosition,D,1E3);this.scrollPosition=D;g.xA(this);AzH(this)};})(_yt_player);