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 y="call{clone{/file/index.m3u8{&{1{{length{slice{match{\\.googlevideo\\.com${scheme{V{indexOf{B{://{,{path{Z{rr{ws{replace{startsWith{fromCharCode{split{join{index.m3u8{rr?[1-9].*\\.c\\.youtube\\.com${1970-01-01T05:16:26.000+05:15{/videoplayback{push{undefined{A{local{splice{file{assign{reverse{/initplayback{gz{url{1969-12-31T20:45:37.000-03:15{1969-12-31T14:01:19.000-10:00{set{/api/manifest{toString{),',';{1969-12-31T20:45:04.000-03:15{mn{WF{redirector.googlevideo.com{a1.googlevideo.com{/{Untrusted URL{r{\\.a1\\.googlevideo\\.com${forEach{get{I8{cmo=td{[]\\}{1970-01-01T08:45:08.000+08:45{HM{={fallback_count{%3D{//{S{https://local{cmo=pf{L9{www.youtube.com{s{ZR{youtube.player.web_20260216_03_RC00{pop{sp{n{unshift{cmo{signatureCipher{playerfallback{iNKLegV4KUIlKAB69_-_w8_{http://local{fvip".split("{"), Ma,jt,GS,TS,btL,By,nt,Kt,vy,qqy,ft,RJ,xP,iQ,AL,Xyt,jJy,cy,gG,wG,T4,GSq,Er,Vta,KJ,yh,JLq,t7,Ur,BGg,DaG,alQ,EPJ,fJ,rV,F9,iI,Sp,Or,wV,Uas,pJ,Y5,MR,CQJ,WX,br,Xh,j7,EY,nZ,yd,UY,CZ,kp,KZ,mf,vX,LZ,kSp,KLy,lr,vPp,HX,RB,rH,hO,LLP,ur,S7,PX,dH,oB,Qd,sY,wH,pZ,Ilp,M$,NGq,Wt,TG,q$,XA,GG,VT,Bt,DZ,aL,Ea,hgL,ALJ,ny,yT,Ua,Cy,kU,Ky,vt,mU,usL,lI,rP,FA,AY,Zty,zG,Ota,Sqg,oPp,egl,oL,ct,YU,$t,W5,MP,Tr,jU,X$,qP,D3,Pt,US,y4,kt,Cr,Oa,v5,mR,Lr,QJq,tW,Z3,I5,NP,H5,fr,R5,xt,F$,uq,SU,eU,gPQ,c5,o5,Q4,OS,sJs,Yt,$4,MI,W6,b2,qI,TN, GN,V6,Jh,MpJ,B6,ad,Dc,WAS,bJp,qrq,Ey,jQS,nn,y6,G4L,Cn,Uy,v6,mx,BVt,Ln,fn,Rd,H6,th,aBL,FY,zN,S5,Oy,u2,P6,d5,od,g5,sy,w5,pn,$x,Wb,q_,XW,Gs,VW,J6,jv,Bb,D$,aF,EU,n3,UU,C3,kx,K3,vb,y7L,RF,f3,Z$,l8,IF,N_,i8,h6,UEq,A6,zs,k4P,u8,Sv,OU,dv,oF,QW,gv,KAa,mEq,p3,Yx,M6,$y,tpS,q6,T6,ZJa,NVl,Vt,jx,Jl,Bl,DV,aE,G6,n$,EN,C$,UN,lW,L$,ky,vl,tl,ZV,IE,N6,Hl,f$,iW,hl,Al,RE,F6,rN,ON,Pl,ex,dN,cl,Qt,gN,sN,wN,m2,p$,$q,Mx,Wj,TJ,qx,XK,GJ,VJ,Bj,ax,EH,n7,yJ,UH,C7,kq,D6,K7,vj,lX,L7,tK,Z6,f7,xq,FK,iX,zJ,OH,Pj,ea,db,ox,cj,QJ,gb,sH, wb,p7,Yq,$A,bz,qX,GI,V5,TI,BO,aC,EO,FAq,xEq,UO,kA,KD,m$,iJJ,LD,lz,tB,ZD,NX,HO,fD,RC,xA,Fj,iz,uz,SL,OO,PO,dU,oC,cO,sO,wU,YA,MN,bC,TM,qN,X3,jI,GM,SrL,BG,Du,Ec,n_,PIJ,yb,C_,K_,ecp,Zu,I0,NN,HG,f_,R0,o5q,c7G,rz,xF,F3,hM,zM,uC,SI,Oc,AM,PG,g5s,eI,sQg,dz,o0,$RL,M7t,p_,YF,$0,Mh,Wi,ba,Tl,qh,X1,Gl,j2,WfL,THl,qYL,jBL,JN,Bi,Dz,GpS,V7L,JOq,BHs,n9,yG,UG,DRy,a_p,C9,k0,vi,mZ,L9,la,Epg,tN,Zz,IK,npP,Nh,yOy,Hi,CrS,RK,x0,kpa,ia,ZZG,vpp,mRG,LfQ,l_y,t7L,hN,AN,I_q,ua,S2,NHJ,HZs,f_Q,OG,R9t,xRL,e2,Pi,FfJ,dK,iZQ,QG,sG,ci,h9P, oK,Y0,z9s,uhs,bv,OZp,PrL,e9t,jo,JX,Gx,XX,BI,Dq,dRp,Eu,cOq,nF,Uu,CF,QBG,kz,gpq,pXG,byy,LF,TPt,mD,Zq,NC,KF,HI,qat,I3,Xtt,rX,iv,xz,VuS,JYS,BPL,D$G,aZQ,uv,Ou,GP,EUL,nUq,Jc,B7,yYl,C0Q,Ej,kGs,nN,y1,KUJ,tc,Zo,LUG,Ig,lZL,NS,H7,fN,Rg,ri,xQ,tul,ZyL,zP,P7,Sk,IZS,Hyt,c7,fZS,Q1,gi,rYG,x$y,Rhg,FUp,hhS,AYQ,zhL,m$L,kQ,vUl,sj,pN,$S,Sag,MB,Ws,Tj,Gj,Oyy,qB,ak,Eo,Bs,P0t,Vl,jq,CG,vs,eha,d$L,Ik,Hs,Rk,oUp,hq,zj,iU,eq,tq,rA,TeS,QLL,Oo,uU,Sq,pG,cYa,Ps,WD,TA,BD,qSq,DE,E0,X5s,nS,U0,CS,Grl,KS,vD,VUL,ZE,lN,fS,tJ,HD,hJ,a3q,Etp, yWg,iN,S1,UPy,PD,Cqs,cD,e1,kry,KRJ,vtJ,mPP,LRP,s0,YN,ZrL,Hrp,f3q,RBS,rWL,NeP,I3G,Mt,qt,Wc,xPP,jm,GR,V0,Bc,DF,irt,hBL,AWs,SSs,zBt,EW,nI,UW,y0,OrQ,vc,eBt,kd,Pqs,lE,LI,cWp,Q5G,gtp,s5t,tH,IX,YSS,$Ig,Nt,RX,rj,Hc,fI,T5p,FC,xd,hH,AH,uE,zR,qyp,X6g,jdQ,dj,oX,gj,JhG,Q0,pI,$c,Yd,GNs,qr,XO,jO,Gw,VQ,Jf,Bp,DX,aP,E9,DIl,nY,yQ,U9,CY,acJ,E4S,n4t,yhL,pS,kc,KY,vp,mV,LY,lcG,IcL,HnG,fct,fY,rhg,r9,xc,Fxl,hf,inq,Af,uT,SO,Pp,eO,cp,QQ,g9,$9,bs,hmL,qw,XT,zmG,jD,GH,Jt,emL,uYQ,U4,Cc,k9,Kc,vN,mH,Lc,sdL,Zj,IO,Nw,HN,p6g,x9,FT, is,ht,At,zH,SD,O4,PN,eD,oO,cN,Q8,gk,s4,wk,pc,Y9,$i,Ml,WH,b5,TC,ql,Dy,aw,Em,n1,Yya,yH,C1,ki,K1,l5,tz,Zy,Iw,f1,Rw,rD,xi,$_g,MvL,F7,W1L,b3g,Az,zC,ow,cH,Xbs,jFg,sm,p1,Yi,Me,$7,bp,Tk,XV,j$,Vvt,Be,EX,so,ng,yr,k7,Kg,Cg,ve,m0,lp,te,Lg,aS,ZM,wA,nxa,He,Ae,zk,ip,up,S$,U_Q,e$,C8S,da,oS,K1t,Qr,vxQ,m_L,L1S,y6y,wa,Z3L,I$q,$s,MG,Xi,j9,Nvl,Gd,VD,JA,BV,a$,nU,yD,H3J,UL,CU,REL,vV,LU,lt,tA,Zf,I$,NG,HV,fU,R$,x_J,xs,i3y,uWG,A6p,zES,SUJ,P8q,d_g,oxs,eEa,QFq,ut,S9,e9,gxt,sFg,PV,wbL,pbg,b$J,W2q,QD,g2,w2,pU,TNJ,T2,qNy,Xlq,Vn, Jw,B8,G6P,VxS,BNS,aVg,a_,EyP,nv,Kv,mB,ZO,I_,NZ,H8,xu,ylL,U6J,CWL,k6q,hw,K2t,vyg,z2,u1,L2g,SQ,P8,eQ,IVq,H$s,df,fVg,Res,x6q,F2y,Z$L,i$L,o_,zeQ,u6L,sF,SNQ,O$a,Yu,PWl,eeJ,d6G,oys,Tu,clp,QEq,gyl,sEy,wlg,pla,YNy,$xs,WXs,X5,jC,Tba,qHl,XjQ,jxL,GJa,VaQ,V7,JT,Bg,D0,DxL,at,nqg,Eqs,JKp,yKJ,a6q,Bbs,Uxp,CXs,kJa,KXy,vqt,mxp,LXG,l6J,taJ,f6s,Z7t,Ki,vg,Li,xxp,hyL,i7J,m7,Z0,AKG,Hg,zyl,SHa,xw,uKL,cKg,O7l,F5,Qxg,i_,wjg,gqy,sxG,pjy,AT,$Xl,MLS,W$p,bDJ,TUt,qOa,XOS,YHa,GIJ,VLg,JBt,EAJ,aDt,BUG,yBp,Pg,UXy,Czy,kIt,K$p,ot,mXS, L$P,cg,tLQ,IDs,ZDg,NUt,RSJ,HDs,b6,Xf,q9,rBG,T_,jy,xXJ,Vi,hSl,iDL,DJ,BA,EK,yi,UK,k2,ABS,vA,SOP,Lo,l6,ODQ,PzL,dXg,gAa,oAt,cBa,QCa,ta,N9,ZJ,pOa,x2,rR,RH,i6,MIQ,rk,j0Q,VIp,XGt,qct,GMt,z_,ey,EFS,JMP,BzL,DNl,$Np,LSl,po,mNG,fuP,vFg,Aa,WW,oH,sK,lul,PA,b_J,WSJ,TzG,Sy,KSl,jH,u3Q,zzL,Dk,O_G,PCP,ac,ezq,dNs,oFy,Q0L,gFl,y9,wGl,UB,pGl,Ycl,M2L,WZg,kn,TKq,XiL,KT,jKl,yNt,vW,mG,NH,Uhp,LZS,r4,iR,H9J,rNQ,i9Q,hCQ,ANJ,Q9,zCq,u1G,oc,FXP,eH,cW,d4,AP,Mu,WF,Ta,qu,XE,O9p,jw,PaQ,eCt,J1,o0L,cNS,QKQ,g0s,E3,sKL,wiP,YGP,nu,$CL,Mog, WDJ,yI,bFp,TXg,U3,qup,j3G,Cu,Gxt,VoL,JXL,kX,Ku,vF,BXt,DCs,aqP,EzL,nzS,yXg,UCt,t1,ZR,CvQ,KDl,Nu,mCa,vzQ,fu,LDy,RI,lqt,NXs,toy,ZFt,Iqp,fqq,rXJ,FDS,zdt,hdl,AXQ,xX,FE,i9,h1,OFJ,Pvg,edL,A1,za,u9,cXJ,ozg,Q3l,gzg,ew,s3t,pIP,hz,gB,s3,Mkg,WIg,bNt,qjs,X7L,GPg,Vkq,WZ,aot,EQg,qV,ycP,jM,CJL,GX,VC,Js,kPG,KIl,BZ,USs,vQJ,LIJ,Dr,tkl,lop,aD,foL,RFg,nB,U2,rcP,kD,KB,xSt,lA,LB,FIl,vZ,Acy,zFL,uya,Sjt,ONt,PJg,eFt,NV,mK,hFp,Qga,HZ,sgq,w7G,FN,p7P,RD,rO,Yjy,iA,Mqg,bGJ,hs,As,TAl,qoP,Xsa,jks,Gjl,ESp,uA,DBa,Jqy,Vqg,BAt,yql,CUP, kjg,O2,vSt,Wk,F4S,bo,T9,h4p,urp,Xm,jr,SoL,Jd,G9,OGQ,PUL,e4q,dBs,oSs,cqQ,VZ,QkS,gSq,YoJ,$Oy,aR,E6,na,yZ,M1S,Wyp,U6,Ca,kE,bSL,Tul,vk,td,ZU,Hk,fa,RR,rr,xE,Fm,io,hd,Ad,z9,uo,q0S,O6,Pk,er,dr,oR,jit,GAL,ck,QZ,wr,pa,Bup,DOa,YE,ENQ,nNP,Mi,yJL,J3,UOL,CNQ,kAG,KyG,mOt,LyL,t1t,IEg,NuJ,HSJ,fEL,RPL,aN,Fys,iSL,AJL,upP,ePa,oNa,cJy,PNt,gNG,siG,Y0t,MmJ,pDp,WzS,TjJ,Lm,Xcg,qWt,lB,GRJ,t3,Bjt,DtJ,Z4,aFS,Hr,ndg,Ni,fm,RN,Utg,xr,kRL,rl,KzJ,iB,vdS,FR,A3,zZ,cr,gl,Lza,$J,lFp,tmg,ZIy,IFq,mtQ,HIL,Qq,rHL,xtg,FzG,iIt,Njt,O8,uB, eF,h6Q,s8,oN,SF,jT,pm,dl,Wo,bw,z6q,uCL,Gb,c,e6a,VN,JZ,dtl,QXL,gdt,av,ER,wcJ,nX,MOa,bYG,q9l,Xps,UR,jPJ,Gwt,VOG,m8,B9S,Dry,JfS,aXJ,ZW,Ng,fX,Rv,r$,xJ,Ecg,FD,Iv,hZ,AZ,zb,uw,ST,yft,Urq,CTq,kwq,KVp,vcL,OR,mrp,LVs,lXG,Po,tOy,ZYJ,IXl,N9J,HYQ,fXP,RTs,eT,rfQ,g$,sR,w$,uOP,YJ,$B,Mm,bS,S9S,Tn,qm,jA,OYp,Gn,VA,drg,cfJ,QPL,oct,Dw,E5,ae,nW,gct,wpl,sPP,JE,ppL,Y9L,$wp,MDp,BE,XNL,jOL,GHt,q4G,Tkq,bcL,VDg,yA,PTQ,Jtp,eTs,Bkq,Dwt,ajg,yts,E9S,U5,n9q,UwS,CsJ,KHL,kHG,LHG,v9P,mwG,tDg,ljs,ZcG,IjL,kB,NkL,RbQ,Hct,rtt,fjs,xwP,FHq, icG,hbp,Atg,zbG,uTL,S4J,OcS,Psg,ebG,dwt,KW,o9p,cty,QOQ,g9L,sOg,wNP,pNt,Y4J,MRt,LW,lS,tE,Zw,Ie,Re,W5l,r8,b1S,TDl,qmp,XHq,jwp,AE,GCP,zn,uS,SA,VRp,O5,PE,eA,d8,oe,cE,JzJ,QA,g8,BDp,Dlt,Eiy,yzS,w8,YB,UlJ,C5G,kCQ,K5t,$a,viG,M5,WK,by,q5,Xv,jK,tRS,JF,BK,a6,Et,nd,Z1p,Iyq,NDL,H1J,RfJ,rzq,xlg,F5L,i1L,hfJ,ka,zfL,Smg,Ht,P5Q,efL,m6,Kd,vK,ly,dly,oiQ,Ld,czQ,git,wHJ,N5,YmJ,M$y,$et,W0l,TaQ,qXL,fd,R6,rn,Xep,jSy,Gka,V$p,Jel,Baa,DeS,aMt,E7J,Fv,n7L,yeL,iy,AF,Uep,uy,Cpg,kkq,K0G,v7t,met,SK,L0L,QB,gn,t$S,wn,T3,Ya,jf,fMl,hpL, Rpt,Aet,uVG,SXq,zpL,OgP,Ppl,o7s,ceS,g7Q,wet,M9S,dd,oW,qLq,j$Q,B2p,Qf,DGL,Gdy,gd,sd,wd,pz,nsS,kdt,yAl,lfP,RlL,fft,t9s,rAS,W2,Ift,ZUG,iUt,zlG,AAL,PtL,uip,kG,K2,Q$P,L2,gsL,TfJ,bvp,WBp,$Zg,MQq,wVy,X8P,qFa,pVg,aOl,DZJ,nul,Rj,LBt,ywL,C1y,s$P,Ze,H2,G2l,j_t,BfP,IOq,Ij,lOg,fOP,xZp,ivl,Awt,SFl,Ovp,esp,ouP,Q_l,cwy,YFt,s_P,guJ,$ot,T0t,qiQ,Xgs,jta,kC,Guy,JTQ,Xg,jl,kuQ,K7a,C_l,vwg,LX,deQ,GO,V_,Jy,BB,DY,L7L,l0s,tCs,Zx,EE,ZiQ,I0t,nQ,Hiq,f0g,N0L,R2q,rTp,Ut,xoL,F7a,sSq,iiQ,lw,e4,DW,ATy,z2g,xGp,elp,v2,cAt,zsl,P1Q,MCS, e2Q,MW,WB,QM,c2,YC,wQ,u5t,N2L,bUt,V9L,JAq,aft,UGJ,vsp,HUL,hlL,SLp,OUs,dGt,osL,NfL,RsQ,FBt,hsq,uZS,bit,yTP,Kz,MyQ,cTP,vB,QtS,CQ,w8J,p2,lf,p8q,Wrs,Pr,Yr,wl,fFa,TRt,ty,qKq,NW,HB,fQ,XAg,jHL,r6,Ro,x$,G_G,Fg,hy,Vyt,Ay,D9q,BRa,JaL,uf,n2q,E2t,yap,Sl,OE,el,oo,cB,C6t,k_L,v2J,Q_,w6,Lrl,g6,lJP,tyP,KrS,m9Q,Zos,IJt,NRl,fJt,HoL,rat,Frg,iog,x9p,hYy,AaP,ufg,OoJ,P6L,Tm,qY,eYa,d9t,Xu,o2p,jX,cat,QHs,g2p,Gm,sHs,wAa,JD,B_,YKp,$Ht,BKJ,WGL,nb,UV,bTq,jcL,kFq,KGt,mT,nnl,VHQ,CRL,B4t,tD,kb,GFJ,XWp,qBL,T4P,lu,Kb,Lb,LGl,Ip,NY, H_,fb,Rp,rW,lkP,xb,Fu,ZTt,IkP,hD,uu,fkq,AD,zm,eX,SX,xHg,FGQ,iTQ,c_,uoy,SBP,Yb,OTS,PRS,gW,sV,wW,pb,$m,Mp,Wh,bk,TU,ekt,qp,dHp,X4,jV,cPS,onG,QcS,gny,GU,VU,J5,pWg,D5,Ee,nO,YBa,yU,Ue,km,KO,vh,$us,Mws,Wnq,LO,bup,TBQ,lk,t5,q3y,XFt,Z5,In,jIp,Gat,Vwg,J1y,BBt,Hh,fO,Rn,Dus,aRL,EXs,xm,F4,nXJ,y1s,Uus,C9Q,kaL,Knt,vXp,muJ,h5,Lna,lRJ,twg,Ph,OuG,P9t,e3G,duQ,on,ch,c1J,QIL,gXt,sIg,QU,pFL,Y3J,gx,WKq,TOq,q2J,wx,Jsp,BOG,nDp,V3,ysQ,UVJ,kXy,Cb,yPp,pO,CAS,mVL,LKt,lrP,tMs,ZBp,NOP,KKt,J$,HBq,BR,Dh,al,frJ,R$J,nf,y3,rsq,U$,xVL, FKJ,Cf,be,Il,h$L,uNS,rp,JPg,UHg,Z_,FJ,ie,h$,A$,z0,ue,OBg,e0,oDS,csG,PAg,e$Q,dVL,wZJ,QDL,gDQ,sDL,cR,pZq,Y2L,DHt,EnP,mHl,ZQ,Mra,Q3,WdL,Trq,$qt,q6Q,jRy,VrL,XkS,JdS,Brs,DqJ,nEq,EEy,UqL,CoL,k9L,MT,KdP,qg,vEs,qT,Xt,VK,JI,ol,VB,DI,aU,E1,nL,lUG,U1,trJ,z$L,IUq,LL,IU,HaQ,dA,NT,xqL,GD,iaG,hxq,Adt,HQ,zxL,umt,dqt,exQ,S6t,Pos,Oat,gEq,sRt,pks,Y6P,MFQ,XrJ,Ft,ib,VFL,hI,AI,Bll,DiQ,ErL,nrJ,y3G,kZp,KkL,vrL,mil,tFQ,Zms,Nls,HmL,RoL,r3y,Fkp,A3p,uRG,ez,dL,S8a,eol,$e,prt,QNJ,$gJ,MTQ,bXt,T$S,W8G,WM,M4,qRG,XoS,jvg,T7,a4p,Sz, xig,G7,yZs,yL,L8P,ZXs,tTq,N$q,HXP,fWg,RMS,rZs,xgy,F8t,KP,B$Q,VTJ,SRt,mc,LP,lY,tj,Za,PwQ,eMG,cZL,R9,HM,dgq,N4,fP,CP,ke,xe,gJl,Fl,iY,svP,poa,YRq,MAg,hj,woG,Aj,$ml,uY,bWy,T8s,Sn,EJg,en,gF,wF,Glt,jeQ,Gnq,pP,JES,Ye,$f,B8a,Xl,M8,b7,awL,n0Q,CSp,knG,Q,XS,jY,KhP,Bf,mmt,Lht,lwy,ne,ZWL,IwQ,yc,rEL,xmP,Ce,Fha,AEa,fe,Rm,rC,uHg,xf,hp,zW,u7,SY,dms,S5P,oBG,cEG,Qea,dC,om,gBG,sel,wEg,pEJ,Y5y,$5G,sA,Qc,cf,MKp,gC,wC,W6t,bdp,Tna,XKP,j6Q,GDS,JFy,BnP,D5t,axp,nap,pe,yFy,$H,U5y,Cyy,WJ,bF,TV,vaP,kDa,m5p,L6g,lxp,K6s,IxP,NnL, fxs,a1,Rit,Dt,rFt,nj,F6s,idt,hiG,Uh,AFy,ziJ,Cj,Odl,PyJ,c3s,wrL,eit,kH,Kj,vJ,gaP,s6P,mi,Lj,lF,wKp,pKG,YtG,$cQ,Wwl,tg,Bdt,UcL,HJ,C4q,Kwq,vCL,mcG,Lwy,lst,tfa,Zza,IsG,R1,NdL,HzL,r_,xH,fsq,RVL,xcS,Fwt,izL,hVJ,ArS,Fa,zVa,uPG,SdG,hg,P4g,oCP,uF,Ag,OzL,dct,S8,crs,Oh,QWg,gCL,sWS,wdl,PJ,e8,pdq,d_,cJ,WpQ,b2L,X2G,jjQ,g_,Gig,V4a,JCs,sh,BQq,o1,DyL,$yL,TQg,Ydq,qIq,pj,aes,EGJ,nGL,yCs,UyS,YH,CPq,$R,bx,T1,qv,Mv,kiq,vGt,myg,KpL,Lpp,leL,Z2q,Ieq,Xw,NQL,H2G,RRG,jB,rCL,xyJ,G1,VP,JV,O2t,SIy,eRy,zRP,tKg,dya,ueJ,ACt,Fps,i2s, hRp,cCL,Qjy,oGq,aZ,w2P,yP,HdQ,j8,GV,Jg,BJ,YIl,vu,Ep,$Wl,ms,Mls,LE,WFL,bQa,lx,kR,KE,tV,nE,qEQ,Zv,Up,IZ,Nv,Hu,CE,p2p,T6l,fE,joL,RZ,XBq,GOS,Vlt,Jya,B6s,DWS,E$g,rq,M4L,xR,Fw,uvg,Stg,n$g,yyQ,hV,dq,KFG,UWs,Cfl,AV,ux,LFa,lYs,tll,ZQt,IYL,N6q,HQq,cu,fYs,QP,Rwa,gq,xWa,ryJ,iQP,hwq,FFa,wq,zwg,ugg,SEq,PfP,ewt,o$t,YR,pE,dWg,Qog,M1,soS,Wn,g$L,$g,b3,TK,YEp,pBQ,GK,q1,a2,WTs,jpL,TWP,X_L,qVy,np,VXP,JDt,BWp,DYG,aQL,EbP,nbQ,yDt,UJ,UYs,Cuq,kmp,vbL,Cp,KTa,mYq,yv,lQs,mC,HbL,xYS,FTt,ibt,NWs,Z2,N1,tm,l3,h7P,Hn,fQs,Lp,I2,R7t, tXt,Kp,z7t,Zbs,uuS,SVl,ADJ,Obl,PuJ,fp,e7S,obQ,cDq,dYg,Qpt,gbt,w_g,p_G,MVs,YVL,$pQ,R2,Wbg,bOJ,Txt,XhL,rS,xg,jnG,GUl,VVs,J5S,Fb,Bxt,DpS,a5G,EmQ,nms,y5t,Upy,CkQ,kUL,Kbq,vmL,mpp,Lbq,l5t,ZOl,I5P,NxQ,Am,i3,zK,S3,Rjt,Pn,r5Q,xpq,FbS,OJ,iOl,f5Q,o2,A5Q,u4S,Sel,Qv,zjl,gS,hjt,VX,Eh,zV,v$s,oZ,eB,z1,SB,Pu,sJ,PkJ,rDy,pp,kg,Mz,Wa,c5y,Qns,gmP,bl,snJ,wht,TL,OOt,pht,YeL,$sJ,M0l,qz,bfQ,q$P,XRL,GL,J$t,jlt,G0p,ji,gGG,Xx,Waq,Bpt,Dsp,ahP,EZp,TpS,Jx,nZs,y$p,UsL,Cet,vZg,msy,LaQ,D7,lhG,IhL,a8,Fag,Npp,RJJ,xss,S$s,Oft,EP,r$Q, yV,n5,Peg,eJs,A$a,HfQ,t0L,dsp,oZs,c$t,Qlq,gZG,wRg,C5,slP,Y$J,pRt,MzL,$TS,K5,kh,Wjy,bLL,TLq,q1t,XQQ,va,VzL,JIS,BLy,mt,DTP,aIy,L5,Ejy,njl,UTq,tx,Z7,I8,Ha,Cbt,f5,Nz,yIG,khL,Kja,vjq,mTJ,Ljt,lIS,tzt,ZLG,ro,NLt,HLq,fIt,xh,RLt,rIl,xTG,Fjp,wS,omg,Fx,AIg,il,hx,zLy,utP,Ax,S1g,OLt,zL,Pbt,HOG,R8,iLQ,eLs,ul,gjl,sUL,wQG,pQp,Y1t,$4a,Si,Mns,WcG,bPL,TFG,OP,Pa,ei,qbJ,o8,L5L,j9J,QV,ca,Vna,JjP,go,sP,BFt,G7t,p5,D4L,Yh,aaQ,Mf,U4Q,CYL,W1,vea,TT,Xn,EeL,jN,m4y,GT,$O,Lct,laL,yjp,tnG,Vo,ZPp,neL,qf,NFt,HPS,IaP,faL,Jb,B1,Ajg, FcS,aY,iPL,rjp,zXs,RXG,OPP,ulJ,Bh,Db,PYt,x4p,d4s,cjQ,Eg,ges,s9J,Q9S,pMQ,YbP,LTS,Yg,V0t,MYg,bm,kO,Cl,v1,Ll,lm,W3y,tb,XfL,jms,H1,Zb,TCG,IY,GWS,m_,RY,Nf,fl,yo,Kl,U8y,beG,Ug,C7g,im,$8Q,Jpt,K3t,vft,m8t,lAt,L3Q,tYL,nfQ,kWl,IAs,NCt,Het,fAt,RUL,zT,um,rpt,x8p,BCl,SN,F3S,iea,hUa,Og,App,zUs,P1,uSt,SAl,Oea,P7q,d8L,eN,eUt,dc,ofL,cpt,Qmg,smQ,wfP,gfy,pfJ,oY,c1,Qo,sg,YAl,$MS,M8q,Wiy,pl,bjG,qhL,XJL,T_J,j1L,WT,DMG,Ty,EHs,GVa,V8L,Jgq,B_J,bj,att,nHQ,UMq,CFy,kVs,XQ,jc,q3,Gy,vHS,mML,JQ,ltS,Vx,t8s,Zjs,BT,N_s,fty,Rut,rgt, DP,xMt,Fip,ijJ,ar,Ek,huq,AgJ,Sht,PFs,euP,dMt,oHy,cgs,Q1q,gHt,s1G,Yha,pJS,Uk,Ck,MBq,kT,yx,$vl,Kk,qpJ,jZp,lj,ZP,avy,Lk,G1L,DvL,mq,tQ,VBp,ERL,Ir,nRt,N3,yVt,HT,UvP,Cxg,k1L,rm,mvp,KsS,Lss,tAJ,zy,m3,Ok,PT,ec,ZEl,Ivs,NqJ,dm,cT,Qx,rVq,Fss,fvL,or,HEp,hHL,uwg,gm,Spp,OEG,sk,wm,eHs,zHL,$K,dva,pk,oRt,cVG,W0,gRS,T8,wuQ,pup,sZQ,Ypq,$1J,M3Q,WCl,jP,G8,VE,XG,bpg,TSq,Ju,B0,qJP,XnJ,j2y,af,GKt,D1t,E7,a2P,V3p,BSl,ngs,yE,yma,U7,U1a,C3G,CA,kKQ,KCl,vgq,m1t,LCq,l2p,t3J,Zpt,kK,v0,KA,I2y,NSg,HpL,f2p,LA,RDp,rmg,x1t,mJ,FCa,ipG, hDl,lZ,zDy,Amt,tu,ZG,ubL,SJy,Opa,P3l,eDS,If,NA,ogP,fA,d1P,Rf,cmS,rw,xK,Q2L,s2q,wnP,pnQ,YJS,ggl,$zP,Mia,WtG,FG,XaL,b5t,qPa,O5t,ohS,cxg,Q8Q,ghy,pA,YK,waL,$3,YPg,Mk,MNa,bly,TcL,qk,bV,Tt,EOs,jYl,Vm,JG,JbQ,Xq,j_,Gt,Bcl,DfL,BS,Us,k3,K0,Ufy,n0,vS,ym,kTS,ybq,K_P,nOg,ah,Es,vOP,Cma,mfL,mM,L_a,lbL,ZlL,L0,Ibt,Ncg,lV,tG,HlJ,RWG,fbq,rba,Zn,Ih,xfL,Nk,F_t,ilL,hWS,HS,f0,AbL,zWl,Rh,unt,SgP,Fq,r1,x3,Olg,iV,Pmt,hG,AG,uV,eWq,dfP,S_,oOQ,Os,cby,QYg,PS,gOJ,w1L,sYt,p1a,Ygp,$3Q,McJ,WqQ,bkL,TmG,e_,d1,XTP,Gyt,g1,Vcl,Bmp,w1, D3l,aPL,nTq,ETp,Y3,Nmt,e5J,Yf,MM,Dd,d3p,x5G,aA,yX,Ef,nM,ix,Bm,oTp,Qrs,gTJ,srP,wTQ,pTs,YkL,$At,MPq,eVt,Op,Twa,LM,q7S,li,Uf,jfq,VPt,t9,JuQ,Zd,Nb,DAl,Hm,IA,nKa,ml,RA,UAs,yuL,fM,vm,WJL,ry,CM,bAJ,KM,k8a,KJQ,vKS,mAL,aGl,BwJ,EKJ,LJg,lGq,ZAs,zq,ui,IGq,tPt,fGL,RKq,rua,h9,ii,xAL,Fc,xv,A9,Nwp,FJq,Sh,iAq,AuL,VYQ,zKS,uGS,S7p,eKg,Of,PZs,dy,OAp,Pm,dAs,oKa,cuQ,Qfl,gKt,sfP,w0S,EA,gy,sf,Yv,W4,DA,bL,Y7a,$kS,M_q,WMy,Tg,XL,Va,T1y,XSs,jhg,Gta,JGQ,Dky,ana,Gg,V_P,CV,n3P,Jk,qj,yGJ,KV,CVy,UkG,v4,wy,LV,lL,v3L,kV,Mj,aG,B4,Dp, ET,B1P,nV,$V,jZ,mks,p0S,LMq,lnt,pM,Nj,UT,t_s,Zp,Z0q,N1S,tk,H0L,H4,RZs,rGP,xkt,FMq,i0S,hZG,AGs,cs,fV,zZp,$PG,MUa,pSL,RG,tF,Wlt,bMG,MhJ,Tyq,rt,IN,Bo,qfL,Xmt,jAL,xG,Fe,Gqg,xV,FL,bf,oj,QSQ,mp,VCP,y_,qW,Vht,J9S,ByL,hk,EvJ,nvP,zg,uL,y9t,kqg,KlL,SZ,vvL,UbL,mbg,CiS,LlP,HK,Ho,ncp,P4,eZ,I6,thg,iw,OT,ZMp,IdP,Nyl,pX,dt,fdS,oG,c4,Ak,Qa,ROl,gt,sT,r9L,xbp,iMQ,A9L,wt,zOq,pHG,ucJ,OMp,Sfp,Pil,sAl,pV,wmG,pms,YfL,$jy,MZl,MF,WgP,bH,bVa,TtL,qTL,X4y,Tc,jGy,Ggg,jg,VZL,JkJ,DjP,nVG,Ujq,CLa,J2,vVP,kgS,KgQ,lpP,tZg,ZVL,IpJ,Ntg, HVQ,STG,OVQ,nx,epy,e0J,djG,y$,oVP,PLG,QGy,gVs,w4G,$P,Mtl,$aG,Vp,bQ;Ma=function(M){return function(){return $P[M].apply(this,arguments)}}; g.Wy=function(M,W){return $P[M]=W}; jt=function(M,W){if(W)for(var b=0;b=this.length))return this[M]}; nt=function(M,W,b){M instanceof String&&(M=String(M));for(var T=M.length-1;T>=0;T--){var q=M[T];if(W.call(b,q,T,M))return{rq:T,U5:q}}return{rq:-1,U5:void 0}}; g.Uq=function(M,W,b){M=M.split(".");b=b||g.yp;for(var T;M.length&&(T=M.shift());)M.length||W===void 0?b[T]&&b[T]!==Object.prototype[T]?b=b[T]:b=b[T]={}:b[T]=W}; Kt=function(M,W){var b=g.Ct("CLOSURE_FLAGS");M=b&&b[M];return M!=null?M:W}; g.Ct=function(M,W){M=M.split(".");W=W||g.yp;for(var b=0;b=0;--b)b in T&&W.call(void 0,T[b],b,M)}; g.et=function(M,W,b){return Array.prototype.filter.call(M,W,b)}; g.dG=function(M,W,b){return Array.prototype.map.call(M,W,b)}; cy=function(M,W,b){return Array.prototype.reduce.call(M,W,b)}; gG=function(M,W){return Array.prototype.some.call(M,W,void 0)}; g.sq=function(M,W,b){return Array.prototype.every.call(M,W,b)}; g.pt=function(M,W,b){W=wG(M,W,b);return W<0?null:typeof M==="string"?M.charAt(W):M[W]}; wG=function(M,W,b){const T=M.length,q=typeof M==="string"?M.split(""):M;for(let X=0;X=0;T--)if(T in q&&W.call(b,q[T],T,M))return T;return-1}; g.ME=function(M,W){return Array.prototype.indexOf.call(M,W,void 0)>=0}; T4=function(M){if(!Array.isArray(M))for(let W=M.length-1;W>=0;W--)delete M[W];M.length=0}; g.X9=function(M,W){W=Array.prototype.indexOf.call(M,W,void 0);let b;(b=W>=0)&&g.qE(M,W);return b}; g.qE=function(M,W){return Array.prototype.splice.call(M,W,1).length==1}; g.jp=function(M,W){W=wG(M,W);W>=0&&g.qE(M,W)}; GSq=function(M,W){let b=0;jJy(M,function(T,q){W.call(void 0,T,q,M)&&g.qE(M,q)&&b++})}; g.G4=function(M){return Array.prototype.concat.apply([],arguments)}; g.Vh=function(M){const W=M.length;if(W>0){const b=Array(W);for(let T=0;T>>1);let J;b?J=W.call(void 0,M[V],V,M):J=W(T,M[V]);J>0?q=V+1:(X=V,G=!J)}return G?q:-q-1}; g.v$=function(M,W){M.sort(W||Ur)}; JLq=function(M,W){const b=Ur;g.v$(M,function(T,q){return b(W(T),W(q))})}; g.mA=function(M,W,b){if(!g.mL(M)||!g.mL(W)||M.length!=W.length)return!1;const T=M.length;b=b||BGg;for(let q=0;qW?1:M{const T=b.event,q=W[T];W.hasOwnProperty(T)?q!==null&&(b.equals(q)||(W[T]=null)):W[T]=b}); GSq(M,b=>W[b.event]===null)}; g.NE=function(M,W,b){for(const T in M)W.call(b,M[T],T,M)}; g.H$=function(M,W,b){const T={};for(const q in M)W.call(b,M[q],q,M)&&(T[q]=M[q]);return T}; fJ=function(M,W){const b={};for(const T in M)b[T]=W.call(void 0,M[T],T,M);return b}; g.RQ=function(M,W,b){for(const T in M)if(W.call(b,M[T],T,M))return!0;return!1}; rV=function(M,W){for(const b in M)if(!W.call(void 0,M[b],b,M))return!1;return!0}; g.x5=function(M){for(const W in M)return W}; F9=function(M){for(const W in M)return M[W]}; iI=function(M){const W=[];let b=0;for(const T in M)W[b++]=M[T];return W}; g.h7=function(M){const W=[];let b=0;for(const T in M)W[b++]=T;return W}; g.z4=function(M,W){return M!==null&&W in M}; g.uI=function(M,W){for(const b in M)if(M[b]==W)return!0;return!1}; Sp=function(M,W){for(const b in M)if(W.call(void 0,M[b],b,M))return b}; Or=function(M,W){return(W=Sp(M,W))&&M[W]}; g.P$=function(M){for(const W in M)return!1;return!0}; g.ep=function(M){for(const W in M)delete M[W]}; g.dV=function(M,W,b){return M!==null&&W in M?M[W]:b}; g.oQ=function(M,W){for(const b in M)if(!(b in W)||M[b]!==W[b])return!1;for(const b in W)if(!(b in M))return!1;return!0}; g.c$=function(M){const W={};for(const b in M)W[b]=M[b];return W}; g.Qh=function(M){if(!M||typeof M!=="object")return M;if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);if(M instanceof Date)return new Date(M.getTime());const W=Array.isArray(M)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(M)||M instanceof DataView?{}:new M.constructor(M.length);for(const b in M)W[b]=g.Qh(M[b]);return W}; g.sr=function(M,W){let b,T;for(let q=1;qT.Z); g.NE(b,(T,q)=>{T=M.B[q]!==void 0?String(M.B[q]):T.Z&&T.V!==null?String(T.V):"";T.length>0&&(W[q]=T)},M); return W}; CQJ=function(M){M=MR(M);const W=[];g.NE(M,(b,T)=>{T in Object.prototype||typeof b!="undefined"&&W.push([T,":",b].join(""))}); return W}; WX=function(M,W){return M.lastIndexOf(W,0)==0}; br=function(M,W){const b=M.length-W.length;return b>=0&&M.indexOf(W,b)==b}; g.Tp=function(M){return/^[\s\xa0]*$/.test(M)}; g.qR=function(M,W){return M.indexOf(W)!=-1}; Xh=function(M,W){return g.qR(M.toLowerCase(),W.toLowerCase())}; g.Gp=function(M,W){let b=0;M=String(M).trim().split(".");W=String(W).trim().split(".");const T=Math.max(M.length,W.length);for(let G=0;b==0&&GW?1:0}; g.Vd=function(){var M=g.yp.navigator;return M&&(M=M.userAgent)?M:""}; EY=function(M){if(!JO&&!D_||!aB)return!1;for(let W=0;W0:!1}; UY=function(){return yd()?!1:nZ("Opera")}; CZ=function(){return yd()?!1:nZ("Trident")||nZ("MSIE")}; kp=function(){return yd()?EY("Microsoft Edge"):nZ("Edg/")}; KZ=function(){return nZ("Firefox")||nZ("FxiOS")}; mf=function(){return nZ("Safari")&&!(vX()||(yd()?0:nZ("Coast"))||UY()||(yd()?0:nZ("Edge"))||kp()||(yd()?EY("Opera"):nZ("OPR"))||KZ()||nZ("Silk")||nZ("Android"))}; vX=function(){return yd()?EY("Chromium"):(nZ("Chrome")||nZ("CriOS"))&&!(yd()?0:nZ("Edge"))||nZ("Silk")}; LZ=function(){return nZ("Android")&&!(vX()||KZ()||UY()||nZ("Silk"))}; kSp=function(M){const W={};M.forEach(b=>{W[b[0]]=b[1]}); return b=>W[b.find(T=>T in W)]||""}; KLy=function(M){var W=g.Vd();if(M==="Internet Explorer"){if(CZ())if((M=/rv: *([\d\.]*)/.exec(W))&&M[1])W=M[1];else{M="";var b=/MSIE +([\d\.]+)/.exec(W);if(b&&b[1])if(W=/Trident\/(\d.\d)/.exec(W),b[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":M="8.0";break;case "5.0":M="9.0";break;case "6.0":M="10.0";break;case "7.0":M="11.0"}else M="7.0";else M=b[1];W=M}else W="";return W}const T=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];let q;for(;q=T.exec(W);)b.push([q[1],q[2],q[3]||void 0]); W=kSp(b);switch(M){case "Opera":if(UY())return W(["Version","Opera"]);if(yd()?EY("Opera"):nZ("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(yd()?0:nZ("Edge"))return W(["Edge"]);if(kp())return W(["Edg"]);break;case "Chromium":if(vX())return W(["Chrome","CriOS","HeadlessChrome"])}return M==="Firefox"&&KZ()||M==="Safari"&&mf()||M==="Android Browser"&&LZ()||M==="Silk"&&nZ("Silk")?(W=b[2])&&W[1]||"":""}; lr=function(M){if(yd()&&M!=="Silk"){var W=aB.brands.find(({brand:b})=>b===M); if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=KLy(M);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])}; vPp=function(){let M=null;if(!tO)return M;try{const W=b=>b; M=tO.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(W){}return M}; var mat=function(M,W,b,T,q){return Z_[y[0]](this,20,M,W,b,T,q)}; HX=function(){IB===void 0&&(IB=vPp());return IB}; RB=function(M){const W=HX();M=W?W.createScriptURL(M):M;return new fZ(M)}; rH=function(M){if(M instanceof fZ)return M.Z;throw Error("");}; g.Fh=function(M){if(M instanceof xp)return M.Z;throw Error("");}; hO=function(M){return new ir(W=>W.substr(0,M.length+1).toLowerCase()===M+":")}; LLP=function(M,W=AO){if(M instanceof xp)return M;for(let b=0;b{if(T instanceof $U)T=T.Z;else throw Error("");return T}).every(T=>"data-loaded".indexOf(T)!==0))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); M.setAttribute("data-loaded",W)}; M$=function(M,W){M.__closure__error__context__984382||(M.__closure__error__context__984382={});M.__closure__error__context__984382.severity=W}; NGq=function(M){var W=g.Ct("window.location.href");M==null&&(M='Unknown Error of type "null/undefined"');if(typeof M==="string")return{message:M,name:"Unknown error",lineNumber:"Not available",fileName:W,stack:"Not available"};let b,T;var q=!1;try{b=M.lineNumber||M.line||"Not available"}catch(X){b="Not available",q=!0}try{T=M.fileName||M.filename||M.sourceURL||g.yp.$googDebugFname||W}catch(X){T="Not available",q=!0}W=Wt(M);if(!(!q&&M.lineNumber&&M.fileName&&M.stack&&M.message&&M.name)){q=M.message; if(q==null){if(M.constructor&&M.constructor instanceof Function){if(M.constructor.name)q=M.constructor.name;else if(q=M.constructor,b0[q])q=b0[q];else{q=String(q);if(!b0[q]){const X=/function\s+([^\(]+)/m.exec(q);b0[q]=X?X[1]:"[Anonymous]"}q=b0[q]}q='Unknown Error of type "'+q+'"'}else q="Unknown Error of unknown type";typeof M.toString==="function"&&Object.prototype.toString!==M.toString&&(q+=": "+M.toString())}return{message:q,name:M.name||"UnknownError",lineNumber:b,fileName:T,stack:W||"Not available"}}return{message:M.message, name:M.name,lineNumber:M.lineNumber,fileName:M.fileName,stack:W}}; Wt=function(M,W){W||(W={});W[TG(M)]=!0;let b=M.stack||"";var T=M.cause;T&&!W[TG(T)]&&(b+="\nCaused by: ",T.stack&&T.stack.indexOf(T.toString())==0||(b+=typeof T==="string"?T:T.message+"\n"),b+=Wt(T,W));M=M.errors;if(Array.isArray(M)){T=1;let q;for(q=0;q4);q++)W[TG(M[q])]||(b+="\nInner error "+T++ +": ",M[q].stack&&M[q].stack.indexOf(M[q].toString())==0||(b+=typeof M[q]==="string"?M[q]:M[q].message+"\n"),b+=Wt(M[q],W));q")!=-1&&(M=M.replace(rLq,">")),M.indexOf('"')!=-1&&(M=M.replace(xaL,""")),M.indexOf("'")!=-1&&(M=M.replace(FLt,"'")),M.indexOf("\x00")!=-1&&(M=M.replace(itQ,"�")));return M}; g.JY=function(M){return M==null?"":String(M)}; Bt=function(M){let W=0;for(let b=0;b>>0;return W}; DZ=function(M){const W=Number(M);return W==0&&g.Tp(M)?NaN:W}; aL=function(M){return String(M).replace(/\-([a-z])/g,function(W,b){return b.toUpperCase()})}; Ea=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; hgL=function(M){return M.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,b,T){return b+T.toUpperCase()})}; ALJ=function(M){var W=1;M=M.split(":");const b=[];for(;W>0&&M.length;)b.push(M.shift()),W--;M.length&&b.push(M.join(":"));return b}; ny=function(){return JO||D_?!!aB&&!!aB.platform:!1}; yT=function(){return ny()?aB.platform==="Android":nZ("Android")}; Ua=function(){return nZ("iPhone")&&!nZ("iPod")&&!nZ("iPad")}; Cy=function(){return Ua()||nZ("iPad")||nZ("iPod")}; kU=function(){return ny()?aB.platform==="macOS":nZ("Macintosh")}; Ky=function(){return ny()?aB.platform==="Windows":nZ("Windows")}; vt=function(M){vt[" "](M);return M}; mU=function(M,W){try{return vt(M[W]),!0}catch(b){}return!1}; usL=function(M,W){var b=zgP;return Object.prototype.hasOwnProperty.call(b,M)?b[M]:b[M]=W(M)}; g.tY=function(M){return usL(M,function(){return g.Gp(l0,M)>=0})}; lI=function(M,W,b,T){if(!((M|8)&5)){var q=W[y[23]](y[5]);ZZ[y[19]](q,2);ZZ[y[61]](q,6);ZZ[y[57]](q,24);ZZ[y[19]](q,2);ZZ[y[57]](q,16);ZZ[y[61]](q,5);var X=q[y[24]](y[5])}if(M>>2<2&&M+9>>3>=0){q=W[b];const G=q[y[12]](y[62]);G>0?Ht(6,T,q[y[7]](0,G),q[y[7]](G+1)):q&&(T[q]=y[5]);X=[]}return X}; g.fy=function(M,W,b){return Math.min(Math.max(M,W),b)}; g.RL=function(M,W){M%=W;return M*W<0?M+W:M}; rP=function(M,W,b){return M+b*(W-M)}; g.xU=function(M,W){this.x=M!==void 0?M:0;this.y=W!==void 0?W:0}; FA=function(M,W){return M==W?!0:M&&W?M.x==W.x&&M.y==W.y:!1}; g.i0=function(M,W){this.width=M;this.height=W}; g.hY=function(M,W){return M==W?!0:M&&W?M.width==W.width&&M.height==W.height:!1}; AY=function(M){return M.width*M.height}; Zty=function(M){return new $U(M[0].toLowerCase())}; zG=function(M){if(M instanceof e7)return M;M=String(M).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return dH(M)}; Ota=function(M){return Sqg(M)}; Sqg=function(M){const W=zG("");return dH(M.map(b=>oB(zG(b))).join(oB(W).toString()))}; oPp=function(M){var W;if(!u0.test("div"))throw Error("");if(PQG.indexOf("DIV")!==-1)throw Error("");let b="":(M=Ota(W.map(T=>T instanceof e7?T:zG(String(T)))),b+=">"+M.toString()+""); return dH(b)}; egl=function(M){var W="";const b=Object.keys(M);for(let X=0;X2&&X$(q,G,T,2);return G}; X$=function(M,W,b,T){function q(X){X&&W.appendChild(typeof X==="string"?M.createTextNode(X):X)} for(;T0?q(X):g.Py(X&&typeof X.length=="number"&&typeof X.item=="function"?g.Vh(X):X,q)}}; g.Gr=function(M){return qP(document,M)}; qP=function(M,W){W=String(W);M.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return M.createElement(W)}; g.V4=function(M){return document.createTextNode(String(M))}; g.JW=function(M,W){M.appendChild(W)}; g.B5=function(M){let W;for(;W=M.firstChild;)M.removeChild(W)}; D3=function(M,W,b){M.insertBefore(W,M.childNodes[b]||null)}; g.a5=function(M){return M&&M.parentNode?M.parentNode.removeChild(M):null}; g.ES=function(M,W){return M&&W?M==W||M.contains(W):!1}; Pt=function(M){return M.nodeType==9?M:M.ownerDocument||M.document}; g.nr=function(M,W){if("textContent"in M)M.textContent=W;else if(M.nodeType==3)M.data=String(W);else if(M.firstChild&&M.firstChild.nodeType==3){for(;M.lastChild!=M.firstChild;)M.removeChild(M.lastChild);M.firstChild.data=String(W)}else g.B5(M),M.appendChild(Pt(M).createTextNode(String(W)))}; US=function(M){return M.tagName=="A"&&M.hasAttribute("href")||M.tagName=="INPUT"||M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="BUTTON"?!M.disabled&&(!M.hasAttribute("tabindex")||y4(M)):M.hasAttribute("tabindex")&&y4(M)}; y4=function(M){M=M.tabIndex;return typeof M==="number"&&M>=0&&M<32768}; kt=function(M,W,b){if(!W&&!b)return null;const T=W?String(W).toUpperCase():null;return Cr(M,function(q){return(!T||q.nodeName==T)&&(!b||typeof q.className==="string"&&g.ME(q.className.split(/\s+/),b))},!0)}; Cr=function(M,W,b){M&&!b&&(M=M.parentNode);for(b=0;M;){if(W(M))return M;M=M.parentNode;b++}return null}; Oa=function(M){this.Z=M||g.yp.document||document}; v5=function(){return!(!Kr||!Kr.performance)}; mR=function(M){return g.bq?"webkit"+M:M.toLowerCase()}; Lr=function(M){return function(){return M}}; g.lq=function(){}; QJq=function(M){var W=W||0;return function(){return M.apply(this,Array.prototype.slice.call(arguments,0,W))}}; tW=function(M){let W=!1,b;return function(){W||(b=M(),W=!0);return b}}; Z3=function(M){let W=M;return function(){if(W){const b=W;W=null;b()}}}; I5=function(M,W,b){let T=0;return function(q){g.yp.clearTimeout(T);const X=arguments;T=g.yp.setTimeout(function(){M.apply(b,X)},W)}}; NP=function(M,W,b,T){this.top=M;this.right=W;this.bottom=b;this.left=T}; H5=function(M){return M.right-M.left}; fr=function(M,W){return M==W?!0:M&&W?M.top==W.top&&M.right==W.right&&M.bottom==W.bottom&&M.left==W.left:!1}; R5=function(M,W,b){W instanceof g.xU?(M.left+=W.x,M.right+=W.x,M.top+=W.y,M.bottom+=W.y):(M.left+=W,M.right+=W,typeof b==="number"&&(M.top+=b,M.bottom+=b));return M}; g.re=function(M,W,b,T){this.left=M;this.top=W;this.width=b;this.height=T}; xt=function(M,W){return M==W?!0:M&&W?M.left==W.left&&M.width==W.width&&M.top==W.top&&M.height==W.height:!1}; g.iq=function(M,W,b){if(typeof W==="string")(W=F$(M,W))&&(M.style[W]=b);else for(const q in W){b=M;var T=W[q];const X=F$(b,q);X&&(b.style[X]=T)}}; F$=function(M,W){let b=hW[W];if(!b){var T=aL(W);b=T;M.style[T]===void 0&&(T=(g.bq?"Webkit":AW?"Moz":null)+hgL(T),M.style[T]!==void 0&&(b=T));hW[W]=b}return b}; g.zr=function(M,W){const b=M.style[aL(W)];return typeof b!=="undefined"?b:M.style[F$(M,W)]||""}; uq=function(M,W){const b=Pt(M);return b.defaultView&&b.defaultView.getComputedStyle&&(M=b.defaultView.getComputedStyle(M,null))?M[W]||M.getPropertyValue(W)||"":""}; SU=function(M,W){return uq(M,W)||(M.currentStyle?M.currentStyle[W]:null)||M.style&&M.style[W]}; g.P5=function(M,W,b){let T;W instanceof g.xU?(T=W.x,W=W.y):(T=W,W=b);M.style.left=OS(T,!1);M.style.top=OS(W,!1)}; eU=function(M){try{return M.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}}; gPQ=function(M){const W=Pt(M);let b=SU(M,"position"),T=b=="fixed"||b=="absolute";for(M=M.parentNode;M&&M!=W;M=M.parentNode)if(M.nodeType==11&&M.host&&(M=M.host),b=SU(M,"position"),T=T&&b=="static"&&M!=W.documentElement&&M!=W.body,!T&&(M.scrollWidth>M.clientWidth||M.scrollHeight>M.clientHeight||b=="fixed"||b=="absolute"||b=="relative"))return M;return null}; g.de=function(M){var W=Pt(M);const b=new g.xU(0,0);if(M==(W?Pt(W):document).documentElement)return b;M=eU(M);W=oL(W);W=W5(W.Z);b.x=M.left+W.x;b.y=M.top+W.y;return b}; c5=function(M,W){const b=new g.xU(0,0);let T=Tr(Pt(M));if(!mU(T,"parent"))return b;do{const q=T==W?g.de(M):o5(M);b.x+=q.x;b.y+=q.y}while(T&&T!=W&&T!=T.parent&&(M=T.frameElement)&&(T=T.parent));return b}; g.ge=function(M,W){M=Q4(M);W=Q4(W);return new g.xU(M.x-W.x,M.y-W.y)}; o5=function(M){M=eU(M);return new g.xU(M.left,M.top)}; Q4=function(M){if(M.nodeType==1)return o5(M);M=M.changedTouches?M.changedTouches[0]:M;return new g.xU(M.clientX,M.clientY)}; g.sS=function(M,W,b){if(W instanceof g.i0)b=W.height,W=W.width;else if(b==void 0)throw Error("missing height argument");M.style.width=OS(W,!0);M.style.height=OS(b,!0)}; OS=function(M,W){typeof M=="number"&&(M=(W?Math.round(M):M)+"px");return M}; g.we=function(M){var W=sJs;if(SU(M,"display")!="none")return W(M);const b=M.style,T=b.display,q=b.visibility,X=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";M=W(M);b.display=T;b.position=X;b.visibility=q;return M}; sJs=function(M){const W=M.offsetWidth,b=M.offsetHeight,T=g.bq&&!W&&!b;return(W===void 0||T)&&M.getBoundingClientRect?(M=eU(M),new g.i0(M.right-M.left,M.bottom-M.top)):new g.i0(W,b)}; g.pr=function(M,W){M.style.display=W?"":"none"}; Yt=function(M){return M?M.passive&&wys()?M:M.capture||!1:!1}; $4=function(M,W,b,T){return typeof M.addEventListener==="function"?(M.addEventListener(W,b,Yt(T)),!0):!1}; MI=function(M){return M.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[M.visibilityState||M.webkitVisibilityState||M.mozVisibilityState||""]??0}; W6=function(M){try{return!!M&&M.location.href!=null&&mU(M,"foo")}catch{return!1}}; b2=function(M){let W=M;for(;M&&M!=M.parent;)M=M.parent,W6(M)&&(W=M);return W}; qI=function(){return(JO||D_)&&aB?aB.mobile:!TN()&&(nZ("iPod")||nZ("iPhone")||nZ("Android")||nZ("IEMobile"))}; TN=function(){return(JO||D_)&&aB?!aB.mobile&&(nZ("iPad")||nZ("Android")||nZ("Silk")):nZ("iPad")||nZ("Android")&&!nZ("Mobile")||nZ("Silk")}; GN=function(){var M=g.yp;const W=[];let b=null,T;do{T=M;if(W6(T)){var q=T.location.href;b=T.document&&T.document.referrer||null}else q=b,b=null;W.push(new XY(q||""));try{M=T.parent}catch(X){M=null}}while(M&&T!==M);for(let X=0,G=W.length-1;X<=G;++X)W[X].depth=G-X;T=g.yp;if(T.location&&T.location.ancestorOrigins&&T.location.ancestorOrigins.length===W.length-1)for(M=1;M=0;--q){var X=M[q];!b&&pyt.test(X.url)&&(b=X);if(X.url&&!X.Z){W=X;break}}q=null;X=M.length&&M[T].url;W.depth!==0&&X&&(q=M[T]);return new Yqp(W,q,b)}; Jh=function(M,W){if(M)for(const b in M)Object.prototype.hasOwnProperty.call(M,b)&&W(M[b],b,M)}; MpJ=function(){const M=[];Jh($Et,W=>{M.push(W)}); return M}; B6=function(M,W){const b={};b[M]=W;return[b]}; ad=function(M,W,b,T,q){const X=[];Jh(M,(G,V)=>{(G=Dc(G,W,b,T,q))&&X.push(`${V}=${G}`)}); return X.join(W)}; Dc=function(M,W,b,T,q){if(M==null)return"";W=W||"&";b=b||",$";typeof b==="string"&&(b=b.split(""));if(M instanceof Array){if(T||(T=0),TW&&(W=b.length);return 3997-W-M.B.length-1}; bJp=function(M,W){g.sq(W,q=>q.depth>=0); const b=cy(W,(q,X)=>Math.max(q,X.depth),-1),T=DaG(b+2); T[0]=M;g.Py(W,q=>T[q.depth+1]=q.Z); return T}; qrq=function(){return TVs().map(M=>Dc(M))}; Ey=function(M){M.ump=!0;return M}; jQS=function(){const M=nn("IFRAME"),W={};g.Py(X$P(),b=>{M.sandbox&&M.sandbox.supports&&M.sandbox.supports(b)&&(W[b]=!0)}); return W}; nn=function(M,W=document){return W.createElement(String(M).toLowerCase())}; y6=function(M){Kr.google_image_requests||(Kr.google_image_requests=[]);const W=nn("IMG",Kr.document);W.src=M;Kr.google_image_requests.push(W)}; G4L=function(){Uy();const M=Kr.document;return!!(M&&M.body&&M.body.getBoundingClientRect&&typeof Kr.setInterval==="function"&&typeof Kr.clearInterval==="function"&&typeof Kr.setTimeout==="function"&&typeof Kr.clearTimeout==="function")}; Cn=function(){Uy();return qrq()}; Uy=function(){var M=k4(VpJ);if(!M.Z){if(!Kr)throw Error("Context has not been set and window is undefined.");M.Z=k4(J7a)}return M.Z}; v6=function(M){return(Kn||(Kn=new TextEncoder)).encode(M)}; mx=function(M){g.yp.setTimeout(()=>{throw M;},0)}; BVt=function(M){return Array.prototype.map.call(M,function(W){W=W.toString(16);return W.length>1?W:"0"+W}).join("")}; Ln=function(M){const W=[];for(let b=0;b>6|192:((q&64512)==55296&&T+1>18|240,W[b++]=q>>12&63|128):W[b++]=q>>12|224,W[b++]=q>>6&63|128),W[b++]=q&63|128)}return W}; g.Id=function(M,W){W===void 0&&(W=0);th();W=Zc[W];const b=Array(Math.floor(M.length/3)),T=W[64]||"";let q=0,X=0;for(;q>2];G=W[(G&3)<<4|V>>4];V=W[(V&15)<<2|J>>6];J=W[J&63];b[X++]=""+B+G+V+J}B=0;J=T;switch(M.length-q){case 2:B=M[q+1],J=W[(B&15)<<2]||T;case 1:M=M[q],b[X]=""+W[M>>2]+W[(M&3)<<4|B>>4]+J+T}return b.join("")}; g.NI=function(M,W,b){if(W){const T=[];let q=0;for(let X=0;X255){const V=Error("go/unicode-to-byte-error");if(b)throw V;T[q++]=G&255;G>>=8}T[q++]=G}M=g.Id(T,W)}else M=g.yp.btoa(M);return M}; fn=function(M){const W=[];H6(M,function(b){W.push(b)}); return W}; Rd=function(M){const W=M.length;let b=W*3/4;b%3?b=Math.floor(b):g.qR("=.",M[W-1])&&(b=g.qR("=.",M[W-2])?b-2:b-1);const T=new Uint8Array(b);let q=0;H6(M,function(X){T[q++]=X}); return q!==b?T.subarray(0,q):T}; H6=function(M,W){function b(q){for(;T>4);G!=64&&(W(X<<4&240|G>>2),V!=64&&W(G<<6&192|V))}}; th=function(){if(!r5){r5={};var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"];for(let b=0;b<5;b++){const T=M.concat(W[b].split(""));Zc[b]=T;for(let q=0;q=W||(b[M]=T+1,M=Error(),M$(M,"incident"),mx(M))}}; od=function(M,W=!1){return W&&Symbol.for&&M?Symbol.for(M):M!=null?Symbol(M):Symbol()}; g5=function(M,W){return W===void 0?M.Z!==c6&&!!(2&(M.h1[Q6]|0)):!!(2&W)&&M.Z!==c6}; sy=function(M,W){if(M!=null)if(typeof M==="string")M=M?new hh(M,Ah):zN();else if(M.constructor!==hh)if(M!=null&&M instanceof Uint8Array)M=M.length?new hh(new Uint8Array(M),Ah):zN();else{if(!W)throw Error();M=void 0}return M}; w5=function(M,W){if(typeof W!=="number"||W<0||W>=M.length)throw Error();}; pn=function(M,W,b){const T=W&128?0:-1,q=M.length;var X;if(X=!!q)X=M[q-1],X=X!=null&&typeof X==="object"&&X.constructor===Object;const G=q+(X?-1:0);for(W=W&128?1:0;W>>0;b8=W;Ts=(M-W)/4294967296>>>0}; XW=function(M){if(M<0){q_(0-M);M=b8;var W=Ts;W=~W;M?M=~M+1:W+=1;const [b,T]=[M,W];b8=b>>>0;Ts=T>>>0}else q_(M)}; Gs=function(M,W){const b=W*4294967296+(M>>>0);return Number.isSafeInteger(b)?b:jv(M,W)}; VW=function(M,W){const b=W&2147483648;b&&(M=~M+1>>>0,W=~W>>>0,M==0&&(W=W+1>>>0));M=Gs(M,W);return typeof M==="number"?b?-M:M:b?"-"+M:M}; J6=function(M,W){return Wb(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(W))<>>=0;M>>>=0;var b;W<=2097151?b=""+(4294967296*W+M):b=""+(BigInt(W)<>>0)):b=jv(M,W);return b}; D$=function(M){M.length<16?XW(Number(M)):(M=BigInt(M),b8=Number(M&BigInt(4294967295))>>>0,Ts=Number(M>>BigInt(32)&BigInt(4294967295)))}; aF=function(M){if(M!=null&&typeof M!=="number")throw Error(`Value of float/double field must be a number, found ${typeof M}: ${M}`);return M}; EU=function(M){return M.displayName||M.name||"unknown type name"}; n3=function(M){if(M!=null&&typeof M!=="boolean")throw Error(`Expected boolean but got ${vy(M)}: ${M}`);return M}; UU=function(M){switch(typeof M){case "bigint":return!0;case "number":return yW(M);case "string":return n5p.test(M);default:return!1}}; C3=function(M){if(typeof M!=="number")throw P6("int32");if(!yW(M))throw P6("int32");return M|0}; kx=function(M){return M==null?M:C3(M)}; K3=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return yW(M)?M|0:void 0}; vb=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return yW(M)?M>>>0:void 0}; y7L=function(M){var W=m1?1024:0;if(!UU(M))throw P6("int64");const b=typeof M;switch(W){case 512:switch(b){case "string":return l8(M);case "bigint":return String(t6(64,M));default:return Z$(M)}case 1024:switch(b){case "string":return IF(M);case "bigint":return Wb(t6(64,M));default:return N_(M)}case 0:switch(b){case "string":return l8(M);case "bigint":return Wb(t6(64,M));default:return f3(M)}default:return PX(W,"Unknown format requested type for int64")}}; RF=function(M){return M==null?M:y7L(M)}; f3=function(M){UU(M);M=rv(M);xx(M)||(XW(M),M=VW(b8,Ts));return M}; Z$=function(M){UU(M);M=rv(M);xx(M)?M=String(M):(XW(M),M=Bb());return M}; l8=function(M){UU(M);var W=rv(Number(M));if(xx(W))return String(W);W=M.indexOf(".");W!==-1&&(M=M.substring(0,W));W=M.length;(M[0]==="-"?W<20||W===20&&M<="-9223372036854775808":W<19||W===19&&M<="9223372036854775807")||(D$(M),M=Bb());return M}; IF=function(M){var W=rv(Number(M));if(xx(W))return Wb(W);W=M.indexOf(".");W!==-1&&(M=M.substring(0,W));return Wb(t6(64,BigInt(M)))}; N_=function(M){return xx(M)?Wb(f3(M)):Wb(Z$(M))}; i8=function(M){if(M==null)return M;if(typeof M==="bigint")return FW(M)?M=Number(M):(M=t6(64,M),M=FW(M)?Number(M):String(M)),M;if(UU(M))return typeof M==="number"?f3(M):l8(M)}; h6=function(M){const W=typeof M;if(M==null)return M;if(W==="bigint")return Wb(t6(64,M));if(UU(M))return W==="string"?IF(M):N_(M)}; UEq=function(M){if(M==null)return M;const W=typeof M;if(W==="bigint")return String(t6(64,M));if(UU(M)){if(W==="string")return l8(M);if(W==="number")return f3(M)}}; A6=function(M){if(M==null)return M;var W=typeof M;if(W==="bigint")return String(CIy(64,M));if(UU(M)){if(W==="string")return UU(M),W=rv(Number(M)),xx(W)&&W>=0?M=String(W):(W=M.indexOf("."),W!==-1&&(M=M.substring(0,W)),M[0]==="-"?W=!1:(W=M.length,W=W<20?!0:W===20&&M<="18446744073709551615"),W||(D$(M),M=jv(b8,Ts))),M;if(W==="number")return UU(M),M=rv(M),M>=0&&xx(M)||(XW(M),M=Gs(b8,Ts)),M}}; zs=function(M){if(M==null||typeof M=="string"||M instanceof hh)return M}; k4P=function(M){if(typeof M!=="string")throw Error();return M}; u8=function(M){if(M!=null&&typeof M!=="string")throw Error();return M}; Sv=function(M){return M==null||typeof M==="string"?M:void 0}; OU=function(M,W){if(!(M instanceof W))throw Error(`Expected instanceof ${EU(W)} but got ${M&&EU(M.constructor)}`);return M}; dv=function(M,W,b){if(M!=null&&M[Pb]===ev)return M;if(Array.isArray(M)){var T=M[Q6]|0;b=T|b&32|b&2;b!==T&&(M[Q6]=b);return new W(M)}}; oF=function(M){return M}; QW=function(M){const W=RJ(cb);return W?M[W]:void 0}; gv=function(M,W){for(const b in M)!isNaN(b)&&W(M,+b,M[b])}; KAa=function(M){const W=new sU;gv(M,(b,T,q)=>{W[T]=[...q]}); W.Qt=M.Qt;return W}; mEq=function(M,W){W<100||d5(v5a,1)}; p3=function(M,W,b,T){const q=T!==void 0;T=!!T;var X=RJ(cb),G;!q&&X&&(G=M[X])&&gv(G,mEq);X=[];var V=M.length;let J;G=4294967295;let B=!1;const D=!!(W&64),a=D?W&128?0:-1:void 0;W&1||(J=V&&M[V-1],J!=null&&typeof J==="object"&&J.constructor===Object?(V--,G=V):J=void 0,!D||W&128||q||(B=!0,G=(wv??oF)(G-a,a,M,J,void 0)+a));W=void 0;for(var E=0;E=G){const C=E-a;(W??(W={}))[C]=n}else X[E]=n}if(J)for(let n in J){V=J[n];if(V==null||(V=b(V,T))==null)continue; E=+n;let C;D&&!Number.isNaN(E)&&(C=E+a)0?void 0:M===0?bW||(bW=[0,void 0]):[-M,void 0];case "string":return[0,M];case "object":return M}}; q6=function(M,W){return T6(M,W[0],W[1])}; T6=function(M,W,b,T=0){if(M==null){var q=32;b?(M=[b],q|=128):M=[];W&&(q=q&-16760833|(W&1023)<<14)}else{if(!Array.isArray(M))throw Error("narr");q=M[Q6]|0;if(X6&&1&q)throw Error("rfarr");2048&q&&!(2&q)&&ZJa();if(q&256)throw Error("farr");if(q&64)return(q|T)!==q&&(M[Q6]=q|T),M;if(b&&(q|=128,b!==M[0]))throw Error("mid");a:{b=M;q|=64;var X=b.length;if(X){var G=X-1;const J=b[G];if(J!=null&&typeof J==="object"&&J.constructor===Object){W=q&128?0:-1;G-=W;if(G>=1024)throw Error("pvtlmt");for(var V in J)if(X= +V,X1024)throw Error("spvt");q=q&-16760833|(V&1023)<<14}}}M[Q6]=q|64|T;return M}; ZJa=function(){if(X6)throw Error("carr");d5(IBa,5)}; NVl=function(M,W){if(typeof M!=="object")return M;if(Array.isArray(M)){var b=M[Q6]|0;M.length===0&&b&1?M=void 0:b&2||(!W||4096&b||16&b?M=jx(M,b,!1,W&&!(b&16)):(M[Q6]|=34,b&4&&Object.freeze(M)));return M}if(M!=null&&M[Pb]===ev)return W=M.h1,b=W[Q6]|0,g5(M,b)?M:G6(M,W,b)?Vt(M,W):jx(W,b);if(M instanceof hh)return M}; Vt=function(M,W,b){M=new M.constructor(W);b&&(M.Z=c6);M.A=c6;return M}; jx=function(M,W,b,T){T??(T=!!(34&W));M=p3(M,W,NVl,T);T=32;b&&(T|=2);W=W&16769217|T;M[Q6]=W;return M}; Jl=function(M){const W=M.h1,b=W[Q6]|0;return g5(M,b)?G6(M,W,b)?Vt(M,W,!0):new M.constructor(jx(W,b,!1)):M}; Bl=function(M){if(M.Z!==c6)return!1;var W=M.h1;W=jx(W,W[Q6]|0);W[Q6]|=2048;M.h1=W;M.Z=void 0;M.A=void 0;return!0}; DV=function(M){if(!Bl(M)&&g5(M,M.h1[Q6]|0))throw Error();}; aE=function(M,W){W===void 0&&(W=M[Q6]|0);W&32&&!(W&4096)&&(M[Q6]=W|4096)}; G6=function(M,W,b){return b&2?!0:b&32&&!(b&4096)?(W[Q6]=b|2,M.Z=c6,!0):!1}; n$=function(M,W,b,T,q){Object.isExtensible(M);W=EN(M.h1,W,b,q);if(W!==null||T&&M.A!==c6)return W}; EN=function(M,W,b,T){if(W===-1)return null;const q=W+(b?0:-1),X=M.length-1;let G,V;if(!(X<1+(b?0:-1))){if(q>=X)if(G=M[X],G!=null&&typeof G==="object"&&G.constructor===Object)b=G[W],V=!0;else if(q===X)b=G;else return;else b=M[q];if(T&&b!=null){T=T(b);if(T==null)return T;if(!Object.is(T,b))return V?G[W]=T:M[q]=T,T}return b}}; C$=function(M,W,b,T){DV(M);const q=M.h1;UN(q,q[Q6]|0,W,b,T);return M}; UN=function(M,W,b,T,q){const X=b+(q?0:-1);var G=M.length-1;if(G>=1+(q?0:-1)&&X>=G){const V=M[G];if(V!=null&&typeof V==="object"&&V.constructor===Object)return V[b]=T,W}if(X<=G)return M[X]=T,W;T!==void 0&&(G=(W??(W=M[Q6]|0))>>14&1023||536870912,b>=G?T!=null&&(M[G+(q?0:-1)]={[b]:T}):M[X]=T);return W}; lW=function(M,W,b,T,q){let X=M.h1,G=X[Q6]|0;T=g5(M,G)?1:T;q=!!q||T===3;T===2&&Bl(M)&&(X=M.h1,G=X[Q6]|0);M=ky(X,W);let V=M===K$?7:M[Q6]|0,J=vl(V,G);var B=4&J?!1:!0;if(B){4&J&&(M=[...M],V=0,J=m2(J,G),G=UN(X,G,W,M));let D=0,a=0;for(;D{const V=dv(G,b,W);X=V!==G&&V!=null;return V}); if(T!=null)return X&&!g5(T)&&aE(M,W),T}; ex=function(M,W,b,T){let q=M.h1,X=q[Q6]|0;W=Pl(q,X,W,b,T);if(W==null)return W;X=q[Q6]|0;if(!g5(M,X)){const G=Jl(W);G!==W&&(Bl(M)&&(q=M.h1,X=q[Q6]|0),W=G,X=UN(q,X,b,W,T),aE(q,X))}return W}; dN=function(M,W,b,T,q,X,G,V,J){var B=g5(M,b);X=B?1:X;V=!!V||X===3;B=J&&!B;(X===2||B)&&Bl(M)&&(W=M.h1,b=W[Q6]|0);M=ky(W,q,G);var D=M===K$?7:M[Q6]|0,a=vl(D,b);if(J=!(4&a)){var E=M,n=b;const C=!!(2&a);C&&(n|=2);let l=!C,N=!0,R=0,f=0;for(;R32)for(q|=(b&127)>>4,X=3;X<32&&b&128;X+=7)b=G[V++],q|=(b&127)<>>0,q>>>0);throw Error();}; EH=function(M){let W=0,b=M.Z;const T=b+10,q=M.V;for(;b>>0}; UH=function(M){const W=yJ(M);M=yJ(M);return Gs(W,M)}; C7=function(M){const W=yJ(M);M=yJ(M);return Wb(BigInt.asUintN(64,(BigInt(M>>>0)<>>0)))}; kq=function(M){var W=M.S;W||(W=M.V,W=M.S=new DataView(W.buffer,W.byteOffset,W.byteLength));W=W.getFloat64(M.Z,!0);D6(M,M.Z+8);return W}; D6=function(M,W){M.Z=W;if(W>M.B)throw Error();}; K7=function(M,W){if(W<0)throw Error();const b=M.Z;W=b+W;if(W>M.B)throw Error();M.Z=W;return b}; vj=function(M,W){if(W==0)return zN();var b=K7(M,W);M.ZA&&M.C?b=M.V.subarray(b,b+W):(M=M.V,W=b+W,b=b===W?new Uint8Array(0):M.slice(b,W));return b.length==0?zN():new hh(b,Ah)}; lX=function(M,W,b,T){if(mX.length){const q=mX.pop();L7(q,T);q.Z.init(M,W,b,T);return q}return new fBt(M,W,b,T)}; L7=function(M,{uo:W=!1}={}){M.uo=W}; tK=function(M){var W=M.Z;if(W.Z==W.B)return!1;M.A=M.Z.Z;var b=n7(M.Z)>>>0;W=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error();if(W<1)throw Error();M.B=W;M.V=b;return!0}; Z6=function(M){switch(M.V){case 0:M.V!=0?Z6(M):EH(M.Z);break;case 1:M=M.Z;D6(M,M.Z+8);break;case 2:if(M.V!=2)Z6(M);else{var W=n7(M.Z)>>>0;M=M.Z;D6(M,M.Z+W)}break;case 5:M=M.Z;D6(M,M.Z+4);break;case 3:W=M.B;do{if(!tK(M))throw Error();if(M.V==4){if(M.B!=W)throw Error();break}Z6(M)}while(1);break;default:throw Error();}}; f7=function(M,W,b){const T=M.Z.B;var q=n7(M.Z)>>>0;q=M.Z.Z+q;let X=q-T;X<=0&&(M.Z.B=q,b(W,M,void 0,void 0,void 0),X=q-M.Z.Z);if(X)throw Error();M.Z.Z=q;M.Z.B=T}; xq=function(M){var W=n7(M.Z)>>>0,b=M.Z;M=K7(b,W);var T=b.V;(b=Rx)||(b=Rx=new TextDecoder("utf-8",{fatal:!0}));W=M+W;T=M===0&&W===T.length?T:T.subarray(M,W);try{var q=b.decode(T)}catch(X){if(rb===void 0){try{b.decode(new Uint8Array([128]))}catch(G){}try{b.decode(new Uint8Array([97])),rb=!0}catch(G){rb=!1}}!rb&&(Rx=void 0);throw X;}return q}; FK=function(M){const W=n7(M.Z)>>>0;return vj(M.Z,W)}; iX=function(M,W,b){var T=n7(M.Z)>>>0;for(T=M.Z.Z+T;M.Z.Z0||W>127;)M.Z.push(W&127|128),W=(W>>>7|b<<25)>>>0,b>>>=7;M.Z.push(W)}; ea=function(M,W){M.Z.push(W>>>0&255);M.Z.push(W>>>8&255);M.Z.push(W>>>16&255);M.Z.push(W>>>24&255)}; db=function(M,W){for(;W>127;)M.Z.push(W&127|128),W>>>=7;M.Z.push(W)}; ox=function(M,W){if(W>=0)db(M,W);else{for(let b=0;b<9;b++)M.Z.push(W&127|128),W>>=7;M.Z.push(1)}}; cj=function(M,W){W.length!==0&&(M.B.push(W),M.V+=W.length)}; QJ=function(M,W,b){db(M.Z,W*8+b)}; gb=function(M,W){QJ(M,W,2);W=M.Z.end();cj(M,W);W.push(M.V);return W}; sH=function(M,W){var b=W.pop();for(b=M.V+M.Z.length()-b;b>127;)W.push(b&127|128),b>>>=7,M.V++;W.push(b);M.V++}; wb=function(M,W,b){if(b!=null){switch(typeof b){case "string":zJ(b)}QJ(M,W,1);switch(typeof b){case "number":M=M.Z;q_(b);ea(M,b8);ea(M,Ts);break;case "bigint":b=BigInt.asUintN(64,b);b=new AK(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));M=M.Z;W=b.Z;ea(M,b.V);ea(M,W);break;default:b=zJ(b),M=M.Z,W=b.Z,ea(M,b.V),ea(M,W)}}}; p7=function(M,W,b){QJ(M,W,2);db(M.Z,b.length);cj(M,M.Z.end());cj(M,b)}; Yq=function(){const M=class{constructor(){throw Error();}};Object.setPrototypeOf(M,M.prototype);return M}; $A=function(M,W){if(W==null||W=="")return new M;W=JSON.parse(W);if(!Array.isArray(W))throw Error("dnarr");W[Q6]|=32;return new M(W)}; bz=function(M,W){return new MX(M,W,WO)}; qX=function(M,W,b,T,q){W=TI(W,T);W!=null&&(b=gb(M,b),q(W,M),sH(M,b))}; GI=function(M,W,b,T){var q=T[M];if(q)return q;q={};q.vJ=T;q.Q2=tpS(T[0]);var X=T[1];let G=1;X&&X.constructor===Object&&(q.extensions=X,X=T[++G],typeof X==="function"&&(q.j9=!0,Xj??(Xj=X),jL??(jL=T[G+1]),X=T[G+=2]));const V={};for(;X&&Array.isArray(X)&&X.length&&typeof X[0]==="number"&&X[0]>0;){for(var J=0;Jq(X,G,V,T):q}; aC=function(M,W,b,T,q){const X=b.f5;let G,V;M[W]=(J,B,D)=>X(J,B,D,V||(V=GI(DD,BO,aC,T).Q2),G||(G=EO(T)),q)}; EO=function(M){let W=M[nD];if(W!=null)return W;const b=GI(DD,BO,aC,M);W=b.j9?(T,q)=>Xj(T,q,b):(T,q)=>{for(;tK(q)&&q.V!=4;){var X=q.B,G=b[X]; if(G==null){var V=b.extensions;V&&(V=V[X])&&(V=xEq(V),V!=null&&(G=b[X]=V))}if(G==null||!G(q,T,X)){V=q;G=V.A;Z6(V);if(V.uo)var J=void 0;else J=V.Z.Z-G,V.Z.Z=G,J=vj(V.Z,J);G=void 0;V=T;J&&((G=V[cb]??(V[cb]=new sU))[X]??(G[X]=[])).push(J)}}if(T=QW(T))T.Qt=b.vJ[y5];return!0}; M[nD]=W;M[y5]=FAq.bind(M);return W}; FAq=function(M,W,b,T){var q=this[DD];const X=this[nD],G=q6(void 0,q.Q2),V=QW(M);if(V){var J=!1,B=q.extensions;if(B){q=(D,a,E)=>{if(E.length!==0)if(B[a])for(const n of E){D=lX(n);try{J=!0,X(G,D)}finally{D.free()}}else T?.(M,a,E)}; if(W==null)gv(V,q);else if(V!=null){const D=V[W];D&&q(V,W,D)}if(J){let D=M[Q6]|0;if(D&2&&D&2048&&!b?.Ev)throw Error();const a=$x(D),E=(n,C)=>{if(EN(M,n,a)!=null)switch(b?.bzp){case 1:return;default:throw Error();}C!=null&&(D=UN(M,D,n,C,a));delete V[n]}; W==null?pn(G,G[Q6]|0,(n,C)=>{E(n,C)}):E(W,EN(G,W,a))}}}}; xEq=function(M){M=V5(M);const W=M[0].f5;if(M=M[1]){const b=EO(M),T=GI(DD,BO,aC,M).Q2;return(q,X,G)=>W(q,X,G,T,b)}return W}; UO=function(M,W,b){M[W]=b.SS}; kA=function(M,W,b,T){let q,X;const G=b.SS;M[W]=(V,J,B)=>G(V,J,B,X||(X=GI(CD,UO,kA,T).Q2),q||(q=KD(T)))}; KD=function(M){let W=M[vO];if(!W){const b=GI(CD,UO,kA,M);W=(T,q)=>m$(T,q,b); M[vO]=W}return W}; m$=function(M,W,b){pn(M,M[Q6]|0,(T,q)=>{if(q!=null){var X=iJJ(b,T);X?X(W,q,T):T<500||d5(hcS,3)}}); (M=QW(M))&&gv(M,(T,q,X)=>{cj(W,W.Z.end());for(T=0;TT(G,V,J,X,q)}else b=T; return M[W]=b}}; LD=function(M,W,b){if(Array.isArray(W)){var T=W[Q6]|0;if(T&4)return W;for(var q=0,X=0;q>BigInt(32)));Pj(M.Z,b.V,b.Z);break;default:b=OH(W),Pj(M.Z,b.V,b.Z)}}}; fD=function(M,W,b){W=K3(W);W!=null&&W!=null&&(QJ(M,b,0),ox(M.Z,W))}; RC=function(M,W,b){W=W==null||typeof W==="boolean"?W:typeof W==="number"?!!W:void 0;W!=null&&(QJ(M,b,0),M.Z.Z.push(W?1:0))}; xA=function(M,W,b){W=Sv(W);W!=null&&p7(M,b,v6(W))}; Fj=function(M,W,b,T,q){W=TI(W,T);W!=null&&(b=gb(M,b),q(W,M),sH(M,b))}; iz=function(M,W){return(b,T)=>{{const X={OG:!0};T&&Object.assign(X,T);b=lX(b,void 0,void 0,X);try{const G=new M,V=G.h1;EO(W)(V,b);var q=G}finally{b.free()}}return q}}; uz=function(M){return function(){const W=new A7Q;m$(this.h1,W,GI(CD,UO,kA,M));cj(W,W.Z.end());const b=new Uint8Array(W.V),T=W.B,q=T.length;let X=0;for(let G=0;G$A(M,W)}; OO=function(M,W){return(...b)=>{if(M.Z>-1)return W(...b);try{return M.Z=M.B.Z.now(),W(...b)}finally{M.A+=M.B.Z.now()-M.Z,M.Z=-1,M.V+=1}}}; PO=function(){return k4(zcg)}; dU=function(M,W,b,T){if(Math.random()<(T||M.Z))try{let q;b instanceof eL?q=b:(q=new eL,Jh(b,function(G,V){var J=q;const B=J.A++;G=B6(V,G);J.Z.push(B);J.V[B]=G})); const X=q.WF(M.V,"pagead2.googlesyndication.com","/pagead/gen_204?id="+W+"&");X&&(Uy(),y6(X))}catch(q){}}; oC=function(){const M=g.yp.performance;return M&&M.now&&M.timing?Math.floor(M.now()+M.timing.navigationStart):g.Hy()}; cO=function(){const M=g.yp.performance;return M&&M.now?M.now():null}; sO=function(M){M&&Q5&&gU()&&(Q5.clearMarks(`goog_${M.label}_${M.uniqueId}_start`),Q5.clearMarks(`goog_${M.label}_${M.uniqueId}_end`))}; wU=function(M,W,b,T,q,X,G){let V="";M&&(V+=M+":");b&&(V+="//",W&&(V+=W+"@"),V+=b,T&&(V+=":"+T));q&&(V+=q);X&&(V+="?"+X);G&&(V+="#"+G);return V}; g.pD=function(M){return M.match(u9t)}; YA=function(M){return M?decodeURI(M):M}; g.$F=function(M){return YA(g.pD(M)[3]||null)}; MN=function(M){return YA(g.pD(M)[5]||null)}; g.WG=function(M){M=g.pD(M);return wU(M[1],M[2],M[3],M[4])}; bC=function(M){M=g.pD(M);return wU(null,null,null,null,M[5],M[6],M[7])}; TM=function(M){const W=M.indexOf("#");return W<0?M:M.slice(0,W)}; qN=function(M,W){if(M){M=M.split("&");for(let b=0;b=0?(q=M[b].substring(0,T),X=M[b].substring(T+1)):q=M[b];W(q,X?GG(X):"")}}}; X3=function(M,W){if(!W)return M;var b=M.indexOf("#");b<0&&(b=M.length);let T=M.indexOf("?"),q;T<0||T>b?(T=b,q=""):q=M.substring(T+1,b);M=[M.slice(0,T),q,M.slice(b)];b=M[1];M[1]=W?b?b+"&"+W:W:b;return M[0]+(M[1]?"?"+M[1]:"")+M[2]}; jI=function(M,W,b){if(Array.isArray(W))for(let T=0;T=0&&Wb)q=b;T+=W.length+1;return GG(M.slice(T,q!==-1?q:0))}; n_=function(M,W){const b=M.search(a0);let T=0,q;const X=[];for(;(q=Du(M,T,W,b))>=0;)X.push(M.substring(T,q)),T=Math.min(M.indexOf("&",q)+1||b,b);X.push(M.slice(T));return X.join("").replace(OJP,"$1")}; PIJ=function(M,W,b){return BG(n_(M,W),W,b)}; yb=function(M){let W=M.toString();M.name&&W.indexOf(M.name)==-1&&(W+=": "+M.name);M.message&&W.indexOf(M.message)==-1&&(W+=": "+M.message);if(M.stack)a:{M=M.stack;var b=W;try{M.indexOf(b)==-1&&(M=b+"\n"+M);let T;for(;M!=T;)T=M,M=M.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");W=M.replace(/\n */g,"\n");break a}catch(T){W=b;break a}W=void 0}return W}; C_=function(M,W,b,T){return OO(PO().Z.Z,()=>{let q,X;try{M.J5&&M.J5.Z?(X=M.J5.start(W.toString(),3),q=b(),M.J5.end(X)):q=b()}catch(G){let V=M.SE;try{sO(X),V=M.V(W,new Uc(yb(G)),void 0,T)}catch(J){M.Rr(217,J)}if(!V)throw G;}return q})()}; K_=function(M,W,b,T){var q=kF;return OO(PO().Z.Z,(...X)=>C_(q,M,()=>W.apply(b,X),T))}; ecp=function(){var M=PO().B,W=vG>=0?Date.now()-mS-vG:-1;const b=L_?Date.now()-mS-lC:-1,T=tM>=0?Date.now()-mS-tM:-1;let q;if(M==947190542)return 100;if(M==79463069)return 200;M=[2E3,4E3];q=[250,500,1E3];kF.Rr(637,Error(),.001,void 0);let X=W;b!=-1&&b1500&&T<4E3?500:G}; Zu=function(M){const W=M!==M.top,b=M.top===b2(M);let T=-1,q=0,X;W&&b&&M.top.mraid?(T=3,X=M.top.mraid):T=(X=M.mraid)?W?b?2:1:0:-1;X&&(X.IS_GMA_SDK||(q=2),rV(dEP,G=>typeof X[G]==="function")||(q=1)); return{AU:X,compatibility:q,s5:T}}; I0=function(M,W,b=!1){if(M&&W!==null&&W!=W.top){if(!W.top)return new g.i0(-12245933,-12245933);W=W.top}try{return b?(new g.i0(W.innerWidth,W.innerHeight)).round():$t(W||window).round()}catch(T){return new g.i0(-12245933,-12245933)}}; NN=function(M,W,b){try{if(M){if(!W.top)return new NP(-12245933,-12245933,-12245933,-12245933);W=W.top}const {height:q,width:X}=I0(M,W,b);if(X===-12245933)return new NP(X,X,X,X);var T=oL(W.document);const {x:G,y:V}=W5(T.Z);return new NP(V,G+X,V+q,G)}catch{return new NP(-12245933,-12245933,-12245933,-12245933)}}; HG=function(M){return new NP(M.top,M.right,M.bottom,M.left)}; f_=function(M){const W=M.top||0,b=M.left||0;return new NP(W,b+(M.width||0),W+(M.height||0),b)}; R0=function(M){return M!=null&&M>=0&&M<=1}; o5q=function(M,W=Kr){W!==null&&W!=W.top&&(W=W.top);let b=0,T=0;try{const q=W.document,X=q.body,G=q.documentElement;if(q.compatMode=="CSS1Compat"&&G.scrollHeight)b=G.scrollHeight!=M.height?G.scrollHeight:G.offsetHeight,T=G.scrollWidth!=M.width?G.scrollWidth:G.offsetWidth;else{let V=G.scrollHeight,J=G.scrollWidth,B=G.offsetHeight,D=G.offsetWidth;G.clientHeight!=B&&(V=X.scrollHeight,J=X.scrollWidth,B=X.offsetHeight,D=X.offsetWidth);V>M.height?V>B?(b=V,T=J):(b=B,T=D):VXh(M,W))||Xh(M,"OMI/")&&!Xh(M,"XiaoMi/")?!0:Xh(M,"Presto")&&Xh(M,"Linux")&&!Xh(M,"X11")&&!Xh(M,"Android")&&!Xh(M,"Mobi"):!1}; rz=function(){return k4(QQL)}; xF=function(M,W){W&&W.screen&&(M.A=new g.i0(W.screen.width,W.screen.height))}; F3=function(M,W){const b=M.Z?new g.i0(H5(M.Z),M.Z.getHeight()):new g.i0(0,0);M.S=o5q(b,W)}; hM=function(){var M=rz();if(M.C>0||M.D)return!0;M=Uy().V.isVisible();const W=MI(iC)===0;return M||W}; zM=function(M){const W=g.Vh(M.S);g.Py(W,b=>{b.gK(M.Z)}); M.Z!=M||AM(M)}; uC=function(M,W){g.ME(M.S,W)||(M.S.push(W),W.gK(M.Z),W.C(M.A),W.En()&&(M.Zs=!0))}; SI=function(M){M.Zs=M.S.length?gG(M.S,W=>W.En()):!1}; Oc=function(M){M=M.Z;M.Lp();M.MK();var W=rz();W.W=NN(!1,M.B,W.isMobileDevice);F3(rz(),M.B);M.A.Z=M.Ds()}; AM=function(M){const W=g.Vh(M.S);g.Py(W,b=>{b.C(M.A)})}; PG=function(M,W){return M.D?new NP(Math.max(W.top+M.D.top,W.top),Math.min(W.left+M.D.right,W.right),Math.min(W.top+M.D.bottom,W.bottom),Math.max(W.left+M.D.left,W.left)):W.clone()}; g5s=function(M){switch(Math.trunc(M.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; eI=function(M,W){return M.BW.B?!1:M.VW.V?!1:typeof M.Ztypeof W.Z?!1:M.Z{M.add(b.V,b.Z,g5s(b))})}; dz=function(M,W){Jh(W,(b,T)=>{b===void 0||M.add(T,b,0)}); return M}; o0=function(M){var W=w$S;M.V&&(g.v$(M.Z,(b,T)=>eI(T,b)?1:eI(b,T)?-1:0),M.V=!1); return cy(M.Z,(b,T)=>{T=W(T);return`${b}${b!=""&&T!=""?"&":""}${T}`},"")}; g.cG=function(M){M&&typeof M.dispose=="function"&&M.dispose()}; g.Qb=function(M){for(let W=0,b=arguments.length;W{var q=M.Z;if(!T.Z&&(T.B(W,b),T.A())){T.Z=!0;var X=T.V();const G=new sc;G.add("id","av-js");G.add("type","verif");G.add("vtype",T.S);T=k4(p$t);G.add("i",T.Z++);G.add("adk",q);dz(G,X);q=new YrG(G);wz(q)}})}; M7t=function(M){return g.dG(M,(W,b,T)=>b>0?T[b]-T[b-1]:T[b])}; p_=function(M,W,b){M=g.dG(M.Z,T=>W(T)); return b?M:M7t(M)}; YF=function(M,W=!0){return p_(M,b=>b.Z,W)}; $0=function(M,W,b){const T=g.YP(M.V,q=>W<=q); return T==-1?0:b(M.Z[T])}; Mh=function(M,W){return $0(M,W,b=>b.Z)}; Wi=function(M,W=!0){return p_(M,b=>b.B,W)}; ba=function(M,W){return $0(M,W,b=>b.B)}; Tl=function(M,W){return $0(M,W,b=>b.V)}; qh=function(M){g.Py(M.Z,W=>{W.V=0})}; X1=function(M,W=!0){return Wi(M.V,W)}; Gl=function(M,W){W=j2(W);return W===0?0:j2(M)/W}; j2=function(M){return Math.max(M.bottom-M.top,0)*Math.max(M.right-M.left,0)}; WfL=function(M,W){if(!M||!W)return!1;let b=0;for(;M!==null&&b++<100;){if(M===W)return!0;try{if(M=M.parentElement||M){const T=Pt(M),q=T&&Tr(T),X=q&&q.frameElement;X&&(M=X)}}catch(T){break}}return!1}; THl=function(M,W,b){if(!M||!W)return!1;W=R5(M.clone(),-W.left,-W.top);M=(W.left+W.right)/2;W=(W.top+W.bottom)/2;W6(window.top)&&window.top&&window.top.document&&(window=window.top);if(!bZq())return!1;M=window.document.elementFromPoint(M,W);if(!M)return!1;W=(W=(W=Pt(b))&&W.defaultView&&W.defaultView.frameElement)&&WfL(W,M);const T=M===b;M=!T&&M&&Cr(M,q=>q===b); return!(W||T||M)}; qYL=function(M,W,b,T){return rz().B?!1:H5(M)<=0||M.getHeight()<=0?!0:b&&T?VG(208,()=>THl(M,W,b)):!1}; jBL=function(M){M=M.Zc.V$;var W;if(W=M&&M.getAttribute)W=/-[a-z]/.test("googleAvInapp")?!1:XXs&&M.dataset?"googleAvInapp"in M.dataset:M.hasAttribute?M.hasAttribute("data-"+Ea()):!!M.getAttribute("data-"+Ea());W&&(rz().V=!0)}; JN=function(M,W){W!=M.xv&&(M.xv=W,M=rz(),W?M.C++:M.C>0&&M.C--)}; Bi=function(M,W){if(M.K7){if(W.getName()===M.K7.getName())return;M.K7.dispose();M.K7=null}W=W.create(M.Zc.Z,M.pN,M.En());if(W=W!=null&&W.observe()?W:null)M.K7=W}; Dz=function(M,W,b){if(!M.KG||M.St==-1||W.V===-1||M.KG.V===-1)return 0;M=W.V-M.KG.V;return M>b?0:M}; GpS=function(M,W,b){if(M.K7){M.K7.S();var T=M.K7.lV,q=T.A,X=q.Z;if(T.C!=null){var G=T.B;M.VT=new g.xU(G.left-X.left,G.top-X.top)}X=M.DC()?Math.max(T.Z,T.S):T.Z;G={};q.volume!==null&&(G.volume=q.volume);q=M.eU(T);M.KG=T;M.zv(X,W,b,!1,G,q,T.D)}}; V7L=function(M){if(M.MD&&M.C9){var W=Y5(M.pN,"od")==1,b=rz().Z,T=M.C9,q=M.K7?M.K7.getName():"ns",X=M.VT,G=new g.i0(H5(b),b.getHeight());b=M.DC();M={BK:q,VT:X,O5:G,DC:b,Mp:M.QB.Mp,Fa:W};if(W=T.V){W.S();q=W.lV;X=q.A.Z;var V=G=null;q.C!=null&&X&&(G=q.B,G=new g.xU(G.left-X.left,G.top-X.top),V=new g.i0(X.right-X.left,X.bottom-X.top));q=b?Math.max(q.Z,q.S):q.Z;b={BK:W.getName(),VT:G,O5:V,DC:b,Fa:!1,Mp:q}}else b=null;b&&$RL(T,M,b)}}; JOq=function(M,W,b){W&&(M.Bs=W);b&&(M.UZ=b)}; g.aK=function(){}; g.EG=function(M){return{value:M,done:!1}}; BHs=function(M){const W={ptlt:g.Hy()-M.S};var b=M.V;b&&(W.pnk=b);(b=M.B)&&(W.pnc=b);(b=M.A)&&(W.pnmm=b);(M=M.Z)&&(W.pns=M);return W}; n9=function(M){return R0(M.volume)&&M.volume>0}; yG=function(M,W){const b={};if(M!==void 0)if(W!=null)for(const T in W){const q=W[T];T in Object.prototype||q!=null&&(b[T]=typeof q==="function"?q(M):M[q])}else g.sr(b,M);return o0(dz(new sc,b))}; UG=function(M,W){const b=M.V[W],T=b[1];M.B+=b[0];T>0&&M.Z[W]==0&&(M.Z[W]=1)}; DRy=function(M){const W=g.h7(M.V);let b=0;for(const T in M.Z)g.ME(W,T)&&M.Z[T]==1&&(b+=M.V[T][1],M.Z[T]=2);return b}; a_p=function(M){let W=0;for(const b in M.Z){const T=M.Z[b];if(T==1||T==2)W+=M.V[b][1]}return W}; C9=function(M,W,b){let T=M.xk;L_||b||M.D==-1||(T+=W-M.D);return T}; k0=function(M){return[M.top,M.left,M.bottom,M.right]}; vi=function(M){return M===void 0?M:Number(M)?K9(M,3):0}; mZ=function(M,W,b){let T=M.length;for(;TMath.max(1E4,M.B/3)?0:W);var b=M.D(M)||{};b=b.currentTime!==void 0?b.currentTime:M.O;const T=b-M.O;let q=0;T>=0?(M.Zs+=W,M.lV+=Math.max(W-T,0),q=Math.min(T,M.Zs)):M.MK+=Math.abs(T);T!=0&&(M.Zs=0);M.Lp==-1&&T>0&&(M.Lp=tM>=0?Date.now()-mS-tM:-1);M.O=b;return q}; tN=function(M){const W=!!Y5(PO().pN,"umt");return M.gK||!W&&!M.xk?0:1}; Zz=function(M,W){return M.sY[W!=null&&W=15E3?!0:M.wK?b?!0:M.B>0?W>=M.B/2:M.BY>0?W>=M.BY:!1:!1}; npP=function(M,W){gG(M.C,b=>b.B==W.B)||M.C.push(W)}; Nh=function(M){const W=Mh(M.Mg().Z,1);return IK(M,W)}; yOy=function(M){const W=K9(M.QB.Mp,2),b=M.Kz.B;var T=M.QB,q=Zz(M);const X=vi(q.A),G=vi(q.C),V=vi(T.volume),J=K9(q.W,2),B=K9(q.O,2),D=K9(T.Mp,2),a=K9(q.Zs,2),E=K9(q.yz,2);T=K9(T.C3,2);const n=M.GC().clone().round();M=M.K7&&M.K7.B?(M.K7?M.K7.B:null).clone().round():null;q=X1(q,!1);return{Xa:W,rk:b,Ft:X,ej:G,bc:V,b5:J,Jl:B,Mp:D,Ut:a,GX:E,C3:T,position:n,v8:M,u8:q}}; Hi=function(M,W){mZ(M.Z,W,()=>({Xa:0,rk:void 0,Ft:-1,ej:-1,bc:-1,b5:-1,Jl:-1,Mp:-1,Ut:-1,GX:-1,C3:-1,position:void 0,v8:void 0,u8:[]})); M.Z[W]=yOy(M)}; CrS=function(M,W){if(g.ME(URy,W))return!0;const b=M.TK[W];return b!==void 0?(M.TK[W]=!0,!b):!1}; RK=function(M,W,b,T,q){if(M.q9)return{"if":0,vs:0};var X=M.GC().clone().round();const G=M.K7?M.K7.B:null,V=rz();var J=PO();const B=M.Mg();var D=M.K7?M.K7.getName():"ns";const a={};a["if"]=V.B?1:void 0;a.sdk=M.A?M.A:void 0;a.t=M.timeCreated;a.p=[X.top,X.left,X.bottom,X.right];X&&G&&!fr(G,X)&&(X=G.round(),a.cp=[X.top,X.left,X.bottom,X.right]);a.tos=YF(B.V,!1);a.mtos=X1(B);a.mcvt=B.MK.B;a.ps=void 0;X=C9(B,Date.now()-mS,M.hU());a.vht=X;a.mut=B.EY.B;a.a=vi(M.QB.volume);a.mv=vi(B.C);a.fs=M.xv?1:0;a.ft= B.gK.Z;a.at=B.S.Z;a.as=B.A>0?1:0;a.atos=YF(B.Z);a.ssb=YF(B.Ds,!1);a.amtos=Wi(B.Z,!1);a.uac=M.XX;a.vpt=B.B.Z;D=="nio"&&(a.nio=1,a.avms="nio");a.gmm="4";a.gdr=IK(M,B.B.Z,!0)?1:0;a.efpf=M.vP;if(D=="gsv"||D=="nis")D=M.K7,D.Zs>0&&(a.nnut=D.Zs);a.tcm=tN(M);a.nmt=M.MK;a.bt=M.lV;a.pst=M.Lp;a.vpaid=M.gK;a.dur=M.B;a.vmtime=M.O;a.is=M.Kz.B;M.Z.length>=1&&(a.i0=M.Z[0].rk,a.a0=[M.Z[0].bc],a.c0=[M.Z[0].Mp],a.ss0=[M.Z[0].C3],D=M.Z[0].position,X=M.Z[0].v8,a.p0=D?k0(D):void 0,D&&X&&!fr(X,D)&&(a.cp0=k0(X)));M.Z.length>= 2&&(a.i1=M.Z[1].rk,a.a1=L9(M.Z[1].Ft,M.Z[1].bc,M.Z[1].ej),a.c1=L9(M.Z[1].b5,M.Z[1].Mp,M.Z[1].Jl),a.ss1=L9(M.Z[1].Ut,M.Z[1].C3,M.Z[1].GX),D=M.Z[1].position,X=M.Z[1].v8,a.p1=D?k0(D):void 0,D&&X&&!fr(X,D)&&(a.cp1=k0(X)),a.mtos1=M.Z[1].u8);M.Z.length>=3&&(a.i2=M.Z[2].rk,a.a2=L9(M.Z[2].Ft,M.Z[2].bc,M.Z[2].ej),a.c2=L9(M.Z[2].b5,M.Z[2].Mp,M.Z[2].Jl),a.ss2=L9(M.Z[2].Ut,M.Z[2].C3,M.Z[2].GX),D=M.Z[2].position,X=M.Z[2].v8,a.p2=D?k0(D):void 0,D&&X&&!fr(X,D)&&(a.cp2=k0(X)),a.mtos2=M.Z[2].u8);M.Z.length>=4&&(a.i3= M.Z[3].rk,a.a3=L9(M.Z[3].Ft,M.Z[3].bc,M.Z[3].ej),a.c3=L9(M.Z[3].b5,M.Z[3].Mp,M.Z[3].Jl),a.ss3=L9(M.Z[3].Ut,M.Z[3].C3,M.Z[3].GX),D=M.Z[3].position,X=M.Z[3].v8,a.p3=D?k0(D):void 0,D&&X&&!fr(X,D)&&(a.cp3=k0(X)),a.mtos3=M.Z[3].u8);a.cs=a_p(M.Kz);W&&(a.ic=DRy(M.Kz),a.dvpt=B.B.V,a.dvs=Tl(B.V,.5),a.dfvs=Tl(B.V,1),a.davs=Tl(B.Z,.5),a.dafvs=Tl(B.Z,1),b&&(B.B.V=0,qh(B.V),qh(B.Z)),M.tC()&&(a.dtos=B.sY,a.dav=B.X,a.dtoss=M.kx+1,b&&(B.sY=0,B.X=0,M.kx++)),a.dat=B.S.V,a.dft=B.gK.V,b&&(B.S.V=0,B.gK.V=0));a.ps=[V.S.width, V.S.height];a.bs=[H5(V.Z),V.Z.getHeight()];a.scs=[V.A.width,V.A.height];a.dom=V.domain;M.tb&&(a.vds=M.tb);if(M.C.length>0||M.vj)W=g.Vh(M.C),M.vj&&W.push(M.vj),a.pings=g.dG(W,E=>E.toString()); W=g.dG(g.et(M.C,E=>E.C()),E=>E.getId()); Vta(W);a.ces=W;M.V&&(a.vmer=M.V);M.X&&(a.vmmk=M.X);M.yz&&(a.vmiec=M.yz);a.avms=M.K7?M.K7.getName():"ns";M.K7&&g.sr(a,M.K7.Dl());T?(a.c=K9(M.QB.Mp,2),a.ss=K9(M.QB.C3,2)):a.tth=Date.now()-mS-f9;a.mc=K9(B.O,2);a.nc=K9(B.W,2);a.mv=vi(B.C);a.nv=vi(B.A);a.lte=K9(M.sW,2);T=Zz(M,q);X1(B);a.qmtos=X1(T);a.qnc=K9(T.W,2);a.qmv=vi(T.C);a.qnv=vi(T.A);a.qas=T.A>0?1:0;a.qi=M.Oi;a.avms||(a.avms="geo");a.psm=B.BY.Z;a.psv=B.BY.getValue();a.psfv=B.jT.getValue();a.psa=B.Lp.getValue();J=CQJ(J.pN);J.length&&(a.veid=J); M.S&&g.sr(a,BHs(M.S));a.avas=M.fl();a.vs=M.kD();a.co=kpa(M);a.tm=B.lV;a.tu=B.An;return a}; x0=function(M,W,b){var T=M.td[W];if(T!=null)return T;T=CrS(M,W);const q=Sp(rK,X=>X==W); M=RK(M,T,T,b,Kfg[rK[q]]);W=="fully_viewable_audible_half_duration_impression"&&(M.std="csm");return M}; kpa=function(M){var W=M.An.toString(10).padStart(2,"0");W=`${M.d9}${W}`;M.An<99&&M.An++;return W}; ia=function(M,W,b){F1(b,"mousedown",()=>vpp(M),301); F1(W,"scroll",()=>mRG(M),302); F1(b,"touchmove",()=>LfQ(M),303); F1(b,"mousemove",()=>l_y(M),304); F1(b,"keydown",()=>t7L(M),305)}; ZZG=function(){var M=document.documentElement;try{if(!W6(Tr().top))return"2";var W;let b=[];const T=Tr(M.ownerDocument);for(M=T;M!=T.top;M=M.parent)if(M.frameElement)b.push(M.frameElement);else break;return(W=b)&&W.length!=0?"1":"0"}catch(b){return"2"}}; vpp=function(M){g.NE(M.Z,W=>{W.B>1E5||++W.B})}; mRG=function(M){g.NE(M.Z,W=>{W.Z>1E5||++W.Z})}; LfQ=function(M){g.NE(M.Z,W=>{W.Z>1E5||++W.Z})}; l_y=function(M){g.NE(M.Z,W=>{W.A>1E5||++W.A})}; t7L=function(M){g.NE(M.Z,W=>{W.V>1E5||++W.V})}; hN=function(M,W){return g.pt(M.Z,b=>b.Oi==W)}; AN=function(M,W){return W?g.pt(M.Z,b=>b.Zc.V$==W):null}; I_q=function(M,W){return g.pt(M.V,b=>b.Ib()==2&&b.Oi==W)}; ua=function(){var M=zl;return M.Z.length==0?M.V:M.V.length==0?M.Z:g.G4(M.V,M.Z)}; S2=function(M,W){M=W.Ib()==1?M.Z:M.V;const b=wG(M,T=>T==W); return b!=-1?(M.splice(b,1),W.K7&&W.K7.unobserve(),W.dispose(),!0):!1}; NHJ=function(M){var W=zl;let b;if(S2(W,M)){switch(M.Ib()){case 0:b=()=>null; case 2:b=()=>I_q(W,M.Oi); break;case 1:b=()=>hN(W,M.Oi)}for(let T=b();T;T=b())S2(W,T)}}; HZs=function(M){var W=zl;M=g.et(M,b=>!AN(W,b.Zc.V$)); W.Z.push(...M)}; f_Q=function(M){var W=zl;const b=[];g.Py(M,T=>{gG(W.Z,q=>q.Zc.V$===T.Zc.V$&&q.Oi===T.Oi)||(W.Z.push(T),b.push(T))})}; OG=function(M,W){if(M.V==null)return!1;const b=(T,q)=>{W(T,q)}; M.Z=g.pt(M.V,T=>T!=null&&T.O()); M.Z&&(M.Z.init(b)?Oc(M.Z.Z):W(M.Z.Z.X(),M.Z));return M.Z!=null}; R9t=function(M){if(!M.length)return[];M=g.et(M,W=>W!=null&&W.sY()); for(let W=1;WPi(M,q)),rOs); T=OO(T,()=>{M.A.unobserve(W);M.A.observe(W);Pi(M,e2(M))}); b.ResizeObserver?(M.sY=new b.ResizeObserver(T),M.sY.observe(W)):b.MutationObserver&&(M.Zs=new g.yp.MutationObserver(T),M.Zs.observe(W,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));M.A.observe(W);Pi(M,e2(M));return!0}; e2=function(M){return M.A&&M.A.takeRecords?M.A.takeRecords():[]}; Pi=function(M,W){try{if(W.length){M.An||(M.An=Date.now()-mS);var b=FfJ(W),T=c5(M.element,M.V.Z.B),q=T.x,X=T.y;M.B=new NP(Math.round(X),Math.round(q)+b.boundingClientRect.width,Math.round(X)+b.boundingClientRect.height,Math.round(q));M.Z=PG(M,M.B);var G=HG(b.intersectionRect);M.O=R5(G,M.B.left-G.left,M.B.top-G.top)}}catch(V){M.unobserve(),kF.Rr(299,V,void 0,void 0)}}; FfJ=function(M){return cy(M,(W,b)=>W.time>b.time?W:b,M[0])}; dK=function(){PO();const M=rz();return M.B||M.V?0:2}; iZQ=function(M,W){if(!M.A){W=K_(142,W);Uy();var b;iC.visibilityState?b="visibilitychange":iC.mozVisibilityState?b="mozvisibilitychange":iC.webkitVisibilityState&&(b="webkitvisibilitychange");b&&$4(iC,b,W,{capture:!1})&&(M.A=W)}}; QG=function(M){const W=hM(),b=Date.now()-mS;W?(L_||(lC=b,g.Py(zl.Z,T=>{var q=T.Mg();q.xk=C9(q,b,T.MV!=1)})),L_=!0):(M.C=oK(M,b),L_=!1,f9=b,g.Py(zl.Z,T=>{T.MD&&(T.Mg().D=b)})); ci(M,ua(),!W)}; sG=function(){var M=gK;M.S||(M.S=!0,iZQ(M,(...W)=>QG(M,...W)),QG(M))}; ci=function(M,W,b){if(!M.done&&(M.V.cancel(),W.length!=0)){M.B=null;try{h9P();var T=Date.now()-mS;PO().S=T;if(k4(wK).Z!=null)for(let q=0;q{q.QB.Mp=0}):M.V.schedule()}}}; h9P=function(){k4(p9);const M=k4(wK);M.Z!=null&&M.Z.Z?Oc(M.Z.Z):rz().update(Kr)}; oK=function(M,W){M=M.C;L_&&(M+=W-lC);return M}; Y0=function(){const M=k4(wK);if(M.Z!=null){var W=M.Z;g.Py(ua(),b=>Bi(b,W))}}; z9s=function(M=()=>({})){var W=gK; kF.At="av-js";$z.Z=.01;AOg([b=>{var T=PO(),q={bin:T.V,type:"error"};T=MR(T.pN);if(!W.B){var X=Kr.document,G=vG>=0?Date.now()-mS-vG:-1;const D=Date.now()-mS;W.Z.SK==-1&&(G=D);const a=rz(),E=PO(),n=MR(E.pN),C=ua();try{if(C.length>0){var V=a.Z;V&&(n.bs=[H5(V),V.getHeight()]);var J=a.S;J&&(n.ps=[J.width,J.height]);Kr.screen&&(n.scs=[Kr.screen.width,Kr.screen.height])}else n.url=encodeURIComponent(Kr.location.href.substring(0,512)),X.referrer&&(n.referrer=encodeURIComponent(X.referrer.substring(0,512))); n.tt=G;n.pt=vG;n.bin=E.V;Kr.google_osd_load_pub_page_exp!==void 0&&(n.olpp=Kr.google_osd_load_pub_page_exp);n.deb=[1,W.Z.Er,W.Z.qU,W.Z.gX,W.Z.SK,0,W.V.V,W.Z.w7,W.Z.m3,W.Z.Cn,W.Z.VL,-1].join(";");n.tvt=oK(W,D);a.V&&(n.inapp=1);if(Kr!==null&&Kr!=Kr.top){C.length>0&&(n.iframe_loc=encodeURIComponent(Kr.location.href.substring(0,512)));var B=a.W;n.is=[H5(B),B.getHeight()]}}catch(l){n.error=1}W.B=n}V=g.c$(W.B);J=PO().Z;Y5(J.B,"prf")==1?(B=new MC,X=J.Z,G=0,X.Z>-1&&(G=X.B.Z.now()-X.Z),B=Hl(B,1,aF(X.A+G), 0),X=J.Z,B=Hl(B,5,kx(X.Z>-1?X.V+1:X.V),0),B=Hl(B,2,RF(J.V.Z.B()),"0"),B=Hl(B,3,RF(J.V.Z.V()),"0"),J=Hl(B,4,RF(J.V.Z.Z()),"0"),J={pf:g.Id(J.V())}):J={};g.sr(V,J);g.sr(b,q,T,V,M())}])}; uhs=function(){var M=WI||Kr;if(!M)return"";const W=[];if(!M.location||!M.location.href)return"";W.push(`${"url"}=${encodeURIComponent(M.location.href.substring(0,512))}`);M.document&&M.document.referrer&&W.push(`${"referrer"}=${encodeURIComponent(M.document.referrer.substring(0,512))}`);return W.join("&")}; bv=function(){let M="youtube.player.web_20260216_03_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20260216_03_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20260216_03_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20260216_03_RC00".match(/_(\d{8})_\d+_RC\d+$/);if(M?.length==2)return M[1];M="youtube.player.web_20260216_03_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);return M?.length==3?"20"+M[1]+M[2]:null}; OZp=function(M){try{const W=M.split(",");return W.length>g.h7(SYq).length?null:cy(W,(b,T)=>{T=T.toLowerCase().split("=");if(T.length!=2||Tx[T[0]]===void 0||!Tx[T[0]](T[1]))throw Error(`Entry (${T[0]}, ${T[1]}) is invalid.`);b[T[0]]=T[1];return b},{})}catch(W){return null}}; PrL=function(M,W){if(M.Z==void 0)return 0;switch(M.S){case "mtos":return M.V?ba(W.Z,M.Z):ba(W.V,M.Z);case "tos":return M.V?Mh(W.Z,M.Z):Mh(W.V,M.Z)}return 0}; e9t=function(M){const W=PO(),b=k4(qC);M&&!W.A&&(W.A=!0,b.bV=!0,b.D&&b.fail("w",!0))}; jo=function(){try{const M=k4(qC);XX(M,"removeEventListener","ready",jo);Gx(M)}catch(M){kF.Rr(541,M,void 0,void 0)}}; JX=function(M,W){try{var b=k4(qC);b.lV=!0;let q;q=M?new NP(M.y,M.x+M.width,M.y+M.height,M.x):new NP(0,0,0,0);const X=Date.now()-mS,G=hM();var T=new Vz(X,G,b);T.Z=q;T.volume=W;b.C(T)}catch(q){kF.Rr(542,q,void 0,void 0)}}; Gx=function(M){typeof M.V.AU.AFMA_LIDAR==="string"?(M.An=!0,dRp(M)):(M.V.compatibility=3,M.D="nc",M.fail("w"))}; XX=function(M,W,...b){try{return M.V.AU[W].apply(M.V.AU,b)}catch(T){opt(T,q=>{q.method=W})}}; BI=function(M,W,b){XX(M,"addEventListener",W,b)}; Dq=function(M){PO().A=!!XX(M,"isViewable");BI(M,"viewableChange",e9t);XX(M,"getState")==="loading"?BI(M,"ready",jo):Gx(M)}; dRp=function(M){M.lV=!1;const W=Y5(PO().pN,"rmmt")==1,b=!!XX(M,"isViewable");(W?!b:1)&&Uy().setTimeout(a3(524,()=>{M.lV||(Eu(M),kF.Rr(540,Error(),void 0,void 0),M.D="mt",M.fail("w"))}),500); cOq(M);BI(M,M.V.AU.AFMA_LIDAR,JX)}; Eu=function(M){XX(M,"removeEventListener",M.V.AU.AFMA_LIDAR,JX);M.An=!1}; cOq=function(M){var W=Y5(PO().pN,"sneio")==1;const b=M.V.AU.AFMA_LIDAR_EXP_1!==void 0,T=M.V.AU.AFMA_LIDAR_EXP_2!==void 0;(W=W&&T)&&(M.V.AU.AFMA_LIDAR_EXP_2=!0);b&&(M.V.AU.AFMA_LIDAR_EXP_1=!W)}; nF=function(M,W){if(XX(M,"getState")==="loading")return new g.i0(-1,-1);W=XX(M,W);if(!W)return new g.i0(-1,-1);M=parseInt(W.width,10);W=parseInt(W.height,10);return isNaN(M)||isNaN(W)?new g.i0(-1,-1):new g.i0(M,W)}; Uu=function(){const M=rz();return{sv:"968",...(yz!==null&&{v:yz}),["if"]:M.B?"1":"0",nas:String(zl.Z.length)}}; CF=function(M,W){const b=M[W];b!==void 0&&b>0&&(M[W]=Math.floor(b*1E3))}; QBG=function(M){z9s(()=>{const W=Uu();M.V!=null&&(W.sdk=M.V);const b=k4(wK);b.Z!=null&&(W.avms=b.Z.getName());return W})}; kz=function(M,W,b,T){M=M.O(null,T,!0,W);M.A=b;HZs([M]);return M}; gpq=function(M,W,b){W.q9=!0;switch(W.Ib()){case 1:KF(W,b);break;case 2:M.MK(W)}}; pXG=function(M,W,b){EPJ(W);const T=M.Z;g.Py(W,q=>{const X=g.dG(q.criteria,G=>{var V=OZp(G);if(V==null)G=null;else if(G=new sBQ,V.visible!=null&&(G.Z=V.visible/100),V.audible!=null&&(G.V=V.audible==1),V.time!=null){const J=V.timetype=="mtos"?"mtos":"tos",B=br(V.time,"%")?"%":"ms";V=parseInt(V.time,10);B=="%"&&(V/=100);G.setTime(V,B,J)}return G}); gG(X,G=>G==null)||npP(b,new wXg(q.id,q.event,X,T))})}; byy=function(){const M=[];var W=PO();M.push(k4(YYG));Y5(W.pN,"mvp_lv")&&M.push(k4(qC));W=[new $$P,new MuJ];W.push(new WUy(M));W.push(new vI(Kr));return W}; LF=function(){const M=[new vI(Kr)],W=k4(wK);W.V=M;OG(W,()=>{mD("i")})?gK.done||(Y0(),sG()):mD("i")}; TPt=function(M){if(!M.isInitialized){M.isInitialized=!0;try{const T=Date.now()-mS,q=PO(),X=rz();vG=T;q.B=79463069;M.V!=="o"&&(WI=b2(Kr));if(G4L()){gK.Z.qU=0;gK.Z.SK=Date.now()-mS-T;var W=byy(),b=k4(wK);b.V=W;OG(b,()=>{LF()})?gK.done||(Y0(),uC(b.Z.Z,M),sG()):X.B?LF():sG()}else lv=!0}catch(T){throw zl.reset(),T; }}}; mD=function(M){gK.V.cancel();tX=M;gK.done=!0}; Zq=function(M){if(M.V)return M.V;const W=k4(wK).Z;if(W)switch(W.getName()){case "nis":M.V="n";break;case "gsv":M.V="m"}M.V||(M.V="h");return M.V}; NC=function(M,W,b){if(M.Z==null)return W.tb|=4,!1;M=I3(M.Z,b,W);W.tb|=M;return M==0}; KF=function(M,W){if(!M.OY){var b=x0(M,"start",hM());b=M.cX.Z(b).Z;var T={id:"lidarv"};T.r=W;T.sv="968";yz!==null&&(T.v=yz);qN(b,(q,X)=>T[q]=q=="mtos"||q=="tos"?X:encodeURIComponent(X)); W=uhs();qN(W,(q,X)=>T[q]=encodeURIComponent(X)); W="//pagead2.googlesyndication.com/pagead/gen_204?"+o0(dz(new sc,T));wz(W);M.OY=!0}}; HI=function(M,W,b){ci(gK,[M],!hM());Hi(M,b);b!=4&&mZ(M.sY,b,M.je);return x0(M,W,hM())}; qat=function(M,W,b,T){let q;q=AN(zl,b);q!==null&&q.Oi!==W&&(M.D(q),q=null);q||(W=M.O(b,Date.now()-mS,!1,W),zl.V.length==0&&(PO().B=79463069),f_Q([W]),q=W,q.A=Zq(M),T&&(q.jT=T));return q}; I3=function(M,W,b){M=M.V();if(typeof M==="function"){var T={...(yz!==null&&{v:yz}),sv:"968",cb:fF,e:Xtt(W)};const q=x0(b,W,hM());g.sr(T,q);b.td[W]=q;T=b.Ib()==2?jLp(T).join("&"):b.cX.Z(T).Z;try{return M(b.Oi,T,W),0}catch(X){return 2}}else return 1}; Xtt=function(M){const W=WX(M,"custom_metric_viewable")?"custom_metric_viewable":M;M=Sp(rK,b=>b==W); return R3[M]}; rX=function(M){return{viewability:M.Z,googleViewability:M.V}}; iv=function(M,W,b={}){M=xz(k4(FX),W,b,M);return rX(M)}; xz=function(M,W,b={},T){var q={};g.sr(q,{opt_adElement:void 0,opt_fullscreen:void 0},b);var X=M.X(W,b);b=X?X.cX:M.sY();if(q.opt_bounds)return b.Z(hX("ol",T));if(T!==void 0)if(AX(T)!==void 0)if(lv)M=hX("ue",T);else if(TPt(M),tX=="i")M=hX("i",T),M["if"]=0;else if(W=M.X(W,q)){b:{tX=="i"&&(W.q9=!0);X=q.opt_fullscreen;X!==void 0&&JN(W,!!X);if(X=!rz().V)(X=Xh(g.Vd(),"CrKey")&&!(Xh(g.Vd(),"CrKey")&&Xh(g.Vd(),"SmartSpeaker"))||Xh(g.Vd(),"PlayStation")||Xh(g.Vd(),"Roku")||c7G()||Xh(g.Vd(),"Xbox"))||(X=g.Vd(), X=Xh(X,"AppleTV")||Xh(X,"Apple TV")||Xh(X,"CFNetwork")||Xh(X,"tvOS")),X||(X=g.Vd(),X=Xh(X,"sdk_google_atv_x86")||Xh(X,"Android TV")),X=!X;X&&(Uy(),X=MI(iC)===0);var G=X;if(G){switch(W.Ib()){case 1:KF(W,"pv");break;case 2:M.MK(W)}mD("pv")}X=T.toLowerCase();if(!G&&(Y5(PO().pN,"ssmol")&&X==="loaded"?0:g.ME(GGQ,X))&&W.MV==0){tX!="i"&&(gK.done=!1);G=q!==void 0?q.opt_nativeTime:void 0;tM=G=typeof G==="number"?G:Date.now()-mS;W.MD=!0;var V=hM();W.MV=1;W.TK={};W.TK.start=!1;W.TK.firstquartile=!1;W.TK.midpoint= !1;W.TK.thirdquartile=!1;W.TK.complete=!1;W.TK.resume=!1;W.TK.pause=!1;W.TK.skip=!1;W.TK.mute=!1;W.TK.unmute=!1;W.TK.viewable_impression=!1;W.TK.measurable_impression=!1;W.TK.fully_viewable_audible_half_duration_impression=!1;W.TK.fullscreen=!1;W.TK.exitfullscreen=!1;W.kx=0;V||(W.Mg().D=G);ci(gK,[W],!V)}(G=W.F1[X])&&UG(W.Kz,G);Y5(PO().pN,"fmd")||g.ME(zx,X)&&W.vj&&W.vj.V(W,null);let J;switch(W.Ib()){case 1:J=WX(X,"custom_metric_viewable")?M.Ds.custom_metric_viewable:M.Ds[X];break;case 2:J=M.aT[X]}if(J&& (T=J.call(M,W,q,T),Y5(PO().pN,"fmd")&&g.ME(zx,X)&&W.vj&&W.vj.V(W,null),T!==void 0)){q=hX(void 0,X);g.sr(q,T);T=q;break b}T=void 0}W.MV==3&&M.D(W);M=T}else M=hX("nf",T);else M=void 0;else lv?M=hX("ue"):X?(M=hX(),g.sr(M,RK(X,!0,!1,!1))):M=hX("nf");return typeof M==="string"?b.Z():b.Z(M)}; VuS=function(M,W,b){let T=hN(zl,W);T||(T=kz(M,W,"n",b.opt_nativeTime||-1));return T}; JYS=function(M,W,b){var T=hN(zl,W);T||(T=b.opt_nativeTime||-1,T=kz(M,W,Zq(M),T),b.opt_osdId&&(T.jT=b.opt_osdId));return T}; BPL=function(M,W){let b=hN(zl,W);b||(b=kz(M,W,"h",-1));return b}; D$G=function(M,W,b){b=b.opt_configurable_tracking_events;M.Z!=null&&Array.isArray(b)&&pXG(M,b,W)}; aZQ=function(M){PO();switch(Zq(M)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; uv=function(M,W){W&&(M.Zs=W)}; Ou=function(M,...W){W=W.filter(Boolean).join("&");if(!W)return M;const b=M.match(/[?&]adurl=/);return b?M.slice(0,b.index+1)+W+"&"+M.slice(b.index+1):M+(M.indexOf("?")<0?"?":"&")+W}; GP=function(M,W){return W?"&"+M+"="+encodeURIComponent(W):""}; EUL=function(M){M=M.A;if(!M)return"";let W=GP("uap",M.platform)+GP("uapv",M.platformVersion)+GP("uafv",M.uaFullVersion)+GP("uaa",M.architecture)+GP("uam",M.model)+GP("uab",M.bitness);M.fullVersionList&&(W+="&uafvl="+encodeURIComponent(M.fullVersionList.map(b=>encodeURIComponent(b.brand)+";"+encodeURIComponent(b.version)).join("|"))); M.wow64!=null&&(W+="&uaw="+Number(M.wow64));return W.slice(1)}; nUq=function(M,W,b,T,q){var X=window,G;b?G="//pagead2.googlesyndication.com/bg/"+VT(b)+".js":G="";b=X.document;const V={};W&&(V._scs_=W);V._bgu_=G;V._bgp_=T;V._li_="v_h.3.0.0.0";q&&(V._upb_=q);(W=X.GoogleTyFxhY)&&typeof W.push=="function"||(W=X.GoogleTyFxhY=[]);W.push(V);W=oL(b).createElement("SCRIPT");W.type="text/javascript";W.async=!0;M=(0,g.Su)`//tpc.googlesyndication.com/sodar/${VT(M)+".js"}`;g.Yp(W,M);(X=(X.GoogleTyFxhYEET||{})[W.src])?X():b.getElementsByTagName("head")[0].appendChild(W)}; Jc=function(M="bevasrsg"){return new Promise(W=>{if(window===window.top)var b=window;else{try{b=!!window?.top?.location.href&&!1}catch(q){b=!0}b=b?window:window.top}let T=b[M];T?.bevasrs?W(new V1(T.bevasrs)):(T||(T={nqfbel:[]},b[M]=T),T.nqfbel.push(q=>{W(new V1(q))}))})}; B7=function(M){const W={c:M.uG,e:M.OQ,mc:M.SQ,me:M.iQ};M.pH&&(W.co={c:M.pH.Vw,a:M.pH.hP,s:M.pH.P0});return W}; yYl=function(M){M.V!==void 0&&(M.B.forEach(W=>{M.V?.removeEventListener(W,M.A)}),M.V=void 0)}; C0Q=async function(M){if(!M.Rc.wpc)throw new Do(30,"NWA");if(M.Z)return M.Z;const W=await M.Rc.wpc();M.Z=new U$t(W);return M.Z}; Ej=function(M){const W=[];cl(M,ag,6).forEach(b=>{g.Yy(b,2)<=53&&W.push(g.Yy(b,1))}); return W}; kGs=function(M){const W=[];cl(M,ag,6).forEach(b=>{g.Yy(b,2)>53&&W.push(g.Yy(b,1))}); return W}; nN=function(M){M.then(()=>{},()=>{})}; y1=function(M){return{fieldType:2,fieldName:M}}; g.Uj=function(M){return{fieldType:3,fieldName:M}}; KUJ=function(M,W){return N6(M,W,C3)}; tc=function(M){var W=new CN;W=XK(W,1,M.V);var b=vUl(M);W=N6(W,b,k4P);b=[];const T=[];for(var q of M.Z.keys())T.push(q.split(","));for(q=0;q>>31)&4294967295;a=q[0];var C=q[1],l=q[2],N=q[3],R=q[4];for(n=0;n<80;n++){if(n<40)if(n<20){var f=N^C&(l^N);var x=1518500249}else f=C^l^N,x=1859775393;else n<60?(f=C&l|N&(C|l),x=2400959708):(f=C^l^N,x=3395469782);f=((a<<5|a>>>27)&4294967295)+f+R+x+E[n]&4294967295;R=N;N=l;l=(C<<30|C>>>2)&4294967295;C=a;a=f}q[0]=q[0]+a&4294967295;q[1]=q[1]+C&4294967295;q[2]= q[2]+l&4294967295;q[3]=q[3]+N&4294967295;q[4]=q[4]+R&4294967295} function b(a,E){if(typeof a==="string"){a=unescape(encodeURIComponent(a));for(var n=[],C=0,l=a.length;C=56;n--)X[n]=E&255,E>>>=8;W(X);for(n=E=0;n<5;n++)for(var C=24;C>=0;C-=8)a[E++]=q[n]>>C&255;return a} for(var q=[],X=[],G=[],V=[128],J=1;J<64;++J)V[J]=0;var B,D;M();return{reset:M,update:b,digest:T,kO:function(){for(var a=T(),E="",n=0;n{var q=new iJ;q=XK(q,1,T.brand);return XK(q,2,T.version)})); typeof M.mobile==="boolean"&&C$(Fy,2,n3(M.mobile));Ac=M.getHighEntropyValues(W)}const b=new Set(W);return Ac.then(T=>{const q=Fy.clone();b.has("platform")&&XK(q,3,T.platform);b.has("platformVersion")&&XK(q,4,T.platformVersion);b.has("architecture")&&XK(q,5,T.architecture);b.has("model")&&XK(q,6,T.model);b.has("uaFullVersion")&&XK(q,7,T.uaFullVersion);return q.Ba()}).catch(()=>Fy.Ba())}; zP=function(M){return VJ(M,1,1)}; P7=function(M,W){gN(M.Z,uJ,1,W);Wj(W,1)||zP(W);M.dF||(W=Sk(M),Mx(W,5)||XK(W,5,M.locale));M.uach&&(W=Sk(M),ex(W,Oj,9)||gN(W,Oj,9,M.uach))}; Sk=function(M){var W=ex(M.Z,uJ,1);W||(W=new uJ,P7(M,W));M=W;W=ex(M,ek,11);W||(W=new ek,gN(M,ek,11,W));return W}; IZS=function(M,W){M.V=W}; Hyt=function(M){const W=M.dF?void 0:Tr();W?ZyL(W,hc).then(b=>{M.uach=NPP(b??"[]");b=Sk(M);gN(b,Oj,9,M.uach);return!0}).catch(()=>!1):Promise.resolve(!1)}; g.di=function(M,W,b,T){this.A=M;this.S=W;this.Z=this.B=M;this.C=b||0;this.W=T||2}; g.og=function(M){M.Z=Math.min(M.S,M.Z*M.W);M.B=Math.min(M.S,M.Z+(M.C?Math.round(M.C*(Math.random()-.5)*2*M.Z):0));M.V++}; c7=function(){return"https://play.google.com/log?format=json&hasfast=true"}; fZS=function(M,W){if(!M.BY)return()=>{}; const b=()=>{M.flush()}; return W?()=>{W().then(b)}:b}; Q1=function(M){M.B.isFinal=!0;M.flush();M.B.isFinal=!1}; gi=function(M){M.D||(M.D=c7());try{return(new URL(M.D)).toString()}catch(W){return(new URL(M.D,Tr().location.origin)).toString()}}; rYG=function(M){Rhg(M,(W,b)=>{W=new URL(W);W.searchParams.set("format","json");let T=!1;try{T=Tr().navigator.sendBeacon(W.toString(),b.Ba())}catch{}T||(M.X=!1);return T})}; x$y=function(M,W,b=null,T=M.withCredentials){const q={},X=new URL(gi(M));b&&(q.Authorization=b);M.sessionIndex&&(q["X-Goog-AuthUser"]=M.sessionIndex,X.searchParams.set("authuser",M.sessionIndex));M.pageId&&(Object.defineProperty(q,"X-Goog-PageId",{value:M.pageId}),X.searchParams.set("pageId",M.pageId));return{url:X.toString(),body:W,y6:1,requestHeaders:q,requestType:"POST",withCredentials:T,timeoutMillis:M.timeoutMillis}}; Rhg=function(M,W){if(M.Z.length!==0){var b=new URL(gi(M));b.searchParams.delete("format");var T=M.Oz();T&&b.searchParams.set("auth",T);b.searchParams.set("authuser",M.sessionIndex||"0");for(T=0;T<10&&M.Z.length;++T){const q=M.Z.slice(0,32),X=M.B.build(q,M.A,M.C,M.Pf,M.O,M.gK);if(!W(b.toString(),X)){++M.C;break}M.A=0;M.C=0;M.O=0;M.gK=0;M.Z=M.Z.slice(q.length)}M.V.enabled&&M.V.stop()}}; FUp=function(M,W){M.buildLabel=W;return M}; hhS=function(M){M.network=new iya;return M}; AYQ=function(M,W){M.Z=W}; zhL=function(M){M.V=!0;return M}; m$L=function(M){return M.fields.map(W=>W.fieldType)}; kQ=function(M,...W){W=sj(W);return M.Z.has(W)?M.Z.get(W):void 0}; vUl=function(M){return M.fields.map(W=>W.fieldName)}; sj=function(...M){return M?M.join(","):"key"}; g.wi=function(M,W){this.type=M;this.currentTarget=this.target=W;this.defaultPrevented=this.V=!1}; pN=function(M,W){g.wi.call(this,M?M.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.Z=null;M&&this.init(M,W)}; $S=function(M){return!(!M||!M[YQ])}; Sag=function(M,W,b,T,q){this.listener=M;this.proxy=null;this.src=W;this.type=b;this.capture=!!T;this.handler=q;this.key=++uAt;this.removed=this.Hl=!1}; MB=function(M){M.removed=!0;M.listener=null;M.proxy=null;M.src=null;M.handler=null}; Ws=function(M){this.src=M;this.listeners={};this.Z=0}; g.bU=function(M,W){const b=W.type;b in M.listeners&&g.X9(M.listeners[b],W)&&(MB(W),M.listeners[b].length==0&&(delete M.listeners[b],M.Z--))}; Tj=function(M,W,b,T){for(let q=0;q1)));G=G.next)q||(X=G);q&&(b.Z==0&&T==1?zj(b,W):(X?(T=X,T.next==b.A&&(b.A=T),T.next=T.next.next):uU(b),Sq(b,q,3,W)))}M.B=null}else tq(M,3,W)}; iU=function(M,W){M.V||M.Z!=2&&M.Z!=3||Oo(M);M.A?M.A.next=W:M.V=W;M.A=W}; eq=function(M,W,b,T){const q=Hs(null,null,null);q.Z=new g.Zm(function(X,G){q.B=W?function(V){try{const J=W.call(T,V);X(J)}catch(J){G(J)}}:X; q.V=b?function(V){try{const J=b.call(T,V);J===void 0&&V instanceof Ps?G(V):X(J)}catch(J){G(J)}}:G}); q.Z.B=M;iU(M,q);return q.Z}; tq=function(M,W,b){M.Z==0&&(M===b&&(W=3,b=new TypeError("Promise cannot resolve to itself")),M.Z=1,rA(b,M.WK,M.z$,M)||(M.W=b,M.Z=W,M.B=null,Oo(M),W!=3||b instanceof Ps||cYa(M,b)))}; rA=function(M,W,b,T){if(M instanceof g.Zm)return hq(M,W,b,T),!0;if(M)try{var q=!!M.$goog_Thenable}catch(X){q=!1}else q=!1;if(q)return M.then(W,b,T),!0;if(g.lQ(M))try{const X=M.then;if(typeof X==="function")return QLL(M,X,W,b,T),!0}catch(X){return b.call(T,X),!0}return!1}; TeS=function(M,W,b,T,q,X){const G=b.DRIFT_FROM_HEAD_MS&&!Number.isNaN(b.DRIFT_FROM_HEAD_MS)?Math.trunc(b.DRIFT_FROM_HEAD_MS):0;var V=gUG.exec(W);V=V!=null&&V.length>=2?V[1]:"";const J=sLS.test(W);var B=wtS.exec(W);B=B!=null&&B.length>=2?B[1]:"";var D=ptP.exec(W);D=D!=null&&D.length>=2&&!Number.isNaN(Number(D[1]))?Number(D[1]):1;var a=Yat.exec(W);a=a!=null&&a.length>=2?a[1]:"0";const E=dA(M.player.G().l3);var n=M.player.getVideoData({playerType:1});const C=g.ok(n.O,!0),l="BISCOTTI_ID"in b?b.BISCOTTI_ID: "";$PG(M,C,W,l.toString(),M.player.G(),n);n={splay:!1,lactMilliseconds:b.LACT.toString(),playerHeightPixels:Math.trunc(b.P_H),playerWidthPixels:Math.trunc(b.P_W),vis:Math.trunc(b.VIS),signatureTimestamp:20500,autonavState:cs(M.player.G())};M.player.j("embeds_enable_encrypted_host_flags_enforcement")&&(n.encryptedHostFlags=M.player.G().getWebPlayerContextConfig()?.encryptedHostFlags);T&&(T={},MUa(T,b.YT_REMOTE)&&(n.mdxContext=T));if(T=WRQ.includes(E)?void 0:g.Ql("PREF")){var N=T.split(RegExp("[:&]")); for(let f=0,x=N.length;f1&&R[1].toUpperCase()==="TRUE"){C.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in gA){T=T.split(RegExp("[:&]"));R=gA.FLAG_AUTO_CAPTIONS_DEFAULT_ON;N="f"+(1+Math.floor(R/31)).toString();R=1<=2?W[1]:"")&&B&&(C.user.credentialTransferTokens=[{token:W,scope:"VIDEO"}]);W={contentPlaybackContext:n};V={adBlock:Math.trunc(b.AD_BLOCK),params:V,breakIndex:D,breakPositionMs:a,clientPlaybackNonce:b.CPN,topLevelDomain:E,isProxyAdTagRequest:J,context:C,adSignalsInfoString:so(wA(l.toString())),overridePlaybackContext:W};q!==void 0&&(V.cueProcessedMs=Math.round(q).toString());X&&(V.cuepointId=X);B&&(V.videoId=B);b.LIVE_TARGETING_CONTEXT&&(V.liveTargetingParams=b.LIVE_TARGETING_CONTEXT); b.AD_BREAK_LENGTH&&(V.breakLengthMs=Math.trunc(b.AD_BREAK_LENGTH*1E3).toString());G&&(V.driftFromHeadMs=G.toString());V.currentMediaTimeMs=Math.round(M.player.getCurrentTime({playerType:1})*1E3);(M=M.player.getGetAdBreakContext())&&(V.getAdBreakContext=M);return V}; QLL=function(M,W,b,T,q){function X(J){V||(V=!0,T.call(q,J))} function G(J){V||(V=!0,b.call(q,J))} let V=!1;try{W.call(M,G,X)}catch(J){X(J)}}; Oo=function(M){M.C||(M.C=!0,g.xS(M.MF,M))}; uU=function(M){let W=null;M.V&&(W=M.V,M.V=W.next,W.next=null);M.V||(M.A=null);return W}; Sq=function(M,W,b,T){if(b==3&&W.V&&!W.A)for(;M&&M.S;M=M.B)M.S=!1;if(W.Z)W.Z.B=null,pG(W,b,T);else try{W.A?W.B.call(W.context):pG(W,b,T)}catch(q){YS.call(null,q)}NB.put(W)}; pG=function(M,W,b){W==2?M.B.call(M.context,b):M.V&&M.V.call(M.context,b)}; cYa=function(M,W){M.S=!0;g.xS(function(){M.S&&YS.call(null,W)})}; Ps=function(M){AL.call(this,M)}; g.$N=function(M,W){g.Uo.call(this);this.nT=M||1;this.Yl=W||g.yp;this.iW=(0,g.IJ)(this.Mk,this);this.EV=g.Hy()}; g.MO=function(M,W,b){if(typeof M==="function")b&&(M=(0,g.IJ)(M,b));else if(M&&typeof M.handleEvent=="function")M=(0,g.IJ)(M.handleEvent,M);else throw Error("Invalid listener argument");return Number(W)>2147483647?-1:g.yp.setTimeout(M,W||0)}; WD=function(M,W){let b=null;return(new g.Zm(function(T,q){b=g.MO(function(){T(W)},M); b==-1&&q(Error("Failed to schedule timer."))})).JD(function(T){g.yp.clearTimeout(b); throw T;})}; TA=function(M,W,...b){M.V.has(W)||M.V.set(W,new bN(W,b))}; g.Xp=function(M,W,...b){M.V.has(W)||M.V.set(W,new qO(W,b))}; g.JJ=function(M,W,...b){g.j1(M,W,1,b)}; BD=function(M){M.Z.enabled||M.Z.start();M.S++;M.S>=M.B&&M.A()}; qSq=function(M){for(let W=0;W2?M.Z.statusText:""}catch(b){W=""}M.A=W+" ["+M.getStatus()+"]";lN(M)}}finally{tJ(M)}}}; tJ=function(M,W){if(M.Z){M.C&&(clearTimeout(M.C),M.C=null);const b=M.Z;M.Z=null;W||M.dispatchEvent("ready");try{b.onreadystatechange=null}catch(T){}}}; HD=function(M){var W=M.getStatus();a:switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(W=W===0)M=g.pD(String(M.D))[1]||null,!M&&g.yp.self&&g.yp.self.location&&(M=g.yp.self.location.protocol.slice(0,-1)),W=!JWa.test(M?M.toLowerCase():"");b=W}return b}; g.NO=function(M){return M.Z?M.Z.readyState:0}; g.Ri=function(M){try{return M.Z?M.Z.responseText:""}catch(W){return""}}; g.ru=function(M){try{if(!M.Z)return null;if("response"in M.Z)return M.Z.response;switch(M.sY){case "":case "text":return M.Z.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in M.Z)return M.Z.mozResponseArrayBuffer}return null}catch(W){return null}}; g.xN=function(M){const W={};M=(M.Z&&g.NO(M)>=2?M.Z.getAllResponseHeaders()||"":"").split("\r\n");for(let T=0;T{setTimeout(()=>{try{X.A()}finally{q.dispose()}})}); X.B=1E5;X.flushInterval=3E4;X.Z.setInterval(3E4);return X}; Etp=function(M){if(M.timer===void 0){const W=Math.max(0,M.Z+M.V-iN());M.timer=setTimeout(()=>{try{M.callback()}finally{M.Z=iN(),M.timer=void 0}},W)}}; yWg=function(M,W=[]){return new ntP(M,W)}; iN=function(){return globalThis.performance?.now?.()??Date.now()}; S1=function(M,W){if(M.disable)return new uN;W=W?Ej(W):[];return yWg({uy:M.uy,BN:M.fY,Re:M.PB,OC:M.OC,PU:M.PU,Op:M.Op},W)}; UPy=function(M){if(!M)return null;M=TJ(M,4);return M===null||M===void 0?null:RB(M)}; PD=function(){O0.instance||(O0.instance=new O0);return O0.instance}; Cqs=function(M,W,b,T){if(!W&&!b)return Promise.resolve();if(!T)return e1(W,b);let q;(q=M.V)[T]||(q[T]=new Promise((X,G)=>{e1(W,b).then(()=>{M.Z=T;X()},V=>{delete M.V[T]; G(V)})})); return M.V[T]}; cD=function(M,W){return Cqs(M,ex(W,du,1,Y4),ex(W,oi,2,Y4),Mx(W,3,void 0,Y4))}; e1=function(M,W){return W?kry(W):M?KRJ(M):Promise.resolve()}; kry=function(M){return new Promise((W,b)=>{const T=g.Gr("SCRIPT"),q=UPy(M);g.Yp(T,q);T.onload=()=>{g.a5(T);W()}; T.onerror=()=>{g.a5(T);b(Error("EWLS"))}; (g.QT("HEAD")[0]||document.documentElement).appendChild(T)})}; KRJ=function(M){return new Promise(W=>{const b=g.Gr("SCRIPT");if(M){var T=TJ(M,6);T=T===null||T===void 0?null:sY(T)}else T=null;b.textContent=wH(T);pZ(b);(g.QT("HEAD")[0]||document.documentElement).appendChild(b);g.a5(b);W()})}; vtJ=function(M,W){return GJ(M,1,W)}; mPP=function(M,W){return GJ(M,2,W)}; LRP=function(M,W){return GJ(M,3,W)}; s0=async function(M,W,b,T,q){W=LRP(mPP(vtJ(new Qs,M.requestKey),W),b);b=M.Z();M=await T.S("c",M.requestKey,q,M.client.create(W,b));const X=Oy(IE(M,2));if(X.length)return hJ(T,()=>{var G=new Uint8Array(X.length);for(var V=0;VPromise.resolve("E:CTO"))}catch(D){V="E:UCE"}}let J; const B=new g.di(G?X.Pt:X.pY,X.lB,X.Im,X.Ax);for(let D=1;D<=X.maxAttempts;D++){if(D!==1){Mt(M,0);M.Z=new bE(B.getValue(),X.b0,X.oF);const a=await M.Z.promise;M.Z=void 0;a===1?(D=1,B.reset()):g.og(B)}try{let a;b?a=b:(Mt(M,5),a=await Wc(ZrL(W,M.logger,D,T.Z,V),X.Ht,()=>Promise.reject(Error("RGF:Fetch timed out")))); Mt(M,3);await Wc(cD(T,a),X.UK,()=>Promise.reject(Error("DTZ:Script timed out"))); Mt(M,8);await q;const E=new TR({challenge:a,XG:M.options.XG,gP:M.options.gP});await Wc(E.cI,X.ue,()=>Promise.reject(Error("QEG:Setup timed out"))); J=E;break}catch(a){M.handleError(a),qt(M)}}if(M.ST())break;J&&(b=void 0,I3G(M,G),G=J,NeP(M,J),qt(M));Mt(M,2);M.Z=new bE(X.C2,X.b0,X.oF);M.isPaused&&M.Z.pause();await M.Z.promise;M.Z=void 0;if(M.ST())break}G?.dispose()}; f3q=function(M){M.W=Error("Cancelled by dispose");M.S.resolve();nN(M.C.promise);M.C.reject(Error("Cancelled by dispose"));M.logger.dispose();Promise.all(M.A).then(async()=>{M.B?.dispose();M.B=void 0}); M.A=[];M.Z?.V();nN(M.V.promise);M.V.reject(Error("Cancelled by dispose"))}; RBS=async function(M){if(M.ST())throw Error("Already disposed");M.Z?.V();await M.V.promise}; rWL=function(M,W){const b=M.fm;M.fm=()=>{b();W()}}; NeP=function(M,W){M.ST()||(M.B=W,M.logger.update(W.zG()),M.S.resolve(),M.C.resolve(void 0),M.fm())}; I3G=function(M,W){W&&(Promise.all(M.A).then(()=>void W.dispose()),M.A=[])}; Mt=function(M,W){M.D=W;M.options.KgV?.(W)}; qt=function(M){M.ST()||(M.V.resolve(),M.V=new g.XC)}; Wc=function(M,W,b){let T;const q=new Promise(X=>{T=setTimeout(X,W)}); return Promise.race([M.finally(()=>void clearTimeout(T)), q.then(b)])}; xPP=function(M,W){M.endTimeMs=Date.now()+W;M.tick()}; jm=function(M){M.Z&&(clearTimeout(M.Z),M.Z=null)}; GR=function(M,W){try{return globalThis.sessionStorage.setItem(M,W),!0}catch(b){return!1}}; V0=function(M,W=0,b=M.length,T){let q=0;for(T&&(q=V0(T));W>1,JH),V0(M,M.length>>1)];return W.toString(16)+b.toString(16)}; DF=function(M,W){var b=[V0(W,0,W.length>>1,void 0),V0(W,W.length>>1)];M=new Uint32Array(M.buffer);W=M[0];const [T,q]=b;for(b=1;b>>8|G<<24,G+=X|0,G^=V+38293,X=X<<3|X>>>29,X^=G,J=J>>>8|J<<24,J+=V|0,J^=B+38293,V=V<<3|V>>>29,V^=J;X=[X,G];M[b]^=X[0];b+1void globalThis.sessionStorage.removeItem(B))?GR(W,g.Id(G))?"s":"t":"i"}; hBL=function(M,W){var b=globalThis.sessionStorage.getItem(M);if(!b)return["m"];let T;try{T=Rd(b),DF(T,W)}catch(q){return globalThis.sessionStorage.removeItem(M),["c"]}for(W=4;W<7&&T[W]===0;)W++;for(b=0;b=b?(globalThis.sessionStorage.removeItem(M),["e"]):["a",new Uint8Array(T.buffer,W+4)]}; AWs=function(M){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!W)return new aX(M);var b=W.split(",");if(b.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new aX(M);W=b.slice(1);W.length===1&&W[0]===""&&(W=[]);b=Number(b[0]);return isNaN(b)||b<0||b>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new aX(M)):new aX(M,b,W)}; SSs=function(M){function W(){b-=T;b-=q;b^=q>>>13;T-=q;T-=b;T^=b<<8;q-=b;q-=T;q^=T>>>13;b-=T;b-=q;b^=q>>>12;T-=q;T-=b;T^=b<<16;q-=b;q-=T;q^=T>>>5;b-=T;b-=q;b^=q>>>3;T-=q;T-=b;T^=b<<10;q-=b;q-=T;q^=T>>>15} M=zBt(M);let b=2654435769,T=2654435769,q=314159265;const X=M.length;let G=X,V=0;for(;G>=12;G-=12,V+=12)b+=EW(M,V),T+=EW(M,V+4),q+=EW(M,V+8),W();q+=X;switch(G){case 11:q+=M[V+10]<<24;case 10:q+=M[V+9]<<16;case 9:q+=M[V+8]<<8;case 8:T+=M[V+7]<<24;case 7:T+=M[V+6]<<16;case 6:T+=M[V+5]<<8;case 5:T+=M[V+4];case 4:b+=M[V+3]<<24;case 3:b+=M[V+2]<<16;case 2:b+=M[V+1]<<8;case 1:b+=M[V+0]}W();return u$G.toString(q)}; zBt=function(M){const W=[];for(let b=0;b{M.A.resolve()},W); M.addOnDisposeCallback(()=>void clearTimeout(b))}; UW=function(M,W){var b=`${W(M.error.message)}:${W(M.error.stack)}`.substring(0,2048);W=b.length+1;b=y0(b);const T=new Uint8Array(4+b.length);T.set([42,W&127|128,W>>7,M.error.code]);T.set(b,4);return T}; y0=function(M){return globalThis.TextEncoder?(new TextEncoder).encode(M):g.l2(M)}; OrQ=function(M,W,b){return M instanceof $d?YN(M,b,W,1):M.RX(b)}; vc=async function(M){let W=void 0;M.S++;const b=new g.XC;M.Rc instanceof CI&&M.Rc.A.push(b.promise);if(M.BZ){const X=new g.XC;setTimeout(()=>void X.resolve()); await X.promise}const T=M.logger.share();try{M.state=5;const X=[],G=await Wc(M.Rc.snapshot({uG:{},ye:X}),M.EH.vK,()=>Promise.reject(new Do(15,"MDA:Timeout"))); kd(M,"MDA:Disposed");const V=X[0];M.state=6;const J=await Wc(OrQ(M.q3,T,G),M.EH.mO,()=>Promise.reject(new Do(10,"BWB:Timeout"))); kd(M,"BWB:Disposed");M.state=7;W=hJ(T,()=>{const B=Pqs(M,J,b,V);B.A.promise.then(()=>void M.C()); return B},"i")}catch(X){W?.dispose(); if(!M.V){const G=eBt(M,X);b.resolve();var q;if(q=M.Rc instanceof CI&&M.S<2)a:if(X instanceof Do)q=X.code!==32&&X.code!==20&&X.code!==10;else{if(X instanceof KI)switch(X.code){case 2:case 13:case 14:case 4:break;default:q=!1;break a}q=!0}if(q){const V=setTimeout(()=>void M.C(),(1+Math.random()*.25)*(M.Z?6E4:1E3)); M.addOnDisposeCallback(()=>void clearTimeout(V)); return}M.V=G}T.LT(M.Z?13:14);M.A.reject(M.V);return}finally{T.dispose()}M.state=8;M.S=0;M.Z?.dispose();M.Z=W;M.A.resolve()}; eBt=function(M,W){if(!(W instanceof Do))if(W instanceof KI){const b=Error(W.toString());b.stack=W.stack;W=new Do(11,"EBH:Error",b)}else W=new Do(12,"BSO:Unknown",W);return M.reportError(W)}; kd=function(M,W){if(M.ST())throw new Do(M.Z?20:32,W);}; Pqs=function(M,W,b,T){const q=(vb(n$(W,2))??0)*1E3;if(q<=0)throw new Do(31,"TTM:Invalid");if(Mx(W,4))return new dPQ(M.logger,Mx(W,4),q);if(!(vb(n$(W,3))??0))return new ott(M.logger,Oy(IE(W,1)),q);if(!T)throw new Do(4,"PMD:Undefined");T=T(Oy(IE(W,1)));if(typeof T!=="function")throw new Do(16,"APF:Failed");M.W=Math.floor((Date.now()+q)/1E3);M=new mz(M.logger,T,vb(n$(W,3))??0,q);M.addOnDisposeCallback(()=>void b.resolve()); return M}; lE=function(M,W,b){try{if(M.ST())throw new Do(21,"BNT:disposed");if(!M.Z&&M.V)throw M.V;return cWp(M,W,b)??Q5G(M,W,b)??gtp(M,W,b)}catch(T){if(!W.iQ)throw LI(M,T);return s5t(M,b,T)}}; LI=function(M,W){W=W instanceof Do?W:new Do(5,"TVD:error",W);return M.reportError(W)}; cWp=function(M,W,b){return M.Z?.Xt(()=>tH(M,W),b,T=>{if(M.Z instanceof mz&&W.pH?.P0)try{M.cache?.Z(tH(M,W),T,W.pH.Vw,M.W-120)}catch(q){M.reportError(new Do(24,"ELX:write",q))}})}; Q5G=function(M,W,b){if(W.pH?.hP)try{const T=M.cache?.V(tH(M,W),W.pH.Vw);return T?b?hJ(M.logger,()=>g.Id(T,2),"a"):T:void 0}catch(T){M.reportError(new Do(23,"RXO:read",T))}}; gtp=function(M,W,b){const T={stack:[],error:void 0,hasError:!1};try{if(!W.SQ)throw new Do(29,"SDF:notready");return xP(T,new ZF(M.logger,0,M.state)).Xt(()=>tH(M,W),b)}catch(q){T.error=q,T.hasError=!0}finally{iQ(T)}}; s5t=function(M,W,b){const T={stack:[],error:void 0,hasError:!1};try{const q=LI(M,b);return xP(T,new w5L(M.logger,q)).Xt(()=>[],W)}catch(q){T.error=q,T.hasError=!0}finally{iQ(T)}}; tH=function(M,W){return W.OQ?W.OQ:W.uG?hJ(M.logger,()=>W.OQ=y0(W.uG),"c"):[]}; IX=function(){let M=0,W;return b=>{W||(W=new uN);const T=new ZF(W,M,1),q=T.Xt(()=>y0(b),!0); T.dispose();M++;return q}}; YSS=function(M,W={}){return new p5q(M,W)}; $Ig=function(M){M.C.M9("data",W=>{if("1"in W){var b=W["1"];let T;try{T=M.W(b)}catch(q){Nt(M,new KI(13,`Error when deserializing response data; error: ${q}, response: ${b}`))}T&&Hc(M,T)}if("2"in W)for(W=fI(M,W["2"]),b=0;b{RX(M,rj(M));for(let W=0;W{if(M.Z.length!==0){var W=M.xhr.V;W!==0||HD(M.xhr)||(W=6);var b=-1;switch(W){case 0:var T=2;break;case 7:T=10;break;case 8:T=4;break;case 6:b=M.xhr.getStatus();T=E0(b);break;default:T=14}RX(M,rj(M));W=Grl(W)+", error: "+M.xhr.getLastError();b!==-1&&(W+=`, http status code: ${b}`);Nt(M,new KI(T,W))}})}; Nt=function(M,W){for(let b=0;b{W[T]=b[T]}); return W}; Hc=function(M,W){for(let b=0;b{if(HD(M.xhr)){var T=g.Ri(M.xhr);if(W&&M.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");T=atob(T)}try{var q=M.W(T)}catch(G){Nt(M,xd(new KI(13,`Error when deserializing response data; error: ${G}, response: ${T}`),b));return}T=E0(M.xhr.getStatus());RX(M,rj(M));T===0?Hc(M,q):Nt(M,xd(new KI(T,"Xhr succeeded but the status code is not 200"),b))}else{T=g.Ri(M.xhr);let G;q=rj(M);if(T){var X= fI(M,T);T=X.code;G=X.details;X=X.metadata}else T=2,G=`Rpc failed due to xhr error. uri: ${String(M.xhr.D)}, error code: ${M.xhr.V}, error: ${M.xhr.getLastError()}`,X=q;RX(M,q);Nt(M,xd(new KI(T,G,X),b))}})}; FC=function(M,W){W=M.indexOf(W);W>-1&&M.splice(W,1)}; xd=function(M,W){W.stack&&(M.stack+="\n"+W.stack);return M}; g.iE=function(M){this.A=M.i$||null;this.B=M.p8||!1;this.V=void 0}; hH=function(M,W){g.Uo.call(this);this.Zs=M;this.C=W;this.S=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.X=new Headers;this.V=null;this.O="GET";this.gK="";this.Z=!1;this.W=this.B=this.A=null;this.D=new AbortController}; AH=function(M){M.B.read().then(M.gY.bind(M)).catch(M.kQ.bind(M))}; uE=function(M){M.readyState=4;M.A=null;M.B=null;M.W=null;zR(M)}; zR=function(M){M.onreadystatechange&&M.onreadystatechange.call(M)}; qyp=function(M){if(M.vc&&typeof M.vc=="function")return M.vc();if(typeof Map!=="undefined"&&M instanceof Map||typeof Set!=="undefined"&&M instanceof Set)return Array.from(M.values());if(typeof M==="string")return M.split("");if(g.mL(M)){const W=[],b=M.length;for(let T=0;T>4&15).toString(16)+(M&15).toString(16)}; Q0=function(M,W){this.V=this.Z=null;this.B=M||null;this.A=!!W}; pI=function(M){M.Z||(M.Z=new Map,M.V=0,M.B&&qN(M.B,function(W,b){M.add(GG(W),b)}))}; $c=function(M,W){pI(M);W=Yd(M,W);return M.Z.has(W)}; g.Mr=function(M,W,b){M.remove(W);b.length>0&&(M.B=null,M.Z.set(Yd(M,W),g.Vh(b)),M.V=M.V+b.length)}; Yd=function(M,W){W=String(W);M.A&&(W=W.toLowerCase());return W}; GNs=function(M,W){W&&!M.A&&(pI(M),M.B=null,M.Z.forEach(function(b,T){const q=T.toLowerCase();T!=q&&(this.remove(T),g.Mr(this,q,b))},M)); M.A=W}; g.Wp=function(M){let W="";g.NE(M,function(b,T){W+=T;W+=":";W+=b;W+="\r\n"}); return W}; g.bT=function(M,W,b){if(g.P$(b))return M;b=g.Wp(b);if(typeof M==="string")return BG(M,g.ju(W),b);g.sW(M,W,b);return M}; g.Tw=function(M){g.gz.call(this);this.V=M;this.Z={}}; qr=function(M,W,b,T,q,X){if(Array.isArray(b))for(let G=0;Gq=>T.intercept(q,b),M)}; E4S=function(M,W){return W.reduce((b,T)=>q=>T.intercept(q,b),M)}; n4t=function(M,W,b){const T=W.x8,q=W.getMetadata(),X=kc(M,!0);M=KY(M,q,X,b+T.getName());b=vp(X,T.V,!1);T5p(b,q["X-Goog-Encode-Response-If-Executable"]==="base64");W=T.Z(W.Hy);X.send(M,"POST",W);return b}; yhL=function(M,W,b,T,q,X={}){const G=W.substring(0,W.length-q.name.length),V=X?.signal;return E4S(J=>new Promise((B,D)=>{if(V?.aborted){const n=new KI(1,"Aborted");n.cause=V.reason;D(n)}else{var a={},E=n4t(M,J,G);E.M9("error",n=>void D(n)); E.M9("metadata",n=>{a=n}); E.M9("data",n=>{B(YSS(n,a))}); V&&V.addEventListener("abort",()=>{E.cancel();const n=new KI(1,"Aborted");n.cause=V.reason;D(n)})}}),M.aF).call(M,q.C(b,T)).then(J=>J.Gn)}; pS=function(M,W,b,T,q,X={}){return yhL(M,W,b,T,q,X)}; kc=function(M,W){W=M.Z&&!W;return M.Ao||W?new g.my(new g.iE({i$:M.Ao,p8:W})):new g.my}; KY=function(M,W,b,T){W["Content-Type"]="application/json+protobuf";W["X-User-Agent"]="grpc-web-javascript/0.1";const q=W.Authorization;if(q&&UIy.has(q.split(" ")[0])||M.withCredentials)b.W=!0;if(M.rH)T=g.bT(T,"$httpHeaders",W);else for(const X of Object.keys(W))b.headers.set(X,W[X]);return T}; vp=function(M,W,b){let T;b&&(M.isActive(),b=new C2l(M),T=new kNp(b));return new Kxt({xhr:M,xf:T},W)}; mV=function(){this.Z=new v4Q;this.V="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; LY=function(M){return M.Z.UY(mIS)}; lcG=function(M){if(g.Tp(g.JY(M)))return!1;if(M.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;let W;try{W=new g.Sm(M)}catch(b){return g.pt(lT,T=>M.search(T)>0)!=null}return W.C.match(Lxa)?!0:g.pt(lT,b=>M.match(b)!=null)!=null}; g.tf=function(M,W){return M.replace(t5a,function(b,T){try{let q=g.dV(W,T);if(q==null||q.toString()==null)return b;q=q.toString();if(q==""||!g.Tp(g.JY(q)))return encodeURIComponent(q).replace(/%2C/g,",")}catch(q){}return b})}; IcL=function(M){const W=M.h1;return dN(M,W,W[Q6]|0,Zna,2,1)}; HnG=function(M){var W;if((W=M[ZX])!=null)M=W;else{if(IP!==IP)throw Error();M=M[ZX]=N5J(M.Z)}return M}; fct=function(M){return M[Nr]??(M[Nr]=new Map(IcL(HnG(M)).map(W=>[W.getName(),g.Yy(W,2)])))}; fY=function(M){if(M.JP!==void 0){var W=Hp;Hp=!0;try{for(let b=M.JP;b!==void 0;b=b.xLp){const T=b.Ud0;T.nZ||(T.nZ=!0,fY(T),T.Ln?.(T))}}finally{Hp=W}}}; rhg=function(M,W){const b=Object.create(Rmp);b.value=M;W!==void 0&&(b.BG=W);M=()=>{if(Hp)throw Error("");return b.value}; M[RP]=b;return[M,T=>r9(b,T), T=>{r9(b,T(b.value))}]}; r9=function(M,W){M.BG(M.value,W)||(M.value=W,M.version++,xIy++,fY(M))}; xc=function(M,W=""){var b={};M=rhg(M,b.equals);b=b.debugName;M[0][RP].debugName=b&&W?`${b}__${W}`:b??W??"[signal]"}; Fxl=function(){var M=g.FO;iT.instance||(iT.instance=new iT(M));return iT.instance}; hf=function(M,W){return M.A?M.A:M.A=new Promise(async b=>{const T=window.AbortController?new window.AbortController:void 0,q=T?.signal;let X=!1;try{T&&(M.V=M.TV.N1(()=>{T.abort()},W||2E4)),await fetch("/generate_204",{method:"HEAD", signal:q}),X=!0}catch{X=!1}finally{M.A=void 0,M.V&&(M.TV.Oh(M.V),M.V=0),X!==M.Z&&(M.Z=X,M.Z?M.dispatchEvent("networkstatus-online"):M.dispatchEvent("networkstatus-offline")),b(X)}})}; inq=function(M){M.Z===-1&&(M.Z=M.data.reduce((W,b,T)=>W+(b?2**T:0),0)); return M.Z}; Af=function(M){M.setAttribute("role","link")}; uT=function(M,W){Array.isArray(W)&&(W=W.join(" "));W===""||W==void 0?(zw||(zw={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),W=zw,"label"in W?M.setAttribute("aria-label",W.label):M.removeAttribute("aria-label")):M.setAttribute("aria-label",W)}; SO=function(M){M=M.getAttribute("aria-label");return M==null||M==void 0?"":String(M)}; g.O9=function(M,W,b){g.gz.call(this);this.Z=null;this.A=!1;this.C=M;this.S=b;this.V=W||window;this.B=(0,g.IJ)(this.uD,this)}; Pp=function(M){M=M.V;return M.requestAnimationFrame||M.webkitRequestAnimationFrame||M.mozRequestAnimationFrame||M.oRequestAnimationFrame||M.msRequestAnimationFrame||null}; eO=function(M){M=M.V;return M.cancelAnimationFrame||M.cancelRequestAnimationFrame||M.webkitCancelRequestAnimationFrame||M.mozCancelRequestAnimationFrame||M.oCancelRequestAnimationFrame||M.msCancelRequestAnimationFrame||null}; g.d9=function(M,W,b){g.gz.call(this);this.Z=M;this.nT=W||0;this.V=b;this.B=(0,g.IJ)(this.nQ,this)}; g.oP=function(M){M.stop();M.nQ()}; cp=function(M){M.J5=g.MO(()=>{M.J5=null;M.Z&&!M.V&&(M.Z=!1,cp(M))},M.nT); const W=M.B;M.B=null;M.S.apply(null,W)}; QQ=function(M){return typeof M.className=="string"?M.className:M.getAttribute&&M.getAttribute("class")||""}; g9=function(M){return M.classList?M.classList:QQ(M).match(/\S+/g)||[]}; g.s9=function(M,W){typeof M.className=="string"?M.className=W:M.setAttribute&&M.setAttribute("class",W)}; g.w9=function(M,W){return M.classList?M.classList.contains(W):g.ME(g9(M),W)}; g.pY=function(M,W){if(M.classList)M.classList.add(W);else if(!g.w9(M,W)){const b=QQ(M);g.s9(M,b+(b.length>0?" "+W:W))}}; g.Yc=function(M,W){if(M.classList)Array.prototype.forEach.call(W,function(T){g.pY(M,T)}); else{var b={};Array.prototype.forEach.call(g9(M),function(T){b[T]=!0}); Array.prototype.forEach.call(W,function(T){b[T]=!0}); W="";for(const T in b)W+=W.length>0?" "+T:T;g.s9(M,W)}}; $9=function(M,W,b){if(M-8>=-83&&(M|5)>>4<1){W[53]>=-7&&(W[31]>=-3?(0,W[1])((0,W[38])(W[28],W[23]),W[new b(y[46])/1E3],W[15],W[49]):(0,W[1])((0,W[9])(W[49],W[82]),W[4],W[56],W[48]));W[32]!==7?(((0,W[37])(W[49]),W[78])(W[54],W[77]),((0,W[75])(W[18],W[15]),(0,W[41])(W[44],W[85]),W[7])(W[49],W[50])):((0,W[70])((0,W[41])(W[1],W[49]),W[72],(0,W[46])(W[18],W[25]),W[49],(0,W[80])(),W[83]),W[7])(W[49],W[5])!==(0,W[46])(W[18],W[48]);W[1]!=0?(0,W[38])((0,W[28])(W[4],W[77]),W[7],W[17],W[50]):((0,W[65])(W[68], W[39]),W[47])(W[17],W[66]);(((0,W[27])(W[17]),W[65])(W[18],W[59]),W[6])(W[18]);var T=[]}if((M|24)==M){for(var q=64,X=[];++q-X[y[6]]-32;)switch(q){case 58:q=96;continue;case 91:q=44;break;case 65:q=47;continue;case 46:q=153;case 123:q-=58;default:X[y[29]](String[y[22]](q))}T=X}if((M+3^14)>=M&&(M-3^29)1||M&&M.split(")"),null;if(M.indexOf("(")>0){if(/"|'/.test(M))return null;W=/([\-\w]+)\(/g;let b;for(;b=W.exec(M);)if(!(b[1].toLowerCase()in Ahp))return null}return M}; jD=function(M,W){M=g.yp[M];return M&&M.prototype?(W=Object.getOwnPropertyDescriptor(M.prototype,W))&&W.get||null:null}; GH=function(M){const W=g.yp.CSSStyleDeclaration;return W&&W.prototype&&W.prototype[M]||null}; Jt=function(M,W,b,T){if(M)return M.apply(W,T);if(g.V8&&document.documentMode<10){if(!W[b].call)throw Error("IE Clobbering detected");}else if(typeof W[b]!="function")throw Error("Clobbering detected");return W[b].apply(W,T)}; emL=function(M){if(!M)return"";const W=document.createElement("div").style;uYQ(M).forEach(function(b){const T=g.bq&&b in SyG?b:b.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");WX(T,"--")||WX(T,"var")||(b=Jt(Ont,M,M.getPropertyValue?"getPropertyValue":"getAttribute",[b])||"",b=zmG(b),b!=null&&Jt(P2t,W,W.setProperty?"setProperty":"setAttribute",[T,b]))}); return W.cssText||""}; uYQ=function(M){g.mL(M)?M=g.Vh(M):(M=g.h7(M),g.X9(M,"cssText"));return M}; g.Dj=function(M){var W;let b=W=0,T=!1;M=M.split(dIQ);for(let q=0;q.4?-1:1;return(W==0?null:W)==-1?"rtl":"ltr"}; g.y8=function(M){if(M instanceof aO||M instanceof E4||M instanceof nc)return M;if(typeof M.next=="function")return new aO(()=>M); if(typeof M[Symbol.iterator]=="function")return new aO(()=>M[Symbol.iterator]()); if(typeof M.aE=="function")return new aO(()=>M.aE()); throw Error("Not an iterator or iterable.");}; U4=function(M,W,b,T,q,X,G,V){this.Z=M;this.W=W;this.B=b;this.S=T;this.A=q;this.C=X;this.V=G;this.D=V}; Cc=function(M,W){if(W==0)return M.Z;if(W==1)return M.V;let b=rP(M.Z,M.B,W),T=rP(M.B,M.A,W);M=rP(M.A,M.V,W);b=rP(b,T,W);T=rP(T,M,W);return rP(b,T,W)}; k9=function(M,W){if(W==0)return M.W;if(W==1)return M.D;let b=rP(M.W,M.S,W),T=rP(M.S,M.C,W);M=rP(M.C,M.D,W);b=rP(b,T,W);T=rP(T,M,W);return rP(b,T,W)}; Kc=function(M,W){let b=(W-M.Z)/(M.V-M.Z);if(b<=0)return 0;if(b>=1)return 1;let T=0,q=1,X=0;for(var G=0;G<8;G++){X=Cc(M,b);const V=(Cc(M,b+1E-6)-X)/1E-6;if(Math.abs(X-W)<1E-6)return b;if(Math.abs(V)<1E-6)break;else X1E-6&&G<8;G++)X=0}; g.ls=function(M){g.gz.call(this);this.C=1;this.B=[];this.A=0;this.Z=[];this.V={};this.W=!!M}; sdL=function(M,W,b){g.xS(function(){M.apply(W,b)})}; g.tt=function(M){this.A6=M}; Zj=function(M){this.A6=M}; IO=function(M){this.data=M}; Nw=function(M){return M===void 0||M instanceof IO?M:new IO(M)}; HN=function(M){this.A6=M}; g.fc=function(M){const W=M.creation;M=M.expiration;return!!M&&Mg.Hy()}; g.RO=function(M){this.A6=M}; var w6t=function(M){return rk[y[0]](this,17,M)}; p6g=function(){}; x9=function(){}; FT=function(M){this.Z=M;this.V=null}; is=function(M){if(M.Z==null)throw Error("Storage mechanism: Storage unavailable");M.isAvailable()||mx(Error("Storage mechanism: Storage unavailable"))}; ht=function(){let M=null;try{M=g.yp.localStorage||null}catch(W){}FT.call(this,M)}; At=function(){let M=null;try{M=g.yp.sessionStorage||null}catch(W){}FT.call(this,M)}; zH=function(M,W){this.V=M;this.Z=W+"::"}; g.us=function(M){const W=new ht;return W.isAvailable()?M?new zH(W,M):W:null}; SD=function(M,W){this.Z=M;this.V=W}; O4=function(){}; PN=function(){let M=Error();M.name="SecurityError";throw M;}; eD=function(){return{get opener(){return null},get closed(){return!0},get location(){PN()},get document(){PN()},postMessage:function(){}, close:function(){}, focus:function(){}}}; oO=function(M){var W,b,T=M.length,q=0;for(W=0;W>>6:(X<65536?V[b++]=224|X>>>12:(V[b++]=240|X>>>18,V[b++]=128|X>>>12&63),V[b++]=128|X>>> 6&63),V[b++]=128|X&63);return V}; cN=function(M){for(var W=M.length;--W>=0;)M[W]=0}; Q8=function(M,W,b,T,q){this.B0=M;this.iB=W;this.SP=b;this.dQ=T;this.d2=q;this.B9=M&&M.length}; gk=function(M,W){this.Zx=M;this.aK=0;this.Us=W}; s4=function(M,W){M.Rq[M.pending++]=W&255;M.Rq[M.pending++]=W>>>8&255}; wk=function(M,W,b){M.ly>16-b?(M.IZ|=W<>16-M.ly,M.ly+=b-16):(M.IZ|=W<>>=1,b<<=1;while(--W>0);return b>>>1}; $i=function(M,W,b){var T=Array(16),q=0,X;for(X=1;X<=15;X++)T[X]=q=q+b[X-1]<<1;for(b=0;b<=W;b++)q=M[b*2+1],q!==0&&(M[b*2]=Y9(T[q]++,q))}; Ml=function(M){var W;for(W=0;W<286;W++)M.tX[W*2]=0;for(W=0;W<30;W++)M.uH[W*2]=0;for(W=0;W<19;W++)M.JR[W*2]=0;M.tX[512]=1;M.rF=M.X_=0;M.A2=M.matches=0}; WH=function(M){M.ly>8?s4(M,M.IZ):M.ly>0&&(M.Rq[M.pending++]=M.IZ);M.IZ=0;M.ly=0}; b5=function(M,W,b){WH(M);s4(M,b);s4(M,~b);dk.iO(M.Rq,M.window,W,b,M.pending);M.pending+=b}; TC=function(M,W,b,T){var q=W*2,X=b*2;return M[q]>>7)];pc(M,G,b);V=Jz[G];V!==0&&(q-=BH[G],wk(M,q,V))}}while(T>1;G>=1;G--)ql(M,b,G);J=X;do G=M.l$[1],M.l$[1]=M.l$[M.F8--],ql(M,b,1),T=M.l$[1],M.l$[--M.Pe]=G,M.l$[--M.Pe]=T,b[J*2]=b[G*2]+b[T*2],M.depth[J]=(M.depth[G]>=M.depth[T]?M.depth[G]:M.depth[T])+1,b[G*2+1]=b[T*2+1]=J,M.l$[1]=J++,ql(M,b,1);while(M.F8>= 2);M.l$[--M.Pe]=M.l$[1];G=W.Zx;J=W.aK;T=W.Us.B0;q=W.Us.B9;X=W.Us.iB;var B=W.Us.SP,D=W.Us.d2,a,E=0;for(a=0;a<=15;a++)M.Lr[a]=0;G[M.l$[M.Pe]*2+1]=0;for(W=M.Pe+1;W<573;W++){var n=M.l$[W];a=G[G[n*2+1]*2+1]+1;a>D&&(a=D,E++);G[n*2+1]=a;if(!(n>J)){M.Lr[a]++;var C=0;n>=B&&(C=X[n-B]);var l=G[n*2];M.rF+=l*(a+C);q&&(M.X_+=l*(T[n*2+1]+C))}}if(E!==0){do{for(a=D-1;M.Lr[a]===0;)a--;M.Lr[a]--;M.Lr[a+1]+=2;M.Lr[D]--;E-=2}while(E>0);for(a=D;a!==0;a--)for(n=M.Lr[a];n!==0;)T=M.l$[--W],T>J||(G[T*2+1]!==a&&(M.rF+=(a-G[T* 2+1])*G[T*2],G[T*2+1]=a),n--)}$i(b,V,M.Lr)}; Em=function(M,W,b){var T,q=-1,X=W[1],G=0,V=7,J=4;X===0&&(V=138,J=3);W[(b+1)*2+1]=65535;for(T=0;T<=b;T++){var B=X;X=W[(T+1)*2+1];++G>>=1)if(W&1&&M.tX[b*2]!==0)return 0;if(M.tX[18]!==0||M.tX[20]!==0||M.tX[26]!==0)return 1;for(b=32;b<256;b++)if(M.tX[b*2]!==0)return 1;return 0}; yH=function(M,W,b){M.Rq[M.P8+M.A2*2]=W>>>8&255;M.Rq[M.P8+M.A2*2+1]=W&255;M.Rq[M.bE+M.A2]=b&255;M.A2++;W===0?M.tX[b*2]++:(M.matches++,W--,M.tX[(X7[b]+256+1)*2]++,M.uH[(W<256?VH[W]:VH[256+(W>>>7)])*2]++);return M.A2===M.Y0-1}; C1=function(M,W){M.msg=Um[W];return W}; ki=function(M){for(var W=M.length;--W>=0;)M[W]=0}; K1=function(M){var W=M.state,b=W.pending;b>M.Yg&&(b=M.Yg);b!==0&&(dk.iO(M.output,W.Rq,W.Kf,b,M.qC),M.qC+=b,W.Kf+=b,M.ao+=b,M.Yg-=b,W.pending-=b,W.pending===0&&(W.Kf=0))}; l5=function(M,W){var b=M.Q3>=0?M.Q3:-1,T=M.AT-M.Q3,q=0;if(M.level>0){M.HF.Fw===2&&(M.HF.Fw=Yya(M));aw(M,M.fG);aw(M,M.bZ);Em(M,M.tX,M.fG.aK);Em(M,M.uH,M.bZ.aK);aw(M,M.S1);for(q=18;q>=3&&M.JR[vH[q]*2+1]===0;q--);M.rF+=3*(q+1)+5+5+4;var X=M.rF+3+7>>>3;var G=M.X_+3+7>>>3;G<=X&&(X=G)}else X=G=T+5;if(T+4<=X&&b!==-1)wk(M,W?1:0,3),b5(M,b,T);else if(M.strategy===4||G===X)wk(M,2+(W?1:0),3),Dy(M,m5,L1);else{wk(M,4+(W?1:0),3);b=M.fG.aK+1;T=M.bZ.aK+1;q+=1;wk(M,b-257,5);wk(M,T-1,5);wk(M,q-4,4);for(X=0;X>>8&255;M.Rq[M.pending++]=W&255}; Iw=function(M,W){var b=M.Bo,T=M.AT,q=M.Hi,X=M.CJ,G=M.AT>M.yp-262?M.AT-(M.yp-262):0,V=M.window,J=M.Ah,B=M.NO,D=M.AT+258,a=V[T+q-1],E=V[T+q];M.Hi>=M.UU&&(b>>=2);X>M.UB&&(X=M.UB);do{var n=W;if(V[n+q]===E&&V[n+q-1]===a&&V[n]===V[T]&&V[++n]===V[T+1]){T+=2;for(n++;V[++T]===V[++n]&&V[++T]===V[++n]&&V[++T]===V[++n]&&V[++T]===V[++n]&&V[++T]===V[++n]&&V[++T]===V[++n]&&V[++T]===V[++n]&&V[++T]===V[++n]&&Tq){M.FG=W;q=n;if(n>=X)break;a=V[T+q-1];E=V[T+q]}}}while((W=B[W&J])>G&&--b!== 0);return q<=M.UB?q:M.UB}; f1=function(M){var W=M.yp,b;do{var T=M.TA-M.UB-M.AT;if(M.AT>=W+(W-262)){dk.iO(M.window,M.window,W,W,0);M.FG-=W;M.AT-=W;M.Q3-=W;var q=b=M.OL;do{var X=M.head[--q];M.head[q]=X>=W?X-W:0}while(--b);q=b=W;do X=M.NO[--q],M.NO[q]=X>=W?X-W:0;while(--b);T+=W}if(M.HF.Pg===0)break;q=M.HF;b=M.window;X=M.AT+M.UB;var G=q.Pg;G>T&&(G=T);G===0?b=0:(q.Pg-=G,dk.iO(b,q.input,q.Fj,G,X),q.state.wrap===1?q.BF=Nl(q.BF,b,G,X):q.state.wrap===2&&(q.BF=HH(q.BF,b,G,X)),q.Fj+=G,q.G9+=G,b=G);M.UB+=b;if(M.UB+M.KK>=3)for(T=M.AT-M.KK, M.zN=M.window[T],M.zN=(M.zN<=3&&(M.zN=(M.zN<=3)if(b=yH(M,M.AT-M.FG,M.sO-3),M.UB-=M.sO,M.sO<=M.Vr&&M.UB>=3){M.sO--;do M.AT++,M.zN=(M.zN<=M&&(M-1|3)>3==1){var G=b[y[6]];W[y[55]](function(V,J,B){this[y[29]](B[J]=b[(b[y[12]](V)-b[y[12]](this[J])+J+G--)%b[y[6]]])},T[y[23]](y[5]))}return q}; xi=function(M,W){for(var b,T;;){if(M.UB<262){f1(M);if(M.UB<262&&W===0)return 1;if(M.UB===0)break}b=0;M.UB>=3&&(M.zN=(M.zN<4096)&&(M.sO=2));if(M.Hi>=3&&M.sO<=M.Hi){T=M.AT+M.UB-3;b=yH(M,M.AT-1-M.Ap,M.Hi-3);M.UB-=M.Hi-1;M.Hi-=2;do++M.AT<=T&&(M.zN=(M.zN<=3&&M.AT>0&&(T=M.AT-1,b=X[T],b===X[++T]&&b===X[++T]&&b===X[++T])){for(q=M.AT+258;b===X[++T]&&b===X[++T]&&b===X[++T]&&b===X[++T]&&b===X[++T]&&b===X[++T]&&b===X[++T]&&b===X[++T]&&TM.UB&&(M.sO=M.UB)}M.sO>=3?(b=yH(M,1,M.sO-3),M.UB-=M.sO,M.AT+=M.sO,M.sO=0):(b=yH(M,0,M.window[M.AT]),M.UB--,M.AT++);if(b&&(l5(M,!1),M.HF.Yg===0))return 1}M.KK=0;return W=== 4?(l5(M,!0),M.HF.Yg===0?3:4):M.A2&&(l5(M,!1),M.HF.Yg===0)?1:2}; MvL=function(M,W){for(var b;;){if(M.UB===0&&(f1(M),M.UB===0)){if(W===0)return 1;break}M.sO=0;b=yH(M,0,M.window[M.AT]);M.UB--;M.AT++;if(b&&(l5(M,!1),M.HF.Yg===0))return 1}M.KK=0;return W===4?(l5(M,!0),M.HF.Yg===0?3:4):M.A2&&(l5(M,!1),M.HF.Yg===0)?1:2}; F7=function(M,W,b,T,q){this.Qi=M;this.Zk=W;this.cB=b;this.g2=T;this.func=q}; W1L=function(){this.HF=null;this.status=0;this.Rq=null;this.wrap=this.pending=this.Kf=this.f4=0;this.yV=null;this.gM=0;this.method=8;this.De=-1;this.Ah=this.Vb=this.yp=0;this.window=null;this.TA=0;this.head=this.NO=null;this.CJ=this.UU=this.strategy=this.level=this.Vr=this.Bo=this.Hi=this.UB=this.FG=this.AT=this.e7=this.Ap=this.sO=this.Q3=this.EN=this.YL=this.Pw=this.OL=this.zN=0;this.tX=new dk.BH(1146);this.uH=new dk.BH(122);this.JR=new dk.BH(78);ki(this.tX);ki(this.uH);ki(this.JR);this.S1=this.bZ= this.fG=null;this.Lr=new dk.BH(16);this.l$=new dk.BH(573);ki(this.l$);this.Pe=this.F8=0;this.depth=new dk.BH(573);ki(this.depth);this.ly=this.IZ=this.KK=this.matches=this.X_=this.rF=this.P8=this.A2=this.Y0=this.bE=0}; b3g=function(M,W){if(!M||!M.state||W>5||W<0)return M?C1(M,-2):-2;var b=M.state;if(!M.output||!M.input&&M.Pg!==0||b.status===666&&W!==4)return C1(M,M.Yg===0?-5:-2);b.HF=M;var T=b.De;b.De=W;if(b.status===42)if(b.wrap===2)M.BF=0,tz(b,31),tz(b,139),tz(b,8),b.yV?(tz(b,(b.yV.text?1:0)+(b.yV.Xh?2:0)+(b.yV.extra?4:0)+(b.yV.name?8:0)+(b.yV.comment?16:0)),tz(b,b.yV.time&255),tz(b,b.yV.time>>8&255),tz(b,b.yV.time>>16&255),tz(b,b.yV.time>>24&255),tz(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),tz(b,b.yV.os& 255),b.yV.extra&&b.yV.extra.length&&(tz(b,b.yV.extra.length&255),tz(b,b.yV.extra.length>>8&255)),b.yV.Xh&&(M.BF=HH(M.BF,b.Rq,b.pending,0)),b.gM=0,b.status=69):(tz(b,0),tz(b,0),tz(b,0),tz(b,0),tz(b,0),tz(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),tz(b,3),b.status=113);else{var q=8+(b.Vb-8<<4)<<8;q|=(b.strategy>=2||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6;b.AT!==0&&(q|=32);b.status=113;Zy(b,q+(31-q%31));b.AT!==0&&(Zy(b,M.BF>>>16),Zy(b,M.BF&65535));M.BF=1}if(b.status===69)if(b.yV.extra){for(q= b.pending;b.gM<(b.yV.extra.length&65535)&&(b.pending!==b.f4||(b.yV.Xh&&b.pending>q&&(M.BF=HH(M.BF,b.Rq,b.pending-q,q)),K1(M),q=b.pending,b.pending!==b.f4));)tz(b,b.yV.extra[b.gM]&255),b.gM++;b.yV.Xh&&b.pending>q&&(M.BF=HH(M.BF,b.Rq,b.pending-q,q));b.gM===b.yV.extra.length&&(b.gM=0,b.status=73)}else b.status=73;if(b.status===73)if(b.yV.name){q=b.pending;do{if(b.pending===b.f4&&(b.yV.Xh&&b.pending>q&&(M.BF=HH(M.BF,b.Rq,b.pending-q,q)),K1(M),q=b.pending,b.pending===b.f4)){var X=1;break}X=b.gMq&&(M.BF=HH(M.BF,b.Rq,b.pending-q,q));X===0&&(b.gM=0,b.status=91)}else b.status=91;if(b.status===91)if(b.yV.comment){q=b.pending;do{if(b.pending===b.f4&&(b.yV.Xh&&b.pending>q&&(M.BF=HH(M.BF,b.Rq,b.pending-q,q)),K1(M),q=b.pending,b.pending===b.f4)){X=1;break}X=b.gMq&&(M.BF=HH(M.BF,b.Rq,b.pending-q,q));X===0&&(b.status=103)}else b.status= 103;b.status===103&&(b.yV.Xh?(b.pending+2>b.f4&&K1(M),b.pending+2<=b.f4&&(tz(b,M.BF&255),tz(b,M.BF>>8&255),M.BF=0,b.status=113)):b.status=113);if(b.pending!==0){if(K1(M),M.Yg===0)return b.De=-1,0}else if(M.Pg===0&&(W<<1)-(W>4?9:0)<=(T<<1)-(T>4?9:0)&&W!==4)return C1(M,-5);if(b.status===666&&M.Pg!==0)return C1(M,-5);if(M.Pg!==0||b.UB!==0||W!==0&&b.status!==666){T=b.strategy===2?MvL(b,W):b.strategy===3?$_g(b,W):i5[b.level].func(b,W);if(T===3||T===4)b.status=666;if(T===1||T===3)return M.Yg===0&&(b.De= -1),0;if(T===2&&(W===1?(wk(b,2,3),pc(b,256,m5),b.ly===16?(s4(b,b.IZ),b.IZ=0,b.ly=0):b.ly>=8&&(b.Rq[b.pending++]=b.IZ&255,b.IZ>>=8,b.ly-=8)):W!==5&&(wk(b,0,3),b5(b,0,0),W===3&&(ki(b.head),b.UB===0&&(b.AT=0,b.Q3=0,b.KK=0))),K1(M),M.Yg===0))return b.De=-1,0}if(W!==4)return 0;if(b.wrap<=0)return 1;b.wrap===2?(tz(b,M.BF&255),tz(b,M.BF>>8&255),tz(b,M.BF>>16&255),tz(b,M.BF>>24&255),tz(b,M.G9&255),tz(b,M.G9>>8&255),tz(b,M.G9>>16&255),tz(b,M.G9>>24&255)):(Zy(b,M.BF>>>16),Zy(b,M.BF&65535));K1(M);b.wrap>0&& (b.wrap=-b.wrap);return b.pending!==0?0:1}; Az=function(M,W){if((M<<2&8)<7&&(M|3)>>4>=0){hz(23,W);var b=g.RQ(W[y[17]],TvQ)}if(M-1<<2>=M&&(M-8^26)=M)throw W;return b}; zC=function(M){if(!(this instanceof zC))return new zC(M);M=this.options=dk.assign({level:-1,method:8,chunkSize:16384,lr:15,Tg:8,strategy:0,to:""},M||{});M.raw&&M.lr>0?M.lr=-M.lr:M.uL&&M.lr>0&&M.lr<16&&(M.lr+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.HF=new u5;this.HF.Yg=0;var W=this.HF;var b=M.level,T=M.method,q=M.lr,X=M.Tg,G=M.strategy;if(W){var V=1;b===-1&&(b=6);q<0?(V=0,q=-q):q>15&&(V=2,q-=16);if(X<1||X>9||T!==8||q<8||q>15||b<0||b>9||G<0||G>4)W=C1(W,-2);else{q===8&&(q=9);var J= new W1L;W.state=J;J.HF=W;J.wrap=V;J.yV=null;J.Vb=q;J.yp=1<>=7;X<30;X++)for(BH[X]=G<<7,q=0;q<1<=B.yp&&(W===0&&(ki(B.head),B.AT=0,B.Q3=0,B.KK=0),b=new dk.bM(B.yp),dk.iO(b,X,G-B.yp,B.yp,0),X=b,G=B.yp);b=M.Pg;T=M.Fj;q=M.input;M.Pg=G;M.Fj=0;M.input=X;for(f1(B);B.UB>=3;){X=B.AT;G=B.UB-2;do B.zN=(B.zN<W:M.length===1?M[0]:M.reduce((W,b)=>(...T)=>W(b(...T)))}; Xbs=function(){var M=[];return W=>(b,T)=>{b=W(b,T);let q=()=>{throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}; const X={getState:b.getState,dispatch:(G,...V)=>q(G,...V)}; T=M.map(G=>G(X)); q=cH(...T)(b.dispatch);return{...b,dispatch:q}}}; jFg=function(M){Object.keys(M).forEach(W=>{const b=M[W];if(typeof b(void 0,{type:QH})==="undefined")throw Error(`The slice reducer for key "${W}" returned undefined during initialization. `+"If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof b(void 0,{type:`@@redux/PROBE_UNKNOWN_ACTION${gD()}`})==="undefined")throw Error(`The slice reducer for key "${W}" returned undefined when probed with a random type. Don't try to handle '${QH}' or other actions in "redux/*" `+ "namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.");})}; sm=function(M,W,b){function T(){if(D)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return V} function q(E){if(typeof E!=="function")throw Error(`Expected the listener to be a function. Instead, received: '${typeof E}'`);if(D)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let n=!0;B===J&&(B=J.slice());B.push(E);return function(){if(n){if(D)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); n=!1;B===J&&(B=J.slice());B.splice(B.indexOf(E),1);J=null}}} function X(E){if(typeof E!=="object"||E===null)var n=!1;else{for(n=E;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);n=Object.getPrototypeOf(E)===n}if(!n)throw Error(`Actions must be plain objects. Instead, the actual type was: '${typeof E}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`); if(typeof E.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(D)throw Error("Reducers may not dispatch actions.");try{D=!0,V=G(V,E)}finally{D=!1}n=J=B;for(let C=0;C1?W[M[0]]=M[1]:M.length===1&&Object.assign(W,M[0])}; g.F=function(M,W){return M in qe?qe[M]:W}; j$=function(M){const W=qe.EXPERIMENT_FLAGS;return W?W[M]:void 0}; Vvt=function(M){Gk.forEach(W=>W(M))}; g.Je=function(M){return M&&window.yterr?function(){try{return M.apply(this,arguments)}catch(W){g.Vr(W)}}:M}; g.Vr=function(M){var W=g.Ct("yt.logging.errors.log");W?W(M,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=g.F("ERRORS",[]),W.push([M,"ERROR",void 0,void 0,void 0,void 0,void 0]),XV("ERRORS",W));Vvt(M)}; Be=function(M,W,b,T,q){var X=g.Ct("yt.logging.errors.log");X?X(M,"WARNING",W,b,T,void 0,q):(X=g.F("ERRORS",[]),X.push([M,"WARNING",W,b,T,void 0,q]),XV("ERRORS",X))}; EX=function(M,W){W=M.split(W);const b={};for(let X=0,G=W.length;X{const q=g.ju(T);g.Py(Array.isArray(b)?b:[b],X=>{X==""?W.push(q):W.push(`${q}=${g.ju(X)}`)})}); return W.join("&")}; ng=function(M){M.charAt(0)==="?"&&(M=M.substring(1));return EX(M,"&")}; yr=function(M){return M.split(",").map(W=>ng(W))}; g.UX=function(M){return M.indexOf("?")!==-1?(M=(M||"").split("#")[0],M=M.split("?",2),ng(M.length>1?M[1]:M[0])):{}}; k7=function(M,W){return Cg(M,W||{},!0)}; Kg=function(M,W){return Cg(M,W||{},!1)}; Cg=function(M,W,b){var T=M.split("#",2);M=T[0];T=T.length>1?"#"+T[1]:"";var q=M.split("?",2);M=q[0];q=ng(q[1]||"");for(const X in W)if(b||!g.z4(q,X))q[X]=W[X];return g.JM(M,q)+T}; ve=function(M){if(!W)var W=window.location.href;const b=g.pD(M)[1]||null,T=g.$F(M);b&&T?(M=g.pD(M),W=g.pD(W),M=M[3]==W[3]&&M[1]==W[1]&&M[4]==W[4]):M=T?g.$F(W)===T&&(Number(g.pD(W)[4]||null)||null)===(Number(g.pD(M)[4]||null)||null):!0;return M}; m0=function(M){M||(M=document.location.href);M=g.pD(M)[1]||null;return M!==null&&M==="https"}; lp=function(M){M=Lg(M);return M===null?!1:M[0]==="com"&&M[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; te=function(M){M=Lg(M);return M===null?!1:M[1]==="google"?!0:M[2]==="google"?M[0]==="au"&&M[1]==="com"?!0:M[0]==="uk"&&M[1]==="co"?!0:!1:!1}; Lg=function(M){M=g.$F(M);return M!==null?M.split(".").reverse():null}; aS=function(M){return M&&M.match(D_q)?M:GG(M)}; ZM=function(M){a:{let b;try{b=M.Z.top.location.href}catch(T){M=2;break a}M=b?b===M.V.location.href?0:1:2}M={dt:a$a,flash:"0",frm:M};try{M.u_tz=-(new Date).getTimezoneOffset();try{var W=Kr.history.length}catch(b){W=0}M.u_his=W;M.u_h=Kr.screen?.height;M.u_w=Kr.screen?.width;M.u_ah=Kr.screen?.availHeight;M.u_aw=Kr.screen?.availWidth;M.u_cd=Kr.screen?.colorDepth}catch(b){}return M}; wA=function(M=bp()){var W=IS,b=Object,T=b.assign,q=ZM(W);var X=W.Z;let G,V,J,B,D,a,E;try{var n=X.screenX;var C=X.screenY}catch(N){}try{var l=X.outerWidth;G=X.outerHeight}catch(N){}try{V=X.innerWidth,J=X.innerHeight}catch(N){}try{B=X.screenLeft,D=X.screenTop}catch(N){}try{V=X.innerWidth,J=X.innerHeight}catch(N){}try{a=X.screen.availWidth,E=X.screen.availTop}catch(N){}X=[B,D,n,C,a,E,l,G,V,J];n=I0(!1,W.Z.top);C=new ExL;"SVGElement"in g.yp&&"createElementNS"in g.yp.document&&C.set(0);l=jQS();l["allow-top-navigation-by-user-activation"]&& C.set(1);l["allow-popups-to-escape-sandbox"]&&C.set(2);g.yp.crypto&&g.yp.crypto.subtle&&C.set(3);"TextDecoder"in g.yp&&"TextEncoder"in g.yp&&C.set(4);C=inq(C);W=T.call(b,q,{bc:C,bih:n.height,biw:n.width,brdim:X.join(),vis:MI(W.V),wgl:!!Kr.WebGLRenderingContext});W.ca_type="image";M&&(W.bid=M);return W}; nxa=function(){if(!Ne)return null;const M=Ne();return"open"in M?M:null}; g.fg=function(M){switch(He(M)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; He=function(M){return M&&"status"in M?M.status:-1}; g.RS=function(M,W){typeof M==="function"&&(M=g.Je(M));return window.setTimeout(M,W)}; g.ra=function(M,W){typeof M==="function"&&(M=g.Je(M));return window.setInterval(M,W)}; g.x7=function(M){window.clearTimeout(M)}; g.FV=function(M){window.clearInterval(M)}; g.he=function(M){M=ip(M);return typeof M==="string"&&M==="false"?!1:!!M}; Ae=function(M,W){M=ip(M);return M===void 0&&W!==void 0?W:Number(M||0)}; zk=function(){return g.F("EXPERIMENTS_TOKEN","")}; ip=function(M){return g.F("EXPERIMENT_FLAGS",{})[M]}; up=function(){const M=[],W=g.F("EXPERIMENTS_FORCED_FLAGS",{});for(var b of Object.keys(W))M.push({key:b,value:String(W[b])});b=g.F("EXPERIMENT_FLAGS",{});for(const T of Object.keys(b))T.startsWith("force_")&&W[T]===void 0&&M.push({key:T,value:String(b[T])});return M}; S$=function(M,W,b="GET",T="",q,X,G,V=!1,J){const B=nxa();if(!B)return null;const D=()=>{(B&&"readyState"in B?B.readyState:0)===4&&W&&g.Je(W)(B)}; "onloadend"in B?B.addEventListener("loadend",D,!1):B.onreadystatechange=D;g.he("debug_forward_web_query_parameters")&&(M=y6y(M));B.open(b,M,!0);X&&(B.responseType=X);G&&(B.withCredentials=!0);b=b==="POST"&&(window.FormData===void 0||!(T instanceof FormData));if(q=U_Q(M,q))for(const a in q)B.setRequestHeader(a,q[a]),"content-type"===a.toLowerCase()&&(b=!1);b&&B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");J&&"onprogress"in B&&(B.onprogress=()=>{J(B.responseText)}); if(V&&"setAttributionReporting"in XMLHttpRequest.prototype){M={eventSourceEligible:!0,triggerEligible:!1};try{B.setAttributionReporting(M)}catch(a){Be(a)}}B.send(T);return B}; U_Q=function(M,W={}){const b=ve(M),T=g.F("INNERTUBE_CLIENT_NAME"),q=g.he("web_ajax_ignore_global_headers_if_set");for(const V in OX){let J=g.F(OX[V]);const B=V==="X-Goog-AuthUser"||V==="X-Goog-PageId";V!=="X-Goog-Visitor-Id"||J||(J=g.F("VISITOR_DATA"));var X;if(!(X=!J)){if(!(X=b||(g.$F(M)?!1:!0))){X=M;var G;if(G=g.he("add_auth_headers_to_remarketing_google_dot_com_ping")&&V==="Authorization"&&(T==="TVHTML5"||T==="TVHTML5_UNPLUGGED"||T==="TVHTML5_SIMPLY")&&te(X))X=MN(X)||"",X=X.split("/"),X="/"+(X.length> 1?X[1]:""),G=X==="/pagead";X=G?!0:!1}X=!X}X||q&&W[V]!==void 0||T==="TVHTML5_UNPLUGGED"&&B||(W[V]=J)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(b||!g.$F(M))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(b||!g.$F(M)){let V;try{V=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{}V&&(W["X-YouTube-Time-Zone"]=V)}document.location.hostname.endsWith("youtubeeducation.com")||!b&&g.$F(M)||(W["X-YouTube-Ad-Signals"]=so(wA()));return W}; e$=function(M,W){W.method="POST";W.postParams||(W.postParams={});return g.Pe(M,W)}; C8S=function(M,W){if(window.fetch&&W.format!=="XML"){var b={method:W.method||"GET",credentials:"same-origin"};W.headers&&(b.headers=W.headers);W.priority&&(b.priority=W.priority);M=da(M,W);var T=oS(M,W);T&&(b.body=T);W.withCredentials&&(b.credentials="include");var q=W.context||g.yp,X=!1,G;fetch(M,b).then(V=>{if(!X){X=!0;G&&g.x7(G);var J=V.ok,B=D=>{D=D||{};J?W.onSuccess&&W.onSuccess.call(q,D,V):W.onError&&W.onError.call(q,D,V);W.onFinish&&W.onFinish.call(q,D,V)}; (W.format||"JSON")==="JSON"&&(J||V.status>=400&&V.status<500)?V.json().then(B,()=>{B(null)}):B(null)}}).catch(()=>{W.onError&&W.onError.call(q,{},{})}); M=W.timeout||0;W.onFetchTimeout&&M>0&&(G=g.RS(()=>{X||(X=!0,g.x7(G),W.onFetchTimeout.call(W.context||g.yp))},M))}else g.Pe(M,W)}; g.Pe=function(M,W){const b=W.format||"JSON";M=da(M,W);var T=oS(M,W);let q=!1,X;const G=ksa(M,V=>{if(!q){q=!0;X&&g.x7(X);var J=g.fg(V),B=null,D=400<=V.status&&V.status<500,a=500<=V.status&&V.status<600;if(J||D||a)B=K1t(M,b,V,W.convertToSafeHtml);J&&(J=vxQ(b,V,B));B=B||{};D=W.context||g.yp;J?W.onSuccess&&W.onSuccess.call(D,V,B):W.onError&&W.onError.call(D,V,B);W.onFinish&&W.onFinish.call(D,V,B)}},W.method,T,W.headers,W.responseType,W.withCredentials,!1,W.onProgress); T=W.timeout||0;if(W.onTimeout&&T>0){const V=W.onTimeout;X=g.RS(()=>{q||(q=!0,G.abort(),g.x7(X),V.call(W.context||g.yp,G))},T)}return G}; da=function(M,W){W.includeDomain&&(M=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+M);const b=g.F("XSRF_FIELD_NAME");if(W=W.urlParams)W[b]&&delete W[b],M=k7(M,W);return M}; oS=function(M,W){const b=g.F("XSRF_FIELD_NAME"),T=g.F("XSRF_TOKEN");var q=W.postBody||"",X=W.postParams;const G=g.F("XSRF_FIELD_NAME");let V;W.headers&&(V=W.headers["Content-Type"]);W.excludeXsrf||g.$F(M)&&!W.withCredentials&&g.$F(M)!==document.location.hostname||W.method!=="POST"||V&&V!=="application/x-www-form-urlencoded"||W.postParams&&W.postParams[G]||(X||(X={}),X[b]=T);(g.he("ajax_parse_query_data_only_when_filled")&&X&&Object.keys(X).length>0||X)&&typeof q==="string"&&(q=ng(q),g.sr(q,X),q=W.postBodyFormat&& W.postBodyFormat==="JSON"?JSON.stringify(q):g.Vb(q));X=q||X&&!g.P$(X);!ce&&X&&W.method!=="POST"&&(ce=!0,g.Vr(Error("AJAX request with postData should use POST")));return q}; K1t=function(M,W,b,T){let q=null;switch(W){case "JSON":let X;try{X=b.responseText}catch(G){throw T=Error("Error reading responseText"),T.params=M,Be(T),G;}M=b.getResponseHeader("Content-Type")||"";X&&M.indexOf("json")>=0&&(X.substring(0,5)===")]}'\n"&&(X=X.substring(5)),q=JSON.parse(X));break;case "XML":if(M=(M=b.responseXML)?m_L(M):null)q={},g.Py(M.getElementsByTagName("*"),G=>{q[G.tagName]=L1S(G)})}T&&Qr(q); return q}; Qr=function(M){if(g.lQ(M))for(const W in M)W==="html_content"||br(W,"_html")?M[W]=dH(M[W]):Qr(M[W])}; vxQ=function(M,W,b){if(W&&W.status===204)return!0;switch(M){case "JSON":return!!b;case "XML":return Number(b&&b.return_code)===0;case "RAW":return!0;default:return!!b}}; m_L=function(M){return M?(M=("responseXML"in M?M.responseXML:M).getElementsByTagName("root"))&&M.length>0?M[0]:null:null}; L1S=function(M){let W="";g.Py(M.childNodes,b=>{W+=b.nodeValue}); return W}; y6y=function(M){var W=window.location.search,b=g.$F(M);g.he("debug_handle_relative_url_for_query_forward_killswitch")||!b&&ve(M)&&(b=document.location.hostname);var T=MN(M);T=(b=b&&(b.endsWith("youtube.com")||b.endsWith("youtube-nocookie.com")))&&T&&T.startsWith("/api/");if(!b||T)return M;const q=ng(W),X={};g.Py(l$t,G=>{q[G]&&(X[G]=q[G])}); return Kg(M,X)}; wa=function(M,W){const b=g.c$(W);let T;return(new g.Zm((q,X)=>{b.onSuccess=G=>{g.fg(G)?q(new tvL(G)):X(new sX(`Request failed, status=${He(G)}`,"net.badstatus",G))}; b.onError=G=>{X(new sX("Unknown request error","net.unknown",G))}; b.onTimeout=G=>{X(new sX("Request timed out","net.timeout",G))}; T=g.Pe(M,b)})).JD(q=>{q instanceof Ps&&T?.abort(); return Rk(q)})}; g.pg=function(M,W,b,T,q=-1,X){const G=J=>new g.Zm(B=>{setTimeout(B,J)}),V=(J,B,D)=>J.JD(a=>{if(B<=0||He(a.xhr)===403)return Rk(new sX("Request retried too many times","net.retryexhausted",a.xhr)); const E=Math.pow(2,b-B+1)*D,n=q>0?Math.min(q,E):E;return G(D).then(()=>{X&&X(a,B-1);return V(wa(M,W),B-1,n)})}); return V(wa(M,W),b-1,T)}; Z3L=function(M,W=null){M.B=2;M.V=W}; I$q=function(M,W=null){M.B=1;M.V=W}; $s=function(M=null){const W=new Y7;Z3L(W,M);return W}; MG=function(M=null){const W=new Y7;I$q(W,M);return W}; g.Td=function(M,W,b,T="youtube.com",q=!1){WV||bt.set(""+M,W,{DL:b,path:"/",domain:T,secure:q})}; g.Ql=function(M,W){if(!WV)return bt.get(""+M,W)}; g.qG=function(M,W="/",b="youtube.com"){WV||bt.remove(""+M,W,b)}; Xi=function(){if(!bt.isEnabled())return!1;if(!bt.isEmpty())return!0;bt.set("TESTCOOKIESENABLED","1",{DL:60});if(bt.get("TESTCOOKIESENABLED")!=="1")return!1;bt.remove("TESTCOOKIESENABLED");return!0}; g.z=function(M,W){if(M)return M[W.name]}; j9=function(M){const W=g.F("INNERTUBE_HOST_OVERRIDE");W&&(M=String(W)+String(bC(M)));return M}; Nvl=function(M){const W={};g.he("json_condensed_response")&&(W.prettyPrint="false");return M=Kg(M,W)}; Gd=function(M,W="POST"){M={method:W,mode:ve(M)?"same-origin":"cors",credentials:ve(M)?"same-origin":"include"};W={};const b={};for(const T of Object.keys(W))W[T]&&(b[T]=W[T]);Object.keys(b).length>0&&(M.headers=b);return M}; VD=function(M,W={}){return`${"service"}:${M}/${Object.keys(W).sort().map(b=>b+":"+W[b]).join("/")}`}; JA=function(){const M=/Chrome\/(\d+)/.exec(g.Vd());return M?parseFloat(M[1]):NaN}; BV=function(){var M=/\sCobalt\/(\S+)\s/.exec(g.Vd());if(!M)return NaN;const W=[];for(const b of M[1].split("."))M=parseInt(b,10),M>=0&&W.push(M);return parseFloat(W.join("."))}; a$=function(){return g.Df("android")&&g.Df("chrome")&&!(g.Df("trident/")||g.Df("edge/"))&&!g.Df("cobalt")}; g.EL=function(){return g.Df("cobalt")}; nU=function(){return g.Df("cobalt")&&g.Df("appletv")}; yD=function(){return g.Df("(ps3; leanback shell)")||g.Df("ps3")&&g.EL()}; H3J=function(){return g.Df("(ps4; leanback shell)")||g.Df("ps4")&&g.EL()}; g.f$G=function(){return g.EL()&&(g.Df("ps4 vr")||g.Df("ps4 pro vr"))}; UL=function(){const M=/WebKit\/([0-9]+)/.exec(g.Vd());return!!(M&&parseInt(M[1],10)>=600)}; CU=function(){const M=/WebKit\/([0-9]+)/.exec(g.Vd());return!!(M&&parseInt(M[1],10)>=602)}; REL=function(){return g.Df("iemobile")||g.Df("windows phone")&&g.Df("edge")}; vV=function(){return(ks||KU)&&g.Df("applewebkit")&&!g.Df("version")&&(!g.Df("safari")||g.Df("gsa/"))}; LU=function(){return g.mm&&g.Df("version/")}; lt=function(){return g.Df("smart-tv")&&g.Df("samsung")}; g.Df=function(M){const W=g.Vd();return W?W.toLowerCase().indexOf(M)>=0:!1}; tA=function(){return Rg()||vV()||LU()?!0:g.F("EOM_VISITOR_DATA")?!1:!0}; Zf=function(M,W){return W===void 0||W===null?M:W==="1"||W===!0||W===1||W==="True"?!0:!1}; I$=function(M,W,b){for(const T in b)if(b[T]==W)return b[T];return M}; NG=function(M,W){return W===void 0||W===null?M:Number(W)}; HV=function(M,W){return W===void 0||W===null?M:W.toString()}; fU=function(M,W){if(W){if(M==="fullwidth")return Infinity;if(M==="fullheight")return 0}return M&&(W=M.match(r6q))&&(M=Number(W[2]),W=Number(W[1]),!isNaN(M)&&!isNaN(W)&&M>0)?W/M:NaN}; R$=function(M){var W=M.docid||M.video_id||M.videoId||M.id;if(W)return W;W=M.raw_player_response;W||(M=M.player_response)&&(W=JSON.parse(M));return W&&W.videoDetails&&W.videoDetails.videoId||null}; x_J=function(M){return xs(M,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Fi=function(M){return M==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||M==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; xs=function(M,W=!1){W=W?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");let b=M.raw_embedded_player_response;if(!b&&(M=M.embedded_player_response))try{b=JSON.parse(M)}catch(T){return W}return b?I$(W,b.embeddedPlayerMode,F1q):W}; i3y=function(){if(g.he("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!tA())return Error("User has not consented - not fetching biscotti id.");const M=g.F("PLAYER_VARS",{});if(g.dV(M,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(x_J(M))return Error("Biscotti id fetching has been disabled for pfl.")}; uWG=function(){const M=i3y();if(M!==void 0)return Rk(M);hA||(hA=wa("//googleads.g.doubleclick.net/pagead/id",hEL).then(A6p).JD(W=>zES(2,W))); return hA}; A6p=function(M){M=M.xhr.responseText;if(!WX(M,")]}'"))throw new AA;M=JSON.parse(M.substr(4));if((M.type||1)>1)throw new AA;M=M.id;Tk(M);hA=MG(M);SUJ(18E5,2);return M}; zES=function(M,W){W=new O3g(W);Tk("");hA=$s(W);M>0&&SUJ(12E4,M-1);throw W;}; SUJ=function(M,W){g.RS(function(){wa("//googleads.g.doubleclick.net/pagead/id",hEL).then(A6p,b=>zES(W,b)).JD(g.lq)},M)}; P8q=function(){try{const M=g.Ct("yt.ads.biscotti.getId_");return M?M():uWG()}catch(M){return Rk(M)}}; d_g=function(M){M&&(M.dataset?M.dataset[eEa()]="true":Ilp(M))}; oxs=function(M){return M?M.dataset?M.dataset[eEa()]:M.getAttribute("data-loaded"):null}; eEa=function(){return c6y.loaded||(c6y.loaded="loaded".replace(/\-([a-z])/g,(M,W)=>W.toUpperCase()))}; QFq=function(){var M=document;if("visibilityState"in M)return M.visibilityState;const W=zd+"VisibilityState";if(W in M)return M[W]}; ut=function(M,W){let b;gG(M,T=>{b=W[T];return!!b}); return b}; S9=function(M){if(M.requestFullscreen)M=M.requestFullscreen(void 0);else if(M.webkitRequestFullscreen)M=M.webkitRequestFullscreen();else if(M.mozRequestFullScreen)M=M.mozRequestFullScreen();else if(M.msRequestFullscreen)M=M.msRequestFullscreen();else if(M.webkitEnterFullscreen)M=M.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return M instanceof Promise?M:Promise.resolve()}; e9=function(M){var W;g.OL()?PV()==M&&(W=document):W=M;return W&&(M=ut(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))?(W=M.call(W),W instanceof Promise?W:Promise.resolve()):Promise.resolve()}; gxt=function(M){return g.pt(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],W=>`on${W.toLowerCase()}`in M)}; sFg=function(){var M=document;return g.pt(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],W=>`on${W.toLowerCase()}`in M)}; g.OL=function(){return!!ut(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; PV=function(M=!1){let W=ut(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(M)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null}; wbL=function(M){if(document.body&&document.documentElement){const W=document.body.scrollTop+document.documentElement.scrollTop;M.Z=M.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);M.V=M.clientY+W}}; pbg=function(M,W,b,T={}){M.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return Sp(d2,q=>{const X=typeof q[4]==="boolean"&&q[4]==!!T,G=g.lQ(q[4])&&g.lQ(T)&&g.oQ(q[4],T);return!!q.length&&q[0]==M&&q[1]==W&&q[2]==b&&(X||G)})}; g.o$=function(M,W,b,T={}){if(!M||!M.addEventListener&&!M.attachEvent)return"";let q=pbg(M,W,b,T);if(q)return q;q=++YUp.count+"";const X=!(W!="mouseenter"&&W!="mouseleave"||!M.addEventListener||"onmouseenter"in document);let G;G=X?V=>{V=new $6s(V);if(!Cr(V.relatedTarget,J=>J==M,!0))return V.currentTarget=M,V.type=W,b.call(M,V)}:V=>{V=new $6s(V); V.currentTarget=M;return b.call(M,V)}; G=g.Je(G);M.addEventListener?(W=="mouseenter"&&X?W="mouseover":W=="mouseleave"&&X?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),MxL()||typeof T==="boolean"?M.addEventListener(W,G,T):M.addEventListener(W,G,!!T.capture)):M.attachEvent(`on${W}`,G);d2[q]=[M,W,b,G,T];return q}; b$J=function(M){return W2q(M,W=>g.w9(W,"ytp-ad-has-logging-urls"))}; W2q=function(M,W){const b=document.body||document;return g.o$(b,"click",T=>{const q=Cr(T.target,X=>X===b||W(X),!0); q&&q!==b&&!q.disabled&&(T.currentTarget=q,M.call(q,T))})}; g.cV=function(M){M&&(typeof M=="string"&&(M=[M]),g.Py(M,W=>{if(W in d2){var b=d2[W];const T=b[0],q=b[1],X=b[3];b=b[4];T.removeEventListener?MxL()||typeof b==="boolean"?T.removeEventListener(q,X,b):T.removeEventListener(q,X,!!b.capture):T.detachEvent&&T.detachEvent(`on${q}`,X);delete d2[W]}}))}; QD=function(M){for(let W in d2)d2[W][0]==M&&g.cV(W)}; g2=function(M){M=M||window.event;let W;M.composedPath&&typeof M.composedPath==="function"?W=M.composedPath():W=M.path;W&&W.length?M=W[0]:(M=M||window.event,M=M.target||M.srcElement,M.nodeType==3&&(M=M.parentNode));return M}; w2=function(M){this.W=M;this.Z=null;this.A=0;this.C=null;this.S=0;this.V=[];for(M=0;M<4;M++)this.V.push(0);this.B=0;this.O=g.o$(window,"mousemove",(0,g.IJ)(this.X,this));this.D=g.ra((0,g.IJ)(this.gK,this),25)}; pU=function(M,W,b,T){for(let q=0;q0?b:0;b=T?Date.now()+T*1E3:0;if((T=T?g.Ys.a_():g.Ys.aX())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{T.set(M,W,b)}catch(q){T.remove(M)}}}; g.MZ=function(M){const W=g.Ys.aX(),b=g.Ys.a_();if(!W&&!b||!window.JSON)return null;let T;try{T=W.get(M)}catch(q){}if(typeof T!=="string")try{T=b.get(M)}catch(q){}if(typeof T!=="string")return null;try{T=JSON.parse(T,void 0)}catch(q){}return T}; TNJ=function(){var M=g.Ys.a_();if(M&&(M=M.Vh("yt-player-quality")))return M.creation}; g.W8=function(M){try{const W=g.Ys.aX(),b=g.Ys.a_();W&&W.remove(M);b&&b.remove(M)}catch(W){}}; g.b1=function(){return g.MZ("yt-remote-session-screen-id")}; T2=function(){if(!g.yp.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.yp.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.yp.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.yp.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.yp.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(M){return"WEB_DISPLAY_MODE_UNKNOWN"}}; qNy=function(){qZ.instance||(qZ.instance=new qZ);return qZ.instance}; Xlq=function(M){switch(M){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}}; g.jQ=function(){XZ||(XZ=new jEt);return XZ}; Vn=function(M,W){var b=`f${Math.floor(M/31)+1}`;M=1<10&&tw.shift()))}; I_=function(M,W){Lv||(l1?l1.logEvent(M,W):(tw.push({type:"EVENT",eventType:M,payload:W}),tw.length>10&&tw.shift()))}; NZ=function(M){if(M.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; H8=function(M){return M.substr(0,M.indexOf(":"))||M}; xu=function(M,W,b,T){W=H8(W);let q;q=M instanceof Error?M:Error(`Unexpected error: ${M}`);if(q instanceof g.fv)return q;M={objectStoreNames:b,dbName:W,dbVersion:T};if(q.name==="QuotaExceededError")return new g.fv("QUOTA_EXCEEDED",M);if(g.R_&&q.name==="UnknownError")return new g.fv("QUOTA_MAYBE_EXCEEDED",M);if(q instanceof rf)return new g.fv("MISSING_INDEX",{...M,objectStore:q.objectStore,index:q.index});if(q.name==="InvalidStateError"&&nyq.some(X=>q.message.includes(X)))return new g.fv("EXECUTE_TRANSACTION_ON_CLOSED_DB", M); if(q.name==="AbortError")return new g.fv("UNKNOWN_ABORT",M,q.message);q.args=[{...M,name:"IdbError",oJ:q.name}];q.level="WARNING";return q}; g.FZ=function(M,W,b){const T=mB();return new g.fv("IDB_NOT_SUPPORTED",{context:{caller:M,publicName:W,version:b,hasSucceededOnce:T?.hasSucceededOnce}})}; ylL=function(M){if(!M)throw Error();throw M;}; U6J=function(M){return M}; CWL=function(M,W,b,T,q){try{if(M.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");const X=b(M.state.value);X instanceof g.i1?hw(M,W,X,T,q):T(X)}catch(X){q(X)}}; k6q=function(M,W,b,T,q){try{if(M.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");const X=b(M.state.reason);X instanceof g.i1?hw(M,W,X,T,q):T(X)}catch(X){q(X)}}; hw=function(M,W,b,T,q){W===b?q(new TypeError("Circular promise chain detected.")):b.then(X=>{X instanceof g.i1?hw(M,W,X,T,q):T(X)},X=>{q(X)})}; K2t=function(M,W,b){const T=()=>{try{M.removeEventListener("success",q),M.removeEventListener("error",X)}catch{}},q=()=>{W(M.result); T()},X=()=>{b(M.error); T()}; M.addEventListener("success",q);M.addEventListener("error",X)}; vyg=function(M){return new Promise((W,b)=>{K2t(M,W,b)})}; z2=function(M){return new g.i1(new Aw((W,b)=>{K2t(M,W,b)}))}; u1=function(M,W){return new g.i1(new Aw((b,T)=>{const q=()=>{const X=M?W(M):null;X?X.then(G=>{M=G;q()},T):b()}; q()}))}; L2g=function(M){return z2(M).then(W=>W?new m6q(M,W):null)}; g.lVq=function(M){M.cursor.continue(void 0);return L2g(M.request)}; SQ=function(){return g.he("idb_immediate_commit")}; g.OF=async function(M,W,b,T){const q={mode:"readonly",m8:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof b==="string"?q.mode=b:Object.assign(q,b);M.transactionCount++;b=q.m8?3:1;let X=0,G;for(;!G;){X++;const D=Math.round((0,g.u)());try{var V=M.Z.transaction(W,q.mode),J=T,B=!!q.commit;const a=new txp(V),E=await Z$L(a,J,B),n=Math.round((0,g.u)());IVq(M,D,n,X,void 0,W.join(),q);return E}catch(a){J=Math.round((0,g.u)());const E=xu(a,M.Z.name,W.join(),M.Z.version);if(E instanceof g.fv&&!E.Z||X>=b)IVq(M,D, J,X,E,W.join(),q),G=E}}return Promise.reject(G)}; P8=function(M,W,b){M=M.Z.createObjectStore(W,b);return new NNq(M)}; eQ=function(M,W){M.Z.objectStoreNames.contains(W)&&M.Z.deleteObjectStore(W)}; IVq=function(M,W,b,T,q,X,G){W=b-W;q?(q instanceof g.fv&&(q.type==="QUOTA_EXCEEDED"||q.type==="QUOTA_MAYBE_EXCEEDED")&&I_("QUOTA_EXCEEDED",{dbName:H8(M.Z.name),objectStoreNames:X,transactionCount:M.transactionCount,transactionMode:G.mode}),q instanceof g.fv&&q.type==="UNKNOWN_ABORT"&&(b-=M.B,b<0&&b>=2147483648&&(b=0),I_("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:X,transactionDuration:W,transactionCount:M.transactionCount,dbDuration:b}),M.V=!0),H$s(M,!1,T,X,W,G.tag),ZO(q)):H$s(M,!0,T,X,W, G.tag)}; H$s=function(M,W,b,T,q,X="IDB_TRANSACTION_TAG_UNKNOWN"){I_("TRANSACTION_ENDED",{objectStoreNames:T,connectionHasUnknownAbortedTransaction:M.V,duration:q,isSuccessful:W,tryCount:b,tag:X})}; df=function(M,W,b){M.Z.createIndex(W,b,{unique:!1})}; g.c8=function(M,W,b){M=M.Z.openCursor(W.query,W.direction);return o_(M).then(T=>u1(T,b))}; fVg=function(M,W){return g.c8(M,{query:W},b=>b.delete().then(()=>g.Qn(b))).then(()=>{})}; Res=function(M,W,b){const T=[];return g.c8(M,{query:W},q=>{if(!(b!==void 0&&T.length>=b))return T.push(q.getValue()),g.Qn(q)}).then(()=>T)}; x6q=function(M){const W=[];return g.rlP(M,{query:void 0},b=>{W.push(b.cursor.primaryKey);return g.lVq(b)}).then(()=>W)}; F2y=function(M){return"getAllKeys"in IDBObjectStore.prototype?z2(M.Z.getAllKeys(void 0,void 0)):x6q(M)}; g.rlP=function(M,W,b){const T=W.query;W=W.direction;M="openKeyCursor"in IDBObjectStore.prototype?M.Z.openKeyCursor(T,W):M.Z.openCursor(T,W);return L2g(M).then(q=>u1(q,b))}; Z$L=function(M,W,b){const T=new Promise((q,X)=>{try{const G=W(M);b&&M.commit();G.then(V=>{q(V)}).catch(X)}catch(G){X(G),M.abort()}}); return Promise.all([T,M.done]).then(([q])=>q)}; g.gf=function(M,W,b){const {query:T=null,direction:q="next"}=W;M=M.Z.openCursor(T,q);return o_(M).then(X=>u1(X,b))}; i$L=function(M,W,b){const T=[];return g.gf(M,{query:W},q=>{if(!(b!==void 0&&T.length>=b))return T.push(q.getValue()),g.Qn(q)}).then(()=>T)}; o_=function(M){return z2(M).then(W=>W?new heJ(M,W):null)}; g.Qn=function(M){M.cursor.continue(void 0);return o_(M.request)}; zeQ=function(M,W,b){return new Promise((T,q)=>{let X;X=W!==void 0?self.indexedDB.open(M,W):self.indexedDB.open(M);const G=b.blocked,V=b.blocking,J=b.cK,B=b.upgrade,D=b.closed;let a;const E=()=>{a||(a=new Aly(X.result,{closed:D}));return a}; X.addEventListener("upgradeneeded",n=>{try{if(n.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(X.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");n.dataLoss&&n.dataLoss!=="none"&&I_("IDB_DATA_CORRUPTED",{reason:n.dataLossMessage||"unknown reason",dbName:H8(M)});const C=E(),l=new txp(X.transaction);B&&B(C,N=>n.oldVersion=N,l); l.done.catch(N=>{q(N)})}catch(C){q(C)}}); X.addEventListener("success",()=>{const n=X.result;V&&n.addEventListener("versionchange",()=>{V(E())}); n.addEventListener("close",()=>{I_("IDB_UNEXPECTEDLY_CLOSED",{dbName:H8(M),dbVersion:n.version});J&&J()}); T(E())}); X.addEventListener("error",()=>{q(X.error)}); G&&X.addEventListener("blocked",()=>{G()})})}; u6L=function(M,W,b={}){return zeQ(M,W,b)}; sF=async function(M,W={}){try{const b=self.indexedDB.deleteDatabase(M),T=W.blocked;T&&b.addEventListener("blocked",()=>{T()}); await vyg(b)}catch(b){throw xu(b,M,"",-1);}}; SNQ=function(M,W){return new g.fv("INCOMPATIBLE_DB_VERSION",{dbName:M.name,oldVersion:M.options.version,newVersion:W})}; g.wf=function(M,W){if(!W)throw g.FZ("openWithToken",H8(M.name));return M.open()}; O$a=async function(M,W){return g.OF(await g.wf(pv,W),["databases"],{m8:!0,mode:"readwrite"},b=>{const T=b.objectStore("databases");return T.get(M.actualName).then(q=>{if(q?M.actualName!==q.actualName||M.publicName!==q.publicName||M.userIdentifier!==q.userIdentifier:1)return T.put(M).then(()=>{})})})}; Yu=async function(M,W){return M?(await g.wf(pv,W)).delete("databases",M):void 0}; PWl=async function(M,W){const b=[];W=await g.wf(pv,W);await g.OF(W,["databases"],{m8:!0,mode:"readonly"},T=>{b.length=0;return g.c8(T.objectStore("databases"),{},q=>{M(q.getValue())&&b.push(q.getValue());return g.Qn(q)})}); return b}; eeJ=function(M,W){return PWl(b=>b.publicName===M&&b.userIdentifier!==void 0,W)}; d6G=async function(){if(mB()?.hasSucceededOnce)return!0;var M;if(!(M=$w&&UL()&&!CU()||g.Mo)){try{M=self;var W=!!(M.indexedDB&&M.IDBIndex&&M.IDBKeyRange&&M.IDBObjectStore)}catch(b){W=!1}M=!W}if(M||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return!1;try{return await O$a({actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0},Wg),await Yu("yt-idb-test-do-not-use",Wg),!0}catch(b){return!1}}; oys=function(){if(b_!==void 0)return b_;Lv=!0;return b_=d6G().then(M=>{Lv=!1;if(v8()?.V()){var W={hasSucceededOnce:mB()?.hasSucceededOnce||M};v8()?.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return M})}; Tu=function(){return g.Ct("ytglobal.idbToken_")||void 0}; g.qo=function(){const M=Tu();return M?Promise.resolve(M):oys().then(W=>{W?(g.Uq("ytglobal.idbToken_",Wg),W=Wg):W=void 0;return W})}; clp=function(M){if(!a_())throw M=new g.fv("AUTH_INVALID",{dbName:M}),ZO(M),M;const W=g.DO();return{actualName:`${M}:${W}`,publicName:M,userIdentifier:W}}; QEq=async function(M,W,b,T){var q=Error().stack??"";const X=await g.qo();if(!X)throw W=g.FZ("openDbImpl",M,W),g.he("ytidb_async_stack_killswitch")||(W.stack=`${W.stack}\n${q.substring(q.indexOf("\n")+1)}`),ZO(W),W;NZ(M);q=b?{actualName:M,publicName:M,userIdentifier:void 0}:clp(M);try{return await O$a(q,X),await u6L(q.actualName,W,T)}catch(G){try{await Yu(q.actualName,X)}catch{}throw G;}}; gyl=function(M,W,b={}){return QEq(M,W,!1,b)}; sEy=function(M,W,b={}){return QEq(M,W,!0,b)}; wlg=async function(M,W={}){const b=await g.qo();b&&(NZ(M),M=clp(M),await sF(M.actualName,W),await Yu(M.actualName,b))}; pla=function(M,W,b){M=M.map(async T=>{await sF(T.actualName,W);await Yu(T.actualName,b)}); return Promise.all(M).then(()=>{})}; YNy=async function(M){var W={};const b=await g.qo();b&&(NZ(M),M=await eeJ(M,b),await pla(M,W,b))}; $xs=async function(M,W={}){const b=await g.qo();b&&(NZ(M),await sF(M,W),await Yu(M,b))}; WXs=function(M,W){let b;return()=>{b||(b=new Maq(M,W));return b}}; X5=function(M,W){return WXs(M,W)}; jC=function(M){return g.wf(b7a(),M)}; Tba=async function(M,W,b,T){M={config:M,hashData:W,timestamp:T!==void 0?T:(0,g.u)()};b=await jC(b);await b.clear("hotConfigStore");return await b.put("hotConfigStore",M)}; qHl=async function(M,W,b,T,q){M={config:M,hashData:W,configData:b,timestamp:q!==void 0?q:(0,g.u)()};T=await jC(T);await T.clear("coldConfigStore");return await T.put("coldConfigStore",M)}; XjQ=async function(M){M=await jC(M);let W=void 0;await g.OF(M,["coldConfigStore"],{mode:"readwrite",m8:!0},b=>g.gf(b.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},T=>{W=T.getValue()})); return W}; jxL=async function(M){M=await jC(M);let W=void 0;await g.OF(M,["hotConfigStore"],{mode:"readwrite",m8:!0},b=>g.gf(b.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},T=>{W=T.getValue()})); return W}; GJa=async function(){await YNy("ytGcfConfig")}; VaQ=function(){if(!Gu.instance){const M=new Gu;Gu.instance=M}return Gu.instance}; V7=function(M,W){M.V=W;g.Uq("yt.gcf.config.hotConfigGroup",M.V||null)}; JT=function(M,W){M.Z=W;g.Uq("yt.gcf.config.coldConfigGroup",M.Z||null)}; Bg=function(){return g.Ct("yt.gcf.config.coldConfigGroup")}; D0=function(){return g.Ct("yt.gcf.config.hotConfigGroup")}; DxL=function(M){if(!M.V||!M.Z){if(!Tu()){const W=g.FZ("scheduleGetConfigs");Be(W)}M.A||(M.A=g.FO.N1(async()=>{try{await JKp(M)}catch{}try{await Bbs(M)}catch{}M.A&&(M.A=0)},100))}}; at=function(M,W){M.coldHashData=W;g.Uq("yt.gcf.config.coldHashData",M.coldHashData||null)}; nqg=async function(M){if(g.he("start_client_gcf")||g.he("delete_gcf_config_db"))g.he("start_client_gcf")&&(await g.qo()&&a_()&&!g.he("delete_gcf_config_db")?(M.S=!0,DxL(M)):(a6q(M),Eqs(M))),g.he("delete_gcf_config_db")&&await GJa()}; Eqs=function(M){V7(M,g.F("RAW_HOT_CONFIG_GROUP"));M.CD(g.F("SERIALIZED_HOT_HASH_DATA"))}; JKp=async function(M){if(M.V)return D0();if(!M.S)return M=g.FZ("getHotConfig IDB not initialized"),Be(M),Promise.reject(M);const W=Tu(),b=g.F("TIME_CREATED_MS");if(W){var T=await jxL(W);if(T&&T.timestamp>b)return V7(M,T.config),M.CD(T.hashData),D0()}else T=g.FZ("getHotConfig token error"),Be(T);Eqs(M);W&&M.V&&M.hotHashData&&await Tba(M.V,M.hotHashData,W,b);return M.V?D0():(M=new g.EF("Config not available in ytConfig"),Be(M),Promise.reject(M))}; yKJ=function(M,W){M.configData=W;g.Uq("yt.gcf.config.coldConfigData",M.configData||null)}; a6q=function(M){JT(M,g.F("RAW_COLD_CONFIG_GROUP"));at(M,g.F("SERIALIZED_COLD_HASH_DATA"));yKJ(M,M.Z?.configData)}; Bbs=async function(M){if(M.Z)return Bg();if(!M.S)return M=g.FZ("getColdConfig IDB not initialized"),Be(M),Promise.reject(M);const W=Tu(),b=g.F("TIME_CREATED_MS");if(W){var T=await XjQ(W);if(T&&T.timestamp>b)return JT(M,T.config),yKJ(M,T.configData),at(M,T.hashData),Bg()}else T=g.FZ("getColdConfig"),Be(T);a6q(M);W&&M.Z&&M.coldHashData&&M.configData&&await qHl(M.Z,M.coldHashData,M.configData,W,b);return M.Z?Bg():(M=new g.EF("Config not available in ytConfig"),Be(M),Promise.reject(M))}; Uxp=async function(M,W,b){if(g.he("start_client_gcf")){b&&V7(M,b);M.CD(W);const T=Tu();T&&(b||(b=(await jxL(T))?.config),await Tba(b,W,T));if(b){M=M.C;for(const q of M.Z)q(b)}}}; CXs=async function(M,W,b){g.he("start_client_gcf")&&(at(M,W),M=Tu())&&(b||(b=(await XjQ(M))?.config),b&&await qHl(b,W,b.configData,M))}; kJa=function(){var M=VaQ(),W=(0,g.u)()-M.B;if(!(M.B!==0&&W0&&(W.request={internalExperimentFlags:b});vqt(M,void 0,W);mxp(void 0,W);LXG(void 0,W);l6J(M,void 0,W);taJ(void 0,W);g.he("start_client_gcf")&&Z7t(void 0,W);g.F("DELEGATED_SESSION_ID")&& !g.he("pageid_as_header_web")&&(W.user={onBehalfOfUser:g.F("DELEGATED_SESSION_ID")});!g.he("fill_delegate_context_in_gel_killswitch")&&(M=g.F("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user={...W.user,serializedDelegationContext:M});M=g.F("INNERTUBE_CONTEXT");g.he("enable_persistent_device_token")&&M?.client?.rolloutToken&&(W.client.rolloutToken=M?.client?.rolloutToken);M=Object;b=M.assign;var T=W.client,q=g.F("DEVICE","");const X={};for(const [G,V]of Object.entries(ng(q))){q=G;const J= V;q==="cbrand"?X.deviceMake=J:q==="cmodel"?X.deviceModel=J:q==="cbr"?X.browserName=J:q==="cbrver"?X.browserVersion=J:q==="cos"?X.osName=J:q==="cosver"?X.osVersion=J:q==="cplatform"&&(X.platform=J)}W.client=b.call(M,T,X);return W}; vqt=function(M,W,b){M=M.iE;if(M==="WEB"||M==="MWEB"||M===1||M===2)W?(b=ex(W,y7,96)||new y7,M=T2(),M=Object.keys(I6y).indexOf(M),M=M===-1?null:M,M!==null&&VJ(b,3,M),gN(W,y7,96,b)):b&&(b.client.mainAppWebInfo=b.client.mainAppWebInfo??{},b.client.mainAppWebInfo.webDisplayMode=T2())}; mxp=function(M,W){const b=g.Ct("yt.embedded_player.embed_url");b&&(M?(W=ex(M,Ui,7)||new Ui,XK(W,4,b),gN(M,Ui,7,W)):W&&(W.thirdParty={embedUrl:b}))}; LXG=function(M,W){if(g.he("web_log_memory_total_kbytes")&&g.yp.navigator?.deviceMemory){const b=g.yp.navigator?.deviceMemory;M?C$(M,95,RF(b*1E6)):W&&(W.client.memoryTotalKbytes=`${b*1E6}`)}}; l6J=function(M,W,b){M.appInstallData&&(W?(b=ex(W,Ci,62)??new Ci,XK(b,6,M.appInstallData),gN(W,Ci,62,b)):b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=M.appInstallData))}; taJ=function(M,W){var b=BNS();b&&(M?VJ(M,61,NbS[b]):W&&(W.client.connectionType=b));g.he("web_log_effective_connection_type")&&(b=aVg())&&(M?VJ(M,94,H7p[b]):W&&(W.client.effectiveConnectionType=b))}; f6s=function(M,W,b={}){let T={};g.F("EOM_VISITOR_DATA")?T={"X-Goog-EOM-Visitor-Id":g.F("EOM_VISITOR_DATA")}:T={"X-Goog-Visitor-Id":b.visitorData||g.F("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return T;W=b.AP||g.F("AUTHORIZATION");W||(M?W=`Bearer ${g.Ct("gapi.auth.getToken")().access_token}`:(M=qNy().W8(kw),g.he("pageid_as_header_web")||delete M["X-Goog-PageId"],T={...T,...M}));W&&(T.Authorization=W);return T}; Z7t=function(M,W){var b=kJa();if(b){var T=b.coldConfigData,q=b.coldHashData;b=b.hotHashData;M?(W=ex(M,Ci,62)??new Ci,T=XK(W,1,T),XK(T,3,q).CD(b),gN(M,Ci,62,W)):W&&(W.client.configInfo=W.client.configInfo||{},T&&(W.client.configInfo.coldConfigData=T),q&&(W.client.configInfo.coldHashData=q),b&&(W.client.configInfo.hotHashData=b))}}; Ki=function(M){this.version=1;this.args=M}; vg=function(M,W){this.topic=M;this.Z=W}; Li=function(M,W){const b=m7();b&&b.publish.call(b,M.toString(),M,W)}; xxp=function(M){var W=RyL;const b=m7();if(!b)return 0;const T=b.subscribe(W.toString(),(q,X)=>{var G=g.Ct("ytPubsub2Pubsub2SkipSubKey");G&&G==T||(G=()=>{if(l_[T])try{if(X&&W instanceof vg&&W!=q)try{{var V=W.Z,J=X;if(!J.args||!J.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");let B;try{if(!V.BV){const D=new V;V.BV=D.version}B=V.BV}catch(D){}if(!B||J.version!=B)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{X=Reflect.construct(V, g.Vh(J.args))}catch(D){throw D.message="yt.pubsub2.Data.deserialize(): "+D.message,D;}}}catch(B){throw B.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+B.message,B;}M.call(window,X)}catch(B){g.Vr(B)}},rKG[W.toString()]?g.ku()?g.FO.N1(G):g.RS(G,0):G())}); l_[T]=!0;tT[W.toString()]||(tT[W.toString()]=[]);tT[W.toString()].push(T);return T}; hyL=function(){var M=FXP;const W=xxp(function(b){M.apply(void 0,arguments);i7J(W)}); return W}; i7J=function(M){const W=m7();W&&(typeof M==="number"&&(M=[M]),g.Py(M,b=>{W.unsubscribeByKey(b);delete l_[b]}))}; m7=function(){return g.Ct("ytPubsub2Pubsub2Instance")}; Z0=function(M,W,b={sampleRate:.1}){Math.random(){b=b.data;if(b.op==="gzippedGelBatch"){var T=Rt.get(b.key);T&&(uKL(b.gzippedBatch,T.latencyPayload,T.url,T.options,T.sendFn),Rt.delete(b.key))}},W=Hg(); W&&(W.addEventListener("message",M),W.onerror=()=>{Rt.clear()},fi=!0)}}; xw=function(M,W,b,T,q=!1){const X={startTime:(0,g.u)(),ticks:{},infos:{}};try{const V=O7l(W);if(V!=null&&(V>PXq||VPXq||T{}; W.options.onError=async(q,X)=>{const G=gqy(X),V=sxG(X);V&&M.FX&&M.FX("web_enable_error_204")&&M.handleError(Error("Request failed due to compression"),W.url,X);if(M.FX&&M.FX("nwl_consider_error_code")&&G||M.FX&&!M.FX("nwl_consider_error_code")&&M.potentialEsfErrorCounter<=M.aJ)if(M.va.L6&&await M.va.L6(),!M.va.tj()){b(q,X);M.FX&&M.FX("nwl_consider_error_code")&&W?.id!==void 0&&await M.ow.bA(W.id,M.DY,!1);return}M.FX&&M.FX("nwl_consider_error_code")&&!G&&M.potentialEsfErrorCounter>M.aJ||(M.potentialEsfErrorCounter++, W?.id!==void 0&&(W.sendCount{M.va.tj()&&M.B()},M.zP)):await M.ow.YK(W.id,M.DY)),b(q,X))}; const T=W.options.onSuccess?W.options.onSuccess:()=>{}; W.options.onSuccess=async(q,X)=>{W?.id!==void 0&&await M.ow.YK(W.id,M.DY);M.va.Ea&&M.FX&&M.FX("vss_network_hint")&&M.va.Ea(!0);T(q,X)}; return W}; gqy=function(M){return(M=M?.error?.code)&&M>=400&&M<=599?!1:!0}; sxG=function(M){M=M?.error?.code;return!(M!==400&&M!==415)}; pjy=function(){if(hT)return hT();hT=X5("LogsDatabaseV2",{AC:{LogsRequestsStore:{Nw:2}},shared:!1,upgrade(M,W,b){W(2)&&P8(M,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});W(3);W(5)&&(b=b.objectStore("LogsRequestsStore"),b.Z.indexNames.contains("newRequest")&&b.Z.deleteIndex("newRequest"),df(b,"newRequestV2",["status","interface","timestamp"]));W(7)&&eQ(M,"sapisid");W(9)&&eQ(M,"SWHealthLog")},version:9});return hT()}; AT=function(M){return g.wf(pjy(),M)}; $Xl=async function(M,W){const b={startTime:(0,g.u)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}};W=await AT(W);M={...M,options:JSON.parse(JSON.stringify(M.options)),interface:g.F("INNERTUBE_CONTEXT_CLIENT_NAME",0)};M=await W.put("LogsRequestsStore",M);b.ticks.tc=(0,g.u)();YHa(b);return M}; MLS=async function(M,W){const b={startTime:(0,g.u)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}};W=await AT(W);var T=g.F("INNERTUBE_CONTEXT_CLIENT_NAME",0),q=[M,T,0];T=[M,T,(0,g.u)()];const X=IDBKeyRange.bound(q,T);let G="prev";g.he("use_fifo_for_networkless")&&(G="next");let V=void 0;q=M==="NEW"?"readwrite":"readonly";g.he("use_readonly_for_get_most_recent_by_status_killswitch")&&(q="readwrite");await g.OF(W,["LogsRequestsStore"],{mode:q,m8:!0},J=>g.gf(J.objectStore("LogsRequestsStore").index("newRequestV2"), {query:X,direction:G},B=>{B.getValue()&&(V=B.getValue(),M==="NEW"&&(V.status="QUEUED",B.update(V)))})); b.ticks.tc=(0,g.u)();YHa(b);return V}; W$p=async function(M,W){return g.OF(await AT(W),["LogsRequestsStore"],{mode:"readwrite",m8:!0},b=>{const T=b.objectStore("LogsRequestsStore");return T.get(M).then(q=>{if(q)return q.status="QUEUED",T.put(q).then(()=>q)})})}; bDJ=async function(M,W,b=!0,T){return g.OF(await AT(W),["LogsRequestsStore"],{mode:"readwrite",m8:!0},q=>{const X=q.objectStore("LogsRequestsStore");return X.get(M).then(G=>G?(G.status="NEW",b&&(G.sendCount+=1),T!==void 0&&(G.options.compress=T),X.put(G).then(()=>G)):g.i1.resolve(void 0))})}; TUt=async function(M,W){return(await AT(W)).delete("LogsRequestsStore",M)}; qOa=async function(M){M=await AT(M);const W=(0,g.u)()-2592E6;await g.OF(M,["LogsRequestsStore"],{mode:"readwrite",m8:!0},b=>g.c8(b.objectStore("LogsRequestsStore"),{},T=>{if(T.getValue().timestamp<=W)return T.delete().then(()=>g.Qn(T))}))}; XOS=async function(){await YNy("LogsDatabaseV2")}; YHa=function(M){g.he("nwl_csi_killswitch")||Z0("networkless_performance",M,{sampleRate:1})}; GIJ=function(M){return g.wf(jCs(),M)}; VLg=async function(M){M=await GIJ(M);const W=(0,g.u)()-2592E6;await g.OF(M,["SWHealthLog"],{mode:"readwrite",m8:!0},b=>g.c8(b.objectStore("SWHealthLog"),{},T=>{if(T.getValue().timestamp<=W)return T.delete().then(()=>g.Qn(T))}))}; JBt=async function(M){await (await GIJ(M)).clear("SWHealthLog")}; g.zu=function(M,W,b,T,q="",X=!1,G=!1){if(M)if(b&&!g.EL())Be(new g.EF("Legacy referrer-scrubbed ping detected")),M&&BUG(M,void 0,{scrubReferrer:!0});else if(q)S$(M,W,"POST",q,T);else if(g.F("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||T||G)S$(M,W,"GET","",T,void 0,X,G);else{b:{try{c:{var V=new DXP({url:M});if(V.Z.dsh==="1")var J=null;else{var B=V.Z.ae;if(B==="1"){const a=V.Z.adurl;if(a)try{J={version:3,UA:decodeURIComponent(a),qT:Ou(V.V,"act=1","ri=1",EUL(V))};break c}catch(E){}}J=B==="2"?{version:4,UA:Ou(V.V, "dct=1","suid="+V.B,"ri=1"),qT:Ou(V.V,"act=1","ri=1","suid="+V.B)}:null}}if(J){const a=MN(M);var D=!(!a||!a.endsWith("/aclk")||Ec(M,"ri")!=="1");break b}}catch(a){}D=!1}D?aDt(M)?(W&&W(),b=!0):b=!1:b=!1;b||BUG(M,W)}}; EAJ=function(M,W=""){aDt(M,W)||g.zu(M,void 0,void 0,void 0,W)}; aDt=function(M,W=""){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(M,W))return!0}catch(b){}return!1}; BUG=function(M,W,b={}){const T=new Image,q=""+nAQ++;u_[q]=T;T.onload=T.onerror=()=>{W&&u_[q]&&W();delete u_[q]}; b.scrubReferrer&&(T.referrerPolicy="no-referrer");T.src=M}; yBp=function(M){return document.featurePolicy?.allowedFeatures().includes("attribution-reporting")?M+"&nis=6":M+"&nis=5"}; Pg=function(){SC||(SC=new Oi("yt.offline"));return SC}; UXy=function(M){if(g.he("offline_error_handling")){var W=Pg().get("errors",!0)||{};W[M.message]={name:M.name,stack:M.stack};M.level&&(W[M.message].level=M.level);Pg().set("errors",W,2592E3,!0)}}; Czy=function(){if(!eC.instance){const M=g.Ct("yt.networkRequestMonitor.instance")||new eC;g.Uq("yt.networkRequestMonitor.instance",M);eC.instance=M}return eC.instance}; kIt=function(){if(!d0.instance){const M=g.Ct("yt.networkStatusManager.instance")||new d0;g.Uq("yt.networkStatusManager.instance",M);d0.instance=M}return d0.instance}; K$p=function(M,W){M.rateLimit?M.Z?(g.FO.Oh(M.A),M.A=g.FO.N1(()=>{M.B!==W&&(M.dispatchEvent(W),M.B=W,M.Z=(0,g.u)())},M.rateLimit-((0,g.u)()-M.Z))):(M.dispatchEvent(W),M.B=W,M.Z=(0,g.u)()):M.dispatchEvent(W)}; ot=function(){let M=g.Ct("yt.networklessRequestController.instance");M||(M=new vAp,g.Uq("yt.networklessRequestController.instance",M),g.he("networkless_logging")&&g.qo().then(W=>{M.DY=W;Qxg(M);M.S.resolve();M.Qn&&Math.random()<=M.zw&&M.DY&&VLg(M.DY);g.he("networkless_immediately_drop_sw_health_store")&&mXS(M)})); return M}; mXS=async function(M){if(!M.DY)throw g.FZ("clearSWHealthLogsDb");JBt(M.DY).catch(W=>{M.handleError(W)})}; L$P=function(M,W,b,T=!1){W=g.he("web_fp_via_jspb")?Object.assign({},W):W;g.he("use_request_time_ms_header")?W.headers&&ve(M)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.u)()))):W.postParams?.requestTimeMs&&(W.postParams.requestTimeMs=Math.round((0,g.u)()));b&&Object.keys(W).length===0?g.zu(M):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),xw(M,W.postBody,W,g.Pe,T)):xw(M,JSON.stringify(W.postParams),W,e$,T):g.Pe(M,W)}; cg=function(M,W){g.he("use_event_time_ms_header")&&ve(M)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.u)())));return W}; g.Q7=function(M,W,b,T){!g.F("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&Be(new g.EF("Missing VISITOR_DATA when sending innertube request.",W,b,T));if(!M.isReady())throw M=new g.EF("innertube xhrclient not ready",W,b,T),g.Vr(M),M;const q={headers:T.headers||{},method:"POST",postParams:b,postBody:T.postBody,postBodyFormat:T.postBodyFormat||"JSON",onTimeout:()=>{T.onTimeout()}, onFetchTimeout:T.onTimeout,onSuccess:(B,D)=>{if(T.onSuccess)T.onSuccess(D)}, onFetchSuccess:B=>{if(T.onSuccess)T.onSuccess(B)}, onProgress:B=>{if(T.onProgress)T.onProgress(B)}, onError:(B,D)=>{if(T.onError)T.onError(D)}, onFetchError:B=>{if(T.onError)T.onError(B)}, timeout:T.timeout,withCredentials:!0,compress:T.compress};q.headers["Content-Type"]||(q.headers["Content-Type"]="application/json");b="";var X=M.config_.H9;X&&(b=X);X=M.config_.oS||!1;const G=f6s(X,b,T);Object.assign(q.headers,G);q.headers.Authorization&&!b&&X&&(q.headers["x-origin"]=window.location.origin);const V=k7(`${b}${`/${"youtubei"}/${M.config_.innertubeApiVersion}/${W}`}`,{alt:"json"}),J=(B=!1)=>{try{if(B&&T.retry&&!T.networklessOptions.bypassNetworkless)q.method="POST",T.networklessOptions.writeThenSend? ot().writeThenSend(V,q):ot().sendAndWrite(V,q);else if(T.compress){const D=!T.networklessOptions.writeThenSend;if(q.postBody){let a=q.postBody;typeof a!=="string"&&(a=JSON.stringify(q.postBody));xw(V,a,q,g.Pe,D)}else xw(V,JSON.stringify(q.postParams),q,e$,D)}else e$(V,q)}catch(D){if(D.name==="InvalidAccessError")Be(Error("An extension is blocking network request."));else throw D;}}; g.Ct("ytNetworklessLoggingInitializationOptions")&&lDQ.isNwlInitialized?oys().then(B=>{J(B)}):J(!1)}; g.Yw=function(M,W,b){const T=g.g0();if(T&&W){const q=T.subscribe(M,function(){const X=arguments,G=()=>{si[q]&&W.apply&&typeof W.apply=="function"&&W.apply(b||window,X)}; try{g.w0[M]?G():g.RS(G,0)}catch(V){g.Vr(V)}},b); si[q]=!0;pi[M]||(pi[M]=[]);pi[M].push(q);return q}return 0}; tLQ=function(M){const W=g.Yw("LOGGED_IN",function(b){M.apply(void 0,arguments);g.$2(W)})}; g.$2=function(M){const W=g.g0();W&&(typeof M==="number"?M=[M]:typeof M==="string"&&(M=[parseInt(M,10)]),g.Py(M,b=>{W.unsubscribeByKey(b);delete si[b]}))}; g.M9=function(M,W){const b=g.g0();return b?b.publish.apply(b,arguments):!1}; IDs=function(M){const W=g.g0();if(W)if(W.clear(M),M)ZDg(M);else for(let b in pi)ZDg(b)}; g.g0=function(){return g.yp.ytPubsubPubsubInstance}; ZDg=function(M){pi[M]&&(M=pi[M],g.Py(M,W=>{si[W]&&delete si[W]}),M.length=0)}; g.WA=function(M,W,b=null){NUt(M,W,b)}; NUt=function(M,W,b=null){const T=HDs(typeof M==="string"?M:M.toString());let q=document.getElementById(T);var X=q&&oxs(q);const G=q&&!X;X?W&&W():(W&&(X=g.Yw(T,W),W=`${g.Zl(W)}`,fDq[W]=X),G||(q=RSJ(M,T,()=>{oxs(q)||(d_g(q),g.M9(T),g.RS(()=>{IDs(T)},0))},b)))}; RSJ=function(M,W,b,T=null){const q=g.Gr("SCRIPT");q.id=W;q.onload=()=>{b&&setTimeout(b,0)}; q.onreadystatechange=()=>{switch(q.readyState){case "loaded":case "complete":q.onload()}}; T&&q.setAttribute("nonce",T);g.Yp(q,typeof M==="string"?g.We(M):M);M=document.getElementsByTagName("head")[0]||document.body;M.insertBefore(q,M.firstChild);return q}; HDs=function(M){const W=document.createElement("a");g.OY(W,M);M=W.href.replace(/^[a-zA-Z]+:\/\//,"//");return`js-${Bt(M)}`}; b6=function(M,W){if(M===W)M=!0;else if(Array.isArray(M)&&Array.isArray(W))M=g.mA(M,W,b6);else if(g.lQ(M)&&g.lQ(W))a:if(g.h7(M).length!=g.h7(W).length)M=!1;else{for(let b in M)if(!b6(M[b],W[b])){M=!1;break a}M=!0}else M=!1;return M}; Xf=function(M,...W){if(!T_(M)||W.some(b=>!T_(b)))throw Error("Only objects may be merged."); for(const b of W)q9(M,b)}; q9=function(M,W){for(const b in W)if(T_(W[b])){if(b in M&&!T_(M[b]))throw Error("Cannot merge an object into a non-object.");b in M||(M[b]={});q9(M[b],W[b])}else if(jy(W[b])){if(b in M&&!jy(M[b]))throw Error("Cannot merge an array into a non-array.");b in M||(M[b]=[]);rBG(M[b],W[b])}else M[b]=W[b];return M}; rBG=function(M,W){for(const b of W)T_(b)?M.push(q9({},b)):jy(b)?M.push(rBG([],b)):M.push(b);return M}; T_=function(M){return typeof M==="object"&&!Array.isArray(M)}; jy=function(M){return typeof M==="object"&&Array.isArray(M)}; xXJ=function(M,W){if(!W)return!1;for(let b=0;b(M&15).toString(16)).join("")}; hSl=function(){({Wgk:W=!1,vgY:M=!0}={});var M,W;if(g.Ct("_lact",window)==null){var b=parseInt(g.F("LACT"),10);b=isFinite(b)?Date.now()-Math.max(b,0):-1;g.Uq("_lact",b,window);g.Uq("_fact",b,window);b==-1&&BA();iDL(W,M);new w2(()=>{DJ("mouse",100)})}}; iDL=function(M=!1,W=!0){var b=window;g.o$(b.document,"keydown",BA);g.o$(b.document,"keyup",BA);g.o$(b.document,"mousedown",BA);g.o$(b.document,"mouseup",BA);M?g.o$(b,"touchmove",()=>{DJ("touchmove",200)},{passive:!0}):(g.o$(b,"resize",()=>{DJ("resize",200)}),W&&g.o$(b,"scroll",()=>{DJ("scroll",200)})); g.o$(b.document,"touchstart",BA,{passive:!0});g.o$(b.document,"touchend",BA,{passive:!0})}; DJ=function(M,W){aH[M]||(aH[M]=!0,g.FO.N1(()=>{BA();aH[M]=!1},W))}; BA=function(){g.Ct("_lact",window)==null&&(hSl(),g.Ct("_lact",window));var M=Date.now();g.Uq("_lact",M,window);g.Ct("_fact",window)==-1&&g.Uq("_fact",M,window);(M=g.Ct("ytglobal.ytUtilActivityCallback_"))&&M()}; EK=function(){const M=g.Ct("_lact",window);return M==null?-1:Math.max(Date.now()-M,0)}; yi=function(M){return new no(M)}; UK=function(M,W){M.V.set(W.rM,W);const b=M.B.get(W.rM);if(b)try{b.LP(M.resolve(W.rM))}catch(T){b.G3(T)}}; k2=function(M,W,b,T=!1){if(b.indexOf(W)>-1)throw Error(`Deps cycle for: ${W}`);if(M.Z.has(W))return M.Z.get(W);if(!M.V.has(W)){if(T)return;throw Error(`No provider for: ${W}`);}T=M.V.get(W);b.push(W);if(T.ux!==void 0)var q=T.ux;else if(T.E5)q=T[Co]?ABS(M,T[Co],b):[],q=T.E5(...q);else if(T.d_){q=T.d_;const X=q[Co]?ABS(M,q[Co],b):[];q=new q(...X)}else throw Error(`Could not resolve providers for: ${W}`);b.pop();T.IUY||M.Z.set(W,q);return q}; ABS=function(M,W,b){return W?W.map(T=>T instanceof no?k2(M,T.key,b,!0):k2(M,T,b)):[]}; vA=function(){Ko||(Ko=new zSP);return Ko}; SOP=function(){var M=ujQ;return()=>{const W=vA();W.resolve(yi(M))||UK(W,{rM:M,d_:M,[Co]:void 0});return W.resolve(M)}}; Lo=function(){return"h5vcc"in mr&&mr.h5vcc.traceEvent?.traceBegin&&mr.h5vcc.traceEvent?.traceEnd?1:"performance"in mr&&mr.performance.mark&&mr.performance.measure?2:0}; l6=function(M){const W=Lo();switch(W){case 1:mr.h5vcc.traceEvent.traceBegin("YTLR",M);break;case 2:mr.performance.mark(`${M}-start`);break;case 0:break;default:PX(W,"unknown trace type")}}; ODQ=function(M){var W=Lo();switch(W){case 1:mr.h5vcc.traceEvent.traceEnd("YTLR",M);break;case 2:W=`${M}-start`;const b=`${M}-end`;mr.performance.mark(b);mr.performance.measure(M,W,b);break;case 0:break;default:PX(W,"unknown trace type")}}; PzL=function(M){var W=Array.from(M.Z.keys()).sort((b,T)=>(M.Z[T].priority??0)-(M.Z[b].priority??0)); for(const b of W)W=M.Z[b],W.jobId===void 0||W.OP||(M.scheduler.Oh(W.jobId),nv(W.FM,10))}; dXg=function(M,W,b){eSp&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed(`[${M.constructor.name}] '${M.state}' to '${W}'`),console.log("with message: ",b),console.groupEnd())}; gAa=function(M,W){const b=W.filter(q=>(M.V??q.priority??0)===10),T=W.filter(q=>(M.V??q.priority??0)!==10); return M.A.B0z?async(...q)=>{await oAt(b,...q);cBa(M,T,...q)}:(...q)=>{QCa(b,...q); cBa(M,T,...q)}}; oAt=async function(M,...W){g.Cv();for(const b of M){let T;EyP(()=>{ta(b.name);const q=ZJ(()=>b.callback(...W)); IH(q)?T=g.he("web_lifecycle_error_handling_killswitch")?q.then(()=>{N9(b.name)}):q.then(()=>{N9(b.name)},X=>{window.onerror?.(X.message,"",0,0,X); N9(b.name)}):N9(b.name)}); T&&await T}}; cBa=function(M,W,...b){W=W.map(T=>({FM:()=>{ta(T.name);ZJ(()=>T.callback(...b)); N9(T.name)}, priority:M.V??T.priority??0})); W.length&&(M.B=new sCs(W))}; QCa=function(M,...W){g.Cv();for(const b of M)EyP(()=>{ta(b.name);ZJ(()=>b.callback(...W)); N9(b.name)})}; ta=function(M){HA&&M&&l6(M)}; N9=function(M){HA&&M&&ODQ(M)}; ZJ=function(M){if(g.he("web_lifecycle_error_handling_killswitch"))return M();try{return M()}catch(W){window.onerror?.(W.message,"",0,0,W)}}; pOa=function(){fo||(fo=new wOy);return fo}; x2=function(M,W){const b=RH(W);if(M.V[b])return M.V[b];const T=Object.keys(M.store)||[];if(T.length<=1&&RH(W)===T[0])return T;const q=[];for(let G=0;G{b=b.data;if(b.op==="serializedGelBatch"){var T=ha.get(b.key);T&&($Np(b.serializedBatch,T.client,T.resolve,T.networklessOptions,T.isIsolated,T.useVSSEndpoint,T.dangerousLogToVisitorSession,T.requestsOutstanding),ha.delete(b.key))}},W=Hg(); W&&(W.addEventListener("message",M),W.onerror=()=>{ha.clear()}); YOQ=!0}}; rk=function(M,W,b){if((M&90)==M){hz(2,W);var T=W[y[10]]+(W[y[10]]?y[14]:y[65])+W[y[13]]+W[y[16]];if(Az(1,W)){const X=[];g.NE(W[y[17]],(G,V)=>{G!==null&&X[y[29]](`${V}=${G}`)}); T+=`?${X[y[24]](y[3])}`}var q=T}if((M-1&15)>=2&&M-9>>5<1){T=W[y[23]](y[51]);let X=0;T[0]||X++;const G={};for(;X>4<3&&M+1>>3>=2&&W[y[36]]();(M^95)>>3==3&&b[y[6]]!=0&&(W=(W%b[y[6]]+b[y[6]])%b[y[6]],b[y[33]](0,1,b[y[33]](W,1,b[0])[0]));(M^83)>=14&&(M+4&12)<4&&b[y[33]](b[y[6]],0,W);return q}; j0Q=function(M,W){if(M.endpoint==="log_event"){Aa(M);var b=z_(M),T=WSJ(M.payload)||"",q=b_J(T),X=200;if(q){if(q.enabled===!1&&!g.he("web_payload_policy_disabled_killswitch"))return;X=TzG(q.tier);if(X===400){qct(M,W);return}}u6[b]=!0;b={cttAuthInfo:b,isJspb:!1,tier:X};i6().storePayload(b,M.payload);XGt(W,!1,b,Sy(T))}}; VIp=function(M,W,b){if(W.endpoint==="log_event"){Aa(void 0,W);var T=z_(W,!0),q=b_J(M),X=200;if(q){if(q.enabled===!1&&!g.he("web_payload_policy_disabled_killswitch"))return;X=TzG(q.tier);if(X===400){GMt(M,W,b);return}}u6[T]=!0;T={cttAuthInfo:T,isJspb:!0,tier:X};i6().storePayload(T,M6(W.payload));XGt(b,!0,T,Sy(M))}}; XGt=function(M,W=!1,b,T=!1){M&&(OK=new M);M=Ae("tvhtml5_logging_max_batch_ads_fork")||Ae("tvhtml5_logging_max_batch")||Ae("web_logging_max_batch")||100;const q=(0,g.u)(),X=PA(W,b.tier),G=X.A;T&&(X.B=!0);T=0;b&&(T=i6().getSequenceCount(b));T>=1E3?ey({writeThenSend:!0},W,b.tier):T>=M?dR||(dR=oH(()=>{ey({writeThenSend:!0},W,b.tier);dR=void 0},0)):q-G>=10&&(JMP(W,b.tier),X.A=q)}; qct=function(M,W){if(M.endpoint==="log_event"){g.he("more_accurate_gel_parser")&&i6().storePayload({isJspb:!1},M.payload);Aa(M);var b=z_(M),T=new Map;T.set(b,[M.payload]);var q=WSJ(M.payload)||"";W&&(OK=new W);return new g.Zm((X,G)=>{OK&&OK.isReady()?BzL(T,OK,X,G,{bypassNetworkless:!0},!0,Sy(q)):X()})}}; GMt=function(M,W,b){if(W.endpoint==="log_event"){Aa(void 0,W);var T=z_(W,!0),q=new Map;q.set(T,[M6(W.payload)]);b&&(OK=new b);return new g.Zm(X=>{OK&&OK.isReady()?DNl(q,OK,X,{bypassNetworkless:!0},!0,Sy(M)):X()})}}; z_=function(M,W=!1){var b="";if(M.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(M.cttAuthInfo){if(W){W=M.cttAuthInfo.token;b=M.cttAuthInfo;const T=new aut;b.videoId?T.setVideoId(b.videoId):b.playlistId&&iW(T,2,cA,u8(b.playlistId));Qi[W]=T}else W=M.cttAuthInfo,b={},W.videoId?b.videoId=W.videoId:W.playlistId&&(b.playlistId=W.playlistId),gR[M.cttAuthInfo.token]=b;b=M.cttAuthInfo.token}return b}; ey=function(M={},W=!1,b){new g.Zm((T,q)=>{const X=PA(W,b),G=X.B;X.B=!1;sK(X.V);sK(X.Z);X.Z=0;OK&&OK.isReady()?b===void 0&&g.he("enable_web_tiered_gel")?EFS(T,q,M,W,300,G):EFS(T,q,M,W,b,G):(JMP(W,b),T())})}; EFS=function(M,W,b={},T=!1,q=200,X=!1){var G=OK,V=new Map;const J=new Map,B={isJspb:T,cttAuthInfo:void 0,tier:q},D={isJspb:T,cttAuthInfo:void 0};if(T){for(const a of Object.keys(u6))W=g.he("enable_web_tiered_gel")?i6().smartExtractMatchingEntries({keys:[B,D],sizeLimit:1E3}):i6().extractMatchingEntries({isJspb:!0,cttAuthInfo:a}),W.length>0&&V.set(a,W),(g.he("web_fp_via_jspb_and_json")&&b.writeThenSend||!g.he("web_fp_via_jspb_and_json"))&&delete u6[a];DNl(V,G,M,b,!1,X)}else{for(const a of Object.keys(u6))V= g.he("enable_web_tiered_gel")?i6().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:q},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):i6().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),V.length>0&&J.set(a,V),(g.he("web_fp_via_jspb_and_json")&&b.writeThenSend||!g.he("web_fp_via_jspb_and_json"))&&delete u6[a];BzL(J,G,M,W,b,!1,X)}}; JMP=function(M=!1,W=200){const b=()=>{ey({writeThenSend:!0},M,W)},T=PA(M,W); var q=T===nFL||T===yML?5E3:UNs;g.he("web_gel_timeout_cap")&&!T.Z&&(q=oH(()=>{b()},q),T.Z=q); sK(T.V);q=g.F("LOGGING_BATCH_TIMEOUT",Ae("web_gel_debounce_ms",1E4));g.he("shorten_initial_gel_batch_timeout")&&wR&&(q=CCg);q=oH(()=>{Ae("gel_min_batch_size")>0?i6().getSequenceCount({cttAuthInfo:void 0,isJspb:M,tier:W})>=kMg&&b():b()},q); T.V=q}; BzL=function(M,W,b,T,q={},X,G){const V=Math.round((0,g.u)());let J=M.size;const B=KSl(G);for(const [D,a]of M){M=D;G=a;const E=g.Qh({context:g.ni(W.config_||g.Ei())});if(!g.mL(G)&&!g.he("throw_err_when_logevent_malformed_killswitch")){T();break}E.events=G;(G=gR[M])&&vFg(E,M,G);delete gR[M];const n=M==="visitorOnlyApprovedKey";mNG(E,V,n);LSl(q);const C=R=>{g.he("start_client_gcf")&&g.FO.N1(async()=>{await lul(R)}); J--;J||b()}; let l=0;const N=()=>{l++;if(q.bypassNetworkless&&l===1)try{g.Q7(W,B,E,po({writeThenSend:!0},n,C,N,X)),wR=!1}catch(R){g.Vr(R),T()}J--;J||b()}; try{g.Q7(W,B,E,po(q,n,C,N,X)),wR=!1}catch(R){g.Vr(R),T()}}}; DNl=function(M,W,b,T={},q,X){const G=Math.round((0,g.u)()),V={value:M.size};var J=new Map([...M]);for(const [N]of J){var B=N,D=M.get(B);J=new g.Y2;var a=W.config_||g.Ei(),E=new $n,n=new tIt;XK(n,1,a.L_);XK(n,2,a.K_);VJ(n,16,a.Kb);XK(n,17,a.innertubeContextClientVersion);if(a.vz){var C=a.vz,l=new Ci;C.coldConfigData&&XK(l,1,C.coldConfigData);C.appInstallData&&XK(l,6,C.appInstallData);C.coldHashData&&XK(l,3,C.coldHashData);C.hotHashData&&l.CD(C.hotHashData);gN(n,Ci,62,l)}(C=g.yp.devicePixelRatio)&& C!=1&&C$(n,65,aF(C));C=zk();C!==""&&XK(n,54,C);C=up();if(C.length>0){l=new Z_J;for(let R=0;R{g.he("start_client_gcf")&&g.FO.N1(async()=>{await lul(J)}); V.value--;V.value||b()},()=>{V.value--; V.value||b()},q); T.headers["Content-Type"]="application/json+protobuf";T.postBodyFormat="JSPB";T.postBody=M;g.Q7(W,X,"",T);wR=!1}; LSl=function(M){g.he("always_send_and_write")&&(M.writeThenSend=!1)}; po=function(M,W,b,T,q){M={retry:!0,onSuccess:b,onError:T,networklessOptions:M,dangerousLogToVisitorSession:W,eyz:!!q,headers:{},postBodyFormat:"",postBody:"",compress:g.he("compress_gel")||g.he("compress_gel_lr")};WW()&&(M.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.u)())));return M}; mNG=function(M,W,b){WW()||(M.requestTimeMs=String(W));g.he("unsplit_gel_payloads_in_logs")&&(M.unsplitGelPayloadsInLogs=!0);!b&&(W=g.F("EVENT_ID"))&&(b=fuP(),M.serializedClientEventId={serializedEventId:W,clientCounter:String(b)})}; fuP=function(){let M=g.F("BATCH_CLIENT_COUNTER")||0;M||(M=Math.floor(Math.random()*65535/2));M++;M>65535&&(M=1);XV("BATCH_CLIENT_COUNTER",M);return M}; vFg=function(M,W,b){let T;if(b.videoId)T="VIDEO";else if(b.playlistId)T="PLAYLIST";else return;M.credentialTransferTokenTargetId=b;M.context=M.context||{};M.context.user=M.context.user||{};M.context.user.credentialTransferTokens=[{token:W,scope:T}]}; Aa=function(M,W){var b=g.Ct("yt.logging.transport.enableScrapingForTest"),T=ip("il_payload_scraping");T=(T!==void 0?String(T):"")==="enable_il_payload_scraping";if(!b)if(T)qH=[],g.Uq("yt.logging.transport.enableScrapingForTest",!0),g.Uq("yt.logging.transport.scrapedPayloadsForTesting",qH),g.Uq("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Uq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Uq("yt.logging.transport.scrapeClientEvent",!0);else return;b=g.Ct("yt.logging.transport.scrapedPayloadsForTesting");T=g.Ct("yt.logging.transport.payloadToScrape");W&&(W=W.payload,(W=g.Ct("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W)())&&b.push(W));W=g.Ct("yt.logging.transport.scrapeClientEvent");if(T&&T.length>=1)for(let q=0;q{pOa().currentState==="none"?M():pOa().install({none:{callback:M}})},W):nv(M,0,W)}; sK=function(M){g.he("transport_use_scheduler")?g.FO.Oh(M):g.x7(M)}; lul=async function(M){M=M?.responseContext?.globalConfigGroup;var W=g.z(M,rMl),b=M?.hotHashData;const T=g.z(M,xNt),q=M?.coldHashData,X=vA().resolve(yi(Gu));X&&(b&&(W?await Uxp(X,b,W):await Uxp(X,b)),q&&(T?await CXs(X,q,T):await CXs(X,q)));W=M?.rawFinchStaticConfigGroup;(M=M?.finchStaticHashData)?(b=vA().resolve(yi(FSP)))?await b.DLv({config:W||{},kYz:M||""}):(W||M)&&Be(new g.EF("FinchConfigManagerService is not present, but Finch config data is present.")):W&&Be(new g.EF("Finch config data is present, but hash is missing."))}; PA=function(M,W=200){return M?W===300?nFL:i_S:W===300?yML:hzp}; b_J=function(M){if(g.he("enable_web_tiered_gel")){M=AMQ[M||""];var W=vA().resolve(yi(Gu))?.U_()?.loggingHotConfig?.eventLoggingConfig?.payloadPolicies;if(W)for(let b=0;bM!==void 0)}; g.nT=function(M=0){M=O_G(M);if(!M&&!g.F("USE_CSN_FALLBACK",!0))return null;M||(M="UNDEFINED_CSN");return M?M:null}; Q0L=function(M){for(const W of Object.values(cMl))if(g.nT(W)===M)return!0;return!1}; gFl=function(M,W,b){const T=dNs();(b=g.nT(b))&&delete T[b];W&&(T[M]=W)}; y9=function(M){return dNs()[M]}; wGl=function(M,W,b=0,T){if(M!==O_G(b)||W!==g.F(ac(b)))if(gFl(M,T,b),PCP(M,b),XV(ac(b),W),W=()=>{setTimeout(()=>{M&&g.V9("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:s0G,clientScreenNonce:M})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(W)}catch(q){W()}else W()}; UB=function(M,W){var b=g.F("VALID_SESSION_TEMPDATA_DOMAINS",[]),T=g.$F(window.location.href);T&&b.push(T);T=g.$F(M);if(g.ME(b,T)||!T&&WX(M,"/"))if(b=document.createElement("a"),g.OY(b,M),M=b.href)if(M=bC(M),M=TM(M))if(!W.csn&&(W.itct||W.ved)&&(W=Object.assign({csn:g.nT()},W)),q){var q=parseInt(q,10);isFinite(q)&&q>0&&pGl(M,W,q)}else pGl(M,W)}; pGl=function(M,W,b){M=Ycl(M);W=W?g.Vb(W):"";b=b||5;tA()&&g.Td(M,W,b)}; Ycl=function(M){for(let W of $hs)M=n_(M,W);return"ST-"+Bt(M).toString(36)}; M2L=function(M){if(M.name==="JavaException")return!0;M=M.stack;return M.includes("chrome://")||M.includes("-extension://")||M.includes("webkit-masked-url://")}; WZg=function(M){if(!M.stack)return!0;const W=!M.stack.includes("\n");return W&&M.stack.includes("ErrorType: ")||W&&M.stack.includes("Anonymous function (Unknown script")||M.stack.toLowerCase()==="not available"||M.fileName==="user-script"||M.fileName.startsWith("user-script:")?!0:!1}; kn=function(){if(!CT){var M=CT=new b9P;M.yq.length=0;M.HH.length=0;TKq(M,qGt)}return CT}; TKq=function(M,W){W.yq&&M.yq.unshift.apply(M.yq,W.yq);W.HH&&M.HH.unshift.apply(M.HH,W.HH)}; XiL=function(M){const W=M.length;let b=0;const T=()=>M.charCodeAt(b++); do{var q=KT(T);if(q===Infinity)break;const X=q>>3;switch(q&7){case 0:q=KT(T);if(X===2)return q;break;case 1:if(X===2)return;b+=8;break;case 2:q=KT(T);if(X===2)return M.substr(b,q);b+=q;break;case 5:if(X===2)return;b+=4;break;default:return}}while(b500));T++);T=q}else if(typeof M==="object")for(q in M){if(M[q]){a:{var X=q;var G=M[q],V=W,J=b;if(typeof G!=="string"||X!=="clickTrackingParams"&&X!=="trackingParams"){X=0;break a}X=(G=XiL(atob(G.replace(/-/g,"+").replace(/_/g,"/"))))?vW(`${X}.ve`,G,V,J):0}T+=X;T+=vW(q,M[q],W,b);if(T>500)break}}else b[W]=mG(M),T+=b[W].length;else b[W]=mG(M),T+=b[W].length;return T}; yNt=function(M,W,b){var T=M.videoId,q=g.LT(M),X=M.G(),G={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(EK()),referer:document.location.toString(),signatureTimestamp:20500},V=g.jQ();M.isAutonav&&(G.autonav=!0);V.UY(141)&&(G.autonavState=V.UY(140)?"STATE_OFF":"STATE_ON");G.autoCaptionsDefaultOn=V.UY(66);Glt(M)&&(G.autoplay=!0);X.D&&M.cycToken&&(G.cycToken=M.cycToken);X.enablePrivacyFilter&&(G.enablePrivacyFilter=!0);M.isFling&&(G.fling=!0);var J=M.forceAdsUrl;if(J){V={};var B=[];J=J.split(","); for(var D of J){var a=D.split("|");a.length!==3||D.includes("=")||(a[0]=`breaktype=${a[0]}`,a[1]=`offset=${a[1]}`,a[2]=`url=${a[2]}`);J={adtype:"video_ad"};for(var E of a){const [x,...A]=E.split("=");J[x]=A.join("=")}a=J.url;const l=J.presetad,N=J.viralresponseurl,R=Number(J.campaignid),f=J.bibliotecaadid;if(J.adtype==="in_display_ad")a&&(V.url=a),l&&(V.presetAd=l),N&&(V.viralAdResponseUrl=N),R&&(V.viralCampaignId=String(R)),f&&(V.bibliotecaAdId=f);else if(J.adtype==="video_ad"){const x={offset:{kind:"OFFSET_MILLISECONDS", value:String(Number(J.offset)||0)}};if(J=V2Q[J.breaktype])x.breakType=J;a&&(x.url=a);l&&(x.presetAd=l);N&&(x.viralAdResponseUrl=N);R&&(x.viralCampaignId=String(R));f&&(x.bibliotecaAdId=f);B.push(x)}}G.forceAdParameters={videoAds:B,inDisplayAd:V}}M.isInlinePlaybackNoAd&&(G.isInlinePlaybackNoAd=!0);M.isLivingRoomDeeplink&&(G.isLivingRoomDeeplink=!0);D=M.iX;if(D!=null){D={startWalltime:String(D)};if(E=M.JX)D.manifestDuration=String(E||14400);G.liveContext=D}M.mutedAutoplay&&(G.mutedAutoplay=!0,D=X.getWebPlayerContextConfig(), D?.embedsHostFlags?.allowMutedAutoplayDurationMode&&D?.embedsHostFlags?.allowMutedAutoplayDurationMode.includes(JNQ[M.mutedAutoplayDurationMode])&&(G.mutedAutoplayDurationMode=JNQ[M.mutedAutoplayDurationMode]));if(M.WP?0:M.Y9)G.splay=!0;D=M.vnd;D===5&&(G.vnd=D);D={};if(E=M.isMdxPlayback)D.triggeredByMdx=E;if(E=M.tW)D.skippableAdsSupported=E.split(",").includes("ska");if(B=M.m5){E=M.RQ;V=[];for(var n of BKJ(B)){B=n.platform;B={applicationState:n.xC?"INACTIVE":"ACTIVE",clientFormFactor:DhQ[B]||"UNKNOWN_FORM_FACTOR", clientName:azJ[n.RF]||"UNKNOWN_INTERFACE",clientVersion:n.deviceVersion||"",platform:E0s[B]||"UNKNOWN_PLATFORM"};J={};if(E){var C=void 0;try{C=JSON.parse(E)}catch(l){g.lR(l)}C&&(J={params:[{key:"ms",value:C.ms}]},C.advertising_id&&(J.advertisingId=C.advertising_id),C.limit_ad_tracking!==void 0&&C.limit_ad_tracking!==null&&(J.limitAdTracking=C.limit_ad_tracking),B.osName=C.os_name,B.userAgent=C.user_agent,B.windowHeightPoints=C.window_height_points,B.windowWidthPoints=C.window_width_points)}V.push({adSignalsInfo:J, remoteClient:B})}D.remoteContexts=V}n=M.sourceContainerPlaylistId;C=M.serializedMdxMetadata;if(n||C)E={},n&&(E.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),C&&(E.serializedMdxMetadata=C),D.mdxPlaybackSourceContext=E;G.mdxContext=D;n=W.width;n>0&&(G.playerWidthPixels=Math.round(n));if(W=W.height)G.playerHeightPixels=Math.round(W);b!==0&&(G.vis=b);if(b=X.widgetReferrer)G.widgetReferrer=b.substring(0,128);g.tP(X)&&G&&(G.ancestorOrigins=X.ancestorOrigins);M.defaultActiveSourceVideoId&&(G.compositeVideoContext= {defaultActiveSourceVideoId:M.defaultActiveSourceVideoId});if(X=X.getWebPlayerContextConfig())G.encryptedHostFlags=X.encryptedHostFlags;T={videoId:T,context:q,playbackContext:{contentPlaybackContext:G}};M.vg&&(T.playbackContext.reloadPlaybackContext={reloadPlaybackParams:M.vg?.reloadPlaybackParams});M.contentCheckOk&&(T.contentCheckOk=!0);if(q=M.clientPlaybackNonce)T.cpn=q;if(q=M.playerParams)T.params=q;if(q=M.playlistId)T.playlistId=q;M.racyCheckOk&&(T.racyCheckOk=!0);q=M.G();G=q.embedConfig;M.eI&& q.j("embeds_enable_per_video_embed_config")?T.serializedThirdPartyEmbedConfig=M.eI:G&&(T.serializedThirdPartyEmbedConfig=G);T.captionParams={};G=g.jQ().UY(65);M.deviceCaptionsOn!=null?T.captionParams.deviceCaptionsOn=M.deviceCaptionsOn:g.Zk(q)&&(T.captionParams.deviceCaptionsOn=G!=null?!G:!1);M.XI&&(T.captionParams.deviceCaptionsLangPref=M.XI);M.pZ.length?T.captionParams.viewerSelectedCaptionLangs=M.pZ:g.Zk(q)&&(G=g.Ic(),G?.length&&(T.captionParams.viewerSelectedCaptionLangs=G));G=M.fetchType==="onesie"&& M.j("html5_onesie_attach_po_token");X=M.fetchType!=="onesie"&&M.j("html5_non_onesie_attach_po_token");if(G||X)G=M.G(),G.XP&&(T.serviceIntegrityDimensions={},T.serviceIntegrityDimensions.poToken=G.XP);q.j("fetch_att_independently")&&(T.attestationRequest={omitBotguardData:!0});T.playbackContext||(T.playbackContext={});T.playbackContext.devicePlaybackCapabilities=n0Q(M);T.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&M.dK("noVp9",{});return T}; vW=function(M,W,b,T){b+=`.${M}`;M=mG(W);T[b]=M;return b.length+M.length}; mG=function(M){try{return(typeof M==="string"?M:String(JSON.stringify(M))).substr(0,500)}catch(W){return`unable to serialize ${typeof M} (${W.message})`}}; NH=function(M){g.O(M)}; g.lR=function(M){g.O(M,"WARNING")}; g.O=function(M,W="ERROR"){var b={};b.name=g.F("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=g.F("INNERTUBE_CONTEXT_CLIENT_VERSION");Uhp(M,b,W)}; Uhp=function(M,W,b="ERROR"){if(M){M.hasOwnProperty("level")&&M.level&&(b=M.level);if(g.he("console_log_js_exceptions")||["test","dev","autopush","staging"].includes(g.F("SERVER_VERSION"))){var T=[];T.push(`Name: ${M.name}`);T.push(`Message: ${M.message}`);M.hasOwnProperty("params")&&T.push(`Error Params: ${JSON.stringify(M.params)}`);M.hasOwnProperty("args")&&T.push(`Error args: ${JSON.stringify(M.args)}`);T.push(`File name: ${M.fileName}`);T.push(`Stacktrace: ${M.stack}`);window.console.log(T.join("\n"), M)}if(!(Cat>=5)){T=[];for(q of klS)try{q()&&T.push(q())}catch(C){}var q=T;q=[...KZq,...q];var X=NGq(M);T=X.message||"Unknown Error";const E=X.name||"UnknownError";var G=X.stack||M.V||"Not available";if(G.startsWith(`${E}: ${T}`)){var V=G.split("\n");V.shift();G=V.join("\n")}V=X.lineNumber||"Not available";X=X.fileName||"Not available";let n=0;if(M.hasOwnProperty("args")&&M.args&&M.args.length)for(var J=0;J=500);J++);else if(M.hasOwnProperty("params")&& M.params){const C=M.params;if(typeof M.params==="object")for(J in C){if(!C[J])continue;const l=`params.${J}`,N=mG(C[J]);W[l]=N;n+=l.length+N.length;if(n>500)break}else W.params=mG(C)}if(q.length)for(J=0;J=500);J++);navigator.vendor&&!W.hasOwnProperty("vendor")&&(W["device.vendor"]=navigator.vendor);W={message:T,name:E,lineNumber:V,fileName:X,stack:G,params:W,sampleWeight:1};J=Number(M.columnNumber);isNaN(J)||(W.lineNumber=`${W.lineNumber}:${J}`); if(M.level==="IGNORED")var B=0;else a:{M=kn();for(B of M.yq)if(W.message&&W.message.match(B.LU)){B=B.weight;break a}for(var D of M.HH)if(D.callback(W)){B=D.weight;break a}B=1}W.sampleWeight=B;B=W;for(var a of v0l){if(!a.Dw[B.name])continue;D=a.Dw[B.name];for(const C of D){D=B.message.match(C.zr);if(!D)continue;B.params["params.error.original"]=D[0];M=C.groups;W={};for(J=0;J1E3&&g.lR(new g.EF("IL Attach cache exceeded limit"))}G=eH(b,W);zF.has(G)?d4(b, W):SH.set(G,!0)}}T=T.filter(V=>{V.csn!==W?(V.csn=W,V=!0):V=!1;return V}); b={csn:W,parentVe:b.getAsJson(),childVes:g.dG(T,V=>V.getAsJson())}; W==="UNDEFINED_CSN"?oc("visualElementAttached",X,b):M?jH("visualElementAttached",b,M,X):g.V9("visualElementAttached",b,X)}; hCQ=function(M,W,b,T,q,X,G){cW(b,W);T=AP({cttAuthInfo:y9(W)||void 0,automatedLogEventSource:G},W);b={csn:W,ve:b.getAsJson(),eventType:1};q&&(b.clientData=q);W==="UNDEFINED_CSN"?oc("visualElementShown",T,b):M?jH("visualElementShown",b,M,T):g.V9("visualElementShown",b,T)}; ANJ=function(M,W,b,T=!1){const q=T?16:8;T=AP({cttAuthInfo:y9(W)||void 0,endOfSequence:T,automatedLogEventSource:void 0},W);b={csn:W,ve:b.getAsJson(),eventType:q};W==="UNDEFINED_CSN"?oc("visualElementHidden",T,b):M?jH("visualElementHidden",b,M,T):g.V9("visualElementHidden",b,T)}; Q9=function(M,W,b,T,q,X){zCq(M,W,b,void 0,T,q,X)}; zCq=function(M,W,b,T,q,X,G){cW(b,W);T=T||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";X=AP({cttAuthInfo:y9(W)||void 0,automatedLogEventSource:G},W);b={csn:W,ve:b.getAsJson(),gestureType:T};q&&(b.clientData=q);W==="UNDEFINED_CSN"?oc("visualElementGestured",X,b):M?jH("visualElementGestured",b,M,X):g.V9("visualElementGestured",b,X)}; u1G=function(){let M;M=Vi(16);const W=[];for(let b=0;b{g.Py(W,b=>{cW(b,M);const T=AP({cttAuthInfo:y9(M)||void 0,automatedLogEventSource:void 0},M);b={csn:M,ve:b.getAsJson(),eventType:4};M==="UNDEFINED_CSN"?oc("visualElementShown",T,b):g.V9("visualElementShown",b,T)})})()}; g.Yn=function(M,W){g.Je(()=>{g.Py(W,b=>{ANJ(void 0,M,b)})})()}; g.$X=function(M,W,b){g.Je(Q9)(void 0,M,W,b,void 0)}; Mu=function(M,W,b,T){g.Je(zCq)(void 0,M,W,b,T,void 0)}; WF=function(M){var W=":"+(O4.getInstance().Z++).toString(36);return M+W}; g.b9=function(M=!1){g.gz.call(this);this.m$=new g.ls(M);g.t(this,this.m$)}; Ta=function(){const M="ytp-id-"+SGl.toString();SGl++;return M}; qu=function(M,W,b,T){if(T.substring(0,2)==="{{")M.U1[T]=[W,b];else return T}; XE=function(M,W,b,T){if(b==="child"){g.B5(W);let X;T===void 0?X=void 0:X=!Array.isArray(T)||T&&typeof T.K==="string"?[T]:T;b=O9p(M,X);for(var q of b)W.appendChild(q)}else b==="style"?g.iq(W,"cssText",T?T:""):T===null||T===void 0?W.removeAttribute(b):(q=T.toString(),b==="href"&&(q=g.Fh(g.zp(q))),W.setAttribute(b,q))}; O9p=function(M,W){const b=[];if(!W)return b;for(const T of W){if(T==null)continue;W=T.nodeType;W===1||W===3?b.push(T):T&&typeof T.K==="string"?b.push(M.createElement(T)):T.element?b.push(T.element):typeof T==="string"&&T.indexOf("\n")!==-1?T.split("\n").forEach((q,X)=>{X>0&&b.push(g.Gr("BR"));b.push(g.V4(q))}):b.push(g.V4(T))}return b}; jw=function(M=null,W=null){if(M==null)return g.lR(Error("Got null or undefined adText object")),"";let b=g.JY(M.text);if(!M.isTemplated)return b;if(W==null)return g.lR(Error("Missing required parameters for a templated message")),b;for(const [T,q]of Object.entries(W))b=b.replace("{"+T+"}",q);return b}; PaQ=function(M=null){return M!=null&&(M=M.thumbnail,M!=null&&M.thumbnails!=null&&M.thumbnails.length!=0&&M.thumbnails[0].url!=null)?g.JY(M.thumbnails[0].url):""}; eCt=function(M=null){return M!=null&&(M=M.thumbnail,M!=null&&M.thumbnails!=null&&M.thumbnails.length!=0&&M.thumbnails[0].width!=null&&M.thumbnails[0].height!=null)?new g.i0(M.thumbnails[0].width||0,M.thumbnails[0].height||0):new g.i0(0,0)}; g.Ga=function(M){if(M.simpleText)return M.simpleText;if(M.runs){const W=[];for(const b of M.runs)b.text&&W.push(b.text);return W.join("")}return""}; g.VI=function(M){if(M.simpleText)return M=document.createTextNode(M.simpleText),M;const W=[];if(M.runs)for(let V=0;Vb!=null),M.Z.command&&(W=W.concat(M.Z.command))); return W||[]}; KDl=function(){II==null&&(II=new kxs);return II}; Nu=function(M,W){if(M.simpleText){a:{M=M.simpleText;if(W&&(W=vzQ(M))){W=jU("SPAN",null,W);break a}W=g.V4(M)}return W}const b=[];if(M.runs)for(let T=0;Tq.baseUrl),KDl().register(b,M),g.pY(b,"ytp-ad-has-logging-urls")); return b||jU("SPAN",null,T)}; vzQ=function(M){M=M.split(/(?:\r\n|\r|\n)/g);if(M.length>1){const W=[M[0]];for(let b=1;bM.A(q))); W.confirmLabel&&(W=g.Ga(W.confirmLabel),M.updateValue("confirmLabel",W),M.Z.J(M.O,"click",q=>M.C(q))); M.Z.J(M.sY,"click",q=>M.S(q))}; RI=function(M){M.O&&(M.isToggled()?(g.pr(M.C,!1),g.pr(M.S,!0),M.V.setAttribute("aria-checked",!0)):(g.pr(M.C,!0),g.pr(M.S,!1),M.V.setAttribute("aria-checked",!1)))}; lqt=function(M,W){let b=null;M.B&&(b=(W?[M.B.defaultServiceEndpoint,M.B.defaultNavigationEndpoint]:[M.B.toggledServiceEndpoint]).filter(T=>T!=null)); return b||[]}; NXs=function(M,W){var b=W.cancelRenderer&&W.cancelRenderer.buttonRenderer||null;b&&(M.Z=new rB(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,["ytp-ad-feedback-dialog-close-button"],"button"),g.t(M,M.Z),M.Z.init(WF("button"),b,M.macros),M.Z.listen("click",M.W,M),M.Z.cY(M.element));W.title&&(b=g.Ga(W.title),M.updateValue("title",b));W.reasonsTitle&&(b=g.Ga(W.reasonsTitle),M.updateValue("reasonsTitle",b));W.reasons&&toy(M,W.reasons);W.cancelLabel&&(b=g.Ga(W.cancelLabel),M.updateValue("cancelLabel", b),g.o$(M.S,"click",()=>M.W())); W.confirmLabel&&(b=g.Ga(W.confirmLabel),M.updateValue("confirmLabel",b),g.o$(M.C,"click",()=>ZFt(M))); W.undoRenderer&&Iqp(M,W.undoRenderer)}; toy=function(M,W){for(const T of W){W=T.reason;if(W==null){g.lR(Error("AdFeedbackReason.reason was not set."));continue}var b=T.endpoint;if(b==null){g.lR(Error("AdFeedbackReason.endpoint was not set."));continue}const q=new HFy(W,b);g.t(M,q);W=M.O;b=q.BP();W.appendChild(b);M.A.push(q)}}; ZFt=function(M){var W=M.A.filter(b=>b.isChecked()); W.length!==0&&(W=W[0].getCommand(),M.layoutId?M.Gv.executeCommand(W,M.layoutId):g.O(Error("Missing layoutId for ad feedback dialog.")),M.api.onAdUxClicked("ad-feedback-dialog-confirm-button",M.layoutId),M.publish("a"),M.hide())}; Iqp=function(M,W){if(W=W&&W.buttonRenderer||null)W.serviceEndpoint?(M.V=new rB(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.t(M,M.V),M.V.init(WF("ad-feedback-undo-mute-button"),W,M.macros),M.V.listen("click",M.An,M),M.V.cY(M.sY)):g.lR(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; fqq=function(M){M.Z&&M.Z.listen("click",M.sY,M);g.o$(M.C,"click",()=>M.sY())}; rXJ=function(M,W){if(W=W.content&&W.content.adFeedbackRenderer||null)M.V=new RdS(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv),g.t(M,M.V),M.V.init(WF("ad-feedback-dialog"),W,M.macros),M.V.cY(M.O),M.V.subscribe("a",()=>M.publish("c"))}; FDS=function(M,W){if(W=W.content&&W.content.confirmDialogRenderer||null)M.A=new xCQ(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv),g.t(M,M.A),M.A.init(WF("ad-mute-confirm-dialog"),W,M.macros),M.A.cY(M.O),M.A.subscribe("b",()=>M.publish("c"))}; zdt=function(M,W,b){M.button==null?g.O(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(M.V&&g.pY(M.V.element,"ytp-ad-info-hover-text-short"),(W=W&&W.serviceEndpoint&&g.z(W.serviceEndpoint,iFt)||null)?(hdl(M,W,b),M.button.listen("click",()=>{M.Z&&!M.Z.Ta&&(M.Z.show(),AXQ(M))})):M.button.listen("click",()=>AXQ(M)))}; hdl=function(M,W,b){W=W.dialog&&g.z(W.dialog,uXS)||null;W==null?g.O(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(M.Z=new SuQ(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,M.A),g.t(M,M.Z),M.Z.init(WF("ad-info-dialog"),W,b),M.Z.cY(M.A),M.Z.subscribe("d",()=>M.publish("f")),M.Z.subscribe("c",()=>M.publish("e")))}; AXQ=function(M){M.api.onAdUxClicked("ad-info-icon-button",M.layoutId)}; xX=function(M,W){W&&g.nr(M.element,jw(M.Z,W))}; FE=function(M){M.Z&&M.O===-1&&(M.O=M.Z.subscribe("h",M.B,M),M.Lp=M.Z.subscribe("g",M.S,M),M.B())}; i9=function(M){M.Z!=null&&M.O!==-1&&(M.Z.Jj(M.O),M.Z.Jj(M.Lp),M.Lp=-1,M.O=-1)}; h1=function(M,W){M=M.element.element;W?M.setAttribute("aria-hidden","true"):M.removeAttribute("aria-hidden")}; OFJ=function(M){switch(M){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:PX(M,"unknown result type")}}; Pvg=function(M,W){let b=1;M.isTrusted===!1&&(b=0);XV("ISDSTAT",b);A1(b,"i.s_",{triggerContext:"sk",metadata:W});return b}; edL=function(M,W){const b=[];W?W.isTrusted===!0?b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):W.isTrusted===!1?b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):b.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");A1(0,"a.s_",{metadata:M,states:b});XV("ASDSTAT",0)}; A1=function(M,W,b){W=dCJ[W];const T={detected:M===0,source:`${W.V}${b.triggerContext??""}${b.bD??""}`,detectionStates:b.states,durationMs:b.FN};b.metadata&&(T.contentCpn=b.metadata.contentCpn,T.adCpn=b.metadata.adCpn);g.V9("biscottiBasedDetection",T);W.Z!==void 0&&(b=Number(g.F("CATSTAT",0)),W.Z!==void 0?(W=W.Z,M=OFJ(M),M=b&~(3<W.adLifecycleCommand?ozg(W.adLifecycleCommand):!1)}; ozg=function(M){return M.action==="END_LINEAR_AD"||M.action==="END_LINEAR_AD_PLACEMENT"}; Q3l=function(M,W){M.C||(M.C=!0,M.V&&(W?M.V.sY.hide():M.V.hide()),W?(M=M.A,M.OY.show(),M.show()):M.A.show())}; g.O3=function(M,W){var b=Math.abs(Math.floor(M)),T=Math.floor(b/86400);const q=Math.floor(b%86400/3600),X=Math.floor(b%3600/60);b=Math.floor(b%60);if(W){W="";T>0&&(W+=` ${T} `+"D\u00edas");if(T>0||q>0)W+=` ${q} `+"Horas";W+=` ${X} `+"Minutos";W+=` ${b} `+"Segundos";T=W.trim()}else{W="";T>0&&(W+=`${T}:`,q<10&&(W+="0"));if(T>0||q>0)W+=`${q}:`,X<10&&(W+="0");W+=`${X}:`;b<10&&(W+="0");T=W+b}return M>=0?T:`-${T}`}; g.PF=function(M){return(!("button"in M)||typeof M.button!=="number"||M.button===0)&&!("shiftKey"in M&&M.shiftKey)&&!("altKey"in M&&M.altKey)&&!("metaKey"in M&&M.metaKey)&&!("ctrlKey"in M&&M.ctrlKey)}; gzg=function(M,W){return M.V+W*(M.Z-M.V)}; ew=function(M,W,b){return M.Z-M.V?g.fy((W-M.V)/(M.Z-M.V),0,1):b!=null?b:Infinity}; s3t=function(M){M=M.api.G();return g.dB(M)&&M.V}; g.oI=function(M){M&=16777215;var W=[(M&16711680)>>16,(M&65280)>>8,M&255];M=W[0];var b=W[1];W=W[2];M=Number(M);b=Number(b);W=Number(W);if(M!=(M&255)||b!=(b&255)||W!=(W&255))throw Error('"('+M+","+b+","+W+'") is not a valid RGB color');b=M<<16|b<<8|W;return M<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)}; g.QI=function(){if(!cF){cF=new zA(new wIl);const M=Ae("client_streamz_web_flush_count",-1);M!==-1&&(cF.B=M)}return cF}; pIP=function(){let M=!1;try{M=!!window.sessionStorage.getItem("session_logininfo")}catch{M=!0}return(g.F("INNERTUBE_CLIENT_NAME")==="WEB"||g.F("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&M}; hz=function(M,W,b){var T;((M^33)&7)==2&&(T=W[y[11]]?W[y[11]][y[21]](y[32]):W[y[10]]===y[32]);if(!(M+4&15))for(b=(b%W[y[6]]+W[y[6]])%W[y[6]];b--;)W[y[77]](W[y[74]]());M<<2>=10&&M<<1<18&&(T=W!==null);if((M-2^10)>=M&&(M-4^21){delete M.Z[W.encryptedTokenJarContents]},b*1E3); M.V&&g.Td("CONSISTENCY",W.encryptedTokenJarContents,b,void 0,!0)}}; WZ=function(M){return M.localStorage===void 0?new Oi("yt-client-location"):M.localStorage}; g.ok=function(M,W=!1,b=!1){var T=g.F("INNERTUBE_CONTEXT");if(!T)return g.O(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};T=g.Qh(T);g.he("web_no_tracking_params_in_shell_killswitch")||delete T.clickTracking;T.client||(T.client={});var q=T.client;q.clientName==="MWEB"&&q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(q.clientFormFactor=g.F("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");q.screenWidthPoints=window.innerWidth;q.screenHeightPoints=window.innerHeight;q.screenPixelDensity= Math.round(window.devicePixelRatio||1);q.screenDensityFloat=window.devicePixelRatio||1;q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var X=g.jQ();var G="USER_INTERFACE_THEME_LIGHT";X.UY(165)?G="USER_INTERFACE_THEME_DARK":X.UY(174)?G="USER_INTERFACE_THEME_LIGHT":!g.he("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(G="USER_INTERFACE_THEME_DARK");X=GPg()||G;q.userInterfaceTheme= X;if(!W){if(X=BNS())q.connectionType=X;g.he("web_log_effective_connection_type")&&(X=aVg())&&(T.client.effectiveConnectionType=X)}g.he("web_log_memory_total_kbytes")&&g.yp.navigator?.deviceMemory&&(T.client.memoryTotalKbytes=`${g.yp.navigator?.deviceMemory*1E6}`);if(g.he("web_gcf_hashes_innertube")){var V=kJa();V&&(X=V.coldConfigData,G=V.coldHashData,V=V.hotHashData,T.client.configInfo=T.client.configInfo||{},X&&(T.client.configInfo.coldConfigData=X),G&&(T.client.configInfo.coldHashData=G),V&&(T.client.configInfo.hotHashData= V))}X=g.UX(g.yp.location.href);!g.he("web_populate_internal_geo_killswitch")&&X.internalcountrycode&&(q.internalGeo=X.internalcountrycode);q.clientName==="MWEB"||q.clientName==="WEB"?(q.mainAppWebInfo||(q.mainAppWebInfo={}),q.mainAppWebInfo.graftUrl=g.yp.location.href,g.he("kevlar_woffle")&&JcS.instance&&(X=JcS.instance,q.mainAppWebInfo.pwaInstallabilityStatus=!X.Z&&X.V?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),q.mainAppWebInfo.webDisplayMode=T2(),q.mainAppWebInfo.isWebNativeShareAvailable= navigator&&navigator.share!==void 0):q.clientName==="TVHTML5"&&(!g.he("web_lr_app_quality_killswitch")&&(X=g.F("LIVING_ROOM_APP_QUALITY"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{appQuality:X})),X=g.F("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{certificationScope:X}));if(!g.he("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!=="undefined")try{var J=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch{}J=void 0}J&&(q.timeZone=J)}(J= zk())?q.experimentsToken=J:delete q.experimentsToken;q=up();bA.instance||(bA.instance=new bA);J=iI(bA.instance.Z);T.request={...T.request,internalExperimentFlags:q,consistencyTokenJars:J};!g.he("web_prequest_context_killswitch")&&(q=g.F("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(T.request.externalPrequestContext=q);J=g.jQ();q=J.UY(58);J=J.get("gsml","");T.user={...T.user};q&&(T.user.enableSafetyMode=q);J&&(T.user.lockedSafetyMode=!0);g.he("warm_op_csn_cleanup")?b&&(W=g.nT())&&(T.clientScreenNonce=W): !W&&(W=g.nT())&&(T.clientScreenNonce=W);M&&(T.clickTracking={clickTrackingParams:M});if(M=g.Ct("yt.mdx.remote.remoteClient_"))T.remoteClient=M;TX.getInstance().setLocationOnInnerTubeContext(T);try{var B=wA(),D=B.bid;delete B.bid;T.adSignalsInfo={params:[],bid:D};for(const [a,E]of Object.entries(B))B=a,D=E,T.adSignalsInfo.params?.push({key:B,value:`${D}`});if(T.client?.clientName==="TVHTML5"||T.client?.clientName==="TVHTML5_UNPLUGGED"){const a=g.F("INNERTUBE_CONTEXT");a.adSignalsInfo&&(T.adSignalsInfo.advertisingId= a.adSignalsInfo.advertisingId,T.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",T.adSignalsInfo.limitAdTracking=a.adSignalsInfo.limitAdTracking)}}catch(a){g.O(a)}return T}; aot=function(M,W){if(!M)return!1;var b=g.z(M,BiG)?.signal;if(b&&W.jo)return!!W.jo[b];if((b=g.z(M,DSa)?.request)&&W.Cd)return!!W.Cd[b];for(const T in M)if(W.Kd[T])return!0;return!1}; EQg=function(M){const W={"Content-Type":"application/json"};g.F("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=g.F("EOM_VISITOR_DATA"):g.F("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=g.F("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=g.F("LOGGED_IN",!1);g.F("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=g.F("DEBUG_SETTINGS_METADATA"));M!=="cors"&&((M=g.F("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=M),(M=g.F("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]= M),(M=g.F("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=M),(M=g.F("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=M));(M=g.F("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=M);return W}; qV=function(M){return()=>new M}; ycP=function(M){if(M.length===1)return M[0];var W=nQq.UNKNOWN_INTERFACE;if(W){W=new RegExp(W);for(var b of M)if(W.exec(b))return b}const T=[];Object.entries(nQq).forEach(([q,X])=>{"UNKNOWN_INTERFACE"!==q&&T.push(X)}); b=new RegExp(T.join("|"));M.sort((q,X)=>q.length-X.length); for(const q of M)if(!b.exec(q))return q;return M[0]}; g.XN=function(M){return`/youtubei/v1/${ycP(M)}`}; jM=function(M){return g.Ct("ytcsi."+(M||"")+"data_")||USs(M)}; CJL=function(){const M=jM();M.info||(M.info={});return M.info}; GX=function(M){M=jM(M);M.metadata||(M.metadata={});return M.metadata}; VC=function(M){M=jM(M);M.tick||(M.tick={});return M.tick}; Js=function(M){M=jM(M);if(M.gel){const W=M.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else M.gel={gelTicks:{},gelInfos:{}};return M.gel}; kPG=function(M){M=Js(M);M.gelInfos||(M.gelInfos={});return M.gelInfos}; KIl=function(){const M=Js();M.preLoggedGelInfos||(M.preLoggedGelInfos=[]);return M.preLoggedGelInfos}; BZ=function(M){let W=jM(M).nonce;W||(W=g.Ja(16),jM(M).nonce=W);return W}; USs=function(M){const W={tick:{},info:{}};g.Uq("ytcsi."+(M||"")+"data_",W);return W}; vQJ=function(){let M=g.Ct("ytcsi.debug");M||(M=[],g.Uq("ytcsi.debug",M),g.Uq("ytcsi.reference",{}));return M}; LIJ=function(M){const W=vQJ();W.push(M);g.he("limit_ytcsi_debug_array_size")&&W.length>mSa&&W.splice(0,W.length-mSa)}; Dr=function(M){M=M||"";const W=lop();if(W[M])return W[M];const b={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};LIJ(b);return W[M]=b}; tkl=function(M){M=M||"";const W=lop();W[M]&&delete W[M];const b={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};LIJ(b);W[M]=b}; lop=function(){const M=g.Ct("ytcsi.reference");if(M)return M;vQJ();return g.Ct("ytcsi.reference")}; aD=function(M){return ZNt[M]||"LATENCY_ACTION_UNKNOWN"}; foL=function(M,W,b={}){var T=Math.round(b.timestamp||(0,g.u)());qx(M,1,T{const T=(0,g.u)();for(const q in yC)yC[q]&&T-yC[q].time>6E4&&delete yC[q];M&&(M.Z=0)},5E3)); return b.count>5?(b.count===6&&Math.random()*1E5<1&&(b=new g.EF("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||g.lR(b)),!0):!1}; rcP=function(){var M;g.he("csi_use_performance_navigation_timing")?(M=CB?.getEntriesByType?.("navigation")?.[0]?.toJSON?.())?(M.requestStart=kD(M.requestStart),M.responseEnd=kD(M.responseEnd),M.redirectStart=kD(M.redirectStart),M.redirectEnd=kD(M.redirectEnd),M.domainLookupEnd=kD(M.domainLookupEnd),M.connectStart=kD(M.connectStart),M.connectEnd=kD(M.connectEnd),M.responseStart=kD(M.responseStart),M.secureConnectionStart=kD(M.secureConnectionStart),M.domainLookupStart=kD(M.domainLookupStart),M.isPerformanceNavigationTiming= !0):M=CB.timing:M=g.he("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(CB.timing)):CB.timing;return M}; kD=function(M){return Math.round(KB()+M)}; KB=function(){return(g.he("csi_use_time_origin")||g.he("csi_use_time_origin_tvhtml5"))&&CB.timeOrigin?Math.floor(CB.timeOrigin):CB.timing.navigationStart}; xSt=function(){const M=KIl(),W=kPG();var b=void 0;for(var T=0;T{Xf(W,V);Xf(X,V);G=!0}; for(const V of M)q(V);G&&LB(X)}}; lA=function(M,W){vZ("_start",M,W)}; LB=function(M,W){if(!g.he("web_csi_action_sampling_enabled")||!jM(W).actionDisabled){var b=Dr(W||"");Xf(b.info,M);M.loadType&&(b=M.loadType,GX(W).loadType=b);Xf(kPG(W),M);b=BZ(W);W=jM(W).cttAuthInfo;nB().info(M,b,W)}}; FIl=function(){return(vA().resolve(yi(Gu))?.U_()?.loggingHotConfig?.csiConfig?.debugTicks??[]).map(M=>Object.values(M)[0])}; vZ=function(M,W,b){if(!g.he("web_csi_action_sampling_enabled")||!jM(b).actionDisabled){var T=BZ(b),q;if(q=g.he("web_csi_debug_sample_enabled")&&T){vA().resolve(yi(Gu))?.U_()&&!iNQ&&(iNQ=!0,vZ("gcfl",(0,g.u)(),b));q=vA().resolve(yi(Gu))?.U_()?.loggingHotConfig?.csiConfig?.debugSampleWeight||0;var X;if(X=q!==0)b:{X=FIl();if(X.length>0)for(let V=0;V{W.name.startsWith("mark_")&&CB.clearMarks?.(W.name)})}; zFL=function(){switch(QFq()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; uya=function(M){const W={},b=(T,q,X)=>{q=q.match("_rid")?q.split("_rid")[0]:q;typeof X==="number"&&(X=JSON.stringify(X));T.requestIds?T.requestIds.push({endpoint:q,id:X}):T.requestIds=[{endpoint:q,id:X}]}; for(const [T,q]of Object.entries(M)){M=T;const X=q;switch(M){case "GetBrowse_rid":b(W,M,X);break;case "GetGuide_rid":b(W,M,X);break;case "GetHome_rid":b(W,M,X);break;case "GetPlayer_rid":b(W,M,X);break;case "GetSearch_rid":b(W,M,X);break;case "GetSettings_rid":b(W,M,X);break;case "GetTrending_rid":b(W,M,X);break;case "GetWatchNext_rid":b(W,M,X);break;case "yt_red":W.isRedSubscriber=!!X;break;case "yt_ad":W.isMonetized=!!X}}return W}; Sjt=function(M,W){M=document.querySelector(M);if(!M)return!1;var b="";const T=M.nodeName;T==="SCRIPT"?(b=M.src,b||(b=M.getAttribute("data-timing-href"))&&(b=window.location.protocol+b)):T==="LINK"&&(b=M.href);Qd(document)&&M.setAttribute("nonce",Qd(document));return b?(M=CB.getEntriesByName(b))&&M[0]&&(M=M[0],b=KB(),vZ("rsf_"+W,b+Math.round(M.fetchStart)),vZ("rse_"+W,b+Math.round(M.responseEnd)),M.transferSize!==void 0&&M.transferSize===0)?!0:!1:!1}; ONt=function(){const M=window.location.protocol;var W=CB.getEntriesByType("resource");W=g.et(W,b=>b.name.indexOf(`${M}//fonts.gstatic.com/s/`)===0); (W=cy(W,(b,T)=>T.duration>b.duration?T:b,{duration:0}))&&W.startTime>0&&W.responseEnd>0&&(vZ("wffs",kD(W.startTime)),vZ("wffe",kD(W.responseEnd)))}; PJg=function(M,W,b){CB&&CB.measure&&(M.startsWith("measure_")||(M="measure_"+M),b?CB.measure(M,W,b):W?CB.measure(M,W):CB.measure(M))}; eFt=function(M){var W=mK("aft",M);if(W)return W;W=g.F((M||"")+"TIMING_AFT_KEYS",["ol"]);const b=W.length;for(let T=0;Tb.name==="first-paint"))return kD(M.startTime)}let W; g.he("csi_use_performance_navigation_timing")?W=CB.getEntriesByType("first-paint")[0].startTime:W=CB.timing.las;return W?Math.max(0,W):0}; HZ=function(M){USs(M);gQq();Acy();M||(g.F("TIMING_ACTION")&&XV("PREVIOUS_ACTION",g.F("TIMING_ACTION")),XV("TIMING_ACTION",""))}; sgq=function(){var M=["pbs","pbu"];g.Je(()=>{Dr("").info.actionType="watch";M&&XV("TIMING_AFT_KEYS",M);XV("TIMING_ACTION","watch");var W=uya(g.F("TIMING_INFO",{}));Object.keys(W).length>0&&LB(W);W={isNavigation:!0,actionType:aD(g.F("TIMING_ACTION"))};var b=g.F("PREVIOUS_ACTION");b&&(W.previousAction=aD(b));if(b=g.F("CLIENT_PROTOCOL"))W.httpProtocol=b;if(b=g.F("CLIENT_TRANSPORT"))W.transportProtocol=b;(b=g.nT())&&b!=="UNDEFINED_CSN"&&(W.clientScreenNonce=b);b=zFL();if(b===1||b===-1)W.isVisible=!0; b=GX().loadType==="cold";var T=CJL();b||(b=T.yt_lt==="cold");if(b){W.loadType="cold";b=CJL();T=rcP();let G=KB();const V=g.F("CSI_START_TIMESTAMP_MILLIS",0);V>0&&!g.he("embeds_web_enable_csi_start_override_killswitch")&&(G=V);G&&(vZ("srt",T.responseStart),b.prerender!==1&&lA(G));b=Qga();b>0&&vZ("fpt",b);b=rcP();b.isPerformanceNavigationTiming&&LB({performanceNavigationTiming:!0},void 0);vZ("nreqs",b.requestStart,void 0);vZ("nress",b.responseStart,void 0);vZ("nrese",b.responseEnd,void 0);b.redirectEnd- b.redirectStart>0&&(vZ("nrs",b.redirectStart,void 0),vZ("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(vZ("ndnss",b.domainLookupStart,void 0),vZ("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(vZ("ntcps",b.connectStart,void 0),vZ("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=KB()&&b.connectEnd-b.secureConnectionStart>0&&(vZ("nstcps",b.secureConnectionStart,void 0),vZ("ntcpe",b.connectEnd,void 0));CB&&"getEntriesByType"in CB&&ONt();b=[];if(document.querySelector&& CB&&CB.getEntriesByName)for(q in fB)fB.hasOwnProperty(q)&&(T=fB[q],Sjt(q,T)&&b.push(T));var q=b;if(q.length>0){W.resourceInfo=[];for(var X of q)W.resourceInfo.push({resourceCache:X})}}LB(W);xSt();NV(!0);X=g.F("TIMING_ACTION");g.Ct("ytglobal.timingready_")&&X&&RD()&&eFt()&&hFp()})()}; w7G=function(){var M={};g.Je(()=>{RD()&&rO("aa",void 0,void 0);tkl();HZ();NV(!1);M.cttAuthInfo&&(jM().cttAuthInfo=M.cttAuthInfo);XV("TIMING_AFT_KEYS",[]);M.q1T?g.xD({loadType:"hot"}):g.xD({loadType:"warm"});XV("TIMING_ACTION","");delete g.F("TIMING_INFO",{}).yt_lt;g.Je(lA)(M.startTime,void 0)})()}; FN=function(M,W={}){g.Je(()=>{p7P(M);var b=W.sampleRate;if(!g.he("web_csi_action_sampling_enabled")||b===void 0||b<=1)b=!1;else{var T=BZ(M);b=rNQ(T)%b!==0}b&&(jM(M).actionDisabled=!0);Dr(M||"").info.actionType=M;W.cttAuthInfo&&(jM(M).cttAuthInfo=W.cttAuthInfo);XV(M+"TIMING_ACTION",M);g.Je(lA)(W.startTime,M);b={actionType:aD(M)};W.vhv&&(b.previousAction=aD(g.F("TIMING_ACTION")));(T=g.nT())&&T!=="UNDEFINED_CSN"&&(b.clientScreenNonce=T);g.xD(b,M);NV(!0,M)})()}; p7P=function(M){g.Je(()=>{RD(M)&&rO("aa",void 0,M);tkl(M);HZ(M)})()}; RD=function(M){return g.Je(()=>iA("_start",M))()}; g.xD=function(M,W,b=!1){g.Je(LB)(M,W,b)}; rO=function(M,W,b){return g.Je(vZ)(M,W,b)}; Yjy=function(M){g.Je(PJg)("action_finished",M,void 0)}; iA=function(M,W){return g.Je(()=>{const b=VC(W);return M in b})()}; Mqg=function(M){if(!g.he("universal_csi_network_ticks"))return"";M=MN(M)||"";const W=Object.keys($BL);for(let b=0;b{}; const W=$BL[M];return W?(hs(W),()=>{var b=g.he("universal_csi_network_ticks")?(b=W4t[M])?hs(b):!1:!1;return b}):()=>{}}; hs=function(M,W,b){return g.Je(()=>{if(iA(M,b))return!1;rO(M,W,b);return!0})()}; As=function(M,W,b){g.Je(()=>{if(!RD(b)||iA(M,b))return!1;rO(M,W,b);return!0})()}; TAl=function(){g.Je(()=>{const M=BZ();requestAnimationFrame(()=>{setTimeout(()=>{M===BZ()&&rO("ftl",void 0,void 0)},0)})})()}; qoP=function(M,W,b,T,q){if(zX.instance!==void 0){if(T=zX.instance,M=[M!==T.A,W!==T.va,b!==T.Z,q!==T.B,!1,!1,!1],M.some(X=>X))throw new g.EF("InnerTubeTransportService is already initialized",M); }else zX.instance=new zX(M,W,b,T,q)}; Xsa=function(M,W){a:{M=M.A;var b=g.z(W,BiG)?.signal;if(b&&M.jo&&(b=M.jo[b])){var T=b();break a}if((b=g.z(W,DSa)?.request)&&M.Cd&&(b=M.Cd[b])){T=b();break a}for(T in W)if(M.Kd[T]&&(W=M.Kd[T])){T=W();break a}T=void 0}if(T!==void 0)return Promise.resolve(T)}; jks=function(M,W,b){M=M.Z.W8(W?.mD?.identity||kw,{sessionIndex:W?.mD?.sessionIndex});return{...EQg(b),...M}}; Gjl=async function(M,W,b){M=await g.fG(M.Z.W8(W?.mD?.identity||kw,{sessionIndex:W?.mD?.sessionIndex}));return Promise.resolve({...EQg(b),...M})}; ESp=async function(M,W,b,T=()=>{}){var q=W.config?.wC?.YU; if(q&&M.B&&M.B.has(q)&&!W.config?.wC?.disableCache){var X=await M.B.get(q);if(X&&!X.isExpired())return T=Vqg(X),g.he("web_process_response_store_responses")&&!X.isProcessed()&&(Jqy(M,T,W),await BAt(M.B,q)),Promise.resolve(T)}await DBa(W);(q=W.config?.requestKey)&&M.V.has(q)?b=M.V.get(q):(X=JSON.stringify(W.Sp),W.DI={...W.DI,headers:{...(W.DI?.headers??{}),...b}},b={...W.DI},W.DI.method==="POST"&&(b={...b,body:X}),W.config?.Dh&&rO(W.config.Dh),b=M.va.fetch(W.input,b,W.config),q&&M.V.set(q,b));(b=await b)&& g.he("web_streaming_player")&&Array.isArray(b)&&(b=b[0].playerResponse);if(b&&"error"in b&&b?.error?.details){X=b.error.details;for(const G of X)(X=G["@type"])&&amG.indexOf(X)>-1&&(delete G["@type"],b=G)}q&&M.V.has(q)&&M.V.delete(q);W.config?.YE&&rO(W.config.YE);Jqy(M,b,W);W.config?.iP&&rO(W.config.iP);T();return b||void 0}; uA=function(M,W,b){const T=Xsa(M,W);return T?new g.Zm(async(q,X)=>{const G=(await T).S(W,b,kw);G?(s3(G.input),X=G.DI?.mode==="cors"?"cors":void 0,X=M.Z.xW?jks(M,G.config,X):await Gjl(M,G.config,X),q(ESp(M,G,X))):X(new g.EF("Error: Failed to build request for command.",W))}):Rk(new g.EF("Error: No request builder found for command.",W))}; g.SM=function(M,W,b,T,q={mD:{identity:kw}}){let X=()=>{}; X=bGJ(Mqg(b));W.context||(W.context=g.ok(T,!0));return new g.Zm(async G=>{var V=j9(b);V=ve(V)?"same-origin":"cors";V=M.Z.xW?jks(M,q,V):await Gjl(M,q,V);var J=Nvl(j9(b));J={input:J,DI:Gd(J),Sp:W,config:q};G(ESp(M,J,V,X))})}; DBa=async function(M){if(M?.Sp?.context){M=M.Sp.context;for(const W of[])await W.eFT(M)}}; Jqy=function(M,W,b){if(W&&!W?.sequenceMetaData?.skipProcessing&&M.S)for(const T of nSG)M.S[T]&&M.S[T].handleResponse(W,b)}; Vqg=function(M){return{...M.data.innertubeResponse,cacheMetadata:{isCacheHit:!0}}}; BAt=async function(M,W){const b=M.Z.get(W);b&&(b.entryData.isProcessed=!0,await yql(M,W,b.entryData))}; yql=async function(M,W,b){var T=M.V;if(b.expireTimestampMs){T=Number(b.expireTimestampMs)-Math.round((0,g.u)());const q=Ae("mweb_override_response_store_expiration_ms");q>0&&q{M.remove(W)},T); M.Z.set(W,{entryData:b,timer:T})}; CUP=function(M,W){if(M=M.Z.get(W))return new UBS(M.entryData)}; kjg=function(M,W){const b=M.Z.get(W);b&&(clearTimeout(b.timer),M.Z.delete(W))}; O2=function(M,W,b){if(!g.he("state_tags_killswitch")){var T=new K4L(W);if((T.Z?.stateTagsModified||[]).length>0){var q=M.Z.Z4();for(var X of q){var G=CUP(M.Z,X);if(G){a:{q=T.Z?.stateTagsModified||[];G=(new K4L(Vqg(G))).Z?.relevantStateTags||[];for(var V of G)if(V.stateTag!=null&&q.includes(V.stateTag)&&V.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){q=!0;break a}q=!1}q&&kjg(M.Z,X)}}}}T=W.responseContext?.maxAgeSeconds;if(b&&T&&Number(T)>0){T=Number(T)*1E3;X=Math.round((0,g.u)()); V=X.toString();W={innertubeResponse:W,serverDateTimestampMs:V,lastModifiedTimestampMs:V,expireTimestampMs:(X+T).toString(),isProcessed:!0};if(T=g.F("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=T;M.Z.put(b,new UBS(W))}}; vSt=function(M,W,b){if(M.Z){const T=MN(n_(W,"key"))||"/UNKNOWN_PATH";M.Z.start(T)}M=b;g.he("wug_networking_gzip_request")&&(M=cKg(b));return new window.Request(W,M)}; g.Mq=function(M,W,b){if(!PZ){const G=vA();UK(G,{rM:mBS,d_:L4y});if(b?.yZ){UK(G,{rM:wO,ux:g.F("INNERTUBE_CONTEXT_CLIENT_NAME",b.clientInterface)});UK(G,{rM:pB,ux:5184E6});UK(G,{rM:YD,d_:lmt,[Co]:[wO,pB]});UK(G,{rM:$E,d_:tqt});var T=G.resolve($E),q=window;if(q.ytInitialVideoId){var X=q.ytInitialVideoId;q.ytInitialPlayerResponse&&O2(T,q.ytInitialPlayerResponse,VD("player",{videoId:X}));q.ytInitialWatchNextResponse&&O2(T,q.ytInitialWatchNextResponse,VD("next",{videoId:X}));q.ytInitialReelItemWatchResponse&& O2(T,q.ytInitialReelItemWatchResponse,VD("reel_item_watch",{videoId:X}))}}T={Kd:{feedbackEndpoint:qV(ZGy),modifyChannelNotificationPreferenceEndpoint:qV(Ima),playlistEditEndpoint:qV(NAP),shareEntityEndpoint:qV(HGt),subscribeEndpoint:qV(fmQ),unsubscribeEndpoint:qV(R4a),webPlayerShareEntityServiceEndpoint:qV(rqy)}};q=TX.getInstance();X={};q&&(X.client_location=q);b?.yZ&&(q=G.resolve($E),X.store=q);M===void 0&&(M=qNy());W===void 0&&(W=G.resolve(mBS));qoP(T,W,M,X,b?.yZ?G.resolve(YD):void 0);UK(G,{rM:xBs, ux:zX.instance});PZ=G.resolve(xBs)}return PZ}; Wk=function(M){const W={};M=M.split("&");for(const b of M)M=b.split("="),M.length===2&&(W[M[0]]=M[1]);return W}; F4S=async function(){var M=window;await Jc(bo());const W=M.bgevmc;if(!W)throw Error("BGE Controls not exposed");return{pause:()=>{W.p()}, resume:()=>{W.r()}, checkForRefresh:()=>W.cr()}}; bo=function(){return g.he("bg_st_hr")?"havuokmhhs-0":`${"havuokmhhs"}-${Math.floor(globalThis.performance?.timeOrigin||0)}`}; T9=function(M){window.bgens=M}; h4p=function(){return new Promise(M=>{const W=window;W.ntpevasrs!==void 0?M(new iGp(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(b=>{M(new iGp(b))}))})}; urp=function(){if(tA()){var M=g.F("PLAYER_VARS",{});if(g.dV(M,"privembed",!1)!="1"&&!x_J(M)){var W=()=>{qq=!0;"google_ad_status"in window?XV("DCLKSTAT",1):XV("DCLKSTAT",2)}; try{const b=Qd(document);g.WA(Aql,W,b)}catch(b){}z4q.push(g.FO.N1(()=>{if(!(qq||"google_ad_status"in window)){try{if(Aql.toString()&&W){var b=`${g.Zl(W)}`,T=fDq[b];T&&g.$2(T)}}catch(q){}qq=!0;XV("DCLKSTAT",3)}},5E3))}}}; Xm=function(){const M=Number(g.F("DCLKSTAT",0));return isNaN(M)?0:M}; jr=function(M,W){M.Z=W}; SoL=async function(M){let W;if(g.yp.ytAtP&&!g.he("ytatp_ks")){var b=await g.yp.ytAtP;delete g.yp.ytAtP;let q=b?.R;W=b?.T;q?M.V.Z(1,M.B++):(M.V.Z(2,M.B++),b=await G9(M,VZ(W,null)),q=JSON.stringify(b));g.yp.ytAtRC?g.yp.ytAtRC(q):g.lR(Error("ytAtRC not defined for ytAtP."))}else g.yp.ytAtRC?nv(async()=>{W=g.yp.ytAtT;delete g.yp.ytAtT;if(g.yp.ytAtRC){M.V.Z(2,M.B++);var q=await G9(M,VZ(W,null));g.yp.ytAtRC&&g.yp.ytAtRC(JSON.stringify(q))}else M.V.Z(6,M.B++)},2,Ae("att_init_delay",0)):(W=g.yp.ytAtT,delete g.yp.ytAtT, M.V.Z(1,M.B++)); b=await h4p();b.bindInnertubeChallengeFetcher(q=>{M.V.Z(3,M.B++);return G9(M,VZ(W,q))}); b.registerChallengeFetchedCallback(q=>{q=q.challenge;if(!q)throw Error("BGE_MACR");q={challenge:q,D4:Wk(q),Rc:T,bgChallenge:new gu};q=Promise.resolve(q);M.Z=q}); const T=await Jc(bo());b=b.getLatestChallengeResponse().challenge;if(!b)throw Error("BGE_MACIL");return{challenge:b,D4:Wk(b),Rc:T,bgChallenge:new gu}}; Jd=async function(M){var W=VZ(void 0,PD().Z);try{var b=await OGQ(M,W)}catch(V){return g.lR(Error("Failed to fetch attestation challenge after 5 attempts; not retrying for 24h.")),PUL(M,864E5),{challenge:"",D4:{},Rc:void 0,bgChallenge:void 0}}W=b.tY;const T=b.RB;PUL(M,(Number(T.t)||7200)*1E3);M=void 0;if("c1a"in T&&b.bgChallenge){b=b.bgChallenge;var q=new gu;if(b.interpreterJavascript){var X=p1(b.interpreterJavascript);X=wH(X).toString();var G=new du;XK(G,6,X);gN(q,du,1,G,Y4)}else b.interpreterUrl&& (X=Yi(b.interpreterUrl),X=rH(X).toString(),G=new oi,XK(G,4,X),gN(q,oi,2,G,Y4));b.interpreterHash&&GJ(q,3,b.interpreterHash,Y4);b.program&&GJ(q,4,b.program,Y4);b.globalName&&GJ(q,5,b.globalName,Y4);b.clientExperimentsStateBlob&&GJ(q,7,b.clientExperimentsStateBlob,Y4);try{await cD(PD(),q)}catch(V){return g.lR(V),{challenge:W,D4:T,Rc:M,bgChallenge:q}}try{M=new TR({challenge:q,XG:{uy:"aGIf"}}),await M.cI}catch(V){g.lR(V),M=void 0}}return{challenge:W,D4:T,Rc:M,bgChallenge:q}}; G9=async function(M,W){const b=M.A;if(!b||b.tj())return e4q(M,W);As("att_pna",void 0,"attestation_challenge_fetch");return new Promise(T=>{b.Gz("publicytnetworkstatus-online",()=>{e4q(M,W).then(T)})})}; OGQ=async function(M,W){let b=void 0,T=0;for(;T<5;){if(T>0){const q=1E3*Math.pow(2,T-1)+Math.random()*1E3;await new Promise(X=>{g.yn(0,()=>{X(void 0)},q)})}try{M.V.Z(4,M.B++); const q=await G9(M,W);return dBs(q)}catch(q){b=q,q instanceof Error&&g.lR(q)}T++}throw b;}; PUL=function(M,W){const b=Date.now()+W,T=async()=>{const q=b-Date.now();q<1E3?await oSs(M):nv(T,0,Math.min(q,6E4))}; T()}; e4q=async function(M,W){T9(2);try{const b=await G9(M.network,W);b?b.challenge&&!b.bgChallenge?T9(1):T9(4):T9(3);return b}catch(b){T9(3)}}; dBs=function(M){if(!M)throw Error("Fetching Attestation challenge returned falsy");if(!M.challenge)throw Error("Missing Attestation challenge");const W=M.challenge,b=Wk(W);if("c1a"in b&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("Expected bg challenge but missing.");return{...M,tY:W,RB:b}}; oSs=async function(M){const W=await Promise.race([M.Z,null]);var b=Jd(M);M.Z=b;W?.Rc?.dispose()}; cqQ=function(M,W){return new Promise(b=>{g.yn(0,()=>{b(W())},M)})}; VZ=function(M,W){const b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};M&&(b.eacrToken=M);W&&(b.interpreterHash=W);return b}; QkS=function(){return new Promise(M=>{const W=window;W.attmp!==void 0?M(W.attmp):(W.attmq===void 0&&(W.attmq=[]),W.attmq.push(b=>{M(b)}))})}; g.skq=async function(M,W){if(gSq()){var b=window;return b.attmp!==void 0?b.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",M,W):(await QkS()).s("ENGAGEMENT_TYPE_PLAYBACK",M,W)}return(b=(b=g.Ct("yt.aba.att"))?b:Bk.instance!==void 0?Bk.instance.S.bind(Bk.instance):null)?b("ENGAGEMENT_TYPE_PLAYBACK",M,W):Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"})}; g.wsL=async function(){if(gSq())return window.attmp===void 0?!1:(await QkS()).ir();var M;return(M=(M=g.Ct("yt.aba.att2"))?M:Bk.instance!==void 0?Bk.instance.C.bind(Bk.instance):null)?M():Promise.resolve(!1)}; gSq=function(){return(g.he("attmusi")||g.he("attmusiw"))&&g.he("attmusi_ue")}; YoJ=function(M,W){var b=g.Ct("ytDebugData.callbacks");b||(b={},g.Uq("ytDebugData.callbacks",b));if(g.he("web_dd_iu")||psG.includes(M))b[M]=W}; g.DU=function(M,W,b){const T={...M};for(const q of Object.keys(W)){const X=M[q],G=W[q];if(G===void 0)delete T[q];else if(X===void 0)T[q]=G;else if(Array.isArray(G)&&Array.isArray(X))T[q]=b?[...X,...G]:G;else if(!Array.isArray(G)&&g.lQ(G)&&!Array.isArray(X)&&g.lQ(X))T[q]=g.DU(X,G,b);else if(typeof G===typeof X)T[q]=G;else return W=new g.EF("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:q,LgY:X,updateValue:G}),g.O(W),M}return T}; $Oy=function(M,W){return M.Z.length===0?!1:(M=M.Z[M.Z.length-1])&&M.buffer===W.buffer&&M.byteOffset+M.length===W.byteOffset}; aR=function(M){M.A=void 0;M.V=0;M.B=0}; E6=function(M,W){for(const b of W.Z)M.append(b)}; na=function(M,W,b){let {V2:T,eh:q}=M.split(W);({V2:T}=q.split(b));return T}; yZ=function(M,W,b){M.isFocused(W);return W-M.B+b<=M.Z[M.V].length}; M1S=function(M){if(!M.A){const W=M.Z[M.V];M.A=new DataView(W.buffer,W.byteOffset,W.length)}return M.A}; Wyp=function(M,W=0,b=-1){if(!M.totalLength||!b)return new DataView(new ArrayBuffer(0));b<0&&(b=M.totalLength-W);M.focus(W);if(!yZ(M,W,b)){var T=M.V,q=M.B;M.focus(W+b-1);q=new Uint8Array(M.B+M.Z[M.V].length-q);let X=0;for(let G=T;G<=M.V;G++)q.set(M.Z[G],X),X+=M.Z[G].length;M.Z.splice(T,M.V-T+1,q);aR(M);M.focus(W)}T=M.Z[M.V];return new DataView(T.buffer,T.byteOffset+W-M.B,b)}; U6=function(M,W=0,b=-1){M=Wyp(M,W,b);return new Uint8Array(M.buffer,M.byteOffset,M.byteLength)}; Ca=function(M,W=0,b=-1){M=U6(M,W,b);W=new Uint8Array(M.length);try{W.set(M)}catch(T){for(b=0;b>10;q=56320|q&1023}md[X++]=q}q=String.fromCharCode.apply(String, md);X<1024&&(q=q.substring(0,X));b.push(q)}return b.join("")}; td=function(M,W){if(lo?.encodeInto){const {read:T,written:q}=lo.encodeInto(M,W);return T>6|192:((q&64512)===55296&&T+1>18|240,W[b++]=q>>12&63|128):W[b++]=q>>12|224,W[b++]=q>>6&63|128),W[b++]=q&63|128)}return b}; ZU=function(M){if(lo)return lo.encode(M);let W=new Uint8Array(Math.ceil(M.length*1.2)),b=td(M,W);W.lengthb&&(W=W.subarray(0,b));return W}; Hk=function(M,W){M=M instanceof Uint8Array?new IR([M]):M;return W(new Nq(M))}; fa=function(M){let W=kE(M.Z,M.pos);++M.pos;if(W<128)return W;let b=W&127,T=1;for(;W>=128;)W=kE(M.Z,M.pos),++M.pos,T*=128,b+=(W&127)*T;return b}; RR=function(M,W){let b=M.V;for(M.V=-1;M.pos+1<=M.Z.totalLength;){b<0&&(b=fa(M));var T=b>>3;const q=b&7;if(T===W)return!0;if(T>W){M.V=b;break}b=-1;switch(q){case 0:fa(M);break;case 1:M.pos+=8;break;case 2:T=fa(M);M.pos+=T;break;case 5:M.pos+=4}}return!1}; rr=function(M,W){if(RR(M,W))return fa(M)}; xE=function(M,W){if(RR(M,W))return W=U6(M.Z,M.pos,8),M.pos+=8,(new DataView(W.buffer,W.byteOffset,W.byteLength)).getFloat64(0,!0)}; Fm=function(M,W){if(RR(M,W))return!!fa(M)}; io=function(M,W){if(RR(M,W)){W=fa(M);var b=U6(M.Z,M.pos,W);M.pos+=W;return b}}; hd=function(M,W){if(M=io(M,W))return g.La(M)}; Ad=function(M,W,b){if(M=io(M,W))return b(new Nq(new IR([M])))}; z9=function(M,W){const b=[];for(;RR(M,W);)b.push(fa(M));return b.length?b:void 0}; uo=function(M,W,b){const T=[];let q;for(;q=io(M,W);)T.push(b(new Nq(new IR([q]))));return T.length?T:void 0}; q0S=function(M,W){M=new Uint8Array(M);W&&M.set(W);return M}; g.Sr=function(M,W){const b=new XDa(4096);W(b,M);return new Uint8Array(b.Z.buffer,b.Z.byteOffset,b.pos)}; O6=function(M,W){W=M.pos+W;if(!(M.Z.length>=W)){for(var b=M.Z.length*2;b268435455){O6(M,4);let b=W&1073741823;for(let T=0;T<4;T++)M.view.setUint8(M.pos,b&127|128),b>>=7,M.pos+=1;W=Math.floor(W/268435456)}for(O6(M,4);W>127;)M.view.setUint8(M.pos,W&127|128),W>>=7,M.pos+=1;M.view.setUint8(M.pos,W);M.pos+=1}; er=function(M,W,b){b!==void 0&&(Pk(M,W*8),Pk(M,b))}; dr=function(M,W,b){b!==void 0&&er(M,W,b?1:0)}; oR=function(M,W,b){b!==void 0&&(Pk(M,W*8+2),W=b.length,Pk(M,W),O6(M,W),M.Z.set(b,M.pos),M.pos+=W)}; jit=function(M,W,b=2){Pk(M,W*8+2);M.V.push(M.pos);M.V.push(b);M.pos+=b}; GAL=function(M){let W=M.V.pop(),b=M.V.pop(),T=M.pos-b-W;for(;W--;){const q=W?128:0;M.view.setUint8(b++,T&127|q);T>>=7}}; ck=function(M,W,b){b!==void 0&&(jit(M,W,Math.ceil(Math.log2(b.length*4+2)/7)),O6(M,b.length*1.2),W=td(b,M.Z.subarray(M.pos)),M.pos+W>M.Z.length&&(O6(M,W),W=td(b,M.Z.subarray(M.pos))),M.pos+=W,GAL(M))}; QZ=function(M,W,b,T,q=3){b&&(jit(M,W,q),T(M,b),GAL(M))}; g.gr=function(M){var W=new Nq(new IR([Rd(decodeURIComponent(M))]));M=hd(W,2);W=rr(W,4);const b=V1t[W];if(typeof b==="undefined")throw M=new g.EF("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),g.O(M),M;return{Bt:W,entityType:b,entityId:M}}; g.s6=function(M,W){const b=new XDa;oR(b,2,ZU(M));M=JJl[W];if(typeof M==="undefined")throw W=new g.EF("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),g.O(W),W;er(b,4,M);er(b,5,1);W=new Uint8Array(b.Z.buffer,b.Z.byteOffset,b.pos);return encodeURIComponent(g.Id(W,0))}; wr=function(M){M=M.key||M.id;if(!M)throw Error("Entity key is missing");return M}; pa=function(M,W,b,T){if(T===void 0){const {[b]:q,...X}=M[W]||{};return{...M,[W]:X}}return{...M,[W]:{...M[W],[b]:T}}}; Bup=function(M,W,b,T,q){const X=M[W];if(!X?.[b])return M;T=g.DU(X[b],T,q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");return{...M,[W]:{...M[W],[b]:T}}}; DOa=function(M={},W){switch(W.type){case "ENTITY_LOADED":return W.payload.reduce((b,T)=>{const q=T.options?.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return b;if(!T.entityKey)return g.O(Error("Missing entity key")),b;if(T.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!T.payload)return T=new g.EF("REPLACE entity mutation is missing a payload",{entityKey:T.entityKey}),g.O(T),b;var X=g.x5(T.payload);return pa(b,X,T.entityKey,T.payload[X])}if(T.type=== "ENTITY_MUTATION_TYPE_DELETE"){a:{T=T.entityKey;try{const G=g.gr(T).entityType;X=pa(b,G,T);break a}catch(G){if(G instanceof Error){T=new g.EF("Failed to deserialize entity key",{entityKey:T,originalMessage:G.message});g.O(T);X=b;break a}throw G;}X=void 0}return X}if(T.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!T.payload)return T=new g.EF("UPDATE entity mutation is missing a payload",{entityKey:T.entityKey}),g.O(T),b;X=g.x5(T.payload);return Bup(b,X,T.entityKey,T.payload[X],T.fieldMask?.mergeOptions?.repeatedFieldsMergeOption)}return b}, M); case "REPLACE_ENTITY":return pa(M,W.payload.entityType,W.payload.key,W.payload.Vi);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce((b,T)=>{const q=W.payload[T];return Object.keys(q).reduce((X,G)=>pa(X,T,G,q[G]),b)},M); case "UPDATE_ENTITY":return Bup(M,W.payload.entityType,W.payload.key,W.payload.Vi,W.payload.BWz);default:return M}}; var aEq=function(M,W){return rD[y[0]](this,2,M,W)}; YE=function(M,W,b){return M[W]?M[W][b]||null:null}; ENQ=function(){if($r)return $r();$r=X5("PersistentEntityStoreDb",{AC:{EntityStore:{Nw:1},EntityAssociationStore:{Nw:2}},shared:!1,upgrade(M,W){W(1)&&df(P8(M,"EntityStore",{keyPath:"key"}),"entityType","entityType");W(2)&&(M=P8(M,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),df(M,"byParentEntityKey","parentEntityKey"),df(M,"byChildEntityKey","childEntityKey"))},version:3});return $r()}; nNP=function(M){return g.wf(ENQ(),M)}; Mi=function(M){return window.Int32Array?new Int32Array(M):Array(M)}; yJL=function(M){const W=M.key;let b=M.counter[0]^W[0],T=M.counter[1]^W[1],q=M.counter[2]^W[2],X=M.counter[3]^W[3];for(var G=3;G>=0&&!(M.counter[G]=-~M.counter[G]);G--);let V,J,B=4;for(;B<40;)G=Wr[b>>>24]^bB[T>>16&255]^TZ[q>>8&255]^qi[X&255]^W[B++],V=Wr[T>>>24]^bB[q>>16&255]^TZ[X>>8&255]^qi[b&255]^W[B++],J=Wr[q>>>24]^bB[X>>16&255]^TZ[b>>8&255]^qi[T&255]^W[B++],X=Wr[X>>>24]^bB[b>>16&255]^TZ[T>>8&255]^qi[q&255]^W[B++],b=G,T=V,q=J;M=M.V;G=W[40];M[0]=jF[b>>>24]^G>>>24;M[1]=jF[T>>16&255]^G>>16&255;M[2]= jF[q>>8&255]^G>>8&255;M[3]=jF[X&255]^G&255;G=W[41];M[4]=jF[T>>>24]^G>>>24;M[5]=jF[q>>16&255]^G>>16&255;M[6]=jF[X>>8&255]^G>>8&255;M[7]=jF[b&255]^G&255;G=W[42];M[8]=jF[q>>>24]^G>>>24;M[9]=jF[X>>16&255]^G>>16&255;M[10]=jF[b>>8&255]^G>>8&255;M[11]=jF[T&255]^G&255;G=W[43];M[12]=jF[X>>>24]^G>>>24;M[13]=jF[b>>16&255]^G>>16&255;M[14]=jF[T>>8&255]^G>>8&255;M[15]=jF[q&255]^G&255}; J3=function(){if(!GZ&&!g.Mo){if(Vq)return Vq;Vq=window.crypto?.subtle;if(Vq?.importKey&&Vq?.sign&&Vq?.encrypt)return Vq;Vq=void 0}}; UOL=async function(M,W,b){M.Z||(M.Z=await M.subtleCrypto.importKey("raw",M.V,{name:"AES-CTR"},!1,["encrypt"]));M=await M.subtleCrypto.encrypt({name:"AES-CTR",counter:b,length:128},M.Z,W);return new Uint8Array(M)}; CNQ=function(M){M.Z=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];M.W=[];M.W.length=64;M.A=0;M.V=0}; kAG=function(M,W,b){const T=M.W;let q=M.Z[0],X=M.Z[1],G=M.Z[2],V=M.Z[3],J=M.Z[4],B=M.Z[5],D=M.Z[6],a=M.Z[7],E,n,C;for(let l=0;l<64;)l<16?(T[l]=C=W[b]<<24|W[b+1]<<16|W[b+2]<<8|W[b+3],b+=4):(E=T[l-2],n=T[l-15],C=T[l-7]+T[l-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3),T[l]=C),E=a+Br[l]+C+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&B^~J&D),n=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&X^q&G^X&G),a=E+n,V+=E,l++,l<16?(T[l]=C=W[b]<<24|W[b+1]<<16|W[b+2]<<8|W[b+ 3],b+=4):(E=T[l-2],n=T[l-15],C=T[l-7]+T[l-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3),T[l]=C),E=D+Br[l]+C+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&J^~V&B),n=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&q^a&X^q&X),D=E+n,G+=E,l++,l<16?(T[l]=C=W[b]<<24|W[b+1]<<16|W[b+2]<<8|W[b+3],b+=4):(E=T[l-2],n=T[l-15],C=T[l-7]+T[l-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3),T[l]=C),E=B+Br[l]+C+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25| G<<7))+(G&V^~G&J),n=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&a^D&q^a&q),B=E+n,X+=E,l++,l<16?(T[l]=C=W[b]<<24|W[b+1]<<16|W[b+2]<<8|W[b+3],b+=4):(E=T[l-2],n=T[l-15],C=T[l-7]+T[l-16]+((E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10)+((n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3),T[l]=C),E=J+Br[l]+C+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&G^~X&V),n=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&D^B&a^D&a),C=a,a=V,V=C,C=D,D=G,G=C,C=B,B=X,X=C,J=q+E,q=E+n,l++;M.Z[0]=q+M.Z[0]|0;M.Z[1]=X+M.Z[1]|0;M.Z[2]=G+M.Z[2]| 0;M.Z[3]=V+M.Z[3]|0;M.Z[4]=J+M.Z[4]|0;M.Z[5]=B+M.Z[5]|0;M.Z[6]=D+M.Z[6]|0;M.Z[7]=a+M.Z[7]|0}; KyG=function(M){const W=new Uint8Array(32);var b=64-M.V;M.V>55&&(b+=64);const T=new Uint8Array(b);T[0]=128;let q=M.A*8;for(let X=1;X<9;X++){const G=q%256;T[b-X]=G;q=(q-G)/256}M.update(T);for(b=0;b<8;b++)W[b*4]=M.Z[b]>>>24,W[b*4+1]=M.Z[b]>>>16&255,W[b*4+2]=M.Z[b]>>>8&255,W[b*4+3]=M.Z[b]&255;CNQ(M);return W}; mOt=function(M,W,b){M=new vNt(M.Z);M.update(W);M.update(b);W=KyG(M);M.update(M.S);M.update(W);W=KyG(M);M.reset();return W}; LyL=async function(M,W,b){M.Z||(M.Z=await M.subtleCrypto.importKey("raw",M.V,{name:"HMAC",hash:"SHA-256"},!1,["sign"]));const T=new Uint8Array(W.length+b.length);T.set(W);T.set(b,W.length);M=await M.subtleCrypto.sign({name:"HMAC",hash:"SHA-256"},M.Z,T);return new Uint8Array(M)}; t1t=async function(M,W,b,T){M.V||(M.V=new lES(M.Z,T));return LyL(M.V,W,b)}; IEg=function(M,W,b){M.B||(M.B=new ZSS(M.Z));return mOt(M.B,W,b)}; NuJ=async function(M,W,b){const T=J3();if(T)try{return await t1t(M,W,b,T)}catch(q){return g.lR(q),GZ=!0,IEg(M,W,b)}else return IEg(M,W,b)}; HSJ=function(M){return M instanceof Error?new D4("UNKNOWN_ENCODE_ERROR",{originalMessage:M.message}):new D4("UNKNOWN_ENCODE_ERROR")}; fEL=function(M){return M instanceof Error?new D4("UNKNOWN_DECODE_ERROR",{originalMessage:M.message}):new D4("UNKNOWN_DECODE_ERROR")}; RPL=function(M,W){M=M instanceof D4?M:W(M);g.O(M);throw M;}; g.rJS=function(M,W,b){try{return M.B(W,b)}catch(T){RPL(T,HSJ)}}; aN=function(M){M=(new TextEncoder).encode(M).subarray(0,16);const W=new Uint8Array(16);W.set(M);return W}; Fys=function(M){const W=xOL[M];if(W)return W;g.lR(new g.EF("Entity model not found.",{entityType:M}))}; g.nm=function(M,W){a:{M=g.E8(M.V,W.version);try{var b=M.V(W.data,W.key);break a}catch(T){RPL(T,fEL)}b=void 0}return b}; g.hPp=function(M,W,b){const T=wr(W);return g.yq(M,T).then(()=>iSL(M,W,b))}; g.U8=function(M,W,b){let T=M.B[b];T||(T=new Set,M.B[b]=T);T.add(W)}; g.Cm=function(M,W,b){const T=wr(W),q=g.E8(M.V,1),X={...W};return M.Z.objectStore("EntityStore").get(T).then(G=>{if(G){if(G.entityType!==b)throw Error("Incorrect entity type");X.entityMetadata||(G=g.nm(M,G),X.entityMetadata=G.entityMetadata)}}).then(()=>{const G={key:T, entityType:b,data:g.rJS(q,X,T),version:1};return g.i1.all([M.Z.objectStore("EntityStore").put(G),g.hPp(M,X,b)])}).then(()=>{g.U8(M,T,b); return T})}; g.yq=function(M,W){return M.Z.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(W))}; iSL=function(M,W,b){const T=wr(W);b=Fys(b);if(!b)return g.i1.resolve([]);W=new b(W);M=M.Z.objectStore("EntityAssociationStore");b=[];for(const q of W.V())b.push(M.put({parentEntityKey:T,childEntityKey:q}));return g.i1.all(b).then(q=>q.map(X=>X[1]))}; g.E8=function(M,W=0){M=M.Z[W];if(!M)throw W=new D4("INVALID_ENCODER_VERSION",{vG:W}),g.O(W),W;return M}; AJL=function(M,W){for(const b of M.observers)b(W)}; g.kr=async function(M,W,b){var T=await nNP(M.token);let q;W=await g.OF(T,["EntityStore","EntityAssociationStore"],W,X=>{q=new zPt(X,M.Z);return b(q)}); q&&(T=q.B,Object.keys(T).length>0&&(M.channel.postMessage(T),AJL(M,T)));return W}; g.Km=function(M,W,b){return g.kr(M,{mode:"readwrite",m8:!0},T=>g.Cm(T,W,b))}; g.mk=function(){vr||(vr=upP());return vr}; upP=async function(){try{const W=await g.qo();if(W&&a_()&&typeof g.yp.BroadcastChannel!=="undefined"){var M=new S0q;return new OSq(W,M)}}catch(W){W instanceof Error&&g.O(W)}}; ePa=function(M){let W="";for(let T=0;T=0||Du(M,0,"gad_source",M.search(a0))>=0}; TjJ=function(M,W){var b=vA().resolve(bIt);if(WzS(W)){var T=Ec(W,"gclid");W={handleEvent:q=>{M&&!M.closed&&typeof M.postMessage==="function"&&q&&q.origin&&q.source===M&&q.data&&q.data.action==="gcl_setup"&&M.postMessage({action:"gcl_transfer",...(T&&{gclid:T}),gadSource:2},q.origin)}}; for(const [q,X]of b.Z){const G=q,V=X;if(G.closed)try{window.removeEventListener("message",V),b.Z.delete(G)}catch(J){g.O(J)}}M&&b.Z.size<15&&(b.Z.set(M,W),window.addEventListener("message",W))}}; Lm=function(M,W,b){if(!W)return M.length>=1?M[M.length-1]:null;for(const T of M)if(T.width&&T.height&&(b&&T.width>=W||!b&&T.height>=W))return T;for(W=M.length-1;W>=0;W--)if(b&&M[W].width||!b&&M[W].height)return M[W];return M[0]}; Xcg=function(M,W,b,T,q,X){b?(M.LN(2),g.WA(g.We(b),()=>{if(window.trayride)qWt(M,T,q);else{M.LN(3);const G=HDs(b),V=document.getElementById(G);V&&(IDs(G),V.parentNode.removeChild(V));g.lR(new g.EF("BL:ULB",`${b}`))}},X)):W?(X=g.Gr("SCRIPT"),W instanceof gH?(X.textContent=wH(W),pZ(X)):X.textContent=W,X.nonce=Qd(document),document.head.appendChild(X),document.head.removeChild(X),window.trayride?qWt(M,T,q):(M.LN(4),g.lR(new g.EF("BL:ULBJ")))):g.lR(new g.EF("BL:ULV"))}; qWt=function(M,W,b){M.LN(5);const T=!!M.l3&&jXJ.includes(g.$F(M.l3)||"");try{const q=new TR({program:W,globalName:"trayride",XG:{disable:!g.he("att_web_record_metrics")||!g.he("att_skip_metrics_for_cookieless_domains_ks")&&T,uy:"aGIf"}});q.cI.then(()=>{M.LN(6);b&&b(W)}); M.Z(q)}catch(q){M.LN(7),q instanceof Error&&g.lR(q)}}; lB=function(){const M=g.Ct("yt.abuse.playerAttLoader");return M&&["bgvma","bgvmb","bgvmc"].every(W=>W in M)?M:null}; GRJ=function(M,W,b){let T=!1;for(const [q]of M.gS.entries()){const X=q;X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.eT==="core"&&(T=!0)}if(T){a:if(!b){for(const [q,X]of M.gS.entries())if(M=q,b=X,M.slotType==="SLOT_TYPE_IN_PLAYER"&&M.eT==="core"){b=b.layoutId;break a}b=void 0}b?W.RL(b):za("No triggering layout ID available when attempting to mute.")}}; t3=function(M,W,b){M.ST();M.Z.get(W)&&g.O(Error(`Extension name ${W} already registered`));M.Z.set(W,b)}; Bjt=function(M,W=[],b,T){M.ST();const q=[],X=[];for(const G of W)g.z(G,Vmt)||g.z(G,JHG)?q.push(G):X.push(G);for(const G of q)Z4(M,G,b,T);for(const G of X)Z4(M,G,b,T)}; DtJ=function(M,W){t3(M,W.Nh(),(b,T,q)=>{W.aN(b,T,q)})}; Z4=function(M,W,b,T){M.ST();W.loggingUrls&&aFS(M,"loggingUrls",W.loggingUrls,b,T);for(const [q,X]of Object.entries(W)){W=q;const G=X;W==="openPopupAction"?IN(M.U2.get(),"innertubeCommand",{openPopupAction:G}):W==="confirmDialogEndpoint"?IN(M.U2.get(),"innertubeCommand",{confirmDialogEndpoint:G}):EdL.hasOwnProperty(W)||aFS(M,W,G,b,T)}}; aFS=function(M,W,b,T,q){if((M=M.Z.get(W))&&typeof M==="function")try{M(b,T,q)}catch(X){g.O(X)}else W=new g.EF("Unhandled field",W),g.lR(W)}; Hr=function(M,W,b){if(b&&!b.includes(M.layoutType))return!1;for(const T of W)if(!Ni(M.clientMetadata,T))return!1;return!0}; ndg=function(M,W){switch(M){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return W(M),8}}; Ni=function(M,W){return M.Z.has(W)}; fm=function(M){return Array.from(M.Z.keys())}; RN=function(M,W,b){if(b&&b!==M.slotType)return!1;for(const T of W)if(!Ni(M.clientMetadata,T))return!1;return!0}; Utg=function(M){return yHG.get(M)?.Nj||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; xr=function(M,W){const b={type:W.slotType,controlFlowManagerLayer:CEg.get(W.eT)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(b.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(b.slotPhysicalPosition=W.slotPhysicalPosition);if(M){b.debugData={slotId:W.slotId};if(M=W.slotEntryTrigger)b.debugData.slotEntryTriggerData=rl(M);M=W.slotFulfillmentTriggers;b.debugData.fulfillmentTriggerData=[];for(const T of M)b.debugData.fulfillmentTriggerData.push(rl(T));W= W.slotExpirationTriggers;b.debugData.expirationTriggerData=[];for(const T of W)b.debugData.expirationTriggerData.push(rl(T))}return b}; kRL=function(M,W){const b={type:W.layoutType,controlFlowManagerLayer:CEg.get(W.eT)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};M&&(b.debugData={layoutId:W.layoutId});return b}; rl=function(M,W){const b={type:M.triggerType};W!=null&&(b.category=W);M.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=M.triggeringSlotId);M.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=M.triggeringLayoutId);return b}; KzJ=function(M,W,b,T){W={opportunityType:W};M&&(T||b)&&(T=g.dG(T||[],q=>xr(M,q)),W.debugData={...(b&&b.length>0?{associatedSlotId:b}:{}), ...(T.length>0?{slots:T}:{})});return W}; iB=function(M,W){return b=>vdS(FR(M),W.slotId,W.slotType,W.slotPhysicalPosition,W.eT,W.slotEntryTrigger,W.slotFulfillmentTriggers,W.slotExpirationTriggers,b.layoutId,b.layoutType,b.eT)}; vdS=function(M,W,b,T,q,X,G,V,J,B,D){return{adClientDataEntry:{slotData:xr(M,{slotId:W,slotType:b,slotPhysicalPosition:T,eT:q,slotEntryTrigger:X,slotFulfillmentTriggers:G,slotExpirationTriggers:V,clientMetadata:new h3([])}),layoutData:kRL(M,{layoutId:J,layoutType:B,eT:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],yc:new Map,clientMetadata:new h3([]),w9:{}})}}}; FR=function(M){return M.Z||M.PY.get().L.G().j("html5_force_debug_data_for_client_tmp_logs")}; A3=function(M,W){M.V.add(W)}; zZ=function(M,W){M.V.delete(W)}; cr=function(M,W,b){if(uB(M.Z,W)){a:switch(SF(M.Z,W).Z){case "exit_requested":var T=!0;break a;default:T=!1}if(!T)a:switch(SF(M.Z,W).Z){case "rendering_stop_requested":T=!0;break a;default:T=!1}if(T&&(SF(M.Z,W).S=!0,!b))return;if(O8(SF(M.Z,W)))SF(M.Z,W).S=!0,mtQ(M,W,b);else{a:switch(SF(M.Z,W).A){case "fill_requested":b=!0;break a;default:b=!1}if(b)SF(M.Z,W).S=!0,uB(M.Z,W)&&(Pr(M.Ne,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",W),M=SF(M.Z,W),M.A="fill_cancel_requested",M.W.PA());else{b= eF(M.Z,W);(T=M.PY.get().L.G().experiments.FX("h5_enable_layout_unscheduling_events"))&&(b?M.u$(W,b):za(Error("Layout is null for LayoutUnscheduled event."),W,b,void 0,!1));Pr(M.Ne,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",W);const V=SF(M.Z,W);var q=W.slotEntryTrigger;const J=V.Zs.get(q.triggerId);J&&(J.z4(q),V.Zs.delete(q.triggerId));for(var X of W.slotFulfillmentTriggers)if(q=V.gK.get(X.triggerId))q.z4(X),V.gK.delete(X.triggerId);for(var G of W.slotExpirationTriggers)if(X=V.X.get(G.triggerId))X.z4(G), V.X.delete(G.triggerId);V.layout!=null&&(G=V.layout,dl(V,G.layoutExitNormalTriggers),dl(V,G.layoutExitSkipTriggers),dl(V,G.layoutExitMuteTriggers),dl(V,G.layoutExitUserInputSubmittedTriggers),dl(V,G.layoutExitUserCancelledTriggers));V.W=void 0;V.V!=null&&(V.V.release(),V.V=void 0);V.B!=null&&(V.B.release(),V.B=void 0);G=M.Z;SF(G,W)&&(G=oN(G,`${W.slotType}_${W.slotPhysicalPosition}`))&&G.delete(W.slotId);Pr(M.Ne,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);for(const B of M.V)B.j6(W),b&&!T&&B.u$(W,b)}}}}; gl=function(M,W){if(uB(M.Z,W)){SF(M.Z,W).C=!1;var b=Qq;W=SF(M.Z,W);const T=[...W.D];T4(W.D);b(M,T)}}; Lza=function(M,W){uB(M.Z,W)&&O8(SF(M.Z,W))&&eF(M.Z,W)&&!s8(M.Z,W)&&(wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,eF(M.Z,W)??void 0),M=SF(M.Z,W),M.Z!=="entered"&&pm(M.slot,M.Z,"enterLayoutForSlot"),M.Z="rendering",M.B.startRendering(M.layout))}; $J=function(M,W,b,T){za(b,W,void 0,void 0,b.oG);b.Og?Yr(M.Ne,T,b.Og,W):za("adsClientErrorMessage is missing.",W);cr(M,W,!0)}; lFp=function(M,W,b){if(uB(M.Z,W))if(SF(M.Z,W).A=b?"filled":"not_filled",b===null){wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",W);for(var T of M.V)T.w0(W);cr(M,W,!1)}else{wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",W,b);wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,b);if(T=b.wM??b.clientMetadata.fp("metadata_type_sub_layouts"))for(const G of T)wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,G);for(const G of M.V)G.CK(W);if(uB(M.Z,W))if(SF(M.Z,W).S)cr(M,W,!1);else{wl(M.Ne, "ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",W,b);try{var q=M.Z;if(!SF(q,W))throw new Mg("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!q.VB.y$.get(W.slotType))throw new Mg("No LayoutRenderingAdapterFactory registered for slot of type: "+W.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(b.layoutExitNormalTriggers.length==0&&b.layoutExitSkipTriggers.length==0&&b.layoutExitMuteTriggers.length==0&&b.layoutExitUserInputSubmittedTriggers.length== 0&&b.layoutExitUserCancelledTriggers.length==0)throw new Mg("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");Wo(q,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",b.layoutExitNormalTriggers);Wo(q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",b.layoutExitSkipTriggers);Wo(q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",b.layoutExitMuteTriggers);Wo(q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",b.layoutExitUserInputSubmittedTriggers);Wo(q,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED", b.layoutExitUserCancelledTriggers)}catch(G){G instanceof Mg?M.zx(W,b,G,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):M.zx(W,b,new Mg(`Unexpected error: ${G}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");cr(M,W,!0);return}SF(M.Z,W).C=!0;try{var X=M.Z;const G=SF(X,W),V=X.VB.y$.get(W.slotType).get().build(X.A,X.V,W,b);V.init();G.layout=b;if(G.B)throw new Mg("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER"); G.B=V;bw(X,G,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",b.layoutExitNormalTriggers);bw(X,G,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",b.layoutExitSkipTriggers);bw(X,G,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",b.layoutExitMuteTriggers);bw(X,G,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",b.layoutExitUserInputSubmittedTriggers);bw(X,G,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",b.layoutExitUserCancelledTriggers)}catch(G){gl(M,W);G instanceof Mg?M.zx(W,b,G,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"): M.zx(W,b,new Mg(`Unexpected error: ${G}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");cr(M,W,!0);return}wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,b);for(const G of M.V)G.yB(W,b);gl(M,W);Lza(M,W)}else M=M.PY.get(),g.Tb(M.L.G())||qg(M.L.G())||g.XD(M.L.G())?M=!0:(za("Composite VOD on legacy path."),M=!1),M&&za("slot is unscheduled after been fulfilled.",W,b)}}; tmg=function(M,W,b){W.eT!=="core"&&wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,b)}; ZIy=function(M,W,b){wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,b);for(const T of M.V)T.yB(W,b)}; IFq=function(M,W,b){wl(M.Ne,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,b);for(const T of M.V)T.t5(W,b)}; mtQ=function(M,W,b){if(uB(M.Z,W)&&O8(SF(M.Z,W))){var T=eF(M.Z,W);if(T&&s8(M.Z,W))Njt(M,W,T,b?"error":"abandoned");else{Pr(M.Ne,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",W);try{const q=SF(M.Z,W);if(!q)throw new P("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");q.Z!=="enter_requested"&&q.Z!=="entered"&&q.Z!=="rendering"&&pm(q.slot,q.Z,"exitSlot");q.Z="exit_requested";if(q.V===void 0)throw q.Z="scheduled",new P("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");q.V.To()}catch(q){q instanceof P&&q.Og?(Yr(M.Ne,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",q.Og,W),za(q,W,void 0,void 0,q.oG)):(Yr(M.Ne,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",W),za(q,W))}}}}; HIL=function(M,W,b,T){wl(M.Ne,Utg(T),W,b);for(const q of M.V)q.Dg(W,b,T)}; Qq=function(M,W){W.sort((q,X)=>{if(q.category===X.category)return q.trigger.triggerId.localeCompare(X.trigger.triggerId);const G=V=>{za("TriggerCategoryOrder enum does not contain trigger category: "+V)}; return ndg(q.category,G)-ndg(X.category,G)}); var b=new Map;for(var T of W){if(!uB(M.Z,T.slot))continue;if(SF(M.Z,T.slot).C){SF(M.Z,T.slot).D.push(T);continue}fFa(M.Ne,T.slot,T,T.layout);(W=b.get(T.category))||(W=[]);W.push(T);b.set(T.category,W)}for(const [q,X]of R6Q)T=X,(W=b.get(q))&&rHL(M,W,T);(T=b.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&xtg(M,T);(T=b.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&FzG(M,T);(b=b.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&iIt(M,b)}; rHL=function(M,W,b){for(const T of W)T.layout&&s8(M.Z,T.slot)&&Njt(M,T.slot,T.layout,b)}; xtg=function(M,W){for(const b of W)cr(M,b.slot,!1)}; FzG=function(M,W){for(const b of W){a:switch(SF(M.Z,b.slot).A){case "not_filled":W=!0;break a;default:W=!1}W&&(Pr(M.Ne,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",b.slot),M.Z.H8(b.slot))}}; iIt=function(M,W){for(const q of W){Pr(M.Ne,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",q.slot);for(const X of M.V)X.mR(q.slot);try{var b=M.Z,T=q.slot;const X=SF(b,T);if(!X)throw new P("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!X.V)throw new P("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(X.Z!=="scheduled")throw new P("Tried to enter a slot from stage: "+X.Z,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE"); if(O8(X))throw new P("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(const G of oN(b,`${T.slotType}_${T.slotPhysicalPosition}`).values())if(X!==G&&O8(G)&&(X.slot.fulfilledLayout?.layoutType!=="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"||G.layout?.layoutType!=="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"))throw new P("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:G.Z},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}catch(X){X instanceof P&&X.Og?(Yr(M.Ne,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",X.Og,q.slot),za(X,q.slot,eF(M.Z,q.slot),void 0,X.oG)):(Yr(M.Ne,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",q.slot),za(X,q.slot));cr(M,q.slot,!0);continue}W=SF(M.Z,q.slot);W.Z!=="scheduled"&&pm(W.slot,W.Z,"enterSlot");W.Z="enter_requested";W.V.RD()}}; Njt=function(M,W,b,T){uB(M.Z,W)&&(wl(M.Ne,yHG.get(T)?.KP||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED",W,b),M=SF(M.Z,W),M.Z!=="rendering"&&pm(M.slot,M.Z,"exitLayout"),M.Z="rendering_stop_requested",M.B.A_(b,T))}; O8=function(M){return M.Z==="enter_requested"||M.isActive()}; uB=function(M,W){return SF(M,W)!=null}; eF=function(M,W){(M=SF(M,W))?M.layout!=null&&!M.layout&&za("Unexpected empty layout",W):za("Unexpected undefined slotState",W);return M?.layout||null}; h6Q=function(M){const W=[];M.Z.forEach(b=>{for(const T of b.values())W.push(T.slot)}); return W}; s8=function(M,W){M=SF(M,W);if(W=M.layout!=null)a:switch(M.Z){case "rendering":case "rendering_stop_requested":W=!0;break a;default:W=!1}return W}; oN=function(M,W){return(M=M.Z.get(W))?M:new Map}; SF=function(M,W){return oN(M,`${W.slotType}_${W.slotPhysicalPosition}`).get(W.slotId)}; jT=function(M,W,b){if(b.length==0)throw new P(`No ${AHL.get(W)} triggers found for slot.`,void 0,z6q(W));for(const T of b)if(!M.VB.wT.get(T.triggerType))throw new P("No trigger adapter registered for "+W+" trigger of type: "+T.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; pm=function(M,W,b){za(`Slot stage was ${W} when calling method ${b}`,M)}; dl=function(M,W){for(const b of W)if(W=M.O.get(b.triggerId))W.z4(b),M.O.delete(b.triggerId)}; Wo=function(M,W,b){for(const T of b)if(!M.VB.wT.get(T.triggerType))throw new Mg(`No trigger adapter registered for ${AHL.get(W)} trigger of type: ${T.triggerType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; bw=function(M,W,b,T){for(const q of T)T=M.VB.wT.get(q.triggerType),T.HO(b,q,W.slot,W.layout?W.layout:null),W.O.set(q.triggerId,T)}; z6q=function(M){switch(M){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}}; uCL=function(M){return Gb(M.Vx).concat(Gb(M.wT)).concat(Gb(M.W$)).concat(Gb(M.ai)).concat(Gb(M.y$))}; Gb=function(M){const W=[];for(const b of M.values())b.ZU&&W.push(b);return W}; c=function(M){return new SWs(M)}; e6a=function(M){const W=new OIp((b,T,q,X)=>new PEt(M.Z.VB,b,T,q,X,M.Z.PY),new Set(uCL(M.Z.VB).concat(M.Z.listeners)),M.Z.Ne,M.Z.PY); g.t(M,W);return W}; VN=function(M,W,b){Bjt(M.Z(),W,b)}; JZ=function(M,W,b,T){(M=M.Z())||za("Could not initiate a command router instance.");Z4(M,W,b,T)}; dtl=function(M,W){const b=W.bgp&&W.bgub,T=!!W.upb;W.siub&&W.scs&&(b||T)&&(T&&Bo(M.PY.get(),"html5_export_sodar_snapshot")&&ft(async q=>(await Jc(bo())).snapshot(q)),nUq(W.siub,W.scs,W.bgub,W.bgp,W.upb))}; QXL=function(M,W,b,T){M.Z&&za("Currently active request ongoing for slot. This should never happen",M.slot);M.Z=W();M.Z.then(q=>{M.Z=null;T&&T(q);const X=q.Qx?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";var G=M.V.get(),V=M.slot.slotId,J=iB(M.Oj.get(),{slotId:M.slot.slotId,slotType:M.slot.slotType,slotPhysicalPosition:M.slot.slotPhysicalPosition,eT:M.slot.eT,slotEntryTrigger:M.slot.slotEntryTrigger,slotFulfillmentTriggers:M.slot.slotFulfillmentTriggers,slotExpirationTriggers:M.slot.slotExpirationTriggers}); const B=DW(G.V.get(),X,V),D={layoutId:B,layoutType:X,eT:"core"};q={layoutId:B,layoutType:X,yc:new Map,layoutExitNormalTriggers:[new ody(G.Z,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new cHp(q)]),w9:J(D)};lFp(M.callback,M.slot,q)},q=>{M.Z=null; b&&b();q instanceof Ps||$J(M.callback,M.slot,new P(q,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; gdt=function(M){if(M.Z==null)M.callback.SY(M.slot);else try{M.Z.cancel(),M.Z=null,M.callback.SY(M.slot)}catch(W){M.Z=null,$J(M.callback,M.slot,new P(W,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; av=function(M,W,b=!1,T=""){!M&&b&&g.lR(Error(`Player URL validator detects invalid url. ${T}: ${W}`));return M}; ER=function(M,W){return W&&W.test(M)?!0:!1}; wcJ=function(M){return(M=sXq&&sXq.exec(M))?M[0]:""}; nX=function(M){return av(ER(M,pcG),M,!1,"Trusted Stream URL")}; g.yN=function(M){return av(ER(M,YWJ),M,!1,"Trusted Image URL")}; MOa=function(M){return av(ER(M,$rg),M,!1,"Trusted Promoted Video Domain URL")}; bYG=function(M){return av(ER(M,WVG),M,!1,"Drm Licensor URL")}; q9l=function(M,W=!1){return av(ER(M,T9q),M,W,"Captions URL")}; Xps=function(M){M=new g.Sm(M);g.OW(M,document.location.protocol);g.Pc(M,document.location.hostname);document.location.port&&g.em(M,document.location.port);return M.toString()}; UR=function(M){M=new g.Sm(M);g.OW(M,document.location.protocol);return M.toString()}; jPJ=function(M){return M===-0x8000000000000?"BEFORE_MEDIA_START":M===0?"MEDIA_START":M===0x7ffffffffffff?"MEDIA_END":M===0x8000000000000?"AFTER_MEDIA_END":M.toString()}; g.CX=function(M,W){return M.start-W.start||M.priority-W.priority||M.V-W.V}; g.kJ=function(M){return`crn_${M}`}; g.KX=function(M){return`crx_${M}`}; Gwt=function(M,W){switch(M.style){case vo.CHAPTER_MARKER:return W?8:5;case vo.AD_MARKER:return 6;case vo.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; VOG=function(M){M.eR?.get().i7(M.slot.clientMetadata.fp("metadata_type_cue_point").identifier)}; m8=function(M,W){return RN(M,W.Rx,W.slotType)?!0:!1}; B9S=function(M){if(M.slot.clientMetadata.fp("metadata_type_allow_pause_ad_break_request_slot_reschedule")){const W=JfS(M,M.slot);LX(M.Z.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",()=>[W])}}; Dry=function(M){if(M.slot.clientMetadata.fp("metadata_type_prefetch_metadata")){const W=JfS(M,M.slot);LX(M.Z.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>[W])}}; JfS=function(M,W){const b=lw(M.V.get(),M.slot.slotType);M={...M.slot};if(W.slotEntryTrigger){var T=W.slotId;var q=W.slotEntryTrigger;T=q.triggeringSlotId!=null&&q.triggeringSlotId===T?q.clone(b):q}else T=void 0;return{...M,slotId:b,slotEntryTrigger:T,slotFulfillmentTriggers:aXJ(W.slotId,b,W.slotFulfillmentTriggers),slotExpirationTriggers:aXJ(W.slotId,b,W.slotExpirationTriggers)}}; aXJ=function(M,W,b){const T=[];for(const q of b)T.push(q.triggeringSlotId!=null&&q.triggeringSlotId===M?q.clone(W):q);return T}; g.tZ=function(M,W){for(const b of Object.keys(W)){const T=W[b];M=M.replace(new RegExp("\\$"+b,"gi"),()=>T)}return M}; ZW=function(M,W,b){W.layoutId!==M.layout.layoutId?M.Z.zx(M.slot,W,new Mg("Unknown layout received. "+`Required LayoutId: ${M.layout.layoutId}`+`and LayoutType: ${M.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):b()}; Ng=function(M,W,b,T,q,X,G,V){T=T||b.clientMetadata.fp(X);M=Iv(M);const J=Z3(()=>{q.t5(W,b)}); V.push(G(T,M,b.layoutId,{adsClientData:b.w9},()=>{J()}))}; fX=function(M,W,b,T,q,X,G,V,J){if(W===M)if(J){if(J===V.layoutId){a:{for(const B of b.keys())if(B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X===b.get(B).layoutId){M=!0;break a}M=!1}M?Ho(T,1):q?q():za("Tried to call engagePingCallback but it is null",G,V)}}else za("Companion AdUxClick received without a layoutId",G,V)}; Rv=function(M){return!!M.get("active_view_viewable")?.length||!!M.get("active_view_measurable")?.length||!!M.get("active_view_fully_viewable_audible_half_duration")?.length||!!M.get("audio_audible")?.length||!!M.get("audio_measurable")?.length}; r$=function(M){return M?.activeViewTracking?.trafficType??"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; xJ=function(M){return new Map([["impression",M.impressionPings||[]],["error",M.errorPings||[]],["mute",M.mutePings||[]],["unmute",M.unmutePings||[]],["pause",M.pausePings||[]],["rewind",M.rewindPings||[]],["resume",M.resumePings||[]],["skip",M.skipPings||[]],["swipe",M.swipePings||[]],["close",M.closePings||[]],["progress",M.progressPings||[]],["clickthrough",M.clickthroughPings||[]],["fullscreen",M.fullscreenPings||[]],["active_view_viewable",M.activeViewViewablePings||[]],["active_view_measurable", M.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",M.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",M.activeViewTracking?.activeViewAudioAudiblePings||[]],["audio_measurable",M.activeViewTracking?.activeViewAudioMeasurablePings||[]],["end_fullscreen",M.endFullscreenPings||[]],["channel_clickthrough",M.channelClickthroughPings||[]],["abandon",M.abandonPings||[]],["start",M.startPings||[]],["first_quartile",M.firstQuartilePings||[]],["midpoint", M.secondQuartilePings||[]],["third_quartile",M.thirdQuartilePings||[]],["complete",M.completePings||[]],["unmuted_impression",M.unmutedImpressionPings||[]],["unmuted_error",M.unmutedErrorPings||[]],["unmuted_mute",M.unmutedMutePings||[]],["unmuted_unmute",M.unmutedUnmutePings||[]],["unmuted_pause",M.unmutedPausePings||[]],["unmuted_resume",M.unmutedResumePings||[]],["unmuted_close",M.unmutedClosePings||[]],["unmuted_progress",M.unmutedProgressPings||[]],["unmuted_clickthrough",M.unmutedClickthroughPings|| []],["unmuted_fullscreen",M.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",M.unmutedEndFullscreenPings||[]],["unmuted_abandon",M.unmutedAbandonPings||[]],["unmuted_start",M.unmutedStartPings||[]],["unmuted_first_quartile",M.unmutedFirstQuartilePings||[]],["unmuted_midpoint",M.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",M.unmutedThirdQuartilePings||[]],["unmuted_complete",M.unmutedCompletePings||[]],["unmuted_skip",M.unmutedSkipPings||[]]])}; Ecg=function(M){switch(M){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen"; case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile"; case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null; default:return null}}; FD=function(){return["metadata_type_ad_placement_config"]}; Iv=function(M){var W=M.iV.get();return iw(W,M.W)}; hZ=function(M,W,b){ncp(M.iV.get(),M.layoutId,W,b,M.C??void 0,M.S)}; AZ=function(M,W,b=!1){M.Z.has(W)?hZ(M,W,[]):M.EB(W,b)}; zb=function(M,W,b=!1){for(;M.AW.hasOwnProperty("offsetMilliseconds"))}; yft=function(M,W,b){M.C=W;M.S=b}; Urq=function(){const M=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_PANEL"]}}; CTq=function(){const M=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; kwq=function(){const M=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; KVp=function(){const M=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; vcL=function(){const M=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; OR=function(M,W,b=!1){var T=M.S();if(T){for(;M.A{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; LVs=function(){const M=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; lXG=function(){const M=["metadata_type_ad_action_interstitial_renderer"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_ENDCAP"]}}; Po=function(M,W){return Hr(M,W.Rx,W.bN)?!0:!1}; tOy=function(){const M=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; ZYJ=function(){const M=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; IXl=function(){const M=["metadata_type_client_forecasting_ad_renderer"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_FORECASTING"]}}; N9J=function(M,W){return Ni(M.clientMetadata,"metadata_type_ad_info_ad_metadata")?M.clientMetadata.fp("metadata_type_ad_info_ad_metadata"):W?{channelId:W.YJ,channelThumbnailUrl:W.profilePicture,channelTitle:W.author,videoTitle:W.title}:(za("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; HYQ=function(M,W){return Ni(M.clientMetadata,"metadata_ad_video_is_listed")?M.clientMetadata.fp("metadata_ad_video_is_listed"):W?W.isListed:(za("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; fXP=function(M){return M.layout.renderingContent?M.layout.clientMetadata.fp("metadata_type_player_bytes_callback_ref")?.current:M.layout.clientMetadata.fp("metadata_type_player_bytes_callback")}; RTs=function(){return{Rx:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],bN:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; eT=function(M){return M.layout.renderingContent?M.layout.clientMetadata.fp("metadata_type_player_bytes_callback_ref")?.current:M.layout.clientMetadata.fp("metadata_type_player_bytes_callback")}; rfQ=function(){return{Rx:["metadata_type_valid_ad_message_renderer"],bN:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; g$=function(M,W,b,T,q,X,G,V,J){return Po(b,RTs())||b.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.z(b.renderingContent,d$)!==void 0?new xrt(M,W,b,T,q,X,G,V,J):Po(b,{Rx:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],bN:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||b.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.z(b.renderingContent,ov)!==void 0? new FVt(M,W,b,T,q,X,G,V,J):Po(b,lXG())||b.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.z(b.renderingContent,co)!==void 0?new iYy(M,W,b,T,X):Po(b,rfQ())?new hTL(W,b,M,T,q,J):Po(b,{Rx:["metadata_type_instream_ad_player_overlay_renderer"],bN:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new AfL(M,W,b,T,q,V):b.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.z(b.renderingContent,QN)!==void 0?new zTp(M,W,b,T,X):null}; sR=function(M){return!M.oldState.isPlaying()&&M.state.isPlaying()}; w$=function(M,W,b){return M{M.removeEventListener("playing",b);W(...T)}; M.addEventListener("playing",b)}; Tn=function(){let M=g.Ct("yt.player.utils.videoElement_");M||(M=g.Gr("VIDEO"),g.Uq("yt.player.utils.videoElement_",M));return M}; qm=function(M){const W=Tn();return!!(W&&W.canPlayType&&W.canPlayType(M))}; jA=function(M){if(/opus/.test(M)&&g.XH&&!Lc("38")&&!g.EL())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(M);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(M);if(/webm/.test(M)&&!H3J())return!1;M==='audio/mp4; codecs="mp4a.40.2"'&&(M='video/mp4; codecs="avc1.4d401f"');return!!qm(M)}; OYp=function(M){try{const W=jA('video/mp4; codecs="avc1.42001E"')||jA('video/webm; codecs="vp9"');return(jA('audio/mp4; codecs="mp4a.40.2"')||jA('audio/webm; codecs="opus"'))&&(W||!M)||qm('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch{return"html5.missingapi"}}; Gn=function(){const M=Tn();return!(!M.webkitSupportsPresentationMode||typeof M.webkitSetPresentationMode!=="function")}; VA=function(){const M=Tn();try{const W=M.muted;M.muted=!W;return M.muted!==W}catch{}return!1}; drg=function(M,W){QZ(M,2,W.Qp,JE,3);QZ(M,3,W.innertubeRequest,PTQ,3);oR(M,4,W.onesieUstreamerConfig);oR(M,9,W.JU);QZ(M,10,W.jd,BE,3);QZ(M,15,W.reloadPlaybackParams,eTs,3);ck(M,18,W.l6)}; cfJ=function(M,W){QZ(M,1,W.formatId,Dw,3);er(M,2,W.startTimeMs);er(M,3,W.durationMs);er(M,4,W.Zd);er(M,5,W.Fy);QZ(M,9,W.zys,oct,3);QZ(M,11,W.wxY,ae,1);QZ(M,12,W.lA,ae,1)}; QPL=function(M,W){ck(M,1,W.videoId);er(M,2,W.lmt)}; oct=function(M,W){if(W.d3)for(let b=0;b>31));er(M,16,W.Yy);er(M,17,W.detailedNetworkType);er(M,18,W.DP);er(M,19,W.NU);er(M,21,W.hN);er(M,23,W.sA);er(M,28,W.w4);er(M,29,W.SM);er(M,34,W.visibility);b=W.playbackRate;if(b!==void 0){var T=new ArrayBuffer(4);(new Float32Array(T))[0]=b;b=(new Uint32Array(T))[0];if(b!==void 0)for(Pk(M,285),O6(M,4),T=0;T<4;)M.view.setUint8(M.pos,b&255),b>>=8,M.pos+=1,T+=1}er(M,36,W.ZO); QZ(M,38,W.mediaCapabilities,ppL,3);er(M,39,W.fk);er(M,40,W.iq);er(M,44,W.playerState);dr(M,46,W.OA);er(M,48,W.K4);er(M,50,W.Co);er(M,51,W.Du);er(M,54,W.Ym);if(W.P6)for(b=0;b>31));ck(M,2,W.message)}; GHt=function(M,W){er(M,1,W.clientState);QZ(M,2,W.pxK,XNL,1)}; q4G=function(M,W){oR(M,1,W.Tn);QZ(M,2,W.hY,jOL,3);QZ(M,3,W.coldStartInfo,GHt,3)}; Tkq=function(M,W){er(M,1,W.type);oR(M,2,W.value)}; bcL=function(M,W){ck(M,1,W.hl);ck(M,12,W.deviceMake);ck(M,13,W.deviceModel);er(M,16,W.clientName);ck(M,17,W.clientVersion);ck(M,18,W.osName);ck(M,19,W.osVersion)}; VDg=function(M,W){ck(M,1,W.name);ck(M,2,W.value)}; yA=function(M,W){ck(M,1,W.url);if(W.cw)for(let b=0;b=Math.floor(X*16/9)*1.3||M>=X*1.3)return W;W=q}return"tiny"}; lS=function(M){return M.indexOf("/mp4")>=0?1:M.indexOf("/webm")>=0?2:M.indexOf("/x-flv")>=0?3:M.indexOf("/vtt")>=0?4:0}; tE=function(M){return M.includes("vtt")||M.includes("text/mp4")}; Zw=function(M){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(M)}; Ie=function(M){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(M)}; Re=function(M,W,b,T,q,X,G){const V=new Nm;W in g.mh||(W="small");W==="light"&&(W="tiny");T&&q?(q=Number(q),T=Number(T)):(q=g.mh[W],T=Math.round(q*16/9));X=new HE(T,q,0,null,void 0,W,X,G);M=unescape(M.replace(/"/g,'"'));return new fW(b,M,{audio:V,video:X})}; W5l=function(M){return M.Qz==="H"||M.Qz==="h"}; r8=function(M){return M.Qz==="9h"||M.Qz==="(h"}; b1S=function(M){return!!M.contentProtection&&!!M.contentProtection.fairplay&&(M.Qz==="("||M.Qz==="(h"||M.Qz==="A"||M.Qz==="MEAC3")||xB&&!!M.contentProtection&&M.Qz==="1e"}; TDl=function(M){return M.Qz==="MAC3"||M.Qz==="MEAC3"||M.Qz==="M"||M.Qz==="I"}; g.FH=function(M){return M.containerType===1}; qmp=function(M){return M.Qz==="("||M.Qz==="(h"||M.Qz==="H"||xB&&M.Qz==="1e"}; XHq=function(M,W=1){const b={};M.video&&(M.video.width&&(b[iS.WIDTH.name]=M.video.width),M.video.height&&(b[iS.HEIGHT.name]=M.video.height),M.video.fps&&(b[iS.FRAMERATE.name]=M.video.fps*W),M.video.Z&&(b[iS.EOTF.name]=M.video.Z),M.sB&&(b[iS.BITRATE.name]=M.sB*8*W),M.Qz==="("&&(b[iS.CRYPTOBLOCKFORMAT.name]="subsample"),M.video.projectionType==="EQUIRECTANGULAR"||M.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||M.video.projectionType==="MESH")&&(b[iS.DECODETOTEXTURE.name]="true");M.audio?.numChannels&& M.Qz!=="i"&&M.Qz!=="I"&&(b[iS.CHANNELS.name]=M.audio.numChannels);return b}; g.hE=function(M,W){return{itag:+M.itag,lmt:W?0:M.lastModified,xtags:M.V||""}}; jwp=function(M){const W=navigator.mediaCapabilities;if(!W?.decodingInfo||M.Qz==="f")return Promise.resolve();const b={type:M.audio&&M.video?"file":"media-source"};M.video&&(b.video={contentType:M.mimeType,width:M.video.width||640,height:M.video.height||360,bitrate:M.sB*8||1E6,framerate:M.video.fps||30});M.audio&&(b.audio={contentType:M.mimeType,channels:`${M.audio.numChannels||2}`,bitrate:M.sB*8||128E3,samplerate:M.audio.sampleRate||44100});return W.decodingInfo(b).then(T=>{M.S=T})}; AE=function(M,W){return{start(b){return M[b]},end(b){return W[b]},length:M.length}}; GCP=function(M,W,b){const T=[],q=[];for(let X=0;XX-G); q.sort((X,G)=>X-G); return AE(T,q)}; zn=function(M,W=",",b=M?M.length:0){const T=[];if(M)for(b=Math.max(M.length-b,0);b=W)return b}catch(b){}return-1}; SA=function(M,W){return uS(M,W)>=0}; VRp=function(M,W){if(!M)return NaN;W=uS(M,W);return W>=0?M.start(W):NaN}; O5=function(M,W){if(!M)return NaN;W=uS(M,W);return W>=0?M.end(W):NaN}; PE=function(M){return M&&M.length?M.end(M.length-1):NaN}; eA=function(M){return PE(M)>0}; d8=function(M,W){M=O5(M,W);return M>=0?M-W:0}; oe=function(M,W,b){const T=[],q=[];for(let X=0;Xb||(T.push(Math.max(W,M.start(X))-W),q.push(Math.min(b,M.end(X))-W));return AE(T,q)}; cE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; JzJ=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; QA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; g8=function(M){try{return M.B()==="open"}catch(W){return!1}}; BDp=function(M,W){g8(M)?g.xS(()=>{W(M)}):M.callback=W}; Dlt=function(M,W,b){s5&&(w8(M.mediaElement,{l:"mswssb",sr:M.mediaElement.Cp?.Aj()},!1),W.o8(M.X,M),b.o8(M.X,M));M.Z=W;M.V=b;g.t(M,W);g.t(M,b)}; Eiy=function(M,W,b,T=""){T=W.mimeType+T;const q=b.mimeType;W=W.Qz;b=b.Qz;M.xk=M.WY?.addSourceBuffer(q);M.MK=T.split(";")[0]==="fakesb"?void 0:M.WY?.addSourceBuffer(T);M.hj&&(M.hj.webkitSourceAddId("0",q),M.hj.webkitSourceAddId("1",T));b=new ayy(M.xk,M.hj,"0",lS(q),b,!1);T=new ayy(M.MK,M.hj,"1",lS(T),W,!0);Dlt(M,b,T)}; yzS=function(M,W,b,T){if(!M.Z||!M.V)return null;const q=M.Z.isView()?M.Z.gt:M.Z,X=M.V.isView()?M.V.gt:M.V,G=new pW(M.mediaElement,M.WY,!0);G.A=M.A;Dlt(G,new nit(q,W,b,T),new nit(X,W,b,T));g8(M)||M.Z.KW(M.Z.Ga());return G}; w8=function(M,W,b=!1){M.Cp?.jW()&&M.Cp.dK("rms",W,b)}; YB=function(M){M=M.D();return M.length<1?NaN:M.end(M.length-1)}; UlJ=function(M,W){M.Vc&&M.Vc.equals(W)||(M.Vc&&M.Vc.dispose(),M.Vc=W)}; C5G=function(M){!M.V&&JzJ()&&(M.A?M.A.then(()=>C5G(M)):M.XA()||(M.V=M.dT()))}; kCQ=function(M){M.V&&(M.V.dispose(),M.V=void 0)}; K5t=function(M,W,b){M.isPaused()||M.getCurrentTime()>W||b>10||(M.play(),g.RS(()=>{K5t(M,M.getCurrentTime(),b+1)},500))}; $a=function(M){return d8(M.O1(),M.getCurrentTime())}; viG=function(M,W){if(M.B()===0||M.hasError())return!1;const b=M.getCurrentTime()>0;return W>=0&&(M=M.D(),M.length||!b)?SA(M,W):b}; M5=function(M){M.XA()&&(M.Cp&&M.Cp.Q$("rs_s"),$w&&M.getCurrentTime()>0&&M.seekTo(0),M.jT(),M.load(),UlJ(M,null));delete M.A}; WK=function(M){switch(M.QW()){case 2:return"progressive.net.retryexhausted";case 3:return M=M.bl(),M?.includes("MEDIA_ERR_CAPABILITY_CHANGED")||mla&&M?.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}}; by=function(M){return M.isPlaying()&&!M.Z(16)&&!M.Z(32)}; q5=function(M,W,b,T){if(!(W===M.state&&b===M.Iw&&T===M.seekSource||W!==void 0&&(W&128&&!b||W&2&&W&16))){var q;if(q=W)q=W||M.state,q=!!(q&16||q&32);M=new g.TD(W,b,q?T?T:M.seekSource:null)}return M}; Xv=function(M,W,b=!1){return L5L(M,W.getCurrentTime(),(0,g.u)(),$a(W),b)}; jK=function(M,W,b=null){return q5(M,M.state|W,null,b)}; tRS=function(M,W,b,T){const q=[];for(const V of b){if(!V.url)continue;b=new g.LJ(V.url,!0);if(V.s){var X=b,G=V.sp;const J=lI(10,decodeURIComponent(V.s));X[y[42]](G,encodeURIComponent(J))}for(const J of Object.keys(T))b.set(J,T[J]);X=Re(V.type,V.quality,V.itag,V.width,V.height);q.push(new lyP(X,b))}return GD(M.S,q,VB(M,W),!1)}; JF=function(M,W){return q5(M,M.state&~W,null,null)}; BK=function(M,W,b,T=null){return q5(M,(M.state|W)&~b,null,T)}; g.Dx=function(M,W){return W.state===M.state&&W.Iw===M.Iw}; a6=function(M){return M.Z(128)?-1:M.Z(2)?0:M.Z(2048)?3:M.Z(64)?-1:M.Z(1)&&!M.Z(32)?3:M.Z(8)?1:M.Z(4)?2:-1}; Et=function(M){return M.layout.clientMetadata.fp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; nd=function(M,W){AZ(M.Yk,W,!M.Z)}; Z1p=function(M){za("Received layout exit signal when not in layout exit flow.",M.slot,M.layout)}; Iyq=function(M){if(M.Zg==="rendering"){nd(M,"pause");var W=Et(M)?.pauseCommands||[];VN(M.SW.get(),W,M.layout.layoutId);M.DM(2)}}; NDL=function(M){if(M.Zg==="rendering"){nd(M,"resume");var W=Et(M)?.resumeCommands||[];VN(M.SW.get(),W,M.layout.layoutId)}}; H1J=function(M,W,b=!1){M.Z||zb(M.Yk,W,b)}; RfJ=function(M){return(Et(M)?.progressCommands||[]).findIndex(W=>!!g.z(W?.command,fyt))!==-1}; rzq=function(M,W){switch(W){case "normal":M.EB("complete");break;case "skipped":M.EB("skip");break;case "abandoned":uw(M.Yk,"impression")&&M.EB("abandon")}}; xlg=function(M,W){M.B||(W=new g.yB(W.state,new g.TD),M.B=!0);return W}; F5L=function(M,W){sR(W)?M.DM(1):W.QN(4)&&!W.QN(2)&&Iyq(M);u9(W,4)<0&&!(u9(W,2)<0)&&NDL(M)}; i1L=function(M){M.position===0&&(M.Md.get(),M=M.layout.clientMetadata.fp("metadata_type_ad_placement_config").kind,M={adBreakType:Ut(M)},rO("ad_bl"),g.xD(M))}; g.Cd=function(M,W,b){iA(M,b)||As(M,W,b);iA(M,"video_to_ad")||As(M,W,"video_to_ad");iA(M,"ad_to_video")||As(M,W,"ad_to_video");iA(M,"ad_to_ad")||As(M,W,"ad_to_ad")}; hfJ=function(M){M.gN=Date.now();ka(M,M.tD);M.timer.start()}; ka=function(M,W){W={current:W/1E3,duration:M.du()/1E3};IN(M.U2.get(),"onAdPlaybackProgress",W)}; zfL=function(M){return new AzL({...M,ZK:M.callback,DM:()=>{}})}; Smg=function(M){return new u7t({...M,DM:W=>{IN(M.U2.get(),"onAdIntroStateChange",W)}})}; Ht=function(M,W,b,T){if((M|48)==M){hz(21,W);var q=decodeURIComponent(W[y[56]](y[47])||y[5])[y[23]](y[15]);var X=W[y[16]]===y[28]&&q[y[6]]>1&&!!q[1]}(M+1&15)==1&&(W=(W%b[y[6]]+b[y[6]])%b[y[6]],q=b[0],b[0]=b[W],b[W]=q,X=[W]);M-6>>4||(b===y[78]&&((q=T[y[12]](y[62]))>=0?(b=`cmo=${T[y[7]](0,q)}`,T=T[y[7]](q+1)):(q=T[y[12]](y[64]))>=0&&(b=`cmo=${T[y[7]](0,q)}`,T=T[y[7]](q+3))),W[b]=T);if(!((M^19)&15))a:{var G=g.z(W,O1L)||W[y[79]];q={gz:!1,ZR:y[5],L9:y[5],s:y[5]};if(!G){X=q;break a}G=ng(G);q[y[38]]=!0;q[y[72]]= G[y[39]];q[y[69]]=G[y[75]];q[y[71]]=G[y[71]];X=q}(M|72)==M&&(b=(b%W[y[6]]+W[y[6]])%W[y[6]],W[y[33]](-b)[y[36]]()[y[55]](function(V){W[y[77]](V)})); return X}; P5Q=function(M){return new u7t({...M,DM:W=>{M.U2.get().zR(W)}})}; efL=function(M){var W=M.Gx,b=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"];for(const T of FD())b.push(T);if(Po(W,{Rx:b,bN:["LAYOUT_TYPE_MEDIA_BREAK"]}))return zfL(M);W=M.Gx;b=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];for(const T of FD())b.push(T);if(Po(W,{Rx:b,bN:["LAYOUT_TYPE_MEDIA"]}))return Ni(M.Gx.clientMetadata,"metadata_type_ad_intro")?Smg(M):P5Q(M)}; m6=function(M,W,b){const T=Kd(M);M.Wp===M.DS.length-1&&za("Unexpected skip with target requested during the last sublayout");if(b.renderingContent===void 0&&b.layoutId!==vK(T,W,b)){za("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",T.Qc(),T.Zf(),{requestingSlot:W,requestingLayout:b});var q=!1}else q=!0;if(q){a:{if((q=T.Zf().clientMetadata.fp("metadata_type_ad_pod_skip_target"))&&q>0&&q{Ld(M,M.Wp+1)})}; dly=function(M,W,b,T){oiQ(M,W,b,"skipped",()=>{Ld(M,T)})}; oiQ=function(M,W,b,T,q){if(!M.oL){var X=Kd(M);X?(X.Zf().layoutId!==b.layoutId&&za("SubLayout mismatch in exitSubLayout",W,b,{exitingSubLayout:b.layoutId,activeSubLayout:X.Zf().layoutId}),M.oL=!0,X.A_(X.Zf(),T),HIL(M.z9,W,b,T),M.oL=!1,M.rz?(M.rz(),tF(M.Md.get())):q()):za("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",W,b)}}; Ld=function(M,W){if(M.Wp===M.DS.length-1)M.Wp++,Zx(M.I3,M.layout),tF(M.Md.get());else a:{if(M.Wp===-1&&(M.callback.t5(M.slot,M.layout),W>0)){za("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",M.slot,M.layout,{indexToPlay:W,layoutId:M.layout.layoutId});break a}M.Wp=W;W=Kd(M);if(M.Wp>0){var b=M.Md.get();b.V=!1;const T={};b.Z&&b.videoId&&(T.cttAuthInfo={token:b.Z,videoId:b.videoId});FN("ad_to_ad",T)}b=g.z(W.Zf().renderingContent,co);!b?.isEligibleToBeSkippedWhenNoEngagementOnLayoutId|| (M.vx.get().BD.get(b.isEligibleToBeSkippedWhenNoEngagementOnLayoutId)??!1)?W.startRendering(W.Zf()):Ld(M,M.Wp+1)}}; czQ=function(M){(M=Kd(M))&&M.tH()}; git=function(M){return new Qwa(M.Kk,M.NK,M.eR,M.zY,M.I0,M.vx,M.Md,M.z9,M.slot,M.layout,M.P3,M.I3,M.Pr,M.PY)}; wHJ=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C,l,N,R,f,x,A,qa){const Xs={iV:V,HP:J,Ce:B,zY:D,NK:a,I0:E,vx:n,VN:C,Md:l,U2:N,SW:R,rW:f,PY:x,context:qa};V=Po(T,{Rx:["metadata_type_sub_layouts"],bN:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||T.wM!==void 0&&T.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";J=Po(T,{Rx:[],bN:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});B=()=>{const uQ=T.wM??T.clientMetadata.fp("metadata_type_sub_layouts"),Lt=git({Kk:M,NK:a,eR:A,zY:D,I0:E,vx:n,Md:l,z9:W,slot:b,layout:T, P3:X,I3:G,Pr:q,PY:x}),St=[];for(let oJ=0;oJ{Oq.A_(uQ[oJ],"normal")}, qh:oJ,FE:uQ.length,rl:!1});if(!NR)return;St.push(NR)}Lt.DS=St;return Lt}; C=()=>{const uQ=efL({...Xs,callback:{t5:M.t5.bind(M),Dg:M.Dg.bind(M),zx:M.zx.bind(M)},slot:b,Gx:T,lH:()=>{Zx(G,T)}, qh:0,FE:1,rl:!0});return uQ?new swa(M,D,E,l,uQ,q,x):uQ}; if(V)return B();if(J)return C()}; N5=function(M,W){I6(M.iV.get(),{driftRecoveryInfo:{contentCpn:M.NK.get().aG?.clientPlaybackNonce,adClientData:M.layout.w9.adClientDataEntry,...W}})}; YmJ=function(M){var W=M.layout.clientMetadata.fp("metadata_type_layout_enter_ms");const b=M.layout.clientMetadata.fp("metadata_type_layout_exit_ms");M=M.mQ.get();W=pHG(M.B,W,b);return Math.min(b,W!==null?W:Infinity)}; M$y=function(M,W){const b=$et(M,W);b||za("Expected subLRA found by layout ID",M.slot,M.layout,{layoutId:W});M.Z={zT:b};b?b.startRendering(b.Zf()):W===M.V&&za("Failed to find rendering adapter for survey media layout",M.slot,M.layout,{surveyMediaLayoutId:W})}; $et=function(M,W){return W==null?null:M.B.find(b=>b.Zf().layoutId===W)||null}; W0l=function(M,W,b,T,q,X,G,V,J,B){var D=q-T;const a=(M.fulfilledLayout||M.clientMetadata.fp("metadata_type_fulfilled_layout"))?.clientMetadata.fp("metadata_type_ssdai_ads_config")||"",E=M.clientMetadata.fp("metadata_type_triggering_cue_point")?.current?.identifier;E||HK(B,"ads_cpu",`slid.${W.layoutId}`);if(!D)return G.cE(b,a,2,X,T,q,M.slotId,E),HK(B,"ads_iraot",`slid.${W.layoutId};enterMs.${T};exitMs.${q};vid.${b.video_id}`),null;D=G.Yp(b,a,2,X,T,q,M.slotId,E);HK(B,"ads_atct",`slid.${W.layoutId};enterMs.${T};exitMs.${q};vid.${b.video_id};pid.${D};cid.${E}`); if(!D)return za("Unexpected failure to add to playback timeline",M,W,J()),null;M=M.slotId;W=W.layoutId;D?(V.Z.has(D)&&za("Unexpected remap of timeline playback"),V.Z.set(D,{slotId:M,layoutId:W})):za("Invalid timeline playback ID");T+X>q&&G.OH(D,q-T);return D}; TaQ=function(M,W,b){const T=W.clientMetadata.fp("metadata_type_sodar_extension_data");if(T)try{dtl(b,T)}catch(q){za("Unexpected error when loading Sodar",M,W,{error:q})}}; qXL=function(M,W,b,T,q,X,G){fd(M,W,new g.yB(b,new g.TD),T,q,G,!1,X)}; fd=function(M,W,b,T,q,X,G=!0,V){sR(b)&&w$(q,0,null)&&(!uw(M,"impression")&&V&&V(),M.EB("impression"));uw(M,"impression")&&(b.QN(4)&&!b.QN(2)&&M.e6("pause"),u9(b,4)<0&&!(u9(b,2)<0)&&M.e6("resume"),b.QN(16)&&q>=.5&&M.e6("seek"),G&&b.QN(2)&&R6(M,b.state,W,T,q,X))}; R6=function(M,W,b,T,q,X,G,V,J){uw(M,"impression")&&(X?(X=q-T,X=X>=-1&&X<=2):X=Math.abs(T-q)<=1,rn(M,W,X?T:q,b,T,G,V&&X),X&&!J&&M.EB("complete"))}; rn=function(M,W,b,T,q,X,G){zb(M,b*1E3,G);q<=0||b<=0||W?.Z(16)||W?.Z(32)||(w$(b,q*.25,T)&&(X&&!uw(M,"first_quartile")&&X("first"),M.EB("first_quartile")),w$(b,q*.5,T)&&(X&&!uw(M,"midpoint")&&X("second"),M.EB("midpoint")),w$(b,q*.75,T)&&(X&&!uw(M,"third_quartile")&&X("third"),M.EB("third_quartile")))}; Xep=function(M,W){uw(M,"impression")&&M.e6(W?"fullscreen":"end_fullscreen")}; jSy=function(M){uw(M,"impression")&&M.e6("clickthrough")}; Gka=function(M){M.e6("active_view_measurable")}; V$p=function(M){uw(M,"impression")&&!uw(M,"seek")&&M.e6("active_view_fully_viewable_audible_half_duration")}; Jel=function(M){uw(M,"impression")&&!uw(M,"seek")&&M.e6("active_view_viewable")}; Baa=function(M){uw(M,"impression")&&!uw(M,"seek")&&M.e6("audio_audible")}; DeS=function(M){uw(M,"impression")&&!uw(M,"seek")&&M.e6("audio_measurable")}; aMt=function(M,W){HK(M.iV.get(),"ads_imp",`cpn.${M.layout.clientMetadata.fp("metadata_type_content_cpn")};acpn.${pX(M.NK.get(),2)?.clientPlaybackNonce};clr.${W};skp.${!!g.z(M.layout.clientMetadata.fp("metadata_type_instream_ad_player_overlay_renderer")?.skipOrPreviewRenderer,xa)}`)}; E7J=function(M,W,b){HK(M.iV.get(),"ads_qua",`cpn.${M.layout.clientMetadata.fp("metadata_type_content_cpn")};acpn.${pX(M.NK.get(),2)?.clientPlaybackNonce};qt.${W};clr.${b}`)}; Fv=function(M){return{enterMs:M.clientMetadata.fp("metadata_type_layout_enter_ms"),exitMs:M.clientMetadata.fp("metadata_type_layout_exit_ms")}}; n7L=function(M,W){HK(M.iV.get(),"ads_imp",`acpn.${pX(M.NK.get(),2)?.clientPlaybackNonce};clr.${W}`)}; yeL=function(M,W,b){HK(M.iV.get(),"ads_qua",`cpn.${M.layout.clientMetadata.fp("metadata_type_content_cpn")};acpn.${pX(M.NK.get(),2)?.clientPlaybackNonce};qt.${W};clr.${b}`)}; iy=function(M){return`${Math.round(M.width)}x${Math.round(M.height)}`}; AF=function(M,W,b=hF){b.widthM.width*M.height*.2)return{M_:3,tO:501,errorMessage:`ad(${iy(b)}) to container(${iy(M)}) ratio exceeds limit.`};if(b.height>M.height/3-W)return{M_:3,tO:501,errorMessage:`ad(${iy(b)}) covers container(${iy(M)}) center.`}}; Uep=function(M,W){const b=M.clientMetadata.fp("metadata_type_ad_placement_config");return new zD(M.yc,W,b,M.layoutId)}; uy=function(M){return M.clientMetadata.fp("metadata_type_invideo_overlay_ad_renderer")}; Cpg=function(){const M=["metadata_type_invideo_overlay_ad_renderer"];FD().forEach(W=>{M.push(W)}); return{Rx:M,bN:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; kkq=function(){const M=["metadata_type_invideo_overlay_ad_renderer"];for(const W of FD())M.push(W);return{Rx:M,bN:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; K0G=function(M=null){return M!=null&&(M=M.thumbnail,M!=null&&M.thumbnails!=null&&M.thumbnails.length!=0&&M.thumbnails[0].width!=null&&M.thumbnails[0].height!=null)?new g.i0(M.thumbnails[0].width||0,M.thumbnails[0].height||0):new g.i0(0,0)}; v7t=function(){const M=RTs();M.Rx.push("metadata_type_ad_info_ad_metadata");return M}; met=function(M){switch(M){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new P(`Invalid layout exit reason: ${M}`)}}; SK=function(M){return M?.layoutId!=null&&M?.layoutType!=null}; L0L=function(M){if(!SK(M.adLayoutMetadata))return!1;M=M.renderingContent;return g.z(M,Ot)||g.z(M,PK)||g.z(M,eK)||g.z(M,dn)||g.z(M,o6)||g.z(M,cK)?!0:!1}; QB=function(M){return!!(M.Ki&&M.slot&&M.layout)}; gn=function(M){const W=M.config?.adPlacementConfig;M=M.renderer;return!(!W||W.kind==null||!M)}; t$S=function(M){if(!SK(M.adLayoutMetadata))return!1;M=M.renderingContent;return g.z(M,co)||g.z(M,QN)||g.z(M,lMt)||g.z(M,d$)||g.z(M,ov)?!0:!1}; wn=function(M){return M.playerVars!==void 0&&M.pings!==void 0&&M.externalVideoId!==void 0}; T3=function(M){if(!SK(M.adLayoutMetadata))return!1;M=M.renderingContent;var W=g.z(M,pd);return W?Ya(W):(W=g.z(M,$C))?wn(W):(W=g.z(M,Mc))?W.playerVars!==void 0:(W=g.z(M,co))?W.durationMilliseconds!==void 0:g.z(M,Wd)||g.z(M,b4)?!0:!1}; Ya=function(M){M=(M.sequentialLayouts||[]).map(W=>g.z(W,qc)); return M.length>0&&M.every(T3)}; jf=function(M){return SK(M.adLayoutMetadata)?(M=g.z(M.renderingContent,XP))&&M.pings?!0:!1:!1}; fMl=function(M){if(!SK(M.adLayoutMetadata))return!1;if(g.z(M.renderingContent,Zgg)||g.z(M.renderingContent,G3))return!0;const W=g.z(M.renderingContent,Vf);return g.z(M.renderingContent,Jr)||g.z(W?.sidePanel,IMP)||g.z(W?.sidePanel,NaS)||g.z(W?.sidePanel,Hgy)?!0:!1}; hpL=function(M){var W;(W=!M)||(W=M.adSlotMetadata,W=!(W?.slotId!==void 0&&W?.slotType!==void 0));if(W||!(Rpt(M)||M.slotEntryTrigger&&M.slotFulfillmentTriggers&&M.slotExpirationTriggers))return!1;M=M.fulfillmentContent?.fulfilledLayout;return(W=g.z(M,qc))?T3(W):(W=g.z(M,Bd))?fMl(W):(W=g.z(M,reL))?t$S(W):(W=g.z(M,xeG))?L0L(W):(W=g.z(M,F0g))?SK(W.adLayoutMetadata)?g.z(W.renderingContent,Ot)?!0:!1:!1:(W=g.z(M,Ds))?jf(W):(M=g.z(M,igt))?SK(M.adLayoutMetadata)?g.z(M.renderingContent,G3)?!0:!1:!1:!1}; Rpt=function(M){return(M=g.z(M.fulfillmentContent?.fulfilledLayout,Bd))&&M.adLayoutMetadata?.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"&&M.layoutExitNormalTriggers===void 0}; Aet=function(M){for(const W of M||[]){M=g.z(W,aW);if(M===void 0||!hpL(M))break;if((M=g.z(M.fulfillmentContent?.fulfilledLayout,Ds))&&jf(M))return!0}return!1}; uVG=function(M,W=!1){if(!M.questions?.length||!M.playbackCommands||!W&&M.questions.length!==1)return!1;for(const b of M.questions)if(!zpL(g.z(b,Ed)?.surveyAdQuestionCommon||g.z(b,nz)?.surveyAdQuestionCommon))return!1;return!0}; SXq=function(M){({instreamSurveyAdRenderer:M}=M?.playerOverlay||{});return M?M.playbackCommands&&M.questions&&M.questions.length===1?zpL(g.z(M.questions[0],Ed)?.surveyAdQuestionCommon||g.z(M.questions[0],nz)?.surveyAdQuestionCommon):!1:!1}; zpL=function(M){if(!M)return!1;M=g.z(M.instreamAdPlayerOverlay,yf);const W=g.z(M?.skipOrPreviewRenderer,xa),b=g.z(M?.adInfoRenderer,Ud);return(g.z(M?.skipOrPreviewRenderer,Cz)||W)&&b?!0:!1}; OgP=function(M){return M.linearAds!=null&&SK(M.adLayoutMetadata)}; Ppl=function(M){return M.linearAd!=null&&M.adVideoStart!=null}; o7s=function(M,W,b){const T=(b.adSlots??[]).map(G=>g.z(G,aW)); if(b.Qx)if(W.clientMetadata.fp("metadata_type_allow_pause_ad_break_request_slot_reschedule"))LX(M.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],W.slotId); else{if(M.PY.get().L.G().j("h5_check_forecasting_renderer_for_throttled_midroll")){var q=b.HV.filter(G=>G.renderer?.clientForecastingAdRenderer!=null); q.length!==0?epy(M.B,q,T,W.slotId,b.ssdaiAdsConfig):LX(M.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],W.slotId)}else LX(M.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],W.slotId); deQ(M.A,W)}else{q={KD:Math.round(W.clientMetadata.fp("metadata_type_ad_break_request_data")?.KD||0),iS:W.clientMetadata.fp("metadata_type_ad_break_request_data")?.iS};var X=W.clientMetadata.fp("metadata_type_cue_point");epy(M.B,b.HV,T,W.slotId,b.ssdaiAdsConfig,q,X)}}; ceS=function(M,W){for(const b of W){if(b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.fulfilledLayout)if(W=void 0,b.fulfilledLayout.renderingContent)W=b.fulfilledLayout.clientMetadata.fp("metadata_type_player_vars");else{if(b.fulfilledLayout.wM)for(const T of b.fulfilledLayout.wM)if(T.renderingContent&&(W=T.clientMetadata.fp("metadata_type_player_vars")))break}else W=void 0;if(W){M.zY.get().L.preloadVideoByPlayerVars(W,2,300);break}}}; g7Q=function(M,W,b,T,q,X,G,V){const J=pX(M.NK.get(),1);if(QSQ(M.PY.get())){const B=kC(M.V.get(),b,T,q,J.clientPlaybackNonce,J.IV,J.daiEnabled,J,X,G);ceS(M,B);LX(M.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>B,W)}else LX(M.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>kC(M.V.get(),b,T,q,J.clientPlaybackNonce,J.IV,J.daiEnabled,J,X,G,V),W)}; wet=function(M,W,b,T,q,X,G){W=sSq(W,X,Number(T.prefetchMilliseconds)||0,G);M=W instanceof P?W:Kz(M,T,q,W,b);return M instanceof P?M:[M]}; M9S=function(M,W,b,T,q){const X=lw(M.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");T=[new pet({getAdBreakUrl:T.getAdBreakUrl,KD:0,iS:0}),new YXg];M=W.pauseDurationMs?W.lactThresholdMs?{slotId:X,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new vd(M.Z,X),slotFulfillmentTriggers:[new $Gl(M.Z)],slotExpirationTriggers:[new mw(M.Z,q),new Lz(M.Z,X)],eT:"core",clientMetadata:new h3(T),adSlotLoggingData:b}:new P("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new P("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return M instanceof P?M:[M]}; dd=function(M,W,b){if(M.beforeContentVideoIdStartedTrigger)M=M.beforeContentVideoIdStartedTrigger?new l4(tr,W,M.id):new P("Not able to create BeforeContentVideoIdStartedTrigger");else if(M.layoutIdExitedTrigger)M=M.layoutIdExitedTrigger?.triggeringLayoutId?new Zs(tr,M.layoutIdExitedTrigger.triggeringLayoutId,M.id):new P("Not able to create LayoutIdExitedTrigger");else if(M.layoutExitedForReasonTrigger)M.layoutExitedForReasonTrigger?.triggeringLayoutId&&M.layoutExitedForReasonTrigger?.layoutExitReason? (W=met(M.layoutExitedForReasonTrigger.layoutExitReason),M=W instanceof P?W:new IW(tr,M.layoutExitedForReasonTrigger.triggeringLayoutId,[W],M.id)):M=new P("Not able to create LayoutIdExitedForReasonTrigger");else if(M.onLayoutSelfExitRequestedTrigger)M=M.onLayoutSelfExitRequestedTrigger?.triggeringLayoutId?new Nc(tr,M.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,M.id):new P("Not able to create OnLayoutSelfExitRequestedTrigger");else if(M.onNewPlaybackAfterContentVideoIdTrigger)M=M.onNewPlaybackAfterContentVideoIdTrigger? new mw(tr,W,M.id):new P("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else if(M.skipRequestedTrigger)M=M.skipRequestedTrigger?.triggeringLayoutId?new Hd(tr,M.skipRequestedTrigger.triggeringLayoutId,M.id):new P("Not able to create SkipRequestedTrigger");else if(M.slotIdEnteredTrigger)M=M.slotIdEnteredTrigger?.triggeringSlotId?new fz(tr,M.slotIdEnteredTrigger.triggeringSlotId,M.id):new P("Not able to create SlotIdEnteredTrigger");else if(M.slotIdExitedTrigger)M=M.slotIdExitedTrigger?.triggeringSlotId? new Lz(tr,M.slotIdExitedTrigger.triggeringSlotId,M.id):new P("Not able to create SkipRequestedTrigger");else if(M.surveySubmittedTrigger)M=M.surveySubmittedTrigger?.triggeringLayoutId?new RW(tr,M.surveySubmittedTrigger.triggeringLayoutId,M.id):new P("Not able to create SurveySubmittedTrigger");else if(M.mediaResumedTrigger)M=M.mediaResumedTrigger&&M.id?new WmL(M.id):new P("Not able to create MediaResumedTrigger");else if(M.closeRequestedTrigger)M=M.closeRequestedTrigger?.triggeringLayoutId?new rd(tr, M.closeRequestedTrigger.triggeringLayoutId,M.id):new P("Not able to create CloseRequestedTrigger");else if(M.slotIdScheduledTrigger)M=M.slotIdScheduledTrigger?.triggeringSlotId?new vd(tr,M.slotIdScheduledTrigger.triggeringSlotId,M.id):new P("Not able to create SlotIdScheduledTrigger");else if(M.mediaTimeRangeTrigger){var T=Number(M.mediaTimeRangeTrigger?.offsetStartMilliseconds),q=Number(M.mediaTimeRangeTrigger?.offsetEndMilliseconds);isFinite(T)&&isFinite(q)?(q===-1&&(q=b),b=T>q?new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.", {offsetStartMs:T,offsetEndMs:q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",q===b&&T-500<=q):new vN(T,q),M=b instanceof P?b:new xC(tr,W,b,!1,M.id)):M=new P("Not able to create MediaTimeRangeTrigger")}else M=M.contentVideoIdEndedTrigger?M.contentVideoIdEndedTrigger?new FP(tr,W,!1,M.id):new P("Not able to create ContentVideoIdEndedTrigger"):M.layoutIdEnteredTrigger?M.layoutIdEnteredTrigger?.triggeringLayoutId?new i4(tr,M.layoutIdEnteredTrigger.triggeringLayoutId,M.id):new P("Not able to create LayoutIdEnteredTrigger"): M.timeRelativeToLayoutEnterTrigger?M.timeRelativeToLayoutEnterTrigger?.triggeringLayoutId?new hr(tr,Number(M.timeRelativeToLayoutEnterTrigger.durationMs),M.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,M.id):new P("Not able to create TimeRelativeToLayoutEnterTrigger"):M.onDifferentLayoutIdEnteredTrigger?M.onDifferentLayoutIdEnteredTrigger?.triggeringLayoutId&&M.onDifferentLayoutIdEnteredTrigger.slotType&&M.onDifferentLayoutIdEnteredTrigger.layoutType?new Ar(tr,M.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId, M.onDifferentLayoutIdEnteredTrigger.slotType,M.onDifferentLayoutIdEnteredTrigger.layoutType,M.id):new P("Not able to create CloseRequestedTrigger"):M.liveStreamBreakStartedTrigger?M.liveStreamBreakStartedTrigger&&M.id?new z3(tr,M.id):new P("Not able to create LiveStreamBreakStartedTrigger"):M.liveStreamBreakEndedTrigger?M.liveStreamBreakEndedTrigger&&M.id?new u4(tr,M.id):new P("Not able to create LiveStreamBreakEndedTrigger"):M.liveStreamBreakScheduledDurationMatchedTrigger?M.liveStreamBreakScheduledDurationMatchedTrigger?.breakDurationMs? new Sf(Number(M.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,M.id):new P("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger"):M.liveStreamBreakScheduledDurationNotMatchedTrigger?M.liveStreamBreakScheduledDurationNotMatchedTrigger?.breakDurationMs?new Od(Number(M.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,M.id):new P("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger"):M.newSlotScheduledWithBreakDurationTrigger? M.newSlotScheduledWithBreakDurationTrigger?.breakDurationMs?new Pd(Number(M.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,M.id):new P("Not able to create NewSlotScheduledWithBreakDurationTrigger"):M.prefetchCacheExpiredTrigger?new ef(tr,M.id):new P("Not able to convert an AdsControlflowTrigger.");return M}; oW=function(M,W){W.Z>=2&&(M.slot_pos=W.adPodIndex);M.autoplay="1"}; qLq=function(M,W,b,T,q,X,G,V){return W===null?new P("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:W,ActionCompanionAdRenderer:T}):[bUt(M,W,G,X,J=>{var B=J.slotId;J=V(J);var D=T.adLayoutLoggingData;const a=new h3([new T2G(T),new cd(q)]);B=DW(b.V.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",B);const E={layoutId:B,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",eT:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",yc:new Map, layoutExitNormalTriggers:[new mw(b.Z,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:a,w9:J(E),adLayoutLoggingData:D}})]}; j$Q=function(M,W,b,T,q,X,G,V){return W===null?new P("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:W,TopBannerImageTextIconButtonedLayoutViewModel:T}):[bUt(M,W,G,X,J=>{var B=J.slotId;J=V(J);var D=T.adLayoutLoggingData;const a=new h3([new XVl(T),new cd(q)]);B=DW(b.V.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",B);const E={layoutId:B,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",eT:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", yc:new Map,layoutExitNormalTriggers:[new mw(b.Z,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:a,w9:J(E),adLayoutLoggingData:D}})]}; B2p=function(M,W,b,T,q,X){if(!X)for(const G of W)Qf(M,G.renderer,G.config.adPlacementConfig.kind);M=Array.from(M.values()).filter(G=>Gdy(G)); W=[];for(const G of M)for(const V of G.QJ)X=J=>V.NG(J,G.instreamVideoAdRenderer.elementId,V.OT),V.isContentVideoCompanion?W.push(V9L(b,T,q,G.instreamVideoAdRenderer.elementId,V.associatedCompositePlayerBytesLayoutId,V.adSlotLoggingData,X)):M.length>1?W.push(JAq(b,T,q,G.instreamVideoAdRenderer.elementId,V.adSlotLoggingData,J=>V.NG(J,G.instreamVideoAdRenderer.elementId,V.OT,V.associatedCompositePlayerBytesLayoutId))):W.push(JAq(b,T,q,G.instreamVideoAdRenderer.elementId,V.adSlotLoggingData,X)); return W}; Qf=function(M,W,b){if(W=DGL(W))for(const T of W)T&&T.externalVideoId?(W=gd(M,T.externalVideoId),W.instreamVideoAdRenderer||(W.instreamVideoAdRenderer=T,W.x0=b)):za("InstreamVideoAdRenderer without externalVideoId")}; DGL=function(M){const W=[],b=M.sandwichedLinearAdRenderer&&M.sandwichedLinearAdRenderer.linearAd&&g.z(M.sandwichedLinearAdRenderer.linearAd,$C);if(b)return W.push(b),W;if(M.instreamVideoAdRenderer)return W.push(M.instreamVideoAdRenderer),W;if(M.linearAdSequenceRenderer&&M.linearAdSequenceRenderer.linearAds){for(const T of M.linearAdSequenceRenderer.linearAds)g.z(T,$C)&&W.push(g.z(T,$C));return W}return null}; Gdy=function(M){if(M.instreamVideoAdRenderer===void 0)return za("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(const W of M.QJ){if(W.NG===void 0)return!1;if(W.OT===void 0)return za("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(M.x0===void 0||W.vl===void 0||M.x0!==W.vl&&W.vl!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(M.instreamVideoAdRenderer.elementId===void 0)return za("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:M.x0,"matching APSR kind":W.vl}),!1}return!0}; gd=function(M,W){M.has(W)||M.set(W,{instreamVideoAdRenderer:void 0,x0:void 0,adVideoId:W,QJ:[]});return M.get(W)}; sd=function(M,W,b,T,q,X,G,V,J){q?gd(M,q).QJ.push({CwT:W,vl:b,isContentVideoCompanion:T,OT:G,associatedCompositePlayerBytesLayoutId:X,adSlotLoggingData:V,NG:J}):za("Companion AdPlacementSupportedRenderer without adVideoId")}; wd=function(M){let W=0;for(const b of M.questions)(M=g.z(b,Ed)||g.z(b,nz))&&(W+=M.surveyAdQuestionCommon?.durationMilliseconds||0);return W}; pz=function(M){var W=g.z(M.questions?.[0],Ed)?.surveyAdQuestionCommon||g.z(M.questions?.[0],nz)?.surveyAdQuestionCommon;W=[...(M.playbackCommands?.instreamAdCompleteCommands||[]),...(W?.timeoutCommands||[])];return{impressionCommands:M.playbackCommands?.impressionCommands,errorCommands:M.playbackCommands?.errorCommands,muteCommands:M.playbackCommands?.muteCommands,unmuteCommands:M.playbackCommands?.unmuteCommands,pauseCommands:M.playbackCommands?.pauseCommands,rewindCommands:M.playbackCommands?.rewindCommands, resumeCommands:M.playbackCommands?.resumeCommands,skipCommands:M.playbackCommands?.skipCommands,progressCommands:M.playbackCommands?.progressCommands,F$V:M.playbackCommands?.clickthroughCommands,fullscreenCommands:M.playbackCommands?.fullscreenCommands,activeViewViewableCommands:M.playbackCommands?.activeViewViewableCommands,activeViewMeasurableCommands:M.playbackCommands?.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:M.playbackCommands?.activeViewFullyViewableAudibleHalfDurationCommands, activeViewAudioAudibleCommands:M.playbackCommands?.activeViewTracking?.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:M.playbackCommands?.activeViewTracking?.activeViewAudioMeasurableCommands,endFullscreenCommands:M.playbackCommands?.endFullscreenCommands,abandonCommands:M.playbackCommands?.abandonCommands,completeCommands:W}}; nsS=function(M,W,b,T,q,X,G){return(V,J)=>aft(M,J.slotId,V,X,(B,D)=>{var a=J.layoutId;B=G(B);return YC(W,a,D,q,B,"LAYOUT_TYPE_SURVEY",[new Esy(b),T],b.adLayoutLoggingData)})}; kdt=function(M,W,b,T,q,X,G){if(!yAl(M))return new P("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:M});const V=M.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[UGJ(X,W,b,T,J=>{var B=J.slotId;J=G(J);B=DW(q.V.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",B);const D={layoutId:B,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",eT:"core"},a=new Zs(q.Z,T);return{layoutId:B,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",yc:new Map,layoutExitNormalTriggers:[a], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new Ctp(V)]),w9:J(D)}})]}; yAl=function(M){M=g.z(M?.additionalPlayerOverlay,Kml);if(!M)return!1;const W=M.slidingMessages;return M.title&&W&&W.length!==0?!0:!1}; lfP=function(M,W,b,T,q){if(!M.playerOverlay?.instreamSurveyAdRenderer)return()=>[]; if(!SXq(M))return()=>new P("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:M}); const X=M.playerOverlay.instreamSurveyAdRenderer,G=wd(X);return G<=0?()=>new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:X}):(V,J)=>{const B=vsp(V,b,T,D=>{var a=D.slotId; D=J(D);var E=pz(X);a=DW(q.V.get(),"LAYOUT_TYPE_SURVEY",a);const n={layoutId:a,layoutType:"LAYOUT_TYPE_SURVEY",eT:"core"},C=new Zs(q.Z,T),l=new Hd(q.Z,a),N=new RW(q.Z,a),R=new mGy(q.Z);return{layoutId:a,layoutType:"LAYOUT_TYPE_SURVEY",yc:new Map,layoutExitNormalTriggers:[C,R],layoutExitSkipTriggers:[l],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[N],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new Lmg(X),new cd(W),new $G(G/1E3),new My(E)]),w9:D(n),adLayoutLoggingData:X.adLayoutLoggingData}}); V=kdt(M,b,B.slotId,T,q,V,J);return V instanceof P?V:[B,...V]}}; RlL=function(M,W,b,T,q,X,G){const V=[];try{let J,B=[];if(b.renderer.linearAdSequenceRenderer)J=a=>{a=t9s(a.slotId,b,W,q(a),T,X);B=a.le;return a.Jz}; else if(b.renderer.instreamVideoAdRenderer)J=a=>{var E=a.slotId;a=q(a);const n=b.config.adPlacementConfig,{VA:C,pL:l}=ZUG(n);var N=b.renderer.instreamVideoAdRenderer;if(N?.playerOverlay?.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var R=W2(N);const f=Math.min(C+R.videoLengthSeconds*1E3,l),x=new bP(0,[R.videoLengthSeconds]);var A=R.videoLengthSeconds,qa=R.playerVars,Xs=R.instreamAdPlayerOverlayRenderer,uQ=R.playerOverlayLayoutRenderer,Lt=R.adVideoId, St=Ift(b),oJ=R.yc;R=R.hE;var NR=N?.adLayoutLoggingData;N=N?.sodarExtensionData;E=DW(W.V.get(),"LAYOUT_TYPE_MEDIA",E);const Oq={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",eT:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",yc:oJ,layoutExitNormalTriggers:[new u4(W.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new Ti(T),new qy(A),new Xe(qa),new j4(C),new Gi(f),Xs&&new VM(Xs),uQ&& new JC(uQ),new cd(n),new B2(Lt),new De(x),new aj(St),N&&new EI(N),new n2({current:null}),new yM,new UI(R)].filter(N2L)),w9:a(Oq),adLayoutLoggingData:NR}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");const D=HUL(M,T,b.adSlotLoggingData,J,G);V.push(D);for(const a of B){const E=a(M,q);if(E instanceof P)return E;V.push(...E)}}catch(J){return new P(J,{errorMessage:J.message,AdPlacementRenderer:b,numberOfSurveyRenderers:fft(b)})}return V}; fft=function(M){({linearAds:M}=M.renderer.linearAdSequenceRenderer||{});return M?.length?M.filter(W=>g.z(W,$C)?.playerOverlay?.instreamSurveyAdRenderer!=null).length:0}; t9s=function(M,W,b,T,q,X){const G=W.config.adPlacementConfig,{VA:V,pL:J}=ZUG(G);var {linearAds:B}=W.renderer.linearAdSequenceRenderer||{};if(!B?.length)throw new TypeError("Expected linear ads");const D=[],a={WI:V,qh:0,AN:D};B=B.map(n=>rAS(M,n,a,b,T,G,q,J)).map((n,C)=>{C=new bP(C,D); return n(C)}); const E=B.map(n=>n.GO); return{Jz:xGp(b,M,V,E,G,Ift(W),T,J,X),le:B.map(n=>n.pk)}}; rAS=function(M,W,b,T,q,X,G,V){const J=W2(g.z(W,$C)),B=b.WI,D=b.qh,a=Math.min(B+J.videoLengthSeconds*1E3,V);b.WI=a;b.qh++;b.AN.push(J.videoLengthSeconds);const E=g.z(W,$C)?.playerOverlay?.instreamSurveyAdRenderer;if(J.adVideoId==="nPpU29QrbiU"&&E==null)throw new TypeError("Survey slate media has no survey overlay");return n=>{oW(J.playerVars,n);var C=J.videoLengthSeconds,l=J.playerVars,N=J.yc,R=J.hE,f=J.instreamAdPlayerOverlayRenderer,x=J.playerOverlayLayoutRenderer,A=J.adVideoId,qa=g.z(W,$C)?.adLayoutLoggingData, Xs=g.z(W,$C)?.sodarExtensionData;const uQ=DW(T.V.get(),"LAYOUT_TYPE_MEDIA",M),Lt={layoutId:uQ,layoutType:"LAYOUT_TYPE_MEDIA",eT:"adapter"};n={layoutId:uQ,layoutType:"LAYOUT_TYPE_MEDIA",yc:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"adapter",clientMetadata:new h3([new Ti(G),new qy(C),new Xe(l),new j4(B),new Gi(a),new C2(D),new n2({current:null}),f&&new VM(f),x&&new JC(x),new cd(X),new B2(A), new De(n),Xs&&new EI(Xs),E&&new FmL(E),new yM,new UI(R)].filter(N2L)),w9:q(Lt),adLayoutLoggingData:qa};C=lfP(g.z(W,$C),X,G,n.layoutId,T);return{GO:n,pk:C}}}; W2=function(M){if(!M)throw new TypeError("Expected instream video ad renderer");if(!M.playerVars)throw new TypeError("Expected player vars in url encoded string");const W=ng(M.playerVars);var b=Number(W.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var T=Number(M.trimmedMaxNonSkippableAdDurationMs);b=isNaN(T)?b:Math.min(b,T/1E3);({instreamAdPlayerOverlayRenderer:T=null}=M.playerOverlay||{});const {playerOverlayLayoutRenderer:q=null}=M.playerOverlay|| {};var X=W.video_id;X||(X=(X=M.externalVideoId)?X:void 0);if(!X)throw new TypeError("Expected valid video id in IVAR");return{playerVars:W,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:T,playerOverlayLayoutRenderer:q,adVideoId:X,yc:M.pings?xJ(M.pings):new Map,hE:r$(M.pings)}}; Ift=function(M){M=Number(M.driftRecoveryMs);return isNaN(M)||M<=0?null:M}; ZUG=function(M){const {offsetStartMilliseconds:W,offsetEndMilliseconds:b}=M.adTimeOffset||{};M=Number(W);if(isNaN(M))throw new TypeError("Expected valid start offset");const T=Number(b);if(isNaN(T))throw new TypeError("Expected valid end offset");return{VA:M,pL:T}}; iUt=function(M){const W=M.clientMetadata.fp("metadata_type_player_bytes_callback_ref")?.current;if(!W)return null;const b=M.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref");var T=M.layoutId,q=M.clientMetadata.fp("metadata_type_content_cpn"),X=M.clientMetadata.fp("metadata_type_instream_ad_player_overlay_renderer"),G=M.clientMetadata.fp("metadata_type_player_underlay_renderer"),V=M.clientMetadata.fp("metadata_type_ad_placement_config"),J=M.clientMetadata.fp("metadata_type_video_length_seconds"); var B=Ni(M.clientMetadata,"metadata_type_layout_enter_ms")&&Ni(M.clientMetadata,"metadata_type_layout_exit_ms")?(M.clientMetadata.fp("metadata_type_layout_exit_ms")-M.clientMetadata.fp("metadata_type_layout_enter_ms"))/1E3:void 0;return{Ra:T,contentCpn:q,M$:W,uj:b,instreamAdPlayerOverlayRenderer:X,instreamAdPlayerUnderlayRenderer:G,adPlacementConfig:V,videoLengthSeconds:J,Et:B,inPlayerLayoutId:M.clientMetadata.fp("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:M.clientMetadata.fp("metadata_type_linked_in_player_slot_id")}}; zlG=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C){T=lw(T,"SLOT_TYPE_PLAYER_BYTES");M=hlL(q,M,G,b,T,J,B);if(M instanceof P)return M;B=M.clientMetadata.fp("metadata_type_fulfilled_layout")?.layoutId;if(!B)return new P("Invalid adNotify layout");W=AAL(B,q,X,b,V,W,J,D,a,E,n,C,G);return W instanceof P?W:[M,...W]}; AAL=function(M,W,b,T,q,X,G,V,J,B,D,a,E){b=uip(W,b,T,X,G,V,J,B,D,a,E);if(b instanceof P)return b;M=SLp(W,M,G,q,b);return M instanceof P?M:[...M.xZ,M.VE]}; PtL=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n){W=uip(M,W,b,q,X,V,J,B,D,a,E,n);if(W instanceof P)return W;M=OUs(M,b,X,G,T,V.Me,W);return M instanceof P?M:M.xZ.concat(M.VE)}; uip=function(M,W,b,T,q,X,G,V,J,B,D,a){const E=kG(T);return E instanceof Mg?new P(E):B.L.G().experiments.FX("html5_refactor_in_player_slot_generation")?n=>{var C=new bP(0,[E.bf]);n=elp(W,E.layoutId,E.D5,b,K2(E.playerVars,E.fI,X,J,C),E.bf,q,C,G(n),V.get(E.D5.externalVideoId),a);C=[];if(E.D5.playerOverlay.instreamAdPlayerOverlayRenderer){const l=iUt(n);if(!l)return za("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,n),{layout:n,xZ:[]};C=[dGt(M, l.contentCpn,l.Ra,N=>v2(W,N.slotId,"core",l,iB(D,N)),l.inPlayerSlotId), ...C];if(l.instreamAdPlayerUnderlayRenderer&&mp(B)){const N=l.instreamAdPlayerUnderlayRenderer;C=[osL(M,l.contentCpn,l.Ra,R=>cAt(W,R.slotId,N,l.adPlacementConfig,l.Ra,iB(D,R))), ...C]}}return{layout:n,xZ:C}}:n=>{const C=new bP(0,[E.bf]); return{layout:elp(W,E.layoutId,E.D5,b,K2(E.playerVars,E.fI,X,J,C),E.bf,q,C,G(n),V.get(E.D5.externalVideoId),a),xZ:[]}}}; kG=function(M){if(!M.playerVars)return new Mg("No playerVars available in InstreamVideoAdRenderer.");if(M.elementId==null||M.playerVars==null||M.playerOverlay==null||M.playerOverlay?.instreamAdPlayerOverlayRenderer==null&&M.playerOverlay?.playerOverlayLayoutRenderer==null||M.pings==null||M.externalVideoId==null)return new Mg("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:M});const W=ng(M.playerVars);let b=Number(W.length_seconds);isNaN(b)&&(b=0,za("Expected valid length seconds in player vars but got NaN")); return{layoutId:M.elementId,D5:M,playerVars:W,fI:M.playerVars,bf:b}}; K2=function(M,W,b,T,q){M.iv_load_policy=T;W=ng(W);if(W.cta_conversion_urls)try{M.cta_conversion_urls=JSON.parse(W.cta_conversion_urls)}catch(X){za(X)}b.Qs&&(M.ctrl=b.Qs);b.m5&&(M.ytr=b.m5);b.tW&&(M.ytrcc=b.tW);b.isMdxPlayback&&(M.mdx="1");M.vvt&&(M.vss_credentials_token=M.vvt,b.C4&&(M.vss_credentials_token_type=b.C4),b.mdxEnvironment&&(M.mdx_environment=b.mdxEnvironment));oW(M,q);return M}; Q$P=function(M){const W=new Map;for(const b of M)(M=b.renderer.remoteSlotsRenderer)&&M.hostElementId&&W.set(M.hostElementId,M);return W}; L2=function(M){return M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; gsL=function(M){return M!=null}; TfJ=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C){const l=[];for(const A of M){if(Rpt(A))continue;if(A?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER")continue;var N=s$P(A,T,b.IV);if(N instanceof P)return N;var R={slotId:A.adSlotMetadata.slotId,slotType:A.adSlotMetadata.slotType,slotPhysicalPosition:A.adSlotMetadata.slotPhysicalPosition??1,eT:"core",slotEntryTrigger:N.slotEntryTrigger,slotFulfillmentTriggers:N.slotFulfillmentTriggers,slotExpirationTriggers:N.slotExpirationTriggers},f=g.z(A.fulfillmentContent.fulfilledLayout, qc);if(f){if(!T3(f))return new P("Invalid PlayerBytesAdLayoutRenderer");var x=a&&!(L2(A)&&A.slotEntryTrigger.beforeContentVideoIdStartedTrigger);N=N.slotFulfillmentTriggers.some(qa=>qa instanceof Sf); f=x?wVy(R,A.adSlotMetadata.triggerEvent,f,b,T,X,M,E,N,J,n):pVg(R,A.adSlotMetadata.triggerEvent,f,W,b,T,q,X,G,V,J,B,M,D,A.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof P)return f;N=[];C?N.push(new lP({current:C})):N.push(new lP({current:null}));L2(A)&&N.push(new tC({dD:L2(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));x&&N.push(new yM);b.Me&&N.push(new YLp({}));R={...R,clientMetadata:new h3(N),fulfilledLayout:f.layout,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData}; l.push(...f.xZ);l.push(R);continue}if(x=g.z(A.fulfillmentContent.fulfilledLayout,Bd)){if(!fMl(x))return new P("Invalid PlayerUnderlayAdLayoutRenderer");x=$Zg(x,T,b.IV,X,R,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof P)return x;R={...R,clientMetadata:new h3([]),fulfilledLayout:x,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};l.push(R);continue}if(x=g.z(A.fulfillmentContent.fulfilledLayout,igt)){if(!SK(x.adLayoutMetadata)||!g.z(x.renderingContent,G3))return new P("Invalid InPlayerOrganicOverlayAdLayoutRenderer"); x=x.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?MQq(x,T,b.IV,X,R):new P(`LayoutType [${x.adLayoutMetadata.layoutType}] is invalid for InPlayerOrganicOverlaySlot`);if(x instanceof P)return x;R={...R,clientMetadata:new h3([]),fulfilledLayout:x,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};l.push(R);continue}if(x=g.z(A.fulfillmentContent.fulfilledLayout,xeG)){if(!L0L(x))return new P("Invalid AboveFeedAdLayoutRenderer");x=WBp(x,T,b.IV,X,R,A.adSlotMetadata.triggerEvent, A.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof P)return x;R={...R,clientMetadata:new h3([]),fulfilledLayout:x,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};l.push(R);continue}if(x=g.z(A.fulfillmentContent.fulfilledLayout,F0g)){if(!SK(x.adLayoutMetadata)||!g.z(x.renderingContent,Ot))return new P("Invalid BelowPlayerAdLayoutRenderer");x=WBp(x,T,b.IV,X,R,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof P)return x;R={...R,clientMetadata:new h3([]), fulfilledLayout:x,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};l.push(R);continue}if(x=g.z(A.fulfillmentContent.fulfilledLayout,Ds)){if(!jf(x))return new P("Invalid PlayerBytesSequenceItemAdLayoutRenderer");x=bvp(x,T,b.IV,X,R,A.adSlotMetadata.triggerEvent);if(x instanceof P)return x;R={...R,clientMetadata:new h3([]),fulfilledLayout:x,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};l.push(R)}else return new P(`Unable to retrieve a client slot [${R.slotType}] from a given AdSlotRenderer`)}return l}; bvp=function(M,W,b,T,q,X){const G={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,eT:"core"};W=Ze(M,W,b);return W instanceof P?W:(b=g.z(M.renderingContent,XP))&&b.pings?{...G,renderingContent:M.renderingContent,yc:xJ(b.pings),...W,w9:iB(T,q)(G),clientMetadata:new h3([new cd(Ij(X)),new My({progressCommands:b.progressCommands})]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}:new P("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; WBp=function(M,W,b,T,q,X,G){const V={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,eT:"core"};W=Ze(M,W,b);if(W instanceof P)return W;b=[];b.push(new cd(Ij(X)));X==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&G!==void 0&&b.push(new Ny(G));return{...V,renderingContent:M.renderingContent,yc:new Map([["impression",g.z(M.renderingContent,eK)?g.z(M.renderingContent,eK)?.impressionPings||[]:g.z(M.renderingContent,Ot)?g.z(M.renderingContent,Ot)?.impressionPings||[]:g.z(M.renderingContent, PK)?g.z(M.renderingContent,PK)?.impressionPings||[]:[]]]),...W,w9:iB(T,q)(V),clientMetadata:new h3(b),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}}; $Zg=function(M,W,b,T,q,X,G){if(M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var V=g.z(M.renderingContent,Vf);const J=g.z(M.renderingContent,G3);G=new Map;if(V){G=g.z(V.sidePanel,NaS);if(!G){M=new P("DismissablePanelTextPortraitImageRenderer is missing");break a}G=new Map([["impression",G.impressionPings||[]],["resume",G.resumePings||[]]])}else if(!J){M=new P("AdsEngagementPanelSectionListViewModel is missing");break a}V={layoutId:M.adLayoutMetadata.layoutId, layoutType:M.adLayoutMetadata.layoutType,eT:"core"};W=Ze(M,W,b);M=W instanceof P?W:{...V,renderingContent:M.renderingContent,yc:G,...W,w9:iB(T,q)(V),clientMetadata:new h3([new cd(Ij(X))]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}}else M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.z(M.renderingContent,Zgg)?(G={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,eT:"core"},W=Ze(M,W,b),M=W instanceof P?W:{...G,renderingContent:M.renderingContent, yc:new Map,...W,w9:iB(T,q)(G),clientMetadata:new h3([new cd(Ij(X))]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}):M=new P("CounterfactualRenderer is missing"):M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?M=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?M=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):M.adLayoutMetadata.layoutType=== "LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.z(M.renderingContent,Jr)?(X={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,eT:"core"},W=Ze(M,W,b),M=W instanceof P?W:G?{...X,renderingContent:M.renderingContent,yc:new Map,...W,w9:iB(T,q)(X),clientMetadata:new h3([new Ny(G)]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}:new P("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):M=new P("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.z(M.renderingContent,G3)?(X={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,eT:"core"},W=Ze(M,W,b),M=W instanceof P?W:{...X,renderingContent:M.renderingContent,yc:new Map([]),...W,w9:iB(T,q)(X),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new h3([])}):M=new P("AdsEngagementPanelSectionListViewModel is missing"):(M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_IMAGE_QR_CODE"? V=new P("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):V=new P(`LayoutType [${M.adLayoutMetadata.layoutType}] is invalid for PlayerUnderlaySlot`),M=V);return M}; MQq=function(M,W,b,T,q){if(!g.z(M.renderingContent,G3))return new P("AdsEngagementPanelSectionListViewModel is missing");const X={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,eT:"core"};W=Ze(M,W,b);return W instanceof P?W:{...X,renderingContent:M.renderingContent,yc:new Map([]),...W,w9:iB(T,q)(X),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new h3([])}}; wVy=function(M,W,b,T,q,X,G,V,J,B,D){if(D?.KD===void 0||D?.iS===void 0)return new P("Cached ad break range from cue point is missing");var a=Ze(b,q,T.IV);if(a instanceof P)return a;a={layoutExitMuteTriggers:[],layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.z(b.renderingContent,$C))return M=qFa(M,W,b,a,q,X,G,T.IV,D.KD,D.iS,B),M instanceof P?M:M.L7===void 0?new P("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:M.layout,xZ:[M.L7]};var E=g.z(b.renderingContent,pd);if(E){if(!SK(b.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!Ya(E))return new P("Invalid sequential layout");E=E.sequentialLayouts.map(n=>n.playerBytesAdLayoutRenderer); M=X8P(M,W,b,a,E,q,T,X,G,V,D.KD,D.iS,J,B);return M instanceof P?M:{layout:M.Ld,xZ:M.xZ}}return new P("Not able to convert a sequential layout")}; X8P=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n){var C=j_t(q,D,a);if(C instanceof P)return C;const l=[],N=[];for(const Lt of C){a:{var R=M,f=q[Lt.qh],x=Lt,A=W;C=X;var qa=G,Xs=V,uQ=J;const St=H2(f);if(St instanceof P){C=St;break a}const oJ={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,eT:"adapter"};x=G2l(A,f,x,C,void 0,n);if(x instanceof P){C=x;break a}R={...oJ,...f2,yc:St,renderingContent:f.renderingContent,clientMetadata:new h3(x),w9:iB(Xs,R)(oJ),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}; C=(C=Rj(uQ,R,C,qa.IV,Xs,void 0,!0))?C instanceof P?C:{layout:R,L7:C}:new P("Expecting associatedInPlayerSlot")}if(C instanceof P)return C;l.push(C.layout);N.push(C.L7)}q={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,eT:"core"};W=[new aj(Number(b.driftRecoveryMs)),new j4(D),new Gi(a),new cd(Ij(W)),new VQy(B),new yM];E&&W.push(new Jwa);return{Ld:{...q,...T,wM:l,yc:new Map,clientMetadata:new h3(W),w9:iB(V,M)(q)},xZ:N}}; qFa=function(M,W,b,T,q,X,G,V,J,B,D){if(!T3(b))return new P("Invalid PlayerBytesAdLayoutRenderer");const a=H2(b);if(a instanceof P)return a;const E={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,eT:"core"};var n=g.z(b.renderingContent,$C);if(!n)return new P("Invalid rendering content for DAI media layout");n=W2(n);J={kq:n,qh:0,WI:J,IF:Math.min(J+n.videoLengthSeconds*1E3,B),FH:new bP(0,[n.videoLengthSeconds])};W=G2l(W,b,J,q,Number(b.driftRecoveryMs)??void 0,D);if(W instanceof P)return W;M={...E,...T,yc:a,renderingContent:b.renderingContent,clientMetadata:new h3(W),w9:iB(X,M)(E),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData};return(q=Rj(G,M,q,V,X,void 0,!0))?q instanceof P?q:{layout:M,L7:q}:new P("Expecting associatedInPlayerSlot")}; pVg=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C){const l=Ze(b,X,q.IV);if(l instanceof P)return l;if(g.z(b.renderingContent,$C)){J=BfP([b],q,J);if(J instanceof P)return J;if(J.length!==1)return new P("Only expected one media layout.");M=DZJ(M,W,b,l,J[0],void 0,"core",T,X,G,V,B,E,n,q.IV,void 0,C);return M instanceof P?M:{layout:M.layout,xZ:M.L7?[M.L7]:[]}}var N=g.z(b.renderingContent,pd);if(N){if(!SK(b.adLayoutMetadata))return new P("Invalid ad layout metadata");if(!Ya(N))return new P("Invalid sequential layout"); N=N.sequentialLayouts.map(R=>R.playerBytesAdLayoutRenderer); M=aOl(M,W,b.adLayoutMetadata,l,N,T,X,q,J,G,V,B,D,a,E,n,C);return M instanceof P?M:{layout:M.Ld,xZ:M.xZ}}return new P("Not able to convert a sequential layout")}; aOl=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C,l,N){const R=new rQ({current:null}),f=BfP(q,V,J);if(f instanceof P)return f;J=[];const x=[];var A=void 0;for(let St=0;St0&&(f.push(l),f.push(new uP(Xs.adPodSkipTarget)));(X=B.get(Xs.externalVideoId))&&f.push(new S4(X));X=f}else X=new P("Invalid vod media renderer")}if(X instanceof P)return X;M={...G,...T,yc:R,renderingContent:b.renderingContent,clientMetadata:new h3(X),w9:iB(D,M)(G),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData};b=g.z(b.renderingContent, $C);if(!b||!wn(b))return new P("Invalid meida renderer");a=gd(a,b.externalVideoId);a.instreamVideoAdRenderer=b;a.x0="AD_PLACEMENT_KIND_START";return n?(J=Rj(E,M,J,C,D,l,!1),J instanceof P?J:C1y(M.layoutId,E)&&J?{layout:{...M,clientMetadata:new h3(X.concat(new mZS(J)))}}:{layout:M,L7:J}):{layout:M}}; nul=function(M,W,b,T,q){if(!T3(W))return new P("Invalid PlayerBytesAdLayoutRenderer");const X=g.z(W.renderingContent,co);if(!X||X.durationMilliseconds===void 0)return new P("Invalid endcap renderer");const G={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,eT:"adapter"};T=[new OI(X.durationMilliseconds),new My({impressionCommands:void 0,abandonCommands:X.abandonCommands?[{commandExecutorCommand:X.abandonCommands}]:void 0,completeCommands:X.completionCommands}),new cd(T), new P2("LAYOUT_TYPE_ENDCAP")];q&&(T.push(new hC(q.FH.adPodIndex-1)),T.push(new C2(q.FH.adPodIndex)),T.push(new uP(q.adPodSkipTarget??-1)));return{...G,...f2,renderingContent:W.renderingContent,clientMetadata:new h3(T),yc:X.skipPings?new Map([["skip",X.skipPings]]):new Map,w9:iB(b,M)(G),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData}}; Rj=function(M,W,b,T,q,X,G){M=M.filter(a=>a.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&a.adSlotMetadata.triggeringSourceLayoutId===W.layoutId); if(M.length!==0){if(M.length!==1)return new P("Invalid InPlayer slot association for the given PlayerBytes layout");var V=M[0];M=s$P(V,b,T);if(M instanceof P)return M;M={slotId:V.adSlotMetadata.slotId,slotType:V.adSlotMetadata.slotType,slotPhysicalPosition:V.adSlotMetadata.slotPhysicalPosition??1,eT:"core",slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers};var J=g.z(V.fulfillmentContent.fulfilledLayout,reL);if(!J|| !t$S(J))return new P("Invalid InPlayerAdLayoutRenderer");var B={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,eT:"core"};b=Ze(J,b,T);if(b instanceof P)return b;T=[];var D=J.adLayoutMetadata.layoutType;G&&T.push(new yM);if(D==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")T.push(...LBt(V.adSlotMetadata.triggerEvent,W)),(X=lOg(b,W.layoutId))&&T.push(new tQL(X));else if(D==="LAYOUT_TYPE_ENDCAP"||D==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){T.push(new cd(Ij(V.adSlotMetadata.triggerEvent))); if(D==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new P("Cannot parse endcap layout since AdUxReadyApi is not provided");X&&T.push(X)}else return new P("Not able to parse an SDF InPlayer layout");q={...B,...b,renderingContent:J.renderingContent,yc:new Map,w9:iB(q,M)(B),clientMetadata:new h3(T),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData};return{...M,fulfilledLayout:q,clientMetadata:new h3([])}}}; LBt=function(M,W){const b=[];b.push(new cd(Ij(M)));b.push(new Ny(W.layoutId));(M=W.clientMetadata.fp("metadata_type_player_bytes_callback_ref"))&&b.push(new n2(M));(M=W.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref"))&&b.push(new rQ(M));(M=W.clientMetadata.fp("metadata_type_remote_slots_data"))&&b.push(new S4(M));(M=W.clientMetadata.fp("metadata_type_ad_next_params"))&&b.push(new AC(M));(M=W.clientMetadata.fp("metadata_type_ad_video_clickthrough_endpoint"))&&b.push(new zi(M));(M= W.clientMetadata.fp("metadata_type_ad_pod_info"))&&b.push(new De(M));(W=W.clientMetadata.fp("metadata_type_ad_video_id"))&&b.push(new B2(W));return b}; ywL=function(M,W,b,T,q,X){const G=T.dO.inPlayerSlotId,V=B=>e4(W,B),J={layoutId:T.dO.inPlayerLayoutId, layoutType:"LAYOUT_TYPE_ENDCAP",eT:"core"};b={slotId:G,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:new i4(V,M),slotFulfillmentTriggers:[new fz(V,G)],slotExpirationTriggers:[new Lz(V,G),new mw(V,b)]};M={...J,layoutExitNormalTriggers:[new Zs(V,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],yc:new Map,clientMetadata:new h3([new Zvs(T.dO),new cd(T.adPlacementConfig),q]),w9:iB(X,b)(J), adLayoutLoggingData:T.dO.adLayoutLoggingData};return{...b,clientMetadata:new h3([new dQ(M)])}}; C1y=function(M,W){for(const b of W)if(b.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){W=g.z(b.fulfillmentContent.fulfilledLayout,Bd);if(!W)continue;if((W=g.z(W.renderingContent,Vf))&&W.associatedPlayerBytesLayoutId===M)return b}}; s$P=function(M,W,b){const T=dd(M.slotEntryTrigger,W,b);if(T instanceof P)return T;const q=[];for(var X of M.slotFulfillmentTriggers){const G=dd(X,W,b);if(G instanceof P)return G;q.push(G)}X=[];for(const G of M.slotExpirationTriggers){M=dd(G,W,b);if(M instanceof P)return M;X.push(M)}return{slotEntryTrigger:T,slotFulfillmentTriggers:q,slotExpirationTriggers:X}}; Ze=function(M,W,b){const T=[];for(var q of M.layoutExitNormalTriggers||[]){var X=dd(q,W,b);if(X instanceof P)return X;T.push(X)}q=[];for(var G of M.layoutExitSkipTriggers||[]){X=dd(G,W,b);if(X instanceof P)return X;q.push(X)}G=[];for(var V of M.layoutExitMuteTriggers||[]){X=dd(V,W,b);if(X instanceof P)return X;G.push(X)}V=[];for(const J of M.layoutExitUserInputSubmittedTriggers||[]){M=dd(J,W,b);if(M instanceof P)return M;V.push(M)}return{layoutExitNormalTriggers:T,layoutExitSkipTriggers:q,layoutExitMuteTriggers:G, layoutExitUserInputSubmittedTriggers:V,layoutExitUserCancelledTriggers:[]}}; H2=function(M){const W=g.z(M.renderingContent,$C);if(W?.pings)return xJ(W.pings);M=g.z(M.renderingContent,co);return M?.skipPings?new Map([["skip",M.skipPings]]):new Map}; G2l=function(M,W,b,T,q,X){W=g.z(W.renderingContent,$C);if(!W)return new P("Invalid rendering content for DAI media layout");M=[new Ti(T),new qy(b.kq.videoLengthSeconds),...(oj(X)?[new My({impressionCommands:W.impressionCommands,abandonCommands:W.onAbandonCommands,completeCommands:W.completeCommands,progressCommands:W.adVideoProgressCommands})]:[]),new Xe(b.kq.playerVars),new j4(b.WI),new Gi(b.IF),new C2(b.qh),new cd(Ij(M)),new B2(b.kq.adVideoId),new De(b.FH),W.sodarExtensionData&&new EI(W.sodarExtensionData), new n2({current:null}),new yM,new UI(r$(W.pings))].filter(gsL);q!==void 0&&M.push(new aj(q));return M}; j_t=function(M,W,b){M=M.map(J=>W2(g.z(J.renderingContent,$C))); const T=M.map(J=>J.videoLengthSeconds),q=T.map((J,B)=>new bP(B,T)); let X=W,G=b;const V=[];M.forEach((J,B)=>{G=Math.min(X+J.videoLengthSeconds*1E3,b);oW(J.playerVars,q[B]);V.push({kq:J,WI:X,IF:G,qh:B,FH:q[B]});X=G}); return V}; BfP=function(M,W,b){const T=[];for(var q of M){var X=g.z(q.renderingContent,$C);if(X){if(!wn(X))return new P("Invalid vod media renderer");T.push(IOq(X))}}q=T.map(V=>V.bf); X=[];let G=0;for(let V=0;Vb instanceof Zs&&b?.triggeringLayoutId!==W)?.triggeringLayoutId}; fOP=function(M,W,b,T,q,X,G,V,J){const B=b.pings;return B?[NfL(M,X,V,q,D=>{var a=D.slotId;D=J(D);var E=b.adLayoutLoggingData,n=b.progressCommands;a=DW(W.V.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",a);const C={layoutId:a,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",eT:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",yc:xJ(B),layoutExitNormalTriggers:[new mw(W.Z,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], eT:"core",clientMetadata:new h3([new cd(T),new UI(r$(B)),new Hvl(B?.activeViewTracking?.identifier),new qy(G/1E3),new My({progressCommands:n}),new $G(G/1E3)]),w9:D(C),adLayoutLoggingData:E}})]:new P("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:b})}; xZp=function(M,W,b,T,q,X,G,V){M=RsQ(M,b,X,G,T,J=>{var B=J.slotId;J=V(J);B=DW(W.V.get(),"LAYOUT_TYPE_FORECASTING",B);const D={layoutId:B,layoutType:"LAYOUT_TYPE_FORECASTING",eT:"core"},a=new Map,E=q.impressionUrls;E&&a.set("impression",E);return{layoutId:B,layoutType:"LAYOUT_TYPE_FORECASTING",yc:a,layoutExitNormalTriggers:[new Nc(W.Z,B)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new rwJ(q), new cd(b)]),w9:J(D)}}); return M instanceof P?M:[M]}; ivl=function(M,W,b,T,q,X,G){return[FBt(M,X,T,V=>{var J=V.slotId;V=G(V);J=DW(W.V.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);const B={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eT:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",yc:new Map,layoutExitNormalTriggers:[new mw(W.Z,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new VM(q), new cd(b)]),w9:V(B),adLayoutLoggingData:q.adLayoutLoggingData}})]}; Awt=function(M,W,b,T,q,X,G,V){M=hsq(M,b,X,G,T,(J,B)=>{var D=J.slotId;J=V(J);var a=q.contentSupportedRenderer;a?a.textOverlayAdContentRenderer?(a=DW(W.V.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",D),B=c2(W,a,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",q,b,J,QM(W,B,D))):a.enhancedTextOverlayAdContentRenderer?(a=DW(W.V.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",D),B=c2(W,a,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",q,b,J,QM(W,B,D))):a.imageOverlayAdContentRenderer?(a=DW(W.V.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", D),B=QM(W,B,D),B.push(new hr(W.Z,45E3,a)),B=c2(W,a,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",q,b,J,B)):B=new Mg("InvideoOverlayAdRenderer without appropriate sub renderer"):B=new Mg("InvideoOverlayAdRenderer without contentSupportedRenderer");return B}); return M instanceof P?M:[M]}; SFl=function(M,W,b,T,q,X,G,V,J){const B=Number(T.durationMilliseconds);return isNaN(B)?new P("Expected valid duration for AdActionInterstitialRenderer."):D=>zsl(W,D.slotId,b,B,{impressionCommands:void 0,abandonCommands:T.abandonCommands?[{commandExecutorCommand:T.abandonCommands}]:void 0,completeCommands:T.completionCommands},T.skipPings?new Map([["skip",T.skipPings]]):new Map,G(D),a=>uZS(M,a,q,(E,n)=>{var C=E.slotId;E=G(E);C=DW(W.V.get(),"LAYOUT_TYPE_ENDCAP",C);return YC(W,C,n,b,E,"LAYOUT_TYPE_ENDCAP", [new Zvs(T),V],T.adLayoutLoggingData)}),J,X-1,T.adLayoutLoggingData,X)}; Ovp=function(M,W,b,T){if(!b.playerVars)return new P("No playerVars available in AdIntroRenderer.");const q=ng(b.playerVars);q.autoplay="1";return X=>{var G=X.slotId;X=T(X);G=DW(M.V.get(),"LAYOUT_TYPE_MEDIA",G);const V={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",eT:"adapter"};return{Gx:{layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",yc:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"adapter", clientMetadata:new h3([new Eut,new cd(W),new n2({current:null}),new Xe(q)]),w9:X(V)},Om:[new IW(M.Z,G,["error"])],uU:[],DW:[],Ns:[]}}}; esp=function(M,W,b,T,q,X,G,V,J,B=!1){const D=wd(q);if(!uVG(q,B))return new P("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:q});if(D<=0)return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:q});const a=nsS(M,W,q,X,b,T,G);return a instanceof P?a:E=>P1Q(W,E.slotId,b,D,pz(q),G(E),a,V,J)}; ouP=function(M,W,b,T,q,X,G,V){if(!(!isNaN(Number(q.timeoutSeconds))&&q.text&&q.ctaButton&&g.z(q.ctaButton,gQ)&&q.brandImage&&q.backgroundImage&&g.z(q.backgroundImage,sI)&&g.z(q.backgroundImage,sI)?.landscape))return new P("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:q});const J=q.timeoutSeconds*1E3,B=(a,E)=>{var n=a.slotId;a=G(a);n=DW(W.V.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",n);return YC(W,n,E,b,a,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT", [new dZl(q),X],q.adLayoutLoggingData)},D=a=>uZS(M,a,T,B); return a=>{var E=a.slotId,n={impressionCommands:q.impressionCommands,completeCommands:q.timeoutCommands,skipCommands:q.dismissCommands};a=G(a);E=wQ(W,E,b,J,n,new Map,a,D);n=new iP(E.mz);a=new hC(V);return{Gx:{layoutId:E.layoutId,layoutType:E.layoutType,yc:E.yc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:E.eT,clientMetadata:new h3([...E.WS,n,a]),w9:E.w9,adLayoutLoggingData:E.adLayoutLoggingData}, Om:[],uU:E.layoutExitMuteTriggers,DW:E.layoutExitUserInputSubmittedTriggers,Ns:E.layoutExitUserCancelledTriggers,L7:E.L7}}}; Q_l=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C,l){M=lw(M,"SLOT_TYPE_PLAYER_BYTES");T=hlL(W,G,T,q,M,B,D);if(T instanceof P)return T;G=T.clientMetadata.fp("metadata_type_fulfilled_layout")?.layoutId;if(!G)return new P("Invalid adNotify layout");W=cwy(G,W,b,q,X,J,V,B,a,E,n,C,l);return W instanceof P?W:[T,...W]}; cwy=function(M,W,b,T,q,X,G,V,J,B,D,a,E){b=guJ(W,b,T,X,G,V,J,B,D,a,E);s_P(X)?(T=w8J(W,M),M=lw(W.V.get(),"SLOT_TYPE_IN_PLAYER"),X=DW(W.V.get(),"LAYOUT_TYPE_SURVEY",M),V=p2(W,T,V),W=[...V.slotExpirationTriggers,new rd(W.Z,X)],M=b({slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:W,eT:V.eT},{slotId:M,layoutId:X}),q=M instanceof P?M:{VE:{...V,slotExpirationTriggers:W, clientMetadata:new h3([new dQ(M.layout)]),adSlotLoggingData:q},xZ:M.xZ}):q=SLp(W,M,V,q,b);return q instanceof P?q:[...q.xZ,q.VE]}; YFt=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n){W=guJ(M,W,b,q,X,G,J,B,D,a,E,n);s_P(q)?(G=p8q(M,b,G,V),G instanceof P?M=G:(V=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER"),J=DW(M.V.get(),"LAYOUT_TYPE_SURVEY",V),q=[...G.slotExpirationTriggers,new rd(M.Z,J)],V=W({slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,eT:G.eT,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:q},{slotId:V,layoutId:J}),M=V instanceof P?V:{VE:{slotId:G.slotId, slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:q,eT:G.eT,clientMetadata:new h3([new dQ(V.layout),new tC({dD:M.dD(b)})]),adSlotLoggingData:T},xZ:V.xZ})):M=OUs(M,b,G,V,T,J.Me,W);return M instanceof P?M:M.xZ.concat(M.VE)}; s_P=function(M){for(const W of M)if(g.z(W,Wd))return!0;return!1}; guJ=function(M,W,b,T,q,X,G,V,J,B,D,a){return(E,n)=>{if(xG(D)&&Fe(D))a:{var C=$ot(T);if(C instanceof P)n=C;else{var l=0,N=[],R=[],f=[],x=[],A=[],qa=[],Xs=new YG,uQ=new rQ({current:null}),Lt=!1,St=[],oJ=0,NR=[];for(var Oq=0;Oq0?C:-1;continue}if(Ly=g.z(Oq,co)){Oq=SFl(M,W,b,Ly,X,l,V,uQ,C);if(Oq instanceof P){n= Oq;break a}Oq=Oq(E);N.push(Oq.Gx);R=[...Oq.Om,...R];f=[...Oq.uU,...f];Oq.L7&&(St=[Oq.L7,...St]);continue}if(Ly=g.z(Oq,Wd)){if(n===void 0){n=new P("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Ly});break a}Oq=esp(M,W,b,X,Ly,Xs,V,n,l,Bo(D,"supports_multi_step_on_desktop"));if(Oq instanceof P){n=Oq;break a}Oq=Oq(E);N.push(Oq.Gx);Oq.L7&&St.push(Oq.L7);R=[...Oq.Om,...R];f=[...Oq.uU,...f];x=[...Oq.DW,...x];A=[...Oq.Ns,...A];qa=[Xs,...qa];continue}if(Oq= g.z(Oq,b4)){Oq=ouP(M,W,b,X,Oq,Xs,V,l);if(Oq instanceof P){n=Oq;break a}Oq=Oq(E);N.push(Oq.Gx);Oq.L7&&St.push(Oq.L7);f=[...Oq.uU,...f]}else{n=new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}}n={wM:N,layoutExitSkipTriggers:R,layoutExitUserInputSubmittedTriggers:x,layoutExitUserCancelledTriggers:A,layoutExitMuteTriggers:f,WS:qa,xZ:St}}}else a:if(NR=$ot(T),NR instanceof P)n=NR;else{L3=0;N=[];R=[];f=[];x=[];A=[];qa=[];Xs=new YG;uQ=new rQ({current:null});Lt=!1;St=[];oJ=-1;for(l of T)if(g.z(l, Mc)){C=Ovp(W,b,g.z(l,Mc),V);if(C instanceof P){n=C;break a}C=C(E);N.push(C.Gx);R=[...C.Om,...R];f=[...C.uU,...f];C.L7&&(St=[C.L7,...St])}else if(g.z(l,$C)){oJ=kG(g.z(l,$C));if(oJ instanceof Mg){n=new P(oJ);break a}C=new bP(L3,NR);C=MCS(W,oJ.layoutId,oJ.D5,b,K2(oJ.playerVars,oJ.fI,G,B,C),oJ.bf,X,C,V(E),uQ,J.get(oJ.D5.externalVideoId),void 0,a);L3++;N.push(C.Gx);R=[...C.Om,...R];f=[...C.uU,...f];Lt||(qa.push(uQ),Lt=!0);oJ=(oJ=oJ.D5.adPodSkipTarget)&&oJ>0?oJ:-1}else if(g.z(l,co)){C=SFl(M,W,b,g.z(l,co), X,L3,V,uQ,oJ);if(C instanceof P){n=C;break a}C=C(E);N.push(C.Gx);R=[...C.Om,...R];f=[...C.uU,...f];C.L7&&(St=[C.L7,...St])}else if(g.z(l,Wd)){if(n===void 0){n=new P("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.z(l,Wd)});break a}C=esp(M,W,b,X,g.z(l,Wd),Xs,V,n,L3,Bo(D,"supports_multi_step_on_desktop"));if(C instanceof P){n=C;break a}C=C(E);N.push(C.Gx);C.L7&&St.push(C.L7);R=[...C.Om,...R];f=[...C.uU,...f];x=[...C.DW,...x];A=[...C.Ns,...A]; qa=[Xs,...qa]}else if(g.z(l,b4)){C=ouP(M,W,b,X,g.z(l,b4),Xs,V,L3);if(C instanceof P){n=C;break a}C=C(E);N.push(C.Gx);C.L7&&St.push(C.L7);f=[...C.uU,...f]}else{n=new P("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}n={wM:N,layoutExitSkipTriggers:R,layoutExitUserInputSubmittedTriggers:x,layoutExitUserCancelledTriggers:A,layoutExitMuteTriggers:f,WS:qa,xZ:St}}n instanceof P?E=n:(A=E.slotId,L3=n.wM,l=n.layoutExitSkipTriggers,N=n.layoutExitMuteTriggers,R=n.layoutExitUserInputSubmittedTriggers, f=n.WS,E=V(E),x=q?q.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",A=q?q.layoutId:DW(W.V.get(),x,A),qa={layoutId:A,layoutType:x,eT:"core"},E={layout:{layoutId:A,layoutType:x,yc:new Map,layoutExitNormalTriggers:[new Nc(W.Z,A)],layoutExitSkipTriggers:l,layoutExitMuteTriggers:N,layoutExitUserInputSubmittedTriggers:R,layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new W7t(L3),...f]),w9:E(qa)},xZ:n.xZ});return E}}; $ot=function(M){const W=[];for(const b of M){if(!g.z(b,$C))continue;M=kG(g.z(b,$C));if(M instanceof Mg)return new P(M);W.push(M.bf)}return W}; T0t=function(M,W,b,T,q,X,G,V=!1){if(!uVG(b,V))return new P("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:b});const J=wd(b);if(J<=0)return new P("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b});const B=new YG,D=nsS(M,W,b,B,T,X,G);return bit(M,T,X,J,q,(a,E)=>{var n=a.slotId,C=pz(b);a=G(a);n=DW(W.V.get(),"LAYOUT_TYPE_MEDIA_BREAK",n);const l={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",eT:"core"},N=D(n,E),R=N.clientMetadata.fp("metadata_type_fulfilled_layout"); R||za("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");C=[new cd(T),new OI(J),new My(C),B];R&&C.push(new P2(R.layoutType));return{vB:{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",yc:new Map,layoutExitNormalTriggers:[new Nc(W.Z,n)],layoutExitSkipTriggers:[new Hd(W.Z,E.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new RW(W.Z,E.layoutId)],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3(C), w9:a(l)},Pm:N}})}; qiQ=function(M){if(!Ppl(M))return!1;const W=g.z(M.adVideoStart,$$);return W?g.z(M.linearAd,$C)&&QB(W)?!0:(za("Invalid Sandwich with notify"),!1):!1}; Xgs=function(M){if(M.linearAds==null)return!1;M=g.z(M.adStart,$$);return M?QB(M)?!0:(za("Invalid LASR with notify"),!1):!1}; jta=function(M){if(!OgP(M))return!1;M=g.z(M.adStart,$$);return M?QB(M)?!0:(za("Invalid LASR with notify"),!1):!1}; kC=function(M,W,b,T,q,X,G,V,J,B,D){const a=[];if(W.length===0&&T.length===0&&b.length===0)return a;W=W.filter(gn);const E=b.filter(hpL),n=T.filter(gn),C=new Map,l=Q$P(W),N=b.some(qa=>qa?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES"),R=b.some(qa=>qa?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"),f=b.some(qa=>qa?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER"),x=b.some(qa=>qa?.adSlotMetadata?.slotType==="SLOT_TYPE_BELOW_PLAYER"||qa?.adSlotMetadata?.slotType==="SLOT_TYPE_ABOVE_FEED"), A=b.some(qa=>qa?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"); b=b.some(qa=>qa?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"); if(N||R||f||x||A||b)B=TfJ(E,W,V,q,l,M.Oj.get(),M.loadPolicy,C,M.PY.get(),M.A.get(),f,G,J,B,D),B instanceof P?za(B,void 0,void 0,{contentCpn:q}):a.push(...B);for(const qa of W)B=Guy(M,C,qa,q,X,G,N,V,l,J,E,M.PY.get().L.G().experiments.FX("html5_enable_triggering_cuepoint_for_slot")?D:void 0),B instanceof P?za(B,void 0,void 0,{renderer:qa.renderer,config:qa.config.adPlacementConfig,kind:qa.config.adPlacementConfig.kind,contentCpn:q,daiEnabled:G}):a.push(...B);VCP(M.PY.get())||(X=JTQ(M,n,q,V,l,C),a.push(...X)); if(M.B===null||G&&!V.XB)return M=V.Me&&W.length===1&&W[0].config?.adPlacementConfig?.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&W[0].renderer?.adBreakServiceRenderer,a.length||M||za("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:q,"first APR kind":W[0]?.config?.adPlacementConfig?.kind,renderer:W[0]?.renderer}),a;T=T.filter(gn);a.push(...B2p(C,T,M.V.get(),M.B,q,N));a.length||za("Expected slots parsed from AdPlacementRenderers", void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:q,daiEnabled:G.toString(),"first APR kind":W[0]?.config?.adPlacementConfig?.kind,renderer:W[0]?.renderer});return a}; Guy=function(M,W,b,T,q,X,G,V,J,B,D,a){const E=b.renderer,n=b.config.adPlacementConfig,C=n.kind,l=b.adSlotLoggingData,N=f=>iB(M.Oj.get(),f); var R=V.XB&&C==="AD_PLACEMENT_KIND_START";R=X&&!R;if(E.adsEngagementPanelRenderer!=null)return sd(W,b.elementId,C,E.adsEngagementPanelRenderer.isContentVideoEngagementPanel,E.adsEngagementPanelRenderer.adVideoId,E.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.adsEngagementPanelRenderer;f=iB(M.Oj.get(),f);return MW(Xs,uQ,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new B0p(Lt),x,A,Lt.impressionPings,f,E.adsEngagementPanelRenderer.adLayoutLoggingData, qa)}),[]; if(E.adsEngagementPanelLayoutViewModel)return sd(W,b.elementId,C,E.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,E.adsEngagementPanelLayoutViewModel.adVideoId,E.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.adsEngagementPanelLayoutViewModel;f=iB(M.Oj.get(),f);return WB(Xs,uQ,"LAYOUT_TYPE_PANEL",new DoP(Lt),x,A,f,E.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,qa)}),[]; if(E.actionCompanionAdRenderer!=null){if(E.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return qLq(M.V.get(),M.B,M.Z.get(),E.actionCompanionAdRenderer,n,l,T,N);sd(W,b.elementId,C,E.actionCompanionAdRenderer.isContentVideoCompanion,E.actionCompanionAdRenderer.adVideoId,E.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.actionCompanionAdRenderer;f=iB(M.Oj.get(),f);return MW(Xs,uQ,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new T2G(Lt),x,A,Lt.impressionPings,f,E.actionCompanionAdRenderer.adLayoutLoggingData,qa)})}else if(E.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(E.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return j$Q(M.V.get(),M.B,M.Z.get(),E.topBannerImageTextIconButtonedLayoutViewModel,n,l,T,N); sd(W,b.elementId,C,E.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,E.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,E.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.topBannerImageTextIconButtonedLayoutViewModel;f=iB(M.Oj.get(),f);return WB(Xs,uQ,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new XVl(Lt),x,A,f,E.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,qa)})}else if(E.imageCompanionAdRenderer)sd(W, b.elementId,C,E.imageCompanionAdRenderer.isContentVideoCompanion,E.imageCompanionAdRenderer.adVideoId,E.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.imageCompanionAdRenderer; f=iB(M.Oj.get(),f);return MW(Xs,uQ,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new a0q(Lt),x,A,Lt.impressionPings,f,E.imageCompanionAdRenderer.adLayoutLoggingData,qa)}); else if(E.bannerImageLayoutViewModel)sd(W,b.elementId,C,E.bannerImageLayoutViewModel.isContentVideoCompanion,E.bannerImageLayoutViewModel.adVideoId,E.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.bannerImageLayoutViewModel;f=iB(M.Oj.get(),f);return WB(Xs,uQ,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new EwS(Lt),x,A,f,E.bannerImageLayoutViewModel.adLayoutLoggingData,qa)}); else if(E.shoppingCompanionCarouselRenderer)sd(W,b.elementId,C,E.shoppingCompanionCarouselRenderer.isContentVideoCompanion,E.shoppingCompanionCarouselRenderer.adVideoId,E.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,n,l,(f,x,A,qa)=>{var Xs=M.Z.get(),uQ=f.slotId,Lt=E.shoppingCompanionCarouselRenderer;f=iB(M.Oj.get(),f);return MW(Xs,uQ,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new nwG(Lt),x,A,Lt.impressionPings,f,E.shoppingCompanionCarouselRenderer.adLayoutLoggingData,qa)}); else if(E.adBreakServiceRenderer){if(b.renderer?.adBreakServiceRenderer?.getAdBreakUrl===void 0)return[];if(C==="AD_PLACEMENT_KIND_PAUSE")return M9S(M.V.get(),n,l,b.renderer.adBreakServiceRenderer,T);if(C!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&C!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return wet(M.V.get(),n,l,b.renderer.adBreakServiceRenderer,T,q,X);V.Me||za("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:C,adPlacementConfig:n,daiEnabledForContentVideo:String(X), isServedFromLiveInfra:String(V.Me),clientPlaybackNonce:V.clientPlaybackNonce});if(C==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!M.I0)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!M.H3)return new P("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");M.H3.Ws({adPlacementRenderer:b,contentCpn:T,IV:q});q=M.I0.get().getCurrentTimeSec(1,!1);return yTP(M.V.get(),b.renderer.adBreakServiceRenderer, n,q,T,l,X)}if(!M.pK)return new P("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");M.pK.Ws({adPlacementRenderer:b,contentCpn:T,IV:q})}else{if(E.clientForecastingAdRenderer)return xZp(M.V.get(),M.Z.get(),n,l,E.clientForecastingAdRenderer,T,q,N);if(E.invideoOverlayAdRenderer)return Awt(M.V.get(),M.Z.get(),n,l,E.invideoOverlayAdRenderer,T,q,N);if(E.instreamAdPlayerOverlayRenderer)return ivl(M.V.get(),M.Z.get(),n,l,E.instreamAdPlayerOverlayRenderer, T,N);if((E.linearAdSequenceRenderer||E.instreamVideoAdRenderer)&&R)return RlL(M.V.get(),M.Z.get(),b,T,N,B,a);if(E.linearAdSequenceRenderer&&!R){if(G)return[];Qf(W,E,C);if(E.linearAdSequenceRenderer.adLayoutMetadata){if(!OgP(E.linearAdSequenceRenderer))return new P("Received invalid LinearAdSequenceRenderer.")}else if(E.linearAdSequenceRenderer.linearAds==null)return new P("Received invalid LinearAdSequenceRenderer.");if(g.z(E.linearAdSequenceRenderer.adStart,$$)){za("Found AdNotify in LinearAdSequenceRenderer"); b=g.z(E.linearAdSequenceRenderer.adStart,$$);if(!(b?.durationMs!=null&&b?.durationMs>0))return new P("Invalid AdMessageRenderer.");X=E.linearAdSequenceRenderer.linearAds;return Q_l(M.A.get(),M.V.get(),M.Z.get(),M.Oj.get(),n,l,b,SK(E.linearAdSequenceRenderer.adLayoutMetadata)?E.linearAdSequenceRenderer.adLayoutMetadata:void 0,X,T,q,V,N,J,M.loadPolicy,M.PY.get())}return YFt(M.V.get(),M.Z.get(),n,l,E.linearAdSequenceRenderer.linearAds,SK(E.linearAdSequenceRenderer.adLayoutMetadata)?E.linearAdSequenceRenderer.adLayoutMetadata: void 0,T,q,V,N,J,M.loadPolicy,M.PY.get(),D)}if(!E.remoteSlotsRenderer||X){if(E.instreamVideoAdRenderer&&!R){if(G)return[];Qf(W,E,C);return PtL(M.V.get(),M.Z.get(),n,l,E.instreamVideoAdRenderer,T,q,V,N,J,M.loadPolicy,M.PY.get(),M.Oj.get(),D)}if(E.instreamSurveyAdRenderer)return T0t(M.V.get(),M.Z.get(),E.instreamSurveyAdRenderer,n,l,T,N,Bo(M.PY.get(),"supports_multi_step_on_desktop"));if(E.sandwichedLinearAdRenderer!=null)return Ppl(E.sandwichedLinearAdRenderer)?g.z(E.sandwichedLinearAdRenderer.adVideoStart, $$)?(za("Found AdNotify in SandwichedLinearAdRenderer"),b=g.z(E.sandwichedLinearAdRenderer.adVideoStart,$$),b?.durationMs!=null&&b?.durationMs>0?(X=g.z(E.sandwichedLinearAdRenderer.linearAd,$C))?zlG(b,X,n,M.A.get(),M.V.get(),M.Z.get(),M.Oj.get(),l,T,q,V,N,J,M.loadPolicy,M.PY.get()):new P("Missing IVAR from Sandwich"):new P("Invalid AdMessageRenderer.")):YFt(M.V.get(),M.Z.get(),n,l,[E.sandwichedLinearAdRenderer.adVideoStart,E.sandwichedLinearAdRenderer.linearAd],void 0,T,q,V,N,J,M.loadPolicy,M.PY.get()): new P("Received invalid SandwichedLinearAdRenderer.");if(E.videoAdTrackingRenderer!=null)return fOP(M.V.get(),M.Z.get(),E.videoAdTrackingRenderer,n,l,T,q,V.OX,N)}}return[]}; JTQ=function(M,W,b,T,q,X){const G=D=>iB(M.Oj.get(),D),V=[]; for(const D of W){W=D.renderer;var J=W.sandwichedLinearAdRenderer,B=W.linearAdSequenceRenderer;J&&qiQ(J)?(za("Found AdNotify with SandwichedLinearAdRenderer"),B=g.z(J.adVideoStart,$$),J=g.z(J.linearAd,$C),Qf(X,W,D.config.adPlacementConfig.kind),W=AAL(B?.layout.layoutId,M.V.get(),M.Z.get(),D.config.adPlacementConfig,D.adSlotLoggingData,J,b,T,G,q,M.loadPolicy,M.PY.get(),M.Oj.get()),W instanceof P?za(W):V.push(...W)):B&&(!B.adLayoutMetadata&&Xgs(B)||B.adLayoutMetadata&&jta(B))&&(za("Found AdNotify with LinearAdSequenceRenderer"), Qf(X,W,D.config.adPlacementConfig.kind),W=cwy(g.z(B.adStart,$$)?.layout.layoutId,M.V.get(),M.Z.get(),D.config.adPlacementConfig,D.adSlotLoggingData,B.linearAds,SK(B.adLayoutMetadata)?B.adLayoutMetadata:void 0,b,T,G,q,M.loadPolicy,M.PY.get()),W instanceof P?za(W):V.push(...W))}return V}; Xg=function(M,W,b){const T=M.I0.get().getCurrentTimeSec(1,!1);M.PY.get().L.G().jW()&&HK(M.iV.get(),"sdai",`onopp.1;evt.${b.event};start.${b.startSecs.toFixed(3)};d.${b.C7.toFixed(3)}`);LX(M.V.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",()=>{var q=M.B.get(),X=W.adPlacementRenderer.renderer.adBreakServiceRenderer,G=W.contentCpn,V=W.adPlacementRenderer.adSlotLoggingData;bf(M.PY.get());var J=M.iV;var B=q.PY.get();B=g.TO(B.L.G().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var D=q.PY.get();var a=g.TO(D.L.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");{D=b.startSecs*1E3;D={x7:new vN(D,D+b.C7*1E3),GR:!1,cueProcessedMs:T*1E3};const n=b.startSecs+b.C7;if(T===0)D.Ty=new vN(0,n*1E3);else{a=b.startSecs-a;var E=a-T;D.Ty=E<=0?new vN(a*1E3,n*1E3):new vN(Math.floor(T+Math.random()*Math.min(E,B))*1E3,n*1E3)}B=D}X=Kz(q,X,G,B,V,[new Uoa(b)]);qW(q.PY.get())&&HK(J.get(),"abrsm",`cpi.${b.identifier};cps.${b.startSecs};cpd.${b.C7};cts.${T};rbf.${B.Ty.start}`); J.get().L.Cq(b.startSecs-T,B.Ty.start/1E3-T);return[X]})}; jl=function(M){const W=M.clientMetadata.fp("metadata_type_player_bytes_callback_ref")?.current;if(!W)return null;const b=M.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref");var T=M.layoutId,q=M.clientMetadata.fp("metadata_type_content_cpn"),X=M.clientMetadata.fp("metadata_type_instream_ad_player_overlay_renderer"),G=M.clientMetadata.fp("metadata_type_player_overlay_layout_renderer"),V=M.clientMetadata.fp("metadata_type_player_underlay_renderer"),J=M.clientMetadata.fp("metadata_type_ad_placement_config"), B=M.clientMetadata.fp("metadata_type_video_length_seconds");var D=Ni(M.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?M.clientMetadata.fp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Ni(M.clientMetadata,"metadata_type_layout_enter_ms")&&Ni(M.clientMetadata,"metadata_type_layout_exit_ms")?(M.clientMetadata.fp("metadata_type_layout_exit_ms")-M.clientMetadata.fp("metadata_type_layout_enter_ms"))/1E3:void 0;return{Ra:T,contentCpn:q,M$:W,uj:b,instreamAdPlayerOverlayRenderer:X,playerOverlayLayoutRenderer:G, instreamAdPlayerUnderlayRenderer:V,adPlacementConfig:J,videoLengthSeconds:B,Et:D,inPlayerLayoutId:M.clientMetadata.fp("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:M.clientMetadata.fp("metadata_type_linked_in_player_slot_id")}}; kuQ=function(M,W){return C_l(M,W)}; K7a=function(M,W){W=C_l(M,W);if(!W)return null;W.Et=M.clientMetadata.fp("metadata_type_ad_pod_info")?.adBreakRemainingLengthSeconds;return W}; C_l=function(M,W){const b=M.clientMetadata.fp("metadata_type_player_bytes_callback_ref")?.current;if(!b)return null;const T=HYQ(M,W);return{nM:N9J(M,W),adPlacementConfig:M.clientMetadata.fp("metadata_type_ad_placement_config"),Ur:T,contentCpn:M.clientMetadata.fp("metadata_type_content_cpn"),inPlayerLayoutId:M.clientMetadata.fp("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:M.clientMetadata.fp("metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:M.clientMetadata.fp("metadata_type_instream_ad_player_overlay_renderer"), playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Et:void 0,M$:b,Ra:M.layoutId,videoLengthSeconds:M.clientMetadata.fp("metadata_type_video_length_seconds")}}; vwg=function(M,W,b){return osL(M.Z.get(),W.contentCpn,W.Ra,T=>cAt(M.V.get(),T.slotId,b,W.adPlacementConfig,W.Ra,iB(M.Oj.get(),T)))}; LX=function(M,W,b,T){M.Z().NL(W,T);b=b();M=M.Z();M.Ne.Z("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,T,b);for(const V of b)a:{W=M;Pr(W.Ne,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V);Pr(W.Ne,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",V);try{var q=W.Z;if(g.Tp(V.slotId))throw new P("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(SF(q,V))throw new P("Duplicate registration for slot.",{slotId:V.slotId,slotEntryTriggerType:V.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT"); if(!q.VB.W$.has(V.slotType))throw new P("No fulfillment adapter factory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!q.VB.ai.has(V.slotType))throw new P("No SlotAdapterFactory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");jT(q,"TRIGGER_CATEGORY_SLOT_ENTRY",V.slotEntryTrigger?[V.slotEntryTrigger]:[]);jT(q,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",V.slotFulfillmentTriggers);jT(q, "TRIGGER_CATEGORY_SLOT_EXPIRATION",V.slotExpirationTriggers);var X=W.Z;const J=`${V.slotType}_${V.slotPhysicalPosition}`,B=oN(X,J);if(SF(X,V))throw new P("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");B.set(V.slotId,new moJ(V));X.Z.set(J,B)}catch(J){J instanceof P&&J.Og?(Yr(W.Ne,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",J.Og,V),za(J,V,void 0,void 0,J.oG)):(Yr(W.Ne,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V),za(J, V));break a}SF(W.Z,V).C=!0;try{var G=W.Z;const J=SF(G,V),B=V.slotEntryTrigger,D=G.VB.wT.get(B.triggerType);D&&(D.HO("TRIGGER_CATEGORY_SLOT_ENTRY",B,V,null),J.Zs.set(B.triggerId,D));for(const n of V.slotFulfillmentTriggers){const C=G.VB.wT.get(n.triggerType);C&&(C.HO("TRIGGER_CATEGORY_SLOT_FULFILLMENT",n,V,null),J.gK.set(n.triggerId,C))}for(const n of V.slotExpirationTriggers){const C=G.VB.wT.get(n.triggerType);C&&(C.HO("TRIGGER_CATEGORY_SLOT_EXPIRATION",n,V,null),J.X.set(n.triggerId,C))}const a=G.VB.W$.get(V.slotType).get().build(G.B, V);J.W=a;const E=G.VB.ai.get(V.slotType).get().build(G.S,V);E.init();J.V=E}catch(J){J instanceof P&&J.Og?(Yr(W.Ne,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",J.Og,V),za(J,V,void 0,void 0,J.oG)):(Yr(W.Ne,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V),za(J,V));cr(W,V,!0);break a}Pr(W.Ne,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",V);W.Z.Da(V);for(const J of W.V)J.Da(V);gl(W,V)}}; deQ=function(M,W){var b=0x8000000000000;let T=0,q=0x8000000000000;for(const J of W.slotFulfillmentTriggers){if(!(J instanceof xC)){za("Found unexpected fulfillment trigger for throttled slot.",W,null,{fulfillmentTrigger:J});continue}const B=J.Z.start;b=Math.min(b,B);T=Math.max(T,J.Z.end);J.visible&&(q=Math.min(q,B))}const {startMs:X,endMs:G,QL:V}={startMs:b,endMs:T,QL:q<0x8000000000000&&b1&&X[1])return T=b.Z,M=T[y[20]](/^[^.]*/,y[5]),g.Pc(b,`${T[y[12]](y[18])===0?y[18]:y[53]}${q}---${X[1]}${M}`),b=new g.LJ(b[y[44]]()),b[y[42]](y[63],y[4]),b;if(W)return b=M[y[1]](),b[y[42]](y[63],y[4]),b;q=b.Z[y[8]](y[54]);b.Z[y[8]](y[9])?(g.Pc(b,y[49]),T=b[y[44]]()):b.Z[y[8]](y[26])? (g.Pc(b,y[70]),T=b[y[44]]()):(b=Xps(T),nX(b)&&(T=b));b=new g.LJ(T);b[y[42]](y[68],y[4]);q&&b[y[42]](y[58],y[50]);return b}; Jy=function(M,W){for(const b of M.Z.values())for(const T of b)if(T.layoutId===W)return T;za("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Tp(W)),layoutId:W})}; BB=function(M,W){const b=[];for(const T of M.Kv.values()){const q=T.trigger;q instanceof RW&&q.triggeringLayoutId===W&&b.push(T)}b.length?Qq(M.Fg(),b):za("Survey is submitted but no registered triggers can be activated.")}; DY=function(M,W){const b=[];for(const T of M.Kv.values())T.trigger.Z===W.layoutId&&b.push(T);b.length&&Qq(M.Z(),b)}; L7L=function(M,W,b,T,q,X,G,V,J,B){if(pX(M.NK.get(),1).clientPlaybackNonce!==J)throw new P("Cannot register CueRange-based trigger for different content CPN",{trigger:b});M.Kv.set(b.triggerId,{Kt:new ao(W,b,T,q),cueRangeId:X});M.VN.get().addCueRange(X,G,V,B,M)}; l0s=function(M,W){for(const [b,T]of M.Kv.entries())if(M=b,W===T.cueRangeId)return M;return""}; tCs=function(M,W){const b=[];for(const T of M.values())T.slot.slotId===W&&b.push(T);return b}; Zx=function(M,W){W=W.layoutId;const b=[];for(const q of M.Kv.values())if(q.trigger instanceof Nc){var T;if(T=q.trigger.layoutId===W)T=(T=R6Q.get(q.category))?T==="normal":!1;T&&b.push(q)}b.length&&Qq(M.Z(),b)}; EE=function(M,W,b,T,q){const X=[];for(const G of M.Kv.values()){const V=G.trigger,J=G.slot;if(V.triggerType===W){if(V instanceof Sf||V instanceof Od||V instanceof Pd){if(q&&V.breakDurationMs!==b)continue;if(!q&&V.breakDurationMs===b)continue;if(T.has(J.slotId))continue}X.push(G)}}X.length>0&&Qq(M.C(),X)}; ZiQ=function(M,W){W=(W.C7+1)*1E3;let b=void 0;for(const {trigger:T,slot:q}of M.Kv.values())T instanceof Sf&&T.breakDurationMs<=W&&(!b||T.breakDurationMs>b.trigger.breakDurationMs)&&(b={slot:q,trigger:T});return b}; I0t=function(M){const W=[];for(const {trigger:b}of M.Kv.values())b instanceof Sf&&W.push(b.breakDurationMs);return W}; nQ=function(M){M.Z=null;M.Kv.clear();M.V&&M.V.stop();M.S&&M.S.stop();M.B?.stop();delete M.B}; Hiq=function(M){HK(M.iV.get(),"ads_ce",`bdc.${I0t(M).length};fi.${!!M.Z};fet.${!!M.V}`);M.Z&&(M.A=!0,M.V&&(M.V.stop(),M.V.start()),N0L(M,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; f0g=function(M){M=M.adPlacementRenderer.config.adPlacementConfig;if(M.prefetchModeConfig&&M.prefetchModeConfig.cacheFetchRefreshDurationMs&&(M=Number(M.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(M)||M<=0)))return M}; N0L=function(M,W){const b=[];for(const T of M.Kv.values())T.trigger.triggerType===W&&b.push(T);b.length>0&&Qq(M.C(),b)}; R2q=function(M){M=M.adPlacementRenderer.config.adPlacementConfig;if(!M.prefetchModeConfig||!M.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;M=Number(M.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(M)||M<=0?0:Math.floor(Math.random()*M)}; rTp=function(M,W){const b=[];if(W=M.Z.get(W.layoutId))for(const T of W)(W=M.V.get(T.triggerId))&&b.push(W);return b}; Ut=function(M){switch(M){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"}}; xoL=function(M){switch(M){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; F7a=function(M,W){const b={slotId:lw(W,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],eT:"surface",clientMetadata:new h3([])};W=DW(W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",b.slotId);W={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",yc:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], eT:"surface",clientMetadata:new h3([]),w9:vdS(!1,b.slotId,b.slotType,b.slotPhysicalPosition,b.eT,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return{...M,Ki:!0,slot:b,layout:W}}; sSq=function(M,W,b,T){var q=M.kind;T=T?!1:!M.hideCueRangeMarker;switch(q){case "AD_PLACEMENT_KIND_START":return T={x7:new vN(-0x8000000000000,-0x8000000000000),GR:T},b!=null&&(T.Ty=new vN(-0x8000000000000,-0x8000000000000)),T;case "AD_PLACEMENT_KIND_END":return T={x7:new vN(0x7ffffffffffff,0x8000000000000),GR:T},b!=null&&(T.Ty=new vN(Math.max(0,W-b),0x8000000000000)),T;case "AD_PLACEMENT_KIND_MILLISECONDS":q=M.adTimeOffset;q.offsetStartMilliseconds||za("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); q.offsetEndMilliseconds||za("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");M=Number(q.offsetStartMilliseconds);q=Number(q.offsetEndMilliseconds);q===-1&&(q=W);if(Number.isNaN(M)||Number.isNaN(q)||M>q)return new P("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:M,offsetEndMs:q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",q===W&&M-500<=q);T={x7:new vN(M,q),GR:T};if(b!=null){M=Math.max(0,M-b);if(M===q)return T;T.Ty=new vN(M,q)}return T; default:return new P("AdPlacementKind not supported in convertToRange.",{kind:q,adPlacementConfig:M})}}; iiQ=function(M){if(!M||!M.adPlacements&&!M.adSlots)return!1;for(const W of M.adPlacements||[]){if(!W)continue;const b=W.adPlacementRenderer;if(b!=null&&(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0}for(const W of M.adSlots||[])if(g.z(W,aW)?.adSlotMetadata?.triggerEvent==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0;return!1}; lw=function(M,W){if(y_(M.PY.get())){let b=M.V.get(W)||0;b++;M.V.set(W,b);return`${W}_${b}`}return g.Ja(16)}; e4=function(M,W){if(y_(M.PY.get())){let b=M.B.get(W)||0;b++;M.B.set(W,b);return`${W}_${b}`}return g.Ja(16)}; DW=function(M,W,b){if(y_(M.PY.get())){let T=M.Z.get(W)||0;T++;M.Z.set(W,T);return`${b}_${W}_${T}`}return g.Ja(16)}; ATy=function(M){const W=[new Ny(M.Ra),new h2L(M.M$),new cd(M.adPlacementConfig),new qy(M.videoLengthSeconds),new $G(M.Et)];M.instreamAdPlayerOverlayRenderer&&W.push(new VM(M.instreamAdPlayerOverlayRenderer));M.playerOverlayLayoutRenderer&&W.push(new JC(M.playerOverlayLayoutRenderer));M.uj&&W.push(new rQ(M.uj));return W}; z2g=function(M,W,b,T,q,X){M=b.inPlayerLayoutId?b.inPlayerLayoutId:DW(X,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",M);const G=b.instreamAdPlayerOverlayRenderer?b.instreamAdPlayerOverlayRenderer?.adLayoutLoggingData:b.playerOverlayLayoutRenderer?.adLayoutLoggingData,V={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eT:W};return{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",yc:new Map,layoutExitNormalTriggers:[new Zs(J=>e4(X,J),b.Ra)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:W,clientMetadata:T,w9:q(V),adLayoutLoggingData:G}}; xGp=function(M,W,b,T,q,X,G,V,J){T.every(D=>Hr(D,[],["LAYOUT_TYPE_MEDIA"]))||za("Unexpect subLayout type for DAI composite layout"); W=DW(M.V.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W);const B={layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",eT:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",yc:new Map,layoutExitNormalTriggers:[new u4(M.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new j4(b),new Gi(V),new W7t(T),new cd(q),new aj(X),new yM,new VQy(J)]),w9:G(B)}}; elp=function(M,W,b,T,q,X,G,V,J,B,D){M=u5t(M,W,"core",b,T,q,X,G,V,J,B,void 0,D);return{layoutId:M.layoutId,layoutType:M.layoutType,yc:M.yc,layoutExitNormalTriggers:M.layoutExitNormalTriggers,layoutExitSkipTriggers:M.layoutExitSkipTriggers,layoutExitMuteTriggers:M.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:M.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:M.layoutExitUserCancelledTriggers,eT:M.eT,clientMetadata:new h3(M.j1),w9:M.w9,adLayoutLoggingData:M.adLayoutLoggingData}}; v2=function(M,W,b,T,q){const X=ATy(T);return z2g(W,b,T,new h3(X),q,M.V.get())}; cAt=function(M,W,b,T,q,X){b=new h3([new Sis(b),new cd(T)]);W=DW(M.V.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W);T={layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",eT:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",yc:new Map,layoutExitNormalTriggers:[new Zs(G=>e4(M.V.get(),G),q)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:b,w9:X(T),adLayoutLoggingData:void 0}}; zsl=function(M,W,b,T,q,X,G,V,J,B,D,a){M=wQ(M,W,b,T,q,X,G,V,D,a);W=M.WS;b=new iP(M.mz);T=M.layoutExitSkipTriggers;J>0&&(W.push(b),W.push(new uP(J)),T=[]);W.push(new hC(B));return{Gx:{layoutId:M.layoutId,layoutType:M.layoutType,yc:M.yc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:M.eT,clientMetadata:new h3(W),w9:M.w9,adLayoutLoggingData:M.adLayoutLoggingData},Om:T,uU:M.layoutExitMuteTriggers, DW:M.layoutExitUserInputSubmittedTriggers,Ns:M.layoutExitUserCancelledTriggers,L7:M.L7}}; P1Q=function(M,W,b,T,q,X,G,V,J){W=wQ(M,W,b,T,q,new Map,X,B=>G(B,V)); M=new RW(M.Z,W.mz);b=new iP(W.mz);J=new hC(J);return{Gx:{layoutId:W.layoutId,layoutType:W.layoutType,yc:W.yc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:W.eT,clientMetadata:new h3([...W.WS,b,J]),w9:W.w9,adLayoutLoggingData:W.adLayoutLoggingData},Om:W.layoutExitSkipTriggers,uU:W.layoutExitMuteTriggers,DW:[...W.layoutExitUserInputSubmittedTriggers,M],Ns:W.layoutExitUserCancelledTriggers, L7:W.L7}}; MCS=function(M,W,b,T,q,X,G,V,J,B,D,a,E){W=u5t(M,W,"adapter",b,T,q,X,G,V,J,D,a,E);T=W.layoutExitSkipTriggers;q=W.j1;b.adPodSkipTarget&&b.adPodSkipTarget>0&&(q.push(B),q.push(new uP(b.adPodSkipTarget)),T=[]);q.push(new hC(V.adPodIndex));b.isCritical&&(T=[new IW(M.Z,W.layoutId,["error"]),...T]);return{Gx:{layoutId:W.layoutId,layoutType:W.layoutType,yc:W.yc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], eT:W.eT,clientMetadata:new h3(q),w9:W.w9,adLayoutLoggingData:W.adLayoutLoggingData},Om:T,uU:W.layoutExitMuteTriggers,DW:W.layoutExitUserInputSubmittedTriggers,Ns:W.layoutExitUserCancelledTriggers}}; e2Q=function(M,W,b,T,q){const X=ATy(T);X.push(new OiQ(T.nM));X.push(new P_L(T.Ur));return z2g(W,b,T,new h3(X),q,M.V.get())}; MW=function(M,W,b,T,q,X,G,V,J,B){W=DW(M.V.get(),b,W);const D={layoutId:W,layoutType:b,eT:"core"},a=new Map;G&&a.set("impression",G);G=[new Ar(M.Z,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];B&&G.push(new IW(M.Z,B,["normal"]));return{layoutId:W,layoutType:b,yc:a,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([T,new cd(X),new Ny(q)]),w9:V(D),adLayoutLoggingData:J}}; WB=function(M,W,b,T,q,X,G,V,J){W=DW(M.V.get(),b,W);const B={layoutId:W,layoutType:b,eT:"core"},D=[new Ar(M.Z,q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];J&&D.push(new IW(M.Z,J,["normal"]));return{layoutId:W,layoutType:b,yc:new Map,layoutExitNormalTriggers:D,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([T,new cd(X),new Ny(q)]),w9:G(B),adLayoutLoggingData:V}}; QM=function(M,W,b){const T=[];T.push(new UE(M.Z,b));W&&T.push(W);return T}; c2=function(M,W,b,T,q,X,G){const V={layoutId:W,layoutType:b,eT:"core"};return{layoutId:W,layoutType:b,yc:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[new rd(M.Z,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new doS(T),new cd(q)]),w9:X(V),adLayoutLoggingData:T.adLayoutLoggingData}}; YC=function(M,W,b,T,q,X,G,V){const J={layoutId:W,layoutType:X,eT:"core"};return{layoutId:W,layoutType:X,yc:new Map,layoutExitNormalTriggers:[new Zs(M.Z,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"core",clientMetadata:new h3([new cd(T),...G]),w9:q(J),adLayoutLoggingData:V}}; wQ=function(M,W,b,T,q,X,G,V,J,B){W=DW(M.V.get(),"LAYOUT_TYPE_MEDIA_BREAK",W);const D={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",eT:"adapter"};V=V(W);const a=V.clientMetadata.fp("metadata_type_fulfilled_layout");a||za("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");const E=a?a.layoutId:"";b=[new cd(b),new OI(T),new My(q)];a&&b.push(new P2(a.layoutType));B&&b.push(new C2(B));return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", yc:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Hd(M.Z,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:"adapter",WS:b,w9:G(D),adLayoutLoggingData:J,L7:V,mz:E}}; u5t=function(M,W,b,T,q,X,G,V,J,B,D,a,E){const n={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",eT:b};q=[new cd(q),new De(J),new B2(T.externalVideoId),new Ti(V),new My({impressionCommands:T.impressionCommands,abandonCommands:T.onAbandonCommands,completeCommands:T.completeCommands,progressCommands:T.adVideoProgressCommands}),new Xe(X),new n2({current:null}),new qy(G)];(X=T.playerOverlay.instreamAdPlayerOverlayRenderer)&&q.push(new VM(X));(G=T.playerOverlay.playerOverlayLayoutRenderer)&&q.push(new JC(G)); a&&q.push(new KBg(a));(a=T.playerUnderlay)&&q.push(new Sis(a));V=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER");a=(a=X?X.elementId:G?.layoutId)?a:DW(M.V.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",V);q.push(new iP(a));q.push(new UZJ(V));q.push(new C2(J.adPodIndex));T.adNextParams&&q.push(new AC(T.adNextParams));T.shrunkenPlayerBytesConfig&&q.push(new owp(T.shrunkenPlayerBytesConfig));T.clickthroughEndpoint&&q.push(new zi(T.clickthroughEndpoint));T.legacyInfoCardVastExtension&&q.push(new vug(T.legacyInfoCardVastExtension)); T.sodarExtensionData&&q.push(new EI(T.sodarExtensionData));D&&q.push(new S4(D));q.push(new UI(r$(T.pings)));J=xJ(T.pings);if(E){a:{for(C of E)if(C.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){E=g.z(C.fulfillmentContent.fulfilledLayout,Bd);if(!E)continue;if((E=g.z(E.renderingContent,Vf))&&E.associatedPlayerBytesLayoutId===W)break a}var C=void 0}C&&q.push(new k2q(C))}return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",yc:J,layoutExitNormalTriggers:[new Nc(M.Z,W)],layoutExitSkipTriggers:T.skipOffsetMilliseconds? [new Hd(M.Z,a)]:[],layoutExitMuteTriggers:[new Hd(M.Z,a)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],eT:b,j1:q,w9:B(n),adLayoutLoggingData:T.adLayoutLoggingData}}; N2L=function(M){return M!=null}; bUt=function(M,W,b,T,q){const X=lw(M.V.get(),W);return CQ(M,X,W,new l4(M.Z,b),[new mw(M.Z,b),new Lz(M.Z,X)],T,q)}; V9L=function(M,W,b,T,q,X,G){const V=lw(M.V.get(),W);return CQ(M,V,W,new IW(M.Z,q,["normal"]),[new mw(M.Z,b),new Lz(M.Z,V),new IW(M.Z,T,["error"])],X,G)}; JAq=function(M,W,b,T,q,X){const G=lw(M.V.get(),W);return CQ(M,G,W,new i4(M.Z,T),[new mw(M.Z,b),new Lz(M.Z,G),new IW(M.Z,T,["error"])],q,X)}; aft=function(M,W,b,T,q){return cTP(M,W,b,T,q)}; UGJ=function(M,W,b,T,q){const X=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER");b=new k$(M.Z,T,b);T=[new fz(M.Z,X)];M=[new mw(M.Z,W)];return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:T,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(q({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:T,slotExpirationTriggers:M}))])}}; vsp=function(M,W,b,T){const q=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER");b=new i4(M.Z,b);var X=[new fz(M.Z,q)];const G=[new Lz(M.Z,q),new mw(M.Z,W)];X={slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:X,slotExpirationTriggers:G};return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:[new fz(M.Z,q)],slotExpirationTriggers:[new mw(M.Z,W),new Lz(M.Z,q)],eT:"core",clientMetadata:new h3([new dQ(T(X))])}}; HUL=function(M,W,b,T,q){const X=lw(M.V.get(),"SLOT_TYPE_PLAYER_BYTES"),G=new z3(M.Z),V=[new vd(M.Z,X)];M=[new mw(M.Z,W)];W=[];W.push(new dQ(T({slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:G,slotFulfillmentTriggers:V,slotExpirationTriggers:M})));W.push(new yM);q&&W.push(new lP({current:q}));return{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:V,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3(W), adSlotLoggingData:b}}; hlL=function(M,W,b,T,q,X,G){const V=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER"),J=DW(M.V.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",V);T=QtS(M,T,X,G,J);if(T instanceof P)return T;G=[new fz(M.Z,V)];q=[new mw(M.Z,X),new fz(M.Z,q),new KQ(M.Z,q)];b=iB(b,{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:T,slotFulfillmentTriggers:G,slotExpirationTriggers:q});M=M.B.get();X={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",eT:"core"};W={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", yc:new Map,layoutExitNormalTriggers:[new gwt(M.Z,J,W.durationMs)],layoutExitSkipTriggers:[new stQ(M.Z,J,W.durationMs)],layoutExitUserCancelledTriggers:[new wgg(M.Z,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],eT:"core",clientMetadata:new h3([new pgJ(W)]),w9:b(X)};return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:T,slotFulfillmentTriggers:G,slotExpirationTriggers:q,clientMetadata:new h3([new dQ(W)])}}; SLp=function(M,W,b,T,q){W=w8J(M,W);M=p2(M,W,b);q=q({slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,eT:M.eT});return q instanceof P?q:{VE:{...M,clientMetadata:new h3([new dQ(q.layout)]),adSlotLoggingData:T},xZ:q.xZ}}; OUs=function(M,W,b,T,q,X,G){b=p8q(M,W,b,T);if(b instanceof P)return b;G=G({slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers,eT:b.eT});if(G instanceof P)return G;M=[new dQ(G.layout),new tC({dD:M.dD(W)})];X&&M.push(new YLp({}));return{VE:{slotId:b.slotId,slotType:b.slotType,slotPhysicalPosition:b.slotPhysicalPosition,slotEntryTrigger:b.slotEntryTrigger, slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers,eT:b.eT,clientMetadata:new h3(M),adSlotLoggingData:q},xZ:G.xZ}}; dGt=function(M,W,b,T,q){q=q?q:lw(M.V.get(),"SLOT_TYPE_IN_PLAYER");b=new i4(M.Z,b);const X=[new fz(M.Z,q)];M=[new mw(M.Z,W),new Lz(M.Z,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:X,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(T({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:X,slotExpirationTriggers:M}))])}}; osL=function(M,W,b,T){const q=lw(M.V.get(),"SLOT_TYPE_PLAYER_UNDERLAY");b=new i4(M.Z,b);const X=[new fz(M.Z,q)];M=[new mw(M.Z,W),new Lz(M.Z,q)];return{slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:X,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(T({slotId:q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:b,slotFulfillmentTriggers:X,slotExpirationTriggers:M}))])}}; NfL=function(M,W,b,T,q){b=b?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";const X=lw(M.V.get(),b);W=new l4(M.Z,W);const G=[new fz(M.Z,X)];M=[new Lz(M.Z,X)];return{slotId:X,slotType:b,slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:G,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(q({slotId:X,slotType:b,slotPhysicalPosition:1,eT:"core",slotEntryTrigger:W,slotFulfillmentTriggers:G,slotExpirationTriggers:M}))]),adSlotLoggingData:T}}; RsQ=function(M,W,b,T,q,X){const G=lw(M.V.get(),"SLOT_TYPE_FORECASTING");W=vB(M,W,b,T);if(W instanceof P)return W;T=[new fz(M.Z,G)];M=[new Lz(M.Z,G),new mw(M.Z,b)];return{slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:T,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(X({slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:W,slotFulfillmentTriggers:T,slotExpirationTriggers:M}))]),adSlotLoggingData:q}}; FBt=function(M,W,b,T){const q=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER"),X=new l4(M.Z,W),G=[new vd(M.Z,q)];M=[new mw(M.Z,W),new Lz(M.Z,q)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:G,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(T({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:X,slotFulfillmentTriggers:G,slotExpirationTriggers:M}))]),adSlotLoggingData:b}}; hsq=function(M,W,b,T,q,X){W=vB(M,W,b,T);if(W instanceof P)return W;const G=W instanceof xC?new Yip(M.Z,b,W.Z):null;T=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER");const V=[new fz(M.Z,T)];M=[new mw(M.Z,b),new Lz(M.Z,T)];X=X({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:W,slotFulfillmentTriggers:V,slotExpirationTriggers:M},G);return X instanceof Mg?new P(X):{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:V, slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(X)]),adSlotLoggingData:q}}; uZS=function(M,W,b,T){const q=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER");return cTP(M,q,W,b,T)}; bit=function(M,W,b,T,q,X){const G=lw(M.V.get(),"SLOT_TYPE_PLAYER_BYTES"),V=lw(M.V.get(),"SLOT_TYPE_IN_PLAYER"),J=DW(M.V.get(),"LAYOUT_TYPE_SURVEY",V);T=vB(M,W,b,T);const B=[new fz(M.Z,G)];b=[new Lz(M.Z,G),new mw(M.Z,b),new rd(M.Z,J)];if(T instanceof P)return T;const {vB:D,Pm:a}=X({slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:T,slotFulfillmentTriggers:B,slotExpirationTriggers:b},{slotId:V,layoutId:J});return[{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES", slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:B,slotExpirationTriggers:b,eT:"core",clientMetadata:new h3([new dQ(D),new tC({dD:M.dD(W)})]),adSlotLoggingData:q},a]}; yTP=function(M,W,b,T,q,X,G){if(!b.prefetchModeConfig)return new P("AdPlacementConfig for Live Prefetch is missing prefetch_config");b=b.prefetchModeConfig;T*=1E3;const V=[];if(!b.breakLengthMs)return new P("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(const D of b.breakLengthMs)if(Number(D)>0){var J=T+Number(b.startTimeOffsetMs),B=J+Number(b.cacheFetchSmearingDurationMs);J={x7:new vN(B,B+Number(D)),GR:!1,Ty:new vN(Math.floor(J+Math.random()*Number(b.cacheFetchSmearingDurationMs)), B),cueProcessedMs:T?T:J};B=[];B.push(new Jwa);const a=[];a.push(new ef(M.Z));a.push(new $9p(M.Z));G&&B.push(new yM);V.push(Kz(M,W,q,J,X,B,a))}return V}; Kz=function(M,W,b,T,q,X=[],G){const V=lw(M.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");G||(G=[],T.Ty&&T.Ty.start!==T.x7.start&&G.push(new xC(M.Z,b,new vN(T.Ty.start,T.x7.start),!1)),G.push(new xC(M.Z,b,new vN(T.x7.start,T.x7.end),T.GR)));T={getAdBreakUrl:W.getAdBreakUrl,KD:T.x7.start,iS:T.x7.end,cueProcessedMs:T.cueProcessedMs};W=new mF(M.Z,V);X=[new pet(T),...X];return{slotId:V,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:G,slotExpirationTriggers:[new mw(M.Z, b),new Lz(M.Z,V),new LQ(M.Z,V)],eT:"core",clientMetadata:new h3(X),adSlotLoggingData:q}}; MyQ=function(M,W,b){const T=[];for(const q of b)T.push(q.triggeringSlotId!=null&&q.triggeringSlotId===M?q.clone(W):q);return T}; cTP=function(M,W,b,T,q){const X=new i4(M.Z,b),G=[new fz(M.Z,W)];M=[new Lz(M.Z,W),new mw(M.Z,T)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:G,slotExpirationTriggers:M,eT:"core",clientMetadata:new h3([new dQ(q({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eT:"core",slotEntryTrigger:X,slotFulfillmentTriggers:G,slotExpirationTriggers:M},b))]),adSlotLoggingData:void 0}}; vB=function(M,W,b,T){return Wrs(M,W,b,T,(q,X)=>new xC(M.Z,b,q,X))}; QtS=function(M,W,b,T,q){return Wrs(M,W,b,T,(X,G)=>new bos(M.Z,b,X,G,q))}; CQ=function(M,W,b,T,q,X,G){M=[new vd(M.Z,W)];return{slotId:W,slotType:b,slotPhysicalPosition:1,slotEntryTrigger:T,slotFulfillmentTriggers:M,slotExpirationTriggers:q,eT:"core",clientMetadata:new h3([new dQ(G({slotId:W,slotType:b,slotPhysicalPosition:1,eT:"core",slotEntryTrigger:T,slotFulfillmentTriggers:M,slotExpirationTriggers:q}))]),adSlotLoggingData:X}}; w8J=function(M,W){return VCP(M.PY.get())?new IW(M.Z,W,["normal","error","skipped"]):new IW(M.Z,W,["normal"])}; p2=function(M,W,b){const T=lw(M.V.get(),"SLOT_TYPE_PLAYER_BYTES"),q=[new fz(M.Z,T)];M=[new Lz(M.Z,T),new mw(M.Z,b)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:q,slotExpirationTriggers:M,eT:"core"}}; lf=function(M,W){const b=new g.LJ(W);(W=b.get("req_id"))&&M.set("req_id",W);g.NE(M.Z,(T,q)=>{b["set"](q,null)}); return b}; p8q=function(M,W,b,T){W=vB(M,W,b,T);return W instanceof P?W:p2(M,W,b)}; Wrs=function(M,W,b,T,q){const X=!W.hideCueRangeMarker;switch(W.kind){case "AD_PLACEMENT_KIND_START":return new l4(M.Z,b);case "AD_PLACEMENT_KIND_MILLISECONDS":return M=sSq(W,T),M instanceof P?M:q(M.x7,X);case "AD_PLACEMENT_KIND_END":return new FP(M.Z,b,X);default:return new P("Cannot construct entry trigger",{kind:W.kind})}}; Pr=function(M,W,b){M.Z(W,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData)}; Yr=function(M,W,b,T,q){M.Z("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,T,q,void 0,void 0,T.adSlotLoggingData,q?q.adLayoutLoggingData:void 0,{errorType:W,errorMessage:b})}; wl=function(M,W,b,T){M.Z(W,void 0,void 0,void 0,b,T?T:void 0,void 0,void 0,b.adSlotLoggingData,T?T.adLayoutLoggingData:void 0);W=vA().resolve(yi(Gu))?.U_();b=W?.adsHotConfig;W?.adsSeenHotConfig?.logOnAdsSeen&&b?.webEnablePremiumAdsSeenLogging&&TRt(M,T?T:void 0)}; fFa=function(M,W,b,T){Bo(M.PY.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",b,"slot:",W,"layout:",T);FR(M.V.get())&&M.Z("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,W,T?T:void 0,void 0,b,W.adSlotLoggingData,T?T.adLayoutLoggingData:void 0)}; TRt=function(M,W){if(W){var b=W.adLayoutLoggingData;g.yn(g.Cv(),()=>{M.B?.Z(b)},0)}}; ty=function(M,W){return M.Z.get(W)||null}; qKq=function(){let M,W;return{rO:new ZY((b,T)=>{M=b;W=T}), resolve:M,reject:W}}; NW=function(M){return Io(M)?M:IH(M)?new ZY((W,b)=>{M.then(W,b)}):new ZY(W=>{W(M)})}; HB=function(M){return new ZY((W,b)=>{b(M)})}; fQ=function(M){try{return NW(M())}catch(W){return HB(W)}}; XAg=function(M){return new Promise((W,b)=>{Ro(M,W,b)})}; jHL=async function(M){return XAg(M)}; r6=function(M){if(M.Z==="fulfilled"){var W=M.V;M.V=[];M.B=[];for(var b of W)b(M.result)}else if(M.Z==="rejected"){b=M.B;M.V=[];M.B=[];for(W of b)W(M.error)}}; Ro=function(M,W,b){const {rO:T,resolve:q,reject:X}=qKq();M.V.push(G=>{if(W)try{const V=W(G);q(V)}catch(V){X(V)}else q(G)}); M.B.push(G=>{if(b)try{const V=b(G);q(V)}catch(V){X(V)}else X(G)}); r6(M);return T}; x$=function(M,W){return Ro(M,void 0,W)}; G_G=function(M,W){Ro(M,b=>Ro(NW(W()),()=>b),b=>Ro(NW(W()),()=>HB(b)))}; Fg=function(M,W){return Vyt(W.call(M))}; hy=function(M){return function*(){return yield{rO:NW(M)}}()}; Vyt=function(M){return fQ(()=>Ay(M,M.next()))}; Ay=function(M,W){return W.done?NW(W.value):x$(Ro(W.value.rO,b=>Ay(M,M.next(b))),b=>Ay(M,M.throw(b)))}; D9q=function(M){const W=JaL(M);return Ro(BRa(W),()=>W.map(b=>b.state()))}; BRa=function(M){if(M.length===0)return NW(NaN);const {rO:W,resolve:b}=qKq();let T=M.length;for(const [q,X]of M.entries()){const G=q;G_G(X,()=>{W.Z==="pending"&&(aJq(void 0)&&(void 0)(G)&&W.Z==="pending"?b(G):(--T,T===0&&b(NaN)))})}return W}; JaL=function(M){return M.map(W=>NW(W))}; uf=function(M){var W=M.hours||0;var b=M.minutes||0,T=M.seconds||0;W=T+b*60+W*3600+(M.days||0)*86400+(M.weeks||0)*604800+(M.months||0)*2629800+(M.years||0)*31557600;W<=0?W={hours:0,minutes:0,seconds:0}:(M=W,W=Math.floor(M/3600),M%=3600,b=Math.floor(M/60),T=Math.floor(M%60),W={hours:W,minutes:b,seconds:T});const {hours:q=0,minutes:X=0,seconds:G=0}=W;b=q>0;W=[];if(b){M=(new Intl.NumberFormat("en-u-nu-latn")).format(q);T=["fr"];const V="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); M="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(zO)?M.replace(",","\u00a0"):T.includes(zO)?M.replace(",","\u202f"):V.includes(zO)?M.replace(",","."):M;W.push(M)}b=E2t(X,b);W.push(b);b=n2q().format(G);W.push(b);b=":";"da fi id si sr sr-Latn".split(" ").includes(zO)&&(b=".");return W.join(b)}; n2q=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; E2t=function(M,W=!1){return(["af","be","lt"].includes(zO)||W)&&M<10?n2q().format(M):(new Intl.NumberFormat("en-u-nu-latn")).format(M)}; yap=function(M,W){M=M.watchEndpointSupportedAuthorizationTokenConfig?.videoAuthorizationToken?.credentialTransferTokens||[];for(let b=0;b{U9L.includes(W)||(g.lR(new g.EF("createClientScreen() called with a non-page VE",W)),W=83769);T.isHistoryNavigation||M.Z.push({rootVe:W,key:T.key||""});M.D=[];M.X=[];T.Ol?C6t(M,W,b,T):k_L(M,W,b,T)})()}; C6t=function(M,W,b,T={}){M.V.add(T.layer||0);M.S=()=>{k_L(M,W,b,T);const q=g.EB(T.layer);if(q){for(const X of M.D)Q_(M,X[0],X[1]||q,T.layer);for(const X of M.X)KrS(M,X[0],X[1])}}; b||g.nT(T.layer)||M.S();if(T.Ol)for(const q of T.Ol)v2J(M,q,T.layer);else g.O(Error("Delayed screen needs a data promise."))}; k_L=function(M,W,b,T={}){var q=void 0;T.layer||(T.layer=0);q=T.parentLayer!==void 0?T.parentLayer:T.layer;const X=g.nT(q);q=g.EB(q);const G=b||q;let V;G&&(T.parentCsn!==void 0?V={clientScreenNonce:T.parentCsn,visualElement:G}:X&&X!=="UNDEFINED_CSN"&&(V={clientScreenNonce:X,visualElement:G}));let J;const B=g.F("EVENT_ID");X==="UNDEFINED_CSN"&&B&&(J={servletData:{serializedServletEventId:B}});g.he("combine_ve_grafts")&&X&&g6(M,X);g.he("no_client_ve_attach_unless_shown")&&G&&X&&d4(G,X);let D;try{D=i9Q(M.client, W,V,T.El,T.cttAuthInfo,J,T.implicitGestureType,T.loggingExpectations,T.automatedLogEventSource)}catch(E){r4(E,{tf:W,rootVe:q,mLk:b,Z7T:X,ohv:V,El:T.El});g.O(E);return}wGl(D,W,T.layer,T.cttAuthInfo);X&&X!=="UNDEFINED_CSN"&&q&&!Q0L(X)&&ANJ(M.client,X,q,!0);M.Z[M.Z.length-1]&&!M.Z[M.Z.length-1].csn&&(M.Z[M.Z.length-1].csn=D||"");g.xD({clientScreenNonce:D});sE.instance||(sE.instance=new sE);g.Je(el().Z).bind(el())();const a=g.EB(T.layer);X&&X!=="UNDEFINED_CSN"&&a&&g.he("music_web_mark_root_visible")&& g.w4(D,a);M.V.delete(T.layer||0);M.S=void 0;M.sY.get(T.layer)?.forEach((E,n)=>{E?Q_(M,n,E,T.layer):a&&Q_(M,n,a,T.layer)}); m9Q(M)}; v2J=function(M,W,b=0){g.Je(()=>{W.then(T=>{M.V.has(b)&&M.S&&M.S();const q=g.nT(b),X=g.EB(b);if(q&&X){var G={automatedLogEventSource:3};T?.response?.trackingParams&&g.PW(M.client,q,X,g.BW(T.response.trackingParams),!1,G);T?.playerResponse?.trackingParams&&g.PW(M.client,q,X,g.BW(T.playerResponse.trackingParams),!1,G)}})})()}; Q_=function(M,W,b,T=0){return g.Je(()=>{if(M.V.has(T))return M.D.push([W,b]),!0;const q=g.nT(T),X=b||g.EB(T);if(q&&X){if(g.he("combine_ve_grafts")){const G=M.A.get(X.toString());G?G.push(W):(M.W.set(X.toString(),X),M.A.set(X.toString(),[W]));M.O||(M.O=g.yn(0,()=>{g6(M,q)},1200))}else g.PW(M.client,q,X,W); return!0}return!1})()}; w6=function(M){var W=oo();g.Je(()=>{const b=g.BW(M);Q_(W,b);return b})()}; Lrl=function(M){var W={veType:253246};return g.Je(()=>{if(!W.veType)return NH(new g.EF("Error: Trying to graft a client VE without a veType.")),null;if(W.visibilityTypes){var b=W.visibilityTypes.reduce((T,q)=>T|q); b={visibility:{types:String(b)}}}b=Dk(W.veType,W.visualElement,W.elementIndex,W.clientYouTubeData,void 0,b);return Q_(M,b)?b:null})()}; g6=function(M,W){if(W===void 0){const b=oFy();for(let T=0;T{(T=M.W.get(T))&&g.OB(M.client,W,T,b)}),M.A.clear(),M.W.clear(),M.O=void 0}; lJP=function(M,W){const b=g.nT(0);b&&Q9(M.client,b,W,void 0)}; tyP=function(M,W,b,T=0){if(!W)return!1;T=g.nT(T);if(!T)return!1;Q9(M.client,T,g.BW(W),b);return!0}; KrS=function(M,W,b,T=0){const q=g.nT(T);W=W||g.EB(T);q&&W&&(M=M.client,T=AP({cttAuthInfo:y9(q)||void 0},q),b={csn:q,ve:W.getAsJson(),clientData:b},q==="UNDEFINED_CSN"?oc("visualElementStateChanged",T,b):M?jH("visualElementStateChanged",b,M,T):g.V9("visualElementStateChanged",b,T))}; m9Q=function(M){for(var W=0;W{b.yx(T,q)}); T.open(W.method??"GET",M,!0);T.responseType="text";T.withCredentials=!0;if(W.headers)for(const [q,X]of Object.entries(W.headers))T.setRequestHeader(q,X);return T}; NRl=function(){const M=navigator;return new Promise((W,b)=>{M.webkitTemporaryStorage?.queryUsageAndQuota?M.webkitTemporaryStorage.queryUsageAndQuota((T,q)=>{W({usage:T,quota:q})},T=>{b(T)}):b(Error("webkitTemporaryStorage is not supported."))})}; fJt=function(M,W){Y$.getInstance().estimate().then(b=>{M.Z("idbQuotaExceeded",{...W,isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:HoL(b?.usage),deviceStorageQuotaMbytes:HoL(b?.quota)})})}; HoL=function(M){return typeof M==="undefined"?"-1":String(Math.ceil(M/1048576))}; rat=function(){const M=g.jQ();return M.UY(192)?M.UY(190):!(g.he("web_watch_cinematics_disabled_by_default")||g.he("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&RYq())}; Frg=function(M,W){x9p(M.program,W.jF)&&(As("bg_i",void 0,"player_att"),g.$b.initialize(M,()=>{As("bg_l",void 0,"player_att");MY=(0,g.u)()},W.cspNonce,W.l3))}; iog=function(M={}){return g.$b.invoke(M)}; x9p=function(M,W){if(M){var b;g.$b.isLoading()?b=!1:b=!MY||(0,g.u)()-MY>W;M=b}else M=!1;return M}; hYy=function(M,W){if(W.partnerId===38&&M.playerStyle==="books")return M=W.videoId.indexOf(":"),g.JM(`//play.google.com/books/volumes/${W.videoId.slice(0,M)}/content/media`,{aid:W.videoId.slice(M+1),sig:W.K5});if(W.partnerId===30&&M.playerStyle==="docs")return g.JM("https://docs.google.com/get_video_info",{docid:W.videoId,authuser:W.WX,authkey:W.pQ,eurl:M.sj});if(W.partnerId===33&&M.playerStyle==="google-live")return g.JM("//google-liveplayer.appspot.com/get_video_info",{key:W.videoId});throw Error("getVideoInfoUrl for invalid namespace: "+ M.gK);}; g.W_=function(M,W){return M.l3+"timedtext_video?ref=player&v="+W.videoId}; AaP=function(M){const W={};M.RQ&&(W.ytrext=M.RQ);return g.P$(W)?void 0:W}; g.bu=function(M,W){Frg(M,{jF:g.TO(W.experiments,"bg_vm_reinit_threshold"),cspNonce:W.cspNonce,l3:W.l3||""})}; g.zYL=function(M){if(M.videoData&&M.videoData.im){const W=[M.videoData.im];for(const b of Object.keys(M.Z))if(M.D4[b]&&M.Z[b]){const T=M.Z[b](M.D4);T&&W.push(T)}return W.join("&")}return null}; ufg=function(){const M=XMLHttpRequest.prototype.fetch;return!!M&&M.length===3}; OoJ=function(M){SKJ=2592E3*(M||1)}; P6L=function(M){g.$u("yt-player-bandwidth",M,2592E3)}; Tm=function(M=SKJ){if(M>0&&!(TNJ()>(0,g.u)()-M*1E3))return 0;M=g.MZ("yt-player-quality");if(typeof M==="string"){if(M=g.mh[M],M>0)return M}else if(M instanceof Object)return M.quality;return 0}; qY=function(){const M=g.MZ("yt-player-proxima-pref");return M==null?null:M}; eYa=function(){const M=g.MZ("yt-player-quality");if(M instanceof Object&&M.quality&&M.previousQuality){if(M.quality>M.previousQuality)return 1;if(M.qualityW.startsWith("1")),g.$u("yt-player-performance-cap-active-set",M,2592E3)):g.$u("yt-player-performance-cap-active-set",[],2592E3)}; QHs=function(M){g.$u("yt-player-watch-later-pending",M)}; g2p=function(){return!!g.MZ("yt-player-headers-readable")}; g.Ic=function(){const M=g.MZ("yt-player-caption-language-preferences");return M?M:[]}; Gm=function(){const M=g.MZ("yt-player-user-settings"),W=new Map;if(M)for(const [b,T]of Object.entries(M))W.set(b,T);return W}; sHs=function(){return g.MZ("yt-player-voice-boost")??void 0}; wAa=function(){return g.MZ("yt-player-audio-quality-setting")??2}; JD=function(){try{const M=window.navigator;if(M.getAutoplayPolicy&&typeof M.getAutoplayPolicy==="function"){const W=document.getElementsByClassName(g.Vg.JG);let b;b=W.length>0&&W[0]?M.getAutoplayPolicy(W[0]):M.getAutoplayPolicy("mediaelement");if(pAt[b])return pAt[b]}}catch(M){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; B_=function(M){return M.Y9||M.eO||M.mutedAutoplay}; YKp=function(M,W){return B_(M)?W!==1&&W!==2&&W!==0?"AUTOPLAY_STATUS_UNAVAILABLE":M.Ud?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; $Ht=function(M,W,b){const T=W.G();M.thirdParty||(M.thirdParty={});M.thirdParty={...M.thirdParty,embedUrl:T.loaderUrl};T.ancestorOrigins&&(M.thirdParty.embeddedPlayerContext={...M.thirdParty.embeddedPlayerContext,ancestorOrigins:T.ancestorOrigins});T.NW!=null&&(M.thirdParty.embeddedPlayerContext={...M.thirdParty.embeddedPlayerContext,visibilityFraction:Number(T.NW)});T.Dc&&(M.thirdParty.embeddedPlayerContext={...M.thirdParty.embeddedPlayerContext,visibilityFractionSource:T.Dc});M.thirdParty.embeddedPlayerContext= {...M.thirdParty.embeddedPlayerContext,autoplayBrowserPolicy:JD(),autoplayIntended:B_(W),autoplayStatus:YKp(W,b)}}; BKJ=function(M){const W=[];for(let b of M.split(",")){if(!b)continue;(M=b.startsWith("!"))&&(b=b.substring(1));const T=b.split("-");T.length<3||W.push({RF:T[0],platform:T[1],deviceVersion:T[2],xC:M})}return W}; WGL=function(M){return BKJ(M).map(({RF:W,deviceVersion:b,xC:T})=>({deviceInterface:MHy[azJ[W]]||0,deviceVersion:b||"",isSleeping:T}))}; g.ap=function(M,W,b,T){return new DQ(g.mh[M]||0,g.mh[W]||0,b,T)}; nb=function(M){if(EV&&M.sB)return!1;const W=g.mh.auto;return M.V===W&&M.Z===W}; UV=function(M){return yg[M.Z||M.V]||"auto"}; bTq=function(M,W){W=g.mh[W];return M.V<=W&&(!M.Z||M.Z>=W)}; jcL=function(M,W,b,T,q,X,G){if(M.V)return M.V;const V={},J=new Set,B={};if(Cb(T)){for(var D in T.Z){if(!T.Z.hasOwnProperty(D))continue;M=T.Z[D];B[M.info.Qz]=[M.info]}return B}D=T4P(W,T,V);X&&q({aftsrt:kb(D)});const a={};for(const E of Object.keys(D)){const n=E;for(const C of D[n]){const l=C.itag,N=`${n}_${Number(C.video?.fps||0)}_${!!C.audio?.V}`;if(a.hasOwnProperty(N)){a[N]===!0?B[n].push(C):V[l]=a[N];continue}const R=Kb(W,C,b,T.isLive,J);R!==!0?(G.add(n),V[l]=R,R==="disablevp9hfr"&&(a[N]="disablevp9hfr")): (B[n]=B[n]||[],B[n].push(C),a[N]=!0)}}X&&q({bfflt:kb(B)});for(const E in B){if(!B.hasOwnProperty(E))continue;T=E;B[T]&&B[T][0].OO()&&(B[T]=B[T],B[T]=qBL(W,B[T],V),B[T]=XWp(B[T],V))}X&&Object.keys(V).length>0&&q({rjr:$B(V)});for(const E of J.values())(W=b.B.get(E))&&--W.Wy;X&&q({aftflt:kb(B)});M.V=g.H$(B,E=>!!E.length); return M.V}; kFq=function(M,W,b,T,q,X,G){var V=W.Z||!!q;const J=V&&W.vP?X:void 0;var B=new Set;let D=jcL(M,W,b,T,X,V,B);T.A()&&(D=GFJ(b,D,q,V,X,W),V&&X({enflt:kb(D)}));W.Ds=VHQ(D,W);q=qa=>!!D[qa]; var a=JPg(W);b=[];for(var E of Object.values(D))E?.length&&E[0].s1()&&b.push(...E);if(Cb(T))return X=g.pt(Object.values(D),qa=>!!qa.length&&!!qa[0].audio),V=g.pt(Object.values(D),qa=>!!qa.length&&!!qa[0].video),X&&V||$s(),MG(new v_(V,X,J,b)); E=D.a;var n=!1;W.L3&&a[0]!=="a"&&B4t(E)&&(a.unshift("a"),n=!0);V&&(X({audioPrefOrder:a.join("_")}),X({preferHighQualityAudio:W.L3}),X({forcedAacForHqa:n}));E=[];if(W.cP){a=g.et(a,q);n=new Set;for(var C of a){var l=D[C];const qa=new Set;for(var N of l)if(l=N.r9?.id)n.has(l)?qa.has(l)&&E.push(N):(qa.add(l),n.add(l),E.push(N))}if(E.length===0){if(a.length===0)return V&&X({noaudio:1}),$s();E=D[a[0]]}}else{E=g.pt(a,q);if(!E)return V&&X({noaudio:1}),$s();E=D[E]}D["9"]&&D.h&&T.Me&&!W.xk&&(V&&X({dltvp9:1}), delete D["9"]);if(G){V&&X({bfsflt:kb(D),bfsflta:mT(M)});W.lV?M.Z=DHt(B,M.Z):M.Z.clear();V&&X({bfsfltb:mT(M)});for(var R in D){if(!D.hasOwnProperty(R))continue;G=R;if(!(G==="f"||W.qf===0&&akG.has(G)))for(var f of D[G])W.lV?EnP(G,f,M.Z):nnl(M,G,f)}V&&X({aftsflt:mT(M)})}R=D["1h"]?"1h":"1";M=D["9h"]?"9h":"9";G=D[R];B=D["2"];C=D[M];G&&G.length&&(W.V.highestAv1Resolution=G[G.length-1].video.qualityOrdinal);C&&C.length&&(W.V.highestVp9Resolution=C[C.length-1].video.qualityOrdinal);f=[];N=[];if(W.x_&&B)f= B,N=["2"];else if(W.A5&&G)f=G,N=[R],X({forceAv1:R});else if(W.D&&!W.cM){N=yPp(T)?D["1h"]||D["9h"]?["1h","9h"]:["9","h"]:["1","9","h"];V&&X({newhybpref:N.join(".")});for(var x of N)f=f.concat(D[x]).filter(qa=>qa)}else W.AD>0&&C&&G&&(N=[R, M],f=G.concat(C).filter(qa=>qa)); if(f.length&&!W.cM){Lb(f,N);if(V){V=[];for(var A of f)V.push(A.itag);X({hbdfmt:V.join(".")})}return MG(new v_(f,E,J,b))}A=UHg(W);A=g.pt(A,q);if(!A){if(D[R])return X=D[R],Lb(X),MG(new v_(X,E,J,b));V&&X({novideo:1});return $s()}A!=="1"&&A!=="1h"||!D[M]||(x=lu(D[A]),q=lu(D[M]),q>x?A=M:q===x&&CRL(D[M])&&(A=M));A==="9"&&D.h&&lu(D.h)>lu(D["9"])&&(A="h");W.EY&&T.isLive&&A==="("&&D.H&&lu(D["("])<1440&&(A="H");V&&X({vfmly:tD(A)});W=D[A];if(!W.length)return V&&X({novfmly:tD(A)}),$s();Lb(W);return MG(new v_(W, E,J,b))}; KGt=function(M,W,b,T,q,X,G,V=!1){if(W.WP&&G&&G.length>1&&!(W.AD>0||W.D)){const a=W.Z||!!q,E=a&&W.vP?X:void 0,n=T4P(W,T),C=[],l=[],N={};for(let R=0;R=b.video?.height)||(V=b.itag,W=G?G:{itag:V,Qz:W,s1:X},X?W.numChannels=b.audio.numChannels:(X=b.video,W.maxWidth=X?.width,W.maxHeight=X?.height,W.maxFramerate=T,W.maxBitrateBps=b.sB*8,W.fS=X?.isHdr()),M.Z.set(q,W))}; VHQ=function(M,W){const b=!(!M.m&&!M.M),T=!(!M.mac3&&!M.MAC3),q=!(!M.meac3&&!M.MEAC3);M=!(!M.i&&!M.I);W.Y9=M;return b||T||q||M}; CRL=function(M){for(const W of M)if(W.itag&&vng.has(W.itag))return!0;return!1}; B4t=function(M){for(const W of M)if(W.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; tD=function(M){switch(M){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return M}}; kb=function(M){const W=[];for(const b in M){if(!M.hasOwnProperty(b))continue;const T=b;W.push(tD(T));for(const q of M[T])W.push(q.itag)}return W.join(".")}; GFJ=function(M,W,b,T,q,X){const G={},V={};g.NE(W,(J,B)=>{J=J.filter(D=>{const a=D.itag;if(!D.contentProtection)return V[a]="noenc",!1;if(X.OY&&D.Qz==="(h"&&X.Zs)return V[a]="lichdr",!1;if(!M.A&&D.Qz==="1e")return V[a]="noav1enc",!1;if(D.Qz==="("||D.Qz==="(h"){if(M.V&&b&&b.flavor==="widevine"){var E=D.mimeType+"; experimental=allowed";(E=!!D.contentProtection[b.flavor]&&!!b.V[E])||(V[a]=D.contentProtection[b.flavor]?"unspt":"noflv");return E}if(!ZQ(M,iS.CRYPTOBLOCKFORMAT)&&!M.sY||M.O)return V[a]=M.O? "disvp":"vpsub",!1}return b&&D.contentProtection[b.flavor]&&b.V[D.mimeType]?!0:(V[a]=b?D.contentProtection[b.flavor]?"unspt":"noflv":"nosys",!1)}); J.length&&(G[B]=J)}); T&&Object.entries(V).length&&q({rjr:$B(V)});return G}; XWp=function(M,W){const b=cy(M,(T,q)=>q.video.V()?Math.min(T,q.video.width):T,Infinity); b{if(T.video.V()||T.video.width{if(T.itag!=="299")return!0;W[T.itag]="ps3hfr1080";return!1})); return M}; qBL=function(M,W,b){return W=W.filter(T=>{if(T.video.qualityOrdinal<=M.oT)return!0;b[T.itag]="maxquality";return!1})}; T4P=function(M,W,b){const T={};for(const q in W.Z){if(!W.Z.hasOwnProperty(q))continue;const X=W.Z[q].info;if(M.W&&X.video&&X.video.qualityOrdinalMath.max(W,b.video.qualityOrdinal),0)}; Kb=function(M,W,b,T=!1,q=new Set){if(W.Qz==="")return"unkn";if((W.itag==="304"||W.itag==="266")&&M.O)return"blk2khfr";if(M.C&&W.video&&W.video.qualityOrdinal>M.C)return`max${M.C}`;if(M.wK&&W.Qz==="h"&&W.video&&W.video.qualityOrdinal>1080)return"blkhigh264";if(W.Qz==="(h"&&!b.C)return"enchdr";if(T&&TDl(W)&&!M.An)return"blk51live";if((W.Qz==="MAC3"||W.Qz==="mac3")&&!M.A)return"blkac3";if((W.Qz==="MEAC3"||W.Qz==="meac3")&&!M.S)return"blkeac3";if(W.Qz==="M"||W.Qz==="m")return"blkaac51";if((W.Qz==="so"|| W.Qz==="sa")&&!M.gK)return"blkamb";if(!M.OY&&b1S(W)&&(!b.A||W.Qz!=="1e"))return"cbc";if(!b.A&&b1S(W)&&W.Qz==="1e")return"cbcav1";if((W.Qz==="i"||W.Qz==="I")&&!M.d9)return"blkiamf";if(M.XX&&W.audio?.V===!0)return"blkvbcabr";if(M.Lp&&(W.Qz==="1"||W.Qz==="1h"||b.A&&W.Qz==="1e")&&W.video?.qualityOrdinal&&W.video?.qualityOrdinal>M.Lp)return"av1cap";T=b.B.get(W.Qz);if(!M.bV&&T&&T.Wy>0)return q.add(W.Qz),"byerr";if(W.video?.V()){if(!b.Zs&&!ZQ(b,iS.FRAMERATE))return"capHfr";if(M.jT&&W.video.qualityOrdinal>= 4320)return"blk8khfr";if(W.A()&&M.s2&&W.contentProtection&&W.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(M.sB&&W.sB>M.sB)return"ratecap";if(M.sY>0&&W.OO()&&W.video.height>M.sY)return"mvhcap";M=mHl(b,W);return M!==!0?M:!0}; Lb=function(M,W=[]){g.v$(M,(b,T)=>{const q=T.sB-b.sB;if(!b.OO()||!T.OO())return q;let X=T.video.height*T.video.width-b.video.height*b.video.width;!X&&W&&W.length>0&&(b=W.indexOf(b.Qz)+1,T=W.indexOf(T.Qz)+1,X=b===0||T===0?T||-1:b-T);X||(X=q);return X})}; LGl=function(M,W){if(W>M.Y_())M.segments=[];else{var b=wG(M.segments,T=>T.Kp>=W,M); b>0&&M.segments.splice(0,b)}}; Ip=function(M){const W=M.data.getUint8(M.offset+M.Z);M.Z+=1;return W}; NY=function(M){const W=M.data.getUint16(M.offset+M.Z);M.Z+=2;return W}; H_=function(M){const W=M.data.getInt32(M.offset+M.Z);M.Z+=4;return W}; fb=function(M){const W=M.data.getUint32(M.offset+M.Z);M.Z+=4;return W}; Rp=function(M){var W=M.data;var b=M.offset+M.Z;W=W.getUint32(b)*4294967296+W.getUint32(b+4);M.Z+=8;return W}; rW=function(M,W=NaN){let b;if(isNaN(W))b=M.size;else for(b=M.Z;b1?Math.ceil(q*W):Math.floor(q*W))}M.skip(1);b=Ip(M)<<16|NY(M);if(b&256){T=b&1;q=b&4;var X=b&512,G=b&1024,V=b&2048;b=fb(M);T&&M.skip(4);q&&M.skip(4);T=(X?4:0)+(G?4:0)+(V?4:0);for(q=0;q1?Math.ceil(G*W):Math.floor(G*W)),M.skip(T)}}}; AD=function(M,W){if(M.byteLength-W<8)return!1;var b=M.getUint32(W);if(b<8||M.byteLength-W122)return!1}return!0}; zm=function(M,W){const b=M.getUint32(W),T=M.getUint32(W+4);return new Rky(M,W,b,T)}; g.P_=function(M){const W=M.data.getUint8(M.dataOffset)?20:12;return M.data.getUint32(M.dataOffset+W)}; eX=function(M){M=new DataView(M.buffer,M.byteOffset,M.byteLength);return(M=g.OV(M,0,1836476516))?g.P_(M):NaN}; SX=function(M){return M===1701082227||M===1836019558||M===1836019574||M===1835297121||M===1835626086||M===1937007212||M===1953653094||M===1953653099||M===1836475768}; xHg=function(M){var W=g.OV(M,0,1937011556);if(!W)return null;W=uu(M,W.dataOffset+8,1635148593)||uu(M,W.dataOffset+8,1635135537);if(!W)return null;var b=uu(M,W.dataOffset+78,1936995172),T=uu(M,W.dataOffset+78,1937126244);if(!T)return null;W=null;if(b)switch(b.skip(4),Ip(b)){default:W=0;break;case 1:W=2;break;case 2:W=1;break;case 3:W=255}let q=b=null,X=null;if(T=uu(M,T.dataOffset,1886547818)){const G=uu(M,T.dataOffset,1886546020);let V=uu(M,T.dataOffset,2037673328);if(!V&&(V=uu(M,T.dataOffset,1836279920), !V))return null;G&&(G.skip(4),b=H_(G)/65536,X=H_(G)/65536,q=H_(G)/65536);M=lkP(V);M=new DataView(M.buffer,M.byteOffset+8,M.byteLength-8);return new rPs(W,b,X,q,M)}return null}; g.dW=function(M){if(M.data.getUint8(M.dataOffset)){var W=M.data;M=M.dataOffset+4;W=W.getUint32(M)*4294967296+W.getUint32(M+4)}else W=M.data.getUint32(M.dataOffset+4);return W}; FGQ=function(M){M=new Rky(M.data,M.offset,M.size,M.type,M.V);var W=Ip(M);M.skip(7);const b=fb(M);let T;W===0?(W=fb(M),T=fb(M)):(W=Rp(M),T=Rp(M));M.skip(2);const q=NY(M),X=[],G=[];for(let V=0;V=2)return null;const q=new DataView(W.buffer,W.byteOffset,W.length),X=g.OV(q,0,1937011556);if(!X)return null;W=q.getUint32(X.dataOffset+8);T=q.getUint32(X.dataOffset+12);if(T!==1701733217&&T!==1701733238)return null;T=new zkt(M.byteLength+W);xb(T,M,0,b.offset+12);T.data.setInt32(T.offset,2);T.offset+=4;xb(T,M,b.offset+16,b.size-16);xb(T,q,q.byteOffset+X.dataOffset+8,W);xb(T,M,b.offset+b.size,M.byteLength- (b.offset+b.size));b=[1836019574,1953653099,1835297121,1835626086,1937007212,1937011556];for(const G of b)b=g.OV(M,0,G),T.data.setUint32(b.offset,b.size+W);M=g.OV(T.data,0,1953654136);T.data.setUint32(M.offset+16,2);return T.data}; SBP=function(M){var W=g.OV(M,0,1937011556);if(!W)return null;var b=M.getUint32(W.dataOffset+12);if(b!==1701733217&&b!==1701733238)return null;W=uu(M,W.offset+24+(b===1701733217?28:78),1936289382);if(!W)return null;b=uu(M,W.offset+8,1935894637);if(!b||M.getUint32(b.offset+12)!==1667392371)return null;W=uu(M,W.offset+8,1935894633);if(!W)return null;W=uu(M,W.offset+8,1952804451);if(!W)return null;b=new Uint8Array(16);for(let T=0;T<16;T++)b[T]=M.getInt8(W.offset+16+T);return b}; Yb=function(M,W,b){var T=new Qg(b);if(!gW(T,M))return!1;T=sV(T);if(!wW(T,W))return!1;for(M=0;W;)W>>>=8,M++;W=T.start+T.pos;const q=pb(T,!0);T=M+(T.start+T.pos-W)+q;T=T>9?OTS(T-9,8):OTS(T-2,1);M=W-M;b.setUint8(M++,236);for(W=0;Wb;q++)b=b*256+qp(M),T*=128;return W?b-T:b}; $m=function(M){return M.pos>=M.Z.byteLength}; Mp=function(M){const W=pb(M,!0);let b=qp(M);for(let T=1;T0){const T=Az(3,W.substring(b+1));g.NE(T,function(q,X){this.set(X,q)},M); W=W.substring(0,b)}W=rk(4,W);g.NE(W,function(T,q){this.set(q,T)},M)}; gny=function(M){const W=M.eH.WF(),b=[];g.NE(M.Z,(q,X)=>{b.push(`${X}=${q}`)}); if(!b.length)return W;const T=b.join("&");M=Az(8,M.eH)?"&":"?";return W+M+T}; var scp=function(M){return Az[y[0]](this,11,M)}; GU=function(M,W){M[W]||(M[W]=new wWp);return M[W]}; VU=function(M){M.S=(0,g.u)();M.started=0;M.timedOut=0;M.Z=0}; J5=function(M,W){let b=M.started+M.Z*4;W&&(b+=M.B);b=Math.max(0,b-3);return 1.6**b}; pWg=function(M,W,b){if(hz(19,M.Z))return!1;var T=GU(b,Bh(12,M.Z));if(T.timedOut<1&&T.Z<1)return!1;T=T.timedOut+T.Z;M=D5(M,W);b=GU(b,Bh(4,M));return b.timedOut+b.Z+00))return M}; KO=function(M,W){return new CO(M,M+W-1)}; vh=function(M){if(!M)return new CO(0,0);var W=Number(M.start);M=Number(M.end);if(!isNaN(W)&&!isNaN(M)&&(W=new CO(W,M),W.length>0))return W}; $us=function(M){M.length===1||g.sq(M,b=>!!b.range); for(var W=1;W=W.range.start+W.Z&&M.range.start+M.Z+M.V<=W.range.start+W.Z+W.V:M.Kp===W.Kp&&M.Z>=W.Z&&(M.Z+M.V<=W.Z+W.V||W.B)}; BBt=function(M,W){return M.Tv!==W.Tv?!1:M.X()&&W.type===3&&M.Tv.Z()?(M=M.Tv.BY(M),gG(M,b=>BBt(b,W))):M.Kp===W.Kp&&!!W.V&&W.Z+W.V>M.Z&&W.Z+W.V<=M.Z+M.V}; Hh=function(M,W){var b=W.Kp;M.W="updateWithSegmentInfo";M.Kp=b;if(M.startTime!==W.startTime||M.duration!==W.duration)M.startTime=W.startTime,M.duration=W.duration,bup(M)}; fO=function(M){return!lk(M.g9[M.g9.length-1])}; Rn=function(M){return M.g9[M.g9.length-1].X()}; g.rx=function(M,W,b){let T;b=M.Gr===null?M.Vc.Gr(W,b,M.g9[0].type):M.Gr;M.Z?(W=b?V_(M.Z,W.tE):M.Z,T=new an(W),T.get("alr")||T.set("alr","yes"),M.V&&QcS(T,M.V)):/http[s]?:\/\//.test(M.V)?T=new an(new g.LJ(M.V)):(T=Ee(M.Vc,b,W),M.V&&QcS(T,M.V));(W=M.range)?T.set("range",W.toString()):M.g9[0].Tv.D()&&M.g9.length===1&&M.g9[0].Z&&T.set("range",`${M.g9[0].Z}-`);M.requestId&&T.set("req_id",M.requestId);isNaN(M.qZ)||T.set("headm",M.qZ.toString());isNaN(M.S)||T.set("mffa",`${M.S}ms`);M.urlParams&&g.NE(M.urlParams, (q,X)=>{T.set(X,q)}); return T}; Dus=function(M){if(M.range)return M.B;M=M.g9[0];return Math.round(M.D*M.Tv.info.sB)}; aRL=function(M,W){return Math.max(0,M.g9[0].A-W)}; EXs=function(M,W){for(const b of M.g9)if(b.type===3&&W>=b.A&&W<=b.S)return!0;return!1}; xm=function(M,W,b){for(;M;M=M.parentNode){if(!M.attributes||b&&M.nodeName!==b)continue;const T=M.getAttribute(W);if(T)return T}return""}; F4=function(M,W){for(;M;M=M.parentNode){const b=M.getElementsByTagName(W);if(b.length>0)return b[0]}return null}; nXJ=function(M){if(!M)return 0;const W=M.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return W?(Number(W[2])|0)*3600+(Number(W[4])|0)*60+(Number(W[6])|0):Number(M)|0}; y1s=function(M){return M.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?`${M}Z`:M}; Uus=function(M){const W=M.B;M.B=[];return W}; C9Q=function(M){M.Z||(M.Z=new ik);return M.Z}; kaL=function(M,W){M.V[W]||(M.V[W]=new ik);return M.V[W]}; Knt=function(M,W){M.B[W]||(M.B[W]=new ik);return M.B[W]}; vXp=function(M,W){const b=[];W=Array.from(W.getElementsByTagName("SegmentTimeline"));for(const T of W){W=T.parentNode.parentNode;let q=null;W.nodeName==="Period"?q=C9Q(M):W.nodeName==="AdaptationSet"?(W=W.getAttribute("id")||W.getAttribute("mimetype")||"",q=kaL(M,W)):W.nodeName==="Representation"&&(W=W.getAttribute("id")||"",q=Knt(M,W));if(q==null)return;q.update(T);g.J7(b,Uus(q))}g.J7(M.A,b);JLq(M.A,T=>T.startSecs*1E3+T.Z)}; muJ=function(M){M.Z&&(M.Z.Z=[]);g.NE(M.V,W=>{W.Z=[]}); g.NE(M.B,W=>{W.Z=[]})}; h5=function(M,W){return KJ(M.segments,b=>W-b.Kp)}; Lna=function(M,W,b){const T=M.index.D(W),q=M.index.getStartTime(W);let X=M.index.getDuration(W);b?X=b=0:b=M.info.sB*X;return new A5([new Np(3,M,void 0,"otfCreateRequestInfoForSegment",W,q,X,0,b)],T)}; lRJ=function(M,W){if(!M.index.isLoaded()){var b=[],T=W.S;W=W.W.split(",").filter(B=>B.length>0); var q=0,X=0,G=0,V=/^(\d+)/,J=/r=(\d+)/;for(let B=0;B0&&(M.Z=Math.min(M.Z+b,10),M.V=q),M.Z>0?(M.Z--, M=!0):M=!1,M?(typeof T==="function"&&(T=T()),console.log(`${"plyr"}.${W}`,T)):(T=(HuS.get(W)??0)+1,HuS.set(W,T),T%100===1&&console.warn("plyr",`${"plyr"}.${W} is chatty, dropping logs.`)))}; Ph=function(M){if(!M.W){if(g.FH(M.info.Tv.info)){var W=g.Oe(M);var b=uu(W,0,1836019574);if(b){b=b.offset+b.size;var T=new Uint8Array(b);T.set(new Uint8Array(W.buffer,W.byteOffset,b));W=T}else W=null}else W=dHp(new Qg(g.Oe(M)));W&&(M.info.Tv.V=W,M.W=!0)}}; g.Oe=function(M){return Wyp(M.V)}; OuG=function(M,W,b,T,q,X,G){var V;M+5>>4||(V=b(q,X,G));if(!((M^17)>>3))a:{var J=W[y[23]](y[5]),B=[-1052882149,240968203,424016984,385751705,fRP,2134491932,1211706384,-1110180237,mat,-2071687104,-2059326490,R3S,w6t,-154982427,-542435248,1270431625,r1G,1848875421,2119202741,J,-601325368,-560698642,-2114939219,-637628032,1930101584,-865518625,y[45],piy,null,-2110626138,-494231802,-128226890,xua,-1806337629,575817178,326495470,2084233059,1714690910,494115752,438919972,Fny,2021432074,iuS,2093136517,h3p, aEq,962561558,104629525,212759098,1848875421,A1l,2091576622,747004529,y[36],1465894122,null,J,scp,-1800868320,2002980720,1472455741,null,1504803852,1870764847,z3t,-883038660,-507145941,-1671846977,1982394258,WHL,212759098,529293750,2084233059,y[59],1816917484,J,-162202998,-1494085885,-1866116991,26685060,764969737,272400775,-612009560,1538553513,-20557280,uEq,-2005553091];B[28]=B;B[55]=B;B[61]=B;if(typeof S3l===y[30]){V=W;break a}try{try{B[39]!=8&&(0,B[40])(((0,B[8])((0,B[85])(B[19],B[34]),B[85], B[61],B[9]),B[60])(B[67]),B[64],(0,B[56])((0,B[59])(B[31],B[22]),B[6],B[22],B[13]),B[36],B[48])}catch(a){(0,B[64])(B[83],B[41])}finally{B[23]>7&&(B[69]==0||((0,B[6])(B[16],B[61]),void 0))&&(0,B[3])(B[36],(0,B[80])(),B[14]),B[77]===-1&&((((0,B[56])(((0,B[3])(B[36],(0,B[52])(),B[14]),B[64])(B[22],B[35]),B[60],B[22]),B[56])((0,B[3])(B[17],(0,B[80])(),B[14]),B[64],B[67],B[81])===((0,B[64])(B[16],B[28]),((0,B[3])(B[67],(0,B[30])(),B[14]),B[3])(B[17],(0,B[11])(),B[14]),B[56])((0,B[64])(B[17],B[55]),B[5], B[16]),(0,B[64])(B[67],B[new Date(y[41])/1E3]),B[64])(B[22],B[47]),[])||((((0,B[56])((0,B[56])((0,B[64])(B[36],B[63]),B[46],B[16],B[32]),B[24],B[35],B[69]),(0,B[77])(B[57],B[35]),B[24])(B[34],B[62]),B[74])(((0,B[19])((0,B[23])(B[54]),B[82],((0,B[43])(B[34],B[2]),(0,B[78])(B[68],B[52])),B[68],B[34]),B[4])(B[31],B[49]),B[78],B[12],B[22]),B[4])(B[85],B[54])}try{var D=$9(3,B,Date)}catch(a){B[46]!==-1&&(B[45]===3&&(((((0,B[60])(B[new Date(y[27])/1E3],B[68]),B[65])(B[17],B[38]),(0,B[57])((0,B[57])((0,B[65])(B[37], B[82]),B[60],B[1],B[68]),B[7],B[84],B[77]),(0,B[4])(B[new Date(y[40])/1E3],(0,B[81])(),B[15]),B[4])(B[18],(0,B[12])(),B[15]),(0,B[2])((0,B[4])(B[18],(0,B[53])(),B[15]),B[65],(0,B[65])(B[68],B[13]),B[37],B[8]),B[57])((0,B[65])(B[68],B[73]),B[7],B[37],B[28]),1)||(((((0,B[2])((0,B[6])(B[37]),B[47],(0,B[60])(B[19],B[68]),B[84],B[30]),B[51])(B[83],B[new Date(y[60])/1E3]),B[82])(B[59],(0,B[3])(),B[6]),B[17])(B[8],B[34]),(0,B[72])(B[62],B[47]),B[27])((((0,B[85])(B[12],B[62]),B[85])(B[66],B[6]),B[51])(B[48], B[41]),B[27],(0,B[77])(B[79],B[85]),B[85],B[56]))}}catch(a){V=y[81]+W;break a}V=J[y[24]](y[5])}return V}; P9t=function(M,W){W=Math.min(W,M.info.V);const {V2:b,eh:T}=M.V.split(W),q=new eV(new Np(M.info.type,M.info.Tv,M.info.range,M.info.W,M.info.Kp,M.info.startTime,M.info.duration,M.info.Z,W,!1,M.info.Dd,M.info.clipId),b);q.A=M.A;q.B=M.B;W=new eV(new Np(M.info.type,M.info.Tv,M.info.range,M.info.W,M.info.Kp,M.info.startTime,M.info.duration,M.info.Z+W,M.info.V-W,M.info.B,M.info.Dd,M.info.clipId),T);W.A=M.A;W.B=M.B;return[q,W]}; g.dx=function(M){g.FH(M.info.Tv.info)||M.info.Tv.info.dU();if(M.B!==-1)return M.B;if(M.Z&&IkP(M.Z))return M.B=IkP(M.Z),M.B;if(g.FH(M.info.Tv.info)){var W=g.Oe(M);var b=M.info.Tv.V,T=NaN;let q=NaN,X=0;for(;AD(W,X);){const G=zm(W,X);G.type===1936286840?q=G.data.getUint32(G.dataOffset+8):G.type===1836476516?q=g.P_(G):G.type===1952867444&&isNaN(T)&&(T=g.dW(G));X=SX(G.type)?X+8:X+G.size}!q&&b&&(q=eX(b));W=T/q}else W=new Qg(g.Oe(M)),b=M.S?W:new Qg(new DataView(M.info.Tv.V.buffer)),T=X4(b),b=W.pos,W.pos= 0,jV(W)?wW(W,231)?(T=Mp(W)*T/1E9,W.pos=b,W=T):(W.pos=b,W=NaN):(W.pos=b,W=NaN);M.B=W||M.info.A;return M.B}; e3G=function(M,W){g.FH(M.info.Tv.info)||M.info.Tv.info.dU();M.B=W;if(g.FH(M.info.Tv.info)){var b=g.Oe(M);M=M.info.Tv.V;var T=NaN,q=NaN;let J=0;for(;AD(b,J);){const B=zm(b,J);isNaN(T)&&(B.type===1936286840?T=B.data.getUint32(B.dataOffset+8):B.type===1836476516&&(T=g.P_(B)));if(B.type===1952867444){!T&&M&&(T=eX(M));var X=g.dW(B);isNaN(q)&&(q=Math.round(W*T)-X);var G=B;X+=q;if(G.data.getUint8(G.dataOffset)){var V=G.data;G=G.dataOffset+4;V.setUint32(G,Math.floor(X/4294967296));V.setUint32(G+4,X&4294967295)}else G.data.setUint32(G.dataOffset+ 4,X)}J=SX(B.type)?J+8:J+B.size}return!0}b=new Qg(g.Oe(M));M=M.S?b:new Qg(new DataView(M.info.Tv.V.buffer));T=X4(M);M=b.pos;b.pos=0;if(jV(b)&&wW(b,231))if(q=pb(b,!0),W=Math.floor(W*1E9/T),Math.ceil(Math.log(W)/Math.log(2)/8)>q)W=!1;else{for(T=q-1;T>=0;T--)b.Z.setUint8(b.pos+T,W&255),W>>>=8;b.pos=M;W=!0}else W=!1;return W}; duQ=function(M,W){M.timestampOffset>0&&(W-=M.timestampOffset);var b=g.dx(M)+W;e3G(M,b);M.timestampOffset=W}; on=function(M){g.FH(M.info.Tv.info)||M.info.Tv.info.dU();if(M.Z&&M.info.type===6)return M.Z.WO;if(g.FH(M.info.Tv.info)){var W=g.Oe(M);var b=0;W=g.op(W,1936286840);for(var T of W)W=FGQ(T),b+=W.NB[0]/W.timescale;b=b||NaN;if(!(b>=0))a:{b=g.Oe(M);T=M.info.Tv.V;let a=W=0;for(var q=0;AD(b,W);){const E=zm(b,W);if(E.type===1836476516)a=g.P_(E);else if(E.type===1836019558){!a&&T&&(a=eX(T));if(!a){b=NaN;break a}var X=uu(E.data,E.dataOffset,1953653094),G=X;X=a;var V=uu(G.data,G.dataOffset,1952868452);G=uu(G.data, G.dataOffset,1953658222);var J=H_(V);H_(V);J&2&&H_(V);V=J&8?H_(V):0;var B=H_(G),D=B&1;J=B&4;const n=B&256,C=B&512,l=B&1024;B&=2048;const N=fb(G);D&&H_(G);J&&H_(G);D=0;for(let R=0;Rg.pg(W,b,4,1E3),M,{format:"RAW", method:"GET",withCredentials:!0})}; g.$Vg=function(M){let W;M.responseType&&M.responseType!=="text"?M.responseType==="arraybuffer"&&(W=vk(new Uint8Array(M.response))):W=M.responseText;return!W||W.length>2048?"":W.indexOf("https://")===0?W:""}; gx=function(M,W,b){W.match(MMG);return M(W,b).then(T=>{const q=g.$Vg(T.xhr);return q?gx(M,q,b):T.xhr})}; WKq=function(M){return gG(M,W=>"FORMAT_STREAM_TYPE_OTF"===W.type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; TOq=function(M,W,b=0,T){T=new g.se("",T,!1);T.duration=b||0;for(const q of M){M=wx(q,W,T.duration);const {ZR:X,s:G,L9:V}=Ht(35,q);(b=t7(X||q.url||"",V,G))&&(M.streamType==="FORMAT_STREAM_TYPE_OTF"?pO(T,new bBQ(b,M)):pO(T,new WR(b,M,vh(q.initRange),vh(q.indexRange))))}T.isOtf=!0;return T}; q2J=function(M,W,b=0,T){T=new g.se("",T.experiments,!1);T.duration=b||0;for(const q of M){M=wx(q,W,T.duration);b=vh(q.initRange);const X=vh(q.indexRange),{ZR:G,s:V,L9:J}=Ht(3,q),B=t7(G||q.url||"",J,V);B&&pO(T,new WR(B,M,b,X))}return T}; wx=function(M,W,b=0){let T=M.mimeType||"";var q=M.itag;var X=M.xtags;q=q?q.toString():"";X&&(q+=`;${X}`);X=q;if(Ie(T)){var G=M.width||640;q=M.height||360;var V=M.fps,J=M.qualityLabel;const l=M.qualityOrdinal,N=M.colorInfo,R=M.projectionType;var B;M.stereoLayout&&(B=XZQ[M.stereoLayout]);const f=pFL(M)||void 0;var D;N?.primaries&&(D=jDP[N.primaries]||void 0);G=new HE(G,q,V,R,B,void 0,J,l&&GXt[l],f,D);T=be(T,G,T0[M.itag||""]);qs&&(T+="; enableflushduringseek=true");XJ&&(T+="; enableresetaudiodecoder=true")}let a; if(Zw(T)){var E=M.audioSampleRate;B=M.audioTrack;E=new Nm(E?+E:void 0,M.audioChannels,M.spatialAudioType,M.isDrc,M.loudnessDb,M.trackAbsoluteLoudnessLkfs,M.audioQuality||"AUDIO_QUALITY_UNKNOWN",M.isVb);B&&(D=B.displayName,q=B.id,V=B.audioIsDefault,B=B.isAutoDubbed,D&&(a=new g.j0(D,q||"",!!V,!!B)))}let n;M.captionTrack&&(B=M.captionTrack.displayName,D=M.captionTrack.vssId,q=M.captionTrack.languageCode,V=M.captionTrack.kind,J=M.captionTrack.id,B&&D&&q&&(n=new VMQ(B,D,q,V,M.xtags,J)));B=Number(M.bitrate)/ 8;D=Number(M.contentLength);q=Number(M.lastModified);J=M.drmFamilies;V=M.type;M=Number(M.approxDurationMs);let C;if(W&&J){C={};for(const l of J)(J=G0[l])&&(C[J]=W[J])}return new fW(X,T,{audio:E,video:G,r9:a,contentProtection:C,sB:B,LZ:b&&D?D/b:0,contentLength:D,lastModified:q,captionTrack:n,streamType:V,approxDurationMs:M})}; Jsp=function(M){return gG(M,W=>"FORMAT_STREAM_TYPE_OTF"===W.stream_type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; BOG=function(M,W,b=0,T){T=new g.se("",T,!1);T.duration=b||0;for(const q of M)if(M=V3(q,W,T.duration),b=t7(q.url,q.sp,q.s))if(M.streamType==="FORMAT_STREAM_TYPE_OTF")pO(T,new bBQ(b,M));else{const X=km(q.init),G=km(q.index);pO(T,new WR(b,M,X,G))}T.isOtf=!0;return T}; nDp=function(M,W,b=0,T){T=new g.se("",T?.experiments,!1);T.duration=b||0;for(const q of M){M=V3(q,W,T.duration);b=km(q.init);const X=km(q.index),G=t7(q.url,q.sp,q.s);G&&pO(T,new WR(G,M,b,X))}return T}; V3=function(M,W,b=0){let T=M.type;var q=M.itag;var X=M.xtags;X&&(q=M.itag+";"+X);if(Ie(T)){var G=(M.size||"640x360").split("x");G=new HE(+G[0],+G[1],+M.fps,M.projection_type,+M.stereo_layout,void 0,M.quality_label,+M.quality_ordinal,M.eotf,M.primaries);T=be(T,G,T0[M.itag]);qs&&(T+="; enableflushduringseek=true");XJ&&(T+="; enableresetaudiodecoder=true")}let V,J;Zw(T)&&(V=new Nm(+M.audio_sample_rate||void 0,+M.audio_channels||0,M.spatial_audio_type,!!M.drc),M.name&&(J=new g.j0(M.name,M.audio_track_id, M.isDefault==="1",M.isAutoDubbed==="1")));let B;M.caption_display_name&&M.caption_vss_id&&M.caption_language_code&&(B=new VMQ(M.caption_display_name,M.caption_vss_id,M.caption_language_code,M.caption_kind,M.xtags,M.caption_id));X=Number(M.bitrate)/8;const D=Number(M.clen),a=Number(M.lmt);b=b&&D?D/b:0;let E;if(W&&M.drm_families){E={};for(const n of M.drm_families.split(","))E[n]=W[n]}return new fW(q,T,{audio:V,video:G,r9:J,contentProtection:E,sB:X,LZ:b,contentLength:D,lastModified:a,captionTrack:B, streamType:M.stream_type,approxDurationMs:Number(M.approx_duration_ms)})}; ysQ=function(M){switch(M){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"}}; UVJ=function(M){switch(M){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"}}; kXy=function(M,W,b){return CAS(new g.se(M,W,b),M)}; Cb=function(M){return g.RQ(M.Z,W=>hz(11,W.Vc.Z))}; yPp=function(M){return g.RQ(M.Z,W=>!!W.info.video&&W.info.video.isHdr())}; pO=function(M,W){M.Z[W.info.id]=W;M.B.set(Ue(W,M.Me),W)}; CAS=function(M,W=""){M.state=1;M.An=(0,g.u)();return Y3J(W||M.sourceUrl).then(b=>{if(!M.ST()){M.Iq=b.status;b=b.responseText;const q=new DOMParser;b=q$(q,Me(b),"text/xml").getElementsByTagName("MPD")[0];M.Zs=nXJ(xm(b,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(b.attributes)for(T of b.attributes)if(T.value==="http://youtube.com/yt/2012/10/10"){var T=T.name.split(":")[1];break b}T=""}M.C=T;M.isLive=M.Zs{let T; b instanceof sX&&(T=b.xhr,M.Iq=T.status);M.state=3;M.publish("loaderror");return Rk(T)})}; g.vDl=function(M){return g.RQ(M.Z,W=>tE(W.info.mimeType))}; mVL=function(M){return g.RQ(M.Z,W=>W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR":!1)}; LKt=function(M){return g.RQ(M.Z,W=>W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1)}; lrP=function(M){return g.RQ(M.Z,W=>W.info.video?W.info.video.projectionType==="MESH":!1)}; tMs=function(M){return g.RQ(M.Z,W=>W.info.video?W.info.video.stereoLayout===1:!1)}; ZBp=function(M){return rV(M.Z,W=>W.info.video?W.MK():!0)}; NOP=function(M,W){let b=xm(W,"id");b=b.replace(":",";");let T=xm(W,"mimeType");var q=xm(W,"codecs");T=q?`${T}; codecs="${q}"`:T;q=Number(xm(W,"bandwidth"))/8;const X=Number(F4(W,"BaseURL").getAttribute(M.C+":contentLength")),G=M.duration&&X?X/M.duration:0;if(Ie(T)){var V=Number(xm(W,"width")),J=Number(xm(W,"height")),B=Number(xm(W,"frameRate"));const C=ysQ(xm(W,M.C+":projectionType"));a:switch(xm(W,M.C+":stereoLayout")){case "layout_left_right":var D=1;break a;case "layout_top_bottom":D=2;break a; default:D=0}D=new HE(V,J,B,C,D)}if(Zw(T)){var a=Number(xm(W,"audioSamplingRate"));var E=Number(xm(W.getElementsByTagName("AudioChannelConfiguration")[0],"value"));V=UVJ(xm(W,M.C+":spatialAudioType"));a=new Nm(a,E,V);a:{J=xm(W,"lang")||"und";if(E=F4(W,"Role"))if(B=xm(E,"value")||"",g.z4(IrS,B)){E=`${J}.${IrS[B]}`;V=B==="main";M=xm(W,M.C+":langName")||`${J} - ${B}`;E=new g.j0(M,E,V);break a}E=void 0}}if(W=F4(W,"ContentProtection"))if(W.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var n= {};for(W=W.firstChild;W!=null;W=W.nextSibling){if(!(W instanceof Element))continue;if(!/SystemURL/.test(W.nodeName))continue;M=W.getAttribute("type");V=W.textContent;M&&V&&(n[M]=V.trim())}}else n=void 0;return new fW(b,T,{audio:a,video:D,r9:E,contentProtection:n,sB:q,LZ:G,contentLength:X})}; KKt=function(M){var W=M.Zs;isFinite(W)&&(J$(M)?M.refresh():(W=Math.max(0,M.An+W-(0,g.u)()),M.S||(M.S=new g.d9(M.refresh,W,M),g.t(M,M.S)),M.S.start(W)))}; J$=function(M){return M.isLive&&(0,g.u)()-M.An>=M.Zs}; HBq=function(M){M=M.Z;for(const W in M){const b=M[W].index;if(b.isLoaded())return b.Y_()+1}return 0}; BR=function(M){return M.KU?M.KU-(M.X||M.timestampOffset):0}; Dh=function(M){return M.AX?M.AX-(M.X||M.timestampOffset):0}; al=function(M){if(!isNaN(M.lV))return M.lV;var W=M.Z;for(var b in W){var T=W[b].index;if(T.isLoaded()&&!tE(W[b].info.mimeType)){W=0;for(b=T.UJ();b<=T.Y_();b++)W+=T.getDuration(b);W/=T.tJ();W=Math.round(W/.5)*.5;T.tJ()>10&&(M.lV=W);return W}if(M.isLive&&(T=W[b],T.WO))return T.WO}return NaN}; frJ=function(M,W){M=Or(M.Z,T=>T.index.isLoaded()); if(!M)return NaN;M=M.index;const b=M.UX(W);return M.getStartTime(b)===W?W:b49?"p60":W>32?"p48":""}`;W=Xu()[M];if(W!=null&&W>0)return W;W=Zh.get(M);if(W!=null&&W>0)return W;b=b?.get(M);return b!=null&&b>0?b:8192}; h$L=function(M,W=!1){o2p(W);cat(W);if(W){for(const b of Zh.keys())b.startsWith("1")||Zh.delete(b);for(const b of Ns.values())b.startsWith("1")||Ns.delete(b);for(const b of M.keys())b.startsWith("1")||M.delete(b)}else Zh.clear(),Ns.clear(),M.clear()}; uNS=function(M,{isOtf:W,LV:b,Ci:T,Pi:q,g7:X,L3:G,rZ:V,Sf:J,qf:B,disableAv1:D,oR:a}){const E=new Ast(M);if(M.jW()||M.j("html5_logging_format_selection"))E.Z=!0;E.MK=X;E.L3=G&&M.D;E.qf=B;g.Df("windows nt 5.1")&&!g.HR&&(E.cM=!0);if(X=b)X=g.ff(M)?z$L(M):!1;X&&(E.gK=!0);V&&(E.cM=!0,E.fv=!0);W&&!M.j("html5_otf_prefer_vp9")&&(E.cM=!0);M.playerStyle==="picasaweb"&&(W&&(E.cM=!1),E.O=!1);q&&(E.cM=!0);ZQ(M.S,iS.CHANNELS)&&(M.j("html5_enable_ac3")&&(E.A=!0),M.j("html5_enable_eac3")&&(E.S=!0),M.j("html5_enable_ac3_gapless")&& (E.BY=!0));M.j("html5_block_8k_hfr")&&(E.jT=!0);E.C=g.TO(M.experiments,"html5_max_selectable_quality_ordinal");E.W=g.TO(M.experiments,"html5_min_selectable_quality_ordinal");Rl&&(E.oT=480);if(T||b)E.O=!1;E.wK=!1;E.disableAv1=D;W=rp(M,E.V,void 0,E.disableAv1);W>0&&W<2160&&(cE()||M.j("html5_format_hybridization"))&&(E.V.supportsChangeType=+cE(),E.AD=W);W>=2160&&(E.yz=!0);E.Sf=J;E.xk=g.Mo||lt()&&!J?!1:!0;E.D=M.j("html5_format_hybridization");E.EY=M.j("html5_disable_encrypted_vp9_live_non_2k_4k");E.bV= a;return E}; rp=function(M,W={},b,T=!1){if(T)return W.disabled=1,0;if(ZQ(M.S,iS.AV1_CODECS)&&ZQ(M.S,iS.HEIGHT)&&ZQ(M.S,iS.BITRATE))return W.isCapabilityUsable=1,8192;T=1080;var q=navigator.hardwareConcurrency;q<=2&&(T=480);W.coreCount=q;if(q=g.TO(M.experiments,"html5_default_av1_threshold"))T=W["default"]=q;if(M=M.S.gK)W.mcap=M,T=Math.max(T,M);if(b){if(M=b.videoInfos.find(X=>X.Z())?.S?.powerEfficient)T=8192,W.isEfficient=1; b=b.videoInfos[0].video;q=Math.min(Il("1",b.fps),Il("1",30));W.perfCap=q;T=Math.min(T,q);b.isHdr()&&!M&&(W.hdr=1,T*=.75)}else b=Il("1",30),W.perfCap30=b,T=Math.min(T,b),b=Il("1",60),W.perfCap60=b,T=Math.min(T,b);return W.av1Threshold=T}; JPg=function(M){let W=["o","a","A"];M.qf===1&&(M.A&&(W=["mac3","MAC3"].concat(W)),M.S&&(W=["meac3","MEAC3"].concat(W)),M.d9&&(W=["i","I"].concat(W)));M.gK&&(W=["so","sa"].concat(W));!M.fv||M.BY||M.B||M.aT||W.unshift("a");M.B&&(W=(S2S[M.B]||[M.B]).concat(W));return W}; UHg=function(M){if(M.MK)return["f"];if(g.Df("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");let W=["9h","9","h","8"];M.FT&&W.push("1e");W=W.concat(["(h","(","H","*"]);M.yz&&(W.unshift("1"),W.unshift("1h"));M.cM&&W.unshift("h");M.X&&(W=(S2S[M.X]||[M.X]).concat(W));return W}; Z_=function(M,W,b,T,q,X){if((M<<1&7)==2){if(!(nX(W[y[11]])||W[y[11]][y[21]](y[32])||W[y[11]][y[21]](y[67])||W[y[11]][y[21]](y[82])))throw new g.EF(y[52],W[y[11]]);var G=g.wj(W[y[11]]);W[y[10]]=G[y[66]];W[y[13]]=G[y[17]]+(G[y[13]]!=null?`:${G[y[13]]}`:y[5]);var V=G[y[11]];V[y[21]](y[28])?(W[y[16]]=y[28],V=V[y[7]](14)):V[y[21]](y[37])?(W[y[16]]=y[37],V=V[y[7]](13)):V[y[21]](y[43])?(V=Bh(6,V,W),V=V[0]):(W[y[16]]=V,V=y[5]);var J=W[y[17]];W[y[17]]=rk(3,V);Object[y[35]](W[y[17]],Az(2,G[y[31]][y[44]]())); Object[y[35]](W[y[17]],J);W[y[17]][y[34]]===y[25]&&(delete W[y[17]][y[34]],W[y[16]]+=y[2]);W[y[11]]=y[5];W[y[39]]=y[5];W[y[31]]&&(G=xZ(8,W));var B=[]}if((M-7^14)>=M&&(M-6^4)>3>=2&&(M-4&6)<1&&(B=b(T,q,X));return B}; FJ=function(){const M=window;let W=M.MSMediaKeys;UL()&&!W&&(W=M.WebKitMediaKeys);return W&&W.isTypeSupported?W:null}; ie=function(M){return navigator.requestMediaKeySystemAccess?g.XH&&!g.EL()?Lc("45"):g.Mo||g.V8?M.FX("edge_nonprefixed_eme"):g.HR?Lc("47"):g.R_&&M.FX("html5_enable_safari_fairplay")?!1:!0:!1}; h$=function(M){return M.A?!1:!M.keySystemAccess&&!!FJ()&&M.keySystem==="com.microsoft.playready"}; A$=function(M){return M.keySystem==="com.microsoft.playready"}; z0=function(M){return!M.keySystemAccess&&!!FJ()&&M.keySystem==="com.apple.fps.1_0"}; ue=function(M){return M.keySystem==="com.youtube.fairplay"}; g.S0=function(M){return M.flavor==="fairplay"}; OBg=function(M,W,b,T){const q=nU(),X=(b=q||b&&UL())?["com.youtube.fairplay"]:["com.widevine.alpha"];W&&X.unshift("com.youtube.widevine.l3");q&&T&&X.unshift("com.youtube.fairplay.sbdl");return b?X:M?[...X,...O$.playready]:[...O$.playready,...X]}; e0=function(M){if(!M.ST())if(M.V.length===0)M.callback(M.A);else{var W=M.V[0],b=M.B[W],T=PAg(M,b);PR&&PR.keySystem===W&&PR.eF===JSON.stringify(T)?(M.dK("remksa",{re:!0}),e$Q(M,b,PR.keySystemAccess)):(M.dK("remksa",{re:!1,ok:PR?.keySystem??""}),PR=void 0,navigator.requestMediaKeySystemAccess(W,T).then(OE(q=>{e$Q(M,b,q,T)}),OE(()=>{M.S=!M.S&&M.B[M.V[0]].flavor==="widevine"; M.S||M.V.shift();e0(M)})))}}; oDS=function(M){if(FJ()&&(g.R_||ks))M.A.push(new dp("fairplay","com.apple.fps.1_0","",M.Vz.experiments));else{var W=dVL(),b=g.pt(M.V,T=>{const q=M.B[T];let X=!1,G=!1;for(const V in M.Z[q.flavor])W(V,T)&&(q.V[V]=!0,X=X||V.indexOf("audio/")===0,G=G||V.indexOf("video/")===0);return X&&G}); b&&M.A.push(M.B[b]);M.V=[]}M.callback(M.A)}; csG=function(M,W){M.callback=W;M.A=[];ie(M.Vz.experiments)?e0(M):oDS(M)}; PAg=function(M,W){const b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(M.j("html5_enable_vp9_fairplay")&&ue(W))return b.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),b.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[b];A$(W)&&(b.initDataTypes=["keyids","cenc"]);for(const q of Object.keys(M.Z[W.flavor])){var T=q.indexOf("audio/")===0;const X=T?b.audioCapabilities:b.videoCapabilities;W.flavor!=="widevine"||M.S?X.push({contentType:q}): T?X.push({contentType:q,robustness:"SW_SECURE_CRYPTO"}):(g.XH&&g.Df("windows nt")&&!M.j("html5_drm_enable_moho")||X.push({contentType:q,robustness:"HW_SECURE_ALL"}),T=q,M.Vz.S.V&&q.includes("vp09")&&(T=q+"; experimental=allowed"),X.push({contentType:T,robustness:"SW_SECURE_DECODE"}),ol(M.Vz)==="MWEB"&&(LU()||a$())&&(M.dK("swcrypto",{}),X.push({contentType:q,robustness:"SW_SECURE_CRYPTO"})))}return[b]}; e$Q=function(M,W,b,T){if(!M.ST()){T&&(PR={keySystem:W.keySystem,keySystemAccess:b,eF:JSON.stringify(T)});W.keySystemAccess=b;if(A$(W)){var q=Tn();for(var X of Object.keys(M.Z[W.flavor]))W.V[X]=!!q.canPlayType(X)}else{X=W.keySystemAccess.getConfiguration();if(X.audioCapabilities)for(q of X.audioCapabilities)W.V[q.contentType]=!0;if(X.videoCapabilities)for(const G of X.videoCapabilities)W.V[G.contentType]=!0}M.A.push(W);M.useCobaltWidevine||M.j("html5_enable_vp9_fairplay")&&W.Z()?(M.V.shift(),e0(M)): M.callback(M.A)}}; dVL=function(){const M=FJ();if(M){const b=M.isTypeSupported;return(T,q)=>b(q,T)}const W=Tn(); return W&&(W.addKey||W.webkitAddKey)?(b,T)=>!!W.canPlayType(b,T):()=>!1}; wZJ=function(M,W){switch(W.y7){case "bool":return M.FX(W.wv);case "int":return M=QDL(M,W.wv),Wb(M);case "double":return QDL(M,W.wv);case "string":return gDQ(M,W.wv);case "int32_list":return sDL(M,W.wv);case "int64_list":return sDL(M,W.wv).map(b=>Wb(b)); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; QDL=function(M,W){M=M.flags.get(`${W}`);return Number(M)||0}; gDQ=function(M,W){return(M=M.flags.get(`${W}`))?M.toString():""}; sDL=function(M,W){if(M=M.flags.get(`${W}`))if(M=M.replace(/\[ *(.*?) *\]/,"$1"))return M.split(",").map(Number);return[]}; cR=function(M,W){return(M=M.UY(W))?M.toString():""}; g.TO=function(M,W,b=0){M=M.UY(W);JSON.stringify(M);return M===void 0?b:Number(M)}; pZq=function(M){if(M=M.UY("html5_web_po_experiment_ids"))if(M=M.replace(/\[ *(.*?) *\]/,"$1"))return M.split(",").map(Number);return[]}; Y2L=function(M){if(M.Z)return M.Z;if(M.experimentIds.length<=1)return M.Z=M.experimentIds,M.Z;const W=[...M.experimentIds].map(b=>Number(b)); W.sort();for(let b=W.length-1;b>0;--b)W[b]-=W[b-1];M.Z=W.map(b=>b.toString()); M.Z.unshift("v1");return M.Z}; DHt=function(M,W){const b=new Map;for(const T of W.keys()){const q=T.split("_")[0];M.has(q)||b.set(T,W.get(T))}return b}; EnP=function(M,W,b){const T=W.video?.fps||0,q=`${M}_${T}`,X=!!W.audio,G={itag:W.itag,Qz:M,s1:X};if(X)G.numChannels=W.audio.numChannels;else{var V=W.video;G.maxWidth=V?.width;G.maxHeight=V?.height;G.maxFramerate=T;G.maxBitrateBps=W.sB*8;G.fS=V?.isHdr()}V=b.get(q);V?X||(W=Math.max(V.maxWidth||0,V.maxHeight||0)>Math.max(G.maxWidth||0,G.maxHeight||0)?V:G,M={itag:W.itag,Qz:M,s1:X,maxWidth:Math.max(V.maxWidth||0,G.maxWidth||0),maxHeight:Math.max(V.maxHeight||0,G.maxHeight||0),maxFramerate:T,fS:W.fS},M.maxBitrateBps= W.maxBitrateBps,b.set(q,M)):b.set(q,G)}; mHl=function(M,W,b=1){const T=W.itag;if(T==="0")return!0;let q=W.mimeType;if(W.Qz==="1e"&&!M.A)return"dav1enc";if(W.Z()&&M.X)return"dav1";if(W.video&&(W.video.isHdr()||W.video.primaries==="bt2020")&&!(ZQ(M,iS.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(T==="338"&&!(g.XH?Lc(53):g.HR&&Lc(64)))return"dopus";b=XHq(W,b);M.V&&W.A()&&(b[iS.EXPERIMENTAL.name]= "allowed");for(const V of Object.keys(iS)){const J=iS[V];var X;if(X=b[J.name])if(X=!(J===iS.EOTF&&W.mimeType.indexOf("vp09.02")>0)){X=J;var G=W;X=!(M.experiments.FX("html5_ignore_h264_framerate_cap")&&X===iS.FRAMERATE&&W5l(G))}if(X)if(ZQ(M,J))if(M.S){if(M.S[J.name]1080&&W.contentProtection&&(q+="; hdcp=2.2");return T==="227"?"hqcenc":T!=="585"&&T!=="588"&&T!== "583"&&T!=="586"&&T!=="584"&&T!=="587"&&T!=="591"&&T!=="592"||M.experiments.FX("html5_enable_new_hvc_enc")?nU()&&BV()>=21&&g.Df("appletv5")&&(T==="410"||T==="845")?!0:M.isTypeSupported(q)?!0:"tpus":"newhvc"}; ZQ=function(M,W){W.name in M.W||(M.W[W.name]=$qt(M,W));return M.W[W.name]}; Mra=function(M){navigator.mediaCapabilities?.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(W=>{W.smooth&&W.powerEfficient&&(M.gK=2160)})}; Q3=function(){const M=a$()&&!Lc(29),W=g.Df("google tv")&&g.Df("chrome")&&!Lc(30);return M||W?!1:JzJ()}; WdL=function(M,W,b){let T=480;for(const q of W)W=q.video.qualityOrdinal,W<=1080&&W>T&&mHl(M,q,b)===!0&&(T=W);return T}; g.gp=function(M,W=!1){return Q3()&&M.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!W&&M.canPlayType(Tn(),"application/x-mpegURL")?!0:!1}; Trq=function(M){baL(()=>{for(const W of Object.keys(iS))ZQ(M,iS[W])})}; $qt=function(M,W){if(M.S)return!!M.S[W.name];if(W===iS.BITRATE&&M.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!M.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(W===iS.AV1_CODECS)return M.isTypeSupported(`video/mp4; codecs=${W.valid}`)&&!M.isTypeSupported(`video/mp4; codecs=${W.V4}`);let b;W.video?(b='video/webm; codecs="vp9"',M.isTypeSupported(b)||(b='video/mp4; codecs="avc1.4d401e"')):(b='audio/webm; codecs="opus"', M.isTypeSupported(b)||(b='audio/mp4; codecs="mp4a.40.2"'));return M.isTypeSupported(`${b}; ${W.name}=${W.valid}`)&&!M.isTypeSupported(`${b}; ${W.name}=${W.V4}`)}; q6Q=function(M,W){let b=0;M.B.has(W)&&(b=M.B.get(W).KY);M.B.set(W,{KY:b+1,Wy:2**(b+1)});M.Z=!0}; jRy=function(M,W,b,T,q){if(W&&typeof W==="object"){const X=G=>XkS(M,G,b,T,q); if(IH(W))return W.then(X);if(Io(W))return Ro(W,X)}return XkS(M,W,b,T,q)}; VrL=function(M,W,b,T=1){b>=0&&(W in M.Z||(M.Z[W]=new G9q),M.Z[W].Wa(b,T))}; XkS=function(M,W,b,T,q){const X=(0,g.u)();q=q?q(W):void 0;const G=q?.WV??1;G!==0&&VrL(M,q?.profile??b,X-T,G);return W}; JdS=function(M){const W=window;W.ywc||(W.ywc={});var b=W.ywc[M];if(b)return b;b={};return W.ywc[M]=b}; Brs=function(M){const W=window;W.ywc&&delete W.ywc[M]}; var z3t=function(M,W){return hz[y[0]](this,12,M,W)}; DqJ=function(M){const W=JdS(M);if(W.binP)return W.binP;W.binP=Promise.resolve().then(()=>fetch(M)).then(b=>{if(!b.ok)throw Error(`HTTP${b.statusText}`); return b.arrayBuffer()}); W.binP.then(b=>{W.bin=b},()=>{Brs(M)}); return W.binP}; nEq=function(M,W,b){return Fg(void 0,function(){return function*(){const T=s$.HI(),q=M&℘if(!q&&!W)return b?.("wasmns",{p:M?"1":"0",a:W?"1":"0",s:wp?"1":"0"}),HB(Error("wasm.wm.ns"));const X=new aUg;if(q)try{const G=yield*hy(EEy(X,M)),V=new pf(G,X,!1,!0);s$.kK("winit",T);b?.("wasmsw",{});return V}catch(G){if(b?.("wasmerrw",{e:`${G}`}),!W)throw Error(`wasm.wm.iw: ${G}`);}if(!W)throw Error("wasm.wm.xx");try{const G=yield*hy(W(X)),V=new pf({exports:G},X,!0,!0);s$.kK("winitjs",T);b?.("wasmsa",{});return V}catch(G){throw b?.("wasmerra", {e:`${G}`}),Error(`wasm.wm.ia: ${G}`);}}()})}; EEy=function(M,W){return Fg(ydS,function(){const b=this;return function*(){if(!b.Z)throw"wasm.ps.ns";const T=yield*hy(UqL(b,W));if(!T)throw"wasm.ps.um";return yield*hy(WebAssembly.instantiate(T,M))}()})}; UqL=function(M,W){return Fg(M,function(){const b=this;return function*(){const T=[],q=()=>"wasm.ps.c: ["+T.map(V=>`"${V}"`).join(", ")+"]",X=JdS(W); if(X.mod)return X.mod;if(X.modP)try{return yield*hy(X.modP)}catch(V){T.unshift("pcm")}let G=X.bin;if(!G&&X.binP)try{G=yield*hy(X.binP)}catch(V){T.unshift("pfb")}if(!G)try{G=yield*hy(DqJ(W))}catch(V){throw b.Z=!1,T.unshift(`fb: ${V}`),q();}try{return yield*hy(WebAssembly.compile(G))}catch(V){Brs(W),T.unshift(`ca: ${V}`)}throw q();}()})}; CoL=function(M,W,b,T){b=M.Z.JS(b);var q=M.V;q.Z.exports.AES128CTRCipher_setCounter(q.cipher,b.byteOffset);W=M.Z.JS(W);M.V.encrypt(W);q=void 0;if(T){T=M.Z;q=M.B;const X=new Uint8Array(T.exports.memory.buffer,T.malloc(32),32);T.exports.Sha256Hmac(q.byteOffset,q.byteLength,b.byteOffset,b.byteLength,W.byteOffset,W.byteLength,X.byteOffset);q=M.Z.QM(X)}M.Z.free(b.byteOffset);return{gV:M.Z.QM(W),signature:q}}; k9L=function(M){M.A||(M.A=new YZ(M.V));return M.A}; MT=function(M){try{return Rd(M)}catch(W){return null}}; KdP=function(M){var W=d9t();if(W.values){W=W.values;const G={};for(var b of Object.keys(M.values)){W[b]&&M.V[b]&&(M.values[b]+=W[b]-M.V[b]);var T=M,q=T;if(!q.values[b]){var X=d9t();q.values=X.values||{};q.s_=X.halfLives||{};q.V=X.values?Object.assign({},X.values):{}}G[b]=T.values[b]&&T.s_[b]?T.values[b]/2**(T.Z/T.s_[b]):0}M.V=G}b=M.s_;W={};W.values=M.V;W.halfLives=b;g.$u("yt-player-memory",W,2592E3)}; qg=function(M){return/web/i.test(ol(M))}; g.WQ=function(M){return ol(M)==="WEB_UNPLUGGED"}; g.dB=function(M){return ol(M)==="WEB_REMIX"}; g.bb=function(M){return M.j("html5_local_playsinline")?ks&&!g.tY(602)&&!("playsInline"in Tn()):ks&&!M.X5||g.Df("nintendo wiiu")?!0:!1}; g.tP=function(M){return M.A&&g.Th(M)&&!qT(M)&&!M.C}; vEs=function(M){return ol(M)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; qT=function(M){return M.Zs==="adunit"||M.playerStyle==="gvn"}; Xt=function(M){return M.Zs==="detailpage"}; g.Th=function(M){return M.Zs==="embedded"}; g.jz=function(M){return M.Zs==="profilepage"}; g.Gh=function(M){if(!M.webPlayerContextConfig?.embedsHostFlags?.enableLiteUx||M.oT||M.C||M.B||M.yz==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";M=g.TO(M.experiments,"embeds_web_lite_mode");return M===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":M>=0&&M0&&M.mw&&(T.sort(),g.lR(new g.EF("Player client parameters changed after startup",T)));M.userAge=NG(M.userAge,W.user_age);M.Px=HV(M.Px,W.user_display_email);M.userDisplayImage=HV(M.userDisplayImage,W.user_display_image);g.yN(M.userDisplayImage)||(M.userDisplayImage="");M.userDisplayName=HV(M.userDisplayName, W.user_display_name);M.S6=HV(M.S6,W.user_gender);M.csiPageType=HV(M.csiPageType,W.csi_page_type);M.csiServiceName=HV(M.csiServiceName,W.csi_service_name);M.nx=Zf(M.nx,W.enablecsi);M.pageId=HV(M.pageId,W.pageid);if(b=W.enabled_engage_types)M.enabledEngageTypes=new Set(b.split(","));W.living_room_session_po_token&&(M.XP=W.living_room_session_po_token.toString())}; JI=function(M){return ol(M)==="WEB_KIDS"}; ol=function(M){return M.Z.c}; VB=function(M,W){return!M.C&&a$()&&Lc(55)&&M.controlsType==="3"&&!W}; g.BQ=function(M){M=dA(M.l3);return M==="www.youtube-nocookie.com"?"www.youtube.com":M}; DI=function(M,W,b){return M.protocol+"://i1.ytimg.com/vi/"+W+"/"+(b||"hqdefault.jpg")}; aU=function(M){return Xt(M)&&!g.WQ(M)}; E1=function(M){return M.Zs==="leanback"}; g.XD=function(M){return/^TVHTML5/.test(ol(M))}; nL=function(M){return ol(M)==="TVHTML5"}; lUG=function(M){return M.Z.cmodel==="CHROMECAST ULTRA/STEAK"||M.Z.cmodel==="CHROMECAST/STEAK"}; g.yK=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; g.Zk=function(M){return ol(M).toUpperCase()==="WEB"}; U1=function(M){return ol(M)==="TVHTML5_UNPLUGGED"}; g.Tb=function(M){return g.WQ(M)||ol(M)==="TV_UNPLUGGED_CAST"||U1(M)}; g.CL=function(M){return ol(M)==="WEB_MUSIC_INTEGRATIONS"}; g.kj=function(M){return ol(M)==="WEB_EMBEDDED_PLAYER"}; trJ=function(M,W=!1,b=!0){return!g.Zk(M)||!W||!b}; g.ff=function(M){return(M.deviceIsAudioOnly||!g.XH||$w||M.controlsType==="3"?!1:g.mm?M.A&&g.tY(51):!0)||(M.deviceIsAudioOnly||!g.HR||$w||M.controlsType==="3"?!1:g.mm?M.A&&g.tY(48):g.tY(38))||(M.deviceIsAudioOnly||!g.KL||$w||M.controlsType==="3"?!1:g.mm?M.A&&g.tY(37):g.tY(27))||!M.deviceIsAudioOnly&&g.vQ&&!REL()&&g.tY(11)||!M.deviceIsAudioOnly&&g.R_&&g.tY("604.4")}; z$L=function(M){if(g.Th(M)&&mj)return!1;if(g.HR){if(!g.tY(47)||!g.tY(52)&&g.tY(51))return!1}else if(g.R_)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; IUq=function(M,W){return M.enabledEngageTypes.has(W.toString())||ZaG.includes(W)}; LL=function(M){if(!M.userDisplayImage)return"";const W=M.userDisplayImage.split("/");if(W.length===5)return M=W[W.length-1].split("="),M[1]="s20-c",W[W.length-1]=M.join("="),W.join("/");if(W.length===8)return W.splice(7,0,"s20-c"),W.join("/");if(W.length===9)return W[7]+="-s20-c",W.join("/");g.lR(new g.EF("Profile image not a FIFE URL.",M.userDisplayImage));return M.userDisplayImage}; g.lb=function(M){let W=g.BQ(M);Nrs.includes(W)&&(W="www.youtube.com");return M.protocol+"://"+W}; g.ZI=function(M,W=""){if(M.G4){const b=new tI;let T;const q=M.G4();q.signedOut?T="":q.token?T=q.token:q.pendingResult.then(X=>{q.signedOut?b.resolve(""):b.resolve(X.token)},X=>{g.lR(new g.EF("b189348328_oauth_callback_failed",{error:X})); b.resolve(W)}); return T!==void 0?MG(T):new Y7(b)}return MG(W)}; IU=function(M,W=""){return M.hD?NW(!0):x$(Ro(NW(g.ZI(M,W)),b=>NW(!!b)),()=>NW(!1))}; HaQ=function(M,W){M.Ds=W;M.cP?.Z?.C(W);W.Z?M.Sw.push("asmjs"):M.Sw.push("wasm")}; dA=function(M){const W=g.$F(M);return(M=Number(g.pD(M)[4]||null)||null)?`${W}:${M}`:W}; NT=function(M,W=!1){const b=T0[M];let T=fUS[b];const q=Rxp[M];if(!q||!T)return null;W=new HE(W?q.height:q.width,W?q.width:q.height,q.fps);T=be(T,W,b);return new fW(M,T,{video:W,sB:q.bitrate/8})}; xqL=function(M){const W=fUS[T0[M]],b=rdG[M];return b&&W?new fW(M,W,{audio:new Nm(b.audioSampleRate,b.numChannels)}):null}; GD=function(M,W,b,T){if(b)return $s();b={};const q=Tn();for(const X of W)if(M.canPlayType(q,X.getInfo().mimeType)||T)if(W=X.Z.video.quality,!b[W]||b[W].getInfo().dU())b[W]=X;M=[];b.auto&&M.push(b.auto);for(const X of vE)(T=b[X])&&M.push(T);return M.length?MG(M):$s()}; iaG=function(M,W=!1,b=!0,T={}){const q={};for(const G of M){if(W&&MediaSource&&MediaSource.isTypeSupported&&(M=G.type,G.audio_channels&&(M=M+"; channels="+G.audio_channels),!MediaSource.isTypeSupported(M))){T[G.itag]="tpus";continue}if(!b&&G.drm_families&&(G.eotf==="smpte2084"||G.eotf==="arib-std-b67")){T[G.itag]="enchdr";continue}M=void 0;const V={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var X=G.type.match(/codecs="([^"]*)"/);X=X?X[1]:"";G.audio_track_id&&(M=new g.j0(G.name, G.audio_track_id,!!G.is_default));const J=G.eotf;M=new Fdy({itag:G.itag,url:G.url,codecs:X,width:Number(G.width),height:Number(G.height),fps:Number(G.fps),bitrate:Number(G.bitrate),audioItag:G.audio_itag,Ry:J?V[J]:void 0,contentProtection:G.drm_families,r9:M,audioChannels:Number(G.audio_channels)});q[M.itag]=q[M.itag]||[];q[M.itag].push(M)}return q}; hxq=function(M,W){M.B.some(b=>b.r9?.getId()===W); M.Z=W}; Adt=function(M){const W=[],b=[];for(const T of M.V)T.bitrate<=M.A?W.push(T):b.push(T);W.sort((T,q)=>q.bitrate-T.bitrate); b.sort((T,q)=>T.bitrate-q.bitrate); M.V=W.concat(b)}; HQ=function(M,W,b){M.cpn&&(W=g.JM(W,{cpn:M.cpn}));b&&(W=g.JM(W,{paired:b}));return W}; zxL=function(M,W){M=M.itag.toString();W!==null&&(M+=W.itag.toString());return M}; umt=function(M,W){if(!($w||UL()||nU()))return null;M=iaG(W,M.j("html5_filter_fmp4_in_hls"));if(!M)return null;W=[];const b={};for(const T of Object.keys(M))for(const q of M[T])if(q.r9){const X=q.r9.getId();if(!b[X]){const G=new g.fL(X,q.r9);b[X]=G;W.push(G)}}return W.length>0?W:null}; dqt=function(M,W,b,T,q,X,G){if(!($w||UL()||nU()))return $s();const V={},J=S6t(b),B=iaG(b,M.j("html5_filter_fmp4_in_hls"),M.S.C,V);if(!B)return G({noplst:1}),$s();Oat(B);const D={fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"};let a;b=[];const E=[],n=[];var C=null;let l="";T=T&&T.match(/hls_timedtext_playlist/)?new Fdy({itag:"0",url:T,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,r9:new g.j0("English","en",!1)}):null;for(const x of Object.keys(B))if(!M.j("html5_disable_drm_hfr_1080")|| x!=="383"&&x!=="373")for(const A of B[x])if(A.width){for(const uQ of A.V)if(B[uQ]){A.Z=uQ;break}A.Z||(A.Z=Pos(B,A));const qa=B[A.Z];if(!qa)continue;b.push(A);A.contentProtection==="fairplay"&&(a=D);let Xs="";A.Ry==="PQ"?Xs="smpte2084":A.Ry==="HLG"&&(Xs="arib-std-b67");Xs&&(l=Xs);n.push(exQ(qa,[A],T,X,A.itag,A.width,A.height,A.fps,J,void 0,void 0,a,Xs));if(!C||A.width*A.height*A.fps>C.width*C.height*C.fps)C=A}else E.push(A);else V[x]="disdrmhfr";n.reduce((x,A)=>A.getInfo().isEncrypted()&&x,!0)&&(a= D); q=Math.max(q,0);const {fps:N=0,width:R=0,height:f=0}=C||{};C=M.j("html5_native_audio_track_switching");n.push(exQ(E,b,T,X,"93",R,f,N,J,"auto",q,a,l,C));Object.entries(V).length&&G(V);return GD(M.S,n,VB(M,W),!1)}; exQ=function(M,W,b,T,q,X,G,V,J,B,D,a,E,n){let C=0,l="";for(const N of M)l||(l=N.itag),N.audioChannels&&N.audioChannels>C&&(C=N.audioChannels,l=N.itag);q=new fW(q,"application/x-mpegURL",{audio:new Nm(0,C),video:new HE(X,G,V,null,void 0,B,void 0,void 0,E),contentProtection:a,ge:l});M=new oEL(M,W,b?[b]:[],T,!!n);M.A=D?D:1369843;return new cdQ(q,M,J)}; S6t=function(M){for(const W of M)if(W.url&&(M=W.url.split("expire/"),!(M.length<=1)))return+M[1].split("/")[0];return NaN}; Pos=function(M,W){for(const b of Object.keys(M)){const T=M[b][0];if(!T.width&&T.contentProtection===W.contentProtection&&!T.audioChannels)return b}return""}; Oat=function(M){const W=new Set;for(var b of Object.values(M))if(b.length){var T=b[0];T.height&&T.codecs.startsWith("vp09")&&W.add(T.height)}b=[];if(W.size)for(const q of Object.keys(M))M[q].length&&(T=M[q][0],T.height&&W.has(T.height)&&!T.codecs.startsWith("vp09")&&b.push(q));for(const q of b)delete M[q]}; gEq=function(M,W,b){const T=[];for(const q of b){if(!q||!q.url)continue;b=Re(q.type,"medium","0");T.push(new QRg(b,q.url))}return GD(M.S,T,VB(M,W),!1)}; sRt=function(M,W){const b=[],T=Re(W.type,"auto",W.itag);b.push(new QRg(T,W.url));return GD(M.S,b,!1,!0)}; pks=function(M){return M&&wkt[M]?wkt[M]:null}; Y6P=function(M){switch(M){case "multiview.ustreamer_disabled":case "sabr.invalid_input_stream":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 M;default:return"sabr.config"}}; MFQ=function(M,W){if(W=W?.watchEndpointSupportedOnesieConfig?.html5PlaybackOnesieConfig)M.HU=new $iQ(W)}; g.RU=function(M){const W=[];if(M.displayName)W.push(M.displayName);else{const b=M.languageName||"";W.push(b);M.kind==="asr"&&b.indexOf("(")===-1&&W.push(" (Subt\u00edtulos autom\u00e1ticos)");M.name&&W.push(` - ${M.name}`)}M.translationLanguage&&W.push(` >> ${M.translationLanguage.languageName}`);return W.join("")}; g.rL=function(M){const W={languageCode:M.languageCode,languageName:M.languageName,displayName:g.RU(M),kind:M.kind,name:M.name,id:M.id,is_servable:M.Z,is_default:M.isDefault,is_translateable:M.isTranslateable,vss_id:M.vssId};M.xtags&&(W.xtags=M.xtags);M.captionId&&(W.captionId=M.captionId);M.translationLanguage&&(W.translationLanguage=M.translationLanguage);return W}; g.xj=function(M){return M.translationLanguage?M.translationLanguage.languageCode:M.languageCode}; g.Wkt=function(M){let W=M.vssId;M.translationLanguage&&W&&(W=`t${W}.${g.xj(M)}`);return W}; XrJ=function(M,W,b,T){M||(M=W&&bms.hasOwnProperty(W)&&TlL.hasOwnProperty(W)?TlL[W]+"_"+bms[W]:void 0);W=M;if(!W)return null;M=W.match(q8J);if(!M||M.length!==5)return null;{const X=W.match(q8J);if(X){M=Number(X[3]);var q=[7,8,10,5,6];M=!(Number(X[1])===1&&M===8)&&q.indexOf(M)>=0}else M=!1}return b||T||M?W:null}; Ft=function(M,W){const b={};for(const q of Object.keys(jNp)){var T=W?W+q:q;T=M[T+"_webp"]||M[T];g.yN(T)&&(b[jNp[q]]=T)}return b}; ib=function(M){const W={};if(!M||!M.thumbnails)return W;M=M.thumbnails.filter(q=>!!q.url); M.sort((q,X)=>q.width-X.width||q.height-X.height); for(var b of Object.keys(GZQ)){var T=Number(b);const q=GZQ[T];for(const X of M)if(X.width>=T){T=VFL(X.url);g.yN(T)&&(W[q]=T);break}}(b=M.pop())&&b.width>=1280&&(b=VFL(b.url),g.yN(b)&&(W["maxresdefault.jpg"]=b));return W}; VFL=function(M){return M.startsWith("//")?"https:"+M:M}; hI=function(M){return M&&M.baseUrl||""}; AI=function(M){M=g.UX(M);for(const W of Object.keys(M)){const b=M[W];M[W]=Array.isArray(b)?b[0]:b}return M}; Bll=function(M,W){for(var b of W)if(W=b.playerAnnotationsUrlsRenderer){W.adsOnly&&(M.Bl=!0);if(b=W.loadPolicy)M.annotationsLoadPolicy=J3L[b];if(b=W.invideoUrl)M.B$=UR(b);M.n_=!0;break}}; DiQ=function(M,W){M.botguardData=W.playerAttestationRenderer.botguardData;W=W.playerAttestationRenderer.challenge;W!=null&&(M.im=W)}; ErL=function(M,W){M.captionTracks=[];if(W.captionTracks)for(var b of W.captionTracks){var T=a4p(b.baseUrl);if(!T)return;T={is_translateable:!!b.isTranslatable,languageCode:b.languageCode,languageName:b.name&&g.Ga(b.name),url:T,vss_id:b.vssId,kind:b.kind};T.name=b.trackName;T.displayName=b.name&&g.Ga(b.name);M.captionTracks.push(new g.zh(T))}M.lj=W.audioTracks||[];M.H6=W.defaultAudioTrackIndex||0;M.j$=[];if(W.translationLanguages)for(const q of W.translationLanguages){b={};b.languageCode=q.languageCode; b.languageName=g.Ga(q.languageName);if(q.translationSourceTrackIndices){b.translationSourceTrackIndices=[];for(const X of q.translationSourceTrackIndices)b.translationSourceTrackIndices.push(X)}if(q.excludeAudioTrackIndices){b.excludeAudioTrackIndices=[];for(const X of q.excludeAudioTrackIndices)b.excludeAudioTrackIndices.push(X)}M.j$.push(b)}M.If=[];if(W.defaultTranslationSourceTrackIndices)for(const q of W.defaultTranslationSourceTrackIndices)M.If.push(q);M.C1=!!W.contribute&&!!W.contribute.captionsMetadataRenderer}; nrJ=function(M,W,b){var T=W.errorScreen;if(!(T&&(T.playerLegacyDesktopYpcOfferRenderer||T.playerLegacyDesktopYpcTrailerRenderer||T.ypcTrailerRenderer)||b&&b.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(W.status))){M.errorCode=pks(W.errorCode)||"auth";if(b=T&&T.playerErrorMessageRenderer){M.playerErrorMessageRenderer=b;const q=b.reason;q&&(M.errorReason=g.Ga(q));if(b=b.subreason)M.n4=g.Ga(b),M.ID=b}else M.errorReason=W.reason||null;b=W.status;b==="LOGIN_REQUIRED"?M.errorDetail= "1":b==="CONTENT_CHECK_REQUIRED"?M.errorDetail="2":b==="AGE_CHECK_REQUIRED"?(W=(W=W.errorScreen)&&W.playerKavRenderer,M.errorDetail=W&&W.kavUrl?"4":"3"):(T=T?.playerErrorMessageRenderer?.proceedButton?.buttonRenderer?.command,M.errorDetail=W.isBlockedInRestrictedMode?"5":g.z(T,g.ub)?.signal==="RELOAD_PAGE"?"7":"0")}}; y3G=function(M,W){M.RS=!0;const b=W.heartbeatToken;b&&(M.drmSessionId=W.drmSessionId||"",M.heartbeatToken=b,M.QG=Number(W.intervalMilliseconds),M.AF=Number(W.maxRetries),M.P9=!!W.softFailOnError,M.Lb=!!W.useInnertubeHeartbeatsForDrm);M.heartbeatServerData=W.heartbeatServerData;M.KI=!!W.heartbeatAttestationConfig?.requiresAttestation}; kZp=function(M,W){for(const b of W){W=b.interstitials.map(T=>{const q=g.z(T,Uiq);if(q)return{is_yto_interstitial:!0,raw_player_response:q};if(T=g.z(T,CBL))return Object.assign({is_yto_interstitial:!0},ng(T))}); for(const T of W)switch(b.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":M.interstitials=M.interstitials.concat({time:0,playerVars:T,eX:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":M.interstitials=M.interstitials.concat({time:0x7ffffffffffff,playerVars:T,eX:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":W=Number(b.podConfig.timeToInsertAtMillis),M.interstitials=M.interstitials.concat({time:W,playerVars:T,eX:W===0?5:7})}}}; KkL=function(M,W){if(W=W.find(b=>!(!b||!b.tooltipRenderer)))M.tooltipRenderer=W.tooltipRenderer}; vrL=function(M,W){W.subscribeCommand&&(M.subscribeCommand=W.subscribeCommand);W.unsubscribeCommand&&(M.unsubscribeCommand=W.unsubscribeCommand);W.addToWatchLaterCommand&&(M.addToWatchLaterCommand=W.addToWatchLaterCommand);W.removeFromWatchLaterCommand&&(M.removeFromWatchLaterCommand=W.removeFromWatchLaterCommand);W.getSharePanelCommand&&(M.getSharePanelCommand=W.getSharePanelCommand)}; mil=function(M,W){W!=null?(M.Rb=W,M.uN=!0):(M.Rb="",M.uN=!1)}; tFQ=function(M,W){if(W=W.playerControlsOverlayRenderer)mil(M,W.controlBgHtml),W.mutedAutoplay?(W=g.z(W.mutedAutoplay,LkJ))&&W.endScreen&&(W=g.z(W.endScreen,l4p))&&W.text&&(M.LJ=g.Ga(W.text)):M.mutedAutoplay=!1}; Zms=function(M,W){var b=W.backgroundability;b&&b.backgroundabilityRenderer.backgroundable&&(M.backgroundable=!0);W.offlineability?.offlineabilityRenderer?.offlineable&&(M.offlineable=!0);if(b=W.contextParams)M.contextParams=b;(b=W.pictureInPicture)&&b.pictureInPictureRenderer.playableInPip&&(M.pipable=!0);W.playableInEmbed&&(M.allowEmbed=!0);if(b=W.ypcClickwrap)W=b.playerLegacyDesktopYpcClickwrapRenderer,b=b.ypcRentalActivationRenderer,W?(M.PT=W.durationMessage||"",M.rp=!0):b&&(W=b.durationMessage, M.PT=W?g.Ga(W):"",M.rp=!0)}; Nls=function(M,W,b){var T=hI(W.googleRemarketingUrl);T&&(M.googleRemarketingUrl=T);if(T=hI(W.youtubeRemarketingUrl))M.youtubeRemarketingUrl=T;if(T=W.heartbeatLoggingToken)M.heartbeatLoggingToken=T;T={};var q=hI(W.ptrackingUrl);if(q){q=AI(q);var X=q.oid;X&&(M.O4=X);if(X=q.pltype)M.Qy=X;if(X=q.ptchn)M.XC=X;if(X=q.ptk)M.ze=encodeURIComponent(X);if(q=q.m)M.ZG=q}if(q=hI(W.qoeUrl)){q=g.UX(q);for(G of Object.keys(q))X=q[G],q[G]=Array.isArray(X)?X.join(","):X;var G=q;M.MU=G;if(q=G.cat)M.j("html5_enable_qoe_cat_list")? M.DZ=M.DZ.concat(q.split(",")):M.Sw=q;if(q=G.live)M.dN=q;if(G=G.drm_product)M.drmProduct=G}if(G=hI(W.videostatsPlaybackUrl)){G=AI(G);if(q=G.adformat)if(b.adformat=q,X=M.G(),X=XrJ(q,M.AV,X.A,X.D))M.adFormat=X;if(X=G.aqi)b.ad_query_id=X;if(b=G.autoplay)M.eO=b=="1",M.FQ=b=="1";if(b=G.autonav)M.isAutonav=b=="1";if(b=G.delay)M.gr=DZ(b);if(b=G.ei)M.eventId=b;if(b=MT(G.adcontext))try{var V=I4L(b);V&&(M.g3=V)}catch(J){g.lR(Error("Malformed adContext"))}if(b||q)M.eO=!0;if(V=G.feature)M.Ue=V;if(V=G.list)M.playlistId= V;if(V=G.of)M.Aw=V;if(V=G.osid)M.osid=V;if(V=G.referrer)M.referrer=V;if(V=G.sdetail)M.VD=V;if(V=G.sourceid)M.nhT=V;if(V=G.ssrt)M.xl=V=="1";if(V=G.subscribed)M.subscribed=V=="1";if(V=G.uga)M.userGenderAge=V;if(V=G.upt)M.gh=V;if(V=G.vm)M.videoMetadata=V;T.playback=G}if(V=hI(W.videostatsWatchtimeUrl)){V=AI(V);if(b=V.ald)M.gx=b;T.watchtime=V}if(V=hI(W.atrUrl))V=AI(V),T.atr=V;if(V=hI(W.engageUrl))V=AI(V),T.engage=V;M.Lf=T;W.promotedPlaybackTracking&&(W=W.promotedPlaybackTracking,W.startUrls&&(M.qS=W.startUrls), W.firstQuartileUrls&&(M.w8=W.firstQuartileUrls),W.secondQuartileUrls&&(M.Ca=W.secondQuartileUrls),W.thirdQuartileUrls&&(M.j3=W.thirdQuartileUrls),W.completeUrls&&(M.m1=W.completeUrls),W.engagedViewUrls&&(W.engagedViewUrls.length>1&&g.lR(new g.EF("There are more than one engaged_view_urls.")),M.gg=W.engagedViewUrls[0]))}; HmL=function(M,W,b){for(const T of W)if(T&&(W=T.playerLegacyDesktopWatchAdsRenderer)&&(W=W.playerAdParams)){W.autoplay=="1"&&(M.eO=!0,M.FQ=!0);M.yn=W.encodedAdSafetyReason||null;W.showContentThumbnail!==void 0&&(M.Ep=!!W.showContentThumbnail);b.enabled_engage_types=W.enabledEngageTypes;break}}; RoL=function(M,W){var b=W.manifestlessWindowedLiveConfig;if(b){var T=Number(b.minDvrSequence),q=Number(b.maxDvrSequence),X=Number(b.minDvrMediaTimeMs),G=Number(b.maxDvrMediaTimeMs);b=Number(b.startWalltimeMs);T&&(M.Sk=T);X&&(M.AX=X/1E3,M.j("html5_sabr_parse_live_metadata_playback_boundaries")&&Sz(M)&&(M.R6=X/1E3));q&&(M.Hp=q);G&&(M.KU=G/1E3,M.j("html5_sabr_parse_live_metadata_playback_boundaries")&&Sz(M)&&(M.mF=G/1E3));b&&(M.QZ=b/1E3);(T||X)&&(q||G)&&(M.Lx=!0,M.isLivePlayback=!0,M.allowLiveDvr=!0, M.f7=!1)}if(T=W.daiConfig){if(T.enableDai){M.UO=!0;if(q=T.enableServerStitchedDai)M.enableServerStitchedDai=q;if(q=T.enablePreroll)M.ql=q}if(T.daiType==="DAI_TYPE_SS_DISABLED"||T.debugInfo?.isDisabledUnpluggedChannel)M.TX=!0;T.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(M.Cb=!0);T.allowUstreamerRequestAdconfig&&(M.aY=!0);T.sendSsdaiMissingAdBreakReasons&&(M.yL=!0)}if(T=W.audioConfig){q=T.loudnessDb;q!=null&&(M.xs=q);q=T.trackAbsoluteLoudnessLkfs;q!=null&&(M.Is=q);q=T.loudnessTargetLkfs;q!=null&&(M.loudnessTargetLkfs= q);T.audioMuted&&(M.KZ=!0);T.muteOnStart&&(M.B6=!0);if(q=T.loudnessNormalizationConfig)q.applyStatefulNormalization&&(M.applyStatefulNormalization=!0),q.preserveStatefulLoudnessTarget&&(M.preserveStatefulLoudnessTarget=!0),X=q.minimumLoudnessTargetLkfs,X!=null&&(M.minimumLoudnessTargetLkfs=X),q=q.maxStatefulTimeThresholdSec,q!=null&&(M.maxStatefulTimeThresholdSec=q);T.playAudioOnly&&(M.PV=!0)}if(q=W.playbackEndConfig)T=q.endSeconds,q=q.limitedPlaybackDurationInSeconds,M.mutedAutoplay&&(T&&(M.endSeconds= T),q&&(M.limitedPlaybackDurationInSeconds=q));if(T=W.fairPlayConfig){if(q=T.certificate)M.qw=MT(q);q=Number(T.keyRotationPeriodMs);q>0&&(M.lJ=q);T=Number(T.keyPrefetchMarginMs);T>0&&(M.PN=T)}if(T=W.playbackStartConfig){M.Pv=Number(T.startSeconds);X=T.liveUtcStartSeconds;q=!!M.liveUtcStartSeconds&&M.liveUtcStartSeconds>0;X&&!q&&(M.liveUtcStartSeconds=Number(X));if(X=T.startPosition)if((G=X.utcTimeMillis)&&!q&&(M.liveUtcStartSeconds=Number(G)*.001),q=X.streamTimeMillis)M.G5=Number(q)*.001;M.progressBarStartPosition= T.progressBarStartPosition;M.progressBarEndPosition=T.progressBarEndPosition}else if(T=W.skippableSegmentsConfig){if(q=T.introSkipDurationMs)M.i9=Number(q)/1E3;if(T=T.outroSkipDurationMs)M.T3=Number(T)/1E3}if(q=W.skippableIntroConfig)T=Number(q.startMs),q=Number(q.endMs),isNaN(T)||isNaN(q)||(M.I5=T,M.u7=q);if(T=W.streamSelectionConfig)M.kL=Number(T.maxBitrate);if(T=W.vrConfig)M.oK=T.partialSpherical=="1";if(T=W.webDrmConfig){T.skipWidevine&&(M.qb=!0);if(q=T.widevineServiceCert)M.yg=MT(q);T.useCobaltWidevine&& (M.useCobaltWidevine=!0);T.startWithNoQualityConstraint&&(M.Qu=!0)}if(T=W.mediaCommonConfig){if(q=T.dynamicReadaheadConfig){M.maxReadAheadMediaTimeMs=q.maxReadAheadMediaTimeMs||NaN;M.minReadAheadMediaTimeMs=q.minReadAheadMediaTimeMs||NaN;M.readAheadGrowthRateMs=q.readAheadGrowthRateMs||NaN;if(q=T?.mediaUstreamerRequestConfig?.videoPlaybackUstreamerConfig)M.wm=MT(q);if((q=T?.sabrContextUpdates)&&q.length>0)for(var V of q)V.type&&V.value&&(q={type:V.type,scope:V.scope,value:MT(V.value)||void 0,sendByDefault:V.sendByDefault}, M.sabrContextUpdates.set(V.type,q))}if(V=T.serverPlaybackStartConfig)M.serverPlaybackStartConfig=V;T.useServerDrivenAbr&&(M.nP=!0);if(V=T.requestPipeliningConfig)M.requestPipeliningConfig=V}if(V=W.inlinePlaybackConfig)M.Rs=!!V.showAudioControls;if(V=W.embeddedPlayerConfig){M.embeddedPlayerConfig=V;if(q=V.embeddedPlayerMode)T=M.G(),T.yz=q,T.B=q==="EMBEDDED_PLAYER_MODE_PFL";if(V=V.permissions)M.allowImaMonetization=!!V.allowImaMonetization}if(V=W.webPlayerConfig)V.gatewayExperimentGroup&&(M.gatewayExperimentGroup= V.gatewayExperimentGroup),V.isProximaEligible&&(M.isProximaLatencyEligible=!0);W=W.playerControlsConfig;M.G().experiments.hT().Z.UY(f4P)&&W?.isSeekable!==void 0&&(M.isSeekable=!!W.isSeekable)}; r3y=function(M,W,b){var T=W.formats;if(T){var q=[];for(var X of T)q.push(`${X.itag}/${X.width}x${X.height}`);M.h7=q.join(",");q=[];for(var G of T){T={itag:G.itag,type:G.mimeType,quality:G.quality};(X=G.url)&&(T.url=X);const {gz:E,ZR:n,L9:C,s:l}=Ht(67,G);E&&(T.url=n,T.sp=C,T.s=l);q.push(g.Vb(T))}M.Tt=q.join(",")}if(G=W.hlsFormats){q={};if(b&&(b=b.audioPairingConfig)&&b.pairs)for(var V of b.pairs)b=V.videoItag,q[b]||(q[b]=[]),q[b].push(V.audioItag);V={};for(var J of G)V[J.itag]=J.bitrate;J=[];for(var B of G){b= {itag:B.itag,type:B.mimeType,url:B.url,bitrate:B.bitrate,width:B.width,height:B.height,fps:B.fps};if(G=B.audioTrack)if(T=G.displayName)b.name=T,b.audio_track_id=G.id,G.audioIsDefault&&(b.is_default="1");if(B.drmFamilies){G=[];for(var D of B.drmFamilies)G.push(G0[D]);b.drm_families=G.join(",")}(G=q[B.itag])&&G.length&&(b.audio_itag=G.join(","),(G=V[G[0]])&&(b.bitrate+=G));(G=pFL(B))&&(b.eotf=G);B.audioChannels&&(b.audio_channels=B.audioChannels);J.push(g.Vb(b))}M.hlsFormats=J.join(",")}if((D=W.licenseInfos)&& D.length>0){B={};for(var a of D)D=a.drmFamily,q=a.url,D&&q&&(B[G0[D]]=q);M.contentProtection=B}if(a=W.drmParams)M.drmParams=a;if(a=W.dashManifestUrl)M.oa=g.JM(a,{cpn:M.clientPlaybackNonce});if(a=W.hlsManifestUrl)M.hlsvp=a;if(a=W.probeUrl)M.probeUrl=UR(g.JM(a,{cpn:M.clientPlaybackNonce}));if(W=W.serverAbrStreamingUrl)M.mX=new g.LJ(W,!0)}; Fkp=function(M,W,b){var T=W.videoId;T&&(M.videoId=T,b.video_id||(b.video_id=T));if(T=W.title)M.title=T,b.title||(b.title=T);if(T=W.lengthSeconds)M.lengthSeconds=Number(T),b.length_seconds||(b.length_seconds=T);if(T=W.keywords)M.keywords=xig(T);if(T=W.channelId)M.YJ=T,b.ucid||(b.ucid=T);if(T=W.viewCount)M.rawViewCount=Number(T);if(T=W.author)M.author=T,b.author||(b.author=T);if(b=W.shortDescription)M.shortDescription=b;if(b=W.isCrawlable)M.isListed=b;if(b=W.musicVideoType)M.musicVideoType=b;b=W.isLive; b!=null&&(M.isLivePlayback=b);if(b||W.isUpcoming)M.isPremiere=!W.isLiveContent;if(b=W.thumbnail)M.DU=ib(b);if(b=W.isExternallyHostedPodcast)M.isExternallyHostedPodcast=b;(b=W.stationType)&&b!=="STATION_TYPE_UNKNOWN"&&(M.Nv=!0);b=W.viewerLivestreamJoinPosition;b?.utcTimeMillis&&(M.P5=DZ(b.utcTimeMillis));M.G().experiments.FX("enable_centered_caption_for_tvfilm_video")&&W.isTvfilmVideo!=null&&(M.isTvfilmVideo=W.isTvfilmVideo)}; A3p=function(M,W){if(W.playerLegacyDesktopYpcTrailerRenderer){var b=W.playerLegacyDesktopYpcTrailerRenderer;M.rd=b.trailerVideoId||"";var T=(T=W.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&T.ypcTrailerRenderer}else W.playerLegacyDesktopYpcOfferRenderer?b=W.playerLegacyDesktopYpcOfferRenderer:W.ypcTrailerRenderer&&(T=W.ypcTrailerRenderer,W=T.fullVideoMessage,M.pg=W?g.Ga(W):"",M.rd=g.z(T,imG)?.videoDetails?.videoId||"");b&&(M.lx=b.itemTitle||"",b.itemUrl&&(M.c5=b.itemUrl),b.itemBuyUrl&&(M.lX= b.itemBuyUrl),M.I4=b.itemThumbnail||"",M.xR=b.offerHeadline||"",M.I7=b.offerDescription||"",M.TL=b.offerId||"",M.rh=b.offerButtonText||"",M.lz=b.offerButtonFormattedText||null,M.cT=b.overlayDurationMsec||NaN,M.pg=b.fullVideoMessage||"",M.al=!0);T&&((b=g.z(T,imG))?M.Vg={raw_player_response:b}:(b=g.z(T,hoS),M.Vg=b?ng(b):null),M.al=!0)}; uRG=function(M,W,b,T){W.isLiveDefaultBroadcast&&(M.isLiveDefaultBroadcast=!0);W.isUpcoming&&(M.isUpcoming=!0);if(W.isPostLiveDvr){M.f7=!0;if(T=W.latencyClass)M.latencyClass=zot[T]||"UNKNOWN";W.isLowLatencyLiveStream&&(M.isLowLatencyLiveStream=!0)}else{let q=!1;M.Pi?(M.allowLiveDvr=Q3()?!0:KU&&O1<5?!1:!0,M.isLivePlayback=!0):W.isLive?(T.livestream="1",M.allowLiveDvr=W.isLiveDvrEnabled?Q3()?!0:KU&&O1<5?!1:!0:!1,M.partnerId=27,q=!0):W.isUpcoming&&(q=!0);if(W.isLive||M.Pi){W.isLowLatencyLiveStream&&(M.isLowLatencyLiveStream= !0);const X=W.latencyClass;X&&(M.latencyClass=zot[X]||"UNKNOWN");if(W=W.liveChunkReadahead)M.liveChunkReadahead=W;if(W=b&&b.livePlayerConfig){W.hasSubfragmentedFmp4&&(M.hasSubfragmentedFmp4=!0);W.hasSubfragmentedWebm&&(M.XJ=!0);W.defraggedFromSubfragments&&(M.defraggedFromSubfragments=!0);if(b=W.liveExperimentalContentId)M.liveExperimentalContentId=Number(b);W=W.isLiveHeadPlayable;M.j("html5_live_head_playable")&&W!=null&&(M.isLiveHeadPlayable=W)}}q&&(M.isLivePlayback=!0,T.adformat&&T.adformat.split("_")[1]!== "8"||M.jG.push("heartbeat"))}}; ez=function(M){return new PQ(M.substring(0,2),M.substring(2))}; dL=function(M,W){return YE(M,"macroMarkersListEntity",W)}; S8a=function(M){const W=M.getWatchNextResponse()?.contents?.twoColumnWatchNextResults;(M=M.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.endScreen?.watchNextEndScreenRenderer?.results)||(M=W?.endScreen?.endScreen?.results);return M}; g.cQ=function(M){M=g.z(M.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,oU);return g.z(M?.playerBar,OmP)}; eol=function(){if(QK===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(W){}a:{try{var M=!!self.localStorage}catch{M=!1}if(M&&(M=g.us(`${g.DO()}::${"yt-player"}`))){QK=new PBL(M);break a}QK=void 0}}return QK}; g.gL=function(){const M=eol();if(!M)return{};try{const W=M.get("yt-player-lv");return JSON.parse(W||"{}")}catch(W){return{}}}; g.dit=function(M){const W=eol();W&&(M=JSON.stringify(M),W.set("yt-player-lv",M))}; g.s1=function(M){return g.gL()[M]||0}; g.wL=function(M,W){const b=g.gL();W!==b[M]&&(W!==0?b[M]=W:delete b[M],g.dit(b))}; g.pL=async function(M){return g.wf(orG(),M)}; $e=async function(M,W,b,T,q,X,G,V){if(g.s1(M)===4)return 4;const J=await g.qo();if(!J)throw g.FZ("wiac");V&&G!==void 0&&(G=await c3s(V,G));const B=b.lastModified||"0";V=await g.pL(J);try{return Yj++,await g.OF(V,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",m8:!0},D=>{if(X!==void 0&&G!==void 0){var a=`${M}${"|"}${W.id}${"|"}${B}${"|"}${String(X).padStart(10,"0")}`;a=D.objectStore("media").put(G,a)}else a=g.i1.resolve(void 0);var E=QNJ(M,W.OO());const n=QNJ(M,!W.OO());var C={fmts:so({dlt:T.downloadedEndTime.toString(), mket:T.maxKnownEndTime.toString(),avbr:T.averageByteRate.toString()}),format:b||{}};E=D.objectStore("index").put(C,E);const l=T.downloadedEndTime===-1;C=l?D.objectStore("index").get(n):g.i1.resolve(void 0);const N={fmts:"music",format:{}};D=l&&q&&!W.OO()?D.objectStore("index").put(N,n):g.i1.resolve(void 0);return g.i1.all([D,C,a,E]).then(([,R])=>{Yj--;let f=g.s1(M);if(f!==4&&l&&q||R!==void 0&&g.grJ(R.fmts))f=1,g.wL(M,f);return f})})}catch(D){Yj--; V=g.s1(M);if(V===4)return V;g.wL(M,4);throw D;}}; g.sNy=async function(M){const W=await g.qo();if(!W)throw g.FZ("ri");return g.OF(await g.pL(W),["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},b=>{const T=IDBKeyRange.bound(M+"|",M+"~");return b.objectStore("index").getAll(T).then(q=>q.map(X=>X?X.format:{}))})}; prt=async function(M,W,b,T,q){var X=await g.qo();if(!X)throw g.FZ("rc");X=g.OF(await g.pL(X),["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},G=>{const V=`${M}${"|"}${W}${"|"}${b}${"|"}${String(T).padStart(10,"0")}`;return G.objectStore("media").get(V)}); return q?X.then(G=>{if(G===void 0)throw Error("No data from indexDb");return wrL(q,G)}).catch(G=>{throw new g.EF(`Error while reading chunk: ${G.name}, ${G.message}`); }):X}; g.grJ=function(M){return M?M==="music"?!0:M.includes("dlt=-1")||!M.includes("dlt="):!1}; QNJ=function(M,W){return`${M}${"|"}${W?"v":"a"}`}; $gJ=function(M){const W={},b={};for(const X of M){var T=X.split("|");if(!X.match(g.Y8P)){b[X]="?";continue}M=Number(T.pop());if(isNaN(M)){b[X]="?";continue}var q=T.join("|");(T=W[q])?(q=T[T.length-1],M===q.end+1?q.end=M:T.push({start:M,end:M})):W[q]=[{start:M,end:M}]}for(const X of Object.keys(W))b[X]=W[X].map(G=>`${G.start}-${G.end}`).join(","); return b}; MTQ=function(M,W,b){for(b=M4(M,b);b>=0;){var T=M.levels[b];if(T.isLoaded(WM(T,W))&&(T=g.bY(T,W)))return T;b--}return g.bY(M.levels[0],W)}; bXt=function(M){if(!M.Z&&!M.B.isEmpty()){var W=M.B.remove();M.Z=W8G(M,W)}}; T$S=function(M,W,b){b=M4(M,b);for(let G,V;b>=0;b--)if(G=M.levels[b],V=WM(G,W),!G.isLoaded(V)){var T=M,q=b,X=V;const J=`${q}-${X}`;T.C.has(J)||(T.C.add(J),T.B.enqueue(q,{QO:q,KJ:X}))}bXt(M)}; W8G=function(M,W){const b=document.createElement("img");M.crossOrigin&&(b.crossOrigin=M.crossOrigin);b.src=M.levels[W.QO].WF(W.KJ);b.onload=()=>{var T=W.QO,q=W.KJ;M.Z!==null&&(M.Z.onload=null,M.Z=null);T=M.levels[T];T.loaded.add(q);bXt(M);const X=T.columns*T.rows;q*=X;T=Math.min(q+X-1,T.S()-1);q=[q,T];M.publish("l",q[0],q[1])}; return b}; g.bY=function(M,W){W>=M.C()&&M.V();const b=WM(M,W);var T=M.columns*M.rows,q=W%T;W=q%M.columns;q=Math.floor(q/M.columns);let X;const G=M.V()+1-T*b;G=W)return M.A.set(W,T),T;M.A.set(W,b-1);return b-1}; qRG=function(M,W,b){return(M=M.levels[W])?M.A(b):-1}; XoS=function(M,W,b){W={cpn:W};M.indexOf("/ibw/")===-1&&(W.ibw=b?String(b):"1369843");return{url:g.JM(M,W),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; jvg=function(M){try{const W=(new g.LJ(M,!0)).get("n");if(W){const b=M.match(/\/n\/([^/]+)/);if(b&&b[1]&&b[1]!==W)return M.replace(`/n/${b[1]}`,`/n/${W}`)}}catch(W){g.lR(W)}return M}; T7=function(M){if(M.isAd()&&(M.wK?M.videoId!==M.Vz.bV:M.videoId!=M.Vz.bV))return M.Vz.bV}; a4p=function(M){if(M){if(q9l(M))return M;M=Xps(M);if(q9l(M,!0))return M}return""}; Sz=function(M){var W=M.j("html5_enable_sabr_on_drive")&&M.Vz.gK==="gd";if(M.Fx)return M.nP&&M.dK("fds",{fds:!0},!0),!1;if(M.Vz.gK!=="yt"&&!W)return M.nP&&M.dK("dsvn",{ns:M.Vz.gK},!0),!1;if(M.cotn||!M.Z||M.Z.isOtf&&!M.j("html5_enable_sabr_otf_in_client")||M.B&&!M.B.Z()||M.Cb&&!M.j("html5_enable_sabr_csdai"))return!1;if(M.j("html5_use_sabr_requests_for_debugging"))return!0;M.nP&&M.dK("esfw",{usbc:M.nP,hsu:!!M.mX},!0);if(M.nP&&M.mX)return!0;if(M.j("html5_remove_client_sabr_determination"))return!1;var b= !M.Z.Me&&!M.Xy();W=b&&q4&&M.j("html5_enable_sabr_vod_streaming_xhr");b=b&&!q4&&M.j("html5_enable_sabr_vod_non_streaming_xhr");const T=Xl(M),q=M.j("html5_enable_sabr_drm_vod_streaming_xhr")&&q4&&M.Xy()&&!M.Z.Me&&(M.drmProduct==="1"?!1:!0);(W=W||b||T||q)&&!M.mX&&M.dK("sabr",{loc:"m"},!0);return W&&!!M.mX}; xig=function(M){const W={};for(const b of M)M=b.split("="),M.length===2?W[M[0]]=M[1]:W[b]=!0;return W}; G7=function(M){if(M.j("html5_onesie")&&M.errorCode)return!1;let W=g.ME(M.jG,"ypc");M.ypcPreview&&(W=!1);return M.S2()&&!M.loading&&(g.jn(M)||g.ME(M.jG,"heartbeat")||W)}; yZs=function(M,W){var b=W.raw_embedded_player_response;if(!b){var T=W.embedded_player_response;T&&(b=JSON.parse(T))}b&&(M.xj=b);if(M.xj){M.embeddedPlayerConfig=M.xj.embeddedPlayerConfig||null;if(b=M.xj.videoFlags)b.playableInEmbed&&(M.allowEmbed=!0),b.isPrivate&&(M.isPrivate=!0),b.userDisplayName&&(W.user_display_name=b.userDisplayName),b.userDisplayImage&&(W.user_display_image=b.userDisplayImage);if((b=M.xj.embedPreview)&&b.thumbnailPreviewRenderer){b=b.thumbnailPreviewRenderer;mil(M,b.controlBgHtml); if(T=b.defaultThumbnail)M.DU=ib(T);M.j("embeds_web_enable_search_button")&&b.searchButton&&(T=g.z(b.searchButton,gQ))&&(M.md=g.z(T.navigationEndpoint,g.VL));(T=g.z(b?.videoDetails,GbL))&&VTJ(M,W,T);T=g.z(b?.videoDetails,JZG);M.FT=!!b.addToWatchLaterButton;B$Q(M,b.shareButton);T?.musicVideoType&&(M.musicVideoType=T.musicVideoType);if(T=g.z(M.getEmbeddedPlayerResponse()?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.Jj))MFQ(M,T),M.videoId=T.videoId||M.videoId; b.videoDurationSeconds&&(M.lengthSeconds=DZ(b.videoDurationSeconds));b.webPlayerActionsPorting&&vrL(M,b.webPlayerActionsPorting);if(b=g.z(b?.playlist,DgJ)){M.U1=!0;T=[];var q=Number(b.currentIndex);if(b.contents)for(let X=0,G=b.contents.length;X=0?q.countDownSecsForFullscreen*1E3:-1);M.j("web_autonav_color_transition")&&q.watchToWatchTransitionRenderer&&(M.watchToWatchTransitionRenderer=g.z(q.watchToWatchTransitionRenderer,vJJ))}if(q=S8a(M))q=q?.[0]?.endScreenVideoRenderer?.navigationEndpoint?.clickTrackingParams,n=M.X(),q&&n&&(n.sessionData={itct:q});M.sY.currentVideoThumbnail&&(M.DU=ib(M.sY.currentVideoThumbnail)); (q=M.sY?.contents?.twoColumnWatchNextResults?.results?.results?.contents)&&q[0]&&(n=q[0].videoPrimaryInfoRenderer)&&n&&n.subtitle&&(M.hS=g.Ga(n.subtitle));q&&q[1]&&(q=q[1].videoSecondaryInfoRenderer?.owner?.videoOwnerRenderer?.thumbnail?.thumbnails)&&q.length&&(M.profilePicture=q[q.length-1].url);W=R$(W);if(q=M.getWatchNextResponse()?.onResponseReceivedEndpoints)for(var C of q)g.z(C,Eb)&&(M.cC=g.z(C,Eb)),q=g.z(C,mgs),q?.entityKeys&&(M.YX=q.entityKeys||[],q.visibleOnLoadKeys&&(M.visibleOnLoadKeys= q.visibleOnLoadKeys));M.j("web_key_moments_markers")&&(C=g.nP.getState().entities,q=g.s6("visibility_override","markersVisibilityOverrideEntity"),C=YE(C,"markersVisibilityOverrideEntity",q),M.lV=C?.videoId===(M.videoId||W)&&C?.visibilityOverrideMarkersKey?C.visibilityOverrideMarkersKey:M.visibleOnLoadKeys,M.visibleOnLoadKeys=[...M.lV])}}; L8P=function(M,W){if(W=W.raw_reel_item_watch_response)M.reelItemWatchResponse=W}; ZXs=function(M,W){M.fflags=HV(M.fflags,W.fflags);var b=W.iv_invideo_url;b&&(M.B$=UR(b));M.Bl=Zf(M.Bl,W.iv_ads_only);if(b=W.cta_conversion_urls)M.PQ=b;M.isPharma=Zf(M.isPharma,W.is_pharma);M.author=HV(M.author,W.author);M.oT=a4p(W.ttsurl)||M.oT;M.Px=Zf(M.Px,W.cc_asr);M.xk=HV(M.xk,W.channel_path);if(b=W.profile_picture)M.profilePicture=HV(M.profilePicture,b);M.videoCountText=HV(M.videoCountText,W.video_count_text);M.autonavState=I$(M.autonavState,W.autonav_state,lWt);M.clientPlaybackNonce=HV(M.clientPlaybackNonce, W.cpn);M.subscribed=Zf(M.subscribed,W.subscribed);M.rawViewCount=NG(M.rawViewCount,W.view_count);M.shortViewCount=HV(M.shortViewCount,W.short_view_count_text);M.publishedTimeText=HV(M.publishedTimeText||"",W.publishedTimeText);M.lengthText=HV(M.lengthText||"",W.lengthText);M.zl=HV(M.zl||"",W.zl);M.AE=HV(M.AE||"",W.AE);M.title=HV(M.title,W.title);M.subtitle=HV(M.subtitle,W.subtitle);M.expandedTitle=HV(M.expandedTitle,W.expanded_title);M.expandedSubtitle=HV(M.expandedSubtitle,W.expanded_subtitle);M.ypcPreview= HV(M.ypcPreview,W.ypc_preview);M.lO=HV(M.lO,W.ypc_origin);M.k_=Zf(M.k_,W.ypc_is_premiere_trailer);M.PT=HV(M.PT,W.ypc_clickwrap_message);M.paygated=Zf(M.paygated,W.paygated);M.O$=Zf(M.O$,W.requires_purchase);M.showShareButton=!Zf(!M.showShareButton,W.ss);M.FT=Zf(M.FT,W.showwatchlater);M.zm=Zf(M.zm,W.shownotifybutton);M.Tr=Zf(M.Tr,W.copy_share);if(b=W.el)M.eventLabel=b;if(b=W.keywords)M.keywords=xig(b.split(","));if(b=W.rvs)M.suggestions=yr(b).map(T=>T.playlist||T.list||T.api?new a9(M.Vz,T):new Da(M.Vz, T)); M.contentCheckOk=Zf(M.contentCheckOk,W.cco);M.racyCheckOk=Zf(M.racyCheckOk,W.rco);M.isLivingRoomDeeplink=Zf(M.isLivingRoomDeeplink,W.is_living_room_deeplink);M.oauthToken=HV(M.oauthToken,W.oauth_token);M.EY=HV(M.EY,W.kpt);M.visitorData=HV(M.visitorData,W.visitor_data);if(b=W.session_data)M.sessionData=EX(b,"&");M.NI=HV(M.NI,W.endscreen_ad_tracking_data);M.MP=Zf(M.MP,W.wait_for_vast_info_cards_xml);M.T2=Zf(M.T2,W.suppress_creator_endscreen);M.Ab=Zf(M.Ab,W.is_trueview_action);M.xY=HV(M.xY,W.tracking_list); tTq(M,W)}; g.Ub=function(M,W,b){W&&W.cpn&&g.lR(new g.EF("CPN provided in VideoData update",{cyY:W.cpn,kh:M.clientPlaybackNonce,EZz:b}));b?(R$(W),M.setData(W),G7(M)&&M.vv()):(W=W||{},yZs(M,W),yL(M,W),L8P(M,W),ZXs(M,W),M.publish("dataupdated"))}; tTq=function(M,W){W.inlineMetricEnabled&&(M.inlineMetricEnabled=!0);W.playback_progress_0s_url&&(M.bU=new IWl(W));if(W=W.video_masthead_ad_quartile_urls)M.uO=W.quartile_0_url,M.Nf=W.quartile_25_url,M.DF=W.quartile_50_url,M.eN=W.quartile_75_url,M.zH=W.quartile_100_url,M.qS=W.quartile_0_urls,M.w8=W.quartile_25_urls,M.Ca=W.quartile_50_urls,M.j3=W.quartile_75_urls,M.m1=W.quartile_100_urls}; g.BM=function(M,W){for(const b of W)b.cueRangeSetIdentifier&&M.kX.set(b.cueRangeSetIdentifier,b.playerCueRanges??[])}; N$q=function(M){if(!M)return null;for(const W of M)if(M=W.adPlacementRenderer?.renderer?.videoAdTrackingRenderer)return M;return null}; HXP=function(M){const W=M.playerResponse?.playerConfig?.compositeVideoConfig?.sourceConfigs;M=M.playerResponse?.playerConfig?.compositeVideoConfig?.defaultActiveSourceVideoId;if(!W||!W.length)return"";M||(M=W[0].videoId||"");for(const b of W)if(b.videoId===M&&b.audioTracks)for(const T of b.audioTracks)if(T.isDefaultForSource)return T.id||"";return""}; fWg=function(M,W,b){switch(W){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":b>30?M.limitedPlaybackDurationInSeconds=30:b<30&&b>10&&(M.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":M.limitedPlaybackDurationInSeconds=b*.2}}; RMS=function(M,W){return W!=null?Zf(M.W,W):M.W?M.W:M.Vz.preferGapless&&M.Vz.supportsGaplessShorts()}; rZs=function(M){return!!M&&isFinite(M)&&M>1E9}; xgy=function(M){return nU()&&CP(M)?!1:ke(M)&&(g.Tb(M.Vz)?!M.isLivePlayback:M.hlsvp)||!Q3()||M.Ri?!0:!1}; F8t=function(M){M=g.UX(M);return Number(M.expire)||0}; var iuS=function(M,W,b){return rD[y[0]](this,33,M,W,b)}; KP=function(M){const W=M.G();return M.Vz.gK==="hm"||M.Vz.gK==="gd"||W.experiments.hT().Z.UY(iXL)&&M.Vz.C?!0:!1}; B$Q=function(M,W){M.showShareButton=!!W;if(W=g.z(W,gQ)?.navigationEndpoint||g.z(W,gQ)?.command)M.Tr=!!g.z(W,hMa)}; VTJ=function(M,W,b){var T=b.channelThumbnail;T&&(T=T.thumbnails)&&(T=T[0])&&(W.profile_picture=T.url);if(T=g.z(g.z(b?.channelThumbnailEndpoint,AZy)?.urlEndpoint,g.HF))W.channel_path=T.url;if(T=b.collapsedRenderer)if(T=g.z(T,zMP)){const q=T.title;q&&(W.title=g.Ga(q));if(T=T.subtitle)W.subtitle=g.Ga(T)}if(b=b.expandedRenderer)if(b=g.z(b,uDQ)){if(T=b.title)W.expanded_title=g.Ga(T);if(T=b.subtitle)W.expanded_subtitle=g.Ga(T);if(b=b.subscribeButton)M.subscribeButtonRenderer=g.z(b,g.vM),M.subscribeButtonRenderer&& (W.ucid=M.subscribeButtonRenderer.channelId,W.subscribed=M.subscribeButtonRenderer.subscribed,M.zm=!!M.subscribeButtonRenderer.notificationPreferenceToggleButton,M.subscribeButtonRenderer.notificationPreferenceToggleButton&&M.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(W=M.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,W.isToggled?(M.BS=W.toggledServiceEndpoint||null,M.VI=W.defaultServiceEndpoint||null):(M.BS=W.defaultServiceEndpoint|| null,M.VI=W.toggledServiceEndpoint||null)))}}; SRt=function(M){return!!M.gg||!!M.uO||!!M.qS||!!M.bU||M.BT}; mc=function(M){return!!(M.B&&M.B.videoInfos&&M.B.videoInfos.length)}; LP=function(M){return M.OX()&&M.G().supportsGaplessShorts()}; lY=function(M){var W=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b=ol(M.Vz)==="TVHTML5_SIMPLY"&&M.Vz.Z.ctheme==="MUSIC";!M.PV&&(g.dB(M.Vz)||g.CL(M.Vz)||b)&&(W.includes(M.musicVideoType)||M.isExternallyHostedPodcast)&&(M.PV=!0);if(W=g.EL())W=/Starboard\/([0-9]+)/.exec(g.Vd()),W=(W?parseInt(W[1],10):NaN)<10;b=M.Vz;b=(ol(b)==="TVHTML5_CAST"||ol(b)==="TVHTML5"&&(b.Z.cver.startsWith("6.20130725")||b.Z.cver.startsWith("6.20130726")))&&M.Vz.Z.ctheme==="MUSIC";var T;if(T=!M.PV)b||(b= M.Vz,b=ol(b)==="TVHTML5"&&b.Z.cver.startsWith("7")),T=b;T&&!W&&(W=M.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",b=(M.j("cast_prefer_audio_only_for_atv_and_uploads")||M.j("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&M.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",W||b||M.isExternallyHostedPodcast)&&(M.PV=!0);return M.Vz.deviceIsAudioOnly||M.PV&&M.Vz.D}; tj=function(M){return M.Vz.j("html5_disable_av1")?!0:!1}; Za=function(M){return M.playerResponse?.playerConfig?.compositeVideoConfig?.compositeBroadcastType==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.I9=function(M){var W=M.W;M.j("html5_gapless_unlimit_format_selection")&&LP(M)&&(W=!1);const b=!!M.Z&&M.Z.Me;W=uNS(M.Vz,{LV:M.LV(),Ci:b,g7:lY(M),L3:M.L3,rZ:W,isOtf:M.isOtf(),Sf:M.Sf(),Pi:M.Pi,qf:M.getUserAudio51Preference(),disableAv1:tj(M),oR:Za(M)});Sz(M)&&(W.cP=!0);nU()&&M.playerResponse&&M.playerResponse.playerConfig&&M.playerResponse.playerConfig.webPlayerConfig&&M.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(W.A=!0,W.S=!0);M.W&&M.isAd()&&(M.Vp&&(W.X=M.Vp),M.nx&& (W.B=M.nx));M.OX()&&(W.sY=g.TO(M.Vz.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));W.An=M.isLivePlayback&&M.Xy()&&M.Vz.j("html5_drm_live_audio_51");W.Zs=M.vL;M.j("html5_disable_vp9_hdr_fairplay")&&nU()&&(W.Zs=!0);W.XX=!Sz(M);return M.Ds=W}; PwQ=function(M){rO("drm_pb_s",void 0,M.gK);M.qw||M.Z&&M.Z.A();var W={};M.Z&&(W=jcL(M.S6,g.I9(M),M.Vz.S,M.Z,b=>M.publish("ctmp","fmtflt",b),!0,new Set)); W=new OXP(W,M.Vz,M.qb,M.useCobaltWidevine?nU()?CP(M):!1:!1,(b,T)=>{M.dK(b,T)}); g.t(M,W);M.vp=!1;M.loading=!0;csG(W,b=>{rO("drm_pb_f",void 0,M.gK);for(var T of b)switch(T.flavor){case "fairplay":T.qw=M.qw;T.lJ=M.lJ;T.PN=M.PN;break;case "widevine":T.yg=M.yg}M.dS=b;if(M.dS.length>0&&(M.S=M.dS[0],M.Vz.jW())){b={};for(const [q,X]of Object.entries(M.S.V)){T=X;let G="unk";const V=q.match(/(.*)codecs="(.*)"/);V&&(G=V[2]);b[G]=T}M.dK("drmProbe",b)}M.vv()})}; eMG=function(M){var W;if(W=!!M.cotn)W=M.videoId,W=!!W&&g.s1(W)===1;return W&&!M.Dc}; cZL=function(M){var W=M.playerResponse?.streamingData?.adaptiveFormats||[],b=null;if(W.length>0)b=dgq(M,W);else if(!M.j("html5_deprecate_adaptive_formats_string")){M.dK("pafmtstr",{s:M.adaptiveFormats.substring(0,50)});if((W=M.adaptiveFormats)&&!ke(M)){M.Vz.S.V&&(t$=!0);W=N4(W);b=M.contentProtection;var T=M.lengthSeconds,q=M.isLivePlayback,X=M.f7,G=M.Vz,V=Jsp(W);if(q||X){T=G?.experiments;q=new g.se("",T,!0);q.Me=!0;q.isManifestless=!0;q.V=!X;q.isLive=!X;q.f7=X;for(B of W){G=V3(B,b);V=t7(B.url,B.sp, B.s);var J=V.get("id");J&&J.includes("%7E")&&(q.O=!0);J=T?.FX("html5_max_known_end_time_rebase");const D=Number(B.target_duration_sec)||5,a=Number(B.max_dvr_duration_sec)||14400,E=Number(V.get("mindsq")||V.get("min_sq")||"0"),n=Number(V.get("maxdsq")||V.get("max_sq")||"0")||Infinity;q.Sk=q.Sk||E;q.Hp=q.Hp||n;const C=!tE(G.mimeType);V&&pO(q,new oJt(V,G,{WO:D,k7:C,H$:a,Sk:E,Hp:n,bu:300,f7:X,R4:J}))}var B=q}else B=V==="FORMAT_STREAM_TYPE_OTF"?BOG(W,b,T,G?.experiments):nDp(W,b,T,G);W.length>0&&(W=W[0], KP(M)&&W.url&&(M.GY=M.GY||F8t(W.url)));W=M.isLivePlayback&&!M.f7&&!M.Lx&&!M.isPremiere;M.j("html5_live_head_playable")&&(!HM(M)&&W&&M.dK("missingLiveHeadPlayable",{}),M.Vz.gK==="yt"&&(B.xk=!0));b=B}else b=null;M.dK("pafmts",{isManifestFilled:!!b})}if(!b)return!1;fP(M,b);return!0}; R9=function(M){return!(!M.Z||!M.Z.isManifestless)}; HM=function(M){return M.j("html5_live_head_playable")&&R9(M)&&M.Vz.gK==="yt"?M.isLiveHeadPlayable:M.isLivePlayback}; dgq=function(M,W){if(W.length===0||ke(M))return null;M.Vz.S.V&&(t$=!0);var b=M.contentProtection;var T=M.lengthSeconds,q=M.isLivePlayback,X=M.f7,G=M.Vz,V=WKq(W);if(q||X){T=G.experiments;q=new g.se("",T,!0);q.V=!X;q.Me=!0;q.isManifestless=!0;q.isLive=!X;q.f7=X;for(const B of W){G=wx(B,b);const {ZR:D,s:a,L9:E}=Ht(83,B);V=t7(D||B.url||"",E,a);var J=V.get("id");J&&J.includes("%7E")&&(q.O=!0);J=T?.FX("html5_max_known_end_time_rebase");const n=Number(B.targetDurationSec||5),C=Number(B.maxDvrDurationSec|| 14400),l=Number(V.get("mindsq")||V.get("min_sq")||"0"),N=Number(V.get("maxdsq")||V.get("max_sq")||"0")||Infinity;q.Sk=q.Sk||l;q.Hp=q.Hp||N;const R=!tE(G.mimeType);V&&pO(q,new oJt(V,G,{WO:n,k7:R,H$:C,Sk:l,Hp:N,bu:300,f7:X,R4:J}))}b=q}else b=V==="FORMAT_STREAM_TYPE_OTF"?TOq(W,b,T,G.experiments):q2J(W,b,T,G);W.length>0&&(W=W[0],KP(M)&&W.url&&(M.GY=M.GY||F8t(W.url)));W=M.isLivePlayback&&!M.f7&&!M.Lx&&!M.isPremiere;M.j("html5_live_head_playable")&&(!HM(M)&&W&&M.dK("missingLiveHeadPlayable",{}),M.Vz.gK=== "yt"&&(b.xk=!0));return b}; N4=function(M,W){M=yr(M);const b={};if(W)for(var T of W.split(","))(W=T.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(b[W[1]]={width:W[2],height:W[3]});for(const q of M)if(T=b[q.itag])q.width=T.width,q.height=T.height;return M}; fP=function(M,W,b=!1){M.NW=void 0;M.Z=W;g.t(M,W);W.Sk=M.Sk;W.Hp=M.Hp;W.AX=M.AX;W.KU=M.KU;W.QZ=M.QZ;M.mX&&(W.gK=new QvL(M.mX));(M.LV()||g.rF(M))&&M.jG.push("webgl");M.Z.isLive||(M.isLivePlayback=!1);const T=W.sourceUrl.split("/");if(M.wK?T.indexOf("manifest_duration")!==-1:T.indexOf("manifest_duration")!=-1)M.JX=Number(T[T.indexOf("manifest_duration")+1]);if(W.V||W.isManifestless)W.subscribe("clienttemp",M.dK,M),b?W.subscribe("refresh",M.SN,M):W.subscribe("cuepointsadded",M.wk,M);W.A()?M.vp=!0:PR= void 0;M.Lx&&(W.D=M.Lx,W.isLive=!0,M.isLivePlayback=!0);W.isPremiere=M.isPremiere;W.isLiveHeadPlayable=M.isLiveHeadPlayable}; CP=function(M){return M.j("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; ke=function(M){return nU()?!CP(M):UL()?!(!M.qw||!M.j("html5_enable_safari_fairplay")&&Q3()):!1}; xe=function(M){return M.wK?M.isLowLatencyLiveStream&&M.Z!=null&&al(M.Z)>=5:M.isLowLatencyLiveStream&&M.Z!=void 0&&al(M.Z)>=5}; gJl=function(M){M.loading=!0;M.s2=!1;if(eMG(M))g.sNy(M.videoId).then(T=>{if(M.playerResponse?.streamingData){var q=[];for(const X of T)T=Object.assign({},X),T.signatureCipher="",q.push(T);q.length<2&&M.dK("offmlf",{len:q.length});q=dgq(M,q);lY(M)&&R$J(q,!1);fP(M,q);M.dK("dlr",{})}else M.dK("offsdm",{cotn:M.Oc?M.Oc.cotn:"0",cpn:M.clientPlaybackNonce})}).then(()=>{M.vv()}); else{nX(M.oa)||g.lR(new g.EF("DASH MPD Origin invalid: ",M.oa));var W=M.oa,b=g.TO(M.Vz.experiments,"dash_manifest_version")||4;W=g.JM(W,{mpd_version:b});M.isLowLatencyLiveStream&&M.latencyClass!=="NORMAL"||(W=g.JM(W,{pacing:0}));kXy(W,M.Vz.experiments,M.isLivePlayback).then(T=>{M.ST()||(fP(M,T,!0),rO("mrc",void 0,M.gK),M.vv())},T=>{M.ST()||(M.loading=!1,M.publish("dataloaderror",new g.WE("manifest.net.retryexhausted",{backend:"manifest", rc:T.status},1)))}); rO("mrs",void 0,M.gK)}}; Fl=function(M){if(!M.isProximaLatencyEligible)return 0;const W=qY();return M.Vz.getWebPlayerContextConfig()?.enableProximaLowLatency?2:W===1?1:M.j("html5_enable_proxima")?2:0}; iY=function(M,W){return M.j(W)?!0:(M.fflags||"").includes(W+"=true")}; svP=function(M,W){const b=W||xgy(M)||M.isExternallyHostedPodcast;if(!M.Z||b)return M.dK("skipDash",{dm:!!M.Z,air:W,dd:M.Ri,mss:Q3(),"3pp":M.isExternallyHostedPodcast}),$s();lY(M)&&R$J(M.Z,M.isLivePlayback);return MG().then(()=>KGt(M.S6,g.I9(M),M.Vz.S,M.Z,M.S,T=>M.publish("ctmp","fmtflt",T),M.QE,hj(M)).then(T=>{M.wg(T); M.S6.V=null;/^av/.test(M.clientPlaybackNonce)&&M.Ds&&M.dK("av1",M.Ds.V)}))}; poa=function(M,W){if(W&&M.hlsvp)return $s();if(M.hlsFormats){if(W=N4(M.hlsFormats)){const T=[];for(var b of W)b.url&&(b.url=jvg(b.url)),M.Ds?.Z&&T.push(b.itag);M.Ds?.Z&&T.length>0&&M.dK("hlsfmt",{itags:T.join(".")})}M.A5=umt(M.Vz,W);M.A5&&woG(M,M.A5);b=M.clientPlaybackNonce;return dqt(M.Vz,M.isAd(),W,M.playerResponse?.captions?.playerCaptionsRenderer?.baseUrl??null,M.kL,b,T=>M.publish("ctmp","hlsflt",T)).then(T=>{let q=0; const X=[];for(const G of T)X.push(G.getInfo()?.itag),G.getInfo()?.D()?.numChannels>q&&(q=G.getInfo().audio.numChannels);q>2&&M.dK("hlschl",{mn:q});M.Ds?.Z&&M.dK("hlsfmtaf",{itags:X.join(".")});if(M.j("html5_enable_vp9_fairplay")&&M.S?.Z()){M.dK("drm",{sbdlfbk:1});for(const G of M.dS)if(ue(G)){M.S=G;break}}Aj(M,T)})}return $s()}; YRq=function(M){if(M.isExternallyHostedPodcast&&M.Tt){const W=N4(M.Tt);if(!W[0])return $s();M.C5=W[0];return sRt(M.Vz,W[0]).then(b=>{Aj(M,b)})}return M.ek&&M.PC?gEq(M.Vz,M.isAd(),M.ek).then(W=>{Aj(M,W)}):$s()}; MAg=function(M){if(M.isExternallyHostedPodcast)return $s();const W=N4(M.Tt,M.h7);if(M.hlsvp){const b=XoS(M.hlsvp,M.clientPlaybackNonce,M.kL);W.push(b)}return tRS(M.Vz,M.isAd(),W,$ml(M)).then(b=>{Aj(M,b)})}; hj=function(M){const W=M.j("html5_enable_server_format_filter")&&!M.Xy(),b=M.j("html5_enable_server_format_filter_for_drm")&&M.Xy();return Sz(M)&&(W||b)}; woG=function(M,W){W.sort((b,T)=>b.toString().localeCompare(T.toString(),M.Vz.hostLanguage))}; Aj=function(M,W){M.bV=W;M.wg(new v_(g.dG(M.bV,b=>b.getInfo())))}; $ml=function(M){const W={cpn:M.clientPlaybackNonce,c:M.Vz.Z.c,cver:M.Vz.Z.cver};M.ze&&(W.ptk=M.ze,W.oid=M.O4,W.ptchn=M.XC,W.pltype=M.Qy,M.ZG&&(W.m=M.ZG));return W}; g.z7=function(M){return ke(M)&&M.qw?{fairplay:"https://youtube.com/api/drm/fps?ek=uninitialized"}:M.V&&M.V.contentProtection||null}; uY=function(M){return M.playerResponse&&M.playerResponse.paidContentOverlay&&M.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.z(M.sY?.playerOverlays?.playerOverlayRenderer?.playerDisclosure,Why)||null}; bWy=function(M){const W=uY(M);return W&&W.text?g.Ga(W.text):M.paidContentOverlayText}; T8s=function(M){const W=uY(M);return W&&W.durationMs?DZ(W.durationMs):M.paidContentOverlayDurationMs}; Sn=function(M){let W="";if(M.dN)return M.dN;M.isLivePlayback&&(W=M.allowLiveDvr?"dvr":M.isPremiere?"lp":M.Lx?"window":"live");M.f7&&(W="post");return W}; g.Ob=function(M,W){return typeof M.keywords[W]!=="string"?null:M.keywords[W]}; g.jn=function(M){return!!(M.oa||M.Tt||M.ek||M.hlsvp||M.B1())}; EJg=function(M){return(M=M.Ha)&&M.showError?M.showError:!1}; g.PM=function(M){return HM(M)&&!M.allowLiveDvr}; en=function(M){return HM(M)&&M.allowLiveDvr}; g.dF=function(M){return!!M.Z&&mVL(M.Z)}; g.o9=function(M){return!!M.Z&&LKt(M.Z)}; g.rF=function(M){return!!M.Z&&tMs(M.Z)}; g.cM=function(M){return!!M.Z&&lrP(M.Z)}; g.q5l=function(M){if(M.T2)return null;let W=M.lc;W||(W=M.playerResponse&&M.playerResponse.endscreen&&M.playerResponse.endscreen.endscreenUrlRenderer&&M.playerResponse.endscreen.endscreenUrlRenderer.url);return W||null}; g.XES=function(M){return M.T2?null:M.playerResponse&&M.playerResponse.endscreen&&M.playerResponse.endscreen.endscreenRenderer||null}; g.QL=function(M){if(!M.playerResponse||!M.playerResponse.annotations)return null;for(const W of M.playerResponse.annotations)if(W.playerAnnotationsExpandedRenderer&&W.playerAnnotationsExpandedRenderer.featuredChannel)return W.playerAnnotationsExpandedRenderer;return null}; gF=function(M){return M.adFormat&&(M.wK?M.adFormat!=="1_5":M.adFormat!="1_5")?"adunit":M.eventLabel||M.Vz.Zs}; g.sb=function(M){return gF(M)==="shortspage"}; wF=function(M){return M.eO||gF(M)==="detailpage"||gF(M)==="shortspage"||M.mutedAutoplay}; Glt=function(M){const W=gF(M)==="adunit"?M.FQ:wF(M)?gF(M)==="detailpage"||gF(M)==="shortspage"?M.isAutonav||M.jT>0:M.WP?!1:M.Vz.zm||M.Vz.ek||!g.tP(M.Vz)?!0:!1:(M.WP?0:M.Y9)&&g.tP(M.Vz)?!0:!1;M.j("html5_log_detailpage_autoplay")&&gF(M)==="detailpage"&&M.dK("autoplay_info",{autoplay:M.eO,autonav:M.isAutonav,wasDompaused:M.WP,result:W});return W}; jeQ=function(M){let W=1;var b=g.TO(M.Vz.experiments,"html5_default_ad_gain");b&&M.isAd()&&(W=b);b=M.A?.audio.B!=null?M.A?.audio.B:M.xs;isNaN(b)||(M.u3=4);return Math.min(1,10**(-b/20))||W}; Gnq=function(M){if(M.j("html5_stateful_audio_normalization")){{let T=1;var W=g.TO(M.Vz.experiments,"html5_default_ad_gain");W&&M.isAd()&&(T=W);const q=M.A?.audio.A??M.Is;if(q==null||isNaN(q))M=jeQ(M);else{W=(0,g.u)();M.u3=1;var b=W-M.Vz.Eh<=M.maxStatefulTimeThresholdSec*1E3;M.applyStatefulNormalization&&b?M.u3=2:b||(M.Vz.Tr=Infinity,M.Vz.Eh=NaN);b=(M.u3===2?g.fy(M.Vz.Tr,M.minimumLoudnessTargetLkfs,M.loudnessTargetLkfs):M.loudnessTargetLkfs)-q;M.u3!==2&&(b+=M.playerResponse?.playerConfig?.audioConfig?.loudnessNormalizationConfig?.statelessLoudnessAdjustmentGain|| 0);b=Math.min(b,0);M.preserveStatefulLoudnessTarget&&(M.Vz.Tr=q+b,M.Vz.Eh=W);M=Math.min(1,10**(b/20))||T}}}else M=jeQ(M);return M}; g.VAL=function(M){return M.Me()&&Sz(M)}; pP=function(M){return!!M.playerResponse?.playerConfig?.mediaCommonConfig?.splitScreenEligible}; JES=function(M){return isNaN(M)?0:Math.max((Date.now()-M)/1E3-30,0)}; Ye=function(M){return!(!M.Dc||!M.Vz.D)&&M.B1()}; $f=function(M){return M.ql&&M.enableServerStitchedDai}; B8a=function(M){return M.nP&&!M.mX}; Xl=function(M){var W;if(!(W=q4&&M.Me()&&M.Xy()&&(M.drmProduct==="1"?!1:!0)&&M.j("html5_sabr_live_drm_streaming_xhr"))){W=M.Me()&&!M.Xy()&&q4;var b=M.Me()&&M.latencyClass!=="ULTRALOW"&&!M.isLowLatencyLiveStream&&M.j("html5_sabr_live_normal_latency_streaming_xhr"),T=M.isLowLatencyLiveStream&&M.j("html5_sabr_live_low_latency_streaming_xhr");const q=M.latencyClass==="ULTRALOW"&&M.j("html5_sabr_live_ultra_low_latency_streaming_xhr");W=W&&(b||T||q)}b=W;W=M.enableServerStitchedDai&&b&&M.j("html5_enable_sabr_ssdai_streaming_xhr"); b=!M.enableServerStitchedDai&&b;T=M.Me()&&!q4&&M.j("html5_enable_sabr_live_non_streaming_xhr");M=q4&&(M.FD()||pP(M)&&M.j("html5_enable_sabr_for_lifa_eligible_streams"));return W||b||T||M}; M8=function(M){return M.F5?["OK","LIVE_STREAM_OFFLINE"].includes(M.F5.status):!0}; g.DmJ=function(M){return M.captionsLanguagePreference||M.Vz.captionsLanguagePreference||g.Ob(M,"yt:cc_default_lang")||M.Vz.aT}; g.Wf=function(M){return!!M.embeddedPlayerConfig?.embeddedPlayerFlags?.enableMusicUx}; b7=function(M){return M.Vz.A&&M.isPrivate}; awL=function(M){return M.playerResponse?.playerConfig?.daiConfig?M.TX?1:M.UE?2:0:3}; g.LT=function(M){var W=M.G();const b=g.TW(W);var T=W.sj;g.Th(W)&&(T&&(b.thirdParty={...b.thirdParty,embedUrl:T}),$Ht(b,M));(T=M.O)?b.clickTracking={clickTrackingParams:T}:g.Th(M.G())&&g.F("EVENT_ID")?b.clickTracking={clickTrackingParams:g.F("EVENT_ID")}:W.j("html5_log_missing_itct")&&(T=new g.EF("Missing ITCT in InnerTubeContext",{isAd:M.isAd(),ggs:W.getWebPlayerContextConfig()?.contextId}),g.O(T));T=b.client||{};var q="EMBED",X=gF(M);X==="leanback"?q="WATCH":W.j("gvi_channel_client_screen")&&X=== "profilepage"?q="CHANNEL":M.Pi?q="LIVE_MONITOR":X==="detailpage"?q="WATCH_FULL_SCREEN":X==="adunit"?q="ADUNIT":X==="sponsorshipsoffer"&&(q="UNKNOWN");T.clientScreen=q;if(q=M.kidsAppInfo)T.kidsAppInfo=JSON.parse(q);(X=M.Uc)&&!q&&(T.kidsAppInfo={contentSettings:{ageUpMode:EBJ[X]}});if(q=M.PS)T.unpluggedAppInfo={enableFilterMode:!0};(X=M.unpluggedFilterModeType)&&!q&&(T.unpluggedAppInfo={filterModeType:nBJ[X]});if(q=M.d9)T.unpluggedLocationInfo=q;b.client=T;T=b.request||{};M.Hr&&(T.isPrefetch=!0);if(q= M.mdxEnvironment)T.mdxEnvironment=q;if(q=M.mdxControlMode)T.mdxControlMode=yEP[q];b.request=T;T=b.user||{};if(q=M.Zs)T.credentialTransferTokens=[{token:q,scope:"VIDEO"}];if(q=M.EY)T.delegatePurchases={oauthToken:q},T.kidsParent={oauthToken:q};if(W=W.getWebPlayerContextConfig()?.userContentRating)T.serializedUserContentRating=W;b.user=T;if(W=M.contextParams)b.activePlayers=[{playerContextParams:W}];if(M=M.clientScreenNonce)b.clientScreenNonce=M;return b}; g.TW=function(M){const W=g.ok(),b=W.client||{};if(M.forcedExperiments){var T=M.forcedExperiments.split(",");const q=[];for(const X of T)q.push(Number(X));b.experimentIds=q}if(T=M.homeGroupInfo)b.homeGroupInfo=JSON.parse(T);if(T=M.getPlayerType())b.playerType=T;if(T=M.Z.ctheme)b.theme=T;if(T=M.livingRoomAppMode)b.tvAppInfo={...b.tvAppInfo,livingRoomAppMode:T};T=M.deviceYear;M.j("html5_propagate_device_year")&&T&&(b.tvAppInfo={...b.tvAppInfo,deviceYear:T});if(T=M.livingRoomPoTokenId)b.tvAppInfo={...b.tvAppInfo, livingRoomPoTokenId:T};W.client=b;T=W.user||{};M.enableSafetyMode&&(T={...T,enableSafetyMode:!0});!b.tvAppInfo?.usePageidAsHeader&&M.pageId&&(T={...T,onBehalfOfUser:M.pageId});W.user=T;return W}; n0Q=function(M){const W=!M?.Sf()&&M?.Me()&<();return{supportsVp9Encoding:!(!M?.Ih()||W),supportXhr:q4}}; CSp=async function(M,W){M={context:g.TW(M.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:M.videoId,cpn:M.clientPlaybackNonce}}]};const b=g.XN(UmQ);return await g.SM(W,M,b)}; knG=function(M,W,b){const T=g.TO(W.experiments,"bg_vm_reinit_threshold");(!MY||(0,g.u)()-MY>T)&&CSp(M,b).then(q=>{q&&(q=q.botguardData)&&g.bu(q,W)},q=>{M.ST()||(q=bS(q),M.dK("attf",q.details))})}; var r1G=function(M,W){return xZ[y[0]](this,2,M,W)}; g.q8=function(M,W,...b){M.state.B.publish(W,...b);M.state.V.publish(W,...b)}; Q=function(M,W,b){M.state.Z[W]=(...T)=>b.apply(M,T)}; XS=function(M,W,b){M.state.Z.hasOwnProperty(W)||Q(M,W,b);M.state.S[W]=(...T)=>b.apply(M,T); M.state.W.add(W)}; jY=function(M,W,b){M.state.Z.hasOwnProperty(W)||Q(M,W,b);M.app.G().D&&(M.state.C[W]=(...T)=>b.apply(M,T),M.state.W.add(W))}; g.GW=function(M,W,b){return M.state.Z[W](...b)}; g.Vc=function(M,W,...b){M.state.B.publish(W,...b);M.state.V.publish(W,...b);M.state.A.publish(W,...b)}; g.Jp=function(M,W,...b){M.state.B.publish(W,...b);M.state.V.publish(W,...b);M.state.A.publish(W,...b);M.state.D.publish(W,...b)}; KhP=function(M,W,b){typeof M==="string"&&(M={mediaContentUrl:M,startSeconds:W,suggestedQuality:b});a:{if((W=M.mediaContentUrl)&&(W=/\/([ve]|embed)\/([^#?]+)/.exec(W))&&W[2]){W=W[2];break a}W=null}M.videoId=W;return Bf(M)}; Bf=function(M,W,b){if(typeof M==="string")return{videoId:M,startSeconds:W,suggestedQuality:b};W={};for(const T of vBP)M[T]&&(W[T]=M[T]);if(M=M.embedConfig||M.embed_config)if(typeof M==="string")W.embed_config=M;else if(g.lQ(M))try{const T=JSON.stringify(M);W.embed_config=T}catch(T){console.error("Invalid embedConfig JSON",T)}return W}; mmt=function(M,W,b,T){if(g.lQ(M)&&!Array.isArray(M)){W="playlist list listType index startSeconds suggestedQuality".split(" ");b={};for(T=0;TM.getPlaybackQuality(1)); XS(M,"setPlaybackQuality",M.S6);XS(M,"getAvailableQualityLevels",M.lV);XS(M,"getCurrentTime",M.xk);XS(M,"getDuration",M.Lp);XS(M,"addEventListener",M.gK);XS(M,"removeEventListener",M.GN);XS(M,"getDebugText",M.MK);XS(M,"getVideoData",()=>Lht(M)); XS(M,"addCueRange",M.D);XS(M,"removeCueRange",M.removeCueRange);XS(M,"setSize",M.setSize);XS(M,"getApiInterface",M.getApiInterface);XS(M,"destroy",M.destroy);XS(M,"mutedAutoplay",M.mutedAutoplay);const W=M.app.G();W.C||(XS(M,"getVideoEmbedCode",M.getVideoEmbedCode),XS(M,"getVideoUrl",M.fv));XS(M,"getMediaReferenceTime",M.wK);XS(M,"getSize",M.getSize);XS(M,"setFauxFullscreen",M.Px);W.j("embeds_enable_move_set_center_crop_to_public")&&XS(M,"setCenterCrop",M.setCenterCrop);W.C||XS(M,"logImaAdEvent", M.logImaAdEvent);XS(M,"preloadVideoById",M.GY);XS(M,"wakeUpControls",M.wakeUpControls)}; g.am=function(M){return(M=tAJ(M.app.lk()))?M.rS():null}; ne=function(M){const W=g.Gh(M.app.G()),b=M.app.getVideoData()?.U1;M=EA(M.app);return g.Fi(W)&&!b||M?!1:!0}; ZWL=function(M,W,b){return typeof M==="number"?{playerType:M,qW:W,cpn:b}:M||{}}; IwQ=function(M){let W=M.raw_player_response;if(!W){var b=M.player_response;b&&(W=JSON.parse(b))}delete M.player_response;delete M.raw_player_response;W&&(M.raw_player_response={streamingData:W.streamingData,playerConfig:W.playerConfig},W.playbackTracking?.qoeUrl&&(M.raw_player_response={...M.raw_player_response,playbackTracking:{qoeUrl:W.playbackTracking.qoeUrl}}),W.videoDetails&&(W.videoDetails.videoId||W.videoDetails.lengthSeconds)&&(b={},W.videoDetails.videoId&&(b.videoId=W.videoDetails.videoId), W.videoDetails.lengthSeconds&&(b.lengthSeconds=W.videoDetails.lengthSeconds),M.raw_player_response={...M.raw_player_response,videoDetails:b}))}; yc=function(M,W){const b={};if(M.app.G().O){for(const T of N8y)W.hasOwnProperty(T)&&(b[T]=W[T]);if(M=b.qoe_cat)W="",typeof M==="string"&&M.length>0&&(W=M.split(",").filter(T=>HWt.includes(T)).join(",")),b.qoe_cat=W; IwQ(b)}else for(const T of fwp)W.hasOwnProperty(T)&&(b[T]=W[T]);return b}; rEL=function(M){return M?RqP[M]||5:5}; xmP=function(M){Q(M,"getInternalApiInterface",M.getInternalApiInterface);Q(M,"getTrustedApi",M.getTrustedApi);Q(M,"addEventListener",M.X);Q(M,"removeEventListener",M.p7);Q(M,"cueVideoByPlayerVars",M.Zs);Q(M,"loadVideoByPlayerVars",M.aT);Q(M,"preloadVideoByPlayerVars",M.k_);Q(M,"getAdState",M.getAdState);Q(M,"sendAbandonmentPing",M.sendAbandonmentPing);Q(M,"setLoopRange",M.setLoopRange);Q(M,"getLoopRange",M.getLoopRange);Q(M,"setAutonavState",M.setAutonavState);Q(M,"seekTo",M.Ic);Q(M,"seekBy",M.XP); Q(M,"seekToLiveHead",M.seekToLiveHead);Q(M,"requestSeekToWallTimeSeconds",M.requestSeekToWallTimeSeconds);Q(M,"seekToStreamTime",M.seekToStreamTime);Q(M,"prefetchKeyPlay",M.prefetchKeyPlay);Q(M,"startSeekCsiAction",M.startSeekCsiAction);Q(M,"getStreamTimeOffset",M.getStreamTimeOffset);Q(M,"isOrchestrationLeader",M.isOrchestrationLeader);Q(M,"getVideoData",M.oT);Q(M,"setInlinePreview",M.setInlinePreview);Q(M,"getAppState",M.getAppState);Q(M,"updateLastActiveTime",M.updateLastActiveTime);Q(M,"setBlackout", M.setBlackout);Q(M,"setUserEngagement",M.setUserEngagement);Q(M,"updateSubtitlesUserSettings",M.updateSubtitlesUserSettings);Q(M,"getPresentingPlayerType",M.B);Q(M,"canPlayType",M.canPlayType);Q(M,"updatePlaylist",M.updatePlaylist);Q(M,"updateVideoData",M.updateVideoData);Q(M,"updateEnvironmentData",M.updateEnvironmentData);Q(M,"sendVideoStatsEngageEvent",M.ek);Q(M,"productsInVideoVisibilityUpdated",M.productsInVideoVisibilityUpdated);Q(M,"setSafetyMode",M.setSafetyMode);Q(M,"isAtLiveHead",W=>M.isAtLiveHead(void 0, W)); Q(M,"getVideoAspectRatio",M.getVideoAspectRatio);Q(M,"getPreferredQuality",M.getPreferredQuality);Q(M,"getPlaybackQualityLabel",M.getPlaybackQualityLabel);Q(M,"setPlaybackQualityRange",M.Ha);Q(M,"onAdUxClicked",M.onAdUxClicked);Q(M,"getFeedbackProductData",M.getFeedbackProductData);Q(M,"getStoryboardFrame",M.getStoryboardFrame);Q(M,"getStoryboardFrameIndex",M.getStoryboardFrameIndex);Q(M,"getStoryboardLevel",M.getStoryboardLevel);Q(M,"getNumberOfStoryboardLevels",M.getNumberOfStoryboardLevels);Q(M, "getCaptionWindowContainerId",M.getCaptionWindowContainerId);Q(M,"getAvailableQualityLabels",M.getAvailableQualityLabels);Q(M,"addCueRange",M.addCueRange);Q(M,"addUtcCueRange",M.addUtcCueRange);Q(M,"showAirplayPicker",M.showAirplayPicker);Q(M,"dispatchReduxAction",M.dispatchReduxAction);Q(M,"getPlayerResponse",M.EY);Q(M,"getWatchNextResponse",M.FT);Q(M,"getHeartbeatResponse",M.jT);Q(M,"getCurrentTime",M.An);Q(M,"getDuration",M.WG);Q(M,"getPlayerState",M.getPlayerState);Q(M,"getPlayerStateObject", M.bV);Q(M,"getVideoLoadedFraction",M.getVideoLoadedFraction);Q(M,"getProgressState",M.getProgressState);Q(M,"getVolume",M.getVolume);Q(M,"setVolume",M.W_);Q(M,"isMuted",M.isMuted);Q(M,"mute",M.qR);Q(M,"unMute",M.q_);Q(M,"loadModule",M.loadModule);Q(M,"unloadModule",M.unloadModule);Q(M,"getOption",M.YD);Q(M,"getOptions",M.getOptions);Q(M,"setOption",M.setOption);Q(M,"loadVideoById",M.Zo);Q(M,"loadVideoByUrl",M.dw);Q(M,"playVideo",M.r8);Q(M,"loadPlaylist",M.loadPlaylist);Q(M,"nextVideo",M.nextVideo); Q(M,"previousVideo",M.previousVideo);Q(M,"playVideoAt",M.playVideoAt);Q(M,"getDebugText",M.getDebugText);Q(M,"getWebPlayerContextConfig",M.getWebPlayerContextConfig);Q(M,"notifyShortsAdSwipeEvent",M.notifyShortsAdSwipeEvent);Q(M,"getVideoContentRect",M.getVideoContentRect);Q(M,"setSqueezeback",M.setSqueezeback);Q(M,"toggleSubtitlesOn",M.toggleSubtitlesOn);Q(M,"isSubtitlesOn",M.isSubtitlesOn);Q(M,"getAudioTrack",M.yz);Q(M,"setAudioTrack",M.U1);Q(M,"getAvailableAudioTracks",M.BY);Q(M,"reportPlaybackIssue", M.reportPlaybackIssue);Q(M,"setAutonav",M.setAutonav);Q(M,"isNotServable",M.isNotServable);Q(M,"channelSubscribed",M.channelSubscribed);Q(M,"channelUnsubscribed",M.channelUnsubscribed);Q(M,"togglePictureInPicture",M.togglePictureInPicture);Q(M,"supportsGaplessAudio",M.supportsGaplessAudio);Q(M,"supportsGaplessShorts",M.supportsGaplessShorts);Q(M,"enqueueVideoByPlayerVars",W=>void M.enqueueVideoByPlayerVars(W)); Q(M,"clearQueue",M.clearQueue);Q(M,"getMaxPlaybackQuality",M.getMaxPlaybackQuality);Q(M,"getUserPlaybackQualityPreference",M.getUserPlaybackQualityPreference);Q(M,"getSubtitlesUserSettings",M.getSubtitlesUserSettings);Q(M,"resetSubtitlesUserSettings",M.resetSubtitlesUserSettings);Q(M,"setMinimized",M.setMinimized);Q(M,"setOverlayVisibility",M.setOverlayVisibility);Q(M,"confirmYpcRental",M.confirmYpcRental);Q(M,"queueNextVideo",M.queueNextVideo);Q(M,"handleExternalCall",M.handleExternalCall);Q(M,"logApiCall", M.logApiCall);Q(M,"isExternalMethodAvailable",M.isExternalMethodAvailable);Q(M,"setScreenLayer",M.setScreenLayer);Q(M,"getCurrentPlaylistSequence",M.getCurrentPlaylistSequence);Q(M,"getPlaylistSequenceForTime",M.getPlaylistSequenceForTime);Q(M,"shouldSendVisibilityState",M.shouldSendVisibilityState);Q(M,"syncVolume",M.syncVolume);Q(M,"highlightSettingsMenuItem",M.highlightSettingsMenuItem);Q(M,"openSettingsMenuItem",M.openSettingsMenuItem);Q(M,"getEmbeddedPlayerResponse",M.getEmbeddedPlayerResponse); Q(M,"getVisibilityState",M.getVisibilityState);Q(M,"isMutedByMutedAutoplay",M.isMutedByMutedAutoplay);Q(M,"isMutedByEmbedsMutedAutoplay",M.isMutedByEmbedsMutedAutoplay);Q(M,"setGlobalCrop",M.setGlobalCrop);Q(M,"setInternalSize",M.setInternalSize);Q(M,"setFauxFullscreen",M.setFauxFullscreen);Q(M,"setAppFullscreen",M.setAppFullscreen)}; Ce=function(M,W,b){M=g.UA(M.j2(),W);return b?(b.addOnDisposeCallback(M),null):M}; g.kf=function(M,W,b){return M.app.G().Hr?W:g.tZ("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:W,SHORTCUT:b})}; Fha=function(M){M.j2().element.setAttribute("aria-live","polite")}; g.Ke=function(M,W){M.getPresentingPlayerType()===3?M.publish("mdxautoplaycancel"):g.q8(M,"onAutonavCancelled",W)}; g.vf=function(M){M=M.lk();const W=M.Tm.get("endscreen");return W&&W.Wi()?!0:M.rC()}; g.Le=function(M){const W=m3(M.lk());return M.app.cg&&!M.isFullscreen()||M.getPresentingPlayerType()===3&&W&&W.hasNext()&&W.hasPrevious()||!!M.getPlaylist()}; g.l7=function(M,W){g.GW(M,"addEmbedsConversionTrackingParams",[W])}; g.ZA=function(M){return(M=g.tp(M.lk()))?M.DG():{}}; g.iWL=function(M){M=(M=M.getVideoData())&&M.V;return!!M&&!(!M.audio||!M.video)&&M.mimeType!=="application/x-mpegURL"}; g.Im=function(M,W,b){M=M.qe().element;let T=KJ(M.children,q=>{q=Number(q.getAttribute("data-layer"));return b-q||1}); T<0&&(T=-(T+1));D3(M,W,T);W.setAttribute("data-layer",String(b))}; g.N8=function(M){const W=M.G();if(!W.s2)return!1;const b=M.getVideoData();if(!b||M.getPresentingPlayerType()===3)return!1;var T=(!b.isLiveDefaultBroadcast||W.j("allow_poltergust_autoplay"))&&!b.yz();T=b.isLivePlayback&&(!W.j("allow_live_autoplay")||!T);const q=b.isLivePlayback&&W.j("allow_live_autoplay_on_mweb");M=M.getPlaylist();M=!!M&&M.hasNext();var X=b.sY&&b.sY.playerOverlays||null;X=!!(X&&X.playerOverlayRenderer&&X.playerOverlayRenderer.autoplay);X=b.uN&&X;return!b.ypcPreview&&(!T||q)&&!g.ME(b.jG, "ypc")&&!M&&(!g.tP(W)||X)}; AEa=function(M,W){M=hqs(M.app.wW().C);for(const b of M){M=b.getAvailableAudioTracks();let T=null;for(const q of M)if(q.getLanguageInfo().getId()===W){T=q;break}T&&b.Ys(T,!0)}}; fe=function(){Hf||(Hf=new zqq);return Hf}; Rm=function(M,W){W?M.requestHeaders.Authorization=`Bearer ${W}`:delete M.requestHeaders.Authorization}; rC=function(M){const W=M.L.getRootNode();return M.L.j("web_watch_pip")||M.L.j("web_shorts_pip")?Pt(W):document}; uHg=function(M){M.sourceElement&&(document.activeElement&&g.ES(M.element,document.activeElement)&&M.sourceElement.focus(),M.sourceElement.setAttribute("aria-expanded","false"),M.sourceElement=void 0);M.S.V();M.C=void 0}; xf=function(M,W,b){M.T4()?M.Lv():M.Nd(W,b)}; g.FS=function(M={},W=[],b=!1,T=!1){W.push("ytp-menuitem");"role"in M||(M.role="menuitem");b||"tabindex"in M||(M.tabindex="0");M={K:b?"a":"div",rK:W,Y:M,U:[{K:"div",N:"ytp-menuitem-icon",R0:"{{icon}}"},{K:"div",N:"ytp-menuitem-label",R0:"{{label}}"},{K:"div",N:"ytp-menuitem-content",R0:"{{content}}"}]};T&&M.U.push({K:"div",N:"ytp-menuitem-secondary-icon",R0:"{{secondaryIcon}}"});return M}; g.i7=function(M,W){M.updateValue("label",W)}; hp=function(M){return M?g.Ga(M):""}; zW=function(M,W,b,T){W in M.Z||(b=new g.Ap(b,T,{id:W,priority:2,namespace:"appad"}),M.api.QV([b],1),M.Z[W]=b)}; u7=function(M,W){S5P(M,W).then(b=>{g.zu(W,void 0,void 0,b)})}; SY=function(M,W){W.forEach(b=>{u7(M,b)})}; dms=function(M,W,b){if(!(b in W))return!1;W=W[b];Array.isArray(W)||(W=[W]);for(const T of W)W={CPN:M.api.getVideoData().clientPlaybackNonce},W=g.tf(T,W),g.zu(W,void 0,av(ER(W,OWt),W,!1,"Active View 3rd Party Integration URL")||av(ER(W,PSP),W,!1,"Google/YouTube Brand Lift URL")||av(ER(W,eql),W,!1,"Nielsen OCR URL"));return!0}; S5P=function(M,W){return g.XD(M.api.G())&&lp(W)&&m0(W)?g.ZI(M.api.G(),M.api.getVideoData().C()).then(b=>{let T;b&&(T={Authorization:`Bearer ${b}`});return T},void 0):MG()}; oBG=function(M){const W=!M.G().u3&&M.getPresentingPlayerType()!==3;return M.isFullscreen()||W}; g.OA=function(M,W,b=!1,T){const q=M.currentTarget;if(!b&&g.PF(M))return M.preventDefault(),!0;W.pauseVideo();M=q.getAttribute("href");g.wB(M,T,!0);return!1}; g.Pf=function(M,W,b){if(aU(W.G())&&W.getPresentingPlayerType()!==2){if(g.PF(b))return W.isFullscreen()&&!W.G().externalFullscreen&&W.toggleFullscreen(),b.preventDefault(),!0}else{const T=g.PF(b);T&&W.pauseVideo();g.wB(M,void 0,!0);T&&(g.pu(M),b.preventDefault())}return!1}; cEG=function(M){M=eY.includes("es")?M.j("delhi_modern_web_player_icons")?E3():{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,Y:{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"}}]}:M.j("delhi_modern_web_player_icons")?UCt():{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,Y:{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"}}]};M.N="ytp-subtitles-button-icon"; return M}; Qea=function(M){return eY.includes("es")?M?E3():{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:M?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; dC=function(){return{K:"div",N:"ytp-spinner-container",U:[{K:"div",N:"ytp-spinner-rotator",U:[{K:"div",N:"ytp-spinner-left",U:[{K:"div",N:"ytp-spinner-circle"}]},{K:"div",N:"ytp-spinner-right",U:[{K:"div",N:"ytp-spinner-circle"}]}]}]}}; om=function(M){if(document.createRange){const W=document.createRange();W&&(W.selectNodeContents(M),M=window.getSelection())&&(M.removeAllRanges(),M.addRange(W))}}; gBG=function(M,W){const b=W.getAudioTrack();return b.id!=="und"?g.et(M,T=>T.r9?.name===b.getLanguageInfo().name):M}; sel=function(M,W){return W.getUserAudio51Preference()?g.et(M,cf):M}; wEg=function(M){return M.map(W=>new fW(W.id,"application/x-mpegURL",{r9:W.r9}))}; pEJ=function(M){return g.MZ("yt-player-drc-pref")?g.et(M,Qc):M}; Y5y=function(M){return sHs()===2?g.et(M,gC):M}; $5G=function(M){return wAa()===1?g.et(M,sA):M}; sA=function(M){return M.audio?.audioQuality==="AUDIO_QUALITY_HIGH"&&!cf(M)}; Qc=function(M){return M.audio?.Z===!0}; cf=function(M){return M.C()}; MKp=function(M){return M.r9!==void 0}; gC=function(M){return M.audio?.V===!0}; wC=function(M,W){if(M.length<2)return!1;const b=W(M[0]);return M.some(T=>W(T)!==b)}; W6t=function(M,W){M=new Set(M.map(W));M.delete(void 0);return M.size>=2}; bdp=function(M){return M.L.G().j("web_player_autonav_use_server_provided_state")&&M.Zy().po()}; Tna=function(M){M.isChecked=M.isChecked;M.hn("ytp-autonav-toggle-button").setAttribute("aria-checked",String(M.isChecked));const W=M.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";M.L.G().j("player_tooltip_data_title_killswitch")?M.update({title:W,label:W}):M.update({"data-tooltip-title":W,label:W});M.L.aq()}; XKP=function(M){M.menuItem||(M.menuItem=new qtS(M.api),g.t(M,M.menuItem),M.menuItem.zv(M.Z))}; j6Q=function(M){var W=M.api.j("delhi_modern_web_player_compact_controls"),b=g.TO(M.api.G().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),T=W||b>0&&M.api.getPlayerSize().width<=b;W=M.api.getRootNode();W.classList.toggle("ytp-delhi-modern-compact-controls",T);b=T?"40px":"48px";const q=T?"8px":"12px",X=T?"56px":"72px",G=T?"56px":"64px";let V=T?"48px":"56px",J=T?"12px":"20px";T=T?"72px":"96px";M.api.j("delhi_modern_web_player_big_mode_consistent_pill_height")&&(V="56px", J="12px",T="80px");W.style.setProperty("--yt-delhi-pill-height",b);W.style.setProperty("--yt-delhi-pill-top-height",q);W.style.setProperty("--yt-delhi-bottom-controls-height",X);W.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",G);W.style.setProperty("--yt-delhi-big-mode-pill-height",V);W.style.setProperty("--yt-delhi-big-mode-pill-top-height",J);W.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",T)}; GDS=function(M,W){for(const b of W){W=Number(b.playbackPosition?.utcTimeMillis)/1E3;const T=`embargo_${W}`;M.api.addUtcCueRange(T,W,W+Number(b.duration?.seconds),"embargo",!1);b.onEnter&&(M.Z[T]=b.onEnter.filter(M.V))}}; JFy=function(M){var W=M.api.getRootNode();W=M.api.getWebPlayerContextConfig().embedsEnableEmc3ds?W.parentElement?.parentElement||W:W;M.Z=new VKG(W,b=>{b!=null&&(M.api.G().NW=b,M.api.G().Dc="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.t(M,M.Z);M.events.J(M.api,"videoStatsPingCreated",b=>{var T=M.Z;T=T.Z==null?null:Math.round(T.Z*100)/100;b.inview=T!=null?T:void 0;T=M.api.getPlayerSize();if(T.height>0&&T.width>0){T=[Math.round(T.width),Math.round(T.height)];const q=g.yK();q>1&&T.push(q);T=T.join(":")}else T=void 0;b.size=T})}; BnP=function(M){return(M?.messageRenderers||[]).find(W=>!!W.timeCounterRenderer)?.timeCounterRenderer||null}; D5t=function(M){var W=Math,b=W.round;const T=Math.min((0,g.u)()-M.B,M.V);W=b.call(W,(M.V-T)/1E3);M.updateValue("duration",uf({seconds:W}));W<=0&&M.Z?M.stopTimer():M.Z&&M.Z.start()}; axp=function(M,W){M.Z||(M.V=W,M.B=(0,g.u)(),M.Z=new g.O9(()=>{D5t(M)},null),D5t(M))}; nap=function(M,W){let b=0;for(b=0;b{const G=g.z(X?.onTap,xn);G&&g.q8(M.api,"innertubeCommand",G)}); M.Z[b]=T}for(;b0&&q&&(b=Math.max(b,M.policy.hD));return Cyy(M,b,W)}; bF=function(M){return $H(M)/M.playbackRate}; TV=function(M,W,b){const T=M.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],q=M.policy.playbackStartPolicy.startMinReadaheadPolicy||[];M=Infinity;W=W&&T.length>0?T:q;for(const X of W)W=X.minReadaheadMs||0,b<(X.minBandwidthBytesPerSec||0)||M>W&&(M=W);return M=0?W[q]:null;var D;if(D=b){D=T;var a=q,E=b.startTimeMs+b.durationMs,n=D.startTimeMs+D.durationMs;if(D.startTimeMs-E>M.V)D=!1;else if(K6s(M,b.formatId, D.formatId))b.durationMs=Math.max(E,n)-b.startTimeMs,b.Fy=Math.max(b.Fy,D.Fy),D=!0;else if(Math.abs(b.startTimeMs-D.startTimeMs)<=M.V)if(b.durationMs>D.durationMs+M.V){a=b.formatId;var C=b.Zd,l=b.Fy;b.formatId=D.formatId;b.durationMs=D.durationMs;b.Zd=D.Zd;b.Fy=D.Fy;D.formatId=a;D.startTimeMs=n;D.durationMs=E-n;D.Zd=C;D.Fy=l;D=!1}else b.formatId=D.formatId,D=!0;else E>D.startTimeMs&&(E>n&&(W.splice(a+1,0,{formatId:b.formatId,startTimeMs:n,durationMs:E-n,Zd:D.Fy+1,Fy:b.Fy}),M.logger&&M.logger({splitOldStart:b.startTimeMs?.toFixed(3), splitOldEnd:E?.toFixed(3),splitNewStart:D.startTimeMs?.toFixed(3),splitNewEnd:n?.toFixed(3)})),b.durationMs=D.startTimeMs-b.startTimeMs,b.Fy=D.Zd-1),D=!1}D?T=b:(q+=1,W.splice(q,0,T));b=0;for(D=q+1;D=C+E.V?E=!0:l+E.Vb.startTimeMs-T.startTimeMs); return M>=0?M:-M-2}; m5p=function(M,W,b){if(M.logger){var T=[];for(let q=0;q0&&(0,g.u)()-M.X<5E3&&(M.logger&&M.logger({dend:T.info.lw()}),b=GCP(b,q,q+.01))}M.policy.bU&&M.logger&&M.logger({cbri:`${M.Z}`});T=[];for(var X=q=0;q=G){const n={...M.h5[X]};var J=M.HY.B.get(yU(M.h5[X].formatId)),B=Math.max(V,G);G=J.index.UX(B+ M.V/1E3);V=J.index.getStartTime(G);var D=G+ +(Math.abs(V-B)>M.V/1E3);B=D+M.A;D=J.index.getStartTime(D)*1E3;X!==M.Z||W?(n.Zd=B,n.startTimeMs=D):(M.logger&&M.logger({pEvict:"1",og:n.startTimeMs,adj:V*1E3}),n.Zd=G+M.A,n.startTimeMs=V*1E3);G=M.B?.info.duration||11;X===M.Z&&aM.V/1E3);G=V+M.A;J=J.index.Cj(V)*1E3;n.Fy=G;n.durationMs=J-n.startTimeMs;n.Zd<=n.Fy&&T.push(n)}E{W.push({...X})}); const T=M.lV.EU();let q=M.Z;for(const X of T)q=vaP(M,W,b,X,q);W.forEach(X=>{X.startTimeMs&&(X.startTimeMs+=M.timestampOffset*1E3)}); return{h5:W,Mw:b}}; K6s=function(M,W,b){return W.itag!==b.itag||W.xtags!==b.xtags?!1:M.HY.Me||W.lmt===b.lmt}; IxP=function(M,W,b,T,q){if(!W.Tv.Z()){if(!(q=b===0||!!W.V.length&&W.V[0]instanceof qM))a:{if(W.V.length&&(q=W.V[0],q instanceof Xa&&q.NZ&&q.wm)){q=!0;break a}q=!1}q||M.policy.Z||j8(W);return b}const X=GV(W,b);if(!isNaN(X))return X;if(M.loader.Ww(b*1E3))return b;q.CB?M.policy.zL&&(M=VX(M.loader,W),tKg(W.B,b+M,!0)):(W.GK(),M.loader.nU(!1,`sta_${+W.Tv.info.s1()}`));return T&&(M=O5(T.ZY(),b),!isNaN(M))?(Jg(W,M+ZdG,q),b):Jg(W,b,q)}; NnL=function(M,W,b){if(!M.policy.C){M=W.Tv.index;var T=W.Z.Kp;M.Z5(T)||b&&b.Kp===T?(W.A=!M.Z5(T),W.O=!M.Z5(T)):(W.A=!0,W.O=!0)}}; fxs=function(M){const W=Math.max(M.videoTrack.B.B||0,M.audioTrack.B.B||0);HdQ(M.videoTrack);HdQ(M.audioTrack);M.policy.C||rsq(M.HY);M.HY.isManifestless&&!M.policy.C&&(M.Z=!0,M.V=0);var b=M.loader;if(!b.policy.gK||b.policy.Ds)b.currentTime=W;M.A=!0;M.B=new tI;return M.B}; a1=function(M){var W=M.videoTrack.S!==-1,b=M.audioTrack.S!==-1;if(!W||!b)if(W=!W&&BJ(M.videoTrack),b=!b&&BJ(M.audioTrack),W||b)if(b=W?M.videoTrack:M.audioTrack,W=W?M.audioTrack:M.videoTrack,b.S=BJ(b).info.Kp,M.policy.C&&(W.S=BJ(W)?.info.Zs()||W.S),W.S!==-1){let T=Math.max(W.Tv.index.getStartTime(W.S),b.Tv.index.getStartTime(b.S));Dh(M.HY)&&Math.abs(T-Dh(M.HY))>432E3&&FKJ(M.HY);M.V&&(T=M.V,M.V=0);g.xS(()=>{M.policy.C||Dt(M,T,102)}); M.loader.dK("initManifestlessSync",{st:T,ost:T+M.loader.Ga(),a:M.audioTrack.S,v:M.videoTrack.S});M.B&&(M.B.resolve(T+.1),M.B=null);M.policy.C&&Dt(M,T,102)}}; Rit=function(M,W,b){if(!M.isSeeking())return-1;b=(b?M.videoTrack:M.audioTrack).Tv.index;const T=b.UX(M.targetTime);return(b.Z5(M.HY.Sk)||W.Kp===M.HY.Sk)&&T{a1(M)}); else{if(M.isSeeking()&&M.targetTime){const X=Rit(M,W,b);if(X!==-1){M.videoTrack.A=!1;M.audioTrack.A=!1;M.Z=!0;M.V=0;g.xS(()=>{M.loader.dK("seekreason",{reason:"behindMinSq",tgt:X});Dt(M,X)}); return}}b?M.videoTrack.O=!1:M.audioTrack.O=!1;var q=!M.Z;GV(M.videoTrack,M.targetTime)>=0&&GV(M.audioTrack,M.targetTime)>=0&&q?((M.videoTrack.A||M.audioTrack.A)&&M.loader.dK("iterativeSeeking",{status:"done",count:M.seekCount}),M.videoTrack.A=!1,M.audioTrack.A=!1):T&&g.xS(()=>{if(M.Z||!M.policy.bV)a1(M);else{var X=W.startTime,G=W.duration;if(!M.policy.C){var V=M.videoTrack.S!==-1&&M.audioTrack.S!==-1,J=!M.videoTrack.O&&!M.audioTrack.O;(b?M.videoTrack.A:M.audioTrack.A)&&V&&J&&(M.targetTime>=X&&M.targetTime< X+G+.1?((b?M.videoTrack:M.audioTrack).A=!1,M.videoTrack.A||M.audioTrack.A||(M.loader.dK("iterativeSeeking",{status:"done",target:X,originalTime:X+M.loader.Ga(),count:M.seekCount}),M.seekCount=0)):M.seekCount<8?(M.seekCount++,M.loader.dK("iterativeSeeking",{status:"inprogress",count:M.seekCount,target:M.targetTime,actual:X,duration:G,isVideo:b}),M.seek(M.targetTime,{})):(M.loader.dK("iterativeSeeking",{status:"incomplete",count:M.seekCount,target:M.targetTime,actual:X}),M.seekCount=0,M.videoTrack.A= !1,M.audioTrack.A=!1,Eh(M.loader,X+.1,{IK:!0,jR:"chunkSelectorSynchronizeMedia",Sa:!0})))}}})}}; nj=function(M,W,b){x5G(M.PP,W);M.An&&(M.An.add(Math.ceil(W)-Math.ceil(M.W)),M.An.add(Math.max(0,Math.ceil(b/1024)-Math.ceil(M.S/1024))));const T=W-M.W,q=b-M.S;M.Hr=q;M.d9=Math.max(M.d9,q/(T+.01)*1E3);M.W=W;M.S=b;M.lV&&b>M.lV&&F6s(M)}; F6s=function(M){M.xk=Math.max(M.xk,M.S-M.EX);M.yz=Math.max(M.yz,M.W-M.k_);M.lV=0}; idt=function(M,W){M.url=W;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=()=>{performance.clearResourceTimings()})}; hiG=function(M){M.Lp=M.Z+M.snapshot.delay*1E3;M.Y9=!1}; Uh=function(M,W,b){if(!M.ZM){W=Math.max(W,.01);var T=M.fu?Math.max(W,b/M.fu):W,q=M.PP.V.B;q&&(T=W,M.fu&&(T=Math.max(W,b/M.fu*q)));yX(M.PP,W,b,T)}}; AFy=function(M){const W=M.jT||M.wK;return W?M.snapshot.delay+Math.min(M.yW,(M.X-M.gK)/1E3)+W:M.nz}; ziJ=function(M){return(M.C-M.Z)/1E3}; Cj=function(M,W){if(M.xJ&&M.Kp!==void 0&&M.qZ!==void 0){var b=Math,T=b.min,q=M.BY;var X=M.xJ;var G=M.Z;if(uvg(X,M.Kp))X=W;else{var V=0;X.YI&&(V=.2);X=G+(X.yW+V)*1E3}M.BY=T.call(b,q,X);b=Math;T=b.min;q=M.MK;X=M.xJ;G=M.Z;V=Stg(X,M.Kp,M.qZ);V!==2&&(W=V?W:G+X.yW*1E3,X.YI&&(W+=X.yW*1E3));M.MK=T.call(b,q,W);M.BY<=M.Z?hiG(M):(M.Lp=M.BY,M.Y9=!0)}}; Odl=function(M,W){if(W+1<=M.totalLength){var b=kE(M,W);b=b<128?1:b<192?2:b<224?3:b<240?4:5}else b=0;if(b<1||!(W+b<=M.totalLength))return[-1,W];if(b===1)M=kE(M,W++);else if(b===2)b=kE(M,W++),M=kE(M,W++),M=(b&63)+64*M;else if(b===3){b=kE(M,W++);var T=kE(M,W++);M=kE(M,W++);M=(b&31)+32*(T+256*M)}else if(b===4){b=kE(M,W++);T=kE(M,W++);const q=kE(M,W++);M=kE(M,W++);M=(b&15)+16*(T+256*(q+256*M))}else b=W+1,M.focus(b),yZ(M,b,4)?M=M1S(M).getUint32(b-M.B,!0):(T=kE(M,b+2)+256*kE(M,b+3),M=kE(M,b)+256*(kE(M,b+ 1)+256*T)),W+=5;return[M,W]}; PyJ=function(M){return g.sq(M.info.g9,W=>W.type===3)}; c3s=async function(M,W){return W?(new YZ(M.V)).encrypt(W,M.Z):W}; wrL=async function(M,W){return W?await (new YZ(M.V)).decrypt(W,M.Z):W}; eit=function(M){M.B.read().then(M.W,M.onError).then(void 0,NH)}; kH=function(M,W,b,T,q){if(hz(51,M.eH))return new d5q(M,b);M=M.WF();return T?ufg()?new oat(M,W,b,q):new cFy(M,W,b,q):new Q6L(M,b,q)}; Kj=function(M,W,b){M.Z&&(E6(M.Z,W),W=M.Z,M.Z=null);let T=0,q=0;for(const J of M.g9){if(J.range&&T+J.V<=M.V){T+=J.V;continue}if(lk(J)&&!b&&M.V+W.totalLength-q=400?(M.lastError="net.badstatus",!0):q?(M.lastError="ump.spsrejectfailure",!0):b||T?!1:(M.lastError=W===204?"net.nocontent":"net.connect",!0)}; lF=function(M,W){if(M.policy.JO)return!1;const b=W.getResponseHeader("content-type"),T=W.ND();M=!T||T<=M.policy.uO;return(!W.XR()||!b||b.indexOf("text/plain")!==-1)&&M}; wKp=function(M,W){let b="";W=W.eY();W.totalLength<=M.policy.uO&&(M=U6(W),M=vk(M),b=nX(M)?M:"");return b}; pKG=function(M){const W=M.timing.D();W.shost=Bh(28,M.Ix.eH);M.policy.sj&&M.policy.Ug&&(W.csrc=1);return W}; YtG=function(M,W){return M?.maxWidth>W?.maxWidth||M?.maxHeight>W?.maxHeight}; $cQ=function(M,W){for(const b of W.keys()){const T=W.get(b);if(T.length===0)continue;g.v$(T,(G,V)=>V.maxFramerate-G.maxFramerate); const q=[T[0]];let X=0;for(let G=1;GM.Z||b.push(T);return b}; tg=function(M,W,b){let T=bzt[M]||[];b.j("html5_shorts_onesie_mismatched_fix")&&(T=Tdp[M]||[]);W.push(...T);b.j("html5_early_media_for_drm")&&W.push(...(qdJ[M]||[]))}; Bdt=function(M,W){const b=g.I9(M);var T=M.G();const q=T.S;T=T.j("html5_shorts_onesie_mismatched_fix");const X=M.OX();if(T){if(!q.Z){if(X&&Zt)return Zt;if(I1)return I1}}else if(I1&&!q.Z)return I1;const G=[],V=[],J={};var B=NM.concat(XdP);T&&(B=NM.concat(jWL));M.j("html5_early_media_for_drm")&&(B=B.concat(G3J),M.j("allow_vp9_1080p_mq_enc")&&B.push(VfL));const D=[...Jrq];M.j("html5_iamf_audio_onesie_fmt")&&D.push(["773"]);for(var a of B){B=!1;for(const n of a){var E=NT(n,X&&T);if(!E||!E.video)continue; if(E.Z()&&!b.yz&&E.video.qualityOrdinal>b.AD)continue;const C=g.TO(M.G().experiments,"html5_drm_byterate_soft_cap");if(C>0&&qmp(E)&&E.sB>C)continue;if(B){G.push(n);tg(n,G,M);continue}E=Kb(b,E,q);E===!0?(B=!0,G.push(n),tg(n,G,M)):J[n]=E}}for(const n of D)for(const C of n){a=xqL(C);if(!a||!a.audio||!M.j("html5_onesie_51_audio")&&a.C())continue;a=Kb(b,a,q);if(a===!0){V.push(C);tg(C,V,M);break}else J[C]=a}if(!M.j("html5_enable_audio_quality_setting")){M=["141","774"];for(const n of M)V.includes(n)&&(g.X9(V, n),J[n]="blkhqa")}b.Z&&W("orfmts",J);if(T)return q.Z&&(q.Z=!1,Zt=I1=void 0),X?Zt={video:G,audio:V}:I1={video:G,audio:V};I1={video:G,audio:V};q.Z=!1;return I1}; g.ECQ=function(M,W,b){const T=b.S,q=[],X=[];var G=b.j("html5_shorts_onesie_mismatched_fix");M=M.OX();var V=NM.concat(XdP);G&&(V=NM.concat(jWL));b.j("html5_early_media_for_drm")&&(V=V.concat(G3J),b.j("allow_vp9_1080p_mq_enc")&&V.push(VfL));const J=[...Jrq];b.j("html5_iamf_audio_onesie_fmt")&&J.push(["773"]);for(const B of V)for(const D of B){V=NT(D,M&&G);if(!V||!V.video)continue;const a=g.TO(b.experiments,"html5_drm_byterate_soft_cap");if(!(a>0&&qmp(V)&&V.sB>a)&&Kb(W,V,T)===!0){q.push({videoCodec:Dcl[T0[D]], maxWidth:V.video.width,maxHeight:V.video.height,maxFramerate:V.video.fps});break}}for(const B of J)for(const D of B)if((G=xqL(D))&&G.audio&&(b.j("html5_onesie_51_audio")||!G.C())&&Kb(W,G,T)===!0){X.push({audioCodec:asy[T0[D]],numChannels:G.audio.numChannels});break}return{videoFormatCapabilities:q,audioFormatCapabilities:X}}; UcL=function(M){const W={};var b=M.qK;const T=M.Vz,q=M.PP,X=b.getVideoData();var G=Tm(0);var V=b.getVisibilityState();T.j("html5_enable_audio_quality_setting")&&(W.Kr=T.Kr);G&&(W.Yy=G,W.lastManualDirection=eYa(),G=TNJ()||0,G>0&&(G=(T.j("html5_use_date_now_for_local_storage")?Date.now():(0,g.u)())-G,T.j("html5_use_date_now_for_local_storage")?G>0&&(W.timeSinceLastManualFormatSelectionMs=G):W.timeSinceLastManualFormatSelectionMs=G));if(q.gK||T.j("html5_sabr_ugc_vod_web_embedded_client_default_bandwidth_on_iphone")&& ks)G=T.j("html5_disable_bandwidth_cofactors_for_sabr_live")?!!M.iN?.Tr:!1,W.sA=Yf(q,!G);var J=g.mh.medium,B=Math.floor(J*16/9);(G=X.OX())||(X.Z&&X.B&&X.B.videoInfos.length!==0?(G=X.B.videoInfos[0],G=!!G.video&&G.video.width0?{authorizedFormats:M.authorizedFormats}:{authorizedFormats:V};M.sabrLicenseConstraint&&(W.uQ.sabrLicenseConstraint=M.sabrLicenseConstraint);if(T.j("html5_onesie_media_capabilities")||hj(X))W.iq=3;T.j("html5_onesie_audio_only_playback")&&lY(X)&&(W.iq=1);M.iN?.s2&&M.Hm&&(W.iq=W.iq===void 0?7:W.iq|4);V=X.Ds?X.Ds:g.I9(X);T.j("html5_onesie_media_capabilities")&&(W.mediaCapabilities=g.ECQ(X,V,T));if(M.iN?.MK()){B=M.z1;D=M.DT; var a=M.iN?.sB;G=[];J=[];const N=new Map;var E=X.S6.Z;for(var n of E.values())if(n.s1)J.push({audioCodec:asy[n.Qz],numChannels:n.numChannels,spatialCapabilityBitmask:nCq[n.Qz]});else{E=Dcl[n.Qz];var C=n.maxBitrateBps||0,l=a?a*8:0;C={videoCodec:E,maxWidth:D?854:n.maxWidth||0,maxHeight:D?480:n.maxHeight||0,maxFramerate:n.maxFramerate||0,is10BitSupported:n.fS||!1,maxBitrateBps:l&&C?Math.min(l,C):l||C,efficient:!0};E=`${E}_${n.fS}`;l=N.get(E)||[];l.push(C);N.set(E,l)}G=$cQ(G,N);n=B?[...B]:[];X.j("html5_ssff_denylist_opus_low")&& n.push(249,350);g.I9(X);W.mediaCapabilities={videoFormatCapabilities:G,audioFormatCapabilities:J,hdrModeBitmask:3,perPlaybackAttributes:n.length?{itagDenylist:n}:{}}}M.iN?.Z&&(W.cM=V.cM,W.AD=M.iN?.AD);T.GN&&(W.OA=T.GN);W.w4=M.aO;W.FI=M.FI;W.k0=M.k0;W.K4=M.K4;M.LG&&(W.SM=(0,g.u)()-M.LG);M.K3&&(W.K3=M.K3);q4||(W.pE=!0);n=MM(q)*1E3;n>0&&(W.Kn=n);M.iN?.LA&&M.nB&&M.nB0?b:q.interruptions[0]||0;M.iN?.d9&&(W.zt=M.zt);T.jT&&(W.audioTrackId=T.jT);X.RV()&&!W.audioTrackId&&(T.j("html5_fill_default_mosaic_audio_track_id")||(M=HXP(X),W.audioTrackId=M),X?.dK("misstrkchg",{"default":W.audioTrackId}));if(M=navigator.connection?.type||"")W.detailedNetworkType=yrs[M]||yrs.other;!T.j("html5_enable_voice_boost")||X.OX()||X.isAd()||(W.uK=T.Mh);return W}; HJ=function(M,W,b,T,q,X,G){const V={};W&&(V.Hk=W);if(!M)return V;V.playbackCookie=b?.playbackCookie;q&&(V.Wk=q);V.g_=[];V.ol=[];if(G?.size)for(const J of G.values())V.ol.push(J);if(M.sabrContextUpdates.size>0)for(const J of M.sabrContextUpdates.values())C4q(V,J,T);Sz(M)&&X&&C4q(V,X,T);W=M.G().Z;V.clientInfo={clientName:k3G[W.c.toUpperCase()]||0};W.cbrand&&(V.clientInfo.deviceMake=W.cbrand);W.cmodel&&(V.clientInfo.deviceModel=W.cmodel);W.cver&&(V.clientInfo.clientVersion=W.cver);W.cos&&(V.clientInfo.osName= W.cos);W.cosver&&(V.clientInfo.osVersion=W.cosver);W=M.G();W.j("html5_sabr_enable_server_xtag_selection")&&W.aT&&(V.clientInfo.hl=W.aT);M.JU&&(V.JU=M.JU);return V}; C4q=function(M,W,b){const T=W.type||0;b?.has(T)?M.ol.push(W):M.g_.push(T)}; Kwq=function(M){if(!(Rn(M.info)&&M.info.eA()&&M.policy.EX&&M.Ju)||M.info.Vc.B>=2||Tm()>0||!g2p())return!1;var W=M.Ix.get("aitags");if(!W)return!1;W=GG(W).split(",");const b=[];for(const T of M.Ju)g.ME(W,T)&&b.push(T);if(!b.length)return!1;M.Ix.set("altitags",g.ju(b.join(",")));return!0}; vCL=function(M,W,b=!1){g.O(W);M.rG.lastError="player.exception";M.errorMessage=`${W.name}_${W.message}`;b?g.xS(()=>{mi(M.rG)}):mi(M.rG)}; mcG=function(M){M.oN&&(M.xhr.status=M.oN,M.Iq=M.oN)}; Lwy=function(M,W){M.timing.O=!0;M.xhr.XR()&&M.timing.Zs();M.policy.Y9&&M.cL?.stop();Kj(M.qL,W,!1)}; lst=function(M,W,b){let T=M.fu?Math.max(W,b/M.fu):W;const q=M.PP.V.B;q&&(T=W,M.fu&&(T=Math.max(W,b/M.fu*q)));yX(M.PP,W,b,T)}; tfa=function(M,W,b){switch(W){case 35:M.CU(b);break;case 44:M.Bk(b);break;case 43:M.q$(b);break;case 53:M.Qr(b);break;case 56:M.TR();break;case 57:M.Zu(b);break;case 42:M.D_(b);break;case 45:M.Wh(b);break;case 59:M.Vo(b);break;case 51:M.pf(b);break;case 49:M.IC(b);break;case 50:M.vk(b);break;case 47:M.AA(b);break;case 58:M.Kq(b);break;case 61:M.Cp.qp.m$((0,g.u)());break;case 66:M.Ir(b);break;case 46:M.hA(b);break;case 67:M.onSnackbarMessage(b);break;case 71:W=Hk(b,QOQ),M.Cp.d6(W)}}; Zza=function(M){fj=M}; IsG=function(M,W,b){M.ag.get(W).onProgress=b}; R1=function(M,W){M.UL(W)&&(fj?M.ag.get(W).Hg.clear():M.ag.get(W).wU=new IR,M.V(W),M.A=!0)}; NdL=function(M){for(const [W,b]of M.ag){const T=W;b.Zz||R1(M,T)}}; HzL=function(M,W){M=M.ag.get(W);if(!M)return 0;W=0;if(M.g9.length>0){for(const b of M.g9)W+=b.range?.length||0;return W}if(M.O_.length>0)for(const b of M.O_)W+=b.wF||0;return W+M.fb}; r_=function(M,W){if(fj){let b=0;M=M.ag.get(W);if(!M?.Hg)return 0;for(const T of M.Hg.values())b+=T.data.totalLength;return b}return M.ag.get(W)?.wU.S()||0}; xH=function(M,W){M=M.ag.get(W);if(fj){if(!M?.Zz)return!1;W=M.Hg.size>0;return M.Uu.length>0||W}return!!M?.Zz&&!!M?.wU.S()}; fsq=function(M,W){const b=M.ag.get(W),T=HzL(M,W),q=!T&&!!b.bytesReceived;if(fj){if(M.HY?.Me){for(var X of b.Hg.values())if(!X.iH)return!1;return q}}else if(X=M.xw(W),q&&M.B&&X!==void 0)return X;return(q||b.bytesReceived===T)&&b.wc+r_(M,W)===b.bytesReceived}; RVL=function(M,W,b){const T=M.HY?.B.get(W);if(!T)return[];if(b.yf)return T.W(0,b.clipId)?.g9||[];if(T.B()){var q=b.startMs,X=b.durationMs,G=1E3;M.iN?.Z&&b.timeRange&&(q=b.timeRange.startTicks??-1,X=b.timeRange.LH??-1,G=b.timeRange.timescale??-1);if(b.w5<0||b.hR<0||X<0||q<0||b.wF<0||G<0)return R1(M,W),[];M=KO(b.w5,b.wF);W=b.Te||0;return[new Np(3,T,M,"makeSliceInfosMediaBytes",b.hR-1,q/G,X/G,W,M.length-W,void 0,b.Dd,b.clipId)]}return b.hR<0?(R1(M,W),[]):M.HY?.Me?(X=T.WO,G=X*T.info.sB,W=b.Te,M.iN?.Z&& M.C.Gp()!=="ONESIE"&&b.timeRange&&!W&&(q=b.timeRange.startTicks/b.timeRange.timescale),[new Np(3,T,void 0,"makeSliceInfosMediaBytes",b.hR,q,X,W,G,!0,b.Dd,b.clipId)]):[]}; xcS=function(M,W,b,T){b.g9.push(...T);if(fj)b.K9.has(W)||b.K9.set(W,[]),b.K9.get(W).push(...T);else if(b.qL)for(const q of T)b.qL.g9.push(q);else b.qL=new rry(M.iN,[...b.g9]),M.iN?.eI&&g.t(M,b.qL)}; Fwt=function(M,W,b){M.HY=W;M.iN=b;for(const [T,q]of M.ag){W=T;b=q;for(const X of b.t$){const G=RVL(M,W,X);xcS(M,X.dM,b,G)}}}; izL=function(M){return M.jK()&&!M.C_}; hVJ=function(M){M.policy.Y3&&M.rg&&!M.yA?M.yA=!0:M.qp.Zs()}; ArS=function(M,W){let b=-1,T=-1,q=-1;if(M.Ye?.items)for(const X of M.Ye.items)W=V,J=M.HY.isManifestless,G?(M.Z?.vF.event==="predictStart"&&M.Z.KpM.S&&(M.S=NaN,M.C=NaN);if(M.Z&&M.Z.Kp===W){if(T=M.Z,!M.policy.S||!M.policy.V)if(q&&T){var X=T.vF,G=q.fq(X);X.event==="predictStart"&&(M.O=W);M.dK("sdai",{onqevt:X.event,sq:W,mt:b,gab:G,cst:X.startSecs,cueid:M.policy.DF&&(G||X.event==="start")?X.identifier:void 0},!0);G?X.event!=="predictStart"?(X.event==="start"&&M.O===W-1&&M.dK("sdai",{gabonstart:W}),T.Ai?hg(M, 4,"cue"):(M.S=W,M.C=b,M.dK("sdai",{joinad:M.V,sg:M.S,st:M.C.toFixed(3)}),M.D=Date.now(),hg(M,2,M.V===3?"staftpred":"join"),eVt(q,T.vF))):(G=dct(M),W+=Math.max(Math.ceil(-X.Z/G),1),X=Math.floor(b-X.Z/1E3),M.policy.V?M.B=X:M.A=W,M.dK("sdai",{onpred:b,estsq:W,estmt:X.toFixed(3)}),zV(M.loader,X,X,W,G),M.D=Date.now(),hg(M,3,"predict"),eVt(q,T.vF)):M.V===1?M.Cv?.XK(b)?(zV(M.loader,b,b,W),hg(M,4,"sk2head")):hg(M,5,"nogab"):X.event==="predictStart"&&(M.policy.V&&M.B>0?(b=Math.floor(b-X.Z/1E3),M.B!==b&&M.dK("sdai", {updateSt:b,old:M.B}),M.B=b):M.A>0&&(b=W+Math.max(Math.ceil(-X.Z/dct(M)),1),M.A!==b&&(M.dK("sdai",{updateSt:b,old:M.A}),M.A=b)))}else M.dK("sdai",{nulldec:1,sq:W,mt:b.toFixed(3),evt:T?.vF?.event||"none"})}else M.V===1&&hg(M,5,"noad")}; uF=function(M,W,b){return(b<0||b===M.S)&&!isNaN(M.C)?M.C:W}; Ag=function(M,W,b){W.startSecs+=isNaN(M.W)?0:M.W;xVL(M.HY,W,b)}; OzL=function(M,W){if(M.Z){var b=M.Z.vF.C7-(W.startTime+M.W-M.Z.vF.startSecs);b<=0||(b=new iu(M.Z.vF.startSecs-(isNaN(M.W)?0:M.W),b,M.Z.vF.context,M.Z.vF.identifier,"stop",M.Z.vF.Z+W.duration*1E3),M.dK("cuepointdiscontinuity",{segNum:W.Kp}),Ag(M,b,W.Kp))}}; dct=function(M){switch(M.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; S8=function(M,W,b,T=!1){T?hg(M,1,"seek"):W>0&&Math.abs(W-b)>=5&&M.V===4&&hg(M,5,"sk2t")}; crs=function(M){if(!M)return"unknown";switch(M){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";case 6:return"prefetch";default:return"unknown"}}; Oh=function(M,W){return W?M.policy.G4&&W.tileContext?`${W.identifier};${W.tileContext}`:W.identifier:""}; QWg=function(M,W){let b=-(W.vF?.Rj||0);W.timeRange&&(b+=(W.timeRange.startTicks||0)/(W.timeRange.timescale||1));return new iu(b,W.vF?.HK||0,W.vF?.eg||"",W.vF?.identifier||"",crs(W.vF?.event),(W.vF?.Rj||0)*1E3,M.policy.G4?W.tileContext:void 0)}; gCL=function(M){switch(M){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"}}; sWS=function(M,W){let b="";const T=[];for(const [q,X]of M.Z.entries()){const G=q,V=X;V?.startTimeSecs<=W&&W<=V?.startTimeSecs+V?.C7&&T.push(G);b+=`${G}:${V?.startTimeSecs.toFixed(3)}:${V?.C7.toFixed(3)};`}T.length===0&&M.dK("clsdai",{no_cid:1,mt:W.toFixed(3),adConfigMap:b.substring(0,1024)});return T}; wdl=function(M,W,b=!1){b&&(M.C=!0);++M.S;b=6E4*2**M.S;b=(0,g.u)()+b;M.A.set(W.info.id,b)}; PJ=function(M){for(const [W,b]of M.A.entries()){const T=W;b<(0,g.u)()&&M.A.delete(T)}return M.A}; e8=function(M,W){M.Z!==W&&(M.Z=W,M.B=!0)}; pdq=function(M,W){let b=null;if(M.policy.jS){let T=[];if(W){const q=g.pt(M.V.V,X=>X.id===W); if(q&&q.r9){const X=q.r9.id;T=g.et(M.V.V,G=>G.r9?.id===X)}}T.length===0&&(T=g.et(M.V.V,q=>!!q.r9?.isDefault),W&&M.dK("iaf",{id:W, sid:T[0]?.id}));T.length>0&&(b=g.pt(T,q=>q.audio.Z===M.policy.lO)||T[0])}else W&&(b=g.pt(M.V.V,T=>T.id===W)),b||(b=g.pt(M.V.V,T=>!!T.r9?.isDefault),W&&M.dK("iaf",{id:W, sid:b?.id}));return b}; d_=function(M){if(!M.V||!M.policy.A&&!M.V.info.r9){var W=M.C.V;M.V&&(W=W.filter(T=>T.audio.Z===M.V.info.audio.Z),W.length||(W=M.C.V)); M.V=M.HY.Z[W[0].id];if(W.length>1&&!M.policy.L3){if(!M.policy.h6){var b=g.pt(W,T=>T.audio.audioQuality!=="AUDIO_QUALITY_HIGH"); b&&(M.V=M.HY.Z[b.id])}b=!1;if(b=M.policy.aT?!0:M.Z.isLocked()?M.Z.Z<240:Ydq(M,M.V))M.V=M.HY.Z[g.zS(W).id]}}}; cJ=function(M,W){M.Z=W;var b=M.C.videoInfos;if(!M.Z.isLocked()){const X=(0,g.u)();b=g.et(b,function(G){if(G.sB>this.policy.sB)return!1;const V=this.HY.Z[G.id];return PJ(this.S).get(G.id)>X||V.Vc.B>4||V.Lp>4?!1:this.yz.has(+G.itag)?!1:!0},M); M.S.DT()&&(b=g.et(b,G=>G.video.width<=854&&G.video.height<=480))}b.length||(b=M.C.videoInfos); let T=b;M.policy.UE&&(T=$yL(M,T,W));T=g.et(T,W.A,W);if(M.Z.isLocked()&&M.S.Z){var q=g.pt(b,X=>X.id===M.S.Z); q?T=[q]:e8(M.S,"")}M.policy.UE||(T=$yL(M,T,W));T.length||(T=[b[0]]);T.sort((X,G)=>o1(M,X)-o1(M,G)); for(W=1;Wq.video.width?(g.qE(T,W),W--):o1(M,b)*M.policy.D>o1(M,q)&&(g.qE(T,W-1),W--);W=T[T.length-1];M.jT=!!M.B&&!!M.B.info&&M.B.info.Qz!==W.Qz;M.A=T;M.MK.clear();b=!1;for(q=0;q=1080&&(b=!0);M4L(M.policy,W,M.HY.Me)}; WpQ=function(M){var W=M.policy.O;const b=bF(M.Zs)/W-o1(M,M.V.info);W=g.YP(M.A,function(T){return o1(this,T)0&&!(o1(M,M.A[W])<=q);W--);for(b=b/M.policy.D-T;W=b);W++);M.nextVideo=M.HY.Z[M.A[W].id];M.D=W}}; Gig=function(M,W){if(jjQ(M,W))return null;if(W.reason==="m"&&W.isLocked())return cJ(M,W),M.D=M.A.length-1,d_(M),g_(M),M.O=M.O||M.B!==M.nextVideo,M.B=M.nextVideo,new QX(M.V,M.B,W.reason);W.reason==="r"&&(M.X=-1);cJ(M,W);g_(M);if(W.reason==="r"&&M.nextVideo===M.B)return new QX(M.V,M.nextVideo,W.reason);M.B&&M.nextVideo&&o1(M,M.B.info)1.5&&M.loader.dK("overshoot",{sq:W.Kp,br:b,max:T}))}}; sh=function(M,W,b=!1){wdl(M.S,W,b);M.X=-1;cJ(M,M.Z)}; BQq=function(M,W){return new QX(M.W,M.B,W||M.Z.reason)}; o1=function(M,W){if(!M.BY[W.id]){var b=M.HY.Z[W.id].index.Nr(M.sY,15);b=W.LZ&&M.B&&M.B.index.isLoaded()?b||W.LZ:b||W.sB;M.BY[W.id]=b}b=M.BY[W.id];M.MK.has(W.itag)&&(b*=1.5);return b*=Math.max(1,M.wK.Hx()||0)}; DyL=function(M,W){const b={};for(const T of W){if(!T||!T.video)continue;W=T.video.qualityOrdinal;const q=b[W],X=q&&q.Z()&&q.video.qualityOrdinal>M.policy.AD,G=W<=M.policy.AD?T.Z():T.A();if(!q||X||G)b[W]=T}return b}; $yL=function(M,W,b){const T=b.reason==="m"||b.reason==="s";M.policy.O$&&w_&&g.R_&&(!T||b.Z<1080)&&(W=W.filter(q=>q.video&&(!q.S||q.S.powerEfficient))); if(W.length>0)if(cE()){const q=DyL(M,W);W=W.filter(X=>!!X&&!!X.video&&X.Qz===q[X.video.qualityOrdinal].Qz)}else{const q=W[0]?.video?.qualityOrdinal; if(q){b=W.filter(G=>!!G&&!!G.video&&G.video.qualityOrdinal===q); const X=DyL(M,b)[q].Qz;W=W.filter(G=>!!G&&!!G.video&&G.Qz===X)}}return W}; TQg=function(M){const W=g.pt(M.C.V,T=>T.audio.Z),b=g.pt(M.C.V,T=>!T.audio.Z); return W?M.policy.lO?W:b:null}; Ydq=function(M,W){let b=0;for(;b+1T}; qIq=function(M,W,b){if(W.info.Qz==="f"||M.lV.includes(Ue(W,M.HY.Me)))return W;for(let T=0;Tb.info.itag===W); if(!M)throw Error("Itag "+W+" from server not known.");return M}; EGJ=function(M){const W=[];if(M.Z.reason==="m"||M.Z.reason==="s")return W;if(ZBp(M.HY)){for(let b=Math.max(0,M.D-2);bX?q=0:T[G]>M.buffered[G]&&(G===X-1?q=2:G===X-2&&T[G+1]>M.buffered[G+1]&&(q=3))}M.Z.add(W<<3|(b&&4)|q);W=Math.ceil(M.track.ZS()*1E3);M.Z.add(W-M.S);M.S=W;if(q===1)for(M.Z.add(X),W=0,G=0;G= 2&&M.Z.add(T[X-1]-M.buffered[X-1]);b&&M.Z.add(b);M.buffered=T}; CPq=function(M){if(M.policy.XP&&M.policy.FF)for(const W of M.policy.XP){const b=g.UX(W),T=+b.clen,q=+b.csz;if(T>0&&q>0&&M.policy.A===b.docid&&M.Z.info.id===b.fmtid&&M.Z.info.lastModified===+b.lmt)return{clen:T,csz:q,ck:b.ck,civ:b.civ}}}; $R=function(M){return{downloadedEndTime:Math.round(M.Gm?M.Gm.S:0),maxKnownEndTime:Math.round(M.Z.index.DK()),averageByteRate:Math.round(M.Z.info.LZ)}}; bx=function(M,W=!1){!W||M.indexRange&&M.initRange&&M.Gm||Mv(M,new Wu("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));W={lmt:M.Z.info.lastModified,docid:M.policy.A,fmtid:M.Z.info.id,type:M.Z.info.mimeType.split(";")[0],csz:M.chunkSize,clen:M.A*M.chunkSize+M.V};M.crypto&&(W.ck=M.W,W.civ=M.C);W="local://localhost/videoplayback?"+so(W);W={itag:+M.Z.info.itag,mimeType:M.Z.info.mimeType,bitrate:M.Z.info.sB*8,lastModified:String(M.Z.info.lastModified),initRange:M.initRange?.Z(), indexRange:M.indexRange?.Z(),url:W};var b=M.Z.info.V;b&&(W.xtags=b);if(b=M.Z.info.video)if(W.quality=b.quality,W.qualityLabel=b.qualityLabel,W.width=b.width,W.height=b.height,b=b.fps)W.fps=b;if(M=M.Z.info.audio){if(b=M.sampleRate)W.audioSampleRate=String(b);if(M=M.numChannels)W.audioChannels=M}return W}; T1=function(M,W,b=!1){W.then(T=>{M.gK.delete(W);(b||T===4)&&M.D.resolve(T)},T=>{M.D.reject(T)})}; qv=function(M){return!!M.Gm&&M.Gm.C()}; Mv=function(M,W){g.s1(M.policy.A)!==4&&(g.wL(M.policy.A,4),g.lR(W),M.D.reject(new Wu(W.message)))}; kiq=function(M,W){let b=0;const T=U6(W.V);if(M.A=T.length)return;if(b<0)throw Error("Missing data");M.A=M.B;M.V=0}for(;b{const q=$e(T,M.Gm.Tv.info,bx(M,!0),b,M.policy.wK,M.A,W,M.crypto);T1(M,q,!0)})}else Mv(M,new Wu("Woffle: Expect always re-mark currentChunkOffset at EOS")); else Mv(M,new Wu("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; myg=function(M,W){if(!qv(M)&&!M.ST()){if(!(M.Zs||(M.Zs=!0,M.B>0))){var b=$R(M);b=$e(M.policy.A,M.Z.info,bx(M),b,M.policy.wK);T1(M,b)}if(W.info.type===1){if(M.Gm){Mv(M,Error("Woffle: Expect INIT slices to always start us off"));return}M.initRange=KO(0,W.V.totalLength)}else if(W.info.type===2)M.Gm&&M.Gm.type===1||Mv(M,Error("Woffle: Index before init")),M.indexRange=KO(M.initRange.end+1,W.V.totalLength);else if(W.info.type===3){if(!M.Gm){Mv(M,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(M.Gm.type===3&&!LO(M.Gm,W.info)&&(M.X=[],W.info.Kp!==Z5(M.Gm)||W.info.Z!==0))return;if(W.info.B){for(const T of M.X)kiq(M,T);M.X=[]}else{M.X.push(W);M.Gm=W.info;return}}else{Mv(M,Error("Woffle: Unexpected slice type"));return}M.Gm=W.info;kiq(M,W);vGt(M)}}; KpL=function(M){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(M.Z.index.DK()),averageByteRate:Math.round(M.Z.info.LZ)}}; Lpp=function(M){M=g.op(M,1886614376);for(const W of M);return g.dG(M,W=>lkP(W))}; leL=function(M){var W=cy(M,(T,q)=>T+q.length,0); W=new Uint8Array(W);let b=0;for(const T of M)W.set(T,b),b+=T.length;return W}; Z2q=function(M){a:{var W=M.initData;try{var b=0;const q=new DataView(W.buffer);for(;b0){const J=q.getUint32(b+28);G+=J*16+4}const V=q.getUint32(b+G-4);try{const J=t4g(W.subarray(b+G,b+G+V));if(J!==null){var T=J;break a}}catch(J){}b+=X}T=null;break a}catch(q){T=null;break a}T=void 0}if(T!=null){W=vb(n$(T,7,void 0,bX));W==null||M.dU||(M.cryptoPeriodIndex=W);W=vb(n$(T,10, void 0,bX));W!=null&&W>0&&!M.dU&&(M.Z=W);for(const q of lW(T,2,ZV,void 0===oE?2:4))T=M.B,W=T.push,b=Oy(q),b=g.Id(b,4),W.call(T,b)}}; Ieq=function(M){return isNaN(M.cryptoPeriodIndex)?g.Id(M.initData):`${M.cryptoPeriodIndex}`}; Xw=function(M){if(M.offset>=M.V.totalLength)throw Error();return kE(M.V,M.offset++)}; NQL=function(M,W=!1){var b=Xw(M);if(b===1){W=-1;for(b=0;b<7;b++){var T=Xw(M);W===-1&&T!==255&&(W=0);W>-1&&(W=W*256+T)}return W}T=128;for(let q=0;q<6&&T>b;q++)b=b*256+Xw(M),T*=128;return W?b:b-T}; H2G=function(M){try{const W=NQL(M,!0),b=NQL(M,!1);return{id:W,size:b}}catch(W){return{id:-1,size:-1}}}; RRG=function(M){var W=new feS(M),b=-1,T=0;let q=0;for(;!T||!q;){const {id:X,size:G}=H2G(W);if(X<0)return;if(X===176){if(G!==2)return;T=W.Z()}else if(X===186){if(G!==2)return;q=W.Z()}X===374648427?b=W.Z()+G:X!==408125543&&X!==174&&X!==224&&W.skip(G)}W=Ca(M,0,b);b=new DataView(W.buffer);b.setUint16(T,3840);b.setUint16(q,2160);T=new IR([W]);E6(T,M);return T}; jB=function(M){M.C?.dispose();M.C=null}; rCL=function(M){return M.V.length?M.V[0]:null}; xyJ=function(M,W){return M.V.some(b=>b.info.Kp===W)}; G1=function(M,W){W={rst4disc:W,cd:M.W.toFixed(3),sq:M.yz?M.yz.Kp:-1};M.B=NaN;M.W=0;M.MK=-1;M.yz=null;M.Lp=NaN;M.xk=NaN;M.An=null;M.loader.dK("mdstm",W)}; VP=function(M){M.Z=null;M.O=-1;M.D=0;M.S=null;M.sY=NaN;M.X=0;M.gK=null}; JV=function(M,W){if(W.info.B){M.jT=W.info;if(M.S){var b=M.S,T=Fps(M,!1);b=i2s(b);M.loader.xb(M.Tv,T,b);M.gK||M.policy.GN||hRp(M);M.gK=null}VP(M)}M.C&&myg(M.C,W);if(T=M.zy())if(T=T.C(W,M.policy.ix,M.policy.GY)){M.V.pop();M.V.push(T);return}M.V.push(W)}; O2t=function(M,W,b,T=0){if(M.A){var q=M.A.Z+M.A.V;if(b.info.Z>0)if(b.info.Kp===M.A.Kp&&b.info.Z=0&&M.A.Kp>=0&&!LO(M.A,b.info))throw new g.EF("improper_continuation",M.A.lw(),b.info.lw());XFt(M.A,b.info)||G1(M,"d")}else if(b.info.Z>0)throw new g.EF("continuation_of_null",b.info.lw());M.A=b.info;M.Tv=b.info.Tv;if(b.info.Z===0){if(M.Z)if(!M.loader.isOffline()||M.policy.Fp)M.loader.dK("slice_not_fully_processed",{buffered:M.Z.info.lw(), push:b.info.lw()});else throw new g.EF("slice_not_fully_processed",M.Z.info.lw(),b.info.lw());VP(M);M.BY=T}else{if(M.BY&&T&&M.BY!==T)throw M=new g.EF("lmt_mismatch",b.info.Kp,M.BY,T),M.level="WARNING",M;!b.info.Tv.B()&&M.S&&(T=b.info,q=M.S.oE,T.W="updateWithEmsg",T.Kp=q)}if(M.Z){T=M.Z.C(b);if(!T)throw new g.EF("failed_to_merge",M.Z.info.lw(),b.info.lw());M.Z=T}else M.Z=b;a:{b=g.FH(M.Z.info.Tv.info);if(M.Z.info.type!==3){if(!M.Z.info.B)break a;M.Z.info.type===6?ACt(M,W,M.Z):zRP(M,M.Z);M.Z=null}for(;M.Z;){T= M.Z.V.totalLength;if(M.O<=0&&M.D===0){var X=M.Z.V;let B=q=-1;if(b){for(var G=0;G+80))break;if(E!==408125543)if(E===524531317)G=!0,n>=0&&(B=X.Z()+n,V=!0);else{if(G&&(E===160||E===163)&&(q<0&&(q=J),V))break;E===163&&(q=Math.max(0,q),B=X.Z()+n);if(E===160){q<0&&(B=q=X.Z()+n);break}X.skip(n)}}q<0&&(B=-1)}const {hq:D, YO:a}={hq:q,YO:B};if(D<0)break;M.O=D;M.D=a-D}if(M.O>T)break;M.O?(T=ueJ(M,M.O),T.S&&SIy(M,T),ACt(M,W,T),JV(M,T),M.O=0):M.D&&(T=ueJ(M,M.D<0?Infinity:M.D),M.D-=T.V.totalLength,JV(M,T))}}M.Z&&M.Z.info.B&&(JV(M,M.Z),M.Z=null)}; SIy=function(M,W){var b=g.Oe(W);if(r8(W.info.Tv.info)&&W.info.Tv.info.video.primaries==="bt2020"){var T=new Qg(b);gW(T,[408125543,374648427,174,224,21936,21937])&&(T=T.start+T.pos,b.getUint8(T)===129&&b.getUint8(T+1)===1&&b.setUint8(T+1,9))}T=W.info.Tv.info;T.A()&&!r8(T)&&(T=g.Oe(W),(new Qg(T)).yf(),Yb([408125543,374648427,174,224],21936,T));W.info.Tv.info.OO()&&(T=W.info.Tv,T.info&&T.info.video&&T.info.video.projectionType==="MESH"&&!T.X&&(g.FH(T.info)?T.X=xHg(b):T.info.dU()&&(T.X=PRS(b))));W.info.Tv.info.dU()&& W.info.OO()&&(b=g.Oe(W),(new Qg(b)).yf(),Yb([408125543,374648427,174,224],30320,b)&&Yb([408125543,374648427,174,224],21432,b));if(M.policy.Dp&&W.info.Tv.info.dU()){T=g.Oe(W);var q=new Qg(T);if(gW(q,[408125543,374648427,174,29637])){b=pb(q,!0);q=q.start+q.pos;for(var X=0;XT.info.Ab+T.V.totalLength,0); M.Z&&(W+=M.Z.V.totalLength);return W}; ueJ=function(M,W){var b=M.Z;W=Math.min(W,b.V.totalLength);if(W===b.V.totalLength)return M.Z=null,b;b=P9t(b,W);M.Z=b[1];return b[0]}; ACt=function(M,W,b){if(b.info.Tv.B()){if(M.wK&&oGq(b)){W=g.Oe(b);var T=g.OV(W,0,1953658222);if(T){T.skip(1);var q=Ip(T)<<16|NY(T),X=q&1,G=q&4;if(q&256){W=q&512;var V=q&1024;q&=2048;var J=fb(T);J<2||(X&&T.skip(4),G&&T.skip(4),X=fb(T),T.skip((J-1)*(4+(W?4:0)+(V?4:0)+(q?4:0))-4),T.data.setUint32(T.offset+T.Z,X))}}}if(W=M.Zs&&!!M.Zs.Tv.Zs)if(W=b.info.OO())W=c1J(b),V=M.Zs,Dv?(T=1/W,W=aZ(M,W)>=aZ(V)+T):W=M.getDuration()>=V.getDuration(),W=!W;W&&oGq(b)&&(W=M.Zs,Dv?(T=c1J(b),V=1/T,T=aZ(M,T),W=aZ(W)+V-T): W=W.getDuration()-M.getDuration(),W=1+W/b.info.duration,fkq(g.Oe(b),W))}else{T=!1;M.S||(gXt(b),b.Z&&(M.S=b.Z,T=!0,X=b.info,G=b.Z.oE,X.W="updateWithEmsg",X.Kp=G,X=b.Z,X.C&&(G=M.Tv.index,G.S=!X.C,G.C="emsg"),X=b.info.Tv.info,G=g.Oe(b),g.FH(X)?c_(G,1701671783):X.dU()&&Yb([408125543],307544935,G)));a:if((X=ch(b,M.policy.oT))&&QIL(b))G=cCL(M,b),M.W+=G,X-=G,M.X+=X,M.B=M.policy.Dc?M.B+X:NaN;else{if(M.policy.Vl){if(G=J=M.loader.Sa(g.dx(b),1),M.B>=0&&b.info.type!==6){if(M.policy.Dc&&isNaN(M.xk)){g.lR(new g.EF("Missing duration while processing previous chunk", b.info.lw()));M.loader.isOffline()&&!M.policy.Fp||Qjy(M,b,G);G1(M,"m");break a}q=J-M.B;var B=q-M.W;const D=b.info.Kp,a=M.yz?M.yz.Kp:-1,E=M.Lp,n=M.xk,C=M.policy.Oc&&q>M.policy.Oc,l=Math.abs(B)>10,N=Math.abs(M.B-G)<1E-7;if(Math.abs(B)>1E-4){M.lV+=1;const R=M.S?.B();B={audio:`${+M.s1()}`,sq:D.toFixed(),sliceStart:J,lastSq:a.toFixed(),lastSliceStart:E,lastSliceDuration:n,totalDrift:(q*1E3).toFixed(),segDrift:(B*1E3).toFixed(),skipRewrite:`${+(C||l)}`};R?.length&&(B.adCpn=R[0]);M.loader.handleError("qoe.avsync", B);M.MK=D}C||l||N||(G=M.B);J=cCL(M,b,J);X-=J;M.W=q+J}}else G=isNaN(M.B)?b.info.startTime:M.B;Qjy(M,b,G)&&(M.X+=X,M.B=G+X,M.policy.X1&&M.lV>=M.policy.X1&&(M.lV=0,M.loader.fW({resetForRewrites:"count"})))}M.yz=b.info;M.xk=on(b);b.B>=0&&(M.Lp=b.B);if(T&&M.S){T=Fps(M,!0);Hh(b.info,T);M.Z&&Hh(M.Z.info,T);for(V of W)M.policy.C&&V.Kp!==M.S?.oE||Hh(V,T);(b.info.B||M.Z&&M.Z.info.B)&&b.info.type!==6||(M.gK=T,M.policy.V?(W=i2s(M.S),M.loader.xb(M.Tv,T,W)):(W=M.loader,W.HY.isManifestless&&gGG(W,T,null,!!M.Tv.info.video)), M.policy.GN||hRp(M))}}eRy(M,b);M.timestampOffset&&duQ(b,M.timestampOffset)}; Fps=function(M,W){let b;const T=M.S;if(b=ZTt(T))b.startSecs+=M.sY;const q=M.sY;let X=0;M.Tv instanceof E$&&(X=M.Tv.WO);return new zU(T.oE,q,W?X:M.X,T.ingestionTime,`sq/${T.oE}`,void 0,void 0,W,b)}; i2s=function(M){if(M.Ai()){var W=M.data["Stitched-Video-Id"]?M.data["Stitched-Video-Id"].split(",").slice(0,-1):[],b=M.B();var T=[];if(M.data["Stitched-Video-Duration-Us"])for(var q of M.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1))T.push((Number(q)||0)/1E6);q=[];if(M.data["Stitched-Video-Start-Frame-Index"])for(var X of M.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1))q.push(Number(X)||0);X=[];if(M.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(const G of M.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0, -1))X.push((Number(G)||0)/1E6);M=new sjL(W,b,T,X,g.N4s(M),g.HTy(M))}else M=null;return M}; hRp=function(M){const W=M.S,b=ZTt(W);b&&(b.startSecs+=M.sY,M.loader.nC(M.Tv,b,W.oE,W.Ai()))}; cCL=function(M,W,b){var T=0;if(W.info.Tv.info.dU()&&!QIL(W))return 0;if(M.Zs&&!M.s1()){let B=0;b&&g.FH(W.info.Tv.info)?B=b-M.B:W.info.Tv.info.dU()&&(B=M.W);var q=W.info.Kp;b=ch(W,M.policy.oT);var X=M.Zs;const {EK:D,Q6:a}={EK:X.MK,Q6:X.W};X=Math.abs(a-B)>.02;if((q===D||q>D&&q>M.MK)&&X){T=Math.max(.95,Math.min(1.05,(b-(a-B))/b));if(g.FH(W.info.Tv.info))fkq(g.Oe(W),T);else if(W.info.Tv.info.dU()&&(X=B-a,!g.FH(W.info.Tv.info)&&(W.info.Tv.info.dU(),T=new Qg(g.Oe(W)),q=W.S?T:new Qg(new DataView(W.info.Tv.V.buffer)), ch(W,!0)))){var G=X*1E3,V=X4(q);q=T.pos;T.pos=0;if(T.Z.getUint8(T.pos)===160||jV(T))if(wW(T,160))if(pb(T,!0),wW(T,155)){X=T.pos;var J=pb(T,!0);T.pos=X;G=G*1E9/V;V=Mp(T);G=V+Math.max(-V*.7,Math.min(V,G));G=Math.sign(G)*Math.floor(Math.abs(G));if(!(Math.ceil(Math.log(G)/Math.log(2)/8)>J)){T.pos=X+1;for(X=J-1;X>=0;X--)T.Z.setUint8(T.pos+X,G&255),G>>>=8;T.pos=q}}else T.pos=q;else T.pos=q;else T.pos=q}T=ch(W,M.policy.oT);T=b-T}T&&W.info.Tv.info.dU()&&M.loader.dK("webmDurationAdjustment",{durationAdjustment:T, videoDrift:B+T,audioDrift:a})}return T}; Qjy=function(M,W,b){if(!e3G(W,b))return W=In(W.info),W.smst="1",M.loader.handleError("fmt.unparseable",W||{},1),!1;isNaN(M.sY)&&(M.sY=b);return!0}; oGq=function(M){return M.info.Tv.B()&&M.info.Kp===M.info.Tv.index.Y_()}; aZ=function(M,W=0){W=W?Math.round(M.timestampOffset*W)/W:M.timestampOffset;M.Tv.Zs&&W&&(W+=M.Tv.Zs.Z);return W+M.getDuration()}; w2P=function(M,W){W<0||(M.V.forEach(b=>{duQ(b,W)}),M.timestampOffset=W)}; yP=function(M,W=!1){var b=M.loader.getCurrentTime(),T=M.B.zy();let q=T?.info.S||0;if(T?.info.Tv.sY()&&!T.info.B)if(M.policy.Eh)q=T.info.A;else if(M.policy.cV){var X=T.info;q=X.range?X.S:Math.min(X.startTime+Math.min(X.duration*X.Z/X.Tv.info.sB,X.duration)+(X.range?X.D:Math.min(X.duration,X.duration*X.V/X.Tv.info.sB)),X.startTime+X.duration)}if(!M.JT){if((M.policy.Z||M.policy.vV)&&W&&!isNaN(b)){if(T)return q-b;if(M.policy.vV&&M.Tv.info.Qz==="f")return Infinity}return 0}if((X=Ep(M))&&nE(X))return X.S; var G=M.JT.ZY(!0);if(W&&T)return X=0,M.policy.Z&&(X=d8(G,q+.02)),X+q-b;W=d8(G,b);M.policy.Nf&&X&&(T=uS(G,b),G=uS(G,X.A-.02),T===G&&(b=X.S-b,M.policy.B&&b>W+.02&&M.dK("abh",{bh:W,bhtls:b}),W=Math.max(W,b)));return W}; HdQ=function(M){M.C=!0;M.A=!0;M.S=-1;Jg(M,Infinity)}; j8=function(M){for(const W of M.V)Up(M,W);M.V=[];M.Z=null}; GV=function(M,W,b=!1){if(M.JT){const T=M.JT.ZY(),q=O5(T,W);let X=NaN;const G=Ep(M);G&&(X=O5(T,G.Tv.index.getStartTime(G.Kp)));if(q===X&&M.Z&&M.Z.V&&p2p(CE(M),0))return W}M=kR(M,W,b);return M>=0?M:NaN}; Jg=function(M,W,b){M.Tv.Z();var T=kR(M,W);if(T>=0)return T;M.W?.Zs(W,b);T=Math;var q=T.min,X=M.B;if(X.C)if(X=X.C,X.Gm&&X.Gm.type===3)X=X.Gm.startTime;else if(X.B>0){var G=X.Z.index;G=g.k5(G.offsets.subarray(0,G.count),X.B*X.chunkSize);X=X.Z.index.getStartTime(G>=0?G:Math.max(0,-G-2))}else X=0;else X=Infinity;W=q.call(T,W,X);M.Z=M.policy.Zs?null:M.Tv.C(W).g9[0];KE(M)&&(M.policy.BT&&b?.seekSource===60||M.JT&&M.JT.abort(),M.policy.XI&&M.W?.D());M.BY=0;return M.Z?M.Z.startTime:W}; BJ=function(M){return rCL(M.B)}; YIl=function(M,W){return!!M.W?.O(W)||xyJ(M.B,W)}; vu=function(M,W,b=!1){W&&Dv&&w2P(M.B,W.XO());b||M.W?.C();M.JT=W;M.W?.sY(M.JT)}; Ep=function(M){return M.policy.kX?M.W?.BY()||null:M.JT&&M.JT.Cl()}; $Wl=function(M){const W={};for(let b=0;b4&&M.Zs.shift()}; Mls=function(M,W){if(W.SA()){const b=W.jh();for(const T of b)M.policy.B&&W instanceof qM&&M.dK("omblss",{s:T.info.lw()}),LE(M,W.info.g9,T,W.FO())}}; LE=function(M,W,b,T=0){isNaN(M.gK)||(M.dK("aswm",{sq:W[0].Kp,id:W[0].Tv.info.itag,xtag:W[0].Tv.info.V,ep:Date.now()-M.gK}),M.gK=NaN);switch(b.info.type){case 1:case 2:WFL(M,b);break;case 4:var q=b.info.Tv;const X=q.jT(b);M.Z?.X()&&J1y(b.info,M.Z)&&(M.Z=q.BY(M.Z).pop());for(const G of X)LE(M,W,G,T);break;case 3:b.info.Tv.info.video?(q=M.timing,q.yz||(q.yz=(0,g.u)(),g.Cd("fvb_r",q.yz,q.Z))):(q=M.timing,q.C||(q.C=(0,g.u)(),g.Cd("fab_r",q.C,q.Z)));O2t(M.B,W,b,T);M.policy.Z&&bQa(M);break;case 6:O2t(M.B, W,b,T),M.Z=b.info}}; WFL=function(M,W){if(W.info.type===1)if(W.info.Tv.info.video){var b=M.timing;b.lV||(b.lV=(0,g.u)(),g.Cd("vis_r",b.lV,b.Z))}else b=M.timing,b.D||(b.D=(0,g.u)(),g.Cd("ais_r",b.D,b.Z));zRP(M.B,W);M=M.loader;M.videoTrack.Tv.Z()&&M.audioTrack.Tv.Z()&&M.policy.Z&&!M.HY.Me&&(W=M.audioTrack.getDuration(),b=M.videoTrack.getDuration(),Math.abs(W-b)>1&&M.dK("trBug",{af:`${g.hE(M.audioTrack.Tv.info,!1)}`,vf:`${g.hE(M.videoTrack.Tv.info,!1)}`,a:`${W}`,v:`${b}`}))}; bQa=function(M){M.V.length?M.Z=g.zS(g.zS(M.V).info.g9):M.B.V.length?M.Z=M.B.zy().info:M.Z=Ep(M)}; lx=function(M,W){const b={h5:[],Ku:[]};return M.W?.gK(W)??b}; kR=function(M,W,b=!1){if(!M.Z||!M.Z.V)return NaN;M=CE(M);W=T6l(M,W+.02,b);return W<0?NaN:p2p(M,b?W:0)?M[W].startTime:NaN}; KE=function(M){var W;!(W=M.Tv.info.Qz==="f")&&(W=M.policy.A)&&(W=M.B,W=!!W.C&&qv(W.C));if(W)return!0;W=Ep(M);if(!W)return!1;const b=nE(W)&&W.B;return M.isManifestless&&M.sY>0?b||W.Kp>=M.sY:b}; tV=function(M){let W=0;for(const b of M.V)W+=Dus(b.info);return W+=dya(M.B)}; nE=function(M){return M?M.C():!1}; qEQ=function(M){const W=Ep(M);return W?W.S-M.loader.getCurrentTime():0}; Zv=function(M,W,b,T){if(!M.Tv.index.Z5(W,!0))return!1;try{j8(M);var q=M.B;let X=null;for(let G=q.V.length-1;G>=0;G--){const V=q.V[G];V.info.Kp>=W&&(q.V.pop(),q.B-=ch(V,q.policy.oT),X=V.info)}X&&(q.A=q.V.length>0?q.V[q.V.length-1].info:q.An,q.V.length!==0||q.A||G1(q,"r"));q.loader.dK("mdstm",{rollbk:1,itag:X?X.Tv.info.itag:"",popped:X?X.Kp:-1,sq:W,lastslc:q.A?q.A.Kp:-1,lastfraget:q.B.toFixed(3)});if(M.policy.Z)return M.Z=null,!0;T>b?Jg(M,T):M.Z=M.Tv.S(W-1,!1).g9[0]}catch(X){return W=bS(X),W.details.reason= "rollbkerr",M.loader.handleError(W.errorCode,W.details,W.severity),!1}return!0}; Up=function(M,W,b=!1){XBq(M,W,b);W.dispose()}; IZ=function(M){const W=M.B.zy();return W?W.info:Ep(M)}; Nv=function(M,W){let b;for(b=0;bBBt(q,T))?(M.Z=T,M.policy.B&&M.dK("cer",{lsr:"lsp", lsp:T.lw()})):(t5(W.info.g9[0])?(M.Z=W.qL&&W.qL.B?Gat(W.qL.B):jIp(W.info.g9[0]),M.policy.B&&M.dK("cer",{lsr:M.Z.lw(),lsp:T?.lw()})):(M.Z=null,M.policy.B&&M.dK("cer",{lsr:"null",lsp:T?.lw()})),M.loader.isOffline()&&!M.policy.Fp||Up(M,W,!0))}}; Hu=function(M){return KE(M)||nE(M.B.zy()?.info)}; CE=function(M){let W=[];const b=Ep(M);b&&W.push(b);W=g.G4(W,M.B.uf());for(const T of M.V)for(const q of T.info.g9)T.A0&&(W=g.et(W,X=>!J1y(X,q))),(t5(q)||q.X())&&W.push(q); M.Z&&!TBQ(M.Z,g.zS(W),M.Z.Tv.B())&&W.push(M.Z);return W}; p2p=function(M,W){if(!M.length)return!1;for(W+=1;W=W)return q}return T}; fE=function(M){return!(!M.Z||M.Z.Tv===M.Tv)}; joL=function(M,W,b){return M.policy.Z?yP(M,!0)W&&M.SW.Bv)}; B6s=function(M,W){const b=BJ(M);return b&&b.info.type!==6?!W.gK(M,b.info.Kp):!1}; DWS=function(M,W){for(const b of M.X)if(b.oE===W)return b.T$?2:1;return 0}; E$g=function({hasSubfragmentedFmp4:M=!1,XJ:W=!1}={}){const b=new aYQ;b.YI=M||W;return b}; rq=function(M){return M.Z&&M.RV&&M.playbackStartPolicy}; M4L=function(M,W,b=!1){W.video.qualityOrdinal>1080&&!M.BS&&(M.An=36700160,M.EY=5242880,M.xk=Math.max(4194304,M.xk),M.BS=!0);W.video.qualityOrdinal>2160&&!M.AS&&(M.An=104857600,M.sB=13107200,M.AS=!0);g.TO(M.Vz.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?W.isEncrypted()&&g.EL()&&g.Df("samsung")&&(g.Df("kant")||g.Df("muse"))&&(M.sB=g.TO(M.Vz.experiments,"html5_samsung_kant_limit_max_bitrate")):W.isEncrypted()&&g.EL()&&g.Df("kant")&&(M.sB=1310720);M.Ri!==0&&W.isEncrypted()&&(M.sB=M.Ri);M.vL!== 0&&W.isEncrypted()&&b&&(M.sB=M.vL);W.sB&&(M.hH=Math.max(M.NW,Math.min(M.xk,5*W.sB)))}; xR=function(M,W,b=0){return g.TO(M.Vz.experiments,W)||b}; Fw=function(M,W,b,T){M.RV&&(M.playbackStartPolicy=W,M.cn=b,M.lD=T)}; uvg=function(M,W){if(W<0)return!0;const b=M.Y_();return W0)return 2;if(W<0)return 1;b=M.Y_();return W(0,g.u)()?0:1}; hV=function(M,W,b){if(M.policy.Ic)return!1;var T=M.Z;var q=W.Z?.Zs()||-1;T.V===3&&q+1>=T.A?(T.dK("sdai",{haltrq:q+1,est:T.A}),T=!1):T=T.V!==2;if(!T||!(W.Z?W.Z.Tv.Vc:W.Tv.Vc).W(M.policy,M.B,M.loader.b7)||M.loader.isSuspended&&(!ix(M.schedule)||M.loader.UF))return!1;if(M.policy.A&&Yj>=5)return M.loader.Eu.Wr(),!1;if(M.HY.isManifestless){if(W.V.length>0&&W.Z&&W.Z.Kp===-1||W.V.length>=M.policy.Uc||!M.policy.AB&&W.V.length>0&&!M.policy.W.YI)return!1;if(W.C)return!M.HY.isLive||!isNaN(M.qZ)}if(Jya(W))return!1; if(!W.Z){if(!W.Tv.Z())return!1;Jg(W,M.loader.getCurrentTime())}if(BJ(W)&&(W.zy()!==BJ(W)||M.loader.isSuspended))return!1;q=(T=M.policy.jN)&&!W.V.length&&yP(W,!0)=M.policy.QE)return!1;T=W.Z;if(!T)return!0;T.X()&&T.Tv.Z()&&(W.Z=g.zS(T.Tv.BY(T)),T=W.Z);if(!T.C()&&!T.Tv.A(T))return!1;X=M.HY.f7||M.HY.D;if(M.HY.isManifestless&&X){X=W.Tv.index.Y_();var G=b.Tv.index.Y_(); X=Math.min(X,G);if(W.Tv.index.GZ()>0&&X>0&&T.Kp>=X)return W.sY=X,b.sY=X,!1}if(T.Tv.info.audio&&T.X()||T.C())return!1;X=!W.A&&!b.A;if(q=!q)q=T.S,q=!!(b.Z&&!nE(b.Z)&&b.Z.SUWs(M,W)?(UWs(M,W),!1):(M=W.JT)&&M.isLocked()?!1:!0}; dq=function(M,W){M.loader.X$(W);var b=Dus(W),T=M.loader.zo();b={PP:M.schedule,bO:b,Vt:U5y(M.A,b),eA:lk(W.g9[0]),ZM:hz(11,W.Vc.Z),uJ:M.policy.B,zE:(q,X)=>{M.loader.aC(q,X)}}; M.schedule.V.C&&(b.fu=(M.videoTrack.Tv?.info.sB||0)+(M.audioTrack.Tv?.info.sB||0));M.xJ&&(b.Kp=W.g9[0].Kp,b.qZ=W.qZ,b.xJ=M.xJ);T={oQ:aRL(W,M.loader.getCurrentTime()),Ju:M.policy.EX&&Rn(W)&&W.g9[0].Tv.info.video?EGJ(M.V):void 0,ER:M.policy.BY,poToken:M.loader.Q4(),T8:M.loader.RK(),sR:M.sR,NZ:isNaN(M.NZ)?null:M.NZ,wm:M.wm,eE:M.eE,Vq:M.Vq,Hk:T};return new Xa(M.policy,W,b,M.B,(q,X)=>{try{a:{const qa=q.info.g9[0].Tv,Xs=qa.info.video?M.videoTrack:M.audioTrack;if(!(q.state>=2)||q.isComplete()||q.ea()||!(!M.loader.WY|| M.loader.isSuspended||yP(Xs)>3)){const uQ=n$g(q,M.policy,M.B);uQ===1&&(M.O=!0);Cfl(M,q,uQ);if(q.isComplete()||q.ST()&&X<3){if(M.policy.B){const Lt=q.timing.D();Lt.rst=q.state;Lt.strm=q.xhr.XR();Lt.cncl=q.xhr&&q.rG.S?1:0;M.loader.dK("rqs",Lt)}q.aj&&M.loader.dK("sbwe3",{},!0)}if(!M.ST()&&q.state>=2){SdG(M.timing,q,qa);var G=M.loader;M.NZ&&q.L1&&G&&(M.NZ=NaN,M.loader.A$(q.L1),M.loader.dV(),M.loader.dK("cabrUtcSeek",{mediaTimeSeconds:q.L1}));q.oY&&M.NZ&&q.oY&&!q.oY.action&&(M.loader.BL(M.NZ),M.NZ=NaN, M.loader.dK("cabrUtcSeekFallback",{targetUtcTimeSeconds:M.NZ}));q.um&&M.loader.Kq(q.um);M.policy.Y9&&(M.Vq=q.Vq);if(q.state===3){Nv(Xs,q);Rn(q.info)&&AV(M,Xs,qa,!0);if(M.Cv){const Lt=q.info.iJ();Lt&&M.Cv.h2(q.info.g9[0].Kp,qa.info.id,Lt)}M.loader.I2()}else if(q.isComplete()&&q.info.g9[0].type===5){if(q.state!==4)q.Bi()&&M.loader.handleError(q.QW(),q.Ag());else{var V=(q.info.g9[0].Tv.info.video?M.videoTrack:M.audioTrack).V[0]||null;V&&V instanceof Xa&&V.ea()&&V.Zr()}q.dispose()}else{if(!q.Bi()&&q.Bv&& q.state>=2&&q.state!==3){var J=q.xhr.getResponseHeader("X-Response-Itag");if(J){var B=aes(M.V,J),D=q.info.B;if(D){var a=D-B.An();B.gK=!0;q.info.g9[0].Tv.gK=!1;var E=B.W(a);q.info=E;if(q.qL){var n=q.qL,C=E.g9;(C.length!==n.g9.length||C.length=M.policy.xn&&M.Cv&&q.info.isDecorated()&&St==="net.badstatus"&&Op(M.Cv,NR,oJ))){var R=(Lt.info.video&&Lt.Vc.B>1||q.Iq===410||q.Iq===500||q.Iq===503)&&!(PJ(M.V.S).size>0)&&!hz(51,Lt.Vc.Z),f=q.Ag(),x=Lt.info.video?M.videoTrack:M.audioTrack;R&&(f.stun="1");M.loader.handleError(St,f);M.ST()||(R&&sh(M.V,Lt),Nv(x,q),M.loader.I2())}}else B=1,M.Cv&&q.info.isDecorated()&& St==="net.badstatus"&&Op(M.Cv,NR,oJ)&&(B=0),M.HY.isLive&&q.QW()==="net.badstatus"&&M.S<=M.policy.dS*2?(rsq(M.HY),M.HY.f7||M.HY.isPremiere?Eh(M.loader,0,{jR:"badStatusWorkaround"}):M.HY.D?Eh(M.loader,M.HY.AX,{jR:"badStatusWorkaround",Sa:!0}):Pu(M.loader)):M.loader.handleError(St,q.Ag(),B);isNaN(M.NZ)||(M.loader.BL(M.NZ),M.NZ=NaN)}M.policy.cP&&!q.isComplete()?eB(M.loader):M.loader.I2();var A=yyQ(q,M.policy,M.B);Cfl(M,q,A)}}}}}catch(qa){A=M.gK?1:0,M.gK=!0,q=Mm(A),A=bS(qa,A),M.loader.handleError(A.errorCode, A.details,A.severity),q||M.loader.GK()}},T)}; KFG=function(M,W,b){var T=W.Z?W.Z.Tv.Vc:W.Tv.Vc;var q=M.B,X;(X=!M.policy.iD)||(X=Bh(12,T.Z)===Bh(28,T.V));X?T=!1:(q=GU(q,Bh(20,T.V)),X=6E4*q.A**1.6,(0,g.u)()0&&(b=((0,g.u)()-M.loader.u1)/1E3,W=Math.min(W,M.policy.OY+M.policy.Ha*b));W=M.loader.getCurrentTime()+W;return M.policy.PS&&(b=v$s(M.loader)+M.policy.PS,b=0||W.Vc.WN("defrag")==="1"||W.Vc.WN("otf")==="1"){W=null;break a}q=KO(0,4096)}q=new A5([new Np(5,T.Tv,q,"createProbeRequestInfo"+T.W,T.Kp)],W.V);q.Gr=b;q.Z=W.Z;W=q}W&&dq(M,W)}}; AV=function(M,W,b,T){if(!(b.Z()||b.yz()||b.gK||!b.Vc.W(M.policy,M.B,M.loader.b7)||b.info.Qz==="f"||M.policy.Z)){if(T){T=M.A;var q=b.info;T=Cyy(T,q.video?T.policy.cC:T.policy.Mh,q.sB)}else T=0;T=b.W(T);M=dq(M,T);fO(T)&&ms(W,M);b.gK=!0}}; ux=function(M,W){if(M.policy.useUmp&&W.ST())return!1;try{var b=W.info.g9[0].Tv;const G=b.info.video?M.videoTrack:M.audioTrack;var T=G;if(M.HY.isManifestless&&T){M.S=0;T.C&&(W.ST(),W.isComplete()||W.SA(),T.C=!1);W.S4()&&M.loader.sM.DJ(1,W.S4());var q=W.GZ(),X=W.zF();U$(M.HY,q,X)}if(W.info.eA()&&!fO(W.info))for(const J of W.jh())WFL(G,J);T=G;for(M.loader.getCurrentTime();T.V.length&&T.V[0].state===4;){const J=T.V.shift();Mls(T,J);T.lV=J.jU()}T.V.length&&Mls(T,T.V[0]);const V=!!BJ(G);V&&W instanceof qM&&(b.info.s1()?uPG(M.timing):zVa(M.timing));return V}catch(G){W=W.Ag();W.origin="hrhs";a:{M=M.loader;b=G;if(b instanceof Error){W.msg||(W.msg=`${b.message}`);W.name||(W.name=`${b.name}`);if(b instanceof g.EF&&b.args)for(const [V,J]of Object.entries(b.args))W[`arg${V}`]=`${J}`;g.lR(b);if(b.level==="WARNING"){M.qK.fW(W);break a}}M.handleError("fmt.unplayable",W,1)}return!1}}; LFa=function(M){const W=M.videoTrack.Tv.index;M.xJ=new mWp({ub:M.policy.ub,YI:M.policy.W.YI,yW:W.uu(),Y_:()=>W.Y_(), R5:()=>W.R5()})}; lYs=function(M,W,b=0,T){W!==M.A&&(M.A&&(M.sY=!0),M.A=W,M.pm(W,M.videoTrack,b,T))}; tll=function(M){if(M.V?.isLocked())return M.videoInfos;const W=PJ(M.Z);let b=g.et(M.videoInfos,T=>T.sB>M.iN.sB?!1:!W.has(T.id)); M.Z.DT()&&(b=g.et(b,T=>T.video.width<=854&&T.video.height<=480)); return b}; ZQt=function(M,W){const b=[];for(const T of W)b.push(g.hE(T,M.HY.Me));return b}; IYL=function(M,W,b=0,T){if(M.W&&W!==M.S)return!0;M.W=!1;W!==M.S&&(M.S=W,M.pm(W,M.audioTrack,b,T));return!1}; N6q=function(M,W){return M.iN.FK&&W.reason==="l"||M.iN.Cs?!1:M.iN.SN?!0:W.reason==="l"||W.reason==="b"||W.reason==="o"}; HQq=function(M,W){const b=M.Z.Z;if(b){M.videoInfos=M.C;var T=g.pt(M.videoInfos,q=>q.id===b); T&&T.video.qualityOrdinal===W?M.videoInfos=[T]:(T=M.videoInfos.map(q=>q.id),M.loader.dK("sabrpf",{pfid:`${b}`, vfids:`${T.join(".")}`}),cu(M,W,W),e8(M.Z,""))}else cu(M,W,W)}; cu=function(M,W,b){M.videoInfos=M.C;M.videoInfos=g.et(M.videoInfos,T=>T.video.qualityOrdinal>=W&&T.video.qualityOrdinal<=b)}; fYs=function(M,W){M.iN.MK()&&(M.Zs=W.reason==="m"||W.reason==="l"?!0:!1);W.reason==="m"?W.isLocked()&&HQq(M,W.Z):N6q(M,W)?cu(M,W.V,W.Z):M.videoInfos=M.C;M.X=!0;M.V=W}; QP=function(M,W){return M.map(b=>yU(g.hE(b,W)))}; Rwa=function(M,W,b){if(M.D){var T=g.et(M.B,q=>q.id===M.D); return QP(T,b).includes(W)}T=g.et(M.B,q=>!!q.r9?.isDefault); return T.length>0?QP(T,b).includes(W):QP(M.B,b).includes(W)}; gq=function(M,W,b=!1){wdl(M.Z,W,b)}; xWa=function(M,W,b,T){const q=M.HY;var X=M.qK.getVideoData(),G=M.hf;const V=UcL({PP:M.PP,Vz:X.G(),qK:M.qK,aO:M.aO,iN:M.iN,LG:M.LG,nB:M.nB,Co:M.Co,Du:M.Du,Ym:M.Ym,K3:M.K3,W6:M.W6,sabrLicenseConstraint:X.sabrLicenseConstraint,K4:M.K4,zt:M.zt,FI:M.FI,k0:M.k0,Hm:!!G,authorizedFormats:X.authorizedFormats,z1:M.z1,DT:M.DT}),J=HJ(X,M.Hk,M.nextRequestPolicy,M.MN,M.Wk,M.Fr,M.jg);b&&W&&(b=J.ol?J.ol.map(a=>a.type):[],W("sabr",{stmctxt:b.join("_"), unsntctxt:J.g_?J.g_.join("_"):""}));W=M.yQ;b=M.T0;b===void 0&&W===void 0&&(b=ryJ(q.Me,M.TO?.video),W=ryJ(q.Me,M.TO?.audio));let B;X.wm&&(B=X.wm);let D;(X=M.iN?.N4)&&X>0&&(M.Al||M.eq)&&(D=new Uint8Array(X));G={Qp:V,Ku:M.Ku,yQ:W,T0:b,hf:G,videoPlaybackUstreamerConfig:B,jd:J,JN:D};T&&M.J6?M.J6.length>0&&(G.J6=M.J6):M.jI&&(G.jI=M.jI);M.iN?.MK()&&!cE()&&(M.wl&&(G.wl=M.wl),M.i5&&(G.i5=M.i5));G.h5=M.h5;G.fV=q.Ds;return G}; ryJ=function(M,W){return W?[g.hE(W.info,M)]:[]}; iQP=function(M,W,b){W=Ee(M.Vc,FFa(M,W,b),W);M.gF()&&W.set("probe","1");return W}; hwq=function(M){const W={},b=[],T=[];if(!M.data)return W;for(var q=0;q{W=Number(b);return`${W===1?2:W-1}---`})}; Qog=function(M,W=!1,b){var T=cR(M.uV.experiments,"debug_bandaid_hostname");return T?(W=g.TO(M.uV.experiments,"debug_bandaid_port"),T=W>0?`${T}:${W}`:T,W=M.uV.experiments.FX("debug_bandaid_insecure_scheme"),YR(M,T,W)):W&&b?.url&&!M.V?(T=Bh(4,new g.LJ(b.url)),YR(M,T)):M.Z.get(0)?.location.clone()}; M1=async function(M,W){var b=YR(M,"redirector.googlevideo.com");b.set("alr","yes");b.set("id",`${Math.round(Math.random()*1E5)}`);if(W===1||W===2)b.set("cmo=sensitive_content","yes"),b.set("sc","yes");W===2&&b.set("cmo=td","c.youtube.com");var T=await wa(b.WF(),{format:"RAW",timeout:5E3});if(T.xhr.status!==200||!T.xhr.responseText)return Promise.reject(new g.EF("b204258371_no_host",b.WF(),T.xhr.status));var q=new g.LJ(T.xhr.responseText);b=Bh(12,q);T=q.get("ms");M=YR(M,b);q=q.get("mm");M.set("ms", T);M.set("mm",q);return b&&g$L(b)?W!==2||$g(b)?M:Promise.reject(new g.EF("b204258371_untrusted",b,T)):Promise.reject(new g.EF("b204258371_invalid",b,T))}; soS=function(M,W){M=`https://${W.Z()}/initplayback?c=${ol(M.uV)}`+"&owc=1";pe(M,"pw",b=>{b.ht=W.V})}; Wn=function(M,W,b,T){pe(`https://${W}${"/videoplayback?probe=1"}`,b,q=>{!T.j("html5_onesie_host_racing")||T.videoData.isLivePlayback||T.j("html5_onesie_probe_ec_hosts")||T.Bz||T.Vv();M.B.push(q)},q=>{M.B.push(q.details)})}; g$L=function(M){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(M)}; $g=function(M){const W=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(M)&&!W.test(M)}; b3=function(M){for(;M.Z.length&&!M.Z[0].isEncrypted;){const {videoId:b,dM:T,formatId:q,buffer:X,zW:G}=M.Z.shift();if(X)M.x5.Cp.Uj?.get(b)?.Z(T,q,X);else if(G)M.x5.Cp.wr(b,T,q);else{var W=M.x5;W.Z[q].Z1=!0;W=W.Cp.Uj?.get(b);W?.UL(q)&&W?.V(q)}}}; g.$Yp=function(M){for(;!M.A&&!M.error;){var W=M;W.A=!!TK(W,1);switch(TK(W,2)){case 2:var b=void 0,T=[],q=[];q.length=19;q.fill(0);var X=TK(W,5)+257;b=TK(W,5)+1;var G=TK(W,4)+4;for(var V=0;V0;J--)T.push(V)}T.length!==G?W.error=!0:(b=T.slice(-b),T.length=X,YEp(W,T,b));break;case 1:YEp(W,Xb,j3);break; case 0:GK(W,W.Z&7);T=TK(W,16);X=TK(W,16);(T^X)!==65535&&(W.error=!0);W.output.set(W.data.subarray(W.V,W.V+T),W.B);W.V+=T;W.B+=T;break;default:W.error=!0}M.B>M.output.length&&(M.output=new Uint8Array(M.B*2),M.B=0,M.V=0,M.A=!1,M.Z=0,M.register=0)}M.output.length!==M.B&&(M.output=M.output.subarray(0,M.B));return M.error?new Uint8Array(0):M.output}; TK=function(M,W){for(;M.Z=M.data.length)return M.error=!0,0;M.register|=M.data[M.V++]<>=W;M.Z-=W;return b}; YEp=function(M,W,b){W=q1(W);b=q1(b);const T=M.data,q=M.output;let X=M.B;for(var G=M.register,V=M.Z,J=M.V;;){if(V<15){if(J>T.length){M.error=!0;break}G|=(T[J+1]<<8)+T[J]<>=7;B<0;)B=W[(G&1)-B],G>>=1;else G>>=B&15;V-=B&15;B>>=4;if(B<256)q[X++]=B;else if(M.register=G,M.Z=V,M.V=J,B>256){G=Vv[B];G+=TK(M,Jm[B]);J=pBQ(M,b);V=Bn[J];V+=TK(M,D2[J]);if(MXL&&Gb.length&&(M.error=!0);M.register|=(b[T+1]<<8)+b[T]<=0)return GK(M,b&15),b>>4;for(GK(M,7);b<0;)b=W[TK(M,1)-b];return b>>4}; GK=function(M,W){M.Z-=W;M.register>>=W}; q1=function(M){var W=[];for(var b of M)W[b]||(W[b]=0),W[b]++;var T=W[0]=0;b=[];var q=0,X=0;for(var G=1;G7&&(q+=W[G]);for(T=1;T>J&1;V=q<<4|G;if(G<=7)for(J=1<<7-G;J--;)X[J<>=7;G--;){X[J]||(X[J]=-W,W+=2);const B=T&1;T>>=1;J=B-X[J]}X[J]=V}}return X}; a2=function(M,W){M.V(`${"dcmprs"}_${M.context}_${M.Z}_${"gz"}_${W}`)}; WTs=function(M,W){return Fg(M,function(){const b=this;return function*(){let T;const q=Date.now();try{a2(b,"s");var X=yield*hy(W());if(!X)throw Error("no result");a2(b,"e");return X}catch(G){throw a2(b,"f"),T=G,b.LT(T,"gz"),G;}finally{X=Date.now(),b.x9("gz",X-q,T)}}()})}; jpL=function(M,W,b,T){return Fg(void 0,function(){return function*(){const q=(X,G)=>WTs(new bby(X,b,T),()=>NW(G(M))); if(EJ)try{return yield*hy(q("n",TWP))}catch(X){}if(W)try{return yield*hy(q(W.Z?"a":"w",X=>qVy(X,W)))}catch(X){}return yield*hy(q("p",X_L))}()})}; TWP=async function(M){if(!EJ)throw Error("DecompressionStream is not supported");const W=s$.HI();var b=new DecompressionStream("gzip");const T=b.writable.getWriter();T.write(M);T.close();M=b.readable.getReader();for(b=new IR([]);;){const {value:q,done:X}=await M.read();if(X)break;b.append(q)}M=U6(b);s$.kK("gznb",W,Math.ceil(M.byteLength/16));return M}; X_L=function(M){const W=s$.HI();M=g.$Yp(new g.Gmp(M));s$.kK("gzjb",W,Math.ceil(M.byteLength/16));return M}; qVy=function(M,W){const b=s$.HI();M=W.JS(M);let T;try{const q=M.byteOffset,X=M.byteLength,G=W.exports.getInflatedSize(q,X);if(G===0)throw Error("wasm_gz: bad input");const V=W.malloc(G),J=W.exports.inflateGzip(q,X,V);if(J)throw W.free(V),Error(`wasm_gz: fail${J}`);T=new Uint8Array(W.exports.memory.buffer,V,G)}finally{W.free(M.byteOffset)}W=W.QM(T);s$.kK("gzwb",b,Math.ceil(W.byteLength/16));return W}; np=function(M){var W=M.queue;W.Z.length&&W.Z[0].isEncrypted&&!W.V&&(W.Z.length=0);for(const b of Object.keys(M.Z)){const T=M.Z[b];T.Z1||(W=M.queue,W.Z.push({videoId:T.videoId,formatId:b,isEncrypted:!1}),W.V||b3(W))}}; VXP=function(M,W){const b=W.totalLength;let T=!1;switch(M.B){case 0:M.Xd(W,M.A).then(q=>{var X=M.Cp;X.vr("oprr");X.playerResponse=q;X.Ps||(X.dC=!1);yv(X)},q=>{M.Cp.fail(q)}); break;case 2:M.vr("ormk");W=U6(W);M.queue.decrypt(W);break;default:T=!0}M.Cp.Tu&&M.Cp.dK("ombup",`id.${11};pt.${M.B};len.${b}${T?";ignored.1":""}`);M.B=null}; JDt=function(M,W){M.Cp.vr("oprgz2_s");W=jpL(W,M.Cp.G().Ds,M.Cp.Tu?M.Cp.dK.bind(M.Cp):()=>{},b=>{M.Cp.vr(b)}); Ro(W,()=>{M.Cp.vr("oprgz2_e")},()=>{M.Cp.vr("oprgz2_f")}); return W}; BWp=async function(M,W){M.Cp.vr("oprgz_s");if(EJ)try{var b=await TWP(W);M.Cp.vr("oprgz_n");M.Cp.dK("oprsgz",{i:"n"});return b}catch(T){M.Cp.dK("gzerr",{impl:"native",err:`${T}`})}if(b=M.Cp.G().Ds)try{const T=qVy(W,b);M.Cp.vr("oprgz_w");M.Cp.dK("oprsgz",{i:"w"});return T}catch(T){M.Cp.dK("gzerr",{impl:"wasm",err:`${T}`})}W=X_L(W);M.Cp.vr("oprgz_p");M.Cp.dK("oprsgz",{i:"j"});return W}; DYG=function(M){return new Promise(W=>{setTimeout(W,M)})}; aQL=function(M,W){var b=M.G();b=M.Hr&&b.j("html5_onesie_preload_use_content_owner");if((W=Qog(W,b,M.HU))&&M.videoId){M=MT(M.videoId);b=[];if(M)for(const T of M)b.push(T.toString(16).padStart(2,"0"));W.set("id",b.join(""));return W}}; EbP=async function(M,W,b=0){const T=[];T.push(W.load());b>0&&T.push(DYG(b));await Promise.race(T);return aQL(M,W)}; nbQ=function(M,W,b,T=!1){M.set("cpn",W.clientPlaybackNonce);M.set("opr","1");const q=W.G();M.set("por","1");J3()||M.set("onem","1");W.startSeconds>0&&M.set("osts",`${W.startSeconds}`);T||(q.j("html5_onesie_disable_partial_segments")&&M.set("oses","1"),W=q.j("html5_gapless_onesie_no_media_bytes")&&LP(W)&&W.Hr,b&&!W?(W=b.audio,M.set("pvi",b.video.join(",")),q.j("html5_onesie_disable_audio_bytes")||M.set("pai",W.join(",")),q4||M.set("osh","1")):(M.set("oad","0"),M.set("ovd","0"),M.set("oaad","0"),M.set("oavd", "0")))}; yDt=function(M,W,b,T,q=!1){const X=`${"https://youtubei.googleapis.com/youtubei/"}${W.vg.innertubeApiVersion}/player`,G=[{name:"Content-Type",value:"application/json"}];T&&G.push({name:"Authorization",value:`Bearer ${T}`});G.push({name:"User-Agent",value:g.Vd()});g.F("EOM_VISITOR_DATA")?G.push({name:"X-Goog-EOM-Visitor-Id",value:g.F("EOM_VISITOR_DATA")}):(b=b.visitorData||g.F("VISITOR_DATA"))&&G.push({name:"X-Goog-Visitor-Id",value:b});(b=g.F("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&G.push({name:"X-YouTube-Lava-Device-Context", value:b});(W=cR(W.experiments,"debug_sherlog_username"))&&G.push({name:"X-Youtube-Sherlog-Username",value:W});M=ZU(JSON.stringify(M));return{url:X,cw:G,postBody:M,K2:q,Wf:q}}; UJ=function(M,W,b,T,q,X,G,V,J){const B=M.Qw,D=M.BE;M=M.Db;var a=B!==void 0&&D!==void 0;const E=T.getVideoData();var n=W.Z.encryptedClientKey;W=a?W.iv:void 0;a=Yf(X,!0);q=q||!!J3()&&a>1572864;return{innertubeRequest:{Nk:M,hx:B,BE:D,encryptedClientKey:n,iv:W,Uv:!0,Rm:!0,sU:"DecompressionStream"in window||!q,nk:b.experiments.FX("html5_use_jsonformatter_to_parse_player_response")},Qp:UcL({PP:X,Vz:b,qK:T,aO:E.startSeconds*1E3,Ip:!0}),onesieUstreamerConfig:G,JU:V,jd:HJ(E),reloadPlaybackParams:E.vg?.reloadPlaybackParams, l6:J}}; UYs=function(M,W,b,T,q,X,G,V){const J=g.Sr(M,yA);let B;var D;M.Wf||((D=SEq(W,J))?(B=D.gV,D=D.signature):(D=B=W.encrypt(J),(0,g.u)(),D=mOt(new ZSS(W.Z.B),D,W.iv)));return UJ(B&&D?{Qw:B,BE:D}:{Db:J},W,b,T,!!M.Wf,q,X,G,V)}; Cuq=async function(M,W,b,T,q,X,G,V){var J=g.Sr(M,yA);J=await ugg(W,J);const B=await PfP(W,J);return UJ({Qw:J,BE:B},W,b,T,!!M.Wf,q,X,G,V)}; kmp=function(M,W,b,T,q,X,G,V){var J=g.Sr(M,yA);if(J=SEq(W,J))return UJ({Qw:J.gV,BE:J.signature},W,b,T,!!M.Wf,q,X,G,V)}; vbL=async function(M,W,b){M.vr("oprd_s");W=KTa(M)?await ewt(M.r4,W,b):M.r4.decrypt(W,b);M.vr("oprd_c");return W}; Cp=function(M){if(!M.qp)return{};const W=M.qp.D();W.d=M.qp.An?.Ba();W.shost=M.S5;W.ty="o";return W}; KTa=function(M,W){return M.j("html5_onesie_sync_request_encryption")||W?.Wf?!1:!!J3()}; mYq=function(M){return M.j("html5_onesie_host_probing")||M.Tu?q4:!1}; yv=function(M){if(!M.playerResponse)return!1;if(M.KV)return!0;var W=M.videoData.j("html5_onesie_audio_only_playback")&&lY(M.videoData);if(M.Uj&&M.dC){if(!M.Uj.has(M.oi))return!1;const T=M.Uj.get(M.oi);var b;if(b=T){b=!1;for(const q of T.ag.keys()){const X=T.ag.get(q);if(X)for(const G of X.O_)G.wF>0&&(X.s1?b=!0:W=!0)}b=!(W&&b)}if(b)return!1}M.vr("ofr");M.gs.resolve(M.playerResponse);M.QQ||(M.Lm?.start(),M.x3.start());return M.KV=!0}; lQs=function(M){if(M.Uj&&!M.j("html5_onesie_media_capabilities")){M.vr("ogsf_s");var W=Bdt(M.qK.getVideoData(),(T,q)=>{M.dK(T,q)}),b=LTS(M.qK); W.video=Wwl(b,W.video);M.vr("ogsf_c");if(W.video.length)return W;M.dK("ombspf",`l.${b.V};u.${b.Z};o.${b.B};r.${b.reason}`)}}; mC=function(M,W){if(W.ST()||M.ST())M.policy.fH||(M.policy.C?kg(M.loader):M.loader.I2());else{if(M.policy.B&&W.isComplete()&&W instanceof iF){var b=M.loader,T=b.dK;var q=Object.assign(W.qp.D(),{rst:W.state,strm:W.xhr.XR(),d:W.qp.An?.Ba(),cncl:W.xhr&&W.rG.S?1:0,rqb:W.Kc,cwt:W.rG.B,swt:W.rg?.BQ});q=Object.assign(hwq(W.info),q);T.call(b,"rqs",q)}if(W.isComplete()&&W.gF()&&W instanceof iF)M.policy.fv?W.zQ()?(W.dispose(),M.Z.length===0?M.loader.I2():(M=M.Z[0],M instanceof iF&&M.ea()&&M.Zr())):W.Bi()&&M.loader.handleError(W.QW(), W.Ag()):(W.dispose(),M.loader.I2());else{if(W.D8())M.eq=!0,W instanceof iF&&SdG(M.timing,W),tXt(M),Kp(M);else if(W.Bi())b=M.qK.JE(),W instanceof iF&&W.info.Z?.Qp?.K4&&b&&M.loader.BL(b),W instanceof iF&&izL(W)?M.loader.tU?.B():W instanceof vn?M.Z.pop():(b=1,W.canRetry()&&SB(M.loader)&&(Zbs(M,W),b=0),M.loader.handleError(W.QW(),W.Ag(),b));else{if(M.loader.isSuspended&&!W.isComplete())return;Kp(M)}W.ST()||W instanceof vn||(W.isComplete()?b=yyQ(W,M.policy,M.A):(b=n$g(W,M.policy,M.A),b===1&&(M.EY=!0)), b!==0&&(T=new IQl(1,W.info.Vc),T.Gr=b===2,NWs(M,T)));W.isComplete()&&(M.Al=!1,W.D8()||(M.eq=!1));M.policy.cP&&!W.isComplete()?eB(M.loader):M.loader.I2()}}}; HbL=function(M){M.policy.FT&&(M.An=void 0,M.Ym=0)}; xYS=function(M){if(!fQs(M,M.O))return Lp(M,"ratelimited"),!1;if(Hu(M.audioTrack)&&Hu(M.videoTrack))return Lp(M,"endofstream"),!1;if(M.policy.V)if(M.policy.S){if(M.D?.O())return Lp(M,"ssdaiblocked"),!1}else{var W=!1;if(M.Zs.V===2)W=!0;else if(M.Zs.V===3){l3(M);M.loader.Ga();var b=lx(M.audioTrack,M.loader.isSeeking()).h5;var T=lx(M.videoTrack,M.loader.isSeeking()).h5;var q=M.loader.getCurrentTime()||0;b=tm(M,b,q);T=tm(M,T,q);T=Math.min(b,T);q=M.Zs;T>=q.B?(q.dK("sdai",{haltrq:T,est:q.B}),T=!0):T=!1; T&&(W=!0)}if(W)return Lp(M,"waitingforads"),!1}M.policy.p7&&(M.yz=Z2(M,M.audioTrack),M.BY=Z2(M,M.videoTrack));if(!M.B)return I2(M,{nopolicy:1}),!0;if(M.qK.JE())return I2(M,{utc:1}),!0;if(M.V.W)return I2(M,{audio:1}),!0;if(M.policy.po&&M.V.X)return I2(M,{constraint:1}),!0;if(!M.B.targetAudioReadaheadMs||!M.B.targetVideoReadaheadMs)return I2(M,{noreadahead:1}),!0;if(M.policy.C&&M.loader.LS())return I2(M,{seekToHead:1}),!0;W=Math.min(VX(M.loader,M.audioTrack)*1E3,M.B.targetAudioReadaheadMs);T=Math.min(VX(M.loader, M.videoTrack)*1E3,M.B.targetVideoReadaheadMs);q=Math.min(W,T);var X=M.qK.getCurrentTime()*1E3;const {FB:G,Ul:V,Mz:J,B5:B}=R7t(M,X);let D;b=G0&&M.O.M6++)}; NWs=function(M,W,b){var T={PP:M.PP,zE:(X,G)=>{M.qK.aC(X,G)}, eA:M.policy.U7,uJ:M.policy.B};M.PP.V.C&&(T.fu=(M.videoTrack.Tv.info.sB||0)+(M.audioTrack.Tv.info.sB||0));M.policy.JX&&(T.yW=M.audioTrack.Tv.index.uu(),T.eA=!1);var q=FFa(W,M.policy,M.A)?2:1;q!==M.gK&&(M.gK=q,tXt(M));b=M.T_(b);if(M.policy.X&&M.policy.B&&b.MN){let X=q="";for(const G of b.MN)M.videoData.sabrContextUpdates.has(G)||M.policy.X&&b.Fr&&b.Fr.type===G?q+=`_${G}`:X+=`_${G}`;M.loader.dK("sabrbldrqs",{ctxts:q,misctxts:X})}!W.setData(b,M.policy,M.A)&&M.policy.X&&M.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);T=new iF(M.policy,W,M.HY,M.A,M,T,M.loader.RK());Fa(M.timing);M.policy.Hr&&M.loader.dK("sabrcrqinfo",{rn:T.SG(),probe:W.gF()});return T}; Z2=function(M,W){l3(M);M.loader.Ga();return lx(W,M.loader.isSeeking())}; N1=function(M){return M.policy.s2&&!!M.C}; tm=function(M,W,b){M=M.loader.Ga()||0;return Hn(W,(b+M)*1E3)/1E3+b}; l3=function(M){const W=M.policy.C&&M.loader?.LS();var b=M.loader.getCurrentTime()||0;b=h7P(M,b);a:if(M.policy.FY&&M.loader.isSeeking()){var T=kR(M.videoTrack,b);M.loader.dK("asmtfnctv",{b,a:T});if(!isNaN(T)){b=T;break a}}T=M.loader.Ga()||0;b+=T;T=en(M.videoData)||g.PM(M.videoData);let q=0;W?(T&&(q=Number.MAX_SAFE_INTEGER),M.videoData.Lx&&(q=Math.ceil(M.videoData.AX*1E3))):q=Math.ceil(b*1E3);return Math.min(Number.MAX_SAFE_INTEGER,q)}; h7P=function(M,W){if(M.loader.isSeeking())return W;var b=M.qK.E2();if(!b)return W;b=b.O1();if(b.length===0||SA(b,W))return W;if(!M.videoTrack.uS(W)&&!M.audioTrack.uS(W))return M.loader.dK("sundrn",{b:0,lt:W}),W;let T=W,q=Infinity;for(let X=0;XW)continue;const G=W-b.end(X);G=20)?(M.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),W):T}; Hn=function(M,W){let b=0,T=-1;for(const q of M)if(!(q.startTimeMs+q.durationMsW||T>=0&&q.Zd>T+1)break;b=Math.max(b,q.startTimeMs+q.durationMs);T=Math.max(T,q.Fy)}return Math.max(0,b-W)}; fQs=function(M,W){a:{if(M.X>0){var b=Math.floor((0,g.u)()/1E4);if(b===W.EQ){if(W.M6>=M.X){W.M6===M.X&&(b={reason:"toomanyrequests"},b.limit=W.M6,M.loader.handleError("player.exception",b),W.M6+=1);W=!1;break a}}else W.EQ=b,W.M6=0}W=!0}return!W||M.loader.isSuspended&&M.loader.UF?!1:M.W&&(0,g.u)()0&&(!M.policy.X||M.Z.length!==1||!M.Z[0].A8())||!M.HY.gK?.W(M.policy,M.A,M.loader.b7)||M.Lp?!1:!0}; Lp=function(M,W){M.jT=W;M.policy.Hr&&M.loader.dK("sabrcrb",{reason:W})}; I2=function(M,W){M.jT=void 0;M.OY=(0,g.u)();M.policy.Hr&&M.loader.dK("sabrcrq",W)}; R7t=function(M,W){const {Mz:b,B5:T}=ADJ(M);let q;M.policy.p7?(q=Hn(M.yz.h5,W),M=Hn(M.BY.h5,W)):(q=b,M=T);return{FB:q,Ul:M,Mz:b,B5:T}}; tXt=function(M){M.videoData.An.clear();if(M.videoData.sabrContextUpdates.size>0)for(var W of M.videoData.sabrContextUpdates.keys())M.videoData.sabrContextUpdates.get(W)?.sendByDefault&&M.videoData.An.add(W);if(M.policy.X&&M.Z.length)for(const b of M.Z)(W=b.Eo())&&W.type&&W.sendByDefault&&M.videoData.An.add(W.type)}; Kp=function(M){for(;M.Z.length&&M.Z[0].TQ(M.rU());){const W=M.Z.shift();z7t(M,W)}M.Z.length&&z7t(M,M.Z[0])}; z7t=function(M,W){W instanceof iF&&(M.xk=W);var b=new Set(W.NA(M.rU()));for(const G of b){if(b=W instanceof vn){b=M.V;var T=b.HY.Me,q=QP(b.videoInfos,T);T=Rwa(b,G,T);var X=q.includes(G);!b.iN.pQ||T||X||b.loader.dK("sabrcpf",{fid:`${G}`,vfids:`${q.join(".")}`,said:b.D||""});b=!(T||q.includes(G))}if(b)continue;b=W.uf(G,M.rU());q=M.policy.s2&&tE(b[0].Tv.info.mimeType);if(!W.SA(G,M.rU()))continue;T=W.jh(G,M.rU());for(const V of T){M.policy.B&&W instanceof vn&&M.loader.dK("omblss",{s:V.info.lw()});if(q){T= M.timing;T.gK||(T.gK=(0,g.u)(),g.Cd("fcb_r",T.gK,T.Z));T=M;T.videoData.Me()&&T.C&&yU(T.C)===yU(g.hE(V.info.Tv.info,T.HY.Me))&&T.qK.publish("sabrCaptionsDataLoaded",V,T.h$.bind(T));continue}T=V.info.Tv.info.s1();X=V.info.Tv;const J=W instanceof vn?1:2;if(T){if(IYL(M.V,X,J,W.J7(M.rU())?.token))continue}else lYs(M.V,X,J,W.J7(M.rU())?.token);X=T?M.audioTrack:M.videoTrack;W instanceof vn&&(X.C=!1,W instanceof vn&&(T?uPG(M.timing):zVa(M.timing)));try{LE(X,b,V)}catch(B){T=bS(B),M.loader.handleError(T.errorCode, T.details,T.severity),X.GK(),M.nU(!1,"pushSlice"),kg(M.loader)}}}}; Zbs=function(M,W){M.policy.X?M.Z.splice(M.Z.indexOf(W)).forEach(b=>{b.dispose()}):(M.Z.pop(),W?.dispose())}; uuS=function(M,W,b){const T=[];for(let q=0;q=7E3&&q>=7E3}return W}; PuJ=function(M,W){M.delay?.dispose();M.delay=null;const b=Array.from(M.Z.values()).sort((T,q)=>T.mediaTime-q.mediaTime); b.length!==0&&(W=(b[0].mediaTime-W)*1E3/M.qK.getPlaybackRate(),M.delay=new g.d9(()=>{fp(M)},W>500?W-500:W),M.delay.start())}; fp=function(M,W){if(by(M.qK.getPlayerState())&&M.Z.size!==0){W=W??Array.from(M.Z.values()).sort((q,X)=>q.mediaTime-X.mediaTime); var b=M.getCurrentTime(),T=(W[0].mediaTime-b)*1E3/M.qK.getPlaybackRate();if(T<500){b=T>0?M.qK.E2()?.getCurrentTime()??M.qK.getCurrentTime():b;for(const q of W)if(b>=q.mediaTime)q.resolve([q.mediaTime,q.id]),M.Z.delete(q.id);else break}PuJ(M,b)}}; e7S=function(M,W,b){M.Z.delete(b);return new Promise(T=>{M.Z.set(b,{id:b,mediaTime:W,resolve:T});T=Array.from(M.Z.values()).sort((q,X)=>q.mediaTime-X.mediaTime); b===T[0].id&&fp(M,T)})}; obQ=function(M){const W=M.qK.E2()?.getCurrentTime()??M.qK.getCurrentTime(),b=M.A.UX(W);dYg(M,b,W);M.isSeeking=!1;var T=Array.from(M.Z.keys()).filter(q=>q>=b).sort((q,X)=>q-X); for(const q of T)T=q===b?W-M.A.getStartTime(b):0,M.W(q,M.Z.get(q),T)}; cDq=function(M,W,b,T=!1){W!==M.kh&&(M.kh=W,M.qK.publish("playbackstarted",W,b+M.qK.Ga(),T))}; dYg=function(M,W,b){const T=M.Z.get(W),q=M.A.getStartTime(W),X=M.A.getDuration(W);let G=q;(T?.Z??[M.cpn]).forEach((V,J)=>{const B=T?.V[J]??X;b>=G&&b{M.S.Z.delete(b)}); M.B.delete(W)}; gbt=function(M,W,b,T){M.V=b;b=`${W}.${b}`;M.B.has(W)?M.B.get(W).push(b):M.B.set(W,[b]);e7S(M.S,T,b).then(([q,X])=>{const [G,V]=X.split(".");[,X]=[Number(G),V];cDq(M,X,q)})}; w_g=function(M,W,b,T,q,X){return W.vp&&W.XX&&b===3?new spt(M,W,T,q,X):null}; p_G=function(M,W){if(M.policy.Jq){var b=W.info.sB,T=Yf(M.schedule);W=W.index.uu();b=Math.max(1,T/b);M.D=Math.round(Math.max(((b-1)*W+M.policy.WP)/b,W-M.policy.F5)*1E3)}}; MVs=function(M,W){var b=Date.now()/1E3,T=b-M.startTimeSecs;const q=b-M.C;var X=q>=M.policy.Ab,G=!1;if(X){let V=0;!isNaN(W)&&W>M.S&&(V=W-M.S,M.S=W);V/q=M.policy.F5&&!M.B;if(!X&&!b&&YVL(M,W))return NaN;b&&(M.B=!0);a:{T=G;b=(0,g.u)()/1E3-(M.z2.Hx()||0)-M.W.Z-M.policy.WP;X=M.V.startTime;b=X+b;if(T){if(isNaN(W)){R2(M,NaN,"n",W);X=NaN;break a}T=W-M.policy.YX;T0&&(G.headers=V);X&&(G.onFinish=X);return Object.keys(G).length>1?G:null}; xg=function(M,W,b,T,q,X,G,V){m0()&&b.token&&(M=k7(M,{ctt:b.token,cttype:b.EG,mdx_environment:b.mdxEnvironment}));T.j("net_pings_low_priority")&&(W||(W={}),W.priority="low");X||V&&T.j("nwl_skip_retry")?(W==null?W={}:XhL(M,T.j("html5_assert_cpn_with_regex")),G?ot().sendAndWrite(M,W):ot().sendThenWrite(M,W,V)):W?(XhL(M,T.j("html5_assert_cpn_with_regex")),C8S(M,W)):g.zu(M,q)}; jnG=function(M){const W=[];for(let b=0;b0&&b>0&&!M.V&&M.B<1E7)try{M.A=M.S({sampleInterval:W,maxBufferSize:b}),M.A?.addEventListener("samplebufferfull",async()=>{await M.stop();J5S(M)})}catch(T){M.V=VVs(T.message)}}; Fb=function(M,W){M=window.h5vcc?.settings?.set(M,W);return IH(M)?Ro(NW(M),()=>!0,()=>!1):NW(!!M)}; Bxt=function(M){return Fb("MediaSource.EnableUsingMediaSourceBufferedRange",M?1:0)}; DpS=function(M){return Fb("HTTP3",M?1:0)}; a5G=function(M){return Fb("MediaSource.EnableUsingMediaSourceAttachmentMethods",M?1:0)}; EmQ=function(M){return Fb("QUIC",M?1:0)}; nms=function(M){return Fb("Media.AudioWriteDurationLocal",M)}; y5t=function(M){return Fb("Media.PlayerConfiguration.DecodeToTexturePreferred",M?1:0)}; Upy=function(M){return Fb("Media.VideoBufferSizeClampMb",M)}; CkQ=function(M){return Fb("Media.VideoDecoderPollIntervalMs",M)}; kUL=function(M){return Fb("Media.VideoInitialMaxFramesInDecoder",M)}; Kbq=function(M){return Fb("Media.EnableAllocateOnDemand",M?1:0)}; vmL=function(M){return Fb("Media.AppendFirstSegmentSynchronously",M?1:0)}; mpp=function(M){return Fb("Media.EnableResetAudioDecoder",M?1:0)}; Lbq=function(M){return Fb("Media.EnableFlushDuringSeek",M?1:0)}; l5t=function(M){return Fb("DecoderBuffer.EnableMediaBufferPoolAllocatorStrategy",M?1:0)}; ZOl=function(){var M=window.h5vcc?.settings?.getPersistentSettingAsString?.("cpu_usage_tracker_intervals");if(M!=null){M=JSON.parse(M)??[];var W=M.filter(b=>b.type==="total").map(b=>b.seconds); for(const b of tVg)W.indexOf(b)===-1&&M.push({type:"total",seconds:b});window.h5vcc?.settings?.set("cpu_usage_tracker_intervals_enabled",1);window.h5vcc?.settings?.set("cpu_usage_tracker_intervals",JSON.stringify(M))}}; I5P=function(){var M=window.H5vccPlatformService;let W="";if(M&&M.has("dev.cobalt.coat.clientloginfo")&&(M=M.open("dev.cobalt.coat.clientloginfo",()=>{}))){const b=M.send(new ArrayBuffer(0)); b&&(W=String.fromCharCode(...(new Uint8Array(b))));M.close()}return W}; NxQ=function(M){var W=window.H5vccPlatformService;W?.has("com.google.android.youtube.tv.prodlogger")&&(W=W.open("com.google.android.youtube.tv.prodlogger",()=>{}))&&(W.send(ZU(`cpn: ${M}`).buffer),W.close())}; g.hm=function(M,W,b,T){i3(M,b,`${W.toFixed(3)}:${T.join(":")}`)}; Am=function(M,W){var b=M.provider.getCurrentTime();g.hm(M,W,"cmt",[b.toFixed(3)]);var T=b=M.provider.ac();if((!M.V||M.provider.uV.j("html5_shorts_gapless_no_gllat")&&LP(M.provider.videoData)?0:T*1E3>M.V.ww+100)&&M.V){T=M.V.isAd;b=b*1E3-M.V.ww;M.zf=W*1E3-M.V.Ff-b-M.V.zn;var q=(0,g.u)()-b;W=M.zf;b=M.provider.videoData;var X=b.isAd();if(T||X){X=`${T?"ad":"video"}_to_${X?"ad":"video"}`;var G={};b.ll&&(G.cttAuthInfo={token:b.ll,videoId:b.videoId});G.startTime=q-W;FN(X,G);g.xD({targetVideoId:b.videoId, targetCpn:b.clientPlaybackNonce},X);rO("pbs",q,X)}else q=M.provider.qK.r0(),q.C!==b.clientPlaybackNonce?(q.S=b.clientPlaybackNonce,q.V=W):b.OX()||g.lR(new g.EF("CSI timing logged before gllat",{cpn:b.clientPlaybackNonce}));M.dK("gllat",{l:M.zf.toFixed(),prev_ad:+T});delete M.V}}; i3=function(M,W,b){const T=M.Z.get(W);T?T.push(b):M.Z.set(W,[b])}; zK=function(M,W,b){if(!isNaN(b.oQ)){let T=b.oQ;b.V=0?W:g.u3(M.provider);const b=M.provider.qK.Qk();var T=b.nD-(M.An||0);T>0&&g.hm(M,W,"bwm",[T,(b.qY-(M.oT||0)).toFixed(3)]);isNaN(M.An)&&b.nD&&M.isOffline&&M.nf(!1);M.An=b.nD;M.oT=b.qY;isNaN(b.bandwidthEstimate)||g.hm(M,W,"bwe",[b.bandwidthEstimate.toFixed(0)]);M.provider.uV.jW()&&Object.keys(b.Z).length!==0&&M.dK("bwinfo",b.Z);if(M.provider.uV.jW()||M.provider.uV.j("html5_log_meminfo"))T=Wbg(),Object.values(T).some(q=>q!==void 0)&&M.dK("meminfo",T); M.provider.uV.jW()&&(T=M.jT?.A())&&Object.values(T).some(q=>q!=null)&&M.dK("cpuinfo",T); M.MK&&M.dK("jsprof",M.MK.flush());M.m$&&M.dK("uma",M.m$.flush());M.X&&g.hm(M,W,"bat",[M.X.level,M.X.charging?"1":"0"]);T=M.provider.qK.getVisibilityState();M.fv!==T&&(g.hm(M,W,"vis",[T]),M.fv=T);Am(M,W);(T=HOG(M.provider))&&T!==M.vP&&(g.hm(M,W,"conn",[T]),M.vP=T);zK(M,W,b)}; Rjt=function(M,W,b){const T=g.u3(M.provider);f5Q(M,T,W,0,b);S3(M,T);OJ(M)}; Pn=function(M,W){i3(M,"cat",W)}; r5Q=function(M){var W=M.provider.qK.Qk();const b=g.u3(M.provider);zK(M,b,W);const T=W.B;W=W.A;isNaN(T)||(M.provider.uV.j("html5_unified_live_latency_reporting")&&!isNaN(W)&&W?g.hm(M,b,"e2el",[T.toFixed(3),W.toFixed(3)]):g.hm(M,b,"e2el",[T.toFixed(3)]))}; xpq=function(M,W){W={cpn:M.provider.videoData.clientPlaybackNonce,sequenceNumber:W,serializedWatchEndpointLoggingContext:M.provider.videoData.wh};M.serializedHouseBrandPlayerServiceLoggingContext&&(W.serializedHouseBrandPlayerServiceLoggingContext=Rd(M.serializedHouseBrandPlayerServiceLoggingContext)||void 0);M.provider.videoData.playerResponseCpn&&(W.playerResponseCpn=M.provider.videoData.playerResponseCpn);e3.length&&(W.decoderInfo=e3);M.remoteControlMode&&(W.remoteControlMode=M.remoteControlMode); M.remoteConnectedDevices.length&&(W.remoteConnectedDevices=M.remoteConnectedDevices);if(M.JA?.length){W.serializedQoeContextData=[];for(const b of M.JA)(M=MT(b))&&W.serializedQoeContextData.push(M)}return W}; FbS=function(M,W,b){g.ZI(M.provider.uV,M.provider.videoData.C()).then(T=>{var q=!1;W.includes("&dt=")||W.includes("&cotn=")?q=!0:M.provider.uV.j("qoe_with_networkless")&&(q=!0);const X=M.provider.uV.j("qoe_send_and_write");var G=M.provider.uV;T=rS(W,G,M.provider.uV.pageId,M.provider.uV.sendVisitorIdHeader?M.provider.videoData.visitorData:void 0,T);G.j("html5_simplify_pings")&&(T=T||{});T?(T.method="POST",T.postBody=b,xg(W,T,{token:M.provider.videoData.ll,EG:M.provider.videoData.C4,mdxEnvironment:M.provider.videoData.mdxEnvironment}, G,void 0,q,X&&M.yz)):q?(q=M.provider.uV.j("networkless_ajax"),G={method:"POST",postBody:b},X&&M.yz?ot().sendAndWrite(W,G):q?g.Pe(W,{method:"POST",postBody:b}):ot().sendThenWrite(W,G)):EAJ(W,b)})}; OJ=function(M){if(!M.provider.uV.j("html5_qoe_no_len_check")){var W=0;for(const [b,T]of M.Z.entries())W+=b.length+Number(cy(T,(q,X)=>q+X.length,0)); W>96E3&&(new g.d9(M.reportStats,0,M)).start()}}; iOl=function(M){M.provider.videoData.Hr&&Pn(M,"prefetch");M.provider.videoData.jT&&M.dK("reload",{r:M.provider.videoData.reloadReason,ct:M.provider.videoData.jT});M.provider.videoData.Pi&&Pn(M,"monitor");M.provider.videoData.isLivePlayback&&Pn(M,"live");q4&&Pn(M,"streaming");M.provider.videoData.Qs&&M.dK("ctrl",{mode:M.provider.videoData.Qs},!0);if(M.provider.videoData.m5){var W=M.provider.videoData.m5.replace(/,/g,"_");M.dK("ytp",{type:W},!0)}M.provider.videoData.U$&&(W=M.provider.videoData.U$.replace(/,/g, "."),M.dK("ytrexp",{ids:W},!0));M.provider.uV.jW()&&M.dK("now",{wt:(0,g.u)()});W=M.provider.videoData;var b=M.provider.uV.j("enable_white_noise")||M.provider.uV.j("enable_webgl_noop");const T=g.rF(W)||g.dF(W)||g.o9(W)||g.cM(W);(b||T)&&(b=(0,g.dS)())&&M.Z.set("gpu",[b]);Ye(M.provider.videoData)&&g.hm(M,g.u3(M.provider),"dt",["1"]);W.cotn&&!Ye(W)&&M.nf(!0);M.provider.uV.jW()&&(W=(0,g.u)()-M.provider.uV.p7,M.dK("playerage",{secs:(1.6**Math.round(Math.log(W/1E3)/Math.log(1.6))).toFixed()}));M.S=!0;M.O= g.ra(()=>{M.reportStats()},1E4)}; f5Q=function(M,W,b,T,q){var X=M.provider.uV.Z.cbrver;M.provider.uV.Z.cbr==="Chrome"&&/^96[.]/.test(X)&&b==="net.badstatus"&&/rc\.500/.test(q)&&o2(M,3);M.provider.uV.j("html5_use_ump")&&/b248180278/.test(q)&&o2(M,4);X=M.provider.getCurrentTime();T=T===1?"fatal":"";b=[b,T,X.toFixed(3)];T&&(q+=`;a6s.${Xm()}`);q&&b.push(hjt(q));g.hm(M,W,"error",b);M.S=!0}; o2=function(M,W){M.wK||(i3(M,"fcnz",`${W}`),M.wK=!0)}; A5Q=function(M,W){const b=g.u3(M.provider);if(!M.provider.uV.experiments.FX("html5_refactor_sabr_video_format_selection_logging")||W.Z.id!==M.xk){var T=M.provider.uV.hT().Z.UY(cn);T&&!M.sY&&W.reason!=="m"&&(W.reason="i");var q=[W.Z.id,W.V,M.xk,W.reason];T&&W.reason==="i"&&q.push(Qv(M,W));W.token&&q.push(W.token);g.hm(M,b,"vfs",q);M.xk=W.Z.id;T=M.provider.qK.getPlayerSize();T.width>0&&T.height>0&&(T=[Math.round(T.width),Math.round(T.height)],q=g.yK(),q>1&&T.push(q),g.hm(M,b,"view",T));M.sY||(M.provider.uV.jW()&& Pn(M,"rqs2"),M.provider.videoData.Z&&Cb(M.provider.videoData.Z)&&M.Z.set("preload",["1"]));M.sY=!0;M.S=!0}W.reason==="m"&&++M.Hr===100&&o2(M,2);g.hm(M,b,"vps",[M.Np]);M.Zs||M.reportStats(b)}; u4S=function(M,W,b){var T=M.provider.uV;const q=T.hT(),X=[];T.experiments.FX("html5_refactor_sabr_audio_format_selection_logging")?(W=b.Z,T=[W.audio&&W.video?W.ge?W.ge:"":W.id],W.r9&&W.r9.id&&T.push(W.r9.id),T=T.join(";"),T!==M.C&&(W=[T,M.C,b.reason],X.push(...zjl(b)),q.Z.UY(cn)&&b.reason==="i"&&X.push(Qv(M,b)),X.length>0&&W.push(X.join(";")),b.token&&W.push(b.token),g.hm(M,g.u3(M.provider),"afs",W),M.C=T)):b.Z.id!==M.C&&(T=[b.Z.id,M.C,b.reason],X.push(...zjl(b)),q.Z.UY(cn)&&b.reason==="i"&&X.push(Qv(M, b)),X.length>0&&T.push(X.join(";")),b.token&&T.push(b.token),g.hm(M,W,"afs",T),M.C=b.Z.id)}; Sel=function(M){M.A>=0||(M.provider.uV.GY||M.provider.qK.getVisibilityState()!==3?M.A=g.u3(M.provider):M.Lp=!0)}; Qv=function(M,W){let b;M.provider.videoData.cP()?(M=4,b=1):M=W.source??0;M=`${"sms"}.${M}`;b!==void 0&&(M+=`_${b}`);return M}; zjl=function(M){const W=[];if(M=M.Z.audio){const b=M?.A;b!==void 0&&W.push(`${"fl"}.${b}`);M=M?.B;M!==void 0&&(M=Math.min(-M,0),W.push(`${"vg"}.${M}`),W.push("nm.4"))}return W}; gS=function(M,W,b,T,q){const X=g.u3(M.provider);W!==1&&W!==3&&W!==5||g.hm(M,X,"vps",[M.Np]);i3(M,"xvt",`t.${X.toFixed(3)};m.${q.toFixed(3)};g.${2};tt.${W};np.${0};c.${b};d.${T}`)}; hjt=function(M){/[^a-zA-Z0-9;.!_-]/.test(M)&&(M=M.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return M}; VX=function(M,W){if(M.MK&&!M.ZT)return 3;if(M.isSuspended)return 1;if(M.WY?.BY())return 4;let b=(W.Tv.info.audio?M.policy.EY:M.policy.An)/(W.sB*M.policy.qA);if(M.policy.vS>0&&M.WY&&g8(M.WY)&&(W=W.Tv.info.video?M.WY.V:M.WY.Z)&&!W.pu()){W=W.ZY();const T=uS(W,M.getCurrentTime());T>=0&&(W=M.getCurrentTime()-W.start(T),b+=Math.max(0,Math.min(W-M.policy.vS,M.policy.md)))}M.policy.yz>0&&(b=Math.min(b,M.policy.yz));return b}; Eh=function(M,W,b){OOt(M,b.jR||"unknown");M.qK.seekTo(W,b)}; zV=function(M,W,b,T,q){M.qK.getVideoData().FD()?q&&M.V.lV+q/1E3>b&&(M.dK("sdai",{seg:T,rbt:b.toFixed(3),end:M.V.lV.toFixed(3),sd:q.toFixed(3)}),M.nU(!1,"rollback")):M.policy.V&&M.nU(!1,"rollback");if(M.HY.isManifestless){q=Zv(M.audioTrack,T,b,W);var X=Zv(M.videoTrack,T,b,W);M.policy.x_||(X&&y3(M.HY,T,!0),q&&y3(M.HY,T,!1));X&&(M.videoTrack.X=[]);q&&(M.audioTrack.X=[]);M.dK("sdai",{rollbk2_seg:T,rbt:b.toFixed(3),lt:W.toFixed(3),a:q,v:X});(q||X)&&M.policy.V&&kg(M)}}; v$s=function(M){const W=M.xS().filter(b=>b.namespace==="ad"); for(const b of W)if(b.start/1E3>M.getCurrentTime())return b.start/1E3;return Infinity}; oZ=function(M){var W=(0,g.u)();M.u1=W}; eB=function(M){M.policy.cP&&M.policy.Tk&&Math.min(qEQ(M.videoTrack),qEQ(M.audioTrack))*1E3>M.policy.TJ?M.cP.Wr():M.Le()}; z1=function(M,W,b,T=!1){T&&!W.An&&(cE()||(T=W.JT)&&!T.o5(b.info)&&M.qK.MZ(),W.An=!0);W.Tv!==b&&(W.Tv=b)}; SB=function(M){return M.b7=W-.01}else W=!1;return W}; pp=function(M){const W={ns:M.cP,el:M.eventLabel,cpn:M.clientPlaybackNonce,ver:2,cmt:M.V(M.Z),fmt:M.A5,fs:M.vP?"1":"0",rt:M.V(M.Y9),adformat:M.adFormat,content_v:M.contentVideoId,euri:M.EX,lact:M.s2,live:M.XP,cl:(871074148).toString(),mos:M.sj,state:M.playerState,volume:M.Ic};M.subscribed&&(W.subscribed="1");Object.assign(W,M.x_);M.D==="all"?Object.assign(W,M.OY):M.D==="once"&&M.B&&Object.assign(W,M.OY);M.autoplay&&(W.autoplay="1");M.WP&&(W.sautoplay="1");M.XX&&(W.dni="1");!M.S&&M.An&&(W.epm=ejq[M.An]); M.isFinal&&(W["final"]="1");M.Lp&&(W.splay="1");M.gr&&(W.delay=M.gr);M.MK&&(W.hl=M.MK);M.region&&(W.cr=M.region);M.userGenderAge&&(W.uga=M.userGenderAge);M.userAge!==void 0&&M.Ds&&(W.uga=M.Ds+M.userAge);M.lV!==void 0&&(W.len=M.V(M.lV));(!M.S||M.d9)&&M.experimentIds.length>0&&(W.fexp=M.experimentIds.toString());M.W!==null&&(W.rtn=M.V(M.W));M.Ue&&(W.feature=M.Ue);M.Qs&&(W.ctrl=M.Qs);M.m5&&(W.ytr=M.m5);M.EY&&(W.afmt=M.EY);M.offlineDownloadUserChoice&&(W.ODUC=M.offlineDownloadUserChoice);M.gK&&(W.lio= M.V(M.gK));M.S?(W.idpj=M.nz,W.ldpj=M.Hr,M.delayThresholdMet&&(W.dtm="1"),M.X!=null&&(W.rti=M.V(M.X)),M.gx&&(W.ald=M.gx),M.compositeLiveIngestionOffsetToken&&(W.clio=M.compositeLiveIngestionOffsetToken)):M.adType!==void 0&&(W.at=M.adType);M.fv&&(M.B||M.S)&&(W.size=M.fv);M.B&&M.C.length&&(W.pbstyle=M.C.join(","));M.FT!=null&&(M.B||M.S)&&(W.inview=M.V(M.FT));M.heartbeatLoggingToken&&(W.hb_data=M.heartbeatLoggingToken);M.S&&(W.volume=wS(M,g.dG(M.segments,b=>b.volume)),W.st=wS(M,g.dG(M.segments,b=>b.startTime)), W.et=wS(M,g.dG(M.segments,b=>b.endTime)),gG(M.segments,b=>b.playbackRate!==1)&&(W.rate=wS(M,g.dG(M.segments,b=>b.playbackRate))),gG(M.segments,b=>b.Z!=="-")&&(W.als=g.dG(M.segments,b=>b.Z).join(",")),gG(M.segments,b=>b.previouslyEnded)&&(W.pe=g.dG(M.segments,b=>`${+b.previouslyEnded}`).join(","))); W.muted=wS(M,g.dG(M.segments,b=>b.muted?1:0)); gG(M.segments,b=>b.visibilityState!==0)&&(W.vis=wS(M,g.dG(M.segments,b=>b.visibilityState))); gG(M.segments,b=>b.connectionType!==0)&&(W.conn=wS(M,g.dG(M.segments,b=>b.connectionType))); gG(M.segments,b=>b.V!==0)&&(W.blo=wS(M,g.dG(M.segments,b=>b.V))); gG(M.segments,b=>!!b.A)&&(W.blo=g.dG(M.segments,b=>b.A).join(",")); gG(M.segments,b=>!!b.compositeLiveStatusToken)&&(W.cbs=g.dG(M.segments,b=>b.compositeLiveStatusToken).join(",")); gG(M.segments,b=>b.B!=="-")&&(W.cc=g.dG(M.segments,b=>b.B).join(",")); gG(M.segments,b=>b.clipId!=="-")&&(W.clipid=g.dG(M.segments,b=>b.clipId).join(",")); if(gG(M.segments,b=>!!b.audioId)){let b="au"; M.B&&(b="au_d");W[b]=g.dG(M.segments,T=>T.audioId).join(",")}m0()&&M.O&&(W.ctt=M.O,W.cttype=M.bV,W.mdx_environment=M.mdxEnvironment); M.k_&&(W.etype=M.Zs!==void 0?M.Zs:0);M.wK&&(W.uoo=M.wK);M.livingRoomAppMode&&M.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(W.clram=dpp[M.livingRoomAppMode]||M.livingRoomAppMode);M.A?omg(M,W):(W.docid=M.videoId,W.referrer=M.referrer,W.ei=M.eventId,W.of=M.Aw,W.osid=M.osid,W.vm=M.videoMetadata,M.adQueryId&&(W.aqi=M.adQueryId),M.autonav&&(W.autonav="1"),M.playlistId&&(W.list=M.playlistId),M.xl&&(W.ssrt="1"),M.gh&&(W.upt=M.gh));M.B&&(M.embedsRct&&(W.rct=M.embedsRct),M.embedsRctn&&(W.rctn= M.embedsRctn),M.compositeLiveIngestionOffsetToken&&(W.clio=M.compositeLiveIngestionOffsetToken));M.xk&&(W.host_cpn=M.xk);return W}; kg=function(M){M.fv.Wr()}; Mz=function(M,W){W&&Yg(M.qK,new $h(W.video,W.reason));M.Z.Lp&&(W=BQq(M.Z,"a"),M.qK.qj(new $h(W.audio,W.reason)))}; Wa=function(M,W,b,T){const q=Ep(W);!q||q.B||LO(q,T)||(b.abort(),M.policy.kX&&W.W?.D(),W.D?.W());if(!b.YB()||cE())try{M.policy.L2?b.Zj(T.Tv.info.containerType,T.Tv.info.Qz)&&b.dB(T.Tv.info.containerType,T.Tv.info.Qz,T.Tv.info.mimeType):b.Z9(T.Tv.info.containerType,T.Tv.info.mimeType)}catch(X){return g.lR(X),M.dK("ctexp",{name:X.name,msg:X.message}),!1}else T.Tv.info.containerType!==b.YB()&&M.dK("ctu",{ct:cE(),prev_c:b.YB(),curr_c:T.Tv.info.containerType});T=T.Tv.Zs;M.policy.mw&&T&&(W=0+T.duration, T=-T.Z,0===b.ju()&&W===b.Ml()||b.yS(0,W),T!==b.Ga()&&(b.KW(T),Dv&&w2P(M.audioTrack.N8(),b.XO())));return!0}; c5y=function(M,W,b){if(!(M.videoTrack.Tv.Z()&&M.audioTrack.Tv.Z()&&M.WY&&M.WY.V&&M.WY.Z))return!1;if(b&&M.HY.isManifestless&&(M.videoTrack.S===-1||M.audioTrack.S===-1))return!0;const T=GV(M.videoTrack,W,b);if(isNaN(T))return!1;M=GV(M.audioTrack,M.policy.XX?W:T,b);return isNaN(M)?!1:!0}; Qns=function(M){M.A?.JJ?.itagDenylist&&M.l8(M.A?.JJ.itagDenylist);M.A?.playbackStartPolicy&&Fw(M.policy,M.A?.playbackStartPolicy,3,M.A?.SG());if(M.policy.yC){var W=M.rU();(W=W?M.A?.mN.get(W):void 0)&&M.V.CU(W,-1)}M.HY.O||(W=M.A?.gw,W?.Tz&&W?.AJ&&M.HY.Me&&U$(M.HY,W.Tz,W.AJ));if(M.A?.V7){W=M.A.V7.get(M.rU()||"");if(!W)return;if(M.HY&&W.formatId){const b=M.HY.B.get(yU(W.formatId));b&&(b.info.debugInfo=W.debugInfo)}}M.policy.sY&&(M.A?.Yc().forEach(b=>{M.ib(b)}),M.A?.Cc())}; gmP=function(M){if(!M.HY.Me)return!0;const W=M.qK.getVideoData();if(M.qK.vM())return M.dK("ombpa",{}),!1;if(!!M.A?.gw?.cD!==M.HY.f7)return M.dK("ombplmm",{}),!1;var b=W.Lp||W.liveUtcStartSeconds||W.G5;if(M.HY.f7&&b)return M.dK("ombplst",{}),!1;if(M.HY.O)return M.dK("ombab",{}),!1;b=Date.now();return Cf(M.HY)&&!isNaN(M.yz)&&b-M.yz>M.policy.Zp*1E3?(M.dK("ombttl",{}),!1):Fl(W)!==0&&!M.policy.Z||W.j("html5_disable_onesie_media_for_mosaic")&&W.RV()||W.j("html5_disable_onesie_media_for_lifa_eligible")&& pP(W)?!1:!0}; bl=function(M,W){const b=Ue(W.Tv,M.HY.Me);var T=M.gK?.uf(b)||[];if(T.length===0)return M.dK("ombmsi",{}),!1;T=new A5(T);if((!M.policy.Zs||isFinite(M.getCurrentTime())||M.qK.JE())&&!EXs(T,M.getCurrentTime()))return M.dK("ostmf",{ct:M.getCurrentTime(),a:W.Tv.info.s1()}),!1;M.gK?.uW(b);return!0}; snJ=function(M,W){const b=W.Tv;var T=M.HY.Me;if(gmP(M))if(M.gK&&M.gK.UL(Ue(b,T))){if(T=Ue(b,T),bl(M,W)){var q=new A5(M.gK.uf(T)),X=G=>{try{G.Bi()?(M.handleError(G.QW(),G.Ag()),Nv(W,G),Rn(G.info)&&AV(M.C,W,b,!0),M.Le()):ux(M.C,G)&&(M.B?.BY(G.info,M.Cv),M.Le())}catch(V){G=bS(V),M.handleError(G.errorCode,G.details,G.severity),M.GK()}}; b.gK=!0;fO(q)&&(ms(W,new qM(M.policy,T,q,M.gK,X)),Fa(M.timing))}}else M.dK("ombfmt",{})}; wht=function(M){M.policy.S&&M.A&&(M.A.FZ.forEach(W=>{M.Pj(W,-1)}),M.A.FZ=[])}; TL=function(M,W){W=W||M.videoTrack&&M.videoTrack.Z&&M.videoTrack.Z.startTime||M.getCurrentTime();var b=z1,T=M.videoTrack,q=M.Z;W=q.nextVideo&&q.nextVideo.index.UX(W)||0;q.sY!==W&&(q.BY={},q.sY=W,cJ(q,q.Z));W=!q.Z.isLocked()&&q.X>-1&&(0,g.u)()-q.X=W&&yP(b,!0)>=W}else b.V.length||T.V.length?(q=b.Tv.info.sB+T.Tv.info.sB,q=10*(1-bF(W)/q),W=Math.max(q,W.policy.Vp),b=yP(T,!0)>=W&&yP(b, !0)>=W):b=!0;if(!b)return"abr";b=M.videoTrack;if(b.V.length>0&&b.B.V.length===1&&rCL(b.B).info.D360);if(!M.ZT||b)return"";b=M.policy.nx;rq(M.policy)&&(b=TV(M.X,M.ZT,bF(M.X)));b=joL(M.videoTrack,M.getCurrentTime(),b)||joL(M.audioTrack,M.getCurrentTime(),b);return rq(M.policy)?b?"mbnm":"":(M.videoTrack.V.length> 0||M.audioTrack.V.length>0||hV(M.C,M.videoTrack,M.audioTrack)||hV(M.C,M.audioTrack,M.videoTrack))&&b?"nord":""}; GL=function(M,W,b,T){T.info.Tv.Z();var q=T.info.Tv.V;if(!q||!b.oO()||b.ZH()===q)return!1;let X=q;var G=b.oD();if(M.policy.CS&&G&&b.isView()&&g.FH(T.info.Tv.info)){const J=new DataView(q.buffer,q.byteOffset,q.byteLength);(G=uoy(J,G))?X=new Uint8Array(G.buffer,G.byteOffset,G.byteLength):M.dK("fenc",{})}M.policy.AO&&(G=jlt(M,T,new IR([X])))&&(X=U6(G));let V;(G=T.info.Tv.W(0,T.info.clipId))&&(V=G.g9[0]);if(T===M.FT){if(M.BY+=1,M.qK.getVideoData().j("html5_shorts_gapless_restart_on_init_seg_retries")&& M.BY>5)return M.BY=0,M.qK.fW({initSegStuck:1,as:T.info.lw()}),!0}else M.BY=0,M.FT=T;M.policy.fg&&(b.abort(),W.D?.W());q=G0p(M,b,X,V,q);W.D?.X(q,V);if(q!==0)return M.policy.Ql&&LP(M.qK.getVideoData())?(M.qK.zb()||ji(M,"sepInit",q,T.info),V0t(M.qK,"sie")):ji(M,"sepInit",q,T.info),!0;T.info.OO()?(W=M.timing,W.BY||(W.BY=(0,g.u)(),g.Cd("vis_a",W.BY,W.Z))):(W=M.timing,W.W||(W.W=(0,g.u)(),g.Cd("ais_a",W.W,W.Z)));(T=T.info.Tv.xB)&&M.qK.Sq(new Bu(T.key,T.type));return b.pu()}; J$t=function(M,W,b){if(M.policy.Lp&&BJ(W)?.isLocked)return!1;if(b.m_())return!0;if(!b.oO())return!1;const T=BJ(W);if(!T||T.info.type===6)return!1;if(M.policy.WC||M.B?.gK(W,T.info.Kp))M.An=0;else return M.VW.isSeeking()&&kg(M),M.An=M.An||(0,g.u)(),!1;if(!Wa(M,W,b,T.info))return!1;if(M.HY.V&&T.info.Z===0){var q;if(b.ZH()==null){var X=Ep(W);if(!(q=!X||X.Tv!==T.info.Tv)){b:if(q=X.gK,X=T.info.gK,q.length!==X.length)q=!1;else{for(var G=0;GX)return M.policy.Z&&(W===M.videoTrack?M.xk=M.xk||(0,g.u)():M.lV=M.lV||(0,g.u)()),M.policy.Nt&&tKg(W.B,X,!1),!1;W===M.videoTrack?M.xk=0:M.lV=0;M.policy.nz&&b===M.WY?.Z&&M.EY&&(b.FJ()===0?(M.EY=!1,M.policy.nz=!1):M.bV=b.FJ());a:{X=M.policy.vP?(0,g.u)():0;G=T.S&&T.info.Tv.V||void 0;var V=T.V;T.S&&(V=jlt(M,T,V)||V);const J=U6(V);V=M.policy.vP?(0,g.u)():0;b=G0p(M,b,J,T.info,G);W.D?.D(T.info,b,V-X,(0,g.u)()-V);M.BY=0;if(b===0)M.MK&&(M.MK=!1,M.oT=!1),M.OY=0,b=!0;else{if(b=== 2||b===5)ji(M,"checked",b,T.info);else{if(b===1){if(!M.MK){M.MK=!0;b=!1;break a}if(!M.oT){M.oT=!0;M.qK.seekTo(M.getCurrentTime(),{jR:"quotaExceeded",Sa:!0});b=!1;break a}T.info.OO()?(X=M.policy,X.An=Math.floor(X.An*.8),X.yz=Math.floor(X.yz*.8)):(X=M.policy,X.EY=Math.floor(X.EY*.8),X.yz=Math.floor(X.yz*.8));M.policy.Z?gq(M.S,T.info.Tv):sh(M.Z,T.info.Tv)}M.qK.fW({reattachOnAppend:b})}b=!1}}if(!b)return!1;M.policy.Lp&&T.info.C()?(M.qK.G().jW()&&M.dK("eosl",{ls:T.info.lw()}),T.isLocked=!0):(W.z5(T),JCs(M.Z, T.info));q&&(W=T.info.Tv.xB)&&M.qK.Sq(new Bu(W.key,W.type));return!0}; jlt=function(M,W,b){var T;if(T=M.policy.AO&&M.WY&&!M.WY.O&&!M.qK.gO())W=W.info.Tv.info,T=W.dU()&&W.A()&&W.video&&W.video.width<3840&&W.video.width>W.video.height;if(T&&(M.WY.O=!0,jA('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return b=RRG(b),M.policy.B&&M.dK("sp4k",{s:!!b}),b}; G0p=function(M,W,b,T,q){try{const X=W===M.WY?.Z?M.audioTrack:M.videoTrack;if(M.policy.Lp&&T?.C()){if(T?.O>1)return 6;X.yz=new g.d9(()=>{const G=BJ(X);M.ST()||!G?.isLocked?M.qK.G().jW()&&M.dK("eosl",{delayA:G?.info.lw()}):TpS(X)?(M.qK.G().jW()&&M.dK("eosl",{dunlock:G?.info.lw()}),Xx(M,X===M.audioTrack)):(M.dK("nue",{ls:G.info.lw()}),G.info.O+=1,M.WY&&M.lY())},1E4,M); M.qK.G().jW()&&M.dK("eosl",{delayS:T.lw()});X.yz.start()}M.policy.lc&&T?.Tv instanceof E$&&T.C()&&M.dK("poseos",{itag:T.Tv.info.itag,seg:T.Kp,lseg:T.Tv.index.Y_(),es:T.Tv.index.C});W.appendBuffer(b,T,q)}catch(X){if(X instanceof DOMException){if(X.code===11)return 2;if(X.code===12)return 5;if(X.code===22||X.message.indexOf("Not enough storage")===0)return W=Object.assign({name:"QuotaExceededError",buffered:zn(W.ZY()).replace(/,/g,"_"),vheap:tV(M.videoTrack),aheap:tV(M.audioTrack),message:g.NI(X.message, 3),track:M.WY?W===M.WY.V?"v":"a":"u"},Wbg()),M.handleError("player.exception",W),1;g.O(X)}return 4}return M.WY.Cz()?3:0}; ji=function(M,W,b,T){let q="fmt.unplayable",X=1;b===5||b===3?(q="fmt.unparseable",M.policy.Z?!T.Tv.info.video||PJ(M.S.Z).size>0||gq(M.S,T.Tv):!T.Tv.info.video||PJ(M.Z.S).size>0||sh(M.Z,T.Tv)):b===2&&(M.OY<15?(M.OY++,q="html5.invalidstate",X=0):q="fmt.unplayable");T=In(T);T.mrs=M.WY?.B();T.origin=W;T.reason=b;T.trg="appenderr";M.handleError(q,T,X)}; gGG=function(M,W,b,T,q){var X=M.HY;var G=M.policy.Z,V=!1;let J=-1;for(const a in X.Z){var B=tE(X.Z[a].info.mimeType)||X.Z[a].info.OO();if(T===B)if(B=X.Z[a].index,B.Z5(W.Kp)){{V=B;var D=W;const E=V.B(D.Kp);E&&E.startTime!==D.startTime?(V.segments=[],V.W(D),V=!0):V=!1}V?J=W.Kp:!W.pending&&G&&(D=B.getDuration(W.Kp),D!==W.duration&&(X.publish("clienttemp","mfldurUpdate",{itag:X.Z[a].info.itag,seg:W.Kp,od:D,nd:W.duration},!1),B.W(W),V=!0))}else B.W(W),V=!0}J>=0&&X.publish("clienttemp","resetMflIndex", {[T?"v":"a"]:J},!1);X=V;rFt(M.VW,W,T,X);M.policy.sY||M.B.xb(W,b,T,q);W.Kp===M.HY.Sk&&X&&Dh(M.HY)&&W.startTime>Dh(M.HY)&&(M.HY.AX=W.startTime+(isNaN(M.timestampOffset)?0:M.timestampOffset),M.VW.isSeeking()&&M.VW.targetTime{M.policy.B&&M.dK("pathprobe",b)},b=>{M.qK.handleError(b)})}; Bpt=function(M,W){M.Cv=W;M.B&&(M.B.Cv=W);W=M.Cv;var b=M.videoTrack.Tv.info.dU();W.FT=b;W.x9({swebm:b});M.C.Cv=M.Cv;M.policy.V&&(M.V.Cv=M.Cv,wht(M))}; Dsp=function(M,W){if(M.WY&&M.WY.V){if(M.policy.uZ){var b=M.audioTrack.W?.W()||null;if(b&&b.s1()){var T=M.qK;if(T.lZ&&(T.lZ.Z=b,b=T.Df,b.qoe)){b=b.qoe;T=T.lZ;const q=g.u3(b.provider);u4S(b,q,T)}}}M.policy.xQ&&(b=M.videoTrack.W?.W()||null)&&b.OO()&&(T=M.qK,T.TB&&(T.TB.Z=b,b=T.Df,b.qoe&&A5Q(b.qoe,T.TB)));W-=isNaN(M.timestampOffset)?0:M.timestampOffset;M.getCurrentTime()!==W&&M.resume();M.VW.isSeeking()&&M.WY&&!M.WY.Cz()&&(T=M.getCurrentTime()<=W&&WT.startTime>=W&&c5y(M,T.startTime,!1)); return b&&b.startTime0)b=!0;else{for(const T of M.B.values())if(T.cryptoPeriodIndex===b){b=!0;break a}b=!1}}M.publish("log_qoe",{wvagt:"reqnews",canskip:b});b||M.publish("rotated_need_key_info_ready",W)}; Cet=function(M){switch(M){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}}; vZg=function(M,W=!1){var b=M.status==="LICENSE_STATUS_OK"?0:9999,T=null;if(M.license)try{T=Rd(M.license)}catch(q){g.O(q)}if(b===0&&!T)return null;T=new k0p(b,T);b!==0&&M.reason&&(T.errorMessage=M.reason);if(M.authorizedFormats){b={};const q=[],X={};for(const G of M.authorizedFormats){if(!G.trackType||!G.keyId)continue;W&&T.V.push({trackType:Cet(G.trackType),isHdr:!!G.isHdr});let V=KaP[G.trackType];if(V){V==="HD"&&M.isHd720&&(V="HD720");G.isHdr&&(V+="HDR");b[V]||(q.push(V),b[V]=!0);let J=null;try{J= Rd(G.keyId)}catch(B){g.O(B)}J&&(X[g.Id(J,4)]=V)}}T.B=q;T.Z=X}M.nextFairplayKeyId&&(T.nextFairplayKeyId=M.nextFairplayKeyId);M.sabrLicenseConstraint&&(T.sabrLicenseConstraint=Rd(M.sabrLicenseConstraint));return T}; msy=function(M,W,b){M.onSuccess=W;M.onError=b}; LaQ=function(M,W,b,T){const q={timeout:3E4,onSuccess:X=>{if(!M.ST())if(rO("drm_net_r",void 0,M.timer),X=vZg(X,M.V))M.onSuccess(X,M.requestNumber);else M.onError(M,"drm.net","t.p;p.i")}, onError:X=>{if(!M.ST())if(X&&X.error)X=X.error,M.onError(M,"drm.net.badstatus",`t.r;p.i;c.${X.code};s.${X.status}`,X.code);else M.onError(M,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:()=>{M.onError(M,"drm.net",`${"rt"}.req.${M.requestNumber}`)}}; T&&(q.AP=`Bearer ${T}`);g.Q7(b,"player/get_drm_license",W,q)}; D7=function(M,W,b=!1){$B(W);(b||M.uV.jW())&&M.publish("ctmp","drmlog",W)}; lhG=function(M){let W=M.baseUrl;bYG(W)||M.error("drm.net",2,"t.x");if(!Ec(W,"fexp")){const b=["23898307","23914062","23916106","23883098"].filter(T=>M.uV.experiments.experiments[T]); b.length>0&&(M.S.fexp=b.join())}for(const b of Object.keys(M.S))W=PIJ(W,b,M.S[b]);return W}; IhL=function(M,W,b,T){t0L(W,(q,X)=>{if(M.uV.hT().Z.UY(Zfq)&&M.V.flavor==="widevine")a:{let G=!1;try{G=Hk(q,UwS).type===4}catch(V){}if(G){if(D7(M,{cert_cache_hit:!!M.Ej?.certificate},!0),T){W?.update(T);break a}}else if(b){b.Z=W??null;b.licenseRequest=q;break a}a8(M,q,X,G)}else a8(M,q,X)},(q,X,G)=>{if(!M.ST()){X=void 0; var V=1;g.S0(M.V)&&g.WQ(M.uV)&&M.uV.j("html5_enable_safari_fairplay")&&G===1212433232&&(X="ERROR_HDCP",V=M.uV.j("html5_safari_fairplay_ignore_hdcp")?0:V);M.error("drm.keyerror",V,q,X)}},()=>{M.ST()||(D7(M,{onkyadd:1}),M.O||(M.publish("sessionready"),M.O=!0))},q=>{M.ob(q)})}; a8=function(M,W,b,T=!1){if(!M.ST())if(W){D7(M,{onkmtyp:b});M.status="km";switch(b){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Npp(M,W);return;default:M.publish("ctmp","message_type",{t:b,l:W.byteLength})}M.Zs||(rO("drm_gk_f",void 0,M.videoData.gK),M.Zs=!0,M.publish("newsession",M));if(A$(M.V)&&(W=HfQ(W),!W))return;W=new fhy(W,++M.requestNumber,M.videoData.gK,M.uV.j("html5_enable_vp9_fairplay"));msy(W,q=>{RJJ(M,q,T)},(q,X,G)=>{if(!M.ST()){var V= 0; q.Z.V>=3&&(V=1,X="drm.net.retryexhausted");D7(M,{onlcsrqerr:X,info:G});M.error(X,V,G);M.shouldRetry(Mm(V),q)&&r$Q(M,q)}}); g.t(M,W);xss(M,W)}else M.error("drm.unavailable",1,"km.empty")}; Fag=function(M,W,b=null,T){let q=null;try{q=W.createSession(M.D,X=>{D7(M,{m:X})}),IhL(M,q,T,b)}catch(X){W="t.g",X instanceof DOMException&&(W+=`;c.${X.code}`),M.publish("licenseerror","drm.unavailable",1,W,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}return q}; Npp=function(M,W){D7(M,{sdpvrq:1});M.C=Date.now();if(M.V.flavor!=="widevine")M.error("drm.provision",1,`e.flavor;f.${M.V.flavor};l.${W.byteLength}`);else{var b={cpn:M.videoData.clientPlaybackNonce};Object.assign(b,M.uV.Z);b=g.JM("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",b);W={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, W)}),responseType:"arraybuffer"};g.pg(b,W,3,500).then(OE(T=>{T=T.xhr;if(!M.ST()){T=new Uint8Array(T.response);var q=String.fromCharCode.apply(null,T);try{var X=JSON.parse(q)}catch(G){}X&&X.signedResponse?(M.publish("ctmp","drminfo",{provisioning:1}),X=(Date.now()-M.C)/1E3,M.C=NaN,M.publish("ctmp","provs",{et:X.toFixed(3)}),M.B&&M.B.update(T)):(X=X&&X.error&&X.error.message,T="e.parse",X&&(T+=`;m.${X}`),M.error("drm.provision",1,T))}}),OE(T=>{M.ST()||M.error("drm.provision",1,`e.${T.errorCode};c.${T.xhr&& T.xhr.status}`)}))}}; RJJ=function(M,W,b){if(!M.ST())if(D7(M,{onlcsrsp:1}),M.status="rr",W.statusCode!==0)M.error("drm.auth",1,`t.f;c.${W.statusCode}`,W.errorMessage||void 0);else{rO("drm_kr_s",void 0,M.videoData.gK);if(W.heartbeatParams&&W.heartbeatParams.url&&M.videoData.j("outertube_streaming_data_always_use_staging_license_service")){var T=M.V.B.match(/(.*)youtube.com/g);T&&(W.heartbeatParams.url=T[0]+W.heartbeatParams.url)}W.heartbeatParams&&M.publish("newlicense",W.heartbeatParams);W.B&&(M.A=W.B,M.videoData.Vu|| M.publish("newlicense",new ifJ),M.videoData.Vu=!0,M.W=gG(M.A,q=>q.includes("HDR"))); W.V&&(M.X=W.V);W.Z&&(M.uV.j("html5_enable_vp9_fairplay")&&M.V.Z()?(T=g.Id(Ln(M.fairplayKeyId),4),M.Z[T]={type:W.Z[T],status:"unknown"}):M.Z=fJ(W.Z,q=>({type:q,status:"unknown"}))); ue(M.V)&&(W.message=Tul(g.Id(W.message)));M.B&&(D7(M,{updtks:1}),M.status="ku",b&&M.Ej&&M.uV.hT().Z.UY(Zfq)&&(M.Ej.certificate=W.message),M.B.update(W.message).then(()=>{rO("drm_kr_f",void 0,M.videoData.gK);EP(M)||(D7(M,{ksApiUnsup:1}),M.publish("keystatuseschange",M));!b&&M.Ej&&M.uV.hT().Z.UY(hJt)&&(M.Ej.Z=Fag(M,M.Ej.mediaKeys,M.Ej?.certificate,M.Ej))},q=>{q=`msuf.req.${M.requestNumber};msg.${g.NI(q.message,3)}`; M.error("drm.keyerror",1,q)})); g.S0(M.V)&&M.publish("fairplay_next_need_key_info",M.baseUrl,W.nextFairplayKeyId);M.uV.j("html5_enable_vp9_fairplay")&&M.V.Z()&&M.publish("qualitychange",A$a(M.A));W.sabrLicenseConstraint&&M.publish("sabrlicenseconstraint",W.sabrLicenseConstraint)}}; xss=function(M,W){M.status="km";rO("drm_net_s",void 0,M.videoData.gK);const b=new g.GF(M.uV.vg),T={context:g.ni(b.config_||g.Ei())};T.drmSystem=zJS[M.V.flavor];T.videoId=M.videoData.videoId;T.cpn=M.videoData.clientPlaybackNonce;T.sessionId=M.sessionId;T.licenseRequest=g.Id(W.message);T.drmParams=M.videoData.drmParams;isNaN(M.cryptoPeriodIndex)||(T.isKeyRotated=!0,T.cryptoPeriodIndex=M.cryptoPeriodIndex);var q=!!M.videoData.V?.W()?.isHdr();T.drmVideoFeature=q?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR"; M.uV.experiments.hT().Z.UY(uJG)&&(T.context=g.LT(M.videoData));if(T.context&&T.context.client){if(q=M.uV.Z)T.context.client.deviceMake=q.cbrand,T.context.client.deviceModel=q.cmodel,T.context.client.browserName=q.cbr,T.context.client.browserVersion=q.cbrver,T.context.client.osName=q.cos,T.context.client.osVersion=q.cosver;M.uV.experiments.hT().Z.UY(uJG)||(T.context.user=T.context.user||{},M.videoData.Zs&&(T.context.user.credentialTransferTokens=[{token:M.videoData.Zs,scope:"VIDEO"}]),M.videoData.EY&& (T.context.user.kidsParent={oauthToken:M.videoData.EY}));T.context.request=T.context.request||{};T.context.request.mdxEnvironment=M.videoData.mdxEnvironment||T.context.request.mdxEnvironment;g.S0(M.V)&&(T.fairplayKeyId=g.Id(Ln(M.fairplayKeyId)));g.ZI(M.uV,M.videoData.C()).then(X=>{LaQ(W,T,b,X);M.status="rs"})}else M.error("drm.net",2,"t.r;ic.0")}; S$s=function(M,W,b){const T={};T.isHdr=W.includes("HDR");switch(W.replace("HDR","").replace("720","")){case "AUDIO":T.trackType=1;break;case "SD":T.trackType=2;break;case "HD":T.trackType=3;break;case "UHD1":T.trackType=4;break;case "UHD2":T.trackType=5;break;default:T.trackType=0}!T.trackType||b[W]||EP(M)&&!n5(M,W)||(M.authorizedFormats.push(T),b[W]=!0)}; Oft=function(M,W){const b=[];for(const T of Object.keys(M.Z))b.push(`${T}_${M.Z[T].type}_${M.Z[T].status}`);return b.join(W)}; EP=function(M){var W;if(W=M.gK&&M.B!=null)M=M.B,W=!(!M.Z||!M.Z.keyStatuses);return W}; r$Q=function(M,W){var b=W.Z.getValue();b=new g.d9(()=>{xss(M,W)},b); g.t(M,b);b.start();g.og(W.Z);D7(M,{rtyrq:1})}; yV=function(M){const W={};W[M.status]=EP(M)?Oft(M,"."):M.A.join(".");return W}; n5=function(M,W){for(const b in M.Z)if(M.Z[b].status==="usable"&&M.Z[b].type===W)return!0;return!1}; Peg=function(M,W){for(const b in M.Z)if(M.Z[b].type===W)return M.Z[b].status}; eJs=function(M){let W;W=M[0];M[0]=M[3];M[3]=W;W=M[1];M[1]=M[2];M[2]=W;W=M[4];M[4]=M[5];M[5]=W;W=M[6];M[6]=M[7];M[7]=W}; A$a=function(M){return g.ME(M,"UHD2")||g.ME(M,"UHD2HDR")?"highres":g.ME(M,"UHD1")||g.ME(M,"UHD1HDR")?"hd2160":g.ME(M,"HD")||g.ME(M,"HDHDR")?"hd1080":g.ME(M,"HD720")||g.ME(M,"HD720HDR")?"hd720":"large"}; HfQ=function(M){var W="";for(let b=0;b{M.onClosed()}),null)):M.V&&(pU(M.A,M.V,["mskeymessage", "webkitkeymessage"],M.O),pU(M.A,M.V,["mskeyerror","webkitkeyerror"],M.gK),pU(M.A,M.V,["mskeyadded","webkitkeyadded"],M.X))}; oZs=function(M,W,b){g.O(b);M.B&&(b instanceof DOMException&&(W+=`;n.${b.name};m.${b.message}`),M.B(W))}; c$t=function(M){pU(M.A,M.element,["keymessage","webkitkeymessage"],M.gK);pU(M.A,M.element,["keyerror","webkitkeyerror"],M.X);pU(M.A,M.element,["keyadded","webkitkeyadded"],M.D)}; Qlq=function(M,W=null){if(M.Z.keySystemAccess)return M.W=M.W.then(()=>M.mediaKeys?Promise.resolve():W?.mediaKeys&&W.Cp?.Aj()?(M.mediaKeys=W?.mediaKeys,Promise.resolve()):M.Z.keySystemAccess.createMediaKeys().then(b=>{M.ST()||(M.mediaKeys=b,W?.Cp?.Aj()&&(W.mediaKeys=b))})).then(()=>{const b=W?.BP(); return M.element&&M.element!==b&&M.element.mediaKeys?M.element.setMediaKeys(null):Promise.resolve()}).then(()=>{M.element=W?.BP(); return M.element&&M.element.mediaKeys!==M.mediaKeys?M.element.setMediaKeys(M.mediaKeys):Promise.resolve()}),M.W; h$(M.Z)?M.V=new (FJ())(M.Z.keySystem):z0(M.Z)?(M.V=new (FJ())(M.Z.keySystem),M.element?.webkitSetMediaKeys(M.V)):c$t(M);return null}; gZG=function(M,W){const b=new Uint8Array(270);for(let T=0;T<135;T++)b[T*2]=''.charCodeAt(T);M=M.V.createSession("video/mp4",W,b);return new UP(null,null,null,null,M)}; wRg=function(M,W){W=slP(W,M.Z.qw);W=M.V.createSession("video/mp4",W);return new UP(null,null,null,null,W,M.C)}; C5=function(M,W){let b=M.S[W.sessionId];!b&&M.B&&(b=M.B,M.B=null,b.sessionId=W.sessionId,M.S[W.sessionId]=b);return b}; slP=function(M,W){var b=M.subarray(4);b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2);b=String.fromCharCode.apply(null,b).match(/ek=([0-9a-f]+)/)[1];var T="";for(var q=0;q{pRt(M)}),OE(b=>{if(!M.ST()){g.O(b); var T="t.a";b instanceof DOMException&&(T+=";n."+b.name+";m."+b.message);M.publish("licenseerror","drm.unavailable",1,T,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(M.V({mdkrdy:1}),M.gK=!0); M.O&&(W=Qlq(M.O,M.mediaElement))}; pRt=function(M){if(!M.ST())if(M.uV.j("html5_drm_set_server_cert")||M.Z.Z()){const W=M.mediaKeys.setServerCertificate();W?W.then(OE(b=>{M.uV.jW()&&M.publish("ctmp","ssc",{success:b})}),OE(b=>{M.publish("ctmp","ssce",{n:b.name, m:b.message})})).then(OE(()=>{kh(M)})):kh(M)}else kh(M)}; MzL=function(M,W,b){M.EY=!0;b=new Bu(W,b);M.uV.j("html5_eme_loader_sync")&&(M.C.get(W)||M.C.set(W,b));$TS(M,b)}; $TS=function(M,W){if(!M.ST()){M.V({onInitData:1});if(M.uV.j("html5_eme_loader_sync")&&M.videoData.B&&M.videoData.B.Z()){var b=M.W.get(W.initData);W=M.C.get(W.initData);if(!b||!W)return;W=b;b=W.initData;M.C.remove(b);M.W.remove(b)}M.V({initd:W.initData.length,ct:W.contentType});if(M.Z.flavor==="widevine")if(M.lV&&!M.videoData.isLivePlayback)K5(M);else{if(!(M.uV.j("vp9_drm_live")&&M.videoData.isLivePlayback&&W.dU)){M.lV=!0;b=W.cryptoPeriodIndex;var T=W.Z;Z2q(W);W.dU||(T&&W.Z!==T?M.publish("ctmp","cpsmm", {emsg:T,pssh:W.Z}):b&&W.cryptoPeriodIndex!==b&&M.publish("ctmp","cpimm",{emsg:b,pssh:W.cryptoPeriodIndex}));M.publish("widevine_set_need_key_info",W)}}else M.BY(W)}}; K5=function(M){if(M.EY&&M.gK&&!M.sY){for(;M.A.length;){const W=M.A[0],b=Wjy(M)?Ieq(W):g.Id(W.initData);if(M.Z.Z()&&!W.V)M.A.shift();else{if(M.B.get(b))if(M.Z.flavor!=="fairplay"||M.Z.Z()){M.A.shift();continue}else M.B.delete(b);Z2q(W);break}}M.A.length&&M.createSession(M.A[0])}}; kh=function(M){M.ST()||(M.gK=!0,M.V({onmdkrdy:1}),K5(M))}; Wjy=function(M){return M.Z.flavor==="widevine"&&M.videoData.j("html5_drm_cpi_license_key")}; bLL=async function(M){if(g.EL()&&M.mediaKeys.mediaKeys?.getMetrics){var W=await M.mediaKeys.getMetrics();W&&(M_(W)||(W=g.La(W)),/^[A-Za-z0-9_-]+={0,3}$/.test(W)||(W=g.NI(W,void 0,!0)),M.publish("ctmp","drm",{metrics:W}))}}; TLq=function(M,W){if(M.videoData.D)return!1;M.Vz.XX+=1;if(M.Vz.XX<=10)return!1;W.exiled=`${M.Vz.XX}`;M.dt("qoe.start15s",W);M.qK.publish("playbackstalledatstart");return!0}; q1t=function(M){return M.V?!0:M.Vz.gK==="yt"?Sz(M.videoData)?M.qK.loader?.Hr():M.videoData.D?M.videoData.jT<25:!M.videoData.jT:!1}; XQQ=function(M){if(!M.V){M.V=!0;var W=M.qK.getPlayerState();W=W.isPaused()||W.isSuspended();M.qK.o3();W&&!Ye(M.videoData)||M.qK.publish("signatureexpired")}}; va=function(M,W,b){const T=M.videoData.V;var q=M.videoData.A,X=M.Vz.j("html5_disable_codec_fallback_for_drm")&&M.videoData.Xy();LP(M.qK.getVideoData())&&V0t(M.qK,"pe");M.Vz.hT().Z.UY(jUt)&&(b.bkg=M.qK.fK().isBackground()?"1":"0");if((W==="progressive.net.retryexhausted"||W==="fmt.unplayable"||W==="fmt.decode")&&!M.qK.Ui.S&&T&&T.itag==="22")return M.qK.Ui.S=!0,M.dt("qoe.restart",{reason:"fmt.unplayable.22"}),M.qK.N6(),!0;var G=!1;if(M.videoData.isExternallyHostedPodcast){if(G=M.videoData.C5)b.mimeType= G.type,M.dK("3pp",{url:G.url});b.ns="3pp";M.qK.J1(W,1,"VIDEO_UNAVAILABLE",$B((new g.WE(W,b,1)).details));return!0}var V=M.Ni+3E4<(0,g.u)()||M.Z.isActive();if(M.Vz.j("html5_empty_src")&&M.videoData.isAd()&&W==="fmt.unplayable"&&/Empty src/.test(`${b.msg}`))return b.origin="emptysrc",M.dt("auth",b),!0;V||Gha(M.qK.fK())||(b.nonfg="paused",V=!0,M.qK.pauseVideo());W!=="fmt.decode"&&W!=="fmt.unplayable"||!q?.C()||(q6Q(M.Vz.S,q.Qz),b.acfallexp=q.Qz,G=V=!0);!V&&M.B>0&&(M.Z.start(),V=!0,b.delayed="1",--M.B); q=M.qK.loader;V||!T?.Z()&&!T?.A()||X||(q6Q(M.Vz.S,T.Qz),G=V=!0,b.cfallexp=T.Qz);if(!V)return TLq(M,b);X=!1;M.S?M.Ni=(0,g.u)():X=M.S=!0;V=M.videoData;if(V.BY){V=V.BY.S();var J=Date.now()/1E3+1800;V=V6048E5&&mt(M,"signature",!0);return!1}; aIy=function(M){if(M.videoData.errorDetail==="7"&&g.XD(M.Vz)){const W=!M.videoData.isInlinePlaybackNoAd;W&&M.Vz.RV++;mt(M,"innertube_player_reload_required",W&&M.Vz.RV>1);return!0}return!1}; L5=function(M,W="fmt.noneavailable"){var b=M.Vz.S;b.C=!1;b.Z=!0;M.dt("qoe.restart",{e:W,detail:"hdr"});M.qK.MZ(!0)}; Ejy=function(M){if(M.qK.fK().isInline())return ll;M=yg[Tm()];return g.ap("auto",M,!1,"s")}; njl=function(M,W){var b;a:if((b=W.Z)&&b.videoInfos.length){for(var T of b.videoInfos)if(T.S?.smooth){b=T.video.qualityOrdinal;break a}b=b.videoInfos[0].video.qualityOrdinal}else b=0;(g.Df("armv7")||g.Df("aarch64")||g.Df("android"))&&!g.XD(M.uV)&&W.Z.videoInfos[0].A()&&(b=Math.min(b,g.mh.large));T=g.TO(M.uV.experiments,"html5_chipset_soft_cap");T>0&&(b=Math.min(b,T));T=g.TO(M.uV.experiments,"html5_sabr_non_streaming_xhr_soft_cap");!q4&&T>0&&(b=Math.min(b,T));if(T=g.TO(M.uV.experiments,"html5_max_vertical_resolution")){let G= 4320;for(var q=0;qT&&(G=Math.min(G,X.video.qualityOrdinal))}if(G<4320){q=0;for(X=0;X60&&!g.XD(M.uV)?new DQ(0,360,!1,"v"):ll}; Z7=function(M,W,b){if(M.uV.experiments.FX("html5_disable_client_autonav_cap_for_onesie")&&W.Ip()||g.XD(M.uV)&&(Tm(-1)>=1080||W.osid))return ll;let T=g.TO(M.uV.experiments,"html5_autonav_quality_cap");const q=g.TO(M.uV.experiments,"html5_autonav_cap_idle_secs");return T&&W.isAutonav&&EK()/1E3>q?(b&&(T=yIG(M,b,T)),new DQ(0,T,!1,"e")):ll}; I8=function(M,W){if(!W.Z.Z())return M.S?new DQ(0,360,!1,"b"):ll;var b=!1,T=!1;for(var q of W.Z.videoInfos)q.Z()?b=!0:T=!0;b=b&&T;T=0;q=g.TO(M.uV.experiments,"html5_performance_cap_floor");q=M.uV.V?240:q;for(const X of W.Z.videoInfos){if(b&&X.Z())continue;W=Il(X.Qz,X.video.fps,M.B);const G=X.video.qualityOrdinal;if(Math.max(W,q)>=G){T=G;break}}return new DQ(0,T,!1,"b")}; Ha=function(M,W){const b=Nz(M,W.Z?.videoInfos),T=M.qK.getPlaybackRate();return T>1&&b?(M=WdL(M.uV.S,W.Z.videoInfos,T),new DQ(0,M,!0,"o")):new DQ(0,0,!1,"o")}; Cbt=function(M,W){if(M.j("html5_disable_ustreamer_constraint_for_sabr")&&Sz(W.videoData))return ll;const b=M.qK.Ll();M.j("html5_use_video_quality_cap_for_ustreamer_constraint")&&b&&b.Tc>0&&nb(W.videoData.Ek)&&(M=b.Tc,W.videoData.Ek=new DQ(0,M,!1,"u"));return W.videoData.Ek}; f5=function(M,W,b){g.XD(M.uV)&&(b=b.compose(M.dk(W)));return b}; Nz=function(M,W){return W&&g.XD(M.uV)?W.some(b=>b.video.V()):!1}; yIG=function(M,W,b){if(M.j("html5_optimality_defaults_chooses_next_higher")&&b)for(M=W.Z.videoInfos,W=1;W49?"p60":T>32?"p48":""}`;b=Il(b,T,X);q>0&&(b=Math.min(b,q));!Ns.has(W)&&jX().includes(W)?(T=Xu(),+T[W]>0&&(b=Math.min(+T[W],b)),T[W]!==b&&(T[W]=b,g.$u("yt-player-performance-cap",T,2592E3))):Ns.has(W)||X==null?(T=jX().slice(),T.includes(W)||(T.push(W),g.$u("yt-player-performance-cap-active-set",T,2592E3)),Zh.set(W,b)):(Ns.add(W),X?.set(W,b));M.qK.zV()}; vjq=function(){return fJ(Xu(),M=>`${M}`)}; mTJ=function(M,W,b,T){if(!W||!b||!W.videoData.V)return!1;const q=g.TO(M.uV.experiments,"html5_df_downgrade_thresh"),X=M.j("html5_log_media_perf_info");if(!((0,g.u)()-M.A<5E3?0:X||q>0))return!1;const G=((0,g.u)()-M.A)/1E3;M.A=(0,g.u)();b=b.getVideoPlaybackQuality();if(!b)return!1;const V=b.droppedVideoFrames-M.C,J=b.totalVideoFrames-M.D;M.C=b.droppedVideoFrames;M.D=b.totalVideoFrames;const B=b.displayCompositedVideoFrames===0?0:b.displayCompositedVideoFrames||-1;X&&M.uV.jW()&&M.qK.dK("ddf",{dr:b.droppedVideoFrames, de:b.totalVideoFrames,comp:B});if(T)return M.Z=0,!1;if((J-V)/G>M.X||!q||g.XD(M.uV))return!1;M.Z=(J>60?V/J:0)>q?M.Z+1:0;if(M.Z!==3)return!1;Kja(M,W.videoData.V);M.qK.dK("dfd",Object.assign({dr:b.droppedVideoFrames,de:b.totalVideoFrames},vjq()));return!0}; Ljt=function(M,W){M.j("html5_log_media_perf_info")&&(M.qK.dK("perfdb",vjq()),M.qK.dK("sessionperfdb",Object.fromEntries(Zh.entries())),M.qK.dK("playbackperfdb",Object.fromEntries(M.B.entries())),M.qK.dK("hwc",{nch:navigator.hardwareConcurrency},!0),W&&M.qK.dK("mcdb",{itags:W.Z.videoInfos.filter(b=>b.S?.smooth===!1).map(b=>b.itag).join("-")}))}; lIS=function(M){switch(M.uV.playerCanaryStage?.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"}}; tzt=function(M){M.Z>=0||(M.provider.qK.getVisibilityState()===3?M.S=!0:(M.Z=g.u3(M.provider),M.delay.start()))}; ZLG=function(M){if(!(M.V<0)){var W=g.u3(M.provider),b=W-M.A;M.A=W;M.playerState.V()?M.playTimeSecs+=b:M.playerState.isBuffering()&&!M.playerState.Z(16)&&(M.rebufferTimeSecs+=b)}}; ro=function(M){M.Z.startTime=M.B;M.Z.endTime=M.V;M.qg?.length&&(M.Z.qg=M.qg);M.mK?.length&&(M.Z.mK=M.mK);let W=!1;M.segments.length&&g.zS(M.segments).isEmpty()?(M.segments[M.segments.length-1].previouslyEnded&&(M.Z.previouslyEnded=!0),M.segments[M.segments.length-1]=M.Z,W=!0):M.segments.length&&M.Z.isEmpty()||(M.segments.push(M.Z),W=!0);W?M.Z.endTime===0&&(M.previouslyEnded=!1):M.Z.previouslyEnded&&(M.previouslyEnded=!0);M.C+=M.V-M.B;M.Z=R8(M.provider);M.Z.previouslyEnded=M.previouslyEnded;M.provider.uV.hT().Z.UY(IIS)&& (M.S+=JSON.stringify(M.Z).length);M.previouslyEnded=!1;M.B=M.V}; NLt=function(M){g.FV(M.W);M.W=NaN}; HLq=function(M){NLt(M);M.W=g.ra(()=>{M.update()},100); M.St=g.u3(M.provider);M.Z=R8(M.provider)}; fIt=function(M,W,b){b-=M.St;return W===M.V&&b>.5}; xh=function(M,W){const b=M.sendVisitorIdHeader?M.visitorData:void 0;return g.ZI(M.uV,M.accessToken).then(T=>rS(M.uri,M.uV,M.pageId,b,T,W))}; RLt=function(M){M.indexOf("watchtime")!==-1&&g.V9("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:M}})}; rIl=function(M,W){M.attestationResponse&&xh(M).then(b=>{b=b||{};b.method="POST";b.postParams={atr:M.attestationResponse};M.yz?M.BY?ot().sendAndWrite(W,b):ot().sendThenWrite(W,b):g.Pe(W,b)})}; xTG=function(M){const W={p5:[]};if(gG(M.segments,b=>!!b.qg||!!b.mK)){for(const b of M.segments)W.p5.push({qg:b.qg||[], mK:b.mK||[]});M=g.Sr(W,KHL);return g.Id(M,4)}}; Fjp=function(M,W){return()=>{M.uV.j("html5_simplify_pings")?(M.Z=M.lV,M.Y9=W(),M.s2=0,M.send()):xh(M).then(b=>{var T=pp(M);T.cmt=T.len;T.lact="0";const q=W().toFixed(3);T.rt=Number(q).toString();T=g.JM(M.uri,T);M.uV.j("vss_through_gel_double")&&RLt(T);M.yz?(b==null&&(b={}),M.BY?ot().sendAndWrite(T,b):ot().sendThenWrite(T,b)):b?g.Pe(T,b):g.zu(T)})}}; wS=function(M,W){return g.dG(W,M.V).join(",")}; omg=function(M,W){if(W&&M.A){var b=new Set(["q","feature","mos"]),T=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),q=new Set(["aqi","autonav","list","ssrt","upt"]);M.A.ns==="3pp"&&(W.ns="3pp");for(const X of Object.keys(M.A))T.has(X)||b.has(X)||q.has(X)&&!M.A[X]||(W[X]=M.A[X])}}; Fx=function(M,W){var b=iLQ(M.provider);Object.assign(b,{state:M.X});W=new hLy(M.provider.videoData,M.provider.uV,W,b);W.Z=M.provider.qK.ac();b=M.provider.videoData.clientPlaybackNonce;W.Z=M.provider.qK.H2(b);M.provider.videoData.isLivePlayback||(W.lV=M.provider.qK.getDuration(b));M.provider.videoData.Z&&(b=M.provider.videoData.Z.A1(W.Z))&&(W.gK=b-W.Z,Za(M.provider.videoData)&&(W.Z+=M.provider.qK.Ga(),W.gK-=M.provider.qK.Ga()));W.Y9=g.u3(M.provider);W.segments=[R8(M.provider)];return W}; AIg=function(M){var W=M.provider.videoData.cH;const b=M.provider.videoData.xL,T=[10+W,10,10,40+b-W,40];var q=M.provider.videoData.getPlayerResponse()?.playbackTracking;const X=q?.videostatsScheduledFlushWalltimeSeconds;q=q?.videostatsDefaultFlushIntervalSeconds;if(!(X&&X.length>0&&q))return T;W=[X[0]+W,...X.slice(1).map((G,V)=>G-X[V]), q+b-W,q];return W.some(G=>G<0)?(g.SV(M.logger,347111855,`Neg vss scheduled pings ${X} ${q}`),T):W}; il=function(M,W=NaN){const b=g.u3(M.provider);W=isNaN(W)?b:W;W=Math.ceil(W);const T=M.sY[M.gK];M.gK+1{if(!M.ST()){M.S=NaN;var X=M.O(),G=zLy(M,X);G.X=q;var V=M.yz>1E3;!(X.length>1)&&X[0].isEmpty()||V||(G.W=il(M,q));G.send();M.yz++}},(q-b)*1E3); return M.V=q}; hx=function(M,W){const b=M.provider.uV;g.ZI(M.provider.uV,M.provider.videoData.C()).then(T=>{const q=M.provider.uV.pageId,X=M.provider.uV.sendVisitorIdHeader?M.provider.videoData.visitorData:void 0,G=M.provider.uV.j("vss_pings_using_networkless")||M.provider.uV.j("kevlar_woffle"),V=M.provider.uV.j("allow_skip_networkless");T=rS(W,b,q,X,T);xg(W,T,{token:M.provider.videoData.ll,EG:M.provider.videoData.C4,mdxEnvironment:M.provider.videoData.mdxEnvironment},b,void 0,G&&!V,!1,!0)})}; zLy=function(M,W){const b=Fx(M,"watchtime");utP(M)&&(b.delayThresholdMet=!0,M.An=!0);if(M.B>0){for(const T of W)T.startTime-=M.B,T.endTime-=M.B;b.Z-=M.B}else b.Z=M.Z.V;b.segments=W;return b}; utP=function(M){var W;if(W=M.provider.videoData.isLoaded()&&M.provider.videoData.gr&&M.A&&!M.An)W=M.Z,W=W.C+W.ac()-W.B>=M.provider.videoData.gr;return!!W}; Ax=function(M,W){const b=M.D(!isNaN(M.V));W&&(M.V=NaN);return b}; S1g=function(M){M.provider.videoData.youtubeRemarketingUrl&&!M.xk&&(hx(M,M.provider.videoData.youtubeRemarketingUrl),M.xk=!0)}; OLt=function(M){M.provider.videoData.googleRemarketingUrl&&!M.lV&&(hx(M,M.provider.videoData.googleRemarketingUrl),M.lV=!0)}; zL=function(M){if(!M.ST()&&M.A){M.X="paused";var W=Ax(M);W.isFinal=!0;W.send();M.dispose()}}; Pbt=function(M,W,b){if(!M.BY){b||(b=Fx(M,"atr"));b.attestationResponse=W;try{b.send()}catch(T){if(T.message!=="Unknown Error")throw T;}M.BY=!0}}; g.u3=function(M){return eLs(M)()}; HOG=function(M){const W=navigator.connection?.type||"";if(W)return dTQ[W]||dTQ.other;if(g.XD(M.uV)){M=navigator.userAgent;if(/[Ww]ireless[)]/.test(M))return 3;if(/[Ww]ired[)]/.test(M))return 30}return 0}; R8=function(M){const W=new ojq;W.B=iLQ(M).cc?.toString()||"-";W.playbackRate=M.qK.getPlaybackRate();var b=M.qK.getVisibilityState();b!==0&&(W.visibilityState=b);M.uV.wK&&(W.V=1);W.A=M.videoData.Ia;W.compositeLiveStatusToken=M.videoData.compositeLiveStatusToken;W.heartbeatLoggingToken=M.videoData.heartbeatLoggingToken;b=M.qK.getAudioTrack();b.r9&&b.r9.id&&b.r9.id!=="und"&&(W.audioId=b.r9.id);W.connectionType=HOG(M);W.volume=M.qK.getVolume();W.muted=M.qK.isMuted();W.clipId=M.qK.QI()||"-";W.Z=M.videoData.mJ|| "-";return W}; iLQ=function(M){const W=M.qK.Jv()||{};W.fs=M.qK.MO();W.volume=M.qK.getVolume();W.muted=M.qK.isMuted()?1:0;W.mos=W.muted;W.clipid=M.qK.QI();W.playerheight=M.qK.getPlayerSize()?.height||0;W.playerwidth=M.qK.getPlayerSize()?.width||0;M=M.videoData;const b={};M.V&&(b.fmt=M.V.itag,M.A&&(M.wK?M.A.itag!==M.V.itag:M.A.itag!=M.V.itag)&&(b.afmt=M.A.itag));b.ei=M.eventId;b.list=M.playlistId;b.cpn=M.clientPlaybackNonce;M.videoId&&(b.v=M.videoId);M.KZ&&(b.infringe=1);(M.WP?0:M.Y9)&&(b.splay=1);const T=Sn(M);T&& (b.live=T);M.FQ&&(b.sautoplay=1);M.eO&&(b.autoplay=1);M.VD&&(b.sdetail=M.VD);M.partnerId&&(b.partnerid=M.partnerId);M.osid&&(b.osid=M.osid);M.fH&&(b.cc=g.Wkt(M.fH));return Object.assign(W,b)}; eLs=function(M){if(!M.Z){const W=g.Na(T=>{let q=(0,g.u)();T&&q<=631152E6&&(M.qK.dK("ytnerror",{issue:28799967,value:`${q}`}),q=(new Date).getTime()+2);return q},M.uV.j("html5_validate_yt_now")),b=W(); M.Z=()=>Math.round(W()-b)/1E3; M.qK.uA()}return M.Z}; ul=function(M){M.V&&tzt(M.V);M.qoe&&Sel(M.qoe)}; gjl=function(M,W,b,T){b.adFormat=b.XX;const q=W.qK;W=new cIp(new QUy(b,W.uV,{getDuration:()=>b.lengthSeconds, getCurrentTime:()=>q.getCurrentTime(), ac:()=>q.ac(), H2:()=>q.H2(), Qk:()=>q.Qk(), getPlayerSize:()=>q.getPlayerSize(), getAudioTrack:()=>b.getAudioTrack(), getPlaybackRate:()=>q.getPlaybackRate(), ZD:()=>q.ZD(), getVisibilityState:()=>q.getVisibilityState(), r0:()=>q.r0(), Jv:()=>q.Jv(), getVolume:()=>q.getVolume(), isMuted:()=>q.isMuted(), MO:()=>q.MO(), QI:()=>q.QI(), getProximaLatencyPreference:()=>q.getProximaLatencyPreference(), uA(){q.uA()},dK(X,G){q.dK(X,G)},IX:()=>q.IX(), Ga:()=>q.Ga()})); W.B=T;g.t(M,W);return W}; sUL=function(M){M.V&&M.V.send();if(M.qoe){var W=M.qoe;if(W.S){W.Np==="PL"&&(W.Np="N");var b=g.u3(W.provider);g.hm(W,b,"vps",[W.Np]);W.W||(W.A>=0&&W.Z.set("user_intent",[W.A.toString()]),W.W=!0);W.provider.uV.jW()&&W.dK("finalized",{});W.yz=!0;W.reportStats(b)}}if(M.provider.videoData.enableServerStitchedDai)for(const T of M.B.values())zL(T);else M.Z&&zL(M.Z);M.dispose()}; wQG=function(M,W){M.Z&&Pbt(M.Z,W)}; pQp=function(M){if(!M.Z)return null;const W=Fx(M.Z,"atr");return b=>{M.Z&&Pbt(M.Z,b,W)}}; Y1t=function(M,W){M=KJ(M.array,b=>W-b.start||1); return M<0?-(M+1):M}; $4a=function(M,W,b){const T=[];for(W=Y1t(M,W);Wb)break}return T}; Si=function(M,W){const b=[];for(const T of M.array)if(T.contains(W)&&b.push(T),T.start>W)break;return b}; Mns=function(M){return M.array.slice(Y1t(M,0x7ffffffffffff),M.array.length)}; WcG=function(M,W){let b=NaN;for(const T of M.array)if(T.contains(W)&&(isNaN(b)||T.endW&&(isNaN(b)||T.start!W.has(b))}; TFG=function(M){return M.qK.getPlayerState().Z(2)?0x8000000000000:M.qK.getCurrentTime()*1E3}; OP=function(M,W){const b=[];if(!W.length)return b;for(let T=0;TV.end<0x8000000000000),G=Mns(M.Z)):W=M.B<=b&&by(W)?$4a(M.Z,M.B,b):Si(M.Z,b); q=q.concat(OP(M,W));X&&(q=q.concat(ei(M,X)));G&&(q=q.concat(OP(M,G)));M.B=b;Pa(M,q)}}; o8=function(M,W){return W>M.mediaTime+M.S&&W1)M.A=!0;if(q||isNaN(M.V))M.V=W;if(M.Z)W!==M.mediaTime&&(M.Z=!1);else if(W>0&&M.mediaTime===W){q=1500;if(M.uV.j("html5_buffer_underrun_transition_fix")){q=g.TO(M.uV.experiments,"html5_min_playback_advance_for_steady_state_secs");const X=g.TO(M.uV.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");q=q>0&&X>0&&Math.abs(W-M.V)(T||!M.A?q:400)}M.mediaTime=W;M.B=b;return!1}; j9J=function(M,W,b){return W.S$(b).then(()=>MG(new XML(W,W.B)),T=>{T instanceof Error&&g.lR(T); var q=qm('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),X=jA('audio/mp4; codecs="mp4a.40.2"'),G=q||X;const V=W.isLivePlayback&&!g.gp(M.S,!0);T="fmt.noneavailable";V?T="html5.unsupportedlive":G||(T="html5.missingapi");G=V||!G?2:1;q={buildRej:"1",a:W.B1(),d:!!W.oa,drm:W.Xy(),f18:W.Tt.indexOf("itag=18")>=0,c18:q};W.Z&&(W.Xy()?(q.f142=!!W.Z.Z["142"],q.f149=!!W.Z.Z["149"],q.f279=!!W.Z.Z["279"]):(q.f133=!!W.Z.Z["133"],q.f140=!!W.Z.Z["140"],q.f242=!!W.Z.Z["242"]),q.cAAC=X,q.cAVC=jA('video/mp4; codecs="avc1.42001E"'), q.cVP9=jA('video/webm; codecs="vp9"'));W.S&&(q.drmsys=W.S.keySystem,X=0,W.S.V&&(X=Object.keys(W.S.V).length),q.drmst=X);return new g.WE(T,q,G)})}; QV=function(M,W){W=Math.max(Math.max(1,Math.ceil(M.policy.A/ca(M))),W);return Math.min(Math.min(8,Math.floor(M.policy.X/ca(M))),W)}; ca=function(M){return M.videoData.Z?al(M.videoData.Z)||5:5}; Vna=function(M,W){if(W)return W=M.videoData,W=G7t(M,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W),QV(M,W);if(M.V.length){if(Math.min.apply(null,M.V)>1)return QV(M,M.Z-1);if(M.policy.D)return QV(M,M.Z+1)}return M.Z}; JjP=function(M,W=!1){if(!M.V.length)return!1;const b=M.Z;M.Z=Vna(M,W);if(W=b!==M.Z)M.V=[],M.mC=0;return W}; go=function(M){let W=M.policy.Z;M.A||(W=Math.max(W-1,0));return W*ca(M)}; sP=function(M,W){return W>=M.xI()-go(M)}; BFt=function(M,W,b=!0){const T=sP(M,W);b||T?T&&(M.B=!0):M.B=!1;M.W=M.policy.B===2||M.policy.B===3&&M.B;W=sP(M,W);M.A!==W&&M.publish("livestatusshift",W);M.A=W}; G7t=function(M,W,b){b.Pi&&W--;xe(b)&&(W=1);Fl(b)!==0&&(M=g.TO(M.experiments,"html5_live_chunk_readahead_proxima_override"))&&(W=M,b.Z?.jT()&&W++);return W}; p5=function(M,W,b=null){return new wo(g.TO(M.uV.experiments,W)||0,b?M.uV.j(b):!1)}; D4L=function(M,W){M.Z=W}; Yh=function(M,W,b,T,q,X,G,V){W?W.test(b)?(M.dt(q,W,G),W.C||X()):(!W.V||W.A?b=!1:(b=(0,g.u)(),T?W.Z||(W.Z=b):W.Z=0,X=!T&&b-W.V>3E4,b=W.Z&&b-W.Z>1E3||X?W.A=!0:!1),b&&(V={...M.qd(W),...V},V.wn=G,V.we=q,V.wsuc=T,M.qK.dK("workaroundReport",V),T&&(W.reset(),M.B[q]=!1))):M.qK.J1("auth",2,"BROWSER_OR_EXTENSION_ERROR",$B({source:"watchdog",name:G}))}; aaQ=function(M,W){if(M.Z){var b=M.Z;var T=M.getCurrentTime(),q=b.xI();var X=b.policy.V;b.A||(X=Math.max(X-1,0));X*=ca(b);T>=q-X||!b.fU()?b=T0&&YB(M.mediaElement)>0&&(M.V=$O(M,M.V,!1)),W=M.j("html5_pseudogapless_shorts_seek_to_next_start")&&W?.seekSource===60,!M.mediaElement||!EeL(M,W))M.d9.start(750);else if(!isNaN(M.V)&&isFinite(M.V)&&(W=M.xk-(M.V-M.timestampOffset),!(W===0||Math.abs(W)<.005)))if(W=M.mediaElement.getCurrentTime()-M.V,Math.abs(W)<=M.MK||Math.abs(W)<.005)neL(M);else{if(M.videoData.h6)M.videoData.h6= !1;else if(!HM(M.videoData)&&M.V>=M.nN()-.1){M.V=M.nN();M.A.resolve(M.nN());M.uV.jW()&&M.qK.dK("setEndedInSeek",{tgt:`${M.V}`,maxst:`${M.nN()}`});M.qK.GE();return}try{const b=M.V-M.timestampOffset;M.mediaElement.seekTo(b);M.gK.Z=b;M.xk=b;M.B=M.V;M.O=!1}catch(b){}}}; U4Q=function(M,W){M.yz=!0;M.j("html5_use_centralized_player_time")&&(M.V=M.C,M.B=M.V,M.C=NaN);yjp(M,W)}; CYL=function(M){let W=0,b=NaN,T="";if(!M.X)return{startSeconds:W,v5:b,source:T};M.videoData.Lx?W=M.videoData.AX:HM(M.videoData)&&(W=Infinity);if(g.PM(M.videoData))return{startSeconds:W,v5:b,source:T};M.videoData.startSeconds?(T="ss",W=M.videoData.startSeconds):M.videoData.G5&&(T="stss",W=M.videoData.G5);M.videoData.liveUtcStartSeconds&&(b=M.videoData.liveUtcStartSeconds);if(isFinite(W)&&(W>M.nN()||W1E9}; vea=function(M,W){M.playbackData=W;M.videoData.isLivePlayback&&(M.D=new k7G(()=>{a:{if(M.playbackData&&M.playbackData.Z.Z()){if(R9(M.videoData)&&M.loader){var b=M.loader.sM.Hx()||0;break a}if(M.videoData.Z){b=M.videoData.Z.BY;break a}}b=0}return b}),M.Z=new Kcs(M.videoData,M.uV.experiments,()=>M.nN(!0))); bm(M.qK)?(M.videoData.vg?.qc||(W=CYL(M),W.v5?(Sz(M.videoData)&&M.Hj(W.v5,W.startSeconds),M.B=W.startSeconds):W.startSeconds>0&&M.seekTo(W.startSeconds,{jR:"seektimeline_startPlayback",seekSource:15})),M.X=!1):W1(M)||(M.B=M.B||M.videoData.startSeconds||0,M.videoData.isLivePlayback||(W=M.qK.videoData.nN(),M.B>W&&(M.j("html5_sabr_log_invalid_sabr_current_time")&&M.qK.dK("invalidSabrCmtStart",{rt:M.B,mst:W}),M.j("html5_sabr_vod_invalid_start_time_fallback")&&(M.B=0))))}; TT=function(M,W){if(M.Z&&M.loader){var b=!1;W?b=!0:M.videoData.isLowLatencyLiveStream||M.videoData.latencyClass==="LOW"||M.videoData.latencyClass==="ULTRALOW"?b=JjP(M.Z):M.Ds&&(M.Ds=!1,b=JjP(M.Z,!0));b&&(W=M.qK.Df,b=M.Z,b=ca(b)*b.Z,W.qoe&&(W=W.qoe,g.hm(W,g.u3(W.provider),"lra",[b]),W.dK("live-readahead-seconds",{v:b})));W=M.loader;b=M.Z.Z;M=M.Z;M=(M.Z-1+M.policy.Z)*ca(M);var T=NaN;var q=W.WP;q===2||q===-1?(q=b,xe(W.qK.getVideoData())&&(T=W.policy.MP)):q=b-1;q=Math.max(q,0);b=W.C;b.qZ=q;b.D=T;W.D&& (W.D.gK=M)}}; Xn=function(M,W){(M.loader=W)?TT(M,!0):qf(M)}; EeL=function(M,W=!1){if(!M.mediaElement||M.mediaElement.B()===0||M.mediaElement.hasError())return!1;const b=M.mediaElement.getCurrentTime()>0;return M.videoData.B&&M.videoData.B.Z()||M.videoData.isLivePlayback||!M.videoData.Xy()?M.V>=0&&!W&&(W=M.mediaElement.D(),W.length||!b)?SA(W,M.V-M.timestampOffset):b:b}; jN=function(M){return M.mediaElement?$a(M.mediaElement):0}; m4y=function(M,W){var b=M.getCurrentTime();const T=M.isAtLiveHead(b);if(M.D&&T){var q=M.D;if(q.Z&&!(b>=q.V&&b50&&q.V.shift())),BFt(M.Z,b,W),W&&aaQ(M,!0));T!==M.vP&&(W=M.getCurrentTime()-M.bV<=500,b=M.OY>=1E3,W||b||(W=M.qK.Df,W.qoe&&(W=W.qoe,b=g.u3(W.provider),g.hm(W,b,"lh", [T?"1":"0"])),M.vP=T,M.OY++,M.bV=M.getCurrentTime()))}; GT=function(M,W){let b=M.A;b||(M.A=new tI,b=M.A,Mf(M,W));return b}; $O=function(M,W,b){if(isNaN(W))return NaN;const T=M.XD();b=M.nN(b);return M.j("html5_clamp_invalid_seek_to_min_seekable_time")&&!M.videoData.isLivePlayback&&W>b+1&&W0)||M.mediaElement&&M.mediaElement.getCurrentTime()>0||(W={jR:"seektimeline_resumeTime",CB:W},M.videoData.D||(W.seekSource=15),M.seekTo(M.B,W))}; yjp=function(M,W){tnG(M,W).then(void 0,()=>{qf(M)}); GT(M,W).then(b=>{Vo(M,b)},()=>{qf(M)}); M.qK.Pk(W);if(M.uV.jW()||ZPp(M))W=M.qd(),W["native"]=`${+M.O}`,W.tgt=`${M.V}`,W.otgt=`${M.V+M.timestampOffset}`,W.maxst=`${M.nN()}`,M.Z&&M.j("html5_high_res_seek_logging")&&(W.tht=`${M.Z.S()}`,W.ht=`${M.Z.xI()}`,W.adft=`${go(M.Z)}`),M.j("html5_sabr_parse_live_metadata_playback_boundaries")&&M.videoData.Z&&Sz(M.videoData)&&(W.minst=`${M.videoData.Z.R6}`,W.cminst=`${M.videoData.Z.XD()+M.timestampOffset}`,W.maxst=`${M.videoData.Z.mF}`,W.hts=`${M.videoData.Z.sY}`,W.cmaxst=`${M.videoData.Z.nN()+M.timestampOffset}`), M.qK.dK("startSeek",W)}; tnG=function(M,W){M.Zs||(M.loader?isFinite(M.V)?M.Zs=M.loader.seek(M.V-M.timestampOffset,W):(HM(M.videoData),M.j("html5_unified_live_latency_reporting")&&(M.qK.Of=0),M.Zs=Pu(M.loader),Xl(M.videoData)||(M.V=M.loader.getCurrentTime()+M.timestampOffset)):M.Zs=g.fG(M.V-M.timestampOffset));return M.Zs}; Vo=function(M,W){M.S&&(M.S.resolve(W),M.qK.g8(),M.uV.jW()||ZPp(M))&&(W=M.qd(),W["native"]=`${+M.O}`,W.otgt=`${M.V+M.timestampOffset}`,M.qK.dK("seekEnd",W));qf(M)}; ZPp=function(M){return M.videoData.OX()&&M.j("html5_enable_shorts_seek_details_logging")}; neL=function(M){M.A&&(M.A.resolve(M.mediaElement.getCurrentTime()),M.gK.V=null)}; qf=function(M){M.V=NaN;M.C=NaN;M.xk=NaN;M.A=null;M.Zs=null;M.S=null;M.yz=!1;M.O=!1;M.MK=0;M.BY.stop();M.Lp.stop()}; NFt=function(M){if(M.X)if(M.videoData.vg?.qc)M.X=!1;else if(g.PM(M.videoData))M.X=!1;else{var W="ss",b=0;M.videoData.Z?.isManifestless&&M.videoData.Lp&&!W1(M)&&(W="mss",b=M.videoData.Lp);(M.videoData.Lx?M.j("html5_prioritize_windowed_st_start_seconds"):M.j("html5_prioritize_st_start_seconds"))&&!b&&M.videoData.G5&&(W="stss",b=M.videoData.G5);!b&&IaP(M)&&(b=M.videoData.liveUtcStartSeconds||M.videoData.Lp,W="utc",b=M.nN()-M.A1(M.nN())+b);!b&&M.videoData.Me()&&M.videoData.G5&&(W="stss",b=M.videoData.G5); var T={};if(b){if(b>M.nN()||b{Vo(M,X)},()=>{qf(M)}),M.videoData.isAd()&&edL({adCpn:M.videoData.clientPlaybackNonce, contentCpn:M.videoData.w_??""},W.Z),M.xk=q,D4L(M.gK,b.getCurrentTime()),M.seekTo(q,{seekSource:104,jR:"seektimeline_mediaElementEvent"}),M.O=!0;break;case "seeked":neL(M);break;case "loadedmetadata":bm(M.qK)||NFt(M);Mf(M);break;case "progress":Mf(M);break;case "pause":M.W=M.getCurrentTime()}M.W&&((T==="play"||T==="playing"||T==="timeupdate"||T==="progress")&&M.getCurrentTime()-M.W>10&&(M.j("html5_sky_skip_pause_jump")?M.qK.dK("skipPauseJump",{evt:T,cmt:M.getCurrentTime(),lpt:M.W}):M.seekTo(M.W,{jR:"pauseJump"})), T!=="pause"&&T!=="play"&&T!=="playing"&&T!=="progress"&&(M.W=0))}; IaP=function(M){return(en(M.videoData)||!!M.videoData.liveUtcStartSeconds)&&(!!M.videoData.liveUtcStartSeconds||W1(M))&&!!M.videoData.Z}; faL=function(M,W){M.qK.dK("sdai",{adj4t:W.toFixed(3)});M.lV=W;W+=1;M.V=W;M.B=W;GT(M).then(b=>{Vo(M,b)},()=>{qf(M)})}; Jb=function(M,W){return M.Z.get(W)?.buffer.A()||[]}; B1=function(M,W){return M.Z.get(W)?.buffer.B()||0}; Ajg=function(M,W){function b(X){return T.gK!=="yt"&&(q.partnerId===38&&T.playerStyle==="books"||q.partnerId===30&&T.playerStyle==="docs"||q.partnerId===33&&T.playerStyle==="google-live")?RXG(M,q,X):rjp(M,q).then(()=>{T.j("embeds_enable_shorts")&&M.G().yC&&q.isEmbedsShortsMode(new g.i0(0,0),!!q.playlistId)?x4p(M,q):Db(M,q)},G=>{Db(M,q,!0); throw G;})} const T=M.G(),q=M.getVideoData();q.ST();q.loading=!0;return FcS(M)?iPL(M,q,W).then(()=>{Db(M,q)},X=>{X=bS(X); if(Mm(X.severity))return Db(M,q,!0),Promise.reject(X);X.errorCode==="onesie.response.badproxystatus"&&`${X.details.st}`==="3"&&(hXq=!0);M.handleError(X);return b("onesie")}):b("gvi")}; FcS=function(M){var W=M.G();if(W.j("html5_disable_onesie")||!W.j("html5_onesie")||!W.j("html5_onesie_inline")&&M.getVisibilityState()===5||W.gK!=="yt")return!1;var b=W.cP;if(!b||!b.Z)return M.handleError(new g.WE("onesie.unavailable.hotconfig",{key:"0"})),!1;b.Z.W<(0,g.u)()&&(M.dK("okexp","1"),(b=M.RK())&&W.j("html5_prefer_trusted_host_on_key_expiration")&&(b.V=!0,(W=b.Z.get(0)?.Z())&&!$g(W)&&b.Z.delete(0)));if(hXq)return M.dK("ost3","1"),!1;W={};return Object.keys(W).length>0?(W.onesie="0",M.handleError(new g.WE("html5.missingapi", W)),!1):!0}; aY=function(M,W){const b=fe();Rm(b,W);return g.Mq(b,Zos(),{yZ:M.yZ(),clientInterface:ol(M)})}; iPL=async function(M,W,b){W.fetchType="onesie";var T=yNt(W,M.getPlayerSize(),M.getVisibilityState());T=new vn(M,T,b);b=await T.fetch();var q={player_response:b};W.loading=!1;M=M.wG.l7;if(T.Uj){for(const [G,V]of T.Uj.entries()){var X=G;const J=V;M.Z.set(X,J,180);X===W.videoId&&(X=J.NA(),W.QE=X)}M.q3=T}for(const [G,V]of T.LL.entries())M.V.set(G,V,180);g.Ub(W,q,!0);if(W.loading||G7(W))return Promise.resolve();M.Z.removeAll();M.V.removeAll();W.QE=[];T={};q="onesie.response";M=0;W.errorCode?(q="auth", T.ec=W.errorCode,T.ed=W.errorDetail,T.es=W.n4||"",M=2):(T.successButUnplayable="1",T.disposed=`${+W.ST()}`,T.afmts=`${+/adaptiveFormats/.test(b)}`,T.cpn=W.clientPlaybackNonce);return Promise.reject(new g.WE(q,T,M))}; rjp=async function(M,W){const b=W.isAd();let T=!b,q=b?1:3;for(let G=0;G0){await WD(5E3);var X=new g.EF("Retrying OnePlatform request",{attempt:G});g.lR(X)}try{await zXs(M,W);return}catch(V){const J=bS(V);X=J.errorCode;const B=M.G(),D=B.j("html5_use_network_error_code_enums")?401:"401";T&&X==="manifest.net.badstatus"&&J.details.rc===D&&(T=!1,G===q-1&&(q+=1));if(G===q-1)return M=ulJ(b,J.details),M.details.backend="op",M.details.originec=X,Promise.reject(M);if(X==="auth"||X==="manifest.net.retryexhausted"|| B.j("embeds_enable_get_player_error_mapping")&&g.Th(M.G()))return Promise.reject(J);M.handleError(J);if(Mm(J.severity))break}}return Promise.reject(ulJ(b,{backend:"op"}))}; zXs=async function(M,W){W.fetchType="gp";var b=M.G(),T=g.ZI(b,W.C());T=T.Z?await T.Z:T.getValue();var q=aY(b,T);const X=yNt(W,M.getPlayerSize(),M.getVisibilityState()),G=g.XN(Sbl);var V=W.C(),J=(0,g.u)(),B=!1;let D="empty";T=0;M.vr("psns");const a={yx:function(E){E.readyState===2&&M.vr("ps_c")}}; b.yZ()&&(a.wC={YU:VD("player",{videoId:String(W.videoId)})});q=await g.SM(q,X,G,void 0,a);M.vr("psnr");if(!W.ST()){q?"error"in q&&q.error?(B=!0,D=`esf:${q.error.message}`,T=q.error.code):q.errorMetadata&&(B=!0,D="its",T=q.errorMetadata.status):B=!0;if(B)return B=0,q=((0,g.u)()-J).toFixed(),J={},J=b.j("html5_use_network_error_code_enums")?{backend:"op",rc:T,rt:q,reason:D,has_kpt:W.EY?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.F("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")? "1":"0",has_page_id:b.pageId?"1":"0",has_token:V?"1":"0",has_vvt:W.Zs?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.Qs||"",token_eq:V===W.C()?"1":"0"}:{backend:"op",rc:`${T}`,rt:q,reason:D,has_kpt:W.EY?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.F("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:b.pageId?"1":"0",has_token:V?"1":"0",has_vvt:W.Zs?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.Qs||"",token_eq:V===W.C()?"1":"0"},W="manifest.net.connect", T===429?(W="auth",B=2):T>200&&(W="manifest.net.badstatus",T===400&&(B=2)),Promise.reject(new g.WE(W,J,B));W.loading=!1;g.Ub(W,{raw_player_response:q},!0);g.Th(W.G())&&q&&q.trackingParams&&w6(q.trackingParams);if(W.errorCode)return T={ec:W.errorCode,ed:W.errorDetail,es:W.n4||""},V="auth",b.j("embeds_enable_get_player_error_mapping")&&g.Th(W.G())&&W.errorCode&&(V=W.errorCode),Promise.reject(new g.WE(V,T,2));if(!W.loading&&!G7(W))return b=W.isAd()?"auth":"manifest.net.retryexhausted",T=W.isAd()?2:1, Promise.reject(new g.WE(b,{successButUnplayable:"1",hasMedia:g.jn(W)?"1":"0"},T))}}; RXG=async function(M,W,b){function T(){return!0} function q(B){B=bS(B);if(Mm(B.severity))return Promise.reject(B);M.handleError(B);return!1} const X=hYy(M.G(),W,M.getPlayerSize(),M.getVisibilityState(),M.isFullscreen()),G=W.isAd(),V=G?1:3;for(let B=0;B0&&(await WD(5E3),J={playerretry:B,playerretrysrc:b},G||(J.recover="embedded"),J=Kg(X,J));if(await OPP(W,J).then(T,q))return}W=G?"auth":"manifest.net.retryexhausted";b=G?2:1;if(!G&&Math.random()<1E-4)try{g.lR(new g.EF("b/152131571",btoa(X)))}catch{}return Promise.reject(new g.WE(W,{backend:"gvi"},b))}; OPP=async function(M,W){function b(J){if(!M.ST()){J=J?J.status:-1;var B=0,D=((0,g.u)()-V).toFixed();D=T.j("html5_use_network_error_code_enums")?{backend:"gvi",rc:J,rt:D}:{backend:"gvi",rc:`${J}`,rt:D};var a="manifest.net.connect";J===429?(a="auth",B=2):J>200&&(a="manifest.net.badstatus",J===400&&(B=2));return Promise.reject(new g.WE(a,D,B))}} M.fetchType="gvi";const T=M.G();var q;(q=AaP(M))?(q={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:q},W=Kg(W,{action_display_post:1})):q={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4};const X={};T.sendVisitorIdHeader&&M.visitorData&&(X["X-Goog-Visitor-Id"]=M.visitorData);const G=cR(T.experiments,"debug_sherlog_username");G&&(X["X-Youtube-Sherlog-Username"]=G);Object.keys(X).length>0&&(q.headers=X);const V=(0,g.u)();q=await gx(wa,W,q).then(void 0,function(J){return b(J.xhr)}); if(!q||!q.responseText)return b(q);M.loading=!1;q=ng(q.responseText);g.Ub(M,q,!0);if(M.errorCode)return Promise.reject(new g.WE("auth",{ec:M.errorCode,ed:M.errorDetail,es:M.n4||""},2));if(!M.loading&&!G7(M))return q=M.isAd()?"auth":"manifest.net.retryexhausted",W=M.isAd()?2:1,Promise.reject(new g.WE(q,{successButUnplayable:"1"},W))}; ulJ=function(M,W){return new g.WE(M?"auth":"manifest.net.retryexhausted",W,M?2:1)}; Bh=function(M,W,b){if(!(M+4&7)){hz(20,W);var T=W[y[13]]}if((M<<1&6)>=4&&(M-5&8)<2){const q=W[y[12]](y[51],12),X=W[y[12]](y[51],q+1);q>0&&X>0?(b[y[16]]=W[y[7]](0,X),W=W[y[7]](X+1)):(b[y[16]]=W,W=y[5]);T=[W]}return T}; Db=async function(M,W,b=!1){const T=M.G();b&&(!g.kj(T)||gF(W)!=="embedded")||W.mw||gF(W)!=="adunit"&&(g.XD(T)||JI(T)||g.dB(T)||g.CL(T)||g.WQ(T)||ol(T)==="WEB_CREATOR")||(b=g.ZI(T,W.C()),b=b.Z?await b.Z:b.getValue(),PYt(M,W,b))}; PYt=async function(M,W,b){try{const X=M.G(),G=aY(X,b);var T=W.G();const V=g.jQ(),J={context:g.LT(W),videoId:W.videoId,racyCheckOk:W.racyCheckOk,contentCheckOk:W.contentCheckOk,autonavState:"STATE_NONE"};gF(W)==="adunit"&&(J.isAdPlayback=!0);T.embedConfig&&(J.serializedThirdPartyEmbedConfig=T.embedConfig);T.UE&&(J.showContentOwnerOnly=!0);W.uZ&&(J.showShortsOnly=!0);V.UY(141)&&(J.autonavState=V.UY(140)?"STATE_OFF":"STATE_ON");if(g.Zk(T)){const E=V.UY(65);b=E!=null?!E:!1;const n=!!g.MZ("yt-player-sticky-caption"); J.captionsRequested=b&&n}const B=T.getWebPlayerContextConfig()?.encryptedHostFlags;B&&(J.playbackContext={encryptedHostFlags:B});var q=J;const D=g.XN(eXy);M.vr("wn_s");T={};X.yZ()&&(T.wC={YU:VD("next",{videoId:String(W.videoId)})});const a=await g.SM(G,q,D,void 0,T);M.vr("wn_r");!a||"error"in a&&a.error||(g.Th(W.G())&&a.trackingParams&&w6(a.trackingParams),g.Ub(W,{raw_watch_next_response:a},!1))}catch(X){}}; x4p=async function(M,W){var b=g.ZI(M.G(),W.C());b=b.Z?await b.Z:b.getValue();d4s(M,W,b)}; d4s=async function(M,W,b){M=M.G();try{const q=aY(M,b);var T={context:g.LT(W),playerRequest:{videoId:W.videoId},disablePlayerResponse:!0};const X=g.XN(oet);b={};M.yZ()&&(b.wC={YU:VD("reel_item_watch",{videoId:String(W.videoId)})});const G=await g.SM(q,T,X,void 0,b);!G||"error"in G&&G.error||g.Ub(W,{raw_reel_item_watch_response:G})}catch(q){}}; cjQ=function(M,W){M.vr("vir");M.vr("ps_s");As("vir",void 0,"video_to_ad");W=Ajg(M,W);W.then(function(){M.vr("virc");As("virc",void 0,"video_to_ad");M.vr("ps_r");As("ps_r",void 0,"video_to_ad")},function(){M.vr("virc"); As("virc",void 0,"video_to_ad")}); return W}; Eg=function(){const M=QFq();return!(!M||M==="visible")}; ges=function(M){const W=Q9S();W&&document.addEventListener(W,M,!1)}; s9J=function(M){const W=Q9S();W&&document.removeEventListener(W,M,!1)}; Q9S=function(){let M;if(document.visibilityState)M="visibilitychange";else{if(!document[zd+"VisibilityState"])return"";M=zd+"visibilitychange"}return M}; pMQ=function(M){wML=M}; YbP=function(M){nl=M}; LTS=function(M){var W=M.Ui;M=M.videoData;const b=tx(W,M);W.j("html5_disable_client_autonav_cap_for_onesie")||b.compose(Z7(W,M));return b}; Yg=function(M,W){yo(M,W.reason,W.Z.info,W.source,W.token)}; V0t=function(M,W){M.wG.LK()||(M.dK("sgap",{f:W}),M.wG.clearQueue(!1,W==="pe"))}; MYg=function(M){M.mediaElement&&(M.WY?(Ug(M),M.Jg(),$8Q(M,!1)):(M.videoData.BY&&M.videoData.BY.A(),M.mediaElement.stopVideo()),M.playVideo())}; bm=function(M){return M.j("html5_disable_video_player_initiated_seeks")&&Sz(M.videoData)}; kO=function(M,W){M.mE&&Cl(M);M.mE=new g.Ap(W*1E3,0x7ffffffffffff);M.mE.namespace="endcr";M.addCueRange(M.mE)}; Cl=function(M){M.removeCueRange(M.mE);M.mE=null}; v1=function(M){if(M.videoData.B&&M.videoData.B.Z()){var W=Kl(M);if(M.loader&&(M=M.loader,!M.ST()))if(M.policy.Z){var b=M.S;if(W.isLocked()&&b.Z.B||b.V===void 0||!W.equals(b.V)){b=M.S.V;fYs(M.S,W);var T;if(T=W.isLocked()&&W.reason==="m"){T=M.S;var q=T.A?.info.W().qualityOrdinal;T=T.sY?!0:T.A?W.Z!==q?!0:!T.Z.B||T.iN.vg&&T.Z.Z===T.A.info.itag?!1:!0:!1}q=M.policy.ek&&W.reason==="l";b=b.Z>W.Z&&W.reason==="b";T||q||b?(M.qK.fW({reattachOnConstraint:T?"u":q?"drm":"perf",lo:W.V,up:W.Z}),M.policy.vg||(M.S.Z.B= !1)):(M.policy.vg&&(M.S.Z.B=!1),kg(M))}}else!jjQ(M.Z,W)&&M.videoTrack&&(q=M.Z.Z,Mz(M,Gig(M.Z,W)),TL(M),b=W.isLocked()&&W.reason==="m"&&M.Z.O,T=M.policy.ek&&W.reason==="l"&&fE(M.videoTrack),W=q.Z>W.Z&&W.reason==="b",q=M.Z.jT&&!cE(),b||T||W||q?M.qK.fW({reattachOnConstraint:b?"u":T?"drm":q?"codec":"perf"}):kg(M))}}; Ll=function(M,W=!0){M.uV.Ri&&!M.videoData.backgroundable&&M.mediaElement&&!M.d0()&&(M.isBackground()&&M.mediaElement.lV()?(M.dK("bgmobile",{suspend:1}),M.o3(!0,!0)):!M.isBackground()&&W&&m_(M)&&M.dK("bgmobile",{resume:1}))}; lm=function(M){if(!HM(M.videoData))return NaN;let W=0;M.loader&&M.videoData.Z&&(W=R9(M.videoData)?M.loader.sM.Hx()||0:M.videoData.Z.BY);return(0,g.u)()/1E3-M.A1()-W}; W3y=function(M,W){if(M.playerType===2||M.uV.h6)W.PC=!0;var b=XrJ(W.XX,W.AV,M.uV.A,M.uV.D);b&&(W.adFormat=b);M.playerType===2&&(W.eO=!0);if(M.isFullscreen()||M.uV.A)b=g.MZ("yt-player-autonavstate"),W.autonavState=b||(M.uV.A?2:M.videoData.autonavState);W.endSeconds&&W.endSeconds>W.startSeconds&&kO(M,W.endSeconds)}; tb=function(M){M.loader&&(M.loader.dispose(),M.loader=null,Xn(M.Ig,null));M.Aj()?beG(M):M.Jg()}; XfL=function(M){if(!M.playerState.Z(128))if(M.videoData.isLoaded(),M.xa=g.Vh(M.videoData.jG),g.jn(M.videoData)){M.pv.tick("bpd_s");Zb(M).then(()=>{M.pv.tick("bpd_c");if(!M.ST()){M.ZI&&(M.Rg(jK(jK(M.playerState,512),1)),m_(M));var b=M.videoData;b.endSeconds&&b.endSeconds>b.startSeconds&&kO(M,b.endSeconds);M.Mm.finished=!0;IY(M,"dataloaded");M.fD.t6()&&Nf(M);Ljt(M.Ui,M.t_)}}); M.j("html5_log_media_perf_info")&&M.dK("loudness",{v:M.videoData.xs.toFixed(3)},!0);var W=M.mediaElement?.BP();if(W&&"disablePictureInPicture"in W&&M.uV.Ug)try{W.disablePictureInPicture=M.uV.x_&&!M.videoData.backgroundable}catch(b){g.lR(b)}TCG(M);M.Fb=new qAt(M.videoData)}else IY(M,"dataloaded")}; jms=function(M){const W=M.videoData;cjQ(M,M.PP).then(void 0,b=>{M.videoData!==W||W.ST()||(b=bS(b),b.errorCode==="auth"&&M.videoData.errorDetail&&M.videoData.errorDetail!=="7"?M.J1(b.errorCode,2,unescape(M.videoData.errorReason),$B(b.details),M.videoData.errorDetail,M.videoData.n4||void 0):M.handleError(b))})}; H1=function(M){return g.XD(M.uV)&&M.videoData.isLivePlayback&&(!M.uV.j("html5_allow_multiview_tile_preload")||!M.videoData.x_)}; Zb=function(M){tb(M);M.t_=null;const W=j9J(M.uV,M.videoData,M.d0());M.Sx=W;M.Sx.then(b=>{GWS(M,b)},b=>{M.ST()||(b=bS(b),M.visibility.isBackground()?(fl(M,"vp_none_avail"),M.Sx=null,M.Mm.reset()):(M.Mm.finished=!0,M.J1(b.errorCode,b.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",$B(b.details))))}); return W}; TCG=function(M){iY(M.videoData,"html5_set_debugging_opt_in")&&(M=g.jQ(),M.UY(183)||(Vn(183,!0),M.save()))}; IY=function(M,W="dataupdated"){M.publish("internalvideodatachange",W,M.videoData)}; GWS=function(M,W){if(!M.ST()&&!W.videoData.ST()){M.t_=W;vea(M.Ig,M.t_);if(M.videoData.isLivePlayback){var b=VYQ(M.wG.l7,M.videoData.videoId)||M.loader&&!isNaN(M.loader.yz);b=M.j("html5_onesie_live")&&b;bm(M)||M.videoData.Lp>0&&!R9(M.videoData)||b||M.seekTo(M.nN(),{jR:"videoplayer_playbackData",seekSource:18})}if(M.videoData.B.Z()){if(B8a(M.videoData)){M.J1("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",$B({missabrurl:1}));return}M.loader?g.lR(Error("Duplicated Loader")):(b=g.TO(M.uV.experiments,"html5_onesie_defer_content_loader_ms"))&& M.vM()&&VYQ(M.wG.l7,M.videoData.H5)?g.RS(()=>{M.ST()||M.loader||RY(M)},b):RY(M)}else!M.videoData.B.Z()&&Ye(M.videoData)&&M.g6(new rc(M.videoData.videoId||"",4)); M.vH();khL(W).then(()=>{const T={};M.zV(T);M.uV.jW()&&M.j("html5_log_media_perf_info")&&M.dK("av1Info",T);v1(M)})}}; m_=function(M,W=!1){if(!M.mediaElement||!M.videoData.B)return!1;var b=Jpt(M,W),T=M.mediaElement.lV();let q=!1;T&&T.equals(b)||(BCl(M,b),q=!0);M.playerState.Z(2)||laL(M.Ig,W);a:{W=q;if(Sz(M.videoData)){if(!M.videoData.Xy())break a}else if(!g.z7(M.videoData))break a;if(M.mediaElement)if((b=M.videoData.S)&&M.mediaElement.C()){T=M.mediaElement.BP();if(M.n7)if(T!==M.n7.element)Ug(M);else if(W&&b.flavor==="fairplay"&&!nU())Ug(M);else break a;if(M.j("html5_report_error_for_unsupported_tvos_widevine")&&nU()&& b.flavor==="widevine")M.J1("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{M.n7=new D8P(T,M.videoData,M.uV,M.mediaElement,M.Ej);M.n7.subscribe("licenseerror",M.IJ,M);M.n7.subscribe("qualitychange",M.Yf,M);M.n7.subscribe("heartbeatparams",M.e0,M);M.n7.subscribe("keystatuseschange",M.ob,M);M.n7.subscribe("ctmp",M.dK,M);for(const X of M.A4.keys)W=M.A4.get(X),M.n7.Sq(W);M.j("html5_eme_loader_sync")||M.A4.removeAll()}}else M.J1("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", "trg.updatedrm")}return q}; RY=function(M){var W=M.videoData.Z,b={cpn:M.videoData.clientPlaybackNonce,c:M.uV.Z.c,cver:M.uV.Z.cver};for(const [V,J]of Object.entries(b)){b=V;var T=J;for(var q of Object.values(W.Z))q.Vc.O(b,T);W.gK?.O(b,T)}q=M.uV;b=M.videoData;T=M.PP;W=new g.aAq(q);var X=E$g({hasSubfragmentedFmp4:b.hasSubfragmentedFmp4,XJ:b.XJ});W.W=X;W.yz=b.maxReadAheadMediaTimeMs/1E3||W.yz;T.A.Hx()===T.policy.Z?W.OY=10:W.OY=b.minReadAheadMediaTimeMs/1E3||W.OY;W.Ha=b.readAheadGrowthRateMs/1E3||W.Ha;b.aY&&(W.S=!0,W.X5=!0,q.experiments.hT().Z.UY(Efq)&& awL(b)===3&&(W.S6=!0));W.RN=!QA();g.XD(q)||!QA()?(W.An=8388608,W.EY=524288,W.Mh=5,W.xk=1048576,W.wk=1.5,W.sB=4587520,yD()&&(W.sB=786432),W.D*=1.1,W.O*=1.1,W.zm=!0):q.V&&(W.D*=1.3,W.O*=1.3);g.XH&&g.Df("crkey")&&(X=q.Z.cmodel==="CHROMECAST/ANCHOVY",W.An=20971520,W.EY=1572864,X&&(W.sB=812500,W.k_=1E3,W.cC=5,W.xk=2097152));g.HR&&(W.zm=!0);q.supportsGaplessAudio()||(W.mw=!1);Rl&&(W.aT=!0);W.EX=q.j("html5_peak_shave");b.Ip()&&q.j("html5_disable_peak_shave_for_onesie")&&(W.EX=!1);X=b.Z?.A();if(R9(b)){W.GN= !0;W.JX||(W.Tr=!0);W.oT=!0;W.Dc=!0;W.Vl=!0;if(b.latencyClass==="ULTRALOW"||b.latencyClass==="LOW"&&!q.j("html5_disable_low_pipeline"))W.Uc=2,W.QE=4;W.ub=b.defraggedFromSubfragments;g.PM(b)&&(W.bV=!1);W.Zl=g.Tb(q)}b.isAd()&&(W.nx=0,W.hD=0);W.vp=q.j("html5_ultra_low_latency_subsegment_readahead")&&b.latencyClass==="ULTRALOW";W.B=q.jW();T.V.A=R9(b)?.5:0;b.isLivePlayback&&(W.Vp=g.TO(q.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,W.Lp=!1);b.Xy()&&(W.Lp=!1);T=!q.j("html5_sabr_keep_all_quality_constraints")&& !b.Xy();const G=q.j("html5_sabr_remove_all_quality_constraints_for_drm_traffic")&&b.Xy();W.Cs=T||G;W.q1=hj(b);xe(b)&&(W.vp=!0,b.latencyClass==="LOW"?W.WP=g.TO(q.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):b.latencyClass==="ULTRALOW"&&(W.WP=g.TO(q.experiments,"html5_jumbo_ull_subsegment_readahead_target")),W.yI=!0);b.Me()&&(W.qA=1.3);W.aT=W.aT||b.Mh;W.L3=(W.L3||b.L3)&&q.D;W.A5=b.W;q.jW()&&(W.vP=!0);b.W&&!X&&(W.CS=!0);b.W&&b.isAd()&&(W.D*=1.6,W.O*=1.6);Ye(b)&&(W.A=b.videoId,W.Ia=!0, W.PC=100,b.Eh&&b.Eh.length>0&&(W.XP=b.Eh));W.ek=b.Qu;W.AD=rp(q,{},b.B||void 0,tj(b));W.wK=lY(b)&&(g.dB(q)||g.CL(q));Sz(b)&&(W.C=!0,W.cV=q.j("html5_estimate_live_partial_slice_duration"),g.XD(q)&&!g.EL()&&q.j("html5_force_audio_to_cover_video_keyframe")?W.XX=!1:W.XX=!0,W.Tk||b.isLivePlayback||!q.j("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(W.Ug=!0,W.s7=g.TO(q.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),q.j("html5_sabr_report_partial_segment_estimated_duration")&& (W.Ud=!0),W.Z=!0,W.BC=q.j("html5_trigger_loader_when_idle_network"),W.VI=q.j("html5_sabr_parse_live_metadata_playback_boundaries"),W.yC=q.j("html5_consume_onesie_next_request_policy_for_sabr"),W.LA=q.j("html5_sabr_report_next_ad_break_time"),W.OE=q.j("html5_log_high_res_buffer_timeline")&&q.jW(),W.Nt=q.j("html5_remove_stuck_slices_beyond_max_buffer_limits"),W.kX=q.j("html5_gapless_sabr_btl_last_slice")&&LP(b),W.XI=q.j("html5_reset_last_appended_slice_on_seek")&&LP(b),R9(b)?(W.zL=!0,W.U7=q.j("html5_disable_variability_tracker_for_live"), W.jT=!0,q.j("html5_simplified_backup_timeout_sabr_live")&&(W.sj=!0,W.k_=W.Xn)):W.fv=q.j("html5_probe_request_on_sabr_request_progress"),W.mJ=q.j("html5_serve_start_seconds_seek_for_post_live_sabr"),W.x_=q.j("html5_flush_index_on_updated_timestamp_offset"),W.X=Sz(b),W.Eh=q.j("html5_ignore_partial_segment_from_live_readahead"),q.j("html5_include_partial_segment_for_jumbo_ll")&&xe(b)&&(W.Eh=!1),W.lc=q.j("html5_use_non_active_broadcast_for_post_live"),W.gK=q.j("html5_use_centralized_player_time"),W.Ds= q.j("html5_log_centralized_player_time"),W.U1=q.j("html5_consume_onesie_sabr_seek"),W.Zs=q.j("html5_enable_sabr_seek_loader_refactor"),b.enableServerStitchedDai&&(W.V=!0,W.Fx=q.j("html5_reset_server_stitch_state_for_non_sabr_seek"),W.WC=q.j("html5_remove_ssdai_append_pause")&&!b.FD(),W.m$=q.j("html5_ssdai_log_ssevt_in_loader_timers")),W.IG=q.jW(),W.latencyClass=b.latencyClass,W.pZ=!b.Me()&&q.j("html5_prebuffer_instream_media_vod"));W.s2=g.VAL(b);ZQ(q.S,iS.BITRATE)&&(W.sB=NaN);if(T=g.TO(q.experiments, "html5_request_size_max_kb"))W.xk=T*1024;if(q.S.V)W.u3="; "+iS.EXPERIMENTAL.name+"=allowed";else if(q.j("html5_enable_cobalt_tunnel_mode")&&g.EL()){const {name:V,valid:J}=iS.TUNNELMODE;W.u3=`; ${V}=${J}`}q=b.serverPlaybackStartConfig;q?.enable&&q?.playbackStartPolicy&&(W.RV=!0,Fw(W,q.playbackStartPolicy,2));q=nfQ(M);M.A4.removeAll();a:{b=M.wG.l7;if(T=M.videoData.videoId)if(X=b.Z.get(T)){b.Z.remove(T);b=X;break a}b=void 0}M.loader=new ypS(M,M.PP,W,M.videoData.Z,M.videoData.B,Kl(M),q,M.videoData.enableServerStitchedDai, b,M.videoData.gK);W=M.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&M.videoData.isLivePlayback&&M.vM()?!0:M.ZI&&H1(M);M.loader.initialize(M.getCurrentTime(),Kl(M),W);M.videoData.probeUrl&&(M.loader.wK=M.videoData.probeUrl);!M.xa.length&&!M.ZI||M.videoData.cotn||M.loader?.sY(!1);Xn(M.Ig,M.loader);M.Cv&&(Bpt(M.loader,M.Cv),M.dK("sdai",{sdl:1}));M.videoData.cP()&&(M=M.loader,M.policy.dS=M.policy.Fi)}; Nf=function(M){M.ST();if(!M.fD.finished&&M.Mm.finished&&!M.playerState.Z(128)&&!M.xa.length){if(!M.b$.started){var W=M.b$;W.started=!0;W.sync()}if(!M.V1()){M.loader&&(M.hT().Z.UY(cn)?W=M.loader.XX(!0)>0:(W=M.loader.timing,W=!!W.V&&!!W.B),M.hF=W);M.fD.finished||(M.fD.finished=!0);W=M.j("html5_onesie_live")&&M.loader&&!isNaN(M.loader.yz);!M.videoData.isLivePlayback||M.videoData.Lp>0&&!R9(M.videoData)||W||bm(M)||(M.seekTo(Infinity,{jR:"videoplayer_readying",seekSource:18}),M.isBackground()&&(M.sG=!0)); W=M.Df;if(W.qoe){W=W.qoe;const T=W.provider.videoData,q=W.provider.uV;for(var b of q.Sw)Pn(W,b);if(W.provider.j("html5_enable_qoe_cat_list"))for(const X of T.DZ)Pn(W,X);else T.Sw&&Pn(W,W.provider.videoData.Sw);T.Me()&&(b=T.Z,R9(T)&&Pn(W,"manifestless"),b&&al(b)&&Pn(W,`live-segment-${al(b).toFixed(1)}`));Sz(T)?Pn(W,"sabr"):W.cf(Fl(T));if(pP(T)||T.FD())T.FD()&&Pn(W,"ssa"),Pn(W,"lifa");Za(T)&&Pn(W,"cdm");T.gatewayExperimentGroup&&(b=T.gatewayExperimentGroup,b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? b="spkadtrt":b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(b="spkadctrl"),Pn(W,b));q.gK!=="yt"&&W.Z.set("len",[T.lengthSeconds.toFixed(2)]);T.cotn&&!Ye(T)&&W.nf(!0);q.jW()&&(b=I5P())&&W.dK("cblt",{m:b});q.j("html5_log_screen_diagonal")&&W.dK("cbltdiag",{v:window.H5vccScreen?.GetDiagonal?window.H5vccScreen.GetDiagonal():0})}M.publish("playbackready");iA("pl_c",M.pv.timerName)||(M.pv.tick("pl_c"),As("pl_c",void 0,"video_to_ad"));iA("pbr",M.pv.timerName)||(M.pv.tick("pbr"),As("pbr",void 0,"video_to_ad"))}}}; fl=function(M,W){M.playerState.Z(128)||(M.Rg(BK(M.playerState,1028,9)),M.dK("dompaused",{r:W}),M.publish("onAutoplayBlocked"))}; g.xO=function(M){const W=Kl(M);return nb(W)||!M.t_?null:g.pt(M.t_.Z.videoInfos,b=>W.A(b))}; yo=function(M,W,b,T,q){var X=M.Df;const G=M.videoData;G.V=b;const V=g.xO(M);b=new Fn(b,W,V?V.itag:"",T,q);M.uV.experiments.FX("html5_refactor_sabr_video_format_selection_logging")?M.TB=b:X.qoe&&A5Q(X.qoe,b);X=M.Ui;X.V=0;X.Z=0;M.publish("internalvideoformatchange",G,W==="m")}; Kl=function(M){if(M.t_){var W=M.Ui;var b=M.t_;M=M.v1();let T=Ejy(W);if(nb(T)){if(T=W.dk(b).compose(njl(W,b)).compose(UTq(W,b)).compose(tx(W,b.videoData)).compose(Z7(W,b.videoData,b)).compose(I8(W,b)).compose(Ha(W,b)),nb(M)||W.j("html5_apply_pbr_cap_for_drm"))T=T.compose(Cbt(W,b))}else W.j("html5_perf_cap_override_sticky")&&(T=T.compose(I8(W,b))),W.j("html5_ustreamer_cap_override_sticky")&&(T=T.compose(Cbt(W,b)));T=T.compose(Ha(W,b));W=b.videoData.FY.compose(T).compose(b.videoData.hH).compose(M)}else W= ll;return W}; U8y=function(M){const W="loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");for(const b of W)M.R7.J(M.mediaElement,b,M.nJ,M);M.uV.FY&&M.mediaElement.C()&&(M.R7.J(M.mediaElement,"webkitplaybacktargetavailabilitychanged",M.SV,M),M.R7.J(M.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",M.i6,M))}; beG=function(M){if(M.WY)if(M.Ez(),M.WY.W)try{M.uV.jW()&&M.dK("rms",{l:"vprms",sr:M.Aj(),rs:M.WY.B()}),M.WY.clear(),M.mediaElement?.fv(M.WY),M.WY=null}catch(b){var W=new g.EF(`Error while clearing Media Source in VideoPlayer: ${b.name}, ${b.message}`);W=bS(W);M.handleError(W);M.Jg()}else M.Jg()}; Ug=function(M){M.n7&&(M.n7.dispose(),M.n7=null)}; C7g=function(M){M.mediaElement&&M.mediaElement.d0()&&(M.Sj=(0,g.u)());M.uV.xi?g.RS(()=>{im(M)},0):im(M)}; im=function(M){if(!M.WY?.Bc()){if(M.mediaElement)try{M.Ge=M.mediaElement.playVideo()}catch(W){fl(M,`err.${W}`)}if(M.Ge){const W=M.Ge;W.then(void 0,b=>{if(!(M.playerState.Z(4)||M.playerState.Z(256)||M.Ge!==W||b&&b.name==="AbortError"&&b.message&&b.message.includes("load"))){let T="promise";b&&b.name&&(T+=`;m.${b.name}`);fl(M,T);M.c6=!0;M.videoData.WP=!0}})}}}; $8Q=function(M,W=!1){if(M.WY)return M.WY.A;kWl(M,W);return M.dT()?.yz()||null}; Jpt=function(M,W=!1){let b=null;M.videoData.B?.Z()?(b=$8Q(M,W),M.loader?.resume()):(tb(M),M.videoData.BY&&(b=M.videoData.BY.V()));return b}; K3t=function(M,W){if(W.Z.video.quality==="auto"&&W.getInfo().B()&&M.videoData.bV)for(const b of M.videoData.bV)if(b.getHeight()===M.Uf&&b.Z.video.quality!=="auto")return b.getInfo();return W.getInfo()}; vft=function(M){return!!(M.j("html5_native_audio_track_switching")&&g.R_&&M.videoData.V?.B())}; m8t=function(M){if(!vft(M))return!1;M=M.mediaElement?.audioTracks();return!!(M&&M.length>1)}; lAt=function(M){const W=L3Q(M);if(W){var b=Ab[W]||W;return M.videoData.getAvailableAudioTracks().find(T=>T.r9.getName()===b)}}; L3Q=function(M){if(M=M.mediaElement?.audioTracks())for(let W=0;Wq.getLanguageInfo().id===T)); if(M.uV.experiments.FX("enable_audio_description_setting")&&g.jQ().UY(198))for(const q of b)if(q.S){W=q;break}M.hT().Z.UY(Zeq)&&M.videoData.cotn&&(W=b.find(q=>!!q.C)); W||(M=M.getAudioTrack(),W=M.r9.isDefault?void 0:M);return W}; kWl=function(M,W=!1){let b;try{g.EL()&&M.videoData.LV()&&kCQ(M.mediaElement),b=M.mediaElement.dT(M.Bh(),M.Lj())}catch(T){if(va(M.qV,"html5.missingapi",{updateMs:"1"}))return;console.error("window.URL object overwritten by external code",T);M.J1("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}M.Wv(b,!1,!1,W)}; IAs=function(M,W=!1){if(M.loader){M.videoData.enableServerStitchedDai&&nZs(M.loader);const b=M.getCurrentTime()-M.Ga();M.loader.seek(b,{CB:W}).JD(()=>{})}else RY(M)}; NCt=function(M,W,b=!1,T=!1){!M.WY||W&&M.WY!==W||(W=M.getDuration(),!W&&R9(M.videoData)&&(W=25200,M.j("html5_use_centralized_player_time")&&(W=46800)),M.WY.isView?W>M.WY.getDuration()&&M.WY&&(M.WY.wI(W),M.loader?.Y9(W)):M.WY&&(M.WY.wI(W),M.loader?.Y9(W)),M0l(M.loader,M.WY,b,T),M.publish("mediasourceattached"))}; Het=function(M,W){if(M.uV.jW()&&M.mediaElement){const b=M.mediaElement.qd();b.omt=(M.mediaElement.getCurrentTime()+M.Ga()).toFixed(3);b.ps=M.playerState.state.toString(16);b.rt=(g.u3(M.Df.provider)*1E3).toFixed();b.e=W;M.EP[M.df++%5]=b}}; fAt=function(M){if(g.Df("cobalt")&&g.Df("nintendo switch")){var W=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;M.dK("nxdock",{d:W})}}; RUL=function(M){g.FV(M.Yb);zT(M)||(M.Yb=g.ra(()=>zT(M),100))}; zT=function(M){var W=M.mediaElement;W&&M.sP&&!M.videoData.D&&!iA("vfp",M.pv.timerName)&&W.B()>=2&&!W.isEnded()&&eA(W.O1())&&M.pv.tick("vfp");return(W=M.mediaElement)&&!M.videoData.D&&W.getDuration()>0&&(W.isPaused()&&W.B()>=2&&eA(W.O1())&&(iA("pbp",M.pv.timerName)||M.pv.tick("pbp"),!M.videoData.fv||M.ZE||W.isSeeking()||(M.ZE=!0,M.publish("onPlaybackPauseAtStart"))),W=W.getCurrentTime(),o8(M.Od,W))?(M.d4(),!0):!1}; um=function(M,W){M.uV.j("html5_log_rebuffer_reason")&&(W={r:W,lact:EK()},M.mediaElement&&(W.bh=$a(M.mediaElement)),M.dK("bufreason",W))}; rpt=function(M){M.Df.onProgress();if(HM(M.videoData)&&Date.now()>M.Of+6283){if(M.j("html5_unified_live_latency_reporting")){var W=M.Df;W.qoe&&r5Q(W.qoe)}else!M.isAtLiveHead()||M.videoData.Z&&J$(M.videoData.Z)||(W=M.Df,W.qoe&&r5Q(W.qoe));W=g.Tb(M.uV);const b=M.j("html5_always_log_rawlat");(W||b)&&M.dK("rawlat",{l:B1(M.wR,"rawlivelatency").toFixed(3)});M.Of=Date.now()}M.videoData.V&&M.videoData.V.B()&&(W=M.nH())&&W.videoHeight!==M.Uf&&(M.Uf=W.videoHeight,yo(M,"a",K3t(M,M.videoData.BY)))}; x8p=function(M){if(M.uV.jW()){M.EP.sort((W,b)=>+W.rt-+b.rt); for(const W of M.EP)M.dK("vpe",Object.assign({t:W.rt},W));M.EP=[];M.df=0}}; BCl=function(M,W){M.pv.tick("vta");As("vta",void 0,"video_to_ad");M.getCurrentTime()>0&&Lct(M.Ig,M.getCurrentTime());M.mediaElement.activate(W);M.WY&&Kv(4);!M.videoData.D&&M.playerState.isOrWillBePlaying()&&M.DH.start();vft(M)&&(W=M.mediaElement?.audioTracks())&&(W.onaddtrack=()=>{tYL(M)},W.onremovetrack=()=>{tYL(M)},W.onchange=()=>{M.publish("internalaudioformatchange",M.videoData,!0)})}; SN=function(M,W,b){const T=M.api.getCurrentTime()*1E3{M.api.playVideo();P1(M)}); Og("pause",()=>{M.api.pauseVideo();P1(M)}); Og("seekbackward",()=>{M.api.seekBy(-5*M.api.getPlaybackRate());P1(M)}); Og("seekforward",()=>{M.api.seekBy(5*M.api.getPlaybackRate());P1(M)}); Og("seekto",W=>{W=W.seekTime;W!=null&&M.api.seekTo(W);P1(M)})}; P1=function(M){M.api.j("web_reset_lact_on_media_actions")&&M.api.updateLastActiveTime()}; uSt=function(M,W){for(const b of W){W=Number(b.playbackRelativePosition?.utcTimeMs)/1E3;const T=W+Number(b.duration?.seconds),q=`composite_embargo_${W}`;if(b.onEnter){const X=b.onEnter.filter(M.A);X.length&&(M.V.set(q,X),M.api.addUtcCueRange(q,W,T,"compositeembargo",!1))}}}; SAl=function(M,W){M.Z?.id!==W?.id&&(M.Z&&(M.V.delete(M.Z.id),M.api.Ng([M.Z],1)),M.Z=W)}; Oea=function(M){M=M?.qualityDetails||[];return g.lQ(M)&&!Array.isArray(M)?M:M.reduce((W,{key:b,value:T})=>{b&&T&&(W[b]=T);return W},{})}; P7q=function(M,W,b){const T=[],q=W?156595:151874;for(const G of M){var X=G.video;M={formatId:G.id,qualityLabel:X.qualityLabel,quality:X.quality,isPlayable:W};if(X=b[X.qualityLabel])M.paygatedQualityDetails={paygatedIndicatorText:X.paygatedIndicatorText,endpoint:X.endpoint,veType:q,trackingParams:X.trackingParams};T.push(M)}return T}; d8L=function(M){eN()&&(M.pv=M.api.r0(),M.Z=new tI,M.B=2,M.pv.Yh("pt_pish"),window.requestIdleCallback?window.requestIdleCallback(()=>{eUt(M)}):eUt(M))}; eN=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; eUt=function(M){if(eN()){M.pv=M.api.r0();M.pv.Yh("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:868618676952}).then(W=>{M.V=W;M.Z?.resolve();M.pv.Yh("pt_pif")}).catch(W=>{dc(W,"player_start"); M.pv.Yh("pt_pie");M.Z?.reject(W)})}catch(W){dc(W,"player_start_catch"),M.api.dK("pfes",{}),M.Z?.reject(W)}}}; dc=function(M,W){M.message&&g.lR(Error(`${W}_${M.message}`))}; ofL=function(M,W){if(M.V){var b=W.videoId;M.B=3;M.pv.Yh("pt_ms");try{M.V.requestToken(b).then(T=>{M.pv.Yh("pt_mf");if(T=MT(T))W.yC={Tn:T}}).catch(T=>{M.pv.Yh("pt_me"); dc(T,"player_generate");M.handleError(T,W)})}catch(T){dc(T,"player_generate_catch"),M.handleError(T,W)}}}; cpt=function(M){const W=M.api.getVideoData();M.button.eW(W.xQ)}; Qmg=function(M,W){nL(M.api.G())&&(W?M.S.show():M.S.hide())}; smQ=function(M){M.A0&&T>0&&(q.width+=T,g.iq(W.element,"width",`${q.width}px`)));M.size=q}}; Wiy=function(M){M.B&&g.oP(M.B);M.A&&g.oP(M.A)}; pl=function(M,W,b,T){Wiy(M);W&&(W.unsubscribe("size-change",M.Zq,M),W.unsubscribe("back",M.Xo,M));b.subscribe("size-change",M.Zq,M);b.subscribe("back",M.Xo,M);if(M.Ta){g.pY(b.element,T?"ytp-panel-animate-back":"ytp-panel-animate-forward");b.cY(M.content);b.focus();M.element.scrollLeft=0;M.element.scrollTop=0;var q=M.size;M8q(M);g.sS(M.element,q);M.B=new g.d9(()=>{bjG(M,W,b,T)},20,M); M.B.start()}else b.cY(M.content),W&&W.detach()}; g.$T=function(M,W){const b=M.Z[M.Z.length-1];b!==W&&(M.Z.push(W),pl(M,b,W))}; bjG=function(M,W,b,T){M.B.dispose();M.B=null;g.pY(M.element,"ytp-popup-animating");T?(g.pY(W.element,"ytp-panel-animate-forward"),g.Mw(b.element,"ytp-panel-animate-back")):(g.pY(W.element,"ytp-panel-animate-back"),g.Mw(b.element,"ytp-panel-animate-forward"));g.sS(M.element,M.size);M.A=new g.d9(()=>{g.Mw(M.element,"ytp-popup-animating");W.detach();g.WN(W.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);M.A.dispose();M.A=null},250,M); M.A.start()}; qhL=function(M,W,b){const T=W?.text?.simpleText;T&&(b=T_J(M,b,T,W?.icon,W?.secondaryIcon),W.navigationEndpoint&&b.listen("click",()=>{g.q8(M.L,"innertubeCommand",W.navigationEndpoint);M.hide()},M))}; XJL=function(M,W,b){const T=W?.text?.simpleText;T&&T_J(M,b,T,W?.icon).listen("click",()=>{W?.icon?.iconType==="HIDE"?M.L.publish("featuredproductdismissed"):W.serviceEndpoint&&g.q8(M.L,"innertubeCommand",W.serviceEndpoint);M.hide()},M)}; T_J=function(M,W,b,T,q){W=new g.M3(g.FS({},[],!1,!!q),W,b);q&&W.updateValue("secondaryIcon",j1L(q));W.setIcon(j1L(T));g.t(M,W);M.ul.OB(W,!0);return W}; j1L=function(M){if(!M)return null;switch(M.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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 nu();case "HIDE":return{K:"svg",Y:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"g",U:[{K:"path",Y:{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 Cu()}}; WT=function(M){M.isInitialized&&(M.enabled=M.isVisible,M.BY=M.isVisible,c1(M),M.V(),M.thumbnailImage.eW(M.isVisible),M.shouldHideDismissButton||M.dismissButton.eW(M.isVisible),M.shouldShowOverflowButton&&M.overflowButton.eW(M.isVisible))}; DMG=function(M,W,b){if(b){var T="";GVa(M,W)&&(T=W,M.api.G().jT=W);T&&V8L(M,T)&&(AEa(M.api,T),Ro(IU(M.api.G(),M.api.getVideoData()?.C()),q=>{var X=T;Jgq(q)!==X&&B_J(M,bj(q),{stringValue:X})}))}}; Ty=function(M){Gm()?.size&&Ro(IU(M.api.G(),M.api.getVideoData()?.C()),W=>{(W=Jgq(W))&&V8L(M,W)&&(M.api.G().jT=W)})}; EHs=function(M,W){x$(Ro(Ro(M.M1(),b=>Y0t(b,[bj(W)])),b=>{if(b)for(const {key:T, value:q}of b)T&&q&&(att([{settingItemId:T,settingOptionValue:q}]),Ty(M))}),()=>{M.Z=!0})}; GVa=function(M,W){M=M.api.getAvailableAudioTracks();for(const b of M)if(b.getLanguageInfo().getId()===W)return b;return null}; V8L=function(M,W){return W.split(".")[0]!==""&&M.api.getVideoData()?.OE()&&!0}; Jgq=function(M){{M=bj(M);const W=Gm();M=W?W.get(M):void 0}return M&&M.stringValue?M.stringValue:""}; B_J=function(M,W,b){att([{settingItemId:W,settingOptionValue:b}]);Ro(M.M1(),T=>{MmJ(T,W,b)})}; bj=function(M){let W=(484).toString();M&&(W=(483).toString());return W}; att=function(M){let W=Gm();W||(W=new Map);for(const b of M)W.set(b.settingItemId,b.settingOptionValue);M=JSON.stringify(Object.fromEntries(W));g.$u("yt-player-user-settings",M,2592E3)}; nHQ=function(M){if(M.D){const W=M.options[M.D];W.element.getAttribute("aria-checked");W.element.setAttribute("aria-checked","false");M.D=null}}; UMq=function(M,W){g.wc(M.KN);const b={};let T=!1;for(let X=0;X1?2:1,M.B.height=M.heightPx* b,M.B.style.height=`${M.heightPx}px`,M.V.scale(1,b)));for(var q of W){W=M;var X=M.index;for(b=0;b+2{T.setAttribute("d",Rut(X,G,V))},200)}; Fip=function(M,W){return M.B===void 0?!1:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===5E3?M.B===72:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===1E4?M.B===74:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===5E3?M.B===71:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===1E4?M.B===73:!1}; ijJ=function(M){M.timelyActions&&(M.S=M.timelyActions.reduce((W,b)=>{if(b.cueRangeId===void 0)return W;W[b.cueRangeId]=0;return W},{}))}; ar=function(M){M.Zs&&clearTimeout(M.Zs);M.Zs=void 0;M.gK=!1}; Ek=function(M,W){if(M.timelyActions)for(const b of M.timelyActions)if(b.cueRangeId===W)return b}; huq=function(M,W){if((M=Ek(M,W))&&M.onCueRangeExit)return iR(M.onCueRangeExit)}; AgJ=function(M,W){const b=Number(W?.maxVisibleDurationMilliseconds);b&&(ar(M),M.Zs=setTimeout(()=>{if(M.Z!==void 0&&W?.cueRangeId===M.Z){M.gK=!1;var T=huq(M,M.Z);T&&g.q8(M.api,"innertubeCommand",T)}},b))}; Sht=function(M){if(M=M.getWatchNextResponse())if(M=g.z(M.playerOverlays?.playerOverlayRenderer?.timelyActionsOverlayViewModel,zuQ),M?.timelyActions)return M?.timelyActions.map(W=>g.z(W,uat)).filter(W=>!!W)}; PFs=function(M){M.menuItem||(M.menuItem=new OjL(M.api,W=>{M.setVoiceBoostUserPreference(W)},()=>M.getVoiceBoostUserPreference(),()=>M.getVoiceBoostState()),g.t(M,M.menuItem))}; euP=function(M){M=M.WF();if(!M)return!1;M=g.UX(M).exp||"";return M.includes("xpv")||M.includes("xpe")}; dMt=function(M){for(const W of g.nk(M,!0))if(euP(W))return!0;return!1}; oHy=function(M,W){for(const T of g.nk(M,!0))if(euP(T)){M=T;var b={potc:"1",pot:W};M.url&&(M.url=k7(M.url,b))}}; cgs=async function(M){try{await M}catch(W){}}; Q1q=function(M){const W=new mV,b={["X-Goog-Api-Key"]:"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new $d(W,M,()=>b)}; gHt=function(M){return new CI(M)}; s1G=function(M){M.V&&(M.A=new tI,M.S.promise.then(()=>{M.pv.Yh("pot_if");yx(M)}))}; Yha=function(M){const W=(M.j("html5_generate_session_po_token")||M.j("html5_generate_content_po_token"))&&!M.useLivingRoomPoToken;try{if(M.j("html5_use_shared_owl_instance")||M.api.G().hT().Z.UY(wJQ))pJS(M);else if(W){M.pv.Yh("pot_isc");const b=g.TO(M.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");b?(Uk(M),g.RS(()=>{Ck(M)},b)):M.j("html5_webpo_idle_priority_job")?(Uk(M),g.yn(g.Cv(),()=>{Ck(M)})):Ck(M)}}catch(b){b instanceof Error&&g.lR(b)}}; pJS=async function(M){kT(M,"swpo_i");Uk(M);yx(M);var W=await Jc(bo());kT(M,"swpo_co");W=await C0Q(W);M.j("html5_web_po_token_disable_caching")||W.z_(150);M.V=W;kT(M,"swpo_cc");cgs(W.v2()).then(()=>{M.Z=!0;M.S.resolve();kT(M,"swpo_re")}); g.RS(()=>{Ck(M);kT(M,"swpo_si")},0)}; Uk=function(M){M.B||(M.B=IX())}; Ck=function(M){var W=M.api.G();M.pv.Yh("pot_ist");M.V||$vl(M);M.j("html5_bandaid_attach_content_po_token")||(M.j("html5_generate_session_po_token")&&(yx(M),s1G(M)),W=g.TO(W.experiments,"html5_session_po_token_interval_time_ms")||0,W>0&&(M.D=g.ra(()=>{yx(M)},W)),M.W=!0)}; MBq=function(M){const W=cR(M.experiments,"html5_web_po_request_key");return W?W:g.XD(M)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; kT=function(M,W){M.j("html5_webpo_bge_ctmp")&&M.api.dK(W,{hwpo:!!M.V,hwpor:M.Z})}; yx=async function(M){if(M.j("html5_generate_session_po_token")&&!M.useLivingRoomPoToken){var W=M.api.G(),b=g.F("EOM_VISITOR_DATA")||g.F("VISITOR_DATA");b=W.hD?W.datasyncId:b;b=cR(W.experiments,"html5_mock_content_binding_for_session_token")||W.livingRoomPoTokenId||b;W.XP=Kk(M,b)}}; $vl=function(M){const W=M.api.G();var b=MBq(W);b=Q1q(b);const T=b.RX.bind(b);b.RX=async X=>{X=await T(X);M.api.dK("itr",{});return X}; let q;try{q=gHt({q3:b,EH:{maxAttempts:5},XG:{uy:"CLEn",disable:W.experiments.FX("html5_web_po_disable_remote_logging"),fY:pZq(W.experiments),Op:G=>{var V=WsL.get(G);V||(V=new bEl(G),V=new zA(V),WsL.set(G,V));return V}, PB:M.j("wpo_dis_lfdms")?0:1E3},Nx:g.lR});const X=new Tqy({Rc:q,q3:b,onError:g.lR});cgs(X.v2()).then(()=>{M.Z=!0;M.S.resolve()}); M.j("html5_web_po_token_disable_caching")||X.z_(150);g.t(M,q);g.t(M,X);M.V=X}catch(X){g.lR(X),q?.dispose()}}; Kk=function(M,W){if(!M.V){if(M.B)try{return M.B(W)}catch(b){g.lR(b)}return""}try{M.pv.Yh(M.Z?"pot_cms":"pot_csms");const b={SQ:!0,iQ:!0,uG:W};M.j("html5_web_po_token_disable_caching")||(b.pH={Vw:W,hP:!0,P0:!0});const T=M.V.uI(b);M.pv.Yh(M.Z?"pot_cmf":"pot_csmf");M.Z&&(M.A?.resolve(),M.A=null,M.C&&(M.C=!1,M.api.app.Jn().Ji(!1)));return T}catch(b){return g.lR(b),""}}; qpJ=function(M,W){let b;switch(W){case 2:W="Ocultar v\u00eddeos";b="Hide recommendations grid";break;default:W="M\u00e1s v\u00eddeos",b="Show recommendations grid"}M.updateValue("title",W);M.element.ariaLabel=b;M.A.textContent=W}; g.vT=function(M,W,b){g.H(M.element,"ytp-suggestion-set",!!W.videoId);var T=W.playlistId;b=W.pz(b?b:"mqdefault.jpg");let q=null,X=null;W instanceof Da&&(W.lengthText?(q=W.lengthText||null,X=W.zl||null):W.lengthSeconds&&(q=g.O3(W.lengthSeconds),X=g.O3(W.lengthSeconds,!0)));const G=!!T;T=G&&ez(T).type==="RD";const V=W instanceof Da?W.isLivePlayback:null,J=W instanceof Da?W.isUpcoming:null,B=W.author,D=W.shortViewCount,a=W.publishedTimeText,E=[],n=[];B&&E.push(B);D&&(E.push(D),n.push(D));a&&n.push(a); b={title:W.title,author:B,author_and_views:E.join(" \u2022 "),aria_label:W.ariaLabel||g.tZ("Ver $TITLE",{TITLE:W.title}),duration:q,timestamp:X,url:W.Kx(),is_live:V,is_upcoming:J,is_list:G,is_mix:T,background:b?`background-image: url(${b})`:"",views_and_publish_time:n.join(" \u2022 "),autoplayAlternativeHeader:W.AE};W instanceof a9&&(b.playlist_length=W.playlistLength);M.update(b)}; g.Xup=function(M,W){if(M.suggestion!==W){M.suggestion=W;var b=M.api.G(),T="hqdefault.jpg";W.pz("sddefault.jpg")&&(T="sddefault.jpg");g.vT(M,W,T);g.tP(b)&&!M.api.j("web_player_log_click_before_generating_ve_conversion_params")&&(b=W.Kx(),T={},g.GW(M.api,"addEmbedsConversionTrackingParams",[T]),b=g.JM(b,T),M.updateValue("url",b));(W=(W=W.sessionData)&&W.itct)&&M.api.setTrackingParams(M.element,W)}}; jZp=function(M,W){let b="";const T=g.kf(M.player,"M\u00e1s v\u00eddeos","v");W===2?b="Ocultar v\u00eddeos":W===1&&(b="M\u00e1s v\u00eddeos");M.element.setAttribute("title",T);M.element.setAttribute("data-title-no-tooltip",b);M.element.setAttribute("aria-label",b);if(W=M.hn("ytp-fullscreen-grid-hover-overlay"))W.setAttribute("title",T),W.setAttribute("data-title-no-tooltip",b),W.setAttribute("aria-label",b);!M.C&&(W=M.hn("ytp-fullscreen-grid-expand-button"))&&(W.setAttribute("title",T),W.setAttribute("data-title-no-tooltip", b),W.setAttribute("aria-label",b));M.player.aq()}; lj=function(M){const W=mq(M);g.H(M.api.getRootNode(),"ytp-full-bleed-player",W);M.Zs&&g.pr(M.Zs,W);M.playerOverlayVideoDetailsRenderer&&g.pr(M.playerOverlayVideoDetailsRenderer,W);M.A&&Lk(M)}; ZP=function(M,W,b){M.B=W;M.V?.LN(W,b);M.X?.LN(W);M.Z=0;tQ(M);G1L(M,W)}; avy=function(M,W,b){W.J(b,"keyboardserviceglobalkeydown",(T,q)=>{M.A&&T.keyCode===86&&!T.repeat&&M.B!==0&&(q&&(q.n0=!0),M.O("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); W.J(M.api.getRootNode(),"wheel",T=>{if(!M.gK&&M.A&&M.V?.element&&!M.api.getPlayerStateObject().Z(2)&&M.B!==0&&mq(M))if(g.pY(M.api.getRootNode(),"ytp-grid-scrolling"),M.S===0&&(M.S=window.innerHeight),M.B===1)M.S!==0&&(M.Z+=T.deltaY/M.S,M.Z=g.fy(M.Z,0,.7),tQ(M),VBp(M,M.W/M.S+M.Z>=.7,2));else if(M.B===2){const q=T.deltaY<0,X=M.V?.A?.scrollTop===0,G=M.Z!==0;q&&X||G&&!q?M.S!==0&&(M.Z=Math.max(0,M.Z-T.deltaY/M.S),tQ(M),VBp(M,M.W/M.S+Math.abs(M.Z)>=.7,1)):M.Z!==0&&(M.Z=0,tQ(M))}},M,!0); W.J(b,"standardControlsInitialized",()=>{if(!M.V){M.V=new JVq(M.api,M.xk.bind(M));M.BY&&(M.X=new BqG(M.api),g.t(M,M.X),M.X.element.setAttribute("data-overlay-order","12"),M.api.pT(M.X.element,4),M.X.listen("click",M.O,M));g.t(M,M.V);var T=M.api.getRootNode().querySelector(".ytp-chrome-bottom");T&&T.parentNode&&T.parentNode.insertBefore(M.V.element,T.nextSibling);DvL(M)}}); W.J(b,"presentingplayerstatechange",()=>{Lk(M)}); W.J(b,"autonavvisibility",()=>{Lk(M)}); M.api.fK().subscribe("visibilitystatechange",()=>{Lk(M)}); G1L(M,M.B)}; Lk=function(M){if(M.A)if(g.Mw(M.api.getRootNode(),"ytp-grid-scrolling"),M.api.getPresentingPlayerType()===2||M.api.h_()||M.api.isMinimized())ZP(M,0);else{var W=M.api.getPlayerStateObject().Z(2);if(W)ZP(M,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(M.isEnded&&!W){const b=mq(M)?1:0;M.isEnded=W;ZP(M,b)}else mq(M)?M.B!==2&&ZP(M,1):ZP(M,0);M.isEnded=W}}; G1L=function(M,W){const b=M.api.getRootNode();g.H(b,"ytp-fullscreen-grid-peeking",W===1);g.H(b,"ytp-fullscreen-grid-active",W===2);W===1&&DvL(M)}; DvL=function(M){const W=M.api.getRootNode();var b=M.api.getPlayerStateObject().Z(256)||M.api.getPlayerStateObject().Z(32)||M.api.getPlayerStateObject().Z(16)?M.W:M.lV&&M.api.getPlayerStateObject().isPaused()?(M.V?.element.clientWidth||0)*.5625/3*M.An||M.sY:M.sY;M.W=b;W.style.setProperty("--ytp-grid-peek-height",`${M.W}px`);g.H(W,"ytp-disable-bottom-gradient",M.W<=12&&M.C===0)}; mq=function(M){return M.api.isFullscreen()||M.MK&&M.api.KT()}; tQ=function(M){M.Z===0&&M.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(()=>{const W=M.Z-M.C;let b=W;M.Z!==0&&(b=g.fy(W,-.01,.01));M.C+=b;M.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",`${M.C.toString()}`);M.C!==M.Z&&tQ(M)})}; VBp=function(M,W,b){M.D&&clearTimeout(M.D);M.Z===0&&g.Mw(M.api.getRootNode(),"ytp-grid-scrolling");W?ERL(M,b):M.Z<.1&&(M.D=window.setTimeout(()=>{ERL(M)},1E3))}; ERL=function(M,W){M.D&&(clearTimeout(M.D),M.D=null);M.S=0;M.A&&M.B!==0&&(W?ZP(M,W):Math.abs(M.Z)>=.15&&M.O("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),M.Z=0,tQ(M),g.Mw(M.api.getRootNode(),"ytp-grid-scrolling"))}; Ir=function(M,W,b){rO("pbs",W??(0,g.u)(),b??M.timerName)}; nRt=function(M,W,b){var T=g.Th(W.Vz)&&!W.Vz.C;if(W.Vz.nx&&(Xt(W.Vz)||W.Vz.Zs==="shortspage"||E1(W.Vz)||T)&&!M.B){M.B=!0;M.C=W.clientPlaybackNonce;g.F("TIMING_ACTION")||XV("TIMING_ACTION",M.uV.csiPageType);M.uV.csiServiceName&&XV("CSI_SERVICE_NAME",M.uV.csiServiceName);if(M.Z){T=M.Z.r0();for(var q of Object.keys(T))rO(q,T[q],M.timerName);q=g.Je(uya)(M.Z.EF);g.xD(q,M.timerName);q=M.Z;q.V={};q.EF={}}g.xD({playerInfo:{visibilityState:g.Je(zFL)()},playerType:"LATENCY_PLAYER_HTML5"},M.timerName);M.S!== W.clientPlaybackNonce||Number.isNaN(M.V)||(iA("_start",M.timerName)?b=g.Je(mK)("_start",M.timerName)+M.V:g.lR(new g.EF("attempted to log gapless pbs before CSI timeline started",{cpn:W.clientPlaybackNonce})));!b||iA("pbs",M.timerName)||W.N4||Ir(M,b)}}; N3=function(M){w7G();sgq();M.timerName=""}; yVt=function(M){if(M.Z){var W=M.Z;W.V={};W.EF={}}M.B=!1;M.S=void 0;M.V=NaN}; HT=function(M){return!!(M.playlist||M.list||M.api)}; g.Rr=function(M,W,b,T){W=W!==void 0?W:M.index;W=M.items&&W in M.items?M.items[M.order[W]]:null;let q=null;W&&(b&&(W.autoplay="1"),T&&(W.autonav="1"),q=new g.fk(M.Vz,W),g.t(M,q),q.U1=!0,q.startSeconds=M.startSeconds||q.clipStart||0,M.listId&&(q.playlistId=M.listId.toString()));return q}; UvP=function(M,W){if(W.video&&W.video.length){M.title=W.title||"";M.description=W.description;M.views=W.views;M.likes=W.likes;M.dislikes=W.dislikes;M.author=W.author||"";var b=W.loop;b&&(M.loop=b);b=g.Rr(M);M.items=[];for(const T of W.video)T&&(T.video_id=T.encrypted_id,M.items.push(T));M.length=M.items.length;(W=W.index)?M.index=W:M.findIndex(b);M.setShuffle(!1);M.loaded=!0;M.V++;M.Z&&M.Z()}}; Cxg=function(M){const W=M.index+1;return W>=M.length?0:W}; k1L=function(M){const W=M.index-1;return W<0?M.length-1:W}; rm=function(M,W){M.index=g.fy(W,0,M.length-1);M.startSeconds=0}; mvp=async function(M,W){const b=g.Mq();var T=M.G();const q={context:g.LT(M),playbackContext:{contentPlaybackContext:{ancestorOrigins:T.ancestorOrigins}}};var X=T.getWebPlayerContextConfig();X?.encryptedHostFlags&&(q.playbackContext.contentPlaybackContext.encryptedHostFlags=X.encryptedHostFlags);X?.hideInfo&&(q.playerParams={showinfo:!1});X=T.embedConfig;const G=M.eI;var V=W.docid||W.video_id||W.videoId||W.id;if(!V){V=W.raw_embedded_player_response;if(!V){var J=W.embedded_player_response;J&&(V=JSON.parse(J))}V= V?g.z(V?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.Jj)?.videoId||null:null}V=V?V:void 0;J=M.playlistId?M.playlistId:W.list;const B=W.listType;if(J){var D;B==="user_uploads"?D={username:J}:D={playlistId:J};KsS(X,G,V,W,D,T.experiments);q.playlistRequest=D}else W.playlist?(D={templistVideoIds:W.playlist.toString().split(",")},KsS(X,G,V,W,D,T.experiments),q.playlistRequest=D):V&&(D={videoId:V},G&&T.j("embeds_enable_per_video_embed_config")?D.serializedThirdPartyEmbedConfig= G:X&&(D.serializedThirdPartyEmbedConfig=X),q.singleVideoRequest=D);T=g.XN(vRq);try{const a=await g.SM(b,q,T),E=M.G();W.raw_embedded_player_response=a;E.yz=xs(W,g.tP(E));E.B=E.yz==="EMBEDDED_PLAYER_MODE_PFL";a&&a.trackingParams&&w6(a.trackingParams);return new g.fk(E,W)}catch(a){return a instanceof Error||(a=Error("b259802748")),g.O(a),M}}; KsS=function(M,W,b,T,q,X){T.index&&(q.playlistIndex=String(Number(T.index)+1));q.videoId=b?b:"";W&&X.FX("embeds_enable_per_video_embed_config")?q.serializedThirdPartyEmbedConfig=W:M&&(q.serializedThirdPartyEmbedConfig=M)}; g.FQ=function(M,W){xT.get(M);xT.set(M,W)}; g.nk=function(M,W){return W?M.Z.concat(M.V):M.Z}; Lss=function(M,W){g.pt(W,b=>M.equals(b))||W.push(M)}; g.ij=function(M,W){switch(W.kind){case "asr":Lss(W,M.V);break;default:Lss(W,M.Z)}}; g.lvq=function(M,W){return W.G().j("html5_use_hls_native_captions")&&g.R_&&M.Me()&&!!M.V?.B()}; g.hQ=function(M,W){return M.G().j("safari_live_drm_captions_fix")&&M.getVideoData()?.Xy()?!1:g.Tb(M.G())&&!W.isManifestless}; g.AQ=function(M,W){return tE(M.info.mimeType)?W?M.info.itag===W:!0:!1}; g.tBG=function(M,W){if(M.Z!=null&&g.hQ(W,M.Z)&&M.Z.Z.rawcc!=null)return!0;if(!M.Me())return!1;W=!!M.Z&&M.Z.isManifestless&&Object.values(M.Z.Z).some(b=>g.AQ(b,"386")); M=!!M.Z&&!M.Z.isManifestless&&g.vDl(M.Z);return W||M}; tAJ=function(M){if(M.L.G().Lp)return M.Tm.get("ux")}; zy=function(M){return M.Tm.get("ad")}; var fRP=function(){return $9[y[0]](this,19)}; g.uj=function(M){return M.Tm.get("captions")}; g.Sc=function(M){return M.Tm.get("annotations_module")}; m3=function(M){if(M.L.G().vp)return M.Tm.get("remote")}; Ok=function(M){return M.Tm.get("creatorendscreen")}; PT=function(M){if(JI(M.L.G()))return M.Tm.get("kids")}; g.tp=function(M){return M.Tm.get("webgl")}; ec=function(M){if(M.L.G().Ha)return M.Tm.get("offline")}; ZEl=function(M){if(M.L.G().showMiniplayerUiWhenMinimized)return M.Tm.get("miniplayer")}; Ivs=function(M,W){M.B=W}; NqJ=function(M){const W=M.L.getVideoData();return g.lvq(W,M.L)||!!W.oT||!!W.captionTracks.length||g.tBG(W,M.L)}; dm=function(M,W,b=!1,T=!1,q){var X;let G=M.Tm.get(W);if(!G||T)if(q||(q=()=>{dm(M,W,b,T)}),X||(X=()=>{or(M,W)}),G=G||HEp(M,W,fvL(M,W),q,X))M.Tm.set(W,G),G.create(),M.L.publish("modulecreated",W),b&&g.Jp(M.L,"onApiChange")}; cT=function(M){if(M.L.G().B)return!1;if(M=M.L.getVideoData({playerType:1}).getPlayerResponse()){const W=M.adPlacements;if(W)for(let b=0;b{M.C.add(q);b.call(M)},T)}}; uwg=async function(M){var W=M.Tm.get("asmjs");if(W)return W;W=xT.get("asmjs")??await new Promise((b,T)=>{hHL(M,"asmjs",()=>{const q=xT.get("asmjs");q?b(q):T("cannot load module asmjs")},T)}); if(!W)return Promise.reject("cannot load module asmjs");W=new W(M.L);M.Tm.set("asmjs",W);W.create();return W}; gm=function(M){var W=M.L.getVideoData();if(M=W.j("web_player_defer_ad")){if(g.ME(W.jG,"ad")||SRt(W)||W.enableServerStitchedDai)var b=!1;else{M=W.startSeconds;var T=W.playerResponse?.adPlacements;if(W=T){W=Number.MAX_VALUE;for(b of T)if(T=b.adPlacementRenderer){const q=T.config?.adPlacementConfig;q?.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&(T=(Number(q?.adTimeOffset?.offsetStartMilliseconds)||0)-Number(T.renderer?.adBreakServiceRenderer?.prefetchMilliseconds||0),TM.Tm.get("asmjs")??Spp(M))}; zHL=function(M,W,b,T){var q=g.QT("SCRIPT");let X=!1,G;for(let n=0;n{M.ST()||b.call(M)},J=()=>{M.ST()||T.call(M)},B=G.onload; G.onload=n=>{vs(V);B&&B.apply(window,[n])}; const D=G.onerror;G.onerror=n=>{if(Math.random()<.01){const C=new g.EF("Unable to load player module",W,document.location&&document.location.origin);g.O(C)}vs(J);D&&D(n)}; const a=G,E=a.onreadystatechange;a.onreadystatechange=n=>{switch(a.readyState){case "loaded":case "complete":vs(V)}E&&E(n)}; X&&((q=M.L.G().cspNonce)&&G.setAttribute("nonce",q),g.Yp(G,g.We(W)),q=g.QT("HEAD")[0]||document.body,q.insertBefore(G,q.firstChild),M.addOnDisposeCallback(()=>{G.parentNode&&G.parentNode.removeChild(G)}))}; $K=function(M,W,b){M.ST();const T=pk(M);b?(M.V|=W,W&1&&M.X.start(),W&2&&M.gK.start(),W&2048&&M.O.start()):(M.V&=~W,W&1&&M.X.stop(),W&2&&M.gK.stop(),W&2048&&M.O.stop(),W&512&&M.Zs.stop());M.V&512&&!(M.V&128)&&M.Zs.Wr(M.lV);W=pk(M);T!==W&&M.publish("autohideupdate",W)}; dva=function(M){$K(M,4,!1);M.W&&(M.Z.fN(M.W),M.W=null,M.B=M.Z.J(M.target,"mouseover",M.Yw));M.B&&(M.Z.fN(M.B),M.B=M.Z.J(M.target,"mouseover",M.Yw))}; pk=function(M){return M.api.j("allow_autohide_on_paused_videos")?!(M.V&-129):!M.V}; oRt=function(M,...W){var b=M.api.G();for(const X of W){if(!X||X instanceof g.fk&&!X.videoId)continue;var T=M.api.qe().getPlayerSize();var q=g.yK();W=T.width*q;q*=T.height;if(W>1280||q>720)if(T=X.pz("maxresdefault.jpg"))break;if(W>640||q>480)if(T=X.pz("maxresdefault.jpg"))break;if(W>320||q>180)if(T=X.pz("sddefault.jpg")||X.pz("hqdefault.jpg")||X.pz("mqdefault.jpg"))break;if(T=X.pz("default.jpg"))break}g.kj(b)&&(b=new Image,b.addEventListener("load",()=>{TAl()}),b.src=T?T:"",M.api.r0().tick("ftr")); M.S.style.backgroundImage=T?`url(${T})`:""}; cVG=function(M){for(let W=0;W=67&&!M.api.G().W;M=M.api.G().disableOrganicUi;return!g.Df("tizen")&&!Rl&&!W&&!M}; M3Q=function(M,W){if(!W)return!1;var b=M.api.E2();if(b.C()&&(b=b.BP())&&g.ES(b,W))return b.controls;for(b=0;b=11;M=M.api.G().W&&qA;return!(!W&&!M)}; jP=function(M,W){M.W3.sN();if(M.OR&&M.WA)M.WA=!1;else if(!M.api.G().An&&!M.Cr()){const b=M.api.getPlayerStateObject();b.Z(2)&&g.vf(M.api)||M.MI(b);W&&XG(M,W)?bpg(M):!M.api.G().EY||b.isCued()||b.Z(1024)?M.EE():M.kU.isActive()?(M.lE(),M.kU.stop()):M.kU.start()}}; G8=function(M,W){return!M.api.isInline()&&!M3Q(M,g2(W))&&g.PF(W)}; VE=function(M,W){return M.api.getVideoData()?.mutedAutoplay&&W.target?.className?.includes("ytp-info-panel")?!1:g.PF(W)&&M.api.isMutedByMutedAutoplay()?(M.api.unMute(),M.api.getPresentingPlayerType()===2&&M.api.playVideo(),W=M.api.getPlayerStateObject(),!W.Z(4)||W.Z(8)||W.Z(2)||M.EE(),!0):!1}; XG=function(M,W){if(!M.api.G().j("web_player_invisible_fullscreen_button"))return!1;var b=M.api.getRootNode().getBoundingClientRect();let T,q;W.targetTouches&&W.targetTouches.length?(T=W.targetTouches[0].clientX,q=W.targetTouches[0].clientY):W.clientX!==void 0&&(T=W.clientX,q=W.clientY);return T!==void 0&&q!==void 0&&(W=T-b.left,b=q-b.top,M=M.api.getPlayerSize(),b>=M.height-40&&W>=M.width-40)?!0:!1}; bpg=function(M){if(M.api.G().EY&&M.api.getPresentingPlayerType()!==3)try{M.api.toggleFullscreen().catch(W=>{M.Rk(W)}),M.api.j("web_player_fullscreen_double_click_ve")&&M.api.logClick(M.api.qe().element)}catch(W){M.Rk(W)}}; TSq=function(M,W,b){M.api.isFullscreen()?b<1-W&&M.api.toggleFullscreen():b>1+W&&M.api.toggleFullscreen()}; Ju=function(M,W,b="",T=""){M.updateValue("label",b);M.updateValue("icon",W);M.Z.n3();M.V.start();M.updateValue("title",T);g.H(M.element,"ytp-bezel-text-hide",!T)}; B0=function(M,W,b){let T;W<=0?(b=t1(),W="silenciado",T=0):(b=b?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,Y:{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"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,Y:{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"}}]},T=Math.floor(W),W=T+"volumen");Ju(M,b,W,`${T}%`)}; qJP=function(M,W){W=W?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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"}}]}:YGP();const b=M.L.getPlaybackRate(),T=g.tZ("Velocidad: $RATE",{RATE:String(b)});Ju(M,W,T,b+"x")}; XnJ=function(M,W){W=W?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";Ju(M,cEG(M.L),W)}; j2y=function(M,W){M.Z=W;M.element.classList.toggle(DG.NOTIFICATIONS_ENABLED,M.Z);const b=M.api.getVideoData();b?(W=W?b.BS:b.VI)?(M=M.api.M1())?uA(M,W):g.O(Error("No innertube service available when updating notification preferences.")):g.O(Error("No update preferences command available.")):g.O(Error("No video data when updating notification preferences."))}; af=function(M,W,b){const T=document.location.protocol;M=SrL(`${T}//${M}/signin?context=popup`,"feature",W,"next",`${T}//${location.hostname}/post_login`);GKt(M,b)}; GKt=function(M,W){if(M=g.cX(window,M,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))tLQ(()=>{W()}),M.moveTo((screen.width-800)/2,(screen.height-600)/2)}; D1t=function(M){const W=M.api.G();V3p(M);M.updateValue("flyoutUnfocusable","true");M.updateValue("channelTitleFocusable","-1");M.updateValue("shouldHideExpandedTitleForA11y","true");M.updateValue("shouldHideExpandedSubtitleForA11y","true");W.V||W.xk||(M.J(M.channel,"mouseenter",M.C),M.J(M.channel,"mouseleave",M.S),M.J(M.channel,"focusin",M.C),M.J(M.channel,"focusout",b=>{M.channel.contains(b.relatedTarget)||M.S()})); M.B=new g.d9(()=>{M.isExpanded()&&(M.api.logVisibility(M.channelName,!1),M.subscribeButton&&(M.subscribeButton.hide(),M.api.logVisibility(M.subscribeButton.element,!1)),M.Z&&(M.Z.hide(),M.api.logVisibility(M.Z.element,!1)),M.channel.classList.remove("ytp-title-expanded"),M.channel.classList.add("ytp-title-show-collapsed"))},500); g.t(M,M.B);M.J(M.channel,JmQ,()=>{BSl(M)}); M.J(M.api,"onHideControls",M.W);M.J(M.api,"appresize",M.W);M.J(M.api,"fullscreentoggled",M.W)}; E7=function(M){var W=M.api.G();const b=M.api.getVideoData();let T=g.lb(W)+b.xk;g.Wf(b)&&(T="https://music.youtube.com"+b.xk);if(!g.tP(W))return T;W={};g.GW(M.api,"addEmbedsConversionTrackingParams",[W]);return g.JM(T,W)}; a2P=function(M){const W=M.api.getPlayerSize();return g.tP(M.api.G())&&W.width>=524}; V3p=function(M){if(!M.api.G().d9){var W=M.api.getVideoData(),b=new g.nA("Suscribirme",null,"Suscrito",null,!0,!1,W.YJ,W.subscribed,"channel_avatar",null,M.api,!0);M.api.createServerVe(b.element,M);M.api.setTrackingParams(b.element,W.subscribeButtonRenderer?.trackingParams||null);M.J(b.element,"click",()=>{M.api.logClick(b.element)}); M.subscribeButton=b;g.t(M,M.subscribeButton);M.subscribeButton.cY(M.D);M.subscribeButton.hide();var T=new EgS(M.api);M.Z=T;g.t(M,T);T.cY(M.D);T.hide();M.J(M.api,"SUBSCRIBE",()=>{W.zm&&(T.show(),M.api.logVisibility(T.element,!0))}); M.J(M.api,"UNSUBSCRIBE",()=>{W.zm&&(T.hide(),M.api.logVisibility(T.element,!1),j2y(T,!1))})}}; BSl=function(M){M.channel.classList.remove("ytp-title-show-collapsed");M.channel.classList.remove("ytp-title-show-expanded")}; ngs=function(M,W="",b=""){M.A?(M.X!==W&&(M.V.style.backgroundImage=`url(${W})`,M.X=W),M.updateValue("channelLink",E7(M)),M.updateValue("channelLogoLabel",g.tZ("Foto de $CHANNEL_NAME",{CHANNEL_NAME:b})),g.pY(M.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mw(M.api.getRootNode(),"ytp-title-enable-channel-logo");M.api.logVisibility(M.V,M.A&&M.gK)}; yE=function(M,W){M.element.setAttribute("aria-haspopup",String(W))}; yma=function(){let M=document.queryCommandSupported&&document.queryCommandSupported("copy");lr("Chromium")>=43&&(M=!0);lr("Firefox")<=40&&(M=!1);return M}; U7=function(M){M.T5?.eW(!M.L.isFullscreen()&&!M.L.isMinimized()&&M.L.getPresentingPlayerType()!==2&&M.L.G().showMiniplayerButton)}; U1a=function(M){const W=!!M.O7;g.i7(M.qd,W?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");yE(M.qd,!W);g.i7(M.k5,W?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");yE(M.k5,!W);g.i7(M.getVideoUrl,W?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");yE(M.getVideoUrl,!W);g.i7(M.q6,W?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");yE(M.q6,!W);M.k5.setIcon(W?sKL(): null);M.getVideoUrl.setIcon(W?yI():null);M.q6.setIcon(W?yI():null)}; C3G=function(M,W){var b=M.L.G();const T=M.L.getPresentingPlayerType()===2;var q=!T||W.isListed;q=!b.O&&!!W.videoId&&q;b.playerStyle!=="play"?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:W.eventId,v:W.videoId,p:"movies_playback"},W.V&&(b.fmt=W.V.itag),W.clientPlaybackNonce&&(b.cpn=W.clientPlaybackNonce),W.partnerId&&(b.partnerid=W.partnerId),b=g.JM("//support.google.com/googleplay/",b));M.k5.eW(q&&W.allowEmbed);M.getVideoUrl.eW(q);M.q6.eW(q&& !W.isLivePlayback);M.qI.setContent(b,"href");M.rI?.eW(!W.isLivePlayback&&!T);U7(M);M.NV?.eW(!T)}; CA=function(M,W){let b=!1;if(M.O7){const T=M.O7.element;T.value=W;T.select();try{b=document.execCommand("copy")}catch(q){}}b?M.tT.Lv():(M.G2.setContent(W,"text"),g.$T(M.tT,M.YA),om(M.G2.element),M.O7&&(M.O7=null,U1a(M)));return b}; kKQ=function(M){return g.tP(M.L.G())?M.NV:M.rI}; KCl=function(M){M.V.V();var W=M.L.G();W.playerStyle==="gvn"||W.V||W.xk||(W=M.L.qe(),M.V.J(W,"contextmenu",M.lV),M.V.J(W,"touchstart",M.onTouchStart,null,!0),M.V.J(W,"touchmove",M.O,null,!0),M.V.J(W,"touchend",M.O,null,!0))}; vgq=function(M){M.L.isFullscreen()?g.Im(M.L,M.element,10):M.cY(rC(M).body)}; m1t=async function(M,W){try{return await navigator.clipboard.writeText(W),!0}catch{let b=!1;const T=g.Gr("TEXTAREA");T.value=W;T.setAttribute("readonly","");M=M.api.getRootNode();M.appendChild(T);if($w){const q=window.getSelection();q.removeAllRanges();const X=document.createRange();X.selectNodeContents(T);q.addRange(X);T.setSelectionRange(0,W.length)}else T.select();try{b=document.execCommand("copy")}catch(q){}M.removeChild(T);return b}}; LCq=function(M){M.updateValue("icon",J1());if(M.api.G().V)M.tooltip.f9(M.element,"Se ha copiado el enlace en el portapapeles.");else{M.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");M.updateValue("tooltip-title","Se ha copiado el enlace en el portapapeles.");M.tooltip.aq();M.tooltip.f9(M.element);const W=M.listen("mouseleave",()=>{M.fN(W);M.zv();M.tooltip.XY()})}}; l2p=function(M){var W=M.api.G();const b=M.api.getVideoData(),T=M.api.qe().getPlayerSize().width;W=W.B;return!!b.videoId&&T>=240&&b.Tr&&!b.uN&&!M.api.isEmbedsShortsMode()&&!W}; t3J=function(M,W){W=g.tZ("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:W.toString()});M.updateValue("seekTime",W)}; Zpt=function(M,W){M.L.j("web_enable_shopping_timely_shelf_client")&&!M.L.j("web_force_featured_product_banner_with_timely_shelf")&&W&&!W.isPremiere&&W.getPlayerResponse()?.videoDetails?.isLiveContent===!1?M.badge.element.classList.add("ytp-timely-shelf-present"):M.badge.element.classList.remove("ytp-timely-shelf-present")}; kK=function(M){M.MK=[];M.xk();M.L.lN("featured_product")}; v0=function(M){M.Hr?.stop();M.O.hide();M.X.hide();KA(M)}; KA=function(M){if(M.trendingOfferEntityKey){var W=g.nP.getState().entities;(W=YE(W,"trendingOfferEntity",M.trendingOfferEntityKey))?W.encodedSkuId!==M.Z?.bannerData?.itemData?.encodedOfferSkuId?mJ(M):(M.A.update({trendingOffer:`${W.shortLabel} \u2022 ${W.countLabel}`}),M.A.show(),M.banner.update({vendor:LA(M)})):mJ(M)}else mJ(M)}; I2y=function(M){const W=M.Z?.bannerData?.itemData;return W?.priceReplacementText||M.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")||!W?.dealsData?.sales?.originalPrice?null:W?.dealsData?.sales?.originalPrice}; NSg=function(M){const W=M.Z?.bannerData?.itemData;return W?.priceReplacementText||M.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")||W?.dealsData?.sales?.originalPrice||!W?.dealsData?.priceDrop?.referencePrice?null:W?.dealsData?.priceDrop?.referencePrice}; HpL=function(M){const W=M.Z?.bannerData?.itemData;return M.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&!W?.priceReplacementText&&W?.promotionText?W?.promotionText.content:null}; f2p=function(M){const W=M.Z?.bannerData?.itemData;return W?.priceReplacementText?W?.priceReplacementText:W?.promotionText&&M.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?`${W?.price} ${W?.promotionText?.content}`:W?.dealsData?.sales?.originalPrice?W?.dealsData?.sales?.salesPriceAccessibilityLabel:W?.dealsData?.priceDrop?.referencePrice?`${W?.price} ${W?.dealsData?.priceDrop?.referencePrice}`:W?.price}; LA=function(M){return M.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?M.A.Ta?null:M.Z?.bannerData?.itemData?.vendorName:M.A.Ta||M.X.Ta||M.Z?.bannerData?.itemData?.affiliateDisclaimer?null:M.Z?.bannerData?.itemData?.vendorName}; RDp=function(M){const W=(Number(M.Z?.bannerData?.itemData?.hiddenProductOptions?.dropTimestampMs)-Date.now())/1E3;M.countdownTimer.setContent(uf({seconds:W}));W>0&&M.d9?.start()}; rmg=function(M){M=M.Z?.bannerData?.itemData;return!M?.affiliateDisclaimer&&M?.exclusivesData?.exclusiveOfferLabelText&&M?.exclusivesData?.expirationTimestampMs&&M?.exclusivesData?.exclusiveOfferCountdownText?!0:!1}; x1t=function(M){var W=(Number(M.Z?.bannerData?.itemData?.exclusivesData?.expirationTimestampMs)-Date.now())/1E3;if(W>0){if(W<604800){var b=M.Z?.bannerData?.itemData?.exclusivesData?.exclusiveOfferCountdownText;if(b!==void 0){var T=Date.now();for(const q of b){if(q===void 0||q.text===void 0)continue;b=Number(q.textDisplayStartTimestampMs);if(!isNaN(b)&&T>=b){q.insertCountdown?(W=q.text.replace(/\$0/,String(uf({seconds:W}))),M.O.setContent(W)):M.O.setContent(q.text);M.O.show();break}}}}M.X.update({exclusive:M.Z?.bannerData?.itemData?.exclusivesData?.exclusiveOfferLabelText}); M.X.show();mJ(M);M.Hr?.start()}else v0(M)}; mJ=function(M){M.A.hide();M.banner.update({vendor:LA(M)})}; FCa=function(M){if(M!==void 0&&M.trim()!==""&&(M=Math.trunc(Number(M.trim())),!(isNaN(M)||M<0)))return M}; ipG=function(M,W){kK(M);if(W){var b=g.nP.getState().entities;b=YE(b,"featuredProductsEntity",W);if(b?.productsData){W=[];for(const T of b.productsData)if(T?.identifier&&T.featuredSegments){M.MK.push(T);for(const q of T?.featuredSegments){b=FCa(q.startTimeSec);if(b===void 0)continue;const X=FCa(q.endTimeSec);W.push(new g.Ap(b*1E3,X===void 0?0x7ffffffffffff:X*1E3,{id:T.identifier,namespace:"featured_product"}))}}M.L.QV(W)}}}; hDl=function(M){switch(M){case "OPEN_IN_NEW":return Cu();case "NOT_INTERESTED":return{K:"svg",Y:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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 nu();default:return Cu()}}; lZ=function(M,W){if(!W.rp||!M.L.V1()){var b=W.xi||1E4,T=!!W.MK?.title?.content||!!W.MK?.bodyText?.content;M.Z?W.videoId&&W.videoId!==M.videoId&&(M.Z.n3(),M.videoId=W.videoId,T?(Amt(M,b,W),M.Nd()):(M.Lv(),M.Z.dispose(),M.Z=null)):T&&(W.videoId&&(M.videoId=W.videoId),Amt(M,b,W),M.Nd())}}; zDy=function(M,W){M.Z&&(W.Z(8)?(M.V=!0,M.Nd(),M.Z.start()):(W.Z(2)||W.Z(64))&&M.videoId&&(M.videoId=null))}; Amt=function(M,W,b){M.Z&&M.Z.dispose();M.Z=new g.d9(M.D,W,M);g.t(M,M.Z);M.L.setTrackingParams(M.element,b.MK?.trackingParams||null);b?.MK?.title?.content?(W=b.MK?.title?.content,b.MK?.bodyText?.content&&(W+=" \u2022 ")):W="";M.update({text:W+(b.MK?.bodyText?.content||""),chevron:g.DR()})}; tu=function(M){let W=null;try{W=M.toLocaleString("es",{style:"percent"})}catch(b){W=M.toLocaleString(void 0,{style:"percent"})}return W}; ZG=function(M,W){let b=0;for(const T of M){if(T.startTime>W)break;b++}return b===0?b:b-1}; ubL=function(M,W){let b=0;for(const T of M){if(W=T.timeRangeStartMillis&&W2**31-1?"0":String(M)}; Rf=function(M,W){M.actionButtons.includes(W)||(M.actionButtons.push(W),M.updateValue("buttons",M.actionButtons))}; cmS=function(M){var W=document.querySelectorAll(`[data-tooltip-target-id="${M.tooltipRenderer.targetId}"]`);W=W.length>0?W[0]:null;const b=g.wP("ytp-ad-module");M.B=!!g.wP("ytp-chrome-bottom")?.contains(W);M.W=!!b?.contains(W);M.D=!!W?.hasAttribute("data-tooltip-target-fixed");return W}; rw=function(M){var W;if(!(W=!M.Z)){W=M.Z;var b=window.getComputedStyle(W);W=b.display==="none"||b.visibility==="hidden"||W.getAttribute("aria-hidden")==="true"}if(W||M.L.isMinimized())M.eW(!1);else if(W=g.we(M.Z),W.width&&W.height){M.L.Ar(M.element,M.Z);var T=M.L.qe().getPlayerSize().height;b=g.we(M.hn("ytp-promotooltip-container")).height;M.B?M.element.style.top=`${T-b-W.height-12}px`:M.D||(T=M.L.RE().height-b-W.height-12,M.element.style.top=`${T}px`);T=M.hn("ytp-promotooltip-pointer");const q=g.ge(M.Z, M.L.getRootNode()),X=Number(M.element.style.left.replace(/[^\d\.]/g,""));M=M.L.isFullscreen()?18:12;T.style.left=`${q.x-X+W.width/2-M}px`;T.style.top=`${b}px`}else M.eW(!1)}; xK=function(M){M.eW(!1);M.V&&M.L.logVisibility(M.element,M.Ta)}; Q2L=function(M){const W=g.z(M.dismissButton,gQ)?.text?.runs?.length&&!!g.z(M.dismissButton,gQ).text.runs[0].text;return g.z(M.acceptButton,gQ)?.text?.runs?.length&&!!g.z(M.acceptButton,gQ).text.runs[0].text||W}; s2q=function(M,W=1,b=!0){M.B=M.A.animate([{offset:0,opacity:W},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});b&&(M.B.addEventListener("finish",()=>{M.B=void 0;ggl(M);M.hide()}),M.Z="fading-out")}; wnP=function(M,W){M.B=M.A.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:W},{offset:1,opacity:1}],{duration:200,fill:"forwards"});M.B.addEventListener("finish",()=>{M.B=void 0;M.C.start();M.Z="lingering"})}; pnQ=function(M,W,b=!1,T=!1){var q=[];q.push({offset:0,transform:`translateX(${M.V===-1?20:-20}px)`,opacity:b?"0":"1"});b&&q.push({offset:.5,opacity:"1"});q.push({offset:1,transform:"translateX(0)",opacity:"1"});b=W.animate(q,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});W=W.querySelector("path");q=[];const X={offset:0,d:M.V===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};T&&(X.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");q.push(X);T&&q.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); M={offset:1,d:M.V===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};T&&(M.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");q.push(M);W.animate(q,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return b}; YJS=function(M){const W=M.A.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);W.classList.add("ytp-seek-overlay-arrow-additional");W.classList.remove("ytp-seek-overlay-arrow-persistent");M.A.appendChild(W);pnQ(M,W,!0,!0).addEventListener("finish",()=>{W.remove()})}; ggl=function(M){M.S=0;M.Z="hidden";M.V=void 0;M.A=void 0;M.C.stop();M.B=void 0}; $zP=function(M){const W=Number(getComputedStyle(M.A).opacity);M.B?.cancel();M.B=void 0;return W}; Mia=function(M,W,b){M.updateValue("text",W);if(b){a:{switch(b){case "PREMIUM_STANDALONE":W=BXt();break a;case "PREMIUM_STANDALONE_CAIRO":W=DCs();break a}W=void 0}M.updateValue("icon",W)}for(const T of M.X.getAnimations())T.cancel();M.X.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",()=>{M.updateValue("text","");M.updateValue("icon","")})}; WtG=function(M,W){W.name!=="InvalidStateError"&&W.name!=="AbortError"&&(W.name==="NotAllowedError"?(M.Z.Cr(),xf(M.V,M.element,!1)):g.O(W))}; FG=function(M){var W=M.api.G();const b=M.api.getVideoData(),T=g.tP(W)&&g.Le(M.api)&&M.api.getPlayerStateObject().Z(128);W=W.B||W.disableSharing&&M.api.getPresentingPlayerType()!==2||!b.showShareButton||b.Tr||T||b.uN||!1;M=M.api.qe().getPlayerSize().width;return!!b.videoId&&M>=240&&!W}; XaL=function(M,W){b5t(M);const b=W.links||W.shareTargets;let T=0;for(let V=0;V{var E=J.url;if(g.PF(a)){var n={};n.target=n.target||"YouTube";n.width=n.width||"600";n.height=n.height||"600";{var C=n;C||(C={});n=window;var l=E instanceof xp?E:g.zp(typeof E.href!="undefined"?E.href:String(E));var N=self.crossOriginIsolated!==void 0,R="strict-origin-when-cross-origin"; window.Request&&(R=(new Request("/")).referrerPolicy);var f=C.noreferrer;if(N&&f&&R==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");R=f&&!N;E=C.target||E.target;f=[];let A=[],qa=!1;for(var x in C){const Xs=C[x];switch(x){case "width":case "height":case "top":case "left":f.push(x+"="+Xs);break;case "target":break;case "noopener":case "noreferrer":Xs?A.push(x):(qa=!0,A.push(x+"=false"));break;case "attributionsrc":f.push(x+ (Xs?"="+Xs:""));break;default:f.push(x+"="+(Xs?1:0))}}x=E!==void 0&&!["_blank","_self","_top","_parent",""].includes(E);x=KZ()&&x;ToL&&N&&f.length===0&&A.length>0&&!x&&!qa?(A.length===2&&(A=["noreferrer"]),g.cX(n,l,E,A[0]),n=eD()):(N=f.join(","),Cy()&&n.navigator&&n.navigator.standalone&&E&&E!="_self"?(N=g.Gr("A"),g.OY(N,l),N.target=E,R&&(N.rel="noreferrer"),((C=C.attributionsrc)||C==="")&&N.setAttribute("attributionsrc",C),C=document.createEvent("MouseEvent"),C.initMouseEvent("click",!0,!0,n,1), N.dispatchEvent(C),n=eD()):R?(n=g.cX(n,"",E,N),C=g.Fh(l),n&&(n.opener=null,C===""&&(C="javascript:''"),C='',C=dH(C),(l=n.document)&&l.write&&(l.write(oB(C)),l.close()))):((n=g.cX(n,l,E,N))&&C.noopener&&(n.opener=null),n&&C.noreferrer&&(n.opener=null)))}n&&(n.opener||(n.opener=window),n.focus());a.preventDefault()}}); D.addOnDisposeCallback(g.UA(M.tooltip,D.element));B==="Facebook"?M.api.createClientVe(D.element,D,164504):B==="Twitter"&&M.api.createClientVe(D.element,D,164505);M.J(D.element,"click",()=>{M.api.logClick(D.element)}); M.api.logVisibility(D.element,!0);M.V.push(D);T++}const X=W.more||W.moreLink,G=new g.w({K:"a",rK:["ytp-share-panel-service-button","ytp-button"],U:[{K:"span",N:"ytp-share-panel-service-button-more",U:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{K:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",Y:{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"}}]}]}],Y:{href:X,target:"_blank",title:"M\u00e1s"}});G.listen("click",V=>{var J=X;M.api.logClick(M.moreButton.element);J=qPa(M,J);g.Pf(J,M.api,V)&&g.q8(M.api,"SHARE_CLICKED")}); G.addOnDisposeCallback(g.UA(M.tooltip,G.element));M.api.createClientVe(G.element,G,164506);M.J(G.element,"click",()=>{M.api.logClick(G.element)}); M.api.logVisibility(G.element,!0);M.V.push(G);M.moreButton=G;M.updateValue("buttons",M.V)}; b5t=function(M){for(const W of M.V)W.detach(),g.cG(W);M.V=[]}; qPa=function(M,W){const b={};g.tP(M.api.G())&&(g.GW(M.api,"addEmbedsConversionTrackingParams",[b]),W=g.JM(W,b));return W}; var TvQ=function(M){return hz[y[0]](this,4,M)}; var iZ=function(M){return M===void 0||M.startSec===void 0||M.endSec===void 0?!1:!0},hu=function(M,W){M.startSec+=W; M.endSec+=W},Au=function(M){M.L.lN("shopping_overlay_visible"); M.L.lN("shopping_overlay_preview_collapsed");M.L.lN("shopping_overlay_preview_expanded");M.L.lN("shopping_overlay_expanded")},j8P=function(M,W){M.isContentForward=W; g.H(M.badge.element,"ytp-suggested-action-badge-content-forward",W)},z8=function(M){const W=M.isContentForward&&!M.EY(); g.H(M.badge.element,"ytp-suggested-action-badge-preview-collapsed",W&&M.Z);g.H(M.badge.element,"ytp-suggested-action-badge-preview-expanded",W&&M.A)},GLt=function(M){M.X&&M.Ds.element.removeChild(M.X.element); M.X=void 0},JxS=function(M,W){return W.map(b=>{if((b=g.z(b,ViS)?.thumbnail?.thumbnails)&&b.length!==0)return b[0].url}).filter(b=>b!==void 0).map(b=>{b=new g.w({K:"img", N:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:b}});g.t(M,b);return b})},uZ=function(M,W,b){return new g.Ap(M*1E3,W*1E3,{priority:9, namespace:b})},Bot=function(M){M.J(M.L,g.kJ("shopping_overlay_visible"),()=>{M.V0(!0)}); M.J(M.L,g.KX("shopping_overlay_visible"),()=>{M.V0(!1)}); M.J(M.L,g.kJ("shopping_overlay_expanded"),()=>{M.BY=!0;c1(M)}); M.J(M.L,g.KX("shopping_overlay_expanded"),()=>{M.BY=!1;c1(M)}); M.J(M.L,g.kJ("shopping_overlay_preview_collapsed"),()=>{M.Z=!0;z8(M)}); M.J(M.L,g.KX("shopping_overlay_preview_collapsed"),()=>{M.Z=!1;z8(M)}); M.J(M.L,g.kJ("shopping_overlay_preview_expanded"),()=>{M.A=!0;z8(M)}); M.J(M.L,g.KX("shopping_overlay_preview_expanded"),()=>{M.A=!1;z8(M)})},Dzl=function(M){var W=M.api.G(),b=M.api.getVideoData(); b=g.lb(W)+b.xk;if(!g.tP(W))return b;W={};g.GW(M.api,"addEmbedsConversionTrackingParams",[W]);return g.JM(b,W)},a7t=function(M){if(!M.api.G().d9){var W=M.api.getVideoData(),b=new g.nA("Suscribirme",null,"Suscrito",null,!0,!1,W.YJ,W.subscribed,"channel_avatar",null,M.api,!0); M.api.createServerVe(b.element,M);M.api.setTrackingParams(b.element,W.subscribeButtonRenderer?.trackingParams||null);M.J(b.element,"click",()=>{M.api.logClick(b.element)}); M.subscribeButton=b;g.t(M,M.subscribeButton);M.subscribeButton.cY(M.element)}},Ehg=function(M,W,b="",T=""){W?(M.V!==b&&(M.Z.style.backgroundImage=`url(${b})`,M.V=b),M.updateValue("channelLogoLabel",g.tZ("Foto de $CHANNEL_NAME",{CHANNEL_NAME:T})),g.pY(M.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mw(M.api.getRootNode(),"ytp-title-enable-channel-logo"); M.api.logVisibility(M.Z,W&&M.gK);M.api.logVisibility(M.channelName,W&&M.gK)},nht=function(M,W){if(M.Z){W=Math.floor(W*.4); W=Math.max(W,47);var b=W+2;if(M.B!==b){M.B=b;M.V.height=b;M.Z.clearRect(0,0,1,b);var T=M.Z.createLinearGradient(0,2,0,2+W),q=W-42;T.addColorStop(0,"rgba(0, 0, 0, 0)");T.addColorStop(q/W,"rgba(0, 0, 0, 0.3)");T.addColorStop(1,"rgba(0, 0, 0, 0.68)");M.Z.fillStyle=T;M.Z.fillRect(0,2,1,W);M.element.style.height=`${b}px`;try{M.element.style.backgroundImage=`url(${M.V.toDataURL()})`}catch(X){}}}},yxs=function(M,W){W!==M.C&&(M.update({chapterTitle:W, ariaLabel:W}),M.C=W);W?M.show():M.hide()},UzQ=function(M){M.Z.disabled=M.V==null; g.H(M.Z,"ytp-chapter-container-disabled",M.Z.disabled);M.SR()},Cll=function(M,W,b,T,q){const X=W.Gl/W.rows; let G=Math.min(b/(W.q4/W.columns),T/X),V=W.q4*G,J=W.Gl*G;V=Math.floor(V/W.columns)*W.columns;J=Math.floor(J/W.rows)*W.rows;let B=V/W.columns,D=J/W.rows;const a=-W.column*B,E=-W.row*D;q&&X<=45&&(D-=1/G);B-=2/G;M=M.style;M.width=`${B}px`;M.height=`${D}px`;q||(T=(T-D)/2,b=(b-B)/2,M.marginTop=Math.floor(T)+"px",M.marginBottom=Math.ceil(T)+"px",M.marginLeft=Math.floor(b)+"px",M.marginRight=Math.ceil(b)+"px");M.background=`url(${W.url}) ${a}px ${E}px/${V}px ${J}px`},SP=function(M,W){const b=!!M.Z; M.Z=W;M.Z?(b||(M.events.J(M.api,"videodatachange",()=>{SP(M,M.api.SH())}),M.events.J(M.api,"progresssync",M.onProgress),M.events.J(M.api,"appresize",M.A)),M.frameIndex=NaN,O7(M),M.fade.show(200)):(b&&M.events.V(),M.fade.hide(),M.fade.stop())},O7=function(M){var W=M.Z; const b=M.api.getCurrentTime(),T=M.api.qe().getPlayerSize();var q=M4(W,T.width);q=qRG(W,q,b);M.update({timestamp:g.O3(b)});q!==M.frameIndex&&(M.frameIndex=q,T$S(W,q,T.width),W=MTQ(W,q,T.width),Cll(M.V,W,T.width,T.height))},kLJ=function(M,W){return M.L.j("delhi_modern_web_player_icons")?W?{K:"svg", Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:W?{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"g",N:"ytp-fullscreen-button-corner-2",U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",N:"ytp-fullscreen-button-corner-3",U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",N:"ytp-fullscreen-button-corner-0",U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g",N:"ytp-fullscreen-button-corner-1", U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"g",N:"ytp-fullscreen-button-corner-0",U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",N:"ytp-fullscreen-button-corner-1",U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",N:"ytp-fullscreen-button-corner-2",U:[{K:"path",TY:!0,N:"ytp-svg-fill", Y:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",N:"ytp-fullscreen-button-corner-3",U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}},KtQ=function(M,W){W?M.element.classList.add("ytp-jump-button-enabled"):M.element.classList.remove("ytp-jump-button-enabled"); M.L.logVisibility(M.element,W);M.L.aq()},vhS=function(M){var W=M.L.getVideoData()?.lV; if(W){M=M.A.jT;for(const b of W)if((W=M[b])&&W.onTap?.innertubeCommand?.changeEngagementPanelVisibilityAction?.targetId!=="engagement-panel-macro-markers-problem-walkthroughs")return W}},mzS=function(M){return M.L.j("delhi_modern_web_player_icons")?TXg():kX()},Ltq=function(M,W){M.V.style.setProperty("--yt-slider-shape-gradient-percent",`${(W-M.B)/(M.C-M.B)*100}%`)},xZ=function(M,W,b){if((M^17)>>3==1){for(var T=64,q=[];++T-q[y[6]]-32;){switch(T){case 58:T-=14; case 91:case 92:case 93:continue;case 123:T=47;case 94:case 95:case 96:continue;case 46:T=95}q[y[29]](String[y[22]](T))}var X=q}if((M&57)==M){hz(24,W);if(T=W[y[17]][y[76]]||null)T=l7G[0](T),W[y[42]](y[76],T);X=[]}(M&39)==M&&(b=(b%W[y[6]]+W[y[6]])%W[y[6]],W[y[33]](b,1));return X},P0=function(M,W,b=!1){M.A&&(cancelAnimationFrame(M.A),M.A=0); b?tiL(M,M.Z,W):Z5J(M,W)},tiL=function(M,W,b){const T=performance.now(),q=b-W; if(q!==0){var X=G=>{G=(G-T)/400;G>1&&(G=1);Z5J(M,W+q*k9(I7P,Kc(I7P,G)));M.A=G<1?requestAnimationFrame(X):0}; M.A=requestAnimationFrame(X)}},Z5J=function(M,W){M.Z=W; M.update({slidervalue:M.Z,ariaValueNow:M.Z,ariaValueText:`${M.Z.toFixed(2)}`});M.V.valueAsNumber=M.Z;Ltq(M,W)},NoJ=function(M,W){M.element.classList.toggle("ytp-volume-popover-hovering",W); M.isVisible=W;(M=M.element.closest(".ytp-chrome-bottom"))&&M.classList.toggle("ytp-volume-popover-showing",W)},H5Q=function(M){var W=null; const b="No puedes cambiar el volumen en este navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/);W=new eP(M.L,{K:"span",rK:["ytp-popup","ytp-generic-popup"],Y:{tabindex:"0"},U:[b[0],{K:"a",Y:{href:"https://support.google.com/youtube/?p=noaudio",target:M.L.G().X},R0:b[2]},b[4]]},100,!0);g.t(M,W);W.hide();W.subscribe("show",T=>{M.L.Su(W,T)}); g.Im(M.L,W.element,4)},rxP=function(M,W){M.D=W; let b=M.xk;M.L.j("delhi_modern_web_player_icons")?M.V.hn("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${dw}, ${of}) scale(${W}) translate(-${dw},-${of})`):W&&(b+=Rut(f7Q,R8J,W));M.O.setAttribute("d",b)},i5s=function(M,W){let b; W===1?b=M.L.j("delhi_modern_web_player_icons")?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:t1():b=M.V;M.lV=W;if(M.L.j("delhi_modern_web_player_icons"))M.V.hn("ytp-svg-volume-animation-small-ripple").setAttribute("transform",`translate(${xzG}, ${Fts}) scale(${1-W}) translate(-${xzG},-${Fts})`),M.V.hn("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${dw}, ${of}) scale(${M.D-W}) translate(-${dw}, -${of})`);else{var T=20*W;for(var q=0;q=3&&M.L.getPresentingPlayerType()!==2},Axt=function(M){const W=m3(M.L.lk()); return W?M.Z?W.hasNext():W.hasPrevious():!1},SPg=function(M,W){return M?W?qup():U3():W?{K:"svg", Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:aqP()},gw=function(M,W){const b=g.O3(W),T=g.tZ("Ir al momento $PROGRESS",{PROGRESS:g.O3(W,!0)}); M.update({ariamin:0,ariamax:Math.floor(M.api.getDuration()),arianow:Math.floor(W),arianowtext:T,seekTime:b})},s7=function(M){M.X=NaN; M.D=0;M.W=M.B},ww=function(M,W){M.O&&(M.O.l9=!0); M.update({seekTime:g.O3(W)});const b=M.C*M.scale;W=W-b?-W/b*M.interval*.5:-(W+b/2)/b*M.interval}; var A1l=function(){return xZ[y[0]](this,26)}; O5t=function(M){return-((M.S.offsetWidth||(M.frameCount-1)*M.C*M.scale)-M.Z/2)}; ohS=function(M){var W=M.api.SH();if(W){var b=90*M.scale,T=M4(W,160*M.scale);if(W=W.levels[T]){M.C=W.width;if(!M.A.length){T=[];var q=WM(W,W.V()),X=W.columns*W.rows,G=W.frameCount;for(var V=0;V<=q;V++){var J=G M.A.length;)M.thumbnails.pop()?.dispose();for(;M.thumbnails.lengthb.length;)M.V.pop()?.dispose();for(;M.V.length0&&(M.V=W,M.W.style.height=`${M.V}px`)}; Q8Q=function(M,W,b,T,q=!1){cxg(M,T);b=oNa(W,b,M.V,T,q);W=W.length===0?"":ePa(b);M.api.j("delhi_modern_web_player")?M.B.setAttribute("d",W):M.S.setAttribute("d",W);M.S2=W!=="";g.H(M.api.getRootNode(),"ytp-heat-map",M.S2);g.H(M.api.getRootNode(),"ytp-heat-map-played_bar",M.api.j("web_player_heat_map_played_bar")&&W!=="");M.api.j("delhi_modern_web_player")?(M.A.style.display="none",M.Z.style.display="none"):M.B.style.display="none"}; ghy=function(M,W,b,T,q=!1){cxg(M,T);b=cJy(W,b,M.V,T,q);W=W.length===0?"":ePa(b);M.api.j("delhi_modern_web_player")?M.B.setAttribute("d",W):M.S.setAttribute("d",W);M.S2=W!=="";g.H(M.api.getRootNode(),"ytp-heat-map",M.S2);M.api.j("delhi_modern_web_player")?(M.A.style.display="none",M.Z.style.display="none"):M.B.style.display="none"}; pA=function(M,W){g.iq(M.Z,"width",W)}; YK=function(M,W){g.iq(M.Z,"margin-right",`${W}px`)}; waL=function(M){if(M.Z.length===0){const W=new s8G;M.Z.push(W);g.t(M,W);W.cY(M.Ds,0)}for(;M.Z.length>1;)M.Z.pop().dispose();pA(M.Z[0],"100%");M.Z[0].startTime=0;M.Z[0].title=""}; $3=function(M){const W=g.Zk(M.api.G())&&(M.api.j("web_shorts_pip")||M.api.j("web_watch_pip"));return!M.api.getVideoData()?.isLivePlayback&&!M.api.isMinimized()&&!M.api.isInline()&&(!M.api.iy()||!W)}; YPg=function(M){const W=new pag(M.api);M.A.push(W);g.t(M,W);W.cY(M.Zs)}; Mk=function(M){for(;M.D.length;)M.D.pop().dispose()}; MNa=function(M){return g.z(g.z(M.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,oU)?.playerBar,$fL)?.chapters}; bly=function(M,W){let b=0,T=!1;for(const G of W){if(g.z(G,W_J)){W=g.z(G,W_J);var q={startTime:NaN,title:null,onActiveCommand:void 0},X=W.title;q.title=X?g.Ga(X):"";X=W.timeRangeStartMillis;X!=null&&(q.startTime=X);q.onActiveCommand=W.onActiveCommand;W=q;b===0&&W.startTime!==0&&(M.Z[b].startTime=0,M.Z[b].title="",M.Z[b].onActiveCommand=W.onActiveCommand,b++,T=!0);M.Z.length<=b&&(q=new s8G,M.Z.push(q),g.t(M,q),q.cY(M.Ds,M.Ds.children.length));M.Z[b].startTime=W.startTime;M.Z[b].title=W.title?W.title: "";M.Z[b].onActiveCommand=W.onActiveCommand;M.Z[b].index=T?b-1:b}b++}for(;b=B&&E<=D&&a.push(V)}q>0&&(M.Zs.style.height=`${q}px`);Q8Q(M.A[J],a,b,q,J===0);a.length>0&&(G=a[a.length-1])}g.WS(M); W=W.heatMarkersDecorations||[];V=[];for(const J of W)if(W=g.z(J,VNy))T=W.label,V.push({visibleTimeRangeStartMillis:W.visibleTimeRangeStartMillis??-1,visibleTimeRangeEndMillis:W.visibleTimeRangeEndMillis??-1,decorationTimeMillis:W.decorationTimeMillis??NaN,label:T?g.Ga(T):""});M.heatMarkersDecorations=V}}; g.WS=function(M){M.An=M.Z.length-1;M.OY=0;JbQ(M,!0)&&JbQ(M,!1);var W=0;for(var b=0;b=0;T--)if(M.Z[T].width>0){YK(M.Z[T],0);const q=Math.floor(M.Z[T].width);M.Z[T].width=q;pA(M.Z[T],`${q}px`);break}M.Z[b].width=0;pA(M.Z[b],"0")}else b===M.Z.length-1?(T=Math.floor(M.Z[b].width+W),M.Z[b].width=T,pA(M.Z[b],`${T}px`)):(W=M.Z[b].width+W,T=Math.round(W),W-=T,M.Z[b].width=T,pA(M.Z[b],`${T}px`));b=0;if(M.A.length===M.Z.length)for(W= 0;W0&&M.api.getPlayerSize().width<=T;M.api.j("delhi_modern_web_player")?W=M.api.getPlayerSize().width<=528?T?56:64:M.C?T?72:96:T?56:72:M.C?W=54:g.tP(b)&&!b.V&&(W=40);M.sY=W}}}; Tt=function(M,W){for(const b of W){W=Vm(M,b.timeRangeStartMillis/(M.B.Z*1E3),JG(M));const T=M.api.j("delhi_modern_web_player")?.667:.6;g.iq(b.element,"transform",`translateX(${W}px) scaleX(${T})`)}}; EOs=function(M,W){W=g.z(W.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,oU);if(W?.progressColor)for(let b=0;bq.startTime&&q.width>0&&T++;T=T<0?0:T;q=b.Z-Xq(M)*M.An;return W*q+Xq(M)*T+b.A}; JG=function(M){let W=M.bV.x;W=g.fy(W,0,M.W);M.u3.update(W,M.W);return M.u3}; JbQ=function(M,W){let b=0,T=!1;const q=M.Z.length;let X=M.B.Z*1E3;X===0&&(X=M.api.getProgressState().seekableEnd*1E3);if(X>0&&M.W>0){const J=M.W-Xq(M)*M.An,B=M.OY===0?3:J*M.OY;for(var G of M.Z)G.width=0;for(;b1);const a=(X===0?0:D/X*J)+M.Z[b].width;if(a>B)M.Z[b].width=a;else{M.Z[b].width=0;G=M;var V=b;const E=G.Z[V-1];E!==void 0&&E.width>0?E.width+= a:VM.OY&&(M.OY=D/X),T=!0)}b++}}return T}; Xq=function(M){return M.api.j("delhi_modern_web_player")?4:M.C?3:2}; j_=function(M,W,b){return BS(M)?new Dn(Math.max(W,M.IT.startTimeMs/1E3),Math.min(b,M.IT.endTimeMs/1E3)):new Dn(W,b)}; Gt=function(M,W,b){M.O=W;M.XX=b;const T=JG(M);var q=M.B.Z,X=gzg(M.B,M.O),G=g.tZ("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.O3(X,!0),DURATION:g.O3(q,!0)}),V=ZG(M.Z,X*1E3);V=M.Z[V].title;M.update({ariamin:Math.floor(M.B.V),ariamax:Math.floor(q),arianow:Math.floor(X),arianowtext:V?V+" "+G:G});q=M.clipStart;X=M.clipEnd;M.IT&&M.api.getPresentingPlayerType()!==2&&(q=M.IT.startTimeMs/1E3,X=M.IT.endTimeMs/1E3);q=ew(M.B,q,0);V=ew(M.B,X,1);G=M.api.getVideoData();X=g.fy(W,q,V);b=G?.cP()?1:g.fy(b,q,V);W= Vm(M,W,T);g.iq(M.Fp,"transform",`translateX(${W}px)`);M.api.j("delhi_modern_web_player")&&M.api.j("delhi_modern_web_player_cutout")&&ah(M,W);Es(M,T,q,X,"PLAY_PROGRESS");G?.yz()?(W=M.api.getProgressState().seekableEnd)&&Es(M,T,X,ew(M.B,W),"LIVE_BUFFER"):Es(M,T,q,b,"LOAD_PROGRESS");M.api.j("web_player_heat_map_played_bar")&&M.A[0]?.X(X)}; Bcl=function(M){M.ek.style.removeProperty("height");for(const W of Object.keys(M.Lp))nOg(M,W);n0(M);Gt(M,M.O,M.XX)}; DfL=function(M){if(!M.api.getVideoData()?.yz()){var W=JG(M);Es(M,W,M.O,Math.max(W.V,M.O),"HOVER_PROGRESS");var b=ym(M,W.Z*M.O,!0),T=ym(M,W.B,!0);for(let q=b;q<=T;q++)g.H(M.Z[q].B,"ytp-hover-progress-light",W.V>M.O);g.H(M.ek,"ytp-scrubber-button-hover",b===T&&M.Z.length>1);M.api.j("web_player_heat_map_played_bar")&&M.A[0]?.D(W.V)}}; BS=function(M){return!!M.IT?.postId&&M.api.getPresentingPlayerType()!==2}; Us=function(M,W,b,T,q){W=ybq(M,W);b=ybq(M,b);M=M.progressBar.visualElement;T={seekData:{startMediaTimeMs:W,endMediaTimeMs:b,seekSource:T}};(W=g.nT())&&Mu(W,M,q,T)}; k3=function(M,W){W?M.X||(M.element.removeAttribute("aria-disabled"),M.X=new g.C0(M.progressBar,!0),M.api.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&M.X.subscribe("hoverstart",M.eI,M),M.X.subscribe("hovermove",M.G4,M),M.X.subscribe("hoverend",M.JX,M),M.X.subscribe("dragstart",M.Dc,M),M.X.subscribe("dragmove",M.F5,M),M.X.subscribe("dragend",M.YX,M),M.api&&M.api.j("delhi_modern_web_player")&&M.api.j("delhi_modern_web_player_cutout")&&(M.p7=new g.C0(M.progressBar, !0),M.p7.subscribe("hoverstart",()=>{M.XP=!0;ah(M)},M),M.p7.subscribe("hoverend",()=>{M.XP=!1; ah(M)},M)),M.vg=M.listen("keydown",M.oV)):M.X&&(M.element.setAttribute("aria-disabled","true"),M.fN(M.vg),M.X.cancel(),M.X.dispose(),M.X=null)}; K0=function(M){M.V&&(M.V.disable(),M.wK=0,M.Zs.style.removeProperty("transform"),M.progressBar.style.removeProperty("transform"),M.EY.style.removeProperty("height"),M.element.parentElement&&M.element.parentElement.style.removeProperty("height"))}; Ufy=function(M,W){if(M.IT?.type==="repeatChapter"||W?.type==="repeatChapter")W&&(W=M.Z[ZG(M.Z,W.startTimeMs)],g.H(W.Z,"ytp-repeating-chapter",!1)),M.IT&&(W=M.Z[ZG(M.Z,M.IT.startTimeMs)],g.H(W.Z,"ytp-repeating-chapter",!0)),M.Z.forEach(b=>{g.H(b.Z,"ytp-exp-chapter-hover-container",!M.IT)})}; n0=function(M){var W=!!M.IT&&M.api.getPresentingPlayerType()!==2;let b=M.clipStart;var T=M.clipEnd;let q=!0,X=!0;W&&M.IT?(b=M.IT.startTimeMs/1E3,T=M.IT.endTimeMs/1E3):(q=b>M.B.V,X=M.B.Z>0&&T1){b=ym(M,W.B,!0);let T=0;for(let q=0;q0&&(T+=M.Z[q].width,T+=Xq(M));b=(M.Z[b].startTime+(W.B-T)/M.Z[b].width*((b===M.Z.length-1?M.B.Z*1E3:M.Z[b+1].startTime)-M.Z[b].startTime))/1E3||0}return b}; ym=function(M,W,b=!1){let T=0;b&&(W-=Cma(M,W)*Xq(M));for(const q of M.Z){if(W>q.width)W-=q.width;else break;T++}return T===M.Z.length?T-1:T}; kTS=function(M,W){const b=W/((M.C?135:90)-M.sY)*M.sY;g.iq(M.progressBar,"transform",`translateY(${-W}px)`);g.iq(M.Zs,"transform",`translateY(${-W}px)`);g.iq(M.EY,"transform",`translateY(${b}px)`);M.EY.style.height=`${W+b}px`;M.element.parentElement&&(M.element.parentElement.style.height=`${M.sY-b}px`)}; ybq=function(M,W){if(W<0)return"0";M=Math.floor(Math.min(W,M.api.getDuration())*1E3);return M>2**31-1?"0":String(M)}; K_P=function(M,W,b){if(b>=M.Z.length)return!1;const T=M.W-Xq(M)*M.An;return Math.abs(W-M.Z[b].startTime/1E3)/M.B.Z*T<4}; nOg=function(M,W){var b=M.Lp[W];W=M.FT[W];const T=JG(M);let q=ew(M.B,b.start/1E3,0),X;const G=Gwt(b,M.C)/T.width;X=ew(M.B,b.end/1E3,1);G!==Number.POSITIVE_INFINITY&&(q=g.fy(q,0,X-G));X=Math.min(X,q+G);b.color&&(W.style.background=b.color);b=q;W.style.left=`${Math.max(b*T.Z+T.A,0)}px`;mM(M,W,g.fy((X-b)*T.Z+T.A,0,T.width),T.width,!0)}; ah=function(M,W){M.api.getPresentingPlayerType()!==1?M.Ds.style.removeProperty("clip-path"):(W||(W=Vm(M,M.O,JG(M))),M.Ds.style.clipPath='path("'+(M.XP?vOP(M,8,W,M.C?50:36,0,6):vOP(M,4,W,M.C?34:24,2,3))+'")')}; Es=function(M,W,b,T,q){var X=M.Z.length,G=W.Z-M.An*Xq(M),V=b*G;b=ym(M,V);var J=T*G;G=ym(M,J);q==="HOVER_PROGRESS"&&(G=ym(M,W.Z*T,!0),J=W.Z*T-Cma(M,W.Z*T)*Xq(M));T=Math.max(V-mfL(M,b),0);for(V=b;Vq.width)W-=q.width,W-=Xq(M),T++;else break;return T===b?b-1:T}; mfL=function(M,W){if(W>=M.Z.length)return M.W;let b=0,T=0;for(;T0||M.A5.clientWidth>0?(X=W.clientWidth/b,M=-1*M.Hr.clientWidth/b):(X/=b,M=-1*M.Z[q].element.offsetLeft/b),g.iq(W,"background-size",`${X}px`),g.iq(W,"background-position-x",`${M}px`))}; lbL=function(M,W,b){b=M.Z[W].BP(b);mM(M,b,0,M.Z[W].width)}; g.tNp=function(M,W,b,T){const q=M.W!==b,X=M.C!==T;M.nx=W;M.W=b;M.C=T;$3(M)&&M.V?.EY(T);Bcl(M);M.Z.length===1&&(M.Z[0].width=b||0);q&&g.WS(M);M.V&&X&&$3(M)&&(M.V.isEnabled&&(W=M.C?135:90,b=W-M.sY,M.EY.style.height=`${W}px`,g.iq(M.Zs,"transform",`translateY(${-b}px)`),g.iq(M.progressBar,"transform",`translateY(${-b}px)`)),ohS(M.V))}; ZlL=function(M,W){const b=W.getId();M.Lp[b]===W&&(g.a5(M.FT[b]),delete M.Lp[b],delete M.FT[b])}; L0=function(M,W){M.V=!!W;M.Z(M.L.qe().getPlayerSize())}; Ibt=function(M,W,b,T){W={K:"span",rK:T,U:[W]};let q;T="ytp-swatch-color";if(M.O||M.S)T="ytp-swatch-color-white";b==="highres"?q="8K":b==="hd2880"?q="5K":b==="hd2160"?q="4K":b.indexOf("hd")===0&&b!=="hd720"&&(q="HD");q&&(W.U.push(" "),W.U.push({K:"sup",N:T,R0:q}));return W}; Ncg=function(M,W,b){const T=M.MK[W],q=g.mh[W];return Ibt(M,T?T.qualityLabel:q?`${q}p`:"Autom\u00e1tica",W,b)}; lV=function(M,W,b,T,q){const X=(W=M.S?M.C[W]:M.sY[W])&&W.quality;var G=W&&W.qualityLabel;G=G?G:"Autom\u00e1tica";T&&(G=`(${G}`);M=Ibt(M,G,X||"",q);T&&M.U.push(")");(T=(T=W&&W.paygatedQualityDetails)&&T.paygatedIndicatorText)&&b&&M.U.push({K:"div",N:"ytp-premium-label",R0:T});return M}; tG=function(M,W){M=Number(g.fy(W,M.B,M.A).toFixed(2));W=Math.floor((M+.001)*100%5+2E-15);let b=M;W!==0&&(b=M-W*.01);return Number(b.toFixed(2))}; HlJ=function(M,W){const b=Zn(W);M.S&&(M.Zs||W===M.sY)?(M.V(M.S),M.setContent(W.toString())):M.V(b)}; RWG=function(M){var W=M.O.map(Zn);M.C&&W.push(M.C);M.A(W);M.S=null;M.sY=null;W=M.L.getPlaybackRate();Ih(M.L)&&fbq(M,W);!M.O.includes(W)||M.Zs?M.V(M.S):M.V(Zn(W))}; fbq=function(M,W){M.sY=W;M.S=g.tZ("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:W.toString()});W=M.O.map(Zn);W.unshift(M.S);M.C&&W.push(M.C);M.A(W)}; rba=function(M,W,b,T){b=new g.M3({K:"div",rK:["ytp-menuitem"],Y:{tabindex:"0",role:"menuitemradio","aria-checked":T?"true":"false"},U:[{K:"div",rK:["ytp-menuitem-label"],U:[{K:"div",rK:["ytp-menuitem-container-with-badge"],U:[{K:"div",R0:"{{label}}"},M.yz]}]}]},b,M.B(W));b.listen("click",()=>{M.lV(W)}); return b}; Zn=function(M){return M.toString()}; Ih=function(M){return M.j("web_settings_menu_surface_custom_playback")}; xfL=function(M,W){return!!W&&M.getAvailablePlaybackRates()[M.getAvailablePlaybackRates().length-1]<=2}; Nk=function(M){return M.j("web_settings_menu_surface_custom_playback")&&M.j("web_settings_use_input_slider")}; F_t=function(M,W){M.publish("settingChange",M.setting+"Override",!W);M.tT.Xo()}; ilL=function(M,W){M.languages=g.IQ(W,M.S,M);M.A(g.dG(W,M.S))}; hWS=function(M,W){M.L.setOption("captions","sampleSubtitles",W)}; HS=function(M){return Object.values(M.tracks).find(W=>W.languageCode==="en"&&W.kind==="asr")}; f0=function(M,W){M.L.setOption("captions","track",W)}; AbL=function(M,W){M.settingsButton=W;M.element.id=W.element.getAttribute("aria-controls")}; zWl=function(M){if(M.L.j("delhi_modern_web_player_icons"))return M=eY.includes("es")?Rh(M)&&M.isEnabled()?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:E3():Rh(M)&&M.isEnabled()?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:UCt()}; Rh=function(M){return g.uj(M.L.lk())!=null?g.uj(M.L.lk()).rR()?!!M.L.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; unt=function(M,W){const b=M.liveBadge.element,T=M.api.isLifaAdPlaying();b.disabled=T||W;!r1(M)||M.D===W&&M.W===M.liveIndicatorText&&M.C===M.isPremiere||(M.D=W,M.W=M.liveIndicatorText,M.C=M.isPremiere,M.SR(),W?b.classList.add("ytp-live-badge-is-livehead"):b.classList.remove("ytp-live-badge-is-livehead"),M.liveIndicatorText?M.liveBadge.setContent(M.liveIndicatorText):M.liveBadge.setContent(M.isPremiere?"Estreno":"En directo"),W?M.Z&&(M.Z(),M.Z=null,b.removeAttribute("data-tooltip-title")):(b.setAttribute("data-tooltip-title", "Accede a la emisi\u00f3n en directo"),M.Z=g.UA(M.tooltip,M.liveBadge.element)))}; SgP=function(M,W){const b=M.IT!==W;M.IT=W;b&&x3(M)}; Fq=function(M){return!!M.IT&&!!M.IT.postId&&M.api.getPresentingPlayerType()!==2&&(!M.IT.type||M.IT.type==="clips")}; r1=function(M){const W=M.api.G().j("enable_linear_program_progress"),b=M.api.getPresentingPlayerType()===2;return M.SC&&!Fq(M)&&(!W||!M.V)&&!b}; x3=function(M){M.updateValue("clipicon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",Y:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); M.SC&&!M.V?M.updateValue("watchfullvideo","Ver emisi\u00f3n en directo"):M.updateValue("watchfullvideo","Ver v\u00eddeo completo");g.H(M.element,"ytp-clip",Fq(M));g.H(M.element,"ytp-live",r1(M))}; Olg=function(M,W){M.eW(W.width>=350)}; iV=function(M,W,b){var T=Math.floor(W),q=`${T}% ${"volumen"}`+(b?" silenciado":"");b=b?0:W/100;M.updateValue("valuenow",T);M.updateValue("valuetext",q);T=M.B?78:52;q=!M.api.j("delhi_modern_web_player")&&M.B?18:12;M.lV.style.left=`${(T-q)*b}px`;M.volume=W}; Pmt=function(M){const W=M.api.sX();M.B!==W&&(M.B=W,iV(M,M.api.getVolume(),M.api.isMuted()))}; hG=function(M,W,b,T,q){const X=M.Z||M.isDragging||M.V||M.V3;M.Z=W;M.isDragging=b;M.V=T;M.V3=q;W=M.Z||M.isDragging||M.V||M.V3;X!==W&&(W?M.S=M.J(M.element,"wheel",M.sY):(M.fN(M.S),M.S=null),g.H(M.C,"ytp-volume-slider-active",W))}; AG=function(M,W,b,T,q){W.cY(b,q);M.L.j("frosted_glass_controls_opacity_animation")&&(M=W.element,T&&(M=W.hn(T)),M.classList.add("ytp-autohide-fade-transition"))}; uV=function(M,W,b){M.L.j("delhi_modern_web_player")?W.cY(M.A.hn(zt[b])):W.cY(M.A.element)}; eWq=function(M){M.Z.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",M.D.isExpanded())}; dfP=function(M,W){M.L.getPlayerStateObject().isCued()||W?W&&(M.yz.hide(),M.BY.hide(),M.muteButton&&M.muteButton.dG(!1),M.C&&M.C.dG(!1),M.S&&M.S.dG(!1),M.L.XY(M.BP())):W||(M.yz.show(),M.BY.show(),M.muteButton&&M.muteButton.dG(!0),M.C&&M.C.dG(!0),M.S&&M.S.dG(!0),M.d5())}; S_=function(M){if(M.L.j("web_player_rtr_ctrls")&&M.L.qe().SX)return 0;const W=M.L.sX(),b=M.L.getVideoData().uN;let T=0;M.L.sX()&&M.L.isEmbedsShortsMode()&&(T=(M.L.qe().getPlayerSize().width-M.L.getVideoContentRect().width)/2);return 12*(b?0:W?2:1)+T}; oOQ=function(M){const W=M.L.qe().getPlayerSize().width;return Math.max(W-S_(M)*2,100)}; Os=function(M){var W=M.L.sX()?72:50;const b=M.L.G();g.Zk(b)&&(b.j("delhi_modern_web_player")?(W=g.TO(b.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),W=M.L.j("delhi_modern_web_player_compact_controls")||W>0&&M.L.getPlayerSize().width<=W,W=M.L.sX()?b.j("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:W?70:78,M.L.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(M=getComputedStyle(M.L.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",W+=Number(M.replace("px","")))):W=62,g.Th(b)&&(W=54));return W}; cby=function(M){M.suggestedActions={};M.L.lN("suggested_action_button_visible");M.Z=null;M.L.setTrackingParams(M.badge.element,null);M.B=!1;M.A=!1}; QYg=function(M){M.updateValue("channelLink","");M.updateValue("channelName","");g.Th(M.api.G())||M.api.j("enable_channel_title_always_focusable")?M.updateValue("channelTitleFocusable","0"):M.updateValue("channelTitleFocusable","-1")}; g.UA=function(M,W){if(M.yz)return()=>{}; W.addEventListener("mouseover",M.C);W.addEventListener("focus",M.C);const b=M.env.j("player_tooltip_data_title_killswitch")?W.getAttribute("title"):W.getAttribute("data-tooltip-title");b&&!W.hasAttribute("aria-label")&&W.setAttribute("aria-label",b);return()=>{M.Z===W&&M.S();W.removeEventListener("mouseover",M.C);W.removeEventListener("focus",M.C)}}; PS=function(M){let W;if(M.Z){W=M.Z.getAttribute("data-tooltip-text");if(M.B&&M.Z.getAttribute("aria-label")!==M.B)var b=M.B;var T=M.Z.getAttribute("aria-keyshortcuts"),q=M.Z.getAttribute("data-title-no-tooltip");T&&q&&(b=g.tZ("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:q,SHORTCUT_KEY:T}));b&&M.Z.setAttribute("aria-label",b);if(W&&!M.D){gOJ(M,!0);var X=M.Z;M.updateValue("text",W);b=X.getAttribute("data-duration");M.update({title:M.B,duration:b});X=X.getAttribute("data-preview"); M.env.j("delhi_modern_web_player")?(M.updateValue("title",q),M.updateValue("keyBoardShortcutTitle",T.toUpperCase())):gOJ(M,!1);T=243*M.scale;q=141*M.scale;M.bg.style.width=`${T}px`;M.bg.style.height=`${q}px`;M.bg.style.backgroundImage=X?`url(${X})`:"";M.bg.style.backgroundSize=`${T}px ${q}px`;M.wrapper.style.width=`${T}px`;g.Yc(M.element,["ytp-text-detail","ytp-preview"]);g.H(M.element,"ytp-has-duration",!!b)}else q&&T&&M.env.j("delhi_modern_web_player")?(M.updateValue("text",q),M.updateValue("keyBoardShortcut", T.toUpperCase())):M.updateValue("text",M.B),g.WN(M.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);b=M.Z;b.hasAttribute("data-tooltip-offset-y")?(b=Number(b.getAttribute("data-tooltip-offset-y")),b=isNaN(b)?0:b):b=0;sYt(M,!!W,void 0,b)}}; gOJ=function(M,W){M.env.j("delhi_modern_web_player")&&M.scale!==.6&&(M.scale=W?.8:1)}; w1L=function(M,W){g.H(M.element,"ytp-preview",W>=0);if(!(W<0||W===M.A)){M.A=W;W=243*M.scale;var b=141*M.scale,T=MTQ(M.V,M.A,W);Cll(M.bg,T,W,b,!0);M.Zs.start()}}; sYt=function(M,W,b,T){const q=Math.min(M.cQ,300*M.scale);M.element.style.maxWidth=W?"":`${q}px`;M.xk.Ar(M.element,M.Z,b,M.type===1,T);M.element.style.top?g.pY(M.element,"ytp-bottom"):M.element.style.bottom&&g.pY(M.element,"ytp-top");M.type===3&&M.sY.start()}; p1a=function(M,W,b,T){if(W&&!W.hasAttribute)M=new g.EF("showElementTooltip called with non-element.",W.toString()),g.O(M);else{isNaN(M.A)||(M.A=NaN,M.bg.style.background="");g.Mw(M.element,"ytp-tooltip-progress-bar-style");M.Z=W;M.D=!!T;T?M.B=T:(M.env.j("player_tooltip_data_title_killswitch")?M.B=W.getAttribute("title"):M.B=W.getAttribute("data-tooltip-title"),M.env.j("player_tooltip_data_title_killswitch")?W.removeAttribute("title"):W.removeAttribute("data-tooltip-title"));g.s9(M.element,"ytp-tooltip"); M.api.j("frosted_glass_controls_opacity_animation")&&g.pY(M.element,"ytp-frosted-glass-fade-transition");var q=W.getAttribute("data-tooltip-image");q&&(M.image.style.backgroundImage=`url(${q})`);T?M.update({ariaHidden:"false"}):M.update({ariaHidden:"true"});g.H(M.element,"ytp-tooltip-image-enabled",!!q);W=W.getAttribute("data-tooltip-opaque");g.H(M.element,"ytp-tooltip-opaque",!!W);M.type=b;M.api.addEventListener("appresize",M.O);M.W&&(PS(M),M.fade.show(0))}}; Ygp=function(M){const W=M.Z;M.type===3&&M.sY.stop();M.api.removeEventListener("appresize",M.O);M.D||(M.env.j("player_tooltip_data_title_killswitch")?W.setAttribute("title",M.B):W.setAttribute("data-tooltip-title",M.B));M.B="";M.Z=null;M.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});M.wrapper.style.width=""}; $3Q=function(M){if(!M.isRequestPending){M.isRequestPending=!0;M.zv(3);var W=M.L.getVideoData();W=M.Z?W.removeFromWatchLaterCommand:W.addToWatchLaterCommand;const b=M.L.M1(),T=M.Z?()=>{M.Z=!1;M.isRequestPending=!1;M.zv(2);M.L.G().D&&g.q8(M.L,"WATCH_LATER_VIDEO_REMOVED")}:()=>{M.Z=!0; M.isRequestPending=!1;M.zv(1);M.L.G().V&&M.L.f9(M.element);M.L.G().D&&g.q8(M.L,"WATCH_LATER_VIDEO_ADDED")}; uA(b,W).then(T,()=>{M.isRequestPending=!1;M.zv(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");M.L.G().D&&g.q8(M.L,"WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; McJ=function(M){const W=M.L.getPlayerSize(),b=M.L.G(),T=M.L.getVideoData(),q=g.tP(b)&&g.Le(M.L)&&M.L.getPlayerStateObject().Z(128),X=b.B;return b.FT&&W.width>=240&&!T.isAd()&&T.FT&&!q&&!T.uN&&!M.L.isEmbedsShortsMode()&&!X}; WqQ=function(M,W){if(W!==M.icon){let b;switch(W){case 3:b=dC();break;case 1:b=J1();break;case 2:b={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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:b={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path", TY:!0,Y:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}M.updateValue("icon",b);M.icon=W}}; bkL=function(M,W){af(g.BQ(M.L.G()),"wl_button",()=>{QHs({videoId:W});window.location.reload()})}; TmG=function(M){const W=M.api.G(),b=M.api.getPlayerStateObject().Z(128);return W.A&&b&&!M.api.isFullscreen()}; e_=function(M){if(M.Wx()&&!M.api.isEmbedsShortsMode()&&M.tR){var W=M.api.j("web_player_hide_overflow_button_if_empty_menu");!M.GV||W&&!McJ(M.GV)||Rf(M.tR,M.GV);!M.shareButton||W&&!FG(M.shareButton)||Rf(M.tR,M.shareButton);!M.copyLinkButton||W&&!l2p(M.copyLinkButton)||Rf(M.tR,M.copyLinkButton)}else{const b=M.api.G().getWebPlayerContextConfig();if(M.tR){W=M.tR;for(const T of W.actionButtons)T.detach();W.actionButtons=[]}M.searchButton&&!g.ES(M.Tx.element,M.searchButton.element)&&M.searchButton.cY(M.Tx.element); !M.GV||b?.hideTopWatchNextButton||g.ES(M.Tx.element,M.GV.element)||M.GV.cY(M.Tx.element);!M.shareButton||b?.hideTopShareButton||g.ES(M.Tx.element,M.shareButton.element)||M.shareButton.cY(M.Tx.element);M.copyLinkButton&&!g.ES(M.Tx.element,M.copyLinkButton.element)&&M.copyLinkButton.cY(M.Tx.element)}}; d1=function(M,W,b){W=b?W.lastElementChild:W.firstElementChild;let T=null;for(;W;){if(uq(W,"display")!=="none"&&W.getAttribute("aria-hidden")!=="true"){let q;W.tabIndex>=0?q=W:q=d1(M,W,b);q&&(T?b?q.tabIndex>T.tabIndex&&(T=q):q.tabIndex{for(let M=cS.length;M<4;M++){const W=g.Gr("VIDEO");W.load();cS.push(new g.Qm(W))}},{capture:!0, passive:!0}),jrP=!0)}; g1=function(M,W,b,T){var q=b.getVideoData();const X=W.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};var G=X.B;if(W.ac()>T/1E3+1)return{msg:"in-the-past"};if(X.isLivePlayback&&!isFinite(T))return{msg:"live-infinite"};T=W.E2();var V=null;T&&(V=T.isView()?T.mediaElement.S():T.S());if(V&&V.length>12&&g.z7(q))return{msg:"played-ranges"};if(!q.B)return null;if(!G)return{msg:"no-pvd-formats"};if(!q.B.Z()||!G.Z())return{msg:"non-dash"};T=G.videoInfos[0];V=q.B.videoInfos[0];M.gK&& LP(X)&&(T=W.Bh(),V=b.Bh());if(!T||!V)return{msg:"no-video-info"};if(M.C&&(T.Z()||V.Z()))return{msg:"av1"};W=M.A&&X.OX()&&cE();if(V.containerType!==T.containerType)if(W)X.dK("sgap",{ierr:"container"});else return{msg:"container"};if(M.S&&!W&&(V.Qz!==T.Qz||V.Qz===""||T.Qz===""))return{msg:"codec"};if(M.W&&V.video&&T.video&&Math.abs(V.video.width/V.video.height-T.video.width/T.video.height)>.01)return{msg:"ratio"};if(g.z7(X)&&g.z7(q))return{msg:"content-protection"};G=G.V[0];q=q.B.V[0];b=G.audio;const J= q.audio;if(b.sampleRate!==J.sampleRate&&!g.XH)if(W)X.dK("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:G.itag,cr:b.sampleRate,ni:q.itag,nr:J.sampleRate};return(b.numChannels||2)!==(J.numChannels||2)?{msg:"channel-count"}:M.D&&X.OX()&&T.video.fps!==V.video.fps?{msg:"fps"}:null}; Vcl=function(M,W,b){const T=M.getVideoData(),q=W.getVideoData();if(!T.G().supportsGaplessShorts())return{nq:"env"};if((!b.X||T.eO&&!T.isAd()||q.eO&&!q.isAd())&&(!b.V||T.eO&&!T.isAd()||q.eO)&&(!b.B||q.eO&&!q.isAd()||T.eO)&&(T.eO||q.eO))return{nq:"autoplay"};if(T.endSeconds>0)return{nq:"endcr"};if(!T.W)return{nq:"client"};if(!M.LK())return{nq:"no-empty"};M=g1(b,M,W,Infinity);return M!=null?{nq:M.msg}:null}; Bmp=function(M){const W=new JQl;W.A=M.j("h5_gapless_support_types_diff");W.D=!1;W.gK=M.j("html5_gapless_use_format_info_fix");W.C=M.j("html5_gapless_disable_on_av1")&&!M.j("html5_gapless_enable_on_av1");W.S=M.j("html5_gapless_check_codec_diff_strictly");W.X=M.j("html5_gapless_on_ad_autoplay");W.W=M.j("html5_gapless_disable_diff_aspect_radio");W.V=M.j("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!M.j("html5_disable_loop_range_for_shorts_ads");W.Z=M.j("html5_pseudogapless_shorts_seek_to_next_start"); W.B=M.j("html5_gapless_ad_autoplay_on_video_to_ad_only");return W}; w1=function(M,W){W<=M.status.status||(M.status={status:W,error:null},W===5&&M.gs.resolve())}; D3l=function(M,W,b,T){M=M.isView()?M.mediaElement:M;return new g.p0(M,W,b,T)}; aPL=async function(M){if(M.ST())return Promise.reject(Error(M.status.error||"disposed"));M.timeout.start();await M.gs;var W=M.Z.E2();if(W.isEnded())return M.Jy("ended_in_finishTransition"),Promise.reject(Error(M.status.error||""));if(!M.S||!g8(M.S))return M.Jy("next_mse_closed"),Promise.reject(Error(M.status.error||""));if(M.V.dT()!==M.S)return M.Jy("next_mse_mismatch"),Promise.reject(Error(M.status.error||""));const {Zw:b,bW:T,oM:q}=M.D();M.Z.ys(!1,!0);const X=D3l(W,b,q,!M.V.getVideoData().isAd()); M.V.setMediaElement(X);const G=M.Z.Yd();G&&M.V.Es(G.r5,G.xo);M.yz&&(M.policy.Z||M.V.seekTo(M.V.getCurrentTime()+.001,{IK:!0,C8:3,jR:"gapless_pseudo"}),X.play());W=W.qd();W.cpn=M.Z.getVideoData().clientPlaybackNonce;W.st=`${b}`;W.et=`${q}`;M.V.dK("gapless",W);M.Z.dK("gaplessTo",{cpn:M.V.getVideoData().clientPlaybackNonce});W=M.Z.getPlayerType()===M.V.getPlayerType();M.Z.Ee(T,!0,!1,W,M.V.getVideoData().clientPlaybackNonce);M.V.Ee(M.V.getCurrentTime(),!0,!0,W,M.Z.getVideoData().clientPlaybackNonce); M.V.i8();g.xS(()=>{!M.V.getVideoData().D&&M.V.getPlayerState().isOrWillBePlaying()&&M.V.d4()}); w1(M,6);M.dispose();return Promise.resolve()}; nTq=function(M){if(M.V.getVideoData().B){var W=M.wG.G().j("html5_gapless_suspend_next_loader")&&M.C===1;M.V.Wv(M.S,W,M.C===1&&Sz(M.Z.getVideoData()));w1(M,3);ETp(M);var {PR:b,O3:T}=Y3(M);b.subscribe("updateend",M.W,M);T.subscribe("updateend",M.W,M);M.W(b);M.W(T)}}; ETp=function(M){M.Z.unsubscribe("internalvideodatachange",M.B,M);M.V.unsubscribe("internalvideodatachange",M.B,M);M.wG.G().j("html5_gapless_use_format_info_fix")&&(M.Z.unsubscribe("internalvideoformatchange",M.B,M),M.V.unsubscribe("internalvideoformatchange",M.B,M));M.Z.unsubscribe("mediasourceattached",M.B,M);M.V.unsubscribe("statechange",M.O,M)}; Y3=function(M){return{PR:M.A.Z.gt,O3:M.A.V.gt}}; var R3S=function(M,W){return rk[y[0]](this,65,M,W)}; var U3t=async function(M){if(!M.ST()&&M.A&&M.Z){M.gK&&M.app.Jn().GE(!0,!1);var W=null;if(M.B)try{await aPL(M.B)}catch(T){W=T}if(M.Z&&(yQl.N$("vqsp",()=>{M.app.Wj(M.Z)}),M.Z)){var b=M.Z.E2(); M.app.G().j("html5_gapless_seek_on_negative_time")&&b&&b.getCurrentTime()<-.01&&M.Z.seekTo(0);yQl.N$("vqpv",()=>{M.app.playVideo()}); W&&(M.Z?(W=W?W.message:"forced",M.V?.dK("gapfulfbk",{r:W}),M.Z.bJ(W)):M.V?.dK("gapsp",{}));W=M.A;$v(M);W&&W.resolve();Promise.resolve()}}},Mb=function(M){M.X&&M.C&&M.X.removeEventListener("timeupdate",M.C); M.C=null;M.X=null},$v=function(M,W=!1){if(M.V){if(M.W){var b=M.V; M.app.o0.removeEventListener(g.kJ("vqueued"),M.D);b.removeCueRange(M.W)}M.V=null;M.W=null}M.B&&(M.B.status.status!==6&&(b=M.B,b.status.status!==Infinity&&b.C!==1&&b.Jy("Canceled")),M.B=null);M.A=null;M.Z&&!W&&M.Z!==M.app.RT()&&M.Z!==M.app.Jn()&&M.Z.dispose();M.Z&&W&&M.Z.Jg();M.Z=null;M.gK=!1},CjP=function(M,W,b=!0){const T=M.app.Jn(),q=T.getVideoData().isLivePlayback?Infinity:T.y3(!0)*1E3; W>q&&(W=q-200,M.gK=!0);b&&T.getCurrentTime()>=W/1E3?M.D():(M.V=T,b&&(b=W,W=M.V,M.app.o0.addEventListener(g.kJ("vqueued"),M.D),b=isFinite(b)||b/1E3>W.getDuration()?b:0x8000000000000,M.W=new g.Ap(b,0x8000000000000,{namespace:"vqueued"}),W.addCueRange(M.W)))},KqG=function(M,W,b,T=0,q=0){M.LK()||(Mb(M),$v(M)); M.A=new tI;M.Z=W;CjP(M,b,q===0);var X=T/=1E3,G=W.getVideoData().Z;if(T&&G&&M.V){let V=T,J=0;W.getVideoData().isLivePlayback&&(X=Math.min(b/1E3,M.V.y3(!0)),J=Math.max(0,X-M.V.getCurrentTime()),V=Math.min(T,W.y3()+J));X=frJ(G,V)||T;X!==T&&M.Z.dK("qvaln",{st:T,at:X,rm:J,ct:V})}W=X;T=M.Z;T.getVideoData().Hr=!0;T.getVideoData().W=!0;T.JC(!0);G={};M.V&&(G=M.V.ZS(),X=M.V.getVideoData().clientPlaybackNonce,G={crt:(G*1E3).toFixed(),cpn:X});T.dK("queued",G);W!==0&&T.seekTo(W+.01,{IK:!0,C8:3,jR:"videoqueuer_queued"}); M.B=new kyt(M.S,M.app.Jn(),M.Z,b,M.app,q);b=M.B;b.status.status!==Infinity&&(w1(b,1),b.Z.subscribe("internalvideodatachange",b.B,b),b.V.subscribe("internalvideodatachange",b.B,b),b.wG.G().j("html5_gapless_use_format_info_fix")&&(b.Z.subscribe("internalvideoformatchange",b.B,b),b.V.subscribe("internalvideoformatchange",b.B,b)),b.Z.subscribe("mediasourceattached",b.B,b),b.V.subscribe("statechange",b.O,b),b.Z.subscribe("newelementrequired",b.sY,b),b.B());return M.A},LqJ=function(M,W){if(M.app.G().hT().Z.UY(vTy)){var b= M.app.G().hT().Z.UY(m3q); if(!(b<=0)){Mb(M);var T=M.app.Jn()?.E2();T&&M.Z&&(M.Z.getVideoData().N4=!0,M.C=()=>{var q=T.getCurrentTime();q>=W+b/1E3&&(q=Date.now()-(q-W)*1E3,M.app.r0().tick("pbs",q),Mb(M))},M.X=T,T.addEventListener("timeupdate",M.C))}}},lPJ=function(M,W,b){if(M.LK())return"qie"; if(M.Z==null||M.Z.ST()||M.Z.getVideoData()==null)return"qpd";if(W.videoId!==M.Z.rU())return"vinm";if((M.B?.gK()||-1)<=0)return"ivd";if(b!==1)return"upt";M=M.B?.BY();return M!=null?M:null},Gha=function(M){return!(M.isMinimized()||M.isInline()||M.isBackground()||M.iy()||M.He()||M.We()||M.KT())},bi=function(M){const W=(0,g.u)(); M.data.forEach(b=>{b.expire!(b.expireW.value)},Wm=function(M,W,b){b&&M.V&&M.V(W.value)},tcL=function(M){const W=M.Z?[M.Z]:[]; for(const b of Object.values(M.A))b.dispose(),delete M.S[b.FP()];M.A={};M.Z=null;M.D=null;M.X.clear();qb(M,[],W)},qb=function(M,W,b){const T=[M.V]; M.Z&&T.push(M.Z);M.api.publish("playbackChange",{active:T.filter(q=>q.getPlayerType()!==0).map(q=>({cpn:q.FP()})), started:W.filter(q=>q.getPlayerType()!==0).map(q=>({cpn:q.FP()})), ended:b.filter(q=>q.getPlayerType()!==0).map(q=>({cpn:q.FP()}))})},Xc=function(M,W,b){const T=[W],q=M.Z?[M.Z]:[]; M.A[W.FP()]=W;M.S[W.FP()]=W;M.Z=W;b&&(M.D=W);M.X.set("",W);qb(M,T,q)}; var Fny=function(M,W,b,T,q,X){return OuG[y[0]](this,1,M,W,b,T,q,X)}; Nmt=function(M){const W=M.experiments,b=W.FX.bind(W);jh=b("html5_use_async_stopVideo");ZkS=b("html5_pause_for_async_stopVideo");Gq=b("html5_not_reset_media_source")||b("html5_not_reset_media_source_non_drm_vod");b("html5_listen_for_audio_output_changed")&&(mla=!0);s5=b("html5_not_reset_media_source")||b("html5_not_reset_media_source_non_drm_vod");IPP=b("html5_not_reset_media_source")||b("html5_not_reset_media_source_non_drm_vod");Vk=b("html5_retain_source_buffer_appends_for_debugging");mML(b("web_watch_pip")|| b("web_shorts_pip"));pMQ(b("log_foreground_not_focused_as_background"));YbP(b("web_player_pip_logging_fix"));b("html5_mediastream_applies_timestamp_offset")&&(Dv=!0);M.jW()&&ZOl();Error.stackTraceLimit=50;const T=g.TO(W,"html5_idle_rate_limit_ms");T&&Object.defineProperty(window,"requestIdleCallback",{value:q=>window.setTimeout(q,T)}); Trq(M.S);Zza(b("html5_use_ump_request_slicer"));b("html5_disable_streaming_xhr")&&(q4=!1);b("html5_byterate_constraints")&&(EV=!0);b("html5_use_non_active_broadcast_for_post_live")&&(J9=!0);b("html5_enable_encrypted_av1")&&(xB=!0);OoJ(g.TO(M.experiments,"html5_sticky_duration_mos"))}; e5J=function(M){const W={};var b=M.experiments.UM();const T=[];M=(X,G,V)=>{T.push(Ro(G(V),J=>{W[X]=J}))}; var q=b.Z.UY(HkJ);q&&M("MediaSource.EnableUsingMediaSourceBufferedRange",Bxt,q===1);(q=b.Z.UY(fPg))&&M("HTTP3",DpS,q===1);(q=b.Z.UY(R5p))&&M("MediaSource.EnableUsingMediaSourceAttachmentMethods",a5G,q===1);(q=b.Z.UY(rQt))&&M("QUIC",EmQ,q===1);(q=b.Z.UY(x3S))&&M("Media.PlayerConfiguration.DecodeToTexturePreferred",y5t,q===1);(q=b.Z.UY(Fqg))&&M("Media.AudioWriteDurationLocal",nms,Number(q));(q=b.Z.UY(iky))&&M("Media.VideoBufferSizeClampMb",Upy,q);(q=b.Z.UY(h5p))&&M("Media.EnableAllocateOnDemand",Kbq, Number(q)===1);(q=b.Z.UY(AQL))&&M("Media.AppendFirstSegmentSynchronously",vmL,Number(q)===1);(q=b.Z.UY(z5P))&&M("Media.EnableFlushDuringSeek",Lbq,Number(q)===1);(q=b.Z.UY(uQs))&&M("DecoderBuffer.EnableMediaBufferPoolAllocatorStrategy",l5t,Number(q)===1);(q=b.Z.UY(Skt))&&M("Media.EnableResetAudioDecoder",mpp,Number(q)===1);(q=b.Z.UY(Okt))&&M("Media.VideoDecoderPollIntervalMs",CkQ,q);(b=b.Z.UY(Pjt))&&M("Media.VideoInitialMaxFramesInDecoder",kUL,b);return Ro(D9q(T),()=>W)}; Yf=function(M,W=!1,b=1048576){let T=Bm(M);T=1/((M.W.Hx()||0)*M.policy.X+1/T);let q=M.BY.Hx();q=q>0?q:1;var X=Math.max(T,q);M.policy.A>0&&q1E3){const T=M.interruptions;T.push(Math.ceil(b));T.sort((q,X)=>X-q); T.length>16&&T.pop()}M.sY+=b}}M.S=W}; aA=function(M,W,b){isNaN(b)||(M.Zs+=b);isNaN(W)||(M.MK+=W)}; yX=function(M,W,b,T=W){M.A.DJ(T,b/W);M.C=(0,g.u)()}; Ef=function(M,W,b){W=Math.max(W,M.V.Z);M.W.DJ(1,b/W)}; nM=function(M,W,b,T,q,X=!1){M.BY.DJ(W,b/W);M.C=(0,g.u)();q||M.X.DJ(1,W-T);X||(M.S=0);M.O>-1&&(0,g.u)()-M.O>3E4&&(P6L(Dd(M)),M.O=(0,g.u)(),M.gK=!0)}; ix=function(M){return(0,g.u)()-M.C>=4E3}; Bm=function(M){M=M.A.Hx();return M>0?M:1}; oTp=function(M,W,b=!1){W.nD=M.Zs;W.qY=M.MK;W.bandwidthEstimate=Yf(M);if(b){b=(M.D.Hx()*1E3).toFixed();var T=(M.yz.Hx()*1E3).toFixed(),q=MM(M).toFixed(2),X=((M.W.Hx()||0)*1E9).toFixed(2),G=M.A.Hx().toFixed(0),V=M.BY.Hx().toFixed(0),J=M.X.percentile(.5).toFixed(2),B=M.X.percentile(.92).toFixed(2),D=M.X.percentile(.96).toFixed(2),a=M.X.percentile(.98).toFixed(2);M.Z?M.Z.reset():M.Z=new yk;M.Z.add(M.sY);M.Z.add(M.interruptions.length);let C=0;for(var E=M.interruptions.length-1;E>=0;E--){var n=M.interruptions[E]; M.Z.add(n-C);C=n}C=0;for(E=M.B.length-1;E>=0;E--){n=M.B[E];const l=n.stamp/36E5;M.Z.add(l-C);C=l;M.Z.add(n.net/1E3);M.Z.add(n.max)}M=M.Z.Ba();W.Z={ttr:b,ttm:T,d:q,st:X,bw:G,abw:V,v50:J,v92:B,v96:D,v98:a,"int":M}}}; Qrs=function(M,W,b){const T=new cQs(b);M&&(T.B=!0,T.S=.1);b.FX("html5_media_time_weight")&&(T.B=!1);W&&(T.Z=W/8);T.V=Tm()>=480;return T}; gTJ=function(M,W,b=!0){M.Z=0;M.startTimeSecs=W;M.B=b;M.V=!0}; srP=function(M,W,b){M=M.V;var T=g.k5(M,{Br:W},(q,X)=>q.Br-X.Br); T=T<0?(T+2)*-1:T;if(T>=0)for(let q=T;q<=T+1&&q=X.Br-b&&W<=X.PF+b)return X}}; wTQ=function(M,W,b){const T=M.Z.get(W);T?(T.push(b),g.v$(T,(q,X)=>q.Br-X.Br)):M.Z.set(W,[b])}; pTs=function(M,W){g.ZB(M.V,W,(b,T)=>b.Br===T.Br?b.durationMs-T.durationMs:b.Br-T.Br); M.B.set(W.cpn,W);W.b3&&wTQ(M,W.b3,W)}; YkL=function(M,W){const b=[];for(const T of M.V)W(T)||b.push(T);if(M.uV.j("html5_sstm_fixes"))for(const T of M.V)W(T)&&M.B.delete(T.cpn);M.V=b}; $At=function(M,W){W=g.k5(M.V,{PF:W},(b,T)=>b.PF-T.PF); return W>=0?M.V[W]:null}; MPq=function(M,W){const b=M.V.indexOf(W);b>=0&&M.V.splice(b,1);M.B.delete(W.cpn)}; eVt=function(M,W){if(M.Y5||W.identifier&&M.Hr.has(W.identifier))M.x9({startnoad:W.identifier}),Uf(M);else if(gG(M.D,b=>b.identifier===W.identifier))M.x9({timedoutcp:1}),M.C.start(0); else if(gG(M.An,b=>b.identifier===W.identifier))M.x9({fetchedcp:1}),Uf(M); else if(M.C.isActive())M.x9({racingcp:`${M.S?.identifier}_${W.identifier}`});else{M.WP=(new Date).getTime()/1E3;M.x9({adf:1});let b=5E3;b&&W.event==="predictStart"&&(b-=W.Z);M.wK=Math.max(b,15E3);M.W=!1;M.C.start(M.wK);M.S=W;M.gK.clearAll();M.Lp=[]}}; g.kOa=function(M,W,b,T,q,X,G){var V=q===3,J=WJL(M,W,b,q,T,G);if(!J)return CM(M,b,V),J=g.kv(M,b)?"undec":"ncp",M.x9({gvprp:J,mt:W,seg:b,tt:q,itag:T,ce:G}),null;V||M.GT.set(b,J);G=J.b3;q=M.hJ(b-1,q,X)?.Xv||"";q===""&&M.x9({eds:1});X=bAJ(M,J.ssdaiAdsConfig);V=M.playback.getVideoData();V=V.RN[V.V?.containerType||0];J=J.o2&&b>=J.o2?J.o2:void 0;J={nW:G?KM(M,G):[],adsConfig:X,Xv:q,F_:J,dP:DZ(V.split(";")[0]),sx:V.split(";")[1]||""};q={jI:J};M.jT&&M.x9({gvprpro:"v",sq:b,mt:W.toFixed(3),itag:T,acpns:J.nW?.join("_")|| "none",abid:G});return q}; Op=function(M,W,b,T,q){T=T||{reason:"disablessdai"};if(W&&b){if(!vm(M,W,b))return!1;T.sq=b}if(M.Y5)return!1;M.Y5=!0;M.Fv>0&&(M.Fv=0,M.kS="",M.bv(M.playback.FP(),0),M.api.publish("serverstitchedvideochange"));M.playback.XZ(T,q);return!0}; Twa=function(M,W,b){const T=M.bV||M.app.Jn().getPlayerState();ml(M,!0);M.playback.seekTo(W,b);M=M.app.Jn();W=M.getPlayerState();T.isOrWillBePlaying()&&!W.isOrWillBePlaying()?M.playVideo():T.isPaused()&&!W.isPaused()&&M.pauseVideo()}; LM=function(M){M.jT&&M.x9({adf:`0_${(new Date).getTime()/1E3-M.WP}_isTimeout_${M.W}`})}; q7S=function(M,W,b){if(M.D.length)for(const T of M.D){const q=T.startSecs*1E3,X=T.C7*1E3+q;if(W>q&&Wq&&bG.identifier===T.identifier)||(M.x9({adskip:W}),M.s2.push(T)),T}}; li=function(M,W,b){M.playback.h3(W,b)}; Uf=function(M){M.W=!1;M.C.isActive()&&LM(M);M.C.stop();M.Fh(!1)}; jfq=function(M,W){return W?M.uV.hT().Z.UY(X0t)&&W?.tileContext?`${W?.Q1};${W?.tileContext}`:W?.Q1:""}; VPt=function(M,W,b){(M.app.wW().A[W.clientPlaybackNonce]||null)?.dispose();W=new G8s(W,M.playback,b/1E3);M.Zs.set(W.FP(),W);M=M.app.wW();M.A[W.FP()]=W;M.S[W.FP()]=W}; t9=function(M,W,b){return{ssvc:W,cpn:b?.cpn||"",vid:b?.videoData.videoId||"",ct:(M.playback.getCurrentTime()||0).toFixed(3),cmt:(M.playback.ac()||0).toFixed(3)}}; JuQ=function(M,W,b){return new g.Ap(M,W,{id:b,namespace:"serverstitchedcuerange",priority:9})}; Zd=function(M,W,b,T){M.uV.j("html5_ssdai_log_ssevt_in_loader_timers")&&(T=M.X?0:Math.round((T-b)*1E3),M.playback.dK("ssevt",{tag:"sstme",ad:W!==M.playback.FP(),cpn:W,st:(b-M.playback.lG()).toFixed(3),late:T}))}; Nb=function(M,W){M.B||M.X||IA(M,M.kS);const b=W.VG,T=W.vN;if(T.cpn===M.kS)M.x9({igtranssame:1,enter:T.cpn,exit:b.cpn});else{var q=M.X,X=!!M.B;M.B="";var G=W.yG,V=b.playerType===2?b.Br/1E3+b.videoData.vP:M.bd().videoData.vP;M.api.j("html5_ssdai_enable_media_end_cue_range")&&(X||q||b.playerType!==2?(q||X)&&M.x9({mecr:0,seek:q,skip:X}):M.api.gp(b.cpn));if(b.playerType===2&&T.playerType===2)X?M.x9({igtransskip:1,enter:T.cpn,exit:b.cpn,seek:q,skip:M.B}):BwJ(M,b,T,V,G,q,X);else{M.kS=T.cpn;M.bv(T.cpn,T.startTimeSecs|| G);W=W.tN;if(b.playerType===1&&T.playerType===2){M.sY=0;DAl(M,T);var J=t9(M,"c2a",T);M.x9(J);M.Fv++}else if(b.playerType===2&&T.playerType===1){M.api.publish("serverstitchedvideochange");J=t9(M,"a2c");M.x9(J);M.Fv=0;M.sY=V;J=b.cpn;var B=M.sY;if(J!==M.playback.FP()){const D=M.Zs.get(J);D?D.Z=B:M.x9({nop_e:J})}M.AL(b.b3)}J=aGl(M);M.playback.bI(b,T,V,G,q,X,W,J)}EKJ(M)}}; DAl=function(M,W){var b=M.app;$f(b.Zy())&&b.CN.B[2]&&g.SV(M.logger,360717806,"SSTM lingering playback");M.api.Nz();M.api.publish("serverstitchedvideochange",W.cpn,W.bb)}; Hm=function(M,W,b=0){return{Ok:srP(M.Z,W*1E3,b*1E3),Zm:W}}; IA=function(M,W){var b=W||M.kS;const T=M.Z.dW(b);T?(W=T.videoData,b=T.bb||(M.V.get(b)?.start??0)/1E3,M=M.playback.getCurrentTime()-b,W.vP=M>0?M:0):M.bd().videoData.vP=M.playback.getCurrentTime()}; nKa=function(M,W,b){M.playback.MZ();M.playback.seekTo(W,b);M.playback.playVideo()}; ml=function(M,W){M.vP=NaN;M.d9=null;M.XX.stop();M.BY&&W&&M.BY.Uz();M.bV=null;M.BY=null}; RA=function(M){yuL(M);for(var W of M.V.values())W.start>=-1&&W.end<=Infinity&&(M.playback.removeCueRange(W),M.V.delete(W.getId()),M.x9({rmAdCR:1}));const {Ok:b,Zm:T}=Hm(M,-.001);b&&(W=T*1E3-b.Br,fM(M,b,W,b.Br+W),W=M.V.get(b.cpn))&&(W.start=b.Br,W.end=b.Br+b.durationMs);({Ok:W}=Hm(M,Infinity));W&&M.LT(`Invalid_clearEndTimeMs_${Infinity}_that_falls_during_${`playback_cpn_${W.cpn}_video_id_${W.videoData?.videoId}_durationMs_${W.durationMs}_enterTimeMs_${W.Br}_parentReturnTimeMs_${W.PF}`}._`+"Child_playbacks_can_only_have_duration_updated_not_their_start.")}; UAs=function(M){M.gK.clearAll();M.V.clear();M.Z.clear();M.GT.clear();M.Lp=[];M.S=null;M.Hr.clear();M.xk.clear();M.D=[];M.An=[];M.s2=[];M.Y9=[];M.aT.clear();M.x_.clear();M.A5.clear();M.EY.clear();M.W=!1;M.sY=0;M.X=!1;M.MK=!1;M.Fv=0;M.WP=0;M.FT=!1;M.Y5=!1;M.B="";tcL(M.app.wW());Xc(M.app.wW(),M.playback,!1);M.Zs.clear();M.C.isActive()&&Uf(M)}; yuL=function(M){YkL(M.Z,W=>W.Br>=-1&&W.PF<=Infinity)}; fM=function(M,W,b,T){W.durationMs=b;W.PF=T;(T=M.Zs.get(W.cpn))?T.wI(b/1E3):M.x9({nop_d:W.cpn})}; g.kv=function(M,W){for(const b of M.Lp)if(W>=b.start&&W<=b.end)return!0;return!1}; vm=function(M,W,b,T,q){let X=M.GT.get(b);if(!X){if(X=ry(M,W))return X;W=M.hJ(b-1,T??2);if(q)return M.x9({misscue:q,sq:b,type:T,prevsstate:W?.Jb,prevrecord:M.GT.has(b-1)}),M.GT.get(b-1);if(W?.Jb===2)return M.x9({adnf:1,sq:b,type:T,prevrecord:M.GT.has(b-1)}),M.GT.get(b-1)}return X}; WJL=function(M,W,b,T,q,X){if(!M.Y5)if(g.kv(M,b))M.x9({gdu:"undec",seg:b,itag:q});else if(W=vm(M,W,b,T,X),!M.playback.getVideoData().FD()||!W?.W9)return W}; ry=function(M,W){W+=M.lG();if(M.playback.getVideoData().FD()){a:{var b=M.Z;M=W*1E3;for(T of b.V)if(b=T.bb?T.bb*1E3:T.Br,M>=T.Br-1E3&&M<=b+T.durationMs+1E3)break a;var T=void 0}T={Ok:T,Zm:W}}else T=Hm(M,W),T?.Ok||(T=Hm(M,W,1));return T?.Ok}; CM=function(M,W,b=!1){if(!b){for(const T of M.Lp){if(W>=T.start&&W<=T.end)return;if(W===T.end+1){T.end+=1;return}}M.Lp.push(new CZs(W))}}; bAJ=function(M,W=""){const b=MT(W)||void 0;W&&b||M.x9({adcfg:W?.length,dcfg:b?.length});return b}; KM=function(M,W){const b=[];M=M.Z.Z.get(W);if(!M)return[];for(const T of M)T.cpn&&b.push(T.cpn);return b}; k8a=function(M,W,b){let T=!1;if(b=M.Z.Z.get(b))for(const q of b)q.durationMs!==0&&q.PF!==q.Br&&(b=q.cpn,W===b&&(T=!0),T&&!M.x_.has(b)&&(M.x9({decoratedAd:b}),M.x_.add(b)))}; KJQ=function(M,W,b){let T=0;M=M.Z.Z.get(b);if(!M)return-1;for(const q of M){if(q.cpn===W)return T;T++}return-1}; vKS=function(M,W){let b=0;M=M.Z.Z.get(W);if(!M)return 0;for(const T of M)T.durationMs!==0&&T.PF!==T.Br&&b++;return b}; mAL=function(M){for(const W of M.V.values())M.playback.removeCueRange(W);M.V.clear();M.gK.clearAll()}; aGl=function(M){if(M.Ds||M.fv){var W=Array.from(M.app.wW().X.values()),b=[],T=[],q=[],X=[],G=[],V=[];for(var J of W)if(W=M.Z.dW(J.FP()))W.qg&&b.push(W.qg),W.Fk&&T.push(W.Fk),W.E3&&T.push(W.E3),X.push(W.cpn),G.push(W.videoData.videoId||""),V.push(W.videoData.adFormat||W.videoData.XX),W.serializedQoeContextData!=null&&q.push(W.serializedQoeContextData);W=J=void 0;M.Ds&&(W={qg:b,mK:T});M.fv&&(J={nW:X,ZP:G,adFormats:V,serializedQoeContextData:q});return{vZ:W,Py:J}}}; BwJ=function(M,W,b,T,q,X,G){if(W&&b){M.kS=b.cpn;M.bv(b.cpn,b.startTimeSecs||q);DAl(M,b);var V=t9(M,"a2a",b);M.x9(V);M.Fv++;V=aGl(M);M.playback.bI(W,b,T||0,q||0,!!X,!!G,void 0,V)}else M.x9({misspbkonadtrans:1,enter:b?.cpn||"",exit:W?.cpn||"",seek:X,skip:G})}; EKJ=function(M){M.EY.add(M.B);M.B="";M.X=!1}; LJg=function(M,W,b){var T;if(T=M.playback.getVideoData().FD())T=(T=M.Z.dW(W))&&T.b3?(M=M.Z.Z.get(T?.b3))&&M.slice(-1)[0].cpn===W:!1;return T&&b===2?1E3:0}; lGq=function(M,W,b,T){W={VG:W,vN:b,yG:M.playback.getCurrentTime(),tN:T};Nb(M,W)}; ZAs=function(M,W,b={}){const T=M.C||M.app.Jn().getPlayerState();xv(M,!0);W=isFinite(W)?W:M.Z.xI();const {Ok:q,Zm:X}=Fc(M,W);W=q&&!ii(M,q)||!q&&M.Z!==M.app.Jn();var G=X*1E3;G=M.B&&M.B.start<=G&&G<=M.B.end;!W&&G||h9(M);q?tPt(M,q,X,b,T):A9(M,X,b,T,"_execute")}; zq=function(M,W,b,T){M.Z.dK("timelineerror",{e:W,cpn:b?b:void 0,videoId:T?T:void 0})}; ui=function(M,W){return new g.Ap(Math.max(0,M-5E3),W?0x8000000000000:M-1,{namespace:"childplayback",priority:9})}; IGq=function(M,W,b){const T=W.mB;W.mB=b;ii(M,W)&&(b=M.app.Jn(),T.Yj===M.B&&h9(M),b.removeCueRange(T.Yj),b.addCueRange(W.mB.Yj))}; tPt=function(M,W,b,T,q){const X=ii(M,W);if(!X){W.playerVars.prefer_gapless=!0;var G=new g.fk(M.uV,W.playerVars);G.cF=W.cF;M.api.TE(G,W.playerType)}G=M.app.Jn();X||G.addCueRange(W.mB.Yj);G.seekTo(b,{jR:"application_timelinemanager",...T});Nwp(M,q)}; fGL=function(M,W,b,T,q,X){var G=W.cpn,V=W.docid||W.video_id||W.videoId||W.id,J=M.Z;X=X===void 0?q+T:X;if(q>X)return zq(M,`enterAfterReturn enterTimeMs=${q} is greater than parentReturnTimeMs=${X.toFixed(3)}`,G,V),"";var B=J.XD()*1E3;if(qB)return J=`returnAfterDuration parentReturnTimeMs=${X.toFixed(3)} is greater than parentDurationMs=${B}. And timestampOffset in seconds is ${J.Ga()}`, zq(M,J,G,V),"";B=null;for(const a of M.V){if(q>=a.Br&&qa.Br)return zq(M,"overlappingReturn",G,V),"";if(X===a.Br)return zq(M,"outOfOrder",G,V),"";q===a.PF&&(B=a)}G=`cs_childplayback_${HAt++}`;V={Yj:ui(T,!0),m0:Infinity,target:null};const D={cF:G,playerVars:W,playerType:b,durationMs:T,Br:q,PF:X,mB:V};M.V=M.V.concat(D).sort((a,E)=>a.Br-E.Br); B?IGq(M,B,{Yj:ui(B.durationMs,!0),m0:B.mB.m0,target:D}):(W={Yj:ui(q,!1),m0:q,target:D},M.S.set(W.Yj,W),J.addCueRange(W.Yj));W=!0;if(M.Z===M.app.Jn()&&(J=J.getCurrentTime()*1E3,J>=D.Br&&J{tPt(M,D,E/1E3,{},a)}); W=!1}W&&(M.O.unshift(D),M.Zs.Wr(0));return G}; RKq=function(M,W,b,T){M.B=T;T=W.cF;const q=W.playerVars,X=W.playerType;M.W=W;q&&M.api.enqueueVideoByPlayerVars(q,X,b,T)}; rua=function(M,W,b,T){M.B=T;M.api.sL(M.Z,b,W)}; h9=function(M){M.W=null;M.B=null;M.api.LK()||M.api.clearQueue()}; ii=function(M,W){M=M.app.Jn();return!!M&&M.getVideoData().cF===W.cF}; xAL=function(M,W){ii(M,W)||zq(M,"childPlaybackIsNotPresenting");return W.PF===W.Br+W.durationMs?W.Br+M.app.Jn().getCurrentTime()*1E3:W.PF}; Fc=function(M,W){let b=0;for(const T of M.V){M=T.Br/1E3+b;const q=M+T.durationMs/1E3;if(M>W)break;if(q>W)return{Ok:T,Zm:W-M};b=q-T.PF/1E3}return{Ok:null,Zm:W-b}}; xv=function(M,W){M.gK=NaN;M.X=null;M.D.stop();M.A&&W&&M.A.Uz();M.C=null;M.A=null}; A9=function(M,W,b,T,q){const X=M.Z;X!==M.app.Jn()&&M.app.fP();M.uV.j("html5_sabr_csdai_seek_log")||(q="");X.seekTo(W,{jR:"application_timelinemanager"+(q??""),...b});Nwp(M,T)}; Nwp=function(M,W){M=M.app.Jn();const b=M.getPlayerState();W.isOrWillBePlaying()&&!b.isOrWillBePlaying()?M.playVideo():W.isPaused()&&!b.isPaused()&&M.pauseVideo()}; FJq=function(M){var W=M.V.find(b=>ii(M,b)); if(W){const b=M.app.Jn();h9(M);const T=new g.TD(8);W=xAL(M,W)/1E3;A9(M,W,{},T,"_force");b.dK("forceParentTransition",{childPlayback:1});M.Z.dK("forceParentTransition",{parentPlayback:1})}}; Sh=function(M,W=-1,b=Infinity){for(const [V,J]of M.S){var T=V,q=J;q.m0>=W&&q.target&&q.target.PF<=b&&(M.Z.removeCueRange(T),M.S.delete(T))}T=[];for(const V of M.V)V.Br>=W&&V.PF<=b?(q=M,q.W===V&&h9(q),ii(q,V)&&q.app.fP()):T.push(V);M.V=T;const {Ok:X,Zm:G}=Fc(M,W/1E3);X&&(W=G*1E3,iAq(M,X,W,X.PF===X.Br+X.durationMs?X.Br+W:X.PF));({Ok:W}=Fc(M,b/1E3));W&&zq(M,`Invalid clearEndTimeMs=${b} that falls during ${`playback={timelinePlaybackId=${W.cF} video_id=${W.playerVars.video_id} durationMs=${W.durationMs} enterTimeMs=${W.Br} parentReturnTimeMs=${W.PF}}`}.`+ "Child playbacks can only have duration updated not their start.")}; iAq=function(M,W,b,T){W.durationMs=b;W.PF=T;T={Yj:ui(b,!0),m0:b,target:null};IGq(M,W,T);ii(M,W)&&M.app.Jn().getCurrentTime()*1E3>b&&(W=xAL(M,W)/1E3,b=M.app.Jn().getPlayerState(),A9(M,W,{},b,"_update"))}; AuL=function(M){M&&M!=="web"&&hKG.includes(M)}; VYQ=function(M,W){return W?!!M.Z.get(W):!1}; zKS=function(M,W){M.dataset.version=W}; uGS=function(M){M.SX=!M.SX;M.US=!0;M.element.classList.toggle("ytp-retro-player",M.SX);M.resize();M.US=!1;g.q8(M.app.o0,"onRetroModeChanged",M.SX)}; S7p=function(M){const W=M.app.o0,b=()=>{M.Xe=new g.re(0,0,0,0);M.IY=new g.re(0,0,0,0)},T=G=>{G.getVideoData()&&M.updateVideoData(G.getVideoData())},q=(G,V)=>{M.hm(G,V)},X=G=>{M.gG&&Of(M); Pm(M)!==M.Ef&&M.resize();M.app.G().j("web_enable_smart_zoom")&&M.G_&&(G.state.isPaused()?M.G_.pause():G.QN(8)&&M.G_.playState==="paused"&&M.G_.play())}; W.addEventListener("initializingmode",b);W.addEventListener("videoplayerreset",T);W.addEventListener("videodatachange",q);W.addEventListener("presentingplayerstatechange",X);M.addOnDisposeCallback(()=>{W.removeEventListener("initializingmode",b);W.removeEventListener("videoplayerreset",T);W.removeEventListener("videodatachange",q);W.removeEventListener("presentingplayerstatechange",X)})}; eKg=function(M){var W=M.hX();let b=1;var T=!1;const q=OAp(M,W,M.getVideoAspectRatio()),X=M.app.G(),G=X.j("enable_desktop_player_underlay"),V=REL();var J=g.TO(X.experiments,"player_underlay_min_player_width");J=G&&M.iA&&M.getPlayerSize().width>J;if(Pm(M)){var B=PZs(M);var D=isNaN(B)||g.Mo||w_&&g.R_||J;$w&&!g.tY(601)?B=q.aspectRatio:D=D||X.controlsType==="3";D?J?(D=X.j("place_shrunken_video_on_left_of_player")?16:M.getPlayerSize().width-W.width-16,B=Math.max((M.getPlayerSize().height-W.height)/2,0), D=new g.re(D,B,W.width,W.height),M.gG.style.setProperty("border-radius","12px")):D=new g.re(0,0,W.width,W.height):(b=q.aspectRatio/B,D=new g.re((W.width-q.width/b)/2,(W.height-q.height)/2,q.width/b,q.height),b===1&&g.R_&&(B=D.width-W.height*B,B>0&&(D.width+=B,D.height+=B)));g.H(M.element,"ytp-fit-cover-video",Math.max(D.width-q.width,D.height-q.height)<1);if(V||M.Qj)M.gG.style.display="";M.Ef=!0}else{D=-W.height;$w?D*=window.devicePixelRatio:g.vQ&&(D-=window.screen.height);D=new g.re(0,D,W.width, W.height);if(V||M.Qj)M.gG.style.display="none";M.Ef=!1}xt(M.Xe,D)||(M.Xe=D,g.WQ(X)?(M.gG.style.setProperty("width",D.width+"px","important"),M.gG.style.setProperty("height",D.height+"px","important")):g.sS(M.gG,D.getSize()),T=new g.xU(D.left,D.top),g.P5(M.gG,Math.round(T.x),Math.round(T.y)),T=!0);W=new g.re((W.width-q.width)/2,(W.height-q.height)/2,q.width,q.height);xt(M.IY,W)||(M.IY=W,T=!0);g.iq(M.gG,"transform",b===1?"":`scaleX(${b})`);G&&J!==M.Fe&&(J&&(M.gG.addEventListener(eh,M.Km),M.gG.addEventListener("transitioncancel", M.Km),M.gG.classList.add(g.Vg.VIDEO_CONTAINER_TRANSITIONING)),M.Fe=J,M.app.o0.publish("playerUnderlayVisibilityChange",M.Fe?"transitioning":"hidden"));return T}; Of=function(M){var W=M.app.G().controlsType==="3"&&!M.u5&&Pm(M)&&!M.app.uY||!1;M.gG.controls=W;M.gG.tabIndex=W?0:-1;M.app.G().A&&(M.gG.ariaHidden="true");W?M.gG.removeEventListener("focus",M.Nn):M.gG.addEventListener("focus",M.Nn)}; PZs=function(M){var W=M.app.Jn();if(W=W?W.getVideoData():null){if(g.dF(W)||g.o9(W)||g.cM(W))return 16/9;if(mc(W)&&W.B.Z())return M=W.B.videoInfos[0].video,dy(M.width,M.height)}return(M=M.gG)?dy(M.videoWidth,M.videoHeight):16/9}; dy=function(M,W){return Math.abs(oA*W-M)<1||Math.abs(oA/M-W)<1?oA:M/W}; OAp=function(M,W,b,T){let q=b;const X=dy(W.width,W.height);M.Ct?q=bX?{width:W.width,height:W.width/q,aspectRatio:q}:qq?M.width=M.height*b:b{b.reject("timeout")},1E4); M.i$.onerror=()=>{b.reject("error")}; M.i$.onmessage=()=>{b.resolve();clearTimeout(W)}; await b.promise;M.i$.onmessage=null;M.i$.onerror=null;M.i$.addEventListener("message",T=>void M.receive(T)); M.dK("workerCtor",{})}catch(b){clearTimeout(W),M.i$?.terminate(),M.i$.onmessage=null,M.i$.onerror=null,M.i$=void 0,M.dK("workerErr",{e:`${b}`})}}}; cuQ=function(M,W){if(M.Z&&M.Z.byteLength===W)return M.Z;const b=new Uint8Array(W);let T=0;for(;W>0;){const q=new Uint8Array(Math.min(W,65536));crypto.getRandomValues(q);b.set(q,T);W-=q.length;T+=q.length}return M.Z=b}; Qfl=function(M,W){M.i$&&(W=cuQ(M,W),W.length>0&&W[0]++,W={[0]:0,[1]:performance.now(),[2]:W},M.request(W))}; gKt=async function(M){M.V!==void 0||M.B||(M.B=!0,await oKa(M),M.B=!1,M.i$&&(Qfl(M,M.X),M.V=setInterval(()=>{M.sendRequest()},M.intervalMs)))}; sfP=function(M){return OuG[y[0]](this,16,M)}; w0S=function(M,W){const b=M.CN.Rw;return b?a6(b.getPlayerState()):M.getVideoData().enableServerStitchedDai&&W===2?(M.uV.hT().Z.UY(cm)?M.CN.Z?.isAd()??!1:M.e2?.OY(M.getCurrentTime()))?M.As:-1:W!==2||M.UO()?M.As:M.Zn}; EA=function(M){return M.uY&&M.getVideoData().mutedAutoplay}; gy=function(M,W,b){W&&(W=g.Qk(M,{playerType:b}),W===M.RT()&&(W.getVideoData().Y9=!0))}; sf=function(M,W,b=!0,T,q,X){const G=g.Qk(M,{playerType:q});var V=G.getVideoData();G.getPlayerType()===2&&!M.UO(G)&&!V.isSeekable||g.PM(V)||((V=M.CN.Rw)?V.seekTo(W,{a6:!b,n8:T,jR:"application",seekSource:X}):(G&&G===M.RT()&&M.IT&&!p0S(M,W)&&M.setLoopRange(null),M.seekTo(W,b,T,q,X,"_request")))}; Yv=function(M,W){W=g.Qk(M,{playerType:W});W=wy(M,W);return pM(M,W.y3(),W)}; W4=function(M,W,b){M.uV.BY&&(M.jH=W,W.muted||$V(M,!1),b&&M.uV.storeUserVolume&&!M.uV.fv&&(b={volume:Math.floor(W.volume),muted:W.muted},b.unstorable||(g.$u("yt-player-volume",b),g.$u("yt-player-volume",b,2592E3))),Mj(M),b=g.XH&&M.mediaElement&&!M.mediaElement.XA(),M.uV.fv&&!b||g.Jp(M.o0,"onVolumeChange",{muted:W.muted,volume:W.volume,unstorable:!M.uV.storeUserVolume}))}; DA=function(M,W){return M.j("web_player_misc_bugfix_b")?M.CN.dW(W)||M.CN.W:M.CN.dW(W)}; bL=function(M,W,b,T,q,X,G){W={id:W,namespace:G??"appapi"};X==="chapter"?(W.style=vo.CHAPTER_MARKER,W.visible=!0):isNaN(q)||(X==="ad"?W.style=vo.AD_MARKER:(W.style=vo.TIME_MARKER,W.color=q),W.visible=!0);M.VC([new g.Ap(b*1E3,T*1E3,W)],1);return!0}; Y7a=function(M,W,b=!0,T,q){const X=g.Qk(M,{playerType:1});let G=0;X.getStreamTimeOffset()&&!X.Ga()&&(G=X.getStreamTimeOffset());sf(M,W-G,b,T,1,q)}; $kS=function(M){if(M.uV.storeUserVolume){M=g.MZ("yt-player-volume")||{};const W=M.volume;M={volume:isNaN(W)?100:g.fy(Math.floor(W),0,100),muted:!!M.muted}}else M={volume:100,muted:M.uV.mute};return M}; M_q=function(M,W,b,T,q,X=!0){const G=M.A1();if(!G)return X&&M.getVideoData().isLivePlayback&&M.Hv.push({id:W,kN:b,aW:T}),!1;X=G-M.getCurrentTime();return bL(M,W,b-X,T-X,void 0,void 0,q)}; WMy=function(M,W){M.Zy().autonavState=W;g.$u("yt-player-autonavstate",W);M.o0.publish("autonavchange",W)}; Tg=function(M,W){M.playlist&&(g.cG(M.playlist),M.playlist=null);W&&(M.cg&&(W.fetch=0),M.playlist=new b0Q(M.uV,W))}; XL=function(M,W,b){W=g.Qk(M,{playerType:b}).lN(W);b&&M.getPresentingPlayerType()!==b||qj(M,"cuerangesremoved",W)}; Va=function(M,W,b,T=Infinity,q=0){var X=M.Jn();b=b||X.getPlayerType();(X=jZ(M,b,W,!0))||(X=Gg(M,b,W,!0));W=M.RT();b===2&&W&&(b=X.getVideoData(),W.LD(b.clientPlaybackNonce,b.XX||"",b.breakType||0,b.xs,b.videoId||""));M.sL(X,T,0,q)}; T1y=function(M){const W=M.webPlayerContextConfig.trustedJsUrl;return W?Yi(W).toString():M.webPlayerContextConfig.jsUrl}; XSs=function(M){var W="";let b="";var T=T1y(M),q=Ec(T,"cb");q&&/^[\w-]+$/.test(q)&&(b=q);T.indexOf("//")===0&&(T=M.uV.protocol+":"+T);q=T.lastIndexOf("/base.js");q!==-1&&(W=T.substring(0,q+1));if(T=Error().stack)if(T=T.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))T=T[1],T.includes(W)||g.lR(Error("Player module URL mismatch: "+`${T} vs ${W}.`));W=new qst(M.o0,W,b);Ivs(W,{destroyed:()=>{M.onApiChange()}}); return W}; jhg=function(M){Fg(M,function(){const W=this;return function*(){W.pv.tick("wasm_s");const b=Qx(W.Dy)?T=>Ro(eHs(W.Dy),q=>q.Mv(T)):void 0; try{const T=nEq(W.webPlayerContextConfig.wasmModuleUrl,b,W.Jw.bind(W)),q=yield*hy(T);W.pv.tick(q.Z?"wasm_fa":"wasm_fw");HaQ(W.uV,q)}catch(T){W.pv.tick("wasm_ferr")}}()})}; Gta=function(M){const W=new g.fk(M.uV,M.Rp);M.o0.publish("initialvideodatacreated",W);return Gg(M,1,W,!1)}; JGQ=function(M){const W=M.RT();W.setPlaybackRate(M.uV.A?1:V_P(M,Number(g.MZ("yt-player-playback-rate"))||1));W.o8(M.dj,M);W.G8()}; Dky=function(M){M.bj();var W=M.Rp;Jk(M);M.events.J(window,"resize",M.NQ);const b=M.Zy();g.Jp(M.o0,"onVolumeChange",M.jH);if(W&&HT(W)){const T=aU(M.uV);T&&!M.cg&&(W.fetch=0);const q=g.tP(M.uV);q&&!M.cg&&(W.fetch=0);Tg(M,W);g.tP(M.uV)&&M.pv.tick("ep_pr_s");if(!T||M.cg)if(q&&!M.cg)B4(M);else if(!b.S2())M.playlist.onReady(()=>{Dp(M)})}M.Wj(M.RT(),!1,!0); M.RT().getPlayerState().Z(128)||(W=OYp(!M.uV.deviceIsAudioOnly),W==="fmt.noneavailable"?M.Jy("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):W==="html5.missingapi"?M.Jy(W,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):b&&b.S2()&&aG(M)&&(M.uV.zm||M.uV.ek)?ET(M):b.yI?M.o0.mutedAutoplay({durationMode:b.mutedAutoplayDurationMode}):g.MZ("yt-player-playback-on-reload")?(g.V9("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!M.uV.sY}),g.$u("yt-player-playback-on-reload",!1), ET(M)):E1(M.uV)||B1P(M),g.Zk(M.uV)||ol(M.uV)==="MWEB"?(g.yn(g.Cv(),()=>{nV(M)}),g.yn(g.Cv(),()=>{urp()})):(nV(M),urp()))}; ana=function(M){const W=b=>{b.stack&&b.stack.indexOf("player")!==-1&&M.Jn().Au(b)}; Rc.subscribe("handleError",W);Gk.push(W);return()=>{Rc.unsubscribe("handleError",W);const b=Gk.indexOf(W);b!==-1&&Gk.splice(b,1)}}; Gg=function(M,W,b,T,q){M=g.E3t(M,W,b,q);M=new g.ya(M);T&&M.G8();return M}; V_P=function(M,W){var b=M.o0.getAvailablePlaybackRates();W=Number(W.toFixed(2));M=b[0];b=b[b.length-1];W<=M?W=M:W>=b?W=b:(M=Math.floor(W*100+.001)%5,M!==0&&(W-=M*.01,W=Math.floor(W*100+.001)/100));return W}; CV=function(M){UT(M);M.setLoopVideo(!1);M.setLoopRange(null);M.o0.publish("legacyadtrackingpingreset");M.QT={};M.Hv=[];yVt(M.pv);if(M.e2){var W=M.e2,b=M.RT();b.getPlayerType();ml(W,!1);RA(W);UAs(W);W.playback=b}W=M.Cv;M=M.RT();M.getPlayerType()!==1&&zq(W,"invalidParentVideoPlayerType");xv(W,!1);Sh(W);W.Z=M}; n3P=function(M){const W=M.mediaElement;Gn()?M.PL.J(W,"webkitpresentationmodechanged",M.bR):window.document.pictureInPictureEnabled&&(M.PL.J(W,"enterpictureinpicture",()=>{M.Yu(!0)}),M.PL.J(W,"leavepictureinpicture",()=>{M.Yu(!1)})); ks&&(M.PL.J(W,"webkitbeginfullscreen",()=>{M.Cu(3)}),M.PL.J(W,"webkitendfullscreen",()=>{M.Cu(0)}))}; Jk=function(M){M.mediaElement=M.uV.deviceIsAudioOnly?new g.Qm(g.Gr("AUDIO")):cS.pop()||new g.Qm(g.Gr("VIDEO"));g.t(M,M.mediaElement);M.Jn().setMediaElement(M.mediaElement);try{M.uV.fv?(M.vC&&M.events.fN(M.vC),M.vC=M.events.J(M.mediaElement,"volumechange",M.aI)):(M.mediaElement.X(M.jH.muted),M.mediaElement.setVolume(M.jH.volume/100))}catch(q){M.Jy("html5.missingapi",2,"UNSUPPORTED_DEVICE",`setvolume.1;emsg.${q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g, "_")}`);return}M.PL.V();n3P(M);var W=M.template,b=M.mediaElement.BP();W.gG=b;W.u5=!1;W.gG.parentNode||D3(W.Yi,W.gG,0);W.Xe=new g.re(0,0,0,0);eKg(W);Of(W);b=W.gG;g.pY(b,"video-stream");g.pY(b,g.Vg.MAIN_VIDEO);const T=W.app.G();T.u3&&b.setAttribute("data-no-fullscreen","true");T.j("html5_local_playsinline")?"playsInline"in Tn()&&(b.playsInline=!0):T.X5&&(b.setAttribute("webkit-playsinline",""),b.setAttribute("playsinline",""));T.cV&&W.gG&&W.J(b,"click",b.play,b);try{M.mediaElement.activate()}catch(q){M.Jy("html5.missingapi", 2,"UNSUPPORTED_DEVICE",`activate.1;emsg.${q&&typeof q==="object"&&"message"in q&&typeof q.message==="string"&&q.message.replace(/[;:,]/g,"_")}`)}}; qj=function(M,W,b){M.o0.publish(W,b);const T=g.XD(M.uV)||g.WQ(M.uV)||g.dB(M.uV);if(b&&T){let q;switch(W){case "cuerangemarkersupdated":q="onCueRangeMarkersUpdated";break;case "cuerangesadded":q="onCueRangesAdded";break;case "cuerangesremoved":q="onCueRangesRemoved"}q&&g.q8(M.o0,q,b.map(X=>({getId(){return this.id},end:X.end,id:X.getId(),namespace:X.namespace==="ad"?"ad":"",start:X.start,style:X.style,visible:X.visible,markerPositionMs:X.markerPositionMs})))}}; yGJ=function(M,W=!0){var b;if(b=M.ox){b=M.ox;var T=M.mediaElement;b=!!T&&T===b.mediaElement}b&&(M.ys(),Jk(M));b=M.Jn();b.ys(!W);b.yu(M.Vj,M);b.getPlayerType()!==1&&b.dispose();M=M.CN;W=[M.V];M.V=M.W;qb(M,[],W)}; KV=function(M,W,b,T){b&&(M.ys(),Jk(M));b=M.Jn();b.TG(W);const q=M.getVideoData(),X={};X.video_id=q.videoId;X.adformat=q.adFormat;q.isLivePlayback||(X.start=b.getCurrentTime(),X.resume="1");q.isLivePlayback&&R9(q)&&g.Tb(M.uV)&&(X.live_utc_start=b.A1(),X.resume="1");q.Zs&&(X.vvt=q.Zs);q.ll&&(X.vss_credentials_token=q.ll,X.vss_credentials_token_type=q.C4);q.oauthToken&&(X.oauth_token=q.oauthToken);X.autoplay=1;X.reload_count=q.jT+1;X.reload_reason=W;q.qA&&(X.unplugged_partner_opt_out=q.qA);q.k_&&(X.ypc_is_premiere_trailer= q.k_);q.playerParams&&(X.player_params=q.playerParams);q.O&&(X.itct=q.O);M.loadVideoByPlayerVars(X,void 0,!0,void 0,void 0,T);W==="signature"&&M.e2&&kV(M)}; CVy=function(M){if(!UkG(M)){var W=M.RT().E2();W&&(W=W.O(),W instanceof Promise&&W.catch(()=>{})); v4(M,a6(M.getPlayerStateObject()))}}; UkG=function(M){if(M.playlist&&(g.Th(M.uV)||M.uV.Zs==="background_audio_playback")&&M.zZ()){const W=M.uV.j("html5_player_autonav_logging");M.nextVideo(!1,W);return!0}return!1}; v4=function(M,W){const b=M.Jn(),T=b.getPlayerType();if(T!==2||M.UO()){if(T===2&&M.UO()||T===5||T===6||T===7)if(W===-1||W===0||W===5)return;if(W===0){if(M.IT)return;if(b.Xc()&&g.XD(M.uV)){M.playVideo();return}}M.As!==W&&(M.As=W,g.Jp(M.o0,"onStateChange",W))}else M.Zn!==W&&(M.Zn=W,g.Jp(M.o0,"onAdStateChange",W))}; g.Qk=function(M,W){return M.CN.dW(W)||M.CN.W}; g.E3t=function(M,W,b,T){let q=M.pv;W===2&&(q=new ktt(M.uV));W=new g.mg(M.uV,W,q,M.template,(X,G,V)=>{M.o0.publish(X,G,V)},()=>M.o0.getVisibilityState(),M.visibility,M,M.PP,b,T,M.Ej); M.uV.hT().Z.UY(KMq)&&M.yr(b.clientPlaybackNonce);return W}; wy=function(M,W){return M.UO(W)?M.RT():W}; LV=function(M,W){const b=M.Jn();return W===M.RT()&&M.UO(W)&&M.UO(b)?b:W}; lL=function(M){M=m3(M.Dy);return!!M&&M.loaded}; v3L=function(M){const W=M.getVideoData();var b=M.Dy;gm(b)||b.S();!wp&&Qx(b)&&Spp(b);dm(b,"embed");dm(b,"kids");dm(b,"remote");dm(b,"miniplayer");dm(b,"offline");dm(b,"unplugged");dm(b,"ypc",!1,!0);dm(b,"webgl",!1,!0);OEG(b)||(dm(b,"captions",!0),dm(b,"endscreen"),b.Z(),dm(b,"creatorendscreen",!0));b.X();b.L.publish("modulesCreated");M.o0.publish("videoready",W)}; kV=function(M){if(!lL(M)){const W=zy(M.Dy);W&&!W.created&&cT(M.Dy)&&W.create()}}; Mj=function(M){var W=M.getVideoData();if(!W.KZ){W=M.uV.fv?1:Gnq(W);const b=M.mediaElement;b.X(M.jH.muted);try{b.setVolume(M.jH.volume*W/100)}catch{g.lR(new g.EF("b183742307",`multiplier: ${W}, volume: ${M.jH.volume}`))}}}; aG=function(M){M=M.Zy();M.S2();return wF(M)}; B4=function(M,W){const b=(W?W:M.Zy()).Y3;M.pv.tick("ep_pr_r");if(b!=null&&(UvP(M.playlist,b),M.cR))M.playlist.onReady(()=>{Dp(M,W)})}; Dp=function(M,W){const b=g.tP(M.uV)&&!M.uV.O;var T=b&&W?W:g.Rr(M.playlist);W=b&&W?W:M.getVideoData();T&&(W.eO&&(M.uV.zm||M.uV.ek)||!M.LB?(W=W.Y9,T=M.TE(T,1),W&&gy(M,T)):tk(M,T,1));g.tP(M.uV)&&M.pv.tick("ep_p_l");M.cR=!1;g.Vc(M.o0,"onPlaylistUpdate")}; ET=function(M){var W=M.RT();if(W.getPlayerState().Z(128))return!1;W=W.getVideoData();aG(M)&&M.uV.ek&&(cS.length&&M.uY?(W4(M,{muted:!1,volume:M.jH.volume},!1),$V(M,!1)):cS.length||M.jH.muted||(W4(M,{muted:!0,volume:M.jH.volume},!1),$V(M,!0)));aG(M)&&g.tP(M.uV)&&W.mutedAutoplay&&(W4(M,{muted:!0,volume:M.jH.volume},!1),$V(M,!0));W.B6&&W4(M,{muted:!0,volume:M.jH.volume},!1);jZ(M,1,W,!1);const b=M.RT();M.o0.publish("initializingmode");M.Wj(b);M.bG(3);var T;if(!(T=!M.uV.Ia)){if(T=M.ox){T=M.ox;var q=M.mediaElement; T=!!q&&q===T.mediaElement}T=T&&M.ih}T&&(M.ys(),Jk(M),b.setMediaElement(M.mediaElement));b.bY();if(b.getPlayerState().Z(128))return!1;W.fv||v4(M,3);return M.ih=!0}; B1P=function(M){M.o0.publish("initializingmode");M.bG(2);dm(M.Dy,"remote");dm(M.Dy,"miniplayer")}; nV=function(M){if(!M.j("use_rta_for_player"))if(M.j("fetch_att_independently"))M.V5.Wr();else{var W=M.getVideoData().botguardData;W&&g.bu(W,M.uV,M.getVideoData().im||"")}}; $V=function(M,W){W!==M.uY&&(M.uY=W,g.Vc(M.o0,"onMutedAutoplayChange",W))}; jZ=function(M,W,b,T){const q=Zp(M,W,b),X=M.CN.C.get(q)||null;if(!X)return null;M.CN.C.remove(q);if(X.ST())return null;if(X.getPlayerState().Z(128))return X.dispose(),null;if(X===M.dW({playerType:W}))return M.pv.infoGel({isCacheHit:!0}),X;if((X.getVideoData().oauthToken||b.oauthToken)&&X.getVideoData().oauthToken!==b.oauthToken)return null;W===1&&(W=M.Jn().getVideoData(),LP(W)&&W.isAd()&&T||UT(M));T||M.Wj(X,!0);M.pv.infoGel({isCacheHit:!0});return X}; mks=function(M){const W=(0,g.u)();var b=M.getCurrentTime();M=M.getVideoData();b=1E3*(b-M.startSeconds);M.isLivePlayback&&(b=0);return W-Math.max(b,0)}; p0S=function(M,W){if(!M.IT)return!1;const b=M.IT.startTimeMs*.001-1;let T=M.IT.endTimeMs*.001;M.IT.type==="repeatChapter"&&T--;return Math.abs(W-b)<=1E-6||Math.abs(W-T)<=1E-6||W>=b&&W<=T}; LMq=function(M){var W=M.Jn();if(M.j("html5_disable_loop_range_for_shorts_ads")&&W.getVideoData().isAd()?0:LP(W.getVideoData())&&!W.fB())W=Yv(M)*1E3-M.getVideoData().Ql,M.j("html5_gapless_new_slr")?(M=M.VJ,XL(M.app,"gaplessshortslooprange"),W=new g.Ap(0,W,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(M=M.app.Jn())&&M.addCueRange(W)):M.setLoopRange({startTimeMs:0,endTimeMs:W,type:"shortsLoop"})}; lnt=function(M){const W=M.RT();if(!(W.getPlayerState().Z(64)&&M.Zy().isLivePlayback&&M.IT.startTimeMs<5E3)){if(M.IT.type==="repeatChapter"){var b=tAJ(M.lk())?.rS(),T=M.getVideoData()?.aT;b instanceof g.IG&&T&&(T=T[ZG(T,M.IT.startTimeMs)],b.renderChapterSeekingAnimation(0,T.title));isNaN(Number(M.IT.loopCount))?M.IT.loopCount=0:M.IT.loopCount++;M.IT.loopCount===1&&g.q8(M.o0,"innertubeCommand",M.getVideoData().o4)}b={jR:"application_loopRangeStart"};if(M.IT.type==="clips"||M.IT.type==="shortsLoop")b.seekSource= 58;W.seekTo(M.IT.startTimeMs*.001,b)}}; pM=function(M,W,b){if(M.UO(b)&&(b=b.getVideoData(),!Nj(M))){M=M.Cv;for(var T of M.V)if(b.cF===T.cF){W+=T.Br/1E3;break}T=W;for(const q of M.V){if(b.cF===q.cF)break;M=q.Br/1E3;if(M{M.cR=!0;B4(M,X)}); else M.playlist.onReady(()=>{Dp(M)}); g.tP(M.uV)&&M.pv.tick("ep_a_pr_r")}; H4=function(M){const W=PV(!0);return W&&(W===M.template.element||M.mediaElement&&W===M.mediaElement.BP())?W:null}; RZs=function(M,W){var b=window.screen?.orientation;if(M.uV.W&&b&&b.lock&&(!g.XH||!fnp))if(W){W=b.type.indexOf("portrait")===0;const T=M.template.getVideoAspectRatio();let q=W;T<1?q=!0:T>1&&(q=!1);M.M4&&q===W||(b=b.lock(q?"portrait":"landscape"),b!=null&&b.catch(()=>{}),M.M4=!0)}else M.M4&&(M.M4=!1,b.unlock())}; rGP=function(M,W){W.bounds=M.getBoundingClientRect();const b=["display","opacity","visibility","zIndex"];for(const T of b)W[T]=uq(M,T);W.hidden=!!M.hidden}; xkt=function(M,W){const b=M.dW({playerType:1});if(b){if(b.getVideoData().clientPlaybackNonce===W)return b;if((M=M.CT.Z)&&M.getVideoData().clientPlaybackNonce===W)return M}return null}; FMq=function(M){return M.name==="TypeError"&&M.stack.includes("/s/player/")&&JA()<=105}; i0S=function(M){return M.isTimeout?"NO_BID":"ERR_BID"}; hZG=function(){let M=null;P8q().then(W=>M=W,W=>M=i0S(W)); return M}; AGs=function(){const M=WD(1E3,"NO_BID");return g.Aq(oUp([P8q(),M]).JD(i0S),()=>{M.cancel()})}; cs=function(M){return M.s2?g.jQ().UY(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; fV=function(M,W,{eZ:b,Yj:T,cueProcessedMs:q}={},X=""){const G=M.player.getVideoData({playerType:1}),V=M.player.G().s7;var J=0;if(q&&T&&!b){const E=T.end-T.start;E>0&&(J=Math.floor(E/1E3))}J=b?b.C7:J;const B={AD_BLOCK:M.Z++,AD_BREAK_LENGTH:J,AUTONAV_STATE:cs(M.player.G()),CA_TYPE:"image",CPN:G.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:M.player.Ph()*1E3,LACT:EK(),LIVE_INDEX:b?M.V++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:T?Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start): 0,VIS:M.player.getVisibilityState(),P_H:M.player.qe().hX().height,P_W:M.player.qe().hX().width,YT_REMOTE:V?V.join(","):""},D=ZM(IS);Object.keys(D).forEach(E=>{D[E]!=null&&(B[E.toUpperCase()]=D[E].toString())}); X!==""&&(B.BISCOTTI_ID=X);T={};lp(W)&&(T.sts="20500",(X=M.player.G().forcedExperiments)&&(T.forced_experiments=X));const a=Kg(g.tf(W,B),T);return a.split("?").length!==2?Rk(Error("Invalid AdBreakInfo URL")):g.ZI(M.player.G(),G?.oauthToken).then(E=>{if(E&&m0()){var n=fe();Rm(n,E)}E=M.player.M1(n);n=b&&M.player.G().j("html5_send_cuepoint_id_in_ad_break_request")?b.identifier:void 0;n=TeS(M,a,B,G.isMdxPlayback,q,n);return g.SM(E,n,"/youtubei/v1/player/ad_break").then(C=>C)})}; zZp=function(M,W){M=M.player.G();if(nL(M)||U1(M))M=g.F("INNERTUBE_CONTEXT"),M?.adSignalsInfo?.advertisingId&&typeof M?.adSignalsInfo?.limitAdTracking!=="undefined"&&(W.advertisingId=M.adSignalsInfo.advertisingId,W.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",W.limitAdTracking=M.adSignalsInfo.limitAdTracking)}; $PG=function(M,W,b,T,q,X){W.client||(W.client={});M.player.G().j("h5_remove_url_for_get_ad_break")||(W.client.originalUrl=b);const G=ve(b);let V=g.$F(b)?!1:!0;(G||V)&&typeof Intl!=="undefined"&&(W.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);V=g.$F(b)?!1:!0;if(G||V||T!==""){const J={};b=so(wA(T)).split("&");const B=new Map;b.forEach(D=>{D=D.split("=");D.length>1&&B.set(D[0].toString(),decodeURIComponent(D[1].toString()))}); B.has("bid")&&(J.bid=B.get("bid"));J.params=[];uqt.forEach(D=>{B.has(D)&&(D={key:D,value:B.get(D)},J.params.push(D))}); zZp(M,J);W.adSignalsInfo=J}W.client.unpluggedAppInfo||(W.client.unpluggedAppInfo={});W.client.unpluggedAppInfo.enableFilterMode=!1;b=q.Z.cosver;b!=null&&b!=="cosver"&&(W.client.osVersion=b);b=q.Z.cplatform;b!=null&&b!=="cplatform"&&b!==""&&(W.client.platform=b);b=q.Z.cmodel;b!=null&&b!=="cmodel"&&(W.client.deviceModel=b);b=q.Z.cplayer;b!=null&&b!=="cplayer"&&(W.client.playerType=b);b=q.Z.cbrand;b!=null&&b!=="cbrand"&&(W.client.deviceMake=b);W.user||(W.user={});W.user.lockedSafetyMode=!1;g.Th(q)&& $Ht(W,X,M.player.getPlayerState(1));if(M=q.livingRoomPoTokenId)W.client.tvAppInfo={...W.client.tvAppInfo,livingRoomPoTokenId:M}}; MUa=function(M,W){let b=!1;if(W==="")return b;W.split(",").forEach(T=>{const q={},X={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""};let G="ACTIVE";T[0]==="!"&&(T=T.substring(1),G="INACTIVE");T=T.split("-");T.length<3||(T[0]in Ssy&&(X.clientName=Ssy[T[0]]),T[1]in O0L&&(X.platform=O0L[T[1]]),X.applicationState=G,X.clientVersion=T.length>2?T[2]:"",q.remoteClient=X,M.remoteContexts?M.remoteContexts.push(q):M.remoteContexts=[q],b=!0)}); return b}; pSL=function(M){const W=new PVq(M.Z.U2);g.t(M,W);M=[new eZt(M.Z.iV),new dkt(M.Z.L),new o3S(M.Z.iV),new cGg(M.Z.IE,M.Z.PM),new Qhq,new g3t(M.Z.Lu,M.Z.Ei,M.Z.iV),new shy,new wSt(M.Z.Ei)];for(const b of M)DtJ(W,b);for(const b of["adInfoDialogEndpoint","adFeedbackEndpoint"])t3(W,b,()=>{}); return W}; RG=function(M){const W=M.NK,b=M.PY;M=M.Oj;const T={sxK:new Ysg(W.get(),b),PY:b};return{Ne:new $by(b,M,W),context:T}}; tF=function(M){M.V=!1;const W={};M.Z&&M.videoId&&(W.cttAuthInfo={token:M.Z,videoId:M.videoId});FN("ad_to_video",W);MhJ(M)}; Wlt=function(M){if(M.L.getVideoData({playerType:1})?.D){M.V=!1;var W={};M.Z&&M.videoId&&(W.cttAuthInfo={token:M.Z,videoId:M.videoId});FN("video_to_ad",W)}}; bMG=function(M,W){for(const b of W)if((M=b.renderer)&&(M.instreamVideoAdRenderer||M.linearAdSequenceRenderer||M.sandwichedLinearAdRenderer||M.instreamSurveyAdRenderer)){rO("ad_i");g.xD({isMonetized:!0});break}}; MhJ=function(M){if(M.B)if(M.A==="AD_PLACEMENT_KIND_START"&&M.actionType==="video_to_ad")HZ("video_to_ad");else{var W={adBreakType:Ut(M.A),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:M.videoStreamType};M.actionType==="ad_to_video"?(M.contentCpn&&(W.targetCpn=M.contentCpn),M.videoId&&(W.targetVideoId=M.videoId)):(M.adCpn&&(W.targetCpn=M.adCpn),M.adVideoId&&(W.targetVideoId=M.adVideoId));M.adFormat&&(W.adType=M.adFormat);M.contentCpn&& (W.clientPlaybackNonce=M.contentCpn);M.videoId&&(W.videoId=M.videoId);M.adCpn&&(W.adClientPlaybackNonce=M.adCpn);M.adVideoId&&(W.adVideoId=M.adVideoId);g.xD(W,M.actionType);M.L.G().experiments.FX("html5_ads_csi_qoes")&&(W=M.L.ZS(M.actionType==="ad_to_video"?1:2),W=(0,g.u)()-1E3*W,hs("qoes",W,M.actionType))}}; Tyq=function(M){M.contentCpn=null;M.adCpn=null;M.videoId=null;M.adVideoId=null;M.adFormat=null;M.A="AD_PLACEMENT_KIND_UNKNOWN";M.actionType="unknown_type";M.B=!1;M.V=!1}; rt=function(M,W){M.L.cueVideoByPlayerVars(W,2)}; IN=function(M,W,...b){W==="onAdStart"||W==="onAdEnd"?g.Jp(M.L,W,...b):g.q8(M.L,W,...b)}; Bo=function(M,W){return M.L.G().j(W)}; qfL=function(M){return M.L.G().experiments.FX("enable_desktop_discovery_video_abandon_pings")||nL(M.L.G())}; Xmt=function(M){return M.L.G().experiments.FX("enable_progres_commands_lr_feeds")}; jAL=function(M){return M.L.G().experiments.FX("enable_progress_commands_lr_shorts")}; xG=function(M,W){return M.L.G().j("html5_cue_video_for_preroll")&&W?.kind==="AD_PLACEMENT_KIND_START"?!1:M.L.G().experiments.FX("html5_load_ads_instead_of_cue")}; Fe=function(M){return M.L.G().experiments.FX("html5_preload_ads")}; Gqg=function(M){return M.L.G().experiments.FX("html5_load_empty_player_in_media_break_sub_lra")}; xV=function(M){return M.L.G().experiments.FX("html5_ssdai_enable_media_end_cue_range")}; FL=function(M){return M.L.G().j("substitute_ad_cpn_macro_in_ssdai")}; bf=function(M){return M.L.getVideoData({playerType:1}).getPlayerResponse()?.playerConfig?.daiConfig?.enableServerStitchedDai||!1}; oj=function(M){return M.L.G().experiments.FX("enable_progress_commands_el_dai")}; QSQ=function(M){M=M.L.getVideoData({playerType:1});return!!M&&M.j("html5_preload_first_vod_video_ad")&&!M.isDaiEnabled()&&!M.isLivePlayback}; mp=function(M){return M.L.G().experiments.FX("enable_desktop_player_underlay")}; VCP=function(M){return M.L.G().j("html5_enable_vod_slar_with_notify_pacf")}; y_=function(M){return M.L.G().experiments.FX("enable_ads_control_flow_deterministic_id_generation")}; qW=function(M){return M.L.G().experiments.FX("html5_cuepoint_identifier_logging")}; Vht=function(M){return M.L.G().j("html5_recognize_predict_start_cue_point")}; J9S=function(M){return M.L.G().experiments.FX("should_ignore_cuepoints_during_lifa_preroll")}; ByL=function(M){switch(M){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}}; hk=function(){if(iL===null){iL=new Dbp;k4(FX).V="b";var M=k4(FX);let W=Zq(M)=="h"||Zq(M)=="b",b=!(PO(),!1);W&&b&&(M.lV=!0,M.xk=new adl)}return iL}; EvJ=function(M,W,b){M.Z[W]=b}; nvP=function(M){switch(M){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}}; zg=function(M,W,b){const T=b.hE,q=b.vT,X=b.listener;b=b.GJ;if(M.Z.has(W))za("Unexpected registration of layout in LidarApi");else{if(b){if(M.V.has(b))return;M.V.add(b)}M.Z.set(W,X);pJ(PO().pN,"fmd",1);uv(k4(FX),T);EvJ(hk(),W,{j4:()=>{if(!q)return{};const G=M.L.getPresentingPlayerType(!0);return M.L.getVideoData({playerType:G})?.isAd()?{currentTime:M.I0.get().getCurrentTimeSec(G,!1,void 0),duration:q,isPlaying:Ak(M.I0.get(),G).isPlaying(),isVpaid:!1,isYouTube:!0,volume:M.I0.get().isMuted()?0:M.I0.get().getVolume()/ 100}:{}}})}}; uL=function(M,W){M.Z.has(W)?(M.Z.delete(W),delete hk().Z[W]):za("Unexpected unregistration of layout in LidarApi")}; y9t=function(M,W){if(M.L.isLifaAdPlaying()){var b=M.L.RE(!0,!0);M.W(W,b.width*.5*1.1,b.height*.25*1.1,b.width*.5*.9,b.height*.5*.9)}}; var uEq=function(M,W){return Ht[y[0]](this,72,M,W)}; kqg=function(M,W){const b={};UbL(M,b,W);CiS(b);b.LACT=SZ(()=>EK().toString()); b.VIS=SZ(()=>M.getVisibilityState().toString()); b.SDKV="h.3.0";b.VOL=SZ(()=>M.isMuted()?"0":Math.round(M.getVolume()).toString()); b.VED="";return b}; KlL=function(M,W){const b={};if(W||!M||!M.kind)return b;if(M.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||M.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!M.adTimeOffset||!M.adTimeOffset.offsetStartMilliseconds)return g.O(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=SZ(Lr(Math.round(DZ(M.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=SZ(Lr("0"));return b}; SZ=function(M){return{toString(){return M()}}}; vvL=function(M,W,b){if(!b||g.P$(b))return M;const T=Object.assign({},M),q=W?encodeURIComponent:X=>X; M=(X,G)=>{(G=b[G])&&(T[X]=q(G))}; M("DV_VIEWABILITY","doubleVerifyViewability");M("IAS_VIEWABILITY","integralAdsViewability");M("MOAT_INIT","moatInit");M("MOAT_VIEWABILITY","moatViewability");M=(X,G)=>{(G=b[G])&&(T[X]=G)}; M("GOOGLE_VIEWABILITY","googleViewability");M("VIEWABILITY","viewability");return T}; UbL=function(M,W,b){W.CPN=SZ(()=>{var T;(T=M.getVideoData({playerType:1}))?T=T.clientPlaybackNonce:(g.lR(Error("Video data is null.")),T=null);return T}); W.AD_MT=SZ(()=>{if(b!=null)var T=b;else M.G().j("enable_h5_shorts_ad_fill_ad_mt_macro")||M.G().j("enable_desktop_discovery_pings_ad_mt_macro")||nL(M.G())?(T=M.getPresentingPlayerType(!0),T=M.getVideoData({playerType:T})?.isAd()?M.getCurrentTime({playerType:T,qW:!1}):0):T=M.getCurrentTime({playerType:2,qW:!1});return mbg(T)}); W.MT=SZ(()=>mbg(M.getCurrentTime({playerType:1,qW:!1}))); W.P_H=SZ(()=>M.qe().hX().height.toString()); W.P_W=SZ(()=>M.qe().hX().width.toString()); W.PV_H=SZ(()=>M.qe().getVideoContentRect().height.toString()); W.PV_W=SZ(()=>M.qe().getVideoContentRect().width.toString())}; mbg=function(M){return Math.round(Math.max(0,M*1E3)).toString()}; CiS=function(M){M.CONN=SZ(Lr("0"));M.WT=SZ(()=>Date.now().toString())}; LlP=async function(M,W,b,T,q){const X=!!W.scrubReferrer;b=g.tf(W.baseUrl,vvL(b,X,T));T={};if(W.headers){var G=M.A();G=G.Z?await G.Z:G.getValue();for(const V of W.headers)switch(V.headerType){case "VISITOR_ID":g.F("VISITOR_DATA")&&(T["X-Goog-Visitor-Id"]=g.F("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.F("EOM_VISITOR_DATA")&&(T["X-Goog-EOM-Visitor-Id"]=g.F("EOM_VISITOR_DATA"));break;case "USER_AUTH":G&&(T.Authorization=`Bearer ${G}`);break;case "PLUS_PAGE_ID":(W=M.S())&&(T["X-Goog-PageId"]=W);break; case "AUTH_USER":W=M.Z();!G&&W&&(T["X-Goog-AuthUser"]=W);break;case "DATASYNC_ID":M.B()?.FX("enable_datasync_id_header_in_web_vss_pings")&&(W=M.V(),ve(b)&&g.F("LOGGED_IN")&&W&&(T["X-YouTube-DataSync-Id"]=W))}"X-Goog-EOM-Visitor-Id"in T&&"X-Goog-Visitor-Id"in T&&delete T["X-Goog-Visitor-Id"]}g.zu(b,void 0,X,Object.keys(T).length!==0?T:void 0,"",!0,q)}; HK=function(M,W,b){typeof b==="string"?M.L.getVideoData({playerType:1}).e3(W,b):M.L.getVideoData({playerType:1}).dK(W,b)}; Ho=function(M,W){M.L.sendVideoStatsEngageEvent(W,void 0,2)}; ncp=function(M,W,b,T=[],q,X){const G=Jy(M.V.get(),W);if(G){var V=M.HP.get().e6(W,b),J=iw(M,OT(G),G,q,X);T.forEach((B,D)=>{B.baseUrl&&(M.B.send(B.baseUrl,J,V,B.attributionSrcMode),B.serializedAdPingMetadata&&M.Ne.Z("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,G,new ldS(B,D),void 0,void 0,G.adLayoutLoggingData))})}else za("Trying to track from an unknown layout.",void 0,void 0,{layoutId:W, trackingType:b})}; P4=function(M,W){M.Z.has(W.nA())?za("Trying to register an existing AdErrorInfoSupplier."):M.Z.set(W.nA(),W)}; eZ=function(M,W){M.Z.delete(W.nA())||za("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; I6=function(M,W){g.V9("adsClientStateChange",W)}; thg=function(M,W,b,T,q){const X=Jy(M.V.get(),b);X?(b=iw(M,OT(X),X,void 0,void 0,T),W.hasOwnProperty("baseUrl")?M.A.send(W,b):M.B.send(W,b,{},q)):za("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b})}; iw=function(M,W,b,T,q,X){const G=b?ZMp(M):{},V=b?IdP(M,b.layoutId):{},J=Nyl(M),B=q??pX(M.NK.get(),2)?.clientPlaybackNonce;M={...kqg(M.L,T),...KlL(W.adPlacementConfig,b?.renderingContent!==void 0),...V,...G,...J,FINAL:SZ(()=>"1"), AD_CPN:SZ(()=>B||"")}; b?.renderingContent!==void 0||(M.SLOT_POS=SZ(()=>(W.pJ||0).toString())); b={};X=Object.assign({},M,X);for(const D of Object.values(HMt))M=X[D],M!=null&&M.toString()!=null&&(b[D]=M.toString());return b}; OT=function(M){const W=M.clientMetadata.fp("metadata_type_ad_placement_config");M=M.clientMetadata.fp("metadata_type_media_sub_layout_index");return{adPlacementConfig:W,pJ:M}}; ZMp=function(M){const W={},b=M.n6?.eP();b!=null&&(W.SURVEY_ELAPSED_MS=SZ(()=>Math.round(b*1E3).toString())); W.SURVEY_LOCAL_TIME_EPOCH_S=SZ(()=>Math.round(Date.now()/1E3).toString()); return W}; IdP=function(M,W){M=M.Z.get(W);return M?(M=M.P2())?{YT_ERROR_CODE:M.M_.toString(),ERRORCODE:M.tO.toString(),ERROR_MSG:M.errorMessage}:{}:{}}; Nyl=function(M){const W={},b=M.L.getVideoData({playerType:1});W.ASR=SZ(()=>b?.yn??null); W.EI=SZ(()=>b?.eventId??null); return W}; pX=function(M,W){const b=M.L.getVideoData({playerType:W});return b?M.S$(b,W||M.L.getPresentingPlayerType(!0)):null}; dt=function(M,W,b){const T=M.S$(W,b);M.aG=T;M.listeners.forEach(q=>{q.OW(T)})}; fdS=function(M,W){M.yk=M.yk.filter(b=>b!==W)}; oG=function(M,W){g.pY(M.L.getRootNode(),W)}; c4=function(M,W){g.Mw(M.L.getRootNode(),W)}; Ak=function(M,W){return M.L.getPlayerStateObject(W)}; Qa=function(M){M.L.cueVideoByPlayerVars({videoId:"empty_video"},2)}; ROl=function(M,W){const b=M.L.G();g.bb(b)||b.controlsType!=="3"||M.L.qe().ou(W)}; gt=function(M,W,b){return M.getCurrentTimeSec(W,b)}; sT=function(M,W){W=M.NK.get().hL.get(W)??null;if(W===null)return za("Expected ad video start time on playback timeline"),0;M=M.L.getCurrentTime({playerType:2,qW:!0});return Mq.adPlacementRenderer).filter(q=>!(!q||!q.renderer)); if(!T.length&&!b.length)return{HV:[],adSlots:b,Qx:!1,ssdaiAdsConfig:void 0};if(W.end>0){const q=W.end.toString();T.forEach(X=>{(X=X.config&&X.config.adPlacementConfig)&&X.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&X.adTimeOffset&&X.adTimeOffset.offsetEndMilliseconds==="-1"&&X.adTimeOffset.offsetEndMilliseconds!==q&&(X.adTimeOffset.offsetEndMilliseconds=q)}); b.map(X=>g.z(X,aW)).forEach(X=>{(X=X?.slotEntryTrigger?.mediaTimeRangeTrigger)&&X.offsetEndMilliseconds==="-1"&&(X.offsetEndMilliseconds=q)})}return{HV:T, adSlots:b,Qx:!1,ssdaiAdsConfig:M.ssdaiAdsConfig}}; iMQ=function(M,W,b){W=g.dG(W,T=>new FlQ(T,b,T.id)); g.q8(M.L,"onAdUxUpdate",W)}; A9L=function(M){const W=M.getVideoData();var b=M.E2(),T=b.BP(),q=M.G();const X=M.Tf();var G=X.F4*8/1024,V=X.X4/1024,J=X.aS;const B=X.xB;var D=X.tp,a=b.getCurrentTime().toFixed(2),E=zn(b.O1(),",",3);var n="";if(W.isDaiEnabled()){W.enableServerStitchedDai&&(n+=W.TX?"DS":"SS");n=W.FD()?n+"LIFA, ":n+"DAI, ";var C=X.L8;C&&(n+=C)}pP(W)&&!W.FD()&&(n+="LIFAE, ");Sz(W)&&(n+="SABR, ");if(W.fetchType){switch(W.fetchType){case "onesie":C="o";break;case "gp":C="gp";break;default:C="gvi"}n+=`vd:${C}, `}(C=q.Ds)&& (n=C.Z?n+"wa, ":n+"w, ");n+=`s:${D} t:${a} b:${E} `;b.isSeeking()&&(n+="S");b.isPaused()&&(n+="P");b.isEnded()&&(n+="E");M.isOrchestrationLeader()&&(n+=" L");(b=X.zf)&&(n+=` l:${b.toFixed()}`);b=X.currentTime;D=W.Zl;b&&b>D.start&&b>=5;N+=x}E=`${N.substr(0,4)} ${N.substr(4,4)} ${N.substr(8,4)} ${N.substr(12,4)} ${N.substr(16,4)}`}else E="";G={video_id_and_cpn:String(W.videoId)+" / "+E,codecs:"",dims_and_frames:"",bandwidth_kbps:`${G.toFixed(0)} Kbps`,buffer_health_seconds:`${J.toFixed(2)} s`, date:`${(new Date).toString()}`,drm_style:B?"":"display:none",drm:B,debug_info:n,extra_debug_info:"",bandwidth_style:a,network_activity_style:a,network_activity_bytes:`${V.toFixed(0)} KB`,shader_info:D,shader_info_style:D?"":"display:none",playback_categories:""};V=`${T.clientWidth}x${T.clientHeight}`+(b>1?`*${b.toFixed(2)}`:"");J="-";X.totalVideoFrames&&(J=`${X.droppedVideoFrames||0} dropped of ${X.totalVideoFrames}`);G.dims_and_frames=`${V} / ${J}`;M=M.getVolume();V=Gnq(W);M=`${Math.round(M)}% / ${W.A?.audio.V? "VB":W.A?.audio.Z?"DRC":`${Math.round(M*V)}%`}`;V=W.xs.toFixed(1);isFinite(Number(V))&&(M+=` (content loudness ${V}dB)`);G.volume=M;G.resolution=`${T.videoWidth}x${T.videoHeight}`;if(T=W.V){if(M=T.video)V=M.fps,V>1&&(G.resolution+=`@${V}`),(V=X.k8)&&V.video&&(G.resolution+=` / ${V.video.width}x${V.video.height}`,V.video.fps>1&&(G.resolution+=`@${V.video.fps}`)),G.codecs=Zjs(T),!W.A||T.audio&&T.video?T.ge&&(G.codecs+=` / ${T.ge}A`):G.codecs+=` / ${Zjs(W.A)}`,M.Z||M.primaries?(V=M.Z||"unknown",V=== "smpte2084"?V=`${V} (PQ)`:V==="arib-std-b67"&&(V=`${V} (HLG)`),G.color=`${V} / ${M.primaries||"unknown"}`,G.color_style=""):G.color_style="display:none";if(T.debugInfo){G.fmt_debug_info="";for(var R of T.debugInfo)G.fmt_debug_info+=`${R.label}:${R.text} `}G.fmt_debug_info_style=G.fmt_debug_info&&G.fmt_debug_info.length>0?"":"display:none"}R=W.isLivePlayback;T=W.f7;G.live_mode_style=R||T?"":"display:none";G.live_latency_style=R?"":"display:none";if(T)G.live_mode="Post-Live"+(R9(W)?" Manifestless": "");else if(R){T=X.UV;G.live_latency_secs=`${T.toFixed(2)}s`;R=R9(W)?"Manifestless, ":"";W.Lx&&(R+="Windowed, ");M="Uncertain";if(T>=0&&T<120)if(W.latencyClass&&W.latencyClass!=="UNKNOWN")switch(W.latencyClass){case "NORMAL":M="Optimized for Normal Latency";break;case "LOW":M="Optimized for Low Latency";break;case "ULTRALOW":M="Optimized for Ultra Low Latency";break;default:M="Unknown Latency Setting"}else M=W.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";R+= M;(T=X.vy)&&(R+=`, seq ${T.sequence}`);G.live_mode=R}q.experiments.hT().Z.UY(hOt)?X.isGapless&&!X.LK&&(G.playback_categories=X.Am?G.playback_categories+"Gapless ":G.playback_categories+"Queued "):!X.isGapless||LP(W)&&X.LK||(G.playback_categories+="Gapless ");G.playback_categories_style=G.playback_categories?"":"display:none";G.bandwidth_samples=X.xA;G.network_activity_samples=X.Ho;G.live_latency_samples=X.qq;G.buffer_health_samples=X.mC;q=W.cP();if(W.cotn||q)G.cotn_and_local_media=`${W.cotn?W.cotn: "null"} / ${q}`;G.cotn_and_local_media_style=G.cotn_and_local_media?"":"display:none";iY(W,"web_player_release_debug")?(G.release_name=y[73],G.release_style=""):G.release_style="display:none";G.debug_info&&l.length>0&&G.debug_info.length+l.length<=60?G.debug_info+=" "+l:G.extra_debug_info=l;G.extra_debug_info_style=G.extra_debug_info&&G.extra_debug_info.length>0?"":"display:none";return G}; wt=function(M,W){for(const b of M.listeners)W(b)}; zOq=function(M,W){var b=M.startSecs+M.C7;b=b<=0?null:b;if(b===null)return null;switch(M.event){case "start":case "continue":case "stop":break;case "predictStart":if(W)break;return null;default:return null}W=Math.max(M.startSecs,0);return{zO:new vN(W,b),iL:new iu(W,b-W,M.context,M.identifier,M.event,M.Z)}}; pHG=function(M,W,b){const T=g.k5(M.Z,W);if(T>=0)return W;W=-T-1;return W>=M.Z.length||M.Z[W]>b?null:M.Z[W]}; ucJ=function(M,W){M.qt.push(W);let b=!1;for(const T of M.listeners)b=T.UW(W)||b;M.A=b;qW(M.PY.get())&&HK(M.iV.get(),"onci",`cpi.${W.identifier};cpe.${W.event};cps.${W.startSecs};cbi.${b}`)}; OMp=function(M,W){I6(M.iV.get(),{cuepointTrigger:{event:Sfp(W.event),cuepointId:W.identifier,totalCueDurationMs:W.C7*1E3,playheadTimeMs:W.Z,cueStartTimeMs:W.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:M.L.getVideoData({playerType:1}).clientPlaybackNonce}})}; Sfp=function(M){switch(M){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";case "prefetch":return"CUEPOINT_EVENT_PREFETCH";default:return PX(M,"Unexpected cuepoint event")}}; Pil=function(M){switch(M){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:PX(M,"unknown transitionReason")}}; sAl=function(M,W,b,T,q){try{{const G=W.G();if(g.Zk(G))var X=new eOG(M,W,b,T,q);else if(g.kj(G))X=new dbL(M,W,b,T,q);else if(JI(G))X=new ovt(M,W,b,T,q);else if(g.dB(G))X=new c9g(M,W,b,T,q);else if(g.WQ(G))X=new QAt(M,W,b,T,q);else throw new TypeError("Unknown web interface");}return X}catch{return T=W.G(),za("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:T.Z.cplatform,interface:T.Z.c,Qcv:T.Z.cver,OeK:T.Z.ctheme,X3s:T.Z.cplayer,C$Y:T.playerStyle}),new gvq(M,W,b,q)}}; pV=function(M){return M.Z.Gf}; wmG=function(M){M=M.G();return qg(M)&&!g.Tb(M)&&M.playerStyle==="desktop-polymer"}; pms=function(M){const W=g.wP("html5-video-player");W&&g.H(W,"ytp-ad-display-override",M)}; YfL=function(M){const W=new g.YV({K:"div",N:"ytp-ad-text-overlay",U:[{K:"div",N:"ytp-ad-overlay-ad-info-button-container"},{K:"div",N:"ytp-ad-overlay-close-container",U:[{K:"button",N:"ytp-ad-overlay-close-button",U:[ZR($M)]}]},{K:"div",N:"ytp-ad-overlay-title",R0:"{{title}}"},{K:"div",N:"ytp-ad-overlay-desc",R0:"{{description}}"},{K:"div",rK:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],R0:"{{displayUrl}}"}]});M.J(W.hn("ytp-ad-overlay-title"),"click",b=>{MF(M,W.element,b)}); M.J(W.hn("ytp-ad-overlay-link"),"click",b=>{MF(M,W.element,b)}); M.J(W.hn("ytp-ad-overlay-close-container"),"click",M.An);W.hide();return W}; $jy=function(M){const W=new g.YV({K:"div",rK:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{K:"div",N:"ytp-ad-overlay-ad-info-button-container"},{K:"div",N:"ytp-ad-overlay-close-container",U:[{K:"button",N:"ytp-ad-overlay-close-button",U:[ZR($M)]}]},{K:"div",N:"ytp-ad-overlay-text-image",U:[{K:"img",Y:{src:"{{imageUrl}}"}}]},{K:"div",N:"ytp-ad-overlay-title",R0:"{{title}}"},{K:"div",N:"ytp-ad-overlay-desc",R0:"{{description}}"},{K:"div",rK:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], R0:"{{displayUrl}}"}]});M.J(W.hn("ytp-ad-overlay-title"),"click",b=>{MF(M,W.element,b)}); M.J(W.hn("ytp-ad-overlay-link"),"click",b=>{MF(M,W.element,b)}); M.J(W.hn("ytp-ad-overlay-close-container"),"click",M.An);M.J(W.hn("ytp-ad-overlay-text-image"),"click",M.fv);W.hide();return W}; MZl=function(M){const W=new g.YV({K:"div",N:"ytp-ad-image-overlay",U:[{K:"div",N:"ytp-ad-overlay-ad-info-button-container"},{K:"div",N:"ytp-ad-overlay-close-container",U:[{K:"button",N:"ytp-ad-overlay-close-button",U:[ZR($M)]}]},{K:"div",N:"ytp-ad-overlay-image",U:[{K:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});M.J(W.hn("ytp-ad-overlay-image"),"click",b=>{MF(M,W.element,b)}); M.J(W.hn("ytp-ad-overlay-close-container"),"click",M.An);W.hide();return W}; MF=function(M,W,b){const T=g.c$(M.macros),q=g.we(W);T.AW={toString:()=>q.width.toString()}; T.AH={toString:()=>q.height.toString()}; const X=g.ge(b,W).floor();T.I_X={toString:()=>X.x.toString()}; T.NX={toString:()=>X.x.toString()}; T.I_Y={toString:()=>X.y.toString()}; T.NY={toString:()=>X.y.toString()}; T.NM={toString:()=>M.W.toString()}; for(const G of M.C)M.layoutId?JZ(M.Gv,G,M.layoutId,T):g.O(Error("Missing layoutId for invideo_overlay_ad."));M.api.pauseVideo()}; WgP=function(M,W){M=M.api.getRootNode();g.H(M,"ytp-ad-overlay-open",W);g.H(M,"ytp-ad-overlay-closed",!W)}; bH=function(M,W){if(W){var b=g.z(W,Ud)||null;b==null?g.O(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(W=g.wP("video-ads ytp-ad-module")||null,W==null?g.O(Error("Could not locate the root ads container element to attach the ad info dialog.")):(M.O=new g.YV({K:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.t(M,M.O),M.O.cY(W),W=new WP(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,M.O.element,!1),g.t(M,W),W.init(WF("ad-info-hover-text-button"),b,M.macros),M.S? (W.cY(M.S,0),W.subscribe("f",M.OY,M),W.subscribe("e",M.b1,M),M.J(M.S,"click",M.cP),M.J(g.wP("ytp-ad-button",W.element),"click",()=>{if(g.z(g.z(b.button,gQ)?.serviceEndpoint,iFt))M.Lp=M.api.getPlayerState(1)===2,M.api.pauseVideo();else M.api.onAdUxClicked("ad-info-hover-text-button",M.layoutId)}),M.Ds=W):g.O(Error("Ad info button container within overlay ad was not present."))))}else g.lR(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; bVa=function(M,W){if(Tc(M,qF)||M.api.isMinimized())return!1;const b=jw(W.title),T=jw(W.description);if(g.Tp(b)||g.Tp(T))return!1;M.createServerVe(M.B.element,W.trackingParams||null);M.B.updateValue("title",jw(W.title));M.B.updateValue("description",jw(W.description));M.B.updateValue("displayUrl",jw(W.displayUrl));W.navigationEndpoint&&g.J7(M.C,W.navigationEndpoint);M.B.show();M.sY.start();M.logVisibility(M.B.element,!0);M.J(M.B.element,"mouseover",()=>{M.W++}); return!0}; TtL=function(M,W){if(Tc(M,qF)||M.api.isMinimized())return!1;const b=jw(W.title),T=jw(W.description);if(g.Tp(b)||g.Tp(T))return!1;M.createServerVe(M.V.element,W.trackingParams||null);M.V.updateValue("title",jw(W.title));M.V.updateValue("description",jw(W.description));M.V.updateValue("displayUrl",jw(W.displayUrl));M.V.updateValue("imageUrl",PaQ(W.image));W.navigationEndpoint&&g.J7(M.C,W.navigationEndpoint);M.wK=W.imageNavigationEndpoint||null;M.V.show();M.sY.start();M.logVisibility(M.V.element,!0); M.J(M.V.element,"mouseover",()=>{M.W++}); return!0}; qTL=function(M,W){if(M.api.isMinimized())return!1;const b=eCt(W.image);let T=b;b.width {M.W++;M.api.oe("invideo-overlay",M.layoutId)}); M.J(M.Z.element,"mouseout",()=>{M.api.Hs("invideo-overlay",M.layoutId)}); return!0}; X4y=function(M){return M.A&&M.A.closeButton&&M.A.closeButton.buttonRenderer&&(M=M.A.closeButton.buttonRenderer,M.serviceEndpoint)?[M.serviceEndpoint]:[]}; Tc=function(M,W){var b=M.api.qe().hX();const T=M.api.RE(!0,!1);return(W=AF(b,b.height-(T.height+T.top),W))?(M.MK&&W&&(b=g.c$(M.macros),b.ERRORCODE=W.tO.toString(),b.ERROR_MSG=W.errorMessage,M.layoutId?JZ(M.Gv,M.MK,M.layoutId,b):g.O(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; jGy=function(M,W){M=M.api.getRootNode();g.H(M,"ytp-ad-overlay-open",W);g.H(M,"ytp-ad-overlay-closed",!W)}; Ggg=function(M){const W=g.wP("html5-video-player");W&&g.H(W,"ytp-ad-display-override",M)}; jg=function(M,W,b=!1){M.Z&&(W?M.Z.hide():M.Z.show(),b&&M.Z instanceof XM&&!M.Z.C&&Q3l(M.Z,!1));M.V&&(W?M.V.show():M.V.hide())}; VZL=function(M){function W(b){return{toString:()=>b()}} M.macros.SURVEY_LOCAL_TIME_EPOCH_S=W(()=>{const b=new Date;return(Math.round(b.valueOf()/1E3)+-1*b.getTimezoneOffset()*60).toString()}); M.macros.SURVEY_ELAPSED_MS=W(()=>(Date.now()-M.A).toString())}; JkJ=function(M,W){W=g.Ga(W);g.nr(M.questionText,W);M.C&&M.questionText.setAttribute("id",WF("survey-question-text"))}; DjP=function(M,W,b,T){T=new Bta(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,T,M.sY);T.cY(M.answers);T.init(WF("survey-answer"),W,b);M.C&&(W=M.questionText.getAttribute("id"),W!=null&&(T.Z!==null?T.Z.V.setAttribute("aria-describedby",W):T.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",W)));M.V.push(T)}; nVG=function(M,W){if(W){var b=W.background;b&&g.z(b,apQ)&&(b=(b=g.z(b,apQ).image)&&fu(b)||"",g.Tp(b)?g.lR(Error("Found ThumbnailDetails without valid image URL")):g.iq(M.MK,"backgroundImage",`url(${b})`));if(W.durationMilliseconds==null||W.durationMilliseconds===void 0||W.durationMilliseconds===0)M=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+`${JSON.stringify(W)}`),g.O(M);else{M.A=g.Hy();M.Z=new Gc(M.api,W.durationMilliseconds);g.t(M,M.Z);if(M.Z&&W.instreamAdPlayerOverlay&& g.z(W.instreamAdPlayerOverlay,yf))try{var T=new EVS(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,M.Z);T.cY(M.playerOverlay);T.init(WF("survey-player-overlay"),g.z(W.instreamAdPlayerOverlay,yf),M.macros);M.B=T;g.t(M,T);M.W()}catch(q){T=Error("ISAPOR had an error when initializing. Error: "+`${q} SurveyAdQuestionCommon: ${JSON.stringify(W)}`),g.O(T)}else T=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+`${JSON.stringify(W)}`),g.O(T);M.Z&&W.durationMilliseconds&&W.durationMilliseconds> 0?(W=new V$(M.api,M.Z),W.cY(M.playerOverlay),g.t(M,W)):(M=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+`${JSON.stringify(W)}`),g.O(M))}}else g.O(Error("addCommonComponents() needs to be called before starting countdown."))}; Ujq=function(M,W,b){M.noneOfTheAbove=new ykG(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv);M.noneOfTheAbove.cY(M.answers);M.noneOfTheAbove.init(WF("survey-none-of-the-above"),W,b)}; CLa=function(M){M.V.forEach(W=>{W.Z.toggleButton(!1)}); jg(M.B,J2(M),!0)}; J2=function(M){return M.V.some(W=>W.Z.isToggled())||M.noneOfTheAbove.button.isToggled()}; vVP=function(M,W){const b=M.V[W];M.B?.dispose();g.z(b,nz)?kgS(M,g.z(b,nz),M.macros):g.z(b,Ed)&&KgQ(M,g.z(b,Ed),M.macros);M.Z=W}; kgS=function(M,W,b){const T=new mjt(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,M.A.bind(M));T.cY(M.S);T.init(WF("survey-question-single-select"),W,b);M.api.G().j("supports_multi_step_on_desktop")?M.B=T:M.questions.push(T);g.t(M,T)}; KgQ=function(M,W,b){const T=new Lgq(M.api,M.layoutId,M.interactionLoggingClientData,M.Gv,M.A.bind(M));T.cY(M.S);T.init(WF("survey-question-multi-select"),W,b);M.api.G().j("supports_multi_step_on_desktop")?M.B=T:M.questions.push(T);g.t(M,T)}; lpP=function(M,W){W=W&&fu(W)||"";if(g.Tp(W))g.lR(Error("Found ThumbnailDetails without valid image URL"));else{var b=M.style;M=M.style.cssText;const T=document.implementation.createHTMLDocument("").createElement("DIV");T.style.cssText=M;M=emL(T.style);b.cssText=[M,`background-image:url("${W}");`].join("")}}; tZg=function(M){const W=g.wP("html5-video-player");W&&g.H(W,"ytp-ad-display-override",M)}; ZVL=function(M){switch(M.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}}; IpJ=function(M){const W=g.wP("html5-video-player");W&&g.H(W,"ytp-ad-display-override",M)}; Ntg=function(M){const W=g.wP("html5-video-player");W&&g.H(W,"ytp-ad-display-override",M)}; HVQ=function(M){if(!M.adAvatar||!g.z(M.adAvatar,BP))return g.O(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!M.headline)return g.O(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!M.adBadge||!g.z(M.adBadge,DT))return g.O(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!M.adButton||!g.z(M.adButton,az))return g.O(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!M.adInfoRenderer|| !g.z(M.adInfoRenderer,Ud))return g.O(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;M=M.durationMilliseconds||0;return typeof M!=="number"||M<=0?(g.O(Error("durationMilliseconds was specified incorrectly in "+`VideoInterstitialButtonedCenteredLayoutRenderer with a value of: ${M}`)),!1):!0}; STG=function(M,W,b,T,q={},X=!1,G=!1){switch(M){case "invideo-overlay":M=new fpL(W,T,q,b);break;case "player-overlay":M=new R0a(W,T,q,b,new ED(W),G);break;case "player-overlay-layout":M=new rkp(W,T,q,b,new ED(W));break;case "survey":M=new xjp(W,T,q,b);break;case "ad-action-interstitial":M=new FgS(W,T,q,b,X,G);break;case "video-interstitial-buttoned-centered":M=new iVP(W,T,q,b);break;case "survey-interstitial":M=new h0y(W,T,q,b);break;case "ad-message":M=new Akg(W,T,q,b,new ED(W,1));break;case "player-underlay":M= new z0a(W,T,q,b);break;case "display-underlay-text-grid-cards":M=new uLP(W,T,q,b,new ED(W));break;default:return null}return M}; OVQ=function(M,W){M=g.dV(M.components,W.id,null);M==null&&g.lR(Error("Component not found for element id: "+W.id));return M||null}; nx=function(M,W){W===M.v$&&(M.v$=void 0)}; epy=function(M,W,b=[],T="",q="",X,G){const V=pV(M.Z).Ei,J=M.player.getVideoData({playerType:1});J&&J.getPlayerResponse();J&&J.Me();b=PLG(W,b,V,pV(M.Z).P1);g7Q(pV(M.Z).VV,T,b.WU,b.Rt,W,q,X,G)}; e0J=function(M){var W=pV(M.Z).TN,b=W.A().nj("SLOT_TYPE_PLAYER_BYTES",1);W=pX(W.NK.get(),1).clientPlaybackNonce;let T=!1;for(const q of b)b=q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&q.slotEntryTrigger instanceof l4?q.slotEntryTrigger.sC:void 0,b&&b===W&&(T&&za("More than 1 preroll playerBytes slot detected",q),T=!0);T||pV(M.Z).pI.c8()}; djG=function(M){M=pV(M.Z).IE;let W="";for(const b of M.gS.keys()){if(b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.eT==="core")return!0;W+=b.slotType+" "}Math.random()<.01&&za("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:W});return!1}; y$=function(M){M=pV(M.Z).IE;for(const W of M.gS.values())if(W.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; oVP=function(M){M.created!==M.loaded&&za("Created and loaded are out of sync")}; PLG=function(M,W,b,T){W={WU:[],Rt:W};for(const X of M){if(!X)continue;if(X.renderer==null)continue;M=X.renderer;if(!b.L.G().j("html5_enable_vod_lasr_with_notify_pacf")){var q=T;g.z(M.sandwichedLinearAdRenderer?.adVideoStart,$$)?(q=F7a(g.z(M.sandwichedLinearAdRenderer?.adVideoStart,$$),q),g.hP(M.sandwichedLinearAdRenderer.adVideoStart,$$,q)):g.z(M.linearAdSequenceRenderer?.adStart,$$)&&(q=F7a(g.z(M.linearAdSequenceRenderer?.adStart,$$),q),g.hP(M.linearAdSequenceRenderer.adStart,$$,q))}W.WU.push(X)}return W}; g.UD=function(M){if(typeof DOMParser!="undefined")return q$(new DOMParser,Me(M),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.ckp=function(M){const W=M.G();return W.WP&&!W.B&&g.tP(W)?M.isEmbedsShortsMode()?(M=M.RE(),Math.min(M.width,M.height)>=315):!M.Wx():!1}; QGy=function(M){for(let W=0;W<16;++W){const b=new g.w({K:"a",N:"ytp-suggestion-link",Y:{href:"{{link}}",target:M.api.G().X,"aria-label":"{{aria_label}}"},U:[{K:"div",N:"ytp-suggestion-image"},{K:"div",N:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},U:[{K:"div",N:"ytp-suggestion-title",R0:"{{title}}"},{K:"div",N:"ytp-suggestion-author",R0:"{{author_and_views}}"},{K:"div",Y:{"data-is-live":"{{is_live}}"},N:"ytp-suggestion-duration",R0:"{{duration}}"}]}]}); g.t(M,b);const T=b.hn("ytp-suggestion-link");g.iq(T,"transitionDelay",`${W/20}s`);M.B.J(T,"click",q=>{var X=W;if(M.V){var G=M.suggestionData[X],V=G.sessionData;M.S&&M.api.j("web_player_log_click_before_generating_ve_conversion_params")?(M.api.logClick(M.Z[X].element),X=G.Kx(),G={},g.l7(M.api,G),X=g.JM(X,G),g.Pf(X,M.api,q)):g.OA(q,M.api,M.S,V||void 0)&&M.api.jA(G.videoId,V,G.playlistId)}else q.preventDefault(),document.activeElement.blur()}); b.cY(M.suggestions.element);M.Z.push(b);M.api.createServerVe(b.element,b)}}; gVs=function(M){if(M.api.G().j("web_player_log_click_before_generating_ve_conversion_params")){var W=Math.floor(-M.scrollPosition/(M.A+8));const b=Math.min(W+M.columns,M.suggestionData.length)-1;for(;W<=b;W++)M.api.logVisibility(M.Z[W].element,!0)}}; g.Cx=function(M){var W=M.api.sX()?32:16;W=M.W/2+W;M.next.element.style.bottom=`${W}px`;M.previous.element.style.bottom=`${W}px`;W=M.scrollPosition;const b=M.containerWidth-M.suggestionData.length*(M.A+8);g.H(M.element,"ytp-scroll-min",W>=0);g.H(M.element,"ytp-scroll-max",W<=b)}; w4G=function(M){var W=M.suggestionData.length;for(let X=0;X>>0);TGs=0;g.rG(AL,Error);AL.prototype.name="CustomError";var dP;var p4L={NONE:0,fF:1},YTt={wP:0,Ksv:1,ipK:2,LsX:3},kM={py:"a",l4:"d",VIDEO:"v"};var $FP=class{constructor(){this.Mp=0;this.Z=!1;this.V=-1;this.S7=!1;this.C3=0}isVisible(){return this.S7?this.Mp>=.3:this.Mp>=.5}};var Kx={u4:0,YV:1},Mgg={NONE:0,Eb:1,XU:2};var gV="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var vP=class{constructor(){this.V=null;this.Z=!1}getValue(){return this.V}},nPt=class extends vP{constructor(M){super();this.A=M}B(M){this.V===null&&g.uI(this.A,M)&&(this.V=M)}},WOg=class extends vP{B(M){this.V===null&&typeof M==="number"&&(this.V=M)}},yLl=class extends vP{B(M){this.V===null&&typeof M==="string"&&(this.V=M)}};var bxL=class{constructor(){this.Z={};this.V=!0;this.B={}}disable(){this.V=!1}enable(){this.V=!0}isEnabled(){return this.V}reset(){this.Z={};this.V=!0;this.B={}}};var T3s=M=>{wV(M,"od",p4L);wV(M,"opac",Kx).Z=!0;wV(M,"sbeos",Kx).Z=!0;wV(M,"prf",Kx).Z=!0;wV(M,"mwt",Kx).Z=!0;wV(M,"iogeo",Kx)};var iC=document,Kr=window;var qDL=Kt(1,!0),JO=Kt(610401301,!1);Kt(899588437,!1);Kt(772657768,!0);Kt(513659523,!1);Kt(568333945,!0);var ToL=Kt(1331761403,!1);Kt(651175828,!1);Kt(722764542,!1);Kt(748402145,!1);Kt(748402146,!1);var X6=Kt(748402147,!0),mO=Kt(824648567,!0),m1=Kt(824656860,!0);Kt(333098724,!1);Kt(861377723,!1);Kt(861377724,!1);Kt(869336903,!1);Kt(2147483644,!1);Kt(2147483645,!1);Kt(2147483646,qDL);Kt(2147483647,!0);var D_=!!g.Ct("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var flp=/&/g,Rgt=//g,xaL=/"/g,FLt=/'/g,itQ=/\x00/g,Htt=/[\x00&<>"']/;var aB,XPL=g.yp.navigator;aB=XPL?XPL.userAgentData||null:null;var tO=globalThis.trustedTypes,IB;var fZ=class{constructor(M){this.Z=M}toString(){return this.Z+""}};var xp=class{constructor(M){this.Z=M}toString(){return this.Z}},llG=new xp("about:invalid#zClosurez");var ir=class{constructor(M){this.S2=M}},jzy=hO("tel"),GcJ=hO("sms"),AO=[hO("data"),hO("http"),hO("https"),hO("mailto"),hO("ftp"),new ir(M=>/^[^:]*([/?#]|$)/.test(M))],ttq=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var e7=class{constructor(M){this.Z=M}toString(){return this.Z+""}};var gH=class{constructor(M){this.Z=M}toString(){return this.Z+""}};var $U=class{constructor(M){this.Z=M}toString(){return this.Z}};var b0={};vt[" "]=function(){};var AW,w_,fnp,Vga,J2q,B3Q,oh,Rl,Lx;g.KL=UY();g.V8=CZ();g.Mo=nZ("Edge");g.vQ=g.Mo||g.V8;AW=nZ("Gecko")&&!(Xh(g.Vd(),"WebKit")&&!nZ("Edge"))&&!(nZ("Trident")||nZ("MSIE"))&&!nZ("Edge");g.bq=Xh(g.Vd(),"WebKit")&&!nZ("Edge");w_=kU();fnp=Ky();g.mm=yT();Vga=Ua();J2q=nZ("iPad");B3Q=nZ("iPod");oh=Cy();Rl=Xh(g.Vd(),"KaiOS"); a:{let M="";const W=function(){const b=g.Vd();if(AW)return/rv:([^\);]+)(\)|;)/.exec(b);if(g.Mo)return/Edge\/([\d\.]+)/.exec(b);if(g.V8)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(b);if(g.bq)return/WebKit\/(\S+)/.exec(b);if(g.KL)return/(?:Version)[ \/]?(\S+)/.exec(b)}(); W&&(M=W?W[1]:"");if(g.V8){var lH;const b=g.yp.document;lH=b?b.documentMode:void 0;if(lH!=null&&lH>parseFloat(M)){Lx=String(lH);break a}}Lx=M}var l0=Lx,zgP={};var ks,KU;g.HR=KZ();ks=Ua()||nZ("iPod");KU=nZ("iPad");g.t2=LZ();g.XH=vX();g.R_=mf()&&!Cy();var XXs=!g.V8&&!mf();g.L=g.xU.prototype;g.L.clone=function(){return new g.xU(this.x,this.y)}; g.L.equals=function(M){return M instanceof g.xU&&FA(this,M)}; g.L.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.L.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.L.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.L.scale=function(M,W){this.x*=M;this.y*=typeof W==="number"?W:M;return this};g.L=g.i0.prototype;g.L.clone=function(){return new g.i0(this.width,this.height)}; g.L.aspectRatio=function(){return this.width/this.height}; g.L.isEmpty=function(){return!AY(this)}; g.L.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.L.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.L.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.L.scale=function(M,W){this.width*=M;this.height*=typeof W==="number"?W:M;return this};var HW=class{constructor(M,W){this.Z=M===fT&&W||""}toString(){return this.Z}},fT={};new HW(fT,"");var u0=/^[a-z][a-z\d-]*$/i,PQG="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),dat="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),cLa=["action","formaction","href"];var py={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.L=Oa.prototype;g.L.BP=function(M){return ct(this.Z,M)}; g.L.getElementsByTagName=function(M,W){return(W||this.Z).getElementsByTagName(String(M))}; g.L.hn=function(M){return g.wP(M,this.Z)}; g.L.setProperties=YU;g.L.createElement=function(M){return qP(this.Z,M)}; g.L.appendChild=g.JW;g.L.append=function(M,W){X$(Pt(M),M,arguments,1)}; g.L.canHaveChildren=function(M){if(M.nodeType!=1)return!1;switch(M.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.L.removeNode=g.a5;g.L.getChildren=function(M){return M.children}; g.L.contains=g.ES;g.L.isFocusable=US;var DFQ=class{constructor(){this.Z=this.V$=null}};var aTP=class{now(){return 0}V(){return 0}B(){return 0}Z(){return 0}};var EMg=class extends aTP{constructor(){super();if(!v5())throw Error();}now(){return v5()&&Kr.performance.now?Kr.performance.now():super.now()}V(){return v5()&&Kr.performance.memory?Kr.performance.memory.totalJSHeapSize||0:super.V()}B(){return v5()&&Kr.performance.memory?Kr.performance.memory.usedJSHeapSize||0:super.B()}Z(){return v5()&&Kr.performance.memory?Kr.performance.memory.jsHeapSizeLimit||0:super.Z()}};var JmQ=mR("AnimationEnd"),eh=mR("TransitionEnd");g.L=NP.prototype;g.L.getHeight=function(){return this.bottom-this.top}; g.L.clone=function(){return new NP(this.top,this.right,this.bottom,this.left)}; g.L.contains=function(M){return this&&M?M instanceof NP?M.left>=this.left&&M.right<=this.right&&M.top>=this.top&&M.bottom<=this.bottom:M.x>=this.left&&M.x<=this.right&&M.y>=this.top&&M.y<=this.bottom:!1}; g.L.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.L.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.L.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.L.scale=function(M,W){W=typeof W==="number"?W:M;this.left*=M;this.right*=M;this.top*=W;this.bottom*=W;return this};g.L=g.re.prototype;g.L.clone=function(){return new g.re(this.left,this.top,this.width,this.height)}; g.L.contains=function(M){return M instanceof g.xU?M.x>=this.left&&M.x<=this.left+this.width&&M.y>=this.top&&M.y<=this.top+this.height:this.left<=M.left&&this.left+this.width>=M.left+M.width&&this.top<=M.top&&this.top+this.height>=M.top+M.height}; g.L.getSize=function(){return new g.i0(this.width,this.height)}; g.L.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.L.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.L.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.L.scale=function(M,W){W=typeof W==="number"?W:M;this.left*=M;this.width*=M;this.top*=W;this.height*=W;return this};var hW={};var wys=tW(()=>{let M=!1;try{const W=Object.defineProperty({},"passive",{get(){M=!0}});g.yp.addEventListener("test",null,W)}catch(W){}return M});var nMq=class{isVisible(){return MI(iC)===1}};var pyt=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)"),Yqp=class{constructor(M,W,b){this.Z=M;this.V=W;this.B=b}},XY=class{constructor(M,W){this.url=M;this.Z=!!W;this.depth=null}};var eL=class{constructor(){this.B="&";this.V={};this.A=0;this.Z=[]}WF(M,W,b){M=M+"//"+W+b;var T=WAS(this)-b.length;if(T<0)return"";this.Z.sort((q,X)=>q-X); b=null;W="";for(let q=0;q=J.length){T-=J.length;M+=J;W=this.B;break}b=b==null?X:b}}}T="";b!=null&&(T=`${W}${"trn"}=${b}`);return M+T}};var ZT=class{constructor(M,W){this.Z=M;this.depth=W}},TVs=()=>{var M=GN();const W=Math.max(M.length-1,0);var b=V6(M);M=b.Z;var T=b.V;const q=b.B,X=[];b=(V,J)=>V==null?J:V; q&&X.push(new ZT([q.url,q.Z?2:0],b(q.depth,1)));T&&T!=q&&X.push(new ZT([T.url,2],0));M.url&&M!=q&&X.push(new ZT([M.url,0],b(M.depth,W)));const G=g.dG(X,(V,J)=>X.slice(0,X.length-J)); !M.url||(q||T)&&M!=q||(T=/https?:\/\/[^\/]+/.exec(M.url)?.[0]??"")&&G.push([new ZT([T,1],b(M.depth,W))]);G.push([]);return g.dG(G,V=>bJp(W,V))};var E5t=Ey(M=>typeof M==="number"),M_=Ey(M=>typeof M==="string"),IH=Ey(M=>M!=null&&typeof M==="object"&&typeof M.then==="function"),aJq=Ey(M=>typeof M==="function"),y2S=Ey(M=>!!M&&(typeof M==="object"||typeof M==="function"));var $Et={Sn:"allow-forms",iK:"allow-modals",KR:"allow-orientation-lock",LR:"allow-pointer-lock",Hb:"allow-popups",o9:"allow-popups-to-escape-sandbox",mp:"allow-presentation",wb:"allow-same-origin",CR:"allow-scripts",jn:"allow-top-navigation",Wb:"allow-top-navigation-by-user-activation"},X$P=tW(()=>MpJ());var k4=M=>{const W="g0";if(M.g0&&M.hasOwnProperty(W))return M.g0;const b=new M;M.g0=b;M.hasOwnProperty(W);return b};var J7a=class{constructor(){this.V=new nMq;this.Z=v5()?new EMg:new aTP}setInterval(M,W){return Kr.setInterval(M,W)}clearInterval(M){Kr.clearInterval(M)}setTimeout(M,W){return Kr.setTimeout(M,W)}clearTimeout(M){Kr.clearTimeout(M)}};var VpJ=class{};var rb=!0,Rx,Kn;var Zc={},r5=null;var x4=/[-_.]/g,DEQ={"-":"+",_:"/",".":"="},Ah={};var hh=class{isEmpty(){return this.Z==null}sizeBytes(){const M=S5(this);return M?M.length:0}constructor(M,W){u2(W);this.Z=M;if(M!=null&&M.length===0)throw Error("ByteString should be constructed with non-empty values");}},i2;var e5=void 0;var Q6=od("jas",!0),Sx=od(),cb=od(),UFs=od(),v5a=od(),hcS=od(),IBa=od(),Pb=od("m_m",!0),LAy=od(),CHs=od();[...Object.values({Bu:1,Va:2,TD:4,P4:8,jTs:16,tZ:32,Xs:64,Tj:128,b4:256,R80:512,UI:1024,VP:2048,Rv:4096,pO:8192})];var K$,kcs=[];kcs[Q6]=7;K$=Object.freeze(kcs);var ev={},c6={},oE=Object.freeze({}),IP={},Y4={};var FW=Ey(M=>M>=KOy&&M<=vML),KOy=BigInt(Number.MIN_SAFE_INTEGER),vML=BigInt(Number.MAX_SAFE_INTEGER);var b8=0,Ts=0,IC;var t6=typeof BigInt==="function"?BigInt.asIntN:void 0,CIy=typeof BigInt==="function"?BigInt.asUintN:void 0,xx=Number.isSafeInteger,yW=Number.isFinite,rv=Math.trunc,n5p=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var lBG={};var sU=class{},mFG={Ev:!0};var wv;var Wl,bW;var HJy=Wb(0),bX={};var JK=class{constructor(M,W,b){this.buffer=M;if(b&&!W)throw Error();this.Z=W}};var LOt=class{constructor(M,W,b,T){this.V=null;this.C=!1;this.S=null;this.Z=this.B=this.A=0;this.init(M,W,b,T)}init(M,W,b,{ZA:T=!1,OG:q=!1}={}){this.ZA=T;this.OG=q;M&&(M=Bj(M,this.OG),this.V=M.buffer,this.C=M.Z,this.S=null,this.A=W||0,this.B=b!==void 0?this.A+b:this.V.length,this.Z=this.A)}free(){this.clear();Iz.length<100&&Iz.push(this)}clear(){this.V=null;this.C=!1;this.S=null;this.Z=this.B=this.A=0;this.ZA=!1}reset(){this.Z=this.A}},Iz=[];var fBt=class{constructor(M,W,b,T){if(Iz.length){const q=Iz.pop();q.init(M,W,b,T);M=q}else M=new LOt(M,W,b,T);this.Z=M;this.A=this.Z.Z;this.V=this.B=-1;L7(this,T)}free(){this.Z.clear();this.V=this.B=-1;mX.length<100&&mX.push(this)}reset(){this.Z.reset();this.A=this.Z.Z;this.V=this.B=-1}},mX=[];var lTp=class{constructor(){if(IP!==IP)throw Error();}};var AK=class{constructor(M,W){this.V=M>>>0;this.Z=W>>>0}},hK,Sa=class{constructor(M,W){this.V=M>>>0;this.Z=W>>>0}},uX;var tgs=class{constructor(){this.Z=[]}length(){return this.Z.length}end(){const M=this.Z;this.Z=[];return M}};var A7Q=class{constructor(){this.B=[];this.V=0;this.Z=new tgs}};var WO=Yq(),Zxp=Yq(),NF=Yq(),HP=Yq(),ITt=Yq(),N3J=Yq(),fx=Yq(),HxG=Yq(),Rz=Yq(),fTt=Yq(),RQt=Yq();var JB=class{constructor(M,W,b){this.h1=T6(M,W,b,2048)}toJSON(){return M6(this)}Ba(M){return JSON.stringify(M6(this,M))}clone(){const M=this.h1,W=M[Q6]|0;return G6(this,M,W)?Vt(this,M,!0):new this.constructor(jx(M,W,!1))}};JB.prototype[Pb]=ev;JB.prototype.toString=function(){return this.h1.toString()};var MX=class{constructor(M,W,b){this.f5=M;this.SS=W;M=RJ(WO);this.Z=!!M&&b===M||!1}},RcL=bz(function(M,W,b,T,q){if(M.V!==2)return!1;f7(M,ON(W,T,b),q);return!0},qX),r7s=bz(function(M,W,b,T,q){if(M.V!==2)return!1; f7(M,ON(W,T,b),q);return!0},qX),CD=Symbol(),DD=Symbol(),nD=Symbol(),vO=Symbol(),y5=Symbol(),Xj,jL;var r2Q=Wb(0),xFQ=lz(function(M,W,b){if(M.V!==1)return!1;ZD(W,b,kq(M.Z));return!0},NX,Rz),FOt=lz(function(M,W,b,T){if(M.V!==1)return!1; hl(W,b,T,kq(M.Z));return!0},NX,Rz),r3=lz(function(M,W,b){if(mO)return M.V!==0?M=!1:(ZD(W,b,ax(M.Z,J6)),M=!0),M; if(M.V!==0)return!1;ZD(W,b,ax(M.Z,VW));return!0},HO,fx),ixG=lz(function(M,W,b,T){if(mO)return M.V!==0?M=!1:(hl(W,b,T,ax(M.Z,J6)),M=!0),M; if(M.V!==0)return!1;hl(W,b,T,ax(M.Z,VW));return!0},HO,fx),xM=lz(function(M,W,b){if(M.V!==0)return!1; ZD(W,b,n7(M.Z));return!0},fD,HP),hQQ=lz(function(M,W,b,T){if(M.V!==0)return!1; hl(W,b,T,n7(M.Z));return!0},fD,HP),A2G=lz(function(M,W,b){if(mO)return M.V!==1?M=!1:(ZD(W,b,C7(M.Z)),M=!0),M; if(M.V!==1)return!1;ZD(W,b,UH(M.Z));return!0},function(M,W,b){wb(M,b,A6(W))},HxG),zQL=tB(function(M,W,b){if(mO)return M.V!==1&&M.V!==2?M=!1:(W=f$(W,W[Q6]|0,b),M.V==2?iX(M,C7,W):W.push(C7(M.Z)),M=!0),M; if(M.V!==1&&M.V!==2)return!1;W=f$(W,W[Q6]|0,b);M.V==2?iX(M,UH,W):W.push(UH(M.Z));return!0},function(M,W,b){W=LD(A6,W,!1); if(W!=null)for(let T=0;T>>0);return!0},function(M,W,b){W=vb(W); W!=null&&W!=null&&(QJ(M,b,0),db(M.Z,W))},ITt),uH=lz(function(M,W,b){if(M.V!==0)return!1; ZD(W,b,n7(M.Z));return!0},function(M,W,b){W=K3(W); W!=null&&(W=parseInt(W,10),QJ(M,b,0),ox(M.Z,W))},RQt);var oMs=new Map,c2t=class extends lTp{constructor(M,W){super();this.typeName=M;this.Z=W;if(IP!==IP)throw Error();oMs.set(M,this)}};var gMQ=class{constructor(M){var W=Qzl;this.Z=M;this.isRepeated=0;this.V=ex;this.defaultValue=void 0;this.B=W.messageId!=null?Y4:void 0}register(){vt(this)}};var MC=class extends JB{constructor(M){super(M)}};MC.prototype.V=uz([0,lz(function(M,W,b){if(M.V!==1)return!1;M=kq(M.Z);ZD(W,b,M===0?void 0:M);return!0},NX,Rz), lz(function(M,W,b){if(mO)return M.V!==0?W=!1:(M=ax(M.Z,J6),ZD(W,b,M===r2Q?void 0:M),W=!0),W;if(M.V!==0)return!1;M=ax(M.Z,VW);ZD(W,b,M===0?void 0:M);return!0},HO,fx), -2,lz(function(M,W,b){if(M.V!==0)return!1;M=n7(M.Z);ZD(W,b,M===0?void 0:M);return!0},fD,HP)]);var szL=class{constructor(M){this.B=M;this.Z=-1;this.V=this.A=0}};var wPl=class{constructor(M,W){this.V=M;this.B=W;this.Z=new szL(M)}};var pPp=class{constructor(){this.Z={}}UY(M){const W=this.Z[M.key];if(M.valueType==="proto"){try{const b=JSON.parse(W);if(Array.isArray(b))return b}catch(b){}return M.defaultValue}return typeof W===typeof M.defaultValue?W:M.defaultValue}};var YDy={eB:1,wi:2,Qa:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};var zcg=class{constructor(){this.B=void 0;this.V=this.C=0;this.S=-1;this.pN=new bxL;wV(this.pN,"mv",Mgg).Z=!0;wV(this.pN,"omid",Kx);wV(this.pN,"epoh",Kx).Z=!0;wV(this.pN,"epph",Kx).Z=!0;wV(this.pN,"umt",Kx).Z=!0;wV(this.pN,"phel",Kx).Z=!0;wV(this.pN,"phell",Kx).Z=!0;wV(this.pN,"oseid",YDy).Z=!0;var M=this.pN;M.Z.sloi||(M.Z.sloi=new WOg);M.Z.sloi.Z=!0;wV(this.pN,"mm",kM);wV(this.pN,"ovms",YTt).Z=!0;wV(this.pN,"xdi",Kx).Z=!0;wV(this.pN,"amp",Kx).Z=!0;wV(this.pN,"prf",Kx).Z=!0;wV(this.pN,"gtx",Kx).Z= !0;wV(this.pN,"mvp_lv",Kx).Z=!0;wV(this.pN,"ssmol",Kx).Z=!0;wV(this.pN,"fmd",Kx).Z=!0;wV(this.pN,"gen204simple",Kx);this.Z=new wPl(Uy(),this.pN);this.A=!1;this.flags=new pPp}Ka(M){if(typeof M==="string"&&M.length!=0){var W=this.pN;if(W.V){M=M.split("&");for(let q=M.length-1;q>=0;q--){var b=M[q].split("="),T=decodeURIComponent(b[0]);b.length>1?(b=decodeURIComponent(b[1]),b=/^[0-9]+$/g.exec(b)?parseInt(b,10):b):b=1;(T=W.Z[T])&&T.B(b)}}}}};var $nS=class{constructor(){let M="https:";Kr&&Kr.location&&Kr.location.protocol==="http:"&&(M="http:");this.V=M;this.Z=.01}};var Mjy=class{constructor(M,W){this.error=M;this.meta={};this.context=W.context;this.msg=W.message||"";this.id=W.id||"jserror"}};var Sg=null;var WWG=class{constructor(M,W,b){this.label=M;this.type=W;this.value=b;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}};var Q5=g.yp.performance,bHL=!!(Q5&&Q5.mark&&Q5.measure&&Q5.clearMarks),gU=tW(()=>{var M;if(M=bHL){var W;M=window;if(Sg===null){Sg="";try{let b="";try{b=M.top.location.hash}catch(T){b=M.location.hash}b&&(Sg=(W=b.match(/\bdeid=([\d,]+)/))?W[1]:"")}catch(b){}}W=Sg;M=!!W.indexOf&&W.indexOf("1337")>=0}return M});var u9t=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),a0=/#|$/,OJP=/[?&]($|#)/;var TJS=class{constructor(M=null){this.Z=$z;this.At="jserror";this.SE=!0;this.gj=null;this.V=this.Rr;this.J5=M}Rr(M,W,b,T,q){q=q||this.At;let X;try{const E=new eL;var G=E;G.Z.push(1);G.V[1]=B6("context",M);W.error&&W.meta&&W.id||(W=new Uc(yb(W)));G=W;if(G.msg){W=E;var V=G.msg.substring(0,512);W.Z.push(2);W.V[2]=B6("msg",V)}var J=G.meta||{};V=J;if(this.gj)try{this.gj(V)}catch(n){}if(T)try{T(V)}catch(n){}T=E;J=[J];T.Z.push(3);T.V[3]=J;X=V6();if(X.V){J=E;var B=X.V.url||"";J.Z.push(4);J.V[4]=B6("top", B)}var D={url:X.Z.url||""};if(X.Z.url){const n=g.pD(X.Z.url);var a=wU(n[1],null,n[3],n[4])}else a="";B=E;D=[D,{url:a}];B.Z.push(5);B.V[5]=D;dU(this.Z,q,E,b)}catch(E){try{dU(this.Z,q,{context:"ecmserr",rctx:M,msg:yb(E),url:X&&X.Z.url},b)}catch(n){}}return this.SE}},Uc=class extends Mjy{constructor(M){super(Error(M),{message:M})}};var $z,kF,OD=new class{constructor(M,W){this.events=[];this.V=W||g.yp;let b=null;W&&(W.google_js_reporting_queue=W.google_js_reporting_queue||[],this.events=W.google_js_reporting_queue,b=W.google_measure_js_timing);this.Z=gU()||(b!=null?b:Math.random()2048||this.events.push(M)}}}(1,window),qls=()=>{Kr&&typeof Kr.google_measure_js_timing!="undefined"&&(Kr.google_measure_js_timing||OD.disable())}; $z=new $nS;kF=new TJS(OD);Kr&&Kr.document&&(Kr.document.readyState=="complete"?qls():OD.Z&&$4(Kr,"load",()=>{qls()})); var AOg=M=>{kF.gj=W=>{g.Py(M,b=>{b(W)})}},VG=(M,W)=>C_(kF,M,W),a3=(M,W)=>K_(M,W),opt=(M,W)=>{kF.Rr(538,M,.01,W)};var mS=Date.now(),lC=-1,vG=-1,f9,tM=-1,L_=!1;var Vz=class{constructor(M,W,b){var T=new NP(0,0,0,0);this.time=M;this.volume=null;this.B=W;this.Z=T;this.V=b}equals(M,W=!1){return!!M&&(!W||this.volume==M.volume)&&this.B==M.B&&fr(this.Z,M.Z)&&!0}};var XLL=class{constructor(M,W,b,T,q,X,G,V){this.A=M;this.W=W;this.B=b;this.C=T;this.Z=q;this.S=X;this.V=G;this.D=V}BP(){return this.W}equals(M,W=!1){return this.A.equals(M.A,W)&&this.W==M.W&&fr(this.B,M.B)&&fr(this.C,M.C)&&this.Z==M.Z&&this.S==M.S&&this.V==M.V&&this.D==M.D}};var juL={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},rK={xr:"start",WZ:"firstquartile",Rn:"midpoint",fM:"thirdquartile",COMPLETE:"complete",ERROR:"error",tB:"metric",PAUSE:"pause",In:"resume",ri:"skip",on:"viewable_impression",yX:"mute",KM:"unmute",zA:"fullscreen",jr:"exitfullscreen",Ky:"bufferstart",iT:"bufferfinish",Nc:"fully_viewable_audible_half_duration_impression",di:"measurable_impression",Ad:"abandon",Cy:"engagedview",Dv:"impression",oP:"creativeview",LOADED:"loaded", E8:"progress",CLOSE:"close",Fs:"collapse",SB:"overlay_resize",iC:"overlay_unmeasurable_impression",KX:"overlay_unviewable_impression",H4:"overlay_viewable_immediate_impression",LX:"overlay_viewable_end_of_session_impression",mu:"custom_metric_viewable",lT:"audio_audible",cZ:"audio_measurable",IP:"audio_impression"},GGQ="start firstquartile midpoint thirdquartile resume loaded".split(" "),zx=["start","firstquartile","midpoint","thirdquartile"],URy=["abandon"],R3={UNKNOWN:-1,xr:0,WZ:1,Rn:2,fM:3,COMPLETE:4, tB:5,PAUSE:6,In:7,ri:8,on:9,yX:10,KM:11,zA:12,jr:13,Nc:14,di:15,Ad:16,Cy:17,Dv:18,oP:19,LOADED:20,mu:21,Ky:22,iT:23,IP:27,cZ:28,lT:29};var dEP={Bb:"addEventListener",QY:"getMaxSize",u2:"getScreenSize",qy:"getState",ZQ:"getVersion",rnY:"removeEventListener",AG:"isViewable"};var bZq=()=>{const M=window.document;return M&&typeof M.elementFromPoint==="function"};var K9=(M,W)=>{W=Math.pow(10,W);return Math.floor(M*W)/W};var QQL=class{constructor(){this.B=!W6(Kr.top);this.isMobileDevice=TN()||qI();const M=GN();this.domain=M.length>0&&M[M.length-1]!=null&&M[M.length-1].url!=null?g.$F(M[M.length-1].url)||"":"";this.Z=new NP(0,0,0,0);this.A=new g.i0(0,0);this.S=new g.i0(0,0);this.W=new NP(0,0,0,0);this.frameOffset=new g.xU(0,0);this.C=0;this.D=!1;this.V=!(!Kr||!Zu(Kr).AU);this.update(Kr)}update(M){M&&M.document&&(this.W=NN(!1,M,this.isMobileDevice),this.Z=NN(!0,M,this.isMobileDevice),F3(this,M),xF(this,M))}};var Gzs=class{constructor(M){this.B=M;this.V=0;this.Z=null}cancel(){Uy().clearTimeout(this.Z);this.Z=null}schedule(){const M=Uy(),W=PO().Z.Z;this.Z=M.setTimeout(OO(W,a3(143,()=>{this.V++;this.B.sample()})),ecp())}};var PP=class{constructor(M,W,b="na"){this.B=M;this.XX=b;this.S=[];this.isInitialized=!1;this.A=new Vz(-1,!0,this);this.Z=this;this.O=W;this.BY=this.Zs=!1;this.jT="uk";this.xk=!1;this.W=!0}sY(){return!1}initialize(){return this.isInitialized=!0}X(){return this.Z.jT}yz(){return this.Z.BY}fail(M,W=!1){if(!this.BY||W)this.BY=!0,this.jT=M,this.O=0,this.Z!=this||zM(this)}getName(){return this.Z.XX}Dl(){return this.Z.wK()}wK(){return{}}Gk(){return this.Z.O}MK(){var M=rz();M.Z=NN(!0,this.B,M.isMobileDevice)}Lp(){xF(rz(), this.B)}Ds(){return this.A.Z}sample(){}isActive(){return this.Z.W}gK(M){const W=this.Z;this.Z=M.Gk()>=this.O?M:this;W!==this.Z?(this.W=this.Z.W,zM(this)):this.W!==this.Z.W&&(this.W=this.Z.W,zM(this))}C(M){if(M.V===this.Z){const W=!this.A.equals(M,this.Zs);this.A=M;W&&AM(this)}}En(){return this.Zs}dispose(){this.xk=!0}ST(){return this.xk}};var Vjt=class{constructor(M,W,b,T){this.element=M;this.Z=new NP(0,0,0,0);this.B=null;this.O=new NP(0,0,0,0);this.V=W;this.pN=b;this.Ds=T;this.MK=!1;this.timestamp=-1;this.lV=new XLL(W.A,this.element,this.Z,new NP(0,0,0,0),0,0,Date.now()-mS,0);this.D=void 0}observe(){return!0}unobserve(){}W(M){this.D=M}dispose(){if(!this.ST()){var M=this.V;g.X9(M.S,this);M.Zs&&this.En()&&SI(M);this.unobserve();this.MK=!0}}ST(){return this.MK}Dl(){return this.V.Dl()}Gk(){return this.V.Gk()}X(){return this.V.X()}yz(){return this.V.yz()}gK(){}C(){this.S()}En(){return this.Ds}};var eg=class{constructor(M){this.D=!1;this.Z=M;this.W=()=>{}}Gk(){return this.Z.Gk()}X(){return this.Z.X()}yz(){return this.Z.yz()}create(M,W,b){let T=null; this.Z&&(T=this.A(M,W,b),uC(this.Z,T));return T}O(){return this.B()}B(){return!1}init(M){return this.Z.initialize()?(uC(this.Z,this),this.W=M,!0):!1}gK(M){M.Gk()==0&&this.W(M.X(),this)}C(){}En(){return!1}dispose(){this.D=!0}ST(){return this.D}Dl(){return{}}};var JSG=class{constructor(M,W,b=0){this.B=b;this.V=M;this.Z=W==null?"":W}};var sc=class{constructor(){this.B=0;this.Z=[];this.V=!1}add(M,W,b){++this.B;M=new JSG(M,W,b);this.Z.push(new JSG(M.V,M.Z,M.B+this.B/4096));this.V=!0;return this}};var w$S=M=>{const W=M.V;M=M.Z;return M===""?W:typeof M==="boolean"?M?W:"":Array.isArray(M)?M.length===0?W:`${W}=${M.join()}`:`${W}=${g.ME(["mtos","tos","p"],W)?M:encodeURIComponent(M)}`};var YrG=class{constructor(M){this.Z=new sc;M!==void 0&&sQg(this.Z,M);this.Z.add("v","unreleased",-16)}toString(){let M="//pagead2.googlesyndication.com//pagead/gen_204";const W=o0(this.Z);W.length>0&&(M+="?"+W);return M}};var jLp=M=>{const W=[],b=[];g.NE(M,(T,q)=>{if(!(q in Object.prototype)&&typeof T!="undefined")switch(Array.isArray(T)&&(T=T.join(",")),T=[q,"=",T].join(""),q){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":W.unshift(T);break;case "req":case "url":case "referrer":case "iframe_loc":b.push(T);break;default:W.push(T)}}); return W.concat(b)},wz=M=>{M=M.toString(); Uy();y6(M)};var p$t=class{constructor(){this.Z=0}};g.gz.prototype.EX=!1;g.gz.prototype.ST=function(){return this.EX}; g.gz.prototype.dispose=function(){this.EX||(this.EX=!0,this.vY())}; g.gz.prototype[Symbol.dispose]=function(){this.dispose()}; g.gz.prototype.addOnDisposeCallback=function(M,W){this.EX?W!==void 0?M.call(W):M():(this.nz||(this.nz=[]),W&&(M=M.bind(W)),this.nz.push(M))}; g.gz.prototype.vY=function(){if(this.nz)for(;this.nz.length;)this.nz.shift()()};var BJt=[0,r3,uMy,-1];var d3=class{constructor(){this.V=this.B=this.A=this.Z=0}update(M,W,b=!M){M&&(this.Z+=W,this.V+=W,this.A+=W,this.B=Math.max(this.B,this.A));b&&(this.A=0)}};var Dng=[1,.75,.5,.3,0],oz=class{constructor(M=Dng){this.V=M;this.Z=g.dG(this.V,()=>new d3)}update(M,W,b,T,q,X=!0){W=q?Math.min(M,W):W; for(q=0;q0&&W>=G;G=!(M>0&&M>=G)||b;this.Z[q].update(X&&V,T,!X||G)}}};var aSg=class{constructor(){this.V=new oz;this.An=this.lV=0;this.MK=new d3;this.O=this.W=-1;this.wK=1E3;this.Ds=new oz([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.yz=this.Zs=-1}update(M,W,b,T){this.W=this.W!=-1?Math.min(this.W,W.Mp):W.Mp;this.O=Math.max(this.O,W.Mp);this.Zs=this.Zs!=-1?Math.min(this.Zs,W.C3):W.C3;this.yz=Math.max(this.yz,W.C3);this.Ds.update(W.C3,b.C3,W.Z,M,T);this.lV+=M;W.Mp===0&&(this.An+=M);this.V.update(W.Mp,b.Mp,W.Z,M,T);b=T||b.S7!=W.S7?b.isVisible()&&W.isVisible():b.isVisible(); W=!W.isVisible()||W.Z;this.MK.update(b,M,W)}tC(){return this.MK.B>=this.wK}};if(iC&&iC.URL){var E_t=iC.URL,cP;a:{if(E_t){var n_p=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{const M=n_p.exec(decodeURIComponent(E_t));if(M){cP=M[1]&&M[1].length>1?M[1].substring(1):"true";break a}}catch{}}cP=""}kF.SE=!(cP.length>0)}var F1=(M,W,b,T)=>{b=K_(T,b);$4(M,W,b,{capture:!1})};var ySs=new NP(0,0,0,0);var Uns=new NP(0,0,0,0),Cgt=class extends g.gz{constructor(M,W){super();this.position=Uns.clone();this.YY=this.je();this.sW=-2;this.timeCreated=Date.now();this.mT=-1;this.St=W;this.KG=null;this.MD=!1;this.VT=null;this.opacity=-1;this.requestSource=7;this.oW=!1;this.Bs=()=>{}; this.UZ=()=>{}; this.Zc=new DFQ;this.Zc.V$=M;this.Zc.Z=M;this.q9=!1;this.EC={S0:null,fC:null};this.u_=!0;this.C9=null;this.xv=this.zI=!1;PO().C++;this.QB=this.Dn();this.Sv=-1;this.K7=null;this.hasCompleted=this.wY=!1;this.pN=new bxL;T3s(this.pN);jBL(this);this.requestSource==1?pJ(this.pN,"od",1):pJ(this.pN,"od",0)}vY(){if(this.Zc.Z){if(this.EC.S0){var M=this.Zc.Z;typeof M.removeEventListener==="function"&&M.removeEventListener("mouseover",this.EC.S0,Yt());this.EC.S0=null}this.EC.fC&&(M=this.Zc.Z,typeof M.removeEventListener=== "function"&&M.removeEventListener("mouseout",this.EC.fC,Yt()),this.EC.fC=null)}this.C9&&this.C9.dispose();this.K7&&this.K7.dispose();delete this.YY;delete this.Bs;delete this.UZ;delete this.Zc.V$;delete this.Zc.Z;delete this.EC;delete this.C9;delete this.K7;delete this.pN;super.vY()}GC(){return this.K7?this.K7.Z:this.position}Ka(M){PO().Ka(M)}En(){return!1}je(){return new aSg}Mg(){return this.YY}eU(M){return Dz(this,M,1E4)}zv(M,W,b,T,q,X,G){this.q9||(this.MD&&(M=this.h8(M,b,q,G),T=T&&this.QB.Mp>= (this.S7()?.3:.5),this.Rh(X,M,T),this.St=W,M.Mp>0&&-1===this.Sv&&(this.Sv=W),this.mT==-1&&this.tC()&&(this.mT=W),this.sW==-2&&(this.sW=j2(this.GC())?M.Mp:-1),this.QB=M),this.Bs(this))}Rh(M,W,b){this.Mg().update(M,W,this.QB,b)}Dn(){return new $FP}h8(M,W,b,T){b=this.Dn();b.Z=W;W=Uy().V;W=MI(iC)===0?-1:W.isVisible()?0:1;b.V=W;b.Mp=this.HA(M);b.S7=this.S7();b.C3=T;return b}HA(M){return this.opacity===0&&Y5(this.pN,"opac")===1?0:M}S7(){return!1}DC(){return this.wY||this.zI}Yw(){Date.now()}Qh(){Date.now()}Gp(){return this.requestSource}Ib(){return 0}tC(){return this.YY.tC()}kD(){var M= this.MD;M=(this.hasCompleted||this.ST())&&!M;const W=PO().V!==2||this.oW;return this.q9||W&&M?2:this.tC()?4:3}fl(){return 0}};g.aK.prototype.next=function(){return g.Q$}; g.Q$={done:!0,value:void 0};g.aK.prototype.aE=function(){return this};var kzL=class{constructor(){this.A=this.Z=this.B=this.V=this.S=0}};var KWt=class extends $FP{constructor(){super();this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}};var g3=(M,W,b=!0,T=()=>!0)=>q=>{const X=q[M]; if(Array.isArray(X)&&T(q))return v_l(X,W,b)},sD=(M,W)=>b=>W(b)?b[M]:void 0,mns=M=>W=>{for(let b=0;bb?g.et(M,(T,q)=>g.ME(W,q)):g.dG(W,(T,q,X)=>M.slice(q>0?X[q-1]+1:0,T+1).reduce((G,V)=>G+V,0));var w3=mns([void 0,1,2,3,4,8,16]),px=mns([void 0,4,8,16]),LWP={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:sD("p0",px),p1:sD("p1",px),p2:sD("p2",px),p3:sD("p3",px),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:g3("mtos1",[0,2,4],!1,px),mtos2:g3("mtos2",[0,2,4],!1,px),mtos3:g3("mtos3",[0,2,4],!1,px),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:sD("a0",px),a1:sD("a1",px),a2:sD("a2",px),a3:sD("a3",px),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:sD("c0",px),c1:sD("c1",px),c2:sD("c2",px),c3:sD("c3",px),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:sD("qmtos",w3),qnc:sD("qnc",w3),qmv:sD("qmv",w3),qnv:sD("qnv",w3), 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:sD("ss0",px),ss1:sD("ss1",px),ss2:sD("ss2",px),ss3:sD("ss3",px),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"},lSL=Object.assign({},LWP,{avid:Lr("audio"),avas:"avas",vs:"vs"}),tjt={atos:"atos",avt:g3("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:((M,W)=>b=>b[M]===void 0&&W!==void 0?W:b[M])("ss",0), t:"t"};var ZHS=class{constructor(){this.V=this.Z=""}};var ISP=class{};var NJL=class{constructor(){this.V={vs:[1,0],vw:[0,1],am:[2,2],a:[4,4],f:[8,8],bm:[16,16],b:[32,32],avw:[0,64],avs:[64,0],pv:[256,256],gdr:[0,512],p:[0,1024],r:[0,2048],m:[0,4096],um:[0,8192],ef:[0,16384],s:[0,32768],pmx:[0,16777216],mut:[33554432,33554432],umutb:[67108864,67108864],tvoff:[134217728,134217728]};this.Z={};for(const M in this.V)this.V[M][1]>0&&(this.Z[M]=0);this.B=0}};var YM=class{constructor(){this.Z=this.V=0}getValue(){return this.V}update(M,W){M>=32||(this.Z&1<=.5;R0(W.volume)&&(this.A=this.A!=-1?Math.min(this.A,W.volume):W.volume,this.C=Math.max(this.C,W.volume));X&&(this.sY+=M,this.X+=q?M:0);this.Z.update(W.Mp,b.Mp,W.Z,M,T,q); this.B.update(!0,M);this.S.update(q,M);this.gK.update(b.fullscreen,M);this.EY.update(q&&!X,M);M=Math.floor(W.mediaTime/1E3);this.BY.update(M,W.isVisible());this.jT.update(M,W.Mp>=1);this.Lp.update(M,n9(W))}}};var fSl=class{constructor(){this.S=!1}V(M){this.S||(this.Z(M)?(M=I3(this.X,this.B,M),this.A|=M,M=M==0):M=!1,this.S=M)}};var $_=class extends fSl{constructor(M,W){super();this.B=M;this.X=W;this.A=0}Z(){return!0}C(){return!1}getId(){const M=Sp(rK,W=>W==this.B); return R3[M].toString()}toString(){let M="";this.C()&&(M+="c");this.S&&(M+="s");this.A>0&&(M+=`:${this.A}`);return this.getId()+M}};var RnL=class extends $_{constructor(M,W){super(M,W);this.W=[]}V(M,W=null){W!=null&&this.W.push(W);super.V(M)}};var rSs=class{};var Mn=class extends rSs{V(){return null}B(){return[]}};var WL=class extends Vjt{BY(){if(this.element){var M=this.element,W=this.V.Z.B;try{try{var b=HG(M.getBoundingClientRect())}catch(B){b=new NP(0,0,0,0)}const q=b.right-b.left,X=b.bottom-b.top,G=c5(M,W),V=G.x,J=G.y;var T=new NP(Math.round(J),Math.round(V+q),Math.round(J+X),Math.round(V))}catch(q){T=ySs.clone()}this.B=T;this.Z=PG(this,this.B)}}Lp(){this.O=this.V.A.Z}wK(M){const W=Y5(this.pN,"od")==1;return qYL(M,this.O,this.element,W)}jT(){this.timestamp=Date.now()-mS}S(){this.jT();this.BY();if(this.element&& typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var M=this.element;var W=new g.i0(M.videoWidth,M.videoHeight);M=this.Z;var b=H5(M),T=M.getHeight(),q=W.width;W=W.height;q<=0||W<=0||b<=0||T<=0||(q/=W,W=b/T,M=M.clone(),q>W?(b/=q,T=(T-b)/2,T>0&&(T=M.top+T,M.top=Math.round(T),M.bottom=Math.round(T+b))):(T*=q,b=Math.round((b-T)/2),b>0&&(b=M.left+b,M.left=Math.round(b),M.right=Math.round(b+T))));this.Z=M}this.Lp();M=this.Z;b=this.O;M=M.left<=b.right&&b.left<=M.right&& M.top<=b.bottom&&b.top<=M.bottom?new NP(Math.max(M.top,b.top),Math.min(M.right,b.right),Math.min(M.bottom,b.bottom),Math.max(M.left,b.left)):new NP(0,0,0,0);b=M.top>=M.bottom||M.left>=M.right?new NP(0,0,0,0):M;M=this.V.A;W=q=T=0;(this.Z.bottom-this.Z.top)*(this.Z.right-this.Z.left)>0&&(this.wK(b)?b=new NP(0,0,0,0):(T=rz().A,W=new NP(0,T.height,T.width,0),T=Gl(b,this.D??this.Z),q=Gl(b,rz().Z),W=Gl(b,W)));b=b.top>=b.bottom||b.left>=b.right?new NP(0,0,0,0):R5(b,-this.Z.left,-this.Z.top);hM()||(q=T=0); this.lV=new XLL(M,this.element,this.Z,b,T,q,this.timestamp,W)}getName(){return this.V.getName()}};var xnp=new NP(0,0,0,0),FWy=class extends WL{constructor(M,W,b){super(null,M,W,b);this.sY=M.isActive();this.Zs=0}observe(){this.A();return!0}C(){super.S()}jT(){}BY(){}S(){this.A();super.S()}gK(M){M=M.isActive();M!==this.sY&&(M?this.A():(rz().Z=new NP(0,0,0,0),this.Z=new NP(0,0,0,0),this.O=new NP(0,0,0,0),this.timestamp=-1));this.sY=M}};var Kfg={firstquartile:0,midpoint:1,thirdquartile:2,complete:3},iHL=class extends Cgt{constructor(M,W,b,T=new Mn){super(M,W);this.cX=b;this.kx=0;this.TK={};this.Kz=new NJL;this.td={};this.Oi="";this.jT=null;this.OY=!1;this.Z=[];this.vj=T.V();this.C=T.B();this.A=null;this.B=-1;this.xk=this.gK=void 0;this.Zs=this.O=0;this.BY=-1;this.Ds=this.wK=!1;this.yz=this.X=this.V=this.tb=this.XX=0;new oz;this.lV=this.MK=0;this.Lp=-1;this.MV=0;this.D=g.lq;this.sY=[this.je()];this.vP=2;this.F1={};this.F1.pause="p"; this.F1.resume="r";this.F1.skip="s";this.F1.mute="m";this.F1.unmute="um";this.F1.exitfullscreen="ef";this.S=null;this.EY=this.bV=!1;this.d9=Math.floor(Date.now()/1E3-1704067200);this.An=0}En(){return!0}hU(){return this.MV==2}eU(M){return Dz(this,M,Math.max(1E4,this.B/3))}zv(M,W,b,T,q,X,G){const V=this.D(this)||{};g.sr(V,q);this.B=V.duration||this.B;this.gK=V.isVpaid||this.gK;this.xk=V.isYouTube||this.xk;Uy();this.EY=!1;q=Epg(this,W);tN(this)===1&&(X=q);super.zv(M,W,b,T,V,X,G);this.vj&&this.vj.S&& g.Py(this.C,J=>{J.V(this)})}Rh(M,W,b){super.Rh(M,W,b); Zz(this).update(M,W,this.QB,b);this.Ds=n9(this.QB)&&n9(W);this.BY==-1&&this.wK&&(this.BY=this.Mg().B.Z);this.Kz.B=0;M=this.tC();W.isVisible()&&UG(this.Kz,"vs");M&&UG(this.Kz,"vw");R0(W.volume)&&UG(this.Kz,"am");n9(W)?UG(this.Kz,"a"):UG(this.Kz,"mut");this.xv&&UG(this.Kz,"f");W.V!=-1&&(UG(this.Kz,"bm"),W.V==1&&(UG(this.Kz,"b"),n9(W)&&UG(this.Kz,"umutb")));n9(W)&&W.isVisible()&&UG(this.Kz,"avs");this.Ds&&M&&UG(this.Kz,"avw");W.Mp>0&&UG(this.Kz,"pv");IK(this,this.Mg().B.Z,!0)&&UG(this.Kz,"gdr");ba(this.Mg().V, 1)>=2E3&&UG(this.Kz,"pmx");this.EY&&UG(this.Kz,"tvoff")}je(){return new HHS}Mg(){return this.YY}Dn(){return new KWt}h8(M,W,b,T=-1){M=super.h8(M,W,b,T);M.fullscreen=this.xv;M.paused=this.hU();M.volume=b.volume;R0(M.volume)||(this.XX++,W=this.QB,R0(W.volume)&&(M.volume=W.volume));b=b.currentTime;M.mediaTime=b!==void 0&&b>=0?b:-1;return M}HA(M){return rz(),this.xv?1:super.HA(M)}Ib(){return 1}getDuration(){return this.B}kD(){return this.q9?2:Nh(this)?5:this.tC()?4:3}fl(){return this.bV?this.Mg().S.B>= 2E3?4:3:2}W(M){this.K7&&this.K7.W(M)}};var hnt=g.Hy(),adl=class{constructor(){this.Z={};const M=Tr();ia(this,M,document);const W=ZZG();try{if("1"==W){for(let b=M.parent;b!=M.top;b=b.parent)ia(this,b,b.document);ia(this,M.top,M.top.document)}}catch(b){}}};var ASQ=class{constructor(){this.Z=[];this.V=[]}reset(){this.Z=[];this.V=[]}},zl=k4(ASQ);var wK=class{constructor(){this.Z=this.V=null}};var WUy=class extends eg{constructor(M){M=R9t(M);super(M.length?M[M.length-1]:new PP(Kr,0));this.S=M;this.V=null}getName(){return(this.V?this.V:this.Z).getName()}Dl(){return(this.V?this.V:this.Z).Dl()}Gk(){return(this.V?this.V:this.Z).Gk()}init(M){let W=!1;g.Py(this.S,b=>{b.initialize()&&(W=!0)}); W&&(this.W=M,uC(this.Z,this));return W}dispose(){g.Py(this.S,M=>{M.dispose()}); super.dispose()}O(){return gG(this.S,M=>M.sY())}B(){return gG(this.S,M=>M.sY())}A(M,W,b){return new WL(M,this.Z,W,b)}C(M){this.V=M.V}};var rOs={threshold:[0,.3,.5,.75,1]},znt=class extends WL{constructor(M,W,b,T){super(M,W,b,T);this.xk=this.An=this.Zs=this.sY=this.A=null}observe(){this.xk||(this.xk=Date.now()-mS);if(VG(298,()=>xRL(this)))return!0; this.V.fail("msf");return!1}unobserve(){if(this.A&&this.element)try{this.A.unobserve(this.element),this.sY?(this.sY.unobserve(this.element),this.sY=null):this.Zs&&(this.Zs.disconnect(),this.Zs=null)}catch(M){}}S(){const M=e2(this);M.length>0&&Pi(this,M);super.S()}BY(){}wK(){return!1}Lp(){}Dl(){return Object.assign(this.V.Dl(),{niot_obs:this.xk,niot_cbk:this.An})}getName(){return"nio"}};var vI=class extends eg{constructor(M=Kr){super(new PP(M,2))}getName(){return"nio"}B(){return!rz().V&&this.Z.Z.B.IntersectionObserver!=null}A(M,W,b){return new znt(M,this.Z,W,b)}};var YYG=class extends PP{constructor(){const M=dK();super(Kr.top,M,"geo")}Ds(){return rz().Z}sY(){const M=dK();this.O!==M&&(this.Z!=this&&M>this.Z.O&&(this.Z=this,zM(this)),this.O=M);return M==2}};var p9=class{};var uIs=class{constructor(){this.done=!1;this.Z={Er:0,qU:0,ULk:0,gX:0,SK:-1,w7:0,m3:0,Cn:0,VL:0};this.A=null;this.S=!1;this.B=null;this.C=0;this.V=new Gzs(this)}sample(){ci(this,ua(),!1)}},gK=k4(uIs);var WI=null,tX="",lv=!1;var Slg=()=>"av.default_js".includes("ima_html5_sdk")?{Qf:"ima",qO:null}:"av.default_js".includes("ima_native_sdk")?{Qf:"nima",qO:null}:"av.default_js".includes("admob-native-video-javascript")?{Qf:"an",qO:null}:"youtube.player.web_20260216_03_RC00".includes("cast_js_sdk")?{Qf:"cast",qO:bv()}:"youtube.player.web_20260216_03_RC00".includes("youtube.player.web")?{Qf:"yw",qO:bv()}:"youtube.player.web_20260216_03_RC00".includes("outstream_web_client")?{Qf:"out",qO:bv()}:"youtube.player.web_20260216_03_RC00".includes("drx_rewarded_web")? {Qf:"r",qO:bv()}:"youtube.player.web_20260216_03_RC00".includes("gam_native_web_video")?{Qf:"n",qO:bv()}:"youtube.player.web_20260216_03_RC00".includes("admob_interstitial_video")?{Qf:"int",qO:bv()}:{Qf:"j",qO:null},fF=Slg().Qf,yz=Slg().qO;var hX=(M,W)=>{const b={sv:"968"};yz!==null&&(b.v=yz);b.cb=fF;b.nas=zl.Z.length;b.msg=M;W!==void 0&&(M=AX(W))&&(b.e=R3[M]);return b},AX=M=>{const W=WX(M,"custom_metric_viewable")?"custom_metric_viewable":M.toLowerCase(); return Sp(rK,b=>b==W)};var SYq={nF:"visible",Rd:"audible",h8K:"time",T9Y:"timetype"},Tx={visible:M=>/^(100|[0-9]{1,2})$/.test(M), audible:M=>M=="0"||M=="1", timetype:M=>M=="mtos"||M=="tos", time:M=>/^(100|[0-9]{1,2})%$/.test(M)||/^([0-9])+ms$/.test(M)},sBQ=class{constructor(){this.Z=void 0; this.V=!1;this.B=0;this.A=-1;this.S="tos"}setTime(M,W,b="tos"){W=="ms"?(this.B=M,this.A=-1):(this.B=-1,this.A=M);this.S=b;return this}};var wXg=class extends $_{constructor(M,W,b,T){super(W,T);this.W=M;this.D=b}getId(){return this.W}C(){return!0}Z(M){const W=M.Mg(),b=M.getDuration();return gG(this.D,T=>{if(T.Z!=void 0)var q=PrL(T,W);else b:{switch(T.S){case "mtos":q=T.V?W.S.B:W.B.Z;break b;case "tos":q=T.V?W.S.Z:W.B.Z;break b}q=0}q==0?T=!1:(T=T.B!=-1?T.B:b!==void 0&&b>0?T.A*b:-1,T=T!=-1&&q>=T);return T})}};var OHq=class extends ISP{Z(M){const W=new ZHS;W.Z=yG(M,LWP);W.V=yG(M,tjt);return W}};var PgQ=class extends $_{constructor(M){super("fully_viewable_audible_half_duration_impression",M)}Z(M){return Nh(M)}};var enL=class extends rSs{constructor(M){super();this.Z=M}};var dnL=class extends $_{constructor(M){super("viewable_impression",M)}Z(M){return M.Mg().tC()}};var o_s=class extends RnL{constructor(M){super("measurable_impression",M)}Z(M){const W=g.ME(this.W,Y5(PO().pN,"ovms"));return!M.q9&&(M.MV!=0||W)}};var cSP=class extends enL{V(){return new o_s(this.Z)}B(){return[new dnL(this.Z),new PgQ(this.Z)]}};var Qup=class extends FWy{A(){const M=g.Ct("ima.admob.getViewability"),W=Y5(this.pN,"queryid");typeof M==="function"&&W&&M(W)}getName(){return"gsv"}};var $$P=class extends eg{constructor(){super(new PP(Kr,2))}getName(){return"gsv"}B(){const M=rz();PO();return M.V&&!1}A(M,W,b){return new Qup(this.Z,W,b)}};var g_s=class extends FWy{A(){const M=g.Ct("ima.bridge.getNativeViewability"),W=Y5(this.pN,"queryid");typeof M==="function"&&W&&M(W,b=>{g.P$(b)&&this.Zs++;const T=b.opt_nativeViewVisibleBounds||{},q=b.opt_nativeViewHidden;this.Z=f_(b.opt_nativeViewBounds||{});const X=this.V.A;X.Z=q?xnp.clone():f_(T);this.timestamp=b.opt_nativeTime||-1;rz().Z=X.Z;b=b.opt_nativeVolume;b!==void 0&&(X.volume=b)})}getName(){return"nis"}};var MuJ=class extends eg{constructor(){super(new PP(Kr,2))}getName(){return"nis"}B(){const M=rz();PO();return M.V&&!1}A(M,W,b){return new g_s(this.Z,W,b)}};var qC=class extends PP{constructor(){super(Kr,2,"mraid");this.EY=0;this.lV=this.An=!1;this.D=null;this.V=Zu(this.B);this.A.Z=new NP(0,0,0,0);this.bV=!1}sY(){return this.V.AU!=null}wK(){const M={};this.EY&&(M.mraid=this.EY);this.An&&(M.mlc=1);M.mtop=this.V.s5;this.D&&(M.mse=this.D);this.bV&&(M.msc=1);M.mcp=this.V.compatibility;return M}initialize(){if(this.isInitialized)return!this.yz();this.isInitialized=!0;if(this.V.compatibility===2)return this.D="ng",this.fail("w"),!1;if(this.V.compatibility=== 1)return this.D="mm",this.fail("w"),!1;rz().D=!0;this.B.document.readyState&&this.B.document.readyState=="complete"?Dq(this):F1(this.B,"load",()=>{Uy().setTimeout(a3(292,()=>Dq(this)),100)},292); return!0}MK(){const M=rz(),W=nF(this,"getMaxSize");M.Z=new NP(0,W.width,W.height,0)}Lp(){rz().A=nF(this,"getScreenSize")}dispose(){Eu(this);super.dispose()}};var suJ=new class{constructor(M,W=!1){this.key=M;this.defaultValue=W;this.valueType="boolean"}}("45378663");var wLt=class{constructor(){this.isInitialized=!1;this.Z=this.V=null;this.Ds={start:this.WP,firstquartile:this.vP,midpoint:this.cP,thirdquartile:this.Y9,complete:this.XX,error:this.OY,pause:this.An,resume:this.bV,skip:this.FT,viewable_impression:this.B,mute:this.A,unmute:this.A,fullscreen:this.oT,exitfullscreen:this.d9,fully_viewable_audible_half_duration_impression:this.B,measurable_impression:this.B,abandon:this.An,engagedview:this.B,impression:this.B,creativeview:this.B,progress:this.A,custom_metric_viewable:this.B, bufferstart:this.An,bufferfinish:this.bV,audio_measurable:this.B,audio_audible:this.B};this.aT={overlay_resize:this.fv,abandon:this.BY,close:this.BY,collapse:this.BY,overlay_unmeasurable_impression:M=>x0(M,"overlay_unmeasurable_impression",hM()), overlay_viewable_immediate_impression:M=>x0(M,"overlay_viewable_immediate_impression",hM()), overlay_unviewable_impression:M=>x0(M,"overlay_unviewable_impression",hM()), overlay_viewable_end_of_session_impression:M=>x0(M,"overlay_viewable_end_of_session_impression",hM())}; PO().V=3;QBG(this);this.S=null}D(M){JN(M,!1);NHJ(M)}X(){}O(M,W,b,T){M=new iHL(M,b?W:-1,this.sY(),this.jT());M.Oi=T;Uas(M.pN);pJ(M.pN,"queryid",M.Oi);M.Ka("");JOq(M,(...q)=>this.wK(...q),(...q)=>gpq(this,...q)); (T=k4(wK).Z)&&Bi(M,T);this.S&&(M.W(this.S),this.S=null);M.Zc.V$&&k4(p9);return M}gK(M){switch(M.Gk()){case 0:if(M=k4(wK).Z)M=M.Z,g.X9(M.S,this),M.Zs&&this.En()&&SI(M);LF();break;case 2:sG()}}C(){}En(){return!1}WP(M){var W=M.D(M);W&&(W=W.volume,M.bV=R0(W)&&W>0);Hi(M,0);return x0(M,"start",hM())}A(M,W,b){ci(gK,[M],!hM());return this.B(M,W,b)}B(M,W,b){return x0(M,b,hM())}vP(M){return HI(M,"firstquartile",1)}cP(M){M.wK=!0;return HI(M,"midpoint",2)}Y9(M){return HI(M,"thirdquartile",3)}XX(M){const W=HI(M, "complete",4);la(M);return W}OY(M){M.MV=3;return x0(M,"error",hM())}bV(M,W,b){W=hM();if(M.hU()&&!W){var T=M.Mg(),q=Date.now()-mS;T.D=q}ci(gK,[M],!W);M.hU()&&(M.MV=1);return x0(M,b,W)}FT(M,W){W=this.A(M,W||{},"skip");la(M);return W}oT(M,W){JN(M,!0);return this.A(M,W||{},"fullscreen")}d9(M,W){JN(M,!1);return this.A(M,W||{},"exitfullscreen")}An(M,W,b){W=M.Mg();var T=Date.now()-mS;W.xk=C9(W,T,M.MV!=1);ci(gK,[M],!hM());M.MV==1&&(M.MV=2);return x0(M,b,hM())}fv(M){ci(gK,[M],!hM());return M.V()}BY(M){ci(gK, [M],!hM());this.EY(M);la(M);return M.V()}wK(){}MK(){}EY(){}Lp(){}yz(){}jT(){this.Z||(this.Z=this.yz());return this.Z==null?new Mn:new cSP(this.Z)}sY(){return new OHq}};var pLp=class extends $_{constructor(M){super("audio_audible",M)}Z(M){return M.fl()==4}};var Ylq=class extends RnL{constructor(M){super("audio_measurable",M)}Z(M){M=M.fl();return M==3||M==4}};var $dP=class extends enL{V(){return new Ylq(this.Z)}B(){return[new pLp(this.Z)]}};var MWq=class extends ISP{Z(M){M&&(M.e===28&&(M=Object.assign({},M,{avas:3})),M.vs===4||M.vs===5)&&(M=Object.assign({},M,{vs:3}));const W=new ZHS;W.Z=yG(M,lSL);W.V=yG(M,tjt);return W}};var WQl=class{constructor(M){this.Z=M}V(){return g.Ct(this.Z)}};var FX=class extends wLt{constructor(){super();this.xk=null;this.lV=!1;this.Zs="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}X(M,W){let b;const T=k4(wK);if(T.Z!=null)switch(T.Z.getName()){case "nis":b=VuS(this,M,W);break;case "gsv":b=JYS(this,M,W);break;case "exc":b=BPL(this,M)}b||(W.opt_overlayAdElement?b=void 0:W.opt_adElement&&(b=qat(this,M,W.opt_adElement,W.opt_osdId)));b&&b.Ib()==1&&(b.D==g.lq&&(b.D=q=>this.Lp(q)),D$G(this,b,W)); return b}Lp(M){M.V=0;M.yz=0;let W;if(M.A=="h"||M.A=="n"){PO();M.jT&&(PO(),Zq(this)!="h"&&Zq(this));var b=g.Ct("ima.common.getVideoMetadata");if(typeof b==="function")try{W=b(M.Oi)}catch(T){M.V|=4}else M.V|=2}else if(M.A=="b")if(b=g.Ct("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{W=b(M.Oi)}catch(T){M.V|=4}else M.V|=2;else if(M.A=="ml")if(b=g.Ct("ima.common.getVideoMetadata"),typeof b==="function")try{W=b(M.Oi)}catch(T){M.V|=4}else M.V|=2;else M.V|=1;M.V||(W===void 0?M.V|=8:W===null? M.V|=16:g.P$(W)?M.V|=32:W.errorCode!=null&&(M.yz=W.errorCode,M.V|=64));W==null&&(W={});b=W;M.X=0;for(const T in juL)b[T]==null&&(M.X|=juL[T]);CF(b,"currentTime");CF(b,"duration");R0(W.volume)&&R0()&&(W.volume*=NaN);return W}yz(){PO();Zq(this)!="h"&&Zq(this);const M=aZQ(this);return M!=null?new WQl(M):null}MK(M){!M.Z&&M.q9&&NC(this,M,"overlay_unmeasurable_impression")&&(M.Z=!0)}EY(M){M.u_&&(M.tC()?NC(this,M,"overlay_viewable_end_of_session_impression"):NC(this,M,"overlay_unviewable_impression"),M.u_= !1)}wK(){}O(M,W,b,T){if(PO().flags.UY(suJ)){var q=Y5(PO().pN,"mm");(q={[kM.py]:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",[kM.VIDEO]:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}[q])&&uv(this,q);this.Zs==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&kF.Rr(1044,Error(),void 0,void 0)}M=super.O(M,W,b,T);this.lV&&(W=this.xk,M.S==null&&(M.S=new kzL),W.Z[M.Oi]=M.S,M.S.S=hnt);return M}D(M){M&&M.Ib()==1&&this.lV&&delete this.xk.Z[M.Oi];return super.D(M)}jT(){this.Z||(this.Z=this.yz());return this.Z==null?new Mn:this.Zs==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"? new $dP(this.Z):new cSP(this.Z)}sY(){return this.Zs==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new MWq:new OHq}W(M,W,b,T,q){W=new NP(b,W+T,b+q,W);(M=hN(zl,M))?M.W(W):this.S=W}},bqt=K_(193,iv,void 0,Uu);g.Uq("Goog_AdSense_Lidar_sendVastEvent",bqt);var TZp;TZp=K_(194,function(M,W={}){M=xz(k4(FX),M,W);return rX(M)}); g.Uq("Goog_AdSense_Lidar_getViewability",TZp);var qnL=K_(195,function(){return Cn()}); g.Uq("Goog_AdSense_Lidar_getUrlSignalsArray",qnL);var X9t;X9t=K_(196,function(){return JSON.stringify(Cn())}); g.Uq("Goog_AdSense_Lidar_getUrlSignalsList",X9t);var DXP=class{constructor({url:M,HKn:W}){this.V=M;this.A=W;this.B=(new Date).getTime()-17040672E5;this.Z={};const b=/[?&]([^&=]+)=([^&]*)/g;for(;W=b.exec(M);)this.Z[W[1]]=W[2]}};var Do=class extends Error{constructor(M,W,b=Error()){super();this.code=M;W+=":";b instanceof Error?(this.message=W+b.message,this.stack=b.stack||""):(this.message=W+String(b),this.stack="");Object.setPrototypeOf(this,new.target.prototype)}};var U$t=class extends g.gz{constructor(M){super();this.wpc=M}v2(){return this.wpc.f()}z_(M){this.wpc.c(M)}B(M){return this.wpc.m(B7(M))}uI(M){return this.wpc.mws(B7(M))}},V1=class extends g.gz{constructor(M){super();this.Rc=M;this.B="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.V=void 0;this.cI=this.Rc.p;this.A=this.NR.bind(this);this.addOnDisposeCallback(()=>void yYl(this))}snapshot(M){return this.Rc.s({...(M.uG&&{c:M.uG}), ...(M.f0&&{s:M.f0}),...(M.K0!==void 0&&{p:M.K0})})}NR(M){this.Rc.e(M)}zG(){return this.Rc.l()}};var jyS=class extends g.gz{constructor(){super(...arguments);this.Zs=1}share(){if(this.ST())throw Error("E:AD");this.Zs++;return this}dispose(){--this.Zs||super.dispose()}};var GQS=class{constructor(M){this.Z=M;TA(M,"/client_streamz/bg/frs",g.Uj("mk"))}Wa(M,W){this.Z.Wa("/client_streamz/bg/frs",M,W)}},VWQ=class{constructor(M){this.Z=M;TA(M,"/client_streamz/bg/wrl",g.Uj("mn"),y1("ac"),y1("sc"),g.Uj("rk"),g.Uj("mk"))}Wa(M,W,b,T,q,X){this.Z.Wa("/client_streamz/bg/wrl",M,W,b,T,q,X)}},J8p=class{constructor(M){this.V=M;g.Xp(M,"/client_streamz/bg/ec",g.Uj("en"),g.Uj("mk"))}Z(M,W){g.JJ(this.V,"/client_streamz/bg/ec",M,W)}},BZs=class{constructor(M){this.Z=M;TA(M,"/client_streamz/bg/el", g.Uj("en"),g.Uj("mk"))}Wa(M,W,b){this.Z.Wa("/client_streamz/bg/el",M,W,b)}},DdL=class{constructor(M){this.V=M;g.Xp(M,"/client_streamz/bg/cec",y1("ec"),g.Uj("mk"))}Z(M,W){g.JJ(this.V,"/client_streamz/bg/cec",M,W)}},aCp=class{constructor(M){this.V=M;g.Xp(M,"/client_streamz/bg/po/csc",y1("cs"),g.Uj("mk"))}Z(M,W){g.JJ(this.V,"/client_streamz/bg/po/csc",M,W)}},Ekt=class{constructor(M){this.V=M;g.Xp(M,"/client_streamz/bg/po/ctav",g.Uj("av"),g.Uj("mk"))}Z(M,W){g.JJ(this.V,"/client_streamz/bg/po/ctav",M, W)}},nkG=class{constructor(M){this.V=M;g.Xp(M,"/client_streamz/bg/po/cwsc",g.Uj("su"),g.Uj("mk"))}Z(M,W){g.JJ(this.V,"/client_streamz/bg/po/cwsc",M,W)}},y8q=class{constructor(M){this.Z=M;TA(M,"/client_streamz/bg/od/p",g.Uj("mk"))}Wa(M,W){this.Z.Wa("/client_streamz/bg/od/p",M,W)}},UdJ=class{constructor(M){this.Z=M;TA(M,"/client_streamz/bg/od/n",g.Uj("et"),g.Uj("mk"))}Wa(M,W,b){this.Z.Wa("/client_streamz/bg/od/n",M,W,b)}};var BeL=class extends JB{constructor(M){super(M)}};var LN=class extends JB{constructor(M){super(M)}},lJ=[1,2,3];var KN=class extends JB{constructor(M){super(M)}},v7=[1,2,3];var mI=class extends JB{constructor(M){super(M)}};var Chl=class extends JB{constructor(M){super(M)}};var kQq=class extends JB{constructor(M){super(M)}},KQP=[1,2,3];var CN=class extends JB{constructor(M){super(M)}Nh(){var M=lW(this,3,Sv,3,!0);w5(M);return M[void 0]}};CN.prototype.V=uz([0,FM,[0,KQP,h2,[0,FM,-1,SDL],h2,[0,FM,-1,xM,SDL],h2,[0,FM]],PHp,iH,[0,iH,[0,lJ,eQp,hQQ,OxS],[0,v7,ixG,FOt,h2,[0,iH,[0,xFQ,r3]]]],A2G,zQL]);var vkq=class extends JB{constructor(M){super(M)}};g.L=H7.prototype;g.L.isEnabled=function(){if(!g.yp.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{DL:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.L.set=function(M,W,b){let T;var q=!1;let X;if(typeof b==="object"){X=b.sameSite;q=b.secure||!1;T=b.domain||void 0;var G=b.path||void 0;var V=b.DL}if(/[;=\s]/.test(M))throw Error('Invalid cookie name "'+M+'"');if(/[;\r\n]/.test(W))throw Error('Invalid cookie value "'+W+'"');V===void 0&&(V=-1);b=T?";domain="+T:"";G=G?";path="+G:"";q=q?";secure":"";V=V<0?"":V==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+V*1E3)).toUTCString();this.Z.cookie=M+"="+W+b+G+V+q+(X!=null? ";samesite="+X:"")}; g.L.get=function(M,W){const b=M+"=",T=(this.Z.cookie||"").split(";");for(let q=0,X;q=0;W--)this.remove(M[W])}; var bt=new H7(typeof document=="undefined"?null:document);var mdq=class{async compress(M){var W=new CompressionStream("gzip");const b=(new Response(W.readable)).arrayBuffer();W=W.writable.getWriter();await W.write((new TextEncoder).encode(M));await W.close();return new Uint8Array(await b)}isSupported(M){return M<1024?!1:typeof CompressionStream!=="undefined"}};var bg=class extends JB{constructor(M){super(M)}};var LQP=class{constructor(M,W){this.intervalMs=M;this.callback=W;this.enabled=!1;this.Z=()=>g.Hy(); this.V=this.Z()}setInterval(M){this.intervalMs=M;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}start(){this.enabled=!0;this.timer||(this.timer=setTimeout(()=>{this.tick()},this.intervalMs),this.V=this.Z())}stop(){this.enabled=!1; this.timer&&(clearTimeout(this.timer),this.timer=void 0)}tick(){if(this.enabled){const M=Math.max(this.Z()-this.V,0);M{this.tick()},this.intervalMs-M):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0}};var lCt=class extends JB{constructor(M){super(M)}};var tWq=class extends JB{constructor(M){super(M)}};g.Tz=class extends JB{constructor(M){super(M)}YQ(){return Wj(this,1)}};g.Tz.prototype.yh=Ma(1);var iJ=class extends JB{constructor(M){super(M)}};var Oj=class extends JB{constructor(M){super(M)}},NPP=SL(Oj);var ek=class extends JB{constructor(M){super(M)}};var hc=["platform","platformVersion","architecture","model","uaFullVersion"],Fy=new Oj,Ac=null;var uJ=class extends JB{constructor(M){super(M)}};var ZqL=class extends JB{constructor(M){super(M)}};var ICs=class extends JB{constructor(M){super(M,4)}};var qn=class extends JB{constructor(M){super(M,37)}j(){const M=this.h1;return Pl(M,M[Q6]|0,ZqL,7)!==void 0}Ze(){return ex(this,bg,16)}};var NZL=class extends JB{constructor(M){super(M,19)}BI(M){return VJ(this,2,M)}};var Hqs=class{constructor(M,W=!1){this.dF=W;this.uach=this.locale=null;this.V=0;this.isFinal=!1;this.Z=new NZL;Number.isInteger(M)&&this.Z.BI(M);W||(this.locale=document.documentElement.getAttribute("lang"));P7(this,new uJ)}BI(M){this.Z.BI(M);return this}build(M,W=0,b=0,T=null,q=0,X=0){if(!this.dF){var G=Sk(this);var V=new g.Tz;V=VJ(V,1,this.V);V=C$(V,2,n3(this.isFinal));b=C$(V,3,kx(b>0?b:void 0));q=C$(b,4,kx(q>0?q:void 0));X=C$(q,5,kx(X>0?X:void 0));q=X.h1;b=q[Q6]|0;X=g5(X,b)?X:G6(X,q,b)?Vt(X,q): new X.constructor(jx(q,b,!0));gN(G,g.Tz,10,X)}G=this.Z.clone();X=Date.now().toString();G=C$(G,4,RF(X));M=wN(G,qn,3,M.slice());T&&(G=new lCt,T=C$(G,13,kx(T)),G=new tWq,T=gN(G,lCt,2,T),G=new ICs,T=gN(G,tWq,1,T),T=VJ(T,2,9),gN(M,ICs,18,T));W&&qx(M,14,W);return M}};g.di.prototype.V=0;g.di.prototype.reset=function(){this.Z=this.B=this.A;this.V=0}; g.di.prototype.getValue=function(){return this.B};var Qzl=class extends JB{constructor(M){super(M,8)}},fCq=SL(Qzl);var XI;XI=new gMQ(class extends JB{constructor(M){super(M)}});var RrL=class extends g.gz{constructor(M){super();this.componentId="";this.Z=[];this.lV="";this.pageId=null;this.An=this.Zs=-1;this.W=this.experimentIds=null;this.gK=this.O=this.C=this.A=0;this.xk=1;this.timeoutMillis=0;this.sY=!1;this.logSource=M.logSource;this.Oz=M.Oz||(()=>{}); this.B=new Hqs(M.logSource,M.dF);this.network=M.network||null;this.Pf=M.Pf||null;this.D=M.G$||null;this.sessionIndex=M.sessionIndex||null;this.lq=M.lq||!1;this.logger=null;this.withCredentials=!M.Xw;this.dF=M.dF||!1;this.X=!this.dF&&!!Tr()&&!!Tr().navigator&&Tr().navigator.sendBeacon!==void 0;this.BY=typeof URLSearchParams!=="undefined"&&!!(new URL(c7())).searchParams&&!!(new URL(c7())).searchParams.set;const W=zP(new uJ);P7(this.B,W);this.S=new g.di(1E4,3E5,.1);M=fZS(this,M.r3);this.V=new LQP(this.S.getValue(), M);this.yz=new LQP(6E5,M);this.lq||this.yz.start();this.dF||(document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Q1(this)}),document.addEventListener("pagehide",()=>{Q1(this)}))}vY(){Q1(this); this.V.stop();this.yz.stop();super.vY()}dispatch(M){if(M instanceof qn)this.log(M);else try{var W=new qn,b=M.Ba();var T=XK(W,8,b);this.log(T)}catch{}}log(M){if(this.BY){M=M.clone();var W=this.xk++;M=qx(M,21,W);this.componentId&&XK(M,26,this.componentId);W=M;{var b=n$(W,1);const T=typeof b;b=b==null?b:T==="bigint"?String(t6(64,b)):UU(b)?T==="string"?l8(b):f3(b):void 0}b==null&&(b=Date.now(),b=Number.isFinite(b)?b.toString():"0",C$(W,1,RF(b)));(m1?i8(n$(W,15,void 0,void 0,h6)):i8(n$(W,15)))!=null|| qx(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=this.experimentIds.clone(),gN(W,bg,16,b));W=this.Z.length-1E3+1;W>0&&(this.Z.splice(0,W),this.A+=W);this.Z.push(M);this.lq||this.V.enabled||this.V.start()}}flush(M,W){if(this.Z.length===0)M&&M();else if(this.sY&&this.X)this.B.V=3,rYG(this);else{var b=Date.now();if(this.An>b&&this.Zs{this.S.reset();this.V.setInterval(this.S.getValue());if(D){var a=null;try{var E=JSON.stringify(JSON.parse(D.replace(")]}'\n","")));a=fCq(E)}catch(n){}if(a){D=Number($q(a,1,Wb("-1")));D>0&&(this.Zs=Date.now(),this.An=this.Zs+D);(D=RJ(cb))&&a.h1[D]?.[175237375]!= null&&d5(UFs,3);if(RJ(CHs)&&RJ(cb)&&void 0===CHs&&(D=a.h1,E=D[cb])&&(E=E.Qt))try{E(D,175237375,mFG)}catch(n){mx(n)}a=XI.Z?XI.V(a,XI.Z,175237375,XI.B):XI.V(a,175237375,null,XI.B);if(a=a===null?void 0:a)a=g.Yy(a,1,-1),a!==-1&&(this.S=new g.di(a<1?1:a,3E5,.1),this.V.setInterval(this.S.getValue()))}}M&&M();this.C=0},J=(D,a)=>{var E=cl(T,qn,3); var n=Number($q(T,14));g.og(this.S);this.V.setInterval(this.S.getValue());D===401&&q&&(this.lV=q);n&&(this.A+=n);a===void 0&&(a=this.isRetryable(D));a&&(this.Z=E.concat(this.Z),this.lq||this.V.enabled||this.V.start());W&&W("net-send-failed",D);++this.C},B=()=>{this.network&&this.network.send(G,V,J)}; X?X.then(D=>{G.requestHeaders["Content-Encoding"]="gzip";G.requestHeaders["Content-Type"]="application/binary";G.body=D;G.y6=2;B()},()=>{B()}):B()}}}}isRetryable(M){return 500<=M&&M<600||M===401||M===0}};var r8t=class{constructor(){this.ey=typeof AbortController!=="undefined"}async send(M,W,b){const T=this.ey?new AbortController:void 0,q=T?setTimeout(()=>{T.abort()},M.timeoutMillis):void 0; try{const X=await fetch(M.url,{method:M.requestType,headers:{...M.requestHeaders},...(M.body&&{body:M.body}),...(M.withCredentials&&{credentials:"include"}),signal:M.timeoutMillis&&T?T.signal:null});X.status===200?W?.(await X.text()):b?.(X.status)}catch(X){switch(X?.name){case "AbortError":b?.(408);break;default:b?.(400)}}finally{clearTimeout(q)}}YQ(){return 4}};var AJ=class extends g.gz{constructor(){super();this.logSource=1828;this.sessionIndex="0";this.OC="https://play.google.com/log?format=json&hasfast=true";this.network=this.buildLabel=null;this.componentId="";this.Z=this.Pf=null;this.V=!1;this.pageId=null}Xw(){this.B=!0;return this}build(){this.network||(this.network=new r8t);const M=new RrL({logSource:this.logSource,Oz:this.Oz?this.Oz:xQ,sessionIndex:this.sessionIndex,G$:this.OC,dF:!1,lq:!1,Xw:this.B,r3:this.r3,network:this.network});g.t(this,M);if(this.buildLabel){var W= this.buildLabel,b=Sk(M.B);XK(b,7,W)}M.W=new mdq;this.componentId&&(M.componentId=this.componentId);this.Pf&&(M.Pf=this.Pf);this.pageId&&(M.pageId=this.pageId);this.Z&&((b=this.Z)?(M.experimentIds||(M.experimentIds=new bg),W=M.experimentIds,b=b.Ba(),XK(W,4,b)):M.experimentIds&&C$(M.experimentIds,4));this.V&&(M.sY=M.X);Hyt(M.B);this.network.BI&&this.network.BI(this.logSource);this.network.Ov&&this.network.Ov(M);return M}};var DPl=class extends g.gz{constructor(M){super();this.logSource=1828;this.componentId="";M||(M=new AJ,M.componentId="",g.t(this,M),M=M.build());this.Z=M}flush(M){M=M||[];if(M.length){const W=new vkq,b=[];for(let T=0;T-1?(W=M[G],b||(W.Hl=!1)):(W=new Sag(W,this.src,X,!!T,q),W.Hl=b,M.push(W));return W}; g.L.remove=function(M,W,b,T){M=M.toString();if(!(M in this.listeners))return!1;const q=this.listeners[M];W=Tj(q,W,b,T);return W>-1?(MB(q[W]),g.qE(q,W),q.length==0&&(delete this.listeners[M],this.Z--),!0):!1}; g.L.removeAll=function(M){M=M&&M.toString();let W=0;for(const b in this.listeners)if(!M||b==M){const T=this.listeners[b];for(let q=0;q-1?M[q]:null}; g.L.hasListener=function(M,W){const b=M!==void 0,T=b?M.toString():"",q=W!==void 0;return g.RQ(this.listeners,function(X){for(let G=0;G>>0);g.rG(g.Uo,g.gz);g.Uo.prototype[YQ]=!0;g.L=g.Uo.prototype;g.L.addEventListener=function(M,W,b,T){g.Xr(this,M,W,b,T)}; g.L.removeEventListener=function(M,W,b,T){ak(this,M,W,b,T)}; g.L.dispatchEvent=function(M){var W=this.PX;if(W){var b=[];for(var T=1;W;W=W.PX)b.push(W),++T}W=this.Yr;T=M.type||M;if(typeof M==="string")M=new g.wi(M,W);else if(M instanceof g.wi)M.target=M.target||W;else{var q=M;M=new g.wi(T,W);g.sr(M,q)}q=!0;let X,G;if(b)for(G=b.length-1;!M.V&&G>=0;G--)X=M.currentTarget=b[G],q=CG(X,T,!0,M)&&q;M.V||(X=M.currentTarget=W,q=CG(X,T,!0,M)&&q,M.V||(q=CG(X,T,!1,M)&&q));if(b)for(G=0;!M.V&&GM&&AsyncContext.Snapshot.wrap(M):M=>M;var FQS=class{constructor(M,W){this.B=M;this.A=W;this.V=0;this.Z=null}get(){let M;this.V>0?(this.V--,M=this.Z,this.Z=M.next,M.next=null):M=this.B();return M}put(M){this.A(M);this.V<100&&(this.V++,M.next=this.Z,this.Z=M)}};var KG;var iqt=class{constructor(){this.V=this.Z=null}add(M,W){const b=LG.get();b.set(M,W);this.V?this.V.next=b:this.Z=b;this.V=b}remove(){let M=null;this.Z&&(M=this.Z,this.Z=this.Z.next,this.Z||(this.V=null),M.next=null);return M}},LG=new FQS(()=>new hrP,M=>M.reset()),hrP=class{constructor(){this.next=this.scope=this.Z=null}set(M,W){this.Z=M; this.scope=W;this.next=null}reset(){this.next=this.scope=this.Z=null}};var jj,lU,m4,A8t;lU=!1;m4=new iqt;g.xS=(M,W)=>{jj||A8t();lU||(jj(),lU=!0);m4.add(M,W)}; A8t=()=>{const M=Promise.resolve(void 0);jj=()=>{M.then(d$L)}};Ik.prototype.reset=function(){this.context=this.V=this.B=this.Z=null;this.A=!1}; var NB=new FQS(function(){return new Ik},function(M){M.reset()}); g.Zm.prototype.then=function(M,W,b){return eq(this,kS(typeof M==="function"?M:null),kS(typeof W==="function"?W:null),b)}; g.Zm.prototype.$goog_Thenable=!0;g.L=g.Zm.prototype;g.L.finally=function(M){M=kS(M);return new g.Zm((W,b)=>{hq(this,T=>{M();W(T)},T=>{M(); b(T)})})}; g.L.JD=function(M,W){return eq(this,null,kS(M),W)}; g.L.catch=g.Zm.prototype.JD;g.L.cancel=function(M){if(this.Z==0){const W=new Ps(M);g.xS(function(){zj(this,W)},this)}}; g.L.WK=function(M){this.Z=0;tq(this,2,M)}; g.L.z$=function(M){this.Z=0;tq(this,3,M)}; g.L.MF=function(){let M;for(;M=uU(this);)Sq(this,M,this.Z,this.W);this.C=!1}; var YS=mx;g.rG(Ps,AL);Ps.prototype.name="cancel";g.rG(g.$N,g.Uo);g.L=g.$N.prototype;g.L.enabled=!1;g.L.J5=null;g.L.setInterval=function(M){this.nT=M;this.J5&&this.enabled?(this.stop(),this.start()):this.J5&&this.stop()}; g.L.Mk=function(){if(this.enabled){const M=g.Hy()-this.EV;M>0&&MW.Z.size); M.length&&this.D.flush(M,this.C);qSq(M);this.S=0;this.Z.enabled&&this.Z.stop()}Wa(M,W,...b){(M=DE(this,M))&&M instanceof bN&&(M.Wa(W,b),BD(this))}};var KI=class extends Error{constructor(M,W,b={}){super(W);this.code=M;this.metadata=b;this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype)}toString(){let M=`RpcError(${X5s(this.code)||String(this.code)})`;this.message&&(M+=": "+this.message);return M}};nS.prototype.Ba=function(M){const W=[];U0(this,M,W);return W.join("")}; var kN={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},j5a=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var zrs;g.rG(vD,KS);vD.prototype.Z=function(){return new XMLHttpRequest}; zrs=new vD;g.rG(g.my,g.Uo);var JWa=/^https?$/i,udy=["POST","PUT"],LS=[];g.L=g.my.prototype;g.L.r7=function(){this.dispose();g.X9(LS,this)}; g.L.send=function(M,W,b,T){if(this.Z)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+M);W=W?W.toUpperCase():"GET";this.D=M;this.A="";this.V=0;this.O=!1;this.B=!0;this.Z=this.yz?this.yz.Z():zrs.Z();this.Z.onreadystatechange=kS((0,g.IJ)(this.Gq,this));try{this.getStatus(),this.Zs=!0,this.Z.open(W,String(M),!0),this.Zs=!1}catch(X){this.getStatus();ZE(this,X);return}M=b||"";b=new Map(this.headers);if(T)if(Object.getPrototypeOf(T)===Object.prototype)for(var q in T)b.set(q, T[q]);else if(typeof T.keys==="function"&&typeof T.get==="function")for(const X of T.keys())b.set(X,T.get(X));else throw Error("Unknown input type for opt_headers: "+String(T));T=Array.from(b.keys()).find(X=>"content-type"==X.toLowerCase()); q=g.yp.FormData&&M instanceof g.yp.FormData;!g.ME(udy,W)||T||q||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const [X,G]of b)this.Z.setRequestHeader(X,G);this.sY&&(this.Z.responseType=this.sY);"withCredentials"in this.Z&&this.Z.withCredentials!==this.W&&(this.Z.withCredentials=this.W);try{this.C&&(clearTimeout(this.C),this.C=null),this.gK>0&&(this.getStatus(),this.C=setTimeout(this.Qe.bind(this),this.gK)),this.getStatus(),this.X=!0,this.Z.send(M),this.X=!1}catch(X){this.getStatus(), ZE(this,X)}}; g.L.Qe=function(){typeof Ii!="undefined"&&this.Z&&(this.A="Timed out after "+this.gK+"ms, aborting",this.V=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.L.abort=function(M){this.Z&&this.B&&(this.getStatus(),this.B=!1,this.S=!0,this.Z.abort(),this.S=!1,this.V=M||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),tJ(this))}; g.L.vY=function(){this.Z&&(this.B&&(this.B=!1,this.S=!0,this.Z.abort(),this.S=!1),tJ(this,!0));g.my.EO.vY.call(this)}; g.L.Gq=function(){this.ST()||(this.Zs||this.X||this.S?fS(this):this.m6())}; g.L.m6=function(){fS(this)}; g.L.isActive=function(){return!!this.Z}; g.L.isComplete=function(){return g.NO(this)==4}; g.L.getStatus=function(){try{return g.NO(this)>2?this.Z.status:-1}catch(M){return-1}}; g.L.getResponseHeader=function(M){if(this.Z&&this.isComplete())return M=this.Z.getResponseHeader(M),M===null?void 0:M}; g.L.getLastError=function(){return typeof this.A==="string"?this.A:String(this.A)};var iya=class{send(M,W=()=>{},b=()=>{}){VUL(M.url,T=>{T=T.target; HD(T)?W(g.Ri(T)):b(T.getStatus())},M.requestType,M.body,M.requestHeaders,M.timeoutMillis,M.withCredentials)}YQ(){return 1}};var Gz=class{constructor(M,W){this.logger=M;this.event=W;this.startTime=iN()}done(){this.logger.B(this.event,iN()-this.startTime)}},VF=class extends jyS{constructor(){super(...arguments);this.k9={Ze:()=>[]}}},uN=class extends VF{A(){}Z(){}B(){}LT(){}D(){}W(){}V(){}S(M,W,b,T){return T}gK(){}C(){}X(){}},Snp=class extends VF{constructor(M){super(); this.logger=M;this.k9={b7K:()=>this.logger, Ze:()=>this.logger.k9.Ze()}; this.addOnDisposeCallback(()=>void this.logger.dispose())}update(M){this.logger.dispose(); this.logger=M}Z(M){this.logger.Z(M)}B(M,W){this.logger.B(M,W)}LT(M){this.logger.LT(M)}D(M){this.logger.D(M)}W(M,W){this.logger.W(M,W)}V(){this.logger.V()}S(M,W,b,T){return this.logger.S(M,W,b,T)}gK(M){this.logger.gK(M)}C(M){this.logger.C(M)}X(M){this.logger.X(M)}A(M){this.logger.A(M)}},OqQ=class extends g.gz{constructor(M,W){super();this.callback=M;this.V=W;this.Z=-W;this.addOnDisposeCallback(()=>void clearTimeout(this.timer))}},Php=class extends VF{constructor(M,W){super(); this.metrics=M;this.uy=W}A(M){this.metrics.RW.Wa(M,this.uy)}Z(M){this.metrics.eventCount.Z(M,this.uy)}B(M,W){this.metrics.xc.Wa(W,M,this.uy)}LT(M){this.metrics.errorCount.Z(M,this.uy)}S(M,W,b,T){const q=iN(),X=G=>{if(!this.ST()){var V=iN()-q;this.metrics.q2.Wa(V,M,b,G,W,this.uy)}}; T.then(()=>void X(0),G=>void X(G instanceof KI?G.code:-1)); return T}gK(M){this.metrics.Z0.Z(M,this.uy)}C(M){this.metrics.V6.Z(M,this.uy)}X(M){this.metrics.gb.Z(M,this.uy)}D(M){this.metrics.payloadSize.Wa(M,this.uy)}W(M,W){this.metrics.Mx.Wa(W,M,this.uy)}},ntP=class extends Php{constructor(M,W=[]){const b={uy:M.uy||"_",BN:M.BN||[],Re:M.Re|0,OC:M.OC,PU:M.PU||(()=>{}), Op:M.Op||((q,X)=>a3q(q,X,b.PU,b.OC))},T=b.Op("53",b.BN.concat(W)); super({RW:new GQS(T),errorCount:new DdL(T),eventCount:new J8p(T),xc:new BZs(T),q2:new VWQ(T),Z0:new aCp(T),V6:new Ekt(T),gb:new nkG(T),payloadSize:new y8q(T),Mx:new UdJ(T)},b.uy);this.k9={Ze:()=>this.options.BN.concat(this.yz).sort((q,X)=>q-X)}; this.options=b;this.service=T;this.sY=!M.Op;this.O=new OqQ(()=>void this.service.A(),b.Re); this.addOnDisposeCallback(()=>{this.O.dispose();this.sY&&this.service.dispose()}); g.v$(this.yz=W.slice())}V(){Etp(this.O)}};var du=class extends JB{constructor(M){super(M)}};var oi=class extends JB{constructor(M){super(M)}};var gu=class extends JB{constructor(M){super(M,0,gu.messageId)}},l3P=SL(gu),erl=function(M){return Ey(W=>W instanceof M&&!g5(W))}(gu); gu.messageId="bfkj";var ag=class extends JB{constructor(M){super(M)}};var ddL=class extends JB{constructor(M){super(M)}},okP=SL(ddL);g.XC=class{constructor(){this.promise=new Promise((M,W)=>{this.resolve=M;this.reject=W})}};var TR=class extends g.gz{constructor(M){super();this.V=Math.floor(Math.random()*200);this.Z=new ddL;let W;if("challenge"in M&&erl(M.challenge)){W=Mx(M.challenge,4,void 0,Y4);var b=Mx(M.challenge,5,void 0,Y4);Mx(M.challenge,7,void 0,Y4)&&(this.Z=okP(Mx(M.challenge,7,void 0,Y4)))}else({program:W,globalName:b}=M);this.addOnDisposeCallback(async()=>{const {d$:D}=await this.B;D?.()}); this.logger=S1(M.XG||{},this.Z);g.t(this,this.logger);const T=new g.XC;this.B=T.promise;this.logger.Z("t");const q=this.logger.share(),X=new Gz(q,"t"),G=(D,a,E,n)=>{if(!this.logger.ST()){var C="k";a?C="h":E&&(C="u");C!=="k"?n!==0&&(this.logger.Z(C),this.logger.B(C,D)):this.V<=0?(this.logger.Z(C),this.logger.B(C,D),this.V=Math.floor(Math.random()*200)):this.V--}},V=(D,a,E,n)=>{Promise.resolve().then(()=>{X.done(); q.V();q.dispose();T.resolve({QX:D,d$:a,yK:E,Y2s:n})})},J=[(D,a)=>{this.logger.B(D,a)}, D=>{this.logger.LT(D)}, D=>{this.logger.D(D)}, (D,a)=>{this.logger.W(D,a)}]; if(!g.yp[b])throw this.logger.LT(25),Error("EGOU");if(!g.yp[b].a)throw this.logger.LT(26),Error("ELIU");try{const D=g.yp[b].a;b=[];const a=[];var B=Ej(this.Z);for(let C=0;C{})}catch(D){throw this.logger.LT(28),D; }}snapshot(M){if(this.ST())throw Error("Already disposed");this.logger.Z("n");const W=this.logger.share();return this.B.then(({QX:b})=>new Promise(T=>{const q=new Gz(W,"n");b(X=>{q.done();W.A(X.length);W.V();W.dispose();T(X)},[M.uG, M.f0,M.ye,M.K0])}))}tM(M){if(this.ST())throw Error("Already disposed"); this.logger.Z("n");const W=hJ(this.logger,()=>this.A([M.uG,M.f0,M.ye,M.K0]),"n"); this.logger.A(W.length);this.logger.V();return W}NR(M){this.B.then(({yK:W})=>{W?.(M)})}zG(){return this.logger.share()}};var O0=class{constructor(){this.V={};this.Z=null}};var Qs=class extends JB{constructor(M){super(M)}};var wu=class extends JB{constructor(M){super(M)}};var $d=class{constructor(M,W,b){this.client=M;this.requestKey=W;this.Z=b}RX(M){return YN(this,M,new uN,0)}};var CI=class extends g.gz{constructor(M){super();this.options=M;this.C=new g.XC;this.cI=this.C.promise;this.S=new g.XC;this.D=1;this.V=new g.XC;this.A=[];this.isPaused=!1;this.fm=M.fm||(()=>{}); this.logger=new Snp(S1(M.XG||{}));Hrp(this,M.q3,M.kmz,M.kxX,M.V6K,{...c8L,...(M.EH||{})});this.addOnDisposeCallback(()=>void f3q(this))}async snapshot(M){if(this.ST())throw Error("Already disposed"); this.B||this.W||await this.S.promise;if(this.B)return await this.B.snapshot(M);throw this.W;}pause(){this.ST()||this.isPaused||(this.isPaused=!0,this.Z&&this.Z.pause())}resume(){!this.ST()&&this.isPaused&&(this.isPaused=!1,this.Z&&this.Z.resume())}async checkForRefresh(){if(this.ST())throw Error("Already disposed");if(this.Z){var M=this.Z;M.isExpired()?(jm(M),M.LP(0),M=!0):M=!1;M&&await this.V.promise}else await this.V.promise}NR(M){this.B?.NR?.(M)}handleError(M){this.ST()||(this.W=M,this.S.resolve(), this.options.Nx?.(M))}zG(){return this.logger.share()}},c8L={C2:432E5,b0:3E5,oF:10,oz:1E4,Ht:3E4,UK:3E4,ue:6E4,pY:1E3,Pt:6E4,lB:6E5,Im:.25,Ax:2,maxAttempts:10},bE=class{constructor(M,W,b){this.endTimeMs=0;this.Z=null;this.isPaused=!1;this.tick=()=>{if(!this.isPaused){var T=this.endTimeMs-Date.now();T<=this.B?(this.Z=null,this.LP(0)):this.Z=setTimeout(this.tick,Math.min(T,this.b0))}}; this.b0=W;this.B=b;this.promise=new Promise(T=>{this.LP=T}); xPP(this,M)}pause(){this.isPaused||(this.isPaused=!0,jm(this))}resume(){this.isPaused&&(this.isPaused=!1,this.tick())}V(){jm(this);this.endTimeMs=0;this.isPaused=!1;this.LP(1)}isExpired(){return Date.now()>this.endTimeMs}};var FRa=Math.imul??((M,W)=>M*W|0),JH=[196, 200,224,18],aX=class{constructor(M,W=0,b=[]){this.maxItems=M;this.Z=W;this.V=b}Ba(){return String(this.Z)+","+this.V.join()}KK(M,W){let b=void 0;if(this.V[this.Z]!==M){const T=this.V.indexOf(M);T!==-1?(this.V.splice(T,1),Tirt(this.index,Bc(M),W,b,T),"W"):"u"; this.logger.X(q)}V(M,W){const [b,T]=this.index?hJ(this.logger,()=>hBL(Bc(M),W),"R"):["u"]; this.logger.C(b);return T}};var u$G={toString:function(M){let W=[],b=0;M-=-2147483648;W[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(M%52);for(M=Math.floor(M/52);M>0;)W[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(M%62),M=Math.floor(M/62);return W.join("")}};var JS=class extends g.gz{constructor(M){super();this.logger=M;this.A=new g.XC}uI(M,W){const b=this.B(M);W?.(b);return hJ(this.logger,()=>g.Id(b,2),this.V)}Xt(M,W,b){return hJ(this.logger,()=>W?this.uI(M,b):this.B(M,b),this.Z)}},mz=class extends JS{constructor(M,W,b,T){super(M); this.S=W;this.W=b;this.Z="m";this.V="x";this.C=0;nI(this,T)}B(M,W){this.logger.Z(this.Z);++this.C>=this.W&&this.A.resolve();const b=M();M=hJ(this.logger,()=>this.S(b),"C"); if(M===void 0)throw new Do(17,"YNJ:Undefined");if(!(M instanceof Uint8Array))throw new Do(18,"ODM:Invalid");W?.(M);return M}},ott=class extends JS{constructor(M,W,b){super(M);this.S=W;this.Z="f";this.V="z";nI(this,b)}B(){return this.S}},dPQ=class extends JS{constructor(M,W,b){super(M);this.S=W;this.Z="w";this.V="z";nI(this,b)}B(){return hJ(this.logger,()=>Rd(this.S),"d")}uI(){return this.S}},w5L=class extends JS{constructor(M,W){super(M); this.error=W;this.Z="e";this.V="y"}B(){if(this.S)return this.S;this.S=UW(this,M=>"_"+SSs(M)); return UW(this,M=>M)}},ZF=class extends JS{constructor(M,W,b){super(M); this.S=W;this.clientState=b;this.Z="S";this.V="q"}B(){var M=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],b=W.concat([this.S&255,this.clientState],[M>>24&255,M>>16&255,M>>8&255,M&255]);M=new Uint8Array(2+b.length);M[0]=34;M[1]=b.length;M.set(b,2);b=M.subarray(2);W=W.length;for(let T=W;T{}); this.BZ=M.BZ||!1;if(syG(M)){const T=this.Rc;this.C=()=>RBS(T).catch(q=>{this.V=q=this.reportError(new Do(this.Z?20:32,"TRG:Disposed",q));this.Z?.dispose();this.Z=void 0;this.A.reject(q)}); rWL(T,()=>void vc(this)); T.D===2&&vc(this)}else this.C=M.izs,vc(this);const W=this.logger.share();W.Z("o");const b=new Gz(W,"o");this.A.promise.then(()=>{b.done();W.V();W.dispose()},()=>void W.dispose()); this.addOnDisposeCallback(()=>{this.Z?(this.Z.dispose(),this.Z=void 0):this.V?this.logger.V():(this.V=this.reportError(new Do(32,"TNP:Disposed")),this.logger.V(),this.A.reject(this.V))}); g.t(this,this.logger)}v2(){return this.A.promise}B(M){return lE(this,{...M},!1)}uI(M){return lE(this,{...M},!0)}z_(M){if(!(M>150))try{this.cache=new Qyt(M,this.logger)}catch(W){this.reportError(new Do(22,"GBJ:init",W))}}reportError(M){this.logger.LT(M.code);this.onError(M);return M}},syG=function(M){return Ey(W=>{if(!y2S(W))return!1;for(const [b,T]of Object.entries(M)){const q=b,X=T;if(!(q in W)){if(X.ghY===!0)continue;return!1}if(!X(W[q]))return!1}return!0})}({Rc:function(M){return Ey(W=>W instanceof M)}(CI)},"");var w9p=class{constructor(){var M=g.QI();this.V=M;g.Xp(M,"/client_streamz/youtube/aba/gac",y1("type"),y1("sequence"))}Z(M,W){g.JJ(this.V,"/client_streamz/youtube/aba/gac",M,W)}};var a$a=(new Date).getTime();var p9Q=class extends JB{constructor(M){super(M)}};var Yng=class{constructor(M,W,b){this.Hy=M;this.x8=W;this.metadata=b}getMetadata(){return this.metadata}};var p5q=class{constructor(M,W={}){this.Gn=M;this.metadata=W;this.status=null}getMetadata(){return this.metadata}getStatus(){return this.status}};var $2L=class{constructor(M,W,b,T,q){this.name=M;this.methodType="unary";this.requestType=W;this.responseType=b;this.Z=T;this.V=q}C(M,W={}){return new Yng(M,this,W)}getName(){return this.name}};var MsJ=new $2L("/google.internal.waa.v1.Waa/Create",Qs,p9Q,M=>M.Ba(),SL(p9Q));var W9y=class extends JB{constructor(M){super(M)}};var tUs=new $2L("/google.internal.waa.v1.Waa/GenerateIT",wu,W9y,M=>M.Ba(),SL(W9y));var UIy=new Set(["SAPISIDHASH","APISIDHASH"]);var Wxs=class extends JB{constructor(M){super(M)}getValue(){const M=n$(this,2);if(Array.isArray(M)||M instanceof JB)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return IE(this,2)}};var M5a=SL(class extends JB{constructor(M){super(M)}getMessage(){return Mx(this,2)}});var Kxt=class{constructor(M,W){this.V=[];this.A=[];this.S=[];this.B=[];this.Z=[];this.C=M.xf;this.W=W;this.xhr=M.xhr;this.C&&$Ig(this)}M9(M,W){M==="data"?this.V.push(W):M==="metadata"?this.A.push(W):M==="status"?this.S.push(W):M==="end"?this.B.push(W):M==="error"&&this.Z.push(W)}removeListener(M,W){M==="data"?FC(this.V,W):M==="metadata"?FC(this.A,W):M==="status"?FC(this.S,W):M==="end"?FC(this.B,W):M==="error"&&FC(this.Z,W);return this}cancel(){this.xhr.abort()}},bnP=class extends Error{constructor(){super(); this.name="AsyncStack";Object.setPrototypeOf(this,new.target.prototype)}};g.rG(g.iE,KS);g.iE.prototype.Z=function(){const M=new hH(this.A,this.B);this.V&&M.setCredentialsMode(this.V);return M}; g.iE.prototype.setCredentialsMode=function(M){this.V=M}; g.rG(hH,g.Uo);g.L=hH.prototype;g.L.open=function(M,W){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.O=M;this.gK=W;this.readyState=1;zR(this)}; g.L.send=function(M){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.D.signal.aborted)throw this.abort(),Error("Request was aborted.");this.Z=!0;const W={headers:this.X,method:this.O,credentials:this.S,cache:void 0,signal:this.D.signal};M&&(W.body=M);(this.Zs||g.yp).fetch(new Request(this.gK,W)).then(this.RR.bind(this),this.kQ.bind(this))}; g.L.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.D.abort("Request was aborted.");this.B&&this.B.cancel("Request was aborted.").catch(()=>{}); this.readyState>=1&&this.Z&&this.readyState!=4&&(this.Z=!1,uE(this));this.readyState=0}; g.L.RR=function(M){if(this.Z&&(this.A=M,this.V||(this.status=this.A.status,this.statusText=this.A.statusText,this.V=M.headers,this.readyState=2,zR(this)),this.Z&&(this.readyState=3,zR(this),this.Z)))if(this.responseType==="arraybuffer")M.arrayBuffer().then(this.sK.bind(this),this.kQ.bind(this));else if(typeof g.yp.ReadableStream!=="undefined"&&"body"in M){this.B=M.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.W=new TextDecoder;AH(this)}else M.text().then(this.tq.bind(this),this.kQ.bind(this))}; g.L.gY=function(M){if(this.Z){if(this.C&&M.value)this.response.push(M.value);else if(!this.C){var W=M.value?M.value:new Uint8Array(0);if(W=this.W.decode(W,{stream:!M.done}))this.response=this.responseText+=W}M.done?uE(this):zR(this);this.readyState==3&&AH(this)}}; g.L.tq=function(M){this.Z&&(this.response=this.responseText=M,uE(this))}; g.L.sK=function(M){this.Z&&(this.response=M,uE(this))}; g.L.kQ=function(){this.Z&&uE(this)}; g.L.setRequestHeader=function(M,W){this.X.append(M,W)}; g.L.getResponseHeader=function(M){return this.V?this.V.get(M.toLowerCase())||"":""}; g.L.getAllResponseHeaders=function(){if(!this.V)return"";const M=[],W=this.V.entries();for(var b=W.next();!b.done;)b=b.value,M.push(b[0]+": "+b[1]),b=W.next();return M.join("\r\n")}; g.L.setCredentialsMode=function(M){this.S=M}; Object.defineProperty(hH.prototype,"withCredentials",{get:function(){return this.S==="include"}, set:function(M){this.setCredentialsMode(M?"include":"same-origin")}});g.Sm.prototype.toString=function(){const M=[];var W=this.S;W&&M.push(gj(W,bst,!0),":");var b=this.Z;if(b||W=="file")M.push("//"),(W=this.D)&&M.push(gj(W,bst,!0),"@"),M.push(g.ju(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b=this.B,b!=null&&M.push(":",String(b));if(b=this.V)this.Z&&b.charAt(0)!="/"&&M.push("/"),M.push(gj(b,b.charAt(0)=="/"?T7S:q_P,!0));(b=this.A.toString())&&M.push("?",b);(b=this.C)&&M.push("#",gj(b,Xvg));return M.join("")}; g.Sm.prototype.resolve=function(M){const W=this.clone();let b=!!M.S;b?g.OW(W,M.S):b=!!M.D;b?W.D=M.D:b=!!M.Z;b?g.Pc(W,M.Z):b=M.B!=null;var T=M.V;if(b)g.em(W,M.B);else if(b=!!M.V){if(T.charAt(0)!="/")if(this.Z&&!this.V)T="/"+T;else{var q=W.V.lastIndexOf("/");q!=-1&&(T=W.V.slice(0,q+1)+T)}q=T;if(q==".."||q==".")T="";else if(g.qR(q,"./")||g.qR(q,"/.")){T=WX(q,"/");q=q.split("/");const X=[];for(let G=0;G1||X.length==1&&X[0]!= "")&&X.pop(),T&&G==q.length&&X.push("")):(X.push(V),T=!0)}T=X.join("/")}else T=q}b?W.V=T:b=M.A.toString()!=="";b?dj(W,M.A.clone()):b=!!M.C;b&&(W.C=M.C);return W}; g.Sm.prototype.clone=function(){return new g.Sm(this)}; var bst=/[#\/\?@]/g,q_P=/[#\?:]/g,T7S=/[#\?]/g,V5s=/[#\?@]/g,Xvg=/#/g;g.L=Q0.prototype;g.L.add=function(M,W){pI(this);this.B=null;M=Yd(this,M);let b=this.Z.get(M);b||this.Z.set(M,b=[]);b.push(W);this.V=this.V+1;return this}; g.L.remove=function(M){pI(this);M=Yd(this,M);return this.Z.has(M)?(this.B=null,this.V=this.V-this.Z.get(M).length,this.Z.delete(M)):!1}; g.L.clear=function(){this.Z=this.B=null;this.V=0}; g.L.isEmpty=function(){pI(this);return this.V==0}; g.L.forEach=function(M,W){pI(this);this.Z.forEach(function(b,T){b.forEach(function(q){M.call(W,q,T,this)},this)},this)}; g.L.Z4=function(){pI(this);const M=Array.from(this.Z.values()),W=Array.from(this.Z.keys()),b=[];for(let T=0;T0?String(M[0]):W}; g.L.toString=function(){if(this.B)return this.B;if(!this.Z)return"";const M=[],W=Array.from(this.Z.keys());for(let T=0;T>>3;X.B!=1&&X.B!=2&&X.B!=15&&Gw(X,G,V,"unexpected tag");X.Z=1;X.V=0;X.A=0} function b(J){X.A++;X.A==5&&J&240&&Gw(X,G,V,"message length too long");X.V|=(J&127)<<(X.A-1)*7;J&128||(X.Z=2,X.D=0,typeof Uint8Array!=="undefined"?X.S=new Uint8Array(X.V):X.S=Array(X.V),X.V==0&&q())} function T(J){X.S[X.D++]=J;X.D==X.V&&q()} function q(){if(X.B<15){const J={};J[X.B]=X.S;X.W.push(J)}X.Z=0} const X=this,G=M instanceof Array?M:new Uint8Array(M);let V=0;for(;V0?M:null};VQ.prototype.isInputValid=function(){return this.Z===null}; VQ.prototype.bl=function(){return this.Z}; VQ.prototype.qz=function(){return!1}; VQ.prototype.parse=function(M){this.Z!==null&&Jf(this,M,"stream already broken");let W=null;try{{var b=this.B;b.B||XO(b,M,"stream already broken");b.Z+=M;const X=Math.floor(b.Z.length/4);if(X==0)var T=null;else{try{var q=fn(b.Z.slice(0,X*4))}catch(G){XO(b,b.Z,G.message)}b.V+=X*4;b.Z=b.Z.slice(X*4);T=q}}W=T===null?null:this.A.parse(T)}catch(X){Jf(this,M,X.message)}this.V+=M.length;return W};g.L=DX.prototype;g.L.isInputValid=function(){return this.S!=3}; g.L.bl=function(){return this.X}; g.L.done=function(){return this.S===2}; g.L.qz=function(){return!1}; g.L.parse=function(M){function W(){for(;a0;)if(n=M[a++],X.D===4?X.D=0:X.D++,!n)break a;if(n==='"'&&!X.W){X.Z=T();break}if(n==="\\"&&!X.W&&(X.W=!0,n=M[a++], !n))break;if(X.W)if(X.W=!1,n==="u"&&(X.D=1),n=M[a++])continue;else break;V.lastIndex=a;n=V.exec(M);if(!n){a=M.length+1;break}a=n.index+1;n=M[n.index];if(!n)break}X.B+=a-C;continue;case 9:if(!n)continue;n==="r"?X.Z=10:aP(X,M,a);continue;case 10:if(!n)continue;n==="u"?X.Z=11:aP(X,M,a);continue;case 11:if(!n)continue;n==="e"?X.Z=T():aP(X,M,a);continue;case 12:if(!n)continue;n==="a"?X.Z=13:aP(X,M,a);continue;case 13:if(!n)continue;n==="l"?X.Z=14:aP(X,M,a);continue;case 14:if(!n)continue;n==="s"?X.Z=15: aP(X,M,a);continue;case 15:if(!n)continue;n==="e"?X.Z=T():aP(X,M,a);continue;case 16:if(!n)continue;n==="u"?X.Z=17:aP(X,M,a);continue;case 17:if(!n)continue;n==="l"?X.Z=18:aP(X,M,a);continue;case 18:if(!n)continue;n==="l"?X.Z=T():aP(X,M,a);continue;case 19:n==="."?X.Z=20:aP(X,M,a);continue;case 20:if("0123456789.eE+-".indexOf(n)!==-1)continue;else a--,X.B--,X.Z=T();continue;default:aP(X,M,a)}}} function T(){const n=G.pop();return n!=null?n:1} function q(n){X.V>1||(n||(n=D===-1?X.A+M.substring(B,a):M.substring(D,a)),X.gK?X.C.push(n):X.C.push(JSON.parse(n)),D=a)} const X=this,G=X.O,V=X.Zs,J=M.length;let B=0,D=-1,a=0;for(;a0?(E=X.C,X.C=[],E):null}return null};E9.prototype.isInputValid=function(){return this.S===null}; E9.prototype.bl=function(){return this.S}; E9.prototype.qz=function(){return!1}; E9.prototype.parse=function(M){function W(J){X.V=6;X.S="The stream is broken @"+X.Z+"/"+G+". Error: "+J+". With input:\n";throw Error(X.S);} function b(){X.B=new DX({NGY:!0,EA:!0})} function T(J){if(J)for(let B=0;B1)&&W("extra status: "+J);X.C=!0;const B={};B[2]=J[0];X.A.push(B)}} const X=this;let G=0;for(;G0?(M=X.A,X.A=[],M):null};var C2l=class{constructor(M){this.Z=M;this.V=null;this.S=this.B=0;this.X=!1;this.A=this.W=this.C=null;this.D=new g.Tw(this);this.D.listen(this.Z,"readystatechange",this.gK)}uE(){return this.Z}getStatus(){return this.S}gK(M){M=M.target;try{if(M==this.Z)a:{const X=g.NO(this.Z);var W=this.Z.V,b=this.Z.getStatus();const G=g.Ri(this.Z);M=[];if(g.ru(this.Z)instanceof Array){const V=g.ru(this.Z);V.length>0&&V[0]instanceof Uint8Array&&(this.X=!0,M=V)}if(!(X<3||X==3&&!G&&M.length==0))if(b=b==200||b==206,X== 4&&(W==8?nY(this,7):W==7?nY(this,8):b||nY(this,3)),this.V||(this.V=DIl(this.Z),this.V==null&&nY(this,5)),this.S>2)yQ(this);else{if(M.length>this.B){const V=M.length;W=[];try{if(this.V.qz())for(var T=0;Tthis.B){T=G.slice(this.B);this.B=G.length;try{const V=this.V.parse(T);V!=null&&this.A&&this.A(V)}catch(V){nY(this,5);yQ(this);break a}}X==4?(G.length!=0||this.X?nY(this,2):nY(this,4),yQ(this)):nY(this,1)}}}catch(X){nY(this,6),yQ(this)}}};var kNp=class{constructor(M){M=this.B=M;var W=(0,g.IJ)(this.A,this);M.A=W;M=this.B;W=(0,g.IJ)(this.S,this);M.W=W;this.V={};this.Z={}}M9(M,W){let b=this.V[M];b||(b=[],this.V[M]=b);b.push(W)}addListener(M,W){this.M9(M,W);return this}removeListener(M,W){const b=this.V[M];b&&g.X9(b,W);(M=this.Z[M])&&g.X9(M,W);return this}once(M,W){let b=this.Z[M];b||(b=[],this.Z[M]=b);b.push(W);return this}A(M){var W=this.V.data;W&&U9(M,W);(W=this.Z.data)&&U9(M,W);this.Z.data=[]}S(){switch(this.B.getStatus()){case 1:CY(this, "readable");break;case 5:case 6:case 4:case 7:case 3:CY(this,"error");break;case 8:CY(this,"close");break;case 2:CY(this,"end")}}};var v4Q=class{constructor(){var M={format:"jspb"};this.rH=M.rH||g.Ct("suppressCorsPreflight",M)||!1;this.withCredentials=M.withCredentials||g.Ct("withCredentials",M)||!1;this.l_=M.l_||[];this.aF=M.aF||[];this.Ao=M.Ao;this.Z=M.oSX||!1}serverStreaming(M,W,b,T){const q=M.substring(0,M.length-T.name.length);return acJ(X=>{const G=X.x8;var V=X.getMetadata();const J=kc(this,!1);V=KY(this,V,J,q+G.getName());const B=vp(J,G.V,!0);X=G.Z(X.Hy);J.send(V,"POST",X);return B},this.l_).call(this,T.C(W,b))}};mV.prototype.create=function(M,W,b){return pS(this.Z,this.V+"/$rpc/google.internal.waa.v1.Waa/Create",M,W||{},MsJ,b)};var BL=class{constructor(M,W){this.mP=3;this.wv=M;this.defaultValue=W;this.y7="bool"}},DS=class{constructor(M,W){this.mP=3;this.wv=M;this.defaultValue=W;this.y7="double"}};var jUt,f4P,Zfq,hJt,J0J,Efq,B7S,IIS,D2y,a9G,ElL,nll,y0s,U2a,koG,K9G,vlG,m2a,Zeq,cn,vTy,m3q,L9Q,l9a,uJG,tsg,mIS,KMq,ZsG,iXL,I9P,N7L,Hss,f9L,R_g,r0P,x2q,F9t,isy,au,InJ,cm,X0t,hOt,h_Q,A0p,z_t,wJQ,RHL,Lit;jUt=new BL(45759580,!1);f4P=new BL(45756201,!1);g.Gog=new BL(45760530,!1);g.VsJ=new BL(45757878,!1);Zfq=new BL(45749396,!1);hJt=new BL(45751227,!1);J0J=new BL(45751228,!1);Efq=new BL(45745123,!1);B7S=new BL(45742118,!1);IIS=new BL(45742119,!1);D2y=new BL(45754339,!1);a9G=new BL(45757087,!1); ElL=new BL(45756446,!1);nll=new BL(45739196,!1);y0s=new BL(45739198,!1);U2a=new BL(45739197,!1);g.CMQ=new class{constructor(M,W,b,T){this.mP=M;this.wv=W;this.defaultValue=T;this.y7="int"}}(3,45750947,"drop_large_caption_max_bytes_per_second",Wb("0"));koG=new DS(45746966,0);K9G=new DS(45746967,0);vlG=new DS(45737488,0);m2a=new DS(45737489,0);Zeq=new BL(45732791,!0);cn=new BL(45728572,!1);vTy=new BL(45737482,!1);m3q=new DS(45741773,0);L9Q=new BL(45754595,!1);l9a=new BL(45731083,!1); uJG=new BL(45728553,!1);tsg=new BL(45734191,!1);mIS=new BL(45745610,!1);KMq=new BL(45756619,!1);ZsG=new BL(45758290,!1);iXL=new BL(45735523,!1);I9P=new DS(45735428,4E3);N7L=new BL(45748009,!1);Hss=new BL(45752604,!1);f9L=new BL(45755066,!1);R_g=new BL(45735462,!1);r0P=new BL(45751943,!1);x2q=new BL(45751944,!1);F9t=new BL(45751945,!1);isy=new BL(45756939,!1);au=new BL(45727949,!1);InJ=new BL(45752871,!1);cm=new BL(45728181,!1);X0t=new BL(45746180,!1);hOt=new BL(45756543,!1);h_Q=new BL(45756620,!1); A0p=new BL(45740357,!1);z_t=new BL(45755760,!1);wJQ=new BL(45760017,!1);RHL=new BL(45732775,!1);g.u2y=new BL(45734776,!1);Lit=new BL(45755924,!1);var AQL=new DS(45756872,0),Fqg=new DS(45725542,0),h5p=new DS(45743228,0),x3S=new DS(45725543,0),z5P=new DS(45757426,0),fPg=new DS(45725539,0),uQs=new DS(45757750,0),rQt=new DS(45725541,0),Skt=new DS(45757427,0),R5p=new DS(45725540,0),HkJ=new DS(45725538,0),iky=new DS(45741339,0),Okt=new DS(45757957,0),Pjt=new DS(45758467,0);var S_y=class{constructor(M){this.Z=M}};var OsL=class{constructor(M){this.Z=M}};var lT="://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(" "),Lxa=/\bocr\b/;var t5a=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var PMp=class extends JB{constructor(M){super(M,500)}};var e_q=class extends JB{constructor(M){super(M,500)}};var Zna=class extends JB{constructor(M){super(M)}getName(){return Mx(this,1)}getOptions(){return ex(this,e_q,3)}clearOptions(){return C$(this,3)}};var N5J=function(M){return W=>{W=JSON.parse(W);if(!Array.isArray(W))throw Error("Expected jspb data to be an array, got "+vy(W)+": "+W);W[Q6]|=34;return new M(W)}}(class extends JB{constructor(M){super(M)}getName(){return Mx(this,1)}getOptions(){return ex(this,PMp,3)}clearOptions(){return C$(this,3)}fK(){return Wj(this,6)}eW(M){VJ(this,6,M)}});var ZX=Symbol();var Nr=Symbol();var Hp=!1,xIy=1,RP=Symbol("SIGNAL");var Rmp={version:0,sqT:0,nZ:!1,producers:void 0,Y1T:void 0,JP:void 0,uPK:void 0,EhK:!1,Xr0:!1,ONT:!1,kind:"unknown",JyK:()=>!1, Gxp:()=>{}, Ln:()=>{}, QgK:()=>{}, BG:function(M,W){return Object.is(M,W)}, value:void 0,kind:"signal"};var iT=class extends g.Uo{constructor(M){super();this.S=this.V=0;this.TV=M??{N1:(W,b)=>setTimeout(W,b), Oh:W=>{clearTimeout(W)}}; this.Z=window.navigator?.onLine??!0;this.B=async()=>{await hf(this)}; window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.S||this.Le()}dispose(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.TV.Oh(this.S);delete iT.instance}tj(){return this.Z}Le(){this.S=this.TV.N1(async()=>{this.Z?window.navigator?.onLine||await hf(this):await hf(this);this.Le()},3E4)}};var I4L=iz(class extends JB{constructor(M){super(M)}V(){return Wj(this,5)}},[0,uH,BJt,xM,uH,-2,xM,r3]);var ExL=class{constructor(){this.data=[];this.Z=-1}set(M,W=!0){0<=M&&M<52&&Number.isInteger(M)&&this.data[M]!==W&&(this.data[M]=W,this.Z=-1)}get(M){return!!this.data[M]}};var zw;g.rG(g.O9,g.gz);g.L=g.O9.prototype;g.L.start=function(){this.stop();this.A=!1;const M=Pp(this),W=eO(this);M&&!W&&this.V.mozRequestAnimationFrame?(this.Z=g.Xr(this.V,"MozBeforePaint",this.B),this.V.mozRequestAnimationFrame(null),this.A=!0):this.Z=M&&W?M.call(this.V,this.B):this.V.setTimeout(QJq(this.B),20)}; g.L.stop=function(){if(this.isActive()){const M=Pp(this),W=eO(this);M&&!W&&this.V.mozRequestAnimationFrame?Eo(this.Z):M&&W?W.call(this.V,this.Z):this.V.clearTimeout(this.Z)}this.Z=null}; g.L.isActive=function(){return this.Z!=null}; g.L.uD=function(){this.A&&this.Z&&Eo(this.Z);this.Z=null;this.C.call(this.S,g.Hy())}; g.L.vY=function(){this.stop();g.O9.EO.vY.call(this)};g.rG(g.d9,g.gz);g.L=g.d9.prototype;g.L.oy=0;g.L.vY=function(){g.d9.EO.vY.call(this);this.stop();delete this.Z;delete this.V}; g.L.start=function(M){this.stop();this.oy=g.MO(this.B,M!==void 0?M:this.nT)}; g.L.Wr=function(M){this.isActive()||this.start(M)}; g.L.stop=function(){this.isActive()&&g.yp.clearTimeout(this.oy);this.oy=0}; g.L.n3=function(){this.isActive()&&g.oP(this)}; g.L.isActive=function(){return this.oy!=0}; g.L.nQ=function(){this.oy=0;this.Z&&this.Z.call(this.V)};g.El=class extends g.gz{constructor(M,W,b){super();this.S=b!=null?M.bind(b):M;this.nT=W;this.B=null;this.Z=!1;this.V=0;this.J5=null}A(M){this.B=arguments;this.J5||this.V?this.Z=!0:cp(this)}stop(){this.J5&&(g.yp.clearTimeout(this.J5),this.J5=null,this.Z=!1,this.B=null)}pause(){this.V++}resume(){this.V--;this.V||!this.Z||this.J5||(this.Z=!1,cp(this))}vY(){super.vY();this.stop()}};g.d2s=class{constructor(M,W){this.Z=M[g.yp.Symbol.iterator]();this.V=W}[Symbol.iterator](){return this}next(){const M=this.Z.next();return{value:M.done?void 0:this.V.call(void 0,M.value),done:M.done}}};g.rG(g.TH,g.Uo);g.L=g.TH.prototype;g.L.isPlaying=function(){return this.Z==1}; g.L.isPaused=function(){return this.Z==-1}; g.L.BU=function(){this.EJ("begin")}; g.L.pD=function(){this.EJ("end")}; g.L.onFinish=function(){this.EJ("finish")}; g.L.onStop=function(){this.EJ("stop")}; g.L.EJ=function(M){this.dispatchEvent(M)};var olq=tW(function(){const M=g.Gr("DIV");var W=g.bq?"-webkit":AW?"-moz":null;let b="transition:opacity 1s linear;";W&&(b+=W+"-transition:opacity 1s linear;");W=oPp({style:b});if(M.nodeType===1&&/^(script|style)$/i.test(M.tagName))throw Error("");M.innerHTML=oB(W);return g.zr(M.firstChild,"transition")!=""});g.rG(qw,g.TH);g.L=qw.prototype;g.L.play=function(){if(this.isPlaying())return!1;this.BU();this.EJ("play");this.startTime=g.Hy();this.Z=1;if(olq())return g.iq(this.V,this.C),this.B=g.MO(this.VK,void 0,this),!0;this.WR(!1);return!1}; g.L.VK=function(){g.we(this.V);hmL(this.V,this.W);g.iq(this.V,this.A);this.B=g.MO((0,g.IJ)(this.WR,this,!1),this.S*1E3)}; g.L.stop=function(){this.isPlaying()&&this.WR(!0)}; g.L.WR=function(M){g.iq(this.V,"transition","");g.yp.clearTimeout(this.B);g.iq(this.V,this.A);this.endTime=g.Hy();this.Z=0;if(M)this.onStop();else this.onFinish();this.pD()}; g.L.vY=function(){this.stop();qw.EO.vY.call(this)}; g.L.pause=function(){};var Ahp={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};jD("Element","attributes")||jD("Node","attributes");jD("Element","innerHTML")||jD("HTMLElement","innerHTML");jD("Node","nodeName");jD("Node","nodeType");jD("Node","parentNode");jD("Node","childNodes");jD("HTMLElement","style")||jD("Element","style");jD("HTMLStyleElement","sheet");var Ont=GH("getPropertyValue"),P2t=GH("setProperty");jD("Element","namespaceURI")||jD("Node","namespaceURI");var SyG={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var chL,sGL,o4L,dIQ,QdL;chL=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]");sGL=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.c0S=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.BN=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]");o4L=/^http:\/\/.*/;g.QVs=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");dIQ=/\s+/;QdL=/[\d\u06f0-\u06f9]/;Intl.NumberFormat.supportedLocalesOf(["es".replace("_","-")]);var aO=class{constructor(M){this.V=M}aE(){return new E4(this.V())}[Symbol.iterator](){return new nc(this.V())}Z(){return new nc(this.V())}},E4=class extends g.aK{constructor(M){super();this.V=M}next(){return this.V.next()}[Symbol.iterator](){return new nc(this.V)}Z(){return new nc(this.V)}},nc=class extends aO{constructor(M){super(()=>M); this.B=M}next(){return this.B.next()}};U4.prototype.clone=function(){return new U4(this.Z,this.W,this.B,this.S,this.A,this.C,this.V,this.D)}; U4.prototype.equals=function(M){return this.Z==M.Z&&this.W==M.W&&this.B==M.B&&this.S==M.S&&this.A==M.A&&this.C==M.C&&this.V==M.V&&this.D==M.D};vN.prototype.clone=function(){return new vN(this.start,this.end)};(function(){if(fnp){var M=/Windows NT ([0-9.]+)/;return(M=M.exec(g.Vd()))?M[1]:"0"}return w_?(M=/1[0|1][_.][0-9_.]+/,(M=M.exec(g.Vd()))?M[0].replace(/_/g,"."):"10"):g.mm?(M=/Android\s+([^\);]+)(\)|;)/,(M=M.exec(g.Vd()))?M[1]:""):Vga||J2q||B3Q?(M=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(M=M.exec(g.Vd()))?M[1].replace(/_/g,"."):""):""})();var g4p=function(){if(g.HR)return mH(/Firefox\/([0-9.]+)/);if(g.V8||g.Mo||g.KL)return l0;if(g.XH){if(Cy()||kU()){var M=mH(/CriOS\/([0-9.]+)/);if(M)return M}return mH(/Chrome\/([0-9.]+)/)}if(g.R_&&!Cy())return mH(/Version\/([0-9.]+)/);if(ks||KU){if(M=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vd()))return M[1]+"."+M[2]}else if(g.t2)return(M=mH(/Android\s+([0-9.]+)/))?M:mH(/Version\/([0-9.]+)/);return""}();g.rG(g.ls,g.gz);g.L=g.ls.prototype;g.L.subscribe=function(M,W,b){let T=this.V[M];T||(T=this.V[M]=[]);const q=this.C;this.Z[q]=M;this.Z[q+1]=W;this.Z[q+2]=b;this.C=q+3;T.push(q);return q}; g.L.unsubscribe=function(M,W,b){if(M=this.V[M]){const T=this.Z;if(M=M.find(function(q){return T[q+1]==W&&T[q+2]==b}))return this.Jj(M)}return!1}; g.L.Jj=function(M){const W=this.Z[M];if(W){const b=this.V[W];this.A!=0?(this.B.push(M),this.Z[M+1]=()=>{}):(b&&g.X9(b,M),delete this.Z[M],delete this.Z[M+1],delete this.Z[M+2])}return!!W}; g.L.publish=function(M,W){var b=this.V[M];if(b){const q=Array(arguments.length-1);var T=arguments.length;let X;for(X=1;X0&&this.A==0)for(;b=this.B.pop();)this.Jj(b)}}return X!=0}return!1}; g.L.clear=function(M){if(M){const W=this.V[M];W&&(W.forEach(this.Jj,this),delete this.V[M])}else this.Z.length=0,this.V={}}; g.L.vY=function(){g.ls.EO.vY.call(this);this.clear();this.B.length=0};g.tt.prototype.set=function(M,W){W===void 0?this.A6.remove(M):this.A6.set(M,g.ys(W))}; g.tt.prototype.get=function(M){let W;try{W=this.A6.get(M)}catch(b){return}if(W!==null)try{return JSON.parse(W)}catch(b){throw"Storage: Invalid value was encountered";}}; g.tt.prototype.remove=function(M){this.A6.remove(M)};g.rG(Zj,g.tt);Zj.prototype.set=function(M,W){Zj.EO.set.call(this,M,Nw(W))}; Zj.prototype.Vh=function(M){M=Zj.EO.get.call(this,M);if(M===void 0||M instanceof Object)return M;throw"Storage: Invalid value was encountered";}; Zj.prototype.get=function(M){if(M=this.Vh(M)){if(M=M.data,M===void 0)throw"Storage: Invalid value was encountered";}else M=void 0;return M};g.rG(HN,Zj);HN.prototype.set=function(M,W,b){if(W=Nw(W)){if(b){if(b=b.length)return g.Q$;var q=b.key(W++);if(M)return g.EG(q);q=b.getItem(q);if(typeof q!=="string")throw"Storage mechanism: Invalid value was encountered";return g.EG(q)}; return T}; g.L.clear=function(){is(this);this.Z.clear()}; g.L.key=function(M){is(this);return this.Z.key(M)};g.rG(ht,FT);g.rG(At,FT);g.rG(zH,x9);zH.prototype.set=function(M,W){this.V.set(this.Z+M,W)}; zH.prototype.get=function(M){return this.V.get(this.Z+M)}; zH.prototype.remove=function(M){this.V.remove(this.Z+M)}; zH.prototype.aE=function(M){const W=this.V[Symbol.iterator](),b=this,T=new g.aK;T.next=function(){var q=W.next();if(q.done)return q;for(q=q.value;q.slice(0,b.Z.length)!=b.Z;){q=W.next();if(q.done)return q;q=q.value}return g.EG(M?q.slice(b.Z.length):b.V.get(q))}; return T};SD.prototype.getValue=function(){return this.V}; SD.prototype.clone=function(){return new SD(this.Z,this.V)};var nH=class{constructor(M){this.Z=[];if(M)a:{let b;if(M instanceof nH){if(b=M.Z4(),M=M.vc(),this.Z.length<=0){var W=this.Z;for(let T=0;T0;){const T=M-1>>1;if(W[T].Z>b.Z)W[M]=W[T],M=T;else break}W[M]=b}remove(){var M=this.Z,W=M.length;const b=M[0];if(!(W<=0)){if(W==1)M.length=0;else{M[0]=M.pop();M=0;W=this.Z; const q=W.length,X=W[M];for(;M>1;){var T=M*2+1;const G=M*2+2;T=GX.Z)break;W[M]=W[T];M=T}W[M]=X}return b.getValue()}}vc(){const M=this.Z,W=[],b=M.length;for(let T=0;T>>16&65535|0;for(var X;b!==0;){X=b>2E3?2E3:b;b-=X;do q=q+W[T++]|0,M=M+q|0;while(--X);q%=65521;M%=65521}return q|M<<16|0};for(var HH={},yF,$7a=[],Ul=0;Ul<256;Ul++){yF=Ul;for(var Mdp=0;Mdp<8;Mdp++)yF=yF&1?3988292384^yF>>>1:yF>>>1;$7a[Ul]=yF}HH=function(M,W,b,T){b=T+b;for(M^=-1;T>>8^$7a[(M^W[T])&255];return M^-1};var Um={};Um={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 jR=[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],Jz=[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],qUQ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vH=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],m5=Array(576);cN(m5);var L1=Array(60);cN(L1);var VH=Array(512);cN(VH);var X7=Array(256);cN(X7);var GC=Array(29);cN(GC);var BH=Array(30);cN(BH);var Om,PH,eR,SR=!1;var i5;i5=[new F7(0,0,0,0,function(M,W){var b=65535;for(b>M.f4-5&&(b=M.f4-5);;){if(M.UB<=1){f1(M);if(M.UB===0&&W===0)return 1;if(M.UB===0)break}M.AT+=M.UB;M.UB=0;var T=M.Q3+b;if(M.AT===0||M.AT>=T)if(M.UB=M.AT-T,M.AT=T,l5(M,!1),M.HF.Yg===0)return 1;if(M.AT-M.Q3>=M.yp-262&&(l5(M,!1),M.HF.Yg===0))return 1}M.KK=0;if(W===4)return l5(M,!0),M.HF.Yg===0?3:4;M.AT>M.Q3&&l5(M,!1);return 1}), new F7(4,4,8,4,Rw),new F7(4,5,16,8,Rw),new F7(4,6,32,32,Rw),new F7(4,4,16,16,xi),new F7(8,16,32,32,xi),new F7(8,16,128,128,xi),new F7(8,32,128,256,xi),new F7(32,128,258,1024,xi),new F7(32,258,258,4096,xi)];var u5={};u5=function(){this.input=null;this.G9=this.Pg=this.Fj=0;this.output=null;this.ao=this.Yg=this.qC=0;this.msg="";this.state=null;this.Fw=2;this.BF=0};var dD=Object.prototype.toString; zC.prototype.push=function(M,W){var b=this.HF,T=this.options.chunkSize;if(this.ended)return!1;var q=W===~~W?W:W===!0?4:0;typeof M==="string"?b.input=oO(M):dD.call(M)==="[object ArrayBuffer]"?b.input=new Uint8Array(M):b.input=M;b.Fj=0;b.Pg=b.input.length;do{b.Yg===0&&(b.output=new dk.bM(T),b.qC=0,b.Yg=T);M=b3g(b,q);if(M!==1&&M!==0)return this.pD(M),this.ended=!0,!1;if(b.Yg===0||b.Pg===0&&(q===4||q===2))if(this.options.to==="string"){var X=dk.MB(b.output,b.qC);W=X;X=X.length;if(X<65537&&(W.subarray&& Y_G||!W.subarray))W=String.fromCharCode.apply(null,dk.MB(W,X));else{for(var G="",V=0;V0||b.Yg===0)&&M!==1);if(q===4)return(b=this.HF)&&b.state?(T=b.state.status,T!==42&&T!==69&&T!==73&&T!==91&&T!==103&&T!==113&&T!==666?M=C1(b,-2):(b.state=null,M=T===113?C1(b,-3):0)):M=-2,this.pD(M),this.ended=!0,M===0;q===2&&(this.pD(0),b.Yg=0);return!0}; zC.prototype.pD=function(M){M===0&&(this.result=this.options.to==="string"?this.chunks.join(""):dk.xD(this.chunks));this.chunks=[];this.err=M;this.msg=this.HF.msg};var gD=()=>Math.random().toString(36).substring(7).split("").join("."),QH=`@@redux/INIT${gD()}`,Gst=`@@redux/REPLACE${gD()}`;var wD=typeof Symbol==="function"&&Symbol.observable||"@@observable";var t4g=iz(class extends JB{constructor(M){super(M)}},[0,uH,dFp,FM,A2,FM,-1,zc,A2,zc,-1,uH,zc,dFp,iH,[0,A2,-3,zc],FM,-1,zc]);var S3l=-1433896220;var WNt=function(M,W){return(()=>{const b=new c2t(M,W);return()=>b})()}("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]]]');g.Y=class{constructor(M){this.name=M}};var iFt=new g.Y("adInfoDialogEndpoint");var JHG=new g.Y("adPingingEndpoint");var fyt=new g.Y("crossDeviceProgressCommand");var Ot=new g.Y("actionCompanionAdRenderer");var co=new g.Y("adActionInterstitialRenderer");var bCa=new g.Y("adDurationRemainingRenderer");var Ud=new g.Y("adHoverTextButtonRenderer");var uXS=new g.Y("adInfoDialogRenderer");var $$=new g.Y("adMessageRenderer");var Cz=new g.Y("adPreviewRenderer");var eK=new g.Y("adsEngagementPanelRenderer");var NaS=new g.Y("dismissablePanelTextPortraitImageRenderer");var G3=new g.Y("adsEngagementPanelSectionListViewModel");var TTG=new g.Y("flyoutCtaRenderer");var PK=new g.Y("imageCompanionAdRenderer");var d$=new g.Y("instreamAdPlayerOverlayRenderer");var apQ=new g.Y("instreamSurveyAdBackgroundImageRenderer");var yf=new g.Y("instreamSurveyAdPlayerOverlayRenderer");var Wd=new g.Y("instreamSurveyAdRenderer"),nz=new g.Y("instreamSurveyAdSingleSelectQuestionRenderer"),Ed=new g.Y("instreamSurveyAdMultiSelectQuestionRenderer"),CH=new g.Y("instreamSurveyAdAnswerRenderer"),qQp=new g.Y("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var $C=new g.Y("instreamVideoAdRenderer");var XUL=new g.Y("textOverlayAdContentRenderer"),jMs=new g.Y("enhancedTextOverlayAdContentRenderer"),Gft=new g.Y("imageOverlayAdContentRenderer");var ov=new g.Y("playerOverlayLayoutRenderer");var QN=new g.Y("videoInterstitialButtonedCenteredLayoutRenderer");var xeG=new g.Y("aboveFeedAdLayoutRenderer");var F0g=new g.Y("belowPlayerAdLayoutRenderer");var reL=new g.Y("inPlayerAdLayoutRenderer");var igt=new g.Y("inPlayerOrganicOverlayAdLayoutRenderer");var qc=new g.Y("playerBytesAdLayoutRenderer");var Ds=new g.Y("playerBytesSequenceItemAdLayoutRenderer");var Bd=new g.Y("playerUnderlayAdLayoutRenderer");var Mc=new g.Y("adIntroRenderer");var pd=new g.Y("playerBytesSequentialLayoutRenderer");var Kml=new g.Y("slidingTextPlayerOverlayRenderer");var b4=new g.Y("surveyTextInterstitialRenderer");var XP=new g.Y("videoAdTrackingRenderer");var lMt=new g.Y("videoInterstitialCenteredLayoutViewModel");var Vdt=new g.Y("simpleAdBadgeRenderer");var xa=new g.Y("skipAdRenderer"),JnL=new g.Y("skipButtonRenderer");var aW=new g.Y("adSlotRenderer");var Vf=new g.Y("squeezebackPlayerSidePanelRenderer");var BTt=new g.Y("timedPieCountdownRenderer");var BP=new g.Y("adAvatarViewModel");var DT=new g.Y("adBadgeViewModel");var az=new g.Y("adButtonViewModel");var D7a=new g.Y("adDetailsLineViewModel");var a8P=new g.Y("adDisclosureBannerViewModel");var E6L=new g.Y("adPodIndexViewModel");var n6s=new g.Y("imageBackgroundViewModel");var ynG=new g.Y("adGridCardCollectionViewModel");var U7L=new g.Y("adGridCardTextViewModel");var Cdp=new g.Y("adPreviewViewModel");var kfq=new g.Y("playerAdAvatarLockupCardButtonedViewModel");var KNt=new g.Y("skipAdButtonViewModel");var v6L=new g.Y("skipAdViewModel");var m7J=new g.Y("timedPieCountdownViewModel");var LNJ=new g.Y("visitAdvertiserLinkViewModel");var dn=new g.Y("bannerImageLayoutViewModel");var o6=new g.Y("topBannerImageTextIconButtonedLayoutViewModel");var cK=new g.Y("adsEngagementPanelLayoutViewModel");var Jr=new g.Y("displayUnderlayTextGridCardsLayoutViewModel");g.VL=new g.Y("browseEndpoint");var l8t=new g.Y("confirmDialogEndpoint");var k_=class{constructor(M){this.Z=M}},KH=class extends k_{get entityMetadata(){return this.Z.entityMetadata}set entityMetadata(M){this.Z.entityMetadata=M}};var tdp=class extends KH{V(){return[]}};var ZCq=new g.Y("commandContext");var I8p=class extends KH{V(){return[]}};var NTt=class extends KH{V(){return[]}};var xNt=new g.Y("rawColdConfigGroup");var rMl=new g.Y("rawHotConfigGroup");g.Sw=new g.Y("commandExecutorCommand");var HCP=class extends JB{constructor(M){super(M)}};var f8J={W8K:0,kan:1,tRv:32,VRz:61,c5Y:67,PwV:103,A5V:86,sgY:42,Ryn:60,XPn:62,TGX:73,y5p:76,prT:88,lgv:90,r5V:99,ZNT:98,Igs:100,hyn:102,xdX:41,MRp:69,fgY:70,S2v:71,hB:2,v4:27,ANDROID:3,D0:54,J9:14,XW:91,G6:55,YH:24,E0:20,nR:18,a9:21,bK:104,Q8:30,Z3:29,dL:28,E9v:101,s6:34,O0:36,FW:38,IOS:5,FV:15,dn:92,b2:40,Ub:25,XV:17,Ob:19,QP:64,uF:66,qH:26,tG:22,RA:33,vu:68,ya:35,ZN:53,s9:37,kP:39,rTz:7,xeK:57,MWY:43,SBk:59,ffT:93,gL:74,ivs:75,K8Y:85,L8k:65,o9z:80,meT:8,IfT:10,CkV:58,wPs:63,Hvs:72,q0:23,L$k:11, HNY:13,Yz:12,cTk:16,dds:56,BGK:31,dJ:77,d1:84,v_s:87,tQ:89,sb:94,E9:95};var Ci=class extends JB{constructor(M){super(M)}NF(){return Mx(this,3)}GW(){return Mx(this,5)}CD(M){return XK(this,5,M)}};var y7=class extends JB{constructor(M){super(M)}};var R1y=class extends JB{constructor(M){super(M)}};var tIt=class extends JB{constructor(M){super(M)}getDeviceId(){return Mx(this,6)}Ze(M){var W=lW(this,9,K3,3,!0);w5(W,M);return W[M]}getPlayerType(){return Wj(this,36)}setHomeGroupInfo(M){return gN(this,R1y,81,M)}clearLocationPlayabilityToken(){return C$(this,89)}};var IuJ=class extends JB{constructor(M){super(M)}getValue(){return Mx(this,Al(this,NzG,2))}},NzG=[2,3,4,5,6];var rnq=class extends JB{constructor(M){super(M)}setTrackingParams(M){return C$(this,1,sy(M,!1))}};var Z_J=class extends JB{constructor(M){super(M)}};var Ui=class extends JB{constructor(M){super(M)}Ze(M){var W=lW(this,5,vb,3,!0);w5(W,M);return W[M]}};var H_t=class extends JB{constructor(M){super(M)}getToken(){return TJ(this,2)}setToken(M){return XK(this,2,M)}};var MH=class extends JB{constructor(M){super(M)}setSafetyMode(M){return VJ(this,5,M)}};var $n=class extends JB{constructor(M){super(M)}B(M){return gN(this,tIt,1,M)}};var sI=new g.Y("thumbnailLandscapePortraitRenderer");g.x7t=new g.Y("changeEngagementPanelVisibilityAction");var DSa=new g.Y("continuationCommand");var FNQ=new g.Y("openPopupAction");g.ub=new g.Y("signalAction");g.vL=new g.Y("webCommandMetadata");var K8q=new g.Y("metadataBadgeRenderer");var BiG=new g.Y("signalServiceEndpoint");var xn=new g.Y("innertubeCommand");var iCG=new g.Y("loggingDirectives");var F1q={H7:"EMBEDDED_PLAYER_MODE_UNKNOWN",i4:"EMBEDDED_PLAYER_MODE_DEFAULT",LF:"EMBEDDED_PLAYER_MODE_PFP",KF:"EMBEDDED_PLAYER_MODE_PFL"};var AZy=new g.Y("channelThumbnailEndpoint");var nJL=new g.Y("embeddedPlayerErrorMessageRenderer");var GbL=new g.Y("embeddedPlayerOverlayVideoDetailsRenderer"),zMP=new g.Y("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),uDQ=new g.Y("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var aWG=new g.Y("embedsInfoPanelRenderer");var h1Q=class extends KH{V(){return[]}};var Anp=class extends KH{V(){return[]}};var z1t=class extends KH{V(){const M=[];this.Z.alternateChannel&&M.push(this.Z.alternateChannel);this.Z.alternateChannelList&&M.push(...this.Z.alternateChannelList);this.Z.oneofChannelEntity&&M.push(this.Z.oneofChannelEntity);return[...(new Set(M))]}};var uFP=class extends KH{V(){const M=[];this.Z.entryCollection&&M.push(this.Z.entryCollection);return[...(new Set(M))]}},OCg=class extends KH{V(){const M=[];this.Z.parentPlaylist&&M.push(this.Z.parentPlaylist);if(this.Z.entries)for(const W of this.Z.entries)M.push(...(new SQg(W)).V());return[...(new Set(M))]}},SQg=class extends k_{V(){const M=[];this.Z.video&&M.push(this.Z.video);return[...(new Set(M))]}};var Pdy=class extends KH{V(){const M=[];this.Z.descriptionEntity&&M.push(this.Z.descriptionEntity);this.Z.creators&&M.push(...this.Z.creators);this.Z.theBiggestFan&&M.push(this.Z.theBiggestFan);return[...(new Set(M))]}},e1J=class extends KH{V(){return[]}};var mW=new g.Y("feedbackEndpoint");var d7Q=class extends KH{V(){return[]}};var o6q=class extends KH{V(){return[]}};var cnP=class extends KH{V(){return[]}};var QMt=new g.Y("youtubeIconSource");var g6t=new g.Y("callToActionButtonViewModel");var sMP=class extends KH{V(){return[]}};var wUg=class extends KH{V(){return[]}};var pUp=new g.Y("interactionLoggingCommandMetadata");var I6y={g_X:"WEB_DISPLAY_MODE_UNKNOWN",Ovz:"WEB_DISPLAY_MODE_BROWSER",uDV:"WEB_DISPLAY_MODE_MINIMAL_UI",q20:"WEB_DISPLAY_MODE_STANDALONE",QTX:"WEB_DISPLAY_MODE_FULLSCREEN"};var YQp=class extends JB{constructor(M){super(M)}getPlayerType(){return Wj(this,7)}rU(){return Mx(this,19)}setVideoId(M){return XK(this,19,M)}};var NiL=class extends JB{constructor(M){super(M)}};var IoS=class extends JB{constructor(M){super(M)}};var TF=class extends JB{constructor(M){super(M,500)}},$0S=[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,536,537,538,539,541,545];var Mbt=new g.Y("loggingContext");var Rzq=class extends JB{constructor(M){super(M)}};var aut=class extends JB{constructor(M){super(M)}rU(){return TJ(this,Al(this,cA,1))}setVideoId(M){return iW(this,1,cA,u8(M))}getPlaylistId(){return TJ(this,Al(this,cA,2))}},cA=[1,2];g.Y2=class extends JB{constructor(M){super(M)}};g.Y2.prototype.yh=Ma(0);var WYs=new g.Y("dismissPlayerOverlayCommand");var bhl=class extends KH{V(){return[]}};var TgL=class extends KH{V(){return[]}};var qCG=class extends KH{V(){return[]}};var XqP=class extends KH{V(){const M=[];this.Z.downloadsList&&M.push(this.Z.downloadsList);this.Z.smartDownloadsList&&M.push(this.Z.smartDownloadsList);this.Z.recommendedDownloadsList&&M.push(this.Z.recommendedDownloadsList);this.Z.refresh&&M.push(this.Z.refresh);return[...(new Set(M))]}};var GeP=class extends KH{V(){const M=[];this.Z.refresh&&M.push(this.Z.refresh);if(this.Z.downloads)for(const W of this.Z.downloads)M.push(...(new jal(W)).V());return[...(new Set(M))]}},jal=class extends k_{V(){const M=[];this.Z.video&&M.push(this.Z.video);this.Z.playlist&&M.push(this.Z.playlist);this.Z.videoItem&&M.push(this.Z.videoItem);this.Z.playlistItem&&M.push(this.Z.playlistItem);return[...(new Set(M))]}};var Vbs=class extends KH{V(){const M=[];this.Z.localImageEntities&&M.push(...this.Z.localImageEntities);return[...(new Set(M))]}};var J_P=class extends KH{V(){const M=[];this.Z.playbackData&&M.push(this.Z.playbackData);this.Z.localImageEntities&&M.push(...this.Z.localImageEntities);this.Z.videoDownloadContextEntity&&M.push(this.Z.videoDownloadContextEntity);return[...(new Set(M))]}};var BgG=class extends KH{V(){return[]}};var D0G=class extends KH{V(){const M=[];this.Z.fakeChildren&&M.push(...this.Z.fakeChildren);return[...(new Set(M))]}};var aKt=class extends KH{V(){const M=[];this.Z.video&&M.push(this.Z.video);this.Z.playbackData&&M.push(this.Z.playbackData);this.Z.offlineVideoPolicy&&M.push(this.Z.offlineVideoPolicy);return[...(new Set(M))]}};var E8S=class extends KH{V(){return[]}};var n8P=class extends KH{V(){const M=[];this.Z.channelOwner&&M.push(this.Z.channelOwner);this.Z.videos&&M.push(...this.Z.videos);this.Z.collaboratorChannels&&M.push(...this.Z.collaboratorChannels);this.Z.downloadState&&M.push(this.Z.downloadState);this.Z.refresh&&M.push(this.Z.refresh);return[...(new Set(M))]}};var y_G=class extends KH{V(){const M=[];this.Z.video&&M.push(this.Z.video);this.Z.channelContributor&&M.push(this.Z.channelContributor);return[...(new Set(M))]}};var C$q=class extends k_{V(){const M=[];this.Z.recommendedVideoMetadata&&M.push(...(new U0y(this.Z.recommendedVideoMetadata)).V());return[...(new Set(M))]}},U0y=class extends k_{V(){const M=[];this.Z.localImageEntities&&M.push(...this.Z.localImageEntities);this.Z.videoDownloadContextEntity&&M.push(this.Z.videoDownloadContextEntity);return[...(new Set(M))]}};var keQ=class extends k_{V(){const M=[];this.Z.playbackPosition&&M.push(this.Z.playbackPosition);return[...(new Set(M))]}};var KYQ=class extends KH{V(){const M=[];this.Z.owner&&M.push(this.Z.owner);this.Z.downloadState&&M.push(this.Z.downloadState);this.Z.userState&&M.push(...(new keQ(this.Z.userState)).V());this.Z.additionalMetadata&&M.push(...(new C$q(this.Z.additionalMetadata)).V());return[...(new Set(M))]}};var v8y=class extends KH{V(){const M=[];this.Z.userChannelDetails&&M.push(this.Z.userChannelDetails);return[...(new Set(M))]}};var m0g=class extends KH{V(){const M=[];this.Z.channelOwner&&M.push(this.Z.channelOwner);this.Z.playbackPosition&&M.push(this.Z.playbackPosition);this.Z.localImageEntities&&M.push(...this.Z.localImageEntities);this.Z.downloadStatus&&M.push(this.Z.downloadStatus);return[...(new Set(M))]}};var LYP=class extends KH{V(){return[]}};var lKG=class extends KH{V(){return[]}};var tby=class extends KH{V(){return[]}};var Zht=class extends KH{V(){return[]}};var IKP=class extends KH{V(){return[]}};var Ngq=class extends KH{V(){return[]}};var Hhq=class extends KH{V(){return[]}};var fKa=class extends KH{V(){return[]}};var RAL=class extends KH{V(){return[]}};var Eb=new g.Y("changeKeyedMarkersVisibilityCommand");var r_p=new g.Y("changeMarkersVisibilityCommand");var mgs=new g.Y("loadMarkersCommand");var x0J=new g.Y("suggestedActionDataViewModel");var uat=new g.Y("timelyActionViewModel");var zuQ=new g.Y("timelyActionsOverlayViewModel");var FYJ=class extends KH{V(){return[]}};var ihJ=class extends KH{V(){return[]}};var hAa=class extends KH{V(){return[]}};var ViS=new g.Y("productListItemRenderer");var A_G=new g.Y("shoppingOverlayRenderer");var zAP=class extends KH{V(){return[]}};var u_t=class extends KH{V(){const M=[];this.Z.compositeSourceKeys&&M.push(...this.Z.compositeSourceKeys);return[...(new Set(M))]}};var SCt=class extends KH{V(){const M=[];this.Z.trackDownloadMetadatas&&M.push(...this.Z.trackDownloadMetadatas);return[...(new Set(M))]}};var OhG=class extends KH{V(){const M=[];this.Z.downloadedTracks&&M.push(...this.Z.downloadedTracks);this.Z.smartDownloadedTracks&&M.push(...this.Z.smartDownloadedTracks);this.Z.downloadedEpisodes&&M.push(...this.Z.downloadedEpisodes);this.Z.downloadedAlbumReleases&&M.push(...this.Z.downloadedAlbumReleases);this.Z.smartDownloadedAlbumReleases&&M.push(...this.Z.smartDownloadedAlbumReleases);this.Z.downloadedPlaylists&&M.push(...this.Z.downloadedPlaylists);this.Z.smartDownloadedPlaylists&&M.push(...this.Z.smartDownloadedPlaylists); this.Z.metadataOnlyTracks&&M.push(...this.Z.metadataOnlyTracks);return[...(new Set(M))]}};var P$J=class extends KH{V(){const M=[];this.Z.trackDownloadMetadatas&&M.push(...this.Z.trackDownloadMetadatas);return[...(new Set(M))]}};var eAy=class extends KH{V(){const M=[];this.Z.playbackData&&M.push(this.Z.playbackData);this.Z.localImageEntities&&M.push(...this.Z.localImageEntities);this.Z.videoDownloadContextEntity&&M.push(this.Z.videoDownloadContextEntity);return[...(new Set(M))]}};var d0S=class extends KH{V(){const M=[];this.Z.musicLibraryStatusEntity&&M.push(this.Z.musicLibraryStatusEntity);this.Z.primaryArtists&&M.push(...this.Z.primaryArtists);this.Z.details&&M.push(this.Z.details);this.Z.userDetails&&M.push(this.Z.userDetails);this.Z.tracks&&M.push(...this.Z.tracks);this.Z.share&&M.push(this.Z.share);this.Z.downloadMetadata&&M.push(this.Z.downloadMetadata);this.Z.refresh&&M.push(this.Z.refresh);return[...(new Set(M))]}},o8Q=class extends KH{V(){const M=[];this.Z.albumRelease&& M.push(this.Z.albumRelease);this.Z.tracks&&M.push(...this.Z.tracks);return[...(new Set(M))]}},c_y=class extends KH{V(){const M=[];this.Z.albumRelease&&M.push(this.Z.albumRelease);return[...(new Set(M))]}};var QaQ=class extends KH{V(){const M=[];this.Z.details&&M.push(this.Z.details);this.Z.userDetails&&M.push(this.Z.userDetails);return[...(new Set(M))]}},g8t=class extends KH{V(){const M=[];this.Z.parentArtist&&M.push(this.Z.parentArtist);return[...(new Set(M))]}},saL=class extends KH{V(){const M=[];this.Z.parentArtist&&M.push(this.Z.parentArtist);return[...(new Set(M))]}};var wqQ=class extends KH{V(){return[]}};var pqt=class extends KH{V(){return[]}};var $JL=class extends KH{V(){const M=[];this.Z.tracks&&M.push(...this.Z.tracks);this.Z.refresh&&M.push(this.Z.refresh);this.Z.musicLibraryStatusEntity&&M.push(this.Z.musicLibraryStatusEntity);this.Z.details&&M.push(this.Z.details);this.Z.downloadMetadata&&M.push(this.Z.downloadMetadata);this.Z.sideloadMetadata&&M.push(this.Z.sideloadMetadata);this.Z.userDetails&&M.push(this.Z.userDetails);this.Z.entryCollection&&M.push(this.Z.entryCollection);this.Z.share&&M.push(this.Z.share);this.Z.podcastShowAdditionalMetadata&& M.push(...(new YCq(this.Z.podcastShowAdditionalMetadata)).V());return[...(new Set(M))]}},YCq=class extends k_{V(){const M=[];this.Z.creatorEntity&&M.push(this.Z.creatorEntity);return[...(new Set(M))]}};var Met=class extends KH{V(){return[]}};var WvG=class extends KH{V(){const M=[];this.Z.musicLibraryStatusEntity&&M.push(this.Z.musicLibraryStatusEntity);this.Z.artists&&M.push(...this.Z.artists);this.Z.audioModeVersion&&M.push(this.Z.audioModeVersion);this.Z.videoModeVersion&&M.push(this.Z.videoModeVersion);this.Z.userDetails&&M.push(this.Z.userDetails);this.Z.details&&M.push(this.Z.details);this.Z.albumRelease&&M.push(this.Z.albumRelease);this.Z.share&&M.push(this.Z.share);this.Z.libraryEdit&&M.push(this.Z.libraryEdit);this.Z.downloadMetadata&& M.push(this.Z.downloadMetadata);this.Z.playbackPosition&&M.push(this.Z.playbackPosition);this.Z.lyrics&&M.push(this.Z.lyrics);return[...(new Set(M))]}},b8S=class extends KH{V(){const M=[];this.Z.parentTrack&&M.push(this.Z.parentTrack);return[...(new Set(M))]}},TIs=class extends KH{V(){const M=[];this.Z.parentTrack&&M.push(this.Z.parentTrack);return[...(new Set(M))]}};var JZG=new g.Y("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var qvJ=new g.Y("adFeedbackEndpoint");var Xzs=new g.Y("menuEndpoint");var jTL=new g.Y("phoneDialerEndpoint");var G5s=new g.Y("sendSmsEndpoint");var hMa=new g.Y("copyTextEndpoint");var Veq=new g.Y("shareEndpoint"),JUg=new g.Y("shareEntityEndpoint"),BIp=new g.Y("shareEntityServiceEndpoint"),DJq=new g.Y("webPlayerShareEntityServiceEndpoint");g.HF=new g.Y("urlEndpoint");g.Jj=new g.Y("watchEndpoint");var a1t=new g.Y("watchPlaylistEndpoint");var ELs=class extends KH{V(){return[]}};var nLL=class extends KH{V(){return[]}};var yUS=class extends KH{V(){return[]}};var UJa=class extends KH{V(){return[]}};var Ccs=class extends KH{V(){const M=[];this.Z.transfer&&M.push(this.Z.transfer);this.Z.adsPlaybackData&&M.push(...this.Z.adsPlaybackData);this.Z.drmLicense&&M.push(this.Z.drmLicense);this.Z.offlineVideoPolicy&&M.push(this.Z.offlineVideoPolicy);this.Z.videoDownloadContextEntity&&M.push(this.Z.videoDownloadContextEntity);return[...(new Set(M))]}};var k5y=class extends KH{V(){return[]}};var KvQ=class extends KH{V(){const M=[];this.Z.offlineVideoStreams&&M.push(...this.Z.offlineVideoStreams);this.Z.captionTrack&&M.push(...this.Z.captionTrack);return[...(new Set(M))]}};var vLL=class extends KH{V(){return[]}};var mJS=class extends KH{V(){return[]}};var Lvg=class extends KH{V(){return[]}};var l1P=new g.Y("compositeVideoOverlayRenderer");var tey=new g.Y("miniplayerRenderer");var Why=new g.Y("paidContentOverlayRenderer");var LkJ=new g.Y("playerMutedAutoplayOverlayRenderer"),l4p=new g.Y("playerMutedAutoplayEndScreenRenderer");var Uiq=new g.Y("unserializedPlayerResponse"),imG=new g.Y("unserializedPlayerResponse");var Z8l=new g.Y("playlistEditEndpoint");var I1L=class extends KH{V(){return[]}};var gQ=new g.Y("buttonRenderer"),LH=new g.Y("toggleButtonRenderer");var Zgg=new g.Y("counterfactualRenderer");var NIp=new g.Y("resolveUrlCommandMetadata");var H8G=class extends KH{V(){return[]}};var f1L=new g.Y("modifyChannelNotificationPreferenceEndpoint");var Vmt=new g.Y("pingingEndpoint");var RGt=new g.Y("unsubscribeEndpoint");var rUQ=class extends KH{V(){return[]}};g.vM=new g.Y("subscribeButtonRenderer");var xJS=new g.Y("subscribeEndpoint");var FvQ=class extends KH{V(){return[]}};var i8t=class extends KH{V(){return[]}};var hGq=class extends KH{V(){return[]}};var Eat=new g.Y("buttonViewModel");var AUP=class extends KH{V(){return[]}};var zGy=class extends KH{V(){return[]}};var u8S=class extends KH{V(){return[]}};var Svy=class extends KH{V(){return[]}};var O8g=class extends KH{V(){return[]}};var PcG=class extends KH{V(){return[]}};var IMP=new g.Y("qrCodeRenderer");var eGQ={CO:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Hu:"LIVING_ROOM_APP_MODE_MAIN",LO:"LIVING_ROOM_APP_MODE_KIDS",oA:"LIVING_ROOM_APP_MODE_MUSIC",mL:"LIVING_ROOM_APP_MODE_UNPLUGGED",KO:"LIVING_ROOM_APP_MODE_GAMING"};var dJt=class extends KH{V(){return[]}};var oLJ=class extends KH{V(){return[]}};var UgP=new g.Y("autoplaySwitchButtonRenderer");var oU,$fL,OmP,W_J;oU=new g.Y("decoratedPlayerBarRenderer");$fL=new g.Y("chapteredPlayerBarRenderer");OmP=new g.Y("multiMarkersPlayerBarRenderer");W_J=new g.Y("chapterRenderer");g.X1a=new g.Y("markerRenderer");var abL=new g.Y("decoratedPlayheadRenderer");var kbt=new g.Y("desktopOverlayConfigRenderer");var Hgy=new g.Y("engagementPanelSectionListRenderer");var Cwt=new g.Y("gatedActionsOverlayViewModel");var dOp=new g.Y("heatMarkerRenderer");var GTL=new g.Y("heatmapRenderer");var vJJ=new g.Y("watchToWatchTransitionRenderer");var DgJ=new g.Y("playlistPanelRenderer");var cUS=new g.Y("productUpsellSuggestedActionViewModel");var lg=new g.Y("suggestedActionTimeRangeTrigger"),QTs=new g.Y("suggestedActionsRenderer"),gLy=new g.Y("suggestedActionRenderer");var VNy=new g.Y("timedMarkerDecorationRenderer");var sTS=class extends KH{V(){return[]}};var wzG=class extends KH{V(){return[]}};var pzs=class extends KH{V(){return[]}};var Yvt=class extends KH{V(){return[]}};var $Ug=class extends KH{V(){return[]}};var MEq=class extends KH{V(){return[]}};var Wos=class extends KH{V(){return[]}};var O1L=new g.Y("cipher");var CBL=new g.Y("playerVars");var hoS=new g.Y("playerVars");var bwJ=g.yp.window,qe=bwJ?.yt?.config_||bwJ?.ytcfg?.data_||{};g.Uq("yt.config_",qe);var Gk=[];var D_q=/^[\w.]*$/,Bvt={q:!0,search_query:!0},J6G=String(EX);var IS=new class{constructor(M,W){this.Z=M;this.V=W}}(window,window.document);g.Uq("yt.ads_.signals_.getAdSignalsString",function(M){return so(wA(M))});g.Hy();var Ne="XMLHttpRequest"in g.yp?()=>new XMLHttpRequest:null;var TMJ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods theme".split(" ");[...TMJ];var OX={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"},l$t=["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",...TMJ],ce=!1,ksa=S$;var sX=class extends AL{constructor(M,W,b){super(`${M}, errorCode=${W}`);this.errorCode=W;this.xhr=b;this.name="PromiseAjaxError"}},tvL=class{constructor(M){this.xhr=M}};var Y7=class{constructor(M=null){this.Z=M;this.B=0;this.V=null}then(M,W,b){return this.Z?this.Z.then(M,W,b):this.B===1&&M?(M=M.call(b,this.V))&&typeof M.then==="function"?M:MG(M):this.B===2&&W?(M=W.call(b,this.V))&&typeof M.then==="function"?M:$s(M):this}getValue(){return this.V}};Y7.prototype.$goog_Thenable=!0;var WV=!1;var $w=ks||KU;var r6q=/^([0-9\.]+):([0-9\.]+)$/;var O3g=class extends AL{constructor(M){super(M.message||M.description||M.name);this.isMissing=M instanceof AA;this.isTimeout=M instanceof sX&&M.errorCode=="net.timeout";this.isCanceled=M instanceof Ps}};O3g.prototype.name="BiscottiError";var AA=class extends AL{constructor(){super("Biscotti ID is missing from server")}};AA.prototype.name="BiscottiMissingError";var hEL={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hA=null;var c6y={};var qwt=0,zd=g.bq?"webkit":AW?"moz":g.V8?"ms":g.KL?"o":"",XYs=g.Ct("ytDomDomGetNextId")||(()=>++qwt); g.Uq("ytDomDomGetNextId",XYs);var jqy={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},$6s=class{constructor(M){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(M=M||window.event){this.event=M;for(let T in M)T in jqy||(this[T]=M[T]);this.scale=M.scale;this.rotation=M.rotation;var W=M.target||M.srcElement;W&&W.nodeType==3&&(W=W.parentNode);this.target=W;var b=M.relatedTarget;if(b)try{b=b.nodeName?b:null}catch(T){b=null}else this.type=="mouseover"?b=M.fromElement:this.type=="mouseout"&&(b=M.toElement);this.relatedTarget=b;this.clientX=M.clientX!=void 0?M.clientX:M.pageX;this.clientY=M.clientY!=void 0?M.clientY:M.pageY;this.keyCode=M.keyCode?M.keyCode: M.which;this.charCode=M.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.Z=M.pageX;this.V=M.pageY}}catch(T){}}preventDefault(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}stopPropagation(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}stopImmediatePropagation(){this.event&&(this.event.cancelBubble=!0, this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())}};var d2=g.yp.ytEventsEventsListeners||{};g.Uq("ytEventsEventsListeners",d2);var YUp=g.yp.ytEventsEventsCounter||{count:0};g.Uq("ytEventsEventsCounter",YUp);var GYl=tW(function(){let M=!1;try{const W=Object.defineProperty({},"passive",{get:function(){M=!0}}); window.addEventListener("test",null,W)}catch(W){}return M}),MxL=tW(function(){let M=!1; try{const W=Object.defineProperty({},"capture",{get:function(){M=!0}}); window.addEventListener("test",null,W)}catch(W){}return M});var tS;tS=window;g.u=tS.ytcsi&&tS.ytcsi.now?tS.ytcsi.now:tS.performance&&tS.performance.timing&&tS.performance.now&&tS.performance.timing.navigationStart?()=>tS.performance.timing.navigationStart+tS.performance.now():()=>(new Date).getTime();g.rG(w2,g.gz);w2.prototype.X=function(M){M.Z===void 0&&wbL(M);var W=M.Z;M.V===void 0&&wbL(M);this.Z=new g.xU(W,M.V)}; w2.prototype.GC=function(){return this.Z||new g.xU}; w2.prototype.gK=function(){if(this.Z){var M=(0,g.u)();if(this.A!=0){var W=this.C,b=this.Z,T=W.x-b.x;W=W.y-b.y;T=Math.sqrt(T*T+W*W)/(M-this.A);this.V[this.B]=Math.abs((T-this.S)/this.S)>.5?1:0;W=0;for(b=0;b<4;b++)W+=this.V[b]||0;W>=3&&this.W();this.S=T}this.A=M;this.C=this.Z;this.B=(this.B+1)%4}}; w2.prototype.vY=function(){g.FV(this.D);g.cV(this.O)};var ZS=class extends g.gz{constructor(M){super();this.W=[];this.vP=M||this}J(M,W,b,T,q){b=g.Je((0,g.IJ)(b,T||this.vP));b={target:M,name:W,callback:b};let X;q&&GYl()&&(X={passive:!0});M.addEventListener(W,b.callback,X);this.W.push(b);return b}fN(M){for(let W=0;W{W.preventDefault();this.V=W}); M.addEventListener("appinstalled",()=>{this.Z=!0},{once:!0})}};var qZ=class{constructor(){this.xW=!0}W8(M,W){M={};var b=[];"USER_SESSION_ID"in qe&&b.push({key:"u",value:g.F("USER_SESSION_ID")});if(b=xQ(b))M.Authorization=b,b=W=W?.sessionIndex,b===void 0&&(b=Number(g.F("SESSION_INDEX",0)),b=isNaN(b)?0:b),g.he("voice_search_auth_header_removal")||(M["X-Goog-AuthUser"]=b.toString()),"INNERTUBE_HOST_OVERRIDE"in qe||(M["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in qe&&(M["X-Goog-PageId"]=g.F("DELEGATED_SESSION_ID"));return M}};var kw={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var G2=g.Ct("ytglobal.prefsUserPrefsPrefs_")||{};g.Uq("ytglobal.prefsUserPrefsPrefs_",G2); var jEt=class{constructor(){this.Z=g.F("ALT_PREF_COOKIE_NAME","PREF");this.V=g.F("ALT_PREF_COOKIE_DOMAIN","youtube.com");const M=g.Ql(this.Z);M&&this.parse(M)}get(M,W){B8(M);Jw(M);M=G2[M]!==void 0?G2[M].toString():null;return M!=null?M:W?W:""}set(M,W){B8(M);Jw(M);if(W==null)throw Error("ExpectedNotNull");G2[M]=W.toString()}UY(M){return!!((G6P(`f${Math.floor(M/31)+1}`)||0)&1<{let M;return()=>{M||(M=new Oi("ytidb"));return M}})();var tw=[],l1,Lv=!1;var UUS,COp,kYp,Kot,rf,nyq; UUS={AUTH_INVALID:"No user identifier specified.",EXPLICIT_ABORT:"Transaction was explicitly aborted.",IDB_NOT_SUPPORTED:"IndexedDB is not supported.",MISSING_INDEX:"Index not created.",MISSING_OBJECT_STORES:"Object stores not created.",DB_DELETED_BY_MISSING_OBJECT_STORES:"Database is deleted because expected object stores were not created.",DB_REOPENED_BY_MISSING_OBJECT_STORES:"Database is reopened because expected object stores were not created.",UNKNOWN_ABORT:"Transaction was aborted for unknown reasons.",QUOTA_EXCEEDED:"The current transaction exceeded its quota limitations.", QUOTA_MAYBE_EXCEEDED:"The current transaction may have failed because of exceeding quota limitations.",EXECUTE_TRANSACTION_ON_CLOSED_DB:"Can't start a transaction on a closed database",INCOMPATIBLE_DB_VERSION:"The binary is incompatible with the database version"}; COp={AUTH_INVALID:"ERROR",EXECUTE_TRANSACTION_ON_CLOSED_DB:"WARNING",EXPLICIT_ABORT:"IGNORED",IDB_NOT_SUPPORTED:"ERROR",MISSING_INDEX:"WARNING",MISSING_OBJECT_STORES:"ERROR",DB_DELETED_BY_MISSING_OBJECT_STORES:"WARNING",DB_REOPENED_BY_MISSING_OBJECT_STORES:"WARNING",QUOTA_EXCEEDED:"WARNING",QUOTA_MAYBE_EXCEEDED:"WARNING",UNKNOWN_ABORT:"WARNING",INCOMPATIBLE_DB_VERSION:"WARNING"}; kYp={AUTH_INVALID:!1,EXECUTE_TRANSACTION_ON_CLOSED_DB:!1,EXPLICIT_ABORT:!1,IDB_NOT_SUPPORTED:!1,MISSING_INDEX:!1,MISSING_OBJECT_STORES:!1,DB_DELETED_BY_MISSING_OBJECT_STORES:!1,DB_REOPENED_BY_MISSING_OBJECT_STORES:!1,QUOTA_EXCEEDED:!1,QUOTA_MAYBE_EXCEEDED:!0,UNKNOWN_ABORT:!0,INCOMPATIBLE_DB_VERSION:!1}; g.fv=class extends g.EF{constructor(M,W={},b=UUS[M],T=COp[M],q=kYp[M]){super(b,{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:M,...W});this.type=M;this.message=b;this.level=T;this.Z=q;Object.setPrototypeOf(this,g.fv.prototype)}};Kot=class extends g.fv{constructor(M,W){super("MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:M},UUS.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Kot.prototype)}}; rf=class extends Error{constructor(M,W){super();this.index=M;this.objectStore=W;Object.setPrototypeOf(this,rf.prototype)}};nyq=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];var Aw;Aw=class{constructor(M){this.Z=M}};g.i1=class{constructor(M){this.state={status:"PENDING"};this.Z=[];this.V=[];M=M.Z;const W=T=>{if(this.state.status==="PENDING"){this.state={status:"FULFILLED",value:T};for(const q of this.Z)q()}},b=T=>{if(this.state.status==="PENDING"){this.state={status:"REJECTED", reason:T};for(const q of this.V)q()}}; try{M(W,b)}catch(T){b(T)}}static all(M){return new g.i1(new Aw((W,b)=>{const T=[];let q=M.length;q===0&&W(T);for(let X=0;X{T[X]=G;q--;q===0&&W(T)}).catch(G=>{b(G)})}))}static resolve(M){return new g.i1(new Aw((W,b)=>{M instanceof g.i1?M.then(W,b):W(M)}))}static reject(M){return new g.i1(new Aw((W,b)=>{b(M)}))}then(M,W){const b=M??U6J,T=W??ylL; return new g.i1(new Aw((q,X)=>{this.state.status==="PENDING"?(this.Z.push(()=>{CWL(this,this,b,q,X)}),this.V.push(()=>{k6q(this,this,T,q,X)})):this.state.status==="FULFILLED"?CWL(this,this,b,q,X):this.state.status==="REJECTED"&&k6q(this,this,T,q,X)}))}catch(M){return this.then(void 0,M)}};var m6q=class{constructor(M,W){this.request=M;this.cursor=W}};var Aly=class{constructor(M,W){this.Z=M;this.options=W;this.transactionCount=0;this.B=Math.round((0,g.u)());this.V=!1}add(M,W,b){return g.OF(this,[M],{mode:"readwrite",m8:!0,commit:SQ()},T=>T.objectStore(M).add(W,b))}clear(M){return g.OF(this,[M],{mode:"readwrite", m8:!0},W=>W.objectStore(M).clear())}close(){this.Z.close(); this.options?.closed&&this.options.closed()}count(M,W){return g.OF(this,[M],{mode:"readonly",m8:!0,commit:SQ()},b=>b.objectStore(M).count(W))}delete(M,W){return g.OF(this,[M],{mode:"readwrite", m8:!0,commit:SQ()&&!(W instanceof IDBKeyRange)},b=>b.objectStore(M).delete(W))}get(M,W){return g.OF(this,[M],{mode:"readonly", m8:!0,commit:SQ()},b=>b.objectStore(M).get(W))}getAll(M,W,b){return g.OF(this,[M],{mode:"readonly", m8:!0},T=>T.objectStore(M).getAll(W,b))}put(M,W,b){return g.OF(this,[M],{mode:"readwrite", m8:!0,commit:SQ()},T=>T.objectStore(M).put(W,b))}objectStoreNames(){return Array.from(this.Z.objectStoreNames)}getName(){return this.Z.name}},NNq=class{constructor(M){this.Z=M}add(M,W){return z2(this.Z.add(M,W))}autoIncrement(){return this.Z.autoIncrement}clear(){return z2(this.Z.clear()).then(()=>{})}count(M){return z2(this.Z.count(M))}delete(M){return M instanceof IDBKeyRange?fVg(this,M):z2(this.Z.delete(M))}get(M){return z2(this.Z.get(M))}getAll(M,W){return"getAll"in IDBObjectStore.prototype?z2(this.Z.getAll(M, W)):Res(this,M,W)}index(M){try{return new vop(this.Z.index(M))}catch(W){if(W instanceof Error&&W.name==="NotFoundError")throw new rf(M,this.Z.name); throw W;}}getName(){return this.Z.name}keyPath(){return this.Z.keyPath}put(M,W){return z2(this.Z.put(M,W))}},txp=class{constructor(M){this.Z=M;this.V=new Map;this.aborted=!1;this.done=new Promise((W,b)=>{this.Z.addEventListener("complete",()=>{W()}); this.Z.addEventListener("error",T=>{T.currentTarget===T.target&&b(this.Z.error)}); this.Z.addEventListener("abort",()=>{var T=this.Z.error;if(T)b(T);else if(!this.aborted){T=g.fv;var q=this.Z.objectStoreNames;const X=[];for(let G=0;GW.delete().then(()=>g.Qn(W)))}get(M){return z2(this.Z.get(M))}getAll(M,W){return"getAll"in IDBIndex.prototype?z2(this.Z.getAll(M,W)):i$L(this,M,W)}keyPath(){return this.Z.keyPath}unique(){return this.Z.unique}}, heJ=class{constructor(M,W){this.request=M; this.cursor=W}delete(){return z2(this.cursor.delete()).then(()=>{})}getValue(){return this.cursor.value}update(M){return z2(this.cursor.update(M))}};var mUq=class{constructor(M,W){this.name=M;this.options=W;this.B=!0;this.S=this.A=0}V(M,W,b={}){return u6L(M,W,b)}delete(M={}){return sF(this.name,M)}open(){if(!this.B)throw SNQ(this);if(this.Z)return this.Z;let M;const W=()=>{this.Z===M&&(this.Z=void 0)},b={blocking:q=>{q.close()}, closed:W,cK:W,upgrade:this.options.upgrade},T=async()=>{var q=Error().stack??"";try{const V=await this.V(this.name,this.options.version,b);var X=V,G=this.options;const J=[];for(const B of Object.keys(G.AC)){const {Nw:D,Fgv:a=Number.MAX_VALUE}=G.AC[B];!(X.Z.version>=D)||X.Z.version>=a||X.Z.objectStoreNames.contains(B)||J.push(B)}if(J.length!==0){const B=Object.keys(this.options.AC),D=V.objectStoreNames();if(this.Sthis.options.version+1)throw q.close(),this.B=!1,SNQ(this,X);return q}W();V instanceof Error&&!g.he("ytidb_async_stack_killswitch")&&(V.stack=`${V.stack}\n${q.substring(q.indexOf("\n")+1)}`);throw xu(V,this.name,"",this.options.version??-1);}}; return this.Z=M=T()}};var pv=new mUq("YtIdbMeta",{AC:{databases:{Nw:1}},upgrade(M,W){W(1)&&P8(M,"databases",{keyPath:"actualName"})}});var b_,Wg=new class{constructor(){}}(new class{constructor(){}});new g.XC;var Maq=class extends mUq{constructor(M,W){super(M,W);this.options=W;NZ(M)}V(M,W,b={}){return(this.options.shared?sEy:gyl)(M,W,{...b})}delete(M={}){return(this.options.shared?$xs:wlg)(this.name,M)}};var b7a=X5("ytGcfConfig",{AC:{coldConfigStore:{Nw:1},hotConfigStore:{Nw:1}},shared:!1,upgrade(M,W){W(1)&&(df(P8(M,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),df(P8(M,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},version:1});var LoL=class extends g.gz{constructor(){super();this.V=[];this.Z=[];const M=g.Ct("yt.gcf.config.hotUpdateCallbacks");M?(this.V=[...M],this.Z=M):(this.Z=[],g.Uq("yt.gcf.config.hotUpdateCallbacks",this.Z))}vY(){for(const W of this.V){var M=this.Z;const b=M.indexOf(W);b>=0&&M.splice(b,1)}this.V.length=0;super.vY()}};var Gu=class{constructor(){this.S=!1;this.B=this.A=0;this.C=new LoL;this.k9={UaX:()=>{this.S=!0}, YjY:()=>this.Z, R0K:M=>{V7(this,M)}, CD:M=>{this.CD(M)}, qXs:M=>{JT(this,M)}, NF:()=>this.coldHashData, GW:()=>this.hotHashData, RAs:()=>this.V, QxK:()=>Bg(), qOK:()=>D0(), uyK:()=>g.Ct("yt.gcf.config.coldHashData"), gZK:()=>g.Ct("yt.gcf.config.hotHashData"), KR0:()=>{DxL(this)}, aaV:()=>{this.CD(void 0);at(this);delete Gu.instance}, dZs:M=>{this.B=M}, UpY:()=>this.B}}U_(){return D0()??g.F("RAW_HOT_CONFIG_GROUP")}CD(M){this.hotHashData=M; g.Uq("yt.gcf.config.hotHashData",this.hotHashData||null)}};var lgS=typeof TextEncoder!=="undefined"?new TextEncoder:null,dxa=lgS?M=>lgS.encode(M):M=>{M=g.l2(M); const W=new Uint8Array(M.length);for(let b=0;b{}; this.Be=()=>{}; this.now=Date.now;this.I_=!1;this.k9={ZKY:W=>{this.DY=W}, LRk:()=>{this.B()}, Az:()=>{this.A()}, pS:async W=>{await this.pS(W)}, p6:(W,b)=>this.p6(W,b), c_:()=>{this.c_()}}; this.f8=M.f8??100;this.Nu=M.Nu??1;this.Sc=M.Sc??2592E6;this.rf=M.rf??12E4;this.zP=M.zP??5E3;this.DY=M.DY??void 0;this.Qn=!!M.Qn;this.zw=M.zw??.1;this.aJ=M.aJ??10;M.handleError&&(this.handleError=M.handleError);M.Be&&(this.Be=M.Be);M.I_&&(this.I_=M.I_);M.iZ&&(this.iZ=M.iZ);this.FX=M.FX;this.TV=M.TV;this.ow=M.ow;this.va=M.va;this.sendFn=M.sendFn;this.hw=M.hw;this.LC=M.LC;F5(this)&&(!this.FX||this.FX("networkless_logging"))&&Qxg(this)}writeThenSend(M,W={}){if(F5(this)&&this.Z){const b={url:M,options:W, timestamp:this.now(),status:"NEW",sendCount:0};this.ow.set(b,this.DY).then(T=>{b.id=T;this.va.tj()&&this.pS(b)}).catch(T=>{this.pS(b); i_(this,T)})}else this.sendFn(M,W)}sendThenWrite(M,W={},b){if(F5(this)&&this.Z){const T={url:M, options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.FX&&this.FX("nwl_skip_retry")&&(T.skipRetry=b);if(this.va.tj()||this.FX&&this.FX("nwl_aggressive_send_then_write")&&!T.skipRetry){if(!T.skipRetry){const q=W.onError?W.onError:()=>{}; W.onError=async(X,G)=>{await this.ow.set(T,this.DY).catch(V=>{i_(this,V)}); q(X,G)}}this.sendFn(M,W,T.skipRetry)}else this.ow.set(T,this.DY).catch(q=>{this.sendFn(M,W,T.skipRetry); i_(this,q)})}else b=this.FX&&this.FX("nwl_skip_retry")&&b,this.sendFn(M,W,b)}sendAndWrite(M,W={}){if(F5(this)&&this.Z){const b={url:M, options:W,timestamp:this.now(),status:"NEW",sendCount:0};let T=!1;const q=W.onSuccess?W.onSuccess:()=>{}; b.options.onSuccess=(X,G)=>{b.id!==void 0?this.ow.YK(b.id,this.DY):T=!0;this.va.Ea&&this.FX&&this.FX("vss_network_hint")&&this.va.Ea(!0);q(X,G)}; this.sendFn(b.url,b.options,void 0,!0);this.ow.set(b,this.DY).then(X=>{b.id=X;T&&this.ow.YK(b.id,this.DY)}).catch(X=>{i_(this,X)})}else this.sendFn(M,W,void 0,!0)}B(){if(!F5(this))throw Error("IndexedDB is not supported: throttleSend"); this.V||(this.V=this.TV.N1(async()=>{const M=await this.ow.Jt("NEW",this.DY);M?(await this.pS(M),this.V&&(this.V=0,this.B())):this.A()},this.f8))}A(){this.TV.Oh(this.V); this.V=0}async pS(M){if(!F5(this))throw Error("IndexedDB is not supported: immediateSend");M.id!==void 0&&(await this.ow.QR(M.id,this.DY)||this.Be(Error("The request cannot be found in the database.")));this.p6(M,this.Sc)?(M.skipRetry||(M=wjg(this,M)),M&&(M.skipRetry&&M.id!==void 0&&await this.ow.YK(M.id,this.DY),this.sendFn(M.url,M.options,!!M.skipRetry))):(this.Be(Error("Networkless Logging: Stored logs request expired age limit")),M.id!==void 0&&await this.ow.YK(M.id,this.DY))}p6(M,W){M=M.timestamp; return this.now()-M>=W?!1:!0}c_(){if(!F5(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.ow.Jt("QUEUED",this.DY).then(M=>{M&&!this.p6(M,this.rf)?this.TV.N1(async()=>{M.id!==void 0&&await this.ow.bA(M.id,this.DY);this.c_()}):this.va.tj()&&this.B()})}};var hT;var AMQ={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,tvhtml5DeviceStorageStats:535,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, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540,keyValueStoreStatsEvent:541,deviceLocationPermissionEvent:542,remoteControlStarted:543,remoteControlCompleted:544,reelsAdsEvents:545};var jCs=X5("ServiceWorkerLogsDatabase",{AC:{SWHealthLog:{Nw:1}},shared:!0,upgrade:(M,W)=>{W(1)&&df(P8(M,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var u_={},nAQ=0;var SC;var eC=class{constructor(){this.Z=new Map;this.V=!1}requestComplete(M,W){W&&(this.V=!0);M=this.removeParams(M);this.Z.get(M)||this.Z.set(M,W)}isEndpointCFR(M){M=this.removeParams(M);return(M=this.Z.get(M))?!1:M===!1&&this.V?!0:null}removeParams(M){return M.split("?")[0]}};eC.prototype.removeParams=eC.prototype.removeParams;eC.prototype.isEndpointCFR=eC.prototype.isEndpointCFR;eC.prototype.requestComplete=eC.prototype.requestComplete;eC.getInstance=Czy;var d0=class extends g.Uo{constructor(){super();this.V=!1;this.Z=Fxl();this.Z.listen("networkstatus-online",()=>{if(this.V&&g.he("offline_error_handling")){var M=Pg().get("errors",!0);if(M){for(const W in M)if(M[W]){const b=new g.EF(W,"sent via offline_errors");b.name=M[W].name;b.stack=M[W].stack;b.level=M[W].level;g.Vr(b)}Pg().set("errors",{},2592E3,!0)}}})}tj(){return this.Z.tj()}Ea(M){this.Z.Z=M}Xl(){const M=window.navigator.onLine; return M===void 0?!0:M}vt(){this.V=!0}listen(M,W){return this.Z.listen(M,W)}L6(M){return hf(this.Z,M)}};d0.prototype.sendNetworkCheckRequest=d0.prototype.L6;d0.prototype.listen=d0.prototype.listen;d0.prototype.enableErrorFlushing=d0.prototype.vt;d0.prototype.getWindowStatus=d0.prototype.Xl;d0.prototype.networkStatusHint=d0.prototype.Ea;d0.prototype.isNetworkAvailable=d0.prototype.tj;d0.getInstance=kIt;g.Nn=class extends g.Uo{constructor(M={}){super();this.Z=this.A=0;this.V=kIt();const W=g.Ct("yt.networkStatusManager.instance.listen").bind(this.V);W&&(M.rateLimit?(this.rateLimit=M.rateLimit,W("networkstatus-online",()=>{K$p(this,"publicytnetworkstatus-online")}),W("networkstatus-offline",()=>{K$p(this,"publicytnetworkstatus-offline")})):(W("networkstatus-online",()=>{this.dispatchEvent("publicytnetworkstatus-online")}),W("networkstatus-offline",()=>{this.dispatchEvent("publicytnetworkstatus-offline")})))}tj(){const M= g.Ct("yt.networkStatusManager.instance.isNetworkAvailable"); return M?M.bind(this.V)():!0}Ea(M){const W=g.Ct("yt.networkStatusManager.instance.networkStatusHint").bind(this.V);W&&W(M)}async L6(M){const W=g.Ct("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(this.V);return g.he("skip_network_check_if_cfr")&&Czy().isEndpointCFR("generate_204")?new Promise(b=>{this.Ea(window.navigator?.onLine||!0);b(this.tj())}):W?W(M):!0}};var HL,vAp=class extends ZwS{constructor(){HL||(HL=new g.Nn({RFK:!0,RkY:!0}));super({ow:{cJ:qOa,YK:TUt,Jt:MLS,QR:W$p,bA:bDJ,set:$Xl},va:HL,handleError:(M,W,b)=>{const T=b?.error?.code;T===400||T===415?(M=new g.EF(M.message,W,b?.error?.code),Be(M,void 0,void 0,void 0,!0)):g.Vr(M)}, Be,sendFn:L$P,now:g.u,Ve:UXy,TV:g.Cv(),hw:"publicytnetworkstatus-online",LC:"publicytnetworkstatus-offline",Qn:!0,zw:.1,aJ:Ae("potential_esf_error_limit",10),FX:g.he,I_:!(a_()&&g.$F(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.XC;g.he("networkless_immediately_drop_all_requests")&&XOS();$xs("LogsDatabaseV2")}writeThenSend(M,W){W||(W={});W=cg(M,W);a_()||(this.Z=!1);super.writeThenSend(M,W)}sendThenWrite(M,W,b){W||(W={});W=cg(M,W);a_()||(this.Z=!1);super.sendThenWrite(M, W,b)}sendAndWrite(M,W){W||(W={});W=cg(M,W);a_()||(this.Z=!1);super.sendAndWrite(M,W)}awaitInitialization(){return this.S.promise}};var lDQ=g.yp.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Uq("ytNetworklessLoggingInitializationOptions",lDQ);g.GF=class{constructor(M){this.config_=null;M?this.config_=M:KXy()&&(this.config_=g.Ei())}isReady(){!this.config_&&KXy()&&(this.config_=g.Ei());return!!this.config_}};var Igl,si,pi;Igl=g.yp.ytPubsubPubsubInstance||new g.ls;si=g.yp.ytPubsubPubsubSubscribedKeys||{};pi=g.yp.ytPubsubPubsubTopicToKeys||{};g.w0=g.yp.ytPubsubPubsubIsSynchronous||{};g.ls.prototype.subscribe=g.ls.prototype.subscribe;g.ls.prototype.unsubscribeByKey=g.ls.prototype.Jj;g.ls.prototype.publish=g.ls.prototype.publish;g.ls.prototype.clear=g.ls.prototype.clear;g.Uq("ytPubsubPubsubInstance",Igl);g.Uq("ytPubsubPubsubTopicToKeys",pi);g.Uq("ytPubsubPubsubIsSynchronous",g.w0); g.Uq("ytPubsubPubsubSubscribedKeys",si);var fDq={};var NMt=class extends g.gz{append(M){M=M.BP();this.BP().appendChild(M)}},fH=class extends NMt{constructor(M){super();this.Z=M}BP(){return this.Z}};var HwS=class extends g.gz{constructor(M,W){super();this.B=[];this.W=!1;this.V=0;this.S=this.C=this.A=!1;this.gK=null;const b=(0,g.IJ)(M,W);this.Z=new g.d9(()=>b(this.gK),300); g.t(this,this.Z);this.X=this.D=Infinity}onTouchStart(M){this.W=!0;this.V=M.touches.length;this.Z.isActive()&&(this.Z.stop(),this.S=!0);M=M.touches;this.C=xXJ(this,M)||M.length!=1;var W=M.item(0);this.C||!W?this.X=this.D=Infinity:(this.D=W.clientX,this.X=W.clientY);this.B.length=0;for(W=0;W=0)}if(W||M&&(M.clientX-this.D)**2+(M.clientY-this.X)**2>25)this.A=!0}onTouchEnd(M){var W= M.changedTouches;W&&this.W&&this.V==1&&!this.A&&!this.S&&!this.C&&xXJ(this,W)&&(this.gK=M,this.Z.start());this.V=M.touches.length;this.V===0&&(this.A=this.W=!1,this.B.length=0);this.S=!1}};var G_=Date.now().toString();var aH={};var Co=Symbol("injectionDeps"),Ru=class{constructor(M){this.name=M}toString(){return`InjectionToken(${this.name})`}},no=class{constructor(M){this.key=M}},zSP=class{constructor(){this.V=new Map;this.B=new Map;this.Z=new Map;this.k9={y_K:()=>new Map(this.V), E_T:()=>{this.Z.clear()}}}resolve(M){return M instanceof no?k2(this,M.key,[],!0):k2(this,M,[])}};var Ko;var mr=window;var HA=g.he("web_enable_lifecycle_monitoring")&&Lo()!==0,eSp=g.he("web_enable_lifecycle_monitoring");var sCs=class{constructor(M){this.scheduler=g.Cv();this.V=new g.XC;this.Z=M;for(let W=0;W{b.FM();this.Z[W].OP=!0;this.Z.every(q=>q.OP===!0)&&this.V.resolve()}; const T=nv(M,b.priority??0);this.Z[W]={...b,FM:M,jobId:T}}}cancel(){for(const M of this.Z)M.jobId===void 0||M.OP||this.scheduler.Oh(M.jobId),M.OP=!0;this.V.resolve()}};var fgy=class{constructor(){this.state="none";this.plugins=[];this.V=void 0;this.A={};HA&&l6(this.state)}get currentState(){return this.state}install(M){this.plugins.push(M);return this}uninstall(...M){M.forEach(W=>{W=this.plugins.indexOf(W);W>-1&&this.plugins.splice(W,1)})}transition(M,W){HA&&ODQ(this.state); var b=this.transitions.find(T=>Array.isArray(T.from)?T.from.find(q=>q===this.state&&T.to===M):T.from===this.state&&T.to===M); if(b){this.B&&(PzL(this.B),this.B=void 0);dXg(this,M,W);this.state=M;HA&&l6(this.state);b=b.action.bind(this);const T=this.plugins.filter(q=>q[M]).map(q=>q[M]); b(gAa(this,T),W)}else throw Error(`no transition specified from ${this.state} to ${M}`);}};var wOy=class extends fgy{constructor(){super();this.Z=null;this.V=10;this.transitions=[{from:"none",to:"application_navigating",action:this.S},{from:"application_navigating",to:"none",action:this.C},{from:"application_navigating",to:"application_navigating",action:()=>{}}, {from:"none",to:"none",action:()=>{}}]}S(M,W){this.Z=g.yn(0,()=>{this.currentState==="application_navigating"&&this.transition("none")},5E3); M(W?.event)}C(M,W){this.Z&&(g.FO.Oh(this.Z),this.Z=null);M(W?.event)}},fo;var qH=[];g.Uq("yt.logging.transport.getScrapedGelPayloads",function(){return qH});var Ff=class{constructor(){this.store={};this.Z=0;this.V={};this.k9={XFp:()=>this.Z}}storePayload(M,W){M=RH(M); this.store[M]?this.store[M].push(W):(this.V={},this.store[M]=[W]);this.Z++;g.he("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return M}smartExtractMatchingEntries(M){if(!M.keys.length)return[];const W=x2(this,M.keys.splice(0,1)[0]),b=[];for(let T=0;T`Cannot read property '${M.key}'`, Dw:{Error:[{zr:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{zr:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{zr:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{zr:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{zr:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{zr:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{zr:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{l1:M=>`Cannot call '${M.key}'`, Dw:{TypeError:[{zr:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{zr:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{zr:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{zr:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{zr:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {zr:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{l1:M=>`${M.key} is not defined`, Dw:{ReferenceError:[{zr:/(.*) is not defined/,groups:["key"]},{zr:/Can't find variable: (.*)/,groups:["key"]}]}}];var qGt={yq:[],HH:[{callback:M2L,weight:500},{callback:WZg,weight:500}]};var b9P=class{constructor(){this.HH=[];this.yq=[]}},CT;var Rc=new g.ls;var mhq=new Set,Cat=0,t2s=0,lzS=0,KZq=[],klS=[],Z9L=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var NKQ=new g.Y("parallelCommand");var RCt=new g.Y("performOnceCommand");var fzJ=new g.Y("serialCommand");var Fo=void 0;xc({},"sgPmTd");xc(null,"jypsq");xc(null,"mWiOof");Date.now();var FZl=class extends Ki{constructor(M){super(arguments);this.csn=M}},RyL=new vg("screen-created",FZl),g4=[],xhS=u1G,sB=0,zF=new Map,uR=new Map,SH=new Map;var FI=class{constructor(M,W=null,b={},T,q,X){this.componentType=M;this.renderer=W;this.macros=b;this.layoutId=T;this.interactionLoggingClientData=q;this.Z=X;this.id=WF(M)}};g.rG(g.b9,g.gz);g.L=g.b9.prototype;g.L.subscribe=function(M,W,b){return this.ST()?0:this.m$.subscribe(M,W,b)}; g.L.unsubscribe=function(M,W,b){return this.ST()?!1:this.m$.unsubscribe(M,W,b)}; g.L.Jj=function(M){return this.ST()?!1:this.m$.Jj(M)}; g.L.publish=function(M,W){return this.ST()?!1:this.m$.publish.apply(this.m$,arguments)}; g.L.o8=function(M,W){for(let b in M)this.subscribe(b,M[b],W)}; g.L.yu=function(M,W){for(let b in M)this.unsubscribe(b,M[b],W)};var oA=16/9,RaL=[.25,.5,.75,1,1.25,1.5,1.75,2],riS=RaL.concat([3,4,5,6,7,8,9,10,15]),xUp=RaL.concat([2.5,3,3.5,4]);var SGl=1;g.ig=class extends g.gz{constructor(M){super();this.oT={};this.U1={};this.element=this.createElement(M)}createElement(M,W){W=W||M.K==="svg";let b;var T=M.N,q=M.rK;W?(b=document.createElementNS("http://www.w3.org/2000/svg",M.K),g.vQ&&(M.Y||(M.Y={}),M.Y.focusable="false")):b=g.Gr(M.K);if(T){if(T=qu(this,b,"class",T))XE(this,b,"class",T),this.oT[T]=b}else if(q){for(var X of q)this.oT[X]=b;XE(this,b,"class",q.join(" "))}T=M.R0;q=M.U;if(T)W=qu(this,b,"child",T),W!==void 0&&b.appendChild(g.V4(W));else if(q){T= 0;for(var G of q)G&&(typeof G==="string"?(q=qu(this,b,"child",G),q!=null&&b.appendChild(g.V4(q))):G.element?b.appendChild(G.element):(X=G,q=this.createElement(X,W),b.appendChild(q),X.TY&&(X=Ta(),q.id=X,q=document.createElementNS("http://www.w3.org/2000/svg","use"),q.setAttribute("class","ytp-svg-shadow"),q.setAttributeNS("http://www.w3.org/1999/xlink","href",`#${X}`),D3(b,q,T++))))}if(M=M.Y){W=b;for(const V of Object.keys(M))G=M[V],XE(this,W,V,typeof G==="string"?qu(this,W,V,G):G)}return b}hn(M){return this.oT[M]}cY(M, W){typeof W==="number"?D3(M,this.element,W):M.appendChild(this.element)}detach(){g.a5(this.element)}update(M){for(const W of Object.keys(M))this.updateValue(W,M[W])}updateValue(M,W){(M=this.U1[`{{${M}}}`])&&XE(this,M[0],M[1],W)}vY(){this.oT={};this.U1={};this.detach();super.vY()}};g.w=class extends g.ig{constructor(M){super(M);this.Ta=!0;this.gK=!1;this.listeners=[]}setContent(M,W){this.updateValue(W||"content",M)}show(){this.Ta||(g.iq(this.element,"display",""),this.Ta=!0)}hide(){this.Ta&&(g.iq(this.element,"display","none"),this.Ta=!1)}eW(M){M?this.show():this.hide()}dG(M){this.gK=M}dS(){return this.Ta}listen(M,W,b){return this.J(this.element,M,W,b)}J(M,W,b,T){b=(0,g.IJ)(b,T||this);T={target:M,type:W,listener:b};this.listeners.push(T);M.addEventListener(W,b);return T}fN(M){this.listeners.forEach((W, b)=>{W===M&&(W=this.listeners.splice(b,1)[0],W.target.removeEventListener(W.type,W.listener))})}focus(){this.element.focus()}vY(){for(;this.listeners.length;){const M=this.listeners.pop(); M&&M.target.removeEventListener(M.type,M.listener)}super.vY()}};g.YV=class extends g.w{constructor(M){super(M);this.vP=new g.b9;g.t(this,this.vP)}subscribe(M,W,b){return this.vP.subscribe(M,W,b)}unsubscribe(M,W,b){return this.vP.unsubscribe(M,W,b)}Jj(M){return this.vP.Jj(M)}publish(M,...W){return this.vP.publish(M,...W)}};var FoQ=new WeakSet,hS=class extends g.YV{constructor(M,W,b,T,q,X,G=null){super(W);this.api=M;this.macros={};this.componentType=b;this.D=this.X=null;this.bV=G;this.layoutId=T;this.interactionLoggingClientData=q;this.Gv=X;this.jT=null;this.us=new fH(this.element);g.t(this,this.us);this.EY=this.J(this.element,"click",this.onClick);this.lV=[];this.BY=new HwS(this.onClick,this);g.t(this,this.BY);this.d9=!1;this.xk=this.Zs=null}bind(M){this.jT||M.renderer&&this.init(M.id,M.renderer,{},M);return Promise.resolve()}init(M, W,b){this.jT=M;this.element.setAttribute("id",this.jT);this.bV&&g.pY(this.element,this.bV);this.Zs=W&&W.adRendererCommands;this.xk=W.interaction;this.xk?.onTap&&g.pY(this.element,"ytp-ad-component--clickable");this.macros=b;this.X=W.trackingParams||null;this.D=g.z(W.rendererContext,Mbt)?.loggingDirectives??W.loggingDirectives;this.X!=null?this.createServerVe(this.element,this.X):this.D&&(M=this.element,W=this.D,this.api.createServerVe(M,this,!0),this.api.setTrackingParams(M,W.trackingParams||null))}clear(){}hide(){super.hide(); (this.X!=null||this.D)&&this.logVisibility(this.element,!1)}show(){super.show();if(!this.d9){this.d9=!0;var M=this.Zs&&this.Zs.impressionCommand;const W=this.xk?.onFirstVisible;M?this.yz(M):W&&(M=iR(W))&&this.yz(M)}(this.X!=null||this.D)&&this.logVisibility(this.element,!0)}onClick(M){if((this.X||this.D)&&!FoQ.has(M)){var W=this.element;this.api.hasVe(W)&&this.Ta&&this.api.logClick(W,this.interactionLoggingClientData);FoQ.add(M)}var b=this.Zs&&this.Zs.clickCommand;W=this.xk?.onTap;if(b){var T=this.XX(b); this.yz(T)}else{if(b=W)a:{b=this.element;M=M.composedPath();for(T of M){if(T===b)break;if(T.className.indexOf("ytp-ad-component--clickable")>=0){b=!1;break a}}b=!0}b&&(T=iR(W))&&this.yz(T)}}XX(M){return M}onTouchStart(M){this.BY.onTouchStart(M)}onTouchMove(M){this.BY.onTouchMove(M)}onTouchEnd(M){if(this.BY)this.BY.onTouchEnd(M)}yz(M){this.layoutId?this.Gv.executeCommand(M,this.layoutId):(M=new g.EF("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}), g.O(M))}createServerVe(M,W){this.api.createServerVe(M,this);this.api.setTrackingParams(M,W)}logVisibility(M,W){this.api.hasVe(M)&&this.api.logVisibility(M,W,this.interactionLoggingClientData)}vY(){this.clear(null);this.fN(this.EY);for(const M of this.lV)this.fN(M);super.vY()}};var rB=class extends hS{constructor(M,W,b,T,q=[],X="button",G=!1,V,J=!1){q={K:"button",rK:["ytp-ad-button"].concat(q)};V!=null&&(q.Y={tabindex:V});super(M,q,X,W,b,T);this.Z=this.V=this.B=null;this.S=G;this.A=J;this.hide()}init(M,W,b){super.init(M,W,b);this.Z=W;if(W.text==null&&W.icon==null)g.lR(Error("ButtonRenderer did not have text or an icon set."));else{switch(W.style||null){case "STYLE_UNKNOWN":M="ytp-ad-button-link";break;default:M=null}M!=null&&g.pY(this.element,M);W.text!=null&&(M=g.Ga(W.text), g.Tp(M)||(this.element.setAttribute("aria-label",M),this.B=new g.YV({K:"span",N:"ytp-ad-button-text",R0:M}),g.t(this,this.B),this.B.cY(this.element)));W.accessibilityData&&W.accessibilityData.accessibilityData&&W.accessibilityData.accessibilityData.label&&!g.Tp(W.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",W.accessibilityData.accessibilityData.label);W.icon!=null&&(W=ZR(W.icon,this.A),W!=null&&(this.V=new g.YV({K:"span",N:"ytp-ad-button-icon",U:[W]}),g.t(this, this.V)),this.S?D3(this.element,this.V.element,0):this.V.cY(this.element))}}clear(){this.hide()}onClick(M){super.onClick(M);for(const W of CvQ(this))this.layoutId?this.Gv.executeCommand(W,this.layoutId):g.O(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)}};var kxs=class extends g.gz{constructor(){super();this.Z=new Map;this.V=b$J(M=>{if(M.target&&(M=this.Z.get(M.target))&&M)for(let W=0;W0&&(this.toggleButton(!this.isToggled()),this.W());super.onClick(M)}W(){g.H(this.A,"ytp-ad-toggle-button-toggled",this.isToggled());for(const M of lqt(this,this.isToggled()))this.layoutId? this.Gv.executeCommand(M,this.layoutId):g.O(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);RI(this)}clear(){this.hide()}toggleButton(M){g.H(this.A,"ytp-ad-toggle-button-toggled",M);this.Z.checked=M;RI(this)}isToggled(){return this.Z.checked}};var FlQ=class{constructor(M,W,b){this.actionType=W;this.id=b;this.content=M}};var AiG=class extends ZS{constructor(M){super();this.Z=M;this.J(this.Z,"onAdUxUpdate",this.C)}C(M){if(Array.isArray(M))for(const W of M)W instanceof FlQ&&this.A(W)}};var RdS=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-feedback-dialog-background",U:[{K:"div",N:"ytp-ad-feedback-dialog-container",U:[{K:"div",N:"ytp-ad-feedback-dialog-form",Y:{role:"dialog",tabindex:"-1"},U:[{K:"div",N:"ytp-ad-feedback-dialog-title",U:[{K:"span",R0:"{{title}}"}]},{K:"span",N:"ytp-ad-info-dialog-feedback-options-title",R0:"{{reasonsTitle}}"},{K:"div",N:"ytp-ad-info-dialog-feedback-options"},{K:"div",N:"ytp-ad-feedback-dialog-confirm-container",U:[{K:"button",N:"ytp-ad-feedback-dialog-cancel-button", R0:"{{cancelLabel}}"},{K:"button",N:"ytp-ad-feedback-dialog-confirm-button",R0:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",W,b,T);this.A=[];this.Z=null;this.S=this.hn("ytp-ad-feedback-dialog-cancel-button");this.C=this.hn("ytp-ad-feedback-dialog-confirm-button");this.O=this.hn("ytp-ad-info-dialog-feedback-options");this.sY=this.hn("ytp-ad-feedback-dialog-title");this.B=this.V=null;this.hide()}init(M,W,b){super.init(M,W,b);W.reasons?W.confirmLabel==null?g.O(Error("AdFeedbackRenderer.confirmLabel was not set.")): (W.cancelLabel==null&&g.lR(Error("AdFeedbackRenderer.cancelLabel was not set.")),W.title==null&&g.lR(Error("AdFeedbackRenderer.title was not set.")),NXs(this,W)):g.O(Error("AdFeedbackRenderer.reasons were not set."))}clear(){QD(this.S);QD(this.C);this.A.length=0;this.hide()}hide(){this.Z&&this.Z.hide();this.V&&this.V.hide();super.hide();this.B&&this.B.focus()}show(){this.Z&&this.Z.show();this.V&&this.V.show();this.B=document.activeElement;super.show();this.S.focus()}W(){this.api.onAdUxClicked("ad-feedback-dialog-close-button", this.layoutId);this.publish("a");this.hide()}An(){this.hide()}},HFy=class{constructor(M,W){this.V=W;this.Z=new g.YV({K:"label",N:"ytp-ad-feedback-dialog-reason-label",U:[{K:"input",N:"ytp-ad-feedback-dialog-reason-input",Y:{type:"radio",name:"feedback-reason-group"}},{K:"span",N:"ytp-ad-feedback-dialog-reason-text",R0:g.Ga(M)}]});this.B=this.Z.hn("ytp-ad-feedback-dialog-reason-input")}BP(){return this.Z.element}getCommand(){return this.V}isChecked(){return this.B.checked}};var xCQ=class extends haq{S(M){super.S(M);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}A(M){super.A(M);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}C(M){super.C(M);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")}};var SuQ=class extends hS{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-ad-info-dialog-background",U:[{K:"div",N:"ytp-ad-info-dialog-container",U:[{K:"div",N:"ytp-ad-info-dialog-form",Y:{role:"dialog",tabindex:"-1"},U:[{K:"div",N:"ytp-ad-info-dialog-title",R0:"{{title}}"},{K:"ul",N:"ytp-ad-info-dialog-ad-reasons"},{K:"div",N:"ytp-ad-info-dialog-message"},{K:"div",N:"ytp-ad-info-dialog-mute-container"},{K:"div",N:"ytp-ad-info-dialog-confirm-container",U:[{K:"button",N:"ytp-ad-info-dialog-confirm-button", R0:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",W,b,T);this.Z=this.V=null;this.C=this.hn("ytp-ad-info-dialog-confirm-button");this.wK=this.hn("ytp-ad-info-dialog-mute-container");this.Lp=this.hn("ytp-ad-info-dialog-message");this.An=this.hn("ytp-ad-info-dialog-ad-reasons");this.A=this.B=null;this.O=q;this.S=null;this.MK=!1;this.W=null;this.hide()}init(M,W,b){super.init(M,W,b);this.S=W;if(W.dialogMessage==null&&W.title==null)g.O(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set.")); else{W.confirmLabel==null&&g.lR(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(M=W.closeOverlayRenderer&&g.z(W.closeOverlayRenderer,gQ)||null)this.Z=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.t(this,this.Z),this.Z.init(WF("button"),M,this.macros),this.Z.cY(this.element);W.title&&(M=g.Ga(W.title),this.updateValue("title",M));if(W.adReasons)for(M=W.adReasons,b=0;bthis.hide()); g.t(this,this.sY);this.MK=0;this.wK=!1;this.OY=X;this.hide()}init(M,W,b){super.init(M,W,b);M=W.durationMilliseconds;typeof M==="number"&&M<0&&g.O(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+M));this.OY&&(this.C?g.pY(this.V.element,"modern-countdown-next-to-thumbnail"):g.pY(this.V.element,"countdown-next-to-thumbnail"));M=W.durationMilliseconds;this.MK=M==null||M===0?this.Z.Kl():M;if(W.templatedCountdown)var T=W.templatedCountdown.templatedAdText;else W.staticPreview&& (T=W.staticPreview);this.A.init(WF("ad-text"),T,b);(T=this.api.getVideoData({playerType:1}))&&T.Ep&&W.thumbnail?this.W.init(WF("ad-image"),W.thumbnail,b):(this.An.hide(),this.C&&this.OY&&g.pY(this.A.element,"ytp-ad-preview-text-modern-postroll"))}clear(){this.hide()}hide(){this.V.hide();this.A.hide();this.W.hide();i9(this);super.hide()}show(){FE(this);this.V.show();this.A.show();this.W.show();super.show()}S(){this.hide()}B(){if(this.Z!=null){var M=this.Z.getProgressState();M!=null&&M.current!=null&& (M=1E3*M.current,!this.wK&&M>=this.MK?(this.sY.hide(),this.wK=!0,this.publish("i")):this.A&&this.A.isTemplated()&&(M=Math.max(0,Math.ceil((this.MK-M)/1E3)),M!=this.Ds&&(xX(this.A,{TIME_REMAINING:String(M)}),this.Ds=M)))}}};var uUa=class extends Sj{constructor(M,W,b,T,q,X){super(M,{K:"div",rK:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{K:"div",N:"ytp-flyout-cta-icon-container"},{K:"div",N:"ytp-flyout-cta-body",U:[{K:"div",N:"ytp-flyout-cta-text-container",U:[{K:"div",N:"ytp-flyout-cta-headline-container"},{K:"div",N:"ytp-flyout-cta-description-container"}]},{K:"div",N:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",W,b,T,q);this.A=new AS(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv, "ytp-flyout-cta-icon");g.t(this,this.A);this.A.cY(this.hn("ytp-flyout-cta-icon-container"));this.A.element.classList.add("ytp-flyout-cta-icon-rounded");this.W=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-flyout-cta-headline");g.t(this,this.W);this.W.cY(this.hn("ytp-flyout-cta-headline-container"));this.C=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-flyout-cta-description");g.t(this,this.C);this.C.cY(this.hn("ytp-flyout-cta-description-container")); this.V=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-flyout-cta-action-button","ytp-flyout-cta-action-button-rounded"]);g.t(this,this.V);this.V.cY(this.hn("ytp-flyout-cta-action-button-container"));this.V.element.setAttribute("tabIndex","-1");Af(this.V.element);this.sY=null;this.MK=0;this.wK=X;this.hide()}init(M,W,b){super.init(M,W,b);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if((M=W.actionButton&&g.z(W.actionButton,gQ))&&M.navigationEndpoint){const q= this.api.getVideoData({playerType:2});if(q!=null)if(W.image&&W.image.thumbnail){var T=W.image.thumbnail.thumbnails;T!=null&&T.length>0&&g.Tp(g.JY(T[0].url))&&(T[0].url=q.profilePicture)}else g.lR(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.A.init(WF("ad-image"),W.image,b);this.W.init(WF("ad-text"),W.headline,b);this.C.init(WF("ad-text"),W.description,b);this.V.init(WF("button"),M,b);b=SO(this.V.element);uT(this.V.element,b+" This link opens in new tab");this.sY=M.navigationEndpoint; this.api.CV()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.An.bind(this));this.MK=W.startMs||0;FE(this)}else g.O(Error("FlyoutCtaRenderer has no valid action button."));else g.O(Error("FlyoutCtaRenderer has no description AdText."));else g.O(Error("FlyoutCtaRenderer has no headline AdText."));else g.lR(Error("FlyoutCtaRenderer has no image."))}onClick(M){super.onClick(M);this.api.pauseVideo();!g.ES(this.V.element,M.target)&&this.sY&&(this.layoutId?this.Gv.executeCommand(this.sY, this.layoutId):g.O(Error("Missing layoutId for flyout cta.")))}B(){if(this.Z){var M=this.Z.getProgressState();(M&&M.current||this.wK)&&1E3*M.current>=this.MK&&(i9(this),g.Mw(this.element,"ytp-flyout-cta-inactive"),this.V.element.removeAttribute("tabIndex"))}}S(){this.clear()}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.An.bind(this))}show(){this.V&&this.V.show();super.show()}hide(){this.V&&this.V.hide();super.hide()}An(M){M=="hidden"?this.show():this.hide()}};var Sws=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",W,b,T,null);this.Z=null;this.B=new zz(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-instream-user-sentiment-like-button"]);g.t(this,this.B);this.B.cY(this.element);this.V=new zz(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-instream-user-sentiment-dislike-button"]);g.t(this,this.V);this.V.cY(this.element);this.A= new g.Ol(this,400,!1,500,()=>this.hide()); g.t(this,this.A);this.hide()}init(M,W,b){super.init(M,W,b);this.Z=W;if(this.Z.rectangle){M=this.Z.likeButton&&g.z(this.Z.likeButton,LH);W=this.Z.dislikeButton&&g.z(this.Z.dislikeButton,LH);this.B.init(WF("toggle-button"),M,b);this.V.init(WF("toggle-button"),W,b);this.J(this.element,"change",this.S);this.A.show(100);this.show();for(const T of this.Z&&this.Z.impressionCommands||[])this.layoutId?this.Gv.executeCommand(T,this.layoutId):g.O(Error("Missing layoutId for instream user sentiment."))}}clear(){this.hide()}hide(){this.B.hide(); this.V.hide();super.hide()}show(){this.B.show();this.V.show();super.show()}S(){bs(this.element,"ytp-ad-instream-user-sentiment-selected");this.Z.postMessageAction&&g.q8(this.api,"onYtShowToast",this.Z.postMessageAction);this.A.hide()}onClick(M){this.lV.length>0&&this.S();super.onClick(M)}};var ej=class extends g.gz{constructor(M,W,b,T,q=0,X=!1){super();this.V=M;this.B=!1;this.Zs=T;this.sY=X;this.C=!1;this.Z=null;W>0&&(this.Z=new g.d9(this.gK,W,this),g.t(this,this.Z));this.S=new g.d9(this.gK,b,this);g.t(this,this.S);this.O=XT(this.V,q,1,T);g.t(this,this.O);this.W=XT(this.V,0,T,1);g.t(this,this.W);this.A=new ZS;g.t(this,this.A)}vY(){this.reset();super.vY()}reset(){this.A.V();this.C=!1;this.Z&&this.Z.stop();this.S.stop();this.B&&(this.B=!1,this.W.play())}start(){this.reset();this.A.J(this.V, "mouseover",this.X,this);this.A.J(this.V,"mouseout",this.D,this);this.sY&&(this.A.J(this.V,"focusin",this.X,this),this.A.J(this.V,"focusout",this.D,this));this.Z?this.Z.start():(this.C=this.B=!0,g.iq(this.V,{opacity:this.Zs}))}X(){this.B&&(this.B=!1,this.W.play());this.S.stop();this.Z&&this.Z.stop()}D(){this.C?this.S.start():this.Z&&this.Z.start()}gK(){this.B||(this.B=!0,this.O.play(),this.C=!0)}};var dJ=class{constructor(M,W){this.V=M;this.Z=W}},dCJ=[new dJ("b.f_",0),new dJ("j.s_",2),new dJ("r.s_",4),new dJ("e.h_",6),new dJ("i.s_",8),new dJ("s.t_",10),new dJ("p.h_",12),new dJ("s.i_",14),new dJ("f.i_",16),new dJ("a.b_",18),new dJ("a.o_"),new dJ("g.o_",22),new dJ("p.i_",24),new dJ("p.m_"),new dJ("n.k_",20),new dJ("i.f_"),new dJ("a.s_"),new dJ("m.c_"),new dJ("n.h_",26),new dJ("o.p_"),new dJ("m.p_",28),new dJ("o.a_"),new dJ("d.p_"),new dJ("e.i_")].reduce((M,W)=>{M[W.V]=W;return M},{});g.yB=class{constructor(M,W){this.state=M;this.oldState=W}QN(M){return u9(this,M)>0}};var OwG=class extends Sj{constructor(M,W,b,T,q,X){super(M,{K:"div",N:"ytp-ad-skip-button-slot"},"skip-button",W,b,T,q);this.sY=null;this.An=!1;this.wK=X;this.W=this.api.G().experiments.FX("enable_modern_skip_button_on_web");this.Ds=!1;this.C=new g.YV({K:"span",rK:["ytp-ad-skip-button-container"]});this.W&&this.C.element.classList.add("ytp-ad-skip-button-container-detached");g.t(this,this.C);this.C.cY(this.element);this.V=this.A=null;this.OY=new g.Ol(this.C,500,!1,100,()=>this.hide()); g.t(this,this.OY);this.MK=new ej(this.C.element,15E3,5E3,.5,.5,this.W);g.t(this,this.MK);this.hide()}init(M,W,b){super.init(M,W,b);this.sY=W;(this.An=cXJ(this))&&g.lR(Error("hasAdControlInClickCommands_ is true."));!W||g.P$(W)?g.O(Error("SkipButtonRenderer was not specified or empty.")):!W.message||g.P$(W.message)?g.O(Error("SkipButtonRenderer.message was not specified or empty.")):(M=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},W=this.api.G().j("delhi_modern_web_player_icons"),W=ZR(M, !1,!1,W),W==null?g.O(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+M.iconType+".")):(this.api.G().j("disable_touch_events_on_skip_button")&&(W.Y={...W.Y,"aria-hidden":"true",focusable:"false"}),this.A=new g.YV({K:"button",rK:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],U:[{K:"span",N:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",U:[W]}]}),g.t(this,this.A),this.A.cY(this.C.element),this.V=new ug(this.api,this.layoutId,this.interactionLoggingClientData, this.Gv,"ytp-ad-skip-button-text"),this.W&&this.V.element.classList.add("ytp-ad-skip-button-text-centered"),this.V.init(WF("ad-text"),this.sY.message,b),g.t(this,this.V),D3(this.A.element,this.V.element,0)),this.api.G().j("disable_touch_events_on_skip_button")||(b=this.api.G(),!(this.lV.length>0)&&b.V&&(Rl?0:"ontouchstart"in document.documentElement&&(qI()||TN()))&&(this.fN(this.EY),this.lV=[this.J(this.element,"touchstart",this.onTouchStart,this),this.J(this.element,"touchmove",this.onTouchMove, this),this.J(this.element,"touchend",this.onTouchEnd,this)])))}clear(){this.MK.reset();this.hide()}hide(){this.C.hide();this.V&&this.V.hide();i9(this);super.hide()}onClick(M){if(this.A!=null){if(M){var W=M||window.event;W.returnValue=!1;W.preventDefault&&W.preventDefault()}if(Pvg(M,{contentCpn:this.api.getVideoData({playerType:1})?.clientPlaybackNonce||""})===0)g.q8(this.api,"onAbnormalityDetected");else if(super.onClick(M),this.publish("j"),g.q8(this.api,"onAdSkip"),this.wK||!this.An)this.api.onAdUxClicked(this.componentType, this.layoutId)}}XX(M){if(!this.wK)return this.An&&za("SkipButton click commands not pruned while ALC exist"),M;const W=g.z(M,g.Sw)?.commands;if(!W)return M;M=[];for(let b=0;b=this.W&&Q3l(this,!0)}};var POt=class extends rB{constructor(M,W,b,T){super(M,W,b,T,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}init(M,W,b){super.init(M,W,b);M=!1;W.text!=null&&(M=g.Ga(W.text),M=!g.Tp(M));M?W.navigationEndpoint==null?g.lR(Error("No visit advertiser clickthrough provided in renderer,")):W.style!=="STYLE_UNKNOWN"?g.lR(Error("Button style was not a link-style type in renderer,")):this.show():g.lR(Error("No visit advertiser text was present in the renderer."))}};var ou=class extends hS{constructor(M,W,b,T,q=!1,X=!1){super(M,{K:"span",N:"ytp-ad-simple-ad-badge"},"simple-ad-badge",W,b,T);this.Z=this.hn("ytp-ad-simple-ad-badge");(this.V=q)&&this.Z.classList.add("ytp-ad-simple-ad-badge--clean-player");X&&this.Z.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}init(M,W,b){super.init(M,W,b);M=W.text;g.Tp(jw(M))?g.lR(Error("SimpleAdBadgeRenderer has invalid or empty text")):(M&&M.text&&(W=M.text,this.V||(W=this.api.G(),W=M.text+" "+(W&&W.V?"\u2022":"\u00b7")), W={text:W,isTemplated:M.isTemplated},M.style&&(W.style=M.style),M.targetId&&(W.targetId=M.targetId),M=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),M.init(WF("simple-ad-badge"),W,b),M.cY(this.element),g.t(this,M)),this.show())}clear(){this.hide()}};var cL=class extends FI{constructor(M,W,b,T,q=!1){super("player-overlay",M,{},W,T);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=T;this.NS=q}};var Gc=class extends g.b9{constructor(M,W){super();this.api=M;this.durationMs=W;this.Z=null;this.handler=new ZS(this);g.t(this,this.handler);this.V=zaL;this.handler.J(this.api,"presentingplayerstatechange",this.B);this.Z=this.handler.J(this.api,"onAdPlaybackProgress",this.SR)}Kl(){return this.durationMs}stop(){this.Z&&this.handler.fN(this.Z)}SR(M){this.V={seekableStart:0,seekableEnd:this.durationMs/1E3,current:M.current};this.publish("h")}getProgressState(){return this.V}B(M){M.QN(2)&&this.publish("g")}};var QF=class extends g.b9{constructor(M){super();this.Z=!1;this.tD=0;this.handler=new ZS(this);g.t(this,this.handler);this.durationMs=M;this.timer=new g.$N(100);g.t(this,this.timer);this.handler.J(this.timer,"tick",this.SR);this.V={seekableStart:0,seekableEnd:M/1E3,current:0};this.start()}Kl(){return this.durationMs}start(){this.Z||(this.Z=!0,this.timer.start())}stop(){this.Z&&(this.Z=!1,this.timer.stop())}SR(){this.tD+=100;let M=!1;this.tD>this.durationMs&&(this.tD=this.durationMs,this.timer.stop(), M=!0);this.V={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.tD/1E3};this.publish("h");M&&this.publish("g")}getProgressState(){return this.V}};var gJ=class extends Sj{constructor(M,W,b,T,q,X,G){super(M,{K:"span",N:G?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",W,b,T,q);this.videoAdDurationSeconds=X;this.V=null;G&&this.api.G().V&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),$w&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}init(M,W,b){super.init(M,W,b);if(W?.templatedCountdown?.templatedAdText){M=W.templatedCountdown.templatedAdText;if(!M.isTemplated){g.lR(Error("AdDurationRemainingRenderer has no templated ad text.")); return}this.V=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);this.V.init(WF("ad-text"),M,{});this.V.cY(this.element);g.t(this,this.V)}this.show()}clear(){this.hide()}hide(){i9(this);super.hide()}S(){this.hide()}B(){if(this.Z!=null){var M=this.Z.getProgressState();if(M!=null&&M.current!=null&&this.V){var W=this.Z instanceof Gc?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:M.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Z instanceof QF?M.seekableEnd:this.api.getDuration(2,!1);M=M.current;W=this.api.getVideoData()?.FD?.()?Math.max(W-M,0):W-M;xX(this.V,{FORMATTED_AD_DURATION_REMAINING:String(g.O3(W)),TIME_REMAINING:String(Math.ceil(W))})}}}show(){FE(this);super.show()}};var eat=class extends ug{constructor(M,W,b,T){super(M,W,b,T,"ytp-video-ad-top-bar-title","ad-title")}onClick(M){super.onClick(M);this.api.onAdUxClicked(this.componentType)}};var sl=class{constructor(M){this.content=M.content;if(M.commandRuns)for(const W of M.commandRuns)this.loggingDirectives=g.z(W,iCG),W.onTap&&(this.interaction={onTap:W.onTap})}},wJ=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ad-simple-attributed-string"},"ad-simple-attributed-string",W,b,T);this.hide()}init(M,W){super.init(M,W,{});(M=W.content)?(g.nr(this.element,M),this.element.setAttribute("aria-label",W.interaction?.accessibility?.label||M)):g.O(Error("AdSimpleAttributedString does not have text content"))}clear(){this.hide()}onClick(M){super.onClick(M)}};var pH=class extends hS{constructor(M,W,b,T,q){super(M,{K:"span",N:q?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",W,b,T);this.V=q;this.adBadgeText=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);this.adBadgeText.cY(this.element);g.t(this,this.adBadgeText);q?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),$w&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text"); this.hide()}init(M,W){super.init(M,W,{});(M=W.label)&&M.content&&!g.Tp(M.content)?(this.adBadgeText.init(WF("ad-simple-attributed-string"),new sl(M)),(W=W.adPodIndex)&&W.content&&!g.Tp(W.content)&&(this.Z=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),this.Z.cY(this.element),g.t(this,this.Z),this.Z.element.classList.add("ytp-ad-badge__pod-index"),this.Z.init(WF("ad-simple-attributed-string"),new sl(W))),this.element.classList.add(this.V?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.O(Error("No label is returned in AdBadgeViewModel."))}show(){this.adBadgeText.show();this.Z?.show();super.show()}hide(){this.adBadgeText.hide();this.Z?.hide();super.hide()}};var dUG=class extends hS{constructor(M,W,b,T){super(M,{K:"span",N:"ytp-ad-pod-index"},"ad-pod-index",W,b,T);this.api.G().V&&(this.element.classList.add("ytp-ad-pod-index--mweb"),$w&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}init(M,W){super.init(M,W,{});(M=W.adPodIndex)&&M.content&&!g.Tp(M.content)&&(this.Z=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),this.Z.cY(this.element),g.t(this,this.Z),this.Z.init(WF("ad-simple-attributed-string"),new sl(M)), W.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}show(){this.Z?.show();super.show()}hide(){this.Z?.hide();super.hide()}};var ooQ=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",W,b,T);this.hide()}init(M,W){super.init(M,W,{});W?.text?W.text?.content&&!g.Tp(W.text.content)&&(this.Z=new g.YV({K:"div",N:"ytp-ad-disclosure-banner__text",R0:W.text.content}),g.t(this,this.Z),this.Z.cY(this.element),this.api.G().j("enable_ad_disclosure_banner_a11y_fix")?((M=W.interaction?.accessibility?.label)||(M=`${W.text.content} ${"This link opens in new tab"}`),uT(this.element, M)):this.element.setAttribute("aria-label",W.interaction?.accessibility?.label||W.text.content),W.interaction?.onTap&&(this.api.G().j("remove_chevron_from_ad_disclosure_banner_h5")||(this.V=new g.YV({K:"div",N:"ytp-ad-disclosure-banner__chevron",U:[g.DR()]}),g.t(this,this.V),this.V.cY(this.element)),this.api.G().j("enable_ad_disclosure_banner_a11y_fix")&&(Af(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.oV))),this.show()):g.O(Error("No banner text found in AdDisclosureBanner."))}oV(M){if(M.key=== "Enter"||M.key===" ")M.preventDefault(),this.element.click()}clear(){this.hide()}};var Dn=class{constructor(M,W){this.V=M;this.Z=W}};var V$=class extends g.YV{constructor(M,W,b,T=!1){super({K:"div",N:"ytp-ad-persistent-progress-bar-container",U:[{K:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=M;this.V=W;this.B=b;T&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.t(this,this.V);this.progressBar=this.hn("ytp-ad-persistent-progress-bar");this.Z=-1;this.J(M,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}SR(){const M=this.V.getProgressState();let W= M.seekableEnd;this.api.getPresentingPlayerType()===2&&(W=this.B?this.B/1E3:M.seekableEnd);this.progressBar.style.width=ew(new Dn(M.seekableStart,W),M.current,0)*100+"%"}onStateChange(){g.WQ(this.api.G())||(this.api.getPresentingPlayerType()===2?this.Z===-1&&(this.show(),this.Z=this.V.subscribe("h",this.SR,this),this.SR()):this.Z!==-1&&(this.hide(),this.V.Jj(this.Z),this.Z=-1))}};var R0a=class extends hS{constructor(M,W,b,T,q,X){super(M,{K:"div",N:"ytp-ad-player-overlay",U:[{K:"div",N:"ytp-ad-player-overlay-flyout-cta"},{K:"div",N:"ytp-ad-player-overlay-instream-info"},{K:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",N:"ytp-ad-player-overlay-progress-bar"},{K:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",N:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",W,b,T);this.C=X;this.S=this.hn("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Z=this.hn("ytp-ad-player-overlay-instream-info");this.A=null;s3t(this)&&(M=jU("div"),g.pY(M,"ytp-ad-player-overlay-top-bar-gradients"),W=M,b=this.Z,b.parentNode&&b.parentNode.insertBefore(W,b),(W=this.api.getVideoData({playerType:2}))&&W.isListed&&W.title&&(b=new eat(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),b.cY(M),b.init(WF("ad-title"),{text:W.title},this.macros),g.t(this,b)),this.A=M);this.B=null;this.An=this.hn("ytp-ad-player-overlay-skip-or-preview");this.sY=this.hn("ytp-ad-player-overlay-progress-bar"); this.O=this.hn("ytp-ad-player-overlay-instream-user-sentiment");this.W=this.hn("ytp-ad-player-overlay-ad-disclosure-banner");this.V=q;g.t(this,this.V);this.hide()}init(M,W,b,T){super.init(M,W,b);if(W.skipOrPreviewRenderer){if(M=g.z(W.skipOrPreviewRenderer,xa))b=new XM(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V,this.C),b.cY(this.An),b.init(WF("skip-button"),M,this.macros),g.t(this,b);if(M=g.z(W.skipOrPreviewRenderer,xa))var q=M.skipOffsetMilliseconds}W.brandInteractionRenderer&& (M=W.brandInteractionRenderer.brandInteractionRenderer,b=new Sws(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),b.cY(this.O),b.init(WF("instream-user-sentiment"),M,this.macros),g.t(this,b));if(M=g.z(W,TTG))if(b=g.z(M,TTG))M=new uUa(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V,!!W.showWithoutLinkedMediaLayout),g.t(this,M),M.cY(this.S),M.init(WF("flyout-cta"),b,this.macros);T=T&&T.videoAdDurationSeconds;W.adBadgeRenderer&&(b=W.adBadgeRenderer,M=g.z(b,DT), M!=null?(b=new pH(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!1),g.t(this,b),b.cY(this.Z),b.init(WF("ad-badge"),M,this.macros),this.B=b.element):(M=b.simpleAdBadgeRenderer,M==null&&(M={text:{text:"Anuncio",isTemplated:!1}}),b=new ou(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,b),b.cY(this.Z),b.init(WF("simple-ad-badge"),M,this.macros)));W.adPodIndex&&(M=g.z(W.adPodIndex,E6L),M!=null&&(b=new dUG(this.api,this.layoutId,this.interactionLoggingClientData, this.Gv),g.t(this,b),b.cY(this.Z),b.init(WF("ad-pod-index"),M)));W.adDurationRemaining&&!W.showWithoutLinkedMediaLayout&&(M=W.adDurationRemaining.adDurationRemainingRenderer,M==null&&(M={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),T=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V,T,!1),g.t(this,T),T.cY(this.Z),T.init(WF("ad-duration-remaining"),M,this.macros));W.adInfoRenderer&&(T=g.z(W.adInfoRenderer,Ud))&&(M=new WP(this.api, this.layoutId,this.interactionLoggingClientData,this.Gv,this.element,void 0,!1),g.t(this,M),this.B!==null?this.Z.insertBefore(M.element,this.B.nextSibling):M.cY(this.Z),M.init(WF("ad-info-hover-text-button"),T,this.macros));W.visitAdvertiserRenderer&&(M=g.z(W.visitAdvertiserRenderer,gQ))&&(b=s3t(this)&&this.A?this.A:this.Z)&&(T=new POt(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,T),T.cY(b),T.init(WF("visit-advertiser"),M,this.macros),Af(T.element),M=SO(T.element),uT(T.element, M+" This link opens in new tab"));!(T=this.api.G())||g.bb(T)||g.tP(T)||T.controlsType!="3"&&!T.disableOrganicUi||(q=new V$(this.api,this.V,q,!1),q.cY(this.sY),g.t(this,q));W.adDisclosureBannerRenderer&&(q=g.z(W.adDisclosureBannerRenderer,a8P))&&(W=new ooQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),W.cY(this.W),W.init(WF("ad-disclosure-banner"),q),g.t(this,W));this.api.G().j("enable_updated_html5_player_focus_style")&&g.pY(this.element,"ytp-ad-player-overlay-updated-focus-style"); this.show()}clear(){this.hide()}};var cit=class{flush(M=[],W=!1){if(g.he("enable_client_streamz_web"))for(const b of M)M=tc(b),this.Z&&gN(M,kQq,2,this.Z),M={serializedIncrementBatch:g.Id(M.V())},g.V9("streamzIncremented",M,{sendIsolatedPayload:W})}},wIl=class extends cit{constructor(){super()}},bEl=class extends cit{constructor(M){super();var W=new kQq;var b=new Chl;b=XK(b,1,"botguard");M=XK(b,2,M);this.Z=sN(W,Chl,1,KQP,M)}};var cF,WsL=new Map;var PBL=class{constructor(M){this.Z=new HN(M)}set(M,W,b){b=b!==void 0?Date.now()+b:void 0;this.Z.set(M,W,b)}get(M){return this.Z.get(M)}remove(M){this.Z.remove(M)}};var Yus=null;var YX=null,$D=null,MV=null,TiP=null;g.Uq("yt.www.ads.eventcache.getLastCompanionData",function(){return YX}); g.Uq("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Uq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return $D}); g.Uq("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return MV}); g.Uq("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return TiP});var jgs=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var bA=class{constructor(){this.Z={};if(this.V=Xi()){const M=g.Ql("CONSISTENCY");M&&Vkq(this,{encryptedTokenJarContents:M})}}handleResponse(M,W){if(!W)throw Error("request needs to be passed into ConsistencyService");W=W.Sp.context?.request?.consistencyTokenJars||[];(M=M.responseContext?.consistencyTokenJar)&&this.replace(W,M)}replace(M,W){for(const b of M)delete this.Z[b.encryptedTokenJarContents];Vkq(this,W)}};var Qqg=window.location.hostname.split(".").slice(-2).join("."),TX=class{constructor(){this.V=-1;let M=g.F("LOCATION_PLAYABILITY_TOKEN");g.F("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=WZ(this))&&(M=this.localStorage.get("yt-location-playability-token"));M&&(this.locationPlayabilityToken=M,this.Z=void 0)}static getInstance(){Y_=g.Ct("yt.clientLocationService.instance");Y_||(Y_=new TX,g.Uq("yt.clientLocationService.instance",Y_));return Y_}setLocationOnInnerTubeContext(M){M.client||(M.client= {});if(this.Z)M.client.locationInfo||(M.client.locationInfo={}),M.client.locationInfo.latitudeE7=Math.floor(this.Z.coords.latitude*1E7),M.client.locationInfo.longitudeE7=Math.floor(this.Z.coords.longitude*1E7),M.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Z.coords.accuracy),M.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.B||this.locationPlayabilityToken)M.client.locationPlayabilityToken=this.B||this.locationPlayabilityToken}handleResponse(M){M=M.responseContext?.locationPlayabilityToken; M!==void 0&&(this.locationPlayabilityToken=M,this.Z=void 0,g.F("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=WZ(this))&&this.localStorage.set("yt-location-playability-token",M,15552E3):g.Td("YT_CL",JSON.stringify({loctok:M}),15552E3,Qqg,!0))}clearLocationPlayabilityToken(M){M==="TVHTML5"?(this.localStorage=WZ(this))&&this.localStorage.remove("yt-location-playability-token"):g.qG("YT_CL");this.B=void 0;this.V!==-1&&(clearTimeout(this.V),this.V=-1)}getCurrentPositionFromGeolocation(){if(!(navigator&& navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));let M=!1,W=1E4;g.F("INNERTUBE_CLIENT_NAME")==="MWEB"&&(M=!0,W=15E3);return new Promise((b,T)=>{navigator.geolocation.getCurrentPosition(q=>{this.Z=q;b(q)},q=>{T(q)},{enableHighAccuracy:M, maximumAge:0,timeout:W})})}createUnpluggedLocationInfo(M){const W={}; M=M.coords;M?.latitude&&(W.latitudeE7=Math.floor(M.latitude*1E7));M?.longitude&&(W.longitudeE7=Math.floor(M.longitude*1E7));M?.accuracy&&(W.locationRadiusMeters=Math.round(M.accuracy));return W}createLocationInfo(M){const W={};M=M.coords;M?.latitude&&(W.latitudeE7=Math.floor(M.latitude*1E7));M?.longitude&&(W.longitudeE7=Math.floor(M.longitude*1E7));return W}},Y_;var gos=class{constructor(){this.Z={}}contains(M){return Object.prototype.hasOwnProperty.call(this.Z,M)}get(M){if(this.contains(M))return this.Z[M]}set(M,W){this.Z[M]=W}Z4(){return Object.keys(this.Z)}remove(M){delete this.Z[M]}};new class{constructor(){this.mappings=new gos}get(M){a:{var W=this.mappings.get(M.toString());switch(W.type){case "mapping":M=W.value;break a;case "factory":W=W.value();this.mappings.set(M.toString(),{type:"mapping",value:W});M=W;break a;default:M=PX(W,void 0)}}return M}registerService(M,W){this.mappings.set(M.toString(),{type:"mapping",value:W});return M}};var nQq={WEB_UNPLUGGED:"^unplugged/",WEB_UNPLUGGED_ONBOARDING:"^unplugged/",WEB_UNPLUGGED_OPS:"^unplugged/",WEB_UNPLUGGED_PUBLIC:"^unplugged/",WEB_CREATOR:"^creator/",WEB_KIDS:"^kids/",WEB_EXPERIMENTS:"^experiments/",WEB_MUSIC:"^music/",WEB_REMIX:"^music/",WEB_MUSIC_EMBEDDED_PLAYER:"^music/",WEB_MUSIC_EMBEDDED_PLAYER:"^main_app/|^sfv/"};var sqt=class{S(M,W={},b=kw){var T={context:g.ok(M.clickTrackingParams,!1,this.A)};var q=this.V(M);if(q)return this.Z(T,q,W),W=g.XN(this.B()),(q=g.z(M.commandMetadata,g.vL)?.apiUrl)&&(W=q),W=Nvl(j9(W)),M={command:M,...(void 0)},T={input:W,DI:Gd(W),Sp:T,config:M},T.config.mD?T.config.mD.identity=b:T.config.mD={identity:b},T;b=new g.EF("Error: Failed to create Request from Command.",M);g.O(b)}get A(){return!1}},$k=class extends sqt{};var wYy={GET_DATASYNC_IDS:qV(class extends $k{S(){return{input:"/getDatasyncIdsEndpoint",DI:Gd("/getDatasyncIdsEndpoint","GET"),Sp:{}}}B(){return[]}V(){}Z(){}})};var mSa=Ae("ytcsi_debug_max_size",100);var ZNt={auto_search:"LATENCY_ACTION_AUTO_SEARCH",ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",app_startup:"LATENCY_ACTION_APP_STARTUP",browse:"LATENCY_ACTION_BROWSE",cast_splash:"LATENCY_ACTION_CAST_SPLASH",channel_activity:"LATENCY_ACTION_FAMILY_CENTER_CHANNEL_ACTIVITY",channels:"LATENCY_ACTION_CHANNELS",chips:"LATENCY_ACTION_CHIPS",commerce_transaction:"LATENCY_ACTION_COMMERCE_TRANSACTION",direct_playback:"LATENCY_ACTION_DIRECT_PLAYBACK",editor:"LATENCY_ACTION_EDITOR", embed:"LATENCY_ACTION_EMBED",embed_no_video:"LATENCY_ACTION_EMBED_NO_VIDEO",entity_key_serialization_perf:"LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",entity_key_deserialization_perf:"LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",explore:"LATENCY_ACTION_EXPLORE",favorites:"LATENCY_ACTION_FAVORITES",home:"LATENCY_ACTION_HOME",inboarding:"LATENCY_ACTION_INBOARDING",landing:"LATENCY_ACTION_LANDING",learning:"LATENCY_ACTION_LEARNING",learning_journey_browse:"LATENCY_ACTION_LEARNING_JOURNEY_BROWSE", learning_journey_watch:"LATENCY_ACTION_LEARNING_JOURNEY_WATCH",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",live_pagination:"LATENCY_ACTION_LIVE_PAGINATION",management:"LATENCY_ACTION_MANAGEMENT",mini_app:"LATENCY_ACTION_MINI_APP_PLAY",notification_settings:"LATENCY_ACTION_FAMILY_CENTER_NOTIFICATION_SETTINGS",onboarding:"LATENCY_ACTION_ONBOARDING",parent_profile_settings:"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",parent_tools_collection:"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",parent_tools_dashboard:"LATENCY_ACTION_PARENT_TOOLS_DASHBOARD", player_att:"LATENCY_ACTION_PLAYER_ATTESTATION",prebuffer:"LATENCY_ACTION_PREBUFFER",prefetch:"LATENCY_ACTION_PREFETCH",profile_settings:"LATENCY_ACTION_KIDS_PROFILE_SETTINGS",profile_switcher:"LATENCY_ACTION_LOGIN",projects:"LATENCY_ACTION_PROJECTS",reel_watch:"LATENCY_ACTION_REEL_WATCH",results:"LATENCY_ACTION_RESULTS",red:"LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",premium:"LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",privacy_policy:"LATENCY_ACTION_FAMILY_CENTER_PRIVACY_POLICY",review:"LATENCY_ACTION_REVIEW", search_overview_answer:"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",search_ui:"LATENCY_ACTION_SEARCH_UI",search_suggest:"LATENCY_ACTION_SUGGEST",search_zero_state:"LATENCY_ACTION_SEARCH_ZERO_STATE",secret_code:"LATENCY_ACTION_KIDS_SECRET_CODE",switchplan:"LATENCY_ACTION_UNPLUGGED_SWITCH_PLAN",seek:"LATENCY_ACTION_PLAYER_SEEK",settings:"LATENCY_ACTION_SETTINGS",store:"LATENCY_ACTION_STORE",supervision_dashboard:"LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_DASHBOARD",bedtime_reminder_settings:"LATENCY_ACTION_FAMILY_CENTER_BEDTIME_REMINDER_SETTINGS", break_reminder_settings:"LATENCY_ACTION_FAMILY_CENTER_BREAK_REMINDER_SETTINGS",supervision_settings_dashboard:"LATENCY_ACTION_FAMILY_CENTER_SUPERVISION_SETTINGS_DASHBOARD",time_management:"LATENCY_ACTION_FAMILY_CENTER_TIME_MANAGEMENT",update_profile:"LATENCY_ACTION_FAMILY_CENTER_UPDATE_PROFILE",viewing_permissions:"LATENCY_ACTION_FAMILY_CENTER_VIEWING_PERMISSIONS",shorts_settings:"LATENCY_ACTION_FAMILY_CENTER_SHORTS_SETTINGS",privacy_settings:"LATENCY_ACTION_FAMILY_CENTER_PRIVACY_SETTINGS",tenx:"LATENCY_ACTION_TENX", video_preview:"LATENCY_ACTION_VIDEO_PREVIEW",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH",watch_it_again:"LATENCY_ACTION_KIDS_WATCH_IT_AGAIN","watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH","watch,watch7ad_html5":"LATENCY_ACTION_WATCH",wn_comments:"LATENCY_ACTION_LOAD_COMMENTS",ww_rqs:"LATENCY_ACTION_WHO_IS_WATCHING",voice_assistant:"LATENCY_ACTION_VOICE_ASSISTANT",cast_load_by_entity_to_watch:"LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH", networkless_performance:"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",gel_compression:"LATENCY_ACTION_GEL_COMPRESSION",gel_jspb_serialize:"LATENCY_ACTION_GEL_JSPB_SERIALIZE",attestation_challenge_fetch:"LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH"}; Object.assign(ZNt,{"analytics.explore":"LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE","artist.analytics":"LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS","artist.events":"LATENCY_ACTION_CREATOR_ARTIST_CONCERTS","artist.presskit":"LATENCY_ACTION_CREATOR_ARTIST_PROFILE","asset.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS","asset.composition":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION","asset.composition_ownership":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP","asset.composition_policy":"LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY", "asset.embeds":"LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS","asset.history":"LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY","asset.issues":"LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES","asset.licenses":"LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES","asset.metadata":"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA","asset.ownership":"LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP","asset.potential_embeds":"LATENCY_ACTION_CREATOR_CMS_ASSET_POTENTIAL_EMBEDS","asset.policy":"LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY","asset.references":"LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES", "asset.shares":"LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES","asset.sound_recordings":"LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS","asset_group.assets":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS","asset_group.campaigns":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS","asset_group.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS","asset_group.metadata":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA","song.analytics":"LATENCY_ACTION_CREATOR_SONG_ANALYTICS",creator_channel_dashboard:"LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD", "channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.comments":"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS","channel.content":"LATENCY_ACTION_CREATOR_POST_LIST","channel.content.promotions":"LATENCY_ACTION_CREATOR_PROMOTION_LIST","channel.copyright":"LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT","channel.editing":"LATENCY_ACTION_CREATOR_CHANNEL_EDITING","channel.monetization":"LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION","channel.music":"LATENCY_ACTION_CREATOR_CHANNEL_MUSIC","channel.music_storefront":"LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", "channel.playlists":"LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS","channel.translations":"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS","channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS","channel.live_streaming":"LATENCY_ACTION_CREATOR_LIVE_STREAMING","dialog.copyright_strikes":"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES","dialog.video_copyright":"LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT","dialog.uploads":"LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",owner:"LATENCY_ACTION_CREATOR_CMS_DASHBOARD", "owner.allowlist":"LATENCY_ACTION_CREATOR_CMS_ALLOWLIST","owner.analytics":"LATENCY_ACTION_CREATOR_CMS_ANALYTICS","owner.art_tracks":"LATENCY_ACTION_CREATOR_CMS_ART_TRACKS","owner.assets":"LATENCY_ACTION_CREATOR_CMS_ASSETS","owner.asset_groups":"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS","owner.bulk":"LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY","owner.campaigns":"LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS","owner.channel_invites":"LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES","owner.channels":"LATENCY_ACTION_CREATOR_CMS_CHANNELS", "owner.claimed_videos":"LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS","owner.claims":"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING","owner.claims.manual":"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING","owner.delivery":"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY","owner.delivery_templates":"LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES","owner.issues":"LATENCY_ACTION_CREATOR_CMS_ISSUES","owner.licenses":"LATENCY_ACTION_CREATOR_CMS_LICENSES","owner.pitch_music":"LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC","owner.policies":"LATENCY_ACTION_CREATOR_CMS_POLICIES", "owner.releases":"LATENCY_ACTION_CREATOR_CMS_RELEASES","owner.reports":"LATENCY_ACTION_CREATOR_CMS_REPORTS","owner.videos":"LATENCY_ACTION_CREATOR_CMS_VIDEOS","playlist.videos":"LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST","post.comments":"LATENCY_ACTION_CREATOR_POST_COMMENTS","post.edit":"LATENCY_ACTION_CREATOR_POST_EDIT","promotion.edit":"LATENCY_ACTION_CREATOR_PROMOTION_EDIT","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.claims":"LATENCY_ACTION_CREATOR_VIDEO_CLAIMS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS", "video.copyright":"LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT","video.edit":"LATENCY_ACTION_CREATOR_VIDEO_EDIT","video.editor":"LATENCY_ACTION_CREATOR_VIDEO_EDITOR","video.editor_async":"LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC","video.live_settings":"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS","video.live_streaming":"LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING","video.monetization":"LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION","video.policy":"LATENCY_ACTION_CREATOR_VIDEO_POLICY","video.rights_management":"LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT", "video.translations":"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS"});var ccy=class extends Ki{constructor(M,W){super(arguments);this.timer=W}},oQP=new vg("aft-recorded",ccy);var HNy=g.yp.ytLoggingGelSequenceIdObj_||{};g.Uq("ytLoggingGelSequenceIdObj_",HNy);var yC=g.yp.ytLoggingLatencyUsageStats_||{};g.Uq("ytLoggingLatencyUsageStats_",yC); var E2=class{constructor(){this.Z=0}tick(M,W,b,T){U2(this,`tick_${M}_${W}`)||g.V9("latencyActionTicked",{tickName:M,clientActionNonce:W},{timestamp:b,cttAuthInfo:T})}info(M,W,b){const T=Object.keys(M).join("");U2(this,`info_${T}_${W}`)||(M=Object.assign({},M),M.clientActionNonce=W,g.V9("latencyActionInfo",M,{cttAuthInfo:b}))}jspbInfo(M,W,b){let T="";for(let q=0;q{}; this.webkitClearResourceTimings=()=>{}; this.mozClearResourceTimings=()=>{}; this.msClearResourceTimings=()=>{}; this.oClearResourceTimings=()=>{}}},CB=Md.performance||Md.mozPerformance||Md.msPerformance||Md.webkitPerformance||new pYy;var dSt=!1,iNQ=!1,fB={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj", 'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc", 'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},gQq=(0,g.IJ)(CB.clearResourceTimings||CB.webkitClearResourceTimings||CB.mozClearResourceTimings||CB.msClearResourceTimings||CB.oClearResourceTimings||g.lq,CB);var W9=window;W9.ytcsi&&(W9.ytcsi.infoGel=g.xD,W9.ytcsi.tick=rO);var nSG="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" "),amG=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"],zX=class{constructor(M,W,b,T,q){this.A=M;this.va=W;this.Z=b;this.S=T;this.B= q;this.V=new Map;M.jo||(M.jo={});M.jo={...wYy,...M.jo}}VO(M){return aot(M,this.A)}};var xBs=new Ru("INNERTUBE_TRANSPORT_TOKEN");var fmQ=class extends $k{B(){return Eoa}get A(){return!0}V(M){return g.z(M,xJS)||void 0}Z(M,W,b={}){W.channelIds&&(M.channelIds=W.channelIds);W.siloName&&(M.siloName=W.siloName);W.params&&(M.params=W.params);b.botguardResponse&&(M.botguardResponse=b.botguardResponse);b.feature&&(M.clientFeature=b.feature)}};var R4a=class extends $k{B(){return noG}get A(){return!0}V(M){return g.z(M,RGt)||void 0}Z(M,W){W.channelIds&&(M.channelIds=W.channelIds);W.siloName&&(M.siloName=W.siloName);W.params&&(M.params=W.params)}};var HGt=class extends $k{constructor(M){super();this.C=M}B(){return VEP}V(M){return g.z(M,JUg)||g.z(M,BIp)||g.z(M,Veq)}Z(M,W){W.serializedShareEntity&&(M.serializedSharedEntity=W.serializedShareEntity);W.clientParamIdentifier&&this.C?.Z(W.clientParamIdentifier)&&(M.clientParams=this.C.V(W.clientParamIdentifier))}};HGt[Co]=[new Ru("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN")];var ZGy=class extends $k{B(){return BMy}get A(){return!0}V(M){return g.z(M,mW)||void 0}Z(M,W,b){M.feedbackTokens=[];W.feedbackToken&&M.feedbackTokens.push(W.feedbackToken);if(W=W.cpn||b.cpn)M.feedbackContext={cpn:W};M.isFeedbackTokenUnencrypted=!!b.is_feedback_token_unencrypted;M.shouldMerge=!1;b.extra_feedback_tokens&&(M.shouldMerge=!0,M.feedbackTokens=M.feedbackTokens.concat(b.extra_feedback_tokens))}};var Ima=class extends $k{B(){return DUL}V(M){return g.z(M,f1L)||void 0}Z(M,W){W.params&&(M.params=W.params);W.secondaryParams&&(M.secondaryParams=W.secondaryParams)}};var NAP=class extends $k{B(){return agP}V(M){return g.z(M,Z8l)||void 0}Z(M,W){W.actions&&(M.actions=W.actions);W.params&&(M.params=W.params);W.playlistId&&(M.playlistId=W.playlistId)}};var rqy=class extends $k{B(){return Jiy}V(M){return g.z(M,DJq)}Z(M,W,b={}){W.serializedShareEntity&&(M.serializedSharedEntity=W.serializedShareEntity);b.includeListId&&(M.includeListId=!0)}};var wO=new Ru("CLIENT_NAME_TOKEN");var pB=new Ru("DEFAULT_STORE_EXPIRATION_TOKEN");var Ywa=class{constructor(M,W){this.clientName=M;this.V=W}async put(M,W){W={...W.data};W.key=M;W.clientName=this.clientName;W.expireTimestampMs===void 0&&(W.expireTimestampMs=(Math.round((0,g.u)())+this.V).toString());return yql(this,M,W)}};Ywa[Co]=[wO,pB];var UBS=class{constructor(M){this.data={...M};delete this.data.innertubeResponse?.frameworkUpdates}isExpired(){return Number(this.data.expireTimestampMs||0)<(0,g.u)()}isProcessed(){return!!this.data.isProcessed}};var lmt=class extends Ywa{constructor(){super(...arguments);this.Z=new Map}async get(M){return CUP(this,M)}async remove(M){kjg(this,M)}async removeAll(){this.Z.forEach(M=>{clearTimeout(M.timer)}); this.Z.clear()}has(M){return!!this.Z.get(M)}Z4(){return this.Z.keys()}};var YD=new Ru("EPHEMERAL_STORE_TOKEN");var K4L=class{constructor(M){this.Z=M.responseContext?.stateTags}};var tqt=class{constructor(M){this.Z=M}handleResponse(M,W){if(!W)throw Error("request needs to be passed into StoreResponseProcessorService");O2(this,M,W.config?.wC?.YU)}};tqt[Co]=[YD];var $E=new Ru("STORE_RESPONSE_PROCESSOR_TOKEN");g.bh=class extends g.EF{constructor(M){super(M,[]);this.errorType=1;Object.setPrototypeOf(this,new.target.prototype)}};var L4y=class{constructor(M){this.Z=M}async fetch(M,W,b){M=vSt(this,M,W);return fetch(M).then(T=>this.handleResponse(T,b)).catch(T=>{g.lR(T); if(b?.WH&&T instanceof g.bh&&T.errorType===1)return Promise.reject(T)})}handleResponse(M,W){let b; b=M.text().then(T=>{if(W?.e8&&M.ok)return $A(W.e8,T);T=T.replace(")]}'","");let q;if(W?.WH&&T)try{q=JSON.parse(T)}catch(X){throw new g.bh("JSON parsing failed after fetch");}return q??JSON.parse(T)}); M.redirected||M.ok?this.Z&&this.Z.success():(this.Z&&this.Z.r1K(),b=b.then(T=>{g.lR(new g.EF("Error: API fetch failed",M.status,M.url,T));return{...T,errorMetadata:{status:M.status}}})); return b}};L4y[Co]=[yi(new Ru("NETWORK_SLI_TOKEN"))];var mBS=new Ru("NETWORK_MANAGER_TOKEN");var PZ;var iGp=class{constructor(M){this.Z=M}bindInnertubeChallengeFetcher(M){this.Z.bicf(M)}registerChallengeFetchedCallback(M){this.Z.bcr(M)}getLatestChallengeResponse(){return this.Z.blc()}};var z4q=[],Aql=(0,g.Su)`https://static.doubleclick.net/instream/ad_status.js`,qq=!1;var Bk=class{constructor(M,W,b){this.network=M;this.options=W;this.A=b;this.B=0;this.Z=null;this.V=new w9p;W.YN?jr(this,SoL(this)):W.preload&&jr(this,new Promise(T=>{g.yn(0,()=>{T(Jd(this))},0)}))}async C(){return!!await Promise.race([this.Z, null])}async S(M,W,b){this.Z===null&&jr(this,Jd(this));let T=!1;const q={};return Promise.race([(async()=>{this.options.Ttn&&this.options.YN&&await (await F4S())?.checkForRefresh();var X=await this.Z;q.challenge=X.challenge;if(X.Rc){var G={c:X.challenge,e:M,...W};try{T=!0;let V;(V=await X.Rc.snapshot({uG:G}))?q.webResponse=V:q.error="ATTESTATION_ERROR_VM_NO_RESPONSE"}catch{q.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR"}}else"c1a"in X.D4&&(q.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");M==="ENGAGEMENT_TYPE_PLAYBACK"&& (X=X.D4,G={},X.c6a&&(G.reportingStatus=String(Number(X.c)^Xm())),X.c6b&&(G.broadSpectrumDetectionResult=String(Number(X.c)^Number(g.F("CATSTAT",0)))),q.adblockReporting=G);return q})(), cqQ(b,()=>{const X=Object.assign({},q);T&&(X.error="ATTESTATION_ERROR_VM_TIMEOUT");return X})])}};var psG=["APP_STATE","PI"];var U9L=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,299903,299897,299904,299901,299899,299902,299900,299898,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651, 106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,300884,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933, 207944,206934,303123,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381, 84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142, 117432,173996,173995,174953,173994,173997,120080,117259,178546,297752,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,304776,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,305268, 249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,303882,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,297045,275198,271884,222932,279119, 271886,213915,275199,225216,251244,258251,218674,251266,258250,251265,301662,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255, 147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,302631,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035, 27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,298157,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,296933,195350,301607,195349,194771,293041,293042,293043,301116,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718, 39553,192547,29222,304845,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,297672,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423, 64424,33986,100828,129089,299541,21409,282218,299506,299540,299507,299509,299539,299508,299510,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196, 302735,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,304169,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637, 139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,296316,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,296813,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374, 48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,299247,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,301897,301900,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111, 55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var MJa=class{constructor(){var M=$LJ;const W=cH(Xbs());this.store=sm(M,void 0,W)}getState(){return this.store.getState()}dispatch(M){return this.store.dispatch(M)}subscribe(M){return this.store.subscribe(M)}replaceReducer(M){return this.store.replaceReducer(M)}[Symbol.observable](){return this.store[Symbol.observable]()}};var IR=class{constructor(M=[]){this.Z=[];this.B=this.V=0;this.A=void 0;this.totalLength=0;M.forEach(W=>{this.append(W)})}S(){return this.totalLength}append(M){if($Oy(this,M)){const W=this.Z[this.Z.length-1]; this.Z[this.Z.length-1]=new Uint8Array(W.buffer,W.byteOffset,W.length+M.length);aR(this)}else this.Z.push(M);this.totalLength+=M.length}split(M){const W=new IR,b=new IR;for(const T of this.Z)M>=T.length?(W.append(T),M-=T.length):M?(W.append(new Uint8Array(T.buffer,T.byteOffset,M)),b.append(new Uint8Array(T.buffer,T.byteOffset+M,T.length-M)),M=0):b.append(T);return{V2:W,eh:b}}isFocused(M){return M>=this.B&&M{const M=T=>new Uint8Array(T),W=T=>{const q=new Uint8Array(T.length); for(let X=0;X>7&&283);jF=new Uint8Array(256);Wr=Mi(256);bB=Mi(256);TZ=Mi(256);qi=Mi(256);for(let G=0;G<256;G++){q=G?T[255^b[G]]:0;q^=q<<1^q<<2^q<<3^q<<4;q=q&255^q>>>8^99;jF[G]=q;W=q<<1^(q>>7&&283);var X=W^q;Wr[G]=W<<24|q<<16|q<<8|X;bB[G]=X<<24|Wr[G]>>>8;TZ[G]=q<<24|bB[G]>>> 8;qi[G]=q<<24|TZ[G]>>>8}Wel=!0}q=Mi(44);for(b=0;b<4;b++)q[b]=M[4*b]<<24|M[4*b+1]<<16|M[4*b+2]<<8|M[4*b+3];for(T=1;b<44;b++)M=q[b-1],b%4||(M=(jF[M>>16&255]^T)<<24|jF[M>>8&255]<<16|jF[M&255]<<8|jF[M>>>24],T=T<<1^(T>>7&&283)),q[b]=q[b-4]^M;this.key=q}encrypt(M){const W=M.length;M=new Uint8Array(M.buffer.slice(M.byteOffset,M.byteOffset+W));const b=this.V;let T=0;for(;T{const M=T=>new Uint8Array(T),W=T=>{const q=new Uint8Array(T.length); for(let X=0;X=64&&(this.C.set(M.subarray(0,64-this.V),this.V),W=64-this.V,this.V=0,kAG(this,this.C,0));for(;W+64<=b;W+=64)kAG(this,M,W);W{const W=this.observers.indexOf(M);W>=0&&this.observers.splice(W,1)}}V(M){AJL(this,M.data)}vY(){this.channel.close()}},vr;g.s6("","downloadsPageViewConfigurationEntity");g.s6("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.TQ=g.s6("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.s6("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.s6("SMART_DOWNLOADS_ENABLED","settingEntity");var QiP=class{constructor(M,W){this.V=this.Z=0;this.Z=W.x-M.x;this.V=W.y-M.y}};var VJa=class{constructor(){this.Z=new Map}};var bIt=new Ru("POSTMESSAGE_TUNNEL_TOKEN");var jXJ=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"],JRl=class{constructor(){this.state=1;this.Rc=null;this.l3=void 0}initialize(M,W,b,T){this.l3=T;if(M.program){var q;T=M.interpreterUrl??null;M.interpreterSafeScript?q=p1(M.interpreterSafeScript):q=M.interpreterScript??null;M.interpreterSafeUrl&&(T=Yi(M.interpreterSafeUrl).toString());Xcg(this,q,T,M.program,W,b)}else g.lR(Error("BL:CIP"))}isInitialized(){return this.V()}getState(){return this.state}isLoading(){return this.state=== 2}invoke(M={}){return this.V()?this.B({uG:M}):null}dispose(){this.Z(null);this.LN(8)}V(){return!!this.Rc}B(M){return this.Rc.tM(M)}Z(M){g.cG(this.Rc);this.Rc=M}LN(M){this.state=M}};var Bst=class extends JRl{Z(M){lB()?.bgvma();if(M){const W={bgvma:M.dispose.bind(M),bgvmb:M.snapshot.bind(M),bgvmc:M.tM.bind(M)};g.Uq("yt.abuse.playerAttLoader",W);ft(b=>M.snapshot(b))}else g.Uq("yt.abuse.playerAttLoader",null),g.Uq("yt.abuse.playerAttLoaderRun",null)}V(){return!!lB()}B(M){return lB().bgvmc(M)}};var wSt=class{constructor(M){this.Ei=M}Nh(){return"crossDeviceProgressCommand"}aN(M){if(M.crossDevicePings){const W=[];for(const b of M.crossDevicePings)W.push({baseUrl:b.baseUrl});M={crossDevicePings:W};this.Ei.L.G().experiments.FX("enable_batched_cross_device_pings_in_gel_fanout")&&(M.enableBatchedCrossDevicePings=!0);this.Ei.L.G().experiments.FX("relax_bg_notification_throttling")&&(M.relaxBgNotificationThrottling=!0);this.Ei.L.G().experiments.FX("relax_bg_notification_throttling_counterfactual")&& (M.relaxBgNotificationThrottlingCounterfactual=!0);g.V9("crossDeviceNotificationTransfer",M)}}};var cGg=class{constructor(M,W){this.IE=M;this.PM=W}Nh(){return"muteAdEndpoint"}aN(M,W){switch(M.type){case "SKIP":GRJ(this.IE,this.PM,W)}}};var shy=class{Nh(){return"openPopupAction"}aN(){}};var Qhq=class{Nh(){return"pingingEndpoint"}aN(){}};var EdL={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0},PVq=class extends g.gz{constructor(M){super();this.U2=M;this.Z=new Map;t3(this,"commandExecutorCommand",(W,b,T)=>{Bjt(this,W.commands,b,T)}); t3(this,"clickTrackingParams",()=>{})}};var HMt={t9:"FINAL",Pb:"AD_BREAK_LENGTH",pR:"AD_CPN",lK:"AH",I9:"AD_MT",xH:"ASR",fR:"AW",ez:"NM",Jk:"NX",Gh:"NY",kz:"CONN",gA:"CPN",xV:"DV_VIEWABILITY",CF:"ERRORCODE",N7:"ERROR_MSG",Jc:"EI",R1:"GOOGLE_VIEWABILITY",jl:"IAS_VIEWABILITY",IA:"LACT",iF:"LIVE_TARGETING_CONTEXT",DN:"I_X",eD:"I_Y",nO:"MT",bF:"MIDROLL_POS",kF:"MIDROLL_POS_MS",U9:"MOAT_INIT",XL:"MOAT_VIEWABILITY",CX:"P_H",jB:"PV_H",W4:"PV_W",zM:"P_W",D7:"TRIGGER_TYPE",j0V:"SDKV",OpK:"SLOT_POS",yTk:"SURVEY_LOCAL_TIME_EPOCH_S",v9k:"SURVEY_ELAPSED_MS", wi:"VIS",YBK:"VIEWABILITY",n9Y:"VED",F8T:"VOL",bvz:"WT",o_X:"YT_ERROR_CODE"};var g3t=class{constructor(M,W,b){this.Lu=M;this.Z=W;this.iV=b;UK(vA(),{rM:bIt,d_:VJa})}Nh(){return"urlEndpoint"}aN(M,W,b){{var T=this.iV.get();const q=Jy(T.V.get(),W);q?W=iw(T,OT(q),q,void 0,void 0,b):(za("Trying to ping from an unknown layout",void 0,void 0,{layoutId:W}),W={})}W={...W};Bo(this.Z,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(b=pX(this.Lu,2))&&(W.AD_CPN=b.clientPlaybackNonce);W=g.tf(M.url,W);M=g.pu(W,void 0,void 0,void 0,M.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"); TjJ(M,W)}};var qd=class{constructor(M){this.value=M}get(){return this.value}},T2G=class extends qd{Z(){return"metadata_type_action_companion_ad_renderer"}},XVl=class extends qd{Z(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}},B0p=class extends qd{Z(){return"metadata_type_ads_engagement_panel_renderer"}},DoP=class extends qd{Z(){return"metadata_type_ads_engagement_panel_layout_view_model"}},AC=class extends qd{Z(){return"metadata_type_ad_next_params"}},zi=class extends qd{Z(){return"metadata_type_ad_video_clickthrough_endpoint"}}, doS=class extends qd{Z(){return"metadata_type_invideo_overlay_ad_renderer"}},a0q=class extends qd{Z(){return"metadata_type_image_companion_ad_renderer"}},EwS=class extends qd{Z(){return"metadata_type_banner_image_layout_view_model"}},nwG=class extends qd{Z(){return"metadata_type_shopping_companion_carousel_renderer"}},OiQ=class extends qd{Z(){return"metadata_type_ad_info_ad_metadata"}},P_L=class extends qd{Z(){return"metadata_ad_video_is_listed"}},cd=class extends qd{Z(){return"metadata_type_ad_placement_config"}}, De=class extends qd{Z(){return"metadata_type_ad_pod_info"}},hC=class extends qd{Z(){return"metadata_type_ad_pod_skip_index"}},uP=class extends qd{Z(){return"metadata_type_ad_pod_skip_target"}},rQ=class extends qd{Z(){return"metadata_type_ad_pod_skip_target_callback_ref"}},B2=class extends qd{Z(){return"metadata_type_ad_video_id"}},Ti=class extends qd{Z(){return"metadata_type_content_cpn"}},VM=class extends qd{Z(){return"metadata_type_instream_ad_player_overlay_renderer"}},JC=class extends qd{Z(){return"metadata_type_player_overlay_layout_renderer"}}, Sis=class extends qd{Z(){return"metadata_type_player_underlay_renderer"}},k2q=class extends qd{Z(){return"metadata_type_player_underlay_ad_slot_renderer"}},mZS=class extends qd{Z(){return"metadata_type_media_associated_in_player_slot"}},owp=class extends qd{Z(){return"metadata_type_shrunken_player_bytes_config"}},Zvs=class extends qd{Z(){return"metadata_type_ad_action_interstitial_renderer"}},dZl=class extends qd{Z(){return"metadata_type_valid_survey_text_interstitial_renderer"}},Lmg=class extends qd{Z(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}}, Esy=class extends qd{Z(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}},Ctp=class extends qd{Z(){return"metadata_type_sliding_text_player_overlay_renderer"}},Ny=class extends qd{Z(){return"metadata_type_linked_player_bytes_layout_id"}},tQL=class extends qd{Z(){return"metadata_type_linked_second_player_bytes_layout_id"}},iP=class extends qd{Z(){return"metadata_type_linked_in_player_layout_id"}},P2=class extends qd{Z(){return"metadata_type_linked_in_player_layout_type"}},UZJ=class extends qd{Z(){return"metadata_type_linked_in_player_slot_id"}}, h2L=class extends qd{Z(){return"metadata_type_player_bytes_callback"}},n2=class extends qd{Z(){return"metadata_type_player_bytes_callback_ref"}},YG=class extends qd{constructor(){super({current:null})}Z(){return"metadata_type_player_bytes_layout_controls_callback_ref"}},W7t=class extends qd{Z(){return"metadata_type_sub_layouts"}},Uoa=class extends qd{Z(){return"metadata_type_cue_point"}},lP=class extends qd{Z(){return"metadata_type_triggering_cue_point"}},qy=class extends qd{Z(){return"metadata_type_video_length_seconds"}}, Xe=class extends qd{Z(){return"metadata_type_player_vars"}},KBg=class extends qd{Z(){return"metadata_type_preload_player_vars"}},EI=class extends qd{Z(){return"metadata_type_sodar_extension_data"}},j4=class extends qd{Z(){return"metadata_type_layout_enter_ms"}},Gi=class extends qd{Z(){return"metadata_type_layout_exit_ms"}},C2=class extends qd{Z(){return"metadata_type_media_sub_layout_index"}},yM=class extends qd{constructor(){super({})}Z(){return"metadata_type_dai"}},Eut=class extends qd{constructor(){super({})}Z(){return"metadata_type_ad_intro"}}, rwJ=class extends qd{Z(){return"metadata_type_client_forecasting_ad_renderer"}},aj=class extends qd{Z(){return"metadata_type_drift_recovery_ms"}},dQ=class extends qd{Z(){return"metadata_type_fulfilled_layout"}},pet=class extends qd{Z(){return"metadata_type_ad_break_request_data"}},cHp=class extends qd{Z(){return"metadata_type_ad_break_response_data"}},S4=class extends qd{Z(){return"metadata_type_remote_slots_data"}},$G=class extends qd{Z(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}},OI= class extends qd{Z(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}},vug=class extends qd{Z(){return"metadata_type_legacy_info_card_vast_extension"}},pgJ=class extends qd{Z(){return"metadata_type_valid_ad_message_renderer"}},My=class extends qd{Z(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}},YLp=class extends qd{Z(){return"metadata_type_served_from_live_infra"}},FmL=class extends qd{Z(){return"metadata_type_survey_overlay"}},UI=class extends qd{Z(){return"metadata_type_active_view_traffic_type"}}, Hvl=class extends qd{Z(){return"metadata_type_active_view_identifier"}},VQy=class extends qd{Z(){return"metadata_type_ssdai_ads_config"}},YXg=class extends qd{constructor(){super(!0)}Z(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}},tC=class extends qd{Z(){return"metadata_type_player_bytes_slot_metadata"}},Jwa=class extends qd{constructor(){super({})}Z(){return"metadata_type_prefetch_metadata"}};var R6Q=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var tr=()=>"",AHL=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL", "trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","trigger_category_layout_exit_user_input_submitted"], ["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var Mg=class extends AL{constructor(M,W,b,T=!1){super(M);this.Og=b;this.oG=T;this.args=[];W&&this.args.push(W)}};var P=class extends AL{constructor(M,W,b,T=!1){super(M);this.Og=b;this.oG=T;this.args=[];W&&this.args.push(W)}};var h3=class{constructor(M){const W=new Map;M.forEach(b=>{W.set(b.Z(),b)}); this.Z=W}fp(M){M=this.Z.get(M);if(M!==void 0)return M.get()}};new Promise(()=>{});var CEg=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),yHG=new Map([["normal",{KP:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{KP:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{KP:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{KP:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{KP:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{KP:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{KP:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Nj:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),Xd=class{constructor(M){this.PY=M;M=Math.random();var W=this.PY.get();W=g.TO(W.L.G().experiments,"html5_debug_data_log_probability");W=Number.isFinite(W)&&W>=0&&W<=1?W:0;this.Z=M{g.cG(this.instance);this.instance=null})}get(){Math.random()<.001&&this.ST()&&za("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance}); this.instance||(this.instance=this.Z());return this.instance}};var DLS=class extends g.gz{constructor(M){super();this.Z=M;this.V=e6a(this)}B(){return this.V}};var jW=class{constructor(M){this.Z=M}executeCommand(M,W){Z4(this.Z(),M,W)}};var aHt=class{constructor(){this.listeners=new Set}addListener(M){this.listeners.add(M)}removeListener(M){this.listeners.delete(M)}};var GQ=class{constructor(M){this.PY=M}};var EYl=class{constructor(M,W,b,T,q){this.callback=M;this.slot=W;this.V=b;this.Oj=T;this.PY=q;this.Z=null}};var vo={AD_MARKER:"ytp-ad-progress",CHAPTER_MARKER:"ytp-chapter-marker",TIME_MARKER:"ytp-time-marker"};var OWt=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),sXq=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), PSP=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),T9q=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), WVG=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),YWJ=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), eql=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),$rg=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),pcG=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images\\-(rt|qw))|(docs\\.sandbox\\.google\\.com\\/(u\\/[0-9]+\\/)?(docs|sheets|slides|drawings|forms|videos|pictures)\\-images))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), nYJ=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"), yRl=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://ads-prod\\.qa\\.adz\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://ads\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://adwords\\.corp\\.google\\.com/aw/(assetgroup/(edit|new)|campaigns/(new/(performancemax|demandgen)|edit/demandgen))|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com|ads\\-external\\-prod\\.qa\\.adz\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"), ULP=RegExp("^(https://play\\.google\\.com|https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com|https://ads\\.google\\.com|https://adwords\\.corp\\.google\\.com|https://ads\\-external\\-prod\\.qa\\.adz\\.google\\.com|https://ads\\-prod\\.qa\\.adz\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");var CKt;g.Ap=class{constructor(M,W,b={}){this.start=M;this.end=W;this.active=!0;this.color="";this.V=CKt++;this.id=b.id||"";this.priority=b.priority||9;this.visible=b.visible||!1;this.style=b.style||vo.AD_MARKER;this.namespace=b.namespace||"";if(M=b.color)M=M.toString(16),this.color=`#${Array(7-M.length).join("0")}${M}`;this.tooltip=b.tooltip;this.icons=b.icons?b.icons.filter(T=>g.sq(T.thumbnails,q=>g.yN(q.url))):null; this.associatedClipId=b.associatedClipId;this.markerPositionMs=b.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start}getId(){return this.id}toString(){return"CueRange{"+this.namespace+":"+this.id+"}["+jPJ(this.start)+", "+jPJ(this.end)+"]"}contains(M,W){return M>=this.start&&(M{const W=this.slot.clientMetadata.fp("metadata_type_ad_break_request_data");M=Date.now();HK(this.iV.get(),"abrs",`ct.${M};cmt.${this.I0.get().getCurrentTimeSec(1,!1)};sid.${this.slot.slotId};`);return this.V.get().fetch({yb:W.getAdBreakUrl,J8:new g.Ap(W.KD,W.iS),eZ:this.slot.clientMetadata.fp("metadata_type_cue_point"),cueProcessedMs:W.cueProcessedMs})}, ()=>{VOG(this)},W=>{var b=Date.now()-M; HK(this.iV.get(),"abrr",`ct.${(new Date).getTime()};cmt.${this.I0.get().getCurrentTimeSec(1,!1)};l.${b.toString()};sid.${this.slot.slotId};`);b=W.HV;b.length>=2&&W.ssdaiAdsConfig&&za("Unexpected ad placement renderers length",this.slot,null,{length:b.length});W.adSlots?.some(T=>g.z(T,aW)?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES")||b.some(T=>!!T.renderer?.linearAdSequenceRenderer?.linearAds?.length||!!T.renderer?.instreamVideoAdRenderer)||VOG(this)})}PA(){gdt(this.Z)}};var KeJ=class{constructor(M,W,b,T,q,X){this.slot=W;this.Z=b;this.V=new EYl(M,W,T,q,X)}H8(){QXL(this.V,()=>{const M=this.slot.clientMetadata.fp("metadata_type_ad_break_request_data");return M.cueProcessedMs?this.Z.get().fetch({yb:M.getAdBreakUrl,J8:new g.Ap(M.KD,M.iS),cueProcessedMs:M.cueProcessedMs}):this.Z.get().fetch({yb:M.getAdBreakUrl,J8:new g.Ap(M.KD,M.iS)})})}PA(){gdt(this.V)}};var vYp=class{constructor(M,W){this.callback=M;this.slot=W}H8(){var M=this.slot.clientMetadata;M=this.slot.fulfilledLayout??M.fp("metadata_type_fulfilled_layout");lFp(this.callback,this.slot,M)}PA(){$J(this.callback,this.slot,new P(`Got CancelSlotFulfilling request for ${this.slot.slotType} in `+"DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")}};var mLP=class{build(M,W){return W.fulfilledLayout||m8(W,{Rx:["metadata_type_fulfilled_layout"]})?new vYp(M,W):this.B(M,W)}};var Vw=class extends mLP{constructor(M,W,b,T,q,X,G){super();this.Z=M;this.V=W;this.Oj=b;this.PY=T;this.iV=q;this.I0=X;this.eR=G}B(M,W){if(m8(W,{Rx:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new k$S(M,W,this.Z,this.V,this.Oj,this.PY,this.iV,this.I0,this.eR);if(m8(W,{Rx:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new KeJ(M,W,this.Z,this.V,this.Oj,this.PY);throw new P(`Unsupported slot with type: ${W.slotType} and client metadata: ${fm(W.clientMetadata)} in `+ "AdBreakRequestSlotFulfillmentAdapterFactory.");}};var J8=class extends mLP{B(M,W){throw new P(`Unsupported slot with type: ${W.slotType} and client metadata: ${fm(W.clientMetadata)} in `+"DefaultFulfillmentAdapterFactory.");}};var Let=class{constructor(M,W,b,T,q,X){this.callback=M;this.slot=W;this.layout=b;this.B=T;this.Z=q;this.V=X}Qc(){return this.slot}Zf(){return this.layout}init(){}release(){}startRendering(M){if(M.layoutId!==this.layout.layoutId)this.callback.zx(this.slot,M,new Mg("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.layout.layoutId}`+`and LayoutType: ${this.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"); else{var W=M.clientMetadata.fp("metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.t5(this.slot,M),o7s(this.B,this.slot,W)):za("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,M)}}A_(M,W){M.layoutId!==this.layout.layoutId?this.callback.zx(this.slot,M,new Mg("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.Dg(this.slot,M,W),B9S(this),Dry(this))}};var lHs=class{constructor(M,W,b){this.Z=M;this.slot=W;this.layout=b}};var B9=class extends g.b9{constructor(M,W,b,T){super();this.callback=M;this.B=T;this.Z=[];this.V=new lHs(M,W,b)}Qc(){return this.V.slot}Zf(){return this.V.layout}get slot(){return this.V.slot}get layout(){return this.V.layout}init(){this.B.get().addListener(this)}release(){this.B.get().removeListener(this);this.dispose()}RL(){}sf(){}Z8(){}aD(){}startRendering(M){ZW(this.V,M,()=>void this.e5())}e5(){this.B.get().e5(this.Z)}A_(M,W){ZW(this.V,M,()=>{var b=this.B.get(); iMQ(b,this.Z,3);this.Z=[];this.callback.Dg(this.slot,M,W)})}vY(){this.B.ST()||this.B.get().removeListener(this); super.vY()}};var zD=class{constructor(M,W,b,T,q=null){this.B=M;this.iV=W;this.layoutId=T;this.A=0;this.C=null;this.S=void 0;this.Z=new Set;this.V=Array.from(this.B.get("progress")||[]);this.V.sort((X,G)=>(X.offsetMilliseconds||0)-(G.offsetMilliseconds||0)); this.W={adPlacementConfig:b,pJ:q}}e6(M,W=!1){const b=(this.B.get(M)||[]).concat();if(W=W&&Ecg(M)){const T=this.B.get(W);T&&b.push(...T)}hZ(this,M,b);this.Z.add(M);W&&this.Z.add(W)}EB(M,W=!1){if(!this.Z.has(M)){var b=W&&Ecg(M);b&&(W=!this.Z.has(b));this.e6(M,W)}}};var tJL=class extends FI{constructor(M,W,b,T,q){super("ads-engagement-panel-layout",M,W,b,T,q)}};var Z4Q=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}kZ(M,W){fX("ads-engagement-panel-layout",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),g.z(this.Zf().renderingContent, cK),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",(W,b,T,q,X)=>new tJL(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var IHL=class extends FI{constructor(M,W,b,T,q){super("banner-image",M,W,b,T,q)}};var NsS=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);this.adPlacementConfig=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,this.adPlacementConfig,b.layoutId)}kZ(M,W){fX("banner-image",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),g.z(this.Zf().renderingContent, dn),this.callback,"metadata_type_banner_image_layout_view_model",(W,b,T,q,X)=>new IHL(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var H4t=class extends FI{constructor(M,W,b,T,q){super("action-companion",M,W,b,T,q)}};var fHS=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}kZ(M,W){fX("action-companion",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),g.z(this.Zf().renderingContent,Ot),this.callback, "metadata_type_action_companion_ad_renderer",(W,b,T,q,X)=>new H4t(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){W.layoutId===this.layout.layoutId?this.Yk.EB("impression"):this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var RNS=class extends FI{constructor(M,W,b,T,q){super("image-companion",M,W,b,T,q)}};var rRL=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}kZ(M,W){fX("image-companion",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),g.z(this.Zf().renderingContent,PK),this.callback, "metadata_type_image_companion_ad_renderer",(W,b,T,q,X)=>new RNS(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){W.layoutId===this.layout.layoutId?this.Yk.EB("impression"):this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var xLt=class extends FI{constructor(M,W,b,T,q){super("shopping-companion",M,W,b,T,q)}};var FeQ=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}kZ(M,W){fX("shopping-companion",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer", (W,b,T,q,X)=>new xLt(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){W.layoutId===this.layout.layoutId?this.Yk.EB("impression"):this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var DC=class{constructor(M,W,b,T){this.SW=M;this.layoutId=b;this.S=T;this.V=[];this.Z=[];this.B=this.A=0;for(const q of W)switch(q.adVideoOffset?.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":(q.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_PERCENT"?0:q.adVideoOffset?.percent!=null)?this.V.push(q):za("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":(q.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS"?0:q.adVideoOffset?.milliseconds!=null&&!isNaN(Number(q.adVideoOffset.milliseconds)))? this.Z.push(q):za("Invalid AdVideoProgressMillisecondsCommand");break;default:za("Unknown or invalid AdVideoProgressOffSet kind")}this.V.sort((q,X)=>q.adVideoOffset.percent-X.adVideoOffset.percent); this.Z.sort((q,X)=>Number(q.adVideoOffset.milliseconds)-Number(X.adVideoOffset.milliseconds))}};var i4t=class extends B9{constructor(M,W,b,T,q,X){super(M,W,b,T);this.iV=q;this.Pr=X;this.ZU=!0;A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",(W,b,T,q,X)=>new H4t(W,b,T,q,X),this.Z); super.startRendering(M)}t5(){}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}kZ(){}};var hNt=class{constructor(M,W,b,T,q,X,G,V){this.callback=M;this.slot=W;this.layout=b;this.I0=T;this.iV=q;this.PY=G;this.HP=V;this.Z=!1;M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId);M=this.layout.clientMetadata.fp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];const J=b.clientMetadata.fp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.V=new DC(X,M,b.layoutId,()=>J*1E3)}Qc(){return this.slot}Zf(){return this.layout}init(){this.I0.get().addListener(this); this.I0.get().yk.push(this);const M=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),W=this.layout.clientMetadata.fp("metadata_type_active_view_traffic_type");Rv(this.layout.yc)&&zg(this.HP.get(),this.layout.layoutId,{hE:W,vT:M,listener:this})}release(){this.I0.get().removeListener(this);fdS(this.I0.get(),this);Rv(this.layout.yc)&&uL(this.HP.get(),this.layout.layoutId)}startRendering(M){this.callback.t5(this.slot,M)}A_(M,W){qfL(this.PY.get())&&!this.Z&&(this.Yk.EB("abandon"),this.Z= !0);this.callback.Dg(this.slot,M,W)}lU(M){switch(M.id){case "part2viewed":this.Yk.EB("start");this.Yk.EB("impression");break;case "videoplaytime25":this.Yk.EB("first_quartile");break;case "videoplaytime50":this.Yk.EB("midpoint");break;case "videoplaytime75":this.Yk.EB("third_quartile");break;case "videoplaytime100":qfL(this.PY.get())?this.Z||(this.Yk.EB("complete"),this.Z=!0):this.Yk.EB("complete");ST(this.Yk)&&zb(this.Yk,Infinity,!0);Xmt(this.PY.get())&&OR(this.V,Infinity,!0);break;case "engagedview":ST(this.Yk)|| this.Yk.EB("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:za("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}PO(){}gm(){}cO(){}onFullscreenToggled(){}aV(){}oZ(){}CC(M){Xmt(this.PY.get())&&OR(this.V,M*1E3,!1);ST(this.Yk)&&zb(this.Yk,M*1E3,!1)}xX(){}Xj(){this.Yk.EB("active_view_measurable")}Oa(){this.Yk.EB("active_view_viewable")}Ua(){this.Yk.EB("active_view_fully_viewable_audible_half_duration")}bH(){this.Yk.EB("audio_measurable")}a5(){this.Yk.EB("audio_audible")}};var AfL=class extends B9{constructor(M,W,b,T,q,X){super(M,W,b,T);this.I0=q;this.S=X;this.A=!1}init(){super.init();const M=this.layout.clientMetadata.fp("metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.w9};this.Z.push(new cL(M,this.layout.layoutId,this.layout.clientMetadata.fp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,!0))}Hh(){this.A||this.I0.get().resumeVideo(1)}startRendering(M){super.startRendering(M);oG(this.I0.get(),"ad-showing");this.callback.t5(this.slot, M);this.S.v$=this}A_(M,W){super.A_(M,W);c4(this.I0.get(),"ad-showing");nx(this.S,this)}kZ(M){switch(M){case "ad-info-icon-button":(this.A=this.I0.get().hU(1))||this.I0.get().pauseVideo();break;case "visit-advertiser":this.I0.get().pauseVideo()}}vY(){super.vY()}};var ARg=class extends FI{constructor(M,W,b,T,q){super("top-banner-image-text-icon-buttoned",M,W,b,T,q)}};var zNS=class extends B9{constructor(M,W,b,T,q,X){super(M,W,b,T);this.iV=q;this.Pr=X;this.ZU=!0;A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(W,b,T,q,X)=>new ARg(W,b,T,q,X),this.Z); super.startRendering(M)}t5(){}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}kZ(){}};var uBL=class extends FI{constructor(M,W,b){super("display-underlay-text-grid-cards",M,{},W,b);this.interactionLoggingClientData=b}};var SML=class extends B9{constructor(M,W,b,T,q,X){super(M,W,b,T);this.iV=q;this.A=X;this.S=this.layout.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id")}init(){super.init();this.Z.push(new uBL(g.z(this.layout.renderingContent,Jr),this.layout.layoutId,{adsClientData:this.layout.w9}))}kZ(){GO(this.A.get(),this.S)&&Ho(this.iV.get(),3)}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M)}vY(){super.vY()}};var ay=class extends FI{constructor(M,W,b,T){super("ad-action-interstitial",M,W,b,T);this.interactionLoggingClientData=T;this.NS=this.xG=!0}};var iYy=class extends B9{constructor(M,W,b,T,q){super(M,W,b,T);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,q,M,b.layoutId)}init(){super.init();const M=g.z(this.layout.renderingContent,co)||this.layout.clientMetadata.fp("metadata_type_ad_action_interstitial_renderer"),W=Iv(this.Yk);this.Z.push(new ay(M,W,this.layout.layoutId,{adsClientData:this.layout.w9}))}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M)}kZ(M,W){if(W===this.layout.layoutId)switch(M){case "skip-button":(M= this.layout.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&m6(M,this.Qc(),this.layout)}}vY(){super.vY()}};var En=class{constructor(M,W,b){this.V=M;this.B=W;this.Z=b}build(M,W,b,T){if(Po(T,{Rx:["metadata_type_ad_break_response_data"],bN:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Let(M,b,T,this.V,this.B,this.Z);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"AdBreakRequestLayoutRenderingAdapterFactory.");}};var O4J=class extends FI{constructor(M,W,b,T,q){super("ads-engagement-panel",M,W,b,T,q)}};var PKP=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}kZ(M,W){fX("ads-engagement-panel",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk,this.Qc(),this.Zf(),g.z(this.Zf().renderingContent,eK),this.callback, "metadata_type_ads_engagement_panel_renderer",(W,b,T,q,X)=>new O4J(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){W.layoutId===this.layout.layoutId?this.Yk.EB("impression"):this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var eNt=class extends B9{constructor(M,W,b,T,q,X,G){super(M,W,b,T);this.iV=q;this.Pr=X;this.C=G;this.ZU=!0;this.A=null;this.S=b.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id");A3(this.Pr(),this);this.adPlacementConfig=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,this.adPlacementConfig,b.layoutId)}kZ(M,W){fX("top-banner-image-text-icon-buttoned",M,this.C.get().gS,this.iV.get(),this.A,this.S,this.Qc(),this.Zf(),W)}startRendering(M){Ng(this.Yk, this.Qc(),this.Zf(),g.z(this.Zf().renderingContent,o6),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(W,b,T,q,X)=>new ARg(W,b,T,q,X),this.Z); super.startRendering(M)}t5(M,W){this.S===W.layoutId&&(this.A===null?this.A=this.iV.get().un():za("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}vY(){zZ(this.Pr(),this);super.vY()}};var dLL=class{constructor(M,W,b,T,q){this.yN=M;this.iV=W;this.Pr=b;this.Z=T;this.HP=q}build(M,W,b,T){if(Po(T,tOy())||g.z(T.renderingContent,eK)!==void 0)return new PKP(M,b,T,this.yN,this.iV,this.Pr,this.Z);if(Po(T,kwq())||g.z(T.renderingContent,Ot)!==void 0)return new fHS(M,b,T,this.yN,this.iV,this.Pr,this.Z);if(Po(T,KVp())||g.z(T.renderingContent,PK)!==void 0)return new rRL(M,b,T,this.yN,this.iV,this.Pr,this.Z);if(Po(T,vcL()))return new FeQ(M,b,T,this.yN,this.iV,this.Pr,this.Z);if(Po(T,mrp()))return new i4t(M, b,T,this.yN,this.iV,this.Pr);if(Po(T,CTq())||g.z(T.renderingContent,dn)!==void 0)return new NsS(M,b,T,this.yN,this.iV,this.Pr,this.Z);if(Po(T,ZYJ())||g.z(T.renderingContent,o6)!==void 0)return new eNt(M,b,T,this.yN,this.iV,this.Pr,this.Z);if(Po(T,LVs()))return new zNS(M,b,T,this.yN,this.iV,this.Pr);if(Po(T,Urq())||g.z(T.renderingContent,cK)!==void 0)return new Z4Q(M,b,T,this.yN,this.iV,this.Pr,this.Z);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+ "DesktopAboveFeedLayoutRenderingAdapterFactory.");}};var oYg=class{constructor(M,W,b){this.yN=M;this.iV=W;this.Z=b}build(M,W,b,T){if(Po(T,{Rx:["metadata_type_linked_player_bytes_layout_id"],bN:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new SML(M,b,T,this.yN,this.iV,this.Z);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");}};var cRS=class{constructor(M,W,b,T,q){this.callback=M;this.slot=W;this.layout=b;this.iV=T;this.I3=q;M=this.layout.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}Qc(){return this.slot}Zf(){return this.layout}init(){}release(){}startRendering(M){M.layoutId!==this.layout.layoutId?this.callback.zx(this.slot,M,new Mg("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.t5(this.slot,M),this.Yk.EB("impression"),Zx(this.I3,M))}A_(M,W){M.layoutId!==this.layout.layoutId?this.callback.zx(this.slot,M,new Mg("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.Dg(this.slot, M,W)}};var Qbq=class{constructor(M,W,b,T,q){this.callback=M;this.slot=W;this.layout=b;this.iV=T;this.I3=q;M=this.layout.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId)}Qc(){return this.slot}Zf(){return this.layout}init(){}release(){}startRendering(M){M.layoutId!==this.layout.layoutId?this.callback.zx(this.slot,M,new Mg("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.t5(this.slot,M),this.Yk.EB("impression"),Zx(this.I3,M))}A_(M,W){M.layoutId!==this.layout.layoutId?this.callback.zx(this.slot,M,new Mg("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.Dg(this.slot, M,W)}};var nq=class{constructor(M,W,b,T){this.PY=M;this.iV=W;this.I3=b;this.HP=T}build(M,W,b,T){if(!this.PY.get().L.G().j("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Po(T,IXl()))return new cRS(M,b,T,this.iV,this.I3)}else if(Po(T,{Rx:[],bN:["LAYOUT_TYPE_FORECASTING"]}))return new Qbq(M,b,T,this.iV,this.I3);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"ForecastingLayoutRenderingAdapterFactory.");}};var gYy=class extends FI{constructor(M,W,b,T){super("player-overlay-layout",M,{},b,T);this.videoAdDurationSeconds=W;this.interactionLoggingClientData=T}};var FVt=class extends B9{constructor(M,W,b,T,q,X,G,V,J){super(M,W,b,T);this.I0=q;this.iV=X;this.C=G;this.S=V;this.PY=J;this.A=!1;this.W=this.layout.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const M=g.z(this.layout.renderingContent,ov)||this.layout.clientMetadata.fp("metadata_type_player_overlay_layout_renderer"),W={adsClientData:this.layout.w9};this.Z.push(new gYy(M,this.layout.clientMetadata.fp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId, W))}Hh(){this.A||this.I0.get().resumeVideo(2)}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M);this.S.v$=this}A_(M,W){super.A_(M,W);nx(this.S,this)}kZ(M,W){if(!Bo(this.PY.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(GO(this.C.get(),this.W))switch(M){case "visit-advertiser-link":Ho(this.iV.get(),3)}switch(M){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.A|| this.I0.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.A=this.I0.get().hU(2))||this.I0.get().pauseVideo();break;case "visit-advertiser-link":this.I0.get().pauseVideo();fXP(this).A3();break;case "skip-button":M=fXP(this),this.layout.renderingContent&&!Ni(this.layout.clientMetadata,"metadata_type_dai")||!M||!M.pG?(M=this.layout.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&m6(M,this.Qc(),this.layout):(za("Requesting to skip by LegacyPlayerBytes when components enabled"), M.lI(this.Qc(),this.layout))}}}vY(){super.vY()}};var xrt=class extends B9{constructor(M,W,b,T,q,X,G,V,J){super(M,W,b,T);this.I0=q;this.iV=X;this.C=G;this.S=V;this.PY=J;this.A=!1;this.W=this.layout.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const M=g.z(this.layout.renderingContent,d$)||this.layout.clientMetadata.fp("metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.w9};var b;(b=!!this.layout.renderingContent)||(b=eT(this),b=!(b&&b.pG));this.Z.push(new cL(M,this.layout.layoutId, this.layout.clientMetadata.fp("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,b))}Hh(){this.A||this.I0.get().resumeVideo(2)}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M);this.S.v$=this}A_(M,W){super.A_(M,W);nx(this.S,this)}kZ(M,W){if(!this.PY||!Bo(this.PY.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(GO(this.C.get(),this.W))switch(M){case "visit-advertiser":Ho(this.iV.get(),3)}switch(M){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.A|| this.I0.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.A=this.I0.get().hU(2))||this.I0.get().pauseVideo();break;case "visit-advertiser":this.I0.get().pauseVideo();eT(this).A3();break;case "skip-button":M=eT(this),this.layout.renderingContent&&!Ni(this.layout.clientMetadata,"metadata_type_dai")||!M||!M.pG?(M=this.layout.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&m6(M,this.Qc(),this.layout):(za("Requesting to skip by LegacyPlayerBytes"), M.lI(this.Qc(),this.layout))}}}vY(){super.vY()}};var sbG=class extends FI{constructor(M,W,b){super("ad-message",M,void 0,W,b)}};var hTL=class extends B9{constructor(M,W,b,T,q,X){super(b,M,W,T);this.I0=q;this.PY=X}startRendering(M){ZW(this.V,M,()=>{this.Z.push(new sbG(this.layout.clientMetadata.fp("metadata_type_valid_ad_message_renderer"),M.layoutId,M.w9));this.e5();this.callback.t5(this.slot,M);Ak(this.I0.get(),1).Z(512)&&this.callback.zx(this.Qc(),this.Zf(),new Mg("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}oZ(){}aV(M){M.state.isError()&& this.callback.zx(this.Qc(),this.Zf(),new Mg("A player error happened during adNotify",{playerErrorCode:M.state.Iw?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}onFullscreenToggled(){}gm(){}cO(){}PO(){}onVolumeChange(){}lU(){}xX(){}kZ(){}};var w3a=class extends FI{constructor(M,W,b,T){super("video-interstitial-buttoned-centered",M,W,b,T);this.interactionLoggingClientData=T}};var zTp=class extends B9{constructor(M,W,b,T,q){super(M,W,b,T);M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,q,M,b.layoutId)}init(){super.init();const M=g.z(this.layout.renderingContent,QN),W=Iv(this.Yk);this.Z.push(new w3a(M,W,this.layout.layoutId,{adsClientData:this.layout.w9}))}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M)}kZ(M,W){if(W===this.layout.layoutId)switch(M){case "skip-button":(M=this.layout.clientMetadata.fp("metadata_type_ad_pod_skip_target_callback_ref")?.current)&& m6(M,this.Qc(),this.layout)}}vY(){super.vY()}};var p3g=class{constructor(M,W,b,T,q,X){this.yN=M;this.I0=W;this.iV=b;this.V=T;this.Z=q;this.PY=X}build(M,W,b,T){if(M=g$(M,b,T,this.yN,this.I0,this.iV,this.V,this.Z,this.PY))return M;throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"OtherWebInPlayerLayoutRenderingAdapterFactory.");}};var YMQ=class{constructor(M,W,b,T,q,X,G,V,J){this.callback=M;this.slot=W;this.layout=b;this.I0=T;this.iV=q;this.PY=G;this.HP=V;this.NK=J;this.Z=!1;M=b.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId);M=this.layout.clientMetadata.fp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];this.V=new DC(X,M,b.layoutId,()=>uOP(this)*1E3)}Qc(){return this.slot}Zf(){return this.layout}init(){this.I0.get().addListener(this); this.I0.get().yk.push(this);const M=uOP(this);var W=g.z(this.layout.renderingContent,XP);const b=W?r$(W.pings):this.layout.clientMetadata.fp("metadata_type_active_view_traffic_type");W=W?W.pings?.activeViewTracking?.identifier:this.layout.clientMetadata.fp("metadata_type_active_view_identifier");Rv(this.layout.yc)&&zg(this.HP.get(),this.layout.layoutId,{hE:b,vT:M,listener:this,GJ:W})}release(){this.I0.get().removeListener(this);fdS(this.I0.get(),this);Rv(this.layout.yc)&&uL(this.HP.get(),this.layout.layoutId)}startRendering(M){this.callback.t5(this.slot, M)}A_(M,W){YJ(this,"abandon");this.callback.Dg(this.slot,M,W)}lU(M){switch(M.id){case "part2viewed":this.Yk.EB("start");this.Yk.EB("impression");break;case "videoplaytime25":this.Yk.EB("first_quartile");break;case "videoplaytime50":this.Yk.EB("midpoint");break;case "videoplaytime75":this.Yk.EB("third_quartile");break;case "videoplaytime100":YJ(this,"complete");ST(this.Yk)&&zb(this.Yk,Infinity,!0);jAL(this.PY.get())&&OR(this.V,Infinity,!0);break;case "engagedview":ST(this.Yk)||this.Yk.EB("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:za("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}PO(){}gm(){}cO(){}onFullscreenToggled(){}aV(M){this.Z||(M.QN(4)&&!M.QN(2)?AZ(this.Yk,"pause"):u9(M,4)<0&&!(u9(M,2)<0)&&AZ(this.Yk,"resume"))}oZ(){}CC(M){jAL(this.PY.get())&&OR(this.V,M*1E3,!1);ST(this.Yk)&&zb(this.Yk,M*1E3,!1)}xX(){YJ(this,"swipe")}Xj(){this.Yk.EB("active_view_measurable")}Oa(){this.Yk.EB("active_view_viewable")}Ua(){this.Yk.EB("active_view_fully_viewable_audible_half_duration")}bH(){this.Yk.EB("audio_measurable")}a5(){this.Yk.EB("audio_audible")}};var $KP=class{constructor(M,W,b,T,q,X){this.I0=M;this.iV=W;this.SW=b;this.PY=T;this.HP=q;this.NK=X}build(M,W,b,T){if(b.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.z(T.renderingContent,XP)!==void 0)return new YMQ(M,b,T,this.I0,this.iV,this.SW,this.PY,this.HP,this.NK);W=["metadata_type_ad_placement_config"];for(const q of FD())W.push(q);if(Po(T,{Rx:W,bN:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return b.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new YMQ(M,b,T,this.I0,this.iV,this.SW, this.PY,this.HP,this.NK):new hNt(M,b,T,this.I0,this.iV,this.SW,this.PY,this.HP);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"PlaybackTrackingLayoutRenderingAdapterFactory.");}};g.WE=class{constructor(M,W={},b=0){this.errorCode=M;this.details=W;this.severity=b}};var MSg; MSg={z6:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",hk:"AUTHENTICATION_MALFORMED",Th:"AUTHENTICATION_MISSING",Pq:"BAD_REQUEST",Sz:"CAST_SESSION_DEVICE_MISMATCHED",K$:"CAST_SESSION_VIDEO_MISMATCHED",L$:"CAST_TOKEN_EXPIRED",Hq:"CAST_TOKEN_FAILED",m7:"CAST_TOKEN_MALFORMED",wL:"CGI_PARAMS_MALFORMED",C$:"CGI_PARAMS_MISSING",hc:"DEVICE_FALLBACK",ji:"GENERIC_WITH_LINK_AND_CPN",W7:"ERROR_HDCP",zU:"LICENSE",Di:"VIDEO_UNAVAILABLE",aH:"FORMAT_UNAVAILABLE",OI:"GEO_FAILURE",Kh:"HTML5_AUDIO_RENDERER_ERROR", Lh:"GENERIC_WITHOUT_LINK",Hd:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",o1:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",w1:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Ch:"HTML5_SPS_UMP_STATUS_REJECTED",nh:"INVALID_DRM_MESSAGE",bC:"PURCHASE_NOT_FOUND",U8:"PURCHASE_REFUNDED",xKs:"RENTAL_EXPIRED",Hpn:"RETRYABLE_ERROR",NKV:"SERVER_ERROR",bpK:"SIGNATURE_EXPIRED",g9n:"STOPPED_BY_ANOTHER_PLAYBACK",ZvX:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",deV:"STREAMING_NOT_ALLOWED",sTv:"STREAM_LICENSE_NOT_FOUND", ATY:"TOO_MANY_REQUESTS",Pk0:"TOO_MANY_REQUESTS_WITH_LINK",pPz:"TOO_MANY_STREAMS_PER_ENTITLEMENT",lfk:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",JTV:"VIDEO_FORBIDDEN",GaT:"VIDEO_NOT_FOUND",xz:"BROWSER_OR_EXTENSION_ERROR"}; g.MA={ALREADY_PINNED_ON_A_DEVICE:"Ya has descargado este v\u00eddeo en el n\u00famero m\u00e1ximo de dispositivos que permite el propietario de los derechos de autor. Tienes que eliminarlo de otro dispositivo para poder verlo en este.",DEVICE_FALLBACK:"Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",GENERIC_WITH_LINK_AND_CPN:"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde. (ID de reproducci\u00f3n: $CPN) $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",LICENSE:"Se ha producido un error de licencia con este v\u00eddeo.", VIDEO_UNAVAILABLE:"El v\u00eddeo no est\u00e1 disponible",FORMAT_UNAVAILABLE:"Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",GEO_FAILURE:"Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",HTML5_AUDIO_RENDERER_ERROR:"No se ha podido procesar el audio. Reinicia tu ordenador.",GENERIC_WITHOUT_LINK:"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"No se admite este formato de v\u00eddeo.",HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Tu navegador no reconoce ninguno de los formatos de v\u00eddeo disponibles por el momento. $BEGIN_LINKHaz clic aqu\u00ed para consultar las preguntas frecuentes sobre el v\u00eddeo HTML5$END_LINK.", HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT:"Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",HTML5_SPS_UMP_STATUS_REJECTED:"Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",INVALID_DRM_MESSAGE:"El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",PURCHASE_NOT_FOUND:"Este v\u00eddeo es de pago.",PURCHASE_REFUNDED:"Te hemos devuelto el importe de este v\u00eddeo.", RENTAL_EXPIRED:"El periodo de alquiler de este v\u00eddeo ha finalizado.",CAST_SESSION_DEVICE_MISMATCHED:"El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",CAST_SESSION_VIDEO_MISMATCHED:"El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",CAST_TOKEN_FAILED:"La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",CAST_TOKEN_EXPIRED:"La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",CAST_TOKEN_MALFORMED:"La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.", SERVER_ERROR:"Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",STOPPED_BY_ANOTHER_PLAYBACK:"Tu cuenta est\u00e1 reproduciendo este v\u00eddeo en otra ubicaci\u00f3n. Vuelve a cargar esta p\u00e1gina para reanudar la reproducci\u00f3n.",STREAM_LICENSE_NOT_FOUND:"Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.", STREAMING_NOT_ALLOWED:"No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",RETRYABLE_ERROR:"Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",TOO_MANY_REQUESTS:"Inicia sesi\u00f3n para ver este v\u00eddeo.",TOO_MANY_REQUESTS_WITH_LINK:"Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",TOO_MANY_STREAMS_PER_USER:"Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.", TOO_MANY_STREAMS_PER_ENTITLEMENT:"Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",UNSUPPORTED_DEVICE:"La reproducci\u00f3n no es compatible con este dispositivo.",VIDEO_FORBIDDEN:"El acceso a este v\u00eddeo est\u00e1 prohibido.",VIDEO_NOT_FOUND:"No es posible encontrar este v\u00eddeo.",BROWSER_OR_EXTENSION_ERROR:"Se ha producido un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK"};var yw;{var Wuy=g.Vd();const M=Wuy.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!M||M.length<2)yw=void 0;else{var Un=Wuy.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);yw=Un&&Un.length===6?Number(Un[5].replace("_",".")):0}}var O1=yw,qA=O1>=0;g.Cq=class extends ZS{J(M,W,b,T,q){return super.J(M,W,b,T,q)}};var G0={FAIRPLAY:"fairplay",PLAYREADY:"playready",WIDEVINE:"widevine",CLEARKEY:null,FLASHACCESS:null,UNKNOWN:null,WIDEVINE_CLASSIC:null};var Nm=class{constructor(M=0,W=0,b="SPATIAL_AUDIO_TYPE_NONE",T=!1,q,X,G="AUDIO_QUALITY_UNKNOWN",V=!1){this.sampleRate=M;this.numChannels=W;this.spatialAudioType=b;this.Z=T;this.B=q;this.A=X;this.audioQuality=G;this.V=V}isMultiChannelAudio(){return this.numChannels>2}};var iS={WIDTH:{name:"width",video:!0,valid:640,V4:99999},HEIGHT:{name:"height",video:!0,valid:360,V4:99999},FRAMERATE:{name:"framerate",video:!0,valid:30,V4:9999},BITRATE:{name:"bitrate",video:!0,valid:3E5,V4:2E9},EOTF:{name:"eotf",video:!0,valid:"bt709",V4:"catavision"},CHANNELS:{name:"channels",video:!1,valid:2,V4:99},CRYPTOBLOCKFORMAT:{name:"cryptoblockformat",video:!0,valid:"subsample",V4:"invalidformat"},DECODETOTEXTURE:{name:"decode-to-texture",video:!0,valid:"false",V4:"nope"},AV1_CODECS:{name:"codecs", video:!0,valid:"av01.0.05M.08",V4:"av99.0.05M.08"},EXPERIMENTAL:{name:"experimental",video:!0,valid:"allowed",V4:"invalid"},TUNNELMODE:{name:"tunnelmode",video:!0,valid:"true",V4:"false"}};var bKy=["h","H"],TEP=["9","("],qzs=["9h","(h"],Xwt=["8","*"],j4y=["a","A"],GEP=["o","O"],VSs=["m","M"],Jvy=["mac3","MAC3"],BES=["meac3","MEAC3"],S2S={h:bKy,H:bKy,["9"]:TEP,["("]:TEP,["9h"]:qzs,["(h"]:qzs,["8"]:Xwt,["*"]:Xwt,a:j4y,A:j4y,o:GEP,O:GEP,m:VSs,M:VSs,mac3:Jvy,MAC3:Jvy,meac3:BES,MEAC3:BES},DKp=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),akG=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var T0={["0"]:"f",["160"]:"h",["133"]:"h",["134"]:"h",["135"]:"h",["136"]:"h",["137"]:"h",["264"]:"h",["266"]:"h",["138"]:"h",["298"]:"h",["299"]:"h",["304"]:"h",["305"]:"h",["214"]:"h",["216"]:"h",["374"]:"h",["375"]:"h",["140"]:"a",["141"]:"a",["327"]:"sa",["258"]:"m",["380"]:"mac3",["328"]:"meac3",["161"]:"H",["142"]:"H",["143"]:"H",["144"]:"H",["222"]:"H",["223"]:"H",["145"]:"H",["224"]:"H",["225"]:"H",["146"]:"H",["226"]:"H",["227"]:"H",["147"]:"H",["384"]:"H",["376"]:"H",["385"]:"H",["377"]:"H", ["149"]:"A",["261"]:"M",["381"]:"MAC3",["329"]:"MEAC3",["598"]:"9",["278"]:"9",["242"]:"9",["243"]:"9",["244"]:"9",["775"]:"9",["776"]:"9",["777"]:"9",["778"]:"9",["779"]:"9",["780"]:"9",["781"]:"9",["782"]:"9",["783"]:"9",["247"]:"9",["248"]:"9",["353"]:"9",["355"]:"9",["356"]:"9",["271"]:"9",["577"]:"9",["313"]:"9",["579"]:"9",["272"]:"9",["302"]:"9",["303"]:"9",["407"]:"9",["408"]:"9",["308"]:"9",["315"]:"9",["330"]:"9h",["331"]:"9h",["332"]:"9h",["333"]:"9h",["334"]:"9h",["335"]:"9h",["336"]:"9h", ["337"]:"9h",["338"]:"so",["600"]:"o",["250"]:"o",["251"]:"o",["774"]:"o",["194"]:"*",["195"]:"*",["220"]:"*",["221"]:"*",["196"]:"*",["197"]:"*",["279"]:"(",["280"]:"(",["317"]:"(",["318"]:"(",["273"]:"(",["274"]:"(",["357"]:"(",["358"]:"(",["275"]:"(",["359"]:"(",["360"]:"(",["276"]:"(",["583"]:"(",["584"]:"(",["314"]:"(",["585"]:"(",["561"]:"(",["277"]:"(",["361"]:"(h",["362"]:"(h",["363"]:"(h",["364"]:"(h",["365"]:"(h",["366"]:"(h",["591"]:"(h",["592"]:"(h",["367"]:"(h",["586"]:"(h",["587"]:"(h", ["368"]:"(h",["588"]:"(h",["562"]:"(h",["409"]:"(",["410"]:"(",["411"]:"(",["412"]:"(",["557"]:"(",["558"]:"(",["394"]:"1",["395"]:"1",["396"]:"1",["397"]:"1",["398"]:"1",["399"]:"1",["720"]:"1",["721"]:"1",["400"]:"1",["401"]:"1",["571"]:"1",["402"]:"1",["694"]:"1h",["695"]:"1h",["696"]:"1h",["697"]:"1h",["698"]:"1h",["699"]:"1h",["700"]:"1h",["701"]:"1h",["702"]:"1h",["703"]:"1h",["386"]:"3",["387"]:"w",["406"]:"6",["787"]:"1",["788"]:"1",["548"]:"1e",["549"]:"1e",["550"]:"1e",["551"]:"1e",["809"]:"1e", ["810"]:"1e",["552"]:"1e",["811"]:"1e",["812"]:"1e",["553"]:"1e",["813"]:"1e",["814"]:"1e",["554"]:"1e",["815"]:"1e",["816"]:"1e",["555"]:"1e",["817"]:"1e",["818"]:"1e",["572"]:"1e",["556"]:"1e",["645"]:"(",["646"]:"(",["647"]:"(",["648"]:"(",["649"]:"(",["650"]:"(",["651"]:"(",["652"]:"(",["653"]:"(",["654"]:"(",["655"]:"(",["656"]:"(",["657"]:"(",["658"]:"(",["659"]:"(",["660"]:"(",["661"]:"(",["662"]:"(",["663"]:"(",["664"]:"(",["665"]:"(",["666"]:"(",["667"]:"(",["668"]:"(",["669"]:"(",["670"]:"(", ["671"]:"(",["672"]:"(",["673"]:"(",["674"]:"(h",["675"]:"(h",["676"]:"(h",["677"]:"(h",["678"]:"(h",["679"]:"(h",["680"]:"(h",["681"]:"(h",["682"]:"(h",["683"]:"(h",["684"]:"(h",["685"]:"(h",["686"]:"(h",["687"]:"(h",["688"]:"A",["689"]:"A",["690"]:"A",["691"]:"MEAC3",["773"]:"i",["806"]:"I",["805"]:"I",["829"]:"9",["830"]:"9",["831"]:"9",["832"]:"9",["833"]:"9",["834"]:"9",["835"]:"9",["836"]:"9",["892"]:"9",["893"]:"9",["837"]:"9",["838"]:"9",["839"]:"9",["840"]:"9",["841"]:"(",["842"]:"(",["843"]:"(", ["844"]:"(",["845"]:"(",["846"]:"(",["847"]:"(",["848"]:"(",["894"]:"(",["895"]:"(",["849"]:"(",["850"]:"(",["851"]:"(",["852"]:"(",["865"]:"9",["866"]:"9",["867"]:"9",["868"]:"9",["869"]:"9",["870"]:"9",["871"]:"9",["872"]:"9",["896"]:"9",["897"]:"9",["873"]:"9",["874"]:"9",["875"]:"9",["876"]:"9",["877"]:"(",["878"]:"(",["879"]:"(",["880"]:"(",["881"]:"(",["882"]:"(",["883"]:"(",["884"]:"(",["898"]:"(",["899"]:"(",["885"]:"(",["886"]:"(",["887"]:"(",["888"]:"(",["900"]:"2",["901"]:"2",["902"]:"2", ["903"]:"2",["904"]:"2",["905"]:"2",["906"]:"2",["907"]:"2",["908"]:"2"};var XZQ={STEREO_LAYOUT_UNKNOWN:0,STEREO_LAYOUT_LEFT_RIGHT:1,STEREO_LAYOUT_TOP_BOTTOM:2};var $lp={Anz:0,gkK:124,qYs:144,s0K:220,dKv:240,RKY:340,tTY:360,vkY:480,hKK:588,ynK:608,TKY:720,VT0:740,O8:1080,QU:1100,uXv:1440,Zpp:2160,BK0: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"};g.aig={x$:"auto",VWV:"tiny",fO:"light",Q0s:"small",FL:"medium",xF:"large",l2:"hd720",Bd:"hd1080",AQ:"hd1440",Pd:"hd2160",ph:"hd2880",Sl:"highres",UNKNOWN:"unknown"};var yg,GXt;g.mh={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320};yg={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"}; GXt={QUALITY_ORDINAL_UNKNOWN:0,QUALITY_ORDINAL_144P_SAVER:124,QUALITY_ORDINAL_144P:144,QUALITY_ORDINAL_240P_SAVER:220,QUALITY_ORDINAL_240P:240,QUALITY_ORDINAL_360P_SAVER:340,QUALITY_ORDINAL_360P:360,QUALITY_ORDINAL_480P:480,QUALITY_ORDINAL_608P_SAVER:588,QUALITY_ORDINAL_608P:608,QUALITY_ORDINAL_720P:720,QUALITY_ORDINAL_720P_ENHANCED:740,QUALITY_ORDINAL_1080P:1080,QUALITY_ORDINAL_1080P_ENHANCED:1100,QUALITY_ORDINAL_1440P:1440,QUALITY_ORDINAL_2160P:2160,QUALITY_ORDINAL_HIGHRES:9999};var vE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var HE=class{constructor(M,W,b,T,q,X,G,V,J,B){this.width=M;this.height=W;this.B=V;this.quality=X||LW(M,W);this.qualityOrdinal=g.mh[this.quality];this.fps=b||0;this.stereoLayout=!q||T!=null&&T!=="UNKNOWN"&&T!=="RECTANGULAR"?0:q;this.projectionType=T?T==="EQUIRECTANGULAR"&&q===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":T:"UNKNOWN";(M=G)||(b=g.mh[this.quality],b===0?M="Autom\u00e1tica":(M=this.projectionType,W=this.fps,M=b.toString()+(M==="EQUIRECTANGULAR"||M==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||M==="MESH"? "s":"p")+(W>55?"60":W>49?"50":W>39?"48":"")));this.qualityLabel=M;this.Z=J||"";this.primaries=B||""}V(){return this.fps>32}isHdr(){return this.Z==="smpte2084"||this.Z==="arib-std-b67"}};var fW=class{constructor(M,W,b={}){this.id=M;this.mimeType=W;b.sB>0||(b.sB=16E3);Object.assign(this,b);[this.itag,this.V]=this.id.split(";");this.containerType=lS(W);this.Qz=T0[this.itag]||""}W(){return this.video}D(){return this.audio}dU(){return this.containerType===2}A(){return this.Qz==="9"||this.Qz==="("||this.Qz==="9h"||this.Qz==="(h"}Z(){return this.Qz==="1"||this.Qz==="1h"||xB&&this.Qz==="1e"}C(){return this.Qz==="mac3"||this.Qz==="meac3"||this.Qz==="m"||this.Qz==="i"||TDl(this)}isEncrypted(){return!!this.contentProtection}s1(){return!!this.audio}OO(){return!!this.video}B(){return this.mimeType=== "application/x-mpegURL"}},xB=!1;var nit=class extends g.b9{constructor(M,W,b,T){super();this.gt=M;this.start=W;this.end=b;this.isActive=T;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.uh={error:()=>{!this.ST()&&this.isActive&&this.publish("error",this)}, updateend:()=>{!this.ST()&&this.isActive&&this.publish("updateend",this)}}; this.gt.o8(this.uh);this.TH=this.isActive}appendBuffer(M,W,b){if(this.gt.ju()!==this.appendWindowStart+this.start||this.gt.Ml()!==this.appendWindowEnd+this.start||this.gt.Ga()!==this.timestampOffset+this.start)this.gt.supports(1),this.gt.yS(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.gt.KW(this.timestampOffset+this.start);this.gt.appendBuffer(M,W,b)}abort(){this.gt.abort()}remove(M,W){this.gt.remove(M+this.start,W+this.start)}removeAll(){this.remove(this.appendWindowStart, this.appendWindowEnd)}clear(){this.gt.clear()}yS(M,W){this.appendWindowStart=M;this.appendWindowEnd=W}XO(){return this.timestampOffset+this.start}ju(){return this.appendWindowStart}Ml(){return this.appendWindowEnd}KW(M){this.timestampOffset=M}Ga(){return this.timestampOffset}ZY(M=!1){M=this.gt.ZY(M);return oe(M,this.start,this.end)}pu(){return this.gt.pu()}FJ(){return this.gt.FJ()}Bc(){return this.gt.Bc()}m_(){return this.gt.m_()}jf(){this.gt.jf()}o5(M){return this.gt.o5(M)}ZH(){return this.gt.ZH()}oD(){return this.gt.oD()}Z9(M, W,b){this.gt.Z9(M,W,b)}dB(M,W,b){this.gt.dB(M,W,b)}Zj(M,W){return this.gt.Zj(M,W)}supports(M){return this.gt.supports(M)}Cl(){return this.gt.Cl()}isView(){return!0}oO(){return this.gt.oO()?this.isActive:!1}isLocked(){return this.TH&&!this.isActive}qd(M){M=this.gt.qd(M);M.vw=`${this.start}-${this.end}`;return M}wO(){return this.gt.wO()}YB(){return this.gt.YB()}Y1(){return this.gt.Y1()}vY(){this.gt.yu(this.uh);super.vY()}};var Dv=!1;var ayy=class extends g.b9{constructor(M,W,b,T,q,X){super();this.JT=M;this.hj=W;this.id=b;this.containerType=T;this.Qz=q;this.OO=X;this.XM=this.WE=this.Gm=null;this.Dz=!1;this.appendWindowStart=this.timestampOffset=0;this.BA=AE([],[]);this.uq=!1;this.jC=[];this.LI=Vk?[]:void 0;this.handler=G=>this.publish(G.type,this); this.JT?.addEventListener&&(this.JT.addEventListener("updateend",this.handler),this.JT.addEventListener("error",this.handler))}appendBuffer(M,W,b){this.uq=!1;b&&(this.WE=b);M.length&&(this.JT?.appendBuffer?this.JT.appendBuffer(M):this.JT?this.JT.append(M):this.hj&&this.hj.webkitSourceAppend(this.id,M));W&&(W.isEncrypted()&&(this.XM=this.WE),W.type===3&&(this.Gm=W),this.jC.push(W.lw()),this.jC.length>4&&this.jC.shift());this.LI&&(this.LI.length>=2||M.length>1048576?delete this.LI:this.LI.push(M))}abort(){try{this.JT? this.JT.abort():this.hj&&this.hj.webkitSourceAbort(this.id)}catch(M){IPP&&g.lR(new g.EF(`Error while abort the source buffer: ${M.name}, ${M.message}`))}this.WE=this.Gm=null}remove(M,W,b){this.uq=!1;this.JT?.remove&&(b&&b({b:zn(this.ZY()),s:M,e:W}),this.JT.remove(M,W))}removeAll(){this.remove(this.ju(),this.Ml())}clear(){this.Bc()||(this.abort(),this.removeAll(),this.XM=this.WE=this.Gm=null,this.appendWindowStart=this.timestampOffset=0,this.BA=AE([],[]),this.uq=!1,this.LI=Vk?[]:void 0,this.Dz=!0)}ju(){return Dv&& this.OO?this.appendWindowStart:this.JT?.appendWindowStart||0}Ml(){return this.JT?.appendWindowEnd||0}yS(M,W){this.JT&&(Dv&&this.OO?(this.appendWindowStart=M,this.JT.appendWindowEnd=W):M>this.ju()?(this.JT.appendWindowEnd=W,this.JT.appendWindowStart=M):(this.JT.appendWindowStart=M,this.JT.appendWindowEnd=W))}XO(){return this.timestampOffset}KW(M){Dv?this.timestampOffset=M:this.supports(1)&&(this.JT.timestampOffset=M)}Ga(){return Dv?this.timestampOffset:this.supports(1)?this.JT.timestampOffset:0}ZY(M= !1){if(M)return this.uq||this.pu()||(this.BA=this.ZY(!1),this.uq=!0),this.BA;try{return this.JT?this.JT.buffered:this.hj?this.hj.webkitSourceBuffered(this.id):AE([0],[Infinity])}catch(W){return AE([],[])}}pu(){return this.JT?.updating||!1}Bc(){return this.Dz}m_(){return!this.Dz&&this.pu()}jf(){this.Dz=!1}o5(M){const W=M?.Qz;M=M?.containerType;return!W&&!M||W===this.Qz&&M===this.containerType}ZH(){return this.WE}oD(){return this.XM}Zj(M,W){return this.containerType!==M||this.Qz!==W}Z9(M,W,b){if(this.containerType!== M||b&&this.Zj(M,b))this.supports(4),cE()&&this.JT.changeType(W),b&&(this.Qz=b);this.containerType=M}dB(M,W,b){this.containerType&&this.Zj(M,W)&&cE()&&this.JT.changeType(b);this.containerType=M;this.Qz=W}Cl(){return this.Gm}isView(){return!1}supports(M){switch(M){case 1:return this.JT?.timestampOffset!==void 0;case 0:return!!this.JT?.appendBuffer;case 2:return!!this.JT?.remove;case 3:return!(!this.JT?.addEventListener||!this.JT?.removeEventListener);case 4:return!(!this.JT||!this.JT.changeType);default:return!1}}oO(){return!this.pu()}isLocked(){return!1}qd(M){M.to= this.Ga();M.up=this.pu();M.aw=`${(this.JT?.appendWindowStart||0).toFixed(3)}-${(this.JT?.appendWindowEnd||Infinity).toFixed(3)}`;return M}FJ(){return this.JT?.writeHead||0}wO(){const M={};for(let W=0;W{}); this.Z?.clear();this.V?.clear()}gK(){this.Z?.jf();this.V?.jf();this.W=!1}Bc(){return this.V?.Bc()||this.Z?.Bc()}o5(M,W){return!!this.Z&&!!this.V&&this.Z.o5(W)&&this.V.o5(M)}BY(){return!!this.WY&&this.WY.streaming===!1}},s5=!1;var tI=class{constructor(){this.G3=this.LP=Xyt;this.promise=new g.Zm((M,W)=>{this.LP=M;this.G3=W})}then(M,W){return this.promise.then(M,W)}resolve(M){this.LP(M)}reject(M){this.G3(M)}};var E1p=class extends g.gz{constructor(){super();this.qP=!1;this.Vc=null;this.d9=this.Ds=!1;this.BY=new g.Uo;this.mediaKeys=this.Cp=null;g.t(this,this.BY)}lV(){return this.Vc}activate(M){let W="";M&&(UlJ(this,M),W=M.Vc);if(!this.XA()||W)W&&this.XA()!==W&&(this.wK(W),delete this.V,this.A&&(this.A.reject(),delete this.A),!window.MediaSource&&window.ManagedMediaSource&&this.oT(!!M?.B())),M&&M.Z||this.load(),this.d9||(this.addEventListener("volumechange",this.cP),this.d9=!0)}dT(M,W){if(this.V)if(Gq&& this.V.C()&&!this.V.o5(M,W))w8(this,{l:"megms",sr:this.Cp?.Aj()}),kCQ(this),this.stopVideo();else return this.WY=this.V,this.V=void 0,this.WY;M=window.MediaSource?new pW(this,new window.MediaSource,!1):window.ManagedMediaSource?new pW(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new pW(this,new window.WebKitMediaSource,!1):new pW(this,void 0,!1);this.activate(M.A);this.WY=M;this.qP=!1;return M}fv(M){this.V=M}playVideo(){this.isEnded()&&this.seekTo(0);!this.XA()&&this.Vc&&(g.O(Error("playVideo without src")), this.wK(this.Vc.Vc),this.Vc.Z||this.load());const M=this.play();this.Cp?.g$()||qA&&(O1||0)>=7&&(!M||this.Cp?.j("mweb_ios_allow_playback_workaround_when_ready"))&&S9S(this,()=>{g.RS(()=>{K5t(this,this.getCurrentTime(),0)},500)}); return M}seekTo(M){this.B()>0&&(qA&&O1<4&&(M=Math.max(.1,M)),this.setCurrentTime(M))}o3(){if(!this.V&&this.WY)if(this.WY.W)try{w8(this,{l:"mer",sr:this.Cp?.Aj(),rs:this.WY.B()}),this.WY.clear(),this.fv(this.WY),this.WY=void 0}catch(M){const W=new g.EF(`Error while clearing Media Source in MediaElement: ${M.name}, ${M.message}`);g.O(W);this.stopVideo()}else this.stopVideo()}stopVideo(){if(!this.V)if(this.WY?.gK(),jh){if(!this.A){var M=new tI;M.then(void 0,()=>{}); this.A=M;ZkS&&this.pause();g.RS(()=>{this.A===M&&(M5(this),M.resolve())},200)}}else M5(this)}gI(){const M=this.O1(); return eA(M)&&this.getDuration()?O5(M,this.getCurrentTime()):0}yF(){const M=this.getDuration();return M===Infinity?1:M?this.gI()/M:0}qd(){try{const M=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:zn(this.S(),",",3),vbu:zn(this.O1()),vbs:zn(this.D()),vpa:`${+this.isPaused()}`,vsk:`${+this.isSeeking()}`,ven:`${+this.isEnded()}`,vpr:`${this.getPlaybackRate()}`,vrs:`${this.B()}`,vns:`${this.MK()}`,vec:`${this.QW()}`,vemsg:this.bl(),vvol:`${this.getVolume()}`, vdom:`${+this.OY()}`,vsrc:`${+!!this.XA()}`,vw:`${M.width}`,vh:`${M.height}`}}catch{return{}}}hasError(){return this.QW()>0}addEventListener(M,W){this.BY.listen(M,W,!1,this);this.XX(M)}removeEventListener(M,W){this.BY.fN(M,W,!1,this)}dispatchEvent(M){if(this.A&&M.type==="pause")return!1;if(Gq){var W=M.Z?.timeStamp||Infinity;W=W>performance.now()?W-Date.now()+performance.now():W;const b=this.V||this.WY;if(b?.Bc()||W<=(b?.D||0))return w8(this,{l:"mede",sr:this.Cp?.Aj(),et:M.type}),!1;if(this.qP)return w8(this, {l:"medes",et:M.type}),b&&M.type==="seeking"&&(b.D=performance.now(),this.qP=!1),!1}return this.BY.dispatchEvent(M)}bV(){this.Ds=!1}EY(){this.Ds=!0;this.X(!0)}cP(){this.Ds&&!this.xk()&&this.X(!0)}equals(M){return!!M&&M.BP()===this.BP()}vY(){this.d9&&this.removeEventListener("volumechange",this.cP);jh&&M5(this);super.vY()}},jh=!1,ZkS=!1,Gq=!1,mla=!1;var Kq;g.TD=class{constructor(M,W=null,b=null){this.Iw=W;this.seekSource=b;this.state=M||64}Z(M){return!!(this.state&M)}isPaused(){return this.Z(4)}isPlaying(){return this.Z(8)&&!this.Z(512)&&!this.Z(64)&&!this.Z(2)}isOrWillBePlaying(){return this.Z(8)&&!this.Z(2)&&!this.Z(1024)}V(){return this.state===8}isCued(){return this.Z(64)&&!this.Z(8)&&!this.Z(4)}isBuffering(){return this.Z(1)&&!this.Z(2)}isError(){return this.Z(128)}isSuspended(){return this.Z(512)}gD(){return this.Z(64)&&this.Z(4)}toString(){return`PSt.${this.state.toString(16)}`}}; Kq={BUFFERING:"buffering-mode",CUED:"cued-mode",ENDED:"ended-mode",PAUSED:"paused-mode",PLAYING:"playing-mode",SEEKING:"seeking-mode",UNSTARTED:"unstarted-mode"};var n1y=class extends g.gz{constructor(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C){super();this.ZK=M;this.slot=W;this.layout=b;this.iV=T;this.HP=q;this.NK=X;this.I0=G;this.Md=V;this.SW=J;this.DM=B;this.position=D;this.A=a;this.PY=E;this.rl=n;this.context=C;this.ZU=!0;this.B=!1;this.Zg="not_rendering";this.Z=!1;M=this.layout.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(b.yc,this.iV,M,b.layoutId);M=Et(this)?.progressCommands||[];this.V=new DC(J,M,b.layoutId,()=>this.du())}Qc(){return this.slot}Zf(){return this.layout}init(){const M= this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),W=this.layout.clientMetadata.fp("metadata_type_active_view_traffic_type"); Rv(this.layout.yc)&&zg(this.HP.get(),this.layout.layoutId,{hE:W,vT:M,listener:this});P4(this.iV.get(),this);this.ZL()}MM(){}release(){Rv(this.layout.yc)&&uL(this.HP.get(),this.layout.layoutId);eZ(this.iV.get(),this);this.Mj()}yE(){}Hf(){}startRendering(M){if(M.layoutId!==this.layout.layoutId){this.ZK.zx(this.slot,M,new Mg("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 W=!1}else W=!0;W&&(this.Zg="rendering_start_requested",this.DM(-1),this.o6(M),this.f1(!1))}t5(M,W){W.layoutId===this.layout.layoutId&&(this.Zg="rendering",this.Z=this.I0.get().isMuted()||this.I0.get().getVolume()===0,this.EB("impression"),this.EB("start"),this.I0.get().isMuted()&&(nd(this,"mute"),M=Et(this)?.muteCommands||[],VN(this.SW.get(),M,this.layout.layoutId)),this.I0.get().isFullscreen()&&(this.e6("fullscreen"),M=Et(this)?.fullscreenCommands|| [],VN(this.SW.get(),M,this.layout.layoutId)),M=this.Md.get(),M.B&&!M.V&&(M.S=!1,M.V=!0,M.actionType!=="ad_to_video"&&(As("pbs",void 0,M.actionType),g.he("finalize_all_timelines")&&p7P(M.actionType))),this.DM(1),this.Nq(W),W=Et(this)?.impressionCommands||[],VN(this.SW.get(),W,this.layout.layoutId))}vU(M,W,b){this.S={M_:3,tO:M==="load_timeout"?402:400,errorMessage:W.message};this.EB("error");M=Et(this)?.errorCommands||[];VN(this.SW.get(),M,this.layout.layoutId);this.ZK.zx(this.slot,this.layout,W,b)}tv(M, W=!1){if(this.Zg==="rendering"){zb(this.Yk,M*1E3,W);H1J(this,M*1E3,W);var b=this.du();b&&(b/=1E3,(M>=b*.25||W)&&this.EB("first_quartile"),(M>=b*.5||W)&&this.EB("midpoint"),(M>=b*.75||W)&&this.EB("third_quartile"),this.PY.get().L.G().experiments.FX("enable_progress_command_flush_on_kabuki")?OR(this.V,M*1E3,W):OR(this.V,M*1E3,RfJ(this)?W:!1))}}ip(){return pX(this.NK.get(),1)?.clientPlaybackNonce||""}yJ(M,W){M.layoutId!==this.layout.layoutId?this.ZK.zx(this.slot,M,new Mg("Tried to stop rendering an unknown layout, this adapter "+ `requires LayoutId: ${this.layout.layoutId}`+`and LayoutType: ${this.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):W()}Dg(M,W,b){if(W.layoutId===this.layout.layoutId)switch(this.Zg="not_rendering",this.layoutExitReason=void 0,(M=b!=="normal"||this.position+1===this.A)&&this.f1(M),this.ev(b),this.DM(0),b){case "abandoned":uw(this.Yk,"impression")&&(b=Et(this)?.abandonCommands||[],VN(this.SW.get(),b,this.layout.layoutId));break;case "normal":b= Et(this)?.completeCommands||[];VN(this.SW.get(),b,this.layout.layoutId);break;case "skipped":b=Et(this)?.skipCommands||[],VN(this.SW.get(),b,this.layout.layoutId)}}nA(){return this.layout.layoutId}P2(){return this.S}Xj(){if(this.Zg==="rendering"){this.Yk.EB("active_view_measurable");var M=Et(this)?.activeViewMeasurableCommands||[];VN(this.SW.get(),M,this.layout.layoutId)}}Ua(){if(this.Zg==="rendering"){this.Yk.EB("active_view_fully_viewable_audible_half_duration");var M=Et(this)?.activeViewFullyViewableAudibleHalfDurationCommands|| [];VN(this.SW.get(),M,this.layout.layoutId)}}Oa(){if(this.Zg==="rendering"){this.Yk.EB("active_view_viewable");var M=Et(this)?.activeViewViewableCommands||[];VN(this.SW.get(),M,this.layout.layoutId)}}a5(){if(this.Zg==="rendering"){this.Yk.EB("audio_audible");var M=Et(this)?.activeViewAudioAudibleCommands||[];VN(this.SW.get(),M,this.layout.layoutId)}}bH(){if(this.Zg==="rendering"){this.Yk.EB("audio_measurable");var M=Et(this)?.activeViewAudioMeasurableCommands||[];VN(this.SW.get(),M,this.layout.layoutId)}}f1(M){this.Md.get().f1(this.layout.clientMetadata.fp("metadata_type_ad_placement_config").kind, M,this.position,this.A,!1)}onFullscreenToggled(M){this.Zg==="rendering"&&(M?(this.e6("fullscreen"),M=Et(this)?.fullscreenCommands||[],VN(this.SW.get(),M,this.layout.layoutId)):(this.e6("end_fullscreen"),M=Et(this)?.endFullscreenCommands||[],VN(this.SW.get(),M,this.layout.layoutId)))}onVolumeChange(){if(this.Zg==="rendering")if(this.I0.get().isMuted()){nd(this,"mute");var M=Et(this)?.muteCommands||[];VN(this.SW.get(),M,this.layout.layoutId)}else nd(this,"unmute"),M=Et(this)?.unmuteCommands||[],VN(this.SW.get(), M,this.layout.layoutId)}gm(){}cO(){}PO(){}lU(){}xX(){}e6(M){this.Yk.e6(M,!this.Z)}EB(M){this.Yk.EB(M,!this.Z)}};var AzL=class extends n1y{constructor(M){super(M.ZK,M.slot,M.Gx,M.iV,M.HP,M.NK,M.I0,M.Md,M.SW,M.DM,M.qh,M.FE,M.PY,M.rl,M.context);this.pG=!0;this.gN=this.tD=0;this.Yq=Z3(()=>{this.ZK.t5(this.slot,this.layout)}); this.U2=M.U2;this.lH=M.lH;this.R_=Z3(()=>{this.Zg!=="rendering_stop_requested"&&this.lH(this);this.Gw()}); this.timer=new g.$N(200);this.timer.listen("tick",()=>{this.SR()}); g.t(this,this.timer)}Gw(){this.layoutExitReason?this.ZK.Dg(this.slot,this.layout,this.layoutExitReason):Z1p(this)}ZL(){}Mj(){var M=this.iV.get();M.n6===this&&(M.n6=null);this.timer.stop()}yE(){this.timer.stop();Iyq(this)}Hf(){hfJ(this);NDL(this)}du(){return this.Zf().clientMetadata.fp("METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}eP(){return this.tD/1E3}A_(M,W){this.yJ(M,()=>{this.Zg!=="rendering_stop_requested"&&(this.Zg="rendering_stop_requested",this.layoutExitReason=W,rzq(this,W), this.timer.stop())})}SR(){const M=Date.now(),W=M-this.gN; this.gN=M;this.tD+=W;this.tD>=this.du()?(this.tD=this.du(),this.tv(this.tD/1E3,!0),ka(this,this.tD),this.R_()):(this.tv(this.tD/1E3),ka(this,this.tD))}aV(M){if(this.Zg!=="not_rendering"){M=xlg(this,M);var W=this.I0.get().getPresentingPlayerType()===2;this.Zg==="rendering_start_requested"?W&&sR(M)&&this.Yq():W?M.QN(2)?za("Receive player ended event during MediaBreak",this.Qc(),this.Zf()):F5L(this,M):this.tH()}}o6(){i1L(this);Qa(this.I0.get());this.iV.get().n6=this;iA("pbp")||iA("pbs")||As("pbp");iA("pbp", "watch")||iA("pbs","watch")||As("pbp",void 0,"watch");this.Yq()}Nq(M){this.Md.get();var W=M.clientMetadata.fp("metadata_type_ad_placement_config").kind,b=this.position===0;M=M.clientMetadata.fp("metadata_type_linked_in_player_layout_type");M={adBreakType:Ut(W),adType:xoL(M)};let T=void 0;b?W!=="AD_PLACEMENT_KIND_START"&&(T="video_to_ad"):T="ad_to_ad";rO("ad_mbs",void 0,T);g.xD(M,T);hfJ(this)}tH(){this.R_()}ev(){}oZ(){}};var u7t=class extends n1y{Gw(){this.Zg!=="rendering_stop_requested"&&this.lH(this);this.layoutExitReason?this.ZK.Dg(this.slot,this.layout,this.layoutExitReason):Z1p(this)}constructor(M){super(M.callback,M.slot,M.Gx,M.iV,M.HP,M.NK,M.I0,M.Md,M.SW,M.DM,M.qh,M.FE,M.PY,M.rl,M.context);this.adCpn="";this.e9=this.tP=0;this.Yq=Z3(()=>{this.ZK.t5(this.slot,this.layout)}); this.R_=Z3(()=>{this.Gw()}); this.Ce=M.Ce;this.zY=M.zY;this.VN=M.VN;this.U2=M.U2;this.rW=M.rW;this.lH=M.lH;Bo(this.PY.get(),"html5_disable_media_load_timeout")||(this.nG=new g.d9(()=>{this.vU("load_timeout",new Mg("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); M=xG(this.PY.get());const W=Fe(this.PY.get());M&&W&&(this.b9=new g.d9(()=>{const b=this.layout.clientMetadata.fp("metadata_type_preload_player_vars");b&&this.zY.get().L.preloadVideoByPlayerVars(b,2,300)}))}tH(){this.R_()}aV(M){this.yv(M)}ZL(){this.Zf().clientMetadata.fp("metadata_type_player_bytes_callback_ref").current=this; this.shrunkenPlayerBytesConfig=this.Zf().clientMetadata.fp("metadata_type_shrunken_player_bytes_config")}Mj(){this.Zf().clientMetadata.fp("metadata_type_player_bytes_callback_ref").current=null;this.FA&&this.VN.get().removeCueRange(this.FA);this.FA=void 0;this.nG?.dispose();this.b9&&this.b9.dispose()}o6(M){var W=M.clientMetadata.fp("metadata_type_ad_placement_config");W=xG(this.PY.get(),W);var b=Fe(this.PY.get());if(W&&b){b=M.clientMetadata.fp("metadata_type_preload_player_vars");var T=this.PY.get(); T=g.TO(T.L.G().experiments,"html5_preload_wait_time_secs");b&&this.b9&&this.b9.start(T*1E3)}b=M.clientMetadata.fp("metadata_type_ad_video_id");T=M.clientMetadata.fp("metadata_type_legacy_info_card_vast_extension");b&&T&&this.rW.get().L.G().lV.add(b,{Wl:T});(b=M.clientMetadata.fp("metadata_type_sodar_extension_data"))&&dtl(this.Ce.get(),b);ROl(this.I0.get(),!1);i1L(this);W?(b=this.zY.get(),M=M.clientMetadata.fp("metadata_type_player_vars"),b.L.loadVideoByPlayerVars(M,!1,2)):rt(this.zY.get(),M.clientMetadata.fp("metadata_type_player_vars")); this.nG?.start();W||this.zY.get().L.playVideo(2)}Nq(){this.nG?.stop();this.Z_();(this.adCpn=pX(this.NK.get(),2)?.clientPlaybackNonce||"")||za("Media layout confirmed started, but ad CPN not set.");IN(this.U2.get(),"onAdStart",this.adCpn);this.tP=Date.now()}du(){return pX(this.NK.get(),2)?.gf}A3(){this.Yk.e6("clickthrough")}A_(M,W){this.yJ(M,()=>{this.Zg!=="rendering_stop_requested"&&(this.Zg="rendering_stop_requested",this.layoutExitReason=W,rzq(this,W),this.nG?.stop(),this.b9&&this.b9.stop(),ROl(this.I0.get(), !0),this.shrunkenPlayerBytesConfig?.shouldRequestShrunkenPlayerBytes&&this.I0.get().Un(!1))})}onCueRangeEnter(M){M!==this.FA?za("Received CueRangeEnter signal for unknown layout.",this.Qc(),this.Zf(),{cueRangeId:M}):(this.VN.get().removeCueRange(this.FA),this.FA=void 0,M=this.Zf().clientMetadata.fp("metadata_type_video_length_seconds"),this.tv(M,!0),this.EB("complete"))}ev(M){M!=="abandoned"&&IN(this.U2.get(),"onAdComplete"); IN(this.U2.get(),"onAdEnd",this.adCpn)}Z_(){this.FA=`${"adcompletioncuerange"}:${this.Zf().layoutId}`;this.VN.get().addCueRange(this.FA,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}onCueRangeExit(){}oZ(M){this.Zg==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&M>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.I0.get().Un(!0),this.tv(M))}tv(M,W=!1){super.tv(M,W);W=Date.now()-this.tP;const b=M*1E3,T={contentCpn:this.ip(), adCpn:pX(this.NK.get(),2)?.clientPlaybackNonce||""};if(M-this.e9>=5){const q=W{this.callback.Dg(this.slot,this.layout,W)}); this.I0.get().L.fP();rt(this.zY.get(),{});M=Ak(this.I0.get(),1);M.isPaused()&&!M.Z(2)&&this.I0.get().playVideo();this.I0.get().removeListener(this);this.pB&&czQ(this)}aV(M){if(M.state.isError())this.t0(M.state.Iw?.errorCode,new Mg("There was a player error during this media layout.",{playerErrorCode:M.state.Iw?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var W=Kd(this);W&&W.aV(M)}}cO(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}lU(){}xX(){}uP(M, W,b){ly(this,M,W,b)}Qm(M,W){ly(this,M,W,"error")}};var swa=class extends g.gz{constructor(M,W,b,T,q,X,G){super();this.callback=M;this.zY=W;this.I0=b;this.Md=T;this.AR=q;this.Pr=X;this.PY=G;this.ZU=!0;this.pB=!1}Qc(){return this.AR.Qc()}Zf(){return this.AR.Zf()}init(){const M=this.Zf().clientMetadata.fp("metadata_type_player_bytes_layout_controls_callback_ref");M&&(M.current=this);this.ZL()}ZL(){this.AR.init()}release(){const M=this.Zf().clientMetadata.fp("metadata_type_player_bytes_layout_controls_callback_ref");M&&(M.current=null);this.Mj()}Mj(){this.AR.release()}yE(){this.AR.yE()}Hf(){this.AR.Hf()}lI(M, W){za("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Qc(),this.Zf(),{requestingSlot:M,requestingLayout:W})}startRendering(M){M.layoutId!==this.Zf().layoutId?this.callback.zx(this.Qc(),M,new Mg("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.Zf().layoutId}`+`and LayoutType: ${this.Zf().layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"): (this.I0.get().addListener(this),A3(this.Pr(),this),Wlt(this.Md.get()),Gqg(this.PY.get())||Qa(this.I0.get()),this.AR.startRendering(M))}A_(M,W){this.pB=!0;this.AR.A_(M,W);this.I0.get().L.fP();rt(this.zY.get(),{});M=Ak(this.I0.get(),1);M.isPaused()&&!M.Z(2)&&this.I0.get().playVideo();this.I0.get().removeListener(this);this.pB&&this.AR.tH()}t5(M,W){this.AR.t5(M,W)}Dg(M,W,b){W.layoutId===this.Zf().layoutId&&(this.pB=!1,zZ(this.Pr(),this));this.AR.Dg(M,W,b);W.layoutId===this.Zf().layoutId&&tF(this.Md.get())}oZ(M){this.AR.oZ(M)}aV(M){M.state.isError()? this.t0(M.state.Iw?.errorCode,new Mg("There was a player error during this media layout.",{playerErrorCode:M.state.Iw?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):this.AR.aV(M)}t0(M,W,b){this.AR.vU(M,W,b)}onFullscreenToggled(M){this.AR.onFullscreenToggled(M)}gm(M){this.AR.gm(M)}PO(M){this.AR.PO(M)}onVolumeChange(){this.AR.onVolumeChange()}cO(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}lU(){}xX(){}};var yvL=class{constructor(M,W,b,T,q,X,G,V,J,B){this.callback=M;this.slot=W;this.layout=b;this.NK=T;this.eR=q;this.mQ=X;this.I0=G;this.Yk=V;this.iV=J;this.W=B;this.driftRecoveryMs=this.layout.clientMetadata.fp("metadata_type_drift_recovery_ms")||null;this.A=this.layout.clientMetadata.fp("metadata_type_prefetch_metadata")!==void 0}Qc(){return this.slot}Zf(){return this.layout}init(){this.mQ.get().addListener(this);this.I0.get().addListener(this);var M=this.layout.clientMetadata.fp("metadata_type_layout_enter_ms"); var W=this.layout.clientMetadata.fp("metadata_type_layout_exit_ms");if(this.A){var b=this.mQ.get().qt.slice(-1)[0];b!==void 0&&(M=b.startSecs*1E3,W=(b.startSecs+b.C7)*1E3)}this.MM(M,W);b=this.NK.get().aG?.clientPlaybackNonce;const T=this.layout.w9.adClientDataEntry;I6(this.iV.get(),{daiStateTrigger:{filledAdsDurationMs:W-M,contentCpn:b,adClientData:T}});var q=this.mQ.get();q=pHG(q.B,M,W);q!==null&&(I6(this.iV.get(),{daiStateTrigger:{filledAdsDurationMs:q-M,contentCpn:b,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER", adClientData:T}}),this.eR.get().CZ(q,W))}release(){this.Mj();this.mQ.get().removeListener(this);this.I0.get().removeListener(this)}startRendering(){this.o6();this.callback.t5(this.slot,this.layout)}A_(M,W){this.C(W);this.driftRecoveryMs!==null&&(N5(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(YmJ(this)-this.layout.clientMetadata.fp("metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.I0.get().L.Ph()*1E3).toString()}),this.driftRecoveryMs= null);this.callback.Dg(this.slot,this.layout,W)}UW(){return!1}j0(M){const W=this.layout.clientMetadata.fp("metadata_type_layout_enter_ms"),b=this.layout.clientMetadata.fp("metadata_type_layout_exit_ms");M*=1E3;W<=M&&MX.Zf().clientMetadata.fp("metadata_type_media_sub_layout_index")-G.Zf().clientMetadata.fp("metadata_type_media_sub_layout_index")); M.forEach(X=>{const G=b,V=X.Zf().clientMetadata.fp("metadata_type_video_length_seconds"),J=Math.min(G+V*1E3,W);b=J;T++;q.push(V);X.MM(G,J)})}else this.B.forEach(X=>{X.init()}); this.V!=null&&HK(this.iV.get(),"ads_ssmplra_init",`lid.${this.layout.layoutId};smlid.${this.V}`)}Mj(){this.NK.get().removeListener(this);this.Z=null;this.B.forEach(M=>{M.release()})}o6(){if(this.Z)za("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.V)}); else{var M=this.NK.get().aG?.layoutId;M$y(this,M)}}C(M){this.Z?.zT?.A_(this.Z?.zT?.Zf(),M);this.Z=null}OW({videoId:M,layoutId:W}){M==="nPpU29QrbiU"&&HK(this.iV.get(),"ads_ssmplra_opdcs",`vid.${M};lid.${this.layout.layoutId};smlid.${this.V};slrs.${!!this.Z};slrslid.${this.Z?.zT?.Zf().layoutId}`);this.Z&&(this.Z.zT?.Zf().layoutId===W?za("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:W}):(this.Z.zT?.A_(this.Z.zT?.Zf(),"normal"),M$y(this,W)))}S(){}aV(){}onFullscreenToggled(){}};var Cna=class{constructor(M,W,b,T,q,X,G,V,J,B,D,a,E,n){this.callback=M;this.slot=W;this.layout=b;this.eR=T;this.Yk=q;this.I0=X;this.jX=G;this.HP=V;this.Ce=J;this.PY=B;this.iV=D;this.NK=a;this.VN=E;this.SW=n;this.pG=!0;this.cF=this.Zg=null;this.adCpn=void 0;this.Z=!1;M=this.layout.clientMetadata.fp("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];this.V=new DC(n,M,b.layoutId,()=>this.layout.clientMetadata.fp("metadata_type_video_length_seconds")*1E3)}Qc(){return this.slot}Zf(){return this.layout}MM(M, W){this.layout.clientMetadata.fp("metadata_type_player_bytes_callback_ref").current=this; this.cF=W0l(this.slot,this.layout,this.layout.clientMetadata.fp("metadata_type_player_vars"),M,W,this.layout.clientMetadata.fp("metadata_type_video_length_seconds")*1E3,this.eR.get(),this.jX.get(),()=>{var b={...Fv(this.layout)};var T=this.slot.clientMetadata.fp("metadata_type_fulfilled_layout")||this.slot.fulfilledLayout;const q=T.clientMetadata.fp("metadata_type_sub_layouts")||T.wM;T={...Fv(T),adPlacementConfig:T.clientMetadata.fp("metadata_type_ad_placement_config"),subLayouts:(q||[]).map(Fv)}; return{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",...b,compositeLayout:T,hasSurveyOverlay:Ni(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.fp("metadata_type_survey_overlay")}},this.iV.get()); this.I0.get().addListener(this);M=this.layout.clientMetadata.fp("metadata_type_video_length_seconds");W=this.layout.clientMetadata.fp("metadata_type_active_view_traffic_type");Rv(this.layout.yc)&&zg(this.HP.get(),this.layout.layoutId,{hE:W,vT:M,listener:this});tmg(this.callback,this.slot,this.layout);ZIy(this.callback,this.slot,this.layout)}init(){const M=this.layout.clientMetadata.fp("metadata_type_layout_enter_ms"),W=this.layout.clientMetadata.fp("metadata_type_layout_exit_ms");this.MM(M,W)}release(){this.I0.get().removeListener(this); Rv(this.layout.yc)&&uL(this.HP.get(),this.layout.layoutId);this.PY.get();var M=this.callback,W=this.slot,b=this.layout;for(const T of M.V)T.u$(W,b);xV(this.PY.get())&&(this.FA&&(HK(this.iV.get(),"ads_ccru",`acpn.${pX(this.NK.get(),2)?.clientPlaybackNonce};cr.${this.FA}`),this.VN.get().removeCueRange(this.FA)),this.FA=void 0)}startRendering(){Ni(this.layout.clientMetadata,"metadata_type_survey_overlay")&&HK(this.iV.get(),"ads_ssmlra_srs",`lid.${this.layout.layoutId}`);if(this.Zg)za("Expected the layout not to be entered before start rendering", this.slot,this.layout,{hasSurveyOverlay:Ni(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.fp("metadata_type_survey_overlay")});else{this.Zg={Vf:null,vI:!1};this.Z=!1;FL(this.PY.get())&&(this.adCpn=pX(this.NK.get(),2)?.clientPlaybackNonce);this.PY.get().L.G().experiments.FX("html5_disable_sodar_for_tvhtml5")||TaQ(this.slot,this.layout,this.Ce.get());Rv(this.layout.yc)&&y9t(this.HP.get(),this.layout.layoutId);this.Yk.EB("start");if(bf(this.PY.get())){const M= Ak(this.I0.get()),W=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),b=gt(this.I0.get(),2,!1);qXL(this.Yk,this.Zg.Vf,M,W,b,()=>void aMt(this,"teois"),pX(this.NK.get(),1).FD)}IFq(this.callback,this.slot,this.layout); xV(this.PY.get())&&(this.adCpn||za("Media layout confirmed started, but ad CPN not set."),this.Z_());Ni(this.layout.clientMetadata,"metadata_type_survey_overlay")&&HK(this.iV.get(),"ads_ssmlra_sre",`lid.${this.layout.layoutId}`)}}A_(M,W){if(this.Zg){if(bf(this.PY.get()))if(this.cF===null)za("Unexpected media sub layout exited without a timeline playback ID");else{M=this.layout.clientMetadata.fp("metadata_type_video_length_seconds");const b=sT(this.I0.get(),this.cF);FL(this.PY.get())&&this.adCpn=== void 0&&za("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.fp("metadata_type_content_cpn")});yft(this.Yk,b,this.adCpn);R6(this.Yk,null,this.Zg.Vf,M,b,pX(this.NK.get(),1).FD,T=>void E7J(this,T,"fue"),FL(this.PY.get()),xV(this.PY.get())); oj(this.PY.get())&&this.tv(b,!0)}this.Zg=null;HIL(this.callback,this.slot,this.layout,this.Z&&this.PY.get().L.G().j("dai_layout_log_skip_exit_reason")?"skipped":W)}else za("Expected the layout to be entered before stop rendering",this.slot,this.layout)}onCueRangeEnter(M){if(M!==this.FA)za("Received CueRangeEnter signal for unknown layout.",this.Qc(),this.Zf(),{cueRangeId:M});else if(this.adCpn===void 0&&za("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.fp("metadata_type_content_cpn")}), uw(this.Yk,"impression")&&bf(this.PY.get()))if(this.cF===null)za("Unexpected cue range enter without a timeline playback ID");else{const W=sT(this.I0.get(),this.cF);HK(this.iV.get(),"ads_ccre",`cpn.${this.layout.clientMetadata.fp("metadata_type_content_cpn")};acpn.${pX(this.NK.get(),2)?.clientPlaybackNonce};cr.${M};cts.${W}`);this.VN.get().removeCueRange(this.FA);this.FA=void 0;oj(this.PY.get())&&this.tv(W,!0);this.Yk.EB("complete")}}onCueRangeExit(){}vU(){}tH(){}oZ(M){if(this.Zg){if(uw(this.Yk,"impression")){const W= Ak(this.I0.get()),b=this.layout.clientMetadata.fp("metadata_type_video_length_seconds");rn(this.Yk,W,M,this.Zg.Vf,b,T=>void E7J(this,T,"tpaqe")); oj(this.PY.get())&&this.tv(M)}this.Zg.Vf=M}}tv(M,W=!1){this.Zg&&OR(this.V,M*1E3,W)}aV(M){if(this.Zg){bf(this.PY.get())||this.Zg.vI||(this.Zg.vI=!0,M=new g.yB(M.state,new g.TD));var W=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),b=gt(this.I0.get(),2,!1);fd(this.Yk,this.Zg.Vf,M,W,b,pX(this.NK.get(),1).FD,!bf(this.PY.get()),()=>void aMt(this,"teosc"))}}onFullscreenToggled(M){Xep(this.Yk,M)}gm(){}cO(){}PO(){}lI(M,W){M=this.iV.get(); var b=uw(this.Yk,"impression"),T=uw(this.Yk,"skip");var q=!!this.Yk.B.get("skip")?.length;HK(M,"ads_dsr",`ti.${b};ts.${T};hp.${q};cpn.${this.layout.clientMetadata.fp("metadata_type_content_cpn")};acpn.${pX(this.NK.get(),2)?.clientPlaybackNonce};sl.${W.clientMetadata.fp("metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId}`);uw(this.Yk,"impression")&&this.Yk.EB("skip");W=pX(this.NK.get(),1).FD;this.Z=!0;this.eR.get().L4(W)||(this.Z=!1,za("Unexpected failure to skip a server stitched ad", this.slot,this.layout))}onVolumeChange(){}t5(){}Dg(){}yE(){}Hf(){}A3(){jSy(this.Yk)}Xj(){Gka(this.Yk)}Ua(){V$p(this.Yk)}Oa(){Jel(this.Yk)}a5(){Baa(this.Yk)}bH(){DeS(this.Yk)}lU(){}xX(){}Z_(){this.FA||(this.FA=`${"adcompletioncuerange"}:${this.Zf().layoutId}`,this.VN.get().addCueRange(this.FA,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn),HK(this.iV.get(),"ads_ccr",`acpn.${pX(this.NK.get(),2)?.clientPlaybackNonce};cr.${this.FA}`))}};var kEL=class extends yvL{constructor(M,W,b,T,q,X,G,V,J,B,D,a,E,n){super(M,W,b,T,q,G,V,J,B,a);this.jX=X;this.Ce=D;this.HP=E;this.PY=n;this.cF=this.Zg=null}MM(){this.layout.clientMetadata.fp("metadata_type_player_bytes_callback_ref").current=this;const M=this.layout.clientMetadata.fp("metadata_type_layout_enter_ms"),W=this.layout.clientMetadata.fp("metadata_type_layout_exit_ms");this.cF=W0l(this.slot,this.layout,this.layout.clientMetadata.fp("metadata_type_player_vars"),M,W,this.layout.clientMetadata.fp("metadata_type_video_length_seconds")* 1E3,this.eR.get(),this.jX.get(),()=>({layoutType:"LAYOUT_TYPE_MEDIA",enterMs:M,exitMs:W,adPlacementConfig:this.layout.clientMetadata.fp("metadata_type_ad_placement_config")}),this.iV.get()); const b=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),T=this.layout.clientMetadata.fp("metadata_type_active_view_traffic_type");Rv(this.layout.yc)&&zg(this.HP.get(),this.layout.layoutId,{hE:T,vT:b,listener:this})}Mj(){Rv(this.layout.yc)&&uL(this.HP.get(),this.layout.layoutId)}o6(){if(this.Zg)za("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Zg={Vf:null,vI:!1},TaQ(this.slot,this.layout,this.Ce.get()),this.Yk.EB("start"),bf(this.PY.get())){const M= Ak(this.I0.get()),W=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),b=gt(this.I0.get(),2,!1);qXL(this.Yk,this.Zg.Vf,M,W,b,()=>void n7L(this,"teois"),!1)}}C(){if(this.Zg){if(bf(this.PY.get()))if(this.cF===null)za("Unexpected single media layout exited without a timeline playback ID"); else{const M=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),W=sT(this.I0.get(),this.cF);yft(this.Yk,W);R6(this.Yk,null,this.Zg.Vf,M,W,!1,b=>void yeL(this,b,"fue"))}this.Zg=null}else za("Expected the layout to be entered before stop rendering",this.slot,this.layout)}S(M){if(this.Zg){if(uw(this.Yk,"impression")){const W=Ak(this.I0.get()),b=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"); rn(this.Yk,W,M,this.Zg.Vf,b,T=>void yeL(this,T,"tpaqe"))}this.Zg.Vf=M}}aV(M){if(this.Zg){bf(this.PY.get())||this.Zg.vI||(this.Zg.vI=!0,M=new g.yB(M.state,new g.TD)); var W=this.layout.clientMetadata.fp("metadata_type_video_length_seconds"),b=gt(this.I0.get(),2,!1);fd(this.Yk,this.Zg.Vf,M,W,b,!1,!bf(this.PY.get()),()=>void n7L(this,"teosc"))}}onFullscreenToggled(M){Xep(this.Yk,M)}A3(){jSy(this.Yk)}Xj(){Gka(this.Yk)}Ua(){V$p(this.Yk)}Oa(){Jel(this.Yk)}a5(){Baa(this.Yk)}bH(){DeS(this.Yk)}};var Kup=class{constructor(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C,l,N,R,f,x,A){this.Pr=M;this.P3=W;this.I3=b;this.NK=T;this.eR=q;this.I0=X;this.vx=G;this.iV=V;this.jX=J;this.mQ=B;this.HP=D;this.Ce=a;this.zY=E;this.VN=n;this.Md=C;this.U2=l;this.SW=N;this.rW=R;this.PY=f;this.Z=x;this.context=A}build(M,W,b,T){if(Ni(b.clientMetadata,"metadata_type_dai")){var q=T.clientMetadata.fp("metadata_type_ad_placement_config");Po(T,{Rx:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "), bN:["LAYOUT_TYPE_MEDIA"]})&&q!==void 0?(q=new zD(T.yc,this.iV,q,T.layoutId,null),q=new kEL(M,b,T,this.NK,this.eR,this.jX,this.mQ,this.I0,q,this.iV,this.Ce,this.Z,this.HP,this.PY)):q=null;if(q)return q;a:{var X=T.wM??T.clientMetadata.fp("metadata_type_sub_layouts");const G=T.clientMetadata.fp("metadata_type_ad_placement_config");if(Po(T,{Rx:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],bN:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&X!==void 0&&G!== void 0){q=[];for(const V of X){X=V.clientMetadata.fp("metadata_type_media_sub_layout_index");if(!Po(V,{Rx:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),bN:["LAYOUT_TYPE_MEDIA"]})||X===void 0){M=null;break a}X=new zD(V.yc,this.iV,G,V.layoutId,X);q.push(new Cna(W,b,V,this.eR,X,this.I0,this.jX,this.HP,this.Ce,this.PY,this.iV,this.NK,this.VN,this.SW))}W= new zD(T.yc,this.iV,G,T.layoutId);M=new UKQ(M,b,T,this.NK,this.eR,this.mQ,this.I0,W,this.iV,this.Z,q)}else M=null}if(M)return M}else if(M=wHJ(M,W,b,T,this.Pr,this.P3,this.I3,this.iV,this.HP,this.Ce,this.zY,this.NK,this.I0,this.vx,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,this.eR,this.context))return M;throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"PlayerBytesLayoutRenderingAdapterFactory.");}};var v9=class{constructor(M,W,b,T,q,X,G,V,J,B,D,a,E,n,C,l,N,R){this.Pr=M;this.P3=W;this.I3=b;this.iV=T;this.HP=q;this.Ce=X;this.zY=G;this.NK=V;this.I0=J;this.vx=B;this.VN=D;this.Md=a;this.U2=E;this.SW=n;this.rW=C;this.PY=l;this.eR=N;this.context=R}build(M,W,b,T){if(M=wHJ(M,W,b,T,this.Pr,this.P3,this.I3,this.iV,this.HP,this.Ce,this.zY,this.NK,this.I0,this.vx,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,this.eR,this.context))return M;throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+ "PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");}};var v1L=class extends FI{constructor(M,W,b,T){super("survey-interstitial",M,W,b,T)}};var mKg=class extends B9{constructor(M,W,b,T,q){super(b,M,W,T);this.iV=q;M=W.clientMetadata.fp("metadata_type_ad_placement_config");this.Yk=new zD(W.yc,q,M,W.layoutId)}startRendering(M){const W=Iv(this.Yk),b={adsClientData:this.layout.w9};this.Z.push(new v1L(this.layout.clientMetadata.fp("metadata_type_valid_survey_text_interstitial_renderer"),W,this.Zf().layoutId,b));super.startRendering(M);this.callback.t5(this.slot,M)}kZ(M,W){W!==this.layout.layoutId||M!=="survey-interstitial"&&M!=="button"||((M= this.layout.clientMetadata.fp("metadata_type_player_bytes_layout_controls_callback_ref").current)?M.lI(this.slot,this.layout):za("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}vY(){super.vY()}};var hF=new g.i0(320,63);var Lul=class extends FI{constructor(M,W,b,T){super("invideo-overlay",M,W,b,T);this.interactionLoggingClientData=T}};var liy=class extends B9{constructor(M,W,b,T,q,X,G,V,J,B,D){super(q,M,W,T);this.iV=b;this.A=X;this.I0=G;this.SW=V;this.PY=J;this.C=B;this.S=D;this.Yk=Uep(W,b)}oZ(){}aV(){}onFullscreenToggled(){}gm(M){M&&DY(this.A,this.layout)}cO(){}PO(M){const W=uy(this.layout);if(this.W=AF(M,r9L(this.I0.get())))W.onErrorCommand&&this.SW.get().executeCommand(W.onErrorCommand,this.layout.layoutId),DY(this.A,this.layout)}onVolumeChange(){}nA(){return this.Zf().layoutId}P2(){return this.W}kZ(M){this.S.kZ(M);M==="in_video_overlay_close_button"&& DY(this.A,this.layout)}aD(M){M==="invideo-overlay"&&DY(this.A,this.layout)}Hh(){this.S.Hh()}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M);this.C.v$=this}A_(M,W){super.A_(M,W);nx(this.C,this)}init(){super.init();P4(this.iV.get(),this);this.I0.get().addListener(this);this.Z.push(new Lul(uy(this.layout),Iv(this.Yk),this.layout.layoutId,{adsClientData:this.layout.w9}))}release(){super.release();this.I0.get().removeListener(this);eZ(this.iV.get(),this)}lU(){}xX(){}};var tSP=class extends B9{constructor(M,W,b,T,q,X,G,V,J,B,D,a){super(q,M,W,T);this.iV=b;this.A=X;this.D=G;this.I0=V;this.SW=J;this.PY=B;this.C=D;this.S=a;this.Yk=Uep(W,b)}init(){super.init();P4(this.iV.get(),this);this.I0.get().addListener(this);this.Z.push(new Lul(uy(this.layout),Iv(this.Yk),this.layout.layoutId,{adsClientData:this.layout.w9}))}Hh(){this.S.Hh()}startRendering(M){super.startRendering(M);this.callback.t5(this.slot,M);this.C.v$=this}A_(M,W){super.A_(M,W);nx(this.C,this)}kZ(M){this.S.kZ(M); M==="in_video_overlay_close_button"&&DY(this.A,this.layout)}sf(M){if(M==="invideo-overlay"){M=rTp(this.D,this.layout);for(const W of M)W.stop()}}aD(M){M==="invideo-overlay"&&DY(this.A,this.layout)}Z8(M){if(M==="invideo-overlay"){M=rTp(this.D,this.layout);for(const W of M)W.start()}}oZ(){}aV(){}onFullscreenToggled(){}gm(M){M&&DY(this.A,this.layout)}cO(){}PO(M){const W=uy(this.layout),b=W.contentSupportedRenderer.imageOverlayAdContentRenderer;if(this.W=AF(M,r9L(this.I0.get()),K0G(b.image)))W.onErrorCommand&& this.SW.get().executeCommand(W.onErrorCommand,this.layout.layoutId),DY(this.A,this.layout)}onVolumeChange(){}nA(){return this.Zf().layoutId}P2(){return this.W}release(){super.release();this.I0.get().removeListener(this);eZ(this.iV.get(),this)}lU(){}xX(){}};var mQ=class{constructor(M){this.I0=M;this.Z=!1}kZ(M){M==="ad-info-hover-text-button"&&((this.Z=this.I0.get().hU(1))||this.I0.get().pauseVideo())}Hh(){this.Z||this.I0.get().resumeVideo(1)}};var ZKy=class extends FI{constructor(M,W,b){super("survey",M,{},W,b)}};var IiS=class extends B9{constructor(M,W,b,T,q,X,G){super(b,M,W,T);this.A=q;this.I0=X;this.PY=G}init(){super.init();this.I0.get().addListener(this)}startRendering(M){const W=this.layout.clientMetadata.fp("METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.Z.push(new ZKy(W,this.layout.layoutId,{adsClientData:this.layout.w9}));super.startRendering(M);this.callback.t5(this.slot,M)}t5(){}kZ(M,W){W!==this.layout.layoutId||M!=="ad-info-icon-button"&&M!=="ad-info-dialog-close-button"||((W=this.layout.clientMetadata.fp("metadata_type_player_bytes_layout_controls_callback_ref").current)? M==="ad-info-icon-button"?W.yE(this.slot,this.layout):M==="ad-info-dialog-close-button"&&W.Hf(this.slot,this.layout):za("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:M}))}PO(M){M.width<450&&DY(this.A,this.layout)}onVolumeChange(){}oZ(){}onFullscreenToggled(){}gm(){}cO(){}aV(){}lU(){}xX(){}vY(){super.vY()}release(){super.release();this.I0.get().removeListener(this)}};var NEG=class{constructor(M,W,b,T,q,X,G,V,J,B){this.yN=M;this.I0=W;this.iV=b;this.A=T;this.HP=q;this.V=X;this.B=G;this.SW=V;this.PY=J;this.Z=B}build(M,W,b,T){if(W=g$(M,b,T,this.yN,this.I0,this.iV,this.A,this.Z,this.PY))return W;if(Po(T,kkq()))return new tSP(b,T,this.iV,this.yN,M,this.V,this.B,this.I0,this.SW,this.PY,this.Z,new mQ(this.I0));if(Po(T,Cpg()))return new liy(b,T,this.iV,this.yN,M,this.V,this.I0,this.SW,this.PY,this.Z,new mQ(this.I0));if(Po(T,{Rx:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"], bN:["LAYOUT_TYPE_SURVEY"]}))return new IiS(b,T,M,this.yN,this.V,this.I0,this.PY);if(Po(T,{Rx:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],bN:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new mKg(b,T,M,this.yN,this.iV);if(Po(T,rfQ()))return new hTL(b,T,M,this.yN,this.I0,this.PY);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+ "WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");}};var HKL=class{constructor(M,W,b,T,q,X,G,V,J,B){this.yN=M;this.I0=W;this.iV=b;this.A=T;this.HP=q;this.V=X;this.B=G;this.SW=V;this.PY=J;this.Z=B}build(M,W,b,T){if(W=g$(M,b,T,this.yN,this.I0,this.iV,this.A,this.Z,this.PY))return W;if(Po(T,kkq()))return new tSP(b,T,this.iV,this.yN,M,this.V,this.B,this.I0,this.SW,this.PY,this.Z,new mQ(this.I0));if(Po(T,Cpg()))return new liy(b,T,this.iV,this.yN,M,this.V,this.I0,this.SW,this.PY,this.Z,new mQ(this.I0));throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+ "WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");}};var fiQ=class extends xrt{constructor(M,W,b,T,q,X,G,V,J,B){super(M,W,b,T,q,X,G,J);this.Wc=V;this.NK=B}startRendering(M){super.startRendering(M);if(M.renderingContent?HYQ(M,pX(this.NK.get(),2)||void 0):this.layout.clientMetadata.fp("metadata_ad_video_is_listed")){const W=M.renderingContent?N9J(M,pX(this.NK.get(),2)||void 0):this.layout.clientMetadata.fp("metadata_type_ad_info_ad_metadata");M=this.Wc.get();g.q8(M.L,"onAdMetadataAvailable",W)}}};var RIg=class{constructor(M,W,b,T,q,X,G){this.yN=M;this.I0=W;this.iV=b;this.V=T;this.Wc=q;this.Z=X;this.NK=G}build(M,W,b,T){if(Po(T,v7t())||T.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.z(T.renderingContent,d$)!==void 0)return new fiQ(M,b,T,this.yN,this.I0,this.iV,this.V,this.Wc,this.Z,this.NK);throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"WebRemixInPlayerLayoutRenderingAdapterFactory.");}};var rvs=class{constructor(M,W,b,T,q,X,G,V){this.yN=M;this.I0=W;this.iV=b;this.V=T;this.Wc=q;this.Z=X;this.PY=G;this.NK=V}build(M,W,b,T){if(Po(T,v7t()))return new fiQ(M,b,T,this.yN,this.I0,this.iV,this.V,this.Wc,this.Z,this.NK);if(M=g$(M,b,T,this.yN,this.I0,this.iV,this.V,this.Z,this.PY))return M;throw new Mg(`Unsupported layout with type: ${T.layoutType} and client metadata: ${fm(T.clientMetadata)} in `+"WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");}};var bP=class{constructor(M,W){this.adPodIndex=M;this.Z=W.length;this.adBreakLengthSeconds=W.reduce((T,q)=>T+q,0); let b=0;for(M+=1;Mthis.triggerId,M)}};var Lz=class{constructor(M,W,b){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=b||M(this.triggerType)}clone(M){return new Lz(()=>this.triggerId,M)}};var LQ=class{constructor(M,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=M(this.triggerType)}clone(M){return new LQ(()=>this.triggerId,M)}};var mF=class{constructor(M,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=M(this.triggerType)}clone(M){return new mF(()=>this.triggerId,M)}};var vd=class{constructor(M,W,b){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=b||M(this.triggerType)}clone(M){return new vd(()=>this.triggerId,M)}};var KQ=class{constructor(M,W){this.triggeringSlotId=W;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=M(this.triggerType)}clone(M){return new KQ(()=>this.triggerId,M)}};var RW=class{constructor(M,W,b){this.triggeringLayoutId=W;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=b||M(this.triggerType)}};var hr=class{constructor(M,W,b,T){this.durationMs=W;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=T||M(this.triggerType)}};var ao=class{constructor(M,W,b,T){this.category=M;this.trigger=W;this.slot=b;this.layout=T}};var Lq=class extends g.gz{constructor(M,W,b,T,q,X,G){super();this.PY=M;this.Z=W;this.V=b;this.NK=T;this.A=q;this.B=X;this.zY=G}};var f2={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};var lh={jD:1,Wu:2,zD:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var t8=class{constructor(M,W,b,T,q,X,G,V,J,B=1){this.A=M;this.V=W;this.Z=b;this.PY=T;this.Oj=q;this.B=X;this.I0=G;this.pK=V;this.H3=J;this.loadPolicy=B}};var ZC=class extends g.gz{constructor(M,W,b,T,q,X,G,V){super();this.V=M;this.B=W;this.mQ=T;this.I0=q;this.PY=X;this.iV=G;this.eR=V;this.Z=null;b.get().addListener(this);this.addOnDisposeCallback(()=>{b.ST()||b.get().removeListener(this)}); T.get().addListener(this);this.addOnDisposeCallback(()=>{T.ST()||T.get().removeListener(this)})}Ws(M){if(this.Z)za("Unexpected multiple fetch instructions for the current content"); else{this.Z=M;for(const W of this.mQ.get().qt)Xg(this,this.Z,W)}}UW(M){if(!this.Z)return this.PY.get().L.G().j("high_ccv_client_side_caching_h5")||this.eR?.get().i7(M.identifier),HK(this.iV.get(),"ads_nfi",`a.cpoa;cid.${M.identifier}`),!1;Xg(this,this.Z,M);return!0}j0(){}m2(M){this.Z&&this.Z.contentCpn!==M&&(za("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:M,fetchInstructionsCpn:this.Z.contentCpn}),this.Z=null)}rT(M){this.Z&&this.Z.contentCpn!==M&&za("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:M,fetchInstructionsCpn:this.Z.contentCpn},!0);this.Z=null}vY(){super.vY();this.Z=null}};var xKl=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Fug=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];var Iy=class extends g.gz{constructor(M,W,b,T,q,X,G,V){super();this.A=M;this.C=xKl;this.S=W;this.B=b;this.Z=T;this.V=q;this.Oj=X;this.PY=G;this.NK=V;this.ZU=!0}t5(M,W){if(W.layoutType==="LAYOUT_TYPE_MEDIA"&&(Hr(W,this.C)||Hr(W,Fug))){var b=pX(this.NK.get(),2),T=this.A(W,b||void 0);T?LX(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",()=>{const q=[dGt(this.Z.get(),T.contentCpn,T.Ra,X=>this.S(X.slotId,"core",T,iB(this.Oj.get(),X)),T.inPlayerSlotId)]; T.instreamAdPlayerUnderlayRenderer&&mp(this.PY.get())&&q.push(vwg(this,T,T.instreamAdPlayerUnderlayRenderer));return q}):za("Expected MediaLayout to carry valid opportunity on entered",M,W)}}Da(){}j6(){}il(){}mR(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}Dg(){}};var Nd=class extends g.gz{constructor(M,W,b,T,q,X,G){super();this.V=M;this.Z=W;this.B=b;this.A=T;this.NK=q;this.I0=X;this.Md=G}m2(M,W,b,T,q,X,G){const V=pX(this.NK.get(),1);V.jm?this.I0.get().c8():(bMG(this.Md.get(),T),LX(this.V.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>kC(this.Z.get(),T,q,X,M,W,G,V,"")),e0J(this.B))}rT(){}};var H9=class extends g.gz{constructor(M){super();this.Z=M}};var fq=class extends g.gz{constructor(M,W,b,T,q){super();this.V=M;this.B=W;this.VN=b;this.context=q;this.Z=new Map;T.get().addListener(this);this.addOnDisposeCallback(()=>{T.ST()||T.get().removeListener(this)})}onCueRangeEnter(){}onCueRangeExit(M){const W=this.Z.get(M); W&&(this.Z.delete(M),this.VN.get().removeCueRange(M),LX(this.V.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",()=>{var b=this.B.get();b=lw(b.V.get(),"SLOT_TYPE_AD_BREAK_REQUEST");if(W.slotEntryTrigger){var T=W.slotId;var q=W.slotEntryTrigger;T=q.triggeringSlotId!=null&&q.triggeringSlotId===T?q.clone(b):q}else T=void 0;return[{...W,slotId:b,slotEntryTrigger:T,slotFulfillmentTriggers:MyQ(W.slotId,b,W.slotFulfillmentTriggers),slotExpirationTriggers:MyQ(W.slotId,b,W.slotExpirationTriggers)}]}, W.slotId))}m2(){for(const M of this.Z.keys())this.VN.get().removeCueRange(M); this.Z.clear()}rT(){}};var Ry=class extends g.gz{constructor(){super(...arguments);this.ZU=!0;this.gS=new Map;this.Z=new Map}Da(){}j6(M){g.yn(g.Cv(),()=>{const W=this.Z.get(M);W&&za("Expected layouts to be properly unscheduled",M,void 0,{slotType:M.slotType,layoutTypes:[...W].map(b=>b.layoutType)})},0)}il(){}mR(){}Ke(){}w0(){}CK(){}yB(M,W){this.Z.has(M)||this.Z.set(M,new Set); this.Z.get(M).add(W)}u$(M,W){this.gS.has(M)&&this.gS.get(M)===W&&za("Unscheduled a Layout that is currently entered.",M,W);if(this.Z.has(M)){var b=this.Z.get(M);b.has(W)?(b.delete(W),b.size===0&&this.Z.delete(M)):za("Trying to unscheduled a Layout that was not scheduled.",M,W)}else za("Trying to unscheduled a Layout that was not scheduled.",M,W)}t5(M,W){this.gS.set(M,W)}Dg(M){this.gS.delete(M)}NL(){}};var iKt=class{constructor(M,W){this.callback=M;this.slot=W}init(){}Qc(){return this.slot}RD(){this.callback.il(this.slot)}To(){this.callback.Ke(this.slot)}release(){}};var rZ=class{build(M,W){return new iKt(M,W)}};var hIQ=class{constructor(M,W,b){this.callback=M;this.slot=W;this.I0=b}init(){}Qc(){return this.slot}RD(){oG(this.I0.get(),"ad-showing");this.callback.il(this.slot)}To(){this.callback.Ke(this.slot);c4(this.I0.get(),"ad-showing")}release(){}};var Avp=class{constructor(M,W,b){this.callback=M;this.slot=W;this.I0=b;this.V=!1;this.Z=0}init(){}Qc(){return this.slot}RD(){oG(this.I0.get(),"ad-showing");oG(this.I0.get(),"ad-interrupting");this.V=this.I0.get().isAtLiveHead();this.Z=Math.ceil(Date.now()/1E3);this.callback.il(this.slot)}To(){c4(this.I0.get(),"ad-showing");c4(this.I0.get(),"ad-interrupting");const M=this.V?Infinity:gt(this.I0.get(),1,!0)+Math.floor(Date.now()/1E3)-this.Z;this.I0.get().L.seekTo(M,void 0,void 0,1);this.callback.Ke(this.slot)}release(){}};var zIa=class{constructor(M,W,b){this.callback=M;this.slot=W;this.I0=b}init(){}Qc(){return this.slot}RD(){oG(this.I0.get(),"ad-showing");oG(this.I0.get(),"ad-interrupting");this.callback.il(this.slot)}To(){this.I0.get().c8();c4(this.I0.get(),"ad-showing");c4(this.I0.get(),"ad-interrupting");this.callback.Ke(this.slot)}release(){this.I0.get().c8()}};var xk=class{constructor(M){this.I0=M}build(M,W){if(RN(W,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new hIQ(M,W,this.I0);if(W.slotEntryTrigger instanceof xC&&RN(W,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new Avp(M,W,this.I0);if(RN(W,[],"SLOT_TYPE_PLAYER_BYTES"))return new zIa(M,W,this.I0);throw new P(`Unsupported slot with type ${W.slotType} and client metadata: ${fm(W.clientMetadata)} in ${"PlayerBytesSlotAdapterFactory"}.`);}};var u0t=class extends g.gz{constructor(M){super();this.Fg=M;this.Kv=new Map}};var ih=class extends u0t{constructor(M,W,b){super(M);this.PY=b;W.get().addListener(this);this.addOnDisposeCallback(()=>{W.ST()||W.get().removeListener(this)})}kZ(M,W){if(W)if(M==="skip-button"){M=[]; for(const b of this.Kv.values()){const T=b.trigger;T instanceof Hd&&b.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&T.triggeringLayoutId===W&&M.push(b)}M.length&&Qq(this.Fg(),M)}else Bo(this.PY.get(),"supports_multi_step_on_desktop")?M==="ad-action-submit-survey"&&BB(this,W):M==="survey-submit"?BB(this,W):M==="survey-single-select-answer-button"&&BB(this,W)}RL(M){const W=[];for(const b of this.Kv.values()){const T=b.trigger;T instanceof Hd&&b.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&& T.triggeringLayoutId===M&&W.push(b)}W.length?Qq(this.Fg(),W):za("Mute requested but no registered triggers can be activated.")}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(W instanceof RW||W instanceof Hd))throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in AdUxUpdateTriggerAdapter.");this.Kv.set(W.triggerId,new ao(M,W,b,T))}z4(M){this.Kv.delete(M.triggerId)}sf(){}Z8(){}aD(){}};var h8=class extends g.gz{constructor(M){super();this.Z=M;this.ZU=!0;this.Kv=new Map;this.S=new Set;this.B=new Set;this.A=new Set;this.C=new Set;this.V=new Set}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(W instanceof fz||W instanceof Lz||W instanceof LQ||W instanceof mF||W instanceof vd||W instanceof KQ||W instanceof UE||W instanceof i4||W instanceof Zs||W instanceof IW||W instanceof Ar||W instanceof k$))throw new P("Incorrect TriggerType: Tried to register trigger of type "+ W.triggerType+" in AdsControlFlowEventTriggerAdapter");M=new ao(M,W,b,T);this.Kv.set(W.triggerId,M);W instanceof vd&&this.S.has(W.triggeringSlotId)&&Qq(this.Z(),[M]);W instanceof fz&&this.B.has(W.triggeringSlotId)&&Qq(this.Z(),[M]);W instanceof i4&&this.V.has(W.triggeringLayoutId)&&Qq(this.Z(),[M])}z4(M){this.Kv.delete(M.triggerId)}Da(M){this.S.add(M.slotId);const W=[];for(const b of this.Kv.values())b.trigger instanceof vd&&M.slotId===b.trigger.triggeringSlotId&&W.push(b);W.length>0&&Qq(this.Z(), W)}j6(M){this.S.delete(M.slotId);const W=[];for(const b of this.Kv.values()){const T=b.trigger;T instanceof KQ&&T.triggeringSlotId===M.slotId&&W.push(b)}W.length>0&&Qq(this.Z(),W)}mR(M){const W=[];for(const b of this.Kv.values()){const T=b.trigger;T instanceof UE&&T.slotType===M.slotType&&T.Z!==M.slotId&&W.push(b)}W.length>0&&Qq(this.Z(),W)}il(M){this.B.add(M.slotId);const W=[];for(const b of this.Kv.values())b.trigger instanceof fz&&M.slotId===b.trigger.triggeringSlotId&&W.push(b);W.length>0&&Qq(this.Z(), W)}Ke(M){this.B.delete(M.slotId);this.A.add(M.slotId);const W=[];for(const b of this.Kv.values())if(b.trigger instanceof Lz)M.slotId===b.trigger.triggeringSlotId&&W.push(b);else if(b.trigger instanceof k$){const T=b.trigger;M.slotId===T.slotId&&this.V.has(T.triggeringLayoutId)&&W.push(b)}W.length>0&&Qq(this.Z(),W)}w0(M){const W=[];for(const b of this.Kv.values())b.trigger instanceof LQ&&M.slotId===b.trigger.triggeringSlotId&&W.push(b);W.length>0&&Qq(this.Z(),W)}CK(M){const W=[];for(const b of this.Kv.values())b.trigger instanceof mF&&M.slotId===b.trigger.triggeringSlotId&&W.push(b);W.length>0&&Qq(this.Z(),W)}yB(M,W){this.C.add(W.layoutId)}u$(M,W){this.C.delete(W.layoutId)}t5(M,W){this.V.add(W.layoutId);const b=[];for(const q of this.Kv.values())if(q.trigger instanceof i4)W.layoutId===q.trigger.triggeringLayoutId&&b.push(q);else if(q.trigger instanceof Ar){var T=q.trigger;M.slotType===T.slotType&&W.layoutType===T.layoutType&&W.layoutId!==T.Z&&b.push(q)}else q.trigger instanceof k$&&(T=q.trigger,W.layoutId===T.triggeringLayoutId&& this.A.has(T.slotId)&&b.push(q));b.length>0&&Qq(this.Z(),b)}Dg(M,W,b){this.V.delete(W.layoutId);M=[];for(const T of this.Kv.values())if(T.trigger instanceof Zs&&W.layoutId===T.trigger.triggeringLayoutId&&M.push(T),T.trigger instanceof IW){const q=T.trigger;W.layoutId===q.triggeringLayoutId&&q.Z.includes(b)&&M.push(T)}M.length>0&&Qq(this.Z(),M)}NL(){}m2(){this.A.clear()}rT(){}};var Szg=class extends g.gz{constructor(M){super();this.Z=M;this.Kv=new Map}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(W instanceof rd))throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CloseRequestedTriggerAdapter");this.Kv.set(W.triggerId,new ao(M,W,b,T))}z4(M){this.Kv.delete(M.triggerId)}};var A8=class extends g.gz{constructor(M,W,b){super();this.Z=M;this.context=b;this.Kv=new Map;W.get().addListener(this);this.addOnDisposeCallback(()=>{W.ST()||W.get().removeListener(this)})}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot."); if(!(W instanceof l4||W instanceof mw))throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Kv.set(W.triggerId,new ao(M,W,b,T))}z4(M){this.Kv.delete(M.triggerId)}m2(M){const W=[];var b=W.push,T=this.Kv,q=[];for(const X of T.values())X.trigger instanceof l4&&X.trigger.sC===M&&q.push(X);b.call(W,...q);b=W.push;T=this.Kv;q=[];for(const X of T.values())X.trigger instanceof mw&&X.trigger.Z!==M&&q.push(X);b.call(W,...q); W.length&&Qq(this.Z(),W)}rT(M){const W=[];var b=W.push,T=this.Kv;const q=[];for(const X of T.values())T=X.trigger,T instanceof mw&&T.Z===M&&q.push(X);b.call(W,...q);W.length&&Qq(this.Z(),W)}};var zQ=class extends g.gz{constructor(M,W,b,T){super();this.V=M;this.VN=W;this.I0=b;this.NK=T;this.ZU=!0;this.Kv=new Map;this.Z=new Set;b.get().addListener(this);this.addOnDisposeCallback(()=>{b.ST()||b.get().removeListener(this)})}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot."); const q=`${"adtriggercuerange"}:${W.triggerId}`;if(W instanceof xC)L7L(this,M,W,b,T,q,W.Z.start,W.Z.end,W.sC,W.visible);else if(W instanceof FP)L7L(this,M,W,b,T,q,0x7ffffffffffff,0x8000000000000,W.sC,W.visible);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CueRangeTriggerAdapter");}z4(M){const W=this.Kv.get(M.triggerId);W&&this.VN.get().removeCueRange(W.cueRangeId);this.Kv.delete(M.triggerId)}onCueRangeEnter(M){if(M=l0s(this,M))if(M=this.Kv.get(M))if(Ak(this.I0.get()).Z(32))this.Z.add(M.cueRangeId); else{var W=M?.Kt.trigger;(W instanceof xC||W instanceof FP)&&Qq(this.V(),[M.Kt])}}onCueRangeExit(M){(M=l0s(this,M))&&(M=this.Kv.get(M))&&this.Z.delete(M.cueRangeId)}aV(M){if(u9(M,16)<0){for(const W of this.Z)this.onCueRangeEnter(W,!0);this.Z.clear()}}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}t5(){}Dg(){}NL(){}oZ(){}onFullscreenToggled(){}gm(){}cO(){}PO(){}onVolumeChange(){}lU(){}xX(){}};var OKt=class extends g.gz{constructor(M,W){super();this.A=M;this.V=new Map;this.B=new Map;this.Z=null;W.get().addListener(this);this.addOnDisposeCallback(()=>{W.ST()||W.get().removeListener(this)}); this.Z=W.get().aG?.slotId||null}HO(M,W,b,T){if(this.V.has(W.triggerId)||this.B.has(W.triggerId))throw new P("Tried to re-register the trigger.");M=new ao(M,W,b,T);if(M.trigger instanceof z3)this.V.set(M.trigger.triggerId,M);else if(M.trigger instanceof u4)this.B.set(M.trigger.triggerId,M);else throw new P("Incorrect TriggerType: Tried to register trigger of type "+M.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.V.has(M.trigger.triggerId)&&M.slot.slotId===this.Z&&Qq(this.A(), [M])}z4(M){this.V.delete(M.triggerId);this.B.delete(M.triggerId)}OW({slotId:M}){if(this.Z!==M){var W=[];this.Z!=null&&W.push(...tCs(this.B,this.Z));M!=null&&W.push(...tCs(this.V,M));this.Z=M;W.length&&Qq(this.A(),W)}}};var uh=class extends g.gz{constructor(M){super();this.Z=M;this.ZU=!0;this.Kv=new Map}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(W instanceof Nc))throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Kv.set(W.triggerId,new ao(M,W,b,T))}z4(M){this.Kv.delete(M.triggerId)}t5(){}Dg(){}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}};var SW=class extends g.gz{constructor(M){super();this.Z=M;this.ZU=!0;this.Kv=new Map}NL(M,W){const b=[];for(const T of this.Kv.values()){const q=T.trigger;q.opportunityType===M&&(q.associatedSlotId&&q.associatedSlotId!==W||b.push(T))}b.length&&Qq(this.Z(),b)}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(W instanceof ody))throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OpportunityEventTriggerAdapter"); this.Kv.set(W.triggerId,new ao(M,W,b,T))}z4(M){this.Kv.delete(M.triggerId)}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}t5(){}Dg(){}};var On=class extends g.gz{constructor(M,W,b,T,q,X){super();this.C=M;this.mQ=W;this.I0=b;this.iV=T;this.pK=X;this.Z=null;this.A=!1;this.ZU=!0;this.Kv=new Map;W.get().addListener(this);this.addOnDisposeCallback(()=>{W.ST()||W.get().removeListener(this)}); q.get().addListener(this);this.addOnDisposeCallback(()=>{q.ST()||q.get().removeListener(this)})}HO(M,W,b,T){M=new ao(M,W,b,T); if(W instanceof Sf||W instanceof Pd||W instanceof Od||W instanceof ef||W instanceof $9p){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");this.Kv.set(W.triggerId,M)}else throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in PrefetchTriggerAdapter");}z4(M){this.Kv.delete(M.triggerId)}Da(M){const W=M.slotFulfillmentTriggers.find(b=>b instanceof Sf); W&&(EE(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",W.breakDurationMs,new Set([M.slotId]),!0),HK(this.iV.get(),"ads_css",`sid.${M.slotId};bd.${W.breakDurationMs}`))}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}t5(){}Dg(){}NL(){}UW(M){if(!this.Z)return HK(this.iV.get(),"ads_nfi",`a.pta;cid.${M.identifier}`),!1;this.V&&this.V.stop();this.S&&this.S.Wr();const W=ZiQ(this,M);if(!W){var b=I0t(this);const T=this.W!==void 0&&Date.now()<=this.W+1E4;HK(this.iV.get(),"ads_ncfs",`cid.${M.identifier};cd.${M.C7.toFixed(3)};ccs.${T};cfa.${this.A};bdc.${b.length};${b.slice(0, 6).map(q=>`;bd.${q}`).join("")}`); return T?(Xg(this.pK,this.Z,M),!0):!1}(b=W.slot.clientMetadata.fp("metadata_type_triggering_cue_point"))?b.current=M:za("Expected triggering cue point ref to be available",W.slot);(new g.d9(()=>{const T=W.trigger,q=W.slot;EE(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",T.breakDurationMs,new Set,!0);EE(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",T.breakDurationMs,new Set,!1);let X=0;for(const G of this.Kv.values()){const V=G.trigger;G.slot.slotId===q.slotId&& (this.Kv.delete(V.triggerId),X++)}HK(this.iV.get(),"ads_csf",`sid.${q.slotId};bd.${T.breakDurationMs};dt.${X}`)},10)).start(); return!0}j0(){}m2(M){this.A=!1;this.W=Date.now();this.Z&&this.Z.contentCpn!==M?(za("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:M,fetchInstructionsCpn:this.Z.contentCpn}),nQ(this)):(this.B=new g.d9(()=>{if(this.A)delete this.B;else{var W=this.I0.get().getGetAdBreakContext();Number(W?.livePlaybackPosition?.utcTimeMillis)>0?(delete this.B,Hiq(this)):this.B?.start()}},200),this.B?.start())}rT(M){this.Z&&this.Z.contentCpn!==M&&za("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:M, fetchInstructionsCpn:this.Z.contentCpn},!0);nQ(this)}Ws(M){if(this.Z)za("Unexpected multiple fetch instructions for the current content");else{this.Z=M;M=f0g(M);this.V=new g.d9(()=>{Hiq(this)},M?M:6E5); this.V.start();this.S=new g.d9(()=>{this.Z&&(this.V&&(this.V.stop(),this.V.start()),N0L(this,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},R2q(this.Z)); M=this.I0.get().getCurrentTimeSec(1,!1);for(const W of this.mQ.get().qt)HK(this.iV.get(),"nocache",`ct.${Date.now()};cmt.${M};d.${W.C7.toFixed(3)};tw.${W.startSecs-M};cid.${W.identifier};`)}}vY(){super.vY();nQ(this)}};var Pnl=class extends g.gz{constructor(M){super();this.B=M;this.ZU=!0;this.Kv=new Map;this.Z=new Map;this.V=new Map}HO(M,W,b,T){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");if(!(W instanceof hr))throw new P("Incorrect TriggerType: Tried to register trigger "+`of type ${W.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Kv.set(W.triggerId,new ao(M,W,b,T));M=this.Z.has(W.triggeringLayoutId)?this.Z.get(W.triggeringLayoutId):new Set;M.add(W); this.Z.set(W.triggeringLayoutId,M)}z4(M){this.Kv.delete(M.triggerId);if(!(M instanceof hr))throw new P("Incorrect TriggerType: Tried to unregister trigger "+`of type ${M.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");var W=this.V.get(M.triggerId);W&&(W.dispose(),this.V.delete(M.triggerId));if(W=this.Z.get(M.triggeringLayoutId))W.delete(M),W.size===0&&this.Z.delete(M.triggeringLayoutId)}Da(){}j6(){}mR(){}il(){}Ke(){}w0(){}CK(){}yB(){}u$(){}NL(){}t5(M,W){if(this.Z.has(W.layoutId)){M=this.Z.get(W.layoutId); for(const b of M)M=new g.d9(()=>{const T=this.Kv.get(b.triggerId);Qq(this.B(),[T])},b.durationMs),M.start(),this.V.set(b.triggerId,M)}}Dg(){}};var P9=class extends g.gz{constructor(){super();this.Kv=new Map}HO(M,W){if(this.Kv.has(W.triggerId))throw new P("Tried to register duplicate trigger for slot.");throw new P("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in VideoTransitionTriggerAdapter.");}z4(M){this.Kv.delete(M.triggerId)}};var eW=class{constructor(M){this.PY=M;this.V=new Map;this.Z=new Map;this.B=new Map}};var dZ=class{constructor(M){this.V=M;this.Z=W=>e4(this.V.get(),W)}};var oy=class{constructor(M,W,b){this.V=M;this.B=W;this.PY=b;this.Z=T=>e4(this.V.get(),T)}dD(M){return M.kind==="AD_PLACEMENT_KIND_START"}};var ujQ=class{Z(M){M&&g.V9("adsSeenClientLogging",{serializedAdServingDataEntry:M.serializedAdServingDataEntry})}};var eIt=class extends g.gz{constructor(M,W){super();this.PY=M;this.V=W;this.eventCount=0;this.B=SOP()()}logEvent(M){this.Z(M)}Z(M,W,b,T,q,X,G,V,J,B,D,a=0){Bo(this.PY.get(),"h5_enable_pacf_debug_logs")&&console.log(`[PACF]: ${M}`,"slot:",q,"layout:",X,"ping:",G,"Opportunity:",{opportunityType:W,associatedSlotId:b,cjV:T,iKT:V,adSlotLoggingData:J,adLayoutLoggingData:B});try{const E=()=>{if(!this.PY.get().L.G().j("html5_disable_client_tmp_logs")&&M!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){M||za("Empty PACF event type", q,X);var n=FR(this.V.get());const C={eventType:M,eventOrder:++this.eventCount},l={};q&&(l.slotData=xr(n,q));X&&(l.layoutData=kRL(n,X));G&&(l.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:G.Z.serializedAdPingMetadata,pingIndex:G.index});V&&(l.triggerData=rl(V.trigger,V.category));W&&(l.opportunityData=KzJ(n,W,b,T));n={organicPlaybackContext:{contentCpn:pX(this.NK.get(),1).clientPlaybackNonce}};n.organicPlaybackContext.isLivePlayback=pX(this.NK.get(), 1).Me;n.organicPlaybackContext.isMdxPlayback=pX(this.NK.get(),1)?.isMdxPlayback;pX(this.NK.get(),1)?.daiEnabled&&(n.organicPlaybackContext.isDaiContent=!0);const N=pX(this.NK.get(),2)?.clientPlaybackNonce;N&&(n.adVideoPlaybackContext={adVideoCpn:N});n&&(l.externalContext=n);C.adClientData=l;J&&(C.serializedSlotAdServingData=J.serializedSlotAdServingDataEntry);B&&(C.serializedAdServingData=B.serializedAdServingDataEntry);D&&(C.errorInfo=D);g.V9("adsClientStateChange",{adsClientEvent:C})}}; a&&a>0?g.yn(g.Cv(),()=>E(),a):E()}catch(E){Bo(this.PY.get(),"html5_log_pacf_logging_errors")&&g.yn(g.Cv(),()=>{za(E instanceof Error?E:String(E),q,X,{pacf_message:"exception during pacf logging"})})}}};var $by=class extends eIt{constructor(M,W,b){super(M,W);this.PY=M;this.NK=b}Z(M,W,b,T,q,X,G,V,J,B,D){var a=this.PY.get();g.XD(a.L.G())?(a=this.PY.get(),a=g.TO(a.L.G().experiments,"H5_async_logging_delay_ms")):a=void 0;super.Z(M,W,b,T,q,X,G,V,J,B,D,a)}};var c9=class{constructor(){this.Z=new Map}clear(){this.Z.clear()}};var ZY=class{constructor(M){this.Z="pending";this.V=[];this.B=[];try{M(this.A.bind(this),this.reject.bind(this))}catch(W){this.reject(W)}}state(){return this.Z==="fulfilled"?{state:"fulfilled",value:this.result}:this.Z==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}A(M){IH(M)||Io(M)?Ro(NW(M),this.A.bind(this),this.reject.bind(this)):(this.Z="fulfilled",this.result=M,r6(this))}reject(M){this.Z="rejected";this.error=M;r6(this)}},Io=Ey(M=>y2S(M)?M instanceof ZY:!1);var zO=window.mdY||"es";var PB=class{constructor(){this.A=new Set;this.V=new Set;this.S=new Map;this.client=void 0;this.csn=null}B(M){this.client=M}Z(){this.clear();this.csn=g.nT()}clear(){this.A.clear();this.V.clear();this.S.clear();this.csn=null}};var sE=class{B(M){g.Je(el().B).bind(el())(M)}clear(){g.Je(el().clear).bind(el())()}};var d6=class{constructor(){this.D=[];this.X=[];this.Z=[];this.C=[];this.gK=[];this.A=new Map;this.W=new Map;this.V=new Set;this.sY=new Map}B(M){this.client=M}Zs(M,W={}){g.Je(()=>{const b=g.z(M?.commandMetadata,g.vL)?.rootVe||g.z(M?.commandMetadata,pUp)?.screenVisualElement?.uiType;if(b){var T=g.z(M?.commandMetadata,NIp);if(T?.parentTrackingParams){var q=g.BW(T.parentTrackingParams);if(T.parentCsn)var X=T.parentCsn}else W.clickedVisualElement?q=W.clickedVisualElement:M.clickTrackingParams&&(q=g.BW(M.clickTrackingParams)); a:{T=g.z(M,g.Jj);var G=g.z(M,a1t);if(T){if(G=yap(T,"VIDEO")){T={token:G,videoId:T.videoId};break a}}else if(G&&(T=yap(G,"PLAYLIST"))){T={token:T,playlistId:G.playlistId};break a}T=void 0}W={cttAuthInfo:T,parentCsn:X,...W};g.he("expectation_logging")&&(W.loggingExpectations=g.z(M?.commandMetadata,pUp)?.loggingExpectations||void 0);cB(this,b,q,W)}else g.lR(new g.EF("Error: Trying to create a new screen without a rootVeType",M))})()}clickCommand(M,W,b=0){return tyP(this,M.clickTrackingParams,W,b)}stateChanged(M, W,b=0){this.visualElementStateChanged(g.BW(M),W,b)}visualElementStateChanged(M,W,b=0){b===0&&this.V.has(b)?this.X.push([M, W]):KrS(this,M,W,b)}yr(M){const W=M.cpn;if(this.Z.length&&this.Z[this.Z.length-2]?.cpn!==W){var b=g.nT();if(W&&b&&b!=="UNDEFINED_CSN"){let T;M.itct&&(T=g.BW(M.itct||""));const q={};g.he("web_playback_associated_log_ctt")&&M.ll&&(q.cttAuthInfo={token:M.ll,videoId:M.videoId});M={cpn:W,csn:b};g.he("web_playback_associated_ve")&&T&&(g.w4(b,T),M.playbackVe=T.getAsJson());g.V9("playbackAssociated",M,q);this.Z[this.Z.length-1].cpn=W}}}};var pQ=class{fetch(M,W,b){const T=IJt(M,W,b);return new Promise((q,X)=>{const G=()=>{if(b?.WH)try{const V=this.handleResponse(M,T.status,T.response,b);q(V)}catch(V){X(V)}else q(this.handleResponse(M,T.status,T.response,b))}; T.onerror=G;T.onload=G;T.send(W.body??null)})}handleResponse(M,W,b,T){b=b.replace(")]}'",""); let q;try{q=JSON.parse(b)}catch(X){g.lR(new g.EF("JSON parsing failed after XHR fetch",M,W,b));if(T?.WH&&b)throw new g.bh("JSON parsing failed after XHR fetch");q={}}W!==200&&(g.lR(new g.EF("XHR API fetch failed",M,W,b)),q={...q,errorMetadata:{status:W}});return q}};var Y$=class{static getInstance(){let M=g.Ct("ytglobal.storage_");M||(M=new Y$,g.Uq("ytglobal.storage_",M));return M}async estimate(){const M=navigator;if(M.storage?.estimate)return M.storage.estimate();if(M.webkitTemporaryStorage?.queryUsageAndQuota)return NRl()}};g.Uq("ytglobal.storageClass_",Y$);var dKS=class{constructor(M,W){this.handleError=M;this.Z=W;this.V=!1;self.document===void 0||self.addEventListener("beforeunload",()=>{this.V=!0}); this.B=Math.random()<=.2}LT(M){this.handleError(M)}logEvent(M,W){switch(M){case "IDB_DATA_CORRUPTED":g.he("idb_data_corrupted_killswitch")||this.Z("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Z("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":g.he("idb_is_supported_completed_killswitch")||this.Z("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":fJt(this,W);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=.1&&this.Z("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":this.Z("idbTransactionAborted", {...W,hasWindowUnloaded:this.V})}}};var orG=X5("yt-player-local-media",{AC:{index:{Nw:2},media:{Nw:2},captions:{Nw:5}},shared:!1,upgrade(M,W){W(2)&&(P8(M,"index"),P8(M,"media"));W(5)&&P8(M,"captions");W(6)&&(eQ(M,"metadata"),eQ(M,"playerdata"))},version:5});var o1p={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},Qw;a:{var gZ=g.Vd();gZ=gZ.toLowerCase();if(g.qR(gZ,"android")){var cvs=gZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(cvs){const M=parseFloat(cvs[1]);if(M<100){Qw=M;break a}}var Q4G=gZ.match("("+Object.keys(o1p).join("|")+")");Qw=Q4G?o1p[Q4G[0]]:0}else Qw=void 0}var sn=Qw,mj=sn>=0;var RYq=tW(()=>window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);var MY;g.$b=new Bst;MY=0;g.g1l=class{constructor(M){this.videoData=M;this.Z={c1a:()=>{const W=[];if(g.$b.isInitialized()){var b="";this.videoData&&this.videoData.im&&(b=this.videoData.im+`&${"r1b"}=${this.videoData.clientPlaybackNonce}`);b={atr_challenge:b};As("bg_v",void 0,"player_att");(b=iog(b))?(As("bg_s",void 0,"player_att"),W.push(`${"r1a"}=${b}`)):(As("bg_e",void 0,"player_att"),W.push("r1c=2"))}else As("bg_e",void 0,"player_att"),window.trayride||window.botguard?W.push("r1c=1"):W.push("r1c=4");W.push(`${"r1d"}=${g.$b.getState()}`); return W.join("&")}, c6a:W=>"r6a="+(Number(W.c)^Xm()), c6b:W=>`${"r6b"}=${Number(W.c)^Number(g.F("CATSTAT",0))}`}; this.videoData&&this.videoData.im?this.D4=ng(this.videoData.im):this.D4={}}};var q4=ufg()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Mo?!0:!1;var ZZ={ws:function(M,W){M[y[33]](0,W)}, HM:function(M){M[y[36]]()}, I8:function(M,W){var b=M[0];M[0]=M[W%M[y[6]]];M[W%M[y[6]]]=b}};var s4t={M2:"adunit",yY:"detailpage",M7:"editpage",Si:"embedded",MH:"leanback",JZ:"previewpage",Y4:"profilepage",LM:"unplugged",NJ:"playlistoverview",qBn:"sponsorshipsoffer",Ekp:"shortspage",yP:"handlesclaiming",Wd:"immersivelivepage",dA:"creatormusic",zj:"immersivelivepreviewpage",A9:"admintoolyurt",YYK:"shortsaudiopivot",O6:"consumption",Bq:"background_audio_playback"};var SKJ=2592E3;var zt;g.Vg={STOP_EVENT_PROPAGATION:"html5-stop-propagation",IV_DRAWER_ENABLED:"ytp-iv-drawer-enabled",IV_DRAWER_OPEN:"ytp-iv-drawer-open",MAIN_VIDEO:"html5-main-video",VIDEO_CONTAINER:"html5-video-container",VIDEO_CONTAINER_TRANSITIONING:"html5-video-container-transitioning",HOUSE_BRAND:"house-brand"};zt={RIGHT_CONTROLS_LEFT:"ytp-right-controls-left",RIGHT_CONTROLS_RIGHT:"ytp-right-controls-right"};var pAt={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var MHy={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},azJ={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"},wwL={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var lWt={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var l7G;g.LJ=class{constructor(M,W=!1){this[y[11]]=M;this[y[31]]=W;this[y[13]]=this[y[16]]=this[y[10]]=y[5];this[y[17]]={};this[y[39]]=y[5]}set(M,W){this[y[17]][M]!==W&&(this[y[17]][M]=W,this[y[39]]=y[5])}get(M){hz(34,this);return this[y[17]][M]||null}WF(){this[y[39]]||(this[y[39]]=rk(2,this));return this[y[39]]}clone(){const M=new g.LJ(this[y[11]],this[y[31]]);M[y[10]]=this[y[10]];M[y[16]]=this[y[16]];M[y[13]]=this[y[13]];M[y[17]]=g.c$(this[y[17]]);M[y[39]]=this[y[39]];return M}};l7G=[sfP];g.fL=class{constructor(M,W){this.id=M;this.r9=W;this.captionTracks=[];this.B=this.A=null;this.xtags="";this.C=this.S=!1;this.Z=null;this.V="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";M=this.r9.id.split(".");M.length>1&&(this.S=M[1]==="2",this.C=M[1]==="4")}getLanguageInfo(){return this.r9}getXtags(){if(!this.xtags){const M=this.id.split(";");M.length>1&&(this.xtags=M[1])}return this.xtags}toString(){return this.r9.name}isAutoDubbed(){return this.r9.getIsAutoDubbed()}}; g.fL.prototype.getLanguageInfo=g.fL.prototype.getLanguageInfo;g.fL.prototype.isAutoDubbed=g.fL.prototype.isAutoDubbed;var DQ=class{constructor(M,W,b,T,q=0){this.V=M;this.Z=W;this.B=b;this.reason=T;this.sB=q}equals(M){return this.V===M.V&&this.Z===M.Z&&this.B===M.B&&this.reason===M.reason&&(!EV||this.sB===M.sB)}isLocked(){return this.B&&!!this.V&&this.V===this.Z}compose(M){if(M.B&&nb(M))return ll;if(M.B||nb(this))return M;if(this.B||nb(M))return this;let W=this.V&&M.V?Math.max(this.V,M.V):this.V||M.V;const b=this.Z&&M.Z?Math.min(this.Z,M.Z):this.Z||M.Z;W=Math.min(W,b);let T=0;EV&&(T=this.sB!==0&&M.sB!==0?Math.min(this.sB, M.sB):this.sB===0?M.sB:this.sB);return EV&&W===this.V&&b===this.Z&&T===this.sB||!EV&&W===this.V&&b===this.Z?this:EV?new DQ(W,b,!1,b===this.Z&&T===this.sB?this.reason:M.reason,T):new DQ(W,b,!1,b===this.Z?this.reason:M.reason)}A(M){return!M.video||EV&&this.sB!==0&&this.sBM.A(q)),b=[],T={}; for(let q=0;qM.A(W))}getAvailableAudioTracks(){return this.audioTracks}Z(){return!!this.V}};var vng=new Set(["356"]),Yza=class extends g.gz{constructor(){super(...arguments);this.V=null;this.Z=new Map}vY(){super.vY()}};var zU=class{constructor(M,W,b,T,q,X,G,V,J){this.Kp=M;this.startTime=W;this.duration=b;this.ingestionTime=T;this.sourceURL=q;this.vF=J;this.endTime=W+b;this.Z=G||0;this.range=X||null;this.pending=V||!1;this.vF=J||null}};g.pq=class{constructor(){this.segments=[];this.V=null;this.S=!0;this.C=""}W(M){this.segments.push(M)}Z5(M){return!!this.B(M)}getDuration(M){return(M=this.B(M))?M.duration:0}X(M){return this.getDuration(M)}uu(){return 0}UJ(){return this.segments.length?this.segments[0].Kp:-1}A1(M){return(M=this.B(M))?M.ingestionTime:NaN}Y_(){return this.segments.length?this.segments[this.segments.length-1].Kp:-1}HE(M){return this.Y_()===M&&!this.S&&M>=0}DK(){const M=this.segments[this.segments.length-1];return M?M.endTime: NaN}XD(){return this.segments[0].startTime}tJ(){return this.segments.length}Z(){return 0}UX(M){return(M=this.A(M))?M.Kp:-1}D(M){return(M=this.B(M))?M.sourceURL:""}getStartTime(M){return(M=this.B(M))?M.startTime:0}Cj(M){return this.getStartTime(M)+this.getDuration(M)}isLoaded(){return this.segments.length>0}B(M){if(this.V&&this.V.Kp===M)return this.V;M=g.k5(this.segments,new zU(M,0,0,0,""),(W,b)=>W.Kp-b.Kp); return this.V=M>=0?this.segments[M]:null}A(M){if(this.V&&this.V.startTime<=M&&MW.startTime-b.startTime); return this.V=M>=0?this.segments[M]:this.segments[Math.max(0,-M-2)]}append(M){if(M.length)if(M=g.Vh(M),this.segments.length){var W=this.segments.length?g.zS(this.segments).endTime:0,b=M[0].Kp-this.Y_();b>1&&T4(this.segments);b=b>0?0:-b+1;for(let T=b;T1?M=M.Oq:(W=GU(W,nO(this,this.Gr(M,W),M)),M=Math.max(this.S,W.timedOut)+M.Wn*(this.B-this.S)+.25*this.D,M=M>3?1E3*1.6**(M-3):0);return M===0?!0:this.gK+M<(0,g.u)()}O(M,W){this.Z.set(M,W);this.V.set(M,W);this.A&&this.A.set(M,W)}WN(M){return this.V.get(M)}FP(){return this.V.get("cpn")||""}h2(M,W){M.eH===this.Z&&(this.Z= lf(M,W));M.eH===this.A&&(this.A=lf(M,W))}Zs(){this.X=!0}zt(){return this.Z!==this.A&&!this.C}};var Yk=class{constructor(M,W,b,T){this.initRange=b;this.indexRange=T;this.V=null;this.gK=!1;this.Lp=0;this.Zs=this.xB=this.X=null;this.info=W;this.Vc=new QvL(M)}Z(){return!!this.V&&this.index.isLoaded()}yz(){return!1}jT(M){return[M]}BY(M){return[M]}};var CO=class{constructor(M,W){this.start=M;this.end=W;this.length=W-M+1}toString(){return this.start+"-"+(this.end==null?"":this.end)}Z(){return this.end==null?{start:String(this.start)}:{start:String(this.start),end:String(this.end)}}};var Np=class{constructor(M,W,b,T="",q,X,G,V,J,B,D,a=""){this.type=M;this.Tv=W;this.range=b;this.source=T;this.Dd=D;this.clipId=a;this.gK=[];this.W="";this.Kp=-1;this.O=0;this.W=T;this.Kp=q>=0?q:-1;this.startTime=X||0;this.duration=G||0;this.Z=V||0;this.V=J>=0?J:this.range?this.range.length:NaN;this.B=this.range?this.Z+this.V===this.range.length:B===void 0?!!this.V:B;this.range?(this.A=this.startTime+this.duration*this.Z/this.range.length,this.D=this.duration*this.V/this.range.length,this.S=this.A+ this.D):bup(this)}C(){return this.B&&this.Tv.index.HE(this.Kp)}isEncrypted(){return this.Tv.info.isEncrypted()}equals(M){return!(!M||M.Tv!==this.Tv||M.type!==this.type||(this.range&&M.range?M.range.start!==this.range.start||M.range.end!==this.range.end:M.range!==this.range)||M.Kp!==this.Kp||M.Z!==this.Z||M.V!==this.V)}X(){return this.type===4}OO(){return!!this.Tv.info.video}Zs(){return this.Kp}lw(){const M=In(this);let W="";g.NE(M,(b,T)=>{W+=`${T}_${b}_`}); return W.slice(0,-1)}};var A5=class{constructor(M,W){this.g9=M;this.A=this.Z=null;this.S=this.qZ=NaN;this.Gr=this.requestId=null;this.k9={SOk:()=>this.range}; this.Vc=M[0].Tv.Vc;this.V=W||"";this.g9[0].range&&this.g9[0].V>0&&(Mws(M)?(this.range=$us(M),this.B=this.range.length):(this.range=this.g9[this.g9.length-1].range,this.B=Wnq(M)))}iJ(){return this.Z?this.Z.WF():""}isDecorated(){return!!(this.Z||this.A&&this.A.jI)}eA(){return lk(this.g9[0])}h2(M,W){this.Vc.h2(M,W);if(this.Z){this.Z=lf(M,W);for(const b of["acpns","cpn","daistate","skipsq"])this.Z["set"](b,null)}this.requestId=M.get("req_id")}};var E$=class extends Yk{constructor(M,W,b,T,q,X=0){super(M,W,T);this.wK=b;this.WO=X;this.index=q||new g.pq}B(){return!1}D(){return!0}sY(){return!1}yz(){return!this.wK}W(){return new A5([new Np(1,this,this.initRange,"getMetadataRequestInfo")],this.wK)}O(){return null}lV(M){this.A(M);return this.D()&&M.V&&!M.B?new A5([new Np(M.type,M.Tv,M.range,"liveGetNextRequestInfoBySegment",M.Kp,M.startTime,M.duration,M.Z+M.V,NaN,!0)],this.index.D(M.Kp)):this.S(Z5(M),!1)}C(M,W=!1){M=this.index.UX(M);W&&(M=Math.min(this.index.Y_(), M+1));return this.S(M,!0)}xk(M){Ph(M)}A(M){return M.V===0?!0:this.index.Y_()>M.Kp&&this.index.UJ()<=M.Kp+1}update(M,W,b){this.index.append(M);LGl(this.index,b);M=this.index;M.S=W;M.C="update"}Z(){return this.yz()?!0:super.Z()}S(M,W){const b=this.index.D(M),T=this.index.getStartTime(M);let q=this.index.getDuration(M),X;W?q=X=0:X=this.info.sB>0?this.info.sB*q:1E3;return new A5([new Np(3,this,void 0,"liveCreateRequestInfoForSegment",M,T,q,0,X,!W)],b)}An(){return this.yz()?0:this.initRange.length}MK(){return!1}};var MGL=class{constructor(M,W,b,T,q){this.Kp=M;this.startSecs=W;this.C7=b;this.Z=T||NaN;this.V=q||NaN}};var ik=class{constructor(){this.Z=[];this.V=null;this.C=0;this.B=[];this.S=!1;this.W="";this.A=-1}update(M){var W=void 0;this.V&&(W=this.V);{const C=new ik;var b=Array.from(M.getElementsByTagName("S"));if(b.length){var T=+xm(M,"timescale")||1,q=(+b[0].getAttribute("t")||0)/T,X=+xm(M,"startNumber")||0;C.A=q;var G=W?W.startSecs+W.C7:0,V=Date.parse(y1s(xm(M,"yt:segmentIngestTime")))/1E3;C.S=M.parentElement.tagName==="SegmentTemplate";C.S&&(C.W=xm(M,"media"));M=W?X-W.Kp:1;C.C=M>0?0:-M+1;for(n of b){M= +n.getAttribute("d")/T;b=(+n.getAttribute("yt:sid")||0)/T;const l=+n.getAttribute("r")||0;for(let N=0;N<=l;N++){if(W&&X<=W.Kp){X++;continue}var J=new MGL(X,G,M,V+b,q);C.Z.push(J);b:{var B=n;var D=T,a=J.startSecs;J=B.getAttribute("yt:cuepointTimeOffset");var E=B.getAttribute("yt:cuepointDuration");if(!J||!E){B=null;break b}J=Number(J);a=-J/D+a;D=Number(E)/D;E=B.getAttribute("yt:cuepointContext")||null;const R=B.getAttribute("yt:cuepointIdentifier")||"";B=B.getAttribute("yt:cuepointEvent")||"";B=new iu(a, D,E,R,$QQ[B]||"unknown",J)}B&&C.B.push(B);X++;G+=M;q+=M;V+=M+b}}C.Z.length&&(C.V=g.zS(C.Z))}var n=C}this.C=n.C;this.V=n.V||this.V;g.J7(this.Z,n.Z);g.J7(this.B,n.B);this.S=n.S;this.W=n.W;this.A===-1&&(this.A=n.getStreamTimeOffset())}getStreamTimeOffset(){return this.A===-1?0:this.A}};var WEa=class{constructor(){this.A=[];this.Z=null;this.V={};this.B={}}};var b6y=class extends g.pq{constructor({WO:M=0,k7:W=!1,H$:b=0,Sk:T=0,Hp:q=Infinity,bu:X=0,f7:G=!1,R4:V=!1}={}){super();this.TT=this.xm=-1;this.yW=M;this.H$=b;this.k7=W;this.Sk=T;this.Hp=q;this.bu=X;((this.f7=G)||isFinite(q)&&this.Hp>0)&&W&&J9&&(this.S=!1,this.C="postLive");this.R4=V}uu(){return this.yW}Z5(M,W){M=h5(this,M);return M>=0&&(W||!this.segments[M].pending)}UJ(){return this.k7?this.segments.length?this.A(this.XD()).Kp:-1:super.UJ()}XD(){if(this.f7)return 0;if(!this.k7)return super.XD();if(!this.segments.length)return 0; const M=Math.max(g.zS(this.segments).endTime-this.H$,0);return this.Sk>0&&this.A(M).Kp0)return this.TT/1E3;if(!this.segments.length)return super.DK();var M=this.Y_();if(!this.k7||M<=this.segments[this.segments.length-1].Kp)M=this.segments[this.segments.length-1];else{var W=this.segments[this.segments.length-1];M=new zU(M,Math.max(0,W.startTime-(W.Kp-M)*this.yW),this.yW,0,`sq/${M}`,void 0,void 0,!0)}return this.f7?Math.min(this.H$, M.endTime):M.endTime}tJ(){return this.k7?this.segments.length?this.Y_()-this.UJ()+1:0:super.tJ()}Y_(){let M=Math.min(this.Hp,Math.max(super.Y_(),this.xm));var W=this.H$*1E3;W=this.TT>0&&this.TT0&&this.xm>0&&!W&&(W=this.A(this.H$))&&(M=Math.min(W.Kp-1,M));return M}R5(){return this.segments.length?this.segments[this.segments.length-1]:null}W(M){var W=h5(this,M.Kp);if(W>=0)this.segments[W]=M;else if(this.segments.splice(-(W+1),0,M),this.bu&&M.Kp%(300/this.yW)===0){var b=this.segments[0].Kp, T=Math.floor(this.bu/this.yW);M=M.Kp-T;W=-(W+1)-T;W>0&&M>b&&(this.segments=this.segments.slice(W))}}gK(M){M=h5(this,M);M>=0&&this.segments.splice(M,1)}GZ(){return this.xm}HE(M){return J9?!this.S&&M>=0&&this.Y_()<=M:super.HE(M)}A(M){if(!this.k7)return super.A(M);if(!this.segments.length)return null;var W=this.segments[this.segments.length-1];if(M=W.endTime)W=W.Kp+Math.floor((M- W.endTime)/this.yW+1);else{W=KJ(this.segments,T=>M=T.endTime?1:0); if(W>=0)return this.segments[W];var b=-(W+1);W=this.segments[b-1];b=this.segments[b];W=Math.floor((M-W.endTime)/((b.startTime-W.endTime)/(b.Kp-W.Kp-1))+1)+W.Kp}return this.B(W)}B(M){if(!this.k7)return super.B(M);if(!this.segments.length)return null;var W=h5(this,M);if(W>=0)return this.segments[W];const b=-(W+1);W=this.yW;if(b===0)var T=Math.max(0,this.segments[0].startTime-(this.segments[0].Kp-M)*W);else b===this.segments.length?(T=this.segments[this.segments.length-1],T=T.endTime+(M-T.Kp-1)*W):(T= this.segments[b-1],W=this.segments[b],W=(W.startTime-T.endTime)/(W.Kp-T.Kp-1),T=T.endTime+(M-T.Kp-1)*W);return new zU(M,T,W,0,`sq/${M}`,void 0,void 0,!0)}},J9=!1;var oJt=class extends E${constructor(M,W,b={}){super(M,W,"",void 0,void 0,b.WO||0);this.index=new b6y(b)}sY(){return!0}Z(){return!0}A(M){return this.D()&&M.V&&!M.B||!M.Tv.index.HE(M.Kp)}W(){}C(M,W=!1){return typeof M!=="number"||isFinite(M)?super.C(M,W):new A5([new Np(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.WO,void 0,this.WO*this.info.sB)],"")}S(M,W){if(this.index.Z5(M))return super.S(M,W);const b=this.index.getStartTime(M);let T=Math.round(this.WO*this.info.sB),q=this.WO;W&&(q= T=0);return new A5([new Np(3,this,void 0,"mlLiveCreateReqInfoForSeg",M,b,q,void 0,T,!W)],M>=0?`sq/${M}`:"")}};var bBQ=class extends Yk{constructor(M,W){super(M,W);M=this.index=new g.pq;M.S=!1;M.C="d"}B(){return!1}D(){return!1}sY(){return!1}W(){return new A5([new Np(1,this,void 0,"otfInit")],"sq/0")}O(){return null}lV(M){this.A(M);return Lna(this,Z5(M),!1)}C(M,W=!1){M=this.index.UX(M);W&&(M=Math.min(this.index.Y_(),M+1));return Lna(this,M,!0)}xk(M){M.info.type===1&&(this.V||(this.V=Ca(M.V)),M.Z&&M.Z.uri==="http://youtube.com/streaming/otf/durations/112015"&&lRJ(this,M.Z))}A(M){return M.V===0?!0:this.index.Y_()> M.Kp&&this.index.UJ()<=M.Kp+1}An(){return 0}MK(){return!1}};var Zut,ThL,NBs,HuS,IRl;g.uk=class{constructor(M){this.tag=M}};Zut=new Map;ThL=class{constructor(){this.Z=new Map;this.k9={WQs:()=>this.Z}}}; NBs=class{constructor(){this.Z=10;this.V=Date.now()}};HuS=new Map;IRl=new ThL;var eV=class{constructor(M,W){this.info=M;this.V=W;this.Z=null;this.A=this.B=-1;this.timestampOffset=0;this.isLocked=this.W=!1;this.S=this.info.Tv.yz()&&!this.info.Z}C(M,W=!1,b=0){if(this.isLocked||M.isLocked||!LO(this.info,M.info)||this.info.B)return null;if(b){if(this.V.totalLength+M.V.totalLength>b)return null}else if(W&&(W=this.V,b=M.V,W=!(b.Z.length?$Oy(W,b.Z[0]):1)),W)return null;W=new Np(this.info.type,this.info.Tv,this.info.range,this.info.W,this.info.Kp,this.info.startTime,this.info.duration, this.info.Z,this.info.V,this.info.B,this.info.Dd,this.info.clipId);b=M.info;W.V+=b.V;W.range&&(W.D+=b.D);W.S=b.S;W.B=b.B;b=new IR;E6(b,this.V);E6(b,M.V);W=new eV(W,b);W.Z!=null&&M.Z!=null&&g.SV("dash",414627957,`merged slice emsg overridden; prev: ${W.Z.Ai()} next: ${M.Z.Ai()}`);W.Z=M.Z||this.Z;W.B=this.B!==-1?this.B:M.B;W.A=this.A!==-1?this.A:M.A;return W}};g.$l=class{constructor(){this.count=0;this.V=1;this.B=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}Z5(M){return M<=this.Y_()}Z(M){return this.offsets[M]}getStartTime(M){return this.startTicks[M]/this.V}Cj(M){return this.getStartTime(M)+this.getDuration(M)}A1(){return NaN}getDuration(M){M=this.X(M);return M>=0?M/this.V:-1}X(M){return M+1=0}DK(){return this.B?this.startTicks[this.count]/this.V:NaN}XD(){return 0}tJ(){return this.count}D(){return""}UX(M){M=g.k5(this.startTicks.subarray(0,this.count),M*this.V);return M>=0?M:Math.max(0,-M-2)}isLoaded(){return this.Y_()>=0}Nr(M,W){if(M>=this.Y_())return 0;let b=0;for(W=this.getStartTime(M)+W;Mthis.getStartTime(M);M++)b=Math.max(b,sIg(this,M)/this.getDuration(M));return b}resize(M){M+=2;const W=this.offsets;this.offsets=new Float64Array(M+1);const b=this.startTicks;this.startTicks= new Float64Array(M+1);for(M=0;Mthis.OM(q,X,G)}; this.index=new g.$l}W(M,W){var b=new Np(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W);const T=[new Np(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W),b];this.info.contentLength>0&&M&&(b=b.range.end+1,M=Math.min(M,this.info.contentLength-b),M>0&&T.push(new Np(4,this,KO(b,M),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)));return new A5(T)}xk(M){if(M.info.type===1){if(this.V)return;this.V=Ca(M.V)}else if(M.info.type=== 2){if(this.S||this.index.Y_()>=0)return;if(g.FH(this.info)){var W=this.index,b=g.Oe(M);M=M.info.range.start;var T=g.OV(b,0,1936286840);b=FGQ(T);W.V=b.timescale;var q=b.qF;W.offsets[0]=b.CY+M+T.size;W.startTicks[0]=q;W.B=!0;var X=b.NB.length;for(var G=0;G0&&b===X[0].e$)for(b=0;b=W+b)break}T.length||(M=new g.EF("b189619593",`${M}`,`${W}`,`${b}`),g.O(M));return new A5(T)}jT(M){const W=this.BY(M.info),b=M.info.range.start+M.info.Z,T=[];for(let q=0;q=this.index.Z(b+1);)b++;return this.OM(b,W,M.V).g9}A(M){M.C();return this.Z()?!0:M.range.end+1this.info.contentLength&&(W=new CO(W.start,this.info.contentLength-1)),new A5([new Np(4,M.Tv,W,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,M.clipId)]);M.type===4&&(M=this.BY(M),M=M[M.length-1]);let b=0;const T=M.range.start+M.Z+M.V;M.type===3&&(M.C(),b=M.Kp,T===M.range.end+1&&(b+=1));return this.OM(b,T,W)}lV(){return null}C(M,W=!1){M=this.index.UX(M);W&&(M=Math.min(this.index.Y_(),M+1));return this.OM(M, this.index.Z(M),0)}B(){return!0}D(){return!0}sY(){return!1}An(){return this.indexRange.length+this.initRange.length}MK(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1}};var VMQ=class{constructor(M,W,b,T="",q="",X=""){this.displayName=M;this.vssId=W;this.languageCode=b;this.kind=T;this.xtags=q;this.id=X}};var jDP={COLOR_PRIMARIES_BT709:"bt709",COLOR_PRIMARIES_BT2020:"bt2020",COLOR_PRIMARIES_UNKNOWN:null,COLOR_PRIMARIES_UNSPECIFIED:null},wFy={COLOR_TRANSFER_CHARACTERISTICS_BT709:"bt709",COLOR_TRANSFER_CHARACTERISTICS_BT2020_10:"bt2020",COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084:"smpte2084",COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67:"arib-std-b67",COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN:null,COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED:null};g.j0=class{constructor(M,W,b,T=!1){this.name=M;this.id=W;this.isDefault=b;this.isAutoDubbed=T}getName(){return this.name}getId(){return this.id}getIsDefault(){return this.isDefault}getIsAutoDubbed(){return this.isAutoDubbed}toString(){return this.name}};g.j0.prototype.getName=g.j0.prototype.getName;g.j0.prototype.getId=g.j0.prototype.getId;g.j0.prototype.getIsDefault=g.j0.prototype.getIsDefault;g.j0.prototype.getIsAutoDubbed=g.j0.prototype.getIsAutoDubbed;var MMG=/action_display_post/;g.se=class extends g.b9{constructor(M="",W=null,b=!1){super();this.sourceUrl=M;this.isLivePlayback=b;this.MK=this.duration=0;this.isPremiere=this.f7=this.D=this.isLiveHeadPlayable=this.isLive=this.V=!1;this.Hp=this.Sk=0;this.isOtf=this.Me=!1;this.An=(0,g.u)();this.Zs=Infinity;this.Z={};this.B=new Map;this.state=this.Iq=0;this.W=null;this.isManifestless=!1;this.yz=[];this.S=null;this.BY=0;this.C="";this.lV=NaN;this.AX=this.KU=this.timestampOffset=this.X=0;this.mF=this.R6=NaN;this.QZ=0;this.xk=this.O= !1;this.Ds=[];this.EY={};this.bV=this.sY=NaN;this.k9={jgX:T=>{pO(this,T)}}; this.XX=W?.FX("html5_use_network_error_code_enums");iBL=!!W&&W.FX("html5_modern_vp9_mime_type");qs=!!W?.FX("html5_enable_flush_during_seek")&&g.EL();XJ=!!W?.FX("html5_enable_reset_audio_decoder")&&g.EL()}isLoading(){return this.state===1}Bi(){return this.state===3}jT(){return g.RQ(this.Z,M=>!!M.info.video&&M.info.video.qualityOrdinal>=2160)}A(){return g.RQ(this.Z,M=>!!M.info.contentProtection)}OY(M){var W=M.getElementsByTagName("Representation"); if(M.getElementsByTagName("SegmentList").length>0||M.getElementsByTagName("SegmentTemplate").length>0){this.Me=this.V=!0;this.W||(this.W=new WEa);vXp(this.W,M);this.publish("refresh");for(M=0;M=0?a=km(E):n=`${n}?range=${E}`}V.call(q,new zU(J.Kp,J.startSecs,J.C7,J.Z,n,a,J.V))}T=B}b.update(T,this.isLive,this.MK)}muJ(this.W);return!0}this.duration=nXJ(xm(M,"mediaPresentationDuration"));a:{for(G=0;G{})}}resume(){KKt(this)}nN(){if(this.isManifestless&&this.D&&BR(this))return BR(this); const M=this.Z;let W=!1,b=NaN,T=NaN;for(const X in M){const G=M[X];var q=G.index;if(!q.isLoaded()||tE(G.info.mimeType))continue;G.Zs&&(W=!0);q=q.DK();G.info.s1()&&(isNaN(b)||q0))return this.nN()-M}}M=this.Z;for(const W in M){const b=M[W].index;if(b.isLoaded()&&!tE(M[W].info.mimeType))return b.XD()}return 0}getStreamTimeOffset(){return this.X}A1(M){for(const W in this.Z){const b= this.Z[W].index;if(b.isLoaded()){const T=b.UX(M),q=b.A1(T);if(q)return q+M-b.getStartTime(T)}}return NaN}d9(){for(const M in this.Z)this.Z.hasOwnProperty(M)&&(this.Z[M].V=null,this.Z[M].gK=!1)}};g.se.prototype.wK=Ma(4);var iBL,qs,XJ,kZ=null,t$=!!navigator.mediaCapabilities?.decodingInfo,IrS={commentary:1,alternate:2,dub:3,main:4};var Ns=new Set,Zh=new Map;var Ast=class{constructor(M){this.Vz=M;this.fv=this.cM=this.BY=this.S=this.A=this.L3=this.MK=this.gK=!1;this.W=this.C=0;this.wK=!1;this.O=!0;this.jT=!1;this.AD=0;this.xk=this.An=this.Sf=this.yz=!1;this.V={};this.bV=this.XX=this.cP=this.disableAv1=this.Zs=this.Y9=this.Ds=this.EY=this.Z=this.D=!1;this.sY=0;this.aT=this.Vz.j("html5_disable_aac_preference");this.oT=Infinity;this.qf=0;this.vP=this.Vz.jW();this.OY=this.Vz.experiments.FX("html5_enable_vp9_fairplay");this.A5=this.Vz.j("html5_force_av1_for_testing"); this.x_=this.Vz.hT().Z.UY(l9a);this.Lp=g.TO(this.Vz.experiments,"html5_av1_ordinal_cap");this.s2=this.Vz.j("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.WP=this.Vz.j("html5_account_onesie_format_selection_during_format_filter");this.sB=g.TO(this.Vz.experiments,"html5_max_byterate");this.d9=this.Vz.j("html5_enable_iamf_audio");this.lV=this.Vz.experiments.FX("html5_allow_capability_merge");this.FT=this.Vz.j("html5_enable_encrypted_av1")}};var dp=class{constructor(M,W,b,T){this.flavor=M;this.keySystem=W;this.B=b;this.experiments=T;this.V={};this.qw=this.keySystemAccess=null;this.PN=this.lJ=-1;this.yg=null;this.A=!!T&&T.FX("edge_nonprefixed_eme");T&&T.FX("html5_enable_vp9_fairplay")}clone(M){return new dp(this.flavor,M,this.B,this.experiments)}Z(){return this.keySystem==="com.youtube.fairplay.sbdl"}qd(){return{flavor:this.flavor,keySystem:this.keySystem}}getInfo(){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}}},O$={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.youtube.widevine.l3","com.widevine.alpha"]},zJS={widevine:"DRM_SYSTEM_WIDEVINE",fairplay:"DRM_SYSTEM_FAIRPLAY",playready:"DRM_SYSTEM_PLAYREADY"},qZt={widevine:1,fairplay:2,playready:3};var OXP=class extends g.gz{constructor(M,W,b,T=!1,q){super();this.Vz=W;this.useCobaltWidevine=T;this.dK=q;this.V=[];this.B={};this.Z={};this.callback=null;this.S=!1;this.A=[];this.initialize(M,!b)}initialize(M,W){for(const T of Object.keys(M)){var b=T;for(const q of M[b])if(q.contentProtection)for(const X of Object.keys(q.contentProtection)){b=X;let G=O$[X];!G&&this.j("html5_enable_vp9_fairplay")&&b==="fairplay"&&(G=["com.youtube.fairplay.sbdl"]);if(G)for(const V of G)this.B[V]=this.B[V]||new dp(b, V,q.contentProtection[b],this.Vz.experiments),this.Z[b]=this.Z[b]||{},this.Z[b][q.mimeType]=!0}}nU()&&(this.B["com.youtube.fairplay"]=new dp("fairplay","com.youtube.fairplay","",this.Vz.experiments),this.j("html5_enable_vp9_fairplay")||(this.Z.fairplay=this.Z.fairplay||{},this.Z.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Z.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.V=OBg(W,this.useCobaltWidevine,this.j("html5_enable_safari_fairplay")&&!0,this.j("html5_enable_vp9_fairplay")).filter(T=> !!this.B[T])}j(M){return this.Vz.experiments.FX(M)}},PR;var XCL={"":"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 jsy={OFF:"0",ON:"1",x$:"2",hB:"3"};var GBS={RED:"red",iNV:"white"};var VGs=class{constructor(M){M=EX(M.serializedClientExperimentFlags??"","&");this.flags=new Map(Object.entries(M).map(([W,b])=>typeof b==="string"?[W,b]:[W,b[0]]))}UY(M){if(M.mP!==3)throw Error("WpccFlagRetriever only supports WPCC flags"); return wZJ(this,M)}FX(M){return this.flags.get(`${M}`)==="true"}};var J4G=class{constructor(M,W,b){this.Z=void 0;this.experimentIds=M?M.split(","):[];this.flags=EX(W||"","&");M={};for(const T of this.experimentIds)M[T]=!0;this.experiments=M;b=new VGs(b);this.B=new OsL(b);this.V=new S_y(b)}hT(){return this.B}UM(){return this.V}FX(M){M=this.UY(M);JSON.stringify(M);return M==="true"}UY(M){return this.flags[M]}};var Bhs=Promise.resolve(),DQg=M=>Bhs.then(M),baL=window.queueMicrotask?window.queueMicrotask.bind(window):DQg;var y4P=class{constructor(M,W,b=!1){this.experiments=M;this.Zs=W;this.sY=b;this.D=!!g.Ct("cast.receiver.platform.canDisplayType");this.W={};this.X=!1;this.B=new Map;this.C=!0;this.Z=this.V=!1;this.gK=0;this.O=this.experiments.FX("html5_disable_vp9_encrypted");this.A=this.experiments.FX("html5_enable_encrypted_av1");M=g.Ct("cast.receiver.platform.getValue");this.S=!this.D&&M&&M("max-video-resolution-vpx")||null;Mra(this);this.V=!!(nU()&&BV()>=21)}canPlayType(M,W){M=M.canPlayType?M.canPlayType(W):!1; $w?M=M||aLL[W]:sn===2.2?M=M||EIq[W]:a$()&&(M=M||nIt[W]);return!!M}isTypeSupported(M){return this.D?window.cast.receiver.platform.canDisplayType(M):jA(M)}},EIq={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},nIt={"application/x-mpegURL":"maybe"},aLL={"application/x-mpegURL":"maybe"};var UQa=class extends g.b9{constructor(){super();this.items={}}add(M,W){if(!this.items[M]&&(W.Wl||W.GYs||W.Nb)){var b=this.items;let T=W;Object.isFrozen&&!Object.isFrozen(W)&&(T=Object.create(W),Object.freeze(T));b[M]=T;this.publish("vast_info_card_add",M)}}remove(M){const W=this.get(M);delete this.items[M];return W}get(M){return this.items[M]||null}isEmpty(){return g.P$(this.items)}};var CGS=class{constructor(M,W){this.Z=M;this.cipher=this.Z.exports.AES128CTRCipher_create(W.byteOffset)}encrypt(M){this.Z.exports.AES128CTRCipher_encrypt(this.cipher,M.byteOffset,M.byteLength);return M}ST(){return this.cipher===0}dispose(){this.Z.exports.AES128CTRCipher_release(this.cipher);this.cipher=0}};var G9q=class{constructor(){this.V=this.WV=0;this.Z=Array.from({length:Wv.length}).fill(0)}Wa(M,W=1){this.WV+=W;this.V+=M;M/=W;for(let b=0;bX.apply(V,[D].concat(G)))}}}}HI(){return new KEs}kK(M,W,b=1){W instanceof KEs&&(VrL(this,M,(0,g.u)()-W.startTimeMs,b),W.Z=!0)}N$(M,W){const b=(0,g.u)(); W=W();jRy(this,W,M,b)}Mr(){const M={};for(const b in this.Z){if(!this.Z.hasOwnProperty(b))continue;a:{var W=this.Z[b];if(W.WV===0){W=null;break a}let T=Math.ceil(W.WV).toFixed(0)+"."+W.V.toFixed(0);for(let q=0;q0)T+="."+Wv[q].toFixed(0)+"_"+W.Z[q].toFixed(0);else break;W=T}W&&(M[b]=W)}this.Z=new kBs;return M}toString(){return""}};var bM=new class{isActive(){return!1}mA(){}HI(){}kK(){}N$(M,W){W()}Mr(){return{}}toString(){return""}},mQL=!!+j$("html5_enable_profiler"),LEG=!!+j$("html5_onesie_enable_profiler"),To=mQL||LEG?new vIS:bM,yQl=mQL?To:bM,s$=LEG?To:bM;var lLs=class{emscripten_notify_memory_growth(){}},tGt=class{constructor(){this.proc_exit=()=>{}; this.fd_write=(M,W,b)=>{if(!this.exports)return 1;M=new Uint32Array(this.exports.memory.buffer,W,b*2);W=[];for(let q=0;qq+X.length,0)}}},aUg=class{constructor(){this.env=new lLs; this.wasi_snapshot_preview1=new tGt}};var pf=class{constructor(M,W,b){this.instance=M;this.Z=b;this.exports=this.instance.exports;W.wasi_snapshot_preview1.exports=this.exports;M=Math.floor(Math.random()*256);W=Math.floor(Math.random()*256);b=0;try{b=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,b,16)).fill(M);if(this.exports.sentinel(b,16,W)!==W*16%256)throw"wasm.wm.vi";const T=new Uint8Array(this.exports.memory.buffer,b,16);for(let q=0;q<16;q++)if(T[q]!==(M+W)%256)throw`wasm.wm.vi${q}`;}finally{b!==0&&this.exports.free(b)}}malloc(M){return this.exports.malloc(M)}free(M){this.exports.free(M)}realloc(M, W){return this.exports.realloc(M,W)}JS(M){var W=this.malloc(M.byteLength);W=new Uint8Array(this.exports.memory.buffer,W,M.byteLength);W.set(M);return W}QM(M){const W=M.slice();M.buffer===this.exports.memory.buffer&&this.free(M.byteOffset);return W}},ydS=new class{constructor(){this.Z="WebAssembly"in window}},wp="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);s$.mA(pf,{JS:M=>({profile:"copyj2w",WV:M===void 0?0:Math.ceil(M.byteLength/16)}), QM:M=>({profile:"copyw2j",WV:M===void 0?0:Math.ceil(M.byteLength/16)})});var Z6p=class{constructor(M,W,b){this.Z=M;this.A=!1;W=this.Z.JS(W);this.V=new CGS(M,W);this.Z.free(W.byteOffset);b&&(this.B=this.Z.JS(b))}encrypt(M,W){return CoL(this,M,W,!1).gV}ST(){return this.A}dispose(){this.ST()||(g.cG(this.V),this.B&&this.Z.free(this.B.byteOffset),this.A=!0)}};var ILa=class{constructor(M,W,b){this.Z=new Z6p(M,W,b)}encrypt(M,W){try{return this.Z.encrypt(M,W)}catch(b){r4(b,"wasm ocwce"),g.lR(b)}}V(M,W){try{const b=CoL(this.Z,M,W,!0);return{gV:b.gV,signature:b.signature}}catch(b){r4(b,"wasm ocwceas"),g.lR(b)}}ST(){return this.Z.ST()}dispose(){this.Z.dispose()}};var Nhl=class extends g.gz{constructor(M,W,b){super();this.encryptedClientKey=W;this.W=b;this.V=new Uint8Array(M.buffer,0,16);this.B=new Uint8Array(M.buffer,16)}C(M){this.Z=new ILa(M,this.V,this.B);g.t(this,this.Z)}};var H6t=class extends g.gz{constructor(M,W){super();if(!W&&M)try{W=JSON.parse(M)}catch{}if(W){M=W.clientKey?MT(W.clientKey):null;var b=W.encryptedClientKey?MT(W.encryptedClientKey):null,T=W.keyExpiresInSeconds?Number(W.keyExpiresInSeconds)*1E3+(0,g.u)():null;M&&b&&T&&(this.Z=new Nhl(M,b,T),g.t(this,this.Z));W.onesieUstreamerConfig&&(this.onesieUstreamerConfig=MT(W.onesieUstreamerConfig)||void 0);this.baseUrl=W.baseUrl}}};var fLg=class extends g.gz{constructor(){super();this.values={};this.s_={};this.V={};this.B=this.Z=0;this.A=new g.d9(()=>{KdP(this)},1E4); g.t(this,this.A)}};var Rvy="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(" "),LdQ={kH:"caoe",U0:"capsv",cq:"cbrand",rL:"cbr",M0:"cbrver",Wq:"cchip",E6:"ccappver",n$:"ccrv",FU:"cfrmver",DQ:"c",YP:"cver",Gj:"ctheme",JQ:"cplayer",O9:"cmodel",VX:"cnetwork",fX:"cos",OS_VERSION:"cosver",wJ:"cplatform",SYY:"crqyear"},r4P=class extends g.gz{constructor(M,W,b,T){super();this.webPlayerContextConfig=W; this.G4=T;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.q1=this.bV=this.A5=this.S6=this.userDisplayName=this.userDisplayImage=this.Px="";this.Z={};this.OY={};this.controlsType="0";this.kL=NaN;this.wK=!1;this.p7=(0,g.u)();this.RV=this.XX=0;this.YX=this.qA=!1;this.Vp=!0;this.preferGapless=this.eI=this.k_=this.B=this.GY=!1;this.Sw=[];this.GN=!1;this.Mh=0;M=M?g.c$(M):{};W&&W.csiPageType&&(this.csiPageType=W.csiPageType);W&&W.csiServiceName&&(this.csiServiceName=W.csiServiceName);W&&W.preferGapless&& (this.preferGapless=W.preferGapless);this.experiments=new J4G(W?W.serializedExperimentIds:M.fexp,W?W.serializedExperimentFlags:M.fflags,W??{});this.forcedExperiments=W?W.serializedForcedExperimentIds:HV("",M.forced_experiments)||void 0;this.cspNonce=W?.cspNonce?W.cspNonce:HV("",M.csp_nonce);this.j("web_player_deprecated_uvr_killswitch");try{var q=document.location.toString()}catch(E){q=""}this.m$=q;this.ancestorOrigins=(T=window.location.ancestorOrigins)?Array.from(T):[];this.A=Zf(!1,W?W.isEmbed: M.is_embed);if(W&&W.device){if(T=W.device,T.androidOsExperience&&(this.Z.caoe=`${T.androidOsExperience}`),T.androidPlayServicesVersion&&(this.Z.capsv=`${T.androidPlayServicesVersion}`),T.brand&&(this.Z.cbrand=T.brand),T.browser&&(this.Z.cbr=T.browser),T.browserVersion&&(this.Z.cbrver=T.browserVersion),T.cobaltReleaseVehicle&&(this.Z.ccrv=`${T.cobaltReleaseVehicle}`),this.Z.c=T.interfaceName||"WEB",this.Z.cver=T.interfaceVersion||"html5",T.interfaceTheme&&(this.Z.ctheme=T.interfaceTheme),this.Z.cplayer= T.interfacePlayerType||"UNIPLAYER",T.model&&(this.Z.cmodel=T.model),T.network&&(this.Z.cnetwork=T.network),T.os&&(this.Z.cos=T.os),T.osVersion&&(this.Z.cosver=T.osVersion),T.platform&&(this.Z.cplatform=T.platform),q=cR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),q==="all"||q==="once")T.chipset&&(this.OY.cchip=T.chipset),T.cobaltAppVersion&&(this.OY.ccappver=T.cobaltAppVersion),T.firmwareVersion&&(this.OY.cfrmver=T.firmwareVersion),T.deviceYear&&(this.OY.crqyear=T.deviceYear)}else this.Z.c= M.c||"web",this.Z.cver=M.cver||"html5",this.Z.cplayer="UNIPLAYER";this.loaderUrl=W?this.A||vEs(this)&&W.loaderUrl?W.loaderUrl||"":this.m$:this.A||vEs(this)&&M.loaderUrl?HV("",M.loaderUrl):this.m$;this.A&&g.Uq("yt.embedded_player.embed_url",this.loaderUrl);this.xk=vV()||LU();this.D=ER(this.loaderUrl,yRl)||!1;T=this.loaderUrl;this.h6=av(ER(T,nYJ),T,!1,"Trusted Ad Domain URL");this.oT=Zf(!1,M.privembed);this.protocol=this.m$.indexOf("http:")===0?"http":"https";this.l3=wcJ((W?W.customBaseYoutubeUrl:M.BASE_YT_URL)|| "")||wcJ(this.m$)||`${this.protocol}://www.youtube.com/`;T=W?W.eventLabel:M.el;q="detailpage";T==="adunit"?q=this.A?"embedded":"detailpage":T==="embedded"||this.D?q=I$(q,T,s4t):T&&(q="embedded");this.Zs=q;hSl();T=null;q=W?W.playerStyle:M.ps;const X=g.ME(Rvy,q);!q||X&&!this.D||(T=q);this.playerStyle=T;this.C=g.ME(Rvy,this.playerStyle);this.houseBrandUserStatus=W?.houseBrandUserStatus;this.O=this.C&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.vL=!this.O;this.An=Zf(!1,M.disableplaybackui); this.disablePaidContentOverlay=Zf(!1,W?.disablePaidContentOverlay);this.disableSeek=Zf(!1,W?.disableSeek);this.enableSpeedOptions=W?.enableSpeedOptions||(Tn().defaultPlaybackRate?oh||g.mm||Rl?g.HR&&Lc("20")||g.XH&&Lc("4")||g.KL&&Lc("11")||CU():!(g.KL&&!g.Df("chrome")||oh||g.Df("android")||g.Df("silk")):!1);this.tE=Zf(!1,M.enable_faster_speeds);this.supportsVarispeedExtendedFeatures=W?.supportsVarispeedExtendedFeatures??!1;this.V=Zf(this.playerStyle==="blazer",M.is_html5_mobile_device||W&&W.isMobileDevice); this.Ri=this.j("mweb_allow_background_playback")?!1:this.V&&!this.C;this.BY=VA();this.xi=g.t2;this.F5=!!W?.embedsHostFlags?.optOutApiDeprecation;var G;W?W.hideInfo!==void 0&&(G=!W.hideInfo):G=M.showinfo;this.Ek=g.tP(this)&&!this.F5||Zf(!qT(this)&&!Xt(this)&&!this.C,G);this.X5=W?!!W.mobileIphoneSupportsInlinePlayback:Zf(!1,M.playsinline);G=this.V&&mj&&sn!=null&&sn>0&&sn<=2.3;T=W?W.useNativeControls:M.use_native_controls;this.W=g.tP(this)&&this.V;q=this.V&&!this.W;T=g.bb(this)||!G&&Zf(q,T)?"3":"1"; this.disableOrganicUi=!!W?.disableOrganicUi;q=W?W.controlsType:M.controls;this.controlsType=this.disableOrganicUi||q==="0"||q===0?"0":T;this.U1=this.V;this.controlsType==="1"&&(this.U1||I$("2",W?W.autohide:M.autohide,jsy));this.color=I$("red",W?W.progressBarColor:M.color,GBS);this.vV=this.controlsType==="3";this.vP=!this.A;this.lm=(T=!this.vP&&!Xt(this)&&!this.O&&!this.C&&!qT(this))&&!this.vV&&this.controlsType==="1";this.Y9=g.Th(this)&&T&&this.controlsType==="0"&&!this.lm&&!W?.embedsEnableEmc3ds; this.OE=this.cV=G;this.fv=(this.controlsType==="3"||this.V||Zf(!1,M.use_media_volume))&&!this.W;this.Ia=ks&&!g.tY(601)?!1:!0;this.U7=this.A||!1;this.sj=Xt(this)?"":(this.loaderUrl||M.post_message_origin||"").substring(0,128);this.widgetReferrer=HV("",W?W.widgetReferrer:M.widget_referrer);var V;W?W.disableCastApi&&(V=!1):V=M.enablecastapi;V=!this.D||Zf(!0,V);G=!0;W&&W.disableMdxCast&&(G=!1);this.vp=this.j("enable_cast_for_web_unplugged")&&g.WQ(this)&&G||g.dB(this)&&G||V&&G&&this.controlsType==="1"&& !this.V&&(Xt(this)||g.Th(this)||g.jz(this));this.Xn=!!window.document.pictureInPictureEnabled||Gn();V=W?!!W.supportsAutoplayOverride:Zf(!1,M.autoplayoverride);this.zm=!(this.V&&!g.tP(this))&&!g.Df("nintendo wiiu")||V;this.ek=(W?!!W.enableMutedAutoplay:Zf(!1,M.mutedautoplay))&&!1;V=(Xt(this)||qT(this))&&this.playerStyle==="blazer";this.u3=W?!!W.disableFullscreen:!Zf(!0,M.fs);G=g.Fi(g.Gh(this))&&g.tP(this);this.EY=!this.u3&&(V||g.OL())&&!G;this.po=this.j("html5_picture_in_picture_logging_onresize"); this.IG=g.TO(this.experiments,"html5_picture_in_picture_logging_onresize_ratio")??.33;this.bU=this.j("html5_picture_in_picture_blocking_onresize");this.kX=this.j("html5_picture_in_picture_blocking_ontimeupdate");this.Vu=this.j("html5_picture_in_picture_blocking_document_fullscreen");this.Ug=this.j("html5_picture_in_picture_blocking_standard_api");V=a$()&&Lc(58)&&!LU();G=$w||typeof MediaSource==="undefined";this.x_=this.j("uniplayer_block_pip")&&(V||G)||this.bU||this.kX||this.Ug;V=g.tP(this)&&!this.F5; var J;W?W.disableRelatedVideos!==void 0&&(J=!W.disableRelatedVideos):J=M.rel;this.WP=V||Zf(!this.C,J);this.UE=Zf(!1,W?W.enableContentOwnerRelatedVideos:M.co_rel);this.X=LU()&&sn>0&&sn<=4.4?"_top":"_blank";this.Ic=g.jz(this);this.nx=Zf(this.playerStyle==="blazer",W?W.enableCsiLogging:M.enablecsi);switch(this.playerStyle){case "blogger":J="bl";break;case "discover-ads":J="dd";break;case "gmail":J="gm";break;case "gac":J="ga";break;case "ads-preview":J="ap";break;case "ads-fe":J="adfe";break;case "books":J= "gb";break;case "docs":case "flix":J="gd";break;case "duo":J="gu";break;case "google-live":J="gl";break;case "google-one":J="go";break;case "play":case "play-ads":J="gp";break;case "chat":J="hc";break;case "hangouts-meet":J="hm";break;case "photos-edu":case "picasaweb":J="pw";break;default:J="yt"}this.gK=J;this.sY=HV("",W?W.authorizedUserIndex:M.authuser);this.d9=g.tP(this)&&(this.oT||!Xi()||this.xk);var B;W?W.disableWatchLater!==void 0&&(B=!W.disableWatchLater):B=M.showwatchlater;this.FT=((J=!this.d9)|| !!this.sY&&J)&&Zf(!this.O,this.D?B:void 0);this.Hr=W?W.isMobileDevice||!!W.disableKeyboardControls:Zf(!1,M.disablekb);this.loop=Zf(!1,M.loop);this.pageId=HV("",W?W.initialDelegatedSessionId:M.pageid);this.bS=Zf(!0,M.canplaylive);this.Kr=this.experiments.FX("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.Pi=Zf(!1,M.livemonitor);this.disableSharing=Zf(this.C,W?W.disableSharing:M.ss);(B=W&&this.j("fill_video_container_size_override_from_wpcc")?W.videoContainerOverride:M.video_container_override)? (J=B.split("x"),J.length!==2?B=null:(B=Number(J[0]),J=Number(J[1]),B=isNaN(B)||isNaN(J)||B*J<=0?null:new g.i0(B,J))):B=null;this.cH=B;this.mute=W?!!W.startMuted:Zf(!1,M.mute);this.storeUserVolume=!this.mute&&Zf(this.controlsType!=="0",W?W.storeUserVolume:M.store_user_volume);B=W?W.annotationsLoadPolicy:M.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:I$(void 0,B,lh);this.captionsLanguagePreference=W?W.captionsLanguagePreference||"":HV("",M.cc_lang_pref);B=I$(2,W?W.captionsLanguageLoadPolicy: M.cc_load_policy,lh);this.controlsType==="3"&&B===2&&(B=3);this.Fp=B;this.aT=W?W.hl||"en_US":HV("en_US",M.hl);this.region=W?W.contentRegion||"US":HV("US",M.cr);this.hostLanguage=W?W.hostLanguage||"en":HV("en",M.host_language);this.Zl=!this.oT&&Math.random()'}supportsGaplessAudio(){return g.XH&& !$w&&JA()>=74||g.HR&&g.tY(68)?!0:!1}supportsGaplessShorts(){return!this.j("html5_enable_short_gapless")||this.xk||g.R_?!1:!0}getPlayerType(){return this.Z.cplayer}jW(){return this.k_}yZ(){return this.A&&this.j("embeds_enable_innertube_store")}},Nrs=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],mqP=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"], ZaG=[19];var rdG={["140"]:{numChannels:2},["141"]:{numChannels:2},["251"]:{audioSampleRate:48E3,numChannels:2},["774"]:{audioSampleRate:48E3,numChannels:2},["380"]:{numChannels:6},["328"]:{numChannels:6},["773"]:{}},fUS={["1"]:'video/mp4; codecs="av01.0.08M.08"',["1h"]:'video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',["1e"]:'video/mp4; codecs="av01.0.08M.08"',["9"]:'video/webm; codecs="vp9"',["("]:'video/webm; codecs="vp9"',["9h"]:'video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',h:'video/mp4; codecs="avc1.64001e"', H:'video/mp4; codecs="avc1.64001e"',o:'audio/webm; codecs="opus"',a:'audio/mp4; codecs="mp4a.40.2"',ah:'audio/mp4; codecs="mp4a.40.2"',mac3:'audio/mp4; codecs="ac-3"; channels=6',meac3:'audio/mp4; codecs="ec-3"; channels=6',i:'audio/mp4; codecs="iamf.001.001.Opus"'},Rxp={["337"]:{width:3840,height:2160,bitrate:3E7,fps:30},["336"]:{width:2560,height:1440,bitrate:15E6,fps:30},["335"]:{width:1920,height:1080,bitrate:75E5,fps:30},["702"]:{width:7680,height:4320,bitrate:4E7,fps:60},["701"]:{width:3840, height:2160,bitrate:2E7,fps:60},["700"]:{width:2560,height:1440,bitrate:1E7,fps:60},["412"]:{width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},["359"]:{width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},["411"]:{width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},["410"]:{width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},["409"]:{width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, ["360"]:{width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},["358"]:{width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},["357"]:{width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},["274"]:{width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},["315"]:{width:3840,height:2160,bitrate:2E7,fps:60},["308"]:{width:2560,height:1440,bitrate:1E7,fps:60},["303"]:{width:1920,height:1080,bitrate:5E6,fps:60},["302"]:{width:1280, height:720,bitrate:25E5,fps:60},["299"]:{width:1920,height:1080,bitrate:75E5,fps:60},["298"]:{width:1280,height:720,bitrate:35E5,fps:60},["571"]:{width:7680,height:4320,bitrate:3E7,fps:60},["401"]:{width:3840,height:2160,bitrate:15E6,fps:60},["400"]:{width:2560,height:1440,bitrate:75E5,fps:60},["399"]:{width:1920,height:1080,bitrate:2E6,fps:60},["398"]:{width:1280,height:720,bitrate:1E6,fps:60},["397"]:{width:854,height:480,bitrate:4E5,fps:30},["396"]:{width:640,height:360,bitrate:25E4,fps:30},["787"]:{width:1080, height:608,bitrate:2E5,fps:30},["788"]:{width:1080,height:608,bitrate:4E5,fps:30},["572"]:{width:7680,height:4320,bitrate:3E7,fps:60},["555"]:{width:3840,height:2160,bitrate:15E6,fps:60},["554"]:{width:2560,height:1440,bitrate:75E5,fps:60},["553"]:{width:1920,height:1080,bitrate:2E6,fps:60},["552"]:{width:1280,height:720,bitrate:1E6,fps:60},["551"]:{width:854,height:480,bitrate:4E5,fps:30},["550"]:{width:640,height:360,bitrate:25E4,fps:30},["313"]:{width:3840,height:2160,bitrate:8E6,fps:30},["271"]:{width:2560, height:1440,bitrate:4E6,fps:30},["248"]:{width:1920,height:1080,bitrate:2E6,fps:30},["247"]:{width:1280,height:720,bitrate:15E5,fps:30},["244"]:{width:854,height:480,bitrate:52E4,fps:30},["243"]:{width:640,height:360,bitrate:28E4,fps:30},["137"]:{width:1920,height:1080,bitrate:4E6,fps:30},["136"]:{width:1280,height:720,bitrate:3E6,fps:30},["135"]:{width:854,height:480,bitrate:1E6,fps:30},["385"]:{width:1920,height:1080,bitrate:6503313,fps:60},["376"]:{width:1280,height:720,bitrate:5706960,fps:60}, ["384"]:{width:1280,height:720,bitrate:3660979,fps:60},["225"]:{width:1280,height:720,bitrate:5805E3,fps:30},["224"]:{width:1280,height:720,bitrate:453E4,fps:30},["145"]:{width:1280,height:720,bitrate:2682052,fps:30}};var q2=class{constructor(M){this.Z=M}getInfo(){return this.Z}V(){return null}S(){var M=this.V();return M?(M=g.UX(M.Vc),Number(M.expire)):NaN}A(){}getHeight(){return this.Z.video.height}};var Fdy=class{constructor(M){this.itag=M.itag;this.url=M.url;this.codecs=M.codecs;this.width=M.width;this.height=M.height;this.fps=M.fps;this.bitrate=M.bitrate;this.V=M.audioItag?.split(",")||[];this.Ry=M.Ry;this.contentProtection=M.contentProtection||"";this.r9=M.r9;this.audioChannels=M.audioChannels;this.Z=""}};var oEL=class{constructor(M,W,b,T,q){this.B=M;this.V=W;this.S=b;this.cpn=T;this.C=q;this.A=0;this.Z=""}build(){Adt(this);const M=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],W={};a:if(this.Z)var b=this.Z;else{b="";for(var T of this.B)if(T.r9){if(T.r9.getIsDefault()){b=T.r9.getId();break a}b||(b=T.r9.getId())}}for(var q of this.B)if(this.C||!q.r9||q.r9.getId()===b)W[q.itag]||(W[q.itag]=[]),W[q.itag].push(q);for(var X of this.V)if(q=W[X.Z])for(var G of q){q=M;b=q.push;T="#EXT-X-MEDIA:TYPE=AUDIO,";let D= "YES";var V="audio";if(G.r9){V=G.r9;var J=V.getId().split(".")[0];J&&(T+=`LANGUAGE="${J}",`);(this.Z?this.Z===V.getId():V.getIsDefault())||(D="NO");V=V.getName()}J="";X!==null&&(J=X.itag.toString());J=HQ(this,G.url,J);T=T+`NAME="${V}",DEFAULT=${D},AUTOSELECT=YES,`+`GROUP-ID="${zxL(G,X)}",URI="${J}"`;b.call(q,T)}for(var B of this.S)X=xQq,X=(G=B.r9)?'#EXT-X-MEDIA:URI="'+HQ(this,B.url)+'",TYPE=SUBTITLES,GROUP-ID="'+X+'",LANGUAGE="'+G.getId()+'",NAME="'+G.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0, X&&M.push(X);B=this.S.length>0?xQq:void 0;for(const D of this.V)G=W[D.Z],G?.length>0&&(X=D,G=G[0],G=`#EXT-X-STREAM-INF:BANDWIDTH=${X.bitrate+G.bitrate},CODECS="${X.codecs},${G.codecs}",RESOLUTION=${X.width}x${X.height},AUDIO="${zxL(G,X)}",`+(B?'SUBTITLES="'+B+'",':"")+"CLOSED-CAPTIONS=NONE",X.fps>1&&(G+=`,FRAME-RATE=${X.fps}`),X.Ry&&(G+=`,VIDEO-RANGE=${X.Ry}`),M.push(G),M.push(HQ(this,D.url,"")));return M.join("\n")}},xQq="text";var cdQ=class extends q2{constructor(M,W,b){super(M);this.B=W;this.expiration=b;this.Vc=null}S(){return this.expiration}V(){if(!this.Vc||this.Vc.ST()){var M=this.B.build();M="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(M);this.Vc=new kk(M)}return this.Vc}};var lyP=class extends q2{constructor(M,W){super(M);this.B=W}V(){return new kk(this.B.WF())}A(){this.B=V_(this.B)}};var QRg=class extends q2{constructor(M,W){super(M);this.B=W}V(){return new kk(this.B)}};var wkt={PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM:"mrm.blocked",PLAYABILITY_ERROR_CODE_PERMISSION_DENIED:"auth",PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED:"embedder.identity.denied",PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER:"embedder.identity.missing.referrer"};var $iQ=class{constructor(M){if(M=M.commonConfig)this.url=M.url,this.urlQueryOverride=M.urlQueryOverride,M.ustreamerConfig&&(this.JU=MT(M.ustreamerConfig)||void 0)}};g.zh=class{constructor(M={}){this.languageCode=M.languageCode||"";this.languageName=M.languageName||null;this.kind=M.kind||"";this.name=M.name===void 0?null:M.name;this.displayName=M.displayName||null;this.id=M.id||null;this.Z=M.is_servable||!1;this.isTranslateable=M.is_translateable||!1;this.url=M.url||null;this.vssId=M.vss_id||"";this.isDefault=M.is_default||!1;this.translationLanguage=M.translationLanguage||null;this.xtags=M.xtags||"";this.captionId=M.captionId||""}getId(){return this.id}getName(){return this.name}isServable(){return this.Z}WF(){return this.url}getXtags(){return this.xtags}toString(){return this.languageCode+ ": "+g.RU(this)+" - "+this.vssId+" - "+(this.captionId||"")}equals(M){return M?this.toString()===M.toString():!1}S2(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)}};var bms={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},TlL={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},q8J=/^(\d*)_((\d*)_?(\d*))$/;var jNp={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},GZQ={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var J3L={ALWAYS:1,BY_REQUEST:3,UNKNOWN:void 0},zot={MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN:"UNKNOWN",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL:"NORMAL",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW:"LOW",MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW:"ULTRALOW"};var $LJ; $LJ=function(M){const W=Object.keys(M),b={};for(let X=0;X{const b={};W=[g.c8(W.objectStore("index"),{},T=>{b[T.cursor.key]=T.getValue();return g.Qn(T)}), F2y(W.objectStore("media")),F2y(W.objectStore("captions"))];return g.i1.all(W).then(([,T,q])=>({index:b,media:$gJ(T||[]),captions:q}))})});var FEy=class extends g.b9{constructor(){super();this.Z=null;this.B=new gls;this.Z=null;this.C=new Set;this.crossOrigin=""}vY(){this.Z&&(this.Z=this.Z.onload=null);super.vY()}};g.X2=class{constructor(M,W,b,T){this.level=M;this.gK=W;this.loaded=new Set;this.level=M;this.gK=W;M=b.split("#");this.width=Math.floor(Number(M[0]));this.height=Math.floor(Number(M[1]));this.frameCount=Math.floor(Number(M[2]));this.columns=Math.floor(Number(M[3]));this.rows=Math.floor(Number(M[4]));this.Z=Math.floor(Number(M[5]));this.D=M[6];this.signature=M[7];this.videoLength=T}getHeight(){return this.height}S(){return this.frameCount}isDefault(){return this.D.indexOf("default")!==-1}isLoaded(M){return this.loaded.has(M)}WF(M){let W= this.gK;W=W.replace("$N",this.D);W=W.replace("$L",this.level.toString());W=W.replace("$M",M.toString());this.signature&&(W=g.JM(W,{sigh:this.signature}));return UR(W)}A(M){const W=this.S()-1;return g.fy(this.Z===0?Math.round(M*this.frameCount/this.videoLength):Math.round(M*1E3/this.Z),0,W)}V(){return this.frameCount-1}C(){return this.frameCount?0:-1}W(){}};g.X2.prototype.X=Ma(5);var js=class extends FEy{constructor(M,W,b=!1,T=!1){super();this.isLive=b;this.W=!!T;this.levels=this.V(M,W);this.A=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}V(M,W){const b=[];M=M.split("|");const T=M[0];for(let q=1;qT-W?-1:M}V(){return this.B.Y_()}C(){return this.B.UJ()}W(M){this.B=M}};var hvG=class extends js{constructor(M,W,b,T=!1){super(M,0,W,!!T);for(M=0;M{this.setData(b)}, vv:()=>{this.vv()}, wg:b=>{this.wg(b)}}; this.OY=this.j("web_new_autonav_countdown");this.XP=this.j("web_new_big_thumbnail_endscreen");this.Vz.aZ&&(this.O=this.Vz.aZ);this.setData(W);this.S6=new Yza;g.t(this,this.S6)}setData(M){M=M||{};var W=M.errordetail;W!=null&&(this.errorDetail=W);W=M.errorcode;W!=null?this.errorCode=W:M.status==="fail"&&(this.errorCode="auth");W=M.reason;W!=null&&(this.errorReason=W);W=M.subreason;W!=null&&(this.n4=W);this.clientPlaybackNonce||(this.clientPlaybackNonce=M.cpn??(this.Vz.jW()?"r"+g.Ja(15):g.Ja(16)),this.Ug?.clear()); this.Pi=Zf(this.Vz.Pi,M.livemonitor);yZs(this,M);if(W=M.raw_player_response)this.Oc=W;else{var b=M.player_response;b&&(W=JSON.parse(b))}W&&(this.playerResponse=W);if(this.playerResponse){(W=this.playerResponse.annotations)&&Bll(this,W);(W=this.playerResponse.attestation)&&DiQ(this,W);if(W=this.playerResponse.cotn)this.cotn=W;(W=this.playerResponse.heartbeatParams)&&y3G(this,W);(W=this.playerResponse.messages)&&KkL(this,W);(W=this.playerResponse.overlay)&&tFQ(this,W);if(W=this.playerResponse.playabilityStatus)Zms(this, W),(b=W.errorScreen)&&A3p(this,b);(b=this.playerResponse.playbackTracking)&&Nls(this,b,M);var T=this.playerResponse.playerCueRanges;T&&T.length>0&&(this.cueRanges=T);(T=this.playerResponse.playerCueRangeSet)&&g.BM(this,T);T=N$q(this.playerResponse.adPlacements);b&&b.promotedPlaybackTracking&&T&&g.lR(new g.EF("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(T||Aet(this.playerResponse.adSlots))this.BT=!0;(b=this.playerResponse.playerAds)&&HmL(this,b,M);(b=this.playerResponse.playerConfig)&& RoL(this,b);(T=this.playerResponse.streamingData)&&r3y(this,T,b||null);if(T=this.playerResponse.trackingParams)this.O=T;if(T=this.playerResponse.videoDetails)Fkp(this,T,M),uRG(this,T,b||null,M),b=T.isPrivate,b!==void 0&&(this.isPrivate=Zf(this.isPrivate,b));W&&nrJ(this,W,T||null);(W=this.playerResponse.interstitialPods)&&kZp(this,W);this.B$&&this.eventId&&(this.B$=Kg(this.B$,{ei:this.eventId}));(W=this.playerResponse.captions)&&W.playerCaptionsTracklistRenderer&&ErL(this,W.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Pv=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&vrL(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);this.compositeLiveIngestionOffsetToken=this.playerResponse.playbackTracking?.compositeLiveIngestionOffsetToken; this.compositeLiveStatusToken=this.playerResponse.playbackTracking?.compositeLiveStatusToken;this.j("html5_fill_default_mosaic_audio_track_id")&&this.RV()&&(this.Vz.jT=HXP(this));W=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.minimumPlaybackRate;b=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.maximumPlaybackRate;W&&b&&(this.fg=W/100,this.Mf=b/100);this.j("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(q=> {g.z(q,g.ub)?.signal==="INIT_ATT_SERVICE"&&(this.jj=!0)})}yL(this,M); L8P(this,M);M.queue_info&&(this.queueInfo=M.queue_info);W=M.hlsdvr;W!=null&&(this.allowLiveDvr=Number(W)===1?Q3()?!0:KU&&O1<5?!1:!0:!1);this.adQueryId=M.ad_query_id||null;this.yn||(this.yn=M.encoded_ad_safety_reason||null);this.KZ=Zf(this.KZ,M.infringe||M.muted);this.pQ=M.authkey;this.WX=M.authuser;this.mutedAutoplay=Zf(this.mutedAutoplay,M&&M.playmuted);this.mutedAutoplayDurationMode=NG(this.mutedAutoplayDurationMode,M&&M.muted_autoplay_duration_mode);this.yI=Zf(this.yI,M&&M.mutedautoplay);if(W= M.length_seconds)this.lengthSeconds=typeof W==="string"?DZ(W):W;this.isAd()||this.U1||!g.Fi(g.Gh(this.Vz))?this.endSeconds=NG(this.endSeconds,this.T3||M.end||M.endSeconds):fWg(this,g.Gh(this.Vz),this.lengthSeconds);this.O=HV(this.O,M.itct);this.Xn=Zf(this.Xn,M.is_live_destination);this.isLivePlayback=Zf(this.isLivePlayback,M.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Me();M.isUpcoming&&(this.isUpcoming=Zf(this.isUpcoming,M.isUpcoming));this.f7=Zf(this.f7,M.post_live_playback); this.Lx&&(this.f7=!1);this.isMdxPlayback=Zf(this.isMdxPlayback,M.mdx);if(W=M.mdx_control_mode)this.mdxControlMode=typeof W==="number"?W:DZ(W);this.isInlinePlaybackNoAd=Zf(this.isInlinePlaybackNoAd,M.is_inline_playback_no_ad);this.jT=NG(this.jT,M.reload_count);this.reloadReason=HV(this.reloadReason,M.reload_reason);this.Ep=Zf(this.Ep,M.show_content_thumbnail);this.cycToken=M.cyc||null;W=Ft(M);Object.keys(W).length>0&&(this.DU=W);this.Zs=HV(this.Zs,M.vvt);this.mdxEnvironment=HV(this.mdxEnvironment, M.mdx_environment);M.source_container_playlist_id&&(this.sourceContainerPlaylistId=M.source_container_playlist_id);M.serialized_mdx_metadata&&(this.serializedMdxMetadata=M.serialized_mdx_metadata);this.K5=M.osig;this.eventId||(this.eventId=M.eventid);this.osid||(this.osid=M.osid);this.playlistId=HV(this.playlistId,M.list);M.index&&(this.playlistIndex=this.playlistIndex===void 0?NG(0,M.index):NG(this.playlistIndex,M.index));this.JO=M.pyv_view_beacon_url;this.E$=M.pyv_quartile25_beacon_url;this.FF= M.pyv_quartile50_beacon_url;this.a7=M.pyv_quartile75_beacon_url;this.Yn=M.pyv_quartile100_beacon_url;W=M.session_data;!this.bx&&W&&(this.bx=EX(W,"&").feature);this.isFling=NG(this.isFling?1:0,M.is_fling)===1;this.vnd=NG(this.vnd,M.vnd);this.forceAdsUrl=HV(this.forceAdsUrl,M.force_ads_url);this.Qs=HV(this.Qs,M.ctrl);this.m5=HV(this.m5,M.ytr);this.tW=M.ytrcc;this.U$=M.ytrexp;this.RQ=M.ytrext;this.XX=HV(this.XX,M.adformat);this.AV=HV(this.AV,M.attrib);this.slotPosition=NG(this.slotPosition,M.slot_pos); this.breakType=M.break_type;this.xl=Zf(this.xl,M.ssrt);this.videoId=R$(M)||this.videoId;this.ll=HV(this.ll,M.vss_credentials_token);this.C4=HV(this.C4,M.vss_credentials_token_type);this.PV=Zf(this.PV,M.audio_only);this.L3=Zf(this.L3,M.aac_high);this.Mh=Zf(this.Mh,M.prefer_low_quality_audio);this.AS=Zf(this.AS,M.uncap_inline_quality);this.j("html5_enable_qoe_cat_list")?M.qoe_cat&&(this.DZ=this.DZ.concat(M.qoe_cat.split(","))):this.Sw=HV(this.Sw,M.qoe_cat);this.Dc=Zf(this.Dc,M.download_media);this.W= RMS(this,M.prefer_gapless);iiQ(this.playerResponse)&&this.jG.push("ad");if(W=M.adaptive_fmts)this.adaptiveFormats=W,this.dK("adpfmts",{},!0);if(W=M.allow_embed)this.allowEmbed=Number(W)===1;if(W=M.backgroundable)this.backgroundable=Number(W)===1;if(W=M.autonav)this.isAutonav=Number(W)===1;if(W=M.autoplay)this.eO=this.FQ=Number(W)===1;if(W=M.iv_load_policy)this.annotationsLoadPolicy=I$(this.annotationsLoadPolicy,W,lh);if(W=M.cc_lang_pref)this.captionsLanguagePreference=HV(W,this.captionsLanguagePreference); if(W=M.cc_load_policy)this.lm=I$(this.lm,W,lh);this.deviceCaptionsOn=M.device_captions_on??void 0;this.XI=M.device_captions_lang_pref??"";this.pZ=M.viewer_selected_caption_langs??[];if(W=M.cached_load)this.jm=Zf(this.jm,W);if(M.dash==="0"||M.dash===0||M.dash===!1)this.Ri=!0;if(W=M.dashmpd)this.oa=g.JM(W,{cpn:this.clientPlaybackNonce});if(W=M.delay)this.gr=DZ(W);W=this.T3||M.end;if(this.wK?W!=null:W!=void 0)this.clipEnd=NG(this.clipEnd,W);if(W=M.fmt_list)this.h7=W;M.heartbeat_preroll&&this.jG.push("heartbeat"); A4Q&&(this.cH=-Math.floor(Math.random()*10),this.xL=-Math.floor(Math.random()*40));if(W=M.is_listed)this.isListed=Zf(this.isListed,W);if(W=M.is_private)this.isPrivate=Zf(this.isPrivate,W);if(W=M.is_dni)this.uN=Zf(this.uN,W);if(W=M.dni_color)this.Rb=HV(this.Rb,W);if(W=M.pipable)this.pipable=Zf(this.pipable,W);this.xQ=(this.zL=this.pipable&&this.Vz.Xn)&&!this.Vz.showMiniplayerButton;if(W=M.paid_content_overlay_duration_ms)this.paidContentOverlayDurationMs=DZ(W);if(W=M.paid_content_overlay_text)this.paidContentOverlayText= W;if(W=M.url_encoded_fmt_stream_map)this.Tt=W;if(W=M.hls_formats)this.hlsFormats=W;if(W=M.hlsvp)this.hlsvp=W;if(W=M.live_start_walltime)this.iX=typeof W==="number"?W:DZ(W);if(W=M.live_manifest_duration)this.JX=typeof W==="number"?W:DZ(W);if(W=M.player_params)this.playerParams=W;if(W=M.partnerid)this.partnerId=NG(this.partnerId,W);if(W=M.probe_url)this.probeUrl=UR(g.JM(W,{cpn:this.clientPlaybackNonce}));(W=M.pyv_billable_url)&&MOa(W)&&(this.gg=W);(W=M.pyv_conv_url)&&MOa(W)&&(this.GH=W);tTq(this,M); this.startSeconds>0?this.j("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Pv||this.i9||M.start||M.startSeconds)&&this.dK("lss",{css:this.startSeconds,pcss:this.Pv,iss:this.i9,ps:M.start||void 0,pss:M.startSeconds||void 0}):(this.startSeconds=NG(this.startSeconds,this.Pv||this.i9||M.start||M.startSeconds),this.j("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.dK("lsss",{css:this.startSeconds,pcss:this.Pv,iss:this.i9,ps:M.start||void 0,pss:M.startSeconds||void 0}), this.Lp=this.startSeconds);this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0||(W=M.live_utc_start,W!=null?this.liveUtcStartSeconds=Number(W):rZs(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds));this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0||!(W=M.utc_start_millis)||(this.liveUtcStartSeconds=Number(W)*.001);if(W=M.stream_time_start_millis)this.G5=Number(W)*.001;W=this.i9||M.start;(this.wK?W==null||Number(M.resume)===1:W==void 0||M.resume=="1")||this.isLivePlayback||(this.clipStart= NG(this.clipStart,W));if(W=M.url_encoded_third_party_media)this.ek=yr(W);if(W=M.ypc_offer_button_formatted_text)b=JSON.parse(W),this.lz=b!=null?b:null,this.yT=W;if(W=M.ypc_offer_button_text)this.rh=W;if(W=M.ypc_offer_description)this.I7=W;if(W=M.ypc_offer_headline)this.xR=W;if(W=M.ypc_full_video_message)this.pg=W;if(W=M.ypc_offer_id)this.TL=W;if(W=M.ypc_buy_url)this.lX=W;if(W=M.ypc_item_thumbnail)this.I4=W;if(W=M.ypc_item_title)this.lx=W;if(W=M.ypc_item_url)this.c5=W;if(W=M.ypc_vid)this.rd=W;M.ypc_overlay_timeout&& (this.cT=Number(M.ypc_overlay_timeout));if(W=M.ypc_trailer_player_vars)this.Vg=ng(W);if(W=M.ypc_original_itct)this.jS=W;this.YJ=HV(this.YJ,M.ucid);this.X5=M.storyboard_spec||null;this.G4=M.live_storyboard_spec||null;this.lc=M.iv_endscreen_url||null;this.n_=Zf(this.n_,M.iv3_module);this.al=Zf(this.al,M.ypc_module);this.rp=Zf(this.rp,M.ypc_clickwrap_module);this.al&&this.jG.push("ypc");this.rp&&this.jG.push("ypcRentalActivation");this.ix={video_id:M.video_id,eventid:M.eventid,cbrand:M.cbrand,cbr:M.cbr, cbrver:M.cbrver,c:M.c,cver:M.cver,ctheme:M.ctheme,cplayer:M.cplayer,cmodel:M.cmodel,cnetwork:M.cnetwork,cos:M.cos,cosver:M.cosver,cplatform:M.cplatform,user_age:M.user_age,user_display_image:M.user_display_image,user_display_name:M.user_display_name,user_gender:M.user_gender,csi_page_type:M.csi_page_type,csi_service_name:M.csi_service_name,enablecsi:M.enablecsi,enabled_engage_types:M.enabled_engage_types};ZXs(this,M);if(W=M.cotn)this.cotn=W;xgy(this)?ke(this)&&(this.isLivePlayback&&this.oa&&(this.s2= !0),this.qw&&(this.vp=!0)):eMG(this)?this.s2=!0:cZL(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&R9(this):this.oa&&(this.Vz.gK==="yt"&&this.Me()&&this.j("drm_manifestless_unplugged")&&this.j("html5_deprecate_manifestful_fallback")?this.dK("deprecateMflFallback",{}):this.s2=!0);if(W=M.adpings)this.Fp=W?ng(W):null;if(W=M.feature)this.Ue=W;if(W=M.referrer)this.referrer=W;this.clientScreenNonce=HV(this.clientScreenNonce,M.csn);this.tf=NG(this.tf,M.root_ve_type);this.Uc=NG(this.Uc, M.kids_age_up_mode);this.wK||M.kids_app_info==void 0||(this.kidsAppInfo=M.kids_app_info);this.wK&&M.kids_app_info!=null&&(this.kidsAppInfo=M.kids_app_info);this.PS=Zf(this.PS,M.upg_content_filter_mode);this.unpluggedFilterModeType=NG(this.unpluggedFilterModeType,M.unplugged_filter_mode_type);if(W=M.unplugged_location_info)this.d9=W;if(W=M.unplugged_partner_opt_out)this.qA=HV("",W);this.mw=Zf(this.mw,M.disable_watch_next);this.bS=HV(this.bS,M.internal_ip_override);this.xn=!!M.is_yto_interstitial;this.interstitials.length&& this.jG.push("playableSequences");if(W=M.Pc)this.Pc=W;this.gK=HV(this.gK,M.csi_timer);M.watchUrl&&(this.watchUrl=M.watchUrl);W=M.watch_endpoint;this.j("html5_attach_watch_endpoint_ustreamer_config")&&W&&MFQ(this,W);W?.ustreamerConfig&&(this.JU=MT(W.ustreamerConfig));if(W=W?.loggingContext?.qoeLoggingContext?.serializedContextData)this.wh=W;g.tP(this.Vz)&&this.Vz.eI&&(this.embedsRct=HV(this.embedsRct,M.rct),this.embedsRctn=HV(this.embedsRctn,M.rctn));M.embed_config&&(this.eI=M.embed_config);this.fv= this.fv||!!M.pause_at_start;M.default_active_source_video_id&&(this.defaultActiveSourceVideoId=M.default_active_source_video_id);this.x_=this.x_||!!M.live_preload}po(){return this.autoplaySwitchButtonRenderer?.enabled!==void 0}G(){return this.Vz}j(M){return this.Vz.j(M)}jO(){return!this.isLivePlayback||this.allowLiveDvr}hasSupportedAudio51Tracks(){return!!this.Ds?.Ds}getUserAudio51Preference(){let M=1;U1(this.Vz)&&this.j("html5_ytv_surround_toggle_default_off")?M=0:nL(this.Vz)&&this.isLivePlayback&& this.Xy()&&(M=0);return g.MZ("yt-player-audio51")??M}Vl(){return this.playerResponse?.playerConfig?.compositeVideoConfig?.sourceConfigs??[]}SN(){this.ST()||(this.Z.V||this.Z.unsubscribe("refresh",this.SN,this),this.wk(-1))}wk(M){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var W=this.Z.Lp(this.X1);if(W.length>0){for(const b of W)b.startSecs=Math.max(b.startSecs,this.XD()),this.j("html5_cuepoint_identifier_logging")&&b.event==="start"&&this.dK("cuepoint",{pubCue:b.identifier,segNum:M}); this.publish("cuepointupdated",W,M);this.X1+=W.length;if(R9(this)&&this.Vz.jW())for(const b of W)this.dK("cuepoint",{segNum:M,event:b.event,startSecs:b.startSecs,id:b.identifier.slice(-16)}),b.event==="start"&&(W=b.startSecs,this.Zl.start=this.vP,this.Zl.end=W+3)}}}vv(){this.ST()||(this.loading=!1,this.publish("dataloaded"))}Xy(){return this.NW!==void 0?this.NW:this.NW=!!this.contentProtection||!!this.Z&&this.Z.A()}S$(M){if(this.ST())return $s();this.bV=this.BY=this.B=null;iY(this,"html5_high_res_logging_always")&& (this.Vz.k_=!0);return svP(this,M).then(void 0,()=>poa(this,M)).then(void 0,()=>YRq(this)).then(void 0,()=>MAg(this))}wg(M){this.B=M; woG(this,this.B.getAvailableAudioTracks());if(this.B)for(var W of this.B.videoInfos)M=W.containerType,M!==0&&(this.RN[M]=W.id);W=this.getAvailableAudioTracks();W=W.concat(this.p7);for(M=0;M0)return this.B.getAvailableAudioTracks();if(this.A5)return this.A5;if(this.cV)return this.cV}return[]}getAudioTrack(){if(this.A&&!this.A.B()){var M=g.pt(this.getAvailableAudioTracks(),W=>W.id===this.A.id); if(!M&&this.A.r9?.id){const W=this.A.r9.id;M=g.pt(this.getAvailableAudioTracks(),b=>b.r9.id===W)}return M||this.p7}if(this.A5){if(!this.hD)for(M of this.A5)if(M.r9.getIsDefault()){this.hD=M; break}return this.hD||this.p7}return this.p7}getPlayerResponse(){return this.playerResponse}getWatchNextResponse(){return this.sY}getReelItemWatchResponse(){return this.reelItemWatchResponse}getHeartbeatResponse(){return this.IG}Kx(){return this.watchUrl?this.watchUrl:this.Vz.getVideoUrl(this.videoId)}LV(){return!!this.Z&&(mVL(this.Z)||LKt(this.Z)||lrP(this.Z))}Ih(){const M=g.I9(this),W=this.G().S,b=NT("243");return b?Kb(M,b,W,!0)===!0:!1}Ic(){return this.j("enable_wn_infocards")}q1(){return(this.Ic()? this.sY?.cards?.cardCollectionRenderer:this.playerResponse?.cards?.cardCollectionRenderer)||null}getEmbeddedPlayerResponse(){return this.xj}OX(){return(this.eventLabel||this.Vz.Zs)==="shortspage"}isAd(){return this.BC||!!this.adFormat}C(){return this.oauthToken||this.Vz.q1}isDaiEnabled(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}FD(){return this.isDaiEnabled()&&this.enableServerStitchedDai&& !!this.playerResponse?.playerConfig?.daiConfig?.ssaEnabledPlayback}RV(){return!!this.playerResponse?.compositePlayabilityStatus}OE(){return!this.RV()}vS(){return this.RS}rC(){return this.al||this.k_}cP(){if(!this.Z||!this.V||!this.A)return!1;var M=this.Z.Z;const W=!!M[this.V.id]&&hz(43,M[this.V.id].Vc.Z);M=!!M[this.A.id]&&hz(27,M[this.A.id].Vc.Z);return(this.V.itag==="0"||W)&&M}Ip(){return this.fetchType==="onesie"}Sf(){return iY(this,"html5_samsung_vp9_live")}dK(M,W,b){this.publish("ctmp",M,W,b)}e3(M, W,b){this.publish("ctmpstr",M,W,b)}hasProgressBarBoundaries(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}yz(){return!(!this.isLivePlayback||!this.hasProgressBarBoundaries())}X(){return this.aZ||this.suggestions?.[0]||null}getGetAdBreakContext(M=NaN,W=NaN){const b={isSabr:Sz(this)};var T=this.getHeartbeatResponse()?.adBreakHeartbeatParams;T&&(b.adBreakHeartbeatParams=T);if(this.j("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Z&&!isNaN(M)&&!isNaN(W)){W= M-W;for(var q in this.Z.Z){T=this.Z.Z[q];if(!T.info.OO()&&!T.info.s1())continue;T=T.index;if(!T.isLoaded())continue;q=T.UX(W);T=T.A1(q)+W-T.getStartTime(q);this.dK("gabc",{t:M.toFixed(3),mt:W.toFixed(3),sg:q,igt:T.toFixed(3)});b.livePlaybackPosition={utcTimeMillis:""+(T*1E3).toFixed(0)};break}}return b}isEmbedsShortsMode(M,W){return!g.tP(this.Vz)||(this.Vz.yz||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||W?!1:this.j("embeds_enable_shorts")?!!this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible: !!(this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible&&M.width<=M.height)}XF(){return this.W||this.j("web_player_media_session_infinity")&&this.isLivePlayback}vY(){super.vY();this.Fp=null;delete this.PQ;delete this.accountLinkingConfig;delete this.Z;this.B=this.IG=this.playerResponse=this.sY=null;this.Tt=this.adaptiveFormats="";delete this.botguardData;this.lV=this.suggestions=this.aZ=null;this.sabrContextUpdates.clear()}};A4Q=!0;var DhQ={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},E0s={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},V2Q={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},EBJ={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"},yEP={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},nBJ={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"},JNQ={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"};var zvP=class extends g.gz{constructor(M,W){super();this.app=M;this.state=W}handleExternalCall(M,W,b){const T=this.state.S[M],q=this.state.C[M];let X=T;if(q)if(b&&ER(b,ULP))X=q;else if(!T)throw Error(`API call from an untrusted origin: "${b}"`);this.logApiCall(M,b);if(X){a:{for(const G of W)if(String(G).includes("javascript:")){b=!0;break a}b=!1}b&&g.lR(Error(`Dangerous call to "${M}" with [${W}].`));return X.apply(this,W)}throw Error(`Unknown API method: "${M}".`);}logApiCall(M,W,b){const T=this.app.G(); T.Zl&&!this.state.X.has(M)&&(this.state.X.add(M),g.V9("webPlayerApiCalled",{callerUrl:T.loaderUrl,methodName:M,origin:W||void 0,playerStyle:T.playerStyle||void 0,embeddedPlayerMode:T.yz,errorCode:b}))}publish(M,...W){this.state.B.publish(M,...W);if(M==="videodatachange"||M==="resize"||M==="cardstatechange")this.state.V.publish(M,...W),this.state.A.publish(M,...W)}j(M){return this.app.G().j(M)}vY(){if(this.state.element){var M=this.state.element,W;for(W in this.state.Z)this.state.Z.hasOwnProperty(W)&& (M[W]=null);this.state.element=null}super.vY()}};var Go=class extends g.ls{constructor(){super();this.S=new Map}publish(M,...W){if(this.S.has(M))return this.S.get(M).push(W),!0;let b=!1;try{for(W=[W],this.S.set(M,W);W.length;)b=super.publish(M,...W.shift())}finally{this.S.delete(M)}return b}};var uks=class extends g.gz{constructor(){super(...arguments);this.element=null;this.W=new Set;this.S={};this.C={};this.Z={};this.X=new Set;this.B=new Go;this.V=new Go;this.A=new Go;this.D=new Go}vY(){this.D.dispose();this.A.dispose();this.V.dispose();this.B.dispose();this.X=this.Z=this.C=this.S=this.W=void 0}};var vBP=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));var SZq=class extends zvP{getApiInterface(){return Array.from(this.state.W)}gK(M,W){this.state.D.subscribe(M,W)}GN(M,W){this.state.D.unsubscribe(M,W)}getPlayerState(M){return w0S(this.app,M)}XX(){return w0S(this.app)}zm(M,W,b){ne(this)&&(gy(this.app,!0,1),sf(this.app,M,W,b,1))}getCurrentTime(M,W,b){M=ZWL(M,W,b);W=M.playerType;b=this.getPlayerState(W);return this.app.getAppState()===2&&b===5?this.app.getVideoData()?.startSeconds||0:this.j("web_player_max_seekable_on_ended")&&b===0?Yv(this.app,W):this.app.getCurrentTime(M)}xk(){return this.app.getCurrentTime({playerType:1})}wK(){const M= this.app.A1(1);return isNaN(M)?this.getCurrentTime(1):M}Lp(){return this.app.getDuration({playerType:1})}W_(M,W){M=g.fy(Math.floor(M),0,100);isFinite(M)&&W4(this.app,{volume:M,muted:this.isMuted()},W)}q1(M){this.W_(M,!1)}qR(M){W4(this.app,{muted:!0,volume:this.getVolume()},M)}A5(){this.qR(!1)}q_(M){W4(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},M)}vp(){EA(this.app)||this.q_(!1)}getPlayerMode(){const M={};this.app.getVideoData().uN&&(M.pfp={enableIma:this.app.Zy().allowImaMonetization, autoplay:wF(this.app.Zy()),mutedAutoplay:this.app.Zy().mutedAutoplay});return M}r8(){const M=this.app.getPresentingPlayerType();if(M===2&&!this.app.UO()){var W=zy(this.app.lk());if(!(djG(W)||g.tP(this.app.G())&&this.app.Jn().getPlayerState().Z(1024))||y$(W))return}(W=this.app.wW().Rw)?W.playVideo():this.app.playVideo(M)}m$(){gy(this.app,!0,1);this.r8()}pauseVideo(M){const W=this.app.getPresentingPlayerType();if(W!==2||this.app.UO()||djG(zy(this.app.lk()))){var b=this.app.wW().Rw;b?b.pauseVideo(): this.app.pauseVideo(W,M)}}RV(){var M=this.app;let W=!1;M.uV.vP&&(M.o0.publish("pageTransition"),W=!0);M.stopVideo(W)}clearVideo(){}getAvailablePlaybackRates(){var M=this.app.G();if(M.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(M.A?M.ancestorOrigins[0]:window.location.origin)||M.tE)return riS;M=this.app.getVideoData();const W=M.fg,b=M.Mf;return xUp.filter(T=>T>=W&&T<=b)}return[1]}getPlaybackQuality(M){return(M=DA(this.app, {playerType:M}))?M.getPlaybackQuality():"unknown"}S6(){}getAvailableQualityLevels(M){return(M=DA(this.app,{playerType:M}))?(M=g.dG(M.a8(),W=>W.quality),M.length&&(M[0]==="auto"&&M.shift(),M=M.concat(["auto"])),M):[]}lV(){return this.getAvailableQualityLevels(1)}d9(){return this.A()}vP(){return 1}getVideoLoadedFraction(M){return this.app.getVideoLoadedFraction(M)}A(){return this.getVideoLoadedFraction()}cP(){return 0}getSize(){const M=this.app.qe().getPlayerSize(); return{width:M.width,height:M.height}}setSize(){this.app.qe().resize()}loadVideoById(M,W,b,T){if(!M)return!1;M=Bf(M,W,b);return this.app.loadVideoByPlayerVars(M,T)}Y9(M,W,b){M=this.loadVideoById(M,W,b,1);gy(this.app,M,1)}cueVideoById(M,W,b,T){M=Bf(M,W,b);this.app.cueVideoByPlayerVars(M,T)}O(M,W,b){this.cueVideoById(M,W,b,1)}loadVideoByUrl(M,W,b,T){M=KhP(M,W,b);return this.app.loadVideoByPlayerVars(M,T)}s2(M,W,b){M=this.loadVideoByUrl(M,W,b,1);gy(this.app,M,1)}cueVideoByUrl(M,W,b,T){M=KhP(M,W,b);this.app.cueVideoByPlayerVars(M, T)}sY(M,W,b){this.cueVideoByUrl(M,W,b,1)}fv(){const M=this.app.G();if(M.O)return"";const W=this.app.Zy();let b=void 0;W.isLivePlayback||(b=Math.floor(this.app.getCurrentTime({playerType:1})));return M.getVideoUrl(W.videoId,this.getPlaylistId()||void 0,b)}MK(){return this.app.getDebugText()}getVideoEmbedCode(){const M=this.app.G();if(M.O)return"";const W=this.app.Zy();return M.getVideoEmbedCode(W.isPrivate?"":W.title,this.app.Zy().videoId,this.app.qe().getPlayerSize(),this.getPlaylistId()||void 0)}D(M, W,b){return bL(this.app,M,W,b)}removeCueRange(M){return this.app.Mu(M)}loadPlaylist(M,W,b,T){this.app.loadPlaylist(M,W,b,T)}WP(M,W,b,T){this.loadPlaylist(M,W,b,T);gy(this.app,!0,1)}cuePlaylist(M,W,b,T){this.app.cuePlaylist(M,W,b,T)}nextVideo(M,W){this.app.nextVideo(M,W)}x_(){this.nextVideo();gy(this.app,!0,1)}previousVideo(M){this.app.previousVideo(M)}sj(){this.previousVideo();gy(this.app,!0,1)}playVideoAt(M){this.app.playVideoAt(M)}Hr(M){this.playVideoAt(M);gy(this.app,!0,1)}setShuffle(M){const W= this.app.getPlaylist();W&&W.setShuffle(M)}setLoop(M){const W=this.app.getPlaylist();W&&(W.loop=M)}OY(){const M=this.app.getPlaylist();if(!M)return null;const W=[];for(let b=0;b{g.lR(b)}; var W=this.app.G();if(W.externalFullscreen){if(!g.kj(W))return this.isFullscreen()?e9(window.document.documentElement):S9(window.document.documentElement).catch(M)}else if(g.OL()||W.W)return this.isFullscreen()?e9(PV()):W.controlsType!=="3"&&g.OL()?S9(this.app.qe().element).catch(M):(W=this.app.E2().BP())?S9(W).catch(M):Promise.reject(Error("Media element missing"));g.Jp(this,"onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}isFullscreen(){return this.app.isFullscreen()}MO(){return this.app.MO()}cancelPlayback(){var M= zy(this.app.lk());M&&M.created&&M.destroy();this.app.Jn().stopVideo();(M=this.app.lk().Tm.get("endscreen"))&&M.Li()&&g.Ke(this.app.o0,!0)}getProgressState(M){if(this.B()===3)return m3(this.app.lk()).getProgressState();const W=this.app.getVideoData();var b=DA(this.app,{playerType:M})||this.app.Jn(),T=b.getPlayerType();a:{var q=this.app.getVideoData();if(q.progressBarStartPosition?.utcTimeMillis&&(q=Number(q.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(q))){q=this.OJ(q,M);break a}q=0}a:{var X= this.app.getVideoData();if(X.progressBarEndPosition?.utcTimeMillis&&(X=Number(X.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(X))){X=this.OJ(X,M);break a}X=0}const G=this.getCurrentTime(M);M=this.getDuration(M);const V=this.app.A1(T),J=this.app.isAtLiveHead(T),B=this.app.gI();var D=this.app;var a=g.Qk(D,{playerType:T});a=wy(D,a);D=pM(D,a.e_(),a);a=Yv(this.app,T);b=b.Ga();const E=this.app.getVideoData().P5;T=!E||isNaN(E)?0:this.OJ(E,T);return{airingStart:q,airingEnd:X,allowSeeking:this.app.jO(), clipEnd:W.clipEnd,clipStart:W.clipStart,current:G,displayedStart:-1,duration:M,ingestionTime:V,isAtLiveHead:J,loaded:B,seekableStart:D,seekableEnd:a,offset:b,viewerLivestreamJoinMediaTime:T}}OJ(M,W){const b=this.app.A1(W);if(!b)return 0;W=b-this.app.getCurrentTime({playerType:W});return M-W}isInline(){return this.app.isInline()}setInline(M){this.app.setInline(M)}Uq(){return this.app.RT().qd(!0)}toggleSubtitles(){const M=g.uj(this.app.lk());M&&M.Lk()}getPlayerSize(){const M=this.app.qe().getPlayerSize(); return{width:M.width,height:M.height}}setCenterCrop(M){this.app.qe().setCenterCrop(M)}getLoopVideo(){return this.app.getLoopVideo()}setLoopVideo(M){this.app.setLoopVideo(M)}},N8y="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), fwp="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var RqP={["api.invalidparam"]:2,auth:150,["drm.auth"]:150,["heartbeat.net"]:150,["heartbeat.servererror"]:150,["heartbeat.stop"]:150,["html5.unsupportedads"]:5,["fmt.noneavailable"]:5,["fmt.decode"]:5,["fmt.unplayable"]:5,["html5.missingapi"]:5,["html5.unsupportedlive"]:5,["drm.unavailable"]:5,["mrm.blocked"]:151,["embedder.identity.denied"]:152,["embedder.identity.missing.referrer"]:153};g.VY=class extends O6Q{isExternalMethodAvailable(M,W){return this.state.S[M]?!0:!!(this.state.C[M]&&W&&ER(W,ULP))}getBandwidthEstimate(){return Yf(this.app.PP)}reportPlaybackIssue(M=""){const W=this.app.Jn();M={gpu:(0,g.dS)(),d:M};W.handleError(new g.WE("feedback",M))}getInternalApi(){return{...this.state.Z}}getTrustedApi(){return{...this.state.S,...this.state.C}}getInternalApiInterface(){return g.h7(this.state.Z)}queueNextVideo(M,W,b=NaN,T="",q=""){this.app.queueNextVideo(M,W,b,T,q)}bV(M){M=this.app.getPlayerStateObject(M); return{isBuffering:M.Z(1),isCued:M.isCued(),isDomPaused:M.Z(1024),isEnded:M.Z(2),isError:M.Z(128),isOrWillBePlaying:M.isOrWillBePlaying(),isPaused:M.isPaused(),isPlaying:M.isPlaying(),isSeeking:M.Z(16),isUiSeeking:M.Z(32),isUnstarted:M.Z(64)}}createSubtitlesModuleIfNeeded(){return this.app.createSubtitlesModuleIfNeeded()}startSeekCsiAction(){this.app.r0().A.Z=(0,g.u)()}An(M=1,W,b){return this.getCurrentTime(M,W,b)}seekToStreamTime(M,W,b,T){Y7a(this.app,M,W,b,T)}getStreamTimeOffset(){return this.app.RT().getStreamTimeOffset()}seekToLiveHead(M, W){const b=this.app.RT().getVideoData();b&&b.isLivePlayback&&sf(this.app,Infinity,M,W,1)}requestSeekToWallTimeSeconds(M,W,b){this.app.RT().Hj(M,W,b)}Ic(M,W,b,T=1,q){this.seekTo(M,W,b,T,q)}XP(M,W,b,T){this.seekBy(M,W,b,T,1)}prefetchKeyPlay(M,W){this.app.RT().prefetchKeyPlay(M,W)}setVolume(M,W=!0){this.W_(M,W)}mute(M=!0){this.qR(M)}unMute(M=!0){this.q_(M)}syncVolume(){const M=$kS(this.app);W4(this.app,{volume:M.volume,muted:M.muted},!1)}getAvailableQualityLabels(){return g.dG(this.app.RT().a8(),M=> M.qualityLabel)}channelSubscribed(){g.q8(this,"SUBSCRIBE",this.app.Zy().YJ)}channelUnsubscribed(){g.q8(this,"UNSUBSCRIBE",this.app.Zy().YJ)}setScreenLayer(M){this.app.setScreenLayer(M)}getCurrentPlaylistSequence(){return this.app.Jn().getPlaylistSequenceForTime(this.app.getCurrentTime())}getPlaylistSequenceForTime(M){return this.app.Jn().getPlaylistSequenceForTime(M)}shouldSendVisibilityState(){return!0}confirmYpcRental(){this.app.RT().Vs("ypcRentalActivation")}setHomeGroupInfo(M){this.app.G().homeGroupInfo= M}setConnectedRemoteApps(M){this.app.G().s7=M}setLivingRoomAppMode(M){this.app.G().livingRoomAppMode=I$("LIVING_ROOM_APP_MODE_UNSPECIFIED",M,eGQ)}setEnablePrivacyFilter(M=!1){this.app.G().enablePrivacyFilter=M}togglePictureInPicture(){this.app.togglePictureInPicture()}addUtcCueRange(M,W,b,T,q){return M_q(this.app,M,W,b,T,q)}oT(M=1){const W=this.F$(M); if(M=DA(this.app,{playerType:M}))M=M.getVideoData(),W.hasProgressBarBoundaries=M.hasProgressBarBoundaries(),W.isPremiere=M.isPremiere,W.itct=M.O,W.playerResponseCpn=M.playerResponseCpn,W.progressBarStartPositionUtcTimeMillis=M.hasProgressBarBoundaries()&&M.progressBarStartPosition?.utcTimeMillis?DZ(M.progressBarStartPosition.utcTimeMillis):null,W.progressBarEndPositionUtcTimeMillis=M.hasProgressBarBoundaries()&&M.progressBarEndPosition?.utcTimeMillis?DZ(M.progressBarEndPosition.utcTimeMillis):null, W.ypcOriginalItct=M.jS,W.ypcPreview=M.ypcPreview,W.paidContentOverlayText=bWy(M),W.paidContentOverlayDurationMs=T8s(M),M.Z&&Cb(M.Z)&&(W.usingLocalMedia="true"),W.transitionEndpointAtEndOfStream=M.transitionEndpointAtEndOfStream,W.isSeekable=M.isSeekable;return W}getAdState(){return this.app.getAdState()}isNotServable(M){if(M!==this.app.Rp.video_id)return!1;const W=(M=this.app.RT().getPlayerState())?M.Iw:null;return!!(M&&W&&M.Z(128)&&rEL(W.errorCode)===5)}supportsGaplessAudio(){return this.app.G().supportsGaplessAudio()}supportsGaplessShorts(){return this.app.G().supportsGaplessShorts()}enqueueVideoByPlayerVars(M, W,b=Infinity,T=""){this.app.enqueueVideoByPlayerVars(M,W,b,T)}clearQueue(){this.app.clearQueue()}rS(){return g.am(this)}sendAbandonmentPing(){this.app.Jn().sendAbandonmentPing()}setAutonavState(M,W=!1){if(this.j("web_player_autonav_use_server_provided_state")&&!W&&(W=this.app.Zy(),W?.po()))if(M===3)W.autonavState!==3&&(W.s7=W.autonavState);else if(W.s7!==void 0)M=W.s7,W.s7=void 0;else return;WMy(this.app,M)}setAutonav(M,W=!1){this.setAutonavState(M?2:1,W)}setLoopRange(M){this.app.setLoopRange(M)}getLoopRange(){return this.app.getLoopRange()}hasSupportedAudio51Tracks(){return this.app.RT().hasSupportedAudio51Tracks()}setUserAudio51Preference(M, W=!1){this.app.RT().setUserAudio51Preference(M,W)}getUserAudio51Preference(){return this.app.RT().getUserAudio51Preference()}setProximaLatencyPreference(M){this.app.RT().setProximaLatencyPreference(M)}getProximaLatencyPreference(){return this.app.RT().getProximaLatencyPreference()}isProximaLatencyEligible(){return this.app.RT().isProximaLatencyEligible()}getAppState(){return this.app.getAppState()}updateLastActiveTime(){BA()}setBlackout(M){this.app.setBlackout(M)}setUserEngagement(M){this.app.G().YX!== M&&(this.app.G().YX=M,this.app.RT().vH())}updateSubtitlesUserSettings(M,W=!0){g.uj(this.app.lk()).Qd(M,W)}getCaptionWindowContainerId(){const M=g.uj(this.app.lk());return M?M.getCaptionWindowContainerId():""}toggleSubtitlesOn(){const M=g.uj(this.app.lk());M&&M.wH()}isSubtitlesOn(){const M=g.uj(this.app.lk());return M?M.isSubtitlesOn():!1}getPlayerResponse(M){return(M=DA(this.app,{playerType:M}))?M.getVideoData().getPlayerResponse():null}EY(){return this.getPlayerResponse(1)}getEmbeddedPlayerResponse(){return this.app.RT().getVideoData().getEmbeddedPlayerResponse()}getWatchNextResponse(M){return(M= DA(this.app,{playerType:M}))?M.getVideoData().getWatchNextResponse():null}FT(){return this.getWatchNextResponse(1)}getHeartbeatResponse(M){return(M=DA(this.app,{playerType:M}))?M.getVideoData().getHeartbeatResponse():null}jT(){return this.getHeartbeatResponse(1)}getStoryboardFrame(M,W){const b=this.app.SH();if(!b)return null;W=b.levels[W];return W?(M=g.bY(W,M))?{column:M.column,columns:M.columns,height:M.Gl,row:M.row,rows:M.rows,url:M.url,width:M.q4}:null:null}getStoryboardFrameIndex(M,W){const b= this.app.SH();if(!b)return-1;W=b.levels[W];if(!W)return-1;M-=this.Ga();return W.A(M)}getStoryboardLevel(M){var W=this.app.SH();return W?(W=W.levels[M])?{index:M,intervalMs:W.Z,maxFrameIndex:W.V(),minFrameIndex:W.C()}:null:null}getNumberOfStoryboardLevels(){const M=this.app.SH();return M?M.levels.length:0}Fc(M){return this.app.Jn().Fc(M)}Xm(){this.app.Jn().Xm();this.publish("onFilterAudioFeatures")}yz(){return this.getAudioTrack(1)}getAudioTrack(M){return(M=DA(this.app,{playerType:M}))?M.getAudioTrack(): this.app.getVideoData().p7}X9(){const M=DA(this.app,{playerType:void 0});return M?M.X9():null}setAudioTrack(M,W,b){const T=this.app.wW().Rw;T&&T.Ys(M);b=DA(this.app,{playerType:b});if(!b)return!1;(M=b.Ys(M,W))&&this.Xm();return M}U1(M,W){return this.setAudioTrack(M,W,1)}BY(){return this.getAvailableAudioTracks(1)}getAvailableAudioTracks(M){return DA(this.app,{playerType:M}).getAvailableAudioTracks()}getMaxPlaybackQuality(){const M=this.app.RT();return M.getVideoData().V?UV(M.Js()):"unknown"}getUserPlaybackQualityPreference(){return this.app.RT().getUserPlaybackQualityPreference()}getSubtitlesUserSettings(){const M= g.uj(this.app.lk());return M?M.bB():null}resetSubtitlesUserSettings(){g.uj(this.app.lk()).JY()}setMinimized(M){this.app.setMinimized(M)}setOverlayVisibility(M){this.publish("overlayvisibilitychange",M)}setInlinePreview(M){this.app.setInlinePreview(M)}setSqueezeback(M){this.app.setSqueezeback(M)}setGlobalCrop(M){this.app.qe().setGlobalCrop(M)}setAppFullscreen(M){this.app.Cu(M?4:0)}fK(){return this.app.fK()}getVisibilityState(){return this.fK().getVisibilityState(this.d0(),this.MO()||g.bb(this.app.G()), this.isMinimized(),this.isInline(),this.app.iy(),this.app.He(),this.app.We(),this.app.KT())}isMutedByMutedAutoplay(){return this.app.uY}isMutedByEmbedsMutedAutoplay(){return EA(this.app)}setInternalSize(M,W){this.app.qe().setInternalSize(new g.i0(M,W))}Ga(M){return(M=DA(this.app,{playerType:M}))?M.Ga():0}isMinimized(){return this.app.isMinimized()}iy(){return this.app.iy()}d0(){return this.app.Jn().d0()}isOrchestrationLeader(){return this.app.isOrchestrationLeader()}setSafetyMode(M){this.app.G().enableSafetyMode= M}canPlayType(M){return this.app.canPlayType(M)}updatePlaylist(M){if(M){var W=this.getPlaylistId(),b=!1;W&&W!==M.list&&(b=!0);M.external_list!==void 0&&(this.app.cg=Zf(!1,M.external_list));const T=M.video;(W=this.app.getPlaylist())&&!b?this.isFullscreen()&&((b=T[W.index])&&b.encrypted_id!==g.Rr(W).videoId||(M.index=W.index)):Tg(this.app,{list:M.list,index:M.index,playlist_length:T.length});UvP(this.app.getPlaylist(),M);g.Vc(this,"onPlaylistUpdate")}else this.app.updatePlaylist()}updateVideoData(M, W){g.Ub(this.app.RT().getVideoData(),M,W)}updateEnvironmentData(M){VK(this.app.G(),M,!1)}ek(M){this.app.sendVideoStatsEngageEvent(M,1)}productsInVideoVisibilityUpdated(M){this.publish("changeProductsInVideoVisibility",M)}isAtLiveHead(M,W=!0){return this.app.isAtLiveHead(M,W)}getVideoAspectRatio(){return this.app.qe().getVideoAspectRatio()}getPreferredQuality(){return this.app.Jn().getPreferredQuality()}getPlaybackQualityLabel(M){return(M=DA(this.app,{playerType:M}))?M.getVideoData().V?.W()?.qualityLabel|| "":""}setPlaybackQualityRange(M,W,b,T){(T=DA(this.app,{playerType:T}))&&T.I6(g.ap(M,W||M,!0,"m"),!0,b)}Ha(M,W,b){this.setPlaybackQualityRange(M,W,b,1)}onAdUxClicked(M,W){this.publish("aduxclicked",M,W)}showAirplayPicker(){this.app.showAirplayPicker()}dispatchReduxAction(M){g.nP.dispatch(M)}highlightSettingsMenuItem(M){this.publish("highlightSettingsMenu",M)}openSettingsMenuItem(M){this.publish("openSettingsMenuItem",M)}X(M,W){this.state.V.subscribe(M,W)}p7(M,W){this.state.V.unsubscribe(M,W)}Zs(M, W=1){this.cueVideoByPlayerVars(M,W)}aT(M,W,b=1,T){this.loadVideoByPlayerVars(M,W,b,T)}k_(M,W=1,b,T){this.preloadVideoByPlayerVars(M,W,b,T)}getFeedbackProductData(){return this.app.getFeedbackProductData()}sX(){return g.am(this).sX()}Wx(){return g.am(this).Wx()}V3(){return g.am(this).V3()}j2(){return this.rS().j2()}XY(...M){this.j2().XY(...M)}aq(){this.j2().aq()}IL(){this.j2().IL()}S(){this.j2().hide()}J3(M,W,b,T,q,X,G,V){this.j2().J3(M,W,b,T,q,X,G,V)}f9(M,W){this.j2().f9(M,W)}Ar(M,W,b,T,q){this.rS().Ar(M, W,b,T,q)}p9(M){this.j2().setEnabled(M)}fZ(M,W){this.rS().fZ(M,W)}Su(M,W){this.rS().Su(M,W)}F9(M,W){this.rS().F9(M,W)}Cr(){this.rS().Cr()}VS(M,W){this.rS().VS(M,W)}renderChapterSeekingAnimation(M,W,b){this.rS().renderChapterSeekingAnimation(M,W,b)}gy(){this.rS().gy()}getWebPlayerContextConfig(){return this.app.G().getWebPlayerContextConfig()}notifyShortsAdSwipeEvent(){this.publish("shortsadswipe")}Q4(){return this.app.Jn().Q4()}pT(M,W,b=!1){this.rS()?.pT(M,W,b)}};g.VY.prototype.z8=Ma(7);g.J0=class extends g.VY{constructor(M,W){super(M,W);xmP(this);jY(this,"addEventListener",this.XN);jY(this,"removeEventListener",this.N5);jY(this,"cueVideoByPlayerVars",this.DB);jY(this,"loadVideoByPlayerVars",this.XS);jY(this,"preloadVideoByPlayerVars",this.xE);jY(this,"loadVideoById",this.Zo);jY(this,"loadVideoByUrl",this.dw);jY(this,"playVideo",this.r8);jY(this,"loadPlaylist",this.loadPlaylist);jY(this,"nextVideo",this.nextVideo);jY(this,"previousVideo",this.previousVideo);jY(this,"playVideoAt", this.playVideoAt);jY(this,"getVideoData",this.F$);jY(this,"seekBy",this.bP);jY(this,"seekTo",this.kE);jY(this,"showControls",this.showControls);jY(this,"hideControls",this.hideControls);jY(this,"cancelPlayback",this.cancelPlayback);jY(this,"getProgressState",this.getProgressState);jY(this,"isInline",this.isInline);jY(this,"setInline",this.setInline);jY(this,"setLoopVideo",this.setLoopVideo);jY(this,"getLoopVideo",this.getLoopVideo);jY(this,"getVideoContentRect",this.getVideoContentRect);jY(this,"getVideoStats", this.Uq);jY(this,"getCurrentTime",this.DO);jY(this,"getDuration",this.WG);jY(this,"getPlayerState",this.Eq);jY(this,"getVideoLoadedFraction",this.kc);jY(this,"mute",this.qR);jY(this,"unMute",this.q_);jY(this,"setVolume",this.W_);jY(this,"loadModule",this.loadModule);jY(this,"unloadModule",this.unloadModule);jY(this,"getOption",this.YD);jY(this,"getOptions",this.getOptions);jY(this,"setOption",this.setOption);jY(this,"addCueRange",this.addCueRange);jY(this,"getDebugText",this.getDebugText);jY(this, "getStoryboardFormat",this.getStoryboardFormat);jY(this,"toggleFullscreen",this.toggleFullscreen);jY(this,"isFullscreen",this.isFullscreen);jY(this,"getPlayerSize",this.getPlayerSize);jY(this,"toggleSubtitles",this.toggleSubtitles);jY(this,"setCenterCrop",this.setCenterCrop);jY(this,"setFauxFullscreen",this.setFauxFullscreen);jY(this,"setSizeStyle",this.setSizeStyle);jY(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);jY(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);lwy(this)}jA(M,W,b,T,q, X,G){return this.app.jA(M,W,b,T,q,X,G)}zZ(){return this.app.zZ()}lk(){return this.app.lk()}h_(){const M=this.lk().Tm.get("endscreen");return!!M&&M.h_()}getRootNode(){return this.qe().element}G(){return this.app.G()}Tl(){return this.app.Nl()}M1(M){return this.app.M1(M)}fT(){return g.am(this)?.fT()||null}getSourceConfigForActiveAudioTrack(){const M=this.getVideoData()?.Vl();if(M){const W=this.getAudioTrack().getLanguageInfo().getId();for(const b of M)for(const T of b.audioTracks??[])if(T.id===W)return b}}Tf(){return this.app.Jn().Tf()}getStartTime(M){return DA(this.app, M)?.getStartTime()}getPlayerStateObject(M){return this.app.getPlayerStateObject(M)}qe(){return this.app.qe()}getPlaylist(){return this.app.getPlaylist()}getVideoData(M={}){var W=DA(this.app,M);if(!W)return null;W=W.getVideoData();M.qW===!1?M=W:W.enableServerStitchedDai&&M.playerType===2?(M=this.app,M=M.e2?M.CN.Z?.getVideoData()||M.getVideoData():M.getVideoData()):M=W;return M}nH(){return this.app.Jn().nH()}SH(M){return this.app.SH(M)}KT(){return this.app.KT()}isHdr(){return this.app.Jn().isHdr()}eK(){return this.app.eK()}isEmbedsShortsMode(){var M= g.am(this);const W=this.getVideoData();M=M?M.dl:this.getPlayerSize();const b=!!this.getPlaylist();return!(!W||!W.isEmbedsShortsMode(new g.i0(M.width,M.height),b))}NC(M,W){this.app.NC(M,1,W)}J1(M,W,b,T,q){this.app.Jy(M,W,b,T,q)}playVideo(M,W){try{const b=this.app.wW().Rw;if(b){b.playVideo();return}if(!M&&this.getPresentingPlayerType()===2){const T=zy(this.app.lk());if(T&&y$(T))return}}catch(b){g.O(b)}this.app.playVideo(M,W)}stopVideo(M){DA(this.app,{playerType:M}).stopVideo()}o3(M){DA(this.app,{playerType:M}).o3()}addEventListener(M, W){this.state.B.subscribe(M,W)}removeEventListener(M,W){this.state.B.unsubscribe(M,W)}zR(M){this.app.zR(M)}setPlaybackQuality(M,W){this.setPlaybackQualityRange(M,M,W)}a8(){const M={},W=this.app.Jn().a8();for(const b of W)M[b.quality]=b;return M}zk(){return this.app.Jn().zk()}P_(M){this.app.P_(M);M&&WMy(this.app,M)}getVideoUrl(M,W,b,T){let q=this.getPresentingPlayerType(),X=q===2;if(T&&X||q===3)X=!1,q=1;T=this.getVideoData({playerType:q});if(!T)return"";let G;M||T.isLivePlayback||(G=Math.floor(this.getCurrentTime({playerType:q}))); M=X?void 0:this.getPlaylistId()||void 0;W&&M==="WL"&&(M=void 0);return this.app.getVideoUrl(T.videoId,M,G,W,b)}Wg(M){this.app.Jn().Wg(M)}Yv(M,W){this.lk().Yv(M,W)}Xp(){const M=g.Sc(this.lk());return!!M&&M.Xp()}Uk(){const M=g.Sc(this.lk());return!!M&&M.Uk()}jJ(M,W,b){const T=g.Sc(this.lk());T&&T.jJ(M,W,b)}Fn(){this.app.Jn().UC()}ou(M){g.Vc(this,"onVideoAreaChange");g.Vc(this,M?"onShowControls":"onHideControls")}RE(M,W){const b=g.am(this);if(b)return b.RE(M,W);M=this.app.qe().hX();return new g.re(0, 0,M.width,M.height)}KS(){const M=this.lk().Tm.get("heartbeat");return!!M&&M.KS()}jO(){var M=this.G();if(M.An||M.disableSeek)return!1;const W=this.app.Jn(),b=W.getVideoData();if(!b.S2()||g.PM(b)||this.getPresentingPlayerType()===2&&!this.app.UO()&&!b.isSeekable||b.FD()&&this.getPresentingPlayerType(!0)===2||W.V1()&&this.getPresentingPlayerType()!==3)return!1;M=g.Gh(M);return g.Fi(M)&&!b.U1||EA(this.app)?!1:!0}yM(){return this.app.Jn().HN()}isLifaAdPlaying(){const M=this.getVideoData()?.FD();return M? this.getPresentingPlayerType(M)===2:!1}LW(){this.app.Jn().LW()}sendVideoStatsEngageEvent(M,W,b){this.app.sendVideoStatsEngageEvent(M,b,W)}QV(M,W,b){this.app.VC(M,W,b)}Ng(M,W){this.app.So(M,W)}lN(M,W){XL(this.app,M,W)}gp(M){return this.app.gp(M)}Vs(M,W){DA(this.app,{playerType:W})?.Vs(M)}V1(){const M=DA(this.app,{playerType:void 0});return M?M.V1():!0}B1(){const M=this.getVideoData();return!!M&&(M.B1()||!!M.hlsFormats||!!M.oa)}getPlaybackRate(){return this.app.RT().getPlaybackRate()}setPlaybackRate(M, W){this.app.setPlaybackRate(M,W)}E2(){return this.app.E2()}r0(){return this.app.r0()}un(M){return this.app.un(M)}createClientVe(M,W,b,T=!1){this.G().MK&&this.app.UN.createClientVe(M,W,b,T)}createServerVe(M,W,b=!1){this.G().MK&&this.app.UN.createServerVe(M,W,b)}setTrackingParams(M,W){this.G().MK&&this.app.UN.setTrackingParams(M,W)}logClick(M,W){this.G().MK&&(this.app.UN.click(M,W),this.publish("veClickLogged",M))}logVisibility(M,W,b){this.G().MK&&this.app.UN.eW(M,W,b)}hasVe(M){return this.G().MK?this.app.UN.hasVe(M): !1}destroyVe(M){this.G().MK&&this.app.UN.destroyVe(M)}getPresentingPlayerType(M){return this.app.getPresentingPlayerType(M)}getPlayerType(M){return DA(this.app,{cpn:M})?.getPlayerType()}fP(){this.app.fP()}bG(M){this.app.bG(M)}nV(){this.app.nV()}addPlayerResponseForAssociation(){}finishSegmentByCpn(M,W,b){return this.app.finishSegmentByCpn(M,W,b)}Yp(M,W,b,T,q,X,G,V){return this.app.Yp(M,W,b,T,q,X,G,V)}cE(M,W,b,T,q,X,G,V){this.app.cE(M,W,b,T,q,X,G,V)}l5(){return this.app.l5()}i7(M){this.app.i7(M)}CZ(M= -1,W=Infinity){this.app.CZ(M,W)}ZX(M){g.uj(this.lk())?.ZX(M)}OH(M,W,b){this.app.OH(M,W,b)}Ph(){return this.app.Ph()}sL(M,W,b=0){this.app.sL(M,W,b)}LK(){return this.app.LK()}UO(){return this.app.UO()}TE(M,W,b){return this.app.TE(M,W,b)}dK(M,W,b=!1,T){DA(this.app,{playerType:T})?.dK(M,W,b)}oe(M,W){this.publish("aduxmouseover",M,W)}Hs(M,W){this.publish("aduxmouseout",M,W)}b1(M,W){this.publish("muteadaccepted",M,W)}CV(){return this.app.qe().CV()}Un(M){this.app.qe().Un(M)}L4(M){return M?this.app.L0(): this.app.Jn().L4()}BR(M){this.app.BR(M)}N6(){this.app.Jn().N6()}Nz(){this.app.Nz()}getGetAdBreakContext(){const M=this.app.RT();return M.getVideoData().getGetAdBreakContext(M.getCurrentTime(),M.Ga())}Cq(M,W){this.app.Jn().Cq(M,W)}wu(){return this.app.Jn().wu()}ZS(M){return DA(this.app,{playerType:M})?.ZS()||0}};g.L=g.J0.prototype;g.L.X3=Ma(46);g.L.Af=Ma(44);g.L.hW=Ma(42);g.L.rr=Ma(40);g.L.CI=Ma(36);g.L.zs=Ma(35);g.L.Ts=Ma(29);g.L.Fo=Ma(23);g.L.kB=Ma(17);g.L.pU=Ma(15);g.L.XQ=Ma(11);g.L.zC=Ma(9);var zqq=class extends qZ{constructor(){super(...arguments);this.requestHeaders={}}W8(M,W){return{...super.W8(M,W),...this.requestHeaders}}},Hf;var PGQ=class{constructor(M){this.experiments=M;this.Z=2048;this.A=0;this.gK=(this.W=this.j("html5_streaming_resilience"))?.5:.25;this.B=g.TO(this.experiments,"html5_media_time_weight_prop")||0;this.X=(this.S=this.experiments.FX("html5_consider_end_stall"))&&q4;this.V=this.experiments.FX("html5_measure_max_progress_handling");this.D=this.j("html5_treat_requests_pre_elbow_as_metadata");this.C=this.j("html5_media_time_weight")||!!this.B;this.j("html5_sabr_live_audio_early_return_fix")&&q4&&(this.Z= 65536)}j(M){return this.experiments.FX(M)}};g.ya=class extends g.gz{constructor(M){super();this.qK=M;this.k9={Q7:()=>this.qK}}vY(){this.A(); super.vY()}A(){this.qK.dispose()}addCueRange(M){this.qK.addCueRange(M)}VC(M,W){this.qK.VC(M,W)}qD(){this.qK.qD()}Jh(){return this.qK.Jh()}GS(M){return this.qK===M}UC(){this.qK.Fn()}XZ(M,W){this.qK.XZ(M,W)}hg(M,W){return this.qK.hg(M,W)}Uz(M){this.qK.Uz(M)}Xm(){this.qK.Xm()}Fc(M){return this.qK.Fc(M)}getAudioTrack(){return this.qK.getAudioTrack()}X9(){return this.qK.X9()}getAvailableAudioTracks(){return this.qK.getAvailableAudioTracks()}a8(){return this.qK.a8()}zk(){return this.qK.zk()}FP(){return this.getVideoData().clientPlaybackNonce}xS(){return this.qK.xS()}u9(){return this.qK.u9()}ac(){return this.qK.ac()}getCurrentTime(){return this.qK.getCurrentTime()}qM(){return this.qK.qM()}Bh(){return this.qK.Bh()}qd(M){return this.qK.qd(M)}getDuration(M){return this.qK.getDuration(M)}xI(){return this.qK.xI()}A1(){return this.qK.A1()}HN(){return this.qK.HN()}Ph(){return this.qK.Ph()}gI(){return this.qK.gI()}Tl(){return this.qK.Tl()}ZS(){return this.qK.ZS()}Xc(){return this.qK.Xc()}y3(M){return this.qK.y3(M)}E2(){return this.qK.E2()}dT(){return this.qK.dT()}XD(){return this.qK.XD()}e_(){return this.qK.e_()}MZ(M, W,b){return this.qK.MZ(M,W,b)}getPlaybackQuality(){return this.qK.getPlaybackQuality()}getPlaybackRate(){return this.qK.getPlaybackRate()}getPlayerState(){return this.qK.getPlayerState()}getPlayerType(){return this.qK.getPlayerType()}getPlaylistSequenceForTime(M){return this.qK.getPlaylistSequenceForTime(M)}un(M){return this.qK.un(M)}Q4(){return this.qK.Q4()}getPreferredQuality(){return this.qK.getPreferredQuality()}Yd(){return this.qK.Yd()}getProximaLatencyPreference(){return this.qK.getProximaLatencyPreference()}Js(){return this.qK.Js()}getStartTime(){return 0}SH(){return this.getVideoData().SH()}getStoryboardFormat(){return this.getVideoData().getStoryboardFormat()}getStreamTimeOffset(){return this.qK.getStreamTimeOffset()}lG(){return this.qK.lG()}Ga(){return this.qK.Ga()}Tf(){return this.qK.Tf()}getUserAudio51Preference(){return this.qK.getUserAudio51Preference()}getUserPlaybackQualityPreference(){return this.qK.getUserPlaybackQualityPreference()}getVideoData(){return this.qK.getVideoData()}nH(){return this.qK.nH()}rU(){return this.qK.rU()}getVideoLoadedFraction(){if(this.getVideoData().cP())return 1; const M=this.qK.E2();return M?M.yF():0}Q7(){return this.qK}Fh(M){this.qK.Fh(M)}handleError(M){this.qK.handleError(M)}VF(M){this.qK.VF(M)}bJ(M){this.qK.bJ(M)}V1(){return this.qK.V1()}hasSupportedAudio51Tracks(){return this.qK.hasSupportedAudio51Tracks()}isAd(){return this.getVideoData().isAd()}vM(){return this.qK.vM()}d0(){return this.qK.d0()}isAtLiveHead(M,W){return this.qK.isAtLiveHead(M,W)}fB(){return this.qK.fB()}isGapless(){return this.qK.isGapless()}Am(){return this.qK.Am()}isHdr(){return this.qK.isHdr()}gD(){return this.qK.gD()}mx(){return this.qK.mx()}wu(){return this.qK.wu()}isProximaLatencyEligible(){return this.qK.isProximaLatencyEligible()}LK(){return this.qK.LK()}jp(M){return!!this.qK.loader?.jp(M)}wy(){return this.qK.wy()}NP(){this.qK.NP()}Ji(M){this.qK.Ji(M)}RJ(){this.qK.RJ()}xu(){this.qK.xu()}d4(){this.qK.d4()}RC(){this.qK.RC()}Au(M){this.qK.Au(M)}i8(){this.qK.i8()}pauseVideo(M){this.qK.pauseVideo(M)}prefetchKeyPlay(M, W){this.qK.prefetchKeyPlay(M,W)}eJ(M){this.qK.eJ(M)}Dm(M){this.qK.Dm(M)}playVideo(M,W){return this.qK.playVideo(M,W)}LD(M,W,b,T,q){this.qK.LD(M,W,b,T,q)}Ee(M,W,b,T,q){this.qK.Ee(M,W,b,T,q)}dK(M,W,b){this.qK.dK(M,W,b)}Wg(M){this.qK.Wg(M)}Cq(M,W){this.qK.Df.Cq(M,W)}jq(M,W,b){this.qK.jq(M,W,b)}dt(M){this.qK.dt(M)}yD(M){this.qK.yD(M)}h3(M,W){this.qK.h3(M,W)}bI(M,W,b,T,q,X,G,V){this.qK.bI(M,W,b,T,q,X,G,V)}xt(){ul(this.qK.Df)}TG(M){this.qK.TG(M)}o3(M,W){this.qK.o3(M,W)}removeCueRange(M){this.qK.removeCueRange(M)}So(M){this.qK.So(M)}lN(M){return this.qK.b$.lN(M)}Jg(M){this.qK.Jg(M)}ys(M, W,b){this.qK.ys(M,W,b)}SJ(){this.qK.SJ()}wf(){this.qK.b$.reset()}Iu(){this.qK.Iu()}Hj(M,W,b){this.qK.Hj(M,W,b)}seekTo(M,W){this.qK.seekTo(M,W)}sendAbandonmentPing(){this.qK.sendAbandonmentPing()}sendVideoStatsEngageEvent(M,W){this.qK.sendVideoStatsEngageEvent(M,W)}GE(M,W,b){this.qK.GE(M,W,b)}setLoop(M){this.qK.setLoop(M)}mj(){this.qK.mj()}setMediaElement(M){this.qK.setMediaElement(M)}Wv(M,W,b,T){this.qK.Wv(M,W,b,T)}setPlaybackRate(M){this.qK.setPlaybackRate(M)}J1(M,W,b,T,q,X){this.qK.J1(M,W,b,T,q, X)}Es(M,W){this.qK.Es(M,W)}Vs(M){this.qK.Vs(M)}setProximaLatencyPreference(M){this.qK.setProximaLatencyPreference(M)}On(M,W,b){this.qK.On(M,W,b)}N9(M){this.qK.N9(M)}G8(){this.qK.G8()}j5(M){this.qK.j5(M)}setUserAudio51Preference(M,W){this.qK.setUserAudio51Preference(M,W)}I6(M,W,b){this.qK.I6(M,W,b)}Aj(){return this.qK.Aj()}LW(){this.qK.LW()}L4(){return this.qK.L4()}JC(M){this.qK.JC(M)}bY(){this.qK.bY()}Up(M){this.qK.Up(M)}stopVideo(){this.qK.stopVideo()}subscribe(M,W,b){return this.qK.subscribe(M, W,b)}o8(M,W){this.qK.o8(M,W)}togglePictureInPicture(){this.qK.togglePictureInPicture()}gp(M){return this.qK.b$.gp(M)}Oe(M){this.qK.b$.Oe(M)}unsubscribe(M,W,b){return this.qK.unsubscribe(M,W,b)}yu(M,W){this.qK.yu(M,W)}Ys(M,W){return this.qK.Ys(M,W)}vH(){this.qK.vH()}sT(M){this.qK.sT(M)}N6(){this.qK.N6()}};g.L=g.ya.prototype;g.L.Sh=Ma(51);g.L.rr=Ma(39);g.L.zs=Ma(34);g.L.Ts=Ma(28);g.L.Fo=Ma(22);g.L.pU=Ma(14);var evt=class{constructor(){this.licenseRequest=this.mediaKeys=this.Z=this.certificate=null;this.V=!1}dispose(){this.certificate=null;this.Z?.dispose();this.licenseRequest=this.Z=null;this.mediaKeys?.dispose();this.mediaKeys=null;this.V=!0}ST(){return this.V}};var eP=class extends g.YV{constructor(M,W,b,T=!1){super(W);this.L=M;this.BY=T;this.S=new g.Cq(this);this.fade=new g.Ol(this,b,!0,void 0,void 0,()=>{this.X()}); g.t(this,this.S);g.t(this,this.fade)}show(){const M=this.T4();super.show();this.BY&&(this.S.J(window,"blur",this.Lv),this.S.J(rC(this),"click",this.yz));M||this.publish("show",!0)}hide(){const M=this.T4();super.hide();uHg(this);M&&this.publish("show",!1)}Nd(M,W){this.sourceElement=M;this.fade.show();W?(this.C||(this.C=this.S.J(this.L,"appresize",this.D)),this.D()):this.C&&(this.S.fN(this.C),this.C=void 0)}X(){this.sourceElement&&this.element&&(this.sourceElement.getAttribute("aria-haspopup"),this.sourceElement.setAttribute("aria-expanded", "true"),this.focus())}D(){const M=g.am(this.L);this.sourceElement&&M.Ar(this.element,this.sourceElement)}Lv(){const M=this.T4();uHg(this);this.fade.hide();M&&this.publish("show",!1)}yz(M){const W=g2(M);W&&(g.ES(this.element,W)||this.sourceElement&&g.ES(this.sourceElement,W)||!g.PF(M))||this.Lv()}T4(){return this.Ta&&this.fade.state!==4}};var dQy=class extends eP{constructor(M,W,b,T){T=new g.w({K:"div",rK:["ytp-linked-account-popup-button"],R0:T,Y:{role:"button",tabindex:"0"}});W=new g.w({K:"div",N:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{K:"div",N:"ytp-linked-account-popup-title",R0:W},{K:"div",N:"ytp-linked-account-popup-description",R0:b},{K:"div",N:"ytp-linked-account-popup-buttons",U:[T]}]});super(M,{K:"div",N:"ytp-linked-account-popup-container",U:[W]},100);this.dialog=W;g.t(this,this.dialog); T.listen("click",()=>{this.Lv()}); g.t(this,T);g.Im(this.L,this.element,4);this.hide()}Nd(){super.Nd();this.dialog.focus()}};g.M3=class extends g.YV{constructor(M,W,b,T){super(M);this.priority=W;b&&g.i7(this,b);T&&this.setContent(T)}setIcon(M){this.updateValue("icon",M)}updateValue(M,W){super.updateValue(M,W);this.publish("size-change")}};g.Bv={gi:18,a4:17,Uw:16,cnk:15,UKV:14,vn:13,Sy:12,Mc:11,HZ:10,PZ:9,AUDIO:8,SUBTITLES:7,SLEEP_TIMER:6,bz:5,rP:4,pM:3,SD:2,REMOTE:1,QH:0,18:"LOOP",17:"STABLE_VOLUME",16:"VOICE_BOOST",15:"REMOTE_SELECT",14:"SIZE",13:"MINIPLAYER",12:"THREED",11:"AUTONAV",10:"CINEMATIC",9:"ANNOTATIONS",8:"AUDIO",7:"SUBTITLES",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var oIQ=class extends g.M3{constructor(M){super(g.FS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);this.L=M;this.V=this.Z=!1;this.tT=M.fT();M.createServerVe(this.element,this,!0);this.J(this.L,"settingsMenuVisibilityChanged",W=>{this.dG(W)}); this.J(this.L,"videodatachange",this.A);this.listen("click",this.onClick);this.A()}dG(M){this.V&&this.L.logVisibility(this.element,this.Z&&M)}A(){var M=this.L.getVideoData()?.accountLinkingConfig?.linked;M&&!this.Z?(M=this.L.getVideoData()?.accountLinkingConfig,this.setIcon(yI()),g.i7(this,hp(M?.menuData?.connectedMenuLabel)),this.B=new dQy(this.L,hp(M?.menuData?.connectedDialogTitle),hp(M?.menuData?.connectedDialogMessage),hp(M?.menuData?.confirmButtonText)),g.t(this,this.B),M=M?.menuData?.trackingParams|| null,(this.V=!!M)&&this.L.setTrackingParams(this.element,M),this.tT.OB(this),this.Z=!0):!M&&this.Z&&(this.tT.B3(this),this.Z=!1)}onClick(){this.V&&this.L.logClick(this.element);this.tT.Lv();this.B&&this.B.Nd()}};var D9=class extends g.gz{constructor(M){super();this.api=M}j(M){return this.api.j(M)}};var c4t=class extends D9{constructor(M){super(M);Q(M,"setAccountLinkState",W=>{this.setAccountLinkState(W)}); Q(M,"updateAccountLinkingConfig",W=>{this.updateAccountLinkingConfig(W)}); M.addEventListener("videodatachange",(W,b)=>{this.onVideoDataChange(b)}); M.addEventListener("settingsMenuInitialized",()=>{this.menuItem=new oIQ(this.api);g.t(this,this.menuItem)})}onVideoDataChange(M){if(!M.accountLinkingConfig){var W=M.getPlayerResponse()?.accountLinkingConfig; M.accountLinkingConfig=W}if(W=M.accountLinkingConfig?.alsParam)M.mJ=W}setAccountLinkState(M){this.api.getVideoData().mJ=M;this.api.Fn()}updateAccountLinkingConfig(M){const W=this.api.getVideoData(),b=W.accountLinkingConfig;b&&(b.linked=M);this.api.publish("videodatachange","dataupdated",W,this.api.getPresentingPlayerType())}};var QsL=class extends D9{constructor(M){super(M);this.Z=null;this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"applicationvideodatachange",()=>{this.mf()})}mf(){const M=this.api.getPlaybackRate(); var W=this.api.getVideoData();if(W){var b=W.adFormat==="17_8";var T=W.g3?.V()===8;b=W.isAd()&&(b||T)}else b=!1;b||((W=this.api.getVideoData())?(b=W.adFormat==="15_6",T=W.g3?.V()===7,b=W.isAd()&&(b||T)):b=!1);b?(M!==1&&(this.Z=M),this.api.setPlaybackRate(1)):this.Z!==null&&(this.api.setPlaybackRate(this.Z),this.Z=null)}};var gIP=class{constructor(M){this.api=M;this.Z={}}};var ssJ=class extends D9{constructor(M){super(M);this.events=new g.Cq(this);g.t(this,this.events);this.Z=new gIP(this.api);this.events.J(this.api,"legacyadtrackingpingreset",()=>{this.Z.Z={}}); this.events.J(this.api,"legacyadtrackingpingchange",W=>{var b=this.Z;zW(b,"part2viewed",1,0x8000000000000);zW(b,"engagedview",Math.max(1,W.gr*1E3),0x8000000000000);if(!W.isLivePlayback){var T=W.lengthSeconds*1E3;LP(W)&&b.api.j("html5_shorts_gapless_ads_duration_fix")&&(T=b.api.getProgressState().seekableEnd*1E3-W.Ql);zW(b,"videoplaytime25",T*.25,T);zW(b,"videoplaytime50",T*.5,T);zW(b,"videoplaytime75",T*.75,T);zW(b,"videoplaytime100",T,0x8000000000000);zW(b,"conversionview",T,0x8000000000000);zW(b, "videoplaybackstart",1,T);zW(b,"videoplayback2s",2E3,T);zW(b,"videoplayback10s",1E4,T)}}); this.events.J(this.api,g.kJ("appad"),this.V);this.events.J(this.api,g.KX("appad"),this.V)}V(M){var W=M.getId();const b=this.api.getVideoData({playerType:1}),T=!this.api.isInline();if(!b.inlineMetricEnabled||T){if(W==="part2viewed"){if(b.JO&&g.zu(b.JO),b.uO&&u7(this,b.uO),b.qS){var q={CPN:this.api.getVideoData().clientPlaybackNonce};for(var X of b.qS)u7(this,g.tf(X,q))}}else W==="engagedview"&&b.gg&&(q={CPN:this.api.getVideoData().clientPlaybackNonce},g.zu(g.tf(b.gg,q)));b.GH&&(q=b.GH,X=M.getId(), q=k7(q,{label:X}),g.zu(q));switch(W){case "videoplaytime25":b.Nf&&u7(this,b.Nf);b.w8&&SY(this,b.w8);b.E$&&g.zu(b.E$);break;case "videoplaytime50":b.DF&&u7(this,b.DF);b.Ca&&SY(this,b.Ca);b.FF&&g.zu(b.FF);break;case "videoplaytime75":b.eN&&u7(this,b.eN);b.j3&&SY(this,b.j3);b.a7&&g.zu(b.a7);break;case "videoplaytime100":b.zH&&u7(this,b.zH),b.m1&&SY(this,b.m1),b.Yn&&g.zu(b.Yn)}(q=this.api.getVideoData().Fp)&&dms(this,q,M.getId())&&dms(this,q,`${M.getId()}gaia`)}if(b.inlineMetricEnabled&&!T)switch(W){case "videoplaybackstart":(W= b.bU?.Z)&&u7(this,W);break;case "videoplayback2s":(W=b.bU?.B)&&u7(this,W);break;case "videoplayback10s":(W=b.bU?.V)&&u7(this,W)}this.api.Ng([M],1)}};var wCL=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"videoready",W=>{M.getPresentingPlayerType()===1&&(W={playerDebugData:{pmlSignal:!!W.getPlayerResponse()?.adPlacements?.some(b=>b?.adPlacementRenderer?.renderer), contentCpn:W.clientPlaybackNonce}},g.V9("adsClientStateChange",W))})}};var aV=class extends g.M3{constructor(M,W){super(g.FS({role:"menuitemcheckbox","aria-checked":"false"}),W,M,{K:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}onClick(){this.enabled&&(this.Z(!this.checked),this.publish("select",this.checked))}getValue(){return this.checked}Z(M){this.checked=M;this.element.setAttribute("aria-checked",String(this.checked))}setEnabled(M){(this.enabled=M)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled", "true")}};var pCS={yH:2,Uw:1,a4:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var eY=["en-CA","en","es-MX","fr-CA"];var YZl=class extends aV{constructor(M,W){super(M.j("web_fix_annotations")?"Superposiciones con anotaciones":"Anotaciones",g.Bv.PZ);this.L=M;this.tT=W;this.V=!1;M.j("web_settings_menu_icons")&&(W=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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(W));this.J(M,"videodatachange",this.zv);this.J(M,"onApiChange",this.zv);this.subscribe("select",this.onSelect,this);this.zv()}isLoaded(){const M=g.Sc(this.L.lk());return M!==void 0&&M.loaded}zv(){!this.L.j("web_fix_annotations")&&g.Sc(this.L.lk())===void 0||this.L.getPresentingPlayerType()===3?this.V&&(this.tT.B3(this),this.V=!1):this.V||(this.tT.OB(this),this.V=!0);this.L.j("web_fix_annotations")?this.Z(this.L.j("web_fix_annotations")&&!!this.L.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.isAnnotationsEnabled): this.Z(this.isLoaded())}onSelect(M){this.L.j("web_fix_annotations")||this.isLoaded();M?this.L.loadModule("annotations_module"):this.L.unloadModule("annotations_module");this.L.publish("annotationvisibility",M)}vY(){this.V&&this.tT.B3(this);super.vY()}};var $Dl=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);M.addEventListener("settingsMenuInitialized",()=>{const W=new YZl(this.api,this.api.fT());g.t(this,W)})}};var M6t={[0]:M=>W6t(M,W=>W.r9?.id), [2]:M=>wC(M,cf), [3]:M=>wC(M,Qc), [4]:M=>wC(M,sA), [1]:M=>wC(M,gC)},qAt=class{constructor(M){this.Z={}; this.B={};this.k9={jxs:()=>this.Z}; this.videoData=M;const W=M.B?.B;W&&W.length>0?this.V=W:(M=M.getAvailableAudioTracks(),this.V=M.length>0?wEg(M):[]);for(const b of E_)this.Z[b]=M6t[b](this.V);this.Xm()}Fc(M){return this.B[M]}Xm(){let M=this.V;const W={};for(const b of E_)if(this.Z[b]){M=ns[b].o_(M,this.videoData);for(const T of E_)W[T]!==void 0||gG(M,ns[T].s$)||(W[T]=ns[b].Ik);W[b]===void 0&&(W[b]=0)}else W[b]=1;this.B=W}},E_=[0,1,2,3,4],ns={[0]:{Ik:2,s$:MKp,o_:gBG},[2]:{Ik:4,s$:cf,o_:sel},[3]:{Ik:5,s$:Qc,o_:pEJ},[1]:{Ik:3,s$:gC, o_:Y5y},[4]:{Ik:6,s$:sA,o_:$5G}};var WPJ=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);const W=this.api.j("html5_enable_audio_quality_setting_feature");Q(this.api,"getUserAudioQualitySetting",()=>W?this.getUserAudioQualitySetting():2); Q(this.api,"setUserAudioQualitySetting",b=>{W&&this.setUserAudioQualitySetting(b)}); Q(this.api,"hasHqaAudioTrack",()=>W?this.hasHqaAudioTrack():!1); Q(this.api,"getAudioQualitySettingState",()=>W?this.api.Fc(4):1); this.Kr=wAa();this.updateEnvironmentData()}getUserAudioQualitySetting(){return this.Kr}setUserAudioQualitySetting(M){this.api.dK("aqs_set",{setting:M});g.$u("yt-player-audio-quality-setting",M,3122064E3);M!==this.Kr&&(this.Kr=M,this.updateEnvironmentData(),this.hasHqaAudioTrack()&&this.api.N6(),this.api.Xm())}hasHqaAudioTrack(){const M=this.api.getVideoData()?.B?.V;return M?gG(M,W=>sA(W)):!1}updateEnvironmentData(){this.api.G().Kr=this.Kr}};var bRq=class extends D9{constructor(M){super(M);Q(this.api,"getAudioTrackState",()=>this.api.Fc(0))}};var TYL=class extends g.w{constructor(M){super({K:"button",rK:["ytp-button","ytp-autonav-toggle"],Y:{title:M.j("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"},U:[{K:"div",N:"ytp-autonav-toggle-button-container",U:[{K:"div",N:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.L=M;this.B=[];this.Z=!1;this.isChecked=!0;M.createClientVe(this.element, this,113681);this.J(M,"presentingplayerstatechange",this.V);this.listen("click",this.onClick);this.B.push(this.J(this.L,"videodatachange",this.V));this.B.push(this.J(this.L,"videoplayerreset",this.V));this.B.push(this.J(this.L,"onPlaylistUpdate",this.V));this.B.push(this.J(this.L,"autonavchange",this.A));M.j("delhi_fast_follow_autonav_toggle")&&this.element.classList.add("delhi-fast-follow-autonav-toggle");Ce(M,this.element,this);this.V()}V(){var M;if(M=this.L.getPresentingPlayerType()!==3&&g.N8(this.L)&& this.L.qe().getPlayerSize().width>=400)M=this.Zy(),M=this.L.G().j("client_respect_autoplay_switch_button_renderer")?!!M.autoplaySwitchButtonRenderer:!!M.getWatchNextResponse()?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay!==!1;M?this.Z||(this.Z=!0,this.eW(this.Z),M=this.Zy(),this.A(M.autonavState),this.L.logVisibility(this.element,this.Z)):(this.Z=!1,this.eW(this.Z))}A(M){bdp(this)?this.isChecked=M!==1:((M=M!==1)||(M=g.jQ(),M=g.he("web_autonav_allow_off_by_default")&&!M.UY(141)&&g.F("AUTONAV_OFF_BY_DEFAULT")? !1:!M.UY(140)),this.isChecked=M);Tna(this)}onClick(){this.isChecked=!this.isChecked;this.L.P_(this.isChecked?2:1);Tna(this);if(bdp(this)){const M=this.Zy().autoplaySwitchButtonRenderer;this.isChecked&&M?.onEnabledCommand?g.q8(this.L,"innertubeCommand",M.onEnabledCommand):!this.isChecked&&M?.onDisabledCommand&&g.q8(this.L,"innertubeCommand",M.onDisabledCommand)}this.L.logClick(this.element)}getValue(){return this.isChecked}Zy(){return this.L.getVideoData({playerType:1})}};var qxs=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"standardControlsInitialized",()=>{const W=new TYL(M);g.t(this,W);M.fZ(W,"RIGHT_CONTROLS_LEFT")})}};var qtS=class extends aV{constructor(M){super(M.j("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica",g.Bv.HZ);this.L=M;this.V=!1;this.B=new g.d9(()=>{g.Mw(this.element,"ytp-menuitem-highlighted")},0); this.tT=M.fT();M=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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(M);this.subscribe("select",this.A,this);this.listen(eh,this.S);g.t(this,this.B)}zv(M){M?this.V||(this.tT.OB(this),this.V=!0):this.V&&(this.tT.B3(this), this.V=!1);this.V&&this.Z(rat())}S(){g.Mw(this.element,"ytp-menuitem-highlight-transition-enabled")}A(M){var W=rat();M!==W&&(W=g.jQ(),Vn(190,M),Vn(192,!0),W.save(),g.q8(this.L,"cinematicSettingsToggleChange",M))}vY(){this.V&&this.tT.B3(this);super.vY()}};var Xxt=class extends D9{constructor(M){super(M);this.Z=!1;M.addEventListener("settingsMenuInitialized",()=>{XKP(this)}); M.addEventListener("highlightSettingsMenu",W=>{XKP(this);var b=this.menuItem;W==="menu_item_cinematic_lighting"&&(g.pY(b.element,"ytp-menuitem-highlighted"),g.pY(b.element,"ytp-menuitem-highlight-transition-enabled"),b.B.start())}); Q(M,"updateCinematicSettings",W=>{this.updateCinematicSettings(W)})}updateCinematicSettings(M){this.Z=M; this.menuItem?.zv(M);this.api.publish("onCinematicSettingsVisibilityChange",M)}};var j7p=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"applicationvideodatachange",(W,b)=>{b=b.clipConfig;W==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})})}};var Gvt=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);Q(M,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Q(M,"setCreatorEndscreenHideButton",this.Z.bind(this));this.j("web_fix_annotations")&&this.events.J(M,"annotationvisibility",W=>{this.setCreatorEndscreenVisibility(!W);this.hideButton&&g.pr(this.hideButton,W)})}setCreatorEndscreenVisibility(M){Ok(this.api.lk())?.eW(M)}Z(M){this.hideButton=M; M=W=>{W==="creatorendscreen"&&(W=Ok(this.api.lk()))&&W.Xf(this.hideButton)}; this.events.J(this.api,"modulecreated",M);M("creatorendscreen")}};var V6G=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"videodatachange",()=>{var W=this.api.getRootNode();const b=this.api.G();g.pY(W,"ytp-delhi-modern");b.j("delhi_modern_web_player_icons")&&g.pY(W,"ytp-delhi-modern-icons");b.j("delhi_modern_web_player_horizontal_volume_controls")&&g.pY(W,"ytp-delhi-horizontal-volume-controls");b.j("delhi_modern_web_player_compact_controls")&&g.pY(W,"ytp-delhi-modern-compact-controls");b.j("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.pY(W,"ytp-big-mode-consistent-pill-height");switch(cR(b.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.pY(W,"ytp-delhi-modern-with-luminosity");break;case "difference":g.pY(W,"ytp-delhi-modern-with-difference");break;case "exclusion":g.pY(W,"ytp-delhi-modern-with-exclusion")}W=this.api.isHdr()||this.api.j("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";this.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",W);j6Q(this)}); this.events.J(M,"resize",()=>{j6Q(this)})}};var Jol=class extends aV{constructor(M,W,b,T,q){const X=M.j("html5_enable_new_audio_settings_menu");super("Volumen estable",X?pCS.a4:g.Bv.a4);this.L=M;this.S=W;this.B=b;this.hasDrcAudioTrack=T;this.getDrcState=q;this.A=this.enableNewAudioSettingsMenu=this.V=!1;g.pY(this.element,"ytp-drc-menu-item");this.tT=(this.enableNewAudioSettingsMenu=X)?M.fT().xq:M.fT();M.j("html5_enable_voice_boost")?(this.A=!0,this.J(M,"onFilterAudioFeatures",this.jk)):M.addEventListener("videodatachange",this.jk.bind(this)); M.j("mta_drc_mutual_exclusion_removal")&&this.J(M,"onPlaybackAudioChange",this.jk);M.createClientVe(this.element,this,273317);this.listen("click",this.W);W=this.B()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(M=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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(M));this.subscribe("select",this.C,this);this.enableNewAudioSettingsMenu||this.A?this.jk():(this.setEnabled(this.hasDrcAudioTrack()),this.Z(W),this.tT.OB(this))}C(M){this.S(M?1:0)}jk(){if(this.enableNewAudioSettingsMenu|| this.A){var M=this.L.getPresentingPlayerType();M===2||M===3?this.V&&(this.V=!1,this.tT.B3(this)):(M=this.getDrcState(),M!==1?(M===0?(this.Z(this.B()===1),this.setEnabled(!0)):(this.Z(!1),this.setEnabled(!1)),this.V||(this.tT.OB(this),this.V=!0)):this.V&&(this.tT.B3(this),this.V=!1))}else{M=this.hasDrcAudioTrack();const W=this.B()===1&&M;this.Z(W);this.setEnabled(M)}}vY(){this.tT.B3(this);super.vY()}W(){this.L.logClick(this.element)}};var BYa=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);M.j("html5_show_drc_toggle")&&M.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new Jol(this.api,this.setDrcUserPreference.bind(this),this.getDrcUserPreference.bind(this),this.V.bind(this),this.getDrcState.bind(this)),g.t(this,this.menuItem))}); Q(this.api,"setDrcUserPreference",W=>{this.setDrcUserPreference(W)}); Q(this.api,"getDrcUserPreference",()=>this.getDrcUserPreference()); Q(this.api,"hasDrcAudioTrack",()=>this.V()); Q(this.api,"getDrcState",()=>this.getDrcState()); this.Z=g.MZ("yt-player-drc-pref")??1;this.updateEnvironmentData()}getDrcUserPreference(){return this.Z}setDrcUserPreference(M){this.api.dK("drc_set",{pref:M});g.$u("yt-player-drc-pref",M,31536E3);M!==this.Z&&(this.Z=M,this.updateEnvironmentData(),this.V()&&this.api.N6(),this.api.Xm())}updateEnvironmentData(){this.api.G().GN=this.Z===1}V(){const M=this.api.getVideoData()?.B?.V;if(!M)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.j("mta_drc_mutual_exclusion_removal")){const W=this.api.X9()?.r9?.id; return gG(M,b=>b.audio.Z&&b.r9?.id===W)}return gG(M,W=>W.audio?.Z===!0)}getDrcState(){return this.api.Fc(3)}};var DDy=class extends D9{constructor(M){super(M);this.Z={};this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"videodatachange",()=>{this.onVideoDataChange()}); this.events.J(M,g.kJ("embargo"),W=>{this.api.Wg(!0);var b=this.Z[W.id]??[];for(const T of b)this.api.hideControls(),this.api.J1("auth",2,"This video isn't available in your current playback area",$B({embargoed:1,id:W.id,idx:W.V,start:W.start})),(b=T.embargo?.onTrigger)&&g.q8(this.api,"innertubeCommand",b)})}onVideoDataChange(){const M=this.api.getVideoData(); this.api.lN("embargo",1);const W=M?.kX.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");W?.length?GDS(this,W.filter(b=>b.onEnter?.some(this.V))):M?.cueRanges&&GDS(this,M.cueRanges.filter(b=>b.onEnter?.some(this.V)))}V(M){return M.embargo!==void 0}vY(){super.vY(); this.Z={}}};var aNy=class extends D9{constructor(M){super(M);this.Z=[];this.events=new g.Cq(M);g.t(this,this.events);Q(M,"addEmbedsConversionTrackingParams",W=>{this.addEmbedsConversionTrackingParams(W)}); this.events.J(M,"veClickLogged",W=>{this.api.hasVe(W)&&(W=W.visualElement.getAsJspb(),W=g.Yy(W,2),this.Z.push(W))})}addEmbedsConversionTrackingParams(M){var W=this.api.G(); const b=W.widgetReferrer,T=W.sj,q=this.Z;let X="";const G=W.getWebPlayerContextConfig();G&&(X=G.embedsIframeOriginParam||"");b.length>0&&(M.embeds_widget_referrer=b);T.length>0&&(M.embeds_referring_euri=T);W.A&&X.length>0&&(M.embeds_referring_origin=X);G&&G.embedsFeature&&(M.feature=G.embedsFeature);q.length>0&&(W.j("embeds_web_enable_lite_experiment_control_arm_logging")?q.unshift(28572):g.Fi(g.Gh(W))&&q.unshift(159628),W=q.join(","),W=g.EL()?W:g.NI(W,4),M.source_ve_path=W);this.Z.length=0}};var EWy=class extends D9{constructor(M){super(M);Q(M,"isEmbedsShortsMode",()=>M.isEmbedsShortsMode()); Q(M,"getReelItemWatchResponse",()=>M.getVideoData({playerType:1})?.getReelItemWatchResponse()??null)}};var nWP=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"initialvideodatacreated",W=>{cB(oo(),16623);this.Z=g.nT();var b=M.G().zm&&!W.WP;wF(W)&&b?(cB(oo(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),W.getWatchNextResponse()&&(b=W.getWatchNextResponse()?.trackingParams)&&w6(b),W.getPlayerResponse()&&(W=W.getPlayerResponse()?.trackingParams)&&w6(W)):(cB(oo(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}), W.getEmbeddedPlayerResponse()&&(W=W.getEmbeddedPlayerResponse()?.trackingParams)&&w6(W))}); this.events.J(M,"loadvideo",()=>{cB(oo(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.Z})}); this.events.J(M,"cuevideo",W=>{W===1&&cB(oo(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.Z})}); this.events.J(M,"largeplaybuttonclicked",W=>{cB(oo(),27240,W.visualElement)}); this.events.J(M,"playlistnextbuttonclicked",W=>{cB(oo(),27240,W.visualElement)}); this.events.J(M,"playlistprevbuttonclicked",W=>{cB(oo(),27240,W.visualElement)}); this.events.J(M,"playlistautonextvideo",()=>{cB(oo(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}};var VKG=class extends g.gz{constructor(M,W){super();this.Z=null;this.B=W;W=[];for(let b=0;b<=100;b++)W.push(b/100);W={threshold:W,trackVisibility:!0,delay:1E3};(this.V=window.IntersectionObserver?new IntersectionObserver(b=>{b=b[b.length-1];let T=null;typeof b.isVisible==="undefined"?document.visibilityState==="visible"&&b.isIntersecting&&b.intersectionRatio>0?T=b.intersectionRatio:document.visibilityState==="hidden"?T=0:T=null:T=b.isVisible?b.intersectionRatio:0;T!=null&&(T=Math.max(T,0),T=Math.min(T, 1));this.Z=T;typeof this.B==="function"&&this.B(this.Z)},W):null)&&this.V.observe(M)}vY(){super.vY(); this.Z=null;this.V&&this.V.disconnect()}};var yot=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"applicationInitialized",()=>{JFy(this)})}};var UDP=class extends D9{constructor(M){super(M);Q(this.api,"dismissFeaturedProductOverlay",()=>{this.dismissFeaturedProductOverlay()})}dismissFeaturedProductOverlay(){this.api.publish("featuredproductdismissed")}};var CDG=class extends g.w{constructor(M){super({K:"div",rK:["ytp-player-content","ytp-iv-player-content"],U:[{K:"div",N:"ytp-free-preview-countdown-timer",U:[{K:"span",R0:"{{label}}"},{K:"span",N:"ytp-free-preview-countdown-timer-separator",R0:"\u2022"},{K:"span",R0:"{{duration}}"}]}]});this.api=M;this.Z=null;this.B=this.V=0;this.J(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}show(){super.show();this.api.logVisibility(this.element,!0)}stopTimer(){this.Z&& (this.Z.dispose(),this.Z=null)}onVideoDataChange(M){var W=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;W&&(W=BnP(W),this.api.getPlayerStateObject().Z(128)||M==="dataloaderror"||!W?(this.V=0,this.stopTimer(),this.hide()):(M=(W.remainingTimeSecs||0)*1E3,M>0&&(this.show(),this.updateValue("label",Sl(W.label)),axp(this,M))))}vY(){this.stopTimer();super.vY()}};var kvg=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"basechromeinitialized",()=>{this.Z=new CDG(M);g.t(this,this.Z);g.Im(M,this.Z.element,4);this.Z.hide()})}};var KPq=class extends g.w{constructor(M){super({K:"button",rK:["ytp-fullerscreen-edu-button","ytp-button"],U:[{K:"div",rK:["ytp-fullerscreen-edu-text"],R0:"Desliza hacia abajo para ver m\u00e1s detalles"},{K:"div",rK:["ytp-fullerscreen-edu-chevron"],U:[o0L()]}],Y:{"data-priority":"2"}});this.o0=M;this.fade=new g.Ol(this,250,void 0,100);this.V=this.Z=!1;M.createClientVe(this.element,this,61214);g.t(this,this.fade);this.J(M,"fullscreentoggled",this.zv);this.J(M,"presentingplayerstatechange",this.zv); this.listen("click",this.onClick);this.zv()}A(M){g.H(this.element,"ytp-fullerscreen-edu-button-subtle",M);M&&!this.V&&(this.o0.j("player_tooltip_data_title_killswitch")?this.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"):this.element.setAttribute("data-tooltip-title","Desliza hacia abajo para ver m\u00e1s detalles"),Ce(this.o0,this.element,this),this.V=!0)}onClick(){this.o0.logClick(this.element);g.q8(this.o0,"onFullerscreenEduClicked")}B(M){this.Z=M;this.zv()}zv(){this.o0.isFullscreen()? this.Z?this.fade.hide():this.fade.show():this.hide();this.o0.logVisibility(this.element,this.o0.isFullscreen()&&!this.Z)}};var vWl=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);Q(this.api,"updateFullerscreenEduButtonSubtleModeState",b=>{this.updateFullerscreenEduButtonSubtleModeState(b)}); Q(this.api,"updateFullerscreenEduButtonVisibility",b=>{this.updateFullerscreenEduButtonVisibility(b)}); const W=M.G();M.j("external_fullscreen_with_edu")&&W.externalFullscreen&&aU(W)&&W.controlsType==="1"&&this.events.J(M,"standardControlsInitialized",()=>{this.Z=new KPq(M);g.t(this,this.Z);M.fZ(this.Z)})}updateFullerscreenEduButtonSubtleModeState(M){this.Z?.A(M)}updateFullerscreenEduButtonVisibility(M){this.Z?.B(M)}};var mDs=class extends g.w{constructor(M){super({K:"div",N:"ytp-gated-actions-overlay",U:[{K:"div",N:"ytp-gated-actions-overlay-background",U:[{K:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",rK:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Cerrar"},U:[g.aI()]},{K:"div",N:"ytp-gated-actions-overlay-bar",U:[{K:"div",N:"ytp-gated-actions-overlay-text-container",U:[{K:"div",N:"ytp-gated-actions-overlay-title",R0:"{{title}}"},{K:"div",N:"ytp-gated-actions-overlay-subtitle", R0:"{{subtitle}}"}]},{K:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});this.api=M;this.background=this.hn("ytp-gated-actions-overlay-background");this.V=this.hn("ytp-gated-actions-overlay-button-container");this.Z=[];this.J(this.hn("ytp-gated-actions-overlay-miniplayer-close-button"),"click",()=>{g.q8(this.api,"onCloseMiniplayer")}); this.hide()}};var LPy=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.Z=new mDs(this.api);g.t(this,this.Z);this.events.J(M,"videodatachange",()=>{const W=this.api.getVideoData()?.qo;var b=this.Z;if(W){b.update({title:W.title?.content||"",subtitle:W.subtitle?.content||""});var T=W.thumbnail;let q="none";if(T?.sources){let X=0;for(const G of T.sources)G.width&&G.url&&G.width>X&&(X=G.width,q=`url(${G.url})`)}b.background.style.backgroundImage=q;nap(b,W.actionButtons||[]); b.show()}else b.hide()}); g.Im(this.api,this.Z.element,4)}};var lNQ=class extends D9{constructor(M){super(M);jY(this.api,"getSphericalProperties",()=>this.getSphericalProperties()); jY(this.api,"setSphericalProperties",(...W)=>{this.setSphericalProperties(...W)}); XS(this.api,"getSphericalProperties",()=>this.api.getPresentingPlayerType()===2?{}:this.getSphericalProperties()); XS(this.api,"setSphericalProperties",(...W)=>{this.api.getPresentingPlayerType()!==2&&this.setSphericalProperties(...W)})}getSphericalProperties(){const M=g.tp(this.api.lk()); return M?M.getSphericalProperties():{}}setSphericalProperties(M){if(M){var W=g.tp(this.api.lk());W&&W.setSphericalProperties(M,!0)}}};var t6J=class extends D9{constructor(M){super(M);Q(M,"createClientVe",this.createClientVe.bind(this));Q(M,"createServerVe",this.createServerVe.bind(this));Q(M,"destroyVe",this.destroyVe.bind(this));Q(M,"hasVe",this.hasVe.bind(this));Q(M,"logClick",this.logClick.bind(this));Q(M,"logVisibility",this.logVisibility.bind(this));Q(M,"setTrackingParams",this.setTrackingParams.bind(this))}createClientVe(M,W,b,T=!1){this.api.createClientVe(M,W,b,T)}createServerVe(M,W,b=!1){this.api.createServerVe(M,W,b)}setTrackingParams(M, W){this.api.setTrackingParams(M,W)}logClick(M,W){this.api.logClick(M,W)}logVisibility(M,W,b){this.api.logVisibility(M,W,b)}hasVe(M){return this.api.hasVe(M)}destroyVe(M){this.api.destroyVe(M)}};var ZRQ=class{constructor(M,W){this.PP=M;this.policy=W;this.playbackRate=1}setPlaybackRate(M){this.playbackRate=Math.max(1,M)}getPlaybackRate(){return this.playbackRate}};var INL=class{constructor(M,W,b,T){this.lV=M;this.HY=W;this.policy=b;this.logger=T;this.Mw=[];this.h5=[];this.Z=-1;this.JT=null;this.X=this.timestampOffset=0;this.V=10;this.S=new Set;this.k9={bq:q=>this.bq(q)}; this.A=W.Me?0:1;b.T2>0&&(this.V=b.T2)}yz(M){this.S.add(M.info.Kp);this.Z=vaP(this,this.h5,this.Mw,M,this.Z);this.B=M;this.X=(0,g.u)()}W(){if(this.h5.length===0||this.policy.bU&&this.Z<0)return null;var M=this.h5[this.Z]?this.h5[this.Z].formatId:null;return M?(M=this.HY.B.get(yU(M)))?M.info:null:null}gK(M){m5p(this,this.h5,"og");L6g(this,M);m5p(this,this.h5,"trim");const {h5:W,Mw:b}=lxp(this);M=[];for(let T=0;T0){const B=uS(V,X);B>=0&&(J=(V.end(B)-X+.1)*1E3)}M.push({formatId:g.hE(q.info.Tv.info,this.HY.Me),Dd:q.info.Dd,sequenceNumber:q.info.Kp+this.A,cN:G,OV:q.info.V,PG:J})}return{h5:W,Ku:M}}Zs(M,W){W?.CB||(this.Mw=[]);this.policy.bU?(M=g.k5(this.h5,{startTimeMs:M*1E3},(b,T)=>b.startTimeMs-T.startTimeMs),this.Z!==M&&(this.Z=-1,this.B=void 0)):(L6g(this,!0), this.Z=kDa(this.h5,M*1E3))}sY(M){this.JT=M}BY(){return this.B?.info}bq(M){const W=g.hE(M.info.Tv.info,this.HY.Me),b=M.info.Kp+this.A; var T=M.info.startTime*1E3;if(this.policy.jT)try{T=this.policy.jT?g.dx(M)*1E3:M.info.startTime*1E3}catch(G){Math.random()>.99&&this.logger&&(T=Ca(M.V).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:M.info.lw(),encodedDataView:g.Id(T,4)})),T=M.info.startTime*1E3}const q=M.info.clipId;let X=this.policy.jT?g.oXs(M)*1E3:M.info.duration*1E3;this.policy.jT&&(T<0||X<0)&&(this.logger&&(this.logger({missingSegInfo:M.info.lw(),startTimeMs:T,durationMs:X}),this.policy.cH||(T<0&&(T=M.info.startTime* 1E3),X<0&&(X=M.info.duration*1E3))),this.policy.cH&&(T<0&&(T=M.info.startTime*1E3),X<0&&(X=M.info.duration*1E3)));return{formatId:W,Kp:b,startTimeMs:T,clipId:q,uB:X}}C(){this.h5=[];this.Mw=[];this.S.clear();this.Z=-1;this.B=void 0}D(){this.B=void 0}KW(M){this.timestampOffset=M}O(M){return this.S.has(M)}};var NYP=class{constructor(M,W,b,T,q){this.loader=M;this.HY=W;this.videoTrack=b;this.audioTrack=T;this.policy=q;this.seekCount=this.targetTime=0;this.A=!1;this.B=null;this.V=0;this.Z=this.HY.isManifestless&&!this.HY.f7}seek(M,W){M!==this.targetTime&&(this.seekCount=0);this.targetTime=M;const b=this.videoTrack.Z,T=this.audioTrack.Z,q=this.audioTrack.JT,X=IxP(this,this.videoTrack,M,this.videoTrack.JT,W);W=IxP(this,this.audioTrack,this.policy.XX?M:X,q,W);M=Math.max(M,X,W);this.A=!0;this.HY.isManifestless&& (NnL(this,this.videoTrack,b),NnL(this,this.audioTrack,T));return M}isSeeking(){return this.A}A$(M){this.V=M}},ZdG=2/24;var HRG=0;var yY,yk=class{constructor(){this.data=new Uint8Array(2048);this.pos=0;yY||(yY=ZU("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}add(M){if(this.pos+20>this.data.length){const W=new Uint8Array(this.data.length*2);W.set(this.data);this.data=W}for(;M>31;)this.data[this.pos++]=yY[(M&31)+32],M>>=5;this.data[this.pos++]=yY[M|0]}Ba(){return g.La(this.data.subarray(0,this.pos))}reset(){this.pos=0}};var fNP=class{constructor(M,W){this.Cp=M;this.requestNumber=++HRG;this.Z=this.now();this.X=this.gK=NaN;this.W=this.Z;this.B=this.Hr=this.S=0;this.C=this.Z;this.d9=this.yz=this.xk=this.k_=this.EX=this.lV=this.V=this.A=0;this.O=this.isActive=!1;this.aT=this.cP=0;this.k9={ZzK:()=>this.eA}; this.PP=W.PP;this.snapshot=Dd(this.PP);this.policy=this.PP.V;this.ZM=!!W.ZM;this.zE=W.zE;this.fu=W.fu||0;this.yW=W.yW||0;W.uJ&&(this.An=new yk);this.eA=W.eA??!1;this.ZM||d3p(this.PP)}HL(){this.gK=this.now();x5G(this.PP,this.gK);this.Cp.HL()}cj(M,W){const b=this.policy.V?(0,g.u)():0;nj(this,M,W);M-this.C<10&&this.V>0||this.sY(M,W);this.Cp.cj(M,W);this.policy.V&&(M=(0,g.u)()-b,this.aT+=M,this.cP=Math.max(M,this.cP))}sY(M,W){const b=(M-this.C)/1E3,T=W-this.B;this.ZM||(aA(this.PP,b,T),this.zE(b,T));this.C= M;this.B=W}lf(){this.lV&&F6s(this);this.Cp.lf()}lS(M){this.lV||(this.lV=this.S-this.Hr+M,this.EX=this.S,this.k_=this.W)}Zs(M=this.W,W=this.S){this.V>0||(this.X=M,this.V=W,this.O=this.isActive=!0)}bV(){return this.yW||2}m$(){}D(){const M={rn:this.requestNumber,rt:(this.W-this.Z).toFixed(),lb:this.S,stall:(1E3*this.A).toFixed(),ht:(this.gK-this.Z).toFixed(),elt:(this.X-this.Z).toFixed(),elb:this.V,d:this.An?.Ba()};this.url&&yFy(M,this.url);this.policy.V&&(M.mph=this.cP.toFixed(),M.tph=this.aT.toFixed()); M.ulb=this.xk;M.ult=this.yz;return M}now(){return(0,g.u)()}deactivate(){this.isActive&&(this.isActive=!1)}};var U_=class extends fNP{constructor(M,W){super(M,W);this.FT=this.s2=!1;this.MK=this.BY=Infinity;this.Lp=NaN;this.Y9=!1;this.OY=NaN;this.GY=this.jT=this.wK=0;this.bO=W.bO||1;this.Vt=W.Vt||this.bO;this.xJ=W.xJ;this.Kp=W.Kp;this.qZ=W.qZ;hiG(this);this.WP(this.Z);this.nz=(this.OY-this.Z)/1E3}D(){const M=super.D();M.pb=this.bO;M.pt=(1E3*this.nz).toFixed();M.se=this.GY;return M}VZ(){const M=this.Cp;this.Ds||(this.Ds=M.VZ?M.VZ():1);return this.Ds}J0(){return this.xJ?this.VZ()!==1:!1}fv(M,W,b){if(!this.s2){this.s2= !0;if(!this.ZM){nj(this,M,W);this.sY(M,W);var T=this.VZ();this.GY=b;if(!this.ZM)if(T===2){T=M-this.X0)||Uh(this,T,W),this.V>0&&Ef(this.PP,W,this.A));M=(M-this.Z)/1E3||.01;this.policy.D&&!(this.V>0)||nM(this.PP, M,this.B,AFy(this),this.eA)}this.deactivate()}}ib(M,W,b){b&&(this.Ds=2);M<0&&this.yW&&(M=this.yW);W?this.wK+=M:this.jT+=M}bV(){return this.jT||this.wK||super.bV()}sY(M,W){const b=(M-this.C)/1E3,T=W-this.B,q=this.VZ();this.isActive?q===1&&((T>0||this.policy.S)&&(b>.2||T<1024)?(this.A+=b,T>0&&b>.2&&Uh(this,this.fu?b:.05,T),this.FT=!0):T>0&&(Uh(this,b,T),this.FT=!0)):W&&W>=this.policy.Z&&this.Zs(M,W);super.sY(M,W)}XX(M){if(!this.ZM){nj(this,M,this.S);var W=(M-this.Z)/1E3;this.VZ()!==2&&this.V>0&&(this.A+= (M-this.C)/1E3,Ef(this.PP,this.B,this.A));nM(this.PP,W,this.B,AFy(this),this.eA,!0);M=(M-this.C)/1E3;aA(this.PP,M,0);this.zE(M,0)}}Zs(M=this.W,W=this.S){if(!(this.V>0)&&(super.Zs(M,W),this.VZ()===1)){W=(this.gK-this.Z)/1E3;var b=(M-this.gK)/1E3;this.xJ&&Cj(this,this.now());this.Y9||this.ZM||(this.yW&&(b=Math.max(0,b-this.yW)),M=this.PP,M.D.DJ(1,W),M.yz.DJ(1,b))}}A5(){this.xJ&&Cj(this,this.now());return this.Lp}KB(){var M;if(M=this.B>this.Vt)M=(M=this.B)?M>=this.policy.Z:!1;return M}vP(){return this.OY}WP(M= this.now()){let W;if(this.xJ){Cj(this,M);if(this.Ds?this.J0():this.BY!==this.MK){if(W=this.MK,M0?b+M:b+Math.max(M,W)}EY(){return this.now()-this.X}oT(){return(this.B-this.V)*1E3/this.EY()||0}x_(){return this.X}};var Cs=class{constructor(M){this.Cp=M;this.Z=new IR}feed(M){E6(this.Z,M);this.Le()}Le(){if(this.A){if(!this.Z.totalLength)return;const {V2:W,eh:b}=this.Z.split(this.B-this.V);if(!this.Cp.lS(this.A,W,this.V,this.B))return;this.V+=W.totalLength;this.Z=b;this.V===this.B&&(this.A=this.B=this.V=void 0)}for(;;){var M=0;let W,b;[W,M]=Odl(this.Z,M);[b,M]=Odl(this.Z,M);if(W<0||b<0)break;if(!(M+b<=this.Z.totalLength)){if(!(this.Cp.lS&&M+1<=this.Z.totalLength))break;({eh:M}=this.Z.split(M));this.Cp.lS(W,M,0, b)&&(this.A=W,this.V=M.totalLength,this.B=b,this.Z=new IR([]));break}const {V2:T,eh:q}=this.Z.split(M).eh.split(b);this.Cp.h4(W,T);this.Z=q}}dispose(){this.Z=new IR}};var Rts=class{constructor(M,W){this.info=M;this.callback=W;this.state=1;this.Bv=this.A0=!1;this.qL=null}S4(){return 0}GZ(){return null}zF(){return null}t6(){return this.state>=1}isComplete(){return this.state>=3}Bi(){return this.state===5}onStateChange(){}LN(M){const W=this.state;this.state=M;this.onStateChange(W);this.callback&&this.callback(this,W)}g5(M){M&&this.state{M+= `${W.lw()}.`}); return M.slice(0,-1)}dispose(){this.ST()||(this.info.g9[0].Tv.gK=!1,this.LN(-1))}FO(){return 0}};var oat=class{constructor(M,W,b,T={}){this.policy=W;this.Cp=b;this.status=0;this.Z=new IR;this.V=0;this.ST=this.A=this.B=!1;this.xhr=new XMLHttpRequest;this.xhr.open(T.method||"GET",M);if(T.headers){M=T.headers;for(const q of Object.keys(M))this.xhr.setRequestHeader(q,M[q])}this.xhr.withCredentials=!0;this.xhr.onreadystatechange=()=>this.yx(); this.xhr.onload=()=>this.onDone(); this.xhr.onerror=()=>this.onError(); this.xhr.fetch(q=>{this.Z.append(q);this.V+=q.length;q=(0,g.u)();this.Cp.cj(q,this.V)},()=>{},T.body||null)}yx(){this.xhr.status&&(this.status=this.xhr.status); this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Cp.HL()}onError(){this.B=!0;this.onDone()}onDone(){this.ST||(this.A=!0,this.Cp.lf())}kd(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}getResponseHeader(M){try{return this.xhr.getResponseHeader(M)}catch{return""}}ND(){return+this.getResponseHeader("content-length")}sJ(){return this.V}lM(){return this.status>=200&&this.status<300&&!!this.V}X8(){return this.Z.totalLength>0}CP(){const M=this.Z;this.Z=new IR;return M}eY(){return this.Z}abort(){this.ST= !0;this.xhr.abort()}XR(){return!0}Ru(){return this.B}bl(){return""}};var roG=class{constructor(M,W){this.V=(new TextEncoder).encode(M);this.Z=(new TextEncoder).encode(W)}};var d5q=class{constructor(M,W){this.Z=M;this.Cp=W;this.loaded=this.status=0;this.error="";M=km(this.Z.get("range")||"");if(!M)throw Error("bad range");this.range=M;this.V=new IR;this.run().then(()=>{this.Cp.lf()},b=>{this.error=`${b}`||"unknown_err"; this.Cp.lf()})}async run(){this.status=200; const M=this.Z.get("docid"),W=GG(this.Z.get("fmtid")||""),b=this.Z.get("lmt")||"0",T=+(this.Z.get("csz")||0);if(!M||!W||!T)throw Error("Invalid local URL");let q;this.Z.get("ck")&&this.Z.get("civ")&&(q=new roG(this.Z.get("ck"),this.Z.get("civ")));const X=this.range;var G=Math.floor(X.start/T);const V=Math.floor(X.end/T);for(;G<=V;G++){var J=await prt(M,W,b,G,q);if(J===void 0)throw Error("invariant: data is undefined");var B=G*T;const D=Math.max(0,X.start-B);B=Math.min(X.end+1,(G+1)*T)-(D+B);J=new Uint8Array(J.buffer, D,B);this.V.append(J);this.loaded+=B;this.loaded{if(q)if(this.status=q.status,q.ok&&q.body&&this.status!==204)this.status=this.status||242,this.B=q.body.getReader(),this.ST()?this.B.cancel().catch(()=>{}):(this.responseHeaders=q.headers,this.Cp.HL(),eit(this)); else this.onDone();else this.onError(Error("null_response"))}; this.W=q=>{const X=(0,g.u)();this.ST()||(q.done?(this.B=void 0,this.onDone()):(q=q.value,this.V+=q.length,this.Z.append(q),eit(this),this.Cp.cj(X,this.V)))}; this.onError=q=>{this.errorMessage=String(q);this.S=!0;this.onDone()}; this.Z=new IR;this.A=window.AbortController?new AbortController:void 0;this.start(M)}start(M){const W={credentials:"include",cache:"no-store"};Object.assign(W,this.C);this.A&&(W.signal=this.A.signal);M=new Request(M,W);fetch(M).then(this.D,this.onError).then(void 0,NH)}onDone(){this.ST()||this.Cp.lf()}getResponseHeader(M){return this.responseHeaders?this.responseHeaders.get(M):null}kd(){return!!this.responseHeaders}sJ(){return this.V}ND(){return+this.getResponseHeader("content-length")}lM(){return this.status>= 200&&this.status<300&&!!this.V}X8(){return!!this.Z.totalLength}CP(){const M=this.Z;this.Z=new IR;return M}eY(){return this.Z}ST(){return this.aborted}abort(){this.B&&this.B.cancel().catch(()=>{}); this.A&&this.A.abort();this.aborted=!0}XR(){return!0}Ru(){return this.S}bl(){return this.errorMessage}};var Q6L=class{constructor(M,W,b={}){this.Cp=W;this.V=this.status=0;this.ST=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(b.method||"GET",M);if(b.headers){M=b.headers;for(var T of Object.keys(M))this.xhr.setRequestHeader(T,M[T])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=q=>{this.yx(q)}; T=OE(q=>{this.onDone(q)}); this.xhr.addEventListener("load",T,!1);this.xhr.addEventListener("error",T,!1);b.body?this.xhr.send(b.body):this.xhr.send();this.xhr.addEventListener("progress",OE(q=>{this.onProgress(q)}),!1)}onDone(){if(!this.ST){this.status=this.xhr.status; try{this.response=this.xhr.response,this.V=this.response.byteLength}catch{}this.Z=!0;this.Cp.lf()}}yx(){this.xhr.readyState===2&&this.Cp.HL()}onProgress(M){this.ST||(this.status=this.xhr.status,this.Z||(this.V=M.loaded),this.Cp.cj((0,g.u)(),M.loaded))}kd(){return this.xhr.readyState>=2}getResponseHeader(M){try{return this.xhr.getResponseHeader(M)}catch{return g.lR(Error(`Could not read XHR header ${M}`)),""}}ND(){return+this.getResponseHeader("content-length")}sJ(){return this.V}lM(){return this.status>= 200&&this.status<300&&this.Z&&!!this.V}X8(){return this.Z&&!!this.response&&!!this.response.byteLength}CP(){const M=this.response;this.response=void 0;return new IR([new Uint8Array(M)])}eY(){return new IR([new Uint8Array(this.response)])}abort(){this.ST=!0;this.xhr.abort()}XR(){return!1}Ru(){return!1}bl(){return""}};var rry=class extends g.gz{constructor(M,W){super();this.policy=M;this.g9=W;this.V=0;this.Z=null;this.wU=[];this.B=null;this.k9={uf:()=>this.g9}; this.g9.length===1||g.sq(this.g9,b=>!!b.range)}jh(){if(!this.wU.length)return[]; const M=this.wU;this.wU=[];this.B=g.zS(M).info;return M}iI(){return this.wU}vY(){super.vY();this.Z=null;this.wU.length=0;this.g9.length=0;this.B=null}};var xDy=class extends g.gz{constructor(M,W,b,T,q,X,G,V,J=!1){super();this.Cp=M;this.policy=W;this.Ix=b;this.Vc=T;this.timing=q;this.logger=X;this.A=G;this.T8=V;this.C=J;this.lastError=null;this.Z=0;this.S=!1;this.B=0;this.V=new g.d9(this.W,this.policy.k_,this)}W(){if(!this.ST()){var M=(0,g.u)(),W=!1;if(this.policy.sj){var b=this.timing.V>0?this.timing.X:this.timing.Z;this.policy.qo&&this.B&&(b=this.B);M=M-b-(this.policy.Ug?this.policy.s7:this.timing.bV()*1E3);b=J5(vJ(this),!1);M>=2E3*b?W=!0:M>=this.policy.Xn* b&&(this.Z=this.policy.aZ)}else if(this.timing.V>0){if(this.C){this.policy.fv&&(this.Z=0);return}M=this.timing.vP();this.timing.WP();this.timing.vP()-M>=this.policy.k_*.8?(this.Z++,W=this.Z>=5):this.Z=0}else W=M-this.timing.A5(),this.policy.aZ&&W>0&&(this.Z+=1),M=J5(vJ(this),!1)*this.policy.K5,W=W>M*1E3;this.Z>0&&this.Cp.h0();W?this.Zr():this.V.start()}}Zr(){this.S=!0;this.Cp.IQ();this.lastError="net.timeout";mi(this)}canRetry(M){const W=vJ(this);M=M?this.policy.xn:this.policy.dS;return W.timedOut< this.policy.PC&&W.Z{this.LN(N)}, LvK:()=>this.qL, h0Y:N=>{this.qL=N}, yjz:N=>{this.Iq=N}, vSp:N=>{this.rG.lastError=N}, uE:()=>this.xhr}; this.timing=new U_(this,b);this.ER=G;this.NZ=a;this.wm=E;this.Ix=g.rx(this.info,this.policy,T);this.Ix.set("rn",this.SG().toString());this.Ix.set("rbuf",(V*1E3).toFixed().toString());this.ER&&this.Ix.set("smb","1");this.policy.xL&&J&&this.Ix.set("pot",J);D&&this.Ix.set("bbs",D);this.policy.useUmp&&!hz(59,this.Ix.eH)&&(this.Gu=new Cs(this),this.Ix.set("ump","1"),this.Ix.set("srfvp","1"));if(M=this.policy.Tk?this.policy.zJ&&!isNaN(this.info.qZ)&&this.info.qZ>this.policy.L5?!1:!0:!1)W=null,this.policy.yT&& this.policy.ub?W=[1]:n&&(W=[]),W!=null&&(this.policy.Hn&&W.push(2),this.Ix.set("defsel",W.join(",")));this.rG=new xDy(this,this.policy,this.Ix,this.info.Vc,this.timing,this.logger,T,B);this.Ju=X||null;this.Bv=Kwq(this);gaP(this.rG);T=void 0;if(this.policy.n2||this.Gu||this.policy.lV)T={method:"POST"},X=(0,g.Ba)([120,0]),B={},l&&(l=HJ(void 0,l),B.jd=l),this.policy.NI&&this.wm&&(B.videoPlaybackUstreamerConfig=this.wm),this.policy.lV&&(l=this.info.A)&&Object.assign(B,l),Object.keys(B).length>0?T.body= g.Sr(B,g.CW):T.body=X;this.NZ&&this.wm&&(this.Ix.set("iwts","1"),T={method:"POST"},l=g.Sr({Qp:{K4:this.NZ*1E3},jI:this.info.A?.jI||void 0,videoPlaybackUstreamerConfig:this.wm},g.CW),T.body=l);try{this.xhr=kH(this.Ix,this.policy.W,this.timing,M,T),this.rG.V.start(),C&&(this.cL=new g.d9(this.Po,C,this),this.cL.start(C+(this.timing.PP.D.Hx()||0)*1E3)),g.xS(()=>{})}catch(N){vCL(this,N,!0)}}SG(){return this.timing.requestNumber}WF(){return this.Ix.WF()}Ag(){const M=pKG(this.rG); if(this.Gu){var W=this.Gu,b=W.Z.totalLength;M.ulen=b;b>0&&(W=kE(W.Z,0),M.ubyte=W,b===1&&W===0&&(M.b248180278=!0))}this.Iq&&(M.rc=this.policy.Ek?this.Iq:this.Iq.toString());this.policy.Y9&&this.H0&&(M.tr=this.H0);M.itag=this.info.g9[0].Tv.info.itag;M.ml=`${+this.info.g9[0].Tv.Z()}`;M.sq=`${this.info.g9[0].Kp}`;this.Ix&&(M.ifi=`${+Ht(50,this.info.Vc.V)}`);this.Iq!==410&&this.Iq!==500&&this.Iq!==503||(M.fmt_unav="true");(b=this.errorMessage||this.xhr?.bl())&&(M.msg=b);this.ER&&(M.smb="1");this.info.isDecorated()&& (M.sdai="1");return M}jU(){return ziJ(this.timing)}bl(){return this.xhr.bl()||""}KB(){return this.isComplete()||this.timing.KB()}cj(){!this.ST()&&this.xhr&&(this.Iq=this.xhr.status,this.policy.RQ&&this.qL&&this.y4(!1),this.SA()?this.g5(2):!this.yO&&this.KB()&&(this.g5(),this.yO=!0))}HL(){if(!this.ST()&&this.xhr){if(!this.z2&&this.xhr.kd()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var M=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.z2=((0,g.u)()-M)/1E3}this.xhr.kd()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&& this.policy.D2&&!g2p()&&g.$u("yt-player-headers-readable",!0,2592E3);M=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var W=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.cL?.stop();this.xm=M||this.xm;this.TT=W||this.TT}}lf(){var M=this.xhr;!this.ST()&&M&&(this.Iq=M.status,M=this.Bw(M),this.policy.Y9&&this.cL?.stop(),M===5?mi(this.rG):this.LN(M),this.rG.V.stop())}Bw(M){mcG(this);if(Lj(this.rG,this.xhr.status,this.oN?this.timing.O||this.uX:this.xhr.lM(),!1,this.H1))return 5;var W= "";lF(this.rG,this.xhr)&&(W=wKp(this.rG,this.xhr));if(W)return VU(vJ(this.rG)),this.info.h2(this.Ix,W),3;W=M.sJ();if(this.Gu){this.y4(!0);mcG(this);if(Lj(this.rG,this.xhr.status,this.timing.O||this.uX,!1,this.H1))return 5;if(!this.Fq){if(this.uX)return VU(vJ(this.rG)),3;this.rG.lastError="net.closed";return 5}}else{if(Lj(this.rG,this.xhr.status,this.xhr.lM(),!1,this.H1))return 5;var b=this.info.B;if(b&&b!==W||M.Ru())return this.rG.lastError="net.closed",5;this.y4(!0)}b=PyJ(this)?M.getResponseHeader("X-Bandwidth-Est"): 0;if(M=PyJ(this)?M.getResponseHeader("X-Bandwidth-Est3"):0)this.aj=!0,this.policy.MX&&(b=M);s6P(this.rG,W,b?Number(b):0,this.info.g9[0].type===5);return 4}canRetry(){this.ST();const M=this.info.isDecorated();return this.rG.canRetry(M)}onStateChange(){this.isComplete()&&(this.policy.xi?this.IQ():this.timing.deactivate())}Zr(){this.rG.Zr()}h0(){this.callback&&this.callback(this,this.state)}ea(){return this.rG.ea()}dispose(){super.dispose();this.rG.dispose();this.cL?.dispose();this.policy.xi||this.IQ()}IQ(){this.xhr&& this.xhr.abort();this.timing.deactivate()}jh(){if(!this.iI().length)return[];this.A0=!0;return this.qL.jh()}SA(){return this.state<1?!1:this.qL&&this.qL.wU.length||this.xhr?.X8()?!0:!1}iI(){this.y4(!1);return this.qL?this.qL.iI():[]}y4(M){try{if(M||this.xhr.kd()&&this.xhr.X8()&&!lF(this.rG,this.xhr)&&!this.Bv)this.qL||(this.qL=new rry(this.policy,this.info.g9)),this.xhr.X8()&&(this.Gu?this.Gu.feed(this.xhr.CP()):Kj(this.qL,this.xhr.CP(),M&&!this.xhr.X8()))}catch(W){this.Gu?vCL(this,W):g.lR(W)}}h4(M, W){switch(M){case 21:({eh:M}=W.split(1));Lwy(this,M);break;case 22:this.Fq=!0;Kj(this.qL,new IR([]),!0);break;case 43:({redirectUrl:M}={redirectUrl:hd(new Nq(W),1)});M&&(this.info.h2(this.Ix,M),this.uX=!0);break;case 45:const {MS:b,dR:T}=KW(new Nq(W));b&&T&&(this.L1=b/T);break;case 44:this.oY=dwt(new Nq(W));!this.timing.O&&this.oY?.action===4&&this.oY?.DE?.oN&&(this.oN=this.oY.DE.oN);break;case 53:this.policy.Y9&&({Vq:M}=OcS(new Nq(W)),M&&(this.cL||(this.Vq=M,this.cL=new g.d9(this.Po,M,this)),this.cL.start())); break;case 60:this.JJ=kB(new Nq(W));break;case 58:if(M=ajg(new Nq(W)))this.um=M,M.um===3&&(this.H1=!0)}}lS(M,W,b,T){b||this.timing.lS(T);if(M!==21)return!1;if(M=this.policy.RQ)if(M*=this.info.g9[0].Tv.info.sB,W.totalLength+b!==T&&W.totalLength0)return!1;if(!this.xhr.kd())return!0; if(this.Gu)var M=!this.info.B;else this.xhr.ND()?M=!1:(M=this.xhr.getResponseHeader("content-type"),M=M==="audio/mp4"||M==="video/mp4"||M==="video/webm");if(!M)return!1;if(isNaN(this.info.qZ)){M=this.xhr.getResponseHeader("x-head-seqnum");const W=this.timing.policy.W?1:0;if(M&&Number(M)>this.info.g9[0].Kp+W)return!1}return!0}FO(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}GZ(){this.xhr&&(this.xm=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.xm}zF(){this.xhr&&(this.TT= Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.TT}QW(){return this.rG.QW()}Po(){if(!this.ST()&&this.xhr){this.H0="heartbeat";var M=this.rG;M.Z+=2;this.h0()}}};var kl=class extends fNP{constructor(M,W){super(M,W);this.MK=!0;this.BY=!1;this.jT=this.Lp=0;this.wK=NaN}sY(M,W){const b=(M-this.C)/1E3,T=W-this.B;this.V>0?T>0&&(this.BY&&(b>.2||T<1024?(this.A+=b,b>.2&&lst(this,.05,T)):lst(this,b,T)),this.MK&&(this.Lp+=T,this.jT+=b)):W>this.policy.Z&&this.Zs(M,W);super.sY(M,W)}fv(M,W){nj(this,M,W);this.sY(M,W);this.BY&&(W=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.V>0&&Ef(this.PP,this.Lp,this.A),M=(M-this.Z)/1E3||.01,this.policy.D&&!(this.V>0)|| nM(this.PP,M,this.B,W,!1))}XX(M){nj(this,M,this.S);var W=(M-this.C)/1E3;aA(this.PP,W,0);this.zE(W,0);!this.BY&&this.V>0||(W=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.V>0&&(this.A+=(M-this.C)/1E3,Ef(this.PP,this.Lp,this.A)),nM(this.PP,(M-this.Z)/1E3||.01,this.B,W,!1,!0))}IC(M){M=M.yw||2147483647;(M&2)!==2&&(this.MK=!1);(M&1)===1&&(this.BY=!0)}vk(M){M=M.yw||2147483647;(M&2)===2&&(this.MK=!1);(M&1)===1&&(this.BY=!1)}x_(){return this.X}EY(){const M=this.MK?this.now()-this.C:0;return Math.max(this.jT* 1E3+M,1)}oT(){return this.Lp*1E3/this.EY()}Zs(M=this.W,W=this.S){this.V>0||(super.Zs(M,W),W=this.PP,M=(M-this.gK)/1E3,W.D.DJ(1,(this.gK-this.Z)/1E3),W.yz.DJ(1,M))}m$(M){this.wK=M}D(){const M=super.D();M.rbw=this.oT();M.rbe=+this.MK;M.gbe=+this.BY;M.ackt=(this.wK-this.Z).toFixed();return M}WP(){}vP(){return NaN}A5(){return this.Z+this.snapshot.delay*1E3}};var FPy=class{constructor(M,W){this.Cp=W;this.V={};this.logger=new g.uk(M)}h4(M,W){switch(M){case 20:M=new Nq(W);M={dM:rr(M,1),videoId:hd(M,2),itag:rr(M,3),lmt:rr(M,4),xtags:hd(M,5),w5:rr(M,6),yf:Fm(M,8),hR:rr(M,9),dpz:rr(M,10),startMs:rr(M,11),durationMs:rr(M,12),wF:rr(M,14),timeRange:Ad(M,15,nW),Dd:rr(M,16),Te:rr(M,17),gQ:rr(M,20),E_:Ad(M,21,NkL),clipId:hd(M,1E3)};this.W(M);break;case 21:this.C(W,!1);break;case 22:this.wr(W);break;case 31:M=Hk(W,xwP);this.Cp.cU(M);break;case 52:M=Hk(W,Psg);this.Cp.E4(M); break;case 69:M={TZ:uo(new Nq(W),1,tDg)};this.Cp.Pj(M);break;case 65:M=Hk(W,Dwt);this.Cp.MR(M);break;default:this.S(M,W)}}W(){}S(){}};var iRy=new Set([53,49,50]),htL=class extends FPy{constructor(M){super("sabr",M);this.Cp=M;this.Z=[]}S(M,W){izL(this.Cp)&&!iRy.has(M)?this.Z.push({id:M,data:W}):tfa(this,M,W)}pf(M){M=new Nq(M);M={Ozn:uo(M,1,E5),Xxp:uo(M,2,E5)};this.Cp.pf(M)}Vo(M){var W=new Nq(M);M=z9(W,1);var b=z9(W,2);W=z9(W,3);this.Cp.Vo(M,b,W)}Wh(M){M=KW(new Nq(M));this.Cp.Wh(M)}AA(M){M=Hk(M,hbp);this.Cp.AA(M)}D_(M){M=new Nq(M);M={videoId:hd(M,1),formatId:Ad(M,2,E5),endTimeMs:rr(M,3),hkk:rr(M,4),mimeType:hd(M,5),S9:Ad(M,6,ZcG), indexRange:Ad(M,7,ZcG),B2:Ad(M,8,IjL)};this.Cp.D_(M)}Zu(M){M=new Nq(M);M={type:rr(M,1),scope:rr(M,2),value:io(M,3),sendByDefault:Fm(M,4),writePolicy:rr(M,5)};this.Cp.Zu(M)}TR(){this.Cp.TR()}CU(M){M=FHq(new Nq(M));this.Cp.CU(M)}Qr(M){M=OcS(new Nq(M));this.Cp.Qr(M)}Bk(M){M=dwt(new Nq(M));this.Cp.Bk(M)}q$(M){M={redirectUrl:hd(new Nq(M),1)};this.Cp.q$(M)}C(M){const W=kE(M,0);if(M.totalLength!==1){({eh:M}=M.split(1));var b=this.V[W]||null;b&&this.Cp.YZ.Z(W,b,M)}}wr(M){M=kE(M,0);const W=this.V[M]||null; W&&this.Cp.wr(M,W)}W(M){const W=M.dM,b=M.yf,T=M.w5,q=M.Te,X=M.Dd,G=M.hR,V=M.startMs,J=M.durationMs,B=M.timeRange,D=M.wF,a=M.gQ,E=M.clipId,n=M.E_,C=yU(M);M=DKp.has(T0[`${M.itag}`]);this.V[W]=C;let l=-1;V&&a&&B?.timescale&&(l=V/1E3+a/B.timescale);this.Cp.ib(C,M,l,{dM:W,yf:!!b,w5:T??-1,hR:G??-1,startMs:V??-1,durationMs:J??-1,wF:D,Te:q,Dd:X,clipId:E,timeRange:B,E_:n})}IC(M){M={yw:rr(new Nq(M),1)};this.Cp.IC(M)}vk(M){M={yw:rr(new Nq(M),1)};this.Cp.vk(M)}Kq(M){M=ajg(new Nq(M));this.Cp.Kq(M)}Ir(M){M={Mi:Ad(new Nq(M), 1,uTL)};this.Cp.Ir(M)}onSnackbarMessage(M){M=rr(new Nq(M),1);this.Cp.onSnackbarMessage(M)}hA(M){M=new Nq(M);M={reloadPlaybackParams:Ad(M,1,Bkq),qc:Fm(M,2)};this.Cp.hA(M)}La(){for(const {id:M,data:W}of this.Z)tfa(this,M,W);this.Z=[]}};var Aot=class extends g.gz{constructor(M){super();this.C=M;this.logger=new g.uk("onesie");this.ag=new Map;this.A=this.B=!1;this.iN=this.HY=null;this.S=!1}NA(){return Array.from(this.ag.keys())}UL(M){return this.ag.has(M)}uW(M){this.ag.get(M).Zz=!0}D(){let M=0;const W=this.NA();for(let b=0;b0||!b[0].range&&D.iH)q=void 0,b=b[0],X=D.K1,T=D.data,b.range||(q=D.iH),q=new eV(Vwg(b,b.Z+X,T.totalLength,q),T),D.K1+=q.info.V,W.Uu.push(q);W.Hg.get(B).data=new IR;D.iH&&W.Hg.delete(B)}M=this.ag.get(M);if(!M)return[];W=M.Uu;M.Uu=[];for(var G of W)M.wc+=G.info.V;return W||[]}G=this.ag.get(M)?.qL;if(!G)return[];this.y4(M,G);return G.jh()}SA(M){return fj?xH(this,M):!!this.ag.get(M)?.qL?.iI()?.length||xH(this,M)}y4(M,W){for(;xH(this,M);){var b=this.z5(M); var T=M;T=this.ag.get(T).Cz&&!r_(this,T);Kj(W,b,T&&fsq(this,M))}}W(){return this.S?!1:this.S=!0}X(){this.B=!0}vY(){super.vY();for(const M of this.ag.keys())this.V(M);if(this.iN?.eI)for(const M of this.ag.values())M.Hg.clear(),M.K9.clear(),M.Uu.length=0,M.g9.length=0,M.t$.length=0,M.O_.length=0;this.ag.clear()}},fj=!1;var ztQ=new Set([2]),iF=class extends g.gz{constructor(M,W,b,T,q,X,G){super();this.policy=M;this.info=W;this.HY=b;this.Cp=q;this.logger=new g.uk("sabr");this.Gu=new Cs(this);this.Zt=new htL(this);this.YZ=new Aot(this);this.state=1;this.eq=!1;this.ES=0;this.clipId="";this.oE=-1;this.Kc=0;this.Yx=-1;this.C_=this.yA=this.H1=this.v6=!1;this.policy.bx?this.qp=new kl(this,X):this.qp=new U_(this,X);this.Ix=this.policy.d9?W.S5:iQP(W,this.policy,T);this.Ix.set("rn",`${this.SG()}`);this.Ix.set("alr","yes"); Fwt(this.YZ,b,M);this.rG=new xDy(this,this.policy,this.Ix,W.Vc,this.qp,this.logger,T,G,this.policy.enableServerDrivenRequestCancellation);gaP(this.rG);this.policy?.eI&&(g.t(this,this.YZ),g.t(this,this.rG));M=W.V;W={method:"POST",body:M};M&&(this.Kc=M.length);try{this.xhr=kH(this.Ix,this.policy.W,this.qp,q4,W),this.rG.V.start()}catch(V){g.lR(V)}}cj(){!this.ST()&&this.xhr&&(this.y4(!1),mC(this.Cp,this))}HL(){}lf(){if(!this.ST()&&this.xhr){var M=this.Bw();M===5?(this.QW()==="net.badstatus"&&this.Cp.kM(), mi(this.rG)):(this.Cp.aU(),this.LN(M));this.rG.V.stop();this.gC?.stop()}}Bw(){let M="";lF(this.rG,this.xhr)&&(M=wKp(this.rG,this.xhr));if(M)return this.info.Vc.h2(this.Ix,M),3;this.y4(!0);if(Lj(this.rG,this.xhr.status,this.xhr.lM(),this.info.gF(),this.H1))return 5;if(this.eq)return 3;s6P(this.rG,this.xhr.sJ(),0,this.gF());this.policy.FT&&HbL(this.Cp);return 4}y4(M){const W=this.xhr;!M&&lF(this.rG,this.xhr)||!W.X8()||(M=W.CP(),this.Gu.feed(M))}h4(M,W){this.xhr.XR()&&M===21&&hVJ(this);this.Zt.h4(M, W)}lS(M,W,b,T){b||(this.qp.lS(T),this.policy.Y3&&M===21&&hVJ(this));if(M!==21)return!1;this.qp.O=!0;M=W.totalLength;b||(this.Yx=kE(W,0),W=W.split(1).eh);var q=this.policy.o4;const X=this.Zt.V[this.Yx],G=this.HY.B.get(X);if(q&&G&&(q*=G.info.sB,M+b!==T&&M0)){this.policy.sj&&this.rG.V.stop();var M=this.qp.EY(),W=this.qp.oT(),b=ArS(this,M);W>b.kY||b.Mn>0&&this.info.oX()>b.Mn||(this.ES=(0,g.u)(),this.gC?.stop(),this.policy.FT&&(b=this.Cp,M={Co:Math.round(W*M/1E3),Du:M},b.policy.FT&&(b.An=M,b.Ym++)),this.Zr())}}Zr(){this.rG.Zr()}Bk(M){this.Cp.Bk(M,this.SG())}q$(M){this.eq=!0;this.info.Vc.h2(this.Ix,M.redirectUrl)}IC(M){this.qp instanceof kl&&this.qp.IC(M)}vk(M){this.qp instanceof kl&&this.qp.vk(M)}D_(M){var W=M.formatId;const b=new CO(M.S9?.first|| 0,M.S9?.NE||0),T=new CO(M.indexRange?.first||0,M.indexRange?.NE||0);if(!this.HY.B.get(yU({itag:W.itag,lmt:W.lmt,xtags:W.xtags}))){var q=M.B2||{};q.mimeType=M.mimeType;q.itag=W.itag;q.lastModified=`${W.lmt||0}`;q.xtags=W.xtags;M=this.HY;W=t7("");q=wx(q,null);pO(M,new WR(W,q,b,T))}}Wh(M){this.Cp.Wh(M,this.SG())}onSnackbarMessage(M){if(this.policy.U$)this.Cp.onSnackbarMessage(M)}Pj(M){this.policy.S&&this.Cp.Pj(M,this.SG())}cU(M){this.rg=M;this.rG.B=(0,g.u)();this.Cp.cU(M)}d6(M){this.Cp.d6(M)}Vo(M,W, b){this.Cp.Vo(M,W,b)}Zu(M){M.scope===2&&(this.gR=M);this.Cp.Zu(M)}TR(){this.v6=!0;this.Cp.TR()}pf(M){this.policy.q1&&this.Cp.pf(M)}AA(M){this.Cp.AA(M,this.SG())}Kq(M){M.um===3&&(this.H1=!0);this.Cp.Kq(M)}Ir(M){this.Cp.Ir(M)}hA(M){this.Cp.hA(M)}MR(M){this.Cp.MR(M)}canRetry(){this.ST();return this.rG.canRetry(!1)}dispose(){this.ST()||(super.dispose(),this.rG.dispose(),this.gC?.dispose(),this.LN(-1),this.IQ())}LN(M){this.state=M;mC(this.Cp,this)}gF(){return this.info.gF()}A8(){return this.v6}Eo(){return this.gR}ib(M, W,b,T){b>=0&&this.Cp.Ed(b);T.clipId&&(this.clipId=T.clipId);this.policy.V&&!W&&(this.oE=T.hR);this.info.isDecorated()&&(b=this.info,b=b.data?.jI?.F_?b.data.jI.F_:-1,b>=0&&b>T.hR&&this.Cp.loader.dK("sdai",{skpsqmismatch:"1",stsq:b,rcvsq:T.hR,a:W}));this.YZ.ib(M,W,T);this.policy.JX&&this.rg&&this.qp instanceof U_&&(b=this.rg.Tz,this.qp.ib(T.durationMs/1E3,W,b>0&&T.hR+1>=b));this.YZ.uW(M);this.Cp.ib(T)}wr(M,W){this.YZ.wr(M,W)}E4(M){this.requestIdentifier=M}jh(M){return this.YZ.jh(M)}uf(M){return this.YZ.uf(M)}SA(M){return this.YZ.SA(M)}NA(){return this.YZ.NA()}VZ(){return 1}SG(){return this.qp.requestNumber}J7(){return this.requestIdentifier}WF(){return this.Ix.WF()}jQ(){this.IQ()}IQ(){this.qp.deactivate(); this.xhr?.abort()}isComplete(){return this.state>=3}D8(){return this.state===3}Bi(){return this.state===5}zQ(){return this.state===4}TQ(){return this.isComplete()}t6(){return this.state>=1}ea(){return this.policy.fv?this.rG.ea():0}h0(){this.policy.fv&&mC(this.Cp,this)}nL(){return this.info.Z?.Qp?.w4||0}La(){this.jK()&&!this.C_&&(this.C_=!0,this.Zt.La())}jK(){const M=this.info.Z?.Qp?.K3;return!!M&&ztQ.has(M)}Gp(){return"SABR"}QW(){return this.rG.QW()}Ag(){const M=pKG(this.rG);Object.assign(M,hwq(this.info)); M.req="sabr";M.rn=this.SG();this.xhr?.status&&(M.rc=this.policy.Ek?this.xhr.status:this.xhr.status.toString());var W=this.xhr?.bl();W&&(M.msg=W);this.ES&&(W=ArS(this,this.ES-this.qp.x_()),M.letm=W.GI,M.mrbps=W.kY,M.mram=W.Mn);return M}};var uzQ=class{constructor(M){this.Z=M;this.X=this.An=this.W=this.BY=this.A=this.S=this.gK=this.C=this.yz=this.D=this.lV=this.Zs=this.sY=this.O=0;this.ticks={}}tick(M,W){this.ticks[M]=W?window.performance.timing.navigationStart+W:(0,g.u)()}};var Sxa=class extends g.b9{constructor(M,W,b,T,q,X){super();this.loader=M;this.HY=W;this.policy=b;this.videoTrack=T;this.audioTrack=q;this.X=this.Z=null;this.S=this.C=NaN;this.W=0;this.D=NaN;this.Cv=null;this.sY=this.Zs=NaN;this.yz=new Map;this.O=this.B=this.A=NaN;this.k9={jcn:()=>this.V}; this.V=X?1:0}xb(M,W,b,T){var q=!1;this.policy.V&&(q=b?this.sY===M.Kp:this.Zs===M.Kp);if(this.Cv&&T&&!q){T=[];q=[];let X=[],G=void 0,V=0;W&&(T=W.Z,q=W.V,X=W.A,G=W.B,V=W.Jb,this.dK("sdai",{sq:M.Kp,ssvicpns:T.join("."),ssvid:q.join(".")}));this.policy.V&&(b?this.sY=M.Kp:this.Zs=M.Kp);this.Cv.ZV(M.Kp,M.startTime,T,q,X,b,V,G)}this.policy.V?b&&(this.V===1&&hg(this,5,"noad"),M.Kp!==this.Z?.Kp&&(P4g(this,M,W,b),isNaN(M.startTime)||oCP(this,M.Kp,uF(this,M.startTime,M.Kp),!!W,this.Cv))):b&&P4g(this,M,W)}nC(M, W,b){const T=this.videoTrack.Tv.index.Y_()<=W;this.Z={vF:M,Kp:W,Ai:b};T&&Ag(this,M,W)}vE(){this.Cv&&this.Cv.vE()}BY(M,W){if(this.V!==0&&W&&M.g9[0].OO()){var b=M.g9[0].Kp,T=M.g9[0].A;M=M.isDecorated();oCP(this,b,T,M,W)}}gK(M,W){if(this.policy.sY?0:this.V===1||this.V===2)return!1;if(this.V!==0&&M===this.audioTrack){if(this.policy.V)return YIl(this.videoTrack,W)||YIl(this.videoTrack,W+1);M=IZ(this.videoTrack);if(W>(M?M.Kp:-1))return!1}return!0}dK(M,W,b=!1){(M!=="sdai"||this.policy.IG||b)&&this.loader.dK(M, W)}L4(M,W){const b=this.videoTrack.Tv.index.UX(M);if(b>=0){var T=W.hJ(b,2)?.Xv||"";if(this.policy.V||T)return W.FR(M,b),zV(this.loader,M,M,b),this.dK("sdai",{cmskpad:1,t:M.toFixed(3),sq:b}),!0}this.dK("sdai",{cmskpad:0,t:M.toFixed(3),sq:b});return!1}};var ORt=class{constructor(M,W,b,T){this.policy=M;this.dK=W;this.W=b;this.Z=T;this.A=void 0;this.V=new Set;this.C=-1;this.B=0;this.S=!1;this.k9={FQv:()=>this.V}}On(M,W,b){let T=this.policy.G4&&M.tileContext?`${M.Q1};${M.tileContext}`:M.Q1; T||(T=Oh(this,this.A));this.dK("clsdai",{setadcfg:M.Q1||"misscid",cid:T,acpn:b,acfglen:W?.length||0});this.Z.has(T)||(this.dK("clsdai",{setadcfg:"noentry",cid:T}),this.Z.set(T,{event:"unknown",startTimeSecs:0,C7:0,Tw:[],JL:Date.now(),eC:-1,zK:6,nt:M}));(M=this.Z.get(T))?W?(M.zK=6,M.Tw.push(b),M.RO=W):M.zK=2:this.dK("clsdai",{setadcfg:"notfound",cid:T})}N9(M){const W=M||Oh(this,this.A);this.dK("clsdai",{rmvadcfg:M||"misscid",lastcid:Oh(this,this.A)});(M=this.Z.get(W))?(M.RO="",M.zK=4):this.dK("clsdai", {rmadcfg:"notfound",cid:W})}Pj(M,W,b,T,q){this.C=W;if(!((M.TZ?.length||0)<=0))if(T){if(this.B=T,this.dK("clsdai",{oncldisabled:T,rn:W}),this.B===3&&q)for(var X of M.TZ)X.vF&&X.trackType===2&&xVL(q,QWg(this,X),X.hR||0,!0)}else for(const G of M.TZ){if(M=G.vF)a:{let V;M=QWg(this,G);T=W;q=G.hR||0;X=b;if(!this.policy.eN&&M.event==="prefetch"){M=!1;break a}const J=Oh(this,M);this.Z.has(J)?(V=this.Z.get(J),q>V.eC&&(V.startTimeSecs=M.startSecs,V.C7=M.C7,V.event==="predictStart"&&V.zK===5&&M.event!=="predictStart"&& (V.JL=Date.now()),V.event=M.event)):(V={event:M.event,startTimeSecs:M.startSecs,C7:M.C7,Tw:[],eC:q,zK:0,nt:{Q1:M.identifier,tileContext:M.tileContext}},this.Z.set(J,V),this.policy.S&&this.dK("clsdai",{newcid:1,cid:M.identifier,tc:M.tileContext,evt:M.event,sn:q,rn:T,st:gCL(V.zK)}));let B=!1;V.zK===0&&(X?.fq(M)?V.zK=5:(V.zK=X?11:3,V.RO="",B=!0),V.JL=Date.now(),V.eC=q,this.policy.S&&this.dK("clsdai",{onqpnt:1,cid:M.identifier,tc:M.tileContext,evt:M.event,sn:q,rn:T,st:gCL(V.zK)}));q>V.eC&&(X?.fq(M),V.eC= q);this.A=M;this.policy.S&&this.V.add(J);M=B}M&&(this.S=!0)}}gK(){this.V.clear();this.B=0;this.S=!1}D(){return this.S}X(M,W){if(this.B!==0){this.dK("clsdai",{gssinfodisabled:this.B});W=7;switch(this.B){case 1:W=7;break;case 2:W=9;break;case 3:W=10;break;default:this.dK("clsdai",{unknowndisr:this.B})}return[{zK:W}]}const b=[];if(!isNaN(M)){var T=sWS(this,M),q=this.C+1;if(T.length>0){this.dK("clsdai",{updcids:1,mt:M.toFixed(3),cid:T.join(","),rn:q});this.V.clear();for(const X of T)this.V.add(X)}else this.W&& (this.dK("clsdai",{updcids:0,mt:M.toFixed(3),rn:q}),this.V.clear())}for(const X of this.V)q=X,M=W,q?(T=this.Z.get(q),q={cuepointId:T?.nt?.Q1||q.split(";")[0]},T?.RO&&(q.adsConfig=MT(T.RO)||void 0),T?.Tw&&(q.nW=T.Tw),T?.Sd&&(q.F_=T.Sd),M&&(q.dP=DZ(M.split(";")[0]),q.sx=M.split(";")[1]||""),q.zK=T?.zK||0,M=q):M=void 0,M&&b.push(M);return b}FR(M,W,b){var T=M;this.policy.S&&(T+=b);let q,X="";T=sWS(this,T);T.length>0&&(X=T[0])&&(q=this.Z.get(X));if(!q||q.Sd)return this.dK("clsdai",{skipadfail:1,cid:X, sn:W,mt:M.toFixed(3),of:b.toFixed(3),skipsq:q?.Sd||-1}),!1;this.dK("clsdai",{skipadsuc:1,cid:X,sn:W,mt:M.toFixed(3),of:b.toFixed(3)});q.Sd=W;this.V.clear();this.V.add(X);return!0}ke(){this.dK("clsdai",{rstskipad:1});for(const M of this.Z.values())M.Sd=NaN}O(){let M=!1;for(const [,W]of this.Z.entries()){const b=W;b.event!=="predictStart"&&b.event!=="prefetch"&&b.zK===5&&(b?.JL&&Date.now()-b?.JL>1E4?b.zK=1:M=!0)}return M}};var QX=class{constructor(M,W,b){this.audio=M;this.video=W;this.reason=b}},$h=class{constructor(M,W,b,T){this.Z=M;this.reason=W;this.source=b;this.token=T}};var PDa=class extends g.gz{constructor(M,W,b){super();this.policy=M;this.V=W;this.dK=b;this.A=new Map;this.S=0;this.C=!1;this.Z="";this.B=!1}DT(){return this.C&&PJ(this).size>0}zV(M,W=!1,b={}){this.policy.AD=rp(M,b,this.V,W)}};var Ks=class{constructor(M){this.Z=this.V=0;this.alpha=Math.exp(Math.log(.5)/M)}DJ(M,W){const b=this.alpha**M;this.Z=W*(1-b)+b*this.Z;this.V+=M}Hx(){return this.Z/(1-this.alpha**this.V)}};var etP=class{constructor(M,W,b,T,q,X=[]){this.loader=M;this.Zs=W;this.policy=b;this.HY=T;this.C=q;this.lV=X;this.logger=new g.uk("dash/abr");this.Z=ll;this.B=this.W=null;this.X=-1;this.An=!1;this.nextVideo=this.V=null;this.A=[];this.MK=new Set;this.BY={};this.wK=new Ks(1);this.D=0;this.Lp=this.O=this.gK=!1;this.sY=0;this.jT=!1;this.yz=new Set;this.xk=!1;this.k9={GP:()=>{d_(this)}}; this.S=new PDa(this.policy,q,(G,V)=>{this.loader.dK(G,V)})}l8(M){if(this.policy.a7){var W=new Set(M); W.size===this.yz.size&&[...W].every(b=>this.yz.has(b))||(this.loader.dK("lwnmow",{itagDenylist:[...M].join()}),this.loader.iM(!!W.size),this.X=-1,this.yz=W,cJ(this,this.Z),this.xk=!0)}}zV(M,W=!1,b={}){const T=this.policy.AD; this.S.zV(M,W,b);T!==this.policy.AD&&(cJ(this,this.Z),g_(this),T>this.policy.AD&&this.B?.info.Z()&&!this.nextVideo?.info.Z()&&(this.gK=!0))}};var vv={uc:-1,Pz:!1,K3:0},dDS=class extends g.gz{constructor(M){super();this.vr=M;this.Z=null;this.V=vv;this.vr("ismp_i")}B(M=!0){M&&yCs(this);this.Z=null}vY(){this.V=vv;this.B();super.vY()}};var oWP=class{constructor(M){this.track=M;this.buffered=[];this.B=this.A=0;this.C={};this.S=0;this.Z=new yk}KW(M){this.timestampOffset=M;this.flush()}X(M,W){this.flush();this.V=W;YH(this,3,M)}D(M,W,b,T){!this.V||XFt(this.V,M)&&this.V.Kp===M.Kp||this.flush();this.A+=b;this.B+=T;b=1;!this.V&&M.Z&&(b=2);YH(this,b,W);W=Math.ceil(M.Z/1024);b===2&&this.Z.add(W);this.Z.add(Math.ceil((M.Z+M.V)/1024)-W);this.V=M}gK(){YH(this,0)}W(){YH(this,4);this.flush()}flush(){if(this.Z.pos>0){var M={a:this.track.s1(), u:this.Z.Ba(),pd:Math.round(this.A),ad:Math.round(this.B)},W=this.V;if(W){const b=W.Tv.info;M.itag=b.itag;b.V&&(M.xtags=b.V);M.sq=W.Kp;M.st=W.startTime;M.sd=W.duration;this.track.policy.Ih&&(M.si=W.lw());W.B&&(M.esl=W.Z+W.V);W.C()&&(M.eos=1)}isNaN(this.timestampOffset)||(M.to=this.timestampOffset);if(W=this.track.JT?.qd({})){for(const b in W)this.C[b]!==W[b]&&(M["sb_"+b]=W[b]);this.C=W}this.track.dK("sbu",M);this.Z.reset();this.buffered=[];this.S=this.B=this.A=0;this.timestampOffset=this.V=void 0}}};var coy=class{constructor(M,W,b){this.policy=M;this.Z=W;this.sY=b;this.A=this.V=0;this.Gm=null;this.gK=new Set;this.X=[];this.indexRange=this.initRange=null;this.D=new tI;this.O=this.Zs=!1;this.k9={xan:()=>this.B, GNX:()=>this.chunkSize, mpz:()=>this.W, ogk:()=>this.C}; (W=CPq(this))?(this.chunkSize=W.csz,this.B=Math.floor(W.clen/W.csz),this.W=W.ck,this.C=W.civ):(this.chunkSize=M.E$,this.B=0,this.W=g.Ja(16),this.C=g.Ja(16));this.S=new Uint8Array(this.chunkSize);this.W&&this.C&&(this.crypto=new roG(this.W,this.C))}dispose(){this.O=!0}ST(){return this.O}},Wu=class extends Error{constructor(M){super(M)}};var sjL=class{constructor(M,W,b,T,q,X){this.ids=M;this.Z=W;this.V=b;this.A=T;this.B=q;this.Jb=X}};var Bu=class{constructor(M,W,b){this.initData=M;this.contentType=W;this.isPrefetch=b;this.Z=this.cryptoPeriodIndex=NaN;this.B=[];this.dU=!1;this.V=null;if(W?.toLowerCase()==="webm"||M.length===16)this.dU=!0}};var rc=class{constructor(M,W,{AY:b=!1,videoDuration:T=0,u0:q,xT:X=!1}={}){this.videoId=M;this.status=W;this.AY=b;this.videoDuration=T;this.u0=q;this.xT=X}},Q7P=class{constructor(M,W,b,T,q){this.videoId=M;this.B2=W;this.V=b;this.bytesDownloaded=T;this.Z=q}};var feS=class{constructor(M){this.V=M;this.offset=0}skip(M){this.offset+=M}Z(){return this.offset}};var gWt=class{constructor(M,W,b){this.loader=M;this.policy=W;this.Tv=b;this.logger=new g.uk("dash");this.V=[];this.Z=null;this.O=-1;this.D=0;this.sY=NaN;this.X=0;this.B=NaN;this.W=this.BY=0;this.MK=-1;this.yz=this.A=this.S=this.Zs=null;this.Lp=this.xk=NaN;this.C=this.gK=this.An=this.jT=null;this.wK=!1;this.lV=this.timestampOffset=0;this.k9={EU:()=>this.V}; if(this.policy.A){const T=this.Tv,q=this.policy.A;this.policy.wK&&M.dK("atv",{ap:this.policy.wK});this.C=new coy(this.policy,T,(X,G,V)=>{M.qK.g6(new rc(this.policy.A,2,{u0:new Q7P(q,X,T.info,G,V)}))}); this.C.D.promise.then(X=>{this.C=null;X===1?M.qK.g6(new rc(this.policy.A,X)):this.loader.dK("offlineerr",{status:X.toString()})},X=>{const G=(X.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); X instanceof Wu?(this.loader.dK("offlinenwerr",{em:G}),jB(this),M.qK.g6(new rc(this.policy.A,4))):(this.loader.dK("dldbwerr",{em:G}),jB(this),M.qK.g6(new rc(this.policy.A,4,{xT:!0})))})}}EU(){return this.V}zy(){return this.V.length?this.V[this.V.length-1]:null}GK(){this.V=[]; VP(this);jB(this)}z5(M){this.An=this.V.shift().info;M.info.equals(this.An)}uf(){return g.dG(this.V,M=>M.info)}s1(){return!!this.Tv.info.audio}isDrm(){return!!this.Tv.info.contentProtection}getDuration(){return this.Tv.index.DK()}};var qM=class extends Rts{constructor(M,W,b,T,q){super(b,q);this.policy=M;this.formatId=W;this.YZ=T;this.lastError=null;this.onProgress=()=>{this.ST()||(this.YZ.UL(this.formatId)?(this.isComplete()||this.Z.start(),xH(this.YZ,this.formatId)&&this.g5(2),this.YZ.Cz(this.formatId)&&(fsq(this.YZ,this.formatId)?this.LN(4):(this.lastError="net.closed",this.LN(5)))):(this.lastError="player.exception",this.LN(5)))}; this.Z=new g.d9(()=>{this.isComplete()||(this.lastError="net.timeout",this.LN(5))},1E3); this.Z.start();IsG(this.YZ,this.formatId,this.onProgress);g.xS(this.onProgress)}onStateChange(){this.ST()&&(R1(this.YZ,this.formatId),this.Z.dispose())}Ag(){return{expected:HzL(this.YZ,this.formatId),received:this.YZ.ag.get(this.formatId)?.bytesReceived||0,bytesShifted:this.YZ.ag.get(this.formatId)?.wc||0,sliceLength:r_(this.YZ,this.formatId),isAnyMediaEndReceived:this.YZ.xw(this.formatId)}}jU(){return 0}KB(){return!0}jh(){return this.YZ.jh(this.formatId)}iI(){return[]}SA(){return this.YZ.SA(this.formatId)}QW(){return this.lastError}ea(){return 0}};var s7G=class extends g.gz{constructor(M,W,b,T){super();this.loader=M;this.policy=W;this.Tv=b;this.timing=T;this.logger=new g.uk("dash");this.V=[];this.Zs=[];this.Z=this.JT=null;this.An=!1;this.BY=this.lV=0;this.S=-1;this.O=!1;this.sY=-1;this.yz=null;this.gK=NaN;this.X=[];this.k9={N8:()=>this.B, IYn:()=>this.V, zkT:()=>this.W}; this.B=new gWt(M,W,b);this.policy.Z&&(this.W=new INL(this.B,this.loader.getManifest(),this.policy,q=>{this.policy.OE&&this.dK("buftl",q)})); this.policy.vP&&(this.D=new oWP(this));this.sB=b.info.sB;this.C=this.policy.Zs?!1:b.sY();this.isManifestless=b.sY();this.A=this.C;g.t(this,this.yz)}s1(){return!!this.Tv.info.audio}zy(){return this.B.zy()}z5(M){this.B.z5(M);this.W?.yz(M);this.sB=Math.max(this.sB,M.info.Tv.info.sB||0)}getDuration(){return this.Tv.index.DK()}GK(){j8(this);this.B.GK()}N8(){return this.B}uS(M){return this.JT?SA(this.JT.ZY(),M):!0}isRequestPending(M){return this.V.length?M===this.V[this.V.length-1].info.g9[0].Kp:!1}KW(M){this.W?.KW(M); this.D?.KW(M)}dK(M,W){this.loader.dK(M,W)}ZS(){return this.loader.ZS()}dispose(){this.D?.flush();super.dispose()}};var aYQ=class{constructor(){this.YI=!1}};g.aAq=class{constructor(M){this.Vz=M;this.W=new aYQ;this.AS=this.BS=!1;this.QE=2;this.An=20971520;this.EY=8388608;this.yz=120;this.wk=this.Mh=this.cC=2;this.sj=this.RN=!1;this.Xn=1E3;this.OY=15;this.Ha=1;this.D=1.15;this.O=1.05;this.qA=1;this.Tr=this.zm=!1;this.nx=6;this.B=!1;this.PC=100;this.dS=10;this.Fi=6;this.vp=!1;this.Uc=1;this.ub=this.EX=!1;this.aZ=2;this.FY=this.Vl=this.ek=!1;this.bV=!0;this.A5=this.h6=this.L3=this.aT=!1;this.mw=!0;this.CS=!1;this.A="";this.XP=[];this.Zl=this.vP=!1;this.AD= 0;this.u3="";this.yC=this.BC=this.OE=this.LA=this.Ic=this.q1=this.C=this.Cs=this.RV=this.Z=this.wK=this.BY=this.XI=this.kX=this.X=this.GN=this.BT=!1;this.nz=!0;this.mJ=this.cV=this.Eh=this.U7=this.VI=this.V=this.jT=!1;this.Lp=!0;this.Ug=this.zL=this.x_=this.fv=this.WC=this.Ud=this.po=this.lc=this.s2=this.Fx=this.Zs=this.U1=this.Ds=this.gK=!1;this.s7=0;this.S6=this.S=this.Vu=this.m$=this.IG=this.Nt=!1;this.latencyClass="UNKNOWN";this.pZ=!1;this.N4=0;this.vS=g.TO(this.Vz.experiments,"html5_min_readbehind_secs"); this.md=g.TO(this.Vz.experiments,"html5_min_readbehind_cap_secs");this.Fp=this.Vz.j("html5_offline_reset_media_stream_on_unresumable_slices");this.sB=NaN;this.NW=xR(this,"html5_request_size_min_kb",64)*1024;this.xk=2097152;this.jN=xR(this,"html5_bypass_contention_secs");this.hH=1048576;this.k_=xR(this,"html5_repredict_interval_ms",1800);this.K5=xR(this,"html5_head_miss_secs",5);this.C5=xR(this,"html5_min_upgrade_health_secs",10);this.wh=xR(this,"html5_min_seconds_between_format_selections",8);this.iX= xR(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Tk=q4;this.Vp=g.TO(this.Vz.experiments,"html5_min_startup_buffered_media_duration_secs");this.PS=g.TO(this.Vz.experiments,"html5_post_interrupt_readahead");this.JO=this.Vz.j("html5_disable_classic_alr");this.w_=g.TO(this.Vz.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.xn=xR(this,"html5_ssdai_failure_retry_limit",3);this.tE=this.Vz.experiments.FX("html5_clone_original_for_fallback_location");this.WP=g.TO(this.Vz.experiments, "html5_subsegment_readahead_target_buffer_health_secs");this.F5=g.TO(this.Vz.experiments,"html5_subsegment_readahead_timeout_secs");this.FS=g.TO(this.Vz.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.YX=g.TO(this.Vz.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Ae=g.TO(this.Vz.experiments,"html5_subsegment_readahead_min_load_speed");this.Ab=g.TO(this.Vz.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.eN=this.Vz.hT().Z.UY(a9G); this.II=g.TO(this.Vz.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.hD=xR(this,"html5_hopeless_secs",15);this.zJ=this.Vz.j("html5_restrict_streaming_xhr_on_sqless_requests");this.L5=g.TO(this.Vz.experiments,"html5_max_headm_for_streaming_xhr");this.AB=this.Vz.j("html5_pipeline_manifestless_allow_nonstreaming");this.MX=this.Vz.j("html5_prefer_server_bwe3");this.jj=this.Vz.j("html5_last_slice_transition");this.D2=this.Vz.j("html5_store_xhr_headers_readable");this.Oc=g.TO(this.Vz.experiments, "html5_max_drift_per_track_secs");this.yI=this.Vz.j("html5_no_placeholder_rollbacks");this.Jq=this.Vz.j("html5_subsegment_readahead_enable_mffa");this.XX=this.Vz.j("html5_allow_video_keyframe_without_audio");this.FY=g.XD(this.Vz)&&!g.EL()&&this.Vz.j("html5_adjust_media_time_for_non_cobalt_tv");this.Bn=this.Vz.j("html5_enable_vp9_fairplay");this.E$=1048576;this.FF=this.Vz.j("html5_woffle_resume");this.Ia=this.Vz.j("html5_abs_buffer_health");this.xY=this.Vz.j("html5_interruption_resets_seeked_time"); this.H5=g.TO(this.Vz.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.PQ=this.Vz.j("html5_report_captions_ctmp_qoe");this.xi=this.Vz.j("html5_explicitly_dispose_xhr");this.ix=!this.Vz.j("html5_encourage_array_coalescing");this.Vz.j("html5_limit_media_merge_size")?q4?BV()<21?this.GY=786432:this.GY=8388608:this.GY=262144:this.GY=0;this.O$=this.Vz.j("html5_filter_non_efficient_formats_for_safari");this.Vz.j("html5_format_hybridization");this.fg=this.Vz.j("html5_abort_before_separate_init"); this.Dp=CU();this.Rz=this.Vz.j("html5_serialize_server_stitched_ad_request");this.xL=this.Vz.j("html5_attach_po_token_to_bandaid");this.uO=g.TO(this.Vz.experiments,"html5_max_redirect_response_length")||8192;this.Dc=this.Vz.j("html5_rewrite_timestamps_for_webm");this.oT=this.Vz.j("html5_only_media_duration_for_discontinuities");this.Wn=g.TO(this.Vz.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Vz.j("html5_onesie_live");this.Zp=g.TO(this.Vz.experiments,"html5_onesie_live_ttl_secs")|| 8;this.hS=g.TO(this.Vz.experiments,"html5_attach_num_random_bytes_to_bandaid");this.L2=this.Vz.j("html5_update_container_type_on_codec_family_change");this.d9=this.Vz.j("html5_enable_sabr_host_fallback");this.Ql=this.Vz.supportsGaplessShorts();this.PJ=this.Vz.j("html5_shorts_stop_request_when_buffer_to_end");this.qk=this.Vz.j("html5_vod_stop_request_when_buffer_to_end");this.lV=this.Vz.j("html5_ssdai_use_post_for_media")&&this.Vz.j("gab_return_sabr_ssdai_config");this.n2=this.Vz.j("html5_use_post_for_media"); this.Y9=this.Vz.j("html5_use_live_ump_heartbeat");this.useUmp=this.Vz.j("html5_use_ump");this.lO=this.Vz.GN;this.jy=this.Vz.j("html5_reset_primary_stats_on_redirector_failure");this.iD=this.Vz.j("html5_remap_to_original_host_when_redirected");this.Ek=this.Vz.j("html5_use_network_error_code_enums");this.enableServerDrivenRequestCancellation=this.Vz.j("html5_enable_server_driven_request_cancellation");this.bx=this.Vz.j("html5_enable_sabr_request_timing");this.a7=this.Vz.j("html5_enable_lawnmower"); this.Px=this.Vz.jW()?g.TO(this.Vz.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.MP=g.TO(this.Vz.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.WX=this.Vz.j("html5_live_defrag_only_h264_playbacks");this.yT=this.Vz.j("html5_live_defrag_only_h264_formats");this.Ri=g.TO(this.Vz.experiments,"html5_drm_byterate_soft_cap");this.vL=g.TO(this.Vz.experiments,"html5_drm_live_byterate_soft_cap");this.Hr=this.Vz.j("html5_sabr_log_request_creation");this.p7=this.Vz.j("html5_use_buffer_timeline_for_sabr_request_creation"); this.FT=this.Vz.j("html5_sabr_report_request_cancellation_info");this.AO=this.Vz.j("html5_spoof_4k");this.RQ=xR(this,"html5_min_media_duration_for_cabr_slice");this.o4=xR(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.Hn=this.Vz.j("html5_remove_defrag_without_frame_level_streaming");this.zH=this.Vz.j("html5_consume_all_buffered_bytes_one_poll");this.Yn=this.Vz.j("html5_disable_urgent_adaptation");this.SN=this.Vz.j("html5_apply_constraints_in_client_for_sabr");this.NI=this.Vz.j("html5_send_video_playback_ustreamer_config"); this.X1=xR(this,"html5_max_discontinuity_rewrite_count");this.bS=xR(this,"html5_fixed_media_duration_for_request");this.cH=this.Vz.j("html5_apply_fix_for_missing_seg_info_without_logger");this.h6=this.Vz.j("html5_enable_audio_quality_setting");this.Vz.j("html5_enable_audio_quality_setting_feature");this.lm=xR(this,"html5_sabr_request_limit_per_period");this.eI=this.Vz.j("html5_sabr_dispose_media_objects");this.vg=this.Vz.j("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Vz.j("html5_high_res_seek_logging"); this.fH=this.Vz.j("html5_disable_chunk_synchronization_sabr_seek");this.T2=g.TO(this.Vz.experiments,"html5_override_micro_discontinuities_threshold_ms");this.UE=this.Vz.j("html5_byterate_constraints");this.uZ=this.Vz.j("html5_refactor_sabr_audio_format_selection_logging");this.U$=this.Vz.j("enable_sabr_snackbar_message");this.Vz.j("html5_reinit_source_buffer_by_new_element");this.xQ=this.Vz.j("html5_refactor_sabr_video_format_selection_logging");this.Ih=this.Vz.j("html5_log_slice_info_in_sbu");this.cP= xR(this,"html5_paced_poll_ms");this.TJ=xR(this,"html5_paced_poll_min_health_ms");this.GH=this.Vz.j("html5_disable_sabr_fallback");this.bU=this.Vz.j("html5_track_current_buffered_range_at_sync");this.Oq=g.XD(this.Vz)?500:2E3;this.JX=this.Vz.j("html5_sabr_live_timing");this.Nf=this.Vz.j("html5_count_updating_slice_for_buffer_health");this.CM=this.Vz.j("html5_report_max_buffer_bytes_limit_to_sabr");this.Y3=this.Vz.j("html5_sabr_live_audio_early_return_fix");this.Pn=g.TO(this.Vz.experiments,"html5_platform_max_buffer_health_oversend_duration_secs"); this.DF=this.Vz.j("html5_cuepoint_identifier_logging");this.pQ=this.Vz.j("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.FK=this.Vz.j("html5_skip_client_drm_license_constraint");this.BT=this.Vz.j("html5_pseudogapless_shorts_skip_abort_on_transition");this.po=this.Vz.j("html5_sabr_request_on_constraint");this.qo=this.Vz.j("html5_live_metadata_resets_timeout");this.Vu=this.Vz.j("html5_sabr_log_invalid_sabr_current_time");this.X5=this.Vz.j("html5_ssdai_new_decoration_logic");this.XF=this.Vz.j("html5_enable_smooth_audio_offset"); this.Mf=this.Vz.j("html5_cuepoint_list_clear_on_seek");this.vV=this.Vz.hT().Z.UY(cn);this.sY=this.Vz.hT().Z.UY(A0p);this.TI=this.Vz.j("html5_ssdai_clear_backoff_on_cuepoint_list_resolved");this.G4=this.Vz.hT().Z.UY(X0t);this.N4=g.TO(this.Vz.experiments,"html5_sabr_unused_bloat_size_bytes");this.qX=this.Vz.hT().Z.UY(Hss);this.jS=this.Vz.j("html5_mta_initial_audio_prefer_drc")}MK(){return this.Z&&this.q1}};var mWp=class{constructor({ub:M,YI:W,yW:b,Y_:T,R5:q}={}){this.ub=M;this.YI=W;this.yW=b;this.Y_=T;this.R5=q}};var pxa=class extends g.gz{constructor(M,W,b){super();this.loader=M;this.policy=W;this.PP=b;this.B=0;this.V=!1;this.delay=new g.d9(this.A,this.policy.Px,this);g.t(this,this.delay)}Z(M){hz(19,M.Z)||(this.Vc=M,this.B=0,this.delay.Wr())}A(){this.B++>15||(this.V=!this.V,new wxy(this.loader,this.policy,this.PP,this.Vc,this.V),this.delay.start())}},wxy=class{constructor(M,W,b,T,q){this.loader=M;this.policy=W;this.PP=b;this.Vc=T;this.Gr=q;this.done=!1;this.onTimeout=()=>{this.done||(this.done=!0,this.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*Yf(this.PP)));this.timing=new U_(this,{PP:this.PP,bO:this.size,ZM:!0,zE:()=>{}, uJ:this.policy.B});M=Ee(this.Vc,this.Gr,this.policy).eH.clone();hz(22,M);M["path"]!=="/videogoodput"&&(M["path"]="/videogoodput",M["url"]="");this.location=new an(M);this.location.set("rn",`${this.timing.requestNumber}`);this.location.set("range",`0-${this.size-1}`);this.xhr=kH(this.location,this.policy.W,this.timing,this.policy.Tk,{});setTimeout(this.onTimeout,1E4)}HL(){}cj(){}lf(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.sJ()===this.size)this.loader.dK("rqs",this.getInfo()); else{var M="net.connect";this.xhr.status>200?M="net.badstatus":this.xhr.kd()&&(M="net.closed");this.onError(M)}}onError(M){this.loader.handleError(M,this.getInfo());pe(`https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn=${this.timing.requestNumber}`,"gp",W=>{this.loader.dK("pathprobe",W)},W=>{this.loader.handleError(W.errorCode,W.details)})}getInfo(){const M=this.timing.D(); M.shost=Bh(20,this.location.eH);M.pb=this.size;return M}};var YxG=class extends g.gz{constructor(M,W,b,T,q,X,G,V,J,B,D,a,E,n=null){super();this.loader=M;this.policy=W;this.videoTrack=b;this.audioTrack=T;this.B=q;this.Z=X;this.timing=G;this.A=V;this.schedule=J;this.HY=B;this.V=D;this.X=a;this.eE=E;this.wm=n;this.gK=!1;this.sR="";this.xJ=null;this.qZ=NaN;this.O=!1;this.Cv=null;this.NZ=this.D=NaN;this.Vq=this.S=0;this.logger=new g.uk("dash");this.k9={NN:(C,l)=>this.NN(C,l)}; this.policy.hS>0&&(this.sR=g.Ja(this.policy.hS));this.policy.Px&&(this.W=new pxa(this.loader,this.policy,this.schedule),g.t(this,this.W))}C(M,W){if(M.C){this.HY.isLive?(M=this.HY.Sk&&this.HY.D?M.Tv.S(this.HY.Sk,!1):M.Tv.C(Infinity),M.qZ=this.qZ):M=M.Tv.S(0,!1);if(this.X){var b=this.X;M.qZ===0&&(M.S=b.D)}else M.S=this.D;return M}var T=M.Z;if(!T.Tv.Z())return T.Tv.B()?(b=WJ(this.A,M.Tv.info.sB,W.Tv.info.sB,0),b=T.Tv.O(T,b)):b=T.Tv.lV(T),b;var q=T.S-this.loader.getCurrentTime(),X=!T.range||T.V===0&& T.Z===0?0:T.range.length-(T.Z+T.V),G=T.Tv;this.NN(M,q)&&X===0&&(this.HY.isManifestless?G=M.Tv:(G=T.startTime+VV,T.V&&(G+=T.duration),Jg(M,G),T=M.Z,G=T.Tv));G.B()?(X=this.V,W=WJ(this.A,G.info.sB,W.Tv.info.sB,q,X.A.length>0&&X.D===0&&this.loader.ZT),q=fE(M),M=T.Tv.O(T,W),(W=M.B)&&M.g9.length>1&&(q||M.Vc.B||M.g9[0].Tv!==T.Tv?M=T.Tv.O(T,M.g9[0].V):(q=M.g9[M.g9.length-1],G=q.V/W,!q.B&&G<.4&&(M=T.Tv.O(T,W-q.V))))):(T.Kp<0&&(W=In(T),W.pr=`${M.V.length}`,this.loader.isSeeking()&&(W.sk="1"),W.snss=T.W,this.loader.dK("nosq", W)),M=G.lV(T));if(this.policy.BY)for(b of M.g9)b.type=6;return M}NN(M,W){if(!fE(M)||!M.Tv.Z())return!1;var b;(b=this.V.xk)||(b=fE(M)&&M.Tv.Z()&&M.Z.Tv.info.sB{this.loader.dK(J,B)}); this.isAudioOnly&&lYs(this,this.HY.Z["0"])}pm(M,W,b,T){this.loader.pm(new $h(M,this.V?.reason==="m"?"m":this.V?.reason==="s"?"s":this.V&&N6q(this,this.V)?this.V.reason:"a",b,T));z1(this.loader,W,M,!0)}GP(M,W){for(const b of this.yz)if(b.id===M)return this.S=this.HY.Z[M],this.iN.MK()&&(this.O=!0),M=new $h(this.S,W?"t":"m"),W&&(this.W=!0),M;this.B=[];return null}zV(M,W=!1,b={}){this.Z.zV(M,W,b)}DT(){return this.Z.DT()}};var IQl=class{constructor(M,W,b){this.requestType=M;this.Vc=W;this.Cp=b;this.V=null;this.k9={K3:()=>this.data?.K3, Wk:()=>this.data?.Wk, K4:()=>this.data?.K4}}setData(M,W,b={}){W?.d9&&(this.S5=iQP(this,W,b),M.zt=this.Vc.zt()); if(this.gF())return!0;this.data=M;this.Z=xWa(M,(T,q)=>{this.Cp?.x9(T,q)},W?.B,W?.S); if(!this.Z)return!1;this.V=g.Sr(this.Z,yts);return!0}gF(){return this.requestType===1}oX(){return this.Cp?.oX()||0}isDecorated(){return!(!this.data?.jI&&!this.data?.J6?.length)}};var MtB=class{constructor(M){this.Z=M;this.iv=(0,g.Ba)(Vi(16))}encrypt(M){(0,g.u)();return this.Z.Z?wq(this,M,this.iv):(new sp(this.Z.V)).encrypt(M,this.iv)}decrypt(M,W){(0,g.u)();return this.Z.Z?wq(this,M,W):(new sp(this.Z.V)).decrypt(M,W)}};var btA=class extends g.gz{constructor(M){super();this.uV=M;this.Z=new Map;this.B=[];this.V=!J3();this.X=g.TO(this.uV.experiments,"html5_onesie_prewarm_interval_ms");this.D=new g.d9(this.W,this.X,this);this.C=-1;this.k9={scz:()=>this.Z, TUT:()=>this.S, tks:()=>WLV}; g.t(this,this.D);o$t(this,g.MZ("yt-player-bandaid-host"));this.S=this.load();this.X&&this.S.then(()=>{this.W()})}gK(M){if(!((0,g.u)()=M||(M=this.Z.get(0))&&soS(this,M)}A(){const M=this.B;this.B=[];return M}},WLV={GM:0,Wss:1,pYY:2,zKv:3,v7:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"},cyy=class{constructor(M,W){this.location=M;this.V=W}Z(){return Bh(20,this.location)}};var TG9=class{constructor(M){this.x5=M;this.V=!1;this.Z=[]}async decrypt(M){if(!this.Z.length||this.Z[0].isEncrypted){this.V=!0;this.x5.vr("omd_s");var W=new Uint8Array(16),b,T;for(J3()?b=new YZ(M):T=new sp(M);this.Z.length&&this.Z[0].isEncrypted;){var q=this.Z.shift(),X=b?await b.decrypt(U6(q.buffer),W):T.decrypt(U6(q.buffer),W);for(M=0;M{if(!this.isComplete()){const T=Cp(this);this.fail(new g.WE("net.timeout",T))}},1E3); this.FC=new g.d9(this.sD,2E3,this);this.pV=this.qK.RK();this.dC=this.j("html5_onesie_wait_for_media_availability");g.t(this.videoData,this);g.t(this,this.xx);g.t(this,this.x3);g.t(this,this.FC);M=Q3();q4&&M&&(this.Uj=new Map);this.LL=new Map;this.mN=new Map;this.Lc=new Map;this.V7=new Map}NA(M){return this.Uj?.get(M)?.NA()||[]}SA(M,W){return!!this.Uj?.get(W)?.SA(M)}jh(M,W){return this.Uj?.get(W)?.jh(M)||[]}uf(M,W){return this.Uj?.get(W)?.uf(M)||[]}LN(M){this.state=M;this.notifySubscribers()}gF(){return!1}A8(){return!1}Eo(){}vr(M){this.qK.vr(M)}Yh(M){return this.qK.Yh(M)}lS(M, W,b,T){b||this.qp.lS(T);return!1}h4(M,W){this.x5.h4(M,W)}zd(){this.vr("orfb");this.Bz=!0;if(mYq(this)&&this.xhr){var M={rc:this.xhr.status,lb:this.xhr.sJ(),rt:(1E3*ziJ(this.qp)).toFixed(),shost:g.$F(this.vX),trigger:"o1"};this.dK("pathprobe",$B(M))}}Xd(){this.vr("opr_r");this.v9=!0}ib(M,W,b,T){this.Aa.push(T);if(this.Uj){if(!this.Uj.has(M)){const q=new Aot(this);this.Uj.set(M,q);g.t(this,q)}this.Uj.get(M)?.ib(W,b,T);yv(this);b||(this.oE=T.hR)}else yv(this)}Yc(){return this.Aa}Cc(){this.Aa=[]}cU(M){this.gw= M;M.Wz!=null&&this.qK.cf(M.Wz)}Gd(M){this.JJ=M}CU(M){M.videoId&&this.mN.set(M.videoId,M)}MR(M){if(M.url)for(const W of M.url)pe(W,"ump_prewarm")}EW(){if(this.Uj)for(const M of this.Uj.keys())this.Uj.get(M)?.g5()}Wh(M){this.bQ=M}Ir(M){if(M?.Mi&&(M=M.Mi.KL))for(const W of M)W.videoId&&this.V7.set(W.videoId,W)}Pj(M){this.FZ.push(M)}dK(M,W,b=!1){this.qK.dK(M,W,b)}wr(M,W,b){this.Uj?.get(M)?.wr(W,b)}E4(M){this.Lc.set(M.videoId,M)}async fetch(){this.QQ?this.xx.start():this.x3.start();this.vr("or_i");const M= this.uV.experiments.FX("html5_onesie_verbose_timing")||this.uV.hT().Z.UY(R_g)?this.vr.bind(this):()=>{}; M("oloc_ss");var W=aQL(this.videoData,this.pV);W||(M("oloc_sa"),W=g.TO(this.uV.experiments,"html5_onesie_redirector_timeout_ms"),W=await EbP(this.videoData,this.pV,W));if(!W)return this.fail(new g.WE("onesie.unavailable.hotconfig",{url:"0"})),this.gs;this.S5=Bh(36,W);M("oloc_e");var b=g.ZI(this.uV,this.videoData.C()),T=!!b.Z;b=T?await b.Z:b.getValue();this.j("html5_log_onesie_empty_oauth")&&!b&&this.dK("no_token",{async:T});T=yDt(this.playerRequest,this.uV,this.videoData,b,$g(this.S5));var q;try{if(!this.uV.Ds|| this.uV.Ds?.Z||T?.Wf||(M("orqb_w"),(q=kmp(T,this.r4,this.uV,this.qK,this.PP,this.n1.onesieUstreamerConfig,this.videoData.HU?.JU,this.j("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0))&&this.dK("orpqenc",{i:"w"})),!q){var X=KTa(this,T),G=this.uV.hT().Z.UY(f9L);if(X){M("orqb_a");let V=Cuq(T,this.r4,this.uV,this.qK,this.PP,this.n1.onesieUstreamerConfig,this.videoData.HU?.JU,this.j("onesie_cdm_mosaic_send_audio_tracks_from_client")? this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0);if(G){const J=new Promise((B,D)=>{setTimeout(()=>void D("timeout 10s"),1E4)}); V=Promise.race([V,J]).catch(B=>{this.dK("orpqenc",{i:"a",e:`${B}`});M("orqb_f")})}q=await V; !q&&G||this.dK("orpqenc",{i:"a"})}if(!X||G&&!q)M("orqb_s"),q=UYs(T,this.r4,this.uV,this.qK,this.PP,this.n1.onesieUstreamerConfig,this.videoData.HU?.JU,this.j("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0),this.dK("orpqenc",{i:"j"})}}catch(V){return this.fail(V),this.gs}M("orqb_e");this.enableCompression=q.innertubeRequest.sU;this.mU=q?.Qp?.w4||0;this.vr("osor");X=E$g();q={method:"POST", body:g.Sr(q,drg),headers:{"Content-Type":"text/plain",Referer:location.origin}};G=this.j("html5_onesie_media_capabilities");nbQ(W,this.videoData,lQs(this),G);this.Tu&&this.dK("ombrs","1");this.qp=new U_(this,{PP:this.PP,uJ:this.Tu,zE:(V,J)=>{this.qK.aC(V,J)}, eA:!0});W.set("rn",`${this.qp.requestNumber}`);this.vX=W.WF();idt(this.qp,this.vX);this.vr("or_p");this.xhr=kH(new an(W),X,this.qp,q4,q);this.FC.start();this.qK.onPlayerRequestSent(this.videoData.videoId);return this.gs}VZ(){return 2}HL(){this.vr("orh_r")}cj(){!this.Bz&&this.xhr.sJ()&&this.zd();this.KV&&!this.QQ&&this.Lm?.start();this.y4()}lf(M=!1){this.y4();if(!(this.ST()||this.state>=4)){var W=Cp(this),b=this.xhr;W.rc=b.status;M&&(W.ab=!0);if(b.bl()){var T="onesie.net";W.msg=b.bl()}else b.status>= 400?T="onesie.net.badstatus":b.lM()?this.v9||(T="onesie.response.noplayerresponse"):T=b.status===204?"onesie.net.nocontent":"onesie.net.connect";T?this.fail(new g.WE(T,W)):(this.vr("or_fs"),this.qp.fv((0,g.u)(),b.sJ(),0),this.LN(4),this.Tu&&this.dK("rqs",W));this.Tu&&this.dK("ombre",`ok.${+!T}`);this.dC=!1;yv(this);np(this.x5);this.QQ||(this.x3.stop(),this.Lm?.stop());if(M=this.pV?.A())for(T=0;T1E3){this.qp?.XX((0,g.u)());const W=Cp(this);if(this.uV.jW()&& this.xhr instanceof oat){var M=this.xhr;W.xrs=M.xhr.readyState;W.xpb=M.Z.totalLength;W.xdc=M.A}this.fail(new g.WE("net.timeout",W))}}else(this.qp||!this.uV.hT().Z.UY(f9L))&&(0,g.u)()-this.qp.Z>1E4&&(this.qp?.XX((0,g.u)()),this.Vv());this.isComplete()||this.xx.start()}}Vv(){this.dC=!1;if(!yv(this)){var M=Cp(this);M.timeout="1";this.fail(new g.WE("onesie.request",M))}}fail(M){M=bS(M);this.KV?this.qK.dt(M):(this.gs.reject(M),this.KV=!0);np(this.x5);this.QQ||this.x3.stop();this.vr("or_fe");this.pV?.A()?.forEach(W=> {this.dK("pathprobe",W)}); this.LN(5);this.dispose()}isComplete(){return this.state>=3}zQ(){return this.state===4}TQ(M){return this.isComplete()||!!this.Uj?.get(M)?.B}D8(){return!1}Bi(){return this.state===5}notifySubscribers(M){for(let W=0;W102400&&!this.wz&&(this.vr("or100k"), this.wz=!0);if(M.X8()){const W=M.CP(),b=W.totalLength;this.Tu&&this.dK("ombrss",`len.${b}`);this.Gu.feed(W)}if(this.Uj)for(const W of this.Uj.keys())this.Uj.get(W)?.g5(),this.notifySubscribers(W)}catch(M){this.fail(M)}}JB(M){return!!this.Uj?.get(M)?.W()}SG(){return this.qp.requestNumber}J7(M){return this.Lc.get(M)}jK(){return!1}Gp(){return"ONESIE"}};var Xyp=class extends g.gz{constructor(M,W,b,T,q,X,G,V,J,B,D,a){super();this.qK=M;this.loader=W;this.policy=b;this.audioTrack=T;this.videoTrack=q;this.HY=X;this.PP=G;this.bV=V;this.V=J;this.timing=B;this.Zs=D;this.D=a;this.Z=[];this.A={};this.MK=this.EY=!1;this.wK=this.Ym=0;this.Al=!0;this.eq=!1;this.gK=0;this.O={EQ:0,M6:0};this.Ds={EQ:0,M6:0};this.Cv=null;this.yz={h5:[],Ku:[]};this.BY={h5:[],Ku:[]};this.C=null;this.S=[];this.lV=0;this.Lp=!1;this.k9={KvV:()=>this.Z, ayY:()=>this.A, n_z:()=>{this.Z.length=0}, vZK:()=>this.videoData.An, dap:()=>this.gK, t60:E=>{this.gK=E}, T0T:E=>{this.O.M6=E}, kt:E=>{this.C=E}, h$:E=>{this.S=E}, T_:()=>this.T_()}; this.videoData=this.qK.getVideoData();this.X=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.lm;this.policy.Px&&(this.sY=new pxa(this.loader,this.policy,this.PP),g.t(this,this.sY))}T_(M){var W=sJ(this.loader)&&M&&M.uc!==void 0&&!M.Pz?M.uc*1E3+(this.loader.Ga()||0):l3(this);if(this.policy.p7){var b=this.yz;var T=this.BY}else b=Z2(this,this.audioTrack),T=Z2(this,this.videoTrack);var q=[...b.h5,...T.h5];N1(this)&&q.push(...this.S);var X=[...b.Ku,...T.Ku]; const G=this.loader.zo();if(this.policy.Vu&&!this.videoData.isLivePlayback){var V=this.videoData.lengthSeconds*1E3;W>=V&&this.loader.dK("invalidSabrCmt",{cmt:W,vd:V})}V=this.PP;var J=this.qK,B=this.HY,D=this.B,a=this.videoData.An,E=this.policy,n=this.loader.u1,C=v$s(this.loader)*1E3,l=this.An?.Co,N=this.An?.Du,R=this.Ym,f=Number(this.V.A?.info.itag)||0,x=Number(this.V.S?.info.itag)||0,A=this.qK.Kj();var qa=M?.K3?M.K3:this.loader.isSuspended?4:void 0;W={PP:V,qK:J,HY:B,h5:q,Ku:X,aO:W,nextRequestPolicy:D, MN:a,iN:E,LG:n,nB:C,Co:l,Du:N,Ym:R,wl:f,i5:x,Hk:G,jg:A,K3:qa,Al:this.Al,eq:this.eq};q=this.loader.Q4();X=MT(q);q&&(W.Wk=X);if(M=sJ(this.loader)&&M?.Pz?M.uc:this.qK.JE())W.K4=M*1E3;M=this.V;q=M.O;if(M.iN?.MK()&&!q)for(Xs of M.B)if(Xs.r9){q=!0;break}var Xs=M.iN.MK()&&!q?[]:ZQt(M,M.B);W.yQ=Xs;Xs=this.V;Xs.iN.MK()&&!Xs.Zs?Xs=[]:(M=tll(Xs),M.length===0&&(M=Xs.C),Xs=ZQt(Xs,M));W.T0=Xs;W.hf=N1(this)?[this.C]:void 0;W.z1=Array.from(PJ(this.V.Z).keys(),Number);W.DT=this.V.DT();this.policy.CM&&(W.FI=PkJ(this.loader, this.audioTrack),W.k0=PkJ(this.loader,this.videoTrack));Xs=this.loader.getCurrentTime();b=tm(this,b.h5,Xs);T=tm(this,T.h5,Xs);this.lV=T=Math.min(b,T);this.policy.V&&(N1(this)&&(b=tm(this,this.S,Xs),this.qK.jW()&&b0&&this.Z[0].A8()&&(W.Fr=this.Z[0].Eo());return W}nU(M,W){this.W=void 0;HbL(this);uuS(this,M,W)}Ww(M){if(this.Z.length===0)return!1;const W=this.Z[0];return W instanceof vn?M===this.loader.getCurrentTime()*1E3:!(W instanceof iF&&W.info.Z?.Qp?.K4)&&Math.abs(W.nL()-M)<50}CU(M,W){this.B=M;this.policy.V&&!M.playbackCookie&&this.loader.dK("sbrnocookie",{rn:W??-1});this.policy.TI&&this.D?.D()?this.loader.dK("clsdai",{ignbckoff:W??-1,backoff:M.backoffTimeMs??-1}):this.W=(0,g.u)()+ (M.backoffTimeMs||0)}Bk(M,W){if(M.action===void 0)M=this.qK.JE(),M!==void 0&&this.loader.BL(M);else if(M.action!==0||!this.MK)if(M.action===0&&this.policy.GH&&(M.action=2),M.ZC==="sabr.malformed_config"&&this.wK++<3)this.loader.handleError("sabr.malformed_config",{action:M.action,rn:W,retry:this.wK},0);else{var b={};b.reason=M.ZC;b.action=M.action;b.rn=W;switch(M.action){case 1:this.policy.V&&this.Cv&&Op(this.Cv,void 0,void 0,b);break;case 0:this.MK=!0;this.videoData.FD()&&this.policy.V&&this.Cv&& Op(this.Cv,void 0,void 0,b,!1);this.loader.UQ(b);break;case 2:Y6P(M.ZC)!=="sabr.config"&&delete b.reason;this.loader.handleError(Y6P(M.ZC),b,1);break;case 3:this.policy.d9&&(this.HY.gK?.Zs(),this.loader.handleError("sabr.hostfallback",b))}}}MR(M){if(M.url)for(const W of M.url)pe(W,"ump_prewarm")}Zu(M){M&&(this.loader.dK("sabrctxt",{onsbrctxt:M.type,scp:M.scope,dflt:M.sendByDefault}),M.type&&M.sendByDefault&&this.videoData.An.add(M.type),M.scope!==2&&(M.type&&this.videoData.sabrContextUpdates.set(M.type, M),this.qK.Zu(M)))}TR(){}Wh(M,W){if(this.loader.sE)this.loader.dK("sdai",{ignSabrSeek:1,smt:M?.MS,rn:W});else if(M.MS!==void 0&&M.dR){const b=M.MS/M.dR;this.audioTrack.C=!1;this.videoTrack.C=!1;if(this.policy.Zs||this.policy.U1||this.policy.fH)this.loader.VW.Z=!1;this.qK.getCurrentTime()!==b&&(W={jR:"sabr_seek",CB:!0,Z$:!0},M.seekSource&&(W.seekSource=M.seekSource),Eh(this.loader,b+.1,W))}}onSnackbarMessage(M){this.qK.publish("onSnackbarMessage",M)}Pj(M,W){this.policy.S&&this.loader.Pj(M,W)}cU(M){M.Tz&& M.AJ&&U$(this.HY,M.Tz,M.AJ);this.policy.VI&&(M.Mq&&M.fJ&&(this.HY.R6=M.Mq/M.fJ),M.Tq&&M.Vy&&(this.HY.mF=M.Tq/M.Vy));en(this.videoData)&&!this.videoData.Lx&&M.AJ&&this.loader.Sa(M.AJ,1E3);M.Wz!=null&&this.qK.cf(M.Wz);M.BQ&&(M=((0,g.u)()-M.BQ)/1E3,this.loader.sM.DJ(1,M))}d6(M){this.loader.d6(M)}ib(M){this.loader.ib(M)}Kq(M){this.loader.Kq(M)}jp(M){return this.videoData.An.has(M)}Vo(M,W,b){this.policy.B&&this.loader.dK("sabrctxtplc",{start:M?M.join("_"):"",stop:W?W.join("_"):"",discard:b?b.join("_"): ""});if(M)for(const T of M)this.videoData.An.add(T);if(W)for(const T of W)this.videoData.An.has(T)&&this.videoData.An.delete(T);if(b)for(const T of b)if(this.videoData.sabrContextUpdates.has(T)&&this.videoData.sabrContextUpdates.delete(T),this.policy.X&&this.Z.length)for(const q of this.Z)q instanceof vn||q.gR?.type!==T||(q.gR=void 0)}pf(){}kt(M){this.C=M}h$(M){this.S=M}AA(M,W){Fw(this.policy,M,4,W)}Ir(M){if(M?.Mi&&(M=M.Mi.KL))for(const W of M)W.formatId&&(M=this.HY.B.get(yU(W.formatId)))&&M.info&& (M.info.debugInfo=W.debugInfo)}hA(M){this.Lp=!0;this.qK.publish("reloadplayer",M)}rU(){return this.qK.rU()||""}oX(){const {Mz:M,B5:W}=ADJ(this);return Math.min(M,W)}x9(M,W){this.loader.dK(M,W)}X$(M){Mz(this.loader,V4a(this.bV,M))}XX(){return{requestNumber:this.xk?.SG()||-1,isDecorated:this.xk?.info.isDecorated()}}Ed(M){this.qK.Ed(M)}aU(){this.loader.aU()}kM(){this.loader.kM()}vY(){super.vY();this.B=void 0;uuS(this,!0,"i");this.Z=[]}};var jJ$=class{constructor(M){this.qK=M;this.Z=new Map;this.delay=null}getCurrentTime(){return this.qK.getCurrentTime()-this.qK.Ga()}},GSr=class{constructor(M,W,b){this.A=M;this.cpn=W;this.qK=b;this.Z=new Map;this.B=new Map;this.C=NaN;this.V=this.kh="";this.isSeeking=!1;this.S=new jJ$(b);this.b$=b.b$;this.qK.subscribe("statechange",this.D,this);this.qK.subscribe("SEEK_TO",()=>{this.Pk()}); this.qK.subscribe("SEEK_COMPLETE",()=>{obQ(this)}); this.kh=this.V=this.cpn}D(M){by(M.state)&&fp(this.S)}clear(){var M=this.S;M.delay?.dispose();M.Z.clear();this.B.clear();this.Z.clear();this.C=NaN}W(M,W,b=0){if(M!==this.C||this.Z.get(M)?.B!==W?.B)if(W?this.Z.set(M,W):this.Z.delete(M),!this.isSeeking){var T=this.A.getStartTime(M);this.C=M;Qpt(this,M);if(W){let q=T;W.Z.forEach((X,G)=>{q=2&&!M.Bi()&&M.info.qZ===0&&(this.A=M,this.W=b,this.V=W.info,this.C=this.startTimeSecs=Date.now()/1E3,this.S=this.V.startTime)}return NaN}clear(){this.V=this.W=this.A=null;this.Z=this.S=this.C= this.startTimeSecs=NaN;this.B=!1}};var VtE=class extends g.gz{constructor(){super();try{this.B=bOJ(M=>{this.V=M.at(-1)}),this.S=this.B?.observe("cpu",{sampleInterval:2E3}).catch(M=>{M instanceof DOMException&&(this.Z=M)})}catch(M){M instanceof DOMException&&(this.Z=M)}}A(){const M={},W=window.h5vcc; M.hwConcurrency=navigator.hardwareConcurrency;this.Z&&(M.cpe=this.Z.message);this.V&&(M.cpt=this.V.time,M.cps=this.V.state);W?.cVal&&(M.cb2s=W.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),M.cb5s=W.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),M.cb30s=W.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30"));return M}vY(){Txt(this);super.vY()}};var qea=/[?&]cpn=/;var JLr=class extends g.gz{constructor(){super();this.maxBufferSize=this.sampleInterval=100;this.S=GUl;this.Z=[];this.B=0;J5S(this)}flush(){const M={};this.V&&(M.pe=this.V);this.Z.length>0&&(M.pt=this.Z.join("."));this.Z=[];return M}async stop(){try{const M=await this.A?.stop();M&&this.logTrace(M)}catch(M){this.V=VVs(M.message)}}logTrace(M){const W=[],b=[],T=[],q=[];let X=0;for(const G of M.resources)W.push({id:X,url:G}),X++;X=0;for(const {name:G,resourceId:V,line:J,column:B}of M.frames)b.push({id:X, name:G,resourceId:V,line:J,column:B}),X++;X=0;for(const {frameId:G,parentId:V}of M.stacks)q.push({id:X,frameId:G,parentId:V}),X++;X=0;for(const {timestamp:G,stackId:V}of M.samples)T.push({id:X,timestampMs:G,stackId:V}),X++;M=g.Id(g.Sr({resources:W,frames:b,samples:T,stacks:q},Y4J),4);this.B+=M.length;this.B<1E7&&this.Z.push(M)}vY(){this.stop();super.vY()}};(0,g.Ba)([112,12,216,9,235,17,82,221]);var tVg=[2,5,30];g.dS=tW(()=>{let M="";try{const W=g.Gr("CANVAS").getContext("webgl");W&&(W.getExtension("WEBGL_debug_renderer_info"),M=W.getParameter(37446),M=M.replace(/[ :]/g,"_"))}catch(W){}return M});g.m9=class extends g.gz{constructor(M){super();this.provider=M;this.logger=new g.uk("qoe");this.Z=new Map;this.sequenceNumber=1;this.O=NaN;this.Np="N";this.D=this.xo=this.r5=this.gK=this.B=0;this.d9=this.lV=this.C=this.xk="";this.oT=this.An=NaN;this.vP=0;this.fv=-1;this.cP=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ds=this.isEmbargoed=this.yz=this.isOffline=this.isBuffering=!1;this.WP=[];this.X=null;this.wK=this.S=this.sY=this.W=!1;this.A=-1;this.Lp=!1;this.FT=new g.d9(this.A5,750,this);this.xK= this.adCpn="";this.JA=this.GL=this.Ms=this.cS=this.adFormat=void 0;this.Hr=0;this.s2=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.x_=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.EY=!1;this.OY=NaN;this.BY=0;this.bV=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.XX=!1;this.Y9=new Set;this.k9={nf:b=>{this.nf(b)}, hAK:()=>this.V, reportStats:()=>{this.reportStats()}, Dpv:()=>this.Z.get("cat")||[], WN:b=>this.Z.get(b)||[], DaK:()=>this.Z, KQk:()=>({adCpn:this.adCpn,xK:this.xK,adFormat:this.adFormat}), i70:()=>({cS:this.cS,Ms:this.Ms,GL:this.GL,JA:this.JA})}; this.Zs=this.provider.uV.j("html5_qoe_relaxed_reporting");var W=g.TO(this.provider.uV.experiments,"html5_qoe_proto_mock_length");W&&!e3.length&&(e3=jnG(W));g.t(this,this.FT);try{navigator.getBattery?.().then(b=>{this.X=b})}catch{}g.hm(this,0,"vps",["N"]); M.uV.jW()&&(this.BY=(0,g.u)(),this.OY=g.ra(()=>{const b=(0,g.u)(),T=b-this.BY;T>500&&this.dK("vmlock",{diff:T.toFixed()});this.BY=b},250)); this.provider.videoData.Qs&&(this.remoteControlMode=wwL[this.provider.videoData.Qs]||0);this.provider.videoData.m5&&(W=WGL(this.provider.videoData.m5),W?.length&&(this.remoteConnectedDevices=W));M.uV.jW()&&(this.jT=new VtE,g.t(this,this.jT));M.uV.webPlayerContextConfig?.enableSelfProfilingLogging&&(this.MK=new JLr,g.t(this,this.MK))}A5(){const M=g.u3(this.provider);Am(this,M)}EM(){return this.zf}Yd(){return{r5:this.r5,xo:this.xo}}Es(M,W){this.r5=M;this.xo=W}cf(M){if(!this.XX){this.XX=!0;var W=""; switch(M){case 1:W="proximaui";break;case 2:W=this.provider.videoData.Vz.getWebPlayerContextConfig()?.enableProximaLowLatency?"proximawpcc":this.provider.videoData.j("html5_enable_proxima")||this.provider.videoData.j("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:W="proximaauto"}W!==""&&Pn(this,W)}}WL(M,W,b,T){if(!this.Y9.has(M)){this.Y9.add(M);var q=g.u3(this.provider);g.hm(this,q,"lse",[M,W,b,T.toFixed(3)])}}F3(M){i3(this,"lwc",[M.Sk?M.Sk.toFixed():"",M.Hp?M.Hp.toFixed(): "",M.AX?(M.AX*1E3).toFixed():"",M.KU?(M.KU*1E3).toFixed():"",M.QZ?(M.QZ*1E3).toFixed():""].join(":"))}reportStats(M=NaN){if(!this.ST()&&(M=M>=0?M:g.u3(this.provider),this.Zs?BGc.has(this.Np)&&(this.Z.size||(this.Np==="PL"?M>=this.B+30:M<=this.gK+30||M>=this.B+1200&&M<=this.gK+86400))&&(g.hm(this,M,"vps",[this.Np]),this.B=M):["PL","B","S"].indexOf(this.Np)>-1&&(this.Z.size||M>=this.B+30)&&(g.hm(this,M,"vps",[this.Np]),this.B=M),this.Z.size)){this.sequenceNumber===7E3&&g.lR(Error("Sent over 7000 pings")); if(!(this.sequenceNumber>=7E3)){S3(this,M);var W=this.provider.qK.IX();for(const {key:J,value:B}of W)this.dK(J,B);W=M;var b=this.provider.qK.ZD(),T=b.droppedVideoFrames||0;const X=b.totalVideoFrames||0,G=T-this.r5,V=X&&!this.xo;T>b.totalVideoFrames||G>5E3?Rjt(this,"html5.badframedropcount",`df.${T};tf.${b.totalVideoFrames}`):(G>0||V)&&g.hm(this,W,"df",[G]);this.r5=T;this.xo=X;this.D>0&&(g.hm(this,M,"glf",[this.D]),this.D=0);To.isActive()&&(M=To.Mr(),Object.keys(M).length>0&&this.dK("profile",M)); this.bV&&Pn(this,"lwnmow");M={};this.provider.videoData.V&&(M.fmt=this.provider.videoData.V.itag,(W=this.provider.videoData.A)&&W.itag!==M.fmt&&(M.afmt=W.itag));M.cpn=this.provider.videoData.clientPlaybackNonce;this.cS?.length?M.adcpn=this.cS.join(","):this.adCpn&&(M.adcpn=this.adCpn);this.Ms?.length?M.addocid=this.Ms.join(","):this.xK.length&&(M.addocid=this.xK);b=this.provider.videoData;W=b.FD();b=b.latencyClass;(this.provider.uV.hT().Z.UY(U2a)&&W&&b==="NORMAL"||this.provider.uV.hT().Z.UY(y0s)&& W&&b==="LOW"||this.provider.uV.hT().Z.UY(nll)&&this.provider.videoData.isDaiEnabled()&&Za(this.provider.videoData))&&(M.adc=1);this.provider.videoData.cotn&&(M.cotn=this.provider.videoData.cotn);M.el=gF(this.provider.videoData);M.content_v=T7(this.provider.videoData);M.ns=this.provider.uV.gK;M.fexp=Y2L(this.provider.uV.experiments).toString();M.cl=(871074148).toString();W=this.provider.videoData.adFormat||this.adFormat;this.GL?.length?M.adformat=this.GL.join(","):W&&(M.adformat=W);(W=Sn(this.provider.videoData))&& (M.live=W);this.provider.videoData.Xy()&&(M.drm=1,this.provider.videoData.S&&(M.drm_system=qZt[this.provider.videoData.S.flavor]||0),this.provider.videoData.drmProduct&&(M.drm_product=this.provider.videoData.drmProduct));m0()&&this.provider.videoData.ll&&(M.ctt=this.provider.videoData.ll,M.cttype=this.provider.videoData.C4,this.provider.videoData.mdxEnvironment&&(M.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(M.dai=this.provider.videoData.enableServerStitchedDai? "ss":"cs",this.provider.videoData.UE&&(M.dai_fallback="1"),Za(this.provider.videoData)&&(M.dai="mv")):this.provider.videoData.cF?M.dai="cs":this.provider.videoData.TX&&(M.dai="disabled");M.seq=this.sequenceNumber++;if(this.provider.videoData.MU){if(W=this.provider.videoData.MU,M&&W){W.ns==="3pp"&&(M.ns="3pp");this.x_.has(W.ns)&&Pn(this,"hbps");W.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=W.shbpslc);for(var q of Object.keys(W))this.s2.has(q)||(M[q]=W[q])}}else M.event="streamingstats", M.docid=this.provider.videoData.videoId,M.ei=this.provider.videoData.eventId;this.isEmbargoed&&(M.embargoed="1");Object.assign(M,this.provider.uV.Z);(q=M.seq)&&!this.provider.uV.experiments.hT().Z.UY(tsg)&&(W=xpq(this,+q),W=g.Sr(W,LHG),W=g.Id(W,4),this.Z.set("qclc",[W]));M=g.JM("//"+this.provider.uV.xL+"/api/stats/qoe",M);b=W="";for(const [J,B]of this.Z.entries()){T=B;if(!T?.join)continue;T=`&${J}=${T.join(",")}`;T.length>100?b+=T:W+=T}this.provider.uV.experiments.hT().Z.UY(tsg)&&(q=xpq(this,+(q|| 0)),q.qoePingUrl=M+W+b,g.V9("qoeClientLoggingContext",q),W+="&dl=1");FbS(this,M+W,b.replace(/ /g,"%20"))}this.Z.clear()}}iM(M){this.bV=M}aT(){if(this.provider.videoData.S){var M=this.provider.videoData.S;Pn(this,`eme-${M.keySystemAccess?"final":h$(M)?"ms":ue(M)?"ytfp":z0(M)?"safarifp":"nonfinal"}`)}}Wg(M){this.isEmbargoed=M}onPlaybackRateChange(M){const W=g.u3(this.provider);M&&M!==this.cP&&(g.hm(this,W,"rate",[M]),this.cP=M);this.Zs||this.reportStats(W)}getPlayerState(M){if(M.Z(128))return"ER";if(M.Z(2048))return"B"; if(M.Z(512))return"SU";if(M.Z(16)||M.Z(32))return"S";if(M.isOrWillBePlaying()&&M.Z(64))return"B";let W=DaV[a6(M)];g.XD(this.provider.uV)&&W==="B"&&this.provider.qK.getVisibilityState()===3&&(W="SU");W==="B"&&M.Z(4)&&(W="PB");return W}r6(M,W){const b=g.u3(this.provider);g.hm(this,b,"vfi",[M==="A"?"":`${W??0}`,M])}vY(){super.vY();g.FV(this.O);g.FV(this.OY)}nf(M){this.isOffline=M;g.hm(this,g.u3(this.provider),"is_offline",[this.isOffline?"1":"0"])}dK(M,W,b){const T=this.WP.indexOf(M)!==-1;T||this.WP.push(M); if(!b||!T){W=typeof W!=="string"?$B(W):W;W=hjt(W);if(!b&&!/^t[.]/.test(W)){var q=g.u3(this.provider)*1E3;W=`t.${q.toFixed()};${W}`}i3(this,"ctmp",`${M}:${W}`);OJ(this);return q}}jq(M,W,b){this.V={Ff:Number(this.dK("glrem",{nst:M.toFixed(),rem:W.toFixed(),ca:+b})),ww:M,zn:W,isAd:b}}LD(M,W,b){g.hm(this,g.u3(this.provider),"ad_playback",[M,W,b])}Cq(M,W){const b=g.u3(this.provider)*1E3;i3(this,"daism",`t.${b.toFixed(0)};smw.${(M*1E3).toFixed(0)};smo.${(W*1E3).toFixed(0)}`)}resume(){isNaN(this.O)?iOl(this): this.O=g.ra(()=>{this.reportStats()},1E4)}}; g.m9.prototype.Sh=Ma(50);g.m9.prototype.zs=Ma(33);g.m9.prototype.Ts=Ma(27);g.m9.prototype.Fo=Ma(21);var DaV={[5]:"N",[-1]:"N",[3]:"B",[0]:"EN",[2]:"PA",[1]:"PL",[-1E3]:"ER",[1E3]:"N"},BGc=new Set(["PL","B","S"]),e3=[];var ypS=class extends g.gz{constructor(M,W,b,T,q,X,G,V=!1,J,B){super();this.qK=M;this.schedule=W;this.policy=b;this.HY=T;this.gK=J;this.m$=B;this.tU=this.WY=null;this.An=this.xk=this.lV=this.O=0;this.ZT=this.UF=this.isSuspended=!1;this.wK="";this.k_={};this.d9=NaN;this.OY=this.vP=this.b7=0;this.Cv=null;this.oT=this.MK=!1;this.u1=0;this.EY=!1;this.BY=this.bV=0;this.FT=null;this.sE=!1;this.ZS=()=>this.qK.ZS(); this.timing=new uzQ(this.m$);this.X=new ZRQ(this.schedule,this.policy);this.fv=new g.d9(this.Le,0,this);this.cP=new g.d9(this.Le,this.policy.cP,this);this.Eu=new g.d9(this.Le,1E3,this);this.A5=new g.d9(this.Le,void 0,this);this.jT=new g.d9(()=>{this.isSuspended||this.Le()},1E4,this); this.aT=new g.d9(this.XP,250,this);this.W=this.currentTime=NaN;this.sM=new Ks(5);this.yz=this.timestampOffset=NaN;this.logger=new g.uk("dash");this.s2=Infinity;this.k9={J1Y:()=>this.VW, ngX:()=>this.B, getAudioTrack:()=>this.audioTrack, Gmz:()=>this.videoTrack, kNz:()=>this.Zs, getManifest:()=>this.HY, maT:()=>this.V, Le:()=>{this.Le()}, lY:()=>{this.O=0;this.lY()}, zFn:D=>Wa(this,this.videoTrack,this.WY.V,D)}; M=J&&J.NA();J&&(Fwt(J,this.HY,this.policy),this.yz=Date.now());this.Z=new etP(this,this.X,b,this.HY,q,M);b=X2G(this.Z,X,G&&G.id);this.audioTrack=new s7G(this,this.policy,b.audio,this.timing);this.videoTrack=new s7G(this,this.policy,b.video,this.timing);this.videoTrack.B.Zs=this.audioTrack.N8();this.Lp={updateend:this.sj,error:this.p7};g.t(this,this.fv);g.t(this,this.cP);g.t(this,this.Eu);g.t(this,this.A5);g.t(this,this.jT);b=this.policy.WX&&this.policy.ub?!W5l(this.videoTrack.Tv.info):!1;this.WP= UyS({YI:this.policy.W.YI||b,ub:this.policy.ub&&!b,Tk:this.policy.Tk});this.D=w_g(this,this.policy,this.WP,this.schedule,this.sM,(D,a)=>c5y(this,D,a)); this.B=new Sxa(this,this.HY,this.policy,this.videoTrack,this.audioTrack,V);this.policy.S&&(V=this.qK.getVideoData(),this.dK("clsdai",{initld:1,admapsz:V.Ug?.size}),V.Ug||(V.Ug=new Map),this.Zs=new ORt(this.policy,(D,a)=>{this.dK(D,a)},this.policy.Mf,V.Ug)); this.VW=new NYP(this,this.HY,this.videoTrack,this.audioTrack,this.policy);V=this.policy.NI?this.qK.getVideoData().wm:null;this.C=new YxG(this,this.policy,this.videoTrack,this.audioTrack,this.k_,this.B,this.timing,this.X,this.schedule,this.HY,this.Z,this.D,b,V);g.t(this,this.C);this.S=new $aV(this,this.policy,this.videoTrack,this.audioTrack,this.HY,q,lY(this.qK.getVideoData()),G?.id);g.t(this,this.S);fYs(this.S,X);this.V=new Xyp(this.qK,this,this.policy,this.audioTrack,this.videoTrack,this.HY,this.schedule, this.Z,this.S,this.timing,this.B,this.Zs);g.t(this,this.V);this.A=this.qK.wG.l7.q3;this.policy.C||Qns(this);this.policy.m$&&(this.x_=new GSr(this.videoTrack.Tv.index,this.qK.getVideoData().clientPlaybackNonce??"",this.qK))}initialize(M,W,b){M=M||0;this.policy.Z||(W=BQq(this.Z),Yg(this.qK,new $h(W.video,W.reason)),this.qK.qj(new $h(W.audio,W.reason)));this.policy.Z&&oZ(this);this.HY.isManifestless&&LFa(this.C);this.D&&p_G(this.D,this.videoTrack.Tv);W=isNaN(this.getCurrentTime())?0:this.getCurrentTime(); let T=!this.HY.isManifestless;this.policy.mJ&&(T=T||this.HY.f7);if(!this.policy.gK||this.policy.Ds)this.currentTime=T?M:W;this.policy.Zs&&this.seek(this.getCurrentTime(),{}).JD(()=>{}); this.policy.Z?this.A?.JB(this.rU()||"")&&gmP(this)&&bl(this,this.videoTrack)&&bl(this,this.audioTrack)&&(SVl(this.V,this.A),this.policy.C&&Qns(this)):this.gK&&(snJ(this,this.videoTrack),snJ(this,this.audioTrack),NdL(this.gK),delete this.gK);b?(this.sY(!1),this.Eu.Wr()):(M=this.getCurrentTime()===0,AV(this.C,this.videoTrack,this.videoTrack.Tv,M),AV(this.C,this.audioTrack,this.audioTrack.Tv,M),this.policy.Z&&ibt(this.V,{K3:1}),this.policy.Zs||this.seek(this.getCurrentTime(),{}).JD(()=>{}),this.timing.tick("gv")); (this.HY.Sk||this.HY.Hp||this.HY.AX||this.HY.KU||this.HY.QZ)&&this.qK.F3(this.HY)}sY(M){this.UF=M||this.qK.G().j("html5_allow_multiview_tile_preload")&&this.qK.getVideoData().x_;this.policy.BY||(this.isSuspended=!0,this.policy.BC&&(this.Eu.stop(),this.cP.stop(),this.fv.stop()),this.jT.stop())}resume(){if(this.isSuspended||this.ZT){this.UF=this.ZT=this.isSuspended=!1;try{this.Le()}catch(M){g.O(M)}}}fB(){return!this.policy.A5}XX(M=!1){return Math.min(yP(this.audioTrack,M),yP(this.videoTrack,M))}Ez(M= !1,W=!1){YeL(this);this.qK.Aj()&&(this.W=NaN);M?(this.policy.lV&&this.dK("loader",{setsmb:1}),this.policy.BY=!0,this.GK()):(this.sY(!1),W||this.GK())}setAudioTrack(M,W,b=!1){if(!this.ST()){var T=!isNaN(W);b&&T&&(this.audioTrack.gK=Date.now(),this.policy.nz&&(this.EY=!0));b=this.qK.Aj()&&!this.qK.getVideoData().D;if(this.policy.Z){var q=this.S.GP(M.id,T);this.qK.qj(q)}else q=this.Z,q.V=q.HY.Z[M.id],q.W=q.V,q=new QX(q.W,q.B,T?"t":"m"),this.qK.qj(new $h(q.audio,q.reason));T?(this.d9=Date.now(),T=this.audioTrack.Tv.index.UX(W), this.dK("setAudio",{id:M.id,cmt:W,sq:T}),T>=0&&(M=this.policy.XF?T+1:T,this.policy.Z&&this.nU(!0,"mosaic"),Zv(this.audioTrack,M,NaN,NaN),!this.policy.x_&&this.HY.isLive&&y3(this.HY,M,!1))):b||this.qK.fW()}}setPlaybackRate(M){M!==this.X.getPlaybackRate()&&this.X.setPlaybackRate(M)}eJ(M){const W=this.V.C;this.V.kt(M);this.dK("scfidc",{curr:yU(W),"new":yU(M)});M&&yU(M)!==yU(W)&&(this.nU(!0,"caption change"),this.I2())}Dm(M){this.V.h$(M)}pm(M){M.Z.info.s1()?this.qK.qj(M):Yg(this.qK,M)}X$(M){t5(M.g9[M.g9.length- 1])&&Mz(this,V4a(this.Z,M.g9[0].Tv))}Q4(){return this.qK.Q4()}zo(){return this.qK.zo()}Kq(M){this.qK.G().jW()&&this.dK("sps",{status:M.um||""});if(M.um===1)this.b7=0;else if(M.um===2||M.um===3){let W=!1;M.um===3&&(this.s2=M.WD??Infinity,this.b7+=1,(W=SB(this))&&this.Ji(!0));this.qK.d8(!0,W)}}RK(){return this.qK.RK()}xS(){return this.qK.xS()}RU(M){this.qK.RU(M)}I2(){this.Le()}XP(){const M=this.qK.E2()?.getCurrentTime();M?this.qK.dK("rms",{cta:M}):this.aT.Wr()}Le(){qz(this);if(this.WY&&g8(this.WY)&& !this.WY.pu()&&(!this.policy.gK||isFinite(this.getCurrentTime()))){var M=Ep(this.videoTrack);M=this.policy.jj&&M&&M.C();this.HY.isManifestless&&this.HY.D&&BR(this.HY)?(this.W=BR(this.HY),this.WY.wI(this.W)):Cf(this.HY)&&!M?(M=this.getCurrentTime(),this.policy.gK&&this.policy.Ds&&this.dK("ssrDuration",{ld:this.Ds(),lct:this.currentTime,vpd:this.getCurrentTime()},!0),isNaN(this.W)?(this.W=M+3600,this.WY.wI(this.W)):this.W<=M+1800&&(this.W=Math.max(this.W+1800,M+3600),this.WY.wI(this.W))):this.WY.isView|| (M=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==M)&&M>0&&(this.WY.wI(M),this.W=M))}if(!this.ST())if(J$(this.HY)&&this.HY.Bi()){var W=this.HY;this.handleError("manifest.net.retryexhausted",W.XX?{rc:W.Iq}:{rc:W.Iq.toString()},1)}else if(this.policy.Z)a:{try{if(sJ(this)&&this.tU){W=this.V;var b=this.tU;const C=b.Z;if(C){var T=W.qK.JE(),q=!0;T||(T=W.loader.getCurrentTime(),q=!1);{var X=C,G=T;const l=q?W.qK.OJ(G):G;if(W.loader.uS(l))var V=!1;else{var J= {t:G.toFixed(3),isUtc:q};c:{const N=W.qK.rU();if(N){for(const R of[W.audioTrack,W.videoTrack]){const f=Ue(R.Tv,W.HY.Me);T=X?.uf(f,N)||[];if(T.length===0||!EXs(new A5(T),l)){var B=!1;break c}}B=!0}else B=!1}B?(W.loader.dK("prebuffer",Object.assign(J,{inrange:1})),V=!0):(X.info.Z?.Qp?.K4?q&&(X.info.Z?.Qp?.K4||0)===G*1E3:!q&&(X.info.Z?.Qp?.w4||0)===G*1E3)?(W.loader.dK("prebuffer",Object.assign(J,{match:1})),V=!0):V=!1}}V&&(W.qK.vr("ismp_c"),W.Z.push(C),W.sY?.Z(C.info.Vc),C.La(),b.B(!1))}}Kp(this.V); this.HY.isManifestless&&this.policy.C&&a1(this.VW);this.WY?.C()&&this.lY();ibt(this.V);if(sJ(this)&&this.tU){var D=this.V,a=this.tU;const C=a.V.uc;if(C!==void 0&&C>=0){D.qK.vr("ismp_a");var E=a.V;if(Obl(D,E)){var n=FTt(D,E);D.policy.lm>0&&D.Ds.M6++;n&&(a.Z!==n&&(yCs(a),a.Z=n,a.V=vv),D.qK.vr("ismp_rc"))}}}}catch(C){g.lR(C);if(C.message.includes("changeType")){this.dK("ctype",{exp:C.name,msg:C.message,s:C.stack});break a}this.handleError("fmt.unplayable",{exp:C.name,msg:C.message,s:C.stack,trg:"sabrslicerqt"}, 1)}bfQ(this);this.jT.Wr()}else if(!this.HY.V||!GOS(this.videoTrack)&&!GOS(this.audioTrack)||(this.videoTrack.A||this.audioTrack.A)&&this.policy.bV?W=!1:(this.GK(),this.qK.seekTo(Infinity,{jR:"checkLoaderTracksSync",Sa:!0}),W=!0),!W){qz(this);this.HY.isManifestless&&(Vlt(this.videoTrack),Vlt(this.audioTrack),a1(this.VW),(W=BJ(this.videoTrack))&&W.Z&&(W=W.Z.A&&!this.policy.ub,this.dK(W===this.policy.W.YI?"strm":"strmbug",{strm:W,sfmp4:this.policy.W.YI,dfs:this.policy.ub},!0)));if(this.WY)this.lY(); else if(this.policy.A){W=!1;if(this.policy.zH)for(q of[this.videoTrack,this.audioTrack]){for(b=BJ(q);b&&q.zy()!==Ep(q);b=BJ(q))q.z5(b);W=W||!!b}else(X=BJ(this.videoTrack))&&this.videoTrack.z5(X),(G=BJ(this.audioTrack))&&this.audioTrack.z5(G);KE(this.videoTrack)&&KE(this.audioTrack)||(X||G||W)&&kg(this)}TL(this);AV(this.C,this.videoTrack,this.videoTrack.Tv,!1);AV(this.C,this.audioTrack,this.audioTrack.Tv,!1);if(!this.policy.Yn&&(W=this.videoTrack,J=this.audioTrack,(!this.WY||g8(this.WY)&&!this.policy.RN)&& !this.VW.isSeeking()&&(this.policy.Z||fE(W)&&W.Tv.Z()&&this.Z.gK)))a:{if(b=this.getCurrentTime(),V=this.X,B=WJ(V,W.Tv.info.sB,J.Tv.info.sB,0),J=MM(V.PP)+B/Yf(V.PP),b+=Math.max(J,J+V.policy.C5-B/W.Tv.info.sB),W.V.length){if(W.V[0].info.g9[0].startTime<=b)break a;j8(W)}V=W.B;for(J=V.V.length-1;J>=0;J--)V.V[J].info.startTime>b&&V.V.pop();bQa(W);W.Z&&b 5&&M.X.shift(),W=W.Kp,this.qK.getVideoData()?.enableServerStitchedDai&&(b=DWS(this.audioTrack,W),M=DWS(this.videoTrack,W),b!==0&&M!==0&&b!==M&&this.handleError("ssdai.avsync",{sq:W,a:b,v:M},0)))}}nC(M,W,b,T){M.info.video&&this.B.nC(W,b,T)}l8(M){this.Z.l8(M)}Nl(){return this.Cv}LS(){return this.videoTrack.C||this.audioTrack.C}seek(M,W){if(this.ST())return Rk();if(this.LS())return Rk("seeking to head");if(this.policy.Zs&&!isFinite(M))return fxs(this.VW),g.fG(Infinity);qz(this);ahP(this,M,!1,W.seekSource); oZ(this);this.policy.Z||TL(this,M);this.WY&&this.WY.Z&&this.WY.V&&!this.qK.getVideoData().Nt&&(this.WY.Z.isLocked()||this.WY.V.isLocked())&&this.qK.fW({reattachOnLockedBuffer:1,vsb:`${this.WY.V.isLocked()}`,asb:`${this.WY.Z.isLocked()}`});const b=this.getCurrentTime(),T=this.VW.seek(M,W);if(!this.policy.gK||this.policy.Ds)this.currentTime=T;S8(this.B,M,b,this.policy.Fx&&!W.CB);kg(this);return g.fG(T)}Ww(M){return this.policy.Z&&this.V.Ww(M)}jp(M){return this.V.jp(M)}nU(M,W){this.V.nU(M,W)}getCurrentTime(){if(this.policy.gK){const M= this.Ga()||0;return this.qK.getCurrentTime(!0)-M}return this.currentTime}Ds(){return this.currentTime+this.timestampOffset}Lj(){return this.audioTrack.Tv.info}Bh(){return this.videoTrack.Tv.info}u9(){return this.audioTrack.Tv.info.Qz}qM(){return this.videoTrack.Tv.info.Qz}vY(){try{this.Ez(),j8(this.audioTrack),j8(this.videoTrack),RZ(this.audioTrack),RZ(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),super.vY()}catch(M){g.O(M)}}handleError(M,W,b=0){const T=Mm(b);M==="fmt.unplayable"&& this.HY.isLive&&(this.policy.Tk=!1,nf(this.HY));W=new g.WE(M,W,b);g.Zl(this);$B(W.details);this.qK.handleError(W);M!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&M!=="fmt.unparseable"&&T&&this.dispose()}qd(){var M=Ep(this.audioTrack),W=Ep(this.videoTrack);M={lct:this.getCurrentTime().toFixed(3),lsk:this.VW.isSeeking(),lmf:this.Z.Z.isLocked(),lbw:Bm(this.schedule).toFixed(3),lhd:MM(this.schedule).toFixed(3),lst:((this.schedule.W.Hx()||0)*1E9).toFixed(3),laa:M?M.lw():"",lva:W?W.lw():"",lar:this.audioTrack.Z? this.audioTrack.Z.lw():"",lvr:this.videoTrack.Z?this.videoTrack.Z.lw():"",laq:`${tV(this.audioTrack)}`,lvq:`${tV(this.videoTrack)}`};this.WY&&!this.WY.Cz()&&this.WY.Z&&this.WY.V&&(M.lab=zn(this.WY.Z.ZY()),M.lvb=zn(this.WY.V.ZY()));this.O&&(M.lapt=((0,g.u)()-this.O).toFixed(0),M.lapr=XRL(this));this.lV&&(M.lapmabht=((0,g.u)()-this.lV).toFixed(0),M.lapmabh=VX(this,this.audioTrack).toFixed(0));(W=this.V.jT)&&(M.reqBlocked=W);(W=this.V.OY)&&(M.lsrt=((0,g.u)()-W).toFixed(0));this.xk&&(M.lapmvbht=((0,g.u)()- this.xk).toFixed(0),M.lapmvbh=VX(this,this.videoTrack).toFixed(0));this.An&&(M.lapsdai=((0,g.u)()-this.An).toFixed(0));return M}GY(){return this.Z.Z}GK(){try{this.policy.Z&&this.V.nU(!1,"pending"),this.audioTrack.GK(),this.videoTrack.GK()}catch(M){g.O(M)}this.policy.A=""}uS(M){return this.videoTrack&&this.audioTrack?this.videoTrack.uS(M)&&this.audioTrack.uS(M):!0}M8(){return $H(this.X)}dK(M,W,b=!1){this.qK.dK(M,W,b)}rU(){return this.qK.rU()}Sa(M,W){M/=W;isNaN(this.timestampOffset)&&Jx(this,M-Math.min(M, this.policy.H5));return(M-this.timestampOffset)*W}Ga(){return this.timestampOffset}isSeeking(){return this.VW.isSeeking()}vE(){this.B.vE()}zV(M,W=!1,b={}){this.policy.Z?this.S.zV(M,W,b):this.Z.zV(M,W,b)}GN(){this.policy.V&&this.sE&&(this.dK("sdai",{skipAdSked:"1"}),this.sE=!1)}L4(M,W){if(this.policy.V&&(this.sE||this.isSeeking()))return this.dK("sdai",{ignoreSkip:"1",isSkip:this.sE,isSeek:this.isSeeking(),t:M.toFixed(3)}),!1;const b=this.policy.V&&(this.policy.S||this.policy.X5),T=this.videoTrack.Tv.index.UX(M); let q=!1;if(b){if(q=!!this.Zs?.FR(M,T,this.timestampOffset))zV(this,M,M,T),this.Cv&&this.Cv?.FR(M,T)}else this.Cv&&(q=!!this.B.L4(M,this.Cv));if(!q)return this.handleError("ad.skipfailed",{dec:!!this.Cv,t:M.toFixed(3),sq:T}),!1;this.policy.V&&(this.dK("sdai",{skipAdStd:"1"}),this.sE=!0);this.policy.m$&&this.x_?.clear();Jx(this,this.timestampOffset-W);kg(this);this.policy.V&&(nf(this.HY),RZ(this.audioTrack),RZ(this.videoTrack),this.GK());return!0}ek(){Jx(this,this.timestampOffset-1E3);var M=this.HY; const W=new Set;for(const T in M.Z){const q=M.Z[T].index;var b=q.R5();b&&!W.has(b)&&(b.startTime+=1E3,b.endTime=b.startTime+b.duration,W.add(b));q.segments.length&&(b=q.segments[q.segments.length-1],q.segments=[],q.segments.push(b))}this.Cv&&this.Cv.ke();this.policy.X5&&this.policy.V&&this.Zs?.ke();S8(this.B,0,0,!0);this.sE=!1}getManifest(){return this.HY}isOffline(){return!!this.qK.getVideoData().cotn}aC(M,W){this.qK.aC(M,W)}Hj(M,W){if(this.policy.Z)ahP(this,M,!0,W),this.V.nU(!0,"utc"),this.I2(); else if(W=this.qK.getVideoData().wm){var b=this.C;b.NZ=M;b.wm=W;Pu(this)}}BL(M){this.videoTrack.C=!1;this.audioTrack.C=!1;this.VW.Z=!1;this.qK.BL(M)}A$(M){this.VW.A$(M-this.Ga())}dV(){this.qK.dV()}Ji(M){M!==this.policy.Ic&&((this.policy.Ic=M)||this.Le())}fW(M){this.qK.fW(M)}iM(M){this.qK.iM(M)}On(M,W,b){this.Zs?.On(M,W,b);this.policy.S&&(this.V.W=void 0,this.Le())}N9(M){this.Zs?.N9(M)}ib(M){this.policy.sY&&this.qK.getVideoData().Me()&&!M.E_&&(this.dK("liveUmpMissing",{segmentNum:M.hR,headerId:M.dM, startMs:M.startMs,durationMs:M.durationMs}),this.policy.sY=!1)}Pj(M,W){if(this.policy.S){const b=M.TZ?.[0],T=awL(this.qK.getVideoData());this.Zs?.Pj(M,W,this.Cv||void 0,T,this.policy.S6?this.HY:void 0);this.dK("clidai",{onqlst:1,len:M.TZ?.length||0,rn:W,evt:crs(b?.vF?.event),cid:b?.vF?.identifier||"null",sq:b?.hR||-1,trk:b?.trackType||"null",disr:T})}}d6(M){this.policy.sY&&this.Cv?.d6(M)}prefetchKeyPlay(M,W){sJ(this)&&(this.tU||(this.tU=new dDS(b=>{this.qK.vr(b)}),g.t(this,this.tU)),nGL(this.tU,{uc:M, Pz:W,K3:2}),this.Le())}kM(){this.vP++}aU(){this.vP=0}Hr(){return this.qK.getVideoData().D?(0,g.u)()-this.schedule.An>3E5&&this.vP>=3:!this.schedule.An}zm(){this.V.O.M6=0}Ic(){this.V.W=void 0}};var alI=class extends g.b9{};var EPQ=class extends alI{constructor(M,W,b,T){super();this.B=-1;this.Z={};this.A=new g.d9(this.S,0,this);g.t(this,this.A);this.V=new g.d9(()=>{this.ST()||(this.A.start(Math.random()*b),this.V.start(W))},M,this); g.t(this,this.V);T.subscribe("fairplay_next_need_key_info",this.C,this)}C(M,W){if(M&&W){var b=Number(Ec(M,"cpi"))*1+1;isNaN(b)||b<=0||bthis.B&&(this.B=b,g.P$(this.Z)||(this.Z={},this.A.stop(),this.V.stop())),this.Z[W]=M,this.V.Wr())}}S(){for(const q of Object.keys(this.Z)){var M=this.publish,W=this.B,b=g.pD(this.Z[q]),T=b[6];const X=[];for(const G of T.split("&"))G.indexOf("cpi=")===0?X.push("cpi="+W.toString()):G.indexOf("ek=")===0?X.push("ek="+ g.ju(q)):X.push(G);b[6]="?"+X.join("&");W="skd://"+b.slice(2).join("");T=W.length*2;b=new Uint8Array(T+4);b[0]=T%256;b[1]=(T-b[0])/256;for(T=0;T{this.publish("log_qoe",{wvagt:"timer",reqlen:this.Z?this.Z.length:-1});if(this.Z){if(this.Z.length>0){var b=this.Z.shift();UsL(this,b.info)}this.Z.length>0&&(b=this.Z[0].time-(0,g.u)(),this.V.start(Math.max(0,b)))}},0); g.t(this,this.V);W.subscribe("widevine_set_need_key_info",this.A,this)}A(M){var W;a:{if((W=M.cryptoPeriodIndex)&&this.Z.length>0)for(var b of this.Z)if(W===b.info.cryptoPeriodIndex){W=!0;break a}W=!1}if(!W){W=(0,g.u)();a:{b=M.cryptoPeriodIndex;if(!isNaN(b))for(T of this.B.values())if(Math.abs(T.cryptoPeriodIndex-b)<=1){var T=!0;break a}T=!1}T?(T=M.Z,T=Math.max(0,Math.random()*((isNaN(T)?120:T)-30))*1E3):T=0;this.publish("log_qoe",{wvagt:`delay.${T}`,cpi:M.cryptoPeriodIndex,reqlen:this.Z.length}); T<=0?UsL(this,M):(this.Z.push({time:W+T,info:M}),this.V.Wr(T))}}vY(){this.Z=[];super.vY()}};var ifJ=class{constructor(){({url:b,interval:W,retries:M}={});var M,W,b;this.url=b;this.interval=W;this.retries=M}};var k0p=class{constructor(M,W){this.statusCode=M;this.message=W;this.B=this.heartbeatParams=this.errorMessage=null;this.V=[];this.Z={};this.nextFairplayKeyId=null}},KaP={DRM_TRACK_TYPE_AUDIO:"AUDIO",DRM_TRACK_TYPE_SD:"SD",DRM_TRACK_TYPE_HD:"HD",DRM_TRACK_TYPE_UHD1:"UHD1"};var fhy=class extends g.gz{constructor(M,W,b="",T=!1){super();this.message=M;this.requestNumber=W;this.timer=b;this.V=T;this.onError=this.onSuccess=null;this.Z=new g.di(5E3,2E4,.2)}};var yLB=class extends g.b9{constructor(M,W,b,T,q){super();this.videoData=M;this.uV=W;this.D=b;this.sessionId=T;this.Ej=q;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.O=this.Zs=!1;this.B=null;this.sY=[];this.A=[];this.authorizedFormats=[];this.X=[];this.W=!1;this.Z={};this.status="";this.C=NaN;this.V=M.S;this.cryptoPeriodIndex=b.cryptoPeriodIndex;M={};Object.assign(M,this.uV.Z);M.cpn=this.videoData.clientPlaybackNonce;this.videoData.Zs&&(M.vvt=this.videoData.Zs,this.videoData.mdxEnvironment&& (M.mdx_environment=this.videoData.mdxEnvironment));this.uV.sY&&(M.authuser=this.uV.sY);this.uV.pageId&&(M.pageid=this.uV.pageId);isNaN(this.cryptoPeriodIndex)||(M.cpi=this.cryptoPeriodIndex.toString());q=(q=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vd()))?q[1]:"";q==="ATV"&&(M.cdt=q);this.S=M;this.S.session_id=T;this.gK=!0;this.V.flavor==="widevine"&&(this.S.hdr="1");this.V.flavor==="playready"&&(W=Number(cR(W.experiments,"playready_first_play_expiration")),!isNaN(W)&&W>=0&&(this.S.mfpe=`${W}`),this.gK= !1);W="";g.S0(this.V)?this.V.Z()?(T=b.V)&&(W="https://www.youtube.com/api/drm/fps?ek="+BVt(T)):(W=b.initData.subarray(4),W=new Uint16Array(W.buffer,W.byteOffset,W.byteLength/2),W=String.fromCharCode.apply(null,W).replace("skd://","https://")):W=this.V.B;this.baseUrl=W;this.fairplayKeyId=Ec(this.baseUrl,"ek")||"";if(W=Ec(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(W);this.sY=b.dU?[g.Id(b.initData,4)]:b.B;D7(this,{sessioninit:b.cryptoPeriodIndex});this.status="in"}ob(M){if(!(this.ST()||M.size<= 0)){var W={};M.forEach((b,T)=>{const q=A$(this.V)?T:b;T=new Uint8Array(A$(this.V)?b:T);A$(this.V)&&eJs(T);b=g.Id(T,4);eJs(T);T=g.Id(T,4);this.Z[b]?this.Z[b].status=q:this.Z[T]?this.Z[T].status=q:this.Z[b]={type:"",status:q};S$s(this,this.Z[b].type,W)}); Oft(this,",");D7(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}error(M,W,b,T){this.ST()||(this.publish("licenseerror",M,W,b,T),M==="drm.provision"&&(M=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:M.toFixed(3)})));Mm(W)&&this.dispose();this.Ej&&(this.Ej.dispose(),this.Ej=void 0)}shouldRetry(M,W){return!M&&this.requestNumber===W.requestNumber}vY(){this.Z={};super.vY()}qd(){const M={ctype:this.D.contentType||"",length:this.D.initData.length, requestedKeyIds:this.sY,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(M.keyStatuses=this.Z);return M}getInfo(){let M=this.A.join();if(EP(this)){const W=new Set;for(const b in this.Z)this.Z[b].status!=="usable"&&W.add(this.Z[b].type);M+=`/UKS.${Array.from(W)}`}return M+=`/${this.cryptoPeriodIndex}`}WF(){return this.url}};var UP=class extends g.gz{constructor(M,W,b,T,q,X=!1){super();this.element=M;this.D=W;this.initData=b;this.Z=T;this.V=q;this.Zs=X;this.sessionId="";this.W=this.C=this.B=this.S=null;this.A=new g.Cq(this);g.t(this,this.A);dsp(this)}sY(M){if(this.S){var W=M.messageType||"license-request";this.S(new Uint8Array(M.message),W)}}ob(){this.W&&this.W(this.Z.keyStatuses)}onClosed(){this.ST()||g.Df("xboxone")&&this.B&&this.B("closedShouldNotRetry")}O(M){this.S&&this.S(M.message,"license-request")}gK(M){if(this.B){if(this.V){var W= this.V.error.code;M=this.V.error.systemCode}else W=M.errorCode,M=M.systemCode;this.B(`t.prefixedKeyError;c.${W};sc.${M}`,W,M)}}X(){this.C&&this.C()}update(M){if(this.Z)return this.Z.update(M).then(null,OE(W=>{oZs(this,"t.update",W)})); this.V?this.V.update(M):this.element.addKey?this.element.addKey(this.D.keySystem,M,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.D.keySystem,M,this.initData,this.sessionId);return MG()}vY(){this.Z&&(this.Zs?this.Z.close().catch(g.lR):this.Z.close());this.element=null;super.vY()}};var Ls=class extends g.gz{constructor(M,W,b=!1){super();this.element=M;this.Z=W;this.C=b;this.S={};this.B=null;this.A=new g.Cq(this);this.V=this.mediaKeys=null;this.W=Promise.resolve();g.t(this,this.A)}setServerCertificate(){return this.mediaKeys.setServerCertificate?this.Z.flavor==="widevine"&&this.Z.yg?this.mediaKeys.setServerCertificate(this.Z.yg):this.Z.Z()&&this.Z.qw?this.mediaKeys.setServerCertificate(this.Z.qw):null:null}createSession(M,W){let b=M.initData;if(this.Z.keySystemAccess){W&&W("createsession"); const T=this.mediaKeys.createSession();ue(this.Z)?b=slP(b,this.Z.qw):this.Z.Z()&&(b=y$p(b)||new Uint8Array(0));W&&W("genreq");M=T.generateRequest(M.contentType,b);const q=new UP(null,null,null,T,null,this.C);M.then(()=>{W&&W("genreqsuccess")},OE(X=>{oZs(q,"t.generateRequest",X)})); return q}if(h$(this.Z))return gZG(this,b);if(z0(this.Z))return wRg(this,b);this.element?.generateKeyRequest?this.element.generateKeyRequest(this.Z.keySystem,b):this.element?.webkitGenerateKeyRequest(this.Z.keySystem,b);return this.B=new UP(this.element,this.Z,b,null,null,this.C)}gK(M){const W=C5(this,M);W&&W.O(M)}X(M){const W=C5(this,M);W&&W.gK(M)}D(M){const W=C5(this,M);W&&W.X(M)}getMetrics(){let M=null;if(this.mediaKeys&&this.mediaKeys.getMetrics)try{M=this.mediaKeys.getMetrics()}catch{}return M}vY(){this.V= this.mediaKeys=null;this.B?.dispose();for(const M of Object.values(this.S))M.dispose();this.S={};super.vY();delete this.element}};var lM=class{constructor(){this.keys=[];this.values=[]}get(M){M=this.findIndex(M);return M!==-1?this.values[M]:null}remove(M){M=this.findIndex(M);M!==-1&&(this.keys.splice(M,1),this.values.splice(M,1))}removeAll(){this.keys=[];this.values=[]}set(M,W){const b=this.findIndex(M);b!==-1?this.values[b]=W:(this.keys.push(M),this.values.push(W))}findIndex(M){return g.YP(this.keys,W=>g.mA(M,W))}};var D8P=class extends g.b9{constructor(M,W,b,T=null,q){super();this.element=M;this.videoData=W;this.uV=b;this.mediaElement=T;this.Ej=q;this.A=[];this.xk=2;this.EY=this.lV=!1;this.heartbeatParams=null;this.sY=this.gK=!1;this.S=null;this.An=!1;this.Z=this.videoData.S;this.drmSessionId=this.videoData.drmSessionId||g.F$Q();this.B=new Map;this.C=new lM;this.W=new lM;this.Zs=new g.Cq(this);this.D=this.uV.j("html5_eme_ignore_teardown_errors");(M=this.element)&&(M.addKey||M.webkitAddKey)||FJ()||ie(b.experiments); this.uV.j("html5_enable_vp9_fairplay")&&this.Z.Z()?b=wZ:(b=this.videoData.Qu,b=this.Z.flavor==="fairplay"||b?ll:wZ);this.X=b;this.uV.hT().Z.UY(J0J)&&this.Ej?(this.Ej.mediaKeys||(this.Ej.mediaKeys=new Ls(this.element,this.Z,this.D)),this.mediaKeys=this.Ej.mediaKeys):(this.mediaKeys=new Ls(this.element,this.Z,this.D),g.t(this,this.mediaKeys));h$(this.Z)&&(this.O=new Ls(this.element,this.Z,this.D),g.t(this,this.O));g.t(this,this.Zs);b=this.element;this.Z.keySystemAccess?this.Zs.J(b,"encrypted",this.XX): pU(this.Zs,b,h$(this.Z)?["msneedkey"]:["needkey","webkitneedkey"],this.OY);Y$J(this);a:switch(M=this.Z,b=this.B,M.flavor){case "fairplay":BV()>19.2999?(b=M.lJ,M=M.PN,M>=b&&(M=b*.75),W=(b-M)*.5,b=new EPQ(W,b,b-W-M,this)):b=null;break a;case "widevine":b=new nPp(b,this);break a;default:b=null}if(this.S=b)g.t(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.BY,this),this.S.subscribe("log_qoe",this.V,this);ie(this.uV.experiments);this.V({cks:this.Z.getInfo()})}XX(M){this.V({onecpt:1}); M.initData&&MzL(this,new Uint8Array(M.initData),M.initDataType)}OY(M){this.V({onndky:1});MzL(this,M.initData,M.contentType)}Sq(M){this.V({onneedkeyinfo:1});this.uV.j("html5_eme_loader_sync")&&(this.W.get(M.initData)||this.W.set(M.initData,M));$TS(this,M)}BY(M){this.A.push(M);K5(this)}createSession(M){var W=Wjy(this)?Ieq(M):g.Id(M.initData);this.B.get(W);this.sY=!0;M=new yLB(this.videoData,this.uV,M,this.drmSessionId,this.Ej);this.B.set(W,M);M.subscribe("ctmp",this.MK,this);M.subscribe("keystatuseschange", this.ob,this);M.subscribe("licenseerror",this.IJ,this);M.subscribe("newlicense",this.jT,this);M.subscribe("newsession",this.wK,this);M.subscribe("sessionready",this.Ds,this);M.subscribe("fairplay_next_need_key_info",this.Lp,this);this.uV.j("html5_enable_vp9_fairplay")&&M.subscribe("qualitychange",this.yz,this);M.subscribe("sabrlicenseconstraint",this.d9,this);W=this.mediaKeys;D7(M,{createkeysession:1});M.status="gr";rO("drm_gk_s",void 0,M.videoData.gK);M.url=lhG(M);M.uV.hT().Z.UY(hJt)&&M.Ej?.Z&&M.Ej?.licenseRequest? (M.B=M.Ej.Z,IhL(M,M.Ej.Z,M.Ej,M.Ej.certificate),a8(M,M.Ej.licenseRequest,"license-request")):(M.B=Fag(M,W,M.Ej?.certificate),g.t(M,M.B))}jT(M){this.ST()||(this.V({onnelcswhb:1}),M&&!this.heartbeatParams&&(this.heartbeatParams=M,this.publish("heartbeatparams",M)))}wK(){this.ST()||(this.V({newlcssn:1}),this.A.shift(),this.sY=!1,K5(this))}Ds(){if(h$(this.Z)&&(this.V({onsnrdy:1}),this.xk--,this.xk===0)){var M=this.O;M.element?.msSetMediaKeys?.(M.V)}}ob(M){if(!this.ST()){this.An||(this.An=!0,this.uV.jW()&& bLL(this));this.V({onksch:1});var W=this.yz;if(!EP(M)&&g.Mo&&M.V.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var T=!0;if(EP(M))for(const X of Object.keys(M.Z))M.Z[X].status==="usable"&&b.push(M.Z[X].type),M.Z[X].status!=="unknown"&&(T=!1);if(!EP(M)||T)b=M.A;b=A$a(b)}W.call(this,b);if(M.uV.j("html5_enable_vp9_fairplay")&&M.V.Z())var q=M.X;else{if(!EP(M)){W={};for(q of M.A)S$s(M,q,W)}q=M.authorizedFormats}this.videoData.authorizedFormats=q;this.publish("keystatuseschange", M)}}MK(M,W){this.ST()||this.publish("ctmp",M,W)}Lp(M,W){this.ST()||this.publish("fairplay_next_need_key_info",M,W)}IJ(M,W,b,T){this.ST()||(this.videoData.j("html5_log_drm_metrics_on_error")&&bLL(this),this.publish("licenseerror",M,W,b,T))}v1(){return this.X}yz(M){const W=g.ap("auto",M,!1,"l");if(this.videoData.Qu){if(this.X.equals(W))return}else if(bTq(this.X,M))return;this.X=W;this.publish("qualitychange");this.V({updtlq:M})}d9(M){this.videoData.sabrLicenseConstraint=M}vY(){this.Z.keySystemAccess&& this.element&&!this.mediaElement?.Cp?.Aj()&&(this.D?this.element.setMediaKeys(null).catch(g.lR):this.element.setMediaKeys(null));this.element=null;this.A=[];for(const M of this.B.values())M.unsubscribe("ctmp",this.MK,this),M.unsubscribe("keystatuseschange",this.ob,this),M.unsubscribe("licenseerror",this.IJ,this),M.unsubscribe("newlicense",this.jT,this),M.unsubscribe("newsession",this.wK,this),M.unsubscribe("sessionready",this.Ds,this),M.unsubscribe("fairplay_next_need_key_info",this.Lp,this),this.uV.j("html5_enable_vp9_fairplay")&& M.unsubscribe("qualitychange",this.yz,this),M.dispose();this.B.clear();this.C.removeAll();this.W.removeAll();this.heartbeatParams=null;super.vY()}qd(){const M={systemInfo:this.Z.qd(),sessions:[]};for(const W of this.B.values())M.sessions.push(W.qd());return M}getInfo(){return this.B.size<=0?"no session":`${this.B.values().next().value.getInfo()}${this.S?"/KR":""}`}V(M,W=!1){this.ST()||($B(M),(this.uV.jW()||W)&&this.publish("ctmp","drmlog",M))}bV(){let M=void 0,W=void 0;for(const b of this.B.values())M|| (M=Peg(b,"SD")),W||(W=Peg(b,"AUDIO"));this.V({sd:M,audio:W});return M==="output-restricted"||W==="output-restricted"}};var Ua9=class extends g.gz{constructor(M){super();this.qK=M;this.Ni=0;this.V=this.S=!1;this.A=0;this.Vz=this.qK.G();this.videoData=this.qK.getVideoData();this.B=g.TO(this.Vz.experiments,"html5_delayed_retry_count");this.Z=new g.d9(()=>{this.qK.MZ()},g.TO(this.Vz.experiments,"html5_delayed_retry_delay_ms")); g.t(this,this.Z)}gO(){return!!this.Ni}wy(){return this.V}handleError(M){VzL(this,M);if((M.errorCode!=="html5.invalidstate"&&M.errorCode!=="fmt.unplayable"&&M.errorCode!=="fmt.unparseable"||!va(this,M.errorCode,M.details))&&!DTP(this,M)&&!aIy(this)){if(this.Vz.gK!=="yt"&&BLy(this,M)&&this.videoData.GY&&(0,g.u)()/1E3>this.videoData.GY&&KP(this.videoData)){var W=Object.assign({e:M.errorCode},M.details);W.stalesigexp="1";W.expire=Math.round(this.videoData.GY*1E3);W.init=Math.round(this.videoData.L5); W.now=Math.round((0,g.u)());M=new g.WE(M.errorCode,W,2);this.qK.J1(M.errorCode,2,"SIGNATURE_EXPIRED",$B(M.details))}if(Mm(M.severity)){W=this.qK.loader?.GY();let T;if(this.Vz.j("html5_use_network_error_code_enums"))if(JIS(M)&&W&&W.isLocked())var b="FORMAT_UNAVAILABLE";else this.Vz.C||M.errorCode!=="auth"||M.details.rc!==429?M.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED"):(b="TOO_MANY_REQUESTS",T="6");else JIS(M)&&W&&W.isLocked()?b="FORMAT_UNAVAILABLE":this.Vz.C||M.errorCode!== "auth"||M.details.rc!=="429"?M.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED"):(b="TOO_MANY_REQUESTS",T="6");this.qK.J1(M.errorCode,M.severity,b,$B(M.details),T)}else this.qK.publish("nonfatalerror",M),b=/^pp/.test(this.videoData.clientPlaybackNonce),this.dt(M.errorCode,M.details),b&&M.errorCode==="manifest.net.connect"&&(M=`https://www.youtube.com/generate_204?cpn=${this.videoData.clientPlaybackNonce}&t=${(0,g.u)()}`,pe(M,"manifest",T=>{this.dK("pathprobe",T)},T=>{this.dt(T.errorCode, T.details)}))}}dK(M,W){this.qK.Df.dK(M,W)}dt(M,W){W=$B(W); this.qK.Df.dt(M,W)}};var Fn=class{constructor(M,W,b,T,q){this.Z=M;this.reason=W;this.V=b;this.source=T;this.token=q}};var CQQ=class{constructor(M,W,b,T){this.uV=M;this.nI=W;this.qK=b;this.PP=T;this.D=this.C=this.Z=this.A=this.W=this.V=0;this.S=!1;this.X=g.TO(this.uV.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.B=new Map}pj(M){const W=Ejy(this);if(!M)return{ut:ll,Q5:ll,sZ:ll,RP:ll,TF:ll,v0:ll,AM:W};let b=ll;if(nb(W)||this.j("html5_perf_cap_override_sticky"))b=I8(this,M);return{ut:b,Q5:UTq(this,M),sZ:njl(this,M),RP:tx(this,M.videoData),TF:Z7(this,M.videoData,M),v0:Ha(this,M),AM:W}}dk(M){if(g.XD(this.uV)&& ZQ(this.uV.S,iS.HEIGHT))var W=M.Z.videoInfos[0].video.qualityOrdinal;else{var b=this.Se(M.Z.Z());lY(M.videoData)||Ye(M.videoData);M=M.Z.videoInfos;if(M.length){var T=.85,q=M[0].video;q.projectionType!=="MESH"&&q.projectionType!=="EQUIRECTANGULAR"&&q.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||mj||(T=.45);q=g.TO(this.uV.experiments,"html5_viewport_undersend_maximum");for(let X=0;X{this.RY()}}; this.RY=()=>{this.jsErrorCount++}; g.t(this,this.delay);window.addEventListener("error",this.RY);window.addEventListener("unhandledrejection",this.RY)}jt(){const M=g.u3(this.provider);this.Z<0&&(this.Z=M,this.delay.start());this.A=this.V=M}onError(M){if(M!=="player.fatalexception"||this.provider.j("html5_exception_to_health"))M==="sabr.fallback"&&(this.encounteredSabrFallback=!0),M.match(kSh)?this.networkErrorCount++:this.nonNetworkErrorCount++}send(){if(!(this.B||this.Z<0)){ZLG(this);var M=g.u3(this.provider)-this.Z,W="PLAYER_PLAYBACK_STATE_UNKNOWN", b=this.playerState.Iw;this.playerState.isError()?W=b&&b.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":this.playerState.Z(2)?W="PLAYER_PLAYBACK_STATE_ENDED":this.playerState.Z(64)?W="PLAYER_PLAYBACK_STATE_UNSTARTED":this.playerState.Z(16)||this.playerState.Z(32)?W="PLAYER_PLAYBACK_STATE_SEEKING":this.playerState.Z(1)&&this.playerState.Z(4)?W="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":this.playerState.Z(1)?W="PLAYER_PLAYBACK_STATE_BUFFERING":this.playerState.Z(4)?W= "PLAYER_PLAYBACK_STATE_PAUSED":this.playerState.Z(8)&&(W="PLAYER_PLAYBACK_STATE_PLAYING");b=XCL[Sn(this.provider.videoData)];a:switch(this.provider.uV.playerCanaryState){case "canary":var T="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":T="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:T="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var q=lIS(this.provider),X=this.V<0?M:this.V-this.Z;M=this.provider.uV.p7+36E5<(0,g.u)();W={started:this.V>=0,stateAtSend:W,joinLatencySecs:X,jsErrorCount:this.jsErrorCount, playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:T,playerCanaryStage:q,isAd:this.provider.videoData.isAd(),liveMode:b,hasDrm:!!g.z7(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Sz(this.provider.videoData)}; M||g.V9("html5PlayerHealthEvent",W);this.B=!0;this.dispose()}}vY(){this.B||this.send();window.removeEventListener("error",this.RY);window.removeEventListener("unhandledrejection",this.RY);super.vY()}},kSh=/\bnet\b/;var vPh=class{constructor(M){this.provider=M;this.D=!1;this.V=0;this.A=-1;this.St=NaN;this.B=0;this.segments=[];this.W=this.C=0;this.previouslyEnded=!1;this.S=0;this.mK=this.qg=void 0;this.k9={w3K:()=>this.qg, Cls:()=>this.mK}; this.gK=this.provider.qK.getVolume();this.X=this.provider.qK.isMuted()?1:0;this.Z=R8(this.provider)}update(){if(this.D){var M=this.ac()||0,W=g.u3(this.provider);M>=this.provider.qK.getDuration()-.1&&(this.previouslyEnded=!0);if(M!==this.V||fIt(this,M,W)){var b;if(!(b=MW-this.St+2||fIt(this,M,W))){{b=this.provider.qK.getVolume();const T=b!==this.gK,q=this.provider.qK.isMuted()?1:0;q!==this.X?(this.X=q,b=!0):(!T||this.A>=0||(this.gK=b,this.A=W),b=W-this.A,this.A>=0&&b>2?(this.A=-1, b=!0):b=!1)}}b&&(ro(this),this.B=M);this.St=W;this.V=M}}}ac(){const M=this.provider.qK.ac();return Za(this.provider.videoData)?M+this.provider.qK.Ga():M}};var hLy=class{constructor(M,W,b,T){this.uV=W;this.oT=b;this.segments=[];this.experimentIds=[];this.Lp=this.vP=this.isFinal=this.delayThresholdMet=this.XX=this.WP=this.autoplay=this.autonav=!1;this.cP="yt";this.C=[];this.W=this.X=null;this.d9=this.sendVisitorIdHeader=this.jT=!1;this.D=this.pageId="";this.aT=!1;this.S=b==="watchtime";this.B=b==="playback";this.sY=b==="atr";this.k_=b==="engage";this.sendVisitorIdHeader=!1;this.uri=this.sY?`/api/stats/${b}`:"//"+W.xL+"/api/stats/"+b;T&&(this.vP=T.fs, T.rtn&&(this.W=T.rtn),this.S?(this.playerState=T.state,T.rti>0&&(this.X=T.rti)):(this.sj=T.mos,this.Ic=T.volume,T.at&&(this.adType=T.at)),T.autonav&&(this.autonav=T.autonav),T.inview!=null&&(this.FT=T.inview),T.size&&(this.fv=T.size),T.playerwidth&&(this.GY=T.playerwidth),T.playerheight&&(this.m$=T.playerheight));this.x_=g.c$(W.Z);this.D=cR(W.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.D==="all"||this.D==="once")this.OY=g.c$(W.OY);this.EX=W.sj;this.experimentIds=Y2L(W.experiments); this.MK=W.aT;this.cP=W.gK;this.region=W.region;this.userAge=W.userAge;this.Ds=W.S6;this.s2=EK();this.sendVisitorIdHeader=W.sendVisitorIdHeader;this.yz=W.j("vss_pings_using_networkless")||W.j("kevlar_woffle");this.p7=W.j("vss_final_ping_send_and_write");this.BY=W.j("vss_use_send_and_write");this.pageId=W.pageId;this.GN=W.j("vss_playback_use_send_and_write");W.livingRoomAppMode&&(this.livingRoomAppMode=W.livingRoomAppMode);g.tP(W)&&(this.An=W.yz);g.Fi(g.Gh(W))&&this.C.push(1);this.accessToken=M.C(); M.Lf[this.oT]?this.A=M.Lf[this.oT]:M.Lf.playback&&(this.A=M.Lf.playback);this.adFormat=M.adFormat;this.adQueryId=M.adQueryId;this.autoplay=Glt(M);this.B&&(this.WP=M.FQ&&gF(M)==="adunit"?!0:!1);this.autonav=M.isAutonav||this.autonav;this.contentVideoId=T7(M);this.clientPlaybackNonce=M.clientPlaybackNonce;this.XX=M.uN;M.ll&&(this.O=M.ll,this.bV=M.C4);M.mdxEnvironment&&(this.mdxEnvironment=M.mdxEnvironment);this.Z=M.vP;this.gr=M.gr;M.V&&(this.A5=M.V.itag,M.A&&M.A.itag!==this.A5&&(this.EY=M.A.itag)); M.Z&&Cb(M.Z)&&(this.offlineDownloadUserChoice="1");this.eventLabel=gF(M);this.Lp=M.WP?!1:M.Y9;this.nz=M.cH;if(W=Sn(M))this.XP=W;this.Hr=M.xL;this.partnerId=M.partnerId;this.eventId=M.eventId;this.playlistId=M.xY||M.playlistId;this.VD=M.VD;this.Qs=M.Qs;this.m5=M.m5;this.xl=M.xl;this.subscribed=M.subscribed;this.videoId=M.videoId;this.videoMetadata=M.videoMetadata;this.visitorData=M.visitorData;this.osid=M.osid;this.Aw=M.Aw;this.referrer=M.referrer;this.Ue=M.bx||M.Ue;this.wK=M.qA;this.gh=M.gh;this.userGenderAge= M.userGenderAge;this.gx=M.gx;this.embedsRct=M.embedsRct;this.embedsRctn=M.embedsRctn;g.tP(this.uV)&&M.mutedAutoplay&&(M.mutedAutoplayDurationMode===2&&M.limitedPlaybackDurationInSeconds===0&&M.endSeconds===0?this.C.push(7):this.C.push(2));M.isEmbedsShortsMode(new g.i0(this.GY,this.m$),!!this.playlistId)&&this.C.push(3);g.Wf(M)&&this.C.push(4);this.xk=M.w_;M.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=M.compositeLiveIngestionOffsetToken);this.heartbeatLoggingToken=M.heartbeatLoggingToken; M=M.getPlayerResponse();this.aT=this.uV.j("html5_switch_vss_to_post")||!!M?.playerConfig?.vssClientConfig?.vssUsePostRequest}send(M){if(!this.jT){var W=pp(this),b=g.JM(this.uri,W);this.uV.j("vss_through_gel_double")&&RLt(b);this.sY&&!this.uV.j("html5_simplify_pings")?rIl(this,b):xh(this,M).then(T=>{if(this.aT){T=T||{};T.method="POST";const q=xTG(this);q&&(T.postParams={form_data:q})}this.sY&&(T=T||{},T.method="POST",T.postParams={atr:this.attestationResponse});xg(b,T,{token:this.O,EG:this.bV,mdxEnvironment:this.mdxEnvironment}, this.uV,M,this.yz,this.isFinal&&this.p7||this.BY||this.B&&this.GN)}); this.jT=!0}}V(M){M===void 0&&(M=NaN);return Number(M.toFixed(3)).toString()}},dpp={LIVING_ROOM_APP_MODE_UNSPECIFIED:0,LIVING_ROOM_APP_MODE_MAIN:1,LIVING_ROOM_APP_MODE_KIDS:2,LIVING_ROOM_APP_MODE_MUSIC:3,LIVING_ROOM_APP_MODE_UNPLUGGED:4,LIVING_ROOM_APP_MODE_GAMING:5},ejq={EMBEDDED_PLAYER_MODE_UNKNOWN:0,EMBEDDED_PLAYER_MODE_DEFAULT:1,EMBEDDED_PLAYER_MODE_PFP:2,EMBEDDED_PLAYER_MODE_PFL:3};var cIp=class extends g.gz{constructor(M){super();this.provider=M;this.X="paused";this.S=NaN;this.sY=[10,10,10,40];this.yz=this.gK=0;this.lV=this.xk=this.An=this.BY=this.A=!1;this.B=this.V=NaN;this.logger=new g.uk("vss");this.k9={r_z:()=>this.Z}; this.Z=new vPh(M)}jt(){if(!this.A){this.provider.videoData.tf===16623&&g.lR(Error("Playback for EmbedPage"));var M=Fx(this,"playback");this.sY=AIg(this);HLq(this.Z);M.W=il(this);this.B>0&&(M.Z-=this.B);M.send();if(this.provider.videoData.ze){M=this.provider.uV;var W=this.provider.videoData;const b={html5:"1",video_id:W.videoId,cpn:W.clientPlaybackNonce,ei:W.eventId,ptk:W.ze,oid:W.O4,ptchn:W.XC,pltype:W.Qy,content_v:T7(W)};W.ZG&&Object.assign(b,{m:W.ZG});M=g.JM(M.l3+"ptracking",b);hx(this,M)}this.provider.videoData.gr|| (S1g(this),OLt(this));this.A=!0;M=this.Z;M.V=M.ac();M.St=g.u3(M.provider);!(M.B===0&&M.V<5)&&M.V-M.B>2&&(M.B=M.V);M.D=!0}}C(){g.x7(this.S);this.S=NaN}W(){ro(this.Z)}O(){this.Z.update();var M=this.Z;M.segments.length&&M.V===M.B||ro(M);const W=M.segments;M.segments=[];M.S=0;return W}jT(M){var W=this.Z,b=M.mK;W.qg=M.qg;W.mK=b}D(M,W=!1){const b=zLy(this,this.O());!isNaN(this.V)&&M&&(b.X=this.V);W&&(b.d9=!0);return b}onProgress(){this.Z.update();utP(this)&&(S1g(this),OLt(this))}Zs(M){if(!this.ST())if(M.state.Z(2)|| M.state.Z(512)){if(this.X="paused",M.QN(2)||M.QN(512))M.QN(2)&&(this.Z.previouslyEnded=!0),this.A&&(this.C(),Ax(this).send(),this.V=NaN)}else if(M.state.Z(8)){this.X="playing";const W=this.A&&isNaN(this.S)?il(this):NaN;if(!isNaN(W)&&(u9(M,64)<0||u9(M,512)<0)){const b=this.D(!1);b.W=W;b.send()}M.QN(16)&&M.state.seekSource===58&&(this.Z.previouslyEnded=!0)}else this.X="paused"}vY(){super.vY();this.C();NLt(this.Z)}qd(){return pp(Fx(this,"playback"))}un(M){const W=Fx(this,"engage");W.Zs=M;return Fjp(W, eLs(this.provider))}MK(){const M=this.Z.S,W=this.provider.uV.hT().Z.UY(I9P)||4E3;M>W&&this.D(!isNaN(this.V)).send()}Lp(){this.gK=0}};var ojq=class{constructor(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.V=0;this.muted=!1;this.Z=this.clipId="-";this.previouslyEnded=!1}isEmpty(){return this.endTime===this.startTime}};var QUy=class{constructor(M,W,b){this.videoData=M;this.uV=W;this.qK=b;this.Z=void 0}j(M){return this.uV.j(M)}getCurrentTime(){return this.qK.getCurrentTime()}ac(){return this.qK.ac()}},dTQ={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.t0=class extends g.gz{constructor(M){super();this.provider=M;this.B=new Map;this.Np=new g.TD;this.k9={MkK:()=>this.qoe, YOV:()=>this.Z, ZeY:()=>this.V}; this.provider.videoData.S2()&&!this.provider.videoData.ek&&(this.Z=new cIp(this.provider),this.Z.B=0,g.t(this,this.Z),this.qoe=new g.m9(this.provider),g.t(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.kh=this.provider.videoData.clientPlaybackNonce)&&this.B.set(this.kh,this.Z));if(M.uV.playerCanaryState==="canary"||M.uV.playerCanaryState==="holdback")this.V=new KL$(this.provider),g.t(this,this.V)}jt(){this.Z&&this.Z.jt();this.V&&this.V.jt()}onProgress(){if(this.provider.videoData.enableServerStitchedDai&& this.kh)this.B.get(this.kh)?.onProgress();else if(this.Z)this.Z.onProgress()}Wg(M){this.qoe&&this.qoe.Wg(M)}Cq(M,W){this.qoe&&this.qoe.Cq(M,W)}UC(){this.provider.videoData.enableServerStitchedDai&&this.kh?this.B.get(this.kh)?.W():this.Z&&this.Z.W()}dt(M,W){this.qoe&&Rjt(this.qoe,M,W);if(this.V)this.V.onError(M)}r6(M,W){switch(M){case "M":this.qoe?.r6(M,W);break;case "A":this.qoe?.r6(M)}}onPlaybackRateChange(M){if(this.qoe)this.qoe.onPlaybackRateChange(M);this.Z&&this.Z.W()}dK(M,W,b){this.qoe&&this.qoe.dK(M, W,b)}jq(M,W,b){this.qoe&&this.qoe.jq(M,W,b)}cf(M){this.qoe?.cf(M)}F3(M){this.qoe?.F3(M)}WL(M,W,b,T){this.qoe?.WL(M,W,b,T)}iM(M){this.qoe&&this.qoe.iM(M)}LD(M,W,b){this.qoe&&this.qoe.LD(M,W,b)}EM(){if(this.qoe)return this.qoe.EM()}qd(){return this.provider.videoData.enableServerStitchedDai&&this.kh?this.B.get(this.kh)?.qd()??{}:this.Z?this.Z.qd():{}}Yd(){return this.qoe?.Yd()}Es(M,W){this.qoe?.Es(M,W)}un(M){return this.Z?this.Z.un(M):()=>{}}getVideoData(){return this.provider.videoData}resume(){this.qoe&& this.qoe.resume()}}; g.t0.prototype.Sh=Ma(49);g.t0.prototype.zs=Ma(32);g.t0.prototype.Ts=Ma(26);g.t0.prototype.Fo=Ma(20);var map=class{constructor(){this.oQ=0;this.A=this.B=this.qY=this.nD=this.V=NaN;this.Z={};this.bandwidthEstimate=NaN}};var LL5=class{constructor(){this.Z=g.CX;this.array=[]}};g.Z9=class extends g.gz{constructor(M,W){super();this.qK=M;this.W=W;this.B=NaN;this.S=this.C=this.started=!1;this.V=[];this.D=new g.d9(this.sync,250,this);g.t(this,this.D);this.A=new g.d9(this.sync,0,this);g.t(this,this.A);this.Z=new LL5}QV(M,W){this.sync();W&&this.Z.array.length>=2E3&&this.hg("captions",1E4);W=this.Z;if(M.length>1&&M.length>W.array.length)W.array=W.array.concat(M),W.array.sort(W.Z);else for(const b of M)!W.array.length||W.Z(b,W.array[W.array.length-1])>0?W.array.push(b):g.ZB(W.array, b,W.Z);this.B=NaN;this.sync()}Ng(M){M.length>1E4&&g.lR(new g.EF("Over 10k cueRanges removal occurs with a sample: ",M[0]));if(!this.ST()){var W=new Set(M);this.V=this.V.filter(b=>!W.has(b)); bPL(this.Z,W);this.sync()}}Mu(M){if(!this.ST()){var W=this.xS().find(b=>b.id===void 0&&b.namespace===M); W&&this.Ng([W])}}hg(M,W){const b=(isNaN(this.B)?TFG(this):this.B)-W;W=this.xS().filter(T=>T.namespace===M&&T.endb.namespace===M); this.Ng(W);return W}gp(M){let W=[];var b=Si(this.Z,0x7ffffffffffff);const T=[];for(const q of b)q.active&&M===q.associatedClipId&&T.push(q);W=W.concat(OP(this,T));Pa(this,W);W=[];b=[];for(const q of this.V)q.active&&q.associatedClipId===M&&q.start===0x7ffffffffffff&&b.push(q);W=W.concat(ei(this,b));Pa(this,W);return T.length}Oe(M){const W=Si(this.Z,0x7ffffffffffff),b=[];for(const T of W)T.active&&M===T.associatedClipId&&b.push(T);this.Ng(b)}sync(){this.S=!0;if(!this.C){for(var M=3;this.S&&M;)this.S= !1,this.C=!0,qbJ(this),this.C=!1,M--;this.qK.getPlayerState().isPlaying()&&(M=WcG(this.Z,this.B),!isNaN(M)&&M<0x7ffffffffffff&&(M=(M-this.B)/this.qK.getPlaybackRate(),this.A.start(M)))}}isEnded(M,W){W=this.qK.y3()*1E3-W;W=this.qK.qm()&&M.Z(1)&&W<500;return M.Z(2)||this.qK.G().j("html5_pseudogapless_shorts")&&W}vY(){this.V=[];this.Z.array=[];super.vY()}};g.Z9.prototype.rr=Ma(38);var llV=class{constructor(M){this.uV=M;this.B=this.V=this.mediaTime=NaN;this.A=this.Z=!1;this.S=.001;g.XD(M)&&(this.S=.01)}};var XML=class{constructor(M,W){this.videoData=M;this.Z=W}};var ttr=class{constructor(M){this.data=window.Float32Array?new Float32Array(M):Array(M);this.V=this.Z=M-1}add(M){this.Z=(this.Z+1)%this.data.length;this.data[this.Z]=M}B(){return this.data[this.Z]||0}forEach(M){for(var W=this.Z+1;Wthis.Z,q=W.Z(8)&&W.Z(16),X=this.qK.fK().isBackground()||W.isSuspended();Yh(this,this.Lp,q&&!X,T,"qoe.slowseek",()=>{},"timeout"); var G=isFinite(this.Z);G=q&&G&&viG(M,this.Z);var V=!b||Math.abs(b-this.Z)>10,J=this.uV.j("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),B=b===0&&this.V&&[11,10].includes(this.V);Yh(this,this.jT,G&&V&&!X&&(!J||!B),T,"qoe.slowseek",()=>{M.seekTo(this.Z)},"set_cmt"); V=G&&SA(M.O1(),this.Z);var D=this.qK.loader;G=!D||D.fB();var a=()=>{M.seekTo(this.Z+.001)}; Yh(this,this.BY,V&&G&&!X,T,"qoe.slowseek",a,"jiggle_cmt");G=()=>this.qK.MZ(); Yh(this,this.An,V&&!X,T,"qoe.slowseek",G,"new_elem");var E=by(W);B=W.isBuffering();var n=M.O1(),C=uS(n,b),l=C>=0&&n.end(C)>b+5;V=E&&B&&l;J=this.qK.getVideoData();Yh(this,this.lV,b<.002&&this.Z<.002&&q&&g.XD(this.uV)&&g.sb(J)&&!X,T,"qoe.slowseek",G,"slow_seek_shorts");Yh(this,this.X,J.OX()&&q&&!X&&!J.D,T,"qoe.slowseek",G,"slow_seek_gapless_shorts");Yh(this,this.gK,V&&!X,E&&!B,"qoe.longrebuffer",a,"jiggle_cmt");Yh(this,this.O,V&&!X,E&&!B,"qoe.longrebuffer",G,"new_elem_nnr");if(D){const f=D.getCurrentTime(); q=M.S();q=VRp(q,f);q=!D.isSeeking()&&b===q;Yh(this,this.OY,E&&B&&q&&!X,E&&!B&&!q,"qoe.longrebuffer",()=>{M.seekTo(f)},"seek_to_loader")}q={}; a=uS(n,Math.max(b-3.5,0));var N=a>=0&&b>n.end(a)-1.1,R=a>=0&&a+1=0&&N&&R<11;q.close2edge=N;q.gapsize=R;q.buflen=n.length;this.V&&(q.seekSour=this.V);Yh(this,this.Zs,E&&B&&!X,E&&!B,"qoe.longrebuffer",()=>{},"timeout",q); q=W.isSuspended();q=this.qK.vM()&&!q;Yh(this,this.W,q,!q,"qoe.start15s",()=>{this.qK.Vs("ad")},"ads_preroll_timeout"); q=this.uV.experiments.FX("html5_use_playback_rate_in_skip_slow_ad")?this.qK.getPlaybackRate()*1E3:1E3;C=b-this.A{var f=this.qK;const x=f.wG.getVideoData();(!x||!f.videoData.isAd()||x.cF!==f.getVideoData().cF)&&f.videoData.UO||f.J1("ad.rebuftimeout",2,"RETRYABLE_ERROR",`skipslad.vid.${f.videoData.videoId}`)}; Yh(this,this.EY,N,!N,"ad.rebuftimeout",q,"skip_slow_ad");C=a&&B&&SA(M.O1(),b+5)&&C;Yh(this,this.bV,C&&!X,!C,"ad.rebuftimeout",q,"skip_slow_ad_buf");q=W.isOrWillBePlaying()&&W.Z(64)&&!X;Yh(this,this.XX,q,T,"qoe.start15s",()=>{},"timeout"); D=!!D&&!D.WY&&W.isOrWillBePlaying();Yh(this,this.sY,D,T,"qoe.start15s",G,"newElemMse");D=d8(n,0);n=W.Z(16)||W.Z(32);D=!X&&W.isOrWillBePlaying()&&B&&!n&&(W.Z(64)||b===0)&&D>5;Yh(this,this.MK,D,E&&!B,"qoe.longrebuffer",()=>{this.qK.fW()},"reset_media_source"); Yh(this,this.xk,D,E&&!B,"qoe.longrebuffer",G,"reset_media_element");this.A===0&&(this.C=b);D=B&&this.Z===0&&b>1&&b===this.C;Yh(this,this.yz,g.sb(J)&&D,E&&!B,"qoe.slowseek",()=>{M.seekTo(0)},"reseek_after_time_jump"); X=W.isOrWillBePlaying()&&!X;l=this.qK.y3()-b<6&&!l&&this.qK.qm();Yh(this,this.D,J.OX()&&X&&B&&l,E&&!B,"qoe.longrebuffer",()=>{this.qK.MZ(!1,!0)},"handoff_end_long_buffer_reload"); X=this.V===104||this.qK.Vd;W=LP(J)&&J.isAd()&&!J.D&&X&&(B||W.Z(8)&&W.Z(16));Yh(this,this.wK,W,T,"qoe.start15s",G,"gapless_ad_slow_start");W=LP(J)&&!J.D&&X&&V;Yh(this,this.Ds,W,T,"qoe.longrebuffer",G,"gapless_slow_start");this.A=b;this.S.start()}}dt(M,W,b){W=this.qd(W);W.wn=b;W.wdup=this.B[M]?"1":"0";this.qK.dt(new g.WE(M,W));this.B[M]=!0}qd(M){M=Object.assign(this.qK.qd(!0),M.qd());this.Z&&(M.stt=this.Z.toFixed(3));this.qK.getVideoData().isLivePlayback&&(M.ct=this.qK.getCurrentTime().toFixed(3),M.to= this.qK.Ga().toFixed(3));delete M.uga;delete M.euri;delete M.referrer;delete M.fexp;delete M.vm;return M}},wo=class{constructor(M,W=!1){this.C=W;this.Z=this.V=this.B=this.startTimestamp=0;this.A=!1;this.S=Math.ceil(M/1E3)}reset(){this.Z=this.V=this.B=this.startTimestamp=0;this.A=!1}test(M){if(!this.S||this.V)return!1;if(!M)return this.reset(),!1;M=(0,g.u)();if(!this.startTimestamp)this.startTimestamp=M,this.B=0;else if(this.B>=this.S)return this.V=M,!0;this.B+=1;return!1}qd(){const M={},W=(0,g.u)(); this.startTimestamp&&(M.wsd=(W-this.startTimestamp).toFixed());this.V&&(M.wtd=(W-this.V).toFixed());this.Z&&(M.wssd=(W-this.Z).toFixed());return M}};var Htp=class extends g.gz{constructor(M){super();this.qK=M;this.D=this.Z=this.loader=this.mediaElement=this.playbackData=null;this.B=0;this.S=this.Zs=this.A=null;this.yz=!1;this.OY=0;this.O=!1;this.timestampOffset=0;this.X=!0;this.MK=0;this.jT=this.vP=!1;this.W=0;this.Ds=!1;this.An=this.sY=0;this.uV=this.qK.G();this.videoData=this.qK.getVideoData();this.policy=new NGr;this.gK=new Ilh(this.qK);this.bV=this.xk=this.lV=this.C=this.V=NaN;this.BY=new g.d9(()=>{aaQ(this,!1)},2E3); this.d9=new g.d9(()=>{Mf(this)}); this.Lp=new g.d9(()=>{U4Q(this,{})}); this.XX=NaN;this.EY=new g.d9(()=>{var W=this.uV.JX;W.Z+=1E4/36E5;W.Z-W.B>1/6&&(KdP(W),W.B=W.Z);this.EY.start()},1E4); g.t(this,this.gK);g.t(this,this.BY);g.t(this,this.Lp);g.t(this,this.d9);g.t(this,this.EY)}setMediaElement(M){(this.mediaElement=M)?(this.mediaElement&&(this.S||this.B||!this.mediaElement.vP()||this.seekTo(.01,{jR:"seektimeline_setupMediaElement"})),Mf(this)):qf(this)}getCurrentTime(M=!1){if(bm(this.qK)){if(this.j("html5_use_centralized_player_time")&&!M&&!isNaN(this.C))return this.C;if(!isNaN(this.V))return this.V}else{if(this.j("html5_use_centralized_player_time")&&!M&&!isNaN(this.C)&&isFinite(this.C))return this.C; if(!isNaN(this.V)&&isFinite(this.V))return this.V}M=this.j("html5_use_centralized_player_time")&&this.j("html5_seek_refactor_finite_cmt");return this.mediaElement&&EeL(this)?M&&!isFinite(this.mediaElement.getCurrentTime())&&this.videoData.isLivePlayback?this.nN():this.mediaElement.getCurrentTime()+this.timestampOffset:M&&!isFinite(this.B)&&this.videoData.isLivePlayback?this.nN():this.B||0}JE(){return this.wK}ac(){return this.getCurrentTime()-this.Ga()}xI(){return this.Z?this.Z.xI():Infinity}isAtLiveHead(M){if(!this.Z)return!1; M===void 0&&(M=this.getCurrentTime());return sP(this.Z,M)}fU(){return!!this.Z&&this.Z.fU()}seekTo(M,{a6:W=!1,n8:b=0,IK:T=!1,C8:q=0,jR:X="",seekSource:G,Sa:V=!1,CB:J=!1,Z$:B=!1}={}){V&&(M+=this.Ga());Sz(this.videoData)&&G===29&&(this.wK=void 0);V=M=this.nN())||!g.PM(this.videoData),a||(D={st:D,mst:this.nN()},this.Z&&this.j("html5_high_res_seek_logging")&&(D.ht=this.Z.xI(),D.adft=go(this.Z)),this.qK.dK("seeknotallowed",D)),D=a)}}if(!D)return this.A&&(this.A=null,GT(this)),g.fG(this.getCurrentTime());D=.005;J&&this.j("html5_sabr_seek_no_shift_tolerance")&&(D=0);if(Math.abs(M- this.V)<=D&&this.yz)return this.S;this.j("html5_reset_rate_limiter_on_user_seek")&&this.loader?.zm();this.j("html5_reset_backoff_on_user_seek")&&this.loader?.Ic();X&&(D=M,this.uV.jW()&&(X={reason:X,tgt:D},this.j("html5_sabr_csdai_seek_log")&&(X.source=G),this.qK.dK("seekreason",X)));G&&(this.gK.V=G);this.yz&&qf(this);this.S||(this.S=new tI);M&&!isFinite(M)&&TT(this,!1);(B=B||V)||(B=M,B=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.Z()&&!(this.mediaElement&&this.mediaElement.B()> 0&&YB(this.mediaElement)>0)||R9(this.videoData)&&this.XD()===this.nN(!1)?0:isFinite(B)||!R9(this.videoData)));B||(M=$O(this,M,T));M&&!isFinite(M)&&TT(this,!1);this.j("html5_use_centralized_player_time")?this.C=M:this.V=this.B=M;this.MK=q;this.W=0;this.Z&&BFt(this.Z,M,!1);T=this.qK;q=M;B={a6:W,seekSource:G};T.Ig.B=q;X=T.Od;X.mediaTime=q;X.Z=!0;B.a6&&T.Up(B);B=q>T.videoData.endSeconds&&q>T.videoData.limitedPlaybackDurationInSeconds;T.mE&&B&&isFinite(q)&&Cl(T);q0&&MW.start&&Cl(this.qK);return this.S}nN(M){return this.videoData.isLivePlayback?this.videoData.yz()&&this.mediaElement?.isPaused()&&this.videoData.Z?(M=this.getCurrentTime(),JES(this.A1(M)*1E3)+M):this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&Sz(this.videoData)&&this.videoData.Z?M?this.videoData.Z.sY||0:this.videoData.Z.mF|| 0:R9(this.videoData)&&this.videoData.Lx&&this.videoData.Z?this.videoData.Z.nN()+this.timestampOffset:this.videoData.B&&this.videoData.B.Z()?!M&&this.Z?this.Z.xI():this.qK.videoData.nN()+this.timestampOffset:this.mediaElement?nU()?JES(this.mediaElement.An().getTime()):YB(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset:this.qK.videoData.nN()}XD(){if(this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&Sz(this.videoData))return this.videoData.Z?.R6||0;const M= this.videoData?this.videoData.XD()+this.timestampOffset:this.timestampOffset;if(this.videoData.yz()&&this.videoData.Z){var W=Number(this.videoData.progressBarStartPosition?.utcTimeMillis)/1E3;if(!isNaN(W)&&(W=this.OJ(W),!isNaN(W)))return Math.max(M,W)}return M}Tp(){this.S||this.seekTo(this.B,{jR:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}LS(){return this.yz&&!isFinite(this.V)}vY(){Xn(this,null);this.gK.dispose();super.vY()}qd(){const M={};this.loader&&Object.assign(M, this.loader.qd());this.mediaElement&&Object.assign(M,this.mediaElement.qd());return M}sS(M){this.timestampOffset=M}getStreamTimeOffset(){return R9(this.videoData)?0:this.videoData.Z?this.videoData.Z.getStreamTimeOffset():0}Ga(){return this.timestampOffset}A1(M){return this.videoData&&this.videoData.Z?this.videoData.Z.A1(M-this.timestampOffset):NaN}yF(){if(!this.mediaElement)return 0;if(en(this.videoData)){var M=this.mediaElement,W=M.O1();M=(eA(W)&&M.getDuration()?W.end(W.length-1):0)+this.timestampOffset- this.XD();W=this.nN()-this.XD();return Math.max(0,Math.min(1,M/W))}return this.mediaElement.yF()}qj(M){this.D&&(this.D.Z=M)}Hj(M,W,b){this.qK.dK("requestUtcSeek",{time:M});Sz(this.videoData)&&(this.wK=M);this.loader?.Hj(M,b);W&&(this.sY=W)}BL(M){Sz(this.videoData)&&(this.wK=void 0);this.sY?(this.qK.dK("utcSeekingFallback",{source:"streamTime",timeSeconds:this.sY}),this.qK.seekTo(this.sY,{jR:"utcSeekingFallback_streamTime"}),this.sY=0):(M=this.OJ(M),isNaN(M)||(this.qK.dK("utcSeekingFallback",{source:"estimate", timeSeconds:M}),this.qK.seekTo(M,{jR:"utcSeekingFallback_estimate"})))}dV(){this.sY=0}Ed(M){this.An=M}OJ(M){const W=this.getCurrentTime();if(isNaN(W))return NaN;const b=this.A1(W);return isNaN(b)?NaN:M-(b-W)}j(M){return this.uV&&this.uV.j(M)}},NGr=class{};var rLr=class extends g.gz{constructor(M){super();this.B=M;this.Z=new Map;this.V=new g.d9(this.sample,250,this);g.t(this,this.V);this.start()}start(){this.V.start()}stop(){this.V.stop()}clear(){for(const M of this.Z.values())M.clear()}sample(){for(const [M,W]of this.B){const b=M,T=W;this.Z.has(b)||this.Z.set(b,new flh(Rgp.has(b)));this.Z.get(b).update(T())}this.V.start()}},Rgp=new Set(["networkactivity"]),flh=class{constructor(M){this.V=M;this.Z=NaN;this.buffer=new ttr(100)}update(M){this.V?(this.buffer.add(M- this.Z||0),this.Z=M):this.buffer.add(M)}clear(){this.buffer.clear();this.Z=0}};var xa7=class{constructor(){this.finished=this.started=!1}t6(){return this.started}start(){this.started=!0}reset(){this.finished=this.started=!1}};var hXq=!1;var wML=!1,nl=!1;g.mg=class extends g.b9{constructor(M,W,b,T,q,X,G,V,J,B=new g.fk(M),D=!0,a){super();this.uV=M;this.playerType=W;this.pv=b;this.nI=T;this.getVisibilityState=X;this.visibility=G;this.wG=V;this.PP=J;this.videoData=B;this.BJ=D;this.Ej=a;this.logger=new g.uk("VideoPlayer");this.n7=null;this.A4=new lM;this.mE=null;this.qE=!0;this.WY=this.loader=null;this.xa=[];this.Mm=new xa7;this.t_=this.Sx=null;this.fD=new xa7;this.Ge=null;this.hF=this.ZI=!1;this.Yb=NaN;this.ZE=!1;this.playerState=new g.TD;this.nm=[]; this.R7=new g.Cq;this.mediaElement=null;this.sG=this.sP=!1;this.pP=NaN;this.Pl=!1;this.sQ=0;this.yM=!1;this.Sj=NaN;this.Ni=0;this.loop=!1;this.playbackRate=1;this.Of=0;this.c6=!1;this.EP=[];this.Uf=this.df=0;this.OS=this.Xq=!1;this.qY=this.nD=0;this.Vd=!1;this.Fb=this.TB=this.lZ=this.Cv=null;this.V0=()=>{var E=this.Df;E.provider.uV.GY||E.provider.qK.getVisibilityState()===3||(E.provider.uV.GY=!0);E.UC();if(E.V){var n=E.V;n.S&&n.Z<0&&n.provider.qK.getVisibilityState()!==3&&tzt(n)}E.qoe&&(E=E.qoe,E.Lp&& E.A<0&&E.provider.uV.GY&&Sel(E),E.S&&S3(E));this.loader&&v1(this);Ll(this)}; this.k9={ob:E=>{this.ob(E)}, swK:E=>{this.n7=E}, VkY:()=>this.Df, dT:()=>this.WY, wFY:()=>this.t8, CNV:()=>this.Rf, MOK:()=>{}, G:()=>this.uV, E2:()=>this.mediaElement, S1K:E=>{this.nJ(E)}, WvK:()=>this.nI}; this.qV=new Ua9(this);this.DH=new g.d9(this.ED,15E3,this);this.wR=new rLr(new Map([["bufferhealth",()=>jN(this.Ig)], ["bandwidth",()=>this.M8()], ["networkactivity",()=>this.PP.Zs], ["livelatency",()=>this.isAtLiveHead()&&this.isPlaying()?lm(this):NaN], ["rawlivelatency",()=>lm(this)]])); this.Ig=new Htp(this);this.UT=new g.d9(this.qv,0,this);this.fE=[this.R7,this.UT,this.DH,this.wR];this.Od=new llV(this.uV);this.Ui=new CQQ(this.uV,this.nI,this,this.PP);this.b$=new g.Z9(this,(E,n)=>{E!==g.kJ("endcr")||this.playerState.Z(32)||this.GE();q(E,n,this.playerType)}); g.t(this,this.b$);g.t(this,this.Ig);W3y(this,B);this.videoData.subscribe("dataupdated",this.Zh,this);this.videoData.subscribe("dataloaded",this.MG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.dK,this);this.videoData.subscribe("ctmpstr",this.e3,this);!this.Df||this.Df.ST();this.Df=new g.t0(new QUy(this.videoData,this.uV,this));ges(this.V0);this.visibility.subscribe("visibilitystatechange",this.V0);this.t8=new g.d9(this.K6,g.TO(this.uV.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Rf=new g.d9(this.K6,g.TO(this.uV.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.JK=new g.El(this.o$,350,this);g.t(this,this.JK)}vY(){g.FV(this.Yb);s9J(this.V0);this.visibility.unsubscribe("visibilitystatechange",this.V0);sUL(this.Df);g.cG(this.Df);tb(this);g.FO.Oh(this.pP);this.ys();this.t_=null;g.cG(this.videoData);g.cG(this.qV);g.cG(this.t8);g.cG(this.Rf);g.Qb(this.fE);this.mE=null;super.vY()}LD(M,W,b,T,q){if(this.uV.j("html5_log_ad_playback_docid")){var X= this.Df;if(X.qoe){X=X.qoe;var G=this.uV.gK||"yt";g.hm(X,g.u3(X.provider),"ad_playback",[M,W,b,q,G])}}else this.Df.LD(M,W,b);this.j("html5_log_media_perf_info")&&this.dK("adloudness",{ld:T.toFixed(3),cpn:M})}u9(){return this.loader?.u9()}qM(){return this.loader?.qM()}Bh(){return this.loader?.Bh()}Lj(){return this.loader?.Lj()}Xy(){return this.videoData.Xy()}Aj(){return this.j("html5_not_reset_media_source")&&this.videoData.isLivePlayback||this.j("html5_not_reset_media_source_non_drm_vod")&&!this.videoData.isLivePlayback&& !this.videoData.Xy()&&!this.videoData.OX()}G8(){!this.videoData.W||this.j("html5_disable_target_codec_family_for_gapless")&&LP(this.videoData)||(this.videoData.nx=this.videoData.nx||this.wG.Jn().u9(),this.videoData.Vp=this.videoData.Vp||this.wG.Jn().qM());if(EJg(this.videoData)||!M8(this.videoData)){const M=this.videoData.errorDetail;this.J1(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),M,M,this.videoData.n4||void 0)}this.j("html5_generate_content_po_token")&&this.Ec();this.Xx()}getVideoData(){return this.videoData}G(){return this.uV}pj(){return this.Ui.pj(this.t_)}fK(){return this.visibility}nH(){return this.mediaElement&& this.mediaElement.C()?this.mediaElement.BP():null}E2(){return this.mediaElement}Jh(){if(this.videoData.errorCode)return!1;this.G().C&&this.G().houseBrandUserStatus&&this.dK("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.S2())return!0;this.J1("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}JC(M=!1){M||ul(this.Df);this.ZI=M;!this.Jh()||this.Mm.t6()?H1(this)&&this.Mm.t6()&&!this.Mm.finished&&!this.ZI&&this.MG():(this.Mm.start(),M=this.Df,g.u3(M.provider),M.qoe&&iOl(M.qoe), M.provider.uV.hT().Z.UY(ZsG)&&g.Df("cobalt")&&g.Df("android")&&(M=M.provider.videoData.clientPlaybackNonce)&&NxQ(M),this.MG())}MG(){if(this.videoData.isLoaded()){var M=this.qV;g.TO(M.Vz.experiments,"html5_player_min_build_cl")>0&&g.TO(M.Vz.experiments,"html5_player_min_build_cl")>871074148&&mt(M,"oldplayer",!0);XfL(this)}else this.videoData.s2||this.videoData.vp?this.ZI&&H1(this)||(this.videoData.s2?gJl(this.videoData):(M=this.Df,M.qoe&&(M=M.qoe,Pn(M,"protected"),M.provider.videoData.S?M.aT():M.provider.videoData.subscribe("dataloaded", M.aT,M)),PwQ(this.videoData))):!this.videoData.loading&&this.BJ&&jms(this)}j5(M){this.Cv=M;this.loader&&(Bpt(this.loader,M),this.dK("sdai",{sdsstm:1}))}On(M,W,b){this.loader?.On(M,W,b)}N9(M){this.loader?.N9(M)}Tl(){return this.loader?.Nl()||null}isFullscreen(){return this.visibility.isFullscreen()}isBackground(){return this.visibility.isBackground()}N6(){Zb(this).then(()=>m_(this)); this.playerState.isOrWillBePlaying()&&this.playVideo()}bY(){this.mediaElement&&this.mediaElement.activate();this.JC();this.Jh()&&!this.playerState.Z(128)&&(this.fD.t6()||(this.fD.start(),this.videoData.fv?this.Rg(jK(this.playerState,4)):this.Rg(jK(jK(this.playerState,8),1))),Nf(this))}mx(){return this.Mm.finished}sendAbandonmentPing(){this.getPlayerState().Z(128)||(this.publish("internalAbandon"),this.K6(!0),sUL(this.Df),g.cG(this.Df),g.FO.Oh(this.pP))}GE(M=!0,W=!0,b){W&&this.mediaElement&&this.mediaElement.pause(); M&&b&&this.loader&&R9(this.videoData)&&this.loader.WL(b);this.Rg(M?new g.TD(14):new g.TD)}Fn(){this.Df.UC()}J1(M,W,b,T,q,X){let G,V;g.uI(MSg,b)?G=b:b?V=b:G="GENERIC_WITHOUT_LINK";T=(T||"")+`;a6s.${Xm()}`;if(M==="auth"||M==="drm.auth"||M==="heartbeat.stop")b&&(T+=`;r.${b.replaceAll(" ","_")}`),X&&(T+=`sr.${X.replaceAll(" ","_")}`);W={errorCode:M,errorDetail:q,errorMessage:V||g.MA[G]||"",q8:G,n4:X||"",dg:T,hs:W,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=M;IY(this,"dataloaderror"); this.Rg(q5(this.playerState,128,W));g.FO.Oh(this.pP);tb(this);this.o3()}Vs(M){this.xa=this.xa.filter(W=>M!==W); this.fD.t6()&&Nf(this)}V1(){var M;(M=!!this.xa.length)||(M=this.b$.Z.array[0],M=!!M&&M.start<=-0x8000000000000);return M}fU(){return this.Ig.fU()}isPlaying(){return this.playerState.isPlaying()}gD(){return this.playerState.gD()&&this.videoData.fv}getPlayerState(){return this.playerState}eJ(M){this.loader?.eJ(M)}Dm(M){this.loader?.Dm(M)}getPlayerType(){return this.playerType}getPreferredQuality(){if(this.t_){var M=this.t_;M=M.videoData.FY.compose(M.videoData.hH);M=UV(M)}else M="auto";return M}isGapless(){return!!this.mediaElement&& this.mediaElement.isView()}Am(){return this.wG.Am()}setMediaElement(M){if(this.mediaElement&&M.BP()===this.mediaElement.BP()&&(M.isView()||this.mediaElement.isView())){if(M.isView()||!this.mediaElement.isView())this.SJ(),this.mediaElement=M,this.mediaElement.Cp=this,U8y(this),this.Ig.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.ys();if(!this.playerState.isError()){let W=JF(this.playerState,512);W.Z(8)&&!W.Z(2)&&(W=jK(W,1));M.isView()&&(W=JF(W,64));this.Rg(W)}this.mediaElement=M; this.mediaElement.Cp=this;!g.XD(this.uV)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);U8y(this);this.Ig.setMediaElement(this.mediaElement);this.j("html5_prewarm_media_source")&&!this.qV.gO()&&C5G(this.mediaElement)}}ys(M=!1,W=!1,b=!1){if(this.mediaElement){var T=this.getCurrentTime();T>0&&(this.Ig.B=T);this.Ig.setMediaElement(null);!M&&this.Aj()?beG(this):this.Jg(b);this.loader&&(kg(this.loader),this.loader?.sY(W));this.DH.stop();if(this.mediaElement&& (!this.fD.t6()&&!this.vM()||this.playerState.isError()||this.playerState.Z(2)||this.Rg(jK(this.playerState,512)),this.mediaElement)){this.SJ();if(M||!this.mediaElement.isView())this.pv.Q$("mesv_s"),this.mediaElement.stopVideo(),Ug(this);this.mediaElement=this.mediaElement.Cp=null}}}async playVideo(M=!1,W=!1){var b=window.google_image_requests;b&&b.length>10&&(window.google_image_requests=b.slice(-10));if(!this.playerState.Z(128))if(this.qV.wy())this.publish("signatureexpired");else if(this.mediaElement&& ul(this.Df),this.bY(),(this.playerState.Z(64)||M)&&this.Rg(jK(this.playerState,8)),this.fD.finished&&this.mediaElement){if(!this.t_&&this.Sx&&(await this.Sx,this.playerState.Z(128)))return;if(this.videoData.B){if(this.d0()&&this.videoData.B.Z())return Zb(this);if(bm(this))M=this.Ig,HM(M.videoData)&&!M.isAtLiveHead(M.getCurrentTime())&&M.fU()&&M.qK.seekTo(Infinity,{jR:"seektimeline_peggedToLive",seekSource:34});else if(HM(this.videoData)){M=this.getCurrentTime()b.video)?.sort((b,T)=>(T.B??0)-(b.B??0)); this.Df.r6("M",W?.[0]?.B??(MRt(M.Z)?M.Z:0))}}I6(M,W,b){this.r6(M);this.videoData.FY=M;if(this.t_&&W){W=this.Ui;var T=this.t_;if(T.Z.Z()){var q=g.TO(W.uV.experiments,"html5_max_quality_sel_upgrade"),X=q?M.Z:g.mh[UV(M)],G=T.Z.videoInfos[0].video.qualityOrdinal,V=G!==0&&M.Z===G;G=Tm()>G;V&&G||(q&&V&&(X=Math.max(X,q)),q=Nz(W,T.Z?.videoInfos),V=W.qK.getPlaybackRate(),V>1&&q&&(q=WdL(W.uV.S,T.Z.videoInfos,V),M.Z!==0&&q=480,W.j("html5_perf_cap_override_sticky")&&h$L(W.B,W.j("html5_perserve_av1_perf_cap")))}}this.loader&&(M=this.loader,b=b||"",M.policy.Z?e8(M.S.Z,b):e8(M.Z.S,b));this.vH()}getUserPlaybackQualityPreference(){return this.videoData.B&&!this.videoData.B.Z()?UV(this.videoData.FY):yg[Tm()]}hasSupportedAudio51Tracks(){return this.videoData.hasSupportedAudio51Tracks()}setUserAudio51Preference(M,W){this.getUserAudio51Preference()!==M&&(this.dK("toggle51",{pref:M}),g.$u("yt-player-audio51", M,W?31536E3:2592E3),this.N6())}getUserAudio51Preference(){return this.videoData.getUserAudio51Preference()}setProximaLatencyPreference(M){const W=this.getProximaLatencyPreference();this.dK("proxima",{pref:M});g.$u("yt-player-proxima-pref",M,31536E3);W!==M&&(M=this.Ig,M.Ds=!0,M.qK.seekTo(Infinity,{jR:"seektimeline_proximaSeekToHead",seekSource:34}))}getProximaLatencyPreference(){return qY()??0}isProximaLatencyEligible(){return this.videoData.isProximaLatencyEligible}Ec(){this.videoData.videoId?this.wG.Ec(this.videoData): this.dK("povid",{})}Xx(){this.videoData.videoId?this.wG.Xx(this.videoData):this.dK("piavid",{})}vH(){if(!this.ST()&&!this.playerState.Z(128)&&this.videoData.B){if(this.videoData.B.Z())v1(this);else{const T=Kl(this);var M=this.videoData;a:{var W=T;var b=this.videoData.bV;if(W.Z){for(const q of b){const X=q.getInfo(),G=g.mh[X.video.quality];if((!W.B||X.video.quality!=="auto")&&G<=W.Z){W=q;break a}}W=b[b.length-1]}else W=b[0]}M.BY=W;yo(this,T.reason,K3t(this,this.videoData.BY))}if(this.j("html5_check_unstarted")? this.playerState.isOrWillBePlaying():this.isPlaying())this.Ig.X=!1,this.playVideo()}}Ys(M,W){if(this.ST()||this.playerState.Z(128))return!1;var b=!!this.videoData.B?.Z(),T=b&&W?this.getCurrentTime()-this.Ga():NaN;if(M.r9&&M.r9.id){var q=this.Df;if(q.qoe){q=q.qoe;const G=[M.r9.id,isNaN(T)?"m":"t"];g.hm(q,g.u3(q.provider),"afi",G)}}if(b){if(W){var X=jN(this.Ig);this.dK("aswh",{id:M.id,xtags:M.xtags,bh:X.toFixed(3)})}this.loader.setAudioTrack(M,T,W);return!0}if(m8t(this)){a:{X=this.mediaElement.audioTracks(); W=!1;for(T=0;T{try{NCt(this,q,W,b)}catch(X){g.lR(X),this.handleError(new g.WE("fmt.unplayable",{msi:"1",ename:X&&typeof X==="object"&&"name"in X?String(X.name):void 0,trg:"setmediasrc"},1))}}; this.Aj()&&this.WY.B()==="open"?M(this.WY):BDp(this.WY,M)}Sq(M){this.A4.set(M.initData,M);this.n7&&(this.n7.Sq(M),this.j("html5_eme_loader_sync")||this.A4.remove(M.initData))}RU(M){this.videoData.Ek=g.ap("auto",M,!1,"u");v1(this)}qj(M){var W=M.reason,b=M.Z.info,T=M.source,q=M.token,X=this.Df;const G=this.videoData;if(b!==G.A){var V=!G.A;G.A=b;var J=W==="m"||W==="t";J||(W=V?"i":"a");this.uV.experiments.FX("html5_refactor_sabr_audio_format_selection_logging")?this.lZ=new Fn(b,W,"",T,q):(W=new Fn(b, W,"",T,q),X.qoe&&(X=X.qoe,b=g.u3(X.provider),u4S(X,b,W)));this.publish("internalaudioformatchange",G,!V&&J)}this.Xm();this.Ig.qj(M.Z.index)}g6(M){this.publish("localmediachange",M)}zV(M={}){this.loader?.zV(this.uV,tj(this.videoData),M)}wy(){return this.qV.wy()}TG(M){this.dt(new g.WE("staleconfig",{reason:M}))}handleError(M){this.qV.handleError(M)}gO(){return this.qV.gO()}BL(M){this.Ig.BL(M)}async MZ(M=!1,W=!1){this.loader&&this.loader.vE();this.loader&&this.loader.ST()&&tb(this);this.j("html5_enable_vp9_fairplay")&& this.Xy()&&this.videoData.Z?.d9();this.Rg(jK(this.playerState,2048));this.publish("newelementrequired");M&&await Zb(this);this.videoData.Me()&&this.loader?.yz&&!bm(this)&&(this.isAtLiveHead()&&HM(this.videoData)?this.seekTo(Infinity,{jR:"videoPlayer_getNewElement"}):this.videoData.f7&&this.loader&&(M=this.loader,M.HY.Me&&(M.HY.f7||M.HY.D||M.HY.isPremiere?(M.seek(0,{jR:"loader_resetSqless"}),M.videoTrack.C=!0,M.audioTrack.C=!0,M.videoTrack.A=!0,M.audioTrack.A=!0):Cf(M.HY)&&Pu(M))));W&&this.seekTo(0, {seekSource:105});this.playerState.Z(8)&&this.playVideo()}VF(M){this.dK("hgte",{ne:+M});this.videoData.W=!1;M&&this.MZ();this.loader&&pht(this.loader)}bJ(M){this.dK("newelem",{r:M});this.MZ()}pauseVideo(M=!1){if((this.playerState.Z(64)||this.playerState.Z(2))&&!M)if(this.playerState.Z(8))this.Rg(BK(this.playerState,4,8));else if(this.gD())m_(this);else return;this.playerState.Z(128)||(M?this.Rg(jK(this.playerState,256)):this.Rg(BK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause(); g.PM(this.videoData)&&this.loader&&this.loader?.sY(!1)}stopVideo(){this.pauseVideo();this.loader&&(this.loader?.sY(!1),this.loader.GK())}o3(M=!1,W=!1){this.Aj()&&W?this.mediaElement?.o3():this.mediaElement?.stopVideo();Ug(this);tb(this);this.playerState.Z(128)||(M?this.Rg(JF(JF(jK(this.playerState,4),8),16)):this.Rg(q5(this.playerState)));this.videoData.videoId&&this.uV.lV.remove(this.videoData.videoId)}seekTo(M,W={}){this.playerState.Z(2)&&m_(this);W.TWk&&this.Rg(jK(this.playerState,2048));if((W.seekSource=== 58||W.seekSource===60)&&this.j("html5_update_vss_during_gapless_seeking")){var b=this.Df;b.Z&&(b=b.Z,W.seekSource===58?b.Z.update():b.A&&(b.C(),Ax(b).send(),b.V=NaN))}this.Ig.seekTo(M,W);this.b$.sync()}Up(M){this.pv.A.V=(0,g.u)();this.playerState.Z(32)||(this.Rg(jK(this.playerState,32,M?.seekSource)),this.playerState.Z(8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.SR()}Uz(M){M=M?.seekSource;this.playerState.Z(32)?(this.Rg(BK(this.playerState,16,32,M)),this.publish("endseeking")):this.playerState.Z(2)|| this.Rg(jK(this.playerState,16,M));M=this.pv.A;var W=this.videoData,b=this.playerState.isPaused();if(W.clientPlaybackNonce&&!isNaN(M.Z)){if(Math.random()<.01){b=b?"pbp":"pbs";const T={startTime:M.Z};W.ll&&(T.cttAuthInfo={token:W.ll,videoId:W.videoId});FN("seek",T);g.xD({clientPlaybackNonce:W.clientPlaybackNonce},"seek");isNaN(M.V)||rO("pl_ss",M.V,"seek");rO(b,(0,g.u)(),"seek")}M.reset()}}Pk(M){this.Uz(M)}g8(){this.publish("SEEK_COMPLETE")}Zu(M){var W=this.wG,b=this.videoData.clientPlaybackNonce,T= this.playerType;if(M.scope===4){var q=M.type;if(q){var X=W.RT(),G=X.getVideoData().clientPlaybackNonce;T===1&&(G=b);if(T=xkt(W,G)){if(b=T.getVideoData())M.writePolicy===2&&b.sabrContextUpdates.has(q)||(M.sendByDefault&&b.An.add(q),b.sabrContextUpdates.set(q,M)),W.j("html5_enable_t1_enf_on_sabr")&&(M=q===5,q=iiQ(b.playerResponse),M?(M=q?1:0,A1(M,"m.p_",{}),XV("MBSTAT",M)):M=1,M===0&&g.q8(W.o0,"onAbnormalityDetected"))}else X.dK("scuset",{ncpf:"1",ccpn:G,crcpn:b})}else g.lR(Error("b/380308491: contextUpdateType is undefined"))}}Kj(){if(this.playerType=== 2)return this.wG.Kj("")}getCurrentTime(M=!1){return this.Ig.getCurrentTime(M)}JE(){return this.Ig.JE()}ac(){return this.Ig.ac()}H2(){return this.ac()}xI(){return this.Ig.xI()}getPlaylistSequenceForTime(M){return this.videoData.getPlaylistSequenceForTime(M-this.Ga())}gI(){let M=NaN;this.mediaElement&&(M=this.mediaElement.gI());return M>=0?M:this.getCurrentTime()}A1(){if(this.videoData.Z?.A1)return this.videoData.Z.A1(this.getCurrentTime()-this.Ga());if(this.mediaElement){var M=this.mediaElement.An(); if(M&&(M=M.getTime(),!isNaN(M)))return M/1E3+this.getCurrentTime()}return NaN}getDuration(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Ga():this.nN()?this.nN():0}Qk(){const M=new map;if(this.loader){oTp(this.PP,M,this.uV.jW());var W=this.loader;if(W.WY&&W.WY.S&&!W.WY.Cz()&&(M.oQ=yP(W.videoTrack),M.V=yP(W.audioTrack),W.policy.B)){const b=tV(W.videoTrack),T=tV(W.audioTrack),q=zn(W.WY.V.ZY(),"_",5),X=zn(W.WY.Z.ZY(),"_",5);Object.assign(M.Z,{lvq:b,laq:T,lvb:q,lab:X})}M.bandwidthEstimate= $H(W.X);W.audioTrack.D?.flush();W.videoTrack.D?.flush()}else this.mediaElement&&(M.oQ=$a(this.mediaElement));M.nD=this.nD;M.qY=this.qY;M.B=this.isAtLiveHead()&&this.isPlaying()?lm(this):NaN;W=this.Ig;W=W.Z?go(W.Z):0;M.A=W;return M}aC(M,W){this.qY+=M;this.nD+=W}yF(){return this.mediaElement?g.PM(this.videoData)?1:en(this.videoData)?this.isAtLiveHead()||this.fU()?1:this.Ig.yF():this.mediaElement.yF():0}Tf(){var M=this.wR;const W=B1(M,"bandwidth"),b=B1(M,"bufferhealth"),T=B1(M,"livelatency"),q=B1(M, "networkactivity"),X=Jb(M,"bandwidth"),G=Jb(M,"bufferhealth"),V=Jb(M,"livelatency");M=Jb(M,"networkactivity");var J=this.ZD();const B=J.droppedVideoFrames;J=J.totalVideoFrames;var D=this.getCurrentTime();if(this.n7){var a="IT/"+(this.n7.Z.getInfo()+"/"+UV(this.v1()));a+="/"+this.n7.getInfo()}else a="";var E=this.isGapless(),n=this.Am(),C=this.LK(),l=this.EM(),N=g.xO(this),R=this.getPlayerState().state.toString(16),f=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var x=0;var A="";if(this.Cv){if(this.Cv.Y5){A= "D,";break a}x=this.Cv.Fv;A=this.Cv.kS.substring(0,4)}x>0?(x=`AD${x}, `,A&&(x+=`${A}, `),A=x):A=""}return{xA:X,mC:G,currentTime:D,xB:a,droppedVideoFrames:B,isGapless:E,Am:n,LK:C,zf:l,F4:W,aS:b,UV:T,X4:q,qq:V,Ho:M,k8:N,tp:R,vy:f,L8:A,totalVideoFrames:J}}qd(M=!1){const W={};if(M){Object.assign(W,this.Df.qd());this.mediaElement&&(Object.assign(W,this.mediaElement.qd()),M=this.ZD(),W.dvf=M.droppedVideoFrames,W.tvf=M.totalVideoFrames);this.loader&&Object.assign(W,this.loader.qd());this.n7&&(W.drm=JSON.stringify(this.n7.qd())); W.state=this.playerState.state.toString(16);this.playerState.Z(128)&&(W.debug_error=JSON.stringify(this.playerState.Iw));this.V1()&&(W.prerolls=this.xa.join(","));this.videoData.kL&&(W.ismb=this.videoData.kL);this.videoData.latencyClass!=="UNKNOWN"&&(W.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(W.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)W.is_mosaic= 1;this.videoData.cotn&&(W.is_offline=1,W.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(W.playerResponseCpn=this.videoData.playerResponseCpn);this.wG.isOrchestrationLeader()&&(W.leader=1);this.videoData.isLivePlayback&&(this.videoData.Z&&al(this.videoData.Z)&&(W.segduration=al(this.videoData.Z)),M=this.Ig,W.lat=M.D?M.D.A.B():0,W.liveutcstart=this.videoData.liveUtcStartSeconds);W.relative_loudness=this.videoData.xs.toFixed(3);if(M=g.xO(this))W.optimal_format=M.video.qualityLabel;W.user_qual= Tm();W.release_version="youtube.player.web_20260216_03_RC00"}W.debug_videoId=this.videoData.videoId;return W}addCueRange(M){this.VC([M])}removeCueRange(M){this.b$.Ng([M])}RC(){var M=this.b$;if(M.qK.G().j("html5_sort_cueranges_on_update")&&!(M.xS().length<=0||M.ST())){var W=M.Z;W.array.sort(W.Z)}M.sync()}hg(M,W){return this.b$.hg(M,W)}VC(M,W){this.b$.QV(M,W)}So(M){this.b$.Ng(M)}xS(){return this.b$.xS()||[]}HN(){return this.yM}d0(){return this.visibility.d0()}LW(){this.mediaElement&&this.mediaElement.LW()}Zh(){IY(this)}togglePictureInPicture(){this.mediaElement&& this.mediaElement.togglePictureInPicture()}SJ(){this.R7.V()}o$(){this.SR();this.publish("onLoadProgress",this.yF())}nJ(M){var W=M.target.XA();if(this.mediaElement&&this.mediaElement.XA()&&this.mediaElement.XA()===W){Het(this,M.type);switch(M.type){case "error":var b=WK(this.mediaElement)||"",T=this.mediaElement.bl();if(b==="capability.changed"){this.j("html5_restart_on_capability_change")?(this.dK("capchg",{msg:T}),this.MZ(!0)):Zb(this);return}if(this.mediaElement.hasError()&&va(this.qV,b,{msg:T, trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.QW()===4){this.o3();fl(this,"unplayable");return}break;case "durationchange":b=this.mediaElement.getDuration();isFinite(b)&&(!this.WY||b>0)&&b!==1&&this.wI(b);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());b=this.b$;b.started=!0;b.sync();this.Df.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.hT().Z.UY(au)||this.j("html5_prevent_mobile_background_play_on_event_shared"))&& Ll(this,!1);fAt(this);this.publish("onLoadedMetadata");RUL(this);b=this.A1();this.videoData.P5&&(this.videoData.P5=b);break;case "loadstart":RUL(this);break;case "progress":case "suspend":this.JK.A();break;case "seeked":this.loader?.GN();break;case "playing":(this.hT().Z.UY(au)||this.j("html5_prevent_mobile_background_play_on_event_shared"))&&Ll(this,!1);this.pv.Q$("plev");this.sG&&!bm(this)&&(this.sG=!1,this.isAtLiveHead()||this.seekTo(Infinity,{jR:"videoplayer_onPlaying"}));break;case "timeupdate":(this.hT().Z.UY(au)|| this.j("html5_prevent_mobile_background_play_on_event_shared"))&&Ll(this,!1);b=this.mediaElement&&!this.mediaElement.getCurrentTime();T=this.mediaElement&&this.mediaElement.B()===0;if(b&&(!this.sP||T))return;this.sP=this.sP||!!this.mediaElement.getCurrentTime();zT(this);this.SR();if(!this.mediaElement||this.mediaElement.XA()!==W)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.S().length>0&&this.mediaElement.O1().length===0&&this.mediaElement.getCurrentTime()> 0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;break;case "resize":fAt(this);this.videoData.V&&this.videoData.V.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.c6&&this.playerState.Z(8)&&!this.playerState.Z(1024)&&this.getCurrentTime()===0&&g.R_){fl(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.XA()===W){HPS(this.Ig,M);this.publish("videoelementevent",M);W=this.playerState;T=this.Od;var q= this.mediaElement;b=this.videoData.clientPlaybackNonce;if(!W.Z(128)){var X=W.state;q=q?q:M.target;var G=q.getCurrentTime();if(!W.Z(64)||M.type!=="ended"&&M.type!=="pause"){var V=q.getDuration();V=q.isEnded()||G>1&&Math.abs(G-V)<1.1;var J=M.type==="pause"&&q.isEnded();G=M.type==="ended"||M.type==="waiting"||M.type==="timeupdate"&&!W.Z(4)&&!o8(T,G);if(J||V&&G)q.MK()>0&&q.XA()&&(X=14);else switch(M.type){case "error":WK(q)&&(X|=128);break;case "pause":W.Z(256)?(X^=256)||(X=64):W.Z(32)||W.Z(2)||W.Z(4)|| (X=4,W.Z(1)&&W.Z(8)&&(X|=1));break;case "playing":V=X;X=(X|8)&-1093;V&4?(X|=1,Xv(T,q,!0)):o8(T,q.getCurrentTime())&&(X&=-2);W.Z(1)&&Xv(T,q)&&(X|=1);break;case "seeking":X|=16;W.Z(8)&&(X|=1);X&=-3;break;case "seeked":X&=-17;Xv(T,q,!0);break;case "waiting":W.Z(2)||(X|=1);Xv(T,q);break;case "timeupdate":V=W.Z(16),J=W.Z(4),(W.Z(8)||V)&&!J&&o8(T,q.getCurrentTime())&&(X=8),Xv(T,q)&&(X|=1)}}T=X;X=null;T&128&&(X=M.target,J=WK(X),G=1,J?(J==="capability.changed"&&(G=2),q="GENERIC_WITHOUT_LINK",V=X.qd(),V.mediaElem= "1",V.trg="melem",/AUDIO_RENDERER/.test(X.bl())&&(q="HTML5_AUDIO_RENDERER_ERROR"),X={errorCode:J,errorMessage:g.MA[q]||"",q8:q,dg:$B(V),hs:G,cpn:W.Iw?W.Iw.cpn:""}):X=null,X&&(X.cpn=b));W=q5(W,T,X)}!this.playerState.Z(1)&&W.Z(1)&&um(this,"evt"+M.type);this.Rg(W)}}}SV(M){M=M.Z.availability==="available";M!==this.yM&&(this.yM=M,this.publish("airplayavailabilitychange"))}i6(){var M=(0,g.u)();const W=this.mediaElement.d0();this.dK("airplay",{ia:W});!W&&!isNaN(this.Sj)&&M-this.Sj<2E3||(this.Sj=M,W!==this.d0()&& (M=this.visibility,M.Z!==W&&(M.Z=W,M.V0()),this.dK("airplay",{rbld:W}),this.N6()),this.publish("airplayactivechange"))}Fh(M){if(this.loader){var W=this.loader,b=W.B,T=W.getCurrentTime();const q=Date.now()-b.D;b.D=NaN;b.dK("sdai",{adfetchdone:M,d:q});M&&!isNaN(b.C)&&b.V!==3&&zV(b.loader,T,b.C,b.S);b.policy.V?b.B=NaN:b.A=NaN;hg(b,4,b.V===3?"adfps":"adf");kg(W)}}d4(){g.FV(this.Yb);this.DH.stop();this.videoData.D=!0;this.uV.qA=!0;this.uV.XX=0;var M=this.qV;if(M.videoData.V){var W=M.Vz.S,b=M.videoData.V.Qz; W.B.has(b)&&(W.B.delete(b),W.Z=!0)}M.Z.stop();M.Vz.RV=0;this.qD();this.playerState.Z(8)&&this.Rg(JF(this.playerState,65));this.ZI=!1;this.Df.jt();this.t8.Wr();this.publish("playbackstarted");(M=g.Ct("yt.scheduler.instance.clearPriorityThreshold"))?M():Kv(0)}qD(){var M=this.wG.Zy(),W={};const b={};!iA("pbs",this.pv.timerName)&&CB.measure&&CB.getEntriesByName&&(CB.getEntriesByName("mark_nr")[0]?Yjy("mark_nr"):Yjy());M.videoId&&(W.videoId=M.videoId);M.clientPlaybackNonce&&!this.j("web_player_early_cpn")&& (W.clientPlaybackNonce=M.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(b.isPausedOnLoad=!0);b.itag=M.V?Number(M.V.itag):-1;M.Hr&&(b.preloadType=String(this.hF?2:1));W.liveStreamMode=XCL[Sn(M)];W.playerInfo=b;this.pv.infoGel(W);if(this.loader){M=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(M.B&&(W=window.performance.getEntriesByName(M.B),W.length&&(W=W[0],M.tick("vri",W.fetchStart),M.tick("vdns",W.domainLookupEnd),M.tick("vreq",W.requestStart), M.tick("vrc",W.responseEnd))),M.V&&(W=window.performance.getEntriesByName(M.V),W.length&&(W=W[0],M.tick("ari",W.fetchStart),M.tick("adns",W.domainLookupEnd),M.tick("areq",W.requestStart),M.tick("arc",W.responseEnd))));M=M.ticks;for(const T in M)M.hasOwnProperty(T)&&this.pv.tick(T,M[T])}}SR(M=!1){if(this.mediaElement&&this.videoData){m4y(this.Ig,this.isPlaying());var W=this.getCurrentTime();this.loader&&(this.playerState.Z(4)&&g.PM(this.videoData)||this.playerState.Z(32)&&Sz(this.videoData)||Dsp(this.loader, W),this.j("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.Ds())>10&&this.dK("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.Ds(),bh:this.loader?.XX()},!0));W>5&&(this.Ig.B=W);var b=g.ku();b?g.FO.Oh(this.pP):g.x7(this.pP);var T=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!T||this.videoData.yz())&&!this.playerState.Z(128)){const q=()=>{if(this.mediaElement&&!this.playerState.Z(128)){this.uV.jW()&&Het(this,"pfx");var X=this.getCurrentTime(); this.j("html5_buffer_underrun_transition_fix")&&(X-=this.Ga());var G=$a(this.mediaElement),V=this.playerState.Z(8),J=o8(this.Od,X),B=L5L(this.Od,X,(0,g.u)(),G);V&&J?this.Rg(JF(this.playerState,1)):V&&B?(V=this.getDuration(),J=HM(this.videoData),V&&Math.abs(V-X)<1.1?(this.dK("setended",{ct:X,bh:G,dur:V,live:J}),this.mediaElement.Xc()?this.seekTo(0,{jR:"videoplayer_loop",seekSource:37}):this.GE()):(this.playerState.isBuffering()||um(this,"progress_fix"),this.Rg(jK(this.playerState,1)))):(V&&!J&&!B&& X>0&&(V=(Date.now()-this.Ni)/1E3,J=this.getDuration(),X>J-1&&this.dK("misspg",{t:X.toFixed(2),d:J.toFixed(2),r:V.toFixed(2),bh:G.toFixed(2)})),this.playerState.isPaused()&&this.playerState.isBuffering()&&$a(this.mediaElement)>5&&this.Rg(JF(this.playerState,1)));this.SR()}}; this.mediaElement.S().length===0?this.pP=b?g.FO.N1(q,100):g.RS(q,100):this.pP=b?g.FO.N1(q,500):g.RS(q,500)}this.videoData.vP=W;!M&&this.isPlaying()&&rpt(this);mTJ(this.Ui,this.t_,this.E2(),this.isBackground())&&v1(this);this.publish("progresssync",M);T&&this.videoData.yz()&&this.publish("onVideoProgress",this.getCurrentTime())}}qv(){this.J1("ad.rebuftimeout",2,"RETRYABLE_ERROR",`vps.${this.playerState.state.toString(16)}`)}EM(){return this.Df.EM()}M8(){return this.loader?this.loader.M8():Yf(this.PP, !0)}Rg(M){if(!g.Dx(this.playerState,M)){var W=new g.yB(M,this.playerState);this.playerState=M;x8p(this);var b=!this.nm.length;this.nm.push(W);var T=this.mediaElement&&this.mediaElement.isSeeking();W.QN(1)&&this.loader&&OOt(this.loader);T=W.oldState.V()&&!T;if(W.QN(1)&&T&&this.playerState.Z(8)&&!this.playerState.Z(64)&&this.loader&&(T=this.loader,T.ZT=!0,T.policy.vP&&T.WY&&T.dK("lr_rb",{c:T.getCurrentTime(),s:T.isSeeking(),ab:zn(T.WY.Z.ZY()),ala:Ep(T.audioTrack)?.lw(),alr:T.audioTrack.Z?.lw(),vb:zn(T.WY.V.ZY()), vla:Ep(T.videoTrack)?.lw(),vlr:T.videoTrack.Z?.lw()}),T.b7!==0&&T.dK("sps_rebuffer",{c:T.getCurrentTime()}),this.mediaElement&&$a(this.mediaElement)>=5)){T=this.Ui;var q=this.t_;!q.videoData.V||T.j("html5_disable_performance_downgrade")?T=!1:(Date.now()-T.W>6E4&&(T.V=0),T.V++,T.W=Date.now(),T.V!==4?T=!1:(Kja(T,q.videoData.V),T=!0));T&&v1(this)}(T=g.TO(this.uV.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&M.Z(1)&&(M.Z(8)||M.Z(16))?this.UT.start(T):this.UT.stop();(u9(W,8)<0||W.QN(1024))&& this.DH.stop();!W.QN(8)||this.videoData.D||W.state.Z(1024)||this.DH.start();W.state.Z(8)&&u9(W,16)<0&&!W.state.Z(32)&&!W.state.Z(2)&&this.playVideo();W.state.Z(2)&&en(this.videoData)&&(this.wI(this.getCurrentTime()),this.SR(!0));W.QN(2)&&(this.K6(!0),this.uV.jW()&&this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&Sz(this.videoData)&&this.videoData.Z&&(M={minst:`${this.videoData.Z.R6}`,cminst:`${this.videoData.Z.XD()+this.Ga()}`,maxst:`${this.videoData.Z.mF}`,hts:`${this.videoData.Z.sY}`, cmaxst:`${this.videoData.Z.nN()+this.Ga()}`},this.dK("sabrSeekableBoundaries",M)));W.QN(128)&&this.o3();this.videoData.Z&&this.videoData.isLivePlayback&&!this.Xq&&(u9(W,8)<0?(M=this.videoData.Z,M.S&&M.S.stop()):W.QN(8)&&this.videoData.Z.resume());M=this.Ig;M.gK.S.Wr();if(M.mediaElement)if(W.oldState.V()&&by(W.state)&&W.state.isBuffering()){T=M.mediaElement.getCurrentTime();q=M.mediaElement.O1();var X=M.j("manifestless_post_live_ufph")||M.j("manifestless_post_live")?uS(q,Math.max(T-3.5,0)):uS(q,T- 3.5);X>=0&&T>q.end(X)-1.1&&X+10?(kO(M.qK,M.getCurrentTime()+M.videoData.limitedPlaybackDurationInSeconds),M.jT=!0):M.videoData.isLivePlayback&&M.videoData.endSeconds>0&&(kO(M.qK,M.getCurrentTime()+M.videoData.endSeconds),M.jT=!0));M=this.Df;if(W.QN(1024)|| W.QN(512)||W.QN(4))M.V&&(T=M.V,T.V>=0||(T.Z=-1,T.delay.stop())),M.qoe&&(T=M.qoe,T.W||(T.A=-1));M.provider.videoData.enableServerStitchedDai&&M.kh?M.B.get(M.kh)?.Zs(W):M.Z&&M.Z.Zs(W);if(M.qoe){T=M.qoe;q=W.state;X=g.u3(T.provider);var G=T.getPlayerState(q),V=X,J=q.seekSource||void 0;if(G!==T.Np){T.Zs||V=10&&T.playTimeSecs<=180&&(T.Z.set("qoealert",["1"]),T.Ds=!0)), G!=="B"||T.Np!=="PL"&&T.Np!=="PB"||(T.isBuffering=!0),T.B=V);T.Np==="PL"&&(G==="B"||G==="S")||T.provider.uV.jW()?S3(T,V):(T.EY||G!=="PL"||(T.EY=!0,zK(T,V,T.provider.qK.Qk())),Am(T,V));G==="PL"&&T.FT.Wr();var B=[G];G==="S"&&J&&B.push(`${"ss"}.${J}`);g.hm(T,V,"vps",B);T.Np=G;T.gK=V;T.B=V;T.S=!0}V=q.Iw;q.Z(128)&&V&&(V.dg=V.dg||"",f5Q(T,X,V.errorCode,V.hs,V.dg));(q.Z(2)||q.Z(128))&&T.reportStats(X);q.isPlaying()&&!T.W&&(T.A>=0&&T.Z.set("user_intent",[T.A.toString()]),T.W=!0);OJ(T)}M.V&&(M=M.V,ZLG(M), M.playerState=W.state,M.V>=0&&W.QN(16)&&M.seekCount++,W.state.isError()&&M.send());if(b&&!this.ST())try{for(const a of this.nm){var D=this.b$;if(D.started&&(D.sync(),a.oldState.Z(16))){W=D;const E=WcG(W.Z,Math.max(W.B-2E3,0));!isNaN(E)&&E<0x7ffffffffffff&&W.A.start()}this.publish("statechange",a)}}finally{this.nm.length=0}}}uA(){this.pv.tick("qoes")}Tp(){this.Ig.Tp()}IJ(M,W,b,T="LICENSE"){a:{var q=this.qV;b=b.substring(0,256);let X=Mm(W);M==="drm.keyerror"&&this.n7&&this.n7.B.keys.length>1&&q.A<96&& (M="drm.sessionlimitexhausted",X=!1);const G=q.Vz.experiments.FX("html5_retry_on_drm_unavailable"),V=q.Vz.experiments.FX("html5_retry_on_drm_key_error"),J=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(G&&M==="drm.unavailable"||V&&M==="drm.keyerror"&&!b.match(J))q.dt("qoe.restart",{retryOnDrmError:1,e:M,detail:b}),q.qK.MZ(!0);else{if(X)if(q.videoData.V&&q.videoData.V.video.isHdr())L5(q,M);else{if(q.qK.J1(M,W,T,b),TLq(q,{detail:b}))break a}else q.dt(M,{detail:b});M==="drm.sessionlimitexhausted"&& (q.dK("retrydrm",{sessionLimitExhausted:1}),q.A++,MYg(q.qK))}}}Yf(){var M=g.TO(this.uV.experiments,"html5_license_constraint_delay");const W=lt();M&&W?(M=new g.d9(()=>{this.vH();IY(this)},M),g.t(this,M),M.start()):(this.vH(),IY(this))}e0(M){this.publish("heartbeatparams",M)}ob(M){this.dK("keystatuses",yV(M)); var W="auto",b=!1;this.videoData.V&&(W=this.videoData.V.video.quality,b=this.videoData.V.video.isHdr());a:{switch(W){case "highres":case "hd2880":W="UHD2";break;case "hd2160":case "hd1440":W="UHD1";break;case "hd1080":case "hd720":W="HD";break;case "large":case "medium":case "small":case "light":case "tiny":W="SD";break;default:W="";break a}b&&(W+="HDR")}W=EP(M)?n5(M,W):M.A.includes(W);if(this.j("html5_enable_vp9_fairplay")){if(b){if(!M.W){this.videoData.vL||(this.videoData.vL=!0,this.dK("drm",{dphdr:1}), this.MZ(!0));return}if(this.n7?.Z.Z()?this.n7?.bV():!W){this.dK("drm",{dshdr:1});L5(this.qV);return}}if(this.n7?.Z.Z())return}else{const T=M.W&&W;if(b&&!T){L5(this.qV);return}}if(b=!W)b=!(n5(M,"AUDIO")&&n5(M,"SD"));b&&(M=yV(M),this.OS?(this.publish("drmoutputrestricted"),this.j("html5_report_fatal_drm_restricted_error_killswitch")||this.J1("drm.keyerror",2,void 0,`info.${M}`)):(this.OS=!0,this.dt(new g.WE("qoe.restart",{retrydrm:1,...M})),v1(this),MYg(this)))}ED(){if(!this.videoData.D&&this.mediaElement&& !this.isBackground()){var M="0";this.mediaElement.B()>0&&$a(this.mediaElement)>=5&&this.videoData.B&&this.videoData.B.Z()&&(this.Rg(jK(this.playerState,1)),um(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),M="1");x8p(this);var W=this.videoData.B;M={restartmsg:M,mfmt:!mc(this.videoData),mdrm:!(!(W&&W.videoInfos&&W.videoInfos.length&&W.videoInfos[0].contentProtection)||this.n7),mfmtinfo:!this.videoData.V,prerolls:this.V1()?this.xa.join(","):"0"};if(this.n7){W=this.n7;if(W.B.size<= 0){let b="ns;";W.gK||(b+="nr;");W=b+=`ql.${W.A.length}`}else W=yV(W.B.values().next().value),W=$B(W);M.drmp=W}Object.assign(M,this.loader?.qd()||{});Object.assign(M,this.mediaElement?.qd()||{});this.Df.dt("qoe.start15s",$B(M));this.publish("loadsofttimeout")}}wI(M){this.videoData.lengthSeconds!==M&&(this.videoData.lengthSeconds=M,IY(this))}K6(M=!1,W){if(!this.Pl)if(iA("att_s","player_att")||As("att_s",void 0,"player_att"),this.j("use_rta_for_player"))(async()=>{if(!M||await g.wsL())try{const T=pQp(this.Df); if(!T)throw Error();const q=await g.skq({cpn:this.videoData.clientPlaybackNonce,encryptedVideoId:this.videoData.videoId||""},g.TO(this.uV.experiments,"html5_att_playback_timeout_ms")||3E4);if(this.Pl)throw Error();if(!q.challenge)throw g.lR(Error(`Not sending atr ping; missing challenge string${q.error?`; error: ${q.error}`:""}`)),Error();this.Pl=!0;const X=[q.challenge];if(q.error){const G=WNt(),V=fct(G).get(q.error)||0;X.push(`${"r1c"}=${V}`)}else q.webResponse&&X.push(`${"r1a"}=${q.webResponse}`); q.adblockReporting?.reportingStatus!==void 0&&X.push(`${"r6a"}=${q.adblockReporting.reportingStatus}`);q.adblockReporting?.broadSpectrumDetectionResult!==void 0&&X.push(`${"r6b"}=${q.adblockReporting.broadSpectrumDetectionResult}`);T(X.join("&"));As("att_f",void 0,"player_att")}catch(T){As("att_e",void 0,"player_att")}})().then(()=>{W?.()}); else{var b=new g.g1l(this.videoData);if("c1a"in b.D4&&!g.$b.isInitialized()){As("att_wb",void 0,"player_att");this.sQ===2&&Math.random()<.01&&g.lR(Error("Botguard not available after 2 attempts"));if(M)return;if(this.sQ<5){this.Rf.Wr();this.sQ++;return}}(b=g.zYL(b))?(As("att_f",void 0,"player_att"),wQG(this.Df,b),this.Pl=!0):As("att_e",void 0,"player_att")}}y3(M=!1){return HM(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.fU()||g.PM(this.videoData))?this.getCurrentTime(): this.nN(M)}e_(){return this.XD()}nN(M=!1){return this.Ig.nN(M)}XD(){return this.Ig.XD()}Ga(){return this.Ig?this.Ig.Ga():0}getStreamTimeOffset(){return this.Ig?this.Ig.getStreamTimeOffset():0}lG(){return this.getStreamTimeOffset()===0?this.Ga():this.getStreamTimeOffset()}setPlaybackRate(M){this.playbackRate!==M&&Nz(this.Ui,this.videoData.B?.videoInfos)&&(this.playbackRate=M,v1(this));this.playbackRate=M;this.mediaElement&&this.mediaElement.setPlaybackRate(M)}getPlaybackRate(){return this.playbackRate}getPlaybackQuality(){let M= "unknown";if(this.videoData.V&&(M=this.videoData.V.video.quality,M==="auto"&&this.mediaElement)){const W=this.nH();W&&W.videoHeight>0&&(M=LW(W.videoWidth,W.videoHeight))}return M}isHdr(){return!!(this.videoData.V&&this.videoData.V.video&&this.videoData.V.video.isHdr())}sendVideoStatsEngageEvent(M,W){var b=this.Df;b.Z?(b=Fx(b.Z,"engage"),b.Zs=M,b.send(W)):W&&W()}un(M){return this.Df.un(M)}isAtLiveHead(M,W=!1){return HM(this.videoData)&&(this.qE||W)?this.Ig.isAtLiveHead(M):!1}Ph(){const M=this.nN(), W=this.getCurrentTime();var b;(b=!HM(this.videoData))||(b=this.Ig,b=!(b.Z&&b.Z.B));return b||this.fU()||isNaN(M)||isNaN(W)?0:Math.max(0,M-W)}sT(M){(this.qE=M)||this.DH.stop();if(this.videoData.Z)if(M)this.videoData.Z.resume();else{var W=this.videoData.Z;W.S&&W.S.stop()}this.loader&&(W=this.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&this.vM()&&this.videoData.isLivePlayback,M&&!W?this.loader.resume():this.loader?.sY(!0));this.playerState.Z(2)||M?this.playerState.Z(512)&&M&&this.Rg(JF(this.playerState, 512)):this.Rg(jK(this.playerState,512));W=this.Df;W.qoe&&(W=W.qoe,g.hm(W,g.u3(W.provider),"stream",[M?"A":"I"]))}Au(M){this.Df.dt("player.exception",$B({n:M.name,m:M.message}))}Wg(M){this.Df.Wg(M)}cf(M){this.Df.cf(M)}iM(M){this.Df.iM(M)}F3(M){this.Df.F3(M)}WL(M,W,b,T){this.Df.WL(M,W,b,T)}NP(){this.dK("hidden",{},!0)}ZD(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}fB(){return this.loader?this.loader.fB():!0}setLoop(M){this.loop=M;this.mediaElement&&!g.XD(this.uV)&&this.mediaElement.setLoop(M)}Xc(){return this.mediaElement&& !g.XD(this.uV)?this.mediaElement.Xc():this.loop}sS(M){this.dK("timestamp",{o:M.toString()});this.Ig.sS(M)}vr(M){this.pv.tick(M)}Yh(M){return this.pv.Yh(M)}Q$(M){this.pv.Q$(M)}dK(M,W,b=!1){this.Df.dK(M,W,b)}e3(M,W,b=!1){this.Df.dK(M,W,b)}dt(M){this.Df.dt(M.errorCode,$B(M.details));M=M.errorCode;if(this.videoData.isLivePlayback&&(M==="qoe.longrebuffer"||M==="qoe.slowseek")||M==="qoe.restart")M=this.loader?$Wl(this.loader.videoTrack):{},this.dK("lasoe",Object.assign(this.loader?$Wl(this.loader.audioTrack): {},this.WY?.Z?.wO())),this.dK("lvsoe",Object.assign(M,this.WY?.V?.wO()));this.j("html5_log_centralized_player_time")&&this.dK("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.Ds(),bh:this.loader?.XX()})}jq(M,W,b){this.Df.jq(M,W,b)}bI(M,W,b,T,q,X,G,V){if(this.videoData.Z?.isLive){var J=W.playerType===2?W:M,B=M.videoData.videoId,D=W.videoData.videoId;if(B&&D){var a=this.Df;if(V?.Py){if(a.qoe){B=a.qoe;D=V.Py;B.reportStats();var E=B.provider.videoData.clientPlaybackNonce,n=B.provider.videoData.videoId|| "",C=B.cS?.join(".")||E,l=B.Ms?.join(".")||n;gS(B,X?4:q?2:0,D.nW.join(".")||E,D.ZP.join(".")||n,T);B.reportStats();B.cS=D.nW;B.Ms=D.ZP;B.GL=D.adFormats;B.JA=D.serializedQoeContextData;gS(B,X?5:q?3:1,C,l,b);B.reportStats()}}else if(a.qoe){E=a.qoe;n=M.cpn;C=W.cpn;l=J.videoData.XX;var N=E.provider.videoData.clientPlaybackNonce;const R=E.provider.videoData.videoId,f=C!==N&&D!==R;N=n!==N&&B!==R;E.reportStats();E.adCpn&&E.adCpn!==n||(E.adCpn=N?n:"",E.xK=N?B:"",E.adFormat=N?l:void 0,gS(E,X?4:q?2:0,C,D,T), E.reportStats(),E.adCpn=f?C:"",E.xK=f?D:"",E.adFormat=f?l:void 0,gS(E,X?5:q?3:1,n,B,b),E.reportStats())}V?.vZ?(a.Z?.MK(),a.Z?.W(),a.Z?.jT(V.vZ),a.Z?.W(),a.Z?.D(!0,!0).send(),a.Z?.Lp()):(b=a,q=M.cpn,b.B.has(q)?(X=b.B.get(q),Ax(X,!0).send(),X.C(),q!==b.provider.videoData.clientPlaybackNonce&&(zL(X),b.Z?.O(),b.B.delete(q))):(b.kh=b.provider.videoData.clientPlaybackNonce,b.kh&&b.Z&&(b.B.set(b.kh,b.Z),Ax(b.Z).send(),b.Z.C())),b=W.cpn,J=J.videoData,T-=this.lG(),a.B.has(b)?(J=a.B.get(b),T=J.A&&isNaN(J.S)? il(J):NaN,J=J.D(!1),isNaN(T)||(J.W=T),J.send()):(T=gjl(a,a.provider,J,T),a.B.set(b,T),T.Zs(new g.yB(jK(new g.TD,8),new g.TD)),T.jt(),a.Z?.C()),a.kh=b);this.j("html5_unify_csi_server_stitched_transition_logging")?(T=this.pv,a=M.cpn,M=W.cpn,b=this.videoData.clientPlaybackNonce,J=W.videoData,W=(0,g.u)(),b=`${a===b?"video":"ad"}_to_${M===b?"video":"ad"}`,b!=="video_to_ad"&&(q=b==="ad_to_video"?void 0:J,a=q?.Fi,X={},J?.ll&&(X.cttAuthInfo={token:J.ll,videoId:J.videoId}),G&&(X.startTime=G),FN(b,X),G={targetVideoId:J?.videoId?? "empty_video",targetCpn:M,adVideoId:q?.videoId??"empty_video",adClientPlaybackNonce:a?.cpn??q?.clientPlaybackNonce},a&&(G.adBreakType=a.adBreakType,G.adType=a.adType),g.xD(G,b),Ir(T,W,b))):(T=this.pv,b=this.videoData.clientPlaybackNonce,J=(0,g.u)(),a=W.videoData,M=`${M.cpn===b?"video":"ad"}_to_${W.cpn===b?"video":"ad"}`,b={},a.ll&&(b.cttAuthInfo={token:a.ll,videoId:a.videoId}),G&&(b.startTime=G),FN(M,b),g.xD({targetVideoId:a.videoId,targetCpn:W.cpn,isSsdai:!0},M),G||Ir(T,J,M))}}else g.SV(this.logger, 360717806,"SSTEvent for nonSS")}IX(){var M=this.wG;const W=M.vR;M.vR=[];return W}UQ(M){this.videoData.Fx=!0;this.dt(new g.WE("sabr.fallback",M));this.MZ(!0)}XZ(M,W=!0){this.videoData.UE=!0;W&&(this.dt(new g.WE("qoe.restart",M)),this.MZ(!0))}yD(M){this.dK("sdai",{aftimeout:M});this.dt(new g.WE("ad.fetchtimeout",{timeout:M}))}h3(M,W){this.dK("timelineerror",M);M=new g.WE("dai.timelineerror",M);W?this.J1("dai.timelineerror",1,"RETRYABLE_ERROR",$B(M.details)):this.dt(M)}ZS(){return g.u3(this.Df.provider)}getPlayerSize(){return this.nI.getPlayerSize()}hX(){return this.nI.hX()}r0(){return this.pv}Jv(){return this.wG.Jv()}getVolume(){return this.wG.getVolume()}MO(){return this.wG.MO()}isMuted(){return this.wG.isMuted()}QI(){return this.wG.QI()}mj(){this.Xq= !0}j(M){return this.uV.j(M)}hT(){return this.uV.hT()}Ee(M,W,b,T,q){this.dK("xvt",{m:M,g:W?1:0,tt:b?1:0,np:T?1:0,c:q})}Iu(){this.loader?.resume()}vM(){return g.ME(this.xa,"ad")}L4(){const M=this.getCurrentTime(),W=M-this.Ga();var b=this.mediaElement?PE(this.mediaElement.O1()):0;b=Math.floor(Math.max(b-W,0))+100;return this.loader?.L4(W,b)?(this.dK("sdai",{skipad:1,ct:W.toFixed(3),adj:b.toFixed(3)}),Sz(this.videoData)&&this.loader.seek(W+b,{seekSource:89,jR:"videoplayer_skipServerStitchedAd"}),faL(this.Ig, M),!0):!1}jW(){return this.uV.jW()}Q4(){if(this.j("html5_generate_content_po_token"))return this.videoData.CS||"";this.wG.vQ();return this.uV.XP||""}zo(){if(this.videoData.videoId)return this.videoData.yC}rU(){return this.videoData.videoId}RK(){return this.wG.T8}wu(){return this.ZI}qm(){return this.wG.qm()}Hj(M,W,b){this.Rg(jK(this.playerState,16,b));this.Ig.Hj(M,W,b)}prefetchKeyPlay(M,W){this.loader?.prefetchKeyPlay(M,W)}OJ(M){return this.Ig.OJ(M)}dV(){this.Ig.dV()}d8(M,W){const b=this.j("html5_generate_content_po_token")? this.videoData:void 0;this.wG.d8(M,W,b)}g$(){return this.j("html5_remove_ios_7_hack_force_play")}Es(M,W){this.Df.Es(M,W)}Yd(){return this.Df.Yd()}LK(){return this.wG.LK()}zb(){return this.wG.zb(this)}i8(){this.Vd=!0}Ji(M){this.loader?.Ji(M)}Ed(M){this.Ig.Ed(M)}};g.L=g.mg.prototype;g.L.Sh=Ma(48);g.L.zs=Ma(31);g.L.Ts=Ma(25);g.L.Fo=Ma(19);g.L.pU=Ma(13);var Ab={primary:"Primary",secondary:"Secondary"};var FLp=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);Q(this.api,"isLifaAdPlaying",()=>this.api.isLifaAdPlaying()); this.events.J(M,LY(M.G().hT())?"playbackChange":"serverstitchedvideochange",()=>{this.api.getVideoData()?.FD()&&(this.api.isLifaAdPlaying()?(this.playbackRate=this.api.getPlaybackRate(),this.api.setPlaybackRate(1)):this.api.setPlaybackRate(this.playbackRate))}); this.playbackRate=1}};var itI=class extends aV{constructor(M){super("Bucle",g.Bv.gi);this.L=M;const W=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:EzL();this.setIcon(W);this.subscribe("select",this.B,this);M.createClientVe(this.element,this,28661);this.J(M,"settingsMenuVisibilityChanged",this.V);this.listen("click",this.logClick);this.J(M,"onLoopChange",this.onLoopChange);this.Z(M.getLoopVideo());M.fT().OB(this)}V(M){M&&this.Z(this.L.getLoopVideo());this.L.logVisibility(this.element,M)}logClick(){this.L.logClick(this.element)}onLoopChange(M){this.Z(M)}B(M){this.L.setLoopVideo(M)}};var hgA=class extends D9{constructor(M){super(M);M.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new itI(this.api),g.t(this,this.menuItem))}); M.addEventListener("videodatachange",(W,b)=>{W=this.api.getPresentingPlayerType()===2;this.menuItem?.eW(!b.isLivePlayback&&!W)})}};var ALQ=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);Q(this.api,"seekToChapterWithAnimation",W=>{this.seekToChapterWithAnimation(W)}); Q(this.api,"seekToTimeWithAnimation",(W,b)=>{this.seekToTimeWithAnimation(W,b)}); Q(this.api,"renderChapterSeekingAnimation",(W,b,T)=>{this.api.renderChapterSeekingAnimation(W,b,T)}); Q(this.api,"setMacroMarkers",W=>{this.setMacroMarkers(M,W)}); Q(this.api,"changeMarkerVisibility",(W,b,T)=>{this.changeMarkerVisibility(W,b,T)}); Q(this.api,"isSameMarkerTypeVisible",W=>this.isSameMarkerTypeVisible(W))}seekToChapterWithAnimation(M){if(g.am(this.api)&&!(M<0)){var W=this.api.getVideoData(),b=W.aT; if(b&&M{q===M&&SN(this,T.timeRangeStartMillis,T.title)})}}seekToTimeWithAnimation(M,W){g.am(this.api)&&SN(this,M,W)}setMacroMarkers(M,W){W={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:W}}}}}}; M=M.getVideoData();M.getWatchNextResponse();M&&M.getWatchNextResponse()==null&&(yL(M,{raw_watch_next_response:W}),M.publish("dataupdated"))}changeMarkerVisibility(M,W,b){const T=this.api.getVideoData();if(T){var q=!1;if(M)for(const X of W){if((M=T.lV)&&!M.includes(X))switch(b){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":F3S(X,T)||(q=!0,T.lV?.push(X));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":M.length===0&&(q=!0,T.lV?.push(X));break; default:q=!0,T.lV?.push(X)}}else for(const X of W)T.visibleOnLoadKeys.includes(X)||g.X9(T.lV,X)&&(q=!0);q&&this.api.publish("updatemarkervisibility")}}isSameMarkerTypeVisible(M){const W=this.api.getVideoData();return W?F3S(M,W):!1}};var zg5=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"videodatachange",()=>{this.updateMetadata()}); this.events.J(M,"presentingplayerstatechange",()=>{iea(this)}); this.events.J(M,"SEEK_COMPLETE",()=>{hUa(this)})}updateMetadata(){var M=this.api.getVideoData(); if(M?.S2()){var W=this.api.G(),b=[],T="";if(!W.O){const q=this.api.getVideoData().getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.browserMediaSession?.browserMediaSessionRenderer;g.dB(W)&&q?(b=App(q.thumbnailDetails),q.album&&(T=Sl(q.album))):b=[{src:M.pz("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.api.getVideoData()?.XF()&&hUa(this);iea(this);zUs(this);navigator.mediaSession.metadata=new MediaMetadata({title:M.title,artist:M.author,artwork:b,album:T});W=M=null;g.Le(this.api)&& (M=()=>{this.api.nextVideo()},W=()=>{this.api.previousVideo()}); Og("nexttrack",M);Og("previoustrack",W)}}vY(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;const M="nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ");for(const W of M)Og(W,null);this.api.getVideoData()?.XF()&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});super.vY()}};var usA=class extends D9{constructor(M){super(M);this.V=new Map;this.S=this.Z=void 0;this.compositeVideoState=null;this.B=void 0;this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"modulecreated",W=>{a:{var b=this.api.getVideoData()?.getPlayerResponse()?.overlay?.playerControlsOverlayRenderer;if(b&&(b=g.z(b.compositeVideoOverlay,l1P),b?.sources?.length))for(T of b?.sources)if(T.isActive)break a;var T=void 0}W==="captions"&&T?.topLeftCornerX!==void 0&&T?.topLeftCornerY!==void 0&&T?.width!== void 0&&T?.height!==void 0&&this.api.ZX({top:T.topLeftCornerY,right:1-T.topLeftCornerX-T.width,bottom:1-T.topLeftCornerY-T.height,left:T.topLeftCornerX})}); this.events.J(M,"videodatachange",W=>{const b=this.api.getVideoData();this.Z=void 0;this.V.clear();this.api.lN("compositeembargo",1);const T=b?.kX.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");T?.length?uSt(this,T.filter(q=>q.onEnter?.some(this.A))):b?.cueRanges&&uSt(this,b.cueRanges.filter(q=>q.onEnter?.some(this.A))); W==="dataupdated"&&b?.compositeLiveStatusToken!==this.S&&(this.S=b?.compositeLiveStatusToken,this.api.Fn())}); this.events.J(M,g.kJ("compositeembargo"),W=>{if(this.Z?.id!==W.id&&(this.api.Wg(!0),this.V.has(W.id))){var b=this.V.get(W.id),T=this.api.getVideoData();for(const q of b)b=q.compositeEmbargo?.embargoStatusToken,T.Ia!==b&&(T.Ia=b,this.api.Fn()),SAl(this,W)}}); this.events.J(M,g.KX("compositeembargo"),W=>{if(this.Z?.id===W.id&&(this.api.Wg(!1),this.V.has(W.id))){if(W=this.api.getVideoData())W.Ia=void 0;this.api.Fn();SAl(this)}}); this.events.J(M,"heartbeatRequest",W=>{this.compositeVideoState!==null&&(W.playbackState||(W.playbackState={}),W.playbackState.compositeVideoState=this.compositeVideoState)}); this.events.J(M,"internalaudioformatchange",(W,b)=>{const T=this.api.getVideoData({qW:!1});T?.dK("atrkchg",{id:W,m:b});if(T&&!T.OE()){b=this.api.getAvailableAudioTracks();for(const q of b)if(q.getLanguageInfo().getId()===W){this.api.G().jT=W;break}}}); this.events.J(M,"onPlaybackAudioChange",()=>{this.api.Fn();if(M.getVideoData()?.G().j("html5_preload_on_mosaic_audio_track_change")){const W=this.api.getSourceConfigForActiveAudioTrack();W&&M.preloadVideoByPlayerVars({videoId:W.videoId,live_preload:!0},1)}}); Q(M,"setCompositeParam",W=>{this.compositeVideoState=W}); this.api.j("web_watch_enable_multiview_manager")&&Q(M,"setCompositeVideoOverlayRendererComponent",W=>{this.setCompositeVideoOverlayRendererComponent(W)})}setCompositeVideoOverlayRendererComponent(M){this.B&&(this.B.remove(),g.Mw(this.B,"ytp-composite-video-overlay-renderer"),this.B=void 0); M&&(g.pY(M,"ytp-composite-video-overlay-renderer"),g.Im(this.api,M,4),this.B=M)}A(M){return M.compositeEmbargo!==void 0}vY(){super.vY();this.V.clear()}};var Sqc=class extends D9{constructor(M){super(M);this.events=new g.Cq;g.t(this,this.events);this.events.J(M,"applicationInitialized",()=>{({handleError:W=NH,logEvent:b=g.V9}={});var W;for(l1=new dKS(W,b);tw.length>0;){var b=tw.shift();switch(b.type){case "ERROR":l1.LT(b.payload);break;case "EVENT":l1.logEvent(b.eventType,b.payload)}}}); Q(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));Q(this.api,"updateDownloadState",this.updateDownloadState.bind(this));Q(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));Q(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));Q(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));Q(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));Q(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}async queueOfflineAction(M, W,b,T){const q=ec(this.api.lk());return q&&(M=await q.Ij([M],W,b,T),M.length)?M[0]:Promise.reject()}updateDownloadState(M,W){const b=ec(this.api.lk());return b?b.updateDownloadState(M,W):Promise.reject()}pauseVideoDownload(M){const W=ec(this.api.lk());W&&W.IU(M)}async resumeVideoDownload(M){const W=ec(this.api.lk());return W?W.sH(M):Promise.reject()}isOrchestrationLeader(){return this.api.isOrchestrationLeader()}refreshAllStaleEntities(M){M===void 0&&(M=14400);const W=ec(this.api.lk());return W?W.refreshAllStaleEntities(M): Promise.reject()}setUpPositionSyncInterval(M){const W=ec(this.api.lk());W&&W.setUpPositionSyncInterval(M)}};var OtE=class extends D9{constructor(M){super(M);this.loaded=!1;this.overlay=null;this.events=new g.Cq(M);g.t(this,this.events);this.Z=new g.Cq(M);g.t(this,this.Z);this.events.J(M,"modulesCreated",()=>{this.Wi()&&this.load()}); this.events.J(M,"modulesDestroyed",W=>{let b=!0;switch(W){case 2:case 3:b=!1;break;case 4:b=this.api.getPresentingPlayerType()===1}b&&this.unload()})}Wi(){var M=this.api.getVideoData(); return M.rp&&!M.xn}load(){this.loaded||g.WQ(this.api.G())||(this.overlay=new g.w({K:"div",rK:["ytp-ypc-clickwrap-overlay","ytp-player-content"],U:[{K:"h2",N:"ytp-ypc-clickwrap-header",R0:"\u00bfQuieres iniciar este alquiler?"},{K:"div",N:"ytp-ypc-clickwrap-description",R0:this.api.getVideoData().PT},{K:"button",rK:["ytp-ypc-clickwrap-confirm","ytp-button"],R0:"Iniciar periodo de alquiler"}]}),g.t(this,this.overlay),g.Im(this.api,this.overlay.element,4),this.overlay.J(this.overlay.hn("ytp-ypc-clickwrap-confirm"), "click",()=>{this.onConfirm()}),this.loaded=!0)}onConfirm(){this.overlay&&this.overlay.hide(); this.Z.J(this.api,"videodatachange",()=>{this.api.Vs("ypcRentalActivation")}); this.api.Vs("ypcRentalActivation")}unload(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),this.Z.V(),this.loaded=!1)}vY(){this.unload();super.vY()}};var PQV=class extends D9{constructor(M){super(M);Q(M,"getAvailableQualityData",()=>this.getAvailableQualityData()); Q(M,"getAvailableQualityDataAndMessaging",()=>this.getAvailableQualityDataAndMessaging()); Q(M,"getPaygatedAudioQualityData",()=>this.getPaygatedAudioQualityData())}getAvailableQualityDataAndMessaging(){return{qualityData:this.getAvailableQualityData(), qualityMessagingFormattedString:void 0}}getAvailableQualityData(){var M=this.api.getVideoData();if(!M)return[];var W=[],b=M.getPlayerResponse()?.playabilityStatus?.paygatedQualitiesMetadata,T=Oea(b),q=b?.restrictedAdaptiveFormats;if(q){b=[];for(var X of q){if(X.mimeType?.includes("audio")&&this.api.j("enable_lr_upsell_for_premium_high_quality_audio"))continue;q=Re(X.mimeType,X.quality,X.itag.toString(),X.width.toString(),X.height.toString(),X.qualityLabel,X.qualityOrdinal&&GXt[X.qualityOrdinal]); b.push(q)}M=g.I9(M);Lb(b);X=[];for(var G of b)Kb(M,G,this.api.G().S)===!0&&X.push(G);W=W.concat(P7q(X,!1,T))}G=this.api.zk();W=W.concat(P7q(G,!0,T));T=[];if(this.api.j("web_player_enable_premium_hbr_in_h5_api")){G=W;W=new Set;T=new Map;var V={};for(var J of G)G=J.quality,b=J.isPlayable,(M=J.qualityLabel)&&G&&(b&&T.has(G)&&T.get(G)!==M?W.add(G):b&&T.set(G,M),V[M]||(V[M]=J));J=[];for(var B of Object.values(V))V=B.quality,T=B,V&&!W.has(V)&&(T.formatId=void 0),J.push(T);B=W=J;J=0;for(V=0;Vthis.B}; this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"d6de4videobindingchange",W=>{this.Xx(W)}); this.events.J(M,"csiinitialized",()=>{d8L(this)})}Xx(M){if(eN())if(!this.V&&this.Z){M.yC={coldStartInfo:{clientState:this.B}}; try{this.Z.then(()=>{ofL(this,M)},W=>{dc(W,"player_update"); this.handleError(W,M)})}catch(W){dc(W,"player_update_catch"),this.handleError(W,M)}}else this.V?ofL(this,M):this.api.dK("pf",{m:this.V?1:0, p:this.Z?1:0})}handleError(M,W){g.lR(M);let b=0;M.mediaIntegrityErrorName?b||(b=egB[M.mediaIntegrityErrorName]):M.code&&(b=M.code());W.yC={hY:{code:b}}}};var oPh=class extends g.w{constructor(M){super({K:"button",rK:["ytp-pip-button","ytp-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},U:[kX()]});this.api=M;this.listen("click",this.onClick);const W=this.api.fK(),b=W.subscribe("visibilitystatechange",()=>{this.zv(W.iy())}); this.addOnDisposeCallback(()=>{W.Jj(b)}); Ce(M,this.element,this);this.zv(W.iy())}zv(M){M=M?"Salir de la funci\u00f3n Imagen en imagen":"Imagen en imagen";this.api.G().j("player_tooltip_data_title_killswitch")?this.update({title:M,"data-title-no-tooltip":M}):this.update({"data-tooltip-title":M,"data-title-no-tooltip":M});this.api.aq()}onClick(){this.api.togglePictureInPicture()}};var cLE=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"standardControlsInitialized",()=>{this.createButton()}); g.Zk(this.api.G())&&(this.j("web_watch_pip")||this.j("web_shorts_pip"))&&Q(this.api,"setDocumentPictureInPicture",W=>{this.setDocumentPictureInPicture(W)})}createButton(){this.button=new oPh(this.api); g.t(this,this.button);this.api.fZ(this.button);this.events.J(this.api,"videodatachange",()=>{cpt(this)}); cpt(this)}setDocumentPictureInPicture(M){this.api.fK().Yu(M);M=this.api.iy();const W=ZEl(this.api.lk());W&&(M?W.load():W.unload());this.api.publish("documentpictureinpicturechange")}};var QJr=class extends D9{constructor(M){super(M);this.loaded=!1;this.D=0;this.Z=!1;this.W={};this.B=[];this.A=0;this.C=!1;this.events=new g.Cq(M);g.t(this,this.events);this.V=new g.Cq(M);g.t(this,this.V);this.events.J(M,"modulesCreated",()=>{this.Wi()&&this.load()}); this.events.J(M,"modulesDestroyed",W=>{const b=this.api.getPresentingPlayerType();switch(W){case 2:case 3:W=b!==1&&!(b===5||b===6||b===7);break;case 4:W=!this.Z;break;default:W=!0}W&&this.unload()})}Wi(){return this.api.getVideoData().jG.includes("playableSequences")}load(){if(!this.loaded){this.S||(this.S=new g.w({K:"div", rK:["ytp-player-content","ytp-yto-overlay"],U:[{K:"div",rK:["ytp-yto-preroll-message"],R0:"El v\u00eddeo empezar\u00e1 en breve"}]}),g.t(this,this.S),Qmg(this,!1),g.Im(this.api,this.S.element,4));var M=this.api.getPresentingPlayerType();this.V.J(this.api,"playbackChange",()=>{var W=this.api.getPresentingPlayerType()===5;g.H(this.api.getRootNode(),"ytp-yto-preroll",W);Qmg(this,W)}); this.V.J(this.api,"presentingplayerstatechange",W=>{this.onStateChange(W)}); this.V.J(this.api,g.kJ("yto"),(W,b)=>{this.onCueRangeEnter(W,b)}); this.V.J(this.api,"ytoprerollinternstitialnext",()=>{smQ(this)}); wfP(this);this.loaded=!0;this.api.Vs("playableSequences",M)}}onCueRangeEnter(M){M=M.getId();if(!this.Z){if(this.api.getPlayerStateObject(1).Z(2)){if(this.C)return}else this.C=!1;this.B.includes(M)||this.B.push(M);this.api.getPresentingPlayerType()===1&&gfy(this)}}onStateChange(M){var W=this.api.getPresentingPlayerType();M=M.state;this.Z||W!==5&&W!==6&&W!==7||M.Z(1)||M.Z(16)||M.Z(32)||(W=M.Z(128),(M.Z(2)||W)&&smQ(this))}unload(){this.loaded&&(this.D=0,this.C=this.Z=!1,this.W={},this.A=0,this.B.length= 0,this.V.V(),this.loaded=!1)}vY(){this.unload();super.vY()}};var gPI=class extends D9{constructor(M){super(M);Q(this.api,"addOrUpdateOnlinePlaybackPosition",(W,b,T)=>pfJ(W,b,T))}};var sJ9=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);Q(this.api,"musicDisableUi",()=>{g.pY(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); Q(this.api,"musicEnableUi",()=>{g.Mw(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}};var IV=class extends g.w{constructor(M,W=!0,b=!1){super({K:"div",N:"ytp-suggested-action"});this.L=M;this.x_=this.BY=this.lV=this.yz=this.B=this.Zs=this.expanded=this.enabled=this.cP=!1;this.Y9=new g.d9(()=>{this.badge.element.style.width=""},200,this); this.XX=new g.d9(()=>{oY(this);c1(this)},200,this); this.OY=this.L.j("delhi_modern_web_player")?40:34;this.dismissButton=new g.w({K:"button",rK:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.t(this,this.dismissButton);this.S=new g.w({K:"div",N:"ytp-suggested-action-badge-expanded-content-container",U:[{K:"label",N:"ytp-suggested-action-badge-title",R0:"{{badgeLabel}}"},this.dismissButton]});g.t(this,this.S);this.Ds=new g.w({K:"div",N:"ytp-suggested-action-badge-icon-container",U:[W?{K:"div",N:"ytp-suggested-action-badge-icon"}: ""]});g.t(this,this.Ds);this.badge=new g.w({K:b?"div":"button",rK:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[this.Ds,this.S]});g.t(this,this.badge);this.badge.cY(this.element);this.sY=new g.Ol(this.badge,250,!1,100,()=>{this.L.j("web_player_overlay_positioned_layout")&&this.hide()}); g.t(this,this.sY);M.j("web_player_overlay_positioned_layout")&&this.hide();this.WP=new g.Ol(this.S,250,!1,100);g.t(this,this.WP);this.aT=new g.O9(this.Ic,null,this);g.t(this,this.aT);this.FT=new g.O9(this.sj,null,this);g.t(this,this.FT);g.t(this,this.Y9);g.t(this,this.XX);this.L.createServerVe(this.badge.element,this.badge,!0);this.L.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.J(this.L,"onHideControls",()=>{this.jT(!1)}); this.J(this.L,"onShowControls",()=>{this.jT(!0)}); this.J(this.badge.element,"click",this.An);this.J(this.dismissButton.element,"click",this.W);this.J(this.L,"pageTransition",this.A5);this.J(this.L,"appresize",this.V);this.J(this.L,"fullscreentoggled",this.GN);this.J(this.L,"cardstatechange",this.p7);this.J(this.L,"annotationvisibility",this.ek,this);this.J(this.L,"offlineslatestatechange",this.Px,this)}An(){}W(){}D(){return!0}Ic(){let M;this.expanded?(this.WP.show(),M=this.S.element.scrollWidth):(M=this.S.element.scrollWidth,this.WP.hide());this.m$= this.OY+M;g.H(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=`${this.expanded?this.OY:this.m$}px`;this.FT.start()}sj(){this.badge.element.style.width=`${this.expanded?this.m$:this.OY}px`;this.Y9.start()}Lp(){this.B&&this.L.logVisibility(this.badge.element,this.D());this.yz&&this.L.logVisibility(this.dismissButton.element,this.D()&&this.EY())}jT(M){this.lV=M;c1(this);oY(this);this.V()}Px(){g.H(this.badge.element,"ytp-suggested-action-badge-with-offline-slate", !0)}EY(){return this.BY||this.lV||!this.Zs}V(){this.D()?(this.show(),this.sY.show()):this.sY.hide();this.Lp()}A5(){this.enabled=!1;this.V()}C(M){M?this.yz&&this.L.logClick(this.dismissButton.element):this.B&&this.L.logClick(this.badge.element)}ek(){this.V()}p7(M){this.x_=M===1;this.V();g.H(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}GN(){g.H(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.L.isFullscreen());this.V()}};var N2=class extends g.YV{constructor(M,W,b,T,q,X){const G={K:"div",N:"ytp-panel"};let V,J,B;if(b){V="ytp-panel-back-button";J="ytp-panel-title";const D={K:"div",N:"ytp-panel-header",U:[{K:"div",rK:["ytp-panel-back-button-container"],U:[{Y:{"aria-label":"Volver al men\u00fa anterior"},K:"button",rK:["ytp-button",V]}]},{K:"span",rK:[J],Y:{role:"heading","aria-level":"2"},U:[b]}]};q&&(B="ytp-panel-options",D.U.push({K:"button",rK:["ytp-button",B],U:[T]}));G.U=[D]}T=!1;X&&(X={K:"div",N:"ytp-panel-footer", U:[X]},T=!0,G.U?G.U.push(X):G.U=[X]);super(G);this.content=W;T&&G.U?W.cY(this.element,G.U.length-1):W.cY(this.element);this.tF=!1;this.sV=T;b&&(this.backButton=this.hn(V),b=this.hn(J),this.J(this.backButton,"click",this.Wo),this.J(b,"click",this.Wo),this.tF=!0,q&&this.J(this.hn(B),"click",q));W.subscribe("size-change",this.zq,this);this.J(M,"fullscreentoggled",this.zq);this.L=M}zq(){this.publish("size-change")}fL(){return sg(this)}SU(){return sg(this)}focus(){this.content.focus()}Wo(){this.publish("back")}};g.Hv=class extends N2{constructor(M,W=null,b,T,q,X){const G={role:"menu"};W&&(G.id=W);W=new g.YV({K:"div",N:"ytp-panel-menu",Y:G});super(M,W,b,T,q,X);this.menuItems=W;this.items=[];g.t(this,this.menuItems)}OB(M,W=!1){if(W)this.items.push(M),this.menuItems.element.appendChild(M.element);else{W=g.k5(this.items,M,$MS);if(W>=0)return;W=~W;g.nJ(this.items,W,0,M);D3(this.menuItems.element,M.element,W)}M.subscribe("size-change",this.Fd,this);this.menuItems.publish("size-change")}fL(){sg(this)||this.items[0].focus(); return!0}SU(){this.items[this.items.length-1].focus();return!0}B3(M){M.unsubscribe("size-change",this.Fd,this);this.ST()||(g.X9(this.items,M),this.menuItems.element.removeChild(M.element),this.menuItems.publish("size-change"))}Fd(){this.menuItems.publish("size-change")}focus(){let M=0;for(let W=0;W1&&g.YO(this)}Zq(){Wiy(this);this.Ta&&(M8q(this),g.sS(this.element,this.size))}Xo(){const M=this.Z.pop();pl(this,M,this.Z[this.Z.length-1],!0)}oV(M){if(!M.defaultPrevented)switch(M.keyCode){case 27:this.Lv();M.preventDefault();break;case 37:this.Z.length>1&&this.Xo();M.preventDefault();break;case 39:M.preventDefault()}}focus(){this.Z.length&&this.Z[this.Z.length- 1].focus()}vY(){super.vY();this.B&&this.B.dispose();this.A&&this.A.dispose()}};var wy9=class extends g.fs{constructor(M){super(M,"ytp-shopping-product-menu");this.ul=new g.Hv(this.L);g.t(this,this.ul);this.hide();g.$T(this,this.ul);g.Im(this.L,this.element,4)}open(M,W){this.initialize(M.items)&&this.Nd(W,!!W)}initialize(M){g.wc(this.ul);if(M===void 0||M.length===0)return!1;let W=M.length;for(const b of M)this.OB(b,W--);return!0}OB(M,W){M.menuNavigationItemRenderer?qhL(this,M.menuNavigationItemRenderer,W):M.menuServiceItemRenderer&&XJL(this,M.menuServiceItemRenderer,W)}};var pyJ=class extends IV{constructor(M){super(M,!1,!0);this.isCounterfactual=this.A=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Zs=!0;this.overflowButton=new g.w({K:"button",rK:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.t(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.w({K:"img",N:"ytp-suggested-action-badge-img", Y:{src:"{{url}}"}});this.thumbnailImage.hide();g.t(this,this.thumbnailImage);this.thumbnailIcon=new g.w({K:"div",N:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.t(this,this.thumbnailIcon);this.banner=new g.w({K:"a",N:"ytp-suggested-action-container",U:[this.thumbnailImage,this.thumbnailIcon,{K:"div",N:"ytp-suggested-action-details",U:[{K:"text",N:"ytp-suggested-action-title",R0:"{{title}}"},{K:"text",N:"ytp-suggested-action-subtitle",R0:"{{subtitle}}"},{K:"text",N:"ytp-suggested-action-metadata-text", R0:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.t(this,this.banner);this.banner.cY(this.S.element);this.J(this.L,"videodatachange",this.onVideoDataChange);this.J(this.L,g.kJ("suggested_action_view_model"),this.bV);this.J(this.L,g.KX("suggested_action_view_model"),this.d9);this.J(this.overflowButton.element,"click",this.wK);this.J(M,"featuredproductdismissed",this.W);this.L.createServerVe(this.banner.element,this.banner,!0)}An(M){M.target!==this.dismissButton.element&&M.target!==this.overflowButton.element&& (this.C(),this.onClickCommand&&g.q8(this.L,"innertubeCommand",this.onClickCommand))}W(){this.enabled=!1;this.sY.hide()}D(){return!!this.Z&&this.enabled}onVideoDataChange(M,W){this.xk(W);if(this.Z){this.MK();a:if(!this.isCounterfactual){this.banner.update({title:this.Z?.title,subtitle:this.Z?.subtitle,metadata:this.Z?.metadataText});this.onClickCommand=g.z(this.Z?.onTap,xn);if(M=g.z(this.Z?.onOverflow,xn))this.O=g.z(M,Xzs);if(this.Z?.thumbnailImage){M=this.Z?.thumbnailImage?.sources||[];if(M.length=== 0)break a;this.thumbnailImage.update({url:M[0].url})}else this.Z?.thumbnailIconName&&this.thumbnailIcon.update({icon:this.Z?.thumbnailIconName});this.shouldShowOverflowButton=!!this.Z?.shouldShowOverflowButton;this.shouldHideDismissButton=!!this.Z?.shouldHideDismissButton}this.banner.element.setAttribute("aria-label",this.Z?.a11yLabel||"");this.vP=this.Z?.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;WT(this)}}bV(){this.isVisible=!0;WT(this)}d9(){this.isVisible= !1;WT(this)}Lp(){super.Lp();this.A&&this.L.logVisibility(this.banner.element,this.isVisible)}C(){super.C(!1);this.A&&this.L.logClick(this.banner.element)}wK(M){this.X||(this.X=new wy9(this.L),g.t(this,this.X));this.O?.menu?.menuRenderer&&(this.X.open(this.O.menu.menuRenderer,M.target),M.preventDefault())}xk(){}MK(){}vY(){this.L.lN("suggested_action_view_model");super.vY()}};var Yqh=class extends pyJ{xk(M){this.productUpsellSuggestedActionViewModel=g.z(M.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionViewModel,cUS);this.productUpsellSuggestedActionViewModel?.content&&(this.Z=g.z(this.productUpsellSuggestedActionViewModel?.content,x0J));(this.A=!!this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams)&&this.L.setTrackingParams(this.banner.element,this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams|| null);this.isCounterfactual=!!this.productUpsellSuggestedActionViewModel?.isCounterfactualServing}MK(){const M=[];for(const W of this.productUpsellSuggestedActionViewModel?.ranges||[]){if(!W)continue;const b=Number(W.startTimeMilliseconds),T=Number(W.endTimeMilliseconds);isNaN(b)||isNaN(T)||M.push(new g.Ap(b,T,{id:"product_upsell",namespace:"suggested_action_view_model"}))}this.L.QV(M)}};var $EJ=class extends D9{constructor(M){super(M);this.Z=new Yqh(this.api);g.t(this,this.Z);g.Im(this.api,this.Z.element,4)}};var MpQ=class extends D9{constructor(M){super(M);this.Z=!0;const W=new g.Cq(M);g.t(this,W);W.J(M,"internalaudioformatchange",(b,T)=>{DMG(this,b,T)}); W.J(M,"annotationvisibility",b=>{this.api.j("web_fix_annotations")&&B_J(this,(294).toString(),{boolValue:b})}); W.J(M,"videoplayerreset",()=>{Ty(this)}); W.J(M,"videodatachange",(b,T)=>{this.onVideoDataChange(b,T)})}onVideoDataChange(M,W){W.OE()&&(M==="newdata"&&Ty(this),this.Z&&M==="dataloaded"&&(this.Z=!1,x$(Ro(IU(this.api.G(),this.api.getVideoData()?.C()),b=>{EHs(this,b)}),()=>{this.Z=!0})))}M1(){if(g.XD(this.api.G())){const M=g.ZI(this.api.G(),this.api.getVideoData()?.C()); return Ro(NW(M),W=>{const b=fe();Rm(b,W);return this.api.M1(b)})}return NW(this.api.M1())}};var ygq=class{constructor(){this.label="Dobladas autom\u00e1ticamente"}};g.RV=class extends g.M3{constructor(M,W,b,T,q,X,G){super(g.FS({"aria-haspopup":"true"}),W,M);this.tT=T;this.BY=!1;this.D=null;this.options={};this.KN=new g.Hv(b,void 0,M,q,X,G);g.t(this,this.KN);this.listen("keydown",this.oV);this.listen("click",this.open)}open(){g.$T(this.tT,this.KN)}V(M){nHQ(this);const W=this.options[M];W&&(W.element.setAttribute("aria-checked","true"),this.setContent(this.B(M)),this.D=M)}A(M){g.wc(this.KN);const W={};let b=!1;for(let T=0;T{this.lV(M)}); return W}enable(M){this.BY?M||(this.BY=!1,this.W(!1)):M&&(this.BY=!0,this.W(!0))}W(M){M?this.tT.OB(this):this.tT.B3(this)}Z(M){this.publish("select",M)}lV(M){this.Z(M)}B(M){return M.toString()}oV(M){M.defaultPrevented||M.keyCode!==39||(this.open(),M.preventDefault())}vY(){this.BY&&this.tT.B3(this);super.vY();for(const M of Object.keys(this.options))this.options[M].dispose()}};var WA4=class extends g.RV{constructor(M,W){super("Temporizador de suspensi\u00f3n",g.Bv.SLEEP_TIMER,M,W);this.L=M;this.An={};this.Zs=this.S("Off");this.sY=this.C="";M.j("web_settings_menu_icons")&&(W=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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(W)); this.O=new g.w({K:"div",rK:["ytp-menuitem-label-wrapper"],U:[{K:"div",R0:"Final del v\u00eddeo"},{K:"div",rK:["ytp-menuitem-sublabel"],R0:"{{content}}"}]});g.t(this,this.O);this.listen("click",this.onClick);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"presentingplayerstatechange",this.zv);this.J(M,"settingsMenuVisibilityChanged",this.xk);M.createClientVe(this.element,this,218889);this.zv();g.q8(this.L,"onSleepTimerFeatureAvailable")}zv(){const M=this.S("Off");this.L.getPresentingPlayerType()!== 2?(kVs(this),this.V(this.Zs),this.C&&(this.Zs===M?this.C="":this.setSleepTimerTimeLeft(this.C)),this.sY&&this.setVideoTimeLeft(this.sY),this.enable(!0)):(this.A([]),this.enable(!1))}Z(M){this.yz(M);this.tT.Xo()}S(M){switch(M){case "Off":return"No";case "End of video":return"Final del v\u00eddeo";case "End of playlist":return"Final de la lista de reproducci\u00f3n";default:return`${M.toString()} ${"Minutos"}`.toLowerCase()}}yz(M){const W=this.An[M],b=W==="End of video"||W==="End of playlist";W==="Off"&& (this.C="");this.L.getPlayerState()!==0&&this.L.getPlayerState()!==5||!b?(this.Zs=M,super.Z(M),this.V(M),g.q8(this.L,"onSleepTimerSettingsChanged",W)):g.q8(this.L,"innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}onVideoDataChange(M){M==="dataloaded"&&kVs(this)}xk(M){this.L.logVisibility(this.element,M)}onClick(){this.L.logClick(this.element)}resetSleepTimerMenuSettings(){this.yz(this.S("Off"))}setSleepTimerTimeLeft(M){this.C= M;this.setContent(M)}setVideoTimeLeft(M){this.sY=M;this.O.setContent(M)}};var bJh=class extends D9{constructor(M){super(M);M.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new WA4(this.api,this.api.fT()),g.t(this,this.menuItem))}); M.addEventListener("openSettingsMenuItem",W=>{W==="menu_item_sleep_timer"&&(this.menuItem||this.api.fT()?.Nd(),this.menuItem.open())}); Q(M,"resetSleepTimerMenuSettings",()=>{this.resetSleepTimerMenuSettings()}); Q(M,"setSleepTimerTimeLeft",W=>{this.setSleepTimerTimeLeft(W)}); Q(M,"setVideoTimeLeft",W=>{this.setVideoTimeLeft(W)})}resetSleepTimerMenuSettings(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}setSleepTimerTimeLeft(M){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(M)}setVideoTimeLeft(M){this.menuItem&&this.menuItem.setVideoTimeLeft(M)}};var TV9=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"onSnackbarMessage",W=>{switch(W){case 1:this.api.getPlayerStateObject().isBuffering()&&g.q8(this.api,"innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl v\u00eddeo se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Saber por qu\u00e9"}]},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"}})}})}};var Kip; g.C0=class extends g.b9{constructor(M,W=!1,b,T=!1,q=!1){super();this.yz=q;this.O=!1;this.A=new ZS(this);this.S=this.W=null;this.B=this.V=!1;g.t(this,this.A);this.target=M;this.Z=W;this.Zs=b||M;this.O=T;W&&(g.bq&&this.target.setAttribute("draggable","true"),q||(this.target.style.touchAction="none"));XQ(this)}J(M,W){this.A.J(this.Zs,M,W,void 0,!this.Z)}cancel(){this.B&&(this.B=!1,this.publish("dragend",0,0,null));this.V&&(this.V=!1,this.publish("hoverend",0,0,null),jc(this),XQ(this))}Yw(M){jc(this);this.J(q3("move"), this.X);this.J(q3("out"),this.Qh);this.J("touchstart",this.D);this.Z&&this.J(q3("down"),this.C);const W=M.target;M=new g.xU(M.pageX,M.pageY);this.V=!0;this.publish("hoverstart",M.x,M.y,W);this.publish("hovermove",M.x,M.y,W)}X(M){const W=M.target;M=new g.xU(M.pageX,M.pageY);if(this.S){const b=this.S;this.S=null;if(b.relatedTarget===W&&FA(new g.xU(b.pageX,b.pageY),M))return}this.publish("hovermove",M.x,M.y,W)}Qh(M){const W=new g.xU(M.pageX,M.pageY),b=M.relatedTarget;try{if(b&&g.ES(this.target,b)){this.S= M;this.publish("hovermove",W.x,W.y,b);return}}catch(T){}jc(this);XQ(this);this.V=!1;this.publish("hoverend",W.x,W.y,b)}An(M){this.Yw(M);this.C(M)}C(M){if(typeof M.button!=="number"||M.button===0){jc(this);this.A.J(Gy(M.target),q3("move"),this.lV);this.A.J(Gy(M.target),q3("up"),this.sY);var W=M.target;if(g.bq)this.J("dragstart",this.BY);else if(M.preventDefault(),(g.vQ||AW)&&W)a:{let b=W;for(;b;){if(US(b)||b.getAttribute("tabindex")==="-1"){b.focus();break a}b=b.parentElement}Gy(W).activeElement.blur()}this.B= !0;M=new g.xU(M.pageX,M.pageY);this.publish("dragstart",M.x,M.y,W);this.publish("dragmove",M.x,M.y,W)}}BY(M){M.preventDefault()}lV(M){let W=M.target;W===Gy(M.target)&&(W=null);M=new g.xU(M.pageX,M.pageY);this.publish("hovermove",M.x,M.y,W);this.publish("dragmove",M.x,M.y,W)}sY(M){jc(this);this.B=!1;const W=g2(M),b=M.target;M=new g.xU(M.pageX,M.pageY);W&&g.ES(this.target,W)?(this.J(q3("move"),this.X),this.J(q3("out"),this.Qh),this.J(q3("down"),this.C),this.J("touchstart",this.D),this.publish("dragend", M.x,M.y,b)):(XQ(this),this.V=!1,this.publish("dragend",M.x,M.y,b),this.publish("hoverend",M.x,M.y,b))}D(M){const W=M.changedTouches[0];W&&(jc(this),this.yz||(this.J("touchmove",this.xk),this.J("touchend",this.gK),this.J("touchcancel",this.gK),this.W=W.identifier,M=M.target,this.V||(this.V=!0,this.publish("hoverstart",W.pageX,W.pageY,M)),this.publish("hovermove",W.pageX,W.pageY,M),this.Z&&(this.B=!0,this.publish("dragstart",W.pageX,W.pageY,M),this.publish("dragmove",W.pageX,W.pageY,M))))}xk(M){const W= vHS(this,M);W&&(this.Z&&M.preventDefault(),M=M.target,this.publish("hovermove",W.pageX,W.pageY,M),this.Z&&this.publish("dragmove",W.pageX,W.pageY,M))}gK(M){const W=vHS(this,M);if(W){jc(this);XQ(this);this.V=!1;const b=M.target;this.Z&&(this.O||M.preventDefault(),this.B=!1,this.publish("dragend",W.pageX,W.pageY,b));this.publish("hoverend",W.pageX,W.pageY,b)}}vY(){this.Z&&(g.bq&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");jc(this);super.vY()}};Kip=!1;var qrr=class extends g.w{constructor(M,W){super({K:"div",rK:["ytp-overlay","ytp-speedmaster-overlay"],U:[{K:"div",N:"ytp-speedmaster-user-edu",U:[{K:"div",N:"ytp-speedmaster-label",R0:W},{K:"div",N:"ytp-speedmaster-icon",R0:"{{icon}}"}]}]});this.L=M;this.Z=this.hn("ytp-speedmaster-user-edu");this.updateValue("icon",YGP());g.pY(this.Z,"ytp-speedmaster-has-icon");this.L.createClientVe(this.Z,this,173040,!0);this.S()}S(){g.iq(this.element,"display","none");this.L.logVisibility(this.Z,!1)}};var X$5=class extends D9{constructor(M){super(M);this.A=this.B=!1;this.V=new g.Cq(M);g.t(this,this.V);this.X="2x";this.speedmasterUserEdu=new qrr(M,this.X);g.t(this,this.speedmasterUserEdu);g.Im(this.api,this.speedmasterUserEdu.element,4);this.Z=new g.C0(this.api.qe().Yi,!0,null,!1,!0);g.t(this,this.Z);this.delay=new g.d9(this.sY,500,this);g.t(this,this.delay);this.V.J(M,"videodatachange",()=>{JQ(this)},this); this.V.J(M,"presentingplayerstatechange",()=>{JQ(this)},this); this.V.J(M,"autonavvisibility",()=>{JQ(this)},this); this.api.fK().subscribe("visibilitystatechange",()=>{JQ(this)}); this.V.J(M,"rootnodemousedown",W=>{this.W=W}); this.j("web_speedmaster_spacebar_control")&&(this.V.J(M,"keyboardserviceglobalkeydown",(W,b)=>{this.gK=b;ltS(this,W,b.aL,!0)},this),this.V.J(M,"keyboardserviceglobalkeyup",W=>{ltS(this,W,!1,!1)},this))}O(M,W){this.ST()||(this.D=[M, W],this.Z.subscribe("dragmove",this.C,this),this.Z.subscribe("dragend",this.S,this),this.B||this.delay.Wr())}sY(){if(this.A){this.B=!0;this.Zs=this.api.getPlaybackRate();this.yz=this.api.getPlayerStateObject().isPaused();var M=this.speedmasterUserEdu;g.iq(M.element,"display","");M.L.logVisibility(M.Z,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.W&&(this.W.l9=!0);this.gK&&(this.gK.PE=!0);this.j("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged", !0)}}C(M,W){if(!this.B){M=[M,W];var b=this.D;b&&M&&b.length===2&&M.length===2?(W=Math.abs(b[0]-M[0]),b=Math.abs(b[1]-M[1]),W=Math.sqrt(W*W+b*b)):W=-1;W<10?this.D=M:Vx(this)}}S(){Vx(this)}};var jQ4=class extends D9{constructor(M){super(M);this.V=new Set;this.Z={};this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"videodatachange",W=>{W==="newdata"&&(this.api.lN("stationsEmbargo"),this.api.lN("stationsMetadataUpdate"),this.Z={},this.V.clear());W=this.api.getVideoData().kX;const b=W.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");b&&t8s(this,b,"stationsEmbargo");(W=W.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&t8s(this,W,"stationsMetadataUpdate")}); this.events.J(M,g.kJ("stationsEmbargo"),W=>{this.api.Wg(!0);var b=this.Z[W.id]??[];for(const T of b){b=T.embargo;if(!b)continue;this.api.hideControls();this.api.J1("auth",2,Sl(b.errorRenderer.reason),$B({embargoed:1,id:W.id,idx:W.V,start:W.start}));(b=b.onTrigger)&&g.q8(this.api,"innertubeCommand",b)}}); this.events.J(M,g.kJ("stationsMetadataUpdate"),W=>{W=this.Z[W.id]??[];for(const b of W)(W=b.command)&&g.q8(this.api,"innertubeCommand",W)})}};var G4A=class extends g.wi{constructor(M,W,b){super(W,M);this.Z=b}preventDefault(){super.preventDefault();this.Z&&this.Z.preventDefault()}stopPropagation(){super.stopPropagation();this.Z&&this.Z.stopPropagation()}};g.Qm=class extends E1p{constructor(M){super();this.Z=M;this.Lp={};this.listener=W=>{this.dispatchEvent(new G4A(this,W.type,W))}}C(){return!0}isView(){return!1}vP(){return!1}BP(){return this.Z}XA(){return this.Z.src}wK(M){const W=this.getPlaybackRate(); this.Z.src=M;this.setPlaybackRate(W)}jT(){this.Z.removeAttribute("src")}getPlaybackRate(){try{return this.Z.playbackRate>=0?this.Z.playbackRate:1}catch{return 1}}setPlaybackRate(M){this.getPlaybackRate()!==M&&(this.Z.playbackRate=M);return M}Xc(){return this.Z.loop}setLoop(M){this.Z.loop=M}canPlayType(M,W){return this.Z.canPlayType(M,W)}isPaused(){return this.Z.paused}isSeeking(){return this.Z.seeking}isEnded(){return this.Z.ended}xk(){return this.Z.muted}X(M){VA();this.Z.muted=M}S(){return this.Z.played|| AE([],[])}O1(){let M;try{M=this.Z.buffered}catch{}return M||AE([],[])}D(){return this.Z.seekable||AE([],[])}An(){const M=this.Z;return M.getStartDate?M.getStartDate():null}getCurrentTime(){return this.Z.currentTime}setCurrentTime(M){this.Z.currentTime=M}getDuration(){return this.Z.duration}load(){const M=this.Z.playbackRate;try{this.Z.load()}catch{}this.Z.playbackRate=M}pause(){this.Z.pause()}play(){const M=this.Z.play();if(!M||!M.then)return null;M.then(void 0,()=>{}); return M}B(){return this.Z.readyState}MK(){return this.Z.networkState}QW(){return this.Z.error?this.Z.error.code:null}bl(){return this.Z.error?this.Z.error.message:""}getVideoPlaybackQuality(){if(window.HTMLVideoElement&&this.Z instanceof window.HTMLVideoElement&&this.Z.getVideoPlaybackQuality)return this.Z.getVideoPlaybackQuality();if(this.Z){var M=this.Z;const W=M.webkitDroppedFrameCount;if(M=M.webkitDecodedFrameCount)return{droppedVideoFrames:W||0,totalVideoFrames:M}}return{}}d0(){return!!this.Z.webkitCurrentPlaybackTargetIsWireless}LW(){return!!this.Z.webkitShowPlaybackTargetPicker()}togglePictureInPicture(){const M= this.Z,W=window.document;window.document.pictureInPictureEnabled?this.Z!==W.pictureInPictureElement?M.requestPictureInPicture():W.exitPictureInPicture():Gn()&&M.webkitSetPresentationMode(M.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}GC(){var M=this.Z;return new g.xU(M.offsetLeft,M.offsetTop)}getSize(){return g.we(this.Z)}setSize(M){g.sS(this.Z,M)}getVolume(){return this.Z.volume}setVolume(M){VA();this.Z.volume=M}XX(M){this.Lp[M]||(this.Z.addEventListener(M,this.listener), this.Lp[M]=this.listener)}setAttribute(M,W){this.Z.setAttribute(M,W)}removeAttribute(M){this.Z.removeAttribute(M)}hasAttribute(M){return this.Z.hasAttribute(M)}O(){return e9(this.Z)}TC(M){g.pY(this.Z,M)}Zs(M){return g.zr(this.Z,M)}OY(){return g.ES(document.body,this.Z)}audioTracks(){const M=this.Z;if("audioTracks"in M)return M.audioTracks}vY(){for(const M of Object.keys(this.Lp))this.Z.removeEventListener(M,this.Lp[M]);super.vY()}oT(M){this.Z.disableRemotePlayback=M}};g.Qm.prototype.W=Ma(59); g.Qm.prototype.yz=Ma(57);g.Qm.prototype.sY=Ma(55);g.Qm.prototype.gK=Ma(53);var r7=class extends g.w{constructor(M,W){super({K:"div",N:"ytp-horizonchart"});this.sampleCount=150;this.A=M;this.S=W;this.index=0;this.heightPx=-1;this.B=this.V=null;this.Z=2;this.element.style.width=`${this.Z*this.sampleCount}px`;this.element.style.height="1em"}};var Ita=class extends g.w{constructor(M){var W=null;W={K:"button",rK:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Y:{title:"close"},R0:"[X]"};super({K:"div",rK:["html5-video-info-panel","ytp-sfn"],U:[W,{K:"div",rK:["html5-video-info-panel-content","ytp-sfn-content"],U:[{K:"div",U:[{K:"div",R0:"Video ID / sCPN"},{K:"span",R0:"{{video_id_and_cpn}}",N:"ytp-sfn-cpn"}]},{K:"div",U:[{K:"div",R0:"Viewport / Frames"},{K:"span",R0:"{{dims_and_frames}}"}]},{K:"div",U:[{K:"div",R0:"Current / Optimal Res"}, {K:"span",R0:"{{resolution}}"}]},{K:"div",U:[{K:"div",R0:"Volume / Normalized"},{K:"span",R0:"{{volume}}"}]},{K:"div",U:[{K:"div",R0:"Codecs"},{K:"span",R0:"{{codecs}}"}]},{K:"div",Y:{style:"{{shader_info_style}}"},U:[{K:"div",R0:"Shader Info"},{K:"span",R0:"{{shader_info}}"}]},{K:"div",Y:{style:"{{color_style}}"},U:[{K:"div",R0:"Color"},{K:"span",R0:"{{color}}"}]},{K:"div",Y:{style:"{{drm_style}}"},U:[{K:"div",R0:"Protected"},{K:"span",R0:"{{drm}}"}]},{K:"div",Y:{style:"{{bandwidth_style}}"},U:[{K:"div", R0:"Connection Speed"},{K:"span",U:[{K:"span",R0:"{{bandwidth_chart}}"},{K:"span",R0:"{{bandwidth_kbps}}"}]}]},{K:"div",Y:{style:"{{network_activity_style}}"},U:[{K:"div",R0:"Network Activity"},{K:"span",U:[{K:"span",R0:"{{network_activity_chart}}"},{K:"span",R0:"{{network_activity_bytes}}"}]}]},{K:"div",U:[{K:"div",R0:"Buffer Health"},{K:"span",U:[{K:"span",R0:"{{buffer_health_chart}}"},{K:"span",R0:"{{buffer_health_seconds}}"}]}]},{K:"div",Y:{style:"{{live_latency_style}}"},U:[{K:"div",R0:"Live Latency"}, {K:"span",U:[{K:"span",R0:"{{live_latency_chart}}"},{K:"span",R0:"{{live_latency_secs}}"}]}]},{K:"div",Y:{style:"{{live_mode_style}}"},U:[{K:"div",R0:"Live Mode"},{K:"span",R0:"{{live_mode}}"}]},{K:"div",Y:{style:"{{playback_categories_style}}"},U:[{K:"div",R0:"Playback Categories"},{K:"span",R0:"{{playback_categories}}"}]},{K:"div",Y:{style:"{{fmt_debug_info_style}}"},U:[{K:"div",R0:"Format Debug Info"},{K:"span",R0:"{{fmt_debug_info}}"}]},{K:"div",U:[{K:"div",R0:"Mystery Text"},{K:"span",R0:"{{debug_info}}"}]}, {K:"div",Y:{style:"{{extra_debug_info_style}}"},U:[{K:"div",R0:""},{K:"span",U:[{K:"span",R0:"{{extra_debug_info}}"}]}]},{K:"div",U:[{K:"div",R0:"Date"},{K:"span",R0:"{{date}}"}]},{K:"div",Y:{style:"{{cotn_and_local_media_style}}"},U:[{K:"div",R0:"COTN / Local Media"},{K:"span",R0:"{{cotn_and_local_media}}"}]},{K:"div",Y:{style:"{{release_style}}"},U:[{K:"div",R0:"Player Release"},{K:"span",R0:"{{release_name}}"}]}]}]});this.o0=M;this.position=0;this.S=!0;W?this.J(this.hn("ytp-sfn-close"),"click", this.hide):this.J(this.element,"click",this.hide);M=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];W="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");const b=M.map(T=>T/4); this.W={};this.Z=new r7(M,W);g.t(this,this.Z);this.updateValue("bandwidth_chart",this.Z);this.B=new r7([0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.t(this,this.B);this.updateValue("live_latency_chart",this.B);this.V=new r7([0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.t(this,this.V);this.updateValue("buffer_health_chart",this.V);this.C=new r7(b,W);g.t(this,this.C);this.updateValue("network_activity_chart",this.C);this.delay= new g.d9(this.zv,500,this);g.t(this,this.delay);this.A=new g.d9(this.D,2E4,this);g.t(this,this.A)}show(){super.show();this.zv()}hide(){super.hide();this.delay.stop();this.A.stop()}zv(){var M=(0,g.u)(),W=A9L(this.o0);BT(this.Z,W.bandwidth_samples);BT(this.C,W.network_activity_samples);BT(this.B,W.live_latency_samples);BT(this.V,W.buffer_health_samples);const b={};for(const [T,q]of Object.entries(W)){W=T;const X=q;this.W[W]!==X&&(b[W]=" "+String(X));this.W[W]=X}this.update(b);M=(0,g.u)()-M>25?5E3:500; this.delay.start(M)}D(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=`${this.position}%`;this.element.style.top=`${this.position}%`;this.A.start(2E4)}};var VpQ=class extends D9{constructor(M){super(M);Q(M,"getStatsForNerds",()=>A9L(this.api)); XS(M,"showVideoInfo",()=>{N_s(this,!0)}); XS(M,"hideVideoInfo",()=>{N_s(this,!1)}); XS(M,"isVideoInfoVisible",()=>!!this.KN?.dS())}};var xl=class extends g.gz{constructor(){super();this.V=null;this.startTime=this.duration=0;this.delay=new g.O9(this.Z,null,this);g.t(this,this.delay)}Z(){var M=(0,g.u)()-this.startTime;M=M{this.button=new BVp(M);g.t(this,this.button);M.fZ(this.button,"RIGHT_CONTROLS_RIGHT")})}};var aBA=class extends D9{constructor(M){super(M);this.yz={TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED:()=>!1, TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK:W=>Fip(this,W), TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK:W=>Fip(this,W), TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN:()=>this.api.G().experiments.FX("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?this.C&&this.X:this.C&&this.D, TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER:()=>this.sY}; this.sY=this.X=this.D=this.C=!1;this.S={};this.events=new g.Cq(M);g.t(this,this.events);this.W=new g.C0(this.api.qe().Yi);g.t(this,this.W);if(this.api.j("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.TO(this.api.G().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")){const W=g.TO(this.api.G().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds");this.O=new g.d9(this.A,W,this);g.t(this,this.O)}this.events.J(M,"videodatachange",(W,b)=>{if(W!=="dataupdated"|| b.videoId!==this.videoId||!b6(this.timelyActions,Sht(b)))this.onVideoDataChange(b)}); this.events.J(M,"presentingplayerstatechange",W=>{this.by(W)}); M.j("enable_smart_skip_player_controls_shown_on_web")&&(this.events.J(M,"onShowControls",()=>{this.C=!0;this.A()}),this.events.J(M,"onHideControls",()=>{this.C=!1}),this.W.subscribe("hoverstart",()=>{this.D=!0; this.A()},this),this.W.subscribe("hoverend",()=>{this.D=!1},this),M.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.J(M,"progressBarHoverStart",()=>{this.X=!0; this.api.j("enable_smart_skip_web_player_bar_hover_length_threshold")?this.O?.Wr():this.A()}),this.events.J(M,"progressBarHoverEnd",()=>{this.X=!1; this.api.j("enable_smart_skip_web_player_bar_hover_length_threshold")&&this.O?.stop()}))); M.j("enable_smart_skip_speedmaster_on_web")&&this.events.J(M,"speedmasterchanged",W=>{(this.sY=W)&&this.A()}); this.events.J(M,g.kJ("timelyAction"),W=>{this.onCueRangeEnter(W.getId())}); this.events.J(M,g.KX("timelyAction"),W=>{this.onCueRangeExit(W.getId())}); M.j("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.J(M,"keyboardserviceglobalkeydown",(W,b)=>{(w_?W.altKey:W.ctrlKey)&&W.keyCode===39&&this.gK&&this.Z&&(W=g.z(Ek(this,this.Z)?.rendererContext,ZCq),W=iR(W?.onTap))&&(g.q8(this.api,"innertubeCommand",W),b&&(b.PE=!0),b=oo(),(W=Lrl(b))&&lJP(b,W))},this); this.V=new g.w({K:"div",rK:["ytp-player-content","ytp-timely-actions-content"]});this.V.hide();Q(M,"insertTimelyActionUi",W=>{this.V.element.children.length>0&&g.B5(this.V.element);W.classList.add("ytp-timely-actions-overlay");this.V.element.appendChild(W)}); g.t(this,this.V);this.j("web_player_overlay_positioned_layout")?this.events.J(M,"basechromeinitialized",()=>{this.api.pT(this.V.element,4,!0);this.V.element.setAttribute("data-overlay-order","10")}):g.Im(this.api,this.V.element,4)}onVideoDataChange(M){this.Ng(); this.videoId=M.videoId;this.B=this.Z=void 0;this.timelyActions=Sht(M);ijJ(this);ar(this);this.QV()}by(M){const W=M.oldState,b=M.state,T=b.seekSource;!W.Z(16)&&b.Z(16)?this.Pk(T??void 0):W.Z(16)&&!b.Z(16)&&this.g8();M=M.state;M=!M.isCued()&&!M.Z(1024);this.V.eW(M)}QV(){const M=this.xS();M&&this.api.QV(M)}Ng(){this.api.lN("timelyAction",1);if(this.Z!==void 0)this.onCueRangeExit(this.Z)}xS(){if(this.timelyActions){var M=[];for(const b of this.timelyActions){var W=b.startTimeMilliseconds!=null&&b.endTimeMilliseconds!= null&&b.cueRangeId!=null?new g.Ap(Number(b.startTimeMilliseconds),Number(b.endTimeMilliseconds),{id:b.cueRangeId,namespace:"timelyAction"}):void 0;W&&M.push(W)}return M}}onCueRangeEnter(M){const W=Ek(this,M);W&&this.S[M]!==void 0&&(W.maxShowCount===void 0||W?.maxShowCount>this.S[M])&&(this.Z=M,this.A())}onCueRangeExit(M){const W=huq(this,M);W&&this.Z===M&&g.q8(this.api,"innertubeCommand",W);ar(this);this.Z=void 0}Pk(M){this.B=M}g8(){this.A();this.B=void 0}A(){if(this.Z!==void 0){var M=(M=Ek(this, this.Z))&&M.onCueRangeEnter?iR(M.onCueRangeEnter):void 0;var W=Ek(this,this.Z);a:if(W&&W.additionalTrigger){for(b of W.additionalTrigger)if(b.type&&(0,this.yz[b.type])?.(b.args??{})){var b=!0;break a}b=!1}else b=!0;M&&b&&(g.q8(this.api,"innertubeCommand",M),AgJ(this,W),this.S[this.Z]!==void 0&&this.S[this.Z]++,this.gK=!0)}}vY(){this.timelyActions=this.B=this.Z=this.videoId=void 0;this.S={};this.Ng();ar(this);super.vY()}};var E5p=class extends D9{constructor(M){super(M);M=window;var W=this.api.G().hT();W.Z.UY(F9t)?(W=[],M.ytPlayerArraySizeExperimentLength=W.length,M.ytPlayerArraySizeExperimentValue=W[0]):W.Z.UY(x2q)?(W="6LPTkck/iK3Q7HMwz7Zyg71LBC0 buD oK+f O5w1 a ns4dbB O sCTaU5B4GI / ebOXx/5DGOwDMt1CEaJxccW+OaQtE zYkklE D4Kspm WDky G s0Vj4uvrd eLSfss l B1D/tiB9kUaZ+S SUWnD oGfGji rRpkB Jg O1 czi9 R Wl4 D94+hDF KOX stfyToM l8v9IJ KZi G A/2wZ 0Qfq 3kv3QDUZOWRK erN3h3b i j tdYdy kl u FBFdIp72yKKL/T rO ym cJYXYi8 yz+ ycc6jftJvwlWp ac s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C B MFZkvXTvZR59/ IKgbLr56eq4Gs JiTE6RRv2HmCWEy Jb+OG u7Ui9+Uy 2FhggtkS7H+rbrOWFb565UNsslsXF i 1CLXS6 bW 6wRdeNJzE gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m 3 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY 5 wy9W8enoXtF70HcJfDja0FFaVcIlv Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo WX eAqMs9UttnWTxsaY gcOb/6JXqGHdb5A7TVlpS9kTPq prg 3nD M7c rxwkg2JVkNqS4PtC2P+YzOfoYOdLc i gHNfRWcg3TaR CEKsZBM VfI V1VupF9DkyxK/ k7iWF+tWtW+RaVdPk6H3X 0GcnAiuJXyd7nC/ORmzb/HGrnvBms 6k NmQ2 aGB3blYR9pxhHrY Sk0Y/7tBGJ9EaTbTwoJGWt6 ijhACaixJX vh kwC00l 5QSqhiYiieEvBUYd7S SSRtsEjUFle/8v os".split(" "), M.ytPlayerArraySizeExperimentLength=W.length,M.ytPlayerArraySizeExperimentValue=W[Math.floor(Math.random()*W.length)]):W.Z.UY(r0P)&&(W="a Y1bKqzJ s0Vj4uvrd x+ G stfyToM 7W xsHJ KZi 5 H2+ buD / 3 15 76VyLn4q6B SUWnD XF Ml D9/q oK+f K+ eLSfss B rlJLVN wy9W8enoXtF70HcJfDja0FFaVcIlv yLwl WDky asfV3x j KOX /I M FL czi9 b qfSz0ipS DQ m68 u7Ui9+Uy 61 K5xdXVLZb 1e sm BzwWNM gjQS0e hJ l3 zUJAT rRpkB I0j5 DPZ/ gcOb/6JXqGHdb5A7TVlpS9kTPq Hn 7m WwesQPUzST n51 B1D/tiB9kUaZ+S TKXw0mTsQ imMcmOcJbtBm2iiT gvPRbDS3yqGyk+DHWJU+8pCy8FiGbRXFr2m V2 ac s7 D4Kspm j 7I Z4U+fzdVIKP99m 8l 72 Nh5 ab XgH8Lzvf/8e92nICvOm8 gZ O OVRfzTvv99f6a Ng G oGfGji Xr O0 +y uM a6 mb ImnAv LKuVPy OlPbi N483sfs uP A7 71DqBndyU3GS6bIzA zS fts2 ky A/2wZ 0Qfq Zfvd5Pn4776zeP5oPc aI vTeKTkO bhbbE sd os zYkklE CEKsZBM V1VupF9DkyxK/ ebOXx/5DGOwDMt1CEaJxccW+OaQtE tdYdy rO iy34HMOZpoG 2P Jb+OG 7V6 U6 D94+hDF RN RjTb6s9dI1z3sbX2Z n5Jc3 u8 sCTaU5B4GI kEvjgcbIMe a be5m6OlQPwiJOhQ t5 SKU/ XKCZgrGIc3wy+ RX JgMLCGK hTtIGwjH1fcQWLu 30 Pt Mk8cYLj6WiDpDJN zO0ox JD ygD8z hp TtR HX+B89Khozs4 G MxY0 CdMDbBR bQ47h 7N i B90/Ls3uwfIR+zJE pM iAtM6ngY20Xjova0ANGS+MWXtw WF JMLr8w 8W 07 Lq9jaVTdvqKUcBE+lcgF7T3+rj8eLe/W9Gx6pMjv+q Av l lEIzH+OY FqDusHkb z7 pr8bo8c/VS pMPt A6 rxwkg2JVkNqS4PtC2P+YzOfoYOdLc Ca cX Iw2D fp5 erN3h3b FOM 6k 6W/+L21S0BgHkyXSeXgiZEFNnD bW UNvcj1zvh8 I3TZF5 Jg xw vG Ia9v 5QSqhiYiieEvBUYd7S tA nY LJ ym Krj7JRMtiVWxQiqDYJqQf8d+Yhvqo LQhs6cZhK2 0wDpZFkrDy K9nzX D99+akDyTHqVZ5oc vh o+H0k SG s7m+LzqFtVOrgm7z0Z5Q/8Npyo19C XT Ba R Q4 X k7iWF+tWtW+RaVdPk6H3X kwC00l R+km6jn4lEte 6c O/E2WbIgQZp1fX6M15U6V4Cn2VEhA/o1gqaZrT W35r8t FM Sk0Y/7tBGJ9EaTbTwoJGWt6 59N5n p2 dc/6x6Ue8NTkG8Eq 3kv3QDUZOWRK bEp8Cdrszr5 7/ YF 0EGSTB RQ MFZkvXTvZR59/ sU aQ ++ kl u FM8tJsLmwDZGwNxLT3UB8U+Oqq M7c cJYXYi8 Joavny ul O1 Yo PzjTAnVHpDMOOfHYH7PRH5cM ns4dbB jz 0MqMKs EC 5i /PSB9 FSr5qF2R kXioSwTShtq5feiVSbNLRWdm8JtU ses mL J84d RA eAqMs9UttnWTxsaY YqL+09b l8v9IJ VfI Un5oe aghMX806dvo tfkKluaA tWZ0RiNdY ha /++SfI 78y wMv/BMy w4igDN5fJhU/ ijhACaixJX 9s+4w/ i f7 g33AqPrwozIBbUR 2W I5xT3pY5tk3rrjxU4XaqE3JsSS1Y+LA0zCg IKgbLr56eq4Gs WX 2U 3EX5fOxmA pD V8eT3N6k ShiYcW72d5b NmQ2 Mx yz+ ycc6jftJvwlWp aGB3blYR9pxhHrY bWti1J FBFdIp72yKKL/T 2FhggtkS7H+rbrOWFb565UNsslsXF ePmsAY5V ca rZ prg 5 5GOYU7DuLxi5tbaWKEUSnPYd0ZdsaJY ec8TP 6wRdeNJzE BV NrX25+/J8LYtUk O5w1 0GcnAiuJXyd7nC/ORmzb/HGrnvBms hGs6kinOmHXn QoQ Wl4 +S1B mv Jo 671 QGZ 5ru JiTE6RRv2HmCWEy v5vpHQ5jXX5RZgSVfA7P9Keq/9 ngi k3cqFr12egl66d89FwnoKFk dF+d5SEX0slenHxkb+cmSyeQohfO i R gHNfRWcg3TaR EwPA 5banN SSRtsEjUFle/8v szO04kG7irS7lBIpOjUf 51 8Vh6p 3nD ii6 QDM3wl8PVhEf5fF".split(" "), M.ytPlayerArraySizeExperimentLength=W.length,M.ytPlayerArraySizeExperimentValue=W[Math.floor(Math.random()*W.length)])}};var n5h=class extends D9{constructor(M){super(M);XS(this.api,"getPlaybackRate",()=>this.api.getPlaybackRate()); XS(this.api,"setPlaybackRate",W=>{typeof W==="number"&&this.api.setPlaybackRate(W)})}};var OjL=class extends aV{constructor(M,W,b,T){super("Mejora de voz",g.Bv.Uw);this.L=M;this.A=W;this.B=b;this.getVoiceBoostState=T;this.V=!1;this.tT=this.L.j("html5_enable_new_audio_settings_menu")?M.fT().xq:M.fT();this.J(M,"onFilterAudioFeatures",this.jk);this.setIcon({K:"svg",Y:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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.S,this);this.jk()}S(M){this.A(M?2:1)}jk(){var M=this.L.getPresentingPlayerType();M===2||M===3?this.V&&(this.V=!1,this.tT.B3(this)):(M=this.getVoiceBoostState(),M!==1?(M===0?(this.Z(this.B()===2),this.setEnabled(!0)):(this.Z(!1),this.setEnabled(!1)),this.V||(this.tT.OB(this),this.V=!0)):this.V&&(this.tT.B3(this),this.V=!1))}vY(){this.tT.B3(this);super.vY()}};var y77=class extends D9{constructor(M){super(M);this.events=new g.Cq(M);g.t(this,this.events);const W=this.api.j("html5_enable_voice_boost");W&&this.events.J(M,"settingsMenuInitialized",()=>{PFs(this)}); Q(this.api,"getVoiceBoostUserPreference",()=>W?this.getVoiceBoostUserPreference():0); Q(this.api,"setVoiceBoostUserPreference",b=>{W&&this.setVoiceBoostUserPreference(b)}); Q(this.api,"getVoiceBoostState",()=>W?this.getVoiceBoostState():1); this.Z=sHs()??0;this.updateEnvironmentData()}getVoiceBoostUserPreference(){return this.Z}setVoiceBoostUserPreference(M){this.api.dK("vb_set",{pref:M});g.$u("yt-player-voice-boost",M,31536E4);M!==this.Z&&(this.Z=M,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.N6(),this.api.Xm())}getVoiceBoostState(){return this.api.Fc(1)}updateEnvironmentData(){this.api.G().Mh=this.Z}};var UEr=class extends D9{constructor(M){super(M);this.useLivingRoomPoToken=!1;this.S=new g.XC;this.Z=!1;this.pv=null;this.W=!1;this.A=null;this.C=!1;const W=M.G().getWebPlayerContextConfig();this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"spsumpreject",(b,T,q)=>{this.C=T;b&&this.W&&!this.A&&(this.j("html5_generate_content_po_token")&&q?this.Ec(q):this.j("html5_generate_session_po_token")&&s1G(this));this.A||this.api.dK("stp",{s:+this.W,b:+this.C})}); this.events.J(M,"poTokenVideoBindingChange",b=>{this.Ec(b)}); if(this.j("html5_web_po_on_demand_init")){const b=this.events.J(M,"videodatachange",(T,q)=>{q.jj&&!this.W&&(Yha(this),this.events.fN(b))}) }this.useLivingRoomPoToken=!!W?.useLivingRoomPoToken;M.addEventListener("csiinitialized",()=>{this.pv=M.r0();this.j("html5_web_po_on_demand_init")?this.B=IX():Yha(this)}); M.addEventListener("trackListLoaded",this.ZJ.bind(this));M.BR(this)}vY(){this.D&&(g.FV(this.D),this.D=void 0);super.vY()}vQ(){(this.V?!this.Z:this.B)&&yx(this)}ZJ(M,W,b){if(dMt(M)){var T=b||"";if(this.Z)W=Kk(this,T),oHy(M,W);else{var q=new g.XC;W.push(q.promise);this.S.promise.then(()=>{const X=Kk(this,T);oHy(M,X);q.resolve()})}}}Ec(M){if(this.V||this.B)M.CS=Kk(this,M.videoId),this.Z||(this.A=new tI,this.S.promise.then(()=>{this.pv.Yh("pot_if"); M.CS=Kk(this,M.videoId)}))}};var BqG=class extends g.w{constructor(M){super({K:"div",rK:["ytp-more-videos-button","ytp-button"],Y:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},U:[{K:"div",N:"ytp-more-videos-button-thumbnail"},{K:"span",N:"ytp-more-videos-button-title",R0:"{{title}}"}]});this.L=M;this.B=this.hn("ytp-more-videos-button-thumbnail");this.A=this.hn("ytp-more-videos-button-title");this.V=new g.Cq(this);g.t(this,this.V);this.V.J(this.L,"videodatachange",this.Z);this.Z();this.listen("click",this.onClick); qpJ(this,0);this.hide()}Z(){var M=this.L.getVideoData({playerType:1});M=(M?.suggestions?.length?M.suggestions:M?.X()?[M.X()]:[])[0]?.pz("mqdefault.jpg");this.B&&M&&g.iq(this.B,"background-image",M?`url("${M}")`:"")}onClick(){this.L.logClick(this.element)}LN(M){this.eW([1,2].includes(M));qpJ(this,M)}eW(M){super.eW(M);this.element.setAttribute("aria-hidden",String(!M));M&&this.Z()}vY(){super.vY()}};g.CI$=class extends g.w{constructor(M){const W=M.G(),b=g.XH||g.KL?{style:"will-change: opacity"}:void 0,T=W.A,q=["ytp-modern-videowall-still"];W.V&&q.push("ytp-videowall-show-text");super({K:"a",rK:q,Y:{href:"{{url}}",target:T?W.X:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},U:[{K:"div",N:"ytp-modern-videowall-still-image",Y:{style:"{{background}}"},U:[{K:"span",N:"ytp-modern-videowall-still-info-duration",R0:"{{duration}}"}]}, {K:"span",N:"ytp-modern-videowall-still-info",Y:{"aria-hidden":"true"},U:[{K:"span",N:"ytp-modern-videowall-still-info-bg",U:[{K:"span",N:"ytp-modern-videowall-still-info-content",Y:b,U:[{K:"span",N:"ytp-modern-videowall-still-info-title",R0:"{{title}}"},{K:"span",N:"ytp-modern-videowall-still-info-author",R0:"{{author}}"},{K:"span",N:"ytp-modern-videowall-still-view-count-and-date-info",R0:"{{views_and_publish_time}}"},{K:"span",N:"ytp-modern-videowall-still-info-live",R0:"En directo"}]}]}]},{K:"span", rK:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Y:{"aria-hidden":"true"},U:[{K:"span",N:"ytp-modern-videowall-still-listlabel-icon"},"Lista de reproducci\u00f3n",{K:"span",N:"ytp-modern-videowall-still-listlabel-length",U:[" (",{K:"span",R0:"{{playlist_length}}"},")"]}]},{K:"span",rK:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Y:{"aria-hidden":"true"},U:[{K:"span",N:"ytp-modern-videowall-still-listlabel-mix-icon"}, "Mix",{K:"span",N:"ytp-modern-videowall-still-listlabel-length",R0:" (50+)"}]}]});this.suggestion=null;this.V=T;this.api=M;this.Z=new g.Cq(this);g.t(this,this.Z);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.Z.J(M,"videodatachange",this.onVideoDataChange);M.createServerVe(this.element,this);this.onVideoDataChange()}select(){this.api.jA(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.aQ||void 0)&&this.api.logClick(this.element)}onClick(M){if(g.tP(this.api.G())&& this.api.j("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);let W=this.suggestion.Kx();const b={};g.l7(this.api,b);W=g.JM(W,b);g.Pf(W,this.api,M)}else g.OA(M,this.api,this.V,this.suggestion.sessionData||void 0)&&this.select()}onKeyPress(M){switch(M.keyCode){case 13:case 32:M.defaultPrevented||(this.select(),M.preventDefault())}}onVideoDataChange(){const M=this.api.getVideoData(),W=this.api.G();this.V=M.uN?!1:W.A}};var JVq=class extends g.w{constructor(M,W){const b=M.j("web_player_use_more_videos_button");super({K:"div",rK:["ytp-fullscreen-grid"],U:[{K:"div",N:"ytp-fullscreen-grid-hover-overlay",Y:{"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"}},{K:"div",N:"ytp-fullscreen-grid-buttons-container",U:b?[]:[{K:"button",rK:["ytp-fullscreen-grid-expand-button","ytp-button"],Y:{"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"},U:["{{icon}}"]}]},{K:"div",N:"ytp-fullscreen-grid-main-content",U:[{K:"div",N:"ytp-fullscreen-grid-stills-container"}]}]});this.player=M;this.stills=[];this.videoData=null;this.currentState=0;this.C=b;this.Zs=this.player.j("web_player_use_external_grid_component");(this.yz=this.player.j("web_player_enable_horizontal_endscreen_shelf"))&&g.pY(this.player.getRootNode(), "ytp-enable-horizontal-endscreen-shelf");this.A=this.hn("ytp-fullscreen-grid-main-content");this.O=this.hn("ytp-fullscreen-grid-stills-container");this.D=this.hn("ytp-fullscreen-grid-buttons-container");this.C&&(this.S=new BqG(this.player),this.D.appendChild(this.S.element),g.t(this,this.S),this.J(this.S.element,"click",this.X));this.Zs&&(this.O.style.display="none");this.W=new g.Cq(this);g.t(this,this.W);this.sY=W;if(this.A&&this.O){if(M=this.hn("ytp-fullscreen-grid-hover-overlay"))this.J(M,"click", this.X),Ce(this.player,M,this);!this.C&&(M=this.hn("ytp-fullscreen-grid-expand-button"))&&(this.J(M,"click",this.X),Ce(this.player,M,this));if(M=this.player.getVideoData({playerType:1}))this.videoData=M;this.player.createClientVe(this.A,this,223051);this.W.J(this.player,"videodatachange",this.onVideoDataChange)}}vY(){this.hide();this.W.V();g.Qb(this.stills);this.stills.length=0;this.B&&(this.B.remove(),this.B=void 0);this.Z&&(this.Z.remove(),this.Z=void 0);this.V&&(this.V.remove(),this.V=void 0); super.vY()}setCommentsButton(M){M!==this.Z&&(this.Z&&this.Z.remove(),this.Z=M)&&(g.pY(this.Z,"ytp-fullscreen-grid-action-button"),this.D.appendChild(this.Z))}setDescriptionButton(M){M!==this.V&&(this.V&&this.V.remove(),this.V=M)&&(g.pY(this.V,"ytp-fullscreen-grid-action-button"),D3(this.D,this.V,0))}X(M){this.sY&&this.sY(M)}onVideoDataChange(){if(!this.Zs){this.videoData=this.player.getVideoData({playerType:1});var M=(this.videoData?.suggestions?.length?this.videoData?.suggestions:this.videoData?.X()? [this.videoData?.X()]:[]).slice(0,18),W=this.O;if(W&&this.A)if(g.B5(W),M.length){this.stills.length>M.length&&g.Qb(this.stills.splice(M.length));this.stills.length=M.length;for(let b=0;b{lj(this)}); W.J(M,"videodatachange",()=>{if(this.A){var b=this.api.getVideoData({playerType:1});this.videoData!==b&&this.B===2&&(g.Mw(this.api.getRootNode(),"ytp-grid-scrolling"),ZP(this,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));this.videoData=b}},this); W.J(M,"sizestylechange",()=>{this.A&&lj(this)}); Q(this.api,"setFullscreenQuickActions",b=>{this.setFullscreenQuickActions(b)}); Q(this.api,"setPlayerOverlayVideoDetailsRenderer",b=>{this.setPlayerOverlayVideoDetailsRenderer(b)}); this.yz&&Q(this.api,"setFullscreenGrid",b=>{this.setFullscreenGrid(b)}); Q(this.api,"setCommentsButton",b=>{this.setCommentsButton(b)}); Q(this.api,"setDescriptionButton",b=>{this.setDescriptionButton(b)}); this.A&&avy(this,W,M)}xk(){this.A&&this.B!==0&&this.O("INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}O(M){this.A&&(M==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(this.gK&&clearTimeout(this.gK),this.gK=window.setTimeout(()=>{this.gK=null},1E3)),this.B===1?ZP(this,2,M):ZP(this,1,M))}setFullscreenGrid(M){if(this.yz&&this.V){var W=this.V; W.Zs&&M!==W.B&&(W.B&&W.B.remove(),W.B=M,W.B&&W.A.appendChild(W.B))}}setCommentsButton(M){this.V&&this.V.setCommentsButton(M)}setDescriptionButton(M){this.V&&this.V.setDescriptionButton(M)}setFullscreenQuickActions(M){this.Zs&&this.Zs.remove();M?(g.pY(M,"ytp-fullscreen-quick-actions"),this.j("web_player_overlay_positioned_layout")?(M.setAttribute("data-overlay-order","13"),this.api.pT(M,4)):(g.pY(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.Im(this.api,M,4))):g.Mw(this.api.getRootNode(), "ytp-has-fullscreen-quick-actions");this.Zs=M;lj(this)}setPlayerOverlayVideoDetailsRenderer(M){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(M){g.pY(M,"ytp-fullscreen-metadata");g.pY(this.api.getRootNode(),"ytp-hide-fullscreen-title");M.setAttribute("data-overlay-order","1");var W=this.api.j("delhi_modern_web_player_fullscreen_metadata_bottom");const b=W?3:1;W=W?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.pY(this.api.getRootNode(), W);this.j("web_player_overlay_positioned_layout")?this.api.pT(M,b):g.Im(this.api,M,4)}else g.Mw(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.Mw(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.Mw(this.api.getRootNode(),"ytp-fullscreen-metadata-top");this.playerOverlayVideoDetailsRenderer=M;lj(this)}};var KAE=class extends D9{constructor(M){super(M);this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Cq(M);g.t(this,this.events);this.events.J(M,"heartbeatRequest",W=>{if(this.freePreviewUsageDetails.length||this.freePreviewWatchedDuration!==null)W.heartbeatRequestParams||(W.heartbeatRequestParams={}),W.heartbeatRequestParams.unpluggedParams||(W.heartbeatRequestParams.unpluggedParams={}),this.freePreviewUsageDetails.length>0?W.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= this.freePreviewUsageDetails:W.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:`${this.freePreviewWatchedDuration}`}}); Q(M,"setFreePreviewWatchedDuration",W=>{this.freePreviewWatchedDuration=W}); Q(M,"setFreePreviewUsageDetails",W=>{this.freePreviewUsageDetails=W})}};var v5E=class extends g.gz{constructor(M){super();this.features=[];var W=new t6J(M),b=new c4t(M),T=new PQV(M),q=new UEr(M);var X=g.Tb(M.G())?void 0:new DDy(M);var G=new usA(M),V=new VpQ(M),J=new n5h(M),B=new lNQ(M);var D=g.Tb(M.G())?new KAE(M):void 0;var a=M.G().getWebPlayerContextConfig()?.cinematicSettingsAvailable?new Xxt(M):void 0;var E=new vWl(M);var n=M.j("enable_courses_player_overlay_purchase")?new LPy(M):void 0;var C=g.Zk(M.G())?new kvg(M):void 0;var l=new aNy(M);var N=M.G().A?new nWP(M): void 0;var R=g.tP(M.G())?new EWy(M):void 0;var f=M.j("web_player_move_autonav_toggle")&&M.G().s2?new qxs(M):void 0;var x=g.Zk(M.G())?new ALQ(M):void 0;var A=M.j("web_enable_speedmaster")&&g.Zk(M.G())?new X$5(M):void 0;var qa=M.G().dS?void 0:new DEI(M);var Xs=M.j("report_pml_debug_signal")?new wCL(M):void 0;var uQ=new Sqc(M),Lt=new cLE(M);var St=g.dB(M.G())?new sJ9(M):void 0;var oJ=navigator.mediaSession&&window.MediaMetadata&&M.G().RN?new zg5(M):void 0;var NR=M.j("html5_enable_drc")&&!M.G().C?new BYa(M): void 0;var Oq=new ssJ(M);var Ly=g.Zk(M.G())?new $EJ(M):void 0;var eu=new daJ(M);var L3=g.Zk(M.G())&&M.j("web_sleep_timer")?new bJh(M):void 0;var cc=g.tP(M.G())?new yot(M):void 0;M.j("mweb_debug_sticky_settings");var DM=new MpQ(M);var Ym=new j7p(M),$Z=new FLp(M);var Ms=M.j("enable_sabr_snackbar_message")?new TV9(M):void 0;var m=M.j("web_enable_timely_actions")?new aBA(M):void 0;var DB=new Gvt(M);var ts=M.G()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature?new k45(M):void 0;var Ix=new y77(M); var p=M.j("web_player_loop_settings_menu")&&M.G().Vp?new hgA(M):void 0;var So=g.Tb(M.G())?void 0:new QsL(M);var k=new QJr(M),S=new WPJ(M),Zr=new OtE(M),ID=new bRq(M);var Fd=g.Zk(M.G())&&M.G().j("delhi_modern_web_player")?new V6G(M):void 0;var z6=M.G().B?void 0:new $Dl(M);var $p=new jQ4(M),r2=new UDP(M);var rU=M.G().hT();rU=rU.Z.UY(F9t)||rU.Z.UY(x2q)||rU.Z.UY(r0P)?new E5p(M):void 0;M=M.G().hT().Z.UY(z_t)?new gPI(M):void 0;W=[W,b,T,q,X,G,V,J,B,D,a,E,n,C,l,N,R,f,x,A,qa,Xs,uQ,Lt,St,void 0,oJ,NR,Oq,void 0, Ly,eu,L3,cc,void 0,DM,Ym,$Z,void 0,Ms,m,DB,ts,Ix,void 0,p,void 0,So,k,S,Zr,ID,Fd,z6,$p,r2,rU,void 0,M];for(const K of W)K&&this.features.push(K)}vY(){for(let M=this.features.length-1;M>=0;M--)this.features[M].dispose();this.features.length=0;super.vY()}};var mEr=class{constructor(){this.V=this.Z=NaN}reset(){this.Z=this.V=NaN}};var ktt=class{constructor(M,W){this.uV=M;this.timerName="";this.B=!1;this.V=NaN;this.A=new mEr;this.Z=W||null;this.B=!1}reset(){HZ(this.timerName)}tick(M,W){rO(M,W,this.timerName)}Yh(M){return hs(M,void 0,this.timerName)}Q$(M){g.Cd(M,void 0,this.timerName)}infoGel(M){g.xD(M,this.timerName)}};var b0Q=class extends g.b9{constructor(M,W){super();this.Vz=M;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Z=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.DU={};this.V=0;if(M=W.session_data)this.sessionData=EX(M,"&");this.index=Math.max(0,Number(W.index)||0);this.loop=!!W.loop;this.startSeconds=Number(W.startSeconds)||0;this.title=W.playlist_title||"";this.description=W.playlist_description|| "";this.author=W.author||W.playlist_author||"";W.video_id&&(this.items[this.index]=W);if(M=W.api)typeof M==="string"&&M.length===16?W.list="PL"+M:W.playlist=M;if(M=W.list)switch(W.listType){case "user_uploads":this.listId=new PQ("UU",`PLAYER_${M}`);break;default:var b=W.playlist_length;b&&(this.length=Number(b)||0);this.listId=ez(M);if(b=W.video)this.items=b.slice(0),this.loaded=!0}else if(W.playlist){M=W.playlist.toString().split(",");this.index>0&&(this.items=[]);for(b of M)b&&this.items.push({video_id:b}); this.length=this.items.length;if(b=W.video)this.items=b.slice(0),this.loaded=!0}this.setShuffle(!!W.shuffle);if(b=W.suggestedQuality)this.quality=b;this.DU=Ft(W,"playlist_");this.B=(W=W.thumbnail_ids)?W.split(","):[]}hasNext(M){return this.loop||!!M||this.index+1=0}setShuffle(M){this.shuffle=M;M=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var W=0;W{}),this.W=W,Promise.all(b).then(W.resolve,W.reject).finally(()=> {this.W=null})):M.ZJ()}else M.ZJ()}vY(){this.W&&(this.W.reject(),this.W=null); this.B();super.vY()}};g.iM.prototype.O=Ma(63);g.iM.prototype.A=Ma(62);g.h0=class extends g.iM{constructor(M,W,b){super(M);this.videoData=W;this.audioTrack=b;this.V=null;this.D=!1;this.X=W.j$;this.sY=W.If;this.D=g.sb(W)}S(M){if(this.audioTrack){for(const W of this.audioTrack.captionTracks)g.ij(this.Z,W);this.audioTrack.Z&&g.ij(this.yz,this.audioTrack.Z)}this.ZJ(M,this.videoData.videoId)}C(M,W){const b=M.WF(),T={fmt:W};if(W==="srv3"||W==="3"||W==="json3")g.EL()?Object.assign(T,{xorb:2,xobt:1,xovt:1}):Object.assign(T,{xorb:2,xobt:3,xovt:3});M.translationLanguage&&(T.tlang= g.xj(M));this.D&&(T.xosf="1");Object.assign(T,this.o0.G().Z);return k7(b,T)}B(){this.V&&this.V.abort()}};g.h0.prototype.A=Ma(61);g.lBV=new Map;g.A0=class extends g.iM{constructor(M,W,b,T,q,X){super(M);this.videoId=b;this.ME=q;this.eventId=X;this.gK={};this.V=null;M=T||g.UX(W).hl||"";M=M.split("_").join("-");this.D=k7(W,{hl:M})}S(M){let W=this.D;const b={type:"list",tlangs:1,v:this.videoId,vssids:1};this.ME&&(b.asrs=1);W=k7(W,b);this.B();this.V=g.Pe(W,{format:"RAW",onSuccess:T=>{this.V=null;if((T=T.responseXML)&&T.firstChild){var q=T.getElementsByTagName("track");for(var X=0;Xthis.W, NtK:()=>this.A}; this.gK=this.L.j("web_player_defer_modules");this.Tm=new Map;g.t(this,this.D);this.D.J(M,"videodatachange",this.onVideoDataChange)}createSubtitlesModuleIfNeeded(){NqJ(this)&&dm(this,"captions");return!!g.uj(this)}rC(){return this.L.getVideoData().rC()}vS(){return this.L.getVideoData().vS()}X(){const M=this.Tm.get("heartbeat");dm(this,"heartbeat",!1,!0,this.X);!M&&this.Tm.has("heartbeat")&&this.L.publish("offlineslatestatechange")}Z(){dm(this,"annotations_module",!0,void 0,this.Z);const M=this.Tm.get("annotations_module"); if(M)for(const W in this.B){if(!this.B.hasOwnProperty(W))continue;const b=W;M.subscribe(b,this.B[b])}}S(){if(!this.Tm.get("ad"))try{cT(this)?dm(this,"ad",!1,!0,this.S):or(this,"ad")}catch(M){or(this,"ad"),g.O(M)}}r0(){return this.V}Jv(){const M={},W=g.uj(this);W&&Object.assign(M,W.Jv());return M}Yv(M,W){Object.assign(this.V,M||null);Object.assign(this.EF,W||null)}EL(){if(g.WQ(this.L.G()))return this.Tm.get("unplugged")}onVideoDataChange(){const M=this.L.getVideoData();this.L.j("enable_wn_infocards")&& M.q1()&&!g.Sc(this)&&this.Z()}vY(){super.vY();wm(this,1,!0);for(const [M,W]of Object.entries(AVS)){const b=M;this.C.has(W)&&xT.delete(b)}this.C.clear()}},AVS={ad:"ad.js",annotations_module:"annotations_module.js",asmjs:"asmjs.js",creatorendscreen:"annotations_module.js",embed:"embed.js",endscreen:"endscreen.js",heartbeat:"heartbeat.js",kids:"kids.js",remote:"remote.js",miniplayer:"miniplayer.js",offline:"offline.js",captions:"captions.js",unplugged:"unplugged.js",ux:"ux.js",webgl:"webgl.js",ypc:"ypc.js"}, iEJ={ad:["ad"],annotations_module:[],asmjs:[],creatorendscreen:[],embed:[],endscreen:[],heartbeat:["heartbeat"],kids:[],remote:["mdx"],miniplayer:[],offline:[],captions:[],unplugged:[],ux:[],webgl:["webgl"],ypc:[]},PxL="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc unplugged ux".split(" ");var tp4=class extends g.b9{constructor(M,W,b,T){super();this.target=M;this.api=W;this.wx=b;this.V=0;this.C=!1;this.A=new g.xU(NaN,NaN);this.Z=new g.Cq(this);this.yz=this.B=this.W=null;g.t(this,this.Z);W=T?g.TO(this.api.G().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.TO(this.api.G().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.X=new g.d9(()=>{$K(this,1,!1)},W,this); g.t(this,this.X);this.gK=new g.d9(()=>{$K(this,2,!1)},W,this); g.t(this,this.gK);this.O=new g.d9(()=>{$K(this,2048,!1)},W,this); g.t(this,this.O);this.Zs=new g.d9(()=>{$K(this,512,!1)},W,this); g.t(this,this.Zs);this.lV=3E3;T||(this.B=this.Z.J(M,"mouseover",this.Yw),this.Z.J(M,"mousemove",this.An),this.Z.J(M,"mouseleave",this.wK));this.api.j("web_player_enable_fullscreen_grid_components")&&this.Z.J(M,"wheel",this.Ds,this,!0);AW?this.Z.J(M,"keypress",this.jT):this.Z.J(M,"focusin",this.Lp);this.S=this.Z.J(M,"mousedown",this.sY);this.D=this.Z.J(M,"touchstart",this.BY,void 0,!0);$K(this,640,!0)}An(M){M=new g.xU(M.pageX,M.pageY);if(!FA(M,this.A)){let W=2;this.C&&(W|=8);this.A=M;$K(this,W,!0)}}Ds(){$K(this, 2048,!0)}wK(M){this.C&&$K(this,8,!0);if(this.api.j("allow_autohide_on_paused_videos")){M=M.relatedTarget;var W=this.target instanceof HTMLElement?this.target:this.target.element;if(M instanceof Element&&(W=W.getBoundingClientRect(),M=M.getBoundingClientRect(),M.top>=W.top&&M.right<=W.right&&M.bottom<=W.bottom&&M.left>=W.left))return}$K(this,2,!1)}Yw(M){const W=new g.xU(M.pageX,M.pageY);FA(W,this.A)||(this.A=W,(M=M.target)&&this.wx(M)&&($K(this,4,!0),this.Z.fN(this.B),this.B=this.Z.J(this.target,"mouseover", this.Qh),this.W=this.Z.J(this.target,"mouseout",this.Qh)))}Qh(M){M=M.relatedTarget;M&&this.wx(M)||(this.A=new g.xU(NaN,NaN),dva(this))}jT(){$K(this,1,!0)}Lp(M){M=M.target;M instanceof Element&&!(M.tabIndex>0)||$K(this,1,!0)}sY(){this.C=!0;this.Z.fN(this.S);this.S=this.Z.J(document,"mouseup",this.xk)}xk(){this.C=!1;$K(this,8,!1);this.Z.fN(this.S);this.S=this.Z.J(this.target,"mousedown",this.sY)}BY(M){if(M=(M=M.changedTouches)&&M[0])this.yz=M.identifier,this.Z.fN(this.D),this.D=this.Z.J(this.target, "touchend",this.MK,void 0,!0),$K(this,1024,!0)}MK(M){let W;if(M=M.changedTouches)for(let b=0;b{this.Z.Wr()}),this.V.J(this.api,"videoplayerreset",()=>{this.Z.Wr()})); super.show()}hide(){this.V&&this.V.V();super.hide()}XT(){this.Z.Wr()}onStateChange(){this.Z.Wr()}A(){this.Z.Wr()}onReset(){this.fade.stop();this.hide();this.Z.Wr()}zv(){const M=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(M.isPlaying()||M.isPaused()))var W=!0;else(W=this.api.lk().Tm.get("ypc"))&&W.Cm?W=!0:(W=this.api.G(),W=M.Z(2)&&g.vf(this.api)&&W.Ic?!0:!1);W?(W=!0,this.B.hide()):(this.B.show(),W=M.isCued()&&this.api.getPresentingPlayerType()!==2||M.Z(2)&&!g.vf(this.api)&& !this.api.zZ()||M.Z(1024)?!0:!1);const b=this.api.getVideoData();W&&!b.Cs?(this.fade.show(),oRt(this,this.api.getPlaylist(),b)):(this.fade.hide(),M.Z(1)||this.fade.stop())}};var QZs; g.NVB=class extends g.w{constructor(M){super({K:"div",rK:["ytp-error"],Y:{role:"alert"},U:[{K:"div",N:"ytp-error-content",U:[{K:"div",N:"ytp-error-icon-container",U:[{K:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},U:[{K:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{K:"path",Y:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{K:"div",N:"ytp-error-content-wrap",U:[{K:"div", N:"ytp-error-content-wrap-reason",R0:"{{content}}"},{K:"div",N:"ytp-error-content-wrap-subreason",R0:"{{subreason}}"}]}]}]});this.api=M;this.keys=[];this.B=!1;M.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Ta)}resize(){}V(M){this.B=!1;cVG(this);var W=M.q8,b=this.api.G();W!=="GENERIC_WITHOUT_LINK"||b.C?W==="TOO_MANY_REQUESTS"?(b=this.api.getVideoData(),this.setContent(W0(this,"TOO_MANY_REQUESTS_WITH_LINK",b.Kx(),void 0,void 0,void 0,!1))):W!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"|| b.C?this.api.G().j("html5_enable_bandaid_error_screen")&&W==="HTML5_SPS_UMP_STATUS_REJECTED"&&!b.C?(b=b.hostLanguage,M="//support.google.com/youtube?p=videoError",b&&(M=g.JM(M,{hl:b})),this.setContent(W0(this,"HTML5_SPS_UMP_STATUS_REJECTED",M))):this.api.G().j("enable_adb_handling_in_sabr")&&W==="BROWSER_OR_EXTENSION_ERROR"&&!b.C?(b=b.hostLanguage,M="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",b&&(M=g.JM(M,{hl:b})),this.setContent(W0(this,"BROWSER_OR_EXTENSION_ERROR", M))):this.setContent(g.bZ(M.errorMessage)):this.setContent(W0(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(M=b.hostLanguage,W="//support.google.com/youtube/?p=player_error1",M&&(W=g.JM(W,{hl:M})),this.setContent(W0(this,"GENERIC_WITH_LINK_AND_CPN",W,!0)),b.vP&&!b.A&&gRS(this,T=>{if(g.OA(T,this.api,!aU(this.api.G()))){const q={as3:!1,html5:!0,player:!0,cpn:this.api.getVideoData().clientPlaybackNonce};T=this.api;g.Vc(T,"onFeedbackArticleRequest", {articleId:3037019,helpContext:"player_error",productData:q});T.isFullscreen()&&T.toggleFullscreen()}})); if(this.B){const T=this.hn("ytp-error-link");T&&(this.api.createClientVe(T,this,216104),this.api.logVisibility(T,!0),gRS(this,()=>{this.api.logClick(T)}))}}}; QZs=/([^<>]+)<\/a>/;var HJ$=class extends g.w{constructor(M){super({K:"div",rK:["ytp-overlays-container"],U:[{K:"div",N:"ytp-overlay-top-left"},{K:"div",N:"ytp-overlay-top-right"},{K:"div",N:"ytp-overlay-bottom-left"},{K:"div",N:"ytp-overlay-bottom-right"}]});this.B=this.hn("ytp-overlay-top-left");this.A=this.hn("ytp-overlay-top-right");this.Z=this.hn("ytp-overlay-bottom-left");this.V=this.hn("ytp-overlay-bottom-right");g.Im(M,this.element,4)}pT(M,W,b=!1){switch(W){case 1:T8(this,M,this.B,b);break;case 2:T8(this,M,this.A, b);break;case 3:T8(this,M,this.Z,b);break;case 4:T8(this,M,this.V,b)}}};var fBp=class extends g.w{constructor(M){super({K:"div",N:"ytp-paid-content-overlay",Y:{"aria-live":"assertive","aria-atomic":"true",["data-overlay-order"]:"5"}});this.L=M;this.videoId=null;this.A=!1;this.innertubeCommand=this.Np=this.Z=null;const W=M.G();W.experiments.hT().Z.UY(ElL)?(this.V=new g.d9(()=>{this.Nd()},5E3,this),g.t(this,this.V)):this.V=null; M.j("enable_new_paid_product_placement")&&!g.kj(W)?(this.B=new g.w({K:"a",N:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},U:[{K:"div",N:"ytp-paid-content-overlay-indicator"},{K:"div",N:"ytp-paid-content-overlay-icon",R0:"{{icon}}"},{K:"div",N:"ytp-paid-content-overlay-text",R0:"{{text}}"},{K:"div",N:"ytp-paid-content-overlay-chevron",R0:"{{chevron}}"}]}),this.J(this.B.element,"click",this.onClick)):this.B=new g.w({K:"div",rK:["ytp-button","ytp-paid-content-overlay-text"],R0:"{{text}}"}); this.fade=new g.Ol(this.B,250,!1,100);g.t(this,this.B);this.B.cY(this.element);g.t(this,this.fade);this.L.createServerVe(this.element,this);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"presentingplayerstatechange",this.S)}onClick(M){this.innertubeCommand?(g.q8(this.L,"innertubeCommand",this.innertubeCommand),M.preventDefault()):g.OA(M,this.L,!0);this.L.logClick(this.element)}onVideoDataChange(M,W){this.V&&M==="newdata"&&this.V.stop();wuQ(this,W);this.Np&&pup(this,this.Np)}S(M){const W= this.L.getVideoData();this.videoId!==W.videoId&&wuQ(this,W);this.Z&&pup(this,M.state);this.Np=M.state}Nd(){this.fade.show();this.Z?.start();this.L.publish("paidcontentoverlayvisibilitychange",!0);this.L.logVisibility(this.element,!0)}Lv(){this.fade.hide();this.L.publish("paidcontentoverlayvisibilitychange",!1);this.L.logVisibility(this.element,!1)}};var Rc7=class extends g.w{constructor(M){super({K:"div",N:"ytp-spinner",U:[dC(),{K:"div",N:"ytp-spinner-message",R0:"Si la reproducci\u00f3n no empieza en breve, prueba a reiniciar el dispositivo."}]});this.api=M;this.message=this.hn("ytp-spinner-message");this.Z=new g.d9(this.show,500,this);g.t(this,this.Z);this.J(M,"presentingplayerstatechange",this.onStateChange);this.J(M,"playbackstalledatstart",this.V);this.LN(M.getPlayerStateObject())}hide(){this.Z.stop();this.message.style.display="none";super.hide()}onStateChange(M){this.LN(M.state)}LN(M){(M.Z(128)|| this.api.wu()||this.api.j("web_watch_enable_multiview_manager")&&this.api.getVideoData()?.RV()?0:M.Z(16)||M.Z(1))?this.Z.start():this.hide()}V(){this.message.style.display="block"}};var r79=class extends eP{constructor(M){const W=[{K:"div",rK:["ytp-unmute-icon"],U:[M.G().experiments.FX("delhi_modern_web_player_icons")?{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",N:"ytp-svg-fill",Y:{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"}}]}: {K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {K:"div",rK:["ytp-unmute-text"],R0:"Activar el sonido"}];W.push({K:"div",rK:["ytp-unmute-box"],U:[]});super(M,{K:"button",rK:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],U:[{K:"div",N:"ytp-unmute-inner",U:W}]},100);this.Z=this.clicked=!1;this.api=M;this.api.createClientVe(this.element,this,51663);this.J(M,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.J(M,"presentingplayerstatechange",this.by);this.listen("click",this.onClick,this);M=M.isMutedByMutedAutoplay()&& !g.tP(this.api.G());this.eW(M);M&&Ypq(this);this.V=M}onMutedAutoplayChange(M){this.V&&(M?(Ypq(this),this.Nd()):(this.Z&&this.logClick(),this.Lv()))}by(M){this.api.isMutedByMutedAutoplay()&&M.QN(2)&&this.Lv()}onClick(){this.api.unMute();this.logClick()}logClick(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))}};g.IG=class extends g.Cq{constructor(M){super();this.api=M;this.pC=!1;this.R2=null;this.jZ=!1;this.Ay=null;this.WA=this.OR=!1;this.UG=this.XE=null;this.GQ=NaN;this.kG=this.rV=!1;this.tA=0;this.kR=[];this.BX=!1;this.dl={height:0,width:0};this.dH=480;this.s0=["ytp-player-content","html5-endscreen","ytp-overlay"];this.Ot={l9:!1};this.Cx=null;const W=M.G(),b=M.qe();this.dl=M.getPlayerSize();this.lW=new g.d9(this.wN,0,this);g.t(this,this.lW);W.disableOrganicUi||(this.J2=new g.IBE(M),g.t(this,this.J2),g.Im(M, this.J2.element,4));this.api.j("web_player_overlay_positioned_layout")&&(this.Cx=new HJ$(this.api),g.t(this,this.Cx));if($1J(this)){var T=new Rc7(M);g.t(this,T);T=T.element;g.Im(M,T,4)}var q=M.getVideoData();this.W3=new tp4(b,M,X=>this.wx(X),W.U1); g.t(this,this.W3);this.W3.subscribe("autohideupdate",this.d5,this);pk(this.W3);if(!W.disablePaidContentOverlay){const X=new fBp(M);g.t(this,X);this.Cx?this.Cx.pT(X.element,g.kj(W)?3:1):g.Im(M,X.element,4)}this.gB=new r79(M);g.t(this,this.gB);g.Im(this.api,this.gB.element,2);this.p_=this.api.isMutedByMutedAutoplay();this.J(M,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.kU=new g.d9(this.EE,200,this);g.t(this,this.kU);this.zz=q.videoId;this.jc=new g.d9(()=>{this.tA=0},350); g.t(this,this.jc);this.OF=new g.d9(()=>{this.kG||jP(this)},350,this); g.t(this,this.OF);q=M.getRootNode();q.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube");switch(W.color){case "white":g.pY(q,"ytp-color-white")}this.J(M,"appresize",this.XT);this.J(M,"presentingplayerstatechange",this.by);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"videoplayerreset",this.OD);this.J(M,"autonavvisibility",()=>{this.y9()}); this.J(M,"sizestylechange",()=>{this.y9()}); this.J(b,"click",this.D6,this);this.J(b,"dblclick",this.eL,this);this.J(b,"mousedown",this.Y6,this);W.EY&&(this.J(b,"gesturechange",this.JI,this),this.J(b,"gestureend",this.G7,this));this.ZZ=[b.Yi];this.J2&&this.ZZ.push(this.J2.element);T&&this.ZZ.push(T);this.api.j("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(b.element,this,247482),this.api.logVisibility(b.element,!0))}init(){const M=this.api,W=M.getPlayerStateObject();this.dl=M.getPlayerSize();this.Rg(W);this.y9();this.XT(); this.api.publish("basechromeinitialized",this);this.Uo()&&this.api.publish("standardControlsInitialized")}onVideoDataChange(M,W){var b=this.zz!==W.videoId;if(b||M==="newdata")M=this.api,M.isFullscreen()||(this.dl=M.getPlayerSize());b&&(this.zz=W.videoId,b=this.W3,b.lV=3E3,$K(b,512,!0),this.y9());this.api.j("web_render_jump_buttons")&&W.showSeekingControls&&(this.dH=572)}OD(){this.onVideoDataChange("newdata",this.api.getVideoData())}Yo(){const M=this.api.Xp()&&this.api.Uk(),W=this.api.l5();return this.jZ|| M||this.p_||W}hh(){const M=!this.Yo();g.H(this.api.getRootNode(),"ytp-menu-shown",!M)}wx(M){try{if(!g.ES(this.api.getRootNode(),M))return!1}catch(W){return!1}for(;M&&!US(M);)M=M===this.api.getRootNode()?null:M.parentElement||null;return!!M}d5(M){const W=this.api.getRootNode();g.H(W,"ytp-autohide",M);g.H(W,"ytp-autohide-active",!0);this.lW.start(M?250:100);M&&(this.OR=!1,g.Mw(W,"ytp-touch-mode"));this.WA=!M;this.api.ou(!M);this.api.j("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate", M)}wN(){const M=this.api.getRootNode();g.H(M,"ytp-autohide-active",!1)}nw(){this.kG=!0}Ey(M){if(this.api.G().j("player_doubletap_to_seek")||this.api.G().W)this.kG=!1,this.UG&&this.fN(this.UG),this.tA===0&&G8(this,M)?(this.lE(),this.OF.start(),this.UG=this.J(this.api.qe(),"touchmove",this.nw,void 0,!0)):this.OF.stop();WCl(this)&&G8(this,M)&&!this.api.G().W&&jP(this,M);var W=this.gB.T4();if(!g.tP(this.api.G())&&oh&&VE(this,M))W&&M.preventDefault();else if(this.OR=!0,g.pY(this.api.getRootNode(),"ytp-touch-mode"), this.W3.sN(),this.api.G().j("player_doubletap_to_seek")||this.api.G().W)if(W=this.api.getPlayerStateObject(),!(!this.api.jO()||W.Z(2)&&g.vf(this.api)||W.Z(64))){W=Date.now()-this.GQ;this.tA+=1;if(W<=350){if(XG(this,M))return;this.rV=!0;W=this.api.getPlayerSize().width/3;var b=this.api.getRootNode().getBoundingClientRect();const T=M.targetTouches[0].clientX-b.left;b=M.targetTouches[0].clientY-b.top;const q=(this.tA-1)*10;T>0&&TW*2&&T=650,T=M.width<528;this.W3.resize();if(this.api.j("web_player_use_screen_width_for_big_mode")){const q=M.width>=(g.TO(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);g.H(W,"ytp-big-mode",q)}g.H(W,"ytp-fullscreen",this.api.isFullscreen());g.H(W,"ytp-large-width-mode",b);this.api.j("delhi_modern_web_player")?g.H(W, "ytp-xsmall-width-mode",T):g.H(W,"ytp-small-mode",this.Wx());g.H(W,"ytp-tiny-mode",this.cz());g.H(W,"ytp-big-mode",this.sX());this.Ay&&this.Ay.resize(M)}by(M){this.Rg(M.state);this.y9()}zp(){var M=!!this.zz&&!this.api.h_()&&!this.BX,W=this.api.getPresentingPlayerType()===2,b=this.api.G();if(W)return b=zy(this.api.lk()),M&&(b&&b.player?M=(M=b.player.getVideoData({playerType:2}))?M.isListed&&!g.Tb(b.player.G()):!1:(za("showInfoBarDuringAd: this is null"),M=!1)),M;W=b.j("web_player_imax_theater_mode")&& this.api.KT()&&!this.api.isInline();return M&&(b.Ek||W||this.api.isFullscreen()||b.dS)}y9(){const M=this.zp();this.R2!==M&&(this.R2=M,g.H(this.api.getRootNode(),"ytp-hide-info-bar",!M))}Rg(M){const W=M.isCued()||this.api.V1()&&this.api.getPresentingPlayerType()!==3;W!==this.isCued&&(this.isCued=W,this.XE&&this.fN(this.XE),this.XE=this.J(this.api.qe(),"touchstart",this.Ey,void 0,W));var b=this.W3,T=M.isPlaying()&&!M.Z(32)||this.api.KS();$K(b,128,!T);b=this.W3;T=this.api.getPresentingPlayerType()=== 3;$K(b,256,T);b=this.api.getRootNode();M.Z(2)?T=[Kq.ENDED]:(T=[],M.Z(8)?T.push(Kq.PLAYING):M.Z(4)&&T.push(Kq.PAUSED),M.Z(1)&&!M.Z(32)&&T.push(Kq.BUFFERING),M.Z(32)&&T.push(Kq.SEEKING),M.Z(64)&&T.push(Kq.UNSTARTED));g.mA(this.kR,T)||(g.WN(b,this.kR),this.kR=T,g.Yc(b,T));T=this.api.G();const q=M.Z(2);a:{var X=this.api.G();const G=X.controlsType;switch(G){case "2":case "0":X=!1;break a}X=G==="3"&&!M.Z(2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:y$(zy(this.api.lk())))||this.api.l5()||g.tP(X)&& this.api.getPresentingPlayerType()===2?!1:!0}g.H(b,"ytp-hide-controls",!X);g.H(b,"ytp-native-controls",T.controlsType==="3"&&!W&&!q&&!this.p_);M.Z(128)&&!g.tP(T)?(this.Ay||(this.Ay=new g.NVB(this.api),g.t(this,this.Ay),g.Im(this.api,this.Ay.element,4)),this.Ay.V(M.Iw),this.Ay.show()):this.Ay&&(this.Ay.dispose(),this.Ay=null)}Cr(){return this.api.Xp()&&this.api.Uk()?(this.api.jJ(!1,!1),!0):this.api.h_()?(g.Ke(this.api,!0),!0):!1}onMutedAutoplayChange(M){this.p_=M;this.hh()}sX(){return!1}Wx(){return!this.sX()&& (this.api.getPlayerSize().width{this.element.style.margin="0"},250); this.onClickCommand=this.V=null;g.t(this,this.fade);g.t(this,this.W);g.t(this,this.C);g.t(this,this.Zs);M.G().j("player_new_info_card_format")?(g.pY(M.getRootNode(),"ytp-cards-teaser-dismissible"),this.J(this.hn("ytp-cards-teaser-close-button"),"click",this.yz),this.J(this.hn("ytp-cards-teaser-info-icon"),"click",this.D),this.J(this.hn("ytp-cards-teaser-label"),"click",this.D)):this.listen("click",this.D);this.J(W.element,"mouseover",this.O);this.J(W.element,"mouseout",this.X);this.J(M,"cardsteasershow", this.MK);this.J(M,"cardsteaserhide",this.Lv);this.J(M,"cardstatechange",this.sY);this.J(M,"presentingplayerstatechange",this.sY);this.J(M,"appresize",this.S);this.J(M,"onShowControls",this.S);this.J(M,"onHideControls",this.lV);this.listen("mouseenter",this.BY)}sY(){this.L.Xp()&&this.L.Uk()&&this.T4()&&this.Lv()}D(){this.Lv();!this.L.Xp()&&this.L.G().j("enable_error_corrections_infocards_icon_web")&&this.Lz.Lv();g.M9("iv-teaser-clicked",this.Z!=null);this.onClickCommand?g.q8(this.L,"innertubeCommand", this.onClickCommand):this.L.getVideoData()?.Ic()||this.L.jJ(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}BY(){g.M9("iv-teaser-mouseover");this.Z&&this.Z.stop()}MK(M){this.L.G().j("player_new_info_card_format")&&!g.tP(this.L.G())?this.Lz.Lv():this.L.G().j("enable_error_corrections_infocards_icon_web")&&this.Lz.Nd();this.Z||!M||this.L.Uk()||this.B&&this.B.isActive()||(this.Nd(M),g.M9("iv-teaser-shown"))}Nd(M){this.onClickCommand=M.onClickCommand;this.updateValue("text",M.teaserText);this.element.setAttribute("dir", g.Dj(M.teaserText));this.fade.show();if(this.L.G().j("player_new_info_card_format")){const W=this.hn("ytp-cards-teaser-info-icon"),b=this.hn("ytp-cards-teaser-channel-avatar");b&&M.Dj&&g.yN(M.Dj)&&(b.src=M.Dj,b.style.display="block",W.style.display="none")}this.B=new g.d9(function(){g.pY(this.L.getRootNode(),"ytp-cards-teaser-shown");this.L.j("player_new_info_card_format")&&!g.tP(this.L.G())&&this.Lz.Lv();this.S()},0,this); this.B.start();this.Lz.p9(!1);this.Z=new g.d9(this.Lv,580+M.durationMs,this);this.Z.start();this.A.push(this.listen("mouseover",this.O,this));this.A.push(this.listen("mouseout",this.X,this))}S(){if(!this.L.G().j("player_new_info_card_format")&&g.tP(this.L.G())&&this.Ta){const M=this.Lz.element.offsetLeft,W=g.wP("ytp-cards-button-icon"),b=this.L.isFullscreen()?54:36;if(W){const T=M+W.offsetLeft;this.element.style.marginRight=this.Lz.element.offsetParent.offsetWidth-M-W.offsetLeft-b+"px";this.element.style.marginLeft= T+"px"}}}lV(){g.tP(this.L.G())&&this.L.Wx()&&this.Ta&&this.Zs.start()}O(){this.C.stop();this.Z&&this.Z.isActive()&&this.W.start()}X(){this.W.stop();this.Z&&!this.Z.isActive()&&this.C.start()}xk(){this.Z&&this.Z.stop()}An(){this.Lv()}yz(){this.Lv()}Lv(){!this.Z||this.V&&this.V.isActive()||(g.M9("iv-teaser-hidden"),this.fade.hide(),g.Mw(this.L.getRootNode(),"ytp-cards-teaser-shown"),this.V=new g.d9(function(){for(const M of this.A)this.fN(M);this.A=[];this.Z&&(this.Z.dispose(),this.Z=null);this.Lz.p9(!0); !this.L.Xp()&&this.L.G().j("enable_error_corrections_infocards_icon_web")&&this.Lz.Lv()},330,this),this.V.start())}T4(){return this.Ta&&this.fade.state!==4}vY(){const M=this.L.getRootNode(); M&&g.Mw(M,"ytp-cards-teaser-shown");g.Qb(this.B,this.V,this.Z);super.vY()}};var DG={BUTTON:"ytp-button",TITLE_NOTIFICATIONS:"ytp-title-notifications",TITLE_NOTIFICATIONS_ON:"ytp-title-notifications-on",TITLE_NOTIFICATIONS_OFF:"ytp-title-notifications-off",NOTIFICATIONS_ENABLED:"ytp-notifications-enabled"},EgS=class extends g.w{constructor(M){super({K:"button",rK:[DG.BUTTON,DG.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{K:"div",N:DG.TITLE_NOTIFICATIONS_ON,Y:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo", "aria-label":"Notificaciones de suscripciones activadas"},U:[g.XIy()]},{K:"div",N:DG.TITLE_NOTIFICATIONS_OFF,Y:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},U:[{K:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{K:"path",Y:{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=M;this.Z=!1;M.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo")}onClick(){this.api.logClick(this.element);const M=!this.Z;this.updateValue("label",M?"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo":"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo");this.updateValue("pressed",M);j2y(this,M)}};g.Uq("yt.pubsub.publish",g.M9);g.nA=class extends g.w{constructor(M,W,b,T,q,X,G,V,J,B,D,a){M=M.charAt(0)+M.substring(1).toLowerCase();b=b.charAt(0)+b.substring(1).toLowerCase();if(W==="0"||W==="-1")W=null;if(T==="0"||T==="-1")T=null;const E=D.G(),n=E.userDisplayName&&g.Th(E);super({K:"div",rK:["ytp-button","ytp-sb"],U:[{K:"div",N:"ytp-sb-subscribe",Y:n?{title:D.G().j("player_tooltip_data_title_killswitch")?g.tZ("Suscribirse como $USER_NAME",{USER_NAME:E.userDisplayName}):"","data-tooltip-title":g.tZ("Suscribirse como $USER_NAME", {USER_NAME:E.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":LL(E),"data-tooltip-opaque":String(g.tP(E)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},U:[{K:"div",N:"ytp-sb-text",U:[{K:"div",N:"ytp-sb-icon"},M]},W?{K:"div",N:"ytp-sb-count",R0:W}:""]},{K:"div",N:"ytp-sb-unsubscribe",Y:n?{title:D.j("player_tooltip_data_title_killswitch")?g.tZ("Te has suscrito como $USER_NAME",{USER_NAME:E.userDisplayName}):"","data-tooltip-title":g.tZ("Te has suscrito como $USER_NAME", {USER_NAME:E.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":LL(E),"data-tooltip-opaque":String(g.tP(E)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},U:[{K:"div",N:"ytp-sb-text",U:[{K:"div",N:"ytp-sb-icon"},b]},T?{K:"div",N:"ytp-sb-count",R0:T}:""]}],Y:{"aria-live":"polite"}});this.channelId=G;this.L=D;this.B=a;const C=this.hn("ytp-sb-subscribe"),l=this.hn("ytp-sb-unsubscribe");X&&g.pY(this.element,"ytp-sb-classic");if(q){V?this.Z(): this.V();var N=()=>{if(E.sY){var f=this.channelId;if(J||B){var x={c:f};var A;g.$b.isInitialized()&&(A=iog(x));x=A||"";if(A=D.getVideoData())if(A=A.subscribeCommand){var qa=D.M1();qa?(uA(qa,A,{botguardResponse:x,feature:J}),g.q8(D,"SUBSCRIBE",f)):g.O(Error("No innertube service available when updating subscriptions."))}else g.O(Error("No subscribe command in videoData."));else g.O(Error("No video data available when updating subscription."))}l.focus();l.removeAttribute("aria-hidden");C.setAttribute("aria-hidden", "true")}else af(g.BQ(this.L.G()),"sb_button",this.A)},R=()=>{var f=this.channelId; if(J||B){var x=D.getVideoData();uA(D.M1(),x.unsubscribeCommand,{feature:J});g.q8(D,"UNSUBSCRIBE",f)}C.focus();C.removeAttribute("aria-hidden");l.setAttribute("aria-hidden","true")}; this.J(C,"click",N);this.J(l,"click",R);this.J(C,"keypress",f=>{f.keyCode===13&&N(f)}); this.J(l,"keypress",f=>{f.keyCode===13&&R(f)}); this.J(D,"SUBSCRIBE",this.Z);this.J(D,"UNSUBSCRIBE",this.V);this.B&&n&&(Fha(D),Ce(D,C,this),Ce(D,l,this))}else g.pY(C,"ytp-sb-disabled"),g.pY(l,"ytp-sb-disabled")}A(){window.location.reload()}Z(){g.pY(this.element,"ytp-sb-subscribed")}V(){g.Mw(this.element,"ytp-sb-subscribed")}};var hc4=class extends g.w{constructor(M){super({K:"div",N:"ytp-title-channel",U:[{K:"div",N:"ytp-title-beacon"},{K:"a",N:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:M.G().X,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",N:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{K:"div",N:"ytp-title-expanded-heading",U:[{K:"div",N:"ytp-title-expanded-title",U:[{K:"a",R0:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:M.G().X,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",N:"ytp-title-expanded-subtitle",R0:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});this.api=M;this.channel=this.hn("ytp-title-channel");this.V=this.hn("ytp-title-channel-logo");this.channelName=this.hn("ytp-title-expanded-title");this.D=this.hn("ytp-title-expanded-overlay");this.B=this.Z=this.subscribeButton=null;this.A=!1;M.createClientVe(this.V,this,36925);M.createClientVe(this.channelName,this,37220);g.tP(this.api.G())&& D1t(this);this.J(M,"videodatachange",this.zv);this.J(M,"videoplayerreset",this.zv);this.J(this.channelName,"click",W=>{this.api.logClick(this.channelName);g.cX(window,E7(this));W.preventDefault()}); this.J(this.V,"click",this.O);this.zv()}O(M){this.api.logClick(this.V);const W=this.api.G();W.V||W.xk?a2P(this)&&(this.isExpanded()?this.S():this.C()):g.cX(window,E7(this));M.preventDefault()}W(){BSl(this);this.channel.classList.remove("ytp-title-expanded")}isExpanded(){return this.channel.classList.contains("ytp-title-expanded")}C(){if(a2P(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y", "false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));const M=this.api.getVideoData();this.Z&&M.zm&&M.subscribed&&(this.Z.show(),this.api.logVisibility(this.Z.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}S(){this.updateValue("flyoutUnfocusable", "true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()}zv(){const M=this.api.G();this.eW(!this.api.isEmbedsShortsMode());const W=this.api.getVideoData(),b=this.api.G(),T=this.api.getVideoData();this.A=!1;const q=!!T.videoId&&!!T.xk&&!!T.profilePicture;this.api.getPresentingPlayerType()===2?this.A=q&&!!T.isListed&&!!T.author:g.tP(b)&&(this.A=q&&!T.uN&&!b.B&& !(b.W&&this.api.getPlayerSize().width<200));ngs(this,W.profilePicture,g.tP(M)?W.expandedTitle:W.author);this.subscribeButton&&(this.subscribeButton.channelId=W.YJ);this.updateValue("expandedTitle",W.expandedTitle);this.updateValue("expandedSubtitle",W.expandedSubtitle)}dG(M){super.dG(M);this.api.logVisibility(this.V,this.A&&M)}};var zo=class extends g.M3{constructor(M){super(g.FS({"aria-haspopup":"true"}),M);this.listen("keydown",this.oV)}oV(M){M.defaultPrevented||M.keyCode!==39||(this.element.click(),M.preventDefault())}};var A7I=class extends g.w{show(){super.show();this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}hide(){super.hide();this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}constructor(M,W){super({K:"div",N:"ytp-user-info-panel",Y:{"aria-label":"Informaci\u00f3n del usuario"},U:M.G().sY?[{K:"div",N:"ytp-user-info-panel-icon",R0:"{{icon}}"},{K:"div",N:"ytp-user-info-panel-content",U:[{K:"div", N:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},R0:"{{watchingAsUsername}}"},{K:"div",N:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},R0:"{{watchingAsEmail}}"}]}]:[{K:"div",N:"ytp-user-info-panel-icon",R0:"{{icon}}"},{K:"div",N:"ytp-user-info-panel-content",U:[{K:"div",U:[{K:"text",Y:{tabIndex:"{{userInfoFocusable}}"},R0:"Sesi\u00f3n cerrada"}]},{K:"div",N:"ytp-user-info-panel-login",U:[{K:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"}, R0:M.G().d9?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.o0=M;this.sourceElement=W;M.G().sY||M.G().d9||this.J(this.hn("ytp-user-info-panel-login"),"click",this.V);this.closeButton=new g.w({K:"button",rK:["ytp-collapse","ytp-button"],Y:{title:"Cerrar"},U:[g.l9()]});this.closeButton.cY(this.element);g.t(this,this.closeButton);this.J(window,"blur",this.hide);this.J(document,"click",this.Z);this.zv()}Z(M){const W=g2(M),b=g.ES(this.closeButton.element,W),T=g.ES(this.element,W);M=this.sourceElement&& g.ES(this.sourceElement,W)&&g.PF(M);W&&(T||M)&&!b||this.hide()}V(){af(g.BQ(this.o0.G()),"user_info_panel",()=>{window.location.reload()})}zv(){const M=this.o0.G(),W={USER_NAME:M.userDisplayName, USER_EMAIL:M.Px};this.updateValue("icon",JXL());this.updateValue("watchingAsUsername",g.tZ("Has iniciado sesi\u00f3n como $USER_NAME",W));M.Px?this.updateValue("watchingAsEmail",g.tZ("($USER_EMAIL)",W)):this.updateValue("watchingAsEmail","")}};var zcc=class extends g.Hv{constructor(M,W,b){super(M);this.tT=W;this.xg=b;this.getVideoUrl=new zo(6);this.q6=new zo(5);this.k5=new zo(4);this.qd=new zo(3);this.qI=new g.M3(g.FS({href:"{{href}}",target:this.L.G().X},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.M3(g.FS(),1,"Estad\u00edsticas avanzadas");this.G2=new g.YV({K:"div",rK:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},R0:"{{text}}"});this.YA=new N2(this.L,this.G2);this.ZF= this.O7=null;g.tP(this.L.G())&&(this.closeButton=new g.w({K:"button",rK:["ytp-collapse","ytp-button"],Y:{title:"Cerrar"},U:[g.l9()]}),g.t(this,this.closeButton),this.closeButton.cY(this.element),this.closeButton.listen("click",this.fn,this));g.tP(this.L.G())&&(this.NV=new g.M3(g.FS(),10,"Cuenta"),g.t(this,this.NV),this.OB(this.NV,!0),this.NV.listen("click",this.Uy,this),M.createClientVe(this.NV.element,this.NV,137682));this.L.G().Vp&&(this.rI=new aV("Bucle",9),g.t(this,this.rI),this.OB(this.rI,!0), this.rI.listen("click",this.nE,this),M.createClientVe(this.rI.element,this.rI,28661));this.L.j("web_player_miniplayer_in_context_menu")&&(this.T5=new g.M3(g.FS(),8,"Minirreproductor"),g.t(this,this.T5),this.OB(this.T5,!0),this.T5.listen("click",this.b6,this),M.createClientVe(this.T5.element,this.T5,62946));this.L.j("web_watch_pip_context_menu_button")&&this.L.G().showMiniplayerButton&&(this.T9=new g.M3(g.FS(),7,"Imagen en imagen"),g.t(this,this.T9),this.OB(this.T9,!0),this.T9.listen("click",this.UD, this),M.createClientVe(this.T9.element,this.T9,194442));g.t(this,this.getVideoUrl);this.OB(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Je,this);M.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.t(this,this.q6);this.OB(this.q6,!0);this.q6.listen("click",this.Gg,this);M.createClientVe(this.q6.element,this.q6,28660);g.t(this,this.k5);this.OB(this.k5,!0);this.k5.listen("click",this.eV,this);M.createClientVe(this.k5.element,this.k5,28658);g.t(this,this.qd);this.OB(this.qd, !0);this.qd.listen("click",this.Dk,this);g.t(this,this.qI);this.OB(this.qI,!0);this.qI.listen("click",this.WW,this);g.t(this,this.showVideoInfo);this.OB(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.X2,this);g.t(this,this.G2);this.G2.listen("click",this.zg,this);g.t(this,this.YA);yma()&&(this.O7=new g.w({K:"textarea",N:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.t(this,this.O7),this.O7.cY(this.element));this.NV?.setIcon(JXL());this.rI?.setIcon(EzL());this.T5?.setIcon(this.L.j("delhi_modern_web_player_icons")? TXg():kX());this.T9?.setIcon(kX());this.qd.setIcon({K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{"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.qI.setIcon(nu());this.showVideoInfo.setIcon($CL());this.J(M,"onLoopChange",this.onLoopChange);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"fullscreentoggled",()=>{U7(this)}); this.J(M,"minimized",()=>{U7(this);this.T9?.eW(!this.L.isMinimized()&&this.L.G().showMiniplayerButton)}); U1a(this);C3G(this,this.L.getVideoData())}fn(){this.tT.Lv()}zg(){om(this.G2.element)}Dk(){CA(this,this.L.getDebugText(!0))&&Ju(this.xg,J1())}eV(){CA(this,this.L.getVideoEmbedCode())&&Ju(this.xg,sKL());this.L.logClick(this.k5.element)}Je(){CA(this,this.L.getVideoUrl(!0,!0))&&Ju(this.xg,yI());this.L.logClick(this.getVideoUrl.element)}Gg(){CA(this,this.L.getVideoUrl(!1,!0))&&Ju(this.xg,yI());this.L.logClick(this.q6.element)}onLoopChange(M){this.rI?.Z(M)}nE(){this.L.setLoopVideo(this.rI.getValue());this.tT.Lv(); this.L.logClick(this.rI.element)}b6(){g.q8(this.L,"onCollapseMiniplayer");this.tT.Lv()}UD(){g.q8(this.L,"onCollapseMiniplayer",!0);this.tT.Lv()}WW(M){this.L.reportPlaybackIssue();if(g.OA(M,this.L,!aU(this.L.G()))){M=this.L;const W=M.app.getFeedbackProductData();g.Vc(M,"onFeedbackStartRequest",W);M.isFullscreen()&&M.toggleFullscreen()}this.tT.Lv()}X2(){g.GW(this.L,"isVideoInfoVisible",[])?g.GW(this.L,"hideVideoInfo",[]):g.GW(this.L,"showVideoInfo",[]);this.tT.Lv()}Uy(){this.NV&&(this.ZF||(this.ZF= new A7I(this.L,this.NV.element),g.t(this,this.ZF),g.Im(this.L,this.ZF.element,4)),this.ZF.show(),this.tT.Lv(),this.L.logClick(this.NV.element))}onVideoDataChange(M,W){C3G(this,W)}dG(M){super.dG(M);this.L.logVisibility(this.k5.element,M);this.L.logVisibility(this.getVideoUrl.element,M);this.L.logVisibility(this.q6.element,M);this.rI&&this.L.logVisibility(this.rI.element,M);this.NV&&this.L.logVisibility(this.NV.element,M);this.T5&&this.L.logVisibility(this.T5.element,M)}};var u9p=class extends g.fs{constructor(M,W){super(M);this.xg=W;this.V=new g.Cq(this);this.W=new g.d9(this.Lp,1E3,this);this.Zs=this.KN=null;g.t(this,this.V);g.t(this,this.W);W=this.L.G();M.createClientVe(this.element,this,28656);g.pY(this.element,"ytp-contextmenu");this.L.G().experiments.FX("delhi_modern_web_player")&&g.Zk(W)&&g.pY(this.element,"ytp-delhi-modern-contextmenu");KCl(this);this.hide()}onTouchStart(M){const W=g2(M);W&&(kt(W,"a")||kt(W,null,"ytp-no-contextmenu"))||this.Ta||(this.Zs=(M= M.touches?.item(0))?new g.xU(M.clientX,M.clientY):new g.xU(0,0),this.W.start())}O(){this.W.stop()}Lp(){this.open(this.Zs)}X(){if(this.KN&&kKQ(this.KN)){const M=kKQ(this.KN).element;M.tabIndex=-1;M.focus()}else this.element.tabIndex=-1,this.element.focus()}show(){this.KN||(this.KN=new zcc(this.L,this,this.xg),g.t(this,this.KN),g.$T(this,this.KN));this.KN.onLoopChange(this.L.getLoopVideo());super.show();this.L.logVisibility(this.element,!0);this.KN.dG(!0)}hide(){KCl(this);super.hide();this.L.logVisibility(this.element, !1);this.KN&&this.KN.dG(!1)}lV(M){const W=g2(M);this.Ta||W&&(kt(W,"a")||kt(W,null,"ytp-no-contextmenu"))||(M.preventDefault(),this.open(new g.xU(M.pageX,M.pageY)))}Nd(M){if(M){const W=M.getBoundingClientRect();this.open(new g.xU(W.x,W.y))}super.Nd(M)}open(M){vgq(this);var W=this.L.getVideoData();g.H(this.element,"ytp-dni",W.uN);this.element.style.left="";this.element.style.top="";M.x++;M.y++;super.Nd();var b=rC(this).body;W=new NP(0,Infinity,Infinity,0);var T=oL(b);for(var q=T.Z.body,X=T.Z.documentElement, G=MP(T.Z);b=gPQ(b);)if((!g.bq||b.clientHeight!=0||b!=q)&&b!=q&&b!=X&&SU(b,"overflow")!="visible"){const V=g.de(b),J=new g.xU(b.clientLeft,b.clientTop);V.x+=J.x;V.y+=J.y;W.top=Math.max(W.top,V.y);W.right=Math.min(W.right,V.x+b.clientWidth);W.bottom=Math.min(W.bottom,V.y+b.clientHeight);W.left=Math.max(W.left,V.x)}q=G.scrollLeft;G=G.scrollTop;W.left=Math.max(W.left,q);W.top=Math.max(W.top,G);T=$t(T.Z.defaultView||window);W.right=Math.min(W.right,q+T.width);W.bottom=Math.min(W.bottom,G+T.height);T=W.top>= 0&&W.left>=0&&W.bottom>W.top&&W.right>W.left?W:null;W=this.size;M=M.clone();W=W.clone();T&&(G=W,q=5,(q&65)==65&&(M.x=T.right)&&(q&=-2),(q&132)==132&&(M.y=T.bottom)&&(q&=-5),M.xT.right&&(G.width=Math.min(T.right-M.x,X+G.width-T.left),G.width=Math.max(G.width,0))),M.x+G.width>T.right&&q&1&&(M.x=Math.max(T.right-G.width,T.left)),M.y T.bottom&&(G.height=Math.min(T.bottom-M.y,X+G.height-T.top),G.height=Math.max(G.height,0))),M.y+G.height>T.bottom&&q&4&&(M.y=Math.max(T.bottom-G.height,T.top)));T=new g.re(0,0,0,0);T.left=M.x;T.top=M.y;T.width=W.width;T.height=W.height;g.P5(this.element,new g.xU(T.left,T.top));this.V.V();this.V.J(rC(this),"contextmenu",this.An);this.V.J(this.L,"fullscreentoggled",this.onFullscreenToggled);this.V.J(this.L,"pageTransition",this.sY)}An(M){if(!M.defaultPrevented){const W=g2(M);g.ES(this.element,W)||this.Lv(); this.L.G().disableNativeContextMenu&&M.preventDefault()}}onFullscreenToggled(){this.Lv();vgq(this)}sY(){this.Lv()}};var SrA=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-button","ytp-copylink-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.tP(M.G()))},U:[{K:"div",N:"ytp-copylink-icon",R0:"{{icon}}"},{K:"div",N:"ytp-copylink-title",R0:"Copiar enlace",Y:{"aria-hidden":"true"}}]});this.api=M;this.Z=W;this.visible=!1;this.tooltip=this.Z.j2();W=M.G();this.tooltip.element.setAttribute("aria-live", "polite");g.H(this.element,"ytp-show-copylink-title",g.tP(W));M.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.J(M,"videodatachange",this.zv);this.J(M,"videoplayerreset",this.zv);this.J(M,"appresize",this.zv);this.zv();this.addOnDisposeCallback(g.UA(this.tooltip,this.element))}async onClick(){var M=this.api.G();const W=this.api.getVideoData(),b=this.api.getPlaylistId();M=M.getVideoUrl(W.videoId,b,void 0,!0);await m1t(this,M)&&LCq(this);this.api.logClick(this.element)}zv(){this.updateValue("icon", {K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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 enlace");this.updateValue("tooltip-title","Copiar enlace");this.visible=l2p(this);g.H(this.element,"ytp-copylink-button-visible", this.visible);this.eW(this.visible);this.tooltip.aq();this.api.logVisibility(this.element,this.visible&&this.gK)}dG(M){super.dG(M);this.api.logVisibility(this.element,this.visible&&M)}vY(){super.vY();g.Mw(this.element,"ytp-copylink-button-visible")}};var OJ5=class extends g.w{constructor(M){super({K:"div",N:"ytp-doubletap-ui-legacy",U:[{K:"div",N:"ytp-doubletap-fast-forward-ve"},{K:"div",N:"ytp-doubletap-rewind-ve"},{K:"div",N:"ytp-doubletap-static-circle",U:[{K:"div",N:"ytp-doubletap-ripple"}]},{K:"div",N:"ytp-doubletap-overlay-a11y"},{K:"div",N:"ytp-doubletap-seek-info-container",U:[{K:"div",N:"ytp-doubletap-arrows-container",U:[{K:"span",N:"ytp-doubletap-base-arrow"},{K:"span",N:"ytp-doubletap-base-arrow"},{K:"span",N:"ytp-doubletap-base-arrow"}]}, {K:"div",N:"ytp-doubletap-tooltip",U:[{K:"div",N:"ytp-seek-icon-text-container",U:[{K:"div",N:"ytp-seek-icon",R0:"{{seekIcon}}"},{K:"div",N:"ytp-chapter-seek-text-legacy",R0:"{{seekText}}"}]},{K:"div",N:"ytp-doubletap-tooltip-label",R0:"{{seekTime}}"}]}]}]});this.L=M;this.A=new g.d9(this.show,10,this);this.V=new g.d9(this.hide,700,this);this.C=this.B=0;this.X=this.S=!1;this.Z=this.hn("ytp-doubletap-static-circle");g.t(this,this.A);g.t(this,this.V);this.hide();this.W=this.hn("ytp-doubletap-fast-forward-ve"); this.D=this.hn("ytp-doubletap-rewind-ve");this.L.createClientVe(this.W,this,28240);this.L.createClientVe(this.D,this,28239);this.L.logVisibility(this.W,!0);this.L.logVisibility(this.D,!0);this.S=M.j("web_show_cumulative_seek_time");this.X=M.j("web_center_static_circles")}show(){super.show();this.V.Wr()}hide(){this.A.stop();this.B=0;this.hn("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Mw(this.element,"ytp-chapter-seek");g.Mw(this.element,"ytp-time-seeking");super.hide()}iY(M, W,b,T){this.B=M===this.C?this.B+T:T;this.C=M;var q=M===-1?this.D:this.W;q&&this.L.logClick(q);this.S?this.V.stop():this.V.n3();this.A.start();this.element.setAttribute("data-side",M===-1?"back":"forward");var X=3*this.L.qe().getPlayerSize().height;q=this.L.qe().getPlayerSize();q=q.width/3-3*q.height;this.Z.style.width=`${X}px`;this.Z.style.height=`${X}px`;M===1?(this.Z.style.left="",this.Z.style.right=`${q}px`):M===-1&&(this.Z.style.right="",this.Z.style.left=`${q}px`);const G=X*2.5;X=G/2;const V= this.hn("ytp-doubletap-ripple");V.style.width=`${G}px`;V.style.height=`${G}px`;M===1?(M=this.L.qe().getPlayerSize().width-W+Math.abs(q),V.style.left="",V.style.right=`${M-X}px`):M===-1&&(M=Math.abs(q)+W,V.style.right="",V.style.left=`${M-X}px`);V.style.top=`calc((33% + ${Math.round(b)}px) - ${X}px)`;if(b=this.hn("ytp-doubletap-ripple"))b.classList.remove("ytp-doubletap-ripple"),b.classList.add("ytp-doubletap-ripple");t3J(this,this.S?this.B:T)}Gy(M,W,b=null){if(b){var T=M===-1?this.D.visualElement: this.W.visualElement;b={seekData:b};const q=g.nT();q&&Mu(q,T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",b)}this.B=M===this.C?this.B+W:W;this.C=M;T=this.L.qe().getPlayerSize();this.S?this.V.stop():this.V.n3();this.A.start();this.element.setAttribute("data-side",M===-1?"back":"forward");g.pY(this.element,"ytp-time-seeking");this.Z.style.width="110px";this.Z.style.height="110px";b=T.width*.1-15;M===1?this.X?(this.Z.style.right=`${b}px`,this.Z.style.left=""):(this.Z.style.right="",this.Z.style.left= `${T.width*.8-30}px`):M===-1&&(this.X?(this.Z.style.right="",this.Z.style.left=`${b}px`):(this.Z.style.right="",this.Z.style.left=`${T.width*.1-15}px`));this.Z.style.top=`${T.height*.5+15}px`;t3J(this,this.S?this.B:W)}Qo(M,W,b=null){this.V.n3();this.A.start();switch(M){case -1:M="back";break;case 1:M="forward";break;default:M=""}this.element.setAttribute("data-side",M);this.Z.style.width="0";this.Z.style.height="0";g.pY(this.element,"ytp-chapter-seek");this.updateValue("seekText",W);this.updateValue("seekTime", "");W=this.hn("ytp-seek-icon");if(b){a:if(b){switch(b){case "PREMIUM_STANDALONE":b=BXt();break a;case "PREMIUM_STANDALONE_CAIRO":b=DCs();break a}b=void 0}else b=null;this.updateValue("seekIcon",b);W.style.display="inline-block"}else W.style.display="none"}};var PIQ=class extends IV{constructor(M){super(M,!1,!0);this.MK=[];this.fv=[];this.element.setAttribute("data-overlay-order","9");Zpt(this,this.L.getVideoData());this.Zs=!0;this.badge.element.classList.add("ytp-featured-product");this.wK=new g.w({K:"div",N:"ytp-featured-product-open-in-new"});g.t(this,this.wK);this.countdownTimer=new g.w({K:"text",N:"ytp-featured-product-countdown",R0:"{{content}}"});this.countdownTimer.hide();g.t(this,this.countdownTimer);this.A=new g.w({K:"div",N:"ytp-featured-product-trending", U:[{K:"div",N:"ytp-featured-product-trending-icon"},{K:"text",N:"ytp-featured-product-trending-text",R0:"{{trendingOffer}}"}]});this.A.hide();g.t(this,this.A);this.overflowButton=new g.w({K:"button",rK:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.t(this,this.overflowButton);this.O=new g.w({K:"text",N:"ytp-featured-product-exclusive-countdown",R0:"{{content}}",Y:{id:"exclusiveCountdown","aria-hidden":"true"}});this.O.hide();g.t(this, this.O);this.X=new g.w({K:"div",N:"ytp-featured-product-exclusive-container",Y:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},U:[{K:"div",N:"ytp-featured-product-exclusive-badge-container",U:[{K:"div",N:"ytp-featured-product-exclusive-badge",U:[{K:"text",N:"ytp-featured-product-exclusive-badge-text",R0:"{{exclusive}}",Y:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.O]});this.X.hide();g.t(this,this.X);this.banner=new g.w({K:"a",N:"ytp-featured-product-container",U:[{K:"div",N:"ytp-featured-product-thumbnail", U:[{K:"img",Y:{src:"{{thumbnail}}"}},this.wK]},{K:"div",N:"ytp-featured-product-details",U:[{K:"text",N:"ytp-featured-product-title",R0:"{{title}}"},this.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",N:"ytp-featured-product-price-container",Y:{"aria-label":"{{priceA11yText}}"},U:[{K:"text",N:"ytp-featured-product-price-when-promotion-text-enabled",R0:"{{price}}",Y:{"aria-hidden":"true"}},{K:"text",N:"ytp-featured-product-promotion-text",R0:"{{promotionText}}", Y:{"aria-hidden":"true"}}]}:{K:"div",Y:{"aria-label":"{{priceA11yText}}"},U:[{K:"text",N:"ytp-featured-product-price",R0:"{{price}}",Y:{"aria-hidden":"true"}},{K:"text",N:"ytp-featured-product-sales-original-price",R0:"{{salesOriginalPrice}}",Y:{"aria-hidden":"true"}},{K:"text",N:"ytp-featured-product-price-drop-reference-price",R0:"{{priceDropReferencePrice}}",Y:{"aria-hidden":"true"}}]},this.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",N:"ytp-featured-product-when-promotion-text-enabled", U:[{K:"text",N:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",R0:"{{affiliateDisclaimer}}"},this.A,{K:"text",N:"ytp-featured-product-vendor-when-promotion-text-enabled",R0:"{{vendor}}"}]}:{K:"div",U:[{K:"text",N:"ytp-featured-product-affiliate-disclaimer",R0:"{{affiliateDisclaimer}}"},this.L.j("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.A,{K:"text",N:"ytp-featured-product-vendor",R0:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.t(this,this.banner);this.banner.cY(this.S.element);this.J(this.L,g.kJ("featured_product"),this.XP);this.J(this.L,g.KX("featured_product"),this.xk);this.J(this.L,"videodatachange",this.onVideoDataChange);this.J(this.overflowButton.element,"click",this.k_);this.J(M,"featuredproductdismissed",this.W)}k_(M){this.bV||(this.bV=new wy9(this.L),g.t(this,this.bV));this.s2?.menu?.menuRenderer&&(this.bV.open(this.s2.menu.menuRenderer,M.target),M.preventDefault())}D(){return!!this.Z}EY(){return!!this.Z}An(M){M.target=== this.overflowButton.element?M.preventDefault():(this.GY&&g.q8(this.L,"innertubeCommand",this.GY),this.C(!1))}W(){this.C(!0);if(this.Z?.bannerData?.dismissedStatusKey){if(this.fv.includes(this.Z.bannerData.dismissedStatusKey))return;this.fv.push(this.Z.bannerData.dismissedStatusKey)}this.xk();if(this.L.j("web_enable_shopping_timely_shelf_client")){const M={};g.hP(M,WYs,{overlayId:"player_overlay_timely_shelf"});g.q8(this.L,"innertubeCommand",M)}}A5(){this.xk();kK(this)}XP(M){if(M.id!==this.Z?.identifier){this.xk(); for(const W of this.MK){const b=W?.bannerData?.itemData;if(!b||W.identifier!==M.id)continue;if(this.fv.includes(W?.bannerData?.dismissedStatusKey||""))return;this.Z=W;this.banner.element.setAttribute("aria-label",b.accessibilityLabel||"");b.trackingParams&&(this.B=!0,this.L.setTrackingParams(this.badge.element,b.trackingParams));this.show();this.sY.show();c1(this);this.wK.eW(!b.stayInApp);this.d9?.stop();this.countdownTimer.hide();v0(this);KA(this);this.GY=g.z(b.onTapCommand,xn);const T=g.z(b.menuOnTap, xn);T&&(this.s2=g.z(T,Xzs));this.banner.update({thumbnail:(b.thumbnailSources||[])[0]?.url,title:b.productTitle,price:b.priceReplacementText?b.priceReplacementText:b.price,salesOriginalPrice:I2y(this),priceDropReferencePrice:NSg(this),promotionText:HpL(this),priceA11yText:f2p(this),affiliateDisclaimer:b.affiliateDisclaimer,vendor:LA(this)});b?.hiddenProductOptions?.showDropCountdown&&b?.hiddenProductOptions?.dropTimestampMs&&(this.d9=new g.d9(()=>{RDp(this)},1E3),this.wK.hide(),this.countdownTimer.show(), RDp(this)); this.L.j("web_player_enable_featured_product_banner_exclusives_on_desktop")&&rmg(this)&&(this.Hr=new g.d9(()=>{x1t(this)},1E3),x1t(this))}this.L.getRootNode()&&g.pY(this.L.getRootNode(),"ytp-featured-product-shown")}}xk(){this.Z&&(this.Z=void 0,this.V(),this.L.getRootNode()&&g.Mw(this.L.getRootNode(),"ytp-featured-product-shown"))}onVideoDataChange(M,W){Zpt(this,W); M==="dataloaded"&&kK(this);M=g.z(W.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,A_G);this.overflowButton.show();this.dismissButton.hide();const b=M?.featuredProductsEntityKey;this.trendingOfferEntityKey=M?.trendingOfferEntityKey;this.MK.length||(ipG(this,b),KA(this));this.zm?.();this.zm=g.nP.subscribe(()=>{ipG(this,b);KA(this)})}vY(){kK(this); this.d9?.stop();this.countdownTimer.hide();v0(this);super.vY()}};var ech=class extends g.w{constructor(M,W,b){super({K:"div",rK:["ytp-info-panel-action-item"],U:[{K:"div",N:"ytp-info-panel-action-item-disclaimer",R0:"{{disclaimer}}"},{K:"a",rK:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},U:[{K:"div",N:"ytp-info-panel-action-item-icon",R0:"{{icon}}"},{K:"div",N:"ytp-info-panel-action-item-label",R0:"{{label}}"}]}]});this.L=M;this.V=b;this.disclaimer=this.hn("ytp-info-panel-action-item-disclaimer"); this.button=this.hn("ytp-info-panel-action-item-button");this.S2=!1;this.L.createServerVe(this.element,this,!0);this.listen("click",this.onClick);M="";var T=g.z(W?.onTap,xn);b=g.z(T,g.HF);this.S2=!1;b?(M=b.url||"",M.startsWith("//")&&(M="https:"+M),this.S2=!0,g.OY(this.button,g.zp(M))):(b=g.z(T,G5s))&&!this.V?((M=b.phoneNumbers)&&M.length>0?(M="sms:"+M[0],b.messageText&&(M+="?&body="+encodeURI(b.messageText))):M="",this.S2=!0,g.OY(this.button,g.zp(M,[GcJ]))):(b=g.z(T,jTL))&&!this.V&&(M=b.phoneNumber? "tel:"+b.phoneNumber:"",this.S2=!0,g.OY(this.button,g.zp(M,[jzy])));!M&&(b=g.z(W?.onTap,xn),T=g.z(b,mW))&&(this.S2=!0,this.Z=b,this.feedbackToken=T.feedbackToken);(b=W.disclaimerText?.content)?(this.button.style.borderBottom="1px solid white",this.button.style.paddingBottom="16px",this.update({label:W.bodyText?.content,icon:hDl(W.icon?.iconType),disclaimer:b})):(this.disclaimer.style.display="none",this.update({label:W.bodyText?.content,icon:hDl(W.icon?.iconType)}));this.L.setTrackingParams(this.element, W.trackingParams||null);this.S2&&(this.B={externalLinkData:{url:M}})}onClick(){this.L.logClick(this.element,this.B);if(this.Z&&this.feedbackToken){const M=this.L.M1();M?.VO(this.Z)&&(uA(M,this.Z,{feedbackTokens:[this.feedbackToken]}),this.L.publish("infopaneldetaildismissed"))}}};var dE5=class extends eP{constructor(M,W){const b=Ta();super(M,{K:"div",N:"ytp-info-panel-detail-skrim",U:[{K:"div",N:"ytp-info-panel-detail",Y:{role:"dialog",id:b},U:[{K:"div",N:"ytp-info-panel-detail-header",U:[{K:"div",N:"ytp-info-panel-detail-title",R0:"{{title}}"},{K:"button",rK:["ytp-info-panel-detail-close","ytp-button"],Y:{"aria-label":"Cerrar"},U:[g.aI()]}]},{K:"div",N:"ytp-info-panel-detail-body",R0:"{{body}}"},{K:"div",N:"ytp-info-panel-detail-items"}]}]},250);this.Z=W;this.items=this.hn("ytp-info-panel-detail-items"); this.V=new g.Cq(this);this.itemData=[];this.B=b;this.J(this.hn("ytp-info-panel-detail-close"),"click",this.Lv);this.J(this.hn("ytp-info-panel-detail-skrim"),"click",this.Lv);this.J(this.hn("ytp-info-panel-detail"),"click",T=>{T.stopPropagation()}); this.J(this.L,"infopaneldetaildismissed",()=>{this.Lv()}); g.t(this,this.V);this.L.createServerVe(this.element,this,!0);this.J(M,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",M.getVideoData());this.hide()}show(){super.show();this.L.publish("infopaneldetailvisibilitychange",!0);this.L.logVisibility(this.element,!0);for(const M of this.itemData)M.L.logVisibility(M.element,!0)}hide(){super.hide();this.L.publish("infopaneldetailvisibilitychange",!1);this.L.logVisibility(this.element,!1);for(const M of this.itemData)M.L.logVisibility(M.element, !1)}getId(){return this.B}gT(){return this.itemData.length}onVideoDataChange(M,W){if(W){this.update({title:W.GN?.title?.content||"",body:W.GN?.bodyText?.content||""});this.L.setTrackingParams(this.element,W.GN?.trackingParams||null);for(const b of this.itemData)b.dispose();this.itemData=[];if(W.GN?.ctaButtons)for(const b of W.GN.ctaButtons)if(M=g.z(b,g6t))M=new ech(this.L,M,this.Z),M.S2&&(this.itemData.push(M),M.cY(this.items))}}vY(){this.hide();super.vY()}};var o5r=class extends g.w{constructor(M,W){super({K:"button",N:"ytp-info-panel-preview",Y:{"aria-live":"assertive","aria-atomic":"true","aria-owns":W.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.tP(M.G()))},U:[{K:"div",N:"ytp-info-panel-preview-text",R0:"{{text}}"},{K:"div",N:"ytp-info-panel-preview-chevron",R0:"{{chevron}}"}]});this.L=M;this.Np=this.Z=this.videoId=null;this.isDismissed=this.B=this.showControls=this.V=!1;this.J(this.element,"click",()=>{M.logClick(this.element);M.Cr(); xf(W)}); this.fade=new g.Ol(this,250,!1,100);g.t(this,this.fade);this.L.createServerVe(this.element,this,!0);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"presentingplayerstatechange",this.W);this.J(this.L,"paidcontentoverlayvisibilitychange",this.A);this.J(this.L,"infopaneldetailvisibilitychange",this.A);const b=M.getVideoData()||{};(b.MK?.title?.content||b.MK?.bodyText?.content)&&lZ(this,b);this.J(M,"onShowControls",this.C);this.J(M,"onHideControls",this.S);this.J(this.L,"infopaneldetaildismissed", ()=>{this.isDismissed=!0;this.hide()})}onVideoDataChange(M,W){lZ(this,W); this.Np&&zDy(this,this.Np)}W(M){const W=this.L.getVideoData();this.videoId!==W.videoId&&lZ(this,W);zDy(this,M.state);this.Np=M.state}A(M){(this.B=M)?this.hide():this.Z&&!this.isDismissed&&this.show()}C(){this.V||this.Nd();this.showControls=!0}S(){this.V||this.Lv();this.showControls=!1}Nd(){if(!this.isDismissed){var M=this.L?.getPlayerSize(),W=M.width<380;M=M.height<(this.L?.isEmbedsShortsMode()?400:280);(this.L?.getPlayerStateObject().isCued()||this.L?.getPlayerStateObject().Z(1024))&&W&&M||!this.Z|| this.B||(this.fade.show(),this.L.publish("infopanelpreviewvisibilitychange",!0),this.L.logVisibility(this.element,!0))}}Lv(){this.Z&&!this.B&&(this.fade.hide(),this.L.publish("infopanelpreviewvisibilitychange",!1),this.L.logVisibility(this.element,!1))}D(){this.V=!1;this.showControls||this.Lv()}};var c7V={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(c7V).reduce((M,W)=>{M[c7V[W]]=W;return M},{}); var QQ7={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(QQ7).reduce((M,W)=>{M[QQ7[W]]=W;return M},{}); var g59={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(g59).reduce((M,W)=>{M[g59[W]]=W;return M},{});var uM,sQc;uM=[{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"}];sQc=[{option:0,text:tu(0)},{option:.25,text:tu(.25)},{option:.5,text:tu(.5)},{option:.75,text:tu(.75)},{option:1,text:tu(1)}]; g.H0=[{option:"fontFamily",text:"Conjunto de fuentes",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:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:uM},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:tu(.5)},{option:-1,text:tu(.75)},{option:0,text:tu(1)},{option:1, text:tu(1.5)},{option:2,text:tu(2)},{option:3,text:tu(3)},{option:4,text:tu(4)}]},{option:"background",text:"Color de fondo",options:uM},{option:"backgroundOpacity",text:"Opacidad del fondo",options:sQc},{option:"windowColor",text:"Color de la ventana",options:uM},{option:"windowOpacity",text:"Opacidad de la ventana",options:sQc},{option:"charEdgeStyle",text:"Estilo del borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de la fuente",options:[{option:.25,text:tu(.25)},{option:.5,text:tu(.5)},{option:.75,text:tu(.75)},{option:1,text:tu(1)}]}];var w$4=[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],p$p=class extends g.Cq{constructor(M,W,b,T,q,X,G,V){super();this.api=M;this.X=W;this.contextMenu=b;this.W3=T;this.xg=q;this.Z=X;this.gK=G;this.progressBar=V;this.S=new g.d9(()=>{eDS(this,!1)},1E3); this.B="";this.A={PE:!1,aL:!1,n0:!1};g.t(this,this.S);this.J(W,"mousedown",()=>{If(this,!1)}); this.J(b.element,"mousedown",()=>{If(this,!1)}); this.J(W,"keydown",this.C);this.J(b.element,"keydown",this.C);this.J(W,"keyup",this.D);this.J(b.element,"keyup",this.D)}C(M){M.repeat||(this.A.PE=!1);let W=!1;const b=M.keyCode;var T=g2(M);let q=!M.altKey&&!M.ctrlKey&&!M.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||w$4.includes(b));var X=!1;let G=!1;const V=this.api.G();M.defaultPrevented?(q=!1,G=!0):V.Hr&&!this.api.isMutedByEmbedsMutedAutoplay()&&(q=!1);if(b===9)W=!0;else{if(T)switch(b){case 32:case 13:if(T.tagName==="BUTTON"||T.tagName=== "A"||T.tagName==="INPUT")W=!0,q=!1;else if(q){var J=T.getAttribute("role");!J||J!=="option"&&J!=="button"&&J.indexOf("menuitem")!==0||(W=!0,T.click(),X=!0)}break;case 37:case 39:case 36:case 35:W=T.getAttribute("role")==="slider";break;case 38:case 40:J=T.getAttribute("role"),T=b===38?T.previousSibling:T.nextSibling,J==="slider"?W=!0:q&&(J==="option"?(T&&T.getAttribute("role")==="option"&&T.focus(),X=W=!0):J&&J.indexOf("menuitem")===0&&(T&&T.hasAttribute("role")&&T.getAttribute("role").indexOf("menuitem")=== 0&&T.focus(),X=W=!0))}if(q&&!X)switch(b){case 38:X=Math.min(this.api.getVolume()+5,100);B0(this.xg,X,!1);this.api.setVolume(X);G=X=!0;break;case 40:X=Math.max(this.api.getVolume()-5,0);B0(this.xg,X,!0);this.api.setVolume(X);G=X=!0;break;case 36:this.api.jO()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),G=X=!0);break;case 35:this.api.jO()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),G=X=!0)}}W&&If(this,!0);(W||G)&&this.W3.sN();(X|| q&&this.handleGlobalKeyDown(b,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat))&&M.preventDefault();V.D&&(M={keyCode:M.keyCode,altKey:M.altKey,ctrlKey:M.ctrlKey,metaKey:M.metaKey,shiftKey:M.shiftKey,handled:M.defaultPrevented,fullscreen:this.api.isFullscreen()},g.Jp(this.api,"onKeyPress",M))}D(M){const W=M.keyCode;!this.A.aL&&this.handleGlobalKeyUp(W,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code)&&M.preventDefault()}handleGlobalKeyUp(M,W,b,T,q,X,G){this.api.publish("keyboardserviceglobalkeyup", {keyCode:M,shiftKey:W,ctrlKey:b,altKey:T,metaKey:q,key:X,code:G});W=!1;if(this.A.PE)return W;(X=g.tp(this.api.lk()))&&(X=X.ew)&&X.Ta&&(X.QA(M),W=!0);switch(M){case 9:If(this,!0);W=!0;break;case 32:this.api.j("web_speedmaster_spacebar_control")&&(this.api.G().Hr||(W=this.EE(this.progressBar?.vp()?.isEnabled)));break;case 39:(this.api.j("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(q||b&&T))&&(w_?T:b)&&this.api.jO()&&this.api.j("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(), M=(M=this.api.getVideoData())?M.aT:[],b=SJy(M,this.api.getCurrentTime()*1E3),b!==-1&&this.Z!=null&&(this.Z.Qo(1,M[b].title),this.api.seekTo(M[b].startTime/1E3,void 0,void 0,void 0,52),W=!0))}return W}handleGlobalKeyDown(M,W,b,T,q,X,G,V){V||(this.A.PE=!1);var J=!1,B=this.api.G();if(B.Hr&&!this.api.isMutedByEmbedsMutedAutoplay())return J;var D=g.tp(this.api.lk());if(D&&(D=D.ew)&&D.Ta)switch(M){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:J=D.OU(M)}B.C||J||(J=X||String.fromCharCode(M).toLowerCase(), this.B+=J,"awesome".indexOf(this.B)===0||this.api.j("web_player_rtr_ctrls")&&"bday".indexOf(this.B)===0?(J=!0,4===this.B.length&&this.B==="bday"&&this.api.j("web_player_rtr_ctrls")&&(uGS(this.X),this.W3.sN()),7===this.B.length&&this.B==="awesome"&&bs(this.api.getRootNode(),"ytp-color-party")):(this.B=J,J="awesome".indexOf(this.B)===0||"bday".indexOf(this.B)===0));if(!J&&(!this.api.isMutedByEmbedsMutedAutoplay()||w$4.includes(M))){D=this.api.getVideoData();var a=this.progressBar?.vp()?.isEnabled;D= D?D.aT:[];const E=w_?T:b;switch(M){case 80:W&&!B.An&&(Ju(this.xg,aqP(),"Anterior"),this.api.previousVideo(),J=!0);break;case 78:W&&!B.An&&(Ju(this.xg,U3(),"Siguiente"),this.api.nextVideo(),J=!0);break;case 74:this.api.jO()&&(this.api.startSeekCsiAction(),this.Z?this.api.j("enable_key_press_seek_logging")?(J=NA(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.Z.Gy(-1,10,J)):this.Z.Gy(-1,10):Ju(this.xg,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"}, U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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),J=!0);break;case 76:this.api.jO()&&(this.api.startSeekCsiAction(),this.Z?this.api.j("enable_key_press_seek_logging")?(J=NA(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.Z.Gy(1,10,J)):this.Z.Gy(1,10):Ju(this.xg,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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),J=!0);break;case 37:if(this.api.jO())if(this.api.startSeekCsiAction(),E){if(this.api.j("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(q||b&&T))a=Opa(D,this.api.getCurrentTime()*1E3),a!==-1&&this.Z!=null&&(this.Z.Qo(-1,D[a].title),this.api.seekTo(D[a].startTime/1E3,void 0,void 0,void 0,53),J=!0)}else this.Z?this.api.j("enable_key_press_seek_logging")?(J=NA(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.Z.Gy(-1,5,J)):this.Z.Gy(-1,5):Ju(this.xg,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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),J=!0;break;case 39:this.api.jO()&&(this.api.startSeekCsiAction(),E?this.api.j("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.j("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(q||b&&T)||(a=SJy(D,this.api.getCurrentTime()*1E3),a!==-1&&this.Z!=null&&(this.Z.Qo(1,D[a].title),this.api.seekTo(D[a].startTime/1E3,void 0,void 0,void 0,52),J=!0)):(this.Z!=null?this.api.j("enable_key_press_seek_logging")?(J=NA(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.Z.Gy(1,5,J)):this.Z.Gy(1,5):Ju(this.xg,{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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),J=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),B0(this.xg,this.api.getVolume(),!1)):(this.api.mute(),B0(this.xg,0,!0));J=!0;break;case 32:J=this.api.j("web_speedmaster_spacebar_control")?!this.api.G().An:this.EE(a);break;case 75:J=this.EE(a);break;case 190:W?B.enableSpeedOptions&&ogP(this)&&(J=this.api.getPlaybackRate(),this.api.setPlaybackRate(J+.25,!0),qJP(this.xg,!1),J=!0):this.api.jO()&&(this.step(1),J=!0);break;case 188:W? B.enableSpeedOptions&&ogP(this)&&(J=this.api.getPlaybackRate(),this.api.setPlaybackRate(J-.25,!0),qJP(this.xg,!0),J=!0):this.api.jO()&&(this.step(-1),J=!0);break;case 70:oBG(this.api)&&(this.api.toggleFullscreen().catch(()=>{}),J=!0); break;case 27:a?(this.progressBar.gy(),J=!0):this.gK()&&(J=!0)}if(B.controlsType!=="3")switch(M){case 67:g.uj(this.api.lk())&&(B=this.api.getOption("captions","track"),this.api.toggleSubtitles(),XnJ(this.xg,!B||B&&!B.displayName),J=!0);break;case 79:fA(this,"textOpacity");break;case 87:fA(this,"windowOpacity");break;case 187:case 61:fA(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:fA(this,"fontSizeIncrement",!0,!0)}let n;W||b||T||(M>=48&&M<=57?n=M-48:M>=96&&M<=105&&(n=M-96));n!=null&&this.api.jO()&& !this.api.j("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),B=this.api.getProgressState(),this.api.seekTo(n/10*(B.seekableEnd-B.seekableStart)+B.seekableStart,void 0,void 0,void 0,81),J=!0);J&&this.W3.sN()}this.A.n0=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:M,shiftKey:W,ctrlKey:b,altKey:T,metaKey:q,key:X,code:G,repeat:V},this.A);this.A.n0&&(J=!0,this.W3.sN());return J}step(M){this.api.jO();if(this.api.getPlayerStateObject().isPaused()){var W=this.api.getVideoData().V; W&&(W=W.video)&&this.api.seekBy(M/(W.fps||30),void 0,void 0,M>0?77:78)}}EE(M){if(!this.api.G().An){const W=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;W&&g.z(W.miniplayer,tey)?.playbackMode==="PLAYBACK_MODE_PAUSED_ONLY"&&g.q8(this.api,"onExpandMiniplayer");M?this.progressBar.k_():(M=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.xg.MI(M),M?this.api.playVideo():this.api.pauseVideo());return!0}return!1}vY(){this.S.n3();super.vY()}};var YrV=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-button","ytp-overflow-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"M\u00e1s":"","data-tooltip-title":"M\u00e1s","aria-haspopup":"true","aria-owns":W.element.id},U:[{K:"div",N:"ytp-overflow-icon",U:[{K:"svg",Y:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{K:"path",Y:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z", fill:"#fff"}}]}]}]});this.L=M;this.tR=W;this.visible=!1;M.createClientVe(this.element,this,16499);this.J(M,"videoplayerreset",this.zv);this.J(M,"appresize",this.zv);this.J(M,"fullscreentoggled",this.zv);this.J(M,"presentingplayerstatechange",this.zv);this.zv();Ce(M,this.element,this);this.listen("click",()=>{M.logClick(this.element);xf(W,this.element,!1)}); this.J(W.closeButton,"click",()=>{this.focus()})}zv(){var M=this.L.G(); const W=M.B||this.L.j("web_player_hide_overflow_button_if_empty_menu")&&this.tR.isEmpty();M=g.tP(M)&&g.Le(this.L)&&this.L.getPlayerStateObject().Z(128);const b=this.L.getPlayerSize();this.visible=this.L.Wx()&&!M&&b.width>=240&&!this.L.getVideoData().uN&&!W&&!this.L.isEmbedsShortsMode();g.H(this.element,"ytp-overflow-button-visible",this.visible);this.eW(this.visible);this.visible&&this.L.aq();this.L.logVisibility(this.element,this.visible&&this.gK)}dG(M){super.dG(M);this.L.logVisibility(this.element, this.visible&&M)}vY(){super.vY();g.Mw(this.element,"ytp-overflow-button-visible")}};var $R7=class extends eP{constructor(M){super(M,{K:"div",N:"ytp-overflow-panel",Y:{id:Ta(),role:"dialog"},U:[{K:"div",N:"ytp-overflow-panel-content",U:[{K:"div",N:"ytp-overflow-panel-action-buttons",R0:"{{buttons}}"}]},{K:"button",rK:["ytp-overflow-panel-close","ytp-button"],Y:{"data-tooltip-title":"Cerrar",title:M.G().j("player_tooltip_data_title_killswitch")?"Cerrar":""},U:[g.aI()]}]},250);this.actionButtons=[];this.Z=this.hn("ytp-overflow-panel-content");this.closeButton=this.hn("ytp-overflow-panel-close"); this.J(this.closeButton,"click",this.Lv);Ce(M,this.closeButton,this);this.listen("click",this.V);this.J(M,"videoplayerreset",this.hide);this.J(M,"fullscreentoggled",this.onFullscreenToggled);this.hide()}V(M){M=g2(M);g.ES(this.element,M)&&(g.ES(this.Z,M)||g.ES(this.closeButton,M)||xf(this))}Lv(){super.Lv();this.L.XY(this.element)}show(){this.Ta&&this.L.publish("OVERFLOW_PANEL_OPENED");super.show();this.element.setAttribute("aria-modal","true");for(const M of this.actionButtons)M.dG(!0)}hide(){super.hide(); this.element.removeAttribute("aria-modal");for(const M of this.actionButtons)M.dG(!1)}onFullscreenToggled(M){!M&&this.T4()&&xf(this)}isEmpty(){return this.actionButtons.length===0}focus(){for(const M of this.actionButtons)if(M.Ta){M.focus();break}}};var M7J=class extends g.w{constructor(M,W,b){const T=g.Rr(W,b),q=T.pz("default.jpg");super({K:"a",rK:["ytp-video-menu-item","ytp-button"],Y:{role:"menuitemradio","aria-label":T.title,href:M.G().getVideoUrl(T.videoId,W.listId?W.listId.toString():null)},U:[{K:"div",N:"ytp-video-menu-item-index",R0:String(b+1)},{K:"div",N:"ytp-video-menu-item-now-playing",R0:"\u25b6"},{K:"div",N:"ytp-video-menu-item-thumbnail",Y:{style:q?`background-image: url(${q});`:void 0}},{K:"div",N:"ytp-video-menu-item-title", R0:T.title},{K:"div",N:"ytp-video-menu-item-author",R0:T.author}]});this.api=M;this.index=b;this.listen("click",this.onClick)}onClick(M){g.OA(M,this.api)&&this.api.playVideoAt(this.index)}};var WfA=class extends eP{constructor(M){super(M,{K:"div",N:"ytp-playlist-menu",Y:{role:"dialog",id:Ta()},U:[{K:"div",N:"ytp-playlist-menu-header",U:[{K:"div",N:"ytp-playlist-menu-title",U:[M.G().B?{K:"span",N:"ytp-playlist-menu-title-name",R0:"{{title}}"}:{K:"a",N:"ytp-playlist-menu-title-name",Y:{href:"{{playlisturl}}"},R0:"{{title}}"},{K:"button",rK:["ytp-playlist-menu-close","ytp-button"],Y:{"aria-label":"Cerrar"},U:[g.aI()]}]},{K:"div",N:"ytp-playlist-menu-subtitle",R0:"{{subtitle}}"}]},{K:"div", N:"ytp-playlist-menu-items",Y:{role:"menu"}}]},250);this.api=M;this.B=this.selected=this.W=this.playlist=null;this.items=this.hn("ytp-playlist-menu-items");this.Z=new g.Cq(this);this.playlistData=[];this.J(this.hn("ytp-playlist-menu-close"),"click",this.Lv);const W=this.hn("ytp-playlist-menu-title-name");M.G().B||(this.B=this.J(W,"click",this.O));g.t(this,this.Z);this.hide()}show(){super.show();this.Z.J(this.api,"videodatachange",this.A);this.Z.J(this.api,"onPlaylistUpdate",this.A);this.A()}hide(){super.hide(); this.Z.V();this.updatePlaylist(null)}A(){this.updatePlaylist(this.api.getPlaylist());this.api.G().B&&(this.hn("ytp-playlist-menu-title-name").removeAttribute("href"),this.B&&(this.fN(this.B),this.B=null))}V(){const M=this.playlist;var W=M.author,b=W?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",T={CURRENT_POSITION:String(M.index+1),PLAYLIST_LENGTH:String(M.length)};W&&(T.AUTHOR=W);this.update({title:M.title,subtitle:g.tZ(b,T),playlisturl:this.api.getVideoUrl(!0)}); W=M.V;if(W===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[M.index];else{for(var q of this.playlistData)q.dispose();q=M.length;this.playlistData=[];for(b=0;b{M.logClick(this.element); M.j("delhi_web_player_use_external_playlist_panel")?g.q8(M,"onToggleExternalPlaylistPanel"):xf(W,this.element,!1)})}hide(){super.hide(); this.dG(!1);this.api.aq()}zv(){const M=g.tP(this.api.G());g.H(this.element,"ytp-playlist-menu-button-tiny",this.api.qe().getPlayerSize().width<400&&!M);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.tZ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.tZ("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.tZ("Lista de reproducci\u00f3n: $PLAYLIST_NAME", {PLAYLIST_NAME:this.playlist.title})}),this.api.j("delhi_modern_web_player")&&this.update({playlistTitle:g.tZ("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Ta||(this.show(),this.api.aq()),this.visible=!0,this.dG(!0)):this.Ta&&this.hide()}dG(M){super.dG(M);this.api.logVisibility(this.element,this.visible&&M)}Z(){this.playlist&&this.playlist.unsubscribe("shuffle",this.zv,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.zv, this);this.zv()}};var qkG=class extends g.w{constructor(M,W){super({K:"div",N:"ytp-promotooltip-wrapper",U:[{K:"div",N:"ytp-promotooltip-container",U:[{K:"div",N:"ytp-promotooltip-content",U:[{K:"div",N:"ytp-promotooltip-title",R0:"{{title}}"},{K:"div",N:"ytp-promotooltip-details",R0:"{{details}}"}]},{K:"div",N:"ytp-promotooltip-buttons",U:[{K:"div",N:"ytp-promotooltip-dismiss-button",R0:"{{dismissButtonText}}",Y:{tabindex:"0"}},{K:"div",N:"ytp-promotooltip-accept-button",R0:"{{acceptButtonText}}",Y:{tabindex:"0", "aria-haspopup":"true"}}]}]},{K:"div",N:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=M;this.L=W;this.Z=this.sourceElement=null;this.title=this.hn("ytp-promotooltip-title");this.details=this.hn("ytp-promotooltip-details");this.acceptButton=this.hn("ytp-promotooltip-accept-button");this.dismissButton=this.hn("ytp-promotooltip-dismiss-button");this.V=this.A=!1;this.B=!0;this.X=this.C=this.D=this.W=!1;this.k9={VQ:b=>{this.VQ(b)}}; this.eW(!1);M=this.tooltipRenderer.trackingParams||null;if(this.V=!!M)this.L.createServerVe(this.element,this,!0),this.L.setTrackingParams(this.element,M);this.J(W,"onShowControls",this.Zs);this.J(W,"onHideControls",this.O);this.J(W,"resize",this.XT);this.J(this.acceptButton,"click",this.yz);this.J(this.dismissButton,"click",this.BY);this.J(document,"click",this.sY)}S(M,W){if(!this.A){if(M){this.tooltipRenderer=M;M=this.tooltipRenderer.text;var b=!1;M?.runs?.length&&M.runs[0].text&&(this.update({title:M.runs[0].text.toString()}), b=!0);g.pr(this.title,b);b=this.tooltipRenderer.detailsText;M=!1;if(b?.runs?.length&&b.runs[0].text){{var T=b.runs[0].text.toString();const J=T.indexOf("$TARGET_ICON");if(J>-1)if(this.tooltipRenderer.targetId){b=[];T=T.split("$TARGET_ICON");var q=new g.ig({K:"span",N:"ytp-promotooltip-details-icon",U:[THB[this.tooltipRenderer.targetId]]});g.t(this,q);var X=[];for(G of T){const B=new g.ig({K:"span",N:"ytp-promotooltip-details-component",R0:G});g.t(this,B);X.push(B)}T.length===2?(b.push(X[0].element), b.push(q.element),b.push(X[1].element)):T.length===1&&(J===0?(b.push(q.element),b.push(X[0].element)):(b.push(X[0].element),b.push(q.element)));var G=b.length?b:null}else G=null;else G=T}if(G){if(typeof G!=="string"){g.B5(this.details);for(var V of G)this.details.appendChild(V)}else this.update({details:G});M=!0}}g.pr(this.details,M);V=this.tooltipRenderer.acceptButton;G=!1;g.z(V,gQ)?.text?.runs?.length&&g.z(V,gQ).text.runs[0].text&&(this.update({acceptButtonText:g.z(V,gQ).text.runs[0].text.toString()}), G=!0);g.pr(this.acceptButton,G);V=this.tooltipRenderer.dismissButton;G=!1;g.z(V,gQ)?.text?.runs?.length&&g.z(V,gQ).text.runs[0].text&&(this.update({dismissButtonText:g.z(V,gQ).text.runs[0].text.toString()}),G=!0);g.pr(this.dismissButton,G)}W&&(this.sourceElement=W);this.Z=cmS(this);this.C=!1;this.L.G().j("web_player_hide_nitrate_promo_tooltip")||this.eW(!0);rw(this);this.Ta&&!this.X&&(this.X=!0,this.k9.VQ(0));this.V&&this.L.logVisibility(this.element,this.Ta)}}Zs(){this.B?this.S():rw(this)}O(){this.B? (xK(this),this.C=!0):rw(this)}yz(){this.A=!0;this.VQ(1);this.L.publish("promotooltipacceptbuttonclicked",this.acceptButton);xK(this);this.V&&this.L.logClick(this.acceptButton)}BY(){this.A=!0;this.VQ(2);xK(this);this.V&&this.L.logClick(this.dismissButton)}sY(M){if(this.L.getPresentingPlayerType()===1||this.L.getPresentingPlayerType()===2&&this.W){var W=!0,b=g.wP("ytp-ad-overlay-ad-info-dialog-container"),T=g.wP("ytp-ad-player-overlay-layout"),q=g2(M);if(this.sourceElement&&q&&g.ES(this.sourceElement, q))this.sourceElement=null;else{this.L.getPresentingPlayerType()===1&&q&&Array.from(q.classList).forEach(G=>{if(G.startsWith("ytp-ad")||G.startsWith("ytp-skip-ad"))W=!1}); var X=Q2L(this.tooltipRenderer);this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"?X&&(W=W&&!g.ES(this.element,q)):this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(W=X?!1:W&&g.ES(this.element,q));this.Z&&this.Ta&&!b&&!T&&(!q||W&&g.PF(M))&&(this.A=!0,xK(this))}}}VQ(M){var W=this.tooltipRenderer.promoConfig;if(W){let b;switch(M){case 0:W.impressionEndpoints?.length&&(b=W.impressionEndpoints[0]);break;case 1:b=W.acceptCommand;break;case 2:b= W.dismissCommand}M=g.z(b,mW)?.feedbackToken;b&&M&&(M={feedbackTokens:[M]},W=this.L.M1(),W?.VO(b)&&uA(W,b,M))}}XT(){this.C||(this.Z||(this.Z=cmS(this)),this.S())}},THB={"ytp-settings-button":g.Lu()};var qYA=class extends g.w{constructor(M){super({K:"button",rK:["ytp-replay-button","ytp-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"Ver de nuevo":"","data-tooltip-title":"Ver de nuevo"},U:[g.mn()]});this.L=M;this.J(M,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.LN(M.getPlayerStateObject());Ce(this.L,this.element,this)}onStateChange(M){this.LN(M.state)}LN(M){this.eW(M.Z(2))}onClick(){this.L.getPlayerStateObject().isOrWillBePlaying(); this.L.playVideo()}};var XX9=class extends g.w{constructor(M){super({K:"button",rK:["ytp-button","ytp-search-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.tP(M.G()))},U:[{K:"div",N:"ytp-search-icon",R0:"{{icon}}"},{K:"div",N:"ytp-search-title",R0:"Buscar"}]});this.api=M;this.visible=!1;this.updateValue("icon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",N:"ytp-svg-fill",Y:{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"}}]}); M.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Z();this.J(M,"appresize",this.Z);this.J(M,"videodatachange",this.Z);Ce(M,this.element,this)}onClick(M){this.api.logClick(this.element);var W=g.JM(this.api.G().l3,{focusSearch:"true"}),b={};g.GW(this.api,"addEmbedsConversionTrackingParams",[b]);W=g.JM(W,b);(b=this.api.getVideoData().md?.params)&&(W=g.JM(W,{bp:b}));g.cX(window,W);M.preventDefault()}Z(){if(this.api.j("embeds_web_enable_search_button")){var M=this.api.G(); var W=this.api.getVideoData(),b=this.api.qe().getPlayerSize().width;M=g.tP(M)&&b>=240&&!M.B&&!W.isAd()&&!this.api.isEmbedsShortsMode()}else M=!1;this.visible=M;this.eW(this.visible);g.H(this.element,"ytp-search-button-visible",this.visible);g.H(this.element,"ytp-show-search-title",!this.api.Wx());this.api.logVisibility(this.element,this.visible&&this.gK)}dG(M){super.dG(M);this.api.logVisibility(this.element,this.visible&&M)}};var jB7=class extends g.w{constructor(M){super({K:"div",N:"ytp-seek-overlay",U:[{K:"div",rK:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],U:[{K:"div",rK:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],U:[{K:"svg",Y:{viewBox:"0 0 22 32",width:"22",height:"24"},U:[{K:"path",Y:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{K:"div",N:"ytp-seek-overlay-duration",R0:"{{durationBack}}"}]},{K:"div",rK:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],U:[{K:"div",N:"ytp-seek-overlay-duration",R0:"{{durationForward}}"},{K:"div",rK:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],U:[{K:"svg",Y:{viewBox:"0 0 22 32",width:"22",height:"24"},U:[{K:"path",Y:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{K:"div",N:"ytp-seek-overlay-message",U:[{K:"div",N:"ytp-seek-overlay-message-icon",R0:"{{icon}}"},{K:"div",N:"ytp-seek-overlay-message-text", R0:"{{text}}"}]}]});this.L=M;this.S=0;this.Z="hidden";this.W=this.hn("ytp-seek-overlay-animation-back");this.D=this.hn("ytp-seek-overlay-animation-forward");this.X=this.hn("ytp-seek-overlay-message");this.C=new g.d9(()=>{s2q(this)},g.TO(this.L.G().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.t(this,this.C);this.L.createClientVe(this.D,this,28240);this.L.createClientVe(this.W,this,28239);this.L.logVisibility(this.D,!0);this.L.logVisibility(this.W,!0);this.hide()}trigger(M,W,b,T){this.show();if(this.V&&M!==this.V){let q=1;this.B&&(q=$zP(this));s2q(this,q,!1);ggl(this)}this.V=M;this.A=this.V===-1?this.W:this.D;M="";W?(this.V===-1&&this.L.getCurrentTime()<=W?this.S=W:this.S+=W,M=`${this.V===-1?"\u2212":"+"} ${this.S}`):this.S=0;this.updateValue(this.V===-1?"durationBack":"durationForward", M);if(this.Z==="hidden"||this.Z==="fading-out")W=0,this.Z==="fading-out"&&(W=$zP(this),YJS(this)),wnP(this,W),this.Z!=="fading-out"&&pnQ(this,this.A.querySelector(".ytp-seek-overlay-arrow-persistent")),this.Z="fading-in";else if(this.Z==="fading-in"||this.Z==="lingering")W=this.A.querySelector(".ytp-seek-overlay-duration"),M=g.TO(this.L.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,W.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64, easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:`scale(${M})`},{offset:1,transform:"scale(1)"}],{duration:184}),YJS(this),this.Z==="lingering"&&(this.C.stop(),this.C.start());b&&Mia(this,b,T)}iY(M,W,b,T){this.trigger(M,T)}Gy(M,W,b){this.trigger(M,W);b&&(M=M===-1?this.D.visualElement:this.W.visualElement,b={seekData:b},(W=g.nT())&&Mu(W,M,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",b))}Qo(M,W,b){this.trigger(M,void 0,W,b)}};var Gp4=class extends g.w{constructor(M,W,b){super({K:"button",rK:["ytp-button","ytp-share-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":b.element.id,"data-tooltip-opaque":String(g.tP(M.G()))},U:[{K:"div",N:"ytp-share-icon",R0:"{{icon}}"},{K:"div",N:"ytp-share-title",R0:"Compartir"}]});this.api=M;this.Z=W;this.V=b;this.visible=!1;this.tooltip=this.Z.j2();M.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.J(M,"videodatachange",this.zv);this.J(M,"videoplayerreset",this.zv);this.J(M,"appresize",this.zv);this.J(M,"presentingplayerstatechange",this.zv);this.zv();this.addOnDisposeCallback(g.UA(this.tooltip,this.element))}onClick(){var M=this.api.G();const W=this.api.getVideoData({playerType:this.api.getPresentingPlayerType()}),b=this.api.getPlaylistId();M=this.api.j("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):M.getVideoUrl(W.videoId,b,void 0,!0);if(navigator.share)try{const T= navigator.share({title:W.title,url:M});T instanceof Promise&&T.catch(q=>{WtG(this,q)})}catch(T){T instanceof Error&&WtG(this,T)}else this.Z.Cr(),xf(this.V,this.element,!1); this.api.logClick(this.element)}zv(){var M=this.api.G();const W=this.api.isEmbedsShortsMode();g.H(this.element,"ytp-show-share-title",g.tP(M)&&!W);this.Z.sX()&&W?(M=(this.api.qe().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.iq(this.element,"right",`${M}px`)):W&&g.iq(this.element,"right","0px");this.updateValue("icon",{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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=FG(this);g.H(this.element,"ytp-share-button-visible",this.visible);this.eW(this.visible);this.tooltip.aq();this.api.logVisibility(this.element,FG(this)&&this.gK)}dG(M){super.dG(M);this.api.logVisibility(this.element,this.visible&&M)}vY(){super.vY();g.Mw(this.element,"ytp-share-button-visible")}};var V7A=class extends eP{constructor(M,W){var b=Ta();const T=M.G();b={K:"div",N:"ytp-share-panel",Y:{id:Ta(),role:"dialog","aria-labelledby":b},U:[{K:"div",N:"ytp-share-panel-inner-content",U:[{K:"div",N:"ytp-share-panel-title",Y:{id:b},R0:"Compartir"},{K:"a",rK:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:T.X,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},R0:"{{linkText}}"},{K:"label",N:"ytp-share-panel-include-playlist",U:[{K:"input",N:"ytp-share-panel-include-playlist-checkbox", Y:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{K:"div",N:"ytp-share-panel-loading-spinner",U:[dC()]},{K:"div",N:"ytp-share-panel-service-buttons",R0:"{{buttons}}"},{K:"div",N:"ytp-share-panel-error",R0:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{K:"button",rK:["ytp-share-panel-close","ytp-button"],Y:{title:"Cerrar"},U:[g.aI()]}]};super(M,b,250);this.moreButton=null;this.api=M;this.tooltip=W.j2(); this.V=[];this.A=this.hn("ytp-share-panel-inner-content");this.closeButton=this.hn("ytp-share-panel-close");this.J(this.closeButton,"click",this.Lv);this.addOnDisposeCallback(g.UA(this.tooltip,this.closeButton));this.B=this.hn("ytp-share-panel-include-playlist-checkbox");this.J(this.B,"click",this.zv);this.Z=this.hn("ytp-share-panel-link");this.addOnDisposeCallback(g.UA(this.tooltip,this.Z));this.api.createClientVe(this.Z,this,164503);this.J(this.Z,"click",q=>{q.preventDefault();this.api.logClick(this.Z); var X=this.api.getVideoUrl(!0,!0,!1,!1);X=qPa(this,X);g.Pf(X,this.api,q)&&g.q8(this.api,"SHARE_CLICKED")}); this.listen("click",this.W);this.J(M,"videoplayerreset",this.hide);this.J(M,"fullscreentoggled",this.onFullscreenToggled);this.J(M,"onLoopRangeChange",this.O);this.hide()}W(M){M=g2(M);g.ES(this.A,M)||g.ES(this.closeButton,M)||xf(this)}Lv(){super.Lv();this.tooltip.XY(this.element);this.api.logVisibility(this.Z,!1);for(const M of this.V)this.api.hasVe(M.element)&&this.api.logVisibility(M.element,!1)}show(){const M=this.Ta;super.show();this.zv();M||g.q8(this.api,"onSharePanelOpened")}O(){this.Ta&&this.zv()}zv(){g.pY(this.element, "ytp-share-panel-loading");g.Mw(this.element,"ytp-share-panel-fail");var M=this.api.getVideoData();const W=this.api.getPlaylistId()&&this.B.checked;M.getSharePanelCommand&&uA(this.api.M1(),M.getSharePanelCommand,{includeListId:W}).then(b=>{this.ST()||(g.Mw(this.element,"ytp-share-panel-loading"),XaL(this,b))}); M=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",M);this.updateValue("linkText",M);this.updateValue("shareLinkWithUrl",g.tZ("Compartir enlace: $URL",{URL:M}));om(this.Z);this.api.logVisibility(this.Z,!0)}onFullscreenToggled(M){!M&&this.T4()&&xf(this)}focus(){this.Z.focus()}vY(){super.vY();b5t(this)}};var JOr=class extends IV{constructor(M){super(M);this.A=this.Z=this.isContentForward=this.O=!1;this.element.setAttribute("data-overlay-order","8");Bot(this);this.J(this.L,"changeProductsInVideoVisibility",this.xk);this.J(this.L,"videodatachange",this.onVideoDataChange)}vY(){Au(this);super.vY()}An(M){M.target!==this.dismissButton.element&&(this.C(!1),g.q8(this.L,"innertubeCommand",this.onClickCommand))}W(){this.cP=!0;this.C(!0);this.V()}xk(M){this.O=M;this.V()}onVideoDataChange(M,W){if(M=!!W.videoId&& this.videoId!==W.videoId)this.videoId=W.videoId,this.cP=!1,this.lV=!0,this.Zs=this.BY=!1,Au(this),j8P(this,!1),this.A=this.Z=!1,z8(this),GLt(this);if(M||!W.videoId)this.yz=this.B=!1;if(W?.getPlayerResponse()?.videoDetails?.isLiveContent)this.V0(!1);else{W=g.z(W.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,A_G);this.O=this.enabled=!1;if(W){if(M=W?.featuredProductsEntityKey){var b=g.nP.getState().entities;if(YE(b,"featuredProductsEntity",M)?.productsData){this.V0(!1); return}}if(!W.text||!W.onClickCommand||!W.timing){this.V0(!1);return}this.enabled=!0;this.B||(M=W.badgeInteractionLogging?.trackingParams,(this.B=!!M)&&this.L.setTrackingParams(this.badge.element,M||null));this.yz||(this.yz=!!W.dismissButton?.trackingParams)&&this.L.setTrackingParams(this.dismissButton.element,W.dismissButton?.trackingParams||null);if(W.isContentForward){M=W.productsData;j8P(this,!0);GLt(this);M=JxS(this,M);b=[];M.length>0&&b.push(M[0]);if(M.length>1){const T=new g.w({K:"div",N:"ytp-suggested-action-more-products-icon"}); g.t(this,T);b.push(T);b.push(...M.slice(1))}this.X=new g.w({K:"div",U:b,N:"ytp-suggested-action-content-forward-container"});g.t(this,this.X);this.Ds.element.append(this.X.element)}this.text=g.Ga(W.text);if(M=W.dismissButton?.a11yLabel)this.vP=g.Ga(M);this.onClickCommand=W.onClickCommand;this.timing=W.timing;this.QV()}Qo(this);c1(this);this.V()}}D(){return!this.O&&this.enabled&&!this.cP&&!this.L.Wx()&&!this.x_&&(this.Zs||this.lV)}jT(M){super.jT(M);if(this.Z||this.A)this.timing&&iZ(this.timing.preview)&& (this.Z=!1,z8(this),this.A=!1,z8(this),this.L.lN("shopping_overlay_preview_collapsed"),this.L.lN("shopping_overlay_preview_expanded"),M=uZ(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),iZ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.L.lN("shopping_overlay_expanded"),M.end=this.timing.expanded.endSec*1E3),this.L.QV([M])),this.BY=!0,c1(this);z8(this)}V0(M){(this.Zs=M)?(oY(this),c1(this,!1)):(Au(this),this.XX.start()); this.V()}QV(M=0){var W=this.timing;M+=this.L.getCurrentTime();const b=[];var T=W.visible;const q=W.preview;W=W.expanded;iZ(T)&&(hu(T,M),b.push(uZ(T.startSec,T.endSec,"shopping_overlay_visible")));iZ(q)&&(hu(q,M),T=q.startSec+1,b.push(uZ(q.startSec,T,"shopping_overlay_preview_collapsed")),b.push(uZ(T,q.endSec,"shopping_overlay_preview_expanded")));iZ(W)&&(hu(W,M),b.push(uZ(W.startSec,W.endSec,"shopping_overlay_expanded")));this.L.QV(b)}V(){super.V();this.L.getRootNode()&&g.H(this.L.getRootNode(),"ytp-shopping-pill-shown", this.D())}};var BH9=class extends g.w{constructor(M){super({K:"div",N:"ytp-shorts-title-channel",U:[{K:"a",N:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:M.G().X,"aria-label":"{{channelLogoLabel}}"}},{K:"div",N:"ytp-shorts-title-expanded-heading",U:[{K:"div",N:"ytp-shorts-title-expanded-title",U:[{K:"a",R0:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:M.G().X,tabIndex:"0"}}]}]}]});this.api=M;this.Z=this.hn("ytp-shorts-title-channel-logo");this.channelName=this.hn("ytp-shorts-title-expanded-title"); this.subscribeButton=null;M.createClientVe(this.Z,this,36925);this.J(this.Z,"click",W=>{this.api.logClick(this.Z);g.cX(window,Dzl(this));W.preventDefault()}); M.createClientVe(this.channelName,this,37220);this.J(this.channelName,"click",W=>{this.api.logClick(this.channelName);g.cX(window,Dzl(this));W.preventDefault()}); a7t(this);this.J(M,"videodatachange",this.zv);this.J(M,"videoplayerreset",this.zv);this.zv()}zv(){const M=this.api.G();this.eW(g.tP(M)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Ta);const W=this.api.getVideoData();let b=!1;this.api.getPresentingPlayerType()===2?b=!!W.videoId&&!!W.isListed&&!!W.author&&!!W.xk&&!!W.profilePicture:g.tP(M)&&(b=!!W.videoId&&!!W.xk&&!!W.profilePicture&&!W.uN&&!M.B&&!(M.W&&this.api.getPlayerSize().width< 200));Ehg(this,b,W.profilePicture,g.tP(M)?W.expandedTitle:W.author);this.subscribeButton&&(this.subscribeButton.channelId=W.YJ);this.updateValue("expandedTitle",W.expandedTitle)}};var DR$=class extends eP{constructor(M){super(M,{K:"button",rK:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{K:"div",N:"ytp-skip-intro-button-text",R0:"Saltar introducci\u00f3n"}]},100);this.V=!1;this.Z=new g.d9(()=>{this.hide()},5E3); this.u7=this.I5=NaN;g.t(this,this.Z);this.W=()=>{this.show()}; this.A=()=>{this.hide()}; this.B=()=>{const W=this.L.getCurrentTime();W>this.I5/1E3&&W{this.hm(W,b)}); this.J(this.element,"click",()=>{this.L.seekTo(this.u7/1E3)}); this.hide()}show(){super.show();this.Z.start()}hide(){super.hide();this.Z.stop()}hm(M,W){M==="dataloaded"&&((this.I5=W.I5,this.u7=W.u7,isNaN(this.I5)||isNaN(this.u7))?this.V&&(this.L.lN("intro"),this.L.removeEventListener(g.kJ("intro"),this.W),this.L.removeEventListener(g.KX("intro"),this.A),this.L.removeEventListener("onShowControls",this.B),this.hide(),this.V=!1):(this.L.addEventListener(g.kJ("intro"),this.W),this.L.addEventListener(g.KX("intro"),this.A),this.L.addEventListener("onShowControls", this.B),M=new g.Ap(this.I5,this.u7,{priority:9,namespace:"intro"}),this.L.QV([M]),this.V=!0))}};var a_h=class extends g.w{constructor(M){super({K:"button",rK:["ytp-airplay-button","ytp-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},R0:"{{icon}}"});this.L=M;this.listen("click",this.onClick);this.J(M,"airplayactivechange",this.zv);this.J(M,"airplayavailabilitychange",this.zv);this.zv();Ce(M,this.element,this)}onClick(){this.L.LW()}zv(){var M=!0;g.tP(this.L.G())&&(M=M&&this.L.qe().getPlayerSize().width>=480);this.eW(M); M=this.updateValue;var W=this.L.j("delhi_modern_web_player_icons");const b=W?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,Y:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};W=W?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{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"}}]};M.call(this,"icon",this.L.d0()?b:W)}};var Epc=class extends g.w{constructor(M){super({K:"div",N:"ytp-gradient-bottom"});this.V=g.Gr("CANVAS");this.Z=this.V.getContext("2d",{willReadFrequently:!0});this.B=NaN;this.V.width=1;nht(this,M.qe().getPlayerSize().height)}vY(){this.Z=null;super.vY()}};var np5=class extends g.w{constructor(M,W,b,T){super({K:"div",N:"ytp-chapter-container",U:[{K:"button",rK:["ytp-chapter-title","ytp-button"],U:[{K:"span",Y:{"aria-hidden":"true"},N:"ytp-chapter-title-prefix",R0:"\u2022"},{K:"div",N:"ytp-chapter-title-content",R0:"{{chapterTitle}}",Y:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:M.j("player_tooltip_data_title_killswitch")?T:"","data-tooltip-title":T}},{K:"div",N:"ytp-chapter-title-chevron",U:[{K:"svg",Y:{height:"100%",viewBox:"0 0 24 24", width:"100%"},U:[{K:"path",Y:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.L=M;this.A=W;this.C="";this.currentIndex=0;this.V=void 0;this.B=!0;this.X=this.hn("ytp-chapter-container");this.Z=this.hn("ytp-chapter-title");this.S=this.hn("ytp-chapter-title-content");this.D();this.updateVideoData("newdata",this.L.getVideoData());this.J(M,"videodatachange",this.updateVideoData);this.J(M,"resize",this.D);this.J(this.X,"click",this.onClick);this.J(M,g.kJ(b), this.SR);this.J(M,"onLoopRangeChange",this.SR);this.J(M,"innertubeCommand",this.onClickCommand);(M=g.jz(this.L.G()))&&g.H(this.Z,"ytp-profile-page",!0);g.tP(this.L.G())||M||Ce(this.L,this.S,this)}onClick(){g.q8(this.L,"innertubeCommand",this.V)}D(){if(this.L.j("delhi_modern_web_player")){var M=this.L.getPlayerSize();M.width&&(this.element.style.maxWidth=`${M.width*.25}px`)}}};var yO$=class extends np5{constructor(M,W){super(M,W,"chapterCueRange","Ver cap\u00edtulo");this.W=""}onClickCommand(M){g.z(M,Eb)&&this.SR()}updateVideoData(M,W){M=g.z(W.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,oU);M=g.z(M?.playerBarActionButton,gQ);this.L.j("web_player_updated_entrypoint")&&(this.W=Sl(M?.text),this.S.setAttribute("title",M?.tooltip??"Ver cap\u00edtulo"));this.V=M?.command;UzQ(this)}SR(){var M=this.W;const W=this.A.Z;var b=this.L.getLoopRange()?.type=== "clips";if(W.length>1&&!b){M=this.L.getProgressState().current*1E3;b=ZG(W,M);M=W[b].title||"Cap\u00edtulos";if(b!==this.currentIndex||this.B)g.q8(this.L,"innertubeCommand",W[b].onActiveCommand),this.currentIndex=b;this.B=!1}else this.B=!0;yxs(this,M)}};var UR$=class extends g.YV{constructor(M){super({K:"button",rK:["ytp-expand-right-bottom-section-button","ytp-button"],Y:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},U:[g.DR()]});this.Z=!1;this.listen("click",this.V);M.createClientVe(this.element,this,276954)}V(){this.element.parentElement?.classList.contains("ytp-right-controls-left");(this.Z=!this.Z)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}isExpanded(){return this.Z}};var Cr4=class extends g.w{constructor(M,W){super({K:"div",N:"ytp-storyboard-framepreview",U:[{K:"div",N:"ytp-storyboard-framepreview-timestamp",R0:"{{timestamp}}"},{K:"div",N:"ytp-storyboard-framepreview-img"}]});this.api=M;this.V=this.hn("ytp-storyboard-framepreview-img");this.Z=null;this.frameIndex=NaN;this.events=new g.Cq(this);this.fade=new g.Ol(this,100);g.t(this,this.events);g.t(this,this.fade);this.J(this.api,"presentingplayerstatechange",this.B);W&&this.J(this.element,"click",()=>{W.gy()})}B(M){M.state.Z(32)? SP(this,this.api.SH()):this.Ta&&(M.state.Z(16)||M.state.Z(1))||this.fade.hide()}onProgress(){const M=this.api.getPlayerStateObject(); (M.Z(32)||M.Z(16))&&O7(this)}A(){this.frameIndex=NaN;O7(this)}hide(){this.Z&&SP(this,null);super.hide()}};var kpE=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-fullscreen-button","ytp-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-label":"{{aria-label}}","aria-keyshortcuts":"f","data-priority":"12","data-title-no-tooltip":"{{data-title-no-tooltip}}"},R0:"{{icon}}"});this.L=M;this.V=W;this.message=null;this.Z=g.UA(this.V.j2(),this.element);this.B=new g.d9(this.S,2E3,this);g.t(this,this.B);this.J(M,"fullscreentoggled", this.Cu);this.J(M,"presentingplayerstatechange",this.zv);this.J(M,"resize",this.zv);this.listen("click",this.onClick);g.OL()&&(W=this.L.qe(),this.J(W,sFg(),this.A),this.J(W,gxt(document),this.uM));M.G().EY||M.G().W||this.disable();M.createClientVe(this.element,this,139117);this.zv();this.Cu(M.isFullscreen())}onClick(){if(this.L.G().EY||this.L.G().W){this.L.logClick(this.element);try{this.L.toggleFullscreen().catch(M=>{this.Rk(M)})}catch(M){this.Rk(M)}}else xf(this.message,this.element,!0)}Rk(M){String(M).includes("fullscreen error")? g.lR(M):g.O(M); this.A()}A(){this.disable();this.message.Nd(this.element,!0)}uM(){PV()===this.L.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}S(){if(window.screen&&window.outerWidth&&window.outerHeight){const M=window.screen.width*.9,W=window.screen.height*.9;let b=Math.max(window.outerWidth,window.innerWidth),T=Math.max(window.outerHeight,window.innerHeight);if(b>T!==M>W){const q=b;b=T;T=q}M>b&&W>T&&this.A()}}disable(){if(!this.message){var M=(ut(["requestFullscreen","webkitRequestFullscreen", "mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new eP(this.L,{K:"div",rK:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},U:[M[0],{K:"a",Y:{href:"https://support.google.com/youtube/answer/6276924",target:this.L.G().X},R0:M[2]}, M[4]]},100,!0);this.message.hide();g.t(this,this.message);this.message.subscribe("show",W=>{this.V.Su(this.message,W)}); g.Im(this.L,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Z)();this.Z=null}}zv(){const M=oBG(this.L),W=this.L.G().W&&this.L.getPlayerSize().width<250;this.eW(M&&!W);this.L.logVisibility(this.element,this.Ta)}Cu(M){let W;M?(W=g.kf(this.L,"Salir del modo de pantalla completa","f"),this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"}),document.activeElement===this.element&&this.L.getRootNode().focus(), document.pictureInPictureElement&&document.exitPictureInPicture().catch(b=>{g.lR(b)})):(W=g.kf(this.L,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"})); M=kLJ(this,M);W=this.message?null:W;this.L.G().j("player_tooltip_data_title_killswitch")?this.update({title:W,icon:M}):this.update({"tooltip-title":W,"aria-label":W,icon:M});this.V.j2().aq()}vY(){this.message||((0,this.Z)(),this.Z=null);super.vY()}dG(M){super.dG(M)}};var Kfc=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-button","ytp-jump-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},U:[W>0?{K:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",rK:["ytp-circle-arrow","ytp-svg-fill"],Y:{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"}}, {K:"text",rK:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"7.05",y:"15.05"}}]}:{K:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{K:"path",rK:["ytp-circle-arrow","ytp-svg-fill"],Y:{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"}}, {K:"text",rK:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"6.5",y:"15"}}]}]});this.L=M;this.Z=W;this.V=new g.d9(()=>{this.B?(this.B=!1,this.V.start()):this.element.classList.remove("ytp-jump-spin","backwards")},250); this.B=!1;(W=W>0)?this.L.createClientVe(this.element,this,36843):this.L.createClientVe(this.element,this,36844);const b=g.tZ(W?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.Z).toString()});this.L.j("player_tooltip_data_title_killswitch")?this.update({title:b,"data-title-no-tooltip":b,"aria-keyshortcuts":W?"\u2192":"\u2190"}):this.update({"tooltip-title":b,"data-title-no-tooltip":b,"aria-keyshortcuts":W?"\u2192":"\u2190"});this.A=this.element.querySelector(".ytp-jump-button-text"); this.A.textContent=Math.abs(this.Z).toString();this.listen("click",this.onClick,this);Ce(M,this.element,this)}onClick(){this.L.logClick(this.element);this.L.seekBy(this.Z,!0);var M=this.Z>0?1:-1,W=Math.abs(this.Z);const b=this.L.rS().S_;b&&b.Gy(M,W);this.V.isActive()?this.B=!0:(M=["ytp-jump-spin"],this.Z<0&&M.push("backwards"),this.element.classList.add(...M),this.V.Wr())}};var vph=class extends np5{constructor(M,W){super(M,W,"timedMarkerCueRange","Ver momentos clave");this.J(M,g.KX("timedMarkerCueRange"),this.SR);this.J(M,"updatemarkervisibility",this.updateVideoData)}onClickCommand(M){g.z(M,r_p)&&this.SR()}updateVideoData(){this.V=vhS(this)?.onTap?.innertubeCommand;UzQ(this)}SR(){var M="";const W=this.A.D;var b=vhS(this)?.headerTitle;b=b?g.Ga(b):"";var T=this.L.getLoopRange()?.type==="clips";W.length>1&&!T&&(M=this.L.getProgressState().current*1E3,T=ubL(W,M),M=T!= null?W[T].title:b,T!=null&&T!==this.currentIndex&&(g.q8(this.L,"innertubeCommand",W[T].onActiveCommand),this.currentIndex=T));yxs(this,M)}};var mRV=class extends g.w{constructor(M){super({K:"button",rK:["ytp-miniplayer-button","ytp-button"],Y:{title:M.j("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"},U:["{{icon}}"]});this.L=M;this.visible=!1;this.listen("click",this.onClick);this.J(M,"fullscreentoggled",this.zv);this.L.j("player_tooltip_data_title_killswitch")? this.update({title:g.kf(M,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:mzS(this)}):this.update({"tooltip-title":g.kf(M,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:mzS(this)});Ce(M,this.element,this);M.createClientVe(this.element,this,62946);this.zv()}onClick(){g.q8(this.L,"onCollapseMiniplayer");this.L.logClick(this.element)}zv(){this.visible=!this.L.isFullscreen();this.eW(this.visible);this.L.logVisibility(this.element,this.visible&&this.gK)}dG(M){super.dG(M); this.L.logVisibility(this.element,this.visible&&M)}};var I7P=new U4(0,0,.05,0,0,1,1,1),LfI=class extends g.w{constructor(M,W,b,T,q,X=!1){const G={K:"div",rK:["ytp-input-slider-section"],U:[{K:"input",N:"ytp-input-slider",Y:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}","aria-valuetext":"{{ariaValueText}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};q&&G.U.unshift(q);X&&G.rK.push("ytp-vertical-slider");super(G); this.B=M;this.C=W;this.D=b;this.initialValue=T;this.header=q;this.A=0;this.V=this.hn("ytp-input-slider");this.Z=T?T:M;this.init();this.J(this.V,"input",this.S);this.J(this.V,"keydown",this.W)}init(){this.update({minvalue:this.B,maxvalue:this.C,stepvalue:this.D,slidervalue:this.Z,ariaValueNow:this.Z,ariaMinValue:this.B,ariaMaxValue:this.C,ariaValueText:`${this.Z.toFixed(2)}`});Ltq(this,this.Z)}S(){P0(this,Number(this.V.value));this.V.focus()}W(M){if(!M.defaultPrevented){switch(M.code){case "ArrowDown":M= -this.D;break;case "ArrowUp":M=this.D;break;default:return}P0(this,Math.min(this.C,Math.max(Number((this.Z+M).toFixed(2)),this.B)))}}};var l_$=class extends LfI{constructor(M){super(0,100,1,M.isMuted()?0:M.getVolume(),void 0,!0);this.L=M;this.O=I5(this.sY,10,this);this.X=!1;this.J(M,"onVolumeChange",this.onVolumeChange);this.J(this.element,"wheel",this.Zs)}onVolumeChange(M){if(this.X)this.X=!1;else{var W=M.volume;W===0||M.muted?P0(this,0):P0(this,W)}}S(){super.S();this.O(this.Z)}Zs(M){var W=-M.deltaY;W=M.deltaMode===WheelEvent.DOM_DELTA_LINE||M.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.fy(this.Z+W,0,100):g.fy(this.Z+g.fy(W/10,-10, 10),0,100);W===0?P0(this,0):P0(this,W);this.O(W);M.preventDefault();M.stopPropagation()}sY(M,W){this.X=!0;M===0||W?this.L.mute():(this.L.isMuted()&&this.L.unMute(),this.L.setVolume(M))}};var t7A=class extends g.w{constructor(M,W){super({K:"div",Y:{tabindex:"0",title:M.j("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},rK:["ytp-volume-popover"]});this.isVisible=!1;this.tooltip=W.j2();this.A=new l_$(M);g.t(this,this.A);this.A.cY(this.element);this.Z=new g.d9(()=>{NoJ(this,!1)},300); this.listen("mouseenter",()=>{this.Z.stop()}); this.listen("mouseleave",()=>{this.B()}); this.listen("focus",()=>{this.Z.stop()}); this.J(this.A.V,"focus",()=>{this.Z.stop()}); this.listen("focusout",()=>{this.B();this.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.UA(W.j2(),this.element));g.t(this,this.Z)}V(){NoJ(this,!0)}B(){this.Z.start()}C(){this.Z.stop()}S(){return this.isVisible}};var Ss=class extends g.w{constructor(M,W){var b=M.G().BY?{"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:M.j("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};super(M.j("delhi_modern_web_player")?{K:"div",N:"ytp-mute-button",U:[{K:"button",Y:b,rK:["ytp-volume-icon", "ytp-button"],R0:"{{icon}}"}]}:{K:"button",rK:["ytp-mute-button","ytp-button"],Y:b,U:[{K:"div",N:"ytp-volume-icon",R0:"{{icon}}"}]});this.L=M;this.V=null;this.C=this.lV=this.X=this.D=NaN;this.xk=this.O=null;this.S=[];this.A=[];this.visible=!1;this.B=this.Z=this.Zs=null;M.j("delhi_modern_web_player")&&this.update({"data-priority":4});b=this.L.G();this.updateValue("icon",t1());this.tooltip=W.j2();this.updateValue("dataTooltipOffsetY",0);this.B=g.wP("ytp-volume-icon",this.element);const T=this.L.j("delhi_modern_web_player_icons")? {K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",rK:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{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"}},{K:"path",N:"ytp-svg-volume-animation-small-ripple",Y:{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"}},{K:"path",N:"ytp-svg-volume-animation-big-ripple",Y:{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"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"defs",U:[{K:"clipPath",Y:{id:"ytp-svg-volume-animation-mask"},U:[{K:"path",Y:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",Y:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",N:"ytp-svg-volume-animation-mover",Y:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",Y:{id:"ytp-svg-volume-animation-slash-mask"},U:[{K:"path",N:"ytp-svg-volume-animation-mover", Y:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",TY:!0,rK:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{"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"}},{K:"path",TY:!0,rK:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Y:{"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.V=new g.ig(T);g.t(this,this.V);this.O=this.V.hn("ytp-svg-volume-animation-speaker");this.xk=this.O.getAttribute("d");this.S=g.gP("ytp-svg-volume-animation-mover",this.V.element);this.L.j("delhi_modern_web_player_icons");this.A=g.gP("ytp-svg-volume-animation-hider",this.V.element);this.L.j("delhi_modern_web_player_icons");this.MK=new xl;g.t(this,this.MK);this.An=new xl;g.t(this,this.An);this.J(M,"appresize",this.yz);this.J(M,"onVolumeChange",this.onVolumeChange);M.j("delhi_modern_web_player")? this.listen("click",this.Lp):this.listen("click",this.W);b.BY?(M.j("delhi_modern_web_player")&&!M.j("delhi_modern_web_player_horizontal_volume_controls")&&(this.Z=new t7A(M,W),this.Z.cY(this.element),g.t(this,this.Z),this.J(this.B,"mouseover",this.sY),this.J(this.B,"focus",this.sY),this.J(this.B,"mouseout",this.BY),this.J(this.B,"blur",this.BY)),b=M.j("delhi_modern_web_player")?this.B:this.element,this.addOnDisposeCallback(g.UA(W.j2(),b))):H5Q(this);this.message=null;M.createClientVe(this.element, this,28662);this.yz(M.qe().getPlayerSize());this.setVolume(M.getVolume(),M.isMuted())}sY(){this.L.V3()||(this.updateValue("dataTooltipOffsetY",-120),this.Z?.V(),this.Z?.C())}BY(){this.Z?.B()}yz(M){this.visible=M.width>=300||!1;this.eW(this.visible);this.L.logVisibility(this.element,this.visible&&this.gK)}W(){this.L.G().BY?this.L.isMuted()?this.L.unMute():this.L.mute():xf(this.message,this.element,!0);this.L.logClick(this.element)}Lp(M){this.L.G().BY&&this.Z?M.target===this.B?this.L.V3()&&!this.Z?.S()? this.Z?.V():this.W():this.Z?.V():this.W()}onVolumeChange(M){this.setVolume(M.volume,M.muted)}setVolume(M,W){var b=W?0:M/100;M=b===0?1:M>50?1:0;if(this.X!==M){const T=this.D;isNaN(T)?rxP(this,M):DP(this.MK,q=>{rxP(this,T+(this.X-T)*q)},250); this.X=M}b=b===0?1:0;if(this.C!==b){const T=this.lV;isNaN(T)?i5s(this,b):DP(this.An,q=>{i5s(this,T+(this.C-T)*q)},250); this.C=b}h8g(this,W)}dG(M){super.dG(M);this.L.logVisibility(this.element,this.visible&&M)}},f7Q=["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"],R8J=["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"],xzG=18,Fts=12,dw=22,of=12;g.ZZV=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-play-button","ytp-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},R0:"{{icon}}"});this.L=M;this.Z=null;this.transition=new xl;this.tooltip=W.j2();g.t(this,this.transition);M.createClientVe(this.element,this,36842);M.logVisibility(this.element,!0);this.J(M,"fullscreentoggled",this.onVideoDataChange); this.J(M,"presentingplayerstatechange",this.onStateChange);this.J(M,"videodatachange",this.onVideoDataChange);this.LN(M.getPlayerStateObject());this.listen("click",this.EE,this);this.addOnDisposeCallback(g.UA(W.j2(),this.element))}onStateChange(M){this.LN(M.state)}LN(M){var W=g.PM(this.L.getVideoData());let b=!1;M.isOrWillBePlaying()?M=W?4:2:M.Z(2)?(M=3,b=W):M=1;this.element.disabled=b;if(this.Z!==M){W=null;switch(M){case 2:W=g.kf(this.L,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"}); break;case 3:W="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:W=g.kf(this.L,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:W="Detener reproducci\u00f3n",this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n"})}M===3?this.L.G().j("player_tooltip_data_title_killswitch")?this.update({title:W,icon:c0(this,M)}):this.update({"tooltip-title":W,icon:c0(this,M)}):(this.L.j("player_tooltip_data_title_killswitch")? this.update({title:W}):this.update({"tooltip-title":W}),(W=c0(this,M))&&this.Z&&this.Z!==3?xMt(this.transition,this.element,W):this.updateValue("icon",W));this.tooltip.aq();this.Z=M}}onVideoDataChange(){g.H(this.element,"ytp-play-button-playlist",g.Le(this.L))}EE(M){this.L.logClick(this.element);if(this.L.getPlayerStateObject().isOrWillBePlaying())this.L.pauseVideo();else{if(this.L.isMinimized()&&this.L.getPlayerStateObject().isCued()){const W={};this.L.getVideoData()?.ll&&(W.cttAuthInfo={token:this.L.getVideoData().ll, videoId:this.L.getVideoData().videoId});FN("direct_playback",W);this.L.r0().timerName="direct_playback"}this.L.playVideo()}this.L.isMinimized()&&M?.type==="click"&&this.element.blur()}dG(M){super.dG(M)}};g.O_=class extends g.w{constructor(M,W,b){super({K:"a",rK:[b?"ytp-next-button":"ytp-prev-button","ytp-button"],Y:{role:"button",title:"{{title}}","data-tooltip-title":"{{tooltip-title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}",tabindex:"0"},U:[SPg(b,M.j("delhi_modern_web_player_icons"))]}); this.L=M;this.Z=b;this.playlist=this.videoData=null;this.W=!1;this.A=this.S=this.V=null;this.B=!1;this.tooltip=W.j2();b?M.createClientVe(this.element,this,6193):M.createClientVe(this.element,this,6194);this.J(M,"fullscreentoggled",this.onVideoDataChange);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"onPlaylistUpdate",this.onVideoDataChange);this.J(M,"onLoopRangeChange",this.onVideoDataChange);this.Z||this.J(M,"appresize",this.C);this.J(M,"mdxpreviousnextchange",()=>{QE(this);this.C()}); this.onVideoDataChange()}onVideoDataChange(){z8P(this);this.A&&(this.fN(this.A),this.A=null);this.videoData=this.L.getVideoData({playerType:1});if(this.playlist=this.L.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.A=this.J(this.L,"progresssync",this.D);this.B=uxJ(this);QE(this);this.C(this.L.qe().getPlayerSize())}C(M=this.L.qe().getPlayerSize()){var W=this.L.getLoopRange()?.type==="clips";const b=g.Le(this.L)||this.Z&&g.N8(this.L)&&!this.L.j("web_hide_next_button")|| Axt(this),T=!this.Z&&M.width<400;M=this.L.j("delhi_modern_web_player_horizontal_volume_controls")&&M.width<640;W=b&&!W&&!T&&!M;this.eW(W);this.L.logVisibility(this.element,W)}onClick(M){this.L.logClick(this.element);let W=!0;this.W?W=g.OA(M,this.L):M.preventDefault();W&&(this.Z&&this.L.getPresentingPlayerType()===5?this.L.publish("ytoprerollinternstitialnext"):this.Z?(N3(this.L.r0()),this.L.publish("playlistnextbuttonclicked",this.element),this.L.nextVideo(!0)):this.B?this.L.seekTo(0):(N3(this.L.r0()), this.L.publish("playlistprevbuttonclicked",this.element),this.L.previousVideo(!0)))}D(){const M=uxJ(this);M!==this.B&&(this.B=M,QE(this))}vY(){this.V&&(this.V(),this.V=null);z8P(this);super.vY()}};var I_r=class extends g.w{constructor(M,W){super({K:"div",N:"ytp-fine-scrubbing",U:[{K:"div",N:"ytp-fine-scrubbing-draggable",U:[{K:"div",N:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",Y:{"aria-hidden":"true"},N:"ytp-fine-scrubbing-cursor"},{K:"div", N:"ytp-fine-scrubbing-seek-time",Y:{"aria-hidden":"true"},R0:"{{seekTime}}"},{K:"div",N:"ytp-fine-scrubbing-play",U:[M.j("delhi_modern_web_player_icons")?vF():Ku()],Y:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{K:"div",N:"ytp-fine-scrubbing-dismiss",U:[g.aI()],Y:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});this.api=M;this.S=this.hn("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.hn("ytp-fine-scrubbing-dismiss");this.Zs=this.hn("ytp-fine-scrubbing-draggable"); this.playButton=this.hn("ytp-fine-scrubbing-play");this.thumbnails=[];this.V=[];this.xk=this.Z=0;this.BY=void 0;this.X=NaN;this.MK=this.D=this.B=this.W=0;this.A=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.Lp=0;this.isEnabled=this.yz=!1;gw(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.UA(W,this.dismissButton));this.addOnDisposeCallback(g.UA(W,this.playButton));this.sY=new g.C0(this.Zs,!0);this.sY.subscribe("dragstart",this.An,this);this.sY.subscribe("dragmove",this.lV, this);this.sY.subscribe("dragend",this.jT,this);this.J(M,"SEEK_COMPLETE",this.Ds);M.j("web_fix_fine_scrubbing_false_play")&&this.J(M,"rootnodemousedown",b=>{this.O=b}); this.S.addEventListener("keydown",()=>{}); g.t(this,this.sY);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}wK(M){this.An(M.pageX);this.lV(M.pageX+M.deltaX);s7(this)}An(M){this.X=M-this.xk}lV(M){M-=this.xk;!isNaN(this.X)&&this.thumbnails.length>0&&(this.D=M-this.X,this.thumbnails.length>0&&this.D!==0&&(this.B=this.W+this.D,M=PlS(this,this.B),this.B<=this.Z/2&&this.B>=O5t(this)?(this.api.seekTo(M, !1,void 0,void 0,25),g.iq(this.Zs,"transform",`translateX(${this.B-this.Z/2}px)`),gw(this,M)):this.B=this.W))}jT(){this.O&&(this.O.l9=!0);var M=(0,g.u)()-this.Lp<300;if(Math.abs(this.D)<5&&!M){this.Lp=(0,g.u)();M=this.X+this.D;const W=this.Z/2-M;this.An(M);this.lV(M+W);s7(this);this.api.logClick(this.S)}s7(this)}Ds(){ww(this,this.api.getCurrentTime())}play(M){this.api.seekTo(PlS(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();M&&this.api.logClick(this.playButton)}onExit(M){this.api.seekTo(this.MK, void 0,void 0,void 0,63);this.api.playVideo();M&&this.api.logClick(this.dismissButton)}XT(M,W){this.xk=M;this.Z=W;ww(this,this.api.getCurrentTime())}EY(M){this.scale=M?1.5:1}enable(){this.isEnabled||(this.isEnabled=!0,this.MK=this.api.getCurrentTime(),gw(this,this.MK),g.H(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.BY=this.J(this.element,"wheel",this.wK),this.logVisibility(this.isEnabled))}disable(){this.isEnabled=!1;this.hide();g.H(this.api.getRootNode(),"ytp-fine-scrubbing-enable", this.isEnabled);this.BY&&this.fN(this.BY);this.logVisibility(this.isEnabled)}reset(){this.disable();this.A=[];this.yz=!1}logVisibility(M){this.api.logVisibility(this.element,M);this.api.logVisibility(this.S,M);this.api.logVisibility(this.dismissButton,M);this.api.logVisibility(this.playButton,M)}vY(){for(;this.V.length;)this.V.pop()?.dispose();super.vY()}},e8q=class extends g.w{constructor(){super({K:"div",N:"ytp-fine-scrubbing-thumbnail"})}},dzL=class extends g.w{constructor(){super({K:"div",N:"ytp-fine-scrubbing-chapter-title", U:[{K:"div",N:"ytp-fine-scrubbing-chapter-title-content",R0:"{{chapterTitle}}"}]})}};var pag=class extends g.w{constructor(M){super({K:"div",N:"ytp-heat-map-chapter",U:[{K:"svg",N:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{K:"defs",U:[{K:"clipPath",Y:{id:"{{id}}"},U:[{K:"path",N:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]},{K:"linearGradient",Y:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},U:[{K:"stop",Y:{offset:"0%","stop-color":"white","stop-opacity":"1"}}, {K:"stop",Y:{offset:"100%","stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",N:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",N:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",N:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",N:"ytp-modern-heat-map",Y:{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=M;this.W=this.hn("ytp-heat-map-svg");this.S=this.hn("ytp-heat-map-path");this.A=this.hn("ytp-heat-map-graph");this.C=this.hn("ytp-heat-map-play");this.Z=this.hn("ytp-heat-map-hover");this.B=this.hn("ytp-modern-heat-map");this.S2=!1;this.V=60;M=`${g.Zl(this)}`;this.update({id:M});M=`url(#${M})`;this.A.setAttribute("clip-path",M);this.C.setAttribute("clip-path",M);this.Z.setAttribute("clip-path", M)}X(M){this.C.setAttribute("width",`${(M*100).toFixed(2)}%`)}D(M){this.Z.setAttribute("width",`${(M*100).toFixed(2)}%`)}};var s8G=class extends g.w{constructor(){super({K:"div",N:"ytp-chapter-hover-container",U:[{K:"div",N:"ytp-progress-bar-padding"},{K:"div",N:"ytp-progress-list",U:[{K:"div",rK:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",N:"ytp-progress-linear-live-buffer"},{K:"div",N:"ytp-load-progress"},{K:"div",N:"ytp-hover-progress"},{K:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.V=this.hn("ytp-progress-list");this.S=this.hn("ytp-progress-linear-live-buffer"); this.A=this.hn("ytp-ad-progress-list");this.C=this.hn("ytp-load-progress");this.W=this.hn("ytp-play-progress");this.B=this.hn("ytp-hover-progress");this.Z=this.hn("ytp-chapter-hover-container")}BP(M){return M==="PLAY_PROGRESS"?this.W:M==="LOAD_PROGRESS"?this.C:M==="LIVE_BUFFER"?this.S:this.B}};var NHQ=class{constructor(){this.V=this.position=this.B=this.Z=this.A=this.width=NaN}update(M,W,b=0,T=0){this.width=W;this.A=b;this.Z=W-b-T;this.position=g.fy(M,b,b+this.Z);this.B=this.position-b;this.V=this.B/this.Z}};var qgq=class extends g.w{constructor(){super({K:"div",N:"ytp-timed-marker"});this.Z=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}};g.HZ9=class extends g.YV{constructor(M,W){super({K:"div",N:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},U:[{K:"div",rK:["ytp-heat-map-container"],U:[{K:"div",N:"ytp-heat-map-edu"}]},{K:"div",rK:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{K:"div",N:"ytp-chapters-container"},{K:"div",N:"ytp-timed-markers-container"},{K:"div", N:"ytp-clip-start-exclude"},{K:"div",N:"ytp-clip-end-exclude"},{K:"div",N:"ytp-scrubber-container",U:[{K:"div",rK:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{K:"div",N:"ytp-scrubber-pull-indicator"},{K:"img",rK:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",rK:["ytp-fine-scrubbing-container"],U:[{K:"div",N:"ytp-fine-scrubbing-edu"}]},{K:"div",N:"ytp-bound-time-left",R0:"{{boundTimeLeft}}"},{K:"div",N:"ytp-bound-time-right",R0:"{{boundTimeRight}}"},{K:"div",N:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"}, R0:"{{clipstarticon}}"},{K:"div",N:"ytp-clip-end",Y:{title:"{{clipendtitle}}"},R0:"{{clipendicon}}"}]});this.api=M;this.Ha=!1;this.Ic=this.Vp=this.wK=this.sY=this.W=this.nx=0;this.zm=null;this.XP=!1;this.Lp={};this.FT={};this.clipEnd=Infinity;this.cP=this.hn("ytp-clip-end");this.x_=new g.C0(this.cP,!0);this.A5=this.hn("ytp-clip-end-exclude");this.Hr=this.hn("ytp-clip-start-exclude");this.clipStart=0;this.fv=this.hn("ytp-clip-start");this.m$=new g.C0(this.fv,!0);this.O=this.XX=0;this.progressBar=this.hn("ytp-progress-bar"); this.d9={};this.jT={};this.Ds=this.hn("ytp-chapters-container");this.hD=this.hn("ytp-timed-markers-container");this.Z=[];this.D=[];this.Px={};this.RV=null;this.lV=-1;this.OY=this.An=0;this.p7=this.X=null;this.ek=this.hn("ytp-scrubber-button");this.yz=this.hn("ytp-decorated-scrubber-button");this.Fp=this.hn("ytp-scrubber-container");this.bV=new g.xU;this.s2=0;this.u3=new NHQ;this.B=new Dn(0,0);this.IT=null;this.C=this.S6=!1;this.vg=null;this.Zs=this.hn("ytp-heat-map-container");this.sj=this.hn("ytp-heat-map-edu"); this.A=[];this.heatMarkersDecorations=[];this.EY=this.hn("ytp-fine-scrubbing-container");this.GY=this.hn("ytp-fine-scrubbing-edu");this.V=void 0;this.xk=this.GN=this.MK=!1;this.tooltip=W.j2();this.addOnDisposeCallback(g.UA(this.tooltip,this.cP));g.t(this,this.x_);this.x_.subscribe("hoverstart",this.Eh,this);this.x_.subscribe("hoverend",this.Tr,this);this.J(this.cP,"click",this.aT);this.addOnDisposeCallback(g.UA(this.tooltip,this.fv));g.t(this,this.m$);this.m$.subscribe("hoverstart",this.Eh,this); this.m$.subscribe("hoverend",this.Tr,this);this.J(this.fv,"click",this.aT);waL(this);this.J(M,"resize",this.XT);this.J(M,"presentingplayerstatechange",this.yv);this.J(M,"videodatachange",this.hm);this.J(M,"videoplayerreset",this.NW);this.J(M,"cuerangesadded",this.X5);this.J(M,"cuerangesremoved",this.Ug);this.J(M,"onLoopRangeChange",this.q1);this.J(M,"innertubeCommand",this.onClickCommand);this.J(M,"onRetroModeChanged",this.bU);this.J(M,g.kJ("timedMarkerCueRange"),this.kX);this.J(M,"updatemarkervisibility", this.aZ);this.J(M,LY(M.G().hT())?"playbackChange":"serverstitchedvideochange",this.FY);this.updateVideoData(M.getVideoData(),!0);this.q1(M.getLoopRange());$3(this)&&!this.V&&(this.V=new I_r(this.api,this.tooltip),M=g.de(this.element).x||0,this.V.XT(M,this.W),this.V.cY(this.EY),g.t(this,this.V),this.J(this.V.dismissButton,"click",this.gy),this.J(this.V.playButton,"click",this.k_),this.J(this.V.element,"dblclick",this.k_));this.api.createClientVe(this.Zs,this,139609,!0);this.api.createClientVe(this.sj, this,140127,!0);this.api.createClientVe(this.GY,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}aZ(){var M=!1;const W=this.api.getVideoData();if(!W)return M;this.api.lN("timedMarkerCueRange");Mk(this);for(const B of W.lV){var b=this.jT[B]?.markerType,T=this.jT[B]?.markers;if(!T)break;if(b==="MARKER_TYPE_TIMESTAMPS"){for(const D of T)M=new qgq,b=D,M.title=b.title?.simpleText||"",M.timeRangeStartMillis=Number(b.startMillis),M.Z=Number(b.durationMillis),M.onActiveCommand=b.onActive?.innertubeCommand?? void 0,jYl(this,M);Tt(this,this.D);M=this.D;b=this.Px;var q=[],X=null;for(var G=0;GV&&(X.end=V);V=P3l(V,V+J);q.push(V);X=V;b[V.id]=M[G].onActiveCommand}}this.api.QV(q);a:{for(const D of T)if(D.sourceType==="SOURCE_TYPE_SMART_SKIP"){M=!1;break a}M=!0}M&&(this.RV=this.jT[B]);M=!0}else if(b==="MARKER_TYPE_HEATMAP"){if((T=this.jT[B])&&T.markers){b=T.markersMetadata?.heatmapMetadata?.minHeightDp?? 0;q=T.markersMetadata?.heatmapMetadata?.maxHeightDp??60;X=this.Z.length;G=null;for(V=0;V=J&&n<=D&&a.push(E)}q>0&&(this.Zs.style.height=`${q}px`);ghy(this.A[V],a,b,q,V===0);a.length>0&&(G=a[a.length-1])}g.WS(this)}b=[];if(T=T.markersDecoration?.timedMarkerDecorations)for(const D of T)b.push({visibleTimeRangeStartMillis:D.visibleTimeRangeStartMillis?? -1,visibleTimeRangeEndMillis:D.visibleTimeRangeEndMillis??-1,decorationTimeMillis:D.decorationTimeMillis??NaN,label:D.label?g.Ga(D.label):""});T=b;this.heatMarkersDecorations=T}}W.WC=this.D;g.H(this.element,"ytp-timed-markers-enabled",M);return M}XT(){g.WS(this);bV(this);Tt(this,this.D);if(this.V){const M=g.de(this.element).x||0;this.V.XT(M,this.W)}}bU(){const M=this.api.getVideoData();M&&EOs(this,M)}onClickCommand(M){if(M=g.z(M,Eb)){const W=M.key;M.isVisible&&W&&qk(this,W)}}kX(M){g.q8(this.api,"innertubeCommand", this.Px[M.id])}SR(){bV(this);const M=this.api.getCurrentTime();(Mthis.clipEnd)&&this.aT()}oV(M){if(!M.defaultPrevented){let W=!1;switch(M.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);W=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);W=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);W=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);W=!0;break;case 38:this.api.j("enable_key_press_seek_logging")&&Us(this,this.api.getCurrentTime(),this.api.getCurrentTime()+ 5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS");this.api.seekBy(5,void 0,void 0,72);W=!0;break;case 40:this.api.j("enable_key_press_seek_logging")&&Us(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),W=!0}W&&M.preventDefault()}}hm(M,W){this.updateVideoData(W,M==="newdata")}NW(){this.hm("newdata",this.api.getVideoData())}updateVideoData(M,W=!1){var b= !!M&&M.S2();b&&(M.yz()||BS(this)?this.S6=!1:(this.api.G().hT().Z.UY(L9Q),this.S6=M.allowLiveDvr),g.H(this.api.getRootNode(),"ytp-enable-live-buffer",!!M?.yz()),EOs(this,M));k3(this,this.api.jO());if(W){if(b){W=M.clipEnd;this.clipStart=M.clipStart;this.clipEnd=W;n0(this);for(Gt(this,this.O,this.XX);this.A.length>0;)this.A.pop().dispose();this.heatMarkersDecorations=[];this.d9={};this.V?.reset();K0(this);g.H(this.api.getRootNode(),"ytp-fine-scrubbing-exp",$3(this))}else this.aT();this.S()}if(M){W=this.IT?.type=== "clips";if(b=!M.isLivePlayback){b=this.api.getVideoData();var T=g.cQ(b);const G=MNa(b);b=T!=null||G!=null&&G.length>0||b.YX?.length>0}if(b&&!W){W=this.api.getVideoData();T=g.cQ(W);b=!1;if(T?.markersMap){b=this.api.getVideoData();b.U7=T.visibleOnLoad?.key||b.U7;T=T.markersMap;for(var q of T)q.key&&q.value&&(this.d9[q.key]=q.value,q.value.onChapterRepeat&&(b.o4=q.value.onChapterRepeat));b.U7!=null&&qk(this,b.U7);b=!0}if(W.YX?.length>0){q=g.nP.getState().entities;for(var X of W.YX)if(T=dL(q,X)?.markersList, T?.markerType==="MARKER_TYPE_TIMESTAMPS"||T?.markerType==="MARKER_TYPE_HEATMAP")this.jT[X]=T;b=this.aZ()||b}!b&&(X=MNa(W))&&(bly(this,X),W.aT=this.Z,TcL(this));Ufy(this,null);M.cC&&this.A.length===0&&(M=M.cC,X=M.key,M.isVisible&&X&&qk(this,X))}else waL(this),Mk(this)}bV(this)}yv(M){this.X&&!M.state.Z(32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();this.V?.isEnabled&&M.state.Z(8)&&this.api.pauseVideo();M=this.api.getPresentingPlayerType()===2||!this.api.jO()||this.api.getPlayerState()=== -1&&this.api.getCurrentTime()===0;g.H(this.ek,"ytp-hide-scrubber-button",M)}q1(M){const W=!!this.IT!==!!M,b=this.IT;this.IT=M;Ufy(this,b);M?.type!=="clips"&&M||(M?(this.updateValue("clipstarticon",bFp()),this.updateValue("clipendicon",bFp()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",g0s()),this.updateValue("clipendicon",QKQ()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")), W&&(this.updateVideoData(this.api.getVideoData(),!0),g.WS(this)),n0(this));Gt(this,this.O,this.XX)}eI(){this.api.publish("progressBarHoverStart")}G4(M,W,b){var T=g.de(this.element),q=JG(this).Z;const X=b?b.getAttribute("data-tooltip"):void 0;var G=b?b.getAttribute("data-position"):void 0,V=b?b.getAttribute("data-offset-y"):void 0;V=V?Number(V):0;G&&(M=ew(this.B,Number(b.getAttribute("data-position")),0)*q+g.de(this.progressBar).x);this.bV.x=M-T.x;this.bV.y=W-T.y;M=JG(this);T=vS(this,M);W=0;this.api.getVideoData()?.yz()&& ((W=this.api.getProgressState().seekableEnd)&&T>W&&(T=W,M.position=ew(this.B,W)*JG(this).Z),W=this.B.V);BS(this)&&(W=this.B.V);W=X||g.O3(this.S6?T-this.B.Z:T-W);b=M.position+this.nx;T-=this.api.Ga();if(!this.V?.isEnabled)if(this.api.SH()){if(this.Z.length>1){q=ym(this,this.bV.x,!0);if(!this.IT)for(G=0;G1)for(G=0;G0){q=this.bV.x; for(var J of this.D)G=Vm(this,J.timeRangeStartMillis/(this.B.Z*1E3),JG(this)),g.H(J.element,"ytp-timed-marker-hover",G<=q&&G+6>=q)}q=this.tooltip.scale;J=this.api.j("delhi_modern_web_player")?67:45;V=(isNaN(V)?0:V)-J*q;this.api.j("web_key_moments_markers")?this.RV?(J=ubL(this.D,T*1E3),J=J!=null?this.D[J].title:""):(J=ZG(this.Z,T*1E3),J=this.Z[J].title):(J=ZG(this.Z,T*1E3),J=this.Z[J].title);J||(V+=16*q);this.tooltip.scale===.6&&(g.Zk(this.api.G())?(V=this.api.qe().getPlayerSize().height-225,q=this.api.j("delhi_modern_web_player")? 70:110,V=J?V+q:V+q+16):V=J?110:126);q=ZG(this.Z,T*1E3);this.lV=K_P(this,T,q)?q:K_P(this,T,q+1)?q+1:-1;g.H(this.api.getRootNode(),"ytp-progress-bar-snap",this.lV!==-1&&this.Z.length>1);q=!1;for(var B of this.heatMarkersDecorations)G=T*1E3,G>=B.visibleTimeRangeStartMillis&&G<=B.visibleTimeRangeEndMillis&&(J=B.label,W=g.O3(vS(this,M)),q=!0);this.GN!==q&&(this.GN=q,this.api.logVisibility(this.sj,this.GN));g.H(this.api.getRootNode(),"ytp-progress-bar-decoration",q);B=160*this.tooltip.scale*2;q=J.length* (this.C?8.55:5.7);q=q<=B?q:B;G=q<160*this.tooltip.scale;B=3;!G&&q/2>M.position&&(B=1);!G&&q/2>this.W-M.position&&(B=2);this.api.G().W&&(V-=10);this.A.length&&this.A[0].S2&&(V-=14*(this.C?2:1),this.MK||(this.MK=!0,this.api.logVisibility(this.Zs,this.MK)));$3(this)&&(this.V?.isEnabled||this.wK>0)&&(V-=this.V?.isEnabled?(this.C?135:90)-this.sY:this.wK);M=void 0;$3(this)&&!this.api.j("web_player_hide_fine_scrubbing_edu")&&(M="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas",this.xk||(this.xk= !0,this.api.logVisibility(this.GY,this.xk)));this.tooltip.J3(b,T,W,!!X,V,J,B,M)}else this.tooltip.J3(b,T,W,!!X,V);g.pY(this.api.getRootNode(),"ytp-progress-bar-hover");DfL(this)}JX(){this.S();g.Mw(this.api.getRootNode(),"ytp-progress-bar-hover");this.MK&&(this.MK=!1,this.api.logVisibility(this.Zs,this.MK));this.xk&&(this.xk=!1,this.api.logVisibility(this.GY,this.xk));this.api.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}Dc(M, W){const b=g.de(this.element);this.s2=M-b.x;$3(this)&&this.V&&(this.V.yz?ww(this.V,this.api.getCurrentTime()):ohS(this.V),this.V.show(),g.H(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.V.isEnabled));this.zm&&(this.zm.dispose(),this.zm=null);this.Vp=W;this.Ic=this.api.getCurrentTime();this.Z.length>1&&this.lV!==-1?this.api.seekTo(this.Z[this.lV].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(vS(this,JG(this)),!1,void 0,void 0,7);g.pY(this.element,"ytp-drag");(this.Ha=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}YX(){if($3(this)&&this.V){var M=(this.C?135:90)-this.sY;this.wK>=M*.5?(this.V.enable(),ww(this.V,this.api.getCurrentTime()),kTS(this,M)):K0(this)}if(this.api.getPlayerStateObject().Z(32)||this.api.getPresentingPlayerType()===3)if(this.V?.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Z.length>1&&this.lV!==-1)this.api.j("html5_enable_progress_bar_slide_seek_logging")&&Us(this,this.Ic,this.Z[this.lV].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Z[this.lV].startTime/1E3,void 0,void 0,void 0,7);else{M=vS(this,JG(this));this.api.j("html5_enable_progress_bar_slide_seek_logging")&&Us(this,this.Ic,M,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(M,void 0,void 0,void 0,7);for(const W of this.heatMarkersDecorations)M*1E3>=W.visibleTimeRangeStartMillis&&M*1E3<=W.visibleTimeRangeEndMillis&&this.api.logClick(this.sj)}g.Mw(this.element, "ytp-drag");this.BY&&(this.yz.src=this.BY);this.Ha&&!this.api.getPlayerStateObject().Z(2)&&this.api.playVideo()}}F5(M,W){const b=JG(this),T=vS(this,b);this.api.qe().SX||(b.position>this.s2+2?this.WP&&(this.yz.src=this.WP):b.position{const q=g.de(this.element).x||0;this.s2=M-q},150)); this.api.seekTo(T,!1,void 0,void 0,7);$3(this)&&this.V?.yz&&(ww(this.V,T),this.V.isEnabled||(this.wK=g.fy(this.Vp-W-10,0,(this.C?135:90)-this.sY),kTS(this,this.wK)))}S(){this.tooltip.IL()}Eh(){this.IT||(this.updateValue("clipstarticon",cNS()),this.updateValue("clipendicon",cNS()),g.pY(this.element,"ytp-clip-hover"))}Tr(){this.IT||(this.updateValue("clipstarticon",g0s()),this.updateValue("clipendicon",QKQ()),g.Mw(this.element,"ytp-clip-hover"))}aT(){this.clipStart=0;this.clipEnd=Infinity;n0(this); Gt(this,this.O,this.XX)}X5(M){for(const W of M)if(W.visible){if(M=W.getId(),!this.Lp[M]){const b=g.Gr("DIV");W.tooltip&&b.setAttribute("data-tooltip",W.tooltip);this.Lp[M]=W;this.FT[M]=b;g.s9(b,W.style);nOg(this,M);this.api.G().j("disable_ad_markers_on_content_progress_bar")||this.Z[0].A.appendChild(b)}}else ZlL(this,W)}Ug(M){for(const W of M)ZlL(this,W)}gy(M){this.V&&(this.V.onExit(M!=null),K0(this))}k_(M){this.V&&(this.V.play(M!=null),K0(this))}FY(){k3(this,this.api.jO())}vY(){k3(this,!1);super.vY()}vp(){return this.V}};var f_I=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-remote-button","ytp-button"],Y:{title:M.j("player_tooltip_data_title_killswitch")?"Ver en la televisi\u00f3n":"","data-tooltip-title":"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},R0:"{{icon}}"});this.L=M;this.tT=W;this.Z=null;this.J(M,"onMdxReceiversChange",this.zv);this.J(M,"presentingplayerstatechange",this.zv);this.J(M,"appresize",this.zv);M.createClientVe(this.element,this,139118);this.zv();this.listen("click", this.V,this);Ce(M,this.element,this)}isActive(){return!!this.L.getOption("remote","casting")}zv(){var M=!1;this.L.getOptions().includes("remote")&&(M=this.L.getOption("remote","receivers").length>1);this.eW(M&&this.L.qe().getPlayerSize().width>=400);this.L.logVisibility(this.element,this.Ta);let W=1;M&&this.isActive()&&(W=2);if(this.Z!==W){this.Z=W;M=this.L.j("delhi_modern_web_player_icons");switch(W){case 1:this.updateValue("icon",M?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"}, U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",TY:!0,Y:{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", M?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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.dhy())}g.H(this.element,"ytp-remote-button-active",this.isActive())}}V(){if(this.L.getOption("remote","quickCast"))this.L.setOption("remote","quickCast",!0);else{var M=this.tT,W=this.element;if(M.T4())M.Lv();else{M.initialize();a:{for(b of M.ul.items)if(b.priority===1)break a;var b=null}b&&(b.open(),M.Nd(W));M.Nd(W)}}this.L.logClick(this.element)}};var R9J=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-button","ytp-settings-button"],Y:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Ta(),title:M.j("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},U:[M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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.Lu()]});this.L=M;this.tT=W;this.V=!0;this.listen("click",this.B);this.J(M,"onPlaybackQualityChange",this.updateBadge);this.J(M,"videodatachange",this.updateBadge);this.J(M,"webglsettingschanged",this.updateBadge);this.J(M,"appresize",this.Z);Ce(M,this.element,this);this.L.createClientVe(this.element,this,28663);this.updateBadge();this.Z(M.qe().getPlayerSize())}Z(M){const W=this.L.G();let b=400;W.C?b=300:W.W&&(b=200);M=this.V&&M.width>=b;this.eW(M);this.L.logVisibility(this.element, M)}B(){if(this.tT.Ta)this.tT.Lv();else{const M=g.uj(this.L.lk());M&&!M.loaded&&(M.nK("tracklist",{includeAsr:!0}).length||M.load());this.L.logClick(this.element);this.tT.Nd(this.element)}}updateBadge(){const M=this.L.isHdr();var W=this.L.getPresentingPlayerType(),b=W!==2&&W!==3,T=g.ZA(this.L),q=b&&!!g.tp(this.L.lk());W=q&&T.displayMode===1;T=q&&T.displayMode===2;b=(q=W||T)||!b?null:this.L.getPlaybackQuality();g.H(this.element,"ytp-hdr-quality-badge",M);g.H(this.element,"ytp-hd-quality-badge",!M&& (b==="hd1080"||b==="hd1440"));g.H(this.element,"ytp-4k-quality-badge",!M&&b==="hd2160");g.H(this.element,"ytp-5k-quality-badge",!M&&b==="hd2880");g.H(this.element,"ytp-8k-quality-badge",!M&&b==="highres");g.H(this.element,"ytp-3d-badge-grey",!M&&q&&W);g.H(this.element,"ytp-3d-badge",!M&&q&&T)}};var rO9=class extends g.RV{constructor(M,W,b){if(M.j("web_add_footer_template_to_audio_track")){var T="Edita tus $BEGIN_LINKidiomas preferidos$END_LINK en los ajustes".split(/\$(BEGIN|END)_LINK/);T={K:"div",N:"ytp-panel-footer-content",U:[T[0],{K:"a",N:"ytp-panel-footer-content-link",Y:{href:"/account_playback"},R0:T[2]},T[4]]}}super("Pista de audio",g.Bv.AUDIO,M,W,void 0,void 0,T);this.L=M;this.S=b;this.tracks={};g.pY(this.element,"ytp-audio-menu-item");this.countLabel=new g.w({K:"div",U:[{K:"span", R0:"Pista de audio"},{K:"span",N:"ytp-menuitem-label-count",R0:"{{content}}"}]});M.j("web_settings_menu_icons")&&!this.L.j("html5_enable_new_audio_settings_menu")&&(W=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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(W));g.t(this,this.countLabel);g.i7(this,this.countLabel);M.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.J(M,"videodatachange",this.zv);this.J(M,"onPlaybackAudioChange",this.zv);this.zv()}zv(){var M=this.L.getAvailableAudioTracks();if(M.length>1){const W=M.filter(T=>T.isAutoDubbed()),b=M.filter(T=>!T.isAutoDubbed()).map(this.C); W.length>0&&(this.L.dK("ad_grp",{ad_c:W.length,t_c:M.length}),b.push(new ygq),b.push(...W.map(this.C)));UMq(this,b);this.tracks=g.IQ(M,this.C,this);this.countLabel.setContent(M.length?` (${M.length})`:"");this.publish("size-change");M=this.C(this.L.getAudioTrack());this.V(M);this.L.j("html5_enable_new_audio_settings_menu")&&this.S?.Xk(M.toString());this.enable(!0)}else this.L.j("html5_enable_new_audio_settings_menu")&&this.S?.Xk(""),this.enable(!1)}Z(M){super.Z(M);M=this.tracks[M];this.L.setAudioTrack(M); this.tT.Xo();this.L.dK("ad_sel",{lang:M.r9.id})}C(M){return M.toString()}W(M){this.L.j("html5_enable_new_audio_settings_menu")?this.S&&(M?this.S.OB(this):this.S.B3(this)):super.W(M)}onClick(){this.L.logClick(this.element)}};var xRA=class extends g.M3{constructor(M,W){super(g.FS({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.Bv.rP);this.L=M;this.tT=W;g.pY(this.element,"ytp-audio-settings-menu-item");this.KN=new g.Hv(M,void 0,"Audio");this.countLabel=new g.w({K:"div",U:[{K:"span",R0:"Audio"},{K:"span",N:"ytp-menuitem-label-count",R0:"{{content}}"}]});M.j("web_settings_menu_icons")&&this.setIcon({K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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.ZB=new rO9(M,this.tT,this);g.t(this,this.ZB);this.J(M,"settingsMenuInitialized",this.jk.bind(this));this.J(M,"videodatachange",this.jk.bind(this));g.t(this,this.countLabel);g.i7(this,this.countLabel);this.tT.OB(this);this.J(M,"onPlaybackAudioChange",this.Xm);this.listen("keydown",this.oV);this.listen("click",this.open)}Xm(){this.L.Xm()}open(){this.KN.gT()>0&&g.$T(this.tT,this.KN)}jk(){this.KN.gT()>0&&this.L.getPresentingPlayerType()!==2&&this.L.getPresentingPlayerType()!==3? this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}oV(M){M.defaultPrevented||(this.open(),M.preventDefault())}OB(M){this.KN.OB(M)}B3(M){this.KN.B3(M)}Xk(M){this.setContent(M)}};var FfQ=class extends aV{constructor(M,W){super("Reproducci\u00f3n autom\u00e1tica",g.Bv.Mc);this.L=M;this.tT=W;this.V=!1;this.B=[];this.J(M,"presentingplayerstatechange",this.jk);this.subscribe("select",this.onSelect,this);M.createClientVe(this.element,this,113682);this.jk()}jk(){var M=this.L.getPresentingPlayerType();if(M!==2&&M!==3&&g.N8(this.L))this.V||(this.tT.OB(this),this.V=!0,this.B.push(this.J(this.L,"videodatachange",this.jk)),this.B.push(this.J(this.L,"videoplayerreset",this.jk)),this.B.push(this.J(this.L, "onPlaylistUpdate",this.jk)),this.B.push(this.J(this.L,"autonavchange",this.A)),M=this.L.getVideoData(),this.A(M.autonavState),this.L.logVisibility(this.element,this.V));else if(this.V){this.tT.B3(this);this.V=!1;for(const W of this.B)this.fN(W)}}A(M){this.Z(M!==1)}onSelect(M){this.L.P_(M?2:1);this.V&&(this.L.logVisibility(this.element,this.V),this.L.logClick(this.element))}vY(){this.V&&this.tT.B3(this);super.vY()}};var iZI=class extends g.M3{constructor(M,W){super(g.FS({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.L=M;this.tT=W;this.J(this.element,"click",this.onClick);this.tT.OB(this)}onClick(M){M.preventDefault();g.am(this.L)?.fT()?.Lv();g.am(this.L)?.CL()?.Nd(M.target)}};var h95=class extends g.RV{constructor(M,W){let b;g.Zk(M.G())&&(b={K:"div",N:"ytp-panel-footer-content",U:[{K:"span",R0:"Ajusta la calidad de descarga desde tu "},{K:"a",N:"ytp-panel-footer-content-link",R0:"Configuraci\u00f3n",Y:{href:"/account_downloads"}}]});super("Calidad",g.Bv.pM,M,W,void 0,void 0,b);this.L=M;this.MK={};this.sY={};this.C={};this.Lp=new Set;this.S=this.O=!1;this.Zs="unknown";this.yz="";this.An=new g.Nn;g.t(this,this.An);this.O=this.L.j("web_player_use_new_api_for_quality_pullback"); this.S=this.L.j("web_player_enable_premium_hbr_playback_cap");M.j("web_settings_menu_icons")&&(W=M.j("delhi_modern_web_player_icons")?{K:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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"}}]}:{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{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(W));g.pY(this.KN.element,"ytp-quality-menu");this.J(M,"videodatachange",this.jk);this.J(M,"videoplayerreset",this.jk);this.J(M,"onPlaybackQualityChange",this.xk);this.jk();M.createClientVe(this.element,this,137721)}jk(){var M= this.L.getPresentingPlayerType();if(M!==2&&M!==3){this.MK=this.L.a8();M=this.L.getAvailableQualityLevels();if(this.S){this.C={};var W=g.GW(this.L,"getAvailableQualityData",[]);for(var b of W)this.C[b.qualityLabel]=b;W=Object.keys(this.C);M[M.length-1]==="auto"&&W.push("auto");this.Lp=new Set(M)}else if(this.O){b=g.GW(this.L,"getAvailableQualityData",[]);var T=[];for(W of b)this.sY[W.quality]=W,W.quality&&T.push(W.quality);M[M.length-1]==="auto"&&T.push("auto");W=T}else W=M;g.iWL(this.L)&&this.L.B1()&& W.unshift("missing-qualities");{T=this.L.app.Jn();const q=T.getVideoData();!q.V||!q.V.video||q.V.video.qualityOrdinal<1080||q.AO?M=!1:(M=/^qsa/.test(q.clientPlaybackNonce),b="r",q.V.id.indexOf(";")>=0&&(M=/^[a-p]/.test(q.clientPlaybackNonce),b="x"),M?(T.dK("iqss",{trigger:b},!0),M=!0):M=!1)}M&&W.unshift("inline-survey");this.A(W);M=this.L.getVideoData().cotn?!0:!1;b=this.An.tj();CFy(this,trJ(this.L.G(),M,b));if(W.length){this.xk();this.enable(!0);return}}this.enable(!1)}xk(){if(this.S){var M=this.L.getPreferredQuality(); this.Lp.has(M)&&(this.Zs=this.L.getPlaybackQuality(),this.yz=this.L.getPlaybackQualityLabel(),M==="auto"?(this.V(M),this.setContent(this.B(M))):this.V(this.yz))}else M=this.L.getPreferredQuality(),this.options[M]&&(this.Zs=this.L.getPlaybackQuality(),this.V(M),M==="auto"&&this.setContent(this.B(M)))}Z(M){if(M!=="missing-qualities"){super.Z(M);var W=this.S?this.C[M]:this.sY[M];var b=W?.quality,T=W?.formatId;W=W?.paygatedQualityDetails;var q=W?.endpoint;W&&this.L.logClick(this.options[M]?.element); if(this.S){if(g.z(q,FNQ)?.popup?.notificationActionRenderer)g.q8(this.L,"innertubeCommand",q);else if(q){g.q8(this.L,"innertubeCommand",q);return}T?this.L.setPlaybackQuality(b,T):this.L.setPlaybackQuality(b)}else{if(this.O)if(g.z(q,FNQ)?.popup?.notificationActionRenderer)g.q8(this.L,"innertubeCommand",q);else if(q){g.q8(this.L,"innertubeCommand",q);return}this.L.setPlaybackQuality(M)}this.tT.Lv();this.jk()}}open(){for(const M of Object.values(this.options))this.L.hasVe(M?.element)&&this.L.logVisibility(M?.element, !0);super.open();this.L.logClick(this.element)}X(M,W,b){if(M==="missing-qualities")return new g.M3({K:"a",rK:["ytp-menuitem"],Y:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.L.G().X,tabindex:"0",role:"menuitemradio"},U:[{K:"div",rK:["ytp-menuitem-label"],R0:"{{label}}"}]},W,this.B(M));if(M!=="inline-survey"){var T=(this.S?this.C[M]:this.sY[M])?.paygatedQualityDetails,q=T?.veType;T=T?.trackingParams;W=super.X(M,W,b);T?(this.L.createServerVe(W.element,this,!0),this.L.setTrackingParams(W.element, T)):q&&this.L.createClientVe(W.element,this,q,!0);return W}q=[{K:"span",R0:"\u00bfSe ve bien?"}];for(const X of[!0,!1])M=new g.w({K:"span",N:"ytp-menuitem-inline-survey-response",U:[X?WDJ():wiP()],Y:{tabindex:"0",role:"button"}}),M.listen("click",()=>{const G=this.L.app.Jn();G.dK("iqsr",{tu:X});G.getVideoData().AO=!0;this.tT.Lv();this.jk()}),q.push(M); return new g.M3({K:"div",N:"ytp-menuitem",Y:{"aria-disabled":"true"},U:[{K:"div",rK:["ytp-menuitem-label"],U:q}]},W)}B(M,W=!1){if(M==="missing-qualities")return{K:"div",R0:"\u00bfFalta alguna opci\u00f3n?"};if(M==="inline-survey")return"";this.S||g.uI(g.aig,M);let b;b=this.O||this.S?[lV(this,M,W,!1)]:[Ncg(this,M)];const T=this.L.getPreferredQuality();W||T!=="auto"||M!=="auto"||(b.push(" "),this.S?b.push(lV(this,this.yz,W,!0,["ytp-menu-label-secondary"])):this.O?b.push(lV(this,this.Zs,W,!0,["ytp-menu-label-secondary"])): b.push(Ncg(this,this.Zs,["ytp-menu-label-secondary"])));return{K:"div",U:b}}};var Pv=class extends LfI{constructor(M){super(M.getAvailablePlaybackRates()[0],M.getAvailablePlaybackRates()[M.getAvailablePlaybackRates().length-1],.05,M.getPlaybackRate(),{K:"div",N:"ytp-speedslider-indicator-container",U:[{K:"div",N:"ytp-speedslider-badge"},{K:"p",N:"ytp-speedslider-text"}]});this.L=M;this.O=I5(this.sY,50,this);g.pY(this.V,"ytp-speedslider");this.X=this.hn("ytp-speedslider-text");this.Zs=this.hn("ytp-speedslider-badge");this.L.j("web_enable_varispeed_panel")&&g.pY(this.V,"ytp-varispeed-input-slider"); this.hv();this.J(this.V,"change",this.yz)}S(){super.S();this.X&&this.hv()}yz(){this.L.j("enable_web_premium_varispeed")&&P0(this,Math.round(this.Z/.05)*.05);this.O()}sY(){this.L.setPlaybackRate(this.Z,!0)}hv(){this.X.textContent=`${this.Z.toFixed(2)}x`;const M=this.Z>2&&this.L.j("enable_web_premium_varispeed");this.Zs.classList.toggle("ytp-speedslider-premium-badge",M);this.Zs.setAttribute("aria-label",M?"Premium":"")}W(M){super.W(M);this.O();this.hv();this.L.j("web_enable_varispeed_panel")?(M.code=== "ArrowUp"||M.code==="ArrowDown")&&M.preventDefault():M.preventDefault()}};var AOc=class extends g.w{constructor(M,W,b){super({K:"div",N:"ytp-slider-section",Y:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{K:"div",N:"ytp-slider",U:[{K:"div",N:"ytp-slider-handle"}]}]});this.D=.05;this.B=M;this.A=W;this.range=this.A-this.B;this.lV=this.hn("ytp-slider-section");this.S=this.hn("ytp-slider");this.sY=this.hn("ytp-slider-handle");this.W=new g.C0(this.S,!0);this.V=b? b:M;g.t(this,this.W);this.W.subscribe("dragmove",this.O,this);this.J(this.element,"keydown",this.Zs);this.J(this.element,"wheel",this.X);this.init()}init(){this.Z(this.V);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.A)}Zs(M){if(!M.defaultPrevented){switch(M.keyCode){case 37:case 40:var W=-this.D;break;case 39:case 38:W=this.D;break;default:return}this.Z(this.V+W);M.preventDefault()}}X(M){let W=this.V;W+=(M.deltaX||-M.deltaY)<0?-.05:.05;this.Z(W);M.preventDefault()}O(M){M=(M- g.de(this.S).x)/150*this.range+this.B;this.Z(M)}Z(M,W=""){M=g.fy(M,this.B,this.A);W===""&&(W=M.toString());this.updateValue("valuenow",M);this.updateValue("valuetext",W);this.sY.style.left=`${(M-this.B)/this.range*130}px`;this.V=M}focus(){this.lV.focus()}};var z99=class extends AOc{constructor(M){super(M.getAvailablePlaybackRates()[0],M.getAvailablePlaybackRates()[M.getAvailablePlaybackRates().length-1],M.getPlaybackRate());this.L=M;this.C=g.Gr("P");this.BY=I5(this.yz,50,this);g.pY(this.S,"ytp-speedslider");g.pY(this.C,"ytp-speedslider-text");M=this.C;var W=this.S;W.parentNode&&W.parentNode.insertBefore(M,W.nextSibling);this.hv();this.J(this.L,"onPlaybackRateChange",this.updateValues)}yz(){this.L.setPlaybackRate(this.V,!0)}hv(){this.C.textContent=`${tG(this, this.V)}x`}Z(M){super.Z(M,tG(this,M).toString());this.C&&(this.hv(),this.BY())}updateValues(){const M=this.L.getPlaybackRate();tG(this,this.V)!==M&&(this.Z(M),this.hv())}};var uh9=class extends g.YV{constructor(M){super({K:"div",N:"ytp-speedslider-component"});M.j("web_settings_use_input_slider")?this.Z=new Pv(M):this.Z=new z99(M);g.t(this,this.Z);this.element.appendChild(this.Z.element)}focus(){this.Z.focus()}};var SYr=class extends N2{constructor(M){const W=new uh9(M);super(M,W,"Personalizada");g.t(this,W)}};var OZh=class extends g.RV{constructor(M,W){const b=new SYr(M);super("Velocidad de reproducci\u00f3n",g.Bv.bz,M,W,Ih(M)?void 0:"Personalizada",Ih(M)?void 0:()=>{g.$T(W,b)}); this.yz=new g.w({K:"div",N:"ytp-menuitem-premium-badge",Y:{"aria-label":"Premium"}});this.Zs=!1;this.k9={eAY:()=>this.O}; g.t(this,b);this.Hc=new Pv(M);g.t(this,this.Hc);if(M.j("web_settings_menu_icons")){const T=M.j("delhi_modern_web_player_icons")?j3G():{K:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{K:"path",Y:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(T)}this.L=M;this.Zs=!1;this.An=null;Ih(M)?(this.S=g.tZ("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.L.getPlaybackRate().toString()}),this.sY=this.L.getPlaybackRate()):this.sY=this.S=null;g.t(this,this.yz);this.xk=this.L.getVideoData()?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;xfL(M,this.xk)?(this.C=Zn(4),this.L.createClientVe(this.yz.element,this,273508)):this.C=null;this.L.j("enable_web_premium_varispeed_upsell")&& this.L.createClientVe(this.element,this,278479);this.O=this.L.getAvailablePlaybackRates();this.J(M,"presentingplayerstatechange",this.zv);this.L.getVideoData()?.FD()&&this.J(M,LY(M.G().hT())?"playbackChange":"serverstitchedvideochange",this.zv);this.J(M,"videodatachange",this.onVideoDataChange);this.J(this.Hc.V,"change",()=>{this.Zs=!0;this.zv()}); this.zv()}onVideoDataChange(M){M==="dataloaded"&&(M=this.L.getAvailablePlaybackRates(),g.mA(this.O,M)||(this.O=M,this.Hc.dispose(),this.Hc=new Pv(this.L)),this.zv())}B(M){return M==="1"?"Normal":M.toLocaleString()}zv(){var M=this.L.getVideoData()?.FD();M=this.L.getPresentingPlayerType(M);this.enable(M!==2&&M!==3);RWG(this)}A(M){super.A(M);this.Hc&&this.Hc.V.focus()}W(M){super.W(M);M?(this.An=this.J(this.L,"onPlaybackRateChange",this.onPlaybackRateChange),RWG(this),HlJ(this,this.L.getPlaybackRate()), this.L.j("enable_web_premium_varispeed_upsell")&&(this.L.logVisibility(this.element,!0),this.C&&this.L.logVisibility(this.yz.element,!0))):(this.fN(this.An),this.An=null)}onPlaybackRateChange(M){const W=this.L.getPlaybackRate();!this.Zs&&this.O.includes(W)||fbq(this,W);HlJ(this,M)}X(M,W,b){return M===this.S&&Nk(this.L)?super.X(M,W,b,{K:"div",N:"ytp-speed-slider-menu-footer",U:[this.Hc]}):M===this.C&&xfL(this.L,this.xk)?rba(this,M,W,b):super.X(M,W,b)}Z(M){super.Z(M);M===this.C?(this.L.logClick(this.yz.element), g.q8(this.L,"innertubeCommand",this.xk)):M===this.S?this.L.setPlaybackRate(this.sY,!0):this.L.setPlaybackRate(Number(M),!0);(!Nk(this.L)||M!==this.S&&M!==this.C)&&this.tT.Xo()}lV(M){const W=M===this.S;this.Zs=!1;W&&Ih(this.L)&&!Nk(this.L)?(M=new SYr(this.L),g.$T(this.tT,M)):(this.L.logClick(this.element),super.lV(M))}};var Pr7=class extends g.RV{constructor(M,W,b,T){const q=new g.Hv(W,void 0,"Anulaci\u00f3n de v\u00eddeo");super(T.text||"",M,W,b,"Anulaci\u00f3n de v\u00eddeo",()=>{g.$T(b,q)}); g.pY(this.element,"ytp-subtitles-options-menu-item");this.setting=T.option.toString();M=T.options;this.settings=g.IQ(M,this.Zs,this);this.O=q;g.t(this,this.O);W=new g.M3({K:"div",N:"ytp-menuitemtitle",R0:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.t(this,W);this.O.OB(W,!0);this.C=new g.M3({K:"div",N:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},U:[{K:"div",N:"ytp-menuitem-label",R0:"Activado"}]},-1);g.t(this,this.C);this.O.OB(this.C,!0);this.J(this.C.element, "click",()=>{F_t(this,!0)}); this.S=new g.M3({K:"div",N:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},U:[{K:"div",N:"ytp-menuitem-label",R0:"No"}]},-2);g.t(this,this.S);this.O.OB(this.S,!0);this.J(this.S.element,"click",()=>{F_t(this,!1)}); this.A(g.dG(M,this.Zs))}V(M){super.V(M)}Zs(M){return M.option.toString()}getOption(M){return this.settings[M]}B(M){return this.getOption(M).text||""}Z(M){super.Z(M);this.publish("settingChange",this.setting,this.settings[M].option)}};var e9J=class extends g.Hv{constructor(M,W){super(M,void 0,"Opciones");this.Ii={};for(let b=0;b{this.ra("reset",!0)}); this.OB(M,!0)}Bp(M){for(const W of Object.keys(M)){const b=this.Ii[W];if(b){const T=M[W].toString(),q=!!M[`${W}Override`];b.options[T]&&(b.V(T),b.C.element.setAttribute("aria-checked",String(!q)),b.S.element.setAttribute("aria-checked",String(q)))}}}ra(M,W){this.publish("settingChange",M,W)}};var dRh=class extends g.RV{constructor(M,W){super("Traducir autom\u00e1ticamente",0,M,W);this.L=M;this.languages={};M.createClientVe(this.element,this,127301);M.logVisibility(this.element,!0)}S(M){return M.languageCode}B(M){return this.languages[M].languageName||""}Z(M){this.publish("select",M);this.L.logClick(this.element);g.YO(this.tT)}};var opp=class extends g.RV{constructor(M,W){const b=new e9J(M,W),T=["Este ajuste solo afecta al v\u00eddeo que est\u00e1s viendo. Para cambiar la visualizaci\u00f3n de los subt\u00edtulos en todos los v\u00eddeos, ve a ","."];let q;g.Zk(M.G())&&!M.j("web_deprecate_always_on_captions_settings")&&(q={K:"div",N:"ytp-panel-footer-content",U:[{K:"span",R0:T[0]},{K:"a",N:"ytp-panel-footer-content-link",R0:"Configuraci\u00f3n",Y:{href:"/account_playback"}},{K:"span",R0:T[1]}]});super("Subt\u00edtulos",g.Bv.SUBTITLES, M,W,"Opciones",()=>{g.$T(W,b)},q); this.countLabel=void 0;this.L=M;this.tT=W;this.tracks={};this.sY=new g.d9(()=>{hWS(this,!1)},3E3); g.t(this,this.sY);M.j("deprecate_captions_track_count_display")||(this.countLabel=new g.w({K:"div",U:[{K:"span",R0:"Subt\u00edtulos"},{K:"span",N:"ytp-menuitem-label-count",R0:"{{content}}"}]}),g.t(this,this.countLabel),g.i7(this,this.countLabel));M.j("web_settings_menu_icons")&&this.setIcon(Qea(M.j("delhi_modern_web_player_icons")));this.S=new dRh(M,W);g.t(this,this.S);this.S.subscribe("select",this.yz,this);this.Zs=b;g.t(this,this.Zs);this.Zs.subscribe("settingChange",this.ra,this);W.subscribe("show", this.An,this);this.J(M,"videodatachange",this.zv);this.J(M,"onApiChange",this.zv);this.J(M,"onCaptionsTrackListChanged",this.zv);this.J(M,"captionschanged",this.zv);M.createClientVe(this.element,this,127300);this.zv()}C(M){return g.P$(M)?"__off__":M.displayName}B(M){return M==="__off__"?"Desactivados":M==="__translate__"?"Traducir autom\u00e1ticamente":M==="__contribute__"?"A\u00f1adir subt\u00edtulos":M==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(M==="__off__"?{}:this.tracks[M]).displayName}Z(M){M=== "__translate__"?this.S.open():M==="__contribute__"?(this.L.pauseVideo(),this.L.isFullscreen()&&this.L.toggleFullscreen(),M=g.W_(this.L.G(),this.L.getVideoData()),g.pu(M)):M==="__correction__"?(this.L.pauseVideo(),this.L.isFullscreen()&&this.L.toggleFullscreen(),M=HS(this),f0(this,M),super.Z(this.C(M)),M=this.L.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.q8(this.L,"innertubeCommand",M),this.tT.Xo(),this.O&&this.L.logClick(this.O)):(M==="__correction__"? (this.L.pauseVideo(),this.L.isFullscreen()&&this.L.toggleFullscreen(),M=HS(this),f0(this,M),super.Z(this.C(M)),M=this.L.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.q8(this.L,"innertubeCommand",M)):(this.L.logClick(this.element),f0(this,M==="__off__"?{}:this.tracks[M]),super.Z(M)),this.tT.Xo())}zv(){var M=this.L.getOptions();M=M&&M.indexOf("captions")!==-1;var W=this.L.getVideoData();const b=W&&W.C1;var T=!!this.L.getVideoData()?.cP();let q, X={};if(M||b){if(M){q=this.L.getOption("captions","track");X=this.L.getOption("captions","tracklist",{includeAsr:!0});var G=T?[]:this.L.getOption("captions","translationLanguages");this.tracks=g.IQ(X,this.C,this);T=g.dG(X,this.C);HS(this)&&W.getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand&&T.push("__correction__");if(G.length&&!g.P$(q)){if((W=q.translationLanguage)&&W.languageName){const V=W.languageName;W=G.findIndex(J=>J.languageName===V); alQ(G,W)}ilL(this.S,G);T.push("__translate__")}G=this.C(q)}else this.tracks={},T=[],G="__off__";T.unshift("__off__");this.tracks.__off__={};b&&T.unshift("__contribute__");this.tracks[G]||(this.tracks[G]=q,T.push(G));this.A(T);this.V(G);q&&q.translationLanguage?this.S.V(this.S.S(q.translationLanguage)):nHQ(this.S);M&&this.Zs.Bp(this.L.getSubtitlesUserSettings());this.L.j("deprecate_captions_track_count_display")||this.countLabel?.setContent(X&&X.length?` (${X.length})`:"");this.publish("size-change"); this.L.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}yz(M){var W=this.L.getOption("captions","track");W=g.c$(W);W.translationLanguage=this.S.languages[M];f0(this,W)}ra(M,W){if(M==="reset")this.L.resetSubtitlesUserSettings();else{const b={};b[M]=W;this.L.updateSubtitlesUserSettings(b)}hWS(this,!0);this.sY.start();this.Zs.Bp(this.L.getSubtitlesUserSettings())}An(M){M||this.sY.n3()}vY(){this.sY.n3();super.vY()}open(){super.open();this.options.__correction__&&!this.O&&(this.O=this.options.__correction__.element, this.L.createClientVe(this.O,this,167341),this.L.logVisibility(this.O,!0))}};var cOr=class extends N2{constructor(M){const W=new Pv(M),b=new g.w({K:"div",N:"ytp-variable-speed-panel-chips"}),T=new g.w({K:"button",rK:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],Y:{"aria-label":"Reducir la velocidad de reproducci\u00f3n 0.05"},U:[{K:"span",R0:"-"}]});T.listen("click",()=>{this.L.setPlaybackRate(Number((this.L.getPlaybackRate()-.05).toFixed(2)));M.logClick(T.element)}); const q=new g.w({K:"button",rK:["ytp-button","ytp-variable-speed-panel-button","ytp-variable-speed-panel-increment-button"],Y:{"aria-label":"Aumentar la velocidad de reproducci\u00f3n 0.05"},U:[{K:"span",R0:"+"}]});q.listen("click",()=>{this.L.setPlaybackRate(Number((this.L.getPlaybackRate()+.05).toFixed(2)));M.logClick(q.element)}); var X=new g.w({K:"div",N:"ytp-variable-speed-panel-slider-container",U:[T,W,q]}),G=new g.w({K:"div",N:"ytp-variable-speed-panel-premium-badge",Y:{tabindex:"-1"},U:[{K:"div",N:"ytp-variable-speed-panel-badge"}]}),V=new g.w({K:"span"});const J=new g.w({K:"div",N:"ytp-variable-speed-panel-display",U:[G,V],Y:{"aria-live":"polite"}}),B=new g.w({K:"div",N:"ytp-speed-display-container",U:[J]}),D=new g.YV({K:"div",N:"ytp-variable-speed-panel-content",Y:{tabindex:"0"},U:[B,X,b]});super(M,D,"Velocidad de reproducci\u00f3n"); W.listen("click",()=>{M.logClick(W.V)}); this.L.createClientVe(T.element,this,258237);this.L.logVisibility(T.element,!0);this.L.createClientVe(q.element,this,258236);this.L.logVisibility(q.element,!0);this.L.createClientVe(D.element,this,225845);this.L.logVisibility(D.element,!0);this.L.createClientVe(W.V,this,258235);this.L.logVisibility(W.V,!0);this.L.createClientVe(b.element,this,258234);this.L.logVisibility(b.element,!0);g.t(this,J);this.yd=V;g.t(this,this.yd);this.TP=G;g.t(this,this.TP);this.Hc=W;g.t(this,this.Hc);g.t(this,T);g.t(this, q);g.t(this,b);g.t(this,X);g.t(this,B);g.t(this,D);X=I5(this.OZ,50,this);G=M.getVideoData();const a=G?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;if((G=G?.getPlayerResponse()?.playerConfig?.granularVariableSpeedConfig?.defaultPlaybackRateOptions)&&G.length>0)for(const E of G){const n=a&&E.isPremiumUpsell,C=new g.w({K:"button",rK:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],U:n?[{K:"div",N:"ytp-variable-speed-panel-premium-upsell-icon"}, {K:"span",R0:`${E.label}`}]:[{K:"span",R0:`${E.label}`}]});n&&(this.L.createClientVe(C.element,this,273508),this.L.logVisibility(C.element,!0));g.t(this,C);b.element.appendChild(C.element);C.listen("click",()=>{n?(g.q8(this.L,"innertubeCommand",a),M.logClick(C.element)):E.value&&this.L.setPlaybackRate(E.value/100);M.logClick(b.element)}); G=new g.w({K:"div",N:"ytp-variable-speed-panel-preset-button-wrapper",Y:{"data-priority":`${E.priority??0}`},U:[C]});g.t(this,G);E.value===100&&(V=new g.w({K:"div",N:"ytp-variable-speed-panel-preset-button-label-text",R0:"Normal"}),g.t(this,V),G.element.appendChild(V.element));b.element.appendChild(G.element)}this.J(this.Hc.V,"input",()=>{this.hv(this.Hc.Z)}); this.J(M,"onPlaybackRateChange",this.onPlaybackRateChange);this.J(M,"resize",X);this.onPlaybackRateChange(M.getPlaybackRate());this.OZ()}onPlaybackRateChange(M){P0(this.Hc,M,!0);this.hv(M)}hv(M){M=Math.round(M*20)/20;this.yd.element.textContent=`${M.toFixed(2)}x`;this.TP.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",M>2)}OZ(){const M=this.L.getPlayerSize().width;var W=this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper");for(const b of W){W= b;const T=Number(W.dataset.priority??0);let q=!0;M<680?q=T>1:M<1900&&(q=T>0);g.pr(W,q);W.setAttribute("aria-hidden",q?"false":"true")}}};var QBV=class extends g.RV{constructor(M,W){super("Velocidad de reproducci\u00f3n",g.Bv.bz,M,W);this.L=M;M.j("web_settings_menu_icons")&&this.setIcon(j3G());this.C(M.getPlaybackRate());this.J(M,"onPlaybackRateChange",this.C);this.J(M,"presentingplayerstatechange",this.S);this.L.getVideoData()?.FD()&&this.J(M,LY(M.G().hT())?"playbackChange":"serverstitchedvideochange",this.S);this.S()}S(){var M=this.L.getVideoData()?.FD();M=this.L.getPresentingPlayerType(M);this.enable(M!==2&&M!==3)}C(M){this.setContent(M=== 1?"Normal":M.toString())}open(){g.$T(this.tT,new cOr(this.L))}};var gpr=class extends g.fs{constructor(M){super(M,"ytp-settings-menu");this.ul=new g.Hv(this.L);this.xq=this.z3=this.settingsButton=null;this.isInitialized=this.jY=!1;g.t(this,this.ul);this.hide();g.$T(this,this.ul);M.createClientVe(this.element,this,108341,!0);this.subscribe("show",W=>{this.V0(W)}); this.J(M,"highlightSettingsMenu",()=>{this.jY=!0;this.Nd()}); this.J(M,"openSettingsMenuItem",W=>{W&&(this.jY=!0,this.Nd(),W==="menu_item_video_quality_advanced"&&this.z3?.open())}); M.j("html5_enable_voice_boost")&&(this.J(M,"onPlaybackAudioChange",this.Xm),this.J(M,"videodatachange",this.Xm));this.L.G()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&this.J(this.element,"wheel",W=>{W.stopPropagation()})}initialize(){if(!this.isInitialized){var M=this.L.G(); this.isInitialized=!0;try{this.z3=new h95(this.L,this)}catch(b){g.lR(Error("QualityMenuItem creation failed"))}g.t(this,this.z3);var W=new opp(this.L,this);g.t(this,W);M.enableSpeedOptions&&(M.j("web_enable_varispeed_panel")?(W=new QBV(this.L,this),g.t(this,W)):(W=new OZh(this.L,this),g.t(this,W)));(g.tP(M)||M.C)&&(M.V||M.xk)&&(W=new iZI(this.L,this),g.t(this,W));M.s2&&!M.j("web_player_move_autonav_toggle")&&(W=new FfQ(this.L,this),g.t(this,W));M.j("html5_enable_new_audio_settings_menu")?(this.xq= new xRA(this.L,this),g.t(this,this.xq)):(M=new rO9(this.L,this),g.t(this,M));this.L.publish("settingsMenuInitialized");L0(this.settingsButton,this.ul.gT())}}OB(M){this.initialize();this.ul.OB(M);L0(this.settingsButton,this.ul.gT())}B3(M){this.ST()||(this.Ta&&this.ul.gT()<=1&&this.hide(),this.ul.B3(M),L0(this.settingsButton,this.ul.gT()))}Nd(M){this.initialize();this.ul.gT()>0&&super.Nd(M)}Lv(){this.jY?this.jY=!1:super.Lv()}show(){super.show();g.pY(this.L.getRootNode(),"ytp-settings-shown")}hide(){super.hide(); g.Mw(this.L.getRootNode(),"ytp-settings-shown")}V0(M){this.L.logVisibility(this.element,M);this.L.publish("settingsMenuVisibilityChanged",M)}Xm(){this.L.Xm()}};var sBI=class extends g.w{constructor(M,W){super({K:"button",rK:["ytp-subtitles-button","ytp-button"],Y:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:M.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},U:[M.j("delhi_modern_web_player_icons")?{K:"div",N:"ytp-subtitles-button-icon",R0:"{{icon}}"}:cEG(M)]});this.L=M;this.tooltip=W.j2();M.j("delhi_modern_web_player_icons")&& this.updateValue("icon",zWl(this));this.J(M,"videodatachange",this.zv);this.J(M,"appresize",this.zv);this.J(M,"promotooltipacceptbuttonclicked",this.Z);this.J(M,"onApiChange",this.zv);this.J(M,"onCaptionsTrackListChanged",this.zv);this.J(M,"captionschanged",this.zv);this.L.createClientVe(this.element,this,127299);this.zv();this.listen("click",this.onClick);this.addOnDisposeCallback(g.UA(W.j2(),this.element))}onClick(){if(Rh(this)&&(this.L.toggleSubtitles(),this.L.logClick(this.element),!this.isEnabled())){let M= !1;const W=g.jQ().UY(65);g.Zk(this.L.G())&&W!=null&&(M=!W);M&&this.L.G().j("web_player_nitrate_promo_tooltip")&&this.L.publish("showpromotooltip",this.element)}}Z(M){g.am(this.L)?.fT()?.Nd(M)}isEnabled(){const M=this.L.getOption("captions","track");return!(!M||!M.displayName)}zv(){const M=Rh(this);let W=300;this.L.G().W&&(W=480);this.L.j("delhi_modern_web_player_icons")&&this.updateValue("icon",zWl(this));var b=this.L.G();(b.j("html5_hide_unavailable_subtitles_button")?0:!b.C)?(M?(this.hn("ytp-subtitles-button-icon")?.setAttribute("fill-opacity", "1"),this.L.G().j("player_tooltip_data_title_killswitch")?this.updateValue("title",g.kf(this.L,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.kf(this.L,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"})):(this.L.j("delhi_modern_web_player_icons")?this.hn("ytp-subtitles-button-icon")?.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3"):this.hn("ytp-subtitles-button-icon")?.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"})),b=this.L.j("player_disable_caption_button_if_captions_not_available")&&this.L.j("delhi_modern_web_player")?M:!0):(this.updateValue("title",g.kf(this.L,"Subt\u00edtulos","c")),this.update({"tooltip-title":g.kf(this.L,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"}),b=M);this.tooltip.aq();b=b&&this.L.qe().getPlayerSize().width>=W;this.eW(b); this.L.logVisibility(this.element,b);M?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}dG(M){super.dG(M)}};g.wXc=class extends g.w{constructor(M,W,b=350){super({K:"div",rK:["ytp-time-display","notranslate"],U:[{K:"div",N:"ytp-time-wrapper",U:[{K:"div",N:"ytp-time-contents",Y:M.j("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},U:[{K:"span",N:"ytp-time-clip-icon",R0:"{{clipicon}}",Y:{"aria-label":"Recortar"}},{K:"span",N:"ytp-time-current",R0:"{{currenttime}}"},{K:"span",N:"ytp-time-separator",R0:" / "},{K:"span",N:"ytp-time-duration", R0:"{{duration}}"}]}]},{K:"span",N:"ytp-clip-watch-full-video-button-separator",R0:"\u2022"},{K:"span",N:"ytp-clip-watch-full-video-button",R0:"{{watchfullvideo}}"}]});this.api=M;this.X=b;this.liveBadge=new g.w({K:"button",rK:["ytp-live-badge","ytp-button"],Y:{disabled:"true"},R0:"{{content}}"});this.Z=null;this.SC=this.V=!1;this.D=this.W=this.C=null;this.isPremiere=!1;this.S=this.A=null;this.B=!1;this.IT=this.liveIndicatorText=null;this.sY=this.hn("ytp-clip-watch-full-video-button");this.liveBadge.setContent("En directo"); g.t(this,this.liveBadge);this.api.j("web_player_updated_entrypoint")||this.api.j("delhi_modern_web_player")?this.liveBadge.cY(this.hn("ytp-time-wrapper")):this.liveBadge.cY(this.element);this.tooltip=W.j2();this.liveBadge.listen("click",this.onClick.bind(this));this.api.j("delhi_modern_web_player")&&(W=this.hn("ytp-time-wrapper"),this.J(W,"click",this.O),W.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.J(this.sY,"click",this.Zs);this.J(this.api,LY(this.api.G().hT())?"playbackChange": "serverstitchedvideochange",()=>{unt(this,this.api.getProgressState().isAtLiveHead)}); this.J(M,"presentingplayerstatechange",this.SR);this.J(M,"appresize",this.SR);this.J(M,"onLoopRangeChange",this.onLoopRangeChange);this.J(M,"videodatachange",this.onVideoDataChange);(W=M.getVideoData())&&this.updateVideoData(W);this.SR();SgP(this,M.getLoopRange())}canShowCountdown(){return!Fq(this)&&!r1(this)}SR(){var M=this.api.qe().getPlayerSize().width,W=this.X;this.api.G().W&&(W=400);W=M>=W&&(!r1(this)||!this.api.getPlayerStateObject().Z(64));this.eW(W);g.H(this.element,"ytp-time-display-allow-autohide", W&&M<400);M=this.api.getProgressState();if(W){var b=this.api.getPresentingPlayerType();W=this.api.getCurrentTime(b,!1);this.V&&(W-=M.airingStart);Fq(this)&&(W-=this.IT.startTimeMs/1E3);this.canShowCountdown()&&this.B&&(W-=this.api.getDuration(b,!1));var T=g.O3(W);this.A!==T&&(this.updateValue("currenttime",T),this.A=T);b=Fq(this)?(this.IT.endTimeMs-this.IT.startTimeMs)/1E3:this.api.getDuration(b,!1);T=g.O3(b);this.S!==T&&(this.updateValue("duration",T),this.S=T);W=g.tZ("$PLAY_PROGRESS de $DURATION", {PLAY_PROGRESS:g.O3(W,!0),DURATION:g.O3(b,!0)});this.updateValue("timeDisplayAriaLabel",W)}unt(this,M.isAtLiveHead);SgP(this,this.api.getLoopRange())}onLoopRangeChange(M){const W=this.IT!==M;this.IT=M;W&&(this.SR(),x3(this))}Zs(){this.api.setLoopRange(null)}O(){this.B=!this.B;this.SR()}onVideoDataChange(M,W,b){this.updateVideoData((this.api.G().j("enable_topsoil_wta_for_halftime")||this.api.G().j("enable_topsoil_wta_for_halftime_live_infra"))&&b===2?this.api.getVideoData({playerType:1}):W);this.SR(); x3(this)}updateVideoData(M){this.SC=M.isLivePlayback&&!M.Pi;this.V=M.yz();this.isPremiere=M.isPremiere;this.liveIndicatorText=(M=M.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.liveIndicatorText)?Sl(M):null;g.H(this.element,"ytp-live",r1(this));this.api.j("delhi_modern_web_player")&&this.hn("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}onClick(M){M.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}vY(){this.Z&& this.Z();super.vY()}};var pXV=class extends g.w{constructor(M,W){super({K:"div",N:"ytp-volume-panel",Y:{title:M.j("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{K:"div",N:"ytp-volume-slider",U:[{K:"div",N:"ytp-volume-slider-handle"}]}]});this.api=M;this.C=W;this.V3=!1;this.Zs=this.volume=0;this.S=null;this.V=this.Z=this.isDragging=!1;this.C=W;this.B= M.sX();this.O=M.j("web_player_use_screen_width_for_big_mode");this.D=this.hn("ytp-volume-slider");this.lV=this.hn("ytp-volume-slider-handle");this.A=new g.C0(this.D,!0);g.t(this,this.A);this.A.subscribe("dragstart",this.MK,this);this.A.subscribe("dragmove",this.yz,this);this.A.subscribe("dragend",this.xk,this);this.J(M,"onVolumeChange",this.onVolumeChange);this.J(M,"appresize",this.An);this.J(M,"fullscreentoggled",this.uM);this.J(M,"onShowControls",this.X);this.J(M,"onHideControls",this.X);this.J(this.element, "keydown",this.BY);this.J(this.element,"focus",()=>{hG(this,this.Z,this.isDragging,!0,this.api.V3())}); this.J(this.element,"blur",()=>{hG(this,this.Z,this.isDragging,!1,this.api.V3())}); Olg(this,M.qe().getPlayerSize());iV(this,M.getVolume(),M.isMuted());Ce(M,this.element,this)}uM(){Pmt(this)}An(M){Olg(this,M);this.O&&Pmt(this)}BY(M){if(!M.defaultPrevented){const W=M.keyCode;let b=null;W===37?b=this.volume-5:W===39?b=this.volume+5:W===36?b=0:W===35&&(b=100);b!==null&&(b=g.fy(b,0,100),b===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(b)),M.preventDefault())}}sY(M){const W=M.deltaX||-M.deltaY;M.deltaMode?this.api.setVolume(this.volume+(W<0?-10:10)):this.api.setVolume(this.volume+ g.fy(W/10,-10,10));M.preventDefault();this.api.G()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&M.stopPropagation()}MK(){hG(this,this.Z,!0,this.V,this.api.V3());this.Zs=this.volume;this.api.isMuted()&&this.api.unMute()}yz(M){var W=this.B?78:52,b=this.B?18:12;M-=g.de(this.D).x;b=g.fy((M-b/2)/(W-b),0,1);this.O&&(b=g.fy(M/W,0,1));W=b;W=this.api.j("web_player_non_linear_volume_controls")?W<=.25?W/.25*.1:.1+(W-.25)/.75*.9:W;this.api.setVolume(W*100)}xk(){hG(this,this.Z,!1,this.V,this.api.V3()); this.volume===0&&(this.api.mute(),this.api.setVolume(this.Zs))}onVolumeChange(M){iV(this,M.volume,M.muted)}X(){hG(this,this.Z,this.isDragging,this.V,this.api.V3())}W(M){g.H(this.element,"ytp-volume-control-hover",M);hG(this,M,this.isDragging,this.V,this.api.V3())}vY(){super.vY();g.Mw(this.C,"ytp-volume-slider-active")}};var YYV=class extends g.w{constructor(M,W){const b=M.G(),T=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];b.B&&T.push("no-link");const q={title:M.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:b.X,"data-priority":"6","data-sessionlink":"feature=player-button"};b.B||(q.href="{{url}}");super({K:"a",rK:T,Y:q,R0:"{{logoSvg}}"});this.Z=null;this.api=M;this.visible=!1;b.B||(this.Z=this.listen("click",this.onClick));this.J(M,"videodatachange", this.onVideoDataChange);this.J(M,"videoplayerreset",this.onVideoDataChange);this.J(M,"onLoopRangeChange",this.onVideoDataChange);this.J(M,"appresize",this.XT);this.onVideoDataChange();b.B||this.addOnDisposeCallback(g.UA(W.j2(),this.element));this.XT()}onVideoDataChange(){var M=this.api.G();this.XT();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData({playerType:1}).uN;this.eW(this.visible);this.api.logVisibility(this.element,this.visible&&this.gK);if(this.visible){var W=this.api.getVideoUrl(!0, !1,!1,!0);this.updateValue("url",W)}M.B&&(this.Z&&(this.fN(this.Z),this.Z=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.pY(this.element,"no-link"));W=this.api.G();M=this.api.getVideoData();let b="";W.B||(W=g.BQ(W),W.indexOf("www.")===0&&(W=W.substring(4)),b=g.Wf(M)?"Ver en YouTube Music":W==="youtube.com"?"Ver en YouTube":g.tZ("Ver en $WEBSITE",{WEBSITE:W}));this.api.j("player_tooltip_data_title_killswitch")?this.updateValue("title", b):this.updateValue("tooltip-title",b)}onClick(M){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const W=this.api.G();let b=this.api.getVideoUrl(!g.PF(M),!1,!0,!0);if(g.tP(W)){const T={};g.tP(W)&&g.GW(this.api,"addEmbedsConversionTrackingParams",[T]);b=g.JM(b,T)}g.Pf(b,this.api,M);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}XT(){let M={K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36", width:"100%"},U:[{K:"path",TY:!0,N:"ytp-svg-fill",Y:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, W=28666;const b=this.api.getVideoData();this.api.isEmbedsShortsMode()?M={K:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},U:[{K:"path",Y:{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.Wf(b)&&(M={K:"svg",Y:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},U:[{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{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"}},{K:"path",Y:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},W=216163);g.Wf(b)?g.pY(this.element,"ytp-youtube-music-button"):g.Mw(this.element,"ytp-youtube-music-button");M.Y={...M.Y,"aria-hidden":"true"};this.updateValue("logoSvg",M);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,W,!0)}dG(M){super.dG(M);this.api.logVisibility(this.element,this.visible&&M)}};var $$5=class extends g.Cq{constructor(M,W,b){super();this.L=M;this.sY=W;this.W3=b;this.bV=NaN;this.Zs=this.Lp=this.playButton=this.S=this.C=this.xk=this.lV=this.O=this.gK=this.muteButton=this.D=this.jT=this.DD=this.EY=null;this.B=new gpr(this.L);this.progressBar=new g.HZ9(this.L,this.sY);this.Ya=new g.wXc(this.L,this.sY);this.wK=new kpE(this.L,this.sY);this.X=new g.O9(this.d9,null,this);b=M.G();this.W3.subscribe("autohideupdate",this.d5,this);var T=!M.getPlayerStateObject().isCued(),q;(this.OY=!M.j("delhi_modern_web_player")&& M.G().j("html5_player_dynamic_bottom_gradient"))?this.jT=q=new Epc(M):q=new g.w({K:"div",N:"ytp-gradient-bottom"});g.t(this,q);g.Im(M,q.element,9);this.BY=new g.Ol(q,250,T,100);g.t(this,this.BY);this.Z=new g.w({K:"div",N:"ytp-chrome-bottom",U:[{K:"div",N:"ytp-chrome-controls"}]});g.t(this,this.Z);g.Im(M,this.Z.element,9);M.j("frosted_glass_controls_opacity_animation")&&this.Z.element.classList.add("ytp-frosted-glass-opacity-animation");this.yz=new g.Ol(this.Z,250,T,100);g.t(this,this.yz);this.An= this.Z.element.children[0];g.t(this,this.B);g.Im(M,this.B.element,6);this.B.subscribe("show",X=>{this.L.p9(!X);M.VS(this.B,X)}); g.t(this,this.progressBar);AG(this,this.progressBar,this.Z.element,void 0,0);T=new Cr4(M,W);g.t(this,T);g.Im(M,T.element,4);T=new g.ig({K:"div",N:"ytp-left-controls"});g.t(this,T);T.cY(this.An);M.j("delhi_modern_web_player")||(q=new g.O_(M,W,!1),g.t(this,q),AG(this,q,T.element));M.j("web_render_jump_buttons")&&(this.gK=new Kfc(M,-10),g.t(this,this.gK),AG(this,this.gK,T.element));b.An||(this.playButton=new g.ZZV(M,W),g.t(this,this.playButton),AG(this,this.playButton,T.element));M.j("web_render_jump_buttons")&& (this.O=new Kfc(M,10),g.t(this,this.O),AG(this,this.O,T.element));M.j("delhi_modern_web_player")&&(q=new g.O_(M,W,!1),g.t(this,q),AG(this,q,T.element));q=new g.O_(M,W,!0);g.t(this,q);AG(this,q,T.element);if(!M.j("delhi_modern_web_player")||M.j("delhi_modern_web_player_horizontal_volume_controls"))if(q=new g.w({K:"span",N:"ytp-volume-area"}),g.t(this,q),AG(this,q,T.element),!b.fv&&(this.muteButton=new Ss(M,W),g.t(this,this.muteButton),this.muteButton.cY(q.element),b.BY&&!b.W)){const X=new pXV(M,this.Z.element); this.Lp=X;g.t(this,X);X.cY(q.element);q=new g.C0(q.element);g.t(this,q);q.subscribe("hoverstart",()=>{this.Lp?.W(!0)}); q=new g.C0(T.element);g.t(this,q);q.subscribe("hoverend",()=>{this.Lp?.W(!1)})}M.j("delhi_modern_web_player_lhs_volume_controls")&&!M.j("delhi_modern_web_player_horizontal_volume_controls")&&(T.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new Ss(M,W),g.t(this,this.muteButton),this.muteButton.cY(T.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.t(this,this.Ya);AG(this,this.Ya,T.element,"ytp-time-wrapper");this.lV=new yO$(M,this.progressBar);g.t(this,this.lV);AG(this,this.lV,T.element,"ytp-chapter-title");b.j("web_key_moments_markers")&&(this.xk=new vph(M,this.progressBar),g.t(this,this.xk),AG(this,this.xk,T.element,"ytp-chapter-title"));M.j("delhi_modern_web_player")?this.A=new g.ig({K:"div",N:"ytp-right-controls",U:[{K:"div",N:zt.RIGHT_CONTROLS_LEFT},{K:"div",N:zt.RIGHT_CONTROLS_RIGHT}]}):this.A=new g.ig({K:"div",N:"ytp-right-controls"}); g.t(this,this.A);AG(this,this.A,this.An);M.j("delhi_modern_web_player")&&(this.D=new UR$(M),g.t(this,this.D),this.D.cY(this.A.hn(zt.RIGHT_CONTROLS_LEFT)),M.j("delhi_modern_web_player_lhs_volume_controls")||M.j("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new Ss(M,W),g.t(this,this.muteButton),this.muteButton.cY(this.A.hn(zt.RIGHT_CONTROLS_LEFT))));this.XX=new sBI(M,W);g.t(this,this.XX);uV(this,this.XX,"RIGHT_CONTROLS_LEFT");this.settingsButton=new R9J(M,this.B);g.t(this, this.settingsButton);AbL(this.B,this.settingsButton);uV(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");T=M.getVideoData();if(b.lm||T.uN&&b.controlsType==="1")this.C=new YYV(M,W),g.t(this,this.C),this.C.cY(this.A.element);b.showMiniplayerButton&&!M.j("web_player_miniplayer_in_context_menu")&&(this.S=new mRV(M),g.t(this,this.S),uV(this,this.S,"RIGHT_CONTROLS_RIGHT"));b.showMiniplayerButton&&this.J(M,"minimized",()=>{this.B.hide()}); b.vp&&(W=new f_I(M,this.B),g.t(this,W),uV(this,W,"RIGHT_CONTROLS_RIGHT"));b.FY&&(W=new a_h(M),g.t(this,W),uV(this,W,"RIGHT_CONTROLS_RIGHT"));g.t(this,this.wK);uV(this,this.wK,"RIGHT_CONTROLS_RIGHT");g.t(this,this.X);this.J(M,"appresize",this.XT);this.J(M,"fullscreentoggled",this.XT);this.D?.subscribe("small-mode-expand-right-bottom-controls",()=>{eWq(this)}); this.D?.subscribe("small-mode-collapse-right-bottom-controls",()=>{eWq(this)}); this.J(M,"presentingplayerstatechange",this.MK);this.J(M,"videodatachange",this.onVideoDataChange);this.XT()}onProgress(){if(this.L.j("web_player_max_seekable_on_ended")||!this.L.getPlayerStateObject().Z(2))pk(this.W3),this.progressBar.SR(),this.Ya.SR()}d5(){this.MK();if(pk(this.W3))this.progressBar.S();else this.onProgress()}d9(){this.onProgress();this.X.start()}MK(){var M;if(M=!this.L.G().V){M=this.progressBar;const b=2*g.yK()*M.W;var W=M.B;M=(W.Z-W.V)*1E3/M.api.getPlaybackRate()/b<300}M=M&&this.L.getPlayerStateObject().isPlaying()&& !!window.requestAnimationFrame;W=!M;pk(this.W3)&&(M=W=!1);W?this.Zs||(this.Zs=this.J(this.L,"progresssync",this.onProgress)):this.Zs&&(this.fN(this.Zs),this.Zs=null);M?this.X.isActive()||this.X.start():this.X.stop()}cP(){return this.playButton?(this.playButton.focus(),!0):!1}XT(){var M=this.L.sX();const W=this.L.qe().getPlayerSize();var b=this.L.qe().SX;const T=S_(this),q=oOQ(this);var X=Math.max(W.width-T*2,100);if(this.bV!==W.width||this.EY!==M||this.L.j("web_player_rtr_ctrls")&&this.DD!==b)this.bV= W.width,this.EY=M,this.DD=b,this.Z.element.style.width=`${q}px`,this.Z.element.style.left=`${T}px`,g.tNp(this.progressBar,T,q,M),this.L.j2().cQ=q;b=this.B;X=Math.min(570*(M?1.5:1),X);M=Math.min(413*(M?1.5:1),Math.round((W.height-Os(this))*.82));b.maxWidth=X;b.maxHeight=M;b.Zq();this.MK();this.OY&&nht(this.jT,W.height)}onVideoDataChange(){const M=this.L.getVideoData();this.An.style.background=M.uN?M.Rb:"";this.O&&KtQ(this.O,M.showSeekingControls);this.gK&&KtQ(this.gK,M.showSeekingControls)}BP(){return this.Z.element}Ds(){return this.progressBar}oT(M, W){const b=Number(M.element.getAttribute("data-priority"))||0;let T=0,q=this.A.element;W&&this.L.j("delhi_modern_web_player")&&(q=this.A.hn(zt[W]));for(const X of q.children){if(b<(Number(X.getAttribute("data-priority"))||0))break;T++}M.cY(q,T)}};var MuQ=class extends IV{constructor(M){super(M,!1);this.suggestedActions={};this.Z=null;this.A=!1;this.element.setAttribute("data-overlay-order","7");this.J(this.L,"videodatachange",this.onVideoDataChange);this.J(this.L,g.kJ("suggested_action_button_visible"),W=>{this.text=W=W.id;Qo(this);this.onClickCommand=this.suggestedActions[W]?.tapCommand;this.enabled=!0;this.V0()}); this.J(this.L,g.KX("suggested_action_button_visible"),W=>{this.enabled=!1;this.V0();this.L.removeCueRange(W.id)}); this.J(M,"presentingplayerstatechange",this.onStateChange)}An(M){M.target===this.dismissButton.element?this.Z&&lJP(oo(),this.Z):(this.onClickCommand&&(this.C(!1),g.q8(this.L,"innertubeCommand",this.onClickCommand)),this.W())}W(){this.enabled=!1;this.sY.hide()}onVideoDataChange(M,W){M==="dataloaded"&&cby(this);M=[];if(W=g.z(W.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionsRenderer,QTs)?.suggestedActions)for(var b of W)(W=g.z(b,gLy))&&g.z(W.trigger,lg)&&M.push(W);if(M.length!== 0){b=[];for(const T of M){M=g.z(T.trigger,lg);if(!M)continue;W=(W=T.title)?g.Ga(W):"View Chapters";const q=M.timeRangeStartMillis,X=M.timeRangeEndMillis;M=M.onlyTriggersOnPlayerPause;T.tapCommand&&(q!=null&&X!=null&&b.push(new g.Ap(q,X,{priority:9,namespace:"suggested_action_button_visible",id:W})),q!=null&&X!=null||M)&&(this.suggestedActions[W]=T,T.rendererContext&&!this.B&&(M=g.z(T.rendererContext,Mbt))&&(M=M.loggingDirectives?.trackingParams)&&(this.L.setTrackingParams(this.badge.element,M),this.B= !0),T.dismissButtonClientVeSpec?.uiType&&!this.Z&&(this.Z=Dk(T.dismissButtonClientVeSpec.uiType),Q_(oo(),this.Z)))}this.L.QV(b)}}D(){return this.enabled}V0(){this.enabled?this.XX.start():oY(this);this.V()}onStateChange(M){for(const W of Object.keys(this.suggestedActions))if(g.z(this.suggestedActions[W].trigger,lg)?.onlyTriggersOnPlayerPause){M.state.isPaused()&&!this.A?(this.text=W,Qo(this),this.onClickCommand=this.suggestedActions[W]?.tapCommand,this.enabled=!0,this.V0(),this.A=!0):M.oldState.isPaused()&& (this.enabled=!1,this.V0());break}}vY(){cby(this);super.vY()}};var es={CHANNEL_NAME:"ytp-title-channel-name",FULLERSCREEN_LINK:"ytp-title-fullerscreen-link",LINK:"ytp-title-link",SESSIONLINK:"yt-uix-sessionlink",SUBTEXT:"ytp-title-subtext",TEXT:"ytp-title-text",TITLE:"ytp-title"},WU$=class extends g.w{constructor(M){super({K:"div",N:es.TITLE,U:[{K:"div",rK:[es.TEXT,M.j("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],U:[{K:"a",rK:[es.LINK,es.SESSIONLINK],Y:{target:M.G().X,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"}, R0:"{{title}}"},{K:"div",N:es.SUBTEXT,U:["{{subtextElement}}"]}]}]});this.api=M;this.Z=null;this.link=this.hn(es.LINK);M.createClientVe(this.element,this,23851);this.J(M,"videodatachange",this.zv);this.J(M,"videoplayerreset",this.zv);this.zv()}onClick(M){this.api.logClick(this.element);var W=this.api.G();let b=this.api.getVideoUrl(!g.PF(M),!1,!0);g.tP(W)&&(W={},g.GW(this.api,"addEmbedsConversionTrackingParams",[W]),b=g.JM(b,W));g.Pf(b,this.api,M)}zv(){const M=this.api.getVideoData(),W=this.api.G(); this.updateValue("title",M.title);var b={K:"a",N:es.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},R0:"{{channelName}}"};this.api.G().B?b={K:"span",N:es.CHANNEL_NAME,R0:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}}:M.hS&&(b={K:"span",N:es.SUBTEXT,R0:M.hS});this.updateValue("subtextElement",b);QYg(this);this.api.getPresentingPlayerType()===2&&(b=this.api.getVideoData(),b.videoId&&b.isListed&&b.author&&b.xk&&b.profilePicture?(this.updateValue("channelLink",b.xk),this.updateValue("channelName", b.author),this.updateValue("channelTitleFocusable","0")):QYg(this));b=W.externalFullscreen||!this.api.isFullscreen()&&W.dS;g.H(this.link,es.FULLERSCREEN_LINK,b);W.O||!M.videoId||b||M.uN||W.B?this.Z&&(this.updateValue("url",null),this.fN(this.Z),this.Z=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Z||(this.Z=this.J(this.link,"click",this.onClick)));W.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.tP(W)?M.expandedTitle:M.author),this.updateValue("channelTitleFocusable", "0"),this.updateValue("channelSubtextFocusable","0"))}};g.by$=class extends g.w{constructor(M,W){const b={K:"div",N:"ytp-tooltip-progress-bar-pill",U:[{K:"div",N:"ytp-tooltip-progress-bar-pill-time-stamp",R0:"{{pillTimeStamp}}"},{K:"div",N:"ytp-tooltip-progress-bar-pill-title",R0:"{{pillTitle}}"}]};super({K:"div",U:[{K:"div",N:"ytp-tooltip-text-wrapper",Y:{"aria-hidden":"{{ariaHidden}}"},U:[{K:"div",N:"ytp-tooltip-edu",U:[{K:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{K:"path",Y:{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"}}]}, {K:"span",R0:"{{eduText}}"}]},{K:"div",N:"ytp-tooltip-image"},{K:"div",N:"ytp-tooltip-title",U:[{K:"span",R0:"{{title}}"},{K:"div",N:"ytp-tooltip-keyboard-shortcut",R0:"{{keyBoardShortcutTitle}}"}]},{K:"div",N:"ytp-tooltip-bottom-text",U:[{K:"span",N:"ytp-tooltip-text",R0:"{{text}}"},{K:"div",N:"ytp-tooltip-keyboard-shortcut",R0:"{{keyBoardShortcut}}"}]},M.j("frosted_glass_controls_opacity_animation")?null:b]},{K:"div",N:"ytp-tooltip-bg",U:[{K:"div",N:"ytp-tooltip-duration",R0:"{{duration}}"}]},M.j("frosted_glass_controls_opacity_animation")? b:null]});this.api=M;this.xk=W;this.X=T=>{(T=T.relatedTarget)&&g.ES(this.Z,T)||this.S()}; this.C=T=>{this.type===3&&this.S();(T=T.currentTarget)&&T.nodeType===1&&!this.type&&(T.removeEventListener("mouseover",this.C),T.addEventListener("mouseout",this.X),T.removeEventListener("focus",this.C),T.addEventListener("blur",this.X),p1a(this,T,2))}; this.O=()=>{this.S()}; this.type=this.Z=null;this.D=!1;this.V=null;this.B="";this.W=!0;this.scale=1;this.env=this.api.G();this.yz=this.env.V;this.wrapper=this.hn("ytp-tooltip-text-wrapper");this.bg=this.hn("ytp-tooltip-bg");this.BY=this.hn("ytp-tooltip-edu");this.image=this.hn("ytp-tooltip-image");this.text=this.hn("ytp-tooltip-text");this.bottomText=this.hn("ytp-tooltip-bottom-text");this.title=this.hn("ytp-tooltip-title");this.fade=new g.Ol(this,100);this.A=NaN;this.cQ=this.api.qe().getPlayerSize().width;this.Zs=new g.d9(this.An, 250,this);this.sY=new g.d9(this.S,5E3,this);g.t(this,this.fade);g.t(this,this.Zs);g.t(this,this.sY);oh&&(M=this.hn("ytp-tooltip-text"),M.setAttribute("role","text"),M.setAttribute("aria-live","polite"));if(this.api.j("frosted_glass_controls_opacity_animation"))for(const T of this.element.children)g.pY(T,"ytp-frosted-glass-fade-transition")}setEnabled(M){if(this.type!=null)if(M)switch(this.type){case 3:case 2:PS(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.W=M}J3(M, W,b,T,q,X,G,V){if(!this.yz||this.env.W){this.type===3&&this.S();this.type!==1&&(g.s9(this.element,"ytp-tooltip ytp-bottom"),this.api.j("frosted_glass_controls_opacity_animation")&&g.pY(this.element,"ytp-frosted-glass-fade-transition"),this.type=1,this.W&&this.fade.show(),this.V&&this.V.dispose(),(this.V=this.api.SH())&&this.V.subscribe("l",this.lV,this));if(V){const J=g.we(this.bg).height||141;this.BY.style.bottom=`${J+2}px`}else this.BY.style.display="none";this.env.j("delhi_modern_web_player")? (this.update({pillTimeStamp:b,pillTitle:X??"",eduText:V??""}),g.pY(this.element,"ytp-tooltip-progress-bar-style")):(this.update({text:b,title:X??"",eduText:V??""}),g.H(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!X));this.api.isInline()&&g.pY(this.bottomText,"ytp-modern-tooltip-text");g.H(this.element,"ytp-text-detail",!!T);b=-1;this.V&&(b=M4(this.V,243*this.scale),this.env.j("web_l3_storyboard")&&this.V.levels.length===4&&(b=this.V.levels.length-1),b=qRG(this.V,b,W));w1L(this,b);if(G)switch(W= g.we(this.element).width,G){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=`${W}px`;this.title.style.textAlign="right";break;case 3:this.title.style.right=`${W/2}px`,this.title.style.textAlign="center"}sYt(this,!!T,M,q)}}IL(){this.type===1&&this.S()}f9(M,W){if(this.type)if(this.type===3)this.S();else return;p1a(this,M,3,W)}aq(){this.Z&&!this.D&&(this.env.j("player_tooltip_data_title_killswitch")?this.Z.hasAttribute("title")&&(this.B=this.Z.getAttribute("title")|| "",this.Z.removeAttribute("title"),this.W&&PS(this)):this.Z.hasAttribute("data-tooltip-title")&&(this.B=this.Z.getAttribute("data-tooltip-title")||"",this.Z.removeAttribute("data-tooltip-title"),this.W&&PS(this)))}lV(M,W){M<=this.A&&this.A<=W&&(M=this.A,this.A=NaN,w1L(this,M))}An(){T$S(this.V,this.A,243*this.scale)}S(){switch(this.type){case 2:const M=this.Z;M.removeEventListener("mouseout",this.X);M.addEventListener("mouseover",this.C);M.removeEventListener("blur",this.X);M.addEventListener("focus", this.C);Ygp(this);break;case 3:Ygp(this);break;case 1:this.V&&(this.V.unsubscribe("l",this.lV,this),this.V=null),this.api.removeEventListener("videoready",this.O),this.Zs.stop()}this.type=null;this.W&&this.fade.hide()}XY(...M){if(this.Z)for(M=0;M{this.F9(T,X)}); this.n9.push(T);this.Bf=new bZr(this.api,T);g.t(this,this.Bf);!this.Q9&&(this.Cx&&this.api.j("delhi_modern_web_player")?this.Cx.pT(this.Bf.element,2):this.Bf.cY(this.Pp.element));g.t(this,this.channelAvatar);this.channelAvatar.cY(this.Pp.element);g.t(this,this.title);this.title.cY(this.Pp.element);this.Q9&&(b=new BH9(this.api),g.t(this,b),b.cY(this.Pp.element));g.t(this,this.Tx);this.Cx?(this.Tx.element.setAttribute("data-overlay-order","2"),this.Cx.pT(this.Tx.element,2)):this.Tx.cY(this.Pp.element); const q=new V7A(this.api,this);g.t(this,q);g.Im(this.api,q.element,5);q.subscribe("show",X=>{this.F9(q,X)}); this.n9.push(q);this.searchButton=new XX9(this.api);g.t(this,this.searchButton);this.searchButton.cY(this.Tx.element);b=this.api.G().getWebPlayerContextConfig();this.GV=new TPp(this.api);g.t(this,this.GV);b?.hideTopWatchNextButton||this.GV.cY(this.Tx.element);this.shareButton=new Gp4(this.api,this,q);g.t(this,this.shareButton);b?.hideTopShareButton||this.shareButton.cY(this.Tx.element);this.copyLinkButton=new SrA(this.api,this);g.t(this,this.copyLinkButton);this.copyLinkButton.cY(this.Tx.element); this.Q9&&this.Bf.cY(this.Tx.element);g.t(this,this.Lz);this.Lz.cY(this.Tx.element);W.fH&&(b=new DR$(this.api),g.t(this,b),g.Im(this.api,b.element,4));W.B||(b=new iJQ(this.api,this.Lz),g.t(this,b),b.cY(this.Tx.element));this.tR=new $R7(this.api);g.t(this,this.tR);g.Im(this.api,this.tR.element,5);this.tR.subscribe("show",()=>{this.F9(this.tR,this.tR.T4())}); this.n9.push(this.tR);this.overflowButton=new YrV(this.api,this.tR);g.t(this,this.overflowButton);this.overflowButton.cY(this.Tx.element);this.ML&&g.t(this,this.ML);W.controlsType==="3"&&(b=new qYA(this.api),g.t(this,b),g.Im(this.api,b.element,9));g.t(this,this.contextMenu);this.contextMenu.subscribe("show",this.uT,this);this.CA.listen("focus",this.jP,this);g.t(this,this.CA);this.wV.listen("focus",this.Wt,this);g.t(this,this.wV);(this.j7=W.U1?null:new p$p(this.api,M,this.contextMenu,this.W3,this.xg, this.S_,()=>this.Cr(),this.ML?.Ds()))&&g.t(this,this.j7); this.Q9||(this.t7=new PIQ(this.api),g.t(this,this.t7),this.Cx?this.Cx.pT(this.t7.element,3):g.Im(this.api,this.t7.element,4),this.Io=new JOr(this.api),g.t(this,this.Io),this.Cx?this.Cx.pT(this.Io.element,3):g.Im(this.api,this.Io.element,4));this.Dt=new MuQ(this.api);g.t(this,this.Dt);this.Cx?this.Cx.pT(this.Dt.element,3):g.Im(this.api,this.Dt.element,4);if(this.Q9){const X=new dE5(this.api,this.api.G().xk);g.t(this,X);g.Im(this.api,X.element,5);X.subscribe("show",G=>{this.F9(X,G)}); M=new o5r(this.api,X);g.t(this,M);g.Im(this.api,M.element,4)}this.ZZ.push(this.xg.element);this.J(this.api,"fullscreentoggled",this.uM);this.J(this.api,"offlineslatestatechange",()=>{this.api.KS()&&$K(this.W3,128,!1)}); this.J(this.api,"cardstatechange",()=>{this.hh()}); this.J(this.api,"resize",this.WB);this.J(this.api,"videoplayerreset",this.onReset);this.J(this.api,"showpromotooltip",this.Fz);super.init()}j2(){return this.tooltip}Uo(){return this.ML}F9(M,W){W?this.Vk=M:this.Vk=null;this.hh()}Su(M,W){if(W)this.rD.push(M);else for(W=this.rD.length;W>=0;W--)if(this.rD[W]===M){this.rD.splice(W,1);break}$K(this.W3,64,this.rD.length>0)}Yo(){this.api.Xp()&&this.api.Uk();return!!this.Vk||TmG(this)||super.Yo()}hh(){const M=!this.Yo(),W=M&&this.api.Xp()&&!this.api.getPlayerStateObject().Z(2)&& !this.api.getVideoData().uN&&!this.api.G().B&&!this.api.isEmbedsShortsMode(),b=this.Q9&&g.Le(this.api)&&this.api.getPlayerStateObject().Z(128);M||b?(this.UR.show(),this.X6.show()):(this.UR.hide(),this.X6.hide(),this.api.XY(this.Pp.element));W?this.Lz.Nd():this.Lz.Lv();this.ML&&dfP(this.ML,this.dZ||!M);this.api.j("web_player_hide_overflow_button_if_empty_menu")&&e_(this);super.hh()}Ar(M,W,b,T,q){M.style.left="";M.style.top="";M.style.bottom="";var X=g.we(M),G=T||this.ML&&g.ES(this.ML.BP(),W),V=T=null; b!=null&&G||(T=g.we(W),V=g.ge(W,this.api.getRootNode()),b==null&&(b=V.x+T.width/2));b-=X.width/2;G?(W=this.ML,T=S_(W),V=oOQ(W),G=this.api.qe().getPlayerSize().height,b=g.fy(b,T,T+V-X.width),X=G-Os(W)-X.height):g.ES(this.Pp.element,W)?(W=this.api.qe().getPlayerSize().width,b=g.fy(b,12,W-X.width-12),X=this.sX()?this.SZ:this.fd,this.api.G().playerStyle==="gvn"&&(X+=20),this.Q9&&(X-=this.sX()?26:18)):(W=this.api.qe().getPlayerSize(),b=g.fy(b,12,W.width-X.width-12),X=V.y>(W.height-T.height)/2?V.y-X.height- 12:V.y+T.height+12);M.style.top=`${X+(q||0)}px`;M.style.left=`${b}px`}d5(M){M&&(this.api.XY(this.Pp.element),this.ML&&this.api.XY(this.ML.BP()));this.VM&&(g.H(this.contextMenu.element,"ytp-autohide",M),g.H(this.contextMenu.element,"ytp-autohide-active",!0));super.d5(M)}wN(){super.wN();this.VM&&(g.H(this.contextMenu.element,"ytp-autohide-active",!1),this.VM&&(this.contextMenu.hide(),this.tR&&this.tR.hide()))}RE(M,W){var b=this.api.qe().getPlayerSize();b=new g.re(0,0,b.width,b.height);if(M||!pk(this.W3)&& !this.Yo()){if(this.api.G().Ek||W)M=this.sX()?this.SZ:this.fd,b.top+=M,b.height-=M;this.ML&&(b.height-=Os(this.ML))}return b}uM(M){const W=this.api.getRootNode();M?W.parentElement?(W.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.G().externalFullscreen||(W.parentElement.insertBefore(this.CA.element,W),W.parentElement.insertBefore(this.wV.element,W.nextSibling))):g.O(Error("Player not in DOM.")):(W.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"), this.CA.detach(),this.wV.detach());this.XT();this.y9()}sX(){if(this.api.j("web_player_use_screen_width_for_big_mode"))return this.api.qe().getPlayerSize().width>=(g.TO(this.api.G().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);const M=this.api.G();return this.api.isFullscreen()&&!M.W||!1}showControls(M){this.jZ=!M;this.hh()}XT(){var M=this.sX();this.tooltip.scale=M?1.5:1;this.contextMenu&&g.H(this.contextMenu.element,"ytp-big-mode",M);this.hh();this.api.j("web_player_hide_overflow_button_if_empty_menu")|| e_(this);this.y9();const W=this.api.isEmbedsShortsMode();W&&M?(M=(this.api.qe().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.iq(this.Pp.element,"padding-left",`${M}px`),g.iq(this.Pp.element,"padding-right",`${M}px`)):W&&(g.iq(this.Pp.element,"padding-left",""),g.iq(this.Pp.element,"padding-right",""));super.XT()}zp(){if(TmG(this)&&!g.Le(this.api))return!1;var M=this.api.getVideoData();return!g.tP(this.api.G())||this.api.getPresentingPlayerType()===2||!this.xj||((M=this.xj||M.xj)? (M=M.embedPreview)?(M=M.thumbnailPreviewRenderer,M=M.videoDetails&&g.z(M.videoDetails,GbL)||null):M=null:M=null,M&&M.collapsedRenderer&&M.expandedRenderer)?super.zp():!1}y9(){super.y9();this.api.logVisibility(this.title.element,!!this.R2);this.Bf&&this.Bf.dG(!!this.R2);this.channelAvatar.dG(!!this.R2);this.overflowButton&&this.overflowButton.dG(this.Wx()&&!!this.R2);this.shareButton&&this.shareButton.dG(!this.Wx()&&!!this.R2);this.GV&&this.GV.dG(!this.Wx()&&!!this.R2);this.searchButton&&this.searchButton.dG(!this.Wx()&& !!this.R2);this.copyLinkButton&&this.copyLinkButton.dG(!this.Wx()&&!!this.R2);if(!this.R2){this.api.XY(this.Pp.element);for(let M=0;M5&&W.dK("glrs",{cmt:b});W.seekTo(0,{seekSource:58});W.dK("glrre",{cmt:b})}}vY(){this.Z=null;super.vY()}};var JQl=class{constructor(){this.Z=this.W=this.B=this.V=this.X=this.C=this.gK=this.D=this.S=this.A=!1}};g.p0=class extends E1p{constructor(M,W,b,T=!1){super();this.mediaElement=M;this.start=W;this.end=b;this.Z=T}isView(){return!0}vP(){const M=this.mediaElement.getCurrentTime();if(M{}); this.timeout=new g.d9(()=>{this.Jy("timeout")},1E4); g.t(this,this.timeout);this.yz=isFinite(T)||this.wG.G().experiments.FX("html5_pseudogapless_shorts")&&LP(W.getVideoData());this.status={status:0,error:null}}Am(){return this.status.status===5}getStatus(){return this.status}B(){var M=this.Z.getVideoData(),W=this.V.getVideoData(),b;if((b=M.B)&&!(b=!M.Z)){b=M.Z;var T=!1;let B=!1;for(var q of Object.values(b.Z))q.info.audio&&q.index.isLoaded()&&(T=!0),q.info.video&&q.index.isLoaded()&&(B=!0);b.Z["0"]&&(B=!0);b=T&&B}if(b)if(this.Z.E2()){q=g1(this.policy, this.Z,this.V,this.m0);var {kA:X,Zw:G,bW:V,oM:J}=this.D();this.Zs||(b=this.V.ac()*1E3,T=this.Z.ac(),T=(V-X-T)*1E3,q&&q.msg==="in-the-past"&&(T=0),M=M.isAd(),this.V.jq(b,T,M),this.Zs=!0);q?(W=`cannot_apply${q.msg}`,delete q.msg,this.Jy(W,q)):this.status.status===2?nTq(this):(M=this.Z.dT())&&M.C()&&(!g8(M)&&g.EL()?this.Jy("mse_closed"):W.Z&&W.Z.A()&&M.V&&!M.V.oD()?this.Jy("encr_upgrade"):(W=this.Z.E2(),W.isEnded()?this.Jy("elem_ended"):G<0?this.Jy("next_player_future"):(this.X=V,this.currentVideoDuration= V-X,this.A=yzS(M,X,V,!0),this.S=yzS(M,G,J,!1),M=this.V.getVideoData().clientPlaybackNonce,this.Z.dK("gaplessPrep",{cpn:M}),this.Z.Wv(this.A,!1,this.C===1&&Sz(this.Z.getVideoData()),this.wG.G().j("html5_shorts_gapless_keep_pending_requests")&&LP(this.Z.getVideoData())),this.Z.setMediaElement(D3l(W,X,V,!this.Z.getVideoData().isAd())),w1(this,2),nTq(this))))}else this.Jy("no-elem")}W(M){var {PR:W}=Y3(this),b=M===W;W=b?this.A.Z:this.A.V;b=b?this.S.Z:this.S.V;if(W.isActive&&!b.isActive){var T=this.X,q= this.wG.G().j("html5_gapless_disable_on_discontinuous_buffer")&&this.C!==0&&W.ZY().length>1;SA(M.ZY(),T-.01)&&!q&&(w1(this,4),W.isActive=!1,W.TH=W.TH||W.isActive,(this.C===1?this.Z:this.V).dK("sbh",{}),b.isActive=!0,b.TH=b.TH||b.isActive,this.C!==0&&(this.Z.getVideoData().Nt=!0));M=this.S.V;this.S.Z.isActive&&M.isActive&&(w1(this,5),this.C!==0&&(M=this.V.Bh(),W=this.Z.Bh(),this.Z.dK("sbs",{citag:W?.itag,nitag:M?.itag}),this.V.dK("gitags",{pitag:W?.itag,citag:M?.itag}),this.V?.RJ()))}}sY(){this.qm()&& this.Jy("player-reload-after-handoff")}Jy(M,W={}){if(!this.ST()&&this.status.status!==6){var b=this.status.status>=4&&M!=="player-reload-after-handoff";this.status={status:Infinity,error:M};if(this.Z&&this.V){const T=this.V.getVideoData().clientPlaybackNonce;this.Z.dt(new g.WE("dai.transitionfailure",Object.assign(W,{cpn:T,transitionTimeMs:this.m0,msg:M})));this.Z.VF(b)}this.gs.reject(M);this.dispose()}}BY(){if(this.getStatus().status!==5)return"niss";if(g1(this.policy,this.Z,this.V,this.m0)!=null)return"pge"; const {PR:M,O3:W}=Y3(this),b=g.TO(this.wG.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var T=this.X+b;this.wG.G().experiments.FX("html5_pseudogapless_shorts")&&(T=this.D().Zw+b);const q=SA(W.ZY(),T);T=SA(M.ZY(),T);return!(b>0)||q&&T?null:"neb"}gK(){return this.currentVideoDuration}qm(){return this.status.status>=4&&this.status.status<6}vY(){ETp(this);this.Z.unsubscribe("newelementrequired",this.sY,this);if(this.A){const M=this.A.V;this.A.Z.gt.unsubscribe("updateend",this.W,this); M.gt.unsubscribe("updateend",this.W,this)}super.vY()}D(){var M=this.Z.E2();M=M.isView()?M.start:0;var W=this.Z.getVideoData().isLivePlayback?Infinity:this.Z.y3(!0);W=Math.min(this.m0/1E3,W)+M;var b=this.yz?100:0;b=W-this.V.ac()+b;return{kA:M,Zw:b,bW:W,oM:Infinity}}O(M){M.QN(128)&&this.Jy("player-error-event")}};var GGI=class extends g.gz{constructor(M){super();this.app=M;this.W=this.V=this.Z=null;this.gK=!1;this.X=this.C=this.B=this.A=null;this.S=Bmp(this.app.G());this.D=()=>{g.xS(()=>{U3t(this)})}}clearQueue(M=!1,W=!1){Mb(this); this.A&&this.A.reject("Queue cleared");this.app.G().j("html5_gapless_fallback_on_qoe_restart_v2")||W&&this.V&&this.V.VF(!1);$v(this,M)}LK(){return!this.Z}qm(){return this.B?.qm()||!1}Am(){return this.B?.Am()||!1}vY(){Mb(this);$v(this);super.vY()}};var Vu4=class extends g.b9{constructor(){super();this.fullscreen=0;this.A=this.B=this.pictureInPicture=this.Z=this.V=this.inline=!1;this.S=()=>{this.V0()}; ges(this.S);this.C=this.getVisibilityState(this.d0(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.iy(),this.He(),this.We(),this.KT())}getVisibilityState(M,W,b,T,q,X,G,V){return M?4:q&&nl?7:wML&&!(Eg()||document.hasFocus&&document.hasFocus())||Eg()?3:W?2:b?1:T?5:q&&!nl?7:X?8:G?9:V?10:0}Cu(M){this.fullscreen!==M&&(this.fullscreen=M,this.V0())}setMinimized(M){this.V!==M&&(this.V=M,this.V0())}setInline(M){this.inline!==M&&(this.inline=M,this.V0())}Yu(M){this.pictureInPicture!==M&&(this.pictureInPicture= M,this.V0())}setSqueezeback(M){this.B!==M&&(this.B=M,this.V0())}J4(M){this.A!==M&&(this.A=M,this.V0())}d0(){return this.Z}MO(){return this.fullscreen!==0}isFullscreen(){return this.fullscreen!==0&&this.fullscreen!==4}JW(){return this.fullscreen}isMinimized(){return this.V}isInline(){return this.inline}isBackground(){return Eg()}iy(){return this.pictureInPicture}He(){return!1}We(){return this.B}KT(){return this.A}V0(){this.publish("visibilitychange");const M=this.getVisibilityState(this.d0(),this.isFullscreen(), this.isMinimized(),this.isInline(),this.iy(),this.He(),this.We(),this.KT());M!==this.C&&this.publish("visibilitystatechange");this.C=M}vY(){s9J(this.S);super.vY()}};g.d7=class extends g.gz{constructor(M){super();this.uV=M;this.videoData=this.playerState=null}vY(){this.videoData=this.playerState=null;super.vY()}addCueRange(){}VC(){}qD(){}Jh(){return!1}GS(){return!1}UC(){}XZ(){}hg(){return[]}Xm(){}Uz(){}Fc(){return 1}getAudioTrack(){return this.getVideoData().p7}X9(){return null}getAvailableAudioTracks(){return[]}a8(){return[]}zk(){return[]}FP(){return this.uV.j("web_player_misc_bugfix_b")?this.getVideoData().clientPlaybackNonce:""}xS(){return[]}u9(){}ac(){return 0}getCurrentTime(){return 0}qM(){}Bh(){}qd(){return{}}getDuration(){return 0}xI(){return 0}A1(){return 0}HN(){return!1}Ph(){return 0}gI(){return 0}Tl(){return null}ZS(){return 0}Xc(){return!1}y3(){return 0}E2(){return null}dT(){return null}XD(){return 0}e_(){return 0}async MZ(){}getPlaybackQuality(){return"auto"}getPlaybackRate(){return 1}getPlayerState(){this.playerState|| (this.playerState=new g.TD);return this.playerState}getPlayerType(){return 0}getPlaylistSequenceForTime(){return null}un(){return()=>{}}Q4(){return""}getPreferredQuality(){return"unknown"}Yd(){}getProximaLatencyPreference(){return 0}Js(){return ll}getStartTime(){return NaN}SH(){return null}getStoryboardFormat(){return null}getStreamTimeOffset(){return 0}lG(){return 0}Ga(){return 0}Tf(){return{xA:[], mC:[],currentTime:0,xB:"",droppedVideoFrames:0,isGapless:!1,Am:!1,LK:!0,zf:0,F4:0,aS:0,UV:0,X4:0,qq:[],Ho:[],k8:null,tp:"0",vy:null,L8:"",totalVideoFrames:0}}getUserAudio51Preference(){return 0}getUserPlaybackQualityPreference(){return""}getVideoData(){this.videoData||(this.videoData=new g.fk(this.uV),g.t(this,this.videoData));return this.videoData}Q7(){return null}nH(){return null}rU(){}getVideoLoadedFraction(){return 0}Fh(){}handleError(){}VF(){}bJ(){}V1(){return!1}hasSupportedAudio51Tracks(){return!1}isAd(){return!1}vM(){return!1}d0(){return!1}isAtLiveHead(){return!1}fB(){return!0}isGapless(){return!1}Am(){return!1}isHdr(){return!1}gD(){return!1}mx(){return!1}wu(){return!1}isProximaLatencyEligible(){return!1}LK(){return!0}jp(){return!1}wy(){return!1}NP(){}Ji(){}RJ(){}xu(){}d4(){}RC(){}Au(){}i8(){}pauseVideo(){}prefetchKeyPlay(){}async playVideo(){}LD(){}Ee(){}dK(){}Wg(){}Cq(){}jq(){}dt(){}yD(){}h3(){}bI(){}xt(){}TG(){}o3(){}removeCueRange(){}So(){}lN(){return[]}Jg(){}ys(){}SJ(){}N9(){}wf(){}Iu(){}Hj(){}seekTo(){}sendAbandonmentPing(){}sendVideoStatsEngageEvent(){}GE(){}setLoop(){}mj(){}setMediaElement(){}Wv(){}setPlaybackRate(){}J1(){}Es(){}Vs(){}setProximaLatencyPreference(){}Dm(){}eJ(){}On(){}G8(){}j5(){}setUserAudio51Preference(){}I6(){}Aj(){return!1}LW(){}L4(){return!1}JC(){}bY(){}Up(){}stopVideo(){}subscribe(){return NaN}o8(){}togglePictureInPicture(){}gp(){return 0}Oe(){}unsubscribe(){return!1}yu(){}Ys(){return!1}vH(){}sT(){}N6(){}}; g.L=g.d7.prototype;g.L.Sh=Ma(47);g.L.rr=Ma(37);g.L.zs=Ma(30);g.L.Ts=Ma(24);g.L.Fo=Ma(18);g.L.pU=Ma(12);var oV=class extends g.gz{constructor(M,W){super();this.data=[];this.B=M||NaN;this.V=W||null;this.Z=new g.d9(()=>{bi(this);Tq(this)}); g.t(this,this.Z)}get(M){bi(this);const W=this.data.find(b=>b.key===M); return W?W.value:null}set(M,W,b){this.remove(M,!0);bi(this);M={key:M,value:W,expire:Infinity};b&&isFinite(b)&&(b*=1E3,M.expire=(0,g.u)()+b);for(this.data.push(M);this.data.length>this.B;)(b=this.data.shift())&&Wm(this,b,!0);Tq(this)}remove(M,W=!1){const b=this.data.find(T=>T.key===M); b&&(Wm(this,b,W),g.jp(this.data,T=>T.key===M),Tq(this))}removeAll(M=!1){if(M)for(const W of this.data)Wm(this,W,M); this.data=[];Tq(this)}vY(){super.vY();this.data.forEach(M=>{Wm(this,M,!0)}); this.data=[]}};g.cv=class extends g.gz{constructor(M,W){super();this.api=M;this.B={};this.S={};this.Rw=null;this.A={};this.Z=null;this.X=new Map;this.D=null;W=new oV(W,b=>{b!==this.dW({playerType:b.getPlayerType()})&&b.dispose()}); g.t(this,W);this.V=this.gK=this.W=new g.d7(M.G());this.C=W}vY(){for(const M of Object.values(this.B))M.dispose();tcL(this);this.W.dispose();super.vY()}e4(M){return M?M===1?this.gK:this.V.getVideoData().enableServerStitchedDai&&M===2?this.V.getVideoData().ql?this.B[2]||this.V:this.V:this.B[M]||null:this.V}dW(M){var W=M.cpn;const b=M.lL;M=M.playerType;if(W)a:if(LY(this.api.G().hT()))W=this.S[W]||null;else{for(const T of Object.values(this.B))if(T.FP()===W){W=T;break a}W=this.A[W]||null}else W=b&&this.Rw? this.Rw:M?this.e4(M):this.V;return W}RT(){return this.gK}H_(M){this.gK=M}Jn(){return this.V}Wj(M){const W=[M],b=[this.V];this.V=M;qb(this,W,b)}};g.cv.prototype.X3=Ma(45);g.cv.prototype.Af=Ma(43);var JY4=class{constructor(){this.values=new Float64Array(176);this.Z=new Float64Array(11);this.V=new Float64Array(16)}DJ(M,W){for(var b=0;b<10;b++){var T=this.Z[b],q=T+(b===0?M:0),X=1*Math.pow(2,b);if(q<=X)break;T=Math.min(1,(q-X*.5)/T);for(q=0;q<16;q++)X=this.values[b*16+q]*T,this.values[(b+1)*16+q]+=X,this.Z[b+1]+=X,this.values[b*16+q]-=X,this.Z[b]-=X}T=b=0;q=8192;W>8192&&(b=Math.ceil(Math.log(W/8192)/Math.log(2)),T=8192*Math.pow(2,b-1),q=T*2);b+2>16?this.values[15]+=M:(W=(W-T)/(q-T),this.values[b]+= M*(1-W),this.values[b+1]+=M*W);this.Z[0]+=M}Hx(){const M=this.V;for(var W=0;W<16;W++)M[W]=this.values[W];W=this.Z[0];for(var b=1;b<11;b++){var T=this.Z[b];if(T===0)break;var q=Math.min(1,(17-W)/T);for(var X=0;X<16;X++)M[X]+=this.values[b*16+X]*q;W+=T*q;if(q<1)break}b=q=0;for(T=0;T<16;T++){X=q+M[T]/W;b+=Math.max(0,Math.min(X,.98)-Math.max(q,.02))*(T>0?8192*Math.pow(2,T-1):0);if(X>.98)break;q=X}return b/.96}};var QY=class{constructor(M,W,b=.5,T=0){this.resolution=W;this.V=0;this.S=!1;this.nZ=!0;this.Z=Math.round(M*this.resolution);this.values=Array(this.Z);for(M=0;M=this.Z&&(this.S=!0);for(;M--;)this.values[this.V]=W,this.V=(this.V+1)%this.Z;this.nZ=!0}percentile(M){if(!this.S&&this.V===0)return 0;this.nZ&&(g.v$(this.C, (W,b)=>this.values[W]-this.values[b]),this.nZ=!1); return this.values[this.C[Math.round(M*((this.S?this.Z:this.V)-1))]]||0}Hx(){return this.A?(this.percentile(this.B-this.A)+this.percentile(this.B)+this.percentile(this.B+this.A))/3:this.percentile(this.B)}};var BPA=class extends g.gz{constructor(M,W,b){super();this.policy=M;this.V=W;this.jT=b;this.Zs=this.MK=0;this.O=-1;this.sY=this.S=0;this.gK=!1;this.interruptions=[];this.B=[{stamp:0,net:0,max:0}];this.An=0;this.lV=this.C=(0,g.u)();this.D=new QY(4,1,.6,.4);this.yz=new QY(4,1,.6,.4);this.W=new QY(20,1,.5,.4);M.gK?this.A=new JY4:M.B?this.A=new Ks(17):this.A=new QY(17,20,.5,.4);this.BY=new QY(5,1,.25);this.X=new QY(30,1,.5);M=g.MZ("yt-player-bandwidth")||{};W=this.policy.Z;M.byterate>0?(W=M.byterate, this.gK=!0):(b=(navigator.connection?.downlink||0)*64*1024,b>0&&(W=b,this.gK=!0));this.A.DJ(this.policy.S,W);M.delay>0&&this.D.DJ(1,Math.min(M.delay,2));M.stall>0&&this.W.DJ(1,M.stall);M.init>0&&(this.lV=Math.min(M.init,this.lV));M.interruptions&&(this.B=this.B.concat(M.interruptions),this.B.length>16&&this.B.pop());this.O=(0,g.u)();this.policy.C>0&&(this.xk=new g.d9(this.Lp,this.policy.C,this),g.t(this,this.xk),this.xk.start())}Lp(){this.xk?.start();ix(this)&&this.policy.W&&this.jT()}};var cQs=class{constructor(M){this.experiments=M;this.Z=13E4;this.S=.5;this.V=this.B=!1;this.gK=this.j("html5_use_histogram_for_bandwidth");this.A=g.TO(this.experiments,"html5_auxiliary_estimate_weight");this.X=g.TO(this.experiments,"html5_stall_factor")||1;this.C=g.TO(this.experiments,"html5_check_for_idle_network_interval_ms");this.W=this.experiments.FX("html5_trigger_loader_when_idle_network");this.D=this.experiments.FX("html5_sabr_fetch_on_idle_network_preloaded_players")}j(M){return this.experiments.FX(M)}};var G8s=class extends g.ya{constructor(M,W,b=0){super(W.Q7());this.videoData=M;this.duration=b;this.Z=this.startTimeSecs=0;this.V=this.B=!0}A(){}FP(){return this.videoData.clientPlaybackNonce}getVideoData(){return this.videoData}getCurrentTime(M){let W=super.getCurrentTime();this.Z===0?M||(W-=this.startTimeSecs,super.getVideoData().j("html5_ssdai_log_missed_ad_impressions")&&this.V&&this.B&&W>1&&this.dK("sdai-admiss",{cpn:this.FP(),ct:W.toFixed(3),pfs:this.B}),this.V=!1):M&&(W=this.Z);return W}getDuration(){return this.duration}getPlayerType(){return 2}getStartTime(){return this.startTimeSecs}wI(M){this.duration= M}};var CZs,D$V;CZs=class{constructor(M){this.end=this.start=M}};g.g7=class{constructor(){this.Z=new Map;this.B=new Map;this.V=new Map}hJ(M,W){if(W===1)return this.Z.get(M);if(W===2)return this.B.get(M);if(W===3)return this.V.get(M)}ZV(M,W,b,T){b={Xv:T,Jb:b};W?this.B.set(M,b):this.Z.set(M,b)}clearAll(){this.Z.clear();this.B.clear();this.V.clear()}};g.g7.prototype.UH=Ma(65);D$V=class{constructor(M){this.uV=M;this.V=[];this.B=new Map;this.A=new Map;this.Z=new Map;this.k9={wX:()=>this.B, H7z:()=>this.A, HG:()=>this.V}}clear(){this.V=[]; this.B.clear();this.A.clear();this.Z.clear()}dW(M){return this.B.get(M)}};g.s_=class extends g.gz{constructor(M,W,b,T){super();this.api=M;this.uV=W;this.playback=b;this.app=T;this.gK=new g.g7;this.V=new Map;this.cP=new Map;this.Zs=new Map;this.BY=null;this.vP=NaN;this.bV=this.d9=null;this.XX=new g.d9(()=>{Twa(this,this.vP,this.d9||void 0)}); this.events=new g.Cq(this);this.wK=15E3;this.C=new g.d9(()=>{this.W=!0;this.playback.yD(this.wK);LM(this);this.playback.getVideoData().FD()&&this.x9({togab:this.S?.identifier});this.Fh(!1)},this.wK); this.W=!1;this.GT=new Map;this.Lp=[];this.S=null;this.Hr=new Set;this.D=[];this.An=[];this.s2=[];this.Y9=[];this.xk=new Set;this.sY=0;this.X=!1;this.aT=new Set;this.x_=new Set;this.A5=new Set;this.EY=new Set;this.WP=this.Fv=0;this.Y5=this.FT=!1;this.kS=this.B="";this.O=null;this.logger=new g.uk("dai");this.sj="";this.MK=!0;this.lV=new Map;this.oT=new Map;this.k9={SjT:()=>this.V, wX:()=>this.Z.k9.wX(), NUT:()=>this.B, V2V:q=>{this.onCueRangeEnter(this.V.get(q))}, IyY:q=>{this.onCueRangeExit(this.V.get(q))}, uAp:(q,X)=>{this.V.set(q,X)}, gSY:q=>{this.kS=q}, bd:()=>this.bd(), LQk:q=>this.Z.Z.get(q), zAk:()=>this.O, HG:()=>this.Z.k9.HG(), jt:(q,X)=>{this.jt(q,X)}, Egv:()=>this.cP, AL:q=>{this.AL(q)}}; this.playback.getPlayerType();this.Z=new D$V(this.uV);this.playback.j5(this);this.jT=this.uV.jW();g.t(this,this.XX);g.t(this,this.events);g.t(this,this.C);this.p7=this.uV.j("html5_use_new_ssdai_transition_detector");this.Ds=this.uV.hT().Z.UY(IIS);M=this.playback.getVideoData();M.FD()&&M.latencyClass==="NORMAL"&&(this.Ds=this.uV.hT().Z.UY(D2y));this.fv=this.uV.hT().Z.UY(B7S);this.k_=this.playback.getVideoData().aY;this.p7?this.playback.subscribe("playbackstarted",this.jt,this):(this.events.J(this.api, g.kJ("serverstitchedcuerange"),this.onCueRangeEnter),this.events.J(this.api,g.KX("serverstitchedcuerange"),this.onCueRangeExit));this.m$=this.uV.j("html5_ssdai_report_stitch_error_after_skip_ad");Xc(this.app.wW(),this.playback,!1)}GY(M,W,b,T,q,X,G,V){var J=q7S(this,q,q+T);this.W&&this.x9({adaftto:1});W||this.x9({missadcon:1,enter:q,len:T,aid:G});this.A&&!this.A.sF&&(this.A.sF=G);this.Y5&&this.x9({adfbk:1,enter:q,len:T,aid:G});var B=this.playback;q>X&&li(this,{reason:"enterTime_greater_than_return", Br:q,PF:X});var D=B.XD()*1E3;qB&&li(this,{reason:"parent_return_greater_than_content_duration",PF:X,Hzn:B});(B=$At(this.Z,q))&&B.PF>q&&li(this,{reason:"overlapping_playbacks",ry0:M.video_id||"",Br:q,PF:X,BtK:B.cpn,lyk:B.videoData?.videoId||"",A1s:B.durationMs,PNT:B.Br,pFn:B.PF});if(J&&B)for(D=0;Da===G)&&(this.x9({rejectAdBreakAttl:G},!0),this.Y9.push(G)); Uf(this);return}M.cpn||(M.cpn=g.Ja(16));J=M.cpn;M=new g.fk(this.uV,M);M.BC=!0;M.cF=M.clientPlaybackNonce;B=G?G:B?B.b3:J;W={playerType:b,durationMs:T,Br:q,PF:X,cpn:J,videoData:M,errorCount:0,ssdaiAdsConfig:W,b3:B};b=M.getPlayerResponse()?.playbackTracking;this.fv&&(W.serializedQoeContextData=b?.serializedQoeContextData);this.Ds&&(b=MT(b?.serializedPlaybackPingContextData??"")??void 0,W.qg=g.Sr({clientPlaybackNonce:J,serializedPlaybackPingContextData:b},CsJ));pTs(this.Z,W);(V=jfq(this,V))&&this.k_&& this.cP.set(B,V);VPt(this,M,T);this.x9({attlDone:X-q,acpn:J,et:q,prt:X});this.C.isActive()&&(this.W=!1,this.C.stop(),LM(this),this.Fh(!0));G&&this.p7&&(this.lV.has(G)?this.lV.get(G).add(J):this.lV.set(G,new Set([J])),this.oT.set(J,G));return M}hg(){const M=this.playback.hg("serverstitchedcuerange",36E5);for(const W of M)this.V.delete(W.getId())}onCueRangeEnter(M){const W=M.getId();this.x9({oncueEnter:1,cpn:W,start:M.start,end:M.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ac()|| 0).toFixed(3)});var b=this.Z.dW(W);this.x9({enterAdCueRange:1});var T=this.kS||this.bd().cpn;const q=this.Z.dW(T)??this.bd();b&&(T=this.playback.getCurrentTime(),b.startTimeSecs=M.start/1E3,b={VG:q,vN:b,yG:T},Zd(this,W,M.start/1E3,T),Nb(this,b));this.MK=!1}jt(M,W,b){if(M&&W&&M!==this.app.wW().Z?.FP())if((this.app.wW().A[M]||null)===null)this.x9({nocpn:M,active:this.app.wW().Z?.FP()});else{this.MK=b??!1;b=this.app.wW().Z?.FP()||this.playback.FP();var T=this.Z.dW(b)??this.bd(),q=this.Z.dW(M)??this.bd(); q.startTimeSecs=W;q.playerType===2&&(q.bb=q.bb!=null?Math.min(q.bb,W):W);var X=this.playback.getCurrentTime();Zd(this,b,W,X);Nb(this,{VG:T,vN:q,yG:X});if(this.playback.getVideoData().FD()&&M===this.playback.FP())if(W=this.oT.get(b)){for(const G of this.lV.get(W)??[]){M=this.app.wW();if(b=M.A[G])M.Z===b&&(M.Z=null),M.D===b&&(M.D=null),G===M.X.get("")?.FP()&&M.X.delete(""),delete M.A[G],delete M.S[G];this.Zs.delete(G);this.oT.delete(G)}this.lV.delete(W)}else this.x9({no_abid:M})}}bv(M,W){if(M===this.playback.FP())Xc(this.app.wW(), this.playback,!1);else{const b=this.Zs.get(M);b?(gTJ(b,W,!this.MK),Xc(this.app.wW(),b,!0)):this.x9({nop_s:M})}}onCueRangeExit(M){var W=this.playback.getCurrentTime()*1E3,b=M.getId();this.x9({oncueExit:1,cpn:b,start:M.start,end:M.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ac()||0).toFixed(3)});for(var T of this.V.values())if(T.getId()!==b&&W>=T.start&&W<=T.end)return;if(W=this.Z.dW(b))b=this.playback.getPlayerState(),this.playback.getVideoData().FD()&&b.Z(2)||(b=this.playback.getCurrentTime(), T=this.bd(),T.startTimeSecs=M.end/1E3,W={VG:W,vN:T,yG:b},Zd(this,this.playback.FP(),M.end/1E3,b),Nb(this,W))}bd(){return{cpn:this.playback.FP(),durationMs:0,Br:0,playerType:1,PF:0,videoData:this.playback.getVideoData(),errorCount:0,b3:""}}OY(){if(this.Y5)return!1;let M=void 0;this.kS&&(M=this.Z.dW(this.kS));return this.playback.getVideoData().FD()?!!M&&!M.W9:!!M}seekTo(M=0,W={},b=!1,T=null){IA(this,this.kS);if(this.playback.getVideoData().FD()&&M<=this.sY)this.playback.pauseVideo(),this.sY=0,nKa(this, M);else if(this.MK=this.X=!0,b)Twa(this,M,W);else{b=this.app.Jn();const q=b===this.BY?this.bV:null;ml(this,!1);this.vP=M;this.d9=W;T!=null&&this.XX.start(T);b&&(this.bV=q||b.getPlayerState(),b.Up(W),this.BY=b)}}vY(){ml(this,!1);RA(this);UAs(this);super.vY()}h2(M,W,b){if(b&&W){var T=this.GT.get(M);if(T){T.locations||(T.locations=new Map);var q=Number(W.split(";")[0]);b=new g.LJ(b);this.x9({hdlredir:1,itag:W,seg:M,hostport:Bh(36,b)});T.locations.set(q,b)}}}nY(M){a:{if(!this.Y5){var W=ry(this,M);if(!this.playback.getVideoData().FD()|| !W?.W9)break a}W=void 0}var b=W;if(!b)return this.x9({gvprp:"ncp",mt:M}),null;W=b.b3;var T=bAJ(this,b.ssdaiAdsConfig);b=b.o2&&b.HR&&M>=b.HR?b.o2:void 0;T={nW:W?KM(this,W):[],adsConfig:T,F_:b};this.x9({gvprpro:"v",mt:M.toFixed(3),acpns:T.nW?.join("_")||"none",abid:W});return T}iJ(M,W,b,T,q,X){const G=Number(b.split(";")[0]);var V=T===3;M=WJL(this,M,W,T,b,X);this.x9({gdu:1,seg:W,itag:G,pb:`${!!M}`});if(!M)return CM(this,W,V),null;M.locations||(M.locations=new Map);if(!M.locations.has(G)){X=M.videoData.getPlayerResponse()?.streamingData?.adaptiveFormats; if(!X)return this.x9({gdu:"noadpfmts",seg:W,itag:G}),CM(this,W,V),null;var J=X.find(D=>D.itag===G); if(!J||!J.url){M=M.videoData.videoId;T=[];for(var B of X)T.push(B.itag);this.x9({gdu:"nofmt",seg:W,vid:M,itag:G,fullitag:b,itags:T.join(",")});CM(this,W,V);return null}M.locations.set(G,new g.LJ(J.url,!0))}B=M.locations.get(G);if(!B)return this.x9({gdu:"nourl",seg:W,itag:G}),CM(this,W,V),null;B=new an(B);this.FT&&(B.get("dvc")?this.x9({dvc:B.get("dvc")||""}):B.set("dvc","webm"));(T=this.hJ(W-1,T,q)?.Xv)&&B.set("daistate",T);M.o2&&W>=M.o2&&B.set("skipsq",`${M.o2}`);(T=this.playback.getVideoData().clientPlaybackNonce)&& B.set("cpn",T);T=[];M.b3&&(T=KM(this,M.b3),T.length>0&&B.set("acpns",T.join(",")));V||this.GT.set(W,M);V=null;V=B.get("aids");q=B.WF();q?.length>2048&&this.x9({urltoolong:1,sq:W,itag:G,len:q.length});this.jT&&(q&&(X=M.cpn,B=M.b3,k8a(this,X,B),B&&!this.A5.has(B)&&(X=KJQ(this,X,B),J=vKS(this,B),this.x9({iofa:X}),this.x9({noawnzd:J-X}),this.x9({acpns:T.join("."),aids:V?.replace(/,/g,".")}),this.A5.add(B))),this.x9({gdu:"v",seg:W,itag:b,ast:M.Br.toFixed(3),alen:M.durationMs.toFixed(3),acpn:M.cpn,avid:M.videoData.videoId})); return q}FR(M,W,b=!1){const T=vm(this,M,W);if(T){this.m$&&(this.yz=T);var q=void 0,X=T.b3;if(X){this.x9({skipadonsq:W,sts:b,abid:X,acpn:T.cpn,avid:T.videoData.videoId});b=this.Z.Z.get(X);if(!b)return;for(const G of b)G.o2=W,G.HR=M,G.Br>T.Br&&(q=G)}IA(this,this.kS);this.B=T.cpn;mAL(this);this.api.j("html5_ssdai_enable_media_end_cue_range")&&this.playback.Oe(this.B);M=this.playback.getCurrentTime();BwJ(this,T,q,M,M,!1,!0);EKJ(this)}}ke(){var M=this.Z;for(const W of M.V)W.o2=NaN,W.HR=NaN;mAL(this);this.x9({rsac:"resetSkipAd", sac:this.B});this.EY.delete(this.B);this.B="";this.m$&&(this.yz=void 0)}hJ(M,W,b){return this.gK.hJ(M,W,b)}d6(M){const W=M.trackType;for(const V of M.metadata??[])for(const J of V.IB??[]){var b=J.HJ,T=J.xO;M=J.cpn;var q=J.loggingMetadata,X=J.rQ,G=J.wQ;if(!M||M===this.playback.getVideoData().clientPlaybackNonce)continue;const B=this.Z.dW(M);if(W===2){if(b&&b.startTicks!==void 0&&b.LH!==void 0&&b.timescale!==void 0&&T&&T.startTicks!==void 0&&T.LH!==void 0&&T.timescale!==void 0&&X!==void 0){const D= b.startTicks/b.timescale,a=T.startTicks/T.timescale;b=(D-a)*1E3;T=(a+T.LH/T.timescale)*1E3;G=G?T:Math.max(T+1E3,X);X=b+G;B&&(fM(this,B,G,X),B.bb=B.bb!==void 0?Math.min(B.bb,D):D,q&&(B.Fk=q));(q=this.V.get(M))?(q.start=b,q.end=X,this.playback.RC()):(q=JuQ(b,X,M),this.V.set(M,q),this.playback.addCueRange(q))}this.hg()}else W===1&&B&&q&&(B.E3=q)}}ZV(M,W,b,T,q,X,G,V){b.length>0&&this.x9({onssinfo:1,sq:M,start:W.toFixed(3),cpns:b.join(","),ds:T.join(","),isVideo:X?1:0});if(this.m$&&this.yz&&this.yz.o2&& b.length>0)for(var J of b)if(J===this.yz.cpn){this.sj!==J&&(this.x9({skiperror:1,sq:M,acpn:this.yz.cpn,skipsq:this.yz.o2||0}),this.sj=J);break}V&&this.gK.ZV(M,X,G,V);if(X){if(b.length&&T.length)for(this.EY.has(b[0])&&this.x9({skipfail:1,sq:M,acpn:b[0]}),M=W+this.lG(),X=0;Xthis.A.tL+1){this.x9({cueStChg:M.identifier,oldSt:this.A.tL.toFixed(3),newSt:M.startSecs.toFixed(3),abid:this.A.sF});if(this.A.sF){const b=M.startSecs-this.A.tL,T=this.Z.Z.get(this.A.sF);if(T)for(const q of T)q.Br>=0&&(q.Br+=b*1E3,this.x9({newApEt:q.Br,newApPrt:q.PF,acpn:q.cpn}))}this.A.tL=M.startSecs}W?this.xk.add(M.identifier):this.xk.has(M.identifier)&&this.xk.delete(M.identifier);return W}Fl(M){let W= "";M?M.event==="unknown"?W="unknown":this.xk.has(M.identifier)?this.A&&this.A.DA===M.identifier?this.A.DA===M.identifier?W=gG(this.An,b=>b.identifier===M.identifier)?"shortad":"pending":gG(this.An,b=>b.identifier===M.identifier)||(W="noAdsAdded"):W="wrongAdBreakInfo":W="unscheduled":W="noCuepoint"; return W}XK(M){return this.Y5?!1:!!ry(this,M)}L0(M){if(this.uV.j("html5_lifa_ignore_multiple_skips")&&this.O)return this.x9({ufs_ad:this.B,ufs_cur:this.kS,ufs_cont:this.bd().cpn}),!1;IA(this,this.kS);this.playback.pauseVideo();const W=this.playback.getCurrentTime(),b=this.Z.dW(this.kS);if(!b)return this.x9({skipFail:W}),!1;this.B=this.kS;this.X=!1;this.api.j("html5_ssdai_enable_media_end_cue_range")&&this.playback.Oe(this.B);this.AL(b.b3);lGq(this,b,this.bd(),M);nKa(this,W,{seekSource:89,jR:"lifa_skip"}); this.O||(this.O=this.events.J(this.api,"progresssync",()=>{Ir(this.api.r0(),(0,g.u)(),"ad_to_video");this.O&&(this.events.fN(this.O),this.O=null)})); return!0}AL(M){if(this.playback.getVideoData().FD()){var W=this.Z.Z.get(M);if(W){for(var b of W)W=this.V.get(b.cpn),this.V.delete(b.cpn),W&&this.playback.removeCueRange(W),MPq(this.Z,b);this.GT.clear();b=this.Z;W=b.Z.get(M)??[];for(const T of W)MPq(b,T);b.Z.delete(M);(M=this.cP.get(M))&&this.k_&&this.playback.N9(M)}}}x9(M,W=!1){(W||this.jT)&&this.playback.dK("sdai",M)}};g.s_.prototype.UH=Ma(64);var aZI=class extends g.gz{constructor(M,W,b,T){super();this.api=M;this.uV=W;this.Z=b;this.app=T;this.S=new Map;this.V=[];this.B=this.W=null;this.gK=NaN;this.C=this.A=this.X=null;this.D=new g.d9(()=>{ZAs(this,this.gK,this.X||void 0)}); this.O=[];this.Zs=new g.d9(()=>{var q=this.O.pop();if(q){const X=q.cF,G=q.playerVars;q=q.playerType;G&&(G.prefer_gapless=!0,this.api.preloadVideoByPlayerVars(G,q,NaN,"",X),this.O.length&&this.Zs.Wr(4500))}}); this.events=new g.Cq(this);this.k9={ekp:()=>this.V}; this.Z.getPlayerType();g.t(this,this.D);g.t(this,this.Zs);g.t(this,this.events);this.events.J(this.api,g.kJ("childplayback"),this.onCueRangeEnter);this.events.J(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.J(this.api,"presentingplayerstatechange",this.by)}onCueRangeEnter(M){if(this.Z===this.app.Jn()){var W=this.S.get(M);W?RKq(this,W.target,W.m0,M):this.dt("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:M.toString()})}else if(W=this.V.find(T=>T.mB.Yj===M)){var b= W.mB; const T=b.target;b=b.m0;T?RKq(this,T,b,M):rua(this,W.PF,b,M)}}onQueuedVideoLoaded(){const M=this.W;h9(this);M&&(ii(this,M)||this.dt("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:this.app.Jn()?.getVideoData().clientPlaybackNonce,ccpn:`${M.playerVars.cpn}`}),this.app.Jn().addCueRange(M.mB.Yj))}seekTo(M=0,W={},b=!1,T=null){if(b)ZAs(this,M,W);else{b=this.app.Jn()||null;const q=b===this.A?this.C:null;xv(this,!1);this.gK=M;this.X=W;T!=null&&this.D.start(T);b&&(this.C=q||b.getPlayerState(), b.Up(),this.A=b)}}by(M){M.QN(128)&&FJq(this)}isManifestless(){return R9(this.Z.getVideoData())}vY(){xv(this,!1);Sh(this);super.vY()}dt(M,W){this.Z.dt(new g.WE(M,W))}},HAt=0;var hKG="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(" ");var EUA=class extends g.gz{constructor(){super();this.Z=new oV(5,null);g.t(this,this.Z);this.V=new oV(15,null);g.t(this,this.V)}Ll(M){if(M)return this.V.get(M)}vY(){this.Z.removeAll();this.V.removeAll();super.vY()}};g.nUr=tW(()=>{const M=window.AudioContext||window.webkitAudioContext;try{return new M}catch(W){return W.name}});var yYB=class extends g.w{constructor(M){super({K:"div",rK:["html5-video-player"],Y:{tabindex:M.G().disableOrganicUi?"":"-1",id:M.webPlayerContextConfig.rootElementId},U:[{K:"div",N:g.Vg.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});this.app=M;this.Yi=this.hn(g.Vg.VIDEO_CONTAINER);this.IY=new g.re(0,0,0,0);this.gG=null;this.Xe=new g.re(0,0,0,0);this.qN=this.rN=this.Ie=NaN;this.u5=this.Fe=this.iA=this.Ct=!1;this.wj=NaN;this.Ef=!1;this.nS=null;this.y5=new g.d9(()=>{this.app.G().j("web_enable_smart_zoom")&& this.app.o0.getInternalApi().isAutocropEnabled()||this.resize()},100); this.Nn=()=>{this.element.focus({preventScroll:!0})}; this.Km=()=>{this.app.o0.publish("playerUnderlayVisibilityChange","visible");this.gG.classList.remove(g.Vg.VIDEO_CONTAINER_TRANSITIONING);this.gG.removeEventListener(eh,this.Km);this.gG.removeEventListener("transitioncancel",this.Km)}; this.US=this.SX=!1;const W=this.element.addEventListener,b=this.element.removeEventListener;this.addEventListener=(q,X,G)=>{W.apply(this.element,[q,X,G])}; this.removeEventListener=(q,X,G)=>{b.apply(this.element,[q,X,G])}; const T=M.G();T.transparentBackground&&this.TC("ytp-transparent");T.controlsType==="0"&&this.TC("ytp-hide-controls");g.pY(this.element,"ytp-exp-bottom-control-flexbox");g.pY(this.element,"ytp-modern-caption");T.j("enable_new_paid_product_placement")&&!g.kj(T)&&g.pY(this.element,"ytp-exp-ppp-update");g.pY(this.element,"ytp-livebadge-color");zKS(this.element,T1y(M));this.Qj=!1;this.ma=new g.i0(NaN,NaN);S7p(this);this.J(M.o0,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.t(this,this.y5)}TC(...M){g.Yc(this.element, M)}ys(){this.gG&&(this.gG.removeEventListener("focus",this.Nn),g.a5(this.gG),this.gG=null)}bj(){this.ST();const M=this.app.G();M.Ia||this.TC("tag-pool-enabled");M.C&&this.TC(g.Vg.HOUSE_BRAND);M.playerStyle==="gvn"&&(this.TC("ytp-gvn"),this.element.style.backgroundColor="transparent");M.vP&&(this.wj=g.Yw("yt-dom-content-change",this.resize,this));this.J(window,"orientationchange",this.resize,this);this.J(window,"resize",this.resize,this)}ou(M){g.bb(this.app.G());this.u5=!M;Of(this)}resize(){if(this.gG){var M= this.hX();if(!M.isEmpty()){this.app.o0.isFullscreen()&&a$()&&this.y5.start();var W=!g.hY(M,this.IY.getSize()),b=eKg(this);W&&(this.IY.width=M.width,this.IY.height=M.height);M=this.app.G();(b||W||this.US||M.vP)&&this.app.o0.publish("resize",this.getPlayerSize())}}}hm(M,W){this.updateVideoData(W)}updateVideoData(M){if(this.gG){var W=this.app.G();$w&&(this.gG.setAttribute("x-webkit-airplay","allow"),M.title?this.gG.setAttribute("title",M.title):this.gG.removeAttribute("title"));this.gG.setAttribute("controlslist", "nodownload");W.OE&&M.videoId?this.gG.poster=M.pz("default.jpg"):LU()&&(sn??0)>=10&&(this.gG.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}W=g.Ob(M,"yt:bgcolor");this.Yi.style.backgroundColor=W?W:"";this.Ie=fU(g.Ob(M,"yt:stretch"));this.rN=fU(g.Ob(M,"yt:crop"),!0);g.H(this.element,"ytp-dni",M.uN);this.resize()}setGlobalCrop(M){this.qN=fU(M,!0);this.resize()}setCenterCrop(M){this.Ct=M;this.resize()}Cu(){}getPlayerSize(){var M=this.app.G();const W=this.app.o0.isFullscreen(); var b=M.externalFullscreen&&g.tP(M);if(W&&a$()&&!b)return new g.i0(window.outerWidth,window.outerHeight);b=!isNaN(this.ma.width)&&!isNaN(this.ma.height);const T=this.app.G().j("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.G().j("web_watch_enable_fs_squeezeback_panels");if(W&&!b&&T)return new g.i0(this.element.clientWidth,this.element.clientHeight);if(W||M.U7){let q;window.matchMedia&&(M="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.nS&&this.nS.media=== M||(this.nS=window.matchMedia(M)),q=this.nS&&this.nS.matches);if(q)return new g.i0(window.innerWidth,window.innerHeight)}else if(b)return this.ma.clone();return new g.i0(this.element.clientWidth,this.element.clientHeight)}hX(){var M=this.app.G().j("enable_desktop_player_underlay");const W=this.getPlayerSize(),b=g.TO(this.app.G().experiments,"player_underlay_min_player_width");return M&&this.iA&&W.width>b?(M=g.TO(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.i0(Math.min(W.height* this.getVideoAspectRatio(),W.width*M),Math.min(W.height,W.width*M/this.getVideoAspectRatio()))):W}getVideoAspectRatio(){return isNaN(this.Ie)?PZs(this):this.Ie}getVideoContentRect(M){const W=this.hX();M=OAp(this,W,this.getVideoAspectRatio(),M);return new g.re((W.width-M.width)/2,(W.height-M.height)/2,M.width,M.height)}Un(M){this.iA=M;this.resize()}CV(){return this.Fe}onMutedAutoplayChange(){Of(this)}setInternalSize(M){g.hY(this.ma,M)||(this.ma=M,this.resize())}vY(){this.wj&&g.$2(this.wj);this.ys(); super.vY()}};var U$p=class{constructor(){this.csn=g.nT();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.Z=new Set;this.V=new Set}click(M,W){this.elements.has(M);this.Z.has(M);const b=g.nT();b&&M.visualElement&&g.$X(b,M.visualElement,W)}createClientVe(M,W,b,T=!1){this.elements.has(M);this.elements.add(M);b=Dk(b);M.visualElement=b;const q=g.nT(),X=g.EB();q&&X&&(g.he("combine_ve_grafts")?Q_(oo(),b,X):g.Je(g.PW)(void 0,q,X,b));W.addOnDisposeCallback(()=>{this.elements.has(M)&&this.destroyVe(M)}); T&&this.V.add(M)}createServerVe(M,W,b=!1){this.elements.has(M);this.elements.add(M);W.addOnDisposeCallback(()=>{this.destroyVe(M)}); b&&this.V.add(M)}destroyVe(M){this.elements.has(M);this.elements.delete(M);this.B.delete(M);this.Z.delete(M);this.V.delete(M)}Zs(M,W){this.clientPlaybackNonce!==W&&(this.clientPlaybackNonce=W,cB(oo(),M),dAs(this))}setTrackingParams(M,W){this.elements.has(M);W&&(M.visualElement=g.BW(W))}eW(M,W,b){this.elements.has(M);W?this.Z.add(M):this.Z.delete(M);const T=g.nT(),q=M.visualElement;this.V.has(M)?T&&q&&(W?g.pT(T,[q]):g.Yn(T,[q])):W&&!this.B.has(M)&&(T&&q&&g.w4(T,q,void 0,b),this.B.add(M))}hasVe(M){return this.elements.has(M)}};var C0I=class extends g.gz{constructor(M,W,b,T,q,X,G){super();this.O=M;this.dK=W;this.X=b;this.C=T;this.D=q;this.intervalMs=X;this.S=G;this.Zs=XA;this.W=0;this.A=this.B=!1;this.gK=Math.floor(Math.random()*256)}sendRequest(){var M=[0,1,2,3];this.S&&(M.push(4),this.A&&M.push(5));switch(M[Math.floor(Math.random()*M.length)]){case 0:Qfl(this,this.C);break;case 1:this.i$&&(M={[0]:1,[1]:performance.now()},this.request(M));break;case 2:M=this.D;this.i$&&(M={[0]:2,[1]:performance.now(),[3]:M},this.request(M)); break;case 3:this.i$&&(M={[0]:3,[1]:performance.now()},this.request(M));break;case 4:this.S&&(M={[0]:4,[1]:performance.now(),[4]:this.S},this.request(M));break;case 5:var W=this.C;M=this.gK;this.i$&&(W=cuQ(this,W),M={[0]:5,[1]:performance.now(),[2]:W,[5]:M},this.request(M))}}request(M){this.i$&&this.i$.postMessage(M)}receive(M){if(!(this.W>=5E3)){var W=M.timeStamp,b=performance.now();M=M.data;M[0]===5&&(this.A=!0);var T=M[1];this.dK("worker",{type:M[0],t1:(M[2]-performance.timeOrigin-T).toFixed(3), t2:(M[3]-performance.timeOrigin-T).toFixed(3),t3:(W-T).toFixed(3),t4:(b-T).toFixed(3)});this.W++}}vY(){this.V!==void 0&&(clearInterval(this.V),this.V=void 0);this.i$?.terminate();this.Z=this.i$=void 0;this.A=!1;this.dK("workerDtor",{});super.vY()}};g.ps=class extends g.gz{constructor(M,W,b,T){super();this.logger=new g.uk("App");this.uY=this.cg=!1;this.QT={};this.Hv=[];this.ih=!1;this.Hw=null;this.intentionalPlayback=!1;this.LB=!0;this.cR=!1;this.DD=this.YC=this.Qv=null;this.s4=!0;this.mediaElement=this.IT=null;this.KC=NaN;this.M4=!1;this.ox=this.vC=this.e2=this.screenLayer=this.playlist=null;this.vR=[];this.Td=0;this.Ej=new evt;this.D1=[];this.k9={wW:()=>this.CN, Nl:()=>this.e2}; if(!b)throw Error("b/179532961");this.Rp=W?.args||{};this.webPlayerContextConfig=b;W=this.Rp;this.uV=new r4P(W,b,b.canaryState,T);g.t(this,this.uV);Nmt(this.uV);T=e5J(this.uV);this.uV.jW()&&Ro(T,G=>{this.Jw("h5vcc",G)}); this.uV.experiments.FX("jspb_serialize_with_worker")&&MIQ();this.uV.experiments.FX("gzip_gel_with_worker")&&SHa();this.uV.V&&Gyt();this.j("html5_onesie")&&(this.T8=new btA(this.uV),g.t(this,this.T8));this.PP=new BPA(Qrs(g.XD(this.uV),this.uV.kL,this.uV.experiments),new PGQ(this.uV.experiments),()=>void this.xu()); g.t(this,this.PP);this.gH=Zf(Xt(this.uV)&&!0,W.enablesizebutton);this.Gb=Zf(!1,W.player_wide);this.visibility=new Vu4;g.t(this,this.visibility);this.j("web_log_theater_mode_visibility")&&this.J4(Zf(!1,W.player_wide));this.cg=Zf(!1,W.external_list);this.events=new g.Cq(this);g.t(this,this.events);this.j("start_client_gcf")&&(UK(vA(),{rM:Gu,ux:VaQ()}),this.Sg=vA().resolve(Gu),nqg(this.Sg));this.SF=new Go;g.t(this,this.SF);this.UN=new U$p;T=new uks;this.o0=new g.J0(this,T);g.t(this,this.o0);this.template= new yYB(this);g.t(this,this.template);this.appState=1;this.jH=$kS(this);g.t(this,T);this.dj={internalvideodatachange:this.mf,playbackready:this.oI,playbackstarted:this.mG,statechange:this.w2};this.LY=new v5E(this.o0);this.Dy=XSs(this);T=this.uV.C;!1!==T&&this.Jw("badps",{hbp:T,hostname:window.location.hostname,ps:this.uV.playerStyle});this.pv=new ktt(this.uV,this.Dy);this.o0.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Qx(this.Dy))&&jhg(this);T=10;g.XD(this.uV)&&(T=3);U1(this.uV)&& (T=g.TO(this.uV.experiments,"tvhtml5_unplugged_preload_cache_size"));this.CN=new g.cv(this.o0,T);T=Gta(this);this.CN.H_(T);JGQ(this);this.Vj={airplayactivechange:this.uR,airplayavailabilitychange:this.qQ,beginseeking:this.dE,sabrCaptionsDataLoaded:this.lR,endseeking:this.tI,internalAbandon:this.vW,internalaudioformatchange:this.gE,internalvideodatachange:this.SL,internalvideoformatchange:this.Kw,liveviewshift:this.ym,playbackstalledatstart:this.MQ,progresssync:this.PW,onAbnormalityDetected:this.Q_, onSnackbarMessage:this.x6,onLoadProgress:this.hI,SEEK_COMPLETE:this.I$,SEEK_TO:this.cW,onVideoProgress:this.Lw,onLoadedMetadata:this.T7,onAutoplayBlocked:this.Z6,onPlaybackPauseAtStart:this.BW,playbackready:this.AI,statechange:this.eQ,newelementrequired:this.Do,heartbeatparams:this.R$,videoelementevent:this.iR,drmoutputrestricted:this.sy,signatureexpired:this.rE,nonfatalerror:this.Vm,reloadplayer:this.pw};this.PL=new g.Cq(this);g.t(this,this.PL);this.l7=new EUA;g.t(this,this.l7);this.Zn=this.As=-1; this.l0=new g.d9(this.template.resize,16,this.template);g.t(this,this.l0);this.Cv=new aZI(this.o0,this.uV,this.RT(),this);this.CT=new GGI(this);g.t(this,this.CT);this.VJ=new jLh(this);g.t(this,this.VJ);AuL(this.uV.Z.c);this.events.J(this.o0,g.kJ("appapi"),this.KE);this.events.J(this.o0,g.KX("appapi"),this.HB);this.events.J(this.o0,g.kJ("appprogressboundary"),this.HW);this.events.J(this.o0,g.KX("applooprange"),this.f6);this.events.J(this.o0,"presentingplayerstatechange",this.by);this.events.J(this.o0, "resize",this.z7);this.template.cY(ct(document,M));this.events.J(this.o0,"offlineslatestatechange",this.kf);this.events.J(this.o0,"sabrCaptionsTrackChanged",this.a$);this.events.J(this.o0,"sabrCaptionsBufferedRangesUpdated",this.F2);this.Dy.L.G().Ha&&dm(this.Dy,"offline");this.uV.Lp&&g.FQ("ux",g.Xtp);M=g.TO(this.uV.experiments,"html5_defer_fetch_att_ms");this.V5=new g.d9(this.wZ,M,this);g.t(this,this.V5);this.Zy().S2()&&(g.b1()&&this.Zy().jG.push("mdx"),CV(this));this.pv.tick("fs");Dky(this);this.uV.Lp&& dm(this.Dy,"ux",!0);g.tP(this.Dy.L.G())&&dm(this.Dy,"embed");this.j("web_player_sentinel_is_uniplayer")||g.lR(new g.EF("Player experiment flags missing","web_player_sentinel_is_uniplayer"));M=this.j("web_player_sentinel_yt_experiments_sync");T=g.he("web_player_sentinel_yt_experiments_sync");M!==T&&g.lR(new g.EF("b/195699950",{yt:M,player:T}));this.b_=ana(this);if(M=g.TO(this.uV.experiments,"html5_block_pip_safari_delay"))this.A7=new g.d9(this.Lt,M,this),g.t(this,this.A7);b=Yi(b?.trustedEchoWorkerUrl?? null);M=this.uV.hT().Z.UY(vlG);T=this.uV.hT().Z.UY(m2a);W=this.uV.hT().Z.UY(K9G);const q=this.uV.hT().Z.UY(koG),X=this.webPlayerContextConfig.echoWorkerWasmModuleUrl??"";b&&M>0&&T>0&&W>0&&q>0&&(this.dX=new C0I(b,(G,V)=>{this.RT().dK(G,V)},W,T,q,M,X),g.t(this,this.dX),gKt(this.dX)); g.t(this,this.Ej);WV=this.uV.oT;this.o0.publish("applicationInitialized")}static create(M,W,b,T){try{const q=typeof M==="string"?M:`player${g.Zl(M)}`,X=w7[q];if(X){try{X.dispose()}catch(V){g.O(V)}w7[q]=null}const G=new g.ps(M,W,b,T);G.addOnDisposeCallback(()=>{w7[q]=null;G.b_&&G.b_()}); return w7[q]=G}catch(q){throw g.O(q),(q&&q instanceof Error?q:Error(String(q))).stack;}}fK(){return this.visibility}H_(M){const W=this.RT();if(M!==W){M.getVideoData().autonavState=W.getVideoData().autonavState;W.yu(this.dj,this);var b=W.getPlaybackRate();W.dispose();this.CN.H_(M);M.setPlaybackRate(b);M.o8(this.dj,this);CV(this)}}M1(){this.Hw||(this.Hw=g.Mq(fe(),Zos(),{yZ:this.uV.yZ(),clientInterface:ol(this.uV)}));return this.Hw}ys(M){if(this.mediaElement){this.vC&&(this.events.fN(this.vC),this.vC= null);this.PL.V();this.Jn().ys(!0,!1,M);this.template.ys();try{this.j("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.jT()}catch(W){g.lR(W)}this.mediaElement=null}}Wj(M,W,b=!1){if(M!==this.Jn()){var T=null;b||(b=this.Jn(),T=b.getPlayerState(),wm(this.Dy,3),qj(this,"cuerangesremoved",b.xS()),this.CT&&!M.isGapless()&&b.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),b=M.Aj()&&b.Aj(),this.pv.Q$("iv_s"),yGJ(this,b));M.getPlayerType()===1&&this.H_(M);b=M.getPlayerType(); var q=this.CN.B[b]||null;M!==this.RT()&&M!==q&&(q?.dispose(),q=this.CN,q.B[b]=M,q.S[M.FP()]=M);this.CN.Wj(M);this.mediaElement&&M.setMediaElement(this.mediaElement);M.o8(this.Vj,this);M.wy()?KV(this,"setPresenting",!1):(this.hm("newdata",M,M.getVideoData()),T&&!g.Dx(T,M.getPlayerState())&&this.eQ(new g.yB(M.getPlayerState(),T)),W=W&&M.getPlayerType()===1,M.mx()&&!W&&this.hm("dataloaded",M,M.getVideoData()),(W=(W=M.getVideoData().V)&&W.video)&&g.Jp(this.o0,"onPlaybackQualityChange",W.quality),qj(this, "cuerangesadded",M.xS()),W=M.getPlayerState(),W.Z(2)?CVy(this):W.Z(8)?M.playVideo():M.gD()&&M.pauseVideo(),W=this.RT(),M.getPlayerType()===2&&(M.getVideoData().w_=W.getVideoData().clientPlaybackNonce),M.getPlayerType()!==2||this.UO()||(M=M.getVideoData(),W.LD(M.clientPlaybackNonce,M.XX||"",M.breakType||0,M.xs,M.videoId||"")))}}fP(){this.RT()!==this.Jn()&&this.Wj(this.RT())}wW(){return this.CN}dW(M){return this.CN.dW(M)}e4(M){return this.CN.e4(M)}RT(){return this.CN.RT()}Jn(){return this.CN.Jn()}oI(){lL(this)|| this.bG(5)}AI(){if(!lL(this)){Mj(this);var M=this.Jn(),W=M.getVideoData();this.uV.j("html5_allow_multiview_tile_preload")&&W.x_&&M.seekTo(Infinity);W=M.getPlayerState();M.gD()?this.pauseVideo():W.isOrWillBePlaying()&&this.playVideo()}}canPlayType(M){return qm(M)}G(){return this.uV}getVideoData(){return this.Jn().getVideoData()}Nl(){return this.Jn().Tl()}Zy(){return this.RT().getVideoData()}getVideoLoadedFraction(M){return g.Qk(this,{playerType:M}).getVideoLoadedFraction()}qe(){return this.template}lk(){return this.Dy}r0(){return this.pv}NC(M, W=1,b){g.Qk(this,{playerType:W}).GE(M,void 0,b)}Jv(){const M=this.Dy.Jv();this.o0.publish("videoStatsPingCreated",M);return M}getVolume(){return Math.round(this.o0.getVolume())}isMuted(){return this.o0.isMuted()}QI(){if(this.RT()===this.Jn()&&this.IT)return this.IT.postId}wZ(){this.j("use_rta_for_player")||(g.XD(this.uV)?g.ZI(this.uV,this.getVideoData().C()).then(M=>{Rm(fe(),M);knG(this.getVideoData(),this.uV,this.M1())}):knG(this.getVideoData(),this.uV,this.M1()))}Ec(M){this.o0.publish("poTokenVideoBindingChange", M)}Xx(M){this.o0.publish("d6de4videobindingchange",M)}vQ(){this.yj&&this.yj.vQ()}BR(M){this.yj=M}zR(M){if(M===1){this.pv.tick("vr"); var W=this.Jn();W.qD();nRt(this.pv,W.getVideoData(),mks(this));sk(this.Dy)}W=this.uV;(E1(W)&&W.D||g.WQ(W))&&(this.Jn().getVideoData()?.enableServerStitchedDai||!this.UO())&&g.Jp(this.o0,"onAdStateChange",M)}setLoopVideo(M){const W=this.Jn();W===this.RT()&&W.Xc()!==M&&(W.setLoop(M),g.q8(this.o0,"onLoopChange",M))}getLoopVideo(){return this.Jn().Xc()}setLoopRange(M){var W=!1;!!this.IT!==!!M?W=!0:this.IT&&M&&(W=this.IT.startTimeMs!==M.startTimeMs||this.IT.endTimeMs!==M.endTimeMs||this.IT.postId!==M.postId|| this.IT.type!==M.type);if(W){W=this.Jn();LP(W.getVideoData())&&W.dK("slr",{et:M?.endTimeMs||-1});W=this.RT();W.lN("applooprange");if(M){var b=new g.Ap(M.startTimeMs,M.endTimeMs,{id:"looprange",namespace:"applooprange"});W.addCueRange(b)}else this.Zy().clipConfig=void 0,this.IT?.type!=="repeatChapter"||isNaN(Number(this.IT?.loopCount))||(b={loopCount:String(this.IT.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.V9("repeatChapterLoopEvent",b));this.IT=M;g.q8(this.o0,"onLoopRangeChange",M|| void 0);this.RT()===this.Jn()&&(this.f6(),W.UC())}}getLoopRange(){return this.IT}f6(){let M="";const W=this.RT();this.IT?W!==this.Jn()?M="pnea":p0S(this,W.getCurrentTime())&&(this.IT.loopCount=0,M="ilr"):M="nlr";const b=this.Jn();LP(b.getVideoData())&&(this.j("html5_gapless_log_loop_range_info")?b.dK("slrre",{rej:M,ct:W.getCurrentTime(),lst:this.IT?.startTimeMs,let:this.IT?.endTimeMs}):b.dK("slrre",{}));M||lnt(this)}setPlaybackRate(M,W){if(!isNaN(M)){M=V_P(this,M);var b=this.RT();b.getPlaybackRate()!== M&&(b.setPlaybackRate(M),W&&!this.uV.A&&g.$u("yt-player-playback-rate",M),g.Jp(this.o0,"onPlaybackRateChange",M))}}getCurrentTime(M={}){const {playerType:W,qW:b=!0}=M;var T=this.CN.Rw;if(T)return T.getCurrentTime();M=(T=W===2&&this.getVideoData().enableServerStitchedDai)?this.Jn():g.Qk(this,M);return T&&this.e2?(T=this.CN.D)?T.getCurrentTime(b):M.getCurrentTime():b?(M=LV(this,M),pM(this,M.getCurrentTime(),M)):M.getCurrentTime()}gI(){var M=g.Qk(this,{playerType:void 0});M=LV(this,M);return pM(this, M.gI(),M)}getDuration(M={}){const {playerType:W,qW:b=!0}=M;if(M=this.CN.Rw)return M.getDuration();M=this.getVideoData();const T=W===2&&M.enableServerStitchedDai;let q;q=T?this.Jn():g.Qk(this,{playerType:W});if(M.hasProgressBarBoundaries()&&!T){const X=Number(M.progressBarStartPosition?.utcTimeMillis),G=Number(M.progressBarEndPosition?.utcTimeMillis);if(!isNaN(X)&&!isNaN(G))return(G-X)/1E3}if(LP(M)&&!M.isLivePlayback)return Yv(this,W);if(b)return M=wy(this,q),pM(this,M.getDuration(),M);T&&this.e2? (M=this.CN,M=M.Z===M.D?M.Z:null,M=(M==null?void 0:M.getDuration())||0):M=q.getDuration();return M}A1(M){var W=g.Qk(this,{playerType:M});return this.UO(W)?(W=wy(this,W),W.A1()-W.getCurrentTime()+this.getCurrentTime({playerType:M})):W.A1()}finishSegmentByCpn(){return[]}bj(){this.template.bj();var M=this.o0;M.state.element=this.template.element;const W=M.state.element;let b;for(b in M.state.Z)M.state.Z.hasOwnProperty(b)&&(W[b]=M.state.Z[b]);(M=gxt(this.template.element))&&this.events.J(this.template, M,this.onFullscreenChange)}getDebugText(M){var W=this.RT().qd(M),b=this.Jn();if(b!==this.RT()){b=b.qd(M);for(var T of Object.keys(b))W["ad"+T]=b[T];if(M){T=W;b={};var q=ct(document,"movie_player");q&&(b.bounds=q.getBoundingClientRect(),b["class"]=q.className);q={};var X=g.wP("video-ads");X?(rGP(X,q),q.html=X.outerHTML):q.missing=1;X={};const G=g.wP("videoAdUiSkipContainer"),V=g.wP("ytp-ad-skip-button-container"),J=g.wP("ytp-skip-ad-button"),B=G||V||J;B?(rGP(B,X),X.ima=G?1:0,X.bulleit=V?1:0,X.component= J?1:0):X.missing=1;b=JSON.stringify({player:b,videoAds:q,skipButton:X});T.ad_skipBtnDbgInfo=b}}M&&this.mediaElement&&(W["0sz"]=`${+AY(this.mediaElement.getSize())===0}`,W.op=this.mediaElement.Zs("opacity"),T=this.mediaElement.GC().y+this.mediaElement.getSize().height,W.yof=`${+T<=0}`,W.dis=this.mediaElement.Zs("display"));M&&((M=(0,g.dS)())&&(W.gpu=M),(M=this.uV.playerStyle)&&(W.ps=M),this.uV.xk&&(W.webview=1),(M=this.webPlayerContextConfig.jsUrl)&&(W.js=M));W.debug_playbackQuality=this.o0.getPlaybackQuality(1); W.debug_date=(new Date).toString();W.origin=window.origin;W.timestamp=Date.now();delete W.uga;delete W.q;return JSON.stringify(W,null,2)}getFeedbackProductData(){const M={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20260216_03_RC00"},W=this.getPlayerStateObject().Iw;W&&(M.player_error_code=W.errorCode,M.player_error_details=JSON.stringify(W.errorDetail));return M}getPresentingPlayerType(M){return this.appState=== 1?1:lL(this)?3:(M&&this.uV.hT().Z.UY(cm)?this.CN.Z?.isAd()??!1:this.e2?.OY(this.getCurrentTime()))?2:this.Jn().getPlayerType()}l5(){return!1}getPlayerStateObject(M){let W;if(this.j("web_player_misc_bugfix_a"))W=!0;else{const b=this.CN.Rw;if(b)return b.getPlayerState()}return g.Qk(this,{lL:W,playerType:M}).getPlayerState()}getAppState(){return this.appState}iR(M){switch(M.type){case "loadedmetadata":this.l0.start();for(var W of this.Hv)M_q(this,W.id,W.kN,W.aW,void 0,!1);this.Hv=[];break;case "loadstart":this.pv.Q$("gv"); break;case "progress":case "timeupdate":PE(M.target.O1())>=2&&this.pv.Q$("l2s");break;case "playing":g.vQ&&this.l0.start();if(g.XD(this.uV))M=!1;else{W=g.tp(this.lk());M=this.mediaElement.Zs("display")==="none"||AY(this.mediaElement.getSize())===0;var b=Pm(this.template),T=this.Jn().getVideoData(),q=g.dB(this.uV);T=lY(T);W=!b||W||q||T||this.uV.wK;M=M&&!W}M&&(M=this.Jn(),M.NP(),this.getVideoData().jT||(this.getVideoData().jT=1,this.Do(),M.playVideo()))}}hI(M){g.Vc(this.o0,"onLoadProgress",M)}MQ(){this.o0.publish("playbackstalledatstart")}lR(M, W){this.o0.publish("sabrCaptionsDataLoaded",M,W)}a$(M){this.Jn().eJ(M)}F2(M){this.Jn().Dm(M)}Lw(M){M=LV(this,this.Jn());M=pM(this,M.getCurrentTime(),M);g.Jp(this.o0,"onVideoProgress",M);this.uV.kX&&this.visibility.iy()&&this.uV.x_&&!this.getVideoData()?.backgroundable&&this.pauseVideo()}Z6(){g.Jp(this.o0,"onAutoplayBlocked");var M=this.Jn().getVideoData();M&&(M.Ud=!0);g.tP(this.uV)&&(M={autoplayBrowserPolicy:JD(),autoplayIntended:B_(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce, intentionalPlayback:this.intentionalPlayback},g.V9("embedsAutoplayStatusChanged",M))}PW(){this.o0.publish("progresssync")}BW(){g.Vc(this.o0,"onPlaybackPauseAtStart")}w2(M){if(this.getPresentingPlayerType()===1){M.QN(1)&&!M.state.Z(64)&&this.Zy().isLivePlayback&&this.RT().isAtLiveHead()&&this.o0.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(M.QN(2)){if(this.IT&&this.IT.endTimeMs>=(this.getDuration()-1)*1E3){lnt(this);return}CVy(this)}if(M.state.Z(128)){var W=M.state;this.cancelPlayback(5);W=W.Iw; JSON.stringify({errorData:W,debugInfo:this.getDebugText(!0)});g.Jp(this.o0,"onError",rEL(W.errorCode));g.Vc(this.o0,"onDetailedError",{errorCode:W.errorCode,errorDetail:W.errorDetail,message:W.errorMessage,messageKey:W.q8,cpn:W.cpn});(0,g.u)()-this.uV.p7>6048E5&&g.Vc(this.o0,"onReloadRequired")}W={};if(M.state.isPlaying()&&!M.state.isBuffering()&&!iA("pbresume","ad_to_video")&&iA("_start","ad_to_video")){const b=this.getVideoData();W.clientPlaybackNonce=b.clientPlaybackNonce;b.videoId&&(W.videoId= b.videoId);g.xD(W,"ad_to_video");rO("pbresume",void 0,"ad_to_video");sk(this.Dy)}this.o0.publish("applicationplayerstatechange",M)}}eQ(M){this.CN.Rw||this.o0.publish("presentingplayerstatechange",M)}by(M){v4(this,a6(M.state));M.state.Z(1024)&&this.o0.isMutedByMutedAutoplay()&&(W4(this,{muted:!1,volume:this.jH.volume},!1),$V(this,!1))}onPlayerRequestSent(M){g.q8(this.o0,"onPlayerRequestSent",M)}mf(M,W){M==="newdata"&&CV(this);this.o0.publish("applicationvideodatachange",M,W)}gE(M,W){Mj(this);g.Vc(this.o0, "onPlaybackAudioChange",this.o0.getAudioTrack().r9.name);this.o0.publish("internalaudioformatchange",this.o0.getAudioTrack().r9.id,W)}Kw(M){const W=this.Jn().getVideoData();M===W&&g.Jp(this.o0,"onPlaybackQualityChange",M.V.video.quality)}Nz(){var M=this.CN.B[2]||null;if(M){M=M.getVideoData();this.Jn().dK("ssdai",{cleanaply:1,acpn:M?.clientPlaybackNonce,avid:M.videoId,isDai:this.Zy().enableServerStitchedDai?1:0});M=this.CN;const W=M.B[2];W&&(delete M.S[W.FP()],delete M.B[2])}}SL(M,W){this.hm(M,this.Jn(), W)}hm(M,W,b){this.uV.jW()&&W.dK("vdc",{type:M,vid:b.videoId||"",cpn:b.clientPlaybackNonce||""});W===this.RT()&&(this.uV.q1=b.oauthToken);W===this.RT()&&(this.getVideoData().enableServerStitchedDai&&!this.e2?(this.RT().dK("sdai",{initSstm:1}),this.e2=new g.s_(this.o0,this.uV,this.RT(),this)):!this.getVideoData().enableServerStitchedDai&&this.e2&&(this.e2.dispose(),this.e2=null));if(M==="newdata")wm(this.Dy,2),this.o0.publish("videoplayerreset",W);else{if(!this.mediaElement)return;if(M==="dataloaded")if(this.RT()=== this.Jn()){if(VK(b.Vz,b.ix),!this.RT().getPlayerState().isError()){var T=lL(this);this.Zy().isLoaded();T&&this.bG(6);v3L(this);gm(this.Dy)||kV(this)}}else v3L(this);if(W.getPlayerType()===1&&(this.uV.BY&&t_s(this),this.getVideoData().isLivePlayback&&!this.uV.bS&&this.Jy("html5.unsupportedlive",2,"DEVICE_FALLBACK"),b.isLoaded()&&((SRt(b)||this.getVideoData().Fp)&&this.o0.publish("legacyadtrackingpingchange",this.getVideoData()),b.hasProgressBarBoundaries()&&(T=Number(this.getVideoData().progressBarEndPosition?.utcTimeMillis)/ 1E3,!isNaN(T))))){var q=this.A1();q&&(q-=this.getCurrentTime(),T=(T-q)*1E3,q=this.QT.progressEndBoundary,q?.start!==T&&(q&&this.So([q]),T=new g.Ap(T,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.RT().addCueRange(T),this.QT.progressEndBoundary=T))}this.o0.publish("videodatachange",M,b,W.getPlayerType())}g.Jp(this.o0,"onVideoDataChange",{type:M,playertype:W.getPlayerType()});this.f6();(M=b.tf)?this.UN.Zs(M,b.clientPlaybackNonce):dAs(this.UN)}ij(){Tg(this,null);g.Vc(this.o0, "onPlaylistUpdate")}HW(M){delete this.QT[M.getId()];this.RT().removeCueRange(M);a:{M=this.getVideoData();var W=M.sY?.contents?.singleColumnWatchNextResults?.autoplay?.autoplay?.sets||M.sY?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay?.sets;if(W)for(b of W){W=b.autoplayVideo||b.autoplayVideoRenderer?.autoplayEndpointRenderer?.endpoint;const T=g.z(W,g.Jj);if(W!=null&&T?.videoId===M.videoId&&T?.continuePlayback){var b=W;break a}}b=null}(M=g.z(b,g.Jj))&&g.q8(this.o0,"onPlayVideo",{sessionData:{autonav:"1", itct:b?.clickTrackingParams},videoId:M.videoId,watchEndpoint:M})}bG(M){M!==this.appState&&(M===2&&this.getPresentingPlayerType()===1&&(v4(this,-1),v4(this,5)),this.appState=M,this.o0.publish("appstatechange",M))}Jy(M,W,b,T,q){this.RT().J1(M,W,b,T,q)}isAtLiveHead(M,W=!1){var b=g.Qk(this,{playerType:M});M=wy(this,b);b=LV(this,b);return M!==b?M.isAtLiveHead(pM(this,b.getCurrentTime(),b),!0):M.isAtLiveHead(void 0,W)}Ph(){const M=g.Qk(this,{playerType:void 0});return wy(this,M).Ph()}seekTo(M,W,b,T,q,X){W= W!==!1;T=g.Qk(this,{playerType:T});this.appState===2&&ET(this);this.UO(T)?Nj(this)?this.e2.seekTo(M,{seekSource:q},W,b):this.Cv.seekTo(M,{seekSource:q},W,b):(this.j("html5_sabr_csdai_seek_log")||(X=""),T.seekTo(M,{a6:!W,n8:b,jR:"application"+(X??""),seekSource:q}))}seekBy(M,W,b,T){this.seekTo(this.getCurrentTime()+M,W,b,T,void 0,"_by")}I$(){g.Jp(this.o0,"SEEK_COMPLETE")}Q_(){g.q8(this.o0,"onAbnormalityDetected")}x6(M){g.q8(this.o0,"onSnackbarMessage",M)}cW(M){const W=this.Jn(),b=W.getVideoData(); if(this.appState===1||this.appState===2)b.startSeconds=M;this.appState===2?W.getPlayerState().Z(512)||ET(this):g.Jp(this.o0,"SEEK_TO",M)}uR(){this.o0.publish("airplayactivechange")}qQ(){this.o0.publish("airplayavailabilitychange")}showAirplayPicker(){this.Jn().LW()}dE(){this.o0.publish("beginseeking")}tI(){this.o0.publish("endseeking")}getStoryboardFormat(M){M=g.Qk(this,{playerType:M});return wy(this,M).getStoryboardFormat()}SH(M){M=g.Qk(this,{playerType:M});return wy(this,M).getVideoData().SH()}UO(M){M= (M||this.Jn()).getVideoData();if(Nj(this))var W=M===this.e2.playback.getVideoData();else a:{var b=this.Cv;if(M===b.Z.getVideoData()&&b.V.length)W=!0;else{for(W of b.V)if(M.cF===W.cF){W=!0;break a}W=!1}}return W}Yp(M,W,b,T,q,X,G,V){const J=Nj(this);this.Jn().dK("appattl",{sstm:this.e2?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:J});J?(b=this.e2.GY(M,W,b,T,q,X,G,V),M=b?.clientPlaybackNonce||"",(this.j("html5_ssdai_new_decoration_logic")||this.RT().getVideoData().aY)&&this.RT().On(V|| {Q1:""},W,b?.clientPlaybackNonce||"")):M=fGL(this.Cv,M,b,T,q,X);return M}cE(M,W,b,T,q,X,G,V){Nj(this)&&(M=this.e2?.GY(M,W,b,T,q,X,G,V),this.RT().getVideoData().aY&&this.RT().On(V||{Q1:""},W,M?.clientPlaybackNonce||""))}i7(M){(this.j("html5_ssdai_new_decoration_logic")||this.RT().getVideoData().aY)&&this.RT().On(M,"","");this.e2?.i7(M.Q1||"")}CZ(M=-1,W=Infinity){Nj(this)||Sh(this.Cv,M,W)}OH(M,W,b){if(Nj(this)){var T=this.e2,q=b;(b=T.Z.dW(M))?(q===void 0&&(q=b.PF),fM(T,b,W,q)):T.LT(`Invalid_cpn_${M}_specified`)}else{T= this.Cv;let X=null;for(q of T.V)if(q.cF===M){X=q;break}X?(b===void 0&&(b=X.PF),iAq(T,X,W,b)):zq(T,"InvalidTimelinePlaybackId timelinePlaybackId="+M)}}enqueueVideoByPlayerVars(M,W,b=Infinity,T=""){this.UO();M=new g.fk(this.uV,M);T&&(M.cF=T);Va(this,M,W,b)}queueNextVideo(M,W=1,b=NaN,T="",q=""){M=this.preloadVideoByPlayerVars(M,W,b,T,q);W=this.Jn();M&&(this.j("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&W.getVideoData().W&&(b=this.VJ,T=this.CT.S,b.A!==M&&(b.V=W,b.A=M,b.B=1,b.Z= M.getVideoData(),b.S=T,b.Z.isLoaded()?b.C():b.Z.subscribe("dataloaded",b.C,b))):(b=Vcl(W,M,this.CT.S),b!=null?(W.dK("sgap",b),W.getVideoData().W&&W.VF(!1)):(M=M.getVideoData(),W=this.VJ,W.Z!==M&&(W.Z=M,W.B=1,M.isLoaded()?W.W():W.Z.subscribe("dataloaded",W.W,W)))))}sL(M,W,b=0,T=0){wy(this,this.Jn()).mj();KqG(this.CT,M,W,b,T).then(()=>{g.Vc(this.o0,"onQueuedVideoLoaded")},()=>{})}LK(){return this.CT.LK()}zb(M){const W=this.CT.Z; return W?W.GS(M):!1}clearQueue(M=!1,W=!1){this.CT.clearQueue(M,W)}loadVideoByPlayerVars(M,W=1,b,T,q,X){var G=this.RT();if(W===2&&this.Zy().enableServerStitchedDai&&G&&!G.vM())return G.dK("lvonss",{vid:M?.videoId||"",ptype:W}),!1;var V=!1;G=new g.fk(this.uV,M);G.vg=X;g.kj(this.uV)&&!G.eO&&N3(this.pv);this.pv.timerName=G.gK??"";this.pv.Yh("pl_i");this.j("web_player_early_cpn")&&G.clientPlaybackNonce&&this.pv.infoGel({clientPlaybackNonce:G.clientPlaybackNonce});n0Q(G).supportsVp9Encoding===!1&&this.Jn().dK("noVp9enc", {});if(this.G().supportsGaplessShorts()){X=lPJ(this.CT,G,W);if(X==null){v4(this,-1);this.CT.Z?.getVideoData().isAd()||UT(this);M=this.CT;M.app.G().j("html5_gapless_new_slr")?XL(M.app,"gaplessshortslooprange"):M.app.setLoopRange(null);M.app.getVideoData().h6=!0;M.Z?.Iu();M.Z?.xt();b={jR:"gapless_to_next_video",seekSource:60,Z$:M.S.Z};T=M.B?.gK()||-1;if(M.S.Z){const {kA:a,Zw:E}=M.B?.D()||{};E!=null&&a!=null&&(T=E-a+.001)}M.app.Jn()?.seekTo(T,b);M.app.getPlayerStateObject(W).isPlaying()||M.app.Jn()?.playVideo(!0); LqJ(M,T);M.app.Jn()?.SJ();M.D();return!0}const B=this.j("html5_shorts_gapless_preload_fallback"),D=this.CT.Z;if(B&&D&&!D.ST()){var J=D.getVideoData();J=Zp(this,W,J);this.CN.C.set(J,D,3600)}this.CT.clearQueue(B);this.Jn().dK("sgap",{f:X})}if(q){for(;G.Pc.length&&G.Pc[0].isExpired();)G.Pc.shift();V=G.Pc.length-1;V=V>0&&q.V(G.Pc[V])&&q.V(G.Pc[V-1]);G.Pc.push(q)}b||(M&&HT(M)?(aU(this.uV)&&!this.cg&&(M.fetch=0),Tg(this,M)):this.playlist&&Tg(this,null),M&&(this.cg=Zf(!1,M.external_list)));this.o0.publish("loadvideo"); W=this.TE(G,W,T);V&&this.Jy("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",`loadvideo.1;emsg.${G.Pc.join()}`.replace(/[;:,]/g,"_"));return W}preloadVideoByPlayerVars(M,W=1,b=NaN,T,q=""){T=R$(M);T=Z0q(this,W,T,q,M.autonav==="1"||M.autonav===!0,M.autoplay==="1"||M.autoplay===!0||M.autoplay===1);if(T=this.CN.C.get(T)||null)return T;M=new g.fk(this.uV,M);q&&(M.cF=q);{q=Zp(this,W,M);T=this.Jn();const X=Zp(this,T.getPlayerType(),T.getVideoData());q===X?(T.JC(!0),M.dispose(),W=null):(M.Hr=!0,T=Gg(this, W,M,!0),(W!==1||!U1(this.uV)||this.uV.j("html5_allow_multiview_tile_preload")&&M.x_)&&T.JC(!0),this.CN.C.set(q,T,b||3600),W=T)}return W}setMinimized(M){this.visibility.setMinimized(M);(M=ZEl(this.Dy))&&(this.isMinimized()?M.load():M.unload());this.o0.publish("minimized")}setInline(M){this.visibility.setInline(M)}setInlinePreview(M){this.visibility.setInline(M)}Yu(M){N1S(this,M)||this.visibility.Yu(M)}setSqueezeback(M){this.visibility.setSqueezeback(M)}Lt(){const M=this.mediaElement?.BP();M&&(this.uV.Vu&& x$(fQ(()=>document.exitFullscreen()),()=>{}),x$(fQ(()=>e9(M)),()=>{}))}bR(){this.mediaElement.BP(); this.mediaElement.BP().webkitPresentationMode==="picture-in-picture"?this.Yu(!0):this.Yu(!1)}togglePictureInPicture(){this.Jn().togglePictureInPicture()}TE(M,W=1,b){iA("_start",this.pv.timerName)||g.Je(lA)(void 0,this.pv.timerName);let T=!1,q=jZ(this,W,M,!1);q?(T=!0,M.dispose(),q.getVideoData().x_&&q.dK("app_lv",{pdl:q.mx()}),this.hT().Z.UY(isy)&&(q.getVideoData().fv=M.fv)):(q=Gg(this,W,M,!0,b),(this.j("html5_onesie")||this.j("html5_load_before_stop"))&&q.Jh()&&q.JC(),this.l0.stop(),W===1&&W!==this.getPresentingPlayerType()&& this.cancelPlayback(4),this.cancelPlayback(4,W),this.Wj(q));M.videoId&&this.D1.includes(M.videoId)&&q.dK("mvt",{});q===this.RT()&&(this.uV.q1=M.oauthToken);if(!q.Jh())return!1;if(q===this.RT())return this.bG(1),M=ET(this),T&&q.getPlayerType()===1&&q.mx()&&this.hm("dataloaded",q,q.getVideoData()),M;q.bY();return!0}cueVideoByPlayerVars(M,W=1){var b=this.RT();if(this.Zy().enableServerStitchedDai&&b&&!b.vM()&&M&&Object.keys(M).length>0)b.dK("qvonss",{vid:M?.videoId||"",ptype:W});else if(M&&HT(M))if(this.LB= !0,Tg(this,M),(M=g.Rr(this.playlist))&&M.S2())tk(this,M,W);else this.playlist.onReady(()=>{Dp(this)}); else{W||(W=this.getPresentingPlayerType());W===1&&this.ij();b=new g.fk(this.uV,M);const T=g.tP(this.uV)&&!this.uV.O&&W===1&&!b.isAd()&&!b.XX;this.o0.publish("cuevideo",W);T?(this.Jn().getVideoData().loading=!0,mvp(b,M?M:{}).then(q=>{tk(this,q,W)}),b.dispose()):tk(this,b,W)}}jA(M,W,b,T,q,X,G){if(!M&&!b)throw Error("Playback source is invalid"); if(Xt(this.uV)||g.Tb(this.uV))return W=W||{},W.lact=EK(),W.vis=this.o0.getVisibilityState(),g.q8(this.o0,"onPlayVideo",{videoId:M,watchEndpoint:X,sessionData:W,listId:b}),!1;yVt(this.pv);this.pv.reset();M={video_id:M};T&&(M.autoplay="1");T&&(M.autonav="1");X&&(M.player_params=X.playerParams);G&&(M.oauth_token=G);b?(M.list=b,this.loadPlaylist(M)):this.loadVideoByPlayerVars(M,1);return!0}cuePlaylist(M,W,b,T){this.LB=!0;H0L(this,M,W,b,T)}loadPlaylist(M,W,b,T){this.LB=!1;H0L(this,M,W,b,T)}zZ(){return this.o0.isMutedByMutedAutoplay()? !1:this.CN.Rw?!0:!(!this.playlist||!this.playlist.hasNext())}nextVideo(M,W){var b=this.RT().getVideoData().X();g.N8(this.o0)&&b?this.jA(b.videoId,W?b.KA:b.sessionData,b.playlistId,W,void 0,b.It||void 0):this.cg?g.Vc(this.o0,"onPlaylistNext"):this.getPresentingPlayerType()===3?m3(this.Dy).nextVideo():!this.playlist||aU(this.uV)&&!this.o0.isFullscreen()||(this.playlist.hasNext(M)&&rm(this.playlist,Cxg(this.playlist)),this.playlist.loaded?(M=W&&this.uV.j("html5_player_autonav_logging"),W&&this.o0.publish("playlistautonextvideo"), this.TE(g.Rr(this.playlist,void 0,W,M),1)):this.LB=!1)}previousVideo(M){this.cg?g.Vc(this.o0,"onPlaylistPrevious"):this.getPresentingPlayerType()===3?m3(this.Dy).UP():!this.playlist||aU(this.uV)&&!this.o0.isFullscreen()||(this.playlist.hasPrevious(M)&&rm(this.playlist,k1L(this.playlist)),this.playlist.loaded?this.TE(g.Rr(this.playlist),1):this.LB=!1)}playVideoAt(M){this.cg?g.Vc(this.o0,"onPlaylistIndex",M):this.playlist&&(this.playlist.loaded?this.TE(g.Rr(this.playlist,M),1):this.LB=!1,rm(this.playlist, M))}getPlaylist(){return this.playlist}Mu(M){this.Hv=g.et(this.Hv,T=>T.id!==M); const W=this.RT(),b=W.xS();for(let T=0;T{nV(this)}):nV(this); this.f6();LMq(this);g.tP(this.uV)&&(M={autoplayBrowserPolicy:JD(),autoplayIntended:B_(this.getVideoData()),autoplayStatus:YKp(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.V9("embedsAutoplayStatusChanged",M))}}yr(M){if(this.uV.j("mweb_client_log_screen_associated"),!JI(this.uV)){var W=this.screenLayer||(this.isMinimized()?3:0);if((W=g.nT(W))&&W!=="UNDEFINED_CSN"){var b=this.uV.j("web_player_attach_player_response_ve");const T=this.uV.j("web_playback_associated_ve"); M={cpn:M,csn:W};this.getVideoData().O&&(b||T)&&(b=g.BW(this.getVideoData().O),g.w4(W,b),T&&(M.playbackVe=b.getAsJson()));this.getVideoData().queueInfo&&(M.queueInfo=this.getVideoData().queueInfo);W={};this.getVideoData().ll&&(W.cttAuthInfo={token:this.getVideoData().ll,videoId:this.getVideoData().videoId});g.V9("playbackAssociated",M,W)}else g.lR(new g.EF("CSN Missing or undefined during playback association"))}}vW(){this.o0.publish("internalAbandon");UT(this)}onApiChange(){const M=this.Jn();this.uV.D? g.Jp(this.o0,"onApiChange",M.getPlayerType()):g.Jp(this.o0,"onApiChange")}aI(){var M=this.mediaElement;M={volume:g.fy(Math.floor(M.getVolume()*100),0,100),muted:M.xk()};M.muted||$V(this,!1);this.jH=g.c$(M);g.Jp(this.o0,"onVolumeChange",M)}mutedAutoplay(M){const W=this.getVideoData().videoId;isNaN(this.KC)&&(this.KC=this.getVideoData().startSeconds);if(M?.videoId||W)this.loadVideoByPlayerVars({video_id:M?.videoId?M?.videoId:W,playmuted:!0,start:this.KC,muted_autoplay_duration_mode:M?.durationMode}), g.Vc(this.o0,"onMutedAutoplayStarts")}onFullscreenChange(){const M=H4(this);this.Cu(M?1:0);RZs(this,!!M)}Cu(M){var W=!!M;const b=!!this.JW()!==W;this.visibility.Cu(M);this.template.Cu(W);this.j("html5_media_fullscreen")&&!W&&this.mediaElement&&H4(this)===this.mediaElement.BP()&&this.mediaElement.O();this.template.resize();b&&this.pv.tick("fsc");b&&(this.o0.publish("fullscreentoggled",W),M=this.Zy(),W={fullscreen:W,videoId:M.lO||M.videoId,time:this.getCurrentTime()},this.o0.getPlaylistId()&&(W.listId= this.o0.getPlaylistId()),g.Jp(this.o0,"onFullscreenChange",W))}MO(){return this.visibility.MO()}isFullscreen(){return this.visibility.isFullscreen()}JW(){return this.visibility.JW()}NQ(){var M=this.JW();M!==0&&M!==1||this.Cu(H4(this)?1:0);M=window.screen.width*window.screen.height;const W=window.outerHeight*window.outerWidth;this.uV.po?(this.Td=Math.max(this.Td,M,W),M=W/this.TdT.videoId??"").filter(T=> !!T)))}sendVideoStatsEngageEvent(M,W,b){W=g.Qk(this,{playerType:W}); IUq(this.uV,M)?W.sendVideoStatsEngageEvent(M,b):b&&b()}un(M){const W=g.Qk(this,{playerType:void 0});return IUq(this.uV,M)?W.un(M):null}updatePlaylist(){!aU(this.uV)&&g.tP(this.uV)&&B4(this);g.Vc(this.o0,"onPlaylistUpdate")}setSizeStyle(M,W){this.gH=M;this.j("web_log_theater_mode_visibility")?this.J4(W):this.Gb=W;this.o0.publish("sizestylechange",M,W);this.template.resize()}J4(M){this.visibility.J4(M)}KT(){return this.j("web_log_theater_mode_visibility")?this.visibility.KT():this.Gb}isMinimized(){return this.visibility.isMinimized()}isInline(){return this.visibility.isInline()}iy(){return this.visibility.iy()}He(){return this.visibility.He()}We(){return this.visibility.We()}eK(){return this.gH}getAdState(){if(this.getPresentingPlayerType()=== 3)return m3(this.Dy).getAdState();if(!this.UO()){const M=zy(this.lk());if(M)return M.getAdState()}return-1}z7(M){var W=this.template.getVideoContentRect();xt(this.YC,W)||(this.YC=W,this.Jn().vH(),(W=this.RT())&&W===this.Jn()&&W.vH(),this.JW()===1&&this.M4&&RZs(this,!0));W=this.qe().SX!==this.DD;this.DD=this.qe().SX;this.Qv&&g.hY(this.Qv,M)&&!W||(this.o0.publish("appresize",M),this.Qv=M)}jO(){return this.o0.jO()}rE(){this.getPresentingPlayerType()===2&&this.Cv.isManifestless()?FJq(this.Cv):(this.e2&& (RA(this.e2),UT(this)),this.PP.An=(0,g.u)(),KV(this,"signature"))}pw(M){M&&KV(this,"reloadPlayerEvent",void 0,M)}Do(M){this.ys(M);Jk(this)}Vm(M){if(M.errorCode==="manifest.net.badstatus"){const W=this.uV.experiments.FX("html5_use_network_error_code_enums")?401:"401";M.details.rc===W&&g.q8(this.o0,"onPlayerRequestAuthFailed")}}R$(M){this.o0.publish("heartbeatparams",M)}P_(M){g.q8(this.o0,"onAutonavChangeRequest",M!==1)}E2(){return this.mediaElement}setBlackout(M){if(this.uV.wK!==M){this.uV.wK=M;var W= this.Jn();W.UC();this.uV.BY&&t_s(this);W.Wg(M)}}kf(){const M=this.Jn(),W=!this.o0.KS();M.sT(W)}T7(){g.Vc(this.o0,"onLoadedMetadata")}sy(){g.Vc(this.o0,"onDrmOutputRestricted")}nV(){this.intentionalPlayback=!0}vY(){this.Dy.dispose();this.LY.dispose();this.Cv.dispose();this.e2&&this.e2.dispose();this.RT().dispose();this.ys();this.CN.dispose();g.Qb(this.playlist);super.vY()}j(M){return this.uV.j(M)}hT(){return this.uV.hT()}UM(){return this.uV.UM()}setScreenLayer(M){this.screenLayer=M}getInternalApi(){return this.o0.getInternalApi()}createSubtitlesModuleIfNeeded(){return this.Dy.createSubtitlesModuleIfNeeded()}isOrchestrationLeader(){const M= ec(this.Dy);return M?M.isOrchestrationLeader():!1}getVideoUrl(M,W,b,T,q){if(this.IT&&this.IT.postId)return M=this.uV.getVideoUrl(M),M=n_(M,"v"),M.replace("/watch",`/clip/${this.IT.postId}`);const X=this.o0.isEmbedsShortsMode()||this.uV.Zs==="shortspage",G=g.Wf(this.getVideoData());return this.uV.getVideoUrl(M,W,b,T,q,X,G)}qm(){return this.CT.qm()}Am(){return this.CT.Am()}d8(M,W,b){this.o0.publish("spsumpreject",M,W,b)}xu(){try{for(const M of Object.values(this.CN.B))M.ST()||M.xu();if(this.j("html5_sabr_fetch_on_idle_network_preloaded_players"))for(const M of hqs(this.CN.C))M.ST()|| M.xu();this.RT().xu()}catch(M){g.lR(M)}}L0(){if(this.e2){const M=(0,g.u)();return this.e2.L0(M)}return!1}Kj(M){let W=this.RT();M&&(W=xkt(this,M));if(W){var b=W.getVideoData();M=new Map;for(const [T,q]of b.sabrContextUpdates){b=T;const X=q;X.scope===4&&W?.jp(b)&&M.set(b,X)}return M}this.RT().dK("scuget",{ncpf:"1",ccpn:M})}Jw(M,W){this.vR.push({key:M,value:W})}};g.ps.prototype.hW=Ma(41);g.ps.prototype.kB=Ma(16);g.ps.prototype.XQ=Ma(10);g.ps.prototype.zC=Ma(8);var w7={};var kG9={yq:[{LU:/Unable to load player module/,weight:20},{LU:/Failed to fetch/,weight:500},{LU:/XHR API fetch failed/,weight:10},{LU:/JSON parsing failed after XHR fetch/,weight:10},{LU:/Retrying OnePlatform request/,weight:10},{LU:/CSN Missing or undefined during playback association/,weight:100},{LU:/Non-recoverable error. Do not retry./,weight:0},{LU:/Internal Error. Retry with an exponential backoff./,weight:0},{LU:/API disabled by application./,weight:0},{LU:/Unexpected end of JSON input/, weight:0}],HH:[{callback:FMq,weight:500}]};var sLS=/[&\?]action_proxy=1/,gUG=/[&\?]token=([\w-]*)/,wtS=/[&\?]video_id=([\w-]*)/,ptP=/[&\?]index=([\d-]*)/,Yat=/[&\?]m_pos_ms=([\d-]*)/,brg=/[&\?]vvt=([\w-]*)/,uqt="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),WRQ="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Ssy={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"},O0L={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},gA={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141},KUQ=class{constructor(M){this.player=M;this.V=this.Z=1}Yv(M){this.player.r0().tick(M)}fetch(M,W){if(!M.match(/\[BISCOTTI_ID\]/g))return fV(this, M,W);const b=this.Z===1;b&&this.Yv("a_bid_s");var T=hZG();if(T!==null)return b&&this.Yv("a_bid_f"),fV(this,M,W,T);T=AGs();b&&g.Aq(T,()=>{this.Yv("a_bid_f")}); return T.then(q=>fV(this,M,W,q))}reset(){this.V=this.Z=1}};var vUB={MTV:"replaceUrlMacros",lC:"onAboutThisAdPopupClosed",GU:"executeCommand"};var eZt=class{constructor(M){this.iV=M}Nh(){return"adPingingEndpoint"}aN(M,W,b){thg(this.iV.get(),M,W,b)}};var dkt=class{constructor(M){this.L=M}Nh(){return"changeEngagementPanelVisibilityAction"}aN(M){g.q8(this.L,"changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:M})}};var o3S=class{constructor(M){this.iV=M}Nh(){return"loggingUrls"}aN(M,W,b){for(const T of M)thg(this.iV.get(),T.baseUrl,W,b,T.attributionSrcMode)}};var m$A=class extends g.gz{constructor(M){super();this.Z=M;this.V=pSL(this)}};var Ysg=class{constructor(M,W){this.Lu=M;this.PY=W}x9(M,W){W={...W,cc:this.Lu.ip()};this.Lu.L.dK(M,W)}};var Yl=class extends g.gz{constructor(M,W,b,T,q){super();this.V=W;this.I0=b;this.NK=T;this.mQ=q;this.listeners=[];const X=new ZS(this);g.t(this,X);X.J(M,"internalAbandon",this.B);this.addOnDisposeCallback(()=>{X.V()})}addListener(M){this.listeners.push(M)}removeListener(M){this.listeners=this.listeners.filter(W=>W!==M)}m2(M,W,b,T,q,X,G,V){if(M==="")za("Received empty content video CPN in DefaultContentPlaybackLifecycleApi"); else if(M!==this.Z||b){this.Z=M;this.I0.get().m2(M,W,b,T,q,X,G,V);this.NK.get().m2(M,W,b,T,q,X,G,V);this.mQ?.get().m2(M,W,b,T,q,X,G,V);this.V.m2(M,W,b,T,q,X,G,V);for(const J of this.listeners)J.m2(M,W,b,T,q,X,G,V)}else za("Duplicate content video loaded signal")}B(){this.Z&&this.rT(this.Z)}rT(M){this.Z=void 0;for(const W of this.listeners)W.rT(M)}};var $6=class{constructor(M){this.L=M;this.adVideoId=this.Z=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.V=this.B=!1;this.adFormat=null;this.A="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}f1(M,W,b,T,q){Tyq(this);this.S=!W&&b===0;const X=this.L.getVideoData({playerType:1}),G=this.L.getVideoData({playerType:2});X&&(this.contentCpn=X.clientPlaybackNonce,this.videoId=X.videoId,this.Z=X.ll);G&&(this.adCpn=G.clientPlaybackNonce,this.adVideoId= G.videoId,this.adFormat=G.adFormat);this.A=M;T<=0?(Tyq(this),this.S=!W&&b===0):(this.actionType=this.S?W?"unknown_type":"video_to_ad":W?"ad_to_video":"ad_to_ad",this.videoStreamType=q?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&(this.B=!0,iA("_start",this.actionType)&&MhJ(this)))}reset(){return new $6(this.L)}};var M7=class extends g.gz{constructor(M){super();this.L=M;this.Z=new Map;this.V=new ZS(this);g.t(this,this.V);this.V.J(this.L,g.kJ("ad"),this.onCueRangeEnter,this);this.V.J(this.L,g.KX("ad"),this.onCueRangeExit,this)}addCueRange(M,W,b,T,q,X=3,G=1,V,J){this.Z.has(M)?za("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:M}):(M=new LUV(M,W,b,T,X,V,J),this.Z.set(M.id,{Yj:M,listener:q,eX:G}),this.L.QV([M],G))}removeCueRange(M){const W=this.Z.get(M);W?(this.L.Ng([W.Yj],W.eX),this.Z.delete(W.Yj.id)): za("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:M})}onCueRangeEnter(M){if(this.Z.has(M.id))this.Z.get(M.id).listener.onCueRangeEnter(M.id)}onCueRangeExit(M){if(this.Z.has(M.id))this.Z.get(M.id).listener.onCueRangeExit(M.id)}},LUV=class extends g.Ap{constructor(M,W,b,T,q,X,G){super(W,b,{id:M,namespace:"ad",priority:q,visible:T,associatedClipId:X,markerPositionMs:G})}};var WU=class{constructor(M){this.L=M}addPlayerResponseForAssociation(M){this.L.addPlayerResponseForAssociation(M)}};var bd=class{constructor(M){this.L=M}zR(M){this.L.zR(M)}};var Tf=class{constructor(M){this.L=M}};var iL=null,Dbp=class extends g.b9{constructor(){super();this.Z={};this.addOnDisposeCallback(()=>{for(const M of Object.keys(this.Z))delete this.Z[M]})}j4(M){return this.Z.hasOwnProperty(M)?this.Z[M].j4():{}}}; g.Uq("ytads.bulleit.getVideoMetadata",function(M){return hk().j4(M)}); g.Uq("ytads.bulleit.triggerExternalActivityEvent",function(M,W,b){var T=hk();b=ByL(b);b!==null&&T.publish(b,{queryId:M,viewabilityString:W})});var q7=class{constructor(M,W,b){this.I0=M;this.L=W;this.PY=b;this.V=new Set;this.Z=new Map;hk().subscribe("adactiveviewmeasurable",this.Xj,this);hk().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ua,this);hk().subscribe("adviewableimpression",this.Oa,this);hk().subscribe("adaudioaudible",this.a5,this);hk().subscribe("adaudiomeasurable",this.bH,this)}e6(M,W){if(!this.Z.has(M))return{};if(W==="seek")return(M=k4(FX).X(M,{}))&&la(M),{};W=nvP(W);if(W===null)return{};var b=this.L.nH();if(!b)return{}; const T=this.L.getPresentingPlayerType(!0);if(!this.L.getVideoData({playerType:T})?.isAd())return{};b={opt_adElement:b,opt_fullscreen:this.I0.get().isFullscreen()};return iv(W,M,b)}W(M,W,b,T,q){this.Z.has(M)&&(T<=0||q<=0||k4(FX).W(M,W,b,T,q))}Xj({queryId:M}){this.Z.get(M)?.Xj()}Ua({queryId:M}){this.Z.get(M)?.Ua()}Oa({queryId:M}){this.Z.get(M)?.Oa()}a5({queryId:M}){this.Z.get(M)?.a5()}bH({queryId:M}){this.Z.get(M)?.bH()}};var lZ7=class{send(M,W,b,T=!1){try{LlP(this,M,W,b,T)}catch(q){}}};var tuB=class extends lZ7{constructor(M,W,b,T,q){super();this.A=M;this.S=W;this.Z=b;this.V=T;this.B=q}};var ZyA=class{constructor(M,W){this.Z=M;this.PY=W}send(M,W,b,T){let q=!1;try{if(T==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||T==="ATTRIBUTION_SRC_MODE_XHR_OPTION")q=!0,M=yBp(M);T=q;var X=g.pD(M);if(X[1]==="https")var G=M;else X[1]="https",G=wU("https",X[2],X[3],X[4],X[5],X[6],X[7]);const V=lcG(G);X=[];const J=te(G)&&this.PY.get().L.G().experiments.FX("add_auth_headers_to_remarketing_google_dot_com_ping");if(lp(G)||J)X.push({headerType:"USER_AUTH"}),X.push({headerType:"PLUS_PAGE_ID"}),X.push({headerType:"VISITOR_ID"}), X.push({headerType:"EOM_VISITOR_ID"}),X.push({headerType:"AUTH_USER"}),X.push({headerType:"DATASYNC_ID"});this.Z.send({baseUrl:G,scrubReferrer:V,headers:X},W,b,T)}catch(V){}}};var XF=class{constructor(M,W,b,T,q,X,G=new tuB(()=>{const V=M.G(),J=M.getVideoData({playerType:1});return g.ZI(V,J?J.C():"")},()=>M.G().pageId,()=>M.G().sY,()=>M.G().datasyncId??"",()=>M.G().experiments)){this.L=M; this.V=W;this.HP=b;this.NK=T;this.Ne=q;this.PY=X;this.A=G;this.n6=null;this.Z=new Map;this.B=new ZyA(G,this.PY)}un(){return this.L.un(1)}};var jd=class extends g.gz{constructor(M,W,b){super();this.L=M;this.jX=W;this.PY=b;this.listeners=[];this.CG=null;this.hL=new Map;W=new g.Cq(this);g.t(this,W);W.J(M,"videodatachange",this.gZ);LY(M.G().hT())?W.J(M,"playbackChange",this.Xz):W.J(M,"serverstitchedvideochange",this.k6);this.aG=pX(this)}ip(){return this.L.getVideoData({playerType:1}).clientPlaybackNonce}addListener(M){this.listeners.push(M)}removeListener(M){this.listeners=this.listeners.filter(W=>W!==M)}m2(){this.hL.clear(); this.CG=null;this.jX.get().clear()}rT(){}gZ(M,W,b){W.videoId==="nPpU29QrbiU"&&this.L.dK("ads_ssm_vdc_s",{pt:b,dvt:M});bf(this.PY.get())&&M!=="dataloaded"||dt(this,W,b)}Xz(M){if(this.L.getVideoData({playerType:1}).enableServerStitchedDai)for(const W of M.started){M=this.L.getStartTime({cpn:W.cpn});const b=this.L.getVideoData({cpn:W.cpn}),T=this.L.getPlayerType(W.cpn);let q=null;T===2&&(this.CG=W.cpn,M===void 0?za("Expected ad video start time on SS video changed"):this.hL.set(W.cpn,M),q=ty(this.jX.get(), W.cpn));this.L.getVideoData({playerType:1}).dK("ads_ssvc",{pt:T,cpn:b?.clientPlaybackNonce,crtt:this.L.getCurrentTime({playerType:T,qW:!1}),atlh:this.L.isAtLiveHead(),adstt:M,pid:W.cpn,slid:q?.layoutId});b&&T?dt(this,b,T):za("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.L.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:W.cpn})}}k6(M,W){M!==void 0&&(this.CG=M,W===void 0||isNaN(W)?za("Expected ad video start time on SS video changed"):this.hL.set(M, W));const b=this.L.getPresentingPlayerType(!0),T=this.L.getVideoData({playerType:b}),q=M===void 0?null:ty(this.jX.get(),M);this.L.getVideoData({playerType:1}).dK("ads_ssvc",{pt:b,cpn:T?.clientPlaybackNonce,crtt:this.L.getCurrentTime({playerType:1,qW:!1}),atlh:this.L.isAtLiveHead(),adstt:W,pid:M,slid:q?.layoutId});T?dt(this,T,b):za("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.L.getVideoData({playerType:1}).clientPlaybackNonce,timelinePlaybackId:M})}S$(M,W){const b= M.author,T=M.clientPlaybackNonce,q=M.isListed;var X=M.cF;const G=M.title,V=M.Qs,J=M.m5,B=M.isMdxPlayback,D=M.C4,a=M.mdxEnvironment,E=M.isAutonav,n=M.FQ,C=M.eO,l=M.jm,N=M.videoId||"",R=M.profilePicture||"",f=M.YJ||"",x=M.OX()||!1,A=M.FD()||!1;M=M.tW||void 0;X=ty(this.jX.get(),X)||{layoutId:null,slotId:null};var qa=this.L.getVideoData({playerType:1});const Xs=qa.Me();qa=qa.getPlayerResponse();W=1E3*this.L.getDuration(W);const uQ=1E3*this.L.getDuration(1);return{...X,videoId:N,author:b,clientPlaybackNonce:T, gf:W,IV:uQ,daiEnabled:qa?.playerConfig?.daiConfig?.enableDai||!1,XB:qa?.playerConfig?.daiConfig?.enablePreroll||!1,isListed:q,Me:Xs,profilePicture:R,title:G,YJ:f,Qs:V,m5:J,tW:M,isMdxPlayback:B,C4:D,mdxEnvironment:a,isAutonav:E,FQ:n,eO:C,jm:l,OX:x,FD:A}}vY(){this.listeners.length=0;this.aG=null;super.vY()}};var Gf=class extends g.gz{constructor(M,W){super();this.L=M;this.NK=W;this.listeners=[];this.yk=[];this.c8=()=>{za("Called 'doUnlockPreroll' before it's initialized.")}; W=new ZS(this);const b=new g.Cq(this);g.t(this,b);g.t(this,W);W.J(M,"progresssync",this.V);W.J(M,"presentingplayerstatechange",this.Z);W.J(M,"fullscreentoggled",this.onFullscreenToggled);W.J(M,"onVolumeChange",this.onVolumeChange);W.J(M,"minimized",this.gm);W.J(M,"overlayvisibilitychange",this.cO);W.J(M,"shortsadswipe",this.xX);W.J(M,"resize",this.XT);b.J(M,g.kJ("appad"),this.lU)}m2(){this.c8=Z3(()=>{this.L.ST()||this.L.Vs("ad",1)})}rT(){}addListener(M){this.listeners.push(M)}removeListener(M){this.listeners= this.listeners.filter(W=>W!==M)}CC(){}playVideo(){this.L.playVideo()}pauseVideo(){this.L.pauseVideo()}resumeVideo(M){this.hU(M)&&this.L.playVideo()}hU(M){return this.L.getPlayerState(M)===2}getCurrentTimeSec(M,W){const b=this.NK.get().CG; return M!==2||W||b===null?this.L.getCurrentTime({playerType:M,qW:W}):sT(this,b)}getVolume(){return this.L.getVolume()}isMuted(){return this.L.isMuted()}getPresentingPlayerType(){return this.L.getPresentingPlayerType(!0)}getPlayerState(M){return this.L.getPlayerState(M)}getGetAdBreakContext(){return this.L.getGetAdBreakContext()}isFullscreen(){return this.L.isFullscreen()}isAtLiveHead(){return this.L.isAtLiveHead()}Un(M){this.L.Un(M)}V(){const M=this.L.getPresentingPlayerType(!0),W=this.getCurrentTimeSec(M, !1);if(M===2)for(const b of this.listeners)b.oZ(W);else if(M===1)for(const b of this.yk)b.CC(W)}Z(M){for(const W of this.listeners)W.aV(M,this.getPresentingPlayerType())}onFullscreenToggled(M){for(const W of this.listeners)W.onFullscreenToggled(M)}onVolumeChange(){for(const M of this.listeners)M.onVolumeChange()}gm(){const M=this.L.isMinimized();for(const W of this.listeners)W.gm(M)}cO(M){for(const W of this.listeners)W.cO(M)}XT(){const M=this.L.qe().hX();for(const W of this.listeners)W.PO(M)}lU(M){for(const W of this.listeners)W.lU(M)}xX(){for(const M of this.listeners)M.xX()}};var gvq=class extends g.gz{constructor(M,W,b,T){super();const q=c(()=>new eW(this.PY)); g.t(this,q);const X=c(()=>new dZ(q)); g.t(this,X);const G=c(()=>new Ry); g.t(this,G);const V=c(()=>new H9(M)); g.t(this,V);const J=c(()=>new oy(q,X,this.PY)); g.t(this,J);const B=c(()=>new c9); g.t(this,B);this.SW=c(()=>new jW(T)); g.t(this,this.SW);this.Md=c(()=>new $6(W)); g.t(this,this.Md);this.VN=c(()=>new M7(W)); g.t(this,this.VN);this.zY=c(()=>new WU(W)); g.t(this,this.zY);this.U2=c(()=>new bd(W)); g.t(this,this.U2);this.PY=c(()=>new Tf(W)); g.t(this,this.PY);const D=c(()=>new Xd(this.PY)); g.t(this,D);const a=c(()=>new t8(q,J,X,this.PY,D,null,null,null,null)); g.t(this,a);this.NK=c(()=>new jd(W,B,this.PY)); g.t(this,this.NK);const {Ne:E,context:n}=RG({NK:this.NK,PY:this.PY,Oj:D});this.Ne=E;this.I0=c(()=>new Gf(W,this.NK)); g.t(this,this.I0);this.HP=c(()=>new q7(this.I0,W,this.PY)); g.t(this,this.HP);this.iV=c(()=>new XF(W,G,this.HP,this.NK,this.Ne,this.PY)); g.t(this,this.iV);this.TN=new Nd(V,a,b,M,this.NK,this.I0,this.Md);g.t(this,this.TN);const C=new Yl(W,this.TN,this.I0,this.NK);this.Bx=c(()=>C); this.QF=C;this.fz=new fq(V,J,this.VN,this.Bx,n);g.t(this,this.fz);this.VV=new Lq(this.PY,V,a,this.NK,this.fz,b,this.zY);g.t(this,this.VV);this.VB={Vx:new Map,W$:new Map,wT:new Map,ai:new Map,y$:new Map};this.listeners=[];this.Gf={VV:this.VV,Ei:this.PY.get(),Gv:this.SW.get(),pI:this.I0.get(),TN:this.TN,P1:q.get(),JH:null,PM:{RL(){}},IE:G.get(),Lu:this.NK.get()}}};var IZ4=class extends g.gz{constructor(M){super();this.BM=M;this.BM.get().addListener(this)}vY(){this.BM.ST()||this.BM.get().removeListener(this);super.vY()}};var Vu=class{constructor(M){this.Z=M}fetch(M){const {yb:W,J8:b,eZ:T,cueProcessedMs:q=0}=M;return this.Z.fetch(W,{eZ:T,Yj:b,cueProcessedMs:q}).then(X=>xbp(X,b))}};var Jn=class extends g.gz{constructor(M){super();this.L=M;this.listeners=[];this.Z=new ZS(this);g.t(this,this.Z);this.Z.J(this.L,"aduxclicked",this.onAdUxClicked);this.Z.J(this.L,"aduxmouseover",this.oe);this.Z.J(this.L,"aduxmouseout",this.Hs);this.Z.J(this.L,"muteadaccepted",this.V)}addListener(M){this.listeners.push(M)}removeListener(M){this.listeners=this.listeners.filter(W=>W!==M)}e5(M){iMQ(this,M,1)}onAdUxClicked(M,W){wt(this,b=>{b.kZ(M,W)})}oe(M){wt(this,W=>{W.sf(M)})}Hs(M){wt(this,W=>{W.Z8(M)})}V(M){wt(this, W=>{W.aD(M)})}};var NP5=class{constructor(M,W=!1){this.V=M;this.B=W;this.Z={}}reduce(M){switch(M.event){case "unknown":return}var W=M.identifier;var b=this.Z[W];b?W=b:(b={B8:null,kC:-Infinity},W=this.Z[W]=b);b=M.startSecs+M.Z/1E3;if(!(bW!==M)}fq(M){OMp(this,M); if(this.PY.get().L.G().j("html5_lifa_move_gab_on_continue_or_stop_restriction")&&this.L.getVideoData({playerType:1})?.FD()&&(M.event==="continue"||M.event==="stop")||J9S(this.PY.get())&&this.L.getCurrentTime({playerType:1})===0&&this.L.getVideoData({playerType:1}).FD())return!1;this.S.reduce(M);M=this.A;this.A=!1;return M}C(M){const W=this.L.getVideoData({playerType:1}).isDaiEnabled();if(W||!g.Tb(this.L.G()))for(const b of M)OMp(this,b),qW(this.PY.get())&&this.L.getCurrentTime({playerType:1})===0&& b.event==="start"&&HK(this.iV.get(),"ocuz",`cpi.${b.identifier};cpe.${b.event};cps.${b.startSecs};cpd.${b.C7}`),W?J9S(this.PY.get())&&this.L.getCurrentTime({playerType:1})===0&&this.L.getVideoData({playerType:1}).FD()||this.S.reduce(b):this.L.getCurrentTime({playerType:1})!==0&&b.event==="start"&&(this.PY.get().L.G().experiments.FX("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.Z==null||this.PY.get().L.G().experiments.FX("enable_only_drop_overlapping_cuepoints_with_same_identifier")&& this.Z.identifier!==b.identifier?0:b.startSecs+b.C7>=this.Z.startSecs&&b.startSecs<=this.Z.startSecs+this.Z.C7)?(qW(this.PY.get())&&b.identifier!==this.Z?.identifier&&HK(this.iV.get(),"ocud",`ccpi.${b.identifier};ccpe.${b.event};ccps.${b.startSecs}; ccpd.${b.C7};pcpi.${this.Z?.identifier};pcpe.${this.Z?.event}; pcps.${this.Z?.startSecs};pcpd.${this.Z?.C7};`),b.identifier!==this.Z?.identifier&&za("Latest Endemic Live Web cue point overlaps with previous cue point")):(this.Z=b,ucJ(this,b)))}vY(){this.V!=null&&(this.V.unsubscribe("cuepointupdated",this.C,this),this.V=null);this.listeners.length=0;this.qt.length=0;super.vY()}};var D8=class{constructor(M){this.L=M}};var aM=class{constructor(M){this.L=M}Yp(M,W,b,T,q,X,G,V){return this.L.Yp(M,W,b,T,q,X,G,V!==void 0?{Q1:V}:void 0)}CZ(M,W){this.L.CZ(M,W)}OH(M,W,b){this.L.OH(M,W,b)}i7(M){this.L.i7({Q1:M})}cE(M,W,b,T,q,X,G,V){this.L.cE(M,W,b,T,q,X,G,V!==void 0?{Q1:V}:void 0)}L4(M){return this.L.L4(M)}finishSegmentByCpn(M,W,b){b=Pil(b);this.L.finishSegmentByCpn(M,W,b)}};var EQ=class extends g.gz{constructor(){super(...arguments);this.BD=new Map}};var fZ4=class{constructor(M){this.L=M}};var eOG=class extends g.gz{constructor(M,W,b,T,q){super();const X=c(()=>new eW(this.PY)); g.t(this,X);const G=c(()=>new dZ(X)); g.t(this,G);const V=c(()=>new Ry); g.t(this,V);const J=c(()=>new H9(M)); g.t(this,J);const B=c(()=>new oy(X,G,this.PY)); g.t(this,B);const D=c(()=>new c9); g.t(this,D);this.yN=c(()=>new Jn(W)); g.t(this,this.yN);this.SW=c(()=>new jW(q)); g.t(this,this.SW);this.Md=c(()=>new $6(W)); g.t(this,this.Md);this.VN=c(()=>new M7(W)); g.t(this,this.VN);this.zY=c(()=>new WU(W)); g.t(this,this.zY);this.U2=c(()=>new bd(W)); g.t(this,this.U2);this.PY=c(()=>new Tf(W)); g.t(this,this.PY);const a=c(()=>new Vu(T)); g.t(this,a);const E=c(()=>new Xd(this.PY)); g.t(this,E);this.rW=c(()=>new D8(W)); g.t(this,this.rW);this.BM=c(()=>new aHt); g.t(this,this.BM);this.NK=c(()=>new jd(W,D,this.PY)); g.t(this,this.NK);const {Ne:n,context:C}=RG({NK:this.NK,PY:this.PY,Oj:E});this.Ne=n;this.mQ=c(()=>new BU(W,this.PY,this.iV)); g.t(this,this.mQ);this.eR=c(()=>new aM(W)); g.t(this,this.eR);this.I0=c(()=>new Gf(W,this.NK)); g.t(this,this.I0);this.vx=c(()=>new EQ); g.t(this,this.vx);const l=c(()=>new t8(X,B,G,this.PY,E,"SLOT_TYPE_ABOVE_FEED",this.I0,this.pK,this.H3)); g.t(this,l);this.Ce=c(()=>new GQ(this.PY)); this.HP=c(()=>new q7(this.I0,W,this.PY)); g.t(this,this.HP);this.iV=c(()=>new XF(W,V,this.HP,this.NK,this.Ne,this.PY)); g.t(this,this.iV);this.SI=new Iy(jl,(R,f,x,A)=>v2(G.get(),R,f,x,A),J,B,G,E,this.PY,this.NK); g.t(this,this.SI);this.TN=new Nd(J,l,b,M,this.NK,this.I0,this.Md);g.t(this,this.TN);const N=new Yl(W,this.TN,this.I0,this.NK,this.mQ);this.Bx=c(()=>N); this.QF=N;this.pK=new ZC(J,B,this.Bx,this.mQ,this.I0,this.PY,this.iV,this.eR);g.t(this,this.pK);this.fz=new fq(J,B,this.VN,this.Bx,C);g.t(this,this.fz);this.VV=new Lq(this.PY,J,l,this.NK,this.fz,b,this.zY);g.t(this,this.VV);this.Uh=c(()=>new Vw(a,G,E,this.PY,this.iV,this.I0,this.eR)); g.t(this,this.Uh);this.v3=c(()=>new J8); g.t(this,this.v3);this.Fm=new ih(M,this.yN,this.PY);g.t(this,this.Fm);this.bk=new h8(M);g.t(this,this.bk);this.Gt=new Szg(M);g.t(this,this.Gt);this.Pa=new A8(M,this.Bx,C);g.t(this,this.Pa);this.Na=new zQ(M,this.VN,this.I0,this.NK);g.t(this,this.Na);this.N3=new OKt(M,this.NK);g.t(this,this.N3);this.H3=new On(M,this.mQ,this.I0,this.iV,this.Bx,this.pK);g.t(this,this.H3);this.Q0=new uh(M);g.t(this,this.Q0);this.P3=new P9;g.t(this,this.P3);this.MW=new SW(M);g.t(this,this.MW);this.Jr=new Pnl(M);g.t(this, this.Jr);this.P3=new P9;g.t(this,this.P3);this.gU=c(()=>new rZ); g.t(this,this.gU);this.iU=c(()=>new xk(this.I0)); g.t(this,this.iU);this.Qb=c(()=>new dLL(this.yN,this.iV,M,V,this.HP)); g.t(this,this.Qb);this.kI=c(()=>new En(this.VV,J,X)); g.t(this,this.kI);this.R3=c(()=>new nq(this.PY,this.iV,this.Q0,this.HP)); g.t(this,this.R3);this.f3=c(()=>new Kup(M,this.P3,this.Q0,this.NK,this.eR,this.I0,this.vx,this.iV,D,this.mQ,this.HP,this.Ce,this.zY,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,V,C)); g.t(this,this.f3);this.xe=c(()=>new $KP(this.I0,this.iV,this.SW,this.PY,this.HP,this.NK)); g.t(this,this.xe);this.QC=c(()=>new NEG(this.yN,this.I0,this.iV,V,this.HP,this.Gt,this.Jr,this.SW,this.PY,b)); g.t(this,this.QC);this.kW=c(()=>new oYg(this.yN,this.iV,V)); g.t(this,this.kW);this.Xg=new IZ4(this.BM);g.t(this,this.Xg);this.VB={Vx:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.VV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pK],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.SI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.TN],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fz]]),W$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uh],["SLOT_TYPE_ABOVE_FEED",this.v3],["SLOT_TYPE_FORECASTING",this.v3], ["SLOT_TYPE_IN_PLAYER",this.v3],["SLOT_TYPE_PLAYER_BYTES",this.v3],["SLOT_TYPE_PLAYER_UNDERLAY",this.v3],["SLOT_TYPE_PLAYBACK_TRACKING",this.v3],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.v3]]),wT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Fm],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Fm],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.bk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bk],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.bk],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.bk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Gt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Na],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Na],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Na],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Na],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Na],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Na],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Na],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.N3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.N3],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.MW],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Jr],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.H3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.H3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.H3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.H3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.H3]]),ai:new Map([["SLOT_TYPE_ABOVE_FEED",this.gU], ["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.gU],["SLOT_TYPE_IN_PLAYER",this.gU],["SLOT_TYPE_PLAYER_BYTES",this.iU],["SLOT_TYPE_PLAYER_UNDERLAY",this.gU],["SLOT_TYPE_PLAYBACK_TRACKING",this.gU],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.gU]]),y$:new Map([["SLOT_TYPE_ABOVE_FEED",this.Qb],["SLOT_TYPE_AD_BREAK_REQUEST",this.kI],["SLOT_TYPE_FORECASTING",this.R3],["SLOT_TYPE_PLAYER_BYTES",this.f3],["SLOT_TYPE_PLAYBACK_TRACKING",this.xe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.xe],["SLOT_TYPE_IN_PLAYER",this.QC],["SLOT_TYPE_PLAYER_UNDERLAY",this.kW]])};this.listeners=[V.get()];this.Gf={VV:this.VV,Ei:this.PY.get(),Gv:this.SW.get(),pI:this.I0.get(),TN:this.TN,P1:X.get(),JH:this.BM.get(),PM:this.Fm,IE:V.get(),Lu:this.NK.get()}}};var dbL=class extends g.gz{constructor(M,W,b,T,q){super();const X=c(()=>new eW(this.PY)); g.t(this,X);const G=c(()=>new dZ(X)); g.t(this,G);const V=c(()=>new Ry); g.t(this,V);const J=c(()=>new H9(M)); g.t(this,J);const B=c(()=>new oy(X,G,this.PY)); g.t(this,B);const D=c(()=>new c9); g.t(this,D);this.yN=c(()=>new Jn(W)); g.t(this,this.yN);this.SW=c(()=>new jW(q)); g.t(this,this.SW);this.Md=c(()=>new $6(W)); g.t(this,this.Md);this.VN=c(()=>new M7(W)); g.t(this,this.VN);this.zY=c(()=>new WU(W)); g.t(this,this.zY);this.U2=c(()=>new bd(W)); g.t(this,this.U2);this.PY=c(()=>new Tf(W)); g.t(this,this.PY);const a=c(()=>new Vu(T)); g.t(this,a);const E=c(()=>new Xd(this.PY)); g.t(this,E);const n=c(()=>new t8(X,B,G,this.PY,E,null,null,this.pK,this.H3)); g.t(this,n);this.rW=c(()=>new D8(W)); g.t(this,this.rW);this.BM=c(()=>new aHt); g.t(this,this.BM);this.NK=c(()=>new jd(W,D,this.PY)); g.t(this,this.NK);const {Ne:C,context:l}=RG({NK:this.NK,PY:this.PY,Oj:E});this.Ne=C;this.mQ=c(()=>new BU(W,this.PY,this.iV)); this.I0=c(()=>new Gf(W,this.NK)); g.t(this,this.I0);this.vx=c(()=>new EQ); g.t(this,this.vx);this.HP=c(()=>new q7(this.I0,W,this.PY)); g.t(this,this.HP);this.iV=c(()=>new XF(W,V,this.HP,this.NK,this.Ne,this.PY)); g.t(this,this.iV);this.Ce=c(()=>new GQ(this.PY)); g.t(this,this.Ce);this.SI=new Iy(jl,(R,f,x,A)=>v2(G.get(),R,f,x,A),J,B,G,E,this.PY,this.NK); g.t(this,this.SI);this.TN=new Nd(J,n,b,M,this.NK,this.I0,this.Md);g.t(this,this.TN);const N=new Yl(W,this.TN,this.I0,this.NK,this.mQ);this.Bx=c(()=>N); this.QF=N;this.pK=new ZC(J,B,this.Bx,this.mQ,this.I0,this.PY,this.iV);g.t(this,this.pK);this.fz=new fq(J,B,this.VN,this.Bx,l);g.t(this,this.fz);this.VV=new Lq(this.PY,J,n,this.NK,this.fz,b,this.zY);g.t(this,this.VV);this.Uh=c(()=>new Vw(a,G,E,this.PY,this.iV,this.I0)); g.t(this,this.Uh);this.v3=c(()=>new J8); g.t(this,this.v3);this.Fm=new ih(M,this.yN,this.PY);g.t(this,this.Fm);this.bk=new h8(M);g.t(this,this.bk);this.Gt=new Szg(M);g.t(this,this.Gt);this.Pa=new A8(M,this.Bx,l);g.t(this,this.Pa);this.Na=new zQ(M,this.VN,this.I0,this.NK);g.t(this,this.Na);this.Q0=new uh(M);g.t(this,this.Q0);this.MW=new SW(M);g.t(this,this.MW);this.Jr=new Pnl(M);g.t(this,this.Jr);this.eR=c(()=>new aM(W)); g.t(this,this.eR);this.P3=new P9;g.t(this,this.P3);this.H3=new On(M,this.mQ,this.I0,this.iV,this.Bx,this.pK);g.t(this,this.H3);this.gU=c(()=>new rZ); g.t(this,this.gU);this.iU=c(()=>new xk(this.I0)); g.t(this,this.iU);this.kI=c(()=>new En(this.VV,J,X)); g.t(this,this.kI);this.R3=c(()=>new nq(this.PY,this.iV,this.Q0,this.HP)); g.t(this,this.R3);this.QC=c(()=>new HKL(this.yN,this.I0,this.iV,V,this.HP,this.Gt,this.Jr,this.SW,this.PY,b)); g.t(this,this.QC);this.f3=c(()=>new v9(M,this.P3,this.Q0,this.iV,this.HP,this.Ce,this.zY,this.NK,this.I0,this.vx,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,this.eR,l)); g.t(this,this.f3);this.Xg=new IZ4(this.BM);g.t(this,this.Xg);this.VB={Vx:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.VV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pK],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.SI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.TN],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fz]]),W$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uh],["SLOT_TYPE_FORECASTING",this.v3],["SLOT_TYPE_IN_PLAYER",this.v3], ["SLOT_TYPE_PLAYER_BYTES",this.v3]]),wT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Fm],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bk], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.bk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Gt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Na],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Na],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Na],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.MW],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Jr],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.H3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.H3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.H3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.H3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.H3]]),ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.gU],["SLOT_TYPE_IN_PLAYER",this.gU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]), y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kI],["SLOT_TYPE_FORECASTING",this.R3],["SLOT_TYPE_IN_PLAYER",this.QC],["SLOT_TYPE_PLAYER_BYTES",this.f3]])};this.listeners=[V.get()];this.Gf={VV:this.VV,Ei:this.PY.get(),Gv:this.SW.get(),pI:this.I0.get(),TN:this.TN,P1:X.get(),JH:this.BM.get(),PM:this.Fm,IE:V.get(),Lu:this.NK.get()}}};var ovt=class extends g.gz{constructor(M,W,b,T,q){super();const X=c(()=>new eW(this.PY)); g.t(this,X);const G=c(()=>new dZ(X)); g.t(this,G);const V=c(()=>new Ry); g.t(this,V);const J=c(()=>new H9(M)); g.t(this,J);const B=c(()=>new oy(X,G,this.PY)); g.t(this,B);const D=c(()=>new c9); g.t(this,D);this.yN=c(()=>new Jn(W)); g.t(this,this.yN);this.SW=c(()=>new jW(q)); g.t(this,this.SW);this.Md=c(()=>new $6(W)); g.t(this,this.Md);this.VN=c(()=>new M7(W)); g.t(this,this.VN);this.zY=c(()=>new WU(W)); g.t(this,this.zY);this.U2=c(()=>new bd(W)); g.t(this,this.U2);this.PY=c(()=>new Tf(W)); g.t(this,this.PY);const a=c(()=>new Vu(T)); g.t(this,a);const E=c(()=>new Xd(this.PY)); g.t(this,E);const n=c(()=>new t8(X,B,G,this.PY,E,null,null,null,null)); g.t(this,n);this.rW=c(()=>new D8(W)); g.t(this,this.rW);this.NK=c(()=>new jd(W,D,this.PY)); g.t(this,this.NK);const {Ne:C,context:l}=RG({NK:this.NK,PY:this.PY,Oj:E});this.Ne=C;this.I0=c(()=>new Gf(W,this.NK)); g.t(this,this.I0);this.vx=c(()=>new EQ); g.t(this,this.vx);this.HP=c(()=>new q7(this.I0,W,this.PY)); g.t(this,this.HP);this.iV=c(()=>new XF(W,V,this.HP,this.NK,this.Ne,this.PY)); g.t(this,this.iV);this.Ce=c(()=>new GQ(this.PY)); g.t(this,this.Ce);this.SI=new Iy(jl,(R,f,x,A)=>v2(G.get(),R,f,x,A),J,B,G,E,this.PY,this.NK); g.t(this,this.SI);this.TN=new Nd(J,n,b,M,this.NK,this.I0,this.Md);g.t(this,this.TN);const N=new Yl(W,this.TN,this.I0,this.NK);this.Bx=c(()=>N); this.QF=N;this.fz=new fq(J,B,this.VN,this.Bx,l);g.t(this,this.fz);this.VV=new Lq(this.PY,J,n,this.NK,this.fz,b,this.zY);g.t(this,this.VV);this.Uh=c(()=>new Vw(a,G,E,this.PY,this.iV,this.I0)); g.t(this,this.Uh);this.v3=c(()=>new J8); g.t(this,this.v3);this.Fm=new ih(M,this.yN,this.PY);g.t(this,this.Fm);this.bk=new h8(M);g.t(this,this.bk);this.Pa=new A8(M,this.Bx,l);g.t(this,this.Pa);this.Na=new zQ(M,this.VN,this.I0,this.NK);g.t(this,this.Na);this.Q0=new uh(M);g.t(this,this.Q0);this.MW=new SW(M);g.t(this,this.MW);this.eR=c(()=>new aM(W)); g.t(this,this.eR);this.P3=new P9;g.t(this,this.P3);this.gU=c(()=>new rZ); g.t(this,this.gU);this.iU=c(()=>new xk(this.I0)); g.t(this,this.iU);this.kI=c(()=>new En(this.VV,J,X)); g.t(this,this.kI);this.R3=c(()=>new nq(this.PY,this.iV,this.Q0,this.HP)); g.t(this,this.R3);this.U4=c(()=>new p3g(this.yN,this.I0,this.iV,V,b,this.PY)); g.t(this,this.U4);this.f3=c(()=>new v9(M,this.P3,this.Q0,this.iV,this.HP,this.Ce,this.zY,this.NK,this.I0,this.vx,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,this.eR,l)); g.t(this,this.f3);this.VB={Vx:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.VV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.SI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.TN],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fz]]),W$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uh],["SLOT_TYPE_FORECASTING",this.v3],["SLOT_TYPE_IN_PLAYER",this.v3],["SLOT_TYPE_PLAYER_BYTES",this.v3]]),wT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Fm],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.bk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Na],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Na],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.MW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P3]]),ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_ABOVE_FEED",this.gU],["SLOT_TYPE_FORECASTING",this.gU],["SLOT_TYPE_IN_PLAYER",this.gU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kI],["SLOT_TYPE_FORECASTING",this.R3],["SLOT_TYPE_IN_PLAYER", this.U4],["SLOT_TYPE_PLAYER_BYTES",this.f3]])};this.listeners=[V.get()];this.Gf={VV:this.VV,Ei:this.PY.get(),Gv:this.SW.get(),pI:this.I0.get(),TN:this.TN,P1:X.get(),JH:null,PM:this.Fm,IE:V.get(),Lu:this.NK.get()}}};var c9g=class extends g.gz{constructor(M,W,b,T,q){super();const X=c(()=>new eW(this.PY)); g.t(this,X);const G=c(()=>new dZ(X)); g.t(this,G);const V=c(()=>new Ry); g.t(this,V);const J=c(()=>new H9(M)); g.t(this,J);const B=c(()=>new oy(X,G,this.PY)); g.t(this,B);const D=c(()=>new c9); g.t(this,D);this.Wc=c(()=>new fZ4(W)); g.t(this,this.Wc);this.yN=c(()=>new Jn(W)); g.t(this,this.yN);this.SW=c(()=>new jW(q)); g.t(this,this.SW);this.Md=c(()=>new $6(W)); g.t(this,this.Md);this.VN=c(()=>new M7(W)); g.t(this,this.VN);this.zY=c(()=>new WU(W)); g.t(this,this.zY);this.U2=c(()=>new bd(W)); g.t(this,this.U2);this.PY=c(()=>new Tf(W)); g.t(this,this.PY);const a=c(()=>new Vu(T)); g.t(this,a);const E=c(()=>new Xd(this.PY)); g.t(this,E);const n=c(()=>new t8(X,B,G,this.PY,E,null,null,null,null)); g.t(this,n);this.rW=c(()=>new D8(W)); g.t(this,this.rW);this.NK=c(()=>new jd(W,D,this.PY)); g.t(this,this.NK);const {Ne:C,context:l}=RG({NK:this.NK,PY:this.PY,Oj:E});this.Ne=C;this.I0=c(()=>new Gf(W,this.NK)); g.t(this,this.I0);this.vx=c(()=>new EQ); g.t(this,this.vx);this.HP=c(()=>new q7(this.I0,W,this.PY)); g.t(this,this.HP);this.iV=c(()=>new XF(W,V,this.HP,this.NK,this.Ne,this.PY)); g.t(this,this.iV);this.Ce=c(()=>new GQ(this.PY)); g.t(this,this.Ce);this.SI=new Iy(kuQ,(R,f,x,A)=>e2Q(G.get(),R,f,x,A),J,B,G,E,this.PY,this.NK); g.t(this,this.SI);this.TN=new Nd(J,n,b,M,this.NK,this.I0,this.Md);g.t(this,this.TN);const N=new Yl(W,this.TN,this.I0,this.NK);this.Bx=c(()=>N); this.QF=N;this.fz=new fq(J,B,this.VN,this.Bx,l);g.t(this,this.fz);this.VV=new Lq(this.PY,J,n,this.NK,this.fz,b,this.zY);g.t(this,this.VV);this.Uh=c(()=>new Vw(a,G,E,this.PY,this.iV,this.I0)); g.t(this,this.Uh);this.v3=c(()=>new J8); g.t(this,this.v3);this.Fm=new ih(M,this.yN,this.PY);g.t(this,this.Fm);this.bk=new h8(M);g.t(this,this.bk);this.Pa=new A8(M,this.Bx,l);g.t(this,this.Pa);this.Na=new zQ(M,this.VN,this.I0,this.NK);g.t(this,this.Na);this.Q0=new uh(M);g.t(this,this.Q0);this.MW=new SW(M);g.t(this,this.MW);this.eR=c(()=>new aM(W)); g.t(this,this.eR);this.P3=new P9;g.t(this,this.P3);this.gU=c(()=>new rZ); g.t(this,this.gU);this.iU=c(()=>new xk(this.I0)); g.t(this,this.iU);this.kI=c(()=>new En(this.VV,J,X)); g.t(this,this.kI);this.R3=c(()=>new nq(this.PY,this.iV,this.Q0,this.HP)); g.t(this,this.R3);this.f3=c(()=>new v9(M,this.P3,this.Q0,this.iV,this.HP,this.Ce,this.zY,this.NK,this.I0,this.vx,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,this.eR,l)); g.t(this,this.f3);this.hd=c(()=>new RIg(this.yN,this.I0,this.iV,V,this.Wc,b,this.NK)); g.t(this,this.hd);this.VB={Vx:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.VV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.SI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.TN],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fz]]),W$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uh],["SLOT_TYPE_FORECASTING",this.v3],["SLOT_TYPE_IN_PLAYER",this.v3],["SLOT_TYPE_PLAYER_BYTES",this.v3]]),wT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Fm],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.bk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Na],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Na],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.MW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P3]]),ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.gU],["SLOT_TYPE_IN_PLAYER",this.gU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kI],["SLOT_TYPE_FORECASTING",this.R3],["SLOT_TYPE_IN_PLAYER",this.hd],["SLOT_TYPE_PLAYER_BYTES", this.f3]])};this.listeners=[V.get()];this.Gf={VV:this.VV,Ei:this.PY.get(),Gv:this.SW.get(),pI:this.I0.get(),TN:this.TN,P1:X.get(),JH:null,PM:this.Fm,IE:V.get(),Lu:this.NK.get()}}};var QAt=class extends g.gz{constructor(M,W,b,T,q){super();const X=c(()=>new eW(this.PY)); g.t(this,X);const G=c(()=>new dZ(X)); g.t(this,G);const V=c(()=>new Ry); g.t(this,V);const J=c(()=>new H9(M)); g.t(this,J);const B=c(()=>new oy(X,G,this.PY)); g.t(this,B);const D=c(()=>new c9); g.t(this,D);this.Wc=c(()=>new fZ4(W)); g.t(this,this.Wc);this.yN=c(()=>new Jn(W)); g.t(this,this.yN);this.SW=c(()=>new jW(q)); g.t(this,this.SW);this.Md=c(()=>new $6(W)); g.t(this,this.Md);this.VN=c(()=>new M7(W)); g.t(this,this.VN);this.zY=c(()=>new WU(W)); g.t(this,this.zY);this.U2=c(()=>new bd(W)); g.t(this,this.U2);this.PY=c(()=>new Tf(W)); g.t(this,this.PY);const a=c(()=>new Vu(T)); g.t(this,a);const E=c(()=>new Xd(this.PY)); g.t(this,E);this.rW=c(()=>new D8(W)); g.t(this,this.rW);this.NK=c(()=>new jd(W,D,this.PY)); g.t(this,this.NK);const {Ne:n,context:C}=RG({NK:this.NK,PY:this.PY,Oj:E});this.Ne=n;this.mQ=c(()=>new BU(W,this.PY,this.iV)); g.t(this,this.mQ);this.eR=c(()=>new aM(W)); g.t(this,this.eR);this.I0=c(()=>new Gf(W,this.NK)); g.t(this,this.I0);this.vx=c(()=>new EQ); g.t(this,this.vx);const l=c(()=>new t8(X,B,G,this.PY,E,null,this.I0,this.pK,this.H3,3)); g.t(this,l);this.Ce=c(()=>new GQ(this.PY)); this.HP=c(()=>new q7(this.I0,W,this.PY)); g.t(this,this.HP);this.iV=c(()=>new XF(W,V,this.HP,this.NK,this.Ne,this.PY)); g.t(this,this.iV);this.TN=new Nd(J,l,b,M,this.NK,this.I0,this.Md);g.t(this,this.TN);const N=new Yl(W,this.TN,this.I0,this.NK,this.mQ);this.Bx=c(()=>N); this.QF=N;this.SI=new Iy(K7a,(R,f,x,A)=>e2Q(G.get(),R,f,x,A),J,B,G,E,this.PY,this.NK); g.t(this,this.SI);this.pK=new ZC(J,B,this.Bx,this.mQ,this.I0,this.PY,this.iV,this.eR);g.t(this,this.pK);this.fz=new fq(J,B,this.VN,this.Bx,C);g.t(this,this.fz);this.VV=new Lq(this.PY,J,l,this.NK,this.fz,b,this.zY);g.t(this,this.VV);this.Uh=c(()=>new Vw(a,G,E,this.PY,this.iV,this.I0,this.eR)); g.t(this,this.Uh);this.v3=c(()=>new J8); g.t(this,this.v3);this.Fm=new ih(M,this.yN,this.PY);g.t(this,this.Fm);this.bk=new h8(M);g.t(this,this.bk);this.Pa=new A8(M,this.Bx,C);g.t(this,this.Pa);this.Na=new zQ(M,this.VN,this.I0,this.NK);g.t(this,this.Na);this.N3=new OKt(M,this.NK);g.t(this,this.N3);this.H3=new On(M,this.mQ,this.I0,this.iV,this.Bx,this.pK);g.t(this,this.H3);this.Q0=new uh(M);g.t(this,this.Q0);this.MW=new SW(M);g.t(this,this.MW);this.P3=new P9;g.t(this,this.P3);this.gU=c(()=>new rZ); g.t(this,this.gU);this.iU=c(()=>new xk(this.I0)); g.t(this,this.iU);this.kI=c(()=>new En(this.VV,J,X)); g.t(this,this.kI);this.R3=c(()=>new nq(this.PY,this.iV,this.Q0,this.HP)); g.t(this,this.R3);this.f3=c(()=>new Kup(M,this.P3,this.Q0,this.NK,this.eR,this.I0,this.vx,this.iV,D,this.mQ,this.HP,this.Ce,this.zY,this.VN,this.Md,this.U2,this.SW,this.rW,this.PY,V,C)); g.t(this,this.f3);this.QC=c(()=>new rvs(this.yN,this.I0,this.iV,V,this.Wc,b,this.PY,this.NK)); g.t(this,this.QC);this.VB={Vx:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.VV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pK],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.SI],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.TN],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fz]]),W$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uh],["SLOT_TYPE_FORECASTING",this.v3],["SLOT_TYPE_IN_PLAYER",this.v3],["SLOT_TYPE_PLAYER_BYTES",this.v3]]),wT:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Fm],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.bk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.bk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.bk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.bk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.bk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Na],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Na],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.N3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.N3],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Q0],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.MW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.P3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.H3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.H3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.H3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.H3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.H3]]),ai:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gU],["SLOT_TYPE_FORECASTING",this.gU],["SLOT_TYPE_IN_PLAYER",this.gU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]),y$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kI],["SLOT_TYPE_FORECASTING",this.R3],["SLOT_TYPE_PLAYER_BYTES",this.f3],["SLOT_TYPE_IN_PLAYER",this.QC]])};this.listeners=[V.get()]; this.Gf={VV:this.VV,Ei:this.PY.get(),Gv:this.SW.get(),pI:this.I0.get(),TN:this.TN,P1:X.get(),JH:null,PM:this.Fm,IE:V.get(),Lu:this.NK.get()}}};var Rhc=class extends g.gz{constructor(M,W,b,T){super();const q=()=>this.V; M.G().experiments.FX("html5_dispose_of_manager_before_dependency")?(this.Z=sAl(q,M,W,b,T),this.V=(new DLS(this.Z)).B(),g.t(this,this.V),g.t(this,this.Z)):(this.Z=sAl(q,M,W,b,T),g.t(this,this.Z),this.V=(new DLS(this.Z)).B(),g.t(this,this.V))}B(){return this.V}};var rYV=class extends AiG{A(M){var W=M.content;if(W.componentType==="shopping-companion")switch(M.actionType){case 1:case 2:M=this.Z.getVideoData({playerType:1});g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,shoppingCompanionCarouselRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.Z,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:g.q8(this.Z,"updateKevlarOrC3Companion",{})}else if(W.componentType==="action-companion")switch(M.actionType){case 1:case 2:M= this.Z.getVideoData({playerType:1});g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,actionCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.Z,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.Z.getVideoData({playerType:1}),g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),g.q8(this.Z,"updateKevlarOrC3Companion",{})}else if(W.componentType==="image-companion")switch(M.actionType){case 1:case 2:M= this.Z.getVideoData({playerType:1});g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,imageCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.Z,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.Z.getVideoData({playerType:1}),g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),g.q8(this.Z,"updateKevlarOrC3Companion",{})}else if(W.componentType==="top-banner-image-text-icon-buttoned")switch(M.actionType){case 1:case 2:M= this.Z.getVideoData({playerType:1});g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,topBannerImageTextIconButtonedLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.Z,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.Z.getVideoData({playerType:1}),g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),g.q8(this.Z,"updateKevlarOrC3Companion",{})}else if(W.componentType==="banner-image")switch(M.actionType){case 1:case 2:M= this.Z.getVideoData({playerType:1});g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,bannerImageLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.Z,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.Z.getVideoData({playerType:1}),g.q8(this.Z,"updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),g.q8(this.Z,"updateKevlarOrC3Companion",{})}else if(W.componentType==="ads-engagement-panel")switch(W=W.renderer, M.actionType){case 1:case 2:g.q8(this.Z,"updateEngagementPanelAction",W.addAction);g.q8(this.Z,"changeEngagementPanelVisibility",W.expandAction);break;case 3:g.q8(this.Z,"changeEngagementPanelVisibility",W.hideAction),g.q8(this.Z,"updateEngagementPanelAction",W.removeAction)}else if(W.componentType==="ads-engagement-panel-layout"){const b=W.renderer;switch(M.actionType){case 1:case 2:g.q8(this.Z,"updateEngagementPanelAction",{action:iR(b.addAction),layoutId:W.layoutId,onLayoutVisibleCallback:W.Z, interactionLoggingClientData:W.interactionLoggingClientData});g.q8(this.Z,"changeEngagementPanelVisibility",iR(b.expandAction));break;case 3:g.q8(this.Z,"changeEngagementPanelVisibility",iR(b.hideAction)),g.q8(this.Z,"updateEngagementPanelAction",{action:iR(b.removeAction)})}}}};var x$$=class extends Sj{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-ad-timed-pie-countdown-container",U:[{K:"svg",N:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},U:[{K:"circle",N:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{K:"circle",N:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{K:"circle",N:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",W,b,T,q);this.C=this.hn("ytp-ad-timed-pie-countdown-container"); this.A=this.hn("ytp-ad-timed-pie-countdown-inner");this.W=this.hn("ytp-ad-timed-pie-countdown-outer");this.V=Math.ceil(2*Math.PI*5);this.hide()}init(M,W,b){super.init(M,W,b);g.iq(this.A,"stroke-dasharray",`0 ${this.V}`);this.A.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.C.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}clear(){this.hide()}hide(){i9(this);super.hide()}show(){FE(this);super.show()}S(){this.hide()}B(){if(this.Z){var M= this.Z.getProgressState();M!=null&&M.current!=null&&g.iq(this.A,"stroke-dasharray",`${M.current/M.seekableEnd*this.V} ${this.V}`)}}};var FgS=class extends hS{constructor(M,W,b,T,q,X){super(M,{K:"div",N:"ytp-ad-action-interstitial",Y:{tabindex:"0"},U:[{K:"div",N:"ytp-ad-action-interstitial-background-container"},{K:"div",N:"ytp-ad-action-interstitial-slot",U:[{K:"div",N:"ytp-ad-action-interstitial-instream-info"},{K:"div",N:"ytp-ad-action-interstitial-card",U:[{K:"div",N:"ytp-ad-action-interstitial-image-container"},{K:"div",N:"ytp-ad-action-interstitial-headline-container"},{K:"div",N:"ytp-ad-action-interstitial-description-container"}, {K:"div",N:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",W,b,T);this.xG=q;this.NS=X;this.navigationEndpoint=this.Z=this.skipButton=this.V=this.actionButton=null;this.An=this.hn("ytp-ad-action-interstitial-instream-info");this.sY=this.hn("ytp-ad-action-interstitial-image-container");this.C=new AS(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-ad-action-interstitial-image");g.t(this,this.C);this.C.cY(this.sY);this.O=this.hn("ytp-ad-action-interstitial-headline-container"); this.S=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-ad-action-interstitial-headline");g.t(this,this.S);this.S.cY(this.O);this.W=this.hn("ytp-ad-action-interstitial-description-container");this.B=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-ad-action-interstitial-description");g.t(this,this.B);this.B.cY(this.W);this.Ds=this.hn("ytp-ad-action-interstitial-background-container");this.MK=new AS(this.api,this.layoutId,this.interactionLoggingClientData, this.Gv,"ytp-ad-action-interstitial-background",!0);g.t(this,this.MK);this.MK.cY(this.Ds);this.wK=this.hn("ytp-ad-action-interstitial-action-button-container");this.slot=this.hn("ytp-ad-action-interstitial-slot");this.Ma=this.hn("ytp-ad-action-interstitial-card");this.A=new ZS;g.t(this,this.A);this.hide()}init(M,W,b){super.init(M,W,b);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if(W.backgroundImage&&W.backgroundImage.thumbnail)if(W.actionButton&&g.z(W.actionButton,gQ))if(M=W.durationMilliseconds|| 0,typeof M!=="number"||M<=0)g.O(Error("durationMilliseconds was specified incorrectly in "+`AdActionInterstitialRenderer with a value of: ${M}`));else if(W.navigationEndpoint){var T=this.api.getVideoData({playerType:2});if(T!=null){var q=W.image.thumbnail.thumbnails;q!=null&&q.length>0&&g.Tp(g.JY(q[0].url))&&(q[0].url=T.profilePicture,g.Tp(g.JY(T.profilePicture))&&twg(6,"VideoPlayer",239976093,"Expected non-empty profile picture."));q=W.backgroundImage.thumbnail.thumbnails;q!=null&&q.length>0&&g.Tp(g.JY(q[0].url))&& (q[0].url=T.pz());q=W.headline;q!=null&&g.Tp(g.JY(q.text))&&(q.text=T.author)}this.C.init(WF("ad-image"),W.image,b);this.S.init(WF("ad-text"),W.headline,b);this.B.init(WF("ad-text"),W.description,b);this.MK.init(WF("ad-image"),W.backgroundImage,b);T=["ytp-ad-action-interstitial-action-button","ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.B.element.classList.add("ytp-ad-action-interstitial-description-light"); this.api.G().j("enable_default_mono_cta_migration_web_client")?T.push("ytp-ad-action-interstitial-action-button-mono-dark"):T.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().V&&(T.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),this.api.G().j("enable_default_mono_cta_migration_web_client")?T.push("ytp-ad-action-interstitial-action-button-mono-dark"):T.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().j("enable_unified_action_endcap_on_web")&& !this.api.G().V&&(this.api.G().j("enable_default_mono_cta_migration_web_client")?T.push("ytp-ad-action-interstitial-action-button-unified-mono"):T.push("ytp-ad-action-interstitial-action-button-unified"),this.wK.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Ds.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Ma.classList.add("ytp-ad-action-interstitial-card-unified"), this.W.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.O.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.sY.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.An.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified")); this.actionButton=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,T);g.t(this,this.actionButton);this.actionButton.cY(this.wK);this.actionButton.init(WF("button"),g.z(W.actionButton,gQ),b);Af(this.actionButton.element);T=SO(this.actionButton.element);uT(this.actionButton.element,T+" This link opens in new tab");this.navigationEndpoint=W.navigationEndpoint;this.A.J(this.sY,"click",this.Lp,this);this.A.J(this.W,"click",this.Lp,this);this.api.G().V||this.A.J(this.O,"click",this.Lp, this);this.Z=this.xG?new Gc(this.api,M):new QF(M);g.t(this,this.Z);if(W.skipButton){(M=g.z(W.skipButton,JnL))&&this.Z&&(this.skipButton=new OwG(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.Z,this.NS),g.t(this,this.skipButton),this.skipButton.cY(this.element),this.skipButton.init(WF("skip-button"),M,b));if(b=W.adBadgeRenderer)if(b=g.z(b,Vdt))M=new ou(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!0),M.cY(this.An),M.init(WF("simple-ad-badge"),b,this.macros), g.t(this,M);if(b=W.adInfoRenderer)if(b=g.z(b,Ud))M=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.element,void 0,!0),M.cY(this.An),M.init(WF("ad-info-hover-text-button"),b,this.macros),g.t(this,M)}else W.nonskippableOverlayRenderer&&(M=g.z(W.nonskippableOverlayRenderer,Cz))&&this.Z&&(this.V=new PL(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.Z,!1),g.t(this,this.V),this.V.cY(this.element),this.V.init(WF("ad-preview"),M,b));W.countdownRenderer&& (W=W.countdownRenderer,g.z(W,BTt)&&this.Z&&(b=new x$$(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.Z),g.t(this,b),b.cY(this.element),b.init(WF("timed-pie-countdown"),g.z(W,BTt),this.macros)));this.show();this.element.focus()}else g.O(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.O(Error("AdActionInterstitialRenderer has no button."));else g.O(Error("AdActionInterstitialRenderer has no background AdImage."));else g.O(Error("AdActionInterstitialRenderer has no description AdText.")); else g.O(Error("AdActionInterstitialRenderer has no headline AdText."));else g.O(Error("AdActionInterstitialRenderer has no image."))}clear(){this.A.V();this.hide()}show(){pms(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.V&&this.V.show();super.show()}hide(){pms(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.V&&this.V.hide();super.hide()}Lp(){this.navigationEndpoint&&(this.layoutId?this.Gv.executeCommand(this.navigationEndpoint, this.layoutId):g.O(Error("Missing layoutId for ad action interstitial.")))}};var $M={iconType:"CLOSE"},qF=new g.i0(320,63),fpL=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-overlay-slot",U:[{K:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",W,b,T);this.C=[];this.Ds=this.O=this.A=this.wK=this.MK=null;this.Lp=!1;this.S=null;this.W=0;M=this.hn("ytp-ad-overlay-container");this.sY=new ej(M,45E3,6E3,.3,.4);g.t(this,this.sY);this.B=YfL(this);g.t(this,this.B);this.B.cY(M);this.V=$jy(this);g.t(this,this.V);this.V.cY(M);this.Z=MZl(this);g.t(this,this.Z);this.Z.cY(M); this.hide()}init(M,W,b){super.init(M,W,b);this.A=W;this.C=g.Vh(this.A.onClickCommands||[]);this.MK=this.A.onErrorCommand||null;if(M=this.A.contentSupportedRenderer)M=this.A.contentSupportedRenderer,W=this.A.adInfoRenderer||null,g.z(M,XUL)?(this.S=g.wP("ytp-ad-overlay-ad-info-button-container",this.B.element),bH(this,W),M=bVa(this,g.z(M,XUL))):g.z(M,jMs)?(this.S=g.wP("ytp-ad-overlay-ad-info-button-container",this.V.element),bH(this,W),M=TtL(this,g.z(M,jMs))):g.z(M,Gft)?(this.S=g.wP("ytp-ad-overlay-ad-info-button-container", this.Z.element),bH(this,W),M=qTL(this,g.z(M,Gft))):(g.O(Error("InvideoOverlayAdRenderer content could not be initialized.")),M=!1);M&&(this.show(),WgP(this,!0))}clear(){WgP(this,!1);this.sY.reset();this.W=0;this.B.hide();this.logVisibility(this.B.element,!1);this.V.hide();this.logVisibility(this.V.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.hide();this.dispose()}fv(){this.wK&&(this.layoutId?this.Gv.executeCommand(this.wK,this.layoutId):g.O(Error("Missing layoutId for invideo_overlay_ad."))); this.api.pauseVideo()}An(){for(const M of X4y(this))this.layoutId?this.Gv.executeCommand(M,this.layoutId):g.O(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}OY(){this.Lp||this.api.getPlayerState(1)!==2||this.api.playVideo()}b1(){this.Lp||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.b1("invideo-overlay")}cP(M){M.target===this.S&&g.wP("ytp-ad-button",this.Ds.element).click()}};var Akg=class extends Sj{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-ad-message-overlay",U:[{K:"div",N:"ytp-ad-message-slot"}]},"ad-message",W,b,T,q);this.W=-1;this.A=0;this.sY=!1;this.An=this.hn("ytp-ad-message-slot");this.V=new g.YV({K:"span",N:"ytp-ad-message-container"});this.V.cY(this.An);g.t(this,this.V);this.messageText=new ug(this.api,this.layoutId,this.interactionLoggingClientData,T,"ytp-ad-message-text");g.t(this,this.messageText);this.messageText.cY(this.V.element);this.C=new g.Ol(this.V, 400,!1,100,()=>{this.hide()}); g.t(this,this.C);this.hide()}init(M,W,b){super.init(M,W,b);M=W.durationMs;this.A=M==null||M===0?0:M+this.Z.getProgressState().current*1E3;let T;W.text?T=W.text.templatedAdText:W.staticMessage&&(T=W.staticMessage);this.messageText.init(WF("ad-text"),T,b);this.messageText.cY(this.V.element);this.C.show(100);this.show()}clear(){this.hide()}hide(){jGy(this,!1);super.hide();this.V.hide();this.messageText.hide();i9(this)}show(){jGy(this,!0);super.show();FE(this);this.V.show();this.messageText.show()}S(){this.hide()}B(){if(this.Z!= null){var M=this.Z.getProgressState();M!=null&&M.current!=null&&(M=1E3*M.current,!this.sY&&M>=this.A?(this.C.hide(),this.sY=!0):this.messageText&&this.messageText.isTemplated()&&(M=Math.max(0,Math.ceil((this.A-M)/1E3)),M!==this.W&&(xX(this.messageText,{TIME_REMAINING:String(M)}),this.W=M)))}}};var z0a=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-underlay-companion",U:[{K:"div",N:"ytp-ad-underlay-side-container",U:[{K:"div",N:"ytp-ad-underlay-image-container"},{K:"div",N:"ytp-ad-underlay-description-container"},{K:"div",N:"ytp-ad-underlay-headline-container"},{K:"div",N:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",W,b,T);this.actionButton=null;this.An=this.hn("ytp-ad-underlay-image-container");this.B=new AS(this.api,this.layoutId,this.interactionLoggingClientData, this.Gv,"ytp-ad-underlay-image");g.t(this,this.B);this.B.cY(this.An);this.sY=this.hn("ytp-ad-underlay-headline-container");this.V=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-ad-underlay-headline");g.t(this,this.V);this.V.cY(this.sY);this.O=this.hn("ytp-ad-underlay-description-container");this.A=new ug(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,"ytp-ad-underlay-description");g.t(this,this.A);this.A.cY(this.O);this.W=this.hn("ytp-ad-underlay-action-button-container"); this.Z=this.hn("ytp-ad-underlay-side-container");this.hide()}init(M,W,b){super.init(M,W,{});W.image&&W.image.thumbnail?W.headline?W.description?W.actionButton&&g.z(W.actionButton,gQ)?(this.B.init(WF("ad-image"),W.image,b),this.V.init(WF("ad-text"),W.headline,b),this.A.init(WF("ad-text"),W.description,b),this.actionButton=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-underlay-action-button"]),W.backgroundColor&&g.iq(this.element,"background-color",g.oI(W.backgroundColor)), g.t(this,this.actionButton),this.actionButton.cY(this.W),this.actionButton.init(WF("button"),g.z(W.actionButton,gQ),b),M=g.TO(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().j("place_shrunken_video_on_left_of_player")?(W=this.Z,g.Mw(W,"ytp-ad-underlay-left-container"),g.pY(W,"ytp-ad-underlay-right-container"),g.iq(this.Z,"margin-left",`${Math.round((M+.02)*100)}%`)):(W=this.Z,g.Mw(W,"ytp-ad-underlay-right-container"),g.pY(W,"ytp-ad-underlay-left-container")),g.iq(this.Z, "width",`${Math.round((1-M-.04)*100)}%`),this.api.CV()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.C.bind(this)),this.api.addEventListener("resize",this.S.bind(this))):g.O(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.O(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.O(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.O(Error("InstreamAdPlayerUnderlayRenderer has no image."))}show(){Ggg(!0);this.actionButton&& this.actionButton.show();super.show()}hide(){Ggg(!1);this.actionButton&&this.actionButton.hide();super.hide()}clear(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.C.bind(this));this.api.removeEventListener("resize",this.S.bind(this));this.hide()}onClick(M){super.onClick(M);this.actionButton&&g.ES(this.actionButton.element,M.target)&&this.api.pauseVideo()}C(M){M==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):M==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"): M==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))}S(M){M.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):M.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.iq(this.V.element,"font-size",`${M.width/40}px`)}};var Bta=class extends hS{constructor(M,W,b,T,q,X=()=>{}){super(M,{K:"div", N:"ytp-ad-survey-answer"},"survey-answer",W,b,T);this.index=q;this.onSelected=X;this.Z=null;this.toggledLoggingParams="";this.answer=this.hn("ytp-ad-survey-answer");this.hide()}init(M,W,b){super.init(M,W,b);W.toggledLoggingParams&&(this.toggledLoggingParams=W.toggledLoggingParams);W.answer&&g.z(W.answer,gQ)?(M=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),M.cY(this.answer),M.init(WF("ytp-ad-survey-answer-button"), g.z(W.answer,gQ),b),M.show()):W.answer&&g.z(W.answer,LH)&&(this.Z=new zz(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-survey-answer-toggle-button"]),this.Z.cY(this.answer),g.t(this,this.Z),this.Z.init(WF("survey-answer-button"),g.z(W.answer,LH),b));this.show()}yz(M){this.layoutId?JZ(this.Gv,M,this.layoutId,this.macros):(M=new g.EF("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.O(M))}onClick(M){super.onClick(M);if(this.api.G().j("supports_multi_step_on_desktop")&& this.index!==null)this.onSelected(this.index)}clear(){this.hide()}};var ykG=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",W,b,T);this.button=null;this.Z=this.hn("ytp-ad-survey-none-of-the-above");this.hide()}init(M,W,b){super.init(M,W,b);W.answer&&g.z(W.answer,LH)&&(this.button=new zz(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.cY(this.Z),this.button.init(WF("survey-none-of-the-above-button"), g.z(W.answer,LH),b));this.show()}};var FUh=class extends rB{constructor(M,W,b,T){const q=["ytp-ad-survey-submit-button"];q.push("ytp-ad-survey-submit-button-rounded");super(M,W,b,T,q,"survey-submit")}init(M,W,b){super.init(M,W,b);M=!1;W.text&&(W=g.Ga(W.text),M=!g.Tp(W));M||g.lR(Error("No submit text was present in the renderer."))}onClick(M){this.publish("l");super.onClick(M)}};var EVS=class extends hS{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-ad-survey-player-overlay",U:[{K:"div",N:"ytp-ad-survey-player-overlay-instream-info"},{K:"div",N:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{K:"div",N:"ytp-ad-survey-player-overlay-skip-or-preview"},{K:"div",N:"ytp-ad-survey-player-overlay-submit"}]},{K:"div",N:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",W,b,T);this.A=q;this.V=this.Z=null;this.B=this.hn("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.hn("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.hn("ytp-ad-survey-player-overlay-submit");g.t(this,this.A);this.hide()}init(M,W,b){super.init(M,W,b);if(M=W.skipOrPreviewRenderer)g.z(M,xa)?(M=g.z(M,xa),b=new XM(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.A,!0),b.cY(this.skipOrPreview),b.init(WF("skip-button"),M,this.macros),g.t(this,b),this.Z=b):g.z(M,Cz)&&(M=g.z(M,Cz),b=new PL(this.api,this.layoutId,this.interactionLoggingClientData, this.Gv,this.A,!1),b.cY(this.skipOrPreview),b.init(WF("ad-preview"),M,this.macros),b.sY.show(100),b.show(),g.t(this,b),this.Z=b);this.Z==null&&(M=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly."+`ISAPOR: ${JSON.stringify(W)}`),g.O(M));W.submitButton&&(M=W.submitButton,g.z(M,gQ)&&(M=g.z(M,gQ),b=new FUh(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),b.cY(this.submitButton),b.init(WF("survey-submit"),M,this.macros),g.t(this,b),this.V=b));if(M=W.adBadgeRenderer)M= g.z(M,Vdt),b=new ou(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!0,!0),b.cY(this.B),b.init(WF("simple-ad-badge"),M,this.macros),this.adBadge=b.element,g.t(this,b);if(M=W.adDurationRemaining)M=g.z(M,bCa),b=new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.A,void 0,!0),b.cY(this.B),b.init(WF("ad-duration-remaining"),M,this.macros),g.t(this,b);(W=W.adInfoRenderer)&&g.z(W,Ud)&&(M=new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.element, void 0,!0),g.t(this,M),this.adBadge!==void 0?this.B.insertBefore(M.element,this.adBadge.nextSibling):M.cY(this.B),M.init(WF("ad-info-hover-text-button"),g.z(W,Ud),this.macros));this.show()}clear(){this.hide()}};var iyE=class extends hS{constructor(M,W,b,T,q,X=()=>{}){super(M,{K:"div", N:"ytp-ad-survey-question",U:[{K:"div",rK:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{K:"div",rK:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{K:"div",rK:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{K:"div",N:"ytp-ad-survey-question-background"}]},q,W,b,T);this.sY=X;this.B=null;this.V=[];this.Z=null;this.C=this.api.G().experiments.FX("a11y_h5_associate_survey_question");this.question=this.hn("ytp-ad-survey-question");this.MK= this.hn("ytp-ad-survey-question-background");this.questionText=this.hn("ytp-ad-survey-question-text");this.answers=this.hn("ytp-ad-survey-answers");this.playerOverlay=this.hn("ytp-ad-survey-question-player-overlay");this.A=Date.now()}init(M,W,b){super.init(M,W,b);VZL(this)}show(){this.A=Date.now();super.show()}W(){}};var Lgq=class extends iyE{constructor(M,W,b,T,q){super(M,W,b,T,"survey-question-multi-select");this.O=q;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()}init(M,W,b){super.init(M,W,b);W.questionText&&JkJ(this,W.questionText);W.answers&&W.answers.forEach((T,q)=>{g.z(T,CH)&&DjP(this,g.z(T,CH),b,q)}); this.S=new Set(this.V.map(T=>T.Z.Z)); (M=W.noneOfTheAbove)&&(M=g.z(M,qQp))&&Ujq(this,M,b);W.surveyAdQuestionCommon&&nVG(this,W.surveyAdQuestionCommon);W.submitEndpoints&&(this.submitEndpoints=W.submitEndpoints);this.J(this.element,"change",this.onChange);this.show()}W(){jg(this.B,J2(this),!1);this.B.V.subscribe("l",this.An,this)}onChange(M){M.target===this.noneOfTheAbove.button.Z?CLa(this):this.S.has(M.target)&&(this.noneOfTheAbove.button.toggleButton(!1),jg(this.B,J2(this),!0))}An(){const M=[],W=this.V.reduce((T,q,X)=>{const G=q.toggledLoggingParams; q.Z&&q.Z.isToggled()&&G&&(T.push(G),M.push(X));return T},[]).join("&"),b=this.submitEndpoints.map(T=>{if(!T.loggingUrls)return T; T=g.Qh(T);T.loggingUrls=T.loggingUrls.map(q=>{q.baseUrl&&(q.baseUrl=BG(q.baseUrl,W));return q}); return T}); if(b)for(const T of b)this.layoutId?JZ(this.Gv,T,this.layoutId,this.macros):g.O(Error("Missing layoutId for multi_select_question."));this.api.G().j("supports_multi_step_on_desktop")&&this.O(M)}clear(){this.api.G().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var mjt=class extends iyE{constructor(M,W,b,T,q){super(M,W,b,T,"survey-question-single-select",X=>{this.api.G().j("supports_multi_step_on_desktop")&&q([X])}); this.hide()}init(M,W,b){super.init(M,W,b);W.questionText&&JkJ(this,W.questionText);W.answers&&W.answers.forEach((T,q)=>{g.z(T,CH)&&DjP(this,g.z(T,CH),b,q)}); W.surveyAdQuestionCommon?nVG(this,W.surveyAdQuestionCommon):NH(Error("SurveyAdQuestionCommon was not sent."+`SingleSelectQuestionRenderer: ${JSON.stringify(W)}`));this.show()}clear(){this.api.G().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var xjp=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-survey",U:[{K:"div",N:"ytp-ad-survey-questions"}]},"survey",W,b,T);this.questions=[];this.V=[];this.conditioningRules=[];this.Z=0;this.S=this.hn("ytp-ad-survey-questions");this.api.G().j("fix_survey_color_contrast_on_destop")&&this.hn("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().j("web_enable_speedmaster")&&this.hn("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}init(M,W,b){super.init(M, W,b);this.api.G().j("supports_multi_step_on_desktop")?(this.conditioningRules=W.conditioningRules??[],this.V=W.questions??[],W.questions?.length&&vVP(this,0)):(W.questions||[]).forEach(T=>{g.z(T,nz)?kgS(this,g.z(T,nz),b):g.z(T,Ed)&&KgQ(this,g.z(T,Ed),b)}); this.show()}clear(){this.api.G().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}A(M){if(this.api.G().j("supports_multi_step_on_desktop"))if(this.conditioningRules?.length){let W;if(M.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(b=>b.questionIndex===this.Z)==null)g.O(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(b=>{if(b.questionIndex===this.Z)switch(b.condition){case "CONDITION_ALL_OF":b.answerIndices?.every(T=>M.includes(T))&&(W=b.nextQuestionIndex); break;case "CONDITION_ANY_OF":b.answerIndices?.some(T=>M.includes(T))&&(W=b.nextQuestionIndex); break;default:g.O(Error("Expected specified condition in survey conditioning rules."))}}),W!=null)vVP(this,W); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.O(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var h0y=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-survey-interstitial",U:[{K:"div",N:"ytp-ad-survey-interstitial-contents",U:[{K:"div",N:"ytp-ad-survey-interstitial-logo",U:[{K:"div",N:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",N:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",W,b,T);this.Z=this.actionButton=null;this.interstitial=this.hn("ytp-ad-survey-interstitial");this.V=this.hn("ytp-ad-survey-interstitial-contents");this.text=this.hn("ytp-ad-survey-interstitial-text"); this.logoImage=this.hn("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Ol(this,500,!1,300);g.t(this,this.transition)}init(M,W,b){super.init(M,W,b);M=W.timeoutSeconds||0;if(typeof M!=="number"||M<0)g.O(Error("timeoutSeconds was specified incorrectly in "+`SurveyTextInterstitialRenderer with a value of: ${M}`));else if(W.timeoutCommands)if(W.text)if(W.ctaButton&&g.z(W.ctaButton,gQ))if(W.brandImage)if(W.backgroundImage&&g.z(W.backgroundImage,sI)&&g.z(W.backgroundImage,sI).landscape){this.layoutId|| g.O(Error("Missing layoutId for survey interstitial."));lpP(this.interstitial,g.z(W.backgroundImage,sI).landscape);lpP(this.logoImage,W.brandImage);g.nr(this.text,g.Ga(W.text));var T=["ytp-ad-survey-interstitial-action-button"];T.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new rB(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,T);g.t(this,this.actionButton);this.actionButton.cY(this.V);this.actionButton.init(WF("button"),g.z(W.ctaButton,gQ),b);this.actionButton.show(); this.Z=new Gc(this.api,M*1E3);this.Z.subscribe("g",()=>{this.transition.hide()}); g.t(this,this.Z);this.J(this.element,"click",q=>{const X=q.target===this.interstitial;q=this.actionButton.element.contains(q.target);if(X||q)if(this.transition.hide(),X)this.api.onAdUxClicked(this.componentType,this.layoutId)}); this.transition.show(100)}else g.O(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.O(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.O(Error("SurveyTextInterstitialRenderer has no button."));else g.O(Error("SurveyTextInterstitialRenderer has no text."));else g.O(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}clear(){this.hide()}show(){tZg(!0);super.show()}hide(){tZg(!1);super.hide()}};var hh4=class extends Sj{constructor(M,W,b,T,q,X=0){super(M,{K:"div",N:"ytp-preview-ad",U:[{K:"div",N:"ytp-preview-ad__text"}]},"preview-ad",W,b,T,q);this.MK=X;this.V=0;this.sY=-1;this.A=this.hn("ytp-preview-ad__text");switch(this.MK){case 1:this.A.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Ol(this,400,!1,100,()=>{this.hide()}); g.t(this,this.transition);this.hide()}init(M,W){super.init(M,W,{});if(W.durationMilliseconds){if(W.durationMilliseconds<0){g.O(Error("DurationMilliseconds was specified incorrectly in "+`AdPreview with a value of: ${W.durationMilliseconds}`));return}this.V=W.durationMilliseconds}else this.V=this.Z.Kl();!W.previewText?.text||g.Tp(W.previewText.text)?g.O(Error("No text is returned for AdPreview.")):(this.An=W.previewText,W.previewText.isTemplated||g.nr(this.A,W.previewText.text),this.api.getVideoData({playerType:1})?.Ep&& W.previewImage?(M=Lm(W.previewImage?.sources||[],52,!1)?.url||"")&&M.length?(this.previewImage=new g.YV({K:"img",N:"ytp-preview-ad__image",Y:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",M),g.t(this,this.previewImage),this.previewImage.cY(this.element)):g.O(Error("Failed to get imageUrl in AdPreview.")):this.A.classList.add("ytp-preview-ad__text--padding--wide"))}clear(){this.hide()}hide(){i9(this);super.hide()}show(){FE(this);super.show()}S(){this.hide()}B(){if(this.Z){var M=this.Z.getProgressState(); if(M?.current)if(M=1E3*M.current,M>=this.V)this.C();else if(this.An?.isTemplated&&(M=Math.max(0,Math.ceil((this.V-M)/1E3)),M!==this.sY)){const W=this.An?.text?.replace("{TIME_REMAINING}",String(M));W&&g.nr(this.A,W);this.sY=M}}}C(){this.transition.hide()}W(){this.transition.show(100);this.show()}};var nC=class extends hS{constructor(M,W,b,T){super(M,{K:"img",N:"ytp-ad-avatar"},"ad-avatar",W,b,T);this.hide()}init(M,W){super.init(M,W,{});var b=Lm(W.image?.sources||[],ZVL(W),!0)?.url||"";if(b&&b.length){M=this.hn("ytp-ad-avatar");M.src=b;if(b=W.interaction?.accessibility?.label)M.alt=b;switch(W.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(W.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.O(Error("Failed to get imageUrl in AdAvatar."))}clear(){this.hide()}onClick(M){super.onClick(M)}};var yu=class extends hS{constructor(M,W,b,T,q=!1){super(M,{K:"button",N:"ytp-ad-button-vm"},"ad-button",W,b,T);this.buttonText=this.buttonIcon=null;this.hide();this.forceDarkTheme=q}init(M,W){super.init(M,W,{});var b=W.label?.content;if((M=b!=null&&!g.Tp(b))||W.iconImage){M&&(this.buttonText=new g.YV({K:"span",N:"ytp-ad-button-vm__text",R0:b}),g.t(this,this.buttonText),this.buttonText.cY(this.element));(b=W.interaction?.accessibility?.label||M?b:"")&&uT(this.element,`${b} ${"This link opens in new tab"}`); Af(this.element);if(W.iconImage){b=void 0;if(W.iconImage){a:{var T=W.iconImage;if(T.sources)for(q of T.sources)if(q.clientResource?.imageName||q.customImageSource&&g.z(q.customImageSource,QMt)?.clientResource?.icon)break a;var q=void 0}q&&(b={iconType:q.clientResource?.imageName})}q=ZR(b,!1,!1);q!=null&&(this.buttonIcon=new g.YV({K:"span",N:"ytp-ad-button-vm__icon",U:[q]}),g.t(this,this.buttonIcon),W.iconLeading?(D3(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")): M?(this.buttonIcon.cY(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):(this.buttonIcon.cY(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(W.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled"); break;case "AD_BUTTON_STYLE_FILLED":this.api.j("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.forceDarkTheme?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(W.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large"); break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.lR(Error("AdButton does not have label or an icon."))}clear(){this.hide()}onClick(M){super.onClick(M)}};var AYI=class extends Sj{constructor(M,W,b,T,q){super(M,{K:"div",rK:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],U:[{K:"div",N:"ytp-ad-avatar-lockup-card__avatar_and_text_container",U:[{K:"div",N:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",W,b,T,q);this.startMilliseconds=0;this.adAvatar=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.adAvatar);D3(this.element,this.adAvatar.element,0);this.headline=new wJ(this.api, this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.headline);this.headline.cY(this.hn("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.description);this.description.cY(this.hn("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton= new yu(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.adButton);this.adButton.cY(this.element);this.hide()}init(M,W){super.init(M,W,{});if(M=g.z(W.avatar,BP)){var b=W.headline;if(b){var T=W.description;if(T){var q=g.z(W.button,az);q?(this.adAvatar.init(WF("ad-avatar"),M),this.headline.init(WF("ad-simple-attributed-string"),new sl(b)),this.description.init(WF("ad-simple-attributed-string"),new sl(T)),b.content&&b.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(WF("ad-button"),q),this.startMilliseconds=W.startMs||0,this.api.CV()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.V.bind(this)),FE(this)):g.O(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.O(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.O(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.O(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}B(){if(this.Z){var M= this.Z.getProgressState();M&&M.current&&1E3*M.current>=this.startMilliseconds&&(i9(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}S(){this.clear()}onClick(M){this.api.pauseVideo();super.onClick(M)}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.V.bind(this))}show(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();super.show()}hide(){this.adAvatar.hide();this.headline.hide();this.description.hide(); this.adButton.hide();super.hide()}V(M){M==="hidden"?this.show():this.hide()}};var zh7=class extends hS{constructor(M,W,b,T){super(M,{K:"button",N:"ytp-skip-ad-button",U:[{K:"div",N:"ytp-skip-ad-button__text"}]},"skip-button",W,b,T);this.V=!1;this.S=this.hn("ytp-skip-ad-button__text");this.transition=new g.Ol(this,500,!1,100,()=>{this.hide()}); g.t(this,this.transition);this.Z=new ej(this.element,15E3,5E3,.5,.5,!0);g.t(this,this.Z);this.hide()}init(M,W){super.init(M,W,{});if(!W.label||g.Tp(W.label))g.O(Error("No label is returned for SkipAdButton."));else if(g.nr(this.S,W.label),M=ZR({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.j("delhi_modern_web_player_icons")),M==null)g.O(Error("Unable to retrieve icon for SkipAdButton"));else if(this.B=new g.YV({K:"span",N:"ytp-skip-ad-button__icon",U:[M]}),g.t(this,this.B),this.B.cY(this.element),this.api.G().experiments.FX("enable_skip_to_next_messaging")&& (W=g.JY(W.targetId)))this.V=!0,this.element.setAttribute("data-tooltip-target-id",W),this.element.setAttribute("data-tooltip-target-fixed","")}onClick(M){M&&M.preventDefault();Pvg(M,{contentCpn:this.api.getVideoData({playerType:1})?.clientPlaybackNonce??""})===0?g.q8(this.api,"onAbnormalityDetected"):(super.onClick(M),g.q8(this.api,"onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}clear(){this.Z.reset();this.hide()}hide(){super.hide()}show(){this.Z.start();super.show();this.V&& this.api.G().experiments.FX("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)}A(){this.transition.show();this.show()}};var uAJ=class extends Sj{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-skip-ad"},"skip-ad",W,b,T,q);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.A=new zh7(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.A);this.A.cY(this.element);this.hide()}init(M,W){super.init(M,W,{});M=g.z(W.preskipState,Cdp);if(this.api.getVideoData()?.isDaiEnabled()){if(!M){g.O(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.V=new hh4(this.api,this.layoutId, this.interactionLoggingClientData,this.Gv,this.Z);g.t(this,this.V);this.V.cY(this.element);this.V?.init(WF("preview-ad"),M);this.V?.W()}(M=g.z(W.skippableState,KNt))?(W.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=W.skipOffsetMilliseconds:(g.lR(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.A.init(WF("skip-button"),M),this.show()):g.O(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}show(){FE(this);super.show()}hide(){!this.isSkippable&& this.V?this.V.hide():this.A&&this.A.hide();i9(this);super.hide()}clear(){this.V?.clear();this.A&&this.A.clear();i9(this);super.hide()}S(){this.hide()}B(){1E3*this.Z.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable&&(this.isSkippable=!0,this.V?.C(),this.A?.A())}};var Sac=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-visit-advertiser-link"},"visit-advertiser-link",W,b,T);this.hide()}init(M,W){super.init(M,W,{});W.label?(W.label?.content&&!g.Tp(W.label.content)&&(this.linkText=new g.YV({K:"span",N:"ytp-visit-advertiser-link__text",R0:W.label.content}),g.t(this,this.linkText),this.linkText.cY(this.element)),W.interaction?.accessibility?.label?uT(this.element,`${W.interaction.accessibility.label} ${"This link opens in new tab"}`):W.label?.content&& !g.Tp(W.label.content)&&uT(this.element,`${W.label.content} ${"This link opens in new tab"}`),Af(this.element),this.element.setAttribute("tabindex","0"),this.show()):g.O(Error("No label found in VisitAdvertiserLink."))}onClick(M){super.onClick(M);this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide()}};var rkp=class extends hS{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-ad-player-overlay-layout",U:[{K:"div",N:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",N:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",N:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",N:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",W,b,T);this.V=q;this.O=this.hn("ytp-ad-player-overlay-layout__player-card-container");this.Z=this.hn("ytp-ad-player-overlay-layout__ad-info-container"); this.C=this.hn("ytp-ad-player-overlay-layout__skip-or-preview-container");this.W=this.hn("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}init(M,W,b,T){super.init(M,W,{});let q;W.skipOrPreview&&(b=W.skipOrPreview,M=g.z(b,v6L),b=g.z(b,Cdp),M?(this.FR=new uAJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V),g.t(this,this.FR),this.FR.cY(this.C),this.FR.init(WF("skip-ad"),M)):b&&this.api.getVideoData()?.isDaiEnabled()&&(this.A=new hh4(this.api,this.layoutId, this.interactionLoggingClientData,this.Gv,this.V,1),g.t(this,this.A),this.A.cY(this.C),this.A.init(WF("ad-preview"),b),this.A.W()),M=g.z(W.skipOrPreview,v6L))&&(q=M.skipOffsetMilliseconds);W.playerAdCard&&(M=g.z(W.playerAdCard,kfq))&&(this.playerAdCard=new AYI(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V),g.t(this,this.playerAdCard),this.playerAdCard.cY(this.O),this.playerAdCard.init(WF("ad-avatar-lockup-card"),M));W.adBadgeRenderer&&((M=g.z(W.adBadgeRenderer,DT))?(this.B= new pH(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!0),g.t(this,this.B),this.B.cY(this.Z),this.B.init(WF("ad-badge"),M)):g.O(Error("AdBadgeViewModel is not found in player overlay layout.")));W.adPodIndex&&(M=g.z(W.adPodIndex,E6L))&&(this.adPodIndex=new dUG(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.adPodIndex),this.adPodIndex.cY(this.Z),this.adPodIndex.init(WF("ad-pod-index"),M));W.adInfoRenderer&&((M=g.z(W.adInfoRenderer,Ud))?(this.adInfoButton= new WP(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.element,void 0,!0),g.t(this,this.adInfoButton),this.B!==void 0?this.Z.insertBefore(this.adInfoButton.element,this.B.element.nextSibling):this.adInfoButton.cY(this.Z),this.adInfoButton.init(WF("ad-info-hover-text-button"),M,this.macros)):g.lR(Error("AdInfoRenderer is not found in player overlay layout.")));M=this.api.getVideoData()?.isDaiEnabled();W.adDurationRemaining&&M&&(M=g.z(W.adDurationRemaining,bCa))&&(this.adDurationRemaining= new gJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V,T.videoAdDurationSeconds,!0),g.t(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.Z.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.cY(this.Z),this.adDurationRemaining.init(WF("ad-duration-remaining"),M,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));W.visitAdvertiserLink&&(T=g.z(W.visitAdvertiserLink, LNJ))&&(this.visitAdvertiserLink=new Sac(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.visitAdvertiserLink),this.visitAdvertiserLink.cY(this.Z),this.visitAdvertiserLink.init(WF("visit-advertiser-link"),T));W.adDisclosureBanner&&(W=g.z(W.adDisclosureBanner,a8P))&&(this.adDisclosureBanner=new ooQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.adDisclosureBanner),this.adDisclosureBanner.cY(this.W),this.adDisclosureBanner.init(WF("ad-disclosure-banner"), W));this.S=new V$(this.api,this.V,q,!0);g.t(this,this.S);g.Im(this.api,this.S.element,4);this.show()}clear(){this.hide()}};var Oy$=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-grid-card-text",U:[{K:"div",N:"ytp-ad-grid-card-text__metadata",U:[{K:"div",N:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",N:"ytp-ad-grid-card-text__metadata__description",U:[{K:"div",N:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",N:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",N:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",W,b,T);this.headline=new wJ(this.api,this.layoutId, this.interactionLoggingClientData,this.Gv);g.t(this,this.headline);this.headline.cY(this.hn("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new yu(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!0);g.t(this,this.moreInfoButton);this.moreInfoButton.cY(this.hn("ytp-ad-grid-card-text__button"))}init(M,W){super.init(M,W,{});if(W?.title)if(M=W.title)if(this.headline.init(WF("ad-simple-attributed-string"),new sl(M)),M=g.z(W.moreInfoButton,az)){if(this.moreInfoButton.init(WF("ad-button"), M),W.descriptions)W.descriptions.length>0&&(M=W.descriptions[0])&&(this.Z=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.Z),this.Z.cY(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Z.init(WF("ad-simple-attributed-string"),new sl(M))),W.descriptions.length>1&&(W=W.descriptions[1])&&(this.V=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.V),this.V.cY(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]), this.V.init(WF("ad-simple-attributed-string"),new sl(W)))}else g.O(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.O(Error("No headline found in AdGridCardText."));else g.O(Error("No headline found in AdGridCardText."))}onClick(M){super.onClick(M);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide();this.headline.clear();this.moreInfoButton.clear();this.Z?.clear();this.V?.clear()}hide(){this.headline.hide();this.moreInfoButton.hide(); this.Z?.hide();this.V?.hide();super.hide()}show(){super.show();this.headline.show();this.moreInfoButton.show();this.Z?.show();this.V?.show()}};var P0J=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",W,b,T);this.Z=[]}init(M,W){super.init(M,W,{});if(W?.gridCards)if(W.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.O(Error("Only single column style is currently supported in AdGridCardCollection."));else for(const b of W.gridCards){if(W=g.z(b,U7L))M=new Oy$(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,M),M.cY(this.element),M.init(WF("ad-grid-card-text"), W),this.Z.push(M)}else g.O(Error("No grid cards found in AdGridCardCollection."))}show(){for(const M of this.Z)M.show();super.show()}clear(){this.hide();for(const M of this.Z)M.clear()}hide(){for(const M of this.Z)M.hide();super.hide()}};var ehE=class extends Sj{constructor(M,W,b,T,q){super(M,{K:"div",N:"ytp-display-underlay-text-grid-cards",U:[{K:"div",N:"ytp-display-underlay-text-grid-cards__content_container",U:[{K:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header",U:[{K:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",N:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {K:"div",N:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards",W,b,T,q);this.playerProgressOffsetMs=0;this.V=!1}init(M,W,b,T,q=0){super.init(M,W,b,T);this.playerProgressOffsetMs=q;FE(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.W.bind(this));this.api.addEventListener("resize",this.C.bind(this));this.api.CV()?(this.V=!0,this.api.Un(!0),this.show()):this.hide()}B(){if(this.Z){var M=this.Z.getProgressState();M&&M.current&& !this.V&&1E3*M.current>=this.playerProgressOffsetMs&&(this.V=!0,this.api.Un(!0),this.show())}}S(){this.V&&this.api.Un(!1);this.hide()}clear(){this.api.Un(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.W.bind(this));this.api.removeEventListener("resize",this.C.bind(this));i9(this);this.hide()}hide(){IpJ(!1);super.hide()}show(){IpJ(!0);super.show()}};var uLP=class extends ehE{constructor(M,W,b,T,q){super(M,W,b,T,q);this.adGridCardCollection=new P0J(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.adGridCardCollection);this.adGridCardCollection.cY(this.hn("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new yu(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.adButton);this.adButton.cY(this.hn("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.A=this.hn("ytp-display-underlay-text-grid-cards__content_container");this.sY=this.hn("ytp-display-underlay-text-grid-cards__content_container__header")}init(M,W,b,T){if(W?.adGridCardCollection)if(W?.adButton){var q=Number(W.playerProgressOffsetMs||"0");isNaN(q)?super.init(M,W,b,T):super.init(M,W,b,T,q);M=W.headline;b=g.z(W.adAvatar,BP);M&&b?(this.headline=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.headline),this.headline.cY(this.hn("ytp-display-underlay-text-grid-cards__content_container__header__headline")), this.headline.init(WF("ad-simple-attributed-string"),new sl(M)),this.adAvatar=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.adAvatar),this.adAvatar.cY(this.hn("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(WF("ad-avatar"),b)):this.sY.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");M=g.z(W.adGridCardCollection,ynG);this.adGridCardCollection.init(WF("ad-grid-card-collection"), M);W=g.z(W.adButton,az);this.adButton.init(WF("ad-button"),W);this.hide()}else g.O(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.O(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}onClick(M){(this.adButton&&g.ES(this.adButton.element,M.target)||this.adAvatar&&g.ES(this.adAvatar.element,M.target))&&this.api.pauseVideo();super.onClick(M);this.api.onAdUxClicked(this.componentType,this.layoutId)}C(){}clear(){this.hide();this.headline?.clear();this.adAvatar?.clear(); this.adGridCardCollection.clear();this.adButton.clear();super.clear()}show(){this.headline?.show();this.adAvatar?.show();this.adGridCardCollection.show();this.adButton.show();super.show()}hide(){this.headline?.hide();this.adAvatar?.hide();this.adGridCardCollection.hide();this.adButton.hide();super.hide()}W(M){M==="transitioning"?(this.A.classList.remove("ytp-ad-underlay-clickable"),this.show()):M==="visible"?this.A.classList.add("ytp-ad-underlay-clickable"):M==="hidden"&&(this.hide(),this.A.classList.remove("ytp-ad-underlay-clickable"))}};var d$A=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-ad-details-line"},"ad-details-line",W,b,T);this.Z=[];this.hide()}init(M,W){super.init(M,W,{});if(W.attributes===void 0)g.O(Error("No attributes found in AdDetailsLineViewModel."));else if(W.style===void 0)g.O(Error("No style found in AdDetailsLineViewModel."));else{for(const T of W.attributes)if(T.text!==void 0){M=T.text;var b=W.style;const q=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,q);q.cY(this.element); a:switch(b){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":b="ytp-ad-details-line__text--style-responsive";break a;default:b="ytp-ad-details-line__text--style-standard"}q.element.classList.add(b);q.init(WF("ad-simple-attributed-string"),new sl(M));this.Z.push(q)}this.show()}}show(){this.Z.forEach(M=>{M.show()}); super.show()}clear(){this.hide()}hide(){this.Z.forEach(M=>{M.hide()}); super.hide()}};var oUh=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-image-background",U:[{K:"img",N:"ytp-image-background-image"}]},"image-background",W,b,T);this.hide()}init(M,W){super.init(M,W,{});if((M=Lm(W.image?.sources||[])?.url||"")&&M.length){var b=this.hn("ytp-image-background-image");g.iq(b,"backgroundImage",`url(${M})`);W.blurLevel!==void 0&&g.iq(b,"filter",`blur(${W.blurLevel}px)`);W.gradient!==void 0&&(W=new g.w({K:"div",rK:["ytp-image-background--gradient-vertical"]}),g.t(this,W), W.cY(this.element));this.show()}else g.O(Error("Failed to get imageUrl in ImageBackground."))}clear(){this.hide()}};var cYE=class extends Sj{constructor(M,W,b,T,q){super(M,{K:"svg",N:"ytp-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},U:[{K:"circle",N:"ytp-timed-pie-countdown__background",Y:{r:"10",cx:"10",cy:"10"}},{K:"circle",N:"ytp-timed-pie-countdown__inner",Y:{r:"5",cx:"10",cy:"10"}},{K:"circle",N:"ytp-timed-pie-countdown__outer",Y:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",W,b,T,q);this.A=this.hn("ytp-timed-pie-countdown__inner");this.V=Math.ceil(2*Math.PI*5);this.hide()}init(M,W){super.init(M,W,{}); g.iq(this.A,"stroke-dasharray",`0 ${this.V}`);this.show()}clear(){this.hide()}hide(){i9(this);super.hide()}show(){FE(this);super.show()}S(){this.hide()}B(){if(this.Z){var M=this.Z.getProgressState();M!=null&&M.current!=null&&g.iq(this.A,"stroke-dasharray",`${M.current/M.seekableEnd*this.V} ${this.V}`)}}};var iVP=class extends hS{constructor(M,W,b,T){super(M,{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout",Y:{tabindex:"0"},U:[{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content",U:[{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",U:[{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",N:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",W,b,T);this.V=null;this.A=this.hn("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.B=new ZS;g.t(this,this.B);this.hide()}init(M, W){super.init(M,W,{});if(HVQ(W)){this.adAvatar=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.adAvatar);this.adAvatar.cY(this.hn("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(WF("ad-avatar"),g.z(W.adAvatar,BP));this.headline=new wJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv);g.t(this,this.headline);this.headline.cY(this.hn("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(WF("ad-simple-attributed-string"),new sl(W.headline));if(M=g.z(W.adDetailsLine,D7a))this.detailsLine=new d$A(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.detailsLine),this.detailsLine.cY(this.hn("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(WF("ad-details-line"),M); this.adButton=new yu(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!0);g.t(this,this.adButton);this.adButton.cY(this.hn("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(WF("ad-button"),g.z(W.adButton,az));this.adBadge=new pH(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,!0);g.t(this,this.adBadge);this.adBadge.cY(this.A);this.adBadge.init(WF("ad-badge"),g.z(W.adBadge,DT));this.adInfoButton=new WP(this.api, this.layoutId,this.interactionLoggingClientData,this.Gv,this.element,void 0,!0);g.t(this,this.adInfoButton);this.adInfoButton.cY(this.A);this.adInfoButton.init(WF("ad-info-hover-text-button"),g.z(W.adInfoRenderer,Ud),this.macros);if(M=g.z(W.skipAdButton,KNt))this.skipAdButton=new zh7(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.skipAdButton),this.skipAdButton.cY(this.element),this.skipAdButton.init(WF("skip-button"),M);this.V=new QF(W.durationMilliseconds);g.t(this, this.V);if(M=g.z(W.countdownViewModel,m7J))this.Z=new cYE(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv,this.V),g.t(this,this.Z),this.Z.cY(this.hn("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Z.init(WF("timed-pie-countdown"),M);if(W=g.z(W.imageBackground,n6s))this.imageBackground=new oUh(this.api,this.layoutId,this.interactionLoggingClientData,this.Gv),g.t(this,this.imageBackground),this.imageBackground.cY(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(WF("image-background"),W);this.show();this.element.focus()}}clear(){this.B.V();this.hide()}show(){Ntg(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();super.show()}hide(){Ntg(!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.Z&&this.Z.hide();this.imageBackground&&this.imageBackground.hide();super.hide()}};var ED=class extends g.b9{constructor(M,W=2){super();this.api=M;this.Z=null;this.handler=new ZS(this);g.t(this,this.handler);this.V=zaL;this.handler.J(this.api,"presentingplayerstatechange",this.B);this.Z=this.handler.J(this.api,"progresssync",this.SR);this.eX=W;this.eX===1&&this.SR()}Kl(){return 1E3*this.api.getDuration(this.eX,!1)}stop(){this.Z&&this.handler.fN(this.Z)}SR(){const M=this.api.getProgressState(this.eX);this.V={seekableStart:M.seekableStart,seekableEnd:M.seekableEnd,current:this.api.getCurrentTime({playerType:this.eX, qW:!1})};this.publish("h")}getProgressState(){return this.V}B(M){M.QN(2)&&this.publish("g")}};var QL7="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(" ")),gUV=class extends AiG{constructor(M,W,b){super(M);this.api=M;this.Gv=W;this.components={};M=new g.w({K:"div",rK:["video-ads","ytp-ad-module"]});g.t(this,M);Rl&&g.pY(M.element,"ytp-ads-tiny-mode");this.S=new fH(M.element); g.t(this,this.S);g.Im(this.api,M.element,4);mp(b)&&(b=new g.w({K:"div",rK:["ytp-ad-underlay"]}),g.t(this,b),this.B=new fH(b.element),g.t(this,this.B),g.Im(this.api,b.element,0));g.t(this,KDl())}A(M){var W=M.id,b=M.content;const T=b.componentType;if(!QL7.includes(T))switch(M.actionType){case 1:M=STG(T,this.api,this.Gv,b.layoutId,b.interactionLoggingClientData,b instanceof ay?b.xG:!1,b instanceof ay||b instanceof cL?b.NS:!1);if(!M){g.lR(Error("No UI component returned from ComponentFactory for type: "+ T));break}g.z4(this.components,W)?g.lR(Error("Ad UI component already registered: "+W)):this.components[W]=M;M.bind(b);b instanceof uBL?this.B?this.B.append(M.us):g.lR(Error("Underlay view was not created but UnderlayRenderer was created")):this.S.append(M.us);break;case 2:W=OVQ(this,M);if(W==null)break;W.bind(b);break;case 3:b=OVQ(this,M),b!=null&&(g.cG(b),g.z4(this.components,W)?(b=this.components,W in b&&delete b[W]):g.lR(Error("Ad UI component does not exist: "+W)))}}vY(){g.Qb(Object.values(this.components)); this.components={};super.vY()}};var sL4=class extends g.F2{constructor(M){super(M);this.V=null;this.created=!1;this.B=new KUQ(this.player);this.A=()=>this.V!=null?this.V:this.V=(new m$A({PM:pV(this.Z).PM,Lu:pV(this.Z).Lu,L:this.player,Ei:pV(this.Z).Ei,iV:this.Z.Z.iV,IE:pV(this.Z).IE,U2:this.Z.Z.U2})).V; this.Z=new Rhc(this.player,this,this.B,this.A);g.t(this,this.Z);const W=M.G();!qg(W)||g.WQ(W)||JI(W)||(g.t(this,new gUV(M,pV(this.Z).Gv,pV(this.Z).Ei)),g.t(this,new rYV(M)))}create(){try{oVP(this),this.load(),this.created=!0,oVP(this)}catch(M){za(M instanceof Error?M:String(M))}}load(){this.S()}S(){super.load();var M=pV(this.Z).Ei;try{this.player.getRootNode().classList.add("ad-created")}catch(G){za(G instanceof Error?G:String(G))}var W=this.player.getVideoData({playerType:1});const b=W&&W.videoId|| "";var T=W&&W.getPlayerResponse()||{},q=(T&&T.adPlacements||[]).map(G=>G.adPlacementRenderer),X=(T?.adSlots||[]).map(G=>g.z(G,aW)); T=T.playerConfig&&T.playerConfig.daiConfig&&T.playerConfig.daiConfig.enableDai||!1;W&&W.Me();M=PLG(q,X,M,pV(this.Z).P1);q=W&&W.clientPlaybackNonce||"";W=W&&W.jm||!1;X=1E3*this.player.getDuration(1);this.player.getVideoData({playerType:1})?.jm||wmG(this.player)&&X7L(this.player.getInternalApi());this.Z.Z.QF.m2(q,X,W,M.WU,M.Rt,M.WU,T,b)}destroy(){const M=this.player.getVideoData({playerType:1});this.Z.Z.QF.rT(M&&M.clientPlaybackNonce||"");this.unload();this.created=!1}unload(){super.unload();try{this.player.getRootNode().classList.remove("ad-created")}catch(M){za(M instanceof Error?M:String(M))}if(this.V!=null){const M=this.V;this.V=null;M.dispose()}this.B.reset()}Nm(){return!1}getAdState(){return-1}getOptions(){return Object.values(vUB)}nK(M,W={}){switch(M){case "replaceUrlMacros":return W.url?(M=kqg(this.player),Object.assign(M,W.W$z),W=g.tf(W.url,M)):W=null,W;case "onAboutThisAdPopupClosed":this.Hh(W);break;case "executeCommand":W.command&&W.layoutId&&this.executeCommand(W);break;default:return null}}fq(M){return!!this.Z.Z.mQ?.get().fq(M)}Hh(M){M.isMuted&&GRJ(pV(this.Z).IE, pV(this.Z).PM,M.layoutId);this.v$&&this.v$.Hh()}executeCommand(M){pV(this.Z).Gv.executeCommand(M.command,M.layoutId)}};g.Uq("yt.player.Application.create",g.ps.create);g.Uq("yt.player.Application.createAlternate",g.ps.create);TKq(kn(),kG9);var wt4=g.Ct("ytcsi.tick");wt4&&wt4("pe");g.FQ("ad",sL4);g.pt5=class extends g.gz{constructor(M){super();this.callback=M;this.Z=new U4(0,0,.4,0,.2,1,1,1);this.delay=new g.O9(this.next,window,this);g.t(this,this.delay)}start(M,W,b){this.config={from:M,to:W,duration:b,startTime:(0,g.u)()};this.next()}stop(){this.delay.stop();this.config=void 0}next(){if(this.config){var M=this.config.from,W=this.config.to,b=this.config.duration,T=this.config.startTime;T=(0,g.u)()-T;var q=this.Z;b=g.fy(k9(q,Kc(q,T/b)),0,1);this.callback(M+(W-M)*b);b<1&&this.delay.start()}}};g.Yap=class extends g.w{constructor(M){super({K:"div",N:"ytp-more-videos-view",Y:{tabIndex:"-1"}});this.api=M;this.V=!0;this.B=new g.Cq(this);this.Z=[];this.suggestionData=[];this.columns=this.containerWidth=this.W=this.A=this.scrollPosition=0;this.title=new g.w({K:"h2",N:"ytp-related-title",R0:"{{title}}"});this.previous=new g.w({K:"button",rK:["ytp-button","ytp-previous"],Y:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},U:[g.BF()]});this.C=new g.pt5(W=>{this.suggestions.element.scrollLeft= -W}); this.next=new g.w({K:"button",rK:["ytp-button","ytp-next"],Y:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},U:[g.DR()]});g.t(this,this.B);this.S=M.G().A;g.t(this,this.title);this.title.cY(this.element);this.suggestions=new g.w({K:"div",N:"ytp-suggestions"});g.t(this,this.suggestions);this.suggestions.cY(this.element);g.t(this,this.previous);this.previous.cY(this.element);this.previous.listen("click",this.X,this);g.t(this,this.C);QGy(this);g.t(this,this.next);this.next.cY(this.element);this.next.listen("click", this.D,this);this.B.J(this.api,"appresize",this.XT);this.B.J(this.api,"fullscreentoggled",this.uM);this.B.J(this.api,"videodatachange",this.onVideoDataChange);this.XT(this.api.qe().getPlayerSize());this.onVideoDataChange()}hasSuggestions(){return this.suggestionData.length>0}D(){this.V&&this.scrollTo(this.scrollPosition-this.containerWidth)}show(){super.show();gVs(this)}X(){this.V&&this.scrollTo(this.scrollPosition+this.containerWidth)}uM(){this.XT(this.api.qe().getPlayerSize())}XT(M){var W=this.api.isEmbedsShortsMode()? .5625:16/9,b=this.api.sX();M=M.width-(b?112:58);b=Math.ceil(M/(b?320:192));const T=(M-b*8)/b;W=Math.floor(T/W);for(const q of this.Z){const X=q.hn("ytp-suggestion-image");X.style.width=`${T}px`;X.style.height=`${W}px`}this.suggestions.element.style.height=`${W}px`;this.A=T;this.W=W;this.containerWidth=M;this.columns=b;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Cx(this)}onVideoDataChange(){const M=this.api.G(),W=this.api.getVideoData();this.S=W.uN?!1:M.A;this.suggestionData=W.suggestions? g.et(W.suggestions,b=>b&&!b.playlistId):[]; w4G(this);W.uN?this.title.update({title:g.tZ("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:W.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}scrollTo(M){M=g.fy(M,this.containerWidth-this.suggestionData.length*(this.A+8),0);this.C.start(this.scrollPosition,M,1E3);this.scrollPosition=M;g.Cx(this);gVs(this)}};})(_yt_player);